:root {
  --ink:#202e3a; --muted:#526270; --blue:#225a88; --pale:#e9f1f7; --line:#d7dfe3; --paper:#fff; --canvas:#f2f4f4; --amber:#fac561;
  color:var(--ink); background:var(--canvas); font:400 16px/1.55 Inter,system-ui,sans-serif;
}
body { min-width:0; }
button { cursor:pointer; }
button:disabled { cursor:default; color:#78828b; }
:focus-visible { outline:3px solid #b47909; outline-offset:3px; }
h1:focus { outline:none; }
.wrap { width:min(1220px,calc(100% - 64px)); margin-inline:auto; }
.skip,.sr-only { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
.skip:focus { z-index:2200; width:auto; height:auto; clip-path:none; color:white; padding:10px 15px; background:var(--blue); }
.mast { color:white; background:#1e2d3a; }
.mast>.wrap { min-height:70px; gap:13px; }
.brand { gap:11px; font-size:1.38rem; line-height:1.1; font-weight:650; letter-spacing:-.05em; }
.brand>span { display:grid; place-items:center; width:40px; height:40px; border-radius:8px; background:var(--amber); }
.back { min-height:44px; gap:8px; font-size:.92rem; }
.back img { filter:invert(1); }
.back:hover,.footer a:hover,.footer button:hover { text-decoration:underline; }
.workbar { background:#fff; border-bottom:1px solid var(--line); }
.tools { min-height:76px; padding-block:12px; gap:15px; }
.roles { gap:3px; padding:4px; background:#edf0f0; border:1px solid var(--line); border-radius:8px; }
.roles button { display:flex; align-items:center; justify-content:center; gap:8px; min-height:44px; padding:7px 15px; border-radius:5px; font-size:.95rem; color:var(--muted); }
.roles img { width:19px; height:19px; }
.roles button[aria-pressed="true"] { background:white; color:var(--ink); font-weight:590; box-shadow:0 1px 5px #26374625; }
.clock-tools,.clock,#clock-buttons { display:flex; align-items:center; }
.clock-tools { gap:14px; }
.clock { gap:8px; }
.clock img { width:22px; }
.clock small,.clock strong { display:block; }
.clock small { font-size:.76rem; color:var(--muted); }
.clock strong { font:600 1.2rem/1.15 'Geist Mono',monospace; letter-spacing:-.06em; }
#clock-buttons { gap:4px; }
#clock-buttons button { min-height:44px; padding:6px 10px; border:1px solid var(--line); border-radius:5px; font-size:.83rem; font-weight:510; background:#fff; }
#clock-buttons button:hover:enabled { background:var(--pale); }
.work { min-height:60vh; padding:clamp(30px,4vw,57px) 0 34px; }
.eyebrow { display:inline-flex; align-items:center; gap:8px; margin-bottom:8px; font:500 .78rem/1.5 'Geist Mono',monospace; text-transform:uppercase; letter-spacing:.04em; color:#4a6274; }
.eyebrow::before { content:''; display:inline-block; width:16px; height:7px; background:repeating-linear-gradient(125deg,#dc9e36 0 3px,transparent 3px 5px); }
#page-heading h1 { font-size:clamp(2.1rem,4.4vw,3.65rem); line-height:1.08; font-weight:610; letter-spacing:-.065em; }
#page-heading>p { max-width:74ch; margin:10px 0 23px; color:var(--muted); font-size:1.05rem; }
#page-heading .notice { max-width:none; margin:8px 0 20px; padding:10px 15px; border-left:3px solid #3e6e94; background:#e5eff6; color:#233f55; font-size:.94rem; }
#absence-value { display:flex; flex-wrap:wrap; gap:12px 25px; padding:16px 19px; background:#fff7e3; border:1px solid #dfc58a; border-left:4px solid #c99431; border-radius:8px; margin:0 0 18px; }
.absence-intro { flex:1 1 420px; }
.absence-intro h2 { font-size:1.12rem; font-weight:620; color:#44361e; }
.absence-intro p,.absence-total p,.absence-total li,.absence-foot p { font-size:1rem; line-height:1.45; color:#665438; }
.absence-intro .absence-example { margin:4px 0 0; font-size:1rem; color:#433820; }
.absence-example strong { font-weight:660; white-space:nowrap; }
.absence-total { flex:0 1 330px; }
.absence-total small { display:block; font-size:.8rem; color:#695531; }
.absence-total strong { display:block; color:#4c391c; font-size:1.4rem; font-weight:650; }
.absence-total summary { display:flex; align-items:center; gap:6px; min-height:44px; text-decoration:underline; text-underline-offset:3px; font-size:.9rem; cursor:pointer; }
.absence-total summary::after { content:'+'; }
.absence-total details[open] summary::after { content:'−'; }
.absence-total li { margin:5px 0; }
.absence-foot { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; column-gap:20px; flex-basis:100%; border-top:1px solid #e5d8b6; padding-top:6px; }
.absence-foot a { display:inline-flex; align-items:center; gap:4px; min-height:44px; font-size:.93rem; font-weight:560; text-underline-offset:3px; text-decoration:underline; color:#4c391c; }
#metrics { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; margin:20px 0; }
#metrics[hidden] { display:none; }
.metric { min-width:0; padding:15px 19px; border:1px solid var(--line); border-radius:9px; background:white; }
.metric:first-child { background:#e4edf3; border-color:#c9d8e2; }
.metric>span { display:flex; align-items:center; gap:8px; font-size:.91rem; color:var(--muted); }
.metric strong { display:block; margin-top:6px; font-weight:640; font-size:1.7rem; line-height:1.2; letter-spacing:-.055em; }
.metric small { color:var(--muted); font-size:.86rem; font-weight:440; letter-spacing:0; }
.ico { flex:none; width:18px; height:18px; }
.layout { display:grid; grid-template-columns:minmax(0,1.12fr) minmax(0,1fr); gap:18px; align-items:start; grid-template-areas:'primary map' 'secondary map'; }
#primary { grid-area:primary; }
#secondary { grid-area:secondary; }
#primary,#secondary { display:grid; min-width:0; align-content:start; gap:15px; }
.map-card { grid-area:map; }
.panel { min-width:0; background:white; border:1px solid var(--line); border-radius:10px; box-shadow:0 2px 10px #253c5005; }
.panel-head { display:flex; justify-content:space-between; align-items:center; gap:14px; padding:16px 20px; border-bottom:1px solid var(--line); }
.panel-head h2 { font-size:1.16rem; font-weight:630; letter-spacing:-.035em; }
.panel-head .ico,.panel-head>img { opacity:.72; }
.pad,.map-pick,.map-note { padding:17px 20px; }
.pad>p,.map-note,.roster p,.pay-row p,.pay-note,.empty { color:var(--muted); line-height:1.54; font-size:.97rem; }
.pad>p+p { margin-top:6px; }
label { display:grid; gap:5px; color:var(--ink); font-size:.89rem; font-weight:550; }
select { width:100%; min-width:0; min-height:44px; border:1px solid #adbbc5; padding:8px 28px 8px 10px; border-radius:5px; background:#fff; color:var(--ink); font-size:.96rem; font-weight:430; }
.form-grid { display:grid; grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr); gap:10px; margin-top:16px; }
.end-time { align-self:end; padding-block:4px; }
.end-time small,.end-time span { display:block; }
.end-time small { color:var(--muted); font-size:.84rem; }
.end-time span { font:560 1rem/1.6 'Geist Mono', monospace; }
.map-pick { display:grid; gap:5px; }
.map-note { font-size:.88rem; }
peta-proyek { display:block; min-width:0; }
.actions { display:flex; flex-wrap:wrap; gap:7px; margin-top:13px; }
.btn { display:inline-flex; gap:8px; align-items:center; justify-content:center; min-height:44px; padding:9px 14px; border-radius:5px; font-size:.94rem; line-height:1.35; font-weight:550; }
.main-btn { color:white; background:var(--blue); }
.main-btn:hover { background:#19466c; }
.main-btn img { filter:invert(1); }
.plain { color:#29465a; border:1px solid #c4d0d8; background:#fff; }
.plain:hover { background:#eff5f8; }
.roster { padding:0 19px; }
.roster li { padding:17px 0; }
.roster li + li,.pay-row + .pay-row { border-top:1px solid var(--line); }
.roster-head { display:flex; justify-content:space-between; align-items:center; gap:7px 12px; flex-wrap:wrap; }
.roster-head strong,.job-name h3 { font-size:1.09rem; font-weight:620; letter-spacing:-.035em; }
.roster p,.pay-row p { margin-top:6px; }
.roster .actions .btn { font-size:.87rem; }
.pill { display:inline-flex; align-items:center; padding:4px 8px; border-radius:6px; color:#334858; background:#e9eef1; font-size:.78rem; line-height:1.35; font-weight:570; }
.pill.green { background:#deefe1; color:#30583d; }
.pill.warn { background:#ffedcb; color:#644919; }
.callout { display:flex; align-items:center; gap:12px; background:#e8eff3; border:1px solid var(--line); border-radius:8px; padding:14px 16px; color:#354e60; }
.pay-note { padding:14px 19px; background:#f2f5f6; }
.pay-row { padding:15px 19px; }
.pay-row>.pill { margin-top:8px; }
.pay-row b { color:#28516c; }
.exit-review { display:grid; justify-items:start; gap:10px; margin-top:12px; padding:12px; background:#fff6e1; border:1px solid #e5cf9f; border-radius:6px; }
.exit-review p { color:#5a4828; margin:0; }
.exit-review input { min-height:44px; padding:6px 10px; border:1px solid #a3987e; border-radius:5px; background:white; font-size:1rem; color:var(--ink); }
.choose-worker { margin-bottom:16px; }
.job-name { display:flex; align-items:center; gap:12px; }
.job-name small { color:var(--muted); font-size:.82rem; }
.blueprint-icon { display:grid; place-items:center; width:45px; height:45px; border-radius:8px; background:var(--pale); }
.job-status { margin:11px 0 6px; }
.pad .hint { border-top:1px dashed var(--line); margin-top:16px; padding-top:12px; font-size:.87rem; }
.pad .share-state { font-weight:560; color:#234f75; }
.footer { min-height:75px; display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:6px 15px; padding:12px 0; border-top:1px solid var(--line); font-size:.86rem; color:var(--muted); }
.footer>div { display:flex; gap:14px; flex-wrap:wrap; }
.footer a,.footer button { display:inline-flex; align-items:center; min-height:44px; text-decoration:underline; text-underline-offset:3px; }
dialog { color:var(--ink); background:#fff; border:1px solid var(--line); border-radius:10px; width:min(420px,calc(100% - 24px)); padding:22px; }
dialog::backdrop { background:#17263080; }
dialog h2 { font-size:1.25rem; font-weight:630; letter-spacing:-.03em; }
dialog p { margin:7px 0 18px; color:var(--muted); }
dialog form>div { display:flex; flex-wrap:wrap; justify-content:flex-end; gap:7px; }
@media(max-width:900px) {
  .wrap { width:calc(100% - 36px); }
  .form-grid { grid-template-columns:1fr; }
  .layout { gap:12px; }
  .pad,.map-pick,.map-note,.panel-head { padding:15px; }
}
@media(max-width:700px) {
  .layout { grid-template-columns:minmax(0,1fr); grid-template-areas:'primary' 'map' 'secondary'; }
  .tools { gap:10px; }
  .roster { padding-inline:15px; }
}
@media(max-width:540px) {
  .wrap { width:calc(100% - 28px); }
  .mast>.wrap { min-height:58px; }
  .brand { font-size:1.16rem; gap:7px; }
  .brand>span { width:34px; height:34px; }
  .back { font-size:.77rem; gap:4px; }
  .roles { width:100%; }
  .roles button { flex:1; }
  .clock-tools { width:100%; justify-content:space-between; gap:4px; }
  .clock { gap:6px; } .clock small { font-size:.7rem; }
  #clock-buttons button { padding-inline:6px; font-size:.78rem; }
  .work { padding-top:25px; }
  #metrics { gap:5px; margin:16px 0; }
  .metric { padding:10px 8px; }
  .metric>span { align-items:flex-start; min-height:2.7em; font-size:.77rem; line-height:1.35; }
  .metric>span .ico { display:none; }
  .metric strong { font-size:1.3rem; }
  .metric small { font-size:.72rem; }
}
