:root{font-family:Inter,ui-sans-serif,system-ui,Segoe UI,Arial,sans-serif;color:#19324a;background:#eef7ff}*{box-sizing:border-box}body{margin:0;min-width:320px;overflow-x:hidden;background:radial-gradient(circle at 8% 4%,rgba(95,176,255,.28),transparent 32rem),radial-gradient(circle at 92% 12%,rgba(167,221,255,.32),transparent 30rem),linear-gradient(180deg,#f8fcff,#eef7ff 48%,#f7fbff)}button,input,select{font:inherit}button{display:inline-flex;align-items:center;justify-content:center;gap:.55rem;min-height:46px;border:1px solid rgba(68,134,189,.18);border-radius:14px;background:#fff;color:#23506d;padding:0 1rem;font-weight:750;cursor:pointer;box-shadow:0 10px 24px #2d6fa014;transition:transform .15s ease,box-shadow .15s ease,background .15s ease;min-width:0;overflow-wrap:anywhere}button:hover:not(:disabled){transform:translateY(-1px);box-shadow:0 14px 28px #2d6fa024}button:disabled{opacity:.45;cursor:not-allowed;box-shadow:none}button.primary{color:#fff;border-color:transparent;background:linear-gradient(135deg,#3a9eea,#2d78d4)}button.danger{color:#7c2d2d;background:#fff4f4;border-color:#d2525229}input,select{width:100%;min-height:48px;border:1px solid rgba(74,131,177,.22);border-radius:14px;padding:0 .95rem;color:#19324a;background:#ffffffdb;outline:none}input[type=file]{display:flex;align-items:center;padding:.44rem;color:#315a77}input[type=file]::file-selector-button{min-height:34px;margin-right:.75rem;border:0;border-radius:10px;background:#e7f4ff;color:#23506d;padding:0 .8rem;font:inherit;font-weight:800;cursor:pointer}input:focus,select:focus{border-color:#53a9ef;box-shadow:0 0 0 4px #53a9ef24}label{display:grid;gap:.45rem;color:#466a85;font-size:.92rem;font-weight:750}h1,h2,p{margin:0}h1{font-size:clamp(1.65rem,2.2vw,2.55rem);letter-spacing:0}h2{display:flex;align-items:center;gap:.7rem;color:#19324a;font-size:clamp(1.25rem,1.7vw,1.7rem);letter-spacing:0}.login{min-height:100vh;display:grid;place-items:center;padding:1.5rem}.login-panel{width:min(460px,100%);display:grid;gap:1.25rem;padding:2rem;background:#ffffffd1;border:1px solid rgba(93,157,205,.2);border-radius:26px;box-shadow:0 24px 70px #3171a429}.login-panel form{display:grid;gap:1rem}.brand-mark{width:52px;height:52px;display:grid;place-items:center;color:#fff;border-radius:18px;background:linear-gradient(135deg,#58b8ff,#2f72d6);font-weight:900;box-shadow:0 16px 34px #2f72d647}.app-shell{width:min(1480px,calc(100vw - 40px));margin:0 auto;padding:1.4rem 0 3rem}.app-home-shell{width:min(760px,calc(100vw - 28px));padding-bottom:8.8rem}.app-work-shell{width:min(1680px,calc(100vw - 56px));padding-bottom:8.8rem}.home-dashboard{display:grid;gap:1rem}.home-header{min-width:0;display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:.45rem 0 .2rem}.home-header h1{font-size:clamp(1.8rem,6vw,2.8rem);line-height:1.08}.local-chip,.status-badge{display:inline-flex;align-items:center;gap:.38rem;min-height:32px;margin-top:.35rem;padding:0 .7rem;border:1px solid rgba(87,155,207,.14);border-radius:999px;color:#416783;background:#ffffffc7;font-weight:800;font-size:.88rem}.family-avatar{width:54px;height:54px;padding:0;border-radius:20px;color:#fff;background:linear-gradient(135deg,#55b7ff,#2d78d4);box-shadow:0 16px 32px #2d78d43d}.today-card,.family-strip,.detail-page{min-width:0;display:grid;gap:.85rem;padding:1rem;border:1px solid rgba(87,155,207,.15);border-radius:26px;background:#ffffffdb;box-shadow:0 18px 48px #2d6fa01c}.section-row,.detail-header{min-width:0;display:flex;align-items:center;justify-content:space-between;gap:.85rem}.section-row h2,.detail-header h1{margin:0}.text-button{min-height:36px;padding:0 .78rem;border-radius:999px;color:#2d78d4;background:#f3faff;box-shadow:none}.next-event{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:.85rem;align-items:center;min-height:92px;padding:.85rem;border:1px solid rgba(87,155,207,.12);border-radius:20px;background:linear-gradient(180deg,#fff,#f7fcff)}.next-event.quiet{min-height:76px}.event-time{width:58px;min-height:58px;display:grid;place-items:center;border-radius:18px;color:#2d78d4;background:#e8f5ff;font-weight:900}.next-event span,.next-event small,.today-line small,.dashboard-tile small{color:#698397;overflow-wrap:anywhere}.next-event strong{display:block;color:#152d43;font-size:1.18rem;overflow-wrap:anywhere}.round-next{width:42px;min-height:42px;padding:0;border-radius:999px;box-shadow:none}.today-list{display:grid;gap:.45rem}.today-line,.alert-line{min-width:0;display:grid;grid-template-columns:54px minmax(0,1fr) auto;gap:.6rem;align-items:center;min-height:44px;padding:.48rem .55rem;border-radius:14px;background:#f8fcff}.today-line strong{color:#2d78d4}.today-line span,.alert-line span{overflow-wrap:anywhere}.alert-line{grid-template-columns:auto minmax(0,1fr) auto;color:#8a3d19;background:#fff7ed;border-color:#ed893638;box-shadow:none;text-align:left}.alert-line span{display:grid;gap:.1rem}.small-empty{color:#698397;font-size:.94rem}.primary-tiles,.mini-tiles,.quick-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.75rem}.dashboard-tile{position:relative;min-height:132px;display:grid;align-content:start;justify-items:start;gap:.2rem;padding:.95rem;border-radius:22px;background:#ffffffe6;text-align:left}.dashboard-tile strong{color:#173754;font-size:1.02rem}.dashboard-tile span:not(.tile-icon){color:#315a77;font-weight:850}.tile-icon{width:44px;height:44px;display:grid;place-items:center;margin-bottom:.25rem;border-radius:16px}.tile-arrow{position:absolute;right:.8rem;bottom:.8rem;color:#8cafc8}.tone-blue .tile-icon{color:#287cc7;background:#e8f5ff}.tone-green .tile-icon{color:#14865d;background:#e5f8ee}.tone-orange .tile-icon{color:#d97706;background:#fff3df}.tone-violet .tile-icon{color:#6d5bd0;background:#f0edff}.mini-tiles{grid-template-columns:repeat(4,minmax(0,1fr))}.mini-tiles .dashboard-tile{min-height:112px;border-radius:18px}.quick-overlay{position:fixed;inset:0;z-index:40;display:grid;align-items:end;padding:1rem;background:#122d423d}.quick-panel{width:min(760px,100%);margin:0 auto 5.2rem;display:grid;gap:.9rem;padding:1rem;border:1px solid rgba(87,155,207,.16);border-radius:26px;background:#fffffff5;box-shadow:0 24px 72px #184e763d}.quick-card{min-width:0;display:grid;gap:.55rem;align-content:start;padding:.85rem;border:1px solid rgba(87,155,207,.13);border-radius:18px;background:#f8fcff;color:#173754}.quick-button{justify-items:start;min-height:100%;box-shadow:none;text-align:left}.quick-scan-card{grid-column:1 / -1;min-height:92px;grid-template-columns:auto minmax(0,1fr);align-items:center;background:linear-gradient(135deg,#ecf8ff,#fff)}.quick-scan-card svg{width:42px;height:42px;padding:.6rem;border-radius:16px;color:#2d78d4;background:#e5f4ff}.quick-scan-card strong,.quick-scan-card span{grid-column:2}.quick-smart-card{grid-column:1 / -1;background:#fff}.quick-smart-card>div:first-child{display:grid;gap:.12rem}.quick-smart-card>div:first-child span{color:#587991;font-size:.92rem;font-weight:750}.smart-input-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:.55rem}.smart-input-row input{min-height:52px;font-size:1rem}.smart-preview{min-height:38px;display:flex;align-items:center;gap:.35rem;padding:.55rem .7rem;border-radius:14px;background:#eef7ff;color:#315a77;font-weight:800}.smart-preview svg{flex:0 0 auto;color:#2788d8}.smart-examples{display:flex;flex-wrap:wrap;gap:.4rem}.smart-examples button{min-height:36px;padding:.35rem .7rem;border-radius:999px;background:#f5fbff;font-size:.86rem}.bottom-nav{position:fixed;left:50%;bottom:.75rem;z-index:30;width:min(720px,calc(100vw - 24px));min-height:72px;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));align-items:center;gap:.35rem;padding:.45rem;transform:translate(-50%);border:1px solid rgba(87,155,207,.14);border-radius:26px;background:#fffffff0;box-shadow:0 18px 48px #215b862e}.bottom-nav button{min-height:58px;display:grid;gap:.1rem;padding:.25rem;border:0;border-radius:18px;color:#5d7486;background:transparent;box-shadow:none;font-size:.78rem}.bottom-nav button.active{color:#2d78d4}.bottom-nav .nav-plus{width:66px;height:66px;justify-self:center;margin-top:-1.65rem;border-radius:999px;color:#fff;background:linear-gradient(135deg,#58b8ff,#2d78d4);box-shadow:0 18px 36px #2d78d452}.detail-page{margin-bottom:1rem}.app-work-shell>.detail-page,.app-work-shell>.workspace,.app-work-shell>.documents-section{width:100%}@media(min-width:1200px){.app-work-shell .detail-page{padding:1.15rem}.app-work-shell .detail-page>.family-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.app-work-shell .detail-page>.family-grid.scoped-grid,.app-work-shell .detail-page .family-grid.scoped-grid{grid-template-columns:minmax(0,1fr)}.app-work-shell .detail-page .calendar-panel,.app-work-shell .detail-page .shopping-assistant,.app-work-shell .detail-page .location-panel{grid-column:span 3}.app-work-shell .detail-page .scoped-grid .calendar-panel,.app-work-shell .detail-page .scoped-grid .shopping-assistant,.app-work-shell .detail-page .scoped-grid .location-panel{grid-column:span 1}.app-work-shell .more-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.app-work-shell .workspace{grid-template-columns:minmax(420px,.9fr) minmax(520px,1.1fr)}.app-work-shell .document-row{grid-template-columns:minmax(0,1fr) auto}}.detail-page .calendar-panel,.detail-page .shopping-assistant{grid-column:span 1}.detail-page .family-grid{grid-template-columns:1fr}.detail-page .family-card{gap:.8rem}.detail-page .compact-form{grid-template-columns:repeat(2,minmax(0,1fr)) auto}.detail-page .compact-form button{min-width:112px}.floating-notice{position:sticky;top:.5rem;z-index:20}.more-overview{display:grid;gap:1rem}.more-header{padding:.35rem .1rem 0}.family-avatar.small{width:48px;height:48px;min-height:48px;display:grid;place-items:center;padding:0;border-radius:18px;font-size:1rem}.more-section{min-width:0;display:grid;gap:.85rem;padding:1rem;border:1px solid rgba(87,155,207,.14);border-radius:26px;background:#ffffffe0;box-shadow:0 18px 48px #2d6fa01a}.more-section-title{min-width:0;display:flex;align-items:center;gap:.7rem}.more-section-title h2{margin:0;font-size:1.35rem}.more-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.72rem}.more-tile{min-width:0;min-height:86px;display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;justify-items:start;gap:.7rem;padding:.78rem;border-radius:18px;background:#ffffffeb;text-align:left}.more-tile span:not(.tile-icon){min-width:0;display:grid;gap:.1rem}.more-tile strong{color:#173754;font-size:1rem}.more-tile small{color:#70889b;font-size:.88rem;overflow-wrap:anywhere}.compact-detail-head{margin-bottom:.9rem}.ocr-preview-panel{display:grid;gap:.75rem;margin-bottom:.9rem;padding:.9rem;border:1px solid rgba(87,155,207,.14);border-radius:18px;background:#f8fcff}.ocr-preview-panel h3{margin:0;color:#173754}.ocr-preview-panel pre{max-height:280px;margin:0;padding:.85rem;border-radius:14px;background:#fff;color:#173754;white-space:pre-wrap;overflow:auto;font-size:.9rem;line-height:1.45}.ocr-preview-panel small{color:#617b8e}.ocr-structured{display:grid;gap:.7rem}.structured-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.5rem}.structured-summary span{display:grid;gap:.12rem;padding:.62rem;border-radius:14px;background:#fff;color:#617b8e;border:1px solid rgba(87,155,207,.12)}.structured-summary strong{color:#173754;overflow-wrap:anywhere}.child-profile-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.55rem}.child-form-head{grid-column:span 2;display:flex;align-items:center;justify-content:space-between;gap:.7rem;color:#173754}.child-form-head button{min-height:36px;padding:0 .72rem;border-radius:999px;box-shadow:none}.child-profile-form .avatar-picker{grid-row:span 2}.child-profile-form input[type=color]{min-height:48px;padding:.35rem}.child-profile-form button{grid-column:span 2}.child-profile-card{width:100%;min-width:0;display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:.75rem;align-items:center;justify-items:start;padding:.7rem;border:1px solid rgba(87,155,207,.14);border-radius:18px;background:#f8fcff;text-align:left;box-shadow:none}.child-avatar{width:58px;height:58px;border-radius:999px;object-fit:cover;box-shadow:0 10px 24px #2d6fa029}.child-avatar.fallback{display:grid;place-items:center;color:#fff;font-weight:900}.child-profile-card>div{min-width:0;display:grid;gap:.12rem}.child-profile-card strong{color:#173754;line-height:1.15}.child-profile-card span,.child-profile-card small{color:#617b8e;line-height:1.25;overflow-wrap:anywhere}.modal-backdrop{position:fixed;inset:0;z-index:80;display:grid;place-items:center;padding:1.25rem;background:#0d243657;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);overscroll-behavior:contain}body.modal-open{overflow:hidden}.detail-modal{width:min(720px,100%);max-height:min(86vh,860px);display:grid;grid-template-rows:auto minmax(0,1fr) auto;overflow:hidden;border:1px solid rgba(87,155,207,.2);border-radius:28px;background:#fffffff5;box-shadow:0 30px 90px #194b7647}.detail-modal.modal-sm{width:min(520px,100%)}.detail-modal.modal-md{width:min(720px,100%)}.detail-modal.modal-lg{width:min(920px,100%)}.detail-modal.modal-xl{width:min(1120px,100%)}.modal-head,.modal-actions{display:flex;align-items:center;justify-content:space-between;gap:.85rem;padding:1rem}.modal-head{border-bottom:1px solid rgba(87,155,207,.12)}.modal-head h2{margin:0}.modal-head p{margin-top:.2rem;color:#617b8e;font-weight:750}.modal-body{min-width:0;overflow:auto;display:grid;gap:1rem;padding:1rem}.modal-actions{border-top:1px solid rgba(87,155,207,.12);justify-content:flex-end}.child-modal-hero{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:1rem;padding:.9rem;border-radius:22px;background:linear-gradient(135deg,#f4fbff,#eaf6ff)}.child-modal-hero .child-avatar{width:86px;height:86px}.child-modal-hero>div{min-width:0;display:grid;gap:.28rem}.child-modal-hero strong{color:#173754;font-size:1.15rem}.child-modal-hero span{color:#617b8e;font-weight:750}.info-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.62rem}.info-grid>div{min-width:0;display:grid;gap:.22rem;padding:.72rem;border:1px solid rgba(87,155,207,.13);border-radius:16px;background:#f8fcff}.info-grid small{color:#6b8294;font-weight:800}.info-grid strong{color:#173754;overflow-wrap:anywhere}.device-preview-panel{margin-top:.5rem}.device-preview-panel p{color:#617b8e;font-weight:700}.device-preview-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.7rem}.device-preview-grid button{min-height:84px;display:grid;justify-items:start;align-content:center;text-align:left}.device-preview-grid button.active{color:#fff;border-color:transparent;background:linear-gradient(135deg,#3a9eea,#2d78d4)}.device-preview-grid button.active span{color:#ffffffdb}.device-preview-grid span{color:#617b8e;font-size:.88rem}.device-preview-stage{display:grid;gap:.75rem}.device-frame-label{display:flex;align-items:center;justify-content:space-between;gap:.7rem;color:#173754}.device-frame-label span{color:#617b8e;font-weight:800}.device-frame-scroll{width:100%;overflow:auto;padding:1rem;border:1px solid rgba(87,155,207,.16);border-radius:24px;background:linear-gradient(135deg,#e9f7ffd9,#f8fcffeb)}.device-frame{overflow:hidden;margin:0 auto;border:10px solid #173754;border-radius:30px;background:#eef7ff;box-shadow:0 24px 70px #194b7638}.device-frame iframe{width:100%;height:100%;display:block;border:0;background:#eef7ff}.device-preview-root{min-height:100vh}.device-preview-dock{display:none}.device-preview-modal-backdrop{position:fixed;inset:0;z-index:95;display:grid;place-items:center;padding:1.25rem;background:#0d243661;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px)}.device-preview-modal{width:min(96vw,1580px);max-height:94vh;display:grid;grid-template-rows:auto minmax(0,1fr);gap:.75rem;padding:1rem;border:1px solid rgba(87,155,207,.2);border-radius:28px;background:#fffffff5;box-shadow:0 34px 100px #194b764d}@media(min-width:900px){.device-preview-dock{position:fixed;right:1.1rem;bottom:1.1rem;z-index:70;display:flex;gap:.45rem;padding:.45rem;border:1px solid rgba(87,155,207,.16);border-radius:18px;background:#ffffffe0;box-shadow:0 18px 48px #194b762e;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px)}.device-preview-dock button{width:54px;min-height:58px;display:grid;gap:.2rem;place-items:center;padding:.35rem;border-radius:14px;box-shadow:none}.device-preview-dock small{color:#315a77;font-size:.72rem;font-weight:900}.device-mini{display:block;border:2px solid #2d78d4;background:linear-gradient(180deg,#eaf7ff,#fff);box-shadow:inset 0 -4px 8px #2d78d414}.device-mini-s23{width:18px;height:30px;border-radius:7px}.device-mini-ipad{width:28px;height:34px;border-radius:7px}.device-mini-desktop{width:34px;height:23px;border-radius:5px}}.wide-action{width:100%}.topbar,.brand,.top-actions,.panel-heading,.section-heading,.document-row,.document-main,.document-actions,.button-row,.hero-actions{min-width:0;display:flex;align-items:center;gap:1rem}.topbar{justify-content:space-between;padding:.45rem 0 1.1rem}.brand{min-width:0}.top-actions{justify-content:flex-end}.user-chip,.status-pill{display:inline-flex;align-items:center;min-height:36px;padding:0 .85rem;color:#315a77;border-radius:999px;background:#ffffffc2;border:1px solid rgba(92,154,203,.18);font-size:.9rem;font-weight:750;max-width:100%;overflow-wrap:anywhere}.status-pill.on{color:#116147;background:#e4fbf3}.icon{width:48px;padding:0}.eyebrow{display:block;margin-bottom:.25rem;color:#4e8bb8;font-size:.78rem;font-weight:900;letter-spacing:.08em;text-transform:uppercase}.hero{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:1.5rem;align-items:center;min-height:240px;padding:clamp(1.4rem,3vw,2.5rem);border-radius:34px;background:linear-gradient(135deg,#ffffffeb,#e6f6ffe0),radial-gradient(circle at 78% 18%,rgba(84,180,255,.28),transparent 20rem);border:1px solid rgba(87,155,207,.18);box-shadow:0 28px 80px #2d6fa029}.hero h2{max-width:820px;font-size:clamp(2rem,4.2vw,4.4rem);line-height:1.03}.hero p{max-width:760px;margin-top:1rem;color:#4d6b82;font-size:clamp(1rem,1.2vw,1.18rem);line-height:1.65}.hero-actions{flex-wrap:wrap;justify-content:flex-end}.stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1rem;margin:1.1rem 0}.metric-card,.panel,.documents-section,.family-card{min-width:0;border:1px solid rgba(87,155,207,.16);border-radius:24px;background:#ffffffd1;box-shadow:0 18px 50px #2d6fa01a}.metric-card{display:grid;gap:.28rem;padding:1.1rem}.metric-icon,.doc-icon{width:44px;height:44px;display:grid;place-items:center;color:#287cc7;border-radius:16px;background:#e8f5ff}.doc-icon.muted{color:#6d7f8d;background:#eef3f7}.metric-card strong{color:#19324a;font-size:clamp(1.55rem,2.2vw,2.35rem);line-height:1}.metric-card span,.metric-card small,.document-row span,.section-heading>span,.login-panel p{color:#617b8e;overflow-wrap:anywhere}.workspace{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(340px,.85fr);gap:1rem;align-items:start}.family-hub,.module-center{margin:1.1rem 0}.family-heading{padding:1.1rem 1.25rem;border-radius:24px;background:#ffffffa8;border:1px solid rgba(87,155,207,.14)}.family-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem;margin-top:1rem}.scoped-hub,.module-center{width:100%}.scoped-grid{grid-template-columns:minmax(0,1fr)}.scoped-grid .calendar-panel,.scoped-grid .shopping-assistant,.scoped-grid .location-panel,.scoped-grid .family-card{grid-column:span 1}.scoped-workspace{grid-template-columns:minmax(0,1fr)}.family-card{display:grid;gap:.95rem;padding:1.05rem}.compact-modules .family-card{background:#ffffffbd}.calendar-card{background:linear-gradient(180deg,#ffffffe6,#ebf7fff2),radial-gradient(circle at 90% 10%,rgba(78,169,241,.2),transparent 14rem)}.card-title{display:flex;align-items:center;gap:.65rem;color:#173754}.card-title svg{color:#287cc7}.card-title h3{margin:0;font-size:1.1rem;letter-spacing:0}.compact-form{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,.9fr) auto;gap:.55rem}.compact-form input,.compact-form select{min-height:42px;border-radius:12px}.compact-form button{min-height:42px;border-radius:12px;padding:0 .8rem}.wide-button{grid-template-columns:minmax(0,1fr) auto}.mini-list{display:grid;gap:.55rem}.mini-row{width:100%;min-height:0;display:grid;gap:.12rem;justify-items:start;padding:.72rem .8rem;border:1px solid rgba(87,155,207,.12);border-radius:14px;background:#f5fbff;color:#19324a;text-align:left;box-shadow:none}.mini-row:hover{transform:none}.mini-row span{color:#617b8e;font-size:.86rem;font-weight:650}.mini-row.done{color:#6e8190;background:#f0f5f8;text-decoration:line-through}.empty-state{color:#6a8396;padding:.85rem;border-radius:14px;background:#f7fbff}.budget-balance{color:#173754;font-size:1.7rem;font-weight:900}.left-column,.right-column{display:grid;gap:1rem}.panel,.documents-section{padding:clamp(1rem,1.8vw,1.45rem)}.panel-heading,.section-heading{justify-content:space-between;margin-bottom:1rem}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.9rem}.scanner-panel{background:linear-gradient(180deg,#ffffffdb,#f1faffeb)}.camera-frame{position:relative;overflow:hidden;border-radius:22px;background:#123249;box-shadow:inset 0 0 0 1px #fff3}.scanner-panel video{width:100%;display:block;aspect-ratio:16 / 10;object-fit:cover}.visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.document-guide{position:absolute;inset:12% 10%;border:3px solid rgba(255,255,255,.92);border-radius:18px;box-shadow:0 0 0 999px #0e2d463d;pointer-events:none}.camera-hint{position:absolute;left:1rem;bottom:1rem;padding:.45rem .75rem;color:#fff;border-radius:999px;background:#0d324cb3;font-size:.88rem;font-weight:750;max-width:calc(100% - 2rem);overflow-wrap:anywhere}.button-row{flex-wrap:wrap}.inline-form{display:grid;grid-template-columns:minmax(0,1fr) 54px;gap:.65rem;margin-bottom:1rem}.notice{margin:1rem 0;padding:.95rem 1.1rem;color:#31536c;border-radius:18px;background:#fff;border:1px solid rgba(87,155,207,.18);box-shadow:0 12px 30px #2d6fa014}.notice.success{color:#116147;background:#e8fbf4}.notice.warning{color:#81521a;background:#fff7e8}.engine-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.7rem;margin-top:1rem}.engine-card{min-width:0;display:grid;grid-template-columns:22px 1fr;gap:.15rem .55rem;align-items:center;padding:.8rem;border-radius:16px;background:#f3faff}.engine-card span{grid-column:2;color:#60798c;font-size:.86rem}pre{width:100%;max-width:100%;max-height:190px;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere;margin:1rem 0 0;padding:.9rem;color:#2d4b62;border:1px solid rgba(87,155,207,.16);border-radius:16px;background:#f6fbff;font-size:.78rem}.documents-section{margin-top:1rem}.document-list{display:grid;gap:.68rem}.document-row{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:.75rem;padding:.72rem;border:1px solid rgba(87,155,207,.14);border-radius:16px;background:#ffffffc7}.document-main{min-width:0;display:grid;grid-template-columns:40px minmax(0,1fr);align-items:center;gap:.68rem}.document-copy{min-width:0;display:grid;gap:.18rem}.document-copy strong,.document-copy span{min-width:0;overflow:hidden;text-overflow:ellipsis}.document-copy strong{white-space:nowrap}.document-copy span{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;color:#587287;font-size:.9rem;line-height:1.35}.document-actions{min-width:0;display:flex;flex-wrap:wrap;justify-content:flex-end;gap:.42rem}.document-actions button,.trash-section button{flex:0 1 auto;min-height:36px;min-width:0;padding:0 .72rem;border-radius:11px}.calendar-panel{grid-column:span 2}.calendar-summary{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:.85rem;padding:.8rem;border:1px solid rgba(87,155,207,.14);border-radius:18px;background:linear-gradient(135deg,#f7fcff,#eef8ff)}.calendar-summary>div{min-width:0;display:grid;gap:.16rem}.calendar-summary span,.calendar-summary small{color:#617b8e;font-size:.86rem;font-weight:750}.calendar-summary strong{color:#12324a;font-size:1.02rem;overflow-wrap:anywhere}.calendar-summary button{min-width:128px}.calendar-toolbar,.calendar-toggles,.chip-row{display:flex;flex-wrap:wrap;gap:.5rem;min-width:0}.calendar-toolbar button,.calendar-toggle{min-height:38px;border-radius:999px;padding:0 .8rem;box-shadow:none}.calendar-toolbar button.selected,.calendar-toggle.on{color:#fff;background:#235f9f;border-color:transparent}.calendar-toggle span{width:12px;height:12px;border-radius:999px;box-shadow:inset 0 0 0 1px #ffffff73}.calendar-quick-form{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.55rem}.calendar-quick-form.in-modal{grid-template-columns:repeat(2,minmax(0,1fr))}.calendar-quick-form input,.calendar-quick-form select{min-height:42px;border-radius:12px}.calendar-quick-form.in-modal button{grid-column:1 / -1}.agenda-list{display:grid;gap:.85rem}.agenda-day{display:grid;gap:.55rem}.agenda-day h4{margin:0;color:#315a77;font-size:.92rem}.agenda-event{display:grid;gap:.35rem;padding:.78rem .85rem;border-left:5px solid #2d78d4;border-radius:14px;background:#ffffffd1;box-shadow:0 10px 24px #2d6fa01f}.shopping-assistant{grid-column:span 2;display:grid;gap:.82rem;background:linear-gradient(180deg,#ffffffe6,#f0f9fff5),radial-gradient(circle at 8% 0%,rgba(88,184,255,.16),transparent 14rem)}.shopping-stats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.55rem}.shopping-stats span,.favorite-products span,.inventory-alerts span{min-width:0;display:flex;align-items:center;gap:.42rem;padding:.62rem .72rem;border:1px solid rgba(87,155,207,.14);border-radius:14px;background:#ffffffb8;color:#496b82;overflow-wrap:anywhere}.shopping-stats strong{color:#173754;flex:0 0 auto;min-width:1.8rem;font-size:1rem;line-height:1;text-align:center;white-space:nowrap}.shopping-stats span{font-size:.86rem;line-height:1.2}.crawler-import-card{display:grid;gap:.72rem;padding:.82rem;border:1px solid rgba(87,155,207,.14);border-radius:18px;background:#ffffffc2}.crawler-import-card>div:first-child{display:grid;gap:.18rem}.crawler-import-card strong{color:#173754}.crawler-import-card span,.crawler-import-card summary{color:#617b8e;font-size:.9rem}.crawler-import-actions{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:.55rem}.crawler-import-toolbar{grid-template-columns:minmax(9rem,.5fr) minmax(0,1fr) auto}.crawler-json-input{width:100%;min-height:7rem;resize:vertical;border:1px solid rgba(87,155,207,.22);border-radius:14px;padding:.75rem .85rem;background:#fbfdff;color:#173754;font:inherit}.crawler-browser-import{display:grid;gap:.55rem}.file-action{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:.72rem 1rem;border:1px solid rgba(87,155,207,.22);border-radius:14px;background:#eef7ff;color:#173754;font-weight:800;cursor:pointer}.file-action input{display:none}.crawler-progress{display:grid;gap:.5rem;padding:.72rem .78rem;border:1px solid rgba(87,155,207,.2);border-radius:14px;background:#f7fbff}.crawler-progress-head{display:flex;align-items:center;justify-content:space-between;gap:.75rem}.crawler-progress-head strong{font-size:.92rem}.crawler-progress-head span{font-weight:900;color:#1d78d4}.crawler-progress-track{overflow:hidden;height:10px;border-radius:999px;background:#579bcf24}.crawler-progress-track span{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#32b4f0,#2d7ee6);transition:width .28s ease}.crawler-progress.is-running .crawler-progress-track span{background:linear-gradient(90deg,#32b4f0,#2d7ee6,#32b4f0);background-size:180% 100%;animation:crawler-progress-stripes 1.15s linear infinite}.crawler-progress.is-done{border-color:#2ba46947;background:#f4fff9}.crawler-progress.is-done .crawler-progress-track span{background:linear-gradient(90deg,#4fd487,#2ba469)}.crawler-progress.is-error{border-color:#c43e3e38;background:#fff7f7}.crawler-progress.is-error .crawler-progress-head span{color:#c43e3e}.crawler-progress.is-error .crawler-progress-track span{background:linear-gradient(90deg,#ff8a8a,#c43e3e)}.crawler-progress p{margin:0;color:#4d6d83;font-size:.88rem;line-height:1.35;overflow-wrap:anywhere}@keyframes crawler-progress-stripes{0%{background-position:0% 50%}to{background-position:180% 50%}}.crawler-import-errors{display:grid;gap:.35rem;padding:.55rem .65rem;border-radius:14px;background:#f7fbff}.crawler-import-errors span{display:block;color:#617b8e;font-size:.84rem}.shopping-form,.inventory-form{display:grid;grid-template-columns:repeat(5,minmax(0,1fr)) auto;gap:.55rem}.barcode-form{grid-template-columns:minmax(0,1fr) auto auto}.recognition-choice{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.62rem}.recognition-choice.compact{grid-template-columns:1fr}.recognition-choice span{display:flex;align-items:center;gap:.5rem;min-height:48px;padding:0 .78rem;border-radius:16px;background:#eef7ff;color:#23506d;font-weight:850}.advanced-product-capture{border-radius:16px;background:#f6fbff}.advanced-product-capture summary{min-height:42px;display:flex;align-items:center;padding:0 .8rem;color:#23506d;font-weight:850;cursor:pointer}.advanced-product-capture .photo-recognition-form{padding:0 .62rem .62rem}.product-flow-steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.5rem}.product-flow-steps span{min-height:36px;display:grid;place-items:center;border-radius:999px;background:#edf6ff;color:#55728a;font-weight:850;font-size:.84rem}.product-flow-steps span.active{background:linear-gradient(135deg,#32a7e8,#2d78d4);color:#fff}.product-photo-step{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:.55rem}.product-photo-step label{min-width:0;min-height:48px;display:flex;align-items:center;gap:.5rem;padding:0 .8rem;border:1px solid rgba(45,120,212,.14);border-radius:16px;background:#fff;color:#23506d;font-weight:850;cursor:pointer}.product-photo-step input{width:100%;min-height:auto;padding:0;border:0;background:transparent;font-size:.82rem}.product-visual-review{display:grid;grid-template-columns:160px minmax(0,1fr);gap:.8rem;align-items:center;padding:.75rem;border:1px solid rgba(45,120,212,.12);border-radius:18px;background:#fff}.product-visual-frame{position:relative;min-height:138px;display:grid;place-items:center;overflow:hidden;border-radius:16px;background:#f2f8ff}.product-visual-frame img{width:100%;height:138px;object-fit:contain}.product-visual-frame span{position:absolute;left:8px;bottom:8px;padding:4px 8px;border-radius:999px;background:#ffffffe6;color:#23506d;font-size:.72rem;font-weight:850}.product-visual-review>div:last-child{display:grid;gap:.35rem}.product-visual-review strong{color:#12324a}.product-visual-review p{margin:0;color:#6a8497;font-size:.86rem;line-height:1.35}.search-alternatives{border-radius:14px;background:#f6fbff}.search-alternatives summary{min-height:34px;display:flex;align-items:center;color:#55728a;font-weight:850;cursor:pointer}.search-alternatives div{display:flex;flex-wrap:wrap;gap:.4rem;padding:0 0 .2rem}.search-alternatives button{min-height:34px;padding:0 .65rem;border-radius:999px;background:#fff;font-size:.8rem}.photo-recognition-form{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:.55rem}.photo-recognition-form label{min-width:0;display:flex;align-items:center;gap:.5rem;min-height:44px;padding:0 .76rem;border:1px solid rgba(45,120,212,.14);border-radius:14px;background:#fff;color:#536879;font-weight:800;cursor:pointer}.photo-recognition-form input{width:100%;min-height:auto;padding:0;border:0;background:transparent;font-size:.82rem}.barcode-lookup{display:grid;gap:12px;padding:14px;border:1px solid rgba(45,120,212,.14);border-radius:22px;background:linear-gradient(180deg,#fff,#f7fbff)}.scoped-hub .shopping-assistant{grid-column:1 / -1}.shopping-assistant>.card-title{margin-bottom:0}.shopping-assistant>.shopping-form{padding:.72rem;border:1px solid rgba(45,120,212,.12);border-radius:18px;background:#ffffffb8}.section-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}.section-head h4{margin:0;color:#12324a}.section-head small{max-width:260px;color:#6a7c8b;text-align:right}.barcode-camera{display:none;position:relative;min-height:180px;overflow:hidden;border-radius:20px;background:#12324a;color:#fff;place-items:center}.barcode-camera.active{display:grid}.barcode-camera video{width:100%;height:220px;object-fit:cover}.barcode-camera:after{content:"";position:absolute;inset:34px 28px;border:2px solid rgba(255,255,255,.82);border-radius:18px;box-shadow:0 0 0 999px #081b2b3d}.barcode-camera span{position:absolute;bottom:18px;left:18px;z-index:1;font-weight:800}.scan-message{margin:0;color:#536879;font-weight:700}.product-result-card{display:grid;grid-template-columns:84px 1fr;gap:14px;align-items:center;padding:12px;border:1px solid rgba(45,120,212,.16);border-radius:20px;background:#fff;box-shadow:0 14px 32px #194b7614}.product-photo{display:grid;width:84px;height:84px;place-items:center;overflow:hidden;border-radius:18px;background:#eef7ff;color:#2d78d4}.as-button{padding:0;border:0;cursor:pointer}.product-photo img{width:100%;height:100%;object-fit:contain}.product-result-body{display:grid;gap:4px}.product-result-body strong{color:#12324a;font-size:1.08rem}.inline-title-button{width:100%;min-height:auto;padding:0;border:0;border-radius:0;background:transparent;color:#12324a;font-size:1.08rem;font-weight:850;line-height:1.2;text-align:left;justify-content:flex-start;box-shadow:none;cursor:pointer;overflow-wrap:anywhere}.inline-title-button.small{color:#12324a;font-size:.96rem}.inline-title-button:hover{color:#2d78d4}.product-result-body span,.product-result-body small{color:#617485}.product-search-matches{display:grid;gap:.65rem;padding:.72rem;border:1px solid rgba(45,120,212,.12);border-radius:20px;background:#f8fcff}.section-head.compact{grid-template-columns:minmax(0,1fr) auto;gap:.5rem;align-items:center}.section-head.compact h4{margin:0}.product-match-list,.product-match-modal-list{display:grid;gap:.62rem}.product-match-card{display:grid;grid-template-columns:64px minmax(0,1fr) auto;gap:.72rem;align-items:center;padding:.68rem;border:1px solid rgba(87,155,207,.16);border-radius:18px;background:#fff;box-shadow:0 10px 24px #194b7612}.product-match-image{width:64px;height:64px;min-height:64px;padding:0;border-radius:16px;background:#eef7ff}.product-match-image img{width:100%;height:100%;object-fit:contain}.product-match-main{min-width:0;display:grid;gap:.16rem}.product-match-main span,.product-match-main small{color:#617485;overflow-wrap:anywhere}.compact-action{min-height:42px;padding:0 .72rem;border-radius:14px;white-space:nowrap}.product-actions{display:grid;grid-column:1 / -1;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.product-actions select{grid-column:1 / -1}.product-actions .confirm{min-height:54px;justify-content:center;font-size:.96rem}.product-actions button:last-child{grid-column:1 / -1}.shopping-module-tabs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.45rem;padding:.35rem;border:1px solid rgba(45,120,212,.12);border-radius:18px;background:#f6fbff}.shopping-module-tabs button{min-height:42px;padding:0 .4rem;border-radius:14px;background:transparent;color:#536879;font-size:.82rem;font-weight:850}.shopping-module-tabs button.active{background:#fff;color:#1d6fd0;box-shadow:0 10px 24px #194b761a}.cart-optimizer{display:grid;gap:.75rem}.cart-mode-switch{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.55rem}.cart-mode-switch button{min-height:62px;display:grid;align-content:center;gap:.12rem;padding:.65rem;border-radius:17px;background:#f7fbff;color:#173754}.cart-mode-switch button.active{background:linear-gradient(135deg,#37a7ea,#2d78d4);color:#fff;box-shadow:0 14px 30px #2d78d43d}.cart-mode-switch span,.cart-recommendation small,.cart-product-main small,.cart-best-price small,.cart-best-price span,.cart-offers small,.cart-offers>span,.retailer-settings summary{color:#6a8497}.cart-mode-switch button.active span{color:#ffffffd6}.cart-recommendation{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:.75rem;align-items:center;padding:.9rem;border:1px solid rgba(45,120,212,.14);border-radius:20px;background:linear-gradient(180deg,#fff,#f4fbff);box-shadow:0 16px 34px #194b7614}.cart-recommendation>div{min-width:0;display:grid;gap:.12rem}.cart-recommendation strong{color:#12324a;font-size:1.12rem;overflow-wrap:anywhere}.cart-recommendation span{color:#536879;font-weight:750}.cart-recommendation .status-pill{grid-column:1 / -1;width:fit-content;padding:.28rem .55rem;border-radius:999px;background:#eaf5ff;color:#1d6fd0;font-size:.76rem;font-weight:900}.cart-total{justify-items:end}.cart-total strong{font-size:1.28rem}.saving-line{grid-column:1 / -1;padding:.6rem .72rem;border-radius:14px;background:#eefbf4;color:#12814b!important}.cart-recommendation button{grid-column:1 / -1}.cart-summary{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:.55rem}.cart-summary div{display:grid;gap:.12rem;padding:.75rem;border:1px solid rgba(45,120,212,.12);border-radius:16px;background:#fff}.cart-summary strong,.cart-summary span{color:#173754}.cart-item-list{display:grid;gap:.65rem}.cart-item-card{display:grid;grid-template-columns:58px minmax(0,1fr) auto;gap:.65rem;align-items:center;padding:.72rem;border:1px solid rgba(87,155,207,.15);border-radius:18px;background:#fff}.cart-product-image{width:58px;height:58px;display:grid;place-items:center;overflow:hidden;border-radius:15px;background:#eef7ff;color:#2d78d4}.cart-product-image img{width:100%;height:100%;object-fit:contain}.cart-product-main,.cart-best-price{min-width:0;display:grid;gap:.12rem}.cart-best-price{justify-items:end;text-align:right}.cart-best-price strong{color:#12324a}.cart-offers{grid-column:1 / -1;border-top:1px solid rgba(87,155,207,.12);padding-top:.55rem}.cart-offers summary,.retailer-settings summary{cursor:pointer;font-weight:850}.cart-offers div{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:.15rem .6rem;padding:.48rem 0}.cart-offers b{color:#173754}.cart-offers span{color:#12324a;font-weight:850}.cart-offers small{grid-column:1 / -1}.retailer-settings{padding:.75rem;border:1px solid rgba(87,155,207,.14);border-radius:18px;background:#f7fbff}.retailer-toggle-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:.5rem;margin:.7rem 0}.retailer-toggle-list label{display:flex;align-items:center;gap:.45rem;min-height:42px;padding:0 .65rem;border-radius:14px;background:#fff;color:#173754;font-weight:850}.retailer-toggle-list input{width:18px;height:18px}.full-width{width:100%}.manual-product-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.manual-product-form strong{grid-column:1 / -1;color:#12324a}.manual-product-form button{grid-column:1 / -1}.recognition-candidates{display:grid;gap:.5rem;padding:.72rem;border-radius:16px;background:#f7fbff}.recognition-candidates strong{color:#12324a}.recognition-candidates button{min-height:48px;display:grid;justify-items:start;gap:.12rem;padding:.62rem .72rem;border-radius:14px;background:#fff}.recognition-candidates span{color:#173754;font-weight:850}.recognition-candidates small{color:#6a8497}.location-panel{gap:14px}.location-controls,.location-place-form{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.location-place-form label{display:flex;align-items:center;gap:6px;min-height:44px;padding:0 10px;border:1px solid rgba(45,120,212,.14);border-radius:14px;background:#fff;color:#536879;font-weight:800}.location-split{display:grid;grid-template-columns:1fr 1fr;gap:12px}.tracker-note{display:flex;flex-wrap:wrap;gap:8px}.tracker-note span{padding:7px 10px;border-radius:999px;background:#f3f8ff;color:#536879;font-size:.78rem;font-weight:800}.shopping-layout{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr);gap:.85rem;align-items:start}.store-mode,.inventory-mode,.receipt-box,.cook-box{min-width:0;display:grid;gap:.65rem;padding:.85rem;border:1px solid rgba(87,155,207,.14);border-radius:18px;background:#ffffff9e}.store-mode h4,.inventory-mode h4,.receipt-box h4,.cook-box h4{margin:0;color:#173754}.store-lane{display:grid;gap:.45rem;padding:.65rem;border-radius:16px;background:#f7fcff}.store-lane>div:first-child{display:flex;justify-content:space-between;gap:.7rem;color:#466a85}.shop-item{width:100%;min-height:62px;display:grid;grid-template-columns:auto 44px minmax(0,1fr) auto;align-items:center;gap:.62rem;padding:.66rem .72rem;border:1px solid rgba(87,155,207,.13);border-radius:14px;background:#fff;color:#173754;text-align:left}.shop-item.done{opacity:.72;background:#f2fbf6;border-color:#28996038}.cart-check{width:34px;height:34px;display:grid;place-items:center;padding:0;border-radius:999px;border:1px solid rgba(45,120,212,.22);background:#f4f9ff;color:#2d78d4}.cart-check.checked{background:#2fb36d;color:#fff;border-color:#2fb36d}.shop-item-photo{width:44px;height:44px;display:grid;place-items:center;overflow:hidden;border-radius:12px;background:#eef7ff;color:#2d78d4}.shop-item-photo img{width:100%;height:100%;object-fit:contain}.shop-item-text{min-width:0;display:grid;gap:.1rem}.shop-item-text span{font-weight:850;overflow-wrap:anywhere}.shop-item.done .shop-item-text span{text-decoration:line-through}.details-link{min-height:34px;padding:0 .72rem;border-radius:999px;background:#f6fbff;font-size:.78rem}.shop-item-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:.35rem}.shop-item small,.store-lane span{color:#6a8497;overflow-wrap:anywhere}.product-details-panel{display:grid;gap:.8rem;padding:.9rem;border:1px solid rgba(45,120,212,.14);border-radius:22px;background:linear-gradient(180deg,#fff,#f8fcff);box-shadow:0 14px 34px #194b7614}.product-details-panel.in-modal{padding:0;border:0;border-radius:0;background:transparent;box-shadow:none}.product-details-head{display:grid;grid-template-columns:76px minmax(0,1fr);align-items:center;gap:.8rem}.product-details-head>div:nth-child(2){display:grid;gap:.2rem}.product-details-head strong{color:#12324a;font-size:1.06rem}.product-details-head span,.detail-note span,.detail-columns p,.detail-columns small,.detail-columns span{color:#5d7284}.product-photo.large{width:76px;height:76px}.detail-grid,.detail-columns{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.62rem}.detail-grid span,.detail-columns>div,.detail-note{min-width:0;display:grid;gap:.24rem;padding:.72rem;border:1px solid rgba(87,155,207,.12);border-radius:14px;background:#ffffffb8;overflow-wrap:anywhere}.detail-grid b,.detail-columns h4,.detail-note b{color:#173754}.inventory-alerts,.favorite-products,.receipt-preview{display:grid;gap:.45rem}.receipt-form{display:grid;gap:.55rem}.receipt-form textarea{min-height:120px;resize:vertical}.receipt-preview{padding:.72rem;border-radius:14px;background:#eef8ff;color:#315a77}.agenda-event strong,.agenda-event span{min-width:0;overflow-wrap:anywhere}.agenda-event span{color:#617b8e;font-size:.9rem}.agenda-event button{width:max-content;min-height:36px;border-radius:12px;padding:0 .75rem}.chip{display:inline-flex;align-items:center;min-height:28px;padding:0 .62rem;border-radius:999px;color:#23506d;background:#e8f5ff;font-size:.82rem;font-weight:800}.scan-workflow-page{gap:1rem}.scan-card,.scan-result-panel{min-width:0;display:grid;gap:1rem;padding:1rem;border:1px solid rgba(87,155,207,.15);border-radius:24px;background:#ffffffd6;box-shadow:0 18px 46px #2d6fa01a}.scan-mode-groups{display:grid;gap:.55rem}.scan-mode-strip{display:flex;gap:.5rem;overflow-x:auto;padding-bottom:.15rem;scrollbar-width:thin}.scan-mode-strip button{flex:0 0 auto;min-height:38px;padding:0 .9rem;border-radius:999px;box-shadow:none;background:#edf7ff}.scan-mode-strip button.active{color:#fff;border-color:transparent;background:linear-gradient(135deg,#3a9eea,#2d78d4)}.scan-more-modes{border:1px solid rgba(87,155,207,.14);border-radius:18px;background:#f7fcffc7}.scan-more-modes summary{min-height:42px;display:flex;align-items:center;padding:0 .85rem;color:#24506e;font-weight:850;cursor:pointer}.scan-more-modes div{display:flex;flex-wrap:wrap;gap:.5rem;padding:0 .85rem .85rem}.scan-more-modes button{min-height:38px;padding:0 .8rem;border-radius:999px;background:#fff;box-shadow:none}.scan-more-modes button.active{color:#fff;border-color:transparent;background:linear-gradient(135deg,#3a9eea,#2d78d4)}.scan-stage{display:grid;grid-template-columns:minmax(0,.9fr) minmax(280px,1.1fr);align-items:stretch;gap:1rem}.scan-stage>div:first-child{display:grid;align-content:center;gap:.55rem}.scan-stage p,.scan-saved-note{color:#5c7488;font-weight:700}.scan-primary-actions{display:flex;flex-wrap:wrap;gap:.55rem}.scan-placeholder,.scan-preview-image,.scan-live-stage{width:100%;min-height:270px;border:1px dashed rgba(68,134,189,.26);border-radius:22px;background:linear-gradient(180deg,#f6fbff,#edf7ff)}.scan-live-stage{position:relative;overflow:hidden;display:grid;place-items:center}.scan-live-stage.active{border-style:solid;border-color:#2d78d45c;background:#102b3d}.scan-live-stage.active:after{content:"";position:absolute;inset:16%;border:2px solid rgba(255,255,255,.86);border-radius:18px;box-shadow:0 0 0 999px #0819272e;pointer-events:none}.scan-live-stage video{width:100%;height:100%;min-height:270px;object-fit:cover}.scan-frame-label{position:absolute;left:1rem;right:1rem;bottom:.9rem;z-index:1;color:#fff;font-size:.86rem;font-weight:850;text-align:center;text-shadow:0 1px 6px rgba(0,0,0,.34)}.scan-placeholder{display:grid;place-items:center;gap:.55rem;color:#53748e;text-align:center;font-weight:800}.scan-preview-image{display:block;object-fit:contain;max-height:420px;padding:.5rem}.scan-input-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:.7rem;align-items:center}.file-pick-button{min-width:0;min-height:50px;display:inline-flex;align-items:center;justify-content:center;gap:.45rem;padding:0 1rem;border:1px solid rgba(45,120,212,.14);border-radius:16px;background:#eef8ff;color:#173754;font-weight:850;cursor:pointer}.file-pick-button input{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}.scan-status-live{animation:softPulse 1.6s ease-in-out infinite}.scan-result-panel pre{max-height:280px;overflow:auto;padding:.85rem;border-radius:16px;background:#f5fbff;color:#24465f;white-space:pre-wrap}.recognized-product-card{display:grid;grid-template-columns:82px minmax(0,1fr);gap:.85rem;align-items:center;padding:.8rem;border:1px solid rgba(87,155,207,.14);border-radius:18px;background:#f7fcff}.recognized-product-card img{width:82px;height:82px;object-fit:contain;border-radius:16px;background:#fff}.recognized-product-card .product-photo.as-button{width:82px;height:82px;display:grid;place-items:center;padding:0;border-radius:16px;background:#fff;box-shadow:none}.recognized-product-card div{min-width:0;display:grid;gap:.22rem}.recognized-product-card strong{color:#173754;font-size:1.08rem}.recognized-product-card span,.recognized-product-card small{color:#5c7488;overflow-wrap:anywhere}.inline-title-button{justify-self:start;min-height:auto;padding:0;border:0;color:#173754;background:transparent;box-shadow:none;font-size:1.08rem;font-weight:900;text-align:left}.recognition-candidates.compact{padding:.6rem}.recognition-candidates.compact button{min-height:42px}.scan-pipeline-list{display:flex;flex-wrap:wrap;gap:.45rem}@keyframes softPulse{0%,to{opacity:1}50%{opacity:.72}}.scan-pipeline-list span{min-height:30px;display:inline-flex;align-items:center;padding:0 .7rem;border-radius:999px;color:#24506e;background:#eaf7ff;font-size:.84rem;font-weight:800}@media(max-width:1100px){.app-work-shell{width:min(100% - 32px,1080px)}.hero,.workspace{grid-template-columns:1fr}.hero-actions{justify-content:flex-start}.stats,.family-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.calendar-panel,.shopping-assistant{grid-column:span 2}.calendar-quick-form{grid-template-columns:repeat(2,minmax(0,1fr))}.shopping-form,.barcode-form,.photo-recognition-form,.inventory-form,.crawler-import-actions,.shopping-layout{grid-template-columns:1fr}.cart-item-card{grid-template-columns:58px minmax(0,1fr) minmax(82px,auto)}.app-work-shell .detail-page>.family-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.app-work-shell .detail-page>.family-grid.scoped-grid,.app-work-shell .detail-page .family-grid.scoped-grid{grid-template-columns:minmax(0,1fr)}.app-work-shell .detail-page .calendar-panel,.app-work-shell .detail-page .shopping-assistant,.app-work-shell .detail-page .location-panel{grid-column:span 2}.app-work-shell .detail-page .scoped-grid .calendar-panel,.app-work-shell .detail-page .scoped-grid .shopping-assistant,.app-work-shell .detail-page .scoped-grid .location-panel{grid-column:span 1}.document-actions{flex-wrap:wrap}.mini-tiles{grid-template-columns:repeat(2,minmax(0,1fr))}.scan-stage{grid-template-columns:1fr}}@media(max-width:760px){.app-shell{width:min(100% - 24px,1480px);padding-top:.8rem}.app-work-shell,.app-home-shell{width:min(100% - 18px,760px)}.topbar,.panel-heading,.section-heading{align-items:flex-start;flex-direction:column}.document-row{grid-template-columns:1fr;align-items:start;gap:.62rem;padding:.66rem}.document-main{grid-template-columns:38px minmax(0,1fr);gap:.58rem}.document-main .doc-icon{width:38px;height:38px;border-radius:13px}.document-copy span{-webkit-line-clamp:1;font-size:.86rem}.document-actions{width:100%;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.45rem}.document-actions button{width:100%;min-height:36px;padding:0 .5rem}.top-actions{width:100%;justify-content:space-between}.hero{min-height:auto;border-radius:24px}.stats,.family-grid,.form-grid,.engine-grid,.quick-grid,.compact-form,.wide-button,.calendar-quick-form,.calendar-summary{grid-template-columns:1fr}.calendar-summary button{width:100%}.calendar-toolbar,.calendar-toggles{gap:.38rem}.calendar-toolbar button,.calendar-toggle{min-height:34px;padding:0 .68rem;font-size:.88rem}.app-work-shell .detail-page>.family-grid,.detail-page .family-grid{grid-template-columns:1fr}.calendar-panel{grid-column:span 1}.shopping-assistant{grid-column:span 1;gap:.68rem;padding:.78rem}.shopping-stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:.42rem}.shopping-stats span{min-height:38px;padding:.44rem .52rem;border-radius:13px;font-size:.78rem}.shopping-stats strong{min-width:1.35rem;font-size:.9rem}.shopping-module-tabs{grid-template-columns:repeat(2,minmax(0,1fr));gap:.38rem;padding:.28rem;border-radius:15px}.shopping-module-tabs button{min-height:38px;border-radius:12px;font-size:.78rem}.shopping-assistant>.shopping-form{padding:.62rem;gap:.48rem}.barcode-lookup,.store-mode,.inventory-mode,.receipt-box,.cook-box{padding:.68rem;border-radius:18px}.barcode-lookup .section-head{display:grid;gap:.18rem}.barcode-lookup .section-head small{font-size:.76rem;line-height:1.25}.product-flow-steps{gap:.34rem}.product-flow-steps span{min-height:31px;font-size:.75rem}.product-photo-step label,.barcode-form input,.barcode-form button{min-height:42px}.cart-mode-switch,.cart-recommendation,.cart-item-card{grid-template-columns:1fr}.cart-mode-switch{gap:.42rem}.cart-mode-switch button{min-height:50px;justify-items:start}.cart-total,.cart-best-price{justify-items:start;text-align:left}.cart-product-image{width:72px;height:72px}.cart-offers div,.retailer-toggle-list{grid-template-columns:1fr}.store-lane{padding:.55rem;gap:.5rem}.store-lane>div:first-child{align-items:center;font-size:.86rem}.shop-item{min-height:0;grid-template-columns:36px 46px minmax(0,1fr);gap:.5rem;align-items:start;padding:.62rem;border-radius:16px}.cart-check{width:34px;height:34px}.shop-item-photo{width:46px;height:46px;border-radius:14px}.shop-item-text{gap:.16rem}.shop-item-text .inline-title-button{text-align:left;line-height:1.18;overflow-wrap:anywhere}.shop-item small{font-size:.76rem;line-height:1.22}.shop-item-actions{grid-column:2 / -1;justify-content:flex-start;gap:.4rem}.shop-item-actions .details-link{min-height:32px;padding:0 .7rem}.primary-tiles,.mini-tiles{grid-template-columns:repeat(2,minmax(0,1fr))}.today-card,.family-strip,.detail-page{border-radius:22px;padding:.85rem}.next-event{grid-template-columns:auto minmax(0,1fr)}.next-event button{grid-column:2;width:max-content}.recognition-choice{grid-template-columns:1fr}.scan-card,.scan-result-panel{padding:.85rem;border-radius:22px}.scan-mode-groups{gap:.45rem}.scan-mode-strip{gap:.38rem;padding-bottom:.25rem}.scan-mode-strip button,.scan-more-modes button{min-height:36px;padding:0 .72rem;font-size:.88rem}.scan-more-modes summary{min-height:38px}.scan-stage{gap:.75rem}.scan-stage h2{font-size:1.15rem}.scan-primary-actions{display:grid;grid-template-columns:1fr}.scan-primary-actions button{width:100%}.scan-placeholder,.scan-preview-image,.scan-live-stage,.scan-live-stage video{min-height:220px;max-height:320px}.scan-input-row{grid-template-columns:1fr}.scan-input-row button{width:100%}.recognized-product-card{grid-template-columns:68px minmax(0,1fr);align-items:start}.recognized-product-card img,.recognized-product-card .product-photo.as-button{width:68px;height:68px}.product-match-card{grid-template-columns:58px minmax(0,1fr);align-items:start}.product-match-image{width:58px;height:58px;min-height:58px}.product-match-card .compact-action{grid-column:1 / -1;width:100%}.inline-title-button{font-size:.98rem}.scan-result-panel .button-row{display:grid;grid-template-columns:1fr}.modal-backdrop{align-items:end;padding:.75rem}.detail-modal{max-height:90vh;border-radius:24px}.modal-head,.modal-actions,.modal-body{padding:.85rem}.info-grid,.device-preview-grid{grid-template-columns:1fr}.modal-actions{display:grid;grid-template-columns:1fr}.modal-actions button{width:100%}.product-details-head,.detail-grid,.detail-columns{grid-template-columns:1fr}.product-details-head{justify-items:start}.product-visual-review,.product-result-card{grid-template-columns:1fr}.product-photo{width:100%;height:150px;border-radius:18px}.product-actions .confirm{min-height:58px}.more-grid{grid-template-columns:1fr}.more-tile{min-height:72px}.detail-header{align-items:flex-start;flex-direction:column}.detail-header .local-chip,.detail-header .icon{align-self:flex-start}}@media(max-width:440px){body{background:linear-gradient(180deg,#f8fcff,#eef7ff)}.brand-mark{width:46px;height:46px}.hero h2{font-size:2rem}.button-row button,.hero-actions button{width:100%}.app-home-shell{width:min(100% - 14px,760px)}.app-work-shell{width:min(100% - 12px,760px)}.dashboard-tile{min-height:106px;padding:.72rem}.tile-icon{width:40px;height:40px}.bottom-nav{width:calc(100vw - 16px);bottom:.45rem;padding:.42rem}.product-actions{grid-template-columns:1fr}.product-actions select,.product-actions button:last-child{grid-column:span 1}.child-modal-hero{grid-template-columns:1fr;justify-items:center;text-align:center}.child-modal-hero .chip-row{justify-content:center}.shopping-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.shopping-stats span{min-height:36px;padding:.42rem .5rem}.shopping-form,.barcode-form,.product-photo-step,.manual-product-form,.inventory-form,.receipt-form,.child-profile-form{grid-template-columns:1fr}.child-form-head,.child-profile-form button,.manual-product-form strong,.manual-product-form button{grid-column:span 1}.documents-section{padding:.82rem}.document-list{gap:.56rem}.document-row{border-radius:14px;padding:.58rem}.document-main{grid-template-columns:34px minmax(0,1fr)}.document-main .doc-icon{width:34px;height:34px;border-radius:12px}.document-copy strong{font-size:.92rem}.document-copy span{font-size:.8rem}.document-actions{grid-template-columns:repeat(2,minmax(0,1fr))}.document-actions .danger{grid-column:1 / -1}.smart-input-row{grid-template-columns:1fr}.smart-input-row button{width:100%}.shop-item{grid-template-columns:34px 42px minmax(0,1fr);padding:.56rem}.shop-item-photo{width:42px;height:42px}.shop-item-actions{grid-column:2 / -1}.details-link{justify-self:start}}
