@charset "UTF-8";
/* Gift Library B: actions belong to the expanded native disclosure. */
.gift-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin:14px 0 8px}
.gift-actions button,.gift-recovery button{min-height:44px;white-space:normal;overflow-wrap:anywhere;padding:10px 12px}
.gift-card summary{min-height:48px;cursor:pointer;overflow-wrap:anywhere}
.gift-card{min-width:0;overflow-wrap:anywhere}
.gift-recovery{display:flex;flex-wrap:wrap;gap:9px;align-items:center;margin:8px 0}
.gift-history{border-top:1px solid var(--border,#aab9bc);margin-top:14px;padding-top:8px}
/* Recipient-private Gift Library: no remote image surfaces. */
.gift-library .module-filters{grid-template-columns:minmax(140px,2fr) minmax(140px,1fr) auto auto;align-items:center}
.gift-library .module-filters label{display:flex;align-items:center;gap:8px}
.gift-library input[type=checkbox]{width:20px;min-height:20px;height:20px}
.gift-results{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr));gap:16px;min-width:0}
.gift-group{min-width:0}.gift-group h3{margin:4px 0 8px}
.gift-card{overflow-wrap:anywhere;min-width:0;border:1px solid var(--line);border-radius:8px;background:var(--paper);padding:8px 12px;margin-bottom:8px;font-size:13px}
.gift-card summary{min-height:44px;padding:12px 0;cursor:pointer;font-weight:600}
.gift-card summary:focus-visible{outline:3px solid var(--teal);outline-offset:2px}
.gift-card p{margin:0 0 8px}.gift-source{display:inline-block;padding:8px 0 12px;color:var(--teal)}
@media(max-width:700px){.gift-library .module-filters{grid-template-columns:repeat(2,minmax(0,1fr))}}
:root{--bg:#f7f8f4;--paper:#fffefa;--rail:#edf1ec;--ink:#243b35;--muted:#64716b;--line:#dde4dd;--teal:#1c6b58;--soft:#e3efe7;--tadas:#326953;--jin:#766040;--hailey:#715a78;--lily:#456b83;--radius:12px;font-family:"Segoe UI",Tahoma,Arial,sans-serif;color:var(--ink);background:var(--bg);font-synthesis:none}
*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button{cursor:pointer;min-height:44px;border:1px solid transparent;border-radius:8px;background:transparent;color:inherit;padding:8px 14px;font-weight:600}button:hover{background:var(--soft)}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #1c6b58;outline-offset:3px}input,select{min-height:46px;border:1px solid #bac8bd;border-radius:8px;background:var(--paper);padding:10px;color:var(--ink);width:100%}h1,h2,h3,p{margin-top:0}h1{font-size:30px;letter-spacing:-1px;font-weight:650;margin-bottom:7px}h2{font-size:23px;letter-spacing:-.6px;font-weight:600}h3{font-size:16px;font-weight:650}p{line-height:1.6}.muted{color:var(--muted)}small{font-size:12px}.eyebrow{display:block;font-size:10px;letter-spacing:1.8px;font-weight:700;color:var(--muted)}.shell{display:grid;grid-template-columns:80px minmax(0,1fr);min-height:100dvh}.shell.expanded{grid-template-columns:220px minmax(0,1fr)}.rail{background:var(--rail);border-right:1px solid var(--line);padding:24px 12px 16px;display:flex;flex-direction:column;gap:18px;position:sticky;top:0;height:100dvh}.brand{height:44px;display:flex;align-items:center;gap:15px;padding:8px 12px;font-size:36px;font-weight:750;color:var(--teal);letter-spacing:-2px}.brand span{font-size:17px;letter-spacing:-.5px;white-space:nowrap}.rail span:not(.avatar),.rail .lock{display:none}.expanded .rail span,.expanded .rail .lock{display:inline}.nav-items{display:flex;flex-direction:column;gap:9px}.nav-button,.rail-toggle{height:48px;width:100%;display:flex;align-items:center;gap:14px;padding:8px 14px;white-space:nowrap}.nav-button svg{width:23px;height:23px;flex-shrink:0}.nav-button.active{background:#d7e7dc;color:#14543f}.nav-button .lock{margin-left:auto;font-size:11px;color:var(--muted)}.rail-toggle{font-size:20px}.rail-toggle span{font-size:13px}.rail-bottom{margin-top:auto;display:flex;align-items:center;gap:12px;padding:4px 6px}.avatar{width:40px;height:40px;border-radius:50%;background:#dae4d9;color:#375848;display:flex;align-items:center;justify-content:center;font-size:15px;font-weight:700;flex-shrink:0}.rail-caption{font-size:12px;line-height:1.6}.rail-caption small{color:var(--muted)}.workspace{min-width:0;display:flex;flex-direction:column;min-height:100dvh}.topbar{min-height:88px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:16px;padding:18px 32px;background:var(--paper)}.topbar-sub{display:block;font-size:13px;margin-top:5px;color:var(--muted)}.top-actions{display:flex;align-items:center;gap:14px;font-size:12px}.demo-badge{font-size:10px;font-weight:700;letter-spacing:1px;border:1px solid #c5d3c4;padding:5px 8px;border-radius:5px;background:#f2f4e9;color:#52624b}.identity{font-size:13px;font-weight:600}.quiet{border-color:var(--line);background:var(--paper);font-size:13px}.primary{background:var(--teal);color:#fff;border-color:var(--teal)}.primary:hover{background:#14543f}.text-button{font-size:12px;color:var(--teal);padding:8px 8px}.icon-button{min-width:44px;padding:0;font-size:24px}.page-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:24px}.page-heading p{margin:0;color:var(--muted);font-size:14px}main{padding:30px 32px 20px;flex:1;min-width:0;outline:none}.demo-note{font-size:12px;line-height:1.6;color:#52624b;background:#edf0e5;border:1px solid #dce3d2;border-radius:8px;padding:10px 14px;margin-bottom:24px;display:flex;gap:10px;align-items:center}.demo-note strong{white-space:nowrap;font-size:10px;letter-spacing:1px}.toolbar{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-bottom:19px;flex-wrap:wrap}.date-navigation{display:flex;align-items:center;gap:4px}.period-label{font-size:20px;font-weight:600;letter-spacing:-.4px;margin:0 14px 0 0}.date-navigation button{padding:8px 12px;min-width:44px}.segmented{display:flex;padding:3px;background:#ebeee8;border-radius:10px;gap:2px}.segmented button{min-height:44px;font-size:12px;padding:8px 17px}.segmented .selected{background:var(--paper);box-shadow:0 1px 3px #23352b13;color:var(--teal)}.filter-row{display:flex;align-items:center;gap:9px;flex-wrap:wrap;margin-bottom:22px}.filter-caption{font-size:12px;color:var(--muted);margin-right:4px}.member-chip{border:1px solid var(--line);border-radius:24px;min-height:44px;background:var(--paper);font-size:12px;display:flex;align-items:center;gap:8px;padding:8px 14px}.member-chip[aria-pressed="false"]{opacity:.58;background:transparent}.dot{width:8px;height:8px;border-radius:50%;background:var(--member,var(--teal));display:inline-block;flex-shrink:0}.member-tadas{--member:var(--tadas);--event-bg:#e6eee3}.member-jin{--member:var(--jin);--event-bg:#f3ecdc}.member-hailey{--member:var(--hailey);--event-bg:#eee5ed}.member-lily{--member:var(--lily);--event-bg:#e5eef2}.calendar-layout{display:grid;grid-template-columns:minmax(0,1fr) 265px;gap:24px;align-items:start}.calendar-board{background:var(--paper);border:1px solid var(--line);border-radius:12px;overflow:hidden}.week-scroll{overflow-x:auto}.week-grid{display:grid;grid-template-columns:repeat(7,minmax(112px,1fr));min-width:784px}.day-column{border-right:1px solid var(--line);min-height:470px;background:linear-gradient(to bottom,transparent 79px,#e9ede750 80px,transparent 81px);background-size:100% 80px}.day-column:last-child{border-right:0}.day-heading{padding:18px 10px 16px;border-bottom:1px solid var(--line);display:flex;flex-direction:column;align-items:center;gap:8px;background:var(--paper)}.day-heading span{font-size:10px;font-weight:600;text-transform:uppercase;letter-spacing:1px;color:var(--muted)}.day-number{font-size:22px;font-weight:500;width:38px;height:38px;display:flex;align-items:center;justify-content:center;border-radius:50%}.today .day-number{background:var(--teal);color:white}.today .day-heading span{color:var(--teal)}.day-events{padding:16px 7px}.event{background:var(--event-bg);border-radius:8px;padding:11px 9px;margin:0 0 12px;min-height:86px;overflow-wrap:anywhere;color:var(--member)}.event-time{font-size:10px;font-weight:650;display:block;margin-bottom:7px}.event-title{font-size:12px;font-weight:650;display:block;line-height:1.4;margin-bottom:8px}.event-member{font-size:10px;opacity:.85}.free-note{font-size:10px;color:#8b948d;padding:14px 4px;text-align:center}.board-footer{border-top:1px solid var(--line);padding:11px 16px;font-size:11px;color:var(--muted);background:#fafbf7;display:flex;justify-content:space-between}.agenda{padding-top:3px}.agenda-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px}.agenda-header h2{font-size:17px;margin:0}.agenda-header span{font-size:11px;color:var(--muted)}.agenda-day{font-size:10px;letter-spacing:1px;color:var(--muted);text-transform:uppercase;font-weight:650;margin:22px 0 12px}.agenda-item{display:grid;grid-template-columns:5px 1fr;gap:12px;margin:0 0 18px}.agenda-item .dot{width:5px;height:5px;margin-top:6px}.agenda-item strong{display:block;font-size:13px;font-weight:600;line-height:1.5;overflow-wrap:anywhere}.agenda-item small{color:var(--muted);display:block;margin-top:4px;line-height:1.6}.agenda-note{font-size:12px;color:var(--muted);line-height:1.6;border-top:1px solid var(--line);padding-top:16px;margin-top:22px}.month-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr))}.month-cell{min-height:130px;border-right:1px solid var(--line);border-bottom:1px solid var(--line);padding:10px}.month-cell .day-number{font-size:14px;width:30px;height:30px;margin-bottom:6px}.month-cell .event{min-height:auto;padding:6px;margin-bottom:5px}.month-cell .event-time,.month-cell .event-member{display:none}.month-cell .event-title{font-size:10px;margin:0}.month-label{padding:12px 5px;text-align:center;font-size:11px;font-weight:600;border-bottom:1px solid var(--line);color:var(--muted)}.agenda-only{max-width:760px;padding:25px 30px}.empty{padding:56px 36px;max-width:740px;background:var(--paper);border:1px solid var(--line);border-radius:12px;margin:18px auto 36px;text-align:left}.empty-icon{color:var(--teal);font-size:34px;margin-bottom:24px}.empty-icon svg{width:40px;height:40px}.empty h2{font-size:26px;margin-bottom:12px}.empty p{font-size:14px;color:var(--muted);max-width:570px}.connection-label{display:inline-flex;gap:8px;align-items:center;font-size:12px;border:1px solid var(--line);padding:8px 12px;border-radius:20px;margin-bottom:24px}.details-list{border-top:1px solid var(--line);margin:26px 0 0}.details-row{display:flex;justify-content:space-between;gap:20px;align-items:center;padding:17px 0;border-bottom:1px solid var(--line);font-size:13px}.details-row span:last-child{color:var(--muted);text-align:right}.settings{max-width:830px}.settings-section{background:var(--paper);border:1px solid var(--line);border-radius:12px;padding:26px;margin-bottom:20px}.settings-section h2{font-size:18px}.settings-section p{font-size:13px;color:var(--muted)}.identity-options{display:flex;gap:10px;margin:22px 0}.identity-options button{border:1px solid var(--line);min-width:100px}.identity-options button[aria-pressed="true"]{background:var(--soft);border-color:var(--teal);color:var(--teal)}.personal-preview{padding:18px;background:var(--bg);border-radius:8px;font-size:13px}.personal-preview h3{margin-bottom:7px}.personal-preview p{margin:0}.settings-section .quiet{margin-top:20px}footer{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:11px;color:var(--muted);padding:12px 32px;border-top:1px solid var(--line)}footer>span{display:flex;align-items:center;gap:7px}.connection-dot{width:6px;height:6px;background:#8c9b8b;border-radius:50%;display:inline-block}.skip{position:absolute;left:90px;top:-100px;background:var(--paper);z-index:10;padding:14px;color:var(--teal)}.skip:focus{top:10px}dialog{border:1px solid var(--line);border-radius:16px;padding:28px;width:min(480px,calc(100% - 32px));background:var(--paper);color:var(--ink);box-shadow:0 20px 70px #193b3229;max-height:90dvh;overflow-y:auto}dialog::backdrop{background:#203c3455}dialog p{font-size:13px}dialog h2{margin:10px 0 12px}.dialog-top{display:flex;align-items:center;justify-content:space-between;gap:14px}label{display:flex;flex-direction:column;gap:8px;font-size:12px;font-weight:600;margin:18px 0}.form-row{display:grid;grid-template-columns:1fr 1fr;gap:15px}.form-row label{margin-bottom:0}.dialog-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:20px}.error{color:#a33f34;font-size:12px}.toast{position:fixed;bottom:75px;left:50%;transform:translateX(-50%);background:var(--ink);color:white;padding:14px 22px;border-radius:10px;font-size:13px;box-shadow:0 8px 24px #153b3322;display:none;z-index:10}.toast.visible{display:block}
@media(min-width:1500px){main{padding:36px 44px}.calendar-layout{grid-template-columns:minmax(0,1fr) 300px}.day-column{min-height:560px}.day-events{padding:22px 12px}.event{padding:14px 12px;min-height:105px}.event-title{font-size:14px}.event-time,.event-member{font-size:12px}}
@media(max-width:1150px){.calendar-layout{grid-template-columns:minmax(0,1fr)}.agenda{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 24px}.agenda-header,.agenda-note{grid-column:1/-1}.agenda-day{grid-column:1/-1}.agenda-only .agenda{display:block}.topbar{padding:18px 22px}main{padding:26px 22px}footer{padding:10px 22px}}
@media(max-width:700px){.shell,.shell.expanded{display:block}.rail{height:68px;width:100%;position:fixed;top:auto;bottom:0;z-index:5;padding:6px 10px;border-right:0;border-top:1px solid var(--line);display:block}.rail .brand,.rail-toggle,.rail-bottom{display:none}.nav-items{flex-direction:row;justify-content:space-around;gap:4px}.nav-button{height:54px;min-width:44px;padding:4px;flex-direction:column;gap:3px;width:100%;font-size:10px}.rail .nav-button span,.expanded .rail .nav-button span{display:inline}.nav-button svg{width:20px;height:20px}.rail .nav-button .lock,.expanded .rail .nav-button .lock{display:none}.workspace{padding-bottom:68px}.topbar{padding:14px 16px;min-height:80px}.topbar-sub{display:none}.top-actions{gap:8px;flex-wrap:wrap;justify-content:flex-end}.top-actions .quiet{padding:8px 9px;font-size:11px}.identity{font-size:11px}.demo-badge{font-size:9px}.eyebrow{font-size:9px;letter-spacing:1.2px}main{padding:24px 16px 18px}h1{font-size:27px}.page-heading{gap:12px;align-items:flex-start}.page-heading .primary{font-size:12px;white-space:nowrap;padding:8px 12px}.page-heading p{font-size:12px;max-width:230px}.demo-note{align-items:flex-start;font-size:11px}.toolbar{gap:16px}.date-navigation{width:100%;flex-wrap:wrap}.period-label{font-size:18px;margin-right:auto}.segmented{width:100%}.segmented button{flex:1}.filter-row{gap:7px}.filter-caption{width:100%;margin-bottom:2px}.member-chip{padding:8px 12px}.day-column{min-height:400px}.agenda{display:block}.agenda-header{margin-top:8px}.month-grid{min-width:560px}.month-cell{min-height:115px}.empty{padding:30px 22px;margin-top:10px}.settings-section{padding:20px}.identity-options{gap:7px}.identity-options button{min-width:0;flex:1;padding:8px 10px}.details-row{font-size:12px}.form-row{gap:10px}footer{padding:8px 16px;flex-wrap:wrap;gap:0}footer .text-button{padding-left:0}.toast{bottom:92px;width:calc(100% - 32px);text-align:center}.agenda-only{padding:20px}.topbar .eyebrow{max-width:110px;line-height:1.6}}
@media(prefers-reduced-motion:no-preference){button{transition:background .15s ease}.toast.visible{animation:appear .15s ease}@keyframes appear{from{opacity:0;bottom:65px}to{opacity:1;bottom:75px}}}
/* Content-first review: compact chrome, full-width calendar. */
.shell{grid-template-columns:64px minmax(0,1fr)}
.rail{padding:12px 7px;gap:10px}.brand{padding:8px 8px;font-size:30px}.nav-button,.rail-toggle{padding:8px 12px}.rail-bottom{padding:4px 5px}
.topbar{min-height:52px;padding:4px 20px;gap:12px}.topbar h1{font-size:17px;letter-spacing:-.25px;margin:0}.top-actions{gap:10px}.topbar .quiet,.topbar .text-button{min-height:44px}
main{padding:12px 18px 16px;display:flex;flex-direction:column;gap:0}
.toolbar{gap:10px;margin-bottom:8px;flex-wrap:wrap}.calendar-actions{display:flex;align-items:center;gap:10px}.period-label{font-size:20px;margin:0 10px 0 0}.date-navigation{gap:4px}
.filter-row{gap:7px;margin-bottom:12px}.member-chip{min-height:44px}.calendar-layout{display:block;flex:1;min-height:0}.calendar-board{height:100%;border-radius:8px}.week-grid{min-height:calc(100dvh - 200px)}.day-column{min-height:calc(100dvh - 200px)}.day-heading{padding:10px;flex-direction:row;justify-content:center;gap:8px}.day-number{font-size:23px}.day-events{padding:12px 8px}.event{min-height:88px;padding:10px}.event-title{font-size:14px}
.local-module{width:100%;min-width:0;padding:4px 0 20px}.module-toolbar{display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin-bottom:12px}.module-toolbar h2{font-size:20px;margin:0}.module-toolbar .muted{font-size:12px;margin-left:auto}.module-filters{display:grid;grid-template-columns:minmax(220px,2fr) minmax(140px,1fr) repeat(2,minmax(130px,1fr));gap:12px;margin:10px 0 16px}.module-filters label{font-size:12px;color:var(--muted);display:grid;gap:5px}.table-scroll{overflow-x:auto;border:1px solid var(--line);border-radius:8px;background:var(--paper);margin-bottom:16px}.data-table{width:100%;border-collapse:collapse;font-size:13px;text-align:left;font-variant-numeric:tabular-nums}.data-table th{font-size:12px;color:var(--muted);font-weight:600;background:var(--rail);white-space:nowrap}.data-table th,.data-table td{padding:11px 12px;border-bottom:1px solid var(--line);vertical-align:top}.data-table tr:last-child td{border-bottom:0}.section-title{margin:20px 0 10px}.movie-list{display:flex;flex-direction:column;min-width:0;max-width:100%}.movie-row{cursor:pointer}.movie-row h3{margin:0 0 5px}.movie-row .synopsis{font-size:13px;max-width:1000px;margin:8px 0;color:var(--muted)}.movie-events{font-size:13px;margin:10px 0 0;padding-left:20px;line-height:1.7}.research-section{margin-top:18px;border-top:1px solid var(--line);padding-top:16px}.research-section p{font-size:13px;margin-bottom:0}.profile-copy{font-size:13px;margin:16px 0 6px}button:disabled{cursor:not-allowed;opacity:.55}.local-module .details-list{max-width:780px;margin-bottom:16px}.local-module .details-row span:last-child{text-align:right;font-variant-numeric:tabular-nums}#auth-dialog{max-width:440px}#auth-dialog form{margin:0}#auth-dialog label{display:grid;gap:8px}#auth-dialog h2{font-size:20px;margin:0}#auth-dialog input{letter-spacing:3px}#auth-dialog p{font-size:13px}#auth-dialog .error{min-height:20px}
@media(max-width:700px){.module-filters{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.module-toolbar{gap:8px}.module-toolbar .muted{order:3;width:100%;margin:0}.module-toolbar button{margin-left:auto}.data-table{font-size:12px}.data-table th,.data-table td{padding:10px}.module-filters input{min-width:0}.local-module .details-row{gap:14px}}
/* Watchlist: aligned scan rows, with details only on demand. */
.movie-filters{grid-template-columns:minmax(180px,2fr) repeat(3,minmax(0,1fr));gap:8px 12px;align-items:end}
.movie-filters label,.movie-filters input,.movie-filters select{min-width:0}
.movie-filters label{margin:0}
.movie-filters input,.movie-filters select{min-height:44px;padding:8px;font-size:13px}
.movie-table-scroll{width:100%;max-width:100%;min-width:0;overflow-x:auto}
.movie-table-scroll:focus-visible{outline:3px solid var(--teal);outline-offset:2px}
.movie-table{min-width:680px;table-layout:fixed}
.movie-table th:first-child{width:28%}.movie-table th:nth-child(2){width:12%}.movie-table th:nth-child(3){width:18%}.movie-table th:nth-child(4){width:16%}.movie-table th:nth-child(5){width:26%}
.movie-table th{padding:8px 8px}.movie-table td{padding:6px 12px;vertical-align:middle;overflow-wrap:anywhere}
.movie-sort{padding:8px 4px;min-height:44px;text-align:left;font-size:12px;width:100%}
.movie-table th[aria-sort="ascending"] .movie-sort::after{content:' ↑'}.movie-table th[aria-sort="descending"] .movie-sort::after{content:' ↓'}
.movie-row:hover,.movie-row:focus-within{background:var(--soft)}
.movie-expander{padding:8px 4px;min-height:44px;width:100%;text-align:left;font-size:13px;font-weight:600;display:flex;align-items:center;gap:8px;overflow-wrap:anywhere}
.movie-expander::before{content:'›';font-size:18px;flex-shrink:0}.movie-expander[aria-expanded="true"]::before{content:'⌄'}
.movie-next-date{white-space:nowrap}.movie-next-event{line-height:1.5}
.movie-detail-row[hidden]{display:none}
.movie-table .movie-detail-row td{padding:14px 18px;background:var(--bg)}
.movie-detail{max-width:1000px;overflow-wrap:anywhere}.movie-detail p{font-size:13px;margin:0 0 8px}.movie-detail .synopsis{color:var(--muted)}.movie-detail h3{font-size:12px;margin:12px 0 4px}.movie-genre{color:var(--muted)}.movie-events{margin:4px 0 0}.movie-source{display:inline-block;color:var(--teal);margin-left:12px;padding:8px 2px;min-height:44px}
@media(max-width:700px){.movie-filters{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.movie-filters label:first-child{grid-column:1/-1}.movie-table th{padding:8px 6px}.movie-table td{padding:4px 10px}.movie-expander{font-size:12px}}

.agenda-only{flex:1;padding:16px}.agenda-only .agenda{display:block}.month-cell{min-height:calc((100dvh - 220px)/5)}
@media(max-width:700px){.shell,.shell.expanded{display:block}.rail{height:68px;padding:6px 10px}.nav-button{padding:4px}.topbar{min-height:48px;padding:2px 12px}.topbar h1{font-size:16px}.top-actions{gap:4px}.topbar .text-button{padding:8px 10px}main{padding:10px 10px 14px}.date-navigation{width:100%;flex-wrap:wrap}.period-label{font-size:17px}.calendar-actions{width:100%;gap:8px}.calendar-actions .segmented{flex:1;width:auto}.calendar-actions .primary{white-space:nowrap;padding:8px 12px}.filter-row{gap:4px}.member-chip{padding:8px 9px;font-size:12px}.filter-row .text-button{font-size:12px;padding:8px 7px}.week-grid,.day-column{min-height:calc(100dvh - 290px)}}

.pin-form{display:grid;gap:16px;min-width:0}
.pin-form label{display:grid;gap:6px}
.pin-form input{width:100%;min-width:0;box-sizing:border-box}

/* Live overview keeps demo's seven-day columns, with compact actionable chips.
   Horizontal scrolling belongs to the board, never the document. */
.live-calendar-board{height:auto;max-width:100%;min-width:0}
.live-calendar-board .week-scroll{max-width:100%;overscroll-behavior-x:contain;scroll-padding:8px}
.live-calendar-board .week-grid{grid-template-columns:repeat(7,minmax(136px,1fr));min-width:952px;min-height:260px}
.live-calendar-board .day-column{min-width:0;min-height:260px}
.live-calendar-board .day-heading{width:100%;border-radius:0;min-height:54px}
.live-calendar-board .day-events{padding:8px;min-width:0}
.calendar-chip{display:flex;flex-direction:column;align-items:flex-start;gap:4px;width:100%;max-width:100%;min-width:0;min-height:44px;text-align:left;padding:8px;margin:0 0 6px;border:1px solid var(--line);border-left:3px solid var(--teal);background:var(--soft);border-radius:6px;overflow-wrap:anywhere;white-space:normal}
.calendar-chip strong{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;max-width:100%;font-size:12px;line-height:1.4}
.chip-time{font-size:10px;line-height:1.4;color:var(--muted);overflow-wrap:anywhere}
.calendar-chip.member-tadas{border-left-color:var(--tadas)}.calendar-chip.member-jin{border-left-color:var(--jin)}.calendar-chip.member-hailey{border-left-color:var(--hailey)}.calendar-chip.member-lily{border-left-color:var(--lily)}
.live-calendar-board .month-grid{min-width:630px}
.live-calendar-board .month-cell{padding:5px;min-width:0;min-height:128px}
.live-calendar-board .month-cell .day-events{padding:0}
.month-day{padding:0;min-width:44px;min-height:44px;display:flex;align-items:center;justify-content:center}
.month-day .day-number{margin:0}
.selected-day{box-shadow:inset 0 0 0 2px var(--teal)}
.live-calendar-board .today .day-number{border-radius:50%}
.day-empty{font-size:12px;margin:8px 0}
.calendar-series{margin-top:20px;display:grid;gap:10px}
@media(max-width:700px){.local-module .calendar-actions .segmented button{padding:8px 8px;font-size:13px}.live-calendar-board .week-grid{min-width:952px}.live-calendar-board .month-grid{min-width:630px}}

/* Live Calendar cards are content, not the sample agenda's 5px dot column.
   Apply at every width, including narrow desktop containers. */
.agenda:has(>.calendar-event){display:grid;grid-template-columns:minmax(0,1fr);gap:12px}
.agenda-item.calendar-event{display:grid;grid-template-columns:minmax(0,1fr);gap:7px;min-width:0;margin:0;padding:14px 16px;border:1px solid var(--line);border-radius:8px;background:var(--paper)}
.calendar-event>*{min-width:0;max-width:100%;overflow-wrap:anywhere}
.agenda-item .calendar-event-title{font-size:16px;line-height:1.45}
.calendar-event p{margin:0;font-size:13px;line-height:1.5}
.calendar-event-time,.calendar-event-members{color:var(--muted)}
.calendar-event-description{white-space:pre-wrap}
.calendar-event-actions{display:flex;flex-wrap:wrap;gap:6px;margin-top:3px}
.calendar-event-actions button{min-width:44px;min-height:44px;white-space:normal;border-color:var(--line);font-size:13px}
.calendar-live-toolbar{gap:8px 12px}
.calendar-live-toolbar h2{margin-right:auto}
.calendar-live-toolbar .muted{margin-left:0}
.calendar-cache-status{font-size:12px;line-height:1.4;margin:4px 0 8px}
.calendar-recurrence-note{font-size:12px;line-height:1.5;margin-bottom:12px}
#calendar-event-dialog,#calendar-metadata-dialog,#calendar-series-link-dialog{overflow-wrap:anywhere;scroll-padding-block:16px}
#calendar-event-dialog form,#calendar-metadata-dialog form{min-width:0}
#calendar-event-dialog label,#calendar-event-dialog fieldset{min-width:0}
#calendar-event-dialog input,#calendar-event-dialog textarea{min-width:0;max-width:100%}
#calendar-event-dialog textarea{width:100%;min-height:80px;resize:vertical;font:inherit;padding:10px;border:1px solid #bac8bd;border-radius:8px;background:var(--paper);color:var(--ink)}
#calendar-event-dialog input[type=checkbox],#calendar-metadata-dialog input[type=checkbox]{width:24px;height:24px;min-height:24px}
#calendar-event-dialog label:has(input[type=checkbox]),#calendar-metadata-dialog label{display:flex;flex-direction:row;align-items:center;justify-content:space-between;min-height:44px;gap:8px}
@media(max-width:700px){
 .topbar{gap:8px}.topbar h1{min-width:0;font-size:14px;line-height:1.4;letter-spacing:-.25px}.top-actions{flex:none;flex-wrap:nowrap;gap:3px}.topbar #help{min-width:44px;padding:8px 8px}
 .calendar-live-toolbar{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:6px}.calendar-live-toolbar h2{font-size:19px}.calendar-live-toolbar .muted{grid-column:1/-1;grid-row:2;order:initial;width:auto}.calendar-live-toolbar button{margin:0;padding:8px 10px;font-size:13px}
 .agenda-item.calendar-event{padding:12px}.calendar-event-actions button{flex:1 1 auto}
 .rail{height:calc(68px + env(safe-area-inset-bottom));padding-bottom:calc(6px + env(safe-area-inset-bottom))}.workspace{padding-bottom:calc(84px + env(safe-area-inset-bottom))}
 #calendar-event-dialog,#calendar-metadata-dialog{padding:18px;max-height:calc(100dvh - 24px)}
}

/* Optional one-at-a-time family personalization. */
.family-review-card{max-width:720px;margin:16px auto;padding:20px;background:var(--paper);border:1px solid var(--line);border-radius:12px;overflow-wrap:anywhere}
.family-review-card h3{font-size:22px;margin-bottom:10px}.family-review-card p{margin-bottom:12px}
.review-choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;border:0;padding:12px 0;margin:0 0 12px;min-width:0}
.review-choices legend{font-size:14px;padding:8px 0 8px}
.review-choice {display:flex;flex-direction:row;margin:0;align-items:center;justify-content:space-between;gap:12px;min-height:58px;padding:10px 14px;border:1px solid var(--line);border-radius:8px;font-size:17px;cursor:pointer}
.review-choice input {width:24px;height:24px;min-height:24px;flex:0 0 24px;margin:0;accent-color:var(--teal)}
.review-choice:has(input:checked){background:var(--soft);border-color:var(--teal)}
.family-review-card button{margin:4px 6px 4px 0}.review-coverage{font-size:13px;margin:12px 0;max-width:720px;overflow-wrap:anywhere}.review-coverage summary{cursor:pointer;min-height:44px;padding:10px 0}.review-progress{font-weight:600;margin-bottom:8px}

/* Shared content sizing: keep controls readable, scrolling local, and actions apart.
   Colors, borders and shadows deliberately remain in the existing rules above. */
:root{--nav-height:68px}
button,input,select,textarea{line-height:1.4;letter-spacing:normal;word-spacing:normal}
button{white-space:normal;overflow-wrap:anywhere}
button>svg{flex-shrink:0}
:is(.toolbar,.calendar-actions,.date-navigation,.module-toolbar,.topbar,.top-actions,.dialog-top,.dialog-actions,.details-row)>*{min-width:0}
.topbar,.calendar-actions,.dialog-actions,.board-footer{flex-wrap:wrap}
.topbar h1,.module-toolbar h2,.details-row span{overflow-wrap:anywhere}
.details-row{align-items:flex-start}.details-row>span{flex:1 1 0}
.module-filters{grid-template-columns:repeat(auto-fit,minmax(min(100%,160px),1fr))}
.module-filters :is(input,select,label){min-width:0;max-width:100%}
.gift-library .module-filters label{min-height:44px;flex-direction:row;margin:0}
.gift-library input[type=checkbox]{flex:0 0 20px}
.table-scroll{min-width:0;max-width:100%;overscroll-behavior-x:contain}
.data-table td{overflow-wrap:anywhere;max-width:32rem;min-width:7rem}
.data-table:not(.movie-table){min-width:600px}
.movie-expander{display:block}.movie-expander::before{margin-right:8px}
.local-module>button,.settings-section>button{margin-inline-end:8px;margin-block-end:8px}
footer{flex-wrap:wrap;gap:8px 16px}footer>span{min-width:0;flex-wrap:wrap}
footer .text-button{padding:8px}
.rail{overflow-y:auto}.rail .brand,.rail .nav-items,.rail .rail-bottom{flex-shrink:0}
dialog{max-width:calc(100% - 24px);max-height:calc(100dvh - 24px);scroll-padding:16px;overscroll-behavior:contain}
dialog :is(form,fieldset,label){min-width:0}
dialog>button,dialog form>button{margin:4px 8px 4px 0}
.dialog-top h2{line-height:1.4;overflow-wrap:anywhere}.dialog-top .icon-button{flex-shrink:0}
.pin-form label{margin:0}.pin-form .dialog-actions{margin-top:0}
.form-row{grid-template-columns:repeat(2,minmax(0,1fr))}
.welcome{max-width:760px;margin:clamp(16px,8vh,80px) auto;padding:16px}
a.primary{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:10px 16px;border-radius:8px;font-weight:600;line-height:1.4;text-decoration:none;overflow-wrap:anywhere}
@media(max-width:700px){
 :is(input,select,textarea),.movie-filters :is(input,select),#calendar-event-dialog :is(input,textarea){font-size:16px}
 .nav-items{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:2px}
 .nav-button{min-width:0;max-width:100%;padding:4px 2px;justify-content:center;white-space:normal;line-height:1.2}
 .nav-button span{max-width:100%;overflow-wrap:anywhere}
 .rail{height:calc(var(--nav-height) + env(safe-area-inset-bottom));padding-inline:6px}
 .workspace{padding-bottom:calc(var(--nav-height) + 16px + env(safe-area-inset-bottom))}
 .top-actions{flex-wrap:wrap}.topbar h1{flex:1 1 120px}
 .calendar-actions{gap:8px}.calendar-actions .segmented{min-width:0;flex:1 1 220px}
 .filter-row .text-button{padding:8px}
 .form-row{grid-template-columns:minmax(0,1fr)}
 .family-review-card{padding:16px}.review-choice{font-size:15px;padding:10px;gap:8px}
 .gift-library .module-filters,.movie-filters{grid-template-columns:repeat(2,minmax(0,1fr))}
 .identity-options{flex-wrap:wrap}
}

/* Calendar ownership: soft whole-card tints, equal-weight bottom segments. */
.calendar-chip,.agenda-item.calendar-event{position:relative;isolation:isolate;padding-bottom:20px;border-left-width:1px}
.calendar-chip[class*="member-"],.agenda-item.calendar-event[class*="member-"]{background:var(--event-bg)}
.calendar-chip.calendar-family,.agenda-item.calendar-event.calendar-family{background:var(--soft)}
.calendar-chip.calendar-shared,.agenda-item.calendar-event.calendar-shared{background:var(--paper)}
.calendar-color-row{position:absolute;left:0;right:0;bottom:0;height:8px;display:flex;overflow:hidden;border-radius:0 0 5px 5px;pointer-events:none}
.calendar-color-segment{display:block;flex:1 1 0;min-width:0;height:100%;background:var(--member,var(--teal))}
.calendar-cache-status .calendar-refresh{font-size:12px;padding:4px 8px;vertical-align:baseline}
.calendar-chip .chip-time,.calendar-event :is(.calendar-event-time,.calendar-event-members,.muted){color:var(--ink)}

/* Agenda: date first, time prominent, recurrence compact and non-technical. */
.calendar-event-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:8px;flex-wrap:wrap}
.calendar-event-heading .calendar-event-title{flex:1 1 180px;min-width:0}
.calendar-repeat-badge{display:inline-flex;align-items:center;gap:4px;flex:0 0 auto;align-self:flex-start;padding:3px 8px;border:1px solid var(--line);border-radius:999px;background:var(--soft);color:var(--ink);font-size:11px;font-weight:650;line-height:1.4;white-space:nowrap}
.calendar-repeat-badge>span:first-child{font-size:14px;line-height:1}
.calendar-event .calendar-event-time{display:grid;gap:2px;padding:4px 0}
.calendar-event-date{font-size:12px;font-weight:600;line-height:1.45}
.calendar-event-clock{font-size:16px;font-weight:650;line-height:1.45;font-variant-numeric:tabular-nums}
.calendar-event-zone{font-size:11px;line-height:1.4}

/* Calendar surface hierarchy: shared paper cards sit on the existing sage rail. */
.live-calendar-board{background:var(--rail)}
#calendar-details{background:var(--rail);border:1px solid var(--line);border-radius:12px;padding:12px;margin-top:16px;min-width:0}
#calendar-details>.section-title{margin:0 0 12px}

.passkey-settings{margin-top:20px;padding-top:12px}.passkey-settings>label{max-width:340px;margin:12px 0}.passkey-row{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px;margin:12px 0}.passkey-row>span{overflow-wrap:anywhere;min-width:0;flex:1}.passkey-unlock{display:grid;gap:10px;margin:16px 0}

/* Native event pickers: DST choices appear only for overlapping local times. */
#calendar-event-dialog .calendar-overlap[hidden]{display:none}

/* Betting: overall record first, then current-week performance and tickets. */
.betting-performance-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin:6px 0 12px}
.betting-performance-heading h3{margin:0}.betting-performance-heading select{width:auto;max-width:100%}
.betting-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.betting-metric,.bet-card{background:var(--paper);border:1px solid var(--line);border-radius:10px;padding:14px;min-width:0;overflow-wrap:anywhere}
.betting-metric>span,.betting-metric>small{display:block;font-size:12px;line-height:1.5}
.betting-metric>strong{display:block;font-size:22px;line-height:1.3;font-variant-numeric:tabular-nums;margin:7px 0}
.betting-method{font-size:12px;line-height:1.5;margin:10px 0 2px;max-width:960px}
.betting-card-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,270px),1fr));gap:12px}
.bet-card-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;flex-wrap:wrap}
.bet-card-heading strong{font-size:15px;flex:1 1 180px;min-width:0}
.bet-status{display:inline-block;border-radius:999px;background:var(--soft);padding:3px 8px;font-size:11px;font-weight:650;white-space:nowrap}
.bet-card p{margin:7px 0 0;line-height:1.45}.bet-card-pick{font-size:19px;font-weight:650;font-variant-numeric:tabular-nums}.bet-card-game{font-size:13px}.bet-card-date,.bet-card-risk{font-size:12px}
.betting-history,.betting-signal-history{border-top:1px solid var(--line);padding-top:12px;margin-top:20px;min-width:0}
.betting-history summary,.betting-signal-history summary{cursor:pointer;font-size:14px;font-weight:600;min-height:44px;padding:10px 0}
.betting-history .table-scroll{margin-top:8px}
@media(max-width:700px){.betting-summary{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.betting-dashboard .module-toolbar .muted{font-size:11px}.betting-dashboard .research-section p{font-size:12px}}
/* Scoped spacing rhythm: 24px sections, 12px groups, 8px related text. */
.betting-dashboard .module-toolbar{margin-bottom:16px}
.betting-overall{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:8px 24px;padding:20px;margin-bottom:24px}
.betting-overall>span{grid-column:1/-1;font-size:13px;font-weight:600}
.betting-overall>strong{font-size:32px;line-height:1.15;margin:0;letter-spacing:-.5px}
.betting-overall>small{justify-self:end;text-align:right}
.betting-week-label{margin:0 0 16px;line-height:1.5}
.betting-summary .betting-metric{display:flex;flex-direction:column;gap:8px;padding:14px}
.betting-summary .betting-metric>strong{margin:0;font-size:22px}
.betting-summary .betting-metric>small{margin-top:auto}
.betting-method{margin:16px 0 0}
.betting-week-taken>.section-title{margin:24px 0 12px}
.betting-dashboard .research-section{margin-top:24px;padding-top:24px}
.betting-dashboard .research-section>h3{margin:0 0 8px}
.betting-dashboard .research-section>p{margin:0 0 12px;line-height:1.6}
@media(max-width:700px){.betting-overall{grid-template-columns:minmax(0,1fr);gap:8px;padding:16px}.betting-overall>small{justify-self:start;text-align:left}.betting-week-label{font-size:15px}}
/* Name/result stay visible; native disclosure keeps details reachable on phones. */
.system-jobs{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,320px),1fr));gap:12px}
.system-job{min-width:0;background:var(--paper);border:1px solid var(--line);border-radius:10px;overflow-wrap:anywhere}
.system-job summary{display:flex;align-items:center;gap:10px;min-height:44px;padding:14px;cursor:pointer;list-style:none;font-size:14px;line-height:1.5}
.system-job summary::-webkit-details-marker{display:none}
.system-job summary::before{content:'›';flex:0 0 12px;font-size:22px;line-height:1;transition:transform .12s}
.system-job[open]>summary::before{transform:rotate(90deg)}
.system-job summary:focus-visible{outline:3px solid #1c6b58;outline-offset:3px}
.system-job-name{flex:1;min-width:0;font-weight:600}.system-job-result{flex:0 0 auto;white-space:nowrap;font-size:12px}
.system-job .system-job-details{padding:0 14px 14px}
.system-job .details-list{margin:0}.system-job .details-row{font-size:13px;line-height:1.5;gap:12px}
