:root{color-scheme:light dark;--ink:var(--text);--muted:var(--textMuted);--line:var(--border);--green:var(--primary);--cream:var(--background)}*{box-sizing:border-box}body{margin:0;background:var(--cream);color:var(--ink);font:16px/1.55 system-ui,sans-serif}header{display:flex;align-items:center;gap:24px;padding:22px 5vw;border-bottom:1px solid var(--line);background:var(--surface)}header span{color:var(--muted);font-size:14px}header button{margin-left:auto}.brand{font-size:23px;font-weight:750;text-decoration:none;color:var(--green)}main{max-width:1160px;padding:48px 24px;margin:auto}.intro small{letter-spacing:2px;font-size:11px;font-weight:700;color:var(--muted)}h1{font:48px/1.15 Georgia,serif;margin:15px 0}p{color:var(--muted)}nav{display:flex;gap:10px;flex-wrap:wrap;margin:32px 0}button{font:inherit;border:1px solid var(--line);background:var(--surface);padding:9px 16px;border-radius:8px;cursor:pointer;color:var(--ink)}button:hover{border-color:var(--green)}button.selected,form button{background:var(--green);color:var(--onPrimary)}.view-heading{display:flex;justify-content:space-between;align-items:center;gap:16px;margin:30px 0 18px}h2{font-size:20px;margin:0}.cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.card{border:1px solid var(--line);border-radius:14px;background:var(--surface);overflow:hidden}.card img{width:100%;height:240px;object-fit:contain;background:var(--surfaceRaised)}.card .body{padding:20px}.card h3{font-size:18px;line-height:1.4;margin:10px 0}.card p{font-size:14px}.card small{font-size:12px;color:var(--muted)}.card a{color:var(--green);font-weight:650}.card button{font-size:13px;margin-top:12px}.empty{grid-column:1/-1;background:var(--surfaceRaised);border-radius:14px;padding:40px;text-align:center}.badge{display:inline-block;font-size:11px;padding:4px 8px;border-radius:5px;background:var(--selected);color:var(--green)}.error{color:var(--danger)}.health{grid-column:1/-1}.health .body{display:flex;justify-content:space-between;gap:20px;flex-wrap:wrap}#notice:not(:empty){padding:12px 18px;background:var(--warningSurface);border-radius:8px}form{background:var(--surface);padding:24px;border:1px solid var(--line);border-radius:12px;max-width:650px}label{display:block;font-size:14px;margin:14px 0}input,select{display:block;font:inherit;width:100%;padding:10px;border:1px solid var(--line);border-radius:6px;background:var(--surface);color:var(--ink)}#search{max-width:260px}footer{font-size:12px;color:var(--muted);border-top:1px solid var(--line);margin-top:48px;padding-top:20px}footer span{display:block;margin-top:6px}@media(max-width:800px){.cards{grid-template-columns:repeat(2,minmax(0,1fr))}header span{display:none}h1{font-size:38px}}@media(max-width:520px){main{padding:32px 18px}.cards{grid-template-columns:1fr}nav button{font-size:13px}.view-heading{align-items:flex-start;flex-direction:column}#search{max-width:none}.card img{height:260px}}

input[type="checkbox"]{display:inline-block;width:auto;margin-right:8px}#interest-form-wrap form+form{margin-top:18px}

#opportunity-sort{max-width:300px}.calendar-toolbar{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.cards.calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:0;overflow:auto}.calendar-weekday{padding:10px;font-size:12px;text-align:center}.calendar-day{min-height:130px;background:var(--surface);border:1px solid var(--line);padding:8px;min-width:0}.calendar-day.outside{background:var(--surfaceRaised)}.calendar-day.today{box-shadow:inset 0 0 0 2px var(--green)}.calendar-entry{display:block;margin:8px 0;padding:6px;background:var(--selected);font-size:12px;line-height:1.4;color:var(--green);overflow-wrap:anywhere;text-decoration:none;border-radius:4px}.calendar-entry small{display:block;font-size:10px;color:var(--muted)}.calendar-note{grid-column:1/-1}@media(max-width:700px){.calendar-grid{min-width:660px}main:has(.calendar-grid){overflow-x:auto}}

[hidden]{display:none!important}
#sync-status{display:flex;align-items:center;gap:10px;padding:10px 0;font-size:13px;color:var(--muted)}#sync-status[data-mode="offline"]{color:var(--warning)}.sync-spinner{width:16px;height:16px;flex-shrink:0;border:2px solid var(--border);border-top-color:var(--green);border-radius:50%;animation:sync-spin .8s linear infinite}@keyframes sync-spin{to{transform:rotate(360deg)}}@media(prefers-reduced-motion:reduce){.sync-spinner{animation:none}}

button:disabled{opacity:.5;cursor:not-allowed}#interest-filter{border:1px solid var(--line);border-radius:8px;background:var(--surface);padding:12px;margin:18px 0}#interest-filter summary{cursor:pointer}#interest-filter-options{display:flex;gap:12px;flex-wrap:wrap}#interest-filter-options label{margin:10px 0}.card select{font-size:12px}.card button+button{margin-left:6px}

button:active{transform:scale(.97);background:var(--selected)}button[aria-busy=true]{opacity:.8;background:var(--selected)}.action-toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);z-index:1000;max-width:calc(100vw - 32px);width:max-content;padding:14px 20px;background:var(--primary);color:var(--onPrimary);border-radius:12px;box-shadow:0 4px 24px #0003}.action-toast.error{background:var(--danger);color:var(--onPrimary)}

body{padding-bottom:calc(88px + env(safe-area-inset-bottom));overscroll-behavior-y:contain}header{padding:14px 24px;position:sticky;top:0;z-index:20}#preferences-button{font-size:24px;padding:2px 12px;min-height:44px}#bottom-nav{position:fixed;bottom:0;left:0;right:0;z-index:30;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:4px;margin:0;padding:8px max(12px,env(safe-area-inset-right)) calc(8px + env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left));background:var(--surface);border-top:1px solid var(--line);box-shadow:0 -3px 16px #243c3808}#bottom-nav button{border:0;background:transparent;display:flex;flex-direction:column;align-items:center;gap:2px;min-height:52px;padding:4px;font-size:12px;font-weight:600;color:var(--muted)}#bottom-nav button span:first-child{font-size:22px;line-height:24px}#bottom-nav button.selected{background:var(--selected);color:var(--green)}.action-toast{bottom:calc(90px + env(safe-area-inset-bottom))}.preferences-heading{display:flex;align-items:center;gap:18px}.preferences-heading h1{font-size:32px}.preferences-tabs{margin:18px 0;gap:8px}.preferences-tabs button{min-height:44px}.settings-panel{padding:22px;background:var(--surface);border:1px solid var(--line);border-radius:14px;margin:18px 0}#pull-refresh{position:fixed;top:68px;left:50%;transform:translateX(-50%);z-index:40;padding:10px 18px;background:var(--green);color:var(--onPrimary);border-radius:24px;box-shadow:0 4px 18px #0002;font-size:14px;white-space:nowrap}button,input,select{min-height:44px}.calendar-grid{min-width:0!important}.calendar-toolbar button{padding:8px 10px}.calendar-toolbar h2{font-size:17px}@media(max-width:600px){main{padding:20px 16px}.intro small,.intro p{display:none}h1{font-size:28px;margin:0 0 18px}header{padding:10px 16px}.brand{font-size:21px}.view-heading{display:grid;grid-template-columns:1fr;gap:10px;margin:20px 0 14px}.view-heading h2{font-size:20px}#opportunity-sort,#search{max-width:none;width:100%}.card .body{padding:16px}.card img{height:190px}.card button{min-height:44px}form{padding:18px}.calendar-day{min-height:100px;padding:3px}.calendar-day strong{font-size:12px}.calendar-entry{font-size:10px;padding:4px;margin:4px 0;line-height:1.3}.calendar-entry small{font-size:9px}.calendar-weekday{padding:6px 2px}.preferences-heading{gap:12px}.preferences-heading h1{margin:0;font-size:26px}.preferences-tabs{display:grid;grid-template-columns:1fr}.action-toast{font-size:14px}.health .body{display:block}}@media(prefers-reduced-motion:reduce){button:active{transform:none}}

/* Compact scanning views: details are revealed only when requested. */
.brand-block{display:flex;flex-direction:column;gap:0}.brand-block small{font-size:12px;color:var(--muted);line-height:1.2}header .brand-block{margin-right:auto}.intro{display:none}.view-top{display:flex;align-items:center;gap:10px;margin:0 0 10px}.view-top h2{font-size:20px}.view-top>span{font-size:12px;color:var(--muted)}#view-tools{border-bottom:1px solid var(--line);margin:0 0 12px;padding:0 0 6px}#view-tools>summary{min-height:36px;cursor:pointer;color:var(--muted);font-size:13px;display:flex;align-items:center;gap:8px}#view-tools>summary:after{content:'⌄'}#view-tools[open]>summary:after{content:'⌃'}#view-tools .view-heading{margin:8px 0;display:flex;flex-wrap:wrap}#view-tools #interest-filter{margin:6px 0}#view-tools #opportunity-sort,#view-tools #search{flex:1;min-width:140px}.compact-opportunity summary{list-style:none;display:flex;align-items:flex-start;gap:12px;padding:14px;cursor:pointer;min-height:128px}.compact-opportunity summary::-webkit-details-marker{display:none}.compact-opportunity summary>img{height:72px;width:72px;flex-shrink:0;border-radius:8px;object-fit:cover}.opportunity-preview{flex:1;min-width:0}.compact-opportunity h3{font-size:16px;line-height:1.3;margin:4px 0;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.compact-opportunity .preview-source{font-size:11px;color:var(--muted)}.compact-opportunity p.preview-date{font-size:12px;color:var(--green);font-weight:600;margin:5px 0}.compact-opportunity p.preview-context{font-size:12px;line-height:1.4;margin:4px 0 0;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.expand-cue{font-size:18px;color:var(--muted)}.compact-opportunity details[open] .expand-cue{transform:rotate(180deg)}.opportunity-details{border-top:1px solid var(--line)}#bottom-nav{grid-template-columns:repeat(4,minmax(0,1fr))}#browse-description{font-size:13px;margin:10px 0}footer{display:none}button:focus-visible,summary:focus-visible,a:focus-visible{outline:2px solid var(--green);outline-offset:3px}
/* Month overview always fits; event text belongs in the selected-day agenda. */
body.calendar-view main{display:flex;flex-direction:column;height:calc(100svh - 152px - env(safe-area-inset-bottom));padding-top:12px;padding-bottom:8px;overflow:hidden}.calendar-view #calendar-controls{flex:none}.calendar-toolbar{display:grid;grid-template-columns:44px 1fr 44px 60px;gap:6px}.calendar-toolbar h2{text-align:center;font-size:18px}.calendar-toolbar button{padding:4px;min-height:40px}.calendar-view #calendar-controls>p,.calendar-view #calendar-status{display:none}.calendar-view #view-tools{flex:none;margin:6px 0}.calendar-view #view-tools[open]{max-height:160px;overflow:auto}.cards.calendar-grid{flex:none;height:clamp(220px,42svh,350px);grid-template-rows:22px repeat(var(--weeks,6),minmax(0,1fr));overflow:hidden;gap:3px}.calendar-weekday{font-size:11px;padding:2px}.calendar-day{min-width:0;min-height:0!important;border:0;border-radius:8px;padding:4px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:5px;font:inherit;background:var(--surface);color:var(--ink)}.calendar-day strong{font-size:14px!important;font-weight:500}.calendar-day.outside{background:transparent}.calendar-day.today{box-shadow:inset 0 0 0 1px var(--green)}.calendar-day.chosen{background:var(--green);color:var(--onPrimary);box-shadow:none}.calendar-dots{height:6px;display:flex;gap:3px}.calendar-dot{display:inline-block;width:5px;height:5px;border-radius:50%;background:var(--opportunity)}.calendar-dot.calendar{background:var(--calendar)}.calendar-dot.reminder{background:var(--reminder)}.calendar-day.chosen .calendar-dot.opportunity{background:#ffc888}#day-agenda{display:flex;flex-direction:column;min-height:0;flex:1;margin-top:10px}#day-agenda h3{font-size:15px;margin:0 0 6px}.agenda-list{overflow-y:auto;min-height:0;flex:1;overscroll-behavior:contain}.agenda-item{padding:8px 10px;border-left:3px solid var(--opportunity);background:var(--surface);border-radius:6px;margin-bottom:6px}.agenda-item.calendar{border-color:var(--calendar)}.agenda-item.reminder{border-color:var(--reminder)}.agenda-item small{font-size:11px;color:var(--muted);display:block}.agenda-item a,.agenda-item p,.agenda-item button{font-size:13px;font-weight:600;line-height:1.35;margin:2px 0;color:var(--ink)}.agenda-item button{border:0;background:none;text-align:left;padding:0;min-height:32px}.agenda-item a{display:block;text-decoration:none}.empty-day{font-size:13px;margin:4px 0}.calendar-legend{font-size:10px;display:flex;justify-content:center;gap:10px;margin:6px 0 0;flex:none}.calendar-legend span{display:flex;align-items:center;gap:4px}@media(max-width:600px){main{padding:14px 12px}.cards{gap:10px}.compact-opportunity summary{padding:12px;gap:10px}.compact-opportunity summary>img{height:64px;width:64px}.preferences-tabs{grid-template-columns:repeat(2,minmax(0,1fr))}.preferences-tabs button{font-size:12px;padding:8px}.calendar-view main{height:calc(100svh - 148px - env(safe-area-inset-bottom))}.cards.calendar-grid{height:clamp(220px,39svh,320px)}}@media(max-height:650px){.cards.calendar-grid{height:210px}.calendar-view main{padding-top:6px}.calendar-legend{display:none}}

body.calendar-view{height:100svh;overflow:hidden;display:flex;flex-direction:column;padding-bottom:calc(72px + env(safe-area-inset-bottom))}body.calendar-view header{flex:none}body.calendar-view main{height:auto;min-height:0;flex:1;width:100%;margin:0 auto}
.cards.calendar-grid{height:clamp(calc(22px + var(--weeks,6)*44px),39svh,350px)}@media(max-height:650px){.cards.calendar-grid{height:calc(22px + var(--weeks,6)*44px)}}

#day-dialog{width:calc(100vw - 24px);max-width:560px;max-height:80svh;border:0;border-radius:16px;padding:20px;background:var(--cream);color:var(--ink)}#day-dialog::backdrop{background:#172d2866}#day-dialog-close{float:right}#day-dialog h2{margin:8px 0 18px}#day-dialog .agenda-list{max-height:58svh;overflow:auto}

.add-panel{margin:0 0 14px}.add-panel>summary{cursor:pointer;min-height:44px;padding:10px 14px;background:var(--selected);border-radius:8px;font-size:14px;color:var(--green);width:max-content}.add-panel form{margin-top:10px}

#inbox-options{display:flex;flex-wrap:wrap;gap:12px;align-items:center}#inbox-options>label{flex:1;min-width:140px;margin:8px 0}.show-all small{display:block;color:var(--muted);font-size:11px;margin-left:24px}.compact-opportunity p.preview-price{font-size:14px;font-weight:650;color:var(--ink);margin:4px 0}.show-all input{min-height:0}.preview-source{display:block}

/* Dismiss remains reachable while the opportunity is collapsed. */
.compact-opportunity{position:relative}.compact-opportunity summary{padding-right:82px}.dismiss-opportunity{position:absolute;right:8px;top:8px;font-size:12px;padding:8px;min-height:44px;min-width:64px;background:transparent;color:var(--muted);border:1px solid var(--line);border-radius:8px}.compact-opportunity summary .expand-cue{display:none}

textarea{width:100%;min-height:76px;font:inherit;border:1px solid var(--line);border-radius:8px;padding:10px}.task-step{display:flex;gap:10px;align-items:center}.task-step input{width:auto}.task-important{color:var(--green)}.task-editor{width:min(92vw,440px);max-height:85svh;overflow:auto;border:1px solid var(--line);border-radius:12px;padding:20px}.task-editor::backdrop{background:#0006}

#digest-summary{font-size:12px;color:var(--muted);margin:0 0 8px}.new-digest-badge{display:inline-block;color:var(--green);font-size:11px;font-weight:600;margin-top:4px}#view-tools>summary{flex-wrap:wrap}

.compact-opportunity.swiping{transition:none;overflow:visible;will-change:transform}.swipe-dismiss-hint{position:absolute;right:8px;top:8px;background:var(--primary);color:var(--onPrimary);border-radius:6px;padding:6px 8px;font-size:.75rem;pointer-events:none}.swipe-ready .swipe-dismiss-hint{background:var(--danger)}.compact-opportunity[hidden]{display:none}

.quick-task-form{display:flex;gap:8px;margin:8px 0}.quick-task-form input{flex:1;min-width:0;margin:0}.quick-task-form button{flex-shrink:0}#quick-task-destination{display:block;margin-bottom:10px;color:var(--muted)}

.notification-focus{outline:2px solid var(--green);outline-offset:2px}

/* Semantic light/dark palette from the design review. */
:root:not([data-theme]),[data-theme="light"] {
  --background: #F6F7F1;
  --surface: #FFFFFF;
  --surfaceRaised: #EEF2EA;
  --text: #243C38;
  --textMuted: #52645E;
  --primary: #234E45;
  --onPrimary: #FFFFFF;
  --selected: #E7EFE7;
  --onSelected: #234E45;
  --border: #CAD5CE;
  --focus: #234E45;
  --danger: #963E2C;
  --onDanger: #FFFFFF;
  --warning: #75511D;
  --warningSurface: #FFF2D9;
  --opportunity: #975015;
  --calendar: #3E648F;
  --reminder: #74508E;
}
[data-theme="dark"] {
  --background: #121A17;
  --surface: #1B2621;
  --surfaceRaised: #25332C;
  --text: #EDF3EC;
  --textMuted: #B2C3B8;
  --primary: #ACD1B9;
  --onPrimary: #16372C;
  --selected: #2B4639;
  --onSelected: #C6E8D1;
  --border: #485C50;
  --focus: #ACD1B9;
  --danger: #FFB4A3;
  --onDanger: #461E17;
  --warning: #F0D299;
  --warningSurface: #3B3020;
  --opportunity: #EDB16E;
  --calendar: #A9C8EE;
  --reminder: #D0B7E8;
}

/* Reachable month, sheets, compact rows and accessible controls. */
[data-theme="light"]{color-scheme:light}[data-theme="dark"]{color-scheme:dark}
h1,.preferences-heading h1{font:700 24px/1.4 system-ui,sans-serif}
button,input,select,summary{min-height:48px}button{min-width:48px}input,select,textarea{background:var(--surface);color:var(--ink)}input[type=checkbox]{accent-color:var(--primary);width:24px;height:24px;min-height:24px;flex-shrink:0}label:has(>input[type=checkbox]){display:flex;align-items:center;gap:8px;min-height:48px;margin:4px 0}label:has(>input[type=checkbox]) input{margin:0}
button.selected,form button,.calendar-day.chosen,.action-toast{background:var(--primary);color:var(--onPrimary)}button:active,button[aria-busy=true]{background:var(--selected);color:var(--onSelected)}.action-toast.error{background:var(--danger);color:var(--onDanger)}
button:focus-visible,summary:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid var(--focus);outline-offset:2px}
#preferences-button,.preferences-tabs button,.calendar-toolbar button{min-height:48px}.calendar-toolbar{grid-template-columns:48px 1fr 48px 60px}
#bottom-nav button.selected{background:var(--selected);color:var(--onSelected)}.compact-opportunity .preview-source,.compact-opportunity p.preview-date,.compact-opportunity p.preview-context,.card small,.agenda-item small,#digest-summary,.new-digest-badge{font-size:14px}
.compact-opportunity summary .expand-cue{display:block}.compact-opportunity details[open]>summary h3{-webkit-line-clamp:unset}.compact-opportunity summary{padding-right:88px}.dismiss-opportunity{min-height:48px}.opportunity-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.opportunity-actions a{display:inline-flex;align-items:center;min-height:48px}.opportunity-actions label{flex:1;min-width:180px}.opportunity-actions .reminder-preview,.action-help{width:100%;font-size:14px}.opportunity-advanced{margin-top:12px}.opportunity-advanced>summary{display:flex;align-items:center;font-weight:600}
#filter-button{margin:0 0 12px;text-align:left;width:100%}#filter-dialog{width:min(560px,calc(100vw - 24px));max-height:85svh}#filter-close{float:right}#view-tools{clear:both}#filter-dialog .view-heading{display:flex;flex-wrap:wrap}#filter-dialog #search,#filter-dialog #opportunity-sort{max-width:none;min-width:140px;flex:1}
body.calendar-view{height:auto;min-height:100svh;overflow:auto;display:block;padding-bottom:calc(88px + env(safe-area-inset-bottom))}body.calendar-view main{display:block;height:auto;overflow:visible;padding-bottom:16px}.cards.calendar-grid{height:calc(26px + var(--weeks,6)*51px);grid-template-rows:26px repeat(var(--weeks,6),48px);overflow:visible;flex:none}.calendar-day{min-height:48px!important}.calendar-weekday{font-size:14px}.calendar-legend{display:flex;font-size:14px}.agenda-item button,.agenda-item a{min-height:48px;display:flex;align-items:center}.agenda-item p,.agenda-item button,.agenda-item a{font-size:16px}#day-agenda{display:block}.agenda-list{overflow:visible}.calendar-day.chosen{color:var(--onPrimary)}
#forms{margin-bottom:12px}.quick-task-form{padding:0;background:transparent;border:0}.quick-task-form #voice-task{background:var(--surface);color:var(--ink);border-color:var(--line);font-size:20px}.task-row .body{padding:10px 12px}.task-row-heading{display:flex;align-items:center;gap:8px}.task-row .task-complete{margin:0;min-width:48px;width:48px;height:48px;flex:none;font-size:20px}.task-row .task-title{margin:0;padding:6px 0;border:0;background:transparent;color:var(--ink);text-align:left;font-size:16px;font-weight:600;overflow-wrap:anywhere;flex:1}.task-row small{display:block;margin-left:56px}.task-row details{margin-left:56px}.task-row summary{display:flex;align-items:center;font-size:14px;color:var(--muted)}body:has(#forms:not([hidden])) .cards{grid-template-columns:1fr}
#interest-form-wrap{display:flex;justify-content:space-between;align-items:flex-start;gap:8px;margin:12px 0}#interest-form-wrap .add-panel{margin:0}#interest-dialog form{padding:0;border:0;background:transparent}#interest-dialog .add-panel>summary{width:auto}
#sync-status{font-size:14px;background:var(--surfaceRaised);border-radius:8px;padding:8px 12px;margin-bottom:10px}#sync-status[data-mode=offline]{background:var(--warningSurface);color:var(--warning)}.action-toast{max-height:30svh;overflow:auto}dialog .action-toast{position:sticky;bottom:0;left:auto;transform:none;max-width:100%;margin-top:12px;width:100%}
#reminder-delivery-note,#reminder-preview{font-size:14px}.settings-panel p{overflow-wrap:anywhere}svg.ui-icon{width:24px;height:24px;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}
@media(max-width:600px){main{padding:14px 16px}.compact-opportunity summary{min-height:128px}.preferences-heading h1{font-size:24px}.preferences-tabs button{font-size:14px}}@media(max-height:650px),(orientation:landscape){.calendar-legend{display:flex}#day-agenda{margin-top:12px}}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;animation:none!important;transition:none!important}}

body.calendar-view main{padding-left:12px;padding-right:12px;overflow-x:auto}.cards.calendar-grid{grid-template-columns:repeat(7,minmax(48px,1fr));gap:0;min-width:336px!important}.calendar-day{margin:1px;min-height:48px!important}.calendar-grid{grid-template-rows:26px repeat(var(--weeks,6),50px)!important;height:calc(26px + var(--weeks,6)*50px)!important}

.settings-sheet{width:min(92vw,440px);max-height:85svh;overflow:auto;border:1px solid var(--line);border-radius:16px;padding:20px;background:var(--surface);color:var(--ink)}.settings-sheet::backdrop{background:#0006}.task-editor{background:var(--surface);color:var(--ink)}

.calendar-day{margin:0}.opportunity-advanced form{padding:12px;background:var(--surfaceRaised)}

#bottom-nav button{font-size:14px}.badge{font-size:14px}.card h3{font-size:16px}

body,body.calendar-view{padding-bottom:calc(var(--nav-height,88px) + 16px)}.action-toast{bottom:calc(var(--nav-height,88px) + 12px)}dialog .action-toast{bottom:0}html{scroll-padding-bottom:calc(var(--nav-height,88px) + 16px)}

#bottom-nav button{min-width:0;overflow-wrap:anywhere}#bottom-nav button span{max-width:100%}#bottom-nav button span:last-child{white-space:normal;overflow-wrap:anywhere;text-align:center}
#bottom-nav{grid-template-columns:repeat(5,minmax(0,1fr))}
.collection-actions{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:12px}.collection-filter-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.collection-filters{padding:12px 0}.collection-filters summary{min-height:48px;display:flex;align-items:center;cursor:pointer}.collection-card .body{padding:12px}.collection-card h3{margin:5px 0}.collection-card p{margin:6px 0;font-size:14px}.collection-card summary{min-height:44px;cursor:pointer}.collection-card small{font-size:13px}#collection-search{width:100%}#collection-form-error{color:var(--error)}#collection-value{font-size:14px;color:var(--muted)}#collection-dialog input,#collection-dialog textarea{width:100%}#collection-dialog input[type=checkbox]{width:auto}#collection-items{grid-template-columns:repeat(auto-fit,minmax(260px,1fr))}
@media(max-width:600px){#bottom-nav button{font-size:12px}#collection-items{grid-template-columns:1fr}}
.collection-photo{float:left;width:88px!important;height:100px!important;object-fit:contain!important;margin:0 12px 8px 0;border-radius:8px;background:var(--surfaceRaised)}.collection-card details{clear:both}
.book-volume{display:flex;flex-wrap:wrap;align-items:center;gap:8px;padding:8px 0;border-top:1px solid var(--line)}.book-volume small{flex:1;min-width:120px}.book-volume img{width:48px!important;height:64px!important;object-fit:contain}.book-volume button{font-size:13px}.book-group summary{font-weight:600}

.calendar-legend{flex-wrap:wrap;max-width:100%}.calendar-legend span{min-width:0;overflow-wrap:anywhere}.calendar-day strong{line-height:1.15}.calendar-day{gap:3px;padding:3px}.view-top h2,.calendar-toolbar h2{min-width:0;overflow-wrap:anywhere}@media(max-height:650px){main{padding-top:14px;padding-bottom:14px}}

#sync-status{flex-wrap:wrap}#sync-message{flex:1 1 180px;overflow-wrap:anywhere}
.timing-warning,.card .timing-warning{color:var(--ink);background:var(--warningSurface);border-left:3px solid #aa6b00;padding:6px 8px;border-radius:4px;font-size:.8rem;line-height:1.4}

.collection-layout{display:flex;gap:12px;align-items:center}.collection-layout label{flex:1;margin:4px 0}#collection-items.collection-photo-grid{grid-template-columns:repeat(var(--collection-columns,2),minmax(0,1fr));gap:10px}.collection-photo-grid .collection-card{border-radius:10px;min-width:0}.collection-tile{display:flex;align-items:center;justify-content:center;position:relative;width:100%;aspect-ratio:1;margin:0!important;padding:8px;border:0;border-radius:0;background:var(--surfaceRaised);color:var(--ink)}.collection-tile img{width:100%;height:100%;position:absolute;inset:0;object-fit:contain;padding:8px}.collection-photo-fallback{overflow-wrap:anywhere;font-size:14px;font-weight:600;text-align:center}.collection-photo-fallback[hidden]{display:none}.collection-tile:focus-visible{outline:3px solid var(--green);outline-offset:-3px}.collection-detail-dialog>.body{padding:12px 0}.collection-detail-dialog .collection-photo{float:none;width:100%!important;height:220px!important;margin:0 0 12px}

.collection-view-toggle{display:flex;flex:2;gap:0}.collection-view-toggle button{flex:1;padding:8px;min-height:48px;font-size:14px;border-radius:0}.collection-view-toggle button:first-child{border-radius:8px 0 0 8px}.collection-view-toggle button:last-child{border-radius:0 8px 8px 0}.collection-layout #collection-columns-label{flex:1}

.brand{font-weight:650;letter-spacing:-.04em}

/* Kureo: flat groups, quiet actions, consistent mobile targets. */
header{gap:12px;background:var(--background);border-bottom:0;padding:12px 16px}
#preferences-button,.icon-button{display:inline-flex;align-items:center;justify-content:center;width:48px;height:48px;min-width:48px;min-height:48px;padding:0;margin:0;border:0;background:transparent;line-height:1}
#preferences-button svg{display:block}
.preferences-heading h1{font:600 24px/1.2 system-ui,sans-serif;margin:0}
.preferences-heading button{border:0;background:transparent;padding-left:0;color:var(--muted)}
.preferences-tabs{display:flex;flex-wrap:nowrap;gap:0;border-bottom:1px solid var(--line);margin:18px 0 8px}
.preferences-tabs button{flex:1;border:0;border-radius:0;padding:8px 4px;background:transparent;color:var(--muted);font-size:14px}
.preferences-tabs button.selected{background:transparent;color:var(--ink);box-shadow:inset 0 -2px var(--primary)}
#preferences-overview{max-width:650px}
#preferences-overview>.settings-panel{background:transparent;border:0;border-bottom:1px solid var(--line);border-radius:0;padding:20px 0;margin:0}
.settings-panel h2{font-size:16px;font-weight:600}.settings-panel p{font-size:14px;margin:8px 0}.settings-panel label{margin:12px 0}
.section-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}
.section-heading h3{font-size:14px;font-weight:600;margin:0}.section-heading small{color:var(--muted);font-size:12px}
.connection-group{margin:8px 0 16px}.connection-group:last-child{margin-bottom:0}
.connection-row{display:flex;align-items:center;gap:12px;min-height:64px;padding:8px 0}
.connection-info{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}.connection-info>span{font-size:14px;overflow-wrap:anywhere}.connection-info small{font-size:12px;color:var(--muted)}.connection-info .connection-warning{color:var(--warning)}
#google-connections-status:empty{display:none}
.overflow-menu{position:relative;flex:none}.overflow-menu>summary{display:flex;align-items:center;justify-content:center;list-style:none;cursor:pointer;width:48px;height:48px;font-size:24px;border-radius:8px}
.overflow-menu>summary::-webkit-details-marker{display:none}.overflow-menu[open]>summary{background:var(--surfaceRaised)}
.overflow-menu>div{position:absolute;right:0;top:48px;min-width:160px;z-index:25;padding:4px;background:var(--surface);box-shadow:0 4px 16px #0002;border:1px solid var(--line);border-radius:12px}
.overflow-menu>div button{display:block;text-align:left;width:100%;margin:0;border:0;background:transparent;white-space:nowrap}
.text-button,#refresh,#pin-task-widget,#phone-connection,#sign-out,#clear-saved{border:0;background:transparent;color:var(--primary);padding:8px 0;min-height:48px}
.account-settings>summary{min-height:48px;display:flex;align-items:center;cursor:pointer;font-size:16px;font-weight:600}.account-settings button{display:block}
#social-account-form{display:flex;align-items:end;gap:8px;padding:0;border:0;background:transparent}#social-account-form label{flex:1;min-width:0;margin:8px 0}#social-account-form button{margin-bottom:8px}
#social-account-list>div{display:flex;align-items:center;gap:8px;border-bottom:1px solid var(--line)}#social-account-list p{flex:1}#social-account-list button{border:0;background:transparent;color:var(--muted)}
#filter-button{width:auto;background:transparent;border:0;color:var(--muted);padding:8px 0;margin:0 0 8px;min-height:48px}
.card:not(.collection-card){border:0;border-radius:0;background:transparent;border-bottom:1px solid var(--line)}
.cards:not(.calendar-grid){gap:8px}.compact-opportunity summary{padding:14px 48px 14px 0;min-height:116px}.compact-opportunity summary>img{width:64px;height:64px}.compact-opportunity .dismiss-opportunity{right:0;top:4px;width:48px;height:48px;min-height:48px;padding:0;margin:0;border:0;background:transparent;color:var(--muted);font-size:24px}.compact-opportunity .opportunity-details{padding:8px 0 16px}
.task-row .body{padding:8px 0}.task-row .task-complete{border-radius:50%;width:48px;height:48px;background:transparent;color:var(--primary)}
#bottom-nav{box-shadow:none;gap:0}#bottom-nav button.selected{background:transparent;color:var(--primary)}#bottom-nav button span:first-child{display:flex;align-items:center;justify-content:center;width:48px;height:28px}#bottom-nav button.selected span:first-child{background:var(--selected);border-radius:16px}
.collection-actions{align-items:center;justify-content:space-between}.collection-layout{gap:8px}.collection-view-toggle{background:var(--surfaceRaised);border-radius:8px;padding:3px}.collection-view-toggle button{border:0;border-radius:6px!important;background:transparent;color:var(--muted)}.collection-view-toggle button.selected{background:var(--surface);color:var(--ink)}
.collection-search-label{margin:12px 0}.collection-photo-grid .collection-card{border:0}.collection-filters{padding:0}.collection-layout label{font-size:12px}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(min-width:700px){header{padding-left:24px;padding-right:24px}#preferences-overview>.settings-panel{padding:24px 0}}
#preferences-button.selected,#preferences-button:active{color:var(--ink);background:var(--surfaceRaised);border-radius:50%}
.connection-info{flex-direction:row;align-items:center;flex-wrap:wrap;gap:4px 10px}.connection-info>span{flex:1 1 130px;min-width:0}.connection-info small{flex:none}
#forms>.add-panel>summary,.list-options>summary{background:transparent;border:0;padding:8px 0;color:var(--muted);border-radius:0;min-height:48px;font-weight:400}
.list-options{margin:0}.list-options button{background:transparent;border:0;color:var(--primary)}
.empty{background:transparent;border-radius:0;padding:32px 16px;font-size:14px}
.opportunity-sheet{padding:0 20px 20px;width:min(560px,calc(100vw - 24px));max-height:90svh;border-radius:20px}
.opportunity-sheet-bar{position:sticky;top:0;display:flex;align-items:center;justify-content:space-between;background:var(--surface);z-index:1;padding:8px 0;border-bottom:1px solid var(--line)}
.opportunity-sheet-bar small{color:var(--muted);font-size:13px}.opportunity-sheet .opportunity-details{padding:16px 0 0}
.opportunity-sheet h2{font-size:22px;line-height:1.3;margin:0 0 12px;overflow-wrap:anywhere}.opportunity-facts{display:flex;flex-wrap:wrap;gap:6px 16px;align-items:center}.opportunity-facts small{width:100%;color:var(--muted)}.opportunity-facts p{margin:0;color:var(--ink);font-weight:600;font-size:14px}
.opportunity-description{font-size:15px;line-height:1.5;margin:14px 0}
.opportunity-sheet .opportunity-actions{gap:6px 14px;padding:8px 0;border-bottom:1px solid var(--line)}.opportunity-sheet .opportunity-actions a,.opportunity-sheet .opportunity-actions button{margin:0;padding:8px 0;background:transparent;border:0;min-height:48px;font-size:14px;color:var(--primary);font-weight:600;text-decoration:none}.opportunity-sheet .opportunity-actions .primary-source{font-weight:700}
.opportunity-reminder-options{padding:12px 0;border-bottom:1px solid var(--line)}.opportunity-reminder-options label{margin:4px 0 12px}.opportunity-reminder-options button{background:var(--primary);color:var(--onPrimary)}.opportunity-reminder-options p{font-size:13px}
.opportunity-sheet .opportunity-advanced>summary{padding:8px 0;min-height:48px;font-size:14px;color:var(--muted);font-weight:400}
@media(max-width:600px){.opportunity-sheet{margin:auto 0 0;width:100%;max-width:none;max-height:90svh;border-radius:20px 20px 0 0;padding-bottom:calc(20px + env(safe-area-inset-bottom))}}
.opportunity-sheet-bar{justify-content:flex-end}
.opportunity-sheet .opportunity-actions .secondary-source{color:var(--muted);font-weight:400}.opportunity-advanced>a{display:block;min-height:48px;padding:12px 0;color:var(--primary)}
.opportunity-sheet{overscroll-behavior:contain;transition:transform .16s ease-out}.opportunity-sheet.sheet-dragging{transition:none}.opportunity-sheet-bar{touch-action:none;cursor:grab}.sheet-grip{position:absolute;left:50%;top:14px;transform:translateX(-50%);width:36px;height:4px;border-radius:4px;background:var(--line)}
@media(prefers-reduced-motion:reduce){.opportunity-sheet{transition:none}}
@media(max-width:600px){.opportunity-sheet.sheet-expanded{height:90svh;max-height:90svh}}
.opportunity-sheet{transition:transform .16s ease-out,height .16s ease-out}.opportunity-sheet.sheet-dragging{transition:none}
@media(prefers-reduced-motion:reduce){.opportunity-sheet{transition:none}}

.product-controls{display:flex;gap:20px;padding:0 48px 4px 0}.product-controls .text-button{font-size:13px;min-height:44px;padding:4px 0}.action-toast{display:flex;align-items:center;gap:16px}.action-toast[hidden]{display:none}.action-toast button{flex:none;background:transparent;color:inherit;border:0;text-decoration:underline;min-height:44px;padding:4px 8px}#muted-products .connection-info{min-width:0}#muted-products .connection-info>span{overflow-wrap:anywhere}
/* One decision at a time; details keep their existing modal/scroll boundary. */
.inbox-modes{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;margin:12px 0}.inbox-modes [role=group]{display:flex;gap:2px;background:var(--surface);border-radius:24px;padding:3px}.inbox-modes button{border:0;border-radius:20px;background:transparent;color:var(--muted);padding:6px 14px;min-height:40px}.inbox-modes button.selected{background:var(--selected);color:var(--green)}
.swipe-deck{max-width:460px;width:100%;margin:0 auto;position:relative}.swipe-inbox #content{display:block}.swipe-opportunity{touch-action:none;border:1px solid var(--line);border-radius:24px;background:var(--surface);overflow:hidden;box-shadow:0 6px 20px #0001;position:relative;min-height:340px;max-height:calc(100dvh - 315px);user-select:none}.swipe-opportunity:before{content:'';position:absolute;inset:8px 8px -6px;border-radius:24px;border:1px solid var(--line);z-index:-1}.swipe-opportunity>details>summary{display:flex;flex-direction:column;padding:0;gap:0;min-height:0;list-style:none}.swipe-opportunity summary>img{width:100%;height:clamp(100px,23dvh,240px);max-height:240px;object-fit:contain;border-radius:0;background:var(--surfaceRaised)}.swipe-opportunity .opportunity-preview{padding:16px 20px;width:100%;box-sizing:border-box}.swipe-opportunity summary h3{font-size:21px;line-height:1.22;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;margin:7px 0}.swipe-opportunity .expand-cue,.swipe-opportunity .preview-context{display:none}.swipe-opportunity .swipe-summary{font-size:14px;line-height:1.4;margin:8px 0 0;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}.swipe-opportunity .preview-price{font-size:19px;margin:6px 0}.swipe-opportunity .preview-source{font-size:12px}.swipe-opportunity .preview-date{margin:4px 0;font-size:14px}.swipe-actions{display:flex;justify-content:space-between;gap:10px;margin:14px 0 8px}.swipe-actions button{flex:1;min-height:48px;border-radius:24px}.swipe-help{display:block;text-align:center;color:var(--muted);font-size:12px;margin-bottom:12px}.swipe-verdict{display:none;position:absolute;top:24px;left:20px;font-weight:700;background:var(--surface);color:var(--green);border:2px solid currentColor;border-radius:8px;padding:8px 14px;transform:rotate(-8deg);pointer-events:none}.swipe-opportunity[data-swipe=interested] .swipe-verdict{display:block}.swipe-opportunity[data-swipe=interested] .swipe-verdict:after{content:'INTERESTED'}.swipe-opportunity[data-swipe=dismiss] .swipe-verdict{display:block;color:var(--danger);transform:rotate(8deg)}.swipe-opportunity[data-swipe=dismiss] .swipe-verdict:after{content:'DISMISS'}.swipe-opportunity[data-swipe=details] .swipe-verdict{display:block}.swipe-opportunity[data-swipe=details] .swipe-verdict:after{content:'DETAILS'}
@media(max-height:720px){.swipe-inbox #digest-summary{display:none}.swipe-opportunity{min-height:260px;max-height:none}.swipe-opportunity summary>img{height:100px}.swipe-opportunity .swipe-summary{-webkit-line-clamp:2}.swipe-opportunity .opportunity-preview{padding:12px 16px}.swipe-inbox .view-top{margin:12px 0 6px}}

.card.swipe-opportunity{border:1px solid var(--line);border-radius:24px;background:var(--surface);z-index:1}.swipe-opportunity:before{display:none}.swipe-opportunity summary .expand-cue{display:none}.swipe-next{position:absolute;inset:8px 8px 88px;padding:24px;border:1px solid var(--line);border-radius:24px;background:var(--surfaceRaised);overflow:hidden;pointer-events:none}.swipe-next h3{font-size:20px;line-height:1.3}.swipe-next small{color:var(--muted)}

.swipe-opportunity[data-return-inbox=true][data-swipe=interested] .swipe-verdict:after{content:'TO INBOX'}
/* Full-screen is an explicit, temporary session; X/Back returns to the same queue. */
body.deck-fullscreen{overflow:hidden;padding-bottom:0}body.deck-fullscreen>header,body.deck-fullscreen>#bottom-nav,body.deck-fullscreen #pull-refresh,body.deck-fullscreen main>:not(#content){display:none!important}body.deck-fullscreen main{padding:0;max-width:none}body.deck-fullscreen .swipe-deck{position:fixed;inset:0;z-index:200;max-width:none;margin:0;padding:max(8px,env(safe-area-inset-top)) max(16px,env(safe-area-inset-right)) max(16px,env(safe-area-inset-bottom)) max(16px,env(safe-area-inset-left));height:100dvh;display:flex;flex-direction:column;gap:8px;background:var(--background);overflow:hidden}.deck-topbar{display:flex;align-items:center;justify-content:space-between;width:100%;max-width:560px;margin:0 auto;flex:none}.deck-topbar>div{display:flex;align-items:baseline;gap:12px}.deck-topbar strong{font-size:18px}.deck-topbar small{font-size:13px;color:var(--muted)}.deck-exit{display:flex;align-items:center;justify-content:center;width:56px;height:56px;min-height:56px;font-size:38px;line-height:1;padding:0;border:0;border-radius:50%;background:var(--surfaceRaised);color:var(--ink)}body.deck-fullscreen .swipe-opportunity{flex:1;min-height:0;max-height:none;width:100%;max-width:560px;margin:0 auto}body.deck-fullscreen .swipe-opportunity>details,body.deck-fullscreen .swipe-opportunity>details>summary{height:100%;min-height:0}body.deck-fullscreen .swipe-opportunity>details>summary{justify-content:flex-start}body.deck-fullscreen .swipe-opportunity summary>img{height:clamp(110px,42dvh,520px);max-height:50%;flex-shrink:1}body.deck-fullscreen .swipe-opportunity .opportunity-preview{flex:1;display:flex;flex-direction:column;justify-content:center;min-height:0;padding:16px 20px}body.deck-fullscreen .swipe-actions,body.deck-fullscreen .swipe-help{width:100%;max-width:560px;margin:0 auto;flex:none}body.deck-fullscreen .swipe-actions{padding-top:8px}body.deck-fullscreen .swipe-help{padding:0 0 4px}body.deck-fullscreen .swipe-next{inset:80px max(24px,calc((100vw - 544px)/2)) 104px}body.deck-fullscreen>.action-toast{top:calc(76px + env(safe-area-inset-top));bottom:auto;max-width:calc(100vw - 40px)}.deck-offline{font-size:13px;margin:0 auto;color:var(--warning)}body.deck-fullscreen .swipe-deck>.empty{margin:auto;width:100%;max-width:560px}
@media(max-height:660px){body.deck-fullscreen .swipe-opportunity summary>img{height:28dvh;max-height:35%}body.deck-fullscreen .swipe-opportunity .opportunity-preview{padding:10px 16px}body.deck-fullscreen .swipe-opportunity .swipe-summary{-webkit-line-clamp:2}body.deck-fullscreen .swipe-help{display:none}.deck-exit{height:48px;width:48px;min-height:48px}}
#inbox-fullscreen{margin-left:auto;min-width:48px;min-height:48px;font-size:25px;padding:0;display:flex;align-items:center;justify-content:center}#inbox-fullscreen[hidden]{display:none}

/* Keep the stack inside its own row, below the toolbar. */
.swipe-stack{position:relative;padding:10px 0 0;isolation:isolate;min-height:0}.swipe-stack .swipe-next{inset:0 8px 8px}.swipe-actions{justify-content:space-evenly;align-items:center}.swipe-actions .swipe-action{flex:none;width:56px;height:56px;min-height:56px;display:grid;place-items:center;padding:0;border-radius:50%}.swipe-action .ui-icon{width:26px;height:26px}.swipe-action[data-choice=dismiss]{color:var(--muted)}.deck-topbar{position:relative;z-index:2;background:var(--background)}body.deck-fullscreen .swipe-stack{flex:1;width:100%;max-width:560px;margin:0 auto;display:flex;padding-top:10px}body.deck-fullscreen .swipe-stack .swipe-next{inset:0 8px 8px}body.deck-fullscreen .swipe-stack .swipe-opportunity{margin:0}.opportunity-peek{position:fixed;z-index:500;left:0;right:0;bottom:0;margin:auto;width:min(100%,720px);height:90dvh;box-sizing:border-box;border:1px solid var(--line);border-radius:24px 24px 0 0;background:var(--surface);padding:0 24px 24px;overflow:hidden;pointer-events:none;box-shadow:0 -8px 32px #0002;will-change:transform}.opportunity-peek .opportunity-sheet-bar{position:relative}.opportunity-peek .body{padding:0}.swipe-opportunity[data-swipe=details] .swipe-verdict{display:none}
