:root{--background:#f6f3ed;--surface:#fffdf8;--surface-strong:#f0eadf;--ink:#1e2b25;--muted:#68746d;--line:#ded6c9;--accent:#2f6f5e;--accent-dark:#214f43;--gold:#b8863b;--danger:#a4382d;--shadow:0 24px 70px rgba(35,42,36,0.12)}*{box-sizing:border-box}body,html{min-height:100%}body{margin:0;background:linear-gradient(135deg,rgba(47,111,94,.08),transparent 34%),linear-gradient(315deg,rgba(184,134,59,.12),transparent 32%),var(--background);color:var(--ink);font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}button,input,select,textarea{font:inherit}button{border:0;cursor:pointer}button:disabled{cursor:not-allowed;opacity:.6}.page-shell{width:min(1180px,calc(100% - 32px));margin:0 auto;padding:40px 0}.studio-header{display:flex;gap:18px;align-items:flex-start;justify-content:space-between;margin-bottom:28px}.studio-header>div{max-width:760px}.logout-button{min-height:40px;border:1px solid var(--line);border-radius:8px;background:var(--surface-strong);color:var(--ink);font-size:.86rem;font-weight:800;padding:0 14px;white-space:nowrap}.logout-button:hover{background:#e7dfd1}.login-shell{display:grid;min-height:100vh;place-items:center;padding:24px}.login-panel{width:min(100%,440px);border:1px solid var(--line);border-radius:8px;background:rgba(255,253,248,.92);box-shadow:var(--shadow);padding:28px}.login-panel h1{font-size:2.3rem;line-height:1}.login-form{display:grid;grid-gap:16px;gap:16px;margin-top:24px}.login-form button{min-height:46px;border-radius:8px;background:var(--accent);color:#fffdf8;font-weight:800}.login-form button:hover{background:var(--accent-dark)}.eyebrow,.output-header p,.section-heading p{margin:0 0 8px;color:var(--gold);font-size:.76rem;font-weight:800;letter-spacing:.12em;text-transform:uppercase}h1,h2{margin:0;letter-spacing:0}h1{max-width:820px;font-size:clamp(2.2rem,5vw,4.75rem);line-height:.96}h2{font-size:1.2rem}.workspace{display:grid;grid-template-columns:430px minmax(0,1fr);grid-gap:22px;gap:22px}.campaign-section,.daily-platform-section,.drafts-section,.generator,.output-panel{border:1px solid var(--line);border-radius:8px;background:rgba(255,253,248,.88);box-shadow:var(--shadow)}.generator{display:grid;grid-gap:18px;gap:18px;padding:24px}label{display:grid;grid-gap:8px;gap:8px;color:#3a453f;font-size:.92rem;font-weight:700}input,select,textarea{width:100%;border:1px solid var(--line);border-radius:8px;background:#ffffff;color:var(--ink);outline:none;padding:13px 14px}input:focus,select:focus,textarea:focus{border-color:var(--accent);box-shadow:0 0 0 4px rgba(47,111,94,.12)}textarea{min-height:110px;resize:vertical}.field-grid{display:grid;grid-template-columns:1fr 1fr;grid-gap:14px;gap:14px}.actions{display:grid;grid-gap:10px;gap:10px;padding-top:4px}.actions button,.output-actions button{min-height:44px;border-radius:8px;background:var(--accent);color:#fffdf8;font-weight:800;transition:background .16s ease,transform .16s ease,box-shadow .16s ease}.actions button:hover,.output-actions button:hover{background:var(--accent-dark);transform:translateY(-1px)}.actions button.active{background:var(--ink);box-shadow:inset 4px 0 0 var(--gold)}.output-panel{min-width:0;padding:24px}.campaign-section,.daily-platform-section,.drafts-section{margin-top:22px;padding:24px}.auto-post-status-row{display:flex;gap:14px;align-items:center;justify-content:space-between;margin-top:18px}.setting-label{margin:0 0 8px;color:#3a453f;font-size:.92rem;font-weight:800}.auto-status-badge{display:inline-flex;align-items:center;min-height:30px;border:1px solid var(--line);border-radius:999px;font-size:.78rem;font-weight:900;padding:0 11px}.auto-status-badge.active{background:rgba(47,111,94,.12);color:var(--accent-dark)}.auto-status-badge.paused{background:#fff4f1;color:var(--danger)}.auto-toggle-button{min-height:42px;border:1px solid var(--line);border-radius:8px;background:var(--surface-strong);color:var(--ink);font-weight:800;padding:0 16px}.auto-toggle-button:hover{background:#e7dfd1}.daily-platform-controls{display:grid;grid-template-columns:minmax(240px,360px) max-content;grid-gap:14px;gap:14px;align-items:flex-end;margin-top:18px}.daily-platform-controls button{min-height:47px;border-radius:8px;background:var(--ink);color:#fffdf8;font-weight:800;padding:0 18px}.daily-platform-controls button:hover{background:var(--accent-dark)}.daily-platform-current,.settings-status{margin:14px 0 0;color:var(--muted);line-height:1.65}.daily-platform-current strong{color:var(--ink)}.weekly-strategy-controls{display:flex;gap:14px;align-items:flex-end;justify-content:space-between;margin-top:18px}.weekly-strategy-controls label{width:min(100%,360px)}.weekly-strategy-controls .auto-status-badge{margin-bottom:8px}.settings-status{color:var(--accent-dark);font-weight:800}.campaign-status-row{display:grid;grid-template-columns:minmax(200px,320px) 1fr;grid-gap:16px;gap:16px;align-items:center;margin-top:18px}.campaign-current{margin:0;color:var(--muted);line-height:1.65}.campaign-current strong{color:var(--ink)}.campaign-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-gap:14px;gap:14px;margin-top:18px}.campaign-wide-field{grid-column:1/-1}.campaign-save-button{min-height:47px;border-radius:8px;background:var(--ink);color:#fffdf8;font-weight:800;margin-top:18px;padding:0 18px}.campaign-save-button:hover{background:var(--accent-dark)}.output-header{display:flex;gap:16px;justify-content:space-between;align-items:flex-start;margin-bottom:18px}.output-actions{display:flex;gap:10px;flex-wrap:wrap;justify-content:flex-end}.output-actions button{min-width:112px;background:var(--ink);padding:0 16px}.output-actions button:first-child{background:var(--surface-strong);color:var(--ink)}.result-box{min-height:500px;border:1px solid var(--line);border-radius:8px;background:linear-gradient(rgba(255,255,255,.82),rgba(255,255,255,.82)),repeating-linear-gradient(0deg,transparent,transparent 31px,rgba(222,214,201,.52) 32px);padding:22px}pre{margin:0;color:#25342d;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,monospace;font-size:.94rem;line-height:1.75;white-space:pre-wrap}.error,.muted{margin:0;line-height:1.65}.muted{color:var(--muted)}.error{color:var(--danger);font-weight:700}.draft-list{display:grid;grid-gap:16px;gap:16px;margin-top:18px}.draft-item{border:1px solid var(--line);border-radius:8px;background:#ffffff;padding:20px}.draft-item h3{margin:16px 0 12px;font-size:1.06rem;line-height:1.35}.draft-card-header{display:flex;gap:14px;align-items:flex-start;justify-content:space-between}.draft-content{margin:0;color:#37433c;line-height:1.7;white-space:pre-wrap}.draft-toggle{margin-top:14px;border:1px solid var(--line);border-radius:8px;background:var(--surface-strong);color:var(--ink);font-size:.86rem;font-weight:800;min-height:38px;padding:0 14px}.draft-toggle:hover{background:#e7dfd1}.draft-meta{display:flex;gap:8px;flex-wrap:wrap;min-width:0}.draft-meta span,.draft-meta time{border:1px solid var(--line);border-radius:999px;background:var(--surface-strong);color:#435048;font-size:.76rem;font-weight:800;padding:5px 9px}.draft-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}.draft-actions button{min-height:36px;border:1px solid var(--line);border-radius:8px;background:var(--surface-strong);color:var(--ink);font-size:.82rem;font-weight:800;padding:0 12px}.draft-actions button:hover{background:#e7dfd1}.draft-actions button.danger{border-color:rgba(164,56,45,.28);background:#fff4f1;color:var(--danger)}.draft-actions button.danger:hover{background:#ffe8e1}.drafts-empty{margin:18px 0 0;color:var(--muted);line-height:1.65}@media (max-width:920px){.workspace{grid-template-columns:1fr}}@media (max-width:560px){.page-shell{width:min(100% - 22px,1180px);padding:24px 0}.campaign-grid,.campaign-status-row,.field-grid,.output-header{grid-template-columns:1fr}.output-header{display:grid}.output-actions{justify-content:stretch}.output-actions button{flex:1 1 130px}.studio-header{display:grid}.logout-button{width:100%}.draft-card-header{display:grid}.draft-actions{justify-content:stretch}.draft-actions button{flex:1 1 120px}.daily-platform-controls{grid-template-columns:1fr}.weekly-strategy-controls{align-items:stretch;display:grid}.weekly-strategy-controls label{width:100%}.weekly-strategy-controls .auto-status-badge{justify-content:center;margin-bottom:0}.auto-post-status-row{align-items:stretch;display:grid}.auto-toggle-button,.campaign-save-button,.daily-platform-controls button{width:100%}.campaign-section,.daily-platform-section,.drafts-section,.generator,.output-panel{padding:18px}.result-box{min-height:360px}}