/* 도크세이프 HSE · 조선소 HSE 시스템 시연 */
:root {
  --bg: #EDF0EE;
  --surface: #FFFFFF;
  --sunk: #F5F7F6;
  --line: #D3DAD6;
  --line-soft: #E5EAE7;
  --text: #15211C;
  --muted: #56665F;
  --primary: #0B6B4F;
  --primary-dark: #08563F;
  --primary-soft: #E3F1EC;
  --accent: #F08C00;
  --ok: #1F8A4C;
  --ok-text: #17703D;
  --ok-soft: #E4F4EA;
  --warn: #E8A200;
  --warn-text: #845700;
  --warn-soft: #FFF4D6;
  --danger: #C92A2A;
  --danger-text: #A61E1E;
  --danger-soft: #FDE8E8;
  --top: #12201B;
  --t-hot: #D9480F;
  --t-height: #1864AB;
  --t-confined: #6741D9;
  --t-lift: #F2B705;
  --found: #E8590C;
  --fixed: #1C7ED6;
  --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --display: "IBM Plex Sans KR", "Pretendard Variable", Pretendard, sans-serif;
  --r: 6px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body.hs {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font); font-size: 14px; line-height: 1.5;
  word-break: keep-all; overflow-wrap: anywhere;
  padding-bottom: 28px;
}
.hs :where(h1, h2, h3, p, ul, ol, dl, dd, fieldset) { margin: 0; }
.hs :where(ul, ol) { padding: 0; list-style: none; }
.hs :where(a) { color: inherit; }
.hs :where(button, input, select) { font: inherit; color: inherit; }
.hs :where(button) { cursor: pointer; }
.hs :focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.hs [hidden] { display: none !important; }
.num { font-variant-numeric: tabular-nums; }
.hs-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hs-ico { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ── 상단 ─────────────────────────── */
.hs-top {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; gap: 20px;
  height: 56px; padding: 0 16px 0 20px;
  background: var(--top); color: #E7EFEB;
}
.hs-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; width: 196px; flex: none; }
.hs-brand__mark { display: grid; place-items: center; width: 30px; height: 30px; border-radius: var(--r); background: var(--primary); }
.hs-brand__mark svg { width: 20px; height: 20px; fill: #3FB98A; }
.hs-brand__name { font-family: var(--display); font-size: 16px; font-weight: 600; letter-spacing: -.01em; }
.hs-brand__name b { color: #FFC266; font-weight: 700; }
.hs-top__ctx { display: flex; gap: 12px; font-size: 13px; color: #A9BAB2; }
.hs-top__ctx span:first-child { color: #E7EFEB; font-weight: 600; }
.hs-top__right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.hs-role { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.hs-role__label { color: #A9BAB2; }
.hs-role select {
  height: 34px; padding: 0 30px 0 12px; border: 1px solid #36483F; border-radius: var(--r);
  background: #1C2E27 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23E7EFEB' stroke-width='1.4'/%3E%3C/svg%3E") no-repeat right 11px center / 10px 6px;
  color: #fff; font-weight: 600; appearance: none;
}
.hs-top .hs-btn--ghost { color: #E7EFEB; border-color: #36483F; }
.hs-top .hs-btn--ghost:hover { background: #1C2E27; }

/* ── 틀 ─────────────────────────── */
.hs-shell { display: grid; grid-template-columns: 232px minmax(0, 1fr); min-height: calc(100vh - 84px); }
.hs-side { background: var(--surface); border-right: 1px solid var(--line); padding: 16px 12px; }
.hs-side nav { position: sticky; top: 72px; display: flex; flex-direction: column; gap: 2px; }
.hs-side__group { margin: 12px 10px 6px; font-size: 12px; font-weight: 700; color: var(--muted); }
.hs-side__group:first-child { margin-top: 0; }
.hs-side__item { display: flex; align-items: center; gap: 10px; min-height: 42px; padding: 0 10px; border-radius: var(--r); text-decoration: none; font-weight: 600; }
.hs-side__item:hover { background: var(--sunk); }
.hs-side__item.is-active { background: var(--primary-soft); color: var(--primary-dark); box-shadow: inset 3px 0 0 var(--primary); }
.hs-side__item.is-legacy { color: var(--muted); font-weight: 500; min-height: 36px; }
.hs-side__item.is-legacy small { margin-left: auto; font-size: 11px; padding: 0 6px; border: 1px solid var(--line); border-radius: 999px; line-height: 18px; }
.hs-main { padding: 24px 28px 96px; max-width: 1240px; width: 100%; }
.hs-tabs { display: none; }

/* ── 머리말 ─────────────────────────── */
.hs-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.hs-crumb { font-size: 13px; color: var(--muted); }
.hs-crumb a { text-decoration: none; }
.hs-crumb a:hover { text-decoration: underline; }
.hs-h1 { font-family: var(--display); font-size: 24px; font-weight: 700; letter-spacing: -.02em; line-height: 1.3; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.hs-h2 { font-family: var(--display); font-size: 16px; font-weight: 600; letter-spacing: -.01em; display: flex; align-items: center; gap: 8px; }
.hs-meta { font-size: 13px; color: var(--muted); }
.hs-meta.is-danger { color: var(--danger-text); font-weight: 700; }
.hs-note { font-size: 13px; color: var(--muted); margin-top: 12px; }
.hs-link { font-size: 13px; font-weight: 600; color: var(--primary); text-decoration: none; white-space: nowrap; }
.hs-link:hover { text-decoration: underline; }
.hs-src { display: inline-flex; align-items: center; height: 20px; padding: 0 7px; border-radius: 999px; background: var(--sunk); border: 1px solid var(--line); font-size: 11px; font-weight: 600; color: var(--muted); font-style: normal; font-family: var(--font); white-space: nowrap; }

/* ── 버튼 ─────────────────────────── */
.hs-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 40px; padding: 0 16px; border-radius: var(--r); border: 1px solid transparent;
  font-weight: 700; text-decoration: none; white-space: nowrap; background: none;
}
.hs-btn--primary { background: var(--primary); color: #fff; }
.hs-btn--primary:hover { background: var(--primary-dark); }
.hs-btn--line { border-color: var(--line); background: var(--surface); color: var(--text); }
.hs-btn--line:hover { border-color: var(--primary); color: var(--primary-dark); }
.hs-btn--ghost { border-color: var(--line); color: var(--text); }
.hs-btn--danger { background: var(--danger); color: #fff; }
.hs-btn--sm { min-height: 34px; padding: 0 12px; font-size: 13px; }
.hs-btn--lg { min-height: 50px; padding: 0 28px; font-size: 16px; }
.hs-btn--block { width: 100%; }
.hs-btn:disabled { background: var(--line-soft); color: #8A9892; border-color: var(--line-soft); cursor: not-allowed; }
.hs-iconbtn { display: grid; place-items: center; width: 44px; height: 44px; border: 0; background: none; border-radius: var(--r); }
.hs-iconbtn svg { width: 20px; height: 20px; stroke: currentColor; stroke-width: 1.8; fill: none; }

/* ── 세그먼트·칩 ─────────────────────────── */
.hs-seg { display: flex; gap: 4px; padding: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: calc(var(--r) + 2px); overflow-x: auto; scrollbar-width: none; margin-bottom: 16px; width: max-content; max-width: 100%; }
.hs-seg::-webkit-scrollbar { display: none; }
.hs-seg__btn { flex: none; min-height: 38px; padding: 0 14px; border: 0; border-radius: var(--r); background: none; font-weight: 600; color: var(--muted); white-space: nowrap; }
.hs-seg__btn:hover { color: var(--text); }
.hs-seg__btn.is-on { background: var(--top); color: #fff; }
.hs-seg__btn .num { opacity: .75; margin-left: 2px; }
.hs-seg--sm .hs-seg__btn { min-height: 34px; padding: 0 11px; font-size: 13px; }
.hs-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.hs-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font-weight: 600; font-size: 13px; }
.hs-chip__sw { width: 10px; height: 10px; border-radius: 2px; background: var(--tc); }
.hs-chip[aria-pressed="true"] { border-color: var(--text); box-shadow: inset 0 0 0 1px var(--text); }
.hs-filters { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 16px; }
.hs-filters .hs-seg { margin-bottom: 0; }

.t-hot { --tc: var(--t-hot); --tc-ink: #fff; }
.t-height { --tc: var(--t-height); --tc-ink: #fff; }
.t-confined { --tc: var(--t-confined); --tc-ink: #fff; }
.t-lift { --tc: var(--t-lift); --tc-ink: #231A00; }
.hs-typechip { display: inline-grid; place-items: center; min-width: 44px; height: 24px; padding: 0 8px; border-radius: 4px; background: var(--tc); color: var(--tc-ink); font-size: 12px; font-weight: 700; font-family: var(--font); letter-spacing: 0; flex: none; }

/* ── 상태 ─────────────────────────── */
.hs-status { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; flex: none; }
.hs-status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.hs-status--lg { height: 30px; padding: 0 12px; font-size: 14px; }
.s-review { background: var(--warn-soft); color: var(--warn-text); }
.s-approve { background: #E7EEFB; color: #1E4FA3; }
.s-active { background: var(--ok-soft); color: var(--ok-text); }
.s-closed { background: var(--line-soft); color: var(--muted); }
.s-rejected { background: var(--danger-soft); color: var(--danger-text); }
.hs-state { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 4px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.hs-state--ok { background: var(--ok-soft); color: var(--ok-text); }
.hs-state--warn { background: var(--warn-soft); color: var(--warn-text); }
.hs-state--danger { background: var(--danger-soft); color: var(--danger-text); }
.hs-state--na { background: var(--line-soft); color: var(--muted); }
.hs-pill { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.hs-pill--warn { background: var(--warn-soft); color: var(--warn-text); }
.hs-pill--ok { background: var(--ok-soft); color: var(--ok-text); }
.hs-pill--danger { background: var(--danger-soft); color: var(--danger-text); }

/* ── 패널·그리드 ─────────────────────────── */
.hs-panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px; }
.hs-panel + .hs-panel { margin-top: 16px; }
.hs-panel__head { display: flex; align-items: center; justify-content: space-between; gap: 8px 12px; flex-wrap: wrap; margin-bottom: 14px; }
.hs-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
.hs-grid > .hs-panel + .hs-panel { margin-top: 0; }
.hs-col-4 { grid-column: span 4; }
.hs-col-6 { grid-column: span 6; }
.hs-col-8 { grid-column: span 8; }
.hs-col-12 { grid-column: span 12; }
.hs-empty { padding: 24px; text-align: center; color: var(--muted); }

/* ── 대시보드 ─────────────────────────── */
.hs-kpis { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.hs-kpi { display: flex; flex-direction: column; gap: 6px; padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); text-decoration: none; }
.hs-kpi.is-link:hover { border-color: var(--primary); }
.hs-kpi__label { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 13px; font-weight: 600; color: var(--muted); }
.hs-kpi__value { display: flex; align-items: baseline; gap: 4px; }
.hs-kpi__value b { font-family: var(--display); font-size: 30px; font-weight: 700; line-height: 1.1; letter-spacing: -.02em; }
.hs-kpi__value small { font-size: 13px; color: var(--muted); }
.hs-kpi__note { font-size: 12px; color: var(--muted); margin-top: auto; }
.hs-meter { height: 6px; border-radius: 3px; background: var(--line-soft); overflow: hidden; }
.hs-meter span { display: block; height: 100%; background: var(--primary); border-radius: 3px; transition: width .3s; }

.hs-tablewrap { overflow-x: auto; }
.hs-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.hs-table th, .hs-table td { padding: 11px 10px; border-bottom: 1px solid var(--line-soft); text-align: left; vertical-align: middle; }
.hs-table thead th { font-size: 12px; font-weight: 700; color: var(--muted); border-bottom-color: var(--line); white-space: nowrap; }
.hs-table tbody th strong { display: block; font-weight: 700; }
.hs-table tbody th small { display: block; font-size: 12px; color: var(--muted); font-weight: 500; }
.hs-table .num { text-align: right; white-space: nowrap; }
.hs-table td.is-warn { color: var(--warn-text); font-weight: 700; }
.hs-table td.is-danger { color: var(--danger-text); font-weight: 700; }
.hs-table tbody tr:last-child > * { border-bottom: 0; }

.hs-alerts { display: flex; flex-direction: column; gap: 8px; }
.hs-alert a { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border-radius: var(--r); border: 1px solid var(--line-soft); text-decoration: none; background: var(--sunk); }
.hs-alert a:hover { border-color: var(--line); background: var(--surface); }
.hs-alert__lv { flex: none; display: inline-grid; place-items: center; height: 22px; padding: 0 8px; border-radius: 4px; font-size: 12px; font-weight: 700; }
.hs-alert--danger .hs-alert__lv { background: var(--danger); color: #fff; }
.hs-alert--warn .hs-alert__lv { background: var(--warn); color: #2A1E00; }
.hs-alert strong { display: block; font-weight: 700; }
.hs-alert small { display: block; font-size: 13px; color: var(--muted); }

.hs-legend { display: flex; gap: 16px; font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.hs-legend li { display: flex; align-items: center; gap: 6px; }
.hs-legend__sw { width: 10px; height: 10px; border-radius: 2px; }
.hs-legend__sw.is-found, .hs-chart__bars .is-found { background: var(--found); }
.hs-legend__sw.is-fixed, .hs-chart__bars .is-fixed { background: var(--fixed); }
.hs-chart { position: relative; height: 180px; padding-left: 22px; }
.hs-chart__grid { position: absolute; inset: 0 0 24px 0; display: flex; flex-direction: column; justify-content: space-between; pointer-events: none; }
.hs-chart__grid span { position: relative; font-size: 11px; color: var(--muted); line-height: 0; }
.hs-chart__grid span::after { content: ""; position: absolute; left: 22px; right: 0; top: 0; border-top: 1px solid var(--line-soft); }
.hs-chart__cols { position: relative; display: grid; grid-template-columns: repeat(7, 1fr); height: 100%; }
.hs-chart__day { position: relative; display: flex; flex-direction: column; align-items: center; outline-offset: -2px; border-radius: 4px; }
.hs-chart__day:hover, .hs-chart__day:focus-visible { background: rgba(21, 33, 28, .04); }
.hs-chart__bars { flex: 1; display: flex; align-items: flex-end; gap: 2px; padding-bottom: 0; width: 100%; justify-content: center; }
.hs-chart__bars span { position: relative; width: 14px; border-radius: 4px 4px 0 0; min-height: 2px; }
.hs-chart__bars em { position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); font-style: normal; font-size: 12px; font-weight: 700; color: var(--text); padding-bottom: 2px; }
.hs-chart__x { height: 24px; line-height: 24px; font-size: 11px; color: var(--muted); }
.hs-chart__day[data-tip]:hover::after, .hs-chart__day[data-tip]:focus-visible::after {
  content: attr(data-tip); position: absolute; bottom: calc(100% - 8px); left: 50%; transform: translateX(-50%);
  background: var(--top); color: #fff; font-size: 12px; padding: 6px 8px; border-radius: 4px; white-space: nowrap; z-index: 5; pointer-events: none;
}
.hs-chart__day:first-child[data-tip]:hover::after, .hs-chart__day:first-child[data-tip]:focus-visible::after { left: 0; transform: none; }
.hs-chart__day:last-child[data-tip]:hover::after, .hs-chart__day:last-child[data-tip]:focus-visible::after { left: auto; right: 0; transform: none; }

.hs-ptwmini { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 8px; }
.hs-ptwmini__row { display: flex; align-items: center; gap: 12px; padding: 12px; border: 1px solid var(--line-soft); border-radius: var(--r); text-decoration: none; min-height: 60px; }
.hs-ptwmini__row:hover { border-color: var(--line); background: var(--sunk); }
.hs-ptwmini__main { flex: 1; min-width: 0; }
.hs-ptwmini__main strong { display: block; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hs-ptwmini__main small { display: block; font-size: 12px; color: var(--muted); }

/* ── 작업허가 표찰 ─────────────────────────── */
.hs-tags { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 14px; }
.hs-tag { display: flex; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; text-decoration: none; min-height: 140px; transition: border-color .15s, box-shadow .15s; }
a.hs-tag:hover { border-color: var(--tc); box-shadow: 0 2px 0 var(--tc); }
.hs-tag.is-new { border-style: dashed; border-color: var(--tc); }
.hs-tag__band { flex: none; width: 50px; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 12px 0; background: var(--tc); color: var(--tc-ink); }
.hs-tag__band b { writing-mode: vertical-rl; font-family: var(--display); font-size: 16px; letter-spacing: .08em; font-weight: 700; }
.hs-tag__no { font-size: 12px; font-weight: 700; color: var(--muted); }
.hs-tag__chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.hs-tag__chips span { padding: 2px 8px; border-radius: 4px; background: var(--sunk); border: 1px solid var(--line-soft); font-size: 12px; font-weight: 600; color: var(--muted); }
.hs-tag__chips span.is-bad { background: var(--danger-soft); border-color: #F1B4B4; color: var(--danger-text); }
.hs-tag__hole { width: 14px; height: 14px; border-radius: 50%; background: var(--bg); box-shadow: inset 0 1px 2px rgba(0,0,0,.25); flex: none; }
.hs-tag__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; padding: 14px 16px; }
.hs-tag__top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.hs-tag__valid { font-size: 12px; color: var(--muted); margin-left: auto; }
.hs-tag__work { font-size: 16px; font-weight: 700; line-height: 1.4; }
.hs-tag__where { font-size: 13px; color: var(--muted); }
.hs-tag__foot { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; margin-top: auto; padding-top: 8px; border-top: 1px dashed var(--line); font-size: 12px; color: var(--muted); }

/* ── 작업허가 상세 ─────────────────────────── */
.hs-steps { display: grid; grid-template-columns: repeat(5, 1fr); margin-bottom: 18px; counter-reset: st; }
.hs-steps li { position: relative; counter-increment: st; padding-top: 30px; text-align: center; font-size: 13px; font-weight: 600; color: var(--muted); }
.hs-steps li::before { content: counter(st); position: absolute; top: 0; left: 50%; transform: translateX(-50%); z-index: 1; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); border: 2px solid var(--line); font-size: 12px; font-weight: 700; }
.hs-steps li::after { content: ""; position: absolute; top: 11px; left: -50%; right: 50%; height: 2px; background: var(--line); }
.hs-steps li:first-child::after { display: none; }
.hs-steps li.is-done { color: var(--text); }
.hs-steps li.is-done::before { content: "✓"; background: var(--primary); border-color: var(--primary); color: #fff; }
.hs-steps li.is-done::after, .hs-steps li.is-cur::after, .hs-steps li.is-stop::after { background: var(--primary); }
.hs-steps li.is-cur { color: var(--text); font-weight: 700; }
.hs-steps li.is-cur::before { border-color: var(--accent); background: #FFF3E0; color: #8A4B00; box-shadow: 0 0 0 4px rgba(240, 140, 0, .18); }
.hs-steps li.is-stop { color: var(--danger-text); font-weight: 700; }
.hs-steps li.is-stop::before { content: "!"; background: var(--danger); border-color: var(--danger); color: #fff; }

.hs-permit__grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 16px; align-items: start; }
.hs-permit__side { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 72px; }
.hs-permit__side .hs-panel + .hs-panel { margin-top: 0; }
.hs-dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 20px; }
.hs-dl dt { font-size: 12px; color: var(--muted); font-weight: 600; }
.hs-dl dd { font-weight: 600; }
.hs-dl dd small { color: var(--muted); font-weight: 500; }

.hs-workers { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.hs-worker { display: grid; grid-template-columns: 150px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px; border: 1px solid var(--line-soft); border-radius: var(--r); }
.hs-worker.is-bad { border-color: #F1B4B4; background: #FFF8F8; }
.hs-worker.is-bad .hs-worker__act { grid-column: 1 / -1; justify-content: flex-start; padding-top: 8px; border-top: 1px dashed #F1B4B4; }
.hs-worker.is-out { opacity: .55; }
.hs-worker.is-out .hs-worker__who strong { text-decoration: line-through; }
.hs-worker__who strong { display: block; font-weight: 700; }
.hs-worker__who small { display: block; font-size: 12px; color: var(--muted); }
.hs-worker__needs { display: flex; flex-wrap: wrap; gap: 6px; }
.hs-worker__act { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.hs-need { display: inline-flex; align-items: center; gap: 6px; padding: 4px 8px; white-space: nowrap; border-radius: 4px; font-size: 12px; background: var(--sunk); border: 1px solid var(--line-soft); }
.hs-need b { font-weight: 700; }
.hs-need em { font-style: normal; font-weight: 700; color: var(--primary); }
.hs-need--ok b { color: var(--ok-text); }
.hs-need--soon b { color: var(--warn-text); }
.hs-need--expired, .hs-need--none { background: var(--danger-soft); border-color: #F1B4B4; }
.hs-need--expired b, .hs-need--none b { color: var(--danger-text); }

.hs-checks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 16px; }
.hs-checks li { display: flex; align-items: flex-start; gap: 8px; padding: 6px 0; }
.hs-checks li small { margin-left: auto; font-size: 12px; color: var(--ok-text); font-weight: 700; flex: none; }
.hs-checks__box { flex: none; width: 18px; height: 18px; margin-top: 2px; border-radius: 4px; background: var(--primary) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.2l2.4 2.4 4.6-5' fill='none' stroke='%23fff' stroke-width='1.8'/%3E%3C/svg%3E") center / 12px no-repeat; }

.hs-gas { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.hs-gas__item { padding: 12px; border-radius: var(--r); background: var(--sunk); border: 1px solid var(--line-soft); }
.hs-gas__label { font-size: 12px; font-weight: 700; color: var(--muted); }
.hs-gas__val b { font-family: var(--display); font-size: 24px; font-weight: 700; }
.hs-gas__val small { font-size: 12px; color: var(--muted); margin-left: 2px; }
.hs-gas__rule { font-size: 12px; color: var(--muted); display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }

.hs-linked { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; padding: 12px; border-radius: var(--r); background: var(--primary-soft); margin-bottom: 12px; }
.hs-linked__ws { font-weight: 700; }
.hs-linked__ws .num { color: var(--primary-dark); margin-right: 4px; }
.hs-risks { display: flex; flex-direction: column; gap: 10px; }
.hs-risks li { display: flex; gap: 10px; align-items: flex-start; }
.hs-risks strong { display: block; font-weight: 700; }
.hs-risks small { display: block; font-size: 13px; color: var(--muted); }
.hs-risk { flex: none; display: inline-grid; place-items: center; height: 22px; padding: 0 7px; border-radius: 4px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.hs-risk--hi { background: var(--danger); color: #fff; }
.hs-risk--mid { background: var(--warn); color: #2A1E00; }
.hs-risk--lo { background: var(--line-soft); color: var(--muted); }

.hs-bigtag { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.hs-bigtag__band { display: flex; align-items: center; gap: 10px; padding: 12px 16px; background: var(--tc); color: var(--tc-ink); font-family: var(--display); font-size: 17px; letter-spacing: .04em; }
.hs-bigtag__body { position: relative; padding: 16px; min-height: 150px; }
.hs-bigtag__no { font-family: var(--display); font-weight: 700; font-size: 20px; margin-bottom: 8px; }
.hs-bigtag dl { display: flex; flex-direction: column; gap: 4px; font-size: 13px; }
.hs-bigtag dl div { display: flex; gap: 10px; padding: 4px 0; border-bottom: 1px dashed var(--line); margin-right: 96px; }
.hs-bigtag dt { width: 44px; color: var(--muted); flex: none; }
.hs-bigtag dd { font-weight: 600; }
.hs-stamp { position: absolute; right: 14px; bottom: 12px; display: grid; place-items: center; width: 86px; height: 86px; border-radius: 50%; border: 3px solid currentColor; font-family: var(--display); font-size: 22px; font-weight: 700; letter-spacing: .1em; transform: rotate(-12deg); background: rgba(255,255,255,.7); box-shadow: inset 0 0 0 4px rgba(255,255,255,.7), inset 0 0 0 5px currentColor; }
.hs-stamp--ok { color: var(--ok); }
.hs-stamp--done { color: #5F6D67; }
.hs-stamp--bad { color: var(--danger); }
.hs-stamp.is-new { animation: hs-stamp .45s cubic-bezier(.2, 1.4, .4, 1) both; }
@keyframes hs-stamp { from { transform: rotate(-12deg) scale(2.2); opacity: 0; } to { transform: rotate(-12deg) scale(1); opacity: 1; } }

.hs-actions [data-hse--permit-target="actions"] { display: flex; flex-direction: column; gap: 8px; }
.hs-actnote { font-size: 13px; color: var(--muted); padding: 10px 12px; border-radius: var(--r); background: var(--sunk); }
.hs-actnote.is-danger { background: var(--danger-soft); color: var(--danger-text); font-weight: 600; }
.hs-actnote.is-ok { background: var(--ok-soft); color: var(--ok-text); font-weight: 600; }
.hs-reject { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line-soft); display: flex; flex-direction: column; gap: 6px; }
.hs-reject__title { font-weight: 700; font-size: 13px; }
.hs-reject__btns { display: flex; gap: 8px; justify-content: flex-end; margin-top: 8px; }
.hs-radio { display: flex; align-items: center; gap: 8px; min-height: 36px; font-size: 14px; }
.hs-radio input { width: 18px; height: 18px; accent-color: var(--danger); }
.hs-log { display: flex; flex-direction: column; }
.hs-log li { display: flex; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line-soft); font-size: 13px; }
.hs-log li:last-child { border-bottom: 0; }
.hs-log .num { flex: none; color: var(--muted); width: 74px; }
.hs-log b { display: block; }
.hs-log small { display: block; color: var(--muted); }

/* ── 신청서 ─────────────────────────── */
.hs-form { max-width: 920px; }
.hs-stepno { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--top); color: #fff; font-size: 13px; font-family: var(--font); }
.hs-types { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.hs-typecard { position: relative; display: flex; flex-direction: column; gap: 2px; padding: 14px 14px 14px 22px; border: 1px solid var(--line); border-radius: var(--r); cursor: pointer; min-height: 72px; overflow: hidden; }
.hs-typecard input { position: absolute; opacity: 0; }
.hs-typecard__band { position: absolute; left: 0; top: 0; bottom: 0; width: 8px; background: var(--tc); }
.hs-typecard b { font-size: 15px; }
.hs-typecard small { font-size: 12px; color: var(--muted); }
.hs-typecard:has(input:checked) { border-color: var(--tc); box-shadow: inset 0 0 0 2px var(--tc); background: var(--sunk); }
.hs-typecard:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.hs-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; }
.hs-field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: var(--muted); }
.hs-field > span { display: flex; align-items: center; gap: 6px; }
.hs-field--wide { grid-column: 1 / -1; }
.hs-field--inline { flex-direction: row; align-items: center; gap: 10px; margin-bottom: 10px; }
.hs-field input, .hs-field select, .hs-select {
  height: 44px; padding: 0 12px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); color: var(--text); font-size: 15px; font-weight: 500; width: 100%; min-width: 0;
}
.hs-field--inline select { width: auto; min-width: 160px; }
.hs-select { height: 38px; width: auto; font-size: 14px; }
.hs-raload { margin-top: 14px; padding: 14px; border-radius: var(--r); border: 1px solid #BFDCD0; background: var(--primary-soft); }
.hs-raload:empty { display: none; }
.hs-raload__head { display: flex; flex-direction: column; gap: 2px; margin-bottom: 10px; }
.hs-raload__head b { color: var(--primary-dark); }
.hs-raload__head span { font-size: 12px; color: var(--muted); }
.hs-risks--sm { gap: 8px; }

.hs-pick { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.hs-pick__item { border: 1px solid var(--line); border-radius: var(--r); }
.hs-pick__item.is-bad { border-color: #F1B4B4; background: #FFF8F8; }
.hs-pick__item label { display: flex; align-items: center; gap: 10px; padding: 10px 12px; cursor: pointer; min-height: 56px; }
.hs-pick__item input, .hs-check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.hs-pick__who { flex: 1; }
.hs-pick__who strong { display: block; }
.hs-pick__who small { display: block; font-size: 12px; color: var(--muted); }
.hs-pick__why { padding: 0 12px 10px 40px; font-size: 12px; color: var(--danger-text); font-weight: 600; }
.hs-check__box { flex: none; width: 20px; height: 20px; border-radius: 4px; border: 2px solid #9BAAA3; background: var(--surface); }
input:checked + .hs-check__box { background: var(--primary) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.2l2.4 2.4 4.6-5' fill='none' stroke='%23fff' stroke-width='1.8'/%3E%3C/svg%3E") center / 12px no-repeat; border-color: var(--primary); }
input:focus-visible + .hs-check__box { outline: 2px solid var(--accent); outline-offset: 2px; }
.hs-checklist { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 16px; }
.hs-check { display: flex; align-items: center; gap: 10px; min-height: 44px; cursor: pointer; }
.hs-gasin { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line-soft); }
.hs-gasin__title { font-weight: 700; margin-bottom: 10px; }
.hs-gasin__title small { font-weight: 500; color: var(--muted); font-size: 12px; }
.hs-gasin__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.hs-gasin__item { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; }
.hs-gasin__item small { display: block; font-weight: 500; color: var(--muted); font-size: 11px; }
.hs-gasin__input { display: flex; align-items: center; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.hs-gasin__input input { flex: 1; min-width: 0; height: 42px; padding: 0 10px; border: 0; background: none; font-size: 16px; font-weight: 600; }
.hs-gasin__input em { font-style: normal; color: var(--muted); font-size: 12px; padding-right: 10px; }
.hs-gasin__item .hs-state { align-self: flex-start; }
.hs-submit { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; margin-top: 16px; }
.hs-missing { display: flex; flex-direction: column; gap: 4px; align-self: stretch; }
.hs-missing:empty { display: none; }
.hs-missing li { padding: 8px 12px; border-radius: var(--r); background: var(--danger-soft); color: var(--danger-text); font-weight: 600; font-size: 13px; }
.hs-done { max-width: 560px; }
.hs-done__panel { display: flex; flex-direction: column; gap: 14px; }
.hs-done__btns { display: flex; gap: 8px; flex-wrap: wrap; }

/* ── 교육·자격 ─────────────────────────── */
.hs-rules { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.hs-rules li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 10px; align-items: start; padding: 12px; border: 1px solid var(--line-soft); border-radius: var(--r); border-top: 3px solid var(--tc); }
.hs-rules li > div { min-width: 0; }
.hs-rules__count { grid-column: 2; }
.hs-rules strong { display: block; }
.hs-rules small { display: block; font-size: 12px; color: var(--muted); }
.hs-rules__count { font-size: 12px; font-weight: 700; color: var(--ok-text); white-space: nowrap; }
.hs-inline { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.hs-toggle { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; min-height: 38px; }
.hs-toggle input { width: 18px; height: 18px; accent-color: var(--primary); }
.hs-matrix th, .hs-matrix td { padding: 8px 6px; }
.hs-matrix thead th { text-align: center; }
.hs-matrix thead th:first-child { text-align: left; }
.hs-cell { text-align: center; }
.hs-cell.is-na { color: #A3AFAA; }
.hs-cellbtn { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; min-width: 70px; min-height: 44px; padding: 4px 6px; border-radius: 4px; border: 1px solid transparent; background: none; line-height: 1.25; }
.hs-cellbtn b { font-size: 12px; }
.hs-cellbtn small { font-size: 11px; color: var(--muted); }
.hs-cellbtn--ok { background: var(--ok-soft); }
.hs-cellbtn--ok b { color: var(--ok-text); }
.hs-cellbtn--soon { background: var(--warn-soft); border-color: #F2D48A; }
.hs-cellbtn--soon b { color: var(--warn-text); }
.hs-cellbtn--expired, .hs-cellbtn--none { background: var(--danger-soft); border-color: #F1B4B4; }
.hs-cellbtn--expired b, .hs-cellbtn--none b { color: var(--danger-text); }
.hs-cellbtn.is-fresh { box-shadow: 0 0 0 2px var(--primary); }
.hs-cellbtn:hover { border-color: var(--text); }
.hs-cell-cert { font-size: 12px; color: var(--muted); white-space: nowrap; }
.hs-issues { display: flex; flex-direction: column; gap: 12px; margin-bottom: 14px; }
.hs-issues__partner { font-size: 12px; font-weight: 700; color: var(--muted); margin-bottom: 4px; }
.hs-issues ul { display: flex; flex-direction: column; gap: 6px; }
.hs-issues ul li { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.hs-issues ul li strong { margin-right: 2px; }
.hs-modal { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; padding: 16px; }
.hs-modal__panel { position: relative; width: min(480px, 100%); background: var(--surface); border-radius: calc(var(--r) + 4px); padding: 20px; display: flex; flex-direction: column; gap: 12px; box-shadow: 0 20px 50px rgba(0,0,0,.25); }
.hs-file { display: flex; align-items: center; justify-content: space-between; height: 44px; padding: 0 12px; border: 1px dashed var(--line); border-radius: var(--r); color: var(--text); font-weight: 500; }
.hs-file small { color: var(--ok-text); font-weight: 700; }

/* ── 점검·시정조치 ─────────────────────────── */
.hs-progress { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.hs-progress .hs-meter { flex: 1; height: 8px; }
.hs-insp { border: 0; padding: 0; margin-bottom: 14px; }
.hs-insp legend { padding: 0; font-size: 12px; font-weight: 700; color: var(--muted); margin-bottom: 6px; }
.hs-insp__item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line-soft); }
.hs-insp__item.is-ng { background: #FFF8F8; margin: 0 -10px; padding: 10px; border-radius: var(--r); border-bottom-color: transparent; }
.hs-insp__label { font-weight: 600; }
.hs-insp__opts { display: flex; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.hs-opt { min-height: 38px; padding: 0 12px; border: 0; background: var(--surface); font-size: 13px; font-weight: 600; color: var(--muted); }
.hs-opt + .hs-opt { border-left: 1px solid var(--line); }
.hs-opt--ok.is-on { background: var(--ok); color: #fff; }
.hs-opt--ng.is-on { background: var(--danger); color: #fff; }
.hs-opt--na.is-on { background: #6B7A74; color: #fff; }
.hs-insp__reg { grid-column: 1 / -1; font-size: 13px; color: var(--danger-text); font-weight: 600; }
.hs-ngform { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 10px; padding-top: 4px; }
.hs-ngform__photos { display: flex; gap: 8px; flex-wrap: wrap; }
.hs-photo { position: relative; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; width: 84px; height: 64px; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); background: var(--sunk); }
.hs-photo svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.hs-photo--before svg rect { fill: #7A8A84; }
.hs-photo--before svg path { fill: #5B6964; }
.hs-photo--before svg circle { fill: #C9D1CD; }
.hs-photo--after svg rect { fill: #6FA58C; }
.hs-photo--after svg path { fill: #4C8A6E; }
.hs-photo--after svg circle { fill: #E3F1EC; }
.hs-photo small { position: absolute; left: 0; right: 0; bottom: 0; padding: 1px 4px; background: rgba(18, 32, 27, .72); color: #fff; font-size: 11px; text-align: center; }
.hs-photo--add { border-style: dashed; background: var(--surface); color: var(--muted); cursor: pointer; }
.hs-photo--add span { font-size: 22px; line-height: 1; }
.hs-photo--add small { position: static; background: none; color: var(--muted); }
.hs-cas { display: flex; flex-direction: column; gap: 10px; }
.hs-ca { padding: 14px; border: 1px solid var(--line); border-radius: var(--r); display: flex; flex-direction: column; gap: 6px; }
.hs-ca.is-late { border-color: #F1B4B4; box-shadow: inset 3px 0 0 var(--danger); }
.hs-ca.is-fresh { border-style: dashed; border-color: var(--primary); }
.hs-ca__top { display: flex; align-items: center; gap: 8px; }
.hs-ca__id { font-size: 12px; color: var(--muted); }
.hs-ca__title { font-size: 15px; }
.hs-ca__meta { font-size: 13px; color: var(--muted); }
.hs-ca__bottom { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 4px; }
.hs-ca__photos { display: flex; gap: 8px; }
.hs-ca__photos .hs-photo { width: 72px; height: 54px; }
.hs-ca__act { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; margin-left: auto; }
.hs-ca__act .hs-actnote { padding: 6px 10px; font-size: 12px; }
.hs-castatus { margin-left: auto; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
.c-request { background: var(--danger-soft); color: var(--danger-text); }
.c-doing { background: var(--warn-soft); color: var(--warn-text); }
.c-done { background: #E7EEFB; color: #1E4FA3; }
.c-closed { background: var(--ok-soft); color: var(--ok-text); }
.hs-late { color: var(--danger-text); }

/* ── 알림·대응표 ─────────────────────────── */
.hs-toast { position: fixed; left: 50%; bottom: 48px; transform: translateX(-50%); z-index: 80; max-width: min(560px, calc(100% - 32px)); padding: 12px 16px; border-radius: var(--r); background: var(--top); color: #fff; font-size: 14px; font-weight: 600; box-shadow: 0 10px 30px rgba(0,0,0,.25); }
.hs-mapbtn { position: fixed; right: 20px; bottom: 44px; z-index: 50; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 0; background: var(--accent); color: #241400; font-weight: 700; box-shadow: 0 6px 18px rgba(0,0,0,.18); }
.hs-sheet { position: fixed; inset: 0; z-index: 90; display: flex; justify-content: flex-end; }
.hs-sheet__scrim { position: absolute; inset: 0; background: rgba(10, 20, 16, .45); }
.hs-sheet__panel { position: relative; width: min(520px, 100%); height: 100%; overflow-y: auto; background: var(--surface); padding: 12px 20px 40px; }
.hs-sheet__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.hs-sheet__head h2 { font-family: var(--display); font-size: 18px; }
.hs-map { display: flex; flex-direction: column; }
.hs-map li { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line-soft); }
.hs-map__no { flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--top); color: #fff; font-size: 13px; font-weight: 700; }
.hs-map__req { font-weight: 700; }
.hs-map__shown { font-size: 13px; color: var(--muted); margin: 2px 0 6px; }
.hs-map a { font-size: 13px; font-weight: 700; color: var(--primary); }
.hs-sheet__foot { margin-top: 16px; font-size: 13px; color: var(--muted); }
.demo-notice {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
  height: 28px; display: flex; align-items: center; justify-content: center; padding: 0 12px;
  background: #DDE3E0; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; text-align: center;
}

/* ── 반응형 ─────────────────────────── */
@media (max-width: 1180px) {
  .hs-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hs-permit__grid { grid-template-columns: 1fr; }
  .hs-permit__side { position: static; display: grid; grid-template-columns: 1fr 1fr; order: -1; }
  .hs-permit__side .hs-bigtag { grid-column: 1 / -1; }
  .hs-rules { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hs-col-4, .hs-col-8 { grid-column: span 12; }
}

@media (max-width: 860px) {
  body.hs { padding-bottom: 92px; }
  .hs-top { height: 52px; gap: 10px; padding: 0 12px; }
  .hs-brand { width: auto; }
  .hs-brand__name { font-size: 15px; }
  .hs-top__ctx, .hs-role__label, .hs-top__reset { display: none; }
  .hs-role select { height: 34px; max-width: 132px; font-size: 13px; }
  .hs-shell { display: block; }
  .hs-side { display: none; }
  .hs-main { padding: 16px 16px 48px; }
  .hs-tabs {
    display: grid; grid-template-columns: repeat(4, 1fr);
    position: fixed; left: 0; right: 0; bottom: 28px; z-index: 46; height: 64px;
    background: var(--surface); border-top: 1px solid var(--line);
  }
  .hs-tabs a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; text-decoration: none; font-size: 12px; font-weight: 600; color: var(--muted); }
  .hs-tabs a .hs-ico { width: 22px; height: 22px; }
  .hs-tabs a.is-active { color: var(--primary-dark); box-shadow: inset 0 3px 0 var(--primary); }
  .hs-mapbtn { bottom: 104px; right: 12px; min-height: 40px; padding: 0 14px; font-size: 13px; }
  .hs-toast { bottom: 104px; }
  .hs-head { flex-wrap: wrap; align-items: flex-start; }
  .hs-h1 { font-size: 21px; }
  .hs-panel { padding: 16px; }
  .hs-grid { display: flex; flex-direction: column; }
  .hs-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .hs-kpis > :first-child { grid-column: 1 / -1; }
  .hs-kpi { padding: 14px; }
  .hs-kpi__value b { font-size: 26px; }
  .hs-seg { width: auto; }
  .hs-filters { flex-direction: column; align-items: stretch; }
  .hs-tags { grid-template-columns: 1fr; }
  .hs-ptwmini { grid-template-columns: 1fr; }
  .hs-permit__side { display: flex; }
  .hs-dl { grid-template-columns: 1fr; }
  .hs-worker { grid-template-columns: 1fr; gap: 8px; }
  .hs-worker__act { justify-content: flex-start; }
  .hs-checks, .hs-checklist, .hs-pick, .hs-fields { grid-template-columns: 1fr; }
  .hs-gas, .hs-gasin__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hs-types { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hs-rules { grid-template-columns: 1fr; }
  .hs-submit .hs-btn--lg { width: 100%; }
  .hs-insp__item { grid-template-columns: 1fr; }
  .hs-insp__opts { width: 100%; }
  .hs-opt { flex: 1; min-height: 44px; }
  .hs-steps li { font-size: 12px; }

  /* 표 → 카드 */
  .hs-cards-sm thead { display: none; }
  .hs-cards-sm, .hs-cards-sm tbody { display: block; }
  .hs-cards-sm tr { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 12px; padding: 12px 0; border-bottom: 1px solid var(--line-soft); }
  .hs-cards-sm tr:last-child { border-bottom: 0; }
  .hs-cards-sm th, .hs-cards-sm td { display: flex; justify-content: space-between; gap: 8px; padding: 2px 0; border: 0; font-size: 13px; }
  .hs-cards-sm td::before { content: attr(data-label); color: var(--muted); font-weight: 500; }
  .hs-cards-sm tbody th { grid-column: 1 / -1; display: flex; align-items: baseline; justify-content: flex-start; gap: 8px; font-size: 15px; }
  .hs-cards-sm tbody th strong, .hs-cards-sm tbody th small { display: inline; }
  .hs-cards-sm td[data-label="상태"] { grid-column: 1 / -1; }

  .hs-matrix thead { display: none; }
  .hs-matrix, .hs-matrix tbody { display: block; }
  .hs-matrix tr { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; padding: 12px 0; border-bottom: 1px solid var(--line-soft); }
  .hs-matrix th, .hs-matrix td { padding: 0; border: 0; }
  .hs-matrix tbody th { grid-column: 1 / -1; }
  .hs-matrix tbody th strong, .hs-matrix tbody th small { display: inline; margin-right: 6px; }
  .hs-matrix td.is-na { display: none; }
  .hs-matrix td.hs-cell::before, .hs-matrix td.hs-cell-cert::before { content: attr(data-label); display: block; font-size: 11px; color: var(--muted); margin-bottom: 2px; text-align: left; }
  .hs-matrix .hs-cellbtn { width: 100%; }
  .hs-matrix td.hs-cell-cert { white-space: normal; text-align: left; font-size: 13px; color: var(--text); }
}

@media (prefers-reduced-motion: reduce) {
  .hs-stamp.is-new { animation: none; }
  .hs-meter span { transition: none; }
}
