:root{--bg:#f5f7fb;--surface:#fff;--text:#111827;--muted:#4b5563;--line:#e5e7eb;--accent:#1e40af;--accent-hover:#1e3a8a;--accent-soft:#e8eefc;--rail:#0f172a;--rail-text:#cbd5e1;--rail-active:#1e293b;--pending:#92400e;--pending-bg:#fef3c7;--done:#065f46;--done-bg:#d1fae5;--danger:#991b1b;--danger-bg:#fee2e2;--radius:14px;--nav-height:64px;--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light;color:var(--text);background:var(--bg);font-family:system-ui,-apple-system,Segoe UI,Roboto,sans-serif;font-size:16px;line-height:1.5}*{box-sizing:border-box}body{min-height:100dvh;margin:0}h1,h2,h3,h4{margin:0 0 8px;line-height:1.25}h2{font-size:1.25rem}h3{margin-top:16px;font-size:1.05rem}p{margin:4px 0}ul,ol{margin:0;padding:0;list-style:none}:focus-visible{outline:3px solid var(--accent);outline-offset:2px}.sr-only{clip:rect(0 0 0 0);white-space:nowrap;border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}button{font:inherit;border:1px solid var(--accent);background:var(--accent);color:#fff;cursor:pointer;border-radius:10px;min-height:44px;padding:0 16px;font-weight:600}button:hover:not(:disabled){background:var(--accent-hover)}button:disabled{opacity:.55;cursor:not-allowed}button[type=button]{background:var(--accent-soft);color:var(--accent);border-color:#0000}button[type=button]:hover:not(:disabled){background:#d6e1fb}button[aria-pressed=true]{background:var(--accent);color:#fff}label{flex-direction:column;gap:4px;font-size:.95rem;font-weight:600;display:flex}:is(label:has(>input[type=checkbox]),label:has(>input[type=radio])){flex-direction:row;align-items:center;min-height:44px;font-weight:400}input,select,textarea{font:inherit;color:var(--text);background:var(--surface);border:1px solid #9ca3af;border-radius:10px;width:100%;min-height:44px;padding:10px 12px;font-weight:400}input[type=checkbox],input[type=radio]{width:20px;height:20px;min-height:0;accent-color:var(--accent)}textarea{resize:vertical;min-height:96px}form{flex-direction:column;gap:12px;margin:12px 0;display:flex}fieldset{border:1px solid var(--line);border-radius:var(--radius);background:var(--surface);flex-wrap:wrap;gap:4px 16px;margin:8px 0;padding:8px 12px;display:flex}legend{padding:0 4px;font-weight:600}[role=alert]{color:var(--danger);background:var(--danger-bg);border-radius:10px;padding:8px 12px}[role=status]{color:var(--done);background:var(--done-bg);border-radius:10px;padding:8px 12px}.login-page{place-items:center;min-height:100dvh;padding:24px 16px;display:grid}.login-card{background:var(--surface);border:1px solid var(--line);border-radius:20px;width:100%;max-width:420px;padding:24px}.login-card header h1{color:var(--accent);font-size:1.75rem}.login-card header p{color:var(--muted);margin-bottom:16px}.login-card [role=group]{background:var(--accent-soft);border-radius:12px;grid-template-columns:1fr 1fr;gap:4px;margin:12px 0;padding:4px;display:grid}.login-card [role=group] button{color:var(--accent);background:0 0}.login-card [role=group] button[aria-pressed=true]{background:var(--accent);color:#fff}.shell{flex-direction:column;min-height:100dvh;display:flex}.topbar{z-index:5;background:var(--surface);border-bottom:1px solid var(--line);flex-wrap:wrap;align-items:center;gap:12px;padding:8px 16px;display:flex;position:sticky;top:0}.topbar .brand{color:var(--accent);font-size:1.15rem;font-weight:700}.topbar .greeting{color:var(--muted);flex:1;margin:0}.topbar-actions{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.topbar-actions label{flex-direction:row;align-items:center}.topbar-actions select{width:auto;min-height:40px;padding:4px 8px}.content{padding:16px 16px calc(var(--nav-height) + 24px);flex:1;width:100%;max-width:960px}.content>section>ul>li,.content section>ul>li{padding:6px 0}.tabs{z-index:10;background:var(--surface);border-top:1px solid var(--line);padding-bottom:env(safe-area-inset-bottom);grid-auto-columns:minmax(64px,1fr);grid-auto-flow:column;display:grid;position:fixed;inset:auto 0 0;overflow-x:auto}.tabs button{color:var(--muted);min-height:var(--nav-height);background:0 0;border:0;border-radius:0;flex-direction:column;justify-content:center;align-items:center;gap:2px;padding:6px 4px;font-size:.75rem;font-weight:500;line-height:1.2;display:flex}.tabs button:hover:not(:disabled){background:var(--accent-soft)}.tabs button[aria-pressed=true]{color:var(--accent);background:0 0;font-weight:700}.tabs svg{width:24px;height:24px}.tabs .brand{display:none}.chat-layout{display:grid}.chat-layout.has-open .conv-list,.chat-layout:not(.has-open) .chat-empty{display:none}.conv-list ul{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);overflow:hidden}.conv-list li{border-bottom:1px solid var(--line);padding:0!important}.conv-list li:last-child{border-bottom:0}.conv-list li button{text-align:left;background:var(--surface);width:100%;color:var(--text);border:0;border-radius:0;min-height:56px;font-weight:500}.conv-list li button[aria-current=true]{background:var(--accent-soft);color:var(--accent);font-weight:700}.chat-empty{color:var(--muted);place-items:center;display:grid}.thread{flex-direction:column;gap:10px;margin:12px 0 24px;display:flex}.thread>li{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);align-self:flex-start;max-width:85%;padding:8px 14px}.thread>li.mine{background:var(--accent);border-color:var(--accent);color:#fff;align-self:flex-end}.thread>li.mine>strong{color:#dbe4ff}.thread>li.card-item{width:100%;max-width:100%;color:var(--text);background:0 0;border:0;padding:0}.thread>li>strong{color:var(--muted);font-size:.8rem;display:block}.thread>li>em{color:var(--accent);font-size:.85rem;font-style:normal;font-weight:600;display:block}.thread>li.mine>em{color:#dbe4ff}.thread>li>button[type=button]{min-height:32px;color:var(--accent);text-underline-offset:2px;background:0 0;border:0;margin-top:4px;padding:0;font-size:.85rem;text-decoration:underline}.thread>li.mine>button[type=button]{color:#fff;background:0 0}.thread>li>button[type=button]:hover:not(:disabled){background:0 0}.thread img{border-radius:10px;max-width:100%;margin-top:6px;display:block}.composer{bottom:calc(var(--nav-height) + env(safe-area-inset-bottom));background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);flex-direction:row;align-items:flex-end;gap:8px;padding:8px;position:sticky}.composer .composer-field{flex:1}.composer textarea{resize:none;border-radius:22px;height:44px;min-height:44px}.attach-btn{background:var(--accent-soft);cursor:pointer;border-radius:50%;flex:none;place-items:center;width:44px;height:44px;display:grid;position:relative}.attach-btn:before{content:"+";color:var(--accent);font-size:24px;font-weight:400}.attach-btn:focus-within{outline:3px solid var(--accent);outline-offset:2px}.hw-card{background:var(--surface);border:1px solid var(--line);border-left:4px solid var(--accent);border-radius:var(--radius);padding:12px 14px}.hw-card .kicker{letter-spacing:.04em;text-transform:uppercase;color:var(--accent);font-size:.75rem;font-weight:700;display:block}.hw-card strong{color:var(--text);font-size:1.05rem}.badge{color:var(--pending);background:var(--pending-bg);border-radius:999px;padding:2px 10px;font-size:.8rem;font-weight:700;display:inline-block}.badge.submitted,.badge.reviewed{color:var(--done);background:var(--done-bg)}.badge.returned{color:var(--danger);background:var(--danger-bg)}article[aria-label]{margin:8px 0}@media (width>=960px){.shell{grid-template-rows:auto 1fr;grid-template-columns:232px 1fr;display:grid}.tabs{background:var(--rail);border:0;grid-row:1/span 2;grid-auto-rows:min-content;grid-auto-flow:row;gap:4px;height:100dvh;padding:20px 12px;position:sticky;top:0;overflow:auto}.tabs .brand{color:#fff;padding:0 12px 16px;font-size:1.25rem;font-weight:700;display:block}.tabs button{min-height:44px;color:var(--rail-text);border-radius:8px;flex-direction:row;justify-content:flex-start;gap:12px;padding:8px 12px;font-size:.95rem}.tabs button:hover:not(:disabled){background:var(--rail-active)}.tabs button[aria-pressed=true]{background:var(--rail-active);color:#fff}.tabs svg{width:20px;height:20px}.tabs :focus-visible{outline-color:#fbbf24}.topbar{grid-column:2;padding:12px 24px}.topbar .brand{display:none}.content{grid-column:2;max-width:none;padding:24px}.content>section,.content>div:not(.chat-layout){max-width:900px}.chat-layout{grid-template-columns:320px 1fr;gap:0;height:calc(100dvh - 65px);margin:-24px}.chat-layout.has-open .conv-list{display:block}.chat-layout:not(.has-open) .chat-empty{display:grid}.conv-list{background:var(--surface);border-right:1px solid var(--line);padding:16px 0 0;overflow-y:auto}.conv-list h2{padding:0 16px}.conv-list ul{border:0;border-top:1px solid var(--line);border-radius:0}.conversation{flex-direction:column;padding:16px 24px;display:flex;overflow-y:auto}.conversation .back-btn{display:none}.thread>li{max-width:65%}.thread>li.card-item{max-width:75%}.composer{bottom:0}}@media (prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important;animation:none!important}}.note{color:var(--muted);margin:.25rem 0 .75rem;font-size:.875rem}form.card{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);max-width:520px;margin:12px 0;padding:16px}form.card h3{margin-top:0}.actions{flex-wrap:wrap;gap:8px;margin-top:8px;display:flex}
