/* ROOMLY shared home and groceries */
.grocery-history-remove{display:inline-flex;align-items:center;justify-content:center;min-width:36px;min-height:36px;border-radius:10px;color:var(--text);font-size:22px;font-weight:500;background:var(--soft);margin-left:auto;cursor:pointer}
.grocery-history-item{display:flex;align-items:center;gap:10px;width:100%;min-height:58px;text-align:left}
.grocery-history-item .grocery-name{flex:1;min-width:0}
.grocery-history-item .grocery-readd{margin-left:4px}
.grocery-tabs{overflow:visible}.grocery-tabs button{color:var(--text)!important;opacity:1!important;min-height:43px}
.grocery-tabs button[aria-selected=true]{background:var(--surface)!important;color:var(--text)!important;font-weight:800}
.grocery-row{display:flex;align-items:center;gap:8px;min-height:58px}
.grocery-icon-btn{flex:0 0 38px;min-width:38px;min-height:38px;color:var(--text)!important;background:var(--soft)!important;border:1px solid var(--line)!important;border-radius:10px;font-size:20px}
.grocery-plus{background:var(--blue)!important;color:#17344a!important}
.member-strip{display:flex;gap:7px;flex-wrap:wrap;margin-top:14px}
.member-pill{padding:8px 11px;border:1px solid var(--line);border-radius:99px;font-size:12px;color:var(--text);background:var(--soft)}
.shared-budget-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:16px 0}
.shared-budget-summary>div{padding:14px 10px;border:1px solid var(--line);border-radius:14px;background:var(--soft);min-width:0}
.shared-budget-summary small{display:block;color:var(--muted);font-size:11px;margin-bottom:6px}
.shared-budget-summary strong{display:block;font-size:clamp(14px,3vw,21px);overflow-wrap:anywhere}
.month-picker{display:flex;align-items:end;gap:10px;flex-wrap:wrap}
.month-picker label{flex:1;min-width:160px}
.month-picker input{width:100%;min-height:42px}
.person-block{margin:16px 0;border:1px solid var(--line);border-radius:16px;padding:13px;background:var(--surface)}
.person-heading{display:flex;justify-content:space-between;gap:10px;align-items:center}
.person-bar{height:7px;border-radius:99px;background:var(--line);overflow:hidden;margin:12px 0}
.person-bar span{display:block;height:100%;background:var(--blue);border-radius:99px}
.shared-total{display:flex;justify-content:space-between;gap:10px;padding:14px;border-radius:13px;background:var(--soft);margin:15px 0}
.home-empty .button-row{margin-top:18px}
@media(max-width:420px){.grocery-add{flex-wrap:wrap}.grocery-item-field{flex:1 1 100%}.grocery-qty-field{flex:1}.grocery-history-item{gap:5px}.shared-budget-summary{gap:6px}.shared-budget-summary>div{padding:10px 6px}}

/* Grocery history: consistent, accessible delete control */
.grocery-history-remove{width:40px;height:40px;min-width:40px;min-height:40px;padding:9px;display:inline-grid;place-items:center;background:var(--surface)!important;color:var(--muted)!important;border:1px solid var(--line)!important;border-radius:12px;box-shadow:none;transition:background .16s ease,color .16s ease}
.grocery-history-remove svg{width:19px;height:19px;pointer-events:none}
.grocery-history-remove:hover,.grocery-history-remove:focus-visible{background:var(--pink)!important;color:#a94e57!important;border-color:#e4b5b8!important}
.grocery-history-remove:focus-visible{outline:2px solid var(--blue);outline-offset:2px}
.budget-explanation{font-size:13px;line-height:1.6;color:var(--muted);margin:0 0 16px}
.budget-panel .budget-ring{--used:0%;background:conic-gradient(var(--blue) var(--used),var(--line) var(--used))!important}
.budget-panel .budget-ring>div{background:var(--surface)}

/* Notification bell hover/focus preview */
.top-actions{position:relative}
.bell-preview[hidden]{display:none!important}
.bell-preview{position:absolute;right:0;top:calc(100% + 9px);z-index:1000;width:min(340px,calc(100vw - 24px));max-height:360px;overflow:auto;padding:14px;border:1px solid var(--line,#dbe4ee);border-radius:16px;background:var(--surface,#fff);color:var(--text,#24384c);box-shadow:0 14px 40px rgba(0,0,0,.16)}
.bell-preview-title{display:flex;justify-content:space-between;gap:12px;align-items:center;font-weight:750;margin-bottom:8px}
.bell-preview-title a{font-size:12px;font-weight:600}
.bell-preview-item{display:flex;flex-direction:column;gap:4px;padding:10px 5px;border-bottom:1px solid var(--line,#dbe4ee);text-decoration:none;color:inherit}
.bell-preview-item:last-child{border-bottom:0}
.bell-preview-item strong{font-size:13px}
.bell-preview-item small,.bell-preview-empty{font-size:12px;color:var(--muted,#667789)}

.shared-action-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:14px 0}.shared-action-grid .feature{min-width:0}.shared-budget-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.shared-budget-summary>div{min-width:0;overflow-wrap:anywhere}

/* ROOMLY household onboarding dialogs */
.roomly-choice-dialog,.shared-entry-dialog{box-sizing:border-box;width:min(92vw,480px);max-height:calc(100dvh - 38px);overflow:auto;border:1px solid #d9e3ea;border-radius:25px;padding:26px;background:#fff;color:#263a4c;box-shadow:0 25px 75px #162d4150}
.roomly-choice-dialog::backdrop,.shared-entry-dialog::backdrop{background:#172c3a9c;backdrop-filter:blur(3px)}
.roomly-choice-dialog .dialog-form,.shared-entry-dialog .dialog-form{display:grid;gap:15px}
.roomly-choice-dialog .dialog-form h2,.shared-entry-dialog .dialog-form h2{margin:0;font-size:clamp(22px,5vw,28px)}
.roomly-choice-dialog .space-options{display:grid;gap:12px}
.roomly-choice-dialog .space-option{min-height:92px;display:flex;align-items:center;padding:15px;border-radius:17px;background:#f4f1fa;border:1px solid #dce1e8}
.roomly-choice-dialog .full,.shared-entry-dialog .roomly-dialog-submit,.shared-entry-dialog .roomly-dialog-close{display:block;width:100%;min-height:52px;text-align:center;margin:0}
.shared-entry-dialog .dialog-form>form:not([hidden]){display:grid;gap:12px}
.shared-entry-dialog .dialog-form>form[hidden]{display:none!important}
.shared-entry-dialog .dialog-form>form input{width:100%;box-sizing:border-box;min-height:50px}
.shared-entry-dialog .button-row{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.shared-entry-dialog .button-row button{min-width:0}
.roomly-settings-button{width:100%;text-align:left;border:0;background:transparent;font:inherit;cursor:pointer}

/* 2026 ROOMLY responsive refinement */
.main{padding-bottom:calc(112px + env(safe-area-inset-bottom,0px))!important}
.bottom-nav{z-index:40}.bottom-link{color:#637c90!important;background:transparent!important;border-radius:16px!important}.bottom-link.active{color:#123b55!important;background:#c8e8f7!important}.bottom-link.active svg{stroke:#123b55!important}
.shared-totals{margin-top:18px;padding:14px;border-radius:16px;background:var(--surface,#f7fafc);border:1px solid var(--line,#d8e4eb)}
.shared-totals h3{font-size:15px;margin:0 0 10px}.shared-total-line{display:flex;justify-content:space-between;gap:12px;padding:8px 2px;font-size:14px}.shared-total-line.overall{border-top:1px solid var(--line,#d8e4eb);margin-top:6px;font-weight:800}
body:has(#shared-expenses) .page-head.compact{margin-bottom:12px}body:has(#shared-expenses) .panel{padding:18px!important;margin-bottom:12px!important}body:has(#shared-expenses) .invite{padding:10px 12px!important;margin:8px 0!important}body:has(#shared-expenses) .shared-action-grid .feature{padding:14px!important;min-height:95px!important;cursor:pointer;text-align:left;font:inherit}body:has(#shared-expenses) .shared-action-grid .feature small{display:none}body:has(#shared-expenses) .person-block{padding:10px 0!important}body:has(#shared-expenses) .hint{margin:6px 0!important}
.signout{color:#b3283a!important;border:1px solid #edc3cc!important;background:#fff1f3!important;padding:13px 18px;border-radius:14px}
html[data-theme="dark"] .bottom-link,body[data-theme="dark"] .bottom-link,[data-theme="dark"] .bottom-link{color:#d4e4f3!important;background:#1b2d3d!important}html[data-theme="dark"] .bottom-link.active,body[data-theme="dark"] .bottom-link.active,[data-theme="dark"] .bottom-link.active{color:#0d2737!important;background:#83d4f6!important}html[data-theme="dark"] .bottom-link.active svg,[data-theme="dark"] .bottom-link.active svg{stroke:#0d2737!important}
[data-theme="dark"] .btn,[data-theme="dark"] button.btn,[data-theme="dark"] .grocery-plus{background:#78c9ee!important;color:#102d3e!important}[data-theme="dark"] .btn-secondary,[data-theme="dark"] .btn-quiet,[data-theme="dark"] .feature,[data-theme="dark"] .soft-tag{background:#293e52!important;color:#f2f8ff!important;border-color:#55718a!important}[data-theme="dark"] .panel,[data-theme="dark"] .shared-totals{background:#1b2e3e!important;color:#f1f7fd!important;border-color:#456176!important}[data-theme="dark"] .signout{background:#482935!important;color:#ffbdc7!important;border-color:#a55b6c!important}[data-theme="dark"] svg{stroke:currentColor}
@media(max-width:640px){body:has(#shared-expenses) .shared-budget-summary{gap:6px!important}body:has(#shared-expenses) .shared-budget-summary>div{padding:8px!important}body:has(#shared-expenses) .panel-heading h2{font-size:19px!important}}
.welcome-mark{animation:roomly-breathe 3.8s ease-in-out infinite;transform-origin:center}@keyframes roomly-breathe{0%,100%{transform:scale(1)}50%{transform:scale(1.085)}}@media(prefers-reduced-motion:reduce){.welcome-mark{animation:none}}
.public-links{display:flex;justify-content:center;gap:20px;margin-top:20px}.public-links a{color:inherit;text-decoration:underline;text-underline-offset:4px}

.roomly-install{position:fixed;bottom:calc(110px + env(safe-area-inset-bottom,0px));left:50%;transform:translateX(-50%);width:min(92vw,440px);padding:12px;z-index:200;display:flex;align-items:center;gap:9px;border:1px solid #91b7cc;border-radius:15px;background:#fff;color:#17394c;box-shadow:0 12px 32px #17394c44;font-size:13px}.roomly-install span{flex:1}.roomly-install button{border:0;border-radius:9px;padding:10px;background:#9ed8f1;color:#123246;font-weight:700}.roomly-install button:last-child{background:#e9eef3}

/* Contrast-safe, accessible dark theme, including dialogs and all form controls. */
html[data-theme='dark'],body[data-theme='dark'],[data-theme='dark']{color-scheme:dark;--text:#edf5ff;--muted:#b9cbdd;--soft:#27374a;--line:#51667c;--surface:#1d2d40;--bg:#101b2b}
html[data-theme='dark'] .back,body[data-theme='dark'] .back,[data-theme='dark'] .back,
html[data-theme='dark'] .shared-launch,body[data-theme='dark'] .shared-launch,[data-theme='dark'] .shared-launch,
html[data-theme='dark'] .icon-action,body[data-theme='dark'] .icon-action,[data-theme='dark'] .icon-action,
html[data-theme='dark'] .settings-link,body[data-theme='dark'] .settings-link,[data-theme='dark'] .settings-link,
html[data-theme='dark'] .grocery-tabs button,body[data-theme='dark'] .grocery-tabs button,[data-theme='dark'] .grocery-tabs button,
html[data-theme='dark'] .btn-secondary,body[data-theme='dark'] .btn-secondary,[data-theme='dark'] .btn-secondary,
html[data-theme='dark'] .bottom-link,body[data-theme='dark'] .bottom-link,[data-theme='dark'] .bottom-link{background:#263a50!important;color:#e8f4ff!important;border:1px solid #59728d!important;opacity:1!important}
html[data-theme='dark'] .bottom-link.active,body[data-theme='dark'] .bottom-link.active,[data-theme='dark'] .bottom-link.active{background:#8dd8f5!important;color:#112638!important}
html[data-theme='dark'] .bottom-link.active svg,body[data-theme='dark'] .bottom-link.active svg,[data-theme='dark'] .bottom-link.active svg{stroke:#112638!important}
html[data-theme='dark'] .btn,body[data-theme='dark'] .btn,[data-theme='dark'] .btn{background:#8bd2f1!important;color:#10283b!important}
html[data-theme='dark'] input,html[data-theme='dark'] select,html[data-theme='dark'] textarea,body[data-theme='dark'] input,body[data-theme='dark'] select,body[data-theme='dark'] textarea,[data-theme='dark'] input,[data-theme='dark'] select,[data-theme='dark'] textarea{background:#24364a!important;color:#f5faff!important;border:1px solid #607b98!important;opacity:1!important}
html[data-theme='dark'] dialog,body[data-theme='dark'] dialog,[data-theme='dark'] dialog{background:#1c2b3c!important;color:#f5faff!important;border:1px solid #66839e!important}
html[data-theme='dark'] dialog h2,html[data-theme='dark'] dialog p,html[data-theme='dark'] dialog label,body[data-theme='dark'] dialog h2,body[data-theme='dark'] dialog p,body[data-theme='dark'] dialog label{color:#f1f7ff!important}
html[data-theme='dark'] dialog .space-option,body[data-theme='dark'] dialog .space-option{background:#293c51!important;color:#f5faff!important;border-color:#647e97!important}
html[data-theme='dark'] .soft-tag,body[data-theme='dark'] .soft-tag{background:#2b4359!important;color:#f5faff!important}
.account-danger{border:1px solid #db8e96!important}.account-danger p{color:var(--muted)}.delete-account-trigger{border:1px solid #c56b77;border-radius:12px;background:#ffe4e6;color:#83222d;font-weight:750;padding:13px 17px;min-height:46px;cursor:pointer}.account-delete-dialog{width:min(92vw,440px);border-radius:20px;padding:25px;border:1px solid #d9e2ea;max-height:85dvh;overflow:auto}.account-delete-dialog::backdrop{background:#111c2bb8}.account-delete-dialog label{display:grid;gap:8px;margin:14px 0}.account-delete-dialog input{width:100%;box-sizing:border-box;min-height:45px}.delete-account-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px}.delete-account-actions button{min-width:0}.account-delete-dialog [role=alert]{color:#c84a55!important}.admin-shortcut{padding:10px;border-radius:12px;background:#e1f2fa;color:#15344b;font-weight:700}

/* ROOMLY light-only release: preserve existing light palette on every device */
:root,html,html[data-theme],body{color-scheme:light!important}
html[data-theme="light"]{--bg:#e7f3fa;--surface:#fff;--text:#25394b;--muted:#647889}
html,body{scroll-behavior:auto}
button,a,input,select,textarea{touch-action:manipulation}
button,a{-webkit-tap-highlight-color:transparent}
button:disabled{cursor:wait;opacity:.65}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:.01ms!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}
@media(max-width:700px){.panel,.card,.feature-card{backdrop-filter:none!important}}

.roomly-home-rename-trigger{display:inline-flex;align-items:center;gap:6px;margin-top:5px;padding:6px 10px;border:1px solid #d8e4ed;border-radius:10px;background:#edf7fc;color:#24465b;font:inherit;font-size:13px;font-weight:650;cursor:pointer}.roomly-home-rename-trigger:focus-visible{outline:3px solid #70b6df;outline-offset:2px}

.roomly-choice-dialog{width:min(92vw,450px);max-height:88dvh;overflow:auto;padding:24px;border:1px solid #d9e8f0;border-radius:24px;background:#fff;color:#243a4b;box-shadow:0 20px 70px #243a4b33}.roomly-choice-dialog::backdrop{background:rgba(19,39,59,.55);backdrop-filter:blur(4px)}.roomly-choice-dialog h2{text-align:center;font-size:1.45rem;margin:8px 0}.roomly-choice-dialog .hint{text-align:center;color:#657b8b}.living-choice-icon{margin:auto;display:grid;place-items:center;width:60px;height:60px;border-radius:19px;background:#d9f0fc;color:#236b91;font-size:36px}.roomly-choice-dialog .space-options{display:grid;gap:12px;margin:22px 0}.roomly-choice-dialog .space-option{display:flex;align-items:center;gap:12px;border:1.5px solid #d5e2ec;border-radius:16px;padding:16px;background:#f8fcff;color:#263c4d;cursor:pointer}.roomly-choice-dialog .space-option:has(input:checked){border-color:#4b9dc8;background:#e8f6fd;box-shadow:0 0 0 2px #8bcce844}.roomly-choice-dialog .space-option input{accent-color:#2785b6;width:20px;height:20px}.roomly-choice-dialog .space-option span{display:grid;gap:4px}.roomly-choice-dialog .space-option small{color:#637b8b}.roomly-choice-dialog .full{width:100%;min-height:48px}.setup-error{background:#fff0ed;color:#8a302b;border:1px solid #f1bdb4;border-radius:12px;padding:12px;line-height:1.5}

#roomly-native-delete-submit[aria-busy="true"]{opacity:.7;cursor:progress;pointer-events:none}

/* Compact mobile living-space dialog */
.roomly-choice-dialog{width:min(90vw,410px);padding:22px 20px;border-radius:24px}.roomly-choice-dialog h2{font-size:1.4rem;margin:8px 0 3px}.roomly-choice-dialog .hint{margin:0 0 10px;font-size:.94rem}.roomly-choice-dialog .space-options{gap:10px;margin:18px 0}.roomly-choice-dialog .space-option{min-height:68px;padding:14px}.roomly-choice-dialog .space-option span{display:block}.roomly-choice-dialog .living-choice-icon{width:48px;height:48px;font-size:28px;border-radius:15px}.roomly-choice-dialog .setup-error{font-size:.87rem;line-height:1.4;margin:12px 0;padding:10px}.roomly-choice-cancel{display:flex;align-items:center;justify-content:center;text-decoration:none;margin-top:10px;min-height:44px}.roomly-choice-dialog .dialog-form{gap:0}

/* Keep Shared label visible on mobile, matching desktop */
@media(max-width:600px){.topbar .shared-launch{display:inline-flex!important;align-items:center;gap:6px;min-width:0;padding:8px 10px}.topbar .shared-launch span{display:inline!important;font-size:11px!important;font-weight:700!important;white-space:nowrap}.topbar .shared-launch svg{width:19px;height:19px;flex-shrink:0}.topbar .top-actions{gap:6px}.topbar .brand{min-width:0}}

/* Shared home: distinct financial sections, accessible mobile layout */
.roomly-home-expenses,.roomly-member-spending{box-sizing:border-box;min-width:0;overflow:hidden;border:1px solid #dbe9f0!important;border-radius:22px!important;box-shadow:0 9px 28px rgba(42,82,105,.055)!important}
.roomly-home-expenses{background:linear-gradient(145deg,#f0f8ff 0%,#fff 72%)!important;border-color:#d4e6f4!important}
.roomly-member-spending{background:linear-gradient(145deg,#f0fcf5 0%,#fff 76%)!important;border-color:#d7eddf!important}
.roomly-home-expenses .panel-heading,.roomly-member-spending .panel-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;margin-bottom:16px}
.roomly-home-expenses .panel-heading h2,.roomly-member-spending .panel-heading h2{font-size:clamp(17px,2vw,21px);letter-spacing:-.035em;line-height:1.25;margin:0;color:#243d50}
.roomly-home-expenses .soft-tag{background:#e0efff;color:#426b91}.roomly-member-spending .soft-tag{background:#e0f4e9;color:#35715c}
.roomly-expense-table-wrap{max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}
.roomly-expense-table{width:100%;border-collapse:separate;border-spacing:0;table-layout:auto}
.roomly-expense-table th{font-size:11px;letter-spacing:.035em;text-transform:uppercase;color:#66849b;font-weight:750;padding:11px 8px;text-align:left;border-bottom:1px solid #dce9f1}
.roomly-expense-table td{font-size:13px;color:#2b4355;padding:13px 8px;vertical-align:middle;border-bottom:1px solid #e5eff5;overflow-wrap:anywhere}
.roomly-expense-table td:first-child strong{display:block;font-size:14px;color:#233c50}
.roomly-expense-table td:first-child small{display:block;margin-top:3px;font-size:11px;color:#7c92a3}
.roomly-expense-table .roomly-money{font-variant-numeric:tabular-nums;white-space:nowrap;font-weight:750}
.roomly-expense-table .roomly-table-actions{white-space:nowrap;text-align:right;width:78px}
.roomly-expense-table .row-delete{display:inline-grid;place-items:center;width:31px;height:31px;margin:0 1px;border:1px solid #e0e8f0;border-radius:9px;background:#fff;color:#526d83;cursor:pointer}
.roomly-expense-table .row-delete:hover{background:#e8f3fc}
.roomly-member-list{display:grid;gap:8px}
.roomly-member-line{display:flex;align-items:center;justify-content:space-between;gap:14px;background:rgba(255,255,255,.78);border:1px solid #e1eee8;border-radius:12px;padding:12px 14px}
.roomly-member-person{min-width:0;overflow-wrap:anywhere;color:#426a5b;font-size:13px;font-weight:650}
.roomly-member-line strong{white-space:nowrap;color:#234f41;font-variant-numeric:tabular-nums;font-size:14px}
.roomly-member-total{display:flex;justify-content:space-between;gap:12px;align-items:center;border-top:1px solid #d7e9df;margin-top:13px;padding-top:15px;color:#375f51;font-weight:750}
.roomly-member-total strong{font-size:18px;color:#214b3d;font-variant-numeric:tabular-nums}
@media(max-width:480px){
.roomly-home-expenses,.roomly-member-spending{padding:17px 14px!important;border-radius:19px!important}
.roomly-expense-table th{font-size:10px;padding:9px 4px}
.roomly-expense-table td{font-size:11px;padding:11px 4px}
.roomly-expense-table td:first-child strong{font-size:12px}
.roomly-expense-table td:first-child small{font-size:10px}
.roomly-expense-table .roomly-table-actions{width:64px}
.roomly-expense-table .row-delete{width:27px;height:29px;margin:0;border-radius:8px}
.roomly-member-line{padding:11px 12px}
}


/* Household expense cards: purpose-built for mobile readability */
.roomly-expense-redesign{background:linear-gradient(145deg,#f5faff 0%,#eaf5ff 100%)!important;border:1px solid #d9e9f6!important;box-shadow:0 8px 26px rgba(60,113,160,.055)}
.roomly-expense-redesign .panel-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:17px}
.roomly-expense-redesign .panel-heading h2{margin:4px 0 0;color:#253f55;font-size:clamp(17px,2.5vw,21px)}
.roomly-section-kicker{font-size:10px;font-weight:800;letter-spacing:.11em;color:#7197b7}
.roomly-expense-entries{display:grid;gap:10px}
.roomly-expense-item{min-width:0;padding:14px 16px;border:1px solid #e0eaf2;border-radius:15px;background:rgba(255,255,255,.94);box-shadow:0 2px 8px rgba(55,94,130,.035)}
.roomly-expense-main{display:flex;align-items:baseline;justify-content:space-between;gap:12px;min-width:0}
.roomly-expense-category{font-size:15px;font-weight:800;color:#273f53;overflow-wrap:anywhere;min-width:0}
.roomly-expense-amount{font-size:17px;font-weight:800;color:#2b5977;white-space:nowrap;font-variant-numeric:tabular-nums}
.roomly-expense-meta{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:7px;color:#7a8d9f;font-size:12px}
.roomly-expense-person{font-weight:700;color:#5c809a;overflow-wrap:anywhere}
.roomly-expense-actions{display:flex;gap:9px;margin-top:12px;padding-top:11px;border-top:1px solid #edf1f6}
.roomly-expense-actions button{appearance:none;border-radius:10px;min-height:38px;padding:8px 17px;font-size:12px;font-weight:800;cursor:pointer;transition:background .15s ease,transform .15s ease}
.roomly-expense-actions button:active{transform:scale(.98)}
.roomly-expense-edit{border:1px solid #cce1f3;background:#edf7ff;color:#28648c}
.roomly-expense-edit:hover{background:#dff0fd}
.roomly-expense-delete{border:1px solid #f5d7d9;background:#fff2f3;color:#c34d59}
.roomly-expense-delete:hover{background:#ffe6e8}
@media(max-width:600px){.roomly-expense-redesign{padding:17px 14px!important;border-radius:20px!important}.roomly-expense-item{padding:13px}.roomly-expense-actions button{flex:1}.roomly-expense-amount{font-size:16px}}

/* ROOMLY compact household table and soft, distinct action gradients */
.roomly-expense-redesign{background:linear-gradient(135deg,#f5fbff 0%,#eaf4ff 100%)!important}
.roomly-expense-scroll{width:100%;overflow-x:auto;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch;border:1px solid #deebf5;border-radius:14px;background:rgba(255,255,255,.87)}
.roomly-compact-expense-table{border-collapse:collapse;width:100%;table-layout:fixed;min-width:310px;color:#294153}
.roomly-compact-expense-table th{font-size:10px;letter-spacing:.035em;text-transform:uppercase;color:#70889a;font-weight:750;background:#f1f8fd;padding:12px 8px;text-align:left}
.roomly-compact-expense-table td{padding:12px 8px;font-size:12px;border-top:1px solid #eaf1f6;vertical-align:middle;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.roomly-compact-expense-table th:nth-child(1){width:20%}.roomly-compact-expense-table th:nth-child(2){width:23%}.roomly-compact-expense-table th:nth-child(3){width:17%}.roomly-compact-expense-table th:nth-child(4){width:25%}.roomly-compact-expense-table th:nth-child(5){width:15%}
.roomly-compact-expense-table .roomly-person-cell{font-weight:700}.roomly-compact-expense-table .roomly-price-cell{font-weight:800;font-variant-numeric:tabular-nums;color:#315e7b}.roomly-compact-expense-table .roomly-actions-cell{padding:6px 3px;overflow:visible}.roomly-row-controls{display:flex;justify-content:flex-end;gap:2px}.roomly-row-controls button{display:grid;place-items:center;flex:none;width:23px;height:28px;border:0;border-radius:7px;cursor:pointer;font-size:16px;background:#eaf3fc;color:#4c799b}.roomly-row-controls .roomly-table-delete{background:#fff0f0;color:#c64e5e;font-size:19px}.roomly-row-controls button:focus-visible{outline:2px solid #5799c6;outline-offset:1px}
.roomly-home-tools .feature:first-child{background:linear-gradient(140deg,#fff7f3,#ffebe3)!important;border-color:#f4e2d9!important}.roomly-home-tools .feature:nth-child(2){background:linear-gradient(140deg,#f8fcff,#e5f3fc)!important;border-color:#d9e9f5!important}.roomly-home-budget{background:linear-gradient(140deg,#fafffd,#e9f8f1)!important;border-color:#dbede6!important}.roomly-member-spending{background:linear-gradient(140deg,#fcfaff,#f0ebfa)!important;border-color:#e9e1f2!important}
@media(max-width:430px){.roomly-expense-redesign{padding:14px 11px!important}.roomly-compact-expense-table th{font-size:9px;padding:10px 5px}.roomly-compact-expense-table td{font-size:11px;padding:11px 5px}.roomly-compact-expense-table th:nth-child(1){width:19%}.roomly-compact-expense-table th:nth-child(2){width:22%}.roomly-compact-expense-table th:nth-child(3){width:17%}.roomly-compact-expense-table th:nth-child(4){width:26%}.roomly-compact-expense-table th:nth-child(5){width:16%}.roomly-row-controls button{width:22px}}

/* Scoped spending-history tile: no global SVG sizing or layout leakage. */
.roomly-history-action{display:block!important;width:100%!important;margin:14px 0 12px!important;padding:0!important;min-height:0!important}
.roomly-history-action .roomly-history-link{display:flex!important;flex-direction:row!important;align-items:center!important;justify-content:space-between!important;gap:12px!important;width:100%!important;height:auto!important;min-height:64px!important;padding:12px 14px!important;margin:0!important;background:linear-gradient(115deg,#f7fcff,#f4f3fc)!important;border:1px solid #d6e6f0!important;border-radius:17px!important;box-shadow:0 3px 12px rgba(52,88,119,.05)!important;color:#28465b!important;text-decoration:none!important;box-sizing:border-box!important;overflow:hidden!important}
.roomly-history-action .roomly-history-left{display:flex!important;flex-direction:row!important;align-items:center!important;gap:12px!important;min-width:0!important;flex:1 1 auto!important}
.roomly-history-action .roomly-history-icon{display:flex!important;align-items:center!important;justify-content:center!important;flex:0 0 40px!important;width:40px!important;height:40px!important;min-height:0!important;max-height:40px!important;padding:0!important;margin:0!important;border-radius:12px!important;background:#e2f0fa!important;color:#527d99!important;font-size:23px!important;line-height:1!important;font-weight:500!important;box-shadow:none!important}
.roomly-history-action .roomly-history-copy{display:flex!important;flex-direction:column!important;align-items:flex-start!important;gap:3px!important;min-width:0!important;flex:1 1 auto!important}
.roomly-history-action .roomly-history-copy strong{display:block!important;font-size:14px!important;line-height:1.3!important;font-weight:800!important;color:#29465b!important}
.roomly-history-action .roomly-history-copy small{display:block!important;font-size:11px!important;line-height:1.3!important;font-weight:500!important;color:#71899b!important}
.roomly-history-action .roomly-history-chevron{display:block!important;flex:0 0 auto!important;font-size:23px!important;line-height:1!important;color:#7794a8!important}
/* Must be in a stylesheet actually loaded by base.html. */
form[data-entry="study"] .roomly-study-other[hidden]{display:none!important}
form[data-entry="study"] .roomly-study-other:not([hidden]){display:flex;flex-direction:column;gap:9px}
/* Dots are controlled by roomly-speed.js; no top progress bar. */

/* Restore only the small floating bouncing-dots indicator. */
#roomly-page-loader{display:none;position:fixed;top:auto!important;bottom:calc(108px + env(safe-area-inset-bottom))!important;left:50%;right:auto;width:auto;height:auto;transform:translateX(-50%);z-index:2000;pointer-events:none}
#roomly-page-loader.is-visible{display:flex!important}
