:root {
    color-scheme: light;
    --paper: #f5f4ef;
    --ink: #18273a;
    --muted: #526070;
    --line: #dadcd6;
    --accent: #bd401d;
    font: 100%/1.55 "Segoe UI", Arial, sans-serif;
    background: var(--paper);
    color: var(--ink);
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: var(--accent); text-underline-offset: .2em; }
.wrap { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.shell-head { border-bottom: 1px solid var(--line); background: #fff; }
.shell-head .wrap, .shell-head nav, .actions, .entry, .viewer-head { display: flex; align-items: center; gap: 20px; }
.shell-head .wrap { min-height: 68px; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 8px; font-size: 1.23rem; font-weight: 750; color: var(--ink); text-decoration: none; }
.brand-logo { display: block; flex: none; height: auto; }
.shell-head nav a, .quiet { font-size: .9rem; color: var(--muted); font-weight: 600; }
.quiet { border: 0; background: none; cursor: pointer; }
.workspace { padding-block: 42px 70px; }
.manage-title { display: flex; align-items: center; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin-bottom: 22px; }
.manage-title h1 { margin-bottom: 0; }
.settings-link { padding: 9px 16px; background: white; border: 1px solid var(--line); border-radius: 8px; font-weight: 650; text-decoration: none; }
.settings-box { width: min(100%, 510px); margin-inline: auto; }
.settings-box .sheet { margin-top: 16px; }
.settings-box h1 { font-size: clamp(1.8rem,5vw,2.35rem); }
h1, h2 { line-height: 1.12; letter-spacing: -.04em; margin: 0 0 .55em; }
h1 { font-size: clamp(2rem, 5vw, 3.6rem); }
h2 { font-size: 1.55rem; }
h2 small { color: var(--muted); font-size: .9rem; }
p { color: var(--muted); }
.manage-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.sheet { background: white; border: 1px solid var(--line); border-radius: 16px; padding: clamp(20px, 3vw, 35px); }
.login-box { max-width: 440px; margin: 30px auto; }
.login-box h1 { font-size: 2.15rem; }
label { display: block; font-weight: 650; font-size: .92rem; margin-top: 18px; }
input:not([type=checkbox]), select, textarea { font: inherit; display: block; width: 100%; background: #fff; border: 1px solid #aeb5b9; color: var(--ink); border-radius: 7px; padding: 11px; margin-top: 6px; }
textarea { resize: vertical; }
.check { display: flex; gap: 8px; align-items: center; }
.check input { width: 18px; height: 18px; accent-color: var(--accent); }
.primary { background: var(--ink); color: white; border-radius: 7px; border: 0; cursor: pointer; padding: 12px 22px; font: inherit; font-weight: 650; }
.actions, .login-box .primary { margin-top: 22px; }
.hint { font-size: .83rem; margin-top: 6px; }
.success, .error { padding: 12px 20px; border-radius: 6px; }
.error { color: #893018; background: #fff0e8; }
.success { color: #155b42; background: #e3f3eb; }
.entry { justify-content: space-between; padding: 16px 0; border-bottom: 1px solid var(--line); }
.entry div { min-width: 0; overflow-wrap: anywhere; }
.entry p { margin: 3px 0 0; font-size: .88rem; }
.viewer { background: #fff; display: flex; flex-direction: column; height: 100vh; height: 100dvh; }
.viewer-head { border-bottom: 1px solid var(--line); padding: 10px 16px; font-size: .9rem; background: var(--paper); }
.viewer-head > strong { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.viewer-head > a { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.viewer-head details { margin-left: auto; position: relative; }
.viewer-head summary { cursor: pointer; }
.viewer-head details[open] { position: absolute; z-index: 1; right: 8px; top: 5px; width: min(280px, 80vw); border: 1px solid var(--line); padding: 10px 14px; background: white; border-radius: 8px; }
.viewer iframe { border: 0; width: 100%; flex: 1; min-height: 0; }
.demo-sheet { max-width: 730px; margin-top: 26px; }
.tag { display: table; color: var(--accent); background: #fff0e8; border-radius: 14px; padding: 3px 12px; font-size: .8rem; font-weight: 650; margin: 22px 0 12px; }
.demo-list { list-style: none; padding: 0; }
.demo-list li, .inspect { border-bottom: 1px solid var(--line); padding: 12px 0; }
.demo-list span { display: block; font-size: .9rem; color: var(--muted); }
:focus-visible { outline: 3px solid #955523; outline-offset: 3px; }
@media (max-width: 720px) {
    .shell-head .brand-logo { width: 45px; }
    .manage-grid { grid-template-columns: 1fr; }
    .wrap { width: min(100% - 28px, 1180px); }
    .workspace { padding-block: 26px 48px; }
}
