@font-face {
  font-family: Montserrat;
  src: url("montserrat.8809d16137c3.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: light;
  font: 500 15px/1.48 Montserrat, system-ui, -apple-system, sans-serif;
  color: #271f36;
  background: #f4f2f9;
  --ink: #251d36;
  --muted: #625974;
  --line: #e3ddee;
  --brand: #6342a5;
  --primary: #6746a5;
  --login-radius: 24px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-height: 100vh; background: #f6f4f9; }
a { color: var(--brand); text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid #8560cc; outline-offset: 3px; }
h1, h2, p { margin: 0; }
h1, h2 { color: var(--ink); line-height: 1.15; }
h1 { font-size: clamp(27px, 3vw, 38px); letter-spacing: -.027em; overflow-wrap: anywhere; }
h2 { font-size: 20px; letter-spacing: -.02em; }

.skip-link, .visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip-link:focus-visible {
  position: relative;
  display: block;
  width: auto;
  height: auto;
  padding: 8px 10px;
  clip-path: none;
  white-space: normal;
  background: #f3edf9;
  border-radius: 8px;
  font-size: 13px;
}
.layout { min-height: 100vh; display: grid; grid-template-columns: 224px minmax(0, 1fr); align-items: start; }
.sidebar {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  gap: 28px;
  min-height: 100vh;
  max-height: 100vh;
  padding: 23px 16px 17px;
  border-right: 1px solid var(--line);
  color: var(--ink);
  background: #fff;
  overflow: auto;
}
.sidebar .brand { color: #30214a; }
.sidebar-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.sidebar-content { display: flex; flex: 1; flex-direction: column; gap: 21px; }
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px 5px;
  color: #f8f3ff;
  font-size: 19px;
  font-weight: 740;
  letter-spacing: -.025em;
  text-decoration: none;
}
.monogram {
  display: grid;
  place-items: center;
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(145deg, #eee0ff, #c3a7ff);
  color: #432568;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .06em;
  box-shadow: inset 0 1px 0 #ffffffa0, 0 3px 10px #6d4e9630;
}
.menu-toggle { display: none; }
.admin-nav { display: grid; gap: 4px; }
.admin-nav a, .admin-more summary {
  display: flex;
  align-items: center;
  min-height: 43px;
  padding: 8px 11px;
  border-radius: 9px;
  color: #493c5c;
  font-weight: 660;
  font-size: 13px;
  text-decoration: none;
}
.admin-nav a:hover, .admin-more summary:hover, .logout:hover { background: #f2edf8; }
.admin-nav a[aria-current] { background: #eee5fa; color: #4d2c82; font-weight: 740; }
.admin-more { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line); }
.admin-more summary { cursor: pointer; list-style: none; justify-content: space-between; }
.admin-more summary::-webkit-details-marker { display: none; }
.admin-more summary::after {
  content: "";
  width: 7px;
  height: 7px;
  margin-right: 3px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
}
.admin-more[open] summary::after { transform: rotate(225deg); }
.admin-more-links { display: grid; gap: 2px; padding: 5px 0 0 10px; }
.admin-more:not([open]) .admin-more-links { display: none; }
.sidebar-footer {
  display: grid;
  gap: 12px;
  margin-top: auto;
  padding: 14px 3px 0;
  border-top: 1px solid var(--line);
}
.sidebar-account {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
}
.sidebar-links { display: grid; min-width: 0; gap: 2px; overflow-wrap: anywhere; }
.sidebar-links .install-tools { margin-top: 0; }
.sidebar-links .policy-footer-link,
.sidebar-links .install-tools summary { font-size: 12px; font-weight: 550; }
.viewer strong, .viewer span { display: block; overflow-wrap: anywhere; }
.viewer strong { font-size: 13px; font-weight: 720; }
.viewer span { margin-top: 3px; color: var(--muted); font-size: 12px; }
.sidebar-clock { color: var(--muted); font-size: 11px; }
.sidebar-clock time { margin-inline-start: 3px; font-weight: 680; font-variant-numeric: tabular-nums; }
.logout { padding: 7px 9px; border: 1px solid var(--line); border-radius: 9px; color: var(--ink); background: #fff; font-size: 12px; }

.workspace { min-width: 0; width: 100%; max-width: 1510px; margin: 0 auto; padding: 30px clamp(18px, 3.2vw, 48px) 34px; }
.workspace-header { display: flex; align-items: center; flex-wrap: wrap; justify-content: space-between; gap: 12px 18px; margin-bottom: 16px; }
.workspace-header h1 { min-width: 0; max-width: 100%; }
.breadcrumb { display: inline-flex; align-items: center; min-height: 32px; margin-bottom: 5px; color: var(--brand); font-size: 13px; font-weight: 670; text-decoration: none; }
.breadcrumb:hover { text-decoration: underline; }
.lead, .page-actions, .pagination { display: flex; align-items: center; gap: 12px; }
.page-actions { flex-wrap: wrap; gap: 8px; }
.lead { justify-content: space-between; flex-wrap: wrap; margin-bottom: 10px; }
.muted, small { color: var(--muted); }
section { margin-top: 20px; }
section > h2 { margin-bottom: 9px; }
.panel, .table, .notice { border: 1px solid var(--line); border-radius: 14px; background: #fffe; box-shadow: 0 4px 18px #33204d08; }
.panel { padding: 15px; }
.guide { margin-bottom: 14px; color: var(--muted); }
.guide summary { cursor: pointer; color: var(--ink); font-weight: 710; }
.guide ol { padding-left: 24px; }
.guide li + li { margin-top: 6px; }
.report-controls { margin: 0 0 14px; }
.report-modes { display: flex; flex-wrap: wrap; gap: 4px; width: fit-content; padding: 4px; margin-bottom: 13px; border-radius: 10px; background: #f0eaf7; }
.report-modes a { display: inline-flex; align-items: center; min-height: 38px; padding: 7px 12px; border-radius: 8px; color: var(--ink); text-decoration: none; font-weight: 670; }
.report-modes a[aria-current] { color: #583590; background: #fff; box-shadow: 0 1px 4px #33204d15; }
.report-controls .report-form { padding: 0; margin: 0; }
.report-field { flex: 1 1 145px; min-width: 0; max-width: 245px; }
.report-shortcuts { display: flex; flex-wrap: wrap; align-items: end; gap: 8px 16px; margin-top: 12px; }
.report-presets, .report-duration { display: flex; flex-wrap: wrap; align-items: end; gap: 8px; }
.report-duration .report-field { flex: 0 1 132px; }
.report-shortcuts button { font-size: 13px; }
.report-duration-error { flex-basis: 100%; color: #932b40; font-size: 13px; }
.report-duration-error:empty { display: none; }
.report-result { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.notice { margin-bottom: 12px; padding: 12px 15px; color: #3d2b5b; background: #f2e9fc; }
.filters { display: flex; align-items: end; gap: 9px; flex-wrap: wrap; margin: 0 0 14px; padding: 12px; }
.filters p { flex: 1 1 138px; max-width: 235px; }
.filters p:has(input[type=checkbox]) { display: flex; align-items: center; gap: 8px; align-self: center; }
.filters p:has(input[type=checkbox]) label { margin: 0; }
.filters .errorlist { flex-basis: 100%; }
.payroll-summary { overflow: hidden; margin: 16px 0; border-radius: 16px; background: linear-gradient(108deg, #2c1b48, #503381); color: #fff; }
.payroll-totals { display: grid; grid-template-columns: 1.15fr 1fr 1fr; }
.payroll-totals > div { min-width: 0; padding: clamp(14px, 2vw, 24px); }
.payroll-totals > div + div { border-inline-start: 1px solid #ffffff23; }
.payroll-totals span { color: #eee3fb; font-size: 13px; }
.payroll-totals strong { display: block; margin-top: 4px; font-size: clamp(20px, 2.5vw, 34px); font-variant-numeric: tabular-nums; letter-spacing: -.035em; overflow-wrap: anywhere; }
.payroll-totals small { color: #f1e7fc; font-size: .72em; }
.total-due { background: #ffffff09; }
.payroll-activity { display: flex; flex-wrap: wrap; gap: 4px 22px; border-top: 1px solid #ffffff23; padding: 10px clamp(14px, 2vw, 24px); color: #f0e6fa; font-size: 12px; }
.report-content { min-width: 0; }
.report-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 9px 12px; flex-wrap: wrap; margin: 20px 0 9px; }
.report-tabs { display: flex; flex-wrap: wrap; gap: 4px; border-radius: 10px; background: #ece6f4; padding: 4px; }
.report-tabs a { display: inline-flex; align-items: center; min-height: 35px; padding: 5px 10px; border-radius: 7px; color: var(--ink); text-decoration: none; font-size: 13px; font-weight: 650; }
.report-tabs a[aria-current] { color: #4e2b83; background: #fff; box-shadow: 0 1px 5px #27133d20; }
.team-panel { margin-top: 0; padding: 0; overflow: clip; }
.team-tools { display: flex; align-items: end; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding: 14px; }
.team-search { display: grid; grid-template-columns: auto minmax(110px, 1fr) auto; align-items: center; gap: 8px; }
.team-search:has(select) { grid-template-columns: auto minmax(100px, 1fr) auto minmax(110px, .7fr) auto; }
.team-search label { margin: 0; }
.team-search button { justify-content: center; }
.team-table td { vertical-align: middle; }
.team-table th { background: #f4f0f8; }
.team-panel .team-table { border-width: 1px 0 0; border-radius: 0; box-shadow: none; }
.team-panel .team-share { min-width: 0; }
.person-name { color: var(--ink); font-weight: 710; text-decoration-color: #b199d4; }
.person-login { display: block; margin-top: 3px; font-size: 12px; overflow-wrap: anywhere; }
.team-table td:first-child { white-space: normal; min-width: 145px; }
.team-table td .quiet { min-height: 33px; padding: 5px 8px; font-size: 12px; }
.role-guide { margin: 0 0 12px; }
.role-guide summary { cursor: pointer; font-weight: 690; }
.role-guide dl { display: grid; gap: 9px; margin-bottom: 0; }
.role-guide dt { font-weight: 690; }
.role-guide dd { margin: 2px 0 0; color: var(--muted); }
.form-panel.invite-panel { max-width: none; padding: clamp(12px, 2vw, 21px); }
.invite-panel form { display: grid; gap: 16px; }
.invite-name { width: min(100%, 480px); }
.invite-panel fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.invite-panel legend { margin-bottom: 8px; color: var(--ink); font-size: 15px; font-weight: 710; }
.point-picker-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 7px 14px; margin-bottom: 9px; }
.point-picker-tools > div { min-width: 0; width: min(100%, 280px); }
.point-picker-tools span { font-size: 12px; }
.point-options, .form-panel #id_points {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr));
  gap: 6px;
}
.point-option, .form-panel #id_points label {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  min-height: 44px;
  margin: 0;
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
  overflow-wrap: anywhere;
  cursor: pointer;
}
.point-option:hover, .form-panel #id_points label:hover { background: #f7f3fb; }
.point-option:has(input:checked), .form-panel #id_points label:has(input:checked) { border-color: #a589cb; background: #f1eafa; }
.point-option:focus-within, .form-panel #id_points label:focus-within { border-color: #8560cc; }
.point-picker .point-empty { margin: 8px 0 0; }
.invite-actions { min-width: 0; display: flex; justify-content: flex-end; border-top: 1px solid var(--line); padding-top: 12px; }
.invite-actions button { justify-content: center; max-width: 100%; min-height: 44px; }
.today-card { margin-top: 0; }
.employee-list.today-records { padding: 0 10px; border: 1px solid var(--line); border-radius: 10px; background: #f6f1fb; }
.employee-history-link, .employee-shift-form button { justify-content: center; }
.daily-share { max-width: 180px; }
label { display: block; margin-bottom: 5px; color: var(--muted); font-weight: 670; font-size: 13px; }
input:not([type=checkbox]), select, textarea {
  width: 100%;
  min-width: 0;
  min-height: 38px;
  border: 1px solid #d9d0e8;
  border-radius: 9px;
  padding: 7px 9px;
  color: var(--ink);
  background: #fff;
}
input[type=date] { appearance: none; -webkit-appearance: none; text-align: start; }
input[type=checkbox] { accent-color: var(--brand); width: 17px; height: 17px; flex: none; }
textarea { min-height: 90px; resize: vertical; }
.primary, .secondary, .quiet {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid #ddd3eb;
  border-radius: 9px;
  background: #fff;
  color: var(--ink);
  font-weight: 670;
  text-decoration: none;
}
.primary { border-color: var(--primary); background: var(--primary); color: #fff; }
.primary:hover { background: #583590; }
.secondary:hover, .quiet:hover { background: #f7f2fc; }
.form-panel { max-width: 700px; margin-top: 0; }
.form-panel p { margin-bottom: 14px; }
.form-panel p:has(input[type=checkbox]) { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; }
.form-panel p:has(input[type=checkbox]) label { margin: 0; }
.shift-picks { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; }
.shift-picks output { color: var(--brand); font-size: 19px; font-weight: 730; }
.access-panel h2 { margin-bottom: 10px; }
.access-guide { margin-bottom: 12px; }
.access-guide label { display: inline-flex; gap: 8px; align-items: center; margin: 0; }
[data-bulk-status] { flex-basis: 100%; }
[data-bulk-status]:empty { display: none; }
[data-access-results] textarea { min-width: 190px; }
.row-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 10px; }
.payment-status { display: inline-block; padding: 4px 8px; border-radius: 8px; background: #f0ecf7; color: var(--muted); font-size: 12px; font-weight: 670; }
.payment-due, .payment-partial { background: #fbefdc; color: #6d470e; }
.payment-paid { background: #e6f3e9; color: #265938; }
.payment-overpaid { background: #fbe6e9; color: #932b40; }
.employee-top { background: #2c2043; color: #f8f3ff; padding: 7px max(12px, env(safe-area-inset-right)) 7px max(12px, env(safe-area-inset-left)); }
.employee-top-inner { width: min(100%, 660px); margin: auto; display: flex; gap: 8px; align-items: center; justify-content: space-between; }
.employee-top .quiet { flex: none; color: #f8f3ff; background: #ffffff12; border-color: #ffffff35; }
.employee-shell { width: min(100%, 660px); margin: auto; padding: clamp(14px, 4vw, 30px) max(12px, env(safe-area-inset-right)) max(26px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left)); }
.employee-shell > * + * { margin-top: 14px; }
.employee-card { display: grid; gap: 16px; padding: clamp(14px, 4vw, 24px); }
.employee-card h1 + p, .employee-card p + h1 { margin-top: 5px; }
.employee-shift-form { display: grid; gap: 12px; }
.employee-history-link, .employee-shift-form button[type=submit] { min-height: 50px; }
.employee-shift-form input, .employee-shift-form select { min-height: 44px; font-size: 16px; }
.employee-counts, .employee-summary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.employee-summary { margin: 0; grid-template-columns: repeat(auto-fit, minmax(min(100%, 130px), 1fr)); }
.employee-summary div { border-radius: 10px; padding: 9px 10px; background: #f2edf9; }
.employee-summary dt, .employee-list small { color: var(--muted); font-size: 13px; }
.employee-summary dd { margin: 4px 0 0; font-weight: 730; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.employee-point { color: var(--muted); font-weight: 650; }
.employee-back { display: inline-flex; align-items: center; min-height: 40px; font-weight: 650; }
.employee-details summary { color: var(--brand); font-size: 14px; font-weight: 680; cursor: pointer; }
.employee-details[open] > summary { margin-bottom: 12px; }
.employee-details .report-controls { padding: 10px; margin: 0; }
.employee-shift-form .shift-picks { margin: 0; }
.employee-list { margin: 0; padding: 0; list-style: none; }
.employee-list li + li { border-top: 1px solid var(--line); }
.employee-list a { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 9px 0; color: var(--ink); text-decoration: none; }
.employee-list a:hover strong { text-decoration: underline; }
.employee-list small { display: block; }
.employee-list-value { text-align: right; flex: none; }
.employee-adjustment { padding: 8px 0; }
.form-panel dt { color: var(--muted); font-size: 13px; }
.form-panel dd { margin: 0 0 12px; overflow-wrap: anywhere; }
.errorlist { margin: 5px 0 8px; padding: 8px 12px 8px 29px; border-radius: 8px; color: #932b40; background: #fbe6e9; font-size: 13px; }
.helptext { display: block; margin-top: 5px; color: var(--muted); font-size: 12px; }

.table { overflow: auto; max-height: 62vh; }
table { width: 100%; border-collapse: separate; border-spacing: 0; font-variant-numeric: tabular-nums; }
th, td { padding: 10px 12px; border-bottom: 1px solid #eee9f4; text-align: left; vertical-align: top; white-space: nowrap; }
th { position: sticky; top: 0; z-index: 1; background: #f0ebf7; color: #483957; font-size: 13px; }
td { font-size: 14px; }
td:last-child { white-space: normal; overflow-wrap: anywhere; }
td.wrap-cell { min-width: min(16rem, 100%); white-space: normal; overflow-wrap: anywhere; }
td a { font-weight: 690; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: #faf7fe; }
.cell-label { display: none; }
.pagination { margin-top: 12px; flex-wrap: wrap; }

.login-page {
  display: grid;
  place-items: center;
  min-height: 100vh;
  min-height: 100dvh;
  padding: max(14px, env(safe-area-inset-top)) max(14px, env(safe-area-inset-right))
    max(14px, env(safe-area-inset-bottom)) max(14px, env(safe-area-inset-left));
  background: radial-gradient(ellipse at 15% 14%, #654580, transparent 55%),
    radial-gradient(ellipse at 90% 90%, #3e3262, transparent 59%), #241a38;
}
.login-card {
  width: min(100%, 440px);
  padding: clamp(20px, 7vw, 32px);
  border: 1px solid #f2e7ff;
  border-radius: var(--login-radius);
  background: linear-gradient(150deg, #fff, #fbf7ff);
  box-shadow: 0 22px 90px #130d2790;
}
.login-card .brand { padding: 0; margin-bottom: 28px; color: #392653; }
.login-card .monogram { width: 45px; height: 45px; box-shadow: none; }
.login-card h1 { margin-bottom: 9px; font-size: clamp(25px, 7vw, 31px); }
.login-help { margin-bottom: 19px; color: var(--muted); }
.login-card form { display: grid; gap: 13px; }
.login-card input, .login-card button { min-height: 45px; font-size: 16px; }
.login-card button { justify-content: center; margin-top: 3px; }
.privacy-card { width: min(100%, 770px); }
.privacy-card section h2 { margin: 20px 0 7px; font-size: 17px; }
.privacy-card section p { margin: 0 0 8px; overflow-wrap: anywhere; }
.privacy-link { margin-top: 16px; font-size: 13px; }
.install-tools { margin-top: 4px; color: var(--brand); font-size: 13px; line-height: 1.55; }
.install-tools summary {
  display: inline-block;
  min-height: 44px;
  padding: 10px 0;
  list-style: none;
  cursor: pointer;
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.install-tools summary::-webkit-details-marker { display: none; }
.install-tools summary::marker { content: ""; }
.install-tools p { max-width: 37ch; margin: 0; color: var(--muted); }
.login-card .privacy-link a,
.login-card .install-tools summary { font-weight: 550; }
.policy-footer-link { font-size: 12px; }
.login-card .privacy-check { display: flex; align-items: center; gap: 11px; min-height: 44px; margin: 0; cursor: pointer; }
.login-card .privacy-check input { flex: none; width: 22px; height: 22px; min-height: 0; margin: 0; }
.privacy-leave { margin-top: 8px; }

@media (max-width: 830px) {
  .layout { display: block; }
  .sidebar {
    z-index: 5;
    gap: 10px;
    min-height: 0;
    max-height: none;
    padding: calc(9px + env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) 9px max(12px, env(safe-area-inset-left));
    border: 0;
    border-bottom: 1px solid var(--line);
    overflow: visible;
  }
  .sidebar-head .brand { padding: 0 3px; font-size: 17px; }
  .sidebar-head .monogram { width: 35px; height: 35px; border-radius: 11px; }
  .menu-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 7px 11px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #f5f0fa;
    color: var(--ink);
    font-weight: 690;
  }
  .menu-lines { position: relative; width: 16px; height: 12px; border-block: 2px solid currentColor; }
  .menu-lines::after { content: ""; position: absolute; inset: 3px 0 auto; border-top: 2px solid currentColor; }
  .sidebar.menu-ready .sidebar-content {
    position: absolute;
    inset-inline: max(9px, env(safe-area-inset-left)) max(9px, env(safe-area-inset-right));
    top: 100%;
    display: none;
    gap: 12px;
    max-height: 72vh;
    max-height: 72dvh;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 0 0 15px 15px;
    background: #fff;
    box-shadow: 0 12px 30px #25163855;
    overflow: auto;
    overscroll-behavior: contain;
  }
  .sidebar.menu-open .sidebar-content { display: flex; }
  .sidebar-footer { padding-top: 9px; }
  .admin-nav a, .logout { min-height: 44px; }
  .workspace {
    padding: 16px max(12px, env(safe-area-inset-right)) calc(24px + env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
    scroll-margin-block-start: calc(66px + env(safe-area-inset-top));
  }
  h1 { font-size: clamp(22px, 5.8vw, 28px); }
  .workspace-header h1 { flex-basis: 100%; }
  .page-actions { justify-content: flex-start; }
  .primary, .secondary, .quiet { min-height: 44px; }
  input:not([type=checkbox]), select, textarea { min-height: 44px; font-size: 16px; }
  .filters p { flex-basis: 122px; }
  .report-field { flex-basis: 126px; }
  .report-modes a { min-height: 44px; }
}

@media (max-width: 600px) {
  .point-options, .form-panel #id_points { grid-template-columns: repeat(auto-fill, minmax(min(100%, 165px), 1fr)); }
  .invite-actions {
    position: sticky;
    bottom: 0;
    z-index: 2;
    margin-inline: -12px;
    padding: 8px 12px max(8px, env(safe-area-inset-bottom));
    background: #fff;
    border-radius: 0 0 13px 13px;
  }
  .invite-actions button { width: 100%; }
  .point-option input { scroll-margin-bottom: 72px; }
  .payroll-totals { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .payroll-totals > .total-due { grid-column: 1 / -1; border-bottom: 1px solid #ffffff23; }
  .payroll-totals > div:nth-child(2) { border-inline-start: 0; }
  .payroll-totals .total-due strong { font-size: 26px; }
  .team-panel { overflow: visible; padding-bottom: 10px; }
  .team-panel .team-table { margin: 0 9px; }
  .team-table td:first-child { min-width: 0; }
  .team-search, .team-search:has(select) { display: flex; width: 100%; align-items: center; flex-wrap: wrap; }
  .team-search input, .team-search select { flex: 1 1 130px; width: auto; }
  .report-tabs { gap: 2px; }
  .report-tabs a { padding-inline: 6px; font-size: 12px; }

  .table.has-mobile-cards { overflow: visible; max-height: none; border: 0; background: none; box-shadow: none; }
  .mobile-cards { display: block; }
  .mobile-cards thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .mobile-cards tbody { display: grid; gap: 9px; }
  .mobile-cards tbody tr {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 12px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 13px;
    background: #fff;
    box-shadow: 0 3px 12px #33204d08;
  }
  .mobile-cards tbody td { display: block; min-width: 0; padding: 0; border: 0; white-space: normal; overflow-wrap: anywhere; }
  .mobile-cards tbody td.wrap-cell { min-width: 0; }
  .mobile-cards tbody td:first-child, .mobile-cards tbody td[colspan] { grid-column: 1 / -1; }
  .mobile-cards tbody td:first-child:not([colspan]) { padding-bottom: 8px; border-bottom: 1px solid #eee9f4; font-weight: 700; }
  .mobile-cards tbody tr:hover td { background: transparent; }
  .cell-label { display: block; margin-bottom: 2px; color: var(--muted); font-size: 11px; font-weight: 670; }
}
