:root {
  color-scheme: light;
  --ink: #17211c;
  --muted: #67716b;
  --line: #dfe3df;
  --canvas: #f4f5f1;
  --surface: #fff;
  --sidebar: #17211c;
  --green: #217a55;
  --green-soft: #e7f2ec;
  --amber: #b76a18;
  --amber-soft: #fff0dc;
  --red: #b4453c;
  --red-soft: #fbe9e7;
  --blue: #3d6898;
  --blue-soft: #e8eff7;
  --shadow: 0 12px 32px rgba(23, 33, 28, .07);
  font-family: Inter, "SF Pro Display", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--canvas); color: var(--ink); }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
.is-hidden { display: none !important; }

.login-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(360px, .92fr) minmax(480px, 1.08fr);
  background: var(--surface);
}

.login-brand {
  min-height: 100vh;
  padding: 52px clamp(42px, 6vw, 92px);
  color: #f7f4ec;
  background: var(--sidebar);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.login-brand::after {
  content: "08:00";
  position: absolute;
  right: -26px;
  bottom: 4vh;
  font-size: clamp(88px, 13vw, 190px);
  font-weight: 800;
  letter-spacing: -.09em;
  color: rgba(255,255,255,.035);
  line-height: .8;
}

.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); font-weight: 760; font-size: 21px; text-decoration: none; letter-spacing: -.03em; }
.brand > span:last-child { display: grid; gap: 2px; }
.brand > span:last-child strong { font: inherit; }
.brand > span:last-child small { color: #9ca8a1; font-size: 8px; font-weight: 750; letter-spacing: .03em; }
.brand--light { color: #fff; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 10px;
  display: grid; place-items: center;
  background: #f2c762; color: var(--ink); font-weight: 900;
}
.brand-mark--logo { padding: 3px; overflow: hidden; background: #fff; }
.brand-mark--logo img { width: 100%; height: 100%; object-fit: contain; }
.login-copy { max-width: 580px; position: relative; z-index: 1; }
.eyebrow { display: block; margin-bottom: 14px; color: var(--green); font-size: 11px; font-weight: 800; letter-spacing: .14em; }
.eyebrow--light { color: #f2c762; }
.login-copy h1 { margin: 0; font-size: clamp(52px, 6vw, 90px); line-height: .92; letter-spacing: -.065em; }
.login-copy p { max-width: 490px; margin: 28px 0 0; font-size: 17px; line-height: 1.65; color: #bfc8c2; }
.login-foot { margin: 0; color: #89948e; font-size: 12px; letter-spacing: .04em; }
.login-card { width: min(440px, calc(100% - 64px)); margin: auto; display: grid; gap: 24px; }
.login-card h2 { margin: 0 0 8px; font-size: 34px; letter-spacing: -.045em; }
.login-card p { margin: 0; color: var(--muted); }
.login-card label, .form-field label { display: grid; gap: 9px; font-size: 13px; font-weight: 700; }
.login-card input, .form-field input, .form-field select, .form-field textarea, .toolbar input, .toolbar select {
  min-height: 48px; border: 1px solid var(--line); border-radius: 12px; padding: 0 14px;
  color: var(--ink); background: #fff; outline: none; transition: border .15s, box-shadow .15s;
}
.login-card input:focus, .form-field input:focus, .form-field select:focus, .form-field textarea:focus, .toolbar input:focus, .toolbar select:focus {
  border-color: var(--green); box-shadow: 0 0 0 3px rgba(33,122,85,.1);
}
.login-card small { text-align: center; color: #8b938e; }
.form-error { min-height: 18px; font-size: 13px; color: var(--red) !important; }

.button { min-height: 42px; padding: 0 15px; border: 0; border-radius: 11px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; font-weight: 750; font-size: 13px; }
.button--primary { color: #fff; background: var(--green); }
.button--primary:hover { background: #1c6849; }
.button--secondary { color: var(--ink); background: #eef0ed; }
.button--danger { color: var(--red); background: var(--red-soft); }
.button--danger:hover { background: #f5d7d3; }
.button--danger-solid { color: #fff; background: var(--red); }
.button--danger-solid:hover { background: #a93631; }
.button--wide { min-height: 52px; justify-content: space-between; padding: 0 18px; }
.button--small { min-height: 34px; padding: 0 11px; font-size: 12px; border-radius: 9px; }

.app-shell { min-height: 100vh; display: grid; grid-template-columns: 248px 1fr; }
.sidebar {
  width: 248px; height: 100vh; position: sticky; top: 0;
  background: var(--sidebar); color: #fff; padding: 32px 20px 22px;
  display: flex; flex-direction: column;
}
.sidebar nav { display: grid; gap: 5px; margin-top: 52px; }
.nav-item {
  width: 100%; min-height: 45px; border: 0; border-radius: 10px; padding: 0 12px;
  display: flex; align-items: center; gap: 12px;
  color: #aab5af; background: transparent; text-align: left; font-weight: 650; font-size: 13px;
}
.nav-item:hover { color: #fff; background: rgba(255,255,255,.055); }
.nav-item.is-active { color: #17211c; background: #f2c762; }
.nav-icon { width: 19px; font-size: 16px; text-align: center; }
.nav-item b { min-width: 20px; margin-left: auto; padding: 3px 6px; border-radius: 99px; background: var(--red); color: #fff; text-align: center; font-size: 10px; }
.nav-item b:empty { display: none; }
.sidebar-user {
  margin-top: auto; padding: 16px 4px 0; border-top: 1px solid rgba(255,255,255,.09);
  display: grid; grid-template-columns: 36px 1fr 26px; align-items: center; gap: 10px;
}
.avatar { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: #315143; color: #fff; font-size: 11px; font-weight: 800; }
.sidebar-user strong, .sidebar-user small { display: block; }
.sidebar-user strong { font-size: 12px; }
.sidebar-user small { margin-top: 3px; color: #8f9a94; font-size: 10px; }
.sidebar-user button { border: 0; background: transparent; color: #8f9a94; font-size: 17px; }

.main { min-width: 0; }
.topbar {
  min-height: 102px; padding: 24px clamp(24px, 4vw, 58px);
  display: flex; align-items: center; justify-content: space-between; gap: 28px;
  border-bottom: 1px solid var(--line); background: rgba(244,245,241,.94);
  position: sticky; top: 0; z-index: 10; backdrop-filter: blur(14px);
}
.breadcrumb { margin: 0 0 7px; color: #9aa19d; font-size: 9px; font-weight: 800; letter-spacing: .13em; }
.topbar h1 { margin: 0; font-size: 25px; letter-spacing: -.04em; }
.topbar-actions { display: flex; align-items: center; gap: 14px; }
.server-status { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 11px; font-weight: 700; }
.server-status i { width: 7px; height: 7px; border-radius: 50%; background: #55a87d; box-shadow: 0 0 0 4px rgba(85,168,125,.12); }
.icon-button, .menu-button { width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); font-weight: 800; }
.menu-button { display: none; }
.content { padding: 36px clamp(24px, 4vw, 58px) 64px; }
.loading { height: 55vh; display: grid; place-content: center; justify-items: center; color: var(--muted); }
.loading span { width: 28px; height: 28px; border: 3px solid var(--line); border-top-color: var(--green); border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.hero-row { display: grid; grid-template-columns: 1.4fr .6fr; gap: 18px; margin-bottom: 18px; }
.hero-card {
  min-height: 210px; padding: 30px; border-radius: 18px; background: var(--sidebar); color: #fff;
  display: flex; align-items: flex-end; justify-content: space-between; overflow: hidden; position: relative;
}
.hero-card::after { content: attr(data-time); position: absolute; right: -12px; top: -17px; color: rgba(255,255,255,.05); font-size: 122px; line-height: 1; font-weight: 850; letter-spacing: -.09em; }
.hero-copy { position: relative; z-index: 1; }
.hero-copy span { color: #a9b6af; font-size: 12px; }
.hero-copy .hero-today { display: inline-flex; align-items: center; gap: 9px; padding: 6px 10px 6px 7px; border: 1px solid rgba(255,255,255,.13); border-radius: 999px; background: rgba(255,255,255,.07); color: #e6ece8; }
.hero-today b { padding: 3px 6px; border-radius: 999px; background: var(--yellow); color: var(--ink); font-size: 8px; letter-spacing: .09em; }
.hero-copy h2 { margin: 8px 0 12px; max-width: 480px; font-size: 31px; line-height: 1.08; letter-spacing: -.045em; }
.hero-copy p { margin: 0; color: #a9b6af; font-size: 13px; }
.score-card { padding: 25px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); display: flex; flex-direction: column; justify-content: space-between; box-shadow: var(--shadow); }
.score-head { display: flex; align-items: center; justify-content: space-between; }
.score-head span { font-size: 12px; font-weight: 750; color: var(--muted); }
.score-number { margin: 12px 0; font-size: 54px; line-height: 1; font-weight: 830; letter-spacing: -.06em; }
.score-number small { font-size: 16px; color: var(--muted); }
.progress { height: 8px; border-radius: 10px; background: #e9ece8; overflow: hidden; }
.progress i { display: block; height: 100%; background: var(--green); border-radius: inherit; }

.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.stat-card { padding: 19px 20px; border: 1px solid var(--line); border-radius: 15px; background: var(--surface); }
.stat-head { display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 11px; font-weight: 750; }
.stat-dot { width: 9px; height: 9px; border-radius: 3px; background: var(--green); }
.stat-card:nth-child(2) .stat-dot { background: var(--amber); }
.stat-card:nth-child(3) .stat-dot { background: var(--blue); }
.stat-card:nth-child(4) .stat-dot { background: var(--red); }
.stat-value { margin: 18px 0 4px; font-size: 30px; font-weight: 830; letter-spacing: -.045em; }
.stat-caption { color: #939a96; font-size: 10px; }

.admin-calendar-panel { margin-bottom: 18px; }
.calendar-loading { min-height: 260px; height: auto; }
.calendar-toolbar { display: flex; align-items: center; justify-content: center; gap: 14px; padding: 18px 18px 10px; }
.calendar-toolbar strong { min-width: 150px; text-align: center; font-size: 15px; text-transform: capitalize; }
.calendar-legend { display: flex; flex-wrap: wrap; gap: 12px 18px; padding: 2px 20px 17px; color: var(--muted); font-size: 10px; }
.calendar-legend span { display: inline-flex; align-items: center; gap: 6px; }
.calendar-legend__swatch { width: 10px; height: 10px; border-radius: 3px; }
.calendar-legend__swatch--good { background: #cdebd4; }
.calendar-legend__swatch--medium { background: #f5d49a; }
.calendar-legend__swatch--danger { background: #efb1a9; }
.calendar-weekdays, .calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 7px; padding: 0 18px; }
.calendar-weekdays { padding-bottom: 7px; color: #89938d; font-size: 9px; font-weight: 850; letter-spacing: .08em; text-align: center; text-transform: uppercase; }
.calendar-day { min-height: 74px; padding: 9px; border: 1px solid transparent; border-radius: 11px; color: var(--ink); text-align: left; transition: transform .15s, border-color .15s; }
.calendar-day:not(.calendar-day--blank):hover { border-color: var(--green); transform: translateY(-1px); }
.calendar-day.is-selected { border-color: var(--ink); box-shadow: 0 0 0 2px rgba(23,33,28,.08); }
.calendar-day.is-today { border: 2px solid var(--ink); box-shadow: 0 0 0 3px var(--yellow); transform: translateY(-2px); }
.calendar-day.is-today.is-selected { box-shadow: 0 0 0 4px var(--yellow), 0 8px 20px rgba(23,33,28,.14); }
.calendar-day strong, .calendar-day small { display: block; }
.calendar-day strong { display: flex; align-items: center; justify-content: space-between; gap: 5px; font-size: 14px; }
.calendar-day strong em { padding: 3px 5px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 7px; font-style: normal; font-weight: 850; letter-spacing: .04em; text-transform: uppercase; }
.calendar-day small { margin-top: 8px; color: inherit; font-size: 9px; line-height: 1.35; opacity: .78; }
.calendar-day--blank { min-height: 0; padding: 0; }
.calendar-day--good { background: #dff2e3; color: #1e6842; }
.calendar-day--medium { background: #fff0d0; color: #906018; }
.calendar-day--high { background: #f9d1b3; color: #984b26; }
.calendar-day--danger { background: #f6c7c2; color: #963b36; }
.calendar-day--muted, .calendar-day--weekend { background: #f5f6f3; color: var(--muted); }
.calendar-detail { margin: 18px; border-top: 1px solid var(--line); }
.calendar-detail__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; padding: 18px 0 12px; }
.calendar-detail__head .eyebrow { margin: 0 0 5px; font-size: 9px; }
.calendar-detail__head h4 { margin: 0; font-size: 17px; text-transform: capitalize; }
.calendar-detail__head > small { color: var(--muted); font-size: 10px; }
.calendar-people { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.calendar-person { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 9px; align-items: center; padding: 10px; border: 1px solid var(--line); border-radius: 11px; background: #fbfcfa; }
.calendar-person__avatar { width: 34px; height: 34px; overflow: hidden; }
.calendar-person__avatar img, .person .avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.calendar-person__copy { min-width: 0; }
.calendar-person__copy strong, .calendar-person__copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.calendar-person__copy strong { font-size: 11px; }
.calendar-person__copy small { margin-top: 3px; color: var(--muted); font-size: 9px; }
.calendar-person__meta { display: grid; justify-items: end; gap: 4px; }
.calendar-person__meta > span { color: var(--muted); font-size: 9px; white-space: nowrap; }
.calendar-empty { padding: 28px 10px; color: var(--muted); font-size: 11px; text-align: center; }

.panel-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(260px, .5fr); gap: 18px; }
.panel { border: 1px solid var(--line); border-radius: 16px; background: var(--surface); overflow: hidden; box-shadow: 0 5px 18px rgba(23,33,28,.035); }
.panel-head { min-height: 65px; padding: 15px 19px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--line); }
.panel-head h3 { margin: 0; font-size: 15px; letter-spacing: -.025em; }
.panel-head p { margin: 5px 0 0; color: var(--muted); font-size: 10px; }
.panel-link { border: 0; background: transparent; color: var(--green); font-size: 11px; font-weight: 800; }
.attention-list { display: grid; padding: 7px 18px; }
.attention-row { display: grid; grid-template-columns: 36px 1fr auto; gap: 10px; align-items: center; padding: 13px 0; border-bottom: 1px solid #edf0ed; }
.attention-row:last-child { border: 0; }
.attention-row strong { display: block; font-size: 12px; }
.attention-row small { display: block; margin-top: 4px; color: var(--muted); font-size: 10px; }
.time-badge { padding: 5px 7px; border-radius: 7px; background: #eef1ee; font-size: 10px; font-weight: 800; }

.page-intro { margin-bottom: 22px; display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; }
.page-intro p { max-width: 610px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.toolbar input, .toolbar select { min-height: 40px; font-size: 12px; }
.toolbar .search { min-width: 230px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; white-space: nowrap; }
th { padding: 12px 16px; color: #8a928d; background: #fafbf9; text-align: left; font-size: 9px; letter-spacing: .1em; text-transform: uppercase; }
td { padding: 14px 16px; border-top: 1px solid #ecefec; font-size: 12px; }
.person { display: flex; align-items: center; gap: 10px; }
.person .avatar { color: var(--ink); background: #eef0ed; }
.person strong, .person small { display: block; }
.person small { margin-top: 3px; color: var(--muted); font-size: 10px; }
.status { display: inline-flex; align-items: center; gap: 6px; padding: 5px 8px; border-radius: 99px; font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.status::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.status--aktif, .status--valid, .status--disetujui, .status--hadir { color: var(--green); background: var(--green-soft); }
.status--pending, .status--telat, .status--izin, .status--sakit, .status--dinas_luar, .status--tidak_lengkap { color: var(--amber); background: var(--amber-soft); }
.status--nonaktif, .status--ditolak, .status--alpa { color: var(--red); background: var(--red-soft); }
.status--libur, .status--belum_berjalan, .status--belum_terdaftar { color: var(--muted); background: var(--canvas); }
.row-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 6px; }
.empty-state { padding: 56px 20px; text-align: center; color: var(--muted); }
.empty-state b { display: block; margin-bottom: 8px; color: var(--ink); }

.payroll-summary { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-bottom: 18px; }
.payroll-summary .stat-card { box-shadow: none; }
.metric-positive { color: var(--green); }
.metric-warning { color: var(--amber); }
.metric-danger { color: var(--red); }
.report-filter { margin-bottom: 18px; padding: 16px; display: grid; grid-template-columns: 1fr 1fr 1.2fr auto; gap: 12px; align-items: end; overflow: visible; }
.report-filter label { display: grid; gap: 7px; color: var(--muted); font-size: 10px; font-weight: 750; }
.report-filter input, .report-filter select { width: 100%; min-height: 42px; }
.report-period { margin-bottom: 14px; padding: 15px 18px; border-left: 3px solid var(--green); border-radius: 0 12px 12px 0; background: #eaf1eb; display: flex; align-items: center; gap: 13px; }
.report-period span { color: var(--green); font-size: 9px; font-weight: 900; letter-spacing: .1em; }
.report-period strong { font-size: 13px; }
.report-period small { margin-left: auto; color: var(--muted); font-size: 10px; }
.report-section { margin-top: 18px; }
.table-sub { display: block; margin-top: 3px; color: var(--muted); font-size: 9px; }
.office-layout { display: grid; grid-template-columns: minmax(300px, .75fr) minmax(320px, 1.25fr); gap: 18px; }
.office-map { min-height: 480px; border-radius: 16px; background: #dfe7df; position: relative; overflow: hidden; }
.office-map::before, .office-map::after { content: ""; position: absolute; inset: 0; }
.office-map::before {
  background-image: linear-gradient(rgba(23,33,28,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(23,33,28,.08) 1px, transparent 1px);
  background-size: 42px 42px;
}
.office-map::after { inset: 22% 26%; border: 2px solid rgba(33,122,85,.45); border-radius: 50%; background: rgba(33,122,85,.12); }
.map-pin { position: absolute; z-index: 2; left: 50%; top: 50%; transform: translate(-50%,-50%); width: 42px; height: 42px; border: 8px solid #fff; border-radius: 50% 50% 50% 0; rotate: -45deg; background: var(--green); box-shadow: 0 8px 22px rgba(23,33,28,.22); }
.office-form { padding: 24px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-field { display: grid; gap: 8px; }
.form-field small { color: var(--muted); font-size: 10px; line-height: 1.5; }
.form-field--full { grid-column: 1 / -1; }
.form-field textarea { min-height: 110px; padding-top: 13px; resize: vertical; }
.location-picker { padding: 13px; border: 1px solid var(--line); border-radius: 12px; background: #f7f8f5; display: flex; align-items: center; gap: 12px; }
.location-picker .button { flex: 0 0 auto; }
.location-picker small { color: var(--muted); font-size: 10px; line-height: 1.45; }
.location-picker small a { color: var(--green); font-weight: 800; }
.location-picker__dot { width: 8px; height: 8px; border: 2px solid var(--green); border-radius: 50%; box-shadow: 0 0 0 3px rgba(33,122,85,.12); }
.form-actions { display: flex; justify-content: flex-end; margin-top: 22px; }
.qr-card { padding: 28px; display: flex; flex-direction: column; align-items: center; }
.qr-card__head { width: 100%; display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.qr-card__head h3 { margin: 7px 0 0; font-size: 21px; letter-spacing: -.035em; }
.qr-preview { width: min(100%, 360px); aspect-ratio: 1; margin: 24px auto 8px; padding: 18px; border: 1px solid var(--line); border-radius: 18px; background: #fff; }
.qr-preview svg { display: block; width: 100%; height: 100%; }
.qr-code-value { max-width: 100%; margin: 10px 0 0; padding: 7px 10px; border-radius: 8px; background: #f1f3ef; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; overflow-wrap: anywhere; }
.qr-note { max-width: 470px; margin: 18px 0 0; color: var(--muted); font-size: 12px; line-height: 1.55; text-align: center; }
.qr-actions { margin-top: 22px; display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
.toast {
  position: fixed; right: 24px; bottom: 24px; z-index: 100; max-width: 360px;
  padding: 13px 16px; border-radius: 11px; background: var(--sidebar); color: #fff;
  box-shadow: 0 14px 38px rgba(23,33,28,.25); font-size: 12px;
  transform: translateY(20px); opacity: 0; pointer-events: none; transition: .2s;
}
.toast.is-visible { transform: translateY(0); opacity: 1; }
.toast.is-error { background: var(--red); }
.correction-label { display: block; width: max-content; margin-top: 5px; padding: 3px 6px; border-radius: 6px; color: var(--blue); background: var(--blue-soft); font-size: 8px; font-weight: 850; letter-spacing: .04em; text-transform: uppercase; }
.modal { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; padding: 22px; opacity: 0; pointer-events: none; transition: opacity .18s ease; }
.modal.is-visible { opacity: 1; pointer-events: auto; }
.modal-backdrop { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: rgba(12,16,14,.68); cursor: default; }
.modal-card { position: relative; width: min(620px, 100%); max-height: calc(100vh - 44px); padding: 25px; border-radius: 20px; background: var(--surface); box-shadow: 0 30px 80px rgba(12,16,14,.28); overflow-y: auto; transform: translateY(12px); transition: transform .18s ease; }
.modal-card--compact { width: min(520px, 100%); }
.modal.is-visible .modal-card { transform: translateY(0); }
.modal-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.modal-head .eyebrow { margin-bottom: 8px; }
.modal-head .eyebrow--danger { color: var(--red); }
.modal-head h2 { margin: 0; font-size: 24px; letter-spacing: -.04em; }
.modal-head p { margin: 7px 0 0; color: var(--muted); font-size: 11px; }
.modal-close { width: 34px; height: 34px; flex: 0 0 auto; border: 1px solid var(--line); border-radius: 10px; color: var(--muted); background: var(--canvas); font-size: 21px; line-height: 1; }
.modal-card form { display: grid; gap: 16px; padding-top: 18px; }
.correction-original { padding: 13px 15px; border-left: 3px solid var(--blue); border-radius: 0 11px 11px 0; background: var(--blue-soft); display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.correction-original span { color: var(--blue); font-size: 9px; font-weight: 900; letter-spacing: .1em; }
.correction-original strong { font-size: 13px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; }
.reset-warning { padding: 14px 15px; border: 1px solid #efc5c0; border-radius: 12px; background: var(--red-soft); }
.reset-warning strong { color: var(--red); font-size: 12px; }
.reset-warning p { margin: 6px 0 0; color: #76504c; font-size: 10px; line-height: 1.55; }
.audit-section { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.audit-head { display: flex; align-items: center; justify-content: space-between; }
.audit-head strong { font-size: 13px; }
.audit-head span { color: var(--muted); font-size: 9px; }
#correctionAudit { display: grid; gap: 8px; margin-top: 11px; }
.audit-item { padding: 12px 13px; border: 1px solid var(--line); border-radius: 11px; background: var(--canvas); }
.audit-item div { display: flex; justify-content: space-between; gap: 12px; }
.audit-item strong { font-size: 10px; }
.audit-item span, .audit-item small { color: var(--muted); font-size: 9px; }
.audit-item p { margin: 8px 0 5px; color: var(--ink); font-size: 11px; line-height: 1.45; }
.audit-empty { padding: 15px; border-radius: 10px; color: var(--muted); background: var(--canvas); font-size: 10px; text-align: center; }

@media (max-width: 1020px) {
  .stat-grid, .payroll-summary { grid-template-columns: repeat(2, 1fr); }
  .hero-row, .panel-grid, .office-layout { grid-template-columns: 1fr; }
  .report-filter { grid-template-columns: 1fr 1fr; }
  .score-card { min-height: 180px; }
}

@media (max-width: 760px) {
  .login-shell { grid-template-columns: 1fr; }
  .login-brand { display: none; }
  .login-card { min-height: 100vh; align-content: center; }
  .app-shell { display: block; }
  .sidebar { position: fixed; left: -260px; z-index: 40; transition: left .2s; }
  .sidebar.is-open { left: 0; box-shadow: 20px 0 40px rgba(23,33,28,.24); }
  .menu-button { display: block; }
  .topbar { min-height: 86px; padding: 18px; justify-content: flex-start; }
  .topbar-actions { margin-left: auto; }
  .server-status { display: none; }
  .content { padding: 24px 18px 48px; }
  .stat-grid, .payroll-summary { grid-template-columns: 1fr 1fr; }
  .hero-card { min-height: 240px; }
  .calendar-weekdays, .calendar-grid { gap: 4px; padding-left: 10px; padding-right: 10px; }
  .calendar-day { min-height: 64px; padding: 7px; }
  .calendar-day small { font-size: 8px; }
  .calendar-detail { margin: 18px 10px; }
  .calendar-people { grid-template-columns: 1fr; }
  .page-intro { align-items: flex-start; flex-direction: column; }
  .form-grid { grid-template-columns: 1fr; }
  .form-field--full { grid-column: auto; }
  .location-picker { align-items: flex-start; flex-direction: column; }
  .report-filter { grid-template-columns: 1fr; }
  .report-period { align-items: flex-start; flex-direction: column; }
  .report-period small { margin-left: 0; }
}
