:root {
    --paper: #f8fafc;
    --panel: #fff;
    --ink: #0f172a;
    --muted: #475569;
    --line: #cbd5e1;
    --accent: #2563eb;
    --accent-light: #bfdbfe;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--ink);
    background: var(--paper);
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; }
a { color: inherit; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #60a5fa; outline-offset: 4px; }
.shell { width: min(1152px, calc(100% - 72px)); margin-inline: auto; }
.main { flex: 1; padding-bottom: 64px; }
.skip { position: fixed; top: -90px; z-index: 2; background: white; padding: 12px; }
.skip:focus { top: 8px; left: 8px; }
.top { background: var(--ink); color: #f8fafc; border-bottom: 1px solid #334155; }
.top .nav-link:hover, .top .nav-link[aria-current] { color: var(--accent-light); }
.nav, .nav-actions, .actions, .footer .shell { display: flex; align-items: center; }
.nav { min-height: 80px; justify-content: space-between; gap: 20px; }
.nav-actions, .actions { gap: 18px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 21px; font-weight: 750; letter-spacing: -.06em; text-decoration: none; white-space: nowrap; }
.mark { display: inline-block; position: relative; width: 32px; height: 32px; border-radius: 9px; background: var(--accent); }
.mark::before, .mark::after { content: ""; position: absolute; background: var(--accent-light); width: 6px; height: 17px; transform: skew(-21deg); top: 8px; left: 9px; }
.mark::after { top: 8px; left: 17px; height: 12px; }
.btn, .nav-link, .text-link { display: inline-flex; justify-content: center; align-items: center; text-decoration: none; font-size: 15px; font-weight: 650; }
.btn { min-height: 46px; gap: 16px; border: 1px solid transparent; border-radius: 8px; padding: 11px 19px; cursor: pointer; }
.btn:hover { filter: brightness(.92); }
.small { min-height: 40px; padding: 7px 15px; }
.primary { background: var(--accent); color: white; }
.dark { background: var(--accent); color: white; }
.light { background: var(--accent-light); color: var(--ink); }
.neutral { border-color: var(--line); background: var(--panel); color: var(--ink); }
.nav-link { min-height: 40px; }
.nav-link[aria-current], .nav-link:hover, .text-link:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 4px; }
.hero { display: grid; grid-template-columns: 1.08fr 1fr; align-items: center; gap: clamp(28px, 6vw, 96px); padding: clamp(46px, 6vw, 92px) 0; }
h1,h2,p,figure,dl,dd { margin: 0; }
.hero h1, .page-head h1, .auth-card h1 { letter-spacing: -.062em; line-height: 1.04; font-weight: 680; }
.hero h1 { font-size: clamp(49px, 5.5vw, 82px); }
.hero h1 em { color: var(--accent); font-weight: 500; font-family: Georgia, serif; }
.intro p, .page-head p, .muted, .features p, .auth-alt { color: var(--muted); line-height: 1.6; }
.intro p { max-width: 46ch; margin: 24px 0 28px; font-size: 18px; }
.sample { position: relative; overflow: hidden; min-height: 354px; padding: 23px 25px 44px; background: #1e293b; border-radius: 18px; background-image: radial-gradient(#ffffff2e .9px, transparent .9px); background-size: 15px 15px; }
.sample figcaption { display: flex; align-items: center; gap: 9px; color: #f8fafc; font-size: 13px; font-weight: 600; }
.light-dot { width: 8px; height: 8px; background: var(--accent-light); border-radius: 50%; }
.filename { margin-left: auto; font: 12px ui-monospace, monospace; color: #cbd5e1; }
.sample-sheet { position: relative; width: 91%; margin: 30px auto 0; padding: 19px; border-radius: 8px; transform: rotate(-3deg); background: #ffffff; box-shadow: 0 9px 20px #02061733; }
.paper-top { display: flex; align-items: center; gap: 6px; margin-bottom: 16px; }
.paper-top b { margin-right: auto; font: 700 18px Georgia,serif; }
.paper-top span, .paper-lines i { display: block; height: 3px; border-radius: 3px; width: 20px; background: #cbd5e1; }
.paper-hero { position: relative; overflow: hidden; display: flex; justify-content: space-between; align-items: center; padding: 16px; min-height: 116px; background: #e0edff; }
.paper-hero small { font-size: 10px; color: #475569; }
.paper-hero strong { display: block; margin-top: 5px; font: 550 clamp(23px,2.7vw,38px)/1 Georgia, serif; }
.paper-art { width: 34%; align-self: stretch; border-radius: 52% 52% 3px 3px; background: repeating-radial-gradient(ellipse at bottom left, #4775bf 0 4px,#bfdbfe 5px 8px); }
.paper-lines { display: grid; gap: 5px; margin: 14px 0 0; }
.paper-lines i { width: 44%; }
.paper-lines i:last-child { width: 34%; }
.pin, .pin-inline { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--accent-light); color: var(--ink); font-size: 13px; font-weight: 700; }
.pin { position: absolute; left: 39%; top: 63%; border: 2px solid #1e40af; }
.sample-comment { position: relative; width: fit-content; max-width: 95%; display: flex; align-items: center; gap: 10px; padding: 13px 17px; border-radius: 8px; margin: -17px 0 -14px auto; color: #f8fafc; background: var(--ink); border: 1px solid #64748b; box-shadow: 0 8px 20px #02061733; font-size: 14px; }
.sample-comment p { margin-top: 3px; color: #e2e8f0; font-size: 13px; }
.features { display: grid; grid-template-columns: repeat(3,1fr); border-top: 1px solid var(--line); gap: 34px; padding-top: 32px; }
.symbol { display: inline-grid; place-items: center; background: #dbeafe; border-radius: 8px; width: 37px; height: 37px; color: var(--accent); font-size: 22px; }
.features h2 { margin: 15px 0 7px; font-size: 21px; letter-spacing: -.035em; }
.features p { font-size: 15px; max-width: 37ch; }
.footer { border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.footer .shell { justify-content: space-between; gap: 12px; padding-block: 20px; }
.footer span:first-child { font-weight: 700; }
.auth-card,.info-card,.users-card,.stats > div { border: 1px solid var(--line); background: var(--panel); border-radius: 14px; }
.auth-card { max-width: 460px; margin: clamp(30px,5vw,64px) auto 0; padding: clamp(24px,3.2vw,42px); }
.auth-card h1 { font-size: 40px; }
.auth-card .muted { margin: 9px 0 24px; }
.fields { display: flex; flex-direction: column; gap: 7px; }
.fields label { font-size: 14px; font-weight: 650; }
.fields label:not(:first-of-type) { margin-top: 10px; }
.fields input:not([type=checkbox]) { min-width: 0; padding: 11px; border: 1px solid #94a3b8; border-radius: 6px; background: #ffffff; color: var(--ink); }
.fields input[aria-invalid=true] { border-color: #a12223; }
.error { color: #a12223; font-size: 14px; }
.fields small { color: var(--muted); }
.fields .btn { margin-top: 13px; }
.check { display: flex; align-items: center; gap: 6px; }
.check input { accent-color: var(--accent); width: 17px; height: 17px; }
.auth-alt { margin-top: 22px; font-size: 14px; }
.auth-alt a { color: var(--accent); font-weight: 650; }
.notice { padding: 12px 16px; background: #dbeafe; margin-top: 20px; border-radius: 7px; }
.page-head { padding: clamp(32px,5vw,68px) 0 28px; overflow-wrap: anywhere; }
.page-head h1 { font-size: clamp(37px,4.7vw,60px); }
.page-head p { margin-top: 10px; font-size: 18px; }
.dashboard-grid { display: grid; grid-template-columns: 1.45fr 1fr; gap: 20px; }
.workspace-card,.info-card,.users-card { padding: clamp(22px,3.1vw,38px); }
.workspace-card { background: #1e293b; color: white; border-radius: 14px; }
.workspace-mark { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; color: var(--accent-light); background: #334155; font-size: 27px; margin-bottom: 25px; }
.workspace-card h2,.info-card h2,.users-card h2 { font-size: 25px; letter-spacing: -.045em; }
.workspace-card p { color: #e2e8f0; line-height: 1.6; max-width: 44ch; margin: 10px 0 25px; }
.info-card dl { margin: 20px 0; }
.info-card dt { font-size: 13px; color: var(--muted); }
.info-card dd { font-weight: 600; margin: 3px 0 14px; overflow-wrap: anywhere; }
.stats { display: flex; gap: 14px; margin-bottom: 20px; }
.stats > div { padding: 18px 24px; min-width: 160px; }
.stats span { color: var(--muted); font-size: 14px; }
.stats strong { display: block; font-size: 32px; margin-top: 8px; }
.table-wrap { overflow-x: auto; margin-top: 20px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
td,th { padding: 13px 10px; text-align: left; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
th { font-size: 13px; color: var(--muted); background: var(--paper); }
.role { display: inline-block; padding: 4px 8px; background: #f1f5f9; border-radius: 5px; }
.admin-role { color: #1e40af; background: #dbeafe; }
.pagination { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 20px; }
@media (max-width: 800px) {
    .shell { width: calc(100% - 40px); }
    .hero { gap: 24px; }
    .sample { min-height: auto; padding: 17px 15px 26px; }
    .sample-sheet { width: 94%; }
    .dashboard-grid { grid-template-columns: 1.1fr 1fr; }
}
@media (max-width: 650px) {
    .shell { width: calc(100% - 32px); }
    .nav { min-height: 66px; flex-wrap: wrap; padding: 12px 0; gap: 8px; }
    .nav-actions { gap: 10px; }
    .nav-actions .btn,.nav-actions .nav-link { font-size: 14px; }
    .hero,.features,.dashboard-grid { grid-template-columns: 1fr; }
    .hero { padding: 36px 0; gap: 30px; }
    .intro p { font-size: 16px; margin: 16px 0 20px; }
    .sample-sheet { max-width: 340px; }
    .features { gap: 20px; }
    .features article { display: grid; grid-template-columns: 37px 1fr; column-gap: 12px; }
    .features h2 { margin: 5px 0; }
    .features p { grid-column: 2; }
    .stats > div { min-width: 0; flex: 1; padding: 13px; }
    td,th { min-width: 120px; }
    .main { padding-bottom: 36px; }
}
.review-row { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; border-bottom: 1px solid var(--line); padding-bottom: .75rem; }
.review-row a { overflow-wrap: anywhere; }
.review-row small { white-space: nowrap; }
