/* 초안 3 "전역 달력": 흰 바탕, 먹색 글씨, 달력 빨강 하나. 제목과 큰 숫자는 Do Hyeon(OFL, fonts/OFL.txt). */
@font-face { font-family: "Do Hyeon"; src: url("fonts/DoHyeon-Regular.ttf") format("truetype"); font-display: swap; }
:root {
  color-scheme: light;
  --ground: #FFFFFF;
  --surface: #F4F4F5;
  --ink: #18181B;
  --graphite: #18181B;
  --muted: #52525B;
  --accent: #D93036;
  --track: #E4E4E7;
  --closed: #A5321F;
  --sans: "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", sans-serif;
  --display: "Do Hyeon", var(--sans);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ground); color: var(--ink); font: 400 17px/1.6 var(--sans); word-break: keep-all; overflow-wrap: anywhere; padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
h1, h2, h3, p, dl, dd { margin: 0; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--graphite); outline-offset: 2px; }
h1:focus { outline: none; }
#view { max-width: 640px; margin: 0 auto; padding: 16px 18px; display: grid; gap: 12px; }
#view:focus { outline: none; }
#view > * { min-width: 0; }
h1 { font-family: var(--display); font-weight: 400; font-size: 32px; line-height: 1.25; }
h2 { font-weight: 700; font-size: 19px; line-height: 1.4; }
h3 { font-weight: 700; font-size: 17px; line-height: 1.45; }
.section { margin-top: 6px; }
small { display: block; font-size: 13.5px; line-height: 1.5; color: var(--muted); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.skip { position: absolute; left: -999px; background: #fff; padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; top: 8px; }
#tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 5; display: flex; background: var(--ground); border-top: 1px solid var(--track); padding-bottom: env(safe-area-inset-bottom); }
#tabs a { flex: 1; display: flex; align-items: center; justify-content: center; min-height: 58px; font-size: 15px; text-decoration: none; color: var(--muted); }
#tabs a[aria-current=page] { color: var(--ink); font-weight: 700; box-shadow: inset 0 3px 0 var(--accent); }
.card { background: var(--surface); padding: 18px; border-radius: 24px; display: grid; gap: 10px; }
.card > * { min-width: 0; }
.card.hero { border-radius: 28px; padding: 22px 20px; gap: 12px; text-decoration: none; }
.card.hero h1, .card.hero h2 { font-family: var(--display); font-weight: 400; font-size: 30px; }
.top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.top p { font-weight: 500; }
.badge { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 22px; background: var(--graphite); color: #fff; text-decoration: none; font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.big { font-weight: 700; font-size: 38px; line-height: 1.2; font-variant-numeric: tabular-nums; }
.big.long { font-size: 22px; }
.back { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; font-size: 15px; text-decoration: none; justify-self: start; }
.row { background: var(--surface); border-radius: 20px; padding: 14px 18px; display: grid; gap: 6px; text-decoration: none; }
.row-head { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.row-head b { font-size: 17px; }
.row-head span span { font-size: 13px; color: var(--muted); margin-left: 8px; font-weight: 400; }
.time { font-size: 15px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.status { display: block; font-size: 15px; }
.status.closed, .headline.closed { color: var(--closed); font-weight: 700; }
.status.check { font-weight: 700; }
.headline { font-weight: 500; }
.bar { position: relative; display: block; height: 18px; border-radius: 6px; overflow: hidden; background: var(--track); }
.bar.thin { height: 8px; border-radius: 4px; }
.bar.mid { height: 10px; border-radius: 4px; }
.bar i { position: absolute; top: 0; bottom: 0; background: var(--accent); }
.bar i.active { background: var(--graphite); }
.entry { display: grid; gap: 4px; font-size: 15px; }
.entry div { display: flex; justify-content: space-between; gap: 8px; font-variant-numeric: tabular-nums; }
.entry b { font-weight: 700; }
.axis { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); }
.btn { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 54px; padding: 10px 12px; border: 0; border-radius: 18px; background: var(--graphite); color: #fff; font-weight: 700; text-align: center; text-decoration: none; cursor: pointer; }
.btn.accent { background: var(--accent); color: #fff; }
.btn.outline { background: var(--surface); color: var(--ink); min-height: 50px; font-size: 15px; }
.btn[disabled] { opacity: .6; cursor: default; }
.pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.opt { display: block; width: 100%; min-height: 54px; padding: 12px 16px; border: 0; border-radius: 18px; background: var(--surface); font-weight: 700; text-align: left; cursor: pointer; }
.opt[aria-pressed=true] { background: var(--graphite); color: #fff; }
.field, .form label { display: block; font-weight: 700; font-size: 15px; }
#view > input[type=search], .form input, .form select, .form textarea { display: block; width: 100%; min-height: 48px; padding: 8px 12px; border: 0; border-radius: 14px; background: var(--surface); font-size: 16px; }
.form input, .form select, .form textarea { background: var(--ground); }
[aria-invalid=true] { outline: 2px solid var(--closed); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips button { min-height: 44px; padding: 4px 14px; border: 0; border-radius: 14px; background: var(--surface); font-weight: 500; font-size: 15px; cursor: pointer; }
.form .chips button { background: var(--ground); }
.chips button[aria-pressed=true], .form .chips button[aria-pressed=true] { background: var(--accent); color: #fff; font-weight: 700; }
.notice { padding: 11px 12px; border-radius: 14px; background: #FDE9E4; color: var(--closed); font-weight: 500; font-size: 15px; }
.notice.caution { background: #FFF0E2; color: #5A2E0A; }
dd { white-space: pre-line; font-size: 15px; }
dt { font-size: 13.5px; font-weight: 700; margin-top: 10px; color: var(--muted); }
dt:first-child { margin-top: 0; }
.town { border-top: 1px solid var(--track); padding: 8px 0 0; font-weight: 700; }
@media (min-width: 860px) {
  body { padding: 0 0 0 190px; }
  #tabs { top: 0; right: auto; bottom: auto; height: 100vh; width: 190px; flex-direction: column; border-top: 0; border-right: 1px solid var(--track); padding: 16px 0; }
  #tabs a { flex: none; justify-content: flex-start; padding: 0 20px; min-height: 50px; }
  #tabs a[aria-current=page] { box-shadow: inset 4px 0 0 var(--accent); }
  #view { padding: 24px; }
}
.tip { background: var(--surface); border-radius: 20px; padding: 14px 18px; }
.tip summary { font-weight: 700; cursor: pointer; min-height: 28px; }
.tip[open] summary { margin-bottom: 8px; }
.tip small { margin-top: 8px; }
.text-link { display: inline-flex; align-items: center; min-height: 40px; font-weight: 700; font-size: 15px; }
.on-dark { color: #fff; font-weight: 500; }

/* 홈 위쪽 전역 숫자 */
.dday { display: grid; gap: 2px; padding: 6px 2px; text-decoration: none; }
.dday .lead, .dday .tail { font-size: 15px; color: var(--muted); }
.dday .num { font-family: var(--display); font-size: 88px; line-height: 1; color: var(--accent); font-variant-numeric: tabular-nums; }
.dday .num em { font-style: normal; font-size: 36px; color: var(--ink); }
.dday .word { font-family: var(--display); font-size: 32px; line-height: 1.2; }
.big { font-family: var(--display); font-weight: 400; color: var(--accent); }
.big.long { color: var(--ink); }
/* 처음 열 때 */
.welcome h1 { font-size: 36px; margin-top: 12px; }
.welcome .lede { color: var(--muted); }
.welcome .result { display: grid; gap: 2px; }
.welcome .result .num { font-family: var(--display); font-size: 56px; line-height: 1.05; color: var(--accent); font-variant-numeric: tabular-nums; }
.welcome .result .num em { font-style: normal; font-size: 26px; color: var(--ink); }
#tabs a { flex-direction: column; gap: 2px; }
#tabs svg { width: 22px; height: 22px; }
.card.link h2 { font-size: 17px; }
.card.link .btn.open { background: var(--ground); border: 1.5px solid var(--track); min-height: 44px; }
.card.camp { text-decoration: none; }
.card.camp h2 small { display: inline; margin-left: 6px; }
.card h2.hi { color: var(--accent); }
.unit summary small { display: inline; margin-left: 6px; }
.unit .btn.open { background: var(--ground); border: 1.5px solid var(--track); min-height: 44px; }
.em { margin-right: 6px; }
.big-emoji { font-size: 56px; line-height: 1; margin: 12px 0 0; }

/* 앱 소개 탭 */
.story { display: grid; gap: 10px; margin-bottom: 8px; }
.story .display { font-family: var(--display); font-weight: 400; font-size: 32px; line-height: 1.2; margin: 0; }
.story p { margin: 0; line-height: 1.65; }
.card .question { color: var(--accent); font-weight: 600; margin: 0; }
.card textarea { display: block; width: 100%; min-height: 110px; padding: 10px 12px; border: 0; border-radius: 12px; background: var(--ground); font-size: 16px; resize: vertical; }
#tabs a { font-size: 14px; }
.visits { margin: 6px 0 0; padding: 10px 14px; border-radius: 14px; background: var(--surface); font-size: 15px; }
.visits b { color: var(--accent); font-variant-numeric: tabular-nums; }

/* ── 시안 3 "찢는 달력" (2026-11-08 선택). 위의 기본값을 덮어쓴다. 앱의 Theme과 같은 색. ── */
:root { --paper: #F1F3EE; --card-line: #E2E5DD; --accent-deep: #A5232A; --sticker: #FFE45C; --surface: #F1F3EE; }
body { background: var(--paper); }
.card, .row, .tip { position: relative; background: var(--ground); border-radius: 16px; border-left: 6px solid var(--ink); box-shadow: 0 2px 0 var(--card-line); }
.card.hero { border-radius: 16px; }
.card.saved { margin-top: 8px; }
.sticker { position: absolute; right: -4px; top: -12px; transform: rotate(8deg); background: var(--sticker); color: var(--ink); padding: 3px 10px; border-radius: 6px; font-size: 12px; font-weight: 700; box-shadow: 0 2px 4px rgba(0,0,0,.12); }
.btn { border-radius: 16px; box-shadow: 0 3px 0 #000; margin-bottom: 3px; transition: transform .05s, box-shadow .05s; }
.btn.accent { box-shadow: 0 3px 0 var(--accent-deep); }
.btn.outline { background: var(--ground); border: 2px solid var(--ink); box-shadow: 0 3px 0 var(--ink); }
.btn:active { transform: translateY(3px); box-shadow: 0 0 0 transparent; }
.card .btn.open, .card.link .btn.open, .unit .btn.open { background: var(--paper); border: 1.5px solid var(--card-line); box-shadow: none; margin-bottom: 0; }
.chips button { background: var(--ground); border: 1.5px solid var(--card-line); }
.chips button[aria-pressed=true] { border-color: transparent; }
.card textarea { background: var(--paper); }
#view > input[type=search] { background: var(--ground); box-shadow: inset 0 0 0 1.5px var(--card-line); }
#tabs { border-top: 2px solid var(--ink); }
#tabs a[aria-current=page] svg { color: var(--accent); }

/* 홈 위쪽 달력 한 장 */
.dday { position: relative; display: block; margin: 14px 0 12px; padding: 0; color: var(--ink); text-decoration: none; }
.dday .page, .dday .head { position: relative; z-index: 1; }
.dday .head { display: flex; justify-content: space-between; gap: 8px; padding: 20px 16px 9px; background: var(--accent); color: #fff; font-weight: 700; font-size: 15px; border-radius: 8px 8px 0 0; }
.dday .page { display: grid; justify-items: center; gap: 6px; padding: 12px 16px 20px; background: var(--ground); border-radius: 0 0 16px 16px; text-align: center; background-image: linear-gradient(90deg, var(--track) 50%, transparent 0); background-size: 11px 2px; background-repeat: repeat-x; background-position: 0 calc(100% - 6px); }
.dday::before, .dday::after { content: ""; position: absolute; left: 6px; right: 6px; bottom: -5px; height: 40px; background: var(--ground); border: 1.5px solid var(--card-line); border-radius: 0 0 16px 16px; }
.dday::after { left: 12px; right: 12px; bottom: -10px; z-index: -1; }
.dday::before { z-index: 0; }
.dday .rings { position: absolute; z-index: 2; top: -10px; left: 30px; right: 30px; display: flex; justify-content: space-around; }
.dday .rings i { width: 10px; height: 24px; border-radius: 6px; background: linear-gradient(90deg, #8C8C92, #E4E4E7, #8C8C92); }
.dday .num { font-size: 104px; color: var(--ink); }
.dday .num em { font-size: 38px; color: var(--accent); }
.dday .tail { font-size: 15px; color: var(--muted); }


/* ── 2판 5번 "계급장 오르기" (2026-11-11 선택). 위의 기본값을 덮어쓴다. 앱의 Theme과 같은 색.
   2026-11-17부터 화면 디자인 12가지를 고를 수 있어 색을 --t-* 칸으로 나눴다. 기본값은 1번 국방(바로 아래 :root).
   다른 디자인을 고르면 themes.js의 applyTheme가 --t-* 값을 바꾼다. 칸 이름은 themes.js 맨 위에 적어 두었다.
   큰 숫자는 가석체(OFL, fonts/OFL-GasoekOne.txt). ── */
@font-face { font-family: "Gasoek One"; src: url("fonts/GasoekOne-Regular.ttf") format("truetype"); font-display: swap; }
:root {
  --t-page: #4B5A2A; --t-bg: #4B5A2A; --t-bar: #2E3819; --t-bar-ink: #F3ECD6; --t-card: #F3ECD6; --t-edge: #E3BE5C; --t-edge-w: 3px;
  --t-ink: #2E3819; --t-muted: #5C6340; --t-on-bg: #F3ECD6; --t-on-bg-muted: #E4DDBF;
  --t-hero: #2E3819; --t-hero-ink: #F3ECD6; --t-hero-sub: #E4DDBF; --t-hero-edge: #E3BE5C; --t-hero-track: #7A8752; --t-hero-track2: #55633A; --t-big: #E3BE5C;
  --t-accent: #4B5A2A; --t-accent-ink: #4B5A2A; --t-track: #E0D8BC; --t-tile1: #E3BE5C; --t-tile1-ink: #2E3819;
  --t-btn: #2E3819; --t-btn-ink: #F3ECD6; --t-btn-on: #E3BE5C; --t-tab: #2E3819; --t-tab-ink: #C9C9A9; --t-tab-on: #E3BE5C; --t-ring: #E3BE5C;
  --t-tag: #F6E3A6; --t-closed: #A5321F; --t-surface: #E9E2C8; --t-card-line: #C9C1A0; --t-num-w: 400;
  --ground: var(--t-card); --paper: var(--t-bg); --surface: var(--t-card); --ink: var(--t-ink); --graphite: var(--t-btn); --muted: var(--t-muted);
  --accent: var(--t-accent); --accent-deep: var(--t-btn); --track: var(--t-track); --card-line: var(--t-card-line); --sticker: var(--t-tile1); --closed: var(--t-closed);
  --number: "Gasoek One", var(--display); }
body { background: var(--t-page); }
#view { color: var(--t-on-bg); --muted: var(--t-on-bg-muted); }
#view h1, #view > h2, .on-olive { color: var(--t-on-bg); font-family: var(--sans); font-weight: 900; letter-spacing: -0.5px; }
#view > h2.on-olive { font-size: 18px; margin-top: 4px; }
.back { color: var(--t-on-bg-muted); }
.card, .row, .tip, details.unit, .visits { color: var(--t-ink); --muted: var(--t-muted); background: var(--t-card); border: var(--t-edge-w) solid var(--t-edge); border-radius: 18px; box-shadow: none; }
.card h2, .card h3, .row-head b { font-weight: 900; }
.card.hero h2 { font-family: var(--sans); font-weight: 900; font-size: 26px; }
.bar i { background: var(--t-accent); }
.bar i.active { background: #B8862B; }
.btn { background: var(--t-btn); color: var(--t-btn-ink); border: var(--t-edge-w) solid var(--t-edge); box-shadow: none; margin-bottom: 0; }
.btn.accent { background: var(--t-tile1); color: var(--t-tile1-ink); border-color: var(--t-tile1); box-shadow: none; font-weight: 900; }
.btn.outline { background: var(--t-card); color: var(--t-ink); border: var(--t-edge-w) solid var(--t-edge); box-shadow: none; }
.btn:active { transform: translateY(2px); }
.card .btn { border-color: var(--t-btn); }
.card .btn.accent { border-color: var(--t-btn); }
.on-dark { color: var(--t-btn-ink); }
.chips button { background: var(--t-card); color: var(--t-ink); border: 2px solid var(--t-edge); }
.chips button[aria-pressed=true], .form .chips button[aria-pressed=true] { background: var(--t-btn); color: var(--t-btn-on); border-color: var(--t-edge); }
#view > input[type=search], .opt { background: var(--t-card); color: var(--t-ink); box-shadow: inset 0 0 0 3px var(--t-edge); }
.opt[aria-pressed=true] { background: var(--t-btn); color: var(--t-btn-on); }
.card textarea { background: var(--t-surface); color: var(--t-ink); }
/* 알림 칸은 어느 디자인에서도 옅은 분홍 바탕에 짙은 빨강 글씨(달밤의 밝은 휴점 빨강을 쓰지 않는다). */
.notice { border: 2px solid currentColor; color: #A5321F; }
#tabs { background: var(--t-tab); border-top: 3px solid var(--t-edge); }
#tabs a { color: var(--t-tab-ink); }
#tabs a[aria-current=page] { color: var(--t-tab-on); font-weight: 800; box-shadow: inset 0 4px 0 var(--t-tab-on); }
#tabs a[aria-current=page] svg { color: var(--t-tab-on); }
@media (min-width: 860px) { #tabs { border-top: 0; border-right: 3px solid var(--t-edge); } #tabs a[aria-current=page] { box-shadow: inset 4px 0 0 var(--t-tab-on); } }
.sticker { background: var(--t-tile1); color: var(--t-tile1-ink); }
.big { font-family: var(--number); font-weight: var(--t-num-w); color: var(--t-accent-ink); }

/* 홈 위쪽: 남은 날과 계급장 */
.dday { display: grid; gap: 10px; margin: 4px 0 2px; padding: 16px; background: var(--t-hero); color: var(--t-hero-ink); border: var(--t-edge-w) solid var(--t-hero-edge); border-radius: 20px; text-decoration: none; }
.dday::before, .dday::after { content: none; }
.dday .top { display: flex; justify-content: space-between; align-items: flex-end; gap: 10px; }
.dday .lead { display: grid; gap: 2px; font-size: 14px; color: var(--t-hero-sub); }
.dday .lead b { font-size: 16px; color: var(--t-hero-ink); }
.dday .num { font-family: var(--number); font-weight: var(--t-num-w); font-size: 84px; line-height: .85; color: var(--t-big); }
.dday .word { font-family: var(--sans); font-weight: 900; font-size: 24px; color: var(--t-big); text-align: right; }
.dday .tail { font-size: 14px; color: var(--t-hero-sub); text-align: left; }
.dday .ranks { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); text-align: center; }
.dday .ranks > span { display: grid; justify-items: center; gap: 3px; }
.dday .ranks b { font-size: 14px; color: var(--t-hero-ink); }
.dday .ranks small { font-size: 11.5px; color: var(--t-hero-sub); }
.dday .chev { display: flex; flex-direction: column; justify-content: flex-end; gap: 3px; height: 34px; }
.dday .chev i { display: block; width: 30px; height: 5px; border-radius: 2px; background: var(--t-hero-track); }
.dday .chev.on i { background: var(--t-big); }
.dday .progress { display: block; height: 8px; border-radius: 4px; background: var(--t-hero-track2); overflow: hidden; }
.dday .progress i { display: block; height: 100%; background: var(--t-big); }

/* 홈 바로가기 세 칸 */
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.tile { display: flex; flex-direction: column; justify-content: space-between; gap: 8px; min-height: 92px; padding: 12px; border: var(--t-edge-w) solid var(--t-edge); border-radius: 18px; text-decoration: none; font-weight: 900; font-size: 15px; }
.tile span { font-size: 30px; line-height: 1; }
.tile.brass { background: var(--t-tile1); color: var(--t-tile1-ink); }
.tile.cream { background: var(--t-card); color: var(--t-ink); }

/* 만든 사람 탭 */
.maker { display: flex; align-items: center; gap: 14px; margin-top: 6px; }
.maker .avatar { display: flex; align-items: center; justify-content: center; flex: none; width: 68px; height: 68px; border-radius: 50%; background: var(--t-card); border: 3px solid var(--t-edge); font-size: 36px; }
.maker h1 { font-size: 24px; line-height: 1.2; }
.maker p { color: var(--t-on-bg-muted); font-size: 15px; }
.card.coffee { background: var(--t-hero); color: var(--t-hero-ink); --muted: var(--t-hero-sub); border-color: var(--t-hero-edge); }
.card.coffee h2 { color: var(--t-hero-ink); font-size: 22px; }
.coffee-head { display: flex; align-items: center; gap: 12px; }
.coffee-head > span:first-child { font-size: 46px; line-height: 1; }
.card.coffee .btn.accent { border-color: var(--t-hero-edge); }
.btn.tip { justify-content: flex-start; gap: 10px; }
.btn.tip b { margin-left: auto; font-variant-numeric: tabular-nums; }
.card.story h2 { font-size: 20px; }
.card .question { color: var(--t-accent-ink); }
.visits b { color: var(--t-accent-ink); }
/* 처음 화면: 화면 바탕 위 결과 숫자 */
.welcome .result .num { font-family: var(--number); font-weight: var(--t-num-w); color: var(--t-ring); }
.welcome .result .num em { color: var(--t-on-bg); font-family: var(--sans); font-weight: 900; }

/* 개인정보처리방침·도움말 페이지(main.doc): 화면 바탕 위라 글씨를 바탕 위 글씨색으로. 표와 칸 안은 칸 글씨색. */
.doc { color: var(--t-on-bg); --muted: var(--t-on-bg-muted); }
.doc h1, .doc h2 { color: var(--t-on-bg); font-family: var(--sans); font-weight: 900; }
.doc a { color: var(--t-ring); }
.doc table, .doc .card, .doc details { color: var(--t-ink); --muted: var(--t-muted); }
.doc table a, .doc .card a:not(.btn) { color: var(--t-accent-ink); }

/* 홈 맨 위 그림(수묵화·수채화 12장 중 고른 것). 누르면 그림 고르기로 간다. 앱의 HomeArtBanner와 같다. */
.art { display: block; border-radius: 24px; overflow: hidden; background: var(--t-card); color: var(--t-ink); text-decoration: none; }
.art img { display: block; width: 100%; height: auto; aspect-ratio: 1080 / 450; }
.on-olive-text { color: var(--t-on-bg-muted); }
.art-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.art-pick { display: grid; padding: 0; border: 0; border-radius: 16px; overflow: hidden; background: var(--t-card); color: var(--t-ink); text-align: left; cursor: pointer; }
.art-pick img { display: block; width: 100%; height: auto; aspect-ratio: 1080 / 450; }
.art-pick span { padding: 7px 10px 9px; font-size: 14px; font-weight: 600; }
.art-pick[aria-pressed="true"] { box-shadow: 0 0 0 4px var(--t-ring); }
.art-pick:focus-visible { outline: 3px solid var(--t-on-bg); outline-offset: 3px; }

/* "이런 걸 팔아요"의 상품 이름표. 이름이 길어도 줄바꿈되게 한 개씩 나눈다. 앱의 GoodsCard와 같다. */
.tags-k { font-size: 14px; font-weight: 700; color: var(--muted); }
.tags { display: flex; flex-wrap: wrap; gap: 7px; margin: 0; padding: 0; list-style: none; }
.tags li { background: var(--t-tag); color: var(--t-ink); border: 1.5px solid var(--t-edge); border-radius: 999px; padding: 4px 12px 5px; font-size: 15px; font-weight: 600; line-height: 1.35; overflow-wrap: anywhere; }

/* 화면 디자인 고르기(만든 사람 탭). 칸마다 작은 홈 화면을 그 디자인의 색으로 그린다(--m-* 값은 app.js가 칸에 넣는다). 앱의 ThemePicker와 같다. */
.theme-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.theme-pick { display: grid; gap: 7px; align-content: start; padding: 8px 8px 11px; border: 0; border-radius: 18px; background: var(--t-card); color: var(--t-ink); text-align: left; cursor: pointer; box-shadow: 0 0 0 var(--t-edge-w) var(--t-edge); }
.theme-pick[aria-pressed="true"] { box-shadow: 0 0 0 4px var(--t-ring); }
.theme-pick:focus-visible { outline: 3px solid var(--t-on-bg); outline-offset: 5px; }
.theme-pick b { font-size: 16px; line-height: 1.35; padding: 0 2px; }
.theme-pick small { font-size: 13px; line-height: 1.45; padding: 0 2px; color: var(--t-muted); }
.mini { display: grid; gap: 5px; padding: 8px 8px 0; border-radius: 12px; overflow: hidden; background: var(--m-page); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .1); }
.mini-hero { display: flex; justify-content: space-between; align-items: flex-end; gap: 4px; padding: 7px 8px 6px; border-radius: 9px; background: var(--m-hero); color: var(--m-hero-ink); box-shadow: 0 0 0 1.5px var(--m-hero-edge); font-size: 11px; font-weight: 700; line-height: 1.3; white-space: nowrap; }
.mini-hero b { font-family: var(--m-num); font-weight: var(--m-num-w); font-size: 26px; line-height: .9; color: var(--m-big); }
.mini-card { display: grid; gap: 5px; padding: 6px 8px 7px; border-radius: 9px; background: var(--m-card); color: var(--m-ink); box-shadow: 0 0 0 1.5px var(--m-edge); font-size: 11px; font-weight: 700; }
.mini-card i { display: block; height: 5px; border-radius: 3px; background: linear-gradient(90deg, var(--m-track) 18%, var(--m-accent) 18% 76%, var(--m-track) 76%); }
.mini-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5px; }
.mini-tiles i { display: block; height: 18px; border-radius: 6px; box-shadow: 0 0 0 1.5px var(--m-edge); background: var(--m-card); }
.mini-tiles i:first-child { background: var(--m-tile1); }
.mini-tab { display: flex; justify-content: space-around; margin: 2px -8px 0; padding: 4px 0 5px; background: var(--m-tab); }
.mini-tab i { display: block; width: 14px; height: 4px; border-radius: 2px; background: var(--m-tab-ink); opacity: .7; }
.mini-tab i:first-child { background: var(--m-tab-on); opacity: 1; }

/* ── 홈 한 화면(2026-11-17): 휴대폰 한 화면에 그림, 남은 날, 저장한 마트, 바로가기 네 칸이 다 보이게 줄였다. 앱의 HomeView와 같다. ── */
#view:has(> .dday) { gap: 10px; padding-top: 12px; }
.art { border-radius: 18px; }
.dday { gap: 6px; padding: 12px 14px; margin: 0; }
.dday .num { font-size: 64px; }
.dday .lead { font-size: 13.5px; }
.dday .tail { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-size: 14px; }
.dday .tail small { flex: none; font-size: 12px; color: var(--t-hero-sub); opacity: .85; }
.dday .ranks b { font-size: 13.5px; line-height: 1.3; }
.dday .ranks small { font-size: 11.5px; line-height: 1.3; }
.dday .chev { height: 22px; gap: 2px; }
.dday .chev i { width: 24px; height: 4px; }
.dday .progress { height: 6px; }
.home-stores { display: grid; gap: 7px; }
.home-stores > h2 { font-size: 17px; }
.home-store { display: grid; gap: 6px; padding: 10px 14px 12px; border: var(--t-edge-w) solid var(--t-edge); border-radius: 16px; background: var(--t-card); color: var(--t-ink); text-decoration: none; }
.home-store .row-head { align-items: center; }
.home-store b { font-size: 17px; font-weight: 900; }
.home-store b i { margin-left: 7px; padding: 1px 7px; border-radius: 6px; background: var(--t-tag); font-style: normal; font-size: 12px; font-weight: 700; vertical-align: 2px; }
.home-store .time { font-weight: 700; }
.home-empty { gap: 10px; text-decoration: none; }
.home-empty b { font-size: 17px; line-height: 1.45; }
.tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.tile { min-height: 74px; gap: 4px; padding: 9px 6px; overflow-wrap: normal; align-items: center; justify-content: center; text-align: center; font-size: 15px; line-height: 1.3; border-radius: 16px; }
.tile span { font-size: 26px; }
/* 처음 화면의 화면 디자인 칸(3줄 4칸). 고르면 바로 앱 전체 색이 바뀐다. */
.theme-chips { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
.theme-chip { display: grid; gap: 6px; padding: 6px 6px 8px; border: 0; border-radius: 14px; background: var(--t-card); color: var(--t-ink); box-shadow: 0 0 0 var(--t-edge-w) var(--t-edge); text-align: center; cursor: pointer; }
.theme-chip[aria-pressed="true"] { box-shadow: 0 0 0 4px var(--t-ring); }
.theme-chip:focus-visible { outline: 3px solid var(--t-on-bg); outline-offset: 4px; }
.theme-chip .sw { display: flex; gap: 4px; height: 34px; padding: 6px; border-radius: 9px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .1); }
.theme-chip .sw i { flex: 1; border: 1.5px solid; border-radius: 5px; }
.theme-chip b { font-size: 14px; line-height: 1.3; }
/* 작은 휴대폰(아이폰 SE 등): 계급장 막대를 빼고 숫자와 칸을 조금 더 줄인다. */
@media (max-height: 760px) and (max-width: 600px) {
  .dday .num { font-size: 54px; }
  .dday .chev { display: none; }
  .tile { min-height: 62px; font-size: 13.5px; }
  .tile span { font-size: 22px; }
}

/* "이런 걸 팔아요"의 후기 값 표(2026-11-20). 이름과 규격은 왼쪽, 값은 오른쪽. 앱의 PriceSamplesView와 같다. */
.card.prices ul { display: grid; margin: 0; padding: 0; list-style: none; }
.card.prices li { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 9px 0; border-top: 1.5px solid var(--t-card-line); }
.card.prices li:first-child { border-top: 0; padding-top: 2px; }
.card.prices li > span:first-child { display: grid; min-width: 0; }
.card.prices li b { font-size: 16px; font-weight: 800; line-height: 1.4; }
.card.prices .won { flex: none; font-size: 17px; font-weight: 900; font-variant-numeric: tabular-nums; color: var(--t-accent-ink); }

/* 더보기 탭 차림표(2026-11-17). 갈래마다 한 칸에 줄을 모은다. 앱의 MoreView와 같다. */
.menu { display: grid; background: var(--t-card); color: var(--t-ink); --muted: var(--t-muted); border: var(--t-edge-w) solid var(--t-edge); border-radius: 18px; overflow: hidden; }
.menu-row { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 60px; padding: 10px 16px; border: 0; background: none; color: inherit; font: inherit; text-align: left; text-decoration: none; cursor: pointer; }
.menu-row + .menu-row { border-top: 1.5px solid var(--t-card-line); }
.menu-row .em { margin: 0; font-size: 24px; line-height: 1; }
.menu-row > span:not(.em) { flex: 1; display: grid; gap: 1px; min-width: 0; }
.menu-row b { font-size: 17px; font-weight: 800; }
.menu-row small { font-size: 13.5px; }
.menu-row > i { font-style: normal; font-size: 24px; color: var(--t-muted); }
.menu-row.big { min-height: 72px; }
.menu-row.big b { font-size: 21px; font-weight: 900; }
.menu-row.big .em { font-size: 30px; }
.menu-row:focus-visible { outline: 3px solid var(--t-ink); outline-offset: -4px; }

/* 12번 "또렷하게": 글자와 칸을 한 단계 크게 */
html[data-big-text] #view { zoom: 1.1; }
html[data-big-text] #tabs a { font-size: 15.5px; font-weight: 700; }
