:root{
  --background: #eef2f5;
  --foreground: #121a21;
  --card: #ffffff;
  --card-foreground: #121a21;
  --primary: #14507a;
  --primary-foreground: #ffffff;
  --secondary: #dce1e4;
  --secondary-foreground: #121a21;
  --muted: #e3e7ea;
  --muted-foreground: #55636f;
  --accent: #d4dfe6;
  --accent-foreground: #121a21;
  --destructive: #c0271c;
  --destructive-foreground: #ffffff;
  --border: #c3ced7;
  --input: #7c8893;
  --ring: #14507a;
  --warning: #fff4d6;
  --warning-foreground: #5c3d05;
  --warning-border: #b7791f;

--mark:#0f3d63;--tint:#e2e9ee;}
@media (prefers-color-scheme: dark){:root{
  --background: #0e151b;
  --foreground: #e8eef2;
  --card: #152029;
  --card-foreground: #e8eef2;
  --primary: #5aa0d0;
  --primary-foreground: #0b1218;
  --secondary: #1f262c;
  --secondary-foreground: #e8eef2;
  --muted: #192026;
  --muted-foreground: #93a4b0;
  --accent: #172631;
  --accent-foreground: #e8eef2;
  --destructive: #d36860;
  --destructive-foreground: #0e151b;
  --border: #2a3844;
  --input: #5f6e7a;
  --ring: #5aa0d0;
  --warning: #372d1c;
  --warning-foreground: #fbe9bd;
  --warning-border: #b7791f;

--mark:#8fc0e2;--tint:#1a2530;}}
*,*::before,*::after{box-sizing:border-box}html{color-scheme:light dark;-webkit-text-size-adjust:100%}
body{margin:0;background:var(--background);color:var(--foreground);font:17px/27px system-ui,-apple-system,"Segoe UI",sans-serif;-webkit-font-smoothing:antialiased}
.top,main,footer,body>header{width:min(100% - 36px,880px);margin:0 auto}
body>header{display:flex;align-items:center;min-height:64px;padding:8px 0;border-bottom:1px solid var(--border)}body>header>a{font-size:22px;font-weight:700;letter-spacing:-.02em;text-decoration:none;color:inherit}main h1+p,main form{margin-top:14px}main button{min-height:48px;padding:12px 22px;border:1px solid var(--primary);border-radius:2px;background:var(--primary);color:var(--primary-foreground);font:inherit;font-size:14px;font-weight:650;letter-spacing:.04em;text-transform:uppercase}
.top{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px 16px;padding:16px 0;border-bottom:1px solid var(--border)}
.mark{font-size:22px;font-weight:700;letter-spacing:-.02em;text-decoration:none;color:inherit}
nav a,footer a{display:inline-flex;align-items:center;min-height:44px;margin-right:14px;color:var(--primary);font-size:14px;font-weight:650;letter-spacing:.04em;text-transform:uppercase}
main{padding:28px 0 48px}footer{padding:20px 0 40px;border-top:1px solid var(--border)}
h1{margin:0;font-size:33px;line-height:38px;letter-spacing:-.022em;text-wrap:balance}h2{margin:28px 0 0;font-size:14px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--muted-foreground)}
p{margin:0}.lede{max-width:36em;margin-top:14px;color:var(--muted-foreground);font-size:19px;line-height:28px}
.note{max-width:36em;margin-top:16px;color:var(--muted-foreground);font-size:16px;line-height:24px}.actions{display:flex;flex-wrap:wrap;align-items:center;gap:12px 20px;margin-top:24px}
[data-slot="button"]{display:inline-flex;align-items:center;min-height:48px;padding:12px 22px;border:1px solid var(--primary);border-radius:2px;background:var(--primary);color:var(--primary-foreground);font-size:14px;font-weight:650;letter-spacing:.04em;text-transform:uppercase;text-decoration:none}
[data-slot="button"]:active{background:color-mix(in oklch,var(--primary) 90%,var(--primary-foreground))}.quiet{color:var(--primary);font-size:14px;font-weight:650;letter-spacing:.04em;text-transform:uppercase}
:focus-visible{outline:2px solid var(--ring);outline-offset:2px}
ul,ol,dl,dd{margin:0;padding:0}ul,ol{list-style:none}
.doors{display:grid;margin-top:24px;border-top:1px solid var(--border)}.door{display:grid;gap:4px;padding:16px 0;border-bottom:1px solid var(--border);color:inherit;text-decoration:none}.door-name{color:var(--primary);font-weight:650}.door span:last-child{color:var(--muted-foreground);font-size:16px;line-height:24px}
.case{margin-top:24px;padding:18px 20px 20px;border:1px solid var(--border);background:var(--card)}.case-rows{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 20px}.case-rows div{display:grid;gap:2px}.case-rows dt{font-size:11px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--muted-foreground)}.case-rows dd{font-size:16px;line-height:22px}
.terms{margin-top:22px;grid-template-columns:1fr}.terms div{padding:10px 0;border-top:1px solid var(--border)}.terms dt{color:var(--mark)}
.status{display:inline-flex;align-items:center;gap:7px;font-size:12px;font-weight:700;letter-spacing:.05em;text-transform:uppercase}.status::before{content:"";width:9px;height:9px;border:1.5px solid var(--mark);border-radius:50%}.status-late::before,.status-held::before{background:var(--mark)}.status-closed::before{border-color:var(--muted-foreground);background:var(--muted-foreground)}.status-sent::before{border-style:dashed}
.log{display:grid;margin-top:10px}.log li{display:grid;grid-template-columns:3.5em minmax(0,1fr);gap:2px 12px;padding:10px 0;border-top:1px solid var(--border);font-size:16px;line-height:23px}.log-at{font-variant-numeric:tabular-nums;color:var(--muted-foreground)}.log-owner{grid-column:2;font-size:11px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--mark)}.log li span:last-child{grid-column:2}
.moves{display:grid;gap:10px;margin-top:12px}.move{display:flex;align-items:center;min-height:52px;padding:12px 18px;border:1px solid var(--foreground);border-radius:2px;color:var(--foreground);font-weight:650;text-decoration:none;background:var(--card)}.move:active{background:var(--secondary)}
.lines{display:grid;margin-top:10px}.lines li{position:relative;padding:8px 0 8px 20px;border-top:1px solid var(--border);font-size:16px;line-height:23px}.lines li::before{content:"";position:absolute;top:15px;left:2px;width:7px;height:7px;border:1px solid var(--mark)}
.print-note{margin-top:20px;font-size:16px;line-height:28px}.log-sheet{width:100%;margin-top:16px;border-collapse:collapse}.log-sheet th,.log-sheet td{height:42px;padding:6px 8px;border:1px solid var(--border);text-align:left;vertical-align:top;font-size:14px}.log-sheet th{font-size:11px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--muted-foreground)}
@media (min-width:46.5rem){.case-rows{grid-template-columns:repeat(4,minmax(0,1fr))}.terms{grid-template-columns:1fr}.moves{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media print{.top nav,footer,.note,.actions{display:none}.top,main{width:100%}body{background:#fff;color:#000}.log-sheet th,.log-sheet td{border-color:#000;height:38px}.print-note{color:#000}}
