:root{color-scheme:light;--bg:#f3f5f2;--paper:#fff;--ink:#183530;--muted:#52685f;--accent:#00665d;--soft:#dfeee7;--line:#d9e3dc;--hero:#123f39;--hero-text:#f2faf1;--highlight:#c6e7ba;--shadow:#183a3212;--glass:#fffffff0;font:17px/1.5 -apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif}
:root.dark{color-scheme:dark;--bg:#112321;--paper:#1a302d;--ink:#eff5ef;--muted:#b3c9bf;--accent:#9ce1cd;--soft:#24483e;--line:#365047;--shadow:#0003;--glass:#1a302df0}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink)}h1,h2,h3,p{margin:0}button,input,select,textarea{font:inherit;color:inherit}button,a,input,select,summary{touch-action:manipulation}button{border:0;min-height:44px;background:none;padding:0;cursor:pointer;transition:transform .16s,background .18s}button:active,a.primary:active{transform:scale(.98)}button:disabled{opacity:.55;cursor:wait}a{color:var(--accent)}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible{outline:3px solid var(--accent);outline-offset:4px}[hidden]{display:none!important}.icon{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}.icon-definitions{position:absolute;width:0;height:0;overflow:hidden}.app-shell{max-width:1140px;margin:auto;min-height:100dvh}.app-header{display:flex;align-items:center;justify-content:space-between;padding:24px 32px;gap:16px}.brand{display:flex;align-items:center;gap:9px;font-size:24px;font-weight:750;text-decoration:none;color:var(--ink);letter-spacing:-.9px}.brand-icon{width:33px;height:33px;border-radius:11px;display:grid;place-items:center;background:var(--accent);color:var(--paper)}.brand-icon .icon{width:20px;height:20px;fill:currentColor;stroke-width:0}.connection-dot{width:6px;height:6px;background:var(--muted);border-radius:50%;margin-left:1px}.connection-dot.connected{background:var(--accent)}.header-tools{display:flex;align-items:center;gap:16px}.header-tools>span{font-size:13px;color:var(--muted)}.icon-button{width:44px;height:44px;border-radius:50%;display:grid;place-items:center;background:var(--paper);flex-shrink:0}main{padding:30px 32px 125px;max-width:930px;margin:auto}.page-intro{margin:0 0 24px}.eyebrow{display:block;font-size:11px;letter-spacing:1.6px;text-transform:uppercase;color:var(--accent);font-weight:750;margin-bottom:9px}h1{font-size:44px;line-height:1.1;letter-spacing:-1.6px;font-weight:750}h2{font-size:28px;line-height:1.18;letter-spacing:-.85px}h3{font-size:20px;line-height:1.3;letter-spacing:-.45px}.page-intro p,.empty-state>p{font-size:17px;line-height:1.6;color:var(--muted);margin-top:13px;max-width:530px}.symbol{display:grid;place-items:center;background:var(--soft);color:var(--accent);width:60px;height:60px;border-radius:20px;margin-bottom:22px}.symbol .icon{width:29px;height:29px}.import-card{background:var(--paper);border-radius:26px;padding:28px;max-width:550px;box-shadow:0 12px 32px var(--shadow)}label{display:block;font-size:14px;color:var(--muted);margin-bottom:8px;font-weight:550}input,select{border:1px solid var(--line);background:var(--bg);border-radius:12px;padding:12px;min-height:48px;width:100%;min-width:0}input::placeholder{color:var(--muted)}input[type=file]{font-size:14px}select{font-size:16px;max-width:180px;min-height:44px}.choice-row{display:flex;align-items:center;justify-content:space-between;width:100%;padding:15px 0;border-bottom:1px solid var(--line);gap:12px;text-align:left;font-size:16px}.choice-row>label{margin:0;font-size:16px;color:var(--ink);font-weight:400}.choice-row>span:last-child{display:flex;align-items:center;gap:8px;color:var(--accent);font-size:14px}.engine-button{min-height:65px}.primary{display:flex;align-items:center;justify-content:center;gap:10px;width:100%;min-height:52px;border-radius:16px;background:var(--accent);color:var(--paper);font-size:17px;font-weight:650;text-decoration:none;padding:12px 16px;margin-top:20px}.dark .primary{color:var(--bg)}.secondary{display:flex;align-items:center;justify-content:center;gap:9px;width:100%;min-height:48px;background:var(--soft);color:var(--accent);border-radius:15px;font-size:16px;padding:11px 16px;margin-top:12px}.privacy-note{display:flex;gap:10px;align-items:flex-start;margin:20px 0 0;font-size:14px;line-height:1.6;color:var(--muted)}.privacy-note .icon{color:var(--accent);width:19px;height:19px;margin-top:2px}.quiet-note{font-size:14px;color:var(--muted);margin-top:18px;max-width:540px}.import-details summary,.detailed summary{list-style:none;display:flex;align-items:center;justify-content:space-between;min-height:50px;cursor:pointer;gap:9px}.import-details summary::-webkit-details-marker,.detailed summary::-webkit-details-marker{display:none}.import-details{font-size:14px;color:var(--muted);border-bottom:1px solid var(--line);padding-bottom:4px}.import-details[open] .icon,.detailed[open] summary .icon{transform:rotate(180deg)}.import-details p{margin:10px 0 15px;font-size:13px}.progress-steps{display:flex;justify-content:space-between;gap:8px;margin-top:22px;font-size:12px;color:var(--muted)}.progress-steps span{position:relative;padding-top:13px;flex:1}.progress-steps span:before{position:absolute;content:"";height:3px;top:0;width:100%;border-radius:2px;background:var(--line)}.progress-steps span.active{color:var(--accent);font-weight:650}.progress-steps span.active:before,.progress-steps span.done:before{background:var(--accent)}
.reading-toolbar{display:flex;align-items:center;justify-content:space-between;margin-bottom:16px}.back-button{display:flex;align-items:center;gap:6px;color:var(--muted);font-size:14px}.back-button .icon{width:16px;height:16px}.icon-button[aria-pressed=true]{background:var(--soft);color:var(--accent)}.icon-button[aria-pressed=true] .icon{fill:var(--accent)}.video-cover{padding:31px 29px;background:var(--hero);color:var(--hero-text);border-radius:28px;position:relative;overflow:hidden;margin-bottom:24px}.video-cover:before{content:"";position:absolute;width:210px;height:210px;border:1px solid #c6e7ba40;border-radius:50%;right:-64px;top:-99px;box-shadow:0 0 0 27px #c6e7ba0a,0 0 0 55px #c6e7ba0b,0 0 0 82px #c6e7ba08}.video-cover>*{position:relative}.video-cover .eyebrow{color:var(--highlight)}.video-cover h1{font-size:34px;letter-spacing:-1px;line-height:1.2;max-width:660px;margin:20px 0}.cover-meta{display:flex;align-items:center;flex-wrap:wrap;gap:8px;font-size:13px;color:#dcecdf}.cover-meta .icon{width:16px;height:16px}.reading-layout{display:grid;grid-template-columns:minmax(0,1fr) 230px;gap:28px}.reading-body{min-width:0}.reading-aside{padding-top:2px}.tabs{display:flex;padding:4px;background:var(--soft);border-radius:15px;margin-bottom:24px;gap:3px}.tabs button{flex:1;font-size:14px;min-height:44px;border-radius:11px;color:var(--muted);padding:4px 7px}.tabs [aria-selected=true]{background:var(--paper);color:var(--ink);box-shadow:0 2px 6px var(--shadow);font-weight:650}.section-label{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0 0 14px}.section-label>span{font-size:12px;color:var(--muted)}.prose{font-size:17px;line-height:1.75;white-space:pre-wrap;overflow-wrap:anywhere}.express{font-size:19px;line-height:1.65;letter-spacing:-.2px}.detailed{border-top:1px solid var(--line);border-bottom:1px solid var(--line);margin:20px 0}.detailed summary{font-size:15px;font-weight:650}.detailed .prose{color:var(--muted);padding:0 0 18px}.moments{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;margin-bottom:22px}.moment{background:var(--paper);padding:15px 12px;border-radius:17px;text-align:left;min-height:88px}.moment .time{display:block;color:var(--accent);font-size:14px;font-weight:650;margin-bottom:8px;font-variant-numeric:tabular-nums}.moment .point-name{display:block;font-size:13px;color:var(--muted);line-height:1.45;overflow-wrap:anywhere}.question-button{display:flex;align-items:center;gap:11px;width:100%;border:1px solid var(--line);background:var(--paper);padding:15px;border-radius:18px;text-align:left;min-height:52px;font-size:15px;color:var(--muted)}.question-button>.icon{width:19px;height:19px;color:var(--accent)}.question-button .icon:last-child{margin-left:auto;width:16px}.provider-caption{color:var(--muted);font-size:12px;line-height:1.6;margin-top:16px}.points-list{margin:16px 0 25px}.point-row{display:grid;grid-template-columns:62px minmax(0,1fr);gap:15px;padding:17px 0;border-bottom:1px solid var(--line)}.point-row p{font-size:17px;line-height:1.65;white-space:pre-wrap;overflow-wrap:anywhere}.time-button{min-height:44px;align-self:start;border-radius:11px;background:var(--soft);font-size:13px;color:var(--accent);font-weight:650;font-variant-numeric:tabular-nums}.info-panel{padding:17px;background:var(--soft);color:var(--accent);border-radius:18px;font-size:15px;line-height:1.6;margin:18px 0}.search-box{display:flex;align-items:center;gap:11px;background:var(--paper);padding:10px 13px;border-radius:15px;border:1px solid var(--line);margin:20px 0}.search-box>.icon{width:19px;height:19px;color:var(--muted)}.search-box input{background:none;padding:4px 0;border:0;min-height:32px;font-size:17px}.filter-chips{display:flex;gap:8px;margin:18px 0 10px}.filter-chips button{display:flex;align-items:center;gap:6px;background:var(--paper);padding:9px 15px;border-radius:24px;min-height:44px;font-size:14px}.filter-chips button[aria-pressed=true]{background:var(--ink);color:var(--bg)}.filter-chips .icon{width:16px;height:16px}.history-row{display:flex;align-items:center;gap:15px;width:100%;text-align:left;padding:21px 0;border-bottom:1px solid var(--line)}.history-row>.history-copy{flex:1;min-width:0}.history-copy h3{font-size:19px;line-height:1.3;margin-bottom:7px;overflow-wrap:anywhere}.history-copy p{font-size:13px;line-height:1.5;color:var(--muted)}.history-thumb{width:63px;height:70px;display:grid;place-items:center;flex-shrink:0;border-radius:17px;color:var(--accent);background:var(--soft)}.history-thumb .icon{width:27px;height:27px}.history-row>.icon{width:17px;transform:rotate(-90deg);color:var(--muted)}.empty-state{max-width:560px;margin:24px 0 0}.empty-state .primary{max-width:360px}.library-empty{background:var(--paper);padding:28px;border-radius:24px;margin-top:24px}.library-empty p{color:var(--muted);font-size:16px;margin:10px 0 0}.library-empty .secondary{max-width:340px}.bottom-nav{position:fixed;bottom:22px;left:50%;transform:translateX(-50%);z-index:5;display:flex;gap:7px;padding:7px;background:var(--glass);backdrop-filter:blur(24px);border:1px solid var(--line);border-radius:26px;box-shadow:0 7px 30px var(--shadow);width:min(390px,calc(100% - 32px))}.bottom-nav button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;flex:1;min-height:53px;border-radius:19px;color:var(--muted);font-size:12px}.bottom-nav button[aria-current=page]{background:var(--soft);color:var(--accent)}.bottom-nav button[data-page=analyze]>.icon{width:26px;height:26px;padding:3px;border-radius:50%;background:var(--accent);color:var(--paper)}.dark .bottom-nav button[data-page=analyze]>.icon{color:var(--bg)}.bottom-nav button .icon{width:22px;height:22px}.page.enter{animation:page-enter .23s ease-out}@keyframes page-enter{from{opacity:.5;transform:translateY(7px)}to{opacity:1;transform:none}}
#status{font-size:15px;padding:16px;background:var(--soft);color:var(--accent);border-radius:17px;margin:0 0 22px;line-height:1.6;overflow-wrap:anywhere}#status.error,#login-error,#question-error{background:#ffe9e2;color:#802a16}.dark #status.error,.dark #login-error,.dark #question-error{background:#472c25;color:#ffcebc}#login-error,#question-error{padding:13px;border-radius:12px;font-size:15px}.sheet{width:min(540px,calc(100% - 28px));border:1px solid var(--line);padding:18px 28px 30px;border-radius:29px;background:var(--paper);color:var(--ink);box-shadow:0 24px 80px #0a282540;max-height:calc(100dvh - 40px);overflow-y:auto}.sheet::backdrop{background:#0c28255c;backdrop-filter:blur(8px)}.sheet-handle{width:38px;height:4px;border-radius:5px;background:var(--line);margin:0 auto 20px}.sheet-close{float:right;margin:-10px -7px 4px 10px;background:var(--bg)}.sheet p{color:var(--muted);font-size:16px;line-height:1.65;margin:15px 0}.sheet label{margin-top:20px}.sheet .choice-row label{margin:0}.sheet .settings-note{font-size:14px}.sheet .eyebrow{margin-top:8px}.sheet h2{clear:none;margin-bottom:20px}.sheet blockquote{margin:20px 0;font-size:19px;line-height:1.7;white-space:pre-wrap;border-left:2px solid var(--line);padding-left:16px}.sheet .citation{font-size:13px;color:var(--accent)}#answer{margin-top:24px}#answer .inline-citation{display:inline-block;font-size:14px;color:var(--accent);background:var(--soft);border-radius:10px;padding:6px 10px;min-height:44px;margin:3px 5px;text-decoration:none}pre{font-size:15px;line-height:1.65;white-space:pre-wrap;overflow-wrap:anywhere;color:var(--ink)}
@media(min-width:960px){.app-shell{display:grid;grid-template-columns:210px minmax(0,1fr);padding:0 25px}.app-header{grid-column:1/-1;padding:24px 0}.bottom-nav{position:sticky;grid-column:1;grid-row:2;left:auto;top:25px;bottom:auto;transform:none;width:180px;flex-direction:column;align-self:start;box-shadow:none;border:0;background:none;padding:0}.bottom-nav button{flex-direction:row;justify-content:flex-start;gap:14px;padding:13px 15px;font-size:17px;border-radius:15px;min-height:52px}.bottom-nav button[data-page=analyze]>.icon{width:22px;height:22px}.app-shell main{grid-column:2;grid-row:2;width:100%;padding:30px 0 80px;max-width:none}}
@media(max-width:600px){.app-header{padding:calc(19px + env(safe-area-inset-top)) 22px 15px;position:sticky;top:0;background:color-mix(in srgb,var(--bg) 91%,transparent);backdrop-filter:blur(18px);z-index:4}.brand{font-size:21px}.brand-icon{width:29px;height:29px;border-radius:10px}.brand-icon .icon{width:17px;height:17px}.header-tools>span{display:none}.header-tools{gap:0}main{padding:12px 22px calc(120px + env(safe-area-inset-bottom))}.page-intro{margin:15px 0 24px}h1{font-size:32px;line-height:1.12;letter-spacing:-1.2px}.page-intro p{font-size:17px;margin-top:12px}.import-card{padding:24px 21px;border-radius:26px}.reading-toolbar{margin-bottom:16px}.video-cover{padding:25px 22px;margin-bottom:22px;border-radius:26px}.video-cover h1{font-size:28px;margin:22px 0;letter-spacing:-.8px}.video-cover .eyebrow{font-size:11px}.cover-meta{font-size:12px;gap:7px}.reading-layout{display:block}.reading-aside{padding-top:0;margin-top:18px}.tabs{margin-bottom:21px}.tabs button{font-size:13px;padding:4px}.express{font-size:18px;line-height:1.7}.section-label h3{font-size:19px}.section-label>span{font-size:11px}.moments{gap:8px}.moment{padding:13px 10px}.moment .point-name{font-size:12px}.moment .time{font-size:14px}.detailed{margin:18px 0}.point-row{grid-template-columns:57px minmax(0,1fr);gap:13px}.point-row p{font-size:17px}.history-copy h3{font-size:17px}.history-thumb{width:56px;height:65px;border-radius:15px}.history-row{gap:12px;padding:19px 0}.empty-state{margin-top:38px}.empty-state h1{font-size:35px}.bottom-nav{bottom:calc(13px + env(safe-area-inset-bottom));width:calc(100% - 28px);max-width:410px;border-radius:25px;padding:7px 6px}.bottom-nav button{font-size:11px}.sheet{margin:auto auto 10px;width:calc(100% - 18px);border-radius:28px;padding:17px 23px calc(25px + env(safe-area-inset-bottom));max-height:calc(100dvh - 30px)}.sheet h2{font-size:26px}.provider-caption{font-size:12px;margin-top:14px}#status{font-size:14px;padding:14px;margin-bottom:15px}.quiet-note{font-size:14px}}
@media(max-width:360px){main{padding-left:17px;padding-right:17px}.app-header{padding-left:17px;padding-right:17px}.import-card{padding:21px 17px}.video-cover{padding:22px 18px}.video-cover h1{font-size:26px}.moment{padding:12px 8px}h1{font-size:30px}.choice-row{font-size:15px}.choice-row label{font-size:15px}.choice-row select{max-width:140px}.tabs button{font-size:12px}.question-button{font-size:14px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
.copy-tools{margin:-4px 0 24px;padding:16px;border:1px solid var(--line);border-radius:20px;background:var(--glass);backdrop-filter:blur(14px)}.copy-heading{display:block;font-size:17px;font-weight:650;margin-bottom:11px}.copy-actions{display:flex;gap:10px}.copy-actions button{display:flex;align-items:center;justify-content:center;gap:8px;flex:1;min-height:48px;padding:10px;border-radius:13px;background:var(--soft);color:var(--accent);font-size:17px;line-height:1.4}.copy-actions .icon{width:19px;height:19px}.copy-scope{margin-top:12px;font-size:14px;color:var(--muted);line-height:1.6}.copy-feedback{font-size:17px;color:var(--accent);line-height:1.5}.copy-feedback:not(:empty){margin-top:10px}#copy-manual-text{display:block;width:100%;resize:vertical;min-height:190px;border:1px solid var(--line);border-radius:14px;padding:15px;background:var(--bg);font:17px/1.6 -apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;color:var(--ink)}textarea:focus-visible{outline:3px solid var(--accent);outline-offset:4px}@media(max-width:600px){.copy-actions button{flex-direction:column;gap:6px}.copy-actions{gap:8px}.copy-tools{padding:14px}.copy-scope{font-size:14px}}
.eco-badge{display:inline-flex;align-items:center;gap:12px;margin-top:22px;padding:12px 15px;min-height:62px;max-width:100%;border:1px solid #aadbae75;border-radius:21px;background:#daf2dc;color:#174833;text-align:left;box-shadow:0 5px 18px #071d2512;animation:page-enter .25s ease-out}.eco-badge>span:nth-child(2){display:flex;flex-direction:column;gap:2px}.eco-badge-title{font-size:17px;font-weight:700}#eco-badge-value{font-size:17px;line-height:1.4}.eco-leaf{display:grid;place-items:center;flex-shrink:0;width:36px;height:36px;border-radius:13px;background:#bde5c2}.eco-leaf .icon{width:24px;height:24px}.eco-badge>.icon:last-child{margin-left:12px;width:18px;height:18px;transform:rotate(-90deg)}.eco-badge.eco-neutral{background:#e6ece8;color:#314d42;border-color:#d0ddd5}.eco-result{display:flex;flex-direction:column;gap:10px;background:var(--soft);padding:24px;border-radius:23px;margin:22px 0;color:var(--ink)}#eco-result-value{font-size:30px;line-height:1.2;font-weight:750;letter-spacing:-.7px}#eco-result-caption{font-size:17px;line-height:1.55;color:var(--muted)}.eco-facts>div{display:flex;justify-content:space-between;gap:15px;padding:13px 0;border-bottom:1px solid var(--line);font-size:17px}.eco-facts span{color:var(--muted)}.eco-facts strong{text-align:right;font-variant-numeric:tabular-nums}.eco-sheet p,.eco-sheet label{font-size:17px}.eco-condition{border-left:3px solid var(--accent);padding-left:14px}.eco-assumptions{margin:20px 0;border:1px solid var(--line);padding:7px 17px;border-radius:18px}.eco-assumptions summary{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:50px;cursor:pointer;list-style:none;font-size:17px;font-weight:650}.eco-assumptions summary::-webkit-details-marker{display:none}.eco-assumptions[open] summary>.icon{transform:rotate(180deg)}.eco-method{padding-top:5px}.eco-method a{display:flex;align-items:center;gap:8px;min-height:44px;font-size:17px;line-height:1.5}#eco-input-error{background:#ffe9e2;color:#802a16;padding:12px;border-radius:12px}.dark #eco-input-error{background:#472c25;color:#ffcebc}@media(max-width:360px){.eco-badge{padding:10px 12px;gap:9px}.eco-badge>.icon:last-child{margin-left:3px}.eco-facts>div{flex-wrap:wrap}}@media(prefers-reduced-motion:reduce){.eco-badge{animation:none}}

/* The relay chain is visible without putting credentials in the client. */
.cloud-service-panel,.job-panel{background:var(--paper);border:1px solid var(--line);border-radius:22px;padding:20px;margin:18px 0}
.cloud-route-list{display:grid;gap:12px}.cloud-route{display:flex;align-items:center;gap:10px;font-size:17px}.cloud-route>.quiet-note{margin-left:auto;text-align:right}.route-dot{flex:none;width:9px;height:9px;border-radius:50%;background:#8c9995}.cloud-route.ready .route-dot{background:#248663}.cloud-route.ready{font-weight:600}
.job-panel{display:flex;justify-content:space-between;align-items:center;gap:18px;animation:rise .3s both}.job-panel p{margin:8px 0}.job-actions{display:flex;gap:10px;flex-wrap:wrap}.job-actions button{min-height:48px}
.consent-routes{border:0;padding:0;margin:20px 0}.consent-routes legend{font-weight:600;margin-bottom:12px}.route-choice{display:flex;align-items:center;gap:14px;padding:12px 0;min-height:48px}.route-choice input{width:22px;height:22px;flex:none;accent-color:var(--accent)}.route-choice small{display:block;overflow-wrap:anywhere;color:var(--muted);font-size:15px;margin-top:3px}
@media(max-width:640px){.job-panel{flex-direction:column;align-items:stretch}.job-actions{display:grid;grid-template-columns:1fr}.cloud-service-panel{padding:16px}.cloud-route{flex-wrap:wrap}}
@media(prefers-reduced-motion:reduce){.job-panel{animation:none}}

.header-tools>.connection-control{font-size:14px;color:var(--accent);min-height:44px;padding:0 4px;font-weight:600}

/* Web credits follow the approved palette and touch sizes. */
.credit-pill{min-height:44px;padding:10px 14px;border:1px solid var(--line);border-radius:18px;background:var(--glass);backdrop-filter:blur(18px);font-size:17px;color:var(--accent);font-weight:650;font-variant-numeric:tabular-nums;white-space:nowrap}.credit-quote{font-size:17px;line-height:1.5;color:var(--muted);margin:18px 0}.wallet-hero{display:flex;flex-direction:column;gap:8px;padding:26px;border-radius:24px;background:var(--soft);margin:22px 0}.wallet-hero strong{font-size:54px;letter-spacing:-2px;line-height:1;font-variant-numeric:tabular-nums}.wallet-hero span{font-size:17px}.credit-prices{display:grid;grid-template-columns:1fr 1fr;gap:10px}.credit-prices>span{display:flex;flex-direction:column;gap:7px;padding:15px;border-radius:17px;background:var(--bg);font-size:17px}.credit-event,.credit-pack{display:flex;justify-content:space-between;gap:18px;min-height:48px;align-items:center;font-size:17px}.credit-event{border-bottom:1px solid var(--line)}.credit-pack{width:100%;padding:17px;border:1px solid var(--line);border-radius:17px;margin:12px 0;background:var(--soft);color:var(--accent)}#recovery-code{width:100%;border:1px solid var(--line);border-radius:16px;font:17px/1.5 ui-monospace,monospace;padding:15px;resize:vertical;background:var(--bg);color:var(--ink)}#setup-form input,#setup-form select{font-size:17px;min-height:44px}.header-tools>.credit-pill{display:inline-flex}@media(max-width:600px){.credit-pill{font-size:17px;padding:8px 10px}.header-tools{gap:5px}.header-tools>.connection-control{font-size:14px}.app-header{padding-left:18px;padding-right:18px}.brand{font-size:20px}}@media(max-width:360px){.credit-pill{padding:8px;font-size:17px}.header-tools>.connection-control{max-width:64px;font-size:12px}.brand{font-size:18px}.credit-prices{grid-template-columns:1fr}}

@media(max-width:600px){.header-tools>#connection-label{display:none}}

/* Imported subtitles and provider diagnostics use the existing reading palette. */
#subtitle-text{display:block;width:100%;min-height:150px;resize:vertical;padding:14px;border:1px solid var(--line);border-radius:16px;background:var(--bg);color:var(--ink);font:17px/1.6 -apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif}#subtitle-feedback{overflow-wrap:anywhere;font-size:15px}.caption-availability{padding:15px;border-radius:17px;margin-top:18px;background:var(--soft);color:var(--ink);font-size:17px;line-height:1.6}.cloud-route.unavailable .route-dot{background:#a95d20}.dark .cloud-route.unavailable .route-dot{background:#e7ac73}.cloud-route>.quiet-note{font-size:15px;font-weight:500}.cloud-route>span:nth-child(2){flex:1;min-width:0}.cloud-route>.quiet-note{max-width:145px}.import-details input[type=file]{max-width:100%;width:100%}
/* CO₂ and sharing are primary reading actions. */
.eco-badge{display:flex;width:100%;padding:17px 18px;border-radius:22px;background:linear-gradient(135deg,#e2f8dd,#c9ead5);gap:14px}.eco-leaf{width:48px;height:48px;border-radius:17px}.eco-leaf .icon{width:30px;height:30px}.eco-badge-title{font-size:19px}#eco-badge-detail{font-size:13px;line-height:1.5;max-width:33em}.eco-badge>span:nth-child(2){min-width:0}.eco-badge>.icon:last-child{flex-shrink:0}.eco-teaser{display:flex;align-items:center;gap:13px;padding:17px;border-radius:20px;background:var(--soft);color:var(--accent);margin:20px 0}.eco-teaser>span:last-child{display:flex;flex-direction:column;gap:6px}.eco-teaser strong{font-size:18px}.eco-teaser small{font-size:14px;line-height:1.5}.share-button{display:flex;align-items:center;gap:12px;width:100%;min-height:54px;padding:17px;border-radius:19px;background:var(--accent);color:var(--paper);font-size:17px;text-align:left;margin-bottom:14px}.share-button>.icon:last-child{margin-left:auto;flex-shrink:0}.dark .share-button{color:var(--bg)}.share-sheet textarea{width:100%;min-height:100px;padding:14px;border:1px solid var(--line);border-radius:16px;background:var(--bg);color:var(--ink);font-family:inherit;font-size:17px;line-height:1.6;resize:vertical}.share-sheet fieldset{border:0;margin-top:22px;padding:0}.share-sheet legend{font-size:17px;font-weight:650;margin-bottom:10px}.share-sheet .share-option{display:flex;align-items:flex-start;gap:12px;border:1px solid var(--line);padding:15px;border-radius:16px;font-size:17px;line-height:1.5;margin:10px 0;background:var(--bg)}.share-option input{width:22px;height:22px;min-height:22px;margin-top:3px;flex-shrink:0;accent-color:var(--accent)}.share-option small{display:block;font-size:13px;color:var(--muted);margin-bottom:5px}.share-preview,.share-manage{margin:20px 0;border:1px solid var(--line);border-radius:17px;padding:12px 16px}.share-preview summary,.share-manage summary{min-height:44px;cursor:pointer;display:flex;align-items:center;font-size:17px}.share-preview pre{margin-top:15px}.share-visibility{padding:17px;border-radius:17px;background:var(--soft)}.share-link-row{display:flex;align-items:center;gap:12px;justify-content:space-between;padding:12px 0;border-top:1px solid var(--line)}.share-link-row .secondary{width:auto;margin:0;padding:12px}.share-ready-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px}#share-error{background:#ffe9e2;color:#802a16;padding:12px;border-radius:12px}#share-feedback{color:var(--accent)}.shared-page main{max-width:850px;margin:auto}.shared-label{font-size:15px;color:var(--muted)}.shared-card{padding:25px;background:var(--paper);border:1px solid var(--line);border-radius:24px;margin:20px 0}.shared-card .prose{margin:17px 0;white-space:pre-wrap}.shared-card h2{font-size:26px;margin:18px 0}.shared-card details summary{min-height:44px;font-size:17px;cursor:pointer}.shared-highlight{padding:18px;margin:15px 0;background:var(--soft);border-radius:18px;border-left:3px solid var(--accent)}.shared-highlight p{font-size:17px;line-height:1.6}.shared-highlight small{color:var(--muted);font-size:14px}.inline-source{display:inline-flex;align-items:center;min-height:44px;color:var(--accent);font-size:17px}.shared-origin{font-size:17px;line-height:1.6;color:#d2e8e1}.shared-actions{display:flex;gap:14px}.shared-promo{padding:28px;border-radius:26px;background:var(--soft);margin:30px 0}.shared-promo h2{font-size:29px;margin:18px 0}.shared-promo p{font-size:17px;line-height:1.6;white-space:pre-wrap;margin:18px 0}.shared-page .quiet-note{margin:18px 0;font-size:15px}@media(max-width:600px){.eco-badge{padding:15px 13px;gap:10px}.eco-leaf{width:40px;height:40px;border-radius:14px}.eco-badge-title{font-size:18px}#eco-badge-value{font-size:17px}#eco-badge-detail{font-size:13px}.shared-actions{display:block}.shared-label{display:none}.shared-card{padding:22px}.shared-promo{padding:23px}}@media(prefers-reduced-motion:no-preference){.share-option:has(input:checked){transition:background .18s ease,border-color .18s ease}.share-button:active{transform:scale(.98)}}.share-option:has(input:checked){background:var(--soft);border-color:var(--accent)}

.reading-toolbar .share-button{width:auto;min-height:44px;padding:10px 13px;margin:0;font-size:17px;border-radius:14px;gap:8px}.reading-toolbar .share-button>.icon:last-child{display:none}.reading-toolbar{gap:9px}.reading-toolbar .back-button{flex-shrink:0}@media(max-width:360px){.reading-toolbar .share-button{padding:10px;gap:6px}.reading-toolbar .back-button{font-size:14px}}

.share-selection{margin:18px 0;padding:13px 15px;border:1px solid var(--line);border-radius:17px}.share-selection summary{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:44px;font-size:17px;cursor:pointer}.share-selection summary span{white-space:nowrap;color:var(--accent);font-weight:650}.share-selection .share-option{margin:10px 0}.share-selection[open]{background:var(--bg)}
