:root:root{--bg:#f3f4f7;--card:#ffffff;--card2:#f7f8fa;--border:#e1e4ea;--text:#151821;--muted:#677084;--accent:#75781c;--accent-fill:#dde024;--accent-soft:#fbfbe5;--on-accent:#0c0f14;--ok:#16834a;--ok-soft:#e2f3e9;--warn:#a86400;--warn-soft:#fcf0da;--bad:#c7362c;--bad-soft:#fbe6e4;--chip:#eceff4;color-scheme:light}@media (prefers-color-scheme:dark){:root:root{--bg:#0c0f14;--card:#151920;--card2:#1a1f28;--border:#272d38;--text:#e7e9ee;--muted:#8f98a8;--accent:#dde024;--accent-fill:#dde024;--accent-soft:#3a3d18;--on-accent:#0c0f14;--ok:#43cf82;--ok-soft:#13301f;--warn:#f0ab40;--warn-soft:#33260f;--bad:#ff6f63;--bad-soft:#3a1815;--chip:#222834;color-scheme:dark}}:root{--l-bg:#f3f4f7;--d-bg:#0c0f14;--l-card:#ffffff;--d-card:#151920;--l-card2:#f7f8fa;--d-card2:#1a1f28;--l-border:#e1e4ea;--d-border:#272d38;--l-text:#151821;--d-text:#e7e9ee;--l-muted:#677084;--d-muted:#8f98a8;--l-accent:#75781c;--d-accent:#dde024;--l-accent-fill:#dde024;--d-accent-fill:#dde024;--l-accent-soft:#fbfbe5;--d-accent-soft:#3a3d18;--l-on-accent:#0c0f14;--d-on-accent:#0c0f14;--l-ok:#16834a;--d-ok:#43cf82;--l-ok-soft:#e2f3e9;--d-ok-soft:#13301f;--l-warn:#a86400;--d-warn:#f0ab40;--l-warn-soft:#fcf0da;--d-warn-soft:#33260f;--l-bad:#c7362c;--d-bad:#ff6f63;--l-bad-soft:#fbe6e4;--d-bad-soft:#3a1815;--l-chip:#eceff4;--d-chip:#222834}/* SaaS-only parts of the portal, in every look (server/looks.ts): the look picker (web/src/pages/look.tsx). */
.look-choices{display:grid;gap:12px;grid-template-columns:repeat(auto-fill,minmax(190px,1fr));margin-top:8px}
.look-choice{display:flex;flex-direction:column;gap:8px;padding:10px;border:1px solid var(--border);border-radius:12px;cursor:pointer;font-size:13px;line-height:1.4;position:relative}
.look-choice:hover{border-color:color-mix(in srgb,var(--accent) 50%,var(--border))}
.look-choice.on{border-color:var(--accent);box-shadow:0 0 0 1px var(--accent)}
.look-choice input{position:absolute;opacity:0;pointer-events:none}
.look-choice:focus-within{outline:3px solid color-mix(in srgb,var(--accent) 55%,transparent);outline-offset:2px}
.look-sketch{width:100%;height:auto;border-radius:8px;border:1px solid var(--border);display:block}

/* The model's material composition (web/src/ui.tsx CompositionEditor, server/material-composition.ts). */
.mc-edit{display:flex;flex-direction:column;gap:6px;margin-top:4px}
.mc-edit-row{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1.4fr) 110px 36px;gap:8px;align-items:center}
.mc-edit-head{font-weight:600}
@media (max-width:640px){.mc-edit-row{grid-template-columns:minmax(0,1fr) 84px 36px}.mc-edit-row>:nth-child(2){grid-column:1/-1;grid-row:2}.mc-edit-head>:nth-child(2){display:none}}

.mc{list-style:none;margin:4px 0 0;padding:0;border:1px solid var(--border);border-radius:12px;overflow:hidden}
.mc-row{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(60px,1fr) 5.5em;align-items:center;gap:6px 16px;padding:11px 14px;border-top:1px solid var(--border)}
.mc-row:first-child{border-top:0}
.mc-name{font-weight:600;overflow-wrap:anywhere;font-size:14.5px}
.mc-name small{display:block;font-weight:400;color:var(--muted);font-size:12.5px;margin-top:2px}
.mc-track{display:block;height:8px;border-radius:99px;background:color-mix(in srgb,var(--accent-fill) 12%,var(--card))}
.mc-bar{display:block;height:100%;min-width:6px;border-radius:99px;background:var(--accent-fill)}
.mc-share{font-weight:700;font-variant-numeric:tabular-nums;text-align:right;white-space:nowrap;color:var(--accent)}
.mc-rest .mc-name,.mc-rest .mc-share{color:var(--muted);font-weight:500;font-style:italic}
.mc-rest .mc-bar{background:color-mix(in srgb,var(--muted) 45%,var(--card))}
.mc-note{margin:8px 0 0;color:var(--muted);font-size:12.5px}
@media (max-width:520px){.mc-row{grid-template-columns:minmax(0,1fr) 5.5em}.mc-track{grid-column:1/-1;grid-row:2}}
/* Ledger (server/looks.ts), the portal: an official document. Warm paper, serif titles (the
   system's: Iowan, Palatino, Georgia, Songti for Chinese), thin rules instead of boxes, square
   corners, small capitals for captions, a text-only menu with the current page underlined. */
:root:root:root {
  --bg: #f4f1ea; --card: #fffdf8; --card2: #f8f4ec; --border: #ddd5c5; --text: #23201a; --muted: #6b6355; --chip: #ece6d9;
  --rule: #23201a;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Songti SC", "STSong", "SimSun", serif;
}
@media (prefers-color-scheme: dark) {
  :root:root:root { --bg: #17150f; --card: #1e1b15; --card2: #23201a; --border: #3b362b; --text: #ece6d8; --muted: #a79f8d; --chip: #2b271e; --rule: #ece6d8; }
}
body { background: var(--bg); }
h1, h2, .side-brand span, .kpi b, .stat b, .login-brand h2 { font-family: var(--serif); font-weight: 400; }
h2 { font-size: 19px; }
h3 { letter-spacing: .14em; }
.content, .side { background: var(--bg); }
.side { border-right: 1px solid var(--border); padding: 30px 22px; }
.side-brand { padding: 0 0 18px; margin-bottom: 18px; border-bottom: 3px double var(--rule); font-size: 19px; line-height: 1.2; }
.side-brand img { width: auto; max-width: 160px; height: 30px; object-fit: contain; }
.nav-label { letter-spacing: .16em; font-size: 10.5px; padding-left: 0; }
.nav {
  min-height: 32px; padding: 5px 0; border: 0; border-radius: 0; background: none; box-shadow: none; color: var(--text);
}
.nav .icon { display: none; }
.nav:hover { background: none; text-decoration: underline; text-underline-offset: 5px; }
.nav.on { background: none; box-shadow: none; border: 0; color: var(--accent); font-weight: 600; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }
.nav.on::after { display: none; }
.who { border-top: 1px solid var(--rule); }
.avatar { border-radius: 0; background: none; border: 1px solid var(--rule); color: var(--text); }

.header { background: var(--bg); border-bottom: 1px solid var(--border); }
.search input { border: 0; border-bottom: 1px solid var(--rule); border-radius: 0; background: transparent; }
.search input:focus { outline: 0; border-bottom-width: 2px; border-bottom-color: var(--accent); }
.search-key { border-radius: 0; }
.header-tools .btn, .header-lang .lang-button, .user-button { border-radius: 0; background: transparent; border-color: var(--border); }
.search-list, .user-pop, .lang-menu, .logout-pop { border-radius: 0; border-color: var(--rule); }

.page-head { border-bottom: 3px double var(--rule); padding-top: 28px; }
.page-head h1 { font-family: var(--serif); font-weight: 400; font-size: 36px; letter-spacing: -.01em; }
.page-sub { font-family: var(--serif); font-style: italic; font-size: 16px; }

.card, .kpi, .stat, .cf-record, .doc-slot, .key-box, .scope, .translation, .look-choice {
  border-radius: 0; box-shadow: none; background: var(--card); border: 1px solid var(--border); border-top: 2px solid var(--rule);
}
.kpis { gap: 0; border-top: 2px solid var(--rule); border-bottom: 1px solid var(--border); }
.kpis .kpi { border: 0; border-right: 1px solid var(--border); background: transparent; padding: 16px 18px; }
.kpis .kpi:last-child { border-right: 0; }
.kpi span, .stat span { text-transform: uppercase; letter-spacing: .14em; font-size: 10.5px; }
.kpi b { font-size: 40px; font-variant-numeric: lining-nums tabular-nums; }
th { text-transform: uppercase; letter-spacing: .12em; font-size: 10.5px; border-bottom-color: var(--rule); }
tr.click:hover td { background: var(--chip); }

button, .btn, input, select, textarea, .badge, .alert, .tabs button, .search-public, .look-sketch, .empty-icon, .login-code-icon, .otp input { border-radius: 0; }
button, .btn { border-color: var(--rule); }
button.primary { border-color: var(--accent-fill); }
input, select, textarea { background: var(--card); }
.badge { background: transparent; border: 1px solid currentColor; padding: 0 8px; }
.badge.ok, .badge.warn, .badge.bad, .badge.info { background: transparent; }
.tabs { border-bottom: 1px solid var(--rule); }
.tabs button.on { color: var(--text); border-bottom-color: var(--rule); }
.stack, .bar-track, .bar-fill, .meter-track, .meter-fill { border-radius: 0; }
.alert { border-left: 3px solid currentColor; }

.login-brand { background: var(--bg); border-right: 3px double var(--rule); }
.login-brand h2 { font-size: 34px; }
.login-brand li .icon { border-radius: 0; }
.login-main { background: var(--card); }

@media (max-width: 860px) {
  .side.open { padding: 18px 22px; }
  .page-head h1 { font-size: 28px; }
  .kpis .kpi { border-bottom: 1px solid var(--border); }
  .login-brand { border-right: 0; border-bottom: 3px double var(--rule); }
}

.ou-lock{--ou-h:14px;display:inline-flex;flex-wrap:nowrap;align-items:center;gap:calc(var(--ou-h)*.7);color:inherit;line-height:1;white-space:nowrap}
.ou-lock,.ou-lock span{flex:none}
.ou-mark{flex:none;width:calc(var(--ou-h)*1.8);height:calc(var(--ou-h)*1.8)}
.ou-word{display:block;flex:none;height:var(--ou-h);width:calc(var(--ou-h)*6.65)}
.ou-text{display:flex;align-items:center;gap:calc(var(--ou-h)*.6)}
.ou-line{font-weight:600;font-size:calc(var(--ou-h)*1.1);letter-spacing:0;padding-left:calc(var(--ou-h)*.6);border-left:1.5px solid currentColor;opacity:.92}
.ou-stack .ou-mark{width:calc(var(--ou-h)*2.6);height:calc(var(--ou-h)*2.6)}
.ou-stack .ou-text{flex-direction:column;align-items:flex-start;gap:calc(var(--ou-h)*.4)}
.ou-stack .ou-line{border:0;padding:0;font-size:calc(var(--ou-h)*.72);font-weight:700;letter-spacing:.09em;text-transform:uppercase}
.ou-zh.ou-stack .ou-line{font-size:calc(var(--ou-h)*.95);letter-spacing:.02em}
/* SaaS: the platform's product in the portal, after every look's CSS (server/looks.ts;
   web/src/platform.tsx, server/platform-brand.ts): the foot of the menu, the login's signature. */
.ou-menu{display:flex;position:sticky;bottom:0;z-index:1;background:inherit;margin:14px 0 0;padding:16px 12px 4px;border-top:1px solid color-mix(in srgb,currentColor 16%,transparent);color:inherit;text-decoration:none;flex:none}
.ou-menu .ou-lock{--ou-h:13px}
.ou-menu:hover{opacity:.85}
/* The tenant's logo and its company's name always on one line (Mario, 15 Nov 2026), in every look. */
.side-brand,.header-brand{flex-wrap:nowrap;align-items:center}
.side-brand span,.header-brand span{flex:0 1 auto;min-width:0}
/* The login (Mario, 15 Nov 2026): the panel in the tenant's colour, its logo on a white plate (as
   it is on a light surface, so any logo in any colour reads), the product as the panel's signature. */
.login-brand:has(.ou-login){background:var(--accent-fill);color:var(--on-accent);border:0}
.login-brand:has(.ou-login) h2,.login-brand:has(.ou-login) p,.login-brand:has(.ou-login) li,.login-brand:has(.ou-login) a,.login-brand:has(.ou-login) .company,.login-brand:has(.ou-login) .company strong{color:var(--on-accent)}
.login-brand:has(.ou-login) p{opacity:.85}
.login-brand:has(.ou-login) li .icon{background:var(--on-accent);color:var(--accent-fill)}
.login-brand:has(.ou-login) .login-logo img{box-sizing:content-box;height:72px;max-width:min(320px,62vw);padding:14px 18px;border-radius:16px;object-position:-9999px 0;background:#ffffff url(/brand/logo-en-on-light.svg) center/contain no-repeat;background-origin:content-box;box-shadow:0 10px 30px -12px rgba(0,0,0,.35)}
.login-brand:has(.ou-login) .login-logo img[src$="logo-zh.svg"]{background-image:url(/brand/logo-zh-on-light.svg)}
.login-brand:has(.ou-login) .login-logo > span{color:var(--on-accent)}
.ou-login{display:flex;padding-top:22px;border-top:1px solid color-mix(in srgb,currentColor 30%,transparent);color:inherit;text-decoration:none}
.ou-login .ou-lock{--ou-h:17px}
@media (max-width:860px){.ou-login{padding-top:14px}.ou-login .ou-lock{--ou-h:13px}.login-brand:has(.ou-login) .login-logo img{height:48px;padding:10px 14px;max-width:min(260px,62vw)}}
/* A sales demo's mark (platform.tsx, server/platform-brand.ts): above the product in the menu, on the login. */
.ou-demo{display:inline-block;align-self:flex-start;background:#f5b301;color:#141414;font-weight:700;font-size:11.5px;line-height:1.5;border-radius:999px;padding:1px 10px;white-space:nowrap}
.ou-demo-menu{margin:14px 12px 0}
.ou-demo-menu + .ou-menu{margin-top:8px}
.ou-demo-login{margin-bottom:10px}
