:root {
  --paper: #FBF7EF;
  --card: #FFFDF8;
  --ink: #2B1E12;
  --ink2: #5C4A38;
  --muted: #8A7A66;
  --line: #E9DFCC;
  --line2: #D6C6A8;
  --mustard: #D39A12;
  --mustard-soft: #F7EBC9;
  --mustard-wash: #FBF2DA;
  --brown: #8C4A10;
  --brown-deep: #5E330C;
  --up: #2F6B1F;
  --down: #B3261E;
  --down-soft: #FBE5DF;
  --grid: #EEE6D6;
  --axis: #CDBFA5;
  --prev: #B7A88F;
  --title: "Do Hyeon", "Gothic A1", sans-serif;
  --mono: "Nanum Gothic Coding", ui-monospace, Menlo, monospace;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body { background: var(--paper); color: var(--ink); font: 400 14px/1.55 "Gothic A1", -apple-system, sans-serif; word-break: keep-all; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
.show-m { display: none; }
.num { font-family: var(--mono); font-variant-numeric: tabular-nums; }

/* SDE 데모 띠 (academy와 같은 모양) */
.demo { background: #111418; color: #C9CCD1; font-size: 13px; text-align: center; padding: 8px 16px; }
.demo a { color: #fff; text-decoration: underline; text-underline-offset: 2px; }
.demo b { color: #FF5A36; font-family: Menlo, monospace; font-weight: 400; }
.demo button { background: none; border: 0; color: #C9CCD1; text-decoration: underline; text-underline-offset: 2px; font-size: 13px; padding: 0; }
.demo button:hover { color: #fff; }

/* 머리 */
.top { background: var(--card); border-bottom: 1px solid var(--line); }
.top-in { max-width: 1320px; margin: 0 auto; padding: 0 24px; display: flex; align-items: center; gap: 28px; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.logo .mk { width: 34px; height: 34px; border-radius: 8px; background: var(--mustard); display: grid; place-items: center; }
.logo b { font: 400 25px/1 var(--title); color: var(--brown-deep); letter-spacing: -.01em; }
.logo small { display: block; font-size: 11px; color: var(--muted); margin-top: 3px; letter-spacing: .02em; }
.nav { display: flex; gap: 2px; height: 100%; }
.nav a { display: flex; align-items: center; padding: 0 14px; text-decoration: none; color: var(--ink2); font-weight: 500; font-size: 15px; border-bottom: 3px solid transparent; margin-bottom: -1px; }
.nav a:hover { color: var(--ink); }
.nav a.on { color: var(--ink); border-bottom-color: var(--mustard); font-weight: 700; }
.who { margin-left: auto; display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--muted); }
.who .cut { white-space: nowrap; }
.who select { border: 1px solid var(--line2); background: var(--card); border-radius: 8px; padding: 7px 28px 7px 10px; font-size: 13px; color: var(--ink); appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%235C4A38' stroke-width='1.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; }

/* 필터 줄 */
.filters { max-width: 1320px; margin: 0 auto; padding: 18px 24px 0; display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; }
.seg { display: inline-flex; border: 1px solid var(--line2); border-radius: 9px; background: var(--card); overflow: hidden; }
.seg button { border: 0; background: none; padding: 7px 13px; font-size: 13px; color: var(--ink2); border-right: 1px solid var(--line); }
.seg button:last-child { border-right: 0; }
.seg button.on { background: var(--brown-deep); color: #FFF6E2; font-weight: 700; }
.seg button:not(.on):hover { background: var(--mustard-wash); }
.dates { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.dates input { border: 1px solid var(--line2); background: var(--card); border-radius: 8px; padding: 5px 8px; font-size: 13px; }
.sel { border: 1px solid var(--line2); background: var(--card) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%235C4A38' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 10px center; border-radius: 9px; padding: 7px 28px 7px 11px; font-size: 13px; appearance: none; }
.sel:disabled { color: var(--muted); background-color: var(--paper); }
.chk { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--ink2); cursor: pointer; user-select: none; }
.chk input { width: 16px; height: 16px; accent-color: var(--brown); }
.cmp { margin-left: auto; font-size: 12.5px; color: var(--muted); }
.cmp b { color: var(--ink2); font-weight: 500; }

/* 본문 */
main { max-width: 1320px; margin: 0 auto; padding: 18px 24px 64px; }
.ph { display: flex; align-items: flex-end; gap: 12px 18px; flex-wrap: wrap; margin: 6px 0 16px; }
.ph h1 { font: 400 30px/1.1 var(--title); letter-spacing: -.01em; }
.ph .sub { color: var(--muted); font-size: 13px; padding-bottom: 3px; }
.ph .act { margin-left: auto; display: flex; gap: 8px; }
.btn { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line2); background: var(--card); border-radius: 8px; padding: 7px 12px; font-size: 13px; color: var(--ink2); text-decoration: none; }
.btn:hover { border-color: var(--brown); color: var(--ink); }
.btn.dark { background: var(--brown-deep); color: #FFF6E2; border-color: var(--brown-deep); }
.btn.dark:hover { background: var(--brown); }
.btn.sm { padding: 4px 9px; font-size: 12px; }
.back { color: var(--muted); font-size: 13px; text-decoration: none; display: inline-block; margin-top: 4px; }
.back:hover { color: var(--ink); }

.card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; min-width: 0; }
.card h2 { font: 400 19px/1.2 var(--title); display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.card h2 small { font: 400 12.5px/1.4 "Gothic A1", sans-serif; color: var(--muted); }
.card .hd { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.card .hd .r { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.grid { display: grid; gap: 16px; margin-top: 16px; }
.g-3-1 { grid-template-columns: minmax(0, 2.1fr) minmax(300px, 1fr); }
.g-1-1 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.g-3 { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr); }

/* KPI 띠 */
.kpis { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; background: var(--card); border: 1px solid var(--line); border-radius: 12px; }
.kpi { padding: 16px 20px 15px; border-left: 1px dashed var(--line2); min-width: 0; }
.kpi:first-child { border-left: 0; }
.kpi .l { font-size: 13px; color: var(--ink2); font-weight: 500; }
.kpi .v { font: 400 34px/1.15 var(--title); margin-top: 4px; letter-spacing: -.01em; white-space: nowrap; }
.kpi:first-child .v { font-size: 46px; color: var(--brown-deep); }
.kpi .v small { font-size: .5em; color: var(--ink2); margin-left: 2px; }
.kpi .d { margin-top: 6px; display: flex; flex-wrap: wrap; gap: 2px 12px; font-size: 12.5px; color: var(--muted); }
.kpi .note { margin-top: 6px; font-size: 11.5px; color: var(--muted); line-height: 1.45; }
.dl { white-space: nowrap; }
.dl b { font-weight: 700; font-family: var(--mono); }
.dl.up b { color: var(--up); }
.dl.down b { color: var(--down); }
.dl.flat b { color: var(--ink2); }

/* 영수증 */
.receipt { background: #FFFEFA; border: 1px solid var(--line); border-bottom: 0; border-radius: 6px 6px 0 0; padding: 20px 22px 26px; font-family: var(--mono); font-size: 13px; position: relative; filter: drop-shadow(0 1px 0 var(--line));
  -webkit-mask: linear-gradient(#000 0 0) top / 100% calc(100% - 8px) no-repeat, conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / 14px 8px repeat-x;
          mask: linear-gradient(#000 0 0) top / 100% calc(100% - 8px) no-repeat, conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / 14px 8px repeat-x; }
.receipt .rh { text-align: center; font-family: var(--title); font-size: 20px; color: var(--brown-deep); }
.receipt .rs { text-align: center; color: var(--muted); font-size: 12px; margin-top: 2px; }
.receipt hr { border: 0; border-top: 1px dashed var(--line2); margin: 12px 0; }
.receipt hr.dbl { border-top: 3px double var(--ink2); }
.rl { display: flex; align-items: baseline; gap: 8px; padding: 3px 0; }
.rl .k { display: flex; align-items: center; gap: 7px; white-space: nowrap; }
.rl .dots { flex: 1; border-bottom: 1px dotted var(--line2); transform: translateY(-4px); min-width: 10px; }
.rl .v { white-space: nowrap; text-align: right; }
.rl .p { width: 52px; text-align: right; color: var(--muted); white-space: nowrap; }
.rl.tot { font-weight: 700; font-size: 15px; }
.rl.sub { color: var(--ink2); font-size: 12.5px; }
.sw { width: 10px; height: 10px; border-radius: 2px; display: inline-block; flex: none; }
.ln { width: 14px; height: 2px; border-radius: 2px; display: inline-block; flex: none; }

/* 표 (영수증처럼) */
.tbl-wrap { overflow-x: auto; margin: 0 -4px; }
table.rc { width: 100%; border-collapse: collapse; font-size: 13px; }
table.rc th { text-align: left; font-weight: 700; font-size: 12px; color: var(--ink2); padding: 8px 8px; border-bottom: 3px double var(--ink2); white-space: nowrap; user-select: none; }
table.rc th.sort { cursor: pointer; }
table.rc th.sort:hover { color: var(--ink); }
table.rc th .ar { display: inline-block; width: 10px; color: var(--brown); font-size: 10px; }
table.rc td { padding: 8px 8px; border-bottom: 1px dashed var(--line2); vertical-align: middle; }
table.rc .r { text-align: right; }
table.rc td.r, table.rc td.num { font-family: var(--mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
table.rc tr.go { cursor: pointer; }
table.rc tr.go:hover td { background: var(--mustard-wash); }
table.rc tr.nod td { color: var(--muted); }
table.rc tfoot td { border-top: 3px double var(--ink2); border-bottom: 0; font-weight: 700; }
table.rc .rank { font-family: var(--title); font-size: 16px; color: var(--brown); width: 34px; }
table.rc .nm { font-weight: 700; white-space: nowrap; }
table.rc .nm small { font-weight: 400; color: var(--muted); margin-left: 6px; font-size: 12px; }
.bar { height: 10px; background: var(--grid); border-radius: 0 3px 3px 0; min-width: 60px; position: relative; }
.bar i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--brown); border-radius: 0 3px 3px 0; }
.mix { display: flex; gap: 2px; height: 10px; min-width: 120px; }
.mix i { display: block; height: 100%; }
.mix i:first-child { border-radius: 2px 0 0 2px; }
.mix i:last-child { border-radius: 0 2px 2px 0; }

.tag { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 700; padding: 1px 7px; border-radius: 5px; white-space: nowrap; border: 1px solid transparent; vertical-align: 1px; }
.tag.new { background: var(--mustard-soft); color: #6E4A00; }
.tag.lost { background: var(--down-soft); color: var(--down); }
.tag.closed, .tag.pre { background: #EEE8DC; color: var(--ink2); }
.tag.part { background: #fff; color: var(--down); border-color: #E9B8AE; }
.tag.a { background: #5E330C; color: #FFF6E2; }
.tag.b { background: #A86A1E; color: #FFF6E2; }
.tag.c { background: #EAD3A6; color: #4A2A08; }
.tag.season { background: #EEF3E6; color: #3D5A22; }
.tag svg { flex: none; }

.search { border: 1px solid var(--line2); background: var(--card); border-radius: 9px; padding: 7px 11px; font-size: 13px; width: 200px; }
.search:focus, .sel:focus, .dates input:focus, textarea:focus { outline: 2px solid var(--mustard); outline-offset: -1px; }

.empty { text-align: center; padding: 40px 16px; color: var(--muted); }
.empty b { display: block; font: 400 20px/1.3 var(--title); color: var(--ink2); margin-bottom: 6px; }
.empty .btn { margin-top: 14px; }
.banner { display: flex; gap: 10px; align-items: flex-start; padding: 11px 14px; border-radius: 10px; font-size: 13px; margin-top: 12px; }
.banner.warn { background: var(--down-soft); color: #7A1D16; }
.banner.info { background: var(--mustard-wash); color: #5A3D05; border: 1px solid var(--mustard-soft); }
.banner svg { flex: none; margin-top: 2px; }

/* 확인할 것 */
.alerts { list-style: none; }
.alerts li { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px dashed var(--line2); align-items: flex-start; }
.alerts li:last-child { border-bottom: 0; }
.alerts .ic { width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center; flex: none; margin-top: 1px; }
.alerts .ic.bad { background: var(--down-soft); color: var(--down); }
.alerts .ic.mid { background: var(--mustard-soft); color: #6E4A00; }
.alerts .ic.low { background: #EEE8DC; color: var(--ink2); }
.alerts .tx { flex: 1; min-width: 0; }
.alerts .tx a { font-weight: 700; text-decoration: none; }
.alerts .tx a:hover { text-decoration: underline; }
.alerts .tx p { color: var(--muted); font-size: 12.5px; }
.alerts .done { opacity: .55; }
.alerts .ack { font-size: 12px; color: var(--muted); white-space: nowrap; }

/* 순위 막대 목록 */
.rk { list-style: none; }
.rk li a { display: grid; grid-template-columns: 22px 92px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 6px 0; text-decoration: none; font-size: 13px; }
.rk li a:hover .nm { text-decoration: underline; }
.rk .n { font-family: var(--title); color: var(--brown); font-size: 15px; }
.rk .nm { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rk .v { font-family: var(--mono); text-align: right; white-space: nowrap; font-size: 12.5px; }
.rk .v small { color: var(--muted); margin-left: 6px; }
.rk .gap { border-top: 1px dashed var(--line2); margin: 6px 0; }

/* 차트 */
.chart { position: relative; width: 100%; }
.chart svg { display: block; overflow: visible; }
.chart text { font-family: "Gothic A1", sans-serif; font-size: 11px; fill: var(--muted); }
.chart text.num { font-family: var(--mono); }
.chart .lbl { fill: var(--ink2); font-size: 11.5px; }
.chart .lbl-b { fill: var(--ink); font-weight: 700; font-size: 12px; font-family: var(--mono); }
.chart .hit { fill: transparent; cursor: crosshair; }
.chart .cell { cursor: default; }
.chart .cell:hover, .chart .cell:focus { stroke: var(--ink); stroke-width: 1.5px; outline: none; }
.chart .colh:hover rect.seg, .chart .colh:focus rect.seg { opacity: .82; }
.chart .colh { outline: none; }
.legend { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 12.5px; color: var(--ink2); margin-bottom: 10px; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.tip { position: fixed; z-index: 50; pointer-events: none; background: #FFFEFA; color: var(--ink); border: 1px solid var(--line2); border-radius: 8px; padding: 9px 11px; font-size: 12px; line-height: 1.55; box-shadow: 0 8px 20px rgba(60, 40, 15, .14); min-width: 150px; max-width: 270px; }
.tip .t { color: var(--muted); font-size: 11.5px; margin-bottom: 3px; padding-bottom: 4px; border-bottom: 1px dashed var(--line2); }
.tip .row { display: flex; align-items: center; gap: 8px; }
.tip .row b { font-family: var(--mono); font-weight: 700; color: var(--ink); margin-left: auto; padding-left: 12px; }
.tip .row span { color: var(--ink2); }
.scale { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.scale i { width: 140px; height: 8px; border-radius: 2px; display: block; }

/* 메뉴 ABC */
.abc { list-style: none; position: relative; }
.abc li { display: grid; grid-template-columns: 22px 150px minmax(0, 1fr) 76px 64px; gap: 10px; align-items: center; padding: 5px 0; font-size: 13px; border-bottom: 1px dashed var(--line); }
.abc li:last-child { border-bottom: 0; }
.abc .tr { position: relative; height: 14px; }
.abc .tr i { position: absolute; top: 0; bottom: 0; border-radius: 2px; }
.abc .tr .cum { background: var(--grid); border-radius: 0; left: 0; }
.abc .tr .th { position: absolute; top: -6px; bottom: -6px; width: 0; border-left: 1px dashed var(--ink2); }
.abc .nm { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.abc .v { font-family: var(--mono); text-align: right; font-size: 12.5px; white-space: nowrap; }
.abc .v.m { color: var(--muted); }
.abc-h { display: grid; grid-template-columns: 22px 150px minmax(0, 1fr) 76px 64px; gap: 10px; font-size: 11.5px; color: var(--muted); padding-bottom: 4px; border-bottom: 3px double var(--ink2); margin-bottom: 2px; }
.abc-h .axis { position: relative; height: 16px; }
.abc-h .axis span { position: absolute; transform: translateX(-50%); white-space: nowrap; }
.grades { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
.grades > div { padding: 14px 18px; border-left: 1px dashed var(--line2); }
.grades > div:first-child { border-left: 0; }
.grades .g { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.grades .v { font: 400 28px/1.2 var(--title); margin-top: 4px; }
.grades .v small { font-size: 14px; color: var(--ink2); margin-left: 4px; }
.grades p { font-size: 12.5px; color: var(--muted); }

/* 매장 상세 */
.st-head { display: flex; gap: 14px 22px; align-items: flex-start; flex-wrap: wrap; }
.st-head h1 { font: 400 32px/1.1 var(--title); }
.st-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; color: var(--ink2); font-size: 13px; margin-top: 6px; }
.st-meta span + span::before { content: ""; }
.links { list-style: none; font-size: 13px; }
.links li { display: flex; align-items: center; gap: 8px; padding: 7px 0; border-bottom: 1px dashed var(--line2); }
.links li:last-child { border-bottom: 0; }
.links .at { margin-left: auto; font-family: var(--mono); font-size: 12.5px; color: var(--ink2); white-space: nowrap; }
.links .bad .at { color: var(--down); font-weight: 700; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--up); flex: none; }
.bad .dot { background: var(--down); }
.notes { list-style: none; margin-top: 10px; }
.notes li { padding: 9px 0; border-bottom: 1px dashed var(--line2); font-size: 13px; }
.notes li:last-child { border-bottom: 0; }
.notes .m { color: var(--muted); font-size: 12px; display: flex; gap: 8px; }
.notes .m button { margin-left: auto; border: 0; background: none; color: var(--muted); font-size: 12px; text-decoration: underline; }
.note-f { display: flex; gap: 8px; margin-top: 4px; }
.note-f textarea { flex: 1; border: 1px solid var(--line2); border-radius: 8px; padding: 8px 10px; font-size: 13px; resize: vertical; min-height: 40px; background: #fff; }

/* 모바일 카드 목록 */
.cards { display: none; list-style: none; }
.cards li { border-bottom: 1px dashed var(--line2); }
.cards a { display: block; padding: 11px 2px; text-decoration: none; }
.cards .t1 { display: flex; align-items: center; gap: 8px; }
.cards .t1 .rank { font-family: var(--title); color: var(--brown); font-size: 16px; width: 22px; }
.cards .t1 b { font-size: 14px; }
.cards .t1 .v { margin-left: auto; font-family: var(--mono); font-weight: 700; }
.cards .t2 { display: flex; flex-wrap: wrap; gap: 2px 12px; font-size: 12px; color: var(--muted); margin: 4px 0 0 30px; }
.cards .bar { margin: 6px 0 0 30px; min-width: 0; height: 6px; }
.cards .mix { margin: 6px 0 0 30px; min-width: 0; height: 8px; }

footer { max-width: 1320px; margin: 0 auto; padding: 0 24px 40px; color: var(--muted); font-size: 12px; display: flex; gap: 8px 16px; flex-wrap: wrap; }

@media (max-width: 1100px) {
  .g-3-1, .g-3 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .g-3 > :first-child { grid-column: 1 / -1; }
  .kpis { grid-template-columns: 1fr 1fr; }
  .kpi:nth-child(3) { border-left: 0; }
  .kpi:nth-child(n+3) { border-top: 1px dashed var(--line2); }
  .who .cut { display: none; }
}
@media (max-width: 760px) {
  body { font-size: 14px; }
  .top-in { height: auto; flex-wrap: wrap; padding: 10px 16px 0; gap: 8px 12px; }
  .logo b { font-size: 22px; }
  .logo .mk { width: 30px; height: 30px; }
  .who { margin-left: auto; }
  .who select { max-width: 168px; }
  .nav { order: 3; width: 100%; height: 44px; justify-content: space-between; gap: 0; }
  .nav a { padding: 0 6px; font-size: 14.5px; flex: 1; justify-content: center; }
  .filters { padding: 14px 16px 0; gap: 8px; }
  .filters .seg { width: 100%; display: grid; grid-template-columns: repeat(6, 1fr); }
  .filters .seg button { padding: 7px 0; font-size: 12.5px; }
  .show-m { display: inline !important; }
  table.rc .nm { white-space: normal; }
  table.rc th, table.rc td { padding-left: 6px; padding-right: 6px; }
  .dates { width: 100%; }
  .dates input { flex: 1; min-width: 0; }
  .filters .sel { flex: 1 1 calc(50% - 4px); min-width: 0; }
  .cmp { margin-left: 0; width: 100%; }
  main { padding: 14px 16px 48px; }
  .ph h1 { font-size: 26px; }
  .ph .act { margin-left: 0; }
  .g-3-1, .g-1-1, .g-3 { grid-template-columns: minmax(0, 1fr); }
  .g-3 > :first-child { grid-column: auto; }
  .card { padding: 15px 14px; }
  .kpi { padding: 13px 14px; }
  .kpi .v { font-size: 26px; }
  .kpi:first-child { grid-column: 1 / -1; }
  .kpi:first-child .v { font-size: 38px; }
  .kpi:nth-child(2) { border-left: 0; border-top: 1px dashed var(--line2); }
  .kpi:nth-child(3) { border-left: 1px dashed var(--line2); }
  .kpi:nth-child(4) { border-left: 0; }
  .kpis { grid-template-columns: 1fr 1fr; }
  .hide-m { display: none !important; }
  .tbl-wrap.to-cards { display: none; }
  .cards { display: block; }
  .search { width: 100%; }
  .abc li, .abc-h { grid-template-columns: 20px 92px minmax(0, 1fr) 46px; gap: 8px; }
  .abc li > :nth-child(4), .abc-h > :nth-child(4) { display: none; }
  .grades > div { padding: 12px 12px; }
  .grades .v { font-size: 22px; }
  .rk li a { grid-template-columns: 20px 76px minmax(0, 1fr) auto; gap: 8px; }
  .receipt { padding: 18px 16px 24px; }
  .st-head h1 { font-size: 27px; }
  footer { padding: 0 16px 32px; }
}

/* 채널 화면 4칸 */
.kpis.ch4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.kpis.ch4 .kpi:first-child .v { font-size: 34px; color: inherit; }
@media (max-width: 1100px) { .kpis.ch4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 760px) {
  .kpis.ch4 .kpi:first-child { grid-column: auto; }
  .kpis.ch4 .kpi:first-child .v { font-size: 26px; }
  .kpis.ch4 .kpi:nth-child(2) { border-top: 0; border-left: 1px dashed var(--line2); }
  .kpis.ch4 .kpi:nth-child(3) { border-left: 0; border-top: 1px dashed var(--line2); }
  .kpis.ch4 .kpi:nth-child(4) { border-left: 1px dashed var(--line2); border-top: 1px dashed var(--line2); }
}
.links li > div { min-width: 0; }
.links small { font-size: 12px; }
.g-3-1 > .card { display: flex; flex-direction: column; }
.chart.fill { flex: 1; min-height: 230px; }
.tag { vertical-align: middle; }
table.rc td.nm > a { vertical-align: middle; }
.strip { display: inline-flex; gap: 2px; vertical-align: middle; }
.strip i { width: 14px; height: 14px; border-radius: 2px; display: block; }
