:root {
  --bg: #eef0f3;
  --panel: #ffffff;
  --floor: #d9dce1;
  --floor-2: #cfd3d9;
  --line: #ffffff;
  --text: #16181d;
  --muted: #5d6470;
  --border: #dde1e6;
  --pillar: #8a909a;
  --wall: #a3a9b2;

  --available: #12a150;
  --available-bg: #dff5e7;
  --charging: #2f6fe4;
  --charging-bg: #dfe9fc;
  --fault: #dc3b3b;
  --fault-bg: #fbe3e3;
  --maint: #d88a00;
  --maint-bg: #fcefd4;
  --unknown: #7c838e;
  --unknown-bg: #e7e9ec;

  --hansol: #6b4fd8;
  --everon: #0f9a8e;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #101216; --panel: #191c22; --floor: #262a31; --floor-2: #20242a; --line: #d9dde3;
    --text: #eef0f3; --muted: #9aa1ac; --border: #2c3139; --pillar: #4b515b; --wall: #3d434c;
    --available: #2fcf74; --available-bg: #123222; --charging: #5b93ff; --charging-bg: #16264a;
    --fault: #ff6565; --fault-bg: #3a1717; --maint: #ffb432; --maint-bg: #3a2b0d;
    --unknown: #8d949f; --unknown-bg: #2a2e35; --hansol: #9f8bff; --everon: #3fd1c3;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #101216; --panel: #191c22; --floor: #262a31; --floor-2: #20242a; --line: #d9dde3;
  --text: #eef0f3; --muted: #9aa1ac; --border: #2c3139; --pillar: #4b515b; --wall: #3d434c;
  --available: #2fcf74; --available-bg: #123222; --charging: #5b93ff; --charging-bg: #16264a;
  --fault: #ff6565; --fault-bg: #3a1717; --maint: #ffb432; --maint-bg: #3a2b0d;
  --unknown: #8d949f; --unknown-bg: #2a2e35; --hansol: #9f8bff; --everon: #3fd1c3;
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: "Pretendard", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", sans-serif;
  font-size: 15px; line-height: 1.45;
  padding: 0 16px calc(24px + env(safe-area-inset-bottom));
  max-width: 1180px; margin-inline: auto;
}

.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 0 12px; }
h1 { margin: 0; font-size: 22px; letter-spacing: -0.02em; }
.sub { color: var(--muted); font-size: 13px; display: flex; gap: 8px; align-items: center; margin-top: 2px; }
.mode { background: var(--maint-bg); color: var(--maint); font-weight: 700; font-size: 11px; padding: 1px 7px; border-radius: 99px; }
.refresh {
  flex: none; width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--border);
  background: var(--panel); color: var(--text); display: grid; place-items: center; cursor: pointer;
}
.refresh.spin svg { animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* 뒤로가기 · 홈 메뉴 */
.back {
  display: inline-flex; align-items: center; gap: 4px; height: 38px; padding: 0 14px 0 9px; margin-bottom: 10px;
  border-radius: 99px; border: 1px solid var(--border); background: var(--panel); color: var(--text);
  font-size: 14px; font-weight: 700; text-decoration: none; box-shadow: 0 1px 2px rgb(0 0 0 / .06);
}
.back:hover { border-color: var(--muted); }
.back:active { transform: scale(.97); }
.home-top { padding-top: 28px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { width: 54px; height: auto; flex: none; }
.menu { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 12px; }
.card {
  position: relative; display: grid; grid-template-columns: 48px 1fr; grid-template-rows: auto auto; align-content: center; min-height: 76px; column-gap: 14px; row-gap: 2px;
  background: var(--panel); border: 1px solid var(--border); border-radius: 18px; padding: 16px 40px 16px 16px; color: inherit; text-decoration: none;
  transition: border-color .15s, transform .15s;
}
.card:hover { border-color: var(--muted); }
.card:active { transform: scale(.99); }
.card-ic { grid-row: 1 / 3; width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; color: var(--ic); background: color-mix(in srgb, var(--ic) 14%, transparent); }
.card-ic svg { width: 26px; height: 26px; }
.card-ic.ic-ev { --ic: var(--available); } .card-ic.ic-bus { --ic: var(--charging); }
.card-t { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 16px; font-weight: 800; letter-spacing: -0.01em; }
.card-v { font-size: 15px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.card-v b { font-size: 20px; font-variant-numeric: tabular-nums; }
.card-v small { color: var(--muted); font-size: 13px; }
.card-v .rt { min-width: 0; }
.card-s { font-size: 12.5px; color: var(--muted); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card-s .hv { color: var(--available); }
.card.soon { cursor: default; min-height: 60px; display: flex; align-items: center; justify-content: center; padding: 16px; border-style: dashed; background: transparent; }
.card-soon { font-size: 14px; font-weight: 600; color: var(--muted); }
.card.soon:hover { border-color: var(--border); }
.card.soon:active { transform: none; }
.card-ic.ic-notice { --ic: var(--maint); }
.card-ic.ic-info { --ic: var(--hansol); }
.card-ic.ic-gray { --ic: var(--unknown); }
.card-badge { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); font-size: 11px; font-weight: 700; color: var(--muted); background: var(--floor); border-radius: 99px; padding: 2px 9px; }
.card-go { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); font-size: 26px; color: var(--muted); }

/* 홈 날씨 */
.wx { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 2px; padding: 6px 10px; border-radius: 14px; border: 1px solid var(--border); background: var(--panel); color: var(--text); font: inherit; cursor: pointer; }
.wx-main { display: flex; align-items: center; gap: 4px; }
.wx-ic { font-size: 20px; line-height: 1; }
.wx-main b { font-size: 20px; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.wx-air { font-size: 11.5px; color: var(--muted); white-space: nowrap; }
.g1 { color: #2f6fe4; } .g2 { color: var(--available); } .g3 { color: #e07b00; } .g4 { color: var(--fault); }
.wx-panel { background: var(--panel); border: 1px solid var(--border); border-radius: 18px; padding: 14px; margin-bottom: 12px; }
.wx-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.wx-big { font-size: 38px; line-height: 1; }
.wx-head b { display: block; font-size: 18px; }
.wx-head small { color: var(--muted); font-size: 13px; }
.wx-dl { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px; margin: 0 0 12px; font-size: 13px; }
.wx-dl div { display: flex; justify-content: space-between; gap: 6px; border-bottom: 1px dashed var(--border); padding-bottom: 4px; }
.wx-dl dt { color: var(--muted); }
.wx-dl dd { margin: 0; font-variant-numeric: tabular-nums; text-align: right; }
.wx-hours { display: flex; gap: 4px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.wx-hours div { flex: none; width: 48px; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 0; border-radius: 10px; background: var(--floor-2); font-size: 11.5px; }
.wx-hours .i { font-size: 18px; }
.wx-hours b { font-size: 13px; }
.wx-hours small { color: #2f6fe4; font-size: 10.5px; }
.wx-src { margin-top: 8px; font-size: 11px; color: var(--muted); }

/* 요약 */
.summary { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 14px; }
.sum {
  background: var(--panel); border: 1px solid var(--border); border-radius: 14px; padding: 10px 12px;
  display: flex; flex-direction: column; gap: 2px; cursor: pointer; text-align: left; color: inherit; font: inherit;
}
.sum .k { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.sum .v { font-size: 24px; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.sum .v small { font-size: 13px; font-weight: 600; color: var(--muted); margin-left: 2px; }
.sum[aria-pressed="true"] { outline: 2px solid currentColor; outline-offset: -2px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c); display: inline-block; }
.sum.available { --c: var(--available); } .sum.available[aria-pressed="true"] { color: var(--available); }
.sum.charging { --c: var(--charging); } .sum.charging[aria-pressed="true"] { color: var(--charging); }
.sum.fault { --c: var(--fault); } .sum.fault[aria-pressed="true"] { color: var(--fault); }
.sum.maint { --c: var(--maint); } .sum.maint[aria-pressed="true"] { color: var(--maint); }

.error { background: var(--fault-bg); color: var(--fault); border-radius: 12px; padding: 10px 12px; font-size: 13px; margin-bottom: 12px; }

/* 구역 */
.zones { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 520px), 1fr)); gap: 14px; }
.zone { background: var(--panel); border: 1px solid var(--border); border-radius: 18px; padding: 14px; min-width: 0; }
.zone-h { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; }
.zone-h h2 { margin: 0; font-size: 16px; letter-spacing: -0.01em; }
.floor { font-size: 11px; font-weight: 700; background: var(--floor); color: var(--muted); padding: 2px 7px; border-radius: 6px; }
.op { font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 6px; color: var(--opc); background: color-mix(in srgb, var(--opc) 14%, transparent); }
.op.hansol { --opc: var(--hansol); } .op.everon { --opc: var(--everon); }
.zone-free { margin-left: auto; font-size: 12px; color: var(--muted); }
.zone-usual { flex-basis: 100%; font-size: 12px; color: var(--muted); margin-top: -4px; text-align: right; }
.zone-free b { color: var(--available); }

.lot { background: var(--floor-2); border-radius: 12px; padding: 0 8px; overflow-x: auto; overflow-y: hidden; }
.wallbar {
  height: 14px; margin: 0 -8px; border-radius: 12px 12px 0 0; font-size: 10px; line-height: 14px; text-align: center; color: var(--muted);
  background: repeating-linear-gradient(-45deg, var(--wall) 0 4px, transparent 4px 9px), var(--floor);
}
.row { display: flex; align-items: stretch; min-width: min-content; padding-top: 8px; }
.drive { height: 26px; margin: 0 -8px; border-top: 2px dashed color-mix(in srgb, var(--line) 50%, transparent); display: flex; align-items: center; justify-content: center; font-size: 10px; color: var(--muted); letter-spacing: .2em; }

/* 주차면 */
.stall {
  position: relative; flex: 1 1 0; min-width: 66px; max-width: 120px; height: 168px;
  border-left: 3px solid var(--line); border-top: 3px solid var(--line);
  padding: 8px 6px 6px; display: flex; flex-direction: column; align-items: center; gap: 4px;
  background: color-mix(in srgb, var(--c) 10%, transparent); transition: opacity .2s;
  cursor: pointer;
}
.stall.end { border-right: 3px solid var(--line); }
.stall.wide { flex-grow: 1.5; max-width: 170px; }
.stall.available { --c: var(--available); }
.stall.charging { --c: var(--charging); }
.stall.fault { --c: var(--fault); }
.stall.maint { --c: var(--maint); }
.stall.unknown { --c: var(--unknown); }
.stall.dim { opacity: .25; }

.num { font-size: 15px; font-weight: 800; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.num .opmark { display: block; width: 18px; height: 3px; border-radius: 2px; margin: 2px auto 0; background: var(--opc); }
.stall.hansol { --opc: var(--hansol); } .stall.everon { --opc: var(--everon); }

.car { width: 40px; height: 64px; color: var(--c); flex: none; }
.plug { width: 34px; height: 34px; color: var(--c); margin: 14px 0 16px; flex: none; }
.badge {
  font-size: 11.5px; font-weight: 800; color: var(--c); background: var(--panel);
  border: 1.5px solid var(--c); border-radius: 99px; padding: 1px 8px; white-space: nowrap;
}
.time { font-size: 11.5px; color: var(--muted); font-variant-numeric: tabular-nums; text-align: center; white-space: nowrap; }
.time b { color: var(--text); font-weight: 700; }
.note { position: absolute; bottom: 2px; font-size: 9.5px; color: var(--muted); }
.stall.charging .bolt { animation: pulse 1.6s ease-in-out infinite; transform-origin: center; }
@keyframes pulse { 50% { opacity: .35; } }

.pillar {
  flex: none; width: 30px; align-self: flex-start; height: 30px; margin: 0 4px; border-radius: 4px; background: var(--pillar);
  display: grid; place-items: center; color: var(--panel); font-size: 9.5px; font-weight: 700;
}
.wallitem {
  flex: none; width: 14px; margin-right: 0; border-radius: 3px 0 0 0;
  background: repeating-linear-gradient(-45deg, var(--wall) 0 4px, transparent 4px 9px), var(--floor);
}

/* 상세 팝업 */
dialog {
  border: 1px solid var(--border); border-radius: 18px; background: var(--panel); color: var(--text);
  padding: 18px; width: min(360px, calc(100vw - 32px));
}
dialog::backdrop { background: rgb(0 0 0 / .45); }
dialog h3 { margin: 0 0 10px; font-size: 18px; }
dialog dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 0 0 14px; font-size: 14px; }
dialog dt { color: var(--muted); }
dialog dd { margin: 0; font-variant-numeric: tabular-nums; }
dialog button { width: 100%; height: 42px; border-radius: 12px; border: 0; background: var(--floor); color: var(--text); font: inherit; font-weight: 700; cursor: pointer; }


/* 14시간 초과 */
.stall.long { --c: var(--fault); background: color-mix(in srgb, var(--fault) 20%, transparent); box-shadow: inset 0 0 0 2px var(--fault); }
.stall.long .badge { background: var(--fault); color: #fff; border-color: var(--fault); }
.stall.long .time b { color: var(--fault); }


/* 버스 도착 */
.bus { background: var(--panel); border: 1px solid var(--border); border-radius: 18px; padding: 14px; margin-bottom: 14px; }
.blist { display: flex; flex-direction: column; }
.brow { display: grid; grid-template-columns: auto 1fr auto 64px; align-items: center; gap: 10px; padding: 9px 2px; border-top: 1px solid var(--border); }
.brow:first-child { border-top: 0; }
.rt { min-width: 58px; text-align: center; font-weight: 800; font-size: 13px; color: #fff; background: var(--rc, var(--unknown)); border-radius: 8px; padding: 3px 7px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.rt.village { --rc: #4f9d2d; } .rt.trunk { --rc: #2f5fd0; } .rt.branch { --rc: #3a9a3f; } .rt.wide, .rt.gyeonggi { --rc: #d6383a; }
.rt.airport { --rc: #9a7f55; } .rt.circle { --rc: #d88a00; }
.bdir.pin { color: var(--text); font-weight: 700; }
.bdir { font-size: 13px; color: var(--muted); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.barr { text-align: right; display: flex; flex-direction: column; align-items: flex-end; line-height: 1.2; }
.barr b { font-size: 16px; font-variant-numeric: tabular-nums; }
.barr.soon b { color: var(--fault); }
.barr small, .barr2 small { font-size: 11px; color: var(--muted); display: block; }
.barr2 { text-align: right; font-size: 13px; color: var(--muted); line-height: 1.2; font-variant-numeric: tabular-nums; }
.barr.none b { font-size: 13px; color: var(--muted); font-weight: 600; }
.barr2.none { font-size: 11.5px; }
.bempty { color: var(--muted); font-size: 13px; padding: 10px 2px; }
.bmore { width: 100%; height: 38px; margin-top: 6px; border-radius: 10px; border: 1px solid var(--border); background: none; color: var(--text); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }

.btable { margin-top: -2px; }
.tt-h { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; margin-bottom: 10px; flex-wrap: wrap; }
.tt-h small { font-weight: 600; color: var(--muted); font-size: 12px; }
.tt-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.tt-item { background: var(--floor-2); border-radius: 10px; padding: 8px 4px; display: flex; flex-direction: column; align-items: center; gap: 1px; }
.tt-item b { font-size: 17px; font-variant-numeric: tabular-nums; }
.tt-item span { font-size: 11px; color: var(--muted); white-space: nowrap; letter-spacing: -0.03em; }
.tt-note { font-size: 11.5px; color: var(--muted); margin-top: 10px; line-height: 1.4; }

.tt-full { margin-top: 14px; }
.tt-full-h { font-size: 13px; font-weight: 700; margin-bottom: 6px; }
.tt-full table { width: 100%; border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; table-layout: fixed; }
.tt-full th, .tt-full td { border: 1px solid var(--border); padding: 5px 4px; text-align: center; }
.tt-full thead th { background: var(--floor-2); font-size: 12px; font-weight: 700; }
.tt-full thead th:first-child, .tt-full tbody th { width: 34px; }
.tt-full tbody th { color: var(--muted); font-weight: 600; background: var(--floor-2); }
.tt-full td { letter-spacing: .02em; color: var(--muted); }
.tt-full td.today, .tt-full th.today { color: var(--text); font-weight: 700; }
.tt-full thead th.today { background: var(--charging); color: #fff; }
.tt-full tr.now td.today { background: color-mix(in srgb, var(--charging) 16%, transparent); }
.tt-full tr.now th { color: var(--charging); }

/* 공지사항 */
.newb { display: inline-block; font-size: 10.5px; font-weight: 800; color: #fff; background: var(--fault); border-radius: 99px; padding: 1px 7px; vertical-align: 2px; margin-left: 4px; }
.notices { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.ncard { display: flex; flex-direction: column; gap: 6px; padding: 8px; border-radius: 14px; border: 1px solid var(--border); background: var(--panel); color: inherit; font: inherit; cursor: pointer; text-align: left; }
.ncard img { width: 100%; aspect-ratio: 725 / 1025; object-fit: cover; object-position: top; border-radius: 8px; background: var(--floor); display: block; }
.ndate { font-size: 13px; font-weight: 700; padding: 0 2px; }
.ndlg { width: min(760px, calc(100vw - 16px)); max-height: calc(100dvh - 16px); padding: 0; overflow: auto; }
.ndlg-h { position: sticky; top: 0; display: flex; align-items: center; gap: 12px; padding: 10px 12px; background: var(--panel); border-bottom: 1px solid var(--border); }
.ndlg-h b { flex: 1; }
.ndlg-h a { font-size: 13px; color: var(--charging); font-weight: 600; text-decoration: none; }
.ndlg-h form { margin: 0; }
.ndlg-h button { width: 34px; height: 34px; border-radius: 10px; font-size: 15px; }
.ndlg img { display: block; width: 100%; height: auto; }

/* 생활 안내 */
.info-nav { position: sticky; top: 0; z-index: 2; display: flex; gap: 6px; overflow-x: auto; padding: 8px 16px; margin: 0 -16px 10px; background: var(--bg); scrollbar-width: none; }
.info-nav::-webkit-scrollbar { display: none; }
.info-nav a { flex: none; height: 32px; padding: 0 12px; display: inline-flex; align-items: center; border-radius: 99px; border: 1px solid var(--border); background: var(--panel); color: var(--text); font-size: 13px; font-weight: 600; text-decoration: none; }
.info { display: flex; flex-direction: column; gap: 12px; }
.info-sec { background: var(--panel); border: 1px solid var(--border); border-radius: 18px; padding: 14px; scroll-margin-top: 56px; }
.info-sec h2 { margin: 0 0 10px; font-size: 16px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.hours { font-size: 12px; font-weight: 700; color: var(--charging); background: var(--charging-bg); border-radius: 6px; padding: 2px 7px; }
.itable { width: 100%; border-collapse: collapse; font-size: 13.5px; font-variant-numeric: tabular-nums; }
.itable th, .itable td { border: 1px solid var(--border); padding: 8px 6px; text-align: center; }
.itable thead th { background: var(--floor-2); font-size: 12.5px; }
.itable tbody th { background: var(--floor-2); font-weight: 600; white-space: nowrap; }
.itable.as td { text-align: left; font-size: 13px; }
.itable.as td:nth-child(2), .itable.as td:last-child { white-space: nowrap; }
.callbtn { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--charging-bg); color: var(--charging); text-decoration: none; }
.callbtn span { display: flex; flex-direction: column; line-height: 1.3; }
.callbtn b { font-size: 19px; font-variant-numeric: tabular-nums; }
.callbtn small { font-size: 12px; color: var(--muted); }
.tel { color: var(--charging); font-weight: 700; text-decoration: none; }
.inote { margin: 10px 0 0; padding-left: 18px; font-size: 13px; color: var(--muted); line-height: 1.6; }
.inote b { color: var(--text); }
.isearch { width: 100%; height: 40px; border-radius: 10px; border: 1px solid var(--border); background: var(--bg); color: var(--text); font: inherit; padding: 0 12px; margin-bottom: 10px; }
@media (max-width: 560px) {
  .info-sec { padding: 12px 10px; }
  .itable { font-size: 12.5px; }
  .itable th, .itable td { padding: 7px 4px; }
  .itable.as td { font-size: 12px; }
  .itable.as td:nth-child(2) { white-space: normal; }
}

/* 급식 */
.card-ic.ic-meal { --ic: #e0662f; }
.meal-today { background: var(--panel); border: 1px solid var(--border); border-radius: 18px; padding: 16px; margin-bottom: 12px; }
.mt-h { display: flex; align-items: baseline; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; }
.mt-h b { font-size: 18px; }
.mt-h span { font-size: 13px; color: var(--muted); }
.dishes { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; font-size: 14px; }
.dishes small { font-size: 10.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.dishes.big { font-size: 17px; gap: 7px; font-weight: 600; }
.dishes.big small { font-weight: 400; }
.meal-week { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 10px; margin-bottom: 12px; }
.mday { background: var(--panel); border: 1px solid var(--border); border-radius: 14px; padding: 12px; }
.mday.past { opacity: .5; }
.mday-h { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 6px; }
.mday-h span { font-size: 12px; color: var(--muted); }
.evlist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.evlist li { display: flex; gap: 12px; padding: 8px 2px; border-top: 1px solid var(--border); font-size: 14px; }
.evlist li:first-child { border-top: 0; }
.evlist b { min-width: 64px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.evlist li.off span { color: var(--fault); font-weight: 600; }
.allergy { margin-top: 12px; font-size: 13px; color: var(--muted); }
.allergy summary { cursor: pointer; font-weight: 600; }
.allergy p { line-height: 1.7; margin: 8px 0 0; }

/* 기능 제안 */
.card-ic.ic-sug { --ic: #d4a400; }
.sug { background: var(--panel); border: 1px solid var(--border); border-radius: 18px; padding: 16px; display: flex; flex-direction: column; gap: 14px; }
.sug-kind { border: 0; margin: 0; padding: 0; display: flex; gap: 6px; flex-wrap: wrap; }
.sug-kind legend { font-size: 13px; font-weight: 700; margin-bottom: 6px; padding: 0; }
.sug-kind label { position: relative; }
.sug-kind input { position: absolute; opacity: 0; inset: 0; }
.sug-kind span { display: inline-flex; align-items: center; height: 36px; padding: 0 14px; border-radius: 99px; border: 1px solid var(--border); font-size: 13.5px; font-weight: 600; cursor: pointer; }
.sug-kind input:checked + span { background: var(--charging); border-color: var(--charging); color: #fff; }
.sug-kind input:focus-visible + span { outline: 2px solid var(--charging); outline-offset: 2px; }
.sug-f { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 700; }
.sug-f em { font-style: normal; font-weight: 500; color: var(--muted); }
.sug-f textarea, .sug-f input { width: 100%; border-radius: 12px; border: 1px solid var(--border); background: var(--bg); color: var(--text); font: inherit; font-size: 15px; font-weight: 400; padding: 10px 12px; resize: vertical; }
.sug-f input { height: 44px; }
.sug-f small { font-size: 11.5px; font-weight: 400; color: var(--muted); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.sug-btn { height: 48px; border-radius: 14px; border: 0; background: var(--charging); color: #fff; font: inherit; font-size: 16px; font-weight: 800; cursor: pointer; }
.sug-btn:disabled { opacity: .6; cursor: default; }
.sug-msg { border-radius: 12px; padding: 10px 12px; font-size: 14px; font-weight: 600; }
.sug-msg.ok { background: var(--available-bg); color: var(--available); }
.sug-msg.bad { background: var(--fault-bg); color: var(--fault); }

/* 혼잡 시간대 */
.stats { background: var(--panel); border: 1px solid var(--border); border-radius: 18px; padding: 14px; margin-top: 14px; }
.stats-h { display: flex; align-items: baseline; gap: 8px; margin-bottom: 10px; }
.stats-h h2 { margin: 0; font-size: 16px; }
.stats-sub { font-size: 12px; color: var(--muted); }
.szones { display: flex; gap: 6px; overflow-x: auto; margin: 0 -14px 8px; padding: 0 14px 2px; scrollbar-width: none; }
.szones::-webkit-scrollbar { display: none; }
.szone { flex: none; height: 32px; padding: 0 12px; border-radius: 99px; border: 1px solid var(--border); background: var(--panel); color: var(--text); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; white-space: nowrap; }
#bstops { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; overflow: visible; margin: 0 0 10px; padding: 0; }
.bstop { min-width: 0; text-align: left; height: auto; padding: 7px 14px; border-radius: 14px; display: flex; flex-direction: column; align-items: flex-start; line-height: 1.25; gap: 1px; }
.bstop b { font-size: 14px; }
.bstop small { font-size: 11px; font-weight: 500; color: var(--muted); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bstop[aria-pressed="true"] small { color: rgb(255 255 255 / .8); }
.szone[aria-pressed="true"] { background: var(--charging); border-color: var(--charging); color: #fff; }
.days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin-bottom: 12px; }
.day { height: 38px; border-radius: 10px; border: 1px solid var(--border); background: var(--panel); color: var(--text); font: inherit; font-weight: 700; font-size: 13px; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.1; }
.day small { font-size: 9.5px; font-weight: 600; color: var(--muted); }
.day.we { color: var(--muted); }
.day[aria-pressed="true"] { background: var(--text); color: var(--panel); border-color: var(--text); }
.day[aria-pressed="true"] small { color: inherit; opacity: .75; }
.chart { display: grid; grid-template-columns: repeat(24, 1fr); gap: 2px; height: 140px; align-items: end; border-bottom: 1px solid var(--border); }
.bar { height: 100%; padding: 0; border: 0; background: none; cursor: pointer; display: flex; align-items: flex-end; }
.bar span { display: block; width: 100%; background: color-mix(in srgb, var(--charging) 55%, transparent); border-radius: 4px 4px 0 0; transition: background .15s; }
.bar:hover span, .bar.sel span { background: var(--charging); }
.bar.now span { background: var(--charging); }
.bar.now::after { content: ""; }
.bar.empty span { height: 2px !important; background: var(--border); }
.chart-x { display: flex; justify-content: space-between; font-size: 10.5px; color: var(--muted); margin-top: 4px; }
.chart-note { font-size: 13px; color: var(--muted); margin-top: 8px; min-height: 20px; }
.chart-note b { color: var(--text); }

.foot { color: var(--muted); font-size: 12px; text-align: center; margin-top: 22px; }

@media (max-width: 560px) {
  .summary { gap: 6px; }
  .sum { padding: 8px 9px; border-radius: 12px; }
  .sum .v { font-size: 20px; }
  .sum .k { font-size: 11px; }
  .zone { padding: 12px 10px; border-radius: 16px; }
  .lot { padding: 0 4px; }
  .wallbar, .drive { margin: 0 -4px; }
  .stall { min-width: 42px; height: 158px; padding: 6px 1px 4px; border-left-width: 2px; border-top-width: 2px; }
  .stall.end { border-right-width: 2px; }
  .num { font-size: 13px; }
  .car { width: 28px; height: 46px; }
  .plug { width: 26px; height: 26px; margin: 8px 0 12px; }
  .badge { font-size: 10px; padding: 0 4px; border-width: 1px; letter-spacing: -0.03em; }
  .time { font-size: 10px; white-space: normal; line-height: 1.25; letter-spacing: -0.03em; }
  .time b { display: block; }
  .stall .badge .lg { display: none; }
  .stats { padding: 12px 10px; border-radius: 16px; }
  .szones { margin: 0 -10px 8px; padding: 0 10px 2px; }
  #bstops { margin: 0 0 10px; padding: 0; }
  .bus { padding: 12px 10px; border-radius: 16px; }
  .brow { grid-template-columns: auto 1fr auto 60px; gap: 8px; }
  .barr2 small { font-size: 10.5px; white-space: nowrap; letter-spacing: -0.03em; }
  .rt { min-width: 52px; font-size: 12px; }
  .chart { gap: 1px; height: 120px; }
  .pillar { width: 16px; height: 16px; font-size: 0; margin: 0 2px; }
}
