/* Demo page components — clarity grids, wizards, commerce shells, help drawer */

.row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.toggle-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 10px 0;
}

.toggle-row input {
  width: auto;
  flex-shrink: 0;
  margin-top: 2px;
}

.toggle-row span {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.toggle-row span b {
  display: block;
  color: #e6e8ea;
  font-size: 12px;
  line-height: 1.45;
}

.toggle-row span small {
  display: block;
  color: #7f8996;
  font-size: 11px;
  line-height: 1.5;
}

.empty-state strong {
  display: block;
  margin-bottom: 6px;
  color: #c3cbd4;
  font-size: 13px;
}

.empty-state span {
  display: block;
  color: #7f8996;
  font-size: 11px;
  line-height: 1.5;
}

.section-title-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin: 18px 0 6px;
}

.section-title-row h2 {
  margin: 4px 0 6px;
  font-size: 16px;
  letter-spacing: -.02em;
  color: #f1eee8;
}

.section-title-row p {
  margin: 0;
  color: #909aa7;
  font-size: 10.5px;
  line-height: 1.6;
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 7px;
  border-radius: 999px;
  border: 1px solid #2a313a;
  background: #10151b;
  color: #aeb7c4;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.chip.green {
  border-color: #2a4a36;
  background: #0d1611;
  color: #8fd4a8;
}

.chip.orange {
  border-color: #4a3d2b;
  background: #15110d;
  color: #d8b77f;
}

.clarity-kicker {
  display: block;
  font-size: 8px;
  font-weight: 760;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--pf-gold-muted, #bd9154);
  margin-bottom: 2px;
}

.context-help .help-points {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 7px;
}

.context-help .help-points span {
  padding: 4px 7px;
  border-radius: 999px;
  border: 1px solid #203b4a;
  background: #0b171f;
  color: #8db4c6;
  font-size: 9px;
  font-weight: 650;
}

.clarity-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin: 0 0 12px;
  border: 1px solid #202731;
  border-radius: 10px;
  overflow: hidden;
  background: #0b0f14;
}

.clarity-grid > .clarity-card {
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  padding: 12px 14px;
}

.clarity-grid > .clarity-card + .clarity-card {
  border-left: 1px solid #202731 !important;
}

.clarity-card h3 {
  margin: 2px 0 5px;
  font-size: 12.5px;
  font-weight: 620;
  color: #e4e1dc;
}

.clarity-card p {
  margin: 0;
  font-size: 10.8px;
  line-height: 1.45;
  color: #808c99;
}

.clarity-bullets {
  display: grid;
  gap: 5px;
  margin-top: 8px;
}

.clarity-bullets div {
  display: flex;
  gap: 7px;
  align-items: flex-start;
  color: #9ba5b1;
  font-size: 10px;
  line-height: 1.4;
}

.clarity-bullets div::before {
  content: "✓";
  flex: 0 0 auto;
  color: var(--pf-gold-500, #e8a045);
  font-weight: 700;
}

.clarity-card.caution .clarity-bullets div::before {
  content: "•";
  color: #7196aa;
}

.list-grid,
.card-grid.list-grid {
  display: grid;
  gap: 8px;
}

.design-artwork-field {
  grid-column: 1 / -1;
}

.template-category-explainer {
  margin-top: 10px;
  border: 1px solid #2c3640;
  border-radius: 10px;
  background: #0d1319;
  padding: 11px 12px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.template-category-explainer:empty {
  display: none;
}

.template-category-explainer .cat-icon {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #18222c;
  border: 1px solid #33404c;
  color: #bdc9d5;
  font-weight: 800;
  flex: 0 0 auto;
}

.template-category-explainer.tiktok {
  border-color: #5a4930;
  background: #17140f;
}

.template-category-explainer.tiktok .cat-icon {
  background: #2a2116;
  border-color: #75603e;
  color: #e0c48d;
}

.template-category-explainer b {
  display: block;
  font-size: 12px;
  margin-bottom: 2px;
}

.template-category-explainer span,
.category-field-help {
  display: block;
  color: #8f9ba7;
  font-size: 11px;
  line-height: 1.45;
}

#designForm .form-grid {
  margin-bottom: 10px;
}

#templatesView #designForm.form-card {
  padding: 15px 16px;
  margin: 12px 0 14px;
}

#templatesView #designForm .card-head {
  margin-bottom: 12px;
}

#templatesView #designForm .form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 12px;
  margin: 13px 0 10px;
}

#templatesView #designForm .form-grid label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #aeb7c4;
  gap: 0;
}

#templatesView #designForm .form-grid label input,
#templatesView #designForm .form-grid label select {
  width: 100%;
  margin-top: 8px;
}

#templatesView #designForm .form-grid label input[type="file"] {
  width: 100%;
}

#templatesView #designForm .form-grid label.full-span {
  grid-column: 1 / -1;
}

#templatesView #designForm .form-grid label.full-span small {
  display: block;
  margin-top: 6px;
  font-weight: 500;
  color: #8b96a8;
}

#templatesView #designForm .category-field-help {
  margin-top: 6px;
  font-weight: 400;
}

#templatesView #designForm .template-category-explainer {
  margin: 4px 0 16px;
}

#templatesView #designForm .form-error {
  margin: 0 0 12px;
}

#templatesView #designForm .form-error[hidden] {
  display: none !important;
}

#templatesView #designForm .required-mark {
  color: var(--pf-gold-500, #e8a045);
}

#designForm .primary-button {
  margin-top: 0;
}

#templatesView #designForm .primary-button:disabled {
  opacity: 0.42;
  cursor: not-allowed;
  box-shadow: none;
}

@media (max-width: 900px) {
  #templatesView #designForm .form-grid {
    grid-template-columns: 1fr;
  }
}

#templatesView .list-grid.card-grid {
  margin-top: 4px;
}

/* Multi-Platform Sets */
.set-explainer {
  display: grid;
  gap: 9px;
  margin: 0 0 12px;
}

.set-info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin: 0 0 12px;
  border: 1px solid #202731;
  border-radius: 10px;
  overflow: hidden;
  background: #0b0f14;
}

.set-info-grid > .set-info-card {
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  padding: 12px 14px;
}

.set-info-grid > .set-info-card + .set-info-card {
  border-left: 1px solid #202731 !important;
}

.set-info-card h3 {
  margin: 2px 0 5px;
  font-size: 12.5px;
  color: #f1eee8;
}

.set-info-card p {
  margin: 0;
  font-size: 10.8px;
  line-height: 1.45;
  color: #909aa7;
}

.set-bullets {
  display: grid;
  gap: 5px;
  margin-top: 8px;
}

.set-bullets div {
  display: flex;
  gap: 7px;
  align-items: flex-start;
  color: #9ba5b1;
  font-size: 10px;
  line-height: 1.4;
}

.set-bullets div::before {
  content: "✓";
  flex: 0 0 auto;
  color: #b88c55;
  font-weight: 700;
}

.set-info-card.caution .set-bullets div::before {
  content: "•";
  color: #7196aa;
}

.set-formats-compact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 16px !important;
}

.set-formats-compact h3 {
  margin-bottom: 0;
}

.format-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.format-pills span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  border: 1px solid #252d36;
  background: #0a0e13;
  border-radius: 9px;
  color: #7f8a97;
  font-size: 10px;
  white-space: nowrap;
}

.format-pills b {
  color: #d9dde2;
  font-size: 10px;
}

.set-advanced {
  padding: 0;
  overflow: hidden;
}

.set-advanced summary {
  cursor: pointer;
  list-style: none;
  padding: 14px 16px;
  color: #b5bec8;
  font-size: 11px;
  font-weight: 650;
}

.set-advanced summary::-webkit-details-marker {
  display: none;
}

.set-advanced summary::after {
  content: "+";
  float: right;
  color: #8e7553;
  font-size: 15px;
  line-height: 1;
}

.set-advanced[open] summary::after {
  content: "−";
}

.set-advanced > div {
  padding: 0 16px 15px;
  border-top: 1px solid #202730;
}

.set-advanced p {
  margin: 12px 0 0;
  color: #7f8a97;
  font-size: 11px;
  line-height: 1.6;
}

.set-advanced code {
  color: #c9a16b;
  font-size: 10px;
}

.item-card {
  padding: 16px 18px;
}

.item-card .title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.item-card .title-row h3 {
  margin: 0 0 4px;
  font-size: 14px;
  color: #f1eee8;
}

.item-card .title-row p {
  margin: 0;
  color: #909aa7;
  font-size: 11px;
  line-height: 1.5;
}

.source-columns-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.item-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.demo-platform-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 4px;
}

.demo-thumb {
  border: 1px solid #242b35;
  border-radius: 10px;
  background: linear-gradient(160deg, #12171e, #090c11 60%, #080a0e);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 8px;
  min-height: 110px;
  color: #dce1e7;
}

.demo-thumb strong {
  font-size: 11px;
}

.demo-thumb small {
  font-size: 9px;
  color: #8f9ba7;
}

.demo-thumb.vertical {
  aspect-ratio: 9 / 16;
}

.demo-thumb.portrait {
  aspect-ratio: 4 / 5;
}

.demo-thumb.square {
  aspect-ratio: 1 / 1;
}

.demo-thumb.wide {
  aspect-ratio: 16 / 9;
}

#setsView .list-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 13px;
  margin-top: 0;
}

#setsView .set-item-card {
  padding: 13px 14px;
  min-width: 0;
}

#setsView .set-item-card .title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

#setsView .set-item-card .title-row h3 {
  margin: 0 0 4px;
  font-size: 14px;
  font-weight: 630;
  color: #eeebe5;
}

#setsView .set-item-card .title-row p {
  margin: 0;
  font-size: 11px;
  color: #838d9a;
  line-height: 1.5;
}

#setsView .template-category-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  margin: 0 0 6px;
}

#setsView .template-category-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  width: max-content;
  max-width: 100%;
  padding: 4px 7px;
  border-radius: 999px;
  border: 1px solid #34404b;
  background: #10161c;
  color: #9aa8b5;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .02em;
  text-transform: none;
}

#setsView .template-category-badge.universal::before {
  content: "★";
  font-size: 9px;
}

#setsView .template-category-badge.tiktok {
  border-color: #685536;
  background: #1b160f;
  color: #dbc18d;
}

#setsView .template-category-badge.tiktok::before {
  content: "♪";
  font-size: 10px;
}

#setsView .source-columns-preview {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
  margin: 0 0 8px;
}

#setsView .source-columns-preview .chip {
  display: inline-flex;
  align-items: center;
  width: auto;
  max-width: 100%;
  padding: 5px 9px;
  font-size: 10.5px;
  font-weight: 620;
  background: #10151b;
  border: 1px solid #262d36;
  border-radius: 999px;
  color: #aeb7c4;
  letter-spacing: .06em;
  text-transform: uppercase;
}

#setsView .chip.orange {
  color: #cfaa7a;
  border-color: #473621;
  background: #19140e;
  padding: 5px 9px;
  font-size: 10.5px;
  font-weight: 620;
  letter-spacing: .06em;
  text-transform: uppercase;
}

#setsView .demo-platform-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  align-items: end;
  margin-top: 9px;
  padding: 2px 0;
  min-width: 0;
  width: 100%;
}

#setsView .demo-platform-grid > * {
  min-width: 0;
}

#setsView .demo-platform-grid .demo-thumb {
  display: grid;
  place-items: center;
  justify-self: center;
  min-height: 0;
  height: 110px;
  width: auto;
  max-height: none;
  margin: 0;
  padding: 8px;
  border: 1px solid #242b35;
  border-radius: 9px;
  background: linear-gradient(160deg, #12171e, #090c11 60%, #080a0e);
  box-shadow: none;
  color: #dce1e7;
  text-align: center;
  box-sizing: border-box;
  overflow: hidden;
}

#setsView .demo-platform-grid .demo-thumb.vertical {
  aspect-ratio: 9 / 16;
}

#setsView .demo-platform-grid .demo-thumb.portrait {
  aspect-ratio: 4 / 5;
}

#setsView .demo-platform-grid .demo-thumb.square {
  aspect-ratio: 1 / 1;
}

#setsView .demo-platform-grid .demo-thumb.wide {
  aspect-ratio: 16 / 9;
}

#setsView .demo-platform-grid.set-format-picker .demo-thumb {
  font: inherit;
  cursor: pointer;
  transition: border-color .14s ease, background .14s ease, color .14s ease, opacity .14s ease;
}

#setsView .demo-platform-grid.set-format-picker .demo-thumb.dimmed {
  opacity: .55;
  border-color: #1c222a;
}

#setsView .demo-platform-grid.set-format-picker .demo-thumb.dimmed:hover {
  opacity: .85;
  border-color: rgba(3, 177, 207, .35);
}

#setsView .demo-platform-grid.set-format-picker .demo-thumb.selected {
  opacity: 1;
}

#setsView .demo-platform-grid.set-format-picker .demo-thumb.active {
  border-color: rgba(3, 177, 207, .55);
  background: linear-gradient(160deg, rgba(3, 177, 207, .12), #090c11 60%, #080a0e);
  color: #e8fbff;
  box-shadow: inset 0 0 0 1px rgba(3, 177, 207, .22);
}

#setsView .demo-platform-grid .demo-thumb strong {
  display: block;
  font-size: 11px;
}

#setsView .demo-platform-grid .demo-thumb small {
  display: block;
  font-size: 9px;
  color: #8f9ba7;
}

#setsView .set-item-card .item-actions {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin-top: 14px;
}

#setsView .set-item-card .item-actions .primary-button,
#setsView .set-item-card .item-actions .secondary-button,
#setsView .set-item-card .item-actions .ghost-button {
  min-height: 34px;
  padding: 7px 11px;
  font-size: 11px;
  width: auto;
  flex: 0 0 auto;
}

.template-preview-set {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.template-preview-set article {
  display: grid;
  gap: 8px;
}

@media (max-width: 1200px) {
  #setsView .demo-platform-grid .demo-thumb {
    height: 92px;
  }
}

@media (max-width: 950px) {
  #setsView .demo-platform-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  #setsView .demo-platform-grid .demo-thumb {
    height: 82px;
  }
}

@media (max-width: 700px) {
  #setsView .demo-platform-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 10px;
  }

  #setsView .demo-platform-grid .demo-thumb {
    height: 86px;
  }

  .template-preview-set {
    grid-template-columns: 1fr;
  }
}

.schedule-list {
  display: grid;
  gap: 10px;
}

.schedule-item {
  border: 1px solid #252e37;
  border-radius: 12px;
  background: #10151b;
  padding: 12px 14px;
}

.schedule-item.disabled {
  opacity: .82;
}

.schedule-item-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.schedule-item h3 {
  margin: 0 0 3px;
  font-size: 14px;
  color: #f1eee8;
}

.schedule-item p {
  margin: 0;
  color: #99a4b1;
  font-size: 12px;
  line-height: 1.5;
}

.schedule-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.schedule-match {
  margin-top: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid #222933;
  background: #0b0f14;
  color: #8f9ba7;
  font-size: 11px;
  line-height: 1.45;
}

.schedule-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
  align-items: center;
}

.schedule-actions .muted {
  color: #8f9ba7;
  font-size: 12px;
  line-height: 1.45;
}

.schedule-zone-strip {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 10px 0;
  padding: 8px 10px;
  border: 1px solid #29313a;
  border-radius: 9px;
  background: #10151b;
  font-size: 11px;
  color: #8e98a3;
}

.schedule-zone-strip b {
  color: #e0d2b4;
}

.schedule-zone-strip .text-btn {
  margin-left: auto;
}

.schedule-form-actions {
  margin-top: 12px;
}

.status-dot.skipped {
  border: 1px solid #3a424d;
  background: #12161c;
  color: #a8b0bb;
}

#scheduleReadiness .schedule-readiness-card,
#scheduleMappingReadiness .schedule-readiness-card {
  margin-top: 8px;
}

.compact-select {
  width: auto;
  max-width: 100%;
  min-height: 36px;
  padding: 7px 10px;
  border-radius: 9px;
  border: 1px solid #2a313a;
  background: #0e1319;
  color: #d3d9e0;
  font: inherit;
  font-size: 12px;
  flex-shrink: 0;
}

.report-list {
  display: grid;
  gap: 10px;
}

.report-item {
  border: 1px solid #252e37;
  border-radius: 12px;
  background: #10151b;
  padding: 12px 14px;
}

.report-item-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.report-item h3 {
  margin: 0 0 3px;
  font-size: 14px;
  color: #f1eee8;
}

.report-item p {
  margin: 0;
  color: #99a4b1;
  font-size: 12px;
  line-height: 1.5;
}

.report-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
}

.report-meta .status-dot,
.report-meta .chip {
  white-space: nowrap;
  flex: 0 0 auto;
}

.report-details {
  margin-top: 10px;
  border-top: 1px solid #222933;
  padding-top: 8px;
}

.report-details summary {
  cursor: pointer;
  color: #aeb7c4;
  font-size: 11px;
  font-weight: 650;
}

.report-details pre {
  margin: 8px 0 0;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #222933;
  background: #0b0f14;
  color: #9aa3af;
  font-size: 10px;
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 220px;
  overflow: auto;
}

@media (max-width: 900px) {
  .report-item-head {
    flex-direction: column;
  }
}

@media (max-width: 900px) {
  .schedule-item-head {
    flex-direction: column;
  }
}

#setForm .set-formats-row {
  display: flex;
  align-items: flex-end;
  gap: 14px;
  flex-wrap: wrap;
  margin: 14px 0 0;
}

#setForm .set-formats-row .demo-platform-grid {
  flex: 1 1 420px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  align-items: end;
  margin-top: 0;
  min-width: 0;
}

#setForm .set-format-picker .demo-thumb {
  display: grid;
  place-items: center;
  justify-self: center;
  width: auto;
  height: 110px;
  min-height: 0;
  margin: 0;
  padding: 8px;
  border: 1px solid #242b35;
  border-radius: 9px;
  background: linear-gradient(160deg, #12171e, #090c11 60%, #080a0e);
  color: #dce1e7;
  text-align: center;
  box-sizing: border-box;
}

#setForm .set-format-picker .demo-thumb.vertical {
  aspect-ratio: 9 / 16;
}

#setForm .set-format-picker .demo-thumb.portrait {
  aspect-ratio: 4 / 5;
}

#setForm .set-format-picker .demo-thumb.square {
  aspect-ratio: 1 / 1;
}

#setForm .set-format-picker .demo-thumb.wide {
  aspect-ratio: 16 / 9;
}

#setForm .set-format-picker .demo-thumb strong {
  display: block;
  font-size: 11px;
}

#setForm .set-format-picker .demo-thumb small {
  display: block;
  font-size: 9px;
  color: #8f9ba7;
}

#setForm .variant-output-field {
  flex: 0 1 240px;
  min-width: 200px;
  display: grid;
  gap: 6px;
  margin: 0;
  font-size: 11px;
  font-weight: 600;
  color: #aeb7c4;
}

#setForm .variant-output-field select {
  margin-top: 0;
  font-weight: 400;
}

#setForm .variant-output-field small {
  display: block;
  margin-top: 0;
  font-size: 10px;
  font-weight: 500;
  line-height: 1.45;
  color: #8f99a7;
}

#setForm .set-format-picker .demo-thumb {
  font: inherit;
  cursor: pointer;
  transition: border-color .14s ease, background .14s ease, color .14s ease, opacity .14s ease;
}

#setForm .set-format-picker .demo-thumb.selected {
  opacity: 1;
}

#setForm .set-format-picker .demo-thumb.dimmed {
  opacity: .55;
  border-color: #1c222a;
}

#setForm .set-format-picker .demo-thumb.active {
  border-color: rgba(3, 177, 207, .55);
  background: linear-gradient(160deg, rgba(3, 177, 207, .12), #090c11 60%, #080a0e);
  color: #e8fbff;
  box-shadow: inset 0 0 0 1px rgba(3, 177, 207, .22);
  opacity: 1;
}

#setForm .set-format-picker .demo-thumb.active strong {
  color: #f0e6d8;
}

#setForm .primary-button {
  margin-top: 12px;
}

@media (max-width: 900px) {
  #setForm .set-formats-row {
    flex-direction: column;
    align-items: stretch;
  }

  #setForm .variant-output-field {
    flex: 1 1 auto;
    min-width: 0;
  }
}

@media (max-width: 950px) {
  .set-info-grid {
    grid-template-columns: 1fr;
  }

  .set-info-grid > .set-info-card + .set-info-card {
    border-left: 0 !important;
    border-top: 1px solid #202731 !important;
  }

  .set-formats-compact {
    flex-direction: column;
    align-items: flex-start;
  }

  .format-pills {
    justify-content: flex-start;
  }
}


.list-grid .template-card,
.card-grid.list-grid .template-card {
  margin: 0;
}

/* Wizard */
.wizard-progress {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
  padding: 7px 9px;
  border-radius: 9px;
}

.wizard-progress button {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 36px;
  padding: 7px 9px;
  border-radius: 9px;
  border: 1px solid #252c36;
  background: #0d1116;
  color: #9aa3af;
  font-size: 10.5px;
  cursor: pointer;
}

.wizard-progress button b {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #141a20;
  border: 1px solid #2d3540;
  font-size: 10px;
}

.wizard-progress button.current {
  border-color: var(--pf-teal-muted, rgba(3, 177, 207, .35));
  background: rgba(3, 177, 207, .08);
  color: #c8f0f8;
}

.wizard-progress button.current b {
  background: linear-gradient(180deg, var(--pf-cyan-hover, #22d3ee), var(--pf-cyan-500, #03B1CF));
  border-color: var(--pf-cyan-400, #03CEDA);
  color: #041016;
  box-shadow: 0 0 10px var(--pf-teal-glow, rgba(3, 177, 207, .45));
}

.wizard-progress > i {
  width: 18px;
  height: 1px;
  background: #2d3540;
  flex-shrink: 0;
}

.step-card {
  display: none;
  margin-bottom: 10px;
  padding: 0;
  border: 1px solid #252c34;
  border-radius: 10px;
  background: linear-gradient(180deg, #10141a 0%, #0d1116 100%);
  overflow: hidden;
}

#createView .step-card {
  display: block;
}

.step-card.active {
  display: block;
}

.step-head span {
  display: block;
  color: var(--pf-gold-muted, #bd9154);
  font-size: 8.5px;
  font-weight: 760;
  letter-spacing: .14em;
}

.step-head h2 {
  margin: 3px 0 11px;
  font-size: 15px;
  color: #f1eee8;
}

.step-head {
  padding: 9px 12px;
  border-bottom: 1px solid #1e252e;
}

.step-body {
  padding: 12px 13px;
}

.step-body > p {
  font-size: 12px;
  line-height: 1.55;
  margin-bottom: 11px;
}

.guided-subsection {
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid #1e252e;
}

.guided-subsection.compact {
  padding-bottom: 0;
  border-bottom: 0;
}

.guided-inline-actions {
  display: flex;
  align-items: center;
  gap: 12px 16px;
  flex-wrap: wrap;
}

.guided-inline-actions span {
  color: #7f8996;
  font-size: 12px;
  line-height: 1.55;
  max-width: 52ch;
}

.guided-subhead {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 10px;
  margin-bottom: 12px;
}

.guided-subhead b {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(3, 177, 207, .1);
  border: 1px solid rgba(3, 177, 207, .28);
  color: var(--pf-cyan-400, #03CEDA);
  font-size: 11px;
}

.guided-subhead strong {
  display: block;
  color: #e4e8ed;
  font-size: 13px;
}

.guided-subhead span {
  display: block;
  color: #7f8996;
  font-size: 12px;
  margin-top: 2px;
}

.choice-grid,
.source-method-grid,
.source-method-grid.guided-source-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.source-method {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 108px;
  text-align: left;
  padding: 10px 11px;
  border-radius: 9px;
  border: 1px solid #202731;
  background: #0b0f14;
  color: #c9cfd7;
  cursor: pointer;
  transition: border-color .16s ease, background .16s ease, transform .16s ease;
}

.source-method:hover {
  border-color: #3b4655;
  background: #0e1319;
  transform: translateY(-1px);
}

.source-method.featured {
  border-color: var(--pf-gold-border, rgba(232, 160, 69, .35));
  background: linear-gradient(180deg, #101418, #0d1116);
  box-shadow: inset 2px 0 0 var(--pf-gold-500, #e8a045);
}

.source-method strong {
  display: block;
  color: #e4e8ed;
  margin-bottom: 4px;
  font-size: 12.5px;
}

.source-method > span:not(.source-badge):not(.source-icon) {
  display: block;
  color: #7f8996;
  font-size: 10.5px;
  line-height: 1.45;
}

.source-method.selected {
  border-color: var(--pf-cyan-500, #03B1CF);
  box-shadow: 0 0 0 1px var(--pf-teal-muted, rgba(3, 177, 207, .35)), inset 2px 0 0 var(--pf-cyan-500, #03B1CF);
  background: linear-gradient(180deg, rgba(3, 177, 207, .1), #0d1116);
}

.source-method:has(.source-badge) strong {
  padding-right: 72px;
}

.source-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  display: inline-flex;
  align-items: center;
  padding: 3px 5px;
  border-radius: 999px;
  background: var(--pf-gold-chip-bg, #15110d);
  border: 1px solid var(--pf-gold-chip-border, #4a3d2b);
  color: var(--pf-gold-400, #f0b04a);
  font-size: 7.5px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  line-height: 1;
}

.source-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 27px;
  height: 27px;
  margin-bottom: 6px;
  border-radius: 7px;
  border: 1px solid rgba(3, 177, 207, .28);
  background: rgba(3, 177, 207, .08);
  font-size: 13px;
  line-height: 1;
  color: var(--pf-cyan-400, #03CEDA);
}

.source-choice-feedback {
  margin-top: 8px;
  padding: 8px 9px;
  border-radius: 8px;
  border: 1px solid #2a313a;
  background: #0f1319;
  color: #9aa3af;
}

.source-choice-feedback strong {
  display: block;
  color: #e4e8ed;
  margin-bottom: 4px;
}

.guided-action-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.guided-action-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.guided-action {
  text-align: left;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid #252c36;
  background: #0b0f14;
  color: #c9cfd7;
  cursor: pointer;
}

.guided-action strong {
  display: block;
  color: #e4e8ed;
  margin-bottom: 4px;
}

.guided-action span {
  display: block;
  color: #7f8996;
  font-size: 12px;
  line-height: 1.5;
}

.guided-action:hover {
  border-color: var(--pf-cyan-500, #03B1CF);
  box-shadow: 0 0 0 1px var(--pf-teal-muted, rgba(3, 177, 207, .35));
  background: rgba(3, 177, 207, .04);
}

/* Data sources hero */
.data-workbook-hero {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 13px 14px;
  margin: 10px 0 16px;
  border-radius: 10px;
  border-color: rgba(210, 178, 126, .23);
  background: linear-gradient(135deg, rgba(210, 178, 126, .075), rgba(255, 255, 255, .018) 58%, rgba(255, 255, 255, .008));
}

.data-workbook-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  border: 1px solid rgba(210, 178, 126, .25);
  background: rgba(210, 178, 126, .07);
  color: #d4b580;
  font-size: 18px;
}

.data-workbook-copy h2 {
  margin: 2px 0 3px;
  font-size: 16px;
  color: #f1eee8;
}

.data-workbook-copy p {
  margin: 0;
  color: #8995a2;
  font-size: 10.8px;
  line-height: 1.45;
  max-width: 760px;
}

.data-workbook-actions {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.workbook-count {
  color: #7f8996;
  font-size: 9px;
}

.data-sources-workspace {
  margin-top: 8px;
}

.data-section-title {
  margin: 8px 0 10px;
}

.data-section-title h2 {
  margin: 0 0 4px;
  font-size: 16px;
  color: #f1eee8;
}

.data-section-title p {
  margin: 0;
  color: #7f8996;
  font-size: 10.5px;
}

.external-source-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 8px;
}

.external-source-card {
  padding: 12px 13px;
}

.external-source-card .title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.external-source-card h3 {
  margin: 0 0 4px;
  font-size: 14px;
  color: #e4e8ed;
}

.external-source-card .title-row p {
  margin: 0;
  color: #7f8996;
  font-size: 11px;
}

.source-columns-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.external-source-meta {
  margin-top: 8px;
  padding-top: 7px;
  border-top: 1px solid #1e252e;
  color: #7f8996;
  font-size: 9px;
}

.external-source-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.source-connect-panel {
  margin: 14px 0;
  padding: 12px 13px;
  border: 1px solid #252c36;
  border-radius: 10px;
  background: #0d1116;
}

.source-connect-panel.hidden,
.source-connect-panel[hidden] {
  display: none !important;
}

.source-connect-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.source-connect-head h2 {
  margin: 2px 0 3px;
  font-size: 16px;
  color: #f1eee8;
}

.source-connect-head p {
  margin: 0;
  color: #7f8996;
  font-size: 10.5px;
  line-height: 1.45;
}

.data-source-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 14px;
  margin-bottom: 14px;
}

.source-family {
  padding: 13px;
}

.source-family h2 {
  margin: 0 0 4px;
  font-size: 16px;
  color: #efebe4;
}

.source-family > p {
  margin: 0;
  color: #808a97;
  font-size: 10.8px;
  line-height: 1.45;
}

.source-family .source-method-grid,
#sheetsView .source-method-grid {
  margin-top: 10px;
}

#sheetsView .source-family h2 {
  font-size: 16px;
}

#sheetsView .source-family > p {
  font-size: 10.8px;
  line-height: 1.45;
}

#sheetsView .data-workbook-copy p {
  max-width: 760px;
  font-size: 10.8px;
  line-height: 1.45;
}

#sheetsView .privacy-mode-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 0;
}

#sheetsView .privacy-mode {
  display: block;
  margin: 0;
  padding: 13px;
  border: 1px solid #202731;
  border-radius: 11px;
  background: #0b0f14;
  color: #ddd8d0;
  cursor: pointer;
  font-size: inherit;
}

#sheetsView .privacy-mode > div {
  display: flex;
  align-items: center;
  gap: 0;
}

#sheetsView .privacy-mode input[type="radio"] {
  width: auto;
  min-width: 0;
  height: auto;
  margin: 0 8px 0 0;
  padding: 0;
  flex-shrink: 0;
  accent-color: var(--accent, #03B1CF);
}

#sheetsView .privacy-mode strong {
  font-size: 13px;
  color: #e4e8ed;
  font-weight: 600;
}

#sheetsView .privacy-mode span {
  display: block;
  margin: 6px 0 0 24px;
  color: #788391;
  font-size: 11px;
  line-height: 1.5;
}

#sheetsView .privacy-mode:hover {
  border-color: #5d4c36;
  background: #15130f;
  box-shadow: inset 2px 0 0 var(--pf-cyan-500, #03B1CF);
}

#sheetsView #sourceForm.hidden,
#sheetsView #uploadSourceFields.hidden,
#sheetsView #publishedSourceFields.hidden,
#sheetsView #sourceAnalysis.hidden {
  display: none !important;
}

.source-method .source-note {
  display: block;
  margin-top: 8px;
  color: #6d7784;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.connector-more summary {
  cursor: pointer;
  padding: 12px 14px;
  color: #9aa3af;
  font-size: 11px;
  font-weight: 700;
}

.connector-list {
  padding: 0 14px 12px;
}

.connector-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid #1e252e;
}

.connector-row strong {
  display: block;
  color: #e4e8ed;
  font-size: 13px;
}

.connector-row span {
  display: block;
  color: #7f8996;
  font-size: 11px;
}

.connector-status {
  flex-shrink: 0;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid #2d3540;
  color: #8f99a7;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.connector-status.later {
  border-color: #3a424d;
  background: #10151b;
}

/* Data mappings */
.mapping-concept {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 16px 18px;
  margin-bottom: 16px;
}

.mapping-concept > b {
  color: #6d7784;
  font-size: 14px;
}

.mapping-concept-step {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 34px;
}

.mapping-concept-step span {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #141a20;
  border: 1px solid #2d3540;
  color: var(--pf-cyan-400, #03CEDA);
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}

.mapping-concept-step strong {
  display: block;
  color: #e4e8ed;
  font-size: 13px;
}

.mapping-concept-step small {
  display: block;
  color: #7f8996;
  font-size: 11px;
}

.mapping-concept-step.active span {
  background: linear-gradient(180deg, var(--pf-cyan-hover, #22d3ee), var(--pf-cyan-500, #03B1CF));
  border-color: var(--pf-cyan-400, #03CEDA);
  color: #041016;
  box-shadow: 0 0 10px var(--pf-teal-glow, rgba(3, 177, 207, .45));
}

.native-mapping-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 16px 0 20px;
  padding: 14px 16px;
  border: 1px solid #2a4a36;
  border-radius: 12px;
  background: #0d1611;
}

.native-mapping-note > div {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.native-mapping-note .checkmark {
  color: #8fd4a8;
  font-weight: 700;
}

.native-mapping-note strong {
  display: block;
  color: #e4e8ed;
  margin-bottom: 4px;
}

.native-mapping-note p {
  margin: 0;
  color: #7f8996;
  font-size: 12px;
  line-height: 1.55;
}

.mapping-list-title {
  margin-top: 4px;
}

.mapping-list {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
}

.mapping-row-card {
  padding: 14px 16px;
}

.mapping-row-main {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.mapping-source-name {
  display: block;
  color: #7f8996;
  font-size: 10px;
  margin-bottom: 4px;
}

.mapping-row-main h3 {
  margin: 0 0 4px;
  font-size: 15px;
  color: #e4e8ed;
}

.mapping-row-main p {
  margin: 0;
  color: #7f8996;
  font-size: 11px;
}

.mapping-field-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.mapping-field-preview span {
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid #2a313a;
  background: #10151b;
  color: #aeb7c4;
  font-size: 10px;
}

.mapping-row-card .item-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

@media (max-width: 900px) {
  .mapping-concept {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .mapping-concept > b {
    transform: rotate(90deg);
    justify-self: start;
    margin-left: 12px;
  }

  .native-mapping-note {
    align-items: flex-start;
    flex-direction: column;
  }
}

.sheet-mapping-workflow {
  margin-top: 24px;
  padding-top: 8px;
  border-top: 1px solid #1e252e;
}

#mappingsView .sheet-mapping-workflow .panel h4 {
  margin: 0 0 14px;
  font-size: 13px;
  color: #e4e8ed;
}

#mappingsView .sheet-mapping-workflow .form-field {
  display: grid;
  gap: 6px;
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 600;
  color: #aeb7c4;
}

#mappingsView .sheet-mapping-workflow .form-field.compact {
  margin-bottom: 0;
}

#mappingsView .sheet-mapping-workflow .form-field-label {
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
  line-height: 1.4;
}

#mappingsView .sheet-mapping-workflow .required-mark {
  color: var(--pf-gold-500, #e8a045);
  font-weight: 700;
}

#mappingsView .sheet-mapping-workflow .form-field input,
#mappingsView .sheet-mapping-workflow .form-field textarea,
#mappingsView .sheet-mapping-workflow .form-field select,
#mappingsView .sheet-mapping-workflow .timezone-setup-card select {
  width: 100%;
  margin-top: 0;
  font-weight: 400;
}

#mappingsView .sheet-mapping-workflow .timezone-setup-card {
  gap: 10px;
}

#mappingsView .sheet-mapping-workflow .timezone-setup-card h5 {
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
  margin: 0 0 2px;
  font-size: 12px;
  font-weight: 700;
  color: #dce3ee;
}

#mappingsView #sheetMappingWorkflow .timezone-setup-card > label.toggle-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  margin: 4px 0 0;
  padding: 10px;
  border: 1px solid #28323b;
  border-radius: 9px;
  background: #0d1319;
  cursor: pointer;
  font-size: 11px;
  font-weight: 500;
  color: #c5cdd8;
}

#mappingsView #sheetMappingWorkflow .timezone-setup-card > label.toggle-row input[type="checkbox"] {
  width: auto;
  height: auto;
  min-width: 0;
  margin: 0;
  padding: 0;
  flex-shrink: 0;
  accent-color: var(--accent, #03B1CF);
}

#mappingsView #sheetMappingWorkflow .timezone-setup-card > label.toggle-row span {
  display: block;
  line-height: 1.45;
  min-width: 0;
  color: #c5cdd8;
  font-weight: 500;
}

#mappingsView .sheet-mapping-workflow .form-grid.three,
#mappingsView .sheet-mapping-workflow .form-grid.four {
  margin-top: 12px;
}

#mappingsView .sheet-mapping-workflow .form-grid.three label,
#mappingsView .sheet-mapping-workflow .form-grid.four label {
  display: grid;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 600;
  color: #aeb7c4;
}

#mappingsView .sheet-mapping-workflow .form-grid.three input,
#mappingsView .sheet-mapping-workflow .form-grid.three select,
#mappingsView .sheet-mapping-workflow .form-grid.four input,
#mappingsView .sheet-mapping-workflow .form-grid.four select {
  margin-top: 0;
  font-weight: 400;
}

#sourceForm .form-grid .wide {
  grid-column: 1 / -1;
}

#sheetsView #sourceForm.form-card {
  padding: 20px;
  margin: 14px 0 18px;
}

#sheetsView #sourceForm .card-head {
  margin-bottom: 16px;
}

#sheetsView #sourceForm .form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px;
  margin: 18px 0;
}

#sheetsView #sourceForm .form-grid label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #aeb7c4;
}

#sheetsView #sourceForm .form-grid label input,
#sheetsView #sourceForm .form-grid label select {
  width: 100%;
  margin-top: 8px;
}

#sheetsView #sourceForm .form-grid label input[type="file"] {
  width: 100%;
}

#templatesView #designForm .form-grid label input[type="file"] {
  width: 100%;
}

#sheetsView #sourceForm .notice {
  margin: 0 0 16px;
  padding: 12px 14px;
}

#sheetsView #sourceForm .row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 4px;
}

#sheetsView #sourceForm #demoUploadSaveBtn {
  margin-top: 6px;
}

#sheetsView #sourceForm .privacy-mode-grid {
  margin: 16px 0;
}

#sourceForm .analysis {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid #2a313a;
  background: #0f1319;
  color: #9aa3af;
  font-size: 12px;
}

#sourceForm .analysis strong {
  display: block;
  color: #e4e8ed;
  margin-bottom: 4px;
}

@media (max-width: 900px) {
  .external-source-list,
  .data-source-intro,
  .source-method-grid,
  .source-family .source-method-grid,
  #sheetsView .privacy-mode-grid,
  #sheetsView #sourceForm .form-grid {
    grid-template-columns: 1fr;
  }

  .source-connect-head {
    flex-direction: column;
  }
}

.queue-summary {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}

.queue-summary-grid,
.report-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 14px;
}

.summary-pill {
  padding: 10px 12px;
  border: 1px solid #262e37;
  border-radius: 10px;
  background: #0f141a;
}

.summary-pill small {
  display: block;
  color: #8f9aa7;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.summary-pill strong {
  display: block;
  margin-top: 3px;
  font-size: 18px;
  color: #e8e4dc;
}

.queue-timezone-note {
  margin: 0;
  padding: 10px 12px;
  font-size: 12px;
}

.queue-list {
  display: grid;
  gap: 10px;
}

.queue-batch {
  border: 1px solid #252e37;
  border-radius: 12px;
  background: #10151b;
  padding: 12px 14px;
}

.queue-batch.has-failures {
  border-color: rgba(215, 120, 120, .35);
}

.queue-batch-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid #222933;
}

.queue-batch-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-shrink: 0;
}

.queue-batch-actions .secondary-button {
  white-space: nowrap;
}

.queue-batch-head h3 {
  margin: 0 0 4px;
  font-size: 14px;
  color: #f1eee8;
}

.queue-batch-head small {
  color: #8f9aa7;
  font-size: 11px;
  line-height: 1.45;
}

.queue-item {
  border: 1px solid #252e37;
  border-radius: 12px;
  background: #0d1116;
  padding: 11px 12px;
}

.queue-item + .queue-item {
  margin-top: 8px;
}

.queue-item-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.queue-main {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  min-width: 0;
  flex: 1;
}

.queue-item h3 {
  margin: 0 0 3px;
  font-size: 14px;
  color: #f1eee8;
}

.queue-item p {
  margin: 0;
  color: #99a4b1;
  font-size: 12px;
  line-height: 1.5;
}

.queue-preview {
  width: 62px;
  aspect-ratio: 4 / 5;
  border-radius: 7px;
  border: 1px solid #343d47;
  background: linear-gradient(160deg, #12171e, #090c11);
  display: grid;
  place-items: center;
  overflow: hidden;
  flex-shrink: 0;
  padding: 0;
  cursor: pointer;
}

.queue-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.queue-preview-failure span {
  color: #e0a0a0;
  font-size: 22px;
  font-weight: 800;
}

.queue-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.status-dot {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  width: auto;
  height: auto;
  min-height: 0;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid #2a313a;
  background: #10151b;
  color: #aeb7c4;
  box-shadow: none;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.status-dot::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
  background: #7e8791;
}

.status-dot.success {
  border: 1px solid #2a4a36;
  background: #0d1611;
  color: #8fd4a8;
}

.status-dot.success::before {
  background: #47a574;
}

.status-dot.failure {
  border: 1px solid #4a3030;
  background: #161010;
  color: #e0a0a0;
}

.status-dot.failure::before {
  background: #cf6565;
}

.status-dot.skipped::before {
  background: #8f96a0;
}

.status-chip-live > .status-dot {
  width: 7px;
  height: 7px;
  padding: 0;
  border: 0;
  background: #47a574;
  box-shadow: 0 0 10px rgba(71, 165, 116, .45);
  border-radius: 50%;
}

.status-chip-live > .status-dot::before {
  content: none;
  display: none;
}

.queue-item-expiry {
  margin-top: 7px;
  color: #7f8996;
  font-size: 10px;
  line-height: 1.45;
}

.queue-failure-reason {
  margin-top: 7px !important;
  color: #d59696 !important;
}

.queue-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
  flex-shrink: 0;
}

.queue-list.generated-poster-grid {
  display: grid;
  gap: 12px;
}

@media (max-width: 900px) {
  .queue-summary-grid,
  .report-summary {
    grid-template-columns: 1fr 1fr;
  }

  .queue-item-head,
  .queue-batch-head {
    flex-direction: column;
  }

  .queue-actions {
    width: 100%;
    justify-content: flex-start;
  }
}

@media (max-width: 620px) {
  .queue-summary-grid,
  .report-summary {
    grid-template-columns: 1fr 1fr;
  }
}

#queuePreviewDialog .freelancer-dialog {
  width: min(860px, calc(100vw - 30px));
}

#queuePreviewDialog .poster-large-preview {
  display: grid;
  place-items: center;
  min-height: 320px;
  background: #090d11;
  border: 1px solid #29333d;
  border-radius: 10px;
  overflow: hidden;
}

#queuePreviewDialog .poster-large-preview img {
  display: block;
  max-width: 100%;
  max-height: 520px;
}

#queuePreviewDialog .dialog-actions {
  justify-content: flex-end;
  margin-top: 12px;
}

/* Settings */
.settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 12px;
  align-items: start;
}

.settings-grid .panel,
.settings-grid .card {
  padding: 18px 20px;
}

.settings-team-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 0 0 12px;
  padding: 14px 16px;
  border: 1px solid #2a313a;
  border-radius: 12px;
  background: #0f1319;
}

.settings-team-strip b {
  display: block;
  margin-top: 4px;
  color: #ece8e0;
  font-size: 13px;
  line-height: 1.45;
}

.settings-team-strip p {
  margin: 4px 0 0;
  color: #7f8996;
  font-size: 12px;
}

.settings-team-strip small {
  display: block;
  margin-top: 4px;
  color: #7f8996;
  font-size: 11px;
  line-height: 1.45;
}

.settings-time-preview {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  margin: 0;
}

.settings-time-preview > div {
  border: 1px solid #283039;
  border-radius: 9px;
  background: #10151b;
  padding: 9px;
  display: grid;
  gap: 3px;
}

.settings-time-preview span {
  display: block;
  color: #87919c;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.settings-time-preview b {
  display: block;
  margin-top: 2px;
  color: #d7dbe0;
  font-size: 12px;
}

.freelancer-settings-extra {
  margin-top: 12px;
}

.identity-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  margin: 0;
}

.identity-row > div {
  padding: 9px;
  border: 1px solid #28323b;
  border-radius: 9px;
  background: #0d1319;
}

.identity-row span {
  display: block;
  color: #7f8c99;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: .07em;
}

.identity-row b {
  display: block;
  margin-top: 2px;
  color: #e1e5e9;
  font-size: 11px;
  line-height: 1.45;
}

#settingsView .page-head {
  margin-bottom: 16px;
}

#settingsView .settings-grid .form-card {
  display: grid;
  gap: 10px;
  padding: 16px 18px;
  height: auto;
}

#settingsView .settings-grid .form-card h2 {
  margin: 2px 0 0;
  font-size: 16px;
  font-weight: 620;
  color: #f1eee8;
  letter-spacing: -.02em;
}

#settingsView .settings-grid .form-card .muted {
  margin: 0;
  color: #8d97a2;
  font-size: 11px;
  line-height: 1.55;
}

#settingsView .settings-grid .form-card label {
  display: grid;
  gap: 5px;
  margin: 0;
  font-size: 10px;
  font-weight: 700;
  color: #929daa;
  letter-spacing: 0;
  text-transform: none;
}

#settingsView .settings-grid .form-card label input,
#settingsView .settings-grid .form-card label select {
  width: 100%;
  min-height: 36px;
  padding: 7px 9px;
  border: 1px solid #303a45;
  border-radius: 8px;
  background: #10161c;
  color: #e0e4e8;
  font-size: 11px;
  box-shadow: none;
}

#settingsView .settings-grid .form-card .notice {
  margin: 0;
  padding: 10px 11px;
}

#settingsView .settings-grid .form-card .notice strong {
  font-size: 11px;
}

#settingsView .settings-grid .form-card .notice span {
  font-size: 10px;
  line-height: 1.45;
}

#settingsView .settings-grid .form-card > .primary-button,
#settingsView .settings-grid .form-card > .secondary-button,
#settingsView .settings-grid .form-card > .ghost-button {
  width: auto;
  justify-self: start;
  margin-top: 2px;
}

#settingsView .settings-grid .form-card > .row {
  margin: 0;
  gap: 8px;
}

#settingsView .settings-grid .form-card > .toggle-row {
  margin: 0;
  padding: 10px;
  border: 1px solid #28323b;
  border-radius: 9px;
  background: #0d1319;
}

#settingsView .settings-grid .form-card .policy-strip {
  margin-top: 0;
}

#settingsView .freelancer-settings-extra .danger-card .policy-strip {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

#settingsView .clarity-grid {
  margin-top: 4px;
  margin-bottom: 0;
}

#settingsView .clarity-card {
  padding: 16px 18px;
}

#settingsView .clarity-card h3 {
  font-size: 14px;
}

#settingsView .clarity-card p {
  font-size: 11px;
  line-height: 1.55;
  color: #8f99a6;
}

.notice {
  margin: 9px 0;
  padding: 9px 11px;
  border: 1px solid #2a313a;
  border-radius: 8px;
  background: #10151b;
}

.notice strong {
  display: block;
  margin-bottom: 4px;
  color: #e8e4dc;
  font-size: 11.5px;
}

.notice span {
  display: block;
  color: #8f99a6;
  font-size: 10.5px;
  line-height: 1.48;
}

.notice.good {
  border-color: #2f4a35;
  background: #101912;
}

.notice.good strong {
  color: #b8ddb8;
}

.notice.amber {
  border-color: #3d3325;
  background: #13100c;
}

.notice.amber strong {
  color: #d7bd92;
}

.notice.amber span {
  color: #b8a688;
}

#schedulesView #scheduleForm.form-card {
  padding: 18px;
  margin: 14px 0 18px;
}

#schedulesView #scheduleForm .card-head {
  margin-bottom: 14px;
}

#schedulesView #scheduleForm .card-head h2 {
  margin: 0;
  font-size: 17px;
  font-weight: 620;
  color: #f1eee8;
  letter-spacing: -.02em;
}

#schedulesView #scheduleForm .card-head p {
  margin: 5px 0 0;
  color: #7f8996;
  font-size: 12px;
  line-height: 1.55;
}

#schedulesView #scheduleForm .form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 11px 0;
}

#schedulesView #scheduleForm .form-grid label {
  display: block;
  font-size: 11px;
  font-weight: 580;
  color: #aeb7c4;
  letter-spacing: 0;
  text-transform: none;
}

#schedulesView #scheduleForm .form-grid label input:not([type="checkbox"]):not([type="radio"]),
#schedulesView #scheduleForm .form-grid label select {
  width: 100%;
  margin-top: 6px;
  border: 1px solid #252c36;
  background: #090c10;
  color: #e9edf2;
  border-radius: 9px;
  padding: 9px 11px;
  box-shadow: none;
  font-size: 12px;
}

#schedulesView #scheduleForm .schedule-design-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  align-self: start;
}

#schedulesView #scheduleForm .schedule-design-field-label {
  font-size: 12px;
  font-weight: 600;
  color: #c6ced8;
}

#schedulesView #scheduleForm #scheduleDesignPicker {
  margin-top: 0;
  border: 1px solid #252c36;
  background: #090c10;
  border-radius: 9px;
  overflow: hidden;
  max-height: 196px;
}

#schedulesView #scheduleForm #scheduleDesignPickerMeta {
  display: block;
  padding: 8px 11px;
  border-bottom: 1px solid #1a212b;
  color: #7f8b9c;
  font-size: 10.5px;
  line-height: 1.4;
  flex: 0 0 auto;
}

#schedulesView #scheduleForm #scheduleDesignList {
  max-height: 148px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 6px;
  min-height: 0;
}

#schedulesView #scheduleForm .schedule-design-empty {
  padding: 14px 11px;
  color: #7f8b9c;
  font-size: 12px;
}

#schedulesView #scheduleForm .schedule-enabled-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 12px 0 4px;
  color: #e9edf2;
  font-weight: 600;
}

#schedulesView #scheduleForm .schedule-check-list {
  margin: 8px 0 0;
  padding-left: 18px;
  color: #c5ced9;
  font-size: 13px;
}

#schedulesView #scheduleForm .schedule-check-list li + li {
  margin-top: 4px;
}

#schedulesView #scheduleForm .schedule-design-option {
  display: flex !important;
  flex-direction: row;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
  padding: 9px 10px;
  border-radius: 8px;
  cursor: pointer;
  color: #e9edf2;
  font-weight: 500;
  font-size: 12px;
  width: 100%;
  box-sizing: border-box;
}

#schedulesView #scheduleForm .schedule-design-option + .schedule-design-option {
  margin-top: 2px;
}

#schedulesView #scheduleForm .schedule-design-option:hover {
  background: rgba(255, 255, 255, .03);
}

#schedulesView #scheduleForm .schedule-design-option.is-selected {
  background: rgba(3, 177, 207, .12);
  box-shadow: inset 0 0 0 1px rgba(3, 177, 207, .28);
}

#schedulesView #scheduleForm .schedule-design-option.is-disabled {
  opacity: .55;
  cursor: not-allowed;
}

#schedulesView #scheduleForm .schedule-design-option > input[type="checkbox"] {
  flex: 0 0 auto;
  width: 15px !important;
  height: 15px !important;
  min-width: 15px;
  max-width: 15px;
  margin: 2px 0 0 !important;
  padding: 0 !important;
  border: 1px solid #3a4554 !important;
  border-radius: 3px !important;
  background: #10161f !important;
  box-shadow: none !important;
  appearance: auto;
  -webkit-appearance: checkbox;
  accent-color: #03b1cf;
}

#schedulesView #scheduleForm .schedule-design-option > span {
  flex: 1 1 auto;
  min-width: 0;
  text-align: left;
}

#schedulesView #scheduleForm .schedule-design-option strong {
  display: block;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.35;
}

#schedulesView #scheduleForm .schedule-design-option-hint {
  display: block;
  margin-top: 3px;
  color: #7f8b9c;
  font-size: 10.5px;
  font-weight: 450;
  line-height: 1.35;
}

#schedulesView #scheduleForm .tiny.muted {
  display: block;
  margin-top: 6px;
  color: #7f8b9c;
  font-size: 10.5px;
  font-weight: 450;
  line-height: 1.4;
}

#schedulesView #scheduleForm .schedule-time-gap-error {
  color: #f0a8a0 !important;
}

#schedulesView #scheduleForm .form-grid label input:not([type="checkbox"]):not([type="radio"]):focus,
#schedulesView #scheduleForm .form-grid label select:focus {
  border-color: #7d5d38;
  box-shadow: 0 0 0 3px rgba(3, 177, 207, .08);
}

#schedulesView #scheduleForm .card-head {
  margin-bottom: 10px;
}

#schedulesView #scheduleForm .schedule-source-hint {
  display: grid;
  gap: 4px;
  margin: 0 0 12px;
  padding: 9px 11px;
  border: 1px solid #1f2732;
  border-radius: 9px;
  background: rgba(255, 255, 255, .02);
  color: #8b96a6;
  font-size: 11px;
  line-height: 1.45;
}

#schedulesView #scheduleForm .schedule-source-hint strong {
  color: #c4ccd8;
  font-size: 11px;
  font-weight: 650;
}

#schedulesView #scheduleForm .schedule-source-hint span {
  color: #7f8b9c;
}

#schedulesView #scheduleForm .schedule-zone-strip {
  margin: 4px 0 9px;
  padding: 7px 9px;
  font-size: 10px;
}

#schedulesView #scheduleForm .schedule-zone-strip .text-btn {
  font-size: 10px;
}

#schedulesView #scheduleForm #scheduleReadiness {
  margin: 0 0 10px;
  padding: 10px 11px;
}

#schedulesView #scheduleForm #scheduleReadiness strong {
  font-size: 11px;
  margin-bottom: 3px;
}

#schedulesView #scheduleForm #scheduleReadiness span {
  font-size: 11px;
  line-height: 1.45;
}

#schedulesView #scheduleForm #scheduleReadiness.good,
#schedulesView #scheduleForm #scheduleReadiness.notice.good {
  border-color: #203c2c;
  background: #0d1611;
}

#schedulesView #scheduleForm #scheduleReadiness.good strong,
#schedulesView #scheduleForm #scheduleReadiness.notice.good strong {
  color: #a7dfbd;
}

#schedulesView #scheduleForm #scheduleReadiness.good span,
#schedulesView #scheduleForm #scheduleReadiness.notice.good span {
  color: #86b59a;
}

#schedulesView #scheduleForm .schedule-form-actions {
  margin-top: 0;
  gap: 7px;
}

#schedulesView #scheduleForm .schedule-form-actions .secondary-button,
#schedulesView #scheduleForm .schedule-form-actions .primary-button {
  min-height: 34px;
  padding: 7px 12px;
  font-size: 11px;
}

#schedulesView #scheduleForm #scheduleResult {
  margin-top: 10px;
  font-size: 11px;
}

#schedulesView #scheduleForm #scheduleResult strong {
  font-size: 11px;
}

#schedulesView #scheduleForm #scheduleResult p {
  font-size: 11px;
  line-height: 1.45;
}

@media (max-width: 760px) {
  #schedulesView #scheduleForm .form-grid {
    grid-template-columns: 1fr;
  }
}

.danger-card {
  border-color: #4a2a2a;
  background: linear-gradient(180deg, #171012, #120e0f);
}

.danger-action {
  color: #f0a8a8 !important;
  border-color: #5a3030 !important;
}

.creator-extension-panel {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #252c36;
}

#settingsTeamPanel {
  margin-top: 16px;
}

@media (max-width: 900px) {
  .identity-row,
  .settings-time-preview {
    grid-template-columns: 1fr;
  }

  .settings-team-strip {
    align-items: stretch;
    flex-direction: column;
  }

  .settings-team-strip .secondary-button {
    width: 100%;
  }
}

/* Team */
.team-summary-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-bottom: 12px;
  border: 1px solid #28313a;
  border-radius: 11px;
  overflow: hidden;
  background: #28313a;
}

.team-summary-strip > div {
  padding: 10px 12px;
  background: #0e1318;
}

.team-summary-strip span {
  display: block;
  color: #7f8b98;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.team-summary-strip b {
  display: block;
  margin-top: 3px;
  color: #e1e5e9;
  font-size: 12px;
}

.team-layout {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 12px;
  margin-bottom: 18px;
}

.team-invite-card,
.team-role-card {
  padding: 16px;
}

.team-invite-card h2,
.team-role-card h2 {
  margin: 4px 0 7px;
}

.team-invite-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin: 12px 0;
}

.team-invite-form label,
.team-invite-result label {
  display: grid;
  gap: 5px;
  color: #929daa;
  font-size: 10px;
}

.team-invite-result {
  margin-top: 12px;
  padding: 12px;
  border: 1px solid #2d3742;
  border-radius: 10px;
  background: #0d1116;
}

.team-invite-result-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
}

.team-role-comparison {
  display: grid;
  gap: 10px;
  margin: 10px 0;
}

.team-role-comparison strong {
  display: block;
  margin-bottom: 4px;
  color: #e8e4dc;
}

.team-role-comparison span {
  display: block;
  color: #8f99a6;
  font-size: 12px;
  line-height: 1.5;
}

.team-role-note {
  margin: 0;
  color: #8f99a6;
  font-size: 12px;
  line-height: 1.5;
}

.team-member-list,
.team-invite-list {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}

.team-member-row,
.team-invite-row {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(110px, .55fr) minmax(110px, .55fr) auto;
  gap: 10px;
  align-items: center;
  padding: 11px 12px;
  border: 1px solid #252e37;
  border-radius: 12px;
  background: #10151b;
}

.team-member-main b,
.team-invite-main b {
  display: block;
  color: #ece8e0;
  font-size: 13px;
}

.team-member-main small,
.team-invite-main small {
  display: block;
  margin-top: 3px;
  color: #8f99a6;
  font-size: 11px;
  line-height: 1.45;
}

.team-row-meta span {
  display: block;
  color: #7f8996;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.team-row-meta b {
  display: block;
  margin-top: 3px;
  color: #e1e5e9;
  font-size: 12px;
}

.team-row-actions {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
  flex-wrap: wrap;
}

.team-empty {
  padding: 14px 16px;
  border: 1px dashed #2d3742;
  border-radius: 10px;
  color: #8f99a6;
  font-size: 12px;
}

.team-invite-heading {
  align-items: flex-end;
}

.team-invite-heading select {
  max-width: 190px;
}

.team-accept-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 12px 0;
}

.team-accept-meta span {
  display: block;
  color: #7f8996;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.team-accept-meta b {
  display: block;
  margin-top: 4px;
  color: #ece8e0;
  font-size: 13px;
}

.status-chip.warn {
  border-color: #5a4a2a;
  color: #e0c48a;
}

.status-chip.bad {
  border-color: #5a3030;
  color: #f0a8a8;
}

@media (max-width: 1000px) {
  .team-layout {
    grid-template-columns: 1fr;
  }

  .team-member-row,
  .team-invite-row {
    grid-template-columns: minmax(0, 1.2fr) minmax(100px, .6fr) auto;
  }

  .team-member-row .team-row-meta:nth-of-type(2),
  .team-invite-row .team-row-meta:nth-of-type(2) {
    display: none;
  }
}

@media (max-width: 760px) {
  .team-summary-strip {
    grid-template-columns: 1fr 1fr;
  }

  .team-invite-form {
    grid-template-columns: 1fr;
  }

  .team-member-row,
  .team-invite-row {
    grid-template-columns: 1fr;
  }

  .team-row-actions {
    justify-content: flex-start;
  }

  .team-member-row .team-row-meta,
  .team-invite-row .team-row-meta {
    display: block !important;
  }

  .team-invite-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .team-invite-heading select {
    max-width: none;
  }

  .team-accept-meta {
    grid-template-columns: 1fr;
  }
}

/* Plan */
.plan-current-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.plan-current-strip > div {
  padding: 14px 16px;
  border: 1px solid #252c36;
  border-radius: 12px;
  background: #0d1116;
}

.plan-current-strip span {
  display: block;
  color: #7f8996;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .1em;
}

.plan-current-strip b {
  display: block;
  margin-top: 6px;
  color: #f1eee8;
  font-size: 1rem;
}

.plan-usage-grid,
.customer-plan-grid,
.topup-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.plan-usage-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.usage-card {
  padding: 12px 14px;
  border: 1px solid #252c36;
  border-radius: 10px;
  background: #0d1116;
}

.usage-card span {
  display: block;
  color: #7f8996;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.usage-card strong {
  display: block;
  margin: 6px 0;
  color: #f1eee8;
  font-size: 1rem;
}

.usage-card small {
  display: block;
  color: #8f99a6;
  font-size: 11px;
  line-height: 1.45;
}

.usage-meter {
  height: 6px;
  margin: 8px 0;
  border-radius: 999px;
  background: #1a212b;
  overflow: hidden;
}

.usage-meter i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #8a6a3d, #c9a56a);
}

.customer-plan-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 14px;
  border: 1px solid #28323b;
  border-radius: 11px;
  background: #0d1319;
}

.customer-plan-card.current {
  border-color: #6a5739;
  background: linear-gradient(180deg, #17140f, #0e1217);
  box-shadow: inset 2px 0 0 #b6925d;
}

.customer-plan-card h3 {
  margin: 4px 0 0;
}

.customer-plan-card p {
  margin: 8px 0 10px;
  color: #8f99a6;
  font-size: 12px;
  line-height: 1.5;
  min-height: 54px;
}

.customer-plan-card ul {
  margin: 0 0 12px;
  padding-left: 16px;
  color: #aeb7c4;
  font-size: 11px;
  line-height: 1.5;
}

.customer-plan-card ul li.off {
  color: #66707d;
  text-decoration: line-through;
}

.plan-card-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
}

.plan-card-head .plan-price b {
  display: block;
  color: #ece8e0;
  font-size: 1.1rem;
}

.plan-card-head .plan-price span {
  display: block;
  color: #8f99a6;
  font-size: 10px;
}

.topup-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px;
  border: 1px solid #28323b;
  border-radius: 11px;
  background: #0d1319;
}

.topup-card span {
  color: #c9a56a;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.topup-card b {
  color: #f1eee8;
  font-size: 1.2rem;
}

.topup-card small {
  color: #8f99a6;
  font-size: 11px;
  margin-bottom: 8px;
}

.entitlement-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border: 1px solid #28323b;
  border-radius: 9px;
  background: #0d1319;
}

.entitlement-row b {
  display: block;
  color: #dce1e6;
  font-size: 11px;
}

.entitlement-row small {
  display: block;
  margin-top: 2px;
  color: #7f8c99;
  font-size: 9px;
  line-height: 1.45;
}

.entitlement-row .status-chip {
  flex-shrink: 0;
  font-size: 9px;
  padding: 4px 7px;
}

.topup-history-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 9px 10px;
  border: 1px solid #28323b;
  border-radius: 9px;
  background: #0d1319;
}

.topup-history-row b {
  display: block;
  color: #dce1e6;
  font-size: 10.5px;
}

.topup-history-row small {
  display: block;
  margin-top: 2px;
  color: #7f8c99;
  font-size: 9px;
  line-height: 1.45;
}

.topup-history-row > span {
  flex-shrink: 0;
  color: #9aa6b2;
  font-size: 9px;
  text-align: right;
  line-height: 1.45;
}

.downgrade-box label {
  display: flex !important;
  align-items: center;
  gap: 7px;
  margin: 6px 0;
  color: #c9cfd7;
  font-size: 12px;
  line-height: 1.4;
}

.downgrade-box label input[type="checkbox"] {
  width: 14px;
  height: 14px;
  min-width: 14px;
  margin: 0;
  padding: 0;
  flex-shrink: 0;
  accent-color: #a98c5b;
}

.downgrade-box label span {
  flex: 0 1 auto;
  min-width: 0;
}

.customer-plan-grid .plan-card,
.topup-grid .plan-card {
  padding: 18px;
}

.trial-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
  padding: 16px 18px;
  border: 1px solid #343c49;
  border-radius: 12px;
  background: #10151b;
}

.two-col.freelancer-two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 14px;
}

.entitlement-list {
  display: grid;
  gap: 7px;
  margin: 9px 0 0;
}

.downgrade-box {
  margin: 12px 0;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid rgba(215, 189, 146, .3);
  background: rgba(215, 189, 146, .06);
  color: #c9cfd7;
  font-size: 12px;
}

.downgrade-box.hidden {
  display: none;
}

.billing-note {
  margin-top: 10px;
  padding: 10px;
  border: 1px solid #28323b;
  border-radius: 9px;
  background: #0d1319;
}

.billing-note b {
  display: block;
  color: #dce1e6;
  font-size: 10px;
}

.billing-note span {
  display: block;
  margin-top: 3px;
  color: #7f8c99;
  font-size: 9.5px;
  line-height: 1.45;
}

.topup-history {
  display: grid;
  gap: 7px;
}

.policy-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-top: 10px;
  border: 1px solid #28323b;
  border-radius: 9px;
  overflow: hidden;
  background: #28323b;
}

.policy-strip > div {
  padding: 9px;
  background: #0d1319;
}

.policy-strip span,
.policy-strip b {
  display: block;
}

.policy-strip span {
  color: #7f8c99;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.policy-strip b {
  margin-top: 2px;
  color: #dce1e6;
  font-size: 10px;
  line-height: 1.45;
}

/* Plans & add-ons — lower detail sections */
#planView .plan-detail-row {
  align-items: stretch;
  margin-top: 0;
  margin-bottom: 14px;
}

#planView .plan-detail-row > .card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 18px 20px;
}

#planView .plan-detail-row .clarity-kicker + h2 {
  margin: 4px 0 0;
  font-size: 17px;
  color: #f1eee8;
}

#planView .plan-detail-row .form-card label {
  margin: 12px 0 0;
}

#planView .plan-detail-row .form-card .primary-button,
#planView .plan-detail-row .form-card .ghost-button {
  width: 100%;
  margin-top: 10px;
}

#planView .plan-detail-row .notice {
  margin-top: 12px;
}

#planView > .card {
  padding: 18px 20px;
  margin-bottom: 14px;
}

#planView > .card:last-child {
  margin-bottom: 0;
}

#planView > .card .card-head {
  margin-bottom: 0;
}

#planView .topup-history .empty-state {
  padding: 16px;
  border: 1px dashed #28323b;
  border-radius: 9px;
  text-align: center;
}

@media (max-width: 900px) {
  .policy-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .policy-strip {
    grid-template-columns: 1fr;
  }
}

/* Discord */
#discordView .page-head {
  align-items: flex-end;
  gap: 18px;
  margin-bottom: 18px;
}

#discordView .page-head .status-chip {
  flex: 0 0 auto;
  margin: 0;
  align-self: flex-end;
}

#discordView .clarity-grid {
  margin-bottom: 16px;
}

#discordView .two-col.freelancer-two-col {
  align-items: stretch;
  gap: 14px;
  margin-bottom: 16px;
}

#discordView .form-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 18px 20px;
}

#discordView .card-head {
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

#discordView .card-head h2 {
  margin: 0 0 6px;
}

#discordView .card-head .secondary-button,
#discordView .card-head .chip {
  flex-shrink: 0;
  margin-top: 2px;
}

#discordView .integration-identity {
  margin: 0 0 14px;
  padding: 14px 16px;
}

#discordView .form-card > .row {
  margin: 0 0 12px;
  gap: 10px;
}

#discordView .form-card > .toggle-row {
  margin: 10px 0 0;
}

#discordView > .card {
  padding: 18px 20px;
}

#discordView .discord-destination-list,
#discordView .compact-activity {
  flex: 1;
  min-height: 112px;
}

#discordView > .card .compact-activity {
  margin-top: 2px;
}

.integration-identity {
  margin: 12px 0;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid #252c36;
  background: #0b0f14;
}

.integration-identity span {
  display: block;
  color: #7f8996;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .1em;
}

.integration-identity b {
  display: block;
  margin: 4px 0;
  color: #f1eee8;
}

.integration-identity small {
  color: #7f8996;
}

.discord-destination-list,
.compact-activity {
  display: grid;
  gap: 8px;
  min-height: 80px;
  color: #7f8996;
  font-size: 12px;
}

.discord-destination-list .empty-state,
.compact-activity .empty-state {
  display: grid;
  gap: 6px;
  justify-items: center;
  padding: 20px 16px;
  border: 1px dashed #2a313a;
  border-radius: 10px;
  text-align: center;
}

.discord-destination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 11px 12px;
  border: 1px solid #252e37;
  border-radius: 10px;
  background: #0f1419;
}

.discord-destination b {
  display: block;
  color: #ece8e0;
  font-size: 13px;
}

.discord-destination small {
  display: block;
  margin-top: 3px;
  color: #8f99a6;
  font-size: 11px;
}

.activity-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid #252e37;
  border-radius: 10px;
  background: #0f1419;
}

.activity-row b {
  display: block;
  color: #ece8e0;
  font-size: 13px;
}

.activity-row small {
  display: block;
  margin-top: 3px;
  color: #8f99a6;
  font-size: 11px;
}

.card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.card-head h2 {
  margin: 2px 0 3px;
  font-size: 17px;
  color: #f1eee8;
}

.card-head p {
  margin: 0;
  color: #7f8996;
  font-size: 11.5px;
  line-height: 1.5;
}

.icon-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid #2a313a;
  background: #10151b;
  color: #aeb7c4;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

/* Help drawer */
.help-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .55);
  z-index: 80;
}

.help-backdrop[hidden] {
  display: none !important;
}

.help-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(420px, 100vw);
  height: 100vh;
  z-index: 90;
  display: flex;
  flex-direction: column;
  background: #0d1116;
  border-left: 1px solid #252c36;
  box-shadow: -20px 0 60px rgba(0, 0, 0, .45);
}

.help-drawer[hidden] {
  display: none !important;
}

.help-drawer-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 18px 12px;
  border-bottom: 1px solid #1e252e;
}

.help-drawer-head h2 {
  margin: 4px 0 0;
  font-size: 21px;
  color: #f1eee8;
}

.help-drawer-body {
  overflow: auto;
  padding: 16px 18px 24px;
}

.help-section {
  margin-bottom: 18px;
}

.help-section h3 {
  font-size: 13px;
}

.help-section p,
.help-section li {
  color: #9aa3af;
  line-height: 1.65;
  font-size: 12px;
}

.glossary {
  display: grid;
  gap: 10px;
}

.glossary div {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #222933;
  background: #0b0f14;
}

.glossary b,
.glossary strong {
  font-size: 11px;
}

.glossary span {
  color: #7f8996;
  font-size: 11px;
  line-height: 1.5;
}

.owner-template-actions {
  justify-content: flex-end;
}

.data-sources-shell {
  margin-top: 4px;
}

body.help-drawer-open {
  overflow: hidden;
}

.data-sources-workspace > .source-family-grid {
  display: none;
}

.data-sources-workspace > .important-guidance {
  display: none;
}

@media (max-width: 1100px) {
  .clarity-grid,
  .settings-grid,
  .two-col.freelancer-two-col,
  .choice-grid,
  .source-method-grid.guided-source-grid,
  .guided-action-grid.three {
    grid-template-columns: 1fr;
  }

  .clarity-grid > .clarity-card + .clarity-card {
    border-left: 0 !important;
    border-top: 1px solid #202731 !important;
  }

  .plan-current-strip,
  .plan-usage-grid,
  .customer-plan-grid,
  .topup-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .data-workbook-hero {
    grid-template-columns: 1fr;
  }

  .data-workbook-actions {
    align-items: flex-start;
  }
}

@media (max-width: 760px) {
  .plan-current-strip,
  .plan-usage-grid,
  .customer-plan-grid,
  .topup-grid {
    grid-template-columns: 1fr;
  }

  .wizard-progress span {
    display: none;
  }
}

/* Home page — demo #screen-home parity */
#homeView .owner-create-action {
  flex-shrink: 0;
  min-width: 168px;
}

#homeView .hero-card .demo-starter-btn {
  flex-shrink: 0;
  white-space: nowrap;
}

@media (max-width: 900px) {
  #homeView .generator-welcome,
  #homeView .page-head,
  #homeView .hero-card {
    align-items: stretch;
    flex-direction: column;
  }
}

/* Generate workbench */
.generate-grid {
  display: grid;
  grid-template-columns: minmax(300px, .85fr) minmax(380px, 1.15fr);
  gap: 18px;
  align-items: start;
}

.generate-grid .form-card,
.generate-grid .preview-card {
  padding: 20px;
}

.generate-source-summary {
  margin: 8px 0 10px;
  padding: 9px 10px;
  border: 1px solid #26303a;
  border-radius: 10px;
  background: #0e1318;
  font-size: 12px;
  color: #aab4c0;
  line-height: 1.55;
}

.generate-template-confirmation {
  margin: 9px 0 10px;
  padding: 10px;
  border: 1px solid #2a333d;
  border-radius: 10px;
  background: #0b1015;
  min-height: 72px;
}

.generate-template-confirmation.empty {
  display: none;
}

.generate-confirm-shell {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px 11px;
  align-items: center;
}

.generate-confirm-visual {
  display: flex;
  gap: 6px;
  align-items: flex-end;
  min-width: 58px;
}

.generate-confirm-thumb {
  display: grid;
  place-items: center;
  width: 48px;
  max-height: 66px;
  overflow: hidden;
  border: 1px solid #35404b;
  border-radius: 6px;
  background: #080b0f;
}

.generate-confirm-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.generate-confirm-thumb span {
  padding: 5px;
  color: #8f9aa6;
  font-size: 8px;
  text-align: center;
}

.generate-confirm-copy {
  min-width: 0;
}

.generate-confirm-copy .clarity-kicker {
  display: block;
  margin-bottom: 2px;
}

.generate-confirm-copy strong {
  display: block;
  font-size: 12.5px;
  color: #e8e7e4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.generate-confirm-copy p {
  margin: 3px 0 0;
  color: #85909c;
  font-size: 10px;
  line-height: 1.45;
}

.generate-confirm-copy .temp-status {
  display: inline-flex;
  margin-top: 6px;
  padding: 3px 6px;
  border: 1px solid #35533e;
  border-radius: 999px;
  background: #0c1711;
  color: #93caa5;
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
}

.generate-confirm-actions {
  grid-column: 1 / -1;
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-start;
  padding-top: 1px;
}

.temp-adjust-banner {
  margin: 8px 0 0;
  padding: 8px 9px;
  border: 1px solid #35513d;
  border-radius: 8px;
  background: #0c1610;
  color: #a8d0b4;
  font-size: 10px;
  line-height: 1.45;
}

.temp-adjust-banner b {
  color: #c6e0cf;
}

#templatePreviewDialog.v16-preview-dialog {
  width: min(920px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  padding: 0;
  border: 1px solid #2a333d;
  border-radius: 14px;
  background: #0b1015;
  color: #e8e7e4;
}

#templatePreviewDialog .dialog-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px 12px;
  border-bottom: 1px solid #222a31;
}

#templatePreviewDialog .dialog-head h2 {
  margin: 4px 0 0;
  font-size: 18px;
}

#templatePreviewDialog .dialog-head p {
  margin: 6px 0 0;
  color: #8b97a4;
  font-size: 11px;
  line-height: 1.5;
}

.template-preview-toolbar {
  display: flex;
  gap: 10px;
  align-items: end;
  justify-content: space-between;
  padding: 12px 18px;
  border-bottom: 1px solid #222a31;
}

.template-preview-toolbar label {
  max-width: 520px;
  flex: 1;
  margin: 0;
  display: grid;
  gap: 5px;
  font-size: 10px;
  color: #8b97a4;
}

.template-preview-stage {
  padding: 18px;
  overflow: auto;
  max-height: calc(100vh - 220px);
}

.template-preview-single {
  display: grid;
  grid-template-columns: minmax(240px, 520px) minmax(220px, 1fr);
  gap: 18px;
  align-items: start;
}

.template-preview-canvas {
  background: #07090c;
  border: 1px solid #303842;
  border-radius: 12px;
  overflow: hidden;
  min-width: 0;
  box-shadow: 0 18px 46px rgba(0, 0, 0, .22);
}

.template-preview-canvas img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.preview-status {
  border: 1px solid #2a323b;
  border-radius: 11px;
  padding: 12px;
  display: grid;
  gap: 4px;
}

.preview-status.good {
  border-color: #35533e;
  background: #0c1711;
}

.preview-status.bad {
  border-color: #5a3434;
  background: #170f0f;
}

.preview-status b {
  font-size: 13px;
}

.preview-status span {
  font-size: 11px;
  color: #99a3ae;
  line-height: 1.5;
}

#bulkRowsControls {
  grid-template-columns: minmax(150px, .9fr) minmax(0, 1.2fr) auto;
}

#bulkRowsControls .bulk-filter-copy {
  align-self: center;
  min-width: 0;
}

#bulkRowsControls .bulk-filter-copy small {
  display: block;
  margin-top: 3px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

#bulkRowsControls label {
  min-width: 0;
}

#bulkRowsControls input {
  width: 100%;
  min-width: 0;
}

.active-generation-jobs:not(:empty) {
  padding: 10px;
  border: 1px solid #4a3f2f;
  border-radius: 10px;
  background: #15120d;
}

.active-job-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px auto;
  gap: 10px;
  align-items: center;
}

.active-job-row + .active-job-row {
  margin-top: 8px;
}

.active-job-row b,
.active-job-row small {
  display: block;
}

.active-job-row small {
  margin-top: 2px;
  color: #938873;
  font-size: 9px;
}

.job-progress {
  height: 6px;
  border-radius: 99px;
  background: #25211a;
  overflow: hidden;
}

.job-progress i {
  display: block;
  height: 100%;
  background: #c6a96f;
}

.job-progress.is-indeterminate i {
  width: 35%;
  animation: job-progress-indeterminate 1.2s ease-in-out infinite;
}

@keyframes job-progress-indeterminate {
  0% { transform: translateX(-120%); }
  100% { transform: translateX(320%); }
}

.workspace-generation-queue .job-progress {
  margin-top: 6px;
}

.generate-workbench-progress {
  margin-top: 10px;
  padding: 10px 12px;
  border: 1px solid #4a3f2f;
  border-radius: 10px;
  background: #15120d;
}

.generate-workbench-progress .job-progress {
  margin-top: 8px;
}

.generated-card .demo-thumb {
  margin-bottom: 8px;
  border-radius: 8px;
  overflow: hidden;
  background: #0a0e13;
  min-height: 80px;
}

.generated-card .demo-thumb.square {
  aspect-ratio: 1;
}

@media (max-width: 900px) {
  #bulkRowsControls {
    grid-template-columns: 1fr 1fr;
  }

  #bulkRowsControls .secondary-button {
    grid-column: 1 / -1;
  }

  .generate-confirm-shell {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .generate-confirm-actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }

  .active-job-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  #bulkRowsControls {
    grid-template-columns: 1fr;
  }

  .generate-confirm-shell {
    grid-template-columns: 1fr;
  }

  .generate-confirm-visual {
    order: 2;
  }
}

.bulk-mode-panel {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid #222933;
}

.bulk-mode-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 10px 0;
}

.bulk-mode {
  display: block;
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #252c36;
  background: #0d1116;
  color: #c8d0da;
  cursor: pointer;
}

.bulk-mode b {
  display: block;
  color: #f1eee8;
  font-size: 13px;
  margin-bottom: 3px;
}

.bulk-mode small {
  display: block;
  color: #909aa7;
  font-size: 11px;
  line-height: 1.45;
}

.bulk-mode.active {
  border-color: #60482d;
  background: #14110d;
  box-shadow: inset 2px 0 0 #bd8d53;
}

.bulk-filter {
  display: grid;
  gap: 10px;
  margin: 10px 0 4px;
  padding: 12px;
  border: 1px solid #222933;
  border-radius: 10px;
  background: #0b0f14;
}

.bulk-filter-copy b {
  display: block;
  color: #e7e9ec;
  font-size: 13px;
}

.bulk-filter-copy small {
  color: #909aa7;
  font-size: 11px;
}

.selection-tools {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  margin: 10px 0;
}

.selection-tools span {
  margin-left: auto;
  color: #909aa7;
  font-size: 12px;
}

.row-list {
  display: grid;
  gap: 9px;
  margin-top: 14px;
  max-height: 430px;
  overflow: auto;
}

.bulk-row-list .row-option {
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 8px;
  border: 1px solid #1f2630;
  background: #0a0e13;
  border-radius: 10px;
  padding: 11px;
  color: #fff;
}

.bulk-row-list .row-option input {
  grid-column: 1;
  grid-row: 1;
  margin: 3px 0 0;
}

.bulk-row-list .row-option span {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
}

.bulk-row-list .row-option strong,
.bulk-row-list .row-option small {
  display: block;
}

.bulk-row-list .row-option small {
  color: #909aa7;
  font-size: 11px;
  margin-top: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.generation-validation {
  display: grid;
  gap: 7px;
  margin: 10px 0;
}

.validation-line {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid #26303a;
  border-radius: 9px;
  background: #0e1318;
  font-size: 12px;
}

.validation-line.good {
  border-color: #214936;
}

.validation-line.bad {
  border-color: #5a2a2a;
}

.validation-line strong {
  color: #e7e9ec;
}

.validation-line span {
  color: #9ba6b3;
}

.generate-actions {
  margin-top: 12px;
}

.generated-output {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.generated-card {
  padding: 10px;
  border: 1px solid #1f2630;
  border-radius: 11px;
  background: #090c10;
  font-size: 12px;
}

.generated-card strong {
  display: block;
  color: #e7e9ec;
  margin-bottom: 4px;
}

.generated-card p {
  margin: 0;
  color: #909aa7;
}

.active-generation-jobs {
  margin-bottom: 14px;
}

@media (max-width: 1100px) {
  .generate-grid {
    grid-template-columns: 1fr;
  }
}

/* Generate page — demo #screen-generate parity (v16/v19) */
#generateView .generate-grid {
  gap: 10px;
}

#generateView .form-card > label,
#generateView .generate-design-field {
  display: grid;
  gap: 5px;
  margin: 0;
  font-size: 12px;
  font-weight: 580;
  color: #aeb7c4;
  letter-spacing: 0;
  text-transform: none;
}

#generateView .generate-design-field-label {
  display: block;
}

#generateView .generate-design-select {
  position: relative;
}

#generateView .generate-design-select-native {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
  margin: 0;
  padding: 0;
  border: 0;
}

#generateView .generate-design-select-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  text-align: left;
  border: 1px solid #252c36;
  background: #090c10;
  color: #e9edf2;
  border-radius: 10px;
  padding: 11px 12px;
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.35;
  min-height: 42px;
  transition: border-color .14s ease, box-shadow .14s ease;
}

#generateView .generate-design-select-trigger span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#generateView .generate-design-select.open .generate-design-select-trigger,
#generateView .generate-design-select-trigger:focus-visible {
  border-color: #c4a46a;
  box-shadow: 0 0 0 1px rgba(196, 164, 106, .35);
  outline: none;
}

#generateView .generate-design-select-trigger::after {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 2px solid #c8ced5;
  border-bottom: 2px solid #c8ced5;
  transform: rotate(45deg);
  margin-top: -3px;
  flex: 0 0 auto;
}

#generateView .generate-design-select-menu {
  position: absolute;
  z-index: 24;
  top: calc(100% + 2px);
  left: 0;
  right: 0;
  margin: 0;
  padding: 0;
  border: 1px solid #b8cadc;
  background: #0a0e13;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .45);
  max-height: 220px;
  overflow: auto;
}

#generateView .generate-design-select-option {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #e9edf2;
  padding: 7px 10px;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.35;
  cursor: pointer;
  transition: background .12s ease, color .12s ease;
}

#generateView .generate-design-select-option:hover,
#generateView .generate-design-select-option.active {
  background: #99c4f0;
  color: #1a2430;
}

#generateView .generate-design-select-option:disabled {
  opacity: .45;
  cursor: not-allowed;
}

#generateView .secondary-button.full {
  margin: 8px 0 10px;
  padding: 9px 10px;
  border: 1px solid #26303a;
  border-radius: 10px;
  background: #0e1318;
  font-size: 12px;
  color: #aab4c0;
  line-height: 1.55;
}

#generateView .generate-source-summary strong {
  display: block;
  color: #e7e9ec;
  font-size: 12px;
  margin-bottom: 2px;
}

#generateView .generate-template-confirmation {
  margin: 9px 0 10px;
  padding: 10px;
  border: 1px solid #2a333d;
  border-radius: 10px;
  background: #0b1015;
  min-height: 72px;
}

#generateView .generate-template-confirmation.empty {
  display: none;
}

#generateView .secondary-button.full {
  width: 100%;
}

#generateView .bulk-mode-panel {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #252b32;
}

#generateView .bulk-mode-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  margin-top: 7px;
}

#generateView .bulk-mode {
  appearance: none;
  border: 1px solid #29313a;
  background: #11161c;
  color: #c8ced5;
  border-radius: 10px;
  padding: 9px 10px;
  text-align: left;
  display: grid;
  gap: 2px;
  cursor: pointer;
  width: 100%;
  transition: background .14s ease, border-color .14s ease, color .14s ease, box-shadow .14s ease;
}

#generateView .bulk-mode b {
  font-size: 12px;
  display: block;
  margin: 0;
  color: inherit;
}

#generateView .bulk-mode small {
  font-size: 10px;
  color: #87919c;
  line-height: 1.35;
  display: block;
}

#generateView .bulk-mode.active {
  border-color: rgba(191, 167, 127, .52);
  background: rgba(191, 167, 127, .08);
  box-shadow: none;
}

#generateView .bulk-mode.active b {
  color: #ead7ae;
}

#generateView .bulk-mode:hover {
  border-color: #5d4c36;
  background: #15130f;
  color: #eadcc6;
  box-shadow: inset 2px 0 0 var(--pf-cyan-500, #03B1CF);
}

#generateView .bulk-mode.active:hover {
  border-color: #8a6b43;
  background: #19150f;
  color: #f0dfc5;
}

#generateView .bulk-filter {
  margin-top: 8px;
  padding: 9px;
  border: 1px solid #27303a;
  border-radius: 10px;
  background: #0f1419;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  gap: 8px;
  align-items: end;
}

#generateView .bulk-filter label {
  margin: 0;
  display: grid;
  gap: 4px;
  font-size: 11px;
  font-weight: 580;
  color: #aeb7c4;
  letter-spacing: 0;
  text-transform: none;
}

#generateView .bulk-filter-copy {
  display: grid;
  gap: 2px;
}

#generateView .bulk-filter-copy b {
  font-size: 12px;
  color: #e7e9ec;
}

#generateView .bulk-filter-copy small {
  font-size: 10px;
  color: #87919c;
}

#generateView #bulkRowsControls {
  grid-template-columns: minmax(150px, .9fr) minmax(0, 1.2fr) auto;
}

#generateView .bulk-row-list .row-option {
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px;
  align-items: flex-start;
  padding: 9px 10px;
  border: 1px solid #26303a;
  border-radius: 9px;
  background: #0e1318;
  cursor: pointer;
  color: #d6dce2;
  transition: background .14s ease, border-color .14s ease, color .14s ease, box-shadow .14s ease;
}

#generateView .bulk-row-list .row-option:hover {
  border-color: #5d4c36;
  background: #15130f;
  color: #eadcc6;
  box-shadow: inset 2px 0 0 var(--pf-cyan-500, #03B1CF);
}

#generateView .bulk-row-list .row-option input {
  width: auto;
  margin: 3px 0 0;
}

#generateView .bulk-row-list .row-option strong {
  font-size: 11px;
}

#generateView .bulk-row-list .row-option small {
  margin-top: 2px;
  color: #7f8b98;
  font-size: 9.5px;
  line-height: 1.35;
}

#generateView .row-list {
  gap: 6px;
  margin-top: 9px;
}

#generateView .variant-choices {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: 8px 0;
}

#generateView label.variant-check {
  display: flex !important;
  align-items: center;
  gap: 6px;
  width: auto;
  margin: 0;
  color: #c8ced5;
  font-size: 10px;
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: 0;
  text-transform: none;
  white-space: nowrap;
}

#generateView .variant-check {
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px solid #252c36;
  border-radius: 999px;
  padding: 5px 8px;
  font-size: 10px;
  background: #0d1116;
  cursor: pointer;
  transition: background .14s ease, border-color .14s ease, color .14s ease, box-shadow .14s ease;
}

#generateView .variant-check:hover {
  border-color: #5d4c36;
  background: #15130f;
  color: #eadcc6;
  box-shadow: inset 2px 0 0 var(--pf-cyan-500, #03B1CF);
}

#generateView .variant-check input[type="checkbox"] {
  width: 14px;
  height: 14px;
  min-width: 14px;
  min-height: 14px;
  margin: 0;
  padding: 0;
  flex-shrink: 0;
  border: 1px solid #3a4654;
  border-radius: 3px;
  background: #0b1015;
  accent-color: #5b9fd8;
}

#generateView .generated-output {
  gap: 8px;
  margin-top: 10px;
}

#generateView .generated-card {
  padding: 8px;
  border-radius: 9px;
}

#generateView .active-generation-jobs {
  margin-bottom: 0;
}

#generateView .active-generation-jobs:not(:empty) {
  margin-bottom: 14px;
}

#generateView .generate-confirm-actions .secondary-button,
#generateView .generate-confirm-actions .ghost-button {
  min-height: 34px;
  padding: 7px 9px;
  font-size: 10px;
}

#generateView .avatar-dependency-chip {
  display: inline-flex;
  margin-top: 6px;
  padding: 3px 6px;
  border: 1px solid #303a43;
  border-radius: 999px;
  background: #0b1116;
  color: #85919b;
  font-size: 8px;
  font-weight: 700;
}

#generateView .template-category-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  margin-top: 7px;
}

#generateView .template-category-row .avatar-dependency-chip {
  margin-top: 0;
}

#generateView .template-category-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  width: max-content;
  padding: 4px 7px;
  border-radius: 999px;
  border: 1px solid #34404b;
  background: #10161c;
  color: #9aa8b5;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .02em;
}

#generateView .template-category-badge.universal::before {
  content: "+";
  font-size: 9px;
  font-weight: 700;
}

#generateView .template-category-badge.tiktok {
  border-color: #685536;
  background: #1b160f;
  color: #dbc18d;
}

#generateView .template-category-badge.tiktok::before {
  content: "♪";
  font-size: 10px;
}

@media (max-width: 900px) {
  #generateView .bulk-filter {
    grid-template-columns: 1fr 1fr;
  }

  #generateView .bulk-filter .secondary-button {
    grid-column: 1 / -1;
  }

  #generateView #bulkRowsControls {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 620px) {
  #generateView .bulk-mode-grid {
    grid-template-columns: 1fr;
  }

  #generateView .bulk-filter,
  #generateView #bulkRowsControls {
    grid-template-columns: 1fr;
  }

  #generateView .selection-tools span {
    margin-left: 0;
    width: 100%;
  }
}

/* Global app footer — demo legal strip on every page */
.app-footer {
  margin-top: 52px;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, .06);
}

.app-footer-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 28px 48px;
  align-items: start;
}

.app-footer-brand strong {
  display: block;
  font-size: 18px;
  font-weight: 720;
  letter-spacing: -.02em;
  color: #f1eee8;
  margin-bottom: 8px;
}

.app-footer-brand p {
  margin: 0 0 10px;
  max-width: 560px;
  color: #778291;
  font-size: 12.5px;
  line-height: 1.65;
}

.app-footer-notice {
  font-size: 11.5px !important;
  color: #5f6875 !important;
  line-height: 1.7 !important;
}

.app-footer-nav {
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-end;
  align-items: center;
  gap: 14px;
}

.app-footer-link {
  flex: 0 0 auto;
  white-space: nowrap;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--pf-cyan-400, #03CEDA);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.4;
  cursor: pointer;
  text-align: left;
  transition: color .16s ease;
}

.app-footer-link:hover {
  color: var(--pf-cyan-hover, #22d3ee);
}

.app-footer-bottom {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px 40px;
  margin-top: 26px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, .04);
  color: #5c6673;
  font-size: 11px;
  line-height: 1.55;
}

.app-footer-copy {
  flex: 0 0 auto;
  white-space: nowrap;
}

.app-footer-launch-note {
  flex: 0 1 auto;
  margin-left: auto;
  max-width: none;
  text-align: right;
  color: #505862;
}

.login-shell.login-shell-with-footer {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  min-height: 100vh;
  padding: 24px 24px 0;
}

.login-shell-with-footer > .login-card {
  margin: auto;
  width: min(480px, 100%);
}

.app-footer-auth {
  flex-shrink: 0;
  width: min(1640px, 100%);
  margin: 32px auto 0;
  padding-inline: 18px;
  padding-bottom: 28px;
}

@media (max-width: 900px) {
  .app-footer-main {
    grid-template-columns: 1fr;
  }

  .app-footer-nav {
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .app-footer-bottom {
    flex-direction: column;
    flex-wrap: wrap;
    align-items: flex-start;
  }

  .app-footer-launch-note {
    margin-left: 0;
    text-align: left;
  }
}

/* PosterForge Tables — native workbook (demo #screen-table parity) */
.tables-eyebrow {
  margin-top: 14px;
}

#tablesView .page-head .text-btn {
  display: inline-block;
  margin: 0 0 2px;
  padding: 0;
  color: var(--pf-cyan-400, #03CEDA);
  font-weight: 620;
}

#tablesView .page-head .text-btn:hover {
  color: var(--pf-cyan-hover, #22d3ee);
}

#tablesView .page-head > .primary-button,
#tablesView .native-workbook-head > .primary-button {
  min-height: 42px;
  border-radius: 10px;
  padding: 10px 15px;
  font-size: 13px;
  font-weight: 650;
}

#tablesView .native-table-manage .ghost-button {
  min-height: 42px;
  border-radius: 10px;
  padding: 10px 15px;
  font-size: 13px;
  font-weight: 650;
  background: transparent;
  border: 1px solid #242b35;
  color: #aeb7c4;
}

#tablesView .native-table-manage .ghost-button:hover {
  background: #0f1319;
  border-color: #343c49;
  color: #e2e5e9;
}

.native-preview-tabs {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.native-preview-tabs span {
  padding: 6px 9px;
  border: 1px solid #29313a;
  background: #0a0e13;
  border-radius: 8px;
  color: #aab4c0;
  font-size: 10px;
}

.native-workbook-card {
  padding: 13px 14px;
  margin: 12px 0;
}

.native-workbook-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.native-workbook-head h2 {
  margin: 2px 0 3px;
  font-size: 16px;
}

.native-workbook-head p {
  margin: 0;
  color: #8995a2;
  font-size: 10.8px;
  line-height: 1.45;
}

.native-tabs-wrap {
  overflow-x: auto;
  margin: 10px -2px 7px;
  padding: 2px;
}

.native-tabs {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  min-width: max-content;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  padding: 0 2px;
}

.native-tab {
  min-height: 34px;
  border: 1px solid rgba(255, 255, 255, .07);
  border-bottom: 0;
  background: rgba(255, 255, 255, .02);
  color: #aeb9c8;
  border-radius: 8px 8px 0 0;
  padding: 7px 10px;
  font-size: 10.5px;
  font-weight: 650;
  position: relative;
  top: 1px;
  cursor: pointer;
}

.native-tab.active {
  color: #fff;
  background: linear-gradient(180deg, rgba(210, 178, 126, .13), rgba(255, 255, 255, .035));
  border-color: rgba(210, 178, 126, .28);
}

.native-table-manage {
  padding-top: 4px;
  flex-wrap: wrap;
  gap: 5px;
}

.archived-tables {
  margin-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, .07);
  padding-top: 14px;
}

.archived-table-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid rgba(255, 255, 255, .06);
  border-radius: 12px;
  padding: 10px 12px;
  color: #aab6c6;
}

.archived-table-row + .archived-table-row {
  margin-top: 7px;
}

.native-auto-map {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
  margin: 14px 0;
  padding: 14px;
  border: 1px solid #25372c;
  background: #0c1510;
  border-radius: 12px;
}

.native-auto-map .checkmark {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #13261a;
  color: #91d9ad;
  border: 1px solid #284e36;
  font-weight: 700;
}

.native-auto-map strong {
  display: block;
  color: #b6dfc4;
}

.native-auto-map p {
  margin: 4px 0 0;
  color: #7f9c89;
  font-size: 12px;
  line-height: 1.55;
}

.native-table-editor-card,
#tablesView .card.form-card:has(.native-table-toolbar) {
  padding: 15px 16px;
  margin-bottom: 14px;
}

#tablesView .native-table-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  margin: 8px 0;
}

#tablesView .native-table-toolbar .row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
  min-width: 0;
}

#tablesView .native-table-toolbar .secondary-button,
#tablesView .native-table-toolbar .ghost-button {
  min-height: 42px !important;
  padding: 10px 15px !important;
  font-size: 13px !important;
  font-weight: 650;
  border-radius: 10px;
  line-height: 1.2;
  white-space: nowrap;
}

#tablesView .native-table-toolbar .secondary-button {
  background: #11161c;
  border: 1px solid #272e38;
  color: #dbe0e7;
}

#tablesView .native-table-toolbar .ghost-button {
  background: #0d1116;
  border: 1px solid #242b35;
  color: #aeb7c4;
  font-weight: 600;
}

#tablesView .native-table-toolbar .secondary-button:hover {
  background: #151a21;
  border-color: #343c49;
}

#tablesView .native-table-toolbar .ghost-button:hover {
  background: #11161c;
  border-color: #343c49;
  color: #e2e5e9;
}

#tablesView .native-table-status {
  flex-shrink: 0;
  margin-left: auto;
  font-size: 9.5px;
  color: #798491;
  white-space: nowrap;
  text-align: right;
}

#tablesView .field-type-menu {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  margin: 7px 0;
}

#tablesView .field-type-menu button {
  min-height: 42px;
  border: 1px solid #272e38;
  background: #11161c;
  color: #dbe0e7;
  border-radius: 10px;
  padding: 10px 12px;
  font: inherit;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.2;
  cursor: pointer;
}

#tablesView .field-type-menu button:hover {
  background: #151a21;
  border-color: #343c49;
  color: #edf2f9;
}

#tablesView .native-table-wrap {
  margin-top: 9px;
  border: 1px solid #202731;
  border-radius: 9px;
  overflow: auto;
  background: #090c10;
  box-shadow: none;
}

#tablesView .native-table {
  width: 100%;
  min-width: 1100px;
  border-collapse: separate;
  border-spacing: 0;
}

#tablesView .native-table th,
#tablesView .native-table td {
  min-width: 150px;
  padding: 0;
  border-right: 1px solid #1c222a;
  border-bottom: 1px solid #1c222a;
  text-align: left;
  vertical-align: top;
}

#tablesView .native-table th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #0f141a;
  color: #d9d5cd;
}

#tablesView .native-table th:first-child,
#tablesView .native-table td:first-child {
  min-width: 50px;
  width: 50px;
  text-align: center;
  background: #0b0f14;
  color: #606b78;
}

#tablesView .native-table th:first-child {
  padding: 10px 0;
  font-size: 11px;
  font-weight: 650;
}

#tablesView .native-col {
  padding: 7px 8px;
}

#tablesView .native-col strong {
  display: block;
  font-size: 10.5px;
  font-weight: 620;
  color: #d9d5cd;
}

#tablesView .native-col small {
  display: inline-block;
  margin-top: 3px;
  padding: 2px 5px;
  border: 1px solid #2e3540;
  border-radius: 999px;
  color: #8d98a6;
  font-size: 7.5px;
  font-weight: 650;
  letter-spacing: .03em;
}

#tablesView .native-table td[contenteditable="true"] {
  padding: 8px 9px;
  color: #cfd5dd;
  font-size: 11px;
  line-height: 1.45;
  outline: none;
  background: #090c10;
}

#tablesView .native-table td[contenteditable="true"]:focus {
  background: #11100d;
  box-shadow: inset 0 0 0 1px #745838;
}

#tablesView .native-table td:first-child[contenteditable="true"] {
  padding: 8px 0;
  text-align: center;
  color: #606b78;
}

#tablesView .native-table tbody tr:last-child td {
  border-bottom: 0;
}

#tablesView .native-table thead tr th:last-child,
#tablesView .native-table tbody tr td:last-child {
  border-right: 0;
}

@media (max-width: 900px) {
  #tablesView .native-table-toolbar {
    align-items: flex-start;
  }

  #tablesView .native-table-status {
    width: 100%;
    margin-left: 0;
    text-align: left;
  }
}

@media (max-width: 650px) {
  .native-workbook-head {
    flex-direction: column;
  }

  .archived-table-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .data-workbook-hero {
    grid-template-columns: 1fr;
  }

  .data-workbook-actions {
    align-items: stretch;
  }
}

/* Legal page, policy dialogs and cookie consent */
#legalView .page-head {
  align-items: flex-end;
  gap: 18px;
  margin-bottom: 16px;
}

#legalView .page-head .status-chip {
  flex: 0 0 auto;
  margin: 0;
  align-self: flex-end;
}

#legalView #legalPageNotice {
  margin: 0 0 14px;
  padding: 11px 12px;
}

#legalView #legalPageNotice strong {
  font-size: 12px;
}

#legalView #legalPageNotice span {
  font-size: 11px;
  line-height: 1.55;
}

.legal-policy-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
  align-items: stretch;
}

.legal-policy-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  height: 100%;
  padding: 16px 18px;
}

.legal-policy-card .clarity-kicker {
  margin-bottom: 4px;
}

.legal-policy-card h3 {
  margin: 2px 0 6px;
  font-size: 14px;
  font-weight: 620;
  color: #f1eee8;
  letter-spacing: -.02em;
  line-height: 1.35;
}

.legal-policy-card p {
  flex: 1;
  margin: 0 0 12px;
  color: #8f99a6;
  font-size: 11px;
  line-height: 1.55;
}

.legal-policy-card .secondary-button {
  width: auto;
  align-self: flex-start;
  margin-top: auto;
  min-height: 34px;
  padding: 8px 12px;
  font-size: 11px;
}

.legal-tools-row {
  align-items: start;
  gap: 12px;
  margin-bottom: 14px;
}

#legalView .legal-tools-row .form-card {
  display: grid;
  gap: 10px;
  padding: 16px 18px;
  height: auto;
}

#legalView .legal-tools-row .form-card h2 {
  margin: 2px 0 0;
  font-size: 16px;
  font-weight: 620;
  color: #f1eee8;
  letter-spacing: -.02em;
}

#legalView .legal-tools-row .form-card .muted {
  margin: 0;
  color: #8d97a2;
  font-size: 11px;
  line-height: 1.55;
}

#legalView .legal-tools-row .form-card .identity-row {
  margin: 0;
}

#legalView .legal-tools-row .form-card > .row {
  margin: 0;
  gap: 8px;
}

#legalView .legal-tools-row .form-card > .row .ghost-button {
  width: auto;
}

#legalView > .card:last-child {
  padding: 18px 20px;
  margin-bottom: 0;
}

#legalView > .card:last-child .card-head {
  margin-bottom: 12px;
}

#legalView > .card:last-child .card-head h2 {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 620;
  color: #f1eee8;
}

#legalView > .card:last-child .card-head p {
  margin: 0;
  color: #8f99a6;
  font-size: 11px;
  line-height: 1.55;
}

#legalView > .card:last-child .policy-strip {
  margin-top: 0;
}

.legal-dialog {
  width: min(760px, calc(100vw - 28px));
  max-height: min(82vh, 760px);
  overflow: auto;
}

.legal-doc-head {
  padding-bottom: 13px;
  border-bottom: 1px solid #242d36;
}

.legal-doc-head h2 {
  margin: 5px 0 4px;
}

.legal-doc-body {
  display: grid;
  gap: 14px;
  margin-top: 15px;
}

.legal-doc-section {
  padding: 13px 14px;
  border: 1px solid #202731;
  background: #0b0f14;
  border-radius: 10px;
}

.legal-doc-section h3 {
  margin: 0 0 6px;
  font-size: 12px;
}

.legal-doc-section p,
.legal-doc-section li {
  font-size: 11px;
  line-height: 1.6;
  color: #8995a2;
}

.legal-doc-section p {
  margin: 0;
}

.legal-doc-section p + p {
  margin-top: 7px;
}

.legal-doc-section ul {
  margin: 7px 0 0;
  padding-left: 18px;
}

.legal-doc-section li + li {
  margin-top: 4px;
}

.legal-placeholder {
  padding: 10px 12px;
  border-left: 2px solid #8d744d;
  background: #11100d;
  color: #b39b77;
  font-size: 10.5px;
  line-height: 1.55;
  border-radius: 0 7px 7px 0;
}

.legal-placeholder b {
  color: #cfb98f;
}

.legal-meta-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  padding: 9px 11px;
  border: 1px solid #24303a;
  background: #0c1117;
  border-radius: 9px;
  color: #71808e;
  font-size: 9.8px;
}

.legal-meta-strip span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.legal-meta-strip span::before {
  content: "•";
  color: #a88b5d;
}

.cookie-banner {
  position: fixed;
  left: 24px;
  right: 24px;
  bottom: 24px;
  z-index: 10040;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid #33404d;
  border-radius: 12px;
  background: rgba(11, 16, 22, .96);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .35);
}

.cookie-banner p {
  margin: 6px 0 0;
  color: #8f99a6;
  font-size: 11px;
  line-height: 1.55;
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.cookie-pref-list {
  display: grid;
  gap: 8px;
  margin: 14px 0;
}

.cookie-pref-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 11px 12px;
  border: 1px solid #2c3540;
  border-radius: 9px;
  background: #0b1016;
}

.cookie-pref-row strong {
  display: block;
  color: #dbe1e6;
  font-size: 11px;
}

.cookie-pref-row span {
  display: block;
  margin-top: 4px;
  color: #7f8c99;
  font-size: 9px;
  line-height: 1.45;
}

.cookie-pref-row input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: #b68a54;
}

.required-chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid #3a4652;
  color: #9aa6b2;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.agreement-checks {
  display: grid;
  gap: 9px;
  margin-top: 14px;
}

.agreement-checks label {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: flex-start;
  padding: 11px 12px;
  border: 1px solid #2c3540;
  border-radius: 9px;
  background: #0b1016;
  cursor: pointer;
}

.agreement-checks input {
  width: 18px;
  height: 18px;
  margin-top: 1px;
  accent-color: #b68a54;
}

.agreement-checks b {
  display: block;
  color: #dbe1e6;
  font-size: 11px;
}

.agreement-checks small {
  display: block;
  margin-top: 4px;
  color: #7f8c99;
  font-size: 9px;
  line-height: 1.45;
}

.agreement-checks button {
  padding: 0;
  border: 0;
  background: none;
  color: #b8cde1;
  text-decoration: underline;
  cursor: pointer;
  font: inherit;
}

.payment-order-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  margin-top: 12px;
}

.payment-order-summary > div {
  padding: 10px;
  border: 1px solid #2c3540;
  border-radius: 8px;
  background: #0b1016;
}

.payment-order-summary span {
  display: block;
  color: #768391;
  font-size: 8px;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.payment-order-summary b {
  display: block;
  margin-top: 4px;
  color: #e4e8ec;
  font-size: 12px;
}

.payment-important {
  margin-top: 12px;
  padding: 10px 12px;
  border: 1px solid #2c3540;
  border-radius: 8px;
  background: #0b1016;
  color: #8f99a6;
  font-size: 11px;
  line-height: 1.55;
}

.payment-important strong {
  display: block;
  color: #e4dcc8;
  margin-bottom: 4px;
}

.legal-gate-dialog::backdrop {
  background: rgba(0, 0, 0, .76);
  backdrop-filter: blur(4px);
}

@media (max-width: 900px) {
  .legal-policy-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #legalView .page-head {
    align-items: stretch;
    flex-direction: column;
  }

  #legalView .page-head .status-chip {
    align-self: flex-start;
  }

  .cookie-banner {
    grid-template-columns: 1fr;
  }

  .cookie-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 620px) {
  .legal-policy-grid {
    grid-template-columns: 1fr;
  }

  .payment-order-summary {
    grid-template-columns: 1fr;
  }

  .cookie-banner {
    left: 10px;
    right: 10px;
    bottom: 10px;
  }
}

/* Assets page */
.asset-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.asset-card-demo {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px;
}

.asset-preview {
  display: grid;
  place-items: center;
  height: 155px;
  border: 1px solid #222933;
  border-radius: 10px;
  background: #080a0d;
  overflow: hidden;
}

.asset-preview img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.asset-preview img.asset-preview-missing {
  display: none;
}

.asset-preview-fallback {
  color: #7f8996;
  font-size: 11px;
  text-align: center;
  padding: 0 12px;
}

.asset-card-demo h3 {
  margin: 0;
  font-size: 14px;
  color: #ece8e0;
  word-break: break-word;
}

.asset-card-demo p {
  margin: 0;
  color: #8f99a6;
  font-size: 11px;
  line-height: 1.45;
}

.asset-usage-note {
  display: block;
  color: #7f8996;
  font-size: 10px;
}

.asset-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.asset-card-actions .asset-delete:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.asset-open-design-host {
  position: relative;
  margin-top: 2px;
}

.asset-open-design-host .asset-open-design {
  width: 100%;
}

.asset-design-menu {
  position: absolute;
  z-index: 30;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  display: grid;
  gap: 4px;
  padding: 6px;
  border: 1px solid #2a3340;
  border-radius: 10px;
  background: #11151d;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
}

.asset-design-menu-note {
  padding: 6px 8px 2px;
  color: #8f99a6;
  font-size: 10px;
  line-height: 1.45;
}

.asset-design-menu-item {
  display: grid;
  gap: 2px;
  width: 100%;
  padding: 8px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #ece8e0;
  text-align: left;
  cursor: pointer;
}

.asset-design-menu-item:hover,
.asset-design-menu-item:focus-visible {
  background: #1a2230;
  outline: none;
}

.asset-design-menu-name {
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
  word-break: break-word;
}

.asset-design-menu-meta {
  font-size: 10px;
  color: #8f99a6;
}

.resolved-image-strip {
  margin: 12px 0;
  padding: 11px 12px;
  border: 1px solid #314050;
  border-radius: 10px;
  background: #0c151d;
  color: #9bb8df;
  font-size: 11px;
  line-height: 1.55;
}

.resolved-image-strip b {
  display: block;
  color: #c8dcf3;
  margin-bottom: 4px;
}

#assetsSharedNotice.notice.warning {
  margin-bottom: 14px;
}

/* Platform Admin overview (#screen-admin-overview) */
.admin-security-chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 9px;
  border: 1px solid #364b68;
  border-radius: 999px;
  background: #0d1620;
  color: #9bb8df;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.admin-page-head {
  align-items: flex-start;
}

.admin-screen .eyebrow {
  color: #89a7d0;
}

#adminOverviewNotice {
  margin-bottom: 14px;
}

.admin-alert-strip {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.admin-alert {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 10px;
  border: 1px solid #314050;
  border-radius: 9px;
  background: #0c141c;
  color: #a9b9ca;
  font-size: 11px;
}

.admin-alert.warn {
  border-color: #5a452c;
  background: #15110c;
  color: #d8ba89;
}

.admin-alert.bad {
  border-color: #543030;
  background: #170e0e;
  color: #e0a0a0;
}

.admin-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
  margin-bottom: 12px;
}

.admin-kpi {
  padding: 13px;
  border: 1px solid #28313a;
  border-radius: 11px;
  background: #0f151b;
}

.admin-kpi span {
  display: block;
  color: #8995a2;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.admin-kpi strong {
  display: block;
  margin-top: 4px;
  color: #e6eaef;
  font-size: 21px;
}

.admin-kpi small {
  display: block;
  margin-top: 3px;
  color: #6f7c89;
  font-size: 10px;
}

.admin-two-col {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 12px;
  margin-bottom: 12px;
}

.admin-three-col {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.admin-card {
  padding: 16px;
}

.admin-card h2,
.admin-card h3 {
  margin: 4px 0 7px;
}

.admin-card p {
  margin: 0;
  color: #8e9aa7;
  font-size: 12px;
  line-height: 1.55;
}

.admin-list {
  display: grid;
  gap: 7px;
  margin-top: 10px;
}

.admin-list-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 10px;
  border: 1px solid #26303a;
  border-radius: 9px;
  background: #0c1117;
}

.admin-list-row div {
  min-width: 0;
}

.admin-list-row b {
  display: block;
  font-size: 12px;
}

.admin-list-row small {
  display: block;
  margin-top: 2px;
  color: #84909d;
  font-size: 10px;
}

.admin-status {
  display: inline-flex;
  padding: 4px 7px;
  border-radius: 999px;
  border: 1px solid #33404d;
  font-size: 9px;
  font-weight: 800;
}

.admin-status.Active,
.admin-status.Healthy,
.admin-status.Complete,
.admin-status.Success,
.admin-status.On-time {
  border-color: #28503b;
  color: #8fd0a7;
  background: #0d1712;
}

.admin-status.Suspended,
.admin-status.Failed,
.admin-status.Failure,
.admin-status.Blocked {
  border-color: #573333;
  color: #daa1a1;
  background: #190f0f;
}

.admin-status.Deletion-pending,
.admin-status.Queued,
.admin-status.Running,
.admin-status.Warning,
.admin-status.Paused {
  border-color: #5b472d;
  color: #dbbb87;
  background: #17120c;
}

.admin-policy-list {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.admin-policy-list div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 9px;
  border-bottom: 1px solid #222b34;
  font-size: 11px;
}

.admin-policy-list span {
  color: #8895a2;
}

.admin-policy-list b {
  color: #e1e5e9;
}

.platform-admin-mode .core-workflow {
  display: none;
}

.platform-admin-mode .context-bar {
  border-bottom-color: #213043;
}

.platform-admin-mode #pageHelpBtn {
  color: #91acd0;
}

.platform-admin-mode #guidedHelpToggle,
.platform-admin-mode #globalHelpBtn {
  display: none;
}

@media (max-width: 1200px) {
  .admin-kpi-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 850px) {
  .admin-two-col,
  .admin-three-col {
    grid-template-columns: 1fr;
  }

  .admin-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .admin-kpi-grid {
    grid-template-columns: 1fr;
  }
}

/* V13 demo typography — remaining page-level font sizes (index-PF-UI-DEMO.html) */
.pfu-app .toggle-row span b,
#appView.pfu-app .toggle-row span b {
  font-size: 11px;
}

.pfu-app .toggle-row span small,
#appView.pfu-app .toggle-row span small {
  font-size: 10px;
}

.pfu-app .empty-state strong,
#appView.pfu-app .empty-state strong {
  font-size: 11.5px;
}

.pfu-app .empty-state span,
#appView.pfu-app .empty-state span {
  font-size: 10.5px;
}

.pfu-app .inline-explain,
#appView.pfu-app .inline-explain {
  font-size: 11px;
}

.choice-feedback strong,
.source-choice-feedback strong {
  font-size: 11px;
}

.choice-feedback span,
.source-choice-feedback span {
  font-size: 10px;
}

.choice-feedback .primary-button,
.choice-feedback .secondary-button,
.choice-feedback .ghost-button,
.source-choice-feedback .primary-button,
.source-choice-feedback .secondary-button,
.source-choice-feedback .ghost-button {
  font-size: 10px;
  min-height: 32px;
  padding: 6px 9px;
}

.help-callout {
  position: relative;
  margin-top: 10px;
  padding: 11px 13px 11px 44px;
  border: 1px solid #254455;
  border-radius: 9px;
  background: linear-gradient(135deg, #0b1820, #0b1117);
  box-shadow: inset 2px 0 0 #55a9cd;
}

.help-callout::before {
  content: "i";
  position: absolute;
  left: 13px;
  top: 12px;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #102b39;
  border: 1px solid #32667d;
  color: #a6ddf3;
  font-family: Georgia, serif;
  font-size: 13px;
  font-weight: 700;
}

.help-callout::after {
  content: "OPTIONAL HELP";
  position: absolute;
  left: 44px;
  top: 11px;
  color: #76bddb;
  font-size: 7.5px;
  font-weight: 760;
  letter-spacing: .13em;
  line-height: 1;
  white-space: nowrap;
}

.help-callout strong,
.help-callout.prominent strong {
  display: block;
  padding-top: 14px;
  color: #e2ebf1;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.38;
  margin-bottom: 0;
}

.help-callout p,
.help-callout.prominent p {
  position: relative;
  z-index: 1;
  margin-top: 4px;
  color: #91a3b0;
  font-size: 10.8px;
  line-height: 1.5;
}

.help-callout .primary-button,
.help-callout .secondary-button,
.help-callout .ghost-button {
  position: relative;
  z-index: 1;
  margin-top: 8px;
}

.guided-action strong {
  font-size: 12px;
}

.guided-action span {
  font-size: 10.5px;
}

.guided-subhead strong {
  font-size: 11px;
}

.guided-subhead span {
  font-size: 10.5px;
}

.guided-inline-actions span {
  font-size: 10.8px;
}

.template-category-explainer b {
  font-size: 11px;
}

.template-category-explainer span,
.category-field-help {
  font-size: 10px;
}

#templatesView #designForm .form-grid label {
  font-size: 11px;
}

.mapping-row-main h3 {
  font-size: 14px;
}

.mapping-row-main p {
  font-size: 9.8px;
}

.mapping-source-name {
  font-size: 9px;
}

.mapping-field-preview span {
  font-size: 8.5px;
}

.native-col strong {
  font-size: 10.5px;
}

.native-col small {
  font-size: 7.5px;
}

.native-table td[contenteditable="true"] {
  font-size: 11px;
}

.native-table-status {
  font-size: 9.5px;
}

.field-type-menu button {
  font-size: 9px;
}

#tablesView .native-table-manage .primary-button,
#tablesView .native-table-manage .secondary-button,
#tablesView .native-table-manage .ghost-button,
#tablesView .native-table-toolbar .primary-button,
#tablesView .native-table-toolbar .secondary-button,
#tablesView .native-table-toolbar .ghost-button {
  font-size: 10px;
  min-height: 31px;
  padding: 5px 8px;
}

.archived-table-row {
  font-size: 10.5px;
}

.sheet-row b {
  font-size: 11px;
}

.sheet-row span {
  font-size: 9.5px;
}

.report-card .time {
  font-size: 9.5px;
}

.report-card strong {
  font-size: 11.5px;
}

.report-card p {
  font-size: 10.5px;
}

.asset-card h3 {
  font-size: 14px;
}

.asset-card p {
  font-size: 11px;
}

.plan-card-head .plan-price b {
  font-size: 18px;
}

.topup-card b {
  font-size: 18px;
}

#schedulesView #scheduleForm .card-head p {
  font-size: 11.5px;
}

#schedulesView #scheduleForm .form-grid label input,
#schedulesView #scheduleForm .form-grid label select {
  font-size: 12.5px;
}

.glossary strong {
  display: block;
  color: #e4e8ed;
  margin-bottom: 3px;
}

/* V13 demo density — spacing/sizing to match compact typography (index-PF-UI-DEMO.html) */
.pfu-app .item-card,
#appView.pfu-app .item-card,
.pfu-app .template-card,
#appView.pfu-app .template-card {
  padding: 13px;
}

.pfu-app .mapping-row-card,
#appView.pfu-app .mapping-row-card {
  padding: 11px 13px;
}

.pfu-app .mapping-list,
#appView.pfu-app .mapping-list {
  gap: 7px;
}

.pfu-app .mapping-concept,
#appView.pfu-app .mapping-concept {
  gap: 7px;
  padding: 10px 12px;
  margin: 10px 0;
  border-radius: 9px;
}

.pfu-app .native-mapping-note,
#appView.pfu-app .native-mapping-note {
  gap: 10px;
  margin: 9px 0 14px;
  padding: 9px 10px;
  border-radius: 8px;
}

.pfu-app .native-auto-map,
#appView.pfu-app .native-auto-map {
  gap: 9px;
  margin: 9px 0;
  padding: 9px 10px;
  border-radius: 8px;
}

.pfu-app .native-table-toolbar,
#appView.pfu-app .native-table-toolbar {
  gap: 8px;
  margin: 8px 0;
}

.pfu-app .native-col,
#appView.pfu-app .native-col {
  padding: 7px 8px;
}

.pfu-app .sheet-row,
#appView.pfu-app .sheet-row {
  padding: 8px 9px;
  border-radius: 8px;
}

.pfu-app .report-card,
#appView.pfu-app .report-card {
  padding: 10px 12px;
}

.pfu-app .guided-action,
#appView.pfu-app .guided-action {
  padding: 10px 11px;
  border-radius: 9px;
}

.pfu-app .guided-action-grid,
#appView.pfu-app .guided-action-grid {
  gap: 7px;
}

#sheetsView #sourceForm.form-card,
#schedulesView #scheduleForm.form-card {
  padding: 15px 16px;
  margin: 12px 0 14px;
}

#sheetsView #sourceForm .form-grid,
#schedulesView #scheduleForm .form-grid {
  gap: 10px 12px;
  margin: 13px 0;
}

#settingsView .settings-grid .form-card {
  padding: 15px 16px;
}

#planView > .card,
#planView .plan-detail-row .form-card,
#discordView .form-card,
#legalView > .card {
  padding: 15px 16px;
  margin-bottom: 12px;
}

.source-connect-head {
  gap: 12px;
  margin-bottom: 9px;
}

.data-source-intro {
  gap: 12px;
  margin-bottom: 12px;
}

.template-category-explainer {
  margin-top: 8px;
  padding: 9px 10px;
  border-radius: 8px;
}

.help-drawer-head {
  padding: 14px 16px 10px;
}

.help-drawer-body {
  padding: 12px 16px 20px;
}

.glossary div {
  padding: 8px 10px;
  border-radius: 8px;
}

.card.stat .stat-action {
  grid-column: 1 / -1;
  margin-top: 8px;
}

@media (max-width: 760px) {
  .card.stat {
    padding: 11px 12px;
  }
}
