/* ROMVI R3 visual refresh - use last in stylesheet order. Does not change API or storage. */
:root{--r3-surface:#0b1b2e;--r3-stroke:rgba(139,190,228,.18);--r3-focus:#74e5ef}
.bottom-nav{display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:4px!important;align-items:stretch!important;z-index:110!important}
/* Life and Family remain functional in the Spaces drawer. Their IDs are intentionally retained. */
.bottom-nav #navLife,.bottom-nav #navFamily{display:none!important}
.bottom-nav .nav-item{width:100%!important;min-width:0!important;min-height:50px!important;padding:6px 2px!important;display:flex!important;flex-direction:column;justify-content:center;align-items:center;gap:4px!important}
.bottom-nav .nav-item .ni{width:20px!important;height:20px!important;font-size:20px!important}
.bottom-nav .nav-item svg{width:20px!important;height:20px!important}
.bottom-nav .nav-item>span:last-child{font-size:11px!important;line-height:1.25!important;letter-spacing:0!important;white-space:nowrap}
.bottom-nav #navSpaces.active{background:linear-gradient(130deg,rgba(34,211,223,.12),rgba(79,140,255,.12))!important;color:var(--text,#fff)!important}
/* Short default Today view, all existing cards reappear via legacy expandable controls. */
#dashboard:not(.home-expanded)>:not(.r3-today):not(.home-more-toggle){display:none!important}
#dashboard:not(.home-expanded){display:flex!important;flex-direction:column!important;gap:14px!important}
#dashboard:not(.home-expanded).hidden{display:none!important}
#dashboard.home-expanded .r3-today{grid-column:1/-1!important}
#dashboard .home-more-toggle{grid-column:1/-1!important;min-height:46px!important;font-size:12px!important}
.r3-today{position:relative;isolation:isolate;overflow:hidden;max-width:100%;padding:26px;border:1px solid var(--r3-stroke);border-radius:24px;background:linear-gradient(140deg,rgba(23,60,88,.42),rgba(10,24,43,.94) 50%,rgba(48,29,82,.27));box-shadow:0 18px 42px rgba(1,7,18,.16)}
.r3-today:before{content:"";position:absolute;width:250px;height:230px;border-radius:50%;right:-125px;top:-115px;background:radial-gradient(circle,rgba(92,211,242,.15),transparent 72%);pointer-events:none;z-index:-1}
.r3-today__eyebrow{color:var(--r3-focus);font:750 11px/1.3 Inter,sans-serif;letter-spacing:.13em;text-transform:uppercase}
.r3-today__title{font:800 clamp(26px,4vw,35px)/1.15 Manrope,Inter,sans-serif!important;letter-spacing:-.035em;margin:12px 0 7px;color:var(--text,#f1f7ff)}
.r3-today__lead{color:var(--v10-muted,#a9bdd2);font:500 14px/1.65 Inter,sans-serif;max-width:600px;margin:0}
.r3-today__content{margin-top:23px;border:1px solid var(--r3-stroke);background:rgba(4,14,27,.4);border-radius:18px;padding:18px}
.r3-today__section{display:flex;gap:10px;align-items:center;justify-content:space-between;margin-bottom:12px}
.r3-today__section strong{font:750 14px/1.4 Manrope,Inter,sans-serif}
.r3-today__section small{color:var(--v10-muted,#a9bdd2);font-size:11px}
.r3-priority-list{padding:0;margin:0;list-style:none;display:grid;gap:9px}
.r3-priority-list li{display:flex;gap:10px;align-items:flex-start;min-height:42px;padding:10px 12px;border:1px solid rgba(139,190,228,.1);border-radius:12px;background:rgba(255,255,255,.025);font:550 12px/1.6 Inter,sans-serif;color:var(--text,#eef5ff);overflow-wrap:anywhere}
.r3-priority-list li .r3-number{display:inline-flex;width:22px;height:22px;border-radius:8px;flex:0 0 22px;justify-content:center;align-items:center;color:#9af3fa;background:rgba(116,229,239,.10);font-size:11px;font-weight:800}
.r3-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:16px}
.r3-actions button{border:1px solid var(--r3-stroke);padding:0 16px;min-height:46px;min-width:120px;border-radius:12px;font:700 12px Inter,sans-serif;color:var(--text,#eef5ff);background:rgba(255,255,255,.035);cursor:pointer}
.r3-actions button.r3-primary{background:linear-gradient(110deg,#77e4ee,#7eabff);border-color:transparent;color:#082036}
.r3-actions button:hover,.r3-space-option:hover{border-color:rgba(116,229,239,.45)}
.r3-sheet[hidden]{display:none!important}
.r3-sheet{position:fixed;inset:0;z-index:9999;display:grid;align-items:end;justify-items:center;background:rgba(2,9,23,.72);backdrop-filter:blur(8px);padding:16px;padding-bottom:max(16px,env(safe-area-inset-bottom))}
.r3-sheet__panel{width:min(520px,100%);max-height:min(85dvh,760px);overflow:auto;border-radius:24px;background:#101f32;color:#eef5ff;border:1px solid rgba(156,210,242,.18);padding:20px;box-shadow:0 28px 90px rgba(0,0,0,.5)}
.r3-sheet__head{display:flex;justify-content:space-between;gap:16px;align-items:flex-start;margin-bottom:16px}
.r3-sheet__head h2{font:800 24px/1.2 Manrope,Inter,sans-serif;margin:3px 0 5px}
.r3-sheet__head p{color:#adbed0;font-size:12px;line-height:1.6;margin:0}
.r3-sheet__close{width:44px;height:44px;border-radius:14px;border:1px solid rgba(156,210,242,.18);background:rgba(255,255,255,.03);color:#fff;font-size:20px;cursor:pointer;flex-shrink:0}
.r3-spaces-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.r3-space-option{display:flex;flex-direction:column;align-items:flex-start;gap:8px;min-height:135px;min-width:0;padding:16px;border-radius:16px;border:1px solid rgba(156,210,242,.15);background:linear-gradient(135deg,rgba(94,183,226,.08),rgba(150,109,240,.035));color:#edf7ff;text-align:left;cursor:pointer}
.r3-space-option strong{font:800 16px/1.2 Manrope,Inter,sans-serif}
.r3-space-option span{color:#b4c4d6;font-size:12px;line-height:1.5}
.r3-space-option svg{width:21px;height:21px;stroke:#81e9ed;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;fill:none}
.r3-space-option[aria-current="true"]{border-color:rgba(116,229,239,.52);background:rgba(33,171,210,.14)}
.r3-space-option.r3-space-life{grid-column:1/-1;min-height:65px;flex-direction:row;align-items:center;gap:12px}
.r3-space-option.r3-space-life strong{min-width:85px}.r3-space-option.r3-space-life span{flex:1}
.r3-sheet__notice{margin-top:14px;padding:12px;border-radius:12px;background:rgba(116,229,239,.06);color:#b7c9da;font-size:11px;line-height:1.55}
html[data-theme="light"] .r3-today{background:linear-gradient(135deg,#edf9ff,#f5f7ff 62%,#f0eaff);border-color:rgba(45,104,156,.16)}
html[data-theme="light"] .r3-today__eyebrow{color:#166e86}
html[data-theme="light"] .r3-today__content{background:rgba(255,255,255,.75);border-color:rgba(45,104,156,.13)}
html[data-theme="light"] .r3-priority-list li{background:#fff;border-color:rgba(45,104,156,.12);color:#19334c}
html[data-theme="light"] .r3-actions button:not(.r3-primary){color:#19334c;border-color:rgba(45,104,156,.2);background:#fff}
@media(min-width:700px){.r3-sheet{align-items:center}.r3-today{padding:30px}.r3-sheet__panel{padding:24px}}
@media(max-width:430px){.r3-today{padding:18px;border-radius:20px}.r3-today__content{padding:13px}.r3-spaces-grid{gap:8px}.r3-space-option{padding:12px}.r3-space-option strong{font-size:14px}.r3-actions button{flex:1}.r3-today__lead{font-size:13px}.r3-sheet__panel{padding:16px}}
@media(max-width:340px){.r3-spaces-grid{grid-template-columns:1fr}.r3-space-option.r3-space-life{grid-column:auto}}
@media(prefers-reduced-motion:reduce){.r3-sheet,.r3-today{scroll-behavior:auto}}

body.r3-sheet-open{overflow:hidden!important}
