:root {
  --ink: #1d1f24;
  --ink-2: #3b3f47;
  --muted: #5f6672;
  --faint: #8a909b;
  --paper: #f3f4f6;
  --surface: #ffffff;
  --line: #dcdfe5;
  --line-2: #eceef2;
  --red: #cc0000;
  --red-dark: #a30000;
  --red-tint: #fdeaea;
  --green: #00a35c;
  --green-tint: #e2f6ec;
  --amber: #b26a00;
  --amber-tint: #fff1d9;
  --focus: #1f6feb;
  --radius: 8px;
  --side: 248px;
  --font: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.45;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { margin: 0; font-stretch: 112%; letter-spacing: -0.01em; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--focus); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.spacer { flex: 1; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- Buttons and inputs ---------- */
.btn {
  text-decoration: none;
  display: inline-flex; align-items: center; gap: 6px;
  height: 34px; padding: 0 14px;
  border: 1px solid var(--line); border-radius: 6px;
  background: var(--surface); color: var(--ink);
  font-weight: 600; cursor: pointer; white-space: nowrap;
}
.btn:hover { background: var(--line-2); }
.btn svg { width: 16px; height: 16px; }
.btn.primary { background: var(--red); border-color: var(--red); color: #fff; }
.btn.primary:hover { background: var(--red-dark); }
.btn.success { background: var(--green); border-color: var(--green); color: #fff; }
.btn.success:hover { filter: brightness(0.92); }
.btn.ghost { background: transparent; }
.btn.danger { color: var(--red); }
.btn.sm { height: 28px; padding: 0 10px; font-size: 13px; }
.btn:disabled { opacity: .5; cursor: default; }
.icon-btn {
  display: inline-grid; place-items: center; width: 32px; height: 32px;
  border: 0; border-radius: 6px; background: transparent; cursor: pointer; color: var(--muted);
}
.icon-btn:hover { background: var(--line-2); color: var(--ink); }
.icon-btn svg { width: 18px; height: 18px; }

input[type=text], input[type=email], input[type=password], input[type=number], input[type=date], input[type=search], select, textarea {
  width: 100%; min-height: 36px; padding: 7px 10px;
  border: 1px solid var(--line); border-radius: 6px; background: var(--surface);
}
textarea { resize: vertical; min-height: 84px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--focus); box-shadow: 0 0 0 3px rgba(31,111,235,.15); }
.fld { display: flex; flex-direction: column; gap: 5px; }
.fld .lbl { font-weight: 600; font-size: 13px; }
.fld .req { color: var(--red); font-weight: 700; }
.fld .help { color: var(--muted); font-size: 12px; }
.money { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); }
.money span { padding: 0 0 0 10px; color: var(--muted); }
.money input { border: 0; box-shadow: none !important; }
.money:focus-within { border-color: var(--focus); box-shadow: 0 0 0 3px rgba(31,111,235,.15); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
.span2 { grid-column: 1 / -1; }
.check { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.check input { width: 16px; height: 16px; accent-color: var(--red); }

/* ---------- Pills and badges ---------- */
.ref { font-size: 12px; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
.pill {
  display: inline-flex; align-items: center; height: 22px; padding: 0 9px;
  border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap;
}
.urg-low { background: var(--line-2); color: var(--muted); }
.urg-normal { background: #e6eefc; color: #2a5bb8; }
.urg-high { background: var(--amber-tint); color: var(--amber); }
.urg-urgent { background: var(--red); color: #fff; }
.badge { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px; border-radius: 4px; font-size: 12px; font-weight: 600; }
.st-on_hold { background: var(--amber-tint); color: var(--amber); }
.st-rejected { background: var(--red-tint); color: var(--red); }
.type-gap { background: #efe6fb; color: #6b3fb5; }
.type-price { background: #e2f3f9; color: #006b99; }
.stage-cell {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 132px; height: 28px; padding: 0 10px; border-radius: 4px;
  background: var(--c); color: #fff; font-weight: 600; font-size: 12.5px; white-space: nowrap;
}
.avatar {
  display: inline-grid; place-items: center; flex: none;
  width: 26px; height: 26px; border-radius: 50%;
  font-size: 11px; font-weight: 700; color: #fff; background: var(--av, #8a909b);
}
.avatar.av-none { background: transparent; border: 1.5px dashed var(--faint); color: var(--faint); }
.avatar.lg { width: 32px; height: 32px; font-size: 12px; }
.who { display: inline-flex; align-items: center; gap: 8px; }

/* ---------- Login ---------- */
.login {
  min-height: 100%; display: grid; place-items: center; padding: 24px;
  background:
    linear-gradient(90deg, #579BFC 0 16.66%, #A25DDC 0 33.33%, #FDAB3D 0 50%, #E2445C 0 66.66%, #0086C0 0 83.33%, #00C875 0) top / 100% 6px no-repeat,
    var(--paper);
}
.login-card { width: 100%; max-width: 400px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 32px; }
.login-card h1 { font-size: 26px; font-stretch: 118%; margin: 18px 0 6px; }
.login-card p { margin: 0 0 22px; color: var(--muted); }
.login-card form { display: grid; gap: 14px; }
.login-card .btn { justify-content: center; height: 40px; }
.form-error { color: var(--red); font-weight: 600; min-height: 20px; margin: 0; }

/* ---------- Brand mark ---------- */
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark { width: 30px; height: 30px; border-radius: 6px; background: var(--red); display: grid; place-items: center; }
.brand-mark svg { width: 18px; height: 18px; color: #fff; }
.brand-name { font-weight: 700; font-stretch: 115%; font-size: 15px; line-height: 1.1; }
.brand-name small { display: block; font-weight: 500; font-stretch: 100%; color: var(--muted); font-size: 12px; }

/* ---------- Shell ---------- */
.shell { display: grid; grid-template-columns: var(--side) 1fr; min-height: 100vh; }
.side {
  position: sticky; top: 0; height: 100vh;
  display: flex; flex-direction: column; gap: 18px;
  padding: 18px 12px; background: var(--surface); border-right: 1px solid var(--line);
}
.side .brand { padding: 0 8px; }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav a {
  display: flex; align-items: center; gap: 10px; height: 38px; padding: 0 10px;
  border-radius: 6px; color: var(--ink-2); text-decoration: none; font-weight: 500;
}
.nav a svg { width: 18px; height: 18px; color: var(--muted); }
.nav a:hover { background: var(--line-2); }
.nav a.on { background: var(--red-tint); color: var(--red); font-weight: 600; }
.nav a.on svg { color: var(--red); }
.nav .count { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--red); color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; }
.nav-sep { height: 1px; background: var(--line-2); margin: 6px 4px; }
.me { margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 10px 8px 0; border-top: 1px solid var(--line-2); }
.me-name { font-weight: 600; line-height: 1.2; }
.me-role { color: var(--muted); font-size: 12px; }
.main { min-width: 0; display: flex; flex-direction: column; }
.topbar {
  position: sticky; top: 0; z-index: 5;
  display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 12px 28px;
  background: var(--paper);
}
.topbar h1 { font-size: 22px; font-stretch: 116%; }
.burger { display: none; }
.page { padding: 4px 28px 40px; min-width: 0; }
.scrim { display: none; }

/* ---------- Filter bar ---------- */
.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 16px; }
.search { position: relative; width: 260px; }
.search svg { position: absolute; left: 10px; top: 50%; width: 16px; height: 16px; transform: translateY(-50%); color: var(--faint); }
.search input { padding-left: 34px; background: var(--surface); }
.seg { display: inline-flex; padding: 3px; border-radius: 8px; background: var(--line-2); border: 1px solid var(--line); }
.seg button { height: 28px; padding: 0 12px; border: 0; border-radius: 6px; background: transparent; font-weight: 600; font-size: 13px; color: var(--muted); cursor: pointer; }
.seg button.on { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(29,31,36,.12); }
.filters select { width: auto; min-height: 34px; padding: 4px 10px; }

/* ---------- Board ---------- */
.board { display: flex; gap: 14px; align-items: flex-start; overflow-x: auto; padding-bottom: 12px; }
.col { flex: 0 0 286px; display: flex; flex-direction: column; background: var(--line-2); border-radius: 10px; max-height: calc(100vh - 170px); }
.col-head {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  height: 44px; padding: 0 14px; border-radius: 10px 10px 0 0;
  background: var(--c); color: #fff; font-weight: 700; font-stretch: 110%;
}
.col-head .count { min-width: 24px; height: 22px; padding: 0 7px; border-radius: 11px; background: rgba(255,255,255,.25); display: grid; place-items: center; font-size: 12px; }
.col-body { flex: 1; display: flex; flex-direction: column; gap: 8px; padding: 10px; overflow-y: auto; min-height: 120px; border-radius: 0 0 10px 10px; transition: background .12s; }
.col-body.over { background: color-mix(in srgb, var(--c) 14%, transparent); }
.col-empty { padding: 18px 8px; text-align: center; color: var(--faint); font-size: 13px; }
.card {
  display: flex; flex-direction: column; gap: 6px;
  padding: 11px 12px 10px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line);
  border-left: 4px solid var(--c); cursor: pointer;
}
.card:hover { border-color: #c5cad3; border-left-color: var(--c); }
.card[draggable=true] { cursor: grab; }
.card.dragging { opacity: .45; }
.card.is-rejected { opacity: .65; }
.card h3 { font-size: 14px; font-stretch: 100%; font-weight: 600; line-height: 1.3; letter-spacing: 0; overflow-wrap: anywhere; }
.card-row { display: flex; align-items: center; gap: 8px; }
.card-foot { display: flex; align-items: center; gap: 8px; margin-top: 2px; }
.icon-count { display: inline-flex; align-items: center; gap: 3px; color: var(--muted); font-size: 12px; }
.icon-count svg { width: 14px; height: 14px; }
.ap-dots { display: flex; gap: 6px; flex-wrap: wrap; }
.ap-dot { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 600; padding: 2px 7px; border-radius: 4px; background: var(--line-2); color: var(--muted); }
.ap-dot.approved { background: var(--green-tint); color: var(--green); }
.ap-dot.rejected { background: var(--red-tint); color: var(--red); }
.ap-dot svg { width: 12px; height: 12px; }

/* ---------- Table (grouped like Monday) ---------- */
.group { margin-bottom: 22px; }
.group-head { display: flex; align-items: center; gap: 10px; padding: 6px 0; border: 0; background: none; cursor: pointer; color: var(--c); }
.group-head svg { width: 16px; height: 16px; transition: transform .15s; }
.group.closed .group-head svg { transform: rotate(-90deg); }
.group.closed .tbl-wrap { display: none; }
.group-name { font-weight: 700; font-size: 16px; font-stretch: 112%; }
.group-head .muted { font-weight: 500; }
.tbl-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-left: 6px solid var(--c); border-radius: 6px; }
.tbl { width: 100%; border-collapse: collapse; min-width: 900px; }
.tbl th { text-align: left; font-size: 12.5px; font-weight: 600; color: var(--muted); padding: 9px 12px; border-bottom: 1px solid var(--line); background: #fafbfc; white-space: nowrap; }
.tbl td { padding: 8px 12px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.tbl tbody tr:last-child td { border-bottom: 0; }
.tbl tbody tr.click { cursor: pointer; }
.tbl tbody tr.click:hover td { background: #f7f8fa; }
.req-tbl { table-layout: fixed; }
.req-tbl th:nth-child(1) { width: 26%; }
.req-tbl th:nth-child(2) { width: 14%; }
.req-tbl th:nth-child(3), .req-tbl th:nth-child(4) { width: 15%; }
.req-tbl th:nth-child(5) { width: 156px; }
.req-tbl th:nth-child(6) { width: 92px; }
.req-tbl th:nth-child(7) { width: 84px; }
.req-tbl th:nth-child(8) { width: 84px; }
.req-tbl td { overflow: hidden; text-overflow: ellipsis; }
.tbl .title-cell { font-weight: 600; max-width: 320px; }
.num { font-variant-numeric: tabular-nums; text-align: right; }

/* ---------- Panels and lists ---------- */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 24px; }
.form-page { max-width: 860px; }
.form-intro { margin: 0 0 20px; color: var(--muted); max-width: 64ch; }
.form-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line-2); }
.section-title { font-size: 15px; font-stretch: 108%; margin: 26px 0 12px; }
.section-title:first-child { margin-top: 0; }
.empty { text-align: center; padding: 48px 20px; background: var(--surface); border: 1px dashed var(--line); border-radius: 10px; }
.empty h2 { font-size: 18px; margin-bottom: 6px; }
.empty p { margin: 0 0 16px; color: var(--muted); }

.mine-list { display: flex; flex-direction: column; gap: 10px; }
.mine-row {
  display: grid; grid-template-columns: minmax(220px, 1fr) minmax(420px, 1.6fr); gap: 20px; align-items: center;
  padding: 16px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; cursor: pointer;
}
.mine-row:hover { border-color: #c5cad3; }
.mine-row h3 { font-size: 15px; font-stretch: 100%; margin: 3px 0; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(var(--n), 1fr); }
.steps li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.steps li::before { content: ''; position: absolute; top: 7px; left: -50%; right: 50%; height: 3px; background: var(--line); }
.steps li:first-child::before { display: none; }
.steps li.done::before, .steps li.current::before { background: var(--c); }
.steps .dot { position: relative; z-index: 1; width: 17px; height: 17px; border-radius: 50%; background: var(--surface); border: 3px solid var(--line); }
.steps li.done .dot { background: var(--c); border-color: var(--c); }
.steps li.current .dot { border-color: var(--c); box-shadow: 0 0 0 4px color-mix(in srgb, var(--c) 22%, transparent); }
.steps .lbl { font-size: 11.5px; color: var(--faint); line-height: 1.2; }
.steps li.done .lbl { color: var(--muted); }
.steps li.current .lbl { color: var(--ink); font-weight: 700; }

/* ---------- Drawer ---------- */
.drawer-backdrop { position: fixed; inset: 0; z-index: 30; background: rgba(29,31,36,.32); animation: fade .15s ease-out; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 31;
  width: min(720px, 100vw); display: flex; flex-direction: column;
  background: var(--surface); box-shadow: -8px 0 30px rgba(29,31,36,.18);
  animation: slide .2s ease-out;
}
@keyframes slide { from { transform: translateX(40px); opacity: 0; } }
@keyframes fade { from { opacity: 0; } }
.dr-head { padding: 18px 24px 0; border-bottom: 1px solid var(--line); }
.dr-top { display: flex; align-items: center; gap: 8px; }
.dr-head h2 { font-size: 21px; margin: 10px 0 14px; overflow-wrap: anywhere; }
.dr-meta { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 14px; }
.dr-meta .lbl { display: block; font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.dr-meta select { min-height: 32px; padding: 4px 8px; }
.stage-select { color: #fff; font-weight: 700; border: 0; background-color: var(--c); }
.stage-select option { color: var(--ink); background: #fff; }
.dr-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.approvals { border: 1px solid var(--line); border-radius: 8px; margin-bottom: 14px; overflow: hidden; }
.approvals-head { display: flex; align-items: center; gap: 8px; padding: 10px 14px; background: #fafbfc; border-bottom: 1px solid var(--line); font-weight: 700; }
.ap-row { display: flex; align-items: flex-start; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--line-2); }
.ap-row:last-child { border-bottom: 0; }
.ap-ico { flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--line-2); color: var(--faint); }
.ap-ico svg { width: 13px; height: 13px; }
.ap-ico.approved { background: var(--green); color: #fff; }
.ap-ico.rejected { background: var(--red); color: #fff; }
.ap-mine { display: flex; gap: 8px; padding: 12px 14px; background: #fafbfc; border-top: 1px solid var(--line); }
.tabs { display: flex; gap: 4px; margin-bottom: -1px; overflow-x: auto; }
.tabs button { height: 40px; padding: 0 12px; border: 0; border-bottom: 3px solid transparent; background: none; font-weight: 600; color: var(--muted); cursor: pointer; white-space: nowrap; }
.tabs button.on { color: var(--ink); border-bottom-color: var(--red); }
.tabs button .n { color: var(--faint); font-weight: 500; margin-left: 4px; }
.dr-body { flex: 1; overflow-y: auto; padding: 20px 24px 32px; }
.kv { display: grid; grid-template-columns: 210px 1fr; gap: 0; margin: 0; }
.kv dt, .kv dd { padding: 9px 0; border-bottom: 1px solid var(--line-2); margin: 0; }
.kv dt { color: var(--muted); padding-right: 14px; }
.kv dd { overflow-wrap: anywhere; }
.kv dd.blank { color: var(--faint); }
.tag-needed { display: inline-block; margin-left: 6px; font-size: 11px; font-weight: 600; color: var(--amber); }
.body-actions { display: flex; justify-content: flex-end; gap: 8px; margin-bottom: 12px; }
.outcome { display: flex; gap: 22px; flex-wrap: wrap; padding: 14px 16px; margin-bottom: 18px; border-radius: 8px; background: var(--green-tint); }
.outcome .lbl { display: block; font-size: 12px; color: var(--muted); }
.outcome b { font-size: 16px; }
.link-note { padding: 10px 14px; margin-bottom: 16px; border-radius: 8px; background: var(--line-2); }

/* Updates */
.composer { display: flex; flex-direction: column; gap: 8px; margin-bottom: 22px; }
.composer textarea { min-height: 70px; }
.composer div { display: flex; justify-content: flex-end; }
.timeline { display: flex; flex-direction: column; gap: 12px; }
.t-comment { display: flex; gap: 10px; }
.t-bubble { flex: 1; padding: 10px 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.t-bubble header { display: flex; gap: 8px; align-items: baseline; margin-bottom: 4px; }
.t-bubble header b { font-weight: 600; }
.t-bubble p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.t-activity { display: flex; gap: 10px; align-items: center; padding-left: 8px; color: var(--muted); font-size: 12.5px; }
.t-activity::before { content: ''; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--line); margin-right: 8px; }

/* Files */
.files { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.file { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; }
.file img { width: 48px; height: 48px; object-fit: cover; border-radius: 6px; background: var(--line-2); }
.file .fi { width: 48px; height: 48px; border-radius: 6px; background: var(--line-2); display: grid; place-items: center; color: var(--muted); font-size: 11px; font-weight: 700; }
.file a { font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
.drop { display: block; padding: 18px; text-align: center; border: 1.5px dashed var(--line); border-radius: 8px; color: var(--muted); cursor: pointer; }
.drop:hover { border-color: var(--faint); }
.drop input { display: none; }

/* ---------- Modal ---------- */
.modal-backdrop { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 20px; background: rgba(29,31,36,.4); animation: fade .12s ease-out; }
.modal { width: 100%; max-width: 480px; max-height: calc(100vh - 40px); overflow-y: auto; background: var(--surface); border-radius: 12px; padding: 22px; }
.modal.wide { max-width: 620px; }
.modal h2 { font-size: 18px; margin-bottom: 6px; }
.modal > p { margin: 0 0 16px; color: var(--muted); }
.modal form { display: grid; gap: 14px; }
.modal .form-actions { margin-top: 6px; padding-top: 14px; }
.secret { padding: 12px; border-radius: 8px; background: var(--line-2); font-size: 18px; font-weight: 700; text-align: center; letter-spacing: .04em; user-select: all; }

/* ---------- Admin ---------- */
.admin-tabs { margin-bottom: 18px; }
.stage-row { display: grid; grid-template-columns: 44px 1fr auto; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line-2); }
.stage-row input[type=color] { width: 44px; height: 36px; padding: 2px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); }
.field-row td:first-child { font-weight: 600; }
.off { opacity: .5; }
.yes { color: var(--green); font-weight: 600; }

/* ---------- Toasts ---------- */
#toasts { position: fixed; left: 50%; bottom: 22px; z-index: 80; transform: translateX(-50%); display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast { padding: 10px 16px; border-radius: 8px; background: var(--ink); color: #fff; font-weight: 600; box-shadow: 0 6px 20px rgba(29,31,36,.25); animation: rise .18s ease-out; max-width: min(560px, 90vw); }
.toast.err { background: var(--red); }
@keyframes rise { from { transform: translateY(8px); opacity: 0; } }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: fixed; left: 0; z-index: 40; width: var(--side); transform: translateX(-100%); transition: transform .2s; }
  .shell.nav-open .side { transform: none; }
  .shell.nav-open .scrim { display: block; position: fixed; inset: 0; z-index: 39; background: rgba(29,31,36,.3); }
  .burger { display: inline-grid; }
  .topbar { padding: 10px 16px; }
  .page { padding: 4px 16px 32px; }
  .search { width: 100%; }
  .mine-row { grid-template-columns: 1fr; }
  .dr-meta { grid-template-columns: 1fr 1fr; }
  .kv { grid-template-columns: 1fr; }
  .kv dt { border-bottom: 0; padding-bottom: 0; }
}
@media (max-width: 600px) {
  .grid2 { grid-template-columns: 1fr; }
  .panel { padding: 16px; }
  .dr-head, .dr-body { padding-left: 16px; padding-right: 16px; }
  .dr-meta { grid-template-columns: 1fr; }
  .steps .lbl { display: none; }
  .col { flex-basis: 84vw; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
