:root {
  color-scheme: dark;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans KR", sans-serif;
  color: #fbf7ff;
  background: #130d29;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  --ink: #fbf7ff;
  --muted: #c8bed7;
  --subtle: #a898bd;
  --panel: #241a40;
  --panel-raised: #2b2049;
  --line: #594775;
  --lavender: #e69aff;
  --pink: #f05da7;
  --purple: #803bea;
  --gold: #f5d789;
}

* { box-sizing: border-box; }

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(ellipse at 86% 0, rgba(91, 48, 132, .48), transparent 34rem),
    radial-gradient(ellipse at 4% 32%, rgba(52, 33, 89, .24), transparent 28rem),
    #130d29;
}

button, input, select, textarea { font: inherit; }
button, input, select, textarea, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, a:focus-visible {
  outline: 3px solid rgba(230, 154, 255, .72);
  outline-offset: 3px;
}
[hidden] { display: none !important; }

.app-shell {
  position: relative;
  width: min(100% - 32px, 480px);
  min-height: 100vh;
  margin: 0 auto;
  padding: max(17px, env(safe-area-inset-top)) 0 max(28px, env(safe-area-inset-bottom));
}
.topbar { position: relative; z-index: 2; display: flex; min-height: 39px; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); font-size: 13px; font-weight: 800; text-decoration: none; }
.brand-icon {
  display: grid; width: 30px; height: 30px; place-items: center; border: 1px solid rgba(230,154,255,.32);
  border-radius: 11px; background: linear-gradient(145deg, #51326e, #29183f); color: #f1b3ff; font-size: 16px;
}
.topbar-note { color: #c1afd7; font-size: 8px; font-weight: 750; letter-spacing: .14em; }

.progress {
  display: flex; align-items: center; justify-content: space-between;
  margin: 17px 0 23px; padding: 0; list-style: none;
}
.progress li { display: grid; justify-items: center; gap: 5px; color: #a99abb; font-size: 8px; }
.progress li span {
  display: grid; width: 21px; height: 21px; place-items: center; border: 1px solid #5b4777;
  border-radius: 50%; background: #241a40; color: #d7c6e8; font-size: 9px; font-weight: 800;
}
.progress li.is-active { color: #f4c9ff; font-weight: 750; }
.progress li.is-active span { border-color: #e69aff; background: #8b48aa; color: white; box-shadow: 0 0 13px rgba(230,154,255,.35); }

.screen { min-height: 280px; }
.home-screen { position: relative; display: flex; min-height: min(790px, calc(100dvh - 60px)); flex-direction: column; justify-content: space-between; overflow: hidden; padding: 0 0 8px; }
.home-art {
  position: absolute; top: 0; right: -15%; left: -15%; height: 68%; overflow: hidden; pointer-events: none;
  background:
    radial-gradient(ellipse at 75% 13%, rgba(255,195,230,.21), transparent 14%),
    radial-gradient(ellipse at 73% 10%, rgba(126,79,167,.47), transparent 37%),
    linear-gradient(180deg, rgba(47,32,82,.65), rgba(19,13,41,.03) 78%);
}
.home-art::before {
  position: absolute; right: 12%; top: 7%; width: 72px; height: 72px; border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, #fff0d4, #f8b9cf 54%, #db8bef);
  box-shadow: 0 0 44px rgba(252,180,228,.32);
  content: "";
}
.home-art::after {
  position: absolute; right: 7%; top: 5%; width: 70px; height: 70px; border-radius: 50%;
  background: #32204f; content: "";
}
.moon { position: absolute; top: 21%; right: 43%; width: 3px; height: 3px; border-radius: 50%; background: #ffdaf7; box-shadow: 22px 35px #ffe2ff, 62px -11px #dcb4ff, 119px 42px #f7d4ff, -58px 25px #e4c2fa, 180px 13px #fff0d6; }
.star { position: absolute; color: #f5c2ff; }
.star-one { top: 16%; left: 18%; font-size: 15px; }
.star-two { top: 32%; right: 18%; font-size: 30px; }
.cityline { position: absolute; bottom: 0; left: 0; width: 100%; height: 24%; opacity: .7; background: linear-gradient(180deg, transparent, #21183a 48%); }
.cityline::before {
  position: absolute; right: 2%; bottom: 0; left: 0; height: 76%;
  background: linear-gradient(90deg, transparent 0 7%, #251b3b 7% 15%, transparent 15% 18%, #302148 18% 25%, transparent 25% 35%, #261c3c 35% 45%, transparent 45% 49%, #302047 49% 56%, transparent 56% 64%, #251b3b 64% 75%, transparent 75% 82%, #302047 82% 92%, transparent 92%);
  clip-path: polygon(0 34%, 8% 34%, 8% 0, 14% 0, 14% 60%, 20% 60%, 20% 18%, 28% 18%, 28% 48%, 37% 48%, 37% 0, 43% 0, 43% 66%, 54% 66%, 54% 25%, 62% 25%, 62% 0, 69% 0, 69% 52%, 81% 52%, 81% 20%, 87% 20%, 87% 0, 94% 0, 94% 57%, 100% 57%, 100% 100%, 0 100%);
  content: "";
}
.traveler {
  position: absolute; right: 23%; bottom: 0; width: 105px; height: 41%;
  border-radius: 54% 46% 0 0 / 40% 42% 0 0;
  background: linear-gradient(130deg, #100e24 8%, #17132d 47%, #40315e 100%);
  filter: drop-shadow(0 0 19px rgba(229,161,255,.2));
}
.traveler::before {
  position: absolute; top: -23px; left: 33px; width: 47px; height: 63px; border-radius: 48% 49% 42% 44%;
  background: linear-gradient(125deg, #d39aa6, #624364 78%); content: "";
}
.traveler::after {
  position: absolute; top: -30px; left: 25px; width: 57px; height: 39px; border-radius: 60% 48% 20% 22%;
  background: #24182f; box-shadow: 9px 13px 0 -7px #bc8398; content: "";
}
.home-copy { position: relative; z-index: 1; padding: clamp(88px, 25vh, 185px) 15px 20px; }
.eyebrow { margin: 0 0 11px; color: #e8adff; font-size: 10px; font-weight: 780; letter-spacing: .08em; }
.eyebrow span { color: var(--gold); }
.home-copy h1 { margin: 0; font-size: clamp(34px, 10vw, 43px); font-weight: 850; letter-spacing: -.07em; line-height: 1.22; text-shadow: 0 3px 20px rgba(18,10,37,.4); }
.home-copy h1 span { color: #f4d99a; }
.home-copy > p:not(.eyebrow) { margin: 14px 0 20px; color: #eee5f8; font-size: 15px; font-weight: 550; line-height: 1.7; }
.home-feature-grid { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.feature-card {
  display: grid; min-height: 74px; align-content: center; justify-items: center; gap: 6px; padding: 9px 4px;
  border: 1px solid #594476; border-radius: 15px; background: rgba(37,27,62,.91); text-align: center;
}
.feature-card span { color: #f1b5ff; font-size: 19px; }
.feature-card strong { font-size: 9px; line-height: 1.4; }
.home-disclaimer { position: relative; z-index: 1; margin: 12px 0 0; color: #aa9aba; text-align: center; font-size: 9px; line-height: 1.6; }

.step-kicker { display: flex; align-items: center; gap: 6px; margin: 2px 0 20px; }
.step-kicker span { color: #f2baff; font-size: 10px; font-weight: 800; letter-spacing: .12em; }
.step-kicker i { width: 7px; height: 7px; border-radius: 8px; background: #594674; }
.step-kicker i.is-on { width: 22px; background: linear-gradient(90deg, #f05da7, #a15bdf); }
.section-title { margin: 0 0 17px; }
.section-title h1, .results-topline h1 { margin: 0; font-size: clamp(27px, 7vw, 34px); font-weight: 830; letter-spacing: -.065em; line-height: 1.28; }
.section-title h1 span { color: #e3a1ff; }
.section-title h2 { margin: 0; font-size: 18px; font-weight: 820; letter-spacing: -.04em; }
.section-title p, .results-topline > div > p:last-child { margin: 8px 0 0; color: var(--muted); font-size: 11px; line-height: 1.65; }
.panel {
  padding: 16px; border: 1px solid #51406e; border-radius: 19px;
  background: linear-gradient(145deg, rgba(42,31,69,.97), rgba(31,23,54,.98));
  box-shadow: 0 12px 32px rgba(4,2,13,.18);
}
.form-grid { display: grid; gap: 9px; }
.field-label { margin-top: 3px; color: #f0e9f7; font-size: 11px; font-weight: 760; }
.field-label span { color: #ae9cbd; font-size: 10px; font-weight: 500; }
.input {
  width: 100%; min-height: 45px; padding: 0 12px; border: 1px solid #675382;
  border-radius: 12px; background: #211837; color: var(--ink); font-size: 13px;
}
.input::placeholder { color: #a898b8; }
select.input option { background: #241a40; color: white; }
.field-help { margin: -3px 0 2px; color: #b6a8c6; font-size: 10px; line-height: 1.55; }
.check-row { display: flex; min-height: 35px; align-items: center; gap: 9px; color: #e5daef; font-size: 11px; }
.check-row input, input[type="checkbox"], input[type="radio"] { width: 18px; height: 18px; accent-color: #d678ef; }
.privacy-note, .day-tip, .schedule-note {
  margin: 5px 0; padding: 11px 12px; border: 1px solid rgba(133,103,166,.28); border-radius: 12px;
  background: rgba(91,65,123,.2); color: #cbbbd9; font-size: 10px; line-height: 1.65;
}
.button {
  display: inline-flex; min-height: 46px; align-items: center; justify-content: center; gap: 8px;
  border: 0; border-radius: 14px; font-size: 12px; font-weight: 790; cursor: pointer;
  transition: filter .15s ease, transform .12s ease, border-color .15s ease;
}
.button:active { transform: scale(.985); }
.button:disabled, .icon-button:disabled { cursor: not-allowed; opacity: .45; }
.button-primary {
  padding: 0 17px; background: linear-gradient(100deg, var(--pink), var(--purple));
  color: white; box-shadow: 0 7px 21px rgba(186,65,207,.23);
}
.button-primary:hover:not(:disabled) { filter: brightness(1.09); }
.button-secondary { padding: 0 14px; border: 1px solid #725b8e; background: rgba(42,31,69,.75); color: #eee5f8; }
.button-secondary:hover:not(:disabled) { border-color: #c594e5; }
.button-row { display: flex; gap: 9px; margin-top: 16px; }
.button-row .button-primary { flex: 1; }
.full-width { width: 100%; margin-top: 5px; }
.compact { min-height: 37px; padding: 0 11px; border-radius: 12px; font-size: 10px; white-space: nowrap; }

.day-choice { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin: 0; }
.day-choice legend { grid-column: 1 / -1; padding: 0 0 5px; color: #f4eafa; font-size: 12px; font-weight: 750; }
.choice-card {
  position: relative; display: grid; min-height: 132px; align-content: center; justify-items: center; gap: 8px;
  padding: 14px 7px; border: 1px solid #634e7f; border-radius: 18px; background: #241a40; text-align: center; cursor: pointer;
}
.choice-card:has(input:checked) { border: 2px solid #e69aff; background: linear-gradient(145deg, #53346f, #2c2049); box-shadow: 0 0 19px rgba(221,140,255,.18); }
.choice-card input { position: absolute; top: 10px; right: 10px; width: 17px; height: 17px; margin: 0; }
.choice-card > span:last-child { display: grid; gap: 4px; }
.choice-icon { color: #e7a5ff; font-size: 29px; }
.choice-card strong { font-size: 14px; }
.choice-card small { color: #c5b7d5; font-size: 9px; line-height: 1.4; }
.day-choice .day-tip, .day-choice > .field-label, .day-choice > .input, .day-choice > button, .saved-result-list { grid-column: 1 / -1; }
.day-choice .day-tip { margin: 1px 0 4px; }
.day-choice > .field-label { margin-top: 3px; }
.saved-result-list { display: grid; gap: 7px; }
.saved-result-option {
  min-height: 44px; padding: 9px 10px; border: 1px solid #634e7f; border-radius: 11px;
  background: #211837; color: #f0e9f7; text-align: left; font-size: 10px; line-height: 1.5; cursor: pointer;
}

.quick-pick { display: grid; gap: 7px; }
.quick-pick > h2 { margin: 0; color: #f0e2fa; font-size: 13px; }
.quick-pick > p { margin: 0 0 2px; color: #bdaecc; font-size: 9px; line-height: 1.5; }
.plan-presets { display: grid; gap: 9px; }
.plan-preset {
  display: grid; grid-template-columns: 39px minmax(0, 1fr) 18px; align-items: center; gap: 10px;
  width: 100%; min-height: 74px; padding: 10px; border: 1px solid #624b7d; border-radius: 15px;
  background: linear-gradient(115deg, #302148, #211837); color: var(--ink); text-align: left; cursor: pointer;
  transition: border-color .15s ease, transform .12s ease, background .15s ease;
}
.plan-preset:hover { border-color: #e69aff; background: linear-gradient(115deg, #49305f, #2a1e45); }
.plan-preset:active { transform: scale(.99); }
.plan-preset:disabled { opacity: .55; cursor: wait; }
.plan-preset-icon { display: grid; width: 38px; height: 38px; place-items: center; border: 1px solid rgba(230,154,255,.25); border-radius: 13px; background: rgba(165,94,199,.17); color: #eeb1ff; font-size: 18px; }
.plan-preset-copy { display: grid; min-width: 0; gap: 4px; }
.plan-preset-copy strong { font-size: 11px; }
.plan-preset-copy small { color: #c8b7d8; font-size: 9px; }
.plan-preset-activities { overflow: hidden; color: #aa96bd; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.plan-preset-arrow { color: #e5a4f5; font-size: 22px; }
.saved-plans { margin: 0 0 12px; }
.saved-plans-details { overflow: hidden; border: 1px solid #594775; border-radius: 12px; background: rgba(36,26,64,.55); }
.saved-plans-details > summary { padding: 11px 12px; color: #eadcf5; font-size: 10px; font-weight: 750; cursor: pointer; }
.saved-plans-details[open] > summary { border-bottom: 1px solid rgba(114,91,140,.35); }
.saved-plans-list { display: grid; gap: 7px; padding: 8px; }
.saved-plan-card { display: grid; gap: 7px; padding: 11px; border: 1px solid #79558f; border-radius: 14px; background: linear-gradient(110deg, rgba(89,55,113,.42), rgba(38,28,63,.95)); }
.saved-plan-title-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.saved-plan-title-row > strong { overflow-wrap: anywhere; color: #f2dfff; font-size: 10px; }
.saved-plan-type { flex: 0 0 auto; padding: 3px 7px; border: 1px solid #8a6ca3; border-radius: 999px; color: #ead9f5; font-size: 8px; }
.saved-plan-card > p { margin: 0; color: #cbbbd9; font-size: 9px; line-height: 1.55; }
.saved-plan-card-actions { display: flex; gap: 7px; }
.saved-plan-card .button { justify-self: start; }
.saved-plan-delete { color: #dbb8c5; }
.manual-pick-toggle { display: flex; width: 100%; align-items: center; justify-content: center; gap: 6px; margin-top: 11px; }
.manual-pick-hint { color: #bdaecc; font-size: 9px; font-weight: 500; }
.manual-activities { margin-top: 17px; padding-top: 14px; border-top: 1px solid rgba(114,91,140,.35); }
.manual-heading { display: flex; align-items: end; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.manual-heading h2 { margin: 0; font-size: 13px; }
.manual-heading p { margin: 4px 0 0; color: #bdaecc; font-size: 9px; }
.manual-heading .selection-count { margin: 0; color: #d7c1e8; font-size: 9px; white-space: nowrap; }
.manual-actions { display: flex; gap: 9px; margin-top: 13px; }
.manual-actions .button-primary { flex: 1; }
.activity-toolbar { display: grid; grid-template-columns: 1fr; }
.search-input { min-height: 45px; }
.category-tabs { display: flex; gap: 6px; overflow-x: auto; margin: 11px -2px 8px; padding: 2px 2px 5px; scrollbar-width: thin; }
.chip {
  flex: 0 0 auto; min-height: 35px; padding: 0 12px; border: 1px solid #634e7f; border-radius: 22px;
  background: #241a40; color: #e2d5ee; font-size: 10px; font-weight: 700; cursor: pointer;
}
.chip.is-active { border-color: #e19aff; background: linear-gradient(100deg, #9b53ba, #653c93); color: white; }
.activity-heading { display: flex; align-items: center; justify-content: space-between; }
.selection-count { margin: 10px 1px 9px; color: #f0e2fa; font-size: 11px; font-weight: 750; }
.activity-heading > span { color: #ad9bbb; font-size: 9px; }
.activity-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.activity-tile {
  position: relative; display: grid; min-height: 91px; align-content: center; justify-items: center; gap: 4px;
  padding: 9px 3px 7px; border: 1px solid #51416e; border-radius: 15px; background: #241a40;
  color: #f9f4ff; text-align: center; cursor: pointer;
}
.activity-tile[aria-pressed="true"] { border: 2px solid #e69aff; background: linear-gradient(145deg, #684187, #31204f); box-shadow: 0 0 15px rgba(230,154,255,.17); }
.activity-tile:disabled { opacity: .45; cursor: not-allowed; }
.selection-number {
  position: absolute; top: 5px; left: 5px; display: grid; width: 19px; height: 19px; place-items: center;
  border: 1px solid rgba(255,255,255,.65); border-radius: 50%;
  background: linear-gradient(135deg, var(--pink), var(--purple)); color: white; font-size: 9px; font-weight: 850;
  box-shadow: 0 2px 9px rgba(12,5,24,.4);
}
.activity-tile strong { max-width: 100%; font-size: 10px; line-height: 1.25; }
.activity-tile small { color: #c4b4d4; font-size: 8px; }
.activity-icon { color: #e4b1fb; font-size: 22px; line-height: 1; }
.recommend-tag {
  position: absolute; top: 5px; right: 5px; padding: 3px 5px; border-radius: 6px;
  background: #8a4caa; color: white; font-size: 7px; font-weight: 760;
}
.no-activities { grid-column: 1 / -1; padding: 20px; color: var(--muted); text-align: center; font-size: 12px; }

.schedule-tools { display: flex; align-items: center; justify-content: space-between; margin: 0 0 9px; }
.schedule-tools .selection-count { margin: 0; }
.schedule-list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.schedule-item {
  display: grid; grid-template-columns: 25px 31px minmax(0, 1fr) auto; align-items: center; gap: 7px;
  min-height: 68px; padding: 8px; border: 1px solid #594775; border-radius: 14px;
  background: linear-gradient(115deg, #2b2049, #211837);
}
.schedule-item[draggable="true"] { cursor: grab; }
.schedule-item:active { cursor: grabbing; }
.schedule-order { color: #c99be8; font-size: 9px; font-weight: 800; text-align: center; }
.schedule-icon, .result-icon, .timeline-icon {
  display: grid; width: 31px; height: 31px; place-items: center; border-radius: 11px;
  background: rgba(176,111,210,.16); color: #f1bdff; font-size: 16px;
}
.schedule-name { overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.order-controls { display: flex; justify-content: flex-end; gap: 3px; }
.icon-button { width: 29px; height: 34px; border: 1px solid #695482; border-radius: 9px; background: #30234d; color: white; font-size: 14px; cursor: pointer; }
.schedule-period-picker { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 5px; }
.period-choice {
  min-height: 36px; padding: 0 3px; border: 1px solid #5b4777; border-radius: 10px;
  background: #211837; color: #d8c8e8; font-size: 9px; cursor: pointer;
}
.period-choice[aria-pressed="true"] { border-color: #e69aff; background: linear-gradient(100deg, #8b48aa, #63388f); color: white; font-weight: 800; }
.exact-time { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 100px; align-items: center; gap: 8px; }
.exact-time summary { color: #c6b3d8; font-size: 9px; cursor: pointer; }
.activity-time { min-height: 37px; padding: 0 6px; font-size: 10px; }
.schedule-note { margin: 12px 0 0; }

.results-topline { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 4px 0 14px; }
.results-topline .eyebrow { margin-bottom: 6px; font-size: 8px; }
.results-topline h1 { font-size: 23px; white-space: nowrap; }
.results-topline > div > p:last-child { font-size: 9px; }
.overall-card {
  position: relative; overflow: hidden; display: grid; justify-items: center; padding: 19px 17px;
  border: 1px solid #775389; border-radius: 22px; background:
    radial-gradient(ellipse at 50% 38%, rgba(228,136,246,.23), transparent 36%),
    linear-gradient(145deg, #382653, #24183e 60%, #332047);
  text-align: center;
}
.overall-glow { position: absolute; top: 28px; left: calc(50% - 62px); width: 124px; height: 124px; border: 1px solid rgba(246,214,155,.45); border-radius: 50%; box-shadow: 0 0 34px rgba(243,182,239,.13), inset 0 0 26px rgba(240,190,255,.08); }
.overall-card > p:first-of-type { position: relative; margin: 0 0 7px; color: #ebd8f6; font-size: 10px; }
.overall-score { position: relative; display: flex; align-items: baseline; gap: 3px; min-height: 62px; color: var(--gold); }
.overall-score strong { font-size: 53px; line-height: 1; text-shadow: 0 3px 15px rgba(245,215,137,.25); }
.overall-score span { font-size: 14px; }
.overall-card h2 { position: relative; margin: 8px 0 4px; font-size: 16px; letter-spacing: -.04em; }
.overall-card > p:last-child { position: relative; margin: 0; color: #d2c4df; font-size: 9px; line-height: 1.55; }
.pillars-summary { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 2px; padding: 10px; border: 1px solid #4d3b68; border-radius: 13px; background: #211837; }
.pillar-chip { padding: 5px 7px; border-radius: 8px; background: #33254f; color: #d8c8e8; font-size: 9px; }
.score-disclaimer { margin: 8px 1px 14px; color: #b5a7c3; font-size: 9px; line-height: 1.6; }
.timeline-panel { padding: 15px; border: 1px solid #4d3b68; border-radius: 18px; background: rgba(36,26,64,.8); }
.timeline-panel h2 { margin: 0 0 7px; font-size: 13px; }
.result-timeline { display: grid; margin: 0; padding: 0; list-style: none; }
.timeline-item { display: grid; grid-template-columns: 31px minmax(0, 1fr) 22px; align-items: start; gap: 9px; padding: 10px 0; border-bottom: 1px solid rgba(117,94,144,.3); }
.timeline-item:last-child { border-bottom: 0; }
.timeline-icon { width: 29px; height: 29px; color: #ffc9ee; font-size: 14px; }
.timeline-copy { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: baseline; gap: 2px 7px; }
.timeline-copy strong { font-size: 10px; }
.timeline-copy > span { color: #c3a9d8; font-size: 8px; }
.timeline-copy p { grid-column: 1 / -1; margin: 1px 0 0; color: #c8bed7; font-size: 9px; line-height: 1.55; }
.timeline-order { color: #927ca6; font-size: 8px; text-align: right; }
.fortune-section { margin-top: 20px; }
.fortune-section .section-title { margin-bottom: 10px; }
.fortune-section .section-title h2 { font-size: 16px; }
.fortune-section .section-title p { font-size: 9px; }
.result-list { display: grid; gap: 9px; }
.result-card {
  display: grid; width: 100%; gap: 8px; padding: 13px; border: 1px solid #51416e; border-radius: 16px;
  background: linear-gradient(135deg, #2b2049, #211837); color: var(--ink); text-align: left; cursor: pointer;
}
.result-card:hover { border-color: #bc82db; }
.result-card-head { display: flex; min-width: 0; align-items: center; gap: 9px; }
.result-icon { flex: 0 0 34px; width: 34px; height: 34px; }
.result-title-wrap { display: grid; min-width: 0; flex: 1; gap: 4px; }
.result-label { color: #d49cf1; font-size: 8px; font-weight: 750; }
.result-title { overflow: hidden; font-size: 11px; line-height: 1.45; text-overflow: ellipsis; }
.score-badge { display: grid; min-width: 45px; min-height: 45px; flex: 0 0 45px; place-content: center; border: 1px solid rgba(245,215,137,.4); border-radius: 13px; background: rgba(245,215,137,.09); color: var(--gold); text-align: center; }
.score-badge strong { font-size: 16px; line-height: 1; }
.score-badge small { margin-top: 3px; font-size: 8px; }
.result-situation { display: block; color: #d5cadf; font-size: 10px; line-height: 1.6; }
.result-open { color: #e9a6ff; font-size: 9px; font-weight: 750; }
.floating-save-button {
  position: fixed; z-index: 21; right: max(18px, calc((100vw - 480px)/2 + 12px));
  bottom: calc(78px + env(safe-area-inset-bottom)); display: inline-flex; min-height: 46px; align-items: center;
  justify-content: center; gap: 6px; padding: 0 16px; border: 1px solid rgba(255,255,255,.55);
  border-radius: 25px; background: linear-gradient(120deg, #ed65ad, #8747d8); color: #fff;
  box-shadow: 0 7px 22px rgba(11,7,24,.42), 0 0 20px rgba(205,105,239,.25);
  font-size: 11px; font-weight: 800; cursor: pointer;
}
.floating-save-button > span { font-size: 17px; line-height: 1; }
.save-plan-dialog {
  width: min(calc(100% - 32px), 420px); max-width: none; max-height: min(90dvh, 560px);
  margin: auto; padding: 20px; border: 1px solid #795b95; border-radius: 22px;
  background: linear-gradient(150deg, #302148, #1d1634 75%); color: var(--ink);
  box-shadow: 0 22px 70px rgba(0,0,0,.48);
}
.save-plan-dialog::backdrop { background: rgba(10,7,20,.68); backdrop-filter: blur(5px); }
.save-plan-dialog[open] { display: grid; gap: 12px; }
.save-plan-dialog-header { display: flex; align-items: start; justify-content: space-between; gap: 10px; }
.save-plan-dialog-header .eyebrow { margin: 0 0 5px; font-size: 8px; }
.save-plan-dialog-header h2 { margin: 0; font-size: 17px; letter-spacing: -.04em; }
.dialog-close-button { display: grid; width: 34px; height: 34px; flex: 0 0 34px; place-items: center; border: 1px solid #624d7e; border-radius: 50%; background: #211837; color: #f5eaff; font-size: 22px; cursor: pointer; }
.save-plan-description { margin: 0; color: #c3b4d2; font-size: 10px; line-height: 1.5; }
.save-plan-actions { display: grid; gap: 7px; }
.save-plan-actions .button { min-height: 41px; font-size: 10px; }
.plan-title-field { display: grid; gap: 5px; color: #e7d8f1; font-size: 9px; }
.plan-title-field input { width: 100%; min-height: 40px; padding: 0 11px; border: 1px solid #624d7e; border-radius: 10px; outline: none; background: #17112c; color: #f6edff; font: inherit; }
.plan-title-field input:focus { border-color: #df8efa; }
.safety-note { margin: 14px 2px; color: #b6a8c4; font-size: 9px; line-height: 1.65; }
.screen[data-screen="results"] { padding-bottom: 92px; }
.results-action-bar {
  position: fixed; z-index: 20; right: 0; bottom: 0; left: 0;
  padding: 10px 16px max(12px, env(safe-area-inset-bottom));
  border-top: 1px solid rgba(151,119,178,.32);
  background: linear-gradient(180deg, rgba(19,13,41,.82), rgba(19,13,41,.98) 24%);
  backdrop-filter: blur(14px);
}
.results-action-bar .button { width: min(100%, 448px); margin: 0 auto; }

.detail-toolbar { display: flex; align-items: center; justify-content: space-between; margin: 3px 0 11px; }
.detail-toolbar > span { color: #bdaaca; font-size: 9px; }
.detail-layout { display: grid; gap: 10px; }
.detail-hero-card { overflow: hidden; border: 1px solid #624b7d; border-radius: 19px; background: #241a40; }
.detail-hero-art {
  position: relative; height: 127px; background:
    radial-gradient(ellipse at 72% 45%, rgba(240,166,255,.4), transparent 22%),
    radial-gradient(ellipse at 22% 45%, rgba(239,155,185,.24), transparent 29%),
    linear-gradient(125deg, #513465, #251c47 58%, #35224f);
}
.detail-hero-art::before, .detail-hero-art::after { position: absolute; bottom: 0; width: 34%; height: 55%; background: linear-gradient(160deg, #34213f, #19142f); content: ""; }
.detail-hero-art::before { left: 0; clip-path: polygon(0 15%, 18% 15%, 18% 0, 34% 0, 34% 34%, 54% 34%, 54% 10%, 70% 10%, 70% 42%, 100% 42%, 100% 100%, 0 100%); }
.detail-hero-art::after { right: 0; height: 70%; clip-path: polygon(0 40%, 24% 40%, 24% 0, 43% 0, 43% 24%, 63% 24%, 63% 10%, 77% 10%, 77% 51%, 100% 51%, 100% 100%, 0 100%); }
.detail-hero-art > span { position: absolute; top: 18px; right: 24px; color: #f8e0ac; font-size: 28px; }
.detail-hero-copy { padding: 14px; }
.detail-hero-copy .eyebrow { margin-bottom: 8px; }
.detail-title-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.detail-title-row h1 { margin: 0; font-size: 19px; line-height: 1.45; letter-spacing: -.04em; }
.detail-score { flex: 0 0 auto; padding: 7px 9px; border: 1px solid rgba(245,215,137,.55); border-radius: 11px; color: var(--gold); font-size: 13px; font-weight: 800; }
.detail-situation { margin: 12px 0 7px; color: #f0d7ff; font-size: 14px; font-weight: 750; line-height: 1.6; }
.detail-body-label { margin: 10px 0 4px; color: #e6b3f7; font-size: 9px; font-weight: 800; }
.detail-body { margin: 0; color: #d1c5dc; font-size: 10px; line-height: 1.75; }
.detail-sections { display: grid; gap: 8px; }
.detail-info-card { display: grid; grid-template-columns: 25px 1fr; gap: 8px; padding: 12px; border: 1px solid #51416e; border-radius: 14px; background: #241a40; }
.info-icon { display: grid; width: 24px; height: 24px; place-items: center; border-radius: 8px; background: #3a2a57; color: #ddadff; font-weight: 800; }
.caution-card .info-icon { background: rgba(242,162,94,.13); color: #ffc278; }
.advice-card .info-icon { background: rgba(110,174,255,.14); color: #95bdff; }
.detail-info-card h2 { margin: 0 0 5px; font-size: 10px; }
.detail-info-card p { margin: 0 0 4px; color: #d0c4dc; font-size: 9px; line-height: 1.65; }
.detail-info-card p:last-child { margin-bottom: 0; }
.screen[data-screen="detail"] { padding-bottom: 88px; }
.detail-navigation {
  position: fixed; z-index: 20; right: 0; bottom: 0; left: 0;
  display: flex; gap: 9px; padding: 10px 16px max(12px, env(safe-area-inset-bottom));
  border-top: 1px solid rgba(151,119,178,.32);
  background: linear-gradient(180deg, rgba(19,13,41,.82), rgba(19,13,41,.98) 24%);
  backdrop-filter: blur(14px);
}
.detail-navigation .button { width: min(50%, 220px); flex: 1; }

.status-message {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 15px 0 0;
  padding: 11px 13px; border: 1px solid #80545f; border-radius: 12px; background: #3a243c;
  color: #ffe1ea; font-size: 10px; line-height: 1.55;
}
.status-message.is-success { border-color: #765394; background: #302344; color: #ead4ff; }
.status-message button { min-height: 34px; flex: 0 0 auto; padding: 0 10px; border: 1px solid #a87bc4; border-radius: 9px; background: transparent; color: white; font-size: 9px; cursor: pointer; }
.footer { display: flex; align-items: center; justify-content: space-between; margin-top: 20px; padding: 12px 2px 0; border-top: 1px solid rgba(114,91,140,.27); color: #a898b8; font-size: 9px; }
.footer a { color: #c9a4e0; text-decoration: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; clip-path: inset(50%); }

.admin-shell { width: min(100% - 32px, 760px); }
.admin-hero { padding: 29px 2px 20px; }
.admin-panel { margin: 12px 0; padding: 17px; border: 1px solid #51416e; border-radius: 17px; background: #241a40; }
.admin-panel h2 { margin: 0; font-size: 16px; }
.admin-grid { display: grid; gap: 8px; margin-top: 12px; }
.search-row { display: flex; gap: 8px; }
.search-row .input { flex: 1; }
.payload-input { min-height: 150px; padding: 10px; font-family: ui-monospace, Consolas, monospace; }
.record-list, .revision-list { display: grid; gap: 7px; margin-top: 12px; }
.draft-actions, .revision-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 10px; }

body[data-active-screen="home"],
body[data-active-screen="profile"],
body[data-active-screen="day"],
body[data-active-screen="activities"],
body[data-active-screen="schedule"] {
  color-scheme: light;
  color: #292722;
  background:
    radial-gradient(ellipse at 10% 12%, rgba(211,216,213,.58), transparent 32rem),
    radial-gradient(ellipse at 94% 4%, rgba(232,220,207,.5), transparent 25rem),
    linear-gradient(180deg, #f8f8f5, #efefec 72%, #f7f6f2);
}
body[data-active-screen="home"]::before,
body[data-active-screen="profile"]::before,
body[data-active-screen="day"]::before,
body[data-active-screen="activities"]::before,
body[data-active-screen="schedule"]::before {
  position: fixed; z-index: 0; inset: 0; pointer-events: none; content: ""; opacity: .44;
  background:
    radial-gradient(ellipse at 13% 38%, transparent 0 16%, rgba(255,255,255,.82) 17% 21%, transparent 30%),
    radial-gradient(ellipse at 34% 50%, rgba(193,199,196,.34) 0 12%, transparent 28%),
    radial-gradient(ellipse at 91% 6%, rgba(197,175,158,.25) 0 2%, transparent 18%);
}
body[data-active-screen="home"] .app-shell,
body[data-active-screen="profile"] .app-shell,
body[data-active-screen="day"] .app-shell,
body[data-active-screen="activities"] .app-shell,
body[data-active-screen="schedule"] .app-shell { z-index: 1; }
body[data-active-screen="home"] .brand,
body[data-active-screen="profile"] .brand,
body[data-active-screen="day"] .brand,
body[data-active-screen="activities"] .brand,
body[data-active-screen="schedule"] .brand { color: #302e29; }
body[data-active-screen="home"] .brand-icon,
body[data-active-screen="profile"] .brand-icon,
body[data-active-screen="day"] .brand-icon,
body[data-active-screen="activities"] .brand-icon,
body[data-active-screen="schedule"] .brand-icon { border-color: #e2d9cb; background: rgba(255,255,255,.8); color: #977451; }
body[data-active-screen="home"] .topbar-note,
body[data-active-screen="profile"] .topbar-note,
body[data-active-screen="day"] .topbar-note,
body[data-active-screen="activities"] .topbar-note,
body[data-active-screen="schedule"] .topbar-note { color: #8c877f; }
body[data-active-screen="profile"] .progress,
body[data-active-screen="day"] .progress,
body[data-active-screen="activities"] .progress,
body[data-active-screen="schedule"] .progress { margin: 14px 0 20px; }
body[data-active-screen="profile"] .progress li,
body[data-active-screen="day"] .progress li,
body[data-active-screen="activities"] .progress li,
body[data-active-screen="schedule"] .progress li { color: #89847c; }
body[data-active-screen="profile"] .progress li span,
body[data-active-screen="day"] .progress li span,
body[data-active-screen="activities"] .progress li span,
body[data-active-screen="schedule"] .progress li span { border-color: #dfddd6; background: #fff; color: #777168; }
body[data-active-screen="profile"] .progress li.is-active,
body[data-active-screen="day"] .progress li.is-active,
body[data-active-screen="activities"] .progress li.is-active,
body[data-active-screen="schedule"] .progress li.is-active { color: #7d6040; }
body[data-active-screen="profile"] .progress li.is-active span,
body[data-active-screen="day"] .progress li.is-active span,
body[data-active-screen="activities"] .progress li.is-active span,
body[data-active-screen="schedule"] .progress li.is-active span {
  border-color: #aa8b64; background: #9c7a52; color: white; box-shadow: 0 3px 10px rgba(114,85,47,.18);
}
body[data-active-screen="home"] .screen,
body[data-active-screen="profile"] .screen,
body[data-active-screen="day"] .screen,
body[data-active-screen="activities"] .screen,
body[data-active-screen="schedule"] .screen { color: #292722; }
body[data-active-screen="profile"] .step-kicker,
body[data-active-screen="day"] .step-kicker,
body[data-active-screen="activities"] .step-kicker,
body[data-active-screen="schedule"] .step-kicker { margin-bottom: 12px; }
body[data-active-screen="profile"] .step-kicker span,
body[data-active-screen="day"] .step-kicker span,
body[data-active-screen="activities"] .step-kicker span,
body[data-active-screen="schedule"] .step-kicker span { color: #997451; }
body[data-active-screen="profile"] .step-kicker i,
body[data-active-screen="day"] .step-kicker i,
body[data-active-screen="activities"] .step-kicker i,
body[data-active-screen="schedule"] .step-kicker i { background: #dcd9d1; }
body[data-active-screen="profile"] .step-kicker i.is-on,
body[data-active-screen="day"] .step-kicker i.is-on,
body[data-active-screen="activities"] .step-kicker i.is-on,
body[data-active-screen="schedule"] .step-kicker i.is-on { background: #a68a67; }
body[data-active-screen="profile"] .section-title h1,
body[data-active-screen="day"] .section-title h1,
body[data-active-screen="activities"] .section-title h1,
body[data-active-screen="schedule"] .section-title h1 {
  color: #27251f; font-family: Georgia, "Noto Serif KR", serif; font-weight: 780;
}
body[data-active-screen="profile"] .section-title h1 span,
body[data-active-screen="day"] .section-title h1 span,
body[data-active-screen="activities"] .section-title h1 span,
body[data-active-screen="schedule"] .section-title h1 span { color: #987553; }
body[data-active-screen="profile"] .section-title p,
body[data-active-screen="day"] .section-title p,
body[data-active-screen="activities"] .section-title p,
body[data-active-screen="schedule"] .section-title p { color: #77736c; }
body[data-active-screen="profile"] .panel,
body[data-active-screen="day"] .panel {
  border-color: #e6e3dc; background: rgba(255,255,255,.88); color: #302e29;
  box-shadow: 0 8px 26px rgba(48,43,35,.06); backdrop-filter: blur(10px);
}
body[data-active-screen="profile"] .field-label,
body[data-active-screen="day"] .field-label,
body[data-active-screen="day"] .day-choice legend { color: #47433d; }
body[data-active-screen="profile"] .field-label span,
body[data-active-screen="profile"] .field-help,
body[data-active-screen="profile"] .privacy-note,
body[data-active-screen="day"] .day-tip { color: #77736c; }
body[data-active-screen="profile"] .input,
body[data-active-screen="day"] .input,
body[data-active-screen="activities"] .input,
body[data-active-screen="schedule"] .input {
  border-color: #dedbd4; background: rgba(255,255,255,.94); color: #302e29;
}
body[data-active-screen="profile"] .input::placeholder,
body[data-active-screen="day"] .input::placeholder,
body[data-active-screen="activities"] .input::placeholder,
body[data-active-screen="schedule"] .input::placeholder { color: #a6a198; }
body[data-active-screen="profile"] select.input option,
body[data-active-screen="day"] select.input option { background: white; color: #302e29; }
body[data-active-screen="profile"] .check-row { color: #514d46; }
body[data-active-screen="profile"] input[type="checkbox"],
body[data-active-screen="day"] input[type="checkbox"],
body[data-active-screen="day"] input[type="radio"] { accent-color: #92724e; }
body[data-active-screen="profile"] .privacy-note,
body[data-active-screen="day"] .day-tip,
body[data-active-screen="schedule"] .schedule-note { border-color: #e5e0d6; background: #f3f1ec; color: #736f67; }
body[data-active-screen="home"] .button-primary,
body[data-active-screen="profile"] .button-primary,
body[data-active-screen="day"] .button-primary,
body[data-active-screen="activities"] .button-primary,
body[data-active-screen="schedule"] .button-primary { background: #24231f; color: white; box-shadow: 0 5px 15px rgba(39,35,28,.15); }
body[data-active-screen="profile"] .button-secondary,
body[data-active-screen="day"] .button-secondary,
body[data-active-screen="activities"] .button-secondary,
body[data-active-screen="schedule"] .button-secondary { border-color: #dedbd4; background: rgba(255,255,255,.86); color: #494640; }
body[data-active-screen="day"] .choice-card {
  min-height: 116px; border-color: #e4e1da; background: rgba(255,255,255,.92); color: #302e29;
  box-shadow: 0 4px 14px rgba(48,43,35,.04);
}
body[data-active-screen="day"] .choice-card:has(input:checked) { border: 2px solid #aa8b64; background: #f7f3eb; box-shadow: 0 0 0 3px rgba(170,139,100,.1); }
body[data-active-screen="day"] .choice-icon { color: #987553; }
body[data-active-screen="day"] .choice-card small { color: #77736c; }
body[data-active-screen="day"] .saved-result-option { border-color: #e4e1da; background: #f8f7f4; color: #35322d; }
body[data-active-screen="activities"] .quick-pick > h2,
body[data-active-screen="activities"] .saved-plans-details > summary,
body[data-active-screen="activities"] .manual-heading h2 { color: #302e29; }
body[data-active-screen="activities"] .quick-pick > p,
body[data-active-screen="activities"] .manual-heading p,
body[data-active-screen="activities"] .manual-pick-hint { color: #77736c; }
body[data-active-screen="activities"] .plan-preset { border-color: #e6e3dc; background: rgba(255,255,255,.91); color: #302e29; box-shadow: 0 5px 17px rgba(48,43,35,.05); }
body[data-active-screen="activities"] .plan-preset:hover { border-color: #b7a283; background: white; }
body[data-active-screen="activities"] .plan-preset-icon { border-color: #eee7dc; background: #f5f1e9; color: #977451; }
body[data-active-screen="activities"] .plan-preset-copy small,
body[data-active-screen="activities"] .plan-preset-activities { color: #77736c; }
body[data-active-screen="activities"] .plan-preset-arrow { color: #987553; }
body[data-active-screen="activities"] .saved-plans-details { border-color: #e2dfd8; background: rgba(255,255,255,.82); }
body[data-active-screen="activities"] .saved-plans-details[open] > summary { border-color: #ece9e2; }
body[data-active-screen="activities"] .saved-plan-card { border-color: #e6e3dc; background: #faf9f6; }
body[data-active-screen="activities"] .saved-plan-title-row > strong { color: #332f28; }
body[data-active-screen="activities"] .saved-plan-type { border-color: #e3d8c5; color: #806344; }
body[data-active-screen="activities"] .saved-plan-card > p { color: #77736c; }
body[data-active-screen="activities"] .activity-tile { border-color: #e5e2dc; background: rgba(255,255,255,.93); color: #302e29; }
body[data-active-screen="activities"] .activity-tile[aria-pressed="true"] { border-color: #a78a64; background: #f5f0e7; box-shadow: 0 0 0 2px rgba(167,138,100,.12); }
body[data-active-screen="activities"] .activity-tile small { color: #77736c; }
body[data-active-screen="activities"] .activity-icon { color: #987553; }
body[data-active-screen="activities"] .recommend-tag { background: #eee6d9; color: #765a39; }
body[data-active-screen="activities"] .selection-number { border-color: white; background: #987553; box-shadow: 0 2px 6px rgba(48,43,35,.15); }
body[data-active-screen="activities"] .selection-count,
body[data-active-screen="schedule"] .selection-count { color: #51483c; }
body[data-active-screen="activities"] .chip { border-color: #e0ddd6; background: white; color: #625e56; }
body[data-active-screen="activities"] .chip.is-active { border-color: #9c805e; background: #92724e; color: white; }
body[data-active-screen="schedule"] .schedule-item { border-color: #e5e2dc; background: rgba(255,255,255,.93); }
body[data-active-screen="schedule"] .schedule-order { color: #987553; }
body[data-active-screen="schedule"] .schedule-icon { background: #f2eee7; color: #987553; }
body[data-active-screen="schedule"] .schedule-name { color: #302e29; }
body[data-active-screen="schedule"] .icon-button,
body[data-active-screen="schedule"] .period-choice { border-color: #e0ddd6; background: white; color: #625e56; }
body[data-active-screen="schedule"] .period-choice[aria-pressed="true"] { border-color: #9c805e; background: #92724e; color: white; }
body[data-active-screen="schedule"] .exact-time summary { color: #736f67; }
body[data-active-screen="home"] .home-art {
  background: radial-gradient(ellipse at 74% 14%, rgba(205,195,177,.55), transparent 20%),
    radial-gradient(ellipse at 26% 38%, rgba(255,255,255,.88), transparent 38%),
    linear-gradient(180deg, rgba(226,228,223,.72), rgba(247,247,243,.18) 72%);
}
body[data-active-screen="home"] .home-art::before { background: #faf8f1; box-shadow: 0 0 52px rgba(191,176,145,.24); }
body[data-active-screen="home"] .home-art::after { background: #d8d8d1; }
body[data-active-screen="home"] .moon,
body[data-active-screen="home"] .star { color: #a78c69; }
body[data-active-screen="home"] .cityline { opacity: .3; background: linear-gradient(180deg, transparent, #e1e0da 48%); }
body[data-active-screen="home"] .cityline::before { background: #c9c7c0; }
body[data-active-screen="home"] .traveler { background: linear-gradient(130deg, #777a76, #aaa9a1); filter: drop-shadow(0 0 19px rgba(114,111,100,.15)); }
body[data-active-screen="home"] .traveler::before { background: linear-gradient(125deg, #ddc4af, #a18d83 78%); }
body[data-active-screen="home"] .traveler::after { background: #77736c; }
body[data-active-screen="home"] .home-copy h1 { color: #27251f; text-shadow: none; }
body[data-active-screen="home"] .home-copy h1 span,
body[data-active-screen="home"] .eyebrow { color: #8c6b49; }
body[data-active-screen="home"] .home-copy > p:not(.eyebrow) { color: #514d46; }
body[data-active-screen="home"] .home-feature-grid .feature-card { border-color: #e2dfd8; background: rgba(255,255,255,.86); color: #302e29; }
body[data-active-screen="home"] .home-feature-grid .feature-card span { color: #987553; }
body[data-active-screen="home"] .home-disclaimer { color: #77736c; }

@media (min-width: 700px) {
  .app-shell { width: min(100% - 48px, 1060px); }
  .home-screen { min-height: min(790px, calc(100dvh - 65px)); padding-right: 48%; justify-content: center; }
  .home-art { top: 1%; right: -2%; left: 36%; height: 85%; border-radius: 28px; }
  .home-art::before { right: 15%; top: 12%; width: 110px; height: 110px; }
  .home-art::after { right: 10%; top: 9%; width: 108px; height: 108px; }
  .home-copy { padding: 70px 20px 24px 12px; }
  .home-feature-grid { width: 82%; margin-left: 12px; }
  .home-disclaimer { width: 82%; margin-left: 12px; text-align: left; }
  .progress { max-width: 700px; margin-right: auto; margin-left: auto; }
  .screen:not(.home-screen) { max-width: 760px; margin: 0 auto; }
  .floating-save-button { right: max(24px, calc((100vw - 760px)/2 + 18px)); }
  .detail-navigation .button { width: min(50%, 350px); }
  .results-action-bar .button { width: min(100%, 728px); }
  .activity-list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .results-topline h1 { font-size: 28px; }
  .results-topline > div > p:last-child { font-size: 10px; }
  .overall-card { min-height: 230px; justify-content: center; }
  .timeline-panel { margin-top: 12px; }
  .timeline-item { grid-template-columns: 34px minmax(0,1fr) 28px; }
  .detail-layout { grid-template-columns: minmax(0, 1.15fr) minmax(260px, .85fr); align-items: stretch; }
  .detail-hero-card { display: flex; min-height: 470px; flex-direction: column; justify-content: flex-end; }
  .detail-hero-art { position: absolute; height: 100%; }
  .detail-hero-card { position: relative; }
  .detail-hero-art { top: 0; right: 0; left: 0; height: 100%; }
  .detail-hero-copy { position: relative; z-index: 1; padding: 22px; background: linear-gradient(0deg, rgba(24,16,42,.98), rgba(24,16,42,.9) 54%, transparent); }
  .detail-hero-copy .eyebrow { margin-top: 100px; }
  .detail-title-row h1 { font-size: 23px; }
  .detail-situation { font-size: 16px; }
  .detail-body { font-size: 11px; }
  .detail-sections { align-content: center; }
  .detail-info-card { padding: 15px; }
  .detail-info-card h2 { font-size: 11px; }
  .detail-info-card p { font-size: 10px; }
  .admin-grid { grid-template-columns: 150px 1fr; align-items: center; }
}

@media (max-width: 370px) {
  .app-shell { width: min(100% - 24px, 480px); }
  .activity-list { gap: 6px; }
  .schedule-item { grid-template-columns: 20px 27px minmax(0,1fr) auto; gap: 5px; padding: 7px 5px; }
  .icon-button { width: 25px; }
  .exact-time { grid-template-columns: 1fr 86px; }
  .activity-time { padding: 0 2px; font-size: 9px; }
  .results-topline h1 { font-size: 20px; }
}

body[data-active-screen="results"],
body[data-active-screen="detail"] {
  color-scheme: light;
  color: #24231f;
  background:
    radial-gradient(ellipse at 12% 18%, rgba(205,211,207,.58), transparent 34%),
    radial-gradient(ellipse at 92% 10%, rgba(226,216,205,.5), transparent 28%),
    linear-gradient(180deg, #f8f8f5, #efefec 72%, #f7f6f2);
}
body[data-active-screen="results"]::before,
body[data-active-screen="detail"]::before {
  position: fixed; z-index: 0; inset: 0; pointer-events: none; content: "";
  opacity: .48;
  background:
    radial-gradient(ellipse at 12% 34%, transparent 0 18%, rgba(255,255,255,.82) 19% 23%, transparent 31%),
    radial-gradient(ellipse at 26% 43%, rgba(191,198,195,.34) 0 12%, transparent 27%),
    radial-gradient(ellipse at 90% 4%, rgba(196,174,157,.25) 0 2%, transparent 18%);
}
body[data-active-screen="results"] .app-shell,
body[data-active-screen="detail"] .app-shell { z-index: 1; width: min(100% - 28px, 760px); }
body[data-active-screen="results"] .topbar,
body[data-active-screen="detail"] .topbar,
body[data-active-screen="results"] .progress,
body[data-active-screen="detail"] .progress,
body[data-active-screen="results"] .footer,
body[data-active-screen="detail"] .footer { display: none; }
body[data-active-screen="results"] .screen,
body[data-active-screen="detail"] .screen { color: #24231f; }

body[data-active-screen="results"] .step-kicker,
body[data-active-screen="detail"] .step-kicker { display: none; }
body[data-active-screen="results"] .results-topline { align-items: end; margin: 20px 0 12px; }
body[data-active-screen="results"] .results-topline .eyebrow { color: #9c7658; letter-spacing: .03em; }
body[data-active-screen="results"] .results-topline h1 { color: #26241f; font-family: Georgia, "Noto Serif KR", serif; font-size: 25px; letter-spacing: -.05em; }
body[data-active-screen="results"] .results-topline > div > p:last-child { color: #76736c; }
body[data-active-screen="results"] .results-topline > .button { border-color: #deddd7; background: rgba(255,255,255,.8); color: #494640; }
body[data-active-screen="results"] .overall-card {
  min-height: 270px; align-content: center; padding: 28px 20px; border: 1px solid rgba(255,255,255,.9);
  border-radius: 20px; background: rgba(255,255,255,.88); color: #24231f; text-align: center;
  box-shadow: 0 8px 28px rgba(48,43,35,.08); backdrop-filter: blur(12px);
}
body[data-active-screen="results"] .overall-glow { top: 36px; border-color: rgba(188,151,94,.22); box-shadow: 0 0 36px rgba(203,175,125,.12), inset 0 0 24px rgba(206,184,147,.1); }
body[data-active-screen="results"] .overall-card > p:first-of-type { color: #77736b; font-size: 11px; }
body[data-active-screen="results"] .overall-score { color: #24231f; }
body[data-active-screen="results"] .overall-score strong { font-family: Georgia, "Noto Serif KR", serif; font-size: 64px; text-shadow: none; }
body[data-active-screen="results"] .overall-card h2 { max-width: 34ch; color: #302e29; font-size: 16px; }
body[data-active-screen="results"] .overall-card > p:last-child { color: #8a867e; }
body[data-active-screen="results"] .pillars-summary { justify-content: center; border-color: #e4e2dc; background: rgba(255,255,255,.72); }
body[data-active-screen="results"] .pillar-chip { background: #f0efeb; color: #514d46; }
body[data-active-screen="results"] .score-disclaimer,
body[data-active-screen="results"] .safety-note { color: #858078; }
body[data-active-screen="results"] .timeline-panel,
body[data-active-screen="results"] .result-card { border-color: #e7e5df; background: rgba(255,255,255,.88); color: #2b2924; box-shadow: 0 5px 18px rgba(48,43,35,.05); }
body[data-active-screen="results"] .timeline-panel h2,
body[data-active-screen="results"] .fortune-section .section-title h2 { color: #282620; }
body[data-active-screen="results"] .timeline-item { border-color: #eeece7; }
body[data-active-screen="results"] .timeline-icon { color: #9d725a; }
body[data-active-screen="results"] .timeline-copy strong,
body[data-active-screen="results"] .result-title { color: #2b2924; }
body[data-active-screen="results"] .timeline-copy > span,
body[data-active-screen="results"] .timeline-copy p,
body[data-active-screen="results"] .result-situation,
body[data-active-screen="results"] .fortune-section .section-title p { color: #77736c; }
body[data-active-screen="results"] .timeline-order { color: #a39d91; }
body[data-active-screen="results"] .result-label { color: #9c7658; }
body[data-active-screen="results"] .result-open { color: #876443; }
body[data-active-screen="results"] .score-badge { border-color: #e9ddc6; background: #f8f4eb; color: #805f34; }
body[data-active-screen="results"] .floating-save-button { border-color: #ded8cb; background: #fff; color: #49453d; box-shadow: 0 6px 20px rgba(39,35,28,.14); }
body[data-active-screen="results"] .results-action-bar,
body[data-active-screen="detail"] .detail-navigation { border-color: #e1dfd9; background: rgba(250,250,247,.91); }
body[data-active-screen="results"] .results-action-bar .button,
body[data-active-screen="detail"] .detail-navigation .button-primary { border-color: #22211e; background: #22211e; color: white; }
body[data-active-screen="results"] .save-plan-dialog { border-color: #e1ded6; background: #fbfaf7; color: #25231f; }
body[data-active-screen="results"] .save-plan-dialog-header h2 { color: #25231f; }
body[data-active-screen="results"] .save-plan-description { color: #77736c; }
body[data-active-screen="results"] .plan-title-field { color: #4a4741; }
body[data-active-screen="results"] .plan-title-field input { border-color: #dedbd3; background: white; color: #26241f; }
body[data-active-screen="results"] .dialog-close-button { border-color: #e1ded6; background: white; color: #393630; }

body[data-active-screen="detail"] .detail-toolbar { position: relative; min-height: 46px; align-items: center; margin: 4px 0 16px; }
body[data-active-screen="detail"] .detail-toolbar > .button { min-height: 38px; gap: 5px; border-color: transparent; background: transparent; color: #302e29; font-size: 12px; }
body[data-active-screen="detail"] .detail-page-title { position: absolute; left: 50%; transform: translateX(-50%); color: #292722; font-size: 15px; white-space: nowrap; }
body[data-active-screen="detail"] .detail-toolbar > span { min-width: 40px; color: #77736c; text-align: right; }
body[data-active-screen="detail"] .detail-layout { gap: 14px; }
body[data-active-screen="detail"] .detail-hero-card,
body[data-active-screen="detail"] .detail-info-card { border-color: #e8e6e1; background: rgba(255,255,255,.91); color: #292722; box-shadow: 0 6px 22px rgba(48,43,35,.06); }
body[data-active-screen="detail"] .detail-hero-art { height: 74px; background: linear-gradient(120deg, #bfc0bb, #e6e3dc 55%, #c8c8c2); }
body[data-active-screen="detail"] .detail-hero-art::before,
body[data-active-screen="detail"] .detail-hero-art::after { background: linear-gradient(160deg, #969a96, #c2c2bc); opacity: .55; }
body[data-active-screen="detail"] .detail-hero-art > span { color: #916d51; }
body[data-active-screen="detail"] .detail-hero-copy { padding: 18px; }
body[data-active-screen="detail"] .detail-hero-copy .eyebrow,
body[data-active-screen="detail"] .detail-body-label { color: #8e6a51; }
body[data-active-screen="detail"] .detail-title-row h1 { color: #27251f; font-size: 18px; }
body[data-active-screen="detail"] .detail-score { border-color: #e7ddc9; background: #f8f4eb; color: #795a32; }
body[data-active-screen="detail"] .detail-situation { color: #3d3932; font-size: 15px; }
body[data-active-screen="detail"] .detail-body { color: #68645d; }
body[data-active-screen="detail"] .detail-info-card { grid-template-columns: 28px minmax(0,1fr); gap: 10px; padding: 15px; border-radius: 15px; }
body[data-active-screen="detail"] .info-icon,
body[data-active-screen="detail"] .caution-card .info-icon,
body[data-active-screen="detail"] .advice-card .info-icon { background: #f0eee8; color: #75654e; }
body[data-active-screen="detail"] .detail-info-card h2 { color: #302e29; font-size: 12px; }
body[data-active-screen="detail"] .detail-info-card p { color: #66625b; font-size: 11px; line-height: 1.75; }
body[data-active-screen="detail"] .detail-navigation .button-secondary { border-color: #dedbd4; background: white; color: #36332e; }

@media (min-width: 700px) {
  body[data-active-screen="results"] .app-shell,
  body[data-active-screen="detail"] .app-shell { width: min(100% - 48px, 760px); }
  body[data-active-screen="results"] .results-topline { margin-top: 26px; }
  body[data-active-screen="results"] .overall-card { min-height: 300px; }
  body[data-active-screen="detail"] .detail-toolbar { margin-top: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
