@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Noto+Sans+Thai:wght@400;500;600;700&display=swap');

:root {
  --ink: #17212b;
  --ink-soft: #42515b;
  --muted: #8a9596;
  --paper: #f7f4ee;
  --paper-dark: #eee9df;
  --white: #fffdfa;
  --line: #e5e0d7;
  --coral: #e77a61;
  --coral-soft: #f8ded6;
  --mint: #9fd8c5;
  --mint-soft: #e5f4ed;
  --sun: #f4c77d;
  --sun-soft: #fff0d2;
  --lilac: #b9b0dc;
  --lilac-soft: #eeeafa;
  --shadow: 0 18px 40px rgba(23, 33, 43, .06);
  --radius: 22px;
  --display: 'DM Sans', 'Noto Sans Thai', sans-serif;
  --thai: 'Noto Sans Thai', 'DM Sans', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--thai); font-size: 14px; line-height: 1.6; }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
.hidden { display: none !important; }
.mobile-only { display: none; }

.eyebrow { margin: 0 0 8px; color: var(--muted); font: 600 10px/1.2 var(--display); letter-spacing: .16em; text-transform: uppercase; }
.light-eyebrow { color: rgba(255,255,255,.48); }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.18; letter-spacing: -.03em; }
h1 { font-size: clamp(30px, 4vw, 49px); margin-bottom: 12px; }
h2 { font-size: 20px; margin-bottom: 6px; }
h3 { font-size: 19px; margin-bottom: 8px; }
em { color: var(--coral); font-style: normal; }
.button { border: 0; border-radius: 13px; padding: 13px 17px; font-weight: 700; transition: transform .2s, background .2s, box-shadow .2s; display: inline-flex; align-items: center; justify-content: center; gap: 12px; }
.button:hover { transform: translateY(-2px); }
.button:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.button-primary { background: var(--coral); color: white; box-shadow: 0 8px 18px rgba(231,122,97,.22); }
.button-primary:hover { background: #da6d54; }
.button-secondary { background: var(--ink); color: white; }
.button-ghost { background: transparent; border: 1px solid var(--line); color: var(--ink); }
.button-wide { width: 100%; }
.text-button, .small-link { border: 0; background: transparent; color: var(--coral); padding: 0; font-weight: 700; white-space: nowrap; }
.text-button:hover, .small-link:hover { color: #bd5d49; }
.small-link { color: var(--ink-soft); font-size: 12px; font-weight: 600; }
.panel { background: rgba(255,253,250,.78); border: 1px solid rgba(229,224,215,.9); border-radius: var(--radius); box-shadow: var(--shadow); padding: 26px; }
.panel-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 18px; }
.panel-heading h2 { margin-bottom: 0; }
.panel-count { min-width: 27px; height: 27px; padding: 3px 8px; border-radius: 10px; background: var(--paper-dark); color: var(--ink-soft); text-align: center; font: 600 12px/21px var(--display); }
.panel-intro { color: var(--muted); margin-bottom: 20px; }
.form-message { min-height: 20px; color: var(--coral); font-size: 12px; margin: 12px 0 0; }
.form-message[data-tone="success"] { color: #4c9077; }
.empty-state { color: var(--muted); padding: 28px 14px; text-align: center; background: rgba(247,244,238,.6); border-radius: 14px; font-size: 13px; }
.empty-state.compact { padding: 16px 10px; }

.auth-view { min-height: 100vh; background: var(--ink); color: white; position: relative; overflow: hidden; }
.auth-view:before { content: ''; position: absolute; inset: 0; opacity: .14; background-image: linear-gradient(rgba(255,255,255,.15) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.15) 1px, transparent 1px); background-size: 88px 88px; mask-image: linear-gradient(90deg, black, transparent 70%); }
.auth-ambient { position: absolute; border-radius: 50%; filter: blur(3px); pointer-events: none; }
.ambient-one { width: 510px; height: 510px; background: rgba(159,216,197,.13); top: -200px; right: -80px; }
.ambient-two { width: 370px; height: 370px; border: 1px solid rgba(231,122,97,.32); bottom: -180px; left: 28%; }
.auth-layout { position: relative; z-index: 1; width: min(1180px, calc(100% - 48px)); min-height: 100vh; margin: auto; display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 9%; padding: 60px 0; }
.brand-lockup { display: flex; align-items: center; gap: 11px; font: 500 11px/1.05 var(--display); letter-spacing: .04em; }
.brand-lockup b { font-weight: 700; }
.brand-mark { width: 38px; height: 38px; border: 2px solid var(--coral); border-radius: 12px 12px 12px 4px; position: relative; display: inline-block; transform: rotate(-8deg); }
.brand-mark:before, .brand-mark:after, .brand-mark span { content: ''; position: absolute; border-radius: 99px; transform: rotate(8deg); }
.brand-mark:before { width: 17px; height: 8px; border: 2px solid var(--mint); border-left: 0; right: 4px; bottom: 9px; }
.brand-mark:after { width: 8px; height: 8px; background: var(--sun); right: 7px; top: 6px; }
.brand-mark span { width: 18px; height: 2px; background: var(--coral); left: 7px; top: 14px; }
.light-brand { color: white; }
.dark-brand { color: var(--ink); }
.auth-intro { padding: 10px 0; }
.auth-intro .brand-lockup { margin-bottom: 92px; }
.auth-intro h1 { max-width: 580px; font-size: clamp(42px, 6vw, 76px); letter-spacing: -.055em; margin-bottom: 20px; }
.auth-intro h1 em { color: var(--coral); }
.auth-lead { color: rgba(255,255,255,.58); max-width: 390px; font-size: 15px; }
.auth-note { display: flex; align-items: center; gap: 10px; margin-top: 50px; color: rgba(255,255,255,.42); max-width: 390px; font-size: 12px; }
.note-dot { width: 7px; height: 7px; flex: 0 0 7px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 5px rgba(159,216,197,.11); }
.auth-card { background: var(--white); color: var(--ink); border-radius: 24px; padding: 33px; box-shadow: 0 30px 80px rgba(0,0,0,.25); }
.auth-card-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 32px; }
.version-chip { background: var(--mint-soft); color: #528a77; border-radius: 99px; padding: 5px 10px; font-size: 10px; }
.auth-tabs { display: flex; gap: 18px; border-bottom: 1px solid var(--line); margin-bottom: 28px; }
.auth-tab { padding: 0 0 12px; background: transparent; border: 0; color: var(--muted); font-weight: 700; position: relative; }
.auth-tab.active { color: var(--ink); }
.auth-tab.active:after { content: ''; position: absolute; height: 2px; bottom: -1px; left: 0; right: 0; background: var(--coral); }
.form-heading { display: flex; gap: 13px; align-items: flex-start; margin-bottom: 23px; }
.form-heading h2 { margin: 0 0 3px; font-size: 20px; }
.form-heading p { color: var(--muted); font-size: 12px; margin: 0; }
.section-number { color: var(--coral); font: 700 12px var(--display); padding-top: 3px; }
.auth-form label, .reflection-panel label, .task-form > input { display: block; color: var(--ink-soft); font-weight: 600; font-size: 12px; margin-bottom: 15px; }
.auth-form input, textarea, select, .task-form > input, .task-form-row input { display: block; width: 100%; background: #faf8f3; border: 1px solid var(--line); border-radius: 11px; outline: none; color: var(--ink); padding: 12px 13px; margin-top: 6px; transition: border .2s, box-shadow .2s; }
.auth-form input:focus, textarea:focus, select:focus, .task-form input:focus { border-color: var(--coral); box-shadow: 0 0 0 3px var(--coral-soft); }
.privacy-line { color: var(--muted); font-size: 10px; line-height: 1.5; margin: 20px 0 0; text-align: center; }

.app-shell { min-height: 100vh; display: flex; }
.sidebar { width: 252px; flex: 0 0 252px; background: var(--ink); color: white; display: flex; flex-direction: column; padding: 30px 17px 22px; min-height: 100vh; position: sticky; top: 0; height: 100vh; z-index: 20; }
.sidebar-top { display: flex; justify-content: space-between; align-items: center; padding: 0 12px; }
.side-caption { color: rgba(255,255,255,.34); font-size: 10px; margin: 33px 12px 12px; }
.main-nav { display: flex; flex-direction: column; gap: 3px; }
.nav-item { border: 0; background: transparent; color: rgba(255,255,255,.51); text-align: left; padding: 10px 12px; display: flex; gap: 12px; border-radius: 12px; align-items: center; transition: background .2s, color .2s; }
.nav-item:hover { background: rgba(255,255,255,.06); color: white; }
.nav-item.active { background: rgba(231,122,97,.13); color: white; }
.nav-item.active .nav-icon { color: var(--coral); }
.nav-icon { color: rgba(255,255,255,.38); width: 21px; text-align: center; font-size: 20px; font-family: var(--display); }
.nav-item b, .nav-item small { display: block; }
.nav-item b { font-size: 12px; font-weight: 600; letter-spacing: -.01em; }
.nav-item small { color: inherit; opacity: .55; font-size: 9px; margin-top: 1px; }
.nav-divider { color: rgba(255,255,255,.27); font: 600 9px var(--display); letter-spacing: .12em; text-transform: uppercase; margin: 25px 12px 7px; }
.sidebar-bottom { margin-top: auto; }
.safe-box { display: flex; gap: 10px; padding: 13px 11px; border: 1px solid rgba(255,255,255,.1); border-radius: 13px; align-items: center; }
.safe-pulse { width: 7px; height: 7px; background: var(--mint); border-radius: 50%; box-shadow: 0 0 0 5px rgba(159,216,197,.1); }
.safe-box strong, .safe-box small { display: block; }
.safe-box strong { font-size: 10px; font-weight: 600; }
.safe-box small { font-size: 9px; color: rgba(255,255,255,.42); }
.logout-button { border: 0; background: transparent; color: rgba(255,255,255,.42); display: flex; justify-content: space-between; width: 100%; padding: 15px 12px 0; font-size: 11px; }
.logout-button:hover { color: white; }
.main-area { min-width: 0; flex: 1; }
.topbar { height: 76px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; padding: 0 4.3%; background: rgba(247,244,238,.8); position: sticky; top: 0; z-index: 10; backdrop-filter: blur(12px); }
.breadcrumb { display: flex; align-items: center; gap: 11px; color: var(--muted); font-size: 11px; }
.breadcrumb i { font-style: normal; color: var(--line); }
.breadcrumb b { color: var(--ink); font-weight: 600; }
.topbar-actions { display: flex; align-items: center; gap: 22px; }
.notification-button { position: relative; border: 0; background: transparent; color: var(--ink-soft); font-size: 19px; }
.notification-dot { position: absolute; right: -1px; top: 1px; width: 5px; height: 5px; border-radius: 50%; background: var(--coral); }
.user-chip { display: flex; align-items: center; gap: 9px; font-weight: 600; font-size: 11px; }
.avatar { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 10px; background: var(--lilac-soft); color: #685f98; font: 700 11px var(--display); }
.content-wrap { width: min(1170px, calc(100% - 84px)); margin: 0 auto; padding: 44px 0 76px; }
.page-section { display: none; animation: section-in .35s ease-out; }
.page-section.active-section { display: block; }
@keyframes section-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

.section-hero { display: flex; justify-content: space-between; align-items: center; min-height: 180px; padding-bottom: 35px; }
.section-hero h1 { margin-bottom: 8px; }
.hero-description { color: var(--muted); margin-bottom: 0; }
.hero-orbit { width: 158px; height: 158px; position: relative; flex: 0 0 158px; }
.orbit-line { position: absolute; border: 1px solid rgba(231,122,97,.38); border-radius: 50%; inset: 0; transform: rotate(-25deg); }
.orbit-one { transform: rotate(35deg) scaleX(.52); }
.orbit-two { border-color: rgba(159,216,197,.75); transform: rotate(-35deg) scaleX(.74); }
.orbit-core { position: absolute; inset: 32px; background: var(--ink); color: white; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; box-shadow: 0 12px 28px rgba(23,33,43,.2); }
.orbit-core span, .orbit-core small { color: rgba(255,255,255,.52); font-size: 9px; }
.orbit-core b { font: 700 30px var(--display); letter-spacing: -.07em; }
.smart-banner { display: grid; grid-template-columns: 1fr 1.6fr auto; gap: 24px; align-items: center; padding: 18px 22px; background: var(--ink); color: white; border-radius: 17px; margin-bottom: 16px; position: relative; overflow: hidden; }
.smart-banner:after { content: ''; position: absolute; width: 190px; height: 190px; border: 1px solid rgba(159,216,197,.22); border-radius: 50%; right: 16%; top: -80px; }
.smart-label { display: flex; align-items: center; gap: 12px; position: relative; z-index: 1; }
.smart-label strong { display: block; font-size: 14px; }
.spark { color: var(--sun); font-size: 23px; }
.smart-banner > p { color: rgba(255,255,255,.58); font-size: 12px; margin: 0; position: relative; z-index: 1; }
.smart-banner .text-button { position: relative; z-index: 1; }
.metric-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 16px; }
.metric-card { border-radius: 17px; padding: 19px 20px 17px; min-height: 150px; position: relative; overflow: hidden; }
.metric-card:after { content: ''; width: 90px; height: 90px; position: absolute; right: -22px; top: -22px; border: 1px solid rgba(23,33,43,.08); border-radius: 50%; }
.metric-mood { background: var(--coral-soft); }
.metric-stress { background: var(--sun-soft); }
.metric-study { background: var(--mint-soft); }
.metric-top { display: flex; justify-content: space-between; color: var(--ink-soft); font-size: 11px; }
.metric-icon { color: var(--ink); font: 20px var(--display); }
.metric-card strong { display: block; margin: 10px 0 2px; font-size: 23px; letter-spacing: -.05em; }
.metric-card p { margin: 0; color: var(--ink-soft); font-size: 11px; }
.metric-progress { height: 5px; border-radius: 99px; background: rgba(23,33,43,.1); margin-top: 15px; overflow: hidden; }
.metric-progress span { height: 100%; width: 0; display: block; background: var(--coral); border-radius: inherit; transition: width .45s; }
.metric-stress .metric-progress span { background: #d2993f; }
.study-progress span { background: #5aa988; }
.mini-bars { display: flex; gap: 4px; align-items: end; height: 20px; position: absolute; bottom: 15px; right: 20px; }
.mini-bars span { display: block; width: 4px; border-radius: 3px 3px 0 0; background: rgba(231,122,97,.65); }
.dashboard-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 16px; margin-bottom: 16px; }
.lower-grid { grid-template-columns: 1fr 1fr; }
.mood-trend-panel, .care-panel, .reminder-panel, .quote-panel { min-height: 290px; }
.mood-chart { height: 172px; display: flex; align-items: end; gap: 9px; padding: 20px 0 4px; border-bottom: 1px solid var(--line); }
.chart-column { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: end; align-items: center; gap: 5px; }
.chart-bar-wrap { height: 125px; width: 100%; display: flex; align-items: end; gap: 3px; justify-content: center; }
.chart-bar { width: 8px; border-radius: 5px 5px 2px 2px; background: var(--coral); min-height: 8px; }
.chart-energy { width: 5px; border-radius: 4px; background: var(--mint); min-height: 5px; }
.chart-label { font: 10px var(--display); color: var(--muted); }
.empty-chart { width: 100%; align-self: center; text-align: center; color: var(--muted); font-size: 12px; }
.chart-legend { display: flex; gap: 17px; margin-top: 12px; color: var(--muted); font-size: 10px; }
.chart-legend span { display: flex; gap: 6px; align-items: center; }
.legend-dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }.coral-dot { background: var(--coral); }.legend-line { width: 11px; height: 3px; border-radius: 2px; background: var(--mint); display: inline-block; }
.recommendation-list { display: flex; flex-direction: column; gap: 8px; }
.recommendation { display: grid; grid-template-columns: 7px 1fr auto; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.recommendation:last-child { border-bottom: 0; }
.rec-line { width: 6px; height: 34px; border-radius: 6px; background: var(--coral); }.recommendation:nth-child(2) .rec-line { background: var(--mint); }.recommendation:nth-child(3) .rec-line { background: var(--lilac); }
.recommendation p, .recommendation strong { margin: 0; display: block; }.recommendation strong { font-size: 12px; }.recommendation p { color: var(--muted); font-size: 10px; line-height: 1.45; margin-top: 2px; }.recommendation button { border: 0; background: transparent; color: var(--coral); font: 700 18px var(--display); }
.skeleton-line { height: 13px; background: var(--paper-dark); border-radius: 5px; margin: 18px 0; animation: pulse 1.3s infinite; }.skeleton-line.short { width: 75%; }@keyframes pulse { 50% { opacity: .45; } }
.reminder-list { min-height: 94px; }.reminder-item { display: flex; align-items: center; gap: 10px; border-bottom: 1px solid var(--line); padding: 9px 0; }.reminder-item:last-child { border-bottom: 0; }.reminder-symbol { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 9px; background: var(--mint-soft); color: #4c9077; font: 700 13px var(--display); }.reminder-item strong { font: 700 13px var(--display); display: block; }.reminder-item small { display: block; color: var(--muted); font-size: 10px; }.reminder-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }.toggle { width: 32px; height: 18px; border: 0; padding: 2px; border-radius: 99px; background: var(--paper-dark); }.toggle i { display: block; width: 14px; height: 14px; background: white; border-radius: 50%; transition: transform .2s; }.toggle.on { background: var(--mint); }.toggle.on i { transform: translateX(14px); }.delete-small { border: 0; color: var(--muted); background: transparent; font-size: 14px; }.inline-form { display: flex; gap: 7px; margin-top: 14px; }.inline-form select, .inline-form input { margin: 0; padding: 9px 10px; font-size: 11px; }.inline-form select { flex: 1.5; }.inline-form input { width: 102px; }.inline-form .button { padding: 8px 12px; font-size: 11px; }.quote-panel { background: var(--lilac-soft); position: relative; padding: 31px; display: flex; flex-direction: column; justify-content: center; }.quote-mark { font: 700 58px/0.8 Georgia, serif; color: var(--lilac); opacity: .85; }.quote-panel p { max-width: 340px; font-size: 20px; line-height: 1.4; letter-spacing: -.03em; margin: 14px 0 8px; }.quote-caption { color: #756c9b; font-size: 10px; margin-bottom: 19px; }

.section-header { display: flex; justify-content: space-between; align-items: start; gap: 30px; margin-bottom: 35px; }.section-header > div:first-child { max-width: 650px; }.section-header h1 { margin-bottom: 9px; }.section-header p:last-child { color: var(--muted); margin: 0; }.section-stamp { min-width: 84px; height: 84px; border-radius: 50%; text-align: center; display: grid; place-items: center; align-content: center; font: 700 19px/1 var(--display); transform: rotate(7deg); }.section-stamp small { font: 600 9px var(--thai); margin-top: 3px; }.coral-stamp { background: var(--coral-soft); color: #bd5d49; }.sun-stamp { background: var(--sun-soft); color: #b28131; }.mint-stamp { background: var(--mint-soft); color: #4c9077; }.lilac-stamp { background: var(--lilac-soft); color: #756c9b; }
.split-layout { display: grid; grid-template-columns: 1.45fr .55fr; gap: 17px; margin-bottom: 17px; }.form-panel { padding: 31px; }.question-block { padding-bottom: 25px; margin-bottom: 25px; border-bottom: 1px solid var(--line); }.question-label { display: flex; justify-content: space-between; gap: 10px; color: var(--ink); font-weight: 700; font-size: 13px; margin-bottom: 16px; }.question-label output { color: var(--coral); font: 700 12px var(--display); }.optional { color: var(--muted); font-size: 10px; font-weight: 400; }.mood-options { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }.mood-option { border: 1px solid var(--line); background: var(--white); border-radius: 14px; padding: 13px 6px 10px; color: var(--ink-soft); min-height: 108px; transition: border .2s, transform .2s, background .2s; }.mood-option:hover { transform: translateY(-2px); }.mood-option.selected { border-color: var(--coral); background: var(--coral-soft); color: var(--ink); box-shadow: 0 0 0 3px rgba(231,122,97,.1); }.mood-face { display: grid; place-items: center; height: 34px; width: 34px; margin: 0 auto 8px; border-radius: 50%; background: var(--paper-dark); color: var(--ink); font: 700 20px/1 var(--display); }.face-low { background: #d9def0; color: #606b93; }.face-tired { background: var(--sun-soft); color: #b28131; }.face-okay { background: #f1efe8; color: #8b8e84; }.face-good { background: var(--mint-soft); color: #4c9077; }.face-great { background: var(--lilac-soft); color: #756c9b; }.mood-option b, .mood-option small { display: block; }.mood-option b { font-size: 11px; }.mood-option small { font-size: 9px; color: var(--muted); margin-top: 3px; }.range-input { accent-color: var(--coral); width: 100%; }.range-labels { display: flex; justify-content: space-between; color: var(--muted); font-size: 10px; }.side-note { border-radius: var(--radius); background: var(--ink); color: white; padding: 30px; position: relative; overflow: hidden; min-height: 300px; }.side-note:after { content: ''; width: 170px; height: 170px; border: 1px solid rgba(159,216,197,.28); border-radius: 50%; position: absolute; right: -70px; bottom: -65px; }.side-note-number { color: var(--coral); font: 700 12px var(--display); margin-bottom: 75px; }.side-note h3 { font-size: 20px; max-width: 210px; }.side-note p { color: rgba(255,255,255,.53); font-size: 12px; max-width: 235px; }.line-art { display: flex; gap: 4px; position: absolute; bottom: 27px; left: 30px; align-items: end; }.line-art span { width: 2px; height: 12px; background: var(--mint); border-radius: 5px; }.line-art span:nth-child(2) { height: 22px; }.line-art span:nth-child(3) { height: 35px; background: var(--coral); }.history-panel { padding: 26px; }.history-list { display: grid; gap: 7px; }.history-item { display: grid; grid-template-columns: 54px 100px 1fr auto; align-items: center; gap: 14px; border-bottom: 1px solid var(--line); padding: 10px 0; }.history-item:last-child { border-bottom: 0; }.history-date { color: var(--muted); font-size: 10px; }.history-mood { font-weight: 700; font-size: 12px; }.history-energy { color: #4c9077; font-size: 11px; }.history-note { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; }.scale-note { display: flex; justify-content: space-between; color: var(--muted); border-bottom: 1px solid var(--line); padding-bottom: 13px; margin-bottom: 3px; font-size: 11px; }.stress-question { padding: 20px 0; border-bottom: 1px solid var(--line); }.stress-question p { margin-bottom: 13px; font-weight: 700; }.stress-options { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }.stress-option input { position: absolute; opacity: 0; }.stress-option span { display: block; text-align: center; border: 1px solid var(--line); border-radius: 9px; color: var(--muted); padding: 8px 3px; font: 600 11px var(--display); }.stress-option input:checked + span { border-color: var(--coral); background: var(--coral-soft); color: #bd5d49; }.stress-option span:hover { border-color: var(--coral); }.warm-note { background: #423c39; }.warm-note:after { border-color: rgba(244,199,125,.3); }.breath-line { display: flex; gap: 5px; position: absolute; bottom: 30px; left: 30px; }.breath-line i { width: 9px; height: 9px; border-radius: 50%; background: var(--sun); }.breath-line i:nth-child(2), .breath-line i:nth-child(4) { opacity: .4; }.stress-result { background: var(--ink); color: white; margin-bottom: 17px; display: flex; justify-content: space-between; align-items: center; gap: 30px; }.result-main { display: flex; align-items: center; gap: 24px; }.result-ring { width: 116px; height: 116px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--coral) 0deg, rgba(255,255,255,.12) 0deg); position: relative; }.result-ring:after { content: ''; position: absolute; inset: 9px; background: var(--ink); border-radius: 50%; }.result-ring span { position: relative; z-index: 1; text-align: center; }.result-ring b { display: block; font: 700 36px/.9 var(--display); }.result-ring small { color: rgba(255,255,255,.5); font-size: 10px; }.stress-result .eyebrow { color: rgba(255,255,255,.4); }.stress-result h2 { color: white; }.stress-result p { color: rgba(255,255,255,.58); font-size: 12px; max-width: 390px; }.result-actions { display: flex; gap: 9px; flex-wrap: wrap; justify-content: flex-end; }.result-actions .rec-chip { border: 1px solid rgba(255,255,255,.15); border-radius: 10px; padding: 9px 12px; color: rgba(255,255,255,.75); font-size: 10px; }.stress-history { display: flex; gap: 10px; overflow-x: auto; }.stress-history-card { min-width: 160px; padding: 14px; background: var(--paper); border-radius: 13px; }.stress-history-card strong { font: 700 23px var(--display); }.stress-history-card small { display: block; color: var(--muted); font-size: 10px; }.stress-history-card p { margin: 6px 0 0; font-size: 11px; }

.relax-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 17px; margin-bottom: 17px; }.breathing-panel { min-height: 485px; }.pill { color: var(--muted); background: var(--paper-dark); border-radius: 99px; padding: 6px 10px; font-size: 10px; white-space: nowrap; }.mint-pill { background: var(--mint-soft); color: #4c9077; }.breathing-stage { text-align: center; padding: 20px 0 17px; }.breathing-orbit { width: 250px; height: 250px; margin: auto; display: grid; place-items: center; border-radius: 50%; border: 1px dashed #c6e7dc; }.breathing-circle { width: 155px; height: 155px; display: flex; flex-direction: column; justify-content: center; align-items: center; border-radius: 50%; background: radial-gradient(circle at 38% 30%, #f8e8db, var(--coral-soft)); box-shadow: 0 0 0 18px rgba(231,122,97,.05), 0 0 0 36px rgba(159,216,197,.07); transition: transform 1s ease-in-out; }.breathing-circle.active { animation: breathe 14s ease-in-out infinite; }.breathing-circle span { color: var(--ink-soft); font-size: 12px; }.breathing-circle b { font: 700 37px var(--display); color: var(--coral); }.breathing-stage > p { color: var(--muted); font-size: 11px; margin: 21px 0 0; }.breathing-controls { display: flex; justify-content: center; gap: 8px; }.session-meta { display: flex; justify-content: space-between; border-top: 1px solid var(--line); margin-top: 24px; padding-top: 15px; color: var(--muted); font-size: 11px; }.session-meta b { color: var(--ink); }.sound-toggle { border: 0; background: transparent; color: var(--muted); font-size: 10px; }.sound-toggle b { color: var(--coral); font-size: 10px; }.sound-dot { display: inline-block; width: 7px; height: 7px; background: var(--muted); border-radius: 50%; margin-right: 4px; }.sound-toggle.active .sound-dot { background: var(--mint); box-shadow: 0 0 0 4px var(--mint-soft); }.sound-toggle.active b { color: #4c9077; }.relax-side { display: grid; gap: 17px; }.mini-activity { min-height: 232px; position: relative; overflow: hidden; }.activity-index { position: absolute; right: 22px; top: 21px; color: var(--muted); font: 700 11px var(--display); }.mini-activity h3 { font-size: 27px; }.mini-activity p:not(.eyebrow) { color: var(--muted); font-size: 12px; max-width: 300px; }.nature-card { background: var(--mint-soft); border-color: #d4eee2; }.nature-line { display: flex; align-items: end; gap: 6px; height: 34px; margin-top: 19px; }.nature-line i { display: block; width: 13px; border-radius: 14px 14px 0 0; background: #7ebda8; height: 15px; }.nature-line i:nth-child(2) { height: 25px; }.nature-line i:nth-child(3) { height: 19px; background: #5b9b85; }.nature-line i:nth-child(4) { height: 31px; }.nature-line i:nth-child(5) { height: 21px; background: #9dd2bf; }.reminder-management { padding: 27px; }.reminder-management .reminder-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 30px; }.positive-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: 17px; margin-bottom: 17px; }.affirmation-panel { background: var(--lilac-soft); min-height: 365px; display: flex; flex-direction: column; justify-content: center; padding: 40px; }.affirmation-panel > p { font-size: 29px; line-height: 1.35; letter-spacing: -.05em; max-width: 490px; margin: 22px 0 45px; }.affirmation-footer { display: flex; align-items: center; justify-content: space-between; color: #756c9b; font: 600 10px var(--display); letter-spacing: .1em; }.round-button { width: 33px; height: 33px; border-radius: 50%; border: 1px solid #c7c0e1; color: #756c9b; background: transparent; font-size: 18px; }.reflection-panel { padding: 31px; }.reflection-panel label { margin-bottom: 18px; }.reflection-panel textarea { resize: vertical; min-height: 69px; }.positive-footer { background: var(--ink); color: white; padding: 34px 40px; border-radius: var(--radius); display: flex; justify-content: space-between; align-items: center; overflow: hidden; }.positive-footer h2 { font-size: 23px; }.positive-footer p:last-child { color: rgba(255,255,255,.55); font-size: 12px; margin: 0; }.sun-doodle { width: 160px; height: 110px; position: relative; border: 1px solid rgba(244,199,125,.4); border-radius: 50%; transform: rotate(-20deg); }.sun-doodle span { position: absolute; width: 40px; height: 40px; border-radius: 50%; background: var(--sun); top: 34px; left: 55px; }.sun-doodle i { position: absolute; height: 2px; width: 25px; background: var(--sun); left: 63px; top: 17px; }.sun-doodle i:nth-child(2) { transform: rotate(55deg); top: 27px; left: 98px; }.sun-doodle i:nth-child(3) { top: 75px; }.sun-doodle i:nth-child(4) { transform: rotate(-55deg); top: 27px; left: 26px; }.study-overview { background: var(--ink); color: white; border-radius: var(--radius); padding: 29px 33px; display: flex; align-items: center; justify-content: space-between; gap: 28px; margin-bottom: 17px; }.study-overview .eyebrow { color: rgba(255,255,255,.42); }.study-overview h2 { font-size: 28px; }.study-overview p:last-child { color: rgba(255,255,255,.55); font-size: 11px; margin: 0; }.big-progress { width: 210px; height: 210px; border-radius: 50%; background: conic-gradient(var(--mint) 0deg, rgba(255,255,255,.12) 0deg); position: relative; display: grid; place-items: center; flex: 0 0 210px; }.big-progress:after { content: ''; position: absolute; inset: 15px; background: var(--ink); border-radius: 50%; }.big-progress span { position: relative; z-index: 1; }.study-layout { display: grid; grid-template-columns: 1.35fr .65fr; gap: 17px; }.task-panel { min-height: 380px; }.task-list { margin-bottom: 22px; }.task-item { display: flex; align-items: center; gap: 13px; padding: 12px 0; border-bottom: 1px solid var(--line); }.task-item:last-child { border-bottom: 0; }.task-check { width: 20px; height: 20px; border-radius: 7px; border: 1px solid var(--line); background: transparent; display: grid; place-items: center; color: transparent; }.task-item.done .task-check { background: var(--mint); border-color: var(--mint); color: var(--ink); }.task-item.done .task-title { text-decoration: line-through; color: var(--muted); }.task-title { font-weight: 700; font-size: 12px; }.task-meta { color: var(--muted); font-size: 10px; margin-top: 2px; }.task-delete { margin-left: auto; background: transparent; color: var(--muted); border: 0; }.task-form { border-top: 1px solid var(--line); padding-top: 18px; }.task-form > input { margin-bottom: 8px; }.task-form-row { display: grid; grid-template-columns: 1fr .9fr .85fr auto; gap: 7px; }.task-form-row input, .task-form-row select { margin: 0; padding: 10px; font-size: 11px; }.task-form-row .button { padding: 10px 13px; font-size: 11px; }.study-aside { display: grid; gap: 17px; }.study-tip { background: var(--coral-soft); min-height: 190px; position: relative; overflow: hidden; }.study-tip:after { content: ''; width: 130px; height: 130px; border: 1px solid rgba(231,122,97,.32); border-radius: 50%; position: absolute; right: -45px; bottom: -40px; }.tip-label { color: #bd5d49; font: 600 10px var(--display); letter-spacing: .13em; }.study-tip h3 { margin-top: 22px; }.study-tip p { color: var(--ink-soft); font-size: 12px; max-width: 220px; }.tip-line { display: block; width: 35px; height: 3px; border-radius: 2px; background: var(--coral); }.focus-card { background: var(--sun-soft); }.focus-card strong { font: 700 54px/.9 var(--display); letter-spacing: -.08em; }.focus-card > span { color: var(--muted); font-size: 11px; }.focus-card p:not(.eyebrow) { color: var(--ink-soft); font-size: 12px; }.help-grid { display: grid; grid-template-columns: 1.3fr .7fr; gap: 17px; }.ai-panel { padding: 0; overflow: hidden; }.ai-header { display: flex; align-items: center; gap: 13px; padding: 24px 27px 18px; }.ai-avatar { width: 43px; height: 43px; border-radius: 15px 15px 15px 5px; background: var(--ink); display: grid; place-items: center; color: var(--sun); font-size: 21px; }.ai-header h2 { margin-bottom: 0; }.ai-header p { color: var(--muted); font-size: 11px; margin-bottom: 0; }.online-pill { margin-left: auto; color: #4c9077; font-size: 10px; display: flex; align-items: center; gap: 5px; }.online-pill i { width: 6px; height: 6px; border-radius: 50%; background: var(--mint); }.ai-safety-strip { margin: 0 27px; padding: 10px 12px; border-radius: 10px; background: var(--paper); display: flex; gap: 8px; color: var(--muted); }.ai-safety-strip span { display: grid; place-items: center; width: 15px; height: 15px; border-radius: 50%; background: var(--sun); color: var(--ink); font: 700 10px var(--display); }.ai-safety-strip p { font-size: 10px; line-height: 1.4; margin: 0; }.chat-messages { min-height: 260px; max-height: 430px; overflow: auto; padding: 22px 27px; display: flex; flex-direction: column; gap: 10px; }.chat-bubble { max-width: 78%; padding: 11px 13px; border-radius: 5px 14px 14px 14px; background: var(--paper); color: var(--ink-soft); font-size: 12px; white-space: pre-wrap; }.chat-bubble.user { align-self: flex-end; border-radius: 14px 5px 14px 14px; background: var(--ink); color: white; }.chat-bubble.typing { color: var(--muted); font-style: italic; }.chat-form { border-top: 1px solid var(--line); display: flex; gap: 10px; padding: 17px 20px 17px 27px; align-items: end; }.chat-form textarea { resize: none; margin: 0; background: var(--paper); padding: 10px 12px; }.send-button { width: 40px; height: 40px; border: 0; border-radius: 12px; background: var(--coral); color: white; font: 700 21px var(--display); }.chat-form + .form-message { padding: 0 27px 18px; margin: 0; }.help-aside { display: grid; gap: 17px; }.crisis-panel { background: var(--ink); color: white; }.crisis-icon { display: grid; place-items: center; width: 31px; height: 31px; border-radius: 10px; background: var(--coral); color: white; font-weight: 700; margin-bottom: 23px; }.crisis-panel .eyebrow { color: rgba(255,255,255,.43); }.crisis-panel h3 { color: white; }.crisis-panel > p { color: rgba(255,255,255,.55); font-size: 11px; }.hotline { color: white; text-decoration: none; border-top: 1px solid rgba(255,255,255,.12); display: flex; align-items: center; justify-content: space-between; padding: 14px 0 0; margin-top: 13px; font-size: 11px; }.hotline b, .hotline small { display: block; }.hotline b { color: var(--mint); font: 700 22px var(--display); }.hotline small { color: rgba(255,255,255,.49); font-size: 9px; }.hotline > span:last-child { color: var(--coral); }.human-panel { background: var(--lilac-soft); }.human-panel p:not(.eyebrow):not(.support-copy) { color: var(--ink-soft); font-size: 12px; }.support-copy { border-left: 2px solid var(--lilac); padding-left: 11px; color: #756c9b; font-size: 11px; margin: 18px 0 0; }

@media (max-width: 1050px) {
  .sidebar { width: 222px; flex-basis: 222px; }
  .content-wrap { width: min(100% - 48px, 950px); }
  .smart-banner { grid-template-columns: 1fr 1fr; }.smart-banner > p { grid-column: 1 / -1; order: 3; }.smart-banner .text-button { justify-self: end; }
  .dashboard-grid, .lower-grid { grid-template-columns: 1fr; }
  .mood-trend-panel, .care-panel, .reminder-panel, .quote-panel { min-height: auto; }
  .relax-grid, .positive-grid { grid-template-columns: 1fr; }.relax-side { grid-template-columns: 1fr 1fr; }.reminder-management .reminder-list { grid-template-columns: 1fr 1fr; }
  .help-grid { grid-template-columns: 1fr; }.help-aside { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 780px) {
  .mobile-only { display: inline-grid; place-items: center; }
  .sidebar { position: fixed; transform: translateX(-102%); transition: transform .25s; box-shadow: 20px 0 50px rgba(0,0,0,.22); }.sidebar.open { transform: translateX(0); }
  .topbar { height: 64px; padding: 0 20px; gap: 12px; }.breadcrumb { margin-right: auto; }.breadcrumb span, .breadcrumb i { display: none; }.user-chip > span:last-child { display: none; }.topbar-actions { gap: 9px; }
  .icon-button { border: 0; background: transparent; color: var(--ink); font-size: 21px; width: 31px; height: 31px; }.sidebar .icon-button { color: white; }
  .content-wrap { width: calc(100% - 36px); padding-top: 31px; }
  .section-hero { min-height: 150px; }.hero-orbit { width: 115px; height: 115px; flex-basis: 115px; }.orbit-core { inset: 24px; }.orbit-core b { font-size: 23px; }
  .metric-grid { grid-template-columns: 1fr; gap: 10px; }.metric-card { min-height: 122px; }.metric-card strong { margin-top: 8px; }.metric-card p { padding-right: 55px; }
  .section-header { margin-bottom: 25px; }.section-header h1 { font-size: 33px; }.section-stamp { min-width: 67px; height: 67px; font-size: 15px; }.section-stamp small { font-size: 8px; }
  .split-layout, .study-layout { grid-template-columns: 1fr; }.side-note { min-height: 245px; }.side-note-number { margin-bottom: 45px; }
  .mood-options { gap: 4px; }.mood-option { min-height: 94px; padding: 8px 2px; }.mood-option small { display: none; }.mood-face { width: 29px; height: 29px; font-size: 16px; margin-bottom: 5px; }
  .stress-options span { font-size: 10px; padding: 7px 1px; }.stress-result { display: block; }.result-actions { justify-content: flex-start; margin-top: 20px; }.result-main { gap: 16px; }.result-ring { width: 93px; height: 93px; }.result-ring:after { inset: 7px; }.result-ring b { font-size: 28px; }
  .relax-side, .help-aside { grid-template-columns: 1fr; }.reminder-management .reminder-list { grid-template-columns: 1fr; }.breathing-orbit { width: 210px; height: 210px; }.breathing-circle { width: 135px; height: 135px; }
  .positive-footer { padding: 28px; }.sun-doodle { transform: scale(.7) rotate(-20deg); margin-right: -20px; }.affirmation-panel > p { font-size: 25px; }
  .study-overview { padding: 23px; }.big-progress { width: 125px; height: 125px; flex-basis: 125px; }.big-progress:after { inset: 10px; }.task-form-row { grid-template-columns: 1fr 1fr; }.task-form-row .button { grid-column: 1 / -1; }
  .ai-header { padding: 21px 19px 15px; }.ai-safety-strip { margin: 0 19px; }.chat-messages { padding: 18px 19px; }.chat-form { padding: 14px 15px 14px 19px; }
}
@media (max-width: 480px) {
  .auth-layout { width: calc(100% - 28px); display: block; padding: 26px 0; }.auth-intro { padding: 5px 3px 28px; }.auth-intro .brand-lockup { margin-bottom: 48px; }.auth-intro h1 { font-size: 38px; }.auth-lead { font-size: 13px; }.auth-note { margin-top: 23px; font-size: 10px; }.auth-card { padding: 24px 20px; }.auth-card-head { margin-bottom: 23px; }
  .content-wrap { width: calc(100% - 28px); }.smart-banner { padding: 17px; gap: 12px; }.smart-banner .text-button { font-size: 11px; }.panel { padding: 20px; }.panel-heading { margin-bottom: 14px; }.section-hero { align-items: end; }.hero-orbit { display: none; }.section-header { gap: 12px; }.section-header h1 { font-size: 28px; }.section-stamp { min-width: 59px; height: 59px; font-size: 13px; }.form-panel { padding: 20px; }.mood-options { grid-template-columns: repeat(5, 1fr); }.mood-option b { font-size: 9px; }.history-item { grid-template-columns: 43px 74px 1fr; gap: 7px; }.history-note { grid-column: 2 / -1; }.inline-form { flex-wrap: wrap; }.inline-form select { flex: 1 1 55%; }.inline-form input { flex: 1; }.inline-form .button { flex: 1; }.quote-panel p { font-size: 18px; }.result-main { align-items: flex-start; }.result-main > div:last-child { flex: 1; }.result-main h2 { font-size: 18px; }.result-main p { font-size: 11px; }.result-ring { flex: 0 0 82px; height: 82px; width: 82px; }.result-ring b { font-size: 25px; }.result-ring small { font-size: 8px; }.scale-note { display: block; }.scale-note span:last-child { display: block; margin-top: 4px; }.stress-question p { font-size: 12px; }.breathing-stage { padding-top: 7px; }.breathing-orbit { width: 185px; height: 185px; }.breathing-circle { width: 120px; height: 120px; }.session-meta { display: block; }.sound-toggle { float: right; }.positive-footer { min-height: 160px; }.positive-footer h2 { font-size: 19px; }.positive-footer p:last-child { font-size: 10px; }.sun-doodle { display: none; }.study-overview { display: block; }.big-progress { margin: 22px auto 0; }.task-form-row { grid-template-columns: 1fr 1fr; }.task-form-row select { grid-column: 1; }.task-form-row .button { grid-column: 2; }.hotline b { font-size: 19px; }
}
@keyframes breathe { 0%,100% { transform: scale(.86); } 29% { transform: scale(1); } 57% { transform: scale(1); } 85% { transform: scale(.86); } }
.toast { position: fixed; z-index: 100; right: 24px; bottom: 24px; max-width: min(360px, calc(100% - 32px)); padding: 12px 15px; border-radius: 12px; background: var(--ink); color: white; box-shadow: 0 15px 35px rgba(23,33,43,.2); font-size: 12px; opacity: 0; pointer-events: none; transform: translateY(12px); transition: opacity .22s, transform .22s; }
.toast.visible { opacity: 1; transform: translateY(0); }
.toast.error { background: #9c4c42; }
.toast.success { background: #4c9077; }
@media (max-width: 480px) { .toast { right: 16px; bottom: 16px; } }
