:root{--ink:#17201c;--ink-2:#2d3632;--muted:#5b635e;--line:#e2ddd0;--line-2:#c8c3b6;--paper:#f6f4ef;--paper-2:#faf9f5;--white:#fff;--forest:#13201b;--forest-2:#2e3d36;--on-forest:#ede8dc;--on-forest-muted:#b9c0b9;--teal:#0e5e5a;--teal-dark:#0a4441;--teal-tint:#e6efec;--brass:#c9a55a;--error:#a3361f;--radius:12px;--serif:"Fraunces", Georgia, serif;--sans:"Inter", system-ui, -apple-system, sans-serif}*{box-sizing:border-box}html,body{margin:0;padding:0}body{font-family:var(--sans);color:var(--ink);background:var(--paper);-webkit-font-smoothing:antialiased}a{color:var(--teal)}a:hover{color:var(--teal-dark)}h1,h2,h3{margin:0}button{font-family:inherit}:focus-visible{outline:2px solid var(--teal);outline-offset:2px}.sr-only{clip:rect(0 0 0 0);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}.btn{border:1px solid var(--line-2);background:var(--white);height:44px;color:var(--ink);cursor:pointer;white-space:nowrap;border-radius:10px;justify-content:center;align-items:center;gap:8px;padding:0 18px;font-size:14px;font-weight:500;text-decoration:none;display:inline-flex}.btn:hover{border-color:var(--ink);color:var(--ink)}.btn:disabled{opacity:.55;cursor:not-allowed}.btn-primary{background:var(--teal);border-color:var(--teal);color:#fff;font-weight:600}.btn-primary:hover{background:var(--teal-dark);border-color:var(--teal-dark);color:#fff}.btn-dark{background:var(--forest);border-color:var(--forest);color:#fff;font-weight:600}.btn-dark:hover{color:#fff;background:#000}.btn-brass{background:var(--brass);border-color:var(--brass);color:var(--forest);font-weight:600}.btn-ghost{background:0 0;border-color:#0000}.btn-lg{border-radius:12px;width:100%;height:54px;font-size:17px}.btn-sm{height:36px;padding:0 12px;font-size:13px}.field{flex-direction:column;gap:8px;display:flex}.label{font-size:14px;font-weight:500}.eyebrow{letter-spacing:1px;text-transform:uppercase;color:var(--muted);font-size:12px;font-weight:600}.input,.textarea,.select{width:100%;color:var(--ink);background:var(--white);border:1px solid var(--line-2);border-radius:10px;font-family:inherit;font-size:15px}.input,.select{height:48px;padding:0 14px}.textarea{resize:vertical;min-height:110px;padding:12px 14px;line-height:1.5}.hint{color:var(--muted);font-size:12px;line-height:1.5}.error-text{color:var(--error);font-size:13px}.chip{border:1px solid var(--line-2);background:var(--white);height:40px;color:var(--ink);cursor:pointer;border-radius:999px;padding:0 14px;font-size:14px}.chip[aria-pressed=true]{background:var(--forest);border-color:var(--forest);color:#fff}.choice{border:1px solid var(--line-2);background:var(--white);min-height:64px;color:var(--ink);text-align:left;cursor:pointer;border-radius:12px;flex-direction:column;gap:2px;padding:10px 12px;display:flex}.choice[aria-pressed=true]{background:var(--teal-tint);border:1.5px solid var(--teal)}.choice strong{font-size:14px}.choice span{color:var(--muted);font-size:12px}.seg{border:1px solid var(--line-2);background:var(--white);height:44px;color:var(--ink);cursor:pointer;border-radius:10px;font-size:14px}.seg[aria-pressed=true]{background:var(--teal-tint);border:1.5px solid var(--teal);color:var(--teal);font-weight:600}.card{background:var(--white);border:1px solid var(--line);border-radius:16px}.badge{letter-spacing:1px;text-transform:uppercase;background:var(--teal-tint);color:var(--teal);border-radius:999px;padding:4px 10px;font-size:11px;font-weight:600}.login{flex-wrap:wrap;min-height:100vh;display:flex}.login-hero{background:var(--forest);color:var(--on-forest);flex-direction:column;flex:480px;justify-content:space-between;gap:48px;padding:56px;display:flex}.login-hero h1{font-family:var(--serif);max-width:560px;font-size:clamp(36px,5vw,56px);font-weight:400;line-height:1.05}.login-hero p{color:var(--on-forest-muted);max-width:520px;margin:20px 0 0;font-size:17px;line-height:1.6}.login-studios{letter-spacing:1.5px;text-transform:uppercase;color:var(--brass);flex-wrap:wrap;gap:24px;font-size:13px;display:flex}.login-form{flex:480px;justify-content:center;align-items:center;padding:48px 24px;display:flex}.login-form>div{flex-direction:column;gap:20px;width:100%;max-width:400px;display:flex}.brand{font-family:var(--serif);align-items:center;gap:10px;font-size:22px;font-weight:600;display:flex}.shell{min-height:100vh;display:flex}.rail{background:var(--forest);flex-direction:column;flex:0 0 76px;align-items:center;gap:8px;height:100vh;padding:18px 0;display:flex;position:sticky;top:0}.rail a,.rail button{color:#a9b1aa;cursor:pointer;background:0 0;border:0;border-radius:12px;justify-content:center;align-items:center;width:48px;height:48px;display:flex}.rail a:hover,.rail button:hover{color:#fff;background:var(--forest-2)}.rail a[aria-current=page]{color:var(--forest);background:var(--brass)}.rail .spacer{flex:1}.main{flex-direction:column;flex:1;min-width:0;display:flex}.page{flex-direction:column;gap:28px;width:100%;max-width:1200px;margin:0 auto;padding:44px 32px;display:flex}.page-title{font-family:var(--serif);font-size:clamp(30px,4vw,44px);font-weight:400}.projects-grid{flex-wrap:wrap;align-items:flex-start;gap:24px;display:flex}.new-project{flex-direction:column;flex:440px;gap:18px;padding:28px;display:flex}.project-list{flex-direction:column;flex:360px;gap:10px;display:flex}.project-row{color:var(--ink);align-items:center;gap:14px;padding:12px;text-decoration:none;display:flex}.project-row:hover{border-color:var(--ink);color:var(--ink)}.project-thumb{background:var(--forest-2);object-fit:cover;border-radius:10px;flex:none;width:56px;height:56px}.empty{border:1.5px dashed var(--line-2);text-align:center;border-radius:18px;flex-direction:column;align-items:center;gap:10px;padding:40px 28px;display:flex}.two{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;display:grid}.phead{background:var(--white);border-bottom:1px solid var(--line);flex-direction:column;gap:12px;padding:18px 32px 0;display:flex}.phead-top{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;display:flex}.phead h1{font-family:var(--serif);font-size:28px;font-weight:600}.tabs{gap:28px;display:flex}.tabs a{color:var(--muted);border-bottom:2px solid #0000;padding:10px 0 12px;font-size:15px;text-decoration:none}.tabs a[aria-current=page]{color:var(--ink);border-bottom-color:var(--teal);font-weight:600}.count{color:var(--muted);background:#efece4;border-radius:999px;margin-left:4px;padding:2px 8px;font-size:12px}.gen{flex-wrap:wrap;align-items:flex-start;gap:24px;padding:28px 32px;display:flex}.brief{flex-direction:column;flex:340px;gap:20px;max-width:420px;padding:22px;display:flex}.result{flex-direction:column;flex:999 420px;gap:14px;min-width:0;display:flex}.side{flex-direction:column;flex:260px;gap:16px;max-width:320px;display:flex}.choices{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;display:grid}.chips{flex-wrap:wrap;gap:8px;display:flex}.segs{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;display:grid}.drop{border:1.5px dashed var(--line-2);background:var(--paper-2);min-height:96px;color:var(--muted);cursor:pointer;text-align:center;border-radius:12px;flex-direction:column;justify-content:center;align-items:center;gap:6px;padding:14px;font-size:14px;display:flex}.drop.is-over{border-color:var(--teal);background:var(--teal-tint)}.thumbs{flex-wrap:wrap;gap:8px;display:flex}.thumb{background:var(--line);border-radius:10px;width:72px;height:72px;position:relative;overflow:hidden}.thumb img{object-fit:cover;width:100%;height:100%;display:block}.thumb button{color:#fff;cursor:pointer;background:#000000a6;border:0;border-radius:50%;justify-content:center;align-items:center;width:24px;height:24px;display:flex;position:absolute;top:4px;right:4px}.thumb .uploading{background:#fff9;justify-content:center;align-items:center;font-size:11px;display:flex;position:absolute;inset:0}.stage{background:#e9e5da;border-radius:16px;justify-content:center;align-items:center;width:100%;display:flex;position:relative;overflow:hidden}.stage img{width:100%;height:auto;display:block}.stage-empty{aspect-ratio:1;max-height:640px;color:var(--muted);text-align:center;flex-direction:column;gap:10px;padding:24px}.stage .tag{color:var(--ink);background:#ffffffeb;border-radius:999px;padding:5px 12px;font-size:12px;font-weight:600;position:absolute;top:14px;left:14px}.working{aspect-ratio:1;max-height:640px;color:var(--ink-2);flex-direction:column;gap:14px}.spinner{border:3px solid var(--line-2);border-top-color:var(--teal);border-radius:50%;width:34px;height:34px;animation:.9s linear infinite spin}@keyframes spin{to{transform:rotate(360deg)}}@media (prefers-reduced-motion:reduce){.spinner{animation-duration:3s}}.refine{flex-direction:column;gap:10px;padding:16px;display:flex}.refine-row{flex-wrap:wrap;gap:10px;display:flex}.refine-row .input{flex:260px;height:46px}.actions{border-top:1px solid #efece4;flex-wrap:wrap;justify-content:flex-end;gap:10px;padding-top:12px;display:flex}.prompt-box{color:var(--ink-2);background:var(--paper-2);white-space:pre-wrap;word-break:break-word;border-radius:10px;margin:0;padding:12px;font-family:ui-monospace,JetBrains Mono,Menlo,monospace;font-size:12.5px;line-height:1.6}.dark-card{background:var(--forest);color:var(--on-forest);border-radius:16px;flex-direction:column;gap:8px;padding:20px;display:flex}.dark-card .eyebrow{color:var(--brass)}.dark-card p{color:var(--on-forest-muted);margin:0;font-size:13px;line-height:1.5}.alert{color:var(--error);background:#fbeae6;border-radius:10px;padding:12px 14px;font-size:14px}.lib{flex-direction:column;gap:20px;padding:24px 32px 120px;display:flex}.lib-bar{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;display:flex}.lib-grid{grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:16px;display:grid}.tile{flex-direction:column;gap:8px;display:flex}.tile-img{aspect-ratio:1;cursor:pointer;background:#e9e5da;border:3px solid #0000;border-radius:14px;padding:0;position:relative;overflow:hidden}.tile-img[aria-pressed=true]{border-color:var(--brass)}.tile-img img{object-fit:cover;width:100%;height:100%;display:block}.tick{background:#00000040;border:2px solid #fff;border-radius:8px;justify-content:center;align-items:center;width:26px;height:26px;display:flex;position:absolute;top:10px;left:10px}.tile-img[aria-pressed=true] .tick{background:var(--teal)}.tile-meta{justify-content:space-between;align-items:center;gap:8px;font-size:13px;display:flex}.tile-meta span{color:var(--muted)}.star{cursor:pointer;width:36px;height:36px;color:var(--muted);background:0 0;border:0;justify-content:center;align-items:center;display:flex}.star[aria-pressed=true]{color:var(--brass)}.selbar{background:var(--forest);color:#fff;z-index:20;border-radius:16px;flex-wrap:wrap;align-items:center;gap:10px;width:calc(100% - 48px);max-width:640px;padding:10px 10px 10px 20px;display:flex;position:fixed;bottom:24px;left:50%;transform:translate(-50%)}.selbar strong{margin-right:auto}.selbar .btn-ghost{color:var(--on-forest)}.hist{flex-direction:column;gap:12px;padding:24px 32px 60px;display:flex}.hist-row{flex-wrap:wrap;gap:16px;padding:14px;display:flex}.hist-row img,.hist-row .hist-ph{object-fit:cover;background:#e9e5da;border-radius:10px;flex:none;width:120px;height:120px}.hist-body{flex-direction:column;flex:300px;gap:6px;min-width:0;font-size:14px;display:flex}.kpis{grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:16px;display:grid}.kpi{flex-direction:column;gap:6px;padding:20px;display:flex}.kpi strong{font-family:var(--serif);font-size:32px;font-weight:600}.kpi span{color:var(--muted);font-size:13px}.table-wrap{overflow-x:auto}table{border-collapse:collapse;width:100%;min-width:560px;font-size:14px}th{text-align:left;color:var(--muted);text-transform:uppercase;letter-spacing:1px;padding:10px 8px;font-size:12px;font-weight:600}td{border-top:1px solid #efece4;padding:12px 8px}details.edit-brief summary{cursor:pointer;list-style:none}details.edit-brief summary::-webkit-details-marker{display:none}.edit-panel{z-index:30;flex-direction:column;gap:14px;width:min(520px,100vw - 48px);padding:22px;display:flex;position:absolute;top:70px;right:32px;box-shadow:0 18px 50px #13201b2e}@media (max-width:700px){.shell{flex-direction:column}.rail{flex-direction:row;flex:none;height:auto;padding:8px 12px;position:static}.rail .spacer{flex:1}.page,.gen,.lib,.hist{padding-left:16px;padding-right:16px}.phead{padding:14px 16px 0}.login-hero{padding:32px 24px}.edit-panel{right:12px}}
