:root {
    color-scheme: light;
    --ink: #20203c;
    --muted: #6c6c83;
    --paper: #ffffff;
    --canvas: #f4f5fb;
    --line: #e6e7f1;
    --purple: #5b5bd6;
    --purple-dark: #4444b5;
    --purple-pale: #ececff;
    --mint: #18a982;
    --mint-pale: #e5f9f2;
    --yellow: #ffc84a;
    --coral: #f4746a;
    --coral-pale: #fff0ed;
    --blue: #4b8fef;
    --shadow: 0 18px 50px rgba(40, 42, 83, .12);
    --radius: 28px;
    font-family: "Pretendard", "Noto Sans KR", "Apple SD Gothic Neo", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { min-height: 100%; background: var(--canvas); }

body {
    min-width: 320px;
    min-height: 100vh;
    margin: 0;
    color: var(--ink);
    background:
        radial-gradient(circle at 8% 4%, rgba(255, 217, 130, .42), transparent 23rem),
        radial-gradient(circle at 92% 7%, rgba(173, 168, 255, .38), transparent 24rem),
        var(--canvas);
    -webkit-tap-highlight-color: transparent;
}

button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }

.ambient {
    position: fixed;
    z-index: -1;
    border-radius: 999px;
    filter: blur(2px);
    pointer-events: none;
}
.ambient-one { width: 210px; height: 210px; top: 20vh; left: -110px; background: rgba(255, 200, 74, .2); }
.ambient-two { width: 270px; height: 270px; right: -150px; bottom: 10vh; background: rgba(91, 91, 214, .13); }

.app-shell { width: 100%; min-height: 100vh; }
.center-screen { min-height: 100vh; display: grid; place-items: center; padding: 32px 20px; }
.center-screen > h1 { margin: 16px 0 24px; font-size: clamp(1.7rem, 5vw, 2.4rem); }

.brand-mark {
    width: 86px;
    height: 86px;
    display: grid;
    place-items: center;
    border-radius: 30px;
    color: white;
    background: linear-gradient(145deg, #7474ed, #4747bd);
    box-shadow: 0 16px 32px rgba(75, 75, 190, .28);
    font-size: 2.8rem;
    font-weight: 900;
    transform: rotate(-4deg);
}
.brand-mark.small { width: 64px; height: 64px; border-radius: 22px; font-size: 2rem; flex: 0 0 auto; }
.brand-mark.tiny { width: 46px; height: 46px; border-radius: 16px; font-size: 1.45rem; box-shadow: none; }

.loading-dots { display: flex; gap: 8px; }
.loading-dots span { width: 10px; height: 10px; border-radius: 50%; background: var(--purple); animation: loading 1s infinite ease-in-out; }
.loading-dots span:nth-child(2) { animation-delay: .14s; }
.loading-dots span:nth-child(3) { animation-delay: .28s; }
@keyframes loading { 0%, 80%, 100% { opacity: .25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-7px); } }

.wide-card, .login-card {
    width: min(100%, 650px);
    padding: clamp(26px, 6vw, 48px);
    border: 1px solid rgba(255,255,255,.75);
    border-radius: 34px;
    background: rgba(255, 255, 255, .94);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}
.login-card { width: min(100%, 620px); }
.brand-row { display: flex; align-items: center; gap: 18px; margin-bottom: 40px; }
.brand-row h1, .setup-card h1 { margin: 4px 0 0; letter-spacing: -.04em; line-height: 1.18; }
.setup-card h1 { font-size: clamp(2rem, 6vw, 3rem); }
.eyebrow { margin: 0; color: var(--purple); font-size: .8rem; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.lead { margin: 16px 0 30px; color: var(--muted); line-height: 1.7; }
.login-question { margin: 0 0 18px; font-size: 1.25rem; font-weight: 850; }

.role-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.role-card {
    min-height: 210px;
    padding: 25px 16px;
    border: 2px solid transparent;
    border-radius: 26px;
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.role-card:hover, .role-card:focus-visible { transform: translateY(-3px); box-shadow: 0 15px 28px rgba(35, 36, 75, .13); outline: none; }
.child-role { background: linear-gradient(145deg, #ececff, #f7f7ff); }
.child-role:hover, .child-role:focus-visible { border-color: #a9a9f4; }
.parent-role { background: linear-gradient(145deg, #e5f9f2, #f6fffb); }
.parent-role:hover, .parent-role:focus-visible { border-color: #89d7bf; }
.role-emoji { display: block; margin-bottom: 12px; font-size: 3.4rem; }
.role-card strong { display: block; font-size: 1.25rem; }
.role-card > span:last-child { display: block; margin-top: 6px; color: var(--muted); font-size: .9rem; }

.form-stack { display: grid; gap: 20px; }
.form-stack label > span, .parent-picker > span { display: block; margin: 0 0 9px; font-size: .92rem; font-weight: 800; }
.form-stack label small { color: var(--muted); font-weight: 600; }
input, select {
    width: 100%;
    min-height: 52px;
    border: 1.5px solid var(--line);
    border-radius: 15px;
    padding: 12px 15px;
    color: var(--ink);
    background: #fbfbfe;
    outline: none;
    transition: border-color .16s ease, box-shadow .16s ease;
}
input:focus, select:focus { border-color: var(--purple); box-shadow: 0 0 0 4px rgba(91, 91, 214, .11); background: white; }
.two-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.input-suffix { position: relative; }
.input-suffix input { padding-right: 50px; }
.input-suffix b { position: absolute; right: 17px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.form-message { min-height: 20px; margin: -5px 0 0; color: #c43c36; font-size: .9rem; font-weight: 750; }

.primary-button, .parent-primary, .secondary-button, .danger-button, .icon-button, .text-button {
    min-height: 50px;
    border: 0;
    border-radius: 15px;
    padding: 12px 20px;
    cursor: pointer;
    font-weight: 850;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform .14s ease, box-shadow .14s ease, opacity .14s ease;
}
.primary-button { color: white; background: var(--purple); box-shadow: 0 10px 20px rgba(91,91,214,.22); }
.parent-primary { color: white; background: var(--mint); box-shadow: 0 10px 20px rgba(24,169,130,.2); border: 0; border-radius: 15px; min-height: 50px; padding: 12px 20px; font-weight: 850; cursor: pointer; }
.secondary-button { border: 1.5px solid var(--line); background: white; color: var(--ink); }
.danger-button { color: #b3322d; background: var(--coral-pale); }
.text-button { min-height: 44px; padding: 5px 0; background: transparent; color: var(--muted); justify-content: flex-start; }
.primary-button:hover, .parent-primary:hover, .secondary-button:hover, .danger-button:hover, .icon-button:hover { transform: translateY(-1px); }
button:disabled, .offline button[type="submit"], .offline [data-open-modal] { opacity: .48; cursor: not-allowed; transform: none; }
.full-button { width: 100%; }
.button-row { display: flex; gap: 10px; }
.button-row > * { flex: 1; }

.parent-picker { display: grid; gap: 6px; }
.segmented { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 6px; border-radius: 18px; background: #f0f1f6; }
.segmented button { min-height: 46px; border: 0; border-radius: 13px; background: transparent; cursor: pointer; font-weight: 800; }
.segmented button.active { color: white; background: var(--mint); box-shadow: 0 6px 15px rgba(24,169,130,.22); }
.pin-label input { text-align: center; font-size: 1.6rem; letter-spacing: .42em; font-weight: 900; }

.offline-banner {
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    right: 0;
    padding: 10px 18px;
    color: #5d4300;
    background: #ffe9a9;
    text-align: center;
    font-size: .88rem;
    font-weight: 800;
}
.offline .topbar { margin-top: 39px; }

.topbar {
    position: sticky;
    z-index: 50;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 76px;
    padding: 12px max(20px, calc((100vw - 1100px) / 2));
    border-bottom: 1px solid rgba(227, 228, 239, .85);
    background: rgba(248,249,252,.86);
    backdrop-filter: blur(18px);
}
.brand-link { display: flex; align-items: center; gap: 12px; }
.brand-link b, .brand-link small { display: block; }
.brand-link b { font-size: 1rem; }
.brand-link small { margin-top: 2px; color: var(--muted); font-size: .76rem; }
.topbar-actions { display: flex; align-items: center; gap: 8px; }
.icon-button { min-height: 44px; padding: 9px 14px; background: white; border: 1px solid var(--line); font-size: .82rem; }
.install-button { color: var(--purple); }
.role-badge { padding: 9px 13px; border-radius: 999px; color: var(--purple-dark); background: var(--purple-pale); font-size: .8rem; font-weight: 850; }

.page-grid { width: min(100% - 32px, 1100px); margin: 28px auto 70px; display: grid; gap: 22px; }
.balance-card {
    position: relative;
    min-height: 260px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: clamp(30px, 6vw, 60px);
    border-radius: 36px;
    color: white;
    background:
        radial-gradient(circle at 85% 15%, rgba(255,255,255,.2), transparent 12rem),
        linear-gradient(135deg, #6565db 0%, #4848b9 100%);
    box-shadow: 0 22px 50px rgba(69, 69, 177, .24);
}
.balance-card::before { content: ""; position: absolute; inset: 13px; border: 1px solid rgba(255,255,255,.22); border-radius: 27px; pointer-events: none; }
.balance-copy { position: relative; z-index: 1; }
.balance-copy > p { margin: 0; color: rgba(255,255,255,.79); font-weight: 750; }
.balance-line { display: flex; align-items: baseline; gap: 8px; margin: 8px 0 14px; font-variant-numeric: tabular-nums; }
.balance-line strong { font-size: clamp(3rem, 9vw, 5.8rem); line-height: 1; letter-spacing: -.055em; }
.balance-line span { font-size: clamp(1.3rem, 3vw, 2rem); font-weight: 800; }
.balance-hint { font-size: .9rem; }
.coin-stack { position: relative; width: 220px; height: 150px; flex: 0 0 auto; }
.coin-stack span { position: absolute; display: grid; place-items: center; width: 108px; height: 108px; border: 6px solid rgba(255,255,255,.45); border-radius: 50%; color: #5b4b1d; background: #ffd66d; box-shadow: inset 0 0 0 5px rgba(255,255,255,.24), 0 16px 25px rgba(25,25,80,.22); font-size: 1.05rem; font-weight: 950; }
.coin-stack span:nth-child(1) { left: 3px; top: 35px; transform: rotate(-15deg); }
.coin-stack span:nth-child(2) { left: 71px; top: 4px; background: #f1f1fb; color: #56566e; transform: rotate(10deg); }
.coin-stack span:nth-child(3) { left: 118px; top: 52px; color: white; background: #f1a95a; transform: rotate(21deg); font-size: 2rem; }

.quick-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.action-card { min-height: 116px; display: flex; align-items: center; gap: 14px; padding: 18px; border: 1px solid var(--line); border-radius: 23px; background: white; box-shadow: 0 8px 24px rgba(45,47,85,.07); cursor: pointer; text-align: left; }
.action-card:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(45,47,85,.1); }
.action-icon { width: 58px; height: 58px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 19px; font-size: 1.8rem; }
.spend-action .action-icon { background: var(--coral-pale); }
.coupon-action .action-icon { background: #fff5cf; }
.history-action .action-icon { background: var(--purple-pale); }
.action-card > span:nth-child(2) { flex: 1; }
.action-card strong, .action-card small { display: block; }
.action-card strong { font-size: 1.05rem; }
.action-card small { margin-top: 6px; color: var(--muted); line-height: 1.4; }
.action-card > b { color: #a7a7b6; }

.parent-panel { padding: 24px; border: 1px solid #cbece1; border-radius: 26px; background: rgba(242, 253, 249, .9); }
.parent-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.parent-action { min-height: 76px; display: flex; align-items: center; gap: 12px; border: 0; border-radius: 18px; padding: 14px; background: white; cursor: pointer; box-shadow: 0 7px 20px rgba(28, 102, 79, .08); }
.parent-action span { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 14px; background: var(--mint-pale); color: var(--mint); font-size: 1.3rem; font-weight: 900; }
.timer-pill { padding: 8px 12px; border-radius: 999px; color: #087354; background: #d9f5eb; font-variant-numeric: tabular-nums; font-size: .82rem; font-weight: 900; }

.tabbar { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; padding: 6px; border-radius: 19px; background: #e9eaf1; }
.tabbar button { min-height: 48px; border: 0; border-radius: 14px; background: transparent; cursor: pointer; font-weight: 850; }
.tabbar button.active { color: var(--purple-dark); background: white; box-shadow: 0 5px 15px rgba(40,41,80,.09); }
.count-badge { display: inline-grid; min-width: 22px; min-height: 22px; place-items: center; margin-left: 4px; border-radius: 999px; color: white; background: var(--purple); font-size: .72rem; }
.tab-panel { min-height: 220px; padding: 6px 0; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 20px 2px 14px; }
.section-heading.compact { margin: 0 0 16px; }
.section-heading h2 { margin: 4px 0 0; font-size: clamp(1.35rem, 4vw, 1.8rem); letter-spacing: -.035em; }

.ledger-list { display: grid; gap: 10px; }
.ledger-item { min-height: 76px; display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 19px; background: white; }
.ledger-icon { width: 48px; height: 48px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 16px; font-size: 1.45rem; background: #f2f2f8; }
.ledger-item.income .ledger-icon, .ledger-item.opening .ledger-icon { background: var(--mint-pale); }
.ledger-item.expense .ledger-icon { background: var(--coral-pale); }
.ledger-item.reversal { opacity: .72; border-style: dashed; }
.ledger-copy { min-width: 0; flex: 1; }
.ledger-title { display: flex; align-items: center; gap: 7px; }
.ledger-title strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ledger-copy small { display: block; margin-top: 5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ledger-amount { text-align: right; font-size: 1.05rem; font-weight: 950; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ledger-item.income .ledger-amount, .ledger-item.opening .ledger-amount { color: var(--mint); }
.ledger-item.expense .ledger-amount { color: #dd5149; }
.mini-badge { padding: 3px 7px; border-radius: 999px; color: var(--muted); background: #eeeef4; font-size: .68rem; font-weight: 800; }
.correct-button { min-width: 48px; min-height: 44px; border: 0; border-radius: 13px; color: #a33b35; background: var(--coral-pale); cursor: pointer; font-size: .78rem; font-weight: 850; }
.empty-state { padding: 42px 20px; border: 1.5px dashed #d6d7e2; border-radius: 23px; color: var(--muted); background: rgba(255,255,255,.55); text-align: center; }
.empty-state span { display: block; margin-bottom: 10px; font-size: 2.5rem; }

.coupon-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.coupon-card { position: relative; overflow: hidden; min-height: 190px; display: grid; grid-template-columns: auto 1fr; gap: 16px; padding: 22px; border: 1px solid #ecd68f; border-radius: 26px; background: linear-gradient(145deg, #fff9e4, #fffdf6); box-shadow: 0 8px 22px rgba(111, 84, 15, .07); }
.coupon-card::after { content: ""; position: absolute; top: 0; bottom: 0; left: 72%; border-left: 2px dashed rgba(168,131,32,.2); }
.coupon-card[data-status="used"], .coupon-card[data-status="expired"], .coupon-card[data-status="cancelled"] { filter: grayscale(.55); opacity: .67; }
.coupon-emoji { width: 64px; height: 64px; display: grid; place-items: center; border-radius: 20px; background: white; font-size: 2.2rem; box-shadow: 0 7px 18px rgba(100, 79, 20, .1); }
.coupon-main { min-width: 0; padding-right: 30%; }
.coupon-main h3 { margin: 2px 0 7px; font-size: 1.1rem; }
.coupon-main p { margin: 0; color: var(--muted); font-size: .84rem; line-height: 1.5; }
.coupon-meta { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0; }
.coupon-meta span { padding: 5px 8px; border-radius: 999px; background: rgba(255,255,255,.72); font-size: .72rem; font-weight: 750; }
.coupon-actions { grid-column: 1 / -1; display: flex; gap: 8px; position: relative; z-index: 1; }
.coupon-actions button { min-height: 44px; flex: 1; border: 0; border-radius: 13px; cursor: pointer; font-weight: 850; }
.use-coupon { color: #735400; background: var(--yellow); }
.restore-coupon { color: #087354; background: var(--mint-pale); }
.cancel-coupon { color: #a33b35; background: var(--coral-pale); }
.coupon-stamp { position: absolute; right: 18px; top: 28px; z-index: 1; transform: rotate(8deg); padding: 8px 10px; border: 3px solid currentColor; border-radius: 9px; color: #a06d00; font-size: .75rem; font-weight: 950; }

.modal { position: fixed; z-index: 200; inset: 0; display: grid; place-items: end center; padding: 20px; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(23, 24, 49, .56); backdrop-filter: blur(5px); }
.modal-card { position: relative; z-index: 1; width: min(100%, 600px); max-height: calc(100vh - 40px); overflow-y: auto; padding: 30px; border-radius: 30px; background: white; box-shadow: 0 28px 70px rgba(15,16,40,.3); animation: rise .2s ease-out; }
@keyframes rise { from { transform: translateY(24px); opacity: 0; } }
.modal-card > h2 { margin: 5px 42px 24px 0; font-size: 1.65rem; letter-spacing: -.035em; }
.small-modal { max-width: 430px; text-align: center; }
.modal-close { position: absolute; top: 20px; right: 20px; width: 46px; height: 46px; border: 0; border-radius: 15px; background: #f1f2f7; cursor: pointer; font-size: 1.7rem; }
.confirm-icon { width: 88px; height: 88px; display: grid; place-items: center; margin: 8px auto 18px; border-radius: 28px; background: #fff7da; font-size: 3rem; }
.confirm-description { margin: -10px 0 25px; color: var(--muted); line-height: 1.65; }
.confirm-reason { display: block; margin: -7px 0 20px; text-align: left; }
.confirm-reason span { display: block; margin-bottom: 8px; font-size: .86rem; font-weight: 800; }
.money-display { display: flex; justify-content: center; align-items: baseline; gap: 7px; min-height: 85px; padding: 17px; border-radius: 21px; color: var(--purple-dark); background: var(--purple-pale); }
.money-display.parent-color { color: #087354; background: var(--mint-pale); }
.money-display strong { font-size: clamp(2.5rem, 11vw, 4.2rem); line-height: 1; letter-spacing: -.05em; font-variant-numeric: tabular-nums; }
.money-display span { font-size: 1.2rem; font-weight: 900; }
.quick-money { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; }
.quick-money button { min-height: 44px; border: 1px solid #dcddef; border-radius: 12px; color: var(--purple-dark); background: white; cursor: pointer; font-size: .8rem; font-weight: 850; }
.number-pad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.number-pad button { min-height: 61px; border: 0; border-radius: 17px; background: #f3f3f8; cursor: pointer; font-size: 1.3rem; font-weight: 900; }
.number-pad button:active { background: #e3e3f0; transform: scale(.98); }
.compact-pad button { min-height: 52px; }
.choice-fieldset { margin: 0; padding: 0; border: 0; }
.choice-fieldset legend { margin-bottom: 10px; font-size: .92rem; font-weight: 800; }
.picture-choices { display: grid; grid-template-columns: repeat(5, 1fr); gap: 7px; }
.picture-choices input, .emoji-choices input { position: absolute; opacity: 0; pointer-events: none; }
.picture-choices span { min-height: 72px; display: grid; place-items: center; gap: 2px; border: 1.5px solid var(--line); border-radius: 15px; background: white; cursor: pointer; font-size: 1.45rem; }
.picture-choices b { font-size: .72rem; }
.picture-choices input:checked + span { border-color: var(--purple); background: var(--purple-pale); box-shadow: 0 0 0 3px rgba(91,91,214,.1); }
.emoji-choices { display: grid; grid-template-columns: repeat(8, 1fr); gap: 6px; }
.emoji-choices span { min-height: 48px; display: grid; place-items: center; border: 1.5px solid var(--line); border-radius: 13px; cursor: pointer; font-size: 1.45rem; }
.emoji-choices input:checked + span { border-color: var(--mint); background: var(--mint-pale); }
.check-row { display: flex !important; align-items: center; gap: 10px; cursor: pointer; }
.check-row input { width: 23px; min-height: 23px; accent-color: var(--purple); }
.check-row span { margin: 0 !important; }
.nested-fields { display: grid; gap: 14px; padding: 16px; border-radius: 17px; background: #f5f5fa; }
.original-record { padding: 16px; border-radius: 17px; background: #f5f5fa; line-height: 1.6; }
.settings-section { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); }
.settings-section h3 { margin: 0 0 6px; }
.settings-section > p { margin: 0 0 14px; color: var(--muted); line-height: 1.6; }
.danger-zone { padding: 18px; border: 1px solid #ffd7d3; border-radius: 18px; background: #fff8f7; }

@media (min-width: 760px) {
    .modal { place-items: center; }
}

@media (max-width: 800px) {
    .quick-actions { grid-template-columns: 1fr; }
    .action-card { min-height: 92px; }
    .coin-stack { width: 145px; transform: scale(.8); transform-origin: right center; }
    .parent-actions { grid-template-columns: 1fr; }
    .coupon-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
    .wide-card, .login-card { padding: 25px 19px; border-radius: 27px; }
    .brand-row { margin-bottom: 28px; }
    .brand-row h1 { font-size: 1.45rem; }
    .role-grid { grid-template-columns: 1fr; }
    .role-card { min-height: 125px; display: grid; grid-template-columns: 68px 1fr; grid-template-rows: 1fr 1fr; column-gap: 12px; text-align: left; align-items: end; padding: 18px; }
    .role-emoji { grid-row: 1 / 3; margin: 0; align-self: center; text-align: center; font-size: 3rem; }
    .role-card > span:last-child { align-self: start; }
    .two-columns { grid-template-columns: 1fr; }
    .topbar { min-height: 68px; padding: 10px 14px; }
    .brand-link small { display: none; }
    .role-badge { display: none; }
    .install-button { display: none !important; }
    .icon-button { padding: 8px 11px; }
    .page-grid { width: min(100% - 20px, 1100px); margin-top: 16px; gap: 15px; }
    .balance-card { min-height: 235px; padding: 32px 24px; border-radius: 29px; }
    .balance-line strong { font-size: clamp(3.05rem, 16vw, 4.8rem); }
    .coin-stack { position: absolute; right: -36px; bottom: -22px; opacity: .46; transform: scale(.62); }
    .quick-actions { gap: 9px; }
    .action-card { min-height: 86px; padding: 14px; border-radius: 20px; }
    .action-icon { width: 51px; height: 51px; border-radius: 17px; }
    .action-card small { font-size: .78rem; }
    .parent-panel { padding: 18px; border-radius: 22px; }
    .tabbar button { font-size: .82rem; }
    .ledger-item { padding: 11px; gap: 10px; }
    .ledger-icon { width: 44px; height: 44px; border-radius: 14px; }
    .ledger-amount { font-size: .92rem; }
    .correct-button { min-width: 44px; padding: 4px; }
    .coupon-card { padding: 18px; }
    .modal { padding: 0; }
    .modal-card { width: 100%; max-height: calc(100vh - 20px); padding: 26px 18px calc(22px + env(safe-area-inset-bottom)); border-radius: 28px 28px 0 0; }
    .picture-choices { grid-template-columns: repeat(5, minmax(0, 1fr)); }
    .picture-choices span { min-height: 66px; padding: 5px 1px; }
    .emoji-choices { grid-template-columns: repeat(4, 1fr); }
    .button-row { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

@media (hover: none) {
    .role-card:hover, .action-card:hover, .primary-button:hover, .parent-primary:hover, .secondary-button:hover, .danger-button:hover, .icon-button:hover { transform: none; }
}
