:root { --ink:#15211f; --muted:#6b7773; --line:#dce3dd; --paper:#f7f8f4; --surface:#ffffff; --mint:#c7e1ce; --mint-deep:#236b54; --coral:#e97155; --yellow:#f1c868; --shadow:0 18px 45px rgba(24, 41, 35, .08); font-family:"Noto Sans SC", system-ui, sans-serif; color:var(--ink); background:var(--paper); }
* { box-sizing:border-box; } body { margin:0; min-width:320px; background:var(--paper); } button, input, textarea, select { font:inherit; } button { cursor:pointer; } button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline:3px solid rgba(35,107,84,.25); outline-offset:2px; }
.app-shell { min-height:100vh; display:grid; grid-template-columns:222px minmax(0,1fr); }
.sidebar { padding:26px 14px 18px; border-right:1px solid var(--line); display:flex; flex-direction:column; min-height:100vh; position:sticky; top:0; height:100vh; background:#f2f5ef; }
.brand { display:flex; align-items:center; gap:10px; font-family:"DM Mono",monospace; font-size:17px; font-weight:500; letter-spacing:0; padding:0 10px; }.brand-mark { width:27px; height:27px; background:var(--ink); color:#fff; display:grid; place-items:center; font-size:14px; }
.nav-list { display:grid; gap:5px; margin-top:50px; }.nav-item { height:42px; display:flex; align-items:center; gap:11px; border:0; border-radius:6px; background:transparent; color:#596560; padding:0 11px; text-align:left; font-size:14px; }.nav-item svg { width:17px; }.nav-item b { margin-left:auto; min-width:20px; text-align:center; font:11px "DM Mono",monospace; color:var(--muted); }.nav-item:hover { background:#e5ece5; color:var(--ink); }.nav-item.active { background:var(--ink); color:#fff; }.nav-item.active b { color:#c7e1ce; }
.sidebar-foot { margin-top:auto; display:flex; align-items:center; gap:8px; padding:9px 10px; color:var(--muted); font-size:12px; }.dot { width:7px; height:7px; background:var(--mint-deep); border-radius:50%; }
.main-content { width:min(1440px,100%); padding:42px clamp(24px,5vw,74px) 60px; margin:0 auto; }.topbar { display:flex; justify-content:space-between; align-items:flex-start; gap:18px; }.eyebrow,.section-label { margin:0 0 7px; font:11px "DM Mono",monospace; letter-spacing:.08em; color:var(--muted); }.topbar h1,.section-heading h2,.composer h2,.drawer-head h2 { margin:0; letter-spacing:0; line-height:1.15; }.topbar h1 { font-size:30px; }.top-actions { display:flex; gap:10px; align-items:center; }.local-badge { display:flex; gap:7px; align-items:center; padding:8px 10px; background:#edf4ec; color:#4d6158; font-size:12px; }.local-badge svg { width:14px; height:14px; }.icon-button { width:36px; height:36px; padding:0; border:1px solid var(--line); border-radius:5px; background:var(--surface); color:var(--ink); display:grid; place-items:center; }.icon-button:hover { background:#edf4ec; border-color:#b4c9bc; }.icon-button svg { width:17px; }.icon-button.subtle { border-color:transparent; background:transparent; color:var(--muted); }
.mode-switch { display:flex; width:max-content; border-bottom:1px solid var(--line); margin-top:39px; }.mode-button { display:flex; align-items:center; gap:8px; height:42px; padding:0 17px; background:transparent; color:var(--muted); border:0; border-bottom:2px solid transparent; margin-bottom:-1px; font-size:14px; }.mode-button svg { width:16px; }.mode-button.active { color:var(--ink); border-bottom-color:var(--mint-deep); font-weight:600; }
.studio-grid { display:grid; grid-template-columns:minmax(340px,.94fr) minmax(380px,1.06fr); gap:42px; padding-top:32px; align-items:stretch; }.composer { border-top:2px solid var(--ink); padding-top:18px; min-width:0; }.composer-heading,.section-heading,.drawer-head { display:flex; justify-content:space-between; align-items:flex-start; gap:18px; }.composer h2,.section-heading h2,.drawer-head h2 { font-size:20px; }.field-label { display:block; font-size:13px; font-weight:600; margin:23px 0 8px; }.composer textarea { display:block; width:100%; height:173px; padding:14px 15px; border:1px solid var(--line); background:var(--surface); resize:vertical; border-radius:5px; color:var(--ink); font-size:14px; line-height:1.65; }.composer textarea::placeholder { color:#98a39e; }.prompt-meta { display:flex; justify-content:space-between; align-items:center; min-height:31px; color:#87928d; font:11px "DM Mono",monospace; }.text-button { display:inline-flex; align-items:center; gap:6px; border:0; color:var(--mint-deep); padding:4px 0; background:transparent; font-size:12px; }.text-button:hover { color:var(--ink); }.text-button svg { width:14px; }.preset-row { display:flex; flex-wrap:wrap; gap:7px; margin:14px 0 22px; }.preset { padding:6px 9px; border:1px solid #d6dfd7; color:#53625b; background:transparent; border-radius:4px; font-size:12px; }.preset:hover { border-color:var(--mint-deep); color:var(--mint-deep); background:#f1f7f1; }.option-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:11px; }.option-grid.two-cols { grid-template-columns:repeat(2,1fr); }.select-field { display:block; color:#68746f; font-size:12px; }.select-field select,.select-field input,.settings-form input { display:block; width:100%; height:39px; margin-top:7px; padding:0 10px; color:var(--ink); border:1px solid var(--line); border-radius:4px; background:var(--surface); font-size:13px; }.hidden { display:none !important; }.video-options { margin-top:8px; }.source-choice { border-top:1px solid var(--line); padding-top:1px; }.segmented { display:flex; border:1px solid var(--line); border-radius:5px; overflow:hidden; width:max-content; max-width:100%; }.segment { border:0; border-right:1px solid var(--line); padding:8px 12px; background:var(--surface); color:var(--muted); font-size:12px; }.segment:last-child { border-right:0; }.segment.active { color:var(--ink); background:var(--mint); }.source-note,.input-hint { margin:8px 0 18px; color:var(--muted); font-size:11px; line-height:1.55; }.form-bottom { display:flex; justify-content:space-between; align-items:center; gap:15px; border-top:1px solid var(--line); margin-top:27px; padding-top:18px; }.request-note { display:flex; align-items:center; gap:6px; color:var(--muted); font-size:11px; }.request-note svg { width:14px; color:var(--mint-deep); }.generate-button,.save-button { display:flex; gap:9px; justify-content:center; align-items:center; min-height:42px; border:0; border-radius:5px; background:var(--ink); color:white; padding:0 15px; font-size:13px; font-weight:600; }.generate-button:hover,.save-button:hover { background:#2d4941; }.generate-button:disabled { opacity:.55; cursor:wait; }.generate-button svg,.save-button svg { width:16px; }
.preview-panel { min-height:492px; background:var(--ink); color:#fff; display:flex; flex-direction:column; padding:17px; position:relative; overflow:hidden; }.preview-topline { display:flex; justify-content:space-between; color:#aebcb5; font:10px "DM Mono",monospace; letter-spacing:.08em; }.preview-stage { display:grid; place-items:center; flex:1; margin:16px 0; min-height:350px; overflow:hidden; }.empty-preview { text-align:center; color:#aebcb5; font-size:14px; line-height:1.7; }.empty-preview svg { color:var(--mint); width:39px; height:39px; margin-bottom:8px; }.preview-media { max-width:100%; max-height:398px; width:auto; height:auto; object-fit:contain; }.preview-footer { min-height:24px; color:#aebcb5; font-size:11px; display:flex; justify-content:space-between; align-items:center; }.preview-footer a { color:#fff; text-decoration:none; border-bottom:1px solid var(--mint); padding-bottom:2px; }
.gallery-section { margin-top:69px; }.gallery-section .section-heading { align-items:end; padding-bottom:17px; border-bottom:1px solid var(--line); }.gallery-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:14px; padding-top:19px; }.gallery-empty { grid-column:1/-1; min-height:164px; display:grid; place-items:center; align-content:center; gap:7px; color:#7a8680; background:#eff3ef; font-size:13px; }.gallery-empty svg { width:25px; }.art-card { min-width:0; position:relative; cursor:pointer; background:#e9eeea; aspect-ratio:1/.92; overflow:hidden; }.art-card img,.art-card video { width:100%; height:100%; display:block; object-fit:cover; }.art-card-info { position:absolute; inset:auto 0 0; padding:10px; background:rgba(21,33,31,.86); color:#fff; transform:translateY(100%); transition:transform .18s ease; }.art-card:hover .art-card-info,.art-card:focus-within .art-card-info { transform:translateY(0); }.art-card-info p { margin:0; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; font-size:11px; }.art-card-info span { display:block; margin-top:4px; color:#bbccc3; font:10px "DM Mono",monospace; }.task-card { display:grid; place-content:center; text-align:center; padding:18px; background:#e8efe8; color:#4c5c53; }.task-card svg { width:24px; margin:0 auto 10px; color:var(--mint-deep); }.task-card p { margin:0; font-size:12px; line-height:1.6; }.task-card small { margin-top:7px; color:#7d8a83; font:10px "DM Mono",monospace; }
.settings-drawer { position:fixed; z-index:10; top:0; right:0; bottom:0; width:min(454px,100vw); background:#fff; padding:32px 29px; transform:translateX(100%); transition:transform .2s ease; overflow:auto; box-shadow:-18px 0 45px rgba(28,41,35,.13); }.settings-drawer.open { transform:translateX(0); }.drawer-copy { color:var(--muted); font-size:13px; line-height:1.7; margin:17px 0 28px; }.settings-group { padding:0 0 22px; margin-bottom:22px; border-bottom:1px solid var(--line); }.settings-group h3 { display:flex; align-items:center; gap:7px; margin:0; font-size:14px; }.provider-dot { width:8px; height:8px; display:inline-block; border-radius:50%; }.provider-dot.openai { background:var(--coral); }.provider-dot.minimax { background:var(--mint-deep); }.settings-form .field-label { margin-top:18px; }.secret-field { position:relative; }.secret-field input { padding-right:42px; }.reveal-key { position:absolute; right:0; bottom:0; width:38px; height:39px; border:0; background:transparent; color:var(--muted); }.reveal-key svg { width:16px; }.input-hint code { font-family:"DM Mono",monospace; }.remember-row { display:flex; align-items:center; gap:9px; margin:4px 0 20px; color:#5b6761; font-size:13px; }.remember-row input { width:15px; height:15px; accent-color:var(--mint-deep); }.save-button { width:100%; }.scrim { position:fixed; inset:0; z-index:9; background:rgba(21,33,31,.25); opacity:0; pointer-events:none; transition:opacity .2s; }.scrim.show { opacity:1; pointer-events:auto; }.toast { position:fixed; z-index:20; left:50%; bottom:23px; transform:translate(-50%, 20px); max-width:min(92vw,540px); padding:10px 14px; color:#fff; background:var(--ink); border:1px solid #416257; opacity:0; pointer-events:none; font-size:13px; transition:opacity .18s,transform .18s; }.toast.show { opacity:1; transform:translate(-50%,0); }.toast.error { border-color:var(--coral); }
@media (max-width:950px) { .app-shell { grid-template-columns:72px minmax(0,1fr); }.sidebar { padding:25px 10px 16px; align-items:center; }.brand { padding:0; }.brand > span:last-child,.nav-item span,.nav-item b,.sidebar-foot span:last-child { display:none; }.nav-list { margin-top:44px; width:100%; }.nav-item { justify-content:center; padding:0; }.sidebar-foot { padding:0; }.studio-grid { grid-template-columns:1fr; }.preview-panel { min-height:420px; }.gallery-grid { grid-template-columns:repeat(3,minmax(0,1fr)); } }

.settings-group-heading { display:flex; justify-content:space-between; align-items:center; gap:12px; }.mini-action { display:inline-flex; align-items:center; gap:5px; border:0; background:transparent; color:var(--mint-deep); padding:4px 0; font-size:11px; }.mini-action:hover { color:var(--ink); }.mini-action:disabled { opacity:.55; cursor:wait; }.mini-action svg { width:13px; }
@media (max-width:620px) { .app-shell { display:block; }.sidebar { position:static; min-height:0; height:auto; border-right:0; border-bottom:1px solid var(--line); padding:13px 17px; flex-direction:row; }.brand { margin-right:auto; }.nav-list { display:flex; width:auto; margin:0; gap:2px; }.nav-item { width:37px; height:37px; }.sidebar-foot { display:none; }.main-content { padding:27px 18px 45px; }.topbar h1 { font-size:25px; }.local-badge { display:none; }.mode-switch { margin-top:27px; }.studio-grid { gap:28px; padding-top:26px; }.option-grid { grid-template-columns:1fr 1fr; }.option-grid .select-field:last-child { grid-column:1/-1; }.preview-panel { min-height:390px; }.gallery-section { margin-top:47px; }.gallery-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:9px; }.form-bottom { align-items:flex-end; }.request-note { max-width:120px; line-height:1.45; }.settings-drawer { padding:25px 20px; } }
