/* Cloud sync & households UI (ported from mockups/cloud-sync/mockup.css). Uses the app's tokens: --ink --muted --line --surface --background --blue --soft --good --amber --expense. */
.syIco { width: 1.5rem; height: 1.5rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.syIco.sm { width: 1.1rem; height: 1.1rem; }
.syIco.lg { width: 1.75rem; height: 1.75rem; }

/* full-screen onboarding */
.syFull { background: var(--background); }
.syTop { display: flex; align-items: center; justify-content: space-between; gap: .75rem; min-height: 2.5rem; }
.syBack { width: 2.5rem; height: 2.5rem; padding: 0; border-radius: 50%; display: grid; place-items: center; background: var(--surface); color: var(--ink); border: 1px solid var(--line); box-shadow: none; }
.sySteps { display: flex; gap: .35rem; align-items: center; color: var(--muted); font-size: .8rem; font-weight: 650; }
.sySteps i { width: 1.6rem; height: .3rem; border-radius: 99px; background: var(--line); display: block; }
.sySteps i.on { background: var(--blue); }
.syBody { display: grid; align-content: start; gap: 1rem; }
.syBody h1 { margin: .2rem 0 0; font-size: 1.65rem; line-height: 1.15; letter-spacing: -.01em; }
.syBody > p, .syLead { margin: 0; color: var(--muted); line-height: 1.45; }
.syFoot { display: grid; gap: .6rem; }
.syFoot button { width: 100%; min-height: 3rem; font-size: 1rem; }
.syFoot .sySmall { text-align: center; color: var(--muted); font-size: .85rem; margin: .2rem 0 0; }
button.ghost { background: transparent; color: var(--blue); border: 0; box-shadow: none; }
html[data-theme="dark"] button.ghost { color: #9db8ff; }

.syChoice { display: grid; grid-template-columns: auto 1fr auto; gap: .9rem; align-items: start; padding: 1.1rem; border: 1.5px solid var(--line); border-radius: 18px; background: var(--surface); }
.syChoice h3 { margin: 0 0 .3rem; font-size: 1.08rem; }
.syChoice p { margin: 0; color: var(--muted); font-size: .92rem; line-height: 1.4; }
.syChoice.sel { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(29, 78, 216, .13); }
html[data-theme="dark"] .syChoice.sel { border-color: #6e98ff; box-shadow: 0 0 0 4px rgba(110, 152, 255, .2); }
.syChoice.off { opacity: .55; background: transparent; border-style: dashed; }
.syIcon { width: 3rem; height: 3rem; border-radius: 14px; background: var(--soft); color: var(--blue); display: grid; place-items: center; }
html[data-theme="dark"] .syIcon { color: #9db8ff; }
.syRadio { width: 1.35rem; height: 1.35rem; border: 2px solid var(--line); border-radius: 50%; margin-top: .15rem; display: grid; place-items: center; }
.sel > .syRadio { border-color: var(--blue); }
.sel > .syRadio::after { content: ""; width: .7rem; height: .7rem; border-radius: 50%; background: var(--blue); }
html[data-theme="dark"] .sel > .syRadio { border-color: #6e98ff; } html[data-theme="dark"] .sel > .syRadio::after { background: #6e98ff; }
.syChev { color: var(--muted); margin-top: .5rem; }
.syPill { display: inline-block; padding: .15rem .55rem; border-radius: 99px; background: var(--soft); color: var(--muted); font-size: .72rem; font-weight: 700; white-space: nowrap; }
.syPill.good { background: rgba(21, 128, 61, .12); color: var(--good); }
.syPill.warn { background: rgba(165, 101, 0, .14); color: var(--amber); }
.syPill.blue { background: var(--soft); color: var(--blue); }
html[data-theme="dark"] .syPill.good { color: #5fd38a; } html[data-theme="dark"] .syPill.warn { color: #f0b254; } html[data-theme="dark"] .syPill.blue { color: #9db8ff; }

.syNote { display: flex; gap: .65rem; align-items: flex-start; padding: .8rem .9rem; border-radius: 14px; background: var(--soft); color: var(--ink); font-size: .9rem; line-height: 1.4; }
.syNote .syIco { color: var(--blue); margin-top: .1rem; }
html[data-theme="dark"] .syNote .syIco { color: #9db8ff; }
.syWarn { display: flex; gap: .65rem; align-items: flex-start; padding: .85rem .95rem; border-radius: 14px; background: #fff4d6; border: 1px solid #f3d27a; color: #5c3b00; font-size: .9rem; line-height: 1.4; }
.syWarn .syIco { color: #a56500; margin-top: .1rem; }
html[data-theme="dark"] .syWarn { background: #3a2c0c; border-color: #6d5214; color: #f6dca0; } html[data-theme="dark"] .syWarn .syIco { color: #f0b254; }
.syDanger { background: #fdecea; border-color: #f2b8b2; color: #7a1b12; } .syDanger .syIco { color: var(--expense); }
html[data-theme="dark"] .syDanger { background: #3b1613; border-color: #7a2a24; color: #f7c3bd; }

.syField { display: grid; gap: .35rem; font-size: .9rem; color: var(--muted); }
.syField > span { font-weight: 650; }
.syField input, .syInput { width: 100%; box-sizing: border-box; padding: .85rem .9rem; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink); font-size: 1rem; }
.syField small { color: var(--muted); font-size: .8rem; }
.sySeg { display: grid; grid-template-columns: 1fr 1fr; gap: .25rem; padding: .25rem; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.sySeg.three { grid-template-columns: repeat(3, 1fr); }
.sySeg span { text-align: center; padding: .6rem .3rem; border-radius: 10px; color: var(--muted); font-weight: 650; font-size: .88rem; line-height: 1.2; }
.sySeg span.on { background: var(--soft); color: var(--blue); }
html[data-theme="dark"] .sySeg span.on { color: #9db8ff; }
.syPhrase { display: grid; grid-template-columns: repeat(3, 1fr); gap: .45rem; padding: .85rem; border: 1.5px dashed var(--line); border-radius: 16px; background: var(--surface); }
.syPhrase span { padding: .5rem .3rem; text-align: center; border-radius: 10px; background: var(--soft); font-weight: 700; font-size: .95rem; position: relative; }
.syPhrase span b { position: absolute; top: .12rem; left: .3rem; font-size: .6rem; color: var(--muted); font-weight: 650; }
.syRow { display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.syCheck { display: flex; gap: .7rem; align-items: flex-start; font-size: .92rem; line-height: 1.35; }
.syCheck i { width: 1.35rem; height: 1.35rem; border-radius: 7px; border: 2px solid var(--line); flex: none; display: grid; place-items: center; background: var(--surface); }
.syCheck i.on { background: var(--blue); border-color: var(--blue); color: #fff; }
.syCheck i .syIco { width: .95rem; height: .95rem; stroke-width: 3; }

.syProvider { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .9rem; padding: 1rem 1.05rem; border: 1.5px solid var(--line); border-radius: 18px; background: var(--surface); }
.syProvider.on { border-color: var(--blue); }
.syProvider.off { opacity: .55; background: transparent; }
.syProvider strong { display: block; font-size: 1.05rem; }
.syProvider small { color: var(--muted); }
.syLogo { width: 2.8rem; height: 2.8rem; border-radius: 12px; display: grid; place-items: center; font-weight: 800; font-size: 1.15rem; background: var(--soft); color: var(--blue); border: 1px solid var(--line); }
.syProvider.on .syLogo { background: var(--blue); color: #fff; border-color: var(--blue); }
.syProvider.off .syLogo { background: var(--soft); color: var(--muted); }

.syCardDoc { display: grid; gap: .7rem; padding: 1.1rem; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 10px 30px rgba(11, 19, 32, .1); }
.syCardDoc header { display: flex; align-items: center; gap: .6rem; }
.syCardDoc header img { width: 34px; height: 34px; border-radius: 9px; }
.syCardDoc h4 { margin: 0; font-size: .95rem; } .syCardDoc small { color: var(--muted); }
.syCardDoc .syPhrase { border-style: solid; }
.syCardDoc footer { font-size: .75rem; color: var(--muted); line-height: 1.35; }

.sySteps3 { display: grid; gap: .8rem; counter-reset: s; }
.sySteps3 li { list-style: none; display: grid; grid-template-columns: auto 1fr; gap: .75rem; align-items: start; color: var(--ink); font-size: .92rem; line-height: 1.4; }
.sySteps3 li::before { counter-increment: s; content: counter(s); width: 1.7rem; height: 1.7rem; border-radius: 50%; background: var(--soft); color: var(--blue); font-weight: 800; display: grid; place-items: center; font-size: .85rem; }
.sySteps3 { margin: 0; padding: 0; }
.syPicker { border: 1px solid var(--line); border-radius: 16px; background: var(--surface); overflow: hidden; font-size: .88rem; box-shadow: 0 8px 24px rgba(11, 19, 32, .08); }
.syPicker header { padding: .6rem .9rem; border-bottom: 1px solid var(--line); color: var(--muted); font-weight: 650; display: flex; justify-content: space-between; }
.syPicker .f { display: flex; gap: .7rem; align-items: center; padding: .65rem .9rem; border-bottom: 1px solid var(--line); }
.syPicker .f:last-child { border-bottom: 0; }
.syPicker .f.on { background: var(--soft); font-weight: 700; }
.syPicker .f small { color: var(--muted); display: block; font-weight: 500; }

/* app shell bits */
.cloudBtn { position: relative; width: 2.6rem; height: 2.6rem; padding: 0; border-radius: 50%; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--line); box-shadow: none; color: var(--muted); }
.cloudBtn::after { content: ""; position: absolute; right: .1rem; bottom: .1rem; width: .8rem; height: .8rem; border-radius: 50%; border: 2px solid var(--surface); background: var(--good); }
.cloudBtn.syncing { color: var(--blue); } .cloudBtn.syncing::after { background: var(--blue); }
.cloudBtn.offline { color: var(--amber); } .cloudBtn.offline::after { background: var(--amber); }
.cloudBtn.error { color: var(--expense); } .cloudBtn.error::after { background: var(--expense); }
.cloudBtn.local::after { display: none; }
html[data-theme="dark"] .cloudBtn.syncing { color: #9db8ff; } html[data-theme="dark"] .cloudBtn.offline { color: #f0b254; } html[data-theme="dark"] .cloudBtn.error { color: #ff8f84; }
.syScrim { position: fixed; inset: 0; background: rgba(11, 19, 32, .45); z-index: 40; }
html[data-theme="dark"] .syScrim { background: rgba(0, 0, 0, .6); }
.syPop { position: fixed; z-index: 45; top: 4.2rem; right: .8rem; left: .8rem; padding: 1rem; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 18px 50px rgba(11, 19, 32, .25); display: grid; gap: .75rem; }
.syPop::before { content: ""; position: absolute; top: -.45rem; right: 1.15rem; width: .85rem; height: .85rem; transform: rotate(45deg); background: var(--surface); border-left: 1px solid var(--line); border-top: 1px solid var(--line); }
.syPop h3 { margin: 0; font-size: 1.05rem; display: flex; align-items: center; gap: .5rem; }
.syPop dl { margin: 0; display: grid; gap: .55rem; font-size: .9rem; }
.syPop dl div { display: flex; justify-content: space-between; gap: .75rem; }
.syPop dt { color: var(--muted); } .syPop dd { margin: 0; font-weight: 650; text-align: right; }
.syPop .syLead { font-size: .88rem; margin: 0; }
.syPop .btns { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.syPop .btns button { min-height: 2.6rem; font-size: .9rem; padding: .4rem; }
.syAv { width: 1.9rem; height: 1.9rem; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: .8rem; flex: none; }
.syAv.l { background: #1d4ed8; } .syAv.c { background: #0f8b8d; } .syAv.m { background: #b7791f; } .syAv.s { background: #7c3aed; }
.syAv.xl { width: 2.8rem; height: 2.8rem; font-size: 1.05rem; }
.syTx { display: grid; grid-template-columns: 1fr auto; gap: .2rem .75rem; padding: .85rem 1rem; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.syTx strong { font-size: .98rem; } .syTx small { color: var(--muted); display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; }
.syTx .amt { font-weight: 800; text-align: right; font-variant-numeric: tabular-nums; } .syTx .amt.neg { color: var(--expense); } .syTx .amt.pos { color: var(--good); }
.syTx .who { display: inline-flex; align-items: center; gap: .3rem; }
.syTx .who .syAv { width: 1.2rem; height: 1.2rem; font-size: .6rem; }
.syList { display: grid; gap: .55rem; }
.syDate { margin: .4rem 0 0; font-size: .8rem; font-weight: 750; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.syState { display: grid; grid-template-columns: auto 1fr; gap: .9rem; align-items: start; padding: 1rem; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.syState h3 { margin: 0 0 .2rem; font-size: 1rem; } .syState p { margin: 0; color: var(--muted); font-size: .88rem; line-height: 1.4; }
.syState .cloudBtn { width: 2.8rem; height: 2.8rem; }
.syMember { display: grid; grid-template-columns: auto 1fr auto; gap: .8rem; align-items: center; padding: .8rem 0; border-top: 1px solid var(--line); }
.syMember:first-of-type { border-top: 0; }
.syMember strong { display: block; font-size: .98rem; } .syMember small { color: var(--muted); }
.syRole { display: inline-flex; align-items: center; gap: .3rem; padding: .35rem .6rem; border: 1px solid var(--line); border-radius: 10px; font-size: .8rem; font-weight: 700; color: var(--ink); background: var(--surface); white-space: nowrap; }
.syHome { display: grid; grid-template-columns: auto 1fr auto; gap: .85rem; align-items: center; }
.syHome h3 { margin: 0; } .syHome small { color: var(--muted); }
.syDangerBtn { color: var(--expense) !important; }
html[data-theme="dark"] .syDangerBtn { color: #ff8f84 !important; }
.syMenuRow { display: flex; align-items: center; gap: .8rem; width: 100%; min-height: 3rem; padding: 0 .2rem; background: transparent; border: 0; border-top: 1px solid var(--line); border-radius: 0; box-shadow: none; text-align: left; color: var(--ink); font-weight: 650; }
.syMenuRow small { display: block; color: var(--muted); font-weight: 500; }

.sySheet { position: fixed; z-index: 50; left: 0; right: 0; bottom: 0; padding: .6rem 1.1rem 1.4rem; background: var(--surface); border: 1px solid var(--line); border-bottom: 0; border-radius: 24px 24px 0 0; box-shadow: 0 -14px 40px rgba(11, 19, 32, .25); display: grid; gap: .9rem; }
.sySheet .syHandle { justify-self: center; width: 2.5rem; height: .28rem; border-radius: 99px; background: var(--line); }
.sySheet h2 { margin: 0; font-size: 1.3rem; }
.sySheet .syLead { font-size: .92rem; }
.sySheet .two { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.sySheet button { min-height: 3rem; font-size: 1rem; }
.syRoleOpt { display: grid; grid-template-columns: 1fr auto; gap: .1rem .6rem; padding: .75rem .9rem; border: 1.5px solid var(--line); border-radius: 14px; background: var(--surface); }
.syRoleOpt strong { font-size: .98rem; } .syRoleOpt small { color: var(--muted); grid-column: 1; line-height: 1.35; }
.syRoleOpt .syRadio { grid-row: 1 / span 2; grid-column: 2; align-self: center; }
.syRoleOpt.sel { border-color: var(--blue); background: var(--soft); }
.syRoleOpt.sel .syRadio { border-color: var(--blue); } .syRoleOpt.sel .syRadio::after { content: ""; width: .7rem; height: .7rem; border-radius: 50%; background: var(--blue); }
html[data-theme="dark"] .syRoleOpt.sel { border-color: #6e98ff; }

.syDialog { position: fixed; z-index: 50; left: .75rem; right: .75rem; top: 50%; transform: translateY(-50%); padding: 1.15rem; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 30px 90px rgba(7, 24, 47, .45); display: grid; gap: .9rem; }
.syDialog h2 { margin: 0; font-size: 1.25rem; line-height: 1.2; }
.syDialog .syLead { font-size: .9rem; color: var(--muted); margin: 0; }
.syVersions { display: grid; grid-template-columns: 1fr 1fr; gap: .55rem; }
.syVer { display: grid; gap: .55rem; align-content: start; padding: .75rem; border: 1.5px solid var(--line); border-radius: 16px; background: var(--surface); }
.syVer header { display: grid; gap: .1rem; } .syVer header > div { display: flex; align-items: center; gap: .45rem; font-weight: 800; }
.syVer header small { color: var(--muted); font-size: .72rem; }
.syVer dl { margin: 0; display: grid; gap: .45rem; }
.syVer dt { font-size: .68rem; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; font-weight: 700; }
.syVer dd { margin: .05rem 0 0; font-size: .9rem; font-weight: 650; overflow-wrap: anywhere; }
.syVer dd.diff { background: rgba(165, 101, 0, .16); border-radius: 7px; padding: .1rem .3rem; margin-left: -.3rem; }
html[data-theme="dark"] .syVer dd.diff { background: rgba(240, 178, 84, .2); }
.syDialog .actions { display: grid; gap: .5rem; }
.syDialog .actions button { min-height: 2.9rem; }
.badgeRO { display: inline-flex; align-items: center; gap: .35rem; padding: .3rem .7rem; border-radius: 99px; background: rgba(165, 101, 0, .14); color: var(--amber); font-weight: 750; font-size: .8rem; }
html[data-theme="dark"] .badgeRO { color: #f0b254; }
.syCenter { display: grid; justify-items: center; text-align: center; gap: .8rem; padding-top: 1rem; }
.syBig { width: 5.5rem; height: 5.5rem; border-radius: 50%; background: rgba(21, 128, 61, .12); color: var(--good); display: grid; place-items: center; }
html[data-theme="dark"] .syBig { color: #5fd38a; }
.syBig .syIco { width: 2.8rem; height: 2.8rem; stroke-width: 2.4; }
@keyframes spin { to { transform: rotate(360deg); } }
.spin { animation: spin 1.6s linear infinite; transform-origin: center; }
.syMenuRow { padding-top: .55rem; padding-bottom: .55rem; line-height: 1.3; } .syMenuRow small { margin-top: .1rem; }
.syMember { grid-template-columns: auto minmax(0, 1fr) auto; gap: .65rem; } .syMember .syAv.xl { width: 2.5rem; height: 2.5rem; } .syMember small { overflow-wrap: anywhere; }
.syMember small { overflow-wrap: normal; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; font-size: .8rem; } .syMember .syRole { padding: .3rem .45rem; font-size: .75rem; } .syMember strong { white-space: nowrap; }

/* ---- live-app additions ---- */
.syLayer { position: fixed; inset: 0; z-index: 90; }
.syLayer[hidden], .syFull[hidden] { display: none; }
.syFull { position: fixed; inset: 0; z-index: 100; overflow-y: auto; -webkit-overflow-scrolling: touch; width: auto; }
.syFull > .syFrame { width: 100%; max-width: 30rem; margin: 0 auto; min-height: 100vh; min-height: 100dvh; box-sizing: border-box; display: grid; grid-template-rows: auto 1fr auto; padding: max(1rem, env(safe-area-inset-top)) 1.1rem max(1.1rem, env(safe-area-inset-bottom)); gap: 1rem; }
.syBody p, .syBody ul { margin: 0; }
.syChoice { cursor: pointer; text-align: left; width: 100%; font: inherit; color: inherit; box-shadow: none; }
.syChoice.off { cursor: default; }
.syChoice:focus-visible, .syRoleOpt:focus-visible, .syProvider:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.syProvider { cursor: pointer; width: 100%; text-align: left; font: inherit; color: inherit; box-shadow: none; }
.syProvider.off { cursor: default; }
.syRoleOpt { cursor: pointer; text-align: left; width: 100%; font: inherit; color: inherit; box-shadow: none; }
.syField input, .syField select, .syField textarea { font: inherit; }
.syField.bad input { border-color: var(--expense); }
.syError { color: var(--expense); font-size: .88rem; margin: 0; min-height: 1.2em; }
html[data-theme="dark"] .syError { color: #ff8f84; }
.syLink { background: none; border: 0; box-shadow: none; color: var(--blue); padding: 0; min-height: 0; font-weight: 650; text-decoration: underline; cursor: pointer; font-size: .9rem; }
html[data-theme="dark"] .syLink { color: #9db8ff; }
.syPhrase span.big { grid-column: 1 / -1; }
.syPhraseText { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-weight: 700; font-size: 1.02rem; letter-spacing: .01em; word-break: break-all; text-align: center; padding: .9rem .8rem; border: 1.5px dashed var(--line); border-radius: 16px; background: var(--surface); }
.syPhrase span { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .92rem; }
.syPop { right: .8rem; left: .8rem; top: 4rem; max-width: 26rem; margin-left: auto; }
.syPopWrap { position: fixed; inset: 0; z-index: 95; }
.syBadges { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.syBadgeRO { margin-left: .5rem; vertical-align: middle; }
.syInline { display: inline-flex; align-items: center; gap: .35rem; }
.syTxWho { display: inline-flex; align-items: center; gap: .25rem; color: var(--muted); font-size: .78rem; margin-left: .35rem; vertical-align: middle; }
.syTxWho .syAv { width: 1.15rem; height: 1.15rem; font-size: .58rem; }
.syPanel { display: grid; gap: .9rem; }
.syPanel h2, .syPanel h3 { margin: 0; }
.syPanel p { margin: 0; color: var(--muted); }
.syMembers { display: grid; }
.syMember .syRole select { border: 0; background: transparent; font: inherit; color: inherit; font-weight: 700; padding: 0 .2rem; }
.syMember .syRole { min-height: 2.2rem; }
.syMenuRow { cursor: pointer; font: inherit; }
.syMenuRow:hover { background: var(--soft); }
.syBannerRow { display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; }
.syDemoTag { position: fixed; z-index: 140; left: 50%; transform: translateX(-50%); top: max(.35rem, env(safe-area-inset-top)); padding: .15rem .6rem; border-radius: 99px; background: var(--ink); color: var(--surface); font-size: .68rem; font-weight: 700; opacity: .85; pointer-events: none; white-space: nowrap; }
.cloudSlot { display: flex; align-items: center; }
.cloudSlot[hidden] { display: none; }
body.syncReadOnly #addTransaction, body.syncReadOnly #addAccount, body.syncReadOnly #addCashWallet, body.syncReadOnly #addInvestment, body.syncReadOnly #heroUpload, body.syncReadOnly #demoStartReal, body.syncReadOnly #chooseStatement, body.syncReadOnly .headingActions label.fileButton, body.syncReadOnly [data-edit], body.syncReadOnly [data-action="edit"], body.syncReadOnly .roHide { display: none !important; }
@media (min-width: 761px) {
  .syFull > .syFrame { padding-top: 3rem; }
  .syPop { right: 1.25rem; left: auto; width: 24rem; margin: 0; }
}
.syCount { position: absolute; top: -.3rem; right: -.3rem; min-width: 1.2rem; height: 1.2rem; padding: 0 .3rem; box-sizing: border-box; border-radius: 99px; background: var(--amber); color: #fff; font-size: .7rem; font-weight: 800; display: grid; place-items: center; }
.syFull:focus, .syFull h1:focus { outline: none; }
.syDialog { max-height: 88vh; overflow-y: auto; max-width: 28rem; margin: 0 auto; }
.sySheet { max-height: 92vh; overflow-y: auto; max-width: 32rem; margin: 0 auto; }
.syCard { padding: 1rem; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); display: grid; gap: .8rem; }
.syCard h3 { margin: 0; font-size: 1.02rem; }
.syCardHead { display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.syCopies { display: grid; gap: .5rem; }
.syCopies .syRow { padding: .5rem 0; border-top: 1px solid var(--line); font-size: .9rem; }
.syCopies small { color: var(--muted); display: block; }
.syDemoNote { color: var(--muted); font-size: .88rem; }
@media (prefers-reduced-motion: reduce) { .spin { animation: none; } }
.syToast { position: fixed; z-index: 130; left: 50%; transform: translateX(-50%); bottom: calc(var(--tabbar-h, 3.75rem) + 1.2rem + env(safe-area-inset-bottom)); max-width: min(90vw, 26rem); padding: .65rem 1rem; border-radius: 14px; background: var(--ink); color: var(--surface); font-size: .9rem; font-weight: 650; box-shadow: 0 10px 30px rgba(0, 0, 0, .3); }
.sySeg .syTab { border: 0; box-shadow: none; background: transparent; color: var(--muted); min-height: 2.5rem; padding: .6rem .3rem; border-radius: 10px; font-weight: 650; font-size: .88rem; line-height: 1.2; cursor: pointer; }
.sySeg .syTab.on { background: var(--soft); color: var(--blue); }
html[data-theme="dark"] .sySeg .syTab.on { color: #9db8ff; }
.syHandle { justify-self: center; width: 2.5rem; height: .28rem; border-radius: 99px; background: var(--line); display: block; margin: 0 auto; }
.sySheet .two { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.srOnly { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.syCheck input { margin-top: .15rem; width: 1.2rem; height: 1.2rem; flex: none; }
.headerTools { display: flex; align-items: center; gap: .6rem; margin-left: auto; }
.badgeRO[hidden] { display: none; }
body.syncReadOnly .appNav a[href="#import"], body.syncReadOnly .moreSheet a[href="#import"], body.syncReadOnly #restoreBackup, body.syncReadOnly label[for="restoreInput"] { display: none !important; }
/* the app's global button hover/active colors must not repaint selectable cards */
.syChoice, .syChoice:hover, .syChoice:active, .syProvider, .syProvider:hover, .syProvider:active { background: var(--surface); color: var(--ink); transform: none; }
.syChoice.off, .syChoice.off:hover { background: transparent; }
.syProvider.off, .syProvider.off:hover { background: transparent; color: var(--ink); }
.syRoleOpt, .syRoleOpt:hover, .syRoleOpt:active { background: var(--surface); color: var(--ink); transform: none; }
.syRoleOpt.sel, .syRoleOpt.sel:hover { background: var(--soft); }
.syMenuRow:hover, .syMenuRow:active { background: var(--soft); color: var(--ink); transform: none; }
.syMenuRow.syDangerBtn:hover { color: var(--expense); }
.syBack:hover, .syBack:active { background: var(--surface); color: var(--ink); transform: none; }
.syRole, .syRole:hover { background: var(--surface); color: var(--ink); transform: none; }
.syLink:hover, button.ghost:hover { background: transparent; transform: none; }
.syFull .syFoot button.ghost, .syFoot .ghost { background: transparent; }
.actions button.syDangerBtn, .actions button.syDangerBtn:hover { background: var(--expense); color: #fff !important; border-color: transparent; }
html[data-theme="dark"] .actions button.syDangerBtn { background: #c0392b; color: #fff !important; }

.syDialog .actions button:disabled { opacity: .45; cursor: not-allowed; }
.syBig.bad { background: rgba(185, 28, 28, .1); color: var(--expense); }
html[data-theme="dark"] .syBig.bad { color: #ff8f84; background: rgba(255, 143, 132, .12); }
