:root{
  --bg:#f4f6f5;--panel:#fff;--ink:#071417;--muted:#657276;--line:#dce3e1;
  --accent:#74f0c6;--accent-2:#163c37;--warn:#f4b954;--danger:#d95c5c;--ok:#238b68;
  --shadow:0 16px 46px rgba(7,20,23,.08);--radius:20px;--radius-sm:13px;
}
*{box-sizing:border-box}html,body{margin:0;min-height:100%;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--ink);background:var(--bg)}
button,input,select,textarea{font:inherit}button{cursor:pointer}a{color:inherit}.hidden{display:none!important}
.login-shell{min-height:100vh;display:grid;grid-template-columns:1.08fr .92fr;background:#071417;color:#fff}
.brand-card{padding:8vw;display:flex;align-items:center;gap:22px;background:radial-gradient(circle at 20% 20%,rgba(116,240,198,.19),transparent 35%),linear-gradient(145deg,#071417,#0b2424 70%,#0e342f)}
.brand-card h1{font-size:clamp(42px,7vw,92px);margin:.1em 0;line-height:.9;letter-spacing:-.055em}.brand-mark{width:78px;height:78px;border-radius:23px;background:var(--accent);color:#071417;display:grid;place-items:center;font-weight:900;font-size:28px;box-shadow:0 16px 32px rgba(116,240,198,.18)}.brand-mark.small{width:42px;height:42px;border-radius:13px;font-size:16px;box-shadow:none}.eyebrow{font-size:12px;font-weight:800;letter-spacing:.16em;text-transform:uppercase;color:#8ea09f;margin:0 0 8px}.brand-card .eyebrow{color:#8dc9b7}.login-card{background:#fff;color:var(--ink);display:flex;flex-direction:column;justify-content:center;padding:clamp(34px,8vw,110px)}.login-card h2{font-size:38px;margin:0 0 10px}.kicker{font-weight:800;color:var(--ok);margin:0 0 10px}.muted{color:var(--muted)}.stack{display:grid;gap:16px;margin-top:24px}.stack label,.field{display:grid;gap:8px;font-size:13px;font-weight:750;min-width:0}.stack input,.field input,.field select,.field textarea{width:100%;min-width:0;border:1px solid var(--line);background:#fbfcfc;border-radius:13px;padding:13px 14px;outline:none;font-size:16px}.stack input:focus,.field input:focus,.field select:focus,.field textarea:focus{border-color:#67cdb0;box-shadow:0 0 0 3px rgba(116,240,198,.18)}
input[type=date],input[type=time],input[type=month]{-webkit-appearance:none;appearance:none;max-width:100%;min-height:46px;color:var(--ink)}.btn{border:0;border-radius:13px;padding:12px 16px;font-weight:850;background:#e9efed;color:var(--ink)}.btn.primary{background:var(--ink);color:#fff}.btn.accent{background:var(--accent);color:var(--ink)}.btn.danger{background:#feeaea;color:#8c3030}.btn.ghost{background:transparent;border:1px solid var(--line)}.btn.small{padding:8px 11px;border-radius:10px;font-size:12px}.wide{width:100%}.demo-box{margin-top:22px;border-top:1px solid var(--line);padding-top:18px;color:var(--muted)}.demo-box summary{cursor:pointer;font-weight:700}.link-btn{border:0;background:none;text-decoration:underline;margin:12px 8px 0 0;color:var(--ink);padding:0}
.app-shell{min-height:100vh;display:grid;grid-template-columns:260px 1fr}.sidebar{background:#071417;color:#fff;min-height:100vh;position:sticky;top:0;height:100vh;padding:22px 16px;display:flex;flex-direction:column}.sidebar-brand{display:flex;align-items:center;gap:11px;padding:4px 6px 22px}.sidebar-brand strong{display:block}.sidebar-brand span{display:block;color:#7f9491;font-size:12px;margin-top:2px}#nav{display:grid;gap:6px}.nav-btn{border:0;background:transparent;color:#9ab0ac;padding:11px 12px;border-radius:12px;text-align:left;font-weight:750;display:flex;align-items:center;gap:10px}.nav-btn:hover,.nav-btn.active{background:#112724;color:#fff}.nav-icon{width:24px;text-align:center}.sidebar-user{margin-top:auto;border-top:1px solid #1e3432;padding:16px 4px 2px;display:flex;align-items:center;gap:10px}.sidebar-user strong{display:block;font-size:13px}.sidebar-user span{display:block;color:#78908b;font-size:11px;text-transform:capitalize}.avatar{width:34px;height:34px;border-radius:50%;background:var(--accent);color:#071417;display:grid;place-items:center;font-weight:900}.grow{flex:1}.icon-btn{border:0;background:#142a27;color:#fff;width:34px;height:34px;border-radius:10px}.main{padding:34px 38px 60px;max-width:1500px;width:100%;margin:0 auto}.topbar{display:flex;justify-content:space-between;align-items:flex-end;gap:20px;margin-bottom:26px}.topbar h1{font-size:34px;letter-spacing:-.035em;margin:0}.topbar .eyebrow{color:#758583}.top-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.mobile-nav{display:none}.topbar-row{display:flex;justify-content:space-between;align-items:flex-end;gap:16px;flex:1}.profile-menu{display:none;position:relative;flex:none}.avatar-btn{border:0;width:38px;height:38px;border-radius:50%;background:var(--accent);color:var(--ink);font-weight:900;font-size:13px;display:grid;place-items:center}.profile-dropdown{position:absolute;top:calc(100% + 8px);right:0;background:#fff;border:1px solid var(--line);border-radius:12px;box-shadow:0 10px 30px rgba(7,20,23,.15);padding:6px;display:flex;flex-direction:column;gap:2px;min-width:190px;z-index:30}.profile-dropdown.hidden{display:none}.profile-dropdown-header{padding:10px 12px 8px;margin-bottom:4px;border-bottom:1px solid var(--line)}.profile-dropdown-header strong{display:block;font-size:13px}.profile-dropdown-header span{display:block;font-size:11px;color:var(--muted);text-transform:capitalize;margin-top:2px}.profile-dropdown button{border:0;background:transparent;text-align:left;padding:10px 12px;border-radius:8px;font-weight:750;font-size:13px;color:var(--ink)}.profile-dropdown button:hover{background:#f3f6f5}
.grid{display:grid;gap:16px}.grid.cols-4{grid-template-columns:repeat(4,1fr)}.grid.cols-3{grid-template-columns:repeat(3,1fr)}.grid.cols-2{grid-template-columns:repeat(2,1fr)}.card{background:var(--panel);border:1px solid #e4e9e7;border-radius:var(--radius);padding:20px;box-shadow:0 1px 1px rgba(7,20,23,.02)}.card h2,.card h3{margin:0 0 14px;letter-spacing:-.025em}.stat-label{font-size:12px;color:var(--muted);font-weight:750}.stat-value{font-size:30px;font-weight:900;letter-spacing:-.04em;margin-top:8px}.stat-sub{font-size:12px;color:var(--muted);margin-top:4px}.section-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:28px 0 12px}.section-head h2{margin:0;font-size:20px}.section-head p{margin:4px 0 0;color:var(--muted);font-size:13px}.table-wrap{overflow:auto;background:#fff;border:1px solid #e3e9e7;border-radius:18px}.card+.table-wrap{margin-top:16px}.table{width:100%;border-collapse:collapse;min-width:720px}.table th,.table td{padding:13px 15px;text-align:left;border-bottom:1px solid #edf1ef;font-size:13px;vertical-align:middle}.table th{font-size:11px;text-transform:uppercase;letter-spacing:.08em;color:#788783;background:#f9fbfa;position:sticky;top:0}.table tr:last-child td{border-bottom:0}.table-select{border:1px solid var(--line);background:#fbfcfc;border-radius:10px;padding:7px 9px;font-size:12px;font-weight:750;color:var(--ink)}.badge{display:inline-flex;align-items:center;gap:6px;padding:6px 9px;border-radius:999px;font-size:11px;font-weight:850;text-transform:capitalize}.badge.pending{background:#fff1d8;color:#946117}.badge.approved,.badge.sent{background:#dff5ec;color:#16664e}.badge.rejected,.badge.failed{background:#fae2e2;color:#993d3d}.badge.demo{background:#e8ecfb;color:#4258a8}.dot{width:6px;height:6px;border-radius:50%;background:currentColor}.actions{display:flex;gap:7px;flex-wrap:wrap}.empty{padding:36px;text-align:center;color:var(--muted);background:#fff;border:1px dashed var(--line);border-radius:18px}.list{display:grid;gap:10px}.list-item{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:14px 0;border-bottom:1px solid #edf1ef}.list-item:last-child{border:0}.list-main strong{display:block;font-size:14px}.list-main span{display:block;color:var(--muted);font-size:12px;margin-top:3px}.fn-groups{display:grid;gap:12px}.fn-group-label{display:block;font-size:11px;font-weight:850;text-transform:uppercase;letter-spacing:.06em;color:#4f8d78}.fn-group-names{display:block;font-size:13px;margin-top:3px;color:var(--ink)}.pill{background:#edf5f2;padding:7px 10px;border-radius:999px;font-weight:800;font-size:12px}.schedule-grid{display:grid;grid-template-columns:130px repeat(7,minmax(115px,1fr));gap:1px;background:#dfe5e3;border:1px solid #dfe5e3;border-radius:18px;overflow:auto}.schedule-cell{background:#fff;padding:13px;min-height:74px;font-size:12px}.schedule-cell.head{background:#f7f9f8;min-height:auto;font-weight:850;color:#6d7c79}.schedule-cell.head.is-today{color:var(--ok)}.schedule-cell.name{font-weight:850}.name-sub{display:block;font-weight:700;font-size:11px;color:var(--muted);text-transform:none;margin-top:3px}.schedule-cell.name.me{color:var(--ok)}.schedule-cell.is-today{background:#f5fcfa}.schedule-cell.clickable{cursor:pointer}.schedule-cell.clickable:hover{background:#eef6f3}.shift{margin-top:7px;background:#e6f7f1;color:#145c48;border-radius:10px;padding:7px 8px;font-weight:850}.off{margin-top:7px;color:#a0aaa7}.callout{border-radius:16px;padding:15px 16px;background:#e9f8f3;border:1px solid #cfeee4;color:#184e40;font-size:13px}.callout.warn{background:#fff5e4;border-color:#f5dfb9;color:#745018}
.daycell{position:relative;border-radius:10px;padding:8px 9px;font-weight:850;font-size:12px}
.daycell.WORK{background:#e6f7f1;color:#145c48}
.daycell.OFF{background:#f1f3f2;color:#8b9793}
.daycell.REST_DAY{background:#fff0d9;color:#8a5a12}
.daycell.draft{border:1px dashed #b7a06a}
.draft-dot{position:absolute;top:6px;right:6px;width:7px;height:7px;border-radius:50%;background:#e0a633;box-shadow:0 0 0 2px rgba(255,255,255,.7)}
.legend{display:flex;gap:16px;flex-wrap:wrap;margin:12px 2px 0;font-size:12px;color:var(--muted)}
.legend-item{display:flex;align-items:center;gap:6px}
.dot.WORK{width:10px;height:10px;border-radius:50%;background:#145c48}
.dot.OFF{width:10px;height:10px;border-radius:50%;background:#8b9793}
.dot.REST_DAY{width:10px;height:10px;border-radius:50%;background:#e0a633}
.holiday-flag{color:#c0392b;font-size:11px;margin-left:2px}
.week-nav-bar{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:16px}
.week-switcher{display:flex;align-items:center;gap:4px;background:#fff;border:1px solid var(--line);border-radius:999px;padding:4px}
.week-switcher .btn.icon{width:30px;height:30px;padding:0;border-radius:999px;display:grid;place-items:center;line-height:1;flex:none}
.week-label{font-weight:850;font-size:13px;padding:0 6px;white-space:nowrap}
.week-nav-bar .btn.primary{margin-left:auto}
.badge.daytype{background:#eef2f0;color:#445049}
.badge.daytype.work{background:#dff5ec;color:#16664e}
.badge.daytype.off{background:#eef0ef;color:#5f6a67}
.badge.daytype.rest{background:#fff1d8;color:#8a5a12}
.pill.small{padding:4px 8px;font-size:10px;font-weight:850}
.ot-list{display:grid;gap:12px}
.ot-card{background:#fff;border:1px solid #e3e9e7;border-radius:16px;padding:16px}
.ot-card-head{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:12px}
.ot-card-title{font-size:14px}
.ot-card-body{display:grid;grid-template-columns:repeat(2,1fr);gap:10px 18px}
.ot-fact{font-size:12.5px;display:flex;flex-direction:column;gap:3px}
.ot-fact.full{grid-column:1/-1}
.ot-badge{display:inline-flex;align-items:center;justify-content:center;min-width:15px;height:15px;padding:0 3px;border-radius:5px;font-size:10px;font-weight:900;line-height:1;margin-left:5px;vertical-align:middle}
.ot-badge.holiday{background:#fae2e2;color:#993d3d}
.ot-badge.rank{background:#fff1d8;color:#8a5a12}
.ot-select{width:15px;height:15px;margin-right:2px;vertical-align:middle}
.bulk-bar{display:flex;align-items:center;gap:14px;flex-wrap:wrap;background:#eef2f0;border:1px solid var(--line);border-radius:14px;padding:11px 14px;margin-bottom:12px}
.bulk-bar.hidden{display:none}
.bulk-all{display:flex;align-items:center;gap:7px;font-size:13px;font-weight:750}
.bulk-count{color:var(--muted);font-size:12px;font-weight:750}
.bulk-actions{display:flex;gap:8px;margin-left:auto}
.ot-fact>span:first-child{color:var(--muted);font-weight:750;font-size:11px;text-transform:uppercase;letter-spacing:.04em}.tabs{display:flex;gap:6px;background:#e8edeb;border-radius:13px;padding:4px;width:max-content;max-width:100%;overflow:auto}.tab{border:0;background:transparent;padding:8px 12px;border-radius:10px;color:#6b7976;font-weight:800;white-space:nowrap}.tab.active{background:#fff;color:#071417;box-shadow:0 1px 4px rgba(0,0,0,.06)}.form-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:14px}.field.full{grid-column:1/-1}.field textarea{min-height:90px;resize:vertical}.form-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:8px;grid-column:1/-1}.big-number{font-size:44px;font-weight:950;letter-spacing:-.05em}.progress-row{display:flex;justify-content:space-between;font-size:12px;color:var(--muted);margin-bottom:6px}.bar{height:8px;background:#edf1ef;border-radius:99px;overflow:hidden}.bar>span{display:block;height:100%;background:var(--accent-2);border-radius:99px}.audit-row{display:grid;grid-template-columns:150px 140px 1fr;gap:14px;padding:11px 0;border-bottom:1px solid #edf1ef;font-size:12px}.audit-row:last-child{border-bottom:0}.codeish{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:11px;color:#53625f}.toast{position:fixed;right:24px;bottom:24px;z-index:100;background:#071417;color:#fff;padding:12px 16px;border-radius:12px;box-shadow:var(--shadow);opacity:0;transform:translateY(10px);pointer-events:none;transition:.2s}.toast.show{opacity:1;transform:none}.toast.error{background:#8f3333}.modal{border:0;border-radius:22px;padding:0;max-width:620px;width:calc(100% - 28px);box-shadow:0 30px 90px rgba(0,0,0,.25)}.modal::backdrop{background:rgba(7,20,23,.55);backdrop-filter:blur(2px)}.modal-inner{padding:22px}.modal-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px}.modal-head h2{margin:0}.close-btn{border:0;background:#eef2f0;width:36px;height:36px;border-radius:12px;font-size:18px}
@media(max-width:1100px){.grid.cols-4{grid-template-columns:repeat(2,1fr)}.grid.cols-3{grid-template-columns:repeat(2,1fr)}.app-shell{grid-template-columns:220px 1fr}.main{padding:28px 24px 90px}}
@media(max-width:760px){.login-shell{grid-template-columns:1fr}.brand-card{min-height:220px;padding:36px}.brand-card h1{font-size:52px}.login-card{padding:34px 26px;justify-content:flex-start}.sidebar{display:none}.app-shell{display:block}.main{padding:22px 16px 92px}.topbar{flex-direction:column;align-items:stretch}.topbar h1{font-size:28px}.topbar-row{align-items:center}#topbarActions:not(:empty){margin-top:14px}.profile-menu{display:block}.grid.cols-4,.grid.cols-3,.grid.cols-2,.form-grid{grid-template-columns:1fr}.mobile-nav{position:fixed;z-index:20;bottom:0;left:0;right:0;height:74px;padding:8px 8px max(8px,env(safe-area-inset-bottom));background:rgba(255,255,255,.96);border-top:1px solid var(--line);display:flex;justify-content:space-around;backdrop-filter:blur(14px)}.mobile-nav .nav-btn{color:#70807d;padding:6px 8px;display:grid;place-items:center;gap:2px;font-size:10px;background:transparent}.mobile-nav .nav-btn.active{color:#071417;background:#e8f3ef}.mobile-nav .nav-icon{font-size:18px}.schedule-grid{grid-template-columns:105px repeat(7,110px)}.audit-row{grid-template-columns:1fr;gap:3px}.modal{border-radius:18px}.section-head{align-items:flex-end}.card{padding:17px}.ot-card-body{grid-template-columns:1fr}.week-nav-bar .btn.primary{flex:1 1 100%;margin-left:0}.week-label{font-size:12px}}
