.record-actions{display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end}.icon-btn{border:1px solid var(--line);background:transparent;color:var(--muted);border-radius:8px;padding:6px 8px;font-size:11px;cursor:pointer}.icon-btn:hover{color:var(--text);border-color:var(--accent)}.danger-text{color:#e26a60}.managed-row{gap:14px}.managed-row>div:last-child{display:flex;align-items:center;gap:8px}.managed-card{border:1px solid var(--line);border-radius:16px;padding:16px;margin-top:12px;background:var(--panel-2)}.managed-card small{display:block;color:var(--muted);margin-top:4px}.managed-card input[type=range]{width:100%;margin:14px 0}.reset-hero{border-radius:22px;padding:28px;background:linear-gradient(135deg,rgba(232,74,53,.2),rgba(218,165,32,.1));border:1px solid rgba(232,74,53,.3);display:flex;align-items:center;justify-content:space-between}.reset-hero h2{font-size:clamp(28px,4vw,48px);margin:8px 0}.week-stamp{width:90px;height:90px;border-radius:50%;display:grid;place-items:center;border:8px solid rgba(232,74,53,.3);font-weight:800}.backup-status{margin-top:12px;padding:12px;border-radius:10px;background:var(--panel-2);color:var(--muted);font-size:13px}.mobile-tabbar{overflow-x:auto}.mobile-tabbar button{min-width:62px}.mobile-tabbar button:nth-child(6){display:flex}@media(max-width:760px){.record-actions{max-width:170px}.managed-row{align-items:flex-start}.reset-hero{padding:20px}.week-stamp{width:64px;height:64px;border-width:6px}.mobile-tabbar button{font-size:10px;min-width:56px}}

/* Launch QA fixes: contain answer controls, keep dark feature panels readable in light mode. */
.premium-checkin,.pillar-field{min-width:0;max-width:100%;box-sizing:border-box}.premium-checkin .check-row{grid-template-columns:minmax(0,1fr) minmax(270px,320px);width:100%;box-sizing:border-box}.premium-checkin .answer-choice{width:100%;min-width:0;grid-template-columns:repeat(3,minmax(0,1fr))}.premium-checkin .answer-option{min-width:0;width:100%;padding-left:10px;padding-right:10px}
:root.light .jarvis-room .jarvis-main h2,:root.light .jarvis-room .jarvis-main p,:root.light .jarvis-room .insight-card h3,:root.light .jarvis-room .insight-card p,:root.light .jarvis-room .insight-card .btn{color:#f7f8fa!important}:root.light .jarvis-room .insight-card .btn{border-color:#d7dde5!important;background:transparent!important}:root.light .jarvis-room .section-kicker{color:#9aa3af!important}
@media(max-width:900px){.premium-checkin .check-row{grid-template-columns:1fr}.premium-checkin .answer-choice{max-width:none}}

/* Full record management */
.manage-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.edit-overlay{position:fixed;inset:0;z-index:1000;background:rgba(5,7,10,.72);backdrop-filter:blur(7px);display:grid;place-items:center;padding:22px}.edit-modal{width:min(760px,100%);max-height:90vh;overflow:auto;background:var(--panel);color:var(--text);border:1px solid var(--line);border-radius:22px;padding:24px;box-shadow:0 24px 80px rgba(0,0,0,.45)}.edit-modal h2{margin:5px 0 0}.edit-form{margin-top:20px}.edit-check{display:flex;align-items:center;gap:9px;padding:13px 0;font-weight:700}.edit-check input{width:auto}.edit-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:22px;padding-top:18px;border-top:1px solid var(--line)}.managed-row>.record-actions{flex:none}.managed-row .record-actions .record-actions{display:contents}
@media(max-width:760px){.manage-grid{grid-template-columns:1fr}.edit-overlay{padding:10px;align-items:end}.edit-modal{border-radius:20px 20px 0 0;max-height:94vh;padding:18px}.managed-row{flex-direction:column}.managed-row>.record-actions{width:100%;justify-content:flex-start}}

/* Core Four: compact, decision-first results */
.core-summary{display:grid;grid-template-columns:150px minmax(0,1fr) minmax(260px,340px);gap:28px;align-items:stretch;padding:26px!important}.core-score{display:flex;flex-direction:column;justify-content:space-between}.core-score-number{display:flex;flex-direction:column;margin-top:18px}.core-score-number strong{font-size:72px;line-height:.86;letter-spacing:-.07em}.core-score-number span{margin-top:12px;color:var(--muted);font-weight:750}.core-direction{padding:0 28px;border-left:1px solid var(--line);border-right:1px solid var(--line)}.core-direction h2{font-size:clamp(28px,3.2vw,44px);line-height:1;letter-spacing:-.05em;margin:10px 0}.core-direction>p{color:var(--muted);max-width:620px;line-height:1.5}.core-signal-row{display:flex;gap:10px;margin-top:20px}.core-signal-row>div{flex:1;border:1px solid var(--line);background:var(--panel-2);border-radius:14px;padding:12px}.core-signal-row span,.core-signal-row b{display:block}.core-signal-row span{font-size:11px;color:var(--muted);margin-bottom:5px}.core-signal-row b{font-size:14px}.core-trend{min-width:0}.core-trend .nb-line{height:120px;padding:5px 0}.core-trend-empty{display:flex;gap:14px;align-items:center;height:calc(100% - 20px);min-height:132px}.core-trend-empty>span{width:52px;height:52px;flex:none;border-radius:15px;background:rgba(240,74,60,.13);color:var(--accent);display:grid;place-items:center;font-size:24px;font-weight:900}.core-trend-empty strong{display:block}.core-trend-empty p{color:var(--muted);font-size:13px;line-height:1.4;margin:5px 0 0}.core-trend-labels{display:flex;justify-content:space-between;align-items:center;color:var(--muted);font-size:11px}.core-trend-labels b{color:var(--text);font-size:12px}.core-pillar-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.core-pillar-card{border:1px solid var(--line);background:var(--panel);border-radius:18px;padding:18px}.core-pillar-head{display:flex;align-items:baseline;justify-content:space-between;gap:14px}.core-pillar-head>span{font-weight:800}.core-pillar-head strong{font-size:30px;letter-spacing:-.04em}.core-pillar-head small{font-size:13px;color:var(--muted);margin-left:2px}.core-pillar-track{height:7px;background:#292a2e;border-radius:999px;overflow:hidden;margin:16px 0 10px}.core-pillar-track i{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#e84a35,#ff5a4b)}.core-pillar-card p{margin:0;color:var(--muted);font-size:12px}:root.light .core-pillar-track{background:#e3e7ec}
@media(max-width:960px){.core-summary{grid-template-columns:120px 1fr}.core-trend{grid-column:1/-1;border-top:1px solid var(--line);padding-top:20px}.core-direction{border-right:0}.core-trend-empty{min-height:90px}.core-pillar-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:620px){.core-summary{grid-template-columns:1fr;gap:20px;padding:22px!important}.core-score{display:block}.core-score-number{margin-top:12px}.core-score-number strong{font-size:58px}.core-direction{border:0;border-top:1px solid var(--line);padding:20px 0 0}.core-signal-row{flex-direction:column}.core-trend{grid-column:auto}.core-pillar-grid{grid-template-columns:1fr 1fr}.core-pillar-card{padding:15px}.core-pillar-head strong{font-size:26px}}

/* Universal calendar export */
.calendar-toolbar{justify-content:space-between}.calendar-head{align-items:flex-start;gap:20px}.calendar-head h3{margin:5px 0}.calendar-head p{max-width:650px;margin:6px 0 0;line-height:1.45}.calendar-head-actions,.calendar-actions{display:flex;align-items:center;gap:7px;flex-wrap:wrap;justify-content:flex-end}.calendar-actions>.record-actions{display:contents}.calendar-google{color:#fff;border-color:#4285f4;background:#4285f4}.calendar-google:hover{color:#fff;border-color:#5b95f5}.calendar-head-actions{flex:none}
@media(max-width:760px){.calendar-head{flex-direction:column}.calendar-head-actions{width:100%;justify-content:flex-start}.calendar-toolbar strong{text-align:center;font-size:13px}.calendar-actions{justify-content:flex-start}}
