:root {
  --cobalt: #0057FF;
  --cobalt-50: #EEF4FF;
  --yellow: #FFC629;
  --bg: #FFFFFF;
  --tint: #F2F6FF;
  --navy: #081F4A;
  --muted: #5B6B8C;
  --faint: #8A97B1;
  --line: #E3E8F0;
  --line-2: #EEF1F6;
  --card: #FFFFFF;
  --ok: #067647; --ok-bg: #ECFDF3; --ok-line: #ABEFC6; --ok-dot: #17B26A;
  --warn: #7A4D00; --warn-bg: #FFF8E1; --warn-line: #FFC629;
  --crit: #D92D20; --crit-dark: #B42318; --crit-bg: #FEF3F2; --crit-line: #FECDCA;
  --radius: 10px;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --sans: "Bricolage Grotesque", "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; background: var(--bg); color: var(--navy); font: 14px/1.5 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: var(--cobalt); text-decoration: none; }
a:hover { text-decoration: underline; }
h2 { font-size: 16px; font-weight: 700; margin: 0; letter-spacing: -0.01em; }
h3 { margin: 0; }
.mono { font-family: var(--mono); font-size: 12.5px; }
.muted { color: var(--muted); }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

/* ---------------------------------------------------------------- top bar */
.topbar { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.92); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line); }
.topbar-in { display: flex; align-items: center; gap: 24px; height: 56px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--navy); }
.brand:hover { text-decoration: none; }
.brand img { display: block; width: 24px; height: 24px; }
.brand-word { font: 700 18px/1 var(--sans); letter-spacing: -0.02em; color: var(--navy); margin-left: -2px; }
.brand-sub { font-weight: 600; font-size: 13px; padding-left: 10px; border-left: 1px solid var(--line); position: relative; }
.brand-sub::after { content: ""; position: absolute; right: -9px; top: 1px; width: 5px; height: 5px; border-radius: 50%; background: var(--yellow); }
.nav { display: flex; gap: 4px; margin-left: 8px; }
.nav a { color: var(--muted); font-weight: 500; padding: 6px 10px; border-radius: 6px; }
.nav a:hover { color: var(--cobalt); background: var(--tint); text-decoration: none; }
.live { margin-left: auto; display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12.5px; white-space: nowrap; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--faint); }
.live-dot.on { background: var(--ok-dot); box-shadow: 0 0 0 3px rgba(23,178,106,.15); }
.live-dot.off { background: var(--crit); }

main.wrap { padding-top: 24px; padding-bottom: 40px; position: relative; z-index: 1; }

/* ------------------------------------------------------------- background */
.bg { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; contain: strict; }
.bg-item { position: absolute; opacity: var(--o); will-change: transform; animation: bg-drift var(--dur) ease-in-out var(--delay) infinite alternate; transform: rotate(var(--r0)); }
.bg-item svg { display: block; width: 100%; height: 100%; }
.bg-blade { fill: var(--cobalt); }
.bg-blade.bg-outline { fill: none; stroke: var(--cobalt); stroke-width: 1.2; }
.bg-sq { background: var(--yellow); border-radius: 28%; }
.bg.paused .bg-item, .bg.paused .bg-bloom { animation-play-state: paused; }
@keyframes bg-drift {
  from { transform: translate(0, 0) rotate(var(--r0)); }
  to { transform: translate(var(--dx), var(--dy)) rotate(calc(var(--r0) + var(--r1))); }
}
.bg-bloom { position: absolute; width: 44px; height: 48px; margin: -24px 0 0 -22px; opacity: 0; transform-origin: 50% 90%; animation: bg-bloom 2.8s ease-out forwards; }
.bg-bloom svg { display: block; width: 100%; height: 100%; }
@keyframes bg-bloom {
  0% { opacity: 0; transform: scale(.3) rotate(calc(var(--r) - 40deg)); }
  30% { opacity: .22; transform: scale(1) rotate(var(--r)); }
  100% { opacity: 0; transform: scale(1.25) rotate(calc(var(--r) + 12deg)) translateY(-10px); }
}
@media (prefers-reduced-motion: reduce) { .bg-item { animation: none; } .bg-bloom { display: none; } }

/* ----------------------------------------------------------------- banner */
.banner { display: flex; align-items: center; gap: 16px; padding: 16px 20px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); margin-bottom: 24px; }
.banner-icon { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 20px; }
.banner-title { font-size: 20px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.3; }
.banner-sub { color: var(--muted); margin-top: 2px; }
.banner-sub ul { margin: 6px 0 0; padding-left: 18px; }
.banner-body { flex: 1; min-width: 0; }
.banner-action { flex: none; }
.banner-ok { background: var(--ok-bg); border-color: var(--ok-line); }
.banner-ok .banner-icon { background: var(--ok-dot); color: #fff; }
.banner-ok .banner-title { color: var(--ok); }
.banner-warning { background: var(--warn-bg); border-color: var(--warn-line); }
.banner-warning .banner-icon { background: var(--yellow); color: var(--navy); }
.banner-warning .banner-title { color: var(--warn); }
.banner-starting .banner-icon { background: var(--cobalt-50); color: var(--cobalt); }
.banner-critical { background: var(--crit); border-color: var(--crit-dark); color: #fff; padding: 20px 24px; box-shadow: 0 6px 24px rgba(217,45,32,.28); }
.banner-critical .banner-icon { background: #fff; color: var(--crit); width: 48px; height: 48px; font-size: 26px; animation: pulse 1.6s ease-in-out infinite; }
.banner-critical .banner-title { font-size: 24px; }
.banner-critical .banner-sub { color: rgba(255,255,255,.92); }
.banner-critical .btn { background: #fff; color: var(--crit-dark); border-color: #fff; font-weight: 700; }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(255,255,255,.6); } 50% { box-shadow: 0 0 0 10px rgba(255,255,255,0); } }
@media (prefers-reduced-motion: reduce) { .banner-critical .banner-icon { animation: none; } html { scroll-behavior: auto; } }

/* ------------------------------------------------------------------ cards */
.cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 24px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; min-width: 0; }
.card-label { color: var(--muted); font-size: 12.5px; font-weight: 500; }
.card-value { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; margin-top: 4px; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-value small { font-size: 13px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.card-sub { color: var(--muted); font-size: 12.5px; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card.is-warn { border-color: var(--warn-line); box-shadow: inset 3px 0 0 var(--yellow); }
.card.is-crit { border-color: var(--crit-line); box-shadow: inset 3px 0 0 var(--crit); }
.card.is-crit .card-value { color: var(--crit); }

/* ------------------------------------------------------------------ panel */
.panel { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 16px 20px; margin-bottom: 24px; }
.panel-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.panel-head .tools { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.hint { color: var(--muted); font-size: 12.5px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 34px; padding: 0 12px; border: 1px solid var(--line); background: #fff; color: var(--navy); border-radius: 8px; font: 500 13px var(--sans); cursor: pointer; white-space: nowrap; }
.btn:hover { border-color: #C7D7FE; background: var(--tint); text-decoration: none; }
.btn-primary { background: var(--cobalt); border-color: var(--cobalt); color: #fff; }
.btn-primary:hover { background: #0049D6; border-color: #0049D6; }
.btn[disabled] { opacity: .45; cursor: default; }
input, select { height: 34px; border: 1px solid var(--line); border-radius: 8px; padding: 0 10px; font: 13px var(--sans); color: var(--navy); background: #fff; min-width: 0; }
input:focus, select:focus, .btn:focus-visible { outline: 2px solid rgba(0,87,255,.35); outline-offset: 1px; border-color: var(--cobalt); }
.search { display: flex; gap: 6px; }
.search input { width: 300px; font-family: var(--mono); font-size: 12.5px; }
.check { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13px; cursor: pointer; user-select: none; }
.check input { height: auto; accent-color: var(--cobalt); }
.search-note { margin: -4px 0 10px; color: var(--muted); font-size: 13px; }

/* ------------------------------------------------------------------- refs */
.refs { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 10px; }
.ref { border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; display: grid; grid-template-columns: auto 1fr auto; gap: 2px 10px; align-items: center; }
.ref-name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ref-head { font-variant-numeric: tabular-nums; color: var(--muted); font-size: 12.5px; }
.ref-stats { grid-column: 2 / 4; color: var(--muted); font-size: 12.5px; display: flex; gap: 12px; flex-wrap: wrap; }
.ref-stats b { color: var(--navy); font-weight: 600; }
.ref-stats .bad { color: var(--crit); }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; background: var(--faint); }
.dot.ok { background: var(--ok-dot); } .dot.warn { background: var(--yellow); } .dot.crit { background: var(--crit); }
.ref-err { grid-column: 2 / 4; color: var(--crit); font-size: 12px; overflow-wrap: anywhere; }

/* ----------------------------------------------------------------- blocks */
.table-wrap { overflow-x: auto; margin: 0 -20px; }
table.blocks { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.blocks th { text-align: left; font-size: 12px; font-weight: 600; color: var(--muted); padding: 8px 12px; border-bottom: 1px solid var(--line); background: #fff; white-space: nowrap; }
.blocks td { padding: 9px 12px; border-bottom: 1px solid var(--line-2); vertical-align: middle; white-space: nowrap; }
.blocks th:first-child, .blocks td:first-child { padding-left: 20px; }
.blocks th:last-child, .blocks td:last-child { padding-right: 20px; }
.blocks tbody tr { cursor: pointer; }
.blocks tbody tr:hover td { background: var(--tint); }
.blocks .c-num { font-weight: 600; color: var(--cobalt); }
.blocks .c-chk { text-align: center; }
.blocks th.c-chk { text-align: center; max-width: 140px; overflow: hidden; text-overflow: ellipsis; }
.blocks .c-time { color: var(--muted); }
.blocks .c-tx { color: var(--muted); text-align: right; }
.blocks th.c-tx { text-align: right; }
.blocks tr.bad td { background: var(--crit-bg); }
.blocks tr.bad:hover td { background: #FDE8E6; }
.blocks tr.bad td:first-child { box-shadow: inset 3px 0 0 var(--crit); }
.blocks tr.bad .c-num { color: var(--crit-dark); }
.hashcell { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; }
.hash { font-family: var(--mono); font-size: 12.5px; letter-spacing: -0.01em; }
.hash-short { display: none; }
.copy { border: 0; background: none; padding: 2px 4px; border-radius: 4px; color: var(--faint); cursor: pointer; font-size: 13px; line-height: 1; }
.copy:hover { color: var(--cobalt); background: var(--cobalt-50); }
.copy.done { color: var(--ok-dot); }
.ok-mark { color: var(--ok-dot); font-weight: 700; }
.bad-mark { color: var(--crit); font-weight: 800; }
.na-mark { color: var(--faint); }
.pend-mark { color: var(--faint); font-size: 12px; }
.tag-rw { display: inline-block; margin-left: 6px; font-size: 11px; font-weight: 700; color: #fff; background: var(--crit); border-radius: 4px; padding: 0 5px; line-height: 18px; vertical-align: middle; }
.empty { text-align: center; color: var(--muted); padding: 28px 12px !important; }

.pager { display: flex; align-items: center; justify-content: flex-end; gap: 8px; margin-top: 12px; color: var(--muted); font-size: 13px; flex-wrap: wrap; }
.pager .btn { height: 30px; }

/* -------------------------------------------------------------- incidents */
.inc-list { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.inc { display: grid; grid-template-columns: 64px 1fr auto; gap: 4px 14px; padding: 12px 14px; border-bottom: 1px solid var(--line-2); cursor: pointer; align-items: center; background: #fff; text-align: left; border-left: 0; border-right: 0; border-top: 0; font: inherit; color: inherit; width: 100%; }
.inc:last-child { border-bottom: 0; }
.inc:hover { background: var(--tint); }
.inc.open.critical { background: var(--crit-bg); box-shadow: inset 3px 0 0 var(--crit); }
.inc.open.critical:hover { background: #FDE8E6; }
.inc.open.warning { box-shadow: inset 3px 0 0 var(--yellow); }
.inc-title { font-weight: 600; min-width: 0; overflow-wrap: anywhere; }
.inc-meta { grid-column: 2 / 3; color: var(--muted); font-size: 12.5px; display: flex; gap: 12px; flex-wrap: wrap; }
.inc-side { grid-row: 1 / 3; grid-column: 3; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.sev { grid-row: 1 / 3; align-self: start; justify-self: start; display: inline-flex; align-items: center; justify-content: center; height: 22px; padding: 0 10px; min-width: 64px; font-size: 12px; font-weight: 700; line-height: 1; border-radius: 6px; border: 1px solid transparent; white-space: nowrap; }
.sev.critical { background: var(--crit); border-color: var(--crit); color: #fff; }
.sev.warning { background: var(--warn-bg); color: var(--warn); border: 1px solid var(--warn-line); }
.chip { display: inline-flex; align-items: center; height: 22px; padding: 0 10px; font-size: 12px; font-weight: 500; line-height: 1; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); background: #fff; white-space: nowrap; }
.chip.open { color: var(--crit-dark); border-color: var(--crit-line); background: #fff; }
.chip.open.warning { color: var(--warn); border-color: var(--warn-line); }
.chip.resolved { color: var(--ok); border-color: var(--ok-line); background: var(--ok-bg); }
.chip.acked { color: var(--cobalt); border-color: #C7D7FE; background: var(--cobalt-50); }
.inc-empty { padding: 28px; text-align: center; color: var(--muted); }

/* ----------------------------------------------------------------- export */
.export { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; }
.export label { display: flex; flex-direction: column; gap: 4px; color: var(--muted); font-size: 12.5px; }
.export input { width: 160px; font-variant-numeric: tabular-nums; }
.export-btns { display: flex; gap: 8px; }
.panel > p.muted { margin: -4px 0 12px; }

.foot { color: var(--faint); font-size: 12.5px; padding: 4px 4px 0; }
.foot p { margin: 0 0 6px; }
.foot-version { font-family: var(--mono); font-size: 11.5px; overflow-wrap: anywhere; }

/* --------------------------------------------------------------- dropdown */
.dd-native { display: none; }
.dd { position: relative; }
.dd-btn { display: inline-flex; align-items: center; justify-content: space-between; gap: 10px; height: 34px; padding: 0 12px 0 14px; min-width: 132px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--navy); font: 500 13px var(--sans); cursor: pointer; white-space: nowrap; }
.dd-btn:hover { border-color: #C7D7FE; background: var(--tint); }
.dd-btn:focus-visible { outline: 2px solid rgba(0,87,255,.35); outline-offset: 1px; border-color: var(--cobalt); }
.dd-btn[aria-expanded="true"] { border-color: var(--cobalt); }
.dd-btn.is-set { color: var(--cobalt); }
.dd-chev { flex: none; width: 12px; height: 12px; color: var(--muted); transition: transform .12s ease; }
.dd-btn[aria-expanded="true"] .dd-chev { transform: rotate(180deg); }
.dd-list { position: absolute; z-index: 30; top: calc(100% + 4px); left: 0; min-width: 100%; max-height: 280px; overflow-y: auto; margin: 0; padding: 4px; list-style: none; background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 8px 24px rgba(8,31,74,.10); }
.dd-list:focus { outline: none; }
.dd-opt { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 12px; border-radius: 6px; font-size: 13px; cursor: pointer; white-space: nowrap; }
.dd-opt.active, .dd-opt:hover { background: var(--tint); }
.dd-opt[aria-selected="true"] { color: var(--cobalt); font-weight: 600; }
.dd-opt[aria-selected="true"]::after { content: "✓"; font-size: 12px; }

/* ----------------------------------------------------------------- drawer */
.scrim { position: fixed; inset: 0; background: rgba(8,31,74,.28); z-index: 40; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(760px, 100%); background: #fff; border-left: 1px solid var(--line); z-index: 41; transform: translateX(100%); transition: transform .18s ease; display: flex; flex-direction: column; box-shadow: -12px 0 32px rgba(8,31,74,.12); }
.drawer.open { transform: none; }
.drawer-head { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.drawer-head h3 { font-size: 16px; flex: 1; min-width: 0; overflow-wrap: anywhere; }
.icon-btn { border: 1px solid var(--line); background: #fff; width: 32px; height: 32px; border-radius: 8px; cursor: pointer; color: var(--muted); flex: none; }
.icon-btn:hover { color: var(--cobalt); background: var(--tint); }
.drawer-body { padding: 16px 20px 32px; overflow-y: auto; }
.kv { display: grid; grid-template-columns: 112px 1fr; gap: 6px 12px; margin: 0 0 16px; font-size: 13px; }
.kv dt { color: var(--muted); }
.kv .sev { min-width: 0; }
.kv dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.section-title { font-size: 13px; font-weight: 700; margin: 18px 0 8px; }
.cmp { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cmp-col { border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; min-width: 0; }
.cmp-col h4 { margin: 0 0 8px; font-size: 12.5px; color: var(--muted); font-weight: 600; }
.cmp-col.old h4::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 2px; background: var(--cobalt); margin-right: 6px; }
.cmp-col.new h4::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 2px; background: var(--crit); margin-right: 6px; }
.field { margin-bottom: 8px; }
.field-k { font-size: 11.5px; color: var(--faint); }
.field-v { font-family: var(--mono); font-size: 12px; overflow-wrap: anywhere; word-break: break-all; }
.field.diff .field-v { background: var(--crit-bg); color: var(--crit-dark); border-radius: 4px; padding: 1px 4px; margin: 0 -4px; }
.big-hash { font-family: var(--mono); font-size: 12.5px; word-break: break-all; padding: 8px 10px; border-radius: 6px; background: #fff; border: 1px solid var(--line); }
.big-hash + .field-k { margin-top: 8px; }
.big-hash + .big-hash { margin-top: 6px; }
.big-hash .muted { font-family: var(--sans); }
.big-hash.bad { background: var(--crit-bg); border-color: var(--crit-line); color: var(--crit-dark); }
details.raw { margin-top: 18px; }
details.raw summary { cursor: pointer; color: var(--muted); font-size: 13px; }
details.raw pre { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 10px; font: 11.5px/1.5 var(--mono); overflow: auto; max-height: 360px; }
.ref-check { margin-bottom: 12px; }
.ref-check-head { display: flex; align-items: baseline; gap: 8px; margin-bottom: 6px; font-size: 13px; flex-wrap: wrap; }
.ref-check-head .muted { margin-left: auto; font-size: 12px; }

/* ---------------------------------------------------------------- tablet */
@media (max-width: 980px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .search input { width: 220px; }
}

/* ---------------------------------------------------------------- mobile */
@media (max-width: 720px) {
  .wrap { padding: 0 16px; }
  .topbar-in { gap: 12px; height: 52px; }
  .nav { display: none; }
  .brand img { width: 22px; height: 22px; }
  .brand-word { font-size: 16px; }
  .live #refreshed { font-size: 12px; }
  main.wrap { padding-top: 16px; }
  .banner, .cards, .panel { margin-bottom: 16px; }
  .banner { padding: 14px 16px; gap: 12px; align-items: flex-start; flex-wrap: wrap; }
  .banner-title { font-size: 17px; }
  .banner-critical { padding: 16px; }
  .banner-critical .banner-title { font-size: 19px; }
  .banner-icon { width: 34px; height: 34px; font-size: 17px; }
  .banner-critical .banner-icon { width: 38px; height: 38px; font-size: 20px; }
  .banner-action { width: 100%; }
  .banner-action .btn { width: 100%; }
  .cards { gap: 8px; }
  .card { padding: 10px 12px; }
  .card-value { font-size: 18px; }
  .panel { padding: 14px 16px; border-radius: 10px; }
  .panel-head .tools { margin-left: 0; width: 100%; }
  .search { flex: 1; }
  .search input { flex: 1; width: auto; }
  .panel-head .tools .dd { flex: 1 1 30%; }
  .dd-btn { width: 100%; min-width: 0; }
  .dd-list { min-width: 180px; }
  .refs { grid-template-columns: 1fr; }
  .table-wrap { margin: 0 -16px; overflow: visible; }

  /* block rows become two-line cards */
  table.blocks, .blocks tbody { display: block; }
  .blocks thead { display: none; }
  .blocks tr { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; padding: 10px 16px; border-bottom: 1px solid var(--line-2); }
  .blocks td { padding: 0 !important; border: 0; background: none !important; white-space: normal; }
  .blocks tr.bad { background: var(--crit-bg); box-shadow: inset 3px 0 0 var(--crit); }
  .blocks tr.bad td:first-child { box-shadow: none; }
  .blocks .c-num { order: 1; flex: 1; }
  .blocks .c-time { order: 2; font-size: 12.5px; }
  .blocks .c-hash { order: 3; flex-basis: 100%; }
  .blocks .c-tx { display: none; }
  .blocks .c-chk { order: 4; font-size: 12.5px; color: var(--muted); white-space: nowrap; }
  .blocks .c-chk::before { content: attr(data-label) " "; color: var(--faint); }
  .hash-full { display: none; }
  .hash-short { display: inline; }
  .empty { display: block; }

  .inc { grid-template-columns: 1fr auto; padding: 12px; }
  .sev { grid-row: auto; grid-column: 1; min-width: 0; }
  .inc-title { grid-column: 1 / 3; }
  .inc-meta { grid-column: 1 / 3; }
  .inc-side { grid-row: 1; grid-column: 2; flex-direction: row; }
  .export input { width: 100%; }
  .export label { flex: 1 1 40%; }
  .export-btns { width: 100%; }
  .export-btns .btn { flex: 1; }
  .cmp { grid-template-columns: 1fr; }
  .kv { grid-template-columns: 92px 1fr; }
  .drawer-head, .drawer-body { padding-left: 16px; padding-right: 16px; }
}
