:root{
  --sg-brand:#36AB9C;
  --sg-brand-dark:#2B867A;
  --sg-accent:#F58A48;
  --sg-ink:#0F172A;
  --sg-text:#334155;
  --sg-muted:#64748B;
  --sg-line:#E5E7EB;
  --sg-line-strong:#CBD5E1;
  --sg-bg:#F5FAF8;
  --sg-surface:#FFFFFF;
  --sg-surface-soft:#F8FAFC;
  --sg-teal-soft:#EAF8F5;
  --sg-warm:#FFF4EC;
  --sg-shadow:0 18px 48px rgba(15,23,42,.10);
  --sg-shadow-soft:0 8px 22px rgba(15,23,42,.06);
  --r-xl:28px;
  --r:20px;
  --r-sm:14px;
  --safe-bottom:env(safe-area-inset-bottom, 0px);
}
*{box-sizing:border-box}
html{min-height:100%;background:var(--sg-bg);-webkit-text-size-adjust:100%}
body{min-height:100svh;margin:0;background:radial-gradient(circle at 50% -10%, rgba(54,171,156,.14), transparent 38%), linear-gradient(180deg,#F5FAF8 0%,#EEF6F3 100%);color:var(--sg-text);font:16px/1.45 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}
a{color:inherit;text-decoration:none}
button,input,select{font:inherit}
button{cursor:pointer}
.skip-link{position:absolute;left:12px;top:-80px;z-index:50;background:var(--sg-ink);color:#fff;padding:10px 14px;border-radius:12px}.skip-link:focus{top:12px}
.sg-app{position:relative;min-height:100svh;max-width:520px;margin:0 auto;background:rgba(255,255,255,.62);box-shadow:0 0 0 1px rgba(148,163,184,.18),0 24px 80px rgba(15,23,42,.14);overflow:hidden}
.app-header{position:sticky;top:0;z-index:50;display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;max-width:980px;margin:0 auto;padding:calc(12px + env(safe-area-inset-top,0px)) 16px 12px;background:rgba(245,250,248,.88);-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px);border-bottom:1px solid rgba(226,232,240,.82)}
.brand-lockup{display:flex;align-items:center;gap:12px;min-width:0}.brand-mark{display:grid;place-items:center;width:48px;height:48px;flex:0 0 48px;border-radius:16px;overflow:hidden;background:#D9F1EC;box-shadow:var(--sg-shadow-soft),inset 0 0 0 1px rgba(54,171,156,.18)}.brand-mark img{display:block;width:48px;height:48px;object-fit:cover}.brand-copy{display:flex;flex-direction:column;min-width:0;gap:2px}.brand-copy strong{font-size:clamp(1.1rem,3.4vw,1.28rem);line-height:1.02;color:var(--sg-ink);letter-spacing:-.035em}.brand-copy small{color:var(--sg-muted);font-size:.78rem;font-weight:750;line-height:1.1;white-space:nowrap}
.header-actions{display:flex;align-items:center;gap:8px;margin-left:auto;min-width:0}.icon-button{display:grid;place-items:center;width:38px;height:38px;border:1px solid var(--sg-line);border-radius:14px;background:#fff;color:var(--sg-ink);font-weight:900;line-height:1;box-shadow:0 4px 12px rgba(15,23,42,.05)}.app-header .header-action{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-width:44px;width:44px;height:44px;padding:0;border-radius:15px;background:rgba(255,255,255,.9);box-shadow:0 8px 24px rgba(15,23,42,.07)}.app-header .header-profile{color:var(--sg-brand-dark)}.app-header .header-profile svg{display:block;width:20px;height:20px;flex:0 0 auto}.header-profile-label{display:none;max-width:112px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.8rem;font-weight:850}.app-header .header-more{font-size:1.02rem}.app-header .header-more[aria-expanded="true"]{background:var(--sg-teal-soft);color:var(--sg-brand-dark);border-color:rgba(54,171,156,.28)}.icon-button:focus-visible,.tab-button:focus-visible,.moment-button:focus-visible,.reset-chip:focus-visible,.ghost-button:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid rgba(54,171,156,.35);outline-offset:2px}
@media (min-width:480px){.app-header .header-profile{width:auto;max-width:164px;padding:0 12px 0 10px}.header-profile-label{display:block}}
@media (max-width:359px){.app-header{gap:9px;padding-inline:12px}.brand-lockup{gap:9px}.brand-copy small{font-size:.72rem}}
html.sensycues-text-extra-large .app-header .header-profile{width:44px;padding:0}html.sensycues-text-extra-large .header-profile-label{display:none}
.app-main{padding:16px 14px calc(96px + var(--safe-bottom));min-height:calc(100svh - 70px)}
.tab-panel{display:none;animation:panelIn .16s ease-out}.tab-panel.active{display:block}@keyframes panelIn{from{opacity:.65;transform:translateY(4px)}to{opacity:1;transform:none}}
.now-card,.section-heading,.filter-panel,.suggestion-box,.notice-card{border:1px solid rgba(226,232,240,.88);background:rgba(255,255,255,.88);border-radius:var(--r-xl);box-shadow:var(--sg-shadow-soft)}
.now-card{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;padding:18px;margin-bottom:14px;background:linear-gradient(140deg,#FFFFFF 0%,#F0FBF8 100%)}.now-copy{min-width:0}.mini-label{display:block;margin-bottom:7px;color:var(--sg-brand-dark);font-size:.72rem;font-weight:900;letter-spacing:.08em;text-transform:uppercase}.now-card h1,.section-heading h1{margin:0;color:var(--sg-ink);font-size:1.45rem;line-height:1.08;letter-spacing:-.045em}.now-card p,.section-heading p{margin:9px 0 0;color:var(--sg-muted);font-size:.96rem;line-height:1.48}.reset-chip{flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center;min-height:38px;padding:0 13px;border-radius:999px;background:var(--sg-accent);color:#fff;font-size:.82rem;font-weight:900;box-shadow:0 8px 18px rgba(245,138,72,.25)}
.moment-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.moment-button{min-height:98px;text-align:left;border:1px solid rgba(203,213,225,.9);border-radius:22px;background:rgba(255,255,255,.92);padding:14px;box-shadow:0 7px 16px rgba(15,23,42,.045);transition:transform .14s ease,box-shadow .14s ease,border-color .14s ease}.moment-button:hover{transform:translateY(-1px);border-color:rgba(54,171,156,.45);box-shadow:0 12px 24px rgba(15,23,42,.075)}.moment-button strong{display:block;color:var(--sg-ink);font-size:.96rem;line-height:1.12;letter-spacing:-.025em}.moment-button span{display:block;margin-top:7px;color:var(--sg-muted);font-size:.8rem;line-height:1.28}
.suggestion-box{margin-top:14px;padding:16px}.suggestion-box h3{margin:0;color:var(--sg-ink);font-size:1.05rem}.suggestion-box p{margin:7px 0 12px;color:var(--sg-muted);font-size:.92rem}.suggestion-list{display:grid;gap:8px;list-style:none;margin:0;padding:0}.suggestion-list li{padding:12px;border-radius:18px;background:var(--sg-surface-soft);border:1px solid var(--sg-line)}.suggestion-list strong{color:var(--sg-ink)}.suggestion-list span{color:var(--sg-muted);font-size:.86rem}
.section-heading{padding:17px;margin-bottom:12px}.split-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:14px}.count-pill{flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center;min-width:48px;padding:7px 10px;border-radius:999px;background:var(--sg-teal-soft);color:var(--sg-brand-dark);font-size:.78rem;font-weight:900}.filter-panel{display:grid;gap:10px;padding:12px;margin-bottom:12px}.filter-panel label{display:grid;gap:6px}.filter-panel label>span{font-size:.72rem;font-weight:900;color:var(--sg-muted);text-transform:uppercase;letter-spacing:.05em}.filter-panel input,.filter-panel select{width:100%;min-height:44px;border:1px solid var(--sg-line);border-radius:15px;background:#fff;color:var(--sg-ink);padding:0 12px}.search-field input{padding-left:14px}.filter-row{display:grid;grid-template-columns:1fr 1fr;gap:10px}.checkbox-row{display:flex!important;align-items:center;justify-content:flex-start;gap:8px;min-height:44px;padding:0 12px;border:1px solid var(--sg-line);border-radius:15px;background:#fff}.checkbox-row input{width:18px;min-height:18px;accent-color:var(--sg-brand)}.checkbox-row span{text-transform:none!important;letter-spacing:0!important;color:var(--sg-text)!important;font-size:.86rem!important}.ghost-button{min-height:42px;border:1px solid var(--sg-line);border-radius:15px;background:var(--sg-surface-soft);color:var(--sg-text);font-weight:800}
.activity-list{display:grid;gap:10px}.activity-card{padding:14px;border:1px solid rgba(226,232,240,.95);border-radius:22px;background:rgba(255,255,255,.94);box-shadow:0 7px 18px rgba(15,23,42,.045)}.activity-topline{display:flex;align-items:center;gap:8px;color:var(--sg-muted);font-size:.74rem;font-weight:900;text-transform:uppercase;letter-spacing:.05em}.category-dot{width:9px;height:9px;border-radius:50%;background:var(--sg-brand)}.activity-duration{margin-left:auto;text-transform:none;letter-spacing:0;color:#64748B}.activity-card h3{margin:8px 0 5px;color:var(--sg-ink);font-size:1.04rem;line-height:1.18;letter-spacing:-.025em}.activity-instructions{margin:0;color:var(--sg-text);font-size:.91rem}.tag-row{display:flex;flex-wrap:wrap;gap:6px;margin-top:10px}.tag{display:inline-flex;padding:5px 8px;border-radius:999px;background:#F1F5F9;color:#475569;font-size:.72rem;font-weight:800}.activity-card details{margin-top:10px;color:var(--sg-muted);font-size:.84rem}.activity-card summary{cursor:pointer;font-weight:850;color:#475569}.activity-card details p{margin:7px 0 0}.empty-state{padding:18px;border:1px dashed var(--sg-line-strong);border-radius:20px;background:#fff;color:var(--sg-muted);text-align:center}
.report-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.report-card{min-height:118px;padding:14px;border:1px solid var(--sg-line);border-radius:22px;background:#fff;box-shadow:var(--sg-shadow-soft)}.report-card span{display:block;color:var(--sg-muted);font-size:.75rem;font-weight:900;text-transform:uppercase;letter-spacing:.05em}.report-card strong{display:block;margin-top:8px;color:var(--sg-ink);font-size:1.25rem;letter-spacing:-.03em}.report-card small{display:block;margin-top:5px;color:var(--sg-muted);font-size:.8rem;line-height:1.25}.notice-card{margin-top:12px;padding:15px;background:linear-gradient(140deg,#FFFFFF,#FFF8F2)}.notice-card strong{color:var(--sg-ink)}.notice-card p{margin:6px 0 0;color:var(--sg-muted);font-size:.92rem}
.tab-bar{position:fixed;left:50%;bottom:0;z-index:30;transform:translateX(-50%);display:grid;grid-template-columns:repeat(3,1fr);gap:6px;width:min(520px,100%);padding:9px 12px calc(9px + var(--safe-bottom));background:rgba(255,255,255,.9);backdrop-filter:blur(18px);border-top:1px solid rgba(226,232,240,.9);box-shadow:0 -12px 28px rgba(15,23,42,.08)}.tab-button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;min-height:54px;border:0;border-radius:18px;background:transparent;color:#64748B;font-size:.72rem;font-weight:900}.tab-button span{font-size:.92rem;line-height:1}.tab-button.active{background:var(--sg-teal-soft);color:var(--sg-brand-dark);box-shadow:inset 0 0 0 1px rgba(54,171,156,.18)}
.drawer[hidden]{display:none}.drawer{position:fixed;inset:0;z-index:60}.drawer-scrim{position:absolute;inset:0;background:rgba(15,23,42,.34);backdrop-filter:blur(4px)}.drawer-panel{position:absolute;left:50%;bottom:0;transform:translateX(-50%);width:min(520px,100%);max-height:88svh;overflow:auto;padding:10px 14px calc(18px + var(--safe-bottom));border-radius:30px 30px 0 0;background:#fff;box-shadow:0 -26px 70px rgba(15,23,42,.24)}.drawer-grip{width:44px;height:5px;margin:0 auto 12px;border-radius:999px;background:#CBD5E1}.drawer-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}.drawer-brand-lockup{display:flex;align-items:center;gap:10px;min-width:0}.drawer-app-icon{display:block;width:42px;height:42px;border-radius:15px;object-fit:cover;box-shadow:0 5px 14px rgba(15,23,42,.08)}.drawer-head h2{margin:0;color:var(--sg-ink);font-size:1.22rem;letter-spacing:-.035em}.menu-list{display:grid;gap:8px}.menu-list button,.menu-list a{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;text-align:left;border:1px solid var(--sg-line);border-radius:18px;background:#fff;padding:13px 14px;color:var(--sg-ink);font-weight:900}.menu-list span{color:var(--sg-muted);font-size:.78rem;font-weight:750;text-align:right}.menu-message{margin:12px 2px 0;color:var(--sg-muted);font-size:.85rem}
@media (min-width:700px){body{padding:24px 0}.sg-app{min-height:calc(100svh - 48px);border-radius:34px}.app-header{border-radius:34px 34px 0 0}.tab-bar{bottom:24px;border-radius:24px;border:1px solid rgba(226,232,240,.9)}}
@media (max-width:380px){.now-card{display:grid}.reset-chip{width:max-content}.moment-grid,.report-grid,.filter-row{grid-template-columns:1fr}.app-main{padding-left:12px;padding-right:12px}}
@media (prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;animation:none!important;transition:none!important}}
@media print{body{background:#fff}.sg-app{box-shadow:none;max-width:none}.app-header,.tab-bar,.drawer,.filter-panel,.reset-chip{display:none!important}.app-main{padding:0}.tab-panel{display:block!important}.activity-card,.report-card,.notice-card,.section-heading,.now-card{break-inside:avoid;box-shadow:none}}

.support-action-row{display:flex;flex-wrap:wrap;gap:7px;margin-top:11px}.support-action{min-height:38px;border:1px solid var(--sg-line);border-radius:999px;background:#fff;color:var(--sg-text);padding:0 11px;font-size:.78rem;font-weight:900}.support-action.primary{background:var(--sg-brand);border-color:var(--sg-brand);color:#fff;box-shadow:0 8px 18px rgba(54,171,156,.22)}.support-action.subtle{background:#F8FAFC;color:#64748B}.support-action:focus-visible,.primary-button:focus-visible,.secondary-button:focus-visible,.text-button:focus-visible{outline:3px solid rgba(54,171,156,.35);outline-offset:2px}.suggestion-card{display:grid;gap:2px}.suggestion-copy{min-width:0}
.attempt-sheet[hidden]{display:none}.attempt-sheet{position:fixed;inset:0;z-index:70}.attempt-scrim{position:absolute;inset:0;background:rgba(15,23,42,.36);backdrop-filter:blur(4px)}.attempt-panel{position:absolute;left:50%;bottom:0;transform:translateX(-50%);width:min(520px,100%);max-height:88svh;overflow:auto;padding:10px 14px calc(18px + var(--safe-bottom));border-radius:30px 30px 0 0;background:#fff;box-shadow:0 -26px 70px rgba(15,23,42,.24)}.attempt-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:10px}.attempt-head h2{margin:0;color:var(--sg-ink);font-size:1.26rem;line-height:1.1;letter-spacing:-.035em}.attempt-status{display:inline-flex;margin:0 0 11px;padding:7px 10px;border-radius:999px;background:var(--sg-teal-soft);color:var(--sg-brand-dark);font-size:.78rem;font-weight:900}.attempt-body{display:grid;gap:10px}.attempt-summary,.attempt-info-card{padding:14px;border:1px solid var(--sg-line);border-radius:22px;background:#fff}.attempt-summary{background:linear-gradient(145deg,#FFFFFF,#F2FBF9)}.attempt-duration{display:inline-flex;padding:6px 9px;border-radius:999px;background:#F1F5F9;color:#475569;font-size:.75rem;font-weight:900}.attempt-summary h3{margin:9px 0 6px;color:var(--sg-ink);font-size:1.14rem;line-height:1.15;letter-spacing:-.025em}.attempt-summary p,.attempt-info-card p{margin:0;color:var(--sg-text);font-size:.94rem;line-height:1.45}.attempt-info-card strong{display:block;margin-bottom:5px;color:var(--sg-ink);font-size:.86rem}.attempt-info-card.safety{background:#FFF8F2}.attempt-actions{position:sticky;bottom:0;display:grid;grid-template-columns:1fr 1fr;gap:8px;padding-top:10px;background:linear-gradient(180deg,rgba(255,255,255,.72),#fff 28%)}.primary-button,.secondary-button,.text-button{min-height:46px;border-radius:16px;font-weight:950}.primary-button{border:1px solid var(--sg-brand);background:var(--sg-brand);color:#fff;box-shadow:0 9px 20px rgba(54,171,156,.22)}.secondary-button{border:1px solid var(--sg-line);background:var(--sg-surface-soft);color:var(--sg-ink)}.secondary-button:disabled{opacity:.48;cursor:not-allowed}.text-button{grid-column:1 / -1;border:1px solid transparent;background:transparent;color:#64748B}.app-toast{position:fixed;left:50%;bottom:calc(82px + var(--safe-bottom));z-index:90;transform:translateX(-50%);width:min(480px,calc(100% - 28px));padding:12px 14px;border-radius:18px;background:#0F172A;color:#fff;box-shadow:0 14px 40px rgba(15,23,42,.28);font-size:.9rem;font-weight:800;text-align:center}
@media (max-width:380px){.support-action-row{display:grid}.support-action{width:100%}.attempt-actions{grid-template-columns:1fr}}
@media print{.attempt-sheet,.app-toast,.support-action-row{display:none!important}}

/* PR 13: outcome logging */
.outcome-panel-card{padding:15px;border:1px solid var(--sg-line);border-radius:22px;background:linear-gradient(145deg,#FFFFFF,#F7FDFB)}
.outcome-panel-card h3{margin:5px 0 6px;color:var(--sg-ink);font-size:1.22rem;line-height:1.14;letter-spacing:-.025em}
.outcome-panel-card p{margin:0;color:var(--sg-text);font-size:.94rem;line-height:1.45}
.outcome-context{margin-top:8px!important;color:#64748B!important;font-size:.84rem!important;font-weight:800}
.outcome-button-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:13px}
.outcome-button{min-height:48px;border:1px solid var(--sg-line);border-radius:16px;background:#fff;color:var(--sg-ink);font-weight:950;text-align:center;box-shadow:0 6px 14px rgba(15,23,42,.04)}
.outcome-button.selected{border-color:var(--sg-brand);background:var(--sg-teal-soft);color:var(--sg-brand-dark);box-shadow:0 9px 20px rgba(54,171,156,.14)}
.outcome-button:focus-visible,.outcome-note-field textarea:focus-visible{outline:3px solid rgba(54,171,156,.35);outline-offset:2px}
.outcome-note-field{display:grid;gap:6px;padding:14px;border:1px solid var(--sg-line);border-radius:22px;background:#fff}
.outcome-note-field span{color:var(--sg-ink);font-size:.86rem;font-weight:900}
.outcome-note-field textarea{width:100%;resize:vertical;border:1px solid var(--sg-line);border-radius:16px;padding:10px 11px;color:var(--sg-text);font:inherit;line-height:1.4;background:#F8FAFC}
.outcome-actions{position:sticky;bottom:0;display:grid;grid-template-columns:1fr;gap:8px;padding-top:10px;background:linear-gradient(180deg,rgba(255,255,255,.72),#fff 28%)}
.outcome-actions .text-button{grid-column:auto}
@media (max-width:380px){.outcome-button-grid{grid-template-columns:1fr}}

/* PR 14: Today history / recent supports */
.today-history{margin-top:14px}
.today-history-card{padding:15px;border:1px solid rgba(226,232,240,.88);border-radius:var(--r-xl);background:rgba(255,255,255,.9);box-shadow:var(--sg-shadow-soft)}
.today-history-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:10px}
.today-history-head h2{margin:0;color:var(--sg-ink);font-size:1.16rem;line-height:1.12;letter-spacing:-.035em}
.today-history-empty{margin:0;color:var(--sg-muted);font-size:.92rem;line-height:1.45}
.today-history-list{display:grid;gap:8px}
.today-history-row{display:grid;gap:10px;padding:12px;border:1px solid var(--sg-line);border-radius:20px;background:var(--sg-surface-soft)}
.today-history-main{display:grid;gap:3px;min-width:0}
.today-history-time{color:var(--sg-brand-dark);font-size:.74rem;font-weight:950;text-transform:uppercase;letter-spacing:.045em}
.today-history-main strong{color:var(--sg-ink);font-size:.96rem;line-height:1.15;letter-spacing:-.02em}
.today-history-main span:not(.today-history-time){color:var(--sg-text);font-size:.88rem;line-height:1.35}
.today-history-main em{display:inline-flex;margin-left:4px;padding:2px 6px;border-radius:999px;background:#fff;color:#64748B;font-style:normal;font-size:.7rem;font-weight:900}
.today-history-actions{display:flex;flex-wrap:wrap;gap:7px}
.today-history-actions button{min-height:36px;border:1px solid var(--sg-line);border-radius:999px;background:#fff;color:var(--sg-text);padding:0 10px;font-size:.76rem;font-weight:900}
.today-history-actions button[data-history-action="delete"]{color:#8A4B20;background:#FFF8F2}
.today-history-actions button:focus-visible,.today-history-edit select:focus-visible,.today-history-edit textarea:focus-visible{outline:3px solid rgba(54,171,156,.35);outline-offset:2px}
.today-history-edit{display:grid;gap:9px;padding:11px;border:1px dashed rgba(148,163,184,.72);border-radius:18px;background:#fff}
.today-history-edit[hidden]{display:none}
.today-history-edit label{display:grid;gap:6px}
.today-history-edit label>span{color:var(--sg-ink);font-size:.82rem;font-weight:900}
.today-history-edit select,.today-history-edit textarea{width:100%;border:1px solid var(--sg-line);border-radius:15px;background:#F8FAFC;color:var(--sg-text);font:inherit;padding:10px 11px}
.today-history-edit select{min-height:44px}
.today-history-edit textarea{resize:vertical;line-height:1.4}
.today-history-edit-actions{display:grid;grid-template-columns:1fr;gap:7px}
.today-history-edit-actions .text-button{grid-column:auto}
@media (max-width:380px){.today-history-actions{display:grid}.today-history-actions button{width:100%}}
@media print{.today-history-actions,.today-history-edit{display:none!important}.today-history-card{box-shadow:none;break-inside:avoid}}

/* PR15 local data controls */
.menu-message{display:block}
.menu-message.small{font-size:.88rem;margin:.55rem 0 0;color:var(--muted)}
.data-panel{display:grid;gap:.8rem;text-align:left}
.data-panel-head h3{font-size:1.05rem;line-height:1.2;margin:.12rem 0 .28rem;color:var(--ink)}
.data-panel-head p{margin:0;color:var(--text);font-size:.94rem;line-height:1.5}
.data-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.5rem}
.data-summary span{background:#fff;border:1px solid var(--line);border-radius:14px;padding:.65rem .55rem;color:var(--muted);font-size:.78rem;line-height:1.2;text-align:center}
.data-summary strong{display:block;color:var(--ink);font-size:1.15rem;line-height:1.1;margin-bottom:.18rem}
.data-summary.mini{margin:.65rem 0;grid-template-columns:repeat(3,minmax(0,1fr))}
.notice-card.compact{padding:.8rem;border-radius:14px;box-shadow:none}
.notice-card.compact p{margin:.24rem 0 0;font-size:.9rem;line-height:1.45}
.data-actions{display:flex;flex-wrap:wrap;gap:.45rem;margin-top:.05rem}
.data-actions.tight{margin-top:.55rem}
.support-action.danger{background:#FFF4EC;border-color:#F7C8A3;color:#8A4B20}
.import-review{display:grid;gap:.6rem}
@media (max-width:420px){.data-summary{grid-template-columns:1fr}.data-actions .support-action{width:100%;justify-content:center}}

/* PR 15.5 focused Today flow */
.moment-grid[hidden]{display:none!important}
.selected-moment-card{display:grid;grid-template-columns:1fr auto;gap:12px;align-items:start;padding:15px;border:1px solid rgba(54,171,156,.24);border-radius:22px;background:linear-gradient(180deg,rgba(239,250,248,.94),rgba(255,255,255,.94));margin-bottom:13px}.selected-moment-card h3{margin:3px 0 6px;color:var(--sg-ink);font-size:1.15rem;line-height:1.14;letter-spacing:-.035em}.selected-moment-card p{margin:0;color:var(--sg-muted);font-size:.92rem;line-height:1.42}.try-first-head{margin:2px 0 10px}.try-first-head h3{margin:0;color:var(--sg-ink);font-size:1rem}.try-first-head p{margin:5px 0 0;color:var(--sg-muted);font-size:.88rem}.choose-own-card{display:grid;grid-template-columns:1fr auto;gap:10px;align-items:center;margin-top:10px;padding:12px;border:1px dashed rgba(148,163,184,.72);border-radius:20px;background:#fff}.choose-own-card div{display:grid;gap:3px}.choose-own-card strong{color:var(--sg-ink);font-size:.94rem}.choose-own-card span{color:var(--sg-muted);font-size:.84rem;line-height:1.35}.library-context{display:flex;justify-content:space-between;gap:10px;align-items:center;margin:-4px 0 12px;padding:12px 13px;border:1px solid rgba(54,171,156,.24);border-radius:20px;background:rgba(239,250,248,.9)}.library-context[hidden]{display:none!important}.library-context div{display:grid;gap:2px}.library-context span,.activity-context-note{color:var(--sg-muted);font-size:.76rem;font-weight:850}.library-context strong{color:var(--sg-ink);font-size:.95rem}.library-action-row{align-items:center}.activity-context-note{display:inline-flex;align-items:center;min-height:38px;padding:0 4px;text-transform:none;letter-spacing:0}
@media (max-width:420px){.selected-moment-card,.choose-own-card,.library-context{grid-template-columns:1fr}.selected-moment-card .support-action,.choose-own-card .support-action,.library-context .support-action{width:100%;justify-content:center}.activity-context-note{min-height:0}}

/* SC-PLAN-03: support-plan-first Today shell */
.sr-only{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.today-plan-card,.today-section-card,.next-support-card,.quick-moment-panel{border:1px solid rgba(226,232,240,.88);background:rgba(255,255,255,.9);border-radius:var(--r-xl);box-shadow:var(--sg-shadow-soft)}
.today-plan-card{position:relative;display:grid;gap:13px;margin-bottom:12px;padding:18px;background:linear-gradient(140deg,#FFFFFF 0%,#EEF9F6 100%)}.today-plan-card .today-app-icon{position:absolute;right:16px;top:16px;width:44px;height:44px;border-radius:16px;object-fit:cover;box-shadow:0 6px 18px rgba(15,23,42,.09)}.today-plan-card.has-app-icon{padding-right:76px}
.today-plan-card h1{margin:0;color:var(--sg-ink);font-size:1.46rem;line-height:1.06;letter-spacing:-.045em}.today-plan-card p{margin:8px 0 0;color:var(--sg-muted);font-size:.96rem;line-height:1.48}.today-plan-card-empty{background:linear-gradient(140deg,#FFFFFF 0%,#FFF8F2 100%)}
.today-plan-summary{display:grid;gap:3px;padding:12px 13px;border:1px solid rgba(54,171,156,.18);border-radius:20px;background:rgba(255,255,255,.72)}.today-plan-summary strong{color:var(--sg-ink);font-size:1rem;line-height:1.2}.today-plan-summary span{color:var(--sg-muted);font-size:.84rem;font-weight:850}.today-plan-actions{display:flex;flex-wrap:wrap;gap:8px}.today-plan-actions .support-action{min-height:40px}
.next-support-card{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:12px;padding:15px;background:linear-gradient(140deg,#FFFFFF,#F8FAFC)}.next-support-card h2,.today-section-card h2,.quick-moment-panel h2{margin:0;color:var(--sg-ink);font-size:1.16rem;line-height:1.12;letter-spacing:-.035em}.next-support-card p,.today-section-card p,.quick-moment-panel p{margin:6px 0 0;color:var(--sg-muted);font-size:.92rem;line-height:1.42}
.today-section-card,.quick-moment-panel{margin-top:12px;padding:15px}.muted-card{background:rgba(248,250,252,.92)}.today-section-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:12px}.today-section-head .count-pill{margin-top:2px}.planned-support-list,.recent-helpful-list{display:grid;gap:9px}.planned-support-item{display:grid;grid-template-columns:1fr auto;gap:10px;padding:12px;border:1px solid var(--sg-line);border-radius:21px;background:var(--sg-surface-soft)}.planned-support-main{min-width:0}.planned-anchor{display:inline-flex;margin-bottom:5px;color:var(--sg-brand-dark);font-size:.73rem;font-weight:950;text-transform:uppercase;letter-spacing:.045em}.planned-support-item h3{margin:0;color:var(--sg-ink);font-size:1rem;line-height:1.15;letter-spacing:-.02em}.planned-support-item p{margin:5px 0 0;color:var(--sg-muted);font-size:.84rem}.planned-support-item .support-action-row{grid-column:1 / -1;margin-top:2px}.status-tag{display:inline-flex;align-self:start;align-items:center;justify-content:center;min-height:28px;padding:0 9px;border-radius:999px;background:#F1F5F9;color:#475569;font-size:.7rem;font-weight:950;text-transform:uppercase;letter-spacing:.045em;white-space:nowrap}.status-used{background:var(--sg-teal-soft);color:var(--sg-brand-dark)}.status-done,.status-reviewed{background:#EAF7ED;color:#2F7D42}.status-skipped,.status-missed{background:#FFF4EC;color:#8A4B20}.quick-moment-panel{background:rgba(255,255,255,.88)}.quick-moment-panel .moment-grid{margin-top:0}.quick-moment-panel .suggestion-box{box-shadow:none;background:#fff}.recent-helpful-item{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px;border:1px solid var(--sg-line);border-radius:20px;background:var(--sg-surface-soft)}.recent-helpful-item div{display:grid;gap:3px;min-width:0}.recent-helpful-item strong{color:var(--sg-ink);font-size:.95rem;line-height:1.15}.recent-helpful-item span{color:var(--sg-muted);font-size:.83rem}.review-card{background:linear-gradient(140deg,#FFFFFF,#F8FAFC)}.review-summary-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-bottom:10px}.review-summary-grid span{display:grid;gap:1px;min-height:64px;place-items:center;padding:10px;border:1px solid var(--sg-line);border-radius:17px;background:#fff;color:var(--sg-muted);font-size:.73rem;font-weight:900;text-align:center}.review-summary-grid strong{display:block;color:var(--sg-ink);font-size:1.18rem;line-height:1}.support-action:disabled{opacity:.48;cursor:not-allowed;box-shadow:none}
@media (max-width:420px){.next-support-card,.today-section-head,.recent-helpful-item{display:grid}.today-plan-actions,.planned-support-item .support-action-row{display:grid}.today-plan-actions .support-action,.planned-support-item .support-action,.recent-helpful-item .support-action{width:100%;justify-content:center}.planned-support-item{grid-template-columns:1fr}.status-tag{justify-self:start}.review-summary-grid{grid-template-columns:1fr 1fr 1fr}}
@media print{.quick-moment-panel,.today-plan-actions,.planned-support-item .support-action-row{display:none!important}.today-plan-card,.today-section-card,.next-support-card{box-shadow:none;break-inside:avoid}}

/* SC-PLAN-04: planned support actions */
.planned-support-secondary-actions{margin-top:-2px}
.planned-support-secondary-actions .support-action{font-size:.76rem;min-height:36px;padding-inline:10px}
.planned-support-secondary-actions [data-plan-shell-action="add-vizicues-run-item"]{border-style:dashed}
@media (max-width:420px){.planned-support-secondary-actions{display:grid}.planned-support-secondary-actions .support-action{width:100%;justify-content:center}}
@media print{.planned-support-secondary-actions{display:none!important}}

/* SC-PLAN-05: simple support plan builder */
.plan-builder-sheet[hidden]{display:none}.plan-builder-sheet{position:fixed;inset:0;z-index:76}.plan-builder-panel{position:absolute;left:50%;bottom:0;transform:translateX(-50%);width:min(520px,100%);max-height:92svh;overflow:auto;padding:10px 14px calc(18px + var(--safe-bottom));border-radius:30px 30px 0 0;background:#fff;box-shadow:0 -26px 70px rgba(15,23,42,.24)}.plan-builder-body{display:grid;gap:12px}.builder-progress{display:grid;grid-template-columns:repeat(4,1fr);gap:6px;align-items:center}.builder-progress span{display:block;height:7px;border-radius:999px;background:#E2E8F0}.builder-progress span.active{background:var(--sg-brand)}.builder-step-copy{padding:14px;border:1px solid rgba(54,171,156,.18);border-radius:22px;background:linear-gradient(145deg,#FFFFFF,#F2FBF9)}.builder-step-copy h3{margin:4px 0 7px;color:var(--sg-ink);font-size:1.18rem;line-height:1.12;letter-spacing:-.03em}.builder-step-copy p{margin:0;color:var(--sg-muted);font-size:.92rem;line-height:1.45}.builder-choice-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}.builder-choice{position:relative;min-height:94px;text-align:left;border:1px solid var(--sg-line);border-radius:20px;background:#fff;color:var(--sg-text);padding:13px;box-shadow:0 6px 14px rgba(15,23,42,.04)}.builder-choice.selected{border-color:rgba(54,171,156,.72);background:var(--sg-teal-soft);box-shadow:0 9px 20px rgba(54,171,156,.12)}.builder-choice strong{display:block;color:var(--sg-ink);font-size:.93rem;line-height:1.15;letter-spacing:-.02em}.builder-choice span{display:block;margin-top:6px;color:var(--sg-muted);font-size:.78rem;line-height:1.3}.builder-choice em{position:absolute;right:10px;top:9px;display:grid;place-items:center;width:24px;height:24px;border-radius:999px;background:var(--sg-brand);color:#fff;font-style:normal;font-size:.72rem;font-weight:950}.builder-note{margin:0;color:var(--sg-muted);font-size:.84rem;line-height:1.4}.builder-footer{position:sticky;bottom:0;display:grid;grid-template-columns:1fr 1fr;gap:8px;padding-top:10px;background:linear-gradient(180deg,rgba(255,255,255,.72),#fff 30%)}.builder-footer .primary-button:only-child{grid-column:1 / -1}.builder-name-field{display:grid;gap:7px;padding:14px;border:1px solid var(--sg-line);border-radius:22px;background:#fff}.builder-name-field span{color:var(--sg-ink);font-size:.86rem;font-weight:900}.builder-name-field input{width:100%;min-height:46px;border:1px solid var(--sg-line);border-radius:16px;background:#F8FAFC;color:var(--sg-text);padding:0 12px}.builder-review-list{display:grid;gap:9px}.builder-review-card{display:grid;grid-template-columns:1fr auto;gap:10px;align-items:start;padding:12px;border:1px solid var(--sg-line);border-radius:20px;background:var(--sg-surface-soft)}.builder-review-card h4{margin:0;color:var(--sg-ink);font-size:1rem;line-height:1.14;letter-spacing:-.02em}.builder-review-card p{margin:5px 0 0;color:var(--sg-muted);font-size:.84rem;line-height:1.38}.builder-review-card .support-action{white-space:nowrap}@media (max-width:420px){.builder-choice-grid,.builder-footer,.builder-review-card{grid-template-columns:1fr}.builder-review-card .support-action{width:100%;justify-content:center}}@media print{.plan-builder-sheet{display:none!important}}

/* SC-PLAN-05B: responsive app shell and wide-screen layout
   The app should not render as a skinny phone mockup on tablets/desktops. */
:root{
  --sg-shell-max:1180px;
  --sg-shell-gutter:clamp(12px,3vw,32px);
}
.sg-app{width:100%;max-width:none;margin:0 auto}

@media (min-width:700px){
  body{padding:24px var(--sg-shell-gutter)}
  .sg-app{width:min(100%,var(--sg-shell-max));max-width:var(--sg-shell-max);min-height:calc(100svh - 48px);border-radius:34px;background:rgba(255,255,255,.58)}
  .app-main{padding:22px clamp(18px,2.6vw,30px) calc(108px + var(--safe-bottom));min-height:calc(100svh - 118px)}
  .app-header{padding:calc(12px + env(safe-area-inset-top,0px)) clamp(16px,2.4vw,24px) 12px}
  .tab-bar{width:min(var(--sg-shell-max),calc(100% - (var(--sg-shell-gutter) * 2)));bottom:24px}
  .drawer-panel,.attempt-panel{width:min(720px,calc(100% - 36px))}
  .plan-builder-panel{width:min(820px,calc(100% - 36px))}
  .app-toast{width:min(620px,calc(100% - 48px))}
}

@media (min-width:760px){
  .tab-panel.active{gap:16px}
  #panel-today.tab-panel.active{display:grid;grid-template-columns:minmax(0,1.08fr) minmax(300px,.86fr);align-items:start}
  #todayPlanHero{grid-column:1 / -1}
  #nextSupportCard,#plannedSupportsList{grid-column:1}
  #quickMomentPanel,#dailyReviewCard,#todayHistory{grid-column:2}
  .today-plan-card{min-height:150px;padding:22px}
  .today-plan-card.has-app-icon{padding-right:90px}
  .today-plan-card .today-app-icon{right:22px;top:22px;width:50px;height:50px;border-radius:18px}
  .today-plan-card h1{font-size:clamp(1.65rem,2.6vw,2.18rem)}
  .today-plan-card p{max-width:68ch;font-size:1rem}
  .next-support-card,.today-section-card,.quick-moment-panel,.today-history-card{padding:18px}
  .quick-moment-panel{margin-top:0}
  .moment-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .planned-support-item{padding:14px}
  #activityList{align-self:start}
  #panel-reports.tab-panel.active{display:grid;gap:16px}
  #panel-reports .report-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
}

@media (min-width:1040px){
  #panel-today.tab-panel.active{grid-template-columns:minmax(0,1fr) minmax(340px,.72fr);gap:18px}
  .app-main{padding-left:32px;padding-right:32px}
  .activity-list{grid-template-columns:repeat(2,minmax(0,1fr))}
  .activity-card{min-height:100%}
}

@media (min-width:1280px){
  body{padding-top:30px;padding-bottom:30px}
  .sg-app{min-height:calc(100svh - 60px)}
  .tab-bar{bottom:30px}
}

@media (max-width:699px){
  .sg-app{box-shadow:none}
}

/* SC-PLAN-05C: simplified Today information architecture */
.today-command-card{position:relative;display:grid;gap:13px;margin-bottom:12px;padding:18px;border:1px solid rgba(226,232,240,.88);border-radius:var(--r-xl);background:linear-gradient(140deg,#FFFFFF 0%,#EEF9F6 100%);box-shadow:var(--sg-shadow-soft)}
.today-command-card-empty{background:linear-gradient(140deg,#FFFFFF 0%,#FFF8F2 100%)}
.today-command-card .today-app-icon{position:absolute;right:16px;top:16px;width:44px;height:44px;border-radius:16px;object-fit:cover;box-shadow:0 6px 18px rgba(15,23,42,.09)}
.today-command-card.has-app-icon{padding-right:76px}
.today-command-copy h1{margin:0;color:var(--sg-ink);font-size:1.54rem;line-height:1.04;letter-spacing:-.05em}
.today-command-copy p{margin:8px 0 0;color:var(--sg-muted);font-size:.96rem;line-height:1.45}
.today-command-meta{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px 13px;border:1px solid rgba(54,171,156,.18);border-radius:20px;background:rgba(255,255,255,.74)}
.today-command-meta div{display:grid;gap:2px;min-width:0}.today-command-meta span:not(.status-tag){color:var(--sg-muted);font-size:.72rem;font-weight:950;text-transform:uppercase;letter-spacing:.06em}.today-command-meta strong{color:var(--sg-ink);font-size:.96rem;line-height:1.18;overflow-wrap:anywhere}
.today-plan-summary.compact{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 12px}.today-plan-summary.compact strong{font-size:.92rem}.today-plan-summary.compact span{font-size:.78rem}
.today-plan-list-card{margin-top:0}.planned-support-list.compact-list{gap:8px}.planned-support-item.compact{padding:12px}.planned-support-compact-actions{grid-column:1 / -1;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto;gap:7px;align-items:center}.planned-support-compact-actions>.support-action{width:100%;justify-content:center}.planned-support-more{position:relative}.planned-support-more summary{list-style:none;min-height:40px}.planned-support-more summary::-webkit-details-marker{display:none}.planned-support-menu{position:absolute;right:0;top:calc(100% + 6px);z-index:4;display:grid;gap:6px;min-width:190px;padding:8px;border:1px solid var(--sg-line);border-radius:18px;background:#fff;box-shadow:0 16px 34px rgba(15,23,42,.14)}.planned-support-menu .support-action{width:100%;justify-content:center;font-size:.78rem;min-height:36px}.planned-support-more[open] summary{background:#F8FAFC}
.quick-moment-panel-compact{padding:15px;background:linear-gradient(140deg,#FFFFFF,#F8FAFC)}.quick-moment-panel-compact .today-section-head{margin-bottom:0}.quick-moment-panel-compact .support-action.primary{align-self:center;white-space:nowrap}.quick-moment-panel.is-open .today-section-head{margin-bottom:12px}.quick-moment-panel.is-open{background:rgba(255,255,255,.88)}
.stuck-choice-card{grid-template-columns:1fr auto}.stuck-choice-card .stuck-choice-actions{grid-column:1 / -1;display:grid;grid-template-columns:1fr 1fr;gap:8px}.reset-action{background:var(--sg-accent);color:#fff;border-color:rgba(245,138,72,.55)}.reset-action:hover{box-shadow:0 10px 20px rgba(245,138,72,.18)}
.compact-review-card{padding:14px}.compact-review-card .today-section-head{margin-bottom:8px}.review-summary-line{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:10px}.review-summary-line span{display:inline-flex;align-items:center;gap:4px;min-height:34px;padding:6px 10px;border:1px solid var(--sg-line);border-radius:999px;background:#fff;color:var(--sg-muted);font-size:.78rem;font-weight:900}.review-summary-line strong{color:var(--sg-ink)}.compact-actions{display:flex;flex-wrap:wrap;gap:7px}
@media (max-width:520px){.quick-moment-compact-head{display:grid}.quick-moment-compact-head .support-action{width:100%;justify-content:center}.planned-support-compact-actions{grid-template-columns:1fr}.planned-support-more summary{justify-content:center;width:100%}.planned-support-menu{position:static;margin-top:7px;box-shadow:none}.stuck-choice-card,.stuck-choice-card .stuck-choice-actions{grid-template-columns:1fr}.stuck-choice-card .support-action{width:100%;justify-content:center}.today-command-meta,.today-plan-summary.compact{display:grid}.today-command-card.has-app-icon{padding-right:18px;padding-top:72px}.today-command-card .today-app-icon{left:18px;right:auto}.compact-actions{display:grid}.compact-actions .support-action{width:100%;justify-content:center}}
@media (min-width:760px){.today-command-card{min-height:150px;padding:22px}.today-command-card.has-app-icon{padding-right:90px}.today-command-card .today-app-icon{right:22px;top:22px;width:50px;height:50px;border-radius:18px}.today-command-copy h1{font-size:clamp(1.7rem,2.8vw,2.22rem)}.today-command-copy p{max-width:68ch;font-size:1rem}.quick-moment-panel-compact{margin-top:0}.planned-support-compact-actions{grid-template-columns:minmax(120px,1fr) minmax(100px,.7fr) auto}}
@media print{.today-command-card,.today-plan-list-card{box-shadow:none;break-inside:avoid}.quick-moment-panel,.planned-support-compact-actions{display:none!important}}

/* SC-PLAN-05E rhythm builder flow */
.builder-progress{grid-template-columns:repeat(2,1fr)}
.builder-scope-grid{grid-template-columns:1fr}
.builder-choice.compact{min-height:76px;padding:11px 12px}
.builder-rhythm-list{gap:10px}
.builder-rhythm-card{background:linear-gradient(145deg,#FFFFFF,#F7FEFC)}
.builder-add-anchor{display:grid;gap:9px;padding:12px;border:1px dashed rgba(54,171,156,.34);border-radius:22px;background:#F8FAFC}
.builder-add-anchor .try-first-head{margin:0}
.builder-add-anchor .try-first-head h3{font-size:1rem}
.builder-add-anchor-grid{grid-template-columns:1fr}
.builder-empty-draft{display:grid;gap:6px;text-align:left}.builder-empty-draft strong{color:var(--sg-ink)}.builder-empty-draft p{margin:0;color:var(--sg-muted);line-height:1.45}
@media (min-width:560px){.builder-scope-grid{grid-template-columns:1fr 1fr}.builder-add-anchor-grid{grid-template-columns:1fr 1fr}}
/* SC-PLAN-05F draft rhythm card editor */
.builder-rhythm-card{grid-template-columns:1fr}.builder-rhythm-card-main{display:grid;gap:10px}.builder-rhythm-card-head{display:flex;align-items:center;justify-content:space-between;gap:10px}.builder-move-actions{display:flex;gap:6px;align-items:center}.support-action.mini{min-height:30px;padding-inline:9px;font-size:.7rem}.builder-support-list{display:grid;gap:8px}.builder-support-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;padding:11px;border:1px solid rgba(15,23,42,.08);border-radius:18px;background:#fff}.builder-support-copy h4{margin:0;color:var(--sg-ink);font-size:1rem;line-height:1.15;letter-spacing:-.02em}.builder-support-copy p{margin:5px 0 0;color:var(--sg-muted);font-size:.84rem;line-height:1.38}.builder-safety-note{padding:8px 10px;border-radius:14px;background:#FFF7ED;color:#8A4B20!important}.builder-support-actions{align-content:start;justify-content:end;margin:0}.builder-card-actions{margin-top:0}.builder-support-picker{display:grid;gap:9px;padding:10px;border:1px dashed rgba(54,171,156,.45);border-radius:18px;background:#F8FAFC}.builder-picker-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}.builder-picker-head div{display:grid;gap:2px}.builder-picker-head strong{color:var(--sg-ink);font-size:.92rem}.builder-picker-head span,.builder-picker-note{color:var(--sg-muted);font-size:.8rem;line-height:1.35}.builder-picker-list{display:grid;gap:7px}.builder-picker-choice{display:grid;gap:4px;width:100%;text-align:left;border:1px solid var(--sg-line);border-radius:16px;background:#fff;color:var(--sg-text);padding:10px 11px}.builder-picker-choice strong{color:var(--sg-ink);font-size:.9rem}.builder-picker-choice span{color:var(--sg-muted);font-size:.78rem;line-height:1.35}.builder-picker-note{margin:0}.builder-footer .primary-button:disabled{opacity:.55;cursor:not-allowed}
@media (max-width:520px){.builder-rhythm-card-head,.builder-picker-head,.builder-support-row{display:grid}.builder-move-actions,.builder-support-actions,.builder-card-actions{display:grid;grid-template-columns:1fr 1fr}.builder-card-actions .support-action,.builder-support-actions .support-action,.builder-move-actions .support-action{width:100%;justify-content:center}.builder-card-actions{grid-template-columns:1fr}.builder-support-row{grid-template-columns:1fr}}
/* SC-PLAN-05G — Today Plan Adjustments from Rhythm Cards */
.today-adjustment-panel{grid-column:1 / -1;display:grid;gap:9px;margin-top:2px;padding:10px;border:1px dashed rgba(54,171,156,.45);border-radius:18px;background:#F8FAFC}.today-adjustment-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}.today-adjustment-head div{display:grid;gap:2px}.today-adjustment-head strong{color:var(--sg-ink);font-size:.92rem}.today-adjustment-head span,.today-adjustment-panel .builder-picker-note{color:var(--sg-muted);font-size:.8rem;line-height:1.35}.today-support-picker-list,.today-save-choice-grid{display:grid;gap:7px}.today-save-choice-grid{grid-template-columns:1fr 1fr}.planned-support-menu [data-plan-shell-action="remove-today-run-item"]{border-color:#F7C8A3;color:#8A4B20;background:#FFF7ED}@media (max-width:520px){.today-adjustment-head,.today-save-choice-grid{display:grid;grid-template-columns:1fr}.today-adjustment-head .support-action{width:100%;justify-content:center}}

/* SC-PLAN-05J — Today Support Plan UI Rebuild */
#nextSupportCard{display:none!important}
#panel-today.tab-panel.active{display:grid;gap:12px;align-content:start;max-width:920px;margin:0 auto;width:100%}
#todayPlanHero,#plannedSupportsList,#quickMomentPanel,#dailyReviewCard,#todayHistory{grid-column:1 / -1;width:100%}
.today-support-plan-card,.today-anchor-list-card,.today-support-empty-card,.today-log-helper-card{border:1px solid rgba(226,232,240,.88);border-radius:var(--r-xl);background:rgba(255,255,255,.92);box-shadow:var(--sg-shadow-soft)}
.today-support-plan-card{position:relative;display:grid;gap:14px;padding:18px;background:linear-gradient(140deg,#FFFFFF 0%,#EEF9F6 100%);overflow:hidden}.today-support-plan-card .today-app-icon{position:absolute;right:16px;top:16px;width:44px;height:44px;border-radius:16px;object-fit:cover;box-shadow:0 6px 18px rgba(15,23,42,.09)}.today-support-plan-card.has-app-icon{padding-right:76px}.today-support-plan-card h1{margin:0;color:var(--sg-ink);font-size:1.56rem;line-height:1.04;letter-spacing:-.05em}.today-support-plan-card p{margin:8px 0 0;color:var(--sg-muted);font-size:.96rem;line-height:1.45}
.today-plan-toolbar{display:grid;gap:10px}.today-scope-picker{display:grid;gap:6px}.today-scope-picker span{color:var(--sg-ink);font-size:.78rem;font-weight:950;text-transform:uppercase;letter-spacing:.055em}.today-scope-picker select{width:100%;min-height:44px;border:1px solid rgba(54,171,156,.24);border-radius:16px;background:#fff;color:var(--sg-ink);font-weight:850;padding:0 12px}.today-action-bar{display:flex;flex-wrap:wrap;gap:8px}.today-action-bar .support-action{min-height:40px}.today-plan-summary-row{display:grid;gap:8px;padding:12px;border:1px solid rgba(54,171,156,.18);border-radius:20px;background:rgba(255,255,255,.78)}.today-plan-summary-row span{display:grid;gap:2px;color:var(--sg-text);font-size:.86rem;font-weight:850}.today-plan-summary-row strong{color:var(--sg-muted);font-size:.68rem;font-weight:950;text-transform:uppercase;letter-spacing:.06em}
.today-anchor-list-card{display:grid;gap:12px;padding:15px}.today-anchor-list-head{margin-bottom:0}.today-anchor-list{display:grid;gap:10px}.today-anchor-section{display:grid;gap:8px;padding:10px;border:1px solid rgba(226,232,240,.86);border-radius:22px;background:linear-gradient(145deg,#FFFFFF,#F8FAFC)}.today-anchor-heading{display:flex;align-items:center;justify-content:space-between;gap:10px}.today-anchor-heading span{color:var(--sg-brand-dark);font-size:.78rem;font-weight:950;text-transform:uppercase;letter-spacing:.055em}.today-anchor-heading small{color:var(--sg-muted);font-size:.8rem;font-weight:800}.today-hidden-note{margin:0;color:var(--sg-muted);font-size:.84rem;line-height:1.4}.today-support-empty-card{display:grid;gap:8px;padding:18px;background:linear-gradient(140deg,#FFFFFF,#FFF8F2);text-align:left}.today-support-empty-card strong{color:var(--sg-ink);font-size:1.08rem;letter-spacing:-.025em}.today-support-empty-card p{margin:0;color:var(--sg-muted);font-size:.92rem;line-height:1.45}.today-empty-actions{margin-top:4px}
.today-support-row{position:relative;grid-template-columns:minmax(0,1fr) auto;background:#fff}.today-support-row.is-up-next{border-color:rgba(54,171,156,.46);background:linear-gradient(145deg,#FFFFFF,#F2FBF9)}.planned-anchor-line{display:flex;align-items:center;gap:7px;flex-wrap:wrap;margin-bottom:5px}.planned-anchor-line .planned-anchor{margin-bottom:0}.up-next-badge{display:inline-flex;align-items:center;min-height:23px;padding:0 8px;border-radius:999px;background:var(--sg-brand);color:#fff;font-size:.68rem;font-weight:950;text-transform:uppercase;letter-spacing:.055em}.today-log-helper-card{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px;background:linear-gradient(140deg,#FFFFFF,#F8FAFC)}.today-log-helper-card h2{margin:0;color:var(--sg-ink);font-size:1.04rem;line-height:1.12;letter-spacing:-.035em}.today-log-helper-card p{margin:5px 0 0;color:var(--sg-muted);font-size:.88rem;line-height:1.4}.today-log-helper-actions{display:flex;gap:7px;flex-wrap:wrap;justify-content:flex-end}.today-log-helper-actions .support-action{min-height:36px;font-size:.78rem}.today-history-card-details{margin-top:0}
.quick-moment-panel-compact .today-section-head h2{font-size:1.08rem}.quick-moment-panel-compact .today-section-head p{max-width:58ch}.recent-helpful-list{grid-template-columns:1fr}
@media (max-width:620px){.today-support-plan-card.has-app-icon{padding-right:18px;padding-top:74px}.today-support-plan-card .today-app-icon{left:18px;right:auto}.today-action-bar,.today-empty-actions,.today-log-helper-card,.today-log-helper-actions{display:grid}.today-action-bar .support-action,.today-empty-actions .support-action,.today-log-helper-actions .support-action{width:100%;justify-content:center}.today-plan-summary-row{grid-template-columns:1fr}.today-support-row{grid-template-columns:1fr}.up-next-badge{font-size:.65rem}.today-anchor-heading{display:grid}.today-anchor-heading small{margin-top:-4px}}
@media (min-width:760px){#panel-today.tab-panel.active{display:grid;grid-template-columns:1fr!important;gap:14px}.today-support-plan-card{padding:22px}.today-support-plan-card.has-app-icon{padding-right:92px}.today-support-plan-card .today-app-icon{right:22px;top:22px;width:50px;height:50px;border-radius:18px}.today-support-plan-card h1{font-size:clamp(1.7rem,2.8vw,2.18rem)}.today-plan-toolbar{grid-template-columns:minmax(220px,.32fr) minmax(0,.68fr);align-items:end}.today-plan-summary-row{grid-template-columns:repeat(3,minmax(0,1fr))}.today-anchor-list-card,.quick-moment-panel,.today-log-helper-card,.today-history-card{padding:18px}.today-action-bar{justify-content:flex-end}.today-anchor-list{gap:12px}}
@media print{.today-action-bar,.today-log-helper-actions,.today-empty-actions,#quickMomentPanel{display:none!important}.today-support-plan-card,.today-anchor-list-card,.today-log-helper-card{box-shadow:none;break-inside:avoid}}

/* SC-PLAN-05K: compact Today support cards and expandable detail */
.today-compact-support-card{position:relative;display:grid;grid-template-columns:8px 30px minmax(0,1fr) auto;gap:10px;align-items:start;padding:0;border-radius:24px;background:#fff;box-shadow:0 8px 18px rgba(15,23,42,.045);overflow:visible}.today-compact-support-card.is-up-next{box-shadow:0 10px 24px rgba(54,171,156,.11)}.today-support-rail{grid-row:1 / span 2;align-self:stretch;width:8px;min-height:100%;border-radius:24px 0 0 24px;background:var(--sg-brand)}.support-category-calming .today-support-rail,.support-category-quiet .today-support-rail{background:#36AB9C}.support-category-heavy .today-support-rail,.support-category-proprioceptive .today-support-rail,.support-category-pressure .today-support-rail{background:#8B5CF6}.support-category-movement .today-support-rail,.support-category-vestibular .today-support-rail{background:#F58A48}.support-category-visual .today-support-rail{background:#3B82F6}.support-category-tactile .today-support-rail,.support-category-oral .today-support-rail,.support-category-sensory .today-support-rail{background:#EC4899}.today-drag-handle{align-self:center;justify-self:center;width:28px;min-height:54px;margin:12px 0;border:1px solid rgba(203,213,225,.78);border-radius:14px;background:#F8FAFC;color:#94A3B8;font-size:1rem;font-weight:950;line-height:1;letter-spacing:-.18em;cursor:grab}.today-drag-handle:active{cursor:grabbing}.today-support-card-body{display:grid;gap:8px;min-width:0;padding:12px 0 12px}.today-support-card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}.today-duration-pill{flex:0 0 auto;display:inline-flex;align-items:center;min-height:25px;padding:0 9px;border-radius:999px;background:#F1F5F9;color:#475569;font-size:.72rem;font-weight:950;white-space:nowrap}.today-helper-tags{display:flex;flex-wrap:wrap;gap:6px}.today-helper-tag{display:inline-flex;align-items:center;min-height:24px;padding:0 8px;border-radius:999px;background:#F8FAFC;border:1px solid rgba(226,232,240,.84);color:#475569;font-size:.7rem;font-weight:850}.today-support-card-footer{display:flex;align-items:end;justify-content:space-between;gap:10px;flex-wrap:wrap}.today-outcome-placeholder{display:grid;gap:4px;min-width:min(210px,100%)}.today-outcome-placeholder span{color:var(--sg-muted);font-size:.68rem;font-weight:950;text-transform:uppercase;letter-spacing:.055em}.today-outcome-placeholder select{min-height:36px;border:1px solid rgba(203,213,225,.86);border-radius:13px;background:#fff;color:var(--sg-text);padding:0 10px;font-size:.8rem;font-weight:850}.today-card-overflow{position:relative}.today-card-overflow summary{list-style:none}.today-card-overflow summary::-webkit-details-marker{display:none}.today-card-overflow[open] .planned-support-menu{position:absolute;right:0;z-index:8;min-width:190px;margin-top:6px;padding:8px;border:1px solid rgba(226,232,240,.95);border-radius:18px;background:#fff;box-shadow:0 18px 40px rgba(15,23,42,.14)}.planned-support-menu .support-action{width:100%;justify-content:flex-start;margin-top:5px}.planned-support-menu .support-action:first-child{margin-top:0}.support-action.danger{border-color:#F7C8A3;color:#8A4B20;background:#FFF7ED}.today-support-card-detail{grid-column:1 / -1;margin-top:2px;border:1px solid rgba(226,232,240,.84);border-radius:18px;background:#F8FAFC}.today-support-card-detail>summary{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:40px;padding:0 12px;color:#475569;font-size:.8rem;font-weight:950;cursor:pointer}.today-support-card-detail>summary::after{content:"⌄";color:var(--sg-muted);font-weight:950}.today-support-card-detail[open]>summary::after{content:"⌃"}.today-support-card-detail-body{display:grid;gap:9px;padding:0 12px 12px}.today-support-detail-block{display:grid;gap:3px;padding:10px;border:1px solid rgba(226,232,240,.78);border-radius:15px;background:#fff}.today-support-detail-block strong{color:var(--sg-ink);font-size:.78rem}.today-support-detail-block p{margin:0;color:var(--sg-muted);font-size:.82rem;line-height:1.42}.today-support-detail-block.tone-safety{background:#FFF7ED;border-color:#FED7AA}.today-support-detail-block.tone-safety strong{color:#8A4B20}.today-support-card-detail-actions{display:flex;gap:7px;flex-wrap:wrap}.today-compact-support-card>.status-tag{margin:12px 12px 0 0}.today-compact-support-card>.today-adjustment-panel{grid-column:2 / -1;margin:0 12px 12px 0}.planned-support-compact-actions{display:flex;align-items:center;gap:7px;flex-wrap:wrap;justify-content:flex-end}
@media (max-width:620px){.today-compact-support-card{grid-template-columns:8px minmax(0,1fr) auto;gap:9px}.today-drag-handle{grid-column:2;justify-self:start;width:auto;min-height:30px;margin:10px 0 0;padding:0 9px;letter-spacing:-.15em}.today-support-card-body{grid-column:2 / -1;padding:0 10px 12px 0}.today-compact-support-card>.status-tag{grid-column:3;grid-row:1;margin:10px 10px 0 0}.today-support-card-head,.today-support-card-footer{display:grid;grid-template-columns:1fr}.today-duration-pill{justify-self:start}.planned-support-compact-actions{display:grid;grid-template-columns:1fr;justify-content:stretch;width:100%}.planned-support-compact-actions .support-action,.today-card-overflow,.today-card-overflow summary{width:100%;justify-content:center}.today-card-overflow[open] .planned-support-menu{position:static;min-width:0}.today-outcome-placeholder{width:100%}.today-support-card-detail-actions{display:grid}.today-support-card-detail-actions .support-action{width:100%;justify-content:center}.today-compact-support-card>.today-adjustment-panel{grid-column:2 / -1}}
@media print{.today-drag-handle,.today-outcome-placeholder,.today-card-overflow,.today-support-card-detail-actions{display:none!important}.today-compact-support-card{box-shadow:none;break-inside:avoid}}


/* SC-PLAN-05K.1: clean Today empty state + library fallback polish */
.today-support-plan-card{
  border:1px solid rgba(226,232,240,.86);
  border-radius:24px;
  background:rgba(255,255,255,.94);
  box-shadow:0 8px 22px rgba(15,23,42,.045);
  padding:18px;
  gap:12px;
}
.today-support-plan-card .today-app-icon{display:none!important}
.today-support-plan-card.has-app-icon{padding-right:18px!important;padding-top:18px!important}
.today-support-plan-card h1{font-size:clamp(1.55rem,5vw,2rem);line-height:1.05;letter-spacing:-.055em}
.today-support-plan-card p{max-width:62ch;margin-top:6px;font-size:.94rem;line-height:1.4}
.today-support-plan-card.is-empty-shell{background:linear-gradient(145deg,#FFFFFF 0%,#F7FCFA 100%)}
.today-plan-toolbar{gap:9px}
.today-scope-picker{gap:5px}
.today-scope-picker select{min-height:42px;border-radius:15px;background:#fff}
.today-action-bar{gap:7px}
.today-action-bar .support-action{min-height:38px;padding-inline:12px}
.today-plan-summary-row{
  display:flex!important;
  flex-wrap:wrap;
  gap:6px;
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
}
.today-plan-summary-row span{
  display:inline-flex!important;
  align-items:center;
  min-height:30px;
  width:auto;
  padding:0 10px;
  border:1px solid rgba(226,232,240,.9);
  border-radius:999px;
  background:#F8FAFC;
  color:#475569;
  font-size:.76rem;
  font-weight:850;
  line-height:1;
}
.today-plan-summary-row strong{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.today-support-empty-card{
  margin-top:10px;
  padding:18px;
  border:1px solid rgba(226,232,240,.9);
  border-radius:24px;
  background:#fff;
  box-shadow:0 8px 20px rgba(15,23,42,.04);
  text-align:left;
}
.today-support-empty-card strong{font-size:1.18rem;line-height:1.1;letter-spacing:-.045em}
.today-support-empty-card p{font-size:.96rem;max-width:32rem}
.today-empty-actions{display:flex!important;flex-wrap:wrap;gap:8px;margin-top:8px}
.today-empty-actions .support-action{width:auto!important;flex:1 1 150px;justify-content:center}
.today-empty-actions .support-action.primary{flex-basis:190px}
.today-anchor-list-card{
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
}
.today-anchor-list-head{padding:0 2px;margin-bottom:8px}
.today-anchor-section{border-radius:22px;background:#fff;box-shadow:0 6px 18px rgba(15,23,42,.035)}
.today-log-helper-card,.quick-moment-panel{border-radius:24px;background:rgba(255,255,255,.94);box-shadow:0 8px 20px rgba(15,23,42,.04)}
.quick-moment-panel{margin-top:12px}
.quick-moment-compact-head{margin-bottom:0}
.today-compact-support-card{border-radius:20px;box-shadow:0 7px 18px rgba(15,23,42,.045)}
.today-support-card-detail{border-radius:16px;background:#FBFCFE}
.library-load-note{margin:0 0 10px;color:var(--sg-muted);font-size:.84rem;line-height:1.35}
@media (max-width:620px){
  .today-support-plan-card{padding:16px!important}
  .today-empty-actions{display:grid!important;grid-template-columns:1fr}
  .today-empty-actions .support-action{width:100%!important;min-height:42px}
  .today-plan-summary-row span{font-size:.74rem}
  .today-action-bar{display:grid!important;grid-template-columns:1fr 1fr}
  .today-action-bar .support-action{width:100%!important;min-height:38px}
}
@media (min-width:760px){
  #panel-today.tab-panel.active{display:grid;grid-template-columns:minmax(0,1fr) minmax(290px,.52fr)!important;gap:16px;align-items:start}
  #todayPlanHero,#plannedSupportsList{grid-column:1}
  #quickMomentPanel,#dailyReviewCard,#todayHistory{grid-column:2}
  .today-support-plan-card{padding:22px!important}
  .today-support-plan-card.has-app-icon{padding-right:22px!important}
  .today-plan-toolbar{grid-template-columns:minmax(220px,.34fr) minmax(0,.66fr)}
}

/* SC-PLAN-05L: scope picker + anchor visibility */
.today-blank-anchor-spot{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:12px;
  border:1px dashed rgba(54,171,156,.34);
  border-radius:18px;
  background:#F8FAFC;
}
.today-blank-anchor-spot span{
  color:#64748B;
  font-size:.86rem;
  font-weight:800;
  line-height:1.35;
}
.today-blank-anchor-spot.is-custom{
  background:linear-gradient(145deg,#FFFFFF,#F7FCFA);
  border-color:rgba(54,171,156,.42);
}
.today-blank-anchor-spot .support-action{flex:0 0 auto;min-height:34px}
.today-support-plan-card.is-empty-shell .today-scope-picker select:not(:disabled){border-color:rgba(54,171,156,.42);box-shadow:0 0 0 3px rgba(54,171,156,.08)}
@media (max-width:620px){
  .today-blank-anchor-spot{display:grid;grid-template-columns:1fr;align-items:start}
  .today-blank-anchor-spot .support-action{width:100%;justify-content:center}
}

/* SC-PLAN-05L.2: legacy-inspired Today layout cleanup.
   Keep the new Today-is-the-builder model, but remove the heavy nested-card look. */
.sg-app{
  width:100%;
  max-width:1040px;
  box-shadow:none;
  background:transparent;
  overflow:visible;
}
.app-main{
  width:min(100%, 980px);
  margin:0 auto;
  padding:18px 16px calc(104px + var(--safe-bottom));
}
#panel-today.tab-panel.active{
  display:block!important;
}
#todayPlanHero,
#plannedSupportsList,
#quickMomentPanel,
#dailyReviewCard,
#todayHistory{
  grid-column:auto!important;
}
.today-support-plan-card{
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
  padding:0 0 14px!important;
}
.today-support-plan-card.has-app-icon{
  padding:0 0 14px!important;
}
.today-support-plan-card .mini-label{
  margin-bottom:6px;
}
.today-support-plan-card h1{
  max-width:40rem;
  font-size:clamp(1.8rem,4.8vw,2.5rem)!important;
  line-height:1.02!important;
}
.today-support-plan-card p{
  max-width:44rem;
  margin:8px 0 0!important;
  color:var(--sg-muted);
}
.today-plan-toolbar{
  display:grid;
  grid-template-columns:minmax(190px,260px) minmax(0,1fr)!important;
  gap:10px!important;
  align-items:end;
  margin-top:14px;
}
.today-scope-picker{
  margin:0;
}
.today-scope-picker span{
  color:var(--sg-ink);
  font-size:.78rem;
  font-weight:950;
  letter-spacing:.055em;
  text-transform:uppercase;
}
.today-scope-picker select{
  min-height:44px!important;
  border:1px solid #ccdcd8!important;
  border-radius:10px!important;
  background:#fff!important;
  color:var(--sg-ink);
  font-weight:750;
  box-shadow:none!important;
}
.today-action-bar{
  display:flex!important;
  flex-wrap:wrap;
  gap:8px!important;
  justify-content:flex-start!important;
}
.today-action-bar .support-action,
.support-action{
  border-radius:10px!important;
  box-shadow:none!important;
}
.today-action-bar .support-action{
  min-height:44px!important;
  padding:0 14px!important;
}
.today-action-bar .support-action.primary{
  min-width:150px;
}
.today-plan-summary-row{
  margin-top:9px;
}
.today-plan-summary-row span{
  min-height:28px!important;
  border-radius:999px!important;
  background:#eef6f5!important;
  border-left:6px solid var(--sg-brand)!important;
  border-top:0!important;
  border-right:0!important;
  border-bottom:0!important;
}
.today-anchor-list-card{
  margin-top:10px;
}
.today-anchor-list-head{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
  padding:0 0 6px!important;
  margin:0!important;
}
.today-anchor-list-head .count-pill{
  min-width:auto;
  padding:4px 9px;
  border-radius:999px;
  font-size:.72rem;
}
.today-anchor-list{
  display:grid;
  gap:0!important;
  border:1px solid rgba(204,220,216,.9);
  border-radius:12px;
  background:#fff;
  box-shadow:0 8px 20px rgba(0,0,0,.055);
  overflow:hidden;
}
.today-anchor-section{
  display:grid;
  grid-template-columns:minmax(145px,.28fr) minmax(0,1fr);
  gap:12px;
  align-items:start;
  padding:12px 14px;
  border-radius:0!important;
  border:0;
  border-bottom:1px solid rgba(226,232,240,.9);
  background:#fff!important;
  box-shadow:none!important;
}
.today-anchor-section:last-child{
  border-bottom:0;
}
.today-anchor-heading{
  margin:0!important;
  padding-top:4px;
}
.today-anchor-heading span{
  display:block;
  color:var(--sg-brand-dark);
  font-size:.8rem;
  font-weight:950;
  letter-spacing:.07em;
  line-height:1.2;
  text-transform:uppercase;
}
.today-anchor-heading small{
  display:block;
  margin-top:5px;
  color:var(--sg-muted);
  font-size:.78rem;
  font-weight:750;
  line-height:1.25;
}
.today-blank-anchor-spot{
  min-height:58px;
  display:flex!important;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:10px 12px!important;
  border:1px dashed rgba(54,171,156,.55)!important;
  border-radius:10px!important;
  background:#f9fafb!important;
}
.today-blank-anchor-spot span{
  font-size:.92rem!important;
  font-weight:700!important;
}
.today-blank-anchor-spot .support-action{
  min-height:38px!important;
  padding:0 12px;
  background:#fff;
}
.planned-support-list.compact-list{
  gap:8px!important;
}
.today-compact-support-card{
  border-radius:10px!important;
  border:1px solid rgba(226,232,240,.95)!important;
  box-shadow:none!important;
}
.today-support-rail{
  border-radius:10px 0 0 10px!important;
}
.today-support-card-detail,
.today-support-detail-block{
  border-radius:10px!important;
}
.quick-moment-panel,
.today-log-helper-card,
.today-history-card,
.recent-helpful-item{
  border-radius:12px!important;
  box-shadow:0 8px 20px rgba(0,0,0,.045)!important;
}
.quick-moment-panel{
  margin-top:16px!important;
}
.today-support-empty-card{
  border-radius:12px!important;
  box-shadow:0 8px 20px rgba(0,0,0,.045)!important;
}
@media (max-width:760px){
  .sg-app{max-width:none}
  .app-main{
    width:100%;
    padding:16px 14px calc(104px + var(--safe-bottom));
  }
  .today-plan-toolbar{
    grid-template-columns:1fr!important;
  }
  .today-action-bar{
    display:grid!important;
    grid-template-columns:1fr 1fr;
  }
  .today-action-bar .support-action{
    width:100%!important;
  }
  .today-anchor-section{
    grid-template-columns:1fr;
    gap:8px;
    padding:12px;
  }
  .today-anchor-heading{
    padding-top:0;
  }
}
@media (max-width:420px){
  .today-action-bar{
    grid-template-columns:1fr;
  }
  .today-blank-anchor-spot{
    display:grid!important;
    grid-template-columns:1fr;
  }
  .today-blank-anchor-spot .support-action{
    width:100%;
    justify-content:center;
  }
}
@media (min-width:760px){
  #panel-today.tab-panel.active{
    display:block!important;
  }
  .today-support-plan-card,
  .today-anchor-list-card,
  .quick-moment-panel,
  .today-log-helper-card,
  .today-history-card{
    width:100%;
  }
}

/* SC-PLAN-05L.2 mobile tune: keep legacy-style compact rows on standard iPhones. */
@media (max-width:420px){
  .today-action-bar{
    grid-template-columns:1fr 1fr!important;
  }
  .today-blank-anchor-spot{
    display:flex!important;
    flex-direction:row;
    align-items:center;
  }
  .today-blank-anchor-spot .support-action{
    width:auto!important;
    white-space:nowrap;
  }
}
@media (max-width:350px){
  .today-action-bar{
    grid-template-columns:1fr!important;
  }
  .today-blank-anchor-spot{
    display:grid!important;
    grid-template-columns:1fr;
  }
  .today-blank-anchor-spot .support-action{
    width:100%!important;
  }
}

/* SC-PLAN-05L.3: Legacy routine-structure cleanup for Today.
   The support list is the editable hero; controls sit below it. */
:root{
  --sg-legacy-line:#d7e5e3;
  --sg-legacy-shadow:0 8px 20px rgba(0,0,0,.055);
}
.sg-app{
  width:100%;
  max-width:none;
  margin:0 auto;
  background:transparent;
  box-shadow:none;
  overflow:visible;
}
.app-main{
  width:min(100%, 980px);
  margin:0 auto;
  padding:16px 16px calc(112px + var(--safe-bottom));
}
#panel-today.tab-panel.active{
  display:block!important;
  width:100%;
  max-width:980px;
  margin:0 auto;
}
#todayPlanHero,
#plannedSupportsList,
#quickMomentPanel,
#dailyReviewCard,
#todayHistory{
  width:100%;
  grid-column:auto!important;
}
.today-routine-header,
.today-support-plan-card.today-routine-header{
  display:grid!important;
  gap:8px!important;
  margin:0 0 8px!important;
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
  overflow:visible!important;
}
.today-routine-title-row{
  display:grid;
  grid-template-columns:minmax(155px, 240px) minmax(0, 1fr);
  gap:12px;
  align-items:end;
}
.today-routine-title-row h1,
.today-support-plan-card.today-routine-header h1{
  margin:0!important;
  color:#657976!important;
  font-size:clamp(1.25rem, 4.2vw, 1.72rem)!important;
  line-height:1.15!important;
  font-weight:500!important;
  letter-spacing:-.02em!important;
  text-align:right;
}
.today-routine-subtitle{
  margin:0!important;
  color:var(--sg-muted)!important;
  font-size:.9rem!important;
  line-height:1.35!important;
}
.today-routine-status{
  display:none!important;
}
.today-scope-picker{
  display:grid!important;
  gap:5px!important;
  margin:0!important;
}
.today-scope-picker span{
  color:#657976!important;
  font-size:.74rem!important;
  line-height:1!important;
  font-weight:750!important;
  letter-spacing:.045em!important;
  text-transform:uppercase!important;
}
.today-scope-picker select{
  min-height:38px!important;
  width:100%!important;
  border:1px solid var(--sg-legacy-line)!important;
  border-radius:10px!important;
  background:#fff!important;
  color:var(--sg-ink)!important;
  box-shadow:none!important;
  padding:0 10px!important;
  font-size:.95rem!important;
  font-weight:650!important;
}
.today-anchor-list-card{
  display:block!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
}
.today-edit-area{
  display:grid;
  gap:10px;
  padding:12px;
  border:1px solid rgba(215,229,227,.98);
  border-radius:12px;
  background:#fff;
  box-shadow:var(--sg-legacy-shadow);
}
.today-edit-area.is-empty{
  border:1px dashed var(--sg-brand);
  box-shadow:none;
}
.today-edit-empty-note{
  display:flex;
  flex-wrap:wrap;
  align-items:baseline;
  gap:6px 10px;
  padding:2px 2px 4px;
}
.today-edit-empty-note strong{
  color:#657976;
  font-size:clamp(1.05rem, 4vw, 1.35rem);
  line-height:1.2;
  font-weight:500;
  letter-spacing:-.02em;
}
.today-edit-empty-note span{
  color:var(--sg-muted);
  font-size:.9rem;
  line-height:1.35;
}
.today-anchor-list{
  display:grid!important;
  gap:0!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
  overflow:visible!important;
}
.today-anchor-section{
  display:grid!important;
  grid-template-columns:minmax(124px, .26fr) minmax(0, 1fr)!important;
  gap:10px!important;
  align-items:center!important;
  padding:9px 0!important;
  border:0!important;
  border-radius:0!important;
  border-bottom:1px solid rgba(226,232,240,.9)!important;
  background:transparent!important;
  box-shadow:none!important;
}
.today-anchor-section:last-child{
  border-bottom:0!important;
  padding-bottom:0!important;
}
.today-anchor-heading{
  display:block!important;
  margin:0!important;
  padding:0!important;
}
.today-anchor-heading span{
  display:block!important;
  color:var(--sg-brand-dark)!important;
  font-size:.76rem!important;
  line-height:1.18!important;
  font-weight:850!important;
  letter-spacing:.055em!important;
  text-transform:uppercase!important;
}
.today-anchor-content{
  min-width:0;
}
.today-blank-anchor-spot{
  min-height:46px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:10px!important;
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
}
.today-blank-anchor-spot span{
  min-width:0;
  color:#6B7280!important;
  font-size:.94rem!important;
  line-height:1.25!important;
  font-weight:500!important;
}
.support-action,
.today-routine-controls .support-action,
.today-blank-anchor-spot .support-action{
  min-height:40px!important;
  border:1px solid var(--sg-legacy-line)!important;
  border-radius:10px!important;
  background:#fff!important;
  color:#203330!important;
  padding:0 14px!important;
  font-size:.92rem!important;
  line-height:1.1!important;
  font-weight:650!important;
  box-shadow:none!important;
}
.support-action.primary,
.today-routine-controls .support-action.primary{
  background:var(--sg-brand)!important;
  border-color:var(--sg-brand)!important;
  color:#fff!important;
}
.support-action.subtle,
.today-routine-controls .support-action.subtle,
.today-blank-anchor-spot .support-action.subtle{
  background:#fff!important;
  color:#203330!important;
}
.today-routine-controls{
  display:grid;
  grid-template-columns:repeat(4, minmax(0,1fr));
  gap:10px;
  align-items:stretch;
  margin:2px 0 0;
}
.today-routine-controls .support-action{
  width:100%!important;
  justify-content:center!important;
  text-align:center;
}
.today-routine-controls .support-action.primary{
  min-width:0!important;
}
.planned-support-list.compact-list{
  display:grid!important;
  gap:8px!important;
}
.today-compact-support-card,
.planned-support-item.compact.today-compact-support-card{
  display:grid!important;
  grid-template-columns:7px 28px minmax(0, 1fr) auto!important;
  gap:8px!important;
  align-items:center!important;
  min-height:74px!important;
  padding:0!important;
  border:1px solid rgba(226,232,240,.95)!important;
  border-radius:12px!important;
  background:#fff!important;
  box-shadow:none!important;
  overflow:hidden!important;
}
.today-compact-support-card.is-up-next{
  border-color:rgba(54,171,156,.5)!important;
  background:#f7fcfa!important;
}
.today-support-rail{
  align-self:stretch!important;
  width:7px!important;
  min-height:74px!important;
  border-radius:12px 0 0 12px!important;
}
.today-drag-handle{
  align-self:center!important;
  justify-self:center!important;
  width:24px!important;
  min-height:32px!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  color:#71807d!important;
  font-size:1.1rem!important;
  line-height:1!important;
  letter-spacing:-.18em!important;
}
.today-support-card-body{
  display:grid!important;
  gap:3px!important;
  min-width:0!important;
  padding:8px 4px!important;
}
.today-support-card-head{
  display:flex!important;
  align-items:center!important;
  justify-content:flex-start!important;
  gap:8px!important;
}
.planned-anchor-line{
  display:flex!important;
  align-items:center!important;
  gap:6px!important;
  margin:0!important;
}
.planned-anchor-line .planned-anchor{
  margin:0!important;
  padding:3px 9px!important;
  border-radius:999px!important;
  background:#eef0f0!important;
  color:#1b2b2a!important;
  font-size:.82rem!important;
  font-weight:500!important;
  line-height:1.1!important;
  letter-spacing:0!important;
  text-transform:none!important;
}
.today-duration-pill{
  min-height:25px!important;
  padding:2px 10px!important;
  border-radius:999px!important;
  background:#eef6f5!important;
  color:#25645c!important;
  font-size:.8rem!important;
  font-weight:500!important;
}
.today-support-card-body h3{
  margin:0!important;
  color:#1b2b2a!important;
  font-size:clamp(1rem, 3.8vw, 1.22rem)!important;
  line-height:1.15!important;
  font-weight:750!important;
  letter-spacing:-.025em!important;
}
.today-helper-tags{
  display:flex!important;
  gap:0!important;
}
.today-helper-tag{
  padding:0!important;
  min-height:0!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  color:#657976!important;
  font-size:.75rem!important;
  line-height:1.15!important;
  font-weight:600!important;
  letter-spacing:.03em!important;
  text-transform:uppercase!important;
}
.today-helper-tag:not(:first-child){display:none!important;}
.today-support-card-footer{
  display:contents!important;
}
.today-outcome-placeholder{
  grid-column:4!important;
  grid-row:1!important;
  display:block!important;
  align-self:center!important;
  justify-self:center!important;
  width:auto!important;
  min-width:0!important;
  padding-right:7px!important;
}
.today-outcome-placeholder span{
  display:none!important;
}
.today-outcome-placeholder select{
  width:42px!important;
  min-width:42px!important;
  max-width:42px!important;
  min-height:42px!important;
  overflow:hidden!important;
  border:1px solid var(--sg-legacy-line)!important;
  border-radius:10px!important;
  background:#fff!important;
  color:transparent!important;
  padding:0!important;
  appearance:none!important;
}
.today-outcome-placeholder::before{
  content:"✎";
  position:absolute;
  margin:10px 0 0 14px;
  color:#657976;
  pointer-events:none;
  z-index:1;
}
.planned-support-compact-actions{
  grid-column:4!important;
  grid-row:2!important;
  display:none!important;
}
.today-compact-support-card>.status-tag{
  display:none!important;
}
.today-support-card-detail{
  grid-column:3 / 5!important;
  margin:2px 8px 8px 0!important;
  border:0!important;
  border-top:1px solid rgba(226,232,240,.9)!important;
  border-radius:0!important;
  background:#fff!important;
}
.today-support-card-detail>summary{
  min-height:34px!important;
  padding:0!important;
  color:#657976!important;
  font-size:.82rem!important;
  font-weight:600!important;
}
.today-support-card-detail-body{
  padding:0 0 8px!important;
}
.today-support-detail-block{
  padding:8px 0!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  border-bottom:1px solid rgba(226,232,240,.7)!important;
}
.today-support-detail-block:last-child{border-bottom:0!important;}
.today-hidden-note{
  margin:8px 0 0!important;
  color:var(--sg-muted)!important;
  font-size:.84rem!important;
}
.quick-moment-panel{
  margin-top:18px!important;
  padding:12px!important;
  border:1px solid var(--sg-legacy-line)!important;
  border-radius:12px!important;
  background:#fff!important;
  box-shadow:var(--sg-legacy-shadow)!important;
}
.today-section-head{
  gap:8px!important;
}
.quick-moment-panel .mini-label{
  margin:0 0 4px!important;
}
.quick-moment-panel h2{
  margin:0!important;
  color:#1b2b2a!important;
  font-size:1.05rem!important;
  line-height:1.15!important;
}
.quick-moment-panel p{
  margin:5px 0 0!important;
  color:var(--sg-muted)!important;
  font-size:.88rem!important;
  line-height:1.35!important;
}
.today-log-helper-card.today-log-collapse{
  display:block!important;
  margin-top:12px!important;
  padding:0!important;
  border:1px solid var(--sg-legacy-line)!important;
  border-radius:12px!important;
  background:#fff!important;
  box-shadow:none!important;
}
.today-log-collapse>summary{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:10px!important;
  min-height:44px!important;
  padding:0 12px!important;
  cursor:pointer!important;
  list-style:none!important;
}
.today-log-collapse>summary::-webkit-details-marker{display:none!important;}
.today-log-collapse>summary::after{
  content:"⌄";
  color:#657976;
  font-weight:700;
}
.today-log-collapse[open]>summary::after{content:"⌃";}
.today-log-collapse>summary span{
  color:#1b2b2a;
  font-weight:750;
}
.today-log-collapse>summary small{
  color:var(--sg-muted);
  font-size:.8rem;
  font-weight:500;
  text-align:right;
}
.today-log-helper-body{
  display:grid;
  gap:10px;
  padding:0 12px 12px;
}
.today-log-helper-body p{
  margin:0;
  color:var(--sg-muted);
  font-size:.88rem;
}
.today-log-helper-actions{
  display:flex!important;
  flex-wrap:wrap;
  gap:8px!important;
}
@media (min-width:700px){
  body{padding:24px var(--sg-shell-gutter)}
  .sg-app{
    width:min(100%,1180px);
    max-width:1180px;
    min-height:calc(100svh - 48px);
    border-radius:28px;
    background:rgba(255,255,255,.58);
  }
  .app-main{
    width:min(100%, 1040px);
    padding:22px clamp(18px,2.6vw,30px) calc(108px + var(--safe-bottom));
  }
}
@media (max-width:620px){
  .app-main{
    width:100%;
    padding:16px 14px calc(112px + var(--safe-bottom));
  }
  .today-routine-title-row{
    grid-template-columns:minmax(145px, .5fr) minmax(0, 1fr);
    gap:8px;
  }
  .today-routine-title-row h1{
    font-size:clamp(1.1rem,4.6vw,1.45rem)!important;
  }
  .today-routine-subtitle{
    display:none!important;
  }
  .today-edit-area{
    padding:11px;
  }
  .today-anchor-section{
    grid-template-columns:1fr!important;
    gap:6px!important;
    align-items:start!important;
    padding:10px 0!important;
  }
  .today-anchor-heading span{
    font-size:.74rem!important;
  }
  .today-blank-anchor-spot{
    min-height:40px!important;
  }
  .today-blank-anchor-spot .support-action{
    min-height:36px!important;
    padding:0 10px!important;
    font-size:.86rem!important;
    white-space:nowrap;
  }
  .today-routine-controls{
    grid-template-columns:repeat(3, minmax(0,1fr));
    gap:8px;
  }
  .today-routine-controls .support-action{
    min-height:48px!important;
    padding:0 8px!important;
    font-size:.86rem!important;
  }
  .today-routine-controls .support-action:nth-child(4){
    grid-column:auto;
  }
  .today-compact-support-card,
  .planned-support-item.compact.today-compact-support-card{
    grid-template-columns:7px 28px minmax(0,1fr) 48px!important;
  }
  .today-support-card-body{
    padding:8px 2px!important;
  }
  .today-support-card-head{
    gap:6px!important;
  }
  .planned-anchor-line .planned-anchor{
    font-size:.78rem!important;
    padding:3px 8px!important;
  }
  .today-duration-pill{
    font-size:.78rem!important;
    padding:2px 8px!important;
  }
  .today-outcome-placeholder{
    padding-right:5px!important;
  }
  .quick-moment-panel .today-section-head{
    display:grid!important;
  }
  .quick-moment-panel .support-action{
    width:100%!important;
    justify-content:center!important;
  }
}
@media (max-width:390px){
  .today-routine-controls{
    grid-template-columns:1fr 1fr;
  }
  .today-routine-controls .support-action{
    min-height:44px!important;
  }
  .today-blank-anchor-spot{
    display:grid!important;
    grid-template-columns:1fr;
    gap:8px!important;
  }
  .today-blank-anchor-spot .support-action{
    width:100%!important;
    justify-content:center!important;
  }
}
@media print{
  .today-routine-controls,.quick-moment-panel,.today-log-helper-actions{display:none!important;}
  .today-edit-area,.today-compact-support-card{box-shadow:none!important;break-inside:avoid;}
}
.today-outcome-placeholder{position:relative!important;}

/* SC-PLAN-05L.4: reduce Today helper-copy clutter. */
.today-edit-empty-note{
  display:none!important;
}
.quick-moment-panel-compact .quick-moment-helper-text{
  display:none!important;
}

/* SC-PLAN-05L.8: Today visual hierarchy cleanup. */
.today-routine-header,
.today-support-plan-card.today-routine-header{
  margin:0 0 10px!important;
}
.today-routine-title-row{
  grid-template-columns:1fr!important;
  gap:8px!important;
  align-items:start!important;
}
.today-routine-title-row h1,
.today-support-plan-card.today-routine-header h1{
  order:2;
  text-align:left!important;
  color:#657976!important;
  font-size:clamp(1.22rem, 4.4vw, 1.62rem)!important;
  line-height:1.12!important;
  font-weight:600!important;
  margin:2px 0 0!important;
}
.today-scope-picker{
  order:1;
  max-width:300px;
}
.today-scope-picker span{
  font-size:.72rem!important;
  letter-spacing:.06em!important;
}
.today-scope-picker select{
  min-height:38px!important;
  border-radius:9px!important;
  font-size:.94rem!important;
}
.today-edit-area{
  padding:14px 16px!important;
  border-radius:12px!important;
  background:#fff!important;
}
.today-edit-area.is-empty{
  border:1.5px dashed var(--sg-brand)!important;
}
.today-anchor-section{
  padding:10px 0!important;
}
.today-blank-anchor-spot{
  min-height:42px!important;
}
.today-blank-anchor-spot span{
  font-size:.92rem!important;
}
.today-blank-anchor-spot .support-action{
  min-height:36px!important;
  padding:0 12px!important;
  font-size:.86rem!important;
}
.today-routine-controls{
  grid-template-columns:repeat(4, minmax(0,1fr))!important;
  gap:6px!important;
  margin:6px 0 0!important;
  align-items:stretch!important;
}
.today-routine-controls .support-action{
  min-height:36px!important;
  border-radius:9px!important;
  padding:6px 7px!important;
  font-size:.76rem!important;
  line-height:1.06!important;
  white-space:normal!important;
  text-align:center!important;
}
.quick-moment-panel.quick-moment-panel-compact{
  margin-top:18px!important;
  padding:2px 0!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
}
.quick-moment-panel.quick-moment-panel-compact .today-section-head{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:12px!important;
  margin:0!important;
  padding:10px 0!important;
  border-top:1px solid rgba(215,229,227,.9)!important;
  border-bottom:1px solid rgba(215,229,227,.9)!important;
}
.quick-moment-panel.quick-moment-panel-compact .mini-label{
  margin:0 0 2px!important;
  color:#657976!important;
  font-size:.68rem!important;
  letter-spacing:.055em!important;
}
.quick-moment-panel.quick-moment-panel-compact h2{
  font-size:1rem!important;
  font-weight:700!important;
  letter-spacing:-.02em!important;
}
.quick-moment-panel.quick-moment-panel-compact .support-action{
  width:auto!important;
  min-height:36px!important;
  padding:0 14px!important;
  border-radius:9px!important;
  font-size:.84rem!important;
  white-space:nowrap!important;
}
.quick-moment-panel.is-open{
  margin-top:18px!important;
  padding:12px!important;
  border:1px solid var(--sg-legacy-line)!important;
  border-radius:12px!important;
  background:#fff!important;
  box-shadow:var(--sg-legacy-shadow)!important;
}
.quick-moment-panel.is-open .quick-moment-helper-text{
  display:block!important;
}
.today-log-helper-card.today-log-collapse{
  margin-top:10px!important;
  border:0!important;
  border-top:1px solid rgba(215,229,227,.9)!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
}
.today-log-collapse>summary{
  min-height:38px!important;
  padding:0!important;
}
.today-log-collapse>summary span{
  color:#203330!important;
  font-size:.94rem!important;
  font-weight:650!important;
}
.today-log-collapse>summary small{
  color:#657976!important;
  font-size:.78rem!important;
  font-weight:500!important;
}
.today-log-helper-body{
  padding:0 0 10px!important;
}
.today-log-helper-actions .support-action{
  min-height:34px!important;
  border-radius:9px!important;
  font-size:.8rem!important;
}
@media (max-width:620px){
  .today-routine-title-row{
    grid-template-columns:1fr!important;
    gap:7px!important;
  }
  .today-routine-title-row h1{
    font-size:clamp(1.2rem, 5vw, 1.45rem)!important;
  }
  .today-scope-picker{
    max-width:290px;
  }
  .today-edit-area{
    padding:12px 14px!important;
  }
  .today-routine-controls{
    grid-template-columns:repeat(4, minmax(0,1fr))!important;
    gap:6px!important;
  }
  .today-routine-controls .support-action{
    min-height:36px!important;
    font-size:.74rem!important;
    padding:6px 5px!important;
  }
  .quick-moment-panel.quick-moment-panel-compact .support-action{
    min-height:34px!important;
    padding:0 12px!important;
  }
}
@media (max-width:390px){
  .today-routine-controls{
    grid-template-columns:repeat(4, minmax(0,1fr))!important;
    gap:5px!important;
  }
  .today-routine-controls .support-action{
    font-size:.7rem!important;
    min-height:34px!important;
    padding:5px 4px!important;
  }
  .quick-moment-panel.quick-moment-panel-compact .today-section-head{
    align-items:start!important;
  }
}

/* SC-PLAN-05M — Smart Suggest lock/refresh polish */
.smart-suggest-choice-panel{
  display:grid;
  gap:10px;
  margin:10px 0 0;
  padding:12px;
  border:1px solid rgba(54,171,156,.22);
  border-radius:18px;
  background:linear-gradient(145deg,#FFFFFF,#F2FBF9);
}
.smart-suggest-choice-panel strong{display:block;color:var(--sg-ink);font-size:.92rem;letter-spacing:-.02em;}
.smart-suggest-choice-panel p{margin:4px 0 0;color:var(--sg-muted);font-size:.82rem;line-height:1.36;}
.smart-suggest-choice-actions{display:flex;flex-wrap:wrap;gap:7px;}
.smart-suggest-choice-actions .support-action:disabled{opacity:.46;cursor:not-allowed;box-shadow:none;}
.planned-anchor-line{display:flex;align-items:center;gap:7px;flex-wrap:wrap;}
.today-lock-toggle{
  min-height:24px;
  border:1px solid rgba(203,213,225,.9);
  border-radius:999px;
  background:#F8FAFC;
  color:#64748B;
  padding:0 8px;
  font-size:.68rem;
  font-weight:950;
  line-height:1;
}
.today-lock-toggle.is-locked{
  border-color:rgba(54,171,156,.38);
  background:#EAF8F5;
  color:var(--sg-brand-dark);
}
.today-compact-support-card:has(.today-lock-toggle.is-locked){
  border-color:rgba(54,171,156,.36)!important;
}
@media (max-width:620px){
  .smart-suggest-choice-actions{display:grid;grid-template-columns:1fr;}
  .smart-suggest-choice-actions .support-action{width:100%;justify-content:center;}
  .today-lock-toggle{min-height:28px;}
}
@media print{.smart-suggest-choice-panel,.today-lock-toggle{display:none!important;}}

/* SC-PLAN-05N — legacy-inspired inline Today support rows for Sensycues.
   Visual reference only: keeps the current support-run data model and Smart Suggest lock behavior. */
.planned-support-list.compact-list{
  gap:9px!important;
}
.today-compact-support-card,
.planned-support-item.compact.today-compact-support-card{
  position:relative!important;
  display:grid!important;
  grid-template-columns:7px 38px minmax(0,1fr) 42px 42px!important;
  gap:8px!important;
  align-items:center!important;
  min-height:68px!important;
  padding:0!important;
  border:1px solid rgba(226,232,240,.96)!important;
  border-radius:18px!important;
  background:#fff!important;
  box-shadow:0 7px 18px rgba(15,23,42,.04)!important;
  overflow:visible!important;
}
.today-compact-support-card.is-up-next{
  border-color:rgba(54,171,156,.42)!important;
  background:#FCFFFE!important;
}
.today-compact-support-card.is-locked{
  border-color:rgba(54,171,156,.34)!important;
}
.today-support-rail{
  grid-column:1!important;
  grid-row:1 / span 2!important;
  align-self:stretch!important;
  width:7px!important;
  min-height:68px!important;
  border-radius:18px 0 0 18px!important;
}
.support-category-calming .today-support-rail,.support-category-quiet .today-support-rail{background:#36AB9C!important;}
.support-category-heavy .today-support-rail,.support-category-proprioceptive .today-support-rail,.support-category-pressure .today-support-rail{background:#8B5CF6!important;}
.support-category-movement .today-support-rail,.support-category-vestibular .today-support-rail{background:#F58A48!important;}
.support-category-visual .today-support-rail{background:#3B82F6!important;}
.support-category-tactile .today-support-rail,.support-category-oral .today-support-rail,.support-category-sensory .today-support-rail{background:#EC4899!important;}
.today-drag-handle{display:none!important;}
.today-row-lock-toggle,
.today-lock-toggle.today-row-lock-toggle{
  grid-column:2!important;
  grid-row:1!important;
  justify-self:center!important;
  align-self:center!important;
  display:inline-grid!important;
  place-items:center!important;
  width:34px!important;
  min-width:34px!important;
  height:34px!important;
  min-height:34px!important;
  margin:0!important;
  padding:0!important;
  border:1px solid rgba(203,213,225,.9)!important;
  border-radius:13px!important;
  background:#F8FAFC!important;
  color:#64748B!important;
  box-shadow:none!important;
}
.today-row-lock-toggle.is-locked,
.today-lock-toggle.today-row-lock-toggle.is-locked{
  border-color:rgba(54,171,156,.45)!important;
  background:#EAF8F5!important;
  color:#25645C!important;
}
.today-lock-svg{
  display:block;
  width:18px;
  height:18px;
  fill:none;
  stroke:currentColor;
  stroke-width:2;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.today-row-main{
  grid-column:3!important;
  grid-row:1!important;
  display:grid!important;
  gap:5px!important;
  min-width:0!important;
  padding:10px 0!important;
}
.today-row-title-line{
  display:flex!important;
  align-items:center!important;
  gap:8px!important;
  min-width:0!important;
}
.today-row-title-line h3,
.today-support-card-body h3{
  min-width:0!important;
  margin:0!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  color:#1b2b2a!important;
  font-size:clamp(1rem,3.8vw,1.18rem)!important;
  line-height:1.14!important;
  font-weight:800!important;
  letter-spacing:-.03em!important;
  white-space:nowrap!important;
}
.today-duration-pill{
  flex:0 0 auto!important;
  min-height:24px!important;
  padding:2px 9px!important;
  border-radius:999px!important;
  background:#EEF7F5!important;
  color:#25645C!important;
  font-size:.76rem!important;
  line-height:1!important;
  font-weight:700!important;
  white-space:nowrap!important;
}
.today-row-meta{
  display:none!important;
}
.today-row-meta .today-helper-tag,
.today-row-category,
.today-row-status,
.today-row-outcome,
.up-next-badge{
  display:inline-flex!important;
  align-items:center!important;
  min-height:0!important;
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  color:#657976!important;
  font-size:.72rem!important;
  line-height:1.15!important;
  font-weight:750!important;
  letter-spacing:.055em!important;
  text-transform:uppercase!important;
  white-space:nowrap!important;
}
.today-row-outcome{
  color:#94A3B8!important;
  font-weight:650!important;
  letter-spacing:.035em!important;
}
.today-row-outcome::before,
.today-row-extra-tag::before,
.today-row-status::before{
  content:"•";
  margin:0 5px 0 1px;
  color:#CBD5E1;
}
.today-row-extra-tag:nth-of-type(n+4){display:none!important;}
.today-quick-log-button,
.today-row-details-button{
  display:inline-grid!important;
  place-items:center!important;
  justify-self:center!important;
  align-self:center!important;
  width:36px!important;
  min-width:36px!important;
  height:36px!important;
  min-height:36px!important;
  margin:0!important;
  padding:0!important;
  border:1px solid var(--sg-legacy-line)!important;
  border-radius:13px!important;
  background:#fff!important;
  color:#52615f!important;
  font-size:1rem!important;
  line-height:1!important;
  font-weight:800!important;
  box-shadow:none!important;
}
.today-quick-log-button{
  grid-column:4!important;
  grid-row:1!important;
}
.today-quick-log-button.is-logged{
  border-color:rgba(54,171,156,.46)!important;
  background:#EAF8F5!important;
  color:#25645C!important;
  font-size:1.08rem!important;
}
.today-row-details,
.today-support-card-detail.today-row-details,
.today-card-overflow.today-row-details{
  display:contents!important;
  grid-column:auto!important;
  margin:0!important;
  border:0!important;
  background:transparent!important;
}
.today-row-details>summary,
.today-support-card-detail.today-row-details>summary,
.today-row-details-button{
  grid-column:5!important;
  grid-row:1!important;
  list-style:none!important;
  cursor:pointer!important;
}
.today-row-details>summary::-webkit-details-marker{display:none!important;}
.today-row-details>summary::after{content:""!important;}
.today-row-details[open]>.today-row-details-button{
  border-color:rgba(54,171,156,.4)!important;
  background:#F2FBF9!important;
  color:#25645C!important;
}
.today-row-details[open]>.today-row-details-button span{transform:rotate(90deg);}
.today-row-expanded-card,
.today-support-card-detail.today-row-details>.today-row-expanded-card,
.today-support-card-detail-body.today-row-expanded-card{
  grid-column:2 / -1!important;
  grid-row:2!important;
  display:grid!important;
  gap:10px!important;
  margin:0 10px 10px 0!important;
  padding:13px!important;
  border:1px solid rgba(226,232,240,.96)!important;
  border-radius:18px!important;
  background:linear-gradient(145deg,#FFFFFF,#FBFEFD)!important;
  box-shadow:0 10px 26px rgba(15,23,42,.055)!important;
}
.today-row-expanded-head{
  display:flex!important;
  align-items:flex-start!important;
  justify-content:space-between!important;
  gap:10px!important;
}
.today-row-expanded-kicker{
  display:block;
  margin-bottom:4px;
  color:#64748B;
  font-size:.72rem;
  font-weight:900;
  letter-spacing:.08em;
  text-transform:uppercase;
}
.today-row-expanded-head h4{
  margin:0;
  color:#111827;
  font-size:1.12rem;
  line-height:1.14;
  letter-spacing:-.035em;
}
.today-row-expanded-tags{
  display:flex!important;
  flex-wrap:wrap!important;
  gap:6px!important;
}
.today-row-expanded-tags .today-helper-tag{
  display:inline-flex!important;
  align-items:center!important;
  min-height:25px!important;
  padding:0 9px!important;
  border:0!important;
  border-radius:999px!important;
  background:#F1F5F9!important;
  color:#475569!important;
  font-size:.73rem!important;
  font-weight:800!important;
  letter-spacing:0!important;
  text-transform:none!important;
}
.today-row-expanded-card .today-support-detail-block{
  padding:10px!important;
  border:1px solid rgba(226,232,240,.86)!important;
  border-radius:15px!important;
  background:#fff!important;
}
.today-row-expanded-card .today-support-detail-block strong{
  color:#111827!important;
  font-size:.8rem!important;
}
.today-row-expanded-card .today-support-detail-block p{
  margin:3px 0 0!important;
  color:#475569!important;
  font-size:.85rem!important;
  line-height:1.42!important;
}
.today-row-expanded-card .today-support-detail-block.tone-safety{
  background:#FFF7ED!important;
  border-color:#FED7AA!important;
}
.today-support-card-detail-actions.planned-support-menu,
.today-row-details[open] .planned-support-menu{
  position:static!important;
  display:flex!important;
  flex-wrap:wrap!important;
  gap:7px!important;
  min-width:0!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
}
.today-support-card-detail-actions .support-action,
.today-row-expanded-card .support-action{
  margin:0!important;
  justify-content:center!important;
}
.today-compact-support-card>.status-tag,
.today-outcome-placeholder,
.planned-support-compact-actions,
.today-support-card-body,
.planned-anchor-line{
  display:none!important;
}
.today-compact-support-card>.today-adjustment-panel{
  grid-column:2 / -1!important;
  grid-row:3!important;
  margin:0 10px 10px 0!important;
}
@media (max-width:620px){
  .today-compact-support-card,
  .planned-support-item.compact.today-compact-support-card{
    grid-template-columns:7px 34px minmax(0,1fr) 38px 38px!important;
    gap:6px!important;
    min-height:64px!important;
  }
  .today-support-rail{min-height:64px!important;}
  .today-row-lock-toggle,
  .today-lock-toggle.today-row-lock-toggle{
    width:31px!important;
    min-width:31px!important;
    height:31px!important;
    min-height:31px!important;
    border-radius:12px!important;
  }
  .today-lock-svg{width:16px;height:16px;}
  .today-row-main{padding:9px 0!important;gap:4px!important;}
  .today-row-title-line{gap:6px!important;}
  .today-row-title-line h3{font-size:clamp(.98rem,4.7vw,1.1rem)!important;}
  .today-duration-pill{font-size:.72rem!important;padding:2px 8px!important;}
  .today-row-meta .today-helper-tag,
  .today-row-category,
  .today-row-status,
  .today-row-outcome,
  .up-next-badge{font-size:.68rem!important;}
  .today-row-extra-tag{display:none!important;}
  .today-quick-log-button,
  .today-row-details-button{
    width:34px!important;
    min-width:34px!important;
    height:34px!important;
    min-height:34px!important;
    border-radius:12px!important;
  }
  .today-row-expanded-card,
  .today-support-card-detail.today-row-details>.today-row-expanded-card,
  .today-support-card-detail-body.today-row-expanded-card{
    grid-column:2 / -1!important;
    margin-right:8px!important;
    padding:11px!important;
  }
  .today-support-card-detail-actions.planned-support-menu,
  .today-row-details[open] .planned-support-menu{
    display:grid!important;
    grid-template-columns:1fr 1fr!important;
  }
  .today-row-expanded-card .support-action{
    width:100%!important;
    min-height:38px!important;
    padding:0 10px!important;
    font-size:.84rem!important;
  }
}
@media (max-width:390px){
  .today-compact-support-card,
  .planned-support-item.compact.today-compact-support-card{
    grid-template-columns:7px 31px minmax(0,1fr) 35px 35px!important;
    gap:5px!important;
  }
  .today-row-lock-toggle,
  .today-lock-toggle.today-row-lock-toggle{
    width:29px!important;
    min-width:29px!important;
    height:29px!important;
    min-height:29px!important;
  }
  .today-quick-log-button,
  .today-row-details-button{
    width:31px!important;
    min-width:31px!important;
    height:31px!important;
    min-height:31px!important;
  }
  .today-row-outcome{display:none!important;}
}
@media print{
  .today-row-lock-toggle,.today-quick-log-button,.today-row-details-button{display:none!important;}
  .today-row-expanded-card{box-shadow:none!important;break-inside:avoid;}
}
.today-row-details:not([open])>.today-row-expanded-card,
.today-support-card-detail.today-row-details:not([open])>.today-row-expanded-card{
  display:none!important;
}
.today-row-details[open]>.today-row-expanded-card,
.today-support-card-detail.today-row-details[open]>.today-row-expanded-card{
  display:grid!important;
}

/* SC-PLAN-05N2 — expanded row cleanup: use the support sheet for instructions/safety and avoid Safari details smushing. */
.today-row-details-button.is-open{
  border-color:rgba(54,171,156,.42)!important;
  background:#F2FBF9!important;
  color:#25645C!important;
}
.today-row-details-button.is-open span{transform:rotate(90deg);}
.today-row-expanded-card,
.today-support-card-detail-body.today-row-expanded-card{
  grid-column:2 / -1!important;
  grid-row:2!important;
  position:relative!important;
  width:auto!important;
  max-width:none!important;
  min-width:0!important;
  justify-self:stretch!important;
  display:grid!important;
  gap:10px!important;
  margin:0 10px 10px 0!important;
  padding:14px!important;
  padding-right:46px!important;
  border:1px solid rgba(226,232,240,.96)!important;
  border-radius:18px!important;
  background:linear-gradient(145deg,#FFFFFF,#FBFEFD)!important;
  box-shadow:0 10px 26px rgba(15,23,42,.055)!important;
}
.today-row-expanded-help{
  margin:0!important;
  max-width:44rem!important;
  color:#52615f!important;
  font-size:.86rem!important;
  line-height:1.4!important;
}
.today-row-favorite-button{
  position:absolute!important;
  top:10px!important;
  right:10px!important;
  display:inline-grid!important;
  place-items:center!important;
  width:32px!important;
  height:32px!important;
  min-width:32px!important;
  min-height:32px!important;
  margin:0!important;
  padding:0!important;
  border:1px solid rgba(203,213,225,.86)!important;
  border-radius:999px!important;
  background:#fff!important;
  color:#64748B!important;
  font-size:1.12rem!important;
  line-height:1!important;
  font-weight:900!important;
  box-shadow:0 6px 16px rgba(15,23,42,.06)!important;
}
.today-row-favorite-button:focus-visible{
  outline:3px solid rgba(54,171,156,.35)!important;
  outline-offset:2px!important;
}
.today-row-expanded-card .today-row-expanded-head{
  padding-right:10px!important;
}
.today-row-expanded-card .today-support-card-detail-actions.planned-support-menu,
.today-support-card-detail-actions.planned-support-menu{
  position:static!important;
  display:grid!important;
  grid-template-columns:repeat(auto-fit,minmax(126px,1fr))!important;
  gap:7px!important;
  width:100%!important;
  min-width:0!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
}
.today-row-expanded-card .support-action,
.today-support-card-detail-actions .support-action{
  width:100%!important;
  min-width:0!important;
  margin:0!important;
  justify-content:center!important;
  white-space:normal!important;
}
@media (max-width:620px){
  .today-row-expanded-card,
  .today-support-card-detail-body.today-row-expanded-card{
    grid-column:2 / -1!important;
    width:auto!important;
    max-width:none!important;
    margin-right:8px!important;
    padding:12px!important;
    padding-right:42px!important;
  }
  .today-row-expanded-card .today-support-card-detail-actions.planned-support-menu,
  .today-support-card-detail-actions.planned-support-menu{
    grid-template-columns:1fr 1fr!important;
  }
}
@media (max-width:390px){
  .today-row-expanded-card .today-support-card-detail-actions.planned-support-menu,
  .today-support-card-detail-actions.planned-support-menu{
    grid-template-columns:1fr!important;
  }
}

/* SC-PLAN-05N4 — closed row vertical spacing cleanup.
   The rail no longer creates an empty second grid row when details are closed. */
.today-compact-support-card,
.planned-support-item.compact.today-compact-support-card{
  grid-template-rows:minmax(60px, auto)!important;
  min-height:60px!important;
  align-items:center!important;
}
.today-support-rail{
  grid-row:1!important;
  min-height:60px!important;
}
.today-compact-support-card.is-expanded .today-support-rail,
.planned-support-item.compact.today-compact-support-card.is-expanded .today-support-rail{
  grid-row:1 / span 2!important;
}
.today-row-main{
  align-self:center!important;
  padding:0!important;
}
.today-row-title-line{
  align-items:center!important;
}
.today-row-lock-toggle,
.today-lock-toggle.today-row-lock-toggle,
.today-quick-log-button,
.today-row-details-button{
  align-self:center!important;
}
@media (max-width:620px){
  .today-compact-support-card,
  .planned-support-item.compact.today-compact-support-card{
    grid-template-rows:minmax(58px, auto)!important;
    min-height:58px!important;
  }
  .today-support-rail{
    min-height:58px!important;
  }
  .today-row-main{
    padding:0!important;
  }
}

/* SC-PLAN-05N5: support details sheet is informational only; Today owns outcome logging. */
.attempt-sheet.is-details-only .attempt-panel{max-height:86svh}.attempt-sheet.is-details-only .attempt-status{background:#F2FBF9;color:var(--sg-brand-dark);white-space:normal;line-height:1.25}.attempt-summary.is-how-to h3{margin:10px 0 6px;color:var(--sg-ink);font-size:1rem;line-height:1.18;letter-spacing:-.015em}.attempt-chip-row{display:flex;align-items:center;flex-wrap:wrap;gap:7px;margin-bottom:2px}.attempt-chip{display:inline-flex;padding:6px 9px;border-radius:999px;background:#F6F8FA;color:#475569;font-size:.75rem;font-weight:900}.attempt-sheet.is-details-only .attempt-actions{display:none!important}

/* SC-PLAN-05N6 — expanded support row hierarchy cleanup. */
.today-row-expanded-card,
.today-support-card-detail-body.today-row-expanded-card{
  gap:9px!important;
  margin:0 10px 11px 0!important;
  padding:2px 46px 12px 0!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
}
.today-row-expanded-card .today-row-expanded-head{
  display:block!important;
  padding-right:0!important;
}
.today-row-expanded-card .today-row-expanded-head h4,
.today-row-expanded-card .today-row-expanded-head .today-duration-pill{
  display:none!important;
}
.today-row-expanded-kicker{
  margin:0!important;
  color:var(--sg-brand-dark)!important;
  font-size:.74rem!important;
  letter-spacing:.1em!important;
}
.today-row-expanded-help{
  max-width:34rem!important;
  color:#52615f!important;
  font-size:.9rem!important;
  line-height:1.42!important;
}
.today-row-expanded-tags{
  margin-top:1px!important;
}
.today-support-card-detail-actions.planned-support-menu,
.today-row-expanded-card .today-support-card-detail-actions.planned-support-menu{
  display:grid!important;
  grid-template-columns:1fr!important;
  gap:8px!important;
}
.today-expanded-primary-actions{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:8px!important;
}
.today-expanded-primary-actions .support-action{
  min-height:42px!important;
}
.today-expanded-management-actions{
  display:flex!important;
  flex-wrap:wrap!important;
  align-items:center!important;
  gap:0!important;
  margin-top:2px!important;
}
.today-expanded-management-actions .support-action.link,
.today-support-card-detail-actions .support-action.link{
  width:auto!important;
  min-width:0!important;
  min-height:0!important;
  padding:3px 0!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  color:#4B5E6D!important;
  font-size:.8rem!important;
  font-weight:850!important;
  text-decoration:underline!important;
  text-underline-offset:3px!important;
  box-shadow:none!important;
}
.today-expanded-management-actions .support-action.link.danger,
.today-support-card-detail-actions .support-action.link.danger{
  color:#8A4B4B!important;
}
.today-vizicues-helper-link{
  display:inline-flex!important;
  flex-direction:column!important;
  align-items:flex-start!important;
  justify-content:center!important;
  width:fit-content!important;
  max-width:100%!important;
  min-height:0!important;
  margin:2px 0 0!important;
  padding:0!important;
  border:0!important;
  background:transparent!important;
  color:var(--sg-brand-dark)!important;
  font:inherit!important;
  text-align:left!important;
  cursor:pointer!important;
}
.today-vizicues-helper-link span{
  font-size:.86rem!important;
  font-weight:900!important;
  text-decoration:underline!important;
  text-underline-offset:3px!important;
}
.today-vizicues-helper-link small{
  margin-top:2px!important;
  color:#64748B!important;
  font-size:.74rem!important;
  font-weight:750!important;
  line-height:1.25!important;
  text-decoration:none!important;
}
.today-management-separator{
  display:inline-flex!important;
  align-items:center!important;
  padding:0 8px!important;
  color:#94A3B8!important;
  font-size:.82rem!important;
  font-weight:900!important;
}
.today-expanded-management-actions .support-action.link{
  color:#4B5E6D!important;
}
.today-vizicues-helper-link:focus-visible,
.today-expanded-management-actions .support-action.link:focus-visible{
  outline:3px solid rgba(54,171,156,.28)!important;
  outline-offset:3px!important;
  border-radius:8px!important;
}
@media (max-width:620px){
  .today-row-expanded-card,
  .today-support-card-detail-body.today-row-expanded-card{
    margin-right:8px!important;
    padding:0 42px 11px 0!important;
  }
  .today-expanded-primary-actions{
    grid-template-columns:1fr 1fr!important;
    gap:7px!important;
  }
  .today-expanded-primary-actions .support-action{
    min-height:38px!important;
    padding:0 10px!important;
    font-size:.84rem!important;
  }
}
@media (max-width:360px){
  .today-expanded-primary-actions{
    grid-template-columns:1fr!important;
  }
}

/* SC-PLAN-05O — quick outcome popover + richer detailed outcome fields. */
.today-quick-outcome-popover{
  grid-column:3 / -1!important;
  justify-self:end!important;
  width:min(300px,calc(100vw - 52px))!important;
  margin:-4px 10px 10px 0!important;
  padding:10px!important;
  border:1px solid rgba(203,213,225,.92)!important;
  border-radius:20px!important;
  background:#fff!important;
  box-shadow:0 18px 42px rgba(15,23,42,.16)!important;
  z-index:9!important;
}
.today-quick-outcome-head{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:8px!important;
  margin-bottom:7px!important;
}
.today-quick-outcome-head strong{
  color:var(--sg-ink)!important;
  font-size:.86rem!important;
  font-weight:950!important;
}
.today-quick-outcome-close{
  display:inline-grid!important;
  place-items:center!important;
  width:30px!important;
  min-width:30px!important;
  height:30px!important;
  border:1px solid rgba(203,213,225,.92)!important;
  border-radius:12px!important;
  background:#fff!important;
  color:#334155!important;
  font-size:1.05rem!important;
  font-weight:800!important;
}
.today-quick-outcome-list{
  display:grid!important;
  gap:6px!important;
}
.today-quick-outcome-option{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  width:100%!important;
  min-height:40px!important;
  padding:0 11px!important;
  border:1px solid rgba(226,232,240,.94)!important;
  border-radius:14px!important;
  background:#F8FAFC!important;
  color:var(--sg-ink)!important;
  font-size:.86rem!important;
  font-weight:850!important;
  text-align:left!important;
}
.today-quick-outcome-option.selected,
.today-quick-outcome-option:hover{
  border-color:rgba(54,171,156,.58)!important;
  background:#F2FBF9!important;
  color:var(--sg-brand-dark)!important;
}
.today-quick-outcome-details{
  width:auto!important;
  margin:8px 0 0!important;
  padding:3px 0!important;
  border:0!important;
  background:transparent!important;
  color:var(--sg-brand-dark)!important;
  font-size:.82rem!important;
  font-weight:900!important;
  text-decoration:underline!important;
  text-underline-offset:3px!important;
}
.today-quick-log-button.is-open{
  border-color:rgba(54,171,156,.55)!important;
  background:#F2FBF9!important;
}
.outcome-detail-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:8px;
}
.outcome-small-field{
  display:grid;
  gap:5px;
  padding:10px;
  border:1px solid var(--sg-line);
  border-radius:18px;
  background:#fff;
}
.outcome-small-field span,
.outcome-feeling-card>span{
  color:var(--sg-ink);
  font-size:.75rem;
  font-weight:900;
  line-height:1.2;
}
.outcome-small-field input{
  width:100%;
  min-height:38px;
  border:1px solid var(--sg-line);
  border-radius:13px;
  background:#F8FAFC;
  color:var(--sg-text);
  font:inherit;
  font-weight:850;
  padding:0 9px;
}
.outcome-feeling-card{
  display:grid;
  gap:7px;
  padding:12px;
  border:1px solid var(--sg-line);
  border-radius:22px;
  background:#fff;
}
.outcome-feeling-row{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
}
.outcome-feeling-button{
  min-height:32px;
  padding:0 9px;
  border:1px solid rgba(226,232,240,.94);
  border-radius:999px;
  background:#F8FAFC;
  color:#475569;
  font-size:.76rem;
  font-weight:850;
}
.outcome-feeling-button.selected{
  border-color:rgba(54,171,156,.58);
  background:#F2FBF9;
  color:var(--sg-brand-dark);
}
.outcome-small-field input:focus-visible,
.outcome-feeling-button:focus-visible,
.today-quick-outcome-option:focus-visible,
.today-quick-outcome-close:focus-visible,
.today-quick-outcome-details:focus-visible{
  outline:3px solid rgba(54,171,156,.32)!important;
  outline-offset:2px!important;
}
@media (max-width:620px){
  .today-quick-outcome-popover{
    grid-column:2 / -1!important;
    justify-self:stretch!important;
    width:auto!important;
    margin:-2px 10px 10px 0!important;
  }
  .outcome-detail-grid{grid-template-columns:1fr!important;}
}


/* SC-PLAN-05O1 — quick-log/auto-lock polish. */
.today-quick-log-button > span{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  font-size:1.36rem!important;
  line-height:1!important;
  transform:translateY(-1px)!important;
}
.today-quick-log-button.is-logged > span{
  font-size:1.42rem!important;
  transform:none!important;
}
.today-lock-svg{
  width:21px!important;
  height:21px!important;
  stroke-width:2.25!important;
}
.today-row-lock-toggle.is-auto-locked,
.today-lock-toggle.today-row-lock-toggle.is-auto-locked{
  border-color:rgba(54,171,156,.55)!important;
  background:#EAF8F5!important;
  color:#25645C!important;
}
#todayHistory:not(.is-visible){
  display:none!important;
}

/* SC-PLAN-05O2 — multiple supports per anchor and quiet anchor add controls. */
.today-compact-support-card.is-up-next,
.today-support-row.is-up-next{
  border-color:rgba(226,232,240,.92)!important;
  background:#fff!important;
  box-shadow:0 8px 18px rgba(15,23,42,.045)!important;
}
.today-anchor-content{
  display:grid!important;
  gap:8px!important;
}
.today-anchor-heading small{
  justify-self:end!important;
  color:#64748B!important;
  font-size:.72rem!important;
  font-weight:850!important;
  text-transform:none!important;
  letter-spacing:0!important;
}
.today-anchor-add-another,
.today-anchor-show-more{
  justify-self:start!important;
  width:auto!important;
  min-height:30px!important;
  padding:3px 2px!important;
  border:0!important;
  background:transparent!important;
  color:var(--sg-brand-dark)!important;
  font:inherit!important;
  font-size:.82rem!important;
  font-weight:900!important;
  line-height:1.2!important;
  text-align:left!important;
  text-decoration:underline!important;
  text-underline-offset:3px!important;
  cursor:pointer!important;
}
.today-anchor-show-more{
  color:#52615F!important;
  font-weight:850!important;
}
.today-anchor-add-another:hover,
.today-anchor-show-more:hover{
  color:#2F6F68!important;
}
.today-anchor-add-another:focus-visible,
.today-anchor-show-more:focus-visible{
  outline:3px solid rgba(54,171,156,.28)!important;
  outline-offset:2px!important;
  border-radius:8px!important;
}
.today-anchor-add-panel{
  margin-top:1px!important;
  background:#FBFEFD!important;
  border-color:rgba(54,171,156,.36)!important;
}
.today-anchor-add-panel .today-support-picker-list{
  max-height:min(52vh,430px)!important;
  overflow:auto!important;
  padding-right:2px!important;
}
.today-anchor-section.is-adding-support{
  border-color:rgba(54,171,156,.34)!important;
}
@media (max-width:620px){
  .today-anchor-heading small{
    justify-self:start!important;
    margin-top:0!important;
  }
  .today-anchor-add-another,
  .today-anchor-show-more{
    min-height:34px!important;
  }
}

/* SC-PLAN-05O3 — responsive anchor header action polish. */
.today-anchor-heading{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) auto!important;
  align-items:start!important;
  gap:8px!important;
  width:100%!important;
}
.today-anchor-title-stack{
  min-width:0!important;
  display:flex!important;
  align-items:baseline!important;
  flex-wrap:wrap!important;
  gap:3px 8px!important;
}
.today-anchor-heading .today-anchor-label,
.today-anchor-title-stack .today-anchor-label{
  display:inline!important;
  min-width:0!important;
  color:var(--sg-brand-dark)!important;
  font-size:.76rem!important;
  line-height:1.18!important;
  font-weight:900!important;
  letter-spacing:.065em!important;
  text-transform:uppercase!important;
}
.today-anchor-heading .today-anchor-count,
.today-anchor-title-stack .today-anchor-count{
  display:inline-flex!important;
  align-items:center!important;
  justify-self:auto!important;
  margin:0!important;
  padding:0!important;
  color:#64748B!important;
  font-size:.72rem!important;
  font-weight:850!important;
  line-height:1.2!important;
  letter-spacing:0!important;
  text-transform:none!important;
  white-space:nowrap!important;
}
.today-anchor-header-add{
  justify-self:end!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:flex-end!important;
  gap:4px!important;
  min-height:44px!important;
  padding:0 4px 0 8px!important;
  border:0!important;
  border-radius:12px!important;
  background:transparent!important;
  color:var(--sg-brand-dark)!important;
  font:inherit!important;
  font-size:.84rem!important;
  font-weight:800!important;
  line-height:1.1!important;
  text-decoration:none!important;
  box-shadow:none!important;
  cursor:pointer!important;
  white-space:nowrap!important;
  -webkit-tap-highlight-color:transparent!important;
}
.today-anchor-header-add span,
.today-anchor-heading .today-anchor-header-add span{
  display:inline-flex!important;
  align-items:center!important;
  color:inherit!important;
  font-size:inherit!important;
  font-weight:inherit!important;
  line-height:1!important;
  letter-spacing:0!important;
  text-transform:none!important;
}
.today-anchor-header-add span[aria-hidden="true"]{
  font-size:1.02rem!important;
  line-height:1!important;
  transform:translateY(-.5px);
}
.today-anchor-header-add:active{
  background:rgba(54,171,156,.12)!important;
}
.today-anchor-header-add:focus-visible{
  outline:3px solid rgba(54,171,156,.28)!important;
  outline-offset:2px!important;
}
.today-anchor-content{
  align-self:start!important;
  display:grid!important;
  gap:9px!important;
}
.today-anchor-add-another{
  display:none!important;
}
.today-anchor-show-more{
  justify-self:start!important;
  width:auto!important;
  min-height:28px!important;
  margin:0!important;
  padding:2px 0!important;
  border:0!important;
  background:transparent!important;
  color:#52615F!important;
  font:inherit!important;
  font-size:.8rem!important;
  font-weight:850!important;
  line-height:1.2!important;
  text-align:left!important;
  text-decoration:underline!important;
  text-underline-offset:3px!important;
}
.today-anchor-section.is-adding-support .today-anchor-header-add{
  background:transparent!important;
  border-color:transparent!important;
}
@media (min-width:621px){
  .today-anchor-section{
    align-items:start!important;
  }
  .today-anchor-heading{
    padding-top:3px!important;
  }
}
@media (max-width:760px){
  .today-anchor-section{
    align-items:start!important;
  }
}
@media (max-width:620px){
  .today-anchor-heading{
    grid-template-columns:minmax(0,1fr) auto!important;
    align-items:center!important;
    gap:8px!important;
  }
  .today-anchor-title-stack{
    gap:3px 7px!important;
  }
  .today-anchor-heading .today-anchor-label,
  .today-anchor-title-stack .today-anchor-label{
    font-size:.75rem!important;
    letter-spacing:.07em!important;
  }
  .today-anchor-header-add{
    min-height:44px!important;
    padding:0 4px 0 8px!important;
    font-size:.82rem!important;
  }
  .today-anchor-show-more{
    min-height:30px!important;
    font-size:.82rem!important;
  }
}
@media (max-width:380px){
  .today-anchor-header-add{
    min-height:44px!important;
    padding:0 2px 0 6px!important;
    font-size:.78rem!important;
  }
  .today-anchor-header-add-text{
    position:static!important;
    width:auto!important;
    height:auto!important;
    padding:0!important;
    margin:0!important;
    overflow:visible!important;
    clip:auto!important;
    white-space:nowrap!important;
    border:0!important;
  }
}

/* SC-PLAN-05N: Favorites and Add from Favorites */
.activity-card{
  position:relative;
  padding-right:58px!important;
}
.library-card-favorite-button{
  top:12px!important;
  right:12px!important;
  z-index:2!important;
}
.today-row-favorite-button.is-favorite,
.library-card-favorite-button.is-favorite{
  border-color:rgba(245,138,72,.52)!important;
  background:#FFF8F2!important;
  color:#D66F2E!important;
}
.today-row-favorite-button.is-favorite:hover,
.library-card-favorite-button.is-favorite:hover{
  border-color:rgba(245,138,72,.78)!important;
  box-shadow:0 8px 18px rgba(245,138,72,.13)!important;
}
.today-blank-anchor-actions{
  display:flex;
  flex-wrap:wrap;
  gap:7px;
  justify-content:flex-end;
}
.today-favorites-picker-panel{
  margin-top:10px!important;
  border-style:solid!important;
  background:linear-gradient(145deg,#FFFFFF,#F7FDFB)!important;
}
.today-favorites-anchor-chooser,
.today-favorites-source-tabs,
.today-favorites-filter-row{
  display:flex;
  flex-wrap:wrap;
  gap:7px;
}
.today-favorites-anchor-choice,
.today-favorites-source-tab,
.today-favorites-filter{
  min-height:34px;
  border:1px solid var(--sg-line);
  border-radius:999px;
  background:#fff;
  color:#64748B;
  padding:0 10px;
  font-size:.76rem;
  font-weight:900;
}
.today-favorites-anchor-choice.is-active,
.today-favorites-source-tab.is-active,
.today-favorites-filter.is-active{
  border-color:rgba(54,171,156,.42);
  background:var(--sg-teal-soft);
  color:var(--sg-brand-dark);
  box-shadow:inset 0 0 0 1px rgba(54,171,156,.12);
}
.today-favorites-search-field{
  display:grid;
  gap:6px;
}
.today-favorites-search-field span{
  color:var(--sg-muted);
  font-size:.72rem;
  font-weight:900;
  letter-spacing:.05em;
  text-transform:uppercase;
}
.today-favorites-search-field input{
  width:100%;
  min-height:42px;
  border:1px solid var(--sg-line);
  border-radius:15px;
  background:#fff;
  color:var(--sg-ink);
  padding:0 12px;
}
.today-favorites-picker-list{
  max-height:min(420px,58svh);
  overflow:auto;
  padding-right:2px;
}
.favorite-picker-choice[disabled]{
  opacity:.54;
  cursor:not-allowed;
}
.favorite-picker-choice strong span{
  color:#D66F2E;
}
.today-favorites-empty{
  padding:14px;
  border:1px dashed var(--sg-line-strong);
  border-radius:18px;
  background:#fff;
  color:var(--sg-muted);
  font-size:.86rem;
  font-weight:750;
  text-align:center;
}
@media (max-width:380px){
  .activity-card{padding-right:52px!important}
  .today-blank-anchor-actions{justify-content:stretch}
  .today-blank-anchor-actions .support-action{width:auto;flex:1 1 130px}
}

/* SC-PLAN-05N2 — row-owned Add Support choices. */
.today-add-support-method-panel{
  background:linear-gradient(145deg,#FFFFFF,#F7FDFB)!important;
  border-color:rgba(54,171,156,.34)!important;
}
.today-add-method-list{
  display:grid!important;
  gap:8px!important;
}
.today-add-method-choice{
  text-align:left!important;
  padding:12px 14px!important;
}
.today-add-method-choice strong{
  color:var(--sg-ink)!important;
  font-size:.96rem!important;
}
.today-add-method-choice span{
  color:#667085!important;
  font-size:.83rem!important;
  line-height:1.3!important;
}
.today-favorites-quick-panel,
.today-library-picker-panel{
  background:#FBFEFD!important;
  border-color:rgba(54,171,156,.30)!important;
}
.today-picker-back-link{
  justify-self:start!important;
  width:auto!important;
  min-height:30px!important;
  margin:-2px 0 2px!important;
  padding:0!important;
  border:0!important;
  background:transparent!important;
  color:#52615F!important;
  font:inherit!important;
  font-size:.78rem!important;
  font-weight:850!important;
  line-height:1.2!important;
  text-align:left!important;
  text-decoration:underline!important;
  text-underline-offset:3px!important;
  cursor:pointer!important;
}
.today-picker-back-link:focus-visible{
  outline:3px solid rgba(54,171,156,.25)!important;
  outline-offset:3px!important;
  border-radius:8px!important;
}
.today-favorite-choice-section{
  display:grid!important;
  gap:7px!important;
}
.today-favorite-choice-section + .today-favorite-choice-section{
  margin-top:10px!important;
  padding-top:10px!important;
  border-top:1px solid rgba(215,226,223,.85)!important;
}
.today-favorite-choice-section h4{
  margin:0!important;
  color:#64748B!important;
  font-size:.72rem!important;
  font-weight:900!important;
  letter-spacing:.06em!important;
  text-transform:uppercase!important;
}
.today-blank-anchor-actions .support-action{
  font-weight:850!important;
}

/* SC-PLAN-05N3 — Today replacements are row-targeted sheets, not inline save prompts. */
.today-replacement-sheet{
  position:fixed!important;
  inset:0!important;
  z-index:82!important;
  display:grid!important;
  align-items:end!important;
  pointer-events:auto!important;
}
.today-replacement-scrim{
  position:absolute!important;
  inset:0!important;
  width:100%!important;
  height:100%!important;
  border:0!important;
  background:rgba(15,23,42,.28)!important;
  backdrop-filter:blur(3px)!important;
}
.today-replacement-panel{
  position:relative!important;
  z-index:1!important;
  width:min(540px,100%)!important;
  max-height:min(86svh,620px)!important;
  margin:0 auto!important;
  padding:14px 14px calc(16px + var(--safe-bottom))!important;
  overflow:auto!important;
  border-radius:28px 28px 0 0!important;
  background:#fff!important;
  box-shadow:0 -24px 70px rgba(15,23,42,.24)!important;
}
.today-replacement-panel>.today-adjustment-panel{
  margin:0!important;
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
}
.today-replacement-panel .today-adjustment-head{
  padding-bottom:6px!important;
  border-bottom:1px solid rgba(226,232,240,.82)!important;
}
.today-replacement-panel .today-adjustment-head strong{
  font-size:1.08rem!important;
  letter-spacing:-.02em!important;
}
.today-replacement-panel .today-add-method-list,
.today-replacement-panel .today-support-picker-list{
  gap:9px!important;
}
.today-replacement-panel .builder-picker-choice{
  text-align:left!important;
}
.today-support-card-detail-actions.planned-support-menu,
.today-row-expanded-card .today-support-card-detail-actions.planned-support-menu{
  gap:10px!important;
}
.today-vizicues-helper-link{
  width:100%!important;
  padding:10px 12px!important;
  border:1px solid rgba(54,171,156,.22)!important;
  border-radius:16px!important;
  background:#F7FCFA!important;
}
.today-vizicues-helper-link span{
  text-decoration:none!important;
}
.today-expanded-management-actions{
  margin-top:0!important;
  padding-top:0!important;
}
.today-expanded-management-actions .support-action.link,
.today-support-card-detail-actions .support-action.link{
  font-size:.76rem!important;
  font-weight:800!important;
  color:#64748B!important;
}
.today-expanded-management-actions .support-action.link.danger,
.today-support-card-detail-actions .support-action.link.danger{
  color:#8A4B4B!important;
}
.app-toast{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:10px!important;
  flex-wrap:wrap!important;
}
.app-toast[hidden]{
  display:none!important;
}
.app-toast-action{
  min-height:28px!important;
  padding:0 10px!important;
  border:1px solid rgba(255,255,255,.32)!important;
  border-radius:999px!important;
  background:rgba(255,255,255,.12)!important;
  color:#fff!important;
  font:inherit!important;
  font-size:.82rem!important;
  font-weight:950!important;
  text-decoration:underline!important;
  text-underline-offset:3px!important;
}
.app-toast-action:focus-visible{
  outline:3px solid rgba(255,255,255,.35)!important;
  outline-offset:2px!important;
}
@media (max-width:620px){
  .today-replacement-panel{
    width:100%!important;
    padding:12px 14px calc(15px + var(--safe-bottom))!important;
  }
  .today-vizicues-helper-link{
    padding:9px 11px!important;
  }
}


/* SC-PLAN-05N13: real bottom tab icons */
.tab-button{
  gap:4px!important;
}
.tab-button .tab-icon{
  display:grid!important;
  place-items:center!important;
  width:25px!important;
  height:25px!important;
  color:currentColor!important;
  line-height:1!important;
}
.tab-button .tab-icon svg{
  display:block!important;
  width:24px!important;
  height:24px!important;
  fill:none!important;
  stroke:currentColor!important;
  stroke-width:2!important;
  stroke-linecap:round!important;
  stroke-linejoin:round!important;
}
.tab-button.active .tab-icon{
  color:var(--sg-brand-dark)!important;
}
.tab-button strong{
  font-size:.74rem!important;
  line-height:1.05!important;
}

/* SC-PLAN-05P — Save as Template / Use Saved Template */
.today-template-panel{border-style:solid;background:linear-gradient(180deg,#FFFFFF,#F8FAFC)}
.today-template-name-field{display:grid;gap:6px}
.today-template-name-field span{font-size:.72rem;font-weight:950;text-transform:uppercase;letter-spacing:.055em;color:var(--sg-muted)}
.today-template-name-field input{width:100%;min-height:44px;border:1px solid rgba(203,213,225,.9);border-radius:15px;background:#fff;color:var(--sg-ink);padding:0 12px;font-size:.92rem;font-weight:850}
.today-template-actions{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}
.today-template-count{color:var(--sg-muted);font-size:.78rem;font-weight:900}
.today-template-list{display:grid;gap:8px}
.today-template-card{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;padding:11px;border:1px solid rgba(226,232,240,.92);border-radius:18px;background:#fff;box-shadow:0 7px 16px rgba(15,23,42,.035)}
.today-template-card-main{display:grid;gap:3px;min-width:0}
.today-template-card-main strong{color:var(--sg-ink);font-size:.94rem;line-height:1.18}
.today-template-card-main span{color:var(--sg-muted);font-size:.78rem;font-weight:850;line-height:1.35}
.today-template-card-actions{display:flex;align-items:center;justify-content:flex-end;gap:6px;flex-wrap:wrap}
.today-template-replace-choice strong{display:block}
.today-template-limit-panel{background:linear-gradient(180deg,#FFFFFF,#FFF8F2)}
@media (max-width:620px){.today-template-card{grid-template-columns:1fr}.today-template-card-actions,.today-template-actions{display:grid;grid-template-columns:1fr}.today-template-card-actions .support-action,.today-template-actions .support-action{width:100%;justify-content:center}.today-template-count{text-align:center}}
@media print{.today-template-panel{display:none!important}}

/* SC-PLAN-05P1 — template flows use a bottom sheet instead of inserting a large card under Today's supports. */
.today-template-sheet{
  position:fixed!important;
  inset:0!important;
  z-index:84!important;
  display:grid!important;
  align-items:end!important;
  pointer-events:auto!important;
}
.today-template-scrim{
  position:absolute!important;
  inset:0!important;
  width:100%!important;
  height:100%!important;
  border:0!important;
  padding:0!important;
  background:rgba(15,23,42,.28)!important;
  backdrop-filter:blur(3px)!important;
}
.today-template-sheet-panel{
  position:relative!important;
  z-index:1!important;
  width:min(540px,100%)!important;
  max-height:min(88svh,680px)!important;
  margin:0 auto!important;
  padding:14px 14px calc(16px + var(--safe-bottom))!important;
  overflow:auto!important;
  border-radius:28px 28px 0 0!important;
  background:#fff!important;
  box-shadow:0 -24px 70px rgba(15,23,42,.24)!important;
}
.today-template-sheet-panel>.today-template-panel{
  margin:0!important;
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
}
.today-template-sheet-panel .today-adjustment-head{
  padding-bottom:10px!important;
  border-bottom:1px solid rgba(226,232,240,.82)!important;
}
.today-template-sheet-panel .today-adjustment-head strong{
  display:block!important;
  font-size:1.08rem!important;
  letter-spacing:-.02em!important;
}
.today-template-sheet-panel .today-adjustment-head span{
  font-size:.86rem!important;
  line-height:1.4!important;
}
.today-template-sheet-panel .today-template-list{
  gap:10px!important;
}
.today-template-sheet-panel .today-template-card{
  padding:12px!important;
  border-radius:22px!important;
}
.today-template-sheet-panel .today-template-card-actions{
  display:grid!important;
  grid-template-columns:1fr 1fr!important;
  gap:8px!important;
}
.today-template-sheet-panel .today-template-card-actions .support-action{
  width:100%!important;
  justify-content:center!important;
}
.today-template-sheet-panel .today-template-card-actions .support-action.primary{
  grid-column:1 / -1!important;
}
.today-template-sheet-panel .today-template-card-actions .support-action.danger{
  grid-column:1 / -1!important;
}
.today-template-sheet-panel .today-template-actions{
  display:grid!important;
  grid-template-columns:1fr!important;
  gap:8px!important;
}
.today-template-sheet-panel .today-template-actions .support-action{
  width:100%!important;
  justify-content:center!important;
}
.today-template-sheet-panel .today-template-count{
  text-align:center!important;
}
@media (max-width:420px){
  .today-template-sheet-panel .today-template-card-actions{
    grid-template-columns:1fr!important;
  }
}
@media print{
  .today-template-sheet{display:none!important;}
}

/* SC-SI-04 — contextual Library quick tags + shared support accent colors */
.context-chip-row{
  display:flex!important;
  flex-wrap:wrap!important;
  gap:7px!important;
}
.context-filter-chip{
  min-height:32px!important;
  padding:0 10px!important;
  border:1px solid rgba(203,213,225,.88)!important;
  border-radius:999px!important;
  background:#fff!important;
  color:#475569!important;
  font-size:.76rem!important;
  font-weight:900!important;
  line-height:1!important;
}
.context-filter-chip.is-active{
  border-color:rgba(54,171,156,.6)!important;
  background:var(--sg-teal-soft)!important;
  color:var(--sg-brand-dark)!important;
  box-shadow:0 5px 13px rgba(54,171,156,.12)!important;
}
.context-filter-chip:focus-visible{
  outline:3px solid rgba(54,171,156,.28)!important;
  outline-offset:2px!important;
}
.secondary-context-chip-row{
  padding-top:2px!important;
}
.active-quick-filters{
  margin:0!important;
  color:#25645C!important;
  font-size:.78rem!important;
  font-weight:900!important;
  line-height:1.35!important;
}
.activity-card{
  position:relative!important;
  overflow:hidden!important;
  border-color:rgba(226,232,240,.94)!important;
}
.activity-card::before{
  content:""!important;
  position:absolute!important;
  inset:0 auto 0 0!important;
  width:6px!important;
  background:var(--support-accent,var(--sg-brand))!important;
}
.activity-card .activity-topline,
.activity-card h3,
.activity-card .activity-instructions,
.activity-card .tag-row,
.activity-card details,
.activity-card .support-action-row,
.activity-card .library-card-favorite-button{
  position:relative!important;
  z-index:1!important;
}
.category-dot{
  background:var(--support-accent,var(--sg-brand))!important;
  box-shadow:0 0 0 3px color-mix(in srgb,var(--support-accent,var(--sg-brand)) 16%,transparent)!important;
}
.tag.tag-accent{
  background:color-mix(in srgb,var(--support-accent,var(--sg-brand)) 12%,#fff)!important;
  border:1px solid color-mix(in srgb,var(--support-accent,var(--sg-brand)) 32%,#E2E8F0)!important;
  color:#1F3D3A!important;
}
.today-support-rail{
  background:var(--support-accent,var(--sg-brand))!important;
}
.today-helper-tag:first-child,
.today-row-expanded-tags .today-helper-tag:first-child{
  border-color:color-mix(in srgb,var(--support-accent,var(--sg-brand)) 30%,#E2E8F0)!important;
  background:color-mix(in srgb,var(--support-accent,var(--sg-brand)) 9%,#fff)!important;
}
@supports not (background:color-mix(in srgb,#000 10%,#fff)){
  .category-dot{box-shadow:0 0 0 3px rgba(54,171,156,.12)!important;}
  .tag.tag-accent,.today-helper-tag:first-child,.today-row-expanded-tags .today-helper-tag:first-child{background:#F8FAFC!important;border-color:rgba(54,171,156,.28)!important;}
}
@media (max-width:420px){
  .context-filter-chip{flex:1 1 auto!important;}
}

/* SC-SI-06 — Smart Suggest explanation chips + bridge context visibility. */
.smart-suggest-reason-chip{
  display:inline-flex!important;
  align-items:center!important;
  width:max-content!important;
  max-width:100%!important;
  min-height:24px!important;
  padding:2px 9px!important;
  border:1px solid rgba(54,171,156,.24)!important;
  border-radius:999px!important;
  background:#F2FBF9!important;
  color:#25645C!important;
  font-size:.72rem!important;
  line-height:1.2!important;
  font-weight:850!important;
  letter-spacing:0!important;
  text-transform:none!important;
}
.today-row-explanation-chip{
  margin:0 0 1px!important;
}
.builder-picker-choice .smart-suggest-reason-chip{
  margin-top:2px!important;
}
.today-smart-preview{
  display:block!important;
  color:#64748B!important;
  font-size:.74rem!important;
  line-height:1.28!important;
  font-weight:800!important;
}

/* SC-SI-07 — safety and i18n smoke hardening. */
.smart-suggest-safety-note{
  display:block!important;
  max-width:62ch!important;
  margin:.35rem 0 0!important;
  color:#64748B!important;
  font-size:.78rem!important;
  line-height:1.35!important;
  font-weight:700!important;
}
.smart-suggest-safety-note.mini{
  font-size:.72rem!important;
  margin:.2rem 0!important;
}
.smart-suggest-safety-inline{
  display:block!important;
  margin-top:.28rem!important;
  color:#8A5A10!important;
  font-size:.72rem!important;
  line-height:1.35!important;
  font-weight:750!important;
}
.menu-safety-note{
  display:grid!important;
  gap:.45rem!important;
  text-align:left!important;
}
.menu-safety-note strong{
  color:#0F172A!important;
  font-size:.92rem!important;
}
.menu-safety-note p{
  margin:0!important;
  color:#475569!important;
  font-size:.83rem!important;
  line-height:1.45!important;
}

/* SC-MORE-01A: activated More menu screens + app settings foundation. */
.more-panel{margin:12px 2px 0;display:grid;gap:12px;color:var(--sg-text)}
.more-panel-head{padding:14px;border:1px solid rgba(226,232,240,.92);border-radius:22px;background:linear-gradient(145deg,#FFFFFF,#F3FBF9)}
.more-panel-head h3{margin:0;color:var(--sg-ink);font-size:1.05rem;line-height:1.12;letter-spacing:-.03em}
.more-panel-head p{margin:7px 0 0;color:var(--sg-muted);font-size:.88rem;line-height:1.42}
.more-card-stack{display:grid;gap:10px}
.more-toggle-card,.more-select-card,.more-radio-card,.more-info-card{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:13px;border:1px solid rgba(226,232,240,.95);border-radius:20px;background:#fff;box-shadow:0 6px 16px rgba(15,23,42,.035)}
.more-toggle-card span,.more-select-card span,.more-radio-card span,.more-info-card{min-width:0}
.more-toggle-card strong,.more-select-card strong,.more-radio-card strong,.more-info-card strong{display:block;color:var(--sg-ink);font-size:.9rem;line-height:1.2}
.more-toggle-card small,.more-select-card small,.more-radio-card small,.more-info-card p{display:block;margin-top:4px;color:var(--sg-muted);font-size:.78rem;line-height:1.34}
.more-toggle-card input[type="checkbox"],.more-radio-card input[type="radio"]{flex:0 0 auto;width:20px;height:20px;accent-color:var(--sg-brand)}
.more-select-card select{flex:0 0 132px;min-height:38px;border:1px solid var(--sg-line);border-radius:14px;background:#fff;color:var(--sg-text);padding:0 10px;font-weight:850}
.more-fieldset{display:grid;gap:9px;margin:0;padding:0;border:0}.more-fieldset legend{margin-bottom:7px;color:var(--sg-muted);font-size:.72rem;font-weight:950;text-transform:uppercase;letter-spacing:.055em}
.more-radio-card{justify-content:flex-start}.more-radio-card input{order:-1}.more-current-pill{display:inline-flex;margin-top:8px;min-height:28px;align-items:center;padding:0 9px;border-radius:999px;background:var(--sg-teal-soft);color:var(--sg-brand-dark);font-size:.76rem;font-weight:950}
.install-steps{display:grid;gap:9px;margin:0;padding:0;list-style:none}.install-steps li{padding:13px;border:1px solid rgba(226,232,240,.95);border-radius:20px;background:#fff}.install-steps strong{display:block;color:var(--sg-ink);font-size:.9rem}.install-steps span{display:block;margin-top:5px;color:var(--sg-muted);font-size:.8rem;line-height:1.38}
.faq-list{gap:8px}.faq-item{border:1px solid rgba(226,232,240,.95);border-radius:18px;background:#fff}.faq-item summary{cursor:pointer;padding:12px 13px;color:var(--sg-ink);font-size:.88rem;font-weight:950}.faq-item p{margin:0;padding:0 13px 13px;color:var(--sg-muted);font-size:.82rem;line-height:1.42}
html.sensycues-reduce-motion *,html[data-reduce-motion="true"] *{scroll-behavior:auto!important;animation-duration:.001ms!important;animation-iteration-count:1!important;transition-duration:.001ms!important}
html[data-text-size="large"] body{font-size:1.055rem}html[data-text-size="extraLarge"] body{font-size:1.12rem}
html[data-text-size="large"] .activity-card p,html[data-text-size="large"] .today-row-expanded-card p,html[data-text-size="large"] .more-panel p{font-size:.96rem}
html[data-text-size="extraLarge"] .activity-card p,html[data-text-size="extraLarge"] .today-row-expanded-card p,html[data-text-size="extraLarge"] .more-panel p{font-size:1.02rem}
@media (max-width:520px){.more-toggle-card,.more-select-card,.more-info-card{align-items:flex-start}.more-select-card{display:grid}.more-select-card select{width:100%;flex-basis:auto}.more-toggle-card input[type="checkbox"]{margin-top:3px}}

/* SC-MORE-01B: single active profile context + age/style fit. */
.more-input-card{display:grid;gap:9px;padding:13px;border:1px solid rgba(226,232,240,.95);border-radius:20px;background:#fff;box-shadow:0 6px 16px rgba(15,23,42,.035)}
.more-input-card strong{display:block;color:var(--sg-ink);font-size:.9rem;line-height:1.2}.more-input-card small{display:block;margin-top:4px;color:var(--sg-muted);font-size:.78rem;line-height:1.34}
.more-input-card input{min-height:40px;border:1px solid var(--sg-line);border-radius:14px;background:#fff;color:var(--sg-text);padding:0 11px;font-weight:780;font-size:.94rem}
.profile-context-form{margin-top:0}.profile-select-card{align-items:flex-start}.profile-option-help{padding:0 4px 2px;color:var(--sg-muted);font-size:.8rem}.profile-option-help summary{cursor:pointer;font-weight:900;color:var(--sg-brand-dark)}
.profile-option-help ul{display:grid;gap:7px;margin:8px 0 0;padding:0;list-style:none}.profile-option-help li{display:grid;gap:2px;padding:8px 10px;border:1px solid rgba(226,232,240,.75);border-radius:14px;background:rgba(248,250,252,.72)}
.profile-option-help li strong{color:var(--sg-ink);font-size:.8rem}.profile-option-help li span{line-height:1.32}.compact-actions{gap:8px;flex-wrap:wrap}.profile-context-note p{margin-bottom:0}
@media (max-width:520px){.more-input-card,.profile-select-card{display:grid}.more-input-card input,.profile-select-card select{width:100%}}

/* SC-HANDOFF-01 — ViziCues receive review flow. */
.handoff-review-sheet[hidden]{display:none!important}
.handoff-review-sheet{position:fixed;inset:0;z-index:78}
.handoff-review-panel{position:absolute;left:50%;bottom:0;transform:translateX(-50%);width:min(520px,100%);max-height:90svh;overflow:auto;padding:10px 14px calc(18px + var(--safe-bottom));border-radius:30px 30px 0 0;background:#fff;box-shadow:0 -26px 70px rgba(15,23,42,.24)}
.handoff-review-body{display:grid;gap:10px}
.handoff-summary-card,.handoff-preview-card{display:grid;gap:8px;padding:14px;border:1px solid rgba(226,232,240,.95);border-radius:22px;background:#fff;box-shadow:0 6px 16px rgba(15,23,42,.035)}
.handoff-summary-card{background:linear-gradient(145deg,#FFFFFF,#F2FBF9)}
.handoff-summary-card.safety{background:#FFF8F2}
.handoff-summary-card h3{margin:0;color:var(--sg-ink);font-size:1.08rem;line-height:1.15;letter-spacing:-.025em}
.handoff-summary-card p,.handoff-preview-card p{margin:0;color:var(--sg-muted);font-size:.88rem;line-height:1.42}
.handoff-preview-card strong{color:var(--sg-ink);font-size:.9rem}
.handoff-preview-card ul{display:grid;gap:6px;margin:0;padding-left:1.15rem;color:var(--sg-text);font-size:.88rem;line-height:1.32}
.handoff-privacy-note{padding:8px 10px;border-radius:14px;background:#F8FAFC;color:#475569!important;font-size:.8rem!important;font-weight:760!important}
.handoff-actions{position:sticky;bottom:0;display:grid;grid-template-columns:1fr 1fr;gap:8px;padding-top:10px;background:linear-gradient(180deg,rgba(255,255,255,.72),#fff 30%)}
.handoff-actions .primary-button,.handoff-actions .secondary-button,.handoff-actions .text-button,.handoff-return-link{display:inline-flex;align-items:center;justify-content:center;text-align:center;text-decoration:none}
.handoff-actions .primary-button:first-child:last-child{grid-column:1 / -1}
.handoff-actions .text-button{grid-column:1 / -1}
@media (max-width:420px){.handoff-actions{grid-template-columns:1fr}.handoff-actions .text-button{grid-column:auto}}
@media print{.handoff-review-sheet{display:none!important}}

/* SC-HANDOFF-02 — one-support Add to ViziCues handoff */
.attempt-vizicues-card{display:grid;gap:6px;margin-top:12px;padding:12px;border:1px solid rgba(54,171,156,.24);border-radius:18px;background:rgba(236,253,245,.72)}
.attempt-vizicues-card .attempt-vizicues-action{width:100%;justify-content:center;text-align:center}
.attempt-vizicues-card small{color:var(--sg-muted);font-size:.78rem;line-height:1.35}
.support-action{display:inline-flex!important;align-items:center;justify-content:center;text-align:center;text-decoration:none}
.support-action[data-support-action="add-vizicues"],
.support-action[data-library-action="add-vizicues"]{border-color:rgba(54,171,156,.28);background:rgba(236,253,245,.72);color:var(--sg-brand-dark)}
.support-action.primary[data-support-action="add-vizicues"],
.support-action.primary[data-library-action="add-vizicues"]{border-color:var(--sg-brand)!important;background:var(--sg-brand)!important;color:#fff!important}

/* SC-HANDOFF-03 — Today-level Send to ViziCues review flow */
.today-vizicues-review-sheet{position:fixed;inset:0;z-index:77}
.today-vizicues-review-panel{position:absolute;left:50%;bottom:0;transform:translateX(-50%);width:min(540px,100%);max-height:92svh;overflow:auto;padding:12px 14px calc(18px + var(--safe-bottom));border-radius:30px 30px 0 0;background:#fff;box-shadow:0 -26px 70px rgba(15,23,42,.24)}
.today-vizicues-review-helper{margin:0 0 10px;color:var(--sg-muted);font-size:.9rem;line-height:1.42}
.today-vizicues-review-list{display:grid;gap:9px;margin:8px 0}
.today-vizicues-review-card{display:grid;grid-template-columns:auto 1fr auto;gap:10px;align-items:start;width:100%;padding:12px;border:1px solid var(--sg-line);border-radius:20px;background:#fff;color:var(--sg-text);text-align:left;box-shadow:0 6px 16px rgba(15,23,42,.035)}
.today-vizicues-review-card.is-selected{border-color:rgba(54,171,156,.72);background:linear-gradient(145deg,#FFFFFF,#F2FBF9)}
.today-vizicues-radio{display:grid;place-items:center;width:24px;height:24px;border-radius:999px;border:1px solid rgba(54,171,156,.48);background:#fff;color:var(--sg-brand-dark);font-weight:950}
.today-vizicues-card-copy{display:grid;gap:4px}
.today-vizicues-card-copy strong{color:var(--sg-ink);font-size:.95rem;line-height:1.15;letter-spacing:-.02em}
.today-vizicues-card-copy small{color:var(--sg-muted);font-size:.78rem;line-height:1.35;font-weight:800}
.today-vizicues-card-copy em{font-style:normal;color:#8A5A18;font-size:.76rem;line-height:1.32}
.today-vizicues-card-action{align-self:center;color:var(--sg-brand-dark);font-size:.75rem;font-weight:950;white-space:nowrap}
.today-vizicues-empty{display:grid;gap:6px;padding:14px;border:1px solid var(--sg-line);border-radius:20px;background:#FFF8F2;color:var(--sg-muted)}
.today-vizicues-empty strong{color:var(--sg-ink)}
.today-vizicues-empty p{margin:0;font-size:.88rem;line-height:1.4}
.today-vizicues-review-actions{position:sticky;bottom:0;display:grid;grid-template-columns:1fr 1fr;gap:8px;padding-top:10px;background:linear-gradient(180deg,rgba(255,255,255,.72),#fff 30%)}
@media (max-width:430px){.today-vizicues-review-card{grid-template-columns:auto 1fr}.today-vizicues-card-action{grid-column:2}.today-vizicues-review-actions{grid-template-columns:1fr}}
@media print{.today-vizicues-review-sheet{display:none!important}}


/* SC-HANDOFF-04 — Reset boundary + save-what-helped placeholder */
.reset-fallback-card{display:grid;grid-template-columns:1fr auto;gap:10px;align-items:center;margin:-4px 0 13px;padding:12px 13px;border:1px solid rgba(245,138,72,.28);border-radius:20px;background:linear-gradient(145deg,#FFFFFF,#FFF7ED)}
.reset-fallback-card div{display:grid;gap:3px}.reset-fallback-card strong{color:#8A4B13;font-size:.94rem}.reset-fallback-card span{color:var(--sg-muted);font-size:.84rem;line-height:1.35}
.reset-boundary-card{border-color:rgba(245,138,72,.32);background:linear-gradient(145deg,#FFFFFF,#FFF7ED)}
@media (max-width:420px){.reset-fallback-card{grid-template-columns:1fr}.reset-fallback-card .support-action{width:100%;justify-content:center}}
@media print{.reset-fallback-card{display:none!important}}

/* SC-PLAN-05M1 — Smart Suggest refresh/loading polish */
.smart-suggest-choice-sheet{
  position:fixed!important;
  inset:0!important;
  z-index:78!important;
  display:grid!important;
  align-items:end!important;
  justify-items:center!important;
  padding:18px 12px calc(18px + var(--safe-bottom))!important;
}
.smart-suggest-choice-scrim{
  position:absolute!important;
  inset:0!important;
  width:100%!important;
  height:100%!important;
  border:0!important;
  background:rgba(15,23,42,.28)!important;
}
.smart-suggest-choice-scrim:disabled{
  cursor:wait!important;
}
.smart-suggest-choice-panel{
  position:relative!important;
  z-index:1!important;
  width:min(520px,100%)!important;
  display:grid!important;
  gap:12px!important;
  margin:0!important;
  padding:16px!important;
  border:1px solid rgba(54,171,156,.25)!important;
  border-radius:26px 26px 22px 22px!important;
  background:linear-gradient(145deg,#FFFFFF,#F2FBF9)!important;
  box-shadow:0 -20px 54px rgba(15,23,42,.22)!important;
}
.smart-suggest-choice-head{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) auto!important;
  gap:10px!important;
  align-items:start!important;
}
.smart-suggest-choice-close{
  width:36px!important;
  min-width:36px!important;
  height:36px!important;
  min-height:36px!important;
  border-radius:14px!important;
}
.smart-suggest-loading-state{
  display:flex!important;
  align-items:center!important;
  gap:10px!important;
  min-height:42px!important;
  padding:10px 12px!important;
  border:1px solid rgba(54,171,156,.18)!important;
  border-radius:16px!important;
  background:#fff!important;
  color:var(--sg-brand-dark)!important;
  font-size:.84rem!important;
  line-height:1.35!important;
  font-weight:800!important;
}
.smart-suggest-spinner{
  width:18px!important;
  height:18px!important;
  border:3px solid rgba(54,171,156,.22)!important;
  border-top-color:var(--sg-brand)!important;
  border-radius:999px!important;
  animation:sgSmartSuggestSpin .85s linear infinite!important;
}
.support-action.is-loading::before{
  content:"";
  display:inline-block;
  width:13px;
  height:13px;
  margin-right:7px;
  border:2px solid rgba(255,255,255,.48);
  border-top-color:#fff;
  border-radius:999px;
  vertical-align:-2px;
  animation:sgSmartSuggestSpin .85s linear infinite;
}
@keyframes sgSmartSuggestSpin{to{transform:rotate(360deg)}}
@media (min-width:720px){
  .smart-suggest-choice-sheet{
    align-items:center!important;
    padding:22px!important;
  }
  .smart-suggest-choice-panel{
    border-radius:28px!important;
    box-shadow:0 24px 70px rgba(15,23,42,.2)!important;
  }
}
@media (prefers-reduced-motion:reduce){
  .smart-suggest-spinner,
  .support-action.is-loading::before{
    animation:none!important;
  }
}
@media print{.smart-suggest-choice-sheet{display:none!important;}}

/* SC-PLAN-05N — Apps Pro / Restore parity with ViziCues. */
.apps-pro-panel .more-panel-head{
  background:linear-gradient(145deg,#FFFFFF,#F3FBF9)!important;
}
.apps-pro-panel .more-info-card{
  display:grid!important;
  align-items:stretch!important;
  justify-content:stretch!important;
  gap:12px!important;
  padding:16px!important;
}
.apps-pro-card-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
}
.apps-pro-card-head p,
.apps-pro-checkout-card p,
.apps-pro-restore-card p,
.apps-pro-safe-card p{
  margin:6px 0 0!important;
  color:var(--sg-text)!important;
  font-size:.92rem!important;
  line-height:1.45!important;
}
.apps-pro-status-badge{
  flex:0 0 auto;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:32px;
  padding:0 11px;
  border-radius:999px;
  background:#F1F5F9;
  color:#475569;
  font-size:.78rem;
  font-weight:950;
}
.apps-pro-status-badge.active{
  background:var(--sg-teal-soft);
  color:var(--sg-brand-dark);
}
.apps-pro-status-summary{
  display:grid;
  gap:8px;
}
.apps-pro-status-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  min-height:44px;
  padding:9px 11px;
  border:1px solid rgba(226,232,240,.95);
  border-radius:15px;
  background:#fff;
}
.apps-pro-status-row span{
  min-width:0;
  color:var(--sg-muted);
  font-size:.84rem;
  font-weight:760;
}
.apps-pro-status-row strong{
  flex:0 0 auto;
  max-width:55%;
  color:var(--sg-ink)!important;
  text-align:right;
  font-size:.92rem!important;
  line-height:1.2!important;
}
.apps-pro-checkout-choice{
  display:grid;
  gap:11px;
  padding:13px;
  border:1px solid rgba(226,232,240,.95);
  border-radius:20px;
  background:#fff;
}
.apps-pro-checkout-choice p{
  margin:0!important;
}
.apps-pro-checkout-buttons{
  display:grid;
  gap:9px;
}
.support-action.apps-pro-price-button{
  width:100%!important;
  min-height:54px!important;
  justify-content:center!important;
  border-radius:999px!important;
  font-size:1rem!important;
  font-weight:950!important;
}
.support-action.apps-pro-price-button.yearly{
  background:var(--sg-warm)!important;
  border-color:var(--sg-warm)!important;
  color:#9A603E!important;
}
.support-action.apps-pro-price-button:disabled{
  opacity:1!important;
  cursor:not-allowed!important;
}
.apps-pro-restore-form{
  display:grid;
  gap:12px;
  margin-top:2px;
}
.apps-pro-field{
  margin:0!important;
  box-shadow:none!important;
}
.apps-pro-field input{
  width:100%;
  min-height:44px;
  border:1px solid var(--sg-line);
  border-radius:14px;
  background:#fff;
  color:var(--sg-ink);
  padding:0 11px;
  font-weight:780;
  font-size:.94rem;
}
.apps-pro-helper-text{
  margin:0!important;
  color:var(--sg-text)!important;
  font-size:.88rem!important;
}
.apps-pro-action-row{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:9px;
}
.apps-pro-action-row .support-action{
  justify-content:center!important;
}
.apps-pro-support-link{
  display:inline-flex;
  align-items:center;
  min-height:40px;
  color:var(--sg-brand-dark)!important;
  font-weight:950;
  text-decoration:underline;
  text-underline-offset:4px;
}
.apps-pro-safe-card ul{
  display:grid;
  gap:8px;
  margin:2px 0 0;
  padding-left:1.1rem;
}
.apps-pro-safe-card li{
  color:var(--sg-ink);
  font-size:.92rem;
  line-height:1.4;
}
.apps-pro-restore-delivery,
.apps-pro-device-limit{
  display:grid;
  gap:8px;
  padding:12px;
  border:1px solid rgba(54,171,156,.26);
  border-radius:18px;
  background:#F3FBF9;
}
.apps-pro-device-limit{
  border-color:#FED7AA;
  background:#FFF7ED;
}
.apps-pro-restore-delivery strong,
.apps-pro-device-limit strong{
  color:var(--sg-ink)!important;
}
.apps-pro-restore-code-display{
  display:block;
  padding:10px 11px;
  border:1px solid rgba(54,171,156,.24);
  border-radius:14px;
  background:#fff;
  color:var(--sg-ink);
  font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;
  font-size:.95rem;
  overflow-wrap:anywhere;
}
.apps-pro-live-status{
  min-height:1.2em;
}
.apps-pro-live-status[data-status-kind="success"]{
  color:var(--sg-brand-dark)!important;
  font-weight:850;
}
.apps-pro-live-status[data-status-kind="error"]{
  color:#9A3412!important;
  font-weight:850;
}
@media (max-width:520px){
  .apps-pro-card-head,
  .apps-pro-status-row,
  .apps-pro-action-row{
    display:grid;
  }
  .apps-pro-status-row strong{
    max-width:100%;
    text-align:left;
  }
  .apps-pro-action-row .support-action,
  .apps-pro-support-link{
    width:100%;
    justify-content:center;
  }
}

/* SC-REPORT-01: real Reports dashboard MVP */
.reports-dashboard{display:grid;gap:12px}
.reports-filter-panel{display:grid;gap:10px;padding:12px;border:1px solid rgba(226,232,240,.88);border-radius:24px;background:rgba(255,255,255,.9);box-shadow:var(--sg-shadow-soft)}
.reports-filter-panel label{display:grid;gap:6px}.reports-filter-panel label>span{color:var(--sg-muted);font-size:.72rem;font-weight:900;letter-spacing:.05em;text-transform:uppercase}.reports-filter-panel select{width:100%;min-height:42px;border:1px solid var(--sg-line);border-radius:14px;background:#fff;color:var(--sg-ink);padding:0 11px;font-weight:800}
.reports-summary-grid{grid-template-columns:1fr 1fr}.reports-summary-grid .report-card{min-height:112px}.report-card-wide{grid-column:1 / -1}.report-card-wide strong{font-size:1.06rem;line-height:1.18;letter-spacing:-.025em}
.reports-status-card,.reports-insight-card,.reports-outcome-list{padding:15px;border:1px solid rgba(226,232,240,.88);border-radius:24px;background:rgba(255,255,255,.9);box-shadow:var(--sg-shadow-soft)}
.reports-status-card strong,.reports-insight-card strong{display:block;color:var(--sg-ink);font-size:1rem;letter-spacing:-.02em}.reports-status-card p,.reports-insight-card p{margin:6px 0 0;color:var(--sg-muted);font-size:.92rem;line-height:1.45}.reports-status-card-soft,.reports-insight-muted{background:linear-gradient(140deg,#FFFFFF,#FFF8F2)}
.reports-subhead{margin-bottom:10px}.reports-subhead h2{margin:0;color:var(--sg-ink);font-size:1.12rem;line-height:1.12;letter-spacing:-.035em}.reports-subhead p{margin:6px 0 0;color:var(--sg-muted);font-size:.9rem;line-height:1.4}
.reports-outcome-grid{display:grid;gap:8px}.reports-outcome-row{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 11px;border:1px solid rgba(226,232,240,.86);border-radius:16px;background:#F8FAFC}.reports-outcome-row span{color:#475569;font-size:.86rem;font-weight:850}.reports-outcome-row strong{color:var(--sg-ink);font-size:1rem}.reports-small-note{margin:10px 0 0;color:var(--sg-muted);font-size:.84rem;line-height:1.4}.reports-privacy-card p+p{margin-top:4px}
@media (min-width:700px){.reports-filter-panel{grid-template-columns:repeat(3,minmax(0,1fr))}.reports-summary-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.report-card-wide{grid-column:auto}.reports-outcome-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media print{.reports-filter-panel{display:none!important}.reports-status-card,.reports-insight-card,.reports-outcome-list{box-shadow:none;break-inside:avoid}.reports-summary-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media (min-width:700px){#panel-reports .reports-summary-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media (max-width:380px){.reports-summary-grid{grid-template-columns:1fr}}

/* SC-REPORT-02 — outcome charts + pattern summaries */
.reports-chart-section,.reports-pattern-summary{display:grid;gap:12px;padding:15px;border:1px solid rgba(226,232,240,.88);border-radius:24px;background:rgba(255,255,255,.9);box-shadow:var(--sg-shadow-soft)}
.reports-chart-stack{display:grid;gap:12px}.reports-chart-card{display:grid;gap:12px;padding:13px;border:1px solid rgba(226,232,240,.86);border-radius:20px;background:linear-gradient(145deg,#FFFFFF,#F8FAFC)}
.reports-chart-card header{display:grid;gap:4px}.reports-chart-card header strong{color:var(--sg-ink);font-size:1rem;letter-spacing:-.025em}.reports-chart-card header p{margin:0;color:var(--sg-muted);font-size:.86rem;line-height:1.35}
.reports-bar-list{display:grid;gap:10px}.reports-bar-row{display:grid;gap:6px}.reports-bar-label{display:flex;align-items:baseline;justify-content:space-between;gap:10px}.reports-bar-label span{color:#475569;font-size:.85rem;font-weight:850}.reports-bar-label strong{color:var(--sg-ink);font-size:.85rem;font-weight:950;white-space:nowrap}
.reports-bar-track{height:12px;overflow:hidden;border-radius:999px;background:#E2E8F0}.reports-bar-track span{display:block;height:100%;min-width:8px;border-radius:999px;background:linear-gradient(90deg,#CBD5E1,#94A3B8)}
.reports-pattern-list{display:grid;gap:8px}.reports-pattern-row{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;padding:10px 11px;border:1px solid rgba(226,232,240,.86);border-radius:16px;background:#FFFFFF}.reports-pattern-row span{color:#334155;font-size:.86rem;font-weight:900}.reports-pattern-row strong{max-width:48%;color:var(--sg-muted);font-size:.8rem;line-height:1.25;text-align:right}
.reports-empty-chart{margin:0;padding:11px;border:1px dashed rgba(148,163,184,.72);border-radius:16px;background:#F8FAFC;color:var(--sg-muted);font-size:.86rem;line-height:1.4}.reports-pattern-summary-grid{display:grid;gap:10px}.reports-pattern-summary-card{padding:12px;border:1px solid rgba(226,232,240,.86);border-radius:18px;background:#FFFFFF}.reports-pattern-summary-card strong{display:block;color:var(--sg-ink);font-size:.95rem;letter-spacing:-.02em}.reports-pattern-summary-card p{margin:6px 0 0;color:var(--sg-muted);font-size:.86rem;line-height:1.42}
@media (min-width:760px){.reports-chart-stack{grid-template-columns:repeat(2,minmax(0,1fr))}.reports-chart-card[data-report-chart="outcome-breakdown"],.reports-chart-card[data-report-chart="planned-vs-used"]{grid-column:1 / -1}.reports-pattern-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:380px){.reports-pattern-row{display:grid}.reports-pattern-row strong{max-width:none;text-align:left}.reports-bar-label{display:grid;gap:2px}.reports-bar-label strong{white-space:normal}}
@media print{.reports-chart-section,.reports-pattern-summary,.reports-chart-card,.reports-pattern-summary-card{box-shadow:none;break-inside:avoid}.reports-bar-track{border:1px solid #CBD5E1;background:#FFFFFF}.reports-bar-track span{background:#CBD5E1}}
/* SC-REPORT-03 searchable history and review details */
.reports-history-section{display:grid;gap:12px;padding:15px;border:1px solid rgba(226,232,240,.88);border-radius:24px;background:rgba(255,255,255,.9);box-shadow:var(--sg-shadow-soft)}
.reports-history-filters{display:grid;gap:10px;padding:12px;border:1px solid rgba(226,232,240,.84);border-radius:20px;background:#F8FAFC}.reports-history-filters label{display:grid;gap:6px}.reports-history-filters label>span{color:var(--sg-muted);font-size:.72rem;font-weight:900;letter-spacing:.05em;text-transform:uppercase}.reports-history-filters input,.reports-history-filters select,.reports-history-edit select,.reports-history-edit textarea{width:100%;border:1px solid var(--sg-line);border-radius:14px;background:#fff;color:var(--sg-ink);padding:10px 11px;font:inherit;font-weight:800}.reports-history-search{grid-column:1 / -1}.reports-history-list{display:grid;gap:10px}.reports-history-count,.reports-history-note{margin:0;color:var(--sg-muted);font-size:.84rem;line-height:1.4}.reports-history-card{display:grid;gap:10px;padding:12px;border:1px solid rgba(226,232,240,.86);border-radius:20px;background:linear-gradient(145deg,#FFFFFF,#F8FAFC)}.reports-history-card-main{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.reports-history-card-main strong{display:block;color:var(--sg-ink);font-size:.98rem;letter-spacing:-.02em}.reports-history-card-main p,.reports-history-category,.reports-history-private-note{margin:4px 0 0;color:var(--sg-muted);font-size:.82rem;line-height:1.35}.reports-history-outcome{flex:0 0 auto;padding:6px 9px;border:1px solid rgba(148,163,184,.45);border-radius:999px;background:#fff;color:#475569;font-size:.76rem;font-weight:950;white-space:nowrap}.reports-history-private-note{padding:9px 10px;border-radius:14px;background:#FFF8F2;color:#8A5A2B}.reports-history-actions{display:flex;flex-wrap:wrap;gap:8px}.reports-history-edit{display:grid;gap:10px;padding:10px;border:1px solid rgba(226,232,240,.86);border-radius:18px;background:#FFFFFF}.reports-history-edit label{display:grid;gap:6px}.reports-history-edit label>span{color:var(--sg-muted);font-size:.72rem;font-weight:900;letter-spacing:.05em;text-transform:uppercase}.reports-history-edit textarea{min-height:84px;line-height:1.35;font-weight:650;resize:vertical}.reports-history-edit p{margin:0;color:var(--sg-muted);font-size:.82rem;line-height:1.4}.reports-history-empty{padding:12px;border:1px dashed rgba(148,163,184,.72);border-radius:18px;background:#F8FAFC}.reports-history-empty strong{display:block;color:var(--sg-ink);font-size:.94rem}.reports-history-empty p{margin:6px 0 0;color:var(--sg-muted);font-size:.86rem;line-height:1.4}
@media (min-width:760px){.reports-history-filters{grid-template-columns:repeat(3,minmax(0,1fr))}.reports-history-card-main p{font-size:.86rem}}
@media (max-width:420px){.reports-history-card-main{display:grid}.reports-history-outcome{justify-self:start}.reports-history-actions .btn{width:100%}}
@media print{.reports-history-filters,.reports-history-actions,.reports-history-edit{display:none!important}.reports-history-section,.reports-history-card{box-shadow:none;break-inside:avoid}}

.reports-share-card{display:grid;gap:12px;padding:15px;border:1px solid rgba(226,232,240,.88);border-radius:24px;background:rgba(255,255,255,.92);box-shadow:var(--sg-shadow-soft)}
.reports-share-preview{display:grid;gap:12px;padding:14px;border:1px solid rgba(226,232,240,.86);border-radius:22px;background:linear-gradient(145deg,#FFFFFF,#FFF8F2)}
.reports-share-preview header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding-bottom:10px;border-bottom:1px solid rgba(226,232,240,.82)}
.reports-share-preview header strong{display:block;color:var(--sg-ink);font-size:1.05rem;letter-spacing:-.03em}.reports-share-preview header p{margin:5px 0 0;color:var(--sg-muted);font-size:.86rem;line-height:1.35}.reports-share-preview header span{flex:0 0 auto;color:var(--sg-muted);font-size:.78rem;font-weight:900;white-space:nowrap}
.reports-share-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.reports-share-stats p,.reports-share-pairs p{margin:0;padding:10px;border:1px solid rgba(226,232,240,.84);border-radius:16px;background:#FFFFFF}.reports-share-stats span,.reports-share-pairs span{display:block;color:var(--sg-muted);font-size:.72rem;font-weight:950;text-transform:uppercase;letter-spacing:.05em}.reports-share-stats strong,.reports-share-pairs strong{display:block;margin-top:5px;color:var(--sg-ink);font-size:1rem;line-height:1.2;letter-spacing:-.02em}.reports-share-pairs{display:grid;gap:8px}
.reports-share-mini-section{display:grid;gap:8px}.reports-share-mini-section h3{margin:0;color:var(--sg-ink);font-size:.96rem;letter-spacing:-.02em}.reports-share-mini-section ul{display:grid;gap:7px;margin:0;padding:0;list-style:none}.reports-share-mini-section li{display:grid;gap:3px;padding:9px 10px;border:1px solid rgba(226,232,240,.84);border-radius:14px;background:#FFFFFF}.reports-share-mini-section li strong{color:#334155;font-size:.86rem}.reports-share-mini-section li span,.reports-share-mini-section p{margin:0;color:var(--sg-muted);font-size:.82rem;line-height:1.35}
.reports-share-preview footer{display:grid;gap:5px;padding-top:10px;border-top:1px solid rgba(226,232,240,.82)}.reports-share-preview footer p{margin:0;color:var(--sg-muted);font-size:.78rem;line-height:1.35}.reports-share-actions{display:flex;flex-wrap:wrap;gap:8px}.reports-share-text-preview{border:1px dashed rgba(148,163,184,.72);border-radius:18px;background:#F8FAFC;padding:10px}.reports-share-text-preview summary{cursor:pointer;color:#475569;font-weight:900;font-size:.86rem}.reports-share-text-preview pre{white-space:pre-wrap;margin:10px 0 0;color:#334155;font-size:.8rem;line-height:1.4;font-family:inherit}
@media (min-width:720px){.reports-share-pairs{grid-template-columns:1fr 1fr}.reports-share-mini-section ul{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media (max-width:420px){.reports-share-preview header,.reports-share-stats{display:grid;grid-template-columns:1fr}.reports-share-actions .btn{width:100%}.reports-share-preview header span{white-space:normal}}
@media print{.reports-share-card,.reports-share-preview{box-shadow:none;break-inside:avoid}.reports-share-actions,.reports-share-text-preview{display:none!important}body.printing-report-card .reports-filter-panel,body.printing-report-card .reports-insight-card,body.printing-report-card .reports-outcome-list,body.printing-report-card .reports-chart-section,body.printing-report-card .reports-pattern-summary,body.printing-report-card .reports-history-section,body.printing-report-card .reports-privacy-card{display:none!important}body.printing-report-card .reports-share-card{border:0;padding:0}body.printing-report-card .reports-share-preview{border:1px solid #CBD5E1;background:#fff}}

/* SC-REPORT-04B — detailed printable report + CSV export */
.reports-detailed-print-section,.reports-csv-export-section{display:grid;gap:12px;padding:15px;border:1px solid rgba(226,232,240,.88);border-radius:24px;background:rgba(255,255,255,.92);box-shadow:var(--sg-shadow-soft)}
.reports-export-warning{display:grid;gap:5px;padding:11px 12px;border:1px solid rgba(251,191,36,.38);border-radius:18px;background:#FFFBEB}.reports-export-warning strong{color:#7C4A03;font-size:.9rem}.reports-export-warning p{margin:0;color:#8A5A2B;font-size:.84rem;line-height:1.4}
.reports-notes-toggle{display:flex;align-items:flex-start;gap:9px;padding:10px 11px;border:1px solid rgba(226,232,240,.88);border-radius:16px;background:#F8FAFC;color:#475569;font-size:.86rem;font-weight:900;line-height:1.35}.reports-notes-toggle input{width:18px;height:18px;margin-top:1px;accent-color:#64748B}
.reports-detailed-print-preview{display:grid;gap:12px;padding:14px;border:1px solid rgba(226,232,240,.86);border-radius:22px;background:linear-gradient(145deg,#FFFFFF,#F8FAFC)}.reports-detailed-print-preview header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding-bottom:10px;border-bottom:1px solid rgba(226,232,240,.82)}.reports-detailed-print-preview header strong{display:block;color:var(--sg-ink);font-size:1.08rem;letter-spacing:-.03em}.reports-detailed-print-preview header p{margin:5px 0 0;color:var(--sg-muted);font-size:.86rem;line-height:1.35}.reports-detailed-print-preview header span{flex:0 0 auto;color:var(--sg-muted);font-size:.78rem;font-weight:900;white-space:nowrap}
.reports-detailed-summary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.reports-detailed-summary p,.reports-csv-summary p{margin:0;padding:10px;border:1px solid rgba(226,232,240,.84);border-radius:16px;background:#FFFFFF}.reports-detailed-summary span,.reports-csv-summary span{display:block;color:var(--sg-muted);font-size:.72rem;font-weight:950;text-transform:uppercase;letter-spacing:.05em}.reports-detailed-summary strong,.reports-csv-summary strong{display:block;margin-top:5px;color:var(--sg-ink);font-size:1rem;line-height:1.2;letter-spacing:-.02em}.reports-detailed-summary small{display:block;margin-top:4px;color:var(--sg-muted);font-size:.76rem;line-height:1.3}
.reports-detailed-section,.reports-detailed-history{display:grid;gap:8px;padding-top:4px}.reports-detailed-section h3,.reports-detailed-history h3{margin:0;color:var(--sg-ink);font-size:.98rem;letter-spacing:-.02em}.reports-detailed-section ul{display:grid;gap:7px;margin:0;padding:0;list-style:none}.reports-detailed-section li{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;padding:9px 10px;border:1px solid rgba(226,232,240,.84);border-radius:14px;background:#FFFFFF}.reports-detailed-section li span{color:#334155;font-size:.86rem;font-weight:850}.reports-detailed-section li strong{max-width:58%;color:var(--sg-muted);font-size:.82rem;line-height:1.35;text-align:right}.reports-detailed-section p,.reports-detailed-history p{margin:0;color:var(--sg-muted);font-size:.84rem;line-height:1.4}
.reports-detailed-history-table{display:grid;gap:0;overflow:hidden;border:1px solid rgba(226,232,240,.86);border-radius:16px;background:#FFFFFF}.reports-detailed-history-table [role="row"]{display:grid;grid-template-columns:.8fr 1.35fr .9fr 1fr .8fr;gap:0;border-top:1px solid rgba(226,232,240,.76)}.reports-detailed-history-table [role="row"]:first-child{border-top:0}.reports-detailed-history-table [role="row"] span{padding:8px 9px;color:#475569;font-size:.78rem;line-height:1.25;word-break:break-word}.reports-detailed-history-head span{background:#F8FAFC;color:#334155!important;font-weight:950}.reports-detailed-history-with-notes [role="row"]{grid-template-columns:.7fr 1.1fr .8fr .9fr .7fr 1.2fr}
.reports-csv-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.reports-detail-actions{display:flex;flex-wrap:wrap;gap:8px}.reports-detailed-print-preview footer{display:grid;gap:5px;padding-top:10px;border-top:1px solid rgba(226,232,240,.82)}.reports-detailed-print-preview footer p{margin:0;color:var(--sg-muted);font-size:.78rem;line-height:1.35}
@media (min-width:760px){.reports-detailed-summary{grid-template-columns:repeat(3,minmax(0,1fr))}.reports-detailed-section ul{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:520px){.reports-detailed-print-preview header,.reports-detailed-summary,.reports-csv-summary{display:grid;grid-template-columns:1fr}.reports-detail-actions .btn{width:100%}.reports-detailed-section li{display:grid}.reports-detailed-section li strong{max-width:none;text-align:left}.reports-detailed-history-table{overflow-x:auto}.reports-detailed-history-table [role="row"],.reports-detailed-history-with-notes [role="row"]{min-width:680px}.reports-detailed-print-preview header span{white-space:normal}}
@media print{.reports-detailed-print-section,.reports-csv-export-section,.reports-detailed-print-preview{box-shadow:none;break-inside:avoid}.reports-detail-actions,.reports-csv-export-section,.reports-notes-toggle,.reports-export-warning{display:none!important}body.printing-detailed-report .reports-filter-panel,body.printing-detailed-report .reports-insight-card,body.printing-detailed-report .reports-outcome-list,body.printing-detailed-report .reports-chart-section,body.printing-detailed-report .reports-pattern-summary,body.printing-detailed-report .reports-share-card,body.printing-detailed-report .reports-history-section,body.printing-detailed-report .reports-privacy-card,body.printing-detailed-report .reports-csv-export-section{display:none!important}body.printing-detailed-report .reports-detailed-print-section{border:0;padding:0;box-shadow:none}body.printing-detailed-report .reports-detailed-print-preview{border:1px solid #CBD5E1;background:#fff}.reports-detailed-history-table [role="row"] span{font-size:.72rem}}

/* SC-PREV-01 — Recently Helpful + Tomorrow Plan Prompt */
.prevention-insights{margin-bottom:14px}
.prevention-insights[hidden]{display:none!important}
.prevention-insights-section{display:grid;gap:12px}
.prevention-section-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;padding:16px;border:1px solid rgba(54,171,156,.22);border-radius:16px;background:linear-gradient(145deg,#FFFFFF 0%,#F0FBF8 100%);box-shadow:var(--sg-shadow-soft)}
.prevention-section-head h2{margin:0;color:var(--sg-ink);font-size:1.22rem;line-height:1.12;letter-spacing:-.035em}
.prevention-section-head p{max-width:58ch;margin:7px 0 0;color:var(--sg-muted);font-size:.88rem;line-height:1.42}
.prevention-local-pill{flex:0 0 auto;display:inline-flex;align-items:center;min-height:28px;padding:0 9px;border:1px solid rgba(54,171,156,.18);border-radius:999px;background:#fff;color:var(--sg-brand-dark);font-size:.7rem;font-weight:900;white-space:nowrap}
.prevention-helpful-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.prevention-helpful-card,.prevention-tomorrow-card,.prevention-template-picker{position:relative;padding:14px;border:1px solid var(--sg-line);border-radius:16px;background:#fff;box-shadow:0 8px 20px rgba(15,23,42,.045)}
.prevention-helpful-card{display:flex;flex-direction:column;min-width:0}
.prevention-card-topline{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}
.prevention-card-topline .mini-label{margin-bottom:0}
.prevention-strength{display:inline-flex;align-items:center;min-height:25px;padding:0 8px;border-radius:999px;background:var(--sg-teal-soft);color:var(--sg-brand-dark);font-size:.68rem;font-weight:950;text-transform:uppercase;letter-spacing:.045em}
.prevention-strength.is-strong{background:#EAF7ED;color:#2F7D42}
.prevention-dismiss-button{display:grid;place-items:center;flex:0 0 auto;width:30px;height:30px;border:1px solid var(--sg-line);border-radius:10px;background:#fff;color:var(--sg-muted);font-weight:900;line-height:1}
.prevention-dismiss-button:hover{border-color:var(--sg-line-strong);color:var(--sg-ink)}
.prevention-helpful-card h3,.prevention-tomorrow-card h3,.prevention-template-picker h3{margin:10px 0 0;color:var(--sg-ink);font-size:1.02rem;line-height:1.18;letter-spacing:-.025em}
.prevention-evidence,.prevention-tomorrow-card>p,.prevention-template-picker>p{margin:7px 0 0;color:var(--sg-muted);font-size:.84rem;line-height:1.42}
.prevention-anchor-suggestion{margin:8px 0 0;color:var(--sg-text);font-size:.8rem;font-weight:850}
.prevention-pair-chips{display:flex;flex-wrap:wrap;gap:6px;margin-top:9px}
.prevention-pair-chips span{display:inline-flex;align-items:center;min-height:25px;padding:0 8px;border:1px solid rgba(226,232,240,.92);border-radius:999px;background:#F8FAFC;color:#475569;font-size:.69rem;font-weight:800}
.prevention-mixed-note{margin:9px 0 0;padding:9px 10px;border:1px solid #FED7AA;border-radius:11px;background:#FFF7ED;color:#8A4B20;font-size:.76rem;line-height:1.4}
.prevention-primary-actions{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin-top:auto;padding-top:12px}
.prevention-primary-actions .support-action{width:100%;justify-content:center;min-height:38px;padding-inline:10px;font-size:.76rem}
.prevention-secondary-actions{display:flex;flex-wrap:wrap;gap:5px 12px;margin-top:8px}
.prevention-secondary-actions .text-button{min-height:32px;padding:0;border:0;background:transparent;color:var(--sg-brand-dark);font-size:.76rem;font-weight:850;text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:3px}
.prevention-tomorrow-card{border-color:rgba(245,138,72,.32);background:linear-gradient(145deg,#FFFFFF 0%,#FFF8F2 100%)}
.prevention-tomorrow-support{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:11px;padding:11px 12px;border:1px solid rgba(245,138,72,.2);border-radius:12px;background:#fff}
.prevention-tomorrow-support strong{min-width:0;color:var(--sg-ink);font-size:.9rem}
.prevention-tomorrow-support span{flex:0 0 auto;color:#8A4B20;font-size:.74rem;font-weight:850;text-align:right}
.prevention-control-note{font-size:.75rem!important}
.prevention-template-picker{border-color:rgba(54,171,156,.35);background:#F8FFFD}
.prevention-template-list{display:grid;gap:8px;margin-top:12px}
.prevention-template-choice{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;min-height:54px;padding:10px 12px;text-align:left;border:1px solid var(--sg-line);border-radius:12px;background:#fff;color:var(--sg-text)}
.prevention-template-choice:hover{border-color:rgba(54,171,156,.48);background:var(--sg-teal-soft)}
.prevention-template-choice strong{min-width:0;color:var(--sg-ink);font-size:.88rem}
.prevention-template-choice span{flex:0 0 auto;color:var(--sg-muted);font-size:.72rem;font-weight:800}
.prevention-template-empty{margin-top:12px;padding:12px;border:1px dashed var(--sg-line-strong);border-radius:12px;background:#fff}
.prevention-template-empty strong{color:var(--sg-ink);font-size:.88rem}
.prevention-template-empty p{margin:5px 0 0;color:var(--sg-muted);font-size:.8rem;line-height:1.4}
.prevention-template-picker>.support-action{margin-top:10px}
@media (max-width:760px){
  .prevention-helpful-list{grid-template-columns:1fr}
}
@media (max-width:520px){
  .prevention-section-head{display:grid}
  .prevention-local-pill{justify-self:start}
  .prevention-primary-actions{grid-template-columns:1fr}
  .prevention-tomorrow-support,.prevention-template-choice{display:grid}
  .prevention-tomorrow-support span,.prevention-template-choice span{text-align:left}
}

/* SC-REPORT-05A — Reports Workspace Shell + View Routing */
.reports-page-heading{display:grid;gap:5px;margin:2px 2px 12px}
.reports-page-heading h1{margin:0;color:var(--sg-ink);font-size:clamp(1.55rem,4.8vw,2rem);line-height:1.05;letter-spacing:-.05em}
.reports-page-heading p{max-width:68ch;margin:0;color:var(--sg-muted);font-size:.9rem;line-height:1.42}
.reports-dashboard,.reports-workspace,.reports-workspace-views,.reports-view-panel{min-width:0}
.reports-workspace{display:grid;gap:14px;width:100%;max-width:1160px;margin:0 auto}
.reports-workspace-sticky{position:sticky;top:calc(64px + env(safe-area-inset-top,0px));z-index:14;display:grid;gap:8px;padding:6px 0 9px;background:linear-gradient(180deg,rgba(245,250,248,.98) 0%,rgba(245,250,248,.92) 78%,rgba(245,250,248,0) 100%);backdrop-filter:blur(12px)}
.reports-workspace-toolbar{display:flex;align-items:end;justify-content:space-between;gap:10px;padding:10px;border:1px solid rgba(203,213,225,.76);border-radius:20px;background:rgba(255,255,255,.96);box-shadow:0 8px 22px rgba(15,23,42,.07)}
.reports-range-control{display:grid;gap:3px;min-width:0}.reports-range-control>span{color:var(--sg-muted);font-size:.66rem;font-weight:950;letter-spacing:.06em;text-transform:uppercase}.reports-range-control select{min-height:38px;max-width:170px;border:0;border-radius:12px;background:#F1F5F9;color:var(--sg-ink);padding:0 30px 0 10px;font-weight:900}
.reports-toolbar-actions{display:flex;align-items:center;justify-content:flex-end;gap:7px}.reports-toolbar-button{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:38px;border:1px solid var(--sg-line);border-radius:13px;background:#fff;color:#334155;padding:0 11px;font-size:.79rem;font-weight:950;white-space:nowrap}.reports-toolbar-button-primary{border-color:var(--sg-brand);background:var(--sg-brand);color:#fff;box-shadow:0 7px 16px rgba(54,171,156,.2)}.reports-filter-count{display:grid;place-items:center;min-width:20px;height:20px;border-radius:999px;background:var(--sg-warm);color:#9A4D1C;font-size:.68rem}.reports-toolbar-button:focus-visible,.reports-view-tab:focus-visible{outline:3px solid rgba(54,171,156,.35);outline-offset:2px}
.reports-view-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;padding:4px;border:1px solid rgba(203,213,225,.76);border-radius:18px;background:rgba(241,245,249,.94)}
.reports-view-tab{min-width:0;min-height:40px;border:0;border-radius:14px;background:transparent;color:#64748B;padding:0 8px;font-size:.8rem;font-weight:950}.reports-view-tab[aria-selected="true"]{background:#fff;color:var(--sg-brand-dark);box-shadow:0 4px 12px rgba(15,23,42,.08),inset 0 0 0 1px rgba(54,171,156,.12)}
.reports-workspace-views{display:grid}.reports-view-panel{display:grid;gap:14px;align-content:start}.reports-view-panel[hidden]{display:none!important}
.reports-view-intro{display:flex;align-items:end;justify-content:space-between;gap:16px;padding:0 2px}.reports-view-intro h2{margin:0;color:var(--sg-ink);font-size:1.18rem;line-height:1.1;letter-spacing:-.035em}.reports-view-intro p{max-width:58ch;margin:0;color:var(--sg-muted);font-size:.82rem;line-height:1.38;text-align:right}
.reports-prevention-slot{display:grid;min-width:0}.reports-prevention-slot:empty{display:none}.reports-prevention-slot .prevention-insights{margin:0}
.reports-workspace-layer[hidden]{display:none!important}.reports-workspace-layer{position:fixed;inset:0;z-index:82}.reports-workspace-scrim{position:absolute;inset:0;background:rgba(15,23,42,.42);backdrop-filter:blur(5px)}
.reports-workspace-sheet{position:absolute;left:50%;bottom:0;transform:translateX(-50%);width:min(560px,100%);max-height:92svh;overflow:auto;overscroll-behavior:contain;padding:12px 14px calc(20px + var(--safe-bottom));border-radius:28px 28px 0 0;background:#fff;box-shadow:0 -28px 80px rgba(15,23,42,.28)}
.reports-sheet-header{position:sticky;top:-12px;z-index:2;display:flex;align-items:flex-start;justify-content:space-between;gap:14px;margin:0 -2px 12px;padding:12px 2px 10px;background:linear-gradient(180deg,#fff 82%,rgba(255,255,255,.88) 100%)}.reports-sheet-header .mini-label{margin-bottom:4px}.reports-sheet-header h2{margin:0;color:var(--sg-ink);font-size:1.28rem;line-height:1.08;letter-spacing:-.04em}.reports-sheet-header p{max-width:60ch;margin:6px 0 0;color:var(--sg-muted);font-size:.84rem;line-height:1.4}.reports-sheet-header .icon-button{flex:0 0 auto}
.reports-filter-sheet .reports-filter-panel{margin:0;box-shadow:none}.reports-output-sheet{height:94svh;max-height:94svh}.reports-output-content{display:grid;gap:14px;min-width:0}.reports-output-content:empty::before{content:attr(data-empty-label);display:block;padding:16px;border:1px dashed var(--sg-line-strong);border-radius:18px;background:#F8FAFC;color:var(--sg-muted);font-size:.86rem;text-align:center}
@media (max-width:430px){.reports-workspace-toolbar{align-items:stretch}.reports-range-control{flex:1}.reports-range-control select{width:100%;max-width:none}.reports-toolbar-actions{align-items:stretch}.reports-toolbar-button{padding-inline:9px}.reports-view-intro{display:grid}.reports-view-intro p{text-align:left}.reports-workspace-sticky{top:calc(62px + env(safe-area-inset-top,0px))}}
@media (max-width:350px){.reports-workspace-toolbar{display:grid}.reports-toolbar-actions{display:grid;grid-template-columns:1fr 1fr}.reports-toolbar-button{width:100%}}
@media (min-width:700px){.reports-page-heading{margin-bottom:14px}.reports-workspace-sticky{top:76px}.reports-workspace-toolbar{padding:11px 12px}.reports-workspace-sheet{left:50%;top:50%;bottom:auto;transform:translate(-50%,-50%);width:min(720px,calc(100% - 48px));max-height:86svh;border-radius:28px;padding:16px 18px}.reports-output-sheet{width:min(980px,calc(100% - 48px));height:auto;max-height:88svh}.reports-sheet-header{top:-16px;margin-inline:-4px;padding-top:16px}.reports-filter-sheet .reports-filter-panel{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (min-width:980px){.reports-view-tabs{max-width:520px}.reports-workspace-sticky{grid-template-columns:minmax(0,1fr) auto;align-items:center}.reports-workspace-toolbar{grid-column:1}.reports-view-tabs{grid-column:2;grid-row:1;min-width:430px}.reports-summary-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}}
@media print{.reports-page-heading,.reports-workspace-sticky,.reports-view-panel,.reports-workspace-scrim,.reports-sheet-header{display:none!important}.reports-workspace-layer{display:none!important}body.printing-report-card .tab-panel:not(#panel-reports),body.printing-detailed-report .tab-panel:not(#panel-reports){display:none!important}body.printing-report-card #panel-reports,body.printing-detailed-report #panel-reports{display:block!important}body.printing-report-card .reports-output-layer,body.printing-detailed-report .reports-output-layer{display:block!important;position:static}body.printing-report-card .reports-output-sheet,body.printing-detailed-report .reports-output-sheet{position:static;display:block;transform:none;width:auto;height:auto;max-height:none;overflow:visible;padding:0;border-radius:0;box-shadow:none}body.printing-report-card .reports-output-content>:not(.reports-share-card){display:none!important}body.printing-detailed-report .reports-output-content>:not(.reports-detailed-print-section){display:none!important}}

/* SC-REPORT-05B — Overview Dashboard Consolidation */
:root{--report-positive:#16877B;--report-positive-soft:#DDF4EF;--report-neutral:#55738F;--report-careful:#C86745;--report-careful-soft:#FFF0E8;--report-unknown:#94A3B8;--report-grid:#E8EEF2}
.reports-overview-answer{display:grid;gap:10px}
.reports-overview-metric-strip{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));overflow:hidden;border:1px solid rgba(203,213,225,.78);border-radius:20px;background:#fff;box-shadow:var(--sg-shadow-soft)}
.reports-overview-metric{position:relative;display:grid;align-content:center;gap:3px;min-width:0;min-height:72px;padding:11px 9px;text-align:center}.reports-overview-metric+.reports-overview-metric{border-left:1px solid var(--report-grid)}.reports-overview-metric strong{color:var(--sg-ink);font-size:1.45rem;line-height:1;letter-spacing:-.045em}.reports-overview-metric span{color:var(--sg-muted);font-size:.68rem;font-weight:900;line-height:1.2}.reports-overview-metric[data-overview-metric="helped"] strong{color:var(--report-positive)}.reports-overview-metric[data-overview-metric="careful"] strong{color:var(--report-careful)}
.reports-overview-outcome{display:grid;gap:9px;padding:14px;border:1px solid rgba(203,213,225,.78);border-radius:20px;background:linear-gradient(145deg,#FFFFFF 0%,#F3FBF8 100%);box-shadow:var(--sg-shadow-soft)}.reports-overview-outcome header{display:flex;align-items:flex-end;justify-content:space-between;gap:12px}.reports-overview-outcome header .mini-label{margin-bottom:3px}.reports-overview-outcome h3{margin:0;color:var(--sg-ink);font-size:1.04rem;line-height:1.1;letter-spacing:-.03em}.reports-overview-outcome header>strong{color:var(--sg-ink);font-size:1.35rem;line-height:1}.reports-overview-outcome>p{margin:0;color:#475569;font-size:.84rem;line-height:1.38}
.reports-overview-outcome-strip{display:flex;gap:3px;width:100%;height:15px;overflow:hidden;border-radius:999px;background:var(--report-grid)}.reports-overview-outcome-segment{display:block;min-width:7px}.reports-overview-outcome-segment.is-helpful{background:var(--report-positive)}.reports-overview-outcome-segment.is-noChange{background:var(--report-neutral)}.reports-overview-outcome-segment.is-careful{background:var(--report-careful)}.reports-overview-outcome-segment.is-uncertain{background:var(--report-unknown)}
.reports-overview-outcome-legend{display:flex;flex-wrap:wrap;gap:5px 11px}.reports-overview-outcome-legend>span{display:inline-flex;align-items:center;gap:5px;color:var(--sg-muted);font-size:.68rem;font-weight:800}.reports-overview-outcome-legend i{display:block;width:8px;height:8px;border-radius:999px;background:var(--report-unknown)}.reports-overview-outcome-legend .is-helpful i{background:var(--report-positive)}.reports-overview-outcome-legend .is-noChange i{background:var(--report-neutral)}.reports-overview-outcome-legend .is-careful i{background:var(--report-careful)}.reports-overview-outcome-legend strong{color:#334155}
.prevention-overview-section{display:grid;gap:10px}.reports-overview-section{display:grid;gap:10px;padding:14px;border:1px solid rgba(203,213,225,.78);border-radius:20px;background:#fff;box-shadow:var(--sg-shadow-soft)}
.reports-overview-section-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.reports-overview-section-head .mini-label{margin-bottom:3px}.reports-overview-section-head h3{margin:0;color:var(--sg-ink);font-size:1.04rem;line-height:1.1;letter-spacing:-.03em}.reports-overview-section-head p{max-width:54ch;margin:5px 0 0;color:var(--sg-muted);font-size:.78rem;line-height:1.36}.reports-overview-link{flex:0 0 auto;min-height:32px;border:0;border-radius:10px;background:var(--sg-teal-soft);color:var(--sg-brand-dark);padding:0 9px;font-size:.72rem;font-weight:900}.reports-overview-link:focus-visible,.prevention-overview-row:focus-visible{outline:3px solid rgba(54,171,156,.35);outline-offset:2px}
.prevention-overview-list,.reports-overview-signal-list{display:grid;gap:6px}.prevention-overview-row{display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:9px;width:100%;min-height:56px;padding:8px 10px;text-align:left;border:1px solid rgba(226,232,240,.9);border-radius:14px;background:#FAFCFC;color:var(--sg-text)}.prevention-overview-row:hover{border-color:rgba(54,171,156,.38);background:#F4FBF9}.prevention-overview-row-copy{display:grid;gap:3px;min-width:0}.prevention-overview-row-copy strong{overflow:hidden;color:var(--sg-ink);font-size:.86rem;line-height:1.18;text-overflow:ellipsis;white-space:nowrap}.prevention-overview-row-copy small{color:var(--sg-brand-dark);font-size:.67rem;font-weight:900}.prevention-overview-row-count{display:grid;justify-items:end;gap:1px}.prevention-overview-row-count strong{color:var(--report-positive);font-size:.98rem;line-height:1}.prevention-overview-row-count small{color:var(--sg-muted);font-size:.62rem;font-weight:800}.prevention-overview-chevron{color:#94A3B8;font-size:1.25rem;line-height:1}
.reports-overview-careful{border-color:rgba(200,103,69,.25);background:linear-gradient(145deg,#FFFFFF,#FFF8F3)}.reports-overview-signal-row{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:52px;padding:8px 10px;border:1px solid rgba(251,146,60,.2);border-radius:14px;background:rgba(255,255,255,.88)}.reports-overview-signal-row>div{display:grid;gap:3px;min-width:0}.reports-overview-signal-row strong{overflow:hidden;color:var(--sg-ink);font-size:.85rem;text-overflow:ellipsis;white-space:nowrap}.reports-overview-signal-row span{color:var(--sg-muted);font-size:.67rem}.reports-overview-evidence{flex:0 0 auto!important;display:inline-flex;align-items:center;min-height:25px;padding:0 8px;border-radius:999px;background:var(--report-careful-soft);color:#9A4D2E!important;font-size:.65rem!important;font-weight:950!important}.reports-overview-evidence.is-repeated{background:#FDE4D8;color:#8D3E25!important}
.prevention-tomorrow-compact{border-color:rgba(245,138,72,.28);background:linear-gradient(145deg,#FFFFFF,#FFF8F2)}.prevention-tomorrow-compact-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 11px;border:1px solid rgba(245,138,72,.19);border-radius:14px;background:#fff}.prevention-tomorrow-compact-row>div{display:grid;gap:3px;min-width:0}.prevention-tomorrow-compact-row strong{overflow:hidden;color:var(--sg-ink);font-size:.88rem;line-height:1.18;text-overflow:ellipsis;white-space:nowrap}.prevention-tomorrow-compact-row span{color:#7C5A43;font-size:.69rem;line-height:1.3}.prevention-additional-count{flex:0 0 auto;padding:5px 8px;border-radius:999px;background:var(--sg-warm);color:#995329!important;font-weight:900}.prevention-tomorrow-actions{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:7px}.prevention-tomorrow-actions .support-action{min-height:39px}.prevention-control-note{margin:0!important;color:var(--sg-muted);font-size:.69rem!important;line-height:1.35!important}
.reports-overview-about{border-top:1px solid rgba(203,213,225,.76);padding:3px 2px 0;color:var(--sg-muted)}.reports-overview-about summary{width:max-content;cursor:pointer;color:#526579;font-size:.73rem;font-weight:900}.reports-overview-about>div{display:grid;gap:4px;margin-top:8px;padding:10px 11px;border-radius:14px;background:#F8FAFC}.reports-overview-about p{margin:0;color:var(--sg-muted);font-size:.74rem;line-height:1.38}
.prevention-action-layer{position:fixed;inset:0;z-index:88}.prevention-action-scrim{position:absolute;inset:0;background:rgba(15,23,42,.42);backdrop-filter:blur(5px)}.prevention-action-sheet{position:absolute;left:50%;bottom:0;transform:translateX(-50%);width:min(560px,100%);max-height:91svh;overflow:auto;overscroll-behavior:contain;padding:15px 14px calc(20px + var(--safe-bottom));border-radius:28px 28px 0 0;background:#fff;box-shadow:0 -28px 80px rgba(15,23,42,.3)}.prevention-action-sheet-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;margin-bottom:9px}.prevention-action-sheet-head .mini-label{margin-bottom:4px}.prevention-action-sheet-head h3{margin:0;color:var(--sg-ink);font-size:1.24rem;line-height:1.1;letter-spacing:-.04em}.prevention-action-sheet>.prevention-evidence{margin:0;color:var(--sg-text);font-size:.84rem;line-height:1.42}.prevention-action-grid{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin-top:13px}.prevention-action-grid .support-action{width:100%;min-height:42px}.prevention-action-links{display:flex;flex-wrap:wrap;gap:5px 13px;margin-top:10px;padding-top:9px;border-top:1px solid var(--sg-line)}.prevention-action-links .text-button{min-height:30px;padding:0;border:0;background:transparent;color:var(--sg-brand-dark);font-size:.73rem;font-weight:850;text-decoration:underline;text-underline-offset:3px}.prevention-template-picker.prevention-action-sheet{border:0;border-radius:28px 28px 0 0;background:#fff}.prevention-template-picker.prevention-action-sheet>.support-action{width:100%}
@media (max-width:420px){.reports-overview-section-head{display:grid}.reports-overview-link{justify-self:start}.prevention-tomorrow-compact-row{display:grid}.prevention-additional-count{justify-self:start}.prevention-action-grid{grid-template-columns:1fr}}
@media (min-width:720px){.reports-overview-answer{grid-template-columns:minmax(250px,.42fr) minmax(0,.58fr);align-items:stretch}.reports-overview-metric-strip{height:100%}.prevention-overview-section{grid-template-columns:repeat(2,minmax(0,1fr));align-items:start}.prevention-tomorrow-compact{grid-column:1 / -1}.prevention-action-sheet{left:50%;top:50%;bottom:auto;transform:translate(-50%,-50%);width:min(680px,calc(100% - 48px));max-height:86svh;border-radius:28px}.prevention-template-picker.prevention-action-sheet{border-radius:28px}}
@media print{.prevention-action-layer,.reports-overview-about{display:none!important}.reports-overview-metric-strip,.reports-overview-outcome,.reports-overview-section{box-shadow:none;break-inside:avoid}}
/* SC-REPORT-05C — branded, accessible, offline visual chart system. */
:root{
  --report-positive:#147D70;--report-positive-soft:#BFE8DF;--report-partial:#4FAF9B;
  --report-neutral:#58738E;--report-careful:#B66A16;--report-worse:#A84F3D;
  --report-unknown:#718096;--report-grid:#DDE5EC;--report-surface:#fff;
}
.report-visual-grid{display:grid;gap:14px;grid-template-columns:minmax(0,1fr)}
.report-visual-card{min-width:0;padding:16px;border:1px solid rgba(88,115,142,.18);border-radius:22px;background:linear-gradient(145deg,var(--report-surface),#F3FBF8);box-shadow:0 9px 24px rgba(15,23,42,.055)}
.report-visual-card header{display:flex;align-items:center;justify-content:space-between;gap:10px}.report-visual-card h3{margin:0;color:var(--sg-ink);font-size:1rem}.report-visual-summary{margin:6px 0 14px;color:var(--sg-muted);font-size:.8rem;line-height:1.4}
.report-visual-brand{color:var(--sg-brand-dark);font-size:.68rem;font-weight:950;letter-spacing:.08em;text-transform:uppercase}
.report-composition{display:flex;overflow:hidden;width:100%;height:22px;border-radius:999px;background:#EDF2F5}.report-segment{display:block;min-width:0;background:var(--segment)}
.pattern-diagonal{background-color:var(--segment)!important;background-image:repeating-linear-gradient(135deg,rgba(255,255,255,.28) 0 3px,transparent 3px 7px)!important}.pattern-dots{background-color:var(--segment)!important;background-image:radial-gradient(rgba(255,255,255,.48) 1px,transparent 1.5px)!important;background-size:6px 6px!important}.pattern-crosshatch{background-color:var(--segment)!important;background-image:repeating-linear-gradient(45deg,rgba(255,255,255,.28) 0 2px,transparent 2px 6px),repeating-linear-gradient(-45deg,rgba(255,255,255,.18) 0 2px,transparent 2px 6px)!important}
.report-visual-legend{display:grid;gap:7px;margin:12px 0 0;padding:0;list-style:none}.report-visual-legend li{display:grid;grid-template-columns:12px minmax(0,1fr) auto;gap:8px;align-items:center;color:var(--sg-text);font-size:.78rem}.report-visual-legend i{width:12px;height:12px;border-radius:4px;background:var(--segment)}.report-visual-legend strong{font-variant-numeric:tabular-nums}
.report-ranked-bars{display:grid;gap:12px}.report-ranked-row{display:grid;gap:5px}.report-ranked-row>div:first-child{display:flex;justify-content:space-between;gap:8px;font-size:.8rem}.report-ranked-row strong{font-variant-numeric:tabular-nums}.report-ranked-row em{justify-self:start;padding:3px 7px;border-radius:999px;background:#fff;color:var(--sg-muted);font-size:.66rem;font-style:normal;font-weight:900}.report-bar-track{height:11px;overflow:hidden;border-radius:999px;background:#E9EFF3}.report-bar-track span{display:block;height:100%;border-radius:inherit;background:var(--segment)}
.report-empty-state,.report-early-state,.report-spread-state{display:grid;gap:5px;margin:0;padding:14px;border:1px dashed rgba(88,115,142,.32);border-radius:16px;background:rgba(255,255,255,.72);color:var(--sg-muted);font-size:.82rem;line-height:1.4}.report-empty-state span{font-size:1.4rem;color:var(--sg-brand)}
.report-trend-svg{display:block;width:100%;height:auto;max-height:220px;overflow:visible}.report-trend-svg path{fill:none;stroke-width:4;stroke-linecap:round;stroke-linejoin:round}.trend-helpful{stroke:var(--report-positive)}.trend-careful{stroke:var(--report-worse)}.trend-helpful-dot{fill:var(--report-positive);stroke:#fff;stroke-width:2}.trend-careful-dot{fill:var(--report-worse);stroke:#fff;stroke-width:2}.report-trend-svg text{fill:var(--sg-muted);font-size:11px}.report-trend-svg .trend-value{fill:var(--report-positive);font-weight:900}.report-trend-key{display:flex;flex-wrap:wrap;gap:12px;margin-top:4px;color:var(--sg-muted);font-size:.72rem;font-weight:850}.report-trend-key span{display:flex;align-items:center;gap:5px}.helpful-dot{width:9px;height:9px;border-radius:50%;background:var(--report-positive)}.careful-square{width:9px;height:9px;background:var(--report-worse)}
@media(min-width:760px){.report-visual-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.report-visual-card[data-report-visual="outcome-trend"]{grid-column:1/-1}}
@media(max-width:360px){.report-visual-card{padding:13px}.report-visual-legend li{grid-template-columns:10px minmax(0,1fr) auto;gap:6px;font-size:.73rem}}
@media(prefers-reduced-motion:reduce){.report-visual-card *{animation:none!important;transition:none!important}}
@media print{.report-visual-card{break-inside:avoid;box-shadow:none}.report-visual-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* SC-REPORT-05D — structured Patterns workspace with progressive disclosure. */
.report-patterns-workspace{display:grid;gap:12px}.report-patterns-grid{display:grid;gap:11px}
.report-pattern-panel{min-width:0;border:1px solid rgba(88,115,142,.2);border-radius:20px;background:#fff;box-shadow:0 7px 20px rgba(15,23,42,.045);overflow:hidden}
.report-pattern-panel>summary{display:grid;grid-template-columns:minmax(0,1fr) 28px;gap:10px;align-items:center;min-height:62px;padding:12px 14px;cursor:pointer;list-style:none;color:var(--sg-ink)}.report-pattern-panel>summary::-webkit-details-marker{display:none}.report-pattern-panel>summary span{display:grid;gap:3px}.report-pattern-panel>summary strong{font-size:.92rem;line-height:1.2}.report-pattern-panel>summary small{color:var(--sg-muted);font-size:.72rem;font-weight:780;line-height:1.3}.report-pattern-panel>summary i{display:grid;place-items:center;width:28px;height:28px;border-radius:10px;background:#EEF8F5;color:var(--sg-brand-dark)}.report-pattern-panel>summary i::before{content:"+";font-style:normal;font-size:1.1rem;font-weight:900}.report-pattern-panel[open]>summary i::before{content:"−"}.report-pattern-panel[open]>summary{border-bottom:1px solid rgba(88,115,142,.14);background:linear-gradient(145deg,#fff,#F3FBF8)}
.report-pattern-panel-body{padding:12px}.report-pattern-panel-body>.report-visual-card{padding:2px;border:0;border-radius:0;background:transparent;box-shadow:none}.report-pattern-panel-body>.report-visual-card+.report-visual-card{margin-top:16px;padding-top:16px;border-top:1px solid var(--report-grid)}
.report-pattern-notices{display:grid;gap:9px;margin:0;padding:0;list-style:none}.report-pattern-notices li{display:grid;grid-template-columns:24px minmax(0,1fr);gap:9px;padding:10px;border-radius:15px;background:#F7FAFA}.report-pattern-notices li>span{display:grid;place-items:center;width:24px;height:24px;border-radius:8px;background:var(--report-positive);color:#fff;font-size:.72rem;font-weight:950}.report-pattern-notices strong{color:var(--sg-ink);font-size:.82rem}.report-pattern-notices p{margin:3px 0 0;color:var(--sg-muted);font-size:.78rem;line-height:1.4}
.report-pattern-support-actions{display:flex;flex-wrap:wrap;gap:7px;margin-top:12px}.report-pattern-support-actions button{min-height:34px;padding:7px 10px;border:1px solid rgba(20,125,112,.24);border-radius:11px;background:#F0FAF7;color:var(--sg-brand-dark);font-size:.72rem;font-weight:900}.report-pattern-interpretation,.report-pattern-empty{margin:10px 0 0;color:var(--sg-muted);font-size:.78rem;line-height:1.4}
.report-pattern-panel-outcomes,.report-pattern-panel-planned{grid-column:1/-1}
@media(min-width:760px){.report-patterns-grid{grid-template-columns:repeat(2,minmax(0,1fr));align-items:start}.report-pattern-panel>summary{min-height:68px}.report-pattern-panel[open] .report-pattern-panel-body{display:block}}
@media(max-width:759px){.report-pattern-panel:not([open]) .report-pattern-panel-body{display:none}}
@media print{.report-patterns-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.report-pattern-panel{break-inside:avoid;box-shadow:none}.report-pattern-panel>.report-pattern-panel-body{display:block!important}.report-pattern-panel>summary i{display:none}}

/* SC-CUSTOM-01 — real custom support library foundation. */
.activity-card.is-custom-support{border-color:rgba(54,171,156,.38);background:linear-gradient(145deg,#fff,#F2FBF8)}
.custom-support-panel{width:min(760px,100%);max-height:94svh}
.custom-support-body{padding-bottom:calc(24px + var(--safe-bottom))}
.custom-support-form{display:grid;gap:15px}
.custom-support-field{display:grid;gap:6px;color:var(--sg-ink);font-size:.84rem;font-weight:850}
.custom-support-field>span,.custom-support-fieldset>legend{font-weight:950}
.custom-support-field input[type="text"],.custom-support-field textarea,.custom-support-field select{width:100%;min-height:44px;border:1px solid var(--sg-line);border-radius:13px;background:#fff;color:var(--sg-ink);padding:10px 12px;font:inherit;font-weight:650;line-height:1.4}
.custom-support-field textarea{resize:vertical;min-height:92px}
.custom-support-field small,.custom-support-fieldset p{margin:0;color:var(--sg-muted);font-size:.73rem;font-weight:650;line-height:1.42}
.custom-support-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.custom-support-fieldset{min-width:0;margin:0;padding:12px;border:1px solid rgba(88,115,142,.24);border-radius:16px;background:#F8FBFA}
.custom-support-fieldset>legend{padding:0 5px;color:var(--sg-ink);font-size:.84rem}
.custom-support-check-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px 12px}
.custom-support-fieldset.compact{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px 12px}
.custom-support-fieldset .checkbox-row{min-height:38px;align-items:center;margin:0;padding:6px 7px;border-radius:10px;background:#fff}
.custom-support-fieldset .checkbox-row input{width:19px;height:19px;flex:0 0 auto}
.custom-support-no-caution{margin-top:10px!important}
.custom-support-actions{position:sticky;bottom:0;display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap;padding:12px 0 2px;background:linear-gradient(180deg,rgba(255,255,255,0),#fff 22%)}
.custom-support-actions .danger{margin-right:auto;color:#9B3D32}
.custom-support-validation{padding:11px 12px;border:1px solid rgba(168,79,61,.35);border-radius:14px;background:#FFF5F2;color:#7A342B;font-size:.8rem;line-height:1.4}
.custom-support-validation ul{margin:6px 0 0;padding-left:20px}
.custom-support-form :focus-visible{outline:3px solid rgba(54,171,156,.34);outline-offset:2px}
@media(max-width:560px){.section-heading.split-heading{align-items:start}.custom-support-grid,.custom-support-check-grid,.custom-support-fieldset.compact{grid-template-columns:1fr}.custom-support-actions{display:grid;grid-template-columns:1fr 1fr}.custom-support-actions .btn{width:100%}.custom-support-actions .danger{grid-column:1/-1;order:3;margin:0}}
@media(prefers-reduced-motion:reduce){.custom-support-sheet *{animation:none!important;transition:none!important}}

/* SC-CUSTOM-02 — three Free custom supports + Apps Pro boundary */
.library-custom-support-buttons{display:flex;align-items:center;justify-content:flex-end;gap:7px;flex-wrap:wrap}
.custom-support-limit-status{display:inline-flex;align-items:center;min-height:25px;padding:4px 9px;border:1px solid rgba(88,115,142,.22);border-radius:999px;background:#F7FAF9;color:var(--sg-muted);font-size:.7rem;font-weight:850;line-height:1.25;text-align:center}
.custom-support-limit-status.is-pro{border-color:rgba(54,171,156,.38);background:#EEF9F6;color:#176C61}
.custom-support-limit-status.is-over-limit{border-color:rgba(180,119,45,.35);background:#FFF8E9;color:#7B5722}
.apps-pro-boundary-panel{width:min(620px,100%);max-height:92svh}
.apps-pro-boundary-body{padding-bottom:calc(24px + var(--safe-bottom))}
.apps-pro-boundary-card{display:grid;gap:14px;padding:18px;border:1px solid rgba(54,171,156,.28);border-radius:20px;background:linear-gradient(145deg,#fff,#F1FAF7)}
.apps-pro-boundary-card.is-over-limit{border-color:rgba(180,119,45,.34);background:linear-gradient(145deg,#fff,#FFF8E9)}
.apps-pro-boundary-card h3,.apps-pro-boundary-card p{margin:0}
.apps-pro-boundary-card h3{font-size:1.12rem;line-height:1.28}
.apps-pro-boundary-card p{color:var(--sg-muted);font-size:.84rem;font-weight:650;line-height:1.5}
.custom-support-limit-summary{display:grid;gap:4px;padding:12px 13px;border-radius:14px;background:rgba(255,255,255,.88);box-shadow:inset 0 0 0 1px rgba(88,115,142,.16)}
.custom-support-limit-summary strong{font-size:.9rem}
.custom-support-limit-summary span{color:var(--sg-muted);font-size:.76rem;font-weight:650;line-height:1.4}
.apps-pro-boundary-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.apps-pro-boundary-note{padding-top:2px;font-size:.73rem!important}
.archived-custom-support-list{display:grid;gap:10px}
.archived-custom-support-row{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:13px;border:1px solid rgba(88,115,142,.2);border-radius:15px;background:#F8FBFA}
.archived-custom-support-row>div{min-width:0}
.archived-custom-support-row strong{display:block;overflow-wrap:anywhere}
.archived-custom-support-row p{margin:4px 0 0;color:var(--sg-muted);font-size:.76rem;font-weight:650;line-height:1.42;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.apps-pro-feature-card ul{margin:10px 0 0;padding-left:20px;color:var(--sg-muted);font-size:.8rem;font-weight:650;line-height:1.5}
@media(max-width:560px){
  .library-custom-support-buttons{justify-content:flex-start}
  .apps-pro-boundary-actions{display:grid;grid-template-columns:1fr}
  .apps-pro-boundary-actions .btn{width:100%}
  .archived-custom-support-row{align-items:flex-start;flex-direction:column}
  .archived-custom-support-row .btn{width:100%}
}
@media(prefers-reduced-motion:reduce){.apps-pro-boundary-sheet *{animation:none!important;transition:none!important}}

/* SC-REPORT-05E — manual historical support logging. */
.manual-support-log-panel{width:min(760px,100%);max-height:94svh}.manual-support-log-body{padding-bottom:calc(24px + var(--safe-bottom))}.manual-support-log-form{display:grid;gap:15px}.manual-log-field{display:grid;gap:6px;color:var(--sg-ink);font-size:.84rem;font-weight:850}.manual-log-field>span,.manual-log-fieldset>legend{font-weight:950}.manual-log-field input,.manual-log-field select,.manual-log-field textarea,.manual-log-search input{width:100%;min-height:44px;border:1px solid var(--sg-line);border-radius:13px;background:#fff;color:var(--sg-ink);padding:10px 12px;font:inherit;font-weight:650;line-height:1.4}.manual-log-field textarea{resize:vertical;min-height:88px}.manual-log-field small,.manual-log-fieldset small{color:var(--sg-muted);font-size:.72rem;font-weight:650;line-height:1.42}.manual-log-grid,.manual-log-optional-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.manual-log-fieldset{min-width:0;margin:0;padding:12px;border:1px solid rgba(88,115,142,.24);border-radius:16px;background:#F8FBFA}.manual-log-fieldset>legend{padding:0 5px;color:var(--sg-ink);font-size:.84rem}.manual-log-choice-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.manual-log-choice{display:flex;align-items:center;gap:8px;min-height:42px;padding:8px 10px;border:1px solid rgba(88,115,142,.16);border-radius:12px;background:#fff;color:var(--sg-ink);font-size:.78rem;font-weight:800}.manual-log-choice input{width:19px;height:19px;flex:0 0 auto}.manual-log-usage{display:grid;gap:8px}.manual-log-support-picker{display:grid;gap:10px;padding:13px;border:1px solid rgba(54,171,156,.26);border-radius:18px;background:linear-gradient(145deg,#fff,#F3FBF8)}.manual-log-section-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.manual-log-section-heading h3,.manual-log-section-heading p{margin:0}.manual-log-section-heading h3{font-size:1rem;line-height:1.28}.manual-log-search{display:grid;gap:6px;color:var(--sg-ink);font-size:.78rem;font-weight:850}.manual-log-support-results{display:grid;gap:7px;max-height:290px;overflow:auto;padding-right:2px}.manual-log-support-option{display:grid;gap:3px;width:100%;padding:11px 12px;border:1px solid rgba(88,115,142,.18);border-radius:14px;background:#fff;color:var(--sg-ink);text-align:left}.manual-log-support-option:hover,.manual-log-support-option:focus-visible{border-color:rgba(54,171,156,.5);background:#F7FCFA}.manual-log-support-option strong{font-size:.84rem}.manual-log-support-option span{color:var(--sg-brand-dark);font-size:.69rem;font-weight:900;text-transform:uppercase;letter-spacing:.04em}.manual-log-support-option small{display:-webkit-box;overflow:hidden;color:var(--sg-muted);font-size:.73rem;font-weight:650;line-height:1.38;-webkit-box-orient:vertical;-webkit-line-clamp:2}.manual-log-selected-support{display:grid;gap:4px;padding:13px;border-radius:15px;background:#fff;box-shadow:inset 0 0 0 1px rgba(54,171,156,.22)}.manual-log-selected-support>span{color:var(--sg-brand-dark);font-size:.68rem;font-weight:950;text-transform:uppercase;letter-spacing:.05em}.manual-log-selected-support strong{font-size:1rem}.manual-log-selected-support p{margin:0;color:var(--sg-muted);font-size:.78rem;font-weight:650;line-height:1.45}.manual-log-no-results{margin:0;padding:14px;border-radius:13px;background:#fff;color:var(--sg-muted);font-size:.78rem;font-weight:650;line-height:1.45}.manual-log-create-custom{justify-self:start}.manual-log-optional{border:1px solid rgba(88,115,142,.2);border-radius:16px;background:#fff;overflow:hidden}.manual-log-optional>summary{padding:12px 14px;cursor:pointer;color:var(--sg-ink);font-size:.82rem;font-weight:950}.manual-log-optional[open]>summary{border-bottom:1px solid rgba(88,115,142,.14);background:#F8FBFA}.manual-log-optional>div,.manual-log-optional>.manual-log-field{margin:12px}.manual-log-actions{position:sticky;bottom:0;display:flex;align-items:center;justify-content:flex-end;gap:8px;padding:12px 0 2px;background:linear-gradient(180deg,rgba(255,255,255,0),#fff 22%)}.manual-log-validation{padding:11px 12px;border:1px solid rgba(168,79,61,.35);border-radius:14px;background:#FFF5F2;color:#7A342B;font-size:.8rem;line-height:1.4}.manual-log-validation ul{margin:6px 0 0;padding-left:20px}.manual-log-success{display:grid;justify-items:center;gap:10px;padding:24px 16px;text-align:center}.manual-log-success-mark{display:grid;place-items:center;width:54px;height:54px;border-radius:18px;background:#EAF8F4;color:var(--sg-brand-dark);font-size:1.5rem;font-weight:950}.manual-log-success h3,.manual-log-success p{margin:0}.manual-log-success p{max-width:470px;color:var(--sg-muted);font-size:.84rem;font-weight:650;line-height:1.5}.reports-view-intro-with-action{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.reports-view-intro-with-action>div{min-width:0}.reports-history-entry-context{margin:6px 0 0;color:var(--sg-muted);font-size:.7rem;font-weight:700}.manual-support-log-form :focus-visible,.manual-log-success :focus-visible{outline:3px solid rgba(54,171,156,.34);outline-offset:2px}
@media(max-width:620px){.manual-log-grid,.manual-log-optional-grid,.manual-log-choice-grid{grid-template-columns:1fr}.manual-log-actions{display:grid;grid-template-columns:1fr 1fr}.manual-log-actions .btn{width:100%}.reports-view-intro-with-action{align-items:stretch;flex-direction:column}.reports-view-intro-with-action .btn{align-self:flex-start}.reports-toolbar-actions{gap:6px}.reports-toolbar-button{padding-inline:9px}}
@media(max-width:360px){.manual-log-actions{grid-template-columns:1fr}.manual-log-section-heading{flex-direction:column}.reports-toolbar-actions{display:grid;grid-template-columns:1fr 1fr}.reports-toolbar-actions .reports-toolbar-button-primary{grid-column:1/-1}}
@media(prefers-reduced-motion:reduce){.manual-support-log-sheet *{animation:none!important;transition:none!important}}
.reports-detailed-history-table [role="row"]{grid-template-columns:.72fr .62fr 1.25fr .85fr .95fr .72fr}.reports-detailed-history-with-notes [role="row"]{grid-template-columns:.62fr .55fr 1.05fr .72fr .8fr .65fr 1.15fr}

/* SC-REPORT-05F — History workspace, staged filters, and on-demand detail sheets. */
.reports-history-workspace{display:grid;gap:12px;min-width:0}.reports-history-tools{display:grid;gap:10px}.reports-history-search-field{display:grid;gap:6px;min-width:0}.reports-history-search-field>span{color:var(--sg-muted);font-size:.72rem;font-weight:900;letter-spacing:.05em;text-transform:uppercase}.reports-history-search-field input{width:100%;min-height:46px;border:1px solid rgba(88,115,142,.28);border-radius:15px;background:#fff;color:var(--sg-ink);padding:10px 13px;font:inherit;font-weight:750;box-shadow:0 6px 18px rgba(15,23,42,.035)}.reports-history-tool-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.reports-history-filter-count{display:inline-grid;place-items:center;min-width:22px;height:22px;margin-left:5px;padding-inline:6px;border-radius:999px;background:var(--sg-brand-dark);color:#fff;font-size:.68rem;font-weight:950}.reports-history-filter-chips{display:flex;gap:7px;overflow:auto;padding:1px 1px 4px;scrollbar-width:thin}.reports-history-filter-chip{display:inline-flex;align-items:center;gap:7px;flex:0 0 auto;min-height:34px;padding:6px 10px;border:1px solid rgba(54,171,156,.32);border-radius:999px;background:#F0FAF7;color:#176C61;font-size:.73rem;font-weight:900}.reports-history-filter-chip span:last-child{font-size:1rem;line-height:1}.reports-history-result-summary{display:flex;align-items:center;justify-content:space-between;gap:10px;padding-inline:2px}.reports-history-result-summary p{margin:0;color:var(--sg-muted);font-size:.76rem;font-weight:750}.reports-history-records{display:grid;gap:12px;min-width:0}.reports-history-table-head{display:none}.reports-history-date-group{display:grid;gap:7px;min-width:0}.reports-history-date-group>h3{position:sticky;top:142px;z-index:2;width:max-content;max-width:100%;margin:0;padding:4px 9px;border:1px solid rgba(88,115,142,.18);border-radius:999px;background:rgba(248,251,250,.96);color:var(--sg-muted);font-size:.7rem;font-weight:950;letter-spacing:.035em;text-transform:uppercase;backdrop-filter:blur(8px)}.reports-history-date-group>[role="rowgroup"]{display:grid;gap:8px}.reports-history-record-row{position:relative;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:7px 12px;width:100%;min-width:0;padding:12px 38px 12px 13px;border:1px solid rgba(88,115,142,.18);border-radius:18px;background:linear-gradient(145deg,#fff,#F8FBFA);color:var(--sg-ink);text-align:left;box-shadow:0 6px 18px rgba(15,23,42,.04)}.reports-history-record-row:hover,.reports-history-record-row:focus-visible{border-color:rgba(54,171,156,.5);background:#F7FCFA}.reports-history-cell{min-width:0;font-size:.77rem;font-weight:750;line-height:1.35}.reports-history-cell-date{grid-column:2;grid-row:1 / span 2;align-self:start;text-align:right;color:var(--sg-muted)}.reports-history-cell-date strong{display:block;font-size:.71rem}.reports-history-cell-date small{display:block;margin-top:2px;font-size:.67rem}.reports-history-cell-support{grid-column:1;grid-row:1}.reports-history-cell-support strong{display:block;overflow-wrap:anywhere;font-size:.92rem;letter-spacing:-.015em}.reports-history-cell-support small{display:block;min-height:.9em;margin-top:3px;color:var(--sg-muted);font-size:.68rem;font-weight:700}.reports-history-cell-moment{grid-column:1;grid-row:2;color:var(--sg-muted)}.reports-history-cell-outcome{grid-column:1;grid-row:3}.reports-history-cell-outcome>span{display:inline-flex;align-items:center;min-height:27px;padding:4px 8px;border:1px solid rgba(88,115,142,.24);border-radius:999px;background:#fff;color:#475569;font-size:.7rem;font-weight:950}.reports-history-cell-outcome>[data-outcome="helped"],.reports-history-detail-outcome[data-outcome="helped"]{border-color:rgba(20,125,112,.28);background:#EAF8F4;color:#176C61}.reports-history-cell-outcome>[data-outcome="helpedALittle"],.reports-history-detail-outcome[data-outcome="helpedALittle"]{border-color:rgba(54,171,156,.28);background:#F0FAF7;color:#27766C}.reports-history-cell-outcome>[data-outcome="madeWorse"],.reports-history-detail-outcome[data-outcome="madeWorse"]{border-color:rgba(168,79,61,.28);background:#FFF3EF;color:#8A3D32}.reports-history-cell-use{grid-column:2;grid-row:3;align-self:center;text-align:right;color:var(--sg-muted);font-size:.7rem}.reports-history-cell-source{grid-column:1 / -1;grid-row:4;display:flex;align-items:center;gap:6px;color:var(--sg-muted);font-size:.68rem}.reports-history-cell-source small{padding:2px 6px;border-radius:999px;background:#EEF2F6;font-size:.62rem;font-weight:900}.reports-history-row-chevron{position:absolute;right:13px;top:50%;transform:translateY(-50%);color:#78909C;font-size:1.35rem;font-weight:500}.reports-history-load-more{justify-self:center;display:inline-grid;gap:1px;min-width:min(240px,100%)}.reports-history-load-more span{font-size:.67rem;font-weight:700;opacity:.72}.reports-history-local-note{margin:0;padding:10px 12px;border-radius:14px;background:#F7FAF9;color:var(--sg-muted);font-size:.72rem;font-weight:650;line-height:1.45}.reports-history-empty-state{display:grid;justify-items:center;gap:9px;padding:28px 18px;border:1px dashed rgba(88,115,142,.35);border-radius:22px;background:linear-gradient(145deg,#fff,#F7FAF9);text-align:center}.reports-history-empty-state>div{display:grid;place-items:center;width:46px;height:46px;border-radius:16px;background:#EAF8F4;color:var(--sg-brand-dark);font-size:1.25rem;font-weight:950}.reports-history-empty-state strong{font-size:1rem}.reports-history-empty-state p{max-width:440px;margin:0;color:var(--sg-muted);font-size:.8rem;font-weight:650;line-height:1.5}
.reports-history-filter-sheet{width:min(640px,100%)}.reports-history-filter-form{display:grid;gap:11px}.reports-history-filter-form label{display:grid;gap:6px}.reports-history-filter-form label>span{color:var(--sg-ink);font-size:.78rem;font-weight:950}.reports-history-filter-form select{width:100%;min-height:44px;border:1px solid var(--sg-line);border-radius:13px;background:#fff;color:var(--sg-ink);padding:9px 11px;font:inherit;font-weight:750}.reports-history-filter-form small{color:var(--sg-muted);font-size:.69rem;font-weight:650;line-height:1.4}.reports-history-filter-actions{position:sticky;bottom:calc(-20px - var(--safe-bottom));display:flex;align-items:center;justify-content:flex-end;gap:8px;margin-top:3px;padding:14px 0 calc(20px + var(--safe-bottom));background:linear-gradient(180deg,rgba(255,255,255,0),#fff 25%)}
.reports-history-detail-sheet{width:min(660px,100%)}.reports-history-detail-body{display:grid;gap:14px}.reports-history-detail-outcome{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:13px 14px;border:1px solid rgba(88,115,142,.2);border-radius:16px;background:#F8FBFA}.reports-history-detail-outcome span{color:var(--sg-muted);font-size:.72rem;font-weight:900;text-transform:uppercase;letter-spacing:.04em}.reports-history-detail-outcome strong{font-size:.94rem}.reports-history-detail-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:0}.reports-history-detail-grid>div{min-width:0;padding:10px 11px;border:1px solid rgba(88,115,142,.16);border-radius:13px;background:#fff}.reports-history-detail-grid dt{color:var(--sg-muted);font-size:.66rem;font-weight:900;letter-spacing:.045em;text-transform:uppercase}.reports-history-detail-grid dd{margin:4px 0 0;overflow-wrap:anywhere;color:var(--sg-ink);font-size:.79rem;font-weight:800;line-height:1.4}.reports-history-private-detail{display:grid;gap:7px;padding:12px 13px;border:1px solid rgba(180,119,45,.24);border-radius:16px;background:#FFF9EF}.reports-history-private-detail h3,.reports-history-private-detail p{margin:0}.reports-history-private-detail h3{font-size:.9rem}.reports-history-private-detail p{white-space:pre-wrap;overflow-wrap:anywhere;color:#72562E;font-size:.77rem;font-weight:650;line-height:1.5}.reports-history-detail-actions{position:sticky;bottom:calc(-20px - var(--safe-bottom));display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:14px 0 calc(20px + var(--safe-bottom));background:linear-gradient(180deg,rgba(255,255,255,0),#fff 24%)}.reports-history-delete-button{margin-left:auto;color:#923F35}.reports-history-link-note{margin:-8px 0 0;color:var(--sg-muted);font-size:.7rem;font-weight:650;line-height:1.45}.reports-history-detail-edit{display:grid;gap:11px;padding:12px;border:1px solid rgba(54,171,156,.24);border-radius:17px;background:#F5FBF9}.reports-history-detail-edit label{display:grid;gap:6px}.reports-history-detail-edit label>span{font-size:.76rem;font-weight:950}.reports-history-detail-edit select,.reports-history-detail-edit textarea{width:100%;border:1px solid var(--sg-line);border-radius:13px;background:#fff;color:var(--sg-ink);padding:10px 11px;font:inherit;font-weight:700}.reports-history-detail-edit textarea{min-height:94px;resize:vertical}.reports-history-detail-edit p{margin:0;color:var(--sg-muted);font-size:.7rem;font-weight:650;line-height:1.45}.reports-history-detail-edit>div{display:flex;justify-content:flex-end;gap:8px;flex-wrap:wrap}
@media(max-width:520px){.reports-history-tools{grid-template-columns:1fr}.reports-history-tool-actions{display:grid;grid-template-columns:1fr 1fr}.reports-history-tool-actions .btn{width:100%}.reports-history-result-summary{align-items:flex-start;flex-direction:column;gap:2px}.reports-history-detail-grid{grid-template-columns:1fr}.reports-history-detail-actions,.reports-history-filter-actions{display:grid;grid-template-columns:1fr 1fr}.reports-history-detail-actions .btn,.reports-history-filter-actions .btn{width:100%}.reports-history-delete-button{grid-column:1/-1;margin:0}.reports-history-detail-edit>div{display:grid;grid-template-columns:1fr 1fr}.reports-history-detail-edit .btn{width:100%}}
@media(min-width:760px){.reports-history-tools{grid-template-columns:minmax(280px,1fr) auto;align-items:end}.reports-history-tool-actions{justify-content:flex-end}.reports-history-filter-form{grid-template-columns:repeat(2,minmax(0,1fr))}.reports-history-filter-actions{grid-column:1/-1}}
@media(min-width:960px){.reports-history-table-head{display:grid;grid-template-columns:.8fr 1.6fr 1fr 1fr .9fr .8fr;gap:12px;padding:0 14px 8px;border-bottom:1px solid rgba(88,115,142,.16);color:var(--sg-muted);font-size:.66rem;font-weight:950;letter-spacing:.05em;text-transform:uppercase}.reports-history-date-group{display:contents}.reports-history-date-group>h3{display:none}.reports-history-date-group>[role="rowgroup"]{display:contents}.reports-history-record-row{grid-template-columns:.8fr 1.6fr 1fr 1fr .9fr .8fr;gap:12px;align-items:center;padding:11px 34px 11px 14px;border-radius:13px;box-shadow:none}.reports-history-cell-date,.reports-history-cell-support,.reports-history-cell-moment,.reports-history-cell-outcome,.reports-history-cell-use,.reports-history-cell-source{grid-column:auto;grid-row:auto;text-align:left}.reports-history-cell-date strong{font-size:.75rem}.reports-history-cell-support strong{font-size:.82rem}.reports-history-cell-source{display:grid;gap:2px}.reports-history-row-chevron{right:12px}.reports-history-detail-layer .reports-workspace-scrim{background:rgba(15,23,42,.28)}.reports-history-detail-sheet{left:auto;right:0;top:0;bottom:0;transform:none;width:min(520px,48vw);max-height:none;height:100%;border-radius:26px 0 0 26px;padding:18px 20px calc(24px + var(--safe-bottom));box-shadow:-30px 0 80px rgba(15,23,42,.26)}.reports-history-detail-sheet .reports-sheet-header{top:-18px}.reports-history-detail-actions{bottom:calc(-24px - var(--safe-bottom));padding-bottom:calc(24px + var(--safe-bottom))}}
@media(prefers-reduced-motion:reduce){.reports-history-workspace *,.reports-history-filter-layer *,.reports-history-detail-layer *{scroll-behavior:auto!important;animation:none!important;transition:none!important}}
@media print{.reports-history-tool-actions,.reports-history-filter-chips,.reports-history-load-more,.reports-history-filter-layer,.reports-history-detail-layer{display:none!important}.reports-history-record-row{break-inside:avoid;box-shadow:none}}

/* SC-REPORT-05G — Share / Export Center + Visual Snapshot */
.reports-output-sheet{display:flex;flex-direction:column;overflow:hidden}
.reports-output-content{flex:1;overflow:auto;overscroll-behavior:contain;padding:2px 2px calc(8px + var(--safe-bottom));scrollbar-gutter:stable}
.reports-output-choice-intro{display:grid;gap:5px;padding:2px 2px 6px}.reports-output-choice-intro h3,.reports-output-stage-heading h3{margin:0;color:var(--sg-ink);font-size:1.1rem;line-height:1.15;letter-spacing:-.035em}.reports-output-choice-intro p,.reports-output-stage-heading p{max-width:66ch;margin:0;color:var(--sg-muted);font-size:.8rem;font-weight:650;line-height:1.45}
.reports-output-choice-grid{display:grid;gap:10px}.reports-output-choice{display:grid;grid-template-columns:48px minmax(0,1fr) auto;align-items:center;gap:12px;width:100%;min-width:0;padding:13px;border:1px solid rgba(88,115,142,.2);border-radius:20px;background:linear-gradient(145deg,#FFFFFF,#F7FBF9);color:var(--sg-ink);text-align:left;box-shadow:0 7px 20px rgba(15,23,42,.05);transition:border-color .16s ease,transform .16s ease,box-shadow .16s ease}.reports-output-choice:hover{border-color:rgba(54,171,156,.5);box-shadow:0 10px 24px rgba(15,23,42,.08);transform:translateY(-1px)}.reports-output-choice:focus-visible{outline:3px solid rgba(54,171,156,.34);outline-offset:2px}
.reports-output-choice-icon{display:grid;place-items:center;width:48px;height:48px;border-radius:16px;background:linear-gradient(145deg,#DDF4EE,#F2FBF8);color:var(--sg-brand-dark)}.reports-output-choice-icon svg{width:25px;height:25px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.reports-output-choice-copy{display:grid;gap:3px;min-width:0}.reports-output-choice-meta{display:flex;align-items:center;gap:7px;flex-wrap:wrap}.reports-output-choice-copy small,.reports-output-stage-kind{color:var(--sg-brand-dark);font-size:.64rem;font-weight:950;letter-spacing:.07em;text-transform:uppercase}.reports-output-choice-copy strong{font-size:.94rem;letter-spacing:-.02em}.reports-output-choice-copy>span:not(.reports-output-choice-meta){color:var(--sg-muted);font-size:.74rem;font-weight:650;line-height:1.42}.reports-output-choice-action{display:inline-flex;align-items:center;gap:5px;color:var(--sg-brand-dark);font-size:.7rem;font-weight:950;white-space:nowrap}.reports-output-choice.is-pro-locked{background:linear-gradient(145deg,#FFFFFF,#FAFBFC);border-color:rgba(88,115,142,.17)}.reports-output-choice.is-pro-locked .reports-output-choice-icon{background:#F1F5F9;color:#64748B}.reports-output-choice.is-pro-locked .reports-output-choice-action{color:#536574}
.reports-output-local-note{margin:2px 0 0;padding:10px 12px;border:1px dashed rgba(88,115,142,.25);border-radius:15px;background:#F8FAFC;color:var(--sg-muted);font-size:.7rem;font-weight:650;line-height:1.45}
.reports-output-stage{display:grid;gap:12px;min-width:0}.reports-output-stage-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px}.reports-output-back{display:inline-flex;align-items:center;gap:7px;min-height:36px;border:0;border-radius:12px;background:#F1F5F9;color:#475569;padding:0 10px;font-size:.73rem;font-weight:950}.reports-output-back:hover{background:#E7EEF2}.reports-output-back:focus-visible{outline:3px solid rgba(54,171,156,.34);outline-offset:2px}.reports-output-stage-heading{display:grid;grid-template-columns:48px minmax(0,1fr);align-items:center;gap:12px;padding:12px 13px;border:1px solid rgba(88,115,142,.18);border-radius:20px;background:linear-gradient(145deg,#FFFFFF,#F7FBF9)}.reports-output-stage-heading:focus{outline:none}.reports-output-stage-heading:focus-visible{outline:3px solid rgba(54,171,156,.28);outline-offset:2px}.reports-output-stage-content{display:grid;gap:12px;min-width:0}.reports-output-stage-content>.reports-share-card,.reports-output-stage-content>.reports-detailed-print-section,.reports-output-stage-content>.reports-csv-export-section{margin:0;box-shadow:none}
.reports-output-notes-control{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:12px 13px;border:1px solid rgba(180,119,45,.25);border-radius:17px;background:#FFF9EF}.reports-output-notes-control>span{display:grid;gap:3px}.reports-output-notes-control strong{color:#6F5128;font-size:.78rem}.reports-output-notes-control small{color:#856B46;font-size:.68rem;font-weight:650;line-height:1.4}.reports-output-notes-control input{flex:0 0 auto;width:22px;height:22px;accent-color:var(--sg-brand)}
.reports-visual-snapshot{display:grid;gap:11px}.reports-visual-snapshot-preview{width:min(100%,540px);justify-self:center;overflow:hidden;border:1px solid rgba(88,115,142,.2);border-radius:24px;background:#fff;box-shadow:0 18px 48px rgba(15,23,42,.14)}.reports-visual-snapshot-preview svg{display:block;width:100%;height:auto;aspect-ratio:4/5}.reports-visual-snapshot-actions{display:flex;justify-content:center;gap:8px;flex-wrap:wrap}.reports-visual-snapshot-privacy{max-width:62ch;margin:0 auto;color:var(--sg-muted);font-size:.7rem;font-weight:650;line-height:1.45;text-align:center}
@media(max-width:560px){.reports-output-choice{grid-template-columns:44px minmax(0,1fr);padding:12px}.reports-output-choice-icon{width:44px;height:44px;border-radius:14px}.reports-output-choice-action{grid-column:2;justify-self:start}.reports-output-stage-heading{grid-template-columns:44px minmax(0,1fr)}.reports-output-stage-heading .reports-output-choice-icon{width:44px;height:44px}.reports-output-notes-control{align-items:flex-start}.reports-visual-snapshot-actions{display:grid;grid-template-columns:1fr 1fr}.reports-visual-snapshot-actions .btn{width:100%}}
@media(min-width:760px){.reports-output-choice-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.reports-output-choice{grid-template-columns:50px minmax(0,1fr);align-content:start;min-height:142px}.reports-output-choice-action{grid-column:2;justify-self:start}.reports-output-stage-content>.reports-share-card,.reports-output-stage-content>.reports-detailed-print-section,.reports-output-stage-content>.reports-csv-export-section{padding:18px}}
@media(prefers-reduced-motion:reduce){.reports-output-choice,.reports-output-back,.reports-visual-snapshot *{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
@media print{
  body.printing-report-card .reports-output-content>.reports-output-stage,body.printing-detailed-report .reports-output-content>.reports-output-stage{display:block!important}
  body.printing-report-card .reports-output-stage-toolbar,body.printing-report-card .reports-output-stage-heading,body.printing-report-card .reports-output-notes-control,body.printing-detailed-report .reports-output-stage-toolbar,body.printing-detailed-report .reports-output-stage-heading,body.printing-detailed-report .reports-output-notes-control{display:none!important}
  body.printing-report-card .reports-output-stage-content>:not(.reports-share-card){display:none!important}
  body.printing-detailed-report .reports-output-stage-content>:not(.reports-detailed-print-section){display:none!important}
  body.printing-report-card .reports-output-stage-content>.reports-share-card,body.printing-detailed-report .reports-output-stage-content>.reports-detailed-print-section{display:grid!important}
}

/* SC-PRO-01 — Pro Boundary Contract + Reports Gate Wiring */
.reports-pro-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 1.35rem;
  padding: .1rem .42rem;
  border: 1px solid color-mix(in srgb, var(--brand, #147d70) 28%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--brand-soft, #e6f5f1) 72%, white);
  color: var(--ink, #233633);
  font-size: .68rem;
  font-weight: 800;
  line-height: 1.1;
  white-space: nowrap;
}

.reports-view-tab.is-pro-locked,
.reports-toolbar-button:has(.reports-pro-badge) {
  gap: .42rem;
}

.reports-pro-invitation {
  display: grid;
  gap: .55rem;
  padding: 1rem;
  border: 1px solid color-mix(in srgb, var(--brand, #147d70) 18%, var(--border, #d9e3df));
  border-radius: 1rem;
  background: linear-gradient(145deg, color-mix(in srgb, var(--brand-soft, #e6f5f1) 56%, white), white 78%);
}

.reports-pro-invitation h3,
.reports-pro-invitation p {
  margin: 0;
}

.reports-pro-invitation-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

.reports-pro-boundary-card {
  display: grid;
  gap: .8rem;
}

.apps-pro-boundary-summary {
  display: grid;
  gap: .25rem;
  padding: .8rem;
  border-radius: .85rem;
  background: color-mix(in srgb, var(--brand-soft, #e6f5f1) 55%, white);
}

.apps-pro-boundary-summary span {
  color: var(--muted, #526762);
}

.apps-pro-reports-feature-card {
  display: grid;
  gap: .75rem;
}

.apps-pro-reports-columns {
  display: grid;
  gap: .8rem;
}

.apps-pro-reports-columns > div {
  min-width: 0;
  padding: .75rem;
  border-radius: .8rem;
  background: color-mix(in srgb, var(--surface-soft, #f4f7f6) 82%, white);
}

.apps-pro-reports-columns h4 {
  margin: 0 0 .45rem;
  font-size: .9rem;
}

.apps-pro-reports-columns ul {
  margin: 0;
  padding-inline-start: 1.15rem;
}

@media (min-width: 700px) {
  .apps-pro-reports-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 420px) {
  .reports-pro-badge {
    padding-inline: .34rem;
    font-size: .62rem;
  }

  .reports-view-tab,
  .reports-toolbar-button {
    min-width: 0;
  }

  .reports-view-tab > span:first-child,
  .reports-toolbar-button > span:first-child {
    overflow-wrap: anywhere;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reports-pro-invitation,
  .reports-pro-boundary-card {
    scroll-behavior: auto;
  }
}

/* SC-PRO-01B — Unified Suite Apps Pro Upgrade Modal + App-Tailored Presentation */
body.apps-pro-modal-open{overflow:hidden}
.apps-pro-upgrade-modal{display:grid;place-items:center;padding:max(14px,env(safe-area-inset-top,0px)) 14px max(14px,env(safe-area-inset-bottom,0px));isolation:isolate}
.apps-pro-upgrade-modal[hidden]{display:none!important}
.apps-pro-modal-backdrop{background:rgba(18,31,39,.54);backdrop-filter:blur(10px) saturate(.82);-webkit-backdrop-filter:blur(10px) saturate(.82)}
.apps-pro-upgrade-modal .apps-pro-boundary-panel{position:relative;inset:auto;left:auto;bottom:auto;z-index:1;display:flex;flex-direction:column;width:min(720px,100%);max-width:100%;max-height:min(860px,calc(100svh - 28px - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px)));overflow:hidden;transform:none;padding:0;border:1px solid rgba(255,255,255,.72);border-radius:28px;background:linear-gradient(180deg,#FFFFFF 0%,#FBFDFC 100%);box-shadow:0 30px 90px rgba(15,23,42,.34),0 2px 10px rgba(15,23,42,.12)}
.apps-pro-upgrade-modal .apps-pro-boundary-panel:focus{outline:none}
.apps-pro-modal-head{position:relative;display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding:20px 20px 14px;border-bottom:1px solid rgba(88,115,142,.14);background:radial-gradient(circle at 90% 0,rgba(54,171,156,.16),transparent 40%),linear-gradient(145deg,#FFFFFF,#F2FAF7)}
.apps-pro-modal-brand{display:flex;align-items:flex-start;gap:13px;min-width:0}
.apps-pro-modal-icon{flex:0 0 auto;width:48px;height:48px;border-radius:15px;box-shadow:0 8px 22px rgba(15,23,42,.12)}
.apps-pro-modal-brand>div{min-width:0}
.apps-pro-modal-brand .mini-label{display:block;margin:1px 0 5px;color:var(--sg-brand-dark);font-size:.66rem;font-weight:950;letter-spacing:.075em;text-transform:uppercase}
.apps-pro-modal-brand h2{margin:0;color:var(--sg-ink);font-size:clamp(1.25rem,4.4vw,1.72rem);line-height:1.08;letter-spacing:-.045em}
.apps-pro-modal-brand p{max-width:58ch;margin:7px 0 0;color:var(--sg-muted);font-size:.82rem;font-weight:650;line-height:1.48}
.apps-pro-modal-close{flex:0 0 auto;background:rgba(255,255,255,.82)}
.apps-pro-upgrade-modal .attempt-status{display:block;margin:0;padding:9px 20px;border:0;border-bottom:1px solid rgba(88,115,142,.12);border-radius:0;background:#F7FAF9;color:#39524D;font-size:.74rem;font-weight:850;line-height:1.38}
.apps-pro-boundary-body{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;padding:14px 16px calc(18px + env(safe-area-inset-bottom,0px));scrollbar-gutter:stable}
.apps-pro-upgrade-content{display:grid;gap:12px;min-width:0}
.apps-pro-modal-section{display:grid;gap:11px;min-width:0;padding:15px;border:1px solid rgba(88,115,142,.17);border-radius:20px;background:#fff;box-shadow:0 7px 22px rgba(15,23,42,.045)}
.apps-pro-modal-current-app{border-color:rgba(54,171,156,.28);background:linear-gradient(145deg,#FFFFFF,#F3FBF8)}
.apps-pro-modal-suite{background:linear-gradient(145deg,#FFFFFF,#F8FAFC)}
.apps-pro-modal-section h3,.apps-pro-modal-section p{margin:0}
.apps-pro-modal-section h3{color:var(--sg-ink);font-size:1rem;line-height:1.22;letter-spacing:-.025em}
.apps-pro-modal-section>p{color:var(--sg-muted);font-size:.78rem;font-weight:650;line-height:1.48}
.apps-pro-modal-section-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.apps-pro-modal-section-head .mini-label{display:block;margin-bottom:4px;color:var(--sg-brand-dark);font-size:.61rem;font-weight:950;letter-spacing:.07em;text-transform:uppercase}
.apps-pro-modal-app-pill{display:inline-flex;align-items:center;min-height:28px;padding:0 9px;border:1px solid rgba(54,171,156,.23);border-radius:999px;background:#E9F7F3;color:var(--sg-brand-dark);font-size:.68rem;font-weight:950;white-space:nowrap}
.apps-pro-modal-benefit-list{display:grid;gap:8px;margin:0;padding:0;list-style:none}
.apps-pro-modal-benefit-list.compact{gap:7px;margin-top:8px}
.apps-pro-modal-benefit-list li{display:grid;grid-template-columns:22px minmax(0,1fr);align-items:start;gap:8px;color:#334A46;font-size:.8rem;font-weight:800;line-height:1.4}
.apps-pro-benefit-check{display:grid;place-items:center;width:21px;height:21px;border-radius:999px;background:#DDF4EE;color:#157568;font-size:.71rem;font-weight:950}
.apps-pro-modal-safety-note{display:grid;gap:3px;padding:10px 11px;border:1px solid rgba(54,171,156,.19);border-radius:14px;background:rgba(255,255,255,.78)}
.apps-pro-modal-safety-note.is-careful{border-color:rgba(180,119,45,.25);background:#FFF9EF}
.apps-pro-modal-safety-note strong{color:var(--sg-ink);font-size:.74rem}
.apps-pro-modal-safety-note span{color:var(--sg-muted);font-size:.69rem;font-weight:650;line-height:1.45}
.apps-pro-suite-app-row{display:flex;flex-wrap:wrap;gap:7px}
.apps-pro-suite-app-row span{display:inline-flex;align-items:center;min-height:29px;padding:0 10px;border:1px solid rgba(88,115,142,.16);border-radius:999px;background:#F3F6F8;color:#334155;font-size:.71rem;font-weight:950}
.apps-pro-disclosure-button{justify-self:start;min-height:36px;border:0;border-radius:12px;background:#EEF6F3;color:var(--sg-brand-dark);padding:0 11px;font-size:.73rem;font-weight:950}
.apps-pro-disclosure-button::after{content:" +"}
.apps-pro-disclosure-button[aria-expanded="true"]::after{content:" −"}
.apps-pro-disclosure-button:focus-visible,.apps-pro-modal-actions .btn:focus-visible,.apps-pro-modal-restore-form input:focus-visible,.apps-pro-plan-choice input:focus-visible{outline:3px solid rgba(54,171,156,.34);outline-offset:2px}
.apps-pro-complete-benefits{display:grid;gap:12px;padding-top:2px}
.apps-pro-complete-benefits[hidden]{display:none!important}
.apps-pro-more-sensycues-benefits>strong{color:var(--sg-ink);font-size:.74rem}
.apps-pro-suite-summary-grid{display:grid;gap:8px}
.apps-pro-suite-summary-card{display:grid;gap:3px;padding:11px;border:1px solid rgba(88,115,142,.14);border-radius:14px;background:#FAFCFD}
.apps-pro-suite-summary-card strong{color:var(--sg-ink);font-size:.78rem}
.apps-pro-suite-summary-card p{color:var(--sg-muted);font-size:.69rem;font-weight:650;line-height:1.43}
.apps-pro-modal-purchase{position:sticky;bottom:-1px;z-index:2;border-color:rgba(54,171,156,.24);background:rgba(255,255,255,.97);box-shadow:0 -12px 30px rgba(255,255,255,.94),0 8px 22px rgba(15,23,42,.06);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px)}
.apps-pro-checkout-state{padding:9px 10px;border-radius:13px;background:#F4F7F6;color:var(--sg-muted);font-size:.68rem!important;font-weight:700!important;line-height:1.43!important}
.apps-pro-checkout-state.is-paused{background:#FFF8EB;color:#76572F}
.apps-pro-modal-actions{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(0,1fr);gap:8px}
.apps-pro-modal-actions .btn{width:100%;min-height:45px}
.apps-pro-modal-actions .btn.quiet{grid-column:1/-1;min-height:38px}
.apps-pro-modal-actions .btn:disabled{opacity:.5;cursor:not-allowed;box-shadow:none}
.apps-pro-plan-choice{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:0;padding:0;border:0}
.apps-pro-plan-choice legend{grid-column:1/-1;margin-bottom:1px;color:var(--sg-ink);font-size:.73rem;font-weight:950}
.apps-pro-plan-choice label{position:relative;display:block;min-width:0}
.apps-pro-plan-choice input{position:absolute;inset:0;width:100%;height:100%;margin:0;opacity:0;cursor:pointer}
.apps-pro-plan-choice label>span{display:grid;gap:2px;padding:10px 11px;border:1px solid rgba(88,115,142,.2);border-radius:14px;background:#fff}
.apps-pro-plan-choice input:checked+span{border-color:var(--sg-brand);background:#EFF9F6;box-shadow:inset 0 0 0 1px var(--sg-brand)}
.apps-pro-plan-choice strong{color:var(--sg-ink);font-size:.76rem}
.apps-pro-plan-choice small{color:var(--sg-muted);font-size:.67rem;font-weight:700}
.apps-pro-modal-restore-form{display:grid;gap:10px;padding:12px;border:1px solid rgba(54,171,156,.22);border-radius:16px;background:#F5FBF9}
.apps-pro-modal-restore-form[hidden]{display:none!important}
.apps-pro-modal-restore-head{display:grid;gap:3px}
.apps-pro-modal-restore-head strong{color:var(--sg-ink);font-size:.8rem}
.apps-pro-modal-restore-head p{color:var(--sg-muted);font-size:.68rem;font-weight:650;line-height:1.43}
.apps-pro-modal-restore-form label{display:grid;gap:5px}
.apps-pro-modal-restore-form label>span{color:var(--sg-ink);font-size:.71rem;font-weight:900}
.apps-pro-modal-restore-form input{width:100%;min-height:43px;border:1px solid var(--sg-line);border-radius:13px;background:#fff;color:var(--sg-ink);padding:0 11px;font:inherit;font-size:.84rem}
.apps-pro-modal-restore-actions{display:grid;grid-template-columns:1fr auto;gap:8px}
.apps-pro-modal-live{min-height:1.1em;color:var(--sg-muted);font-size:.7rem!important;font-weight:750!important;line-height:1.4!important}
.apps-pro-modal-live:empty{display:none}
.apps-pro-modal-live[data-tone="error"]{color:#9A3F36}
.apps-pro-modal-live[data-tone="warning"]{color:#895D24}
.apps-pro-modal-live[data-tone="success"]{color:#116E63}
.apps-pro-suite-panel-grid{display:grid;gap:9px;margin-top:10px}
.apps-pro-suite-panel-grid>div{padding:11px;border:1px solid rgba(88,115,142,.14);border-radius:14px;background:#F8FAFC}
.apps-pro-suite-panel-grid h4{margin:0 0 4px;color:var(--sg-ink);font-size:.83rem}
.apps-pro-suite-panel-grid p{margin:0;color:var(--sg-muted);font-size:.72rem;font-weight:650;line-height:1.44}
@media(min-width:620px){.apps-pro-boundary-body{padding:16px 18px 18px}.apps-pro-upgrade-content{grid-template-columns:minmax(0,1.08fr) minmax(0,.92fr);align-items:start}.apps-pro-modal-current-app{grid-column:1}.apps-pro-modal-suite{grid-column:2}.apps-pro-modal-purchase{grid-column:1/-1}.apps-pro-suite-summary-grid,.apps-pro-suite-panel-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.apps-pro-modal-head{padding:22px 22px 16px}.apps-pro-upgrade-modal .attempt-status{padding-inline:22px}}
@media(max-width:430px){.apps-pro-upgrade-modal{padding-inline:10px}.apps-pro-upgrade-modal .apps-pro-boundary-panel{max-height:calc(100svh - 20px - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px));border-radius:23px}.apps-pro-modal-head{padding:16px 14px 12px}.apps-pro-modal-icon{width:42px;height:42px;border-radius:13px}.apps-pro-boundary-body{padding:11px 11px calc(14px + env(safe-area-inset-bottom,0px))}.apps-pro-modal-section{padding:13px;border-radius:17px}.apps-pro-modal-section-head{display:grid}.apps-pro-modal-app-pill{justify-self:start}.apps-pro-modal-actions{grid-template-columns:1fr}.apps-pro-modal-actions .btn.quiet{grid-column:auto}.apps-pro-modal-restore-actions{grid-template-columns:1fr}.apps-pro-plan-choice{grid-template-columns:1fr 1fr}}
@media(max-width:340px){.apps-pro-modal-brand{gap:9px}.apps-pro-modal-icon{width:38px;height:38px}.apps-pro-modal-head{gap:8px}.apps-pro-modal-brand h2{font-size:1.15rem}.apps-pro-modal-brand p{font-size:.75rem}.apps-pro-plan-choice{grid-template-columns:1fr}.apps-pro-plan-choice legend{grid-column:auto}}
@media(prefers-reduced-motion:reduce){.apps-pro-upgrade-modal *{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
@media(prefers-reduced-transparency:reduce){.apps-pro-modal-backdrop{background:rgba(18,31,39,.78);backdrop-filter:none;-webkit-backdrop-filter:none}.apps-pro-modal-purchase{background:#fff;backdrop-filter:none;-webkit-backdrop-filter:none}}

/* SC-REPORT-05H — responsive, accessibility, translation + print lock. */
:root{--report-lock-touch:44px}
#panel-reports,.reports-workspace,.reports-workspace *{box-sizing:border-box}
#panel-reports{min-width:0;overflow-x:clip}
.reports-workspace :where(h1,h2,h3,p,span,strong,small,button,label,summary,dt,dd,li){overflow-wrap:anywhere}
.reports-workspace :where(button,select,input,textarea){font:inherit}
.reports-toolbar-button,.reports-view-tab,.reports-overview-link,.reports-output-back,.reports-output-choice,.reports-history-record-row,.reports-sheet-header .icon-button{min-height:var(--report-lock-touch)}
.reports-toolbar-button,.reports-view-tab,.reports-output-choice,.reports-output-back{touch-action:manipulation}
.reports-workspace-sheet{max-width:100%;max-height:min(94svh,94dvh);scroll-padding-block:calc(76px + env(safe-area-inset-top,0px)) calc(24px + env(safe-area-inset-bottom,0px))}
.reports-workspace-sheet :where(input,select,textarea,button){scroll-margin-block:84px 28px}
.reports-workspace-scrim{background:rgba(15,23,42,.56)}
.reports-workspace-layer:not([hidden]) .reports-workspace-sheet{outline:0}
.reports-filter-panel,.reports-history-filter-form,.reports-output-stage,.reports-output-stage-content,.reports-share-preview,.reports-detailed-print-preview,.reports-csv-summary,.report-visual-card{min-width:0;max-width:100%}
.reports-detailed-history-table{max-width:100%;overflow-x:auto;overscroll-behavior-inline:contain;-webkit-overflow-scrolling:touch}
.report-visual-card svg,.reports-visual-snapshot-preview svg{max-width:100%;height:auto}
.reports-pro-badge{flex:0 0 auto}
.reports-toolbar-button[aria-haspopup="dialog"] .reports-pro-badge,.reports-view-tab .reports-pro-badge{position:static}

@media (max-width:519px){
  .reports-page-heading{margin-inline:0}
  .reports-page-heading h1{font-size:clamp(1.45rem,7vw,1.85rem)}
  .reports-workspace-sticky{gap:7px;padding-top:4px}
  .reports-workspace-toolbar{display:grid;grid-template-columns:minmax(0,1fr);align-items:stretch;padding:9px;border-radius:18px}
  .reports-range-control select{width:100%;max-width:none;min-height:44px}
  .reports-toolbar-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));align-items:stretch;gap:6px}
  .reports-toolbar-button{width:100%;min-width:0;padding:6px 7px;line-height:1.15;white-space:normal}
  .reports-toolbar-button-primary{grid-column:auto}
  .reports-view-tabs{gap:3px;border-radius:16px}
  .reports-view-tab{min-width:0;padding:5px 4px;font-size:.76rem;line-height:1.15;white-space:normal}
  .reports-view-tab .reports-pro-badge{display:none}
  .reports-view-intro,.reports-view-intro-with-action{display:grid;gap:8px}
  .reports-view-intro p{max-width:none;text-align:left}
  .reports-overview-metric{padding-inline:6px}
  .reports-overview-metric strong{font-size:clamp(1.15rem,7vw,1.42rem)}
  .reports-overview-metric span{font-size:.64rem}
  .reports-workspace-sheet{left:0;right:0;bottom:0;transform:none;width:100%;height:auto;max-height:min(96svh,96dvh);padding:10px 12px calc(18px + env(safe-area-inset-bottom,0px));border-radius:24px 24px 0 0}
  .reports-output-sheet{height:min(96svh,96dvh);max-height:min(96svh,96dvh)}
  .reports-sheet-header{top:-10px;margin-inline:-1px;padding-top:10px}
  .reports-sheet-header>div{min-width:0}
  .reports-sheet-header h2{font-size:clamp(1.12rem,5.8vw,1.32rem)}
  .reports-sheet-header p{font-size:.79rem}
  .reports-output-choice-grid{grid-template-columns:minmax(0,1fr)}
  .reports-output-choice{grid-template-columns:42px minmax(0,1fr);gap:10px}
  .reports-output-choice-copy>span{font-size:.72rem}
  .reports-output-stage-toolbar{align-items:stretch}
  .reports-output-back{width:100%;justify-content:flex-start;white-space:normal}
  .reports-output-notes-control{display:grid;grid-template-columns:minmax(0,1fr) auto}
  .reports-share-actions,.reports-detail-actions,.reports-visual-snapshot-actions{display:grid;grid-template-columns:minmax(0,1fr)}
  .reports-share-actions .btn,.reports-detail-actions .btn,.reports-visual-snapshot-actions .btn{width:100%;min-height:44px}
  .reports-share-stats,.reports-csv-summary{grid-template-columns:repeat(3,minmax(0,1fr))}
  .reports-share-stats span,.reports-csv-summary span{font-size:.63rem}
  .reports-share-pairs{grid-template-columns:minmax(0,1fr)}
  .reports-detailed-summary{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:359px){
  .reports-toolbar-actions{grid-template-columns:repeat(2,minmax(0,1fr))}
  .reports-toolbar-button-primary{grid-column:1/-1}
  .reports-view-tab{font-size:.71rem;padding-inline:2px}
  .reports-overview-metric-strip{grid-template-columns:repeat(3,minmax(0,1fr))}
  .reports-overview-metric span{font-size:.59rem}
  .reports-output-stage-heading{grid-template-columns:minmax(0,1fr)}
  .reports-output-stage-heading .reports-output-choice-icon{display:none}
  .reports-detailed-summary{grid-template-columns:minmax(0,1fr)}
}
@media (min-width:520px) and (max-width:899px){
  .reports-workspace-toolbar{align-items:end}
  .reports-toolbar-actions{flex-wrap:wrap}
  .reports-toolbar-button{min-height:44px}
  .reports-output-choice-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .reports-workspace-sheet{width:min(720px,calc(100% - 32px))}
}
@media (min-width:768px){
  .reports-overview-answer{grid-template-columns:minmax(250px,.42fr) minmax(0,.58fr)}
  .report-patterns-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .report-pattern-panel[data-pattern-section="outcomes"],.report-pattern-panel[data-pattern-section="plannedVsUsed"]{grid-column:1/-1}
}
@media (min-width:980px){
  .reports-workspace{max-width:1180px}
  .reports-view-panel[data-report-view-panel="overview"]{grid-template-columns:minmax(0,2fr) minmax(280px,1fr);align-items:start}
  .reports-view-panel[data-report-view-panel="overview"]>.reports-view-intro{grid-column:1/-1}
  .reports-view-panel[data-report-view-panel="overview"]>.reports-overview-answer{grid-column:1}
  .reports-view-panel[data-report-view-panel="overview"]>.reports-prevention-slot,.reports-view-panel[data-report-view-panel="overview"]>.reports-pro-invitation{grid-column:2}
  .reports-view-panel[data-report-view-panel="overview"]>.reports-overview-about{grid-column:1}
  .reports-history-workspace{min-width:0}
}
@media (min-width:1180px){
  .reports-workspace-toolbar{padding-inline:14px}
  .reports-view-tabs{min-width:450px}
  .reports-output-sheet{width:min(1040px,calc(100% - 64px))}
}
@media (min-width:1440px){.reports-workspace{max-width:1200px}}

@media (prefers-reduced-motion:reduce){
  .reports-workspace *,.reports-workspace-layer *,.manual-support-log-sheet *{animation-duration:.001ms!important;animation-iteration-count:1!important;transition-duration:.001ms!important;scroll-behavior:auto!important}
}
@media (prefers-reduced-transparency:reduce){
  .reports-workspace-sticky{background:#F5FAF8;backdrop-filter:none;-webkit-backdrop-filter:none}
  .reports-workspace-scrim{background:rgba(15,23,42,.78);backdrop-filter:none;-webkit-backdrop-filter:none}
  .reports-workspace-toolbar{background:#fff}
}
@supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){
  .reports-workspace-sticky{background:#F5FAF8}
  .reports-workspace-scrim{background:rgba(15,23,42,.72)}
}

@media print{
  @page{margin:12mm}
  html,body{background:#fff!important}
  body{min-width:0!important;color:#111!important}
  .app-header,.tab-bar,.drawer,.attempt-sheet,.plan-builder-sheet,.handoff-review-sheet,.app-toast,.reports-workspace-sticky,.reports-page-heading,.reports-workspace-scrim,.reports-sheet-header,.reports-output-stage-toolbar,.reports-output-stage-heading,.reports-output-notes-control,.reports-share-actions,.reports-detail-actions,.reports-share-text-preview,.reports-visual-snapshot-actions{display:none!important}
  body:not(.printing-report-card):not(.printing-detailed-report) .tab-panel:not(.active){display:none!important}
  body:not(.printing-report-card):not(.printing-detailed-report) .reports-workspace-layer{display:none!important}
  body:not(.printing-report-card):not(.printing-detailed-report) .reports-view-panel[hidden]{display:none!important}
  body.printing-report-card .tab-panel:not(#panel-reports),body.printing-detailed-report .tab-panel:not(#panel-reports){display:none!important}
  body.printing-report-card #panel-reports,body.printing-detailed-report #panel-reports{display:block!important;padding:0!important}
  body.printing-report-card .reports-workspace-views,body.printing-detailed-report .reports-workspace-views{display:none!important}
  body.printing-report-card .reports-output-layer,body.printing-detailed-report .reports-output-layer{display:block!important;position:static!important;inset:auto!important}
  body.printing-report-card .reports-output-sheet,body.printing-detailed-report .reports-output-sheet{display:block!important;position:static!important;inset:auto!important;transform:none!important;width:auto!important;height:auto!important;max-width:none!important;max-height:none!important;overflow:visible!important;padding:0!important;border:0!important;border-radius:0!important;box-shadow:none!important}
  body.printing-report-card .reports-output-content,body.printing-detailed-report .reports-output-content{display:block!important;overflow:visible!important;padding:0!important}
  body.printing-report-card .reports-output-stage-content>:not(.reports-share-card),body.printing-report-card .reports-output-content>:not(.reports-output-stage){display:none!important}
  body.printing-detailed-report .reports-output-stage-content>:not(.reports-detailed-print-section),body.printing-detailed-report .reports-output-content>:not(.reports-output-stage){display:none!important}
  body.printing-report-card .reports-share-card,body.printing-detailed-report .reports-detailed-print-section{display:block!important;border:0!important;padding:0!important;box-shadow:none!important}
  .reports-share-preview,.reports-detailed-print-preview,.reports-detailed-summary,.reports-detailed-section,.reports-detailed-history,.report-visual-card{break-inside:avoid;box-shadow:none!important;background:#fff!important;color:#111!important}
  .reports-share-preview,.reports-detailed-print-preview{border:1px solid #777!important}
  .report-visual-card,.reports-overview-outcome,.reports-overview-metric-strip{filter:grayscale(1)}
  .report-visual-segment,.reports-overview-outcome-segment{border:1px solid #333!important}
  .reports-detailed-history-table{overflow:visible!important}
  .reports-detailed-history-table [role="row"]{break-inside:avoid}
  a[href]::after{content:none!important}
}
/* SC-PROFILES-03 — calm, responsive profile management */
.profile-manager { min-width:0; }
.profile-active-context { display:flex; justify-content:space-between; gap:1rem; align-items:center; padding:.8rem 1rem; border-radius:16px; background:#eef7f4; margin-bottom:.8rem; }
.profile-active-context span { color:var(--muted, #52615d); font-size:.84rem; }
.profile-active-context strong { text-align:right; overflow-wrap:anywhere; }
.profile-manager-list { display:grid; gap:.65rem; }
.profile-manager-row { display:grid; gap:.75rem; min-width:0; padding:1rem; border:1px solid var(--border, #d8e1de); border-radius:18px; background:var(--surface, #fff); }
.profile-manager-row.is-active { border-color:#77a99b; box-shadow:0 0 0 2px rgba(83,143,126,.1); }
.profile-manager-row.is-preserved { background:#fafafa; }
.profile-manager-identity { display:grid; gap:.18rem; min-width:0; }
.profile-manager-identity strong { font-size:1rem; overflow-wrap:anywhere; }
.profile-manager-identity span { color:var(--muted, #52615d); font-size:.82rem; }
.profile-manager-actions { display:flex; flex-wrap:wrap; gap:.45rem; align-items:center; }
.profile-active-badge { display:inline-flex; padding:.35rem .6rem; border-radius:999px; background:#dff2eb; color:#245f4d; font-size:.8rem; font-weight:700; }
.profile-add-button { width:100%; margin-top:.8rem; }
.profile-editor-form,.profile-readonly-view { display:grid; gap:.75rem; margin-top:.9rem; padding:1rem; border:1px solid var(--border, #d8e1de); border-radius:18px; background:var(--surface, #fff); }
.profile-editor-head,.profile-readonly-head { display:flex; justify-content:space-between; gap:.75rem; align-items:flex-start; }
.profile-editor-head h4,.profile-readonly-head h4 { margin:0; overflow-wrap:anywhere; }
.profile-editor-error { min-height:1.25em; margin:0; color:#9b332d; font-size:.86rem; }
.profile-readonly-list { display:grid; gap:.45rem; list-style:none; padding:0; margin:0; max-height:18rem; overflow:auto; }
.profile-readonly-row { display:grid; gap:.15rem; padding:.7rem; border-radius:12px; background:var(--surface-soft, #f4f7f6); }
.profile-readonly-row span,.profile-readonly-empty { color:var(--muted, #52615d); font-size:.84rem; }
@media (min-width:620px) { .profile-manager-row { grid-template-columns:minmax(0,1fr) auto; align-items:center; } .profile-manager-actions { justify-content:flex-end; } }
@media (max-width:340px) { .profile-manager-actions .support-action { flex:1 1 100%; white-space:normal; } .profile-active-context { align-items:flex-start; flex-direction:column; } .profile-active-context strong { text-align:left; } }
/* SC-PROFILES-04 backup/import and local handoff destination */
.profile-backup-review-summary { display:grid; gap:.35rem; margin:.65rem 0; padding:.8rem; border-radius:14px; background:var(--surface-soft,#f3f7f6); }
.profile-backup-review-summary p { margin:0; color:var(--muted,#52615d); overflow-wrap:anywhere; }
.handoff-destination-picker { display:grid; gap:.45rem; margin:0 0 .8rem; padding:.8rem; border:1px solid var(--border,#d8e1de); border-radius:14px; background:var(--surface-soft,#f3f7f6); }
.handoff-destination-picker span { display:grid; gap:.15rem; }
.handoff-destination-picker small,.handoff-destination-note { color:var(--muted,#52615d); }
.handoff-destination-picker select { width:100%; min-height:44px; border:1px solid var(--border,#cbd8d4); border-radius:12px; background:var(--surface,#fff); color:var(--text,#25332f); padding:.6rem .7rem; font:inherit; }
.handoff-destination-note { margin:0 0 .8rem; padding:.65rem .8rem; border-radius:12px; background:var(--surface-soft,#f3f7f6); overflow-wrap:anywhere; }


/* SC-TRUST-01 — calm policy/support links and trust notices */
.trust-links-card { display: grid; gap: .7rem; }
.trust-link-list { display: grid; gap: .55rem; margin-top: .2rem; }
.trust-link { display: flex; align-items: center; justify-content: space-between; gap: .8rem; min-height: 44px; padding: .72rem .82rem; border: 1px solid var(--border, #d8d9df); border-radius: .8rem; background: var(--surface, #fff); color: inherit; text-decoration: none; }
.trust-link:hover, .trust-link:focus-visible { border-color: currentColor; text-decoration: none; }
.trust-link span { font-weight: 700; }
.trust-link small { color: var(--muted, #62646d); text-align: right; }
.trust-link.compact { margin-top: .65rem; }
.trust-warning-card { border-inline-start: 4px solid currentColor; }
@media (max-width: 420px) { .trust-link { align-items: flex-start; flex-direction: column; gap: .25rem; } .trust-link small { text-align: left; } }

/* SG-SUITE-FINISH-01 — app-owned appearance + accessibility semantics. */
@media screen {
  html[data-display-style="friendly"] {
    --sg-bg: #F7FCFB;
  }
  html[data-display-style="discreet"] {
    --sg-bg: #F5F7F7;
    --sg-brand: #397F78;
    --sg-brand-dark: #285F5A;
  }
  html.sensycues-display-discreet .activity-card,
  html.sensycues-display-discreet .today-row-expanded-card,
  html.sensycues-display-discreet .more-info-card,
  html.sensycues-display-discreet .more-toggle-card,
  html.sensycues-display-discreet .more-select-card,
  html.sensycues-display-discreet .notice-card,
  html.sensycues-display-discreet .drawer-panel {
    border-radius: 16px;
    box-shadow: none;
  }
  html.sensycues-display-discreet .mini-label,
  html.sensycues-display-discreet .more-current-pill {
    letter-spacing: .02em;
  }
  html.sensycues-high-contrast body {
    color: #111827;
  }
  html.sensycues-high-contrast .activity-card,
  html.sensycues-high-contrast .today-row-expanded-card,
  html.sensycues-high-contrast .more-info-card,
  html.sensycues-high-contrast .more-toggle-card,
  html.sensycues-high-contrast .more-select-card,
  html.sensycues-high-contrast .notice-card,
  html.sensycues-high-contrast button,
  html.sensycues-high-contrast select,
  html.sensycues-high-contrast input {
    border-color: #111827;
    box-shadow: none;
  }
  html.sensycues-high-contrast .support-action.primary,
  html.sensycues-high-contrast .primary-button {
    outline: 2px solid #111827;
    outline-offset: 2px;
  }
  html.sensycues-simplified-layout .activity-card,
  html.sensycues-simplified-layout .today-row-expanded-card,
  html.sensycues-simplified-layout .more-info-card,
  html.sensycues-simplified-layout .more-toggle-card,
  html.sensycues-simplified-layout .more-select-card,
  html.sensycues-simplified-layout .notice-card,
  html.sensycues-simplified-layout .drawer-panel {
    box-shadow: none;
    background-image: none;
  }
  html.sensycues-simplified-layout .drawer-grip,
  html.sensycues-simplified-layout .decorative-only {
    display: none !important;
  }
  html.sensycues-simplified-layout .more-card-stack,
  html.sensycues-simplified-layout .activity-list,
  html.sensycues-simplified-layout .planned-support-list {
    gap: 10px;
  }
}

.more-settings-reset-card { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.more-settings-reset-card span { min-width:0; }
.more-settings-reset-card small { display:block; margin-top:4px; color:var(--sg-muted); line-height:1.35; }
.more-settings-reset-card .ghost-button { flex:0 0 auto; }
@media (max-width:520px){ .more-settings-reset-card{display:grid}.more-settings-reset-card .ghost-button{width:100%} }

@media (forced-colors: active) {
  html.sensycues-high-contrast .activity-card,
  html.sensycues-high-contrast .more-info-card,
  html.sensycues-high-contrast .more-toggle-card,
  html.sensycues-high-contrast .more-select-card {
    forced-color-adjust: auto;
    border: 1px solid CanvasText;
  }
}


/* SG-SUITE-FINISH-02 — connection state is informational and never occupies the header. */
.connection-status-card{display:grid;gap:5px;padding:13px;border:1px solid rgba(203,213,225,.82);border-radius:18px;background:linear-gradient(145deg,#FFFFFF,#F2FBF9)}
.connection-status-card strong{color:var(--sg-ink);font-size:.88rem}.connection-status-card p{margin:0;color:var(--sg-muted);font-size:.84rem;line-height:1.4}.connection-status-card [data-connection-status]{color:var(--sg-brand-dark);font-weight:900}.connection-status-card[data-connection-state="offline"] [data-connection-status]{color:var(--sg-accent)}

/* SC-MORE-02 — complete More directory + dedicated subview workspace. */
body.more-workspace-open{overflow:hidden;overscroll-behavior:none}
.more-workspace-shell{
  display:flex;
  flex-direction:column;
  width:min(680px,100%);
  max-height:min(94svh,860px);
  overflow:hidden;
  padding:10px 14px calc(16px + var(--safe-bottom));
  overscroll-behavior:contain;
}
.more-workspace-shell:focus{outline:none}
.more-workspace-shell .drawer-head{
  flex:0 0 auto;
  display:grid;
  grid-template-columns:44px minmax(0,1fr) 44px;
  align-items:center;
  gap:10px;
  margin:0 -2px 10px;
  padding:0 2px 10px;
  border-bottom:1px solid rgba(226,232,240,.9);
}
.more-workspace-shell .drawer-brand-lockup{min-width:0;justify-content:center}
.more-workspace-shell .drawer-brand-lockup>div{min-width:0}
.more-workspace-shell .drawer-app-icon{width:48px;height:48px;flex:0 0 48px;border-radius:16px}
.more-workspace-shell .drawer-head h2{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:1.24rem}
.more-workspace-shell .drawer-head .mini-label{margin-bottom:4px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.more-back-button,.more-close-button{width:44px;height:44px;border-radius:15px}
.more-back-button svg{width:22px;height:22px}
.more-back-button[hidden]{display:block;visibility:hidden;pointer-events:none}
.more-directory,.more-workspace-content{
  min-height:0;
  overflow-x:hidden;
  overflow-y:auto;
  overscroll-behavior:contain;
  -webkit-overflow-scrolling:touch;
  scrollbar-gutter:stable;
  padding:2px 2px 8px;
}
.more-directory[hidden],.more-workspace-content[hidden]{display:none!important}
.more-directory{display:grid;gap:13px}
.more-directory-notice{margin:0;border-inline-start:4px solid var(--sg-accent)}
.more-directory-group{display:grid;gap:7px}
.more-directory-group>h3{
  margin:0;
  padding:0 5px;
  color:var(--sg-muted);
  font-size:.72rem;
  line-height:1.25;
  font-weight:950;
  letter-spacing:.065em;
  text-transform:uppercase;
}
.more-directory-row,.suite-app-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  width:100%;
  min-height:58px;
  padding:12px 14px;
  border:1px solid rgba(226,232,240,.98);
  border-radius:18px;
  background:#fff;
  color:var(--sg-ink);
  text-align:left;
  box-shadow:0 6px 16px rgba(15,23,42,.035);
}
.more-directory-row:hover,.suite-app-row[href]:hover{border-color:rgba(54,171,156,.42);background:#FBFEFD}
.more-directory-row:focus-visible,.suite-app-row[href]:focus-visible,.more-back-button:focus-visible,.more-close-button:focus-visible{
  outline:3px solid rgba(54,171,156,.35);
  outline-offset:2px;
}
.more-directory-row>span:first-child,.suite-app-row>span:first-child{min-width:0}
.more-directory-row strong,.suite-app-row strong{display:block;color:var(--sg-ink);font-size:.94rem;line-height:1.2}
.more-directory-row small,.suite-app-row small{display:block;margin-top:4px;color:var(--sg-muted);font-size:.79rem;line-height:1.35;font-weight:650}
.more-row-arrow{flex:0 0 auto;color:var(--sg-brand-dark);font-size:1.55rem;line-height:1}
.suite-app-list{display:grid;gap:7px}
.suite-app-row{text-decoration:none}
.suite-app-row>span:last-child{flex:0 0 auto;color:var(--sg-brand-dark);font-weight:900}
.suite-app-row.is-current{background:linear-gradient(145deg,#F3FBF9,#FFFFFF);border-color:rgba(54,171,156,.28);box-shadow:none}
.current-app-badge{display:inline-flex!important;align-items:center;min-height:28px;padding:0 9px;border-radius:999px;background:var(--sg-teal-soft);color:var(--sg-brand-dark)!important;font-size:.72rem!important;font-weight:950!important}
.more-workspace-content{padding-bottom:10px;outline:none}
.more-workspace-content>.more-panel,.more-workspace-content>.data-panel{margin:0 2px}
.more-loading-card{display:grid;place-items:center;min-height:160px;padding:20px;color:var(--sg-muted);font-weight:850;text-align:center}
.more-fieldset-helper,.more-fieldset-note{margin:0;color:var(--sg-muted);font-size:.8rem;line-height:1.4}
.more-fieldset-note{padding:0 4px}
.language-choice-fieldset{padding:13px;border:1px solid rgba(226,232,240,.95);border-radius:20px;background:#F8FAFC}
.language-choice-fieldset legend{padding:0 4px;color:var(--sg-ink);font-size:.88rem;letter-spacing:0;text-transform:none}
.language-choice-fieldset .more-radio-card{box-shadow:none}
.about-build-card code{overflow-wrap:anywhere;color:var(--sg-brand-dark);font-size:.78rem}

@media (min-width:700px){
  .more-workspace-shell{
    bottom:18px;
    width:min(680px,calc(100% - 36px));
    max-height:calc(100svh - 36px);
    border-radius:30px;
    padding-inline:18px;
  }
}
@media (max-width:420px){
  .more-workspace-shell{max-height:96svh;padding-inline:12px}
  .more-workspace-shell .drawer-head{grid-template-columns:44px minmax(0,1fr) 44px;gap:7px}
  .more-workspace-shell .drawer-brand-lockup{gap:8px}
  .more-workspace-shell .drawer-app-icon{width:44px;height:44px;flex-basis:44px;border-radius:15px}
  .more-workspace-shell.is-subview .drawer-app-icon{display:none}
  .more-workspace-shell.is-subview .drawer-head h2{white-space:normal;line-height:1.08;font-size:1.08rem;overflow:visible;text-overflow:clip}
  .more-directory-row,.suite-app-row{align-items:flex-start;min-height:56px;padding:12px}
  .current-app-badge{margin-top:1px}
}
html.sensycues-text-extra-large .more-workspace-shell .drawer-brand-lockup{gap:7px}
@media (max-width:420px){html.sensycues-text-extra-large .more-workspace-shell.is-subview .drawer-head .mini-label{display:none}}
html.sensycues-text-extra-large .more-workspace-shell .drawer-app-icon{width:42px;height:42px;flex-basis:42px}
html.sensycues-text-extra-large .more-directory-row,html.sensycues-text-extra-large .suite-app-row{align-items:flex-start}
html.sensycues-display-discreet .more-directory-row,
html.sensycues-display-discreet .suite-app-row,
html.sensycues-display-discreet .language-choice-fieldset{border-radius:14px;box-shadow:none}
html.sensycues-high-contrast .more-directory-row,
html.sensycues-high-contrast .suite-app-row,
html.sensycues-high-contrast .language-choice-fieldset{border-color:#111827;box-shadow:none}
html.sensycues-simplified-layout .more-directory-row,
html.sensycues-simplified-layout .suite-app-row,
html.sensycues-simplified-layout .language-choice-fieldset{box-shadow:none;background-image:none}
@media (forced-colors:active){
  .more-directory-row,.suite-app-row,.language-choice-fieldset,.more-workspace-shell{forced-color-adjust:auto;border:1px solid ButtonText}
  .current-app-badge{border:1px solid ButtonText}
}
@media print{.drawer{display:none!important}}


/* SG-SUITE-FINISH-03: 320px, 200% zoom, target-size, forced-color and motion lock. */
@media screen {
  .more-workspace-shell,.more-workspace-shell *,.app-header,.app-header *{box-sizing:border-box}
  .more-workspace-shell,.more-directory,.more-workspace-content,.more-directory-row>span,.suite-app-row>span,.brand-copy{min-width:0}
  .more-directory-row,.suite-app-row,.more-back-button,.more-close-button,.more-workspace-content button,.more-workspace-content a,.more-workspace-content summary,.app-header .header-action{min-block-size:44px}
  .more-directory-row strong,.more-directory-row small,.suite-app-row strong,.suite-app-row small,.more-workspace-content h2,.more-workspace-content h3,.more-workspace-content p,.more-workspace-content label{overflow-wrap:anywhere}
}
@media screen and (max-width:359px){
  .more-workspace-shell{width:calc(100vw - 8px);max-height:calc(100svh - 8px);padding-inline:8px}
  .more-workspace-shell .drawer-head{gap:4px}
  .more-directory-row,.suite-app-row{padding:11px 10px}
}
html.sensycues-text-extra-large .more-workspace-content,html.sensycues-text-extra-large .more-directory{font-size:1rem}
@media (prefers-reduced-motion:reduce){.more-workspace-shell *{scroll-behavior:auto!important;animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}
@media (forced-colors:active){.more-workspace-content button,.more-workspace-content a,.more-workspace-content summary,.app-header .header-action{forced-color-adjust:auto;border:1px solid ButtonText}}


/* SG-SUITE-FINISH-03C — Discreet is an app-wide presentation mode, not a More-only skin. */
@media screen {
  html.sensycues-display-discreet {
    --sg-brand:#53716D;
    --sg-brand-dark:#344F4B;
    --sg-accent:#6A727B;
    --sg-ink:#17211F;
    --sg-text:#36413F;
    --sg-muted:#697572;
    --sg-line:#D5DDDB;
    --sg-line-strong:#BDC9C6;
    --sg-bg:#F1F3F2;
    --sg-surface:#FFFFFF;
    --sg-surface-soft:#F4F6F5;
    --sg-teal-soft:#E7ECEA;
    --sg-warm:#F1F2F2;
    --sg-shadow:0 10px 28px rgba(23,33,31,.075);
    --sg-shadow-soft:0 3px 12px rgba(23,33,31,.055);
    --sg-legacy-line:#D3DCDA;
    --sg-legacy-shadow:0 3px 12px rgba(23,33,31,.055);
  }

  html.sensycues-display-discreet:not(.sensycues-high-contrast) body {
    background:linear-gradient(180deg,#F2F4F3 0%,#ECEFEE 100%);
  }
  html.sensycues-display-discreet:not(.sensycues-high-contrast) .sg-app {
    background:transparent;
  }
  html.sensycues-display-discreet:not(.sensycues-high-contrast) .app-header {
    background:rgba(244,246,245,.94);
    border-bottom-color:#D8DFDD;
    box-shadow:none;
  }
  html.sensycues-display-discreet:not(.sensycues-high-contrast) .brand-mark {
    border-radius:13px;
    background:#E4E9E7;
    box-shadow:inset 0 0 0 1px #CBD5D2;
  }
  html.sensycues-display-discreet:not(.sensycues-high-contrast) .brand-mark img,
  html.sensycues-display-discreet:not(.sensycues-high-contrast) .drawer-app-icon {
    filter:saturate(.72) contrast(.97);
  }
  html.sensycues-display-discreet:not(.sensycues-high-contrast) .icon-button,
  html.sensycues-display-discreet:not(.sensycues-high-contrast) .app-header .header-action,
  html.sensycues-display-discreet:not(.sensycues-high-contrast) .more-back-button,
  html.sensycues-display-discreet:not(.sensycues-high-contrast) .more-close-button {
    border-radius:12px;
    border-color:#D2DAD8;
    background:#FAFBFB;
    box-shadow:none;
  }
  html.sensycues-display-discreet:not(.sensycues-high-contrast) .app-header .header-more[aria-expanded="true"] {
    background:#E7ECEA;
    border-color:#BCC9C6;
  }

  html.sensycues-display-discreet:not(.sensycues-high-contrast) :is(
    .now-card,
    .section-heading,
    .filter-panel,
    .suggestion-box,
    .notice-card,
    .today-edit-area,
    .today-compact-support-card,
    .planned-support-item.compact.today-compact-support-card,
    .quick-moment-panel,
    .today-log-helper-card,
    .activity-card,
    .report-card,
    .reports-filter-panel,
    .reports-status-card,
    .reports-insight-card,
    .reports-outcome-list,
    .reports-chart-section,
    .reports-pattern-summary,
    .reports-history-section,
    .reports-share-card,
    .reports-output-choice,
    .reports-output-stage-heading,
    .profile-editor-form,
    .profile-readonly-view,
    .more-workspace-shell,
    .more-directory-row,
    .suite-app-row,
    .language-choice-fieldset
  ) {
    background-color:#FFFFFF!important;
    background-image:none!important;
    border-color:#D5DDDB!important;
    box-shadow:none!important;
  }

  html.sensycues-display-discreet:not(.sensycues-high-contrast) :is(
    .now-card,
    .section-heading,
    .suggestion-box,
    .today-edit-area,
    .quick-moment-panel,
    .reports-filter-panel,
    .reports-status-card,
    .reports-insight-card,
    .reports-outcome-list,
    .reports-chart-section,
    .reports-pattern-summary,
    .reports-history-section,
    .reports-share-card,
    .more-workspace-shell
  ) { border-radius:16px!important; }

  html.sensycues-display-discreet:not(.sensycues-high-contrast) :is(
    .today-compact-support-card,
    .planned-support-item.compact.today-compact-support-card,
    .activity-card,
    .report-card,
    .reports-chart-card,
    .reports-history-card,
    .reports-share-preview,
    .reports-pattern-row,
    .reports-outcome-row,
    .reports-pattern-summary-card,
    .reports-history-filters,
    .reports-history-edit,
    .reports-output-choice,
    .reports-output-stage-heading,
    .more-directory-row,
    .suite-app-row,
    .more-info-card,
    .more-toggle-card,
    .more-select-card,
    .language-choice-fieldset
  ) { border-radius:13px!important; box-shadow:none!important; }

  html.sensycues-display-discreet:not(.sensycues-high-contrast) :is(
    .reports-chart-card,
    .reports-history-card,
    .reports-share-preview,
    .reports-history-filters,
    .reports-history-edit,
    .reports-pattern-row,
    .reports-outcome-row,
    .reports-pattern-summary-card,
    .today-support-card-detail,
    .today-support-detail-block,
    .profile-readonly-row,
    .more-info-card,
    .more-toggle-card,
    .more-select-card,
    .language-choice-fieldset
  ) {
    background:#F5F7F6!important;
    border-color:#D9E0DE!important;
    box-shadow:none!important;
  }

  html.sensycues-display-discreet:not(.sensycues-high-contrast) :is(
    .support-action,
    .ghost-button,
    .moment-button,
    .reports-toolbar-button,
    .reports-view-tab,
    .reports-output-back,
    .reports-output-choice,
    .more-radio-card,
    .more-directory-row,
    .suite-app-row
  ) { box-shadow:none!important; }

  html.sensycues-display-discreet:not(.sensycues-high-contrast) :is(
    .support-action,
    .ghost-button,
    .moment-button,
    .reports-toolbar-button,
    .reports-view-tab,
    .reports-output-back
  ) { border-radius:11px!important; }

  html.sensycues-display-discreet:not(.sensycues-high-contrast) .support-action.primary,
  html.sensycues-display-discreet:not(.sensycues-high-contrast) .primary-button {
    background:#53716D!important;
    border-color:#53716D!important;
    color:#FFFFFF!important;
  }
  html.sensycues-display-discreet:not(.sensycues-high-contrast) :is(
    .support-action.subtle,
    .ghost-button,
    .today-row-lock-toggle,
    .today-row-edit-button,
    .today-row-menu-button
  ) {
    background:#FAFBFB!important;
    border-color:#D1DAD7!important;
    color:#354542!important;
  }

  html.sensycues-display-discreet:not(.sensycues-high-contrast) .tab-bar {
    background:rgba(248,249,249,.96);
    border-top-color:#D5DDDB;
    box-shadow:0 -4px 16px rgba(23,33,31,.055);
  }
  html.sensycues-display-discreet:not(.sensycues-high-contrast) .tab-button {
    border-radius:12px;
    color:#65716E;
  }
  html.sensycues-display-discreet:not(.sensycues-high-contrast) .tab-button.active {
    background:#E6EBE9!important;
    color:#344F4B!important;
    box-shadow:inset 0 0 0 1px #C8D3D0!important;
  }

  html.sensycues-display-discreet:not(.sensycues-high-contrast) :is(
    .count-pill,
    .today-duration-pill,
    .planned-anchor-line .planned-anchor,
    .tag,
    .today-helper-tag,
    .current-app-badge,
    .more-current-pill,
    .profile-active-badge
  ) {
    background:#EDF0EF!important;
    border-color:#D5DDDB!important;
    color:#445653!important;
    box-shadow:none!important;
  }
  html.sensycues-display-discreet:not(.sensycues-high-contrast) :is(
    .mini-label,
    .today-anchor-heading span,
    .more-row-arrow,
    .active-quick-filters
  ) { color:#486864!important; }
  html.sensycues-display-discreet:not(.sensycues-high-contrast) .more-directory-notice {
    border-inline-start-color:#7A858B;
  }
  html.sensycues-display-discreet:not(.sensycues-high-contrast) .suite-app-row.is-current,
  html.sensycues-display-discreet:not(.sensycues-high-contrast) .today-compact-support-card.is-up-next {
    background:#F5F7F6!important;
    border-color:#C6D2CF!important;
  }

  /* Keep category recognition, but replace candy-bright rails with muted professional tones. */
  html.sensycues-display-discreet:not(.sensycues-high-contrast) :is(.support-category-calming,.support-category-quiet,.support-category-reduceInput,.support-category-support) { --support-accent:#627F7B!important; }
  html.sensycues-display-discreet:not(.sensycues-high-contrast) :is(.support-category-heavy,.support-category-proprioceptive,.support-category-pressure,.support-category-bodyInput) { --support-accent:#777584!important; }
  html.sensycues-display-discreet:not(.sensycues-high-contrast) :is(.support-category-movement,.support-category-vestibular) { --support-accent:#88796D!important; }
  html.sensycues-display-discreet:not(.sensycues-high-contrast) :is(.support-category-visual,.support-category-timer,.support-category-task) { --support-accent:#687C8A!important; }
  html.sensycues-display-discreet:not(.sensycues-high-contrast) :is(.support-category-tactile,.support-category-oral,.support-category-sensory) { --support-accent:#7F727A!important; }
  html.sensycues-display-discreet:not(.sensycues-high-contrast) .support-category-communication { --support-accent:#617985!important; }
  html.sensycues-display-discreet:not(.sensycues-high-contrast) .support-category-hygiene { --support-accent:#637D80!important; }
  html.sensycues-display-discreet:not(.sensycues-high-contrast) .support-category-clothing { --support-accent:#657C75!important; }
  html.sensycues-display-discreet:not(.sensycues-high-contrast) .support-category-bedtime { --support-accent:#707587!important; }
  html.sensycues-display-discreet:not(.sensycues-high-contrast) .support-category-environmental { --support-accent:#707A7F!important; }
  html.sensycues-display-discreet:not(.sensycues-high-contrast) .today-support-rail,
  html.sensycues-display-discreet:not(.sensycues-high-contrast) .category-dot,
  html.sensycues-display-discreet:not(.sensycues-high-contrast) .activity-card::before {
    background:var(--support-accent,#627F7B)!important;
  }

  html.sensycues-display-discreet:not(.sensycues-high-contrast) :is(
    .report-visual-card,
    .report-composition,
    .report-ranked-bars,
    .reports-overview-outcome,
    .reports-overview-metric-strip,
    .reports-bar-track span,
    .reports-visual-snapshot-preview svg
  ) { filter:saturate(.42) contrast(.98); }
}

@media (forced-colors:active) {
  html.sensycues-display-discreet .today-support-rail,
  html.sensycues-display-discreet .category-dot,
  html.sensycues-display-discreet .activity-card::before,
  html.sensycues-display-discreet .tab-button.active {
    forced-color-adjust:auto;
  }
}


/* SG-SUITE-FINISH-03D — all Appearance & accessibility settings apply to the entire app. */
@media screen {
  /* Text size must scale the rem-based app, not only copy inside More. */
  html[data-text-size="standard"] { font-size:100%; }
  html.sensycues-text-large,
  html[data-text-size="large"] { font-size:106.25%; }
  html.sensycues-text-extra-large,
  html[data-text-size="extraLarge"] { font-size:112.5%; }
  html:is(.sensycues-text-large,.sensycues-text-extra-large) body,
  html[data-text-size="large"] body,
  html[data-text-size="extraLarge"] body,
  html:is(.sensycues-text-large,.sensycues-text-extra-large) .sg-app,
  html[data-text-size="large"] .sg-app,
  html[data-text-size="extraLarge"] .sg-app { font-size:1rem; }
  html:is(.sensycues-text-large,.sensycues-text-extra-large) :is(button,input,select,textarea),
  html[data-text-size="large"] :is(button,input,select,textarea),
  html[data-text-size="extraLarge"] :is(button,input,select,textarea) { font-size:1em; }

  /* High contrast is a full-shell mode with strong boundaries and readable states. */
  html.sensycues-high-contrast,
  html[data-high-contrast="true"] {
    color-scheme:light;
    --sg-brand:#004C45;
    --sg-brand-dark:#002F2B;
    --sg-accent:#713000;
    --sg-ink:#000000;
    --sg-text:#000000;
    --sg-muted:#111111;
    --sg-line:#000000;
    --sg-line-strong:#000000;
    --sg-bg:#FFFFFF;
    --sg-surface:#FFFFFF;
    --sg-surface-soft:#FFFFFF;
    --sg-teal-soft:#FFFFFF;
    --sg-warm:#FFFFFF;
    --sg-shadow:none;
    --sg-shadow-soft:none;
  }
  html.sensycues-high-contrast body,
  html[data-high-contrast="true"] body { background:#FFFFFF!important; color:#000!important; }
  html.sensycues-high-contrast :is(.sg-app,.app-header,.tab-bar,.drawer-panel,.attempt-panel,.plan-builder-panel,.custom-support-panel,.apps-pro-boundary-panel,.manual-support-log-panel,.handoff-review-panel,.more-workspace-shell,.reports-workspace-sheet,.reports-history-filter-sheet,.reports-history-detail-sheet,.reports-output-sheet),
  html[data-high-contrast="true"] :is(.sg-app,.app-header,.tab-bar,.drawer-panel,.attempt-panel,.plan-builder-panel,.custom-support-panel,.apps-pro-boundary-panel,.manual-support-log-panel,.handoff-review-panel,.more-workspace-shell,.reports-workspace-sheet,.reports-history-filter-sheet,.reports-history-detail-sheet,.reports-output-sheet) {
    background:#FFFFFF!important;
    background-image:none!important;
    border-color:#000!important;
    box-shadow:none!important;
    -webkit-backdrop-filter:none!important;
    backdrop-filter:none!important;
  }
  html.sensycues-high-contrast :is(
    .now-card,.section-heading,.filter-panel,.suggestion-box,.notice-card,.activity-card,.empty-state,.report-card,
    .today-support-plan-card,.today-anchor-list-card,.today-section-card,.today-compact-support-card,.today-log-helper-card,.today-history-card,.quick-moment-panel,.recent-helpful-item,.review-card,
    .moment-button,.suggestion-list li,.selected-moment-card,.today-support-card-detail,.today-support-detail-block,.today-plan-summary-row>*,.review-summary-grid span,
    .more-directory-row,.suite-app-row,.more-info-card,.more-toggle-card,.more-select-card,.more-input-card,.language-choice-fieldset,.connection-status-card,
    .reports-status-card,.reports-filter-panel,.reports-chart-card,.reports-pattern-summary-card,.report-pattern-panel,.reports-history-card,.reports-history-record-row,.reports-output-choice,.reports-share-card,.reports-visual-snapshot-preview,.reports-overview-section,.reports-overview-signal-row,.reports-overview-metric,
    .builder-step-copy,.builder-choice,.builder-name-field,.builder-review-card,.handoff-preview-card,.apps-pro-modal-status
  ),
  html[data-high-contrast="true"] :is(
    .now-card,.section-heading,.filter-panel,.suggestion-box,.notice-card,.activity-card,.empty-state,.report-card,
    .today-support-plan-card,.today-anchor-list-card,.today-section-card,.today-compact-support-card,.today-log-helper-card,.today-history-card,.quick-moment-panel,.recent-helpful-item,.review-card,
    .moment-button,.suggestion-list li,.selected-moment-card,.today-support-card-detail,.today-support-detail-block,.today-plan-summary-row>*,.review-summary-grid span,
    .more-directory-row,.suite-app-row,.more-info-card,.more-toggle-card,.more-select-card,.more-input-card,.language-choice-fieldset,.connection-status-card,
    .reports-status-card,.reports-filter-panel,.reports-chart-card,.reports-pattern-summary-card,.report-pattern-panel,.reports-history-card,.reports-history-record-row,.reports-output-choice,.reports-share-card,.reports-visual-snapshot-preview,.reports-overview-section,.reports-overview-signal-row,.reports-overview-metric,
    .builder-step-copy,.builder-choice,.builder-name-field,.builder-review-card,.handoff-preview-card,.apps-pro-modal-status
  ) {
    background:#FFFFFF!important;
    background-image:none!important;
    border:2px solid #000!important;
    box-shadow:none!important;
  }
  html.sensycues-high-contrast .sg-app :is(h1,h2,h3,h4,strong,legend,label,summary,.brand-copy strong,.activity-topline,.activity-duration,.mini-label,.count-pill,.tag,.today-helper-tag,.status-tag,.menu-message),
  html[data-high-contrast="true"] .sg-app :is(h1,h2,h3,h4,strong,legend,label,summary,.brand-copy strong,.activity-topline,.activity-duration,.mini-label,.count-pill,.tag,.today-helper-tag,.status-tag,.menu-message) { color:#000!important; }
  html.sensycues-high-contrast .sg-app :is(p,small,.brand-copy small,.activity-instructions,.more-fieldset-helper,.more-fieldset-note),
  html[data-high-contrast="true"] .sg-app :is(p,small,.brand-copy small,.activity-instructions,.more-fieldset-helper,.more-fieldset-note) { color:#111!important; }
  html.sensycues-high-contrast :is(button,input,select,textarea,.checkbox-row,.icon-button,.header-action,.support-action,.primary-button,.secondary-button,.ghost-button,.text-button),
  html[data-high-contrast="true"] :is(button,input,select,textarea,.checkbox-row,.icon-button,.header-action,.support-action,.primary-button,.secondary-button,.ghost-button,.text-button) {
    border:2px solid #000!important;
    box-shadow:none!important;
  }
  html.sensycues-high-contrast :is(input,select,textarea,.checkbox-row,.icon-button,.header-action,.support-action:not(.primary),.secondary-button,.ghost-button,.text-button),
  html[data-high-contrast="true"] :is(input,select,textarea,.checkbox-row,.icon-button,.header-action,.support-action:not(.primary),.secondary-button,.ghost-button,.text-button) { background:#FFF!important; color:#000!important; }
  html.sensycues-high-contrast :is(.support-action.primary,.primary-button,.reset-chip,.up-next-badge,.tab-button.active,.builder-choice.selected),
  html[data-high-contrast="true"] :is(.support-action.primary,.primary-button,.reset-chip,.up-next-badge,.tab-button.active,.builder-choice.selected) { background:#000!important; color:#FFF!important; border-color:#000!important; }
  html.sensycues-high-contrast :is(.support-action.primary,.primary-button,.reset-chip,.up-next-badge,.tab-button.active,.builder-choice.selected) :is(span,strong,small,svg),
  html[data-high-contrast="true"] :is(.support-action.primary,.primary-button,.reset-chip,.up-next-badge,.tab-button.active,.builder-choice.selected) :is(span,strong,small,svg) { color:#FFF!important; fill:currentColor!important; }
  html.sensycues-high-contrast :is(.tab-button,.more-directory-row,.suite-app-row,a),
  html[data-high-contrast="true"] :is(.tab-button,.more-directory-row,.suite-app-row,a) { text-decoration-thickness:2px; text-underline-offset:3px; }
  html.sensycues-high-contrast :is(a:not(.support-action):not(.tab-button),.trust-link),
  html[data-high-contrast="true"] :is(a:not(.support-action):not(.tab-button),.trust-link) { text-decoration:underline; }
  html.sensycues-high-contrast :is(button,input,select,textarea,a,summary):focus-visible,
  html[data-high-contrast="true"] :is(button,input,select,textarea,a,summary):focus-visible { outline:4px solid #000!important; outline-offset:3px!important; box-shadow:0 0 0 2px #FFF!important; }
  html.sensycues-high-contrast :is(input[type="checkbox"],input[type="radio"]),
  html[data-high-contrast="true"] :is(input[type="checkbox"],input[type="radio"]) { accent-color:#000; }
  html.sensycues-high-contrast :is(.today-support-rail,.category-dot,.reports-bar-track span,.report-bar-track span),
  html[data-high-contrast="true"] :is(.today-support-rail,.category-dot,.reports-bar-track span,.report-bar-track span),
  html.sensycues-high-contrast .activity-card::before,
  html[data-high-contrast="true"] .activity-card::before { background:#000!important; }
  html.sensycues-high-contrast :is(.reports-bar-track,.report-bar-track),
  html[data-high-contrast="true"] :is(.reports-bar-track,.report-bar-track) { background:#FFF!important; border:1px solid #000!important; }
  html.sensycues-high-contrast :is(.report-visual-card,.report-composition,.report-ranked-bars,.reports-overview-outcome,.reports-overview-metric-strip,.reports-visual-snapshot-preview svg),
  html[data-high-contrast="true"] :is(.report-visual-card,.report-composition,.report-ranked-bars,.reports-overview-outcome,.reports-overview-metric-strip,.reports-visual-snapshot-preview svg) { filter:grayscale(1) contrast(1.85)!important; }

  /* Simplified layout removes decorative density across Today, Library, Reports, More and sheets. */
  html.sensycues-simplified-layout,
  html[data-simplified-layout="true"] {
    --sg-shadow:none;
    --sg-shadow-soft:none;
    --r-xl:18px;
    --r:16px;
    --r-sm:12px;
  }
  html.sensycues-simplified-layout body,
  html[data-simplified-layout="true"] body { background:var(--sg-bg)!important; }
  html.sensycues-simplified-layout :is(.sg-app,.app-header,.tab-bar,.drawer-panel,.attempt-panel,.plan-builder-panel,.custom-support-panel,.apps-pro-boundary-panel,.manual-support-log-panel,.handoff-review-panel,.more-workspace-shell,.reports-workspace-sheet,.reports-history-filter-sheet,.reports-history-detail-sheet,.reports-output-sheet),
  html[data-simplified-layout="true"] :is(.sg-app,.app-header,.tab-bar,.drawer-panel,.attempt-panel,.plan-builder-panel,.custom-support-panel,.apps-pro-boundary-panel,.manual-support-log-panel,.handoff-review-panel,.more-workspace-shell,.reports-workspace-sheet,.reports-history-filter-sheet,.reports-history-detail-sheet,.reports-output-sheet) {
    background-image:none!important;
    box-shadow:none!important;
    -webkit-backdrop-filter:none!important;
    backdrop-filter:none!important;
  }
  html.sensycues-simplified-layout :is(
    .now-card,.section-heading,.filter-panel,.suggestion-box,.notice-card,.activity-card,.report-card,
    .today-support-plan-card,.today-anchor-list-card,.today-section-card,.today-compact-support-card,.today-log-helper-card,.today-history-card,.quick-moment-panel,.recent-helpful-item,.review-card,
    .moment-button,.suggestion-list li,.selected-moment-card,.today-support-card-detail,.today-support-detail-block,.today-plan-summary-row>*,.review-summary-grid span,
    .more-directory-row,.suite-app-row,.more-info-card,.more-toggle-card,.more-select-card,.more-input-card,.language-choice-fieldset,.connection-status-card,
    .reports-status-card,.reports-filter-panel,.reports-chart-card,.reports-pattern-summary-card,.report-pattern-panel,.reports-history-card,.reports-history-record-row,.reports-output-choice,.reports-share-card,.reports-visual-snapshot-preview,.reports-overview-section,.reports-overview-signal-row,.reports-overview-metric,
    .builder-step-copy,.builder-choice,.builder-name-field,.builder-review-card,.handoff-preview-card
  ),
  html[data-simplified-layout="true"] :is(
    .now-card,.section-heading,.filter-panel,.suggestion-box,.notice-card,.activity-card,.report-card,
    .today-support-plan-card,.today-anchor-list-card,.today-section-card,.today-compact-support-card,.today-log-helper-card,.today-history-card,.quick-moment-panel,.recent-helpful-item,.review-card,
    .moment-button,.suggestion-list li,.selected-moment-card,.today-support-card-detail,.today-support-detail-block,.today-plan-summary-row>*,.review-summary-grid span,
    .more-directory-row,.suite-app-row,.more-info-card,.more-toggle-card,.more-select-card,.more-input-card,.language-choice-fieldset,.connection-status-card,
    .reports-status-card,.reports-filter-panel,.reports-chart-card,.reports-pattern-summary-card,.report-pattern-panel,.reports-history-card,.reports-history-record-row,.reports-output-choice,.reports-share-card,.reports-visual-snapshot-preview,.reports-overview-section,.reports-overview-signal-row,.reports-overview-metric,
    .builder-step-copy,.builder-choice,.builder-name-field,.builder-review-card,.handoff-preview-card
  ) {
    background-image:none!important;
    box-shadow:none!important;
    border-radius:14px!important;
  }
  html.sensycues-simplified-layout :is(.brand-copy small,.tag-row,.today-helper-tags,.drawer-grip,.decorative-only,.report-visual-brand),
  html[data-simplified-layout="true"] :is(.brand-copy small,.tag-row,.today-helper-tags,.drawer-grip,.decorative-only,.report-visual-brand) { display:none!important; }
  html.sensycues-simplified-layout :is(.activity-list,.planned-support-list,.today-anchor-list,.more-card-stack,.reports-pattern-list,.reports-history-list,.suggestion-list),
  html[data-simplified-layout="true"] :is(.activity-list,.planned-support-list,.today-anchor-list,.more-card-stack,.reports-pattern-list,.reports-history-list,.suggestion-list) { gap:8px!important; }
  html.sensycues-simplified-layout :is(.moment-button:hover,.builder-choice:hover,.support-action:hover,.more-directory-row:hover,.suite-app-row:hover),
  html[data-simplified-layout="true"] :is(.moment-button:hover,.builder-choice:hover,.support-action:hover,.more-directory-row:hover,.suite-app-row:hover) { transform:none!important; }
}

/* Reduce motion must cover the full app, pseudo-elements, drawers, reports and JS-driven scroll. */
html.sensycues-reduce-motion,
html[data-effective-reduce-motion="true"] { scroll-behavior:auto!important; }
html.sensycues-reduce-motion *,
html.sensycues-reduce-motion *::before,
html.sensycues-reduce-motion *::after,
html[data-effective-reduce-motion="true"] *,
html[data-effective-reduce-motion="true"] *::before,
html[data-effective-reduce-motion="true"] *::after {
  scroll-behavior:auto!important;
  animation:none!important;
  transition:none!important;
  transition-delay:0s!important;
}
html.sensycues-reduce-motion :is(.moment-button:hover,.builder-choice:hover,.support-action:hover,.more-directory-row:hover,.suite-app-row:hover),
html[data-effective-reduce-motion="true"] :is(.moment-button:hover,.builder-choice:hover,.support-action:hover,.more-directory-row:hover,.suite-app-row:hover) { transform:none!important; }

@media (prefers-reduced-motion:reduce) {
  html { scroll-behavior:auto!important; }
  *,*::before,*::after {
    scroll-behavior:auto!important;
    animation:none!important;
    transition:none!important;
    transition-delay:0s!important;
  }
  :is(.moment-button:hover,.builder-choice:hover,.support-action:hover,.more-directory-row:hover,.suite-app-row:hover) { transform:none!important; }
}

@media (forced-colors:active) {
  html.sensycues-high-contrast :is(.sg-app,.app-header,.tab-bar,.today-support-rail,.category-dot,.activity-card,.today-compact-support-card,.more-directory-row,.suite-app-row,.reports-chart-card),
  html[data-high-contrast="true"] :is(.sg-app,.app-header,.tab-bar,.today-support-rail,.category-dot,.activity-card,.today-compact-support-card,.more-directory-row,.suite-app-row,.reports-chart-card) {
    forced-color-adjust:auto;
  }
}

/* SC-TODAY-LIBRARY-01 — full Support Library search inside empty-state Add and Replace flows. */
.today-library-search-field{
  display:grid;
  gap:6px;
}
.today-library-search-field>label{
  color:var(--sg-muted);
  font-size:.72rem;
  font-weight:900;
  letter-spacing:.05em;
  text-transform:uppercase;
}
.today-library-search-row{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:8px;
  align-items:center;
}
.today-library-search-row input{
  width:100%;
  min-width:0;
  min-height:46px;
  border:1px solid var(--sg-line);
  border-radius:15px;
  background:#fff;
  color:var(--sg-ink);
  padding:0 13px;
  font:inherit;
  font-size:.9rem;
  font-weight:750;
  box-shadow:0 1px 0 rgba(15,23,42,.02);
}
.today-library-search-row input::placeholder{
  color:#7A8797;
  font-weight:650;
}
.today-library-search-row input:focus-visible{
  outline:3px solid rgba(54,171,156,.24);
  outline-offset:2px;
  border-color:var(--sg-brand);
}
.today-library-clear-search{
  min-height:42px;
  padding:0 11px;
  border:1px solid var(--sg-line);
  border-radius:13px;
  background:#fff;
  color:var(--sg-brand-dark);
  font:inherit;
  font-size:.76rem;
  font-weight:900;
  cursor:pointer;
}
.today-library-clear-search:hover{
  border-color:rgba(54,171,156,.48);
  background:var(--sg-teal-soft);
}
.today-library-clear-search:focus-visible{
  outline:3px solid rgba(54,171,156,.24);
  outline-offset:2px;
}
.today-library-clear-search[hidden]{
  display:none!important;
}
.today-library-result-summary{
  margin:0;
  color:#52615F;
  font-size:.78rem;
  font-weight:850;
  line-height:1.35;
}
.today-library-results{
  max-height:min(52svh,430px);
  overflow:auto;
  overscroll-behavior:contain;
  padding:2px 2px 4px 0;
  scroll-padding-block:8px;
}
.today-library-no-results{
  display:grid;
  justify-items:start;
  gap:6px;
  padding:15px;
  border:1px dashed var(--sg-line-strong);
  border-radius:18px;
  background:#fff;
  color:var(--sg-muted);
  text-align:left;
}
.today-library-no-results strong{
  color:var(--sg-ink);
  font-size:.92rem;
}
.today-library-no-results span{
  font-size:.82rem;
  line-height:1.45;
}
.today-library-no-results .support-action{
  margin-top:3px;
}
.today-replacement-panel .today-library-results{
  max-height:min(48svh,390px);
}
@media (max-width:460px){
  .today-library-search-row{
    grid-template-columns:1fr;
  }
  .today-library-clear-search{
    justify-self:start;
    min-height:36px;
  }
  .today-library-results,
  .today-replacement-panel .today-library-results{
    max-height:min(46svh,360px);
  }
}

/* SC-NOW-01: focused short-now entry and moment picker. */
body.short-now-flow-open{overflow:hidden}
.short-now-flow[hidden]{display:none!important}
.short-now-flow{position:fixed;inset:0;z-index:76}
.short-now-scrim{position:absolute;inset:0;background:rgba(15,23,42,.42);backdrop-filter:blur(4px)}
.short-now-panel{
  position:absolute;
  left:50%;
  bottom:0;
  transform:translateX(-50%);
  display:flex;
  flex-direction:column;
  width:min(680px,100%);
  max-height:calc(100svh - max(10px,var(--safe-top,0px)));
  overflow:auto;
  overscroll-behavior:contain;
  padding:10px 16px calc(20px + var(--safe-bottom));
  border:1px solid rgba(203,213,225,.9);
  border-bottom:0;
  border-radius:28px 28px 0 0;
  background:#fff;
  box-shadow:0 -26px 70px rgba(15,23,42,.24)
}
.short-now-panel:focus{outline:none}
.short-now-head{
  position:sticky;
  top:-10px;
  z-index:2;
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:14px;
  margin:0 -4px 14px;
  padding:10px 4px 12px;
  background:#fff;
  border-bottom:1px solid rgba(226,232,240,.82)
}
.short-now-head>div{min-width:0}
.short-now-head .mini-label{margin:0 0 4px}
.short-now-head h2{margin:0;color:var(--sg-ink);font-size:clamp(1.28rem,4.7vw,1.75rem);line-height:1.08;letter-spacing:-.025em}
.short-now-head p{margin:7px 0 0;color:var(--sg-muted);font-size:.92rem;line-height:1.4}
.short-now-head .icon-button{flex:0 0 auto;min-width:44px;width:44px;min-height:44px;height:44px}
.short-now-moment-grid{grid-template-columns:1fr;gap:10px;padding-bottom:2px}
.short-now-moment-grid .moment-button{min-height:78px;border-radius:16px;padding:13px 14px}
.short-now-moment-grid .moment-button strong{font-size:1rem;line-height:1.18}
.short-now-moment-grid .moment-button span{margin-top:5px;font-size:.86rem;line-height:1.32}
.short-now-suggestion-box{margin:0;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none}
.short-now-suggestion-box .selected-moment-card:first-child{margin-top:0}
.quick-moment-panel.quick-moment-panel-compact .quick-moment-helper-text{display:block!important;max-width:52ch!important}
@media (min-width:480px){
  .short-now-moment-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .short-now-moment-grid .moment-button{min-height:96px}
}
@media (min-width:760px){
  .short-now-panel{
    top:50%;
    bottom:auto;
    transform:translate(-50%,-50%);
    width:min(700px,calc(100% - 48px));
    max-height:min(820px,calc(100svh - 56px));
    padding:14px 20px 22px;
    border-bottom:1px solid rgba(203,213,225,.9);
    border-radius:26px;
    box-shadow:0 28px 90px rgba(15,23,42,.28)
  }
  .short-now-head{top:-14px;margin:0 -6px 16px;padding:12px 6px 14px}
}
@media (max-width:359px){
  .short-now-panel{padding-left:12px;padding-right:12px}
  .short-now-head{gap:9px}
  .short-now-moment-grid .moment-button{padding:12px;min-height:76px}
}
html.sensycues-display-discreet:not(.sensycues-high-contrast) .short-now-panel{background:#fff;border-color:#D5DDDB;box-shadow:0 22px 64px rgba(35,49,47,.2)}
html.sensycues-display-discreet:not(.sensycues-high-contrast) .short-now-head{background:#fff;border-color:#D9E0DE}
html.sensycues-display-discreet:not(.sensycues-high-contrast) .short-now-moment-grid .moment-button{background:#FAFBFB;border-color:#D5DDDB;border-radius:11px;box-shadow:none}
html.sensycues-high-contrast .short-now-panel,
html[data-high-contrast="true"] .short-now-panel{border:2px solid currentColor}
html.sensycues-simplified-layout .short-now-panel,
html[data-simplified-layout="true"] .short-now-panel{border-radius:18px 18px 0 0}
@media (min-width:760px){
  html.sensycues-simplified-layout .short-now-panel,
  html[data-simplified-layout="true"] .short-now-panel{border-radius:16px}
}
html.sensycues-reduce-motion .short-now-scrim,
html.sensycues-reduce-motion .short-now-panel,
html[data-effective-reduce-motion="true"] .short-now-scrim,
html[data-effective-reduce-motion="true"] .short-now-panel{scroll-behavior:auto;transition:none!important;animation:none!important}
@media (prefers-reduced-motion:reduce){.short-now-scrim,.short-now-panel{scroll-behavior:auto;transition:none!important;animation:none!important}}
@media (forced-colors:active){.short-now-scrim{background:CanvasText}.short-now-panel,.short-now-moment-grid .moment-button{border:2px solid CanvasText}}
@media print{.short-now-flow{display:none!important}}

/* SC-NOW-02: one-support runner and calm action hierarchy. */
.short-now-loading{display:flex;align-items:center;gap:12px;min-height:112px;padding:20px;border:1px solid var(--sg-line);border-radius:22px;background:var(--sg-surface-soft)}
.short-now-loading-dot{width:14px;height:14px;flex:0 0 auto;border-radius:999px;background:var(--sg-brand);box-shadow:0 0 0 7px rgba(54,171,156,.12);animation:short-now-pulse 1.2s ease-in-out infinite}
.short-now-loading div{display:grid;gap:4px}.short-now-loading strong{color:var(--sg-ink);font-size:1rem}.short-now-loading p{margin:0;color:var(--sg-muted);font-size:.88rem;line-height:1.4}
@keyframes short-now-pulse{50%{transform:scale(.78);opacity:.62}}
.short-now-runner,.short-now-trying{display:grid;gap:12px}
.short-now-primary-card{display:grid;gap:14px;padding:18px;border:1px solid rgba(54,171,156,.3);border-radius:24px;background:linear-gradient(155deg,#FFFFFF 0%,#F4FCFA 100%);box-shadow:0 18px 42px rgba(15,23,42,.08)}
.short-now-primary-card.is-trying{border-color:rgba(245,138,72,.42);background:linear-gradient(155deg,#FFFFFF 0%,#FFF8F2 100%)}
.short-now-primary-topline{display:flex;align-items:center;justify-content:space-between;gap:12px}
.short-now-primary-topline .mini-label{margin:0}.short-now-duration{display:inline-flex;align-items:center;min-height:30px;padding:0 10px;border-radius:999px;background:#fff;border:1px solid var(--sg-line);color:var(--sg-muted);font-size:.78rem;font-weight:900;white-space:nowrap}
.short-now-primary-card h3{margin:-3px 0 0;color:var(--sg-ink);font-size:clamp(1.3rem,5vw,1.72rem);line-height:1.08;letter-spacing:-.035em}
.short-now-meta-row{display:flex;flex-wrap:wrap;gap:7px}.short-now-meta-row span{display:inline-flex;align-items:center;min-height:30px;padding:0 10px;border-radius:999px;background:rgba(255,255,255,.86);border:1px solid var(--sg-line);color:var(--sg-muted);font-size:.76rem;font-weight:850}
.short-now-instructions{display:grid;gap:6px;padding:15px;border-radius:18px;background:#fff;border:1px solid rgba(54,171,156,.2)}
.short-now-instructions strong{color:var(--sg-brand-dark);font-size:.78rem;letter-spacing:.04em;text-transform:uppercase}.short-now-instructions p{margin:0;color:var(--sg-text);font-size:1rem;line-height:1.52}
.short-now-safety-note{margin:0;padding:11px 12px;border-left:4px solid var(--sg-accent);border-radius:10px;background:#FFF7ED;color:#7C4A20;font-size:.82rem;line-height:1.42}.short-now-safety-note strong{color:#8A4B13}
.short-now-primary-actions{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(0,1fr);gap:9px}.short-now-primary-actions :is(.primary-button,.secondary-button){min-height:48px;width:100%;justify-content:center}
.short-now-secondary-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;padding-top:1px}.short-now-secondary-actions .text-button{display:flex;align-items:center;justify-content:center;min-height:44px;padding:8px 10px;border:1px solid var(--sg-line);border-radius:13px;background:#fff;font-size:.8rem;line-height:1.25;text-align:center;text-decoration:none}.short-now-secondary-actions .text-button:hover,.short-now-secondary-actions .text-button:focus-visible{border-color:var(--sg-brand);background:var(--sg-teal-soft)}
.short-now-more-menu{position:relative;border-top:1px solid var(--sg-line);padding-top:10px}.short-now-more-menu summary{display:inline-flex;align-items:center;min-height:44px;color:var(--sg-muted);font-size:.8rem;font-weight:900;cursor:pointer;list-style:none}.short-now-more-menu summary::-webkit-details-marker{display:none}.short-now-more-menu summary::after{content:'›';margin-left:7px;font-size:1.15rem;transform:rotate(90deg)}.short-now-more-menu[open] summary::after{transform:rotate(-90deg)}
.short-now-more-menu-panel{display:grid;gap:7px;padding:8px 0 0}.short-now-menu-action{min-height:44px;border:1px solid var(--sg-line);border-radius:14px;background:#fff;color:var(--sg-text);padding:9px 12px;text-align:left;font-size:.84rem;font-weight:850}
.short-now-other-ideas[hidden]{display:none!important}.short-now-other-ideas{display:grid;gap:9px;padding:14px;border:1px solid var(--sg-line);border-radius:20px;background:#fff}
.short-now-other-ideas-head>div{display:grid;gap:3px}.short-now-other-ideas-head strong{color:var(--sg-ink);font-size:.96rem}.short-now-other-ideas-head span{color:var(--sg-muted);font-size:.8rem;line-height:1.35}
.short-now-other-ideas ul{display:grid;gap:8px;list-style:none;margin:0;padding:0}.short-now-other-ideas li{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:center;padding:11px;border:1px solid var(--sg-line);border-radius:16px;background:var(--sg-surface-soft)}.short-now-other-ideas li>div{display:grid;gap:3px;min-width:0}.short-now-other-ideas li strong{color:var(--sg-ink);font-size:.9rem}.short-now-other-ideas li span{color:var(--sg-muted);font-size:.76rem}.short-now-other-ideas .support-action{min-height:44px}
.short-now-reset-boundary{display:flex;justify-content:center;padding:2px 0 0}.short-now-reset-link{min-height:44px;color:#A6541D;font-weight:900}
.short-now-empty-state{display:grid;gap:11px;padding:20px;border:1px solid var(--sg-line);border-radius:22px;background:#fff}.short-now-empty-state h3{margin:0;color:var(--sg-ink);font-size:1.18rem}.short-now-empty-state p{margin:0;color:var(--sg-muted);line-height:1.45}
.short-now-boundary-card{margin-bottom:0}
@media (max-width:520px){.short-now-primary-card{padding:15px;border-radius:20px}.short-now-primary-actions{grid-template-columns:1fr}.short-now-secondary-actions{grid-template-columns:1fr;gap:7px}.short-now-secondary-actions .text-button{width:100%;justify-content:space-between;text-align:left}.short-now-secondary-actions .text-button::after{content:'›';font-size:1.15rem;line-height:1}.short-now-secondary-actions [data-support-action="short-now-toggle-ideas"]::after{content:'⌄'}.short-now-secondary-actions [data-support-action="short-now-toggle-ideas"][aria-expanded="true"]::after{content:'⌃'}.short-now-other-ideas li{grid-template-columns:1fr}.short-now-other-ideas .support-action{width:100%;justify-content:center}.short-now-primary-topline{align-items:flex-start}.short-now-duration{white-space:normal;text-align:center}}
@media (max-width:359px){.short-now-primary-card{padding:13px}.short-now-instructions{padding:12px}.short-now-primary-card h3{font-size:1.25rem}.short-now-meta-row{display:grid}.short-now-meta-row span{justify-content:center}}
html.sensycues-display-discreet:not(.sensycues-high-contrast) .short-now-primary-card{border-radius:14px;background:#fff;box-shadow:none;border-color:#D5DDDB}
html.sensycues-display-discreet:not(.sensycues-high-contrast) .short-now-instructions,html.sensycues-display-discreet:not(.sensycues-high-contrast) .short-now-other-ideas{border-radius:10px;background:#FAFBFB;border-color:#D5DDDB}
html.sensycues-simplified-layout .short-now-primary-card,html[data-simplified-layout="true"] .short-now-primary-card{gap:10px;box-shadow:none}
html.sensycues-high-contrast .short-now-primary-card,html[data-high-contrast="true"] .short-now-primary-card,html.sensycues-high-contrast .short-now-instructions,html[data-high-contrast="true"] .short-now-instructions{border:2px solid currentColor}
html.sensycues-reduce-motion .short-now-loading-dot,html[data-effective-reduce-motion="true"] .short-now-loading-dot{animation:none!important}
@media (prefers-reduced-motion:reduce){.short-now-loading-dot{animation:none!important}}
@media (forced-colors:active){.short-now-primary-card,.short-now-instructions,.short-now-other-ideas,.short-now-other-ideas li,.short-now-menu-action{border:2px solid CanvasText}.short-now-safety-note{border:2px solid CanvasText}}
@media print{.short-now-runner,.short-now-trying,.short-now-loading{display:none!important}}

/* SC-REC-05: low-confidence one-tap refinement without leaving Short Now. */
.short-now-refinements{display:grid;gap:10px;padding-top:12px;border-top:1px solid var(--sg-line)}
.short-now-refinements>div:first-child{display:grid;gap:3px}.short-now-refinements strong{color:var(--sg-ink);font-size:.88rem}.short-now-refinements span{color:var(--sg-muted);font-size:.76rem;line-height:1.4}
.short-now-refinement-chips{display:flex;flex-wrap:wrap;gap:8px}.short-now-refinement-chip{min-height:44px;padding:8px 12px;border:1px solid rgba(54,171,156,.3);border-radius:999px;background:#fff;color:var(--sg-text);font:inherit;font-size:.78rem;font-weight:850;line-height:1.25;text-align:left;cursor:pointer}.short-now-refinement-chip:hover,.short-now-refinement-chip:focus-visible{border-color:var(--sg-brand);background:var(--sg-teal-soft)}.short-now-refinement-chip.is-selected,.short-now-refinement-chip[aria-pressed="true"]{border-color:var(--sg-brand-dark);background:var(--sg-teal-soft);color:var(--sg-brand-dark)}
html.sensycues-display-discreet:not(.sensycues-high-contrast) .short-now-refinement-chip{border-radius:8px;background:#FAFBFB;border-color:#D5DDDB}
html.sensycues-high-contrast .short-now-refinement-chip,html[data-high-contrast="true"] .short-now-refinement-chip{border:2px solid currentColor}
@media (max-width:520px){.short-now-refinement-chips{display:grid;grid-template-columns:1fr}.short-now-refinement-chip{width:100%;border-radius:14px}}
@media (forced-colors:active){.short-now-refinement-chip{border:2px solid ButtonText}.short-now-refinement-chip[aria-pressed="true"]{outline:3px solid Highlight}}

/* SC-NOW-03: compact outcome + adaptive continuation. */
.short-now-outcome,.short-now-outcome-host,.short-now-adaptive-result{display:grid;gap:12px}
.compact-outcome-card{display:grid;gap:8px;padding:18px}
.compact-outcome-card .compact-outcome-support-title{margin:4px 0 0;padding:10px 12px;border:1px solid var(--sg-line);border-radius:14px;background:#fff;color:var(--sg-ink);font-weight:900}
.compact-outcome-button-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.compact-outcome-button-grid .outcome-button:last-child{grid-column:1 / -1}
.compact-outcome-secondary-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:4px}.compact-outcome-secondary-actions.is-single-action{grid-template-columns:1fr}
.compact-outcome-secondary-actions .text-button{grid-column:auto;min-height:44px;padding:8px 10px;border:1px solid transparent;border-radius:14px;text-align:center}
.compact-outcome-details[hidden],.outcome-profile-error[hidden],.compact-outcome-saving[hidden]{display:none!important}
.compact-outcome-details{display:grid;gap:10px;padding:14px;border:1px solid var(--sg-line);border-radius:20px;background:#fff}
.outcome-profile-error{display:grid;gap:8px;padding:14px;border:1px solid #E9A76E;border-radius:18px;background:#FFF7ED;color:#6F3E17}
.outcome-profile-error strong{color:#7C3F0B}.outcome-profile-error p{margin:0;line-height:1.45}.outcome-profile-error .secondary-button{width:100%;min-height:46px;background:#fff}
.compact-outcome-saving{margin:0;padding:10px 12px;border-radius:14px;background:var(--sg-teal-soft);color:var(--sg-brand-dark);font-weight:900;text-align:center}
.short-now-saved-confirmation{display:grid;gap:3px;padding:12px 14px;border:1px solid rgba(54,171,156,.28);border-radius:18px;background:var(--sg-teal-soft);color:var(--sg-brand-dark)}
.short-now-saved-confirmation strong{font-size:.78rem;letter-spacing:.035em;text-transform:uppercase}.short-now-saved-confirmation span{color:var(--sg-ink);font-weight:900}
.short-now-adaptive-card{display:grid;gap:13px;padding:18px;border:1px solid rgba(54,171,156,.3);border-radius:24px;background:linear-gradient(155deg,#FFFFFF 0%,#F4FCFA 100%);box-shadow:0 18px 42px rgba(15,23,42,.08)}
.short-now-adaptive-topline{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.short-now-adaptive-topline h3{margin:0;color:var(--sg-ink);font-size:clamp(1.18rem,4.6vw,1.55rem);line-height:1.1;letter-spacing:-.03em}
.short-now-adaptive-result[data-outcome="madeWorse"] .short-now-adaptive-card{border-color:rgba(245,138,72,.42);background:linear-gradient(155deg,#FFFFFF 0%,#FFF8F2 100%)}
.short-now-adaptive-result[data-outcome="madeWorse"] .short-now-saved-confirmation{border-color:rgba(245,138,72,.34);background:#FFF7ED;color:#8A4B13}
.short-now-panel[data-short-now-step="outcome"] .short-now-head,.short-now-panel[data-short-now-step="continuation"] .short-now-head{margin-bottom:12px}
html.sensycues-display-discreet:not(.sensycues-high-contrast) .compact-outcome-card,html.sensycues-display-discreet:not(.sensycues-high-contrast) .short-now-adaptive-card{border-radius:14px;background:#fff;box-shadow:none;border-color:#D5DDDB}
html.sensycues-display-discreet:not(.sensycues-high-contrast) .compact-outcome-details,html.sensycues-display-discreet:not(.sensycues-high-contrast) .short-now-saved-confirmation{border-radius:10px}
html.sensycues-simplified-layout .compact-outcome-card,html[data-simplified-layout="true"] .compact-outcome-card,html.sensycues-simplified-layout .short-now-adaptive-card,html[data-simplified-layout="true"] .short-now-adaptive-card{box-shadow:none;gap:10px}
html.sensycues-high-contrast .compact-outcome-card,html[data-high-contrast="true"] .compact-outcome-card,html.sensycues-high-contrast .compact-outcome-details,html[data-high-contrast="true"] .compact-outcome-details,html.sensycues-high-contrast .short-now-adaptive-card,html[data-high-contrast="true"] .short-now-adaptive-card,html.sensycues-high-contrast .short-now-saved-confirmation,html[data-high-contrast="true"] .short-now-saved-confirmation{border:2px solid currentColor}
@media (max-width:520px){.compact-outcome-card,.short-now-adaptive-card{padding:15px;border-radius:20px}.compact-outcome-secondary-actions{grid-template-columns:1fr}.short-now-adaptive-topline{display:grid}.short-now-adaptive-topline .short-now-duration{justify-self:start}.compact-outcome-button-grid{grid-template-columns:1fr}.compact-outcome-button-grid .outcome-button:last-child{grid-column:auto}}
@media (max-width:359px){.compact-outcome-card,.short-now-adaptive-card{padding:13px}.compact-outcome-details{padding:11px}.short-now-saved-confirmation{padding:11px 12px}}
@media (forced-colors:active){.compact-outcome-card,.compact-outcome-details,.outcome-profile-error,.short-now-saved-confirmation,.short-now-adaptive-card{border:2px solid CanvasText}.compact-outcome-button-grid .outcome-button.selected{outline:3px solid Highlight}}
@media print{.short-now-outcome,.short-now-adaptive-result{display:none!important}}

/* SC-NOW-03 revision: post-save details update the same SupportAttempt */
.short-now-saved-actions{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px}
.compact-saved-details-card{display:grid;gap:12px;padding:18px}
.compact-saved-details-card .compact-outcome-support-title{margin:0;padding:10px 12px;border:1px solid var(--sg-line);border-radius:14px;background:#fff;color:var(--sg-ink);font-weight:900}
.compact-saved-details-actions{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px}
html.sensycues-display-discreet:not(.sensycues-high-contrast) .compact-saved-details-card{border-radius:14px;background:#fff;box-shadow:none;border-color:#D5DDDB}
html.sensycues-simplified-layout .compact-saved-details-card,html[data-simplified-layout="true"] .compact-saved-details-card{box-shadow:none;gap:10px}
html.sensycues-high-contrast .compact-saved-details-card,html[data-high-contrast="true"] .compact-saved-details-card{border:2px solid currentColor}
@media (max-width:520px){.short-now-saved-actions,.compact-saved-details-actions{grid-template-columns:1fr}.compact-saved-details-card{padding:15px;border-radius:20px}}
@media (max-width:359px){.compact-saved-details-card{padding:13px}}
@media (forced-colors:active){.compact-saved-details-card{border:2px solid CanvasText}}

/* SC-HANDOFF-NOW-01: direct contextual receive + mutation-time review. */
.short-now-source-banner{display:grid;gap:8px;padding:12px 14px;border:1px solid rgba(54,171,156,.28);border-radius:18px;background:var(--sg-teal-soft)}
.short-now-source-banner strong{color:var(--sg-brand-dark);font-size:.82rem;line-height:1.3}.short-now-source-banner p{margin:0;color:var(--sg-text);font-size:.82rem;line-height:1.42}
.short-now-source-actions{display:flex;flex-wrap:wrap;align-items:center;gap:4px 14px}.short-now-source-actions :is(.text-button,a){min-height:44px;padding:7px 0;font-size:.8rem;font-weight:900}
.compact-outcome-confirm-actions{display:grid;grid-template-columns:1fr;margin-top:2px}.compact-outcome-confirm-actions .primary-button{width:100%;min-height:48px;justify-content:center}
.outcome-profile-choice{display:grid;gap:11px;margin-top:4px;padding:14px;border:1px solid rgba(54,171,156,.34);border-radius:18px;background:#fff}
.outcome-profile-choice h4,.outcome-profile-choice>strong{margin:0;color:var(--sg-ink);font-size:1rem}.outcome-profile-choice>p{margin:0;color:var(--sg-muted);font-size:.82rem;line-height:1.45}.outcome-profile-choice label{display:grid;gap:6px;color:var(--sg-text);font-size:.8rem;font-weight:850}.outcome-profile-choice select{width:100%;min-height:48px;border:1px solid var(--sg-line);border-radius:14px;background:var(--sg-surface-soft);color:var(--sg-text);padding:10px 36px 10px 12px;font:inherit}
.outcome-profile-options{display:grid;gap:8px}.outcome-profile-option{display:grid;grid-template-columns:auto minmax(0,1fr);gap:10px;align-items:center;min-height:48px;padding:10px 12px;border:1px solid var(--sg-line);border-radius:14px;background:var(--sg-surface-soft);color:var(--sg-text);font-weight:850;cursor:pointer}.outcome-profile-option input{width:20px;height:20px;margin:0}.outcome-profile-option:focus-within{outline:3px solid rgba(54,171,156,.34);outline-offset:2px}
.outcome-profile-choice-actions{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:9px}.outcome-profile-choice-actions :is(.primary-button,.secondary-button){width:100%;min-height:46px;justify-content:center}
html.sensycues-display-discreet:not(.sensycues-high-contrast) .short-now-source-banner,html.sensycues-display-discreet:not(.sensycues-high-contrast) .outcome-profile-choice{border-radius:10px;background:#FAFBFB;border-color:#D5DDDB}
html.sensycues-simplified-layout .short-now-source-banner,html[data-simplified-layout="true"] .short-now-source-banner,html.sensycues-simplified-layout .outcome-profile-choice,html[data-simplified-layout="true"] .outcome-profile-choice{gap:8px}
html.sensycues-high-contrast .short-now-source-banner,html[data-high-contrast="true"] .short-now-source-banner,html.sensycues-high-contrast .outcome-profile-choice,html[data-high-contrast="true"] .outcome-profile-choice,html.sensycues-high-contrast .outcome-profile-option,html[data-high-contrast="true"] .outcome-profile-option{border:2px solid currentColor}
@media (max-width:520px){.short-now-source-actions{display:grid;gap:0}.short-now-source-actions :is(.text-button,a){width:100%;text-align:left}.outcome-profile-choice-actions{grid-template-columns:1fr}}
@media (max-width:359px){.short-now-source-banner,.outcome-profile-choice{padding:11px}}
@media (forced-colors:active){.short-now-source-banner,.outcome-profile-choice,.outcome-profile-option{border:2px solid CanvasText}.outcome-profile-option:focus-within{outline:3px solid Highlight}}

/* SC-PLAN-05Q — screenshot-ready Today support rows, pin semantics, and compact action hierarchy. */
.planned-support-list.compact-list{gap:10px!important}
.today-compact-support-card,
.planned-support-item.compact.today-compact-support-card{
  grid-template-columns:7px 42px minmax(0,1fr) 42px!important;
  grid-template-rows:minmax(62px,auto)!important;
  column-gap:7px!important;
  row-gap:0!important;
  min-height:62px!important;
  border-radius:20px!important;
  background:#fff!important;
  box-shadow:0 8px 22px rgba(29,57,54,.055)!important;
}
.today-support-rail{grid-row:1!important;min-height:62px!important;border-radius:20px 0 0 20px!important}
.today-compact-support-card.is-expanded .today-support-rail,
.planned-support-item.compact.today-compact-support-card.is-expanded .today-support-rail{grid-row:1 / span 2!important}
.today-row-lock-toggle.today-pin-toggle,
.today-lock-toggle.today-row-lock-toggle.today-pin-toggle{
  grid-column:2!important;
  width:34px!important;min-width:34px!important;height:34px!important;min-height:34px!important;
  border:0!important;border-radius:999px!important;
  background:transparent!important;color:#71817F!important;
}
.today-row-lock-toggle.today-pin-toggle:hover,
.today-row-lock-toggle.today-pin-toggle:focus-visible{background:#F1F7F5!important;color:#376F67!important}
.today-row-lock-toggle.today-pin-toggle.is-pinned{
  background:#EAF8F5!important;color:#28766C!important;
  box-shadow:inset 0 0 0 1px rgba(54,171,156,.28)!important;
}
.today-pin-svg{width:19px!important;height:19px!important;stroke-width:1.8!important}
.today-pin-toggle.is-pinned .today-pin-svg .pin-head{fill:currentColor!important;stroke:currentColor!important}
.today-row-main{grid-column:3!important;padding:9px 0!important;min-width:0!important}
.today-row-title-line{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;gap:7px!important;width:100%!important}
.today-row-title-line h3{
  max-width:100%!important;
  font-size:clamp(1rem,4.15vw,1.13rem)!important;
  font-weight:850!important;
  white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;
}
.today-row-title-line .today-duration-pill{
  min-height:25px!important;padding:3px 9px!important;
  background:#EEF7F5!important;font-size:.72rem!important;font-weight:800!important;
}
.today-row-details-button{grid-column:4!important;width:35px!important;min-width:35px!important;height:35px!important;min-height:35px!important;border-radius:13px!important}
.today-quick-log-button{display:none!important}
.today-row-details-button.is-open span{transform:rotate(90deg)!important}
.today-row-expanded-card,
.today-support-card-detail-body.today-row-expanded-card{
  grid-column:2 / -1!important;grid-row:2!important;
  gap:12px!important;
  margin:0 10px 12px 0!important;
  padding:15px!important;
  border:1px solid rgba(210,226,222,.92)!important;
  border-radius:18px!important;
  background:linear-gradient(150deg,#FFFFFF 0%,#F8FCFB 100%)!important;
  box-shadow:0 12px 30px rgba(29,57,54,.07)!important;
}
.today-row-expanded-card .today-row-expanded-head{display:grid!important;gap:6px!important;padding:0 40px 0 0!important}
.today-row-expanded-card .today-row-expanded-head h4{
  display:block!important;margin:0!important;
  color:#1B2B2A!important;font-size:1.15rem!important;line-height:1.2!important;font-weight:900!important;
  letter-spacing:-.025em!important;white-space:normal!important;overflow:visible!important;overflow-wrap:anywhere!important;
}
.today-row-expanded-meta{display:flex!important;align-items:center!important;flex-wrap:wrap!important;gap:8px!important}
.today-row-expanded-card .today-row-expanded-kicker{display:inline-flex!important;margin:0!important;font-size:.7rem!important;letter-spacing:.095em!important}
.today-row-expanded-card .today-row-expanded-meta .today-duration-pill{display:inline-flex!important;min-height:24px!important;padding:2px 8px!important;font-size:.7rem!important}
.today-row-how-to{display:grid!important;gap:5px!important;padding:12px 13px!important;border:1px solid rgba(54,171,156,.2)!important;border-radius:15px!important;background:#F5FBF9!important}
.today-row-how-to strong{color:#31786F!important;font-size:.72rem!important;font-weight:950!important;letter-spacing:.09em!important;text-transform:uppercase!important}
.today-row-how-to p{margin:0!important;color:#344845!important;font-size:.91rem!important;line-height:1.48!important}
.today-row-expanded-tags{gap:6px!important}
.today-row-expanded-tags .today-helper-tag{min-height:26px!important;background:#F0F4F6!important;font-size:.72rem!important}
.today-support-card-detail-actions.planned-support-menu,
.today-row-expanded-card .today-support-card-detail-actions.planned-support-menu{display:grid!important;grid-template-columns:1fr!important;gap:10px!important}
.today-expanded-icon-actions{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:8px!important}
.today-icon-action{
  display:grid!important;grid-template-columns:1fr!important;place-items:center!important;gap:5px!important;
  min-width:0!important;min-height:64px!important;padding:8px 5px!important;
  border:1px solid #D8E4E1!important;border-radius:14px!important;background:#fff!important;
  color:#354C49!important;font:inherit!important;font-size:.74rem!important;font-weight:900!important;text-align:center!important;
  box-shadow:0 3px 9px rgba(29,57,54,.035)!important;cursor:pointer!important;
}
.today-icon-action svg{width:21px!important;height:21px!important;fill:none!important;stroke:currentColor!important;stroke-width:1.8!important;stroke-linecap:round!important;stroke-linejoin:round!important}
.today-icon-action:hover,.today-icon-action:focus-visible{border-color:rgba(54,171,156,.55)!important;background:#F3FBF9!important;color:#25645C!important}
.today-icon-action-log.is-logged{border-color:rgba(54,171,156,.38)!important;background:#EEF9F6!important;color:#25645C!important}
.today-icon-action.is-danger{color:#80504D!important}
.today-icon-action.is-danger:hover,.today-icon-action.is-danger:focus-visible{border-color:#DDB9B5!important;background:#FFF8F7!important;color:#783E3A!important}
.today-expanded-detail-links{display:flex!important;align-items:center!important;flex-wrap:wrap!important;gap:4px 16px!important}
.today-expanded-detail-links .support-action.link{
  width:auto!important;min-width:0!important;min-height:36px!important;padding:4px 0!important;
  border:0!important;background:transparent!important;color:#526864!important;
  font-size:.78rem!important;font-weight:850!important;text-decoration:underline!important;text-underline-offset:3px!important;box-shadow:none!important;
}
.today-vizicues-helper-link{margin:0!important;padding:11px 12px!important;border-radius:15px!important;background:#F7FCFA!important}
.today-row-expanded-card>.today-quick-outcome-popover{
  grid-column:auto!important;justify-self:stretch!important;width:100%!important;margin:0!important;padding:11px!important;
  border-radius:16px!important;box-shadow:none!important;background:#fff!important;z-index:auto!important;
}
.today-row-favorite-button{top:13px!important;right:13px!important;width:34px!important;height:34px!important}
.smart-suggest-reason-chip.reason-matchesMoment,
.smart-suggest-reason-chip.reason-fitsTodayAnchor{display:none!important}
.short-now-meta-row span:empty{display:none!important}
.attempt-summary.is-support-context{padding-bottom:4px!important}
@media (max-width:620px){
  .today-compact-support-card,.planned-support-item.compact.today-compact-support-card{grid-template-columns:7px 37px minmax(0,1fr) 38px!important;column-gap:5px!important;min-height:60px!important}
  .today-support-rail{min-height:60px!important}
  .today-row-lock-toggle.today-pin-toggle,.today-lock-toggle.today-row-lock-toggle.today-pin-toggle{width:31px!important;min-width:31px!important;height:31px!important;min-height:31px!important}
  .today-row-details-button{width:33px!important;min-width:33px!important;height:33px!important;min-height:33px!important}
  .today-row-title-line{gap:5px!important}
  .today-row-title-line h3{font-size:clamp(.96rem,4.55vw,1.08rem)!important}
  .today-row-title-line .today-duration-pill{padding:2px 7px!important;font-size:.68rem!important}
  .today-row-expanded-card,.today-support-card-detail-body.today-row-expanded-card{margin-right:8px!important;padding:13px!important}
  .today-icon-action{min-height:60px!important;font-size:.71rem!important}
}
@media (max-width:360px){
  .today-expanded-icon-actions{gap:6px!important}
  .today-icon-action{min-height:58px!important;padding-inline:3px!important;font-size:.68rem!important}
  .today-row-title-line .today-duration-pill{padding-inline:6px!important}
}
@media print{.today-pin-toggle,.today-row-details-button,.today-expanded-icon-actions,.today-expanded-detail-links{display:none!important}}

/* SC-PLAN-05Q1 — Quick log is a focused bottom sheet, never an inline card. */
.today-quick-outcome-sheet{
  position:fixed!important;
  inset:0!important;
  z-index:90!important;
  display:grid!important;
  align-items:end!important;
  pointer-events:auto!important;
}
.today-quick-outcome-scrim{
  position:absolute!important;
  inset:0!important;
  width:100%!important;
  height:100%!important;
  border:0!important;
  padding:0!important;
  background:rgba(15,23,42,.32)!important;
  backdrop-filter:blur(4px)!important;
  -webkit-backdrop-filter:blur(4px)!important;
}
.today-quick-outcome-panel{
  position:relative!important;
  z-index:1!important;
  display:grid!important;
  gap:14px!important;
  width:min(540px,100%)!important;
  max-height:min(82svh,620px)!important;
  margin:0 auto!important;
  padding:10px 16px calc(18px + var(--safe-bottom))!important;
  overflow:auto!important;
  overscroll-behavior:contain!important;
  border:0!important;
  border-radius:28px 28px 0 0!important;
  background:linear-gradient(180deg,#FFFFFF 0%,#FBFDFC 100%)!important;
  box-shadow:0 -26px 72px rgba(15,23,42,.26)!important;
  animation:todayQuickLogSheetIn .18s ease-out both!important;
}
.today-quick-outcome-handle{
  justify-self:center!important;
  width:44px!important;
  height:5px!important;
  border-radius:999px!important;
  background:#D8E2E0!important;
}
.today-quick-outcome-panel .today-quick-outcome-head{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) 42px!important;
  align-items:start!important;
  gap:12px!important;
  margin:0!important;
}
.today-quick-outcome-heading-copy{
  display:grid!important;
  gap:3px!important;
  min-width:0!important;
}
.today-quick-outcome-heading-copy>span{
  color:#3E8178!important;
  font-size:.72rem!important;
  font-weight:950!important;
  letter-spacing:.1em!important;
  text-transform:uppercase!important;
}
.today-quick-outcome-heading-copy h2{
  margin:0!important;
  color:var(--sg-ink)!important;
  font-size:1.35rem!important;
  line-height:1.08!important;
  font-weight:950!important;
  letter-spacing:-.035em!important;
}
.today-quick-outcome-heading-copy p{
  margin:2px 0 0!important;
  color:#667775!important;
  font-size:.9rem!important;
  font-weight:800!important;
  line-height:1.3!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
}
.today-quick-outcome-panel .today-quick-outcome-close{
  width:42px!important;
  min-width:42px!important;
  height:42px!important;
  min-height:42px!important;
  border:1px solid #D8E2E0!important;
  border-radius:15px!important;
  background:#fff!important;
  color:#485B58!important;
  font-size:1.25rem!important;
  line-height:1!important;
  box-shadow:0 3px 10px rgba(15,23,42,.04)!important;
}
.today-quick-outcome-panel .today-quick-outcome-list{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:9px!important;
}
.today-quick-outcome-panel .today-quick-outcome-option{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) auto!important;
  align-items:center!important;
  gap:8px!important;
  width:100%!important;
  min-height:54px!important;
  padding:9px 12px!important;
  border:1px solid #DCE6E4!important;
  border-radius:17px!important;
  background:#fff!important;
  color:#243735!important;
  font-size:.9rem!important;
  font-weight:900!important;
  line-height:1.14!important;
  text-align:left!important;
  box-shadow:0 4px 12px rgba(15,23,42,.035)!important;
}
.today-quick-outcome-panel .today-quick-outcome-option:hover,
.today-quick-outcome-panel .today-quick-outcome-option:focus-visible,
.today-quick-outcome-panel .today-quick-outcome-option.selected{
  border-color:rgba(54,171,156,.62)!important;
  background:#F0FAF7!important;
  color:#225F57!important;
}
.today-quick-outcome-check{
  display:grid!important;
  place-items:center!important;
  width:23px!important;
  height:23px!important;
  border-radius:999px!important;
  background:#4FAE9F!important;
  color:#fff!important;
  font-size:.76rem!important;
  font-weight:950!important;
}
.today-quick-outcome-panel .today-quick-outcome-details{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  width:100%!important;
  min-height:46px!important;
  margin:0!important;
  padding:0 14px!important;
  border:1px solid #D5E3E0!important;
  border-radius:15px!important;
  background:#F7FBFA!important;
  color:#376F67!important;
  font-size:.88rem!important;
  font-weight:900!important;
  text-decoration:none!important;
  box-shadow:none!important;
}
.today-quick-outcome-panel .today-quick-outcome-details:hover,
.today-quick-outcome-panel .today-quick-outcome-details:focus-visible{
  border-color:rgba(54,171,156,.55)!important;
  background:#EEF9F6!important;
}
@keyframes todayQuickLogSheetIn{
  from{transform:translateY(18px);opacity:.72}
  to{transform:translateY(0);opacity:1}
}
@media (max-width:350px){
  .today-quick-outcome-panel{padding-left:12px!important;padding-right:12px!important}
  .today-quick-outcome-panel .today-quick-outcome-list{gap:7px!important}
  .today-quick-outcome-panel .today-quick-outcome-option{padding:8px 9px!important;font-size:.82rem!important}
}
@media (prefers-reduced-motion:reduce){
  .today-quick-outcome-panel{animation:none!important}
}
@media print{
  .today-quick-outcome-sheet{display:none!important}
}

/* SC-PLAN-05R — unified plan footer + clear-unpinned support controls. */
.today-plan-heading-row{
  order:2!important;
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:10px!important;
  min-width:0!important;
}
.today-plan-heading-row h1{
  order:initial!important;
  flex:1 1 auto!important;
  min-width:0!important;
  margin:0!important;
}
.today-plan-overflow{
  position:relative!important;
  flex:0 0 auto!important;
}
.today-plan-overflow>summary{
  display:grid!important;
  place-items:center!important;
  width:42px!important;
  min-width:42px!important;
  height:42px!important;
  min-height:42px!important;
  padding:0!important;
  list-style:none!important;
  border:1px solid #D7E4E1!important;
  border-radius:14px!important;
  background:#fff!important;
  color:#425653!important;
  font-size:1rem!important;
  font-weight:950!important;
  letter-spacing:.08em!important;
  box-shadow:0 4px 12px rgba(15,23,42,.04)!important;
  cursor:pointer!important;
}
.today-plan-overflow>summary::-webkit-details-marker{display:none!important}
.today-plan-overflow[open]>summary{
  border-color:rgba(54,171,156,.58)!important;
  background:#F1FAF8!important;
  color:#2D766C!important;
}
.today-plan-overflow-menu{
  position:absolute!important;
  right:0!important;
  top:calc(100% + 7px)!important;
  z-index:24!important;
  display:grid!important;
  gap:3px!important;
  width:min(270px,calc(100vw - 32px))!important;
  padding:8px!important;
  border:1px solid #DCE7E5!important;
  border-radius:18px!important;
  background:#fff!important;
  box-shadow:0 18px 42px rgba(15,23,42,.16)!important;
}
.today-plan-menu-action{
  width:100%!important;
  min-height:42px!important;
  padding:9px 11px!important;
  border:0!important;
  border-radius:12px!important;
  background:transparent!important;
  color:#263936!important;
  font-size:.88rem!important;
  font-weight:850!important;
  line-height:1.2!important;
  text-align:left!important;
}
.today-plan-menu-action:hover,
.today-plan-menu-action:focus-visible{background:#F2F8F7!important}
.today-plan-menu-action.is-danger{color:#8A4B46!important}
.today-plan-menu-action.is-danger:not(:disabled):hover,
.today-plan-menu-action.is-danger:not(:disabled):focus-visible{background:#FFF4F2!important}
.today-plan-menu-action:disabled{
  color:#8B9997!important;
  opacity:1!important;
  cursor:not-allowed!important;
}
.today-plan-menu-divider{
  height:1px!important;
  margin:4px 3px!important;
  background:#E5ECEA!important;
}
.today-plan-overflow-menu small{
  padding:0 11px 7px!important;
  color:#6B7C79!important;
  font-size:.74rem!important;
  font-weight:750!important;
  line-height:1.3!important;
}

.today-edit-area{
  overflow:visible!important;
}
.today-routine-controls{
  display:grid!important;
  grid-template-columns:minmax(0,1.22fr) minmax(0,1fr) minmax(0,1fr)!important;
  gap:7px!important;
  align-items:stretch!important;
  margin:14px -16px -14px!important;
  padding:12px 16px 14px!important;
  border-top:1px solid #E1EAE8!important;
  border-radius:0 0 12px 12px!important;
  background:linear-gradient(180deg,#FCFEFD 0%,#F4F9F8 100%)!important;
}
.today-routine-controls .support-action.today-plan-footer-action{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:6px!important;
  width:100%!important;
  min-width:0!important;
  min-height:46px!important;
  padding:0 9px!important;
  border-radius:12px!important;
  font-size:.8rem!important;
  font-weight:900!important;
  line-height:1!important;
  white-space:nowrap!important;
  text-align:center!important;
}
.today-routine-controls .support-action.today-plan-footer-action.primary{
  box-shadow:0 7px 16px rgba(54,171,156,.15)!important;
}
.today-plan-control-icon{
  display:grid!important;
  place-items:center!important;
  flex:0 0 auto!important;
  width:18px!important;
  height:18px!important;
}
.today-plan-control-icon svg{
  width:18px!important;
  height:18px!important;
  fill:none!important;
  stroke:currentColor!important;
  stroke-width:1.9!important;
  stroke-linecap:round!important;
  stroke-linejoin:round!important;
}

.today-template-menu-panel{
  display:grid!important;
  gap:12px!important;
}
.today-template-menu-actions{
  display:grid!important;
  gap:9px!important;
}
.today-template-menu-choice{
  display:grid!important;
  gap:3px!important;
  width:100%!important;
  min-height:66px!important;
  padding:12px 14px!important;
  border:1px solid #DCE7E5!important;
  border-radius:18px!important;
  background:#fff!important;
  color:#253936!important;
  text-align:left!important;
  box-shadow:0 5px 14px rgba(15,23,42,.035)!important;
}
.today-template-menu-choice strong{
  font-size:.94rem!important;
  line-height:1.15!important;
}
.today-template-menu-choice span{
  color:#6C7B79!important;
  font-size:.79rem!important;
  font-weight:750!important;
  line-height:1.32!important;
}
.today-template-menu-choice:not(:disabled):hover,
.today-template-menu-choice:not(:disabled):focus-visible{
  border-color:rgba(54,171,156,.58)!important;
  background:#F1FAF8!important;
}
.today-template-menu-choice:disabled{
  opacity:.56!important;
  cursor:not-allowed!important;
}

.today-clear-supports-sheet{
  position:fixed!important;
  inset:0!important;
  z-index:96!important;
  display:grid!important;
  align-items:end!important;
  pointer-events:auto!important;
}
.today-clear-supports-scrim{
  position:absolute!important;
  inset:0!important;
  width:100%!important;
  height:100%!important;
  padding:0!important;
  border:0!important;
  background:rgba(15,23,42,.34)!important;
  backdrop-filter:blur(3px)!important;
}
.today-clear-supports-panel{
  position:relative!important;
  z-index:1!important;
  display:grid!important;
  gap:15px!important;
  width:min(520px,100%)!important;
  margin:0 auto!important;
  padding:9px 18px calc(18px + var(--safe-bottom))!important;
  border-radius:28px 28px 0 0!important;
  background:#fff!important;
  box-shadow:0 -24px 72px rgba(15,23,42,.26)!important;
  animation:todayClearSupportsSheetIn .18s ease-out!important;
}
.today-clear-supports-handle{
  width:42px!important;
  height:5px!important;
  margin:0 auto 2px!important;
  border-radius:999px!important;
  background:#D5DFDD!important;
}
.today-clear-supports-copy{
  display:grid!important;
  gap:5px!important;
}
.today-clear-supports-copy>span{
  color:#8A4B46!important;
  font-size:.72rem!important;
  font-weight:950!important;
  letter-spacing:.1em!important;
  text-transform:uppercase!important;
}
.today-clear-supports-copy h2{
  margin:0!important;
  color:var(--sg-ink)!important;
  font-size:1.35rem!important;
  line-height:1.1!important;
  font-weight:950!important;
  letter-spacing:-.035em!important;
}
.today-clear-supports-copy p{
  margin:0!important;
  color:#5F706D!important;
  font-size:.91rem!important;
  font-weight:750!important;
  line-height:1.42!important;
}
.today-clear-supports-copy .today-clear-supports-history-note{
  margin-top:5px!important;
  padding:10px 11px!important;
  border-radius:14px!important;
  background:#F2F7F6!important;
  color:#526461!important;
  font-size:.8rem!important;
}
.today-clear-supports-actions{
  display:grid!important;
  grid-template-columns:1fr 1fr!important;
  gap:9px!important;
}
.today-clear-supports-actions .support-action{
  width:100%!important;
  min-height:46px!important;
  justify-content:center!important;
}
.today-clear-supports-actions .support-action.danger{
  border-color:#E7B8B2!important;
  background:#FFF4F2!important;
  color:#8A4B46!important;
}
@keyframes todayClearSupportsSheetIn{
  from{transform:translateY(18px);opacity:.72}
  to{transform:translateY(0);opacity:1}
}
@media (max-width:370px){
  .today-routine-controls{
    gap:5px!important;
    padding-left:12px!important;
    padding-right:12px!important;
  }
  .today-routine-controls .support-action.today-plan-footer-action{
    gap:4px!important;
    padding:0 6px!important;
    font-size:.72rem!important;
  }
  .today-plan-control-icon,
  .today-plan-control-icon svg{
    width:16px!important;
    height:16px!important;
  }
}
@media (prefers-reduced-motion:reduce){
  .today-clear-supports-panel{animation:none!important}
}
@media print{
  .today-plan-overflow,
  .today-clear-supports-sheet,
  .today-routine-controls{display:none!important}
}
.today-routine-controls .today-plan-footer-action>span:last-child{
  min-width:0!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
}

/* SC-PLAN-05R1 — restore floating Today actions and keep full mobile labels. */
.today-routine-controls.today-floating-plan-actions{
  display:grid!important;
  grid-template-columns:minmax(0,1.08fr) minmax(0,.9fr) minmax(0,1.16fr)!important;
  gap:8px!important;
  align-items:stretch!important;
  margin:12px 0 0!important;
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
}
.today-routine-controls.today-floating-plan-actions .support-action.today-plan-footer-action{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  width:100%!important;
  min-width:0!important;
  min-height:56px!important;
  padding:8px 8px!important;
  border-radius:12px!important;
  font-size:.86rem!important;
  font-weight:850!important;
  line-height:1.06!important;
  white-space:normal!important;
  text-align:center!important;
  overflow:visible!important;
  text-overflow:clip!important;
  box-shadow:0 5px 13px rgba(15,23,42,.035)!important;
}
.today-routine-controls.today-floating-plan-actions .support-action.today-plan-footer-action.primary{
  box-shadow:0 7px 16px rgba(54,171,156,.14)!important;
}
.today-routine-controls.today-floating-plan-actions .today-plan-footer-action>span:last-child{
  display:block!important;
  width:100%!important;
  min-width:0!important;
  max-width:none!important;
  overflow:visible!important;
  text-overflow:clip!important;
  white-space:normal!important;
  overflow-wrap:normal!important;
  word-break:normal!important;
  hyphens:none!important;
}
@media (max-width:620px){
  .today-routine-controls.today-floating-plan-actions{
    grid-template-columns:minmax(0,1.1fr) minmax(0,.88fr) minmax(0,1.18fr)!important;
    gap:7px!important;
    margin-top:11px!important;
  }
  .today-routine-controls.today-floating-plan-actions .support-action.today-plan-footer-action{
    min-height:58px!important;
    padding:7px 6px!important;
    font-size:clamp(.76rem,3.45vw,.86rem)!important;
    line-height:1.04!important;
  }
}
@media (max-width:370px){
  .today-routine-controls.today-floating-plan-actions{
    grid-template-columns:minmax(0,1.08fr) minmax(0,.86fr) minmax(0,1.2fr)!important;
    gap:5px!important;
    padding:0!important;
  }
  .today-routine-controls.today-floating-plan-actions .support-action.today-plan-footer-action{
    min-height:58px!important;
    padding:7px 4px!important;
    font-size:.72rem!important;
  }
}

/* SC-PLAN-05S — supports-first controls + flat expanded support hierarchy. */
.today-routine-controls.today-floating-plan-actions{
  grid-template-columns:minmax(0,1fr) auto!important;
  gap:9px!important;
  align-items:stretch!important;
}
.today-routine-controls.today-floating-plan-actions .today-plan-footer-primary{
  min-height:56px!important;
  padding:9px 18px!important;
  font-size:.91rem!important;
  font-weight:900!important;
}
.today-routine-controls.today-floating-plan-actions .today-plan-footer-secondary{
  width:clamp(116px,27vw,154px)!important;
  min-height:56px!important;
  padding:9px 14px!important;
  border-color:#D8E4E1!important;
  background:#fff!important;
  color:#344946!important;
  font-size:.84rem!important;
  box-shadow:0 4px 11px rgba(15,23,42,.025)!important;
}

.today-row-expanded-card,
.today-support-card-detail-body.today-row-expanded-card{
  grid-column:3 / -1!important;
  grid-row:2!important;
  gap:10px!important;
  margin:0 10px 12px 0!important;
  padding:0 0 2px!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
}
.today-row-expanded-topline{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:10px!important;
  min-height:34px!important;
}
.today-row-expanded-card .today-row-expanded-kicker{
  display:inline-flex!important;
  align-items:center!important;
  min-height:24px!important;
  margin:0!important;
  color:#31786F!important;
  font-size:.7rem!important;
  font-weight:950!important;
  letter-spacing:.095em!important;
  line-height:1.1!important;
  text-transform:uppercase!important;
}
.today-row-expanded-card .today-row-favorite-button{
  position:static!important;
  flex:0 0 auto!important;
  width:34px!important;
  min-width:34px!important;
  height:34px!important;
  min-height:34px!important;
  padding:0!important;
  border:1px solid #DCE6E3!important;
  border-radius:999px!important;
  background:#fff!important;
  color:#64748B!important;
  box-shadow:none!important;
}
.today-row-expanded-card .today-row-favorite-button.is-favorite{
  border-color:rgba(54,171,156,.38)!important;
  background:#EEF9F6!important;
  color:#28766C!important;
}
.today-row-how-to{
  display:grid!important;
  gap:5px!important;
  padding:12px 13px!important;
  border:0!important;
  border-radius:13px!important;
  background:#F2F8F6!important;
  box-shadow:none!important;
}
.today-row-how-to strong{
  color:#31786F!important;
  font-size:.71rem!important;
  font-weight:950!important;
  letter-spacing:.09em!important;
  text-transform:uppercase!important;
}
.today-row-how-to p{
  margin:0!important;
  color:#344845!important;
  font-size:.91rem!important;
  line-height:1.48!important;
}
.today-row-expanded-tags{
  margin:0!important;
  gap:6px!important;
}
.today-row-expanded-tags .today-helper-tag{
  min-height:25px!important;
  border:0!important;
  background:#EEF2F4!important;
  font-size:.71rem!important;
}
.today-support-card-detail-actions.planned-support-menu,
.today-row-expanded-card .today-support-card-detail-actions.planned-support-menu{
  display:grid!important;
  grid-template-columns:1fr!important;
  gap:8px!important;
  padding-top:2px!important;
}
.today-expanded-icon-actions{
  display:grid!important;
  grid-template-columns:repeat(auto-fit,minmax(88px,1fr))!important;
  gap:0!important;
  padding:3px!important;
  border:0!important;
  border-radius:14px!important;
  background:#F3F7F6!important;
  overflow:hidden!important;
}
.today-icon-action{
  min-width:0!important;
  min-height:52px!important;
  padding:6px 4px!important;
  border:0!important;
  border-radius:11px!important;
  background:transparent!important;
  color:#3F5551!important;
  font-size:.72rem!important;
  font-weight:900!important;
  box-shadow:none!important;
}
.today-icon-action + .today-icon-action{
  box-shadow:inset 1px 0 0 rgba(207,220,217,.78)!important;
}
.today-icon-action:hover,
.today-icon-action:focus-visible{
  border:0!important;
  background:#fff!important;
  color:#25645C!important;
  box-shadow:none!important;
}
.today-icon-action + .today-icon-action:hover,
.today-icon-action + .today-icon-action:focus-visible{
  box-shadow:inset 1px 0 0 rgba(207,220,217,.78)!important;
}
.today-icon-action-log.is-logged{
  border:0!important;
  background:#E8F6F2!important;
  color:#25645C!important;
}
.today-icon-action.is-danger{
  color:#80504D!important;
}
.today-expanded-detail-links{
  gap:3px 16px!important;
}
.today-expanded-detail-links .support-action.link{
  min-height:32px!important;
  padding:2px 0!important;
  font-size:.77rem!important;
}
.today-vizicues-helper-link{
  width:100%!important;
  margin:1px 0 0!important;
  padding:11px 0 0!important;
  border:0!important;
  border-top:1px solid #E1EAE8!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
}
.today-vizicues-helper-link span{
  color:#2F756C!important;
  font-size:.88rem!important;
  font-weight:900!important;
  text-decoration:none!important;
}
.today-vizicues-helper-link small{
  margin-top:2px!important;
  color:#64748B!important;
  font-size:.74rem!important;
  line-height:1.3!important;
}
@media (max-width:620px){
  .today-routine-controls.today-floating-plan-actions{
    grid-template-columns:minmax(0,1fr) auto!important;
    gap:8px!important;
  }
  .today-routine-controls.today-floating-plan-actions .today-plan-footer-primary{
    min-height:56px!important;
    padding-inline:12px!important;
    font-size:clamp(.82rem,3.65vw,.91rem)!important;
  }
  .today-routine-controls.today-floating-plan-actions .today-plan-footer-secondary{
    width:clamp(108px,30vw,136px)!important;
    min-height:56px!important;
    padding-inline:9px!important;
    font-size:clamp(.76rem,3.25vw,.84rem)!important;
  }
  .today-row-expanded-card,
  .today-support-card-detail-body.today-row-expanded-card{
    grid-column:3 / -1!important;
    margin-right:8px!important;
    padding:0 0 2px!important;
  }
  .today-icon-action{
    min-height:50px!important;
    padding-inline:2px!important;
    font-size:.69rem!important;
  }
}
@media (max-width:350px){
  .today-routine-controls.today-floating-plan-actions{
    gap:6px!important;
  }
  .today-routine-controls.today-floating-plan-actions .today-plan-footer-secondary{
    width:102px!important;
    padding-inline:6px!important;
    font-size:.72rem!important;
  }
  .today-expanded-icon-actions{
    padding:2px!important;
  }
  .today-icon-action{
    min-height:48px!important;
    font-size:.66rem!important;
  }
}


/* SC-PLAN-05S1 — expanded title wrap + details ownership cleanup. */
.today-compact-support-card.is-expanded .today-row-title-line{
  align-items:start!important;
}
.today-compact-support-card.is-expanded .today-row-title-line h3{
  white-space:normal!important;
  overflow:visible!important;
  text-overflow:clip!important;
  overflow-wrap:anywhere!important;
  line-height:1.18!important;
}

/* SC-PLAN-05S2 — single Smart Suggest action + Templates in plan overflow. */
.today-routine-controls.today-floating-plan-actions{
  grid-template-columns:minmax(0,1fr)!important;
  gap:0!important;
}
.today-routine-controls.today-floating-plan-actions .support-action.today-plan-footer-action.today-plan-footer-primary{
  width:100%!important;
  min-height:52px!important;
  padding:6px 16px!important;
  border-radius:13px!important;
  font-size:1.06rem!important;
  font-weight:900!important;
  line-height:1.05!important;
}
.today-routine-controls.today-floating-plan-actions .today-plan-footer-secondary{
  display:none!important;
}
@media (max-width:620px){
  .today-routine-controls.today-floating-plan-actions .support-action.today-plan-footer-action.today-plan-footer-primary{
    min-height:50px!important;
    padding:6px 14px!important;
    font-size:1.05rem!important;
  }
}
@media (max-width:350px){
  .today-routine-controls.today-floating-plan-actions .support-action.today-plan-footer-action.today-plan-footer-primary{
    min-height:50px!important;
    padding-inline:12px!important;
    font-size:1rem!important;
  }
}


/* SC-PLAN-05T — Review Today is an eligible-only catch-up queue. */
.today-log-helper-card.today-log-collapse.today-review-catchup-card{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:14px!important;
  margin-top:10px!important;
  padding:14px 0 0!important;
  border:0!important;
  border-top:1px solid rgba(215,229,227,.9)!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
}
.today-review-catchup-copy{
  display:grid!important;
  gap:4px!important;
  min-width:0!important;
}
.today-review-catchup-copy h2{
  margin:0!important;
  color:#203330!important;
  font-size:1rem!important;
  line-height:1.15!important;
  font-weight:850!important;
  letter-spacing:-.02em!important;
}
.today-review-catchup-copy p{
  margin:0!important;
  color:#657976!important;
  font-size:.84rem!important;
  line-height:1.35!important;
}
.today-review-catchup-action{
  flex:0 0 auto!important;
  min-height:42px!important;
  padding:8px 15px!important;
  border-radius:13px!important;
  white-space:nowrap!important;
  font-size:.86rem!important;
  font-weight:900!important;
}
.today-quick-outcome-sheet.is-review-queue .today-quick-outcome-panel{
  gap:13px!important;
}
.today-quick-outcome-sheet.is-review-queue .today-quick-outcome-heading-copy>span{
  letter-spacing:.075em!important;
}
@media (max-width:480px){
  .today-log-helper-card.today-log-collapse.today-review-catchup-card{
    gap:10px!important;
  }
  .today-review-catchup-action{
    min-height:40px!important;
    padding-inline:12px!important;
    font-size:.82rem!important;
  }
}
@media (max-width:350px){
  .today-log-helper-card.today-log-collapse.today-review-catchup-card{
    display:grid!important;
    grid-template-columns:minmax(0,1fr)!important;
  }
  .today-review-catchup-action{
    width:100%!important;
  }
}


/* APPS-PRO-02 — entitlement-aware templates + full-day ViziCues transfer */
.today-plan-menu-action { gap: .65rem; }
.today-plan-menu-action .apps-pro-inline-marker,
.apps-pro-inline-marker {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--orange-soft, #fff0e5);
  color: var(--navy, #17324d);
  font-size: .72rem;
  font-weight: 800;
  white-space: nowrap;
}
.today-vizicues-full-day-panel { max-width: min(620px, calc(100vw - 24px)); }
.today-vizicues-review-list.is-full-day { max-height: min(45vh, 420px); overflow: auto; }
.today-vizicues-review-card.is-static { cursor: default; text-align: left; }
.today-vizicues-order {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  border-radius: 999px;
  background: var(--mint-soft, #e8f7f2);
  font-weight: 800;
}
.today-vizicues-full-day-summary { display: flex; justify-content: space-between; gap: .75rem; flex-wrap: wrap; }
.today-vizicues-full-day-summary span { color: var(--text-muted, #526273); }
.today-template-card.is-preserved-readonly { border-style: dashed; }
.today-template-card-main em { display: block; margin-top: .35rem; color: var(--text-muted, #526273); font-size: .78rem; font-style: normal; }
@media (max-width: 520px) {
  .today-plan-menu-action { align-items: flex-start; }
  .today-plan-menu-action .apps-pro-inline-marker { margin-top: -1px; }
  .today-vizicues-full-day-summary { display: grid; }
}

/* APPS-PRO-04H — requested Today UI cleanup only. */
.today-plan-overflow>summary{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:5px!important;
  width:auto!important;
  min-width:0!important;
  height:42px!important;
  min-height:42px!important;
  padding:0 13px!important;
  letter-spacing:0!important;
  white-space:nowrap!important;
  font-size:.82rem!important;
  font-weight:850!important;
}
.today-plan-overflow-label{display:inline-block!important}
.today-plan-overflow-caret{
  display:inline-block!important;
  font-size:.82em!important;
  line-height:1!important;
  transform-origin:center!important;
  transition:transform .16s ease!important;
}
.today-plan-overflow[open] .today-plan-overflow-caret{transform:rotate(180deg)!important}

.today-compact-support-card,
.planned-support-item.compact.today-compact-support-card{
  grid-template-rows:62px auto!important;
}
.today-row-title-line h3{
  display:-webkit-box!important;
  -webkit-box-orient:vertical!important;
  -webkit-line-clamp:2!important;
  max-height:2.16em!important;
  white-space:normal!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  overflow-wrap:anywhere!important;
  line-height:1.08!important;
}
html.sensycues-text-large .today-compact-support-card,
html.sensycues-text-large .planned-support-item.compact.today-compact-support-card,
html.sensycues-text-extra-large .today-compact-support-card,
html.sensycues-text-extra-large .planned-support-item.compact.today-compact-support-card{
  grid-template-rows:minmax(62px,auto) auto!important;
}

.today-routine-controls.today-floating-plan-actions .support-action.today-plan-footer-action.today-plan-footer-primary{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:8px!important;
  height:56px!important;
  min-height:56px!important;
  max-height:56px!important;
  padding:0 16px!important;
}
.today-smart-suggest-icon{
  flex:0 0 auto!important;
  width:auto!important;
  color:inherit!important;
  font-size:.95em!important;
  line-height:1!important;
  overflow:visible!important;
}
.today-routine-controls.today-floating-plan-actions .today-plan-footer-primary>span:last-child{
  flex:0 1 auto!important;
  display:inline-block!important;
  width:auto!important;
  max-width:100%!important;
}
@media (max-width:620px){
  .today-routine-controls.today-floating-plan-actions .support-action.today-plan-footer-action.today-plan-footer-primary{
    height:56px!important;
    min-height:56px!important;
    max-height:56px!important;
    padding:0 14px!important;
  }
}
@media (prefers-reduced-motion:reduce){
  .today-plan-overflow-caret{transition:none!important}
}



/* SC-LIBRARY-01 — compact library shell + filter hierarchy lock. */
#panel-library.tab-panel.active{display:block!important}
#panel-library .library-shell-header,#panel-library #libraryContext,#panel-library #libraryCustomWorkspace,#panel-library #libraryFilters,#panel-library #activityList{grid-column:auto!important}
#libraryFilters{position:static!important;top:auto!important;margin-bottom:12px!important}
.library-shell-header{display:grid;gap:12px;margin-bottom:12px;padding:4px 2px 0}
.library-title-row{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.library-title-row .mini-label{margin-bottom:3px}
.library-title-line{display:flex;align-items:baseline;gap:10px;min-width:0}
.library-title-line h1{margin:0;color:var(--sg-ink);font-size:clamp(1.42rem,4.7vw,1.72rem);line-height:1.05;letter-spacing:-.045em}
.library-count{color:var(--sg-muted);font-size:.78rem;font-weight:850;white-space:nowrap}
.library-view-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;padding:4px;border:1px solid rgba(203,213,225,.72);border-radius:16px;background:rgba(241,245,249,.82)}
.library-view-tab{min-height:40px;padding:7px 10px;border:0;border-radius:12px;background:transparent;color:var(--sg-muted);font-size:.84rem;font-weight:900;line-height:1.1}
.library-view-tab.is-active{background:#fff;color:var(--sg-ink);box-shadow:0 3px 12px rgba(15,23,42,.08),inset 0 0 0 1px rgba(203,213,225,.55)}
.library-view-tab:focus-visible{outline:3px solid rgba(54,171,156,.32);outline-offset:2px}
.library-custom-workspace{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:0 0 12px;padding:13px 14px;border:1px solid rgba(54,171,156,.24);border-radius:18px;background:linear-gradient(145deg,#fff,#F2FBF9)}
.library-custom-workspace[hidden]{display:none!important}
.library-custom-workspace h2{margin:0 0 7px;color:var(--sg-ink);font-size:1rem;line-height:1.2;letter-spacing:-.02em}
.library-custom-workspace .mini-label{margin-bottom:3px}
.library-custom-workspace .library-custom-support-buttons{flex:0 0 auto}
.library-search-shell{display:grid;gap:9px;margin-bottom:12px;padding:10px;border:1px solid rgba(203,213,225,.82);border-radius:20px;background:rgba(255,255,255,.94);box-shadow:0 5px 16px rgba(15,23,42,.04)}
.library-search-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:stretch}
.library-search-field{position:relative;display:block;min-width:0}
.library-search-field input{width:100%;height:48px;min-height:48px;padding:0 13px 0 43px;border:1px solid rgba(148,163,184,.58);border-radius:15px;background:#fff;color:var(--sg-ink);font-size:1rem;font-weight:700;box-shadow:inset 0 1px 2px rgba(15,23,42,.025)}
.library-search-field input::placeholder{color:#78889B;font-weight:650}
.library-search-icon{position:absolute;left:15px;top:50%;z-index:1;transform:translateY(-52%);color:var(--sg-muted);font-size:1.25rem;line-height:1;pointer-events:none}
.library-filter-button{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-width:88px;min-height:48px;padding:0 13px;border:1px solid rgba(148,163,184,.58);border-radius:15px;background:#fff;color:var(--sg-ink);font-size:.86rem;font-weight:900}
.library-filter-button.is-active{border-color:rgba(54,171,156,.5);background:var(--sg-teal-soft);color:var(--sg-brand-dark)}
.library-filter-count{display:grid;place-items:center;min-width:21px;height:21px;padding:0 5px;border-radius:999px;background:var(--sg-brand);color:#fff;font-size:.69rem;font-weight:950}
.library-filter-count[hidden]{display:none!important}
.library-quick-toolbar{min-width:0;overflow:hidden}
.library-quick-filter-row{display:flex!important;flex-wrap:nowrap!important;gap:7px!important;overflow-x:auto;padding:1px 1px 4px;scrollbar-width:none;-webkit-overflow-scrolling:touch;overscroll-behavior-inline:contain}
.library-quick-filter-row::-webkit-scrollbar{display:none}
.library-quick-filter-row .context-filter-chip{flex:0 0 auto!important;min-height:36px!important;padding-inline:12px!important}
.library-filter-status-row{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:0}
.library-filter-status-row:has(.active-quick-filters[hidden]){display:none}
.library-filter-status-row .active-quick-filters{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.73rem!important}
.library-clear-all{flex:0 0 auto;min-height:36px;padding:0 7px;border:0;background:transparent;color:var(--sg-brand-dark);font-size:.78rem;font-weight:950}
.library-clear-all[hidden]{display:none!important}
.library-filter-sheet{z-index:86}
.library-filter-panel{width:min(560px,100%);max-height:min(90svh,760px);padding:10px 14px calc(16px + var(--safe-bottom))}
.library-filter-panel:focus{outline:none}
.library-filter-description{max-width:42ch;margin:5px 0 0;color:var(--sg-muted);font-size:.8rem;font-weight:650;line-height:1.4}
.library-filter-sheet-body{display:grid;gap:13px;padding:3px 0 14px}
.library-filter-fieldset{min-width:0;margin:0;padding:12px;border:1px solid rgba(203,213,225,.78);border-radius:16px;background:#F8FAFC}
.library-filter-fieldset legend{padding:0 5px;color:var(--sg-ink);font-size:.8rem;font-weight:950}
.library-filter-fieldset .secondary-context-chip-row{padding-top:3px!important}
.library-filter-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}
.library-filter-grid>label{display:grid;gap:6px;color:var(--sg-muted);font-size:.72rem;font-weight:900;text-transform:uppercase;letter-spacing:.05em}
.library-filter-grid select{width:100%;min-height:46px;padding:0 11px;border:1px solid rgba(203,213,225,.9);border-radius:14px;background:#fff;color:var(--sg-ink);font:inherit;font-size:.9rem;font-weight:750;text-transform:none;letter-spacing:0}
.library-school-filter{display:flex!important;align-items:center;gap:9px;min-height:46px;align-self:end;padding:0 12px;border:1px solid rgba(203,213,225,.9);border-radius:14px;background:#fff;color:var(--sg-ink)!important;font-size:.86rem!important;font-weight:800!important;text-transform:none!important;letter-spacing:0!important}
.library-school-filter input{width:20px;height:20px;accent-color:var(--sg-brand)}
.library-filter-sheet-actions{position:sticky;bottom:calc(-16px - var(--safe-bottom));display:grid;grid-template-columns:auto minmax(0,1fr);gap:8px;padding:12px 0 calc(14px + var(--safe-bottom));background:linear-gradient(180deg,rgba(255,255,255,0),#fff 22%)}
.library-filter-sheet-actions .btn{min-height:48px;border-radius:15px;font-weight:950}
.library-filter-sheet-actions .btn.primary{border:1px solid var(--sg-brand);background:var(--sg-brand);color:#fff}
.library-filter-sheet-actions .btn.quiet{border:1px solid var(--sg-line);background:#fff;color:var(--sg-brand-dark)}
.library-filter-sheet-actions .btn[hidden]{display:none!important}
.library-empty-state{display:grid;justify-items:center;gap:10px}
.library-empty-state p{margin:0;max-width:42ch}
html.sensycues-text-large .library-filter-status-row .active-quick-filters,
html.sensycues-text-extra-large .library-filter-status-row .active-quick-filters{white-space:normal}
html.sensycues-text-extra-large .library-search-row{grid-template-columns:1fr}
html.sensycues-text-extra-large .library-filter-button{width:100%}
html.sensycues-text-extra-large .library-custom-workspace{align-items:stretch;flex-direction:column}
@media(max-width:560px){
  .library-custom-workspace{align-items:stretch;flex-direction:column}
  .library-custom-workspace .library-custom-support-buttons{display:grid;grid-template-columns:1fr 1fr}
  .library-custom-workspace .library-custom-support-buttons .btn{width:100%}
  .library-filter-grid{grid-template-columns:1fr}
  .library-school-filter{align-self:stretch}
}
@media(max-width:370px){
  .library-search-row{grid-template-columns:1fr}
  .library-filter-button{width:100%}
  .library-custom-workspace .library-custom-support-buttons{grid-template-columns:1fr}
}
@media(min-width:760px){
  #panel-library.tab-panel.active{display:block!important}
  .library-shell-header{grid-template-columns:minmax(0,1fr) auto;align-items:end}
  .library-view-tabs{min-width:330px}
  .library-search-shell{padding:12px}
  .library-quick-filter-row{padding-bottom:2px}
}
@media(prefers-reduced-motion:reduce){
  .library-filter-sheet *,.library-view-tab,.library-filter-button{animation:none!important;transition:none!important;scroll-behavior:auto!important}
}
@media print{.library-filter-sheet{display:none!important}}
html.sensycues-display-discreet:not(.sensycues-high-contrast) :is(.library-search-shell,.library-custom-workspace,.library-view-tabs,.library-filter-fieldset,.library-filter-panel){background:#fff!important;background-image:none!important;border-color:#D5DDDB!important;box-shadow:none!important}
html.sensycues-display-discreet:not(.sensycues-high-contrast) :is(.library-view-tab.is-active,.library-filter-button.is-active){background:#E7ECEA!important;border-color:#BCC9C6!important;color:#344F4B!important;box-shadow:none!important}
html.sensycues-display-discreet:not(.sensycues-high-contrast) .library-filter-count{background:#53716D!important}
html.sensycues-simplified-layout :is(.library-search-shell,.library-custom-workspace,.library-view-tabs,.library-filter-fieldset){background-image:none!important;box-shadow:none!important}
html.sensycues-high-contrast :is(.library-search-shell,.library-custom-workspace,.library-view-tabs,.library-filter-fieldset,.library-filter-panel){border:2px solid CanvasText!important;background:Canvas!important;box-shadow:none!important}
html.sensycues-high-contrast :is(.library-view-tab.is-active,.library-filter-button.is-active,.library-filter-count){background:Highlight!important;color:HighlightText!important;border-color:Highlight!important}
@media(forced-colors:active){
  :is(.library-search-shell,.library-custom-workspace,.library-view-tabs,.library-filter-fieldset,.library-filter-panel){forced-color-adjust:auto;border:1px solid ButtonText}
  :is(.library-view-tab,.library-filter-button,.library-clear-all,.library-school-filter){forced-color-adjust:auto;border:1px solid ButtonText}
}

/* SC-LIBRARY-02 — compact support cards + explicit shared-details contexts. */
.activity-card{
  padding:12px 54px 12px 13px!important;
  border:1px solid rgba(226,232,240,.86)!important;
  border-radius:16px!important;
  background:#fff!important;
  box-shadow:0 3px 10px rgba(15,23,42,.035)!important;
}
.activity-card::before{
  inset:12px auto 12px 0!important;
  width:3px!important;
  border-radius:0 999px 999px 0!important;
  opacity:.72!important;
}
.activity-card .activity-topline{
  min-width:0!important;
  padding-right:2px!important;
  font-size:.7rem!important;
  line-height:1.15!important;
}
.activity-card h3{
  display:-webkit-box!important;
  margin:7px 0 4px!important;
  overflow:hidden!important;
  -webkit-box-orient:vertical!important;
  -webkit-line-clamp:2!important;
  font-size:1rem!important;
  line-height:1.2!important;
}
.activity-card .activity-instructions{
  display:-webkit-box!important;
  overflow:hidden!important;
  -webkit-box-orient:vertical!important;
  -webkit-line-clamp:2!important;
  font-size:.86rem!important;
  line-height:1.38!important;
}
.activity-card .tag-row{
  gap:5px!important;
  margin-top:8px!important;
}
.activity-card .tag{
  padding:4px 7px!important;
  font-size:.68rem!important;
}
.activity-card details{display:none!important}
.library-card-favorite-button,
.activity-card .library-card-favorite-button{
  position:absolute!important;
  top:6px!important;
  right:6px!important;
  display:grid!important;
  place-items:center!important;
  width:44px!important;
  height:44px!important;
  min-width:44px!important;
  min-height:44px!important;
  padding:0!important;
  border:0!important;
  border-radius:12px!important;
  background:transparent!important;
  color:#64748B!important;
  box-shadow:none!important;
  font-size:1.28rem!important;
  line-height:1!important;
}
.library-card-favorite-button:hover{background:rgba(241,245,249,.7)!important;box-shadow:none!important}
.library-card-favorite-button:active{background:rgba(54,171,156,.1)!important}
.library-card-favorite-button.is-favorite,
.library-card-favorite-button.is-favorite:hover{
  border:0!important;
  background:transparent!important;
  color:#D66F2E!important;
  box-shadow:none!important;
}
.library-action-row{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) auto!important;
  align-items:center!important;
  gap:7px!important;
  margin-top:10px!important;
}
.library-action-row .support-action{
  min-height:40px!important;
  border-radius:12px!important;
  padding-inline:12px!important;
}
.library-action-row .support-action.primary{box-shadow:0 5px 12px rgba(54,171,156,.14)!important}
.library-action-row .library-details-action{
  min-width:72px!important;
  border-color:transparent!important;
  background:transparent!important;
  color:#52615F!important;
  text-decoration:underline!important;
  text-underline-offset:3px!important;
  box-shadow:none!important;
}
.library-action-row .library-details-action:hover{background:#F8FAFC!important;color:var(--sg-brand-dark)!important}

.attempt-sheet[data-details-context="library"] .attempt-panel{max-height:92svh!important}
.attempt-sheet[data-details-context="today"] .attempt-panel{max-height:88svh!important}
.attempt-fit-card{background:#FBFEFD!important}
.attempt-fit-tags{display:flex;flex-wrap:wrap;gap:6px}
.attempt-fit-tags .attempt-chip{padding:5px 8px!important;font-size:.72rem!important}
.attempt-library-tools{display:grid;gap:10px}
.attempt-library-utility-row{display:flex;flex-wrap:wrap;gap:6px}
.attempt-library-link{
  display:inline-flex;
  align-items:center;
  gap:6px;
  min-height:44px;
  padding:0 9px;
  border:0;
  border-radius:12px;
  background:transparent;
  color:#52615F;
  font:inherit;
  font-size:.79rem;
  font-weight:900;
  text-decoration:underline;
  text-underline-offset:3px;
}
.attempt-library-link:hover{background:#F8FAFC;color:var(--sg-brand-dark)}
.attempt-library-link:focus-visible{outline:3px solid rgba(54,171,156,.35);outline-offset:2px}
.attempt-favorite-action.is-favorite{color:#D66F2E}
.attempt-favorite-action span[aria-hidden="true"]{font-size:1.12rem;text-decoration:none}
.attempt-library-secondary-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.attempt-library-secondary-actions .secondary-button{width:100%;padding-inline:10px}
.attempt-library-sticky-action{
  position:sticky;
  bottom:calc(-18px - var(--safe-bottom));
  z-index:3;
  margin:0 -14px calc(-18px - var(--safe-bottom));
  padding:12px 14px calc(18px + var(--safe-bottom));
  background:linear-gradient(180deg,rgba(255,255,255,.76),#fff 24%);
  border-top:1px solid rgba(226,232,240,.72);
}
.attempt-library-sticky-action .primary-button{width:100%}
.attempt-sheet[data-details-context="today"] .attempt-summary.is-support-context{padding-bottom:14px!important}
.attempt-sheet[data-details-context="today"] .attempt-library-tools,
.attempt-sheet[data-details-context="try-now"] .attempt-library-tools{display:none!important}

@media (max-width:380px){
  .library-action-row{grid-template-columns:minmax(0,1fr) auto!important}
  .library-action-row .support-action{width:auto!important}
  .attempt-library-secondary-actions{grid-template-columns:1fr}
}
@media (min-width:700px){
  .activity-card{padding:13px 56px 13px 14px!important}
}

/* SC-LIBRARY-03 — canonical add-to-plan bridge lock. */
.today-library-inline-fallback{
  align-self:flex-start;
  margin-top:1px;
  padding-inline:2px!important;
  color:var(--sg-muted)!important;
  font-size:.76rem!important;
}
.support-action.is-already-added,
.primary-button.is-already-added{
  border-color:rgba(54,171,156,.28)!important;
  background:var(--sg-teal-soft)!important;
  color:var(--sg-brand-dark)!important;
  box-shadow:none!important;
  opacity:1!important;
  cursor:default!important;
}
.library-plan-anchor-sheet{z-index:87}
.library-plan-anchor-panel{
  width:min(560px,100%);
  max-height:min(90svh,760px);
  padding:10px 14px calc(18px + var(--safe-bottom));
}
.library-plan-anchor-panel:focus{outline:none}
.library-plan-anchor-body{display:grid;gap:10px;padding:2px 0 4px}
.library-plan-anchor-list{display:grid;gap:8px}
.library-plan-anchor-choice{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  width:100%;
  min-height:64px;
  padding:11px 12px;
  border:1px solid rgba(203,213,225,.82);
  border-radius:15px;
  background:#fff;
  color:var(--sg-ink);
  text-align:left;
  box-shadow:none;
}
.library-plan-anchor-choice:hover{border-color:rgba(54,171,156,.48);background:#F8FCFB}
.library-plan-anchor-choice:focus-visible{outline:3px solid rgba(54,171,156,.35);outline-offset:2px}
.library-plan-anchor-choice.is-visible-today{border-color:rgba(54,171,156,.36);background:#F7FCFB}
.library-plan-anchor-choice.is-already-added{
  border-color:rgba(54,171,156,.24);
  background:var(--sg-teal-soft);
  opacity:1;
}
.library-plan-anchor-choice-copy{display:grid;gap:3px;min-width:0}
.library-plan-anchor-choice-copy strong{font-size:.93rem;line-height:1.2}
.library-plan-anchor-choice-copy small{color:var(--sg-muted);font-size:.75rem;font-weight:650;line-height:1.35}
.library-plan-anchor-choice-status{
  flex:0 0 auto;
  max-width:116px;
  color:var(--sg-brand-dark);
  font-size:.7rem;
  font-weight:950;
  line-height:1.2;
  text-align:right;
}
html.sensycues-text-extra-large .library-plan-anchor-choice{align-items:flex-start;flex-direction:column}
html.sensycues-text-extra-large .library-plan-anchor-choice-status{max-width:none;text-align:left}
html.sensycues-display-discreet:not(.sensycues-high-contrast) :is(.library-plan-anchor-panel,.library-plan-anchor-choice){background:#fff!important;background-image:none!important;border-color:#D5DDDB!important;box-shadow:none!important}
html.sensycues-display-discreet:not(.sensycues-high-contrast) .library-plan-anchor-choice.is-already-added{background:#E7ECEA!important}
html.sensycues-high-contrast :is(.library-plan-anchor-panel,.library-plan-anchor-choice){border:2px solid CanvasText!important;background:Canvas!important;box-shadow:none!important}
html.sensycues-high-contrast .library-plan-anchor-choice.is-already-added{background:Highlight!important;color:HighlightText!important}
@media(max-width:420px){
  .library-plan-anchor-choice{align-items:flex-start;flex-direction:column}
  .library-plan-anchor-choice-status{max-width:none;text-align:left}
}
@media(prefers-reduced-motion:reduce){
  .library-plan-anchor-sheet *{animation:none!important;transition:none!important;scroll-behavior:auto!important}
}
@media print{.library-plan-anchor-sheet{display:none!important}}


/* SC-LIBRARY-04 — professional polish + regression release lock. */
#panel-library{padding-bottom:calc(12px + var(--safe-bottom))}
#panel-library .activity-list{padding-bottom:8px}
.library-state-card{
  grid-column:1 / -1;
  display:grid;
  justify-items:center;
  gap:9px;
  min-height:172px;
  padding:24px 18px;
  border:1px dashed rgba(148,163,184,.64);
  border-radius:18px;
  background:rgba(255,255,255,.9);
  color:var(--sg-muted);
  text-align:center;
}
.library-state-card strong{color:var(--sg-ink);font-size:1rem;line-height:1.25}
.library-state-card p{max-width:44ch;margin:0;font-size:.86rem;line-height:1.48}
.library-state-icon{display:grid;place-items:center;width:40px;height:40px;border-radius:14px;background:var(--sg-teal-soft);color:var(--sg-brand-dark);font-size:1.2rem;font-weight:950}
.library-state-actions{display:flex;align-items:center;justify-content:center;gap:8px;flex-wrap:wrap;margin-top:2px}
.library-state-actions .btn{min-height:42px}
.library-loading-state{grid-template-columns:auto minmax(0,1fr);justify-items:start;align-items:center;min-height:108px;text-align:left}
.library-loading-state>div{display:grid;gap:4px}
.library-state-spinner,.library-button-spinner{display:inline-block;border-radius:50%;border:2px solid rgba(54,171,156,.2);border-top-color:var(--sg-brand);animation:librarySpin .75s linear infinite}
.library-state-spinner{width:28px;height:28px}
.library-button-spinner{width:15px;height:15px;flex:0 0 15px;border-color:rgba(255,255,255,.38);border-top-color:currentColor}
@keyframes librarySpin{to{transform:rotate(360deg)}}
.support-action.is-adding,.primary-button.is-adding{display:inline-flex;align-items:center;justify-content:center;gap:7px;cursor:progress!important;opacity:.84!important}
.support-action.is-already-added,.primary-button.is-already-added{display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:6px!important}
.library-plan-anchor-choice.is-already-added .library-plan-anchor-choice-status::before{content:"✓ ";font-weight:950}
.library-load-error .library-state-icon{background:#FFF4EC;color:#9A4E22}
@media(min-width:700px){
  .library-shell-header{gap:14px;margin-bottom:14px}
  .library-search-shell{margin-bottom:14px}
  #panel-library .activity-list{gap:12px}
  .library-state-card{min-height:190px;padding:30px}
}
@media(min-width:1040px){
  #panel-library .activity-list{grid-template-columns:repeat(3,minmax(0,1fr))}
  #panel-library .activity-card{min-height:100%}
}
@media(max-width:380px){
  .library-state-actions{display:grid;width:100%;grid-template-columns:1fr}
  .library-state-actions .btn{width:100%}
  .library-loading-state{grid-template-columns:1fr;justify-items:center;text-align:center}
}
@media(prefers-reduced-motion:reduce){
  .library-state-spinner,.library-button-spinner{animation:none!important;border-top-color:var(--sg-brand)!important}
}
html.sensycues-display-discreet:not(.sensycues-high-contrast) .library-state-card{background:#fff!important;border-color:#D5DDDB!important;box-shadow:none!important}
html.sensycues-high-contrast .library-state-card{border:2px solid CanvasText!important;background:Canvas!important;color:CanvasText!important}
@media(forced-colors:active){.library-state-card,.library-state-actions .btn{forced-color-adjust:auto;border:1px solid ButtonText}}

/* SensyCues current-day rollover + explicit last-support reuse */
.today-last-supports-card{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:12px;padding:16px 18px;border:1px solid rgba(54,171,156,.24);border-radius:var(--r-xl);background:linear-gradient(140deg,#FFFFFF,#F2FBF9);box-shadow:var(--sg-shadow-soft)}
.today-last-supports-copy{display:grid;gap:4px;min-width:0}.today-last-supports-copy>span{color:var(--sg-brand-dark);font-size:.72rem;font-weight:950;text-transform:uppercase;letter-spacing:.06em}.today-last-supports-copy h2{margin:0;color:var(--sg-ink);font-size:1.08rem;line-height:1.16;letter-spacing:-.03em}.today-last-supports-copy p{margin:0;color:var(--sg-muted);font-size:.88rem;line-height:1.45}.today-last-supports-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap;flex:0 0 auto}.today-last-supports-actions .support-action{min-height:40px}
@media (max-width:620px){.today-last-supports-card,.today-last-supports-actions{display:grid}.today-last-supports-actions .support-action{width:100%;justify-content:center}}
@media print{.today-last-supports-card{display:none!important}}

/* SC-TUTORIAL-01: first-use popup + optional guided tutorial (never embedded in Today) */
body.sensycues-welcome-open,
body.sensycues-tutorial-open{overflow:hidden;overscroll-behavior:none}
.sensycues-welcome-prompt[hidden],
.sensycues-tutorial-overlay[hidden]{display:none!important}
.sensycues-welcome-prompt{
  position:fixed;
  inset:0;
  z-index:12000;
  display:grid;
  place-items:center;
  padding:calc(18px + env(safe-area-inset-top,0px)) 18px calc(18px + env(safe-area-inset-bottom,0px));
}
.sensycues-welcome-scrim{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  padding:0;
  border:0;
  background:rgba(15,23,42,.52);
  cursor:default;
}
.sensycues-welcome-card{
  position:relative;
  z-index:1;
  display:grid;
  gap:12px;
  width:min(420px,100%);
  padding:26px 22px 22px;
  border:1px solid rgba(255,255,255,.72);
  border-radius:28px;
  background:linear-gradient(155deg,#FFFFFF 0%,#F2FBF8 100%);
  color:var(--sg-ink);
  box-shadow:0 30px 90px rgba(15,23,42,.32),0 3px 12px rgba(15,23,42,.12);
  outline:none;
}
.sensycues-welcome-card h2{
  margin:0;
  max-width:18rem;
  color:var(--sg-ink);
  font-size:clamp(1.48rem,6vw,1.9rem);
  line-height:1.08;
  letter-spacing:-.045em;
}
.sensycues-welcome-card p{
  margin:0;
  color:var(--sg-muted);
  font-size:1rem;
  font-weight:700;
  line-height:1.52;
}
.sensycues-welcome-close{
  position:absolute;
  top:12px;
  right:12px;
  display:grid;
  place-items:center;
  width:40px;
  height:40px;
  padding:0;
  border:1px solid var(--sg-line);
  border-radius:14px;
  background:#fff;
  color:var(--sg-ink);
  font:900 1.25rem/1 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
}
.sensycues-welcome-actions{display:grid;gap:10px;margin-top:4px}
.sensycues-tutorial-link{
  justify-self:start;
  min-height:44px;
  padding:7px 0;
  border:0;
  background:transparent;
  color:var(--sg-brand-dark);
  font-family:inherit;font-size:.97rem;font-weight:900;line-height:1.25;
  text-align:left;
  text-decoration:underline;
  text-decoration-thickness:1.5px;
  text-underline-offset:4px;
}
.sensycues-welcome-actions .support-action{justify-self:start}
.sensycues-welcome-card :focus-visible,
.sensycues-tutorial-card :focus-visible{
  outline:3px solid rgba(54,171,156,.42);
  outline-offset:3px;
}
.sensycues-tutorial-overlay{
  position:fixed;
  inset:0;
  z-index:12100;
  pointer-events:none;
}
.sensycues-tutorial-spotlight{
  position:fixed;
  z-index:0;
  border:3px solid #FFFFFF;
  border-radius:18px;
  background:transparent;
  box-shadow:0 0 0 9999px rgba(15,23,42,.66),0 0 0 6px rgba(54,171,156,.48),0 10px 34px rgba(15,23,42,.24);
  pointer-events:none;
  transition:left .16s ease,top .16s ease,width .16s ease,height .16s ease;
}
.sensycues-tutorial-card{
  position:fixed;
  z-index:2;
  display:grid;
  gap:11px;
  width:min(390px,calc(100vw - 24px));
  max-height:calc(100svh - 24px);
  overflow:auto;
  padding:18px;
  border:1px solid rgba(255,255,255,.78);
  border-radius:24px;
  background:#FFFFFF;
  color:var(--sg-ink);
  box-shadow:0 24px 72px rgba(15,23,42,.34),0 2px 8px rgba(15,23,42,.12);
  outline:none;
  pointer-events:auto;
}
.sensycues-tutorial-card-head{display:flex;align-items:center;justify-content:space-between;gap:12px}
.sensycues-tutorial-progress{
  color:var(--sg-brand-dark);
  font-size:.74rem;
  font-weight:950;
  letter-spacing:.05em;
  text-transform:uppercase;
}
.sensycues-tutorial-exit{
  min-height:40px;
  padding:7px 9px;
  border:0;
  border-radius:11px;
  background:transparent;
  color:var(--sg-muted);
  font-family:inherit;font-size:.79rem;font-weight:850;line-height:1.2;
}
.sensycues-tutorial-card h2{
  margin:0;
  color:var(--sg-ink);
  font-size:1.3rem;
  line-height:1.12;
  letter-spacing:-.035em;
}
.sensycues-tutorial-card p{
  margin:0;
  color:var(--sg-muted);
  font-size:.94rem;
  font-weight:650;
  line-height:1.5;
}
.sensycues-tutorial-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;margin-top:3px}
.sensycues-tutorial-actions [data-tutorial-action="back"]{margin-right:auto}
html[data-display-style="discreet"] .sensycues-welcome-card,
html[data-display-style="discreet"] .sensycues-tutorial-card{background:#F8FAF9}
html[data-high-contrast="true"] .sensycues-welcome-card,
html[data-high-contrast="true"] .sensycues-tutorial-card{border:2px solid currentColor}
html[data-high-contrast="true"] .sensycues-tutorial-spotlight{border-color:#FFFFFF;box-shadow:0 0 0 9999px rgba(0,0,0,.78),0 0 0 7px #000}
html[data-effective-reduce-motion="true"] .sensycues-tutorial-spotlight,
.sensycues-reduce-motion .sensycues-tutorial-spotlight{transition:none}
@media (max-width:620px){
  .sensycues-welcome-prompt{align-items:end;padding:12px 12px calc(12px + env(safe-area-inset-bottom,0px))}
  .sensycues-welcome-card{width:100%;padding:24px 18px 18px;border-radius:26px}
  .sensycues-welcome-actions .support-action{width:100%;justify-content:center}
  .sensycues-tutorial-card{padding:16px;border-radius:22px}
  .sensycues-tutorial-actions .support-action{min-height:43px}
}
@media print{
  .sensycues-welcome-prompt,
  .sensycues-tutorial-overlay{display:none!important}
}


/* SC-HANDOFF-NOW-02: ViziCues arrival is a compact SensyCues introduction, not a transfer receipt. */
.short-now-panel[data-short-now-entry="vizicues"] .short-now-head{
  margin-bottom:8px;
  padding-bottom:10px;
}
.short-now-panel[data-short-now-entry="vizicues"] .short-now-head h2{
  font-size:clamp(1.24rem,4.5vw,1.58rem);
}
.short-now-panel[data-short-now-entry="vizicues"] .short-now-head p{
  max-width:55ch;
  margin-top:5px;
  font-size:.86rem;
  line-height:1.38;
}
.short-now-source-banner.is-vizicues-intro{
  display:flex;
  align-items:baseline;
  gap:8px;
  margin:0 2px;
  padding:4px 2px 10px;
  border:0;
  border-bottom:1px solid rgba(54,171,156,.22);
  border-radius:0;
  background:transparent;
}
.short-now-source-banner.is-vizicues-intro .mini-label{
  flex:0 0 auto;
  margin:0;
  color:var(--sg-brand-dark);
  font-size:.72rem;
}
.short-now-source-banner.is-vizicues-intro strong{
  color:var(--sg-ink);
  font-size:.88rem;
  font-weight:850;
}
.short-now-runner.is-vizicues-intro{gap:9px}
.short-now-primary-card.is-vizicues-intro{
  gap:11px;
  padding:16px;
  border-color:rgba(54,171,156,.28);
  background:#fff;
  box-shadow:0 12px 32px rgba(15,23,42,.07);
}
.short-now-primary-card.is-vizicues-intro h3{
  margin:0;
  font-size:clamp(1.32rem,5vw,1.62rem);
  line-height:1.1;
}
.short-now-primary-card.is-vizicues-intro .short-now-instructions{
  gap:5px;
  padding:0;
  border:0;
  border-radius:0;
  background:transparent;
}
.short-now-primary-card.is-vizicues-intro .short-now-instructions p{
  font-size:.98rem;
  line-height:1.48;
}
.short-now-primary-card.is-vizicues-intro .short-now-safety-note.is-low-pressure{
  padding:8px 0 8px 10px;
  border-left-width:3px;
  border-radius:0;
  background:transparent;
  color:var(--sg-muted);
  font-size:.8rem;
  line-height:1.4;
}
.short-now-primary-card.is-vizicues-intro .short-now-safety-note.is-low-pressure strong{
  color:#8A4B13;
}
.short-now-primary-card.is-vizicues-intro .short-now-primary-actions{
  grid-template-columns:1fr;
  gap:8px;
}
.short-now-primary-card.is-vizicues-intro .short-now-primary-actions :is(.primary-button,.secondary-button){
  min-height:50px;
}
.short-now-primary-card.is-vizicues-intro .short-now-secondary-actions{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:flex-start;
  gap:0 18px;
  padding-top:7px;
  border-top:1px solid var(--sg-line);
}
.short-now-primary-card.is-vizicues-intro .short-now-secondary-actions .text-button{
  width:auto;
  min-height:44px;
  padding:8px 0;
  border:0;
  border-radius:0;
  background:transparent;
  color:var(--sg-muted);
  font-size:.78rem;
  text-align:left;
  text-decoration:none;
}
.short-now-primary-card.is-vizicues-intro .short-now-secondary-actions .text-button:hover,
.short-now-primary-card.is-vizicues-intro .short-now-secondary-actions .text-button:focus-visible{
  border:0;
  background:transparent;
  color:var(--sg-brand-dark);
  text-decoration:underline;
  text-underline-offset:3px;
}
@media (max-width:520px){
  .short-now-panel[data-short-now-entry="vizicues"]{padding-top:8px}
  .short-now-source-banner.is-vizicues-intro{align-items:flex-start;flex-direction:column;gap:2px}
  .short-now-primary-card.is-vizicues-intro{padding:14px;border-radius:20px}
  .short-now-primary-card.is-vizicues-intro .short-now-secondary-actions{
    display:flex;
    gap:0 16px;
  }
  .short-now-primary-card.is-vizicues-intro .short-now-secondary-actions .text-button{
    width:auto;
    justify-content:flex-start;
  }
  .short-now-primary-card.is-vizicues-intro .short-now-secondary-actions .text-button::after{
    content:none!important;
  }
}
@media (max-width:359px){
  .short-now-primary-card.is-vizicues-intro{padding:13px}
  .short-now-primary-card.is-vizicues-intro .short-now-secondary-actions{gap:0 12px}
}
html.sensycues-display-discreet:not(.sensycues-high-contrast) .short-now-source-banner.is-vizicues-intro{
  border-radius:0;
  background:transparent;
}
html.sensycues-high-contrast .short-now-source-banner.is-vizicues-intro,
html[data-high-contrast="true"] .short-now-source-banner.is-vizicues-intro{
  border:0;
  border-bottom:2px solid currentColor;
}
@media (forced-colors:active){
  .short-now-source-banner.is-vizicues-intro{border:0;border-bottom:2px solid CanvasText}
}


/* SC-VIZICUES-HANDOFF-PR2: compact Try Now + inline outcome for ViziCues-origin handoffs only. */
.short-now-trying.is-vizicues-handoff,
.short-now-outcome.is-vizicues-handoff{
  display:grid;
  gap:10px;
}
.short-now-outcome-support-card{
  display:grid;
  gap:12px;
}
.short-now-outcome-support-card .short-now-outcome-host{
  margin-top:2px;
}
.compact-outcome-card.is-vizicues-handoff{
  margin:0;
  padding:14px 0 0;
  border:0;
  border-top:1px solid var(--line, #dce8e5);
  border-radius:0;
  background:transparent;
  box-shadow:none;
}
.compact-outcome-card.is-vizicues-handoff > h3{
  margin:0 0 4px;
  font-size:1.05rem;
}
.compact-outcome-card.is-vizicues-handoff > p{
  margin:0 0 12px;
  color:var(--text-muted, #526273);
}
.compact-outcome-details-disclosure{
  margin-top:12px;
  border-top:1px solid var(--line, #dce8e5);
  border-bottom:1px solid var(--line, #dce8e5);
}
.compact-outcome-details-disclosure summary{
  min-height:44px;
  display:flex;
  align-items:center;
  cursor:pointer;
  color:var(--brand-dark, #287f74);
  font-weight:750;
  list-style:none;
}
.compact-outcome-details-disclosure summary::-webkit-details-marker{display:none}
.compact-outcome-details-body{
  padding:0 0 14px;
}
.compact-outcome-card.is-vizicues-handoff .compact-outcome-confirm-actions{
  margin-top:14px;
}
.compact-outcome-card.is-vizicues-handoff .compact-outcome-secondary-actions{
  margin-top:4px;
}
@media (max-width:520px){
  .compact-outcome-card.is-vizicues-handoff{padding-top:12px}
  .short-now-outcome-support-card{gap:10px}
}

/* SC-VIZICUES-HANDOFF-PR3: completed schedule supports use a focused outcome-only sheet. */
.short-now-outcome.is-vizicues-completion{
  gap:8px;
}
.short-now-completion-outcome-card{
  display:block;
  padding-top:4px;
}
.short-now-completion-outcome-card .short-now-outcome-host{
  margin:0;
}
.compact-outcome-card.is-vizicues-completion{
  padding-top:2px;
  border-top:0;
}
.compact-outcome-card.is-vizicues-completion > .mini-label{
  display:inline-block;
  margin-bottom:5px;
}
.compact-outcome-card.is-vizicues-completion > .compact-outcome-support-title{
  margin:0;
  font-size:1.18rem;
  line-height:1.3;
}
.compact-outcome-card.is-vizicues-completion > .outcome-context{
  margin:4px 0 16px;
  color:var(--text-muted, #526273);
  font-size:.92rem;
}
.compact-outcome-card.is-vizicues-completion > h4{
  margin:0 0 4px;
  font-size:1.05rem;
}
.compact-outcome-card.is-vizicues-completion .compact-outcome-secondary-actions .text-button{
  min-height:44px;
}

/* SC-TODAY-LAYOUT-01 — compact primary planning actions.
   Layout only: Smart Suggest remains the primary action while sharing a compact row with Plan actions. */
.today-routine-title-row>.today-routine-subtitle{
  order:3!important;
}
.today-plan-primary-actions{
  order:4!important;
  display:grid!important;
  grid-template-columns:minmax(0,1fr) auto!important;
  gap:10px!important;
  align-items:stretch!important;
  width:100%!important;
  max-width:600px!important;
  margin-top:2px!important;
}
.today-plan-primary-actions:not(.has-plan-actions){
  grid-template-columns:minmax(0,1fr)!important;
}
.today-plan-primary-actions .today-routine-controls.today-floating-plan-actions{
  display:block!important;
  width:100%!important;
  min-width:0!important;
  margin:0!important;
  padding:0!important;
}
.today-plan-primary-actions .today-routine-controls.today-floating-plan-actions .support-action.today-plan-footer-action.today-plan-footer-primary{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:8px!important;
  width:100%!important;
  min-width:0!important;
  height:auto!important;
  min-height:52px!important;
  max-height:none!important;
  padding:8px 16px!important;
  border-radius:14px!important;
  font-size:1rem!important;
  line-height:1!important;
  white-space:normal!important;
  box-shadow:0 6px 15px rgba(54,171,156,.13)!important;
}
.today-plan-primary-actions .today-routine-controls.today-floating-plan-actions .today-plan-footer-primary>span:last-child{
  width:auto!important;
  white-space:normal!important;
  overflow:visible!important;
  text-overflow:clip!important;
}
.today-plan-primary-actions .today-plan-overflow{
  align-self:stretch!important;
  margin:0!important;
}
.today-plan-primary-actions .today-plan-overflow>summary{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:6px!important;
  width:auto!important;
  min-width:142px!important;
  height:100%!important;
  min-height:52px!important;
  padding:8px 16px!important;
  border-radius:14px!important;
  font-size:.9rem!important;
  line-height:1!important;
  font-weight:850!important;
  letter-spacing:0!important;
  white-space:nowrap!important;
}
.today-plan-primary-actions .today-plan-overflow-menu{
  top:calc(100% + 8px)!important;
}
.today-routine-header,
.today-support-plan-card.today-routine-header{
  margin-bottom:12px!important;
}

/* Keep empty and filled anchor rows visually consistent and compact. */
.today-edit-area.is-empty .today-anchor-section{
  padding-block:9px!important;
}
.today-blank-anchor-spot{
  min-height:38px!important;
}
.today-blank-anchor-spot .today-blank-anchor-actions{
  flex:0 0 auto!important;
}
.today-blank-anchor-spot .support-action.subtle{
  width:auto!important;
  min-height:34px!important;
  padding:0 3px!important;
  border:0!important;
  border-radius:8px!important;
  background:transparent!important;
  color:var(--sg-brand-dark)!important;
  font-size:.87rem!important;
  font-weight:900!important;
  box-shadow:none!important;
  justify-content:flex-end!important;
}
.today-blank-anchor-spot .support-action.subtle:hover,
.today-blank-anchor-spot .support-action.subtle:focus-visible{
  background:var(--sg-teal-soft)!important;
  color:var(--sg-brand-dark)!important;
}

@media (min-width:760px){
  .today-plan-primary-actions{
    max-width:620px!important;
    grid-template-columns:minmax(260px,1fr) auto!important;
  }
  .today-plan-primary-actions .today-plan-overflow>summary{
    min-width:154px!important;
  }
}
@media (max-width:620px){
  .today-plan-primary-actions{
    grid-template-columns:minmax(0,1fr) minmax(122px,auto)!important;
    gap:9px!important;
  }
  .today-plan-primary-actions:not(.has-plan-actions){
    grid-template-columns:minmax(0,1fr)!important;
  }
  .today-plan-primary-actions .today-routine-controls.today-floating-plan-actions .support-action.today-plan-footer-action.today-plan-footer-primary{
    height:auto!important;
    min-height:52px!important;
    padding:8px 12px!important;
    font-size:clamp(.91rem,4vw,1rem)!important;
  }
  .today-plan-primary-actions .today-plan-overflow>summary{
    min-width:122px!important;
    height:100%!important;
    min-height:52px!important;
    padding:8px 11px!important;
    font-size:clamp(.8rem,3.5vw,.9rem)!important;
  }
  .today-blank-anchor-spot{
    display:flex!important;
    grid-template-columns:none!important;
    align-items:center!important;
  }
  .today-blank-anchor-spot .support-action.subtle{
    width:auto!important;
    min-height:34px!important;
    padding-inline:3px!important;
  }
}
@media (max-width:350px){
  .today-plan-primary-actions{
    grid-template-columns:minmax(0,1fr) 112px!important;
    gap:7px!important;
  }
  .today-plan-primary-actions .today-routine-controls.today-floating-plan-actions .support-action.today-plan-footer-action.today-plan-footer-primary{
    padding-inline:9px!important;
    font-size:.88rem!important;
  }
  .today-plan-primary-actions .today-plan-overflow>summary{
    min-width:112px!important;
    padding-inline:8px!important;
    font-size:.76rem!important;
  }
}
html.sensycues-text-large .today-plan-primary-actions .today-routine-controls.today-floating-plan-actions .support-action.today-plan-footer-action.today-plan-footer-primary,
html.sensycues-text-extra-large .today-plan-primary-actions .today-routine-controls.today-floating-plan-actions .support-action.today-plan-footer-action.today-plan-footer-primary,
html.sensycues-text-large .today-plan-primary-actions .today-plan-overflow>summary,
html.sensycues-text-extra-large .today-plan-primary-actions .today-plan-overflow>summary{
  height:auto!important;
  min-height:56px!important;
  padding-top:8px!important;
  padding-bottom:8px!important;
  white-space:normal!important;
}

html.sensycues-text-large .today-plan-primary-actions .today-routine-controls.today-floating-plan-actions .today-plan-footer-primary>span:last-child,
html.sensycues-text-extra-large .today-plan-primary-actions .today-routine-controls.today-floating-plan-actions .today-plan-footer-primary>span:last-child{
  white-space:normal!important;
}
@media (max-width:420px){
  html.sensycues-text-extra-large .today-plan-primary-actions{
    grid-template-columns:minmax(0,1fr)!important;
  }
  html.sensycues-text-extra-large .today-plan-primary-actions .today-plan-overflow>summary{
    width:100%!important;
  }
}
@media print{
  .today-plan-primary-actions{display:none!important}
}

/* SC-TODAY-LAYOUT-03 — compact mobile action row refinement.
   Layout only: keep Smart Suggest primary without turning it into a banner on mobile. */
.today-routine-title-row{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) auto!important;
  grid-template-areas:
    "scope scope"
    "heading heading"
    "summary summary"
    "smart overflow"!important;
  column-gap:10px!important;
  row-gap:8px!important;
  align-items:center!important;
}
.today-routine-title-row.no-summary{
  grid-template-areas:
    "scope scope"
    "heading heading"
    "smart overflow"!important;
}
.today-routine-title-row>.today-scope-picker{
  grid-area:scope!important;
  order:initial!important;
  width:min(100%, 360px)!important;
  max-width:360px!important;
}
.today-routine-title-row>.today-plan-heading-row{
  grid-area:heading!important;
  order:initial!important;
  display:block!important;
  min-width:0!important;
}
.today-routine-title-row>.today-plan-heading-row h1{
  margin:0!important;
  font-size:clamp(1.28rem,5vw,1.62rem)!important;
  line-height:1.12!important;
  font-weight:650!important;
  text-align:left!important;
}
.today-routine-title-row>.today-routine-subtitle{
  grid-area:summary!important;
  order:initial!important;
  margin:0!important;
  min-width:0!important;
  color:var(--sg-muted)!important;
  font-size:.88rem!important;
  line-height:1.35!important;
}
.today-routine-title-row>.today-plan-primary-actions{
  grid-area:smart!important;
  order:initial!important;
  display:block!important;
  width:auto!important;
  max-width:max-content!important;
  justify-self:start!important;
  align-self:center!important;
  margin:2px 0 0!important;
}
.today-routine-title-row>.today-plan-primary-actions .today-routine-controls.today-floating-plan-actions{
  display:block!important;
  width:auto!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
}
.today-routine-title-row>.today-plan-primary-actions .today-plan-footer-primary{
  width:auto!important;
  min-width:0!important;
  max-width:none!important;
  min-height:44px!important;
  height:44px!important;
  padding:0 14px!important;
  border-radius:12px!important;
  font-size:clamp(.9rem,3.8vw,.97rem)!important;
  white-space:nowrap!important;
  box-shadow:0 5px 12px rgba(54,171,156,.12)!important;
}
.today-routine-title-row>.today-plan-overflow{
  grid-area:overflow!important;
  order:initial!important;
  align-self:center!important;
  justify-self:end!important;
  margin:2px 0 0!important;
}
.today-routine-title-row>.today-plan-overflow>summary{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:5px!important;
  width:auto!important;
  min-width:0!important;
  height:44px!important;
  min-height:44px!important;
  padding:0 14px!important;
  border-radius:12px!important;
  font-size:.88rem!important;
  line-height:1!important;
  letter-spacing:0!important;
  white-space:nowrap!important;
  box-shadow:none!important;
}
.today-routine-title-row>.today-plan-overflow .today-plan-overflow-label{
  display:inline!important;
}
.today-routine-title-row>.today-plan-overflow .today-plan-overflow-caret{
  font-size:.72rem!important;
}
.today-routine-header,
.today-support-plan-card.today-routine-header{
  margin-bottom:10px!important;
}

@media (min-width:760px){
  .today-routine-title-row{
    grid-template-columns:minmax(0,1fr) auto auto!important;
    grid-template-areas:
      "scope scope scope"
      "heading smart overflow"
      "summary smart overflow"!important;
    column-gap:10px!important;
    row-gap:4px!important;
  }
  .today-routine-title-row.no-summary{
    grid-template-areas:
      "scope scope scope"
      "heading smart overflow"!important;
  }
  .today-routine-title-row>.today-plan-heading-row h1{
    font-size:clamp(1.55rem,2.7vw,2rem)!important;
  }
  .today-routine-title-row>.today-plan-primary-actions{
    width:auto!important;
    margin:0!important;
    align-self:center!important;
  }
  .today-routine-title-row>.today-plan-primary-actions .today-routine-controls.today-floating-plan-actions{
    width:auto!important;
  }
  .today-routine-title-row>.today-plan-primary-actions .today-plan-footer-primary{
    width:230px!important;
    min-width:230px!important;
    max-width:260px!important;
    height:46px!important;
    min-height:46px!important;
    padding:0 18px!important;
    font-size:.98rem!important;
  }
  .today-routine-title-row>.today-plan-overflow{
    margin:0!important;
  }
  .today-routine-title-row>.today-plan-overflow>summary{
    min-width:132px!important;
    height:46px!important;
    min-height:46px!important;
    padding-inline:14px!important;
    font-size:.86rem!important;
  }
  .today-routine-title-row>.today-routine-subtitle{
    max-width:52ch!important;
    font-size:.9rem!important;
  }
  .tab-bar{
    width:min(680px,calc(100% - 48px))!important;
    padding:7px 9px!important;
    border-radius:22px!important;
  }
  .tab-button{
    min-height:54px!important;
    border-radius:16px!important;
  }
}

@media (max-width:420px){
  .today-routine-title-row{
    column-gap:8px!important;
  }
  .today-routine-title-row>.today-plan-heading-row h1{
    font-size:clamp(1.22rem,5.3vw,1.48rem)!important;
  }
  .today-routine-title-row>.today-plan-primary-actions .today-plan-footer-primary{
    min-width:0!important;
    min-height:44px!important;
    height:44px!important;
    padding-inline:13px!important;
    font-size:.88rem!important;
  }
  .today-routine-title-row>.today-plan-overflow>summary{
    height:44px!important;
    min-height:44px!important;
    padding-inline:12px!important;
    font-size:.82rem!important;
  }
}

@media (max-width:350px){
  .today-routine-title-row{
    grid-template-columns:1fr!important;
    grid-template-areas:
      "scope"
      "heading"
      "summary"
      "smart"
      "overflow"!important;
  }
  .today-routine-title-row.no-summary{
    grid-template-areas:
      "scope"
      "heading"
      "smart"
      "overflow"!important;
  }
  .today-routine-title-row>.today-plan-overflow{
    justify-self:start!important;
    margin-top:0!important;
  }
  .today-routine-title-row>.today-plan-primary-actions{
    max-width:none!important;
    width:100%!important;
  }
  .today-routine-title-row>.today-plan-primary-actions .today-plan-footer-primary{
    width:100%!important;
    min-width:0!important;
  }
}

html.sensycues-text-large .today-routine-title-row,
html.sensycues-text-extra-large .today-routine-title-row{
  align-items:start!important;
}
@media (max-width:520px){
  html.sensycues-text-extra-large .today-routine-title-row{
    grid-template-columns:1fr!important;
    grid-template-areas:
      "scope"
      "heading"
      "summary"
      "smart"
      "overflow"!important;
  }
  html.sensycues-text-extra-large .today-routine-title-row.no-summary{
    grid-template-areas:
      "scope"
      "heading"
      "smart"
      "overflow"!important;
  }
  html.sensycues-text-extra-large .today-routine-title-row>.today-plan-primary-actions{
    width:100%!important;
    max-width:none!important;
  }
  html.sensycues-text-extra-large .today-routine-title-row>.today-plan-primary-actions .today-plan-footer-primary{
    width:100%!important;
    min-width:0!important;
  }
  html.sensycues-text-extra-large .today-routine-title-row>.today-plan-overflow{
    justify-self:start!important;
  }
}


/* SC-TODAY-LAYOUT-04 — exact mobile action sizing override.
   Matches the legacy high-specificity Smart Suggest rule so both toolbar actions render at the same height. */
@media (max-width:759px){
  .today-routine-title-row>.today-plan-primary-actions .today-routine-controls.today-floating-plan-actions .support-action.today-plan-footer-action.today-plan-footer-primary{
    width:auto!important;
    min-width:0!important;
    height:44px!important;
    min-height:44px!important;
    max-height:44px!important;
    padding:0 13px!important;
    border-radius:12px!important;
    font-size:.88rem!important;
    font-weight:800!important;
    line-height:1!important;
  }
  .today-routine-title-row>.today-plan-overflow>summary{
    height:44px!important;
    min-height:44px!important;
    max-height:44px!important;
    border-radius:12px!important;
  }
}


/* SC-TODAY-ADD-SUPPORT-SHEET — contextual add support flow.
   Mobile uses a bottom sheet, tablets use a centered dialog, and desktop anchors beside the chosen moment. */
.today-anchor-add-sheet{
  position:fixed!important;
  inset:0!important;
  z-index:96!important;
  display:grid!important;
  align-items:end!important;
  justify-items:center!important;
  pointer-events:auto!important;
}
.today-anchor-add-scrim{
  position:absolute!important;
  inset:0!important;
  width:100%!important;
  height:100%!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  background:rgba(15,23,42,.34)!important;
  backdrop-filter:blur(4px)!important;
  -webkit-backdrop-filter:blur(4px)!important;
  cursor:default!important;
}
.today-anchor-add-dialog-panel{
  position:relative!important;
  z-index:1!important;
  display:grid!important;
  grid-template-rows:auto auto minmax(0,1fr)!important;
  gap:0!important;
  width:min(560px,100%)!important;
  max-height:min(86svh,720px)!important;
  margin:0!important;
  padding:9px 14px calc(18px + var(--safe-bottom))!important;
  overflow:hidden!important;
  overscroll-behavior:contain!important;
  border:0!important;
  border-radius:28px 28px 0 0!important;
  background:linear-gradient(180deg,#FFFFFF 0%,#FBFDFC 100%)!important;
  box-shadow:0 -28px 78px rgba(15,23,42,.27)!important;
  animation:todayAnchorAddSheetIn .18s ease-out both!important;
  touch-action:auto!important;
}
.today-anchor-add-dialog-panel:focus{outline:none!important}
.today-anchor-add-handle{
  justify-self:center!important;
  width:44px!important;
  height:5px!important;
  margin:0 0 10px!important;
  border-radius:999px!important;
  background:#D8E2E0!important;
}
.today-anchor-add-dialog-head{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) 42px!important;
  align-items:start!important;
  gap:12px!important;
  padding:0 2px 13px!important;
  border-bottom:1px solid rgba(215,226,223,.86)!important;
}
.today-anchor-add-dialog-copy{
  display:grid!important;
  gap:4px!important;
  min-width:0!important;
}
.today-anchor-add-dialog-copy h2{
  margin:0!important;
  color:var(--sg-ink)!important;
  font-size:clamp(1.2rem,5.2vw,1.42rem)!important;
  line-height:1.08!important;
  font-weight:950!important;
  letter-spacing:-.035em!important;
}
.today-anchor-add-dialog-copy p{
  margin:0!important;
  color:#667085!important;
  font-size:.9rem!important;
  line-height:1.38!important;
  font-weight:720!important;
}
.today-anchor-add-close{
  display:inline-grid!important;
  place-items:center!important;
  width:42px!important;
  min-width:42px!important;
  height:42px!important;
  min-height:42px!important;
  padding:0!important;
  border:1px solid rgba(203,213,225,.9)!important;
  border-radius:15px!important;
  background:#fff!important;
  color:#475569!important;
  font:inherit!important;
  font-size:1.62rem!important;
  font-weight:500!important;
  line-height:1!important;
  cursor:pointer!important;
  box-shadow:0 5px 14px rgba(15,23,42,.055)!important;
}
.today-anchor-add-close:active{transform:scale(.97)!important}
.today-anchor-add-close:focus-visible,
.today-add-method-choice:focus-visible{
  outline:3px solid rgba(54,171,156,.3)!important;
  outline-offset:2px!important;
}
.today-anchor-add-dialog-body{
  min-height:0!important;
  overflow:auto!important;
  overscroll-behavior:contain!important;
  padding:13px 1px 0!important;
}
.today-anchor-add-dialog-body>.today-favorites-quick-panel,
.today-anchor-add-dialog-body>.today-library-picker-panel{
  display:grid!important;
  gap:10px!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
}
.today-anchor-add-sheet .today-add-method-list{
  display:grid!important;
  gap:9px!important;
}
.today-anchor-add-sheet .today-add-method-choice{
  display:grid!important;
  grid-template-columns:48px minmax(0,1fr) 20px!important;
  align-items:center!important;
  gap:12px!important;
  width:100%!important;
  min-height:78px!important;
  margin:0!important;
  padding:12px 12px!important;
  border:1px solid rgba(203,213,225,.9)!important;
  border-radius:19px!important;
  background:#fff!important;
  color:var(--sg-ink)!important;
  text-align:left!important;
  box-shadow:0 7px 18px rgba(15,23,42,.045)!important;
  cursor:pointer!important;
  -webkit-tap-highlight-color:transparent!important;
}
.today-anchor-add-sheet .today-add-method-choice.is-smart{
  border-color:rgba(54,171,156,.34)!important;
  background:linear-gradient(145deg,#FFFFFF,#F2FBF9)!important;
}
.today-anchor-add-sheet .today-add-method-choice:active{
  transform:translateY(1px)!important;
  box-shadow:0 3px 10px rgba(15,23,42,.04)!important;
}
.today-add-method-icon{
  display:inline-grid!important;
  place-items:center!important;
  width:48px!important;
  height:48px!important;
  border-radius:16px!important;
  background:#F1F5F4!important;
  color:#486D68!important;
}
.today-add-method-choice.is-smart .today-add-method-icon{
  background:#E6F5F2!important;
  color:#2F7E75!important;
}
.today-add-method-icon svg{
  width:24px!important;
  height:24px!important;
  fill:none!important;
  stroke:currentColor!important;
  stroke-width:1.9!important;
  stroke-linecap:round!important;
  stroke-linejoin:round!important;
}
.today-add-method-copy{
  display:grid!important;
  gap:3px!important;
  min-width:0!important;
}
.today-anchor-add-sheet .today-add-method-copy strong{
  color:var(--sg-ink)!important;
  font-size:1rem!important;
  line-height:1.18!important;
  font-weight:930!important;
}
.today-anchor-add-sheet .today-add-method-copy>span{
  color:#667085!important;
  font-size:.84rem!important;
  line-height:1.34!important;
  font-weight:700!important;
}
.today-add-method-chevron{
  color:#7B8A88!important;
  font-size:1.55rem!important;
  line-height:1!important;
  text-align:center!important;
}
.today-anchor-add-sheet .today-picker-back-link{
  min-height:40px!important;
  margin:-3px 0 1px!important;
  padding:0 4px!important;
  color:#426C67!important;
  font-size:.82rem!important;
  text-decoration:none!important;
}
.today-anchor-add-sheet .today-picker-back-link:hover{text-decoration:underline!important;text-underline-offset:3px!important}
.today-anchor-add-sheet .today-support-picker-list{
  max-height:none!important;
  overflow:visible!important;
  padding-right:1px!important;
}
.today-anchor-add-sheet .today-favorites-picker-list,
.today-anchor-add-sheet .today-library-results{
  display:grid!important;
  gap:8px!important;
}
.today-anchor-add-sheet .builder-picker-choice{
  border-radius:17px!important;
  box-shadow:0 5px 14px rgba(15,23,42,.035)!important;
}
.today-anchor-add-sheet.mode-favorites .today-anchor-add-dialog-body,
.today-anchor-add-sheet.mode-library .today-anchor-add-dialog-body{
  padding-top:10px!important;
}
.today-anchor-section.is-adding-support{
  border-color:rgba(54,171,156,.45)!important;
  box-shadow:0 0 0 2px rgba(54,171,156,.08),0 12px 24px rgba(15,23,42,.045)!important;
}
.today-anchor-section.is-adding-support .today-anchor-header-add{
  background:#EAF7F4!important;
  color:#2F736B!important;
}
@keyframes todayAnchorAddSheetIn{
  from{opacity:.7;transform:translateY(24px)}
  to{opacity:1;transform:translateY(0)}
}
@media (min-width:700px) and (max-width:959px){
  .today-anchor-add-sheet{
    align-items:center!important;
    padding:24px!important;
  }
  .today-anchor-add-dialog-panel{
    width:min(560px,calc(100vw - 48px))!important;
    max-height:min(80svh,720px)!important;
    padding:16px 18px 20px!important;
    border:1px solid rgba(203,213,225,.82)!important;
    border-radius:28px!important;
    box-shadow:0 30px 90px rgba(15,23,42,.28)!important;
    animation:todayAnchorAddDialogIn .16s ease-out both!important;
  }
  .today-anchor-add-handle{display:none!important}
  .today-anchor-add-dialog-head{padding-top:1px!important}
}
@media (min-width:960px){
  .today-anchor-add-sheet{
    display:block!important;
  }
  .today-anchor-add-scrim{
    background:rgba(15,23,42,.12)!important;
    backdrop-filter:none!important;
    -webkit-backdrop-filter:none!important;
  }
  .today-anchor-add-dialog-panel{
    position:fixed!important;
    left:var(--today-anchor-popover-left,16px)!important;
    top:var(--today-anchor-popover-top,16px)!important;
    width:min(420px,calc(100vw - 32px))!important;
    max-height:calc(100svh - var(--today-anchor-popover-top,16px) - 16px)!important;
    padding:16px!important;
    border:1px solid rgba(194,209,205,.9)!important;
    border-radius:24px!important;
    box-shadow:0 24px 70px rgba(15,23,42,.22)!important;
    animation:todayAnchorAddPopoverIn .14s ease-out both!important;
  }
  .today-anchor-add-handle{display:none!important}
  .today-anchor-add-dialog-head{padding-top:0!important}
  .today-anchor-add-dialog-copy h2{font-size:1.25rem!important}
  .today-anchor-add-sheet .today-add-method-choice{min-height:72px!important}
}
@keyframes todayAnchorAddDialogIn{
  from{opacity:0;transform:translateY(10px) scale(.985)}
  to{opacity:1;transform:translateY(0) scale(1)}
}
@keyframes todayAnchorAddPopoverIn{
  from{opacity:0;transform:translateY(-5px) scale(.985);transform-origin:top right}
  to{opacity:1;transform:translateY(0) scale(1);transform-origin:top right}
}
@media (max-width:380px){
  .today-anchor-add-dialog-panel{padding-inline:11px!important}
  .today-anchor-add-sheet .today-add-method-choice{
    grid-template-columns:44px minmax(0,1fr) 16px!important;
    gap:9px!important;
    min-height:74px!important;
    padding:10px!important;
  }
  .today-add-method-icon{width:44px!important;height:44px!important;border-radius:14px!important}
  .today-anchor-add-sheet .today-add-method-copy strong{font-size:.96rem!important}
  .today-anchor-add-sheet .today-add-method-copy>span{font-size:.8rem!important}
}
@media (prefers-reduced-motion:reduce){
  .today-anchor-add-dialog-panel{animation:none!important}
}
@media print{
  .today-anchor-add-sheet{display:none!important}
}

/* SC-COLOR-01 — one semantic support color family across metadata, Library, and Today. */
.support-category-activate{--support-accent:#D95F4B!important}
.support-category-ground{--support-accent:#2F8A67!important}
.support-category-calm{--support-accent:#3B82C4!important}
.support-category-focusPrepare{--support-accent:#C48A18!important}
.support-category-connect{--support-accent:#7A5CC7!important}
.support-category-bodyComfort{--support-accent:#168A8A!important}

:is(.support-category-activate,.support-category-ground,.support-category-calm,.support-category-focusPrepare,.support-category-connect,.support-category-bodyComfort) :is(.today-support-rail,.category-dot),
:is(.support-category-activate,.support-category-ground,.support-category-calm,.support-category-focusPrepare,.support-category-connect,.support-category-bodyComfort).activity-card::before{
  background:var(--support-accent)!important;
}

.library-family-toolbar{display:grid;gap:7px;min-width:0;padding-top:1px}
.library-family-heading{display:flex;align-items:baseline;justify-content:space-between;gap:10px;padding:0 2px}
.library-family-heading>span{color:var(--sg-ink);font-size:.74rem;font-weight:950;letter-spacing:.035em;text-transform:uppercase}
.library-family-heading>small{color:var(--sg-muted);font-size:.69rem;font-weight:700;text-align:right}
.support-family-filter-row{display:flex;gap:7px;min-width:0;overflow-x:auto;padding:1px 1px 4px;scrollbar-width:none;-webkit-overflow-scrolling:touch;overscroll-behavior-inline:contain}
.support-family-filter-row::-webkit-scrollbar{display:none}
.support-family-filter-chip{display:inline-flex;flex:0 0 auto;align-items:center;gap:7px;min-height:36px;padding:0 11px;border:1px solid rgba(203,213,225,.9);border-radius:999px;background:#fff;color:#425466;font-size:.75rem;font-weight:900;line-height:1;white-space:nowrap}
.support-family-filter-chip:hover{border-color:color-mix(in srgb,var(--support-accent) 48%,#CBD5E1);background:color-mix(in srgb,var(--support-accent) 5%,#fff)}
.support-family-filter-chip.is-active{border-color:color-mix(in srgb,var(--support-accent) 72%,#94A3B8);background:color-mix(in srgb,var(--support-accent) 12%,#fff);color:#1F2937;box-shadow:0 5px 13px color-mix(in srgb,var(--support-accent) 16%,transparent)}
.support-family-filter-chip:focus-visible{outline:3px solid color-mix(in srgb,var(--support-accent) 35%,transparent);outline-offset:2px}
.support-family-filter-dot,.support-family-card-dot,.today-support-family-dot{display:inline-block;flex:0 0 auto;width:9px;height:9px;border-radius:999px;background:var(--support-accent);box-shadow:0 0 0 2px color-mix(in srgb,var(--support-accent) 16%,transparent)}
.support-family-card-tag{display:inline-flex!important;align-items:center!important;gap:6px!important;color:#243B3A!important}

.today-row-expanded-family-chip{display:inline-flex;align-items:center;gap:7px;justify-self:start;min-height:26px;padding:3px 9px;border:1px solid color-mix(in srgb,var(--support-accent) 30%,#E2E8F0);border-radius:999px;background:color-mix(in srgb,var(--support-accent) 8%,#fff);color:#40504F;font-size:.7rem;font-weight:900;line-height:1;white-space:nowrap}
.today-row-expanded-family-chip .today-support-family-dot{width:8px;height:8px}
.today-support-rail{background:var(--support-accent,var(--sg-brand))!important}


@supports not (background:color-mix(in srgb,#000 10%,#fff)){
  .support-family-filter-chip.is-active,.today-row-expanded-family-chip,.support-family-card-tag{background:#F4F7F8!important;border-color:#CBD5E1!important}
  .support-family-filter-dot,.support-family-card-dot,.today-support-family-dot{box-shadow:none!important}
}

html.sensycues-display-discreet:not(.sensycues-high-contrast) .support-category-activate{--support-accent:#8A6259!important}
html.sensycues-display-discreet:not(.sensycues-high-contrast) .support-category-ground{--support-accent:#5F786C!important}
html.sensycues-display-discreet:not(.sensycues-high-contrast) .support-category-calm{--support-accent:#64798A!important}
html.sensycues-display-discreet:not(.sensycues-high-contrast) .support-category-focusPrepare{--support-accent:#81735B!important}
html.sensycues-display-discreet:not(.sensycues-high-contrast) .support-category-connect{--support-accent:#746D83!important}
html.sensycues-display-discreet:not(.sensycues-high-contrast) .support-category-bodyComfort{--support-accent:#5F7B7B!important}
html.sensycues-display-discreet:not(.sensycues-high-contrast) .support-family-filter-chip{background:#fff!important;border-color:#D5DDDB!important;box-shadow:none!important}
html.sensycues-display-discreet:not(.sensycues-high-contrast) .support-family-filter-chip.is-active{background:#EEF2F1!important;border-color:var(--support-accent)!important}

html.sensycues-high-contrast .support-family-filter-chip,
html[data-high-contrast="true"] .support-family-filter-chip,
html.sensycues-high-contrast .today-support-family-chip,
html[data-high-contrast="true"] .today-support-family-chip{border:2px solid CanvasText!important;background:Canvas!important;color:CanvasText!important;box-shadow:none!important}
html.sensycues-high-contrast :is(.support-family-filter-dot,.support-family-card-dot,.today-support-family-dot),
html[data-high-contrast="true"] :is(.support-family-filter-dot,.support-family-card-dot,.today-support-family-dot){background:CanvasText!important;box-shadow:none!important}

@media(max-width:520px){
  .library-family-heading{display:grid;gap:2px}
  .library-family-heading>small{text-align:left}
  .today-row-expanded-family-chip{max-width:100%;overflow:hidden;text-overflow:ellipsis}
}
@media(max-width:370px){
  .today-row-expanded-family-chip{font-size:.66rem;padding-inline:7px}
}
@media(forced-colors:active){
  .support-family-filter-chip,.today-support-family-chip{forced-color-adjust:auto;border:1px solid ButtonText}
  :is(.support-family-filter-dot,.support-family-card-dot,.today-support-family-dot){forced-color-adjust:auto;background:CanvasText!important}
}

/* SC-TODAY-ROW-SMART-SUGGEST — row Add/Replace share the current responsive sheet. */
.today-row-replacement-sheet{
  z-index:97!important;
}
.today-row-replacement-sheet .today-anchor-add-dialog-body>.today-adjustment-panel{
  display:grid!important;
  gap:10px!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
}
.today-row-replacement-sheet .today-support-picker-list{
  max-height:none!important;
  overflow:visible!important;
}
.today-row-replacement-sheet.mode-changeFavorites .today-anchor-add-dialog-body,
.today-row-replacement-sheet.mode-changeLibrary .today-anchor-add-dialog-body{
  padding-top:10px!important;
}
.today-row-replacement-sheet .today-smart-preview,
.today-row-replacement-sheet .smart-suggest-safety-note{
  display:none!important;
}
.today-row-replacement-sheet .today-add-method-choice[disabled]{
  cursor:wait!important;
  opacity:.78!important;
}
@media (min-width:960px){
  .today-row-replacement-sheet{
    display:grid!important;
    align-items:center!important;
    justify-items:center!important;
    padding:24px!important;
  }
  .today-row-replacement-sheet .today-anchor-add-scrim{
    background:rgba(15,23,42,.28)!important;
    backdrop-filter:blur(3px)!important;
    -webkit-backdrop-filter:blur(3px)!important;
  }
  .today-row-replacement-sheet .today-anchor-add-dialog-panel{
    position:relative!important;
    left:auto!important;
    top:auto!important;
    width:min(560px,calc(100vw - 48px))!important;
    max-height:min(84svh,720px)!important;
    padding:16px 18px 20px!important;
    border:1px solid rgba(203,213,225,.82)!important;
    border-radius:28px!important;
    box-shadow:0 30px 90px rgba(15,23,42,.28)!important;
    animation:todayAnchorAddDialogIn .16s ease-out both!important;
  }
}
@media print{
  .today-row-replacement-sheet{display:none!important}
}
/* Professional UX PR6 — client Choose → Review → Share completion */
.shared-progress-share-summary{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:0;
  margin:0;
  border-block:1px solid rgba(20,49,66,.14);
}
.shared-progress-share-summary>div{
  display:grid;
  align-content:start;
  gap:4px;
  min-width:0;
  padding:12px;
}
.shared-progress-share-summary>div+div{border-left:1px solid rgba(20,49,66,.14)}
.shared-progress-share-summary dt{
  color:var(--muted,#617A76);
  font-size:.69rem;
  font-weight:900;
  letter-spacing:.04em;
  line-height:1.3;
  text-transform:uppercase;
}
.shared-progress-share-summary dd{
  margin:0;
  overflow-wrap:anywhere;
  color:var(--ink,#173A36);
  font-size:.86rem;
  font-weight:850;
  line-height:1.35;
}
.shared-progress-link-section{display:grid;gap:13px;padding-top:2px}
.shared-progress-link-section>.professional-plan-share-panel{
  margin:0;
  padding-top:14px;
  border:0;
  border-top:1px solid rgba(20,49,66,.14);
  border-radius:0;
  background:transparent;
  box-shadow:none;
}
.shared-progress-file-fallback{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  align-items:center;
  gap:12px 22px;
  padding:16px 0;
  border-block:1px solid rgba(20,49,66,.14);
}
.shared-progress-file-fallback h4{margin:0;color:var(--ink,#173A36);font-size:1rem}
.shared-progress-file-fallback p{
  max-width:62ch;
  margin:4px 0 0;
  color:var(--muted,#617A76);
  font-size:.82rem;
  line-height:1.48;
}
.shared-progress-file-fallback .btn{min-width:205px}
@media(max-width:760px){
  .shared-progress-share-summary{grid-template-columns:repeat(2,minmax(0,1fr))}
  .shared-progress-share-summary>div:nth-child(3){border-left:0;border-top:1px solid rgba(20,49,66,.14)}
  .shared-progress-share-summary>div:nth-child(4){border-top:1px solid rgba(20,49,66,.14)}
}
@media(max-width:520px){
  .shared-progress-share-summary{grid-template-columns:1fr}
  .shared-progress-share-summary>div+div{border-top:1px solid rgba(20,49,66,.14);border-left:0}
  .shared-progress-file-fallback{grid-template-columns:1fr}
  .shared-progress-file-fallback .btn{width:100%;min-width:0}
}
@media(forced-colors:active){
  .shared-progress-share-summary,
  .shared-progress-share-summary>div,
  .shared-progress-link-section>.professional-plan-share-panel,
  .shared-progress-file-fallback{border-color:ButtonText}
}

/* SC-SSP — client-owned copies of Professional custom supports. */
.today-row-save-support-button{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:5px!important;
  min-height:34px!important;
  padding:0 10px!important;
  border:1px solid rgba(54,171,156,.32)!important;
  border-radius:999px!important;
  background:#EEF9F6!important;
  color:#236F66!important;
  font:inherit!important;
  font-size:.74rem!important;
  font-weight:950!important;
  line-height:1!important;
  white-space:nowrap!important;
  box-shadow:none!important;
}
.today-row-save-support-button span[aria-hidden="true"]{font-size:1rem!important;line-height:1!important}
.today-row-save-support-button:hover{background:#E3F5F1!important;border-color:rgba(54,171,156,.52)!important}
.today-row-save-support-button:focus-visible{outline:3px solid rgba(54,171,156,.35)!important;outline-offset:2px!important}

.attempt-shared-custom-tools{
  display:grid;
  gap:12px;
  margin-top:4px;
  padding:15px;
  border:1px solid rgba(54,171,156,.24);
  border-radius:16px;
  background:linear-gradient(145deg,#F2FBF8,#FFFFFF);
}
.attempt-shared-custom-copy,
.attempt-shared-custom-saved{display:grid;gap:4px}
.attempt-shared-custom-copy strong,
.attempt-shared-custom-saved strong{color:#174B45;font-size:.92rem;font-weight:950}
.attempt-shared-custom-copy p,
.attempt-shared-custom-saved p{margin:0;color:#59716E;font-size:.84rem;line-height:1.45}
.attempt-shared-custom-save{width:100%;min-height:48px}
.attempt-shared-custom-tools.is-saved{
  grid-template-columns:minmax(0,1fr) auto;
  align-items:center;
  background:#F4FBF9;
}
.attempt-shared-custom-saved{
  grid-template-columns:auto minmax(0,1fr);
  align-items:start;
  column-gap:9px;
}
.attempt-shared-custom-saved>span{
  display:grid;
  place-items:center;
  width:28px;
  height:28px;
  border-radius:999px;
  background:#DDF3ED;
  color:#197267;
  font-weight:950;
}
.attempt-shared-custom-tools .attempt-library-link{
  min-width:44px;
  justify-content:center;
  border:1px solid #DCE8E5;
  background:#fff;
  text-decoration:none;
}
@media (max-width:420px){
  .attempt-shared-custom-tools.is-saved{grid-template-columns:1fr}
  .attempt-shared-custom-tools .attempt-library-link{width:100%}
}
/* Professional Ultimate Launch PR3: truthful data boundaries and clear gate */
.professional-data-settings-card {
  display: grid;
  gap: .75rem;
}

.professional-data-settings-card > p,
.professional-data-settings-card > strong {
  margin-block: 0;
}

.professional-data-settings-card .professional-data-safety-head > div > p {
  display: none;
}


/* Data transfer guidance: one dependable Consumer path across phone, tablet, and desktop. */
.consumer-transfer-card {
  display: grid;
  gap: .85rem;
  align-items: start;
}

.consumer-transfer-card > strong,
.consumer-transfer-card > p,
.consumer-transfer-card .data-transfer-notes p {
  margin-block: 0;
}

.consumer-transfer-steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .75rem;
}

.data-transfer-device {
  display: grid;
  align-content: start;
  gap: .7rem;
  min-width: 0;
  padding: .85rem;
  border: 1px solid color-mix(in srgb, var(--sg-brand, #36ab9c) 22%, var(--sg-line, #dfe8e6));
  border-radius: 16px;
  background: linear-gradient(145deg, #fff, color-mix(in srgb, #fff 91%, var(--sg-brand, #36ab9c) 9%));
}

.data-transfer-device-label {
  display: flex;
  align-items: center;
  gap: .55rem;
  color: var(--sg-ink, #0f172a);
}

.data-transfer-device-label b {
  display: grid;
  place-items: center;
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: var(--sg-brand, #36ab9c);
  color: #fff;
  font-size: .78rem;
  line-height: 1;
}

.data-transfer-device-label strong {
  font-size: .88rem;
}

.data-transfer-device ol {
  display: grid;
  gap: .48rem;
  margin: 0;
  padding-left: 1.2rem;
  color: var(--sg-text, #334155);
  font-size: .8rem;
  line-height: 1.43;
}

.data-transfer-device .support-action {
  width: 100%;
  justify-content: center;
  margin-top: auto;
}

.consumer-backup-options {
  padding: .75rem .8rem;
  border: 1px solid var(--sg-line, #dfe8e6);
  border-radius: 14px;
  background: var(--sg-surface-soft, #f8fafc);
}

.consumer-backup-options summary {
  cursor: pointer;
  color: var(--sg-ink, #0f172a);
  font-size: .84rem;
  font-weight: 900;
}

.consumer-backup-options p {
  margin: .55rem 0 .7rem;
}

.data-transfer-notes {
  display: grid;
  gap: .35rem;
  padding: .8rem;
  border-radius: 14px;
  background: var(--sg-surface-soft, #f8fafc);
}

.data-transfer-notes p {
  font-size: .78rem;
  line-height: 1.42;
}

@media (max-width: 720px) {
  .consumer-transfer-steps {
    grid-template-columns: 1fr;
  }
}

.clear-data-review {
  margin-top: .85rem;
}

.clear-data-review[hidden] {
  display: none !important;
}

.clear-data-safety-flow {
  display: grid;
  gap: .8rem;
  padding: 1rem;
  border: 1px solid color-mix(in srgb, #a3382d 38%, transparent);
  border-radius: 16px;
  background: color-mix(in srgb, var(--surface, #fff) 93%, #d95b4f 7%);
}

.clear-data-safety-flow h4,
.clear-data-safety-flow p,
.clear-data-safety-flow dl {
  margin-block: 0;
}

.clear-data-professional-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .55rem;
}

.clear-data-professional-summary > div {
  padding: .65rem;
  border-radius: 11px;
  background: var(--surface, #fff);
}

.clear-data-professional-summary dt {
  font-size: .76rem;
  opacity: .76;
}

.clear-data-professional-summary dd {
  margin: .15rem 0 0;
  font-weight: 750;
}

.clear-data-confirm-check {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: .65rem;
  padding: .75rem;
  border-radius: 12px;
  background: var(--surface, #fff);
}

.clear-data-confirm-check input {
  width: 1.2rem;
  height: 1.2rem;
  margin-top: .1rem;
}

.clear-data-bypass {
  display: grid;
  gap: .7rem;
  padding: .85rem;
  border: 1px solid color-mix(in srgb, #a3382d 44%, transparent);
  border-radius: 13px;
  background: var(--surface, #fff);
}

.clear-data-bypass label:not(.clear-data-confirm-check) {
  display: grid;
  gap: .4rem;
}

.clear-data-bypass input[type="text"],
.clear-data-bypass input:not([type]) {
  width: 100%;
  min-height: 46px;
  border: 1px solid color-mix(in srgb, var(--text, #17212b) 30%, transparent);
  border-radius: 11px;
  padding: .65rem .75rem;
  background: var(--surface, #fff);
  color: var(--text, #17212b);
  font: inherit;
}

.clear-data-backup-success {
  padding: .8rem;
  border-radius: 12px;
  background: color-mix(in srgb, var(--surface, #fff) 82%, #74a98f 18%);
}

@media (max-width: 620px) {
  .clear-data-professional-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .clear-data-safety-flow .data-actions > * {
    width: 100%;
  }
}

@media (prefers-contrast: more) {
  .clear-data-safety-flow,
  .clear-data-bypass,
  .clear-data-confirm-check {
    border-width: 2px;
  }
}

/* SC v97 — Today is actionable work; recorded outcomes live in Review today. */
.today-history-disclosure{
  overflow:hidden!important;
}
.today-history-disclosure>summary.today-history-head{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:12px!important;
  margin:0!important;
  padding:0!important;
  cursor:pointer!important;
  list-style:none!important;
}
.today-history-disclosure>summary.today-history-head::-webkit-details-marker{
  display:none!important;
}
.today-history-summary-meta{
  display:inline-flex!important;
  align-items:center!important;
  gap:8px!important;
  flex:0 0 auto!important;
}
.today-history-caret{
  color:var(--sg-muted)!important;
  font-size:1rem!important;
  line-height:1!important;
  transition:transform .16s ease!important;
}
.today-history-disclosure[open] .today-history-caret{
  transform:rotate(180deg)!important;
}
.today-history-disclosure .today-history-list{
  margin-top:12px!important;
}
#dailyReviewCard:not(:empty)+#todayHistory.is-visible{
  margin-top:8px!important;
}
@media (prefers-reduced-motion:reduce){
  .today-history-caret{transition:none!important;}
}
