.time-dashboard { --period-tone: var(--life-blue); }
.time-dashboard[data-period="afternoon"] { --period-tone: var(--life-gold); }
.time-dashboard[data-period="evening"] { --period-tone: var(--life-rose); }
.time-dashboard .day-display { width: 158px; flex-shrink: 0; }
.time-dashboard .desktop-life-nav { gap: 0; }
.time-dashboard .desktop-life-nav button { padding: 0 10px; gap: 6px; }
.time-strip { border-top: 1px solid var(--life-line); padding: 18px 0 17px; }
.time-now { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.time-now > span { display: flex; align-items: center; gap: 9px; color: var(--tone); }
.time-now b { font-size: 16px; font-weight: 550; }
.time-now time { font-size: 12px; color: #98a5a7; font-variant-numeric: tabular-nums; }
.time-now > small { font-size: 10px; color: #83908e; }
.period-track { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 21px 0 13px; padding: 0; }
.period-track li { display: flex; align-items: center; gap: 6px; padding-bottom: 12px; border-bottom: 2px solid #323938; color: #6f7c79; }
.period-track li + li { justify-content: center; }
.period-track li:last-child { justify-content: end; }
.period-track li > span { display: flex; }
.period-track svg { width: 14px; height: 14px; }
.period-track strong { font-size: 11px; font-weight: 500; }
.period-track small { font-size: 9px; font-variant-numeric: tabular-nums; }
.period-track .current { border-color: var(--tone); color: var(--tone); }
.period-track .passed { border-color: #62796b; color: #91a598; }
.period-atmosphere { font-size: 12px; color: #b9c3bf; margin: 0; line-height: 1.8; }
.upcoming-message { display: flex; align-items: baseline; gap: 7px; margin-top: 11px; color: #91a39e; font-size: 10px; }
.upcoming-message svg { width: 12px; height: 12px; align-self: center; }
.upcoming-message > span { flex-shrink: 0; }
.upcoming-message strong { font-weight: 400; overflow-wrap: anywhere; }
.time-dashboard .budget-link { margin-bottom: 7px; }
.phone-notifications { border-top: 1px solid var(--life-line); padding: 9px 0 21px; }
.phone-notifications > header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 7px; }
.phone-notifications h2 { display: flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 500; color: #9eada6; margin: 0; }
.phone-notifications h2 svg { width: 14px; height: 14px; }
.notification-list { display: grid; gap: 8px; }
.phone-notification { display: flex; align-items: center; gap: 11px; padding: 12px; border: 1px solid #35413c; border-left: 2px solid var(--tone); background: #1a2220; border-radius: 5px; color: #d6dfd6; width: 100%; cursor: pointer; text-align: left; }
.phone-notification:hover { background: #242e29; border-color: var(--tone); }
.notification-symbol { color: var(--tone); display: flex; flex-shrink: 0; }
.notification-copy { flex: 1; min-width: 0; display: grid; gap: 5px; }
.notification-copy small { color: #96a69e; font-size: 9px; display: flex; flex-wrap: wrap; gap: 5px; }
.notification-copy b { color: var(--tone); font-size: 9px; font-weight: 500; margin-left: auto; }
.notification-copy strong { font-size: 12px; line-height: 1.6; font-weight: 500; }
.notification-copy > span { color: #95a39c; font-size: 10px; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.phone-notification > svg { width: 14px; height: 14px; }
.notifications-quiet { display: flex; gap: 9px; align-items: center; font-size: 11px; color: #8f9e94; padding: 13px 0; }
.notifications-quiet svg { width: 15px; height: 15px; }
.life-action.period-favored:not(:disabled) { border-top-color: var(--tone); }
.time-dashboard .life-action:hover:not(:disabled) { transform: none; }
.time-dashboard .life-action { min-height: 205px; }
.action-decision-preview { display: grid; gap: 8px; margin-top: 10px; width: 100%; }
.decision-hint { display: grid; justify-items: start; gap: 4px; border-top: 1px solid #36423b; padding-top: 7px; }
.decision-hint small { font-size: 9px; line-height: 1.6; color: #91a89a; }
.decision-hint .effect-chip { font-size: 9px; padding: 2px 4px; white-space: normal; }
.decision-hint.distance small { color: #c09991; }
.action-risk { display: flex; align-items: start; gap: 4px; color: #cf9b8c; font-size: 9px; line-height: 1.7; }
.action-risk svg { width: 11px; height: 11px; margin-top: 2px; }
.evening-risk-note { display: flex; gap: 8px; align-items: start; color: #d0a394 !important; font-size: 12px; line-height: 1.9; }
.evening-risk-note svg { width: 14px; height: 14px; margin-top: 4px; }
.early-finish-button { display: flex; align-items: center; gap: 9px; width: 100%; padding: 14px 12px; margin-top: 10px; border: 1px solid #465a51; border-radius: 5px; color: #bed1c5; background: #1b2822; font-size: 12px; cursor: pointer; }
.early-finish-button > span { margin-left: auto; flex-shrink: 0; }
.early-finish-button:hover { border-color: var(--life-green); background: #27372e; }
.early-finish-button .effect-chip { font-size: 10px; padding: 3px 4px; }
.decision-dialog-copy { color: #b8c7bb; font-size: 13px; line-height: 1.9; }
.decision-dialog-effects { margin: 18px 0; }
.decision-records { padding-top: 21px; margin-top: 21px; border-top: 1px solid #39463b; }
.decision-records h3 { font-size: 14px; margin: 0 0 12px; }
.decision-record { padding: 14px 0; border-bottom: 1px solid #2f3a34; }
.decision-record strong { font-size: 12px; font-weight: 500; color: #bacdbb; }
.decision-record p { font-size: 12px; line-height: 1.8; color: #9bad9f; margin: 9px 0; }
.decision-record small { font-size: 11px; color: #8d9e92; }
.decision-record.distance strong { color: #d4a399; }
.person-influence { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: -3px 0 14px; }
.person-influence small { font-size: 10px; color: #9dae9f; }
.person-influence .effect-chip { font-size: 10px; padding: 3px 5px; }
.person-influence.distance small { color: #bf968c; }
.phone-category-nav { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 3px; padding: 12px 0 9px; border-bottom: 1px solid #313d36; }
.phone-category-nav button { display: flex; align-items: center; justify-content: center; gap: 3px; min-height: 29px; padding: 5px 2px; border: 1px solid transparent; border-radius: 4px; background: transparent; color: #8d9e94; font-size: 10px; cursor: pointer; }
.phone-category-nav button[aria-pressed="true"] { color: #d9ddc6; border-color: #5f6c57; background: #2e392d; }
.phone-category-nav b { font-size: 9px; font-weight: 400; color: #d7bc85; }
.phone-device .phone-heading { padding: 20px 0 16px; }
.phone-device .phone-content { height: clamp(250px, calc(100svh - 415px), 460px); }
.phone-device .phone-empty { height: 210px; gap: 12px; }
.message-row { padding: 12px 0; }
.message-summary .message-badge { display: inline-block; color: #85998b; font-size: 9px; font-style: normal; margin-top: 6px; }
.message-row.needs-attention .message-summary > span > strong { color: #e0e7dd; }
.message-row.needs-attention .message-badge { color: #a8cbb4; }
.message-row.message-kind-bank .message-badge { color: var(--life-gold); }
.message-row.message-kind-relationship .message-badge { color: var(--life-rose); }
.message-row.message-kind-core.needs-attention { border-left: 2px solid #87b397; padding-left: 7px; }
.message-row.category-daily .sender-avatar { background: #252d2b; color: #839a8d; }
.message-row.category-daily .message-summary > b { color: #8fa197; }
.message-row.category-receipt:not(.message-kind-bank) .message-summary p { -webkit-line-clamp: 1; }
.phone-notification.message-kind-bank { border-left-color: var(--life-gold); }
.phone-notification.message-kind-relationship { border-left-color: var(--life-rose); background: #28221f; }
.phone-apps { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; }
.phone-app > span { width: 35px; height: 35px; border-radius: 8px; }
.phone-app small { font-size: 10px; }
.phone-app svg { width: 19px; height: 19px; }
.phone-relationship-note { font-size: 11px; line-height: 1.9; color: #a4b6ab; border-top: 1px solid #37463d; padding-top: 14px; }
.phone-relationship-note svg { width: 14px; height: 14px; vertical-align: middle; margin-right: 6px; }
.relationship-feedback h3 { display: flex; align-items: center; gap: 8px; }
[data-mobile-tab="relationships"] .life-main { grid-column: 2 / -1; }
[data-mobile-tab="relationships"] .phone-column { display: none; }
.relationship-legend { display: flex; flex-wrap: wrap; gap: 12px 24px; padding: 19px 0; font-size: 10px; color: #94a19b; }
.relationship-legend b { font-weight: 400; color: #6f8177; margin-left: 5px; font-variant-numeric: tabular-nums; }
.relationship-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px; }
.relationship-person { border: 1px solid #35413e; border-radius: 8px; padding: 20px 20px 0; background: #181e1e; min-width: 0; }
.relationship-person > header { display: flex; gap: 12px; align-items: center; }
.person-avatar { width: 42px; height: 44px; display: grid; place-items: center; border: 1px solid #495a51; color: var(--tone); border-radius: 7px; flex-shrink: 0; }
.person-avatar svg { width: 21px; height: 21px; }
.relationship-person h2 { font-size: 17px; font-weight: 550; margin: 0 0 5px; line-height: 1.4; overflow-wrap: anywhere; }
.relationship-person header small { color: #91a095; font-size: 10px; }
.relationship-value { margin-left: auto; display: grid; gap: 5px; text-align: right; font-size: 26px; color: var(--tone); font-variant-numeric: tabular-nums; }
.relationship-value small { font-size: 10px; }
.relationship-meter { height: 3px; margin-top: 19px; background: #313d35; }
.relationship-meter i { height: 100%; display: block; background: var(--tone); transition: width .5s; }
.person-status { font-size: 12px; line-height: 1.9; color: #b2c1b6; min-height: 46px; margin: 16px 0; overflow-wrap: anywhere; }
.relationship-person footer { border-top: 1px solid #323e35; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; align-items: center; padding: 12px 0; }
.relationship-person footer > small { color: #899b8c; font-size: 9px; }
.relationship-person button { display: flex; gap: 6px; align-items: center; padding: 8px 9px; color: #c4d5c2; border: 1px solid #4a5c4e; border-radius: 5px; background: #26352b; font-size: 11px; cursor: pointer; }
.relationship-person button > svg { width: 14px; height: 14px; }
.relationship-person button > span { display: flex; align-items: center; gap: 1px; color: #adbd96; border-left: 1px solid #516045; padding-left: 5px; }
.relationship-person button > span svg { width: 11px; height: 11px; }
.relationship-person button:hover:not(:disabled) { border-color: var(--tone); background: #304338; }
.relationship-person button:disabled { opacity: .5; cursor: not-allowed; }
.relationship-person.inactive { opacity: .62; }
.relationship-recent { border-top: 1px solid var(--life-line); margin-top: 28px; padding-top: 22px; }
.relationship-recent h2 { font-size: 16px; margin: 0 0 15px; }
.relationship-recent > div { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 15px; padding: 11px 0; border-bottom: 1px solid #2d3630; }
.relationship-recent small { font-size: 9px; color: #8d9a91; }
.relationship-recent > div > span { font-size: 11px; color: #b3c1b6; }
.relationship-recent p { margin: 0 0 0 auto; display: flex; flex-wrap: wrap; gap: 8px; }
.relationship-recent b { font-size: 11px; font-weight: 400; }
.relationship-recent .relationship-empty { font-size: 12px; color: #809287; }
.relationship-feedback { border-top: 1px solid #39423b; margin-top: 22px; padding-top: 20px; }
.relationship-feedback h3 { font-size: 13px; font-weight: 500; margin: 0 0 12px; color: #b8c9b7; }
.relationship-feedback > div { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; padding: 10px 0; color: #a9bbaa; font-size: 12px; }
.relationship-feedback strong { font-size: 24px; font-weight: 500; color: #d8e4d3; }
.relationship-feedback small { font-size: 14px; color: #7c917f; }
.relationship-feedback b { font-weight: 500; margin-left: auto; }
@media (min-width: 761px) and (max-width: 1100px) {
  .time-dashboard .desktop-life-nav button { padding: 0 7px; font-size: 10px; gap: 4px; }
  .time-dashboard .desktop-life-nav svg { width: 15px; height: 15px; }
  .time-dashboard .life-topbar { gap: 12px; }
  .time-dashboard .day-display { width: 130px; font-size: 10px; }
  .time-dashboard .life-brand strong { font-size: 20px; }
  .relationship-person { padding: 17px 15px 0; }
  .time-dashboard .action-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 761px) and (max-width: 900px) {
  .time-dashboard .desktop-life-nav button > span { display: none; }
  .time-dashboard .desktop-life-nav button { padding: 0 15px; }
  .relationship-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .mobile-life-nav { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .time-dashboard .day-display { width: 137px; }
  [data-mobile-tab="relationships"] .character-card { display: none; }
  [data-mobile-tab="relationships"] .life-main { grid-column: 1; }
  .time-strip { padding-top: 16px; }
  .period-track { margin-top: 19px; }
  .period-track li { gap: 4px; }
  .period-track small { font-size: 8px; }
  .time-now > small { font-size: 9px; }
  .phone-notifications { padding-bottom: 20px; }
  .relationship-grid { grid-template-columns: 1fr; gap: 15px; }
  .relationship-person { padding: 19px 18px 0; }
  .relationship-legend { gap: 11px 17px; font-size: 9px; }
  .relationship-recent > div > span { flex: 1; }
  .relationship-recent p { width: 100%; padding-left: 47px; }
  .time-dashboard[data-mobile-tab="relationships"] { padding-bottom: calc(144px + env(safe-area-inset-bottom, 0px)); }
  .phone-device .phone-content { height: max(125px, calc(100svh - 432px - env(safe-area-inset-bottom, 0px))); }
  .phone-device .phone-empty { height: min(180px, calc(100svh - 450px)); min-height: 110px; }
  .time-dashboard .action-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .time-dashboard .life-action { min-height: 215px; }
  .early-finish-button { flex-wrap: wrap; font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  .relationship-meter i { transition: none; }
}
