/* 계정·내 기록(#s-me, 로그인 시트, 컨디션 한 줄) — 시안 A 토큰(/assets/site.css). accounts.enabled 일 때만 실린다 */
.me-link { display: flex; justify-content: space-between; align-items: center; min-height: 56px; margin-top: var(--s4); padding: 0 var(--s4); border: 2px solid var(--ink); border-radius: var(--r-m); text-decoration: none; font-weight: 800; color: var(--ink); }
.me-link:hover { background: var(--mist); }
.me-save { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; width: 100%; margin-top: var(--s3); padding: var(--s4); border: 0; border-radius: var(--r-m); background: var(--ink); color: var(--paper); text-align: left; cursor: pointer; font-family: var(--f-ko); }
.me-save b { font-size: 1.125rem; font-weight: 850; letter-spacing: -0.02em; }
.me-save b::after { content: " →"; color: var(--volt); }
.me-save small { font-size: .9375rem; color: var(--dim-2); font-weight: 600; }
.me-save[hidden] { display: none; }

/* 컨디션 한 줄(완료 화면) */
.cond { margin-top: var(--s5); padding-top: var(--s4); border-top: 1px solid var(--line); }
.cond .lab { display: block; margin-bottom: var(--s2); }
.cond-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--s2); }
.cond-row button { min-height: 56px; border: 2px solid var(--line); border-radius: var(--r-m); background: var(--paper); font-family: var(--f-num); font-weight: 800; font-size: 1.5rem; color: var(--ink); cursor: pointer; }
.cond-row button[aria-pressed="true"] { border-color: var(--ink); background: var(--volt); }
.cond-ends { display: flex; justify-content: space-between; margin-top: 6px; color: var(--ink-2); font-weight: 650; font-size: .875rem; }
.cond-ok { margin: var(--s2) 0 0; font-weight: 750; }

/* 내 기록 */
.me-who { font-weight: 700; color: var(--ink-2); overflow-wrap: anywhere; text-align: right; max-width: 50%; }
.me-toast { margin: 0 0 var(--s4); padding: var(--s3) var(--s4); border-radius: var(--r-m); background: var(--volt); font-weight: 750; }
.me-grid { display: grid; gap: var(--s4); }
.me-card { border: 1px solid var(--line); border-radius: var(--r-m); padding: var(--s5); background: var(--paper); min-width: 0; }
.me-card h2 { font-size: 1.25rem; font-weight: 850; letter-spacing: -0.02em; margin: 0 0 var(--s4); }
.me-hero { border: 2px solid var(--ink); }
.me-hero .streak { display: flex; align-items: flex-end; gap: 6px; flex-wrap: wrap; margin-top: var(--s2); }
.me-hero .streak .num { font-size: 6rem; font-stretch: 72%; }
.me-hero .streak .u { font-weight: 850; font-size: 1.25rem; padding-bottom: 6px; }
.me-new { align-self: center; margin-left: var(--s2); padding: 4px 10px; border-radius: var(--r-pill); background: var(--volt); font-weight: 850; font-size: .875rem; letter-spacing: .02em; }
.me-new[hidden] { display: none; }
.me-kv { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s3); margin-top: var(--s4); padding-top: var(--s4); border-top: 1px solid var(--line); }
.me-kv small { display: block; font-size: .875rem; color: var(--ink-2); font-weight: 650; }
.me-kv .num { display: block; font-size: 1.75rem; font-weight: 800; font-stretch: 88%; line-height: 1.1; }
.me-kv .u2 { font-size: .875rem; margin-left: 2px; font-family: var(--f-ko); font-weight: 700; }
.me-device { margin-top: var(--s3); }
.me-cal-head { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); margin-bottom: var(--s3); }
.me-cal-head h2 { margin: 0; }
.me-nav { width: 48px; height: 48px; border: 2px solid var(--line); border-radius: 50%; background: var(--paper); font-size: 1.5rem; font-weight: 800; cursor: pointer; color: var(--ink); }
.me-nav:disabled { opacity: .35; cursor: default; }
.me-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; }
.me-cal-grid small { font-weight: 700; color: var(--ink-2); font-size: .8125rem; padding-bottom: 4px; }
.me-cal-grid .c { aspect-ratio: 1; display: grid; place-items: center; border-radius: 6px; font-family: var(--f-num); font-weight: 700; font-size: .9375rem; background: var(--mist); color: var(--ink-2); }
.me-cal-grid .c.pad { background: none; }
.me-cal-grid .c.on { background: var(--volt); color: var(--ink); font-weight: 850; }
.me-cal-grid .c.today { box-shadow: inset 0 0 0 2px var(--ink); color: var(--ink); }
.me-cal-grid .c.future { background: none; color: var(--dim-2); }
.me-week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; height: 120px; align-items: end; }
.me-week .d { display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; gap: 6px; }
.me-week .bar { width: 100%; max-width: 36px; border-radius: 3px; background: var(--line); }
.me-week .d.on .bar { background: var(--ink); }
.me-week .d.on.is-today .bar { background: var(--volt); box-shadow: inset 0 0 0 2px var(--ink); }
.me-week small { font-weight: 700; color: var(--ink-2); font-size: .8125rem; }
.me-routines .rr { display: grid; grid-template-columns: 7.5em 1fr 3ch; align-items: center; gap: var(--s3); padding: 10px 0; border-top: 1px solid var(--line); font-weight: 700; }
.me-routines .rr:first-child { border-top: 0; }
.me-routines i { height: 10px; border-radius: 2px; background: var(--mist); overflow: hidden; }
.me-routines i b { display: block; height: 100%; background: var(--ink); }
.me-routines .num { text-align: right; font-weight: 800; font-size: 1.25rem; }
.me-badges { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s2); }
.me-badges li { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: var(--s3) 4px; border-radius: var(--r-m); background: var(--mist); }
.me-badges .ic { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%; background: var(--paper); border: 2px dashed var(--dim-2); font-weight: 850; font-size: 1.25rem; color: var(--ink-2); }
.me-badges li.earned { background: var(--ink); color: var(--paper); }
.me-badges li.earned .ic { background: var(--volt); border: 0; color: var(--ink); }
.me-badges b { font-size: .875rem; font-weight: 800; line-height: 1.25; }
.me-badges small { font-size: .8125rem; font-weight: 700; font-family: var(--f-num); color: var(--ink-2); }
.me-badges li.earned small { color: var(--volt); font-family: var(--f-ko); }
.me-tabs { display: flex; gap: 4px; }
.me-tabs button { min-height: 40px; padding: 0 12px; border: 2px solid var(--line); border-radius: var(--r-pill); background: var(--paper); font-weight: 750; cursor: pointer; color: var(--ink); }
.me-tabs button[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.me-cond-chart svg { width: 100%; height: auto; display: block; }
.me-cond-chart rect.v { fill: var(--ink); }
.me-cond-chart rect.z { fill: var(--line); }
.me-cond-chart rect.t { fill: var(--volt); stroke: var(--ink); stroke-width: 1.5; }
.me-cond-chart text { font-family: var(--f-num); font-weight: 800; font-size: 11px; fill: var(--ink-2); }
.me-acc .toggles { margin-top: var(--s4); }
.me-acc .toggle { width: 100%; background: none; border-left: 0; border-right: 0; border-bottom: 0; text-align: left; font: inherit; font-weight: 700; color: var(--ink); cursor: pointer; min-height: 56px; }
.me-acc .toggle .sub { display: block; font-size: .875rem; font-weight: 600; color: var(--ink-2); margin-top: 2px; }
.me-name label { display: block; font-weight: 700; margin-bottom: 6px; }
.me-name div { display: flex; gap: var(--s2); }
.me-name input, .sheet .fld input { flex: 1; min-width: 0; min-height: 52px; padding: 0 14px; border: 2px solid var(--line); border-radius: var(--r-m); font: inherit; font-size: 1.0625rem; color: var(--ink); background: var(--paper); }
.me-name input:focus, .sheet .fld input:focus { outline: none; border-color: var(--ink); }
.me-name .btn-ghost { min-height: 52px; padding: 0 18px; border-radius: var(--r-m); font-weight: 800; cursor: pointer; }
.me-acc-btns { display: flex; align-items: center; gap: var(--s4); margin-top: var(--s4); flex-wrap: wrap; }
.me-acc-btns .rbtn { width: auto; flex: 1; min-width: 140px; }
.me-del { color: var(--ink-2); font-weight: 700; min-height: 48px; }
.me-confirm { margin-top: var(--s4); padding: var(--s4); border-radius: var(--r-m); background: var(--mist); }
.me-confirm p { margin: 0; font-weight: 700; }
@media (min-width: 900px) {
  .me-grid { grid-template-columns: 1fr 1fr; gap: var(--s5); }
  .me-hero .streak .num { font-size: 8rem; }
  .me-badges-card, .me-acc { grid-column: 1 / -1; }
  .me-badges { grid-template-columns: repeat(9, minmax(0, 1fr)); }
}

/* 로그인 시트 */
body.sheet-open { overflow: hidden; }
.sheet { position: fixed; inset: 0; z-index: 50; background: rgba(21, 24, 28, .55); display: flex; align-items: flex-end; justify-content: center; }
.sheet[hidden] { display: none; }
.sheet-card { position: relative; width: 100%; max-width: 520px; max-height: 92vh; overflow: auto; background: var(--paper); border-radius: 18px 18px 0 0; padding: var(--s6) var(--s5) calc(var(--s5) + env(safe-area-inset-bottom)); }
.sheet-card h2 { font-size: 1.75rem; font-weight: 900; letter-spacing: -0.035em; margin: 4px 0 var(--s4); }
.sheet-x { position: absolute; top: 10px; right: 10px; width: 48px; height: 48px; border: 0; background: none; font-size: 2rem; line-height: 1; cursor: pointer; color: var(--ink); }
.sheet .fld { display: block; margin-bottom: var(--s3); }
.sheet .fld span { display: block; font-weight: 700; margin-bottom: 6px; }
.sheet .fld input { width: 100%; }
.sheet .chk { display: flex; gap: var(--s3); align-items: flex-start; padding: var(--s3) 0; font-weight: 650; line-height: 1.45; cursor: pointer; }
.sheet .chk input { width: 24px; height: 24px; flex: none; margin: 1px 0 0; accent-color: var(--ink); }
.sheet .chk a { font-weight: 750; }
.sheet .chk.opt { margin: var(--s2) 0; padding: var(--s3) var(--s4); border: 2px solid var(--ink); border-radius: var(--r-m); background: #F6FCDD; }
.sheet .chk.opt b { display: block; font-weight: 800; }
.sheet .chk.opt small { display: block; margin-top: 2px; font-size: .9375rem; font-weight: 600; color: var(--ink-2); }
.sheet .err { margin: var(--s2) 0 0; color: #B3261E; font-weight: 750; }
.sheet .rbtn { margin-top: var(--s4); }
.sheet .sent { margin: var(--s4) 0 0; padding: var(--s4); border-radius: var(--r-m); background: var(--volt); font-weight: 750; font-size: 1.0625rem; overflow-wrap: anywhere; }
@media (min-width: 600px) { .sheet { align-items: center; } .sheet-card { border-radius: 18px; } }
