/* Apps Pay — unified interface. Blue theme. CSP-safe (no inline styles). */
@font-face {
  font-family: "Inter";
  src: url("/app/inter.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --edition-h: 29px;
  --navy: #041d4a;
  --navy-2: #073082;
  --navy-line: rgba(255, 255, 255, 0.09);
  --blue: #0a4fc4;
  --blue-600: #073082;
  --blue-50: #e8f1fc;
  --blue-100: #d3e5fa;
  --ink: #0b1f3f;
  --ink-2: #3b4a66;
  --ink-3: #4f5c76;
  --surface: #f2f6fb;
  --card: #ffffff;
  --line: #e2e7f0;
  --line-2: #cfd7e4;
  --green: #0f7a4c;
  --green-50: #e7f5ee;
  --amber: #a85a06;
  --amber-50: #fdf3e3;
  --red: #b42318;
  --red-50: #fdecea;
  --slate: #56647c;
  --radius-s: 6px;
  --radius: 10px;
  --radius-l: 14px;
  --shadow: 0 1px 2px rgba(4, 29, 74, 0.06), 0 1px 1px rgba(4, 29, 74, 0.03);
  --shadow-pop: 0 12px 40px rgba(4, 29, 74, 0.18);
  --font: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --sidebar: 252px;
}

* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  height: 100%;
}
/* Screen size (owner, 9 November 2026): the whole interface is scaled by
   the size chosen in Appearance. Viewport units are scaled too, so every
   vh/vw length below is multiplied by --zi (1 ÷ size) to keep full-height
   layouts filling the window. Paper always prints at 100%. */
html[data-zoom="on"] {
  zoom: var(--app-zoom, 1);
  --zi: calc(1 / var(--app-zoom, 1));
}
html[data-zoom="on"].zoom-paused {
  zoom: 1;
  --zi: 1;
}
@media print {
  html[data-zoom="on"] {
    zoom: 1;
    --zi: 1;
  }
}
body {
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--surface);
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
a {
  color: var(--blue);
}
h1,
h2,
h3,
h4 {
  margin: 0;
  letter-spacing: -0.01em;
}
p {
  margin: 0;
}
:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}
.num {
  font-variant-numeric: tabular-nums;
}
.nowrap {
  white-space: nowrap;
}
.muted {
  color: var(--ink-3);
}
.small {
  font-size: 13px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
[hidden] {
  display: none !important;
}

/* ---------- Edition banner ---------- */
.edition {
  position: sticky;
  top: 0;
  z-index: 30;
  box-sizing: border-box;
  min-height: var(--edition-h);
  margin: 0;
  background: var(--navy);
  color: #c9d6f2;
  font-size: 12px;
  text-align: center;
  padding: 5px 12px;
  border-bottom: 1px solid var(--navy-line);
}
.edition strong {
  color: #fff;
  font-weight: 600;
}

/* ---------- Sign in ---------- */
.signin {
  min-height: calc(100vh * var(--zi, 1) - 28px);
  display: grid;
  grid-template-columns: minmax(320px, 5fr) 7fr;
}
.signin-brand {
  background: var(--navy);
  color: #fff;
  padding: 48px 56px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}
.signin-brand::after {
  content: "";
  position: absolute;
  right: -230px;
  bottom: -250px;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  border: 64px solid rgba(10, 79, 196, 0.35);
}
.brand-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand-row img {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: #fff;
  padding: 3px;
}
.brand-name {
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.01em;
}
.brand-sub {
  font-size: 12px;
  color: #a9badf;
}
.signin-pitch {
  max-width: 400px;
  position: relative;
  z-index: 1;
}
.signin-pitch h1 {
  font-size: 34px;
  line-height: 1.15;
  font-weight: 650;
  letter-spacing: -0.025em;
}
.signin-pitch p {
  margin-top: 16px;
  color: #c3d0ec;
  font-size: 15px;
}
.signin-foot {
  font-size: 12px;
  color: #8fa3cf;
  position: relative;
  z-index: 1;
}
.signin-main {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
}
.signin-card {
  width: 100%;
  max-width: 400px;
}
.signin-card h2 {
  font-size: 26px;
  font-weight: 650;
  letter-spacing: -0.02em;
}
.signin-card .lede {
  margin-top: 6px;
  color: var(--ink-2);
}
.signin-card form {
  margin-top: 28px;
  display: grid;
  gap: 16px;
}
.chooser {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}
.chooser button {
  text-align: left;
  border: 1px solid var(--line-2);
  background: var(--white-ui, #fff);
  border-radius: var(--radius);
  padding: 14px 16px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.chooser button:hover {
  border-color: var(--blue);
  background: var(--blue-50);
}
.chooser .c-org {
  font-weight: 600;
}
.chooser .c-role {
  font-size: 13px;
  color: var(--ink-3);
}

/* ---------- App shell ---------- */
.shell {
  display: grid;
  grid-template-columns: var(--sidebar) 1fr;
  min-height: calc(100vh * var(--zi, 1) - 28px);
  background: linear-gradient(
    to right,
    var(--navy) var(--sidebar),
    var(--surface) var(--sidebar)
  );
}
.sidebar {
  background: var(--navy);
  color: #d6e0f5;
  display: flex;
  flex-direction: column;
  position: sticky;
  /* Sits under the edition banner, so its foot stays on screen. */
  top: var(--edition-h);
  height: calc(100vh * var(--zi, 1) - var(--edition-h));
  overflow-y: auto;
}
.sb-head {
  padding: 18px 18px 14px;
  border-bottom: 1px solid var(--navy-line);
}
.sb-head-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}
.sb-head-top .brand-row {
  min-width: 0;
  flex: 1;
}
.sb-collapse {
  flex: none;
  display: none;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin: 0;
  padding: 0;
  border: 1px solid var(--navy-line);
  border-radius: 8px;
  background: transparent;
  color: #d6e0f5;
  cursor: pointer;
}
.sb-collapse:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}
.sb-collapse svg {
  width: 16px;
  height: 16px;
}
/* Classic desktop: Gmail-style show/hide menu labels. */
@media print, (min-width: 861px) {
  html[data-look="classic"] .sb-collapse {
    display: inline-flex;
  }
}
.sb-head .brand-row img {
  width: 32px;
  height: 32px;
}
.sb-head .brand-name {
  font-size: 16px;
  color: #fff;
}
.ws-switch {
  margin-top: 14px;
  width: 100%;
  background: var(--navy-2);
  border: 1px solid var(--navy-line);
  border-radius: var(--radius);
  padding: 9px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  cursor: pointer;
  color: #fff;
  text-align: left;
}
.ws-switch:hover {
  background: #183a70;
}
.ws-switch .ws-org {
  font-weight: 600;
  font-size: 13px;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 170px;
}
.ws-switch .ws-role {
  font-size: 12px;
  color: #a9badf;
}
.ws-switch.static {
  cursor: default;
}
.ws-switch.static:hover {
  background: var(--navy-2);
}
.sb-nav {
  padding: 12px 10px;
  display: grid;
  gap: 2px;
}
.sb-group {
  font-size: 12px;
  color: #7f93bf;
  padding: 14px 10px 6px;
  font-weight: 500;
}
.sb-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  color: #d6e0f5;
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  border: 0;
  background: none;
  cursor: pointer;
  width: 100%;
  text-align: left;
}
.sb-link:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}
.sb-link[aria-current="page"] {
  background: var(--blue);
  color: #fff;
}
.sb-link svg {
  width: 18px;
  height: 18px;
  flex: none;
  opacity: 0.9;
}
.sb-link .sb-count {
  margin-left: auto;
  background: rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  padding: 0 8px;
  font-size: 12px;
}
.sb-link[aria-current="page"] .sb-count {
  background: rgba(255, 255, 255, 0.25);
}
.sb-foot {
  margin-top: auto;
  padding: 14px 18px 18px;
  border-top: 1px solid var(--navy-line);
  display: flex;
  align-items: center;
  gap: 10px;
}
.avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 600;
  flex: none;
}
.sb-user {
  min-width: 0;
  flex: 1;
}
.sb-user .u-name {
  color: #fff;
  font-weight: 600;
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sb-user .u-sub {
  font-size: 12px;
  color: #8fa3cf;
}
.sb-signout {
  background: none;
  border: 1px solid var(--navy-line);
  color: #d6e0f5;
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 12px;
  cursor: pointer;
}
.sb-signout:hover {
  background: rgba(255, 255, 255, 0.06);
}

.main {
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.topbar {
  display: none;
}
.page {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 28px 32px 64px;
}
.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.page-head h1 {
  font-size: 26px;
  font-weight: 650;
  letter-spacing: -0.02em;
}
.page-head .sub {
  color: var(--ink-2);
  margin-top: 4px;
}
.crumb {
  font-size: 13px;
  margin-bottom: 6px;
}
.crumb a {
  text-decoration: none;
}
.crumb a:hover {
  text-decoration: underline;
}
.actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 8px;
  padding: 9px 16px;
  font-weight: 600;
  font-size: 14px;
  line-height: 1.2;
  cursor: pointer;
  border: 1px solid var(--line-2);
  background: var(--white-ui, #fff);
  color: var(--ink);
  white-space: nowrap;
  text-decoration: none;
}
.btn:hover {
  background: #f7f9fc;
  border-color: #b9c4d6;
}
.btn svg {
  width: 16px;
  height: 16px;
}
.btn.primary {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}
.btn.primary:hover {
  background: var(--blue-600);
  border-color: var(--blue-600);
}
.btn.danger {
  color: var(--red);
}
.btn.danger.solid {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}
.btn.ghost {
  border-color: transparent;
  background: none;
  color: var(--blue);
  padding: 6px 8px;
}
.btn.ghost:hover {
  background: var(--blue-50);
}
.btn.sm {
  padding: 6px 10px;
  font-size: 13px;
}
.btn[disabled],
.btn[aria-busy="true"] {
  opacity: 0.55;
  cursor: not-allowed;
}
.btn.block {
  width: 100%;
}

/* ---------- Cards & layout ---------- */
.grid {
  display: grid;
  gap: 16px;
}
.grid.cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.grid.cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.grid.cols-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.grid.main-side {
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  align-items: start;
}
.stack {
  display: grid;
  /* One column that never grows past its container (long unwrapped text
     inside used to push the column, and the card, wider than the page). */
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}
.stack > ul,
.stack > ol {
  margin: 0;
}
.stack.tight {
  gap: 8px;
}
.row {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.row.between {
  justify-content: space-between;
}
.row.end {
  justify-content: flex-end;
  gap: 6px;
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  box-shadow: var(--shadow);
  min-width: 0;
}
.card-head {
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.card-head:last-child {
  border-bottom: 0;
}
.card-head h2 {
  font-size: 16px;
  font-weight: 620;
}
.card-head .desc {
  font-size: 13px;
  color: var(--ink-3);
  margin-top: 2px;
}
.card-body {
  padding: 20px;
}
.card-body.flush {
  padding: 0;
}
.card.pad {
  padding: 20px;
}

/* Stats */
.stat {
  padding: 18px 20px;
}
.stat .s-label {
  font-size: 13px;
  color: var(--ink-2);
  font-weight: 500;
}
.stat .s-value {
  font-size: 28px;
  font-weight: 650;
  letter-spacing: -0.02em;
  margin-top: 6px;
  font-variant-numeric: tabular-nums;
}
.stat .s-sub {
  font-size: 12px;
  color: var(--ink-3);
  margin-top: 2px;
}

/* Hero (next pay run) */
.hero {
  background: var(--navy);
  color: #fff;
  border-radius: var(--radius-l);
  padding: 24px 28px;
  display: grid;
  gap: 20px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  right: -150px;
  top: -170px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  border: 40px solid rgba(10, 79, 196, 0.32);
}
.hero > * {
  position: relative;
  z-index: 1;
}
.hero .h-label {
  color: #a9badf;
  font-size: 13px;
  font-weight: 500;
}
.hero h2 {
  font-size: 24px;
  font-weight: 650;
  margin-top: 2px;
}
.hero .h-meta {
  color: #c3d0ec;
  margin-top: 4px;
}
.hero .btn {
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}
.hero .btn.primary {
  background: #fff;
  color: var(--navy);
  border-color: #fff;
}
.hero .btn.primary:hover {
  background: var(--blue-50);
}

/* ---------- Stepper ---------- */
.stepper {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 0;
  counter-reset: step;
  list-style: none;
  margin: 0;
  padding: 0;
}
.stepper li {
  position: relative;
  padding-top: 30px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-3);
}
.stepper li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  top: 0;
  left: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid var(--line-2);
  background: var(--white-ui, #fff);
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--ink-3);
  z-index: 1;
}
.stepper li::after {
  content: "";
  position: absolute;
  top: 10px;
  left: 22px;
  right: 0;
  height: 2px;
  background: var(--line-2);
}
.stepper li:last-child::after {
  display: none;
}
.stepper li.done {
  color: var(--ink-2);
}
.stepper li.done::before {
  content: "✓";
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}
.stepper li.done::after {
  background: var(--blue);
}
.stepper li.current {
  color: var(--ink);
  font-weight: 650;
}
.stepper li.current::before {
  border-color: var(--blue);
  color: var(--blue);
  box-shadow: 0 0 0 4px var(--blue-100);
}
.hero .stepper li {
  color: #8fa3cf;
}
.hero .stepper li::before {
  background: var(--navy);
  border-color: #3a5488;
  color: #8fa3cf;
}
.hero .stepper li::after {
  background: #3a5488;
}
.hero .stepper li.done {
  color: #c3d0ec;
}
.hero .stepper li.done::before {
  background: #fff;
  border-color: #fff;
  color: var(--navy);
}
.hero .stepper li.done::after {
  background: #fff;
}
.hero .stepper li.current {
  color: #fff;
}
.hero .stepper li.current::before {
  border-color: #fff;
  color: #fff;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.15);
}

/* ---------- Badges ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 2px 10px;
  font-size: 12px;
  font-weight: 600;
  background: #eef1f6;
  color: var(--ink-2);
  white-space: nowrap;
  line-height: 1.6;
}
.badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.8;
}
.badge.plain::before {
  display: none;
}
.badge.blue {
  background: var(--blue-50);
  color: var(--blue-600);
}
.badge.green {
  background: var(--green-50);
  color: var(--green);
}
.badge.amber {
  background: var(--amber-50);
  color: var(--amber);
}
.badge.red {
  background: var(--red-50);
  color: var(--red);
}
.badge.navy {
  background: var(--navy);
  color: #fff;
}
.chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

/* ---------- Not built yet (the honest marker) ---------- */
.notbuilt {
  border: 1px dashed #9aa8bf;
  border-radius: var(--radius);
  padding: 14px 16px;
  background-color: #f8f9fc;
  background-image: repeating-linear-gradient(
    -45deg,
    rgba(86, 100, 124, 0.06) 0 8px,
    transparent 8px 16px
  );
  display: grid;
  gap: 4px;
}
.notbuilt .nb-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.notbuilt .nb-title {
  font-weight: 600;
  color: var(--ink-2);
}
.notbuilt .nb-text {
  font-size: 13px;
  color: var(--ink-3);
}
.nb-pill {
  font-size: 11px;
  font-weight: 700;
  color: var(--slate);
  border: 1px solid #b8c2d3;
  background: var(--white-ui, #fff);
  border-radius: 999px;
  padding: 1px 8px;
  white-space: nowrap;
}
.nb-inline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--slate);
  border: 1px dashed #9aa8bf;
  border-radius: 999px;
  padding: 1px 9px;
  background: #f8f9fc;
  white-space: normal;
  max-width: 100%;
  justify-self: start;
}

/* ---------- Tables ---------- */
.table-wrap {
  overflow-x: auto;
}
table.t {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
table.t th {
  text-align: left;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-3);
  padding: 10px 16px;
  border-bottom: 1px solid var(--line);
  background: #fafbfd;
  white-space: nowrap;
}
table.t td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
table.t tr:last-child td {
  border-bottom: 0;
}
table.t tbody tr.clickable {
  cursor: pointer;
}
table.t tbody tr.clickable:hover td {
  background: #f7f9fd;
}
table.t .r {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
table.t tfoot td {
  font-weight: 650;
  border-top: 2px solid var(--line-2);
  background: #fafbfd;
}
.cell-main {
  font-weight: 600;
}
.cell-sub {
  font-size: 12px;
  color: var(--ink-3);
}
table.t input {
  width: 96px;
  text-align: right;
}

/* ---------- Lists ---------- */
.list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.list li {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 12px 20px;
  border-bottom: 1px solid var(--line);
}
.list li:last-child {
  border-bottom: 0;
}
.list .grow {
  flex: 1;
  min-width: 0;
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue);
  flex: none;
}
.dot.amber {
  background: var(--amber);
}
.dot.green {
  background: var(--green);
}
.dot.red {
  background: var(--red);
}
.dot.grey {
  background: #b6c0d1;
}
.checklist li .tick {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid var(--line-2);
  display: grid;
  place-items: center;
  flex: none;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}
.checklist li.ok .tick {
  background: var(--green);
  border-color: var(--green);
}
.checklist li.ok .cl-title {
  color: var(--ink-2);
}
.cl-title {
  font-weight: 600;
}

/* ---------- Forms ---------- */
.field {
  display: grid;
  gap: 6px;
  /* Side-by-side fields of different heights mustn't stretch each other. */
  align-content: start;
}
.field label,
.field .flabel {
  font-weight: 600;
  font-size: 13px;
  color: var(--ink);
}
.field .hint {
  font-size: 12px;
  color: var(--ink-3);
}
.field .ferr {
  font-size: 12px;
  color: var(--red);
  font-weight: 500;
}
.input,
select.input,
textarea.input {
  width: 100%;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  padding: 9px 12px;
  background: var(--white-ui, #fff);
  min-height: 40px;
}
textarea.input {
  min-height: 80px;
  resize: vertical;
}
.input:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px var(--blue-100);
}
.input[aria-invalid="true"] {
  border-color: var(--red);
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.form-grid .full {
  grid-column: 1 / -1;
}
.form-section + .form-section {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.form-section h3 {
  font-size: 15px;
  margin-bottom: 14px;
}
.form-error {
  background: var(--red-50);
  color: var(--red);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 500;
}
.check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  cursor: pointer;
}
.check input {
  margin-top: 3px;
  width: 16px;
  height: 16px;
  accent-color: var(--blue);
}
.role-cards {
  display: grid;
  gap: 10px;
}
.role-card {
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  padding: 12px 14px;
  cursor: pointer;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.role-card:hover {
  border-color: #9fb3dd;
}
.role-card.on {
  border-color: var(--blue);
  background: var(--blue-50);
}
.role-card input {
  margin-top: 3px;
  width: 16px;
  height: 16px;
  accent-color: var(--blue);
}
.role-card .rc-title {
  font-weight: 600;
}
.role-card .rc-text {
  font-size: 13px;
  color: var(--ink-2);
}
.role-card .rc-cant {
  font-size: 12.5px;
  color: var(--ink-3, var(--ink-2));
  margin-top: 4px;
}
.role-card .rc-cant::before {
  content: "Limits: ";
  font-weight: 600;
}
.why-two {
  margin: 0 0 10px;
}
.pw-row {
  display: flex;
  gap: 8px;
}
.pw-row .input {
  flex: 1;
}

/* ---------- Callouts ---------- */
.callout {
  border-radius: var(--radius);
  padding: 12px 14px;
  font-size: 13px;
  display: grid;
  gap: 2px;
  border: 1px solid transparent;
}
.callout strong {
  font-weight: 650;
}
.callout.info {
  background: var(--blue-50);
  color: #1b3d8f;
  border-color: var(--blue-100);
}
.callout.warn {
  background: var(--amber-50);
  color: #7a4205;
  border-color: #f6dfb8;
}
.callout.ok {
  background: var(--green-50);
  color: #0b5c39;
  border-color: #c8e8d8;
}
.callout.err {
  background: var(--red-50);
  color: var(--red);
  border-color: #f6cbc6;
}

/* ---------- Empty / loading ---------- */
.empty {
  text-align: center;
  padding: 40px 24px;
  display: grid;
  gap: 8px;
  justify-items: center;
}
.empty .e-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--blue-50);
  color: var(--blue);
  display: grid;
  place-items: center;
}
.empty .e-icon svg {
  width: 22px;
  height: 22px;
}
.empty h3 {
  font-size: 16px;
}
.empty p {
  color: var(--ink-3);
  max-width: 420px;
}
.empty .btn {
  margin-top: 8px;
}
.skel {
  background: linear-gradient(
    90deg,
    var(--skel-a, #eceff5) 0%,
    var(--skel-b, #f6f7fa) 50%,
    var(--skel-a, #eceff5) 100%
  );
  background-size: 200% 100%;
  animation: shimmer 1.2s infinite;
  border-radius: 8px;
  height: 14px;
}
.skel.tall {
  height: 120px;
  border-radius: var(--radius-l);
}
@keyframes shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* ---------- Tabs ---------- */
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 20px;
  overflow-x: auto;
  scroll-padding-inline: 8px;
}
.tabs button {
  border: 0;
  background: none;
  padding: 10px 14px;
  font-weight: 600;
  color: var(--ink-3);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  cursor: pointer;
  white-space: nowrap;
  scroll-margin-inline: 12px;
}
.tabs button:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}
.tabs button[aria-selected="true"] {
  color: var(--blue);
  border-bottom-color: var(--blue);
}
.tabs button:hover {
  color: var(--ink);
}

/* ---------- Drawer & dialog ---------- */
.scrim {
  position: fixed;
  inset: 0;
  background: rgba(4, 29, 74, 0.42);
  z-index: 40;
  animation: fade 0.15s ease-out;
}
.drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(560px, calc(100vw * var(--zi, 1)));
  background: var(--white-ui, #fff);
  z-index: 41;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-pop);
  animation: slidein 0.2s ease-out;
}
.drawer.wide {
  width: min(760px, calc(100vw * var(--zi, 1)));
}
.d-head {
  padding: 18px 24px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}
.d-head h2 {
  font-size: 18px;
  font-weight: 650;
}
.d-head .desc {
  color: var(--ink-3);
  font-size: 13px;
  margin-top: 2px;
}
.d-body {
  padding: 20px 24px;
  overflow-y: auto;
  flex: 1;
}
.d-foot {
  padding: 14px 24px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  background: #fafbfd;
}
.d-foot .spacer {
  margin-right: auto;
}
.icon-btn {
  border: 0;
  background: none;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  cursor: pointer;
  color: var(--ink-3);
  flex: none;
}
.icon-btn:hover {
  background: #eef1f6;
  color: var(--ink);
}
.icon-btn svg {
  width: 18px;
  height: 18px;
}
.dialog {
  position: fixed;
  z-index: 41;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(460px, calc(100vw * var(--zi, 1) - 32px));
  background: var(--white-ui, #fff);
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-pop);
  padding: 22px 24px;
  display: grid;
  gap: 12px;
  animation: fade 0.15s ease-out;
}
.dialog h2 {
  font-size: 18px;
}
.dialog .actions {
  justify-content: flex-end;
  margin-top: 8px;
}
.wizard-steps {
  display: flex;
  gap: 6px;
  margin-bottom: 20px;
  list-style: none;
  padding: 0;
}
.wizard-steps li {
  flex: 1;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-3);
  border-top: 3px solid var(--line);
  padding-top: 8px;
}
.wizard-steps li.done,
.wizard-steps li.current {
  border-color: var(--blue);
  color: var(--ink);
}
@keyframes fade {
  from {
    opacity: 0;
  }
}
@keyframes slidein {
  from {
    transform: translateX(24px);
    opacity: 0;
  }
}

/* ---------- Definition list ---------- */
.dl {
  display: grid;
  grid-template-columns: minmax(140px, 40%) 1fr;
  gap: 10px 16px;
  margin: 0;
}
.dl dt {
  color: var(--ink-3);
  font-size: 13px;
}
.dl dd {
  margin: 0;
  font-weight: 500;
  min-width: 0;
  overflow-wrap: anywhere;
}

/* ---------- Toasts ---------- */
.toasts {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 60;
  display: grid;
  gap: 8px;
  max-width: min(420px, calc(100vw * var(--zi, 1) - 40px));
}
.toast {
  background: var(--navy);
  color: #fff;
  border-radius: var(--radius);
  padding: 12px 16px;
  box-shadow: var(--shadow-pop);
  font-size: 14px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  animation: fade 0.2s ease-out;
}
.toast.err {
  background: var(--red);
}
.toast .t-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #6ee7a8;
  margin-top: 7px;
  flex: none;
}
.toast.err .t-dot {
  background: #fff;
}

/* ---------- Payslip ---------- */
.payslip {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  box-shadow: var(--shadow);
  max-width: 820px;
  overflow: hidden;
}
.ps-head {
  background: var(--navy);
  color: #fff;
  padding: 24px 28px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.ps-head .ps-org {
  font-weight: 650;
  font-size: 18px;
}
.ps-head .ps-meta {
  color: #c3d0ec;
  font-size: 13px;
}
.ps-net {
  text-align: right;
}
.ps-net .n-label {
  color: #a9badf;
  font-size: 13px;
}
.ps-net .n-value {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.ps-body {
  padding: 24px 28px;
  display: grid;
  gap: 24px;
}
.ps-section h3 {
  font-size: 13px;
  color: var(--ink-3);
  font-weight: 600;
  margin-bottom: 8px;
}
.ps-lines {
  width: 100%;
  border-collapse: collapse;
}
.ps-lines td {
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}
.ps-lines td.r {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.ps-lines th {
  text-align: left;
  padding: 8px 0;
  font-size: 13px;
  color: var(--ink-3);
  font-weight: 600;
  border-bottom: 1px solid var(--line);
}
.ps-lines th.r {
  text-align: right;
}
.ps-lines td + td,
.ps-lines th + th {
  padding-left: 14px;
}
.ps-lines tr.total td {
  font-weight: 700;
  border-bottom: 0;
  border-top: 2px solid var(--ink);
}
.ps-mark {
  font-size: 12px;
  color: var(--amber);
  font-weight: 600;
}

/* ---------- Disclosure ---------- */
details.notes {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fafbfd;
}
details.notes summary {
  cursor: pointer;
  padding: 10px 14px;
  font-weight: 600;
  font-size: 13px;
  color: var(--ink-2);
}
details.notes ul {
  margin: 0;
  padding: 0 14px 12px 32px;
  font-size: 13px;
  color: var(--ink-2);
  display: grid;
  gap: 4px;
}

.mobile-nav-btn {
  display: none;
}

/* ---------- Responsive ---------- */
@media screen and (max-width: 1100px) {
  .grid.cols-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .grid.main-side {
    grid-template-columns: 1fr;
  }
}
@media screen and (max-width: 860px) {
  .edition {
    position: static;
  }
  .signin {
    grid-template-columns: 1fr;
  }
  .signin-brand {
    padding: 28px 24px;
    gap: 24px;
  }
  .signin-pitch h1 {
    font-size: 26px;
  }
  .signin-foot {
    display: none;
  }
  .signin-brand::after {
    display: none;
  }
  .shell {
    grid-template-columns: 1fr;
    background: var(--surface);
  }
  .sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    height: auto;
    width: 280px;
    z-index: 50;
    transform: translateX(-100%);
    transition: transform 0.2s ease-out;
  }
  .shell.nav-open .sidebar {
    transform: translateX(0);
    box-shadow: var(--shadow-pop);
  }
  .topbar {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--navy);
    color: #fff;
    padding: 10px 16px;
    position: sticky;
    top: 0;
    z-index: 30;
  }
  .topbar .t-org {
    font-weight: 600;
    font-size: 14px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .mobile-nav-btn {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: 1px solid var(--navy-line);
    background: var(--navy-2);
    color: #fff;
    cursor: pointer;
  }
  .mobile-nav-btn svg {
    width: 18px;
    height: 18px;
  }
  .nav-scrim {
    position: fixed;
    inset: 0;
    background: rgba(4, 29, 74, 0.4);
    z-index: 45;
  }
  .page {
    padding: 20px 16px 48px;
  }
  .grid.cols-2,
  .grid.cols-3 {
    grid-template-columns: 1fr;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .page-head h1 {
    font-size: 22px;
  }
  .stepper {
    grid-auto-flow: row;
    gap: 10px;
  }
  .stepper li {
    padding: 2px 0 0 32px;
    min-height: 22px;
  }
  .stepper li::after {
    display: none;
  }
  .hero {
    padding: 20px;
  }
  .ps-head,
  .ps-body {
    padding: 20px;
  }
  .dl {
    grid-template-columns: 1fr;
    gap: 2px 0;
  }
  .dl dd {
    margin-bottom: 8px;
  }
}
@media screen and (max-width: 520px) {
  .grid.cols-4 {
    grid-template-columns: 1fr;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* ---------- Print ---------- */
@media print {
  .edition,
  .sidebar,
  .topbar,
  .page-head .actions,
  .no-print,
  .toasts {
    display: none !important;
  }
  .shell {
    display: block;
  }
  body {
    background: #fff;
  }
  .page {
    padding: 0;
    max-width: none;
  }
  .card,
  .payslip {
    box-shadow: none;
    break-inside: avoid;
  }
  .ps-head,
  .hero {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
}

.small-h {
  font-size: 16px;
  font-weight: 650;
}
.hero h2.num {
  font-size: 34px;
  letter-spacing: -0.02em;
}

.role-card .rc-note {
  font-size: 12px;
  color: var(--amber);
  font-weight: 500;
  margin-top: 4px;
}
.role-card.locked {
  opacity: 0.6;
  cursor: not-allowed;
}

.sb-pw {
  white-space: nowrap;
  background: none;
  border: 0;
  padding: 0;
  margin-top: 2px;
  color: #a9badf;
  font-size: 12px;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.sb-pw:hover {
  color: #fff;
}

/* Corrections (FI-14) */
.corr-entry + .corr-entry {
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.corr-entry .badge {
  margin-bottom: 6px;
}

/* FI-17: company brand colour accent on payslips (falls back to the product blue) */
.payslip.branded {
  border-top: 6px solid var(--brand, var(--blue));
}
.input[type="color"] {
  width: 72px;
  height: 42px;
  padding: 4px;
  cursor: pointer;
}
.leave-entry {
  align-items: end;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}
.notes-raw {
  margin-top: 8px;
}

/* MF-14 notifications */
.sb-bell {
  margin-top: 8px;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  background: none;
  border: 1px solid var(--navy-line);
  border-radius: var(--radius);
  padding: 8px 12px;
  color: #dbe4f7;
  font-size: 13px;
  cursor: pointer;
}
.sb-bell:hover {
  background: var(--navy-2);
  color: #fff;
}
.sb-bell .count {
  margin-left: auto;
  background: var(--blue);
  color: #fff;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 650;
  padding: 1px 8px;
}
.note-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: inherit;
  text-decoration: none;
}
.note-item:hover {
  border-color: var(--blue);
}
.note-item.unseen {
  border-left: 3px solid var(--blue);
}
/* MF-09 key display */
.mono.key {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 16px;
  letter-spacing: 0.06em;
  background: var(--bg-2, #f2f5fb);
  padding: 10px 12px;
  border-radius: var(--radius);
  word-break: break-all;
}
/* MF-22 team leave calendar */
.leave-cal {
  border-collapse: collapse;
  font-size: 11px;
  width: 100%;
}
.leave-cal th,
.leave-cal td {
  border: 1px solid var(--line);
  padding: 0;
  text-align: center;
}
.leave-cal .lc-name {
  text-align: left;
  padding: 4px 8px;
  white-space: nowrap;
  font-weight: 550;
  font-size: 12px;
  background: var(--card, #fff);
  position: sticky;
  left: 0;
}
.leave-cal .lc-day {
  min-width: 22px;
  padding: 4px 0;
  color: var(--muted);
  font-weight: 550;
}
.leave-cal .we {
  background: #f2f6fb;
}
.leave-cal .lc-day.ph {
  background: #fff4d6;
  color: #7a5200;
}
.leave-cal .lc-cell {
  height: 24px;
}
.leave-cal .lc-cell.on {
  background: var(--blue);
}
.leave-cal .lc-cell.asked {
  background: repeating-linear-gradient(
    45deg,
    #c9d8f8,
    #c9d8f8 3px,
    var(--white-ui, #fff) 3px,
    var(--white-ui, #fff) 6px
  );
}
.lc-key {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 3px;
  vertical-align: -2px;
  border: 1px solid var(--line);
}
.lc-key.on {
  background: var(--blue);
}
.lc-key.asked {
  background: repeating-linear-gradient(
    45deg,
    #c9d8f8,
    #c9d8f8 3px,
    var(--white-ui, #fff) 3px,
    var(--white-ui, #fff) 6px
  );
}
.lc-key.ph {
  background: #fff4d6;
}
.export-tile .row {
  gap: 8px;
  align-items: center;
}
.export-tile svg {
  width: 18px;
  height: 18px;
  color: var(--blue);
}
.empty-note {
  padding: 16px 20px;
  margin: 0;
}
h2.h2 {
  font-size: 17px;
  font-weight: 650;
  margin: 0;
}
.record-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 14px;
}
.settle {
  border-top: 1px dashed var(--line);
  padding-top: 10px;
}
.time-calc {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px 12px;
}
.time-calc summary {
  cursor: pointer;
  font-size: 13px;
  font-weight: 550;
  color: var(--blue);
}
.time-calc[open] summary {
  margin-bottom: 10px;
}
.form-grid.cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
@media screen and (max-width: 640px) {
  .form-grid.cols-3 {
    grid-template-columns: 1fr;
  }
}
.sb-bell svg {
  width: 18px;
  height: 18px;
  flex: none;
}
.sb-pw {
  text-align: left;
}
.callout .btn {
  align-self: flex-start;
}
.statement-box {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 14px;
  background: #f8faff;
}
.leave-block {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 14px;
}

/* A-F7: leave-summary registration at 390 — keep document width within the viewport.
 * Unified SPA loads this file (not product/style.css). Long confirm label + tabs/cards
 * were expanding scrollWidth ~3px past clientWidth. */
.payslip-leave-summary-register-panel {
  max-width: 100%;
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.payslip-leave-summary-register-panel .payslip-leave-summary-register-confirm {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin: 0.75rem 0;
  max-width: 100%;
  min-width: 0;
}
.payslip-leave-summary-register-panel
  .payslip-leave-summary-register-confirm
  span {
  min-width: 0;
  flex: 1 1 auto;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.payslip-leave-summary-register-panel button:focus,
.payslip-leave-summary-register-panel input:focus {
  outline: 2px solid var(--blue);
  outline-offset: 0;
}
@media screen and (max-width: 390px) {
  /* Keep document width at 390 without clipping required tab/nav controls. */
  .page:has(.payslip-leave-summary-register-panel) {
    max-width: 100%;
    overflow-x: visible;
  }
  .page:has(.payslip-leave-summary-register-panel) .page-head,
  .page:has(.payslip-leave-summary-register-panel) .tabs,
  .page:has(.payslip-leave-summary-register-panel) .card,
  .payslip-leave-summary-register-panel {
    max-width: 100%;
    min-width: 0;
  }
  /* Wrap time tabs so Public holidays stays fully visible/focusable at 390. */
  .page:has(.payslip-leave-summary-register-panel) .tabs {
    flex-wrap: wrap;
    overflow-x: visible;
  }
  .page:has(.payslip-leave-summary-register-panel) .tabs button {
    min-width: 0;
    max-width: 100%;
  }
  .payslip-leave-summary-register-panel button {
    display: block;
    width: 100%;
    max-width: 100%;
    margin-right: 0;
  }
  .payslip-leave-summary-register-panel input[type="checkbox"] {
    width: 1.15rem;
    height: 1.15rem;
    flex: 0 0 auto;
  }
}

/* Phone widths (3 November 2026): nothing may push the page wider than the
   screen. Wide tables scroll inside their own box; notes wrap. */
@media screen and (max-width: 860px) {
  main,
  .page,
  .page > *,
  .stack > *,
  .grid > *,
  .card,
  .card-body,
  .form-grid > * {
    min-width: 0;
    max-width: 100%;
  }
  .table-wrap {
    max-width: 100%;
  }
  .nb-inline {
    display: inline;
    white-space: normal;
  }
  .page-head .row,
  .row.between {
    flex-wrap: wrap;
  }
}

/* ---------- Expandable sections (3 Nov 2026) ----------
   Replaces the browser's bare ▶ triangles with a styled, keyboard-friendly row. */
details.disclosure > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 14px;
  color: var(--ink, #0f1b33);
  padding: 4px 0;
}
details.disclosure > summary::-webkit-details-marker {
  display: none;
}
details.disclosure > summary::before {
  content: "";
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg);
  transition: transform 0.15s ease;
  flex: none;
}
details.disclosure[open] > summary::before {
  transform: rotate(45deg);
}
details.disclosure > summary:focus-visible {
  outline: 2px solid var(--blue, #1d4ed8);
  outline-offset: 2px;
  border-radius: 4px;
}
details.disclosure[open] > :not(summary) {
  margin-top: 10px;
}
details.disclosure.card-like {
  background: var(--white-ui, #fff);
  border: 1px solid var(--line, #e3e8f0);
  border-radius: 12px;
  padding: 14px 20px;
}

/* Work test hours (3 Nov 2026) */
.wt-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(118px, 1fr));
  gap: 8px;
}
.wt-cell {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 12px;
}
.wt-cell .input {
  min-width: 0;
}

/* Address picker (NZ address list, 3 Nov 2026) */
.addr-box {
  position: relative;
}
.addr-list {
  position: absolute;
  z-index: 30;
  left: 0;
  right: 0;
  top: calc(100% + 2px);
  margin: 0;
  padding: 4px 0;
  list-style: none;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(19, 33, 58, 0.14);
  max-height: 280px;
  overflow-y: auto;
}
.addr-option {
  padding: 8px 12px;
  cursor: pointer;
  font-size: 14px;
  line-height: 1.35;
}
.addr-option:hover,
.addr-option[aria-selected="true"] {
  background: var(--blue-50);
}

/* ======================================================================
   Premium refinement layer (owner, 4 November 2026: "improve all the
   interfaces into premium quality"; refine the current look, keep the
   layout and blue). Later rules here refine the ones above; no layout or
   behaviour changes, so the checked flows stay the same.
   ====================================================================== */
:root {
  --surface: #f5f7fb;
  --line: #e3e8f0;
  --line-2: #cdd5e2;
  --ink: #101d33;
  --ring: 0 0 0 3px rgba(4, 145, 235, 0.3);
  --shadow:
    0 1px 2px rgba(16, 29, 51, 0.05), 0 2px 6px -2px rgba(16, 29, 51, 0.05);
  --shadow-md:
    0 2px 4px rgba(16, 29, 51, 0.04), 0 8px 20px -6px rgba(16, 29, 51, 0.1);
  --shadow-pop:
    0 18px 48px -12px rgba(4, 29, 74, 0.28), 0 4px 12px rgba(4, 29, 74, 0.08);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}
body {
  text-rendering: optimizeLegibility;
  font-feature-settings: "cv11", "ss01", "ss03";
}
::selection {
  background: #cddcfb;
  color: var(--ink);
}
img {
  max-width: 100%;
}
:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Headings and page heads */
.page-head h1 {
  font-size: 28px;
  font-weight: 680;
  letter-spacing: -0.025em;
  line-height: 1.2;
}
.page-head .sub {
  font-size: 14.5px;
  max-width: 70ch;
}

/* Buttons */
.btn {
  transition:
    background-color 0.15s var(--ease),
    border-color 0.15s var(--ease),
    box-shadow 0.15s var(--ease),
    transform 0.05s;
  box-shadow: 0 1px 1px rgba(16, 29, 51, 0.04);
}
.btn:active:not([disabled]) {
  transform: translateY(0.5px);
}
.btn:focus-visible {
  outline: none;
  box-shadow: var(--ring);
}
.btn.primary {
  background: linear-gradient(
    180deg,
    var(--blue-top, #1a5fd0) 0%,
    var(--blue) 100%
  );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 1px 2px rgba(10, 79, 196, 0.3);
}
.btn.primary:hover {
  background: linear-gradient(180deg, var(--blue-600) 0%, var(--blue-600) 100%);
}
.btn.ghost,
.btn.ghost:hover {
  box-shadow: none;
}
.link-btn {
  border: 0;
  background: none;
  padding: 0;
  color: var(--blue);
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(10, 79, 196, 0.35);
}
.link-btn:hover {
  text-decoration-color: currentColor;
}

/* Form fields */
.input,
select.input,
textarea.input {
  transition:
    border-color 0.15s var(--ease),
    box-shadow 0.15s var(--ease);
  box-shadow: 0 1px 1px rgba(16, 29, 51, 0.03);
}
.input:hover:not(:focus):not([disabled]):not([readonly]) {
  border-color: #b4c0d3;
}
.input:focus {
  box-shadow: var(--ring);
}
.input::placeholder {
  color: #98a3b6;
}
.input[disabled],
.input[readonly] {
  background: #f6f8fb;
  color: var(--ink-2);
}
.input[aria-invalid="true"]:focus {
  box-shadow: 0 0 0 3px rgba(180, 35, 24, 0.18);
}
.input.mono {
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 13px;
}
.field label,
.field .flabel {
  letter-spacing: -0.005em;
}
.form-section h3 {
  font-size: 15px;
  font-weight: 650;
  letter-spacing: -0.01em;
}

/* Cards */
.card {
  border-color: var(--line);
  box-shadow: var(--shadow);
}
.card-head {
  padding: 16px 20px 14px;
}
.card-head h2 {
  font-size: 15.5px;
  font-weight: 650;
  letter-spacing: -0.01em;
}
/* Tables inside flush cards keep the card's rounded corners. */
.card > .card-body.flush:last-child {
  border-bottom-left-radius: var(--radius-l);
  border-bottom-right-radius: var(--radius-l);
  overflow: hidden;
}
.card > .card-body.flush:first-child {
  border-top-left-radius: var(--radius-l);
  border-top-right-radius: var(--radius-l);
}
.card-body > ul,
.card-body > ol,
.card-body .stack > ul,
.card-body .stack > ol {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 4px;
}
.stat {
  position: relative;
}
.stat .s-label {
  font-size: 12.5px;
  color: var(--ink-3);
  font-weight: 600;
  letter-spacing: 0.01em;
}
.stat .s-value {
  font-weight: 680;
  letter-spacing: -0.03em;
}
.hero {
  background:
    radial-gradient(
      120% 140% at 100% 0%,
      var(--navy-glow, #18407f) 0%,
      transparent 55%
    ),
    linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%);
  box-shadow: var(--shadow-md);
}

/* Tables */
table.t th {
  font-size: 11.5px;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.045em;
  color: #66738b;
  background: #f8fafc;
  padding-top: 11px;
  padding-bottom: 11px;
}
table.t th:first-child,
table.t td:first-child {
  padding-left: 20px;
}
table.t th:last-child,
table.t td:last-child {
  padding-right: 20px;
}
table.t td {
  padding-top: 13px;
  padding-bottom: 13px;
  font-variant-numeric: tabular-nums;
}
table.t tbody tr {
  transition: background-color 0.12s var(--ease);
}
table.t tbody tr:hover td {
  background: #f9fbfe;
}
table.t tbody tr.clickable:hover td {
  background: #f3f7fe;
}
table.t .cell-main {
  overflow-wrap: break-word;
}
table.t tfoot td {
  background: #f8fafc;
}
.cell-sub {
  margin-top: 1px;
}

/* Badges */
.badge {
  font-weight: 600;
  letter-spacing: 0.005em;
  box-shadow: inset 0 0 0 1px rgba(16, 29, 51, 0.05);
}
.badge.blue {
  box-shadow: inset 0 0 0 1px rgba(10, 79, 196, 0.14);
}
.badge.green {
  box-shadow: inset 0 0 0 1px rgba(15, 122, 76, 0.16);
}
.badge.amber {
  box-shadow: inset 0 0 0 1px rgba(168, 90, 6, 0.16);
}
.badge.red {
  box-shadow: inset 0 0 0 1px rgba(180, 35, 24, 0.16);
}

/* Callouts */
.callout {
  line-height: 1.5;
}

/* Tabs */
.tabs button {
  transition: color 0.15s var(--ease);
  border-radius: 6px 6px 0 0;
}

/* Drawer and dialog */
.d-head {
  background: var(--white-ui, #fff);
  box-shadow: 0 1px 0 var(--line);
  border-bottom: 0;
  position: relative;
  z-index: 1;
}
.d-head h2 {
  letter-spacing: -0.015em;
}
.d-foot {
  background: var(--white-ui, #fff);
  box-shadow:
    0 -1px 0 var(--line),
    0 -6px 16px -10px rgba(16, 29, 51, 0.12);
  border-top: 0;
}
.scrim {
  background: rgba(10, 24, 52, 0.38);
  backdrop-filter: blur(2px);
}
.drawer {
  animation: slidein 0.24s var(--ease);
}
.toast {
  border-radius: 12px;
  box-shadow: var(--shadow-pop);
  font-weight: 500;
}

/* Sidebar */
.sidebar {
  background: linear-gradient(
    180deg,
    var(--navy-top, #0d244d) 0%,
    var(--navy) 60%
  );
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.18) transparent;
}
.sb-link {
  transition:
    background-color 0.15s var(--ease),
    color 0.15s var(--ease);
}
.sb-link[aria-current="page"] {
  background: linear-gradient(
    180deg,
    var(--blue-top, #1a5fd0) 0%,
    var(--blue) 100%
  );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 2px 8px -2px rgba(10, 79, 196, 0.5);
}
.ws-switch {
  transition: background-color 0.15s var(--ease);
}
.ws-switch .ws-text {
  min-width: 0;
  flex: 1;
}
.ws-switch .ws-org {
  max-width: none;
}
.sb-customer {
  margin-top: 14px;
  background: var(--white-ui, #fff);
  border-radius: var(--radius);
  padding: 10px 12px;
  display: grid;
  place-items: center;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}
.sb-customer img {
  display: block;
  max-height: 44px;
  max-width: 100%;
  object-fit: contain;
}
.ws-switch.has-logo {
  justify-content: flex-start;
}
.ws-logo {
  width: 36px;
  height: 36px;
  flex: none;
  object-fit: contain;
  background: #fff;
  border-radius: 8px;
  padding: 3px;
}
.sb-foot {
  flex-wrap: wrap;
  row-gap: 8px;
}
.sb-user .sb-pw {
  margin-top: 2px;
}
.sb-powered {
  margin: 0;
  padding: 0 18px 14px;
  font-size: 11px;
  color: #7186b3;
  letter-spacing: 0.01em;
}

/* Sign-in */
.signin-brand {
  background:
    radial-gradient(
      90% 70% at 0% 0%,
      var(--navy-glow, #17407f) 0%,
      transparent 60%
    ),
    linear-gradient(160deg, var(--navy-top, #0d244d) 0%, var(--navy) 100%);
}
.signin-brand::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
  pointer-events: none;
}
.signin-brand > * {
  position: relative;
  z-index: 1;
}
.signin-pitch h1 {
  font-weight: 680;
}
.signin-main {
  flex-direction: column;
  gap: 20px;
  background:
    radial-gradient(60% 50% at 70% 20%, #eaf0fc 0%, transparent 70%),
    var(--surface);
}
.signin-card {
  max-width: 440px;
  background: var(--white-ui, #fff);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow-md);
  padding: 36px 36px 32px;
}
.signin-card h2 {
  font-size: 24px;
  font-weight: 680;
  letter-spacing: -0.025em;
}
.signin-card form {
  margin-top: 24px;
}
.customer-head {
  display: flex;
  align-items: center;
  min-height: 56px;
  margin-bottom: 22px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}
.customer-logo {
  display: block;
  max-height: 64px;
  max-width: 240px;
  width: auto;
  height: auto;
  object-fit: contain;
}
.customer-mark {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--blue-50);
  color: var(--blue-600);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 18px;
}
.other-company {
  margin-top: 18px;
}
.powered-by {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--ink-3);
  margin: 0;
}
.powered-by img {
  width: 20px;
  height: 20px;
  border-radius: 5px;
  background: #fff;
  padding: 1px;
  box-shadow: 0 0 0 1px var(--line);
}

/* Company logo and sign-in link panel */
.brand-panel {
  display: grid;
  gap: 18px;
}
.brand-grid {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 20px;
  align-items: center;
}
.logo-preview {
  height: 96px;
  border: 1px dashed var(--line-2);
  border-radius: var(--radius);
  background: repeating-conic-gradient(#f3f5f9 0% 25%, #fff 0% 50%) 50% / 16px
    16px;
  display: grid;
  place-items: center;
  padding: 12px;
}
.logo-preview img {
  max-height: 72px;
  max-width: 100%;
  object-fit: contain;
}
.signin-link-box {
  display: grid;
  gap: 8px;
  padding: 16px;
  border-radius: var(--radius);
  background: #f8fafc;
  border: 1px solid var(--line);
}
.strong {
  font-weight: 650;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

@media screen and (max-width: 860px) {
  .signin-card {
    padding: 28px 22px 24px;
    border-radius: 16px;
  }
  .signin-main {
    padding: 24px 16px 32px;
  }
  .brand-grid {
    grid-template-columns: 1fr;
  }
  .page-head h1 {
    font-size: 23px;
  }
  table.t th:first-child,
  table.t td:first-child {
    padding-left: 16px;
  }
  table.t th:last-child,
  table.t td:last-child {
    padding-right: 16px;
  }
}
@media screen and (max-width: 520px) {
  /* Four figures side by side in pairs on a phone, not one long column. */
  .grid.cols-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .grid.cols-4 .stat {
    padding: 14px;
  }
  .grid.cols-4 .stat .s-value {
    font-size: 21px;
  }
}

/* Company logo on the payslip header */
.ps-logo {
  display: inline-grid;
  place-items: center;
  background: #fff;
  border-radius: 8px;
  padding: 6px 10px;
  margin-bottom: 12px;
}
.ps-logo img {
  display: block;
  max-height: 36px;
  max-width: 180px;
  object-fit: contain;
}

/* ======================================================================
   Payslip, premium layout (8 November 2026). Branded header, employee
   facts, a "This period" at-a-glance strip (structure cue from Payslip2
   and modern slips), then earnings → deductions → paid into → leave → YTD.
   ====================================================================== */
.payslip {
  max-width: 880px;
  border-radius: 18px;
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.payslip.branded {
  border-top: 0;
  position: relative;
}
.payslip.branded::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 5px;
  background: var(--brand, var(--blue));
  z-index: 1;
}
.ps-head {
  align-items: flex-end;
  padding: 30px 32px 26px;
  background:
    radial-gradient(
      110% 160% at 100% 0%,
      var(--navy-glow, #18407f) 0%,
      transparent 55%
    ),
    linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%);
}
.ps-id {
  min-width: 0;
}
.ps-head .ps-org {
  font-size: 20px;
  font-weight: 680;
  letter-spacing: -0.015em;
}
.ps-kind {
  margin-top: 2px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #9fb3dc;
}
.ps-net .n-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.ps-net .n-value {
  font-size: 38px;
  font-weight: 720;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-top: 4px;
}
.ps-net .n-sub {
  font-size: 13px;
  color: #c3d0ec;
  margin-top: 4px;
}
.ps-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-bottom: 1px solid var(--line);
  background: #f8fafc;
}
.ps-fact {
  padding: 14px 32px;
  min-width: 0;
}
.ps-fact + .ps-fact {
  border-left: 1px solid var(--line);
}
.f-label {
  font-size: 11.5px;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-3);
}
.f-value {
  margin-top: 3px;
  font-weight: 600;
  overflow-wrap: anywhere;
}
/* Continuous "This period" strip — one composition, not three cards. */
.ps-summary {
  display: grid;
  gap: 10px;
  padding: 18px 32px 6px;
  background: #fff;
}
.ps-summary-label {
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-3);
}
.ps-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: #fafbfd;
}
.ps-sum {
  padding: 14px 18px;
  position: relative;
  min-width: 0;
}
.ps-sum + .ps-sum {
  border-left: 1px solid var(--line);
}
.ps-sum .s-label {
  font-size: 11.5px;
  color: var(--ink-3);
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.ps-sum .s-value {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.025em;
  font-variant-numeric: tabular-nums;
  margin-top: 4px;
}
.ps-sum.minus .s-value::before {
  content: "− ";
  color: var(--ink-3);
  font-weight: 500;
}
.ps-sum.equals {
  background: var(--blue-50);
}
.ps-sum.equals .s-value {
  color: var(--blue-600);
}
.ps-body {
  padding: 24px 32px 28px;
  gap: 28px;
}
.ps-cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  align-items: start;
}
.ps-sec-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--brand, var(--blue));
  margin-bottom: 2px;
}
.ps-section h3,
.ps-sec-head h3 {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink);
}
.ps-sec-note {
  font-size: 12px;
  color: var(--ink-3);
}
.ps-lines td {
  padding: 10px 0;
  vertical-align: top;
}
.ps-lines td.r {
  white-space: nowrap;
  font-weight: 500;
}
.ps-lines th {
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 650;
}
.ps-lines tr.total td {
  border-top: 0;
  background: #f5f7fb;
  padding: 10px 12px;
  font-weight: 700;
}
.ps-lines tr.total td:first-child {
  border-radius: 8px 0 0 8px;
}
.ps-lines tr.total td:last-child {
  border-radius: 0 8px 8px 0;
}
.ps-section > p {
  margin-top: 10px;
}
.ps-quiet {
  margin-top: 10px;
  padding: 12px 14px;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid var(--line);
  font-size: 13px;
  color: var(--ink-2);
  display: grid;
  gap: 4px;
}
.ps-ytd {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.ps-ytd-tile {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 14px;
}
.ps-ytd-tile .y-label {
  font-size: 12px;
  color: var(--ink-3);
  font-weight: 600;
}
.ps-ytd-tile .y-value {
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  margin-top: 2px;
}
.ps-ytd-tile.strong {
  background: var(--blue-50);
  border-color: var(--blue-100);
}
.ps-ytd-tile.strong .y-value {
  color: var(--blue-600);
}
.ps-foot {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 14px 32px;
  border-top: 1px solid var(--line);
  background: #fafbfd;
  font-size: 12px;
  color: var(--ink-3);
}
.ps-foot .ps-mark {
  color: var(--amber);
  font-weight: 600;
}
.ps-body > *,
.ps-cols > * {
  min-width: 0;
}
.ps-lines.wrap td.r {
  white-space: normal;
}
@media screen and (max-width: 860px) {
  /* First-year leave table: one block per leave type on a phone. */
  .ps-lines.stack-sm thead {
    display: none;
  }
  .ps-lines.stack-sm tr {
    display: grid;
    gap: 2px;
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
  }
  .ps-lines.stack-sm td {
    border: 0;
    padding: 0;
    text-align: left;
  }
  .ps-lines.stack-sm td + td {
    padding-left: 0;
  }
  .ps-lines.stack-sm td.lt {
    font-weight: 650;
  }
  .ps-lines.stack-sm td[data-label]::before {
    content: attr(data-label) ": ";
    color: var(--ink-3);
  }
  .ps-head {
    padding: 24px 20px 20px;
  }
  .ps-net {
    text-align: left;
  }
  .ps-net .n-value {
    font-size: 32px;
  }
  .ps-facts {
    grid-template-columns: 1fr;
  }
  .ps-fact {
    padding: 10px 20px;
  }
  .ps-fact + .ps-fact {
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  .ps-summary {
    padding: 14px 20px 0;
  }
  .ps-summary-grid {
    grid-template-columns: 1fr;
  }
  .ps-sum + .ps-sum {
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  .ps-sum {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
  }
  .ps-sum .s-value {
    font-size: 18px;
    margin-top: 0;
  }
  .ps-body {
    padding: 20px;
  }
  .ps-cols {
    grid-template-columns: 1fr;
  }
  .ps-ytd {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .ps-foot {
    padding: 12px 20px;
  }
}
@media print {
  .payslip {
    border-radius: 0;
  }
  .ps-sum,
  .ps-ytd-tile,
  .ps-lines tr.total td,
  .payslip.branded::before {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
}

/* Payslip details and tables (8 November 2026), matching the PDF. */
.ps-head .ps-org-addr {
  margin-top: 2px;
  font-size: 13px;
  color: #c3d0ec;
}
.ps-facts.ps-facts-v2 {
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
}
.ps-facts-v2 .ps-fact {
  padding: 12px 20px;
}
.ps-facts-v2 .ps-fact + .ps-fact {
  border-left: 0;
}
.ps-facts-v2 .ps-fact.who {
  grid-row: span 2;
  padding: 14px 32px;
  border-right: 1px solid var(--line);
}
.f-sub {
  margin-top: 4px;
  font-size: 13px;
  color: var(--ink-2);
  white-space: pre-line;
}
.ps-lines.ps-earn th:first-child,
.ps-lines.ps-earn td.lt {
  width: 55%;
}
.ps-earn .ps-qr {
  display: none;
}
.ps-lines tr.total.strong td {
  background: var(--blue-50);
  color: var(--blue-600);
}
@media screen and (max-width: 860px) {
  .ps-facts.ps-facts-v2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .ps-facts-v2 .ps-fact.who {
    grid-column: 1 / -1;
    grid-row: auto;
    padding: 12px 20px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .ps-facts-v2 .ps-fact + .ps-fact {
    border-top: 0;
  }
  .ps-earn .ps-q {
    display: none;
  }
  .ps-earn .ps-qr {
    display: block;
  }
  .ps-lines.ps-earn th:first-child,
  .ps-lines.ps-earn td.lt {
    width: auto;
  }
}
@media print {
  .ps-lines tr.total.strong td {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
}

/* Long option text in a select never pushes a form past a phone screen. */
select,
select.input {
  max-width: 100%;
  min-width: 0;
  text-overflow: ellipsis;
}
.field,
.form-grid > *,
.row > .field {
  min-width: 0;
}

/* Send payslips step (finalised pay run) */
.send-card {
  border-color: var(--blue-100);
  box-shadow: var(--shadow-md);
}
.recip-list,
.card-body .stack > ul.recip-list {
  list-style: none;
  display: block;
  margin: 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  max-height: 320px;
  overflow-y: auto;
}
.recip-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
}
.recip-list li:last-child {
  border-bottom: 0;
}
.recip-list .grow {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}

/* NZBN register check results (verification) */
.reg-check {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
  background: #f8fafc;
}
.reg-results {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
  font-size: 13px;
}
.reg-results li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.reg-results .mark {
  flex: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  background: var(--slate);
}
.reg-results li.ok .mark {
  background: var(--green);
}
.reg-results li.bad .mark {
  background: var(--amber);
}

.ws-switch:not(.static):hover {
  background: rgba(255, 255, 255, 0.1);
}

/* Brand colours (Company settings) */
.brand-colours {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fafbfd;
}
.colour-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.colour-pick {
  display: grid;
  gap: 6px;
  align-content: start;
}
.colour-pick .cp-row {
  display: flex;
  gap: 8px;
  align-items: center;
}
.colour-pick .cp-row .input.mono {
  width: 110px;
}
.colour-pick .cp-ratio {
  font-size: 12px;
}
.colour-pick .cp-ratio.bad {
  color: var(--red);
  font-weight: 600;
}
.colour-pick .cp-ratio.good {
  color: var(--green);
}
.brand-preview {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  min-height: 96px;
  background: #fff;
}
.brand-preview .bp-side {
  padding: 12px 10px;
  display: grid;
  gap: 6px;
  align-content: start;
  color: #d6e0f5;
  font-size: 11px;
}
.brand-preview .bp-item {
  padding: 4px 8px;
  border-radius: 6px;
}
.brand-preview .bp-item.on {
  color: #fff;
}
.brand-preview .bp-main {
  padding: 12px 14px;
  display: grid;
  gap: 8px;
  align-content: start;
  border-top: 4px solid transparent;
}
.brand-preview .bp-btn {
  justify-self: start;
  color: #fff;
  border-radius: 7px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
}
.brand-preview .bp-link {
  font-size: 12px;
  font-weight: 600;
}
@media screen and (max-width: 860px) {
  .colour-grid {
    grid-template-columns: 1fr;
  }
}
.colour-pick .flabel {
  font-weight: 600;
  font-size: 13px;
}
.colour-pick .hint {
  font-size: 12px;
  color: var(--ink-3);
}
/* Decorative rings follow the main colour. */
.signin-brand::after {
  border-color: color-mix(in srgb, var(--blue) 35%, transparent);
}
.hero::after {
  border-color: color-mix(in srgb, var(--blue) 32%, transparent);
}
/* Pay-run banner steps: neutral lines so they suit any sidebar colour. */
.hero .stepper li::before {
  border-color: rgba(255, 255, 255, 0.3);
  color: rgba(255, 255, 255, 0.65);
}
.hero .stepper li::after {
  background: rgba(255, 255, 255, 0.22);
}
.hero .stepper li.done::before,
.hero .stepper li.done::after {
  background: #fff;
  border-color: #fff;
}
.hero .stepper li.done::before {
  color: var(--navy);
}

/* Icon sizes and the sidebar footer (owner, 4 November 2026). The switch
   arrows had no size, so they filled the workspace card and the chooser. */
.ws-switch > svg {
  width: 16px;
  height: 16px;
  flex: none;
  opacity: 0.75;
}
.chooser button > svg {
  width: 18px;
  height: 18px;
  flex: none;
  color: var(--ink-3);
}
.chooser button:hover > svg {
  color: var(--blue);
}
.ws-switch .ws-role {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sb-foot {
  display: grid;
  gap: 12px;
}
.sb-me {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.sb-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.sb-actions .sb-pw,
.sb-actions .sb-signout {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 0;
  padding: 7px 10px;
  border: 1px solid var(--navy-line);
  border-radius: 8px;
  background: none;
  color: #d6e0f5;
  font-size: 12px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}
.sb-actions .sb-pw:hover,
.sb-actions .sb-signout:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}
.sb-actions svg {
  width: 14px;
  height: 14px;
  flex: none;
}

/* Year reports: headings wrap and cells are tighter, so the table fits the
   card instead of scrolling sideways (owner, 4 November 2026). */
.report-fit table.t th {
  white-space: normal;
  vertical-align: bottom;
  padding-left: 12px;
  padding-right: 12px;
  line-height: 1.35;
}
.report-fit table.t td {
  padding-left: 12px;
  padding-right: 12px;
  white-space: nowrap;
}
.report-fit table.t td .cell-sub {
  white-space: normal;
}
.report-fit table.t th:first-child,
.report-fit table.t td:first-child {
  padding-left: 18px;
}
.report-fit table.t th:last-child,
.report-fit table.t td:last-child {
  padding-right: 18px;
}

/* Holiday pay building up, under the leave table (owner, 4 November 2026). */
.leave-hp-note {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  border-top: 1px solid var(--line);
  background: #fafbfd;
  border-radius: 0 0 var(--radius) var(--radius);
}
.card > .leave-hp-note,
.stack > .leave-hp-note {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white-ui, #fff);
}
.leave-hp-note .lhp-title {
  font-weight: 600;
  font-size: 14px;
}
.leave-hp-note .lhp-amount {
  font-size: 18px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* The page title takes focus after navigation (for screen readers); it
   doesn't need a visible focus box (owner, 4 November 2026). */
.page h1[tabindex="-1"]:focus,
h1[tabindex="-1"]:focus {
  outline: none;
}

/* Payslip leave block (owner, 4 November 2026). */
.ps-line-sub {
  font-size: 12px;
  color: var(--ink-3);
  margin-top: 2px;
}
.ps-leave tr.ps-hp td {
  border-bottom: 0;
  background: #f5f7fb;
}
.ps-leave tr.ps-hp td:first-child {
  padding-left: 12px;
  border-radius: 8px 0 0 8px;
}
.ps-leave tr.ps-hp td:last-child {
  padding-right: 12px;
  border-radius: 0 8px 8px 0;
}

/* Checked KiwiSaver records card (owner, 4 November 2026). */
details.disclosure.ks-checked > summary {
  padding: 18px 20px;
  gap: 12px;
}
details.disclosure.ks-checked > summary::before {
  order: 3;
  color: var(--ink-3);
}
details.disclosure.ks-checked[open] > :not(summary) {
  margin-top: 0;
  border-top: 1px solid var(--line);
}
.ks-checked-title {
  display: grid;
  gap: 2px;
  flex: 1;
  font-size: 15px;
}
.ks-checked-title .small {
  font-weight: 400;
}
.ks-records {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.ks-records li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
}
.ks-records li + li {
  border-top: 1px solid var(--line);
}
.ks-record-form {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
}
@media screen and (max-width: 720px) {
  .ks-record-form {
    grid-template-columns: 1fr;
  }
}
.ks-records li {
  margin: 0;
}

/* Parental leave records (5 Nov) */
.pl-item {
  padding: 12px 0;
  border-top: 1px solid var(--line);
}
.pl-item:first-child {
  border-top: 0;
  padding-top: 0;
}
.pl-head {
  justify-content: space-between;
  align-items: flex-start;
}
.overdue {
  color: var(--red);
  font-weight: 600;
}

/* Average daily pay 52-week grid (5 Nov) */
.adp-week {
  display: grid;
  grid-template-columns: 6.5rem repeat(7, 1.9rem) minmax(5rem, 1fr);
  gap: 6px;
  align-items: center;
}
.adp-week-head {
  font-size: 12px;
  color: var(--ink-3);
  font-weight: 600;
}
@media screen and (max-width: 520px) {
  .adp-week {
    grid-template-columns: 4.5rem repeat(7, 1.5rem) minmax(4rem, 1fr);
    gap: 4px;
  }
}

/* 5 November 2026: recovery codes for two-step verification. */
.recovery-codes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 16px;
  margin: 0;
  padding: 12px 16px;
  list-style: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

/* 5 November 2026: QR code for the authenticator app. */
.qr-wrap {
  display: flex;
  justify-content: center;
}
.qr {
  width: 200px;
  height: 200px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

/* 5 November 2026: rosters. */
.roster-warn {
  color: var(--amber-ink, #8a5a00);
}
.roster-empty {
  margin: 0;
  padding: 12px 16px;
}

/* ======================================================================
   New look (owner, 6 November 2026: concept B, the original Apps Pay
   look). Classic aligned (owner, 10 November 2026): the page, card,
   button, table, dashboard and sign-in rules below now apply to every
   look (html[data-look]). Only the top-bar navigation stays new-look only
   (html[data-look="new"]); Classic keeps its side menu and icon rail.
   ====================================================================== */
html:not([data-look="new"]) .look-new-only,
html:not([data-look="new"]) .t-actions,
html:not([data-look="new"]) .t-switch {
  display: none !important;
}
.sb-actions .sb-look {
  grid-column: 1 / -1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 0;
  padding: 7px 10px;
  border: 1px solid var(--navy-line);
  border-radius: 8px;
  background: none;
  color: #d6e0f5;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
}
.sb-actions .sb-look:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

/* Classic (owner, 10 November 2026): the area beside the side menu shows
   the same pale wash as the new look, so the floating cards read the same. */
@media print, (min-width: 861px) {
  html[data-look="classic"] .shell {
    background: linear-gradient(
      to right,
      var(--navy) var(--sidebar),
      transparent var(--sidebar)
    );
  }
}

/* Classic icon rail (8 November 2026): collapse the side menu to icons. */
@media print, (min-width: 861px) {
  html[data-look="classic"][data-sidebar="icons"] {
    --sidebar: 72px;
  }
  html[data-look="classic"][data-sidebar="icons"] .shell {
    grid-template-columns: var(--sidebar) 1fr;
    background: linear-gradient(
      to right,
      var(--navy) var(--sidebar),
      transparent var(--sidebar)
    );
  }
  html[data-look="classic"][data-sidebar="icons"] .sidebar {
    overflow-x: hidden;
  }
  html[data-look="classic"][data-sidebar="icons"] .sb-head {
    padding: 12px 8px 10px;
  }
  html[data-look="classic"][data-sidebar="icons"] .sb-head-top {
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }
  html[data-look="classic"][data-sidebar="icons"] .sb-head-top .brand-row {
    flex: none;
    justify-content: center;
  }
  html[data-look="classic"][data-sidebar="icons"] .brand-row > div:last-child,
  html[data-look="classic"][data-sidebar="icons"] .sb-customer,
  html[data-look="classic"][data-sidebar="icons"] .ws-switch .ws-text,
  html[data-look="classic"][data-sidebar="icons"] .ws-switch > svg,
  html[data-look="classic"][data-sidebar="icons"] .sb-group,
  html[data-look="classic"][data-sidebar="icons"]
    .sb-link
    > span:not(.sb-count),
  html[data-look="classic"][data-sidebar="icons"] .sb-user,
  html[data-look="classic"][data-sidebar="icons"] .sb-powered,
  html[data-look="classic"][data-sidebar="icons"] .sb-search .qs-label,
  html[data-look="classic"][data-sidebar="icons"] .sb-search .qs-kbd,
  html[data-look="classic"][data-sidebar="icons"]
    .sb-bell
    > span:not(.count):not(.sr-only):not(.bell-unread),
  html[data-look="classic"][data-sidebar="icons"] .sb-actions span,
  html[data-look="classic"][data-sidebar="icons"] .sb-pw span,
  html[data-look="classic"][data-sidebar="icons"] .sb-signout span,
  html[data-look="classic"][data-sidebar="icons"] .sb-look span {
    display: none !important;
  }
  html[data-look="classic"][data-sidebar="icons"] .sb-head .brand-row img {
    width: 28px;
    height: 28px;
  }
  html[data-look="classic"][data-sidebar="icons"] .ws-switch {
    margin-top: 10px;
    padding: 8px;
    justify-content: center;
  }
  html[data-look="classic"][data-sidebar="icons"] .ws-switch.has-logo {
    padding: 6px;
  }
  html[data-look="classic"][data-sidebar="icons"] .ws-switch .ws-logo-tile {
    margin: 0;
  }
  html[data-look="classic"][data-sidebar="icons"] .sb-nav {
    padding: 8px 6px;
    gap: 2px;
  }
  html[data-look="classic"][data-sidebar="icons"] .sb-link {
    justify-content: center;
    padding: 10px 0;
    gap: 0;
    position: relative;
  }
  html[data-look="classic"][data-sidebar="icons"] .sb-link svg {
    width: 20px;
    height: 20px;
    margin: 0;
  }
  html[data-look="classic"][data-sidebar="icons"] .sb-link .sb-count {
    position: absolute;
    top: 4px;
    right: 6px;
    margin: 0;
    min-width: 16px;
    padding: 0 4px;
    font-size: 10px;
    line-height: 16px;
    text-align: center;
  }
  html[data-look="classic"][data-sidebar="icons"] .sb-search,
  html[data-look="classic"][data-sidebar="icons"] .sb-bell {
    justify-content: center;
    padding: 10px 0;
    gap: 0;
    width: 100%;
  }
  html[data-look="classic"][data-sidebar="icons"] .sb-bell .count {
    top: 4px;
    right: 8px;
  }
  html[data-look="classic"][data-sidebar="icons"] .sb-foot {
    padding: 10px 8px 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }
  html[data-look="classic"][data-sidebar="icons"] .sb-me {
    justify-content: center;
  }
  html[data-look="classic"][data-sidebar="icons"] .sb-actions {
    grid-template-columns: 1fr;
    width: 100%;
    gap: 6px;
  }
  html[data-look="classic"][data-sidebar="icons"] .sb-actions .sb-pw,
  html[data-look="classic"][data-sidebar="icons"] .sb-actions .sb-signout,
  html[data-look="classic"][data-sidebar="icons"] .sb-actions .sb-look {
    grid-column: auto;
    width: 100%;
    padding: 8px 0;
    justify-content: center;
  }
  html[data-look="classic"][data-sidebar="icons"] .sb-collapse {
    width: 36px;
    height: 36px;
  }
}

html[data-look] {
  /* Studio Ledger blue (8 November 2026): mist canvas, charcoal, Apps Pay blue, top nav. */
  --navy: #041d4a;
  --navy-2: #073082;
  --navy-top: #06275e;
  --navy-glow: #0491eb;
  --navy-line: rgba(255, 255, 255, 0.1);
  --blue: #0a4fc4;
  --blue-600: #073082;
  --blue-top: #1a5fd0;
  --blue-50: #e8f1fc;
  --blue-100: #d3e5fa;
  --ink: #0b1f3f;
  --ink-2: #3b4a66;
  --ink-3: #4f5c76;
  --surface: #f2f6fb;
  --surface-2: #e2e8f0;
  --card: #ffffff;
  --line: #d7dee9;
  --line-2: #c0cad8;
  --radius-s: 8px;
  --radius: 12px;
  --radius-l: 16px;
  --shadow:
    0 1px 2px rgba(4, 29, 74, 0.05), 0 8px 20px -12px rgba(4, 29, 74, 0.16);
  --shadow-md:
    0 4px 12px rgba(4, 29, 74, 0.06), 0 16px 36px -20px rgba(4, 29, 74, 0.24);
  --shadow-pop:
    0 24px 56px -18px rgba(4, 29, 74, 0.32), 0 6px 16px rgba(4, 29, 74, 0.08);
  --ring: 0 0 0 3px rgba(4, 145, 235, 0.3);
  --ease: cubic-bezier(0.22, 0.8, 0.24, 1);
  --rail: 0px;
}
html[data-look] body {
  background:
    radial-gradient(60% 40% at 100% 0%, #d5e3fb 0%, transparent 55%),
    linear-gradient(180deg, #f5f7fb 0%, var(--surface) 50%, #e6ecf5 100%);
}

/* Development banner: quieter, but still on every screen. */
html[data-look] .edition {
  background: #fff8eb;
  color: #6b4208;
  border-bottom: 1px solid #edd9a8;
  font-weight: 500;
}
html[data-look] .edition strong {
  color: #4a2e00;
}

/* Top bar: primary chrome for Studio Ledger. */
html[data-look="new"] .topbar {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 8px 24px -20px rgba(4, 29, 74, 0.35);
  min-height: 56px;
  padding: 0 18px;
  position: sticky;
  top: var(--edition-h);
  z-index: 20;
}
html[data-look="new"] .topbar::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    var(--blue) 0%,
    #7cc8f8 55%,
    transparent 100%
  );
  pointer-events: none;
}
html[data-look="new"] .t-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
  margin-left: auto;
}
html[data-look="new"] .t-brand {
  flex: none;
  display: flex;
  align-items: center;
}
html[data-look="new"] .t-brand .brand-row {
  gap: 10px;
}
html[data-look="new"] .t-brand .brand-row img {
  width: 34px;
  height: 34px;
  border-radius: 10px;
}
html[data-look="new"] .t-brand .brand-name {
  font-size: 15px;
  font-weight: 750;
  color: var(--ink);
  letter-spacing: -0.02em;
}
html[data-look="new"] .t-brand .brand-sub {
  display: none;
}
html[data-look="new"] .t-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1 1 auto;
  min-width: 12rem;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 0 4px;
}
html[data-look="new"] .t-nav::-webkit-scrollbar {
  display: none;
}
html[data-look="new"] .t-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--ink-2);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  border: 0;
  background: transparent;
  transition:
    background-color 0.15s var(--ease),
    color 0.15s var(--ease);
}
html[data-look="new"] .t-link:hover {
  background: var(--surface-2);
  color: var(--ink);
}
html[data-look="new"] .t-link[aria-current="page"] {
  background: var(--blue-50);
  color: var(--blue-600);
}
html[data-look="new"] .t-link .t-count {
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: #f59f0a;
  color: #12151a;
  font-size: 11px;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
}
html[data-look="new"] .t-switcher {
  display: grid;
  gap: 0;
  text-align: left;
  max-width: 140px;
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--card);
  color: var(--ink);
  cursor: pointer;
  flex: none;
}
html[data-look="new"] .t-switcher.static {
  cursor: default;
}
html[data-look="new"] .t-switcher:not(.static):hover {
  border-color: var(--line-2);
  background: var(--surface);
}
html[data-look="new"] .t-switcher .t-org {
  font-weight: 700;
  font-size: 13px;
  letter-spacing: -0.015em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
html[data-look="new"] .t-switcher .t-ws {
  font-size: 11.5px;
  color: var(--ink-3);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
html[data-look="new"] .t-switcher > svg {
  display: none;
}
html[data-look="new"] .t-switch,
html[data-look="new"] .t-bell {
  position: relative;
  width: 36px;
  height: 36px;
  flex: none;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--card);
  color: var(--ink-2);
  cursor: pointer;
  transition:
    background-color 0.15s var(--ease),
    border-color 0.15s var(--ease),
    color 0.15s var(--ease);
}
html[data-look="new"] .t-switch:hover,
html[data-look="new"] .t-bell:hover {
  background: var(--surface-2);
  border-color: var(--line-2);
  color: var(--ink);
}
html[data-look="new"] .t-switch svg,
html[data-look="new"] .t-bell svg {
  width: 18px;
  height: 18px;
}
html[data-look="new"] .t-bell .count {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  box-sizing: border-box;
  border-radius: 9px;
  background: #f59f0a;
  color: var(--ink);
  font-size: 11px;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
}
html[data-look="new"] .t-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
  position: relative;
}
html[data-look="new"] .t-account {
  position: relative;
}
html[data-look="new"] .t-account-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 8px 4px 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  cursor: pointer;
  color: var(--ink);
}
html[data-look="new"] .t-account-btn:hover {
  background: var(--surface);
}
html[data-look="new"] .t-account .t-me-text {
  display: grid;
  line-height: 1.2;
  text-align: left;
  padding-right: 4px;
}
html[data-look="new"] .t-account .u-name {
  font-size: 13px;
  font-weight: 650;
}
html[data-look="new"] .t-account .u-sub {
  font-size: 11.5px;
  color: var(--ink-3);
}
html[data-look="new"] .t-account-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 200px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
  box-shadow: var(--shadow-md);
  display: grid;
  gap: 2px;
  z-index: 40;
}
html[data-look="new"] .t-account-menu[hidden] {
  display: none !important;
}
html[data-look="new"] .t-menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 550;
  cursor: pointer;
  text-align: left;
}
html[data-look="new"] .t-menu-item:hover {
  background: var(--surface);
}
html[data-look="new"] .t-menu-item svg {
  width: 16px;
  height: 16px;
  color: var(--ink-3);
}
html[data-look="new"] .mobile-nav-btn {
  background: var(--white-ui, #fff);
  border: 1px solid var(--line);
  color: var(--ink);
}

/* Studio Ledger desktop: top nav only. Sidebar is a mobile drawer. */
@media print, (min-width: 861px) {
  html[data-look="new"] .shell {
    grid-template-columns: 1fr;
    background: transparent;
  }
  html[data-look="new"] .mobile-nav-btn {
    display: none;
  }
  html[data-look="new"] .sidebar {
    display: none !important;
  }
}
@media screen and (max-width: 860px) {
  html[data-look="new"] .topbar {
    top: 0;
    padding: 10px 14px;
    min-height: 56px;
    gap: 8px;
  }
  html[data-look="new"] .t-nav,
  html[data-look="new"] .t-brand .brand-sub,
  html[data-look="new"] .t-switcher,
  html[data-look="new"] .t-me-text,
  html[data-look="new"] .t-account .t-me-text {
    display: none;
  }
  html[data-look="new"] .t-brand {
    flex: 1;
    min-width: 0;
  }
  html[data-look="new"] .sidebar {
    background: linear-gradient(180deg, #171b22 0%, var(--navy) 100%);
  }
}

/* Pages — wide canvas for the overview board. */
html[data-look] .page {
  max-width: 1560px;
  width: 100%;
  padding: 14px 20px 28px;
  margin: 0 auto;
}
html[data-look] .page-head {
  margin-bottom: 14px;
}
html[data-look] .page-head h1 {
  font-size: 26px;
  font-weight: 750;
  letter-spacing: -0.03em;
  line-height: 1.15;
}
html[data-look] .page-head .sub {
  color: var(--ink-3);
  font-size: 13.5px;
  max-width: 70ch;
}
html[data-look] .stack {
  gap: 12px;
}
html[data-look] .grid {
  gap: 12px;
}

/* Cards: hairline + soft lift, compact heads. */
html[data-look] .card {
  border: 1px solid rgba(215, 222, 233, 0.95);
  border-radius: var(--radius-l);
  box-shadow: var(--shadow);
  background: var(--card);
  transition: box-shadow 0.18s var(--ease);
}
html[data-look] .card-head {
  padding: 12px 16px 10px;
}
html[data-look] .card-head h2 {
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
html[data-look] .card-body:not(.flush) {
  padding: 12px 16px 14px;
}
html[data-look] .stat .s-label {
  color: var(--ink-3);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
html[data-look] .stat .s-value {
  font-weight: 780;
  letter-spacing: -0.04em;
}

/* Buttons: teal primary for Studio Ledger. */
html[data-look] .btn {
  border-radius: 12px;
  min-height: 40px;
  padding: 10px 18px;
  box-shadow: 0 1px 2px rgba(18, 21, 26, 0.05);
  transition:
    background-color 0.15s var(--ease),
    border-color 0.15s var(--ease),
    box-shadow 0.15s var(--ease),
    transform 0.08s var(--ease);
}
html[data-look] .btn.primary {
  background: linear-gradient(180deg, var(--blue-top) 0%, var(--blue) 100%);
  border-color: var(--blue);
  color: #fff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 8px 18px -8px rgba(10, 79, 196, 0.45);
}
html[data-look] .btn.primary:hover {
  background: linear-gradient(180deg, var(--blue) 0%, var(--blue-600) 100%);
  border-color: var(--blue-600);
}
/* Keyboard focus (7 November 2026 check): the two rules above removed the
   focus ring from every button in the new look (WCAG 2.2 SC 2.4.7). An
   outline also shows in Windows high-contrast (forced colours). */
html[data-look] .btn:focus-visible,
html[data-look] .btn.primary:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
  box-shadow: var(--ring);
}

/* Tables: sentence-case headings, soft header row. */
html[data-look] table.t th {
  text-transform: none;
  letter-spacing: 0;
  font-size: 12.5px;
  font-weight: 650;
  color: var(--ink-3);
  background: #f8fafc;
}
html[data-look] table.t tbody tr:hover td {
  background: #f5f8fc;
}
html[data-look] .badge {
  border-radius: 999px;
}

/* Current pay run: a deep card with the countdown ring. */
html[data-look] .hero {
  background:
    radial-gradient(
      90% 120% at 100% 0%,
      color-mix(in srgb, var(--navy-glow) 40%, transparent) 0%,
      transparent 55%
    ),
    linear-gradient(
      145deg,
      var(--navy-top) 0%,
      var(--navy) 55%,
      var(--navy-2) 100%
    );
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 18px 20px;
}
html[data-look] .hero::after {
  display: none;
}
html[data-look] .hero > .row {
  gap: 24px;
  align-items: center;
}
html[data-look] .hero > .row > div:not(.actions):not(.pay-ring) {
  flex: 1;
  min-width: 0;
}
.pay-ring {
  --p: 0%;
  position: relative;
  width: 116px;
  height: 116px;
  flex: none;
  border-radius: 50%;
  display: grid;
  place-content: center;
  text-align: center;
  background: conic-gradient(
    color-mix(in srgb, var(--blue) 60%, #ffffff) 0 var(--p),
    rgba(255, 255, 255, 0.13) var(--p) 100%
  );
}
.pay-ring::before {
  content: "";
  position: absolute;
  inset: 11px;
  border-radius: 50%;
  background: var(--navy);
}
.pay-ring > span {
  position: relative;
}
.pay-ring.s1 {
  --p: 20%;
}
.pay-ring.s2 {
  --p: 40%;
}
.pay-ring.s3 {
  --p: 60%;
}
.pay-ring.s4 {
  --p: 80%;
}
.pay-ring.s5 {
  --p: 100%;
}
.pay-ring .pr-n {
  font-size: 34px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  color: #fff;
}
.pay-ring .pr-t {
  font-size: 11px;
  color: #9fb0c8;
  max-width: 80px;
  margin-top: 4px;
  line-height: 1.25;
}

/* Pay calendar: the next 28 days, one dot per frequency paid that day. */
.pay-cal {
  list-style: none;
  margin: 4px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(28, minmax(0, 1fr));
  align-items: end;
}
.pay-cal li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.pc-dots {
  height: 30px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 3px;
}
.pc-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--blue);
  flex: none;
}
.pc-dot.f-fortnightly {
  background: #12a37a;
}
.pc-dot.f-four-weekly {
  background: #f59f0a;
}
.pc-dot.f-monthly {
  background: #7a5af8;
  border-radius: 3px;
}
.pc-bar {
  width: 100%;
  height: 6px;
  background: #eceff3;
}
.pay-cal li:first-child .pc-bar {
  border-radius: 3px 0 0 3px;
}
.pay-cal li:last-child .pc-bar {
  border-radius: 0 3px 3px 0;
}
.pay-cal li.today .pc-bar {
  background: var(--ink);
}
.pc-n {
  font-size: 11px;
  color: var(--ink-3);
}
.pay-cal li.today .pc-n {
  color: var(--ink);
  font-weight: 700;
}
.pc-legend {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--ink-3);
}
.pc-legend > span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.pc-next {
  margin-top: 12px;
}
@media screen and (max-width: 860px) {
  .pay-cal {
    grid-template-columns: repeat(14, minmax(0, 1fr));
  }
  .pay-cal li:nth-child(n + 15) {
    display: none;
  }
}

/* Where the money went: one split bar of the last run's employer cost. */
.ms-bar {
  display: block;
  width: 100%;
  height: 14px;
  border-radius: 7px;
  overflow: hidden;
  margin: 2px 0 16px;
}
.ms-a {
  fill: var(--blue);
  background: var(--blue);
}
.ms-b {
  fill: #f59f0a;
  background: #f59f0a;
}
.ms-c {
  fill: #12a37a;
  background: #12a37a;
}
.ms-legend {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}
.ms-l {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: var(--ink-3);
}
.ms-key {
  width: 9px;
  height: 9px;
  border-radius: 2px;
  flex: none;
}
.ms-v {
  margin-top: 4px;
  font-size: 17px;
  font-weight: 650;
}
@media print {
  .look-new-only {
    display: none !important;
  }
}
html[data-look] .hero .btn.primary {
  background: #fff;
  border-color: #fff;
  color: var(--navy);
}
html[data-look] .hero .btn.primary:hover {
  background: #e8edf5;
  border-color: #e8edf5;
}
html[data-look] .hero > .row {
  flex-wrap: wrap;
}
html[data-look] .hero > .row > div:not(.actions):not(.pay-ring) {
  flex: 1 1 220px;
}
@media screen and (max-width: 860px) {
  .pay-ring {
    width: 92px;
    height: 92px;
  }
  .pay-ring::before {
    inset: 9px;
  }
  .pay-ring .pr-n {
    font-size: 26px;
  }
}
.cmp-note {
  padding: 12px 20px 4px;
}

/* Appearance panel (6 November 2026). */
.look-list {
  display: grid;
  gap: 10px;
}
.look-opt {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  text-align: left;
  padding: 14px 16px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  background: var(--card);
  color: var(--ink);
  cursor: pointer;
}
.look-opt:hover {
  border-color: var(--blue);
}
.look-opt[aria-checked="true"] {
  border-color: var(--blue);
  box-shadow: 0 0 0 1px var(--blue);
}
.look-opt > svg {
  width: 18px;
  height: 18px;
  margin-left: auto;
  color: var(--blue);
  flex: none;
}
.look-swatch {
  width: 52px;
  height: 36px;
  flex: none;
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.12);
}
.look-new .look-swatch {
  background: linear-gradient(
    90deg,
    #0a4fc4 0 18%,
    #041d4a 18% 34%,
    #f2f6fb 34% 100%
  );
}
.look-dark .look-swatch {
  background: linear-gradient(90deg, #050a12 0 26%, #0c1420 26% 100%);
}
.look-classic .look-swatch {
  background: linear-gradient(90deg, #041d4a 0 42%, #f2f6fb 42% 100%);
}
.look-text {
  display: grid;
  gap: 2px;
}
.look-name {
  font-weight: 600;
}
.look-desc {
  font-size: 13px;
  color: var(--ink-3);
}

/* ======================================================================
   Dark (6 November 2026): the new look with a dark palette. Applies only
   with html[data-theme="dark"]. Since 10 November 2026 it is also set with
   data-look="classic" when Classic's colours are Dark (or Match my device
   on a dark device). Payslips and the company colour preview keep their
   light "paper" colours, and printing is always light.
   ====================================================================== */
html[data-theme="dark"] {
  color-scheme: dark;
  --navy: #060c14;
  --navy-2: #111c2a;
  --navy-top: #0d1624;
  --navy-glow: #3fa9f5;
  --navy-line: rgba(255, 255, 255, 0.09);
  --blue: #3fa9f5;
  --blue-600: #7cc8f8;
  --blue-top: #5bb6f7;
  --blue-50: rgba(63, 169, 245, 0.14);
  --blue-100: rgba(63, 169, 245, 0.24);
  --ink: #e7edf5;
  --ink-2: #b8c3d1;
  --ink-3: #a3afc0;
  --surface: #0b121c;
  --surface-2: #121a26;
  --card: #111a26;
  --line: #1f2b3a;
  --line-2: #2b3a4e;
  --green: #4fd1a1;
  --green-50: rgba(79, 209, 161, 0.13);
  --amber: #f5b544;
  --amber-50: rgba(245, 181, 68, 0.13);
  --red: #ff7a7a;
  --red-50: rgba(255, 122, 122, 0.13);
  --slate: #9aa7b8;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.35), 0 6px 18px -10px rgba(0, 0, 0, 0.55);
  --shadow-md:
    0 2px 8px rgba(0, 0, 0, 0.35), 0 18px 40px -18px rgba(0, 0, 0, 0.65);
  --shadow-pop: 0 22px 56px -16px rgba(0, 0, 0, 0.7);
  --ring: 0 0 0 3px rgba(63, 169, 245, 0.3);
}
html[data-theme="dark"] body {
  background:
    radial-gradient(
      70% 40% at 100% 0%,
      rgba(63, 169, 245, 0.14) 0%,
      transparent 55%
    ),
    var(--surface);
  color: var(--ink);
}
html[data-theme="dark"] ::selection {
  background: rgba(63, 169, 245, 0.35);
  color: #fff;
}
html[data-theme="dark"] .edition {
  background: #2a1f08;
  color: #f0cf8a;
  border-bottom-color: #3d2e0e;
}
html[data-theme="dark"] .edition strong {
  color: #ffe3a6;
}
html[data-theme="dark"] .topbar,
html[data-theme="dark"] .t-bell,
html[data-theme="dark"] .mobile-nav-btn {
  background: var(--card);
  color: var(--ink);
  border-color: var(--line);
}
html[data-theme="dark"] .card,
html[data-theme="dark"] .stat,
html[data-theme="dark"] .drawer,
html[data-theme="dark"] .dialog,
html[data-theme="dark"] .d-head,
html[data-theme="dark"] .d-foot,
html[data-theme="dark"] .signin-card,
html[data-theme="dark"] .chooser button,
html[data-theme="dark"] .nb-pill,
html[data-theme="dark"] details.disclosure.card-like,
html[data-theme="dark"] .stack > .leave-hp-note {
  background: var(--card);
  color: var(--ink);
  border-color: var(--line);
}
html[data-theme="dark"] .hero {
  background: var(--dk-hero);
  border: 1px solid var(--line);
}
html[data-theme="dark"] .pay-ring::before {
  background: var(--dk-hero);
}
html[data-theme="dark"] .signin-main {
  background: var(--surface);
}
html[data-theme="dark"] .chooser button:hover {
  background: var(--blue-50);
}
html[data-theme="dark"] .btn {
  background: var(--card);
  color: var(--ink);
  border-color: var(--line-2);
}
html[data-theme="dark"] .btn:hover {
  background: var(--dk-hover);
}
html[data-theme="dark"] .btn.primary {
  background: var(--blue);
  border-color: var(--blue);
  color: #06101f;
}
html[data-theme="dark"] .btn.primary:hover {
  background: var(--blue-600);
  border-color: var(--blue-600);
}
html[data-theme="dark"] .btn.ghost {
  background: none;
  border-color: transparent;
}
html[data-theme="dark"] .btn.danger {
  color: var(--red);
}
html[data-theme="dark"] .hero .btn.primary {
  background: #fff;
  border-color: #fff;
  color: #0b121c;
}
html[data-theme="dark"] .input,
html[data-theme="dark"] select.input,
html[data-theme="dark"] textarea.input {
  background: var(--dk-input);
  color: var(--ink);
  border-color: var(--line-2);
}
html[data-theme="dark"] .input::placeholder {
  color: #6b788a;
}
html[data-theme="dark"] .input[disabled],
html[data-theme="dark"] .input[readonly] {
  background: var(--dk-input-off);
  color: var(--ink-2);
}
html[data-theme="dark"] table.t th,
html[data-theme="dark"] table.t tfoot td,
html[data-theme="dark"] .nb-inline,
html[data-theme="dark"] details.notes,
html[data-theme="dark"] .statement-box,
html[data-theme="dark"] .signin-link-box,
html[data-theme="dark"] .reg-check,
html[data-theme="dark"] .brand-colours,
html[data-theme="dark"] .leave-hp-note,
html[data-theme="dark"] .leave-cal .we {
  background: var(--dk-th);
  color: var(--ink-2);
}
html[data-theme="dark"] table.t td,
html[data-theme="dark"] table.t th {
  border-color: var(--line);
}
html[data-theme="dark"] table.t tbody tr:hover td,
html[data-theme="dark"] table.t tbody tr.clickable:hover td {
  background: var(--dk-hover);
}
html[data-theme="dark"] .badge {
  background: var(--dk-badge);
  color: var(--ink-2);
}
html[data-theme="dark"] .badge.blue {
  background: var(--blue-50);
  color: #9dbbff;
}
html[data-theme="dark"] .badge.green {
  background: var(--green-50);
  color: var(--green);
}
html[data-theme="dark"] .badge.amber {
  background: var(--amber-50);
  color: var(--amber);
}
html[data-theme="dark"] .badge.red {
  background: var(--red-50);
  color: var(--red);
}
html[data-theme="dark"] .callout {
  color: var(--ink);
}
html[data-theme="dark"] .callout.info {
  background: var(--blue-50);
}
html[data-theme="dark"] .leave-cal .lc-day.ph,
html[data-theme="dark"] .lc-key.ph {
  background: rgba(245, 181, 68, 0.16);
}
html[data-theme="dark"] .icon-btn:hover {
  background: var(--dk-badge);
}
html[data-theme="dark"] .scrim {
  background: rgba(0, 0, 0, 0.55);
}
html[data-theme="dark"] .pc-bar {
  background: var(--dk-badge);
}
html[data-theme="dark"] .pay-cal li.today .pc-bar {
  background: var(--ink);
}
html[data-theme="dark"] .look-swatch {
  border-color: rgba(255, 255, 255, 0.14);
}
html[data-theme="dark"] a {
  color: #8fb0ff;
}
html[data-theme="dark"] .sb-link,
html[data-theme="dark"] .sb-link:hover,
html[data-theme="dark"] .hero a.btn {
  text-decoration: none;
}
/* Payslips and the brand preview stay light, like paper. */
html[data-theme="dark"] .payslip,
html[data-theme="dark"] .brand-preview {
  --ink: #0b1f3f;
  --ink-2: #3b4a66;
  --ink-3: #4f5c76;
  --line: #e2e7f0;
  --line-2: #cfd7e4;
  --card: #ffffff;
  --surface: #f2f6fb;
  --blue: #0a4fc4;
  --blue-50: #e8f1fc;
  --green: #0f7a4c;
  --green-50: #e7f5ee;
  --amber: #a85a06;
  --amber-50: #fdf3e3;
  --red: #b42318;
  --red-50: #fdecea;
  color-scheme: light;
  color: var(--ink);
}
html[data-theme="dark"] .payslip a,
html[data-theme="dark"] .brand-preview a {
  color: #0a4fc4;
}
html[data-theme="dark"] .payslip table.t th,
html[data-theme="dark"] .payslip table.t tfoot td {
  background: #f8fafc;
  color: var(--ink-3);
}
html[data-theme="dark"] .payslip table.t td {
  border-color: var(--line);
}
html[data-theme="dark"] .payslip .badge {
  background: #eef1f6;
  color: var(--ink-2);
}
/* Printing is always light. */
@media print {
  html[data-theme="dark"] {
    color-scheme: light;
    --ink: #0b1f3f;
    --ink-2: #3b4a66;
    --ink-3: #4f5c76;
    --surface: #ffffff;
    --card: #ffffff;
    --line: #e2e7f0;
    --line-2: #cfd7e4;
  }
  html[data-theme="dark"] body {
    background: #fff;
    color: #0b1f3f;
  }
}

/* ======================================================================
   Home page widgets (owner, 6 November 2026). Shown in every look.
   Fixed card width so Classic (and icon-rail) don't stretch tiles.
   ====================================================================== */
.widgets {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: flex-start;
}
.widgets > .card,
.widgets > section {
  flex: 0 1 360px;
  width: 360px;
  max-width: 100%;
  min-width: 0;
}
.w-sub {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-3);
}
.bar-chart {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  gap: 10px;
  align-items: end;
  height: 180px;
  padding-top: 4px;
}
.bc-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  height: 100%;
  min-width: 0;
}
.bc-svg {
  display: block;
  width: 100%;
  max-width: 44px;
  flex: 1 1 0;
  height: 0;
  min-height: 0;
}
.bc-bar {
  fill: var(--blue);
}
.bc-bar.light {
  fill: var(--blue-100);
}
.bc-col:hover .bc-bar {
  fill: var(--blue-600);
}
.bc-v {
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-2);
  white-space: nowrap;
}
.bc-l {
  font-size: 11px;
  color: var(--ink-3);
  white-space: nowrap;
}
.ring-gauge {
  position: relative;
  width: 112px;
  height: 112px;
  flex: none;
}
.rg-svg {
  width: 100%;
  height: 100%;
  display: block;
}
.rg-track {
  fill: none;
  stroke: var(--line);
  stroke-width: 9;
}
.rg-fill {
  fill: none;
  stroke: var(--blue);
  stroke-width: 9;
  stroke-linecap: round;
}
.rg-text {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  text-align: center;
  line-height: 1.15;
}
.rg-big {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.rg-small {
  font-size: 11px;
  color: var(--ink-3);
}
.w-ring-row {
  display: flex;
  align-items: center;
  gap: 20px;
}
.split-bar {
  display: grid;
  gap: 12px;
}
.spl-bar {
  display: block;
  width: 100%;
  height: 12px;
  border-radius: 6px;
  overflow: hidden;
  background: var(--line);
}
.spl-legend {
  display: grid;
  gap: 6px;
}
.spl-legend > div {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}
.spl-key {
  width: 9px;
  height: 9px;
  border-radius: 2px;
  flex: none;
}
.spl-l {
  flex: 1;
  color: var(--ink-2);
}
.spl-v {
  font-weight: 600;
}
.splp-0 {
  fill: var(--blue);
  background: var(--blue);
}
.splp-1 {
  fill: #12a37a;
  background: #12a37a;
}
.splp-2 {
  fill: #f59f0a;
  background: #f59f0a;
}
.splp-3 {
  fill: #7a5af8;
  background: #7a5af8;
}
.splp-4 {
  fill: #e0567a;
  background: #e0567a;
}
.away-list li {
  gap: 12px;
}
.avatar.sm {
  width: 30px;
  height: 30px;
  font-size: 11px;
}
.w-figures {
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 20px;
}
.w-figures dt {
  font-size: 12.5px;
  color: var(--ink-3);
}
.w-figures dd {
  margin: 2px 0 0;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.w-figures > div:first-child dd {
  color: var(--blue);
}
.splp-muted {
  fill: var(--ink-3);
  background: var(--ink-3);
}

/* ======================================================================
   Dark colours (6 November 2026): accent and background chosen under
   Appearance. Set on body, so they win over the company brand colours that
   are applied inline on the html element. The company's main colour is
   the default accent, lightened so it reads on a dark background; the side
   menu follows the dark background.
   ====================================================================== */
html[data-theme="dark"] body {
  --blue: color-mix(in srgb, var(--brand-main, #0491eb) 70%, #ffffff);
  --blue-600: color-mix(in srgb, var(--brand-main, #0491eb) 52%, #ffffff);
  --blue-top: var(--blue);
  --blue-50: color-mix(in srgb, var(--blue) 15%, transparent);
  --blue-100: color-mix(in srgb, var(--blue) 30%, transparent);
  --surface: #0b121c;
  --card: #111a26;
  --line: #1f2b3a;
  --line-2: #2b3a4e;
  --navy: #060c14;
  --navy-2: #111c2a;
  --navy-top: #060c14;
  --navy-glow: #060c14;
  --dk-hero: #0e1a2b;
  --dk-th: #0f1722;
  --dk-hover: #152031;
  --dk-badge: #1b2636;
  --dk-input: #0d1520;
  --dk-input-off: #141e2b;
}
html[data-theme="dark"][data-dark-accent="blue"] body {
  --blue: #6b93ff;
  --blue-600: #93b1ff;
}
html[data-theme="dark"][data-dark-accent="teal"] body {
  --blue: #2dd4bf;
  --blue-600: #5eead4;
}
html[data-theme="dark"][data-dark-accent="violet"] body {
  --blue: #a78bfa;
  --blue-600: #c4b5fd;
}
html[data-theme="dark"][data-dark-accent="amber"] body {
  --blue: #fbbf24;
  --blue-600: #fcd34d;
}
html[data-theme="dark"][data-dark-accent="rose"] body {
  --blue: #fb7185;
  --blue-600: #fda4af;
}
html[data-theme="dark"][data-dark-bg="charcoal"] body {
  --surface: #121212;
  --card: #1c1c1e;
  --line: #2c2c2e;
  --line-2: #3a3a3c;
  --navy: #0a0a0a;
  --navy-2: #1f1f21;
  --navy-top: #0a0a0a;
  --navy-glow: #0a0a0a;
  --dk-hero: #1a1a1c;
  --dk-th: #18181a;
  --dk-hover: #242426;
  --dk-badge: #2a2a2c;
  --dk-input: #161618;
  --dk-input-off: #202022;
}
html[data-theme="dark"][data-dark-bg="ocean"] body {
  --surface: #08142b;
  --card: #0e1e3a;
  --line: #1b2d4f;
  --line-2: #284069;
  --navy: #050d1d;
  --navy-2: #10213f;
  --navy-top: #050d1d;
  --navy-glow: #050d1d;
  --dk-hero: #0c1c38;
  --dk-th: #0b1933;
  --dk-hover: #132a4f;
  --dk-badge: #18305a;
  --dk-input: #0a1730;
  --dk-input-off: #102342;
}
/* Text on the accent colour stays dark, so light accents keep contrast. */
html[data-theme="dark"] .sb-link[aria-current="page"] {
  color: #06101f;
}
html[data-theme="dark"] .pay-ring {
  background: conic-gradient(
    var(--blue) 0 var(--p),
    rgba(255, 255, 255, 0.13) var(--p) 100%
  );
}
/* Payslips stay paper-white with the company's real colours. */
html[data-theme="dark"] body .payslip {
  --blue: var(--brand-main, #0a4fc4);
}

/* Appearance panel: dark colour choices. */
.dark-prefs {
  display: grid;
  gap: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.dp-head {
  font-size: 15px;
  font-weight: 650;
}
.dp-title {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-3);
  margin-bottom: 8px;
}
.dp-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.dp-swatch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 6px 12px 6px 8px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: var(--card);
  color: var(--ink);
  font-size: 13px;
  cursor: pointer;
}
.dp-swatch[aria-checked="true"] {
  border-color: var(--blue);
  box-shadow: 0 0 0 1px var(--blue);
}
.dp-dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  flex: none;
}
.dp-accent-company .dp-dot {
  background: conic-gradient(
    #6b93ff 0 25%,
    #2dd4bf 0 50%,
    #fbbf24 0 75%,
    #fb7185 0
  );
}
.dp-accent-blue .dp-dot {
  background: #6b93ff;
}
.dp-accent-teal .dp-dot {
  background: #2dd4bf;
}
.dp-accent-violet .dp-dot {
  background: #a78bfa;
}
.dp-accent-amber .dp-dot {
  background: #fbbf24;
}
.dp-accent-rose .dp-dot {
  background: #fb7185;
}
.dp-bg-midnight .dp-dot {
  background: #0b121c;
}
.dp-bg-charcoal .dp-dot {
  background: #1c1c1e;
}
.dp-bg-ocean .dp-dot {
  background: #0e1e3a;
}

/* ======================================================================
   Quick search (owner, 6 November 2026): Ctrl K or the Search button.
   ====================================================================== */
.qs-kbd {
  font: 600 11px var(--font);
  border: 1px solid var(--line-2);
  border-radius: 5px;
  padding: 1px 6px;
  color: var(--ink-3);
  background: var(--card);
  white-space: nowrap;
}
/* Classic: a full-width button under Notifications. */
.sb-search {
  margin-top: 8px;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border: 1px solid var(--navy-line);
  border-radius: var(--radius);
  background: none;
  color: #d6e0f5;
  font-size: 13px;
  cursor: pointer;
}
.sb-search:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}
.sb-search svg {
  width: 16px;
  height: 16px;
  flex: none;
}
.sb-search .qs-kbd {
  margin-left: auto;
  background: transparent;
  border-color: rgba(255, 255, 255, 0.2);
  color: #a9badf;
}
/* New look: a search field in the top bar; the rail copy is hidden. */
.t-search {
  display: none;
}
html[data-look="new"] .sb-search {
  display: none;
}
/* Compact search control so the top nav keeps its menu links. */
html[data-look="new"] .t-search {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--card);
  color: var(--ink-2);
  cursor: pointer;
  transition:
    border-color 0.15s var(--ease),
    background-color 0.15s var(--ease),
    color 0.15s var(--ease);
}
html[data-look="new"] .t-search:hover {
  border-color: var(--line-2);
  background: var(--surface);
  color: var(--ink);
}
html[data-look="new"] .t-search svg {
  width: 16px;
  height: 16px;
}
html[data-look="new"] .t-search .qs-label,
html[data-look="new"] .t-search .qs-kbd {
  display: none;
}
/* The search box itself. */
.qs-scrim {
  z-index: 60;
}
.qs-box {
  position: fixed;
  z-index: 61;
  top: calc(12vh * var(--zi, 1));
  left: 50%;
  transform: translateX(-50%);
  width: min(620px, calc(100vw * var(--zi, 1) - 32px));
  max-height: calc(70vh * var(--zi, 1));
  display: flex;
  flex-direction: column;
  background: var(--card);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-pop);
  overflow: hidden;
}
.qs-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}
.qs-head > svg {
  width: 20px;
  height: 20px;
  color: var(--ink-3);
  flex: none;
}
.qs-input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: none;
  background: none;
  color: var(--ink);
  font-size: 16px;
}
.qs-input::placeholder {
  color: var(--ink-3);
}
.qs-list {
  list-style: none;
  margin: 0;
  padding: 6px;
  overflow-y: auto;
}
.qs-group {
  padding: 10px 10px 4px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-3);
}
.qs-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 10px;
  border-radius: 10px;
  cursor: pointer;
}
.qs-item.on {
  background: var(--blue-50);
}
.qs-ic {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--surface);
  color: var(--ink-2);
  flex: none;
}
.qs-ic svg {
  width: 16px;
  height: 16px;
}
.qs-text {
  display: grid;
  min-width: 0;
}
.qs-l {
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.qs-s {
  font-size: 12.5px;
  color: var(--ink-3);
}
.qs-empty {
  padding: 18px 10px;
  color: var(--ink-3);
  text-align: center;
}
.qs-foot {
  margin: 0;
  padding: 8px 16px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--ink-3);
}

/* ======================================================================
   UI improvement plan (6 November 2026). Tables, hours grid, finalise
   summary, help notes, Undo, profile, first pay run guide, empty screens,
   phone menu bar, notifications centre, contrast and spacing.
   ====================================================================== */

/* Keep focused things clear of the sticky top bar and phone menu bar
   (WCAG 2.2, 2.4.11 focus not obscured). */
html {
  scroll-padding-top: calc(var(--edition-h) + 64px);
  scroll-padding-bottom: 24px;
}

/* ---------- Tables: sorting, sticky header, tools, density ---------- */
.th-sort {
  all: unset;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  border-radius: 4px;
  font: inherit;
  color: inherit;
}
.th-sort:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}
.th-sort:hover {
  color: var(--ink);
}
table.t th.r .th-sort {
  flex-direction: row-reverse;
}
.th-arrow {
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  opacity: 0.25;
  transition: transform 0.15s;
}
th[aria-sort] .th-arrow {
  opacity: 1;
  color: var(--blue);
}
th[aria-sort="ascending"] .th-arrow {
  transform: rotate(180deg);
}
table.t th .help-tip {
  margin-left: 4px;
  vertical-align: middle;
}
.table-wrap.scroll-y {
  max-height: min(calc(70vh * var(--zi, 1)), 640px);
  overflow: auto;
}
.table-wrap.scroll-y:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: -2px;
}
.table-wrap.scroll-y thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  box-shadow: inset 0 -1px 0 var(--line);
}
.table-wrap.scroll-y tfoot td {
  position: sticky;
  bottom: 0;
  z-index: 2;
}
.t-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  flex-wrap: wrap;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
}
.tt-left {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1 1 220px;
  max-width: 360px;
  color: var(--ink-3);
}
.tt-left svg {
  flex: none;
}
.tt-filter {
  width: 100%;
  min-width: 0;
}
.tt-right {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.tt-count {
  margin-right: 6px;
}
.tt-density[aria-pressed="true"] {
  background: var(--blue-50);
}
svg.flip {
  transform: rotate(180deg);
}
html[data-density="compact"] table.t th {
  padding-top: 7px;
  padding-bottom: 7px;
}
html[data-density="compact"] table.t td {
  padding-top: 6px;
  padding-bottom: 6px;
  font-size: 13.5px;
}
html[data-density="compact"] table.t .cell-sub {
  display: inline;
  margin-left: 6px;
}
html[data-density="compact"] table.t .btn.sm {
  padding-top: 3px;
  padding-bottom: 3px;
}

/* ---------- Hours grid ---------- */
table.t input.hours-cell {
  width: 104px;
  font-variant-numeric: tabular-nums;
}
table.t input.hours-cell.changed {
  background: var(--amber-50);
  border-color: var(--amber);
}
table.t input.hours-cell[aria-invalid="true"] {
  border-color: var(--red);
  background: var(--red-50);
}
.hours-changed {
  align-self: center;
  margin-right: 4px;
}
.hours-changed.bad {
  color: var(--red);
  font-weight: 600;
}
.hours-keys.card-body {
  padding-top: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

/* ---------- Finalise summary ---------- */
.fz-hero {
  border-radius: var(--radius-l);
  padding: 18px 20px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%);
  color: #fff;
}
.fz-hero .small.muted {
  color: #c3d0ec;
}
.fz-label {
  font-size: 13px;
  color: #c3d0ec;
}
.fz-big {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 2px 0 6px;
}
.fz-box {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
  display: grid;
  gap: 8px;
  align-content: start;
}
.fz-dl {
  margin: 0;
  display: grid;
  gap: 2px;
}
.fz-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 5px 0;
  border-bottom: 1px solid var(--line);
}
.fz-row:last-child {
  border-bottom: 0;
}
.fz-row dt {
  color: var(--ink-2);
}
.fz-row dd {
  margin: 0;
  font-weight: 650;
}
.fz-changes li {
  padding: 8px 0;
}
.fz-word {
  max-width: 240px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 650;
}

/* ---------- Help notes (ⓘ) ---------- */
.help-tip {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  padding: 0;
  border-radius: 50%;
  border: 1.5px solid currentColor;
  background: none;
  color: var(--ink-3);
  font: 700 11px/1 var(--font);
  font-style: italic;
  cursor: pointer;
  position: relative;
  vertical-align: text-bottom;
  text-transform: none;
  letter-spacing: 0;
}
/* A 24px target around the 18px circle (WCAG 2.2, 2.5.8). */
.help-tip::before {
  content: "";
  position: absolute;
  inset: -4px;
}
.help-tip:hover,
.help-tip[aria-expanded="true"] {
  color: var(--blue);
}
.tip-bubble {
  position: fixed;
  z-index: 80;
  background: var(--card);
  color: var(--ink);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  box-shadow: var(--shadow-pop);
  padding: 12px 14px;
  font-size: 13.5px;
  line-height: 1.45;
  display: grid;
  gap: 6px;
  animation: fade 0.12s ease-out;
}
.tip-bubble a {
  font-weight: 600;
}
.term {
  white-space: nowrap;
}

/* ---------- Messages with Undo ---------- */
.toast {
  align-items: center;
}
.toast .t-dot {
  margin-top: 0;
}
.toast .t-text {
  flex: 1;
}
/* Toast button only: tables use t-action for their action column. */
.toast .t-action {
  border: 0;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font: inherit;
  font-weight: 650;
  border-radius: 6px;
  padding: 4px 10px;
  cursor: pointer;
  white-space: nowrap;
}
.toast .t-action:hover {
  background: rgba(255, 255, 255, 0.24);
}
.t-close {
  border: 0;
  background: none;
  color: inherit;
  opacity: 0.7;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  cursor: pointer;
  padding: 0;
  flex: none;
}
.t-close:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.12);
}
.t-close svg {
  width: 14px;
  height: 14px;
}
.toast :focus-visible {
  outline-color: #fff;
}

/* ---------- Page change ---------- */
.page-enter {
  animation: page-in 0.22s var(--ease, cubic-bezier(0.22, 0.8, 0.24, 1));
}
@keyframes page-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .page-enter {
    animation: none;
  }
}

/* ---------- Employee profile ---------- */
.profile-head {
  display: grid;
  gap: 10px;
  margin-bottom: 4px;
}
.ph-main {
  display: flex;
  align-items: center;
  gap: 16px;
}
.avatar.xl {
  width: 64px;
  height: 64px;
  font-size: 22px;
  font-weight: 650;
  letter-spacing: 0.02em;
  box-shadow: 0 0 0 4px var(--blue-50);
}
.ph-text {
  display: grid;
  gap: 4px;
  min-width: 0;
}
.ph-text h1 {
  font-size: 26px;
  font-weight: 650;
  letter-spacing: -0.02em;
}
.ph-text .sub {
  color: var(--ink-3);
}
.ph-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.timeline {
  list-style: none;
  margin: 0;
  padding: 20px 20px 8px;
}
.timeline li {
  display: grid;
  grid-template-columns: 14px 1fr;
  gap: 14px;
  position: relative;
  padding-bottom: 18px;
}
.timeline li::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 16px;
  bottom: 0;
  width: 2px;
  background: var(--line);
}
.timeline li:last-child::before {
  display: none;
}
.tl-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  margin-top: 3px;
  background: var(--card);
  border: 3px solid var(--blue);
}
.tl-green .tl-dot {
  border-color: var(--green);
}
.tl-title {
  font-weight: 600;
}

/* ---------- First pay run guide ---------- */
.first-run .card-body {
  padding-bottom: 4px;
}
.fr-bar {
  height: 8px;
  border-radius: 999px;
  background: var(--blue-50);
  overflow: hidden;
}
.fr-fill {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: var(--blue);
  transition: width 0.3s;
}
.fr-steps {
  list-style: none;
  margin: 0;
  padding: 8px 20px 16px;
  display: grid;
  gap: 4px;
}
.fr-steps li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 12px;
  border-radius: var(--radius);
}
.fr-steps li.current {
  background: var(--blue-50);
}
.fr-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex: none;
  font-weight: 650;
  font-size: 13px;
  border: 2px solid var(--line-2);
  color: var(--ink-3);
  background: var(--card);
}
.fr-steps li.current .fr-num {
  border-color: var(--blue);
  color: var(--blue);
}
.fr-steps li.done .fr-num {
  border-color: var(--green);
  background: var(--green);
  color: #fff;
}
.fr-num svg {
  width: 15px;
  height: 15px;
}
.fr-title {
  font-weight: 600;
}
.fr-steps li.done .fr-title {
  color: var(--ink-3);
}

/* ---------- Empty screens ---------- */
.e-visual {
  position: relative;
  width: 160px;
  height: 110px;
  display: grid;
  place-items: center;
  margin-bottom: 4px;
}
.e-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.e-visual .e-icon {
  position: relative;
  margin-top: -18px;
  box-shadow: 0 6px 16px -6px rgba(10, 79, 196, 0.45);
  background: var(--blue);
  color: #fff;
}
.ea-shadow {
  fill: var(--line);
  opacity: 0.7;
}
.ea-back {
  fill: var(--blue-50);
  stroke: var(--blue-100);
}
.ea-card {
  fill: var(--card);
  stroke: var(--line-2);
}
.ea-line {
  fill: var(--line-2);
}
.ea-line.soft {
  fill: var(--line);
}
.ea-spark {
  fill: var(--blue-100);
}
.ea-spark.soft {
  fill: var(--line-2);
}
.ea-plus {
  stroke: var(--blue-100);
  stroke-width: 2.5;
  stroke-linecap: round;
}

/* ---------- Keyboard shortcuts and choices ---------- */
.kbd-list {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 10px 16px;
  margin: 0;
  align-items: center;
}
.kbd-list dd {
  margin: 0;
}
.seg {
  display: inline-flex;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  padding: 3px;
  gap: 3px;
  flex-wrap: wrap;
}
.seg-opt {
  border: 0;
  background: none;
  font: inherit;
  font-weight: 600;
  color: var(--ink-2);
  padding: 6px 14px;
  border-radius: 7px;
  cursor: pointer;
  min-height: 32px;
}
.seg-opt[aria-checked="true"] {
  background: var(--blue);
  color: #fff;
}

/* ---------- Notifications centre ---------- */
.note-group {
  display: grid;
  gap: 6px;
}
.note-group + .note-group {
  margin-top: 10px;
}
.note-group-h {
  font-size: 12.5px;
  font-weight: 650;
  color: var(--ink-3);
  display: flex;
  align-items: center;
  gap: 6px;
}
.count-pill {
  display: inline-grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  font-size: 11px;
}

/* ---------- Phones: bottom menu bar and home screen ---------- */
.bottom-nav,
.install-card {
  display: none;
}
@media screen and (max-width: 860px) {
  .shell.has-bottom-nav .bottom-nav {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 1fr;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 35;
    background: var(--card);
    border-top: 1px solid var(--line);
    box-shadow: 0 -6px 20px -12px rgba(4, 29, 74, 0.25);
    padding: 4px 4px calc(4px + env(safe-area-inset-bottom, 0px));
  }
  .bn-link {
    display: grid;
    justify-items: center;
    gap: 2px;
    min-height: 52px;
    padding: 6px 2px;
    border: 0;
    background: none;
    font: inherit;
    font-size: 11.5px;
    font-weight: 600;
    color: var(--ink-3);
    text-decoration: none;
    border-radius: 10px;
    cursor: pointer;
  }
  .bn-link svg {
    width: 22px;
    height: 22px;
  }
  .bn-link[aria-current="page"] {
    color: var(--blue);
    background: var(--blue-50);
  }
  .shell.has-bottom-nav .page {
    padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px));
  }
  .shell.has-bottom-nav ~ .toasts,
  body:has(.shell.has-bottom-nav) .toasts {
    bottom: calc(76px + env(safe-area-inset-bottom, 0px));
  }
  html:has(.shell.has-bottom-nav) {
    scroll-padding-bottom: calc(80px + env(safe-area-inset-bottom, 0px));
  }
  .install-card {
    display: block;
  }
  .install-card .row.between {
    flex-wrap: wrap;
    gap: 12px;
  }
  .install-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    flex: none;
  }
  .t-tools {
    padding: 10px 12px;
  }
  .tt-left {
    max-width: none;
  }
  .ph-text h1 {
    font-size: 22px;
  }
  .avatar.xl {
    width: 52px;
    height: 52px;
    font-size: 18px;
  }
  .fr-steps {
    padding: 6px 10px 12px;
  }
  .fr-steps li {
    flex-wrap: wrap;
  }
  .fr-steps li .btn {
    margin-left: 42px;
  }
}
@media print {
  .bottom-nav,
  .t-tools,
  .help-tip,
  .install-card,
  .first-run {
    display: none !important;
  }
  .table-wrap.scroll-y {
    max-height: none;
    overflow: visible;
  }
}

/* ---------- Dark ---------- */
html[data-theme="dark"] .fz-hero {
  background: linear-gradient(135deg, #16233a 0%, #0f1a2b 100%);
  border: 1px solid var(--line-2);
}
html[data-theme="dark"] .tip-bubble {
  background: #16212f;
}
html[data-theme="dark"] .bottom-nav {
  background: #0f1824;
}

/* ---------- Higher contrast (setting, or the device's own) ---------- */
html[data-contrast="more"] {
  --ink: #000;
  --ink-2: #1d2433;
  --ink-3: #333c4d;
  --line: #8c96a8;
  --line-2: #5d6779;
  --blue: #0b3fb8;
  --blue-600: #08308c;
  --green: #0a5a37;
  --amber: #7a3f00;
  --red: #8f1a12;
}
html[data-contrast="more"][data-theme="dark"] {
  --ink: #fff;
  --ink-2: #e6ebf2;
  --ink-3: #c9d2de;
  --line: #5d6c80;
  --line-2: #8592a5;
  --blue: #9dbcff;
  --blue-600: #c0d4ff;
  --green: #7ef0c3;
  --amber: #ffd27a;
  --red: #ffadad;
}
html[data-contrast="more"] a {
  text-decoration: underline;
  text-underline-offset: 2px;
}
html[data-contrast="more"] .btn,
html[data-contrast="more"] .input,
html[data-contrast="more"] .badge,
html[data-contrast="more"] .card {
  border-width: 1.5px;
  border-color: var(--line-2);
}
html[data-contrast="more"] :focus-visible {
  outline-width: 3px;
}
html[data-contrast="more"] .muted,
html[data-contrast="more"] .cell-sub,
html[data-contrast="more"] .small.muted {
  color: var(--ink-2);
}

/* Windows high contrast and other forced colours: keep custom marks
   visible with system colours. */
@media (forced-colors: active) {
  .badge,
  .help-tip,
  .fr-num,
  .tl-dot,
  .count-pill,
  .seg-opt[aria-checked="true"],
  .bn-link[aria-current="page"] {
    border: 1px solid CanvasText;
    forced-color-adjust: none;
    background: Canvas;
    color: CanvasText;
  }
  .seg-opt[aria-checked="true"],
  .bn-link[aria-current="page"] {
    background: Highlight;
    color: HighlightText;
  }
  .fr-fill {
    background: Highlight;
  }
  .th-arrow {
    border-top-color: CanvasText;
  }
}
.card-body > .timeline {
  padding: 4px 0 0;
}
table.t td:first-child .cell-main {
  white-space: nowrap;
}
.fr-steps .grow {
  flex: 1;
  min-width: 0;
}
/* Dark: light accent colours need dark initials (contrast 4.5:1). */
html[data-theme="dark"] .avatar {
  color: #08111d;
}
.fz-row.total {
  border-top: 2px solid var(--ink);
  border-bottom: 0;
  margin-top: 2px;
  padding-top: 8px;
}
.fz-row.total dt,
.fz-row.total dd {
  font-weight: 700;
  color: var(--ink);
}
.fz-row dd {
  white-space: nowrap;
}

/* ==========================================================================
   7 November 2026 (owner): exceptions-first approval, payday checklist, key
   dates, sign-off page, bulk actions and saved views, session warning,
   drafts, clock in and out, new starter set-up, leave preview.
   Colours come from the theme variables, so the classic, new, dark and
   higher-contrast looks all apply.
   ========================================================================== */

/* Exceptions first */
.exceptions-card .exc-summary {
  margin: 0 0 8px;
  font-weight: 600;
}
.exceptions-card.is-clear .exc-summary::before {
  content: "✓ ";
  color: var(--green);
}
.exc-list,
.exc-reasons,
.ft-list,
.kd-list,
.kd-mini,
.onb-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.exc-item {
  padding: 10px 0;
  border-top: 1px solid var(--line);
}
.exc-item:first-child {
  border-top: 0;
}
.exc-reasons li {
  margin: 2px 0;
  font-size: 13px;
  color: var(--ink-2);
}
.exc-rules {
  margin-top: 8px;
}
details.fold-results > summary {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
}
details.fold-results > summary::-webkit-details-marker {
  display: none;
}
tr.flash td {
  background: var(--amber-50);
  transition: background 0.4s;
}

/* Payday checklist */
.ft-step {
  padding: 10px 0;
  border-top: 1px solid var(--line);
}
.ft-step:first-child {
  border-top: 0;
}
.ft-step .check {
  align-items: flex-start;
}
.ft-step.is-done strong {
  text-decoration: line-through;
  color: var(--ink-3);
}
.ft-due {
  font-size: 13px;
  color: var(--ink-2);
}
.ft-due.soon {
  color: var(--amber);
  font-weight: 600;
}
.ft-due.overdue {
  color: var(--red);
  font-weight: 600;
}

/* Key dates */
.chip {
  border: 1px solid var(--line-2);
  background: var(--card);
  color: var(--ink);
  border-radius: 999px;
  padding: 6px 12px;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
  min-height: 32px;
}
.chip[aria-pressed="true"] {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}
.chip:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}
.kd-item {
  display: grid;
  grid-template-columns: 52px 28px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 10px 16px;
  border-top: 1px solid var(--line);
}
.kd-item:first-child {
  border-top: 0;
}
.kd-date {
  display: grid;
  justify-items: center;
  line-height: 1.1;
}
.kd-day {
  font-size: 20px;
  font-weight: 700;
}
.kd-wd {
  font-size: 12px;
  color: var(--ink-3);
  text-transform: uppercase;
}
.kd-icon {
  color: var(--ink-3);
  display: inline-flex;
}
.kd-body {
  display: grid;
  gap: 2px;
  min-width: 0;
}
.kd-title {
  font-weight: 600;
}
.kd-filing .kd-icon,
.kd-deductions .kd-icon {
  color: var(--blue);
}
.kd-holiday .kd-icon {
  color: var(--green);
}
.kd-item.is-done .kd-title {
  color: var(--ink-3);
}
.kd-item.is-overdue {
  background: var(--red-50);
}
.kd-item.is-today {
  box-shadow: inset 3px 0 0 var(--amber);
}
.kd-later {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 6px;
}
.kd-mini li {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 6px 0;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}
.kd-mini li:first-child {
  border-top: 0;
}
.kd-mini .num {
  min-width: 92px;
  color: var(--ink-2);
}
.kd-mini li.is-overdue .num {
  color: var(--red);
  font-weight: 600;
}
@media screen and (max-width: 560px) {
  .kd-item {
    grid-template-columns: 44px 1fr;
  }
  .kd-icon {
    display: none;
  }
  .kd-state {
    grid-column: 2;
  }
}

/* Sign-off page */
.signoff-sheet {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  padding: 28px;
  display: grid;
  gap: 22px;
  max-width: 880px;
}
.so-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
  flex-wrap: wrap;
}
.so-head h2 {
  margin: 2px 0 4px;
  font-size: 24px;
}
.so-company {
  margin: 0;
  font-weight: 600;
  color: var(--ink-2);
}
.so-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
@media screen and (max-width: 720px) {
  .so-grid {
    grid-template-columns: 1fr;
  }
}
.so-totals th,
.so-history th {
  text-align: left;
  font-weight: 500;
}
.so-totals tr.strong th,
.so-totals tr.strong td {
  font-weight: 700;
}
.so-stamp {
  border: 3px solid var(--green);
  color: var(--green);
  border-radius: 10px;
  padding: 8px 16px;
  display: grid;
  justify-items: center;
  transform: rotate(-4deg);
  min-width: 190px;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}
.so-stamp.pending {
  border-color: var(--ink-3);
  color: var(--ink-3);
  transform: none;
}
.so-stamp-word {
  font-weight: 800;
  letter-spacing: 0.12em;
  font-size: 18px;
}
.so-stamp-who {
  font-weight: 600;
}
.so-stamp-when {
  font-size: 12px;
}
.so-lines {
  display: grid;
  grid-template-columns: 2fr 2fr 1fr;
  gap: 20px;
}
.so-lines > div {
  display: grid;
  gap: 4px;
}
.so-line {
  display: block;
  border-bottom: 1px solid var(--ink-2);
  height: 34px;
}
.so-foot {
  margin: 0;
}
@media print {
  .signoff-page .page-head {
    display: none;
  }
  .signoff-sheet {
    border: 0;
    padding: 0;
    max-width: none;
  }
}

/* Bulk actions and saved views */
.bulk-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  padding: 8px 16px;
  background: var(--blue-50);
  border-top: 1px solid var(--blue-100);
  border-bottom: 1px solid var(--blue-100);
}
.bulk-bar[hidden] {
  display: none;
}
.bulk-count {
  font-weight: 600;
}
th.t-select,
td.t-select {
  width: 36px;
  text-align: center;
}
.row-check {
  width: 18px;
  height: 18px;
  cursor: pointer;
}
tr.is-selected td {
  background: var(--blue-50);
}
.tt-views {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-left: 6px;
}
.tt-view {
  width: auto;
  min-width: 170px;
  height: 32px;
  padding-top: 0;
  padding-bottom: 0;
}

/* Session warning */
.session-dialog {
  z-index: 1300;
}
.session-scrim {
  z-index: 1299;
}
.session-count {
  font-size: 22px;
  font-weight: 700;
  margin: 4px 0 0;
}

/* Drafts */
.draft-notice {
  margin: 0 20px 4px;
}
.draft-notice .actions {
  display: inline-flex;
  gap: 6px;
}

/* Clock in and out */
.clock-row {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
}
.btn.clock-btn {
  min-height: 52px;
  padding: 0 24px;
  font-size: 16px;
}
.clock-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px var(--green-50);
}
@media (prefers-reduced-motion: no-preference) {
  .clock-dot {
    animation: clock-pulse 2s ease-in-out infinite;
  }
}
@keyframes clock-pulse {
  50% {
    box-shadow: 0 0 0 7px var(--green-50);
  }
}
@media screen and (max-width: 560px) {
  .btn.clock-btn {
    width: 100%;
    justify-content: center;
  }
}

/* New starter set-up */
.onb-step {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}
.onb-step:first-child {
  border-top: 0;
}
.onb-mark {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid var(--line-2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  margin-top: 1px;
}
.onb-step.is-done .onb-mark {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}
.onb-step.is-waiting .onb-mark {
  border-color: var(--amber);
}
.onb-step.is-declined .onb-mark {
  border-color: var(--red);
}
.onb-step .actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

/* Leave preview */
.leave-preview:empty {
  display: none;
}
.leave-preview {
  display: grid;
  gap: 6px;
}
.lp-after {
  margin: 0;
}
.lp-after.is-short strong {
  color: var(--red);
}

/* Notification types */
table.note-types th.c,
table.note-types td.c {
  text-align: center;
  width: 120px;
}
table.note-types input[type="checkbox"] {
  width: 18px;
  height: 18px;
}
.so-people,
.so-history {
  margin-bottom: 12px;
}
.so-grid h3.small-h {
  margin: 0 0 6px;
}
@media print {
  @page {
    margin: 14mm;
  }
  html,
  body,
  .shell,
  .main,
  .page {
    min-height: 0 !important;
    height: auto !important;
  }
  .signoff-page .bottom-nav,
  .session-dialog,
  .session-scrim {
    display: none !important;
  }
  .signoff-sheet {
    gap: 14px;
    break-inside: avoid;
  }
  .signoff-sheet .t td,
  .signoff-sheet .t th {
    padding-top: 5px;
    padding-bottom: 5px;
  }
  .so-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media print {
  .main > .page,
  html[data-look="new"] .main > .page {
    padding: 0 !important;
    margin: 0 !important;
  }
  .stack.signoff-page {
    gap: 0;
  }
  .so-head h2 {
    font-size: 20px;
  }
  .so-stamp {
    padding: 6px 12px;
  }
}
.onb-step {
  display: grid;
  grid-template-columns: 22px 1fr auto;
  gap: 4px 12px;
}
@media screen and (max-width: 640px) {
  .onb-step {
    grid-template-columns: 22px 1fr;
  }
  .onb-step .actions {
    grid-column: 2;
  }
}

/* ---------- Sticky name column (7 November 2026) ----------
   Wide pay run tables (hours, results) keep the person's name in view when
   they scroll sideways. Body cells take the card colour (kept at low
   specificity so row hover and selection colours still win); an edge
   appears once the table has scrolled. Header cells keep their colour. */
table.t.sticky-first th:first-child,
table.t.sticky-first td:first-child {
  position: sticky;
  left: 0;
  z-index: 1;
}
.is-scrolled-x > table.t.sticky-first th:first-child,
.is-scrolled-x > table.t.sticky-first td:first-child {
  box-shadow:
    inset -1px 0 0 var(--line),
    6px 0 8px -6px rgba(13, 27, 42, 0.18);
}
:where(table.t.sticky-first) td:first-child {
  background: var(--card);
}
table.t.sticky-first thead th:first-child {
  z-index: 3;
}
@media print {
  table.t.sticky-first th:first-child,
  table.t.sticky-first td:first-child {
    position: static;
    box-shadow: none;
  }
}

/* ---------- Staging label (7 November 2026) ----------
   New look and Dark, signed in, 600 px and wider: the development banner
   becomes a pill in the top bar. The sign-in screen, the classic look and
   phones keep the full banner (on phones it scrolls away with the page).
   Printed pages carry their own "not for live payroll" lines. */
.t-edition {
  display: none;
}
@media print, (min-width: 600px) {
  html[data-look="new"] body:has(.topbar) {
    --edition-h: 0px;
  }
  html[data-look="new"] body:has(.topbar) > .edition {
    display: none;
  }
  html[data-look="new"] .t-edition {
    display: inline-block;
  }
}
html[data-look="new"] .t-edition {
  flex: none;
  margin: 0;
  padding: 3px 8px;
  border-radius: 999px;
  background: #fff8eb;
  color: #6b4208;
  border: 1px solid #edd9a8;
  font-size: 11px;
  line-height: 1.3;
  white-space: nowrap;
  letter-spacing: 0.01em;
  max-width: 5.6rem;
  overflow: hidden;
  text-overflow: ellipsis;
}
html[data-look="new"] .t-edition strong {
  color: #4a2e00;
  font-weight: 700;
}
html[data-theme="dark"] .t-edition {
  background: #2a1f08;
  color: #f0cf8a;
  border-color: #3d2e0e;
}
html[data-theme="dark"] .t-edition strong {
  color: #ffe3a6;
}
html[data-contrast="more"] .t-edition {
  border-color: currentColor;
}
@media screen and (max-width: 1100px) {
  html[data-look="new"] .t-edition {
    display: none;
  }
}
@media (forced-colors: active) {
  html[data-look="new"] .t-edition {
    border: 1px solid CanvasText;
  }
}

/* Dark: count badges on amber keep dark text (7 November 2026 check; the
   light --ink of the dark theme gave 1.8:1 on #f59f0a, WCAG 1.4.3 needs
   4.5:1). #0d1b2a on #f59f0a is 8.2:1. */
html[data-theme="dark"] .sb-link .sb-count,
html[data-theme="dark"] .sb-link[aria-current="page"] .sb-count,
html[data-theme="dark"] .sb-bell .count,
html[data-theme="dark"] .t-bell .count {
  color: #0d1b2a;
}

/* ---------- Plans and add-ons (7 November 2026) ---------- */
.plan-mod {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
}
.plan-mod .cell-sub {
  display: block;
  margin-top: 2px;
}
.plan-blocked {
  color: var(--amber);
}

/* ======================================================================
   Dashboard visuals (owner, 7 November 2026): platform overview and
   company administrator overview. Tone classes set --pv / --pv-soft and
   everything else (icons, bars, rings, legends, tiles) reads them.
   ====================================================================== */
.pv-good {
  --pv: var(--green);
  --pv-soft: var(--green-50);
}
.pv-warn {
  --pv: var(--amber);
  --pv-soft: var(--amber-50);
}
.pv-bad {
  --pv: var(--red);
  --pv-soft: var(--red-50);
}
.pv-info {
  --pv: var(--blue);
  --pv-soft: var(--blue-50);
}
.pv-violet {
  --pv: #6d4ee8;
  --pv-soft: rgba(109, 78, 232, 0.1);
}
.pv-muted {
  --pv: #98a4b8;
  --pv-soft: var(--surface);
}
html[data-theme="dark"] .pv-violet {
  --pv: #a48dff;
  --pv-soft: rgba(164, 141, 255, 0.14);
}
html[data-theme="dark"] .pv-muted {
  --pv: #5d6b80;
}
.splp-good {
  fill: var(--green);
  background: var(--green);
}
.splp-warn {
  fill: var(--amber);
  background: var(--amber);
}

/* Welcome band */
.pv-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 26px 28px;
  border-radius: var(--radius-l);
  color: #fff;
  background:
    radial-gradient(
      120% 140% at 100% 0%,
      rgba(63, 169, 245, 0.45) 0%,
      rgba(63, 169, 245, 0) 55%
    ),
    linear-gradient(135deg, #041d4a 0%, #163a7a 60%, #0a4fc4 130%);
  box-shadow: 0 10px 30px -14px rgba(4, 29, 74, 0.55);
  position: relative;
  overflow: hidden;
}
.pv-hero::after {
  content: "";
  position: absolute;
  right: -60px;
  bottom: -90px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  border: 38px solid rgba(255, 255, 255, 0.05);
  pointer-events: none;
}
.pv-hero-main {
  min-width: 0;
  position: relative;
  z-index: 1;
}
.pv-hero-eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 6px;
}
.pv-hero h1 {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
}
.pv-hero-sub {
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.82);
  max-width: 60ch;
}
.pv-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}
html body .pv-hero-actions .btn:not(.primary) {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.28);
  color: #fff;
}
html body .pv-hero-actions .btn:not(.primary):hover {
  background: rgba(255, 255, 255, 0.18);
}
html body .pv-hero-actions .btn.primary {
  background: #fff;
  border-color: #fff;
  color: #041d4a;
}
html body .pv-hero-actions .btn:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}
.pv-hero-ring {
  position: relative;
  z-index: 1;
  flex: none;
  padding: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
}
.pv-hero .rg-track {
  stroke: rgba(255, 255, 255, 0.18);
}
.pv-hero .rg-fill {
  stroke: #7fe0b8;
}
.pv-hero .rg-big {
  color: #fff;
}
.pv-hero .rg-small {
  color: rgba(255, 255, 255, 0.75);
}
html[data-theme="dark"] .pv-hero {
  background:
    radial-gradient(
      120% 140% at 100% 0%,
      rgba(63, 169, 245, 0.3) 0%,
      rgba(63, 169, 245, 0) 55%
    ),
    linear-gradient(135deg, #0d1a2b 0%, #13284a 70%, #1b3a73 130%);
  border: 1px solid var(--line);
}

/* Headline tiles — fixed-ish width so they don't stretch on wide screens. */
.kpi-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.kpi-grid > .kpi {
  flex: 0 1 200px;
  width: 200px;
  max-width: 100%;
}
.kpi {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 18px 14px;
  color: inherit;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  border-top: 3px solid var(--pv);
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease;
}
a.kpi:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px -12px rgba(4, 29, 74, 0.3);
}
a.kpi:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}
.kpi-top {
  display: flex;
  align-items: center;
  gap: 10px;
}
.kpi-ico {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  flex: none;
  color: var(--pv);
  background: var(--pv-soft);
}
.kpi-ico svg {
  width: 17px;
  height: 17px;
}
.kpi-label {
  font-size: 13px;
  font-weight: 550;
  color: var(--ink-2);
}
.kpi-value {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-top: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.kpi-sub {
  font-size: 12.5px;
  color: var(--ink-3);
}
.pv-bad .kpi-sub,
.pv-warn .kpi-sub {
  color: var(--pv);
  font-weight: 550;
}
.kpi .pv-spark,
.kpi .pv-meter {
  margin-top: 10px;
}
.pv-spark {
  display: block;
  width: 100%;
  height: 34px;
}
.pv-spark-line {
  fill: none;
  stroke: var(--pv, var(--blue));
  stroke-width: 2;
  stroke-linejoin: round;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}
.pv-spark-area {
  fill: var(--pv-soft, var(--blue-50));
}
.pv-meter {
  display: block;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  overflow: hidden;
}
.pv-meter-track {
  fill: var(--line);
}
.pv-meter-fill {
  fill: var(--pv, var(--blue));
}
.pv-setup-meter {
  padding: 0 20px 4px;
}
.pv-setup-meter .pv-meter {
  --pv: var(--green);
  height: 8px;
  border-radius: 4px;
}
@media (prefers-reduced-motion: reduce) {
  .kpi,
  a.kpi:hover {
    transition: none;
    transform: none;
  }
}

/* Doughnut + legend */
.pv-donut-wrap {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}
.pv-donut {
  position: relative;
  width: 132px;
  height: 132px;
  flex: none;
}
.pv-donut-svg {
  width: 100%;
  height: 100%;
  display: block;
}
.pv-donut-track {
  fill: none;
  stroke: var(--line);
  stroke-width: 12;
}
.pv-donut-seg {
  fill: none;
  stroke: var(--pv);
  stroke-width: 12;
}
.pv-donut-text {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  text-align: center;
  line-height: 1.1;
}
.pv-donut-big {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.pv-donut-small {
  font-size: 11px;
  color: var(--ink-3);
}
.pv-legend {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
  flex: 1;
  min-width: 160px;
}
.pv-legend li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}
.pv-key {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  flex: none;
  background: var(--pv);
}
.pv-legend-l {
  flex: 1;
  color: var(--ink-2);
}
.pv-legend-v {
  font-weight: 650;
}
.pv-legend-p {
  font-size: 11.5px;
  color: var(--ink-3);
  min-width: 36px;
  text-align: right;
}

/* Horizontal bars */
.pv-hbars {
  display: grid;
  gap: 10px;
}
.pv-hbar-row {
  display: grid;
  grid-template-columns: minmax(90px, 38%) minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  font-size: 13px;
}
.pv-hbar-l {
  color: var(--ink-2);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pv-hbar-svg {
  display: block;
  width: 100%;
  height: 10px;
  border-radius: 5px;
  overflow: hidden;
}
.pv-hbar-track {
  fill: var(--line);
}
.pv-hbar {
  fill: var(--pv);
}
.pv-hbar-limit {
  stroke: var(--ink);
  stroke-width: 2;
  stroke-dasharray: 2 2;
  vector-effect: non-scaling-stroke;
}
.pv-hbar-v {
  font-weight: 650;
  min-width: 34px;
  text-align: right;
}

/* Customer health map */
.hm-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.hm-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: var(--card);
  color: var(--ink-2);
  font-size: 12.5px;
  font-weight: 550;
  cursor: pointer;
}
.hm-chip[aria-pressed="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--card);
}
.hm-chip-n {
  opacity: 0.75;
}
.hm-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 10px;
}
.hm-tile {
  text-align: left;
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--pv);
  background: linear-gradient(90deg, var(--pv-soft), var(--card) 70%);
  color: var(--ink);
  cursor: pointer;
  min-width: 0;
  transition:
    box-shadow 0.15s ease,
    transform 0.15s ease;
}
.hm-tile:hover:not(:disabled) {
  box-shadow: 0 6px 18px -10px rgba(4, 29, 74, 0.35);
  transform: translateY(-1px);
}
.hm-tile:disabled {
  cursor: default;
}
.hm-head {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.hm-name {
  font-weight: 650;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.hm-sub {
  font-size: 12px;
  color: var(--ink-3);
}
.hm-flags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 2px;
}
.hm-flag {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 999px;
  color: var(--pv);
  background: var(--card);
  border: 1px solid var(--pv-soft);
}
.hm-ok {
  font-size: 11.5px;
  color: var(--green);
  font-weight: 600;
}
@media (prefers-reduced-motion: reduce) {
  .hm-tile,
  .hm-tile:hover:not(:disabled) {
    transition: none;
    transform: none;
  }
}

/* Status list and activity feed */
.pv-status li {
  gap: 12px;
}
.pv-status .dot {
  width: 10px;
  height: 10px;
  box-shadow: 0 0 0 4px var(--surface);
}
.pv-feed {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
}
.pv-feed li {
  display: flex;
  gap: 12px;
  padding: 8px 0;
  position: relative;
}
.pv-feed li + li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: -8px;
  height: 16px;
  border-left: 2px solid var(--line);
}
.pv-feed-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-top: 5px;
  flex: none;
  background: var(--blue);
  box-shadow: 0 0 0 3px var(--blue-50);
}
.pv-tips {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 8px;
  color: var(--ink-2);
}

@media screen and (max-width: 720px) {
  .pv-hero {
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
  }
  .pv-hero h1 {
    font-size: 22px;
  }
  .pv-hero-ring {
    align-self: flex-end;
    margin-top: -8px;
  }
  .kpi-grid {
    gap: 10px;
  }
  .kpi-grid > .kpi {
    flex-basis: calc(50% - 5px);
    width: calc(50% - 5px);
  }
  .kpi-value {
    font-size: 22px;
  }
  .pv-donut {
    width: 112px;
    height: 112px;
  }
}
@media screen and (max-width: 340px) {
  .kpi-grid > .kpi {
    flex-basis: 100%;
    width: 100%;
  }
}
@media print {
  .pv-hero {
    background: none;
    color: var(--ink);
    box-shadow: none;
    border: 1px solid #ccc;
  }
  .pv-hero h1,
  .pv-hero-sub,
  .pv-hero-eyebrow {
    color: #0b1f3f;
  }
  .pv-hero-actions {
    display: none;
  }
}
@media (forced-colors: active) {
  .pv-hero {
    border: 1px solid CanvasText;
  }
  .kpi,
  .hm-tile {
    border: 1px solid CanvasText;
  }
  .pv-donut-seg,
  .pv-hbar,
  .pv-meter-fill,
  .pv-spark-line {
    stroke: Highlight;
    fill: Highlight;
  }
  .pv-donut-seg,
  .pv-spark-line {
    fill: none;
  }
  .pv-key {
    background: Highlight;
    forced-color-adjust: none;
  }
  .hm-chip[aria-pressed="true"] {
    border: 2px solid Highlight;
  }
}

/* ======================================================================
   Sign-in, premium pass (owner, 7 November 2026). Brand panel with layered
   light, feature list and a decorative pay-run card; larger customer logo;
   spaced links. Applies to every screen that uses .signin.
   ====================================================================== */
.signin {
  min-height: calc(100vh * var(--zi, 1));
  grid-template-columns: minmax(380px, 5fr) 6fr;
}
.signin-brand {
  padding: 44px 56px 36px;
  gap: 32px;
  background:
    radial-gradient(
      55% 45% at 85% 12%,
      rgba(86, 140, 255, 0.42) 0%,
      rgba(86, 140, 255, 0) 70%
    ),
    radial-gradient(
      60% 50% at 0% 100%,
      rgba(31, 190, 160, 0.22) 0%,
      rgba(31, 190, 160, 0) 70%
    ),
    radial-gradient(80% 60% at 20% 0%, #173f86 0%, rgba(23, 63, 134, 0) 70%),
    linear-gradient(165deg, #0b1f46 0%, #0a1a3a 55%, #081530 100%);
}
.signin-brand::before {
  background-image: radial-gradient(
    rgba(255, 255, 255, 0.12) 1px,
    transparent 1.2px
  );
  background-size: 22px 22px;
  mask-image: radial-gradient(70% 60% at 70% 30%, #000 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(
    70% 60% at 70% 30%,
    #000 0%,
    transparent 75%
  );
}
.signin-brand::after {
  right: -180px;
  top: -180px;
  bottom: auto;
  width: 560px;
  height: 560px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    0 0 0 70px rgba(255, 255, 255, 0.025),
    0 0 0 140px rgba(255, 255, 255, 0.018);
}
.signin-brand .brand-row img {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  padding: 4px;
  box-shadow: 0 6px 18px -6px rgba(0, 0, 0, 0.5);
}
.signin-brand .brand-name {
  font-size: 20px;
}
.signin-brand .brand-sub {
  font-size: 12.5px;
  color: #b8c7ea;
}
.signin-pitch {
  max-width: 480px;
}
.signin-eyebrow {
  display: inline-block;
  margin: 0 0 18px !important;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12px !important;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #cfe0ff !important;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
}
.signin-pitch h1 {
  font-size: clamp(30px, calc(3.1vw * var(--zi, 1)), 42px);
  line-height: 1.08;
  font-weight: 720;
  letter-spacing: -0.03em;
  color: #fff;
}
.signin-pitch > p:not(.signin-eyebrow) {
  margin-top: 16px;
  font-size: 15.5px;
  line-height: 1.55;
  color: #c6d3f0;
  max-width: 44ch;
}
.signin-features {
  list-style: none;
  margin: 26px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.signin-features li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: #e4ebfb;
}
.sf-ico {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  flex: none;
  display: grid;
  place-items: center;
  color: #8fe3c8;
  background: rgba(143, 227, 200, 0.1);
  border: 1px solid rgba(143, 227, 200, 0.22);
}
.sf-ico svg {
  width: 15px;
  height: 15px;
}

.signin-showcase {
  margin-top: 30px;
  max-width: 400px;
  padding: 18px 20px 16px;
  border-radius: 16px;
  background: linear-gradient(
    160deg,
    rgba(255, 255, 255, 0.13),
    rgba(255, 255, 255, 0.04)
  );
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow:
    0 24px 48px -24px rgba(0, 0, 0, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.ss-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.ss-title {
  font-size: 13.5px;
  font-weight: 650;
  color: #fff;
}
.ss-badge {
  font-size: 11px;
  font-weight: 650;
  padding: 3px 9px;
  border-radius: 999px;
  color: #ffd98a;
  background: rgba(255, 196, 77, 0.14);
  border: 1px solid rgba(255, 196, 77, 0.3);
}
.ss-steps {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.ss-step {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  position: relative;
}
.ss-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  flex: none;
  display: grid;
  place-items: center;
  border: 2px solid rgba(255, 255, 255, 0.3);
}
.ss-dot svg {
  width: 11px;
  height: 11px;
}
.ss-step.done .ss-dot {
  background: #2fbf8f;
  border-color: #2fbf8f;
  color: #06281c;
}
.ss-step.now .ss-dot {
  border-color: #ffc44d;
  box-shadow: 0 0 0 4px rgba(255, 196, 77, 0.18);
}
.ss-text {
  display: grid;
  line-height: 1.25;
  min-width: 0;
}
.ss-label {
  font-size: 12.5px;
  font-weight: 650;
  color: #fff;
}
.ss-who {
  font-size: 11px;
  color: #a9badf;
}
.ss-bars {
  margin-top: 16px;
  display: grid;
  gap: 7px;
}
.ss-bar {
  display: block;
  height: 7px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}
.ss-bar::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  border-radius: 4px;
  background: linear-gradient(90deg, #3fa9f5, #8fe3c8);
}
.ss-bar.b1::after {
  width: 82%;
}
.ss-bar.b2::after {
  width: 64%;
  opacity: 0.75;
}
.ss-bar.b3::after {
  width: 46%;
  opacity: 0.55;
}

.signin-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #93a6d2;
}
.signin-foot-pill {
  padding: 2px 9px;
  border-radius: 999px;
  font-weight: 650;
  color: #ffd98a;
  background: rgba(255, 196, 77, 0.12);
  border: 1px solid rgba(255, 196, 77, 0.28);
}

/* Right side and card */
.signin-main {
  gap: 22px;
  background:
    radial-gradient(
      50% 40% at 80% 10%,
      rgba(63, 169, 245, 0.12) 0%,
      transparent 70%
    ),
    radial-gradient(
      45% 40% at 10% 95%,
      rgba(47, 191, 143, 0.08) 0%,
      transparent 70%
    ),
    var(--surface);
}
.signin-card {
  max-width: 452px;
  border-radius: 20px;
  padding: 40px 40px 32px;
  box-shadow:
    0 1px 2px rgba(16, 24, 40, 0.04),
    0 24px 48px -20px rgba(16, 33, 71, 0.22);
}
.signin-card h2 {
  font-size: 26px;
  font-weight: 720;
  letter-spacing: -0.03em;
}
.signin-card .lede {
  margin-top: 8px;
  font-size: 14.5px;
  line-height: 1.5;
}
.signin-card form {
  margin-top: 26px;
}
.signin-card .btn.primary.block {
  min-height: 46px;
  font-size: 15px;
  border-radius: 10px;
}

.customer-head {
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  min-height: 0;
  margin-bottom: 24px;
  padding-bottom: 22px;
}
.customer-logo-tile {
  display: grid;
  place-items: center;
  min-width: 96px;
  height: 96px;
  max-width: 260px;
  padding: 8px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 10px 24px -14px rgba(16, 33, 71, 0.35);
}
.customer-logo-tile.is-mark {
  padding: 0;
  width: 96px;
}
.customer-logo {
  max-height: 80px;
  max-width: 244px;
  border-radius: 10px;
}
.customer-mark {
  width: 96px;
  height: 96px;
  border-radius: 18px;
  font-size: 30px;
}
.customer-secure {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  color: var(--green);
}
.customer-secure svg {
  width: 14px;
  height: 14px;
}

.signin-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px 20px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.signin-links .other-company {
  margin-top: 0;
}
.signin-links .link-btn {
  font-size: 13.5px;
  text-decoration: none;
}
.signin-links .link-btn:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.signin-links .link-btn:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 4px;
}
.signin-main .powered-by {
  font-size: 12.5px;
}
.signin-main .powered-by img {
  width: 22px;
  height: 22px;
}

html[data-theme="dark"] .customer-logo-tile {
  background: #fff;
  border-color: var(--line);
}
html[data-theme="dark"] .signin-main {
  background:
    radial-gradient(
      50% 40% at 80% 10%,
      rgba(63, 169, 245, 0.1) 0%,
      transparent 70%
    ),
    var(--surface);
}

@media screen and (max-width: 1100px) {
  .signin-brand {
    padding: 36px 40px 28px;
  }
  .signin-showcase {
    display: none;
  }
}
@media screen and (max-width: 860px) {
  .signin {
    grid-template-columns: 1fr;
    min-height: calc(100vh * var(--zi, 1));
  }
  .signin-brand {
    padding: 22px 20px 26px;
    gap: 18px;
  }
  .signin-pitch h1 {
    font-size: 24px;
  }
  .signin-pitch > p:not(.signin-eyebrow) {
    font-size: 14px;
    margin-top: 10px;
  }
  .signin-eyebrow,
  .signin-features,
  .signin-foot {
    display: none;
  }
  .signin-card {
    padding: 28px 22px 24px;
  }
  .customer-logo-tile {
    min-width: 80px;
    height: 80px;
  }
  .customer-logo-tile.is-mark,
  .customer-mark {
    width: 80px;
    height: 80px;
  }
  .customer-logo {
    max-height: 64px;
  }
}
@media (forced-colors: active) {
  .signin-showcase,
  .signin-eyebrow,
  .sf-ico,
  .customer-logo-tile {
    border: 1px solid CanvasText;
  }
}
@media (prefers-reduced-transparency: reduce) {
  .signin-showcase {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: #13284f;
  }
}

/* Company identity in the sidebar (owner, 7 November 2026). Square logos
   sit in a tile inside the workspace card; wide logos get a framed plate. */
.ws-switch.has-logo {
  gap: 12px;
  padding: 10px 12px 10px 10px;
  border-radius: 14px;
  background: linear-gradient(
    160deg,
    rgba(255, 255, 255, 0.1),
    rgba(255, 255, 255, 0.03)
  );
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 8px 20px -12px rgba(0, 0, 0, 0.6);
  color: #fff;
}
.ws-switch.has-logo:not(.static):hover {
  background: linear-gradient(
    160deg,
    rgba(255, 255, 255, 0.15),
    rgba(255, 255, 255, 0.05)
  );
}
.ws-switch.has-logo .ws-org {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #fff;
}
.ws-switch.has-logo .ws-role {
  font-size: 12px;
  line-height: 1.3;
  color: #b8c7ea;
  margin-top: 2px;
  white-space: normal;
}
.ws-logo-tile {
  width: 48px;
  height: 48px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  padding: 5px;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.18),
    0 6px 14px -6px rgba(0, 0, 0, 0.7);
}
.ws-logo-tile img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.ws-logo-tile.fill {
  padding: 0;
  background: transparent;
}
.ws-logo-tile.fill img {
  object-fit: cover;
}

.sb-customer {
  margin-top: 14px;
  padding: 6px;
  border-radius: 14px;
  background: linear-gradient(
    160deg,
    rgba(255, 255, 255, 0.1),
    rgba(255, 255, 255, 0.03)
  );
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: none;
}
.sb-customer-logo {
  display: grid;
  place-items: center;
  width: 100%;
  height: 60px;
  padding: 8px 14px;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 6px 14px -8px rgba(0, 0, 0, 0.6);
}
.sb-customer-logo img {
  max-height: 44px;
  max-width: 100%;
  object-fit: contain;
}

/* The compact rail keeps its icon buttons. */
html[data-look="new"] .ws-logo-tile {
  display: none;
}
@media (forced-colors: active) {
  .ws-logo-tile,
  .sb-customer-logo {
    border: 1px solid CanvasText;
  }
}

/* Plain sign-in page: note for team members (owner, 7 November 2026). */
.signin-team-note {
  margin: 14px 0 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--ink-2);
}

/* Show/hide password and Caps Lock note (8 November 2026). */
.pw-box {
  position: relative;
}
.pw-box .input {
  padding-right: 46px;
}
/* Edge and old IE draw their own eye; keep only ours. */
.pw-box .input::-ms-reveal,
.pw-box .input::-ms-clear {
  display: none;
}
.pw-toggle {
  position: absolute;
  top: 50%;
  right: 4px;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--ink-3);
  cursor: pointer;
}
.pw-toggle:hover {
  color: var(--ink);
  background: var(--blue-100);
}
.pw-toggle:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 0;
}
.pw-toggle svg {
  width: 20px;
  height: 20px;
}
.field .caps-note {
  font-size: 12px;
  font-weight: 600;
  color: var(--amber);
}

/* Two-step screen and sign-in history (8 November 2026). */
.code-input {
  font-size: 22px;
  letter-spacing: 0.35em;
  font-variant-numeric: tabular-nums;
  text-align: center;
}
.signin-history {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
  font-size: 13px;
}
.signin-history li {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 12px;
}
.signin-history li.is-failed span:first-child {
  color: var(--red);
  font-weight: 600;
}
.twostep-swap {
  margin-top: -6px;
  font-size: 13px;
}

/* ======================================================================
   Precision Ledger screen compositions (8 November 2026). Shared system
   above; these classes lift sign-in, dashboards, employee home and pay-run
   detail. Scoped where needed so classic look stays available.
   ====================================================================== */

/* Sign-in — Studio Ledger first paint */
html[data-look] .signin {
  min-height: calc(100vh * var(--zi, 1) - var(--edition-h, 29px));
  grid-template-columns: minmax(340px, 4.5fr) 5.5fr;
}
html[data-look] .signin-brand {
  padding: 40px 48px;
  background:
    radial-gradient(
      90% 70% at 0% 0%,
      rgba(10, 79, 196, 0.48) 0%,
      transparent 52%
    ),
    radial-gradient(
      70% 55% at 100% 100%,
      rgba(63, 169, 245, 0.2) 0%,
      transparent 48%
    ),
    linear-gradient(160deg, #07111f 0%, #041d4a 45%, #073082 100%);
}
html[data-look] .signin-brand::after {
  right: -180px;
  bottom: -200px;
  width: 480px;
  height: 480px;
  border: 72px solid rgba(10, 79, 196, 0.22);
}
html[data-look] .signin-brand::before {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 36px 36px;
  opacity: 1;
}
html[data-look] .signin-eyebrow {
  display: inline-block;
  margin: 0 0 14px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #dbeafe;
  background: rgba(10, 79, 196, 0.28);
  border: 1px solid rgba(147, 197, 253, 0.35);
}
html[data-look] .signin-pitch h1 {
  font-size: 38px;
  font-weight: 760;
  letter-spacing: -0.04em;
  line-height: 1.08;
  max-width: 12ch;
}
html[data-look] .signin-pitch > p {
  max-width: 34ch;
  color: #a8b4c0;
  font-size: 16px;
  line-height: 1.55;
}
html[data-look] .signin-features {
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}
html[data-look] .signin-features li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 13.5px;
  color: #d5e0f2;
  line-height: 1.4;
}
html[data-look] .signin-features .sf-ico {
  width: 32px;
  height: 32px;
  flex: none;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.08);
  color: #9ec0ff;
}
html[data-look] .signin-features .sf-ico svg {
  width: 16px;
  height: 16px;
}
html[data-look] .signin-main {
  background:
    radial-gradient(60% 50% at 85% 5%, #d5e3fb 0%, transparent 60%),
    linear-gradient(165deg, #f5f7fb 0%, #e4ebf5 100%);
}
html[data-look] .signin-card {
  max-width: 400px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-pop);
  padding: 28px 28px 24px;
  background: rgba(255, 255, 255, 0.97);
}
html[data-look] .signin-features .sf-ico {
  background: rgba(10, 79, 196, 0.16);
  color: #93c5fd;
}
html[data-look] .signin.branded .signin-brand .signin-pitch h1 {
  max-width: 16ch;
  font-size: 30px;
}
html[data-look] .signin.branded .signin-features {
  display: none;
}
html[data-look] .signin.branded .signin-card {
  padding-top: 28px;
}
html[data-look] .customer-head {
  margin-bottom: 18px;
  padding-bottom: 16px;
}
html[data-look] .powered-by {
  color: var(--ink-3);
  font-size: 12px;
}
@media screen and (max-width: 860px) {
  html[data-look] .signin {
    grid-template-columns: 1fr;
  }
  html[data-look] .signin-brand {
    padding: 28px 24px 20px;
    min-height: 0;
  }
  html[data-look] .signin-pitch h1 {
    max-width: none;
    font-size: 28px;
  }
  html[data-look] .signin-features {
    display: none;
  }
  html[data-look] .signin-card {
    padding: 28px 22px 24px;
    border-radius: 16px;
  }
}

/* Payroll dashboard composition — denser first viewport */
html[data-look] .dash-home > .page-head {
  margin-bottom: 8px;
}
html[data-look] .dash-home > .hero {
  margin-bottom: 0;
}
html[data-look] .dash-home .hero .h-label {
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #9fb3d1;
  margin: 0 0 4px;
}
html[data-look] .dash-home .hero h2 {
  font-size: 22px;
  font-weight: 740;
  letter-spacing: -0.025em;
  margin: 0;
}
html[data-look] .dash-home .hero .h-meta {
  margin-top: 6px;
  color: #a9bbd6;
  max-width: 60ch;
  font-size: 13px;
}
html[data-look] .dash-home .hero .stepper {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
html[data-look] .dash-secondary {
  display: grid;
  gap: 12px;
  margin-top: 4px;
}
html[data-look] .dash-insight {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}
html[data-look] .dash-home .grid.cols-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
html[data-look] .dash-home .stat {
  padding: 12px 14px;
}
html[data-look] .dash-home .stat .s-value {
  font-size: 20px;
}
@media screen and (max-width: 1100px) {
  html[data-look] .dash-home .grid.cols-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media screen and (max-width: 980px) {
  html[data-look] .dash-insight {
    grid-template-columns: 1fr;
  }
}
html[data-look] .kpi {
  box-shadow: var(--shadow);
}
html[data-look] a.kpi:hover {
  box-shadow: var(--shadow-md);
}

/* Employee home: pay first */
html[data-look] .emp-home > .page-head {
  margin-bottom: 10px;
}
html[data-look] .emp-home > .hero {
  order: 0;
}
html[data-look] .home-setup {
  display: grid;
  gap: 12px;
}
html[data-look] .home-setup:empty {
  display: none;
}
html[data-look] .emp-home .hero h2.num {
  font-size: 40px;
  font-weight: 780;
  letter-spacing: -0.045em;
  line-height: 1.05;
}
html[data-look] .emp-empty-pay > .card {
  border-style: dashed;
  background: linear-gradient(180deg, #fbfcfe 0%, var(--card) 100%);
  box-shadow: none;
}

/* Pay-run detail summary */
html[data-look] .run-head {
  display: grid;
  gap: 10px;
  margin-bottom: 4px;
}
html[data-look] .run-head > .crumb {
  margin: 0;
}
html[data-look] .run-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 18px 28px;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  background: var(--card);
  box-shadow: var(--shadow);
}
html[data-look] .run-summary .rs-main {
  flex: 1 1 220px;
  min-width: 0;
}
html[data-look] .run-summary .rs-label {
  margin: 0 0 4px;
  font-size: 11.5px;
  font-weight: 650;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-3);
}
html[data-look] .run-summary .rs-title {
  margin: 0;
  font-size: 22px;
  font-weight: 740;
  letter-spacing: -0.03em;
}
html[data-look] .run-summary .rs-meta {
  margin-top: 6px;
  color: var(--ink-2);
  font-size: 13.5px;
}
html[data-look] .run-summary .rs-figures {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 22px;
  align-items: flex-end;
}
html[data-look] .run-summary .rs-fig {
  min-width: 88px;
}
html[data-look] .run-summary .rs-fig .s-label {
  display: block;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-3);
}
html[data-look] .run-summary .rs-fig .s-value {
  display: block;
  margin-top: 2px;
  font-size: 20px;
  font-weight: 740;
  letter-spacing: -0.03em;
}
html[data-look] .run-summary .rs-step {
  flex: 1 1 100%;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
html[data-look] .run-flow {
  display: grid;
  gap: 14px;
}
html[data-theme="dark"] .emp-empty-pay > .card {
  background: var(--card);
}
html[data-theme="dark"] .run-summary {
  background: var(--card);
}
html[data-theme="dark"] .signin-main {
  background: var(--surface);
}
@media screen and (max-width: 860px) {
  html[data-look] .page {
    padding: 20px 16px 88px;
  }
  html[data-look] .page-head h1 {
    font-size: 24px;
  }
  html[data-look] .dash-home .hero h2 {
    font-size: 22px;
  }
  html[data-look] .emp-home .hero h2.num {
    font-size: 32px;
  }
  html[data-look] .run-summary {
    padding: 16px;
  }
  html[data-look] .run-summary .rs-title {
    font-size: 18px;
  }
  html[data-look] .run-summary .rs-figures {
    gap: 12px 16px;
  }
  html[data-look="new"] .topbar .t-ws {
    display: none;
  }
}

/* Drawer polish for new look */
html[data-look] .drawer {
  border-radius: 18px 0 0 18px;
  box-shadow: var(--shadow-pop);
}
html[data-look] .scrim {
  background: rgba(6, 14, 24, 0.42);
  backdrop-filter: blur(3px);
}
html[data-look] .input,
html[data-look] select.input,
html[data-look] textarea.input {
  border-radius: 11px;
}
html[data-look] .pv-hero {
  background:
    radial-gradient(
      120% 140% at 100% 0%,
      rgba(63, 169, 245, 0.4) 0%,
      rgba(63, 169, 245, 0) 55%
    ),
    linear-gradient(
      135deg,
      var(--navy-top) 0%,
      var(--navy) 55%,
      var(--blue) 140%
    );
  box-shadow: var(--shadow-md);
  padding: 20px 22px;
}
html[data-theme="dark"] .t-link[aria-current="page"] {
  background: var(--blue-50);
  color: var(--blue-600);
}
html[data-theme="dark"] .t-account-btn,
html[data-theme="dark"] .t-switcher,
html[data-theme="dark"] .t-bell,
html[data-theme="dark"] .t-search {
  background: var(--card);
}

/* ======================================================================
   Studio Ledger premium board (8 November 2026): even rows that fill the
   page width, matched card heights, blue-led widget chrome.
   ====================================================================== */
html[data-look] .po-board,
html[data-look] .co-board {
  gap: 12px;
  width: 100%;
}
html[data-look] .po-board > .pv-hero,
html[data-look] .co-board > .pv-hero {
  width: 100%;
  margin: 0;
  padding: 18px 22px;
  gap: 18px;
  border-radius: 18px;
  box-shadow:
    0 18px 40px -28px rgba(4, 29, 74, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
html[data-look] .po-board .pv-hero h1,
html[data-look] .co-board .pv-hero h1 {
  font-size: 22px;
  letter-spacing: -0.03em;
}
html[data-look] .po-board .pv-hero-sub,
html[data-look] .co-board .pv-hero-sub {
  margin-top: 4px;
  font-size: 13.5px;
}
html[data-look] .po-board .pv-hero-actions,
html[data-look] .co-board .pv-hero-actions {
  margin-top: 14px;
}
html[data-look] .po-board .pv-hero-ring .ring-gauge,
html[data-look] .co-board .pv-hero-ring .ring-gauge {
  width: 78px;
  height: 78px;
}
html[data-look] .po-board .pv-hero .rg-fill,
html[data-look] .co-board .pv-hero .rg-fill {
  stroke: #9ec0ff;
}

/* Shared premium card chrome on the board */
html[data-look] .po-board .card,
html[data-look] .co-board .card {
  border: 1px solid rgba(198, 210, 228, 0.9);
  border-radius: 16px;
  background:
    linear-gradient(
      180deg,
      color-mix(in srgb, var(--white-ui, #fff) 92%, transparent) 0%,
      var(--white-ui, #fff) 48%
    ),
    var(--card);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.8) inset,
    0 10px 28px -18px rgba(15, 36, 72, 0.28);
  overflow: hidden;
}
html[data-look] .po-board .card-head,
html[data-look] .co-board .card-head {
  padding: 12px 14px 8px;
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
  background: linear-gradient(180deg, #fbfcfe 0%, rgba(251, 252, 254, 0) 100%);
}
html[data-look] .po-board .card-head h2,
html[data-look] .co-board .card-head h2 {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
html[data-look] .po-board .card-head .desc,
html[data-look] .co-board .card-head .desc {
  display: none;
}
html[data-look] .po-board .card-body:not(.flush),
html[data-look] .co-board .card-body:not(.flush) {
  padding: 12px 14px 14px;
}
html[data-look] .po-board .card-body.flush,
html[data-look] .co-board .card-body.flush {
  padding-top: 0;
}

/* KPI strip — equal columns across the full width */
html[data-look] .po-kpis,
html[data-look] .co-kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(168px, 1fr));
  gap: 12px;
  width: 100%;
}
html[data-look] .po-kpis > .kpi,
html[data-look] .co-kpis > .kpi {
  width: auto;
  max-width: none;
  flex: none;
  min-width: 0;
  padding: 14px 14px 12px;
  border-top: 0;
  position: relative;
}
html[data-look] .po-kpis > .kpi::before,
html[data-look] .co-kpis > .kpi::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(
    90deg,
    var(--pv),
    color-mix(in srgb, var(--pv) 35%, #fff)
  );
}
html[data-look] .po-kpis .kpi-top,
html[data-look] .co-kpis .kpi-top {
  gap: 8px;
}
html[data-look] .po-kpis .kpi-ico,
html[data-look] .co-kpis .kpi-ico {
  width: 28px;
  height: 28px;
  border-radius: 9px;
  background: color-mix(in srgb, var(--pv) 12%, var(--white-ui, #fff));
}
html[data-look] .po-kpis .kpi-label,
html[data-look] .co-kpis .kpi-label {
  font-size: 11.5px;
  font-weight: 650;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--ink-3);
}
html[data-look] .po-kpis .kpi-value,
html[data-look] .co-kpis .kpi-value {
  font-size: 26px;
  font-weight: 780;
  letter-spacing: -0.04em;
  margin-top: 8px;
}
html[data-look] .po-kpis .kpi-sub,
html[data-look] .co-kpis .kpi-sub {
  font-size: 12px;
  margin-top: 2px;
}
html[data-look] .po-kpis .pv-spark,
html[data-look] .co-kpis .pv-spark {
  height: 28px;
  margin-top: 10px;
}
html[data-look] .po-kpis .pv-meter,
html[data-look] .co-kpis .pv-meter {
  margin-top: 10px;
  height: 5px;
  border-radius: 999px;
}
html[data-look] .po-board .pv-good,
html[data-look] .co-board .pv-good {
  --pv: #0a4fc4;
  --pv-soft: #e8f1fc;
}
html[data-look] a.po-kpis .kpi:hover,
html[data-look] a.co-kpis .kpi:hover,
html[data-look] .po-kpis a.kpi:hover,
html[data-look] .co-kpis a.kpi:hover {
  transform: translateY(-2px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.85) inset,
    0 16px 32px -20px rgba(15, 36, 72, 0.4);
}

/* Analytics row — three matched panels */
html[data-look] .po-charts,
html[data-look] .co-charts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
  align-items: stretch;
}
html[data-look] .po-charts > .card,
html[data-look] .co-charts > .card {
  width: auto;
  max-width: none;
  min-width: 0;
  display: flex;
  flex-direction: column;
  height: 100%;
}
html[data-look] .po-charts > .card > .card-body,
html[data-look] .co-charts > .card > .card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
}
html[data-look] .po-charts .po-viz,
html[data-look] .co-charts .po-viz {
  gap: 10px;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
html[data-look] .po-board .po-charts .po-viz-extra {
  display: none;
}
html[data-look] .po-charts .pv-donut-wrap,
html[data-look] .co-charts .pv-donut-wrap {
  gap: 14px;
  align-items: center;
}
html[data-look] .po-charts .pv-donut,
html[data-look] .co-charts .pv-donut {
  width: 104px;
  height: 104px;
}
html[data-look] .po-charts .pv-donut-track,
html[data-look] .co-charts .pv-donut-track {
  stroke: #e8eef8;
  stroke-width: 11;
}
html[data-look] .po-charts .pv-donut-seg,
html[data-look] .co-charts .pv-donut-seg {
  stroke-width: 11;
  stroke-linecap: round;
}
html[data-look] .po-charts .pv-donut-big,
html[data-look] .co-charts .pv-donut-big {
  font-size: 20px;
  font-weight: 800;
}
html[data-look] .po-charts .bar-chart,
html[data-look] .co-charts .bar-chart {
  height: 120px;
  gap: 8px;
}
html[data-look] .po-charts .po-viz-chart .bar-chart {
  height: 88px;
}
html[data-look] .po-charts .po-viz-chart {
  margin-top: auto;
  padding-top: 4px;
  border-top: 1px solid rgba(226, 232, 240, 0.95);
}
html[data-look] .po-charts .bc-bar,
html[data-look] .co-charts .bc-bar {
  fill: #3b78f0;
}
html[data-look] .po-charts .bc-col:hover .bc-bar,
html[data-look] .co-charts .bc-col:hover .bc-bar {
  fill: #0a4fc4;
}

/* Detail row — four matched panels */
html[data-look] .po-lower,
html[data-look] .co-lower {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
  align-items: stretch;
}
html[data-look] .po-lower > .card,
html[data-look] .po-lower > section,
html[data-look] .co-lower > .card,
html[data-look] .co-lower > section {
  width: auto;
  max-width: none;
  min-width: 0;
  max-height: 300px;
  overflow: auto;
  display: flex;
  flex-direction: column;
}
html[data-look] .po-lower .bar-chart {
  height: 110px;
}
html[data-look] .po-map {
  margin: 0;
}
html[data-look] .po-map > summary {
  cursor: pointer;
  padding: 6px 2px;
  color: var(--ink-3);
}

/* Payroll / employee homes */
html[data-look] .dash-home .dash-insight {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
}
html[data-look] .dash-home .grid.cols-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
html[data-look] .emp-home .grid.cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media screen and (max-width: 1280px) {
  html[data-look] .po-kpis,
  html[data-look] .co-kpis {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  html[data-look] .po-lower,
  html[data-look] .co-lower {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media screen and (max-width: 980px) {
  html[data-look] .po-charts,
  html[data-look] .co-charts {
    grid-template-columns: 1fr;
  }
  html[data-look] .po-kpis,
  html[data-look] .co-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media screen and (max-width: 640px) {
  html[data-look] .po-kpis,
  html[data-look] .co-kpis,
  html[data-look] .po-lower,
  html[data-look] .co-lower,
  html[data-look] .dash-home .grid.cols-4,
  html[data-look] .emp-home .grid.cols-2 {
    grid-template-columns: 1fr;
  }
  html[data-look] .po-lower > .card,
  html[data-look] .po-lower > section,
  html[data-look] .co-lower > .card,
  html[data-look] .co-lower > section {
    max-height: none;
  }
}

/* ======================================================================
   UI fixes after the Studio Ledger pass (8 November 2026, preview).
   1. Dark: the overview board, its cards and the sign-in card follow the
      dark palette instead of staying white.
   2. Top menu: items that don't fit go under "More" (see app.js).
   3. Overview detail cards size to their content: no inner scroll bars.
   4. Phone header: no stray line under the avatar.
   ====================================================================== */

/* 1. Dark ------------------------------------------------------------- */
html[data-theme="dark"] .po-board .card,
html[data-theme="dark"] .co-board .card {
  background: var(--card);
  border-color: var(--line);
  box-shadow: var(--shadow);
}
html[data-theme="dark"] .po-board .card-head,
html[data-theme="dark"] .co-board .card-head {
  background: transparent;
  border-bottom-color: var(--line);
}
html[data-theme="dark"] .po-kpis .kpi-ico,
html[data-theme="dark"] .co-kpis .kpi-ico {
  background: color-mix(in srgb, var(--pv) 22%, var(--card));
}
html[data-theme="dark"] .po-kpis > .kpi::before,
html[data-theme="dark"] .co-kpis > .kpi::before {
  background: linear-gradient(90deg, var(--pv), transparent);
}
html[data-theme="dark"] .po-board .pv-good,
html[data-theme="dark"] .co-board .pv-good {
  --pv: var(--blue);
  --pv-soft: var(--blue-50);
}
html[data-theme="dark"] .po-charts .pv-donut-track,
html[data-theme="dark"] .co-charts .pv-donut-track {
  stroke: var(--line-2);
}
html[data-theme="dark"] .po-charts .po-viz-chart {
  border-top-color: var(--line);
}
html[data-theme="dark"] .po-charts .bc-bar,
html[data-theme="dark"] .co-charts .bc-bar {
  fill: var(--blue);
}
html[data-theme="dark"] .po-kpis .kpi:hover,
html[data-theme="dark"] .co-kpis .kpi:hover {
  box-shadow: var(--shadow-md);
}
html[data-theme="dark"] .signin-main {
  background: var(--surface);
}
html[data-theme="dark"] .signin-card {
  background: var(--card);
  border-color: var(--line);
}

/* 2. Top menu "More" -------------------------------------------------- */
html[data-look="new"] .t-nav.has-more {
  overflow: visible;
  min-width: 0;
  flex-wrap: nowrap;
}
html[data-look="new"] .t-nav [data-overflow="1"] {
  display: none !important;
}
.t-more {
  position: relative;
  flex: none;
}
.t-more > button {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 32px;
  padding: 0 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ink-2);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.t-more > button:hover,
.t-more > button[aria-expanded="true"],
.t-more.has-current > button {
  background: var(--blue-50);
  color: var(--blue);
}
.t-more > button:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}
.t-more-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 60;
  min-width: 200px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
  box-shadow: var(--shadow-pop);
}
.t-more-menu[hidden] {
  display: none;
}
.t-more-menu a {
  display: block;
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--ink);
  font-size: 13.5px;
  text-decoration: none;
}
.t-more-menu a:hover,
.t-more-menu a:focus-visible {
  background: var(--blue-50);
  outline: none;
}
.t-more-menu a[aria-current="page"] {
  color: var(--blue);
  font-weight: 650;
}

/* 3. Natural card heights on the overview ----------------------------- */
html[data-look] .po-lower,
html[data-look] .co-lower {
  align-items: start;
}
html[data-look] .po-lower > .card,
html[data-look] .po-lower > section,
html[data-look] .co-lower > .card,
html[data-look] .co-lower > section {
  max-height: none;
  overflow: visible;
}
/* Wide screens: the four detail panels become two columns, so lists and
   tables have room instead of being squeezed into a quarter width. */
@media print, (min-width: 641px) {
  html[data-look] .po-lower,
  html[data-look] .co-lower {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* 4. Phone header ----------------------------------------------------- */
html[data-look="new"] .topbar .t-tools {
  border-bottom: 0;
}
@media screen and (max-width: 640px) {
  html[data-look="new"] .topbar .t-tools {
    padding: 0;
  }
  /* Headline figures two to a row on phones instead of one long column. */
  html[data-look] .po-kpis,
  html[data-look] .co-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  html[data-look] .po-kpis .kpi-value,
  html[data-look] .co-kpis .kpi-value {
    font-size: 22px;
  }
}

/* Page background stays one continuous wash on long pages (it repeated
   after the first screen, leaving a visible seam). */
html[data-look] body {
  background-attachment: fixed;
}
/* Laptop widths: the five headline figures stay on one row instead of
   three plus two with a gap. */
@media screen and (min-width: 981px) and (max-width: 1280px) {
  html[data-look] .po-kpis,
  html[data-look] .co-kpis {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  }
}

/* Payroll dashboard (8 November 2026): a finalised pay day shows as a ringed
   dot in the pay calendar, and the home widgets fill the row evenly instead
   of fixed 360 px cards with a gap on the right. */
.pc-dot.is-paid {
  background: transparent;
  box-shadow: inset 0 0 0 2px var(--blue);
}
.pc-dot.f-fortnightly.is-paid {
  box-shadow: inset 0 0 0 2px #12a37a;
}
.pc-dot.f-four-weekly.is-paid {
  box-shadow: inset 0 0 0 2px #f59f0a;
}
.pc-dot.f-monthly.is-paid {
  box-shadow: inset 0 0 0 2px #7a5af8;
}
.dash-home .widgets {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
  align-items: start;
}
.dash-home .widgets > .card,
.dash-home .widgets > section {
  width: auto;
}

/* Classic look dashboards (owner, 10 November 2026): Classic now draws the
   same one-screen boards as the new look (.po-board, .co-board and the
   payroll board), so the separate Classic dashboard layout was removed. */

/* ======================================================================
   Depth (8 November 2026): cards float above the page. White
   surfaces without hard borders, a soft two-layer shadow (a close contact
   shadow plus a wide, diffuse one below), larger rounded corners and a
   small lift with a blue edge when a clickable card is pointed at or
   focused. Applies to the new look and Classic; Dark gets deeper shadows.
   Nested cards stay flat so only the outer surface floats.
   ====================================================================== */
:root {
  --depth-1:
    0 1px 2px rgba(16, 32, 64, 0.04), 0 18px 36px -22px rgba(16, 32, 64, 0.22);
  --depth-2:
    0 2px 4px rgba(16, 32, 64, 0.05), 0 28px 48px -24px rgba(16, 32, 64, 0.3);
  --depth-edge: rgba(255, 255, 255, 0.9);
}
/* Light looks: a wider, softer shadow like the reference. */
:root:not([data-theme="dark"]) {
  --depth-1:
    0 2px 6px rgba(16, 32, 64, 0.05), 0 26px 50px -18px rgba(16, 32, 64, 0.2);
  --depth-2:
    0 4px 10px rgba(16, 32, 64, 0.06), 0 36px 64px -20px rgba(16, 32, 64, 0.28);
}
html[data-theme="dark"] {
  --depth-1:
    0 1px 2px rgba(0, 0, 0, 0.4), 0 20px 40px -20px rgba(0, 0, 0, 0.75);
  --depth-2:
    0 2px 6px rgba(0, 0, 0, 0.45), 0 30px 56px -22px rgba(0, 0, 0, 0.85);
  --depth-edge: rgba(255, 255, 255, 0.04);
}

/* Canvas: a pale, slightly cool wash so white cards stand out. */
html[data-look]:not([data-theme="dark"]) body {
  background-color: #eef2f6;
}
html[data-look]:not([data-theme="dark"]) body {
  background:
    radial-gradient(70% 50% at 0% 0%, #e3f1ee 0%, transparent 60%),
    radial-gradient(60% 50% at 100% 0%, #e2e9f7 0%, transparent 60%), #eef2f6;
  background-attachment: fixed;
}

/* Floating surfaces. */
html[data-look] .page .card,
html[data-look] .page .stat,
html[data-look] .page .kpi,
html[data-look] .page .table-card,
html[data-look] .page details.disclosure.card-like {
  border: 1px solid transparent;
  border-radius: 18px;
  background-clip: padding-box;
  box-shadow:
    inset 0 1px 0 var(--depth-edge),
    var(--depth-1);
}
html[data-look] .page .card .card,
html[data-look] .page .card .stat,
html[data-look] .page .card .kpi {
  box-shadow: none;
  border-color: var(--line);
}

/* The board's own card chrome (new look) loses its hard outline too. */
html[data-look] .page .po-board .card,
html[data-look] .page .co-board .card {
  border-color: transparent;
}

/* More room between cards so each shadow has space to fall. */
html[data-look] .page .dash-secondary,
html[data-look] .page .dash-insight,
html[data-look] .page .dash-insight > .stack,
html[data-look] .page .po-board,
html[data-look] .page .co-board,
html[data-look] .page .po-kpis,
html[data-look] .page .co-kpis,
html[data-look] .page .po-charts,
html[data-look] .page .co-charts,
html[data-look] .page .po-lower,
html[data-look] .page .co-lower,
html[data-look] .page .dash-home .grid.cols-4,
html[data-look] .page .dash-home .widgets,
html[data-look] .page .company-overview > .kpi-grid,
html[data-look] .page .platform-overview > .kpi-grid,
html[data-look] .page .company-overview > .widgets,
html[data-look] .page .platform-overview > .widgets {
  gap: 18px;
}

/* Lift on hover and keyboard focus for cards that are links. */
html[data-look] .page a.card,
html[data-look] .page a.kpi {
  transition:
    transform 0.18s var(--ease, ease),
    box-shadow 0.18s var(--ease, ease),
    border-color 0.18s ease;
}
html[data-look] .page a.card:hover,
html[data-look] .page a.kpi:hover,
html[data-look] .page a.card:focus-visible,
html[data-look] .page a.kpi:focus-visible {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--blue) 45%, transparent);
  box-shadow:
    inset 0 1px 0 var(--depth-edge),
    var(--depth-2);
}

/* Banners float a little higher than cards. */
html[data-look] .page .hero,
html[data-look] .page .pv-hero {
  border-radius: 20px;
  box-shadow: 0 30px 50px -28px rgba(4, 29, 74, 0.55);
}

/* Drawers and dialogs: the deepest layer. */
html[data-look] .drawer,
html[data-look] .dialog {
  box-shadow:
    var(--depth-2),
    0 40px 80px -30px rgba(16, 32, 64, 0.35);
}

/* Buttons: a slight raise so they read as pressable. */
html[data-look] .page .btn:not(.ghost):not(.link) {
  box-shadow:
    0 1px 2px rgba(16, 32, 64, 0.08),
    0 6px 12px -8px rgba(16, 32, 64, 0.25);
}
html[data-look] .page .btn:not(.ghost):not(.link):active {
  transform: translateY(1px);
  box-shadow: 0 1px 1px rgba(16, 32, 64, 0.1);
}

@media (prefers-reduced-motion: reduce) {
  html[data-look] .page a.card:hover,
  html[data-look] .page a.kpi:hover,
  html[data-look] .page a.card:focus-visible,
  html[data-look] .page a.kpi:focus-visible {
    transform: none;
  }
}
@media print {
  html[data-look] .page .card,
  html[data-look] .page .stat,
  html[data-look] .page .kpi {
    box-shadow: none;
    border-color: #ccc;
  }
}

/* =====================================================================
   UI plan batches 1–4 and the pay calendar (owner, 8 November 2026).
   One block so it can be reviewed and reverted as a unit. New look,
   Classic and Dark all read the same variables.
   ===================================================================== */

/* Batch 1: one tidy toolbar row on every list. */
.t-host > .t-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
  margin-left: 0;
  flex: initial;
  padding: 10px 16px;
}
.t-host > .t-tools > .tt-left {
  flex: 1 1 auto;
  max-width: none;
  flex-wrap: wrap;
  gap: 8px 10px;
}
.t-host > .t-tools .tt-filter {
  width: 260px;
  max-width: 100%;
  height: 34px;
}
.t-host > .t-tools .tt-views {
  flex-wrap: nowrap;
  margin-left: 0;
}
.t-host > .t-tools .tt-views > svg {
  display: none;
}
.t-host > .t-tools .tt-view {
  min-width: 150px;
  height: 34px;
}
.t-host > .t-tools .tt-right {
  flex-wrap: nowrap;
}
@media screen and (max-width: 640px) {
  .t-host > .t-tools .tt-filter {
    width: 100%;
  }
  .t-host > .t-tools .tt-views {
    flex-wrap: wrap;
  }
}

/* Batch 1: the row's action keeps to the right edge. */
table.t td.t-action,
table.t th.t-action {
  text-align: right;
  width: 1%;
  white-space: nowrap;
  padding-left: 8px;
}
table.t tr.clickable:hover td {
  background: var(--blue-50);
}
html[data-theme="dark"] table.t tr.clickable:hover td {
  background: rgba(255, 255, 255, 0.04);
}

/* Batch 1: summary strip above short lists. */
.sum-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}
.sum-strip .ss-item {
  background: var(--card);
  border-radius: var(--radius-l);
  box-shadow: var(--shadow);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  color: inherit;
  text-decoration: none;
  min-width: 0;
}
.sum-strip a.ss-item:hover {
  box-shadow:
    var(--shadow),
    inset 0 0 0 1px var(--blue-100);
}
.sum-strip .ss-label {
  font-size: 12px;
  color: var(--ink-3);
  font-weight: 550;
}
.sum-strip .ss-value {
  font-size: 20px;
  font-weight: 650;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.sum-strip .ss-sub {
  font-size: 12px;
  color: var(--ink-2);
}
.sum-strip .ss-item.amber .ss-value {
  color: var(--amber);
}
.sum-strip .ss-item.red .ss-value {
  color: var(--red);
}
.sum-strip .ss-item.green .ss-value {
  color: var(--green);
}

/* Batch 1: initials beside each person. */
.avatar-dot {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--blue-50);
  color: var(--blue);
  font-size: 11px;
  font-weight: 650;
  flex: none;
}
html[data-theme="dark"] .avatar-dot {
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink);
}
.person-cell {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.attn-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  text-decoration: none;
}
.attn-tag:hover .badge {
  text-decoration: underline;
}

/* Batch 4: headings that take focus only from the app don't show a ring
   (they aren't controls); every control keeps its focus ring. */
h1[tabindex="-1"]:focus,
h2[tabindex="-1"]:focus {
  outline: none;
  box-shadow: none;
}

/* Batch 2: sticky "jump to" menu on long pages. */
.section-menu {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  padding: 6px;
  background: color-mix(in srgb, var(--card) 92%, transparent);
  backdrop-filter: blur(6px);
  border-radius: var(--radius-l);
  box-shadow: var(--shadow);
}
html[data-look="new"] .section-menu {
  top: 72px;
}
.section-menu a {
  padding: 6px 12px;
  border-radius: 999px;
  text-decoration: none;
  color: var(--ink-2);
  font-weight: 550;
  font-size: 13px;
}
.section-menu a:hover {
  background: var(--blue-50);
  color: var(--blue);
}
.section-menu a.is-current {
  background: var(--blue);
  color: #fff;
}
html[data-theme="dark"] .section-menu a.is-current {
  color: #08111d;
}
[data-jump] {
  scroll-margin-top: 140px;
}

/* Batch 2: left-out note in pay run results. */
.left-out-note {
  display: inline-flex;
  gap: 6px;
  align-items: baseline;
  font-size: 12px;
  color: var(--ink-2);
}
.left-out-note strong {
  font-weight: 600;
  color: var(--ink-3);
}

/* Batch 2: Ready to pay grid. */
.rtp-grid th.rtp-check,
.rtp-grid td.rtp-check {
  text-align: center;
  white-space: nowrap;
  font-size: 12px;
}
.rtp-grid th.rtp-check {
  min-width: 96px;
  line-height: 1.25;
  white-space: normal;
}
.rtp-cell {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.rtp-ok {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--green-50);
  color: var(--green);
  font-weight: 700;
}
.rtp-later {
  color: var(--ink-3);
  font-size: 12px;
}
.rtp-cards {
  display: none;
}
@media screen and (max-width: 760px) {
  .rtp-grid-host {
    display: none;
  }
  .rtp-cards {
    display: grid;
    gap: 12px;
  }
}
.rtp-filter {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  font-size: 13px;
}

/* Batch 2: tabs inside a page (Reports, Company settings). */
.page-tabs {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  padding: 4px;
  background: var(--card);
  border-radius: var(--radius-l);
  box-shadow: var(--shadow);
  width: fit-content;
  max-width: 100%;
}
.page-tabs button {
  border: 0;
  background: none;
  padding: 7px 14px;
  border-radius: 10px;
  font-weight: 550;
  color: var(--ink-2);
  cursor: pointer;
}
.page-tabs button[aria-selected="true"] {
  background: var(--blue);
  color: #fff;
}
html[data-theme="dark"] .page-tabs button[aria-selected="true"] {
  color: #08111d;
}
.page-tabs button:hover:not([aria-selected="true"]) {
  background: var(--blue-50);
  color: var(--blue);
}
.chart-head {
  padding: 14px 16px 6px;
}
.chart-head .bar-chart {
  max-width: 760px;
}

/* Batch 2: settings with a side menu and an unsaved-changes bar. */
.settings-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}
.settings-nav {
  position: sticky;
  top: 84px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: var(--card);
  border-radius: var(--radius-l);
  box-shadow: var(--shadow);
  padding: 6px;
}
html[data-look="classic"] .settings-nav {
  top: 16px;
}
.settings-nav button {
  text-align: left;
  border: 0;
  background: none;
  padding: 9px 12px;
  border-radius: 10px;
  font-weight: 550;
  color: var(--ink-2);
  cursor: pointer;
}
.settings-nav button[aria-current="true"] {
  background: var(--blue-50);
  color: var(--blue);
}
html[data-theme="dark"] .settings-nav button[aria-current="true"] {
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink);
}
.settings-nav button:hover:not([aria-current="true"]) {
  background: var(--surface);
}
.settings-section[hidden] {
  display: none;
}
/* Platform settings (9 November 2026): the open section's name and line. */
.pane-head h2 {
  margin: 0;
  font-size: 1.15rem;
}
.pane-head p {
  margin: 4px 0 0;
}
@media screen and (max-width: 860px) {
  .settings-layout {
    grid-template-columns: 1fr;
  }
  .settings-nav {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
  }
}
.unsaved-bar {
  position: sticky;
  bottom: 12px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 10px 14px;
  border-radius: var(--radius-l);
  background: var(--navy);
  color: #fff;
  box-shadow: var(--shadow-pop);
}
.unsaved-bar[hidden] {
  display: none;
}
.unsaved-bar .btn:not(.primary) {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
}
html[data-theme="dark"] .unsaved-bar {
  background: #1d2a40;
}

/* Batch 3: Key dates, calmer rows with a left marker and a month view. */
.kd-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 20px;
  align-items: start;
}
.kd-side {
  position: sticky;
  top: 84px;
  display: grid;
  gap: 12px;
}
html[data-look="classic"] .kd-side {
  top: 16px;
}
@media screen and (max-width: 1100px) {
  .kd-layout {
    grid-template-columns: 1fr;
  }
  .kd-side {
    display: none;
  }
}
ul.list li.kd-row {
  position: relative;
  background: none;
}
ul.list li.kd-row.is-overdue {
  background: none;
  box-shadow: inset 4px 0 0 var(--red);
}
ul.list li.kd-row.is-soon {
  box-shadow: inset 4px 0 0 var(--amber);
}
ul.list li.kd-row a.kd-title {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
}
ul.list li.kd-row a.kd-title:hover {
  color: var(--blue);
  text-decoration: underline;
}
ul.list li.kd-row.is-done a.kd-title,
ul.list li.kd-row.is-done .kd-plain {
  color: var(--ink-3);
  font-weight: 500;
}

/* Mini month (Key dates and the pay calendar). */
.mini-month {
  background: var(--card);
  border-radius: var(--radius-l);
  box-shadow: var(--shadow);
  padding: 12px 14px 14px;
}
.mm-title {
  font-weight: 650;
  margin-bottom: 8px;
}
.mm-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}
.mm-dow {
  font-size: 11px;
  color: var(--ink-3);
  text-align: center;
  padding-bottom: 4px;
}
.mm-cell {
  border: 0;
  background: none;
  font: inherit;
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  border-radius: 8px;
  font-size: 12px;
  color: var(--ink-2);
  padding: 0;
}
button.mm-cell {
  cursor: pointer;
}
button.mm-cell:hover {
  background: var(--blue-50);
}
.mm-cell.has .mm-num {
  font-weight: 650;
  color: var(--ink);
}
.mm-cell.today {
  box-shadow: inset 0 0 0 1.5px var(--blue);
}
.mm-cell.alert {
  background: var(--red-50);
}
html[data-theme="dark"] .mm-cell.alert {
  background: rgba(240, 80, 80, 0.16);
}
.mm-dots {
  display: flex;
  gap: 2px;
  height: 5px;
}
.mm-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--blue);
}
.mm-dot.green {
  background: var(--green);
}
.mm-dot.amber {
  background: var(--amber);
}
.mm-dot.red {
  background: var(--red);
}
.mm-dot.grey {
  background: var(--ink-3);
}
.mm-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  font-size: 12px;
  color: var(--ink-2);
  margin-top: 10px;
}
.mm-legend span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

/* Batch 3: leave balance bars. */
.bal-bars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px 24px;
  padding: 16px;
}
.bal-bar .bb-head {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}
.bal-bar .bb-label {
  font-weight: 600;
}
.bal-bar .bb-main {
  font-weight: 650;
}
.bal-bar .bb-track {
  display: flex;
  height: 10px;
  border-radius: 999px;
  overflow: hidden;
  background: var(--line);
}
.bal-bar .bb-seg.avail {
  background: var(--blue);
}
.bal-bar .bb-seg.booked {
  background: var(--amber);
}
.bal-bar .bb-seg.growing {
  background: var(--blue-100);
}
.bal-bar .bb-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  margin-top: 6px;
}
.bb-key::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  margin-right: 5px;
  vertical-align: 0;
}
.bb-key.avail::before {
  background: var(--blue);
}
.bb-key.booked::before {
  background: var(--amber);
}
.bb-key.growing::before {
  background: var(--blue-100);
}

/* Batch 3: side-by-side panels under an empty state. */
.mini-panels {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}
.mini-panels .card {
  margin: 0;
}

/* Batch 3: Team and access coverage. */
.coverage {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 14px 16px;
}
.coverage .cov-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--surface);
  font-size: 13px;
}
.coverage .cov-item.ok {
  background: var(--green-50);
  color: var(--green);
}
.coverage .cov-item.missing {
  background: var(--amber-50);
  color: var(--amber);
}
html[data-theme="dark"] .coverage .cov-item {
  background: rgba(255, 255, 255, 0.06);
}

/* Pay calendar. */
.pc-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  font-size: 12px;
  color: var(--ink-2);
}
.pc-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.pc-swatch {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  display: inline-block;
}
.pc-swatch.period {
  background: var(--blue-100);
}
.pc-swatch.pay {
  background: var(--blue);
}
.pc-swatch.filing {
  background: var(--amber);
}
.pc-swatch.deductions {
  background: var(--green);
}
.pc-swatch.holiday {
  background: var(--red);
}
.pc-month {
  padding: 0 16px 16px;
}
.pc-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.pc-dow {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-3);
  padding: 8px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.pc-day {
  min-height: 104px;
  padding: 6px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.pc-day.out {
  background: var(--surface);
}
.pc-day.out .pc-num {
  color: var(--ink-3);
  opacity: 0.6;
}
.pc-day.weekend {
  background: color-mix(in srgb, var(--surface) 60%, transparent);
}
.pc-day.today .pc-num {
  background: var(--blue);
  color: #fff;
  border-radius: 999px;
  padding: 0 7px;
}
html[data-theme="dark"] .pc-day.today .pc-num {
  color: #08111d;
}
.pc-num {
  font-size: 12px;
  font-weight: 600;
  align-self: flex-start;
}
.pc-ev {
  font-size: 11px;
  line-height: 1.3;
  padding: 2px 6px;
  border-radius: 6px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-decoration: none;
  color: var(--ink);
  border-left: 3px solid transparent;
  background: var(--surface);
}
a.pc-ev:hover {
  text-decoration: underline;
}
.pc-ev.period {
  background: var(--blue-50);
  border-left-color: var(--blue-100);
  color: var(--ink-2);
}
.pc-ev.pay {
  background: var(--blue);
  color: #fff;
  font-weight: 600;
}
html[data-theme="dark"] .pc-ev.pay {
  color: #08111d;
}
.pc-ev.filing {
  border-left-color: var(--amber);
  background: var(--amber-50);
}
.pc-ev.deductions {
  border-left-color: var(--green);
  background: var(--green-50);
}
.pc-ev.holiday {
  border-left-color: var(--red);
  background: var(--red-50);
}
html[data-theme="dark"] .pc-ev.filing,
html[data-theme="dark"] .pc-ev.deductions,
html[data-theme="dark"] .pc-ev.holiday,
html[data-theme="dark"] .pc-ev.period {
  background: rgba(255, 255, 255, 0.06);
  color: var(--ink);
}
.pc-ev.is-done {
  opacity: 0.6;
}
.pc-ev.is-overdue {
  box-shadow: inset 0 0 0 1px var(--red);
}
.pc-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding: 12px 16px;
}
.pc-toolbar .pc-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}
.pc-toolbar .pc-month-title {
  font-size: 18px;
  font-weight: 650;
  min-width: 170px;
  text-align: center;
}
.pc-warn {
  color: var(--amber);
  font-weight: 600;
}
@media screen and (max-width: 760px) {
  .pc-month-grid-host {
    display: none;
  }
}
@media print, (min-width: 761px) {
  .pc-agenda-phone {
    display: none;
  }
}
@media print {
  .pc-day {
    min-height: 80px;
  }
  .section-menu,
  .settings-nav,
  .unsaved-bar,
  .kd-side {
    display: none !important;
  }
}
/* Collapsible card (Ready to pay's "Moving from another payroll"). */
details.fold-card > summary {
  list-style: none;
  cursor: pointer;
  position: relative;
  padding-right: 44px;
}
details.fold-card > summary::-webkit-details-marker {
  display: none;
}
details.fold-card > summary::after {
  content: "";
  position: absolute;
  right: 18px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--ink-3);
  border-bottom: 2px solid var(--ink-3);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.15s ease;
}
details.fold-card[open] > summary::after {
  transform: translateY(-30%) rotate(-135deg);
}
details.fold-card:not([open]) > summary {
  border-bottom: 0;
}
@media (prefers-reduced-motion: reduce) {
  details.fold-card > summary::after {
    transition: none;
  }
}

/* Key dates (batch 3): one calm style. Overdue is a red marker on the left
   edge and a label, not a pink row; every title reads the same. */
.kd-item.is-overdue {
  background: none;
  box-shadow: inset 4px 0 0 var(--red);
}
.kd-item.is-today {
  box-shadow: inset 4px 0 0 var(--amber);
}
.kd-item a.kd-title {
  color: var(--ink);
  text-decoration: none;
}
.kd-item a.kd-title:hover {
  color: var(--blue);
  text-decoration: underline;
}
.kd-item.is-done a.kd-title {
  color: var(--ink-3);
  font-weight: 500;
}
.kd-state {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

ul.compact-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}
ul.compact-list li {
  padding: 0;
  border: 0;
}

.row.wrap {
  flex-wrap: wrap;
  gap: 10px;
}

/* Phones: summary figures two to a row; month title between the arrows. */
@media screen and (max-width: 640px) {
  .sum-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .sum-strip .ss-item {
    padding: 10px 12px;
  }
  .sum-strip .ss-value {
    font-size: 17px;
  }
  .pc-toolbar .pc-nav {
    width: 100%;
    justify-content: space-between;
  }
  .pc-toolbar .pc-month-title {
    min-width: 0;
    font-size: 16px;
  }
}
@media screen and (max-width: 760px) {
  .rtp-filter {
    display: none;
  }
}
.pc-toolbar .pc-nav {
  flex-wrap: wrap;
}
@media screen and (max-width: 640px) {
  .t-host > .t-tools > .tt-left > svg {
    display: none;
  }
  .t-host > .t-tools .tt-count {
    white-space: nowrap;
  }
  .t-host > .t-tools .tt-views {
    width: 100%;
  }
  .t-host > .t-tools .tt-view {
    flex: 1 1 auto;
  }
  table.t .person-cell .avatar-dot {
    display: none;
  }
}

/* Advanced data grid (owner, 9 November 2026): pay run results and reports. */
.dg {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px 14px 14px;
}
.dg-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.dg-search-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 0 1 280px;
  color: var(--ink-3);
}
.dg-search {
  width: 100%;
}
.dg-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.dg-chip {
  border: 1px solid var(--line-2);
  background: var(--card);
  color: var(--ink-2);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.82rem;
  font-weight: 550;
  cursor: pointer;
  display: inline-flex;
  gap: 6px;
  align-items: center;
}
.dg-chip[aria-pressed="true"] {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}
.dg-chip-n {
  background: rgba(127, 140, 160, 0.18);
  border-radius: 999px;
  padding: 0 6px;
  font-size: 0.75rem;
}
.dg-chip[aria-pressed="true"] .dg-chip-n {
  background: rgba(255, 255, 255, 0.25);
}
.dg-actions {
  margin-left: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
.dg-actions .btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.dg-actions .btn svg {
  width: 15px;
  height: 15px;
}
.dg-menu-wrap {
  position: relative;
}
.dg-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  z-index: 30;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-pop);
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 200px;
}
.dg-menu[hidden] {
  display: none;
}
.dg-swatch {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: var(--slate);
  display: inline-block;
}
.dg-frame {
  overflow: auto;
  max-height: calc(72vh * var(--zi, 1));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
}
.dg-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-variant-numeric: tabular-nums;
  font-size: 0.9rem;
}
.dg-table th,
.dg-table td {
  padding: 9px 12px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
  text-align: left;
  vertical-align: top;
  background: var(--card);
}
.dg-frame.compact .dg-table th,
.dg-frame.compact .dg-table td {
  padding: 5px 10px;
  font-size: 0.84rem;
}
.dg-table .r {
  text-align: right;
}
.dg-table thead th {
  position: sticky;
  z-index: 3;
  background: var(--surface);
  color: var(--ink-2);
  font-weight: 600;
  font-size: 0.8rem;
}
.dg-table thead tr:first-child th {
  top: 0;
}
.dg-table thead tr.dg-band + tr th {
  top: 30px;
}
.dg-band th {
  height: 30px;
  padding: 4px 12px;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-bottom: 3px solid var(--line-2);
}
.dg-sort {
  border: 0;
  background: none;
  padding: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
  display: inline-flex;
  gap: 4px;
  align-items: center;
}
.dg-arrow {
  font-size: 0.65rem;
  opacity: 0.55;
}
th[aria-sort="ascending"] .dg-arrow,
th[aria-sort="descending"] .dg-arrow {
  opacity: 1;
  color: var(--blue);
}
.dg-table .dg-sticky {
  position: sticky;
  left: 34px;
  z-index: 2;
  box-shadow: 1px 0 0 var(--line);
}
.dg-table thead .dg-sticky {
  z-index: 4;
}
.dg-table .dg-x {
  position: sticky;
  left: 0;
  z-index: 2;
  width: 34px;
  min-width: 34px;
  padding: 6px 4px;
  text-align: center;
}
.dg-table thead .dg-x {
  z-index: 4;
}
.dg-table:not(:has(.dg-x)) .dg-sticky {
  left: 0;
}
.dg-toggle {
  border: 0;
  background: none;
  cursor: pointer;
  color: var(--ink-3);
  border-radius: 6px;
  width: 26px;
  height: 26px;
  display: inline-grid;
  place-items: center;
}
.dg-toggle svg {
  transition: transform 0.15s;
  width: 16px;
  height: 16px;
}
.dg-toggle[aria-expanded="true"] svg {
  transform: rotate(90deg);
  color: var(--blue);
}
.dg-row {
  cursor: default;
}
.dg-row:hover td {
  background: var(--blue-50);
}
.dg-row.open td {
  background: var(--blue-50);
  border-bottom-color: transparent;
}
.dg-flag-red td:first-child {
  box-shadow: inset 3px 0 0 var(--red);
}
.dg-flag-amber td:first-child {
  box-shadow: inset 3px 0 0 var(--amber);
}
.dg-flags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 4px;
}
.dg-flag {
  font-size: 0.72rem;
  font-weight: 600;
  border-radius: 999px;
  padding: 1px 7px;
  background: var(--surface);
  color: var(--ink-2);
}
.dg-flag.red {
  background: var(--red-50);
  color: var(--red);
}
.dg-flag.amber {
  background: var(--amber-50);
  color: var(--amber);
}
.dg-flag.green {
  background: var(--green-50);
  color: var(--green);
}
.dg-flag.blue {
  background: var(--blue-50);
  color: var(--blue);
}
.dg-num.dg-zero,
.dg-na {
  color: var(--ink-3);
}
.dg-strong {
  font-weight: 700;
}
.dg-cmp {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1px;
}
.dg-delta {
  font-size: 0.72rem;
  color: var(--ink-3);
}
.dg-big {
  background: var(--amber-50);
  border-radius: 6px;
  padding: 1px 5px;
  margin: -1px -5px;
}
.dg-big .dg-delta {
  color: var(--amber);
  font-weight: 600;
}
.dg-sub {
  display: block;
  font-size: 0.76rem;
  color: var(--ink-3);
  font-weight: 400;
}
.dg-total td {
  position: sticky;
  bottom: 0;
  z-index: 2;
  background: var(--surface);
  font-weight: 700;
  border-top: 2px solid var(--line-2);
  border-bottom: 0;
}
.dg-total .dg-sticky,
.dg-total .dg-x {
  z-index: 3;
}
.dg-detail-row > td {
  background: var(--surface);
  padding: 0;
  white-space: normal;
  position: static;
}
.dg-detail {
  padding: 14px 16px 16px 46px;
  position: sticky;
  left: 0;
  box-sizing: border-box;
}
.dg-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}
.dg-block {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px 12px;
}
.dg-block h4 {
  margin: 0 0 6px;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-3);
}
.dg-dl {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 12px;
  margin: 0;
  font-variant-numeric: tabular-nums;
  font-size: 0.88rem;
}
.dg-dl dt {
  color: var(--ink-2);
}
.dg-dl dt small {
  display: block;
  color: var(--ink-3);
  font-size: 0.75rem;
}
.dg-dl dd {
  margin: 0;
  text-align: right;
}
.dg-dl .dg-dl-total {
  border-top: 1px solid var(--line);
  padding-top: 4px;
  font-weight: 700;
  color: var(--ink);
}
.dg-note {
  margin: 0;
}
.dg-links {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.dg-mini {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
  font-size: 0.86rem;
}
.dg-mini th,
.dg-mini td {
  padding: 5px 8px;
  border-bottom: 1px solid var(--line);
  text-align: right;
  white-space: nowrap;
}
.dg-mini th:first-child,
.dg-mini td:first-child {
  text-align: left;
}
.dg-mini thead th {
  color: var(--ink-3);
  font-weight: 600;
  font-size: 0.78rem;
}
.dg-g.person,
.dg-gl.person,
.dg-swatch.person {
  --tone: var(--slate);
}
.dg-g.earn,
.dg-gl.earn,
.dg-swatch.earn {
  --tone: var(--green);
}
.dg-g.ded,
.dg-gl.ded,
.dg-swatch.ded {
  --tone: var(--amber);
}
.dg-g.pay,
.dg-gl.pay,
.dg-swatch.pay {
  --tone: var(--blue);
}
.dg-g.emp,
.dg-gl.emp,
.dg-swatch.emp {
  --tone: #6d4bd1;
}
.dg-g.check,
.dg-gl.check,
.dg-swatch.check {
  --tone: var(--ink-3);
}
/* The "check" group tone shares its name with the checkbox label class,
   which made those headings stack as a flex box (9 November 2026). */
.dg-table th.dg-g.check,
.dg-table th.dg-gl.check {
  display: table-cell;
}
.dg-band th.dg-g {
  color: var(--tone);
  border-bottom-color: var(--tone);
}
.dg-swatch {
  background: var(--tone, var(--slate));
}
html[data-theme="dark"] .dg-table thead th,
html[data-theme="dark"] .dg-total td,
html[data-theme="dark"] .dg-detail-row > td {
  background: #172238;
}
html[data-theme="dark"] .dg-row:hover td,
html[data-theme="dark"] .dg-row.open td {
  background: #1d2a40;
}
@media print {
  .dg-tools,
  .dg-x {
    display: none !important;
  }
  .dg-frame {
    max-height: none;
    overflow: visible;
    border: 0;
  }
  .dg-table th,
  .dg-table td {
    position: static !important;
  }
}
/* Premium tables, 9 Nov 2026: detail-panel tables span the panel and drop the main table's sticky styles. */
.dg-block-wide {
  grid-column: 1 / -1;
}
.dg-table .dg-mini th,
.dg-table .dg-mini td {
  position: static;
  background: none;
  padding: 5px 8px;
  border-bottom: 1px solid var(--line);
  text-align: right;
  white-space: nowrap;
  font-size: 0.86rem;
}
.dg-table .dg-mini th:first-child,
.dg-table .dg-mini td:first-child {
  text-align: left;
}
.dg-table .dg-mini thead th {
  color: var(--ink-3);
  font-weight: 600;
  font-size: 0.78rem;
}
/* Report filters and summary figures, 9 Nov 2026 (owner: filter by dates, employees and kind of payday; no space-wasting charts). */
.rf-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 10px 14px;
  padding: 12px 14px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  box-shadow: var(--shadow);
}
.rf-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink-3);
}
.rf-field select,
.rf-field input {
  min-width: 0;
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--ink);
}
.rf-field select {
  min-width: 190px;
}
.rf-dates {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 8px;
}
.rf-dates[hidden] {
  display: none;
}
.rf-label {
  font-size: 0.86rem;
  color: var(--ink-3);
  align-self: center;
}
.rf-end {
  margin-left: auto;
  display: flex;
  gap: 6px;
}
.rf-people-wrap {
  position: relative;
}
.rf-people {
  min-width: 170px;
  justify-content: space-between;
  height: 38px;
}
.rf-people::after {
  content: "▾";
  margin-left: 8px;
  color: var(--ink-3);
}
.rf-pop {
  position: absolute;
  left: 0;
  top: calc(100% + 6px);
  z-index: 40;
  width: 280px;
  max-width: calc(86vw * var(--zi, 1));
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-pop);
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-weight: 400;
  color: var(--ink);
}
.rf-pop[hidden] {
  display: none;
}
.rf-list {
  max-height: 260px;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.rf-check {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 6px;
  border-radius: 6px;
  font-size: 0.9rem;
  cursor: pointer;
}
.rf-check:hover {
  background: var(--blue-50);
}
.rf-summary {
  margin: -4px 2px 0;
}
.rf-summary .link-btn {
  font-size: inherit;
}
.rf-strip {
  padding: 14px 14px 0;
}
.rf-strip .sum-strip {
  margin: 0;
}
.rf-next {
  color: var(--amber);
  font-weight: 600;
}
.ss-spark {
  display: block;
  width: 100%;
  max-width: 160px;
  height: 30px;
  margin-top: 6px;
  overflow: visible;
}
.ss-spark-line {
  fill: none;
  stroke: var(--blue);
  stroke-width: 2;
  stroke-linejoin: round;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}
.ss-spark-area {
  fill: var(--blue-50);
  stroke: none;
}
.ss-spark-dot {
  fill: var(--card);
  stroke: var(--blue);
  stroke-width: 1.5;
  vector-effect: non-scaling-stroke;
  cursor: default;
}
.ss-spark-dot.last {
  fill: var(--blue);
}
@media screen and (max-width: 640px) {
  .rf-field,
  .rf-people-wrap,
  .rf-field select,
  .rf-people {
    width: 100%;
  }
  .rf-end {
    margin-left: 0;
    width: 100%;
  }
  .rf-end .btn {
    flex: 1;
    justify-content: center;
  }
}
.rf-strip .ss-item {
  background: var(--surface);
  box-shadow: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 14px;
}
.rf-people {
  font-weight: 400;
}
.rf-asof .field,
.rf-asof > * {
  max-width: 240px;
}
.rf-asof {
  padding-bottom: 0;
}

/* Sectioned panels (9 November 2026): wide drawers with a side menu and an
   at-a-glance strip, so each part fits on screen without scrolling. Used by
   the customer panel, the team member panel and Password and security. */
.drawer.sectioned-drawer {
  width: min(1100px, calc(96vw * var(--zi, 1)));
}
.sectioned-drawer .d-body {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding-bottom: 0;
}
.sectioned-drawer .d-body > .stack,
.sectioned-drawer .d-body > div:only-child {
  display: flex;
  flex-direction: column;
  min-height: 0;
  flex: 1;
}
.sp-panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 2px 2px 0;
  min-height: 0;
  flex: 1;
}
.sp-glance {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px;
}
.sp-glance[hidden] {
  display: none;
}
.sp-glance-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 14px;
  background: var(--card);
  border-radius: var(--radius-l);
  box-shadow: var(--shadow);
  min-width: 0;
}
.sp-glance-label {
  font-size: 12px;
  color: var(--ink-3);
}
.sp-glance-value {
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sp-layout {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 20px;
  min-height: 0;
  flex: 1;
}
.sp-nav {
  position: static;
  align-self: start;
}
.sp-nav button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.sp-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--amber);
  flex: none;
}
.sp-dot[hidden] {
  display: none;
}
.sp-panes {
  overflow-y: auto;
  min-height: 0;
  padding: 2px 4px 20px;
}
.sp-panes .pane-head h3 {
  margin: 0;
  font-size: 1.05rem;
}
.sp-panes .pane-head p {
  margin: 4px 0 0;
}
@media screen and (max-width: 860px) {
  .sp-glance {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .sp-layout {
    grid-template-columns: 1fr;
  }
  .sectioned-drawer .d-body {
    overflow-y: auto;
  }
  .sp-nav {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .sp-panes {
    overflow: visible;
  }
}

/* Payslip, pay advice layout (owner, 9 November 2026): the same structure
   as the PDF payslip. Light header with a Pay advice panel, one "Summary of
   earnings" statement, leave, then year to date beside this period. */
.payslip.advice {
  --pa-main: var(--brand, var(--blue-600, #2563eb));
  --pa-tint: color-mix(in srgb, var(--pa-main) 7%, #fff);
  background: #fff;
  color: #0b1f3f;
  max-width: 900px;
  border-radius: 14px;
  overflow: hidden;
}
.pa-band {
  height: 6px;
  background: linear-gradient(
    90deg,
    var(--navy, #0b1f3f) 0 62%,
    var(--pa-main) 62% 100%
  );
}
.pa-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 330px);
  gap: 24px;
  padding: 22px 28px 8px;
}
.pa-left .ps-logo img {
  max-height: 56px;
  max-width: 200px;
  margin-bottom: 10px;
}
.pa-org {
  font-size: 18px;
  font-weight: 700;
}
.pa-org-addr {
  font-size: 12px;
  color: #4f5c76;
  margin-top: 2px;
}
.pa-emp {
  font-size: 15px;
  font-weight: 700;
  margin-top: 18px;
}
.pa-emp-addr {
  font-size: 13px;
  white-space: pre-line;
  margin-top: 2px;
}
.pa-panel {
  background: var(--pa-tint);
  padding: 14px 16px;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}
.pa-title {
  text-align: right;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--pa-main);
  margin-bottom: 8px;
}
.pa-facts {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 12px;
  margin: 0;
  font-size: 12.5px;
}
.pa-facts dt {
  color: #4f5c76;
}
.pa-facts dd {
  margin: 0;
  text-align: right;
}
.pa-designation {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid #8a95a8;
  width: 62%;
  font-weight: 700;
  font-size: 13px;
}
.pa-bar {
  margin: 14px 28px 0;
  padding: 7px 10px;
  border: 1px solid #dfe3ea;
  border-radius: 3px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.pa-table {
  width: calc(100% - 56px);
  margin: 10px 28px 0;
  border-collapse: collapse;
  font-size: 13px;
}
.pa-table th {
  background: #f1f3f7;
  padding: 7px 8px;
  font-weight: 700;
  font-size: 12px;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}
.pa-table td {
  padding: 5px 8px;
  vertical-align: top;
}
.pa-table .r {
  text-align: right;
  white-space: nowrap;
}
.pa-table td.lt {
  padding-left: 22px;
  width: 52%;
}
.pa-table tr.pa-group td {
  padding: 12px 8px 4px;
  border-bottom: 1px solid #dfe3ea;
  color: var(--pa-main);
  font-weight: 700;
  font-size: 13.5px;
}
.pa-group-note {
  float: right;
  color: #4f5c76;
  font-weight: 400;
  font-size: 11.5px;
}
.pa-table tr.pa-total td {
  font-weight: 700;
  border-top: 1px solid #dfe3ea;
  padding-top: 7px;
  padding-bottom: 7px;
}
.pa-table tr.pa-total td:first-child:empty {
  border-top-color: transparent;
}
.pa-hours-mobile {
  display: none;
}
.pa-table tr.pa-net td {
  background: var(--pa-tint);
  font-size: 15px;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}
.pa-table tr.pa-net td:last-child {
  color: var(--pa-main);
}
.pa-table tr.pa-paid td {
  font-size: 17px;
}
.pa-table tr.pa-note td {
  padding-left: 22px;
}
.pa-leave {
  padding: 4px 28px 0;
}
.pa-leave .ps-section {
  padding: 8px 0 0;
  border: 0;
}
.pa-bottom {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  padding: 14px 28px 20px;
}
.pa-sub-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 4px;
}
.pa-sub-head h3 {
  margin: 0;
  font-size: 13.5px;
  color: var(--pa-main);
}
.pa-sub-head span {
  font-size: 11.5px;
  color: #4f5c76;
}
.pa-pairs {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
}
.pa-pairs td {
  padding: 4px 0;
  border-bottom: 1px solid #e6e9ef;
}
.pa-pairs td.r {
  text-align: right;
}
.pa-pairs tr.strong td {
  font-weight: 700;
}
@media screen and (max-width: 860px) {
  /* Units and Rate fold into each line on a phone (as before). The columns
     are collapsed, not removed, so the total rows still line up. */
  .payslip.advice .ps-earn .ps-q {
    display: table-cell;
    width: 0;
    padding: 0;
    font-size: 0;
    overflow: hidden;
  }
  .payslip.advice .pa-table td.r {
    white-space: normal;
  }
  .pa-hours-label {
    display: none;
  }
  .pa-hours-mobile {
    display: inline;
    font-weight: 400;
    color: #4f5c76;
  }
  .pa-hours-mobile::before {
    content: "Total hours";
  }
  .pa-hours-mobile {
    white-space: nowrap;
  }
}
@media screen and (max-width: 700px) {
  .pa-top,
  .pa-bottom {
    grid-template-columns: 1fr;
    padding-left: 16px;
    padding-right: 16px;
  }
  .pa-bar {
    margin-left: 16px;
    margin-right: 16px;
  }
  .pa-table {
    width: calc(100% - 32px);
    margin-left: 16px;
    margin-right: 16px;
  }
  .pa-table td.lt {
    padding-left: 8px;
    width: auto;
  }
  .pa-leave {
    padding-left: 16px;
    padding-right: 16px;
  }
}
/* Printing: compact, one A4 page (the payslip is scaled to fit if needed). */
.payslip.advice.pa-printing {
  width: 718px;
  max-width: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  font-size: 12px;
}
.pa-printing .pa-top {
  padding: 12px 0 4px;
}
.pa-printing .pa-bar,
.pa-printing .pa-table {
  margin-left: 0;
  margin-right: 0;
  width: 100%;
}
.pa-printing .pa-table {
  font-size: 11.5px;
}
.pa-printing .pa-table td {
  padding-top: 3px;
  padding-bottom: 3px;
}
.pa-printing .pa-table tr.pa-group td {
  padding-top: 8px;
}
.pa-printing .pa-leave,
.pa-printing .pa-bottom {
  padding-left: 0;
  padding-right: 0;
}
.pa-printing .ps-foot {
  padding: 8px 0;
  background: none;
}
@media print {
  @page {
    size: A4;
    margin: 10mm;
  }
  html:has(.payslip.advice),
  body:has(.payslip.advice) {
    background: #fff !important;
  }
  body:has(.payslip.advice) .page-head,
  body:has(.payslip.advice) .bottom-nav {
    display: none !important;
  }
  .payslip.advice {
    break-inside: avoid;
    page-break-inside: avoid;
  }
  .payslip.advice .pa-band {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  /* A printed page is narrower than the phone breakpoint: keep the full
     desktop layout (Units and Rate columns, two columns, leave table). */
  .payslip.advice .pa-top {
    grid-template-columns: minmax(0, 1fr) minmax(0, 330px);
  }
  .payslip.advice .pa-bottom {
    grid-template-columns: 1fr 1fr;
  }
  .payslip.advice .ps-earn .ps-q {
    display: table-cell;
    width: auto;
    padding: 3px 8px;
    font-size: inherit;
  }
  .payslip.advice .pa-table td.r {
    white-space: nowrap;
  }
  .payslip.advice .ps-earn .ps-qr,
  .payslip.advice .pa-hours-mobile {
    display: none;
  }
  .payslip.advice .pa-hours-label {
    display: inline;
  }
  .payslip.advice .pa-table td.lt {
    padding-left: 22px;
  }
  .payslip.advice .ps-lines.stack-sm thead {
    display: table-header-group;
  }
  .payslip.advice .ps-lines.stack-sm tr {
    display: table-row;
  }
  .payslip.advice .ps-lines.stack-sm td {
    display: table-cell;
    padding: 4px 8px;
    border-bottom: 1px solid #e6e9ef;
  }
  .payslip.advice .ps-lines.stack-sm td.r {
    text-align: right;
  }
  .payslip.advice .ps-lines.stack-sm td[data-label]::before {
    content: none;
  }
}

.dg-print-label {
  display: none;
}
/* Printing (owner, 9 November 2026): every page with a Print option prints
   its full details. Printed pages always use the full desktop layout (the
   phone and tablet rules above are for screens only), wide tables are scaled
   to fit the page, landscape when needed (see fitForPrint in ui.js), and long
   tables carry on to the next page instead of jumping to it. */
@media print {
  @page {
    size: A4;
    margin: 10mm;
  }
  @page wide {
    size: A4 landscape;
    margin: 10mm;
  }
  html.print-landscape .page {
    page: wide;
  }
  html,
  body,
  .shell,
  .main {
    background: #fff !important;
  }
  html .shell {
    display: block !important;
  }
  html .main > .page {
    max-width: none !important;
  }
  .card:has(table),
  .dg,
  .dg-frame {
    break-inside: auto !important;
  }
  .dg-table thead,
  .t thead {
    display: table-header-group;
  }
  .dg-table tr,
  .t tr,
  .stat {
    break-inside: avoid;
  }
  .dg-arrow,
  .dg-toggle,
  .dg-sort {
    display: none !important;
  }
  .dg-print-label {
    display: inline !important;
    font-weight: 600;
  }
  .dg-table td,
  .dg-table th {
    padding-top: 4px !important;
    padding-bottom: 4px !important;
  }
  /* The grand total once, at the end, not under every printed page. */
  .dg-table tfoot {
    display: table-row-group;
  }
  .dg-table,
  .dg-table th,
  .dg-table td {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  .grid.cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }
  .grid.cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
  .grid.cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  .grid {
    gap: 10px !important;
  }
  .stat {
    padding: 10px 14px !important;
    box-shadow: none !important;
  }
  .card {
    box-shadow: none !important;
  }
  /* Printing one part of a page (a card's or a table's own Print). */
  body.print-scope .main :not(.print-path, .print-target, .print-target *) {
    display: none !important;
  }
}

/* ---------- Screen size control (owner, 9 November 2026) ---------- */
.zoom-presets .seg-opt:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.zoom-step {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  flex-wrap: wrap;
}
.zoom-step-btn {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid var(--line-2);
  background: var(--card);
  color: var(--ink);
  font: inherit;
  font-size: 18px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
}
.zoom-step-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.zoom-now {
  min-width: 56px;
  text-align: center;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}
.zoom-note {
  margin: 8px 0 0;
}
html[data-theme="dark"] .zoom-step-btn {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.16);
  color: inherit;
}
html[data-theme="dark"] .zoom-now {
  color: inherit;
}

/* ---------- Billing (owner, 9 November 2026) ----------
   Key facts, one compact "How to pay" strip, then the invoice table across
   the full width. */
.billing-glance {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}
.billing-glance .sp-glance-sub {
  font-size: 12px;
  color: var(--ink-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.billing-glance .sp-glance-item.bad .sp-glance-value,
.billing-glance .sp-glance-item.bad .sp-glance-sub {
  color: var(--red);
}
.bill-pay {
  display: flex;
  align-items: center;
  gap: 12px 28px;
  flex-wrap: wrap;
  padding: 12px 18px;
  background: var(--card);
  border-radius: var(--radius-l);
  box-shadow: var(--shadow);
}
.bill-pay.late {
  background: var(--amber-50);
  box-shadow:
    inset 4px 0 0 var(--amber),
    var(--shadow);
}
.bill-pay-head {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1 1 260px;
  min-width: 220px;
  max-width: 420px;
}
.bill-pay-head .small {
  color: var(--ink-2);
  line-height: 1.4;
}
.bill-pay-items {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  flex: 3 1 520px;
}
.bill-pay-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.bill-pay-label {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink-3);
}
.bill-pay-value {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}
.bill-copy {
  border: 1px solid var(--line-2);
  background: var(--card);
  color: var(--blue);
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  padding: 1px 8px;
  border-radius: 999px;
  cursor: pointer;
}
.bill-copy:hover {
  background: var(--blue-50);
}
.bill-late {
  color: var(--red) !important;
  font-weight: 600;
}
html[data-theme="dark"] .bill-pay.late {
  background: rgba(168, 90, 6, 0.16);
}
html[data-theme="dark"] .bill-pay-value {
  color: inherit;
}
html[data-theme="dark"] .bill-copy {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.18);
  color: inherit;
}
@media print {
  .bill-copy {
    display: none;
  }
}

/* Employees list quick filters (owner, 9 November 2026): the advanced
   table's chips, above the list's own toolbar. */
.emp-chips {
  padding: 12px 16px 0;
}
.audit-what .dg-sub {
  max-width: 560px;
  white-space: normal;
}
/* A row's name as a link, inside the advanced table. */
.dg-link {
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
}
.dg-link:hover,
.dg-link:focus-visible {
  color: var(--blue);
  text-decoration: underline;
}
html[data-theme="dark"] .dg-link {
  color: inherit;
}
.run-status-cell {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}
.run-next {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--blue);
  text-decoration: none;
  white-space: nowrap;
}
.run-next:hover,
.run-next:focus-visible {
  text-decoration: underline;
}

/* Record keeping guidance links (owner, 9 November 2026). */
.rk-links {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  font-size: 12.5px;
}

/* ---------- Phone-friendly lists (owner, 9 November 2026) ----------
   Employee screens: on a phone each row becomes a card, the first cell as
   its title and every other figure on its own line with its heading. */
@media screen and (max-width: 640px) {
  .phone-cards .tt-density,
  .phone-cards .tt-count {
    display: none;
  }
  .phone-cards table,
  .phone-cards tbody {
    display: block;
    width: 100%;
    min-width: 0 !important;
  }
  .phone-cards thead {
    display: none;
  }
  .phone-cards tr {
    display: block;
    padding: 12px 16px;
    border-bottom: 1px solid var(--line);
  }
  .phone-cards tr:last-child {
    border-bottom: 0;
  }
  .phone-cards td {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    padding: 3px 0 !important;
    border: 0 !important;
    text-align: right;
    white-space: normal;
  }
  .phone-cards td:first-child {
    display: block;
    text-align: left;
    font-weight: 600;
    padding-bottom: 6px !important;
  }
  .phone-cards td:not(:first-child)[data-label]::before {
    content: attr(data-label);
    flex: none;
    font-size: 12.5px;
    font-weight: 500;
    color: var(--ink-3);
    text-align: left;
  }
  .phone-cards table td.t-action {
    width: auto;
    justify-content: flex-end;
    padding-top: 8px !important;
    background: none;
    color: inherit;
    border-radius: 0;
    font-weight: inherit;
  }
  .phone-cards table td.t-action:empty,
  .phone-cards table td.t-action::before {
    display: none;
  }
  html[data-theme="dark"] .phone-cards tr {
    border-color: rgba(255, 255, 255, 0.08);
  }
}

/* Plans and billing (owner, 9 November 2026): plan with its Change button,
   the plan picker, and a plan's customers. */
.plan-cell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.plan-choices {
  display: grid;
  gap: 8px;
}
.plan-choice {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  background: var(--card);
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.plan-choice:hover {
  border-color: var(--blue);
}
.plan-choice[aria-checked="true"] {
  border-color: var(--blue);
  box-shadow: 0 0 0 2px var(--blue-100);
  background: var(--blue-50);
}
.plan-choice .pc-name {
  font-weight: 650;
}
.plan-choice .pc-sub {
  font-size: 12.5px;
  color: var(--ink-3);
}
.plan-customers {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 560px;
  display: grid;
  gap: 0;
}
.plan-customers li {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 6px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.plan-customers li:last-child {
  border-bottom: 0;
}
html[data-theme="dark"] .plan-choice {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.14);
  color: inherit;
}
html[data-theme="dark"] .plan-choice[aria-checked="true"] {
  background: rgba(120, 160, 255, 0.12);
}

/* Inside the advanced table a stacked cell keeps badges at their own width
   (owner, 9 November 2026). */
.dg-table td .stack {
  align-items: flex-start;
  justify-items: start;
}
.dg-table td .stack > .badge {
  width: fit-content;
}

/* Portal overview (owner, 9 November 2026): who needs attention, and the
   newest customers as a short list. */
.po-attention li {
  align-items: flex-start;
}
.po-attention .grow {
  display: grid;
  gap: 4px;
}
.po-flags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.po-dot {
  width: 10px;
  height: 10px;
  margin-top: 6px;
  border-radius: 50%;
  flex: none;
  background: var(--amber);
}
.po-dot.bad {
  background: var(--red);
}
.po-recent li {
  cursor: pointer;
  padding: 10px 16px;
}
.po-recent li:hover,
.po-recent li:focus-visible {
  background: var(--blue-50);
}
.po-action {
  gap: 12px;
}
html[data-look] .po-lower.po-lower-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
@media screen and (max-width: 1280px) {
  html[data-look] .po-lower.po-lower-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media screen and (max-width: 640px) {
  html[data-look] .po-lower.po-lower-3 {
    grid-template-columns: 1fr;
  }
}
html[data-theme="dark"] .po-recent li:hover,
html[data-theme="dark"] .po-recent li:focus-visible {
  background: rgba(255, 255, 255, 0.05);
}

/* ---------- Portal overview on one screen (owner, 9 November 2026) ----------
   Wide screens: slim header, short tiles, and two rows of panels sized to
   the window; a panel with more than fits scrolls inside itself. Narrower
   screens keep the normal flowing layout. */
html[data-look] .po-dense > .page-head {
  margin-bottom: 0;
}
html[data-look] .po-dense .po-kpis {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}
html[data-look] .po-dense .po-kpis > .kpi {
  width: auto;
  padding: 10px 14px;
  gap: 2px;
}
html[data-look] .po-dense .kpi-ico {
  width: 26px;
  height: 26px;
  border-radius: 7px;
}
html[data-look] .po-dense .kpi-ico svg {
  width: 14px;
  height: 14px;
}
html[data-look] .po-dense .kpi-label {
  font-size: 11.5px;
}
html[data-look] .po-dense .kpi-value {
  font-size: 22px;
  margin-top: 2px;
}
html[data-look] .po-dense .kpi .pv-spark,
html[data-look] .po-dense .kpi .pv-meter {
  margin-top: 4px;
}
html[data-look] .po-dense .kpi .pv-spark {
  height: 18px;
}
.po-screen {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.po-cell {
  min-width: 0;
}
.po-cell:empty {
  display: none;
}
.po-cell > .card,
.po-cell > section {
  margin: 0;
  height: 100%;
}
@media screen and (min-width: 1101px) {
  html[data-look] .po-dense .po-screen {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-template-rows: repeat(2, minmax(0, 1fr));
    /* The window's height less the menu bar, header and tiles above. */
    height: calc(100vh * var(--zi, 1) - 268px);
    min-height: 400px;
  }
  html[data-look] .po-dense .po-c-attention {
    grid-column: span 2;
  }
  html[data-look] .po-dense .po-cell {
    min-height: 0;
    display: flex;
  }
  html[data-look] .po-dense .po-cell > .card,
  html[data-look] .po-dense .po-cell > section {
    flex: 1;
    min-height: 0;
    max-height: none;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }
  html[data-look] .po-dense .po-cell .card-head {
    padding-top: 10px;
    padding-bottom: 8px;
  }
  html[data-look] .po-dense .po-cell .card-head .desc {
    display: none;
  }
  html[data-look] .po-dense .po-cell .card-body {
    flex: 1;
    min-height: 0;
    overflow: auto;
  }
  html[data-look] .po-dense .po-cell .list li {
    padding-top: 8px;
    padding-bottom: 8px;
  }
  html[data-look] .po-dense .po-cell .bar-chart {
    height: 90px;
  }
}
@media screen and (max-width: 640px) {
  .po-screen {
    grid-template-columns: minmax(0, 1fr);
  }
  html[data-look] .po-dense .po-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media screen and (min-width: 641px) and (max-width: 1100px) {
  html[data-look] .po-dense .po-kpis {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
html[data-look] .po-dense .kpi .pv-spark {
  display: none;
}
html[data-look] .po-dense .po-kpis {
  align-items: start;
}
@media screen and (min-width: 1101px) {
  html[data-look] .po-dense .po-cell .pv-donut-wrap {
    flex-wrap: nowrap;
    gap: 14px;
  }
  html[data-look] .po-dense .po-cell .pv-donut {
    width: 92px;
    height: 92px;
  }
  html[data-look] .po-dense .po-cell .pv-donut-wrap > :last-child {
    flex: 1;
    min-width: 0;
  }
}

/* Overview board, balanced (owner, 9 November 2026): two lists across the
   top, four same-size charts below, each showing one chart. */
@media screen and (min-width: 1101px) {
  html[data-look] .po-dense .po-screen {
    grid-template-rows: minmax(0, 1fr) minmax(0, 1.15fr);
  }
  html[data-look] .po-dense .po-c-status {
    grid-column: span 2;
  }
  html[data-look] .po-dense .po-c-status .pv-status {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 16px;
  }
  html[data-look] .po-dense .po-c-status .pv-status li {
    border-bottom: 1px solid var(--line);
  }
  html[data-look] .po-dense .po-c-health .po-viz-extra,
  html[data-look] .po-dense .po-c-invoices .po-viz-chart,
  html[data-look] .po-dense .po-c-growth .split-bar {
    display: none;
  }
  html[data-look] .po-dense .po-c-health .card-body,
  html[data-look] .po-dense .po-c-invoices .card-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  html[data-look] .po-dense .po-c-health .pv-donut,
  html[data-look] .po-dense .po-c-invoices .pv-donut {
    width: 104px;
    height: 104px;
  }
  html[data-look] .po-dense .po-c-growth .card-body,
  html[data-look] .po-dense .po-c-growth .po-viz {
    display: flex;
    flex-direction: column;
  }
  html[data-look] .po-dense .po-c-growth .po-viz {
    flex: 1;
    min-height: 0;
  }
  html[data-look] .po-dense .po-c-growth .bar-chart {
    flex: 1;
    height: auto;
    min-height: 90px;
  }
}
@media screen and (min-width: 1101px) {
  html[data-look] .po-dense .po-cell .card-head {
    min-height: 46px;
    box-sizing: border-box;
    align-items: center;
    padding-top: 6px;
    padding-bottom: 6px;
  }
  html[data-look] .po-dense .po-cell .card-head .btn {
    min-height: 0;
    padding: 4px 10px;
  }
  html[data-look] .po-dense .po-c-fresh .card-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  html[data-look] .po-dense .po-c-status .pv-status li {
    padding-top: 6px;
    padding-bottom: 6px;
  }
}

/* Needs attention as one-line rows, Platform status as tiles
   (owner, 9 November 2026). */
.po-attention .po-att-row {
  display: grid;
  grid-template-columns: 10px minmax(110px, 1.1fr) minmax(0, 2fr) 84px auto;
  align-items: center;
  gap: 12px;
  padding: 8px 16px;
}
.po-attention .po-att-row .po-dot {
  margin-top: 0;
}
.po-att-name {
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.po-attention .po-att-row .po-flags {
  flex-wrap: nowrap;
  overflow: hidden;
  mask-image: linear-gradient(90deg, #000 85%, transparent);
}
.po-attention .po-att-row .po-flags .badge {
  flex: none;
}
.po-att-days {
  text-align: right;
  font-variant-numeric: tabular-nums;
  color: var(--ink-2);
  font-size: 13px;
}
.po-att-head {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink-3);
  padding-top: 6px !important;
  padding-bottom: 6px !important;
  background: var(--surface);
}
.po-att-head .po-att-days {
  color: var(--ink-3);
  font-size: 11.5px;
}
.po-tiles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 12px;
}
.po-tile {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  padding: 10px 12px;
  border-radius: var(--radius);
  background: var(--surface);
  border-left: 3px solid var(--line-2);
  color: var(--ink);
  text-decoration: none;
}
a.po-tile:hover,
a.po-tile:focus-visible {
  background: var(--blue-50);
}
.po-tile.green {
  border-left-color: var(--green);
}
.po-tile.amber {
  border-left-color: var(--amber);
}
.po-tile.red {
  border-left-color: var(--red);
}
.po-tile.info {
  border-left-color: var(--blue);
}
.po-tile-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink-3);
}
.po-tile-value {
  font-size: 16px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.po-tile.red .po-tile-value {
  color: var(--red);
}
.po-tile.amber .po-tile-value {
  color: var(--amber);
}
.po-tile-sub {
  font-size: 12px;
  color: var(--ink-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
html[data-look] .po-dense .po-c-status .card-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
html[data-theme="dark"] .po-tile,
html[data-theme="dark"] .po-att-head {
  background: rgba(255, 255, 255, 0.04);
  color: inherit;
}
html[data-theme="dark"] a.po-tile:hover {
  background: rgba(255, 255, 255, 0.08);
}
@media screen and (max-width: 640px) {
  .po-tiles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .po-attention .po-att-row {
    grid-template-columns: 10px minmax(0, 1fr) auto;
  }
  .po-att-head {
    display: none !important;
  }
  .po-attention .po-att-row .po-flags {
    grid-column: 2 / 3;
    grid-row: 2;
    flex-wrap: wrap;
    overflow: visible;
    mask-image: none;
    min-width: 0;
  }
  .po-attention .po-att-row .po-flags .badge {
    flex: 0 1 auto;
    white-space: normal;
  }
  .po-attention .po-att-row .po-dot {
    grid-column: 1;
    grid-row: 1;
  }
  .po-attention .po-att-row .po-att-name {
    grid-column: 2;
    grid-row: 1;
  }
  .po-attention .po-att-row .btn {
    grid-column: 3;
    grid-row: 1 / span 2;
  }
  .po-attention .po-att-row .po-att-days {
    display: none;
  }
}

/* Portal Settings: where each part stands, on its menu item
   (owner, 9 November 2026). */
.settings-nav button.set-nav-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.set-nav-state {
  flex: none;
  font-size: 11.5px;
  font-weight: 600;
  padding: 1px 8px;
  border-radius: 999px;
  color: var(--ink-3);
  background: var(--line);
}
.set-nav-state.ok {
  color: var(--green);
  background: var(--green-50);
}
.set-nav-state.amber {
  color: var(--amber);
  background: var(--amber-50);
}
html[data-theme="dark"] .set-nav-state {
  background: rgba(255, 255, 255, 0.08);
}

/* Portal Settings, layout A (owner, 9 November 2026): form on the left;
   status, test and a note on the right; logs underneath. */
.set-cols {
  display: grid;
  grid-template-columns: minmax(0, 1.9fr) minmax(280px, 1fr);
  gap: 12px;
  align-items: start;
}
.set-side > .card,
.set-main > .card {
  margin: 0;
}
.set-group {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 4px 0 -4px;
}
.set-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  margin: 0;
  color: var(--ink-3);
}
.set-status.ok {
  color: var(--green);
}
.set-status.amber {
  color: var(--amber);
}
.set-status.ok .dot {
  background: var(--green);
}
.set-status.amber .dot {
  background: var(--amber);
}
.set-status.off .dot,
.set-status:not(.ok):not(.amber) .dot {
  background: var(--ink-3);
}
.set-status-value {
  font-size: 17px;
  font-weight: 700;
  margin: 0;
}
@media screen and (max-width: 1100px) {
  .set-cols {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---------- Add customer (owner, 9 November 2026) ----------
   Wide panel: steps on the left, the step in the middle, and what's been
   entered so far on the right. */
.drawer.wizard-drawer {
  width: min(1120px, calc(96vw * var(--zi, 1)));
}
.wz-layout {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr) 250px;
  gap: 24px;
  align-items: start;
}
.wz-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 4px;
  position: sticky;
  top: 0;
}
.wz-steps li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 8px 10px;
  border-radius: var(--radius);
  color: var(--ink-3);
}
.wz-steps li.current {
  background: var(--blue-50);
  color: var(--ink);
}
.wz-steps li.done {
  color: var(--ink-2);
  cursor: pointer;
}
.wz-steps li.done:hover,
.wz-steps li.done:focus-visible {
  background: var(--surface);
}
.wz-num {
  flex: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
  border: 1px solid var(--line-2);
  background: var(--card);
}
.wz-steps li.current .wz-num {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}
.wz-steps li.done .wz-num {
  background: var(--green-50);
  border-color: var(--green);
  color: var(--green);
}
.wz-step-text {
  display: grid;
  gap: 1px;
}
.wz-step-name {
  font-weight: 650;
  font-size: 13.5px;
}
.wz-step-sub {
  font-size: 12px;
  color: var(--ink-3);
}
.wz-title {
  font-size: 18px;
  margin: 0 0 12px;
}
/* Add employee: who you're adding (owner, 10 November 2026). */
.choice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}
.choice-card {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 16px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  background: var(--card, #fff);
  cursor: pointer;
}
.choice-card:hover {
  border-color: var(--blue);
}
.choice-card:has(input:checked) {
  border-color: var(--blue);
  box-shadow: 0 0 0 2px var(--blue-100, #cfe0f7);
  background: var(--blue-50);
}
.choice-card input {
  margin-top: 3px;
}
/* Extra payments: "What do you need to do?" cards stack title, text and
   button; only the button is clickable (owner, 11 November 2026). */
.choice-card.choice-action {
  flex-direction: column;
  gap: 8px;
  cursor: default;
}
.choice-card.choice-action:hover {
  border-color: var(--line-2);
}
.choice-card.choice-action > .btn,
.choice-card.choice-action > button {
  margin-top: auto;
  align-self: flex-start;
  max-width: 100%;
  white-space: normal;
  text-align: left;
}
.wz-left td,
.wz-left th {
  padding: 6px 8px;
}
.wz-group + .wz-group {
  margin-top: 6px;
}
.wz-group .set-group {
  margin-bottom: 10px;
}
.wz-summary {
  position: sticky;
  top: 0;
  display: grid;
  gap: 8px;
  padding: 14px 16px;
  border-radius: var(--radius-l);
  background: var(--surface);
}
.wz-sum-line {
  display: grid;
  gap: 1px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--line);
}
.wz-sum-line:last-child {
  border-bottom: 0;
}
.wz-sum-label {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink-3);
}
.wz-sum-value {
  font-size: 13px;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.wz-sum-value.muted {
  font-weight: 400;
  color: var(--ink-3);
}
.wz-plans {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.wz-plan {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding: 14px;
  text-align: left;
  font: inherit;
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--line-2);
  border-radius: var(--radius-l);
  cursor: pointer;
}
.wz-plan:hover {
  border-color: var(--blue);
}
.wz-plan[aria-checked="true"] {
  border-color: var(--blue);
  background: var(--blue-50);
  box-shadow: 0 0 0 2px var(--blue-100);
}
.wz-plan-top {
  display: flex;
  justify-content: space-between;
  width: 100%;
  align-items: center;
  gap: 8px;
}
.wz-plan-list {
  margin: 4px 0 0;
  padding-left: 18px;
  font-size: 12.5px;
  color: var(--ink-2);
}
.wz-review-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.wz-review {
  margin: 0;
}
.wz-review .card-head {
  padding-top: 8px;
  padding-bottom: 8px;
}
.wz-count {
  margin-right: auto;
}
.wz-more > summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 13px;
  color: var(--ink-2);
}
html[data-theme="dark"] .wz-summary,
html[data-theme="dark"] .wz-steps li.current {
  background: rgba(255, 255, 255, 0.05);
}
html[data-theme="dark"] .wz-plan,
html[data-theme="dark"] .wz-num {
  background: transparent;
  color: inherit;
  border-color: rgba(255, 255, 255, 0.16);
}
html[data-theme="dark"] .wz-plan[aria-checked="true"] {
  background: rgba(120, 160, 255, 0.12);
}
/* Import wizard (11 November 2026): steps and the main column only. */
.wz-layout.wz-two {
  grid-template-columns: 210px minmax(0, 1fr);
}
@media screen and (max-width: 1000px) {
  .wz-layout,
  .wz-layout.wz-two {
    grid-template-columns: minmax(0, 1fr);
  }
  .wz-summary {
    display: none;
  }
  .wz-steps {
    position: static;
    grid-auto-flow: column;
    overflow-x: auto;
  }
  .wz-step-sub {
    display: none;
  }
  .wz-plans,
  .wz-review-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
.wz-review .dl {
  grid-template-columns: minmax(96px, 38%) minmax(0, 1fr);
  gap: 6px 12px;
}
.wz-review .dl dd {
  overflow-wrap: anywhere;
  font-weight: 600;
  font-size: 13px;
}

/* Restored 9 November 2026: these styles went missing in an earlier save. */
/* Team and access (owner, 9 November 2026): key facts across the top and a
   side menu, as in Company settings. */
.team-glance {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}
.team-glance .sp-glance-item.warn .sp-glance-value {
  color: var(--amber);
}
.team-glance .sp-glance-item.ok .sp-glance-value {
  color: var(--green, #15803d);
}
.team-nav button,
.count-nav button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.team-nav-n {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-3);
  background: var(--line);
  border-radius: 999px;
  padding: 1px 8px;
}
.team-filter {
  padding: 12px 16px 4px;
}
@media screen and (max-width: 860px) {
  .team-glance {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .team-glance .sp-glance-value {
    white-space: normal;
  }
}

/* Plan and add-ons (owner, 9 November 2026): the same layout as Team and
   access. */
.plan-glance {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.count-nav-end {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
@media screen and (max-width: 860px) {
  .plan-glance {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ---------- Company overview on one screen (owner, 9 November 2026) ----------
   Three charts across, then what needs attention and set-up, sized to the
   window on wide screens. */
html[data-look] .co-dense > .page-head {
  margin-bottom: 0;
}
html[data-look] .co-dense .co-kpis {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}
html[data-look] .co-dense .co-kpis > .kpi {
  width: auto;
  padding: 10px 14px;
  gap: 2px;
}
html[data-look] .co-dense .kpi-ico {
  width: 26px;
  height: 26px;
  border-radius: 7px;
}
html[data-look] .co-dense .kpi-label {
  font-size: 11.5px;
}
html[data-look] .co-dense .kpi-value {
  font-size: 22px;
  margin-top: 2px;
}
html[data-look] .co-dense .kpi .pv-meter {
  margin-top: 4px;
}
.co-screen {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}
.co-cell {
  min-width: 0;
  grid-column: span 2;
}
.co-c-attention,
.co-c-setup {
  grid-column: span 3;
}
.co-cell > .card {
  margin: 0;
  height: 100%;
}
@media screen and (min-width: 1101px) {
  html[data-look] .co-dense .co-screen {
    grid-template-rows: minmax(0, 1fr) minmax(0, 1.25fr);
    min-height: 400px;
  }
  html[data-look] .co-dense .co-cell {
    min-height: 0;
    display: flex;
  }
  html[data-look] .co-dense .co-cell > .card {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }
  html[data-look] .co-dense .co-cell .card-head {
    min-height: 46px;
    box-sizing: border-box;
    align-items: center;
    padding-top: 6px;
    padding-bottom: 6px;
  }
  html[data-look] .co-dense .co-cell .card-head .desc {
    display: none;
  }
  html[data-look] .co-dense .co-cell .card-body {
    flex: 1;
    min-height: 0;
    overflow: auto;
  }
  html[data-look] .co-dense .co-c-chart .card-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  html[data-look] .co-dense .co-cell .pv-donut {
    width: 104px;
    height: 104px;
  }
  html[data-look] .co-dense .co-cell .list li {
    padding-top: 7px;
    padding-bottom: 7px;
  }
}
@media screen and (max-width: 1100px) {
  .co-cell,
  .co-c-attention,
  .co-c-setup {
    grid-column: span 3;
  }
  html[data-look] .co-dense .co-kpis {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media screen and (max-width: 640px) {
  .co-screen {
    grid-template-columns: minmax(0, 1fr);
  }
  .co-cell,
  .co-c-attention,
  .co-c-setup {
    grid-column: auto;
  }
  html[data-look] .co-dense .co-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Company overview widgets (owner chose option A, 9 November 2026):
   one line per attention item, and a set-up step tracker with the next
   step to do. */
.co-att .co-att-row {
  display: grid;
  grid-template-columns: 10px minmax(0, 1.3fr) minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 9px 16px;
  min-height: 44px;
}
.co-att .co-att-title {
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.co-att .co-att-sub {
  font-size: 12.5px;
  color: var(--ink-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.co-setup {
  display: grid;
  gap: 14px;
}
.co-track {
  display: flex;
  list-style: none;
  margin: 4px 0 0;
  padding: 0;
}
.co-step {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 0;
}
.co-step + .co-step::before {
  content: "";
  position: absolute;
  top: 15px;
  right: calc(50% + 19px);
  left: calc(-50% + 19px);
  height: 2px;
  background: var(--line-2);
}
.co-step.ok + .co-step::before {
  background: var(--green);
}
.co-step-circle {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 13px;
  border: 2px solid var(--line-2);
  background: var(--card);
  color: var(--ink-3);
}
.co-step.ok .co-step-circle {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}
.co-step.next .co-step-circle {
  border-color: var(--blue);
  color: var(--blue);
  box-shadow: 0 0 0 3px var(--blue-100);
}
.co-step-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-2);
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.co-next {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border-radius: var(--radius);
  background: var(--blue-50);
}
.co-next.done {
  background: var(--green-50, var(--blue-50));
}
.co-next p {
  margin: 0;
}
.co-next-k {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.co-next-t {
  font-weight: 700;
}
html[data-theme="dark"] .co-next {
  background: color-mix(in srgb, var(--blue) 14%, transparent);
}
html[data-theme="dark"] .co-next.done {
  background: color-mix(in srgb, var(--green) 14%, transparent);
}
@media (max-width: 640px) {
  .co-att .co-att-row {
    grid-template-columns: 10px minmax(0, 1fr) auto;
  }
  .co-att .co-att-sub {
    grid-column: 2;
    grid-row: 2;
    white-space: normal;
  }
  .co-att .co-att-row > a {
    grid-row: 1 / span 2;
    grid-column: 3;
  }
}
.co-next > .grow {
  flex: 1;
  min-width: 0;
}

/* Team and access (owner, 9 November 2026): headline tiles, the people
   table, role coverage one line per role, and Sign-in security in two
   columns. */
html[data-look] .co-kpis.team-kpis,
.team-kpis {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.team-nav-help {
  margin-top: 10px;
  padding: 10px 12px 4px;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 6px;
}
.team-nav-help p {
  margin: 0;
}
.dg-sub.warn {
  color: var(--amber-700, var(--ink-3));
}
.team-roles .team-role {
  display: grid;
  grid-template-columns: 28px minmax(0, 1.6fr) minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 12px 16px;
}
.team-role-mark {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 13px;
  background: var(--line);
  color: var(--ink-3);
}
.team-role.ok .team-role-mark {
  background: var(--green);
  color: #fff;
}
.team-role.missing .team-role-mark {
  background: var(--red, #c53030);
  color: #fff;
}
.team-role-main p {
  margin: 0;
}
.team-role-name {
  display: flex;
  gap: 8px;
  align-items: center;
  font-weight: 600;
}
.team-role-req {
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-3);
  border: 1px solid var(--line-2);
  border-radius: 999px;
  padding: 0 7px;
}
.team-role-does {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.team-role-who {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.team-role-who > .small {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.team-role-avatars {
  display: flex;
  flex: none;
}
.team-role-avatars > * + * {
  margin-left: -8px;
}
.team-role-avatars > * {
  box-shadow: 0 0 0 2px var(--card);
}
.warn-text {
  color: var(--red, #c53030);
  font-weight: 600;
}
.team-sec-cols {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}
.co-att .co-att-row > .avatar-dot,
.co-att .co-att-row > [class*="avatar"] {
  width: 26px;
  height: 26px;
}
.co-att:has(.co-att-row > [class*="avatar"]) .co-att-row {
  grid-template-columns: 26px minmax(0, 1fr) minmax(0, 1fr) auto;
}
.team-pad {
  padding: 12px 16px;
  margin: 0;
}
.team-two {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 14px;
  margin: 4px 0 0;
  font-size: 13px;
}
.team-two dt {
  font-weight: 600;
  white-space: nowrap;
}
.team-two dd {
  margin: 0;
  color: var(--ink-2);
}
@media (max-width: 1100px) {
  html[data-look] .co-kpis.team-kpis,
  .team-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .team-sec-cols {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 760px) {
  .team-roles .team-role {
    grid-template-columns: 28px minmax(0, 1fr) auto;
  }
  .team-role-who {
    grid-column: 2;
    grid-row: 2;
  }
  .team-role-does {
    white-space: normal;
  }
}
@media (max-width: 760px) {
  .team-roles .team-role {
    grid-template-columns: 28px minmax(0, 1fr);
  }
  .team-role-does {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }
  .team-roles .team-role > .btn {
    grid-column: 2;
    justify-self: start;
  }
  .team-roles .team-role > span:empty {
    display: none;
  }
  .team-nav-help {
    display: none;
  }
}

/* The owner's payroll overview (owner, 9 November 2026). */
.co-run {
  display: grid;
  gap: 10px;
}
.co-run-dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}
.co-run-dl > div {
  padding: 6px 10px;
  border-radius: var(--radius);
  background: var(--surface);
  min-width: 0;
}
.co-run-dl dt {
  font-size: 11.5px;
  color: var(--ink-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.co-run-dl dd {
  margin: 0;
  font-weight: 700;
  font-size: 13.5px;
  font-variant-numeric: tabular-nums;
}
html[data-theme="dark"] .co-run-dl > div {
  background: rgba(255, 255, 255, 0.04);
}
.co-access-tiles {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.co-access-tiles .po-tile-value {
  font-size: 18px;
}
.co-access-tiles .po-tile-sub {
  white-space: normal;
}
@media screen and (min-width: 1101px) {
  html[data-look] .co-dense .co-access-tiles {
    height: 100%;
    align-content: center;
  }
  html[data-look] .co-dense .co-run .pv-donut {
    width: 92px;
    height: 92px;
  }
}
@media screen and (max-width: 640px) {
  .co-access-tiles {
    grid-template-columns: minmax(0, 1fr);
  }
}
.owner-hand {
  margin-top: 6px;
  padding: 12px 14px;
  border-radius: var(--radius);
  background: var(--surface);
}
html[data-theme="dark"] .owner-hand {
  background: rgba(255, 255, 255, 0.04);
}
/* Owner badge (9 November 2026). */
.badge.violet {
  background: color-mix(in srgb, var(--violet, #6d4bd8) 12%, transparent);
  color: var(--violet, #6d4bd8);
}
@media screen and (max-width: 640px) {
  html[data-look] .co-dense .co-owner > .kpi:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }
}

/* Plan and add-ons (owner, 9 November 2026): what's always included, and
   add-ons as cards. */
.plan-core {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px 14px;
}
.plan-core li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
}
.plan-tick {
  width: 18px;
  height: 18px;
  flex: none;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 11px;
  background: var(--green-50);
  color: var(--green);
}
.addon-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
}
.addon-tile {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  grid-template-rows: 1fr auto;
  gap: 8px 12px;
  padding: 14px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  min-width: 0;
}
.addon-tile.on {
  border-color: color-mix(in srgb, var(--green) 35%, var(--line));
}
.addon-ico {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--blue-50);
  color: var(--blue);
}
.addon-tile.on .addon-ico {
  background: var(--green-50);
  color: var(--green);
}
.addon-ico svg {
  width: 18px;
  height: 18px;
}
.addon-main p {
  margin: 0;
}
.addon-name {
  font-weight: 700;
}
.addon-desc {
  margin-top: 2px !important;
  font-size: 12.5px;
  color: var(--ink-3);
  line-height: 1.45;
}
.addon-foot {
  grid-column: 2;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
html[data-theme="dark"] .addon-tile {
  background: rgba(255, 255, 255, 0.04);
}
@media screen and (max-width: 900px) {
  .plan-core {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.addon-desc {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.addon-tile {
  padding: 12px;
  gap: 6px 12px;
}
.card .addon-grid,
.card .plan-core {
  padding-left: 0;
  margin-left: 0;
}

/* Pay approver (owner, 9 November 2026): the approval summary, the
   Waiting for you queue and the folded hours. */
.appr-sum {
  min-height: 72px;
}
.appr-tiles {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 0;
}
.appr-queue {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.appr-item {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.2fr) auto;
  gap: 16px;
  align-items: center;
  padding: 12px 14px;
  border-radius: var(--radius);
  background: var(--surface);
  border-left: 3px solid var(--amber);
}
.appr-item.soon {
  border-left-color: var(--red);
}
.appr-main p {
  margin: 0;
}
.appr-name {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 15px;
}
.appr-figs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}
.appr-figs dt {
  font-size: 11.5px;
  color: var(--ink-3);
}
.appr-figs dd {
  margin: 0;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
html[data-theme="dark"] .appr-item {
  background: rgba(255, 255, 255, 0.04);
}
details.hours-fold {
  padding: 0;
}
details.hours-fold > summary {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 14px 18px;
  cursor: pointer;
  list-style: none;
}
details.hours-fold > summary::-webkit-details-marker {
  display: none;
}
details.hours-fold > summary::before {
  content: "▸";
  color: var(--ink-3);
}
details.hours-fold[open] > summary::before {
  content: "▾";
}
.hf-title {
  font-weight: 700;
}
details.hours-fold > .card {
  box-shadow: none;
  margin: 0;
  border-top: 1px solid var(--line);
  border-radius: 0 0 var(--radius) var(--radius);
}
@media screen and (max-width: 900px) {
  .appr-tiles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .appr-item {
    grid-template-columns: minmax(0, 1fr);
  }
}
.card .appr-queue {
  padding-left: 0;
  margin-left: 0;
}
@media screen and (min-width: 901px) {
  .appr-item {
    grid-template-columns: minmax(0, 1fr) 380px 190px;
  }
  .appr-item > .btn {
    justify-self: end;
  }
}
@media screen and (max-width: 640px) {
  .appr-tiles {
    grid-template-columns: minmax(0, 1fr);
  }
  .appr-tiles .po-tile-value,
  .appr-tiles .po-tile-sub {
    white-space: normal;
  }
}

/* One-screen payroll dashboard (owner, 9 November 2026), as the company
   and Apps Technologies overviews. */
.pd-screen .pd-c-low {
  grid-column: span 2;
}
html[data-look] .pd-dense .hero.hero-slim {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  align-items: center;
  gap: 18px;
  padding: 12px 20px;
  margin: 0;
}
html[data-look] .pd-dense .hero.hero-slim > .row {
  gap: 14px;
  flex-wrap: nowrap;
  min-width: 0;
}
html[data-look] .pd-dense .hero.hero-slim .pay-ring {
  width: 64px;
  height: 64px;
  flex: none;
}
html[data-look] .pd-dense .hero.hero-slim .pay-ring .pr-n {
  font-size: 20px;
}
html[data-look] .pd-dense .hero.hero-slim .pay-ring .pr-t {
  display: none;
}
html[data-look] .pd-dense .hero.hero-slim h2 {
  font-size: 20px;
  margin: 0;
}
html[data-look] .pd-dense .hero.hero-slim .h-meta {
  margin: 2px 0 0;
  font-size: 12.5px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
html[data-look] .pd-dense .hero.hero-slim .stepper {
  margin: 0;
  padding: 0;
  border: 0;
}
@media screen and (max-width: 1100px) {
  .pd-screen .pd-c-low {
    grid-column: span 3;
  }
  html[data-look] .pd-dense .hero.hero-slim {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media screen and (max-width: 640px) {
  .pd-screen .pd-c-low {
    grid-column: auto;
  }
}
/* Pay run band: run name, steps, then the button (9 November 2026). */
html[data-look] .pd-dense .hero.hero-slim {
  grid-template-columns: auto minmax(0, 1fr) minmax(0, 1.25fr) auto;
}
html[data-look] .pd-dense .hero.hero-slim > .row {
  display: contents;
}
html[data-look] .pd-dense .hero.hero-slim > .row > .actions {
  order: 4;
}
html[data-look] .pd-dense .hero.hero-slim > .stepper {
  order: 3;
}
/* To do as light one-line rows, as on the overviews. */
html[data-look] .pd-dense .pd-low-0 .list li {
  padding-top: 6px;
  padding-bottom: 6px;
}
html[data-look] .pd-dense .pd-low-0 .list .btn {
  border-color: transparent;
  background: transparent;
  box-shadow: none;
  color: var(--blue);
}
/* Pay calendar in a third of the screen: every other day number. */
html[data-look] .pd-dense .pay-cal .pc-n {
  font-size: 10px;
}
html[data-look] .pd-dense .pay-cal li:nth-child(even):not(.today) .pc-n {
  visibility: hidden;
}
@media screen and (max-width: 1100px) {
  html[data-look] .pd-dense .hero.hero-slim {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }
  html[data-look] .pd-dense .hero.hero-slim > .stepper {
    grid-column: 1 / -1;
    order: 5;
  }
}
html[data-look] .pd-dense .ms-bar {
  flex: none;
  width: 100%;
  height: 14px;
  min-height: 14px;
}
@media screen and (max-width: 640px) {
  html[data-look] .co-dense .pd-kpis > .kpi:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }
}
html[data-look] .pd-dense .ready-notice,
html[data-look] .pd-dense > .callout {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
  padding: 8px 14px;
  margin: 0;
}

/* Leave decisions (owner, 9 November 2026): waiting requests on the left,
   everything needed to decide one on the right. */
.ld-desk {
  display: grid;
  grid-template-columns: minmax(240px, 320px) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}
.card .ld-list,
.ld-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}
.ld-item {
  width: 100%;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  text-align: left;
  padding: 10px 12px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--card);
  cursor: pointer;
  font: inherit;
  color: inherit;
}
.ld-item:hover {
  background: var(--surface);
}
.ld-item[aria-selected="true"] {
  border-color: var(--blue);
  background: var(--blue-50);
  box-shadow: inset 3px 0 0 var(--blue);
}
.ld-item-main {
  display: grid;
  gap: 2px;
  min-width: 0;
}
.ld-item-name {
  font-weight: 700;
}
.ld-item-sub {
  font-size: 12.5px;
  color: var(--ink-3);
}
.ld-flags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 2px;
}
.ld-flags .badge {
  font-size: 11px;
}
.ld-panel {
  display: grid;
  gap: 14px;
  padding: 14px 16px;
  border-radius: var(--radius);
  background: var(--surface);
  min-width: 0;
}
.ld-head {
  display: flex;
  gap: 12px;
  align-items: center;
}
.ld-head p {
  margin: 0;
}
.ld-name {
  font-size: 17px;
  font-weight: 700;
}
.ld-when p {
  margin: 0;
}
.ld-dates {
  font-size: 20px;
  font-weight: 700;
}
.ld-note {
  margin: 8px 0 0;
  padding: 8px 12px;
  border-left: 3px solid var(--blue);
  background: var(--card);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
}
.ld-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}
.ld-fact {
  display: grid;
  gap: 2px;
  padding: 10px 12px;
  border-radius: var(--radius);
  background: var(--card);
  border-left: 3px solid var(--line-2);
  min-width: 0;
}
.ld-fact.ok {
  border-left-color: var(--green);
}
.ld-fact.amber {
  border-left-color: var(--amber);
}
.ld-fact-label {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink-3);
}
.ld-fact-value {
  font-weight: 700;
}
.ld-fact-sub {
  font-size: 12px;
  color: var(--ink-3);
}
.ld-sub {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.ld-cal-wrap {
  overflow-x: auto;
}
.ld-cal {
  border-collapse: separate;
  border-spacing: 3px;
  font-size: 12px;
}
.ld-cal th {
  font-weight: 600;
  color: var(--ink-3);
  text-align: center;
  padding: 0 2px;
}
.ld-cal thead th {
  min-width: 26px;
}
.ld-cal thead th span {
  display: block;
  line-height: 1.2;
}
.ld-wd {
  font-size: 10px;
}
.ld-cal tbody th {
  text-align: left;
  padding-right: 10px;
  white-space: nowrap;
  color: var(--ink);
}
.ld-cal td {
  height: 22px;
  border-radius: 5px;
  background: var(--card);
}
.ld-cal td.we,
.ld-cal th.we {
  opacity: 0.6;
}
.ld-this,
.ld-cal td.ld-this {
  background: var(--blue);
}
.ld-approved,
.ld-cal td.ld-approved {
  background: var(--green);
}
.ld-waiting,
.ld-cal td.ld-waiting {
  background: repeating-linear-gradient(
    45deg,
    var(--amber) 0 3px,
    transparent 3px 6px
  );
}
.ld-legend {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 6px 0 0;
}
.ld-key {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 3px;
}
html[data-theme="dark"] .ld-panel {
  background: rgba(255, 255, 255, 0.04);
}
@media screen and (max-width: 1000px) {
  .ld-desk {
    grid-template-columns: minmax(0, 1fr);
  }
  .ld-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .ld-head {
    flex-wrap: wrap;
  }
}
.ld-head > .grow {
  flex: 1;
  min-width: 0;
}
.ld-cal thead th {
  min-width: 34px;
}
.ld-cal td {
  height: 24px;
}
@media screen and (max-width: 640px) {
  .ld-head > .grow {
    flex: 1 1 60%;
  }
  .ld-head > .actions {
    flex-basis: 100%;
  }
}

/* Timesheet decisions (owner, 9 November 2026): each waiting day. */
.ts-days-wrap {
  overflow-x: auto;
}
.ts-days {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  background: var(--card);
  border-radius: var(--radius);
}
.ts-days th,
.ts-days td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  white-space: nowrap;
}
.ts-days thead th {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink-3);
}
.ts-days .num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.ts-days tbody tr:last-child > * {
  border-bottom: 0;
}
.ts-days tr.ts-clash {
  background: color-mix(in srgb, var(--red) 6%, transparent);
}
.ts-up {
  color: var(--amber);
  font-size: 11px;
}
.ts-days .ts-act {
  text-align: right;
}
.ts-days .ts-act .actions {
  justify-content: flex-end;
  flex-wrap: nowrap;
}
@media screen and (max-width: 640px) {
  .ts-days thead {
    display: none;
  }
  .ts-days,
  .ts-days tbody,
  .ts-days tr {
    display: block;
    width: 100%;
  }
  .ts-days tr {
    padding: 10px 12px;
    border-bottom: 1px solid var(--line);
  }
  .ts-days th,
  .ts-days td {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 3px 0;
    border: 0;
    white-space: normal;
  }
  .ts-days td[data-label]::before {
    content: attr(data-label);
    color: var(--ink-3);
    font-size: 12px;
  }
  .ts-days .ts-act {
    justify-content: flex-start;
    padding-top: 8px;
  }
}

/* Hours entry (owner, 9 November 2026): progress and comparisons. */
.hours-top {
  display: grid;
  gap: 6px;
  padding-bottom: 10px;
}
.hours-progress {
  display: grid;
  grid-template-columns: minmax(120px, 220px) minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}
.hours-progress p {
  margin: 0;
}
.hp-bar {
  height: 8px;
  border-radius: 999px;
  background: var(--line);
  overflow: hidden;
}
.hp-bar > span {
  display: block;
  height: 100%;
  background: var(--green);
  border-radius: inherit;
  transition: width 0.2s;
}
.hours-keys {
  margin: 0;
}
.hours-diff {
  color: var(--amber);
  font-weight: 600;
  white-space: nowrap;
}
.hours-use {
  font-size: 12px;
  font-weight: 700;
  margin-left: 2px;
}
.wz-sum-value.need {
  color: var(--amber);
}
.wz-sum-note {
  margin: 8px 0 0;
}
/* Employee page: key facts, set-up steps, facts grid (9 November 2026). */
.po-tiles.emp-facts {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  padding: 0;
}
.emp-facts .po-tile {
  border: 1px solid var(--line);
  border-left-width: 3px;
}
.po-tile-value.muted {
  color: var(--ink-3);
  font-weight: 500;
}
.emp-setup {
  padding: 10px 14px;
}
.emp-setup-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 8px;
}
.emp-setup-head a {
  margin-left: auto;
}
.emp-setup-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.emp-setup-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 10px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  border-left: 3px solid var(--amber);
  color: var(--ink);
  text-decoration: none;
}
.emp-setup-item.waiting {
  border-left-color: var(--blue);
}
.emp-setup-item:hover,
.emp-setup-item:focus-visible {
  background: var(--blue-50);
}
.emp-setup-label {
  font-weight: 600;
  font-size: 13px;
}
.emp-setup-text {
  font-size: 12px;
  color: var(--ink-3);
}
.fact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 14px 20px;
  margin: 0;
}
.fact-grid .fact {
  min-width: 0;
}
.fact-grid dt {
  font-size: 12px;
  color: var(--ink-3);
  margin-bottom: 2px;
}
.fact-grid dd {
  margin: 0;
  font-weight: 600;
  overflow-wrap: anywhere;
}
@media (max-width: 900px) {
  .po-tiles.emp-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
html[data-theme="dark"] .emp-setup-item:hover {
  background: rgba(255, 255, 255, 0.06);
}
@media (max-width: 600px) {
  .wizard-drawer .wz-step-sub {
    display: none;
  }
  .wizard-drawer .wz-step-name {
    white-space: nowrap;
  }
  .emp-setup-head {
    flex-wrap: wrap;
  }
}
/* Staff IDs (owner, 9 November 2026). */
.staff-id {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.sid-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 230px;
  gap: 16px;
  align-items: start;
}
.sid-preview {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 16px;
  border-radius: var(--radius);
  background: var(--blue-50);
  border: 1px solid var(--line);
}
.sid-preview-label {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.sid-preview-id {
  font-size: 22px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
html[data-theme="dark"] .sid-preview {
  background: rgba(255, 255, 255, 0.05);
}
@media (max-width: 900px) {
  .sid-top {
    grid-template-columns: 1fr;
  }
}
.staff-id-plain {
  white-space: nowrap;
}
/* Required fields (owner, 10 November 2026). */
.field label .req {
  color: var(--red);
  font-weight: 700;
}
.req-note {
  margin: 0 0 4px;
}
.req-note .req {
  color: var(--red);
  font-weight: 700;
}
/* Dark check (owner, 10 November 2026): text on the accent colour stays
   dark, so the lighter accents (amber, teal, rose) keep their contrast. */
html[data-theme="dark"] .stepper li.done::before,
html[data-theme="dark"] .e-visual .e-icon,
html[data-theme="dark"] .seg-opt[aria-checked="true"],
html[data-theme="dark"] .count-pill,
html[data-theme="dark"] .chip[aria-pressed="true"],
html[data-theme="dark"] .dg-chip[aria-pressed="true"],
html[data-theme="dark"] .dg-chip[aria-pressed="true"] .dg-chip-n,
html[data-theme="dark"] .wz-steps li.current .wz-num {
  color: #06101f;
}
html[data-theme="dark"] .dg-g.emp,
html[data-theme="dark"] .dg-gl.emp,
html[data-theme="dark"] .dg-swatch.emp {
  --tone: #a48cf0;
}
/* ======================================================================
   Appearance panel (owner, 10 November 2026): theme cards with a small
   drawing of each look, then sections for colours, size and reading.
   ====================================================================== */
.ap-panel {
  gap: 22px;
}
.ap-panel > .dark-prefs,
.ap-panel > .stack,
.ap-section {
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.ap-panel > .ap-section:first-child {
  padding-top: 0;
  border-top: 0;
}
.ap-head,
.ap-panel .dp-head {
  font-size: 15px;
  font-weight: 650;
  margin: 0 0 4px;
}
.ap-hint {
  margin: 0 0 10px;
}
.ap-panel .look-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.ap-panel .look-opt {
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  padding: 10px 10px 12px;
}
.ap-panel .look-opt:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}
.ap-panel .look-name {
  display: flex;
  align-items: center;
  gap: 6px;
}
.ap-panel .look-name svg {
  width: 16px;
  height: 16px;
  color: var(--blue);
  margin-left: auto;
}
.ap-panel .look-desc {
  font-size: 12.5px;
  line-height: 1.4;
}
/* The drawing: top bar, side menu (Classic only) and three cards. */
.look-preview {
  --lp-bg: #f2f6fb;
  --lp-top: #ffffff;
  --lp-card: #ffffff;
  --lp-line: #dde3ec;
  --lp-accent: #0a4fc4;
  --lp-side: #041d4a;
  position: relative;
  display: grid;
  grid-template-columns: 0 1fr;
  grid-template-rows: 14px 1fr;
  height: 92px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--lp-bg);
  border: 1px solid var(--lp-line);
}
.lp-top {
  grid-column: 1 / -1;
  background: var(--lp-top);
  border-bottom: 1px solid var(--lp-line);
  position: relative;
}
.lp-top::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 4px;
  width: 26px;
  height: 6px;
  border-radius: 3px;
  background: var(--lp-accent);
}
.lp-side {
  background: var(--lp-side);
}
.lp-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 6px;
  padding: 8px;
}
.lp-card {
  border-radius: 4px;
  background: var(--lp-card);
  border: 1px solid var(--lp-line);
  position: relative;
}
.lp-a {
  grid-column: 1 / -1;
}
.lp-a::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 6px;
  width: 40%;
  height: 5px;
  border-radius: 3px;
  background: var(--lp-accent);
}
.look-dark .look-preview {
  --lp-bg: #0b121c;
  --lp-top: #060c14;
  --lp-card: #111a26;
  --lp-line: #1f2b3a;
  --lp-accent: #6b93ff;
}
.look-auto .look-preview {
  background: linear-gradient(135deg, #f2f6fb 0 50%, #0b121c 50% 100%);
}
.look-auto .lp-top {
  background: linear-gradient(90deg, #ffffff 0 50%, #060c14 50% 100%);
}
.look-auto .lp-card {
  background: transparent;
  border-color: rgba(127, 140, 160, 0.6);
}
.look-classic .look-preview {
  grid-template-columns: 22% 1fr;
  --lp-bg: #f2f6fb;
  --lp-top: #f2f6fb;
}
.look-classic .lp-top {
  grid-column: 2;
}
.look-classic .lp-side {
  grid-row: 1 / -1;
  grid-column: 1;
}
.ap-reset {
  display: flex;
  justify-content: flex-end;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
@media (max-width: 560px) {
  .ap-panel .look-list {
    grid-template-columns: 1fr;
  }
}
/* ======================================================================
   Light accent (owner, 10 November 2026): chosen under Appearance for the
   light looks. Set on body so it wins over the company colours applied
   inline on the html element. Every accent keeps 4.5:1 on white.
   ====================================================================== */
html:not([data-theme="dark"])[data-light-accent] body {
  --blue-top: color-mix(in srgb, var(--blue) 88%, #ffffff);
  --blue-50: color-mix(in srgb, var(--blue) 8%, #ffffff);
  --blue-100: color-mix(in srgb, var(--blue) 16%, #ffffff);
  --ring: 0 0 0 3px color-mix(in srgb, var(--blue) 24%, transparent);
}
html:not([data-theme="dark"])[data-light-accent="blue"] body {
  --blue: #0a4fc4;
  --blue-600: #073082;
}
html:not([data-theme="dark"])[data-light-accent="teal"] body {
  --blue: #0f766e;
  --blue-600: #0b5f58;
}
html:not([data-theme="dark"])[data-light-accent="green"] body {
  --blue: #15803d;
  --blue-600: #106a32;
}
html:not([data-theme="dark"])[data-light-accent="violet"] body {
  --blue: #6d28d9;
  --blue-600: #5b21b6;
}
html:not([data-theme="dark"])[data-light-accent="rose"] body {
  --blue: #be123c;
  --blue-600: #9f1239;
}
.la-company .dp-dot {
  background: var(--brand-main, #0a4fc4);
}
.la-blue .dp-dot {
  background: #0a4fc4;
}
.la-teal .dp-dot {
  background: #0f766e;
}
.la-green .dp-dot {
  background: #15803d;
}
.la-violet .dp-dot {
  background: #6d28d9;
}
.la-rose .dp-dot {
  background: #be123c;
}
.light-prefs .dp-dot {
  border-color: rgba(0, 0, 0, 0.1);
}

/* ======================================================================
   Paper (owner, 10 November 2026): the light look on warm off-white with
   softer borders and warm greys, for long sessions. Payslips stay white.
   ====================================================================== */
html[data-theme="paper"] body {
  --surface: #f2eadb;
  --surface-2: #e8dcc6;
  --card: #fcf8f0;
  --line: #e6dccb;
  --line-2: #d5c7b0;
  --ink: #2c241a;
  --ink-2: #554837;
  --ink-3: #75664f;
  --slate: #6b5d49;
  --shadow:
    0 1px 2px rgba(60, 40, 10, 0.05), 0 8px 20px -12px rgba(60, 40, 10, 0.14);
}
html[data-look="new"][data-theme="paper"] body {
  background: linear-gradient(180deg, #f6f0e5 0%, #f2eadb 50%, #ece2cf 100%);
}
html[data-look="new"][data-theme="paper"] .card,
html[data-look="new"][data-theme="paper"] .kpi,
html[data-look="new"][data-theme="paper"] .co-board .card {
  background: var(--card);
}
html[data-look="new"][data-theme="paper"] .topbar,
html[data-look="new"][data-theme="paper"] .t-bar {
  background: #f9f4ea;
}
html[data-theme="paper"] input,
html[data-theme="paper"] select,
html[data-theme="paper"] textarea {
  background-color: #fffdf9;
}
html[data-theme="paper"] body .payslip {
  --card: #ffffff;
  --ink: #0b1f3f;
}
.look-paper .look-preview {
  --lp-bg: #f2eadb;
  --lp-top: #f9f4ea;
  --lp-card: #fcf8f0;
  --lp-line: #e6dccb;
}
html[data-theme="paper"] .btn:not(.primary):not(.danger),
html[data-theme="paper"] .drawer,
html[data-theme="paper"] .drawer .d-head,
html[data-theme="paper"] .drawer .d-foot {
  background-color: var(--card);
}
html[data-theme="paper"] .btn:not(.primary):not(.danger):hover {
  background-color: #f6efe2;
}
html[data-theme="paper"] .hero .btn.primary {
  background-color: #fffcf6;
}

/* Paper: the light look's fixed light colours, warmed (10 November 2026). */
html[data-look="new"][data-theme="paper"] .chooser button {
  background-color: var(--card);
}
html[data-look="new"][data-theme="paper"] .btn {
  background-color: var(--card);
}
html[data-look="new"][data-theme="paper"] .btn:hover {
  background-color: #f6efe2;
}
html[data-look="new"][data-theme="paper"] .stepper li::before {
  background-color: var(--card);
}
html[data-look="new"][data-theme="paper"] .badge {
  background-color: #ece3d3;
}
html[data-look="new"][data-theme="paper"] .notbuilt {
  background-color: #f6efe2;
}
html[data-look="new"][data-theme="paper"] .nb-pill {
  background-color: var(--card);
}
html[data-look="new"][data-theme="paper"] .nb-inline {
  background-color: #f6efe2;
}
html[data-look="new"][data-theme="paper"] table.t th {
  background-color: #f6efe2;
}
html[data-look="new"][data-theme="paper"] table.t tbody tr.clickable:hover td {
  background-color: #f6efe2;
}
html[data-look="new"][data-theme="paper"] table.t tfoot td {
  background-color: #f6efe2;
}
html[data-look="new"][data-theme="paper"] .input,
html[data-look="new"][data-theme="paper"] select.input,
html[data-look="new"][data-theme="paper"] textarea.input {
  background-color: var(--card);
}
html[data-look="new"][data-theme="paper"] .drawer {
  background-color: var(--card);
}
html[data-look="new"][data-theme="paper"] .d-foot {
  background-color: #f6efe2;
}
html[data-look="new"][data-theme="paper"] .icon-btn:hover {
  background-color: #ece3d3;
}
html[data-look="new"][data-theme="paper"] .dialog {
  background-color: var(--card);
}
html[data-look="new"][data-theme="paper"] details.notes {
  background-color: #f6efe2;
}
html[data-look="new"][data-theme="paper"] .leave-cal .we {
  background-color: #f6efe2;
}
html[data-look="new"][data-theme="paper"] .statement-box {
  background-color: #f6efe2;
}
html[data-look="new"][data-theme="paper"] details.disclosure.card-like {
  background-color: var(--card);
}
html[data-look="new"][data-theme="paper"] .input[disabled],
html[data-look="new"][data-theme="paper"] .input[readonly] {
  background-color: #f6efe2;
}
html[data-look="new"][data-theme="paper"] table.t th {
  background-color: #f6efe2;
}
html[data-look="new"][data-theme="paper"] table.t tbody tr:hover td {
  background-color: #f6efe2;
}
html[data-look="new"][data-theme="paper"] table.t tbody tr.clickable:hover td {
  background-color: #f6efe2;
}
html[data-look="new"][data-theme="paper"] table.t tfoot td {
  background-color: #f6efe2;
}
html[data-look="new"][data-theme="paper"] .d-head {
  background-color: var(--card);
}
html[data-look="new"][data-theme="paper"] .d-foot {
  background-color: var(--card);
}
html[data-look="new"][data-theme="paper"] .sb-customer {
  background-color: var(--card);
}
html[data-look="new"][data-theme="paper"] .ws-logo {
  background-color: var(--card);
}
html[data-look="new"][data-theme="paper"] .signin-card {
  background-color: var(--card);
}
html[data-look="new"][data-theme="paper"] .powered-by img {
  background-color: var(--card);
}
html[data-look="new"][data-theme="paper"] .signin-link-box {
  background-color: #f6efe2;
}
html[data-look="new"][data-theme="paper"] .reg-check {
  background-color: #f6efe2;
}
html[data-look="new"][data-theme="paper"] .brand-colours {
  background-color: #f6efe2;
}
html[data-look="new"][data-theme="paper"] .leave-hp-note {
  background-color: #f6efe2;
}
html[data-look="new"][data-theme="paper"] .card > .leave-hp-note,
html[data-look="new"][data-theme="paper"] .stack > .leave-hp-note {
  background-color: var(--card);
}
html[data-look="new"][data-theme="paper"] .mobile-nav-btn {
  background-color: var(--card);
}
html[data-look="new"][data-theme="paper"] table.t th {
  background-color: #f6efe2;
}
html[data-look="new"][data-theme="paper"] table.t tbody tr:hover td {
  background-color: #f6efe2;
}
html[data-look="new"][data-theme="paper"] .pc-bar {
  background-color: #f6efe2;
}
html[data-look="new"][data-theme="paper"] .customer-logo-tile {
  background-color: var(--card);
}
html[data-look="new"][data-theme="paper"] .ws-logo-tile {
  background-color: var(--card);
}
html[data-look="new"][data-theme="paper"] .sb-customer-logo {
  background-color: var(--card);
}
html[data-look="new"][data-theme="paper"] .pa-table th {
  background-color: #f6efe2;
}

/* Classic in dark colours (owner, 10 November 2026): a hairline keeps the
   side menu apart from the page, as both are dark. */
@media print, (min-width: 861px) {
  html[data-look="classic"][data-theme="dark"] .sidebar {
    box-shadow: inset -1px 0 0 var(--line);
  }
}

/* ======================================================================
   Background wash (owner, 10 November 2026): in the light looks the page
   fades from a soft tint of the accent (the company colour, or the one
   chosen under Appearance) at the top into a near-white page. Soft is the
   default; Strong deepens it; Off keeps the plain background. Cards stay
   white. Dark and Paper keep their own backgrounds.
   ====================================================================== */
html[data-look][data-wash="soft"]:not([data-theme]) body {
  --wash: 14%;
}
html[data-look][data-wash="strong"]:not([data-theme]) body {
  --wash: 22%;
}
html[data-look][data-wash="soft"]:not([data-theme]) body,
html[data-look][data-wash="strong"]:not([data-theme]) body {
  background:
    radial-gradient(
      70% 55% at 100% 0%,
      color-mix(in srgb, var(--blue) calc(var(--wash) * 1.4), transparent) 0%,
      transparent 70%
    ),
    radial-gradient(
      55% 45% at 0% 0%,
      color-mix(in srgb, var(--blue) calc(var(--wash) * 0.8), transparent) 0%,
      transparent 70%
    ),
    linear-gradient(
      180deg,
      color-mix(in srgb, var(--blue) var(--wash), #ffffff) 0%,
      color-mix(in srgb, var(--blue) calc(var(--wash) * 0.35), #f8f9fb) 38%,
      #f5f6f9 100%
    );
  background-attachment: fixed;
}
html[data-look="new"][data-wash="soft"]:not([data-theme]) .topbar,
html[data-look="new"][data-wash="strong"]:not([data-theme]) .topbar {
  background: color-mix(in srgb, var(--blue) 5%, rgba(255, 255, 255, 0.9));
}

/* ======================================================================
   Appearance, compact (owner, 10 November 2026): two tabs, small theme
   tiles in one row, and settings as rows (name left, choices right), so
   each tab fits on one screen without scrolling.
   ====================================================================== */
.ap-panel {
  display: block;
}
.ap-panel .tabs {
  margin-bottom: 16px;
}
.ap-label {
  font-size: 12.5px;
  font-weight: 650;
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0 0 8px;
}
.ap-panel .look-list.ap-tiles {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}
.ap-panel .ap-tiles .look-opt {
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  padding: 6px 6px 8px;
  border-radius: 10px;
}
.ap-tiles .look-preview {
  height: 52px;
  grid-template-rows: 9px 1fr;
  border-radius: 6px;
}
.ap-tiles .lp-top::before {
  left: 5px;
  top: 2px;
  width: 16px;
  height: 4px;
}
.ap-tiles .lp-body {
  gap: 4px;
  padding: 5px;
}
.ap-tiles .lp-a::before {
  left: 4px;
  top: 4px;
  height: 3px;
}
.ap-panel .ap-tiles .look-name {
  justify-content: center;
  font-size: 12.5px;
  font-weight: 600;
  gap: 4px;
}
.ap-panel .ap-tiles .look-name svg {
  width: 14px;
  height: 14px;
  margin-left: 0;
}
.ap-theme-desc {
  margin: 10px 0 0;
  font-size: 13px;
  color: var(--ink-2);
  min-height: 1.4em;
}
.ap-rows {
  margin-top: 14px;
  border-top: 1px solid var(--line);
}
.ap-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.ap-row-stack {
  grid-template-columns: 1fr;
}
.ap-row-label {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}
.ap-row-hint {
  margin: 2px 0 0;
  font-size: 12.5px;
  line-height: 1.35;
  color: var(--ink-3);
}
.ap-row-control {
  display: flex;
  justify-content: flex-end;
}
.ap-row-stack .ap-row-control {
  justify-content: flex-start;
}
.ap-row .seg {
  flex-wrap: nowrap;
}
.ap-row .seg-opt {
  padding: 6px 10px;
  font-size: 13px;
  white-space: nowrap;
}
.ap-dots {
  gap: 6px;
  justify-content: flex-end;
  flex-wrap: nowrap;
}
.dp-swatch.ap-dot {
  min-height: 0;
  width: 34px;
  height: 34px;
  padding: 0;
  justify-content: center;
  border-radius: 50%;
}
.dp-swatch.ap-dot .dp-dot {
  width: 24px;
  height: 24px;
}
.dp-swatch.ap-dot[aria-checked="true"] {
  border-color: var(--blue);
  box-shadow:
    0 0 0 1px var(--blue),
    inset 0 0 0 2px var(--card);
}
.dp-swatch.ap-dot:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}
.ap-zoom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
}
.ap-zoom .zoom-step {
  margin: 0;
}
.ap-tab > .ap-rows:first-child {
  margin-top: 0;
  border-top: 0;
}
.ap-panel .ap-tiles .look-name {
  text-align: center;
  line-height: 1.25;
}
.ap-foot-note {
  margin: 12px 0 0;
  font-size: 12.5px;
  color: var(--ink-3);
}
@media (max-width: 560px) {
  .ap-panel .look-list.ap-tiles {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .ap-row {
    grid-template-columns: 1fr;
  }
  .ap-row-control,
  .ap-dots {
    justify-content: flex-start;
  }
  .ap-dots {
    flex-wrap: wrap;
  }
  .ap-row .seg {
    flex-wrap: wrap;
  }
}
/* Company colour shows the company's own colour with a white centre, so
   it can't be mistaken for Blue when the brand colour is blue. */
.dp-swatch.ap-dot.la-company .dp-dot {
  background: radial-gradient(
    circle,
    #ffffff 0 26%,
    var(--brand-main, #0a4fc4) 30% 100%
  );
}

/* ---- 10 November 2026: review screen for employee submissions ---- */
.rv-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.rv-table th,
.rv-table td {
  text-align: left;
  padding: 0.5rem 0.6rem;
  border-bottom: 1px solid var(--line, #e3e8ef);
  vertical-align: top;
}
.rv-table thead th {
  font-size: 0.78rem;
  color: var(--muted, #5b6575);
  font-weight: 600;
}
.rv-table tbody th {
  width: 30%;
  font-weight: 500;
  color: var(--muted, #5b6575);
}
.rv-table tr.is-changed td:first-of-type {
  background: color-mix(in srgb, var(--warn, #b7791f) 10%, transparent);
}
.rv-change del {
  color: var(--muted, #5b6575);
}
.rv-h {
  font-size: 0.82rem;
  margin: 0.25rem 0 0.4rem;
  color: var(--muted, #5b6575);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.rv-auto {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.35rem;
}
.rv-auto li {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  font-size: 0.88rem;
}
.rv-auto li svg {
  width: 1rem;
  height: 1rem;
  flex: none;
  margin-top: 0.15rem;
}
.rv-auto li.ok svg {
  color: var(--ok, #2f855a);
}
.rv-auto li.warn svg {
  color: var(--danger, #c53030);
}
.rv-check {
  align-items: flex-start;
}
.ks-own-pay {
  margin-left: 0.4rem;
}
.wiz-q {
  display: grid;
  gap: 0.35rem;
}
.wiz-q legend {
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
}
.wiz-q label {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  font-size: 0.9rem;
}
.wiz-result {
  border-radius: 10px;
  padding: 0.75rem 0.9rem;
  background: color-mix(in srgb, var(--accent, #1d5fe0) 8%, transparent);
}
.wiz-result strong {
  font-size: 1.05rem;
}

/* Work pattern editor (owner, 10 November 2026) */
.field .flabel .req {
  color: var(--red);
  font-weight: 700;
}
.wp-editor .wp-quick {
  gap: 8px;
  flex-wrap: wrap;
}
.wp-editor .wp-summary {
  font-weight: 600;
  color: var(--ink);
}
.wp-editor .wp-summary:empty {
  display: none;
}

/* ======================================================================
   Pay run review (owner, 12 November 2026): run bar, "Looked at" marks,
   Show line notes, After payday rows and phone payslip folds. Theme
   colours only (var(--…)), so the logo colours, Classic, light and dark
   all carry over. No fixed colours here.
   ====================================================================== */
.run-bar {
  position: sticky;
  top: 0;
  z-index: 6;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px 12px;
  background: color-mix(in srgb, var(--card) 94%, transparent);
  backdrop-filter: blur(6px);
  border-radius: var(--radius-l);
  box-shadow: var(--shadow);
}
html[data-look="new"] .run-bar {
  top: 72px;
}
.run-bar .rb-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 14px;
  min-height: 36px;
}
.run-bar .rb-title {
  font-size: 14px;
  color: var(--ink);
}
.run-bar .rb-gap {
  flex: 1 1 auto;
}
.run-bar .rb-looked,
.exc-looked-count {
  color: var(--ink-2);
  white-space: nowrap;
}
.run-bar .rb-looked.is-done,
.exc-looked-count.is-done {
  color: var(--green);
  font-weight: 600;
}
/* The section menu rides inside the run bar: one sticky strip, not two. */
.run-bar .section-menu {
  position: static;
  padding: 6px 0 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  backdrop-filter: none;
  box-shadow: none;
}
.has-run-bar [data-jump] {
  scroll-margin-top: 150px;
}
html[data-look="new"] .has-run-bar [data-jump] {
  scroll-margin-top: 210px;
}
@media screen and (max-width: 600px) {
  .run-bar .rb-title,
  .run-bar .rb-looked {
    display: none;
  }
}
@media print {
  .run-bar {
    display: none !important;
  }
}

/* Check these first: "Looked at" */
.exc-head {
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 12px;
}
.exc-item .actions {
  align-items: center;
  flex-wrap: wrap;
}
.exc-look {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}
.exc-look .check {
  align-items: center;
  min-height: 32px;
  font-size: 14px;
}
.exc-look .check input {
  margin-top: 0;
}
.exc-looked-by:empty {
  display: none;
}

/* Show line: the reason at the top of the person's details */
.exc-why {
  margin: 0 0 12px;
  padding: 12px 14px;
  border-radius: var(--radius);
  background: var(--blue-50);
  color: var(--ink);
}
.exc-why h4 {
  margin: 10px 0 4px;
  font-size: 13px;
}
.exc-why-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
}
.exc-why-nav .exc-why-pos {
  color: var(--ink-2);
}
.exc-why-nav .exc-look {
  flex-direction: row;
  align-items: center;
  gap: 8px;
}
.exc-why-nav > .btn:last-child {
  margin-left: auto;
}
/* The figure a check is about, marked in the person's row. */
.dg-table tr.dg-row td.dg-hl,
html[data-theme="dark"] .dg-table tr.dg-row td.dg-hl {
  background: var(--amber-50);
  box-shadow: inset 0 0 0 2px var(--amber);
}

/* After payday: the file and the step on one row */
.ft-row {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.2fr) auto;
  align-items: start;
  gap: 8px 16px;
}
.ft-states {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-top: 2px;
}
.ft-action {
  justify-self: end;
}
@media screen and (max-width: 760px) {
  .ft-row {
    grid-template-columns: minmax(0, 1fr);
  }
  .ft-states {
    padding-left: 26px;
  }
  .ft-action {
    justify-self: start;
    padding-left: 26px;
  }
}

/* Phone payslip: long blocks fold on a phone screen only */
.ps-fold-btn {
  display: none;
}
.ps-day-sum {
  display: none;
}
@media screen and (max-width: 600px) {
  .ps-fold-btn {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0;
    border: 0;
    background: none;
    color: var(--blue);
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
  }
  .ps-fold.is-folded > .ps-fold-body {
    display: none;
  }
  .ps-lines tr.ps-day-sum {
    display: table-row;
  }
  .ps-lines tr.ps-day:not(.is-open) {
    display: none;
  }
  .ps-lines tr.ps-day.is-open td {
    color: var(--ink-2);
  }
}

/* ======================================================================
   Interface polish (owner, 13 November 2026). Theme colours only.
   ====================================================================== */
/* Theme safety: page surfaces that used a fixed white now follow the
   theme. Light and paper keep white exactly as before; dark gets the card
   colour wherever no dark rule existed yet. Logos, the payslip and print
   stay white on purpose. */
html[data-theme="dark"] body {
  --white-ui: var(--card);
  --skel-a: var(--surface-2, #121a26);
  --skel-b: var(--card);
}

/* Busy buttons: a spinner replaces the icon and the label says what's
   happening. The button can't be pressed again until it's done. */
.btn[aria-busy="true"] {
  opacity: 0.85;
  cursor: progress;
}
.btn[aria-busy="true"] > svg {
  display: none;
}
.btn[aria-busy="true"]::before {
  content: "";
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: btn-spin 0.7s linear infinite;
}
@keyframes btn-spin {
  to {
    transform: rotate(360deg);
  }
}
@media (prefers-reduced-motion: reduce) {
  .btn[aria-busy="true"]::before {
    animation: none;
    border-right-color: currentColor;
    opacity: 0.6;
  }
}

/* Phones: buttons and fields at least 44 px, and 16 px text in fields so
   the phone doesn't zoom in when one is tapped. */
@media screen and (max-width: 600px) {
  .btn,
  .btn.sm {
    min-height: 44px;
  }
  .input,
  select.input {
    min-height: 44px;
    font-size: 16px;
  }
  textarea.input {
    font-size: 16px;
  }
}

/* Units inside the field ($, h, %) */
.input-unit {
  position: relative;
  display: block;
}
.input-unit .iu-pre,
.input-unit .iu-suf {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ink-2);
  font-weight: 600;
  font-size: 14px;
  pointer-events: none;
}
.input-unit .iu-pre {
  left: 12px;
}
.input-unit .iu-suf {
  right: 12px;
}
.input-unit.has-pre .input {
  padding-left: 28px;
}
.input-unit.has-suf .input {
  padding-right: 40px;
}
.input-unit.is-number .iu-suf {
  right: 32px;
}
.input-unit.is-number.has-suf .input {
  padding-right: 56px;
}

/* Character counter and "passes the check" note under a field */
.field .fmeta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
  color: var(--ink-3);
}
.field .fcount {
  margin-left: auto;
  font-weight: 600;
  white-space: nowrap;
}
.field .fcount.is-full {
  color: var(--amber);
}
.field .fok {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--green);
}
.field .fok svg {
  width: 14px;
  height: 14px;
  stroke-width: 2.6;
}

/* Step ticks drawn with the tick icon instead of a typed character */
.wz-num svg,
.co-step-circle svg,
.plan-tick svg,
.team-role-mark svg,
.mark svg,
.tick-ico {
  width: 14px;
  height: 14px;
  stroke-width: 2.8;
}

/* Page loading placeholder shaped like the page: tiles, then cards */
.skel-page {
  display: grid;
  gap: 16px;
}
.skel-page .skel-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}
.skel-page .skel-tiles .skel {
  height: 96px;
  border-radius: var(--radius-l);
}
.skel-page .skel-card {
  display: grid;
  gap: 10px;
  padding: 18px;
  border-radius: var(--radius-l);
  background: var(--card);
  box-shadow: var(--shadow);
}
.skel-page .skel-card .skel.w60 {
  width: 60%;
}
.skel-page .skel-card .skel.w40 {
  width: 40%;
}

/* ======================================================================
   Interface polish, batch 2 (owner, 13 November 2026). Theme colours only.
   ====================================================================== */
/* Row "More" menu */
.row-more {
  min-width: 34px;
  padding-left: 6px;
  padding-right: 6px;
}
.row-more svg {
  stroke-width: 3;
}
.row-menu {
  position: fixed;
  z-index: 60;
  min-width: 220px;
  max-width: min(320px, calc(100vw - 16px));
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: var(--card);
  color: var(--ink);
  border-radius: 12px;
  box-shadow:
    0 12px 32px -8px rgba(4, 29, 74, 0.28),
    0 1px 2px rgba(4, 29, 74, 0.08);
}
.row-menu[hidden] {
  display: none;
}
.row-menu .row-menu-item {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  width: 100%;
  min-height: 38px;
  padding: 8px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  font-weight: 500;
  text-align: left;
  text-decoration: none;
  box-shadow: none;
}
.row-menu .row-menu-item:hover,
.row-menu .row-menu-item:focus-visible {
  background: var(--blue-50);
  outline: none;
}
.row-menu .row-menu-item.danger {
  color: var(--red);
}
.row-menu-sep {
  height: 1px;
  margin: 4px 6px;
  background: var(--line);
}
@media screen and (max-width: 600px) {
  .row-menu .row-menu-item {
    min-height: 44px;
  }
}

/* Breadcrumb trail */
.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.crumbs li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-2);
}
.crumbs li + li::before {
  content: "›";
  color: var(--ink-3);
}
.crumbs [aria-current="page"] {
  color: var(--ink);
  font-weight: 600;
  max-width: 40ch;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
@media screen and (max-width: 600px) {
  .crumbs [aria-current="page"] {
    max-width: 22ch;
  }
}

/* Notifications: what each item is about, under Today / Yesterday / Earlier */
.note-item .note-kind {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-3);
}

/* What's due, under To do on the payroll dashboard */
.due-block {
  display: grid;
  gap: 8px;
  padding: 12px 16px 14px;
  border-top: 1px solid var(--line);
}
.due-h {
  margin: 0;
  font-size: 13px;
  color: var(--ink-2);
}
.due-list {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.due-item {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 6px;
  border-radius: 10px;
  color: inherit;
  text-decoration: none;
  background: var(--surface);
}
.due-item:hover {
  background: var(--blue-50);
}
.due-date {
  display: grid;
  justify-items: center;
  padding: 4px 0;
  border-radius: 8px;
  background: var(--card);
  line-height: 1.1;
}
.due-mon {
  font-size: 10px;
  font-weight: 700;
  color: var(--blue);
}
.due-text {
  display: grid;
  gap: 1px;
  min-width: 0;
}
.due-text strong {
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.due-all {
  justify-self: start;
}

/* ======================================================================
   Fixes and premium tables (owner, 13 November 2026, 10:12 am).
   ====================================================================== */
/* er1: in dark mode a solid red button drew its label in the same red,
   so "Discard changes" looked blank. Dark text on the light red keeps it
   readable (contrast over 7:1). */
html[data-theme="dark"] .btn.danger.solid {
  background: var(--red);
  border-color: var(--red);
  color: #1a0606;
}
html[data-theme="dark"] .btn.danger.solid:hover {
  background: color-mix(in srgb, var(--red) 88%, #ffffff);
  border-color: color-mix(in srgb, var(--red) 88%, #ffffff);
}

/* Premium tables, as in the approved sample: small capitals headings on
   the card colour, roomier rows, a soft blue row hover, the name in bold,
   the search icon inside the box and a square ⋯ button. Simple and
   advanced tables match. Every look and theme (theme colours only). */
html[data-look] table.t th,
html[data-look] .dg-table thead th {
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--ink-3);
  background: var(--card);
  border-bottom: 1px solid var(--line);
}
html[data-look] table.t th {
  padding-top: 12px;
  padding-bottom: 12px;
}
html[data-look] table.t td {
  padding-top: 14px;
  padding-bottom: 14px;
  border-bottom-color: var(--line);
}
html[data-look] table.t tbody tr:hover td,
html[data-look] table.t tbody tr.clickable:hover td,
html[data-look] .dg-table tbody tr.dg-row:hover td {
  background: color-mix(in srgb, var(--blue-50) 60%, var(--card));
}
html[data-look] table.t td:first-child .cell-main,
html[data-look] table.t td:first-child > strong {
  font-weight: 650;
  color: var(--ink);
}
html[data-look] table.t tfoot td {
  background: var(--card);
  font-weight: 650;
}
html[data-density="compact"] table.t td {
  padding-top: 8px;
  padding-bottom: 8px;
}

/* Toolbar: the search box carries its icon; the count sits quietly. */
.t-tools {
  padding: 14px 18px;
}
.tt-left {
  position: relative;
}
.tt-left > svg {
  position: absolute;
  left: 11px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: var(--ink-3);
  pointer-events: none;
  z-index: 1;
}
.tt-left > .input,
.tt-left > input[type="search"] {
  padding-left: 34px;
}
.tt-count {
  color: var(--ink-3);
}

/* Row actions: the main one as a quiet link-style button, ⋯ as a square. */
table.t td.t-action .btn.sm:not(.primary):not(.danger):not(.row-more),
.dg-table td .btn.sm.ghost {
  border-color: transparent;
  background: transparent;
  color: var(--blue);
}
table.t td.t-action .btn.sm:not(.primary):not(.danger):not(.row-more):hover {
  background: var(--blue-50);
}
.row-more.btn.sm {
  width: 34px;
  min-width: 34px;
  height: 32px;
  padding: 0;
  border: 1px solid var(--line-2);
  background: var(--white-ui, #fff);
  color: var(--ink);
}
html[data-theme="dark"] .row-more.btn.sm {
  background: var(--card);
}
.row-more.btn.sm[aria-expanded="true"] {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px var(--blue-100);
}
@media screen and (max-width: 600px) {
  .row-more.btn.sm {
    width: 44px;
    height: 44px;
  }
}

/* ======================================================================
   Use the space well (owner, 13 November 2026, 10:28 am): content fills
   wide screens neatly instead of leaving empty areas. Theme colours only.
   ====================================================================== */
/* Row details panels follow the table's visible width. */
.dg-detail {
  width: var(--dg-w, 100%);
}
.dg-detail-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 14px;
}
.dg-block {
  padding: 12px 14px;
}

/* Label and value lists: pairs flow into columns on wide cards. */
.dl.dl-flow {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: 0 32px;
}
.dl-flow > .dl-pair {
  display: grid;
  grid-template-columns: minmax(110px, 42%) minmax(0, 1fr);
  align-items: baseline;
  gap: 0 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  min-width: 0;
}
.dl-flow > .dl-pair dt {
  margin: 0;
}
@media screen and (max-width: 600px) {
  .dl-flow > .dl-pair {
    grid-template-columns: minmax(100px, 40%) minmax(0, 1fr);
  }
}

/* Forms on full pages use the width: three or four columns on a wide
   screen. Side panels (drawers) and phones keep their layout. */
@media screen and (min-width: 861px) {
  .main .form-grid:not(.cols-3) {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  }
}
/* A single field on its own in a wide card doesn't stretch edge to edge. */
.main .card-body > .field,
.main .stack > .field {
  max-width: 640px;
}

/* Automatic pay runs: one tile per pay calendar, side by side. */
.auto-runs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
  gap: 12px;
}
.auto-runs > .auto-run {
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--radius);
  background: var(--surface);
}
.auto-runs > p {
  grid-column: 1 / -1;
  margin: 0;
}

/* Details panels stretch to the full width (13 November 2026). The rule
   above keeps badges at their own width in ordinary cells; it mustn't
   shrink a whole details panel to its content. */
.dg-table .dg-detail-row td .stack {
  justify-items: stretch;
  align-items: stretch;
}
.dg-table .dg-detail-row td .stack > .badge,
.dg-table .dg-detail-row td .stack > .btn,
.dg-table .dg-detail-row td .stack > a.btn {
  justify-self: start;
}

/* Advanced table search: the icon sits inside the box, as in simple tables. */
.dg-search-wrap {
  position: relative;
}
.dg-search-wrap > svg {
  position: absolute;
  left: 11px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: var(--ink-3);
  pointer-events: none;
  z-index: 1;
}
.dg-search-wrap > .dg-search {
  padding-left: 34px;
}

/* ======================================================================
   Visual pass before go-live (owner, 13 November 2026, 11:04 am).
   Theme colours only. Each block names the screen it was found on.
   ====================================================================== */
/* All tab strips: no stray scrollbar arrows when the strip is a pixel
   taller than its box (employee record, Time and leave). */
.tabs {
  overflow-y: hidden;
  scrollbar-width: thin;
}

/* One-screen dashboards: a card that scrolls inside fades at the bottom
   until you reach the end, with a slim scrollbar. */
.card-body.is-scrollable {
  scrollbar-width: thin;
  -webkit-mask-image: linear-gradient(
    to bottom,
    #000 calc(100% - 26px),
    transparent
  );
  mask-image: linear-gradient(to bottom, #000 calc(100% - 26px), transparent);
}
.card-body.is-scrollable.at-end {
  -webkit-mask-image: none;
  mask-image: none;
}
.card-body.is-scrollable::-webkit-scrollbar {
  width: 6px;
}
.card-body.is-scrollable::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: var(--line-2);
}

/* Pay run hours table: a salaried person's period pay sits neatly in the
   cell, no box inside the table. */
.salary-cell {
  gap: 6px;
  min-width: 200px;
  max-width: 340px;
}
.salary-cell > .field {
  display: grid;
  gap: 4px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-3);
}
.salary-cell .input.num {
  max-width: 160px;
  text-align: right;
}

/* Rosters: days without shifts side by side; a day with shifts gets the
   full width for its table. Days stay in order. */
.roster-week {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 170px), 1fr));
  gap: 12px;
}
.roster-week > .roster-day.has-shifts {
  grid-column: 1 / -1;
}
.roster-week > .roster-day.is-empty .card-head {
  padding-bottom: 4px;
}
.roster-week > .roster-day.is-empty .roster-empty {
  margin: 0;
  padding: 0 16px 14px;
}

/* Pay run hours table: the salary cell lines up on the right like the
   other figures in that column. */
.salary-cell {
  margin-left: auto;
  justify-items: end;
  text-align: right;
}
.salary-cell > .field {
  justify-items: end;
}

/* Phones (found at 375 px). An older rule for the new look set buttons to
   40 px and outranked the 44 px tap size; chips, tabs and the top bar were
   30–36 px. Everything you tap is now at least 44 px. */
@media screen and (max-width: 600px) {
  html[data-look] .btn,
  html[data-look] .btn.sm,
  .btn,
  .btn.sm,
  .dg-chip,
  .chip,
  .tabs [role="tab"],
  .topbar .t-search,
  .topbar .t-bell,
  .topbar .mobile-nav-btn,
  .topbar .t-account-btn {
    min-height: 44px;
  }
  .topbar .t-search,
  .topbar .t-bell,
  .topbar .mobile-nav-btn {
    min-width: 44px;
  }
  input[type="checkbox"].row-check {
    width: 22px;
    height: 22px;
  }

  /* Page header buttons: a tidy two-column grid, the main action first
     and full width, instead of uneven wrapped rows. */
  .page-head {
    flex-wrap: wrap;
  }
  .page-head > .actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
  }
  .page-head > .actions > .btn,
  .page-head > .actions > a.btn {
    width: 100%;
    justify-content: center;
  }
  .page-head > .actions > .btn.primary {
    grid-column: 1 / -1;
    order: -1;
  }
  .page-head > .actions > :only-child {
    grid-column: 1 / -1;
  }

  /* Summary tiles: an odd last tile spans the row instead of sitting alone
     at half width. */
  .po-tiles > :last-child:nth-child(odd),
  .kpi-grid > :last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }

  /* Filter chips stay on one line that swipes sideways. */
  .dg-chips,
  .chips {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .dg-chips::-webkit-scrollbar,
  .chips::-webkit-scrollbar {
    display: none;
  }
  .dg-chips > *,
  .chips > * {
    flex: none;
  }
}

/* Phones, second look: the odd summary strip tile, the last plain header
   button before the main one, long button labels and the table toolbar. */
@media screen and (max-width: 600px) {
  .sum-strip > :last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }
  .page-head > .actions > :nth-last-child(2):nth-child(odd):not(.primary) {
    grid-column: 1 / -1;
  }
  .page-head > .actions > .btn,
  .page-head > .actions > a.btn {
    white-space: normal;
    text-align: center;
    line-height: 1.25;
  }
  .t-tools .tt-right,
  .t-host > .t-tools .tt-right {
    width: 100%;
    justify-content: space-between;
    flex-wrap: wrap;
  }
  .t-tools .tt-left {
    max-width: none;
  }
}

/* Widget rows (employee home and others): the cards share the full width
   evenly and line up at the same height, instead of fixed 360 px cards
   leaving an empty gap on the right. */
.widgets {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 16px;
  align-items: stretch;
}
.widgets > .card,
.widgets > section {
  width: auto;
  flex: none;
}

/* Phone: small chart labels (pay ring, bar chart) stay readable. */
@media (max-width: 600px) {
  .rg-small,
  .bc-v,
  .bc-l {
    font-size: 12px;
  }
}

/* Phone: page tabs (Month / List, report tabs) meet the 44 px touch size. */
@media (max-width: 600px) {
  .page-tabs [role="tab"] {
    min-height: 44px;
  }
}

/* Administrator screens (visual pass, 13 November 2026). */
/* Quiet row actions in tables: no drop shadow, so they read as links. */
table.t td.t-action .btn.sm:not(.primary):not(.danger):not(.row-more),
.dg-table td .btn.sm.ghost {
  box-shadow: none;
}
/* Plan and add-ons: the short add-on descriptions are shown in full. */
.addon-desc {
  display: block;
  -webkit-line-clamp: unset;
  line-clamp: unset;
  overflow: visible;
}
/* Summary strips (Billing, Record keeping and others) match the KPI tiles:
   a coloured top edge, small-capitals label and a larger figure. */
.sp-glance-item {
  padding: 14px 16px 12px;
  border-top: 3px solid var(--blue);
}
.sp-glance-item.ok {
  border-top-color: var(--green, #15803d);
}
.sp-glance-item.warn {
  border-top-color: var(--amber);
}
.sp-glance-item.bad {
  border-top-color: var(--red);
}
.sp-glance-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.sp-glance-value {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.015em;
}

/* Phone: side menus (Company settings, Team and access, Plan and add-ons),
   table row expand buttons and Billing's Copy buttons are easy to tap. */
@media (max-width: 600px) {
  .settings-nav button,
  .count-nav button,
  .team-nav button {
    min-height: 44px;
  }
  .dg-table .dg-toggle {
    min-width: 40px;
    min-height: 40px;
  }
  .bill-copy {
    min-height: 36px;
    padding-inline: 10px;
  }
}

/* Dashboard cards a few pixels too tall: no scrollbar (set by ui.js). */
html[data-look] .co-dense .co-cell .card-body.no-bar,
html[data-look] .card-body.no-bar,
.card-body.no-bar {
  overflow-y: hidden;
}
/* Cards that do scroll: a thin scrollbar beside the fade. */
.card-body.is-scrollable {
  scrollbar-width: thin;
}

/* Summary strips (pay runs, payslips, leave and others) match the KPI tiles:
   a coloured top edge and a small-capitals label (visual pass, 13 Nov). */
.sum-strip .ss-item {
  border-top: 3px solid var(--blue);
}
.sum-strip .ss-item.amber {
  border-top-color: var(--amber);
}
.sum-strip .ss-item.red {
  border-top-color: var(--red);
}
.sum-strip .ss-item.green {
  border-top-color: var(--green);
}
.sum-strip .ss-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.rf-strip .sum-strip .ss-item {
  border-top: 1px solid var(--line);
}

/* A tick beside a line of text keeps the text on the same line, wrapping
   beside the tick, on narrow screens too. */
.row > .plan-tick {
  flex: none;
}
.row > .plan-tick + span {
  flex: 1 1 0;
  min-width: 0;
}

/* NZ dates in every date box (owner, 13 November 2026): the person types
   day/month/year in a text box with a calendar button; the real date box
   sits invisibly underneath (see ui.js, upgradeDateInput). */
.nzd {
  position: relative;
  display: inline-block;
  min-width: 150px;
  max-width: 100%;
  vertical-align: middle;
}
.field .nzd,
.input-unit .nzd {
  display: block;
  width: 100%;
}
.nzd > .nzd-text {
  width: 100%;
  padding-right: 42px;
  font-variant-numeric: tabular-nums;
}
.nzd > .nzd-pick {
  position: absolute;
  top: 50%;
  right: 6px;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  min-height: 0;
  padding: 0;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ink-3);
  cursor: pointer;
}
.nzd > .nzd-pick:hover:not(:disabled) {
  background: var(--blue-50);
  color: var(--blue);
}
.nzd > .nzd-pick:disabled {
  opacity: 0.4;
  cursor: default;
}
.nzd > .nzd-pick svg {
  width: 17px;
  height: 17px;
}
html[data-theme="dark"] .nzd > .nzd-pick:hover:not(:disabled) {
  background: var(--surface);
}
/* The real date box: invisible, behind the calendar button, so the
   browser's picker opens beside the field. */
html[data-look] .nzd > input.nzd-native,
.nzd > input.nzd-native {
  position: absolute;
  right: 6px;
  bottom: 0;
  width: 30px;
  height: 100%;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  opacity: 0;
  pointer-events: none;
}

/* Platform administration (visual pass, 13 November 2026). */
/* Needs attention: every flag shows; a second flag wraps instead of being
   cut off. */
.po-flags,
.po-attention .po-att-row .po-flags {
  flex-wrap: wrap;
  row-gap: 4px;
  overflow: visible;
  mask-image: none;
}
/* Platform status tiles: the note under the figure wraps to two lines. */
.po-tile-sub {
  white-space: normal;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
}
/* Plans and billing: "Change" sits beside the plan name as a quiet link,
   like other row actions. */
.plan-cell {
  justify-content: flex-start;
  gap: 12px;
}
.plan-cell .btn.sm:not(.primary) {
  border-color: transparent;
  background: transparent;
  box-shadow: none;
  color: var(--blue);
}
.plan-cell .btn.sm:not(.primary):hover {
  background: var(--blue-50);
}
html[data-theme="dark"] .plan-cell .btn.sm:not(.primary):hover {
  background: var(--surface);
}
/* Empty states inside small dashboard cards use less padding, so the card
   doesn't scroll just to show the message. */
.po-cell .card-body > .empty,
.co-cell .card-body > .empty {
  padding: 8px 12px;
}

/* Demo version (16 November 2026): a small badge, only on the demo site
   (added to the page by the server in demo mode). */
.apps-pay-demo-badge {
  position: fixed;
  left: 12px;
  bottom: 12px;
  z-index: 10000;
  max-width: min(420px, calc(100vw - 24px));
  padding: 6px 12px;
  border-radius: 999px;
  background: #a85a06;
  color: #fff;
  font:
    600 12px/1.35 "Inter",
    "Segoe UI",
    system-ui,
    sans-serif;
  box-shadow: 0 4px 14px rgba(4, 29, 74, 0.25);
  pointer-events: none;
}
@media print {
  .apps-pay-demo-badge {
    display: none;
  }
}
