/* redime 화면 스타일 */
:root { --side-w: 224px; --radius: 18px; --top-offset: 76px; }
html { scroll-padding-top: var(--top-offset); }
body { word-break: keep-all; }
a { color: var(--green); }
:focus-visible { outline: 3px solid var(--green); }
.top { min-height: 64px; background: rgba(255,255,255,.97); border-color: var(--rule2); }
.brand, .nav .nav-brand { letter-spacing: -.06em; }
.mark { width: 32px; height: 32px; flex: none; display: inline-grid; place-items: center; position: relative; border-radius: 9px; background: var(--green); }
.mark::before { content: ""; width: 14px; height: 16px; border: 2px solid #fff; border-radius: 4px 5px 5px 4px; }
.mark::after { content: ""; position: absolute; left: 12px; top: 11px; width: 9px; height: 3px; border-block: 1px solid #fff; }
.month { gap: 0; }
.month b { min-width: 6.3em; font-size: 14px; font-weight: 700; }
.icon { border-radius: 10px; }
.icon.on { color: var(--green); background: var(--green2); }
.nav { background: #fff; border-color: var(--rule2); }
.nav button { font-weight: 600; }
.nav button.on::before { left: 31%; right: 31%; height: 2px; }
.nav button.on { color: var(--green); font-weight: 800; }
main { padding-top: 18px; }
main:focus { outline: none; }
h1.page { font-size: clamp(25px, 3.6vw, 38px); line-height: 1.2; margin: 8px 0 18px; letter-spacing: -.055em; }
.sec {
  min-width: 0;
  margin: 14px 0;
  padding: clamp(13px, 2.4vw, 25px);
  border: 1px solid var(--rule2);
  border-radius: var(--radius);
  background: var(--white);
}
.sec-h { border: 0; padding-bottom: 0; margin-bottom: 10px; }
.sec-h h2 { font-size: clamp(17px, 2.1vw, 21px); letter-spacing: -.04em; }
.sec .hint { line-height: 1.65; }
.empty { padding: 12px; border-radius: 10px; background: var(--paper); }
.btns { flex-wrap: wrap; }
.ghost, .primary, .danger { min-height: 44px; border-radius: 11px; }
.primary:hover { background: #065d3e; }
.ghost:hover, .chip:hover { border-color: var(--green); background: #f5fcf8; }
.primary.sm { min-height: 44px; }
a.btn-link { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; font-weight: 700; }
a.btn-link.primary { color: #fff; }
a.btn-link.ghost { color: var(--ink); }
.field, .sel, .money-in { border-color: var(--rule); border-radius: 10px; min-height: 44px; }
.check { border-radius: 6px; }
.check:focus-within { outline: 2px solid var(--green); outline-offset: -2px; }
.chip.on, .chip.on:hover { color: var(--green); background: var(--green2); border-color: var(--green); font-weight: 700; }
.stats { border: 1px solid var(--rule2); border-radius: var(--radius); background: #fff; overflow: hidden; }
.stats > div { padding: 13px; min-width: 0; }
.stats.four > div:nth-child(3) { padding-left: 13px; }
.stats b { display: block; overflow-wrap: anywhere; font-size: clamp(17px, 2.5vw, 29px); line-height: 1.3; font-weight: 800; letter-spacing: -.055em; }
.stats span { font-weight: 600; margin-bottom: 4px; }
.stats small { letter-spacing: normal; font-size: 12px; }
.today-overview {
  border-radius: 22px;
  padding: clamp(14px, 3vw, 29px);
  color: var(--ink);
  background: #e6f6ee;
  border: 1px solid #d9ece1;
}
.daybar { margin: 0 0 14px; justify-content: space-between; align-items: center; gap: 8px; }
.daybar h1 { margin: 0; font-size: clamp(22px, 4.6vw, 42px); line-height: 1.17; letter-spacing: -.065em; }
.daybar p { margin: 4px 0 0; color: var(--ink2); font-size: 14px; font-weight: 600; }
.day-controls { display: flex; align-items: center; }
.day-controls .ghost { white-space: nowrap; }
.today-stats { border-color: #d9ece1; background: #fff; }
.today-stats > div + div { border-left: 1px solid var(--rule2); }
.today-stats b { color: var(--ink); }
.today-stats > div:first-child b { color: var(--green); }
.today-stats > div:last-child { padding: 0; }
.stat-action { display: block; width: 100%; height: 100%; min-height: 44px; padding: 13px; border: 0; background: transparent; text-align: left; }
.stat-action:hover { background: #f0faf5; }
.stat-action:focus-visible { outline-offset: -3px; }
.stat-action small[aria-hidden] { color: var(--green); font-weight: 800; }
.quick-actions { display: flex; gap: 7px; margin: 12px 0 0; }
.quick-actions button { display: inline-flex; justify-content: center; align-items: center; gap: 5px; white-space: nowrap; font-size: 14px; }
.quick-actions .ghost { font-weight: 700; }
.quick-actions span { font-size: 16px; line-height: 1; }
.today-grid { display: grid; gap: 12px; margin-top: 12px; }
.today-grid .sec { margin: 0; }
.today-side { display: grid; gap: 12px; min-width: 0; }
.today-time { --hour-col: 52px; }
.today-time .ghost { min-height: 44px; font-size: 13px; font-weight: 600; }
.slot-labels { display: grid; grid-template-columns: var(--hour-col) repeat(3, 1fr); gap: 4px; text-align: center; color: var(--ink2); font-size: 12px; margin-bottom: 5px; }
.slots { max-height: clamp(296px, 58vh, 520px); overflow: auto; scrollbar-gutter: stable; padding: 0 4px; }
.hrow { grid-template-columns: var(--hour-col) minmax(0, 1fr); gap: 4px; border: 0; }
.hrow.now { background: #f0faf5; border-radius: 10px; }
.hlab { border-radius: 9px; text-align: center; }
.hlab[aria-pressed="true"] { background: var(--green2); color: var(--green); font-weight: 700; }
.segs { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; }
.seg { border: 1px solid var(--rule2); border-radius: 9px; background: var(--paper); overflow-wrap: anywhere; text-align: center; }
.seg:empty::before { content: "–"; color: var(--ink3); }
.seg.cont { color: transparent !important; }
.seg.sel { outline-color: var(--green); }
.slots :focus-visible { outline-offset: -3px; }
.seg.sel:focus-visible { outline-color: var(--ink); box-shadow: inset 0 0 0 4px #fff; }
#picker { border: 1px solid var(--rule); border-top: 0; border-radius: 17px 17px 0 0; box-shadow: 0 -9px 32px rgba(23,41,34,.14); }
.pk-h { border-radius: 16px 16px 0 0; background: #f0faf5; flex-wrap: wrap; }
.pk-h .ghost { min-height: 44px; }
.pk-memo .field { min-height: 44px; }
.tx { grid-template-columns: minmax(0, auto) minmax(70px, 1fr) auto; gap: 7px; }
.tx-c { min-width: 0; overflow: hidden; text-overflow: ellipsis; background: var(--paper); border-color: var(--rule2); }
.tx:hover { background: var(--paper); }
.tx.excl { opacity: 1; }
.tx.excl .tx-a, .tx.excl .tx-t { color: var(--ink2); }
.tscroll, .gridwrap { border-radius: 11px; }
.grid-hint { margin: 0; padding: 8px 10px; font-size: 13px; color: var(--ink2); }
.tgrid td:focus-visible { outline-offset: -2px; outline-color: #075d3e; box-shadow: inset 0 0 0 4px #fff; }
.tbl th:first-child, .tbl td:first-child { background: #fff; }
.tbl tfoot td, .lg.total { border-top: 2px solid var(--rule); }
.rgrid .rc { width: 44px; height: 44px; }
.seg2, .kind { border: 0; background: var(--paper); gap: 4px; padding: 4px; border-radius: 12px; }
.seg2 button, .kind button { background: transparent; border-radius: 9px; min-height: 44px; color: var(--ink2); }
.seg2 button[aria-pressed="true"], .kind button[aria-pressed="true"] { background: #fff; color: var(--green); font-weight: 800; box-shadow: 0 1px 3px #17292220; }
#sheet:not([open]) { display: none; }
#sheet { width: 100%; max-width: none; height: 100%; max-height: none; padding: 0; margin: 0; border: 0; background: transparent; color: var(--ink); }
#sheet::backdrop { background: rgba(23,41,34,.42); }
.sheet-body { border-radius: 24px 24px 0 0; padding: 20px 16px calc(20px + env(safe-area-inset-bottom)); }
.sheet-h h2 { font-size: 23px; letter-spacing: -.045em; }
.sheet-actions { position: sticky; bottom: 0; background: var(--sheet); padding: 7px 0; }
#toast { z-index: 60; border-radius: 12px; width: max-content; }
@media (min-width: 720px) {
  .sheet-body { border-radius: 22px; padding: 21px 24px; }
}
@media (min-width: 1024px) {
  .nav { padding: 18px 12px; gap: 5px; }
  .nav .nav-brand { padding: 4px 10px 21px; }
  .nav button { border-radius: 11px; }
  .nav button[data-go="settings"] { margin-top: auto; }
  main { margin-left: var(--side-w); padding: 24px clamp(24px, 3.2vw, 46px) 48px; }
  .today-grid { grid-template-columns: minmax(0, 1.24fr) minmax(300px, 1fr); gap: 16px; margin-top: 16px; }
  .today-side { gap: 16px; }
  #picker { width: min(760px, calc(100% - var(--side-w) - 32px)); left: calc(var(--side-w) + 16px); right: auto; }
}
@media (max-width: 420px) {
  .top { padding-left: 12px; padding-right: 6px; gap: 4px; }
  main { padding-inline: 12px; }
  .day-controls .icon { width: 44px; padding: 0; }
  .day-controls .ghost { padding: 0 8px; font-size: 13px; }
  .stats > div, .stats.four > div:nth-child(3), .stat-action { padding-inline: 8px; }
  .stats span { font-size: 12px; }
  .stats small { font-size: 11px; margin-left: 0; }
  .quick-actions button { flex: 1; padding-inline: 5px; font-size: 13px; }
  .today-time { --hour-col: 44px; }
  .tx { grid-template-columns: minmax(0, 1fr) auto; }
  .tx-c { grid-column: 1; justify-self: start; max-width: 100%; }
  .tx-a { grid-column: 2; grid-row: 1 / span 2; }
}
