@font-face {
  font-family: Inter;
  src: url('/inter.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: Archivo Black;
  src: url('/archivo-black.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
:root {
  --bg: #161714;
  --surface: #20211d;
  --secondary: #262722;
  --text: #f5f1e5;
  --muted: #b9b7a6;
  --line: #454640;
  --orange: #ffa269;
  --mint: #ccdbab;
  --danger: #ff9d8a;
  color-scheme: dark;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0;
  background: radial-gradient(ellipse at 83% -15%,#382920 0,transparent 43%),var(--bg);
  color: var(--text);
  font: 15px/1.55 Inter, sans-serif;
}
a { color: var(--orange); text-underline-offset: .22em; }
button, input, select { font: inherit; }
button { cursor: pointer; }
button:disabled { opacity: .55; cursor: default; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }
.skip { position: absolute; left: 12px; top: -100px; z-index: 10; background: var(--surface); padding: 8px; }
.skip:focus { top: 8px; }
.shell { width: min(1240px,calc(100% - 64px)); margin-inline: auto; }
.top { min-height: 68px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.top nav { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 14px; font-size: 13px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-size: 16px; font-weight: 760; text-decoration: none; }
.mark { height: 26px; width: 26px; flex: none; border: 1px solid #985a40; border-radius: 7px; position: relative; background: #3e2c23; }
.mark::before { content: ''; position: absolute; width: 8px; height: 8px; border-radius: 50%; background: var(--orange); inset: 8px; box-shadow: 0 0 12px #ed804475; }
.intro { display: grid; grid-template-columns: minmax(0,1fr) minmax(245px,306px); gap: 32px; align-items: end; margin: 45px 0 26px; }
h1 { margin: 0; font: 400 clamp(40px,5.4vw,81px)/.95 Archivo Black,Inter,sans-serif; letter-spacing: -.072em; }
h1 em { color: var(--orange); font-style: normal; }
.intro p { font-size: 16px; color: var(--muted); margin: 0 0 2px; max-width: 35ch; }
.metrics { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; margin-bottom: 12px; }
.metric { padding: 15px 16px; background: var(--surface); border: 1px solid var(--line); border-top-color: #a1694d; border-radius: 10px; min-width: 0; }
.metric span,.metric small { display: block; color: var(--muted); overflow-wrap: anywhere; }
.metric span { font-size: 12px; font-weight: 650; }
.metric small { font-size: 12px; margin-top: 4px; }
.metric strong { display: block; margin: 4px 0 1px; font-size: clamp(22px,3vw,38px); line-height: 1.11; letter-spacing: -.055em; color: var(--text); overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.workspace { display: grid; grid-template-columns: minmax(0,1.3fr) minmax(0,1fr); gap: 12px; align-items: start; }
.right { display: grid; gap: 12px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 17px; min-width: 0; }
.panel-head, .drive-head, .profile, .output { display: flex; justify-content: space-between; align-items: center; gap: 13px; }
.panel-head span,.hint,.notice,.schedule { font-size: 12px; color: var(--muted); }
h2,h3 { margin: 0; line-height: 1.2; letter-spacing: -.025em; overflow-wrap: anywhere; }
h2 { font-size: 18px; }
h3 { font-size: 15px; }
p { margin: 6px 0; }
.profile { padding: 13px 0; border-bottom: 1px solid var(--line); }
.profile p { margin: 4px 0 0; overflow-wrap: anywhere; }
.schedule { color: var(--mint); }
.timing { margin-top: 24px; margin-bottom: 10px; }
.load-list { display: grid; gap: 10px; padding: 5px 0 2px; }
.load { display: grid; grid-template-columns: 33px minmax(0,1fr) minmax(75px,max-content); align-items: center; gap: 11px; font-size: 13px; }
.load strong { text-align: right; font-size: 12px; font-variant-numeric: tabular-nums; }
progress { display: block; width: 100%; height: 9px; border: none; border-radius: 10px; appearance: none; background: #363730; overflow: hidden; accent-color: var(--orange); }
progress::-webkit-progress-bar { background: #363730; }
progress::-webkit-progress-value { background: var(--orange); border-radius: 10px; }
progress::-moz-progress-bar { background: var(--orange); border-radius: 10px; }
.drive { padding-top: 10px; margin-top: 9px; border-top: 1px solid var(--line); }
.usage { font-size: 12px; color: var(--muted); }
.usage strong { color: var(--text); font-size: 17px; }
.fit { color: var(--mint); font-size: 12px; flex: none; }
.over .fit { color: var(--danger); }
.drive progress { accent-color: var(--mint); }
.drive progress::-webkit-progress-value { background: var(--mint); }
.drive progress::-moz-progress-bar { background: var(--mint); }
.over progress::-webkit-progress-value { background: var(--danger); }
.over progress::-moz-progress-bar { background: var(--danger); }
label { display: grid; gap: 5px; min-width: 0; font-size: 12px; font-weight: 650; align-content: end; }
input:not([type=checkbox]),select { width: 100%; min-width: 0; padding: 7px 8px; min-height: 36px; color: var(--text); background: var(--bg); border: 1px solid var(--line); border-radius: 6px; font-size: 14px; }
fieldset { border: 0; padding: 0; margin: 12px 0; min-width: 0; }
legend { color: var(--muted); font-size: 12px; font-weight: 620; margin-bottom: 5px; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.drive-settings .fields { grid-template-columns: minmax(0,1.2fr) minmax(0,1fr) minmax(0,1fr); }
.settings > label { margin-top: 9px; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: end; }
.settings .actions { margin-top: 10px; justify-content: space-between; }
.primary,.quiet { padding: 8px 12px; border-radius: 7px; border: 1px solid transparent; font-size: 13px; font-weight: 710; min-height: 36px; line-height: 1.2; }
.primary { color: #21160e; background: var(--orange); }
.quiet { background: var(--secondary); color: var(--text); border-color: var(--line); }
.primary:hover { background: #ffb484; }
.quiet:hover { border-color: #858579; }
.danger,.error { color: var(--danger); }
.error,.notice { min-height: 1em; font-size: 12px; }
.notice { margin: 7px 0; }
.output { margin-bottom: 18px; }
.output p { color: var(--muted); font-size: 13px; }
footer { display: flex; flex-wrap: wrap; gap: 12px; padding: 15px 0 22px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }
dialog { color: var(--text); background: var(--surface); border: 1px solid var(--line); border-radius: 12px; width: min(490px,calc(100% - 24px)); max-height: calc(100dvh - 20px); padding: 18px; }
dialog::backdrop { background: #080906bc; }
dialog form > label,dialog form > .fields { margin-top: 10px; }
dialog .actions { justify-content: flex-end; }
.days { display: flex; flex-wrap: wrap; gap: 5px; }
.day,.check { display: inline-flex; align-items: center; gap: 5px; }
.day { padding: 5px; border: 1px solid var(--line); border-radius: 5px; }
input[type=checkbox] { accent-color: var(--orange); }
#print-sheet { display: none; }
.reading { width: min(780px,100%); padding: 50px 0; }
.reading h1 { margin: 0 0 18px; font-size: clamp(36px,6.2vw,76px); }
.reading p,.reading li { max-width: 70ch; color: var(--muted); }
.reading h2 { margin-top: 25px; }
.reading .lead { font-size: 17px; }
.reading table { width: 100%; text-align: left; border-collapse: collapse; margin: 12px 0; }
.reading td,.reading th { padding: 10px 5px; border-bottom: 1px solid var(--line); }
@media (max-width: 900px) {
  .shell { width: calc(100% - 34px); }
}
@media (max-width: 680px) {
  .intro,.workspace { grid-template-columns: 1fr; gap: 12px; }
  .intro { margin: 30px 0 16px; }
  .panel,.metric { padding: 11px; }
  .metrics { gap: 6px; }
  .metric span,.metric small { font-size: 10px; }
  .metric strong { font-size: clamp(17px,4.8vw,25px); }
  .top nav { gap: 5px; font-size: 11px; }
  .top nav a { flex-basis: 100%; text-align: right; }
  .top .quiet { min-height: 30px; font-size: 11px; }
  .panel-head span { text-align: right; }
  .output { align-items: start; flex-direction: column; }
}
@media print {
  body { background: #fff; color: #000; }
  body > :not(main),main > :not(#print-sheet) { display: none; }
  #print-sheet { display: block; }
  #print-sheet h1 { font: 700 23px Inter,sans-serif; margin: 10px 0; }
}
