/* BayMeet: the approved navy / turquoise / coral / amber identity. */
dialog:has([data-contact-care]){width:min(850px,94vw)}
.contact-care-panel{display:grid;gap:1rem;min-width:0}
.contact-care-panel>.privacy{background:linear-gradient(125deg,#d8f0e7,#e8f3dc);border:1px solid #bfdace}
.contact-care-card.is-blue{background:linear-gradient(130deg,#e1edf4,#dcefe9);border-color:#c2d9dc}
.contact-care-card.is-peach{background:linear-gradient(130deg,#fce1ce,#fff0d8);border-color:#e8cfb9}
.contact-care-choices{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(240px,100%),1fr));gap:1rem}
.contact-care-choices .card{margin-bottom:0}
.contact-care-panel h3,.contact-care-child{overflow-wrap:anywhere}
.contact-care-panel .check{align-items:flex-start}
.contact-care-panel input[type=checkbox]{inline-size:1.25rem;block-size:1.25rem;flex-shrink:0}
.contact-care-panel button{white-space:normal;min-height:44px}
.contact-care-calendar{padding:.65rem .85rem;border-left:3px solid #007b7e;border-radius:12px;background:#e0f0e8;color:#154d43;overflow-wrap:anywhere}
:root{--navy:#092d49;--teal:#007b7e;--muted:#526b73;--line:#cfddd5;--coral:#f17e68;background:#f5eee4;color:#15394a}
body{background:radial-gradient(ellipse at 95% 5%,#ffc99b66,transparent 40%),radial-gradient(ellipse at 5% 90%,#b5dfd488,transparent 45%),linear-gradient(135deg,#fbecdf,#f0efe3 50%,#deeee5);background-attachment:fixed}
.sidebar{background:linear-gradient(155deg,#092d49,#0b4657);border:0;color:#fff8ed;position:sticky;top:0;height:100vh}
.sidebar .brand small,.sidebar-foot{color:#c0d9d7}.nav button{color:#c5dfdf;border-radius:14px;min-height:48px}.nav button[aria-current=page]{background:#ffffff18;color:#ffc27a;box-shadow:inset 3px 0 #ffb34d}.nav button:hover{background:#ffffff13}.privacy-dot{background:#7cdbc2}
.topbar{background:#fff8ed99;backdrop-filter:blur(16px);border-bottom-color:#cddbd388}.topbar select{background:#fff9ef;border-color:#c2d7cc;border-radius:14px}.avatar{background:#ffcfad;color:var(--navy)}
.heading{margin-bottom:1.8rem}.eyebrow{letter-spacing:.14em;color:var(--teal)}.eyebrow:before{content:"";display:inline-block;width:7px;height:7px;border-radius:50%;background:var(--coral);margin-right:.5rem}h1{color:var(--navy)}
button,.button{border-radius:14px;min-height:44px;transition:transform .15s,filter .15s}button:hover,.button:hover{transform:translateY(-1px)}.secondary{background:#dceae4;color:var(--navy)}.danger{background:#ffdbcf}.quiet{background:transparent}.card{background:#fff9ef;border:1px solid #ffffff88;border-radius:23px;box-shadow:0 8px 25px #12423e0b}.card .privacy{background:#d9f1e8;border-radius:17px}
.hero{background:linear-gradient(115deg,#06666e,#095569 55%,#0a344d);border:0;color:#fff8ed;border-radius:27px;padding:2.2rem;box-shadow:0 14px 35px #0b526322}.hero h2{font-size:clamp(1.7rem,3vw,2.3rem);letter-spacing:-.045em;line-height:1.15;color:#fff8ed}.hero p{color:#d5eee7}.hero button,.hero .button{background:#ffbd69;color:var(--navy);box-shadow:0 5px 16px #001e3522}.hero-art{background:#c7efdc22;color:#ffcb89;transform:rotate(-12deg);border-radius:45px}.hero:after{content:"";position:absolute;right:-70px;top:-90px;width:270px;height:270px;border-radius:50%;border:35px solid #7addc315;pointer-events:none}
.hero .eyebrow{color:#bcebd9}
.secret-text{font:1rem/1.8 ui-monospace,monospace;overflow-wrap:anywhere;user-select:text;background:#d9f1e8;color:var(--navy);padding:1rem;border:1px solid #b9d4c7;border-radius:14px;width:100%}
.topbar .household-select{margin:0;min-width:0}.topbar .household-select select{margin-top:0}.nav{scrollbar-width:none}.nav::-webkit-scrollbar{display:none}
@media(max-width:600px){.topbar{flex-wrap:nowrap;gap:.6rem}.topbar .household-select{flex:1}.topbar select{width:100%;max-width:none}.account{gap:.4rem}.account .avatar{display:none}.account .quiet{font-size:.8rem;padding:.5rem}.notification-bell{min-width:44px}}
.stat{border:0;border-radius:21px;padding:1.4rem;box-shadow:0 7px 20px #12423e09}.stat:nth-child(4n+1){background:#bde5d5}.stat:nth-child(4n+2){background:#ffcbb5}.stat:nth-child(4n+3){background:#f8d99f}.stat:nth-child(4n){background:#c9dfe9}.stat strong{color:var(--navy);font-weight:800}.stat span{color:#385861}
.quick button{border-radius:17px;min-height:76px;background:#bde5d5}.quick button:nth-child(2){background:#ffcbb5}.quick button:nth-child(3){background:#f8d99f}.quick button:nth-child(4){background:#c9dfe9}.empty{background:#e4eee2;border:1px dashed #a9c9ba;border-radius:18px}.pill{background:#c3e8d9}.pill.pending{background:#ffdfab}.row{border-top-color:#dce5d6}.row h3{color:var(--navy)}
input,select{background:#fffdf8;border-radius:13px;border-color:#bbcfc6}dialog{background:linear-gradient(135deg,#fff1e4,#e5f1e8);border-color:#ffffffaa;border-radius:24px}.link-output{background:#cde9dd}.privacy{background:#d9f1e8}.proposal-note{background:#d9f1e8;border-color:#b9d9c9;border-radius:17px}
.calendar-scroll{border-radius:17px;border-color:#b9d4c7}.month-grid{background:#c2d8ce}.weekday{background:#c5e5d5;color:var(--navy)}.calendar-cell{background:#fff9ef;transform:none!important;min-height:114px}.calendar-cell.outside{background:#e4ece1;color:#637d75}.calendar-cell.today>strong{background:var(--navy);color:#ffc27a}.mini-event{background:#dbe9ef;border-left-color:#34617a}.mini-event.free{background:#c2e8d8}.mini-event.meeting{background:#ffddbe}.calendar-day-panel{background:#eef3e7;border-radius:17px;border-color:#c2d8ca}
.auth-story{background:radial-gradient(ellipse at 100% 5%,#1e948833,transparent 55%),linear-gradient(145deg,#092d49,#075c67);color:#fff8ed}.auth-story h1{color:#fff8ed}.auth-story .brand small{color:#c2e8df}.auth-story .eyebrow{color:#9ee6cc}.auth-story .brand-icon{background:var(--navy)}.auth-form{background:#fff9efcc;border:1px solid #ffffff99;border-radius:28px;box-shadow:0 20px 70px #123e3310;margin:3rem auto}.auth-form h2{color:var(--navy)}.auth-art{box-shadow:0 20px 50px #00192c44;border-radius:24px}.auth-switch .secondary{background:#dceae4}
@media(max-width:700px){.sidebar{position:static;height:auto;border-radius:0 0 24px 24px;padding:1.1rem}.nav button{border-radius:13px;min-height:44px}.nav button[aria-current=page]{box-shadow:inset 0 -3px #ffb34d}.topbar{background:#fff8ed88}.hero{padding:1.5rem}.card{border-radius:21px}.stat{padding:1.1rem}.auth-form{margin:1.5rem auto;max-width:calc(100% - 2rem);padding:1.8rem 1.2rem}.auth-story{border-radius:0 0 26px 26px}.calendar-cell{min-height:85px}.hero-art{display:none}}

/* Use the separate approved lockups, never the reference board as a logo. */
.brand-lockup{display:flex;flex-direction:column;align-items:flex-start;gap:7px}.brand-lockup>img{display:block;width:194px;max-width:100%;height:auto;border-radius:8px}.brand-lockup>small{font-size:10px;letter-spacing:.12em}.auth-art{display:block;width:100%;max-width:600px;height:auto;object-fit:contain;border-radius:18px;margin-top:24px}

.group-actions{margin:22px 0}.group-option{display:flex;gap:14px;align-items:center;justify-content:space-between;padding:12px 0;border-bottom:1px solid var(--line)}.group-option>span{overflow-wrap:anywhere}.group-option button{flex-shrink:0}.group-preview{background:#e0edf4}.group-preview:nth-child(2n){background:#d9f1e8}.group-preview:nth-child(3n){background:#ffe3d5}.grid-2>div>.card{margin-bottom:20px}
.grid-2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;align-items:start}@media(max-width:950px){.grid-2{grid-template-columns:1fr}}

.auth-origin{font-size:12px;letter-spacing:.15em;font-weight:700;color:#bcebd9}.auth-story .auth-art{margin:0 0 30px;background:#fff8f3}.auth-story .eyebrow{color:#bcebd9}

.leisure-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;margin:20px 0}.leisure-place{display:flex;flex-direction:column;gap:14px;background:#e0edf4}.leisure-place:nth-child(2n){background:#d9f1e8}.leisure-place:nth-child(3n){background:#ffe3d5}.leisure-place h2{font-size:1.2rem;overflow-wrap:anywhere}.leisure-place .actions{margin-top:auto}.leisure-category-icon{display:grid;place-items:center;width:54px;height:54px;font-size:27px;background:#ffffff77;border-radius:18px;color:#075c67}.leisure-pagination{justify-content:center;margin:24px 0}@media(max-width:1250px){.leisure-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:700px){.leisure-grid{grid-template-columns:1fr}}
[hidden]{display:none!important}

dialog:has([data-cost-rounds]){width:min(920px,calc(100vw - 32px));max-width:920px}[data-cost-rounds] .cost-balances{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:18px;margin:20px 0}[data-cost-rounds] .cost-balances .card{margin:0;background:#d9f1e8}[data-cost-rounds] .cost-balances .card:nth-child(2n){background:#ffe3d5}[data-cost-rounds] .cost-balances .card:nth-child(3n){background:#e0edf4}[data-cost-rounds] .cost-balances strong{display:block;overflow-wrap:anywhere;margin:12px 0}

dialog:has([data-allowance]){width:min(920px,calc(100vw - 32px));max-width:920px}[data-allowance] .allowance-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:18px;margin:20px 0}[data-allowance] .allowance-grid .card{margin:0;background:#d9f1e8}[data-allowance] .allowance-grid .card:nth-child(2n){background:#ffe3d5}[data-allowance] progress{width:100%;accent-color:var(--teal);height:14px}

.sidebar .brand-lockup>img,.auth-story .brand-lockup>img{filter:brightness(0) invert(1)}.brand-lockup>img,.auth-art{background:transparent!important;border-radius:0;box-shadow:none}.auth-story:has(.auth-art){background:radial-gradient(ellipse at 100% 5%,#ffc99b66,transparent 60%),linear-gradient(145deg,#d9f1e8,#e0edf4);color:#15394a}.auth-story:has(.auth-art) h1{color:#092d49}.auth-story:has(.auth-art) .auth-origin,.auth-story:has(.auth-art) .eyebrow{color:#075c67}

.app-header-brand{width:260px;max-width:100%;flex:0 1 260px}.app-header-brand>img{display:block;width:100%;height:auto;background:transparent}.topbar{gap:22px;flex-wrap:wrap}@media(max-width:1100px){.app-header-brand{flex-basis:100%;width:260px}.app-header-brand>img{width:260px;max-width:100%}.topbar{gap:12px}.household-select{flex:1}}

.auth-story:has(.auth-art) .auth-bottom{color:#526b73}

.dialog-head{gap:.85rem;align-items:flex-start}.dialog-head h2{flex:1;min-width:0;overflow-wrap:anywhere;line-height:1.3}.dialog-head #close-dialog{flex:0 0 44px;width:44px;height:44px;padding:0}

/* Form controls and household actions remain readable in narrow web views. */
dialog textarea{display:block;width:100%;max-width:100%;min-width:0;min-height:8rem;padding:.8rem;margin-top:.45rem;border:1px solid #bbcfc6;border-radius:13px;background:#fffdf8;color:var(--navy);font:inherit;font-weight:400;line-height:1.5;resize:vertical;touch-action:manipulation}
.grid-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-2>*,.grid>*{min-width:0}.card-head{flex-wrap:wrap}.card-head>h2{min-width:0;flex:1 1 10rem}.row{flex-wrap:wrap}.row>div{min-width:0;overflow-wrap:anywhere}.row-actions{max-width:100%;flex-wrap:wrap}
@media(max-width:1000px){.grid-2{grid-template-columns:minmax(0,1fr)}}
@media(max-width:700px){.card-head>h2{flex-basis:100%}}

/* Personal invitation QR: strong contrast, intact quiet zone, original brand palette. */
.invitation-qr{display:block;width:min(100%,280px);height:auto;margin:20px auto;background:#fffaf2;border-radius:0;image-rendering:pixelated}
