:root {
  color-scheme: light;
  --ink: #182321;
  --muted: #68726f;
  --forest: #162b2a;
  --forest-2: #21403d;
  --cream: #f5f1e8;
  --paper: #fffdf8;
  --line: #dedbd2;
  --accent: #e9834d;
  --accent-soft: #fbe7d8;
  --gold: #f6b66b;
  --green: #2f745f;
  --red: #a44e43;
  --shadow: 0 20px 50px rgba(25, 43, 40, 0.09);
  --radius: 18px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--cream); }
body { margin: 0; color: var(--ink); background: var(--cream); min-height: 100vh; }
button, input, textarea, select { font: inherit; }
button, select { cursor: pointer; }
button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, a:focus-visible { outline: 3px solid rgba(233, 131, 77, .3); outline-offset: 2px; }
[hidden] { display: none !important; }

.ambient { position: fixed; inset: 0; pointer-events: none; background: radial-gradient(circle at 18% 12%, rgba(246,182,107,.18), transparent 30%), radial-gradient(circle at 90% 82%, rgba(47,116,95,.1), transparent 32%); }
.brand-mark { display: inline-flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; font-weight: 760; letter-spacing: -.02em; }
.brand-symbol { width: 38px; height: 38px; display: grid; place-items: center; color: var(--forest); background: var(--gold); border-radius: 12px 5px 12px 5px; font-family: Georgia, serif; font-style: italic; font-size: 22px; }
.brand-mark.compact { color: var(--paper); }
.brand-mark.compact .brand-symbol { width: 32px; height: 32px; font-size: 18px; }
.eyebrow { margin: 0 0 8px; color: var(--accent); font-size: 11px; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }

.auth-shell { position: relative; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(380px, .85fr); min-height: 100vh; }
.auth-story { padding: clamp(34px, 6vw, 84px); background: var(--forest); color: var(--paper); display: flex; flex-direction: column; justify-content: space-between; gap: 80px; overflow: hidden; position: relative; }
.auth-story::after { content: ""; position: absolute; width: 440px; height: 440px; right: -220px; top: 20%; border: 1px solid rgba(246,182,107,.24); border-radius: 50%; box-shadow: 0 0 0 56px rgba(246,182,107,.035), 0 0 0 112px rgba(246,182,107,.025); }
.auth-story h1 { position: relative; max-width: 760px; margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(48px, 6.5vw, 94px); font-weight: 400; line-height: .98; letter-spacing: -.055em; }
.auth-story h1 em { color: var(--gold); font-weight: 400; }
.intro { max-width: 630px; margin: 28px 0 0; color: #c9d0cd; font-size: clamp(17px, 1.5vw, 21px); line-height: 1.65; }
.trust-list { list-style: none; display: grid; gap: 14px; margin: 0; padding: 0; color: #d9dfdc; }
.trust-list li { display: flex; align-items: center; gap: 16px; font-size: 14px; }
.trust-list span { color: var(--gold); font-size: 11px; letter-spacing: .12em; }
.auth-panel { align-self: center; width: min(480px, calc(100% - 48px)); margin: 40px auto; padding: 40px; border: 1px solid rgba(22,43,42,.1); background: rgba(255,253,248,.94); border-radius: 26px; box-shadow: var(--shadow); backdrop-filter: blur(16px); }
.segmented { display: grid; grid-template-columns: 1fr 1fr; padding: 4px; margin-bottom: 40px; border-radius: 12px; background: #ebe7de; }
.segmented button { padding: 10px; color: var(--muted); background: transparent; border: 0; border-radius: 9px; font-size: 13px; font-weight: 700; }
.segmented button.active { color: var(--forest); background: var(--paper); box-shadow: 0 2px 9px rgba(22,43,42,.08); }
.auth-copy h2, .modal h2 { margin: 0; font-family: Georgia, serif; font-size: 34px; font-weight: 500; letter-spacing: -.03em; }
.auth-copy > p:last-child { color: var(--muted); line-height: 1.55; }

.form-stack { display: grid; gap: 17px; }
label { display: grid; gap: 7px; }
label > span { color: #43504d; font-size: 12px; font-weight: 760; letter-spacing: .01em; }
label small { color: #8a928f; font-weight: 500; }
input, textarea, select { width: 100%; border: 1px solid var(--line); color: var(--ink); background: #fff; border-radius: 10px; padding: 11px 12px; transition: border-color .18s, box-shadow .18s; }
textarea { resize: vertical; min-height: 78px; line-height: 1.5; }
input:hover, textarea:hover, select:hover { border-color: #bcbab3; }
input:focus, textarea:focus, select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(233,131,77,.12); outline: 0; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 42px; padding: 9px 15px; border: 1px solid transparent; border-radius: 10px; font-weight: 760; font-size: 13px; transition: transform .15s, background .15s, opacity .15s; }
.button:hover:not(:disabled) { transform: translateY(-1px); }
.button:disabled { opacity: .48; cursor: not-allowed; }
.button.full { width: 100%; }
.button.primary { color: #fff; background: var(--forest); }
.button.primary:hover:not(:disabled) { background: var(--forest-2); }
.button.secondary { color: var(--forest); background: #fff; border-color: var(--line); }
.button.quiet { color: #dbe3df; background: transparent; border-color: rgba(255,255,255,.2); }
.button.success { color: #fff; background: var(--green); }
.button.danger { color: var(--red); background: #fff; border-color: #dfb8b1; }
.form-message { min-height: 18px; margin: 0; color: var(--red); font-size: 13px; }

.app-shell { min-height: 100vh; position: relative; }
.topbar { position: sticky; z-index: 10; top: 0; height: 66px; padding: 0 24px; background: var(--forest); display: flex; align-items: center; justify-content: space-between; box-shadow: 0 6px 20px rgba(20,40,38,.13); }
.topbar-actions { display: flex; align-items: center; gap: 12px; }
.user-badge { color: #bdc9c4; font-size: 12px; }
.facebook-connected-status { padding: 7px 10px; color: #dff7ec; background: #245c4b; border: 1px solid #397765; border-radius: 999px; font-size: 12px; font-weight: 800; white-space: nowrap; }
.workspace { display: grid; grid-template-columns: 250px minmax(0, 1fr); min-height: calc(100vh - 66px); }
.sidebar { padding: 25px 18px; background: #ede9e0; border-right: 1px solid #dad5cb; display: flex; flex-direction: column; gap: 28px; }
.sidebar-section { display: grid; gap: 10px; }
.sidebar-section.grow { flex: 1; }
.section-label-row { display: flex; align-items: center; justify-content: space-between; }
.section-label { color: #79817e; font-size: 10px; text-transform: uppercase; letter-spacing: .14em; font-weight: 800; }
.icon-button { width: 30px; height: 30px; display: grid; place-items: center; border: 1px solid var(--line); color: var(--forest); background: #fff; border-radius: 9px; font-size: 18px; line-height: 1; }
.brand-list { display: grid; gap: 7px; }
.brand-item { width: 100%; display: flex; align-items: center; gap: 10px; padding: 10px; border: 0; color: #44504d; background: transparent; border-radius: 11px; text-align: left; }
.brand-item:hover { background: rgba(255,255,255,.64); }
.brand-item.active { color: var(--forest); background: #fff; box-shadow: 0 4px 14px rgba(22,43,42,.07); font-weight: 760; }
.brand-avatar { flex: 0 0 32px; width: 32px; height: 32px; display: grid; place-items: center; color: var(--forest); background: var(--accent-soft); border-radius: 9px; font-family: Georgia, serif; }
.privacy-note { padding: 12px; display: flex; align-items: flex-start; gap: 10px; border: 1px solid #d7d2c7; border-radius: 12px; background: rgba(255,255,255,.45); }
.privacy-dot { width: 8px; height: 8px; margin-top: 4px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(47,116,95,.12); }
.privacy-note strong, .privacy-note small { display: block; }
.privacy-note strong { font-size: 11px; }
.privacy-note small { color: var(--muted); margin-top: 3px; font-size: 10px; }

.studio { padding: clamp(26px, 4vw, 58px); max-width: 1450px; width: 100%; margin: 0 auto; }
.studio-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.studio-heading h1 { margin: 0; font-family: Georgia, serif; font-size: clamp(32px, 4vw, 52px); font-weight: 500; letter-spacing: -.04em; }
.studio-heading > div > p:last-child { margin: 9px 0 0; color: var(--muted); }
.role-badge { padding: 7px 10px; color: var(--green); background: #dcece6; border-radius: 999px; font-size: 11px; font-weight: 800; text-transform: capitalize; }
.studio-grid { display: grid; grid-template-columns: minmax(330px, .82fr) minmax(390px, 1.18fr); gap: 20px; align-items: start; }
.card { padding: 23px; background: var(--paper); border: 1px solid rgba(51,69,65,.12); border-radius: var(--radius); box-shadow: 0 10px 30px rgba(35,50,47,.055); }
.card-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 18px; margin-bottom: 20px; border-bottom: 1px solid #e9e5dc; }
.card-heading > div { display: flex; align-items: center; gap: 10px; }
.card-heading h2, .section-heading h2 { margin: 0; font-family: Georgia, serif; font-weight: 500; letter-spacing: -.025em; }
.step-number { width: 26px; height: 26px; display: grid; place-items: center; color: var(--accent); background: var(--accent-soft); border-radius: 8px; font-size: 11px; font-weight: 800; }
.fake-label { padding: 5px 8px; color: #6b5c42; background: #f6ead2; border-radius: 999px; font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.compact-form { gap: 14px; }
.field-title { display: block; margin-bottom: 7px; color: #43504d; font-size: 12px; font-weight: 760; }
.field-title small { color: #8a928f; font-weight: 500; }
.upload-drop { grid-template-columns: auto 1fr; align-items: center; gap: 12px; padding: 14px; border: 1px dashed #c8c3b8; border-radius: 12px; background: #faf7f0; cursor: pointer; }
.upload-drop:hover { border-color: var(--accent); background: #fff8f1; }
.upload-drop input { position: absolute; width: 1px; height: 1px; overflow: hidden; opacity: 0; pointer-events: none; }
.upload-icon { width: 34px; height: 34px; display: grid; place-items: center; color: var(--accent); background: var(--accent-soft); border-radius: 9px; font-weight: 900; }
.upload-drop strong, .upload-drop small, .media-preview strong, .media-preview small { display: block; }
.upload-drop strong { color: var(--forest); font-size: 12px; }
.upload-drop small, .media-preview small { margin-top: 3px; color: var(--muted); font-size: 10px; }
.media-preview { display: grid; grid-template-columns: 54px minmax(0,1fr) auto; align-items: center; gap: 11px; margin-top: 8px; padding: 8px; border: 1px solid #d7d2c7; border-radius: 12px; background: #fff; }
.media-preview img { width: 54px; height: 54px; object-fit: cover; border-radius: 9px; background: #eee; }
.media-preview strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 12px; }
.two-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.status-pill { padding: 6px 9px; border-radius: 999px; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.status-pill.neutral { color: #707976; background: #eceae5; }
.status-pill.draft { color: #805b27; background: #f5e8cd; }
.status-pill.in_review { color: #4a5e8a; background: #e4e9f3; }
.status-pill.approved { color: #28614f; background: #dcece6; }
.status-pill.rejected { color: #90483e; background: #f5dfdc; }
.preview-empty { min-height: 380px; display: grid; place-content: center; text-align: center; color: var(--muted); }
.preview-empty p { max-width: 260px; font-size: 13px; line-height: 1.55; }
.preview-lines { display: grid; gap: 8px; width: 190px; margin: 0 auto 20px; }
.preview-lines i { height: 9px; background: #e9e5dc; border-radius: 99px; }
.preview-lines i:nth-child(2) { width: 76%; }.preview-lines i:nth-child(3) { width: 54%; }
.action-row, .decision-row { display: flex; gap: 10px; flex-wrap: wrap; }
.action-row > *, .decision-row > * { flex: 1; }
.field-help { display: block; color: var(--muted); line-height: 1.45; }
.toggle-row { display: flex !important; align-items: center; gap: .65rem; }
.toggle-row input { width: 1.1rem; height: 1.1rem; margin: 0; }
.mini-actions { display: flex; gap: .65rem; justify-content: flex-end; }
.text-button { border: 0; padding: 0; background: transparent; color: var(--accent, #176b58); font: inherit; font-size: .78rem; text-decoration: underline; cursor: pointer; }
.danger-text { color: #9b4238; }
.decision-row { padding-top: 14px; border-top: 1px solid #e9e5dc; }
.recent-section { margin-top: 34px; }
.section-heading { display: flex; justify-content: space-between; margin-bottom: 12px; }
.draft-list { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; }
.draft-item { padding: 15px; border: 1px solid var(--line); background: rgba(255,253,248,.74); border-radius: 13px; text-align: left; }
.draft-item:hover { background: var(--paper); border-color: #bbb8b0; }
.draft-item strong, .draft-item small, .draft-item span { display: block; }
.draft-item strong { margin: 7px 0; font-family: Georgia, serif; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.draft-item small { color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .08em; }
.draft-item span { color: var(--muted); font-size: 11px; }
.empty-state { min-height: 460px; display: grid; place-content: center; justify-items: center; text-align: center; padding: 40px; border: 1px dashed #c9c4b9; background: rgba(255,253,248,.55); border-radius: 22px; }
.empty-state h2 { margin: 14px 0 8px; font-family: Georgia, serif; font-size: 28px; font-weight: 500; }
.empty-state p { max-width: 460px; color: var(--muted); line-height: 1.6; }
.empty-icon { width: 50px; height: 50px; display: grid; place-items: center; color: var(--accent); background: var(--accent-soft); border-radius: 14px; font-size: 24px; }

.modal { width: min(520px, calc(100% - 28px)); padding: 0; border: 0; border-radius: 22px; background: var(--paper); box-shadow: 0 30px 80px rgba(20,35,33,.25); }
.modal.wide { width: min(760px, calc(100% - 28px)); }
.modal::backdrop { background: rgba(16,29,28,.55); backdrop-filter: blur(5px); }
.modal form { padding: 28px; }
.modal-heading { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 10px; }
.step-copy { margin: 0; color: var(--muted); line-height: 1.55; }
.prepared-label { color: var(--green); font-size: 10px; font-weight: 750; text-align: right; }
.advanced-brief { border: 1px solid var(--line); border-radius: 11px; background: #faf8f3; }
.advanced-brief summary { padding: 12px 14px; color: var(--muted); cursor: pointer; font-size: 12px; font-weight: 750; }
.advanced-brief[open] summary { border-bottom: 1px solid var(--line); }
.advanced-brief > div { padding: 14px; }
.chat-bubble { max-width: 88%; padding: 13px 15px; border-radius: 5px 15px 15px 15px; color: var(--forest); background: var(--accent-soft); line-height: 1.5; font-size: 13px; }
.onboarding-actions { display: grid; grid-template-columns: auto 1fr; gap: 10px; }
.guide-link { color: var(--green); font-size: 12px; font-weight: 750; text-align: center; }
.toast { position: fixed; z-index: 30; right: 22px; bottom: 22px; max-width: 380px; padding: 13px 16px; color: #fff; background: var(--forest); border-radius: 12px; box-shadow: var(--shadow); font-size: 13px; }
.toast.error { background: #8d433b; }

@media (max-width: 980px) {
  .auth-shell { grid-template-columns: 1fr; }
  .auth-story { min-height: 48vh; gap: 45px; }
  .trust-list { display: none; }
  .auth-panel { margin: -24px auto 36px; position: relative; z-index: 2; }
  .workspace { grid-template-columns: 200px minmax(0, 1fr); }
  .studio-grid { grid-template-columns: 1fr; }
  .draft-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
  .auth-story { padding: 28px 24px 60px; min-height: 420px; }
  .auth-story h1 { font-size: 47px; }
  .auth-panel { width: calc(100% - 24px); padding: 26px 20px; }
  .topbar { padding: 0 14px; }
  .brand-mark.compact > span:last-child, .user-badge { display: none; }
  .facebook-connected-status { max-width: 190px; overflow: hidden; text-overflow: ellipsis; }
  .workspace { display: block; }
  .sidebar { padding: 12px 14px; border-right: 0; border-bottom: 1px solid #dad5cb; gap: 12px; }
  .sidebar-section.grow { display: block; }
  .brand-list { display: flex; overflow-x: auto; gap: 6px; padding-bottom: 3px; }
  .brand-item { min-width: max-content; width: auto; }
  .privacy-note { display: none; }
  .studio { padding: 28px 14px 50px; }
  .studio-heading { align-items: flex-start; }
  .studio-heading h1 { font-size: 34px; }
  .studio-heading > div > p:last-child { font-size: 13px; }
  .card { padding: 17px; }
  .two-fields { grid-template-columns: 1fr; }
  .draft-list { grid-template-columns: 1fr; }
  .fake-label { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
.schedule-panel { margin-top: 1.25rem; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.official-connections { margin-bottom: 1rem; padding: 1rem; border: 1px solid #cfe0d8; border-radius: .8rem; background: #f2f8f5; }
.official-connections p { margin: .35rem 0 .8rem; color: var(--muted); font-size: .8rem; line-height: 1.5; }
.schedule-heading { display: flex; align-items: center; gap: .75rem; margin-bottom: 1rem; }
.schedule-heading h3 { margin: 0; }
.schedule-heading small { color: var(--muted); }
.publication-list { display: grid; gap: .55rem; margin-top: 1rem; }
.publication-row { display: flex; justify-content: space-between; gap: 1rem; padding: .75rem; border: 1px solid var(--line); border-radius: .75rem; background: var(--surface-soft, #f8f7f3); }
.publication-row small { color: var(--muted); }
.generated-image-panel { display: grid; gap: .5rem; }
.generated-image-panel > span { font-size: .85rem; font-weight: 700; }
.generated-image-panel img { width: 100%; max-height: 420px; object-fit: contain; border-radius: .9rem; border: 1px solid var(--line); background: #f4f2ec; }
.website-image-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .65rem; max-height: 360px; overflow: auto; padding: .2rem; }
.website-image-option { display: grid; gap: .35rem; padding: .45rem; border: 1px solid var(--line); border-radius: .75rem; background: #fff; color: inherit; cursor: pointer; }
.website-image-option:hover, .website-image-option:focus-visible { border-color: var(--accent, #d97745); box-shadow: 0 0 0 2px rgba(217,119,69,.16); }
.website-image-option img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: .5rem; background: #f4f2ec; }
.website-image-option span { font-size: .75rem; font-weight: 700; }
@media (max-width: 700px) { .website-image-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.calendar-list { display: grid; gap: .75rem; }
.calendar-list .publication-row { align-items: flex-start; background: #fff; }
.calendar-list .publication-row > div:first-child { min-width: 0; }
.calendar-list .publication-row > div:last-child { display: grid; justify-items: end; gap: .4rem; white-space: nowrap; }
.calendar-list .publication-row p { margin: .35rem 0 0; color: var(--muted); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.calendar-empty { margin: 0; padding: 1rem; border: 1px dashed var(--line); border-radius: .8rem; color: var(--muted); }
.campaign-bulk-controls { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; }
.campaign-day-grid { display: grid; gap: .45rem; max-height: 420px; overflow: auto; }
.campaign-day-row { display: grid; grid-template-columns: auto minmax(105px,.8fr) repeat(3,minmax(120px,1fr)); align-items: center; gap: .45rem; padding: .5rem; border: 1px solid var(--line); border-radius: .7rem; background: #fff; }
.campaign-day-row strong { font-size: .76rem; }
.campaign-day-row select { min-width: 0; padding: .55rem; font-size: .75rem; }
.campaign-day-row input { width: 1rem; height: 1rem; }
.support-chat-button { position: fixed; z-index: 20; right: 22px; bottom: 22px; border: 0; border-radius: 999px; padding: .8rem 1rem; color: #fff; background: var(--forest); box-shadow: var(--shadow); font-weight: 750; cursor: pointer; }
.support-chat-panel { position: fixed; z-index: 29; right: 22px; bottom: 76px; width: min(390px, calc(100vw - 28px)); max-height: min(620px, calc(100vh - 110px)); padding: 1rem; border: 1px solid var(--line); border-radius: 1rem; background: var(--paper); box-shadow: var(--shadow); }
.support-chat-messages { display: grid; gap: .55rem; max-height: 330px; overflow: auto; padding: .35rem 0 .75rem; }
.support-chat-messages .chat-bubble.user { justify-self: end; border-radius: 15px 5px 15px 15px; background: #e8ecea; }
@media (max-width: 900px) { .campaign-day-row { grid-template-columns: auto 1fr; } .campaign-day-row select { grid-column: 2; } }
.offer-line { display: inline-flex; align-items: center; gap: .35rem; margin-top: 1rem; padding: .65rem .9rem; border: 1px solid rgba(255,255,255,.22); border-radius: 999px; background: rgba(255,255,255,.08); font-size: .9rem; }

/* Authenticated workspace: restrained corporate dashboard */
.app-shell { color: #172333; background: #f3f6f9; }
.app-shell .topbar { height: 70px; padding: 0 28px; background: #102438; box-shadow: 0 1px 0 rgba(255,255,255,.08), 0 8px 24px rgba(15,35,53,.12); }
.app-shell .brand-symbol { color: #0e2940; background: linear-gradient(145deg, #ffcb74, #f2a84a); border-radius: 9px; font-family: inherit; font-style: normal; font-weight: 850; }
.app-shell .workspace { grid-template-columns: 260px minmax(0, 1fr); min-height: calc(100vh - 70px); }
.app-shell .sidebar { padding: 24px 18px; gap: 30px; background: #fff; border-right: 1px solid #dde4eb; }
.app-shell .section-label { color: #718096; font-size: 10px; }
.app-shell .sidebar select { border-color: #d8e0e8; background: #f8fafc; }
.app-shell .brand-item { border: 1px solid transparent; color: #506071; }
.app-shell .brand-item:hover { background: #f4f7fa; }
.app-shell .brand-item.active { color: #12324d; background: #edf5fb; border-color: #cfe1ef; box-shadow: none; }
.app-shell .sidebar-section.grow, .app-shell .brand-list { align-content: start; }
.app-shell .brand-avatar { color: #125276; background: #dceef8; border-radius: 8px; font-family: inherit; font-weight: 850; }
.app-shell .privacy-note { border-color: #dce6ed; background: #f7fafb; }
.app-shell .studio { max-width: 1540px; padding: 34px clamp(24px, 3vw, 48px) 70px; }
.app-shell .studio-heading { align-items: center; margin-bottom: 20px; }
.app-shell .studio-heading h1 { font-family: inherit; font-size: clamp(28px, 3vw, 40px); font-weight: 760; letter-spacing: -.035em; }
.app-shell .studio-heading > div > p:last-child { max-width: 900px; font-size: 13px; }
.app-shell .eyebrow { color: #2678a8; }
.app-shell .role-badge { color: #176144; background: #ddf2e8; }
.dashboard-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 22px; }
.summary-card { min-width: 0; padding: 16px 18px; border: 1px solid #dce4ec; border-radius: 12px; background: #fff; box-shadow: 0 5px 18px rgba(24,48,70,.04); }
.summary-card span, .summary-card small { display: block; color: #738193; font-size: 10px; font-weight: 700; letter-spacing: .04em; }
.summary-card span { text-transform: uppercase; }
.summary-card strong { display: block; margin: 7px 0 4px; overflow: hidden; color: #122c43; font-size: clamp(20px, 2vw, 27px); line-height: 1.1; text-overflow: ellipsis; white-space: nowrap; }
.client-brain-card { margin-bottom: 22px; padding: 20px; border: 1px solid #cfe1ef; border-radius: 14px; background: linear-gradient(135deg,#fff,#f5faff); box-shadow: 0 6px 20px rgba(22,48,72,.045); }
.client-brain-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.client-brain-heading h2 { margin: .15rem 0 0; color: #142d43; font-size: 1.15rem; }
.client-brain-recommendation { margin: 12px 0 16px; padding: 12px 14px; border-left: 3px solid #2678a8; background: #edf6fb; color: #173f5f; }
.client-brain-columns { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; margin-bottom: 14px; }
.client-brain-columns > div { padding: 12px; border: 1px solid #e0e8ef; border-radius: 10px; background: #fff; }
.brain-list { display: grid; gap: 7px; margin-top: 8px; color: #526273; font-size: .82rem; }
.brain-item { padding: 8px; border-radius: 7px; background: #f6f9fb; }
.brain-item button { margin-top: 6px; }
.client-brain-forms { display: grid; grid-template-columns: .8fr 1.2fr; gap: 18px; padding: 16px; }
.decision-reason { grid-column: 1 / -1; width: 100%; }
.app-shell .studio-grid { grid-template-columns: minmax(370px, .9fr) minmax(430px, 1.1fr); gap: 18px; }
.app-shell .studio-grid:has(#campaign-rules[open]) { grid-template-columns: 1fr; }
.app-shell .card { border-color: #dce4ec; border-radius: 14px; background: #fff; box-shadow: 0 8px 24px rgba(22,48,72,.055); }
.app-shell .card-heading { border-bottom-color: #e6ebf0; }
.app-shell .card-heading h2, .app-shell .section-heading h2 { color: #142d43; font-family: inherit; font-weight: 750; }
.app-shell .step-number { color: #166895; background: #dff0f9; }
.app-shell .button.primary { background: #173f5f; }
.app-shell .button.primary:hover:not(:disabled) { background: #0f324d; }
.app-shell .button.success { background: #227553; }
.app-shell input:focus, .app-shell textarea:focus, .app-shell select:focus { border-color: #2d7ba5; box-shadow: 0 0 0 3px rgba(45,123,165,.12); }
.app-shell .advanced-brief { border-color: #dfe6ec; background: #f8fafc; }
.app-shell .local-testing-tools { margin-top: .75rem; }
.app-shell .local-testing-tools form { padding: 14px; }
.app-shell .upload-drop { border-color: #cfd9e2; background: #f8fafc; }
.app-shell .upload-icon { color: #176c9a; background: #dff0f9; }
.app-shell .recent-section { padding: 20px; border: 1px solid #dce4ec; border-radius: 14px; background: #fff; }
.app-shell .draft-item { border-color: #dfe6ec; background: #f9fbfc; }
.app-shell .draft-item strong { font-family: inherit; }
.app-shell .support-chat-button { right: 24px; bottom: 24px; background: #173f5f; }
.app-shell .toast { bottom: 82px; background: #173f5f; }
@media (max-width: 1100px) { .dashboard-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px) { .app-shell .workspace { display: block; } .dashboard-summary { grid-template-columns: 1fr 1fr; } .client-brain-columns,.client-brain-forms { grid-template-columns: 1fr; } .app-shell .studio-grid { grid-template-columns: 1fr; } .app-shell .prepared-label { display: none; } .app-shell .support-chat-button { padding: .7rem .85rem; font-size: .8rem; } }
