/* В помощь студенту — страница входа и кабинет. Цвета и шрифты — только здесь. */
:root {
  --desk: #e3e7ed;        /* стол, на котором лежат листы */
  --paper: #ffffff;
  --text: #1b2130;        /* графит */
  --muted: #576074;
  --ink: #2443b8;         /* синяя шариковая ручка: ссылки, фокус, акценты */
  --rule: #c5cdd9;
  --vk: #0077ff;
  --vk-hover: #0066dd;
  --sheet-text: #1b2130;
  --sheet-faint: #8a93a3;
  --warn: #a3361f;
  --ok: #1b7a52;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: "Times New Roman", Times, "Liberation Serif", "PT Serif", "Noto Serif", serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --desk: #13171e;
    --paper: #e9ebef;
    --text: #e4e7ed;
    --muted: #9ba4b4;
    --ink: #94a9ff;
    --rule: #2c3441;
    --warn: #ff9a85;
    --ok: #6fd3a5;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background: var(--desk); color: var(--text);
  font: 17px/1.5 var(--sans);
}
a { color: var(--ink); text-underline-offset: 2px; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; border-radius: 3px; }
[hidden] { display: none !important; }
.checking main, .checking .foot { visibility: hidden; }
button { font: inherit; cursor: pointer; }
button:disabled { cursor: not-allowed; }

.top, main, .foot, .notice { width: 100%; max-width: 72rem; margin: 0 auto; padding-left: 16px; padding-right: 16px; }

/* ---------------------------------------------------------------- шапка */
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 18px; padding-bottom: 6px; }
.brand { color: var(--text); text-decoration: none; white-space: nowrap; font-weight: 700; letter-spacing: -0.01em; font-size: 1.05rem; }
.who { display: flex; align-items: center; gap: 14px; min-width: 0; }
.who-name { font-weight: 600; max-width: 42vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.quiet { background: none; border: 0; padding: 6px 2px; color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }

.notice { margin-top: 10px; padding: 10px 14px; border-left: 4px solid var(--warn); background: var(--paper); color: #1b2130; border-radius: 0 6px 6px 0; }
.notice.good { border-left-color: var(--ok); }

/* ---------------------------------------------------------------- первый экран */
.hero { display: grid; gap: 22px; padding-top: 18px; padding-bottom: 36px; grid-template-areas: "pitch" "desk" "signin"; }
.pitch { grid-area: pitch; }
.desk { grid-area: desk; }
.signin { grid-area: signin; }
h1 { font-size: clamp(1.9rem, 1.2rem + 3vw, 3.1rem); line-height: 1.08; letter-spacing: -0.025em; margin: 0 0 14px; font-weight: 800; max-width: 17ch; }
.lead { margin: 0 0 26px; color: var(--muted); max-width: 36rem; }
.hint { margin: 8px 0 0; font-size: 0.86rem; color: var(--muted); }

.topic { max-width: 32rem; }
.topic > label { display: block; font-weight: 600; margin-bottom: 4px; }
.topic input[type=text] {
  width: 100%; font: 1.08rem/1.4 var(--serif); color: var(--text);
  background: transparent; border: 0; border-bottom: 2px solid var(--text); border-radius: 0; padding: 8px 2px;
}
.topic input[type=text]::placeholder { color: var(--muted); opacity: 0.8; }
.topic input[type=text]:focus-visible { outline: none; border-bottom-color: var(--ink); box-shadow: 0 2px 0 var(--ink); }
.kind { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.kind label {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px 7px 10px;
  border: 1px solid var(--rule); border-radius: 999px; cursor: pointer; font-size: 0.95rem; background: var(--paper); color: #1b2130;
}
.kind input { accent-color: var(--ink); margin: 0; }
.kind label:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }

.signin { max-width: 32rem; padding-top: 20px; border-top: 1px solid var(--rule); }
.agree { display: flex; gap: 10px; align-items: flex-start; font-size: 0.92rem; line-height: 1.4; margin-bottom: 12px; cursor: pointer; }
.agree input { width: 20px; height: 20px; flex: none; margin: 1px 0 0; accent-color: var(--ink); }
.vk {
  width: 100%; max-width: 360px; min-height: 50px; margin-top: 6px; border: 0; border-radius: 10px;
  background: var(--vk); color: #fff; font-weight: 600; font-size: 1rem;
  transition: background-color .15s, opacity .15s;
}
.vk:hover:not(:disabled) { background: var(--vk-hover); }
.vk:disabled { opacity: 0.45; }

/* ---------------------------------------------------------------- листы */
.desk { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 22px; overflow: clip; padding: 8px 0 4px; }
.desk figcaption { font-size: 0.84rem; color: var(--muted); text-align: center; max-width: 22rem; }
.stack { position: relative; width: min(62vw, 340px); container-type: inline-size; margin: 6px 0 30px; }
.sheet {
  aspect-ratio: 210 / 297; background: #fff; color: var(--sheet-text);
  font-family: var(--serif); font-size: 3.15cqw; line-height: 1.35;
  /* поля по ГОСТ: слева 30 мм, справа 15, сверху и снизу 20 — в долях ширины листа */
  padding: 9.5cqw 7.2cqw 9.5cqw 14.3cqw;
  box-shadow: 0 1px 2px rgba(20, 30, 50, .18), 0 10px 28px -12px rgba(20, 30, 50, .35);
}
.sheet p { margin: 0; }
.back { position: absolute; inset: 0; background: #f7f8fa; }
.b1 { transform: rotate(-6deg) translate(-17%, 3%); }
.b2 { transform: rotate(6.5deg) translate(17%, 5%); }
.front { position: relative; display: flex; flex-direction: column; }
@media (prefers-reduced-motion: no-preference) {
  .b1 { animation: fan1 .8s .25s cubic-bezier(.2, .7, .2, 1) both; }
  .b2 { animation: fan2 .8s .25s cubic-bezier(.2, .7, .2, 1) both; }
}
@keyframes fan1 { from { transform: none; } }
@keyframes fan2 { from { transform: none; } }

.ministry { text-align: center; }
.blank { display: inline-block; border-bottom: 1px solid var(--sheet-text); height: 1.05em; vertical-align: -0.2em; }
p.blank { display: block; margin: 0.9em auto 0; }
.wide { width: 92%; }
.mid { width: 100%; }
.short { width: 34%; }
.tiny { width: 1.6em; }
.under { text-align: center; font-size: 0.72em; color: var(--sheet-faint); }
.dept { text-align: center; margin-top: 0.8em !important; }
.doc-kind { margin-top: auto !important; text-align: center; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; font-size: 1.15em; }
.theme { text-align: center; margin-top: 0.5em !important; font-size: 1.08em; }
#sheetTopic { font-weight: 700; overflow-wrap: anywhere; }
#sheetTopic.empty { color: var(--sheet-faint); font-weight: 400; }
.sign { margin: auto 0 0 45%; display: grid; gap: 0.35em; }
.sign p.blank { margin: 0; }
.city { margin-top: auto !important; text-align: center; }

.toc-h { text-align: center; font-weight: 700; text-transform: uppercase; margin-bottom: 1em !important; }
.toc { display: flex; gap: 0.4em; margin-bottom: 0.45em !important; }
.toc span:first-child { flex: 1; overflow: hidden; white-space: nowrap; }
.toc span:first-child::after { content: " ........................................................................................"; color: var(--sheet-faint); }

/* видна только правая кромка листа — диаграмма и подпись стоят там */
.chart { height: 30%; margin: 38% 0 0 64%; display: flex; align-items: flex-end; gap: 8%; padding: 0 4%; border-left: 1px solid #8a93a3; border-bottom: 1px solid #8a93a3; }
.chart i { flex: 1; background: #2a78d6; }
.chart .h1 { height: 42%; } .chart .h2 { height: 58%; } .chart .h3 { height: 71%; }
.chart .h4 { height: 66%; background: #eb6834; } .chart .h5 { height: 83%; }
.cap { margin: 0.8em 0 0 64% !important; font-size: 0.8em; }

/* ---------------------------------------------------------------- этапы */
.steps { padding-bottom: 48px; }
h2 { font-size: 1.35rem; letter-spacing: -0.01em; margin: 0 0 16px; }
.steps ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; counter-reset: step; }
.steps li { counter-increment: step; position: relative; padding: 16px 0 16px 52px; border-top: 1px solid var(--rule); color: var(--muted); }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: 10px;
  font: 700 2rem/1 var(--serif); color: var(--ink);
}
.steps b { color: var(--text); }

/* ---------------------------------------------------------------- кабинет */
.cabinet { display: grid; gap: 28px; padding-top: 22px; padding-bottom: 48px; }
.works-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.works-head h1 { margin: 0; font-size: clamp(1.7rem, 1.3rem + 1.6vw, 2.3rem); }
.primary { border: 0; border-radius: 10px; padding: 11px 18px; background: var(--ink); color: #fff; font-weight: 600; }
@media (prefers-color-scheme: dark) { .primary { color: #10162a; } }
.primary:disabled { opacity: 0.45; }
.draft { margin: 14px 0 0; padding: 10px 14px; background: var(--paper); color: #1b2130; border-radius: 8px; font-size: 0.95rem; }
.draft q { font-family: var(--serif); font-weight: 700; }
.list { list-style: none; margin: 18px 0 0; padding: 0; }
.list li { display: grid; gap: 2px; padding: 14px 0; border-top: 1px solid var(--rule); }
.list li:last-child { border-bottom: 1px solid var(--rule); }
.job-topic { font-family: var(--serif); font-size: 1.12rem; font-weight: 700; overflow-wrap: anywhere; }
.job-meta { font-size: 0.88rem; color: var(--muted); }
.job-status { font-size: 0.92rem; font-weight: 600; }
.job-status.wait { color: var(--ink); }
.job-status.done { color: var(--ok); }
.job-status.bad { color: var(--warn); }
.empty-state { margin: 18px 0 0; padding: 22px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); color: var(--muted); }
.balance { align-self: start; padding: 18px; background: var(--paper); color: #1b2130; border-radius: 10px; }
.balance h2 { font-size: 1.1rem; margin-bottom: 8px; }
.balance p { margin: 0; }
.balance ul { margin: 10px 0 0; padding-left: 1.1em; }
.balance li { margin: 3px 0; }

/* ---------------------------------------------------------------- ожидание */
.busy {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%);
  display: flex; align-items: center; gap: 12px; padding: 12px 18px; border-radius: 999px;
  background: var(--text); color: var(--desk); font-weight: 600; box-shadow: 0 8px 24px -8px rgba(0, 0, 0, .4);
  max-width: calc(100% - 32px);
}
.pen { width: 26px; height: 3px; border-radius: 2px; background: currentColor; transform-origin: left center; }
@media (prefers-reduced-motion: no-preference) { .pen { animation: write 1.1s ease-in-out infinite; } }
@keyframes write { 0% { transform: scaleX(.15); } 60% { transform: scaleX(1); } 100% { transform: scaleX(.15); opacity: .4; } }

/* ---------------------------------------------------------------- подвал */
.foot { margin-top: auto; padding-top: 18px; padding-bottom: 26px; border-top: 1px solid var(--rule); font-size: 0.84rem; color: var(--muted); }
.foot p { margin: 0 0 6px; max-width: 46rem; }
.legal { display: flex; flex-wrap: wrap; gap: 6px 18px; }

/* ---------------------------------------------------------------- шире телефона */
@media (min-width: 640px) {
  .steps ol { grid-template-columns: 1fr 1fr; column-gap: 32px; }
}
@media (min-width: 900px) {
  .hero { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); grid-template-areas: "pitch desk" "signin desk";
          align-items: start; column-gap: 48px; row-gap: 26px; padding-top: 34px; padding-bottom: 56px; }
  .desk { align-self: center; padding: 16px 0; }
  .stack { width: 340px; margin-bottom: 44px; }
  .steps ol { grid-template-columns: repeat(4, 1fr); column-gap: 28px; }
  .steps li { padding: 52px 0 0; }
  .steps li::before { top: 12px; }
  .cabinet { grid-template-columns: minmax(0, 1fr) 18rem; gap: 48px; padding-top: 30px; }
}

/* ---------------------------------------------------------------- документы (соглашение, согласие, политика) */
.doc { padding-top: 18px; padding-bottom: 40px; }
.doc > * { max-width: 46rem; }
.doc h1 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.2rem); max-width: none; margin-bottom: 6px; }
.doc-sub { margin: 0 0 22px; color: var(--muted); font-size: 0.92rem; }
.doc h2 { font-size: 1.12rem; margin: 26px 0 8px; }
.doc p, .doc li { line-height: 1.6; }
.doc p { margin: 0 0 10px; }
.doc ul { margin: 0 0 10px; padding-left: 1.3em; }
.doc li { margin: 0 0 6px; }

/* ---------------------------------------------------------------- общее для кабинета, анкеты и карточки */
.backlink { display: inline-block; margin: 14px 0 6px; color: var(--muted); text-decoration: none; font-size: 0.95rem; }
.backlink:hover { color: var(--ink); text-decoration: underline; }
a.primary { display: inline-block; text-decoration: none; text-align: center; }
.ghost { border: 1px solid var(--ink); border-radius: 10px; padding: 10px 16px; background: transparent; color: var(--ink); font-weight: 600; }
.ghost:disabled { opacity: 0.45; }
.grow { flex: 1; }
.lead.bad, .bad { color: var(--warn); }
.job-link { display: grid; gap: 2px; color: inherit; text-decoration: none; padding: 2px 0; }
.job-link:hover .job-topic { color: var(--ink); }
.job-link:focus-visible { outline-offset: 4px; }
.list li { padding: 12px 0; }

.field { display: grid; gap: 6px; margin: 0 0 16px; }
.field-label { font-weight: 600; font-size: 0.95rem; }
.field input[type=text], .field input[type=number], .field select, .field textarea,
.figs input[type=text] {
  width: 100%; font: inherit; color: #1b2130; background: var(--paper); border: 1px solid var(--rule);
  border-radius: 8px; padding: 10px 12px;
}
.field textarea { resize: vertical; min-height: 6em; line-height: 1.45; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible, .figs input:focus-visible {
  outline: 2px solid var(--ink); outline-offset: 1px; border-color: var(--ink);
}
.file-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.file-name { font-size: 0.92rem; color: var(--muted); overflow-wrap: anywhere; }
.grid2 { display: grid; gap: 0 16px; }

/* ---------------------------------------------------------------- анкета */
.quiz { padding-bottom: 40px; }
.quiz > * { max-width: 40rem; }
.quiz-head { margin: 6px 0 18px; }
.quiz-count { margin: 0 0 8px; font-size: 0.9rem; color: var(--muted); }
.quiz-bar { height: 4px; background: var(--rule); border-radius: 2px; overflow: hidden; }
.quiz-bar i { display: block; height: 100%; background: var(--ink); border-radius: 2px; transition: width .25s ease; }
.step-title { font-size: clamp(1.6rem, 1.3rem + 1.4vw, 2.2rem); margin: 0 0 16px; max-width: none; }
.quiz .lead { margin: 0 0 18px; }
.choices { border: 0; padding: 0; margin: 0 0 18px; display: grid; gap: 10px; }
.choices legend, .checks legend { font-weight: 600; margin-bottom: 8px; padding: 0; }
.choice { display: flex; gap: 12px; align-items: flex-start; padding: 14px; background: var(--paper); color: #1b2130;
  border: 1px solid var(--rule); border-radius: 10px; cursor: pointer; }
.choice input { margin: 3px 0 0; accent-color: var(--ink); width: 18px; height: 18px; flex: none; }
.choice:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.choice-body { display: grid; gap: 2px; }
.choice-body span { font-size: 0.9rem; color: #576074; }
.checks { border: 0; padding: 0; margin: 0 0 18px; display: flex; flex-wrap: wrap; gap: 10px 24px; }
.checks legend { width: 100%; }
.checks label { display: inline-flex; gap: 8px; align-items: center; cursor: pointer; }
.checks input { width: 20px; height: 20px; accent-color: var(--ink); }
.aside-note { padding: 14px; border-left: 3px solid var(--ink); background: var(--paper); color: #1b2130; border-radius: 0 8px 8px 0; margin: 0 0 18px; }
.aside-note p { margin: 0 0 10px; }
.figs { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.figs li { display: grid; gap: 8px; padding: 12px; border: 1px solid var(--rule); border-radius: 10px; }
.fig-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.summary { margin: 0 0 14px; display: grid; gap: 0; }
.summary > div { display: grid; gap: 2px; padding: 10px 0; border-top: 1px solid var(--rule); }
.summary dt { color: var(--muted); font-size: 0.92rem; }
.summary dd { margin: 0; overflow-wrap: anywhere; }
.summary .quiet { font-size: 0.88rem; padding: 0 2px; }
.step-error { margin: 6px 0 0; color: var(--warn); font-weight: 600; }
.quiz-nav { display: flex; align-items: center; gap: 10px; margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--rule); }
.quiz-nav .primary { min-width: 9rem; }

/* ---------------------------------------------------------------- карточка работы */
.job { padding-bottom: 48px; }
.job > div { max-width: 46rem; }
.job-head { margin: 4px 0 20px; }
.job-h1 { font-family: var(--serif); font-weight: 700; letter-spacing: 0; font-size: clamp(1.5rem, 1.2rem + 1.5vw, 2.1rem); line-height: 1.2; max-width: none; margin: 0 0 6px; overflow-wrap: anywhere; }
.job-head .job-meta { margin: 0; }
.job-main h2 { font-size: 1.35rem; margin: 0 0 8px; }
.job-main .lead { margin: 0 0 16px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin: 18px 0; }
.actions .hint { width: 100%; margin: 0; }
.actions .agree { width: 100%; margin: 0; }

.progress { display: grid; grid-template-columns: 76px 1fr; gap: 18px; align-items: start; padding: 18px; background: var(--paper); color: #1b2130; border-radius: 12px; }
.progress .hint { color: #576074; }
.progress-stage { margin: 0; font-size: 1.2rem; font-weight: 700; }
.progress-count { margin: 2px 0 0; color: #576074; min-height: 1.2em; }
.progress-bar { height: 6px; margin: 12px 0 10px; background: #e3e7ed; border-radius: 3px; overflow: hidden; }
.progress-bar i { display: block; height: 100%; background: #2443b8; border-radius: 3px; transition: width .6s ease; }
.progress-live { margin: 0 0 6px; display: flex; gap: 8px; align-items: flex-start; font-size: 0.95rem; }
.dot { flex: none; width: 10px; height: 10px; margin-top: 6px; border-radius: 50%; background: #8a93a3; }
.dot.ok { background: #1b7a52; }
.dot.wait { background: #c58a00; }
.dot.bad { background: #a3361f; }
/* лист, на котором пишется текст: три строки синей ручкой */
.writing { width: 76px; aspect-ratio: 210 / 297; background: #fff; border: 1px solid #d5dbe4; border-radius: 3px; padding: 18px 9px 0 13px; display: grid; align-content: start; gap: 8px; box-shadow: 0 6px 16px -10px rgba(20,30,50,.5); }
.writing i { display: block; height: 2px; background: #2443b8; border-radius: 1px; width: 70%; }
.writing i:nth-child(2) { width: 90%; } .writing i:nth-child(3) { width: 55%; }
@media (prefers-reduced-motion: no-preference) {
  .writing i { width: 0; animation: ink 4.2s ease-in-out infinite; }
  .writing i:nth-child(1) { --w: 90%; animation-delay: 0s; }
  .writing i:nth-child(2) { --w: 100%; animation-delay: 1.1s; }
  .writing i:nth-child(3) { --w: 60%; animation-delay: 2.2s; }
  .dot.ok { animation: pulse 2s ease-in-out infinite; }
}
@keyframes ink { 0% { width: 0; } 25% { width: var(--w); } 85% { width: var(--w); opacity: 1; } 100% { width: var(--w); opacity: 0; } }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(27,122,82,.45); } 50% { box-shadow: 0 0 0 6px rgba(27,122,82,0); } }

.plan-sheet { background: #fff; color: #1b2130; font-family: var(--serif); line-height: 1.45; padding: 22px 18px 24px 26px; border-radius: 4px;
  box-shadow: 0 1px 2px rgba(20,30,50,.15), 0 12px 28px -16px rgba(20,30,50,.4); }
.plan-sheet p { margin: 0 0 8px; }
.plan-title { font-size: 1.2rem; text-align: center; margin: 0 0 14px; }
.tasks { margin: 0 0 10px; padding-left: 1.4em; }
.toc-title { text-align: center; text-transform: uppercase; font-size: 1rem; letter-spacing: 0.04em; margin: 18px 0 8px; }
.toc-list { list-style: none; margin: 0; padding: 0; }
.toc-list > li { margin: 0 0 8px; }
.toc-ch { font-weight: 700; margin: 0 0 4px !important; }
.toc-list ul { list-style: none; margin: 0; padding: 0 0 0 1.2em; }
.toc-list ul li { margin: 0 0 3px; }
.toc-mark { color: #2443b8; font-family: var(--sans); font-size: 0.82rem; }
.pay { margin: 0 0 16px; padding: 14px; border-left: 4px solid var(--ink); background: var(--paper); color: #1b2130; border-radius: 0 8px 8px 0; }
.pay p { margin: 0 0 6px; }
details.remarks, details.redo, details.title-box { margin: 18px 0 0; padding: 14px 0 0; border-top: 1px solid var(--rule); }
details > summary { cursor: pointer; font-weight: 600; }
details.remarks textarea { width: 100%; margin: 10px 0; font: inherit; padding: 10px 12px; border: 1px solid var(--rule); border-radius: 8px; background: var(--paper); color: #1b2130; }
details.title-box .grid2 { margin-top: 12px; }

.flags { margin: 22px 0 0; }
.flags h3 { margin: 0 0 4px; font-size: 1.1rem; }
.flags details { padding: 10px 0; border-top: 1px solid var(--rule); }
.flags ul { margin: 8px 0 0; padding-left: 1.1em; }
.flags li { margin: 0 0 6px; }
.tag { display: inline-block; font-size: 0.74rem; font-weight: 700; padding: 1px 7px; margin-right: 6px; border-radius: 999px; background: var(--rule); color: var(--text); vertical-align: 1px; }
.tag.data, .tag.gap { background: #f6e3c2; color: #6b4300; }
.tag.check, .tag.source { background: #dfe6fb; color: #1d3592; }
.tag.removed { background: #f4dcd6; color: #7d2a17; }

.filebtn { position: relative; display: inline-block; cursor: pointer; }
.filebtn:focus-within { outline: 3px solid var(--ink); outline-offset: 2px; }
.file-input { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }

@media (min-width: 640px) {
  .grid2 { grid-template-columns: 1fr 1fr; }
  .summary > div { grid-template-columns: 10rem 1fr; gap: 12px; }
}

@media print {
  body { background: #fff; }
  .top, .backlink, .job-head, .job-main > :not(.plan-sheet), .foot, .title-box, .notice, .busy { display: none !important; }
  .job-main > div > :not(.plan-sheet) { display: none !important; }
  .plan-sheet { box-shadow: none; padding: 0; }
}
