/* Shared visual system, derived from the user's live Simeng storefront. */
:root{
 --bg:#edf3fc;--surface:#fff;--soft:#edf2ff;--field:#f0f5fc;
 --text:#182945;--muted:#536683;--line:#dce6f4;--accent:#4359a6;
 --primary:#4d5db3;--on:#fff;--sidebar:#f8faff;--rad:16px;
 --shadow:0 3px 16px #233c6d09;--success:#2f7259;--warning:#906628;
 color-scheme:light;
}
body.a[data-theme="dark"]{
 --bg:#171421;--surface:#211c2e;--soft:#2d253f;--field:#2b243a;
 --text:#f2edf9;--muted:#b6aac6;--line:#3b324a;--accent:#c1a6ee;
 --primary:#7654c7;--sidebar:#1c1827;--shadow:0 3px 16px #00000012;
 --success:#99c9b0;--warning:#e0bb7c;color-scheme:dark;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth;scrollbar-color:var(--line) transparent}
body{margin:0;font:14px/1.65 'Zhiyu Sans','Segoe UI','Microsoft YaHei UI','Microsoft YaHei',sans-serif;background:var(--bg);color:var(--text);-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}
body.a[data-theme="light"]{background-image:radial-gradient(ellipse at 60% 0,#dbe9ff90,transparent 65%);background-size:100% 600px;background-repeat:no-repeat}
button,input,textarea,select{font:inherit}
button{cursor:pointer;border:1px solid transparent;min-height:44px;padding:10px 15px;border-radius:10px;background:transparent;color:inherit;transition:background .16s,border-color .16s,box-shadow .16s,transform .16s}
button,a,select,input[type=file]{touch-action:manipulation;-webkit-tap-highlight-color:transparent}
button:hover{background:var(--soft)}button:disabled{cursor:not-allowed;opacity:.55}
button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:3px solid var(--accent);outline-offset:3px}
a{color:inherit;text-decoration:none}h1,h2,h3,p{margin:0}
h1{font-size:28px;line-height:1.4;letter-spacing:-.7px;font-weight:650}
h2{font-size:18px;line-height:1.5;font-weight:650}h3{font-size:16px;font-weight:600}
small,.caption{font-size:12px;color:var(--muted);line-height:1.65}.muted{color:var(--muted)}
.primary{background:var(--primary);border-color:var(--primary);color:var(--on);font-weight:600;box-shadow:0 3px 10px #49267b12}
.primary:hover{background:var(--primary);filter:brightness(1.08);box-shadow:0 4px 14px #49267b22}
.outline{background:var(--surface);border-color:var(--line);font-weight:500}.outline:hover{border-color:var(--accent)}
.row{display:flex;align-items:center;gap:12px}.between{justify-content:space-between}.grow{flex:1;min-width:0}.stack{display:flex;flex-direction:column;gap:18px}
.icon{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}
.badge{display:inline-flex;align-items:center;border:1px solid var(--line);border-radius:7px;padding:4px 9px;font-size:12px;line-height:1.6;white-space:nowrap;background:var(--soft);color:var(--accent)}
.dot{display:inline-block;width:6px;height:6px;border-radius:50%;background:var(--success);margin-right:6px}
.panel{background:var(--surface);border:1px solid var(--line);border-radius:var(--rad);box-shadow:var(--shadow)}
.app{min-height:100vh}.sidebar{position:fixed;inset:0 auto 0 0;width:226px;padding:26px 16px 16px;display:flex;flex-direction:column;gap:24px;background:var(--sidebar);border-right:1px solid var(--line);z-index:5}
.brand{display:flex;align-items:center;gap:12px;white-space:nowrap;padding:0 10px}
.brand strong{font-size:23px;font-weight:700;letter-spacing:1px}.brand small{display:block;font-size:12px;color:var(--muted);margin-top:1px}
.mark{display:grid;place-items:center;width:40px;height:40px;border-radius:12px;background:var(--primary);color:white;font-size:25px;font-weight:700;font-style:italic;box-shadow:inset 0 1px 0 #ffffff26,0 5px 14px #7654c726}
.workspace{padding:13px 12px;background:var(--surface);border:1px solid var(--line);border-radius:11px}.workspace strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px}.workspace .caption{margin-top:3px}
.nav{display:flex;flex-direction:column;gap:5px}.nav button{display:flex;align-items:center;gap:12px;text-align:left;padding:12px 14px;color:var(--muted);min-height:46px;border-radius:10px}
.nav button:hover{color:var(--text);background:var(--soft)}.nav button.active{background:var(--soft);border-color:var(--line);color:var(--accent);font-weight:600}
.nav-label{color:var(--muted);font-size:12px;margin:-4px 14px 9px}
.aside-bottom{margin-top:auto}.account{padding:16px 10px 3px;border-top:1px solid var(--line);font-size:13px}.avatar{display:grid;place-items:center;flex-shrink:0;width:32px;height:32px;border-radius:50%;background:var(--soft);color:var(--accent);font-size:13px;font-weight:600}
.shell{margin-left:226px;min-width:0}.topbar{height:72px;padding:0 32px;display:flex;align-items:center;justify-content:space-between;gap:18px;background:var(--surface);border-bottom:1px solid var(--line)}
.crumb{display:flex;align-items:center;gap:10px;color:var(--muted);font-size:13px;min-width:0}.crumb>.icon{width:17px;height:17px;color:var(--accent)}.crumb b{font-weight:500;color:var(--text)}
.content{max-width:1280px;margin:auto;padding:30px 32px 38px;min-width:0}.page-head{margin-bottom:24px}.page-head p{margin-top:7px;color:var(--muted);font-size:14px}.eyebrow{font-size:12px;color:var(--accent);margin-bottom:8px}
.section-title{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:26px 0 14px}.section-title h2{font-size:18px}
.field{display:block;margin-bottom:18px;min-width:0}.field>span{display:block;font-size:13px;font-weight:500;margin-bottom:8px}
.field input:not([type=file]),.field select,.field textarea{display:block;width:100%;min-height:44px;padding:10px 12px;color:var(--text);background:var(--field);border:1px solid var(--line);border-radius:9px}
.field textarea{height:100px;min-height:80px}.field input:focus,.field textarea:focus,.field select:focus{border-color:var(--accent)}
textarea{width:100%;resize:vertical;min-height:100px;padding:6px 0;border:0;background:transparent;color:var(--text);line-height:1.8}textarea::placeholder,input::placeholder{color:var(--muted);opacity:.8}
.twocol{display:grid;grid-template-columns:1fr 1fr;gap:12px}.wide{width:100%}
.model{border:1px solid var(--line);background:var(--soft);color:var(--text);border-radius:9px;min-height:44px;min-width:170px;padding:9px 12px;max-width:100%;font-size:13px}
.composer{padding:18px 20px;background:var(--surface);border:1px solid var(--line);border-radius:16px;box-shadow:0 6px 24px #28203c08}.composer:focus-within{border-color:var(--accent);box-shadow:0 0 0 3px color-mix(in srgb,var(--primary) 9%,transparent)}
.composer-bottom{border-top:1px solid var(--line);padding-top:13px;flex-wrap:wrap}.composer .primary{margin-left:auto}
.footnote{margin-top:18px;font-size:12px;color:var(--muted);line-height:1.8}.file-list{display:grid;gap:14px}.file-row{padding:20px;display:flex;align-items:center;gap:16px}.file-row>.icon{color:var(--accent)}
.hidden{display:none!important}.toast{position:fixed;bottom:28px;left:50%;transform:translateX(-50%);background:var(--text);color:var(--bg);padding:12px 20px;border-radius:10px;z-index:50;box-shadow:0 10px 30px #0002;max-width:90%;font-size:14px}
.modal-backdrop{position:fixed;inset:0;z-index:40;background:#0c091baa;display:grid;place-items:center;padding:24px}.modal{background:var(--surface);padding:28px;border-radius:16px;width:560px;max-width:100%;max-height:90vh;overflow:auto;border:1px solid var(--line)}.modal p{margin:14px 0}.modal li{margin:10px 0}.modal .close{float:right;font-size:20px}
@media(max-width:1100px){.sidebar{width:202px;padding-inline:12px}.shell{margin-left:202px}.content{padding:24px}.topbar{padding-inline:24px}.brand{gap:10px}.brand strong{font-size:21px}}
@media(max-width:760px){
 body{font-size:16px}.sidebar{position:relative;inset:auto;width:100%;height:auto;display:block;padding:16px 18px 0;border-right:0;border-bottom:1px solid var(--line)}.brand{padding:0;gap:10px}.brand strong{font-size:21px}.brand small{font-size:12px}.mark{width:35px;height:35px;font-size:23px;border-radius:10px}
 .workspace,.aside-bottom,.nav-label{display:none}.nav{flex-direction:row;overflow-x:auto;gap:4px;margin:14px -2px 0;padding-bottom:10px;scrollbar-width:none}.nav::-webkit-scrollbar{display:none}.nav button{flex-shrink:0;padding:10px 12px;min-height:44px;font-size:13px;gap:7px}.nav .icon{width:16px;height:16px}.shell{margin:0}.topbar{min-height:62px;height:auto;padding:10px 18px;gap:12px}.crumb{display:none}.content{padding:24px 18px 32px}
 h1{font-size:25px;letter-spacing:-.6px}h2{font-size:18px}.page-head p{font-size:14px}.field>span{font-size:14px}.field input,.field select,.field textarea{font-size:16px}.composer{padding:16px}.composer textarea{font-size:16px}.composer-bottom{gap:9px}.model{font-size:13px;min-width:0}.file-row{padding:17px}.modal{padding:20px}.row{gap:10px}
}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*::before,*::after{animation:none!important;transition:none!important}}
