
*{box-sizing:border-box}
html,body{margin:0;background:#F4F6FA;font-family:Inter,system-ui,-apple-system,sans-serif;color:#0F172A;-webkit-text-size-adjust:100%}
button{font-family:inherit;cursor:pointer}
#main{max-width:560px;margin:0 auto;padding:20px 16px calc(100px + env(safe-area-inset-bottom));display:flex;flex-direction:column;gap:14px}
.eyebrow{font-size:12px;font-weight:600;color:#475569;letter-spacing:.04em;text-transform:uppercase}
h1{margin:0;font-size:28px;font-weight:800}
h2{margin:0;font-size:16px;font-weight:700}
.row{display:flex;gap:8px;align-items:center}
.between{display:flex;justify-content:space-between;align-items:center;gap:8px}
.wrap{flex-wrap:wrap}
.card{background:#fff;border-radius:14px;padding:14px}
.list{background:#fff;border-radius:14px;overflow:hidden}
.li{display:flex;align-items:center;gap:10px;min-height:54px;padding:8px 14px;border-bottom:1px solid #EEF2F7;width:100%;background:none;border-left:0;border-right:0;border-top:0;text-align:left;color:inherit;font-size:inherit}
.li:last-child{border-bottom:0}
.grid3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.grid2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.tile{background:#fff;border-radius:14px;padding:12px;display:flex;flex-direction:column;gap:4px;min-width:0}
.tile .l{font-size:12px;font-weight:600;color:#475569}
.tile .v{font-size:clamp(18px,6.2vw,24px);font-weight:800;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tile .d{font-size:12px;font-weight:700}
.good{color:#15803D}.bad{color:#B91C1C}.flat{color:#475569}
.seg{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;background:#E2E8F0;padding:4px;border-radius:12px}
.seg button{height:40px;border:0;border-radius:9px;background:transparent;font-size:14px;font-weight:700;color:#475569}
.seg button.on{background:#fff;color:#0F172A}
.pill{height:36px;padding:0 13px;border-radius:999px;border:1px solid #CBD5E1;background:#fff;font-size:13px;font-weight:600;color:#334155;flex:none}
.pill.on{background:#1D4ED8;border-color:#1D4ED8;color:#fff}
.chip{height:36px;padding:0 12px;border-radius:10px;border:1px solid #CBD5E1;background:#fff;font-size:13px;font-weight:600;color:#334155}
.chip.on{background:#EFF6FF;border-color:#1D4ED8;color:#1D4ED8}
.scroll{display:flex;gap:8px;overflow-x:auto;padding-bottom:2px}
.tabs{display:flex;gap:4px;overflow-x:auto;border-bottom:1px solid #E2E8F0;margin:0 -16px;padding:0 16px}
.tabs button{flex:none;height:44px;padding:0 10px;border:0;border-bottom:3px solid transparent;background:none;font-size:14px;font-weight:700;color:#475569}
.tabs button.on{color:#1D4ED8;border-bottom-color:#1D4ED8}
.badge{font-size:12px;font-weight:600;padding:5px 9px;border-radius:999px;white-space:nowrap}
.b-live{color:#15803D;background:#DCFCE7}.b-wait{color:#92400E;background:#FEF3C7}.b-info{color:#1E40AF;background:#DBEAFE}
.small{font-size:12px;color:#475569}
.note{font-size:12px;color:#92400E;background:#FEF3C7;padding:10px 12px;border-radius:10px;margin:0}
.info{font-size:12px;color:#1E3A8A;background:#DBEAFE;padding:10px 12px;border-radius:10px;margin:0}
.num{text-align:right;font-variant-numeric:tabular-nums}
.chart{height:110px;display:flex;align-items:flex-end;gap:3px}
.chart div{flex:1;background:#3B82F6;border-radius:3px 3px 0 0;min-height:1px}
table.t{width:100%;border-collapse:collapse;font-size:13px}
table.t th{font-size:11px;font-weight:700;color:#475569;text-transform:uppercase;letter-spacing:.03em;padding:10px 8px;border-bottom:1px solid #E2E8F0;text-align:right;white-space:nowrap}
table.t td{padding:10px 8px;border-bottom:1px solid #EEF2F7;text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}
table.t th:first-child,table.t td:first-child{text-align:left;white-space:normal}
table.t tr.total td{font-weight:800;border-top:2px solid #0F172A}
.tbox{background:#fff;border-radius:14px;overflow-x:auto}
.kw{font-weight:600}.kw small{display:block;font-weight:500;color:#64748B;font-size:11px}
.btn{height:50px;border-radius:12px;border:0;background:#1D4ED8;color:#fff;font-size:16px;font-weight:700;width:100%}
.btn2{height:44px;border-radius:12px;border:1px solid #CBD5E1;background:#fff;color:#0F172A;font-size:14px;font-weight:600;width:100%}
.link{border:0;background:none;color:#1D4ED8;font-weight:600;font-size:14px;padding:10px 0}
.back{display:flex;align-items:center;gap:6px;height:44px;border:0;background:none;color:#1D4ED8;font-size:15px;font-weight:600;padding:0}
input[type=date]{height:44px;padding:0 10px;border:1px solid #CBD5E1;border-radius:10px;font-family:inherit;font-size:15px;width:100%;background:#fff;color:#0F172A}
label.f{display:flex;flex-direction:column;gap:4px;font-size:12px;font-weight:600;color:#475569}
.switch{width:52px;height:32px;border-radius:999px;border:0;background:#94A3B8;position:relative;padding:0;flex:none}
.switch span{position:absolute;top:4px;left:4px;width:24px;height:24px;border-radius:999px;background:#fff;transition:left .15s}
.switch.on{background:#1D4ED8}.switch.on span{left:24px}
nav{position:fixed;left:0;right:0;bottom:0;background:#fff;border-top:1px solid #E2E8F0;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));padding:6px 4px calc(8px + env(safe-area-inset-bottom));z-index:5}
nav button{border:0;background:none;display:flex;flex-direction:column;align-items:center;gap:3px;font-size:11px;font-weight:500;color:#64748B;height:52px;justify-content:center}
nav button.on{color:#1D4ED8;font-weight:700}
#loading{position:fixed;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;background:#F4F6FA;z-index:10;font-weight:600;color:#475569}
.spin{width:34px;height:34px;border:4px solid #CBD5E1;border-top-color:#1D4ED8;border-radius:50%;animation:s 0.8s linear infinite}
@keyframes s{to{transform:rotate(360deg)}}
.toast{position:fixed;left:50%;bottom:100px;transform:translateX(-50%);background:#0F172A;color:#fff;padding:10px 16px;border-radius:10px;font-size:14px;z-index:20}
@media print{nav,.noprint{display:none!important}#main{padding:0}}

.in{height:48px;padding:0 12px;border:1px solid #CBD5E1;border-radius:10px;font-family:inherit;font-size:16px;background:#fff;color:#0F172A;width:100%}
.in:focus{outline:2px solid #1D4ED8;outline-offset:1px}
button:disabled{opacity:.6}
