:root{--yellow:#f3ce28;--ink:#24292f;--muted:#66717e;--line:#e0e5e9;--bg:#f4f6f8;--red:#a92431;--blue:#175ca3;--green:#176d4e;--radius:15px}*{box-sizing:border-box}html,body{margin:0;max-width:100%;background:var(--bg);color:var(--ink);font-family:-apple-system,BlinkMacSystemFont,"Noto Sans JP","Yu Gothic",Meiryo,sans-serif;font-size:14px;line-height:1.7}body{overflow-wrap:anywhere}button,input,textarea,select{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer;min-height:44px;border:1px solid var(--line);background:#fff;border-radius:10px;padding:9px 15px;color:var(--ink);font-weight:650}button:hover{filter:brightness(.97)}button:focus-visible,a:focus-visible{outline:3px solid #2983d8;outline-offset:2px}button:disabled{opacity:.5;cursor:wait}.primary{background:var(--yellow);border-color:var(--yellow);color:#222}.danger{color:var(--red)}.quiet{background:transparent}.full{width:100%}.small{font-size:12px}.muted{color:var(--muted)}a{color:var(--blue);text-decoration:none}.boot{padding:40px}.layout{display:grid;grid-template-columns:232px minmax(0,1fr);min-height:100vh}.sidebar{background:#fff;border-right:1px solid var(--line);position:sticky;top:0;height:100vh;display:flex;flex-direction:column;padding:25px 16px}.brand img{width:175px;max-height:58px;object-fit:contain;object-position:left}.brand small{display:block;font-size:11px;color:var(--muted);letter-spacing:.04em;margin:7px 4px 22px}.nav{display:grid;gap:5px}.nav a{padding:11px 14px;color:var(--muted);border-radius:9px;font-weight:600}.nav a.active{color:var(--ink);background:#fff6c9}.nav a span{display:inline-block;width:30px;opacity:.65}.side-foot{margin-top:auto;padding:15px 5px 0;font-size:11px;color:var(--muted)}.workspace{min-width:0}.topbar{height:73px;background:#fff;border-bottom:1px solid var(--line);padding:0 32px;display:flex;align-items:center;justify-content:space-between;gap:12px}.topbar .account{display:flex;align-items:center;gap:10px}.avatar{background:#262c34;color:#fff;border-radius:50%;width:34px;height:34px;display:grid;place-items:center}.mobile-toggle{display:none}.content{padding:29px 32px 60px;max-width:1420px;margin:auto}.page-head{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin-bottom:24px}.page-head h1{font-size:25px;line-height:1.4;margin:0 0 6px;font-weight:750;letter-spacing:.02em}.page-head p{margin:0;color:var(--muted)}.eyebrow{font-size:11px;font-weight:750;letter-spacing:.12em;color:var(--muted);margin-bottom:6px}.notice{background:#fff8d7;border:1px solid #ecde97;border-radius:10px;padding:10px 15px;font-size:12px;margin:0 0 22px}.notice.error{background:#fff0f1;border-color:#e9bec3;color:var(--red)}.section-title{display:flex;align-items:center;justify-content:space-between;margin:23px 0 12px}.section-title h2{font-size:17px;margin:0}.grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.grid.three{grid-template-columns:repeat(3,minmax(0,1fr))}.grid.four{grid-template-columns:repeat(4,minmax(0,1fr))}.card{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:20px;min-width:0}.card h3{margin:0 0 8px;font-size:17px}.card h4{margin:0 0 8px;font-size:14px}.card .amount{font-size:29px;line-height:1.35;font-weight:760;letter-spacing:-.035em;margin:9px 0 5px}.card .amount.small-amount{font-size:23px}.card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:8px;margin-bottom:12px}.card-head h3{margin:0}.pill{display:inline-block;white-space:nowrap;font-size:11px;padding:3px 9px;border-radius:30px;background:#eef1f4;color:#56616d;font-weight:600}.pill.green{background:#e5f4ed;color:var(--green)}.pill.yellow{background:#fff5cd;color:#725c07}.pill.red{background:#fcebed;color:var(--red)}.work-card{border-top:4px solid var(--yellow)}.work-time{font-size:24px;font-weight:720;letter-spacing:-.02em;margin:4px 0 10px}.actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:15px}.actions>*{flex-shrink:0}.work-card>.primary{width:100%;margin-top:14px;min-height:50px}.divider{height:1px;background:var(--line);margin:14px 0}.empty{padding:30px 16px;background:#fff;border:1px dashed #d5dce3;border-radius:12px;color:var(--muted);text-align:center}.list{display:grid;gap:12px}.row-card{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;background:#fff;border:1px solid var(--line);border-radius:12px;padding:17px 20px;min-width:0}.row-main{min-width:0;flex:1}.row-main strong{font-size:15px}.row-card .actions{margin:0}.info-line{display:flex;gap:10px;flex-wrap:wrap;color:var(--muted);font-size:12px;margin-top:3px}.filter{display:flex;gap:10px;flex-wrap:wrap;margin:0 0 18px;align-items:center}.filter input,.filter select{max-width:100%;width:auto;flex:1;min-width:130px}.tabbar{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:18px}.tabbar button.active{background:var(--ink);color:#fff;border-color:var(--ink)}.label{display:block;font-size:12px;color:#4a5662;font-weight:650;margin-bottom:6px}label.field{display:block;min-width:0}input,textarea,select{width:100%;max-width:100%;background:#fff;border:1px solid #cdd5dc;border-radius:8px;padding:10px 11px;color:var(--ink);min-height:44px}textarea{min-height:95px;resize:vertical}input[type=checkbox]{width:19px;min-height:19px;height:19px;vertical-align:middle;accent-color:var(--ink)}.check{display:flex;gap:9px;align-items:center;margin:7px 0}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.form-grid .wide{grid-column:1/-1}.form-note{font-size:12px;color:var(--muted);margin-top:6px}.form-footer{border-top:1px solid var(--line);margin-top:25px;padding-top:18px;display:flex;justify-content:flex-end;gap:9px}.login-wrap{min-height:100vh;display:grid;place-items:center;padding:25px;background:linear-gradient(130deg,#fff9dd,#f0f4f8)}.login-card{width:100%;max-width:410px;background:#fff;border:1px solid var(--line);border-radius:20px;padding:36px;box-shadow:0 18px 70px #1625350b}.login-card img{width:230px;max-width:100%;max-height:85px;object-fit:contain}.login-card h1{font-size:19px;margin:20px 0 5px}.login-card form{display:grid;gap:17px;margin-top:24px}dialog{border:0;border-radius:18px;padding:0;width:min(760px,calc(100% - 28px));max-height:90dvh;box-shadow:0 20px 80px #0003;overflow:auto;color:var(--ink)}dialog::backdrop{background:#17233085}#modal-content,#number-content{padding:27px}dialog h2{font-size:21px;line-height:1.4;margin:0 0 7px}dialog .dialog-intro{color:var(--muted);font-size:13px;margin:0 0 22px}#number-modal{max-width:330px}.numpad{display:grid;grid-template-columns:repeat(3,1fr);gap:9px;margin:14px 0}.numpad button{min-height:54px;font-size:23px}.number-display{font-size:30px;text-align:right;border:1px solid var(--line);padding:8px;border-radius:8px;min-height:62px}.number-select{font-size:17px;text-align:left;width:100%}.kv{display:grid;grid-template-columns:110px minmax(0,1fr);gap:8px 14px;margin:12px 0}.kv dt{color:var(--muted);font-size:12px}.kv dd{margin:0}.money-grid .card{border-top:3px solid #272e36}.bar{height:7px;background:#edf0f3;border-radius:10px;overflow:hidden;margin-top:12px}.bar i{display:block;background:var(--yellow);height:100%;width:50%}.line-editor{border:1px solid var(--line);border-radius:12px;padding:14px;margin:12px 0}.line-editor .form-grid{gap:10px}.line-editor h4{margin:0 0 10px}.table-wrap{overflow-x:auto}table{border-collapse:collapse;width:100%;font-size:12px}td,th{text-align:left;border-bottom:1px solid var(--line);padding:9px}#toast{position:fixed;bottom:22px;left:50%;transform:translateX(-50%);max-width:calc(100% - 30px);border-radius:10px;background:#232c35;color:white;z-index:100;padding:13px 20px;box-shadow:0 5px 25px #0002;display:none}.badge-count{font-size:11px;background:var(--yellow);padding:2px 7px;border-radius:20px;color:#222}.mobile-overlay{display:none}.update{background:#eaf4ff;padding:12px;border-radius:10px;margin-bottom:16px}.nowrap{white-space:nowrap}pre{white-space:pre-wrap;word-break:break-all;font-size:11px;background:#f3f5f7;padding:12px;border-radius:8px}body.locked{overflow:hidden}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(min-width:1500px){.content{padding-left:46px;padding-right:46px}}
@media(max-width:1000px){.layout{grid-template-columns:195px minmax(0,1fr)}.sidebar{padding:22px 12px}.brand img{width:158px}.content{padding:23px}.topbar{padding:0 23px}.grid.four{grid-template-columns:repeat(2,minmax(0,1fr))}.grid.three{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){html,body{font-size:14px}.layout{display:block}.sidebar{position:fixed;left:-260px;top:0;width:240px;z-index:40;transition:left .15s}.sidebar.open{left:0;box-shadow:15px 0 40px #0002}.mobile-overlay.open{display:block;position:fixed;inset:0;background:#17233085;z-index:39}.mobile-toggle{display:inline-flex;align-items:center;justify-content:center;min-width:44px;padding:8px;font-size:19px}.topbar{height:63px;padding:0 16px}.topbar .desktop-label{display:none}.topbar .account{gap:7px}.content{padding:23px 16px 40px}.page-head{gap:12px;margin-bottom:20px}.page-head h1{font-size:23px}.page-head p{font-size:12px}.page-head>.primary{padding:8px 11px;font-size:12px}.grid,.grid.three{grid-template-columns:1fr;gap:13px}.grid.four{gap:10px}.card{padding:17px}.money-grid .card{padding:14px}.card .amount{font-size:24px}.card .amount.small-amount{font-size:20px}.money-grid h4{font-size:12px}.form-grid{grid-template-columns:1fr}.form-grid .wide{grid-column:1}.row-card{display:block;padding:16px}.row-card .actions{margin-top:12px}.row-card .actions button{flex:1;min-width:0}.work-time{font-size:24px}.notice{font-size:11px;padding:10px 12px}.section-title{margin-top:22px}.section-title h2{font-size:16px}.kv{grid-template-columns:95px minmax(0,1fr)}#modal-content,#number-content{padding:22px 18px}dialog{max-height:92dvh}.login-card{padding:28px}.filter>*{width:100%;flex:1 1 130px}.filter button{flex:0 0 auto}.actions .primary{white-space:normal}.tabbar button{flex:1;min-width:85px;padding:8px 9px;font-size:12px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}

.actions{align-items:center}.button-link{display:inline-flex;align-items:center;min-height:44px;padding:9px 15px;border:1px solid var(--line);border-radius:10px}.card+.notice{margin-top:18px}
