:root {
  --bg: #f3f5f7; --surface: #fff; --text: #1b2733; --muted: #5d6b78; --line: #dde3e9;
  --brand: #14324a; --accent: #1f6fb2; --ok: #2fb36d;
  --high: #d7263d; --high-bg: #fde8eb; --mid: #e07b00; --mid-bg: #fff1dd; --low: #2e8b57; --low-bg: #e6f5ec; --none: #7a8794; --none-bg: #eef1f4;
  --radius: 14px; --shadow: 0 1px 3px rgba(20, 50, 74, .08), 0 4px 14px rgba(20, 50, 74, .06);
  font-size: 17px;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #0f1820; --surface: #182531; --text: #e8eef3; --muted: #9fb0bf; --line: #2a3a49;
    --high-bg: #3d1a20; --mid-bg: #3a2a12; --low-bg: #16302a; --none-bg: #222f3b; --accent: #5aa7e6; }
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--text); font-family: "Pretendard", "Malgun Gothic", "Apple SD Gothic Neo", system-ui, sans-serif; line-height: 1.5; -webkit-text-size-adjust: 100%; }
a { color: var(--accent); }
h1 { font-size: 1.35rem; margin: 0 0 .25rem; line-height: 1.35; }
h2 { font-size: 1.05rem; }
.muted { color: var(--muted); } .small { font-size: .85rem; } .center { text-align: center; }
.row { display: flex; align-items: center; } .between { justify-content: space-between; } .gap { gap: .5rem; } .wrap { flex-wrap: wrap; }
.row.center { justify-content: center; } .stack { display: grid; gap: .9rem; }

.topbar { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: .75rem; padding: .6rem 1rem; padding-top: max(.6rem, env(safe-area-inset-top)); background: var(--brand); color: #fff; }
.brand { display: flex; align-items: center; gap: .5rem; color: #fff; text-decoration: none; font-weight: 700; font-size: 1.05rem; white-space: nowrap; }
.sync { flex: 1; font-size: .78rem; opacity: .9; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: right; }
.dot { display: inline-block; width: .55rem; height: .55rem; border-radius: 50%; margin-right: .35rem; vertical-align: middle; }
.dot.on { background: #4ade80; } .dot.off { background: #fbbf24; }
.sos { background: var(--high); color: #fff; font-weight: 800; text-decoration: none; padding: .55rem .9rem; border-radius: 999px; white-space: nowrap; box-shadow: 0 0 0 2px rgba(255,255,255,.25); }
body.admin-mode .sos { display: none; }

main { max-width: 1100px; margin: 0 auto; padding: 1rem; padding-bottom: 5rem; display: grid; gap: 1rem; }
main:focus { outline: none; }
.card { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.1rem; }
.card.narrow { max-width: 460px; margin: 2rem auto; width: 100%; }
.section-title { margin: .5rem 0 .6rem; }
.label { font-size: .95rem; margin: 1rem 0 .5rem; }
.back { text-decoration: none; font-weight: 600; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: .35rem; min-height: 44px; padding: .55rem 1rem; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; }
.btn:hover { border-color: var(--accent); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.danger { background: var(--high); border-color: var(--high); color: #fff; }
.btn.big { min-height: 56px; font-size: 1.05rem; padding: .7rem 1.4rem; }
.btn.small { min-height: 36px; padding: .3rem .7rem; font-size: .85rem; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.field { display: grid; gap: .3rem; font-weight: 600; font-size: .9rem; }
input, select, textarea { font: inherit; color: var(--text); background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: .6rem .75rem; min-height: 44px; width: 100%; }
.row input, .row select { width: auto; }
textarea { resize: vertical; }

.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }
.tile { display: grid; gap: .25rem; padding: 1.3rem; border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); text-decoration: none; color: var(--text); border-left: 6px solid var(--accent); min-height: 130px; }
.tile strong { font-size: 1.25rem; } .tile span:last-child { color: var(--muted); font-size: .9rem; }
.tile-icon { font-size: 2rem; }
.tile.risk { border-left-color: var(--mid); } .tile.emergency { border-left-color: var(--high); }
.tile.disabled { opacity: .55; border-left-color: var(--line); }

.chips { display: flex; gap: .5rem; overflow-x: auto; padding-bottom: .25rem; scrollbar-width: thin; }
.chip { flex: none; min-height: 44px; padding: .45rem 1rem; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font: inherit; font-weight: 600; cursor: pointer; }
.chip.on { background: var(--brand); color: #fff; border-color: var(--brand); }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: .8rem; }
.risk-card { display: grid; gap: .35rem; padding: 1rem; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); color: var(--text); text-decoration: none; border-left: 6px solid var(--none); }
.risk-card.g-high, .detail.g-high { border-left-color: var(--high); } .risk-card.g-mid, .detail.g-mid { border-left-color: var(--mid); } .risk-card.g-low, .detail.g-low { border-left-color: var(--low); }
.detail { border-left: 6px solid var(--none); }
.risk-head { display: flex; align-items: center; justify-content: space-between; gap: .5rem; flex-wrap: wrap; }
.hazard { margin: 0; font-weight: 600; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.risk-card p { margin: 0; }
.badge { display: inline-block; padding: .15rem .6rem; border-radius: 999px; font-weight: 800; font-size: .85rem; }
.badge.big { font-size: 1rem; padding: .3rem .8rem; }
.badge.g-high { background: var(--high-bg); color: var(--high); } .badge.g-mid { background: var(--mid-bg); color: var(--mid); }
.badge.g-low { background: var(--low-bg); color: var(--low); } .badge.g-none { background: var(--none-bg); color: var(--none); }
.cat { font-size: .88rem; color: var(--muted); font-weight: 600; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: .5rem 1rem; margin: 1rem 0 0; }
.facts div { background: var(--bg); border-radius: 10px; padding: .55rem .75rem; }
.facts dt { font-size: .78rem; color: var(--muted); } .facts dd { margin: 0; font-weight: 600; }
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.checklist li { padding: .7rem .9rem .7rem 2.4rem; background: var(--low-bg); border-radius: 10px; position: relative; font-weight: 600; }
.checklist li::before { content: "✔"; position: absolute; left: .9rem; color: var(--low); }

.action-flag { color: var(--high); font-weight: 700; font-size: .88rem; }
.status-box { margin: 0; padding: .7rem .9rem; border-radius: 10px; font-weight: 700; }
.status-box.ok { background: var(--low-bg); color: var(--low); }
.status-box.bad { background: var(--high-bg); color: var(--high); }
.checklist.plan li { background: var(--mid-bg); }
.checklist.plan li::before { content: "🔧"; }
.levels-edit { display: grid; gap: .4rem; }
.levels-edit .row input { width: 6rem; }

.tile.equip { border-left-color: var(--accent); }
.warn { color: var(--high); }
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: .6rem; }
.stat { background: var(--bg); border-radius: 12px; padding: .7rem; display: grid; text-align: center; border-top: 4px solid var(--line); }
.stat strong { font-size: 1.6rem; } .stat span { font-size: .85rem; color: var(--muted); }
.stat.g-high { border-top-color: var(--high); } .stat.g-mid { border-top-color: var(--mid); } .stat.g-none { border-top-color: var(--none); }
.eq-card summary { cursor: pointer; list-style: none; }
.eq-card summary::-webkit-details-marker { display: none; }
.eq-icon { font-size: 1.3rem; }
.insp { border: 1px solid var(--line); border-radius: 12px; padding: .7rem .8rem; display: grid; gap: .5rem; }
.complete-form { background: var(--low-bg); padding: .6rem; border-radius: 10px; }
.law-list { margin: 0; padding-left: 1.2rem; display: grid; gap: .35rem; }
.btn.danger-outline { color: var(--high); border-color: var(--high); }

.emergency-top { background: var(--high); color: #fff; border-radius: var(--radius); padding: 1.1rem; }
.emergency-top h1 { margin-bottom: .8rem; }
.grid.scen { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.scenario { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .3rem; min-height: 110px; background: #fff; color: var(--high); font-weight: 800; font-size: 1.05rem; border-radius: 12px; text-decoration: none; text-align: center; padding: .6rem; }
.scenario span { font-size: 2.1rem; }
.contacts { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.contacts li { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: .6rem .2rem; border-bottom: 1px solid var(--line); }
.contacts li div { display: grid; }
.tel { font-weight: 800; font-size: 1.1rem; text-decoration: none; white-space: nowrap; }
.map { width: 100%; border-radius: 10px; margin-top: .5rem; }
.big-text { font-size: 1.15rem; font-weight: 700; }
.scenario-detail h1 { display: flex; align-items: center; gap: .5rem; font-size: 1.6rem; }
.steps { margin: 1rem 0 0; padding-left: 0; list-style: none; counter-reset: s; display: grid; gap: .7rem; }
.steps li { counter-increment: s; position: relative; padding: .8rem .9rem .8rem 3.2rem; background: var(--bg); border-radius: 12px; font-size: 1.08rem; font-weight: 600; }
.steps li::before { content: counter(s); position: absolute; left: .8rem; top: .7rem; width: 1.8rem; height: 1.8rem; border-radius: 50%; background: var(--high); color: #fff; display: grid; place-items: center; font-weight: 800; }
.call-bar { position: fixed; left: 0; right: 0; bottom: 0; display: flex; gap: .6rem; padding: .7rem 1rem; padding-bottom: max(.7rem, env(safe-area-inset-bottom)); background: var(--surface); box-shadow: 0 -2px 12px rgba(0,0,0,.12); }
.call-bar .btn { flex: 1; }

#toast { position: fixed; left: 50%; bottom: 1.5rem; transform: translate(-50%, 150%); background: #1b2733; color: #fff; padding: .75rem 1.1rem; border-radius: 10px; max-width: calc(100% - 2rem); transition: transform .25s; z-index: 50; }
#toast.show { transform: translate(-50%, 0); }

/* ── 정리된 목록 레이아웃 (위험성평가·설비 공통) ── */
body:not(.admin-mode) main { max-width: 860px; }
.page-head { display: grid; gap: .35rem; padding: .25rem .25rem 0; }
.page-head h1 { font-size: 1.5rem; margin: 0; }
.page-head p { margin: 0; }
.chip-bar { position: sticky; top: 3.4rem; z-index: 5; background: var(--bg); padding: .35rem 0; margin: -.25rem 0; }
.card-title { font-size: 1.08rem; margin: 0 0 .7rem; display: flex; align-items: baseline; gap: .5rem; flex-wrap: wrap; }
.card-title small, h4.sub small, .page-head small { font-weight: 500; color: var(--muted); font-size: .8rem; }
.pad { padding: .8rem .2rem; margin: 0; }
.btn.ghost { background: transparent; }

.list { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--surface); }
.list + .list { margin-top: .6rem; }
.row-item { display: flex; align-items: center; gap: .75rem; padding: .8rem .9rem; color: var(--text); text-decoration: none; border-top: 1px solid var(--line); min-height: 56px; }
.row-item:first-child { border-top: 0; }
a.row-item:hover { background: var(--bg); }
.row-item.static { align-items: flex-start; }
.row-body { flex: 1; min-width: 0; display: grid; gap: .2rem; }
.row-title { font-weight: 700; line-height: 1.35; }
.row-sub { font-size: .88rem; color: var(--muted); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.row-meta { display: flex; flex-wrap: wrap; gap: .3rem .5rem; align-items: center; font-size: .78rem; }
.chev { color: var(--muted); font-size: 1.4rem; line-height: 1; }
.score-pill { flex: none; width: 2.4rem; height: 2.4rem; border-radius: 10px; display: grid; place-items: center; font-weight: 800; font-size: 1.05rem; background: var(--none-bg); color: var(--none); }
.score-pill.g-high { background: var(--high-bg); color: var(--high); }
.score-pill.g-mid { background: var(--mid-bg); color: var(--mid); }
.score-pill.g-low { background: var(--low-bg); color: var(--low); }
.acc { display: inline-flex; align-items: center; gap: .2rem; padding: .1rem .5rem; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); font-size: .78rem; font-weight: 600; color: var(--text); white-space: nowrap; }
.flag { display: inline-block; padding: .1rem .5rem; border-radius: 999px; background: var(--high-bg); color: var(--high); font-weight: 700; font-size: .76rem; white-space: nowrap; }
.eq-ico { flex: none; width: 2.4rem; height: 2.4rem; border-radius: 10px; background: var(--bg); display: grid; place-items: center; font-size: 1.25rem; }
.row-item .badge { flex: none; }

.toolbar { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-bottom: .8rem; }
.toolbar input[type=search] { flex: 1 1 220px; width: auto; }
.toolbar select { width: auto; }
.toggle { display: inline-flex; align-items: center; gap: .4rem; font-size: .9rem; font-weight: 600; min-height: 44px; padding: 0 .4rem; cursor: pointer; }
.toggle input { width: 1.15rem; height: 1.15rem; min-height: 0; }

.place-head { font-size: .92rem; color: var(--muted); margin: 1.1rem 0 .5rem; padding-bottom: .3rem; border-bottom: 2px solid var(--line); }
.place-head:first-child { margin-top: 0; }
.group { border: 1px solid var(--line); border-radius: 12px; margin-bottom: .5rem; background: var(--surface); }
.group > summary { display: flex; align-items: center; gap: .7rem; padding: .7rem .9rem; cursor: pointer; list-style: none; min-height: 56px; }
.group > summary::-webkit-details-marker { display: none; }
.group > summary::after { content: "⌄"; color: var(--muted); font-size: 1.2rem; transition: transform .2s; }
.group[open] > summary::after { transform: rotate(180deg); }
.g-title { flex: 1; font-weight: 700; }
.g-badges { display: flex; gap: .4rem; align-items: center; }
.count { font-size: .8rem; color: var(--muted); font-weight: 600; }
.g-body { padding: 0 .9rem .9rem; display: grid; gap: .3rem; }
h4.sub { margin: .7rem 0 .3rem; font-size: .88rem; }
.workbox { background: var(--bg); border-radius: 10px; padding: .7rem .9rem; }
.workbox h4 { margin: 0 0 .4rem; font-size: .88rem; }
.workbox ul { margin: 0; padding: 0; list-style: none; display: grid; gap: .4rem; }
.workbox li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .3rem .6rem; font-size: .9rem; }
.acc-list { display: inline-flex; flex-wrap: wrap; gap: .25rem; }

/* 상세 화면 */
.eyebrow { margin: 0 0 .2rem; font-size: .85rem; color: var(--muted); font-weight: 600; }
.detail h1 { font-size: 1.4rem; margin-bottom: .5rem; }
.acc-row { display: flex; flex-wrap: wrap; gap: .35rem; align-items: center; margin-bottom: .9rem; }
.callout { background: var(--mid-bg); border-left: 4px solid var(--mid); border-radius: 10px; padding: .8rem 1rem; margin: .2rem 0 1rem; }
.callout strong { display: block; margin-bottom: .3rem; }
.callout p { margin: 0; font-size: 1.02rem; line-height: 1.55; }
.callout ul { margin: 0; padding-left: 1.1rem; display: grid; gap: .25rem; }
.risk-strip { display: flex; align-items: stretch; gap: .6rem; margin-bottom: 1rem; flex-wrap: wrap; }
.rs { flex: 1 1 140px; border-radius: 12px; padding: .7rem .9rem; display: grid; gap: .1rem; background: var(--none-bg); }
.rs small { font-size: .78rem; color: var(--muted); font-weight: 600; }
.rs b { font-size: 1.8rem; line-height: 1.1; }
.rs span { font-weight: 700; font-size: .9rem; }
.rs em { font-style: normal; font-size: .78rem; color: var(--muted); }
.rs.g-high { background: var(--high-bg); } .rs.g-high b, .rs.g-high span { color: var(--high); }
.rs.g-mid { background: var(--mid-bg); } .rs.g-mid b, .rs.g-mid span { color: var(--mid); }
.rs.g-low { background: var(--low-bg); } .rs.g-low b, .rs.g-low span { color: var(--low); }
.rs-arrow { align-self: center; color: var(--muted); font-size: 1.3rem; }
.block { margin-top: 1rem; }
.block h2 { font-size: .95rem; margin: 0 0 .5rem; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: .45rem 1rem; margin: 0 0 1rem; font-size: .93rem; }
.kv div { display: contents; }
.kv dt { color: var(--muted); font-weight: 600; }
.kv dd { margin: 0; }

/* ── 안전교육 ── */
.tile.edu { border-left-color: var(--ok); }
body.wide:not(.admin-mode) main { max-width: 1320px; }
.edu-hero { display: grid; gap: .3rem; text-decoration: none; color: var(--text); border-left: 6px solid var(--ok); }
.edu-hero strong { font-size: 1.25rem; }
.edu-go { color: var(--accent); font-weight: 700; justify-self: end; }
.month-pill { flex: none; width: 2.6rem; height: 2.6rem; border-radius: 10px; background: var(--low-bg); color: var(--low); display: grid; place-items: center; line-height: 1; }
.month-pill b { font-size: 1.1rem; } .month-pill small { font-size: .65rem; font-weight: 700; }
.seg { display: grid; grid-template-columns: 1fr 1fr; background: var(--line); border-radius: 12px; padding: 4px; gap: 4px; }
.seg button { border: 0; border-radius: 9px; min-height: 44px; font: inherit; font-weight: 700; background: transparent; color: var(--muted); cursor: pointer; }
.seg button.on { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }
.edu-layout { display: grid; gap: 1rem; align-items: start; }
.pane { display: none; }
.pane.show { display: block; }
@media (min-width: 1000px) {
  .seg { display: none; }
  .edu-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); }
  .pane { display: block; }
  .pane[data-pane="original"] { position: sticky; top: 4.2rem; }
}
.pdf-frame { display: grid; gap: .4rem; }
.pdf-frame iframe { width: 100%; height: 75vh; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.file-btn { width: 100%; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); font: inherit; text-align: left; cursor: pointer; }
.num-list { margin: 0; padding-left: 1.3rem; display: grid; gap: .45rem; }
.num-list li { padding-left: .2rem; }
.case { margin: 0 0 .5rem; padding: .7rem .9rem; border-radius: 10px; background: var(--high-bg); }
.quiz { display: grid; gap: .7rem; }
.quiz-item { border: 1px solid var(--line); border-radius: 12px; padding: .7rem .9rem; display: grid; gap: .5rem; }
.quiz-item p { margin: 0; }
.quiz-result { font-weight: 700; padding: .5rem .7rem; border-radius: 8px; }
.quiz-result.ok { background: var(--low-bg); color: var(--low); }
.quiz-result.bad { background: var(--high-bg); color: var(--high); }
.file-list { margin: 0 0 .5rem; padding-left: 1rem; display: grid; gap: .3rem; }

.admin-link { color: var(--muted); text-decoration: none; display: inline-block; padding: .6rem 1rem; }
.admin-link:hover { color: var(--text); text-decoration: underline; }

/* ── 화학물질(MSDS) ── */
.tile.msds { border-left-color: var(--high); }
.ghs { display: inline-grid; place-items: center; width: 1.7rem; height: 1.7rem; transform: rotate(45deg); border: 2px solid #d7263d; background: #fff; border-radius: 3px; margin: .25rem; flex: none; }
.ghs > span { transform: rotate(-45deg); font-size: .85rem; line-height: 1; }
.ghs.big { width: 2.6rem; height: 2.6rem; border-width: 3px; margin: .5rem .55rem; }
.ghs.big > span { font-size: 1.3rem; }
.ghs-row { display: inline-flex; flex-wrap: wrap; max-width: 6.5rem; align-items: center; }
.ghs-wrap { display: flex; flex-wrap: wrap; align-items: center; gap: .1rem .6rem; margin: .4rem 0 .2rem; }
.ghs-label { font-size: .82rem; font-weight: 700; margin-right: .4rem; }
.fa-card { border-top: 5px solid var(--high); }
.fa-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: .7rem; }
.fa-item { background: var(--bg); border-radius: 12px; padding: .7rem .9rem; }
.fa-item h3 { margin: 0 0 .35rem; font-size: .95rem; }
.fa-item ul { margin: 0; padding-left: 1.1rem; display: grid; gap: .25rem; }
.acc.link { text-decoration: none; color: var(--high); border-color: var(--high); }

/* 확인창 */
.modal-backdrop { position: fixed; inset: 0; z-index: 100; background: rgba(10, 20, 30, .45); display: grid; place-items: center; padding: 1rem; }
.modal { background: var(--surface); color: var(--text); border-radius: 14px; box-shadow: 0 10px 40px rgba(0,0,0,.3); padding: 1.2rem; max-width: 420px; width: 100%; }
.modal p { margin: 0 0 1rem; font-size: 1.02rem; line-height: 1.5; white-space: pre-line; }
.modal-actions { justify-content: flex-end; }

/* 관리자 */
.admin-tabs { display: flex; gap: .4rem; flex-wrap: wrap; }
.admin-tabs button.on { background: var(--brand); color: #fff; border-color: var(--brand); }
.notice { padding: .8rem 1rem; border-radius: 10px; background: var(--mid-bg); color: var(--text); font-size: .92rem; }
.notice.ok { background: var(--low-bg); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; max-height: 70vh; }
table.edit { border-collapse: collapse; width: 100%; font-size: .85rem; }
table.edit th, table.edit td { border-bottom: 1px solid var(--line); padding: .3rem; vertical-align: top; text-align: left; }
table.edit th { position: sticky; top: 0; background: var(--surface); z-index: 1; white-space: nowrap; }
table.edit input, table.edit select, table.edit textarea { min-height: 34px; padding: .3rem .4rem; border-radius: 6px; font-size: .85rem; }
table.edit input.num { width: 4.2rem; }
table.edit textarea { min-width: 220px; }
.map-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: .6rem; }
.dropzone { border: 2px dashed var(--line); border-radius: 12px; padding: 1.2rem; text-align: center; }
.scenario-edit { border: 1px solid var(--line); border-radius: 12px; padding: .8rem; display: grid; gap: .5rem; }
.spinner { display: inline-block; width: 1rem; height: 1rem; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 560px) {
  :root { font-size: 16px; }
  .brand span { display: none; }
  .sync small { display: none; }
  main { padding: .75rem; }
}
