:root{--purple: #8064f2;--purple-dark: #6f52e8;--purple-soft: #eee9ff;--ink: #1f2430;--muted: #9197a5;--line: #eceef3;--bg: #f6f7f9;--green: #17a87a;--red: #e35b5b;--radius: 18px;--shell-center: 50vw;--shell-width: 480px;--shell-half: 240px;font-family:-apple-system,BlinkMacSystemFont,PingFang SC,Hiragino Sans GB,Microsoft YaHei,sans-serif;color:var(--ink);background:#e9ebf1;-webkit-font-smoothing:antialiased}*{box-sizing:border-box}html,body,#root{margin:0;min-height:100%}body{font-size:14px;line-height:1.45;overscroll-behavior-y:none}button,input,select,textarea{font:inherit;color:inherit}button{border:0;background:none;cursor:pointer;padding:0}input,select,textarea{border:0;outline:0;background:transparent}.green{color:var(--green)!important}.red{color:var(--red)!important}.purple{color:var(--purple)!important}.muted{color:var(--muted)!important}.danger-text{color:var(--red)!important}.flip{transform:rotate(180deg)}.app-frame{display:flex;justify-content:center;align-items:flex-start;gap:24px;min-height:100vh}.app-shell{position:relative;width:min(100%,var(--shell-width));min-height:100vh;background:var(--bg);overflow-x:hidden;box-shadow:0 0 50px #241e4214}.app-content,.page{min-height:100vh}.tablet-aside{display:none}@media(min-width:1280px){.app-frame{--shell-width: 720px;--shell-half: 360px}.app-frame[data-aside=on]{--shell-center: calc(50vw - 162px) }.tablet-aside{width:300px;padding:110px 8px 0}}@media(min-width:1024px)and (max-width:1279px){.app-frame{--shell-width: 620px;--shell-half: 310px}.app-frame[data-aside=on]{--shell-center: calc(50vw - 142px) }.tablet-aside{width:260px;padding:76px 8px 0}}@media(min-width:1024px){.app-shell{width:var(--shell-width)}.tablet-aside{display:block;position:sticky;top:0;align-self:flex-start;height:100vh;overflow-y:auto;color:#4b4f5c}.aside-brand{display:flex;align-items:center;gap:12px;font-size:26px}.aside-brand img{width:38px;height:38px;border-radius:10px}.tablet-aside>p{color:var(--muted);font-size:14px;margin:14px 0 36px}.aside-stats{display:grid;gap:14px}.aside-stats>div{display:flex;align-items:center;gap:12px;padding:16px;border-radius:16px;background:#fff;box-shadow:0 8px 24px #241e420d}.aside-stats svg{color:var(--purple)}.aside-hint{margin-top:32px;padding:18px;border-radius:16px;background:linear-gradient(135deg,#efe8ff,#fdeaf1);color:#6a6380;font-size:13px;line-height:1.8}}@media(min-width:760px)and (max-width:1023px){.app-frame{--shell-width: 680px;--shell-half: 340px;--shell-center: 50vw}.app-shell{width:min(100%,680px)}}@media(min-width:481px)and (max-width:759px){.app-frame{--shell-width: 560px;--shell-half: 280px;--shell-center: 50vw}.app-shell{width:min(100%,560px)}}@media(max-width:480px){.app-frame{--shell-width: 100vw;--shell-half: 50vw;--shell-center: 50vw}.app-shell{width:100%}.chart-body{flex-direction:column;align-items:stretch}.donut{margin:0 auto}.chart-legend{width:100%}}.icon-btn{width:36px;height:36px;display:inline-flex;align-items:center;justify-content:center;border-radius:50%;color:#454b59;flex-shrink:0}.icon-btn.small{width:28px;height:28px}.icon-btn:active{background:#8064f21f}.text-btn{display:inline-flex;align-items:center;gap:4px;color:var(--purple);font-size:13px;padding:6px 8px;border-radius:10px}.text-btn.strong{font-weight:700;font-size:15px}.primary-btn,.secondary-btn,.danger-btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:44px;padding:0 18px;border-radius:14px;font-weight:600;font-size:14px}.primary-btn{background:var(--purple);color:#fff}.primary-btn:disabled,.secondary-btn:disabled,.danger-btn:disabled{opacity:.45;cursor:not-allowed}.secondary-btn{background:var(--purple-soft);color:var(--purple-dark)}.danger-btn{background:#ffecec;color:var(--red)}.primary-btn.full,.secondary-btn.full,.danger-btn.full{width:100%}.secondary-btn.small{min-height:34px;padding:0 12px;font-size:12px}.avatar{display:inline-flex;align-items:center;justify-content:center;border-radius:50%;color:#fff;flex-shrink:0;line-height:1;box-shadow:0 0 0 2px #fff}.avatar-stack{display:inline-flex;align-items:center}.avatar-stack .avatar:not(:first-child){margin-left:-9px}.avatar-stack.tight .avatar:not(:first-child){margin-left:-7px}.avatar-more{background:#dfe2e9!important;color:#6b7280;font-weight:700}.self-tag,.mini-tag{display:inline-block;margin-left:6px;padding:1px 6px;border-radius:6px;background:var(--purple-soft);color:var(--purple-dark);font-size:10px;font-weight:600}.mini-tag{background:#e7f6ee;color:#2a9c72;margin-left:auto;margin-right:10px}.role-badge{padding:3px 9px;border-radius:8px;background:#f1f2f6;color:#6d7382;font-size:11px;white-space:nowrap}.section-title{display:flex;align-items:center;justify-content:space-between;margin:22px 18px 10px;font-weight:700;font-size:14px}.section-title.with-top{margin-top:30px}.field-card{margin:0 16px;background:#fff;border-radius:var(--radius);box-shadow:0 6px 20px #2a28460b;overflow:hidden}.field-row{width:100%;min-height:56px;display:flex;align-items:center;gap:10px;padding:10px 16px;text-align:left;border-bottom:1px solid #f4f5f8;background:#fff}.field-row:last-child{border-bottom:0}.field-row.static{color:var(--ink)}.field-icon{color:#9aa0ae;display:inline-flex}.field-label{color:#7e8492;flex-shrink:0}.field-value{margin-left:auto;color:#3d4351;text-align:right;max-width:60%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.field-arrow{color:#b9bdc7;font-size:20px;margin-left:2px}.field-row.danger .field-label{color:var(--red)}.value-with-avatar{display:inline-flex;align-items:center;gap:6px}.field-note{color:var(--muted);font-size:12px;line-height:1.7;margin:4px 16px 12px}.hint-box{margin:12px 16px;padding:14px 16px;border-radius:14px;background:#efedf9;color:#716b8a;font-size:12px;line-height:1.65}.empty-state{text-align:center;padding:48px 20px;color:var(--muted)}.empty-icon{font-size:40px;margin-bottom:10px}.empty-title{font-weight:600;color:#6b7180}.empty-hint{font-size:12px;margin-top:6px}.toggle{width:44px;height:26px;border-radius:20px;background:#d8dbe2;position:relative;margin-left:auto;transition:background .2s}.toggle span{position:absolute;top:3px;left:3px;width:20px;height:20px;border-radius:50%;background:#fff;box-shadow:0 1px 4px #00000029;transition:transform .2s}.toggle.on{background:var(--purple)}.toggle.on span{transform:translate(18px)}.form-stack{display:grid;gap:14px;margin-bottom:16px}.form-field{display:grid;gap:8px;margin:0 16px 14px;font-size:13px;color:#6d7382}.form-stack .form-field{margin:0}.form-field input,.form-field select{width:100%;min-height:44px;padding:0 14px;border-radius:12px;background:#f5f6f9;font-size:14px;color:var(--ink)}.form-field input:disabled{color:#a7acb8;background:#edeef2}.form-field select{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-image:linear-gradient(45deg,transparent 50%,#999 50%),linear-gradient(135deg,#999 50%,transparent 50%);background-position:calc(100% - 18px) 20px,calc(100% - 13px) 20px;background-size:5px 5px;background-repeat:no-repeat}.segmented{display:flex;gap:4px;padding:4px;border-radius:14px;background:#eceef3;margin:4px 16px 12px}.segmented button{flex:1;min-height:34px;border-radius:10px;color:#848a98;font-size:13px}.segmented button.active{background:#fff;color:var(--purple);font-weight:700;box-shadow:0 2px 8px #0000000f}.segmented.compact{margin:4px 16px 16px}.icon-choice-grid{display:grid;grid-template-columns:repeat(6,1fr);gap:8px}.icon-choice-grid button{height:42px;border-radius:12px;background:#f5f6f9;font-size:21px;border:2px solid transparent}.icon-choice-grid button.active{border-color:var(--purple);background:var(--purple-soft)}.color-choice-row{display:flex;gap:10px}.color-choice-row button{width:30px;height:30px;border-radius:50%;border:3px solid #fff;box-shadow:0 0 0 1px #e5e7ed}.color-choice-row button.active{box-shadow:0 0 0 2px var(--purple)}.people-pick{display:flex;flex-wrap:wrap;gap:8px}.people-pick button{display:flex;align-items:center;gap:6px;padding:6px 10px 6px 6px;border-radius:12px;background:#f5f6f9;font-size:13px}.people-pick button.active{background:var(--purple-soft);color:var(--purple-dark)}.people-pick svg{color:var(--purple)}.pick-list{max-height:280px;overflow-y:auto}.pick-row{width:100%;min-height:60px;display:flex;align-items:center;gap:12px;padding:8px 4px;border-bottom:1px solid #f3f4f7;text-align:left}.pick-row>span:nth-child(2),.pick-row>div{flex:1;display:grid}.pick-row small{color:var(--muted)}.pick-row.active{background:#faf9ff}.ledger-big-icon{width:48px;height:48px;display:inline-flex;align-items:center;justify-content:center;border-radius:14px;font-size:25px;flex-shrink:0}.ledger-big-icon.small{width:34px;height:34px;font-size:18px;border-radius:10px}.sheet-layer{position:fixed;top:0;right:0;bottom:0;left:0;z-index:80;background:#19162661;display:flex;align-items:flex-end;justify-content:center}.sheet{position:absolute;left:var(--shell-center);bottom:0;transform:translate(-50%);width:min(100vw,var(--shell-width));max-height:88vh;display:flex;flex-direction:column;padding:8px 0 max(18px,env(safe-area-inset-bottom));border-radius:24px 24px 0 0;background:#fff;box-shadow:0 -12px 40px #0000001f;animation:sheet-up .2s ease-out}@keyframes sheet-up{0%{transform:translate(-50%,30px);opacity:.6}to{transform:translate(-50%);opacity:1}}.sheet-handle{width:38px;height:4px;border-radius:4px;background:#e2e4ea;margin:4px auto 10px}.sheet-title-row{display:flex;align-items:center;justify-content:space-between;padding:0 18px 12px;font-size:16px}.sheet-body{overflow-y:auto;padding-bottom:6px}.sheet-body>.primary-btn.full{margin:6px 16px 0;width:calc(100% - 32px)}.sheet-actions{display:flex;gap:10px;padding:12px 16px 0}.sheet-actions>button{flex:1}.toast{position:fixed;z-index:100;left:var(--shell-center);bottom:110px;transform:translate(-50%);padding:11px 20px;border-radius:22px;background:#201e2de0;color:#fff;font-size:13px;white-space:nowrap;animation:fade-in .18s ease-out}@keyframes fade-in{0%{opacity:0;transform:translate(-50%,8px)}to{opacity:1;transform:translate(-50%)}}.bottom-nav{position:fixed;z-index:50;bottom:max(12px,env(safe-area-inset-bottom));left:var(--shell-center);transform:translate(-50%);width:min(calc(var(--shell-width) - 32px),calc(100vw - 28px));height:66px;display:flex;align-items:center;justify-content:space-around;padding:0 10px;border-radius:26px;background:#fffffff0;box-shadow:0 8px 30px #28234621;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px)}.bottom-nav button{flex:1;height:48px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;border-radius:18px;color:#9ba0ad;font-size:10px}.bottom-nav button.active{color:var(--purple);background:var(--purple-soft);font-weight:700}.fab{position:fixed;z-index:45;right:calc(100vw - var(--shell-center) - var(--shell-half) + 20px);bottom:calc(92px + env(safe-area-inset-bottom));width:56px;height:56px;border-radius:50%;background:linear-gradient(145deg,#9b82fa,#7658ef);color:#fff;display:flex;align-items:center;justify-content:center;box-shadow:0 10px 24px #7658ef66}@media(max-width:480px){.fab{right:20px}}.home-top{padding:max(14px,env(safe-area-inset-top)) 0 8px;background:linear-gradient(180deg,#efe6ff 0%,#f7eaf4 55%,var(--bg) 100%)}.topbar,.simple-topbar,.add-topbar,.detail-topbar{height:52px;display:flex;align-items:center;justify-content:space-between;padding:0 12px;gap:6px}.simple-topbar strong,.detail-topbar strong{font-size:16px}.detail-topbar{background:#fff}.title-switch{flex:1;display:inline-flex;align-items:center;justify-content:center;gap:6px;font-weight:700;font-size:16px}.topbar-actions{display:flex;align-items:center;gap:2px}.member-strip{display:flex;align-items:center;gap:8px;padding:4px 18px 14px}.member-chip,.invite-chip,.ai-chip{display:inline-flex;align-items:center;gap:6px;min-height:30px;padding:0 10px;border-radius:16px;background:#ffffffb8;color:#6c7282;font-size:11px;white-space:nowrap}.invite-chip{color:var(--purple)}.ai-chip{margin-left:auto;color:#8a72e8}.tab-strip{display:flex;gap:8px;padding:4px 16px 10px;overflow-x:auto;scrollbar-width:none}.tab-strip::-webkit-scrollbar{display:none}.tab-pill{display:inline-flex;align-items:center;gap:5px;min-height:34px;padding:0 14px;border-radius:18px;background:#ffffffd9;color:#696f7d;font-size:12px;white-space:nowrap;box-shadow:0 2px 8px #3c32640a}.tab-pill.active{background:var(--purple);color:#fff;box-shadow:0 4px 12px #8064f24d}.home-content{padding:8px 0 120px}.inner-content{padding-top:18px}.filter-row{position:relative;display:flex;align-items:center;justify-content:space-between;padding:6px 18px 12px}.filter-select{display:inline-flex;align-items:center;gap:4px;font-size:13px;font-weight:600}.calendar-wrap{position:relative;color:#73798a;display:inline-flex}.calendar-wrap input{position:absolute;top:0;right:0;bottom:0;left:0;opacity:0;cursor:pointer;width:100%}.filter-menu{position:absolute;z-index:20;top:36px;left:16px;width:130px;padding:6px;border-radius:14px;background:#fff;box-shadow:0 10px 30px #1e193c24}.filter-menu button{display:block;width:100%;text-align:left;padding:9px 10px;border-radius:9px;font-size:13px}.filter-menu button.active{background:var(--purple-soft);color:var(--purple);font-weight:700}.notice-card{position:relative;display:flex;gap:12px;margin:0 16px 14px;padding:16px;border-radius:var(--radius);background:#fff;box-shadow:0 6px 20px #2a28460b}.notice-robot{font-size:30px}.notice-main{flex:1}.notice-main strong{font-size:14px}.notice-main p{margin:4px 0 6px;color:var(--muted);font-size:11px}.notice-main button{color:var(--purple);font-size:11px;font-weight:600}.notice-close{color:#b5bac5;align-self:flex-start}.summary-wrap{margin:0 16px 18px}.summary-track{display:flex;transition:transform .3s ease}.summary-card{flex:0 0 100%;min-height:168px;padding:20px;border-radius:20px;background:#fff;box-shadow:0 6px 24px #2a28460f}.summary-heading{display:flex;align-items:center;justify-content:space-between;color:#8a909e;font-size:12px}.edit-mini{color:#a3a8b4;padding:4px;background:#f3f4f7;border-radius:50%;display:inline-flex}.summary-amount{margin:10px 0 22px;font-size:30px;font-weight:700;letter-spacing:-.5px}.summary-amount small{font-size:12px;color:var(--muted);font-weight:500}.summary-bottom{display:flex;justify-content:space-between;font-size:12px;color:var(--muted)}.summary-bottom div{display:grid;gap:4px}.summary-bottom .right{text-align:right}.summary-bottom strong{font-size:14px;color:var(--ink)}.summary-dots{display:flex;justify-content:center;gap:8px;margin-top:12px}.summary-dots button{width:24px;height:7px;border-radius:4px;background:#d4d6dd}.summary-dots button.active{width:40px;background:var(--purple)}.bill-group{margin-bottom:16px}.bill-date-row{display:flex;justify-content:space-between;padding:4px 20px 8px;color:#9aa0ad;font-size:11px}.bill-card{margin:0 16px;border-radius:var(--radius);background:#fff;overflow:hidden;box-shadow:0 6px 20px #2a28460a}.bill-row{width:100%;display:flex;align-items:center;gap:12px;min-height:74px;padding:10px 16px;text-align:left;border-bottom:1px solid #f5f6f9}.bill-row:last-child{border-bottom:0}.bill-cat-icon{width:44px;height:44px;border-radius:13px;display:inline-flex;align-items:center;justify-content:center;font-size:21px;flex-shrink:0}.bill-meta{flex:1;min-width:0;display:grid;gap:4px}.bill-meta strong{font-size:14px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.bill-meta small{color:#a0a5b1;font-size:11px}.bill-amount{font-weight:700;font-size:15px;color:var(--ink);white-space:nowrap}.load-more-area{padding:6px 16px 0;text-align:center}.load-more-info{color:#a1a6b2;font-size:11px;margin-bottom:8px}.load-more-btn{min-height:40px;width:100%;border-radius:14px;background:#fff;color:var(--purple);font-size:12px;font-weight:600;box-shadow:0 4px 14px #2a28460a}.load-more-end{color:#b6bac4;font-size:11px;padding:6px 0}.search-field{display:flex;align-items:center;gap:10px;margin:4px 16px 0;padding:0 14px;height:46px;border-radius:14px;background:#f4f5f8;color:var(--muted)}.search-field input{flex:1}.settle-hero{margin:0 16px 16px;padding:22px;border-radius:20px;background:linear-gradient(135deg,#eee8ff,#fdeaf1);text-align:center}.settle-icon{font-size:34px}.settle-hero strong{display:block;margin-top:6px}.settle-hero p{margin:4px 0 0;color:#8b849c;font-size:12px}.settle-row{display:flex;align-items:center;gap:10px;min-height:66px;padding:8px 16px;border-bottom:1px solid #f4f5f8}.settle-row:last-child{border-bottom:0}.settle-row>div{flex:1;display:grid}.settle-row small{color:var(--muted);font-size:11px}.settle-suggestion{margin:16px;padding:18px;border-radius:18px;background:#fff;box-shadow:0 6px 20px #2a28460d}.settle-suggestion p{color:#717786}.settle-suggestion b{color:var(--purple)}.settle-suggestion .secondary-btn{width:100%;margin-top:6px}.stat-cards{display:flex;gap:12px;margin:0 16px 14px}.stat-card{flex:1;width:0;padding:16px;border:2px solid transparent;border-radius:16px;background:#fff;box-shadow:0 6px 20px #2a28460a;display:grid;gap:6px;text-align:left;color:inherit;cursor:pointer}.stat-card.income.active{border-color:#2fa36a}.stat-card.expense.active{border-color:#e35d6a}.stat-card span{color:var(--muted);font-size:11px}.stat-card strong{font-size:17px}.chart-card{margin:0 16px 14px;padding:18px;border-radius:18px;background:#fff;box-shadow:0 6px 20px #2a28460a}.chart-title{font-weight:700;margin-bottom:16px}.chart-body{display:flex;align-items:center;gap:16px}.donut{width:130px;height:130px;border-radius:50%;flex-shrink:0;display:flex;align-items:center;justify-content:center}.donut-hole{width:84px;height:84px;border-radius:50%;background:#fff;display:grid;align-content:center;justify-items:center}.donut-hole small{color:var(--muted);font-size:10px}.donut-hole strong{font-size:13px}.chart-legend{flex:1;display:grid;gap:6px;min-width:0}.legend-row{display:flex;align-items:center;gap:6px;width:100%;padding:2px 0;font-size:11px;background:none;border:0;color:inherit;text-align:left;cursor:pointer}.legend-row.active{color:var(--purple);font-weight:700}.legend-row b{margin-left:auto}.legend-dot{width:8px;height:8px;border-radius:50%;flex-shrink:0}.bar-row{display:flex;align-items:center;gap:10px;width:100%;min-height:46px;padding:6px 16px;font-size:12px;background:none;border:0;color:inherit;text-align:left;cursor:pointer}.bar-row.active{background:#f5f3ff;border-radius:10px}.bar-label{min-width:54px;max-width:76px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.bar-track{flex:1;height:8px;border-radius:5px;background:#f0f1f5;overflow:hidden}.bar-fill{height:100%;border-radius:5px}.bar-row b{min-width:72px;text-align:right;font-size:11px}.category-bill-list{padding:0;overflow:hidden}.category-bill-head{display:flex;align-items:center;justify-content:space-between;padding:12px 16px;border-bottom:1px solid var(--line)}.category-bill-head button{padding:4px 10px;border:0;border-radius:8px;background:var(--purple-soft);color:var(--purple);font-size:11px;font-weight:700}.budget-card{margin:0 16px 14px;padding:20px;border-radius:20px;background:linear-gradient(135deg,#8165f3,#a68ff8);color:#fff;box-shadow:0 10px 26px #8064f240}.budget-head{display:flex;justify-content:space-between;align-items:flex-start}.budget-head div{display:grid;gap:8px}.budget-head small{opacity:.78}.budget-head strong{font-size:22px}.budget-head strong span{font-size:12px;opacity:.75;font-weight:500}.budget-head .edit-mini{background:#ffffff3d;color:#fff}.budget-track{height:10px;border-radius:6px;background:#ffffff47;overflow:hidden;margin:22px 0 10px}.budget-track div{height:100%;background:#fff;border-radius:6px}.budget-foot{display:flex;justify-content:space-between;font-size:11px;opacity:.9}.item-row{width:100%;display:flex;align-items:center;gap:12px;padding:12px 16px;border-bottom:1px solid #f4f5f8;text-align:left}.item-row:last-child{border-bottom:0}.item-row span:nth-child(2){flex:1;display:grid;gap:3px}.item-row small{color:var(--muted);font-size:11px}.item-icon{font-size:24px}.tag-cloud{display:flex;flex-wrap:wrap;gap:10px;margin:0 16px}.tag-cloud button{padding:9px 14px;border-radius:16px;background:#fff;color:#858b99;box-shadow:0 4px 14px #2a28460a;font-size:12px}.tag-cloud button.has-data{background:var(--purple-soft);color:var(--purple);font-weight:600}.tag-cloud small{margin-left:4px}.ledger-switch-list{display:grid;gap:8px;padding:0 16px 12px}.ledger-switch-item{display:flex;align-items:center;gap:12px;padding:10px;border-radius:16px;background:#f7f8fa;text-align:left;cursor:pointer}.ledger-switch-item.active{background:var(--purple-soft)}.ledger-switch-meta{flex:1;display:grid;gap:3px;min-width:0}.ledger-switch-meta small{color:var(--muted);font-size:11px}.ledger-default-toggle{display:inline-flex;align-items:center;gap:3px;flex-shrink:0;padding:5px 7px;border-radius:12px;background:#fff;color:#a0a4b2;font-size:11px;line-height:1}.ledger-default-toggle.on{background:var(--purple-soft);color:var(--purple);font-weight:600}.ledger-mini-avatars{display:flex}.ledger-mini-avatars .avatar:not(:first-child){margin-left:-8px}.member-list{padding:0 16px}.member-row{display:flex;align-items:center;gap:10px;min-height:66px;border-bottom:1px solid #f3f4f7}.member-row:last-child{border-bottom:0}.member-info{flex:1;min-width:0;display:grid;gap:3px}.member-info small{color:var(--muted);font-size:10px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.role-select{border-radius:8px;background:#f4f5f8;padding:5px 6px;font-size:11px;max-width:86px}.sheet-body>.sheet-actions{padding-bottom:8px}.permission-card{margin:12px 16px;padding:14px;border-radius:16px;background:#f7f8fa}.permission-head{display:grid;gap:2px;margin-bottom:10px}.permission-head small{color:var(--muted);font-size:11px}.permission-chips{display:flex;flex-wrap:wrap;gap:7px}.permission-chip{display:inline-flex;align-items:center;gap:3px;padding:6px 10px;border-radius:10px;background:#fff;color:#9298a5;font-size:11px;border:1px solid #eceef3}.permission-chip.on{background:var(--purple-soft);color:var(--purple);border-color:#ddd4ff}.permission-chip:disabled{opacity:.85;cursor:default}.ledger-profile{display:flex;align-items:center;gap:12px;margin:4px 16px 16px}.ledger-profile div{display:grid;gap:3px}.ledger-profile small{color:var(--muted)}.page-body{padding:0 0 120px}.ledger-cards{display:grid;gap:12px;margin:0 16px}.ledger-card{position:relative;border-radius:18px;background:#fff;overflow:hidden;box-shadow:0 6px 20px #2a28460b}.ledger-card-settings{position:absolute;top:12px;right:12px;z-index:2;color:var(--purple);background:#f3efff}.ledger-card.selected{box-shadow:0 0 0 2px var(--purple)}.ledger-card-main{width:100%;display:flex;align-items:center;gap:12px;padding:16px;text-align:left}.ledger-card-info{flex:1;min-width:0;display:grid;gap:4px}.ledger-card-info>small{color:var(--muted);font-size:11px}.ledger-card-stats{font-size:11px;color:#9a9fac}.ledger-card-foot{display:flex;align-items:center;gap:8px;padding:0 14px 12px}.ledger-card-foot .text-btn{font-size:11px;padding:4px 6px}.ledger-card-foot .role-badge{margin-right:auto}.add-ledger-card{min-height:62px;border:1.5px dashed #cfc7ee;border-radius:16px;color:var(--purple);display:flex;align-items:center;justify-content:center;gap:8px;background:#faf9ff}.user-row{display:flex;align-items:center;gap:10px;padding:12px 14px;border-bottom:1px solid #f4f5f8}.user-row:last-child{border-bottom:0}.user-meta{flex:1;min-width:0;display:grid;gap:3px}.user-meta small{color:var(--muted);font-size:11px}.user-role-tags{display:flex;flex-wrap:wrap;gap:4px;margin-top:3px}.user-role-tags span{padding:2px 6px;border-radius:6px;background:#f3f4f8;color:#8b90a0;font-size:9px}.add-page{display:flex;flex-direction:column;height:100vh;overflow:hidden;background:#f7f8fa}.add-topbar{flex-shrink:0;border-bottom:1px solid #eff0f4;background:#fff}.add-body{flex:1;overflow-y:auto;padding:0 0 8px}.category-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:10px 4px;padding:0 14px 12px}.category-expand{display:block;margin:0 auto 12px;padding:5px 18px;border-radius:14px;background:#fffc;color:var(--purple);font-size:11px;font-weight:700}.category-cell{display:grid;justify-items:center;gap:5px;font-size:11px;color:#6e7483}.category-bubble{width:46px;height:46px;border-radius:15px;display:inline-flex;align-items:center;justify-content:center;font-size:23px;border:2px solid transparent}.category-cell.active .category-bubble{border-color:var(--purple);background:var(--purple-soft)!important}.category-cell.active{color:var(--purple);font-weight:700}.sheet-grid{max-height:50vh;overflow-y:auto;padding-bottom:10px}.quick-tags{display:flex;gap:7px;overflow-x:auto;padding:4px 16px 12px;scrollbar-width:none}.quick-tags::-webkit-scrollbar{display:none}.quick-tags button{padding:5px 12px;border-radius:14px;background:#eceef3;color:#7c8290;font-size:11px;white-space:nowrap}.people-row{width:calc(100% - 32px);margin:0 16px 12px;display:flex;justify-content:space-between;gap:8px;padding:11px 14px;border-radius:14px;background:#fff;color:#868c99;font-size:11px;box-shadow:0 4px 14px #2a284608}.people-row span{display:inline-flex;align-items:center;gap:4px}.people-row b{color:var(--ink)}.option-row{display:flex;gap:6px;overflow-x:auto;padding:0 16px 12px;scrollbar-width:none}.option-row::-webkit-scrollbar{display:none}.option-row button{display:inline-flex;align-items:center;gap:5px;padding:7px 11px;border-radius:11px;background:#fff;color:#798091;font-size:11px;white-space:nowrap}.option-row button.active{background:var(--purple-soft);color:var(--purple)}.amount-row{display:flex;align-items:center;gap:12px;margin:0 16px;padding:6px 0 10px;border-bottom:1px solid #e9ebf0}.currency{font-size:14px;font-weight:600}.amount-display{flex:1;font-size:30px;font-weight:700;letter-spacing:-.5px;overflow:hidden;text-overflow:ellipsis}.amount-display.placeholder{color:#b8bcc5}.date-pill{position:relative;display:inline-flex;align-items:center;gap:5px;padding:6px 10px;border-radius:12px;background:#eeeff4;color:#7b8190;font-size:11px;white-space:nowrap}.date-pill input{position:absolute;top:0;right:0;bottom:0;left:0;opacity:0;cursor:pointer;width:100%}.note-field{position:relative;margin:10px 16px 0}.note-field input{width:100%;height:40px;color:#616877}.note-field input::placeholder{color:#a8adba}.note-corner{position:absolute;right:0;top:10px;color:#b0b5c0}.keypad{flex-shrink:0;display:grid;grid-template-columns:repeat(4,1fr);gap:8px;padding:10px 14px max(18px,env(safe-area-inset-bottom));background:#eff1f5}.key{min-height:50px;border-radius:12px;background:#fff;font-size:19px;color:#343a47;box-shadow:0 1px 2px #1e1e320a}.key.op{color:var(--purple);font-size:17px}.key.ac{color:#9a9fac;font-size:15px;font-weight:600}.key.done{grid-column:span 2;background:linear-gradient(135deg,#9b82fa,#7658ef);color:#fff;font-size:15px;font-weight:700;box-shadow:0 4px 12px #7658ef4d}.key-placeholder{min-height:50px}.detail-page{padding-bottom:120px;background:#f6f7f9}.promo-banner{height:112px;margin:12px 16px 16px;padding:18px 20px;border-radius:16px;background:linear-gradient(120deg,#5bc7e8,#8fd9c8 60%,#c9e9a8);display:flex;align-items:center;justify-content:space-between;color:#fff;overflow:hidden}.promo-banner div{display:grid;gap:6px}.promo-banner small{opacity:.85;font-size:11px}.promo-banner strong{font-size:18px;text-shadow:0 2px 6px rgba(0,0,0,.08)}.promo-banner>span{font-size:52px;transform:rotate(-10deg)}.detail-amount-card{margin:0 16px 14px;padding:22px;border-radius:20px;background:#fff;text-align:center;box-shadow:0 6px 20px #2a28460d}.type-pill{display:inline-block;padding:4px 14px;border-radius:10px;background:#f1f2f6;color:#7c8290;font-size:11px}.detail-amount{font-size:34px;font-weight:700;margin:10px 0 6px}.detail-amount-card>small{color:var(--muted);font-size:11px}.detail-fields{margin-bottom:14px}.stat-toggle-card .field-row{min-height:52px}.record-hint{margin:18px 20px;color:#a2a7b3;font-size:11px;display:flex;align-items:center;gap:6px;flex-wrap:wrap}.detail-actions{position:fixed;z-index:40;bottom:max(16px,env(safe-area-inset-bottom));left:var(--shell-center);transform:translate(-50%);width:min(calc(var(--shell-width) - 32px),calc(100vw - 28px));display:flex;gap:8px;padding:10px;border-radius:22px;background:#fffffff5;box-shadow:0 8px 30px #28234621;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px)}.detail-actions button{flex:1;display:grid;justify-items:center;gap:3px;padding:8px 0;border-radius:14px;color:#737989;font-size:10px}.detail-actions button:active{background:var(--purple-soft)}.dots{font-size:22px;line-height:1}.profile-card{display:flex;align-items:center;gap:14px;margin:16px;padding:20px;border-radius:20px;background:linear-gradient(135deg,#eee8ff,#fdeaf1)}.profile-card>div{flex:1;display:grid;gap:4px}.profile-card strong{font-size:18px}.profile-card small{color:#8c849c;font-size:11px}.identity-banner{width:calc(100% - 32px);margin:0 16px;display:flex;align-items:center;gap:12px;padding:14px;border-radius:16px;background:#fff;box-shadow:0 6px 20px #2a28460b;text-align:left}.identity-icon{width:38px;height:38px;border-radius:12px;background:var(--purple-soft);color:var(--purple);display:inline-flex;align-items:center;justify-content:center}.identity-banner>span:nth-child(2){flex:1;display:grid;gap:3px}.identity-banner small{color:var(--muted);font-size:11px}.version-note{text-align:center;color:#b3b7c1;font-size:11px;margin-top:26px}.permission-explain{margin:4px 16px}.permission-explain p{padding:9px 0;border-bottom:1px solid #f3f4f7;font-size:12px;color:#6d7382}.permission-explain b{color:var(--purple)}.asset-card{margin:16px;padding:22px;border-radius:22px;background:linear-gradient(135deg,#6f57e8,#9b83f6);color:#fff;box-shadow:0 12px 28px #6f57e842}.asset-card>small{opacity:.8}.asset-amount{font-size:32px;font-weight:700;margin:10px 0 22px}.asset-foot{display:flex;justify-content:space-between;align-items:center;font-size:12px;opacity:.9}.asset-foot button{display:inline-flex;align-items:center;gap:4px;padding:6px 12px;border-radius:12px;background:#fff3}.account-icon{width:36px;height:36px;border-radius:11px;display:inline-flex;align-items:center;justify-content:center;font-size:18px}.field-label small{display:block;color:var(--muted);font-size:10px}.ai-page{background:linear-gradient(180deg,#f1ebff,#f8f8fb 40%)}.ai-badge{display:inline-flex;align-items:center;gap:4px;padding:4px 10px;border-radius:12px;background:var(--purple-soft);color:var(--purple);font-size:11px}.ai-body{padding-top:20px}.ai-hero{text-align:center;padding:24px 16px}.ai-orb{width:74px;height:74px;margin:0 auto 14px;border-radius:26px;display:flex;align-items:center;justify-content:center;color:#fff;background:linear-gradient(135deg,#9b82fa,#6f57e8);box-shadow:0 12px 28px #6f57e847}.ai-hero strong{font-size:17px}.ai-hero p{color:var(--muted);font-size:12px}.prompt-chips{display:flex;flex-wrap:wrap;gap:8px;padding:0 16px 16px;justify-content:center}.prompt-chips button{padding:8px 12px;border-radius:14px;background:#fff;color:#6f7584;font-size:11px;box-shadow:0 4px 14px #2a28460d}.ai-input-wrap{display:flex;gap:8px;margin:0 16px;padding:6px 6px 6px 14px;border-radius:16px;background:#fff;box-shadow:0 6px 20px #2a28460f}.ai-input-wrap input{flex:1;min-width:0}.ai-input-wrap button{display:inline-flex;align-items:center;gap:5px;padding:0 14px;border-radius:12px;background:var(--purple);color:#fff;font-size:12px}.ai-preview{margin:16px;padding:18px;border-radius:18px;background:#fff;box-shadow:0 6px 20px #2a28460d}.ai-preview-head{display:flex;align-items:center;gap:6px;color:var(--purple);font-weight:700;margin-bottom:10px}.ai-preview-row{display:flex;justify-content:space-between;padding:8px 0;border-bottom:1px solid #f3f4f7;font-size:12px}.ai-preview-row span{color:var(--muted)}.ai-preview .primary-btn{margin-top:16px}.ai-tips{margin-top:4px}.ai-tips .field-label{display:flex;align-items:center;gap:8px;color:#6f7584}.ai-tips svg{color:var(--green)}@media(min-width:760px){.home-top{padding-top:22px}.summary-card{min-height:180px}.summary-amount{font-size:34px}.bill-row{min-height:82px}.category-bubble{width:52px;height:52px}.category-grid{grid-template-columns:repeat(6,1fr)}.chart-body{gap:24px}.donut{width:150px;height:150px}.donut-hole{width:98px;height:98px}.key{min-height:56px}}.app-loading{min-height:100vh;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;background:linear-gradient(160deg,#f0e9ff,#fdf0f5 55%,#f6f7f9);color:#6d7382}.app-loading-logo{width:70px;height:70px;margin-bottom:8px;border-radius:20px;object-fit:contain}.app-loading strong{color:var(--ink);font-size:15px}.app-loading span{font-size:12px;color:var(--muted)}.login-page{min-height:100vh;display:flex;align-items:center;justify-content:center;padding:32px 24px;background:linear-gradient(160deg,#f0e9ff,#fdf0f5,#f6f7f9)}.login-card{width:100%;max-width:380px;padding:36px 26px 30px;border-radius:26px;background:#fff;box-shadow:0 20px 50px #4637781f;text-align:center}.login-logo{width:66px;height:66px;margin:0 auto 16px;border-radius:18px;object-fit:contain;box-shadow:0 10px 24px #0f6e5638}.login-card h1{margin:0;font-size:24px}.login-card>p{margin:8px 0 26px;color:var(--muted);font-size:12px}.login-field{display:flex;align-items:center;gap:10px;height:48px;margin-bottom:12px;padding:0 14px;border-radius:14px;background:#f4f5f8;color:#9aa0ad;text-align:left}.login-field input{flex:1;min-width:0;color:var(--ink)}.login-btn{margin-top:10px;height:48px}.login-switch{display:block;margin:18px auto 0;border:0;background:transparent;color:var(--purple);font-size:12px;cursor:pointer}.login-hint{margin-top:22px;font-size:11px;color:#9ba0ad;line-height:1.8}.login-hint b{color:var(--purple)}.invite-poster{width:100%;max-width:320px;margin:0 auto 12px;display:block;border-radius:14px;box-shadow:0 6px 20px #0000001a}.toggle-field{flex-direction:row;align-items:center;justify-content:space-between}.toggle-field input[type=checkbox]{width:18px;height:18px;accent-color:var(--purple)}.join-card{text-align:center}.join-card h1{margin:0 0 20px}.join-info{background:#f6f4ff;border-radius:14px;padding:16px;margin-bottom:18px;text-align:left;font-size:13px;color:#4a4f5e}.join-info div{display:flex;align-items:center;gap:8px;margin-bottom:8px}.join-info b{color:var(--ink)}.join-info .join-role{display:block;margin:10px 0 0;padding-top:10px;border-top:1px solid #e5e0f5;color:var(--purple);font-weight:600}.join-error{margin:0 0 16px;padding:12px;border-radius:12px;background:#fff0f0;color:#d0483f;font-size:13px}.join-result{padding:20px 0}.join-result-icon{width:64px;height:64px;margin:0 auto 16px;border-radius:50%;background:#e8f8f0;color:#2fa36a;display:flex;align-items:center;justify-content:center}.join-result h2{margin:0 0 8px;font-size:20px}.join-result p{color:var(--muted);font-size:13px;margin-bottom:20px}.request-list{display:flex;flex-direction:column;gap:12px}.request-row{padding:14px;border-radius:14px;background:#f6f7f9}.request-info strong{display:block;font-size:14px;margin-bottom:4px}.request-info small{display:block;font-size:11px;color:var(--muted);margin-bottom:2px}.request-status{display:inline-block;margin-top:6px;padding:2px 8px;border-radius:10px;font-size:11px}.request-status.pending{background:#fff4e0;color:#c77b17}.request-status.approved{background:#e8f8f0;color:#2fa36a}.request-status.rejected{background:#ffeded;color:#d0483f}.request-actions{display:flex;gap:8px;margin-top:10px}.request-actions button{flex:1}.upload-zone{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;min-height:120px;border:2px dashed #d5d0e8;border-radius:14px;background:#faf9ff;color:var(--purple);font-size:13px;cursor:pointer;position:relative}.upload-zone input{position:absolute;top:0;right:0;bottom:0;left:0;opacity:0;cursor:pointer}.ledger-type-switch{display:inline-flex;align-items:center;gap:6px;padding:8px 16px;border:1px solid #d8ceff;border-radius:16px;background:#efe9ff;color:var(--purple);font-size:15px;font-weight:800;letter-spacing:.3px;box-shadow:0 2px 8px #6f57e81f;white-space:nowrap;flex-shrink:0}.ledger-type-switch svg{width:16px;height:16px}.ledger-type-switch:disabled{opacity:.5}.topbar .ledger-type-switch{max-width:160px;overflow:hidden}.home-page .topbar{position:relative}.home-page .title-switch{flex:0 1 auto;justify-content:flex-start;margin-right:auto;min-width:0;max-width:42%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.home-page .topbar .ledger-type-switch{position:absolute;left:50%;transform:translate(-50%)}.reward-page{background:#f5f6fa}.reward-topbar{position:sticky;top:0;z-index:5;display:grid;grid-template-columns:40px 1fr 40px;align-items:center;justify-items:center;gap:6px;padding:12px 16px;background:linear-gradient(135deg,#f0ebff,#fdeef4)}.reward-topbar>.icon-btn:first-child{justify-self:start}.reward-topbar>.icon-btn:last-child{justify-self:end}.demo-type-label{pointer-events:none;cursor:default}.reward-title{flex:1;min-width:0}.reward-title strong{display:block;font-size:16px}.reward-title small{font-size:11px;color:var(--muted)}.reward-tabs{display:flex;gap:6px;padding:10px 16px;overflow-x:auto;background:#fff;border-bottom:1px solid #eee}.reward-tabs button{display:inline-flex;align-items:center;gap:5px;padding:7px 13px;border-radius:18px;border:0;background:#f2f3f7;color:#6b7080;font-size:12px;white-space:nowrap}.reward-tabs button.active{background:var(--purple);color:#fff}.reward-content{padding:14px 16px 90px}.reward-section{display:flex;flex-direction:column;gap:14px}.reward-card{background:#fff;border-radius:16px;padding:16px;box-shadow:0 2px 10px #00000008}.reward-card-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}.reward-card-head h3{font-size:14px;margin:0}.reward-card-head .rank-switch{margin:0;flex:0 0 auto}.reward-card-head .rank-switch button{flex:none;min-height:26px;padding:0 10px;font-size:11px}.reward-add-page .add-topbar{display:flex;align-items:center;gap:10px;padding:0 16px}.reward-add-page .add-topbar small{margin-left:auto;color:var(--muted);font-size:11px}.reward-form-page{padding:16px}.member-choice-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(88px,1fr));gap:8px}.member-choice{display:flex;flex-direction:column;align-items:center;gap:4px;padding:9px 6px;border-radius:12px;background:#f5f6f9;color:#6d7382}.member-choice.selected{background:var(--purple-soft);color:var(--purple);box-shadow:inset 0 0 0 1px var(--purple)}.member-choice-avatar{display:grid;place-items:center;width:32px;height:32px;border-radius:50%;background:#fff;font-size:18px;line-height:1}.member-choice-name{font-size:12px;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:100%}.member-choice-role{font-size:10px;color:var(--muted)}.member-choice.selected .member-choice-role{color:var(--purple)}.form-field input.amount-input{min-height:52px;font-size:22px;font-weight:700;letter-spacing:.5px}.settle-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:10px}.settle-card{display:flex;flex-direction:column;align-items:center;gap:6px;padding:14px 10px;border-radius:14px;background:#f8f8fc}.settle-avatar,.rank-avatar,.member-avatar{display:grid;place-items:center;border-radius:50%;line-height:1;flex-shrink:0}.settle-avatar,.member-avatar{width:44px;height:44px;font-size:24px}.settle-avatar{margin:0 auto 6px}.rank-avatar{width:28px;height:28px;font-size:15px}.settle-card strong{font-size:15px}.settle-amount{display:flex;gap:14px;font-size:17px;font-weight:700;white-space:nowrap}.settle-amount span{white-space:nowrap}.settle-net{font-size:24px;font-weight:800}.rank-list{display:flex;flex-direction:column;gap:8px}.rank-row{display:flex;align-items:center;gap:8px;font-size:12px}.rank-index{width:18px;text-align:center;color:var(--muted);font-weight:700}.rank-name{width:52px}.rank-bar{flex:1;height:8px;border-radius:4px;background:#f0f0f5;overflow:hidden}.rank-bar div{height:100%;background:linear-gradient(90deg,#8b9cf6,#6f57e8)}.reward-record-row{display:flex;align-items:center;gap:10px;padding:10px 0;border-bottom:1px solid #f2f2f5}.reward-record-row:last-child{border-bottom:0}.record-icon{font-size:22px}.record-info{flex:1;min-width:0}.record-info strong{display:block;font-size:13px}.record-info small{color:var(--muted);font-size:11px}.reward-toolbar{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:10px}.reward-toolbar select{padding:7px 10px;border:1px solid #e5e5ee;border-radius:10px;background:#fff;font-size:12px}.search-box{display:flex;align-items:center;gap:6px;flex:1;min-width:140px;padding:6px 10px;border:1px solid #e5e5ee;border-radius:10px;color:var(--muted)}.search-box input{flex:1;border:0;outline:0;font-size:12px;min-width:0}.rule-grid,.member-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:10px}.rule-card{padding:14px;border-radius:14px;background:#fff;box-shadow:0 2px 8px #00000008}.rule-card.disabled{opacity:.5}.rule-icon{font-size:26px}.rule-card strong{display:block;font-size:13px;margin:6px 0 4px}.rule-card small{display:block;font-weight:700;color:var(--purple)}.rule-card p{font-size:11px;color:var(--muted);line-height:1.5}.rule-type{display:inline-block;padding:1px 7px;border-radius:8px;font-size:10px;background:#fff0f0;color:#d0483f}.rule-type.reward{background:#e8f8f0;color:#2fa36a}.rule-type.both{background:#fff4e0;color:#c77b17}.rule-actions{display:flex;align-items:center;gap:6px;margin-top:8px}.form-row{display:grid;grid-template-columns:1fr 1fr;gap:10px}.checkbox-line{display:flex;align-items:center;gap:8px;font-size:12px;color:var(--muted)}.checkbox-line input{width:16px;height:16px;accent-color:var(--purple)}.member-card{display:flex;flex-direction:column;align-items:center;gap:6px;padding:16px;border-radius:14px;background:#fff}.member-avatar{border:0;background:transparent;cursor:pointer}.member-stats{display:flex;flex-wrap:wrap;justify-content:center;gap:6px;font-size:11px;color:var(--muted)}.member-card small{font-size:10px;color:var(--muted)}.lottery-page{background:linear-gradient(180deg,#f1ebff,#f8f8fb 36%)}.lottery-body{padding-top:4px}.lottery-hero{text-align:center;padding:14px 16px 18px}.lottery-orb{width:64px;height:64px;margin:0 auto 12px;border-radius:22px;display:flex;align-items:center;justify-content:center;color:#fff;background:linear-gradient(135deg,#9b82fa,#6f57e8);box-shadow:0 12px 28px #6f57e847}.lottery-hero strong{font-size:17px}.lottery-hero p{color:var(--muted);font-size:12px;margin:4px 0 0}.wheel-panel{position:relative;width:282px;height:282px;margin:8px auto 22px}.wheel{position:absolute;top:0;right:0;bottom:0;left:0;border-radius:50%;border:8px solid #fff;box-shadow:0 14px 40px #6950c83d,inset 0 0 0 2px #ffffff8c;transition:transform 3.8s cubic-bezier(.12,.72,.12,1)}.wheel-seg-label{position:absolute;left:50%;top:50%;width:46px;height:46%;margin-left:-23px;margin-top:-46%;transform-origin:50% 100%;display:flex;align-items:flex-start;justify-content:center}.wheel-seg-text{font-size:23px;line-height:1;filter:drop-shadow(0 2px 3px rgba(0,0,0,.18))}.wheel-pointer{position:absolute;z-index:3;top:-10px;left:50%;transform:translate(-50%);width:0;height:0;border-left:13px solid transparent;border-right:13px solid transparent;border-top:26px solid #e35d6a;filter:drop-shadow(0 3px 4px rgba(0,0,0,.2))}.wheel-hub{position:absolute;z-index:2;left:50%;top:50%;transform:translate(-50%,-50%);width:62px;height:62px;border-radius:50%;background:#fff;color:var(--purple);font-weight:800;font-size:17px;box-shadow:0 5px 16px #5037a047;border:4px solid var(--purple-soft)}.wheel-hub:disabled{color:var(--muted)}.lottery-spin{width:calc(100% - 32px);margin:0 16px 16px;min-height:48px;font-size:15px}.lottery-modes{display:flex;gap:8px;margin:0 16px 12px}.lottery-modes button{flex:1;display:inline-flex;align-items:center;justify-content:center;gap:5px;min-height:38px;border-radius:12px;background:#fff;color:#7c8290;font-size:12px;box-shadow:0 4px 14px #2a28460a}.lottery-modes button.active{background:var(--purple);color:#fff;font-weight:700;box-shadow:0 6px 16px #8064f247}.lottery-list-head{display:flex;align-items:center;justify-content:space-between;padding:10px 16px;color:var(--muted);font-size:12px;border-bottom:1px solid var(--line)}.lottery-person,.lottery-item,.lottery-history-row{width:100%;min-height:54px;display:flex;align-items:center;gap:10px;padding:8px 16px;border-bottom:1px solid #f4f5f8;text-align:left}.lottery-person:last-child,.lottery-item:last-child,.lottery-history-row:last-child{border-bottom:0}.lottery-person.active{background:#faf9ff}.lottery-check{margin-left:auto;width:20px;height:20px;border-radius:50%;border:1.5px solid #d6d9e1;display:inline-flex;align-items:center;justify-content:center;color:#fff}.lottery-person.active .lottery-check{background:var(--purple);border-color:var(--purple)}.lottery-item-dot{width:10px;height:10px;border-radius:50%;flex-shrink:0}.lottery-item-name{flex:1;min-width:0;height:32px;padding:0 6px;border-radius:8px;background:transparent;font-size:13px;color:var(--ink)}.lottery-item-name:focus{background:#f5f6f9}.lottery-item-name.static{display:flex;align-items:center}.lottery-prob{min-width:34px;text-align:right;font-size:11px;color:var(--purple);font-weight:700}.lottery-weight{display:inline-flex;align-items:center;gap:2px;border-radius:9px;background:#f4f5f8;padding:2px;flex-shrink:0}.lottery-weight button{width:22px;height:22px;border-radius:7px;color:var(--purple);font-size:14px;line-height:1}.lottery-weight button:active{background:var(--purple-soft)}.lottery-weight span{min-width:18px;text-align:center;font-size:11px;font-weight:700}.lottery-weight.readonly{display:inline-flex;align-items:center;justify-content:center;min-width:24px;height:26px;padding:0 4px}.lottery-add-row{display:flex;gap:8px;padding:10px 16px}.lottery-add-row input{flex:1;min-height:36px;padding:0 12px;border-radius:10px;background:#f5f6f9;font-size:13px}.lottery-history-row small{margin-left:auto;color:var(--muted);font-size:11px}.lottery-result{position:relative;width:min(320px,calc(100vw - 40px));padding:34px 24px 24px;border-radius:24px;background:#fff;text-align:center;box-shadow:0 30px 70px #140f324d;overflow:hidden;animation:result-pop .35s ease-out}@keyframes result-pop{0%{transform:scale(.82);opacity:0}to{transform:scale(1);opacity:1}}.lottery-result-icon{width:72px;height:72px;margin:0 auto 14px;border-radius:50%;display:flex;align-items:center;justify-content:center;color:#fff;background:linear-gradient(135deg,#ffc95c,#f08a3c);box-shadow:0 10px 24px #f08a3c52}.lottery-result>small{display:block;color:var(--muted);font-size:12px}.lottery-result>strong{display:block;margin:6px 0 20px;font-size:26px;color:var(--purple)}.lottery-result-actions{display:flex;gap:10px}.lottery-result-actions button{flex:1}.confetti{position:absolute;top:0;right:0;bottom:0;left:0;pointer-events:none}.confetti i{position:absolute;top:-12px;left:calc(5% + var(--i) * 4.6%);width:8px;height:14px;border-radius:2px;background:hsl(calc(var(--i) * 47),85%,62%);animation:confetti-fall 2.4s ease-in infinite;animation-delay:calc(var(--i) * .11s);opacity:0}@keyframes confetti-fall{0%{transform:translateY(0) rotate(0);opacity:0}12%{opacity:1}to{transform:translateY(360px) rotate(640deg);opacity:0}}@media(min-width:760px){.wheel-panel{width:330px;height:330px}.wheel-seg-text{font-size:27px}}@media(max-height:600px)and (orientation:landscape){.topbar,.simple-topbar,.add-topbar,.detail-topbar{height:46px}.home-content{padding-bottom:96px}.summary-card{min-height:140px}.donut{width:120px;height:120px}.donut-hole{width:78px;height:78px}.category-bubble{width:44px;height:44px;font-size:20px}.bottom-nav{height:58px;bottom:max(8px,env(safe-area-inset-bottom))}.bottom-nav button{height:42px;font-size:9px}.fab{width:48px;height:48px;bottom:calc(76px + env(safe-area-inset-bottom))}.sheet{max-height:94vh}.tablet-aside{padding-top:18px}.aside-brand{font-size:20px}.aside-brand img{width:30px;height:30px}.tablet-aside>p{margin:8px 0 16px}.aside-stats{gap:8px}.aside-stats>div{padding:10px 12px}.aside-hint{margin-top:14px;padding:12px}}@media(max-width:360px){.topbar,.simple-topbar,.add-topbar,.detail-topbar{padding:0 8px}.tab-pill{padding:0 10px;font-size:11px}.summary-card{padding:14px}.category-grid{gap:8px 2px;padding:0 10px 12px}.stat-card{padding:12px}.stat-card strong{font-size:15px}.form-row{grid-template-columns:1fr}.home-page .title-switch{max-width:34%;font-size:14px}.topbar .ledger-type-switch{max-width:132px;font-size:11px;padding:6px 10px}}@media(prefers-reduced-motion:reduce){*{animation-duration:.01ms!important;transition-duration:.01ms!important}}
