:root {
  color-scheme: light;
  --canvas: #f7f8fc;
  --paper: #fff;
  --ink: #202437;
  --graphite: #2b3040;
  --muted: #596179;
  --line: #e4e7f0;
  --field-line: #ced4e3;
  --accent: #5050a1;
  --accent-dark: #3c3e88;
  --lavender: #edecfc;
  --mint: #e1f3ec;
  --ice: #edf3ff;
  font: 15px/1.55 -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--ink);
  background: var(--canvas);
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-width: 320px; }
h1, h2, p, ul { margin: 0; }
ul { list-style: none; padding: 0; }
button, input, select, textarea { font: inherit; }
button, summary { cursor: pointer; }
button:disabled { cursor: wait; opacity: .62; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
svg { flex-shrink: 0; vertical-align: middle; }
:focus-visible { outline: 3px solid #7175c2; outline-offset: 3px; }
.visually-hidden, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { z-index: 10; position: fixed; top: 8px; left: 8px; padding: 9px 13px; border-radius: 7px; background: var(--paper); }
.app-shell { min-height: 100vh; display: grid; grid-template-columns: 248px minmax(0, 1fr); }
.workspace { min-width: 0; --content-gutter: clamp(16px, 2.25vw, 58px); }
.sidebar { display: flex; position: sticky; top: 0; z-index: 4; flex-direction: column; height: 100dvh; padding: 24px 16px; border-right: 1px solid var(--line); overflow: auto; background: var(--paper); }
.brand { display: grid; justify-items: start; gap: 11px; margin: 0 7px 17px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.brand > span:last-child { color: var(--muted); font-size: 12px; line-height: 1.15; font-weight: 740; }
.logo { display: inline-flex; align-items: center; justify-content: center; }
.logo img { display: block; width: 150px; max-width: 100%; height: auto; }
.sidebar nav { display: grid; gap: 15px; }
.nav-block { display: grid; gap: 4px; }
.nav-block + .nav-block { border-top: 1px solid var(--line); padding-top: 13px; }
.nav-label { margin: 0 0 4px 10px; color: var(--muted); font-size: 11px; font-weight: 720; letter-spacing: .08em; text-transform: uppercase; }
.nav-main { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 42px; padding: 7px 10px; text-align: left; color: var(--muted); border: 1px solid transparent; border-radius: 9px; font-size: 14px; font-weight: 640; background: transparent; }
.nav-main span { flex: 1; }
.nav-main svg { width: 18px; height: 18px; }
.nav-main svg:nth-of-type(2) { width: 14px; height: 14px; }
.nav-main[aria-expanded="true"] svg:nth-of-type(2) { transform: rotate(180deg); }
.nav-main:hover, .nav-children a:hover { color: var(--accent-dark); background: #f4f5fb; }
.nav-main[aria-current], .nav-section[data-active] .nav-main { background: var(--lavender); color: var(--accent-dark); font-weight: 740; }
.nav-children { margin: 6px 0 2px 20px; padding-left: 12px; border-left: 1px solid var(--line); }
.nav-children a { display: flex; align-items: center; min-height: 34px; padding: 6px 8px; color: var(--muted); border-radius: 7px; font-size: 13px; line-height: 1.25; }
.nav-children a[aria-current] { color: var(--accent-dark); background: #f3f2fd; font-weight: 720; }
.sidebar .nav-create { width: 100%; margin-bottom: 15px; justify-content: flex-start; padding-inline: 11px; }
.topbar { position: sticky; top: 0; z-index: 3; background: #fffffff7; border-bottom: 1px solid var(--line); }
.top-inner { min-height: 61px; padding-inline: var(--content-gutter); display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.top-location { display: flex; min-width: 0; align-items: center; gap: 9px; font-size: 14px; font-weight: 730; }
.top-location > span { overflow-wrap: anywhere; }
.top-location .menu-button, .nav-overlay, .account .mobile-create { display: none; }
.account { position: relative; display: flex; flex-shrink: 0; align-items: center; gap: 12px; white-space: nowrap; }
.account .sync-button { min-height: 37px; color: var(--muted); font-size: 12px; }
.account summary { display: grid; place-items: center; width: 37px; height: 37px; border-radius: 50%; background: var(--lavender); font-size: 12px; font-weight: 800; list-style: none; }
.account summary::-webkit-details-marker { display: none; }
.account-menu { position: absolute; z-index: 4; top: 44px; right: 0; padding: 12px; border: 1px solid var(--line); border-radius: 11px; background: var(--paper); box-shadow: 0 12px 32px #24293a1a; }
.account-menu strong { display: block; margin: 0 0 8px 3px; }
.account-menu .button { display: flex; width: 100%; margin-top: 5px; }
.content { width: 100%; padding: 32px var(--content-gutter) 56px; }
.page-heading { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin: 0 0 23px; }
.page-heading h1 { font-size: clamp(29px, 3.5vw, 46px); font-weight: 750; line-height: 1.06; letter-spacing: -.053em; }
.page-heading p { margin-top: 8px; color: var(--muted); }
.heading-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.button { min-height: 41px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 8px 13px; border: 1px solid var(--field-line); border-radius: 9px; background: var(--paper); color: var(--ink); font-size: 14px; font-weight: 690; white-space: nowrap; }
.button svg { width: 17px; height: 17px; }
.button:hover { background: #f2f4fc; }
.button.primary { min-height: 44px; color: #fff; background: var(--accent); border-color: var(--accent); padding-inline: 16px; }
.button.primary:hover { background: var(--accent-dark); }
.button.quiet { padding-inline: 10px; background: transparent; border-color: transparent; color: var(--accent-dark); }
.button.quiet:hover { background: #f0effc; }
.text-link { display: inline-flex; align-items: center; gap: 6px; border: 0; padding: 0; color: var(--accent-dark); background: transparent; font-weight: 730; font-size: 13px; }
.text-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.text-link svg { width: 17px; height: 17px; }
.hero { position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: center; min-height: 180px; margin-bottom: 17px; border: 1px solid #e1e4f1; border-radius: 17px; background: linear-gradient(108deg,#eeebfc 12%,#eaf1fd 66%,#e8f6f1); }
.hero-copy { position: relative; z-index: 1; max-width: 67%; padding: 24px 29px; }
.hero-copy h2 { font-size: clamp(25px, 3vw, 36px); font-weight: 750; line-height: 1.12; letter-spacing: -.045em; }
.hero-copy p { margin: 8px 0 16px; color: var(--muted); }
.hero-art { position: absolute; inset: 0 0 0 52%; pointer-events: none; overflow: hidden; }
.shape { position: absolute; width: clamp(112px, 18vw, 250px); aspect-ratio: .98; border: 1px solid #ffffffb5; border-radius: 50% 50% 0 0; box-shadow: inset 12px 10px 22px #ffffff65, 0 11px 24px #7778ae1a; }
.shape-lavender { right: 35%; bottom: -35%; background: linear-gradient(143deg,#f6ecffb5,#a7a5f2a0); transform: rotate(-24deg); }
.shape-blue { right: 18%; bottom: -48%; background: linear-gradient(150deg,#d7eaffcf,#88a1ec92); transform: rotate(-15deg); }
.shape-mint { right: 1%; bottom: -62%; background: linear-gradient(139deg,#e9fff0d9,#91cebca8); transform: rotate(-12deg); }
.metrics { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; margin-bottom: 16px; }
.metric { display: flex; align-items: center; gap: 11px; min-height: 83px; padding: 13px 15px; }
.metric:hover { border-color: #b5b6e0; }
.metric > svg { color: #737a94; width: 16px; }
.metric-icon { width: 43px; height: 43px; flex: 0 0 43px; display: grid; place-items: center; border-radius: 12px; background: var(--lavender); color: var(--accent-dark); }
.metric-tone-1 { background: var(--ice); color: #375b94; }
.metric-tone-2 { background: var(--mint); color: #256251; }
.metric-value { display: grid; flex: 1; gap: 1px; min-width: 0; }
.metric-value small { color: var(--muted); font-size: 12px; font-weight: 640; line-height: 1.25; }
.metric-value strong { font-size: 24px; line-height: 1.15; letter-spacing: -.04em; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: 16px; margin-bottom: 16px; }
.card { min-width: 0; border: 1px solid var(--line); border-radius: 15px; background: var(--paper); }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 17px 20px 12px; }
.section-heading h2 { font-size: clamp(16px, 2vw, 20px); line-height: 1.2; letter-spacing: -.027em; }
.number-pill { min-width: 27px; padding: 2px 8px; border-radius: 15px; background: var(--lavender); color: var(--accent-dark); text-align: center; font-size: 13px; font-weight: 750; }
.rows { padding-inline: 20px; }
.request-row { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(73px, 1fr) auto; gap: 10px; align-items: center; min-height: 64px; border-top: 1px solid var(--line); padding: 8px 0; }
.row-person { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); padding: 0; border: 0; background: transparent; text-align: left; }
.row-person:hover strong { text-decoration: underline; text-underline-offset: 3px; }
.row-person strong, .request-kind strong, .upcoming strong { display: block; font-weight: 730; }
.row-person small, .request-kind small, .upcoming small { display: block; font-size: 12px; color: var(--muted); }
.avatar { width: 33px; height: 33px; flex: 0 0 33px; display: grid; place-items: center; border-radius: 50%; font-size: 11px; font-weight: 800; }
.tone-0 { background: #eeeafd; color: #494284; }
.tone-1 { background: #e6f0fd; color: #3d5e83; }
.tone-2 { background: #e2f1e9; color: #355b48; }
.tone-3 { background: #f6e9ee; color: #713e56; }
.card-footer { border-top: 1px solid var(--line); padding: 12px 20px; }
.branches { display: flex; flex-direction: column; padding: 0 20px 20px; }
.branches .section-heading { padding-inline: 0; }
.branches .section-heading svg { color: var(--accent); }
.branch-total { display: flex; align-items: baseline; gap: 9px; margin: 0 0 11px; color: var(--muted); }
.branch-total strong { color: var(--ink); font-size: 34px; line-height: 1; font-weight: 740; letter-spacing: -.06em; }
.branches li { display: grid; grid-template-columns: 105px 1fr 24px; align-items: center; gap: 9px; min-height: 29px; font-size: 13px; }
.branches li strong { text-align: right; }
meter { appearance: none; width: 100%; height: 7px; border: 0; border-radius: 8px; background: #eeedf9; }
meter::-webkit-meter-bar { height: 7px; border: 0; background: #eeedf9; }
meter::-webkit-meter-optimum-value { background: #a5a6df; border-radius: 8px; }
meter::-moz-meter-bar { background: #a5a6df; }
.upcoming ul { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 0 20px 15px; }
.upcoming li + li { border-left: 1px solid var(--line); }
.upcoming button { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 9px; width: 100%; min-height: 65px; padding: 5px 8px; border: 0; border-radius: 8px; background: transparent; color: var(--ink); text-align: left; }
.upcoming button:hover { background: #f2f4fb; }
.upcoming time { padding: 8px; border-radius: 6px; color: var(--accent-dark); background: var(--lavender); font-size: 11px; font-weight: 760; white-space: nowrap; }
.empty { padding: 16px 20px; color: var(--muted); }
.branches .empty { padding-inline: 0; }
.data-card { overflow: hidden; }
.data-card .rows { padding-bottom: 12px; }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 13px; padding: 15px 19px; border-bottom: 1px solid var(--line); }
input, select, textarea { min-width: 0; min-height: 41px; padding: 8px 10px; color: var(--ink); background: #fff; border: 1px solid var(--field-line); border-radius: 8px; }
textarea { resize: vertical; }
.search { display: flex; align-items: center; gap: 7px; padding: 0 10px; border: 1px solid var(--field-line); border-radius: 8px; background: #fff; }
.search input { padding-left: 0; border: 0; }
.search svg { color: var(--muted); }
.table-wrap { max-width: 100%; overflow: auto; }
.table-wrap:focus-visible, .calendar:focus-visible { outline-offset: -3px; }
table { width: 100%; border-collapse: collapse; text-align: left; white-space: nowrap; }
th, td { padding: 11px 19px; }
th { color: var(--muted); font-size: 12px; font-weight: 750; background: #f2f4fa; }
td { border-top: 1px solid var(--line); }
.badge { display: inline-block; padding: 3px 8px; border-radius: 20px; background: var(--lavender); color: var(--accent-dark); white-space: nowrap; font-size: 12px; font-weight: 720; }
.badge.amber { color: #774419; background: #f8e8d1; }
.badge.green { color: #25614e; background: var(--mint); }
.badge.ash { color: #535f73; background: #edf0f5; }
.tabs { display: flex; align-items: stretch; gap: 5px; overflow-x: auto; padding: 11px 13px; }
.tabs button { padding: 8px 10px; border: 0; border-radius: 7px; color: var(--muted); background: transparent; white-space: nowrap; }
.tabs button:hover, .tabs button[aria-pressed=true], .hr-tabs a[aria-current] { color: var(--accent-dark); background: var(--lavender); }
.hr-tabs a[aria-current] { border-color: transparent; }
.hr-settings-grid { margin-top: 16px; grid-template-columns: repeat(2,minmax(0,1fr)); }
.hr-settings-grid td { white-space: normal; }
.tabs button[aria-pressed=true] { font-weight: 750; }
.calendar-toolbar { justify-content: space-between; }
.calendar-toolbar > div { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.calendar-toolbar strong { margin-inline: 3px; }
.calendar { display: grid; grid-template-columns: repeat(7, minmax(111px, 1fr)); overflow-x: auto; }
.calendar.calendar-single { grid-template-columns: minmax(0, 1fr); }
.leave-module-nav { margin-bottom: 12px; }
.leave-filters { display: grid; grid-template-columns: repeat(auto-fit, minmax(145px, 1fr)); align-items: end; }
.leave-filters label { display: grid; gap: 5px; min-width: 0; color: var(--muted); font-size: 13px; font-weight: 650; }
.leave-filters select, .leave-filters input { width: 100%; min-width: 0; }
.day { min-height: 300px; padding: 0 7px 13px; }
.day + .day { border-left: 1px solid var(--line); }
.day h2 { margin: 0 -7px 10px; padding: 10px 4px; border-bottom: 1px solid var(--line); font-size: 13px; text-align: center; font-weight: 750; }
.day.current h2 { background: var(--lavender); }
.day time { display: block; color: var(--muted); font-size: 11px; font-weight: 500; }
.day .empty { padding: 12px 2px; text-align: center; font-size: 12px; }
.schedule { display: grid; width: 100%; gap: 2px; margin-bottom: 6px; padding: 6px 7px; border: 1px solid transparent; border-radius: 6px; color: #375549; background: #e6efe4; text-align: left; line-height: 1.15; font-size: 12px; }
.schedule:hover { border-color: currentColor; }
.schedule.leave { color: var(--accent-dark); background: var(--lavender); }
.schedule small { font-size: 11px; }
.login-page { width: min(100% - 48px, 1640px); margin: 24px auto; }
.login-grid { display: grid; grid-template-columns: 1.04fr 1fr; min-height: max(600px,calc(100dvh - 48px)); gap: clamp(24px,4vw,66px); }
.login-art-panel { display: flex; align-items: end; min-height: 460px; padding: clamp(25px,4vw,62px); border-radius: 25px; color: #fff; background: linear-gradient(to top,#212334e8 1%,#262d45b0 15%,transparent 51%),url('./assets/workplace.jpg') center 50% / cover #63736d; }
.login-caption { display: grid; gap: 8px; }
.login-caption strong { font-size: clamp(25px,3.4vw,46px); font-weight: 750; letter-spacing: -.055em; line-height: 1.04; }
.login-caption span { font-size: clamp(13px,1.55vw,20px); color: #f2f5ff; }
.login-form-panel { display: grid; grid-template-rows: 1fr auto; align-items: center; justify-items: center; padding: 30px clamp(8px,2vw,28px) 24px; }
.login-form-inner { width: min(100%,520px); }
.login-brand, .login-intro { text-align: center; }
.login-brand .logo img { width: clamp(172px, 17vw, 238px); }
.login-intro { margin: 14px 0 32px; color: var(--muted); font-size: clamp(15px, 1.45vw, 18px); }
.login-form-panel form { display: grid; gap: 10px; }
.login-form-panel form label { color: var(--ink); font-size: 14px; font-weight: 690; }
.login-form-panel input { min-height: 53px; border-radius: 10px; padding: 12px 15px; }
.login-form-panel input::placeholder { color: #68728a; }
.login-form-panel label[for="login-password"] { margin-top: 8px; }
.login-form-panel .button { min-height: 53px; border-radius: 10px; font-size: 15px; }
.login-form-panel form .primary { margin-top: 14px; }
.form-grid label { display: grid; gap: 6px; color: var(--muted); font-size: 13px; font-weight: 730; }
.password-field { position: relative; }
.password-field input { width: 100%; padding-right: 52px; }
.password-field .icon-button { position: absolute; top: 50%; right: 8px; transform: translateY(-50%); color: var(--muted); }
.login-footer { margin-top: 26px; text-align: center; color: var(--muted); }
.boot { padding: 28px; }
dialog { width: min(540px, calc(100% - 24px)); max-height: calc(100dvh - 24px); padding: 0; border: 1px solid var(--line); border-radius: 15px; background: var(--paper); color: var(--ink); }
dialog::backdrop { background: #20243791; }
.dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 9px; padding: 12px 17px; border-bottom: 1px solid var(--line); }
.dialog-head h2 { font-size: 20px; }
.icon-button { display: grid; place-items: center; width: 35px; height: 35px; border: 0; border-radius: 7px; color: var(--ink); background: transparent; }
.icon-button:hover { background: var(--lavender); }
.detail, .form-grid { display: grid; gap: 15px; padding: 17px; }
.detail { grid-template-columns: 1fr 1fr; }
.detail > div { display: grid; gap: 4px; justify-items: start; }
.detail p { grid-column: 1 / -1; white-space: pre-wrap; overflow-wrap: anywhere; }
.form-grid { grid-template-columns: 1fr 1fr; }
.form-grid .wide { grid-column: 1 / -1; }
.request-picker { display: grid; gap: 8px; padding: 14px 17px 17px; }
.request-choice.button { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; min-height: 62px; padding: 8px 12px; white-space: normal; text-align: left; }
.request-choice strong, .request-choice small { display: block; }
.request-choice small { margin-top: 3px; color: var(--muted); font-weight: 500; line-height: 1.3; }
.request-choice > svg { color: var(--muted); width: 16px; }
.request-choice-icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; color: var(--accent); background: var(--lavender); }
.request-choice-icon.request-expense, .request-choice-icon.request-advance { color: #225c4d; background: #e3f1ec; }
.request-choice-icon.request-overtime { color: #855727; background: #fbefdd; }
.import-form { display: grid; gap: 14px; padding: 18px 20px; }
.import-form label { display: grid; gap: 5px; font-weight: 700; }
.import-form textarea { width: 100%; }
.import-note { color: var(--muted); font-size: 13px; }
.import-summary { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 9px; padding: 14px 20px; border-top: 1px solid var(--line); }
.inline-field { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; }
.payroll-toolbar strong { color: var(--muted); font-size: 13px; }
.payroll-metrics { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; margin-bottom: 16px; }
.payroll-metric { display: flex; min-height: 80px; flex-direction: column; justify-content: center; gap: 4px; padding: 14px 16px; }
.payroll-metric small { color: var(--muted); }
.payroll-metric strong { font-size: clamp(18px,2.1vw,27px); overflow-wrap: anywhere; line-height: 1.15; }
.form-error { color: #a3322c; font-size: 13px; }
.form-error:empty { display: none; }
dialog .form-error { margin: 0 17px 13px; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 7px; padding: 12px 17px; border-top: 1px solid var(--line); }
#toast { position: fixed; z-index: 4; bottom: 15px; right: 15px; display: none; padding: 11px 15px; border-radius: 8px; background: var(--graphite); color: #fff; max-width: calc(100vw - 30px); }
#toast.visible { display: block; }
@media (max-width: 1020px) {
  .app-shell { grid-template-columns: 210px minmax(0, 1fr); }
}
@media (max-width: 820px) {
  .app-shell { display: block; }
  .sidebar { display: none; position: fixed; width: min(255px, 82vw); }
  .nav-open .sidebar { display: flex; box-shadow: 12px 0 35px #20243726; }
  .nav-open .nav-overlay { display: block; position: fixed; z-index: 3; inset: 0; width: 100%; padding: 0; border: 0; background: #2024375c; }
  .top-location .menu-button { display: grid; }
  .account .mobile-create { display: grid; background: var(--lavender); color: var(--accent-dark); }
}
@media (max-width: 740px) {
  .content { padding-top: 24px; }
  .page-heading { flex-wrap: wrap; align-items: start; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .hero-copy { max-width: 74%; padding: 22px 17px; }
  .hero-art { left: 64%; }
  .upcoming ul { grid-template-columns: 1fr; }
  .upcoming li + li { border-left: 0; border-top: 1px solid var(--line); }
  .branches li { grid-template-columns: 100px 1fr 24px; }
  .login-page { width: calc(100% - 28px); margin: 14px auto; }
  .login-grid { grid-template-columns: 1fr; min-height: 0; gap: 5px; }
  .login-art-panel { min-height: clamp(138px,32vw,215px); padding: 16px 19px; border-radius: 14px; background-position: center 67%; }
  .login-form-panel { padding: 24px 8px 12px; }
  .login-intro { margin: 10px 0 21px; }
  .login-footer { margin-top: 17px; }
}
@media (max-width: 600px) {
  .top-inner { gap: 8px; }
  .account { gap: 5px; }
  .sync-label { display: none; }
  .account .sync-button { width: 37px; padding: 0; }
  .calendar { grid-template-columns: minmax(0,1fr); }
  .day { display: grid; grid-template-columns: minmax(82px,1fr) minmax(0,2.5fr); gap: 10px; min-height: 65px; padding: 8px; }
  .day + .day { border-left: 0; border-top: 1px solid var(--line); }
  .day h2 { align-self: start; margin: 0; padding: 6px; border: 0; border-radius: 6px; }
  .day .empty { text-align: left; }
  .day-entries .schedule { min-height: 36px; }
  .payroll-metrics { gap: 7px; }
  .payroll-metric { min-height: 73px; padding: 9px; }
}
@media (max-width: 420px) {
  .section-heading, .rows, .card-footer { padding-inline: 11px; }
  .request-row { gap: 6px; font-size: 12px; }
  .request-row .button { font-size: 12px; padding-inline: 3px; }
  .request-row .button svg { width: 13px; }
  .request-row .avatar { display: none; }
  .hero-copy { max-width: 88%; }
  .hero-art { left: 78%; }
  .metrics { gap: 7px; }
  .metric { align-items: start; flex-direction: column; gap: 7px; min-height: 89px; padding: 9px; }
  .metric-icon { flex: 0 0 29px; width: 29px; height: 29px; border-radius: 8px; }
  .metric-icon svg { width: 16px; height: 16px; }
  .metric > svg { display: none; }
  .metric-value strong { font-size: 20px; }
  .metric-value small { font-size: 11px; }
  .form-grid { grid-template-columns: 1fr; }
  .payroll-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .payroll-metric:last-child { grid-column: 1 / -1; }
}

.employee-shell { max-width: 1280px; margin: auto; padding: clamp(16px, 4vw, 48px); }
.employee-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 40px; }
.employee-header img { width: min(175px, 40vw); height: auto; }
.employee-shell .hr-tabs { margin-bottom: 20px; flex-wrap: wrap; }
.employee-search { display: grid; gap: 6px; margin: 16px; max-width: 340px; }
.employee-account { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin: 10px 0; }
#employee-expense[hidden] { display: none; }

.leave-estimate { padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: #f0f5f2; }
.leave-estimate dl { margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.leave-estimate dt { font-size: 12px; color: var(--muted); line-height: 1.35; }
.leave-estimate dd { margin: 4px 0 0; font-size: clamp(14px, 4vw, 20px); font-weight: 720; }
.leave-estimate p { margin: 10px 0 0; font-size: 13px; }
.work-week { display: flex; flex-wrap: wrap; gap: 8px; border: 1px solid var(--line); border-radius: 12px; }
.form-grid .work-week label { display: flex; align-items: center; gap: 4px; padding: 4px; }
.form-grid .work-week input { width: 16px; min-height: 16px; height: 16px; }
.form-grid [hidden] { display: none; }
.employee-mobile-requests { display: none; }
.employee-shell .card + .card { margin-top: 14px; }
@media (max-width: 600px) {
  .employee-desktop-requests { display: none; }
  .employee-mobile-requests { display: block; }
  .employee-mobile-requests ul { list-style: none; margin: 0; padding: 0; }
  .employee-mobile-requests li { padding: 14px; overflow-wrap: anywhere; }
  .employee-mobile-requests li + li { border-top: 1px solid var(--line); }
  .employee-mobile-requests li div { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
  .employee-mobile-requests p { margin: 5px 0 0; color: var(--muted); font-size: 13px; }
}

.report-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 14px; }
.report-card { padding: 18px; display: grid; gap: 8px; align-content: start; }
.report-card h2, .report-form h2 { margin: 0; font-size: 17px; }
.report-card small, .report-card p { color: var(--muted); margin: 0; }
.report-card .text-link { justify-self: start; margin-top: 8px; }
.report-form { display: grid; gap: 14px; padding: 18px; }
.report-form > label { display: grid; gap: 5px; max-width: 360px; }
.report-form > .button { justify-self: start; }
.report-filters { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 155px), 1fr)); gap: 12px; width: 100%; }
.report-filters label { display: grid; align-content: start; gap: 5px; min-width: 0; }
.report-filters input, .report-filters select { width: 100%; min-width: 0; }
.report-form fieldset { min-width: 0; border: 1px solid var(--line); border-radius: 12px; padding: 12px; }
.report-form legend { padding: 0 6px; }
.report-columns { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 177px), 1fr)); gap: 9px 14px; }
.report-columns label { display: flex; align-items: center; gap: 8px; min-height: 30px; }
.report-columns input { width: 16px; min-height: 16px; margin: 0; }
.report-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.report-results { margin-top: 14px; }
.payroll-settings { display: grid; gap: 14px; }
.payroll-settings .report-results { margin-top: 0; }
