/* Interior pages share the landing palette and editorial rhythm.
   Keep this independent from landing.css, whose layout is home-specific. */
:root {
  color-scheme: light;
  color-scheme: only light;
  --bg: #fbfaf6; --ink: #292921; --muted: #727268; --card: #fffefa;
  --accent: #e95325; --accent-ink: #fff; --line: #deded3;
  --good: #507047; --warn: #ac3c23; --chip: #f8eee5;
  --shadow: 0 12px 32px rgba(41,41,33,.035);
  font-size: 16px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-padding-top: 112px; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: "Apple SD Gothic Neo","Malgun Gothic",-apple-system,BlinkMacSystemFont,sans-serif; -webkit-font-smoothing: antialiased; line-height: 1.65; letter-spacing: -.025em; }
a { color: inherit; text-decoration: none; }
button,input { font: inherit; }
button,a,input,summary { -webkit-tap-highlight-color: transparent; }
button,a { touch-action: manipulation; }
button { cursor: pointer; }
a,button,input,summary { transition: background .18s, border-color .18s, color .18s, box-shadow .18s; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; }
img,canvas { image-rendering: pixelated; max-width: 100%; }
p { line-height: 1.85; }
.skip-link { position: fixed; top: -80px; left: 16px; z-index: 40; padding: 12px 20px; background: var(--ink); color: #fff; }
.skip-link:focus { top: 12px; }
header.top { min-height: 96px; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 0 5%; border-bottom: 1px solid var(--line); background: var(--bg); position: sticky; top: 0; z-index: 10; }
.logo { display: flex; align-items: center; gap: 10px; font-size: 25px; font-weight: 900; letter-spacing: -1px; white-space: nowrap; }
.brandmark { display: grid; place-items: center; width: 32px; height: 32px; background: var(--accent); color: white; font-size: 24px; line-height: 1; }
.logotype { font-size: 11px; letter-spacing: 1px; margin: 7px 0 0 5px; }
.top-nav { display: flex; align-items: center; gap: 30px; font-size: 14px; font-weight: 600; }
.top-contact { margin-left: auto; flex-shrink: 0; }  /* WEB-14 오른쪽 위 문의하기 — contact.css */
.top-nav a { padding: 12px 0; position: relative; }
.top-nav a.on,.top-nav a:hover { color: var(--accent); }
.top-nav a.on::after { content: ""; position: absolute; bottom: 3px; left: 0; right: 0; height: 2px; background: var(--accent); }
.bottom-nav { display: none; }
main { max-width: 1180px; padding: 0 40px 80px; margin: 0 auto; min-height: calc(100vh - 300px); }
.page-heading { padding: 64px 0 44px; }
.eyebrow { display: flex; align-items: center; gap: 10px; font-size: 10px; font-weight: 700; letter-spacing: 1.6px; margin: 0 0 20px; line-height: 1.5; }
.eyebrow::before { content: "+"; color: var(--accent); font-size: 24px; font-weight: 400; line-height: 1; }
h1.page-title { font-size: clamp(32px,4vw,52px); line-height: 1.3; letter-spacing: -.06em; font-weight: 750; margin: 0 0 20px; word-break: keep-all; }
.page-title span { color: var(--accent); }
.page-sub { color: var(--muted); margin: 0; font-size: 15px; word-break: keep-all; }
.section-label { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; border-top: 1px solid var(--line); padding: 24px 0; }
.section-label h2 { margin: 0; font-size: 18px; letter-spacing: -.04em; }
.section-label > span { font-size: 12px; color: var(--muted); }
.cards { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px; }
.pcard { background: var(--card); border: 1px solid var(--line); border-radius: 6px; padding: 18px 24px 24px; position: relative; text-align: left; overflow: hidden; }
.pcard .badge { position: absolute; top: 24px; left: 24px; z-index: 1; color: var(--muted); background: var(--card); border: 1px solid var(--line); padding: 4px 10px; border-radius: 3px; font-size: 10px; letter-spacing: .04em; }
.pet-stage { min-height: 240px; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 26px; background: #f2f1e9; margin: -18px -24px 24px; padding: 56px 24px 20px; background-image: radial-gradient(#deded3 .7px, transparent .7px); background-size: 14px 14px; }
.pet-stage canvas { width: 120px; height: 120px; mix-blend-mode: normal; }
.stage-note { font-size: 8px; letter-spacing: 1.8px; color: #7c7b70; }
.nm { font-size: 24px; font-weight: 750; letter-spacing: -.05em; }
.nm small { font-size: 12px; color: var(--muted); font-weight: 400; margin-left: 6px; letter-spacing: 0; }
.bd { font-size: 13px; color: var(--muted); margin-top: 5px; }
.tg { font-size: 12px; color: var(--accent); margin-top: 12px; }
.status { margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--good); font-size: 12px; }
.status::before { content: ""; display: inline-block; width: 6px; height: 6px; background: currentColor; border-radius: 50%; margin-right: 8px; vertical-align: middle; }
.status.done { color: var(--muted); }
.next-step { margin-top: 32px; padding: 32px; border: 1px solid var(--line); background: #f1f0e8; display: flex; align-items: center; justify-content: space-between; gap: 24px; border-radius: 4px; }
.next-step .eyebrow { margin-bottom: 12px; }
.next-step h2 { font-size: 22px; letter-spacing: -.045em; margin: 0; }
.next-step p:not(.eyebrow) { font-size: 13px; color: var(--muted); margin: 8px 0 0; }
.btn,.field button,.owner-login-row button { display: inline-flex; align-items: center; justify-content: center; gap: 26px; padding: 14px 20px; background: var(--accent); color: var(--accent-ink); font-size: 14px; font-weight: 600; border: 1px solid var(--accent); border-radius: 4px; line-height: 1.5; min-height: 48px; }
.btn { flex-shrink: 0; }
.btn:hover,.field button:hover,.owner-login-row button:hover { background: #cf4218; border-color: #cf4218; }
.btn.ghost { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: white; }
.help-detail { border-bottom: 1px solid var(--line); padding: 22px 0; font-size: 13px; }
summary { cursor: pointer; padding: 5px 0; font-weight: 600; }
.help-detail p { color: var(--muted); max-width: 700px; }
.pet-detail-link { display:flex; align-items:center; justify-content:space-between; gap:16px; min-height:48px; margin-top:16px; border-top:1px solid var(--line); padding-top:12px; font-size:13px; font-weight:650; }
.pet-detail-link:hover,.profile-back:hover { color:var(--accent); }
.pet-profile { padding-top:32px; }
.profile-back { display:inline-flex; align-items:center; min-height:44px; margin-bottom:24px; font-size:13px; color:var(--muted); }
.profile-hero { display:grid; grid-template-columns: .9fr 1.1fr; border:1px solid var(--line); border-radius:6px; overflow:hidden; background:var(--card); }
.profile-portrait { display:flex; flex-direction:column; align-items:center; justify-content:space-between; gap:32px; padding:32px 24px; background:#f2f1e9 radial-gradient(#deded3 .7px, transparent .7px); background-size:14px 14px; }
.profile-portrait .eyebrow { align-self:flex-start; margin:0; }
.profile-portrait canvas { width:192px; height:192px; image-rendering:pixelated; }
.profile-intro { padding:40px; min-width:0; }
.profile-intro h1 { font-size:42px; letter-spacing:-.055em; line-height:1.3; margin:0 0 8px; }
.profile-intro h1 .sex { vertical-align:middle; margin-left:10px; }
.profile-breed { color:var(--muted); font-size:14px; margin-top:0; }
.profile-description { font-size:17px; line-height:1.9; word-break:keep-all; overflow-wrap:anywhere; }
.profile-note { color:var(--muted); font-size:12px; line-height:1.8; }
.profile-grid { display:grid; grid-template-columns:1fr 1fr; align-items:start; gap:24px; margin-top:24px; }
.profile-section { min-width:0; background:var(--card); border:1px solid var(--line); border-radius:6px; padding:28px; overflow-wrap:anywhere; }
.profile-section .eyebrow { margin:0 0 16px; }
.profile-section h2 { font-size:22px; letter-spacing:-.04em; margin:0 0 12px; line-height:1.5; }
.profile-section h3 { font-size:15px; margin:18px 0 8px; }
.profile-section p:not(.eyebrow):not(.profile-note) { font-size:14px; line-height:1.85; }
.profile-stories { display:grid; gap:24px; min-width:0; }
.trait-chart { margin:16px 0 24px; text-align:center; }
.trait-chart svg { display:block; width:100%; max-width:380px; margin:auto; overflow:visible; }
.trait-chart figcaption { font-size:11px; color:var(--muted); }
.trait-grid polygon,.trait-grid line { fill:none; stroke:var(--line); stroke-width:1; }
.trait-shape { fill:var(--accent); fill-opacity:.16; stroke:var(--accent); stroke-width:2; stroke-linejoin:round; }
.trait-chart text { fill:var(--ink); font-size:11px; text-anchor:middle; dominant-baseline:middle; }
.trait-list { margin:0; display:grid; gap:12px; }
.trait-row { display:grid; grid-template-columns:90px 1fr; align-items:center; gap:12px; font-size:12px; }
.trait-row dd { margin:0; display:flex; align-items:center; gap:12px; }
.trait-row dd span { min-width:54px; text-align:right; color:var(--muted); font-variant-numeric:tabular-nums; }
.trait-row meter { width:100%; flex:1; min-width:0; height:8px; border:0; background:#eeede5; border-radius:9px; }
.trait-row meter::-webkit-meter-bar { background:#eeede5; border:0; }
.trait-row meter::-webkit-meter-optimum-value { background:var(--accent); }
.trait-row meter::-moz-meter-bar { background:var(--accent); }
.profile-pill { display:inline-block; padding:5px 10px; border-radius:4px; color:var(--good); background:#edf0e7; font-size:11px; }
.profile-facts { font-size:13px; margin:20px 0 0; }
.profile-facts > div { display:grid; grid-template-columns:110px 1fr; gap:16px; padding:12px 0; border-top:1px solid var(--line); }
.profile-facts dt { color:var(--muted); }
.profile-facts dd { margin:0; }
[data-profile-background] { white-space:pre-wrap; font-size:14px; line-height:1.85; }
.profile-callout { margin-top:20px; padding:16px; background:#f2f1e9; border-radius:4px; font-size:12px; line-height:1.9; }
@media(max-width:700px) {
  .profile-hero,.profile-grid { grid-template-columns:1fr; }
  .profile-intro,.profile-section { padding:24px; }
  .profile-portrait { min-height:280px; }
  .profile-portrait canvas { width:144px; height:144px; }
  .profile-intro h1 { font-size:34px; }
  .profile-facts > div { grid-template-columns:90px 1fr; }
  .pet-profile .next-step { align-items:stretch; flex-direction:column; padding:24px; }
}
.box { border: 1px solid var(--line); background: var(--card); border-radius: 6px; padding: 30px; margin-bottom: 20px; }
.box .box-title { font-size: 20px; letter-spacing: -.045em; margin: 0 0 20px; }
.box .box-title small { display: block; color: var(--muted); font-size: 12px; letter-spacing: 0; font-weight: 400; margin-top: 6px; }
.box .page-sub { font-size: 14px; }
.lookup-card { max-width: 680px; margin: 0 auto; padding: 36px 48px; background: var(--card); border: 1px solid var(--line); border-radius: 6px; text-align: center; box-shadow: var(--shadow); }
.lookup-card .eyebrow { justify-content: center; margin: 24px 0 12px; }
.lookup-card h2 { margin: 0; font-size: 28px; letter-spacing: -.05em; }
.lookup-card > p:not(.eyebrow) { font-size: 14px; color: var(--muted); }
.lookup-art { display: flex; justify-content: center; align-items: center; gap: 20px; padding: 20px; background: #f2f1e9; border-radius: 4px; }
.lookup-art canvas { mix-blend-mode: normal; }
.lookup-art span { font-size: 13px; border: 1px solid var(--line); background: var(--card); padding: 10px 16px; border-radius: 16px 16px 16px 0; }
.field { margin: 26px auto 20px; text-align: left; }
.input-label { display: block; font-size: 12px; font-weight: 600; margin-bottom: 8px; }
.lookup-row { display: flex; gap: 8px; }
input { padding: 13px 16px; border: 1px solid var(--line); border-radius: 4px; background: var(--bg); color: var(--ink); min-width: 0; }
input:focus { border-color: var(--accent); }
input::placeholder { color: #87877d; }
.field input,.owner-login-row input { text-transform: uppercase; letter-spacing: .08em; }
.field input { width: 100%; flex: 1; }
.field button { white-space: nowrap; }
.muted-line { color: var(--muted); font-size: 12px; margin-top: 8px; }
#my-content { display: grid; grid-template-columns: 1.15fr 1fr; gap: 20px; align-items: stretch; }
#my-content > .box { margin: 0; min-width: 0; }
/* 두 칸씩 짝: 안부|돌봄, 오늘|추억, 미션|배지 — 표·막대가 많은 성장 리포트·붙잡기 챌린지·성격 실험실과 외출 배너는 한 줄을 다 쓴다 */
#my-content > #my-away-banner,#my-content > #report-box,#my-content > #vlearn-box,#my-content > #challenge-box,#my-content > #lesson-box,#my-content > #persona-box { grid-column: 1 / -1; }
.mini { display: flex; align-items: center; gap: 20px; font-size: 13px; }
.mini canvas { flex: none; mix-blend-mode: normal; }
.mini > div { min-width: 0; overflow-wrap: anywhere; }
.gauges { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); }
.g { display: flex; align-items: center; gap: 14px; margin: 14px 0; font-size: 12px; }
.g > span:first-child { width: 42px; color: var(--muted); }
.g .t { flex: 1; height: 5px; border-radius: 9px; background: #eeede5; overflow: hidden; }
.g .t i { display: block; height: 100%; background: var(--accent); border-radius: 9px; }
.g:nth-child(2n) .t i { background: #879778; }
.g .v { width: 36px; color: var(--muted); text-align: right; font-variant-numeric: tabular-nums; }
.chip { display: inline-block; font-size: 11px; padding: 4px 9px; background: var(--chip); color: #a84726; border-radius: 3px; margin: 3px 4px 0 0; }
.owner-login-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 20px; }
.owner-login-row input { flex: 1 1 130px; width: 130px; font-size: 13px; }
.owner-login-row button { width: 100%; }
.error-msg { color: var(--warn); font-size: 13px; }
.ok-msg { color: var(--good); font-size: 13px; }
.linklike { background: none; border: none; padding: 8px 0; color: var(--muted); text-decoration: underline; font-size: 12px; }
.status-dot { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; }
.status-dot i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); }
.status-dot.on i { background: var(--good); }
.status-dot.off i { background: var(--warn); }
.care-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; margin-top: 20px; }
.care-grid button { border: 1px solid var(--line); border-radius: 4px; background: var(--bg); color: var(--ink); min-height: 48px; padding: 10px 6px; font-size: 12px; }
.care-grid button:hover:not(:disabled) { border-color: var(--accent); color: var(--accent); background: var(--chip); }
button:disabled { opacity: .45; cursor: not-allowed; }
.toast-msg { font-size: 13px; min-height: 1.5em; }
.toast-msg:empty { min-height: 0; margin: 0; }
.btn.btn-small { min-height: 40px; padding: 8px 16px; font-size: 12px; gap: 8px; margin-top: 8px; }
ul.tlst { list-style: none; padding: 0; margin: 0; }
ul.tlst li { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 13px; overflow-wrap: anywhere; }
ul.tlst li:last-child { border: 0; }
ul.tlst li span { color: var(--muted); margin-right: 16px; font-size: 11px; font-variant-numeric: tabular-nums; }
/* v1.20 추억 앨범 — 원격 돌봄 패널(owner-login-row·care-grid)과 같은 결 */
.memory-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.memory-row input { flex: 1 1 180px; width: 180px; font-size: 13px; padding: 10px 12px; }
.memory-row button { border: 1px solid var(--accent); border-radius: 4px; background: var(--accent); color: var(--accent-ink); min-height: 44px; padding: 10px 14px; font-size: 12px; font-weight: 600; }
.memory-row button.ghost { border-color: var(--line); background: var(--bg); color: var(--ink); font-weight: 400; }
.memory-row button.ghost:hover:not(:disabled) { border-color: var(--accent); color: var(--accent); background: var(--chip); }
.memory-row button.ghost[aria-pressed="true"] { border-color: var(--accent); color: var(--accent); background: var(--chip); font-weight: 600; }  /* v1.62 주인 호칭 빠른 고르기 — 지금 고른 것 */
ul.tlst li .memory-act { margin-left: 10px; padding: 0 4px; min-height: 40px; }
/* 조작 버튼이 붙는 줄(주인 로그인 때): 시각 · 글 · 버튼을 한 줄에, 좁으면 버튼만 아래로 */
ul.tlst li.tl-row { display: flex; flex-wrap: wrap; align-items: center; column-gap: 0; padding: 6px 0; }
ul.tlst li.tl-row .tl-text { flex: 1 1 140px; min-width: 0; padding: 8px 0; }
ul.tlst li .tl-text { color: var(--ink); font-size: 13px; margin: 0; }
ul.tlst li.tl-row .memory-act { margin-left: auto; }
ul.tlst li.tl-row .memory-pin { flex-basis: 100%; margin: 4px 0 8px; }
.memory-label { margin: 20px 0 0; }
#memory-hint a.linklike { padding: 10px 0; white-space: nowrap; }
/* v1.22 주간 미션·배지 진열장 — 배지는 8×8 도트(static/badges.js), 픽셀이 뭉개지지 않게 */
canvas.badge-icon { image-rendering: pixelated; flex: none; }
ul.mission-list, ul.badge-shelf { list-style: none; padding: 0; margin: 0; }
.mission-row { display: flex; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.mission-row:last-child { border: 0; }
.mission-body { flex: 1; min-width: 0; }
.mission-head { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; overflow-wrap: anywhere; }
.mission-state { color: var(--muted); font-variant-numeric: tabular-nums; flex: none; }
.mission-row.done .mission-state { color: var(--good); font-weight: 600; }
.mission-bar { height: 8px; margin: 6px 0 4px; background: #eeede5; border-radius: 9px; overflow: hidden; }
.mission-bar i { display: block; height: 100%; background: var(--accent); }
.mission-row.done .mission-bar i { background: var(--good); }
ul.badge-shelf { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 12px; }
ul.badge-shelf li.muted-line { grid-column: 1 / -1; }
.badge-item { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 6px; border: 1px solid var(--line); border-radius: 4px; background: var(--card); text-align: center; }
.badge-item b { font-size: 12px; font-weight: 600; overflow-wrap: anywhere; }
.badge-item small { font-size: 11px; color: var(--muted); }
table.lb { width: 100%; border-collapse: collapse; table-layout: fixed; }
table.lb th,table.lb td { padding: 20px 12px; border-bottom: 1px solid var(--line); text-align: left; font-size: 14px; overflow-wrap: anywhere; }
table.lb th { font-size: 11px; color: var(--muted); font-weight: 500; padding-top: 0; }
table.lb th:first-child { width: 64px; }
table.lb th:last-child { width: 85px; }
table.lb td:last-child,table.lb th:last-child { text-align: right; font-variant-numeric: tabular-nums; }
table.lb td.rank { color: var(--accent); font-size: 22px; font-weight: 700; }
table.lb tr.me { background: #f6eee2; }
table.lb td.who canvas { vertical-align: middle; margin-right: 16px; width: 40px; height: 40px; mix-blend-mode: normal; }
table.lb tbody tr:last-child td { border-bottom: 0; }
.empty { text-align: center; color: var(--muted); padding: 64px 24px; }
.empty .eyebrow { justify-content: center; }
.empty .page-title { color: var(--ink); }
.empty .btn { margin-top: 16px; }
.setup-steps { list-style: none; counter-reset: step; padding: 0; margin: 0 0 28px; }
.setup-steps li { counter-increment: step; display: flex; align-items: center; gap: 20px; border-bottom: 1px solid var(--line); padding: 22px 0; font-size: 14px; }
.setup-steps li::before { content: "0" counter(step); color: var(--accent); font-size: 22px; font-weight: 600; flex-shrink: 0; }
.page-info { max-width: 1020px; }
.page-info > .empty { margin-top: 72px; }
footer.foot { border-top: 1px solid var(--line); padding: 36px 5%; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; color: var(--muted); font-size: 11px; }
.footer-brand { font-size: 20px; font-weight: 800; color: var(--ink); }
.footer-brand span { margin-left: 12px; font-size: 9px; font-weight: 500; letter-spacing: 1px; }
.foot-links { margin-left: auto; }
.foot-links a { display: inline-block; padding: 8px 0; }
.foot-links a:hover { color: var(--accent); }
@media (max-width: 900px) {
  .logotype { display: none; }
  #my-content { grid-template-columns: 1fr; }
  #my-content > .box:first-child { grid-row: auto; }
  .next-step { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 720px) {
  header.top { min-height: 72px; padding: 0 24px; }
  .logo { font-size: 22px; }
  .top-nav { display: none; }
  .top-contact { margin-left: 0; }
  .logotype { display: inline; font-size: 9px; }
  main { padding: 0 22px 48px; }
  .page-heading { padding: 40px 0 32px; }
  .page-sub { font-size: 13px; }
  .eyebrow { font-size: 9px; letter-spacing: 1.1px; margin-bottom: 16px; }
  .section-label { padding: 20px 0; }
  .section-label h2 { font-size: 16px; }
  .section-label > span { font-size: 10px; }
  .cards { gap: 14px; }
  .pcard { padding: 14px; }
  .pet-stage { margin: -14px -14px 18px; min-height: 188px; padding: 54px 12px 16px; gap: 16px; }
  .pet-stage canvas { width: 96px; height: 96px; }
  .stage-note { display: none; }
  .pcard .badge { top: 12px; left: 12px; font-size: 9px; padding: 3px 6px; }
  .nm { font-size: 22px; }
  .bd,.tg,.status { font-size: 11px; word-break: keep-all; }
  .next-step,.box { padding: 24px; }
  .next-step h2 { font-size: 20px; }
  .lookup-card { padding: 24px 20px; }
  .lookup-art { gap: 10px; padding: 16px 8px; }
  .lookup-art span { font-size: 12px; padding: 8px 12px; }
  .lookup-row { flex-direction: column; }
  .lookup-row input { text-align: center; min-height: 50px; }
  .mini { gap: 12px; }
  table.lb th,table.lb td { padding: 16px 6px; font-size: 12px; }
  table.lb th:first-child { width: 40px; }
  table.lb th:last-child { width: 60px; }
  table.lb td.who canvas { margin-right: 8px; width: 28px; height: 28px; }
  footer.foot { flex-direction: column; align-items: flex-start; gap: 8px; padding: 28px 24px 100px; }
  .foot-links { margin-left: 0; }
  .bottom-nav { display: flex; position: fixed; z-index: 20; left: 0; right: 0; bottom: 0; background: var(--bg); border-top: 1px solid var(--line); padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); }
  .bottom-nav a { flex: 1; text-align: center; font-size: 12px; font-weight: 600; padding: 12px 4px; color: var(--muted); border-radius: 4px; }
  .bottom-nav a.on { color: var(--accent); background: var(--chip); }
}
@media (max-width: 360px) {
  .cards { grid-template-columns: 1fr; }
  h1.page-title { font-size: 29px; }
  .mini { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  *,*::before,*::after { transition: none !important; scroll-behavior: auto !important; }
}

/* 성별은 이름의 보조 정보 — 사이트의 종이색·얇은 선을 공유한다. */
.sex { display: inline-flex; align-items: center; gap: 4px; padding: 2px 7px; border: 1px solid var(--line); border-radius: 3px; background: #f2f1e9; color: #646459; font-size: 11px; font-weight: 500; letter-spacing: 0; line-height: 1.5; vertical-align: middle; white-space: nowrap; }
.sex b { font-size: 14px; line-height: 1; font-weight: 600; }
.nm .sex { margin-left: 8px; letter-spacing: 0; vertical-align: 3px; }
.box-title .sex { margin-left: 4px; vertical-align: 3px; }
/* v1.21 재주 대회 (/contest/, static/contest.js) */
.contest-title { margin: 0 0 4px; font-size: 20px; letter-spacing: -.04em; }
.contest-intents { margin: 10px 0 18px; }
table.contest-lb th:nth-child(2) { width: auto; }
table.contest-lb td { vertical-align: top; }
table.contest-lb td.rank { line-height: 40px; }
table.contest-lb td.score { line-height: 40px; }
.contest-who { display: flex; align-items: center; gap: 12px; min-width: 0; }
.contest-who b { font-weight: 600; overflow-wrap: anywhere; min-width: 0; }
table.lb td.who .contest-who canvas { margin-right: 0; flex: none; }
ul.contest-reacts li .mark { font-weight: 700; }
table.contest-lb td.who > canvas { width: 40px; height: 40px; image-rendering: pixelated; vertical-align: middle; margin-right: 12px; }
ul.contest-reacts { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin: 12px 0 0; padding: 0; }
ul.contest-reacts li { display: flex; flex-direction: column; align-items: center; min-width: 64px; font-size: 11px; color: var(--muted); }
table.contest-lb ul.contest-reacts li canvas { width: 48px; height: 48px; margin: 0; image-rendering: pixelated; }
ul.contest-reacts li b { color: var(--ink); font-size: 12px; }
ul.contest-reacts li.hit b { color: var(--accent); }
ul.contest-reacts li.miss canvas { opacity: .55; }
.my-contest { margin-top: 6px; }
/* v1.23 성장 리포트 (/my/, static/report.js) */
.report-h { font-size: 14px; margin: 22px 0 6px; letter-spacing: -.02em; }
#report-box .report-h:first-child,#vlearn-box .report-h:first-child { margin-top: 0; }
/* v1.25 마을에서 배워 온 것 (/my/, static/village-learn.js) — 막대는 성장 리포트와 같은 .report-probe */
.vlearn-state { color: var(--ink); font-size: 14px; margin: 0; }
.vlearn-state b { color: var(--accent); }
ul.vlearn-acts { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); column-gap: 28px; }
ul.vlearn-acts li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; }
ul.vlearn-acts li span { margin: 0; }
.report-h label { font: inherit; }
/* 자세히 보기(접힘) — 휴대폰에서 상자가 끝없이 길어지지 않게 */
details.report-more { margin-top: 8px; border-top: 1px solid var(--line); }
details.report-more > summary { display: flex; align-items: center; gap: 8px; min-height: 44px; font-size: 13px; color: var(--ink); list-style: none; }
details.report-more > summary::-webkit-details-marker { display: none; }
details.report-more > summary::before { content: "+"; color: var(--accent); font-size: 18px; font-weight: 400; width: 12px; line-height: 1; }
details.report-more[open] > summary::before { content: "2"; }
details.report-more > summary:hover { color: var(--accent); }
details.report-more[open] > summary { margin-bottom: 4px; }
/* 막대 색은 한 가지 — 줄마다 번갈아 바뀌는 색은 여기선 뜻이 없다(돌봄 게이지와 구분) */
.report-probe .g .t i,.persona-traits .g .t i { background: var(--accent); }
.report-probes { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 4px 28px; }
.report-probe h3 { font-size: 12px; font-weight: 600; margin: 12px 0 0; }
.report-probe .g { margin: 8px 0; }
.report-probe .g > span:first-child { width: 108px; flex: none; overflow-wrap: anywhere; word-break: keep-all; line-height: 1.4; }
.report-probe .g .t { min-width: 32px; }
.report-probe .g .was[title] { cursor: help; }
.report-probe .g .was { width: 48px; color: var(--muted); font-size: 11px; text-align: right; font-variant-numeric: tabular-nums; }
/* v1.24 성격 실험실 (/my/, static/persona-lab.js) — 막대는 성장 리포트와 같은 .g, 성향은 두 줄 격자 */
.persona-traits { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 0 28px; }
.persona-traits .g { margin: 8px 0; }
.persona-traits .g > span:first-child { width: 64px; }
.persona-traits .g .was { width: 48px; color: var(--muted); font-size: 11px; text-align: right; font-variant-numeric: tabular-nums; }
#persona-box #persona-current { color: var(--ink); font-size: 14px; margin-top: 0; }
#persona-box .memory-row { margin-top: 0; }
.persona-apply-row { margin-top: 20px; }
#persona-status.is-busy::after { content: ""; display: inline-block; width: 1.4em; text-align: left; animation: persona-dots 1.2s steps(4, end) infinite; }
@keyframes persona-dots { 0% { content: ""; } 25% { content: "."; } 50% { content: ".."; } 75% { content: "..."; } }
@media (prefers-reduced-motion: reduce) { #persona-status.is-busy::after { animation: none; content: "…"; } }
/* v1.34 붙잡기 챌린지 (/my/, static/capture-challenge.js) — 확률 막대는 성격 실험실과 같은 .g, 진행 막대는 미션과 같은 .mission-bar */
#challenge-body > .report-h:first-child,#challenge-body > div:first-child > .report-h:first-child { margin-top: 0; }
.challenge-targets { border: 0; padding: 0; margin: 0; min-width: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 8px; }
.challenge-targets label { display: flex; gap: 10px; align-items: flex-start; min-height: 44px; padding: 12px; border: 1px solid var(--line); border-radius: 4px; background: var(--bg); cursor: pointer; }
.challenge-targets label:hover,.challenge-targets label.on { border-color: var(--accent); background: var(--chip); }
.challenge-targets input { flex: none; margin: 3px 0 0; accent-color: var(--accent); }
.challenge-targets b { display: block; font-size: 13px; font-weight: 600; }
.challenge-targets small { display: block; margin-top: 2px; font-size: 12px; color: var(--muted); line-height: 1.5; }
ul.challenge-rules { margin: 12px 0 0; padding-left: 18px; font-size: 12px; color: var(--muted); line-height: 1.7; }
.challenge-head { color: var(--ink); font-size: 14px; margin: 0; overflow-wrap: anywhere; }
.challenge-head b { color: var(--accent); }
.challenge-progress { display: flex; justify-content: space-between; gap: 8px; margin-top: 14px; font-size: 13px; font-variant-numeric: tabular-nums; }
.challenge-probs { max-width: 520px; }
.challenge-probs .g { margin: 8px 0; }
.challenge-probs .g > span:first-child { width: 64px; flex: none; }
.challenge-probs .g .t i { background: var(--accent); }
.challenge-probs .g .v { width: 44px; }
.challenge-verdict { color: var(--ink); font-size: 14px; margin: 0; }
.challenge-verdict.good { color: var(--good); font-weight: 600; }
ul.tlst li span.not-counted { margin: 0 0 0 6px; }
.challenge-actions { margin-top: 16px; }
/* v1.35 수업 일지 (/my/, static/lesson-journal.js) — 행 탭·계단 그래프(SVG)·되감기·카드. 설명 목록은 챌린지와 같은 .challenge-rules */
.lesson-empty { color: var(--ink); font-size: 14px; margin: 0; }
.lesson-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.lesson-tab { min-height: 44px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 4px; background: var(--bg); color: var(--ink); font-size: 13px; overflow-wrap: anywhere; }
.lesson-tab:hover { border-color: var(--accent); }
.lesson-tab[aria-pressed=true] { border-color: var(--accent); background: var(--chip); color: var(--accent); font-weight: 600; }
.lesson-summary { color: var(--ink); font-size: 13px; margin: 12px 0 0; font-variant-numeric: tabular-nums; }
.lesson-graph { margin-top: 12px; border: 1px solid var(--line); border-radius: 4px; background: var(--card); padding: 4px; }
.lesson-graph svg { display: block; width: 100%; height: auto; }
.lesson-grid { stroke: var(--line); stroke-width: 1; }
.lesson-axis { fill: var(--muted); font-size: 13px; }
.lesson-line { fill: none; stroke-width: 2.5; stroke-linejoin: round; }
.lesson-line.l0,.lesson-key.l0 { stroke: var(--accent); background: var(--accent); }
.lesson-line.l1,.lesson-key.l1 { stroke: var(--good); background: var(--good); }
.lesson-line.l2,.lesson-key.l2 { stroke: var(--warn); background: var(--warn); }
.lesson-line.l3,.lesson-key.l3 { stroke: var(--muted); background: var(--muted); }
.lesson-gap { fill: none; stroke: var(--muted); stroke-width: 1.5; stroke-dasharray: 4 4; }
.lesson-veil { fill: none; stroke: var(--muted); stroke-width: 6; stroke-opacity: .35; stroke-linecap: round; }
.lesson-mark { stroke: var(--ink); stroke-width: 1.5; stroke-opacity: .6; }
ul.lesson-keys { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 8px 0 0; padding: 0; font-size: 12px; color: var(--ink); }
ul.lesson-keys li { display: flex; align-items: center; gap: 6px; }
.lesson-key { display: inline-block; width: 16px; height: 3px; border-radius: 2px; }
.lesson-rewind { margin-top: 16px; }
.lesson-rewind-bar { display: flex; align-items: center; gap: 8px; }
.lesson-rewind-bar button,.lesson-more { border: 1px solid var(--line); border-radius: 4px; background: var(--bg); color: var(--ink); font-size: 13px; }
.lesson-rewind-bar button:hover:not(:disabled),.lesson-more:hover { border-color: var(--accent); color: var(--accent); background: var(--chip); }
.lesson-rewind-bar button { flex: none; min-width: 44px; min-height: 44px; padding: 0; }
.lesson-rewind-bar input[type=range] { flex: 1 1 auto; min-width: 0; accent-color: var(--accent); }
.lesson-rewind-label { display: block; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
ul.lesson-cards { list-style: none; margin: 8px 0 0; padding: 0; }
.lesson-card { padding: 12px 0; border-bottom: 1px solid var(--line); min-width: 0; }
.lesson-card.is-now { border: 1px solid var(--accent); border-radius: 4px; padding: 12px; background: var(--chip); }
.lesson-card p { margin: 0; }
.lesson-card .muted-line { margin-top: 4px; }
.lesson-card-head { font-size: 13px; color: var(--ink); overflow-wrap: anywhere; }
.lesson-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.lesson-chip { display: inline-block; padding: 2px 8px; border: 1px solid var(--line); border-radius: 999px; font-size: 11px; color: var(--ink); background: var(--bg); overflow-wrap: anywhere; }
.lesson-chip.o-P,.lesson-chip.o-G,.lesson-chip.o-L { border-color: var(--good); color: var(--good); }
.lesson-chip.o-S,.lesson-chip.o-H { border-color: var(--warn); color: var(--warn); }
.lesson-chip.o-N { color: var(--muted); }
.lesson-score { margin-top: 6px !important; font-size: 13px; color: var(--ink); font-variant-numeric: tabular-nums; }
table.lesson-table { border-collapse: collapse; width: 100%; max-width: 420px; margin-top: 10px; font-size: 12px; font-variant-numeric: tabular-nums; }
table.lesson-table caption { text-align: left; color: var(--muted); padding-bottom: 4px; }
table.lesson-table th,table.lesson-table td { text-align: left; padding: 4px 16px 4px 0; border-bottom: 1px solid var(--line); font-weight: 400; }
table.lesson-table thead th { color: var(--muted); }
.lesson-more { margin-top: 10px; min-height: 44px; padding: 8px 14px; }
@media (max-width: 720px) {
  /* 입력 칸은 한 줄을 다 쓰고, 버튼은 그 아래에서 손가락으로 누르기 쉽게 넓게 */
  #memory-box .memory-row input,#persona-box .memory-row input,ul.tlst .memory-pin input { flex-basis: 100%; }
  .challenge-targets { grid-template-columns: 1fr; }
  .lesson-tab { flex: 1 1 calc(50% - 8px); }
  .lesson-card.is-now { padding: 10px; }
  .memory-row button { flex: 1 1 0; min-height: 44px; }
  .report-probe .g > span:first-child { width: 96px; }
  .report-probe .g { gap: 10px; }
  table.contest-lb th:first-child { width: 40px; white-space: nowrap; }
  table.contest-lb th:last-child { width: 52px; }
  table.contest-lb td.rank { font-size: 18px; }
  ul.contest-reacts { gap: 6px; }
  ul.contest-reacts li { min-width: 52px; }
  table.contest-lb ul.contest-reacts li canvas { width: 40px; height: 40px; }
  table.lb td.who .contest-who canvas { width: 32px; height: 32px; }
}
/* v1.56 우편함 — 주인만(static/mailbox.js). 선물 상자 아래 한 줄 전체, 엽서는 폭에 맞춰 1~3열. 엽서 종이는 /village/ .village-postcard 모양을 토큰 색으로 */
#my-content > #mailbox-box { grid-column: 1 / -1; }
ul.postcard-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 14px; list-style: none; margin: 0; padding: 0; }
.postcard { display: grid; grid-template-columns: 72px minmax(0, 1fr); column-gap: 14px; align-items: center; min-width: 0; padding: 14px 16px; border: 1px solid var(--line); border-radius: 2px; background: var(--bg); box-shadow: 3px 4px 0 var(--line); }
.postcard canvas { width: 72px; height: 72px; display: block; grid-row: 1 / span 2; image-rendering: pixelated; }
.postcard canvas[hidden] ~ p { grid-column: 1 / -1; }
.postcard p { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.pc-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.pc-stamp { display: inline-block; padding: 0 6px; border: 1px solid var(--accent); border-radius: 2px; color: var(--accent); font-size: 12px; font-weight: 700; line-height: 1.7; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pc-new { display: inline-block; padding: 0 7px; border-radius: 999px; background: var(--chip); color: var(--accent); font-size: 11px; font-weight: 700; line-height: 1.8; }
.postcard .pc-doing { font-size: 14px; line-height: 1.6; margin-top: 4px; word-break: keep-all; }
/* 「몽글마을」 장면 그림(240×177)이 있으면 엽서 폭 가득, 글은 그 아래 한 열. 「이미지 저장」은 맨 아래(지문 일기 저장 버튼과 같은 모양) */
.postcard canvas.pc-scene { width: 100%; height: auto; grid-column: 1 / -1; grid-row: auto; margin-bottom: 10px; }
.postcard canvas.pc-scene ~ p { grid-column: 1 / -1; }
.pc-save { grid-column: 1 / -1; justify-self: start; min-height: 44px; margin-top: 10px; padding: 8px 16px; border: 1px solid var(--ink); border-radius: 4px; background: transparent; color: var(--ink); font-size: 13px; }
.pc-save:disabled { color: var(--muted); border-color: var(--line); cursor: default; }
/* v1.36 어제의 그림일기 — 주인만(static/learn-scenes.js). 안부·돌봄 아래 한 줄 전체, 카드는 폭에 맞춰 1~3열 */
#my-content > #scenes-box { grid-column: 1 / -1; }
ul.scene-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; list-style: none; margin: 8px 0 0; padding: 0; }
.scene-card { border: 1px solid var(--line); background: var(--card); border-radius: 4px; padding: 12px; text-align: center; min-width: 0; overflow-wrap: anywhere; }
.scene-card canvas { width: 96px; height: 96px; display: block; margin: 0 auto 6px; image-rendering: pixelated; }
.scene-card p { margin: 0; }
.scene-time { color: var(--muted); font-size: 12px; }
.scene-card .scene-doing { font-size: 14px; margin: 4px 0; word-break: keep-all; }
.scene-felt { display: inline-block; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 4px; background: var(--chip); }
.scene-felt.up { color: var(--good); }
.scene-felt.down { color: var(--muted); }
.scene-day { font-size: 15px; margin: 4px 0 0; }
details.scene-more { margin-top: 16px; }
details.scene-more summary { cursor: pointer; font-size: 13px; min-height: 32px; }
@media (max-width: 720px) {
  /* 좁은 화면: 그림 왼쪽·글 오른쪽의 낮은 카드로 — 세 장면이 한 화면에 들어오게. 그림이 없으면(시트 없음) 글이 한 줄을 다 쓴다 */
  ul.scene-row { grid-template-columns: 1fr; gap: 8px; }
  .scene-card { display: grid; grid-template-columns: 72px 1fr; column-gap: 12px; align-items: center; text-align: left; padding: 10px 12px; }
  .scene-card canvas { width: 72px; height: 72px; margin: 0; grid-row: 1 / span 3; }
  .scene-card canvas[hidden] ~ p { grid-column: 1 / -1; }
}
/* v1.37 재주 지도 (/my/, static/trick-map.js) — 막대·카드는 성장 리포트의 .report-probe .g */
#my-content > #trickmap-box { grid-column: 1 / -1; }
.tm-lessons { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 8px; }
.tm-lesson { padding: 12px; border: 1px solid var(--line); border-radius: 4px; background: var(--chip); }
.tm-lesson b { display: block; font-size: 13px; font-weight: 600; }
.tm-lesson p { margin: 4px 0 0; font-size: 13px; line-height: 1.7; }
.tm-stages { display: flex; flex-wrap: wrap; gap: 6px; margin: 16px 0 0; }
.tm-stages .tm-badge { margin-left: 0; }
.tm-badge { display: inline-block; margin-left: 6px; padding: 1px 8px; border: 1px solid var(--line); border-radius: 999px; font-size: 11px; font-weight: 600; color: var(--muted); }
.tm-badge.s-learned { color: var(--good); border-color: var(--good); }
.tm-badge.s-confused,.tm-badge.s-fading { color: var(--warn); border-color: var(--warn); }
.tm-badge.s-exploring { color: var(--accent); border-color: var(--accent); }
.tm-map { display: block; width: 100%; max-width: 480px; height: auto; margin: 8px 0; }
.tm-map text { font-size: 12px; fill: var(--ink); }
.tm-map circle { fill: var(--muted); }
.tm-l { fill: none; stroke: var(--muted); stroke-linecap: round; }
.tm-l.s-learned { stroke: var(--good); }
.tm-l.s-fading { stroke: var(--warn); stroke-dasharray: 2 4; }
.tm-l.tm-pair { stroke: var(--warn); stroke-dasharray: 5 4; }
.tm-card .g .v { width: 44px; }
@media (max-width: 720px) { .tm-map text { font-size: 13px; } }   /* 좁은 화면에선 지도가 줄어드니 글자를 조금 키운다(9자 × 13 < 119 — 잘리지 않는다) */
/* v1.41 배변 훈련 코치 (static/potty-coach.js) — 머리줄 확률·지금 패드·7일 그래프(SVG)·날짜 버튼·그날 타임라인. 표는 수업 일지의 .lesson-table, 팁 목록은 .challenge-rules */
#my-content > #potty-box { grid-column: 1 / -1; }
.potty-head { margin: 0; }
.potty-label { margin: 0; font-size: 13px; color: var(--ink); }
.potty-head .potty-big { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; margin: 4px 0 0; }
.potty-head .potty-big strong { font-size: 40px; line-height: 1.1; color: var(--accent); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.potty-ago { font-size: 12px; color: var(--muted); }
.potty-sub { margin: 4px 0 0; font-size: 13px; color: var(--ink); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.potty-now { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.potty-now-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; font-size: 13px; color: var(--ink); font-variant-numeric: tabular-nums; }
.potty-chip { display: inline-block; padding: 3px 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--chip); font-size: 12px; color: var(--ink); }
.potty-pad-btn { margin-top: 12px; min-height: 48px; padding: 10px 18px; border: 1px solid var(--line); border-radius: 4px; background: var(--bg); color: var(--ink); font-size: 13px; }
.potty-pad-btn:hover:not(:disabled) { border-color: var(--accent); color: var(--accent); background: var(--chip); }
.potty-pad-btn:disabled { opacity: .55; }
.potty-note { margin: 6px 0 0; font-size: 12px; color: var(--muted); line-height: 1.6; }
.potty-graph { margin-top: 8px; border: 1px solid var(--line); border-radius: 4px; background: var(--card); padding: 4px; }
.potty-graph svg { display: block; width: 100%; height: auto; }
.potty-grid { stroke: var(--line); stroke-width: 1; }
.potty-axis,.potty-count { fill: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.potty-lab-short { display: none; }
.potty-bar.pad,.potty-key.pad { fill: var(--good); background: var(--good); }
.potty-bar.corner,.potty-key.corner { fill: var(--muted); background: var(--muted); }
.potty-bar.floor,.potty-key.floor { fill: var(--warn); background: var(--warn); }
.potty-line { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linejoin: round; }
.potty-dot { fill: var(--accent); }
.potty-key.line { height: 3px; background: var(--accent); }
ul.potty-keys { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 8px 0 0; padding: 0; font-size: 12px; color: var(--ink); }
ul.potty-keys li { display: flex; align-items: center; gap: 6px; }
.potty-key { display: inline-block; width: 12px; height: 12px; border-radius: 2px; }
.potty-days { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.potty-days button { flex: 1 1 0; min-width: 64px; min-height: 44px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 4px; background: var(--bg); color: var(--ink); font-size: 12px; white-space: nowrap; }
.potty-days button:hover { border-color: var(--accent); }
.potty-days button[aria-pressed=true] { border-color: var(--accent); background: var(--chip); color: var(--accent); font-weight: 600; }
.potty-table-wrap { overflow-x: auto; }
table.potty-table { max-width: none; width: auto; min-width: 100%; }
table.potty-table th,table.potty-table td { white-space: nowrap; padding-right: 12px; }
ul.potty-items { list-style: none; margin: 8px 0 0; padding: 0; }
.potty-item { padding: 10px 0; border-bottom: 1px solid var(--line); min-width: 0; }
.potty-item p { margin: 0; }
.potty-item-head { font-size: 13px; color: var(--ink); overflow-wrap: anywhere; }
.potty-time { display: inline-block; min-width: 44px; color: var(--muted); font-variant-numeric: tabular-nums; }
.potty-item.est .potty-item-head { color: var(--muted); font-style: italic; }
.potty-item.change .potty-item-head { color: var(--muted); }
.potty-facts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.potty-fact { display: inline-block; padding: 2px 8px; border: 1px solid var(--line); border-radius: 999px; font-size: 11px; color: var(--ink); background: var(--bg); overflow-wrap: anywhere; }
.potty-item .potty-note { margin-top: 4px; }
.potty-lesson { margin-top: 6px !important; font-size: 12px; color: var(--ink); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.potty-lesson.o-P,.potty-lesson.o-G { color: var(--good); }
.potty-lesson.o-S { color: var(--warn); }
.potty-foot { margin-top: 16px; }
@media (max-width: 720px) {
  .potty-head .potty-big strong { font-size: 34px; }
  .potty-graph .potty-axis,.potty-graph .potty-count { font-size: 22px; }   /* viewBox 600 폭이 좁은 화면에 줄어도 읽히게 */
  .potty-lab-long { display: none; }
  .potty-lab-short { display: inline; }
  .potty-days button { flex: 1 1 calc(25% - 6px); }
  .potty-pad-btn { width: 100%; }
}
/* v1.42 성장 앨범 (/my/, static/growth-album.js) */
#my-content > #album-box { grid-column: 1 / -1; }
.album-days,.album-list { list-style: none; margin: 0; padding: 0; }
.album-day + .album-day { margin-top: 14px; }
.album-day h3 { margin: 0 0 6px; font-size: 13px; }
.album-list li { display: flex; flex-wrap: wrap; gap: 8px; align-items: baseline; padding: 4px 0; font-size: 13px; line-height: 1.6; }
.album-tag { display: inline-block; padding: 0 6px; border-radius: 999px; background: var(--chip); font-size: 11px; color: var(--muted); }
.album-list .album-ico { flex: none; }
.album-list .album-text { flex: 1 1 16em; min-width: 0; word-break: keep-all; overflow-wrap: anywhere; }
/* v1.43 우리 집 하루 예감 시계 (/my/, static/day-clock.js) — 원판 SVG(0시 위·시계 방향)와 옆 글. 720px 이하면 한 줄로 */
#my-content > #dayclock-box { grid-column: 1 / -1; }
.dayclock-caption { font-size: 14px; margin: 0; overflow-wrap: anywhere; }
.dayclock-replay { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 12px; }
.dayclock-replay input[type=range] { flex: 1 1 200px; min-width: 0; min-height: 44px; padding: 0; border: 0; background: none; accent-color: var(--accent); }
.dayclock-replay button { min-height: 44px; padding: 8px 18px; border: 1px solid var(--ink); border-radius: 4px; background: transparent; color: var(--ink); font-size: 13px; cursor: pointer; }
.dayclock-wrap { display: grid; grid-template-columns: minmax(0, 400px) minmax(0, 1fr); gap: 24px; margin-top: 16px; align-items: start; }
.dayclock-svg { display: block; width: 100%; max-width: 400px; height: auto; overflow: visible; }
.dc-grid { fill: none; stroke: var(--line); stroke-width: 1; }
.dc-on { fill: none; stroke: var(--muted); stroke-width: 1; stroke-dasharray: 4 4; }
.dc-hour { fill: var(--muted); font-size: 11px; text-anchor: middle; dominant-baseline: middle; }
.dc-curve { fill: none; stroke-width: 2.5; stroke-linejoin: round; }
.dc-lit { fill: none; stroke-width: 7; stroke-linecap: round; stroke-opacity: .55; }
.dc-owner,.dc-lit-owner { stroke: var(--good); } .dc-meal,.dc-lit-meal { stroke: var(--accent); } .dc-play,.dc-lit-play { stroke: #3a6ea5; }
.dc-asleep { fill: #6b5b95; } .dc-sleepy { fill: none; stroke: #6b5b95; stroke-width: 2; stroke-dasharray: 2 4; stroke-linecap: round; }
.dc-presence { fill: var(--good); } .dc-presence.dc-none { fill: var(--muted); }
.dayclock-legend { border: 0; padding: 0; margin: 12px 0 0; min-width: 0; display: flex; flex-wrap: wrap; gap: 0 14px; }
.dayclock-legend-title { padding: 0; font-size: 12px; color: var(--muted); }
.dayclock-legend label { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-size: 12px; cursor: pointer; }
.dayclock-legend input { margin: 0; accent-color: var(--accent); }
.dc-swatch { display: inline-block; flex: none; width: 16px; height: 4px; border-radius: 2px; vertical-align: middle; margin-right: 6px; }
.dc-sw-owner { background: var(--good); } .dc-sw-meal { background: var(--accent); } .dc-sw-play { background: #3a6ea5; } .dc-sw-sleep { background: #6b5b95; } .dc-sw-presence { background: var(--good); opacity: .45; }
ul.dayclock-evs,ul.dayclock-dps { list-style: none; margin: 0; padding: 0; }
.dayclock-ev { padding: 10px 0; border-top: 1px solid var(--line); } .dayclock-ev:first-child { border-top: 0; padding-top: 0; }
.dayclock-ev p { margin: 2px 0 0; } .dayclock-ev-head { font-size: 13px; }
.dayclock-line { font-size: 13px; margin: 0; overflow-wrap: anywhere; } .dayclock-compare { font-weight: 600; }
ul.dayclock-dps li { font-size: 13px; padding: 2px 0; }
.dayclock-text .report-h:first-child { margin-top: 0; }
@media (max-width: 720px) { .dayclock-wrap { grid-template-columns: 1fr; } .dayclock-svg { margin: 0 auto; } }
/* v1.44 두뇌 엑스레이 (/my/, static/brain-xray.js) — 주인만. '만약에' 입력 격자·세 두뇌 막대(.g)·이유 칩(규칙 회색·배운 마음 노랑)·예시 실험 카드 */
#my-content > #xray-box { grid-column: 1 / -1; }
.bx-presets { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 12px; }
.bx-presets button,.bx-pick button { min-height: 40px; padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); color: var(--ink); font-size: 12px; }
.bx-presets button:hover,.bx-pick button:not(:disabled):hover { border-color: var(--accent); color: var(--accent); }
.bx-inputs { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0 28px; }
.bx-slider { display: grid; grid-template-columns: 72px 1fr 48px; align-items: center; gap: 10px; min-height: 40px; font-size: 12px; }
.bx-slider label { color: var(--muted); }
.bx-slider input[type=range] { width: 100%; min-width: 0; min-height: 32px; margin: 0; accent-color: var(--accent); }
.bx-slider output { text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; }
.bx-selects { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 8px 28px; margin-top: 12px; }
.bx-selects label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--muted); }
.bx-selects select { min-height: 40px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 4px; background: var(--card); color: var(--ink); font: inherit; font-size: 13px; }
.bx-checks { display: flex; flex-wrap: wrap; gap: 0 18px; margin-top: 12px; font-size: 13px; }
.bx-checks label { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; }
.bx-checks input { width: 18px; height: 18px; margin: 0; accent-color: var(--accent); }
.bx-checks label.is-off { color: var(--muted); }
.btn.bx-ask { margin-top: 16px; }
.btn.bx-ask:disabled { opacity: .55; cursor: progress; }
.bx-result { margin-top: 8px; }
.bx-note { margin: 4px 0 0; }
.bx-legend { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 6px 0 4px; font-size: 12px; color: var(--muted); }
.bx-legend span::before { content: ""; display: inline-block; width: 10px; height: 10px; margin-right: 6px; border-radius: 2px; vertical-align: -1px; background: var(--accent); }
.bx-legend .k-newborn::before { background: #9a9a8c; }
.bx-legend .k-past::before { background: #5f7f99; }
.bx-acts { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 0 28px; }
.bx-act { padding: 8px 0 4px; border-top: 1px solid var(--line); min-width: 0; }
.bx-act h4,.bx-card h4 { margin: 0; font-size: 13px; font-weight: 600; overflow-wrap: anywhere; word-break: keep-all; }
.bx-act .g,.bx-ab .g { margin: 4px 0; gap: 10px; }
.bx-act .g > span:first-child,.bx-ab .g > span:first-child { width: 56px; font-size: 11px; }
.bx-act .g .v,.bx-ab .g .v { width: 52px; font-size: 11px; }
.bx-act .g.now .t i,.bx-ab .g.now .t i { background: var(--accent); }
.bx-act .g.nb .t i,.bx-ab .g.nb .t i { background: #9a9a8c; }
.bx-act .g.past .t i,.bx-ab .g.past .t i { background: #5f7f99; }
ul.bx-chips { list-style: none; margin: 4px 0 0; padding: 0; }
ul.bx-chips li { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 13px; }
ul.bx-chips li b { font-weight: 600; margin-right: 4px; }
.bx-chip { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 2px 10px; border: 1px solid var(--line); border-radius: 12px; background: #f1f0e8; color: var(--ink); font-size: 12px; line-height: 1.6; }
.bx-chip .bx-tag { color: var(--muted); font-weight: 600; }
.bx-chip.learned { background: #fbf0c9; border-color: #dfc15a; }
.bx-chip.rule-card { margin-left: 6px; }
.bx-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
.bx-card { padding: 14px; border: 1px solid var(--line); border-radius: 4px; background: var(--card); min-width: 0; }
.bx-card .muted-line { margin-top: 4px; }
.bx-cond { margin: 6px 0 0; font-size: 13px; }
.bx-ask-line { margin: 10px 0 0; font-size: 12px; color: var(--ink); }
.bx-pick { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.bx-pick button[aria-pressed="true"] { border-color: var(--accent); background: var(--chip); color: var(--accent); font-weight: 600; }
.bx-pick button:disabled { cursor: default; }
.bx-reveal { margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--line); }
.bx-verdict { margin: 0; font-size: 13px; font-weight: 600; }
.bx-verdict.ok { color: var(--good); }
.bx-verdict.no { color: var(--warn); }
.bx-ab-h { margin: 8px 0 0; font-size: 11px; color: var(--muted); }
@media (max-width: 720px) {
  .bx-inputs,.bx-selects,.bx-acts,.bx-cards { grid-template-columns: 1fr; }
  .bx-slider { grid-template-columns: 64px 1fr 44px; }
  .bx-pick button { flex: 1 1 100%; }
  .btn.bx-ask { width: 100%; }
}
/* v1.51 같은 출발, 다른 길 (/my/, static/nurture.js) — 주인만. 거리 게이지·길 그림(태어날 때 → 기준점 → 지금)·세 두뇌 막대·몸에 밴 반응 원화 */
#my-content > #nurture-box { grid-column: 1 / -1; }
.nu-gauge { margin-bottom: 8px; }
.nu-head { margin: 0; font-size: 18px; font-weight: 700; line-height: 1.5; word-break: keep-all; }
.nu-meter { height: 12px; margin: 10px 0 14px; border-radius: 999px; background: var(--line); overflow: hidden; }
.nu-meter i { display: block; height: 100%; border-radius: 999px; background: var(--accent); }
.nu-path { display: flex; align-items: stretch; gap: 0; margin: 4px 0 8px; }
.nu-pt { display: flex; flex-direction: column; align-items: center; gap: 4px; flex: 0 0 auto; max-width: 140px; text-align: center; font-size: 12px; }
.nu-pt b { font-weight: 600; word-break: keep-all; }
.nu-dot { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--ink); background: var(--card); }
.nu-pt.nb .nu-dot { background: #9a9a8c; border-color: #9a9a8c; }
.nu-pt.base .nu-dot { background: #5f7f99; border-color: #5f7f99; }
.nu-pt.now .nu-dot { background: var(--accent); border-color: var(--accent); }
.nu-seg { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 0 8px; border-top: 2px dashed var(--line); margin-top: 7px; padding-top: 6px; font-size: 12px; color: var(--muted); text-align: center; word-break: keep-all; }
.nu-seg b { color: var(--ink); font-size: 14px; font-weight: 700; }
.nu-period { margin: 4px 0 0; font-size: 13px; word-break: keep-all; }
.nu-note { margin-top: 4px; }
.nu-foot { margin-top: 6px; }
.nu-legend { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 6px 0 4px; font-size: 12px; color: var(--muted); }
.nu-legend span::before { content: ""; display: inline-block; width: 10px; height: 10px; margin-right: 6px; border-radius: 2px; vertical-align: -1px; background: var(--accent); }
.nu-legend .k-nb::before { background: #9a9a8c; }
.nu-legend .k-base::before { background: #5f7f99; }
.nu-scene-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr)); gap: 12px; }
.nu-scene-list.nu-more { margin-top: 12px; }
.nu-scene { padding: 12px 14px; border: 1px solid var(--line); border-radius: 4px; background: var(--card); min-width: 0; }
.nu-scene h4,.nu-react-row h4 { margin: 0; font-size: 13px; font-weight: 600; overflow-wrap: anywhere; word-break: keep-all; }
.nu-chip { display: inline-block; margin: 6px 0 4px; padding: 2px 10px; border-radius: 12px; background: var(--chip); color: var(--ink); font-size: 12px; line-height: 1.6; }
.nu-act { padding-top: 6px; border-top: 1px solid var(--line); margin-top: 6px; }
.nu-act-name { margin: 0; font-size: 12px; font-weight: 600; }
.nu-bar { display: grid; grid-template-columns: minmax(64px, 7.5em) 1fr 52px; align-items: center; gap: 8px; margin: 3px 0; font-size: 11px; }
.nu-bar-k { color: var(--muted); word-break: keep-all; }
.nu-bar .t { display: block; height: 8px; border-radius: 4px; background: var(--line); overflow: hidden; }
.nu-bar .t i { display: block; height: 100%; background: var(--accent); }
.nu-bar.nb .t i { background: #9a9a8c; }
.nu-bar.base .t i { background: #5f7f99; }
.nu-bar .v { text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; }
.nu-more-btn { margin-top: 12px; }
.nu-react { margin-top: 8px; }
.nu-react-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.nu-react-row { padding: 12px 14px; border: 1px solid var(--line); border-radius: 4px; background: var(--card); min-width: 0; }
.nu-react-row.changed { border-color: var(--accent); }
.nu-arts { display: flex; align-items: center; gap: 8px; margin-top: 8px; min-height: 72px; }
.nu-arrow { font-size: 18px; color: var(--muted); }
.nu-art { width: 72px; height: 72px; image-rendering: pixelated; }
.nu-react-text { margin: 6px 0 0; font-size: 13px; word-break: keep-all; }
.nu-small { margin-top: 2px; }
@media (max-width: 720px) {
  .nu-head { font-size: 16px; }
  .nu-path { flex-direction: column; align-items: flex-start; }
  .nu-pt { flex-direction: row; max-width: none; text-align: left; }
  .nu-seg { flex-direction: row; gap: 8px; margin: 2px 0 2px 6px; padding: 6px 0 6px 14px; border-top: 0; border-left: 2px dashed var(--line); text-align: left; }
  .nu-scene-list,.nu-react-list { grid-template-columns: 1fr; }
  .nu-more-btn { width: 100%; }
}

/* The explicit button opens the combined profile/home page. */
.pcard .pet-detail-link[hidden]{display:none}
#photos-body{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:12px}
#photos-body img{width:100%;image-rendering:pixelated;border-radius:8px}
#record-login{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
#record-login input,#record-login button{min-height:44px}
