@font-face {
  font-family: 'InterVariable';
  src: url('/fonts/InterVariable.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #15213b;
  --muted: #697386;
  --line: #e3e6eb;
  --paper: #ffffff;
  --canvas: #f4f5f7;
  --navy: #132342;
  --blue: #335cff;
  --blue-soft: #edf1ff;
  --orange: #ff8d54;
  --green: #1d9b68;
  --radius: 18px;
  --shadow: 0 18px 55px rgba(28, 40, 70, .09);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--canvas);
}


* { box-sizing: border-box; }
html, body { min-height: 100%; margin: 0; }
body { background: var(--canvas); }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }

.brand-mark {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(145deg, #466aff, #203fb6);
  color: #fff;
  font-size: 18px;
  font-weight: 800;
  box-shadow: 0 8px 20px rgba(51, 92, 255, .28);
}

.login-screen {
  min-height: 100vh;
  padding: 32px;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 15% 20%, rgba(51, 92, 255, .22), transparent 28%),
    radial-gradient(circle at 85% 75%, rgba(255, 141, 84, .2), transparent 26%),
    var(--navy);
}
.login-brand { position: absolute; top: 32px; left: 38px; display: flex; gap: 12px; align-items: center; color: #fff; font-weight: 700; }
.login-card {
  width: min(440px, 100%);
  background: rgba(255, 255, 255, .98);
  padding: 48px;
  border-radius: 28px;
  box-shadow: 0 28px 90px rgba(0, 0, 0, .28);
}
.login-card h1 { margin: 10px 0 14px; font-size: clamp(38px, 7vw, 58px); line-height: .98; letter-spacing: -.055em; }
.login-card > p { color: var(--muted); line-height: 1.6; margin: 0 0 28px; }
label { display: grid; gap: 8px; color: #3f4960; font-size: 13px; font-weight: 700; }
input, textarea {
  width: 100%;
  color: var(--ink);
  background: #fff;
  border: 1px solid #dfe3e9;
  border-radius: 12px;
  padding: 13px 14px;
  outline: none;
  resize: vertical;
  line-height: 1.5;
  transition: border-color .15s, box-shadow .15s;
}
input:focus, textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(51, 92, 255, .11); }
.login-card label + label { margin-top: 16px; }
.login-card .button { margin-top: 24px; }

.button {
  border: 0;
  border-radius: 11px;
  padding: 12px 17px;
  font-weight: 750;
  transition: transform .15s, opacity .15s, box-shadow .15s;
}
.button:hover:not(:disabled) { transform: translateY(-1px); }
.button:disabled { opacity: .45; cursor: not-allowed; }
.button.primary { background: var(--blue); color: #fff; box-shadow: 0 9px 22px rgba(51, 92, 255, .22); }
.button.secondary { color: var(--ink); background: #fff; border: 1px solid var(--line); }
.button.dark { color: #fff; background: var(--navy); }
.button.wide { width: 100%; }
.text-button { padding: 0; border: 0; background: none; color: #aab6d0; font-weight: 700; }

.app-shell { min-height: 100vh; display: grid; grid-template-columns: 244px minmax(0, 1fr); }
.sidebar {
  height: 100vh;
  position: sticky;
  top: 0;
  padding: 28px 20px;
  background: var(--navy);
  color: #fff;
  display: flex;
  flex-direction: column;
}
.sidebar-brand { display: flex; align-items: center; gap: 12px; padding: 0 8px 32px; }
.sidebar-brand div { display: grid; gap: 3px; }
.sidebar-brand strong { font-size: 15px; }
.sidebar-brand div span { color: #8997b7; font-size: 10px; letter-spacing: .05em; text-transform: uppercase; }
.sidebar nav { display: grid; gap: 6px; }
.nav-item {
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: #aeb9d0;
  padding: 13px 14px;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 650;
}
.nav-item span { width: 20px; text-align: center; font-size: 17px; }
.nav-item:hover, .nav-item.active { color: #fff; background: rgba(255, 255, 255, .09); }
.nav-item.active { box-shadow: inset 3px 0 var(--orange); }
.sidebar-foot { margin-top: auto; padding: 20px 9px 0; border-top: 1px solid rgba(255,255,255,.1); display: grid; gap: 8px; font-size: 12px; color: #8491ad; overflow-wrap: anywhere; }

.workspace { padding: 34px clamp(24px, 4vw, 60px) 60px; min-width: 0; }
.topbar { max-width: 1380px; margin: 0 auto 28px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.topbar h1 { margin: 4px 0 0; font-size: 32px; letter-spacing: -.035em; }
.eyebrow { margin: 0; color: var(--blue); font-size: 11px; text-transform: uppercase; letter-spacing: .12em; font-weight: 850; }
.readiness { display: flex; gap: 7px; flex-wrap: wrap; justify-content: flex-end; }
.ready-dot { width: 9px; height: 9px; border-radius: 50%; background: #c6ccd7; }
.ready-dot.on { background: var(--green); box-shadow: 0 0 0 4px rgba(29,155,104,.12); }

.view { max-width: 1380px; margin: 0 auto; }
.composer-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(340px, .78fr); gap: 26px; align-items: start; }
.composer-flow { display: grid; gap: 18px; }
.panel, .preview-panel, .profile-card {
  background: var(--paper);
  border: 1px solid rgba(218, 222, 230, .9);
  border-radius: var(--radius);
  box-shadow: 0 8px 30px rgba(30, 42, 70, .045);
}
.panel { padding: 24px; }
.step-heading { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 18px; }
.step-heading > span { flex: 0 0 29px; width: 29px; height: 29px; display: grid; place-items: center; border-radius: 9px; background: var(--blue-soft); color: var(--blue); font-weight: 850; }
.step-heading h2 { margin: 0; font-size: 17px; letter-spacing: -.015em; }
.step-heading p, .list-toolbar p { margin: 4px 0 0; color: var(--muted); font-size: 13px; line-height: 1.45; }
.language-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.language-tab { min-height: 76px; border: 1px solid var(--line); border-radius: 13px; background: #fff; color: var(--ink); display: grid; place-items: center; gap: 1px; }
.language-tab b { font-size: 20px; }
.language-tab span { font-size: 11px; color: var(--muted); }
.language-tab:hover, .language-tab.active { border-color: var(--blue); background: var(--blue-soft); box-shadow: 0 0 0 2px rgba(51,92,255,.08); }
.category-row { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 14px; }
.category-chip { white-space: nowrap; border: 1px solid var(--line); border-radius: 999px; background: #fff; padding: 8px 12px; color: #596276; font-size: 12px; font-weight: 700; }
.category-chip.active { border-color: var(--ink); background: var(--ink); color: #fff; }
.image-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; min-height: 150px; }
.image-option { aspect-ratio: 1; border: 0; border-radius: 12px; padding: 0; overflow: hidden; position: relative; background: #eef0f4; }
.image-option img { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform .2s; }
.image-option:hover img { transform: scale(1.035); }
.image-option.selected { box-shadow: 0 0 0 3px #fff, 0 0 0 6px var(--blue); }
.image-option.selected::after { content: "✓"; position: absolute; top: 8px; right: 8px; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: var(--blue); font-weight: 900; }
.template-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.template-option { min-height: 96px; border: 1px solid var(--line); border-radius: 13px; padding: 15px; background: #fff; color: var(--ink); text-align: left; display: grid; align-content: start; gap: 6px; }
.template-option strong { font-size: 13px; }
.template-option span { color: var(--muted); font-size: 11px; line-height: 1.45; }
.template-option:hover, .template-option.selected { border-color: var(--blue); background: var(--blue-soft); box-shadow: 0 0 0 2px rgba(51,92,255,.08); }
.template-option:disabled { cursor: not-allowed; opacity: .52; box-shadow: none; border-color: var(--line); background: #f7f8fa; }
.theme-heading { margin: 20px 0 10px; display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.theme-heading > div { display: flex; align-items: baseline; gap: 9px; }
.theme-heading strong { font-size: 13px; }
.theme-heading span { color: var(--muted); font-size: 11px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.theme-heading input[type="color"] { width: 38px; height: 32px; border-radius: 9px; padding: 3px; cursor: pointer; }
.theme-swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.theme-swatch { width: 34px; height: 34px; border: 3px solid #fff; border-radius: 50%; background: var(--swatch-color); box-shadow: 0 0 0 1px var(--line); }
.theme-swatch.selected { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--blue); }
.empty-state { grid-column: 1 / -1; min-height: 130px; display: grid; place-items: center; border: 1px dashed #d8dce4; border-radius: 13px; color: var(--muted); font-size: 13px; padding: 20px; text-align: center; }
.create-actions, .form-footer { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.form-status { min-height: 18px; margin: 0; color: var(--muted); font-size: 12px; }
.form-status.error { color: #b94141; }

.preview-panel { position: sticky; top: 26px; padding: 20px; box-shadow: var(--shadow); }
.preview-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 15px; }
.status-pill { border-radius: 999px; background: #eef0f4; color: var(--muted); padding: 6px 9px; font-size: 10px; font-weight: 800; }
.status-pill.ready { background: #e9f8f1; color: var(--green); }
.phone-preview { overflow: hidden; border: 1px solid var(--line); border-radius: 15px; background: #fff; }
.post-account { height: 62px; padding: 10px 13px; display: flex; align-items: center; gap: 10px; }
.post-account > div { display: grid; flex: 1; }
.post-account b { font-size: 12px; }
.post-account small { color: var(--muted); font-size: 10px; }
.account-avatar { width: 33px; height: 33px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: linear-gradient(145deg, var(--orange), #e6565f); font-weight: 900; }
.preview-image-wrap { aspect-ratio: 4 / 5; background: #eef0f4; }
.preview-image-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; }
.preview-placeholder { height: 100%; display: grid; place-content: center; justify-items: center; gap: 5px; color: #9da5b4; }
.preview-placeholder span { font-size: 36px; }
.preview-placeholder p { margin: 0; font-size: 12px; }
.post-actions { display: flex; align-items: center; gap: 14px; padding: 12px 14px 4px; font-size: 22px; line-height: 1; }
.post-actions .save-icon { margin-left: auto; }
.caption-editor, .hashtags-editor { border: 0; border-radius: 0; box-shadow: none !important; resize: none; font-size: 12px; line-height: 1.55; padding: 10px 14px; }
.caption-editor { min-height: 155px; }
.hashtags-editor { color: var(--blue); padding-top: 0; padding-bottom: 15px; }
.overlay-editor { border-top: 1px solid var(--line); padding: 0 14px 14px; }
.overlay-editor summary { cursor: pointer; padding: 12px 0 2px; color: var(--muted); font-size: 11px; font-weight: 800; }
.overlay-fields { display: grid; gap: 10px; padding-top: 12px; }
.overlay-fields label { gap: 4px; font-size: 10px; }
.overlay-fields input, .overlay-fields textarea { border-radius: 8px; padding: 8px 9px; font-size: 11px; }
.overlay-fields .field-grid { gap: 8px; }
.preview-actions { display: grid; grid-template-columns: 1fr 1.25fr; gap: 9px; margin-top: 13px; }
.preview-panel .form-status { margin-top: 10px; }

.list-toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.list-toolbar h2 { margin: 0; font-size: 20px; }
.posts-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.post-card { overflow: hidden; border-radius: 16px; border: 1px solid var(--line); background: #fff; box-shadow: 0 8px 25px rgba(30,42,70,.045); }
.post-card-image { aspect-ratio: 4 / 5; background: #eef0f4; }
.post-card-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.post-card-body { padding: 16px; }
.post-card-meta { display: flex; justify-content: space-between; gap: 10px; align-items: center; margin-bottom: 10px; }
.language-badge, .post-state { font-size: 10px; text-transform: uppercase; letter-spacing: .08em; font-weight: 850; }
.language-badge { color: var(--blue); }
.post-state { color: var(--muted); }
.post-state.published { color: var(--green); }
.post-card-copy { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 5; overflow: hidden; margin: 0; font-size: 13px; line-height: 1.55; white-space: pre-wrap; }
.post-card-tags { margin: 11px 0 0; color: var(--blue); font-size: 11px; }
.post-link { display: inline-block; margin-top: 12px; color: var(--ink); font-size: 12px; font-weight: 800; }

.profile-layout { display: grid; grid-template-columns: minmax(240px, .7fr) minmax(0, 1.35fr); gap: clamp(28px, 6vw, 90px); align-items: start; }
.profile-intro { padding-top: 22px; }
.profile-intro h2 { margin: 10px 0 18px; max-width: 480px; font-size: clamp(30px, 4vw, 48px); line-height: 1.05; letter-spacing: -.045em; }
.profile-intro > p:not(.eyebrow) { max-width: 480px; color: var(--muted); line-height: 1.7; }
.profile-note { margin-top: 28px; border-left: 3px solid var(--orange); padding: 5px 0 5px 16px; display: grid; gap: 5px; font-size: 13px; }
.profile-note span { color: var(--muted); line-height: 1.5; }
.profile-card { padding: 28px; display: grid; gap: 18px; }
.field-grid { display: grid; gap: 16px; }
.field-grid.two { grid-template-columns: 1fr 1fr; }
.toast { position: fixed; right: 24px; bottom: 24px; z-index: 20; max-width: 380px; color: #fff; background: var(--navy); border-radius: 12px; padding: 13px 17px; box-shadow: var(--shadow); font-size: 13px; }

@media (max-width: 1050px) {
  .composer-grid { grid-template-columns: 1fr; }
  .preview-panel { position: static; max-width: 520px; width: 100%; }
  .posts-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { height: auto; position: static; padding: 14px 16px; display: grid; grid-template-columns: auto 1fr; align-items: center; }
  .sidebar-brand { padding: 0; }
  .sidebar-brand div, .sidebar-foot { display: none; }
  .sidebar nav { display: flex; justify-content: flex-end; overflow-x: auto; }
  .nav-item { padding: 10px; font-size: 0; }
  .nav-item span { font-size: 18px; }
  .workspace { padding: 24px 16px 50px; }
  .topbar { align-items: flex-start; }
  .topbar h1 { font-size: 26px; }
  .readiness { display: none; }
  .image-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .template-grid { grid-template-columns: 1fr; }
  .profile-layout { grid-template-columns: 1fr; gap: 20px; }
  .profile-intro h2 { font-size: 34px; }
  .field-grid.two, .posts-grid { grid-template-columns: 1fr; }
}

/* Evolving AI Systems shell + resort Post Studio components. */
:root {
  --ink: #1E293B;
  --muted: #64748B;
  --line: rgba(0, 0, 0, .08);
  --paper: rgba(255, 255, 255, .72);
  --canvas: #DDD5CA;
  --navy: #1E293B;
  --blue: #2563EB;
  --blue-soft: rgba(37, 99, 235, .10);
  --orange: #EA580C;
  --green: #16A34A;
  --radius: 20px;
  --shadow: 0 8px 30px rgba(0, 0, 0, .08);
  font-family: 'InterVariable', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  letter-spacing: -.01em;
  color: var(--ink);
  background: var(--canvas);
}

body { position: relative; background: var(--canvas); color: #475569; }
.mesh-bg { position: fixed; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.mesh { position: absolute; display: block; border-radius: 50%; filter: blur(100px); opacity: 1; }
.mesh-1 { width: 70vw; height: 70vw; top: -30%; left: -20%; background: radial-gradient(circle, rgba(59,130,246,.5), rgba(37,99,235,.2) 35%, transparent 65%); }
.mesh-2 { width: 65vw; height: 65vw; top: 40%; right: -25%; background: radial-gradient(circle, rgba(251,146,60,.45), rgba(234,88,12,.15) 35%, transparent 60%); }
.mesh-3 { width: 55vw; height: 55vw; bottom: -20%; left: 5%; background: radial-gradient(circle, rgba(239,68,68,.35), rgba(220,38,38,.12) 35%, transparent 65%); }
.mesh-4 { width: 55vw; height: 55vw; bottom: 10%; right: 0; background: radial-gradient(circle, rgba(6,182,212,.35), rgba(14,165,233,.12) 35%, transparent 65%); }
.mesh-5 { width: 50vw; height: 50vw; top: 15%; left: 25%; background: radial-gradient(circle, rgba(139,92,246,.3), rgba(139,92,246,.08) 40%, transparent 60%); }
.login-screen, .app-shell { position: relative; z-index: 1; }

.login-screen { background: transparent; }
.login-brand { top: 22px; left: 50%; transform: translateX(-50%); width: min(960px, calc(100% - 48px)); height: 48px; padding: 0 20px; border-radius: 999px; color: #1E293B; background: rgba(255,255,255,.35); backdrop-filter: blur(40px) saturate(1.6); border-top: 1px solid rgba(255,255,255,.7); box-shadow: 0 4px 20px rgba(0,0,0,.08), inset 0 -1px rgba(0,0,0,.04); }
.login-brand strong { font-size: 16px; font-weight: 600; letter-spacing: -.02em; }
.login-brand span { margin-left: auto; font-size: 12px; color: #64748B; }
.login-card, .panel, .preview-panel, .profile-card, .post-card {
  background: rgba(255,255,255,.65);
  backdrop-filter: blur(20px) saturate(1.4);
  border: 0;
  border-top: 1px solid rgba(255,255,255,.7);
  box-shadow: 0 8px 30px rgba(0,0,0,.08), inset 0 -1px rgba(0,0,0,.04);
}
.login-card { border-radius: 20px; box-shadow: 0 16px 48px rgba(0,0,0,.14), inset 0 1px rgba(255,255,255,.8); }
.login-card h1 { color: #1E293B; font-weight: 700; letter-spacing: -.035em; line-height: 1.08; }
.login-card > p { color: #64748B; }

label { color: #475569; font-weight: 600; }
input, textarea {
  color: #1E293B;
  background: rgba(0,0,0,.03);
  border: 0;
  border-top: 1px solid rgba(0,0,0,.06);
  border-radius: 10px;
  box-shadow: inset 0 2px 4px rgba(0,0,0,.06), 0 1px rgba(255,255,255,.5);
}
input:focus, textarea:focus { border-color: var(--blue); background: rgba(255,255,255,.25); box-shadow: 0 0 0 3px rgba(37,99,235,.1), inset 0 1px 2px rgba(0,0,0,.04); }
.button { border-radius: 999px; padding: 11px 22px; font-size: 14px; font-weight: 600; }
.button.primary {
  background: radial-gradient(ellipse at 50% 30%, #60A5FA 0%, #2563EB 60%, #1D4ED8 100%);
  border: 1px solid rgba(255,255,255,.15);
  box-shadow: 0 4px 14px rgba(37,99,235,.3), 0 1px 3px rgba(0,0,0,.12), inset 0 1px 1px rgba(255,255,255,.35), inset -2px -3px 6px rgba(0,0,0,.12);
}
.button.secondary { color: #475569; background: rgba(255,255,255,.3); border: 0; border-top: 1px solid rgba(255,255,255,.6); box-shadow: 0 1px 4px rgba(0,0,0,.08), inset 0 1px rgba(255,255,255,.5); }
.button.dark { color: #fff; background: #1E293B; }

.app-shell { grid-template-columns: 260px minmax(0, 1fr); padding: 12px; gap: 12px; }
.sidebar {
  height: calc(100vh - 24px); top: 12px; padding: 24px 16px;
  color: #475569; border-radius: 24px;
  background: rgba(255,255,255,.38); backdrop-filter: blur(40px) saturate(1.5);
  border-top: 1px solid rgba(255,255,255,.7);
  box-shadow: 0 4px 20px rgba(0,0,0,.08), inset 0 -1px rgba(0,0,0,.04);
}
.sidebar-brand { padding: 0 10px 28px; }
.sidebar-brand strong { color: #1E293B; font-size: 16px; font-weight: 600; letter-spacing: -.02em; }
.sidebar-brand div span { color: #64748B; }
.tenant-switcher { margin: 0 4px 20px; padding: 12px; border-radius: 14px; background: rgba(255,255,255,.32); border-top: 1px solid rgba(255,255,255,.62); box-shadow: inset 0 -1px rgba(0,0,0,.04); }
.tenant-switcher label { margin-bottom: 5px; color: #64748B; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.tenant-switcher select { width: 100%; color: #1E293B; background: transparent; border: 0; outline: 0; font: inherit; font-size: 13px; font-weight: 600; }
.tenant-switcher small { display: block; margin-top: 6px; color: #64748B; font-size: 10px; overflow-wrap: anywhere; }
.nav-item { color: #475569; border-radius: 999px; font-weight: 500; }
.nav-item:hover { color: #1E293B; background: rgba(255,255,255,.42); }
.nav-item.active { color: #fff; background: radial-gradient(ellipse at 50% 30%, #60A5FA, #2563EB 65%, #1D4ED8); box-shadow: 0 4px 14px rgba(37,99,235,.3), inset 0 1px 1px rgba(255,255,255,.35); }
.sidebar-foot { color: #64748B; border-top-color: rgba(0,0,0,.08); }
.text-button { color: #2563EB; }
.workspace { padding-top: 28px; }
.topbar h1, .step-heading h2, .list-toolbar h2, .profile-intro h2 { color: #1E293B; }
.eyebrow { color: #2563EB; letter-spacing: .08em; }
.panel { padding: 16px; border-radius: 10px; }
.composer-flow { gap: 12px; }
.step-heading { margin-bottom: 14px; }
.step-heading > span { border-radius: 999px; background: rgba(37,99,235,.12); color: #1D4ED8; }
.language-tab, .category-chip { background: rgba(255,255,255,.5); border-color: rgba(0,0,0,.08); }
.language-tab:hover, .language-tab.active { border-color: #2563EB; background: rgba(37,99,235,.1); box-shadow: 0 0 0 2px rgba(37,99,235,.08); }
.category-chip.active { background: #2563EB; border-color: #2563EB; }
.preview-panel { border-radius: 20px; }
.phone-preview { border-color: rgba(0,0,0,.08); background: rgba(255,255,255,.88); }
.account-avatar { background: #1E293B; font-weight: 600; }
.post-card { border-radius: 10px; }
.profile-note { border-left-color: #EA580C; }
.integration-note { border-left-color: #2563EB; }
.toast { border-radius: 999px; background: #1E293B; }

/* Exact visual-design picker language from the resort Post Studio. */
.template-grid { --design-color: #1B4932; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.template-option { min-height: 0; display: grid; gap: 8px; padding: 8px; border: 2px solid transparent; border-radius: 14px; background: rgba(0,0,0,.025); color: #26332D; }
.template-option:hover { transform: translateY(-2px); border-color: transparent; background: rgba(0,0,0,.025); box-shadow: 0 10px 28px rgba(15,35,25,.12); }
.template-option.selected { border-color: var(--design-color); background: rgba(0,0,0,.025); box-shadow: 0 0 0 2px color-mix(in srgb, var(--design-color) 18%, transparent); }
.template-option:disabled { opacity: .48; cursor: not-allowed; transform: none; box-shadow: none; }
.template-option-name { display: flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 700; line-height: 1.25; }
.template-option-name::before { content: ''; width: 12px; height: 12px; flex: 0 0 12px; border: 1px solid rgba(0,0,0,.25); border-radius: 50%; background: #fff; }
.template-option.selected .template-option-name::before { border: 4px solid var(--design-color); }
.template-option-description { min-height: 34px; color: #647067; font-size: 11px; line-height: 1.35; }
.post-studio-design-preview { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 10px; background: color-mix(in srgb, var(--design-color) 38%, #071813); }
.post-studio-design-preview-photo { position: absolute; inset: 0; overflow: hidden; }
.post-studio-design-preview-photo img { width: 100%; height: 100%; display: block; object-fit: cover; }
.post-studio-design-preview-copy { position: absolute; z-index: 3; display: grid; gap: 5px; }
.post-studio-design-preview-copy i { display: block; width: 78%; height: 5px; border-radius: 10px; background: rgba(255,255,255,.92); }
.post-studio-design-preview-copy i + i { width: 55%; height: 3px; opacity: .72; }
.post-studio-design-preview-copy b { display: block; width: 45%; height: 9px; margin-top: 3px; border-radius: 8px; background: color-mix(in srgb, var(--design-color) 78%, white); }
.post-studio-design-preview-badge { position: absolute; z-index: 5; top: 8px; right: 8px; padding: 5px 7px; border: 1px solid rgba(255,255,255,.45); border-radius: 999px; background: color-mix(in srgb, var(--design-color) 82%, #071813); color: #FFFAF1; box-shadow: 0 4px 12px rgba(0,0,0,.24); font-size: 8px; font-weight: 800; letter-spacing: .08em; }
.post-studio-design-preview[data-template="raw"] .post-studio-design-preview-copy { display: none; }
.post-studio-design-preview[data-template="classic"]::after, .post-studio-design-preview[data-template="editorial_story"]::after, .post-studio-design-preview[data-template="minimal_moment"]::after { content: ''; position: absolute; inset: 0; z-index: 2; background: linear-gradient(to bottom, transparent 32%, rgba(2,12,9,.82)); }
.post-studio-design-preview[data-template="classic"] .post-studio-design-preview-copy { left: 14%; right: 14%; top: 42%; justify-items: center; }
.post-studio-design-preview[data-template="editorial_story"] .post-studio-design-preview-copy { left: 9%; right: 9%; bottom: 10%; }
.post-studio-design-preview[data-template="minimal_moment"] .post-studio-design-preview-copy { left: 12%; right: 12%; bottom: 12%; justify-items: center; }
.post-studio-design-preview[data-template="feature_focus"] .post-studio-design-preview-photo--hero, .post-studio-design-preview[data-template="direct_booking"] .post-studio-design-preview-photo--hero { bottom: 42%; }
.post-studio-design-preview[data-template="feature_focus"]::after, .post-studio-design-preview[data-template="direct_booking"]::after { content: ''; position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; height: 44%; background: color-mix(in srgb, var(--design-color) 42%, #071813); }
.post-studio-design-preview[data-template="feature_focus"] .post-studio-design-preview-copy, .post-studio-design-preview[data-template="direct_booking"] .post-studio-design-preview-copy { left: 9%; right: 9%; bottom: 9%; }
.post-studio-design-preview[data-template="split_editorial"] .post-studio-design-preview-photo--hero { left: 43%; }
.post-studio-design-preview[data-template="split_editorial"]::after { content: ''; position: absolute; z-index: 2; left: 0; top: 0; bottom: 0; width: 45%; background: color-mix(in srgb, var(--design-color) 42%, #071813); }
.post-studio-design-preview[data-template="split_editorial"] .post-studio-design-preview-copy { left: 7%; width: 34%; top: 38%; }
.post-studio-design-preview[data-template="collage_story"] .post-studio-design-preview-photo--hero { bottom: 50%; }
.post-studio-design-preview[data-template="collage_story"] .post-studio-design-preview-photo--detail-one { top: 51%; right: 51%; bottom: 20%; }
.post-studio-design-preview[data-template="collage_story"] .post-studio-design-preview-photo--detail-two { top: 51%; left: 51%; bottom: 20%; }
.post-studio-design-preview[data-template="collage_story"]::after { content: ''; position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; height: 21%; background: color-mix(in srgb, var(--design-color) 42%, #071813); }
.post-studio-design-preview[data-template="collage_story"] .post-studio-design-preview-copy { left: 8%; right: 8%; bottom: 4%; gap: 3px; }

.theme-heading { padding: 14px 16px 0; }
.theme-swatches { gap: 7px; }
.theme-swatch { width: auto; height: auto; min-height: 34px; display: inline-flex; align-items: center; gap: 6px; padding: 5px 8px 5px 6px; border: 1px solid rgba(0,0,0,.12); border-radius: 999px; background: rgba(255,255,255,.72); color: #26332D; box-shadow: none; font-size: 11px; }
.theme-swatch-color { width: 20px; height: 20px; flex: 0 0 20px; border: 2px solid rgba(255,255,255,.88); border-radius: 50%; background: var(--swatch-color); box-shadow: 0 0 0 1px rgba(0,0,0,.18); }
.theme-swatch.selected { border-color: var(--preset-color, var(--design-color)); box-shadow: 0 0 0 2px color-mix(in srgb, var(--design-color) 24%, transparent); }

@media (max-width: 760px) {
  .app-shell { padding: 0; gap: 0; }
  .sidebar { border-radius: 0; height: auto; top: 0; }
  .login-brand { width: calc(100% - 24px); }
  .template-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

