/* PaperLog — 데일리 논문 리뷰 아카이브
 * 디자인 참고: hrdpro.hanyang.ac.kr/daily-insight (PRO AnalytiX Lab)
 * 색과 글꼴은 아래 토큰에서만 바꾸세요.
 */

:root {
  --ink: #16202b;
  --muted: #5a6573;
  --paper: #ffffff;
  --tint: #f3f5f8;
  --line: #dde2e8;
  --accent: #1d4f86;
  --accent-soft: #e6edf6;
  --gold: #b07d1a;
  --good: #1a7f37;
  --warn: #b54708;
  --danger: #c0392b;
  --f-display: var(--f-body);
  --f-body: "IBM Plex Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --wide: 1080px;
  --narrow: 900px;
  --radius: 8px;
  --shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
  color-scheme: light;
}

html[data-theme="dark"] {
  --ink: #e6eaf0;
  --muted: #9aa5b3;
  --paper: #11161d;
  --tint: #171e27;
  --line: #2a3441;
  --accent: #8fb6e6;
  --accent-soft: #1c2a3b;
  --gold: #e0b463;
  --good: #4ac26b;
  --warn: #f0883e;
  --danger: #ff8b7d;
  --shadow: 0 12px 28px rgba(0, 0, 0, 0.5);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.7;
  word-break: keep-all;
  overflow-wrap: break-word;
}

img { max-width: 100%; height: auto; }
a { color: var(--accent); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 2px;
}

h1, h2, h3, h4 { text-wrap: balance; line-height: 1.25; margin: 0; }
h1 { font-family: var(--f-display); font-weight: 600; letter-spacing: -0.025em; font-size: clamp(32px, 5vw, 46px); }
h2 { font-family: var(--f-display); font-weight: 600; letter-spacing: -0.015em; font-size: 26px; }
h3 { font-size: 18px; font-weight: 600; }

.container { max-width: var(--wide); margin: 0 auto; padding-inline: 20px; }
main.container { padding-block: 40px 72px; }

.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 8px; top: 8px; z-index: 60; background: var(--accent); color: var(--paper); padding: 6px 12px; border-radius: 6px; }

.eyebrow {
  font-family: var(--f-mono);
  font-size: 12.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.lede { margin: 0; color: var(--muted); max-width: 62ch; font-size: 17px; }
.n { font-family: var(--f-mono); font-size: 0.6em; font-weight: 400; color: var(--muted); vertical-align: 0.2em; margin-left: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- header ---------- */

.site-header { border-bottom: 1px solid var(--line); background: var(--paper); position: sticky; top: 0; z-index: 20; }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; padding-block: 6px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); line-height: 1.2; }
/* 연구실 로고 심볼 (PRO / AX). 테마에 따라 밝은·어두운 그림을 바꿔 보여 줌 */
.brand-mark { flex: none; display: block; line-height: 0; }
.brand-mark img { display: block; height: 38px; width: auto; }
.brand-mark .mark-dark { display: none; }
[data-theme="dark"] .brand-mark .mark-light { display: none; }
[data-theme="dark"] .brand-mark .mark-dark { display: block; }
.brand-text { display: grid; }
.brand-name { font-family: var(--f-display); font-weight: 600; font-size: 19px; }
.brand-sub { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.header-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.header-actions .btn { white-space: nowrap; }

/* ---------- buttons ---------- */

/* [hidden] 이 .btn/.icon-btn 의 display 규칙에 덮이지 않도록 고정합니다. */
[hidden] { display: none !important; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  font: inherit; font-size: 14.5px; font-weight: 500;
  padding: 7px 16px; border: 1px solid var(--line); border-radius: 6px;
  background: var(--paper); color: var(--ink); cursor: pointer; text-decoration: none;
  transition: transform 0.18s ease, border-color 0.18s ease, background-color 0.18s ease;
}
.btn:hover { border-color: var(--accent); text-decoration: none; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--paper); }
.btn-danger { color: var(--danger); }
.btn-danger:hover { border-color: var(--danger); }
.btn-sm { padding: 4px 10px; font-size: 13.5px; }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } }

.icon-btn {
  font: inherit; font-size: 15px; line-height: 1;
  width: 38px; height: 38px; display: inline-grid; place-items: center;
  border: 1px solid var(--line); border-radius: 6px; background: var(--paper); color: var(--ink); cursor: pointer;
}
.icon-btn:hover { border-color: var(--accent); }

select, input, textarea { font-family: inherit; }
input[type="search"], input[type="text"], input[type="url"], input[type="number"], input[type="date"], select, textarea {
  padding: 7px 10px; border: 1px solid var(--line); border-radius: 6px;
  background: var(--paper); color: var(--ink); font-size: 15px;
}

/* ---------- hero / index ---------- */

.daily-index { max-width: var(--narrow); margin-inline: auto; }
.daily-hero { display: grid; gap: 18px; padding-block: 12px 32px; }
.daily-hero h1 { font-size: clamp(38px, 6.5vw, 58px); }
.daily-hero h1 span {
  display: block; margin-top: 14px; font-family: var(--f-body);
  font-size: clamp(17px, 2.4vw, 20px); font-weight: 500; line-height: 1.5; letter-spacing: 0;
  color: var(--ink);
}

.kpis { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.kpi { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; display: grid; gap: 2px; align-content: start; }
.kpi-k { font-size: 13px; color: var(--muted); }
.kpi-v { font-size: 26px; font-weight: 600; font-variant-numeric: tabular-nums; line-height: 1.3; }
.kpi-v small { font-size: 14px; font-weight: 400; color: var(--muted); margin-left: 4px; }
.kpi-s { font-size: 12.5px; color: var(--muted); }

.panel { border: 1px solid var(--line); border-radius: 10px; padding: 20px; background: var(--paper); min-width: 0; }
.panel-sub { margin: 2px 0 12px; font-size: 13px; color: var(--muted); }
.panel-title { font-family: var(--f-body); font-size: 17px; font-weight: 600; margin: 0; }

.daily-archive { margin-top: 44px; }
.daily-archive > h2 { font-size: 23px; margin-bottom: 14px; }

/* ---------- toolbar ---------- */

.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 14px; }
.search-wrap { position: relative; flex: 1 1 240px; }
.search-wrap input { width: 100%; }
.sort-wrap { display: flex; align-items: center; gap: 6px; }
.sort-wrap label { font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.06em; color: var(--muted); text-transform: uppercase; }

.seg { display: inline-flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.seg button {
  font: inherit; font-size: 14px; padding: 6px 14px;
  border: 1px solid var(--line); background: var(--paper); color: var(--ink);
  border-radius: 999px; cursor: pointer;
}
.seg button:hover { border-color: var(--accent); }
.seg button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--paper); }

.tag-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; padding-top: 14px; border-top: 1px solid var(--line); }
.tag-chip {
  font: inherit; font-size: 13px; padding: 3px 10px; border-radius: 999px;
  background: var(--tint); border: 1px solid transparent; color: var(--ink); cursor: pointer;
}
.tag-chip:hover { border-color: var(--accent); }
.tag-chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--paper); }
.tag-chip small { font-family: var(--f-mono); font-size: 11px; margin-left: 5px; opacity: 0.7; }
.tag-hint { font-size: 13px; color: var(--muted); }

/* ---------- cards ---------- */

.inst-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; margin-top: 18px; }
.inst {
  display: grid; gap: 10px; align-content: start;
  padding: 20px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--paper); position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.review-card-wrap {
  display: grid; gap: 10px; align-content: start; min-width: 0; padding: 20px;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.review-card-wrap.is-best { border-color: var(--danger); animation: best-card-pulse 1.6s ease-in-out infinite; }
.best-card-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; min-height: 44px; }
.best-card-head .inst-who { margin: 0; }
.review-card-wrap > .inst { height: auto; padding: 0; border: 0; border-radius: 0; background: transparent; }
.review-card-wrap > .inst:hover, .review-card-wrap > .inst:active { transform: none; border: 0; box-shadow: none; }
.review-card-wrap:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.review-title { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.best-checkbox {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
  max-width: 100%; cursor: pointer;
}
.best-checkbox input {
  flex: none; width: 18px; height: 18px; margin: 0;
  accent-color: #d71920; cursor: pointer;
}
.best-checkbox input:focus-visible { outline: 2px solid var(--danger); outline-offset: 3px; }
.best-checkbox input:disabled { opacity: .6; cursor: wait; }
.best-week-badge[hidden] { display: none; }
.best-week-badge {
  display: inline-block; max-width: 100%; padding: 6px 10px;
  color: var(--danger); background: var(--paper); border: 2px solid var(--danger);
  border-radius: 7px; font-size: 12px; line-height: 1.5; font-weight: 700;
  text-align: center; animation: best-badge-pulse 1.6s ease-in-out infinite;
}
@keyframes best-badge-pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(215, 25, 32, .1); text-shadow: none; }
  50% { opacity: .65; box-shadow: 0 0 12px rgba(215, 25, 32, .4); text-shadow: 0 0 6px rgba(215, 25, 32, .3); }
}
@keyframes best-card-pulse {
  0%, 100% { box-shadow: 0 0 0 1px rgba(215, 25, 32, .16); }
  50% { box-shadow: 0 0 0 2px rgba(215, 25, 32, .3), 0 4px 18px rgba(215, 25, 32, .16); }
}
@media (prefers-reduced-motion: reduce) {
  .best-week-badge, .review-card-wrap.is-best { animation: none; }
}
@media print {
  .best-week-badge, .review-card-wrap.is-best { animation: none; }
  .best-checkbox input { display: none; }
}

@media (hover: hover) {
  .inst:hover { transform: scale(1.02); z-index: 3; border-color: var(--accent); box-shadow: var(--shadow); }
}
.inst:active { transform: scale(1.02); z-index: 3; border-color: var(--accent); }
@media (prefers-reduced-motion: reduce) { .inst { transition: none; } .inst:hover, .inst:active { transform: none; } }

.inst .tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; }
.inst .tags li { font-size: 12px; padding: 2px 9px; border-radius: 999px; background: var(--tint); color: var(--ink); }
.inst h3 { font-size: 18px; line-height: 1.45; }
.inst h3 a { color: var(--ink); text-decoration: none; }
.inst h3 a:hover { color: var(--accent); }
.inst .inst-lede { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.65; }
.inst-foot {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px;
  margin-top: 4px; padding-top: 12px; border-top: 1px solid var(--line);
  font-family: var(--f-mono); font-size: 12px; color: var(--muted);
}
.inst-actions { display: flex; gap: 6px; }

.badge {
  display: inline-block; font-family: var(--f-mono); font-size: 11px;
  letter-spacing: 0.06em; text-transform: uppercase;
  padding: 1px 8px; border-radius: 4px; background: var(--tint); color: var(--muted);
}
.badge-done { color: var(--good); }
.badge-reading { color: var(--warn); }
.badge-planned { color: var(--muted); }

.stars { color: var(--gold); font-size: 14px; letter-spacing: 0.05em; white-space: nowrap; }
.stars-empty { color: var(--muted); font-family: var(--f-mono); font-size: 12px; }

.empty {
  grid-column: 1 / -1; text-align: center; padding: 40px 20px;
  border: 1px dashed var(--line); border-radius: var(--radius); color: var(--muted);
}
.empty strong { display: block; font-size: 17px; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.empty a { color: var(--accent); }

.skeleton {
  height: 172px; border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(90deg, var(--tint) 25%, var(--paper) 50%, var(--tint) 75%);
  background-size: 200% 100%; animation: shimmer 1.3s infinite linear;
}
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .skeleton { animation: none; } }

/* ---------- chart ---------- */

.chart-box { position: relative; height: 220px; }
.chart-legend { font-size: 13px; color: var(--muted); margin: 12px 0 0; }

/* ---------- detail page ---------- */

.page-head { display: grid; gap: 10px; margin-bottom: 30px; padding-bottom: 30px; border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: clamp(30px, 4.5vw, 42px); line-height: 1.35; }
.page-head .tags { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.page-head .tags li { font-size: 13px; padding: 3px 10px; border-radius: 999px; background: var(--tint); }
.page-head-meta { font-family: var(--f-mono); font-size: 12.5px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 4px 14px; }

.daily-back { display: inline-block; font-size: 14px; text-decoration: none; margin-bottom: 28px; }
.prose { max-width: none; }
.prose p { margin: 0 0 16px; }
.prose > p:last-child { margin-bottom: 0; }
.prose em { font-style: italic; }

.daily-takeaway {
  background: var(--accent-soft); border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0; padding: 20px 24px; margin-bottom: 32px;
}
.daily-takeaway .label { font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); margin-bottom: 8px; }
.daily-takeaway p { margin: 0 0 10px; }
.daily-takeaway p:last-child { margin-bottom: 0; }
.daily-takeaway .empty-hint { color: var(--muted); }

.daily-brief {
  margin: 0 0 36px; padding: 22px 24px; background: var(--paper);
  border: 1px solid var(--line); border-top: 3px solid var(--accent); border-radius: var(--radius);
}
.daily-brief h3 { font-size: 20px; line-height: 1.45; margin-bottom: 6px; }
.daily-brief-cite { font-size: 14px; color: var(--muted); margin: 0; }
.daily-brief-cite a { overflow-wrap: anywhere; }
.daily-brief dl { display: grid; grid-template-columns: max-content 1fr; gap: 12px 20px; margin: 18px 0 0; padding-top: 18px; border-top: 1px solid var(--line); }
.daily-brief dt { font-weight: 600; font-size: 14.5px; }
.daily-brief dd { margin: 0; font-size: 15px; }

.daily-content h2 {
  font-family: var(--f-body); font-size: 23px; font-weight: 600; line-height: 1.5;
  border-top: 1px solid var(--line); margin-top: 40px; padding-top: 28px;
}
.daily-content h2:first-child { border-top: 0; margin-top: 0; padding-top: 0; }
.daily-content blockquote {
  background: var(--tint); margin: 20px 0; padding: 16px 20px;
  border-left: 2px solid var(--line); border-radius: 0 6px 6px 0; font-size: 14.5px;
}
.daily-content blockquote p { margin: 0 0 8px; }
.daily-content blockquote p:last-child { margin-bottom: 0; }
.daily-content blockquote strong { color: var(--accent); }
.daily-content ul, .daily-content ol { margin: 0 0 16px; padding-left: 1.3em; }
.daily-content li { margin-bottom: 8px; }
.daily-content hr { border: 0; border-top: 1px solid var(--line); margin-block: 36px 24px; }
.daily-content h3 { font-size: 18px; margin: 32px 0 12px; }
.daily-content .table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); margin-block: 16px; }
.daily-content table { border-collapse: collapse; width: 100%; font-size: 14.5px; }
.daily-content th, .daily-content td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.daily-content th { font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.05em; color: var(--muted); font-weight: 500; background: var(--tint); white-space: nowrap; }

.references p { font-size: 13.5px; color: var(--muted); margin: 0 0 8px; overflow-wrap: anywhere; }
.questions { margin: 0; padding-left: 1.3em; }
.questions li { margin-bottom: 8px; }

.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin: 0; font-size: 15px; }
.kv dt { font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); padding-top: 4px; }
.kv dd { margin: 0; overflow-wrap: anywhere; }

.fig-caption { font-size: 13.5px; color: var(--muted); margin-top: 8px; }
.cover { display: block; width: 100%; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 28px; }

.post-nav { display: flex; justify-content: space-between; gap: 16px; margin-top: 56px; padding-top: 20px; border-top: 1px solid var(--line); }
.post-nav a { font-size: 14.5px; }
.post-nav .spacer { flex: 1; }

/* ---------- modal ---------- */

.modal { position: fixed; inset: 0; z-index: 50; display: none; background: rgba(15, 20, 28, 0.55); overflow-y: auto; padding: 24px 16px; }
.modal.is-open { display: block; }
.modal-card { background: var(--paper); border: 1px solid var(--line); border-radius: 10px; width: min(760px, 100%); margin: 16px auto; }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 22px; border-bottom: 1px solid var(--line); }
.modal-head h2 { font-size: 21px; margin: 0; }
.modal-body { padding: 22px; }
.modal-foot { display: flex; justify-content: space-between; gap: 8px; padding: 14px 22px; border-top: 1px solid var(--line); background: var(--tint); border-radius: 0 0 10px 10px; }
.modal-foot .right { display: flex; gap: 8px; }

.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.field { display: grid; gap: 5px; align-content: start; }
.field-full { grid-column: 1 / -1; }
.field > label { font-size: 13px; font-weight: 600; color: var(--ink); }
.field .hint { font-weight: 400; color: var(--muted); font-family: var(--f-mono); font-size: 11.5px; }
.field input, .field select, .field textarea { width: 100%; }
.field textarea { resize: vertical; min-height: 108px; line-height: 1.65; }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: var(--danger); }
.required { color: var(--danger); }

.rating-picker { display: flex; gap: 4px; align-items: center; flex-wrap: wrap; }
.rating-picker button {
  font: inherit; font-size: 15px; width: 38px; height: 34px;
  border: 1px solid var(--line); border-radius: 6px; background: var(--paper); color: var(--gold); cursor: pointer;
}
.rating-picker button[aria-pressed="true"] { background: var(--accent-soft); border-color: var(--gold); }
.rating-picker .clear { width: auto; padding: 0 12px; font-size: 13.5px; color: var(--muted); }

/* ---------- toast ---------- */

.toast-wrap { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 70; display: grid; gap: 8px; justify-items: center; }
.toast {
  background: var(--ink); color: var(--paper); border-radius: 6px; padding: 9px 18px;
  font-size: 14px; font-weight: 500; opacity: 0; transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease; max-width: min(92vw, 460px);
}
.toast.is-in { opacity: 1; transform: none; }
.toast-ok { background: var(--good); color: #fff; }
.toast-err { background: var(--danger); color: #fff; }
@media (prefers-reduced-motion: reduce) { .toast { transition: none; } }

/* ---------- footer ---------- */

.site-footer { background: var(--tint); border-top: 1px solid var(--line); padding-block: 32px 22px; font-size: 14px; color: var(--muted); }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; }
.footer-row p { margin: 6px 0 0; }
.footer-name { font-family: var(--f-display); font-weight: 600; font-size: 16px; color: var(--ink); }
.copyright { margin-top: 22px; font-size: 12.5px; }

/* ---------- responsive ---------- */

@media (max-width: 900px) {
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpis .kpi:last-child { grid-column: 1 / -1; }
}

@media (max-width: 680px) {
  body { font-size: 15.5px; }
  .container { padding-inline: 16px; }
  main.container { padding-block: 24px 56px; }
  .daily-hero { padding-block: 4px 24px; }
  .daily-hero h1 span { font-size: 17px; }
  .daily-archive { margin-top: 32px; }
  .inst-grid { grid-template-columns: 1fr; gap: 14px; }
  .inst { padding: 18px; }
  .seg button { padding: 6px 11px; font-size: 13.5px; }
  .toolbar { gap: 8px; }
  .search-wrap { flex: 1 1 100%; }
  .sort-wrap { flex: 1 1 auto; }
  .daily-content h2 { font-size: 20px; margin-top: 32px; padding-top: 22px; }
  .daily-brief { padding: 18px; }
  .daily-brief dl { grid-template-columns: 1fr; gap: 4px; }
  .daily-brief dd { margin-bottom: 10px; }
  .daily-takeaway { padding: 16px 18px; }
  .form-grid { grid-template-columns: 1fr; }
  .modal { padding: 0; }
  .modal-card { margin: 0; border-radius: 0; min-height: 100vh; width: 100%; }
  .modal-foot { border-radius: 0; position: sticky; bottom: 0; }
  .kv { grid-template-columns: 1fr; gap: 2px; }
  .kv dd { margin-bottom: 10px; }
  .inst-actions .btn { flex: 1 1 auto; }
}
