@font-face{font-family:Sora;src:url('/static/sora-regular.ttf') format('truetype');font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:Sora;src:url('/static/sora-semibold.ttf') format('truetype');font-weight:600;font-style:normal;font-display:swap}
@font-face{font-family:Sora;src:url('/static/sora-bold.ttf') format('truetype');font-weight:700 900;font-style:normal;font-display:swap}
:root {
  color-scheme: light;
  --bg: var(--studio-canvas);
  --white: var(--studio-surface);
  --line: var(--studio-line);
  --ink: var(--studio-ink);
  --muted: var(--studio-muted);
  --purple: var(--studio-accent);
  --purple-hover: var(--studio-accent-hover);
  --accent-text: var(--studio-green);
  --soft: var(--studio-mint);
  --sidebar-surface: var(--studio-surface);
  --button-surface: var(--studio-surface);
  --nav-active-surface: var(--studio-mint);
  --on-accent: var(--studio-ink);
  --danger: var(--studio-danger);
  --danger-surface: var(--studio-danger-surface);
  --danger-line: var(--studio-danger-line);
  --success: var(--studio-success);
  --success-surface: var(--studio-mint);
  --highlight: var(--studio-mint);
  --warning: var(--studio-warning);
  background: var(--bg);
  color: var(--ink);
  font-family: var(--studio-font);
  font-size: 14px;
}
*{box-sizing:border-box}body{margin:0;background:var(--bg)}[hidden]{display:none!important}button,input,select,textarea{font:inherit}button,a,input,textarea,select{outline-offset:4px}button{cursor:pointer}button:disabled{cursor:wait;opacity:.5}a{color:inherit}h1,h2,h3,p{margin-top:0}h2{font-size:18px}label{display:block;font-size:11px;font-weight:600;margin:23px 0 9px;line-height:1.7}input,select,textarea{width:100%;border:1px solid #d6d5dd;border-radius:3px;padding:12px 13px;background:#fff;color:var(--ink);font-size:12px}textarea{line-height:1.85;resize:vertical}textarea:focus,input:focus,select:focus{outline:2px solid var(--purple);border-color:transparent}button{border:0}.shell{display:grid;grid-template-columns:242px 1fr;min-height:100vh}.sidebar{background:#fff;color:#171717;padding:36px 18px 24px;display:flex;flex-direction:column;position:fixed;inset:0 auto 0 0;width:242px;height:100vh;z-index:10;border-right:1px solid var(--line)}.brand{display:flex;flex-direction:column;align-items:flex-start;gap:18px;text-decoration:none;padding:0 13px}.agency-logo{display:block;width:180px;height:auto;object-fit:contain}.brand-sub{display:block;font-size:8px;font-weight:600;letter-spacing:1.45px;color:#77737d}.workspace-label{font-size:8px;letter-spacing:1.5px;font-weight:600;color:#97939f;margin:47px 13px 17px}nav{display:flex;flex-direction:column;gap:7px}nav button{display:flex;align-items:center;gap:11px;width:100%;background:transparent;color:#75717d;text-align:left;padding:14px 12px;border-radius:3px;font-size:16px}nav button span{font-size:11px}nav button:hover{background:var(--soft);color:var(--purple)}nav button.active{background:var(--purple);color:#fff}.nav-tag{margin-left:auto;font-size:8px!important;opacity:.7}.sidebar-bottom{margin-top:auto;padding:26px 12px 0}.private-badge{font-size:9px;color:#77717f;display:flex;align-items:center;gap:8px}.dot{height:6px;width:6px;background:var(--purple);border-radius:100%;display:inline-block}.logout{background:none;color:#39353f;padding:18px 0;font-size:10px}.logout:hover{color:var(--purple)}.sidebar-bottom p{font-size:7px;letter-spacing:1px;color:#a09ba7;margin:10px 0 0}main{grid-column:2;min-width:0}.topbar{height:79px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 40px;color:#89838e;font-size:10px;background:#fff}.workspace-pill{font-size:9px;font-weight:700;letter-spacing:1.2px;color:#222}.view{padding:39px 40px 55px;max-width:1640px;margin:auto}.eyebrow{color:var(--purple);font-size:9px;letter-spacing:1.65px;font-weight:600;margin-bottom:18px}.page-heading h1{font-size:clamp(34px,4vw,58px);line-height:1.1;font-weight:700;letter-spacing:-2.6px;margin-bottom:20px}.page-heading h1 span{color:var(--purple)}.page-heading>p:last-child,.page-heading>div>p:last-child{font-size:11px;color:#797380;line-height:1.9}.page-heading{margin:10px 0 40px}.page-heading.compact{margin:0 0 29px}.compact h1{font-size:39px;letter-spacing:-1.9px;text-transform:uppercase}.compact .eyebrow{margin-bottom:13px}.compact h1{margin-bottom:12px}
#view-home .page-heading{position:relative;overflow:hidden;background:#0b0b0d;color:#fff;margin:0 0 33px;padding:37px 38px 33px;min-height:275px}#view-home .page-heading::after{content:"";position:absolute;width:250px;height:204px;right:25px;top:35px;background:url("/static/favicon.svg?v=3") center/contain no-repeat;opacity:.9;pointer-events:none}#view-home .page-heading h1{position:relative;z-index:1;font-size:clamp(36px,4.5vw,65px);letter-spacing:-2.8px;margin-bottom:20px;max-width:80%}#view-home .page-heading h1 span{color:#fff}#view-home .page-heading .eyebrow{color:var(--ink);position:relative;z-index:1}#view-home .page-heading>p:last-child{color:#bcb9c5;position:relative;z-index:1;max-width:65%;margin-bottom:0}.section-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:18px}.section-heading h2{font-size:13px;text-transform:uppercase;letter-spacing:-.4px;margin:0}.section-heading>span{font-size:9px;color:var(--muted)}.tool-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px;max-width:1180px}.tool-card{background:var(--white);border:1px solid var(--line);border-radius:4px;padding:27px;text-align:left;min-height:275px;transition:transform .2s,border-color .2s;color:var(--ink)}button.tool-card:hover{transform:translateY(-3px);border-color:var(--purple)}.tool-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:27px}.tool-icon{width:41px;height:41px;background:var(--purple);color:#fff;display:flex;align-items:center;justify-content:center;font-size:22px;border-radius:2px}.live-label{font-size:7px;letter-spacing:1px;color:var(--purple);background:var(--soft);padding:7px 9px}.tool-card h2{font-size:21px;font-weight:700;letter-spacing:-.8px;margin-bottom:12px;text-transform:uppercase}.tool-card p{font-size:10px;line-height:1.95;color:var(--muted);max-width:350px}.tool-footer{border-top:1px solid var(--line);margin-top:24px;padding-top:17px;display:flex;justify-content:space-between;align-items:center}.tool-footer span{font-size:8px;letter-spacing:1px;color:#89828e}.tool-footer b{font-size:23px;font-weight:400;color:var(--purple)}.future-card{background:#eeedf2;border:1px dashed #d2cedd;color:#8b8595;display:flex;justify-content:center;flex-direction:column;align-items:center;text-align:center}.future-card h2{font-size:14px;letter-spacing:-.4px}.future-card p{max-width:280px;font-size:10px}.plus{font-size:33px;font-weight:400;margin:6px 0 20px;color:#a29aaf}.home-strip{display:flex;align-items:center;justify-content:space-between;gap:20px;background:var(--purple);color:#fff;padding:28px 30px;margin-top:24px;border-radius:3px;max-width:1180px}.home-strip .eyebrow{font-size:8px;color:#d2caff}.home-strip h3{font-size:17px;font-weight:600;letter-spacing:-.5px;margin:10px 0}.home-strip p{font-size:10px;color:#e0dbff;margin:0;line-height:1.9}.home-strip .secondary{background:#fff;border-color:#fff;color:var(--purple)}.primary{background:var(--purple);color:#fff;border-radius:3px;padding:14px 18px;font-weight:600;font-size:10px;display:inline-flex;align-items:center;justify-content:center;gap:23px;white-space:nowrap;transition:background .15s}.primary:hover{background:var(--purple-hover)}.primary span{color:#fff;font-size:18px}.secondary{border:1px solid #d9d5e6;background:#fff;color:#28222f;padding:11px 13px;border-radius:3px;font-size:10px;white-space:nowrap}.secondary:hover{background:var(--soft);color:var(--purple);border-color:#c3b9ff}.editor-grid{display:grid;grid-template-columns:minmax(330px,1fr) minmax(350px,1.04fr);gap:22px;align-items:start}.panel{border:1px solid var(--line);border-radius:4px;background:#fff;padding:24px;min-width:0}.panel-heading{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);padding-bottom:21px;gap:12px}.panel-heading h2{font-size:12px;margin:0;display:flex;align-items:center;gap:11px;letter-spacing:-.3px}.step{font-size:8px;color:var(--purple);border:1px solid #dcd4ff;background:#f7f5ff;padding:6px;border-radius:2px}.small-label,.status-label{font-size:7px;letter-spacing:.6px;color:#9a93a2}.status-label{max-width:145px;text-align:right;line-height:1.6}.select-row{display:flex;gap:8px}.icon-button{width:37px;flex-shrink:0;border:1px solid var(--line);background:#fff;border-radius:3px;font-size:20px;color:var(--purple)}.icon-button:hover{background:var(--soft)}.brand-summary{padding:11px 13px;background:#f4f1ff;border-left:2px solid var(--purple);margin-top:11px;font-size:9px;color:#807393;line-height:1.9;max-height:90px;overflow:auto}.label-row{display:flex;align-items:center;justify-content:space-between;margin-top:23px;margin-bottom:9px}.label-row label{margin:0}.label-row span{font-size:9px;color:#9990a3}.source-tip{font-size:9px;color:#97909e;line-height:1.9;margin-top:9px}.optional{font-weight:400;font-size:9px;color:#9f96a9}.generation-footer{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:22px}.generation-footer>span{font-size:8px;color:#9b92a4;line-height:1.7}.micro{font-size:8px;line-height:1.95;color:#9b93a3;margin-top:13px;margin-bottom:0}.result-panel{min-height:620px}.empty-state{min-height:490px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center}.empty-icon{width:69px;height:69px;border:1px solid #e2dafa;display:flex;align-items:center;justify-content:center;font-size:32px;color:var(--purple);background:#f6f3ff;margin-bottom:28px}.empty-state h3{font-size:16px;font-weight:600;letter-spacing:-.7px}.empty-state p{font-size:10px;line-height:1.95;color:#9c93a7;max-width:275px}.empty-flow{display:flex;align-items:center;gap:11px;color:#c0b5d4;font-size:9px;margin-top:20px}.empty-flow span{border:1px solid var(--line);padding:6px 10px;border-radius:2px;color:#9686ac}.checks{display:flex;flex-wrap:wrap;gap:6px;margin:18px 0}.check-chip{font-size:8px;background:var(--soft);color:#6552bd;padding:7px 9px;border-radius:2px;line-height:1.6}.check-chip.bad{color:#98551e;background:#fff0e2}.article-preview{font-size:12px;line-height:2;color:#4a4352;overflow-wrap:anywhere}.article-preview h1{font-size:25px;letter-spacing:-1px;line-height:1.4;color:#18141c;margin:23px 0 17px;font-weight:700}.article-preview h2{font-size:17px;font-weight:600;letter-spacing:-.5px;line-height:1.5;margin:25px 0 13px;color:#25202c}.article-preview p{margin-bottom:14px}.article-preview li{margin-bottom:6px}details{border-top:1px solid var(--line);padding:16px 0;margin-top:14px;font-size:10px}summary{cursor:pointer;color:#715b99;font-size:10px;line-height:1.8}.snapshot,pre{white-space:pre-wrap;word-break:break-word;max-height:400px;overflow:auto;line-height:1.9;font-family:inherit;font-size:10px;color:#8a7e99}#issues{color:#916530;line-height:1.9}.export-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:22px}.text-button{background:none;color:var(--purple);font-size:9px;padding:10px 0}.notice{background:#f2eeff;color:#73618e;padding:15px;border-left:2px solid var(--purple);border-radius:2px;font-size:10px;line-height:1.9}.notice code{font-size:9px;display:block;overflow-wrap:anywhere;color:#46286c}.error{color:#ae3c3c;font-size:11px;line-height:1.8}#notice{position:fixed;top:15px;left:50%;transform:translateX(-40%);z-index:1000;max-width:70%;padding:13px 22px;background:var(--purple);color:#fff;border-radius:3px;box-shadow:0 8px 30px #3d26a926;font-size:11px}.heading-row{display:flex;align-items:center;justify-content:space-between;gap:18px}.client-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(270px,1fr));gap:18px;margin-bottom:25px}.client-card{padding:26px;background:#fff;border:1px solid var(--line);border-radius:4px}.client-card h2{margin:18px 0 8px;font-weight:700;text-transform:uppercase;letter-spacing:-.7px}.client-card .client-avatar{display:flex;align-items:center;justify-content:center;width:44px;height:44px;border-radius:2px;background:var(--purple);color:#fff;font-size:20px;font-weight:600}.client-card p{font-size:10px;line-height:1.9;color:#8b7d9c;white-space:pre-wrap}.client-card .facts-excerpt{max-height:100px;overflow:hidden}.client-card button{margin-top:10px}.muted{color:var(--muted);font-size:11px;line-height:1.9}.history-list{margin-top:22px}.history-item{width:100%;display:grid;grid-template-columns:140px 1fr auto;text-align:left;background:#fff;border:1px solid var(--line);padding:20px;border-radius:3px;margin-bottom:9px;gap:20px;align-items:center}.history-item:hover{border-color:var(--purple)}.history-item strong{display:block;font-size:11px;margin-bottom:8px}.history-item p{margin:0;color:#95879f;font-size:10px;line-height:1.9}.history-item time{font-size:9px;color:#a193ac}#historyFilter{max-width:280px}.settings-panel{max-width:620px}.settings-panel h2{font-weight:700;letter-spacing:-.5px}.settings-panel .primary{margin-top:25px}.prompt-panel{max-width:900px;margin-top:24px}
.login-screen{min-height:100vh;display:flex;align-items:center;justify-content:center;background:#0c0c0f;padding:36px;position:relative;overflow:hidden}.login-screen::before{content:"";position:absolute;width:min(68vw,800px);aspect-ratio:70.456/57.312;background:url("/static/favicon.svg?v=3") center/contain no-repeat;left:-12vw;bottom:-17vw;pointer-events:none}.login-screen::after{content:'SIMPLY OUTPERFORM';position:absolute;right:28px;bottom:25px;color:#7d748a;font-size:8px;letter-spacing:2px;font-weight:600;pointer-events:none}.login-card{position:relative;z-index:1;background:#fff;border-radius:3px;padding:41px;width:460px;max-width:100%;box-shadow:0 16px 100px #0004}.login-logo{width:210px;height:auto;display:block;object-fit:contain}.login-card .eyebrow{margin-top:30px;font-size:8px}.login-card h1{font-size:34px;letter-spacing:-1.9px;line-height:1.16;font-weight:700}.login-card .primary{width:100%;margin-top:20px;justify-content:space-between}.login-card .error{margin-bottom:0}.login-card .muted{font-size:10px}.login-card .notice{margin-top:20px}.login-card label{font-size:10px}.login-card .micro{font-size:8px}dialog{border:1px solid #dcd4eb;border-radius:4px;padding:30px;width:670px;max-width:94vw;max-height:90vh;overflow:auto;box-shadow:0 30px 100px #25114d35;color:var(--ink)}dialog::backdrop{background:#100b258c;backdrop-filter:blur(3px)}.dialog-heading{display:flex;align-items:center;justify-content:space-between}.dialog-heading h2{font-size:23px;font-weight:700;letter-spacing:-1px;margin:0}.dialog-heading .eyebrow{margin:0 0 10px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.dialog-footer{display:flex;justify-content:flex-end;margin-top:23px}dialog .notice{margin-top:20px}button:focus-visible,a:focus-visible{outline:2px solid var(--purple)}#articlePreview:empty{display:none}
@media(min-width:1600px){.view{padding-top:48px}#view-home .page-heading{padding:43px 42px}}
@media(max-width:1150px){.sidebar{width:208px;padding-left:12px;padding-right:12px}.shell{grid-template-columns:208px 1fr}.agency-logo{width:157px}.brand-sub{font-size:7px;letter-spacing:1px}.topbar{padding:0 25px}.view{padding:32px 25px}.editor-grid{grid-template-columns:1fr}.result-panel{min-height:400px}.empty-state{min-height:330px}#view-home .page-heading::after{width:210px;height:171px;right:10px;top:45px}#view-home .page-heading{padding:32px 28px}}
@media(max-width:700px){.shell{display:block}.sidebar{position:relative;inset:auto;width:100%;height:auto;padding:22px 18px 14px;border-bottom:1px solid var(--line)}.brand{padding:0;gap:10px}.agency-logo{width:157px}.brand-sub{font-size:7px;letter-spacing:1.2px}.workspace-label,.sidebar-bottom{display:none}nav{flex-direction:row;overflow:auto;margin-top:23px;gap:4px}nav button{width:auto;white-space:nowrap;padding:10px 11px;gap:7px;font-size:14px}nav button span{font-size:9px}.nav-tag{display:none}.topbar{height:50px;padding:0 20px;font-size:9px}.workspace-pill{display:none}.view{padding:25px 18px 40px}.page-heading h1{font-size:35px;letter-spacing:-1.8px}.tool-grid{grid-template-columns:1fr}.future-card{min-height:190px}.home-strip{flex-direction:column;align-items:flex-start;padding:25px}.editor-grid{display:block}.result-panel{margin-top:18px}.panel{padding:18px}.compact h1{font-size:31px}.generation-footer{flex-direction:column;align-items:stretch}.generation-footer>span{text-align:center;margin:8px 0}.history-item{grid-template-columns:1fr;gap:10px}.form-grid{grid-template-columns:1fr}.heading-row{align-items:flex-start}.heading-row .primary{font-size:9px;padding:11px}.login-card{padding:28px}.login-screen{padding:18px}.login-logo{width:190px}.login-card h1{font-size:31px}.login-screen::before{width:550px;bottom:-160px;left:-250px}.login-screen::after{display:none}#notice{left:5%;right:5%;max-width:90%;transform:none}.brand-summary{max-height:100px}#view-home .page-heading{padding:28px 23px;min-height:250px}#view-home .page-heading h1{font-size:clamp(29px,7.5vw,45px);letter-spacing:-1.7px;max-width:100%}#view-home .page-heading::after{opacity:.35;width:210px;height:171px;right:-15px;top:70px}#view-home .page-heading>p:last-child{max-width:100%;font-size:10px}.section-heading>span{font-size:8px}.tool-card{min-height:260px}.tool-card h2{font-size:20px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}
@media(max-width:700px){.sidebar-bottom{display:block;position:absolute;top:22px;right:18px;margin:0;padding:0}.sidebar-bottom .private-badge,.sidebar-bottom p{display:none}.sidebar-bottom .logout{font-size:8px;padding:5px 0}}
.history-row{display:flex;align-items:stretch;gap:10px;margin-bottom:10px}.history-row .history-item{flex:1;min-width:0;margin-bottom:0}.danger-button{background:#fff;border:1px solid #e4c9ce;color:#a93445;padding:11px 13px;border-radius:3px;font-size:10px;white-space:nowrap}.danger-button:hover{background:#fff0f2;border-color:#c85a6c}.danger-button:disabled{cursor:not-allowed;opacity:.4}.danger-button.solid{background:#a93445;border-color:#a93445;color:#fff}.danger-button.solid:hover{background:#8f2636}#deleteDialog{max-width:500px}#deleteDialog h2{font-size:23px;letter-spacing:-.7px;line-height:1.4}.delete-dialog-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:28px}.history-delete{align-self:center}@media(max-width:700px){.history-row{position:relative;display:block;padding-bottom:43px;background:#fff;border:1px solid var(--line);border-radius:3px}.history-row .history-item{border:0}.history-delete{position:absolute;right:18px;bottom:12px;font-size:9px;padding:7px 12px}}
.source-url-row{display:flex;gap:8px;align-items:stretch;flex-wrap:wrap}.source-url-row input{flex:1;min-width:180px}.format-fields{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}.prompt-panel textarea{font-size:12px;line-height:1.9}.prompt-panel>.primary{margin-top:24px}.google-panel{max-width:900px;margin-top:24px}.chat-panel{margin-top:30px;border-top:2px solid var(--purple);padding-top:20px}.chat-messages{max-height:380px;overflow:auto;overscroll-behavior:contain;margin:18px 0}.chat-message{padding:13px 15px;background:#f4f2f8;margin-bottom:10px;border-left:2px solid #d7cfea}.chat-message.user{background:#f0edff;border-color:var(--purple)}.chat-message strong{font-size:9px;color:#6d59a0}.chat-message p{font-size:11px;line-height:1.9;white-space:pre-wrap;margin:7px 0 0;overflow-wrap:anywhere}.chat-actions{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-top:12px}.chat-actions .micro{margin:0;max-width:65%}.batch-config label:first-child{margin-top:0}.batch-config{max-width:900px;margin-bottom:20px}#batchSources{display:grid;grid-template-columns:1fr 1fr;gap:20px}.batch-source-card .panel-heading{padding-bottom:12px}.batch-source-card .panel-heading .text-button{font-size:9px}.batch-toolbar{display:flex;flex-wrap:wrap;gap:10px;justify-content:flex-end;margin:22px 0 12px}#batchResults{margin-top:30px}.batch-job{display:grid;grid-template-columns:1fr auto auto;align-items:center;gap:15px;padding:16px 0;border-bottom:1px solid var(--line)}.batch-job:last-child{border-bottom:0}.batch-job strong{font-size:11px}.batch-job p{font-size:10px;color:var(--muted);margin:8px 0 0;line-height:1.8}.drive-file{display:flex;align-items:center;justify-content:space-between;gap:15px;text-align:left;width:100%;background:#fff;border:1px solid var(--line);padding:14px;margin:9px 0;color:var(--ink)}.drive-file:hover{border-color:var(--purple);background:var(--soft)}.drive-file strong{font-size:11px;line-height:1.8}.drive-file span{font-size:9px;color:var(--purple);white-space:nowrap}@media(max-width:900px){#batchSources{grid-template-columns:1fr}.format-fields{grid-template-columns:1fr 1fr}}@media(max-width:700px){.batch-job{grid-template-columns:1fr auto}.batch-job>.secondary{grid-column:2}.source-url-row input{min-width:100%}.source-url-row button{flex:1}.format-fields{gap:12px}.chat-actions{align-items:flex-end}.drive-file{flex-direction:column;align-items:flex-start}}

.brand-symbol{display:inline-block;width:16px;height:14px;flex-shrink:0;vertical-align:middle;background-color:currentColor;-webkit-mask:url("/static/favicon.svg?v=3") center/contain no-repeat;mask:url("/static/favicon.svg?v=3") center/contain no-repeat}.workspace-pill .brand-symbol{width:12px;height:10px;color:var(--purple);margin-left:5px}.icon-button .brand-symbol{width:17px;height:14px}.tool-footer .brand-symbol{width:22px;height:18px}
.approval-panel{margin:25px 0 18px;padding:18px;background:#f5f3fc;border:1px solid #e2dcf3;border-radius:3px}.approval-panel .muted{margin-bottom:14px;font-size:10px}.check-chip.approved,.status-label.approved{background:#e8f4ec;color:#277246}.status-label.approved{padding:7px 9px;border-radius:3px;max-width:180px}#approvalDialog{max-width:500px}#approvalDialog h2{font-size:23px;line-height:1.4;letter-spacing:-.7px}

/* App navigation stays separate from each application's own features. */
.application-header{padding:28px 40px 0;max-width:1640px;margin:auto}.application-heading{display:flex;align-items:center;gap:13px;margin-bottom:22px}.application-heading .eyebrow{font-size:8px;margin:0 0 6px}.application-heading h2{font-size:19px;letter-spacing:-.6px;margin:0}.application-icon{width:40px;height:40px;display:flex;align-items:center;justify-content:center;background:var(--soft);color:var(--purple);font-size:23px}.feature-nav{display:flex;flex-direction:row;gap:4px;border-bottom:1px solid var(--line);overflow-x:auto;margin:0;padding:0}.feature-nav button{width:auto;white-space:nowrap;border-radius:3px 3px 0 0;font-size:11px;padding:14px 17px;flex-shrink:0;border-bottom:3px solid transparent;color:var(--muted)}.feature-nav button.active{background:var(--soft);color:var(--purple);border-bottom-color:var(--purple)}.sidebar{overflow-y:auto}.app-nav button span{font-size:11px}
@media(max-width:1150px){.application-header{padding:25px 25px 0}}
@media(max-width:700px){.application-header{padding:22px 18px 0}.application-heading{margin-bottom:15px}.application-heading h2{font-size:17px}.feature-nav{margin-top:0}.feature-nav button{padding:12px 13px;font-size:10px}.app-nav button span{font-size:10px}.sidebar{overflow:visible}}

/* Source selection and mixed-client series. */
.checkbox-label{display:flex;align-items:center;gap:10px;line-height:1.6}.checkbox-label input[type=checkbox],.history-checkbox{width:18px;height:18px;min-height:18px;flex:0 0 18px;accent-color:var(--purple);padding:0;margin:0}
#sourceUrls{min-height:112px}.source-url-row{margin-top:10px}.bulk-toolbar{display:flex;gap:14px;align-items:center;flex-wrap:wrap;padding:16px 0;border-bottom:1px solid var(--line);margin-bottom:14px}.bulk-toolbar label{margin:0;font-size:11px}.bulk-toolbar .micro{margin:0}.history-row{grid-template-columns:22px minmax(0,1fr) auto}.history-checkbox{align-self:center}.batch-source-card{min-width:0}.batch-source-card input,.batch-source-card textarea,.batch-source-card select{max-width:100%}#folderSource{padding:0 0 12px}#sourceOrigin{overflow-wrap:anywhere}#batchSources[inert]{opacity:.65}#batchCount{margin:18px 0}
@media(min-width:1400px){#batchSources{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:700px){.bulk-toolbar{align-items:stretch}.bulk-toolbar .checkbox-label{width:100%}.bulk-toolbar button{flex:1}.history-row{grid-template-columns:22px minmax(0,1fr) auto}.history-item{min-width:0}.history-item p{overflow-wrap:anywhere}}

/* Studio palette and common components. */
body {
  color: var(--ink);

  & .shell { grid-template-columns: 215px minmax(0, 1fr); }
  & .sidebar {
    width: 215px;
    background: var(--sidebar-surface);
    color: var(--ink);
    padding-top: 26px;
  }
  & .brand { gap: 12px; padding-inline: 0; }
  & .agency-logo { width: 155px; }
  & .workspace-label { margin: 35px 12px 14px; }
  & .topbar {
    height: 64px;
    background: var(--bg);
    color: var(--muted);
    padding-inline: clamp(18px, 3.5vw, 56px);
  }
  & .workspace-pill { color: var(--ink); }
  & .brand-sub,
  & .workspace-label,
  & .private-badge,
  & .logout,
  & .sidebar-bottom p { color: var(--muted); }
  & .logout:hover { color: var(--accent-text); }

  & .app-nav { gap: 5px; }
  & .app-nav button {
    border-radius: 8px;
    color: var(--muted);
    padding: 12px;
  }
  & .app-nav button span { font-size: 12px; }
  & .app-nav button:hover,
  & .app-nav button.active {
    color: var(--ink);
    background: var(--nav-active-surface);
  }
  & .app-nav button.active { box-shadow: inset 3px 0 var(--purple); }

  & .application-header,
  & .view { padding-inline: clamp(18px, 3.5vw, 56px); }
  & .application-heading h2 {
    font-size: 20px;
    font-weight: 600;
    letter-spacing: -.04em;
  }
  & .application-icon {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--soft);
  }
  & .feature-nav {
    gap: 8px;
    border-bottom: 0;
    padding-block: 4px;
  }
  & .feature-nav button {
    min-height: 38px;
    padding: 10px 14px;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: var(--button-surface);
    color: var(--ink);
    font-size: 12px;
    font-weight: 600;
  }
  & .feature-nav button:hover { border-color: var(--purple); }
  & .feature-nav button.active {
    border-color: var(--purple);
    background: var(--purple);
    color: var(--on-accent);
  }
  & .eyebrow,
  & .page-heading h1 span,
  & .application-icon,
  & .workspace-pill .brand-symbol,
  & .text-button { color: var(--accent-text); }

  & :is(button, a, input, select, textarea):focus-visible {
    outline: 2px solid var(--accent-text);
    outline-offset: 3px;
  }

  & #view-home .page-heading {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 12px;
  }
  & #view-home .page-heading::after {
    background: var(--purple);
    mask: url("/static/favicon.svg?v=3") center / contain no-repeat;
    opacity: .7;
  }
  & #view-home .page-heading h1 span,
  & #view-home .page-heading .eyebrow { color: var(--accent-text); }
  & #view-home .page-heading > p:last-child { color: var(--muted); }
  & .section-heading h2 {
    font-size: 16px;
    font-weight: 600;
    text-transform: none;
  }
  & .tool-card {
    background: var(--white);
    border-color: var(--line);
    border-radius: 12px;
  }
  & button.tool-card:hover { border-color: var(--purple); }
  & .tool-card h2 {
    font-weight: 600;
    text-transform: none;
    letter-spacing: -.025em;
  }
  & .tool-card p { font-size: 12px; line-height: 1.65; }
  & .tool-icon { border-radius: 8px; }
  & .tool-footer span:not(.brand-symbol) { color: var(--muted); }
  & .tool-footer b { color: var(--accent-text); }
  & .live-label {
    background: var(--highlight);
    color: var(--accent-text);
    border-radius: 5px;
  }
  & .login-screen { background: var(--bg); }
  & .login-card {
    background: var(--white);
    color: var(--ink);
    border: 1px solid var(--line);
    border-radius: 12px;
  }
  & .page-heading.compact h1 {
    font-size: clamp(30px, 4vw, 48px);
    font-weight: 600;
    letter-spacing: -.05em;
    text-transform: none;
  }
  & .page-heading > p:last-child,
  & .page-heading > div > p:last-child {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.65;
  }

  & .panel,
  & .client-card,
  & .history-item,
  & dialog {
    color: var(--ink);
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 12px;
  }
  & .history-item:hover { border-color: var(--purple); }
  & .panel-heading { padding-bottom: 15px; }
  & .panel-heading h2 {
    font-size: 16px;
    font-weight: 600;
    letter-spacing: -.025em;
  }
  & .settings-panel h2,
  & .client-card h2 {
    font-weight: 600;
    text-transform: none;
    letter-spacing: -.025em;
  }
  & .client-card .client-avatar {
    background: var(--purple);
    color: var(--on-accent);
    border-radius: 8px;
  }
  & label {
    color: var(--muted);
    font-size: 12px;
  }
  & input,
  & select,
  & textarea {
    background: var(--bg);
    color: var(--ink);
    border-color: var(--line);
    border-radius: 7px;
    font-size: 13px;
  }
  & input::placeholder,
  & textarea::placeholder { color: var(--studio-muted); }
  & .prompt-panel textarea { font-size: 13px; }

  & .primary,
  & .secondary,
  & .danger-button,
  & .icon-button,
  & .drive-file { border-radius: 7px; }
  & .primary,
  & .secondary,
  & .danger-button {
    font-size: 12px;
    font-weight: 600;
  }
  & .primary,
  & .primary span,
  & #notice { color: var(--on-accent); }
  & .secondary,
  & .icon-button,
  & .drive-file {
    background: var(--button-surface);
    border-color: var(--line);
    color: var(--ink);
  }
  & .secondary:hover,
  & .icon-button:hover,
  & .drive-file:hover {
    background: var(--nav-active-surface);
    border-color: var(--purple);
    color: var(--ink);
  }
  & .icon-button .brand-symbol,
  & .drive-file span { color: var(--accent-text); }
  & .danger-button {
    color: var(--danger);
    border-color: var(--danger-line);
    background: var(--danger-surface);
  }
  & .danger-button:hover {
    border-color: var(--danger);
    background: #f8dcd8;
  }
  & .danger-button.solid,
  & .danger-button.solid:hover {
    color: var(--bg);
    border-color: var(--danger);
    background: var(--danger);
  }
  & .text-button { font-size: 11px; }

  & .step,
  & .empty-icon,
  & .check-chip {
    background: var(--highlight);
    color: var(--accent-text);
    border-color: var(--line);
    border-radius: 7px;
  }
  & .check-chip.bad {
    background: var(--danger-surface);
    color: var(--danger);
  }
  & .check-chip.approved,
  & .status-label.approved {
    background: var(--success-surface);
    color: var(--success);
  }
  & .error { color: var(--danger); }
  & #issues { color: var(--warning); }
  & .brand-summary,
  & .notice,
  & .approval-panel,
  & .chat-message {
    background: var(--soft);
    color: var(--muted);
    border-color: var(--line);
    border-radius: 7px;
  }
  & .brand-summary,
  & .notice,
  & .chat-message.user { border-left-color: var(--purple); }
  & .chat-message.user { background: var(--highlight); }
  & .chat-message strong,
  & .notice code { color: var(--accent-text); }
  & .chat-message p { color: var(--ink); }

  & .source-tip,
  & .optional,
  & .micro,
  & .small-label,
  & .status-label:not(.approved),
  & .label-row span,
  & .generation-footer > span,
  & .empty-state p,
  & .empty-flow,
  & .empty-flow span,
  & .client-card p,
  & .history-item p,
  & .history-item time,
  & .snapshot,
  & pre { color: var(--muted); }
  & .micro,
  & .source-tip,
  & .muted,
  & .history-item p,
  & .brand-summary,
  & .client-card p,
  & .notice {
    font-size: 12px;
    line-height: 1.65;
  }
  & .empty-state p { font-size: 12px; }
  & summary { color: var(--ink); font-size: 12px; }
  & .article-preview {
    color: var(--ink);
    font-size: 14px;
    line-height: 1.75;
  }
  & .article-preview h1,
  & .article-preview h2 { color: var(--ink); }
  & .article-preview a { color: var(--accent-text); }
  & #notice {
    border-radius: 8px;
    box-shadow: 0 8px 30px #0006;
  }
  & dialog::backdrop { background: #101014bd; }

  @media (max-width: 700px) {
    & .sidebar {
      width: 100%;
      padding-top: 15px;
    }
    & .agency-logo { width: 120px; }
    & #view-home .page-heading::after { opacity: .3; }
    & .topbar { height: 48px; }
    & .panel,
    & dialog { padding: 18px; }
    & .history-row { background: var(--white); border-radius: 12px; }
    & .history-row .history-item { border: 0; }
    & .feature-nav button {
      padding: 9px 11px;
      font-size: 11px;
    }
    & .primary,
    & .secondary,
    & .danger-button { white-space: normal; }
    & .delete-dialog-actions { flex-wrap: wrap; }
  }
}
