:root{--bg: #eef2f8;--surface: #ffffff;--surface-soft: #f7f9fd;--border: #d8deea;--text: #131722;--muted: #5f677a;--primary: #ed9121;--primary-dark: #c67718;--primary-soft: #fff4e6;--primary-contrast: #ffffff;--success-bg: #e8f7ef;--success-text: #1e6d41;--error-bg: #fdebec;--error-text: #8d2230;--warning-bg: #fff6e8;--warning-text: #8a5b11;--shadow: 0 10px 28px rgba(18, 36, 70, .08)}*{box-sizing:border-box}body{margin:0;font-family:Segoe UI,Tahoma,Geneva,Verdana,sans-serif;background:radial-gradient(circle at top right,#f9fbff,var(--bg));color:var(--text);overflow:hidden}html,body,#root{height:100%}a{color:var(--primary);text-decoration:none}a:hover{text-decoration:underline}.app-shell{height:100dvh;display:grid;grid-template-columns:clamp(220px,18vw,280px) 1fr;overflow:hidden}.sidebar{background:linear-gradient(180deg,#111a31,#182340);color:#e6ecff;padding:24px 18px;display:flex;flex-direction:column;gap:18px;border-right:1px solid #23335f;min-height:0;overflow-y:auto}.sidebar-top{display:flex;align-items:center;justify-content:space-between;gap:12px}.brand{color:var(--primary);font-weight:700;font-size:18px;letter-spacing:.2px;display:inline-flex;align-items:center;gap:8px}.brand-logo{width:20px;height:20px;border-radius:4px;display:block}.sidebar-close{display:none;border:1px solid #314773;background:#ffffff0a;color:#d8e2ff;border-radius:8px;width:30px;height:30px;cursor:pointer}.sidebar-nav{display:flex;flex-direction:column;gap:8px}.side-section-label{margin:0;font-size:11px;text-transform:uppercase;letter-spacing:.7px;color:#9cacd8}.side-link{color:#cdd8f8;border:1px solid transparent;border-radius:10px;padding:9px 11px;font-weight:600;transition:.2s ease;display:flex;align-items:center;gap:8px}.side-link:before{content:"";width:8px;height:8px;border-radius:2px;background:#cdd8f8bf}.side-link:hover{text-decoration:none;border-color:#314773;background:#ed912129}.side-link-active,.side-link:active{background:var(--primary);color:#fff;border-color:var(--primary-dark)}.side-link-active:hover,.side-link-active:focus-visible{background:var(--primary);color:#fff;border-color:var(--primary-dark)}.side-link-active:before{background:#fff}.sidebar-foot{margin-top:auto;border-top:1px solid #2b3f70;padding-top:14px}.sidebar .muted{color:#aebbe0}.app-content{display:flex;flex-direction:column;min-height:0;overflow:hidden}.content-container{width:100%;min-height:0;flex:1}.page-layout{min-height:0;height:100%;display:flex;flex-direction:column}.page-header-bar{position:sticky;top:0;z-index:20;border-bottom:1px solid #c8d7f5;background:linear-gradient(180deg,#edf3ff,#e3ecff);color:#1b2c52}.page-header-inner{width:min(100%,1440px);margin:0 auto;padding:16px clamp(16px,2vw,28px)}.page-header-main{display:flex;align-items:center;justify-content:space-between;gap:16px}.page-header-main-with-side{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:start;column-gap:16px}.page-header-text{min-width:0}.page-header-text h1{margin:0;color:#1b2c52}.page-header-text p{margin:6px 0 0;color:#526385}.page-header-side{min-width:0;width:100%;align-self:start;justify-self:stretch}.page-header-side .flow-step{min-height:38px;font-size:12px;padding:0 10px}.page-header-side .flow-step:first-child{padding-left:10px}.page-body{min-height:0;flex:1;overflow-y:auto;padding:clamp(16px,2vw,28px)}.page-body-inner{width:min(100%,1440px);margin:0 auto}.flow-page-body{padding-bottom:104px}.flow-fixed-footer{position:fixed;bottom:0;z-index:15;left:clamp(220px,18vw,280px);right:0;border-top:1px solid #c8d7f5;background:linear-gradient(180deg,#edf3ff,#e3ecff)}.flow-fixed-footer-inner{width:min(100%,1440px);margin:0 auto;padding:10px clamp(16px,2vw,28px) 12px;display:flex;align-items:center;justify-content:space-between;gap:12px}.flow-footer-actions{width:100%;display:flex;align-items:center;justify-content:space-between;gap:12px}.flow-footer-primary{display:flex;align-items:center;justify-content:flex-end;gap:10px}.stack{display:flex;flex-direction:column;gap:16px}.stack-sm{display:flex;flex-direction:column;gap:8px}.row{display:flex;align-items:center;gap:10px}.row-between{justify-content:space-between}.row-wrap{flex-wrap:wrap}.modal-overlay{position:fixed;top:0;right:0;bottom:0;left:0;z-index:40;display:flex;align-items:center;justify-content:center;padding:16px;background:#10182873}.modal-card{width:min(100%,460px);background:#f8fbff;border:1px solid #c8d7f5;border-radius:14px;padding:18px;box-shadow:0 18px 48px #1018282e}.modal-actions{justify-content:flex-end}.muted{color:var(--muted)}.card{background:var(--surface);border:1px solid var(--border);border-radius:14px;padding:16px;box-shadow:var(--shadow)}.btn{border:1px solid transparent;border-radius:10px;padding:8px 14px;font-weight:600;cursor:pointer}.btn:disabled{opacity:.65;cursor:not-allowed}.btn-primary{background:var(--primary);color:var(--primary-contrast)}.btn-secondary{background:var(--primary-soft);color:var(--primary-dark)}.btn-ghost{background:transparent;border-color:var(--border);color:var(--muted)}.field{display:flex;flex-direction:column;gap:6px}.field-label{font-size:14px;color:var(--muted)}.required-mark{color:#c62828}.input,.textarea,select.input{width:100%;border:1px solid var(--border);border-radius:10px;padding:10px 12px;font:inherit;background:#fff}.textarea{resize:vertical}.field-error{color:var(--error-text);font-size:13px}.badge{display:inline-flex;border-radius:999px;padding:3px 10px;font-size:12px;font-weight:700;border:1px solid var(--border)}.badge-neutral{background:#f0f2f7;color:#43506c}.badge-success{background:var(--success-bg);color:var(--success-text);border-color:#b9e4cb}.badge-warning{background:var(--warning-bg);color:var(--warning-text);border-color:#f3dab1}.badge-error{background:var(--error-bg);color:var(--error-text);border-color:#f3c6cc}.flow-stepper{display:flex;margin-bottom:0;border:1px solid #dbe3f1;border-radius:12px;padding:4px;gap:4px;overflow:hidden;background:#f7f9fe}.flow-step{position:relative;flex:1;min-width:0;min-height:44px;display:flex;align-items:center;justify-content:center;text-align:center;padding:0 12px;font-size:12px;font-weight:600;color:#6f7d97;background:transparent;border-radius:8px;white-space:nowrap;overflow:hidden;transition:color .18s ease,box-shadow .18s ease,opacity .18s ease}.flow-step:before{content:"";position:absolute;top:0;right:0;bottom:0;left:0;border-radius:8px;background:transparent;transform:scaleX(0);transition:transform .28s ease,background-color .18s ease;z-index:0}.flow-step-label{position:relative;z-index:1}.flow-stepper-forward .flow-step:before{transform-origin:left center}.flow-stepper-backward .flow-step:before{transform-origin:right center}.flow-step-filled:before{transform:scaleX(1)}.flow-step:not(:first-child){margin-left:0;clip-path:none}.flow-step:first-child{clip-path:none;padding-left:12px}.flow-step:last-child{clip-path:none}.flow-step:not(:last-child):after{content:"";position:absolute;right:-2px;top:10px;bottom:10px;width:1px;background:#dfe6f3}.flow-step-active,.flow-step-done{color:#3f4f72}.flow-step-active{color:#1e2d4f;font-weight:700;box-shadow:0 1px #1224460f,0 0 0 2px #cfdbf2 inset}.flow-step-done{color:#8a5b11}.flow-step-todo{color:#95a1b5;opacity:.85}.flow-step-active:before{background:#fff}.flow-step-done:before{background:#fff4e6}.flow-step-todo:before{background:#eff3f9}.progress-wrap{width:100%;height:12px;border-radius:999px;overflow:hidden;background:#e8ecf5}.progress-fill{height:100%;background:linear-gradient(90deg,var(--primary-dark),var(--primary));transition:width .25s ease}.banner{border-radius:10px;padding:10px 12px;border:1px solid var(--border)}.banner-info{background:var(--primary-soft);color:var(--primary-dark);border-color:#f1cc95}.banner-success{background:var(--success-bg);color:var(--success-text);border-color:#b9e4cb}.banner-error{background:var(--error-bg);color:var(--error-text);border-color:#f4b8c1}.spinner{width:16px;height:16px;border-radius:999px;border:2px solid #cfd5e1;border-top-color:var(--primary);animation:spin .9s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.list{margin:8px 0 0;padding-left:18px}.chips-wrap{display:flex;gap:8px;flex-wrap:wrap}.chip{border:1px solid var(--border);border-radius:999px;background:#f5f7fc;padding:4px 10px;cursor:pointer}.grid{display:grid;gap:12px}.cards-grid{grid-template-columns:repeat(auto-fit,minmax(260px,1fr))}.poster,.player{border-radius:10px;border:1px solid var(--border);padding:10px;background:#f5f8ff}.poster img,.player img{width:100%;border-radius:8px;display:block}.player{display:flex;flex-direction:column;gap:10px}.chat-thread{display:flex;flex-direction:column;gap:10px;margin-bottom:14px}.chat-bubble{max-width:min(92%,740px);border-radius:12px;padding:10px 12px;line-height:1.4}.chat-ai{align-self:flex-start;background:#f4f7ff;border:1px solid #d8deea}.chat-user{align-self:flex-end;background:var(--primary-soft);border:1px solid #f1cc95}.qa-question{margin:0;font-weight:600;line-height:1.45}.build-log{display:flex;flex-direction:column}.build-step{border-bottom:1px solid var(--border)}.build-step:last-child{border-bottom:0}.build-step-head{width:100%;border:1px solid transparent;border-radius:10px;background:transparent;padding:14px 10px;display:flex;align-items:center;gap:10px;text-align:left;cursor:pointer;transition:background-color .14s ease,border-color .14s ease,box-shadow .14s ease}.build-step-head:hover{background:#f7faff;border-color:#dbe2f0}.build-step-head:focus-visible{outline:none;background:#f7faff;border-color:#c7d4ee;box-shadow:0 0 0 3px #ed912133}.build-step-title{font-weight:600}.build-step-meta{margin-left:auto;color:var(--muted);font-variant-numeric:tabular-nums}.build-step-icon{width:18px;height:18px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;font-size:12px;font-weight:700}.build-step-done{color:var(--success-text);background:var(--success-bg)}.build-step-running{color:var(--primary-dark);background:var(--primary-soft)}.build-step-pending{color:var(--muted);background:#f1f4fb}.build-step-body{padding:0 4px 14px;display:flex;flex-direction:column;gap:10px}.campaign-summary{display:flex;flex-direction:column;gap:16px}.campaign-summary-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;padding:14px;border:1px solid #d7deed;border-radius:12px;background:linear-gradient(120deg,#f7faff,#eef5ff 45%,#fef8ee)}.campaign-summary-head h2{margin:0}.campaign-summary-actions{display:flex;align-items:center;gap:10px}.summary-link{border:1px solid #d0d8ea;border-radius:999px;padding:6px 10px;background:#fff;color:#1e2e53;font-weight:600;text-decoration:none}.summary-link:hover{text-decoration:none;border-color:#b9c6e4;background:#f8fbff}.summary-kpis{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:10px}.summary-kpi{border:1px solid #dbe2f0;border-radius:10px;padding:10px;background:#f9fbff;display:flex;flex-direction:column;gap:6px}.approvals-status-row{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}.approvals-actions{display:flex;align-items:center;gap:10px;margin-top:12px}.approvals-feedback-trigger{border:0;background:transparent;color:#b42333;font-weight:700;cursor:pointer;padding:0}.approvals-feedback-trigger:hover{color:#8d2230;text-decoration:underline}.approvals-feedback-trigger:disabled{opacity:.6;cursor:not-allowed;text-decoration:none}.approvals-decline-btn{background:#fdeff1;border-color:#f3c7cd;color:#8d2230}.approvals-decline-btn:hover{background:#fbe3e7;border-color:#e9b3bb}.approvals-feedback-panel{margin-top:10px}.approvals-feedback-saved{margin:10px 0 0}.approvals-card-link{display:block;color:inherit;text-decoration:none}.approvals-card-link:hover{text-decoration:none}.approvals-card-link .card{cursor:pointer;transition:background-color .14s ease,box-shadow .14s ease}.approvals-card-link:hover .card{background:var(--surface-soft);box-shadow:inset 0 0 0 1px #dbe3f1}.approvals-card-link:focus-visible{outline:none}.approvals-card-link:focus-visible .card{background:var(--surface-soft);box-shadow:0 0 0 3px #ed912133}.approvals-list{border:1px solid var(--border);border-bottom:0;border-radius:14px;overflow:hidden;background:var(--surface);box-shadow:var(--shadow)}.approvals-page-body{min-height:0}.approvals-toolbar-wrap{position:sticky;top:calc(clamp(16px,2vw,28px)*-1);z-index:12;margin:calc(clamp(16px,2vw,28px)*-1) calc(clamp(16px,2vw,28px)*-1) 0;padding:8px clamp(16px,2vw,28px) 12px;background:linear-gradient(180deg,#f2f6ff,#edf3ff);border-bottom:1px solid #dbe4f5}.approvals-toolbar{width:100%}.approvals-pane{border-bottom:1px solid var(--border);background:var(--surface)}.approvals-pane-summary{cursor:pointer;list-style:none;padding:14px;transition:background-color .14s ease,box-shadow .14s ease;background:var(--surface)}.approvals-pane-summary:hover{background:var(--surface-soft);box-shadow:inset 0 0 0 1px #dbe3f1}.approvals-pane-summary:focus-visible{outline:none;background:var(--surface-soft);box-shadow:0 0 0 3px #ed912133}.approvals-pane[open] .approvals-pane-summary{border-bottom:1px solid var(--border)}.approvals-pane-summary::-webkit-details-marker{display:none}.approvals-pane-summary::marker{content:""}.approvals-pane-head{display:flex;align-items:center;justify-content:space-between;gap:8px}.approvals-pane-meta{gap:8px}.approvals-pane-caret{width:0;height:0;border-left:8px solid transparent;border-right:8px solid transparent;border-bottom:11px solid #4f6d73;transition:transform .18s ease}.approvals-pane[open] .approvals-pane-caret{transform:rotate(180deg)}.approvals-pane-body{padding:14px;background:var(--surface-soft)}.approvals-pane-body p{margin:0}.campaign-summary-grid{display:grid;gap:12px;grid-template-columns:repeat(auto-fit,minmax(220px,1fr))}.campaign-summary-tile{border:1px solid var(--border);border-radius:12px;padding:12px;background:linear-gradient(180deg,#fff,#f8fbff);box-shadow:0 6px 20px #1224460f}.campaign-summary-tile-head{display:flex;align-items:flex-start;justify-content:space-between;gap:8px;margin-bottom:10px}.campaign-summary-tile-head h3{margin:0}.campaign-summary-tile h3{margin:0 0 10px}.campaign-assets-filters{position:sticky;top:calc(clamp(16px,2vw,28px)*-1);z-index:10;margin:calc(clamp(16px,2vw,28px)*-1) calc(clamp(16px,2vw,28px)*-1) 0;padding:8px clamp(16px,2vw,28px) 12px;border-bottom:1px solid #dbe4f5;background:linear-gradient(180deg,#f2f6ff,#edf3ff)}.campaign-assets-filters-inner{width:min(100%,1440px);margin:0 auto}.metric-row{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:6px 0;border-bottom:1px dashed #dfe5f1}.metric-row:last-child{border-bottom:0}.chat-thinking{width:72px}.thinking-dots{display:inline-flex;align-items:center;gap:6px}.thinking-dot{width:8px;height:8px;border-radius:50%;background:#5e6b89;animation:thinking-bounce .9s ease-in-out infinite}.thinking-dot:nth-child(2){animation-delay:.15s}.thinking-dot:nth-child(3){animation-delay:.3s}@keyframes thinking-bounce{0%,80%,to{transform:translateY(0);opacity:.45}40%{transform:translateY(-4px);opacity:1}}.sidebar-toggle,.sidebar-backdrop{display:none}@media (max-width: 760px){.app-shell{height:100dvh;grid-template-columns:1fr}.sidebar{position:fixed;inset:0 auto 0 0;width:min(82vw,310px);height:100dvh;z-index:40;transform:translate(-100%);transition:transform .2s ease;border-right:1px solid #23335f;overflow-y:auto}.sidebar.sidebar-open{transform:translate(0)}.sidebar-close{display:inline-flex;align-items:center;justify-content:center}.sidebar-toggle{display:inline-flex;align-items:center;justify-content:center;gap:6px;margin-bottom:12px;border:1px solid var(--border);background:var(--surface);color:var(--text);border-radius:10px;padding:8px 12px;font-weight:600;cursor:pointer;box-shadow:var(--shadow)}.sidebar-backdrop[data-open=true]{display:block;position:fixed;top:0;right:0;bottom:0;left:0;z-index:30;border:0;background:#080c166b}.sidebar-foot{margin-top:auto}}@media (max-width: 760px){.page-header-main{flex-direction:column;align-items:stretch}.page-header-main-with-side{grid-template-columns:1fr}.page-header-side{width:100%}.flow-stepper{border-radius:10px;overflow-x:auto;scrollbar-width:thin}.flow-step{min-width:150px;min-height:40px;font-size:12px}.flow-page-body{padding-bottom:116px}.flow-fixed-footer{left:0;right:0}.flow-fixed-footer-inner{padding:10px 16px 12px}.flow-footer-actions{flex-wrap:wrap}.flow-footer-primary{margin-left:auto;flex-wrap:wrap;justify-content:flex-end}.row-between{align-items:flex-start;flex-direction:column;gap:12px}.campaign-summary-head{flex-direction:column}}
