/* ===========================================================
   아리 — 하루 마감 브리핑 · 클린 화이트 글래스 (다른 페이지와 동일 테마)
   dash.css(토큰·테마) 뒤에 로드.
   =========================================================== */

body.wrap-page {
  /* 다른 페이지와 동일한 크림 글래스 — 저녁 느낌은 아주 옅은 웜/바이올렛 글로우로만 */
  background:
    radial-gradient(120% 90% at 82% -10%, color-mix(in oklab, var(--violet) 9%, transparent), transparent 55%),
    radial-gradient(110% 80% at 8% 0%, color-mix(in oklab, var(--coral) 7%, transparent), transparent 50%),
    linear-gradient(178deg, var(--bg-top) 0%, var(--bg-mid) 20%, var(--bg-bot) 100%);
  background-attachment: fixed;
}
[data-theme="dark"] body.wrap-page {
  background:
    radial-gradient(120% 90% at 80% -10%, rgba(139, 111, 212, 0.13), transparent 55%),
    radial-gradient(110% 80% at 10% 0%, rgba(79, 114, 224, 0.1), transparent 50%),
    linear-gradient(178deg, #1d1b22 0%, #1a1816 45%, #161413 100%);
  background-attachment: fixed;
}

.wrap {
  max-width: 1060px;
  margin: 0 auto;
  padding: 22px 26px 48px;
}

/* ---------- 상단 ---------- */
.w-top { display: flex; align-items: center; gap: 14px; margin-bottom: 34px; }
.w-back {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; color: var(--ink-2);
  text-decoration: none;
  background: var(--glass); border: 1px solid var(--glass-brd);
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  padding: 9px 16px 9px 13px; border-radius: 999px;
  box-shadow: var(--shadow-sm);
  transition: color 0.14s, transform 0.12s;
}
.w-back .ic { width: 15px; height: 15px; }
.w-back:hover { color: var(--ink); transform: translateX(-2px); }
.w-now { margin-left: auto; font-size: 13px; color: var(--muted); font-weight: 500; }

/* ---------- 인사 ---------- */
.w-hero { margin-bottom: 28px; }
.w-badge {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.02em;
  color: #fff; background: var(--violet);
  padding: 5px 13px; border-radius: 999px;
  box-shadow: 0 5px 16px -6px var(--violet);
  margin-bottom: 16px;
}
.w-badge .ic { width: 13px; height: 13px; }
.w-hero h1 {
  font-family: var(--font-disp);
  font-size: clamp(32px, 4.2vw, 50px);
  font-weight: 700; letter-spacing: -0.03em; line-height: 1.05;
  margin: 0 0 14px;
}
.w-hero h1 em { font-style: normal; color: var(--muted); }
.w-lede {
  font-size: clamp(16px, 1.6vw, 19px);
  line-height: 1.6; color: var(--ink-2);
  max-width: 52ch; margin: 0;
}
.w-lede b { color: var(--ink); font-weight: 700; border-bottom: 2px solid color-mix(in oklab, var(--violet) 55%, transparent); padding-bottom: 1px; }

/* ---------- 숫자 ---------- */
.w-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
  margin-bottom: 18px;
}
.ws {
  background: var(--glass); border: 1px solid var(--glass-brd);
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm), var(--glass-hi);
  padding: 16px 18px;
}
.ws-n { font-family: var(--font-disp); font-size: 30px; font-weight: 700; letter-spacing: -0.02em; }
.ws-n .u { font-size: 13px; color: var(--muted); font-weight: 600; margin-left: 3px; }
.ws-l { font-size: 12px; color: var(--muted); margin-top: 3px; }
.ws-l em { font-style: normal; color: var(--green); font-weight: 600; }

/* ---------- 2단 ---------- */
.w-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.w-col { display: flex; flex-direction: column; gap: 16px; min-width: 0; }

.w-card {
  background: var(--glass); border: 1px solid var(--glass-brd);
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  border-radius: var(--radius);
  box-shadow: var(--shadow), var(--glass-hi);
  padding: 20px;
}
.w-ch { display: flex; align-items: center; gap: 9px; margin-bottom: 15px; }
.w-ch .ic { width: 16px; height: 16px; color: var(--muted); flex-shrink: 0; }
.w-ch h3 { font-size: 15px; font-weight: 700; letter-spacing: -0.02em; margin: 0; }
.w-hint {
  margin-left: auto; font-size: 11.5px; color: var(--muted);
  display: inline-flex; align-items: center; gap: 5px; text-align: right;
}
.w-hint .ic { width: 13px; height: 13px; color: var(--blue); }

/* ---------- 오늘 해낸 일 ---------- */
.hl-list { display: flex; flex-direction: column; gap: 8px; }
.hl {
  display: flex; gap: 11px; align-items: flex-start;
  padding: 11px 12px; border-radius: var(--radius-sm);
  border: 1px solid var(--glass-brd); background: var(--glass-2);
}
.hl.big {
  background: linear-gradient(100deg, color-mix(in oklab, var(--tone) 14%, transparent), transparent 70%), var(--glass-2);
  border-color: color-mix(in oklab, var(--tone) 34%, var(--glass-brd));
}
.hl-tick {
  width: 20px; height: 20px; border-radius: 7px; flex-shrink: 0; margin-top: 1px;
  display: grid; place-items: center;
  background: color-mix(in oklab, var(--tone) 22%, transparent);
  color: var(--tone);
}
.hl-tick .ic { width: 12px; height: 12px; }
.hl-title { font-size: 13.5px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.3; }
.hl.big .hl-title { font-weight: 700; }
.hl-meta { font-size: 11.5px; color: var(--muted); margin-top: 3px; line-height: 1.4; }

/* ---------- 한 줄 회고 ---------- */
.w-note {
  display: flex; align-items: center; gap: 10px;
  background: var(--glass-2); border: 1px solid var(--glass-brd);
  border-radius: 13px; padding: 4px 14px;
}
.w-note input {
  flex: 1; min-width: 0; border: none; background: none; outline: none;
  font-size: 14px; color: var(--ink); padding: 11px 0;
}
.w-note input::placeholder { color: var(--faint); }
.w-note-ok {
  display: inline-flex; align-items: center; gap: 5px; flex-shrink: 0;
  font-size: 11px; font-weight: 700; color: var(--green);
}
.w-note-ok .ic { width: 11px; height: 11px; }

/* ---------- 이월 ---------- */
.ro-list { display: flex; flex-direction: column; gap: 9px; }
.ro {
  display: flex; gap: 12px; align-items: center;
  padding: 12px 13px; border-radius: var(--radius-sm);
  border: 1px solid var(--glass-brd); background: var(--glass-2);
  transition: opacity 0.16s;
}
.ro.off { opacity: 0.65; }
.ro-body { flex: 1; min-width: 0; }
.ro-title { font-size: 13.5px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.3; }
.ro-proj {
  font-size: 10px; font-weight: 700; color: var(--muted);
  background: var(--card-2); padding: 1px 7px; border-radius: 999px;
  margin-left: 7px; vertical-align: 1px;
}
.ro-to {
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 600; color: var(--blue); margin-top: 4px;
}
.ro.off .ro-to { color: var(--muted); }
.ro-to .ic { width: 13px; height: 13px; flex-shrink: 0; }
.ro-why { font-size: 11px; color: var(--muted); margin-top: 3px; }
.ro-undo {
  flex-shrink: 0; font-size: 11.5px; font-weight: 600; color: var(--muted);
  padding: 6px 11px; border-radius: 999px; border: 1px solid var(--line);
  transition: color 0.13s, border-color 0.13s;
  white-space: nowrap;
}
.ro-undo:hover { color: var(--ink); border-color: var(--line-2); }

/* ---------- 내일 미리보기 ---------- */
.tm-list { display: flex; flex-direction: column; }
.tm {
  display: flex; align-items: center; gap: 11px;
  padding: 9px 0; border-top: 1px solid var(--line);
}
.tm:first-child { border-top: none; padding-top: 0; }
.tm-time { font-family: var(--font-mono); font-size: 12px; color: var(--ink-2); width: 42px; flex-shrink: 0; }
.tm-title {
  font-size: 13px; font-weight: 600; letter-spacing: -0.01em;
  position: relative; padding-left: 13px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.tm-title::before {
  content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 3px; height: 14px; border-radius: 3px; background: var(--tone);
}
.tm-note {
  margin-left: auto; flex-shrink: 0;
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 10.5px; font-weight: 700; color: var(--violet);
  background: color-mix(in oklab, var(--violet) 14%, transparent);
  padding: 2px 8px; border-radius: 999px;
}
.tm-note .ic { width: 11px; height: 11px; }

.prep {
  margin-top: 14px; padding: 12px 13px;
  background: var(--glass-2); border: 1px solid var(--glass-brd);
  border-radius: var(--radius-sm);
}
.prep-label {
  display: flex; align-items: center; gap: 7px;
  font-size: 11.5px; font-weight: 700; color: var(--ink-2);
  margin-bottom: 9px;
}
.prep-label .ic { width: 13px; height: 13px; color: var(--violet); }
.prep-row { display: flex; align-items: flex-start; gap: 9px; padding: 5px 0; }
.prep-tick {
  width: 17px; height: 17px; border-radius: 6px; flex-shrink: 0; margin-top: 1px;
  display: grid; place-items: center;
  background: color-mix(in oklab, var(--green) 18%, transparent); color: var(--green);
}
.prep-tick .ic { width: 10px; height: 10px; }
.prep-text { flex: 1; min-width: 0; font-size: 12.5px; color: var(--ink-2); line-height: 1.45; }
.prep-undo {
  flex-shrink: 0; font-size: 11px; font-weight: 600; color: var(--muted);
  padding: 3px 9px; border-radius: 999px;
  transition: background 0.13s, color 0.13s;
}
.prep-undo:hover { background: var(--card-2); color: var(--ink); }

/* ---------- 수면 모드 ---------- */
.w-sleep {
  margin-top: 16px;
  display: flex; align-items: center; gap: 16px;
  padding: 20px 22px;
  border-radius: var(--radius);
  background:
    radial-gradient(120% 160% at 0% 0%, rgba(139, 111, 212, 0.22), transparent 55%),
    var(--glass);
  border: 1px solid var(--glass-brd);
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  box-shadow: var(--shadow), var(--glass-hi);
  transition: border-color 0.2s;
}
.w-sleep.on { border-color: color-mix(in oklab, var(--violet) 45%, var(--glass-brd)); }
.ws-ic {
  width: 46px; height: 46px; border-radius: 14px; flex-shrink: 0;
  display: grid; place-items: center;
  background: var(--violet); color: #fff;
  box-shadow: 0 8px 20px -8px var(--violet);
}
.ws-ic .ic { width: 21px; height: 21px; }
.ws-body { flex: 1; min-width: 0; }
.ws-title { font-size: 16px; font-weight: 700; letter-spacing: -0.02em; }
.ws-sub { font-size: 12.5px; color: var(--muted); margin-top: 3px; line-height: 1.45; }
.ws-cta {
  flex-shrink: 0;
  padding: 12px 22px; border-radius: 999px;
  background: var(--lime); color: var(--lime-ink);
  font-size: 13.5px; font-weight: 700;
  box-shadow: 0 6px 18px -8px var(--lime);
  transition: background 0.13s, transform 0.12s;
  white-space: nowrap;
}
.ws-cta:hover { background: var(--lime-hi); transform: translateY(-1px); }
.w-sleep.on .ws-cta { background: var(--card-2); color: var(--ink-2); box-shadow: none; }

.w-foot { text-align: center; font-size: 12px; color: var(--faint); margin-top: 26px; }

/* ---------- 반응형 ---------- */
@media (max-width: 880px) {
  .w-cols { grid-template-columns: 1fr; }
  .w-stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .wrap { padding: 16px 14px 36px; }
  .w-sleep { flex-wrap: wrap; }
}
