:root {
  color-scheme: light;
  --ink: #171713;
  --muted: #68685f;
  --line: rgba(23, 23, 19, 0.14);
  --soft: rgba(248, 247, 241, 0.78);
  --paper: #f4f1e9;
  --panel: rgba(255, 255, 255, 0.66);
  --surface: rgba(255, 255, 255, 0.68);
  --accent: #0f766e;
  --accent-strong: #075f58;
  --acid: #d9ff43;
  --blue: #6277ff;
  --danger: #a64232;
  --shadow: 0 24px 70px rgba(37, 36, 28, 0.11);
}

* { box-sizing: border-box; }
html { overflow-x: hidden; }
body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background:
    linear-gradient(rgba(23, 23, 19, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 23, 19, 0.025) 1px, transparent 1px),
    var(--paper);
  background-size: 32px 32px;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
.ambient {
  position: fixed;
  z-index: -1;
  width: 34rem;
  height: 34rem;
  border-radius: 50%;
  filter: blur(110px);
  opacity: 0.2;
  pointer-events: none;
}
.ambient-one { top: -13rem; right: -10rem; background: var(--acid); }
.ambient-two { bottom: 6rem; left: -18rem; background: #8f9cff; }
.shell { min-height: 100vh; padding: 0 0 24px; }
.topbar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: min(1180px, calc(100% - 40px));
  min-height: 88px;
  margin: 0 auto 24px;
  border-bottom: 1px solid var(--line);
}
.top-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}
.brand,
.login-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  color: inherit;
}
.brand > div,
.login-brand > div {
  display: grid;
  align-content: center;
  gap: 5px;
  min-width: 0;
}
.brand-logo {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line);
  box-shadow: 0 2px 10px rgba(23, 23, 19, 0.12);
  object-fit: cover;
}
.brand strong,
.login-brand strong {
  display: block;
  font-size: 22px;
  font-weight: 900;
  line-height: 0.98;
  letter-spacing: 0;
}
.brand small,
.login-brand small {
  display: block;
  color: var(--muted);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.18em;
}
.eyebrow {
  margin: 0 0 4px;
  color: var(--blue);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 0; font-size: clamp(38px, 6vw, 64px); line-height: 0.9; letter-spacing: 0; }
h2 { margin: 0; font-size: 22px; letter-spacing: 0; }
h3 { margin-bottom: 10px; font-size: 14px; }
.intro-copy {
  margin: -6px 0 14px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}
.status-pill {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  padding: 8px 12px;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}
.status-pill::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 8px;
  border-radius: 50%;
  background: #d7a82c;
  box-shadow: 0 0 0 4px rgba(215, 168, 44, 0.12);
}
.status-pill.ready { border-color: rgba(15, 118, 110, 0.24); color: var(--accent-strong); background: rgba(255, 255, 255, 0.62); }
.status-pill.ready::before { background: #74a829; box-shadow: 0 0 0 4px rgba(116, 168, 41, 0.12); }
.status-pill.fail { border-color: rgba(166, 66, 50, 0.3); color: var(--danger); background: #fff2ef; }
.status-pill.fail::before { background: var(--danger); box-shadow: 0 0 0 4px rgba(166, 66, 50, 0.12); }
.ghost-action {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.6);
  color: var(--blue);
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 850;
}
.version-pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.6);
  color: var(--muted);
  padding: 7px 10px;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.08em;
  white-space: nowrap;
}
.floating-panel {
  position: absolute;
  z-index: 20;
  top: calc(100% + 10px);
  right: 0;
  width: min(520px, calc(100vw - 44px));
  max-height: min(680px, calc(100vh - 120px));
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: var(--shadow);
  padding: 16px;
}
.admin-panel { width: min(680px, calc(100vw - 44px)); }
.account-report-panel {
  display: grid;
  gap: 18px;
}
.account-dashboard-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.account-dashboard-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.56);
  padding: 14px;
}
.account-dashboard-card h3 {
  margin: 0 0 12px;
}
.account-blocker-list,
.account-next-steps,
.account-gate-list,
.account-demo-list {
  display: grid;
  gap: 8px;
}
.account-blocker,
.account-step,
.account-gate,
.account-demo {
  border: 1px solid rgba(19, 19, 17, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.5);
  padding: 10px;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.4;
}
.account-gate {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.account-gate span,
.account-demo p {
  color: var(--muted);
}
.account-gate strong,
.account-demo span {
  color: var(--danger);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}
.account-gate.ready strong,
.account-demo.ready span {
  color: var(--accent-strong);
}
.account-demo {
  display: grid;
  gap: 4px;
}
.account-demo strong {
  color: var(--ink);
}
.account-demo p {
  margin: 0;
  font-size: 0.82rem;
}
.account-demo small {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
}
.account-demo .account-demo-artifact {
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 800;
}
.account-blocker {
  border-color: rgba(166, 66, 50, 0.18);
  color: #7a3a2f;
  background: #fff5f1;
}
.account-blocker.ready {
  border-color: rgba(15, 118, 110, 0.2);
  color: var(--accent-strong);
  background: rgba(229, 250, 242, 0.76);
}
.panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.detail-list {
  display: grid;
  gap: 10px;
  margin: 0;
}
.detail-list div, .mini-status, .check {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.detail-list dt, .mini-status span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}
.detail-list dd {
  margin: 0;
  font-weight: 800;
  text-align: right;
}
.panel-divider {
  height: 1px;
  margin: 14px 0;
  background: var(--line);
}
.mini-status-list {
  display: grid;
  gap: 8px;
}
.plan-card {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid rgba(98, 119, 255, 0.28);
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(98, 119, 255, 0.12), rgba(217, 255, 67, 0.12));
}
.billing-card {
  display: grid;
  gap: 8px;
  margin-top: 10px;
  padding: 12px;
  border: 1px solid rgba(19, 19, 17, 0.12);
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.72), rgba(178, 239, 214, 0.2));
}
.plan-card strong {
  font-size: 1rem;
}
.plan-card > span,
.billing-card > span {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.35;
}
.plan-quota-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.plan-quota-grid div {
  padding: 8px;
  border: 1px solid rgba(19, 19, 17, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.48);
}
.plan-quota-grid span {
  display: block;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
}
.plan-quota-grid b {
  display: block;
  margin-top: 3px;
  font-size: 0.88rem;
}
.admin-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 12px 0;
}
.metric-card {
  min-height: 86px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
  padding: 12px;
}
.metric-card span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}
.metric-card strong {
  display: block;
  margin-top: 10px;
  font-size: 22px;
  line-height: 1.05;
}
.admin-section {
  border-top: 1px solid var(--line);
  padding: 0;
}
.admin-section summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 50px;
  color: var(--ink);
  font-weight: 900;
  list-style: none;
}
.admin-section summary::-webkit-details-marker { display: none; }
.admin-section summary::after {
  content: "+";
  display: inline-grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
}
.admin-section[open] summary::after { content: "-"; }
.admin-list {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}
.admin-row {
  display: grid;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 10px;
}
.admin-row span {
  color: var(--muted);
  font-size: 13px;
}
.login-shell {
  min-height: 100vh;
  display: grid;
  place-items: start center;
  padding: 22px;
}
.login-stack {
  display: grid;
  gap: 18px;
  width: min(100%, 560px);
  padding-top: min(8vh, 64px);
}
.login-brand {
  justify-self: start;
  margin-bottom: 2px;
}
.login-panel {
  width: 100%;
}
.login-panel h1 {
  margin-bottom: 12px;
  font-size: clamp(34px, 8vw, 52px);
}
.login-form {
  display: grid;
  gap: 8px;
}
.form-error {
  min-height: 20px;
  margin: 8px 0 0;
  color: var(--danger);
  font-weight: 800;
}
.form-note {
  color: var(--accent-strong);
}
.consent-box {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
  padding: 12px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
}
.consent-box input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
}
.waitlist-submit {
  width: fit-content;
}
.login-link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 14px;
}
.workspace {
  display: grid;
  grid-template-columns: minmax(300px, 380px) minmax(0, 1fr);
  gap: 0;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  align-items: start;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--surface);
  backdrop-filter: blur(24px);
  box-shadow: var(--shadow);
}
.shell,
.workspace,
.main-column,
.controls,
.panel,
.dropzone,
.empty-state {
  min-width: 0;
  max-width: 100%;
}
.panel {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  padding: 28px;
}
.controls {
  position: sticky;
  top: 18px;
  min-height: 100%;
  border-right: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.36);
}
.main-column {
  display: grid;
}
.main-column > .panel + .panel {
  border-top: 1px solid var(--line);
}
.section-title { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.section-title span {
  display: grid;
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  place-items: center;
  border-radius: 50%;
  background: var(--acid);
  color: #111;
  font-size: 12px;
  font-weight: 900;
}
.field-label {
  display: block;
  margin: 14px 0 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}
.segmented {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.segmented button {
  min-width: 0;
  min-height: 42px;
  border: 0;
  border-right: 1px solid var(--line);
  background: rgba(248, 247, 241, 0.74);
  color: var(--muted);
  font-weight: 800;
  padding: 0 8px;
  overflow-wrap: anywhere;
  white-space: normal;
}
.segmented button:last-child { border-right: 0; }
.segmented button.active { background: var(--ink); color: white; }
input, select, textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.74);
  color: var(--ink);
  padding: 11px 12px;
}
textarea { resize: vertical; }
.grid-two, .lab-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.lab-grid .wide { grid-column: 1 / -1; }
.dropzone {
  display: grid;
  gap: 6px;
  margin-top: 18px;
  min-height: 180px;
  align-content: center;
  border: 1px dashed rgba(23, 23, 19, 0.3);
  border-radius: 20px;
  background: rgba(244, 241, 233, 0.58);
  padding: 26px;
  text-align: center;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}
.dropzone input { display: none; }
.dropzone span, .fine-print { color: var(--muted); font-size: 13px; line-height: 1.45; }
.dropzone strong {
  font-size: 18px;
  letter-spacing: 0;
}
.dropzone span,
.dropzone strong,
.primary-action,
.small-action {
  overflow-wrap: anywhere;
}
.dropzone:hover,
.dropzone.dragover {
  border-color: var(--blue);
  background: rgba(98, 119, 255, 0.06);
  transform: translateY(-2px);
}
.primary-action, .small-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-weight: 900;
  text-align: center;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}
.primary-action { width: 100%; min-height: 50px; margin-top: 16px; padding: 0 18px; }
.primary-action.compact { width: auto; min-width: 160px; margin-top: 0; padding: 0 16px; }
.primary-action:disabled, .small-action:disabled { cursor: not-allowed; opacity: 0.45; }
.small-action { min-height: 36px; padding: 8px 12px; text-decoration: none; }
.primary-action:not(:disabled):hover,
.small-action:not(:disabled):hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(23, 23, 19, 0.12);
}
.small-action.secondary {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.58);
  color: var(--blue);
}
.empty-state {
  display: grid;
  min-height: 220px;
  place-items: center;
  border: 1px dashed var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.28);
  color: var(--muted);
}
.photo-list { display: grid; gap: 12px; }
.photo-card {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.45);
  padding: 12px;
}
.thumb { width: 100%; aspect-ratio: 4 / 5; border-radius: 12px; background: #111; object-fit: cover; }
.photo-head { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.photo-title { min-width: 0; }
.photo-title strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 5px 9px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.52);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}
.badge.done { background: rgba(217, 255, 67, 0.28); color: var(--ink); }
.badge.fail { background: #fff2ef; color: var(--danger); }
.role-row, .action-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.role-row select { max-width: 210px; }
.photo-inputs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 8px;
}
.photo-inputs .wide { grid-column: 1 / -1; }
.analysis-summary { margin: 12px 0; color: var(--muted); line-height: 1.45; }
.score { display: inline-flex; align-items: baseline; gap: 4px; color: var(--blue); font-weight: 900; }
.score span { color: var(--muted); font-size: 12px; }
.prompt-preview {
  margin: 8px 0 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(248, 247, 241, 0.76);
}
.prompt-preview summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  color: var(--ink);
  font-weight: 900;
  list-style: none;
}
.prompt-preview summary::-webkit-details-marker { display: none; }
.prompt-preview summary::after {
  content: "+";
  display: inline-grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
}
.prompt-preview[open] summary::after { content: "-"; }
.prompt-fields {
  display: block;
}
.prompt-preview .prompt-row {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 10px;
  border-top: 1px solid var(--line);
  padding: 9px 12px;
}
.prompt-preview span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}
.prompt-preview strong {
  color: #252525;
  font-size: 13px;
  line-height: 1.4;
}
.metadata-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.caption-lab {
  margin-bottom: 18px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 18px;
}
.copy-list { display: grid; gap: 10px; }
.copy-item {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.46);
  padding: 12px;
  color: #272727;
  line-height: 1.45;
}
.copy-item p {
  margin: 0 0 10px;
  white-space: pre-wrap;
}
.copy-item p:last-child { margin-bottom: 0; }
.caption-option.active {
  border-color: rgba(98, 119, 255, 0.32);
  background: rgba(98, 119, 255, 0.08);
}
.caption-prompt-box {
  margin-top: 18px;
}
.caption-prompt-box pre {
  max-height: 360px;
  margin: 0;
  border-top: 1px solid var(--line);
  overflow: auto;
  padding: 12px;
  white-space: pre-wrap;
  color: #252525;
  font: 12px/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.caption-edit-box {
  width: 100%;
  min-height: 220px;
  font: inherit;
  line-height: 1.45;
}
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.48);
  padding: 7px 10px;
  color: #40454c;
  font-size: 13px;
  font-weight: 700;
}
.checklist { display: grid; gap: 8px; }
.check {
  border-bottom: 1px solid var(--line);
  padding-bottom: 8px;
  color: var(--muted);
  font-size: 14px;
}
.score-box {
  display: grid;
  align-content: center;
  min-height: 72px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(217, 255, 67, 0.22);
  padding: 12px;
}
.score-box span { color: var(--muted); font-size: 12px; font-weight: 800; text-transform: uppercase; }
.score-box strong { font-size: 30px; }
.final-list, .schedule-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}
.final-card, .schedule-card {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.44);
  padding: 10px;
}
.final-thumb {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 10px;
  background: #111;
  object-fit: cover;
}
.schedule-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 14px;
}
.schedule-actions .primary-action,
.schedule-actions .small-action {
  width: 100%;
}
.target-account-card {
  margin-bottom: 22px;
  padding: 14px;
  border: 1px solid rgba(98, 119, 255, 0.42);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(98, 119, 255, 0.16), rgba(217, 255, 67, 0.16));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.42);
}
.target-account-card select {
  margin-top: 6px;
  border-color: rgba(98, 119, 255, 0.46);
  background: rgba(255, 255, 255, 0.72);
}
.target-account-card.account-photomind {
  border-color: rgba(31, 122, 109, 0.46);
  background: linear-gradient(135deg, rgba(31, 122, 109, 0.16), rgba(120, 220, 235, 0.16));
}
.target-account-card.account-photomind select {
  border-color: rgba(31, 122, 109, 0.46);
}
.target-account-card.account-personal {
  border-color: rgba(148, 82, 185, 0.44);
  background: linear-gradient(135deg, rgba(148, 82, 185, 0.14), rgba(245, 148, 92, 0.14));
}
.target-account-card.account-personal select {
  border-color: rgba(148, 82, 185, 0.46);
}
.entitlement-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.entitlement-pill {
  padding: 10px;
  border: 1px solid rgba(19, 19, 17, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.58);
}
.entitlement-pill span {
  display: block;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
}
.entitlement-pill strong {
  display: block;
  margin-top: 3px;
  font-size: 0.92rem;
}
.entitlement-pill.active {
  border-color: rgba(31, 122, 109, 0.28);
  background: rgba(212, 255, 229, 0.45);
}
.entitlement-pill.locked {
  color: rgba(19, 19, 17, 0.48);
  background: rgba(255, 255, 255, 0.38);
}
.panel-link {
  display: inline-flex;
  width: 100%;
  margin-top: 14px;
  text-decoration: none;
}
.calendar-wrap {
  margin-top: 18px;
}
.calendar-toolbar {
  display: grid;
  grid-template-columns: minmax(74px, auto) minmax(0, 1fr) minmax(74px, auto);
  align-items: center;
  gap: 8px;
  margin: 8px 0 10px;
}
.calendar-toolbar strong {
  text-align: center;
  font-size: 16px;
}
.calendar-toolbar .small-action {
  min-height: 34px;
  padding: 7px 10px;
}
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
  margin-bottom: 12px;
}
.calendar-weekday {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-align: center;
  text-transform: uppercase;
}
.calendar-day {
  display: grid;
  place-items: center;
  gap: 2px;
  min-height: 50px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.42);
  color: var(--ink);
  padding: 6px;
  text-align: center;
}
.calendar-day strong {
  color: var(--ink);
  font-size: 17px;
  line-height: 1;
}
.calendar-day span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
}
.calendar-day.has-schedule {
  border-color: rgba(98, 119, 255, 0.35);
  background: rgba(98, 119, 255, 0.08);
}
.calendar-day.has-schedule strong {
  color: var(--blue);
}
.calendar-day.has-published {
  border-color: rgba(31, 122, 109, 0.34);
  background: rgba(31, 122, 109, 0.10);
}
.calendar-day.has-published strong {
  color: var(--accent-strong);
}
.calendar-day.has-schedule.has-published {
  background: linear-gradient(135deg, rgba(98, 119, 255, 0.09), rgba(31, 122, 109, 0.12));
}
.calendar-day.has-schedule.has-published strong {
  color: var(--blue);
}
.calendar-day.selected {
  outline: 2px solid rgba(23, 23, 19, 0.75);
  outline-offset: 1px;
}
.calendar-day.empty {
  border-color: transparent;
  background: transparent;
}
.schedule-card {
  grid-template-columns: minmax(0, 1fr) auto;
}
.schedule-history {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}
.schedule-history h3 {
  margin: 4px 0 0;
}
.schedule-card.resolved {
  border-style: dashed;
  background: #fbfaf6;
}
.schedule-card.published {
  border-color: rgba(31, 122, 109, 0.35);
}
.schedule-card.missed {
  border-color: rgba(166, 66, 50, 0.35);
}
.schedule-card a {
  display: inline-block;
  color: var(--accent-strong);
  font-weight: 800;
}
.analytics-panel {
  overflow: hidden;
}
.analytics-page {
  min-height: 100vh;
}
.analytics-report-panel {
  width: min(1180px, calc(100% - 40px));
  margin: 28px auto 0;
}
.analytics-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
}
.analytics-metrics,
.analytics-gates {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}
.gate,
.analytics-note,
.analytics-alert,
.analytics-group,
.analytics-table {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.46);
}
.gate {
  display: grid;
  gap: 6px;
  padding: 12px;
}
.gate strong {
  font-size: 12px;
  line-height: 1.25;
}
.gate span {
  color: var(--muted);
  font-size: 18px;
  font-weight: 900;
}
.gate.ready {
  border-color: rgba(31, 122, 109, 0.38);
}
.gate.locked {
  border-color: rgba(98, 119, 255, 0.28);
}
.analytics-note {
  margin-top: 14px;
  padding: 14px;
}
.analytics-note p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}
.analytics-alerts {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}
.analytics-alert {
  padding: 12px;
}
.analytics-alert.warning {
  border-color: rgba(166, 66, 50, 0.45);
}
.analytics-alert.info {
  border-color: rgba(98, 119, 255, 0.32);
}
.analytics-alert p,
.analytics-alert span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}
.analytics-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 14px;
  margin-top: 16px;
}
.analytics-table {
  display: grid;
  gap: 4px;
  padding: 8px;
}
.analytics-row {
  display: grid;
  grid-template-columns: minmax(92px, 1.2fr) minmax(72px, 0.8fr) minmax(48px, 0.55fr) minmax(48px, 0.55fr) minmax(68px, 0.7fr);
  gap: 8px;
  align-items: center;
  min-height: 34px;
  padding: 7px 8px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}
.analytics-row.head {
  color: var(--ink);
  background: rgba(217, 255, 67, 0.18);
  text-transform: uppercase;
  font-size: 10px;
}
.analytics-row.compact {
  grid-template-columns: minmax(0, 1fr) 42px 74px;
}
.analytics-group {
  padding: 10px;
}
.analytics-group + .analytics-group {
  margin-top: 10px;
}
.analytics-group > strong {
  display: block;
  margin: 0 8px 4px;
}
.compact-empty {
  min-height: 84px;
}
.studio-footer {
  display: grid;
  justify-items: center;
  gap: 14px;
  width: min(1180px, calc(100% - 40px));
  margin: 40px auto 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}
.footer-rule {
  width: 100%;
  height: 1px;
  background: var(--line);
}
.footer-version {
  margin: 24px 0 0;
  font-weight: 800;
}
.footer-note {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}
.footer-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  flex-wrap: wrap;
}
.studio-footer a,
.footer-link-button {
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 0;
  font-size: 13px;
  font-weight: 850;
  text-decoration: none;
}
.studio-footer a:hover,
.footer-link-button:hover {
  color: var(--ink);
  text-decoration: underline;
}
.login-footer {
  margin-top: 16px;
}
.cookie-panel {
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  z-index: 50;
  display: grid;
  gap: 12px;
  width: min(620px, calc(100vw - 36px));
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
  padding: 20px 26px 26px;
  backdrop-filter: blur(18px);
}
.cookie-panel h2 {
  margin: 0;
  font-size: 22px;
}
.cookie-panel p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.42;
}
.cookie-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 1.3fr);
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}
.cookie-actions .small-action:last-child {
  grid-column: 1 / -1;
}
.cookie-actions a {
  color: var(--muted);
  font-weight: 850;
  white-space: nowrap;
}
.marketing-shell {
  display: grid;
  gap: 24px;
  width: min(1040px, calc(100% - 40px));
  margin: 0 auto;
  padding: 22px 0 28px;
}
.marketing-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 78px;
  border-bottom: 1px solid var(--line);
}
.marketing-brand,
.marketing-nav {
  display: flex;
  align-items: center;
  gap: 12px;
}
.marketing-brand {
  color: var(--ink);
  text-decoration: none;
}
.marketing-brand img {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  border: 1px solid var(--line);
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 2px 10px rgba(23, 23, 19, 0.1);
}
.marketing-brand strong {
  display: block;
  font-size: 22px;
  font-weight: 900;
  line-height: 1;
}
.marketing-brand small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.18em;
}
.marketing-nav {
  flex-wrap: wrap;
  justify-content: flex-end;
}
.marketing-nav a {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  padding: 8px 12px;
  color: var(--blue);
  font-weight: 850;
  text-decoration: none;
}
.marketing-hero,
.marketing-section,
.checklist-panel {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(24px);
}
.marketing-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 22px;
  align-items: stretch;
  padding: 30px;
}
.marketing-hero h1 {
  max-width: 760px;
  margin-bottom: 16px;
  font-size: clamp(42px, 7vw, 76px);
  line-height: 0.92;
}
.marketing-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}
.marketing-actions .primary-action {
  width: auto;
  min-width: 180px;
  margin-top: 0;
}
.marketing-proof-panel,
.checklist-score-card {
  display: grid;
  align-content: center;
  gap: 10px;
  border: 1px solid rgba(15, 118, 110, 0.22);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(15, 118, 110, 0.14), rgba(217, 255, 67, 0.2));
  padding: 22px;
}
.marketing-proof-panel span {
  border: 1px solid rgba(23, 23, 19, 0.1);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.58);
  padding: 12px;
  color: var(--ink);
  font-weight: 850;
}
.onboarding-audience img {
  width: 78px;
  height: 78px;
  border: 1px solid rgba(23, 23, 19, 0.12);
  border-radius: 18px;
  object-fit: cover;
  box-shadow: 0 12px 28px rgba(23, 23, 19, 0.12);
}
.marketing-section {
  padding: 26px;
}
.marketing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.marketing-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.62);
  padding: 16px;
}
.marketing-card strong {
  display: block;
  margin-bottom: 8px;
  font-size: 18px;
}
.marketing-card p,
.marketing-checks p,
.checklist-score-card p,
.checklist-item p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}
.marketing-checks {
  display: grid;
  gap: 10px;
}
.marketing-checks p {
  border-left: 4px solid var(--acid);
  background: rgba(255, 255, 255, 0.48);
  padding: 12px 14px;
  font-weight: 750;
}
.marketing-join {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 1fr);
  gap: 20px;
  align-items: start;
}
.onboarding-hero h1 {
  font-size: clamp(38px, 6vw, 64px);
}
.onboarding-flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.onboarding-step,
.plan-chip {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.62);
  padding: 14px;
}
.onboarding-step strong,
.plan-chip strong {
  display: block;
  margin-bottom: 6px;
}
.onboarding-step p,
.plan-chip span {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.4;
}
.access-table {
  display: grid;
  gap: 8px;
}
.access-table > div {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(150px, 0.8fr);
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.62);
  padding: 12px 14px;
}
.access-table span {
  color: var(--accent-strong);
  font-weight: 850;
}
.plan-band {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}
.checklist-hero {
  grid-template-columns: minmax(0, 1fr) minmax(240px, 360px);
}
.checklist-score-card strong {
  font-size: 22px;
  line-height: 1.16;
}
.checklist-panel {
  display: grid;
  gap: 0;
  overflow: hidden;
}
.checklist-item {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
  border-bottom: 1px solid var(--line);
  padding: 22px;
}
.checklist-item:last-child {
  border-bottom: 0;
}
.checklist-item > span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--acid);
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
}
.checklist-item h2 {
  margin-bottom: 8px;
}
.score-boxes {
  display: flex;
  gap: 6px;
  padding-top: 5px;
}
.score-boxes i {
  display: block;
  width: 22px;
  height: 22px;
  border: 1px solid rgba(23, 23, 19, 0.28);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.62);
}
.legal-shell {
  width: min(900px, calc(100% - 32px));
  margin: 32px auto;
}
.legal-shell h1 {
  font-size: clamp(34px, 8vw, 62px);
}
.legal-copy {
  display: grid;
  gap: 16px;
  margin-top: 18px;
  line-height: 1.6;
}
.legal-copy h2 {
  margin-top: 8px;
}
.legal-copy ul {
  margin: 0;
  padding-left: 20px;
}
@media (max-width: 980px) {
  .workspace, .metadata-grid, .admin-metrics, .analytics-grid, .account-dashboard-grid, .marketing-hero, .marketing-grid, .marketing-join, .checklist-hero, .onboarding-flow, .plan-band { grid-template-columns: 1fr; }
  .analytics-metrics,
  .analytics-gates {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .controls {
    position: static;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
}
@media (max-width: 620px) {
  .shell { padding-bottom: 18px; }
  .topbar,
  .workspace,
  .studio-footer {
    width: min(100% - 24px, 1180px);
  }
  .topbar {
    min-height: 74px;
    height: auto;
    gap: 10px;
    padding-block: 10px;
    align-items: center;
  }
  .brand {
    flex: 0 0 auto;
    gap: 9px;
    max-width: 150px;
  }
  .brand-logo {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
    border-radius: 10px;
  }
  .brand strong { font-size: 15px; }
  .brand small {
    font-size: 8px;
  }
  .top-actions {
    flex: 1 1 auto;
    justify-content: flex-end;
    gap: 7px;
    min-width: 0;
  }
  .version-pill { display: none; }
  .status-pill {
    width: 18px;
    height: 18px;
    min-height: 18px;
    border: 0;
    background: transparent;
    overflow: hidden;
    padding: 0;
    color: transparent;
    font-size: 0;
  }
  .status-pill::before {
    margin: 0;
  }
  .ghost-action {
    min-height: 32px;
    padding: 5px 7px;
    font-size: 11px;
  }
  .photo-head { align-items: flex-start; flex-direction: column; }
  .floating-panel {
    right: 0;
    width: min(100%, calc(100vw - 24px));
    max-height: 70vh;
  }
  .workspace { border-radius: 20px; }
  .panel { padding: 20px 18px; }
  .grid-two, .lab-grid, .photo-card, .photo-inputs, .prompt-preview .prompt-row, .final-card, .schedule-card, .schedule-actions, .analytics-toolbar { grid-template-columns: 1fr; }
  .analytics-metrics,
  .analytics-gates {
    grid-template-columns: 1fr;
  }
  .analytics-row {
    grid-template-columns: minmax(0, 1fr) 52px 44px;
  }
  .analytics-row span:nth-child(4),
  .analytics-row span:nth-child(5) {
    display: none;
  }
  .analytics-row.compact {
    grid-template-columns: minmax(0, 1fr) 34px 58px;
  }
  .calendar-grid { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
  .calendar-day {
    min-height: 42px;
    border-radius: 8px;
    padding: 4px;
  }
  .calendar-day strong { font-size: 15px; }
  .calendar-toolbar {
    grid-template-columns: minmax(56px, auto) minmax(0, 1fr) minmax(56px, auto);
  }
  .calendar-toolbar .small-action {
    min-width: 0;
    padding-inline: 8px;
  }
  .primary-action.compact { width: 100%; }
  .thumb { aspect-ratio: 16 / 10; }
  .footer-links {
    gap: 18px;
  }
  .marketing-shell {
    width: min(100% - 24px, 1040px);
    gap: 18px;
  }
  .marketing-topbar {
    align-items: flex-start;
  }
  .marketing-brand {
    gap: 8px;
  }
  .marketing-brand img {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
    border-radius: 10px;
  }
  .marketing-brand strong {
    font-size: 17px;
  }
  .marketing-nav {
    gap: 7px;
  }
  .marketing-nav a {
    padding: 7px 9px;
    font-size: 12px;
  }
  .marketing-hero,
  .marketing-section {
    padding: 20px 18px;
    border-radius: 18px;
  }
  .marketing-hero h1 {
    font-size: 42px;
  }
  .checklist-item {
    grid-template-columns: 34px minmax(0, 1fr);
    padding: 18px;
  }
  .score-boxes {
    grid-column: 2;
  }
  .cookie-panel {
    bottom: 18px;
    width: calc(100vw - 24px);
    padding: 18px 26px 26px;
  }
  .cookie-actions {
    grid-template-columns: 1fr;
    align-items: stretch;
  }
  .cookie-actions a {
    text-align: center;
  }
}
@media print {
  body {
    background: #fff;
  }
  .ambient,
  .marketing-topbar,
  .marketing-actions,
  .marketing-join,
  .studio-footer {
    display: none;
  }
  .marketing-shell {
    width: 100%;
    padding: 0;
  }
  .marketing-hero,
  .checklist-panel {
    border: 1px solid #ddd;
    box-shadow: none;
  }
}
