*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}
html,body{margin:0;background:#fff}
body{font-family:-apple-system,'SF Pro Text',Inter,system-ui,sans-serif;color:#141414;font-size:16px;-webkit-font-smoothing:antialiased}
a{color:inherit;text-decoration:none}
button{font-family:inherit;color:inherit}
.hidden{display:none!important}
#app{padding:calc(env(safe-area-inset-top) + 18px) 16px calc(env(safe-area-inset-bottom) + 96px);max-width:520px;margin:0 auto;min-height:100vh}
.serif{font-family:Newsreader,Georgia,serif;font-weight:400}
.top{display:flex;justify-content:space-between;align-items:center;padding:0 4px;min-height:44px}
.top h1{margin:0;font-size:36px;line-height:1;letter-spacing:-.5px}
.sub{font-size:15px;color:#6E6A66;margin:6px 4px 0}
.back{display:inline-flex;align-items:center;gap:2px;color:#2F78B7;font-size:17px;font-weight:500;padding:6px 0;background:none;border:none;cursor:pointer}
.av{width:44px;height:44px;border-radius:50%;background:#E3F0FA;display:flex;align-items:center;justify-content:center;font-size:14px;font-weight:600;color:#2F78B7;border:none;cursor:pointer}
.glass{background:rgba(255,255,255,.82);backdrop-filter:blur(24px) saturate(180%);-webkit-backdrop-filter:blur(24px) saturate(180%);border:1px solid #EFEFF1;box-shadow:0 6px 20px rgba(0,0,0,.08)}
.grp{background:#F8F7F5;border-radius:22px;overflow:hidden}
.card{background:#F8F7F5;border-radius:22px;padding:16px 18px}
.row{display:flex;align-items:center;gap:14px;padding:13px 16px;border-bottom:1px solid #EDEBE8;cursor:pointer}
.row:last-child{border-bottom:none}
.ini{width:46px;height:46px;border-radius:14px;background:#fff;display:flex;align-items:center;justify-content:center;font-size:14px;font-weight:600;color:#4A4642;flex:none}
.grow{flex:1;min-width:0}
.rt{font-size:17px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.rs{font-size:14px;color:#6E6A66;margin-top:1px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.blue{color:#1D5784;font-weight:500}.green{color:#1F6B37;font-weight:500}.orange{color:#A35A12;font-weight:500}.red{color:#B3261E;font-weight:500}
.h2{margin:22px 6px 8px;font-size:20px;font-weight:600;display:flex;align-items:center;justify-content:space-between}
.h2 small{font-size:15px;color:#6E6A66;font-weight:500}
.cbtn{width:44px;height:44px;border-radius:50%;background:#E3F0FA;color:#2F78B7;display:flex;align-items:center;justify-content:center;flex:none;border:none;cursor:pointer}
.cbtn.off{opacity:.35;pointer-events:none}
.pill{display:inline-block;font-size:13px;font-weight:600;line-height:26px;padding:0 10px;border-radius:99px;white-space:nowrap}
.p-blue{background:#E3F0FA;color:#1D5784}.p-green{background:#E4F3E8;color:#1F6B37}.p-orange{background:#FBEFDC;color:#A35A12}.p-gray{background:#EFEDEA;color:#4A4642}.p-red{background:#FBE4E2;color:#B3261E}
.big{font-size:34px;font-weight:600;letter-spacing:-.8px;line-height:1.15;font-variant-numeric:tabular-nums}
.num{font-weight:600;font-variant-numeric:tabular-nums}
.btn{height:54px;border-radius:99px;background:#2F78B7;color:#fff;display:flex;align-items:center;justify-content:center;font-size:17px;font-weight:600;border:none;width:100%;cursor:pointer}
.btn:disabled{opacity:.45}
.btn2{height:48px;border-radius:99px;background:#E3F0FA;color:#1D5784;display:flex;align-items:center;justify-content:center;gap:8px;font-size:16px;font-weight:600;border:none;cursor:pointer;flex:1}
.acts{display:flex;gap:8px;margin-top:12px}
.chips{display:flex;flex-wrap:wrap;gap:8px}
.chip{height:40px;padding:0 16px;border-radius:99px;background:#F3F1EE;border:none;font-size:15px;font-weight:500;cursor:pointer}
.chip.on{background:#2F78B7;color:#fff}
.lbl{font-size:13px;font-weight:600;color:#6E6A66;letter-spacing:.4px;text-transform:uppercase;margin:20px 6px 8px}
input.in,textarea.in{width:100%;border:none;background:#F3F1EE;border-radius:14px;padding:14px 16px;font-size:16px;font-family:inherit;outline:none}
textarea.in{min-height:84px;resize:vertical}
.search{display:flex;gap:8px;margin-top:14px}
.search input{flex:1}
.f{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:0 16px;min-height:50px;border-bottom:1px solid #EDEBE8;font-size:16px}
.f:last-child{border-bottom:none}
.k{color:#6E6A66}
.quote{background:#fff;border-radius:14px;padding:12px 14px;font-size:15px;line-height:1.4;margin-top:10px;white-space:pre-wrap;max-height:9.5em;overflow:hidden}
.quote.open{max-height:none}
.badge{flex:none;min-width:36px;height:28px;padding:0 8px;border-radius:9px;background:#E3F0FA;color:#1D5784;font-size:13px;font-weight:700;display:flex;align-items:center;justify-content:center}
.badge.a1{background:#2F78B7;color:#fff}
.empty{padding:22px 16px;color:#8A8580;font-size:15px;text-align:center}
.load{padding:28px 0;text-align:center;color:#8A8580;font-size:15px}
.bar{height:6px;border-radius:3px;background:#EAE7E3;overflow:hidden;margin-top:6px}
.bar i{display:block;height:100%;background:#2F78B7;border-radius:3px}
table.t{width:100%;border-collapse:collapse;font-size:15px;font-variant-numeric:tabular-nums}
table.t th{font-size:12px;font-weight:600;color:#6E6A66;text-align:right;padding:10px 8px;border-bottom:1px solid #EDEBE8}
table.t th:first-child,table.t td:first-child{text-align:left;padding-left:16px}
table.t td{text-align:right;padding:11px 8px;border-bottom:1px solid #EDEBE8}
table.t td:last-child,table.t th:last-child{padding-right:16px}
table.t tr.tot td{font-weight:700;border-bottom:none}
table.t tr.grp td{font-weight:600;cursor:pointer}
table.t tr.kid td:first-child{padding-left:30px;color:#4A4642}
.seg{display:flex;background:#F3F1EE;border-radius:12px;padding:3px;gap:3px}
.seg button{flex:1;height:36px;border:none;background:none;border-radius:9px;font-size:14px;font-weight:600;color:#4A4642;cursor:pointer}
.seg button.on{background:#fff;color:#141414;box-shadow:0 1px 3px rgba(0,0,0,.1)}
.tabbar{position:fixed;left:0;right:0;bottom:0;height:calc(64px + env(safe-area-inset-bottom));padding:6px 12px env(safe-area-inset-bottom);display:grid;grid-auto-flow:column;grid-auto-columns:1fr;gap:6px;z-index:20;background:#fff!important;border:none!important;border-top:1px solid #EDEBE8!important;box-shadow:none!important;border-radius:0;backdrop-filter:none!important;-webkit-backdrop-filter:none!important}
.tab{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;font-size:11px;font-weight:600;color:#6E6A66;border-radius:14px;height:52px}
.tab svg{width:24px;height:24px}
.tab.on{color:#2F78B7;background:rgba(47,120,183,.10)}
.toast{position:fixed;left:50%;transform:translateX(-50%);bottom:calc(env(safe-area-inset-bottom) + 80px);background:#141414;color:#fff;border-radius:99px;padding:12px 18px;font-size:15px;font-weight:500;z-index:30;display:flex;gap:14px;align-items:center;max-width:calc(100% - 32px)}
.toast button{background:none;border:none;color:#8CC2EE;font-weight:600;font-size:15px;cursor:pointer}
.login{max-width:360px;margin:12vh auto 0}
.login h1{font-size:44px;margin:0 0 6px}
.err{color:#B3261E;font-size:14px;margin:10px 4px 0;min-height:18px}
.testtag{font-size:11px;font-weight:700;color:#A35A12;background:#FBEFDC;border-radius:6px;padding:2px 6px;margin-left:8px;vertical-align:middle;font-family:-apple-system,Inter,sans-serif;letter-spacing:.3px}
.drop{margin-top:8px;padding:6px 0}
.drop .lbl{margin:12px 16px 6px}
.drop .chips{padding:0 16px}
