*{box-sizing:border-box}body,html{margin:0;min-height:100%}body{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;background:#07111f;color:#eef4ff}button,input{font:inherit}button{cursor:pointer}a{color:inherit;text-decoration:none}.auth-page{min-height:100vh;display:grid;place-items:center;padding:24px;background:radial-gradient(circle at 20% 15%,rgba(37,99,235,.18),transparent 32%),radial-gradient(circle at 85% 10%,rgba(14,165,233,.1),transparent 28%),#07111f}.auth-panel{width:min(440px,100%);padding:40px;border:1px solid rgba(148,163,184,.16);border-radius:24px;background:rgba(12,23,40,.92);box-shadow:0 30px 80px rgba(0,0,0,.35)}.brand-mark{width:48px;height:48px;display:grid;place-items:center;border-radius:14px;background:linear-gradient(135deg,#2563eb,#0ea5e9);color:white;font-size:22px;font-weight:800}.brand-mark.small{width:38px;height:38px;border-radius:11px;font-size:17px}.eyebrow{margin-top:24px;color:#60a5fa;font-size:12px;font-weight:800;letter-spacing:.14em;text-transform:uppercase}.auth-title{margin:10px 0 8px;font-size:36px;letter-spacing:-.04em}.auth-description{margin:0;color:#94a3b8;line-height:1.7}.auth-form{display:grid;grid-gap:18px;gap:18px;margin-top:32px}.auth-form label{display:grid;grid-gap:8px;gap:8px;color:#cbd5e1;font-size:14px;font-weight:600}.auth-form input{width:100%;height:48px;padding:0 14px;border:1px solid #26364d;border-radius:12px;outline:none;background:#091525;color:#f8fafc}.auth-form input:focus{border-color:#3b82f6;box-shadow:0 0 0 3px rgba(59,130,246,.13)}.primary-button{min-height:50px;border:0;border-radius:12px;background:#2563eb;font-weight:750}.primary-button:disabled{opacity:.6;cursor:wait}.auth-error{padding:12px 14px;border:1px solid rgba(248,113,113,.3);border-radius:10px;background:rgba(127,29,29,.2);color:#fecaca;font-size:13px}.auth-security{margin-top:24px;color:#64748b;font-size:12px;text-align:center}.dashboard-loading{min-height:100vh;display:grid;place-items:center;color:#94a3b8}.dashboard-shell{min-height:100vh;display:grid;grid-template-columns:240px minmax(0,1fr);background:#07111f}.sidebar{min-height:100vh;display:flex;flex-direction:column;justify-content:space-between;padding:24px 18px;border-right:1px solid rgba(148,163,184,.12);background:#091525}.sidebar-brand{display:flex;align-items:center;gap:12px;padding:0 6px}.sidebar-brand div:last-child{display:grid;grid-gap:2px;gap:2px}.sidebar-brand strong{font-size:15px}.sidebar-brand span{color:#64748b;font-size:11px}.sidebar-nav{display:grid;grid-gap:6px;gap:6px;margin-top:34px}.nav-item{padding:11px 12px;border-radius:10px;color:#94a3b8;font-size:14px}.nav-item.active{background:rgba(37,99,235,.15);color:#bfdbfe}.nav-item.disabled{opacity:.45}.logout-button{padding:10px 12px;border:1px solid #26364d;border-radius:10px;background:transparent;color:#94a3b8}.dashboard-main{min-width:0;padding:38px}.dashboard-header{display:flex;align-items:flex-start;justify-content:space-between;gap:24px}.dashboard-header .eyebrow{margin-top:0}.dashboard-header h1{margin:8px 0;font-size:32px;letter-spacing:-.04em}.dashboard-header p{margin:0;color:#64748b}.user-chip{max-width:320px;overflow:hidden;padding:9px 13px;border:1px solid #26364d;border-radius:999px;color:#cbd5e1;font-size:12px;text-overflow:ellipsis;white-space:nowrap}.metric-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));grid-gap:16px;gap:16px;margin-top:34px}.metric-card{min-height:150px;padding:20px;border:1px solid rgba(148,163,184,.12);border-radius:18px;background:#0b1829}.metric-card span{color:#94a3b8;font-size:13px}.metric-card strong{display:block;margin-top:18px;font-size:32px}.metric-card small{display:block;margin-top:14px;color:#475569}.dashboard-panel{display:flex;align-items:center;justify-content:space-between;gap:30px;margin-top:18px;padding:28px;border:1px solid rgba(148,163,184,.12);border-radius:20px;background:#0b1829}.dashboard-panel .eyebrow{margin:0}.dashboard-panel h2{margin:8px 0}.dashboard-panel p{max-width:680px;margin:0;color:#94a3b8;line-height:1.7}.system-status{flex:0 0 auto;display:flex;align-items:center;gap:8px;color:#86efac;font-size:13px}.status-dot{width:8px;height:8px;border-radius:50%;background:#22c55e}@media (max-width:980px){.metric-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (max-width:720px){.auth-panel{padding:30px 22px}.dashboard-shell{display:block}.sidebar{min-height:auto;padding:16px;border-right:0;border-bottom:1px solid rgba(148,163,184,.12)}.sidebar-nav{display:flex;overflow-x:auto;margin-top:18px}.logout-button{margin-top:16px}.dashboard-main{padding:24px 16px}.dashboard-header{display:block}.user-chip{width:-moz-fit-content;width:fit-content;max-width:100%;margin-top:18px}.metric-grid{grid-template-columns:1fr}.dashboard-panel{display:block}.system-status{margin-top:22px}}.sidebar-bottom{display:grid;grid-gap:14px;gap:14px}.sidebar-account{display:grid;grid-gap:4px;gap:4px;padding:0 6px;min-width:0}.sidebar-account strong{color:#cbd5e1;font-size:12px}.sidebar-account span{overflow:hidden;color:#64748b;font-size:10px;text-overflow:ellipsis;white-space:nowrap}.plan-chip{padding:9px 14px;border:1px solid rgba(96,165,250,.25);border-radius:999px;background:rgba(37,99,235,.1);color:#93c5fd;font-size:12px;font-weight:700}.metric-card.featured{background:linear-gradient(145deg,rgba(37,99,235,.18),rgba(11,24,41,1))}.metric-label{color:#94a3b8;font-size:13px}.dashboard-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-gap:18px;gap:18px;margin-top:18px}.dashboard-panel.vertical{display:block}.panel-header{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}.panel-number{color:#60a5fa;font-size:24px}.progress-track{height:8px;margin-top:28px;overflow:hidden;border-radius:999px;background:#16243a}.progress-value{height:100%;border-radius:inherit;background:linear-gradient(90deg,#2563eb,#38bdf8)}.credit-summary{display:grid;grid-template-columns:repeat(3,1fr);grid-gap:14px;gap:14px;margin-top:22px}.credit-summary div,.profit-grid div{display:grid;grid-gap:7px;gap:7px}.activity-list span,.credit-summary span,.profit-grid span,.token-row span{color:#64748b;font-size:12px}.credit-summary strong{color:#dbeafe;font-size:18px}.profit-grid{display:grid;grid-template-columns:repeat(2,1fr);grid-gap:20px;gap:20px;margin-top:24px}.profit-grid strong{color:#e2e8f0;font-size:20px}.panel-note{margin-top:24px!important;padding-top:18px;border-top:1px solid rgba(148,163,184,.1);color:#64748b!important;font-size:11px;line-height:1.65!important}.bottom-grid{align-items:stretch}.activity-list{display:grid;grid-gap:14px;gap:14px;margin-top:22px}.activity-list div,.token-row{display:flex;align-items:center;justify-content:space-between;gap:20px;padding-bottom:12px;border-bottom:1px solid rgba(148,163,184,.08)}.activity-list strong{color:#cbd5e1}.activity-list strong.good{color:#86efac}.activity-list strong.bad{color:#fca5a5}.token-total{margin-top:22px;margin-bottom:22px;color:#f8fafc;font-size:38px;font-weight:800;letter-spacing:-.04em}.token-row{margin-top:12px}.workspace-panel{margin-top:18px}.subscription-status{display:flex;align-items:center;gap:8px;color:#86efac;font-size:12px;text-transform:capitalize}.dashboard-error{margin-top:24px;padding:14px 16px;border:1px solid rgba(248,113,113,.25);border-radius:12px;background:rgba(127,29,29,.15);color:#fecaca;font-size:13px}.loading-logo{width:48px;height:48px;display:grid;place-items:center;margin:0 auto 16px;border-radius:14px;background:linear-gradient(135deg,#2563eb,#0ea5e9);color:white;font-weight:800}.dashboard-loading{text-align:center}.dashboard-loading p{color:#64748b}@media (max-width:980px){.dashboard-grid{grid-template-columns:1fr}}@media (max-width:720px){.credit-summary{grid-template-columns:repeat(3,minmax(0,1fr))}.profit-grid{grid-template-columns:1fr}.plan-chip{display:inline-flex;margin-top:18px}}.creator-layout{display:grid;grid-template-columns:minmax(320px,.8fr) minmax(0,1.2fr);grid-gap:18px;gap:18px;margin-top:34px}.creator-panel,.creator-result{padding:26px;border:1px solid rgba(148,163,184,.12);border-radius:20px;background:#0b1829}.creator-panel{display:grid;grid-gap:20px;gap:20px;align-content:start}.form-group{display:grid;grid-gap:8px;gap:8px}.form-group label{color:#cbd5e1;font-size:13px;font-weight:650}.form-group input,.form-group select,.form-group textarea{width:100%;border:1px solid #26364d;border-radius:11px;outline:none;background:#091525;color:#f8fafc}.form-group input,.form-group select{min-height:46px;padding:0 13px}.form-group textarea{resize:vertical;min-height:120px;padding:12px 13px;line-height:1.6}.form-group input:focus,.form-group select:focus,.form-group textarea:focus{border-color:#3b82f6;box-shadow:0 0 0 3px rgba(59,130,246,.12)}.creator-result{min-height:560px}.creator-result-header{display:flex;align-items:flex-start;justify-content:space-between;gap:20px}.creator-result-header .eyebrow{margin-top:0}.creator-result-header h2{margin:8px 0 0}.generation-status{padding:7px 10px;border-radius:999px;background:rgba(34,197,94,.12);color:#86efac;font-size:11px;text-transform:uppercase}.generated-content{margin-top:30px;padding:22px;border:1px solid rgba(148,163,184,.12);border-radius:14px;background:#091525;color:#e2e8f0;font-size:15px;line-height:1.9;white-space:pre-wrap}.generation-meta{display:flex;flex-wrap:wrap;gap:8px 18px;margin-top:18px;color:#64748b;font-size:11px}.secondary-button{margin-top:20px;padding:10px 14px;border:1px solid #26364d;border-radius:10px;background:transparent;color:#cbd5e1}.result-empty{min-height:440px;display:grid;place-items:center;text-align:center}.result-empty strong{color:#cbd5e1}.result-empty p{max-width:340px;margin-top:8px;color:#64748b;font-size:13px;line-height:1.7}@media (max-width:980px){.creator-layout{grid-template-columns:1fr}.creator-result{min-height:auto}}.brand-page{min-height:100vh;background:#f6f7fb;color:#172033;padding:32px 20px 60px}.brand-shell{width:min(1180px,100%);margin:0 auto}.brand-header{display:flex;justify-content:space-between;align-items:flex-end;gap:24px;margin-bottom:28px}.brand-eyebrow,.brand-section-label{margin:0 0 7px;font-size:12px;font-weight:800;letter-spacing:.12em;text-transform:uppercase;color:#6558d3}.brand-header h1{margin:0;font-size:34px}.brand-subtitle{margin:8px 0 0;color:#667085}.brand-header-actions{display:flex;gap:10px}.danger-button,.primary-button,.secondary-button{border:0;border-radius:10px;padding:11px 17px;font-weight:700;cursor:pointer}.primary-button{background:#6558d3;color:white}.secondary-button{background:white;color:#344054;border:1px solid #d9dde7}.danger-button{background:#fff1f1;color:#b42318}.danger-button:disabled,.primary-button:disabled{opacity:.55;cursor:not-allowed}.brand-layout{display:grid;grid-template-columns:260px minmax(0,1fr);grid-gap:20px;gap:20px;align-items:start}.brand-editor,.brand-sidebar{background:white;border:1px solid #e5e7ef;border-radius:16px;box-shadow:0 8px 28px rgba(16,24,40,.04)}.brand-sidebar{padding:16px}.brand-sidebar-title{display:flex;justify-content:space-between;align-items:center;font-weight:800;margin-bottom:12px}.brand-sidebar-title span{min-width:28px;height:28px;padding:0 8px;border-radius:999px;display:grid;place-items:center;background:#f0efff;color:#6558d3;font-size:12px}.brand-list{display:grid;grid-gap:8px;gap:8px}.brand-list-item{width:100%;text-align:left;border:1px solid transparent;background:transparent;border-radius:11px;padding:12px;cursor:pointer}.brand-list-item span,.brand-list-item strong{display:block}.brand-list-item strong{color:#172033;margin-bottom:4px}.brand-list-item span{color:#667085;font-size:13px}.brand-list-item:hover{background:#f8f8fc}.brand-list-item.active{background:#f2f0ff;border-color:#d9d4ff}.brand-empty{padding:18px 10px;text-align:center;color:#98a2b3;font-size:14px}.brand-editor{padding:24px}.brand-editor-heading{display:flex;justify-content:space-between;align-items:center;gap:16px;padding-bottom:20px;border-bottom:1px solid #edf0f5;margin-bottom:22px}.brand-editor-heading h2{margin:0;font-size:23px}.brand-form-grid{display:grid;grid-template-columns:1fr 1fr;grid-gap:18px;gap:18px}.brand-form label{display:grid;grid-gap:7px;gap:7px;color:#344054;font-size:14px;font-weight:700}.brand-form input,.brand-form textarea{width:100%;box-sizing:border-box;border:1px solid #d8dde7;border-radius:10px;padding:11px 12px;background:#fff;color:#172033;font:inherit;font-weight:400;outline:none}.brand-form textarea{min-height:92px;resize:vertical}.brand-form input:focus,.brand-form textarea:focus{border-color:#7668df;box-shadow:0 0 0 3px rgba(101,88,211,.1)}.brand-full{grid-column:1/-1}.brand-message{margin-top:18px;padding:12px 14px;border-radius:10px;background:#f2f0ff;color:#493ca5;font-size:14px}.brand-save-row{display:flex;justify-content:flex-end;margin-top:22px}.brand-loading{width:min(1180px,100%);margin:80px auto;text-align:center;color:#667085}@media (max-width:820px){.brand-page{padding:20px 14px 40px}.brand-header{align-items:stretch;flex-direction:column}.brand-header-actions{width:100%}.brand-header-actions button{flex:1 1}.brand-form-grid,.brand-layout{grid-template-columns:1fr}.brand-full{grid-column:auto}.brand-editor{padding:18px}.brand-editor-heading{align-items:flex-start}}.history-toolbar{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-gap:14px;gap:14px;margin-top:30px;padding:18px;border:1px solid rgba(148,163,184,.12);border-radius:18px;background:#0b1829}.history-toolbar label{display:grid;grid-gap:7px;gap:7px;color:#94a3b8;font-size:12px;font-weight:650}.history-toolbar select{width:100%;min-height:44px;padding:0 12px;border:1px solid #26364d;border-radius:10px;outline:none;background:#091525;color:#f8fafc}.history-summary-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));grid-gap:12px;gap:12px;margin-top:16px}.history-summary-grid article{padding:18px;border:1px solid rgba(148,163,184,.12);border-radius:15px;background:#0b1829}.history-summary-grid span{display:block;color:#64748b;font-size:11px}.history-summary-grid strong{display:block;margin-top:10px;color:#f8fafc;font-size:25px}.history-list{display:grid;grid-gap:14px;gap:14px;margin-top:18px}.history-card{padding:22px;border:1px solid rgba(148,163,184,.12);border-radius:18px;background:#0b1829}.history-card-top{display:flex;justify-content:space-between;align-items:flex-start;gap:20px}.history-card h2{margin:10px 0 7px;color:#f8fafc;font-size:19px}.history-card p{margin:0;color:#64748b;font-size:13px}.history-badges{display:flex;flex-wrap:wrap;gap:7px}.history-platform,.history-status{display:inline-flex;align-items:center;min-height:26px;padding:0 9px;border-radius:999px;font-size:10px;font-weight:700}.history-status.completed{background:rgba(34,197,94,.12);color:#86efac}.history-status.failed{background:rgba(239,68,68,.12);color:#fca5a5}.history-status.pending{background:rgba(234,179,8,.12);color:#fde68a}.history-status.draft{background:rgba(148,163,184,.12);color:#cbd5e1}.history-platform{background:rgba(59,130,246,.12);color:#93c5fd}.history-date{flex:0 0 auto;color:#475569;font-size:11px}.history-meta-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));grid-gap:10px;gap:10px;margin-top:18px}.history-meta-grid div{padding:12px;border-radius:10px;background:#091525}.history-meta-grid span{display:block;color:#475569;font-size:10px}.history-meta-grid strong{display:block;overflow:hidden;margin-top:6px;color:#cbd5e1;font-size:12px;text-overflow:ellipsis}.history-content{max-height:112px;overflow:hidden;margin-top:18px;padding:17px;border:1px solid rgba(148,163,184,.1);border-radius:12px;background:#091525;color:#dbe3ef;font-size:13px;line-height:1.8;white-space:pre-wrap}.history-content.expanded{max-height:none}.history-actions{display:flex;gap:9px;margin-top:12px}.history-draft-box,.history-error-box,.history-warning-box{margin-top:18px;padding:13px 14px;border-radius:10px;font-size:12px;line-height:1.6}.history-error-box{background:rgba(127,29,29,.15);color:#fca5a5}.history-warning-box{background:rgba(113,63,18,.18);color:#fde68a}.history-draft-box{background:rgba(51,65,85,.3);color:#94a3b8}.history-empty{padding:60px 20px;border:1px dashed rgba(148,163,184,.18);border-radius:16px;color:#64748b;text-align:center}@media (max-width:980px){.history-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (max-width:720px){.history-toolbar{grid-template-columns:1fr}.history-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.history-card-top{display:block}.history-date{margin-top:12px}.history-meta-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.history-actions{flex-direction:column}}