/* Approved Green Glow theme. Existing record and keyboard layout contracts are retained. */
:root{--forest:#00835d;--forest-deep:#006e4d;--lime:#dff5eb;--paper:#fff;--ink:#20212b;--muted:#666979;--line:#e8eaf0;--soft:#edf9f3;--yellow:#fff4cc;--radius:28px;background:#fafbfc}
body{background:#fafbfc}.app-shell{background:#fff;box-shadow:0 0 0 1px var(--line),0 16px 70px #26365006}.workspace{padding:12px 24px 114px}.mobile-header{padding:25px 24px 18px}.brand strong{color:var(--ink);font-size:24px}.brand img.coach-art{width:45px;height:48px}.mobile-header .small-date{font-size:15px;color:var(--muted)}.topbar{gap:12px;margin-bottom:22px;align-items:center}.date-label{font-size:14px!important;color:var(--muted)}.quiet-btn{font-size:12px}.quiet-btn,.text-action{color:var(--muted)}.page-intro h1{font-size:29px;line-height:1.4;color:var(--ink)}.page-intro p{color:var(--muted)}
.glow-welcome{margin:8px 0 26px}.glow-welcome>p{font-size:15px;font-weight:600;color:var(--muted);margin-bottom:9px}.glow-welcome h1{font-size:34px;line-height:1.3;letter-spacing:-1.3px;font-weight:800}.home-grid{gap:18px}.hero-card.glow-hero{border:1px solid var(--line);border-radius:30px;background:#fff;box-shadow:0 8px 28px #26365004;overflow:hidden}.glow-hero .hero-main{background:#fff;padding:23px 21px 0;min-height:0;display:block}.glow-card-label{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:22px;font-size:12px;font-weight:750}.glow-card-label>span:first-child{color:var(--forest)}.glow-duration{color:var(--muted);font-size:11px;font-weight:500}.glow-hero .hero-main h2{font-size:26px;line-height:1.4;letter-spacing:-.9px;max-width:100%;white-space:normal;font-weight:800}.glow-hero .hero-details{margin:8px 0 0;gap:12px;color:var(--muted);font-size:14px}.glow-hero .hero-details span{padding:0;border:0;background:transparent;border-radius:0;font-size:14px;color:var(--muted)}
/* Reuses the approved design-lab's glass surface treatment behind the supplied art. */
.glow-stage{position:relative;display:grid;place-items:center;height:260px;margin:5px -5px 0;isolation:isolate}.glow-stage::before{content:"";position:absolute;width:92%;height:88%;border-radius:50%;background:radial-gradient(ellipse at 25% 55%,#a8e7cd80,transparent 65%),radial-gradient(ellipse at 78% 65%,#dcf0ba80,transparent 70%);box-shadow:inset 0 0 25px #fff;border:1px solid #ffffffd9;z-index:-1}.glow-hero .glow-stage .hero-art.coach-art{position:relative;inset:auto;width:240px;height:260px;max-width:100%;object-fit:contain;margin:0;mix-blend-mode:normal;filter:none}.glow-hero .hero-bottom{padding:0 21px 20px;background:#fff;border:0}.primary{background:linear-gradient(135deg,#00835d,#006e4d);border:1px solid #168c69;box-shadow:inset 0 1px 1px #ffffff50,0 7px 17px #00835d18;color:#fff;min-height:54px;border-radius:17px;font-weight:750}.primary:hover{background:#006e4d}.primary .ui-symbol{color:#fff}.glow-hero .primary{font-size:17px;justify-content:center;gap:14px}.glow-hero .form-note{font-size:12px;line-height:1.6;margin:11px 0 0;color:var(--muted)}
.glow-explore{margin-top:28px}.glow-explore .section-title{margin-bottom:15px;align-items:center}.glow-explore h2{font-size:20px;font-weight:800;letter-spacing:-.6px}.glow-explore .quiet-btn{display:flex;align-items:center;gap:3px;min-height:44px;padding:0;font-size:12px}.glow-missions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.glow-mission{display:flex;align-items:center;flex-direction:column;gap:6px;padding:14px 5px;border:1px solid var(--line);border-radius:23px;background:#fff;min-width:0;color:var(--ink)}.glow-mission.selected{border:2px solid var(--forest);padding:13px 4px;box-shadow:0 5px 15px #00835d0c}.glow-mission img.coach-art{width:48px;height:51px;object-fit:contain}.glow-mission strong{font-size:14px}.glow-mission small{font-size:12px;color:var(--muted)}
.week-card,.paper-card,.small-note,.record-prompt,.next-card,.stats-row,.empty-card{background:#fff;border:1px solid var(--line);box-shadow:0 5px 20px #24345b04;color:var(--ink);border-radius:25px}.week-card{padding:23px 20px}.week-card .section-title{font-size:17px}.week-card .section-title span{color:var(--muted);font-size:11px}.week-number,.week-caption{display:none}.week-dots{gap:7px;margin-top:20px}.day-cell{color:var(--muted)}.day-cell .circle{background:#edf9f3;color:var(--muted);border:0;font-weight:700}.day-cell .circle.today{background:#ffe9a0;outline:2px solid #f1dfaa;outline-offset:3px;color:#735716}.day-cell .circle.full,.day-cell .circle.partial,.day-cell .circle.rest{background:#edf9f3}.week-foot{color:var(--muted);border-color:var(--line);font-size:12px}.week-foot button{color:var(--forest)}.record-prompt{padding:18px;margin-top:18px}.record-prompt .record-icon,.small-note .note-icon{background:transparent}.record-prompt h3{font-size:16px}.record-prompt p{font-size:12px}.small-note{padding:20px}.small-note h3{font-size:15px}.small-note p{font-size:13px}.page-footer{color:var(--muted)}
.mobile-nav{border-color:var(--line);background:#ffffffef;-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px)}.mobile-nav .nav-btn{color:var(--muted)}.mobile-nav .nav-btn.active{background:var(--soft);color:var(--forest)}.mobile-nav .nav-btn .ui-icon{width:42px;height:42px}.tag,.external-link{background:var(--soft);color:var(--forest);border-color:#d0eadf}.choice.selected,.mood-btn.selected,.habit-option.selected{background:var(--soft);border-color:var(--forest);color:var(--ink)}.result-hero,.support-card{background:#f4fbf7;border:1px solid var(--line);color:var(--ink)}.result-hero p,.support-card p{color:var(--muted)}.bar{background:#67b69c}.bar.empty{background:#f0f3f2}.next-card h3,.next-card p{color:var(--ink)}.next-card .text-action{color:var(--forest)}.sample-banner{background:#fffbeb;border-color:#f1e5ba}.sample-banner strong{color:#755e22}.sample-banner p{color:var(--muted)}.chat-mode.app-shell,.app-shell.chat-mode .chat-card.chat-screen{background:#f7faf9}.app-shell.chat-mode .chat-heading,.app-shell.chat-mode .chat-input-area{background:#ffffffef;border-color:var(--line)}.app-shell.chat-mode .chat-bubble{border-color:var(--line);color:var(--ink)}.app-shell.chat-mode .chat-message.user .chat-bubble{background:var(--forest);border-color:var(--forest);color:#fff}.app-shell.chat-mode .chat-send{background:var(--forest)}.app-shell.chat-mode .chat-send:disabled{background:#b7c4bf}.app-shell.chat-mode .chat-prompts button{background:#fff;border-color:#d0eadf;color:#006e4d}.chat-composer:focus-within{border-color:var(--forest);box-shadow:0 0 0 2px #00835d18}dialog{border:1px solid var(--line);background:#fff}button:focus-visible,a:focus-visible,select:focus-visible{outline-color:var(--forest)}
@media(max-width:360px){.workspace{padding-left:18px;padding-right:18px}.mobile-header{padding:22px 18px 14px}.mobile-header .small-date{font-size:12px}.glow-welcome h1{font-size:30px}.glow-hero .hero-main{padding:20px 17px 0}.glow-hero .hero-main h2{font-size:23px}.glow-hero .hero-bottom{padding:0 17px 18px}.glow-stage{height:235px}.glow-hero .glow-stage .hero-art.coach-art{width:215px;height:235px}.glow-missions{gap:7px}.glow-mission{border-radius:20px}.glow-explore h2{font-size:18px}.glow-mission strong{font-size:13px}.week-card .section-title{font-size:15px}}
.app-shell:not(.chat-mode) :is(.paper-card,.small-note,.record-prompt,.hero-card,.week-card,.next-card){border-color:var(--line);box-shadow:0 5px 20px #24345b04}.app-shell:not(.chat-mode) .week-card{background:#fff;border-color:var(--line)}.app-shell:not(.chat-mode) .primary{border-color:#168c69;box-shadow:inset 0 1px 1px #ffffff50,0 7px 17px #00835d18}.app-shell:not(.chat-mode) .primary.lime{background:#00835d;color:#fff;border-color:#168c69}
.week-card .day-cell small{color:var(--muted)}
.glow-stage{height:290px}.glow-hero .glow-stage .hero-art.coach-art{width:270px;height:290px}.glow-stage .glow-spark{position:absolute;right:9px;top:62px;width:34px;height:34px;z-index:1;object-fit:contain}.glow-stage::before{background:radial-gradient(ellipse at 25% 55%,#a8e7cdb0,transparent 65%),radial-gradient(ellipse at 78% 65%,#dcf0bab0,transparent 70%)}
@media(max-width:360px){.glow-stage{height:255px}.glow-hero .glow-stage .hero-art.coach-art{width:235px;height:255px}}

.page-intro h1,.health-center-title{font-size:29px;font-weight:700;line-height:1.4;letter-spacing:-1.5px;color:var(--ink)}
.health-center-title{white-space:nowrap;word-break:normal;margin-inline:-8px;letter-spacing:-1.5px}
@media(max-width:430px){.page-intro h1,.health-center-title{font-size:clamp(19px,6.1vw,26px)}}

/* Stage 4: keep account features on their own routes without changing saved records. */
.profile-links{display:grid;gap:12px;margin-top:22px}.profile-links button{display:flex;align-items:center;gap:12px;width:100%;padding:18px;background:#fff;color:var(--ink);border:1px solid var(--line);border-radius:20px;text-align:left;font:inherit;min-height:64px}.profile-links button span{flex:1;min-width:0;overflow-wrap:anywhere}.profile-links .ui-icon{width:30px;height:30px}.profile-links .ui-symbol{width:20px;height:20px}.section-back{margin-bottom:18px}.account-panel,.challenge-shell,.rewards-panel{min-width:0}.nav-btn span{white-space:normal}.view .page-intro h1{overflow-wrap:anywhere}
@media(max-width:430px){.mobile-nav .nav-btn{min-width:0;font-size:12px}.profile-links button{padding:16px}.view .account-panel{margin-top:12px}}

.route-today .account-guest-prompt .account-heading{display:flex;flex-direction:column;text-align:center;gap:10px}.route-today .account-guest-prompt .account-heading>img{width:210px;height:230px;object-fit:contain;background:radial-gradient(ellipse,#e1f5df 0,transparent 70%);order:1}.route-today .account-guest-prompt .account-heading>div{order:0}.route-today .challenge-detail-top{display:flex;flex-direction:column;align-items:center;text-align:center}.route-today .challenge-detail-top>img{width:200px;height:220px;object-fit:contain}.route-today .challenge-detail-top>div{width:100%}.route-today .account-heading-compact{padding:12px;box-shadow:none}.route-today .account-heading-compact img{width:40px;height:45px}.route-today .account-heading-compact h2{font-size:17px}.route-challenges .challenges-nav{grid-template-columns:repeat(2,minmax(0,1fr))}

.profile-links{grid-template-columns:repeat(2,minmax(0,1fr));margin:0 0 20px;gap:8px}.profile-links button{padding:12px;gap:8px;font-size:13px;flex-wrap:wrap}.profile-links button span{flex-basis:calc(100% - 42px)}.profile-links button>.ui-symbol{display:none}

/* Full instructions need readable space even in the compact catalog. */
.habit-catalog-item{min-width:0}
.habit-catalog-item details{font-size:14px;line-height:1.75;width:100%}
.habit-catalog-item summary{cursor:pointer;color:var(--forest);font-weight:700;padding:8px 0}
.habit-catalog-item details ol{margin:8px 0 0;padding-left:22px;overflow-wrap:anywhere}
.habit-catalog-item details li+li{margin-top:10px}
.habit-catalog-item:has(details[open]){grid-column:1/-1}
.habit-catalog-item img{align-self:center}
@media(max-width:430px){#habit-dialog .dialog-inner{padding:20px}#habit-dialog .habit-option{padding:14px}#habit-dialog .dialog-header h2{font-size:22px}}

/* One generous character-led row per mission, grouped by activity. */
.mission-tabs{display:flex;gap:7px;overflow-x:auto;padding:8px 0 14px;scrollbar-width:thin;margin-top:16px}
.mission-tabs button{flex:0 0 auto;min-height:44px;padding:10px 17px;border:1px solid var(--line,#dce6df);border-radius:24px;background:#fff;color:var(--muted,#60756b);font:inherit;font-size:15px;font-weight:650;cursor:pointer}
.mission-tabs button[aria-pressed=true]{background:var(--forest,#00835d);border-color:var(--forest,#00835d);color:#fff;box-shadow:0 4px 12px #00835d20}
.mission-count{font-size:13px!important;color:var(--muted)!important;margin:0 0 14px!important}
.mission-list,.habit-options.mission-list{display:grid;grid-template-columns:minmax(0,1fr);gap:18px;width:100%;margin:0}
.mission-row,.habit-option.mission-row{display:grid;grid-template-columns:minmax(150px,40%) minmax(0,1fr);align-items:center;gap:20px;padding:24px;border:1px solid var(--line,#e4e7eb);border-radius:26px;background:#fff;min-width:0;box-shadow:0 6px 24px #173d3405;text-align:left}
.mission-art{display:grid;place-items:center;min-width:0;border-radius:24px;background:radial-gradient(ellipse,#ecf8ef 0%,#fff 72%)}
.mission-row .mission-art img{width:100%;height:230px;max-width:none;object-fit:contain;margin:0;align-self:center}
.mission-copy{min-width:0}.mission-copy>strong,.mission-copy>h3{display:block;font-size:23px!important;line-height:1.3!important;font-weight:750;margin:0 0 10px!important;color:var(--ink,#20372f)}
.mission-copy>.habit-duration{display:block;font-size:14px;color:var(--muted);margin-bottom:12px}
.mission-copy>p{font-size:15px!important;line-height:1.7!important;margin:0 0 12px!important}
.mission-open,.mission-copy summary{font:inherit;font-size:14px!important;font-weight:700;color:var(--forest,#00835d);padding:10px 0;border:0;background:none;text-align:left;cursor:pointer}
.mission-expanded{grid-column:1/-1}.mission-expanded .challenge-detail-top img{display:none}.mission-expanded .challenge-detail{box-shadow:none;margin-top:12px}
@media(max-width:520px){.mission-row,.habit-option.mission-row{grid-template-columns:minmax(0,1fr);gap:6px;padding:22px}.mission-row .mission-art img{height:230px;width:250px;max-width:100%}.mission-copy>strong,.mission-copy>h3{font-size:22px!important}.mission-tabs button{padding:9px 15px}.mission-copy>p{font-size:15px!important}.challenge-import:has(.mission-list){padding:0;border:0;box-shadow:none;background:none}}
/* The app remains a narrow column even in desktop browsers. */
.mission-row,.habit-option.mission-row{grid-template-columns:minmax(0,1fr);gap:8px}
.mission-row .mission-art img{height:240px;width:270px;max-width:100%}
.mission-tabs{gap:4px;scrollbar-width:none}.mission-tabs::-webkit-scrollbar{display:none}
.mission-tabs button{padding:10px 12px;font-size:14px}
