html { box-sizing: border-box; }
.desk-shell, .desk-shell * { box-sizing: border-box; }
body.desk-shell {
  --desk-navy: #0a1f3d;
  --desk-blue: #0a6bc4;
  --desk-ink: #142033;
  --desk-muted: #5c6b7c;
  --desk-soft: #f3f6fb;
  --desk-card: #fff;
  --desk-bd: #d7e1ec;
  --desk-bd-soft: #e4ebf3;
  --desk-radius: 10px;
  --desk-shadow: 0 1px 2px rgba(10, 31, 61, 0.06);
  margin: 0;
  background: var(--desk-soft);
  color: var(--desk-ink);
  font-family: "Segoe UI", Arial, sans-serif;
  overflow: hidden;
}
.desk-shell img { max-width: 100%; height: auto; display: block; }
.desk-nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--desk-bd);
  border-radius: 10px;
  background: #fff;
  color: var(--desk-navy);
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex: none;
}
.desk-nav-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 45;
  background: rgba(7, 24, 39, 0.45);
}
.desk-top {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 72px;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 1.25rem 0 1rem;
  background: #fff;
  border-bottom: 1px solid #d7e1ec;
}
.desk-logo { display: flex; align-items: center; width: 168px; }
.desk-logo img { width: 168px; height: auto; }
.desk-top-actions { display: flex; align-items: center; gap: 0.85rem; color: #142033; font-size: 0.92rem; white-space: nowrap; }
.desk-top .btn { background: #0a1f3d; color: #fff; border-radius: 999px; padding: 0.45rem 0.95rem; text-decoration: none; font-weight: 650; }
.desk-side {
  position: fixed;
  top: 72px;
  left: 0;
  width: 200px;
  height: calc(100vh - 72px);
  overflow: auto;
  background: #0a1f3d;
  color: #e7f1fb;
  padding: 0.85rem 0.55rem;
  z-index: 30;
}
.desk-main {
  position: fixed;
  top: 72px;
  left: 200px;
  right: 0;
  bottom: 0;
  margin: 0;
  overflow: auto;
  padding: 0.85rem 1.15rem 1.25rem;
  min-width: 0;
}
.login-card {
  width: min(440px, 100%);
  margin: 0 auto 2rem;
  box-shadow: 0 10px 30px rgba(10, 31, 61, 0.08);
}
.desk-side nav { display: flex; flex-direction: column; gap: 0.15rem; }
.desk-side .nav-group {
  margin: 0.7rem 0 0.2rem;
  padding: 0 0.55rem;
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #7f97b3;
  font-weight: 700;
}
.desk-side .nav-group:first-child { margin-top: 0.15rem; }
.desk-side nav a {
  color: #e7f1fb;
  text-decoration: none;
  padding: 0.4rem 0.55rem;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.84rem;
}
.desk-side nav a i {
  width: 1.1rem;
  text-align: center;
  opacity: 0.85;
  font-size: 0.88rem;
}
.desk-side nav a:hover,
.desk-side nav a.is-on { background: rgba(255,255,255,0.1); }
.desk-side nav a.is-on { font-weight: 650; }
.desk-main h1, .login-card h1 { margin: 0 0 0.2rem; font-size: 1.35rem; color: var(--desk-navy); letter-spacing: -0.01em; }
.desk-main h2 { margin: 0 0 0.45rem; font-size: 0.95rem; color: var(--desk-navy); }
.desk-main .lead, .login-card .lead { color: var(--desk-muted); margin: 0 0 0.75rem; font-size: 0.9rem; }
.page-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}
.page-head > div:first-child { min-width: 0; flex: 1; }
.page-head h1 { margin-bottom: 0.25rem; }
.page-head .lead { margin-bottom: 0; max-width: 52rem; }
.page-head .desk-actions { margin: 0; }
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
  background: var(--desk-card);
  border: 1px solid var(--desk-bd);
  border-radius: 14px;
  padding: 0.65rem 0.85rem;
  margin-bottom: 0.95rem;
  box-shadow: var(--desk-shadow);
}
.filter-bar a,
.filter-bar .chip {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  background: #e8eef6;
  color: var(--desk-navy);
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 650;
}
.filter-bar a.is-on,
.filter-bar .chip.is-on {
  background: var(--desk-navy);
  color: #fff;
}
.empty-state {
  text-align: center;
  padding: 1.6rem 1rem;
  color: var(--desk-muted);
}
.desk-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 0.9rem; margin-top: 1rem; }
.desk-grid:first-of-type { margin-top: 0; }
.desk-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.desk-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.desk-grid-compact { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; }
.desk-card-compact { min-height: 0; }
.desk-card-compact .compact-list,
.compact-list { margin: 0; padding-left: 1.1rem; }
.compact-list li { margin: 0.25rem 0; }
.client-contacts-card { margin-top: 0; }
.client-contact-row {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.65rem 0.75rem;
  align-items: end;
  margin-bottom: 0.85rem;
}
.client-contact-row .field { margin: 0; }
.client-contact-row .field label { display: block; margin-bottom: 0.3rem; font-size: 0.82rem; }
.client-contact-row input,
.client-contact-row select { width: 100%; }
.client-contact-actions .desk-actions { margin: 0; }
.client-receipt-row { display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center; margin-top: 0.35rem; }
.form-grid .span-2 { grid-column: span 2; }
@media (max-width: 1100px) {
  .desk-grid-3,
  .desk-grid-compact { grid-template-columns: 1fr 1fr; }
  .client-contact-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .desk-grid-2,
  .desk-grid-3,
  .desk-grid-compact { grid-template-columns: 1fr; }
  .client-contact-row { grid-template-columns: 1fr; }
  .form-grid .span-2 { grid-column: auto; }
}
.kpi-row + .desk-grid,
.hire-strip + .desk-grid,
h2 + .desk-grid { margin-top: 0.35rem; }
.desk-card {
  background: var(--desk-card);
  border: 1px solid var(--desk-bd);
  border-radius: var(--desk-radius);
  padding: 0.7rem 0.85rem 0.8rem;
  margin-bottom: 0.7rem;
  box-shadow: var(--desk-shadow);
}
.desk-card ul { margin: 0; padding-left: 1.1rem; }
.desk-card li { margin: 0.2rem 0; display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem 0.55rem; }
.desk-card .legal-body p { margin: 0.45rem 0; line-height: 1.6; }
.desk-card .legal-body ul,
.desk-card .legal-body ol { margin: 0.45rem 0; padding-left: 1.35rem; }
.desk-card .legal-body li { display: list-item; margin: 0.25rem 0; line-height: 1.55; }
.desk-card li .desk-actions { margin-top: 0; }
.table-scroll { overflow: auto; padding: 0; position: relative; }
.desk-card.table-scroll { padding: 0; }
.desk-card.table-scroll > h2,
.desk-card.table-scroll > .table-card-head {
  padding: 1rem 1.1rem 0.75rem;
  margin: 0;
}
.desk-table { width: 100%; border-collapse: collapse; min-width: 720px; }
.desk-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  box-shadow: inset 0 -1px 0 var(--desk-bd-soft);
}
.desk-main .desk-table input,
.desk-main .desk-table select,
.desk-main .desk-table textarea,
.desk-main .add-row input,
.desk-main .add-row select {
  width: 100%;
  max-width: none;
  min-width: 0;
  min-height: 34px;
  border-radius: 8px;
}
.desk-main .desk-table textarea { min-height: 2.2rem; height: 2.2rem; resize: vertical; }
.desk-card.table-scroll > .desk-table th:first-child,
.desk-card.table-scroll > .desk-table td:first-child { padding-left: 1rem; }
.desk-card.table-scroll > .desk-table th:last-child,
.desk-card.table-scroll > .desk-table td:last-child { padding-right: 1rem; }
.desk-table th,
.desk-table td {
  text-align: left;
  padding: 0.42rem 0.65rem;
  border-bottom: 1px solid #e4ebf3;
  vertical-align: middle;
}
.desk-table th {
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #5c6b7c;
  background: #f6f9fc;
  white-space: nowrap;
}
.desk-table tbody tr:hover { background: #f8fbfe; }
.desk-table .num { text-align: right; white-space: nowrap; }
.desk-table input,
.desk-table select,
.desk-table textarea {
  width: 100%;
  max-width: none;
  min-height: 34px;
  border-radius: 8px;
}
.desk-table textarea { min-height: 2.2rem; height: 2.2rem; resize: vertical; }
.desk-main a { color: #0a6bc4; }
.desk-main label, .login-card label { display: block; margin: 0.7rem 0 0.28rem; font-size: 0.84rem; font-weight: 650; color: #142033; }
.desk-main input,
.desk-main textarea,
.desk-main select,
.login-card input {
  width: 100%;
  max-width: 36rem;
  border: 1px solid #c5d3e2;
  border-radius: 10px;
  padding: 0.5rem 0.7rem;
  font: inherit;
  background: #fff;
  color: #142033;
}
.desk-main textarea { min-height: 5rem; }
.desk-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; margin-top: 0.75rem; }
.desk-main button,
.desk-main .btn,
.login-card button {
  border: 0;
  background: #0a6bc4;
  color: #fff;
  border-radius: 999px;
  padding: 0.48rem 0.95rem;
  font: inherit;
  font-weight: 650;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}
.desk-main button.quiet,
.desk-main .btn.quiet { background: #e8eef6; color: #0a1f3d; }
.login-card button.pwd-eye,
.desk-main button.pwd-eye {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 8px;
  background: transparent;
  color: #46607f;
  line-height: 36px;
}
.pill { display: inline-block; border-radius: 999px; padding: 0.12rem 0.55rem; background: #e7f2fc; color: #0a1f3d; font-size: 0.8rem; }
.status-pill {
  display: inline-block;
  border-radius: 999px;
  padding: 0.22rem 0.7rem;
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
  background: #e8eef6;
  color: #0a1f3d;
}
.status-pill.st-applied { background: #e8eef6; color: #334155; }
.status-pill.st-reviewed { background: #e0f2fe; color: #075985; }
.status-pill.st-shortlisted { background: #fef3c7; color: #92400e; }
.status-pill.st-interview { background: #ede9fe; color: #5b21b6; }
.status-pill.st-interview-done { background: #e0e7ff; color: #3730a3; }
.status-pill.st-selected { background: #dcfce7; color: #166534; }
.status-pill.st-rejected { background: #fee2e2; color: #991b1b; }
.status-pill.st-hired { background: #0a1f3d; color: #fff; }
.app-timeline { list-style: none; margin: 0; padding: 0; }
.app-timeline li {
  display: grid;
  grid-template-columns: 140px 90px 1fr auto;
  gap: 0.55rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid #e8eef6;
  font-size: 0.9rem;
  align-items: start;
}
.app-timeline .when { color: #5c6b7c; }
.app-timeline .kind { font-weight: 700; color: #0a6bc4; }
.app-timeline .actor { color: #5c6b7c; font-size: 0.8rem; }
.desk-main button.danger { background: #9b1c1c; color: #fff; }
.desk-main button:disabled,
.desk-main button[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
}
.hire-pipeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.hire-pipeline li {
  background: #e8eef6;
  color: #5c6b7c;
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 650;
}
.hire-pipeline li.is-done { background: #dcfce7; color: #166534; }
.hire-pipeline li.is-current { background: #0a1f3d; color: #fff; }
.hire-pipeline li.is-rejected { background: #fee2e2; color: #991b1b; }
.hire-actions { margin-top: 0.85rem; }
.form-error { color: #9b1c1c; background: #fde8e8; border-radius: 10px; padding: 0.55rem 0.7rem; }
.form-ok { color: #0f6b3a; background: #e5f6ec; border-radius: 10px; padding: 0.55rem 0.7rem; }
.kpi-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.65rem; margin-bottom: 0.75rem; }
.kpi-row-hire { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.kpi-row-funnel { grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); }
.kpi {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: #fff;
  border: 1px solid #d7e1ec;
  border-radius: 10px;
  padding: 0.7rem 0.8rem;
  text-decoration: none;
  color: #142033;
}
a.kpi:hover { border-color: #b8cce0; }
.kpi-icon {
  width: 2rem;
  height: 2rem;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  font-size: 0.85rem;
  background: #e8eef6;
  color: #0a1f3d;
}
.kpi-clients .kpi-icon { background: #e8f1fb; color: #0a6bc4; }
.kpi-quotes .kpi-icon { background: #eef0ff; color: #3b4db8; }
.kpi-unpaid .kpi-icon { background: #fff1e8; color: #c05600; }
.kpi-paid .kpi-icon { background: #e8f7ee; color: #0f6b3a; }
.kpi-body { min-width: 0; flex: 1; }
.kpi-label, .kpi span.kpi-label {
  display: block;
  color: #5c6b7c;
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.02em;
}
.kpi strong { display: block; margin-top: 0.1rem; font-size: 1.35rem; line-height: 1.1; color: #0a1f3d; }
.kpi em { font-style: normal; color: #0a6bc4; font-size: 0.88rem; font-weight: 600; }
.kpi-mini {
  display: block;
  padding: 0.85rem 0.9rem;
}
.kpi-mini .kpi-label { margin-bottom: 0.15rem; }
.kpi-mini strong { font-size: 1.35rem; }
.hire-strip { margin-bottom: 1.1rem; }
.hire-strip-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}
.hire-strip-head h2 { margin: 0; }
.form-panel { margin-bottom: 1rem; }
.form-grid {
  display: grid;
  gap: 0.85rem 1rem;
  align-items: end;
}
.form-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.form-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.form-grid-5 { grid-template-columns: 1fr 1fr 1.4fr auto auto; }
.form-grid .field { min-width: 0; display: flex; flex-direction: column; gap: 0.35rem; }
.form-grid .field label {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 650;
  color: #3e4c5c;
}
.form-grid .field input,
.form-grid .field select,
.form-grid .field textarea {
  width: 100%;
  min-height: 36px;
  border: 1px solid #c9d6e5;
  border-radius: 8px;
  padding: 0.4rem 0.65rem;
  background: #fff;
  font: inherit;
}
.form-grid .field textarea { min-height: 5rem; }
.form-grid .field-span { grid-column: 1 / -1; }
.form-grid .field-action button,
.form-grid .field-action .btn {
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}
.form-grid .field-check .check { min-height: 42px; }
.staff-list-head,
.staff-row-grid {
  display: grid;
  grid-template-columns: minmax(180px, 1.4fr) minmax(120px, 0.9fr) minmax(160px, 1.1fr) 110px 90px;
  gap: 0.75rem;
  align-items: center;
}
.staff-list-head {
  padding: 0 0.15rem 0.55rem;
  margin-bottom: 0.35rem;
  border-bottom: 1px solid #e4ebf3;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #5c6b7c;
  font-weight: 700;
}
.staff-row-grid {
  padding: 0.7rem 0.15rem;
  border-bottom: 1px solid #eef2f7;
  margin: 0;
}
.staff-row-grid:last-child { border-bottom: 0; }
.staff-email { font-weight: 650; color: #0a1f3d; word-break: break-all; }
.staff-save { display: flex; justify-content: flex-end; }
.staff-row-grid select {
  width: 100%;
  min-height: 40px;
  border: 1px solid #c9d6e5;
  border-radius: 10px;
  padding: 0.45rem 0.6rem;
  background: #fff;
  font: inherit;
}
.perm-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.55rem;
}
.perm-item {
  margin: 0;
  padding: 0.65rem 0.75rem;
  border: 1px solid #d7e1ec;
  border-radius: 12px;
  background: #f8fbfe;
}
.tag-muted {
  display: inline-block;
  margin-left: 0.35rem;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  background: #e8eef6;
  color: #5c6b7c;
  font-size: 0.72rem;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.service-card { text-decoration: none; color: inherit; display: block; }
.kicker { margin: 0 0 0.35rem; color: #0a6bc4; font-size: 0.75rem; letter-spacing: 0.05em; text-transform: uppercase; }
.stat-line { margin: 0.2rem 0; }
.check { display: flex; gap: 0.45rem; align-items: center; font-weight: 500; }
.check input { width: auto; }
.desk-main .desk-tabs,
.desk-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0 0 1rem;
  align-items: center;
}
.desk-main .desk-tabs a,
.desk-tabs a,
.desk-tabs button {
  background: #e8eef6 !important;
  color: #0a1f3d !important;
  border: 0;
  border-radius: 999px;
  padding: 0.5rem 1.05rem;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 650;
  cursor: pointer;
  text-decoration: none !important;
  display: inline-flex;
  align-items: center;
  line-height: 1.2;
  box-shadow: none;
}
.desk-main .desk-tabs a:hover,
.desk-tabs a:hover {
  background: #d7e4f4 !important;
}
.desk-main .desk-tabs a.is-on,
.desk-tabs a.is-on,
.desk-tabs button.is-on {
  background: #0a1f3d !important;
  color: #fff !important;
}
.desk-icon-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  flex-wrap: nowrap;
  white-space: nowrap;
}
.desk-icon-actions form { margin: 0; display: inline-flex; }
.desk-icon-actions .ia,
.desk-icon-actions button.ia {
  width: 32px;
  height: 32px;
  padding: 0;
  margin: 0;
  border: 0;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #e8eef6;
  color: #0a1f3d;
  font-size: 0.82rem;
  line-height: 1;
  cursor: pointer;
  text-decoration: none !important;
  flex: none;
}
.desk-icon-actions a.ia:hover,
.desk-icon-actions button.ia:hover { background: #d5e2f2; }
.desk-icon-actions .ia.view { color: #0a6bc4; }
.desk-icon-actions .ia.edit { color: #0a1f3d; }
.desk-icon-actions .ia.apps { color: #0a6bc4; }
.desk-icon-actions .ia.publish { background: #0a6bc4; color: #fff; }
.desk-icon-actions .ia.publish:hover { background: #085796; }
.desk-icon-actions .ia.close-job { background: #f0f3f8; color: #5c6b7c; }
.desk-icon-actions .ia.danger {
  background: #fde8e8;
  color: #9b1c1c;
}
.desk-icon-actions .ia.danger:hover { background: #f8cfcf; }
.desk-icon-actions .ia-sep {
  width: 1px;
  height: 22px;
  background: #d7e1ec;
  margin: 0 0.2rem;
  flex: none;
}
.desk-pager .pages { display: flex; flex-wrap: wrap; gap: 0.35rem; align-items: center; }
.desk-pager .pages a,
.desk-pager .pages span {
  min-width: 34px;
  height: 34px;
  padding: 0 0.55rem;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none !important;
  font-size: 0.86rem;
  font-weight: 650;
  background: #e8eef6;
  color: #0a1f3d !important;
}
.desk-pager .pages a:hover { background: #d5e2f2; }
.desk-pager .pages .is-on { background: #0a1f3d; color: #fff !important; }
.desk-pager .pages .is-disabled { opacity: 0.45; pointer-events: none; }
.tab-panel { display: none !important; }
.tab-panel.is-on { display: block !important; }
.holiday-add { margin-bottom: 0.4rem; }
.month-block { margin: 0 0 1.1rem; }
.month-block h2 { margin-bottom: 0.55rem; }
.holiday-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 0.75rem; }
.holiday-card {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 0.85rem;
  align-items: start;
  background: #fff;
  border: 1px solid #d7e1ec;
  border-radius: 16px;
  padding: 0.85rem 0.95rem;
}
.holiday-day {
  background: #0a1f3d;
  color: #fff;
  border-radius: 12px;
  text-align: center;
  padding: 0.55rem 0.2rem 0.45rem;
}
.holiday-day strong { display: block; font-size: 1.35rem; line-height: 1; }
.holiday-day span { display: block; margin-top: 0.2rem; font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; color: #9fd0f5; }
.holiday-card h3 { margin: 0 0 0.25rem; font-size: 1rem; color: #0a1f3d; }
.holiday-card p { margin: 0 0 0.4rem; color: #3e4c5c; }
.desk-main .desk-card input,
.desk-main .desk-card select,
.desk-main .desk-card textarea { max-width: none; }
.add-row {
  display: grid;
  grid-template-columns: minmax(140px, 0.9fr) minmax(160px, 1fr) minmax(200px, 1.4fr) auto;
  gap: 0.65rem 0.85rem;
  align-items: end;
}
.add-row .field { display: flex; flex-direction: column; gap: 0.28rem; min-width: 0; }
.add-row .field label { margin: 0; font-size: 0.78rem; font-weight: 650; color: #3e4c5c; }
.add-row .field input,
.add-row .field select,
.add-row .field button { width: 100%; max-width: none; min-height: 36px; }
.add-row .field-action button { width: auto; min-width: 5rem; border-radius: 8px; white-space: nowrap; }
.desk-card.table-scroll > form:first-of-type {
  padding: 0 1.1rem 0.9rem;
}
.desk-card.table-scroll > p.field-help {
  padding: 0 1.1rem 1rem;
  margin: 0;
}
#tab-services > form:first-of-type .add-row,
#tab-addons > form:first-of-type .add-row,
#tab-settings > form:first-of-type .add-row {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.6fr) minmax(0, 1.8fr) auto;
  margin: 0;
}
#tab-categories > form:first-of-type .add-row {
  grid-template-columns: minmax(0, 1.6fr) minmax(6rem, 0.5fr) auto;
  margin: 0;
}
#tab-rates > form:first-of-type .add-row {
  grid-template-columns: repeat(3, minmax(0, 1fr)) repeat(3, minmax(5.5rem, 0.65fr)) auto;
  margin: 0 0 0.55rem;
}
#tab-rates > form:first-of-type > .field {
  margin: 0;
}
#tab-settings > form:first-of-type .add-row .field:nth-child(1) { max-width: none; }
#tab-settings .desk-table + .save-bar,
#tab-settings form .save-bar {
  margin: 0.75rem 1.1rem 1rem;
}
.tab-panel > h2 { margin: 0 0 0.75rem; font-size: 1rem; }
.desk-table-edit td select { min-width: 0; }
.desk-table-edit td .kicker { display: block; margin-top: 0.25rem; }
#tab-categories .desk-table-edit td:first-child .add-row {
  grid-template-columns: minmax(10rem, 1.4fr) 5.5rem 5.5rem auto;
  margin: 0;
  gap: 0.45rem;
}
#tab-settings .desk-table {
  min-width: 640px;
  table-layout: fixed;
}
#tab-settings .desk-table th:nth-child(1),
#tab-settings .desk-table td:nth-child(1) { width: 22%; }
#tab-settings .desk-table th:nth-child(2),
#tab-settings .desk-table td:nth-child(2) { width: 42%; }
#tab-settings .desk-table th:nth-child(3),
#tab-settings .desk-table td:nth-child(3) { width: 36%; }
#tab-settings .desk-table td input {
  width: 100%;
  box-sizing: border-box;
}
#tab-settings .desk-table td:nth-child(3) {
  white-space: normal;
  word-break: break-word;
  color: #3e4c5c;
  font-size: 0.9rem;
  line-height: 1.35;
}
.save-bar {
  margin-top: 0.2rem;
  background: #fff;
  border: 1px solid #d7e1ec;
  border-radius: 14px;
  padding: 0.75rem 1rem;
  display: flex;
  justify-content: flex-end;
}
.pager,
.desk-pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.7rem;
  padding: 0.85rem 1rem 1rem;
  border-top: 1px solid var(--desk-bd-soft);
  background: #f8fbfe;
}
.pager span,
.desk-pager .meta { color: var(--desk-muted); font-size: 0.86rem; }
.pager .pager-actions { display: flex; gap: 0.45rem; align-items: center; }
.is-disabled { opacity: 0.45; pointer-events: none; }
@media (max-width: 1100px) {
  .kpi-row-hire { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .form-grid-4,
  .form-grid-5 { grid-template-columns: 1fr 1fr; }
  .staff-list-head { display: none; }
  .staff-row-grid { grid-template-columns: 1fr 1fr; }
  .staff-email { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .kpi-row { grid-template-columns: 1fr 1fr; }
  .add-row { grid-template-columns: 1fr; }
  .form-grid-2,
  .form-grid-3 { grid-template-columns: 1fr; }
}
@media (max-width: 800px) {
  body.desk-shell { overflow: auto; }
  .desk-nav-toggle { display: inline-flex; }
  .desk-welcome { display: none; }
  .desk-top { position: sticky; gap: 0.65rem; padding: 0 0.75rem; }
  .desk-logo { width: auto; flex: 1; min-width: 0; }
  .desk-logo img { width: min(148px, 46vw); }
  .desk-nav-backdrop { display: block; }
  body:not(.desk-nav-open) .desk-nav-backdrop { display: none; }
  .desk-side {
    position: fixed;
    top: 72px;
    left: 0;
    width: min(280px, 86vw);
    height: calc(100vh - 72px);
    z-index: 50;
    transform: translateX(-105%);
    transition: transform .2s ease;
    box-shadow: 8px 0 24px rgba(10, 31, 61, 0.18);
  }
  body.desk-nav-open .desk-side { transform: translateX(0); }
  .desk-main { position: static; left: 0; width: auto; padding: 0.85rem; }
  .desk-side nav { flex-direction: column; flex-wrap: nowrap; }
  .desk-side .nav-group { width: auto; }
  .kpi-row, .kpi-row-hire { grid-template-columns: 1fr; }
  .form-grid-2, .form-grid-3, .form-grid-4, .form-grid-5, .add-row { grid-template-columns: 1fr; }
  .pager { align-items: flex-start; }
  .desk-table { min-width: 0; }
  .table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .desk-card.table-scroll .desk-table,
  .table-scroll .desk-table { min-width: 640px; }
  .desk-stack-cards .desk-table thead { display: none; }
  .desk-stack-cards .desk-table,
  .desk-stack-cards .desk-table tbody,
  .desk-stack-cards .desk-table tr,
  .desk-stack-cards .desk-table td { display: block; width: 100%; }
  .desk-stack-cards .desk-table { min-width: 0; }
  .desk-stack-cards .desk-table tr {
    border: 1px solid var(--desk-bd);
    border-radius: 12px;
    background: #fff;
    margin: 0 0 0.75rem;
    padding: 0.65rem 0.75rem;
  }
  .desk-stack-cards .desk-table td {
    border: 0;
    padding: 0.28rem 0;
    text-align: left !important;
  }
  .desk-stack-cards .desk-table td::before {
    content: attr(data-label);
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--desk-muted);
    margin-bottom: 0.1rem;
  }
  .desk-stack-cards .desk-table td.col-action::before { display: none; }
  .desk-stack-cards .desk-table td.empty-state::before { display: none; }
  .app-timeline li {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }
  .desk-icon-actions { flex-wrap: wrap; white-space: normal; }
}
.crumbs ol { display: flex; flex-wrap: wrap; gap: 0.35rem; list-style: none; margin: 0 0 0.45rem; padding: 0; color: var(--desk-muted); font-size: 0.8rem; }
.crumbs li { display: flex; align-items: center; gap: 0.35rem; }
.crumbs li + li::before { content: "/"; color: #8aa0b8; }
.crumbs a { color: var(--desk-blue); text-decoration: none; }
.desk-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.desk-banner { border-radius: 12px; padding: 0.75rem 0.9rem; margin: 0 0 1rem; }
.desk-banner.is-error { background: #fde8e8; color: #7f1d1d; }
.desk-banner.is-ok { background: #e5f6ec; color: #14532d; }
.desk-banner ul { margin: 0.35rem 0 0; padding-left: 1.1rem; }
.field-help { margin: 0; color: var(--desk-muted); font-size: 0.78rem; line-height: 1.35; }
.field-error, .field-validation-error { color: #9b1c1c; font-size: 0.8rem; font-weight: 650; }
.field-validation-valid { display: none; }
.desk-main label.req::after { content: " *"; color: #b42318; font-weight: 700; }
form.filter-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 0.65rem 0.85rem;
}
form.filter-grid .field {
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
  min-width: 160px;
  flex: 1 1 180px;
  max-width: 280px;
}
form.filter-grid .field label { margin: 0; font-size: 0.78rem; font-weight: 650; color: #3e4c5c; }
form.filter-grid .field input,
form.filter-grid .field select { width: 100%; max-width: none; min-height: 36px; }
form.filter-grid .filter-actions {
  display: flex;
  gap: 0.4rem;
  align-items: center;
  flex: 0 0 auto;
  padding-bottom: 1px;
}
form.filter-grid .filter-actions .btn { width: auto; min-height: 36px; border-radius: 8px; }
form.filter-grid .filter-status {
  display: flex;
  gap: 0.35rem;
  align-items: center;
  margin-left: auto;
  flex: 0 0 auto;
  padding-bottom: 1px;
}
form.filter-grid .filter-status a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0.35rem 0.85rem;
  border-radius: 8px;
  border: 1px solid var(--desk-bd);
  background: #eef3f8;
  color: #0a6bc4;
  text-decoration: none;
  font-size: 0.84rem;
  font-weight: 650;
}
form.filter-grid .filter-status a.is-on {
  background: #0a1f3d;
  border-color: #0a1f3d;
  color: #fff;
}
.table-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding: 0.55rem 0.85rem;
  border-bottom: 1px solid var(--desk-bd-soft);
  background: #f8fbfe;
  font-size: 0.84rem;
  color: var(--desk-muted);
}
.table-toolbar .rows-select {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0;
  font-size: 0.8rem;
  font-weight: 650;
  color: #3e4c5c;
}
.table-toolbar .rows-select select {
  width: auto;
  min-width: 4.5rem;
  min-height: 32px;
  max-width: none;
  border-radius: 8px;
  padding: 0.25rem 0.45rem;
}
.col-sort { color: inherit; text-decoration: none; display: inline-flex; align-items: center; gap: 0.35rem; white-space: nowrap; }
.col-sort.is-on { color: #0a6bc4; }
.desk-table th,
.desk-table td { text-align: left; }
.desk-table th.num,
.desk-table td.num { text-align: right; white-space: nowrap; }
.desk-table td.nowrap { white-space: nowrap; }
.col-action { width: 2.5rem; text-align: right !important; }
.desk-table-edit th,
.desk-table-edit th.num { text-align: left; }
.desk-table-edit td.num input {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.desk-table-edit .col-unit { width: 6rem; max-width: 6rem; }
.desk-table-edit .col-package { width: 7rem; max-width: 7rem; }
.desk-table-edit .col-high,
.desk-table-edit .col-fixed { width: 6rem; max-width: 6rem; }
.desk-table-edit .col-amount { width: 7rem; max-width: 7rem; }
.desk-table-edit .col-bool {
  width: 5.5rem;
  max-width: 6rem;
  white-space: nowrap;
}
.desk-table-edit .col-bool select {
  width: 100%;
  min-width: 0;
}
.desk-table-addons { min-width: 480px; }
.desk-table-rates { min-width: 860px; }
.icon-btn { display: inline-flex; width: 1.8rem; height: 1.8rem; align-items: center; justify-content: center; border-radius: 8px; background: #e8eef6; color: #0a1f3d; }
.desk-main .desk-table .btn,
.desk-main .pager .btn,
.desk-main .table-toolbar .btn { border-radius: 8px; }
.pager { justify-content: flex-end; }
.pager-label { font-size: 0.8rem; color: var(--desk-muted); }
.work-row { padding: 0.45rem 0; }
.auto-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}
.auto-card {
  background: var(--desk-card);
  border: 1px solid var(--desk-bd);
  border-radius: 10px;
  padding: 1rem 1.05rem;
  box-shadow: var(--desk-shadow);
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  min-height: 0;
}
.auto-card h2 { margin: 0; font-size: 0.95rem; }
.auto-card .field-help { margin: 0; flex: 1 1 auto; }
.auto-card > form {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.55rem;
}
.auto-card .campaign-link {
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: #0a6bc4;
  font: inherit;
  font-weight: 650;
  font-size: 0.86rem;
  text-decoration: underline;
  cursor: pointer;
}
.auto-card a.campaign-link { display: inline-block; margin-top: 0.15rem; }
.desk-main .auto-card label.switch,
.auto-card label.switch {
  position: relative;
  display: inline-flex !important;
  align-items: center;
  width: auto;
  max-width: none;
  margin: 0 !important;
  padding: 0;
  cursor: pointer;
  user-select: none;
  font-weight: 700;
  color: inherit;
}
.desk-main .auto-card .switch-input,
.auto-card .switch-input,
.desk-main .auto-card label.switch input {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  max-width: 1px !important;
  margin: 0 !important;
  padding: 0 !important;
  opacity: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  appearance: none;
  -webkit-appearance: none;
}
.auto-card .switch-track,
.switch-track {
  display: block;
  width: 72px;
  height: 36px;
  border-radius: 999px;
  background: linear-gradient(180deg, #c5ccd4 0%, #aeb7c2 100%);
  position: relative;
  flex: none;
  box-shadow: inset 0 2px 4px rgba(10, 31, 61, 0.18), inset 0 0 0 1px rgba(10, 31, 61, 0.08);
  transition: background 0.18s ease;
}
.auto-card .switch-track::before,
.switch-track::before {
  content: "OFF";
  position: absolute;
  right: 9px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: rgba(70, 82, 96, 0.85);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.35);
  pointer-events: none;
}
.auto-card .switch-input:checked + .switch-track,
.auto-card label.switch input:checked + .switch-track,
.switch input:checked + .switch-track {
  background: linear-gradient(180deg, #3ecf6a 0%, #22b84f 100%);
  box-shadow: inset 0 2px 4px rgba(8, 80, 30, 0.22), inset 0 0 0 1px rgba(8, 80, 30, 0.12);
}
.auto-card .switch-input:checked + .switch-track::before,
.auto-card label.switch input:checked + .switch-track::before,
.switch input:checked + .switch-track::before {
  content: "ON";
  right: auto;
  left: 11px;
  color: rgba(8, 90, 35, 0.72);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.25);
}
.auto-card .switch-input:focus + .switch-track,
.switch input:focus + .switch-track { outline: 2px solid #22b84f; outline-offset: 2px; }
.auto-card .switch-track::after,
.switch-track::after {
  content: "";
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(180deg, #ffffff 0%, #f2f4f7 100%);
  position: absolute;
  top: 3px;
  left: 3px;
  box-shadow: 0 2px 5px rgba(10, 31, 61, 0.28), 0 0 0 1px rgba(10, 31, 61, 0.06);
  transition: left 0.18s ease;
}
.auto-card .switch-input:checked + .switch-track::after,
.auto-card label.switch input:checked + .switch-track::after,
.switch input:checked + .switch-track::after { left: 39px; }
.renewal-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.55rem;
  margin-bottom: 0.75rem;
}
.renewal-chip {
  display: block;
  background: #fff;
  border: 1px solid var(--desk-bd);
  border-radius: 10px;
  padding: 0.65rem 0.8rem;
  text-decoration: none;
  color: inherit;
}
.renewal-chip.is-on { border-color: #0a6bc4; box-shadow: inset 0 0 0 1px #0a6bc4; }
.renewal-chip span { display: block; font-size: 0.75rem; color: var(--desk-muted); font-weight: 650; }
.renewal-chip strong { display: block; margin-top: 0.15rem; font-size: 1.25rem; color: #0a1f3d; }
.work-group { margin-top: 0.75rem; }
.work-group:first-of-type { margin-top: 0.35rem; }
.work-group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin: 0 0 0.25rem;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #5c6b7c;
}
.screen-badges { display: flex; flex-wrap: wrap; gap: 0.3rem; }
.screen-badges .badge { background: #e8eef6; }
@media (max-width: 900px) {
  .auto-grid,
  .renewal-strip { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .auto-grid,
  .renewal-strip { grid-template-columns: 1fr; }
  form.filter-grid .field { max-width: none; }
}
.party-card { display: grid; gap: 0.15rem; margin: 0 0 1rem; padding: 0.75rem 0.9rem; background: #f6f9fc; border-radius: 12px; }
.party-card strong { font-size: 1rem; }
.party-card span { color: #3e4c5c; }
.invoice-lines { min-width: 860px; }
.invoice-lines input[type="checkbox"] { width: auto; min-height: 0; }
.invoice-line.is-billed { opacity: 0.72; background: #f8fafc; }
.invoice-tax-summary {
  margin: 0.75rem 0 1rem;
  padding: 0.85rem 1rem;
}
.invoice-tax-summary h3 { margin: 0 0 0.35rem; font-size: 0.95rem; }
.invoice-tax-summary .tax-lines {
  margin: 0.55rem 0 0;
  display: grid;
  gap: 0.35rem;
}
.invoice-tax-summary .tax-lines > div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.9rem;
}
.invoice-tax-summary .tax-lines dt { margin: 0; color: #3e4c5c; font-weight: 600; }
.invoice-tax-summary .tax-lines dd { margin: 0; font-weight: 700; color: #0a1f3d; }
.invoice-tax-summary .tax-total { border-top: 1px solid #e4ebf3; padding-top: 0.4rem; margin-top: 0.15rem; }
.lead-assign-help { margin: 0 0 0.85rem; color: #3e4c5c; font-size: 0.9rem; }
.lead-exception { margin: 0.5rem 0 0.75rem; }
.lead-exception summary { cursor: pointer; font-weight: 650; color: #0a1f3d; }
.work-row { display: flex; justify-content: space-between; gap: 0.75rem; align-items: center; padding: 0.45rem 0; border-bottom: 1px solid #e4ebf3; text-decoration: none; color: inherit; }
.work-row:last-child { border-bottom: 0; }
.work-kind { display: block; font-size: 0.75rem; letter-spacing: 0.04em; text-transform: uppercase; color: #5c6b7c; }
.badge { display: inline-block; border-radius: 999px; padding: 0.12rem 0.55rem; background: #e7f2fc; color: #0a1f3d; font-size: 0.78rem; font-weight: 650; }
.desk-dialog { border: 0; border-radius: 16px; padding: 1.1rem 1.2rem; max-width: 28rem; box-shadow: 0 18px 50px rgba(10, 31, 61, 0.2); }
.desk-dialog::backdrop { background: rgba(10, 31, 61, 0.45); }
.desk-dialog h2 { margin-top: 0; }
form[data-saving="1"] button[type="submit"] { position: relative; }
@media (max-width: 800px) {
  .page-head .desk-actions, .page-head .desk-actions .btn { width: 100%; }
  .desk-top-actions span { display: none; }
}

/* Today command center */
.dash-greet {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin: 0 0 1rem;
  padding: 1rem 1.1rem;
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(10, 107, 196, 0.08), rgba(10, 31, 61, 0.03)),
    #fff;
  border: 1px solid #d7e1ec;
}
.dash-greet-copy { min-width: 0; }
.dash-kicker {
  margin: 0 0 0.2rem;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #5c6b7c;
  font-weight: 700;
}
.dash-greet h1 { margin: 0 0 0.25rem; font-size: 1.55rem; color: #0a1f3d; }
.dash-greet .lead { margin: 0; max-width: 36rem; }
.dash-greet-actions { flex: none; }
.dash-holiday-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.65rem;
}
.dash-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  border: 1px solid #c5d7ea;
  background: #f3f8fd;
  color: #0a1f3d;
  font-size: 0.8rem;
  font-weight: 650;
  text-decoration: none;
  transition: border-color 0.18s ease, transform 0.18s ease, background 0.18s ease;
}
a.dash-chip:hover {
  border-color: #0a6bc4;
  background: #e8f1fb;
  transform: translateY(-1px);
}
.dash-section { margin: 0 0 1rem; }
.dash-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 0 0 0.55rem;
}
.dash-section-head h2 {
  margin: 0;
  font-size: 0.95rem;
  color: #0a1f3d;
}
.dash-section-head p {
  margin: 0;
  color: #5c6b7c;
  font-size: 0.82rem;
}
.dash-kpi-attention,
.dash-kpi-pulse {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}
.dash-kpi-attention .kpi,
.dash-kpi-pulse .kpi {
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.dash-kpi-attention a.kpi:hover,
.dash-kpi-pulse a.kpi:hover {
  transform: translateY(-2px);
  border-color: #9eb8d4;
  box-shadow: 0 8px 18px rgba(10, 31, 61, 0.08);
}
.kpi.is-urgent {
  border-color: #f0b27a;
  box-shadow: inset 3px 0 0 #c05600;
}
.dash-in {
  animation: dash-in 0.42s ease both;
  animation-delay: calc(var(--dash-i, 0) * 55ms);
}
@keyframes dash-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.dash-queue-section { margin-bottom: 1.15rem; }
.dash-work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 0.9rem;
  align-items: stretch;
  width: 100%;
}
.dash-work-card {
  display: flex;
  flex-direction: column;
  min-height: 12.5rem;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden;
  width: 100%;
}
.dash-work-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid #e4ebf3;
  background: #f6f9fc;
}
.dash-work-card-title {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #3e4c5c;
  min-width: 0;
}
.dash-work-card-title i { color: #0a6bc4; }
.dash-work-list {
  flex: 1 1 auto;
  min-height: 6.5rem;
  max-height: 16rem;
  overflow-y: auto;
  padding: 0.35rem 0.5rem;
}
.dash-work-list-short { max-height: 11rem; min-height: 0; }
.dash-work-item {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  padding: 0.65rem 0.65rem;
  margin: 0;
  border-radius: 8px;
  border-bottom: 1px solid #eef3f8;
  text-decoration: none;
  color: inherit;
  transition: background 0.15s ease;
}
.dash-work-item:last-child { border-bottom: 0; }
.dash-work-item:hover { background: #f5f9fd; }
.dash-work-item strong {
  color: #0a1f3d;
  font-size: 0.92rem;
  line-height: 1.25;
  word-break: break-word;
}
.dash-work-item span {
  color: #5c6b7c;
  font-size: 0.8rem;
  line-height: 1.3;
}
.dash-work-card-foot {
  padding: 0.55rem 1rem 0.8rem;
  border-top: 1px solid #eef3f8;
  background: #fff;
  margin-top: auto;
}
.dash-queue-empty { margin: 0; }
.dash-main {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 0.85rem;
  margin: 0 0 1rem;
  align-items: stretch;
}
.dash-main.is-compact {
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}
.dash-panel {
  margin: 0;
  height: 100%;
  box-shadow: 0 1px 0 rgba(10, 31, 61, 0.03);
}
.dash-panel-hire {
  background: #fff;
  border: 1px solid #d7e1ec;
  border-radius: 14px;
}
.dash-panel .hire-strip-head a {
  font-size: 0.82rem;
  font-weight: 650;
  color: #0a6bc4;
  text-decoration: none;
}
.dash-panel .hire-strip-head a:hover { text-decoration: underline; }
.dash-stat-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  margin: 0 0 0.65rem;
}
.dash-stat-row strong {
  display: block;
  margin-top: 0.15rem;
  font-size: 1.25rem;
  color: #0a1f3d;
}
.dash-status-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.dash-status-list li {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.35rem 0;
  border-bottom: 1px solid #e4ebf3;
  font-size: 0.88rem;
}
.dash-status-list li:last-child { border-bottom: 0; }
.dash-status-list span { color: #3e4c5c; }
.dash-status-list strong { color: #0a1f3d; }
.dash-ops-line {
  margin: 0 0 0.55rem;
  color: #3e4c5c;
  font-size: 0.9rem;
}
.dash-ops-line a { margin-left: 0.35rem; }
.dash-renewal-strip {
  margin: 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.dash-view-all {
  display: inline-block;
  margin-top: 0;
  font-size: 0.82rem;
  font-weight: 650;
  color: #0a6bc4;
  text-decoration: none;
}
.dash-view-all:hover { text-decoration: underline; }
.work-group-head i {
  margin-right: 0.35rem;
  color: #5c6b7c;
  font-size: 0.78rem;
}
.work-row {
  transition: background 0.15s ease, padding-left 0.15s ease;
  border-radius: 8px;
  margin: 0 -0.35rem;
  padding-left: 0.35rem;
  padding-right: 0.35rem;
}
.work-row:hover {
  background: #f5f9fd;
  padding-left: 0.55rem;
}
.dash-empty-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 0.85rem;
  margin-top: 0.65rem;
}
.dash-empty-links a {
  font-weight: 650;
  color: #0a6bc4;
  text-decoration: none;
}
.dash-empty-links a:hover { text-decoration: underline; }
@media (max-width: 800px) {
  .dash-work-grid,
  .dash-main,
  .dash-main.is-compact {
    grid-template-columns: 1fr;
  }
  .dash-greet { flex-direction: column; }
  .dash-greet-actions,
  .dash-greet-actions .btn { width: 100%; }
  .dash-section-head { flex-direction: column; align-items: flex-start; }
  .dash-renewal-strip { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .dash-in { animation: none; }
  .dash-kpi-attention a.kpi:hover,
  .dash-kpi-pulse a.kpi:hover,
  a.dash-chip:hover {
    transform: none;
  }
  .work-row { transition: none; }
}

