:root{color-scheme:light;font-family:'Pretendard Variable',Pretendard,system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI','맑은 고딕',sans-serif;font-size:14px;line-height:1.5;color:var(--ink);background:var(--canvas);--canvas:#f6f5f4;--surface:#fff;--surface-alt:#f8f8f6;--hover:#f0f0ed;--ink:#262624;--muted:#696761;--faint:#77746f;--line:#e7e6e2;--input-line:#dcdad5;--blue:#0075de;--primary:#0075de;--accent-soft:#edf5ff;--accent-ink:#145b9b;--active:#f8fbff;--danger:#b43c35;--danger-bg:#fff2f0;--danger-line:#ecc6c1;--success:#326e4a;--warning:#855718;--warning-bg:#fff8e9;--warning-line:#dfc38f;--shadow:0 1px 3px #24242406;--dialog-shadow:0 18px 70px #0002}
:root[data-theme=dark]{color-scheme:dark;--canvas:#191919;--surface:#222;--surface-alt:#292929;--hover:#30302f;--ink:#eeeeec;--muted:#aaa9a3;--faint:#99988f;--line:#393938;--input-line:#50504d;--blue:#79b9f0;--primary:#176aaa;--accent-soft:#20364a;--accent-ink:#a6d3fb;--active:#242b32;--danger:#f4a39c;--danger-bg:#3a2525;--danger-line:#69403c;--success:#9bcea9;--warning:#e7c38a;--warning-bg:#362f23;--warning-line:#66563a;--shadow:none;--dialog-shadow:0 18px 70px #0007}
*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button,a.button{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:34px;padding:7px 12px;border:1px solid var(--input-line);border-radius:6px;background:var(--surface);color:var(--ink);font-size:13px;line-height:1.3;text-decoration:none;white-space:nowrap;cursor:pointer;transition:background .12s,border-color .12s}button:hover,a.button:hover{background:var(--hover);border-color:var(--faint)}button.primary{background:var(--primary);border-color:var(--primary);color:#fff;font-weight:600}button.primary:hover{filter:brightness(.94)}button:disabled{opacity:.5;cursor:not-allowed}a{color:var(--blue)}input,select{max-width:100%;min-height:34px;padding:7px 9px;border:1px solid var(--input-line);border-radius:5px;background:var(--surface);color:var(--ink);font-size:13px}input::placeholder{color:var(--faint);opacity:1}input:hover,select:hover{border-color:var(--faint)}input[type=number]{appearance:textfield;-moz-appearance:textfield;font-variant-numeric:tabular-nums}input[type=number]::-webkit-inner-spin-button,input[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}input[type=checkbox]{accent-color:var(--primary);width:17px;height:17px;min-height:0;margin:0;vertical-align:middle;cursor:pointer}input:focus,select:focus{outline:2px solid var(--blue);outline-offset:1px;border-color:var(--blue)}button:focus-visible,a:focus-visible,summary:focus-visible,.scroll:focus-visible{outline:2px solid var(--blue);outline-offset:3px}[hidden]{display:none!important}
header{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:15px 24px;background:var(--surface);border-bottom:1px solid var(--line)}header strong{font-size:18px;font-weight:600;letter-spacing:-.5px}.brand{display:flex;align-items:center;gap:11px}.brand img{width:30px;height:30px;border-radius:7px}.brand .muted{font-size:11px;margin-top:1px;letter-spacing:.1px}.toolbar{display:flex;align-items:center;gap:8px;flex-wrap:wrap}header .toolbar button,header a.button{background:transparent;border-color:transparent}header .toolbar button:hover,header a.button:hover{background:var(--hover)}header #who{margin-right:6px}.muted,small{font-size:12px;color:var(--muted)}main{max-width:1600px;margin:auto;padding:18px 20px 28px}section{padding:18px;background:var(--surface);border:1px solid var(--line);border-radius:9px;margin-bottom:16px;box-shadow:var(--shadow)}h1,h2,p{margin-top:0}h1{font-size:27px;line-height:1.25;letter-spacing:-.8px;margin-bottom:12px}h2{font-size:16px;font-weight:600;letter-spacing:-.35px;margin-bottom:14px}p{line-height:1.7}.profile{display:flex;align-items:end;flex-wrap:wrap;gap:22px}label.field{display:grid;gap:6px;font-size:12px;color:var(--muted)}.profile strong{font-size:14px}.profile input{min-width:126px}.profile #department{width:170px}.profile .muted{margin-bottom:7px}.summary{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));margin:16px 0;background:var(--surface);border:1px solid var(--line);border-radius:9px;overflow:hidden;box-shadow:var(--shadow)}.summary>div{min-width:0;padding:14px 18px;border-right:1px solid var(--line)}.summary>div:last-child{border-right:0;background:var(--accent-soft);color:var(--accent-ink)}.summary strong{display:block;margin-top:4px;font-size:22px;font-weight:600;font-variant-numeric:tabular-nums;letter-spacing:-.6px;white-space:nowrap}.summary strong small{margin-left:2px;font-size:11px;font-weight:400;letter-spacing:0}.summary>div:last-child small{color:var(--accent-ink)}.section-head{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px;margin-bottom:12px}.section-head h2{margin:0}.section-head>.muted{font-size:12px}.policy{margin-bottom:12px;color:var(--muted);font-size:12px}.policy summary{width:fit-content;cursor:pointer;user-select:none}.policy summary:hover{color:var(--ink)}.policy[open] summary{margin-bottom:8px}.note{padding:10px 12px;background:var(--surface-alt);border-left:2px solid var(--input-line);border-radius:3px;font-size:12px;color:var(--muted);line-height:1.8}
.scroll{overflow:auto}table{width:100%;border-collapse:collapse;white-space:nowrap;font-size:13px}th{padding:9px 7px;background:var(--surface-alt);color:var(--muted);font-size:12px;text-align:left;font-weight:500}td{padding:8px 7px}td,th{border-bottom:1px solid var(--line)}td.money,th.money{text-align:right;font-variant-numeric:tabular-nums}td.center,th.center{text-align:center}td input.client{width:220px}td input[type=number]{width:135px}tr.weekend td:first-child{color:var(--danger)}tr.active{background:var(--active)}tbody tr:hover,tbody tr:focus-within{background:var(--accent-soft)}.day-table{table-layout:fixed;min-width:1000px;border-collapse:separate;border-spacing:0}.day-table .day-date{width:60px}.day-table .day-kind{width:96px}.day-table .day-mode{width:104px}.day-table .day-health{width:160px}.day-table .day-night{width:44px}.day-table .day-money{width:76px}.day-table .day-total{width:88px}.day-table td,.day-table th{padding:7px 6px}.day-table td input.client{width:100%;min-width:0}.day-table select{width:100%;padding:6px}.day-table input.client{padding:6px 8px}.day-table input[type=checkbox]{width:17px;height:17px}.day-table input.health-amount{display:inline-block;vertical-align:middle;width:112px;margin:0 0 0 6px;padding:6px;font-size:12px;text-align:right}.day-table th:nth-child(5){text-align:center}.day-table thead th{position:sticky;top:0;z-index:3;background:var(--surface-alt);box-shadow:0 1px 0 var(--line)}.day-scroll{overflow:visible}
.draft-bar{max-width:1560px;margin:14px auto 0;padding:9px 14px;background:var(--surface);border:1px solid var(--line);border-radius:7px;display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:12px;color:var(--muted)}.draft-bar .toolbar button{font-size:12px;min-height:30px;padding:5px 9px}.draft-bar[data-state=error],.draft-bar[data-state=conflict]{background:var(--warning-bg);border-color:var(--warning-line);color:var(--warning)}.draft-bar[data-state=saved],.draft-bar[data-state=loaded]{color:var(--success)}.errors{color:var(--danger);background:var(--danger-bg);border:1px solid var(--danger-line);border-radius:7px;padding:13px;margin:14px 0;font-size:13px;white-space:pre-line}#status{min-height:20px;font-size:13px;color:var(--danger)}.footer-actions{display:flex;justify-content:flex-end;gap:8px;margin:16px 0;padding:12px;background:var(--surface);border:1px solid var(--line);border-radius:8px}.footer-actions #clear{margin-right:auto;color:var(--muted)}dialog{width:calc(100% - 32px);max-width:460px;max-height:calc(100dvh - 48px);padding:24px;border:1px solid var(--line);border-radius:12px;background:var(--surface);color:var(--ink);box-shadow:var(--dialog-shadow);overflow:auto}dialog::backdrop{background:#0006}dialog .field{margin:13px 0}dialog h2{font-size:19px}dialog .toolbar{margin-top:18px}dialog .toolbar button:last-child{margin-left:auto}.admin-form{display:flex;gap:12px;align-items:end;flex-wrap:wrap}.admin-form input{width:180px}.admin-form input[type=password]{width:230px}.login{max-width:420px;margin:10vh auto 32px;padding:30px;border-radius:12px}.login .field{margin:18px 0}.login input{font-size:14px;min-height:40px}.login form button{width:100%;min-height:40px;margin-top:6px}.login h1{margin:10px 0 12px}.login .mark{display:flex;align-items:center;gap:9px;color:var(--muted);font-size:11px;font-weight:600;letter-spacing:1.3px}.login .mark img{width:26px;height:26px}.login>p:last-child{margin:20px 0 0;font-size:12px}.login-theme{display:flex;justify-content:flex-end;margin-bottom:16px}.login .theme-toggle{width:auto;min-height:30px;font-size:12px;background:var(--surface-alt);border-color:transparent}
@media(min-width:1601px){.draft-bar{margin-left:auto;margin-right:auto}}@media(max-width:1599px){.draft-bar{margin-left:20px;margin-right:20px}}@media(max-width:1099px){header{flex-wrap:wrap;gap:10px}.summary{grid-template-columns:repeat(3,minmax(0,1fr))}.summary>div:nth-child(3){border-right:0}.summary>div:nth-child(-n+3){border-bottom:1px solid var(--line)}.day-scroll{overflow:auto;max-height:75vh;max-height:75dvh}}@media(max-width:800px){header{padding:12px 14px}header .toolbar{gap:4px}header .toolbar button,header a.button{font-size:12px;padding:6px 8px}.brand img{width:26px;height:26px}main{padding:12px}.draft-bar{margin:12px 12px 0;align-items:start;flex-direction:column}.summary{grid-template-columns:repeat(2,minmax(0,1fr));margin:12px 0}.summary>div{padding:12px;border-bottom:1px solid var(--line)}.summary>div:nth-child(3){border-right:1px solid var(--line)}.summary>div:nth-child(even){border-right:0}.summary>div:nth-last-child(-n+2){border-bottom:0}.summary strong{font-size:20px}section{padding:13px}.profile{gap:12px}.profile #department{width:150px}.section-head>.muted{font-size:11px}.footer-actions{flex-wrap:wrap;padding:10px}.login{margin:6vh 16px 24px;max-width:none;padding:24px}dialog{padding:20px}}@media(prefers-reduced-motion:reduce){*{transition:none!important}}

/* Consistent UI typography across operating systems. */
body{font-weight:400}label.field,.summary>div>small{font-weight:500}
