:root{font-family:system-ui,-apple-system,Segoe UI,Roboto,Noto Sans KR,sans-serif;color:#1f2937;background:#f8fafc}*{box-sizing:border-box}body{margin:0}.app{max-width:880px;margin:0 auto;padding:2rem 1.5rem 4rem}h1{margin-bottom:.25rem}.subtitle{color:#64748b;margin-top:0}.card{background:#fff;border:1px solid #e2e8f0;border-radius:10px;padding:1.25rem 1.5rem;margin-top:1.25rem;box-shadow:0 1px 2px #0000000a}.card h2{margin-top:0;font-size:1.1rem}dl{display:grid;grid-template-columns:12rem 1fr;gap:.4rem 1rem;margin:0}dt{color:#64748b}dd{margin:0;font-variant-numeric:tabular-nums}table{width:100%;border-collapse:collapse;font-size:.92rem}th,td{text-align:left;padding:.45rem .6rem;border-bottom:1px solid #eef2f7;vertical-align:top}th{color:#475569;font-weight:600}code{background:#f1f5f9;padding:.1rem .35rem;border-radius:4px;font-size:.85em}.error{color:#b91c1c;background:#fef2f2;border:1px solid #fecaca;padding:.75rem 1rem;border-radius:8px}.topbar{display:flex;align-items:center;justify-content:space-between;gap:1rem}button.ghost{background:#fff;border:1px solid #cbd5e1;border-radius:8px;padding:.5rem .9rem;cursor:pointer;color:#334155}button.ghost:hover{background:#f1f5f9}.auth{min-height:100vh;display:flex;align-items:center;justify-content:center;padding:1.5rem}.auth-card{width:100%;max-width:380px;background:#fff;border:1px solid #e2e8f0;border-radius:12px;padding:1.75rem;box-shadow:0 4px 14px #0000000f}.auth-card h1{font-size:1.3rem;text-align:center;margin:0 0 1.25rem}.tabs{display:flex;gap:.5rem;margin-bottom:1.25rem}.tabs button{flex:1;padding:.55rem;border:1px solid #e2e8f0;background:#f8fafc;border-radius:8px;cursor:pointer;color:#64748b;font-weight:600}.tabs button.active{background:#2563eb;border-color:#2563eb;color:#fff}.auth-card form{display:flex;flex-direction:column;gap:.85rem}.auth-card label{display:flex;flex-direction:column;gap:.3rem;font-size:.9rem;color:#475569}.auth-card input{padding:.55rem .7rem;border:1px solid #cbd5e1;border-radius:8px;font-size:1rem}.auth-card input:focus{outline:2px solid #93c5fd;border-color:#93c5fd}button.primary{margin-top:.25rem;padding:.6rem;background:#2563eb;color:#fff;border:none;border-radius:8px;font-size:1rem;font-weight:600;cursor:pointer}button.primary:disabled{opacity:.6;cursor:default}.hint{margin-top:1rem;font-size:.82rem;color:#94a3b8;text-align:center}.nav{display:flex;gap:.5rem;margin:1.25rem 0 .25rem}.nav button{padding:.45rem .9rem;border:1px solid #e2e8f0;background:#fff;border-radius:8px;cursor:pointer;color:#64748b;font-weight:600}.nav button.active{background:#2563eb;border-color:#2563eb;color:#fff}.muted{color:#94a3b8;font-size:.85rem}.major{border-top:1px solid #eef2f7;padding:.75rem 0 .25rem}.major h3{margin:.25rem 0 .5rem;font-size:1rem}.cat{margin:.35rem 0 .6rem}.cat-row,.sub-row{display:flex;align-items:center;gap:.5rem;padding:.15rem 0}.cat-name{font-weight:600}.codechip{background:#eef2ff;color:#3730a3;padding:.1rem .4rem;border-radius:4px;font-size:.8rem;min-width:2.4rem;text-align:center}.codechip.sub{background:#f1f5f9;color:#475569}.subs{margin-left:1.6rem;border-left:2px solid #f1f5f9;padding-left:.75rem}.actions{display:inline-flex;gap:.3rem;margin-left:auto}.actions button{font-size:.78rem;padding:.2rem .45rem;border:1px solid #cbd5e1;background:#fff;border-radius:6px;cursor:pointer;color:#475569}.actions button:hover{background:#f8fafc}.add-row{display:flex;gap:.4rem;margin:.4rem 0;align-items:center}.add-row.sub{margin-top:.3rem}.add-row input{padding:.3rem .5rem;border:1px solid #cbd5e1;border-radius:6px;font-size:.85rem}.add-row .w-letter,.add-row .w-num{width:4.5rem}.add-row button,td button+button{margin-left:.2rem}.add-row button{padding:.3rem .7rem;border:1px solid #2563eb;background:#2563eb;color:#fff;border-radius:6px;cursor:pointer;font-size:.85rem}.add-row button:disabled{opacity:.5;cursor:default}.w-iso{width:4rem}.w-num{width:4.5rem}.pivot-wrap{max-height:70vh;overflow:auto;border:1px solid #e2e8f0;border-radius:8px}.pivot{border-collapse:separate;border-spacing:0}.pivot th,.pivot td{border-bottom:1px solid #eef2f7;border-right:1px solid #f1f5f9;background:#fff;white-space:nowrap}.pivot td.num,.pivot th.num{text-align:right;font-variant-numeric:tabular-nums}.pivot td.derived,.pivot th.derived{color:#94a3b8}.derived-legend{color:#94a3b8;font-weight:600}.chart-legend{position:absolute;top:8px;left:12px;display:flex;flex-wrap:wrap;gap:.1rem .7rem;align-items:center;background:#ffffffe0;border:1px solid #e2e8f0;border-radius:6px;padding:.25rem .6rem;font-size:.8rem;color:#334155;font-variant-numeric:tabular-nums;pointer-events:none;z-index:3;max-width:calc(100% - 24px)}.chart-legend strong{color:#1f2937}.scale-tabs{display:inline-flex;gap:.25rem}.scale-tabs button{padding:.3rem .7rem;border:1px solid #cbd5e1;background:#fff;color:#475569;border-radius:6px;cursor:pointer;font-size:.85rem}.scale-tabs button.active{background:#2563eb;border-color:#2563eb;color:#fff}.pivot td.major-total,.pivot th.major-total{font-weight:600;background:#f1f5f9;border-left:2px solid #cbd5e1}.pivot thead th.major-total,.pivot tfoot th.major-total{background:#e9eef5}.pivot thead th{position:sticky;top:0;z-index:2;background:#f8fafc}.pivot th:first-child,.pivot td:first-child{position:sticky;left:0;z-index:1;background:#fff}.pivot thead th:first-child{z-index:3;background:#f8fafc}.pivot tfoot th{position:sticky;bottom:0;z-index:2;background:#f8fafc;font-weight:600}.pivot tfoot th:first-child{z-index:3}
