/*
 * TODAY · MY 휴먼결 월간 지수 · 멤버십 혜택 — easyclass (라벤더 바탕 · 흰 카드 · 오렌지는 행동/진행에만 · 파스텔 칩)
 */
.td { display: flex; flex-direction: column; gap: 20px; }
.td-hero { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 28px; align-items: center; padding: 28px; border-radius: var(--r, 22px); background: linear-gradient(135deg, #FFF8F1 0%, #F0E7FB 100%); }
.td-date { display: inline-block; padding: 5px 12px; border-radius: 9999px; background: #fff; font-size: 12px; font-weight: 800; letter-spacing: .04em; color: #C2410C; }
.td-hello h1 { margin: 12px 0 8px; font-size: clamp(24px, 3vw, 32px); }
.td-hello p { color: var(--sub, #5B5F6B); font-size: 15px; line-height: 1.7; }
.td-who { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.td-who a { padding: 7px 16px; border-radius: 9999px; background: rgba(255, 255, 255, .7); font-size: 13.5px; font-weight: 700; color: var(--sub, #5B5F6B); }
.td-who a.on { background: var(--ink, #1C1C28); color: #fff; }
.td-rings { display: flex; gap: 14px; align-items: center; }
.td-ring { position: relative; width: 104px; text-align: center; }
.td-ring svg { width: 72px; height: 72px; transform: rotate(-90deg); display: block; margin: 0 auto; }
.td-ring svg circle[data-arc] { transition: stroke-dashoffset .5s ease; }
.td-ring b { position: absolute; top: 24px; left: 0; right: 0; font-size: 15px; font-weight: 800; }
.td-ring span { display: block; margin-top: 6px; font-size: 13px; font-weight: 700; }
.td-ring small { display: block; font-size: 11.5px; font-weight: 600; color: var(--mut, #9AA0AC); }
.td-streak { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 104px; height: 104px; border-radius: 26px; background: #fff; box-shadow: 0 6px 18px rgba(28, 28, 40, .06); }
.td-streak b { font-size: 30px; font-weight: 800; color: #F97316; line-height: 1; }
.td-streak b::before { content: '🔥 '; font-size: 18px; }
.td-streak span { margin-top: 4px; font-size: 12px; font-weight: 700; text-align: center; }
.td-streak small { display: block; font-weight: 600; color: var(--mut, #9AA0AC); }
.td-focus { display: flex; flex-wrap: wrap; gap: 18px; padding: 16px 20px; border-radius: 18px; background: #fff; box-shadow: var(--sh, 0 8px 24px rgba(28, 28, 40, .06)); }
.td-focus .as-label { display: inline-block; margin: 0 8px 0 0; }
.td-chip { display: inline-flex; align-items: center; gap: 6px; margin: 3px 6px 3px 0; padding: 6px 12px; border-radius: 9999px; background: var(--bg-page, #EDEDF5); font-size: 13px; font-weight: 700; }
.td-chip.grow { background: var(--p-yellow, #FCF0D4); }
.td-chip.up { background: var(--p-mint, #D8F3E3); }
.td-chip small { font-weight: 600; color: var(--mut, #9AA0AC); }
.td-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: start; }
.td-cols.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.td-col header { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.td-col header h2 { font-size: 18px; flex: 1; }
.td-badge { display: inline-block; padding: 4px 10px; border-radius: 9999px; font-size: 12px; font-weight: 800; }
.td-badge.d { background: var(--p-yellow, #FCF0D4); color: #8A5A00; }
.td-badge.w { background: var(--p-blue, #D9E8F5); color: #1F5C99; }
.td-badge.m { background: var(--p-mint, #D8F3E3); color: #13804A; }
.td-count { font-size: 13px; font-weight: 800; color: var(--sub, #5B5F6B); }
.td-list { margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.td-task { list-style: none; display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 10px; padding: 12px 14px; border-radius: 16px; background: var(--bg-page, #F6F6FA); transition: background .2s; }
.td-task.is-checked { background: #ECFAF2; }
.td-task.is-checked .td-tx > b { color: var(--mut, #9AA0AC); text-decoration: line-through; text-decoration-color: rgba(47, 194, 114, .6); }
.td-task.k-script { background: #FFF8F1; }
.td-task.k-focus { background: var(--bg-panel, #F0E7FB); }
.td-task.k-focus.is-checked, .td-task.k-script.is-checked { background: #ECFAF2; }
.td-check { width: 30px; height: 30px; border: 2px solid #D9D2F0; border-radius: 10px; background: #fff; cursor: pointer; display: grid; place-items: center; padding: 0; transition: transform .15s, background .15s, border-color .15s; }
.td-check:hover { border-color: #F97316; }
.td-check:active { transform: scale(.9); }
.td-check i { width: 12px; height: 7px; border-left: 3px solid transparent; border-bottom: 3px solid transparent; transform: rotate(-45deg) translate(1px, -1px); }
.is-checked > .td-check { background: #2FC272; border-color: #2FC272; }
.is-checked > .td-check i { border-color: #fff; }
.td-check.is-auto { cursor: default; border-style: dashed; }
.td-check.busy { opacity: .5; }
.td-tx > b { display: block; font-size: 14.5px; line-height: 1.55; font-weight: 700; }
.td-tx > b a { color: inherit; }
.td-tx > b a:hover { color: #C2410C; }
.td-tx small { display: block; margin-top: 2px; font-size: 12px; color: var(--mut, #9AA0AC); }
.td-tx details { margin-top: 6px; }
.td-tx summary { cursor: pointer; font-size: 12.5px; font-weight: 700; color: #6D4AE0; }
.td-tx details p { margin-top: 6px; font-size: 13.5px; line-height: 1.7; color: var(--sub, #5B5F6B); }
.td-tx .why { font-size: 12.5px; color: var(--mut, #9AA0AC); }
.td-tx .why em { font-style: normal; font-weight: 700; color: #6D4AE0; margin-right: 6px; }
.td-cheer { margin-top: 12px; padding: 10px 14px; border-radius: 12px; background: #ECFAF2; color: #13804A; font-size: 13.5px; font-weight: 700; }
.td-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; margin-bottom: 14px; }
.td-head .as-label { margin: 0; width: 100%; }
.td-head h2 { flex: 1; }
.td-road li.is-now { background: #FFF8F1; box-shadow: inset 0 0 0 2px #F97316; }
.td-road li.is-now .wk { background: #F97316; }
.td-road li.is-past { opacity: .62; }
.td-note { width: 100%; min-height: 110px; padding: 14px 16px; border: 0; border-radius: 16px; background: var(--bg-page, #F6F6FA); font: inherit; font-size: 15px; line-height: 1.7; resize: vertical; }
.td-note:focus { outline: 2px solid #F9C79F; background: #fff; }
.td-notes { margin: 14px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.td-notes li { list-style: none; padding: 10px 14px; border-radius: 12px; background: var(--bg-page, #F6F6FA); font-size: 14px; line-height: 1.6; }
.td-notes small { display: block; font-size: 11.5px; font-weight: 700; color: var(--mut, #9AA0AC); }
.td-heat { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; max-width: 360px; }
.td-heat .dn { font-size: 11px; font-weight: 700; color: var(--mut, #9AA0AC); text-align: center; }
.td-heat i { aspect-ratio: 1; border-radius: 7px; background: #EDEDF5; }
.td-heat i.lv1 { background: #FCD9B4; } .td-heat i.lv2 { background: #F9A86A; } .td-heat i.lv3 { background: #F97316; }
.td-heat i.fu { background: transparent; box-shadow: inset 0 0 0 1px #EDEDF5; }
.td-heat i.now { box-shadow: 0 0 0 2px var(--ink, #1C1C28); }
.td-tests { display: flex; flex-wrap: wrap; gap: 8px; }
.td-locked { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
.td-demo { display: flex; flex-direction: column; gap: 10px; }
.td-demo > div { padding: 14px 16px; border-radius: 18px; background: #fff; box-shadow: 0 6px 18px rgba(28, 28, 40, .06); }
.td-demo p { display: flex; align-items: center; gap: 10px; margin-top: 8px; font-size: 13.5px; font-weight: 600; }
.td-demo p i { width: 20px; height: 20px; flex: none; border: 2px solid #D9D2F0; border-radius: 7px; }
.td-demo p.is-checked i { background: #2FC272; border-color: #2FC272; }
.td-demo p.is-checked { color: var(--mut, #9AA0AC); text-decoration: line-through; }
/* MY 홈 TODAY 요약 */
.td-mini-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.td-mini-bar span { padding: 6px 12px; border-radius: 9999px; background: var(--bg-page, #F6F6FA); font-size: 13px; }
.td-mini-bar b { color: #C2410C; }
.td-mini-list { margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.td-mini-list li { list-style: none; display: flex; gap: 10px; align-items: center; font-size: 14px; }
.td-mini-list i { width: 18px; height: 18px; flex: none; border: 2px solid #D9D2F0; border-radius: 6px; }
.td-mini-list .is-checked { color: var(--mut, #9AA0AC); text-decoration: line-through; }
.td-mini-list .is-checked i { background: #2FC272; border-color: #2FC272; }
/* MY 휴먼결 월간 지수 */
.tr-month { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.tr-month > div { display: flex; flex-direction: column; gap: 6px; padding: 16px; border-radius: 18px; background: var(--bg-page, #F6F6FA); }
.tr-month > div.is-ok { background: #ECFAF2; }
.tr-month .as-btn { align-self: flex-start; margin-top: 4px; }
.tr-month p { font-size: 13px; color: var(--sub, #5B5F6B); }
.tr-st { align-self: flex-start; padding: 3px 10px; border-radius: 9999px; background: #fff; font-size: 11.5px; font-weight: 800; color: #C2410C; }
.is-ok .tr-st { color: #13804A; }
.tr-tease { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: center; }
.tr-row { padding: 18px 0; }
.tr-row + .tr-row { border-top: 2px solid var(--bg-page, #EDEDF5); }
.tr-row header { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.tr-row header .grow { flex: 1; }
.tr-row header b { font-size: 16px; }
.tr-row header small { display: block; font-size: 12.5px; color: var(--mut, #9AA0AC); }
.tr-now { text-align: right; }
.tr-now b { font-size: 28px; font-weight: 800; }
.tr-now span { margin-left: 6px; font-size: 13px; font-weight: 800; }
.tr-now .up { color: #13804A; } .tr-now .down { color: #C2410C; }
.as-trend-svg { width: 100%; height: auto; display: block; }
.tr-legend { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 10px; }
.tr-legend button { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border: 0; border-radius: 9999px; background: var(--bg-page, #F6F6FA); font: inherit; font-size: 12.5px; font-weight: 600; color: var(--mut, #9AA0AC); cursor: pointer; }
.tr-legend button.on { color: var(--ink, #1C1C28); }
.tr-legend button i { width: 10px; height: 10px; border-radius: 50%; opacity: .35; }
.tr-legend button.on i { opacity: 1; }
.tr-insight { margin: 0 0 8px; padding-left: 18px; font-size: 14px; line-height: 1.8; color: var(--sub, #5B5F6B); }
.tr-table summary { cursor: pointer; font-size: 13px; font-weight: 700; color: #6D4AE0; }
/* 멤버십 혜택 */
.mb-benefits { display: flex; flex-direction: column; gap: 18px; padding: 28px; border-radius: var(--r, 22px); background: #fff; box-shadow: var(--sh, 0 8px 24px rgba(28, 28, 40, .06)); }
.mb-benefits.is-compact { padding: 22px; }
.mb-head h2 { margin: 0 0 6px; font-size: clamp(20px, 2.4vw, 26px); }
.mb-head p { color: var(--sub, #5B5F6B); line-height: 1.7; }
.mb-loop { margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; counter-reset: l; }
.mb-loop li { list-style: none; position: relative; display: flex; flex-direction: column; gap: 6px; padding: 18px 16px; border-radius: 18px; background: #F6F6FA; }
.mb-loop li:not(:last-child)::after { content: '→'; position: absolute; right: -11px; top: 50%; transform: translateY(-50%); width: 22px; height: 22px; border-radius: 50%; background: #fff; display: grid; place-items: center; font-size: 12px; color: #F97316; box-shadow: 0 2px 8px rgba(28, 28, 40, .08); z-index: 1; }
.mb-loop i { font-style: normal; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 10px; background: #F97316; color: #fff; font-size: 13px; font-weight: 800; }
.mb-loop b { font-size: 15px; }
.mb-loop span { font-size: 13px; line-height: 1.65; color: var(--sub, #5B5F6B); }
.mb-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.mb-card { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 4px 12px; padding: 16px; border-radius: 18px; background: #F6F6FA; }
.mb-ic { grid-row: span 2; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-size: 18px; }
.mb-card b { font-size: 14.5px; }
.mb-card p { font-size: 13px; line-height: 1.65; color: var(--sub, #5B5F6B); }
@media (max-width: 1080px) {
  .td-cols { grid-template-columns: minmax(0, 1fr); }
  .td-hero, .td-locked { grid-template-columns: minmax(0, 1fr); }
  .mb-loop { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mb-loop li::after { display: none; }
}
@media (max-width: 640px) {
  .td-hero { padding: 20px; }
  .td-rings { flex-wrap: wrap; justify-content: center; gap: 8px; }
  .td-ring, .td-streak { width: 84px; }
  .td-streak { height: 92px; }
  .td-cols.two, .mb-grid, .mb-loop, .tr-tease { grid-template-columns: minmax(0, 1fr); }
  .tr-row header { flex-wrap: wrap; }
}
