:root {
  --ink: #1F2A44;
  --paper: #FFFFFF;
  --bg: #EEF1F6;
  --line: #D5DAE3;
  --muted: #6B7385;
  --yellow: #FFC83D;
  --green: #2E9E6A;
  --red: #D64545;
  --display: "Black Han Sans", "IBM Plex Sans KR", sans-serif;
  --body: "IBM Plex Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 15px/1.6 var(--body);
}
@media (max-width: 720px) {
  body.has-side { padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px)); }
}
a { color: var(--ink); }
h1 { font-size: 1.35rem; margin: .4rem 0 1rem; }
h2 { font-size: 1rem; margin: 0 0 .75rem; display: flex; align-items: center; gap: .5rem; }
small { color: var(--muted); font-weight: 400; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }

.logo { display: block; line-height: 0; text-decoration: none; }
.logo img { display: block; width: 100%; height: auto; }
.logo.big { max-width: 300px; margin: 0 auto 1.75rem; }
.ico {
  width: 1.2rem; height: 1.2rem; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.badge {
  display: inline-block; min-width: 1.2rem; margin-left: auto; padding: 0 .35rem;
  border-radius: 1rem; background: var(--red); color: #fff; font-size: .72rem; line-height: 1.2rem; text-align: center;
}

/* 넓은 화면: 왼쪽 사이드바 */
.topbar, .tabbar, .drawer-mask, .side .side-close { display: none; }
.side {
  position: fixed; top: 0; bottom: 0; left: 0; z-index: 30; width: 224px;
  display: flex; flex-direction: column;
  background: var(--ink); color: #fff; padding: 1.1rem .75rem 1rem;
  overflow-y: auto; scrollbar-width: thin; scrollbar-color: #3A4766 transparent;
}
/* 사이드바 맨 위 현재 날씨 */
.side-weather {
  display: flex; align-items: center; gap: .55rem; margin: 0 0 .9rem; padding: .55rem .7rem;
  border-radius: 8px; background: rgba(255,255,255,.06); color: #fff;
}
.side-weather .sw-ico { line-height: 0; color: var(--yellow); }
.side-weather .ico { width: 1.9rem; height: 1.9rem; stroke-width: 1.6; }
.side-weather .sw-temp { font: 400 1.6rem/1 var(--display); font-variant-numeric: tabular-nums; }
.side-weather .sw-text { display: flex; flex-direction: column; min-width: 0; font-size: .85rem; line-height: 1.3; color: #E3E7F0; }
.side-weather .sw-text small { color: #8F98AD; font-size: .72rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-head { display: flex; align-items: center; gap: .3rem; padding: 0 .3rem 1rem .6rem; margin-bottom: .2rem; border-bottom: 1px solid rgba(255,255,255,.12); }
.side-head .logo { flex: 1; min-width: 0; }
.nav { display: flex; flex-direction: column; gap: 1px; }
.nav-group { margin: .9rem .6rem .3rem; font-size: .7rem; font-weight: 700; letter-spacing: .08em; color: #8F98AD; }
.nav a, .side-me a, .side-me button {
  display: flex; align-items: center; gap: .7rem; width: 100%;
  padding: .5rem .7rem; border-radius: 6px; border: 0; background: none;
  color: #C9D0DF; text-decoration: none; font: 500 .92rem var(--body); text-align: left; cursor: pointer;
}
.nav a:hover, .side-me a:hover, .side-me button:hover { background: rgba(255,255,255,.07); color: #fff; }
.nav a.on, .side-me a.on { background: var(--yellow); color: var(--ink); }
.nav a.on .badge { background: var(--ink); }
.side-me { margin-top: auto; padding-top: .9rem; border-top: 1px solid rgba(255,255,255,.12); }
.side-me .who { padding: 0 .7rem .5rem; }
.side-me .who b { display: block; }
.side-me .who small { color: #8F98AD; }
.side-me form { margin: 0; }
.icon-btn {
  position: relative; display: flex; align-items: center; justify-content: center; width: 2.2rem; height: 2.2rem; flex: none;
  border: 0; border-radius: 6px; background: none; color: #D9DEEA; cursor: pointer;
}
.icon-btn:hover { background: rgba(255,255,255,.1); color: #fff; }
.dot-badge {
  position: absolute; top: .1rem; right: .05rem; min-width: 1.05rem; padding: 0 .25rem; border-radius: 1rem;
  background: var(--red); color: #fff; font-size: .65rem; line-height: 1.05rem; text-align: center;
}
.wrap { --wrap: 960px; }
.wrap.wide { --wrap: 1280px; }
body.has-side .wrap { margin-left: max(224px, calc(224px + (100vw - 224px - var(--wrap)) / 2)); }

/* 휴대폰: 상단 바 + 하단 탭 + 전체 메뉴(서랍) */
@media (max-width: 720px) {
  .topbar {
    display: flex; justify-content: space-between; align-items: center;
    position: sticky; top: 0; z-index: 20;
    padding: calc(.5rem + env(safe-area-inset-top, 0px)) .75rem .5rem 1rem;
    background: var(--ink); color: #fff;
  }
  .topbar .logo { width: 132px; }
  .me { display: flex; gap: .25rem; align-items: center; font-size: .85rem; }
  .who-m { color: #D9DEEA; margin-left: .2rem; }

  .side { width: min(300px, 84vw); transform: translateX(-105%); transition: transform .2s ease; padding-bottom: calc(1rem + env(safe-area-inset-bottom, 0px)); }
  .side-head .bell { display: none; }
  .side .side-close { display: flex; }
  body.drawer-on .side { transform: none; box-shadow: 8px 0 24px rgba(0,0,0,.25); }
  .drawer-mask { position: fixed; inset: 0; z-index: 25; background: rgba(15,20,35,.45); }
  body.drawer-on .drawer-mask { display: block; }
  body.drawer-on { overflow: hidden; }

  .tabbar {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 15;
    background: var(--paper); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom, 0px);
  }
  .tabbar a, .tabbar button {
    flex: 1; display: flex; flex-direction: column; align-items: center; gap: .15rem; position: relative; min-width: 0;
    padding: .5rem .1rem .45rem; border: 0; background: none; color: var(--muted); text-decoration: none;
    font: 500 .72rem var(--body); cursor: pointer;
  }
  .tabbar a.on { color: var(--ink); box-shadow: inset 0 3px 0 var(--yellow); }
  .tabbar .badge { position: absolute; top: .2rem; left: calc(50% + .45rem); margin: 0; }
  body.has-side .wrap { margin-left: auto; }
}

.wrap { max-width: var(--wrap, 960px); margin: 0 auto; padding: 1rem; }
body.has-side .wrap { padding-top: 1.5rem; }

/* 카드 */
.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: 8px;
  padding: 1rem; margin-bottom: 1rem;
}
.card.attention { border-color: var(--ink); border-width: 2px; }
.empty { color: var(--muted); text-align: center; padding: 1rem 0; margin: 0; }
.muted { color: var(--muted); font-size: .88rem; }
.center { text-align: center; }

/* 출퇴근 패널: 만화 칸처럼 굵은 테두리 + 그림자 */
.clock-panel {
  background: var(--paper); border: 3px solid var(--ink); border-radius: 6px;
  box-shadow: 6px 6px 0 var(--ink);
  padding: 1.25rem 1rem 1rem; margin: .25rem 6px 1.5rem 0; text-align: center;
}
.clock-panel .date { margin: 0; color: var(--muted); font-weight: 500; }
.clock { font-family: var(--display); font-size: 4.4rem; line-height: 1; margin: .3rem 0 .4rem; font-variant-numeric: tabular-nums; }
.clock-panel .state { margin: 0 0 1rem; font-weight: 500; }
.clock-panel.working .state { color: var(--green); }
.punch {
  width: 100%; max-width: 360px; padding: 1.1rem; font: 1.5rem var(--display);
  border: 3px solid var(--ink); border-radius: 6px; cursor: pointer;
  box-shadow: 0 5px 0 var(--ink); transition: transform .06s, box-shadow .06s;
}
.punch:active { transform: translateY(5px); box-shadow: 0 0 0 var(--ink); }
.punch.in { background: var(--yellow); color: var(--ink); }
.punch.out { background: var(--ink); color: #fff; }
.today-shift { margin-top: 1rem; padding-top: .75rem; border-top: 2px dashed var(--line); color: var(--muted); font-size: .9rem; }
.today-shift strong { color: var(--ink); margin-left: .4rem; }

/* 실시간 현황 */
.count { background: var(--ink); color: #fff; border-radius: 1rem; padding: 0 .55rem; font-size: .8rem; }
.live { list-style: none; margin: 0; padding: 0; }
.live li { display: flex; align-items: center; gap: .5rem; padding: .55rem 0; border-bottom: 1px solid var(--bg); }
.live li:last-child { border-bottom: 0; }
.live .dot { width: .6rem; height: .6rem; border-radius: 50%; background: var(--green); flex: none; }
.live .since { margin-left: auto; color: var(--muted); font-size: .85rem; font-variant-numeric: tabular-nums; }
.live .none { color: var(--muted); justify-content: center; }
.live li.fresh { animation: fresh 1.2s ease-out; }
@keyframes fresh { from { background: #FFF2C8; } to { background: transparent; } }

/* 폼 */
.form label { display: block; margin-bottom: .9rem; font-weight: 500; font-size: .9rem; }
.form label small { display: block; }
input, select {
  display: block; width: 100%; margin-top: .3rem; padding: .65rem .7rem;
  font: inherit; color: var(--ink); background: #fff;
  border: 1px solid var(--line); border-radius: 6px;
}
input:focus, select:focus { border-color: var(--ink); outline: none; box-shadow: 0 0 0 3px #FFE6A3; }
input[type=checkbox] { display: inline; width: auto; margin: 0 .4rem 0 0; }
.check { font-weight: 400 !important; }
.narrow { max-width: 460px; }
.row { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.row.two > label, .row.three > label { flex: 1; min-width: 130px; }
.row .right { margin-left: auto; }
.filters { display: flex; gap: .6rem; flex-wrap: wrap; align-items: flex-end; }
.filters label { font-size: .82rem; color: var(--muted); }
.filters input, .filters select { min-width: 140px; }
.toolbar { margin-bottom: 1rem; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  padding: .6rem 1rem; font: 500 .92rem var(--body);
  border: 2px solid var(--ink); border-radius: 6px; background: var(--paper); color: var(--ink);
  cursor: pointer; text-decoration: none; text-align: center;
}
.btn.primary { background: var(--ink); color: #fff; }
.btn.ghost { border-color: var(--line); }
.btn.danger { border-color: var(--red); color: var(--red); }
.btn.small { padding: .3rem .7rem; font-size: .82rem; }
.btn .ico { width: 1.05rem; height: 1.05rem; margin-left: -.15rem; }
.btn.small .ico { width: .95rem; height: .95rem; }
.tag .ico { width: .85rem; height: .85rem; vertical-align: -.12rem; margin-right: .2rem; }
a.tag { text-decoration: none; color: var(--ink); }
.btn.wide { width: 100%; }
.linkbtn { background: none; border: 0; padding: 0; font: inherit; color: var(--ink); text-decoration: underline; cursor: pointer; }
.danger-text { color: var(--red); }
form.inline { display: inline; margin-left: .6rem; }

/* 표 */
.tbl { width: 100%; border-collapse: collapse; font-size: .9rem; }
.tbl th { text-align: left; color: var(--muted); font-weight: 500; font-size: .8rem; padding: .4rem; border-bottom: 2px solid var(--ink); }
.tbl td { padding: .55rem .4rem; border-bottom: 1px solid var(--bg); vertical-align: top; }
.tbl tr.off td { color: var(--muted); }
.card:has(.tbl) { overflow-x: auto; }
.nowrap { white-space: nowrap; }
.memo { color: var(--muted); font-size: .8rem; }
.tag { display: inline-block; padding: 0 .45rem; border-radius: 4px; background: var(--bg); font-size: .75rem; color: var(--muted); white-space: nowrap; }
.tag.green, .st-admin_approved { background: #DDF2E7; color: var(--green); }
.st-requested, .st-peer_approved { background: #FFF2C8; color: #8A6400; }
.st-rejected { background: #FBE3E3; color: var(--red); }

.flash { padding: .7rem .9rem; border-radius: 6px; margin-bottom: 1rem; border-left: 4px solid var(--ink); background: var(--paper); }
.flash.ok { border-color: var(--green); }
.flash.error { border-color: var(--red); background: #FDF1F1; }
.flash.warn { border-color: var(--yellow); background: #FFF8E3; }
.errors { border-color: var(--red); }
.errors ul { margin: 0; padding-left: 1.2rem; }

/* 헤더 행 / 페이저 / 탭 */
.head-row { display: flex; justify-content: space-between; align-items: center; gap: .75rem; flex-wrap: wrap; margin-bottom: 1rem; }
.head-row h1 { margin: 0; }
.pager { display: flex; align-items: center; gap: .6rem; }
.pager a {
  display: flex; align-items: center; justify-content: center; width: 2.25rem; height: 2.25rem;
  text-decoration: none; border: 1px solid var(--line); border-radius: 6px; background: var(--paper);
}
.pager a:hover { border-color: var(--ink); }
.tabs, .seg { display: flex; gap: .25rem; margin-bottom: 1rem; }
.seg { margin: 0; }
.tabs a, .seg a { padding: .45rem .9rem; border-radius: 6px; text-decoration: none; color: var(--muted); font-weight: 500; }
.tabs a.on, .seg a.on { background: var(--ink); color: #fff; }
.stat-line { display: flex; gap: 2rem; }
.stat-line small { display: block; }
.stat-line strong { font-size: 1.3rem; }

/* 주간 편성표 (한글 편성표와 같은 7열 표) */
.wrap.wide { max-width: 1280px; }
.today-link { width: auto !important; padding: 0 .7rem; font-size: .85rem; font-weight: 500; }
.publish-bar { display: flex; justify-content: space-between; align-items: center; gap: .75rem; flex-wrap: wrap; padding: .75rem 1rem; }
.publish-bar.is-draft { border-color: #E9C46A; background: #FFFBEF; }
.publish-bar form { margin: 0; }
.pub-state { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.pub-state .tag { font-size: .82rem; padding: .1rem .55rem; font-weight: 700; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.empty-week { text-align: center; padding: 2rem 1rem; }
.empty-week .ico.big { width: 2.6rem; height: 2.6rem; color: var(--muted); stroke-width: 1.4; }
.center-row { justify-content: center; }

.ptable-wrap { padding: 0; overflow: hidden; }
.ptable { width: 100%; border-collapse: collapse; table-layout: fixed; }
.ptable th {
  padding: .6rem .3rem; font-size: .9rem; font-weight: 700; text-align: center;
  background: var(--ink); color: #fff; border-right: 1px solid rgba(255,255,255,.15);
}
.ptable th.sat { color: #A9C7FF; }
.ptable th.sun { color: #FFB1B1; }
.ptable th.today { background: var(--yellow); color: var(--ink); }
.ptable td { border: 1px solid var(--line); padding: 0; vertical-align: top; height: 5.2rem; }
.ptable td.today { background: #FFFCF0; }
.ptable tr:first-child td { border-top: 0; }
.ptable td:first-child { border-left: 0; }
.ptable td:last-child { border-right: 0; }
.pcell { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .05rem; height: 100%; min-height: 5.2rem; padding: .45rem .25rem; text-align: center; }
.pcell .pname { font-size: .98rem; }
.pcell .ptime { font-size: .86rem; font-variant-numeric: tabular-nums; }
.pcell .phours { font-size: .8rem; color: var(--muted); }
.pcell.mine { background: #FFF2C8; box-shadow: inset 0 0 0 2px var(--yellow); }
.pswap { display: inline-flex; align-items: center; gap: .2rem; margin-top: .15rem; font-size: .75rem; color: var(--ink); }
.pswap .ico { width: .8rem; height: .8rem; }
.sample-ptable { max-width: 420px; margin-bottom: .75rem; border: 1px solid var(--line); }
.sample-ptable td, .sample-ptable .pcell { height: auto; min-height: 0; }

.pdays { display: none; }
.pday { background: var(--paper); border: 1px solid var(--line); border-radius: 8px; padding: .6rem .75rem; margin-bottom: .6rem; }
.pday.today { border: 2px solid var(--ink); box-shadow: 4px 4px 0 var(--yellow); }
.pday h3 { margin: 0 0 .4rem; font-size: .92rem; display: flex; align-items: center; gap: .4rem; }
.pday .sat { color: #2B5BB8; } .pday .sun { color: var(--red); }
.pday .pcell { flex-direction: row; flex-wrap: wrap; justify-content: flex-start; min-height: 0; gap: .2rem .6rem; padding: .45rem .55rem; margin-bottom: .3rem; border-radius: 5px; background: var(--bg); text-align: left; }
.pday .pcell.mine { background: #FFF2C8; }
.pday .pswap { margin: 0 0 0 auto; }
.pday .none { color: var(--muted); font-size: .85rem; margin: 0; }
@media (max-width: 720px) {
  .ptable-wrap { display: none; }
  .pdays { display: block; }
}

.totals { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .4rem; }
.totals > div { display: flex; justify-content: space-between; gap: .5rem; padding: .45rem .6rem; border-radius: 6px; background: var(--bg); font-size: .88rem; }
.totals > div.mine { background: #FFF2C8; }
.totals span { color: var(--muted); font-variant-numeric: tabular-nums; }

/* 편성 편집 */
.egrid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: .4rem; }
.ecol { background: var(--paper); border: 1px solid var(--line); border-radius: 8px; padding: .5rem; min-width: 0; }
.ecol h3 { margin: -.5rem -.5rem .5rem; padding: .5rem; font-size: .88rem; text-align: center; background: var(--ink); color: #fff; border-radius: 7px 7px 0 0; }
.ecol h3.sat { color: #A9C7FF; } .ecol h3.sun { color: #FFB1B1; }
.erow { border: 1px dashed var(--line); border-radius: 6px; padding: .35rem; margin-bottom: .35rem; }
.erow.filled { border-style: solid; background: #FAFBFD; }
.erow select { margin: 0; padding: .35rem .3rem; font-size: .85rem; }
.erow .e-user { font-weight: 700; margin-bottom: .3rem; }
.e-times { display: flex; align-items: center; gap: .15rem; }
.e-times span { color: var(--muted); font-size: .8rem; }
.e-times select {
  flex: 1; min-width: 0; padding: .35rem 0; text-align: center; text-align-last: center;
  -webkit-appearance: none; appearance: none; background: #fff; font-variant-numeric: tabular-nums; cursor: pointer;
}
.e-times select:invalid, .e-times select option[value=""] { color: var(--muted); }
.e-foot { display: flex; justify-content: space-between; align-items: center; min-height: 1.5rem; }
.e-hours { font-size: .8rem; color: var(--muted); }
.e-del { border: 0; background: none; color: var(--muted); cursor: pointer; padding: .15rem; display: flex; border-radius: 4px; }
.e-del:hover { color: var(--red); background: #FBE3E3; }
.e-del .ico { width: .95rem; height: .95rem; }
.e-add { display: flex; align-items: center; justify-content: center; gap: .25rem; width: 100%; padding: .35rem; border: 1px dashed var(--line); border-radius: 6px; background: none; color: var(--muted); font: 500 .8rem var(--body); cursor: pointer; }
.e-add:hover { color: var(--ink); border-color: var(--ink); }
.e-add .ico { width: .9rem; height: .9rem; }
.save-bar {
  position: sticky; bottom: 0; z-index: 5; display: flex; align-items: center; justify-content: flex-end; gap: .5rem;
  margin: 1rem 0 .5rem; padding: .7rem 1rem; background: var(--paper); border: 1px solid var(--line); border-radius: 8px;
  box-shadow: 0 -4px 12px rgba(31,42,68,.08);
}
.save-bar #sum-line { margin-right: auto; }
@media (max-width: 1100px) { .egrid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 720px) {
  .egrid { grid-template-columns: 1fr; }
  .save-bar { bottom: calc(64px + env(safe-area-inset-bottom, 0px)); }
}

.next-list { list-style: none; margin: 0; padding: 0; }
.next-list li { display: flex; gap: .75rem; align-items: baseline; padding: .4rem 0; border-bottom: 1px solid var(--bg); font-variant-numeric: tabular-nums; }
.next-list li:last-child { border-bottom: 0; }
.next-list b { min-width: 4.5rem; }
.next-week h2 .ico { width: 1.1rem; height: 1.1rem; }

/* 교환 */
.swap { display: flex; justify-content: space-between; gap: .75rem; padding: .7rem 0 .4rem; border-top: 1px solid var(--bg); }
.swap:first-of-type { border-top: 0; }
.swap p { margin: 0; }
.swap .arrow { color: var(--ink); display: flex; align-items: center; gap: .35rem; flex-wrap: wrap; }
.swap .arrow .ico { width: 1rem; height: 1rem; color: var(--muted); }
.actions { padding-bottom: .6rem; }
.actions input { flex: 1; min-width: 140px; margin: 0; }
.shift-big { font-family: var(--display); font-size: 1.6rem; margin: 0; }
.sample { max-width: 460px; margin-bottom: .5rem; }

/* 매출 */
.tabs.scroll { overflow-x: auto; scrollbar-width: none; }
.tabs.scroll a { white-space: nowrap; }
.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tbl th.num { text-align: right; }
h2 .right { margin-left: auto; }
.small-link { font-size: .82rem; font-weight: 400; }
.money-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 1rem; }
.money-grid small { display: block; }
.money-grid strong { font-size: 1.3rem; font-variant-numeric: tabular-nums; }
.money-grid .muted { display: block; font-size: .78rem; }
@media (max-width: 560px) { .money-grid { grid-template-columns: 1fr 1fr; } .money-grid > :first-child { grid-column: 1 / -1; } }
.pm-card { background: #E3EAF7; color: #2B4C8C; }
.pm-cash { background: #DDF2E7; color: var(--green); }
.pm-transfer { background: #FFF2C8; color: #8A6400; }

.quick-add { margin-bottom: .75rem; padding-bottom: .75rem; border-bottom: 2px dashed var(--line); }
.quick-add input { margin: 0; }
.quick-add .row input { flex: 1; min-width: 120px; }
.quick-add .row input.amount { flex: 0 1 150px; }
.seg-radio { display: flex; gap: .35rem; margin-bottom: .5rem; }
.seg-radio label { flex: 1; }
.seg-radio input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.seg-radio span {
  display: block; text-align: center; padding: .5rem; border: 2px solid var(--line);
  border-radius: 6px; font-weight: 500; color: var(--muted); cursor: pointer;
}
.seg-radio input:checked + span { border-color: var(--ink); background: var(--ink); color: #fff; }
.seg-radio input:focus-visible + span { outline: 3px solid var(--yellow); outline-offset: 2px; }

.tbl.calc { margin-bottom: 1rem; }
.tbl.calc td { padding: .35rem .2rem; }
.tbl.calc tr.total td { border-top: 2px solid var(--ink); font-weight: 700; }
.diff-line { font-weight: 700; min-height: 1.6em; margin: -.4rem 0 .8rem; }
.diff-line.ok { color: var(--green); }
.diff-line.bad { color: var(--red); }
.receipt-preview { margin: -.4rem 0 .9rem; }
.receipt-preview img { display: block; max-width: 160px; max-height: 200px; border: 1px solid var(--line); border-radius: 6px; margin-bottom: .4rem; }

.net-panel { text-align: left; }
.net { font-family: var(--display); font-size: 2.6rem; line-height: 1.1; margin: .2rem 0 .8rem; font-variant-numeric: tabular-nums; }
.net.minus { color: var(--red); }
.net-panel .tbl.calc { max-width: 360px; margin-bottom: .5rem; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
@media (max-width: 720px) { .grid2 { grid-template-columns: 1fr; } }

.bars { display: grid; gap: 2px; }
.bar-row { display: grid; grid-template-columns: 5.2rem 1fr 6.5rem; gap: .5rem; align-items: center; text-decoration: none; font-size: .85rem; padding: .1rem 0; }
.bar-row:hover { background: var(--bg); }
.bar-row.weekend .d { color: var(--red); }
.bar { height: .7rem; background: var(--bg); border-radius: 3px; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--ink); }

.fixed-row { display: flex; gap: .4rem; align-items: center; flex-wrap: wrap; padding: .5rem 0; border-bottom: 1px solid var(--bg); }
.fixed-row input { margin: 0; flex: 1; min-width: 110px; }
.fixed-row .check { white-space: nowrap; }
.fixed-row.off input { color: var(--muted); }

.login { max-width: 380px; margin: 12vh auto 0; }

/* ===== 공통 보조 ===== */
textarea {
  display: block; width: 100%; margin-top: .3rem; padding: .65rem .7rem; font: inherit; color: var(--ink);
  background: #fff; border: 1px solid var(--line); border-radius: 6px; resize: vertical;
}
textarea:focus { border-color: var(--ink); outline: none; box-shadow: 0 0 0 3px #FFE6A3; }
code { background: var(--bg); padding: .05rem .35rem; border-radius: 4px; font-size: .85em; word-break: break-all; }
.grow { flex: 1; min-width: 160px; }
.tiny-input { width: 5rem !important; flex: none !important; }
.wide-ish { width: 7rem !important; }
.auto-w { width: auto; display: inline-block; margin: 0; }
.inline-label { display: flex; flex-direction: column; font-size: .85rem; color: var(--muted); }
.back { display: inline-flex; align-items: center; gap: .2rem; text-decoration: none; color: var(--muted); font-size: .9rem; }
.back .ico { width: 1rem; height: 1rem; }
.icon-plain { border: 0; background: none; padding: .2rem; color: var(--muted); cursor: pointer; display: inline-flex; border-radius: 4px; }
.icon-plain:hover { color: var(--ink); background: var(--bg); }
.icon-plain[disabled] { opacity: .3; cursor: default; }
.rot90 { transform: rotate(90deg); }
.prose { white-space: pre-wrap; line-height: 1.75; margin: .75rem 0 1rem; }
.kv { display: flex; justify-content: space-between; align-items: center; gap: .5rem; padding: .45rem 0; border-bottom: 1px solid var(--bg); }
.kv:last-child { border-bottom: 0; }
.wrap-seg { flex-wrap: wrap; margin-bottom: 1rem; }
.big-seg a { flex: 1; text-align: center; display: flex; align-items: center; justify-content: center; gap: .4rem; padding: .65rem; background: var(--paper); border: 1px solid var(--line); }
.big-seg a.on { border-color: var(--ink); }
.big-seg .tag .ico, .tag .ico { width: .8rem; height: .8rem; }
.stat-line { align-items: center; flex-wrap: wrap; }
.stat-line .right { margin-left: auto; }
.money-grid.four { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 560px) { .money-grid.four { grid-template-columns: 1fr 1fr; } .money-grid.four > :first-child { grid-column: auto; } }
.inline-details { display: inline-block; margin-left: .4rem; }
.inline-details > summary { cursor: pointer; color: var(--ink); text-decoration: underline; list-style: none; }
.inline-details[open] { display: block; margin: .4rem 0 0; padding: .6rem; background: var(--bg); border-radius: 6px; }
.inline-details .form label { margin-bottom: .5rem; }
.up { color: var(--green); font-weight: 700; font-size: .85rem; }
.down { color: var(--red); font-weight: 700; font-size: .85rem; }
.loc-hint { margin: .6rem 0 0; font-size: .82rem; color: var(--muted); display: flex; align-items: center; justify-content: center; gap: .3rem; }
.loc-hint .ico { width: 1rem; height: 1rem; color: var(--green); }
.legend, .legend-line { display: flex; align-items: center; gap: .35rem .5rem; flex-wrap: wrap; font-size: .8rem; color: var(--muted); }
.lg { display: inline-block; width: .8rem; height: .8rem; border-radius: 3px; border: 1px solid var(--line); vertical-align: -.1rem; }
.lg.free { background: var(--paper); } .lg.busy { background: var(--ink); border-color: var(--ink); }
.lg.warn { background: #F4A340; border-color: #F4A340; } .lg.alert { background: var(--red); border-color: var(--red); }
.lg.free2 { background: #C9D0DF; } .lg.minus { background: #D7E7FF; } .lg.plus { background: #FFD9C2; }
.law { padding: .45rem .6rem; border-radius: 6px; margin-bottom: .35rem; font-size: .9rem; border-left: 4px solid var(--line); background: var(--bg); }
.law.error { border-color: var(--red); background: #FDF1F1; }
.law.warn { border-color: var(--yellow); background: #FFF8E3; }
.law.info { border-color: var(--green); background: #EEF8F2; }

/* 알림 */
.push-card .ico { width: 1.1rem; height: 1.1rem; }
.small-note { font-size: .78rem; margin: .5rem 0 0; }
.notif { display: grid; grid-template-columns: .6rem 1fr auto; gap: .6rem; align-items: start; padding: .7rem .2rem; border-bottom: 1px solid var(--bg); text-decoration: none; color: var(--muted); }
.notif:last-child { border-bottom: 0; }
.notif p { margin: .1rem 0 0; font-size: .85rem; white-space: pre-line; }
.notif b { color: var(--ink); font-weight: 500; }
.notif-dot { width: .5rem; height: .5rem; border-radius: 50%; margin-top: .5rem; }
.notif.unread b { font-weight: 700; }
.notif.unread .notif-dot { background: var(--red); }
.notif:hover { background: #FAFBFD; }

/* 설정 */
.settings-form fieldset { border: 1px solid var(--line); border-radius: 8px; padding: .8rem 1rem .3rem; margin: 0 0 1rem; }
.settings-form legend { padding: 0 .3rem; }
.settings-form legend .check { margin: 0; font-weight: 700 !important; }
.qr-box { display: flex; gap: 1rem; align-items: flex-start; flex-wrap: wrap; margin-bottom: .6rem; }
.qr-box img { border: 1px solid var(--line); border-radius: 6px; background: #fff; padding: .4rem; }
.qr-box > div { flex: 1; min-width: 200px; }
.mw-rows .row { margin-bottom: .4rem; flex-wrap: nowrap; }
.mw-rows input { margin: 0; }
.mw-rows input:first-child { width: 6rem; flex: none; }
.audit { border-bottom: 1px solid var(--bg); padding: .5rem 0; }
.audit summary { display: flex; flex-wrap: wrap; gap: .3rem .6rem; align-items: center; cursor: pointer; font-size: .9rem; }
.audit .tbl { margin: .4rem 0; }
.audit .memo { word-break: break-all; }

/* 게시판 */
.list-row { display: flex; justify-content: space-between; align-items: center; gap: .75rem; padding: .7rem .2rem; border-bottom: 1px solid var(--bg); text-decoration: none; }
.list-row:last-child { border-bottom: 0; }
.list-row:hover { background: #FAFBFD; }
.list-row p { margin: .15rem 0 0; }
.list-row .ico { width: .95rem; height: .95rem; color: var(--muted); vertical-align: -.15rem; }
.list-row:not(.unread) b { font-weight: 500; }
.notice-body h1 { margin-top: 0; }
.manual-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: .75rem; }
.manual-card { display: block; background: var(--paper); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; text-decoration: none; }
.manual-card:hover { border-color: var(--ink); }
.manual-card .thumb { aspect-ratio: 16 / 10; background: var(--bg); display: flex; align-items: center; justify-content: center; color: var(--muted); }
.manual-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.ico.big { width: 2.4rem; height: 2.4rem; stroke-width: 1.4; }
.mc-body { padding: .6rem .7rem; display: flex; flex-direction: column; gap: .25rem; align-items: flex-start; }
.video { position: relative; aspect-ratio: 16 / 9; margin: .5rem 0 1rem; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: 6px; }
.media { display: flex; flex-direction: column; gap: .75rem; margin-bottom: 1rem; }
.media img, .media video { max-width: 100%; border-radius: 6px; border: 1px solid var(--line); }
.file-list { margin-bottom: 1rem; }

/* 체크리스트 */
.progress { height: .55rem; background: var(--bg); border-radius: 1rem; overflow: hidden; }
.progress i { display: block; height: 100%; background: var(--green); transition: width .3s; }
.ck { display: flex; align-items: center; gap: .75rem; padding: .65rem 0; border-bottom: 1px solid var(--bg); }
.ck-form { margin: 0; }
.ck-box {
  width: 2.4rem; height: 2.4rem; border: 2px solid var(--line); border-radius: 8px; background: #fff; color: transparent;
  display: flex; align-items: center; justify-content: center; cursor: pointer; flex: none;
}
.ck-box:hover { border-color: var(--ink); color: var(--line); }
.ck-box.on { background: var(--green); border-color: var(--green); color: #fff; }
.ck-box.photo { color: var(--muted); border-style: dashed; }
.ck-text { flex: 1; display: flex; flex-direction: column; align-items: flex-start; gap: .1rem; }
.ck.done .ck-text > span { color: var(--muted); text-decoration: line-through; }
.ck-photo { width: 3.2rem; height: 3.2rem; object-fit: cover; border-radius: 6px; border: 1px solid var(--line); }
.ck-done { margin-top: 1rem; }
.ck-done input { flex: 1; min-width: 160px; margin: 0; }
.ck-edit { display: flex; align-items: center; gap: .4rem; padding: .4rem 0; border-bottom: 1px solid var(--bg); flex-wrap: wrap; }
.ck-edit input[name=text] { flex: 1; min-width: 160px; margin: 0; }
.ck-edit.off input[name=text] { color: var(--muted); text-decoration: line-through; }

/* 급여명세서 */
.payslip { max-width: 640px; }
.slip-logo { width: 150px; display: block; margin-bottom: .75rem; }
.payslip h1 { margin: 0; }
.payslip h2 { margin-top: 1.2rem; }
@media print {
  .side, .topbar, .tabbar, .no-print, .flash { display: none !important; }
  body.has-side .wrap { margin: 0 !important; padding: 0; }
  body { background: #fff; }
  .card { border: 0; }
}

/* 재고 */
tr.low td { background: #FFF5F5; }
tr.low .ico { width: .9rem; height: .9rem; color: var(--red); vertical-align: -.1rem; }
.spark { width: 100%; height: 110px; color: var(--ink); background: linear-gradient(var(--bg) 1px, transparent 1px) 0 0 / 100% 25%; border-radius: 4px; }
.spark-axis { display: flex; justify-content: space-between; gap: .5rem; font-size: .75rem; color: var(--muted); flex-wrap: wrap; }
.count-input { width: 6rem; margin: 0; }
.count-tbl td { vertical-align: middle; }

/* 좌석 */
.zone { margin: 1rem 0 .5rem; font-size: .95rem; }
.seat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: .6rem; margin-bottom: 1rem; }
.seat { background: var(--paper); border: 2px solid var(--line); border-radius: 10px; padding: .65rem .7rem; display: flex; flex-direction: column; gap: .3rem; min-height: 132px; }
.seat-head { display: flex; justify-content: space-between; align-items: baseline; }
.seat-head b { font-size: 1.05rem; }
.seat.busy { background: var(--ink); border-color: var(--ink); color: #fff; }
.seat.busy small, .seat.busy .memo { color: #AEB6C8; }
.seat.busy.warn { background: #B8650F; border-color: #F4A340; box-shadow: inset 0 0 0 2px #F4A340; }
.seat.busy.alert { background: #9E2B2B; border-color: var(--red); box-shadow: inset 0 0 0 2px #FF7A7A; }
.elapsed { font-family: var(--display); font-size: 1.9rem; line-height: 1; margin: .15rem 0 0; font-variant-numeric: tabular-nums; }
.seat-meta { margin: 0; font-size: .82rem; color: #D9DEEA; }
/* POS 좌석: 유니온포스 테이블 배치 그대로 (좌표는 % 로, 글자는 배치도 폭에 맞춰 커짐) */
.floor-wrap { overflow-x: auto; margin-bottom: 1rem; -webkit-overflow-scrolling: touch; }
.floor { position: relative; min-width: 860px; background: #DCE5F3; border-radius: 10px; container-type: inline-size; }
.ftable { position: absolute; box-sizing: border-box; background: var(--paper); border: 1px solid #B9C4D8; border-radius: 4px;
  padding: .25em .35em; overflow: hidden; display: flex; flex-direction: column; font-size: 11px; font-size: clamp(9px, 1.25cqw, 15px); line-height: 1.15; }
.ftable .ft-head { display: flex; flex-wrap: wrap; gap: 0 .3em; align-items: baseline; }
.ftable .ft-head b { font-size: 1.15em; }
.ftable .ft-head small { color: var(--muted); font-size: .85em; }
.ftable .ft-order { margin-top: auto; font-size: .9em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; opacity: .9; }
.ftable .ft-foot { display: flex; justify-content: space-between; gap: .3em; font-variant-numeric: tabular-nums; }
.ftable.busy { background: var(--ink); border-color: var(--ink); color: #fff; }
.ftable.busy .ft-head small { color: #AEB6C8; }
.ftable.busy.warn { background: #B8650F; border-color: #F4A340; }
.ftable.busy.alert { background: #9E2B2B; border-color: var(--red); }
.ftable-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: .4rem; margin-bottom: 1rem; }
.ftable-grid .ftable { position: static; min-height: 64px; font-size: 13px; }
.seat-end { margin-top: auto; }
.seat-end > summary { list-style: none; width: 100%; background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.seat-end > summary::-webkit-details-marker { display: none; }
.seat-end[open] { background: var(--paper); color: var(--ink); border-radius: 8px; padding: .5rem; margin: .2rem -.3rem -.3rem; }
.seat-end[open] > summary { color: var(--ink); border-color: var(--ink); margin-bottom: .5rem; }
.seat-end .form label { margin-bottom: .5rem; color: var(--ink); }
.seat-end .seg-radio span { padding: .35rem; font-size: .82rem; }
.move-form { margin-top: .5rem; flex-wrap: nowrap; }
.move-form select { margin: 0; padding: .35rem; }
.seat-start { margin-top: auto; display: flex; gap: .4rem; align-items: center; }
.seat-start .btn { flex: 1; }
.stepper { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.stepper button { border: 0; background: var(--bg); width: 1.8rem; height: 2.1rem; font-size: 1rem; cursor: pointer; color: var(--ink); }
.stepper input { width: 2.2rem; margin: 0; border: 0; border-radius: 0; text-align: center; padding: .3rem 0; }

/* 막대 · 히트맵 */
.hbars { display: grid; gap: .3rem; }
.hbar { display: grid; grid-template-columns: 6.5rem 1fr auto auto; gap: .6rem; align-items: center; font-size: .85rem; }
.hbar .bar { height: .75rem; }
.hbar b { font-variant-numeric: tabular-nums; min-width: 4.5rem; text-align: right; }
.hbar .sat { color: #2B5BB8; } .hbar .sun { color: var(--red); }
.heat-wrap { overflow-x: auto; }
.heat { border-collapse: separate; border-spacing: 2px; font-size: .72rem; min-width: 100%; }
.heat th { color: var(--muted); font-weight: 500; padding: .15rem .2rem; text-align: center; }
.heat td { --a: 0; min-width: 1.9rem; height: 1.9rem; text-align: center; border-radius: 4px; font-variant-numeric: tabular-nums;
  background: rgba(31, 42, 68, calc(.06 + var(--a) * .9)); color: var(--ink); }
.heat td.hot { color: #fff; }
.staff-heat td { background: var(--bg); color: var(--ink); min-width: 2.4rem; height: 2.4rem; position: relative; }
.staff-heat td.minus { background: #D7E7FF; }
.staff-heat td.plus { background: #FFD9C2; }
.staff-heat td i { position: absolute; top: 1px; right: 3px; font-style: normal; font-size: .62rem; font-weight: 700; }
.staff-heat td.minus i { color: #2B5BB8; } .staff-heat td.plus i { color: #B8460F; }
.compare { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-bottom: 1rem; }
.compare > div { display: flex; flex-direction: column; gap: .1rem; }
.compare strong { font-size: 1.25rem; font-variant-numeric: tabular-nums; }
@media (max-width: 640px) { .compare { grid-template-columns: 1fr; } }
h3.sub { font-size: .9rem; margin: 0 0 .5rem; display: flex; gap: .6rem; align-items: center; }
h3.sub small { display: inline-flex; gap: .3rem; align-items: center; }
.mbars { display: grid; grid-template-columns: repeat(12, 1fr); gap: .35rem; align-items: end; }
.mbar { display: flex; flex-direction: column; align-items: center; gap: .2rem; font-size: .7rem; color: var(--muted); }
.mbar .cols { height: 120px; width: 100%; display: flex; align-items: flex-end; justify-content: center; gap: 2px; }
.mbar .cols i { width: 42%; background: var(--ink); border-radius: 3px 3px 0 0; min-height: 1px; }
.mbar .cols i.ly { background: #C9D0DF; }
.ratio-bar { position: relative; height: 1.3rem; background: var(--bg); border-radius: 4px; overflow: hidden; min-width: 120px; }
.ratio-bar i { position: absolute; inset: 0 auto 0 0; background: #BFE3CF; }
.ratio-bar.mid i { background: #FFE19A; }
.ratio-bar.hi i { background: #F6B4B4; }
.ratio-bar b { position: relative; padding-left: .4rem; font-size: .8rem; line-height: 1.3rem; }

/* 고장 */
.issue-photo { max-width: 100%; max-height: 360px; border-radius: 6px; border: 1px solid var(--line); }
.timeline { list-style: none; margin: 0 0 1rem; padding: 0 0 0 1rem; border-left: 2px solid var(--line); }
.timeline li { position: relative; padding: .35rem 0 .35rem .3rem; font-size: .9rem; }
.timeline li::before { content: ""; position: absolute; left: -1.38rem; top: .75rem; width: .6rem; height: .6rem; border-radius: 50%; background: var(--ink); }

/* ===== 대시보드 ===== */
.dash-head h1 small { font-size: .85rem; margin-left: .3rem; }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .75rem; margin-bottom: .75rem; }
.kpis.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 980px) { .kpis, .kpis.three { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .kpis, .kpis.three { grid-template-columns: 1fr; } }
.kpi {
  display: flex; flex-direction: column; gap: .25rem; min-width: 0;
  background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: .9rem 1rem;
  text-decoration: none; color: var(--ink);
}
a.kpi:hover { border-color: var(--ink); }
.kpi-label { font-size: .82rem; color: var(--muted); font-weight: 500; }
.kpi-value { font-size: 1.7rem; line-height: 1.15; font-weight: 700; letter-spacing: -.01em; }
.kpi-value small { font-size: .9rem; font-weight: 500; margin-left: .15rem; color: var(--muted); }
.kpi-value.neg { color: var(--red); }
.kpi-value.muted-val { color: var(--muted); }
.kpi-sub { font-size: .78rem; color: var(--muted); overflow-wrap: anywhere; }
.delta { font-size: .8rem; font-weight: 700; }
.delta.up { color: #006300; }
.delta.down { color: var(--red); }
.status-chip { display: inline-flex; align-items: center; gap: .25rem; align-self: flex-start; padding: .05rem .5rem;
  border-radius: 1rem; font-size: .78rem; font-weight: 700; }
.status-chip .ico { width: .85rem; height: .85rem; }
.status-chip.good { background: #DDF2E7; color: #006300; }
.status-chip.warning { background: #FFF2C8; color: #8A6400; }
.status-chip.critical { background: #FBE3E3; color: var(--red); }
.meter { position: relative; display: block; height: .5rem; background: var(--bg); border-radius: 1rem; overflow: hidden; margin: .15rem 0; }
.meter i { position: absolute; inset: 0 auto 0 0; border-radius: 1rem; }
.meter i.series { background: #2a78d6; }
.meter i.good { background: #0ca30c; } .meter i.warning { background: #fab219; } .meter i.critical { background: #d03b3b; }
.meter b { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--paper); }

.dash-grid { display: grid; gap: .75rem; margin-bottom: .75rem; }
.dash-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.dash-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; }
@media (max-width: 1100px) { .dash-grid.three { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 860px) { .dash-grid.two, .dash-grid.three { grid-template-columns: 1fr; } }
.dash-grid > .card { margin: 0; }
.dash-grid h2 .ico { width: 1.05rem; height: 1.05rem; }

/* 차트: 축·격자는 머리카락 선, 막대·선만 색 */
.viz-card { --series-1: #2a78d6; --series-2: #eb6834; --grid: #e1e0d9; --axis: #c3c2b7; overflow: visible; }
.viz { display: block; width: 100%; height: auto; overflow: visible; }
.viz .grid { stroke: var(--grid); stroke-width: 1; }
.viz .axis { stroke: var(--axis); stroke-width: 1; }
.viz .tick { fill: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.viz .tick.today { fill: var(--ink); font-weight: 700; }
.viz .bar { fill: var(--series-1); }
.viz .bar-col:hover .bar, .viz .bar-col:focus .bar { fill: #1c5cab; }
.viz .bar-col:focus { outline: none; }
.viz .hit { fill: transparent; }
.viz .vlabel { fill: #52514e; font-size: 11.5px; font-weight: 500;
  paint-order: stroke; stroke: var(--paper); stroke-width: 4px; stroke-linejoin: round; }
.viz .vlabel.strong { fill: var(--ink); font-weight: 700; }
.viz .line { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.viz .line.s1 { stroke: var(--series-1); }
.viz .line.s2 { stroke: var(--series-2); }
.viz .dot { stroke: var(--paper); stroke-width: 2; }
.viz .dot.s1 { fill: var(--series-1); } .viz .dot.s2 { fill: var(--series-2); }
.viz .crosshair { stroke: var(--axis); stroke-width: 1; }
.viz-legend { margin: -.3rem 0 .4rem; color: var(--ink); font-size: .82rem; }
.viz-legend span { display: inline-flex; align-items: center; gap: .35rem; margin-right: .9rem; }
.sw { display: inline-block; width: .9rem; height: .2rem; border-radius: 2px; }
.sw.s1 { background: #2a78d6; } .sw.s2 { background: #eb6834; }
.table-view { margin-top: .5rem; font-size: .85rem; }
.table-view summary { cursor: pointer; color: var(--muted); }
.table-view .tbl { margin-top: .4rem; }
.viz-tip {
  position: fixed; z-index: 50; pointer-events: none; padding: .35rem .6rem; border-radius: 6px;
  background: var(--ink); color: #fff; font-size: .8rem; white-space: nowrap; box-shadow: 0 4px 14px rgba(31,42,68,.25);
}

.todo { display: flex; align-items: center; gap: .6rem; padding: .55rem .6rem; margin-bottom: .35rem; border-radius: 6px;
  text-decoration: none; color: var(--ink); background: var(--bg); border-left: 3px solid var(--line); font-size: .9rem; }
.todo span { flex: 1; }
.todo .ico { width: 1rem; height: 1rem; flex: none; }
.todo.critical { border-left-color: var(--red); background: #FDF1F1; }
.todo.critical > .ico:first-child { color: var(--red); }
.todo.warning { border-left-color: #fab219; background: #FFF8E3; }
.todo.warning > .ico:first-child { color: #8A6400; }
a.todo:hover { filter: brightness(.97); }
.roster { display: grid; grid-template-columns: 4.5rem 1fr auto; gap: .5rem; align-items: center; padding: .45rem 0; border-bottom: 1px solid var(--bg); font-size: .9rem; }
.roster .r-time { color: var(--muted); font-variant-numeric: tabular-nums; }
.roster .tag { display: inline-flex; align-items: center; gap: .2rem; }
.dash-grid .small-link { display: inline-block; margin-top: .5rem; }
.dash-grid .kv .tag { display: inline-flex; align-items: center; gap: .2rem; text-decoration: none; }

/* ===== 내 급여 (하우머치 스타일) ===== */
.pay-hero {
  background: var(--ink); color: #fff; border-radius: 14px; padding: 1.2rem 1.3rem 1.1rem; margin-bottom: .75rem;
  box-shadow: 6px 6px 0 var(--yellow);
}
.ph-top { display: flex; justify-content: space-between; align-items: center; gap: .5rem; color: #C9D0DF; font-weight: 500; }
.ph-top .tag { display: inline-flex; align-items: center; gap: .2rem; }
.ph-amount { margin: .2rem 0 .3rem; font-size: 1.1rem; color: #C9D0DF; }
.ph-amount b { font-size: 2.6rem; color: #fff; letter-spacing: -.02em; margin-right: .2rem; }
.ph-sub { margin: 0; color: #AEB6C8; font-size: .88rem; }
.ph-sub b { color: #fff; }
.dday { display: inline-block; margin: 0 .3rem; padding: 0 .45rem; border-radius: 1rem; background: var(--yellow); color: var(--ink); font-weight: 700; font-size: .8rem; }
.dday.today { background: #0ca30c; color: #fff; }
.live-earn { margin-top: .8rem; padding: .55rem .75rem; border-radius: 8px; background: rgba(255,255,255,.08); color: #DDE3EF; font-size: .9rem; }
.live-earn b { color: var(--yellow); font-size: 1.15rem; }
.live-earn small { color: #8F98AD; }
.live-dot { display: inline-block; width: .55rem; height: .55rem; border-radius: 50%; background: #0ca30c; margin-right: .3rem; animation: blink 1.4s infinite; }
@keyframes blink { 50% { opacity: .3; } }
.chips { display: flex; flex-wrap: wrap; gap: .35rem; margin-bottom: .6rem; }
.chip { display: inline-flex; align-items: center; gap: .25rem; padding: .2rem .6rem; border-radius: 1rem; background: var(--bg);
  font-size: .82rem; text-decoration: none; color: var(--ink); }
.chip .ico { width: .85rem; height: .85rem; }
.chip.on { background: #DDF2E7; color: #006300; }
.chip.off { color: var(--muted); text-decoration: line-through; }
a.chip:hover { background: var(--line); }
.pay-mini { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 0 .5rem; margin: .4rem 0 .6rem;
  padding: .7rem .8rem; border-radius: 8px; background: var(--ink); color: #fff; text-decoration: none; }
.pay-mini span { color: #C9D0DF; font-size: .85rem; }
.pay-mini b { font-size: 1.25rem; }
.pay-mini small { grid-column: 1 / -1; color: #AEB6C8; }
.pay-mini:hover { box-shadow: 4px 4px 0 var(--yellow); }

.pay-cal-card { padding: .75rem; }
.pay-cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; }
.pc-head { text-align: center; font-size: .78rem; color: var(--muted); padding: .2rem 0; }
.pc-head.sat, .pc-day.sat .pc-num { color: #2B5BB8; }
.pc-head.sun, .pc-day.sun .pc-num { color: var(--red); }
.pc-day { display: flex; flex-direction: column; gap: .05rem; min-height: 4.4rem; padding: .3rem .35rem; border-radius: 6px;
  background: var(--bg); text-decoration: none; color: var(--ink); font-size: .74rem; overflow: hidden; }
.pc-day.out { opacity: .35; }
.pc-day.has { background: #EAF2FD; }
.pc-day.today { box-shadow: inset 0 0 0 2px var(--yellow); }
.pc-day.sel { box-shadow: inset 0 0 0 2px var(--ink); }
.pc-num { font-weight: 700; font-size: .82rem; }
.pc-hol { color: var(--red); font-size: .66rem; white-space: nowrap; }
.pc-hours { color: var(--muted); }
.pc-pay { font-weight: 700; color: #1c5cab; font-variant-numeric: tabular-nums; }
@media (max-width: 560px) { .pc-day { min-height: 3.6rem; font-size: .66rem; padding: .2rem; } .pc-pay { font-size: .64rem; } }

/* 안내 화면 공지 관리 */
.dn-row { display: flex; gap: .8rem; align-items: flex-start; padding: .7rem 0; border-bottom: 1px solid var(--bg); }
.dn-row:last-child { border-bottom: 0; }
.dn-row.off { opacity: .55; }
.dn-thumb { width: 84px; height: 84px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); flex: none; }
.dn-text { flex: 1; min-width: 0; }
.dn-text p { margin: .15rem 0 .3rem; white-space: pre-line; color: var(--muted); font-size: .88rem; }
.dn-actions { display: flex; gap: .3rem; flex-wrap: wrap; justify-content: flex-end; }
.dn-actions form { margin: 0; }
@media (max-width: 560px) { .dn-row { flex-wrap: wrap; } .dn-actions { width: 100%; justify-content: flex-start; } }

/* 내 기록 달력: 근무 시간이 길수록 진한 파랑, 오늘 노란 링, 근무 중 초록 점 */
.work-cal-card { padding: 1rem; }
.wc-summary { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1.6rem; margin-bottom: .9rem; }
.wc-summary small { display: block; font-size: .75rem; }
.wc-summary b { font-size: 1.05rem; }
.wc-legend { margin-left: auto; display: flex; align-items: center; gap: .3rem; font-size: .72rem; color: var(--muted); }
.wc-legend i { width: 14px; height: 14px; border-radius: 4px; display: inline-block; }
.work-cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.wc-head { text-align: center; font-size: .75rem; font-weight: 700; color: var(--muted); padding: .15rem 0 .35rem; letter-spacing: .05em; }
.wc-head.sat { color: #2B5BB8; } .wc-head.sun { color: var(--red); }
.wc-day { position: relative; display: flex; flex-direction: column; gap: .15rem; min-height: 5.6rem; padding: .45rem .5rem;
  border-radius: 12px; background: #F6F8FB; color: var(--ink); text-decoration: none; font-size: .74rem;
  transition: transform .12s ease, box-shadow .12s ease; }
.wc-day:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(31, 42, 68, .12); }
.wc-day.out { background: transparent; opacity: .35; }
.wc-top { display: flex; align-items: center; justify-content: space-between; gap: .2rem; }
.wc-num { font-weight: 700; font-size: .9rem; line-height: 1.1; }
.wc-day.sat .wc-num { color: #2B5BB8; } .wc-day.sun .wc-num { color: var(--red); }
.wc-today { font-size: .62rem; font-weight: 700; background: var(--yellow); color: var(--ink); border-radius: 999px; padding: 0 .4rem; line-height: 1.5; }
.wc-hol { color: var(--red); font-size: .64rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wc-time { margin-top: auto; font-size: .68rem; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; opacity: .85; }
.wc-hours { font-family: var(--display); font-size: 1.15rem; line-height: 1.05; font-variant-numeric: tabular-nums; }
.wc-hours.live { font-family: var(--body); font-size: .74rem; font-weight: 700; display: flex; align-items: center; gap: .3rem; white-space: nowrap; }
.wc-hours.live i { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(46, 158, 106, .6); animation: wc-pulse 1.6s infinite; }
@keyframes wc-pulse { 70% { box-shadow: 0 0 0 7px rgba(46, 158, 106, 0); } 100% { box-shadow: 0 0 0 0 rgba(46, 158, 106, 0); } }
.lv1, .wc-day.lv1 { background: #DCE9FB; }
.lv2, .wc-day.lv2 { background: #A9C8F3; }
.lv3, .wc-day.lv3 { background: #2F6FCF; }
.wc-day.lv3 { color: #fff; }
.wc-day.lv3 .wc-num, .wc-day.lv3.sat .wc-num, .wc-day.lv3.sun .wc-num { color: #fff; }
.wc-day.lv3 .wc-hol { color: #FFD3D3; }
.seg a { display: inline-flex; align-items: center; gap: .3rem; }
.wc-day.open { background: #DDF2E7; }
.wc-day.today { box-shadow: inset 0 0 0 2px var(--yellow); }
.wc-day.sel { box-shadow: inset 0 0 0 2px var(--ink); }
.wc-day.today.sel { box-shadow: inset 0 0 0 2px var(--ink), inset 0 0 0 4px var(--yellow); }
.wc-hint { margin: .7rem 0 0; font-size: .78rem; }
.wc-timeline { list-style: none; margin: 0; padding: 0 0 0 1.1rem; border-left: 2px solid var(--line); }
.wc-timeline li { position: relative; display: flex; flex-wrap: wrap; align-items: baseline; gap: .2rem .8rem; padding: .35rem 0 .7rem; }
.wc-timeline li::before { content: ""; position: absolute; left: calc(-1.1rem - 6px); top: .7rem; width: 10px; height: 10px; border-radius: 50%; background: #2F6FCF; box-shadow: 0 0 0 3px var(--paper); }
.wc-timeline li.live::before { background: var(--green); }
.wc-tl-time { font-variant-numeric: tabular-nums; font-weight: 500; }
.wc-timeline .memo { flex-basis: 100%; }
@media (max-width: 560px) {
  .work-cal { gap: 4px; }
  .wc-day { min-height: 4.2rem; padding: .3rem .3rem; border-radius: 9px; }
  .wc-time { display: none; }
  .wc-hours { font-size: .9rem; margin-top: auto; letter-spacing: -.02em; }
  .wc-hours.live { font-size: .6rem; gap: .2rem; letter-spacing: -.04em; }
  .wc-hours.live i { width: 6px; height: 6px; }
  .wc-today { display: none; }
  .wc-legend { margin-left: 0; }
}

.month-bars { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: .4rem; align-items: end; }
.mb { display: flex; flex-direction: column; align-items: center; gap: .2rem; text-decoration: none; color: var(--muted); font-size: .72rem; }
.mb-bar { display: flex; align-items: flex-end; height: 140px; width: 100%; justify-content: center; }
.mb-bar i { display: block; width: 62%; background: #2a78d6; border-radius: 4px 4px 0 0; min-height: 1px; }
.mb:hover .mb-bar i, .mb:focus .mb-bar i { background: #1c5cab; }
.mb-val { color: #52514e; font-size: .68rem; white-space: nowrap; }
.allow-card { padding: .85rem 1rem; }
.allow-head { display: flex; justify-content: space-between; align-items: baseline; gap: .5rem; flex-wrap: wrap; margin-bottom: .6rem; }
.allow-head h2 { margin: 0; }
.allow-row { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }
.allow-ex { margin: .6rem 0 0; }
.switch { display: inline-flex; align-items: center; gap: .55rem; padding: .45rem .7rem; border: 1px solid var(--line);
  border-radius: 10px; cursor: pointer; background: var(--paper); min-width: 170px; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.sw-track { position: relative; width: 2.4rem; height: 1.35rem; border-radius: 1rem; background: #C9D0DF; flex: none; transition: background .15s; }
.sw-track i { position: absolute; top: .15rem; left: .15rem; width: 1.05rem; height: 1.05rem; border-radius: 50%; background: #fff;
  box-shadow: 0 1px 2px rgba(0,0,0,.25); transition: left .15s; }
.switch.on { border-color: #9fd3b4; background: #F2FAF5; }
.switch.on .sw-track { background: var(--green); }
.switch.on .sw-track i { left: 1.2rem; }
.switch input:focus-visible + .sw-track { outline: 3px solid var(--yellow); outline-offset: 2px; }
.sw-text { display: flex; flex-direction: column; line-height: 1.25; }
.sw-text small { font-size: .72rem; }
.toggles { border: 1px solid var(--line); border-radius: 8px; padding: .6rem .9rem .2rem; margin: 0 0 .9rem; }
.toggles legend { font-weight: 700; padding: 0 .3rem; }
.inline-form { display: inline-flex; align-items: center; gap: .3rem; margin: 0; }

/* 근무 기입 요청 (내 급여 달력 · 직원·근무 > 기입 요청) */
.st-pending { background: #FFF2C8; color: #8A6400; }
.st-approved { background: #DDF2E7; color: var(--green); }
.pc-req { align-self: flex-start; padding: 0 .3rem; border-radius: 3px; background: #FFF2C8; color: #8A6400; font-size: .64rem; white-space: nowrap; }
.sub-h { font-size: .9rem; margin: 1rem 0 .3rem; }
.req-row > span:first-child { display: flex; flex-direction: column; }
.req-act { display: inline-flex; align-items: center; gap: .5rem; flex: none; }
.req-form { margin-top: 1rem; border-top: 1px solid var(--bg); padding-top: .8rem; }
.req-form summary { display: inline-flex; align-items: center; gap: .35rem; cursor: pointer; font-weight: 700; }
.req-form .form { margin-top: .8rem; }
.req-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: .3rem .8rem; }
.req-head b { font-size: 1.05rem; }
.req-reason { margin: .4rem 0 .8rem; padding: .5rem .7rem; background: var(--bg); border-radius: 6px; font-size: .9rem; }
.req-btns { margin-top: .4rem; }
.req-btns .grow input, .req-btns input.grow { padding: .55rem .7rem; border: 1px solid var(--line); border-radius: 6px; font: inherit; }
.tabs .badge { margin-left: .2rem; }
/* 개인정보 처리방침 · 이용약관 */
.legal { max-width: 820px; margin: 0 auto 1rem; padding: 1.4rem 1.4rem 1.6rem; line-height: 1.75; }
.legal h1 { font: 400 1.7rem/1.2 var(--display); margin: 0 0 .2rem; }
.legal h2 { display: block; font-size: 1.05rem; margin: 1.8rem 0 .5rem; padding-top: .3rem; scroll-margin-top: 1rem; }
.legal p, .legal li { font-size: .94rem; }
.legal ul, .legal ol { padding-left: 1.3rem; margin: .4rem 0; }
.legal li { margin: .2rem 0; }
.legal-meta { color: var(--muted); margin: 0 0 1rem; }
.legal-toc { display: flex; flex-wrap: wrap; gap: .3rem .9rem; padding: .8rem 1rem; margin: 1rem 0; background: var(--bg); border-radius: 6px; font-size: .86rem; }
.legal-toc a { color: var(--ink); text-decoration: none; }
.legal-toc a:hover { text-decoration: underline; }
.legal .tbl-wrap { overflow-x: auto; margin: .5rem 0; }
.legal .tbl { font-size: .86rem; min-width: 520px; }
.legal .tbl td, .legal .tbl th { vertical-align: top; }
.legal-dl { display: grid; grid-template-columns: max-content 1fr; gap: .3rem 1rem; font-size: .94rem; margin: .5rem 0; }
.legal-dl dt { color: var(--muted); }
.legal-dl dd { margin: 0; }
.legal-biz { margin-top: 2rem; padding-top: 1rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .84rem; line-height: 1.7; }
.legal-links { font-size: .82rem; margin-top: 1.2rem; }
.legal-links a { color: var(--muted); }
.side-legal { margin: .6rem .7rem 0; font-size: .72rem; }
.side-legal a { color: #8F98AD; text-decoration: none; }
.side-legal a:hover { color: #fff; }
.book-sync { display: flex; justify-content: space-between; align-items: center; gap: .8rem; flex-wrap: wrap; }
.book-sync form { margin: 0; }
.wc-ot { font-size: .8rem; color: #1c5cab; white-space: nowrap; }
.pend-sum { display: block; text-align: right; color: #8A6400; font-weight: 500; font-size: .8rem; }
.cal-hint { margin: -.4rem 0 .8rem; }
.est-pay { color: #1c5cab; }
.est-box { margin: .2rem 0 .8rem; padding: .7rem .85rem; border-radius: 8px; background: #EAF2FD; color: var(--muted); font-size: .9rem; }
.est-box .est-top { display: flex; justify-content: space-between; align-items: baseline; gap: .5rem; color: var(--ink); }
.est-box .est-top b { font: 400 1.5rem/1.1 var(--display); color: #1c5cab; font-variant-numeric: tabular-nums; white-space: nowrap; }
.est-box.bad { background: #FBE3E3; color: var(--red); }

.pacts { display: inline-flex; gap: .5rem; align-items: center; }
.pacts form { margin: 0; display: inline; }
.pacts .linkbtn { text-decoration: none; }

/* ===== 오류 화면 (error.html): 만화 칸 한 장 + 망점 배경 + 효과음 ===== */
.err-page {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: var(--bg) radial-gradient(#C9D0DC 1.1px, transparent 1.4px) 0 0 / 16px 16px;
}
.err { width: 100%; max-width: 500px; padding: 2rem 1rem calc(2rem + env(safe-area-inset-bottom, 0px)); }
.err-logo { max-width: 210px; margin: 0 auto 1.6rem; }
.err-panel {
  --top: var(--yellow); --dots: rgba(31, 42, 68, .16); --num: #fff;
  background: var(--paper); border: 3px solid var(--ink); border-radius: 6px;
  box-shadow: 8px 8px 0 var(--ink); margin-right: 8px; overflow: hidden;
}
.err-panel.tone-ink { --top: var(--ink); --dots: rgba(255, 255, 255, .1); --num: var(--yellow); }
.err-panel.tone-red { --top: var(--red); --dots: rgba(0, 0, 0, .14); --num: #fff; }
.err-top {
  position: relative; padding: 2.2rem 1rem 1.6rem; text-align: center; border-bottom: 3px solid var(--ink);
  background:
    radial-gradient(var(--dots) 1.6px, transparent 1.9px) 0 0 / 10px 10px,
    repeating-conic-gradient(from 0deg at 50% 60%, rgba(255, 255, 255, .14) 0 4deg, transparent 4deg 12deg),
    var(--top);
}
.err-code {
  margin: 0; font: 400 clamp(5rem, 26vw, 7.5rem)/1 var(--display); letter-spacing: .04em;
  color: var(--num);
  /* 외곽선은 그림자로 (text-stroke 는 글꼴 안쪽 윤곽선까지 그려서 0 안에 줄이 보임) */
  text-shadow: -3px -3px 0 var(--ink), 3px -3px 0 var(--ink), -3px 3px 0 var(--ink), 3px 3px 0 var(--ink),
    0 -3px 0 var(--ink), 0 3px 0 var(--ink), -3px 0 0 var(--ink), 3px 0 0 var(--ink),
    8px 8px 0 var(--ink);
}
.err-sfx {
  position: absolute; top: .9rem; right: 1rem; transform: rotate(8deg);
  padding: .25rem .75rem; border: 3px solid var(--ink); border-radius: 4px;
  background: #fff; color: var(--ink); box-shadow: 3px 3px 0 var(--ink);
  font: 400 1.25rem/1.2 var(--display); white-space: nowrap;
  animation: err-pop .45s cubic-bezier(.2, 1.6, .4, 1) both .1s;
}
.tone-ink .err-sfx, .tone-red .err-sfx { background: var(--yellow); }
@keyframes err-pop { from { transform: rotate(8deg) scale(0); } to { transform: rotate(8deg) scale(1); } }
.err-body { padding: 1.4rem 1.4rem 1.5rem; }
.err-body h1 { font: 400 1.65rem/1.25 var(--display); margin: 0 0 .5rem; }
.err-msg { margin: 0 0 .9rem; }
.err-hint {
  display: flex; gap: .5rem; align-items: flex-start; margin: 0 0 1.2rem; padding: .6rem .75rem;
  background: #FFF6DB; border-left: 4px solid var(--yellow); border-radius: 4px; font-size: .9rem;
}
.err-hint .ico { margin-top: .15rem; }
.err-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.err-actions .btn { flex: 1 1 10rem; }
.err-foot { margin: 1.4rem 0 0; text-align: center; color: var(--muted); font-size: .8rem; }
.err-foot code { background: rgba(255, 255, 255, .7); }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* ---------- 책장 위치 (도서 '위치 보기' 팝업 · 책장 위치 지정) ---------- */
.shelf-map { position: relative; aspect-ratio: 9 / 16; width: 100%; background: #f4f4f4; border-radius: 10px; overflow: hidden; user-select: none; }
.shelf-map > img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none; }
.shelf-dot { position: absolute; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%;
  background: #E11D2E; border: 3px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,.45); pointer-events: none; }
.shelf-dot.pulse::after { content: ''; position: absolute; inset: -9px; border-radius: 50%; border: 3px solid #E11D2E;
  animation: shelf-pulse 1.4s ease-out infinite; }
@keyframes shelf-pulse { from { transform: scale(.5); opacity: 1; } to { transform: scale(1.8); opacity: 0; } }
.shelf-dot.small { width: 12px; height: 12px; margin: -6px 0 0 -6px; border-width: 2px; }
.shelf-dot.small.sel { background: #FFC83D; border-color: #1F2A44; width: 16px; height: 16px; margin: -8px 0 0 -8px; }
.shelf-dot b { position: absolute; left: 50%; bottom: 100%; transform: translate(-50%, -2px); white-space: nowrap;
  font-size: 11px; line-height: 1.2; padding: 0 4px; border-radius: 4px; background: rgba(31,42,68,.85); color: #fff; }
dialog.map-dlg { padding: 0; border: 0; border-radius: 14px; width: min(94vw, calc(78vh * 9 / 16 + 2rem)); max-height: 96vh; }
dialog.map-dlg::backdrop { background: rgba(15, 20, 35, .6); }
.map-dlg .head { display: flex; align-items: flex-start; justify-content: space-between; gap: .5rem; padding: .8rem 1rem .6rem; }
.map-dlg .head b { display: block; font-size: 1.02rem; line-height: 1.35; }
.map-dlg .body { padding: 0 1rem 1rem; }
.map-dlg .note { margin: 0 0 .6rem; padding: .5rem .7rem; border-radius: 8px; background: #FFF4D6; font-size: .88rem; }
.shelf-setup { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 420px); gap: 1rem; align-items: start; }
.shelf-setup .shelf-map { cursor: crosshair; }
.shelf-list { display: flex; flex-wrap: wrap; gap: .35rem; margin-bottom: .9rem; }
.shelf-list button { border: 1px solid var(--line); background: #fff; border-radius: 8px; padding: .25rem .55rem; font: inherit; font-size: .85rem; cursor: pointer; }
.shelf-list button.set { border-color: var(--green); color: var(--green); }
.shelf-list button.sel { background: var(--ink); border-color: var(--ink); color: #fff; }
@media (max-width: 800px) { .shelf-setup { grid-template-columns: 1fr; } }

/* 여백 조절 (화면 html 에 style="" 대신) */
.flush { margin: 0; }
.gap-top { margin-top: 1rem; }
