/* ROMVI R4: accessible touch-first polish layered on R3. Keeps existing behavior. */
.r3-today{box-shadow:0 24px 72px rgba(1,7,20,.28);border-color:rgba(117,216,248,.22);padding-bottom:21px}
.r4-topline{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:10px 0 3px}
.r4-home-kicker{font-size:11px;font-weight:740;letter-spacing:.09em;color:#d7ebf9}
.r4-private-pill{display:inline-flex;align-items:center;gap:6px;padding:7px 10px;border:1px solid rgba(111,211,229,.2);border-radius:999px;color:#95dfe4;background:rgba(34,191,200,.07);font-size:10px;font-weight:690;white-space:nowrap}
.r4-private-pill svg{width:13px;height:13px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round}
.r3-today__title{margin-top:14px!important}
.r4-empty-note{color:#b2c6da;font-size:12px;line-height:1.55;margin:10px 3px 0}
.r4-empty-note[hidden]{display:none!important}
.r3-priority-list.r4-is-empty li{align-items:center;color:#bfd5e4;border-style:dashed;background:linear-gradient(115deg,rgba(72,143,177,.1),rgba(74,81,141,.035))}
.r3-priority-list.r4-is-empty .r3-number{font-weight:800;font-size:16px}
.r4-quick{margin-top:20px;max-width:100%}
.r4-quick-head{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:11px}
.r4-quick-head strong{font:780 14px/1.4 Manrope,Inter,sans-serif;color:#edf6ff}
.r4-quick-head span{color:#8faac1;font-size:11px}
.r4-quick-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.r4-quick-card{width:100%;min-width:0;min-height:113px;border:1px solid rgba(139,190,228,.16);border-radius:17px;background:linear-gradient(145deg,rgba(21,51,77,.6),rgba(13,30,48,.55));color:#e8f5ff;display:grid;grid-template-columns:39px minmax(0,1fr) 12px;align-items:center;gap:9px;padding:13px;text-align:left;cursor:pointer;transition:border-color .18s,transform .18s,background .18s}
.r4-quick-card:hover{border-color:#77dbe4;background:rgba(49,127,156,.22);transform:translateY(-2px)}
.r4-quick-card:active{transform:translateY(0)}
.r4-quick-icon{display:grid;place-items:center;width:39px;height:39px;border-radius:13px;color:#89e8f3;background:rgba(95,216,237,.1)}
.r4-quick-icon svg{height:21px;width:21px;stroke:currentColor;stroke-width:1.7;fill:none;stroke-linecap:round;stroke-linejoin:round}
.r4-quick-spaces .r4-quick-icon{color:#bcadff;background:rgba(145,113,239,.13)}
.r4-quick-copy{display:flex;flex-direction:column;gap:5px;min-width:0}.r4-quick-copy strong{font-size:12px;line-height:1.3;font-weight:780}.r4-quick-copy small{color:#a7bdce;font-size:10px;line-height:1.45;overflow-wrap:anywhere}
.r4-quick-arrow{font-size:16px;align-self:start;color:#799caf}
.r3-sheet__panel{background:linear-gradient(152deg,#11243c 0%,#111e30 58%,#171d35 100%)}
.r3-sheet__head{margin-bottom:19px}
.r3-space-option.r4-space{min-height:157px;position:relative;gap:8px;padding:14px;border-width:1px;transition:transform .18s,border-color .18s,box-shadow .18s;overflow:hidden}
.r3-space-option.r4-space:hover{transform:translateY(-2px)}
.r4-space-icon{width:38px;height:38px;border-radius:13px;display:grid;place-items:center;flex-shrink:0;background:rgba(106,216,234,.14);color:#83e1ee}
.r4-space-icon svg{width:21px;height:21px;stroke:currentColor;fill:none;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.r3-space-option.r4-space strong{font-size:16px;line-height:1.25;color:#f1f7ff}
.r3-space-option.r4-space .r4-space-tag{display:inline-block;width:fit-content;font-size:9px;line-height:1.2;font-weight:800;letter-spacing:.10em;color:#7fcedd;order:0}
.r3-space-option.r4-space .r4-space-icon{order:-1}
.r4-space-description{font-size:11px!important;color:#acc3d5!important;line-height:1.45!important}
.r4-space--solo{background:linear-gradient(138deg,rgba(31,134,151,.2),rgba(10,38,57,.57))!important}
.r4-space--work{background:linear-gradient(138deg,rgba(112,83,174,.19),rgba(27,34,64,.62))!important}
.r4-space--work .r4-space-icon{color:#c5a9ff;background:rgba(151,115,229,.16)}
.r4-space--work .r4-space-tag{color:#c5a9ff!important}
.r4-space--family{background:linear-gradient(138deg,rgba(58,107,195,.19),rgba(15,37,73,.60))!important}
.r4-space--family .r4-space-icon{color:#99bfff;background:rgba(95,148,239,.15)}
.r4-space--family .r4-space-tag{color:#99bfff!important}
.r4-space--child{background:linear-gradient(138deg,rgba(154,100,35,.19),rgba(56,41,35,.52))!important}
.r4-space--child .r4-space-icon{color:#ffd18a;background:rgba(253,181,84,.12)}
.r4-space--child .r4-space-tag{color:#ffd18a!important}
.r4-space-disclaimer{font-size:10px;line-height:1.35;color:#ebba77;font-weight:620}
.r3-space-option.r4-space-life{display:flex;flex-direction:row;align-items:center;min-height:74px;gap:12px}
.r4-space--life .r4-space-tag{display:none!important}
.r4-space--life .r4-space-icon{width:36px;height:36px;flex-shrink:0}
.r3-space-option.r4-space[aria-current="true"]{box-shadow:inset 0 0 0 1px rgba(122,232,240,.25),0 5px 19px rgba(18,79,103,.11)}
.r3-sheet__notice{font-size:11px;line-height:1.55}
#mainApp .bottom-nav .nav-item{min-height:52px!important;touch-action:manipulation}
#mainApp .bottom-nav{padding-bottom:max(5px,env(safe-area-inset-bottom))!important}
#mainApp button:focus-visible,.r4-quick-card:focus-visible,.r4-space:focus-visible{outline:3px solid #83e5ee!important;outline-offset:3px!important}
html[data-theme="light"] .r4-home-kicker,html[data-theme="light"] .r4-quick-head strong,html[data-theme="light"] .r4-quick-copy strong{color:#203953}
html[data-theme="light"] .r4-private-pill{color:#187583;border-color:rgba(34,151,176,.23);background:#dff7fa}
html[data-theme="light"] .r4-quick-card{background:linear-gradient(120deg,#fff,#f3f8ff);border-color:rgba(38,82,138,.17);color:#19344e}
html[data-theme="light"] .r4-quick-copy small,html[data-theme="light"] .r4-quick-head span{color:#56728a}
html[data-theme="light"] .r4-empty-note{color:#456983}
@media(max-width:430px){.r3-today{padding:17px!important}.r4-quick-card{padding:12px 10px;grid-template-columns:34px minmax(0,1fr);min-height:115px;gap:7px}.r4-quick-arrow{display:none}.r4-quick-icon{width:34px;height:34px}.r4-quick-head{align-items:flex-end}.r4-quick-head span{max-width:120px;text-align:right}.r3-sheet__panel{max-height:calc(100dvh - 24px)!important}.r3-space-option.r4-space{padding:12px;min-height:152px}}
@media(max-width:350px){.r4-topline{flex-wrap:wrap}.r4-quick-grid{grid-template-columns:1fr}.r4-quick-card{min-height:82px;grid-template-columns:38px minmax(0,1fr)}.r3-space-option.r4-space{min-height:138px}.r3-sheet__panel{max-height:calc(100dvh - 16px)!important}}
@media(prefers-reduced-motion:reduce){.r4-quick-card,.r3-space-option.r4-space{transition:none!important;transform:none!important}}

/* Compact Life tools row: icon + two-line copy, no cramped five-column content. */
.r3-space-option.r4-space--life{display:flex;flex-direction:row;align-items:center;min-height:72px;gap:12px}
.r3-space-option.r4-space--life .r4-space-tag{display:none!important}
.r3-space-option.r4-space--life .r4-space-icon{order:0;width:38px;height:38px;flex:0 0 38px}
.r4-life-copy{display:flex;flex-direction:column;gap:4px;min-width:0;flex:1}
.r4-life-copy strong{min-width:0!important;font-size:14px!important}
.r4-life-copy .r4-space-description{font-size:11px!important}
