:root {
  --bg: #f3f5f7;
  --surface: #ffffff;
  --ink: #17212b;
  --muted: #5d6b78;
  --line: #e4eaef;
  --accent: #1b4f72;
  --accent-hover: #163f5c;
  --accent-soft: #e7f0f6;
  --danger: #8d2f2f;
  --danger-bg: #fdf3f3;
  --danger-line: #f0d6d6;
  --shadow: 0 12px 32px rgba(23, 33, 43, 0.06);
  --shadow-hover: 0 18px 36px rgba(23, 33, 43, 0.12);
  --radius: 24px;
  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  max-width: 100%;
  overflow-x: clip;
}

html {
  height: 100%;
}

body {
  margin: 0;
  min-height: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--bg);
}

img,
svg {
  max-width: 100%;
}

button,
input {
  font: inherit;
}

h1 {
  margin: 0 0 8px;
  font-size: 1.75rem;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.02em;
}

p {
  margin: 0;
}

a {
  color: var(--accent);
}

[hidden] {
  display: none !important;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

::selection {
  background: #d5e6f2;
}

.auth-body {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  background:
    radial-gradient(900px 420px at 50% 0%, #e6eef5 0%, rgba(230, 238, 245, 0) 70%),
    var(--bg);
}

.auth-card {
  width: min(440px, 100%);
  background: var(--surface);
  border: 1px solid rgba(23, 33, 43, 0.05);
  border-radius: var(--radius);
  box-shadow: 0 18px 50px rgba(23, 33, 43, 0.08);
  padding: 36px 32px 32px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: #fff;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.brand-text {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.lede {
  color: var(--muted);
  margin-bottom: 22px;
}

.hint {
  color: var(--muted);
  font-size: 0.92rem;
  margin: -2px 0 14px;
}

.climate-linked-hint {
  margin-top: 0;
  margin-bottom: 16px;
  padding: 10px 12px;
  border-left: 3px solid var(--accent, #1f7a45);
  background: rgba(31, 122, 69, 0.06);
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}

.field span {
  font-size: 0.92rem;
  font-weight: 600;
}

.field input::placeholder,
.email-page input::placeholder {
  color: #9aa6b2;
}

.field input {
  width: 100%;
  height: 48px;
  border: 1px solid #d5dee6;
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  padding: 0 14px;
}

.field input:focus {
  outline: 3px solid #d3e3f0;
  border-color: var(--accent);
}

.form-error {
  margin: 0 0 16px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--danger-bg);
  color: var(--danger);
  border: 1px solid var(--danger-line);
}

.button,
.button-quiet,
.menu-button {
  cursor: pointer;
}

.button {
  width: 100%;
  height: 48px;
  margin-top: 4px;
  border: 0;
  border-radius: 12px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
}

.button:hover {
  background: var(--accent-hover);
}

.button:focus-visible,
.button-quiet:focus-visible,
.menu-button:focus-visible,
.profile-trigger:focus-visible,
.tile:focus-visible,
.text-link:focus-visible {
  outline: 3px solid #b9d2e4;
  outline-offset: 2px;
}

.button-quiet {
  width: 100%;
  height: 44px;
  margin-top: 8px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--muted);
  font-weight: 600;
}

.button-quiet:hover {
  background: #f3f6f8;
  color: var(--ink);
}

.topbar {
  width: 100%;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px max(28px, env(safe-area-inset-right)) 12px max(28px, env(safe-area-inset-left));
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
}

.topbar-lead {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1 1 auto;
  min-width: 0;
}

.back-link {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--ink);
  text-decoration: none;
}

.back-link svg {
  width: 18px;
  height: 18px;
  display: block;
}

.back-link:hover {
  background: #f3f6f8;
}

.greeting {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.topbar-tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  flex: 0 1 auto;
  min-width: 0;
}

.language-switch {
  position: relative;
  flex: 0 1 auto;
  min-width: 0;
}

.language-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  min-height: 44px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 700;
  padding: 6px 10px;
}

.language-trigger:hover,
.language-trigger[aria-expanded="true"] {
  background: #f3f6f8;
}

.language-trigger[aria-expanded="true"] .chevron {
  transform: rotate(180deg);
}

.language-flag {
  flex: 0 0 auto;
  font-size: 1.05rem;
  line-height: 1;
}

.language-name {
  min-width: 0;
  max-width: 9rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.language-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: max-content;
  min-width: 190px;
  max-width: calc(100vw - 32px);
  padding: 6px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-hover);
  z-index: 30;
}

.language-option {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 44px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  text-align: left;
  padding: 8px 12px;
}

.language-option:hover,
.language-option:focus-visible,
.language-option[aria-selected="true"] {
  background: #f3f6f8;
}

.language-check {
  margin-left: auto;
  color: var(--accent);
}

.profile {
  position: relative;
  flex: 0 1 auto;
  min-width: 0;
}

.profile-trigger {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: 100%;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: inherit;
  font-weight: 600;
  padding: 6px 10px 6px 6px;
}

.profile-trigger:hover,
.profile-trigger[aria-expanded="true"] {
  background: #f3f6f8;
}

.avatar {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.92rem;
  font-weight: 700;
  overflow: hidden;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 40vw;
}

.chevron {
  display: inline-flex;
  color: var(--muted);
  transition: transform 0.16s ease;
}

.chevron svg {
  width: 16px;
  height: 16px;
  display: block;
}

.profile-trigger[aria-expanded="true"] .chevron {
  transform: rotate(180deg);
}

.profile-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: max-content;
  min-width: 180px;
  max-width: calc(100vw - 32px);
  padding: 6px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-hover);
}

.menu-button {
  width: 100%;
  text-align: left;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--ink);
  font-weight: 600;
  padding: 10px 12px;
}

.menu-button:hover {
  background: #f3f6f8;
}

.stage {
  width: 100%;
  min-height: calc(100vh - 72px);
  min-height: calc(100dvh - 72px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px max(20px, env(safe-area-inset-right)) 56px max(20px, env(safe-area-inset-left));
}

.stage.stage-flow {
  align-items: flex-start;
  justify-content: center;
}

.tiles {
  width: min(100%, 1080px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 240px));
  justify-content: center;
  gap: 20px;
}

.tiles.is-single {
  grid-template-columns: minmax(min(100%, 240px), 300px);
}

.tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  aspect-ratio: 1;
  min-width: 0;
  padding: 24px;
  text-decoration: none;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid rgba(23, 33, 43, 0.04);
  border-radius: 28px;
  box-shadow: var(--shadow);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.tile:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.tile-icon,
.panel-icon {
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent);
}

.tile-icon {
  width: 64px;
  height: 64px;
  border-radius: 18px;
}

.tile-icon svg,
.panel-icon svg {
  width: 30px;
  height: 30px;
  display: block;
}

.tile-label {
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-align: center;
}

.panel {
  width: min(520px, 100%);
  background: var(--surface);
  border: 1px solid rgba(23, 33, 43, 0.04);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 40px 36px;
  text-align: center;
}

.panel-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 18px;
  border-radius: 18px;
}

.panel p {
  color: var(--muted);
}

.eyebrow {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.text-link {
  display: inline-flex;
  margin-top: 18px;
  font-weight: 700;
  text-decoration: none;
}

.text-link:hover {
  text-decoration: underline;
}

@media (max-width: 640px) {
  .topbar {
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .profile-name {
    display: none;
  }

  .language-name {
    max-width: 6.5rem;
  }

  .greeting {
    font-size: 1rem;
  }

  .auth-card,
  .panel {
    padding: 28px 20px;
  }

  h1 {
    font-size: 1.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tile,
  .chevron {
    transition: none;
  }

  .tile:hover {
    transform: none;
  }
}

.page {
  width: 100%;
  max-width: 1040px;
  min-width: 0;
  flex: 1 1 auto;
}

.page-head,
.page-toolbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 20px;
  margin-bottom: 18px;
  min-width: 0;
  max-width: 100%;
}

.page-head-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: flex-end;
  gap: 10px 16px;
  min-width: 0;
  max-width: 100%;
  margin-left: auto;
}

.export-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
  min-width: 0;
  max-width: 100%;
}

.export-button {
  min-height: 36px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--accent);
  font: inherit;
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
}

.export-button:hover {
  background: var(--accent-soft);
}

.export-status {
  flex: 1 0 100%;
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  text-align: right;
}

.export-status.is-error {
  color: var(--danger);
}

.print-only {
  display: none;
}

.page-intro h1 {
  margin-bottom: 4px;
}

.page-intro p {
  color: var(--muted);
}

.button.button-inline,
.button-quiet.button-inline {
  width: auto;
  min-height: 44px;
  height: auto;
  padding: 0 16px;
}

.button.button-danger {
  background: #8d2f2f;
}

.button.button-danger:hover {
  background: #742626;
}

.search {
  display: block;
  margin-bottom: 16px;
}

.search input,
.field select {
  width: 100%;
  height: 48px;
  border: 1px solid #d5dee6;
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  padding: 0 14px;
}

.search input:focus,
.field select:focus {
  outline: 3px solid #d3e3f0;
  border-color: var(--accent);
}

.user-panel {
  background: #fff;
  border: 1px solid rgba(23, 33, 43, 0.04);
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: 8px;
}

.user-head,
.user-row {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 0.65fr) minmax(0, 0.8fr) minmax(0, 1.05fr) minmax(0, 1.2fr) minmax(0, 0.75fr) auto;
  column-gap: 12px;
  align-items: center;
}

.user-head > *,
.user-row > * {
  min-width: 0;
}

.user-head {
  padding: 8px 12px 10px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
}

.user-head-actions {
  text-align: right;
}

.user-row {
  position: relative;
  padding: 10px 12px;
  border-radius: 14px;
}

.user-row:hover {
  background: #f6f8fa;
}

.user-row.is-open {
  z-index: 3;
  background: #f6f8fa;
}

.user-person {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.person-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 700;
}

.user-date {
  color: var(--ink);
}

.badge {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  min-height: 26px;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1.2;
}

.badge-admin {
  background: var(--accent-soft);
  color: var(--accent);
}

.badge-user,
.badge-normal {
  background: #f1f4f7;
  color: #3e4c59;
}

.badge-active {
  background: #e7f6ee;
  color: #1d6b45;
}

.badge-inactive {
  background: #f8f1f1;
  color: #8d2f2f;
}

.badge-alert {
  background: #fdf6e8;
  color: #8a5a12;
}

.user-actions {
  position: relative;
  display: flex;
  justify-content: flex-end;
}

.icon-button {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  display: grid;
  place-items: center;
  cursor: pointer;
}

.icon-button svg {
  width: 18px;
  height: 18px;
  display: block;
}

.icon-button:hover,
.icon-button[aria-expanded="true"] {
  background: #e8eef3;
  color: var(--ink);
}

.row-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 4;
  width: max-content;
  min-width: 220px;
  max-width: min(280px, calc(100vw - 32px));
  padding: 6px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-hover);
}

.menu-button:disabled {
  color: #8b97a3;
  cursor: not-allowed;
}

.menu-button:disabled:hover {
  background: transparent;
}

.menu-note {
  margin: 0 8px 6px;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.35;
}

.user-empty {
  margin: 8px 12px 16px;
  color: var(--muted);
}

.check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 2px 0 16px;
  font-weight: 600;
}

.check input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--accent);
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 20px 16px;
  background: rgba(23, 33, 43, 0.38);
}

.modal-card {
  width: min(460px, 100%);
  max-height: calc(100dvh - 40px);
  overflow: auto;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 18px 50px rgba(23, 33, 43, 0.16);
  padding: 24px;
}

.modal-card h2 {
  margin: 0 0 8px;
  font-size: 1.35rem;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}

.back-link:focus-visible,
.icon-button:focus-visible {
  outline: 3px solid #b9d2e4;
  outline-offset: 2px;
}

@media (max-width: 900px) {
  .user-head {
    display: none;
  }

  .user-row {
    display: block;
    margin: 8px;
    padding: 14px 52px 14px 14px;
    border: 1px solid var(--line);
    border-radius: 16px;
  }

  .user-row:hover {
    background: transparent;
  }

  .user-cell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 7px 0;
  }

  .user-cell[data-label]::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 700;
  }

  .user-person {
    justify-content: flex-start;
    padding: 0 0 6px;
  }

  .user-person::before {
    content: none;
  }

  .user-actions {
    position: absolute;
    top: 10px;
    right: 8px;
    padding: 0;
  }

  .user-actions::before {
    content: none;
  }
}

@media (max-width: 640px) {
  .page-head,
  .page-toolbar,
  .page-head-tools,
  .export-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .export-status {
    text-align: left;
  }

  .page-head .button-inline {
    width: 100%;
  }

  .modal-actions .button-inline,
  .modal-actions .button-quiet {
    flex: 1 1 140px;
  }
}

.button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.form-success {
  margin: 0 0 16px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #eef8f1;
  color: #1d6b3a;
  border: 1px solid #cfe8d6;
}

.file-picker {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  margin-bottom: 10px;
}

.file-picker input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.file-name {
  min-width: 0;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.import-panel,
.survey-card,
.employee-identity {
  min-width: 0;
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.stat {
  min-width: 0;
  background: #fff;
  border: 1px solid rgba(23, 33, 43, 0.04);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 14px 16px;
}

.stat-value {
  display: block;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.stat-label {
  display: block;
  color: var(--muted);
  font-size: 0.86rem;
}

.import-head,
.import-row,
.employee-head,
.employee-row {
  display: grid;
  align-items: center;
  column-gap: 12px;
  min-width: 0;
}

.import-head,
.import-row {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr) minmax(0, 0.9fr) minmax(0, 1.3fr);
}

.employee-head,
.employee-row {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.3fr) minmax(0, 0.9fr);
}

.import-head,
.employee-head {
  padding: 8px 12px 10px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
}

.import-row,
.employee-row {
  padding: 10px 12px;
  border-radius: 14px;
}

.employee-row {
  transition: background 160ms ease;
}

.employee-row:hover {
  background: #f4f7f9;
}

.import-row.is-error {
  background: var(--danger-bg);
}

.import-cell,
.employee-cell {
  min-width: 0;
  overflow-wrap: anywhere;
}

.import-chip,
.employee-chip {
  font-variant-numeric: tabular-nums;
}

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

.import-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 16px;
}

.sort-button {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  width: auto;
  min-width: 0;
  height: auto;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
}

.sort-button svg {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
}

.sort-button.is-active {
  color: var(--ink);
}

.employee-name {
  max-width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--accent);
  font: inherit;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  overflow-wrap: anywhere;
}

.employee-name:hover {
  text-decoration: underline;
}

.query-search input {
  height: 56px;
  font-size: 1.05rem;
}

.text-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--accent);
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.text-button svg {
  width: 18px;
  height: 18px;
}

.text-button:hover {
  text-decoration: underline;
}

.employee-identity h1 {
  margin-bottom: 4px;
}

.employee-identity p {
  color: var(--muted);
}

.survey-card {
  margin-top: 22px;
  background: #fff;
  border: 1px solid rgba(23, 33, 43, 0.04);
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: 22px;
}

.survey-card h2 {
  margin: 0 0 16px;
  font-size: 1.25rem;
}

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

.survey-choice {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  min-width: 0;
  min-height: 148px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fbfcfd;
  color: var(--ink);
  text-decoration: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.survey-choice:hover {
  border-color: #c5d7e6;
  background: #fff;
  box-shadow: var(--shadow);
}

.survey-choice.is-complete {
  cursor: default;
  background: #f7faf8;
}

.survey-choice.is-complete:hover {
  border-color: var(--line);
  background: #f7faf8;
  box-shadow: none;
}

.survey-choice-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.survey-choice-label {
  font-size: 1.05rem;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.survey-choice-state {
  color: var(--muted);
  font-size: 0.95rem;
}

.status-mark {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  overflow: hidden;
}

.status-mark svg {
  width: 28px;
  height: 28px;
}

.status-mark.is-open {
  background: #fde8e8;
  color: #c33636;
}

.status-mark.is-done {
  background: #e5f6ec;
  color: #1f7a45;
}

.status-mark.is-carpool {
  grid-template-columns: 1fr 1fr;
  place-items: stretch;
  padding: 0;
  background: transparent;
  color: inherit;
}

.status-mark.is-carpool .status-mark-half {
  display: grid;
  place-items: center;
  min-width: 0;
  min-height: 0;
}

.status-mark.is-carpool .status-mark-half.is-done {
  background: #e5f6ec;
  color: #1f7a45;
  border-right: 1px solid rgba(31, 55, 48, 0.18);
}

.status-mark.is-carpool .status-mark-half.is-open {
  background: #fde8e8;
  color: #c33636;
}

.status-mark.is-carpool svg {
  width: 18px;
  height: 18px;
}

@media (max-width: 800px) {
  .stat-row,
  .survey-grid {
    grid-template-columns: 1fr 1fr;
  }

  .import-head {
    display: none;
  }

  .employee-head {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
  }

  .import-row,
  .employee-row {
    display: block;
    margin: 8px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 16px;
  }

  .import-cell,
  .employee-cell {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    padding: 7px 0;
  }

  .import-cell[data-label]::before,
  .employee-cell[data-label]::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 700;
  }
}

@media (max-width: 640px) {
  .stat-row,
  .survey-grid,
  .file-picker {
    grid-template-columns: 1fr;
    display: grid;
  }

  .file-picker .button-inline,
  .import-actions .button-inline {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .employee-row,
  .survey-choice {
    transition: none;
  }
}

.employee-table.is-results .employee-head,
.employee-table.is-results .employee-row {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr) minmax(0, 0.8fr) minmax(0, 1.7fr);
}

.employee-table.is-people .employee-head,
.employee-table.is-people .employee-row {
  grid-template-columns: 36px minmax(0, 0.85fr) minmax(0, 1fr) minmax(0, 0.7fr) minmax(0, 0.65fr) minmax(0, 0.85fr) minmax(0, 0.65fr) minmax(0, 0.65fr) 56px;
}

.people-bulk-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 12px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #f7fafc;
}

.people-bulk-count {
  margin: 0;
  font-weight: 600;
}

.people-select-all,
.people-select-cell {
  display: flex;
  align-items: center;
  justify-content: center;
}

.people-select-all input,
.people-select-cell input {
  width: 16px;
  height: 16px;
  margin: 0;
}

.people-delete-names {
  margin: 0 0 12px;
  padding-left: 1.2rem;
  max-height: 180px;
  overflow: auto;
}

.people-delete-warning {
  display: block;
  margin-bottom: 12px;
}

.employee-table.is-people .employee-row.is-departed {
  opacity: 0.72;
}

.employee-table.is-people .user-actions {
  position: relative;
  justify-self: end;
}

.survey-admin-grid {
  display: grid;
  gap: 12px;
  margin-top: 8px;
}

.survey-admin-card {
  display: grid;
  gap: 6px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  color: inherit;
  text-decoration: none;
}

.survey-admin-card:hover {
  border-color: var(--accent);
}

.survey-admin-card h2 {
  margin: 0;
  font-size: 1.15rem;
}

.survey-admin-card p {
  margin: 0;
  color: var(--muted);
}

.survey-admin-link {
  margin-top: 4px;
  font-weight: 700;
  color: var(--accent);
}

.survey-edit-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.survey-edit-section {
  margin: 0 0 18px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.survey-edit-section h2 {
  margin: 0 0 12px;
  font-size: 1.05rem;
}

.survey-edit-section .field {
  margin-bottom: 12px;
}

.survey-edit-section textarea {
  width: 100%;
  min-height: 64px;
  resize: vertical;
  font: inherit;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.survey-edit-code {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.85em;
}

.employee-table.is-emails .employee-head,
.employee-table.is-emails .employee-row {
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 0.9fr) minmax(0, 0.9fr) minmax(0, 1.6fr);
}

.employee-table.is-emails .employee-cell {
  overflow-wrap: anywhere;
}

.sort-static {
  font-size: 0.8rem;
  font-weight: 700;
}

.employee-table.is-empty-set .employee-head,
.employee-table.is-empty-set #employee-list {
  display: none;
}

.employee-table.is-empty-set .user-empty {
  padding: 28px 16px;
  font-size: 1.02rem;
}

.result-cell {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: center;
}

.result-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.status-mark.is-compact {
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
}

.status-mark.is-compact svg {
  width: 15px;
  height: 15px;
}

.status-mark.is-compact.is-carpool svg {
  width: 11px;
  height: 11px;
}

.result-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  min-width: 0;
  min-height: 88px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fbfcfd;
  font-weight: 700;
}

.answer-block + .answer-block {
  margin-top: 14px;
}

.answer-block h3 {
  margin: 0 0 4px;
  font-size: 1rem;
}

.analytics-filter {
  width: min(100%, 260px);
  margin: 0;
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
  gap: 12px;
}

.kpi {
  min-width: 0;
  background: #fff;
  border: 1px solid rgba(23, 33, 43, 0.04);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 16px;
}

.kpi-hero {
  grid-column: 1 / -1;
  padding: 22px;
}

.kpi-label,
.analysis-note {
  display: block;
  color: var(--muted);
}

.kpi-value {
  display: block;
  margin: 6px 0 2px;
  font-size: 1.7rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.kpi-hero .kpi-value {
  font-size: 2.5rem;
}

.kpi-extra,
.analysis-figure {
  color: var(--ink);
  font-weight: 700;
}

.analysis-block {
  min-width: 0;
  margin-top: 16px;
  background: #fff;
  border: 1px solid rgba(23, 33, 43, 0.04);
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: 20px;
}

.analysis-block h2 {
  margin: 0 0 12px;
  font-size: 1.2rem;
}

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

.analysis-split .analysis-block {
  margin-top: 16px;
}

.progress {
  height: 14px;
  overflow: hidden;
  border-radius: 999px;
  background: #e4eaef;
}

.progress-bar {
  height: 100%;
  border-radius: 999px;
  background: #1f7a45;
}

.bar-row {
  display: grid;
  grid-template-columns: minmax(0, 150px) minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  margin: 8px 0;
}

.bar-label,
.bar-caption {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 0.9rem;
}

.bar-track {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #e4eaef;
}

.bar-fill {
  height: 100%;
  border-radius: 999px;
  background: #1b4f72;
}

.donut-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

.donut {
  width: min(100%, 160px);
  height: auto;
}

.legend {
  margin: 0;
  padding: 0;
  list-style: none;
}

.legend li {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 6px 0;
}

.swatch {
  width: 12px;
  height: 12px;
  flex: 0 0 auto;
  border-radius: 3px;
}

.analysis-table {
  min-width: 0;
}

.analysis-head,
.analysis-row {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 8px;
  align-items: center;
}

.analysis-head .sort-button {
  white-space: normal;
  line-height: 1.2;
  text-align: left;
}

.analysis-row {
  padding: 8px 0;
  border-top: 1px solid var(--line);
}

.analysis-cell {
  min-width: 0;
  overflow-wrap: anywhere;
}

@media (max-width: 800px) {
  .analysis-split,
  .bar-row {
    grid-template-columns: 1fr;
  }

  .analysis-head {
    display: none;
  }

  .analysis-row {
    display: block;
    margin-top: 8px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 16px;
  }

  .analysis-cell {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 6px 0;
  }

  .analysis-cell[data-label]::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 700;
  }

  .employee-table.is-results .result-cell {
    justify-content: space-between;
  }
}

.climate-page {
  max-width: 760px;
}

.climate-name {
  font-size: 1.25rem;
  font-weight: 700;
}

.climate-progress {
  margin: 18px 0;
}

.climate-progress-label {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px 16px;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.92rem;
}

.question-card {
  min-width: 0;
  background: #fff;
  border: 1px solid rgba(23, 33, 43, 0.04);
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: 22px;
}

.question-card h2 {
  margin: 0 0 16px;
  font-size: 1.28rem;
  line-height: 1.3;
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr));
  gap: 12px;
}

.choice-card {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 72px;
  margin: 0 0 12px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fbfcfd;
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.choice-grid .choice-card {
  margin: 0;
}

.choice-card:hover,
.choice-card.is-selected {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.choice-card:focus-visible {
  outline: 3px solid #b9d2e4;
  outline-offset: 2px;
}

.choice-card:disabled {
  cursor: default;
  opacity: 1;
}

.choice-icon {
  font-size: 1.4rem;
  line-height: 1;
}

.choice-label,
.choice-meta {
  min-width: 0;
  overflow-wrap: anywhere;
}

.choice-meta {
  display: block;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 600;
}

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

.share-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 96px auto;
  gap: 10px;
  align-items: center;
  margin-bottom: 12px;
  font-weight: 700;
}

.share-row input {
  width: 100%;
  height: 52px;
  border: 1px solid #d5dee6;
  border-radius: 12px;
  padding: 0 12px;
  font: inherit;
}

.share-unit {
  color: var(--muted);
}

.share-total {
  margin: 4px 0 8px;
  font-weight: 700;
}

.share-total.is-valid {
  color: #1f7a45;
}

.question-card .field input {
  height: 56px;
  font-size: 1.05rem;
}

.climate-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.climate-nav .button,
.climate-nav .button-quiet {
  width: auto;
  flex: 1 1 180px;
  min-height: 52px;
  margin: 0;
}

.person-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.person-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  min-height: 40px;
  padding: 6px 12px;
  border: 0;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.person-remove {
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1;
}

.person-results {
  display: grid;
  gap: 8px;
  margin-bottom: 8px;
}

.ride-with-panel {
  display: grid;
  gap: 12px;
}

.ride-with-selected {
  margin: 0;
  padding: 12px 14px;
  border-radius: 16px;
  background: var(--accent-soft);
  font-weight: 700;
}

.ride-with-results {
  display: grid;
  gap: 8px;
}

.ride-with-results .choice-card.is-selected {
  outline: 2px solid var(--accent);
}

.carpool-badge {
  display: inline-flex;
  align-items: center;
  margin-top: 6px;
  margin-right: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1.3;
}

.carpool-badge.is-passenger {
  background: #e8f4ff;
  color: #1a4f7a;
}

.carpool-badge.is-driver {
  background: #e8f7ee;
  color: #1f6b3a;
}

.carpool-badge.is-solo {
  background: #f3f5f7;
  color: #5d6b78;
}

.carpool-badge-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 8px;
}

.carpool-passengers {
  margin-top: 6px;
  font-size: 0.9rem;
}

.carpool-passenger-list {
  margin: 8px 0 0;
  padding-left: 1.2rem;
}

.summary-list {
  display: grid;
  grid-template-columns: minmax(0, 180px) minmax(0, 1fr);
  gap: 8px 16px;
  margin: 0 0 18px;
}

.summary-list dt {
  color: var(--muted);
  font-weight: 700;
}

.summary-list dd,
.summary-value,
.answer-block p {
  margin: 0;
  white-space: pre-line;
  overflow-wrap: anywhere;
}

@media (max-width: 640px) {
  .summary-list,
  .share-row {
    grid-template-columns: 1fr;
  }
}

.result-table {
  min-width: 0;
  margin-top: 8px;
}

.result-head,
.result-row {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 8px 16px;
  align-items: start;
}

.result-table.is-transport .result-head,
.result-table.is-transport .result-row {
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.6fr) minmax(0, 1fr) minmax(0, 0.8fr);
}

.result-table.is-passengers .result-head,
.result-table.is-passengers .result-row {
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 0.8fr);
}

.result-head {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
}

.result-row {
  padding: 8px 0;
  border-top: 1px solid var(--line);
}

.result-cell {
  min-width: 0;
  overflow-wrap: anywhere;
}

.answer-block h2 {
  margin: 0 0 12px;
  font-size: 1.25rem;
}

.answer-block h3 {
  margin: 18px 0 8px;
  font-size: 1.05rem;
}

@media (max-width: 800px) {
  .result-head {
    display: none;
  }

  .result-table .result-row,
  .result-table.is-transport .result-row,
  .result-table.is-passengers .result-row {
    display: block;
    margin-top: 8px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 14px;
  }

  .result-table .result-cell {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 6px 0;
  }

  .result-table .result-cell[data-label]::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 700;
  }
}

.form-note {
  margin: 0 0 16px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #e5f6ec;
  color: #1f7a45;
}

.email-page .field input {
  height: 56px;
  font-size: 1.05rem;
}

.button-email-none {
  margin-top: 28px;
  background: #fdecec;
  color: #8d2f2f;
  border: 1px solid #f3d0d0;
}

.button-email-none:hover {
  background: #f8dede;
}

.button-email-none:disabled {
  cursor: default;
  opacity: 0.7;
}

.email-result {
  margin: 0 0 8px;
  font-size: 1.05rem;
  overflow-wrap: anywhere;
}

.result-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 16px;
}

.result-tab {
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.result-tab.is-active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.language-page {
  max-width: 1120px;
}

.language-head-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.language-progress {
  margin: 0 0 16px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.language-progress-title {
  margin: 0 0 10px;
  font-weight: 700;
}

.language-progress-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}

.language-progress-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.92rem;
}

.language-progress-state {
  font-weight: 700;
  white-space: nowrap;
}

.climate-page[dir='rtl'],
.email-page[dir='rtl'],
#email-survey[dir='rtl'],
#climate-stage[dir='rtl'] {
  text-align: right;
}

.table-scroll {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
}

.language-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
}

.language-table th,
.language-table td {
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

.language-table th {
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.language-flag-cell {
  font-size: 1.2rem;
  width: 3rem;
}

.language-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.translation-edit {
  width: min(100%, 280px);
  margin-right: 8px;
}

.survey-preview {
  margin-top: 28px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}

.survey-preview h3,
.survey-preview h4,
.survey-preview p {
  margin: 0 0 10px;
}

.offline-status {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  max-width: 100%;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
}

.offline-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #8aa0b2;
  flex: 0 0 auto;
}

.offline-status.is-online .offline-dot { background: #1f8a4c; }
.offline-status.is-offline .offline-dot { background: #b26a00; }
.offline-status.is-error .offline-dot { background: var(--danger); }

.offline-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

#offline-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 18rem;
}

#offline-sync-time {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.3;
}

.offline-sync {
  border: 0;
  background: transparent;
  color: var(--accent);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0;
  cursor: pointer;
  white-space: nowrap;
}

.offline-note {
  margin: 0;
  padding: 8px 28px;
  background: #fff6e8;
  color: #6b4a12;
  font-size: 0.9rem;
}

.offline-block {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 32px 20px;
  background: var(--bg);
}

.offline-block-card {
  display: grid;
  gap: 16px;
  width: min(100%, 36rem);
}

.offline-block p {
  max-width: none;
  margin: 0;
  font-size: 1.15rem;
  line-height: 1.5;
}

.offline-prep {
  margin: 0;
  padding: 8px 28px 10px;
  background: #f7faf8;
  color: var(--ink);
}

.offline-prep-title {
  margin: 0 0 6px;
  font-size: 0.9rem;
  font-weight: 700;
}

.offline-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.offline-checks li {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 9.5rem;
  font-size: 0.86rem;
}

.offline-checks span {
  font-weight: 700;
}

@media print {
  .print-only {
    display: block;
  }

  .topbar,
  .offline-prep,
  .offline-note,
  .offline-block,
  .export-actions,
  .query-search,
  .result-tabs,
  #query-back,
  .language-switch,
  .profile,
  .analytics-filter,
  .form-error,
  .text-button,
  .sort-button svg,
  .back-link,
  .page-intro {
    display: none !important;
  }

  body,
  .stage,
  .page {
    background: #fff;
    max-width: none;
    box-shadow: none;
  }

  .export-print-banner h1 {
    margin: 0 0 4px;
    font-size: 1.4rem;
  }

  .export-print-banner p {
    margin: 0 0 16px;
    color: #333;
  }
}

.export-center-card {
  margin-bottom: 20px;
}

.export-card-head {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.export-card-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.export-options {
  display: grid;
  gap: 10px;
  margin: 12px 0 16px;
}

.check-option {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--ink);
}

.check-option input {
  margin-top: 3px;
}

.export-date-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-bottom: 12px;
}

.export-preview-list {
  margin: 0 0 12px;
  padding-left: 1.2rem;
}

.export-survey-desc {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.92rem;
}

.employee-table.is-exports .employee-head,
.employee-table.is-exports .employee-row {
  grid-template-columns: 72px minmax(180px, 2fr) 100px 100px 110px;
}

.export-survey-row.is-selected {
  background: var(--accent-soft);
}

.export-center-actions {
  margin-top: 16px;
}

.export-mode-options {
  display: grid;
  gap: 12px;
  margin: 14px 0 8px;
}

.export-mode-option {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #f8fafb;
}

.export-mode-option:has(input:checked) {
  border-color: var(--accent, #1b4f72);
  background: var(--accent-soft, #e8f1f7);
}

.export-mode-desc {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.4;
}

.language-progress-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.language-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.modal-card-wide {
  max-width: min(920px, 96vw);
}

.import-preview-scroll {
  max-height: 320px;
  margin: 12px 0;
}

.language-table tr.is-selected {
  background: var(--accent-soft);
}

.language-table tr.is-error-row td {
  color: var(--danger);
}

.coverage-list {
  display: grid;
  gap: 12px;
}

.coverage-row {
  display: grid;
  gap: 4px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.import-report {
  margin-top: 12px;
}

#advanced-languages summary {
  cursor: pointer;
  font-weight: 700;
  margin-bottom: 12px;
}

@media (max-width: 760px) {
  .employee-table.is-exports .employee-head {
    display: none;
  }

  .employee-table.is-exports .employee-row {
    grid-template-columns: 1fr;
  }
}
