@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
  --bg: #f3f6fb;
  --bg-soft: #ecf2fb;
  --surface: #ffffff;
  --surface-alt: #f6f9ff;
  --text: #142033;
  --muted: #5f6b7b;
  --line: #d7dfeb;
  --primary: #156ff7;
  --primary-soft: #eaf2ff;
  --warn: #9c5c00;
  --warn-soft: #fff1dc;
  --danger: #a9263d;
  --radius: 16px;
  --radius-lg: 22px;
  --shadow: 0 10px 30px rgba(18, 37, 63, 0.08);
}

* { box-sizing: border-box; }
html {
  overflow-y: scroll;
  scrollbar-gutter: stable;
}

body {
  margin: 0;
  font-family: 'Manrope', 'Avenir Next', 'Segoe UI', sans-serif;
  color: var(--text);
  background: linear-gradient(165deg, var(--bg) 0%, var(--bg-soft) 100%);
}

body.modal-open {
  overflow: hidden;
}

.bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 8% 12%, rgba(21, 111, 247, 0.08), transparent 35%),
    radial-gradient(circle at 90% 18%, rgba(20, 170, 130, 0.1), transparent 32%);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 14px 24px;
  min-height: 72px;
  border-bottom: 1px solid rgba(215, 223, 235, 0.85);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #1e2a36;
}

.brand-logo {
  width: 28px;
  height: 28px;
  border-radius: 9px;
  object-fit: cover;
  box-shadow: 0 6px 12px rgba(20, 32, 51, 0.18);
}

.layout {
  display: block;
  min-height: calc(100vh - 64px);
}

.access-mode-banner {
  padding: 12px 22px 0;
}

.access-mode-card {
  border: 1px solid #f0d6a8;
  border-radius: 14px;
  background: linear-gradient(180deg, #fff9ee 0%, #fff4de 100%);
  color: #7a4a00;
  padding: 12px 14px;
  display: grid;
  gap: 8px;
  box-shadow: 0 8px 18px rgba(32, 19, 4, 0.08);
}

.access-mode-copy {
  display: grid;
  gap: 4px;
}

.access-mode-pill {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 999px;
  border: 1px solid #e6be7b;
  background: #ffe7bb;
  color: #7a4a00;
  font-size: 11px;
  font-weight: 800;
  padding: 2px 8px;
}

.access-mode-card strong {
  color: #6f3f00;
  font-size: 15px;
}

.access-mode-card p {
  margin: 0;
  color: #7a4a00;
  font-size: 13px;
  line-height: 1.4;
}

.access-mode-actions {
  display: inline-flex;
  gap: 8px;
  flex-wrap: wrap;
}

.access-mode-actions button {
  min-height: 36px;
}

#accessModeMsg {
  min-height: 18px;
}

.top-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 420px;
  overflow-x: auto;
  padding: 2px;
}

.nav-btn {
  border: 1px solid transparent;
  background: transparent;
  color: #1d342b;
  border-radius: 12px;
  padding: 9px 12px;
  text-align: center;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.16s ease, background-color 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
  white-space: nowrap;
}

.nav-icon {
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0.9;
}

.nav-icon svg {
  width: 16px;
  height: 16px;
  display: block;
}

.nav-btn:hover {
  background: #f1f6ff;
  border-color: #d2e0f8;
  box-shadow: 0 6px 14px rgba(18, 37, 63, 0.1);
  transform: translateY(-1px);
}

.nav-btn:hover .nav-icon {
  transform: translateX(1px);
}

.nav-btn .nav-icon {
  transition: transform 0.16s ease;
}

.nav-btn.active {
  background: var(--primary-soft);
  border-color: #cfe0ff;
  color: #124ea9;
  box-shadow: inset 0 0 0 1px rgba(13, 110, 253, 0.08);
}

.content {
  padding: 16px 22px 22px;
}

.auth-actions {
  display: flex;
  justify-content: flex-end;
}

.page-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.page-head-title {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.page-subtitle {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
}

.page-head-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.inline-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
  font-weight: 600;
}

.segmented-tabs {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.tab-btn {
  background: #fff;
  border: 1px solid var(--line);
  color: var(--muted);
  border-radius: 999px;
  padding: 7px 11px;
  font-size: 12px;
  font-weight: 700;
}

.tab-btn.active {
  background: var(--primary-soft);
  border-color: #cfe0ff;
  color: #124ea9;
}

.planner-controls {
  display: grid;
  grid-template-columns: 1.2fr auto;
  gap: 14px;
  align-items: center;
}

.planner-info h2 {
  font-size: 28px;
  letter-spacing: -0.02em;
}

.planner-info p {
  margin: 6px 0 0;
  color: var(--muted);
  font-weight: 600;
}

.planner-range {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 10px;
}

.planner-week-range {
  font-weight: 700;
  font-size: 20px;
  color: #1a314f;
}

.planner-week-number {
  margin-top: 2px;
  color: var(--muted);
  font-weight: 600;
}

.week-nav-btn {
  min-width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 10px;
  justify-content: center;
  gap: 0;
}

.planner-actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.planner-status {
  grid-column: 1 / -1;
}

#planMsg {
  grid-column: 1 / -1;
  margin: 2px 0 0;
}

.validation-list {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.validation-item {
  border: 1px solid #ecd5a8;
  background: #fff8e9;
  color: #8a5a00;
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.35;
}

.validation-item-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 46px;
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  line-height: 1.2;
}

.validation-item-text {
  min-width: 0;
}

.validation-item-warning {
  border-color: #ecd5a8;
  background: #fff8e9;
  color: #8a5a00;
}

.validation-item-warning .validation-item-badge {
  background: #fff1d2;
  border-color: #f1d9a7;
  color: #8a5a00;
}

.validation-item-error {
  border-color: #efbcc6;
  background: #fff1f4;
  color: #9f1239;
}

.validation-item-error .validation-item-badge {
  background: #ffdbe2;
  border-color: #efbcc6;
  color: #8f1231;
}

h1, h2, h3 {
  margin: 0;
  letter-spacing: -0.01em;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 18px;
  box-shadow: var(--shadow);
}

.entity-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.entity-card {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
  background: var(--surface);
  border: 1px solid #dbe3ef;
  border-radius: var(--radius);
  padding: 14px;
  color: var(--text);
  box-shadow: 0 8px 18px rgba(18, 37, 63, 0.07);
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.entity-card-main {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1 1 auto;
  min-width: 0;
}

.entity-card-content {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
  min-width: 0;
}

.employee-avatar {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 14px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.competency-color-dot {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25), 0 2px 6px rgba(20, 32, 51, 0.16);
  flex: 0 0 30px;
}

.entity-card:hover {
  transform: translateY(-2px);
  border-color: #bfd1ee;
  box-shadow: 0 14px 26px rgba(18, 37, 63, 0.11);
}

.entity-card-editable {
  cursor: pointer;
}

.entity-card strong {
  font-size: 15px;
}

.entity-card span {
  font-size: 12px;
  color: var(--muted);
}

.entity-card small {
  margin-top: 2px;
  color: #3d5249;
  font-size: 12px;
}

.entity-card-aside {
  margin-left: auto;
  min-width: 150px;
  max-width: 190px;
  align-self: flex-end;
}

.shift-req-preview {
  display: flex;
  flex-direction: column;
  gap: 7px;
  align-items: flex-end;
}

.shift-req-preview-compact {
  gap: 6px;
  width: 164px;
  max-width: 100%;
}

.shift-req-preview-compact .shift-req-open-btn {
  width: 100%;
  justify-content: center;
  padding: 6px 8px;
}

.shift-req-title {
  font-size: 11px;
  font-weight: 800;
  color: #5a6d86;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.shift-req-open-btn {
  border: 1px solid #cbdaf0;
  border-radius: 999px;
  background: #f4f9ff;
  color: #335887;
  padding: 6px 10px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  gap: 6px;
}

.shift-req-open-btn .btn-icon {
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
}

.shift-req-open-btn:hover,
.shift-req-open-btn:focus-visible {
  border-color: #afc5e4;
  background: #eaf3ff;
  color: #264b78;
}

.shift-req-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.shift-req-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid #d7e4fb;
  border-color: color-mix(in srgb, var(--competency-color, #4F46E5) 30%, #d7e4fb);
  background: #f3f8ff;
  background: color-mix(in srgb, var(--competency-color, #4F46E5) 14%, #fff);
  color: #294f85;
  color: color-mix(in srgb, var(--competency-color, #4F46E5) 78%, #294f85);
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
}

.shift-req-more {
  cursor: pointer;
  font: inherit;
  padding: 2px 6px;
  font-size: 10px;
  font-weight: 700;
  color: #5f728e;
  border-color: #cbd9ee;
  background: #f7fbff;
}

.shift-req-more:hover,
.shift-req-more:focus-visible {
  border-color: #aec3e3;
  background: #eef5ff;
  color: #3f5f8d;
}

.shift-req-empty {
  font-size: 11px;
  color: #7a8a9f;
  font-weight: 700;
}

.entity-card-actions {
  display: inline-flex;
  flex-direction: column;
  gap: 6px;
  align-self: flex-end;
}

.action-btn {
  min-width: 72px;
  height: 30px;
  border-radius: 9px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.action-btn.icon-only {
  min-width: 34px;
  width: 34px;
  height: 34px;
  padding: 0;
  justify-content: center;
  gap: 0;
}

.action-btn.danger {
  color: #9b2d3e;
  border-color: #edc9d2;
  background: #fff4f6;
}

.fab {
  position: fixed;
  right: 24px;
  bottom: 22px;
  z-index: 12;
  border-radius: 999px;
  box-shadow: 0 14px 28px rgba(16, 49, 36, 0.22);
  padding: 12px 16px;
}

.grid2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 13px;
  color: var(--muted);
  font-weight: 600;
}

.default-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #7a8697;
  font-size: 12px;
  font-weight: 600;
}

.default-toggle input[type="checkbox"] {
  width: 14px;
  height: 14px;
}

input.default-value[readonly] {
  color: #7a8697;
  background: #f3f6fb;
}

input,
select,
textarea {
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 10px 12px;
  background: #fff;
  color: var(--text);
  font-family: inherit;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: #8bc8b3;
  box-shadow: 0 0 0 3px rgba(23, 151, 111, 0.12);
}

button {
  border: 1px solid transparent;
  background: var(--primary);
  color: #fff;
  border-radius: 11px;
  padding: 10px 14px;
  cursor: pointer;
  font-weight: 700;
  transition: all 0.18s ease;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

button:hover { filter: brightness(0.97); }
button:hover { transform: translateY(-1px); }

button.ghost {
  background: #fff;
  border-color: var(--line);
  color: var(--text);
}

.btn-icon {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
}

.hidden { display: none !important; }

.table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 11px 10px;
  border-bottom: 1px solid #edf2ef;
  font-size: 13px;
  vertical-align: top;
}

th {
  text-align: left;
  background: var(--surface-alt);
  color: var(--muted);
  font-weight: 700;
}

.error { color: var(--danger); font-weight: 600; }
.muted { color: var(--muted); }

.pill {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: #0b6548;
  font-size: 12px;
  font-weight: 700;
}

.pill.warn {
  background: var(--warn-soft);
  color: var(--warn);
}

.pill.error {
  background: #fdecef;
  color: #9f1239;
  border: 1px solid #f4c0cb;
}

.planner-board-wrap {
  overflow: auto;
  padding-bottom: 8px;
}

.planner-board {
  min-width: 1040px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.planner-row {
  display: grid;
  grid-template-columns: 190px repeat(7, minmax(126px, 1fr));
  gap: 10px;
}

.planner-row-head {
  position: sticky;
  top: 0;
  z-index: 1;
}

.planner-head-cell,
.planner-head-day {
  border: 1px solid #d9e4f6;
  border-radius: 12px;
  background: linear-gradient(180deg, #f7faff 0%, #edf4ff 100%);
  color: #33527d;
  padding: 9px 10px;
  font-size: 12px;
}

.planner-head-day strong {
  display: block;
  font-size: 12px;
}

.planner-head-day small {
  color: #56729c;
}

.planner-head-day-has-gaps {
  border-color: #d9e4f6;
  background: linear-gradient(180deg, #f7faff 0%, #edf4ff 100%);
}

.planner-head-day-has-warning {
  border-color: #d9c18f;
  box-shadow: 0 0 0 2px rgba(217, 170, 102, 0.22);
}

.planner-head-day-has-error {
  border-color: #d66b80;
  box-shadow: 0 0 0 2px rgba(214, 107, 128, 0.24);
}

.planner-head-day-today {
  border-color: #6b8fc7;
  box-shadow: 0 0 0 2px rgba(71, 116, 186, 0.2);
}

.planner-head-day-badges {
  margin-top: 6px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.planner-head-day-badges:empty {
  display: none;
}

.day-gap-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 7px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  background: #fff2d8;
  border: 1px solid #efdbab;
  color: #9c5c00;
}

.day-error-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 7px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  background: #ffdbe2;
  border: 1px solid #efbcc6;
  color: #8f1231;
}

.planner-shift-col,
.planner-cell {
  border: 1px solid #dce4f0;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(18, 37, 63, 0.06);
}

.planner-shift-col {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.planner-shift-col-clickable {
  cursor: pointer;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease;
}

.planner-shift-col-clickable:hover,
.planner-shift-col-clickable:focus-visible {
  border-color: #bfd2ee;
  box-shadow: 0 12px 24px rgba(18, 37, 63, 0.1);
}

.planner-shift-col-clickable:focus-visible {
  outline: none;
}

.planner-shift-col small {
  color: var(--muted);
}

.planner-shift-col-main {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.planner-shift-col-text {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.planner-shift-col-hint {
  color: #5f7597;
  font-weight: 700;
}

.planner-shift-col-has-warning {
  border-color: #d2b274;
  box-shadow: 0 0 0 2px rgba(214, 168, 96, 0.2), 0 8px 20px rgba(18, 37, 63, 0.06);
}

.planner-shift-col-has-error {
  border-color: #d66b80;
  box-shadow: 0 0 0 2px rgba(214, 107, 128, 0.2), 0 8px 20px rgba(18, 37, 63, 0.06);
}

.planner-shift-req-list {
  justify-content: flex-end;
  max-width: 100%;
}

.planner-shift-req-extra {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
}

.planner-cell {
  position: relative;
  min-height: 106px;
  padding: 10px 10px 8px;
  transition: border-color 0.16s ease, background-color 0.16s ease, opacity 0.16s ease;
}

.planner-cell-clickable {
  cursor: pointer;
}

.planner-cell-clickable:hover,
.planner-cell-clickable:focus-visible {
  box-shadow: 0 12px 24px rgba(18, 37, 63, 0.12);
}

.planner-cell-clickable:focus-visible {
  outline: none;
}

.planner-cell-full {
  border-color: #d6e9de;
  background: linear-gradient(180deg, #fbfffc 0%, #f3fbf6 100%);
}

.planner-cell-partial {
  border-color: #efd9ad;
  background: linear-gradient(180deg, #fffdf8 0%, #fff7e7 100%);
}

.planner-cell-empty {
  border-color: #e6be7f;
  background: linear-gradient(180deg, #fff9ef 0%, #fff1d9 100%);
}

.planner-cell-has-warning {
  border-color: #d2b274;
  box-shadow: inset 0 0 0 2px rgba(214, 168, 96, 0.22);
}

.planner-cell-has-error {
  border-color: #f0bfc8;
  background: linear-gradient(180deg, #fffafc 0%, #fff0f4 100%);
}

.planner-cell-muted {
  opacity: 0.4;
}

.planner-cell-locked {
  border-style: dashed;
  border-color: #c8d0dc;
  background: linear-gradient(180deg, #f3f5f8 0%, #eceff4 100%);
}

.planner-cell-locked::after {
  content: 'Låst';
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #5a6575;
  background: #dfe4ec;
  border: 1px solid #c8d0dc;
}

.planner-cell-locked .chip-assigned {
  background: #f1f3f7;
  border-color: #d5dbe5;
  border-left-color: #b7c0ce;
  box-shadow: none;
}

.planner-cell-locked .chip-assigned .chip-label {
  color: #5f6b7a;
}

.planner-cell-locked .chip-color-dot {
  opacity: 0.55;
}

.planner-cell-locked .cell-shortage-badge {
  color: #5f6b7a;
  background: #e5e9f0;
  border-color: #cbd3df;
}

.planner-row-muted {
  opacity: 0.52;
}

.planner-cell-inactive {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f7f9fd;
}

.planner-empty {
  padding: 18px;
  border: 1px dashed #cfd9ea;
  border-radius: 14px;
  color: var(--muted);
  text-align: center;
  background: #f9fbff;
}

.cell-assignees {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 6px;
}

.chip {
  display: inline-block;
  font-size: 12px;
  padding: 5px 9px;
  border-radius: 999px;
  background: #edf5f2;
  color: #1f3f33;
  border: 1px solid #dbe8e2;
}

.chip-assigned {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 4px 2px 6px;
  background: #fff;
  border: 1px solid #dfe7f3;
  border-left: 3px solid var(--chip-accent, #4F46E5);
  border-radius: 999px;
  box-shadow: 0 5px 12px rgba(18, 37, 63, 0.07);
}

.chip-assigned-clickable {
  cursor: pointer;
}

.chip-assigned-clickable:hover {
  filter: brightness(0.98);
}

.chip-label {
  color: #fff;
  color: #1f3552;
  font-weight: 650;
  font-size: 11px;
  line-height: 1.1;
  max-width: 88px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chip-color-dot {
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  border-radius: 999px;
  background: var(--chip-accent, #4F46E5);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.35);
}

.chip-remove {
  width: 16px;
  height: 16px;
  border-radius: 999px;
  border: 0;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #eff3f9;
  color: #365071;
  vertical-align: middle;
}

.chip-remove .btn-icon {
  width: 10px;
  height: 10px;
  flex: 0 0 10px;
}

.chip-remove:hover {
  background: #dfe7f3;
  transform: none;
}

.chip-assigned-missing {
  --chip-accent: #d84a61;
  border-color: #f0ccd4;
  background: #fff5f7;
}

.chip-assigned-missing .chip-label {
  color: #7d2e3d;
  text-decoration: line-through;
  text-decoration-color: #cb3f58;
  text-decoration-thickness: 1.5px;
}

.cell-actions {
  position: absolute;
  right: 8px;
  bottom: 8px;
}

.cell-meta {
  margin-top: 2px;
  margin-bottom: 2px;
  font-size: 12px;
  color: var(--muted);
  font-weight: 700;
}

.cell-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.cell-shortage-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 7px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  color: #8a5100;
  background: #fff0d8;
  border: 1px solid #e9cc96;
}

.cell-error-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 7px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  color: #8f1231;
  background: #ffdbe2;
  border: 1px solid #efbcc6;
}

.cell-actions select {
  min-width: 140px;
}

.cell-add {
  width: 26px;
  height: 26px;
  border-radius: 10px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  line-height: 0;
  box-shadow: 0 8px 16px rgba(21, 111, 247, 0.24);
}

.cell-inactive {
  color: #80938a;
  font-style: italic;
}

.employee-picker {
  position: absolute;
  z-index: 60;
}

.employee-picker-card {
  min-width: 180px;
  max-width: 240px;
  border: 1px solid #dce4f0;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 16px 28px rgba(18, 37, 63, 0.16);
  padding: 10px;
}

.employee-picker-title {
  font-size: 12px;
  color: var(--muted);
  font-weight: 700;
  margin-bottom: 6px;
}

.employee-picker-loading {
  font-size: 12px;
  color: #60738e;
  padding: 8px 6px;
}

.employee-picker-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 220px;
  overflow-y: auto;
}

.employee-picker-item {
  width: 100%;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-content: flex-start;
  border-radius: 8px;
  background: #fff;
  border: 1px solid #e5ebf5;
  color: var(--text);
  font-weight: 600;
  padding: 10px 11px;
  min-height: 40px;
}

.employee-picker-item:hover {
  background: #edf4ff;
  border-color: #cfe0ff;
}

.employee-picker-item.has-warning {
  border-color: #efbcc6;
  background: #fff1f4;
}

.employee-picker-warning {
  margin-left: auto;
  font-size: 11px;
  font-weight: 700;
  color: #8f1231;
  background: #ffdbe2;
  border: 1px solid #efbcc6;
  border-radius: 999px;
  padding: 2px 7px;
}

.employee-picker-footnote {
  margin-top: 6px;
  font-size: 11px;
  color: #6d7f97;
}

.employee-avatar.employee-avatar-sm {
  width: 24px;
  height: 24px;
  font-size: 11px;
}

.employee-select {
  position: relative;
  width: 100%;
}

.employee-select-trigger {
  width: 100%;
  min-height: 42px;
  justify-content: space-between;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 11px;
  color: var(--text);
  font-weight: 600;
  padding: 8px 10px;
}

.employee-select-current {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.employee-select-placeholder {
  color: #7d8797;
}

.employee-select-caret {
  color: #6c7888;
  font-size: 13px;
}

.employee-select.open .employee-select-trigger,
.employee-select-trigger:focus {
  outline: none;
  border-color: #8bc8b3;
  box-shadow: 0 0 0 3px rgba(23, 151, 111, 0.12);
}

.employee-select-menu {
  position: absolute;
  left: 0;
  top: calc(100% + 6px);
  z-index: 40;
  width: min(280px, 100%);
  background: #fff;
  border: 1px solid #dce4f0;
  border-radius: 12px;
  box-shadow: 0 16px 28px rgba(18, 37, 63, 0.16);
  padding: 8px;
  max-height: 260px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.employee-select-option {
  width: 100%;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-content: flex-start;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text);
  border-radius: 9px;
  padding: 8px 10px;
  min-height: 40px;
  font-weight: 600;
}

.employee-select-option:hover {
  background: #edf4ff;
  border-color: #cfe0ff;
}

.color-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.color-swatch {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  border: 2px solid transparent;
  padding: 0;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.45);
}

.color-swatch.selected {
  border-color: #1f2c3a;
}

.competency-picker {
  width: 100%;
}

#employeeModal .competency-picker {
  margin-top: 4px;
}

#competencyIncompatibilityPicker {
  margin-top: 6px;
}

.competency-picker-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.competency-chip {
  background: #fff;
  border: 1px solid #d8e2f1;
  border: 1px solid color-mix(in srgb, var(--competency-color, #4F46E5) 26%, #d8e2f1);
  color: #294566;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.competency-chip.active {
  background: #eaf2ff;
  border-color: #cfe0ff;
  color: #124ea9;
  background: color-mix(in srgb, var(--competency-color, #4F46E5) 12%, #fff);
  border-color: color-mix(in srgb, var(--competency-color, #4F46E5) 42%, #cfe0ff);
  color: color-mix(in srgb, var(--competency-color, #4F46E5) 75%, #124ea9);
}

.competency-picker-empty {
  color: #6f7f93;
  font-size: 12px;
  font-weight: 600;
  padding: 8px 0 2px;
}

.inline-help-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.help-blob {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 1px solid #c7d7eb;
  background: #f1f6ff;
  color: #486180;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
}

.help-blob:hover,
.help-blob:focus-visible {
  border-color: #a9c3e5;
  background: #e5efff;
  color: #284f7c;
}

.competency-help-text {
  margin: 6px 0 2px;
}

.occupancy-help-content {
  grid-column: 1 / -1;
  display: grid;
  gap: 10px;
}

.occupancy-help-intro {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.45;
}

.occupancy-help-card {
  border: 1px solid #d5e2f4;
  border-radius: 12px;
  background: linear-gradient(180deg, #f7faff 0%, #f3f8ff 100%);
  padding: 12px;
  display: grid;
  gap: 6px;
}

.occupancy-help-card h4 {
  margin: 0;
  font-size: 14px;
  color: #1e3f68;
}

.occupancy-help-card p {
  margin: 0;
  color: #24405f;
  line-height: 1.45;
  font-size: 13px;
}

.occupancy-help-example strong {
  color: #163f74;
}

.occupancy-help-chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid #c5d8f4;
  background: #eef5ff;
  color: #295486;
  padding: 1px 7px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.occupancy-help-note {
  margin: 0;
  border-radius: 11px;
  border: 1px dashed #c5d8f4;
  background: #f8fbff;
  color: #4a607b;
  padding: 10px 12px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
}

.assignment-info-detail {
  grid-column: 1 / -1;
}

.assignment-info-block {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f8fbff;
  padding: 10px 12px;
  margin: 0 0 10px;
}

.assignment-info-block-clickable {
  cursor: pointer;
  transition: border-color 0.14s ease, background-color 0.14s ease;
}

.assignment-info-block-clickable:hover,
.assignment-info-block-clickable:focus-visible {
  border-color: #b7cdea;
  background: #eef5ff;
}

.assignment-info-block-clickable:focus-visible {
  outline: 2px solid #85aee0;
  outline-offset: 2px;
}

.assignment-info-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 4px 0;
}

.assignment-info-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.assignment-info-title {
  margin: 0 0 8px;
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
}

.coverage-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.coverage-chip-missing {
  border-style: dashed;
  opacity: 0.78;
}

.coverage-empty {
  margin: 0;
}

.competency-requirement-picker {
  width: 100%;
}

.competency-requirement-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.competency-requirement-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  border: 1px solid #d8e2f1;
  border-radius: 11px;
  background: #fff;
  padding: 8px 10px;
}

.competency-requirement-name {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #294566;
  font-size: 13px;
  font-weight: 700;
}

.competency-chip-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--competency-color, #4F46E5);
  box-shadow: 0 0 0 1px rgba(22, 34, 50, 0.08);
  flex: 0 0 8px;
}

#employeeModal .competency-chip-dot {
  transform: translateY(2px);
}

.competency-requirement-count-wrap {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #5f728e;
  font-weight: 700;
}

.competency-requirement-count-wrap input {
  width: 64px;
  padding: 6px 8px;
  border-radius: 9px;
}

.shift-competency-launch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 2px;
}

.shift-competency-launch .muted {
  margin: 0;
  font-size: 12px;
}

.export-type-grid {
  display: grid;
  gap: 10px;
}

.export-type-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 12px;
  border: 1px solid #d8e2f1;
  border-radius: 12px;
  padding: 12px 14px;
  background: #fff;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.export-type-card input[type="radio"] {
  width: 18px;
  height: 18px;
  margin-top: 1px;
  accent-color: #17976f;
}

.export-type-card:has(input:checked) {
  border-color: #8bc8b3;
  box-shadow: 0 0 0 3px rgba(23, 151, 111, 0.1);
}

.export-type-card > span {
  display: inline-flex;
  flex-direction: column;
  gap: 3px;
}

.export-type-card strong {
  color: #1f3552;
  font-size: 13px;
}

.export-type-card small {
  color: #6b7b8f;
  font-size: 12px;
  font-weight: 600;
}

.availability-selected-employee {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 10px 0;
}

.availability-week-wrap {
  overflow: auto;
  border: 1px solid #e2e9f5;
  border-radius: 14px;
}

#employeeAvailabilityGridRoot {
  min-height: 0;
}

#employeeAvailabilityModal .availability-week-wrap {
  max-height: min(56vh, 520px);
}

.availability-week-grid {
  min-width: 860px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 6px;
}

.availability-week-row {
  display: grid;
  grid-template-columns: 170px repeat(7, minmax(78px, 1fr));
  gap: 6px;
}

.availability-week-head {
  position: sticky;
  top: 0;
  z-index: 1;
}

.availability-head-label,
.availability-head-day {
  border: 1px solid #d9e4f6;
  border-radius: 10px;
  background: #f4f8ff;
  color: #34506f;
  padding: 6px;
  font-size: 11px;
  font-weight: 700;
}

.availability-head-label {
  display: inline-flex;
  align-items: center;
}

.availability-head-day {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.availability-shift-col {
  border: 1px solid #dce4f0;
  border-radius: 12px;
  background: #fff;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.availability-shift-col small {
  color: var(--muted);
  font-size: 11px;
}

.availability-quick-actions {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.availability-quick-actions-row {
  margin-top: 5px;
  justify-content: flex-start;
}

.availability-quick-btn {
  width: 20px;
  height: 20px;
  min-width: 20px;
  border-radius: 8px;
  border: 1px solid #d4deef;
  background: #fff;
  color: #3c5678;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.availability-quick-btn.is-available {
  color: #0f7b4f;
}

.availability-quick-btn.is-unavailable {
  color: #9b2d3e;
}

.availability-quick-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.availability-quick-btn:hover:not(:disabled),
.availability-quick-btn:focus-visible:not(:disabled) {
  border-color: #c1d2eb;
  background: #f7fbff;
  box-shadow: 0 5px 10px rgba(25, 45, 74, 0.09);
}

.availability-cell {
  min-height: 36px;
  border-radius: 10px;
  border: 1px solid #dce4f0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  padding: 0;
}

.availability-cell.inactive {
  background: #f7f9fd;
  color: #9ca9bd;
  border-color: #e8eef8;
  cursor: default;
}

.availability-cell.is-available {
  background: #e9f8f0;
  color: #128053;
}

.availability-cell.is-unavailable {
  background: #fff3f5;
  color: #9b2d3e;
}

.availability-empty {
  padding: 10px;
  color: var(--muted);
}

.weekday-toggle {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

#inactiveDays.weekday-toggle {
  margin-top: 6px;
}

.day-btn {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 12px;
}

.day-btn.active {
  background: var(--primary-soft);
  border-color: #cfe0ff;
  color: #124ea9;
}

.login-page { min-height: 100vh; }

.login-layout {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px;
  gap: 14px;
}

.login-shell {
  width: min(460px, 100%);
}

.login-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  color: #124ea9;
  background: #e6f0ff;
  border: 1px solid #cfe0ff;
  margin: 0 0 14px;
}

.login-badge-link {
  text-decoration: none;
  transition: transform 0.16s ease, box-shadow 0.16s ease, filter 0.16s ease;
}

.login-badge-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 14px rgba(18, 37, 63, 0.12);
  filter: brightness(0.99);
}

.login-badge-logo {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  object-fit: cover;
}

.login-card {
  position: relative;
  width: 100%;
  border-radius: 24px;
  padding: 26px;
}

.login-close {
  position: absolute;
  top: 24px;
  right: 26px;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  border: 1px solid #d5e1f5;
  background: #fff;
  color: #36547a;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  line-height: 1;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease, color 0.16s ease;
}

.login-close:hover,
.login-close:focus-visible {
  border-color: #c6d8f3;
  background: #f8fbff;
  color: #274b79;
  box-shadow: 0 4px 10px rgba(18, 37, 63, 0.08);
}

.login-card h2 {
  font-size: 28px;
  letter-spacing: -0.02em;
}

.login-card .muted {
  margin-top: 6px;
}

.login-card .muted a {
  color: #1d4e8f;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.login-card .muted a:hover,
.login-card .muted a:focus-visible {
  color: #2b66b1;
}

.login-form {
  margin-top: 14px;
  display: grid;
  gap: 10px;
}

.login-actions {
  margin-top: 4px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.login-footer {
  width: min(460px, 100%);
  display: flex;
  justify-content: center;
  gap: 8px;
  color: #627086;
  font-size: 12px;
  font-weight: 600;
  padding: 0 4px;
}

.landing-page {
  min-height: 100vh;
}

.landing-topbar {
  max-width: 1120px;
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.landing-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #142033;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.landing-topbar-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.landing-topbar-login,
.landing-topbar-cta {
  text-decoration: none;
  border-radius: 10px;
  padding: 9px 12px;
  font-size: 13px;
  font-weight: 750;
  transition: transform 0.18s ease, border-color 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
}

.landing-topbar-login {
  color: #1c406d;
  border: 1px solid #cad9ef;
  background: #fff;
}

.landing-topbar-cta {
  color: #fff;
  border: 1px solid #135dcf;
  background: linear-gradient(120deg, #156ff7 0%, #0d57d3 100%);
  box-shadow: 0 12px 24px rgba(21, 111, 247, 0.24);
}

.landing-topbar-login:hover,
.landing-topbar-login:focus-visible,
.landing-topbar-cta:hover,
.landing-topbar-cta:focus-visible {
  transform: translateY(-1px);
}

.landing-main {
  max-width: 1120px;
  margin: 0 auto;
  padding: 18px 24px 36px;
}

.landing-hero {
  border-radius: 28px;
  padding: clamp(24px, 5vw, 52px);
  background:
    radial-gradient(circle at 88% 16%, rgba(21, 111, 247, 0.16), transparent 40%),
    radial-gradient(circle at 14% 86%, rgba(20, 184, 166, 0.16), transparent 42%),
    linear-gradient(165deg, #f8fbff 0%, #eef5ff 100%);
}

.landing-hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 24px;
  align-items: start;
}

.landing-kicker {
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #245ca4;
  text-transform: uppercase;
}

.landing-hero h1 {
  margin: 0;
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  color: #16345d;
  max-width: 18ch;
}

.landing-lead {
  margin: 18px 0 0;
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.5;
  color: #3f5a7d;
  max-width: 56ch;
}

.landing-cta-row {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.landing-cta {
  text-decoration: none;
  color: #fff;
  background: linear-gradient(120deg, #156ff7 0%, #0d57d3 100%);
  border-radius: 12px;
  padding: 12px 18px;
  font-weight: 800;
  box-shadow: 0 16px 28px rgba(21, 111, 247, 0.25);
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.landing-cta:hover,
.landing-cta:focus-visible {
  transform: translateY(-1px);
  filter: brightness(1.03);
  box-shadow: 0 20px 34px rgba(21, 111, 247, 0.32);
}

.landing-secondary {
  text-decoration: none;
  color: #1d3e69;
  background: #fff;
  border: 1px solid #cad9ef;
  border-radius: 12px;
  padding: 12px 16px;
  font-weight: 700;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.landing-secondary:hover,
.landing-secondary:focus-visible {
  transform: translateY(-1px);
  border-color: #a9c1e4;
  background: #f7fbff;
  box-shadow: 0 10px 20px rgba(32, 68, 115, 0.12);
}

.landing-benefits {
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.landing-benefits li {
  color: #28476f;
  font-size: 14px;
  font-weight: 700;
}

.landing-benefits li::before {
  content: '•';
  margin-right: 8px;
  color: #156ff7;
}

.landing-trust {
  margin: 14px 0 0;
  color: #60799d;
  font-weight: 700;
  font-size: 13px;
}

.landing-product-shot {
  border: 1px solid #d7e3f5;
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 18px 36px rgba(18, 37, 63, 0.14);
}

.landing-product-shot img {
  width: 100%;
  display: block;
}

.landing-proof-strip {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.landing-proof-strip span {
  border: 1px solid #cfddf1;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: #34567f;
  font-size: 12px;
  font-weight: 700;
  padding: 8px 11px;
  text-align: center;
}

.landing-steps,
.landing-contact,
.landing-faq,
.landing-final {
  margin-top: 14px;
  text-align: center;
}

.landing-pain,
.landing-value {
  margin-top: 14px;
}

.landing-pain h2,
.landing-value h2 {
  font-size: clamp(24px, 3vw, 34px);
  letter-spacing: -0.02em;
  color: #17345d;
}

.landing-pain-grid {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.landing-pain-box {
  border: 1px solid #d9e4f6;
  border-radius: 14px;
  background: #fff;
  padding: 14px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.landing-pain-box h3 {
  margin: 0;
  font-size: 17px;
  color: #17345d;
}

.landing-pain-list {
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.landing-pain-list li {
  color: #486487;
  font-size: 14px;
  font-weight: 650;
}

.landing-pain-list li::before {
  content: '•';
  color: #156ff7;
  margin-right: 8px;
}

.landing-value-grid {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.landing-steps h2,
.landing-contact h2,
.landing-faq h2,
.landing-final h2 {
  font-size: clamp(24px, 3vw, 34px);
  letter-spacing: -0.02em;
  color: #17345d;
}

.steps {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.steps li {
  border: 1px solid #d9e4f6;
  background: linear-gradient(180deg, #fbfdff 0%, #f5f9ff 100%);
  border-radius: 14px;
  padding: 12px 14px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.steps li strong {
  color: #163a66;
}

.steps li p {
  margin: 6px 0 0;
  color: #4a668b;
}

.why-grid {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.contact-grid {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.contact-action {
  display: inline-flex;
  margin-top: 10px;
}

.contact-action-btn {
  cursor: pointer;
  font: inherit;
}

.contact-fallback {
  margin: 10px 0 0;
  color: #4a668b;
}

.contact-fallback a {
  color: #1d4e8f;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.contact-submit-row .muted a {
  color: #1d4e8f;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.contact-fallback a:hover,
.contact-fallback a:focus-visible,
.contact-submit-row .muted a:hover,
.contact-submit-row .muted a:focus-visible {
  color: #2b66b1;
}

.why-item {
  border: 1px solid #d9e4f6;
  border-radius: 14px;
  padding: 14px;
  background: #fff;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.why-item h3 {
  font-size: 17px;
  color: #17345d;
}

.why-item p {
  margin: 8px 0 0;
  color: #4a668b;
}

.faq-list {
  margin-top: 14px;
  display: grid;
  gap: 10px;
}

.faq-item {
  border: 1px solid #d9e4f6;
  border-radius: 14px;
  background: #fff;
  padding: 12px 14px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.faq-item summary {
  cursor: pointer;
  color: #17345d;
  font-weight: 800;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  border-radius: 999px;
  border: 1px solid #c6d8f3;
  color: #1d4e8f;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  line-height: 1;
  background: #f6faff;
}

.faq-item[open] summary::after {
  content: '-';
}

.faq-item p {
  margin: 8px 0 0;
  color: #4a668b;
}

.steps li:hover,
.why-item:hover,
.landing-pain-box:hover {
  transform: translateY(-2px);
  border-color: #c4d7f3;
  box-shadow: 0 12px 24px rgba(18, 37, 63, 0.1);
}

.faq-item:hover {
  border-color: #c4d7f3;
  box-shadow: 0 10px 18px rgba(18, 37, 63, 0.08);
}

.landing-final p {
  margin: 12px 0 0;
  color: #4a668b;
  font-size: 16px;
}

.landing-final .landing-cta-row {
  margin-top: 16px;
  align-items: center;
  justify-content: center;
}

.landing-cta.large {
  margin-top: 0;
  display: inline-flex;
  font-size: 16px;
  padding: 14px 20px;
}

.landing-final .landing-cta.large,
.landing-final .landing-secondary {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

.contact-shell h1 {
  margin: 0;
  font-size: clamp(28px, 4vw, 44px);
  color: #16345d;
  line-height: 1.08;
  letter-spacing: -0.02em;
  max-width: 18ch;
}

.contact-kicker {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #245ca4;
  text-transform: uppercase;
}

.contact-intro {
  margin: 12px 0 0;
  font-size: 17px;
  line-height: 1.45;
  color: #3f5a7d;
  max-width: 64ch;
}

.contact-story {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.contact-story-item {
  display: grid;
  gap: 6px;
  border: 1px solid #d9e4f6;
  border-radius: 12px;
  padding: 12px 14px;
  background: linear-gradient(180deg, #fbfdff 0%, #f5f9ff 100%);
}

.contact-story-item strong {
  color: #17345d;
}

.contact-story-item span {
  color: #4a668b;
  font-size: 14px;
}

.contact-form-grid {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.contact-form-grid-single {
  grid-template-columns: minmax(0, 760px);
  justify-content: center;
}

.contact-form-card {
  margin-top: 14px;
  border: 1px solid #d4e2f7;
  border-radius: 16px;
  padding: 16px;
  background: #fff;
  box-shadow: 0 16px 26px rgba(17, 45, 82, 0.08);
}

.contact-form-head {
  margin: 0 0 10px;
}

.contact-form-card h2 {
  margin: 0;
  color: #17345d;
}

.contact-form-card p {
  margin: 8px 0 0;
  color: #4a668b;
}

.contact-form {
  margin-top: 12px;
  display: grid;
  gap: 11px;
}

.contact-form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.contact-field {
  display: grid;
  gap: 6px;
  color: #27486f;
  font-size: 13px;
  font-weight: 700;
}

.contact-field input,
.contact-field textarea {
  border: 1px solid #cedcf3;
  border-radius: 11px;
  background: #f9fbff;
  color: #1b3558;
  padding: 11px 12px;
  font: inherit;
}

.contact-field textarea {
  resize: vertical;
  min-height: 130px;
}

.contact-field input::placeholder,
.contact-field textarea::placeholder {
  color: #7a8eab;
}

.contact-field input:focus-visible,
.contact-field textarea:focus-visible {
  outline: 2px solid #c2d9ff;
  outline-offset: 0;
  border-color: #99bdf3;
  background: #fff;
}

.contact-submit-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.contact-form-msg {
  margin: 0;
  min-height: 20px;
}

.contact-form-msg.ok {
  color: #136f47;
}

.partner-shell {
  max-width: 980px;
}

.partner-auth-card {
  margin-top: 16px;
}

.partner-token-form {
  grid-template-columns: minmax(0, 1fr);
}

.partner-dashboard {
  margin-top: 14px;
  display: grid;
  gap: 14px;
}

.partner-head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.partner-title-block {
  display: grid;
  gap: 4px;
}

.partner-title-block h2 {
  margin: 0;
  color: #17345d;
}

.partner-title-block p {
  margin: 0;
}

.partner-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.partner-kpi-item {
  border: 1px solid #d7e4f6;
  border-radius: 12px;
  background: linear-gradient(180deg, #ffffff 0%, #f6faff 100%);
  padding: 12px;
  display: grid;
  gap: 6px;
}

.partner-kpi-item span {
  color: #4a668b;
  font-size: 12px;
  font-weight: 700;
}

.partner-kpi-item strong {
  color: #16345d;
  font-size: 16px;
  line-height: 1.2;
}

.partner-codes-list {
  display: grid;
  gap: 8px;
}

.partner-code-row {
  border: 1px solid #d7e4f6;
  border-radius: 11px;
  background: #f9fcff;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.partner-code-main {
  display: grid;
  gap: 4px;
}

.partner-code-main strong {
  color: #17345d;
}

.partner-code-main small {
  color: #4b688f;
  word-break: break-all;
}

.partner-copy-btn {
  min-height: 34px;
}

.partner-commissions-wrap {
  overflow-x: auto;
}

.partner-commissions-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
}

.partner-commissions-table th,
.partner-commissions-table td {
  padding: 9px 10px;
  border-bottom: 1px solid #e1eaf7;
  text-align: left;
  font-size: 13px;
  color: #26486f;
}

.partner-commissions-table th {
  color: #17345d;
  font-size: 12px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.partner-status-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.partner-status-chip.is-pending {
  background: #fff4e2;
  color: #8a5200;
  border: 1px solid #f0c891;
}

.partner-status-chip.is-paid {
  background: #e9f9ef;
  color: #14633f;
  border: 1px solid #a7ddbf;
}

.partner-status-chip.is-cancelled {
  background: #ffecef;
  color: #8b2233;
  border: 1px solid #f2b2bc;
}

.contact-back-link {
  margin-top: 14px;
}

.contact-back-btn {
  min-width: 120px;
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(8, 21, 16, 0.5);
  display: grid;
  place-items: center;
  z-index: 20;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 12px;
  -webkit-overflow-scrolling: touch;
}

.modal-card {
  width: min(560px, calc(100vw - 24px));
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: 0 22px 44px rgba(10, 24, 18, 0.22);
  max-height: calc(100vh - 24px);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.availability-modal-card {
  width: min(1120px, calc(100vw - 24px));
}

.modal-close-btn {
  width: 34px;
  height: 34px;
  min-width: 34px;
  padding: 0;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}

.modal-close-btn svg {
  width: 16px;
  height: 16px;
}

.confirm-modal-card {
  width: min(540px, calc(100vw - 24px));
  padding: 20px;
}

.confirm-dialog-message {
  line-height: 1.45;
  font-size: 14px;
}

.confirm-dialog-message p {
  margin: 0 0 8px;
}

.confirm-dialog-message p:last-child {
  margin-bottom: 0;
}

.confirm-modal-card .modal-actions {
  margin-top: 10px;
}

.confirm-issue-list {
  margin: 0 0 10px 18px;
  padding: 0;
}

.confirm-issue-list li {
  margin-bottom: 8px;
  color: #6f4b00;
}

button.danger-btn {
  background: #be2f48;
  border-color: #be2f48;
  color: #fff;
}

button.danger-btn:hover {
  filter: brightness(0.96);
}

.modal-card .grid2 > button,
.modal-card .grid2 > .modal-actions {
  justify-self: start;
  width: auto;
}

.modal-actions {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  justify-content: flex-start;
}

#employeeAvailabilityModal .modal-actions {
  margin-top: 8px;
}

#competencyForm {
  grid-template-columns: 1fr;
}

#competencyForm > label,
#competencyForm > .modal-actions {
  grid-column: 1 / -1;
}

#employeeCompetencyEditorForm {
  grid-template-columns: 1fr;
}

#employeeCompetencyEditorForm > .assignment-info-detail,
#employeeCompetencyEditorForm > .modal-actions {
  grid-column: 1 / -1;
}

#employeeCompetencyEditorForm .assignment-info-detail > label {
  gap: 10px;
}

#employeeCompetencyEditorForm .competency-picker {
  margin-top: 4px;
}

#shiftCompetencyForm {
  grid-template-columns: 1fr;
}

#shiftCompetencyForm > div,
#shiftCompetencyForm > .modal-actions {
  grid-column: 1 / -1;
}

#shiftCompetencyForm .competency-requirement-picker {
  margin-top: 6px;
}

#exportPlanForm {
  grid-template-columns: 1fr;
}

#exportPlanForm > div,
#exportPlanForm > .modal-actions {
  grid-column: 1 / -1;
}

#exportPlanForm > div:first-child {
  margin-top: 2px;
}

#exportPlanForm > div:first-child > label {
  gap: 12px;
}

#exportPlanForm > .modal-actions {
  margin-top: 12px;
}


.settings-page-head {
  margin-bottom: 16px;
}

.settings-page-title {
  display: grid;
  gap: 4px;
}

.settings-page-subtitle {
  margin: 0;
  color: #5f6f85;
  font-size: 13px;
  font-weight: 600;
}

.settings-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.settings-actions button {
  border-radius: 12px;
  min-height: 38px;
}

.settings-actions button.ghost {
  background: linear-gradient(180deg, #ffffff 0%, #f6faff 100%);
  border-color: #d4e2f6;
  color: #17375f;
}

.settings-dev-actions {
  margin-top: 10px;
}

.settings-section {
  position: relative;
  padding: 0;
  overflow: hidden;
  margin-bottom: 14px;
  border: 1px solid #d5e1f3;
  box-shadow: 0 8px 18px rgba(15, 38, 68, 0.06);
  transition: box-shadow 0.18s ease, border-color 0.18s ease;
}

.settings-section::before {
  content: none;
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, #6b9af8 0%, #78d5bd 100%);
  opacity: 0.65;
}

.settings-section:hover {
  border-color: #d1deef;
  box-shadow: 0 10px 20px rgba(15, 38, 68, 0.07);
}

.settings-section.is-open {
  border-color: #cedded;
  box-shadow: 0 10px 20px rgba(15, 38, 68, 0.07);
}

.settings-section-toggle {
  width: 100%;
  border: 0;
  border-radius: 0;
  background: linear-gradient(180deg, #ffffff 0%, #f9fbff 100%);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  padding: 20px 22px;
  min-height: 90px;
}

.settings-section-toggle span {
  display: inline-flex;
  flex-direction: column;
  gap: 6px;
}

.settings-section-toggle strong {
  font-size: 17px;
  letter-spacing: -0.01em;
  color: #142f53;
}

.settings-section-toggle small {
  color: #5f7289;
  font-size: 12px;
  font-weight: 600;
}

.settings-section-arrow {
  color: #3f6392;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  border: 1px solid #d4e2f5;
  background: #f4f9ff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.settings-section-arrow .btn-icon {
  width: 18px;
  height: 18px;
}

.settings-section-body {
  border-top: 1px solid #dce6f6;
  padding: 18px 20px 20px;
  background: linear-gradient(180deg, #fdfefe 0%, #f7faff 100%);
}

.settings-section-body .grid2 {
  gap: 14px;
}

.settings-block-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 14px;
}

.settings-input-block {
  border: 1px solid #d8e4f5;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  border-radius: 14px;
  padding: 14px;
  display: grid;
  align-content: start;
  gap: 9px;
  box-shadow: 0 6px 14px rgba(16, 34, 58, 0.05);
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.settings-input-block:hover {
  border-color: #d4e1f3;
  box-shadow: 0 7px 15px rgba(16, 34, 58, 0.06);
}

.settings-input-block:focus-within {
  border-color: #8bb8ec;
  box-shadow: 0 0 0 3px rgba(58, 122, 207, 0.14);
}

.settings-input-title {
  margin: 0;
  color: #12325b;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.settings-input-help {
  margin: 0;
  color: #607289;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
}

.settings-input-label {
  max-width: none;
  width: 100%;
  color: #4f6480;
}

.settings-input-label input,
.settings-input-label select {
  width: 100%;
  min-height: 40px;
  border-color: #ceddef;
}

.settings-switch-wrap {
  width: 100%;
  display: flex;
  justify-content: flex-start;
  padding-top: 2px;
}

.settings-switch {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
  margin-left: 0;
}

.settings-switch input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.settings-switch-track {
  width: 54px;
  height: 30px;
  border-radius: 999px;
  border: 1px solid #c7d7ee;
  background: #e6edf8;
  padding: 2px;
  display: inline-flex;
  align-items: center;
  transition: background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.settings-switch-thumb {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 5px rgba(15, 23, 42, 0.2);
  transform: translateX(0);
  transition: transform 0.18s ease;
}

.settings-switch input[type="checkbox"]:checked + .settings-switch-track {
  background: #d4f0e6;
  border-color: #8dc8b0;
  box-shadow: 0 0 0 3px rgba(56, 170, 129, 0.13);
}

.settings-switch input[type="checkbox"]:checked + .settings-switch-track .settings-switch-thumb {
  transform: translateX(24px);
}

.settings-switch-text {
  color: #294f85;
  font-size: 12px;
  font-weight: 800;
  min-width: 20px;
}

.settings-switch input[type="checkbox"]:checked + .settings-switch-track + .settings-switch-text {
  color: #1f7c62;
}

.settings-form-actions {
  display: flex;
  align-items: flex-end;
  grid-column: 1 / -1;
  padding-top: 2px;
}

.settings-form-actions button {
  min-height: 40px;
  border-radius: 12px;
  padding-inline: 16px;
}

.settings-account-row {
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid #d7e3f4;
  background: #f7fbff;
}

#settingsMsg,
#settingsPlanningMsg,
#subscriptionMsg {
  margin: 10px 0 0;
  min-height: 18px;
}

.settings-contact-footer {
  display: grid;
  gap: 8px;
}

.settings-contact-head {
  display: grid;
  gap: 4px;
}

.settings-contact-head strong {
  color: #17345d;
  font-size: 17px;
  letter-spacing: -0.01em;
}

.settings-contact-head small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.settings-section-body .muted a {
  color: #1d4e8f;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.settings-section-body .muted a:hover,
.settings-section-body .muted a:focus-visible {
  color: #2b66b1;
}

/* Prevent iOS Safari from auto-zooming focused form fields on mobile. */
@media (hover: none) and (pointer: coarse) {
  input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]):not([type="file"]):not([type="button"]):not([type="submit"]):not([type="reset"]):not([type="hidden"]),
  select,
  textarea,
  .contact-field input,
  .contact-field textarea {
    font-size: 16px !important;
  }
}

@media (max-width: 980px) {
  .topbar {
    align-items: stretch;
    gap: 10px;
    padding: 10px;
    min-height: 96px;
  }

  .brand {
    flex: 1;
    display: flex;
    align-items: center;
  }

  .top-nav {
    order: 3;
    min-width: 100%;
    padding-bottom: 6px;
  }

  .auth-actions {
    order: 2;
  }

  .content { padding: 10px; }
  .grid2 { grid-template-columns: 1fr; }
  .settings-block-grid { grid-template-columns: 1fr; }
  .settings-section-toggle {
    min-height: 82px;
    padding: 16px 16px;
  }
  .settings-section-body {
    padding: 14px 14px 16px;
  }
  .planner-controls {
    grid-template-columns: 1fr;
  }
  .planner-range {
    justify-self: start;
  }
  .planner-week-range {
    font-size: 17px;
  }
  .planner-row {
    grid-template-columns: 160px repeat(7, minmax(120px, 1fr));
  }


  .entity-card {
    flex-wrap: wrap;
  }

  .entity-card-main {
    width: 100%;
  }

  .entity-card-aside {
    margin-left: 0;
    min-width: 0;
    max-width: 100%;
  }

  .shift-req-preview {
    align-items: flex-start;
  }

  .shift-req-list {
    justify-content: flex-start;
  }

  .planner-shift-req-list {
    justify-content: flex-end;
  }

  .entity-card-actions {
    margin-left: auto;
  }

  .login-shell { width: min(460px, 100%); }

  .login-footer {
    font-size: 11px;
    flex-wrap: wrap;
  }

  .landing-topbar,
  .landing-main {
    padding-left: 12px;
    padding-right: 12px;
  }

  .landing-topbar {
    align-items: center;
    gap: 10px;
  }

  .landing-topbar-actions {
    gap: 6px;
  }

  .landing-topbar-login,
  .landing-topbar-cta {
    padding: 8px 10px;
    font-size: 12px;
  }

  .access-mode-banner {
    padding: 10px 12px 0;
  }

  .landing-hero-grid {
    grid-template-columns: 1fr;
  }

  .why-grid,
  .landing-value-grid {
    grid-template-columns: 1fr;
  }

  .landing-proof-strip,
  .landing-pain-grid {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .contact-form-grid {
    grid-template-columns: 1fr;
  }

  .contact-story {
    grid-template-columns: 1fr;
  }

  .contact-form-row {
    grid-template-columns: 1fr;
  }

  .partner-head-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .partner-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

}

@media (max-width: 620px) {
  .partner-kpi-grid {
    grid-template-columns: 1fr;
  }
}

:root[data-theme="dark"] {
  --bg: #0e1522;
  --bg-soft: #121b2a;
  --surface: #162131;
  --surface-alt: #1b2738;
  --text: #e6edf8;
  --muted: #9fb0c7;
  --line: #2a3a52;
  --primary: #6ea8ff;
  --primary-soft: #1f2f47;
  --warn: #e9b860;
  --warn-soft: #3a2d15;
  --danger: #ff8aa0;
  --shadow: 0 14px 30px rgba(2, 8, 18, 0.42);
}

:root[data-theme="dark"] body {
  color: var(--text);
  background: linear-gradient(165deg, #0e1522 0%, #111a2a 100%);
}

:root[data-theme="dark"] .bg {
  background:
    radial-gradient(circle at 8% 12%, rgba(57, 124, 255, 0.18), transparent 35%),
    radial-gradient(circle at 90% 18%, rgba(70, 195, 162, 0.16), transparent 34%);
}

:root[data-theme="dark"] .topbar {
  border-bottom-color: rgba(45, 62, 86, 0.9);
  background: rgba(14, 21, 34, 0.88);
}

:root[data-theme="dark"] .access-mode-card {
  border-color: #7a5b2e;
  background: linear-gradient(180deg, #3f2f1b 0%, #382a18 100%);
  color: #f2ca8c;
  box-shadow: 0 12px 22px rgba(2, 8, 18, 0.36);
}

:root[data-theme="dark"] .access-mode-pill {
  border-color: #8f6a35;
  background: #553d1f;
  color: #f3cb8d;
}

:root[data-theme="dark"] .access-mode-card strong,
:root[data-theme="dark"] .access-mode-card p {
  color: #f2ca8c;
}

:root[data-theme="dark"] .brand,
:root[data-theme="dark"] .landing-brand {
  color: #eef4ff;
}

:root[data-theme="dark"] .nav-btn {
  color: #c9d9ef;
}

:root[data-theme="dark"] .nav-btn:hover {
  background: #1d2c42;
  border-color: #304867;
  box-shadow: 0 8px 16px rgba(2, 8, 18, 0.3);
}

:root[data-theme="dark"] .nav-btn.active {
  background: #263a56;
  border-color: #3b567a;
  color: #d7e5f8;
  box-shadow: inset 0 0 0 1px rgba(116, 163, 235, 0.2);
}

:root[data-theme="dark"] .card,
:root[data-theme="dark"] .entity-card,
:root[data-theme="dark"] .contact-form-card,
:root[data-theme="dark"] .why-item,
:root[data-theme="dark"] .faq-item,
:root[data-theme="dark"] .steps li {
  background: #162131;
  border-color: #2c3f5a;
  box-shadow: 0 12px 24px rgba(3, 9, 20, 0.34);
}

:root[data-theme="dark"] .steps li {
  background: linear-gradient(180deg, #1c2b40 0%, #1a283c 100%);
  border-color: #39516f;
}

:root[data-theme="dark"] .steps li strong {
  color: #ecf4ff;
}

:root[data-theme="dark"] .steps li p {
  color: #bfd2ec;
}

:root[data-theme="dark"] .entity-card:hover,
:root[data-theme="dark"] .steps li:hover,
:root[data-theme="dark"] .why-item:hover,
:root[data-theme="dark"] .landing-pain-box:hover,
:root[data-theme="dark"] .faq-item:hover {
  border-color: #3c5475;
  box-shadow: 0 16px 28px rgba(2, 8, 18, 0.38);
}

:root[data-theme="dark"] .entity-card small,
:root[data-theme="dark"] .entity-card span,
:root[data-theme="dark"] .landing-lead,
:root[data-theme="dark"] .landing-trust,
:root[data-theme="dark"] .landing-benefits li,
:root[data-theme="dark"] .landing-final p,
:root[data-theme="dark"] .why-item p,
:root[data-theme="dark"] .faq-item p,
:root[data-theme="dark"] .contact-intro,
:root[data-theme="dark"] .contact-story-item span,
:root[data-theme="dark"] .contact-form-card p,
:root[data-theme="dark"] .contact-fallback,
:root[data-theme="dark"] .settings-page-subtitle {
  color: #9fb2cc;
}

:root[data-theme="dark"] .contact-fallback a,
:root[data-theme="dark"] .contact-submit-row .muted a {
  color: #8ec2ff;
  text-decoration-color: rgba(142, 194, 255, 0.7);
}

:root[data-theme="dark"] .contact-fallback a:visited,
:root[data-theme="dark"] .contact-submit-row .muted a:visited {
  color: #a8b7ff;
  text-decoration-color: rgba(168, 183, 255, 0.65);
}

:root[data-theme="dark"] .contact-fallback a:hover,
:root[data-theme="dark"] .contact-fallback a:focus-visible,
:root[data-theme="dark"] .contact-submit-row .muted a:hover,
:root[data-theme="dark"] .contact-submit-row .muted a:focus-visible {
  color: #b2d6ff;
  text-decoration-color: rgba(178, 214, 255, 0.9);
}

:root[data-theme="dark"] .landing-hero {
  background:
    radial-gradient(circle at 88% 16%, rgba(67, 123, 246, 0.23), transparent 42%),
    radial-gradient(circle at 14% 86%, rgba(55, 173, 146, 0.2), transparent 44%),
    linear-gradient(165deg, #162233 0%, #1a273b 100%);
}

:root[data-theme="dark"] .landing-hero h1,
:root[data-theme="dark"] .landing-kicker,
:root[data-theme="dark"] .landing-steps h2,
:root[data-theme="dark"] .landing-pain h2,
:root[data-theme="dark"] .landing-value h2,
:root[data-theme="dark"] .landing-contact h2,
:root[data-theme="dark"] .landing-faq h2,
:root[data-theme="dark"] .landing-final h2,
:root[data-theme="dark"] .why-item h3,
:root[data-theme="dark"] .landing-pain-box h3,
:root[data-theme="dark"] .faq-item summary,
:root[data-theme="dark"] .contact-shell h1,
:root[data-theme="dark"] .contact-kicker,
:root[data-theme="dark"] .contact-story-item strong,
:root[data-theme="dark"] .contact-form-card h2,
:root[data-theme="dark"] .settings-section-toggle strong,
:root[data-theme="dark"] .settings-input-title {
  color: #e6efff;
}

:root[data-theme="dark"] .landing-product-shot {
  border-color: #334a69;
  background: #172232;
  box-shadow: 0 20px 34px rgba(2, 8, 18, 0.38);
}

:root[data-theme="dark"] .landing-topbar-login {
  color: #dbe8fa;
  background: #1c2b3f;
  border-color: #365071;
}

:root[data-theme="dark"] .landing-topbar-cta {
  border-color: #3b6fb8;
  box-shadow: 0 14px 26px rgba(5, 16, 33, 0.4);
}

:root[data-theme="dark"] .landing-proof-strip span {
  border-color: #355174;
  background: #1b2a3f;
  color: #c4d8f5;
}

:root[data-theme="dark"] .landing-pain-box {
  border-color: #334a67;
  background: #162131;
}

:root[data-theme="dark"] .landing-pain-list li {
  color: #b8cde9;
}

:root[data-theme="dark"] .contact-story-item {
  border-color: #334a67;
  background: linear-gradient(180deg, #1b2a3f 0%, #1e2d43 100%);
  box-shadow: 0 10px 18px rgba(2, 8, 18, 0.32);
}

:root[data-theme="dark"] .landing-secondary {
  color: #dbe8fa;
  background: #1c2b3f;
  border-color: #365071;
}

:root[data-theme="dark"] .landing-secondary:hover,
:root[data-theme="dark"] .landing-secondary:focus-visible {
  background: #23344d;
  border-color: #4a6992;
}

:root[data-theme="dark"] .login-badge {
  color: #dce8fb;
  background: #1f3150;
  border-color: #365b92;
}

:root[data-theme="dark"] .login-close {
  border-color: #3b5375;
  background: #1a2639;
  color: #c8d8f1;
}

:root[data-theme="dark"] .login-close:hover,
:root[data-theme="dark"] .login-close:focus-visible {
  border-color: #4e6c95;
  background: #22324a;
  color: #e6efff;
  box-shadow: 0 6px 12px rgba(2, 8, 18, 0.35);
}

:root[data-theme="dark"] .login-card .muted a {
  color: #8ec2ff;
  text-decoration-color: rgba(142, 194, 255, 0.7);
}

:root[data-theme="dark"] .login-card .muted a:visited {
  color: #8ec2ff;
  text-decoration-color: rgba(142, 194, 255, 0.7);
}

:root[data-theme="dark"] .login-card .muted a:hover,
:root[data-theme="dark"] .login-card .muted a:focus-visible {
  color: #b2d6ff;
  text-decoration-color: rgba(178, 214, 255, 0.9);
}

:root[data-theme="dark"] input,
:root[data-theme="dark"] select,
:root[data-theme="dark"] textarea,
:root[data-theme="dark"] .contact-field input,
:root[data-theme="dark"] .contact-field textarea {
  background: #1a2638;
  border-color: #334a67;
  color: #e2ecf9;
}

:root[data-theme="dark"] input::placeholder,
:root[data-theme="dark"] textarea::placeholder,
:root[data-theme="dark"] .contact-field input::placeholder,
:root[data-theme="dark"] .contact-field textarea::placeholder {
  color: #8ea3bf;
}

:root[data-theme="dark"] input:focus,
:root[data-theme="dark"] select:focus,
:root[data-theme="dark"] textarea:focus,
:root[data-theme="dark"] .contact-field input:focus-visible,
:root[data-theme="dark"] .contact-field textarea:focus-visible {
  border-color: #5b83bb;
  box-shadow: 0 0 0 3px rgba(93, 140, 208, 0.25);
  background: #1e2c40;
}

:root[data-theme="dark"] label,
:root[data-theme="dark"] .contact-field {
  color: #9fb3cc;
}

:root[data-theme="dark"] .partner-title-block h2,
:root[data-theme="dark"] .partner-kpi-item strong,
:root[data-theme="dark"] .partner-code-main strong,
:root[data-theme="dark"] .partner-commissions-table th {
  color: #edf4ff;
}

:root[data-theme="dark"] .partner-kpi-item,
:root[data-theme="dark"] .partner-code-row {
  border-color: rgba(78, 106, 140, 0.9);
  background: rgba(15, 32, 51, 0.86);
}

:root[data-theme="dark"] .partner-kpi-item span,
:root[data-theme="dark"] .partner-code-main small,
:root[data-theme="dark"] .partner-commissions-table td {
  color: #b9cde8;
}

:root[data-theme="dark"] .partner-commissions-table th,
:root[data-theme="dark"] .partner-commissions-table td {
  border-bottom-color: rgba(70, 95, 127, 0.72);
}

:root[data-theme="dark"] .partner-status-chip.is-pending {
  background: rgba(165, 106, 10, 0.24);
  border-color: rgba(234, 174, 84, 0.6);
  color: #ffd694;
}

:root[data-theme="dark"] .partner-status-chip.is-paid {
  background: rgba(25, 116, 73, 0.3);
  border-color: rgba(84, 188, 136, 0.6);
  color: #b5f0d0;
}

:root[data-theme="dark"] .partner-status-chip.is-cancelled {
  background: rgba(146, 38, 56, 0.3);
  border-color: rgba(208, 101, 121, 0.58);
  color: #ffc1cc;
}

:root[data-theme="dark"] button.ghost {
  background: #1a2638;
  border-color: #334a67;
  color: #d7e5f8;
}

:root[data-theme="dark"] .pill {
  background: #1f3a34;
  color: #9fe7cf;
  border: 1px solid #34584f;
}

:root[data-theme="dark"] .pill.warn {
  background: #3a2d15;
  color: #f0c878;
  border-color: #6e5830;
}

:root[data-theme="dark"] .pill.error {
  background: #4a202b;
  color: #ffc7d3;
  border-color: #874152;
}

:root[data-theme="dark"] .table-wrap,
:root[data-theme="dark"] th,
:root[data-theme="dark"] td {
  border-color: #2d415c;
}

:root[data-theme="dark"] .employee-picker-card {
  border-color: #334a67;
  background: #162131;
  box-shadow: 0 18px 32px rgba(2, 8, 18, 0.46);
}

:root[data-theme="dark"] .employee-picker-title,
:root[data-theme="dark"] .employee-picker-loading,
:root[data-theme="dark"] .employee-picker-footnote {
  color: #aabed8;
}

:root[data-theme="dark"] .employee-picker-item {
  background: #1b2a3f;
  border-color: #354d6b;
  color: #e7f0ff;
}

:root[data-theme="dark"] .employee-picker-item:hover {
  background: #233751;
  border-color: #4d7099;
}

:root[data-theme="dark"] .employee-picker-item.has-warning {
  border-color: #8f4759;
  background: #3f2029;
  color: #ffd6df;
}

:root[data-theme="dark"] .employee-picker-warning {
  color: #ffcdd7;
  background: #5a2a35;
  border-color: #8f4759;
}

:root[data-theme="dark"] .employee-select-trigger {
  background: #1b2a3f;
  border-color: #3a516f;
  color: #e7f0ff;
}

:root[data-theme="dark"] .employee-select-placeholder {
  color: #9fb3cc;
}

:root[data-theme="dark"] .employee-select-caret {
  color: #b3c6df;
}

:root[data-theme="dark"] .employee-select.open .employee-select-trigger,
:root[data-theme="dark"] .employee-select-trigger:focus {
  border-color: #5b83bb;
  box-shadow: 0 0 0 3px rgba(93, 140, 208, 0.25);
  background: #1f3047;
}

:root[data-theme="dark"] .employee-select-menu {
  background: #162131;
  border-color: #334a67;
  box-shadow: 0 18px 32px rgba(2, 8, 18, 0.46);
}

:root[data-theme="dark"] .employee-select-option {
  color: #e7f0ff;
}

:root[data-theme="dark"] .employee-select-option:hover,
:root[data-theme="dark"] .employee-select-option:focus-visible {
  background: #22344d;
  border-color: #446285;
}

:root[data-theme="dark"] th {
  background: #1b283a;
  color: #c8d8ef;
}

:root[data-theme="dark"] .planner-head-day-has-gaps {
  background: linear-gradient(180deg, #3b2f24 0%, #33291f 100%);
  border-bottom-color: #6f5436;
}

:root[data-theme="dark"] .planner-head-cell,
:root[data-theme="dark"] .planner-head-day {
  border-color: #3b5373;
  background: linear-gradient(180deg, #1f3047 0%, #22344d 100%);
  color: #cfe0f6;
}

:root[data-theme="dark"] .planner-head-day small {
  color: #9eb5d4;
}

:root[data-theme="dark"] .planner-head-day-has-warning {
  border-color: #8a6a3f;
  box-shadow: 0 0 0 2px rgba(168, 128, 74, 0.26);
}

:root[data-theme="dark"] .planner-head-day-has-error {
  border-color: #9c4a5f;
  box-shadow: 0 0 0 2px rgba(156, 74, 95, 0.3);
}

:root[data-theme="dark"] .planner-head-day-today {
  border-color: #7ea7df;
  box-shadow: 0 0 0 2px rgba(126, 167, 223, 0.28);
}

:root[data-theme="dark"] .day-gap-badge {
  background: #483524;
  border-color: #735536;
  color: #f1c884;
}

:root[data-theme="dark"] .day-error-badge {
  background: #5a2a35;
  border-color: #8f4759;
  color: #ffcdd7;
}

:root[data-theme="dark"] .planner-shift-col,
:root[data-theme="dark"] .planner-cell {
  border-color: #334964;
  background: #1a273b;
  box-shadow: 0 8px 16px rgba(2, 8, 18, 0.28);
}

:root[data-theme="dark"] .planner-shift-col-clickable:hover,
:root[data-theme="dark"] .planner-shift-col-clickable:focus-visible {
  border-color: #587da9;
  background: #203249;
  box-shadow: 0 12px 22px rgba(2, 8, 18, 0.38);
}

:root[data-theme="dark"] .planner-cell-clickable:hover,
:root[data-theme="dark"] .planner-cell-clickable:focus-visible {
  box-shadow: 0 12px 22px rgba(2, 8, 18, 0.42);
}

:root[data-theme="dark"] .planner-cell-clickable:focus-visible {
  outline: none;
}

:root[data-theme="dark"] .planner-shift-col-hint {
  color: #adc3df;
}

:root[data-theme="dark"] .planner-shift-col-has-warning {
  border-color: #8a6a3f;
  box-shadow: 0 0 0 2px rgba(168, 128, 74, 0.24), 0 8px 16px rgba(2, 8, 18, 0.28);
}

:root[data-theme="dark"] .planner-shift-col-has-error {
  border-color: #9c4a5f;
  box-shadow: 0 0 0 2px rgba(156, 74, 95, 0.28), 0 8px 16px rgba(2, 8, 18, 0.28);
}

:root[data-theme="dark"] .planner-cell-full {
  background: linear-gradient(180deg, #1f3340 0%, #1b2e39 100%);
  border-color: #3f6675;
}

:root[data-theme="dark"] .planner-cell-partial {
  background: linear-gradient(180deg, #3b2f22 0%, #33291f 100%);
  border-color: #775d3d;
}

:root[data-theme="dark"] .planner-cell-empty {
  background: linear-gradient(180deg, #3a2c1f 0%, #33261c 100%);
  border-color: #7b603d;
}

:root[data-theme="dark"] .planner-cell-has-warning {
  border-color: #8a6a3f;
  box-shadow: inset 0 0 0 2px rgba(168, 128, 74, 0.3);
}

:root[data-theme="dark"] .planner-cell-has-error {
  border-color: #724b58;
  background: linear-gradient(180deg, #3a252d 0%, #322028 100%);
}

:root[data-theme="dark"] .planner-cell-inactive {
  background: #182437;
}

:root[data-theme="dark"] .planner-cell-locked {
  border-color: #5d6f89;
  background: linear-gradient(180deg, #2b3545 0%, #252e3d 100%);
}

:root[data-theme="dark"] .planner-cell-locked::after {
  color: #d5ddeb;
  background: #3a4658;
  border-color: #5d6f89;
}

:root[data-theme="dark"] .planner-cell-locked .chip-assigned {
  background: #2b3545;
  border-color: #4c5c74;
  border-left-color: #6b7d96;
  box-shadow: none;
}

:root[data-theme="dark"] .planner-cell-locked .chip-assigned .chip-label {
  color: #c4cfdf;
}

:root[data-theme="dark"] .planner-cell-locked .cell-shortage-badge {
  color: #c6d1e2;
  background: #3a4658;
  border-color: #5a6c86;
}

:root[data-theme="dark"] .planner-empty {
  background: #182537;
  border-color: #3a516f;
  color: #9fb3cc;
}

:root[data-theme="dark"] .chip-assigned {
  background: #1c2a3f;
  border-color: #3a516f;
}

:root[data-theme="dark"] .chip-assigned-clickable:hover {
  filter: brightness(1.07);
}

:root[data-theme="dark"] .assignment-info-block {
  border-color: #3a516f;
  background: #1b2a3f;
}

:root[data-theme="dark"] .assignment-info-block-clickable:hover,
:root[data-theme="dark"] .assignment-info-block-clickable:focus-visible {
  border-color: #5f7fa8;
  background: #243852;
}

:root[data-theme="dark"] .chip-assigned .chip-label {
  color: #e6efff;
}

:root[data-theme="dark"] .chip-remove {
  background: #25364f;
  color: #c7d9f1;
}

:root[data-theme="dark"] .chip-remove:hover {
  background: #304866;
}

:root[data-theme="dark"] .chip-assigned-missing {
  background: #3a242d;
  border-color: #6a4451;
}

:root[data-theme="dark"] .chip-assigned-missing .chip-label {
  color: #f0b2c0;
}

:root[data-theme="dark"] .cell-shortage-badge {
  color: #f2ce96;
  background: #43301d;
  border-color: #7b603d;
}

:root[data-theme="dark"] .cell-error-badge {
  color: #ffcdd7;
  background: #5a2a35;
  border-color: #8f4759;
}

:root[data-theme="dark"] .availability-week-wrap {
  border-color: #32465f;
  background: #162234;
}

:root[data-theme="dark"] .availability-head-label,
:root[data-theme="dark"] .availability-head-day {
  border-color: #3b5373;
  background: #1e3047;
  color: #c8daef;
}

:root[data-theme="dark"] .availability-shift-col {
  border-color: #334964;
  background: #1a273b;
}

:root[data-theme="dark"] .availability-quick-btn {
  border-color: #3c5678;
  background: #1e2d43;
  color: #b5c9e5;
}

:root[data-theme="dark"] .availability-quick-btn.is-available {
  color: #7fe0b7;
  border-color: #2f6b57;
  background: #1c3a31;
}

:root[data-theme="dark"] .availability-quick-btn.is-unavailable {
  color: #f1a7b4;
  border-color: #724957;
  background: #3a252d;
}

:root[data-theme="dark"] .availability-quick-btn:hover:not(:disabled),
:root[data-theme="dark"] .availability-quick-btn:focus-visible:not(:disabled) {
  border-color: #53749f;
  background: #223750;
  box-shadow: 0 6px 12px rgba(2, 8, 18, 0.35);
}

:root[data-theme="dark"] .availability-cell {
  border-color: #334964;
  background: #1a273b;
  color: #d7e5f8;
}

:root[data-theme="dark"] .availability-cell.inactive {
  background: #182437;
  border-color: #2f425c;
  color: #8ea3bf;
}

:root[data-theme="dark"] .availability-cell.is-available {
  background: #1d3a32;
  border-color: #3f7b68;
  color: #86d3b5;
}

:root[data-theme="dark"] .availability-cell.is-unavailable {
  background: #3a242c;
  border-color: #744957;
  color: #f2b0bf;
}

:root[data-theme="dark"] .day-btn {
  background: #1b2a3f;
  border-color: #3a516f;
  color: #d8e6fa;
}

:root[data-theme="dark"] .day-btn.active {
  background: #2d4463;
  border-color: #5c81b6;
  color: #eef5ff;
  box-shadow: inset 0 0 0 1px rgba(163, 196, 243, 0.28);
}

:root[data-theme="dark"] .planner-week-range {
  color: #e7f0ff;
}

:root[data-theme="dark"] .planner-week-number {
  color: #aabbd4;
}

:root[data-theme="dark"] .modal {
  background: rgba(6, 10, 18, 0.72);
}

:root[data-theme="dark"] .modal-card {
  box-shadow: 0 24px 44px rgba(2, 8, 18, 0.5);
}

:root[data-theme="dark"] .confirm-dialog-message {
  color: #d3e0f3;
}

:root[data-theme="dark"] .confirm-issue-list li {
  color: #f2d2a0;
  background: #3f3120;
  border: 1px solid #745938;
  border-radius: 10px;
  padding: 6px 8px;
}

:root[data-theme="dark"] .settings-section {
  border-color: #32465f;
  box-shadow: 0 10px 22px rgba(2, 8, 18, 0.35);
}

:root[data-theme="dark"] .validation-item {
  border-color: #6f5436;
  background: #3b2e21;
  color: #f2d2a0;
}

:root[data-theme="dark"] .validation-item-warning {
  border-color: #735736;
  background: #3f3120;
  color: #f1c884;
}

:root[data-theme="dark"] .validation-item-warning .validation-item-badge {
  background: #4a371f;
  border-color: #735736;
  color: #f1c884;
}

:root[data-theme="dark"] .validation-item-error {
  border-color: #8f4759;
  background: #3f2029;
  color: #ffc0cc;
}

:root[data-theme="dark"] .validation-item-error .validation-item-badge {
  background: #5a2a35;
  border-color: #8f4759;
  color: #ffcdd7;
}

:root[data-theme="dark"] .segmented-tabs {
  background: #162438;
  border: 1px solid #334a67;
  border-radius: 999px;
  padding: 3px;
}

:root[data-theme="dark"] .tab-btn {
  background: transparent;
  border-color: transparent;
  color: #a9beda;
}

:root[data-theme="dark"] .tab-btn:hover,
:root[data-theme="dark"] .tab-btn:focus-visible {
  background: #22344d;
  border-color: #3f5d82;
  color: #d7e6fb;
}

:root[data-theme="dark"] .tab-btn.active {
  background: #2a4160;
  border-color: #5f84ba;
  color: #edf5ff;
  box-shadow: inset 0 0 0 1px rgba(173, 204, 245, 0.25);
}

:root[data-theme="dark"] .shift-req-title {
  color: #9fb6d4;
}

:root[data-theme="dark"] .shift-req-open-btn {
  color: #c5d9f4;
  border-color: #46668e;
  background: #1f3048;
}

:root[data-theme="dark"] .shift-req-open-btn:hover,
:root[data-theme="dark"] .shift-req-open-btn:focus-visible {
  color: #eaf3ff;
  border-color: #5d84b7;
  background: #27405f;
}

:root[data-theme="dark"] .shift-req-empty {
  color: #9eb1ca;
}

:root[data-theme="dark"] .shift-req-chip {
  border-color: #3a5473;
  border-color: color-mix(in srgb, var(--competency-color, #6ea8ff) 42%, #3a5473);
  background: #1c2b40;
  background: color-mix(in srgb, var(--competency-color, #6ea8ff) 18%, #1c2b40);
  color: #d7e7fb;
  color: color-mix(in srgb, var(--competency-color, #6ea8ff) 24%, #d7e7fb);
}

:root[data-theme="dark"] .shift-req-more:hover,
:root[data-theme="dark"] .shift-req-more:focus-visible {
  border-color: #52749f;
  background: #243752;
}

:root[data-theme="dark"] .shift-req-more {
  color: #abc3e1;
  border-color: #47678f;
  background: #1f3048;
}

:root[data-theme="dark"] .export-type-card {
  border-color: #3f5778;
  background: linear-gradient(180deg, #1b2a3f 0%, #1f3048 100%);
  box-shadow: inset 0 0 0 1px rgba(120, 151, 194, 0.12);
}

:root[data-theme="dark"] .export-type-card:hover {
  border-color: #567aa8;
  background: linear-gradient(180deg, #21334c 0%, #253851 100%);
}

:root[data-theme="dark"] .export-type-card:has(input:checked) {
  border-color: #59c3a2;
  background: linear-gradient(180deg, #21403d 0%, #244a45 100%);
  box-shadow: 0 0 0 3px rgba(89, 195, 162, 0.22), inset 0 0 0 1px rgba(206, 245, 232, 0.16);
}

:root[data-theme="dark"] .export-type-card input[type="radio"] {
  accent-color: #73dfbd;
}

:root[data-theme="dark"] .export-type-card strong {
  color: #ebf4ff;
}

:root[data-theme="dark"] .export-type-card small {
  color: #a9bdd8;
}

:root[data-theme="dark"] .competency-chip {
  background: #1b2a3f;
  border-color: #3a5473;
  border-color: color-mix(in srgb, var(--competency-color, #6ea8ff) 34%, #3a5473);
  color: #d4e5fb;
  color: color-mix(in srgb, var(--competency-color, #6ea8ff) 18%, #d4e5fb);
}

:root[data-theme="dark"] .competency-chip.active {
  background: #22344d;
  background: color-mix(in srgb, var(--competency-color, #6ea8ff) 26%, #22344d);
  border-color: #4e709b;
  border-color: color-mix(in srgb, var(--competency-color, #6ea8ff) 54%, #4e709b);
  color: #eaf3ff;
  color: color-mix(in srgb, var(--competency-color, #6ea8ff) 20%, #eaf3ff);
}

:root[data-theme="dark"] .competency-picker-empty {
  color: #9eb4cf;
}

:root[data-theme="dark"] .competency-requirement-row {
  border-color: #3a5473;
  background: #1b2a3f;
}

:root[data-theme="dark"] .competency-requirement-name {
  color: #d8e8ff;
}

:root[data-theme="dark"] .competency-requirement-count-wrap {
  color: #a9bfdc;
}

:root[data-theme="dark"] .competency-chip-dot {
  box-shadow: 0 0 0 1px rgba(232, 242, 255, 0.2);
}

:root[data-theme="dark"] .help-blob {
  border-color: #4a6383;
  background: #1f3148;
  color: #c0d6f2;
}

:root[data-theme="dark"] .help-blob:hover,
:root[data-theme="dark"] .help-blob:focus-visible {
  border-color: #6288b8;
  background: #294161;
  color: #def0ff;
}

:root[data-theme="dark"] .occupancy-help-intro {
  color: #a9bfdc;
}

:root[data-theme="dark"] .occupancy-help-card {
  border-color: #3e5d84;
  background: linear-gradient(180deg, #1a2b40 0%, #18263a 100%);
}

:root[data-theme="dark"] .occupancy-help-card h4 {
  color: #deebff;
}

:root[data-theme="dark"] .occupancy-help-card p {
  color: #c4d5ea;
}

:root[data-theme="dark"] .occupancy-help-example strong {
  color: #ecf4ff;
}

:root[data-theme="dark"] .occupancy-help-chip {
  border-color: #5f83b3;
  background: #223954;
  color: #d8e9ff;
}

:root[data-theme="dark"] .occupancy-help-note {
  border-color: #466389;
  background: #1b2c42;
  color: #b7cce7;
}

:root[data-theme="dark"] .settings-section-toggle {
  background: linear-gradient(180deg, #172335 0%, #1b283b 100%);
}

:root[data-theme="dark"] .settings-section-arrow {
  color: #c7ddf8;
  border-color: #45648d;
  background: #1f3148;
}

:root[data-theme="dark"] .settings-section-toggle:hover .settings-section-arrow,
:root[data-theme="dark"] .settings-section-toggle:focus-visible .settings-section-arrow {
  color: #e8f2ff;
  border-color: #5e85b8;
  background: #27405f;
}

:root[data-theme="dark"] .settings-section-toggle small,
:root[data-theme="dark"] .settings-input-help,
:root[data-theme="dark"] .settings-switch-text {
  color: #a7b9d0;
}

:root[data-theme="dark"] .settings-switch-track {
  border-color: #3d5678;
  background: linear-gradient(180deg, #162437 0%, #1d2f47 100%);
  box-shadow: inset 0 0 0 1px rgba(108, 140, 183, 0.16);
}

:root[data-theme="dark"] .settings-switch-thumb {
  background: linear-gradient(180deg, #dce8fb 0%, #c6d7f4 100%);
  box-shadow: 0 2px 8px rgba(2, 8, 18, 0.48);
}

:root[data-theme="dark"] .settings-switch input[type="checkbox"]:checked + .settings-switch-track {
  border-color: #56bc9c;
  background: linear-gradient(180deg, #1f6f60 0%, #24886f 100%);
  box-shadow: 0 0 0 3px rgba(86, 188, 156, 0.22), inset 0 0 0 1px rgba(255, 255, 255, 0.14);
}

:root[data-theme="dark"] .settings-switch input[type="checkbox"]:checked + .settings-switch-track .settings-switch-thumb {
  background: linear-gradient(180deg, #f0fbf7 0%, #d8f4ea 100%);
}

:root[data-theme="dark"] .settings-switch input[type="checkbox"]:checked + .settings-switch-track + .settings-switch-text {
  color: #9de5ce;
}

:root[data-theme="dark"] .settings-section-body .muted a {
  color: #8ec2ff;
  text-decoration-color: rgba(142, 194, 255, 0.7);
}

:root[data-theme="dark"] .settings-section-body .muted a:visited {
  color: #a8b7ff;
  text-decoration-color: rgba(168, 183, 255, 0.65);
}

:root[data-theme="dark"] .settings-section-body .muted a:hover,
:root[data-theme="dark"] .settings-section-body .muted a:focus-visible {
  color: #b2d6ff;
  text-decoration-color: rgba(178, 214, 255, 0.9);
}

:root[data-theme="dark"] .settings-section-body {
  border-top-color: #32465f;
  background: linear-gradient(180deg, #162131 0%, #1a2639 100%);
}

:root[data-theme="dark"] .settings-input-block {
  border-color: #334964;
  background: linear-gradient(180deg, #1b2a3f 0%, #1c2c42 100%);
  box-shadow: 0 8px 16px rgba(2, 8, 18, 0.32);
}

:root[data-theme="dark"] .settings-account-row {
  background: #1a273b;
  border-color: #32465f;
}

.onboarding-layer {
  position: fixed;
  inset: 0;
  z-index: 140;
  pointer-events: none;
}

.onboarding-spotlight {
  position: fixed;
  border-radius: 14px;
  border: 2px solid #6e9ef0;
  box-shadow:
    0 0 0 9999px rgba(7, 20, 40, 0.38),
    0 12px 28px rgba(12, 33, 67, 0.24);
  transition:
    left 0.16s cubic-bezier(0.22, 1, 0.36, 1),
    top 0.16s cubic-bezier(0.22, 1, 0.36, 1),
    width 0.16s cubic-bezier(0.22, 1, 0.36, 1),
    height 0.16s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.16s ease;
  will-change: left, top, width, height;
  pointer-events: none;
}

.onboarding-intro {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(440px, calc(100vw - 28px));
  border-radius: 18px;
  border: 1px solid #c8daf5;
  background:
    radial-gradient(circle at 100% 0, rgba(76, 141, 247, 0.16), transparent 58%),
    linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
  box-shadow: 0 24px 44px rgba(8, 26, 54, 0.28);
  padding: 16px 16px 14px;
  pointer-events: auto;
  animation: onboarding-pop-in 0.24s ease;
}

.onboarding-intro h4 {
  margin: 0 0 6px;
  font-size: 18px;
}

.onboarding-intro p {
  margin: 0;
  color: #35577c;
}

.onboarding-intro-actions {
  margin-top: 12px;
  display: flex;
  align-items: stretch;
  gap: 8px;
}

.onboarding-intro-actions button {
  flex: 1 1 0;
  justify-content: center;
  min-height: 38px;
}

.onboarding-coach {
  position: fixed;
  right: 14px;
  top: 88px;
  width: min(380px, calc(100vw - 24px));
  max-height: min(68vh, 540px);
  border-radius: 18px;
  border: 1px solid #c8daf5;
  background:
    radial-gradient(circle at 100% 0, rgba(76, 141, 247, 0.15), transparent 52%),
    linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
  box-shadow: 0 18px 34px rgba(8, 26, 54, 0.22);
  padding: 14px 14px 12px;
  overflow: auto;
  pointer-events: auto;
  animation: onboarding-pop-in 0.22s ease;
}

.onboarding-coach-kicker {
  margin: 0 0 6px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #2f5f9f;
}

.onboarding-coach h4 {
  margin: 0 0 6px;
  font-size: 17px;
  line-height: 1.25;
}

.onboarding-coach p {
  margin: 0;
}

.onboarding-coach-hint {
  margin-top: 8px !important;
  padding: 7px 9px;
  border-radius: 10px;
  border: 1px solid #d6e3f6;
  background: #f3f8ff;
  color: #35577c;
  font-size: 12px;
  font-weight: 700;
}

.onboarding-coach-hint.is-done {
  border-color: #b8e2cd;
  background: #ebfbf2;
  color: #1f6d44;
}

.onboarding-coach-actions {
  margin-top: 10px;
  display: flex;
  align-items: stretch;
  gap: 8px;
}

.onboarding-checklist {
  position: fixed;
  left: 14px;
  bottom: 14px;
  width: min(360px, calc(100vw - 24px));
  max-height: min(56vh, 520px);
  border-radius: 18px;
  border: 1px solid #c8d9f3;
  background:
    radial-gradient(circle at 0 100%, rgba(88, 159, 255, 0.13), transparent 54%),
    linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  box-shadow: 0 16px 34px rgba(10, 30, 60, 0.18);
  padding: 12px;
  overflow: auto;
  pointer-events: auto;
  animation: onboarding-pop-in 0.24s ease;
}

.onboarding-checklist-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}

.onboarding-checklist-title p {
  margin: 0;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 800;
  color: #3f6b9f;
}

.onboarding-checklist-title strong {
  display: block;
  margin-top: 2px;
  font-size: 14px;
}

.onboarding-checklist-progress {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  border-radius: 999px;
  padding: 4px 9px;
  border: 1px solid #c9daf4;
  background: #eef5ff;
  color: #2f5c94;
  font-size: 12px;
  font-weight: 800;
}

.onboarding-checklist-list {
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 6px;
}

.onboarding-checklist-item {
  width: 100%;
  border: 1px solid #d9e5f8;
  border-radius: 12px;
  background: #fff;
  padding: 7px 8px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  text-align: left;
  color: #213a58;
  transform: none !important;
  filter: none !important;
  transition: border-color 0.14s ease, background-color 0.14s ease;
}

.onboarding-checklist-item:hover,
.onboarding-checklist-item:focus-visible {
  border-color: #b5cdf0;
  background: #f4f9ff;
}

.onboarding-checklist-item.is-current {
  border-color: #90b8ed;
  background: #ecf4ff;
}

.onboarding-checklist-item.is-done {
  border-color: #b7e0cb;
  background: #ecfaf2;
}

.onboarding-checklist-index {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  border: 1px solid #c6d9f5;
  background: #f2f7ff;
  color: #2f5f97;
}

.onboarding-checklist-item.is-done .onboarding-checklist-index {
  border-color: #95d5af;
  background: #dff5e9;
  color: #1e7447;
}

.onboarding-checklist-copy {
  display: grid;
  min-width: 0;
}

.onboarding-checklist-copy strong {
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.onboarding-checklist-copy small {
  margin-top: 2px;
  color: #577394;
  font-size: 11px;
}

.onboarding-checklist-actions {
  margin-top: 10px;
  display: flex;
  align-items: stretch;
  gap: 8px;
}

.onboarding-coach-actions button,
.onboarding-checklist-actions button {
  flex: 1 1 0;
  justify-content: center;
  min-height: 38px;
}

.onboarding-launcher {
  position: fixed;
  left: 14px;
  bottom: 14px;
  z-index: 141;
  box-shadow: 0 14px 28px rgba(10, 34, 70, 0.22);
  animation: onboarding-pop-in 0.22s ease;
}

.onboarding-done-toast {
  position: fixed;
  right: 14px;
  top: 88px;
  z-index: 141;
  min-width: 220px;
  max-width: min(360px, calc(100vw - 28px));
  border-radius: 14px;
  border: 1px solid #afd9be;
  background: linear-gradient(180deg, #f0fbf5 0%, #e3f7ec 100%);
  color: #1f613f;
  padding: 10px 12px;
  box-shadow: 0 16px 30px rgba(10, 55, 33, 0.2);
  display: grid;
  gap: 2px;
  animation: onboarding-toast-in 0.24s ease;
}

.onboarding-done-toast strong {
  font-size: 13px;
}

.onboarding-done-toast span {
  font-size: 12px;
}

.onboarding-target-active {
  box-shadow: 0 0 0 3px rgba(116, 164, 237, 0.55) !important;
}

.onboarding-target-pulse {
  animation: onboarding-target-pulse 0.85s ease;
}

@keyframes onboarding-pop-in {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes onboarding-toast-in {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes onboarding-target-pulse {
  0% {
    box-shadow: 0 0 0 2px rgba(116, 164, 237, 0.12);
  }
  45% {
    box-shadow: 0 0 0 6px rgba(116, 164, 237, 0.36);
  }
  100% {
    box-shadow: 0 0 0 3px rgba(116, 164, 237, 0.55);
  }
}

@media (max-width: 780px) {
  .onboarding-intro {
    left: 10px;
    right: 10px;
    top: 72px;
    transform: none;
    width: auto;
  }

  .onboarding-coach {
    left: 10px;
    right: 10px;
    top: 72px;
    width: auto;
    max-height: 34vh;
  }

  .onboarding-checklist {
    left: 10px;
    right: 10px;
    width: auto;
    bottom: 10px;
    max-height: 34vh;
    overflow: auto;
  }

  .onboarding-launcher {
    left: 10px;
    right: 10px;
    bottom: 10px;
    justify-content: center;
  }

  .onboarding-done-toast {
    left: 10px;
    right: 10px;
    top: 78px;
    max-width: none;
  }
}

:root[data-theme="dark"] .onboarding-spotlight {
  border-color: #7ca9e9;
  box-shadow:
    0 0 0 9999px rgba(3, 10, 22, 0.54),
    0 14px 30px rgba(2, 8, 16, 0.45);
}

:root[data-theme="dark"] .onboarding-intro {
  border-color: #3d5a82;
  background:
    radial-gradient(circle at 100% 0, rgba(111, 166, 255, 0.22), transparent 58%),
    linear-gradient(180deg, #1a2a40 0%, #19273b 100%);
  color: #e4efff;
  box-shadow: 0 24px 40px rgba(2, 8, 18, 0.56);
}

:root[data-theme="dark"] .onboarding-intro p {
  color: #b7cde8;
}

:root[data-theme="dark"] .onboarding-coach {
  border-color: #3d5a82;
  background:
    radial-gradient(circle at 100% 0, rgba(111, 166, 255, 0.2), transparent 54%),
    linear-gradient(180deg, #1a2a40 0%, #19273b 100%);
  color: #e4efff;
  box-shadow: 0 22px 36px rgba(2, 8, 18, 0.52);
}

:root[data-theme="dark"] .onboarding-coach-kicker {
  color: #9cc0f1;
}

:root[data-theme="dark"] .onboarding-coach-hint {
  border-color: #4c6890;
  background: #233854;
  color: #c8ddf8;
}

:root[data-theme="dark"] .onboarding-coach-hint.is-done {
  border-color: #4d8b6c;
  background: #1f3a2f;
  color: #bfe7d1;
}

:root[data-theme="dark"] .onboarding-checklist {
  border-color: #3f5d83;
  background:
    radial-gradient(circle at 0 100%, rgba(97, 159, 246, 0.22), transparent 56%),
    linear-gradient(180deg, #1a2a40 0%, #1a273b 100%);
  color: #e0ebff;
  box-shadow: 0 18px 32px rgba(2, 8, 18, 0.44);
}

:root[data-theme="dark"] .onboarding-checklist-title p {
  color: #9fc0ed;
}

:root[data-theme="dark"] .onboarding-checklist-progress {
  border-color: #4d6f98;
  background: #22354f;
  color: #cce0fd;
}

:root[data-theme="dark"] .onboarding-checklist-item {
  border-color: #3f5e84;
  background: #1e3049;
  color: #dbe9ff;
}

:root[data-theme="dark"] .onboarding-checklist-item:hover,
:root[data-theme="dark"] .onboarding-checklist-item:focus-visible {
  border-color: #6389bb;
  background: #26405f;
}

:root[data-theme="dark"] .onboarding-checklist-item.is-current {
  border-color: #6a95ce;
  background: #2a4566;
}

:root[data-theme="dark"] .onboarding-checklist-item.is-done {
  border-color: #4f8d71;
  background: #234035;
}

:root[data-theme="dark"] .onboarding-checklist-index {
  border-color: #577ba6;
  background: #27405f;
  color: #d6e7ff;
}

:root[data-theme="dark"] .onboarding-checklist-item.is-done .onboarding-checklist-index {
  border-color: #5aa37d;
  background: #2f5a47;
  color: #d8ffeb;
}

:root[data-theme="dark"] .onboarding-checklist-copy small {
  color: #a7c0e1;
}

:root[data-theme="dark"] .onboarding-done-toast {
  border-color: #4f8f6f;
  background: linear-gradient(180deg, #1f3a2f 0%, #233e33 100%);
  color: #c7eed8;
  box-shadow: 0 16px 28px rgba(2, 10, 8, 0.48);
}

:root[data-theme="dark"] .onboarding-target-active {
  box-shadow: 0 0 0 3px rgba(126, 173, 245, 0.7) !important;
}

@media (prefers-reduced-motion: reduce) {
  .onboarding-spotlight,
  .onboarding-intro,
  .onboarding-coach,
  .onboarding-checklist,
  .onboarding-launcher,
  .onboarding-done-toast,
  .onboarding-target-pulse {
    animation: none !important;
    transition: none !important;
  }
}
