/* ROOMLY UI polish: last-loaded, scoped to v2 components */
:root{--polish-ring:#8fc7e5}
body{min-width:320px}
.app{min-height:100dvh}
.main{padding-bottom:max(110px,calc(env(safe-area-inset-bottom) + 95px))}
.topbar{position:sticky;top:0;z-index:30;backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px)}
.global-back,.back{display:inline-flex;align-items:center;gap:8px;min-height:42px;padding:8px 12px;margin:0 0 16px;border:1px solid var(--line,#dbe6f0);border-radius:12px;text-decoration:none;font-weight:650;color:var(--text,#293e52);background:var(--surface,#fff);transition:transform .15s ease,background .15s ease}
.global-back:hover,.back:hover{transform:translateX(-2px)}
.global-back:focus-visible,.back:focus-visible,.bottom-link:focus-visible{outline:3px solid var(--polish-ring);outline-offset:2px}
.bottom-nav{position:fixed;bottom:max(10px,env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);width:min(calc(100% - 24px),460px);display:grid;grid-template-columns:1fr 1fr;gap:8px;padding:7px;border:1px solid var(--line,#dbe6f0);border-radius:22px;background:var(--surface,#fff);box-shadow:0 12px 35px rgba(20,35,55,.15);z-index:40}
.bottom-link{min-width:0;min-height:58px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;border-radius:16px;text-decoration:none;transition:background .18s ease,transform .18s ease}
.bottom-link svg{width:21px;height:21px}
.bottom-link.active{background:var(--soft,#e6f2fa);color:var(--text,#293e52);font-weight:750}
.bottom-link:active,.feature:active,.btn:active{transform:scale(.98)}
.top-actions{display:flex;align-items:center;gap:10px}
.shared-launch{min-height:42px;display:inline-flex;align-items:center;gap:7px;padding:8px 12px;border:1px solid var(--blue,#9bcde8);border-radius:12px;background:var(--soft,#e6f2fa);color:var(--text,#293e52);font-weight:750;text-decoration:none}
.shared-launch svg{width:20px;height:20px}
.icon-action{position:relative;min-width:42px;min-height:42px;display:grid;place-items:center}
.notice-dot:not([hidden]){display:block!important;position:absolute;top:6px;right:6px;width:9px;height:9px;background:#e5a08b;border:2px solid var(--surface,#fff);border-radius:50%}
.page-head{margin-bottom:22px}
.page-head h1{letter-spacing:-.035em;line-height:1.13}
.feature-grid{gap:12px}
.feature,.panel,.overview,.profile-card{border-radius:20px;transition:transform .2s ease,box-shadow .2s ease}
.feature:hover{transform:translateY(-2px);box-shadow:0 10px 28px rgba(32,66,90,.1)}
.feature-icon{border-radius:15px}
.settings-link{display:flex;align-items:center;justify-content:space-between;min-height:50px}
.theme-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}
.theme-options button{min-height:43px;white-space:normal}
.entry-form input,.entry-form select,.entry-form textarea{min-height:44px;max-width:100%}
button,a,input,select,textarea{touch-action:manipulation}
button:disabled{opacity:.55;cursor:wait}
dialog{max-width:min(92vw,540px);max-height:85dvh;overflow:auto}
@media(max-width:560px){.topbar{padding-left:16px;padding-right:16px}.main{padding-left:16px;padding-right:16px}.feature-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.feature{min-width:0}.page-head h1{font-size:clamp(27px,7vw,38px)}.profile-card{flex-wrap:wrap}}
@media(prefers-reduced-motion:reduce){.feature,.bottom-link,.global-back,.back{transition:none!important}}

.budget-edit-link{display:inline-flex;align-items:center;justify-content:center;min-height:40px;padding:8px 12px;border-radius:11px;text-decoration:none;white-space:nowrap;color:var(--text)}
#budget-editor:target{outline:2px solid var(--blue);outline-offset:4px}
