:root {
  --ink: #25333f;
  --ink-soft: #5d6d79;
  --navy: #080f1c;
  --navy-deep: #0d1828;
  --teal: #496f8e;
  --teal-dark: #31435b;
  --teal-soft: #e7eff5;
  --blue-soft: #f3f8fc;
  --danger: #b42318;
  --danger-dark: #8f1c14;
  --border: #d0dbe1;
  --border-strong: #a8bbce;
  --surface: #ffffff;
  --surface-subtle: #f3f8fc;
  --page: #f4f6f7;
  --shadow-sm: 0 1px 2px rgba(20, 33, 61, 0.05), 0 4px 12px rgba(20, 33, 61, 0.05);
  --shadow-md: 0 14px 36px rgba(20, 33, 61, 0.12);
  --radius: 0;
  --radius-lg: 0;
  --content-width: 1520px;
}

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

html {
  min-width: 320px;
  scroll-behavior: smooth;
  background: var(--page);
}

body {
  min-height: 100%;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 0%, rgba(15, 139, 141, 0.09), transparent 28rem),
    linear-gradient(180deg, #f7fafc 0, var(--page) 30rem);
  font-family: "Manrope", Arial, ui-sans-serif, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

button, input, select { font: inherit; }
a { color: var(--teal-dark); }
h1, h2, h3, p { overflow-wrap: anywhere; }

h1 {
  margin: 0;
  max-width: 18ch;
  color: var(--ink);
  font-size: clamp(1.65rem, 3.3vw, 3.15rem);
  font-weight: 780;
  letter-spacing: -0.045em;
  line-height: 0.98;
}

h2 {
  margin: 0;
  color: var(--ink-soft);
  font-size: clamp(0.95rem, 1.5vw, 1.15rem);
  font-weight: 450;
  line-height: 1.5;
}

h3 {
  margin: 0 0 0.85rem;
  color: var(--navy);
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.09em;
  line-height: 1.3;
  text-transform: uppercase;
}

ol, ul { margin: 0; padding-left: 1.2rem; }
ol li, ul li {
  margin-bottom: 0.3rem;
  color: var(--ink-soft);
  font-size: 0.9rem;
  line-height: 1.5;
}

:focus-visible {
  outline: 3px solid rgba(15, 139, 141, 0.3);
  outline-offset: 2px;
}

::selection { color: var(--ink); background: #c7dce8; }

#site_wrapper {
  width: min(100%, calc(var(--content-width) + 3rem));
  min-height: 100vh;
  margin: 0 auto;
  padding: clamp(0.75rem, 2vw, 1.5rem);
  display: flex;
  flex-direction: column;
  gap: clamp(0.9rem, 2vw, 1.4rem);
}

/* Header and onboarding */
#header {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1.5rem 2rem;
  align-items: center;
  width: 100%;
  padding: clamp(1.15rem, 2.5vw, 2rem);
  overflow: hidden;
  border: 1px solid rgba(13, 45, 70, 0.45);
  border-radius: 0;
  background:
    linear-gradient(118deg, rgba(15, 139, 141, 0.12), transparent 42%),
    linear-gradient(135deg, #0c2941 0%, #173f5f 68%, #155c68 100%);
  box-shadow: 0 22px 55px rgba(13, 45, 70, 0.22);
}

#header::after {
  content: "";
  position: absolute;
  z-index: -1;
  top: -11rem;
  right: -5rem;
  width: 32rem;
  height: 32rem;
  border-radius: 0;
  background: radial-gradient(circle, rgba(105, 226, 216, 0.22), transparent 66%);
  pointer-events: none;
}

#header_logo {
  display: grid;
  width: clamp(6.5rem, 9vw, 8.25rem);
  aspect-ratio: 1;
  place-items: center;
  border: 4px solid rgba(131, 229, 219, 0.72);
  border-radius: 0;
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(3, 18, 31, 0.28);
}

#header_logo img {
  display: block;
  width: 76%;
  height: 76%;
  object-fit: contain;
}

#header_title {
  min-width: 0;
  align-self: center;
}

#title_text {
  display: grid;
  gap: 0.65rem;
}

.hero_eyebrow {
  width: fit-content;
  padding: 0.3rem 0.65rem;
  border: 1px solid rgba(141, 230, 222, 0.45);
  border-radius: 0;
  color: #b7eee8;
  background: rgba(3, 24, 39, 0.24);
  font-size: 0.72rem;
  font-weight: 760;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-transform: uppercase;
}

#header_title h1 {
  max-width: none;
  color: #fff;
  font-size: clamp(2.2rem, 3.15vw, 3.25rem);
  letter-spacing: -0.04em;
  line-height: 1;
  overflow-wrap: normal;
  white-space: nowrap;
}

#header_title h1 span {
  color: #82ddd4;
  white-space: nowrap;
}

#header_title h2 {
  max-width: none;
  color: #d9e8f2;
  font-size: clamp(0.95rem, 1.35vw, 1.12rem);
}

#header_right {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr) minmax(18rem, 1fr);
  gap: 0.85rem;
  min-width: 0;
  padding-top: 1.35rem;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

#update_log,
#header_info,
#header_upload_wrapper {
  min-width: 0;
  padding: 1rem;
  border: 1px solid rgba(210, 227, 237, 0.88);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 7px 20px rgba(3, 24, 39, 0.12);
}

#update_log, #header_info {
  max-height: 10.5rem;
  overflow: auto;
}

#update_log h3, #header_info h3, #header_upload h3 {
  position: sticky;
  z-index: 1;
  top: -1rem;
  margin-top: 0;
  padding: 0.15rem 0 0.45rem;
  background: inherit;
}

.update_item {
  display: grid;
  grid-template-columns: 5.8rem minmax(0, 1fr);
  gap: 0.55rem;
  padding: 0.38rem 0;
  border-top: 1px solid #e8eef3;
  line-height: 1.35;
}

.update_item:first-of-type { padding-top: 0; border-top: 0; }
.update_date {
  color: var(--navy);
  font-size: 0.78rem;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}
.update_text { color: var(--ink-soft); font-size: 0.82rem; }
#header_info ol { padding-left: 1.5rem; }
#header_info ol li { padding-left: 0.2rem; font-size: 0.84rem; }
#header_info ol li::marker { color: var(--teal); font-weight: 800; }
#header_upload { min-width: 0; }

#header_upload_wrapper {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border: 2px solid #62c7bd;
  background: #e8f8f6;
  transition: border-color 160ms ease, background-color 160ms ease;
}

#header_upload_wrapper:hover {
  border-color: var(--teal);
  background: #ddf3f0;
}

input[type="file"] {
  width: 100%;
  max-width: 100%;
  color: var(--ink-soft);
  font-size: 0.86rem;
}

.upload_label {
  margin-bottom: 0.35rem;
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 700;
}

input[type="file"]::file-selector-button {
  min-height: 2.65rem;
  margin-right: 0.7rem;
  padding: 0.55rem 0.85rem;
  border: 1px solid var(--teal);
  border-radius: 0;
  color: #fff;
  background: var(--teal);
  cursor: pointer;
  font-weight: 700;
}

#status {
  min-height: 1.25rem;
  margin-top: 0.6rem;
  color: var(--ink-soft);
  font-size: 0.83rem;
}

.upload_privacy {
  margin: 0.2rem 0 0;
  color: #52716f;
  font-size: 0.74rem;
  line-height: 1.35;
}

/* Reveal states */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-in { animation: fadeIn 320ms ease-out; }
.hidden-content { display: none !important; }
.visible-content { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Data workspace */
#table_settings_wrapper {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-width: 0;
}

.datatable {
  min-width: 0;
  height: clamp(24rem, 52vh, 40rem);
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 0;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

#out {
  width: 100%;
  height: 100%;
  overflow: auto;
  scrollbar-color: #9db0c2 transparent;
  scrollbar-width: thin;
}

#schueler_table {
  width: 100%;
  min-width: 76rem;
  border-spacing: 0;
  border-collapse: separate;
  font-size: 0.86rem;
}

#schueler_table thead {
  position: sticky;
  z-index: 2;
  top: 0;
  color: #fff;
  background: var(--navy);
}

#schueler_table th, #schueler_table td {
  padding: 0.72rem 0.8rem;
  border-right: 1px solid #e5ebf0;
  border-bottom: 1px solid #e5ebf0;
  text-align: left;
  white-space: nowrap;
}

#schueler_table th {
  border-color: rgba(255, 255, 255, 0.15);
  font-size: 0.76rem;
  font-weight: 750;
  letter-spacing: 0.025em;
  text-transform: uppercase;
  user-select: none;
}

#schueler_table th:hover { background: var(--navy-deep); }
#schueler_table tbody tr:nth-child(even) { background: #f8fafc; }
#schueler_table tbody tr:hover { background: var(--blue-soft); }

#schueler_table td:first-child, #schueler_table th:first-child {
  position: sticky;
  z-index: 1;
  left: 0;
}

#schueler_table td:first-child {
  background: inherit;
  font-variant-numeric: tabular-nums;
}

#schueler_table th:first-child { z-index: 3; background: var(--navy); }

#export_settings {
  width: 100%;
  padding: clamp(1rem, 2vw, 1.4rem);
  border: 1px solid var(--border);
  border-top: 0;
  border-radius: 0;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

#export_settings_row {
  display: grid;
  grid-template-columns: minmax(18rem, 1.05fr) minmax(20rem, 1.45fr) minmax(13rem, 0.65fr);
  gap: clamp(1rem, 2vw, 1.6rem);
  align-items: stretch;
}

.export_settings_item1, .export_settings_item2 { min-width: 0; }

#domain, #klassenwahl {
  padding-right: 1.35rem;
  border-right: 1px solid var(--border);
}

#domain span {
  display: grid;
  gap: 0.35rem;
  margin-bottom: 0.75rem;
}

#domain br { display: none; }
#domain label {
  color: var(--ink-soft);
  font-size: 0.82rem;
  font-weight: 650;
}

#domain > a {
  display: inline-flex;
  color: var(--ink-soft);
  font-size: 0.76rem;
  text-decoration: none;
}

input[type="text"], select {
  width: 100%;
  min-height: 2.75rem;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--border-strong);
  border-radius: 0;
  color: var(--ink);
  background: #fff;
}

input[type="text"]:hover, select:hover { border-color: #8fa7bb; }

#klassenwahl_items {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  max-height: 8.25rem;
  padding-right: 0.25rem;
  overflow-y: auto;
}

#klassenwahl_items div {
  display: inline-flex;
  align-items: center;
  margin: 0;
}

#klassenwahl_items input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}

#klassenwahl_items label {
  display: inline-flex;
  min-height: 2.25rem;
  align-items: center;
  padding: 0.42rem 0.7rem;
  border: 1px solid var(--border-strong);
  border-radius: 0;
  color: var(--ink-soft);
  background: #fff;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 650;
  user-select: none;
}

#klassenwahl_items input:checked + label {
  border-color: #88a5bc;
  color: #31435b;
  background: var(--teal-soft);
}

#klassenwahl_items input:focus-visible + label {
  outline: 3px solid rgba(15, 139, 141, 0.3);
  outline-offset: 2px;
}

#generate {
  display: flex;
  align-items: center;
  justify-content: center;
}

#generate button {
  width: 100%;
  min-height: 3.25rem;
  background: var(--navy);
}

#generate button:hover { background: var(--navy-deep); }

/* Export cards */
#export_area {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  width: 100%;
  min-width: 0;
  align-items: start;
}

.export_container {
  min-width: 0;
  overflow: hidden;
  padding: clamp(1.05rem, 2vw, 1.4rem);
  border: 1px solid var(--border);
  border-top: 4px solid var(--teal);
  border-radius: 0;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.export_container > h3 {
  margin-top: 1.35rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--border);
}

.export_container > h3:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.export_container p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.84rem;
  line-height: 1.55;
}

.export_container ul { margin: 0; padding: 0; list-style: none; }
.export_container li { padding: 0.5rem 0; border-bottom: 1px solid var(--border); }

.flex-container {
  display: grid;
  grid-template-columns: minmax(10rem, 0.8fr) minmax(0, 1.2fr);
  gap: 1rem;
  align-items: start;
}

.col, .col-1, .col-2, .col-3 {
  min-width: 0;
  overflow-wrap: anywhere;
}

.col-1 > button { max-width: 100%; }

.col-1 > span[title] {
  display: inline-grid;
  width: 2.25rem;
  height: 2.25rem;
  margin-left: 0.2rem;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 0;
  color: var(--navy);
  background: var(--surface-subtle);
  font-size: 1rem !important;
  vertical-align: middle;
}

.export_result, .download_result {
  margin-top: 0.5rem;
  color: var(--teal-dark);
  font-size: 0.82rem;
  font-weight: 650;
}

#jamf_file { margin-bottom: 0.65rem; }

/* Buttons */
button {
  min-height: 2.75rem;
  padding: 0.65rem 0.9rem;
  border: 0;
  border-radius: 0;
  color: #fff;
  background: var(--navy);
  box-shadow: 0 1px 2px rgba(20, 33, 61, 0.12);
  cursor: pointer;
  font-size: 0.86rem;
  font-weight: 720;
  line-height: 1.25;
  transition: transform 100ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

button:hover {
  background: var(--navy-deep);
  box-shadow: 0 5px 12px rgba(20, 33, 61, 0.16);
}

button:active { transform: translateY(1px); }
button:disabled { cursor: not-allowed; opacity: 0.55; }

/* Duplicate highlighting */
.dup-highlight { padding: 0.15rem 0.3rem; border-radius: 0; background: #fff3cd; }
.dup-color-0 td { background: #fff7d1; }
.dup-color-1 td { background: #ffeeb3; }
.dup-color-2 td { background: #fff3c2; }
.dup-color-3 td { background: #ffefaa; }
.dup-color-4 td { background: #fff9dc; }

/* Dialogs generated by main.js */
.popup {
  position: fixed;
  z-index: 9999;
  inset: 50% auto auto 50%;
  width: min(94vw, 70rem);
  max-height: 88dvh;
  padding: clamp(1rem, 3vw, 1.6rem);
  overflow: auto;
  transform: translate(-50%, -50%);
  border: 1px solid var(--border-strong);
  border-radius: 0;
  background: #fff;
  box-shadow: 0 28px 80px rgba(13, 45, 70, 0.3);
}

.popup::before {
  content: "";
  position: fixed;
  z-index: -1;
  inset: -100vh -100vw;
  background: rgba(13, 30, 48, 0.52);
  backdrop-filter: blur(2px);
}

.popup h2 {
  margin: 0 3rem 0.7rem 0;
  color: var(--ink);
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  font-weight: 760;
}

.popup p { color: var(--ink-soft); }

.popup-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  display: grid;
  width: 2.75rem;
  height: 2.75rem;
  place-items: center;
  border-radius: 0;
  color: var(--ink-soft);
  background: var(--surface-subtle);
  cursor: pointer;
  font-size: 1.8rem;
  font-weight: 400;
  line-height: 1;
}

.popup-close:hover { color: var(--ink); background: var(--blue-soft); }
.popup-wide { width: min(96vw, 90rem); }

.popup table {
  border-collapse: separate !important;
  border-spacing: 0;
  border: 1px solid var(--border) !important;
  border-radius: 0;
  background: #fff;
}

.popup table td, .popup table th {
  padding: 0.6rem 0.75rem !important;
  border: 0 !important;
  border-right: 1px solid var(--border) !important;
  border-bottom: 1px solid var(--border) !important;
  text-align: left;
}

.popup table thead th { color: #fff; background: var(--navy); }

/* Footer */
#footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3rem;
  padding: 0.5rem;
  color: var(--ink-soft);
  font-size: 0.82rem;
}

#footer a { color: inherit; text-underline-offset: 0.2em; }
#footer .sep { opacity: 0.5; user-select: none; }

/* Legal page */
.impressum-container {
  width: min(100% - 2rem, 58rem);
  margin: clamp(1rem, 5vw, 4rem) auto;
  padding: clamp(1.2rem, 4vw, 3rem);
  border: 1px solid var(--border);
  border-radius: 0;
  background: #fff;
  box-shadow: var(--shadow-md);
}

.impressum-container > a:first-child { display: inline-block; margin-bottom: 2rem; }
.impressum-container h1 { margin-bottom: 2rem; }
.impressum-container h2 {
  margin: 2rem 0 0.65rem;
  color: var(--navy);
  font-size: 1.2rem;
  font-weight: 720;
}

.impressum-container h3 {
  color: var(--ink) !important;
  text-transform: none;
  letter-spacing: 0;
}

.impressum-container p, .impressum-container li {
  color: var(--ink-soft);
  line-height: 1.7;
}

/* Compact desktop and landscape tablets */
@media (max-width: 1180px) {
  #header_right { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #header_upload { grid-column: 1 / -1; }
  #export_settings_row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #klassenwahl { padding-right: 0; border-right: 0; }
  #generate { grid-column: 1 / -1; }
  #generate button { width: min(100%, 28rem); }
  #export_area { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #export_bildungslogin { grid-column: 1 / -1; }
}

/* Portrait tablets */
@media (max-width: 820px) {
  #site_wrapper { padding: 0.75rem; }
  #header {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 1rem 1.25rem;
    padding: 1.15rem;
  }
  #header_logo { width: 5.75rem; border-radius: 0; }
  #header_title h1 {
    font-size: clamp(1.85rem, 5.5vw, 2.7rem);
    line-height: 1.03;
    white-space: normal;
  }
  #header_right { grid-template-columns: 1fr; }
  #header_upload { grid-column: auto; }
  #update_log { display: none; }
  #export_settings_row, #export_area { grid-template-columns: 1fr; }
  #domain, #klassenwahl {
    padding: 0 0 1rem;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }
  #generate, #export_bildungslogin { grid-column: auto; }
  #generate button { width: 100%; }
  .datatable { height: min(60vh, 34rem); }
}

/* Phones */
@media (max-width: 560px) {
  body { font-size: 15px; }
  #site_wrapper { padding: 0.5rem; gap: 0.65rem; }
  #header {
    grid-template-columns: 4.5rem minmax(0, 1fr);
    gap: 0.85rem;
    padding: 0.9rem;
    border-radius: 0;
  }
  #header_logo {
    width: 4.5rem;
    border-width: 3px;
    border-radius: 0;
  }
  .hero_eyebrow { display: none; }
  #header_title h1 {
    font-size: clamp(1.55rem, 8vw, 2.1rem);
    letter-spacing: -0.035em;
  }
  #header_title h2 { font-size: 0.8rem; line-height: 1.35; }
  #header_right { gap: 0.65rem; }
  #header_info, #header_upload_wrapper { padding: 0.85rem; border-radius: 0; }
  input[type="file"]::file-selector-button {
    display: block;
    width: 100%;
    margin: 0 0 0.55rem;
  }
  .datatable {
    height: 27rem;
    border-radius: 0;
  }
  #schueler_table th, #schueler_table td {
    padding: 0.58rem 0.65rem;
    font-size: 0.78rem;
  }
  #export_settings { border-radius: 0; }
  #klassenwahl_items { max-height: 12rem; }
  .export_container { border-radius: 0; }
  .flex-container { grid-template-columns: 1fr; gap: 0.7rem; }
  .col-1 > button { width: calc(100% - 2.8rem); }
  .popup, .popup-wide {
    width: calc(100vw - 0.75rem);
    max-height: 94dvh;
    border-radius: 0;
  }
  #footer .sep { display: none; }
}

/* ==================================================
   Landing page: clear flow without nested card UI
   ================================================== */
#site_wrapper {
  gap: 0;
  padding-top: clamp(0.75rem, 2vw, 1.5rem);
}

#header {
  grid-template-columns: auto minmax(0, 1fr) minmax(20rem, 0.72fr);
  gap: clamp(1.25rem, 2.5vw, 2.5rem);
  min-height: 25rem;
  padding: clamp(2rem, 4vw, 4.5rem);
  border: 0;
  border-bottom: 5px solid #55c8bd;
  border-radius: 0;
  box-shadow: none;
}

#header_logo {
  width: clamp(7.5rem, 10vw, 10rem);
  border: 3px solid #77d9d0;
  border-radius: 0;
  box-shadow: none;
}

#header_title h1 {
  font-size: clamp(2.4rem, 3.55vw, 4rem);
}

#header_title h2 {
  max-width: 58ch;
  margin-top: 0.15rem;
  font-size: clamp(1rem, 1.35vw, 1.2rem);
}

.hero_benefits {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1.5rem;
  margin-top: 0.65rem;
  padding: 0;
  list-style: none;
}

.hero_benefits li {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0;
  color: #d9edf2;
  font-size: 0.82rem;
  font-weight: 650;
}

.hero_benefits li::before {
  content: "✓";
  color: #76ddd3;
  font-weight: 850;
}

#header_upload {
  align-self: stretch;
  padding-left: clamp(1.5rem, 3vw, 3rem);
  border-left: 1px solid rgba(255, 255, 255, 0.22);
}

#header_upload_wrapper {
  min-width: 0;
  height: 100%;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: #fff;
  background: transparent;
  box-shadow: none;
}

#header_upload_wrapper:hover {
  border-color: transparent;
  background: transparent;
}

.upload_step {
  margin-bottom: 0.65rem;
  color: #c7dce8;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

#header_upload h3 {
  position: static;
  margin: 0 0 0.75rem;
  padding: 0;
  color: #fff;
  background: transparent;
  font-size: 1.1rem;
  letter-spacing: 0.035em;
}

.upload_explanation {
  margin: 0 0 1.35rem;
  color: #d6e7ee;
  font-size: 0.88rem;
  line-height: 1.55;
}

.upload_label {
  color: #fff;
}

#header_upload input[type="file"] {
  color: #d6e7ee;
}

#header_upload input[type="file"]::file-selector-button {
  border: 1px solid #88a5bc;
  background: #496f8e;
}

.zip_password_row {
  margin-top: 0.85rem;
}

.zip_password_row[hidden] {
  display: none;
}

.zip_password_row > label {
  display: block;
  margin-bottom: 0.35rem;
  color: #d6e7ee;
  font-size: 0.82rem;
  font-weight: 700;
}

.zip_password_controls {
  display: flex;
  gap: 0.5rem;
}

.zip_password_controls input {
  min-width: 0;
  flex: 1;
}

.zip_password_controls button {
  white-space: nowrap;
}

#header_upload #status {
  color: #dcebf0;
}

#header_upload .upload_privacy {
  margin-top: 0.55rem;
  color: #a8bbce;
}

#landing_guide {
  width: 100%;
  background: #fff;
}

#landing_guide.is-hidden {
  display: none;
}

.guide_section {
  padding: clamp(3rem, 6vw, 5.5rem) clamp(1.25rem, 4vw, 4.5rem);
  border-bottom: 1px solid var(--border);
}

.section_heading {
  max-width: 48rem;
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
}

.section_kicker {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--teal-dark);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section_heading h2 {
  margin-bottom: 0.7rem;
  color: var(--ink);
  font-size: clamp(1.8rem, 3vw, 2.75rem);
  font-weight: 780;
  letter-spacing: -0.035em;
  line-height: 1.08;
}

.section_heading p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.65;
}

.workflow {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: none;
}

.workflow li {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.8rem;
  margin: 0;
  padding: 1.35rem clamp(1rem, 2vw, 1.8rem);
  border-top: 3px solid var(--teal);
  border-left: 1px solid var(--border);
}

.workflow li:first-child {
  padding-left: 0;
  border-left: 0;
}

.workflow_number {
  color: #94a7b8;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.workflow strong {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--ink);
  font-size: 0.94rem;
}

.workflow p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.82rem;
  line-height: 1.55;
}

.workflow code {
  padding: 0.05rem 0.25rem;
  color: var(--navy);
  background: var(--blue-soft);
  font-size: 0.78rem;
}

.output_section {
  background: #f5f8fa;
}

.capability_list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.capability_list article {
  min-width: 0;
  padding: 0 clamp(1.25rem, 3vw, 2.5rem);
  border-left: 1px solid var(--border-strong);
}

.capability_list article:first-child {
  padding-left: 0;
  border-left: 0;
}

.capability_index {
  display: block;
  margin-bottom: 1.1rem;
  color: var(--teal);
  font-size: 1.5rem;
  font-weight: 300;
}

.capability_list h3 {
  margin-bottom: 0.55rem;
  color: var(--ink);
  font-size: 1rem;
  letter-spacing: 0.035em;
}

.capability_list p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.88rem;
  line-height: 1.65;
}

.privacy_strip {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.25rem clamp(1.25rem, 4vw, 4.5rem);
  color: #fff;
  background: var(--teal-dark);
}

.privacy_strip strong {
  flex: 0 0 auto;
}

.privacy_strip span {
  color: #d8f4f1;
  font-size: 0.86rem;
}

#update_log.release_notes {
  display: block;
  max-height: none;
  padding: 1.1rem clamp(1.25rem, 4vw, 4.5rem);
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: #fff;
  box-shadow: none;
}

.release_notes summary {
  color: var(--ink-soft);
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 700;
}

.release_list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  padding-top: 1rem;
}

.release_list p {
  display: grid;
  gap: 0.25rem;
  margin: 0;
}

.release_list time {
  color: var(--teal-dark);
  font-size: 0.74rem;
  font-weight: 750;
}

.release_list span {
  color: var(--ink-soft);
  font-size: 0.78rem;
}

#table_settings_wrapper:not(:has(.visible-content)) {
  display: none;
}

#table_settings_wrapper,
#export_area {
  margin-top: 1.25rem;
}

#header.is-compact {
  grid-template-columns: auto minmax(0, 1fr) minmax(19rem, 0.55fr);
  min-height: 0;
  padding: 1rem 1.5rem;
  border-bottom-width: 3px;
}

#header.is-compact #header_logo {
  width: 4.5rem;
  border-width: 2px;
}

#header.is-compact .hero_eyebrow,
#header.is-compact #header_title h2,
#header.is-compact .hero_benefits,
#header.is-compact .upload_step,
#header.is-compact #header_upload h3,
#header.is-compact .upload_explanation,
#header.is-compact .upload_label,
#header.is-compact .upload_privacy {
  display: none;
}

#header.is-compact #header_title h1 {
  font-size: clamp(1.45rem, 2.5vw, 2.2rem);
}

#header.is-compact #header_upload {
  padding-left: 1.25rem;
}

#header.is-compact #status {
  min-height: 0;
  margin-top: 0.25rem;
}

@media (max-width: 1000px) {
  #header {
    grid-template-columns: auto minmax(0, 1fr);
  }

  #header_upload {
    grid-column: 1 / -1;
    padding: 1.5rem 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.22);
    border-left: 0;
  }

  #header_upload_wrapper {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(19rem, 0.8fr);
    gap: 0.35rem 2rem;
    align-items: center;
  }

  #header_upload .upload_step,
  #header_upload h3,
  #header_upload .upload_explanation {
    grid-column: 1;
  }

  #header_upload .upload_label,
  #header_upload input,
  #header_upload #status,
  #header_upload .upload_privacy {
    grid-column: 2;
  }

  #header_upload .upload_label {
    grid-row: 1;
  }

  #header.is-compact {
    grid-template-columns: auto minmax(0, 1fr);
  }

  #header.is-compact #header_upload {
    padding: 0.8rem 0 0;
  }

  #header.is-compact #header_upload_wrapper {
    display: block;
  }
}

@media (max-width: 820px) {
  #update_log.release_notes { display: block; }
  .workflow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .workflow li:nth-child(3) { border-left: 0; }
  .workflow li:nth-child(3),
  .workflow li:nth-child(4) { margin-top: 1rem; }
}

@media (max-width: 640px) {
  #site_wrapper {
    padding: 0;
  }

  #header {
    grid-template-columns: 4.75rem minmax(0, 1fr);
    min-height: auto;
    padding: 1.5rem 1rem 2rem;
  }

  #header_logo {
    width: 4.75rem;
    border-radius: 0;
  }

  #header_title h1 {
    font-size: clamp(1.7rem, 8.5vw, 2.35rem);
  }

  #header_title h2 {
    font-size: 0.82rem;
  }

  .hero_benefits {
    grid-column: 1 / -1;
    gap: 0.35rem 0.8rem;
  }

  #header_upload_wrapper {
    display: flex;
    gap: 0;
  }

  .guide_section {
    padding: 3rem 1rem;
  }

  .workflow,
  .capability_list,
  .release_list {
    grid-template-columns: 1fr;
  }

  .workflow li,
  .workflow li:first-child,
  .workflow li:nth-child(3),
  .workflow li:nth-child(4) {
    margin: 0;
    padding: 1.1rem 0;
    border-top: 1px solid var(--border);
    border-left: 0;
  }

  .workflow li:first-child {
    border-top: 3px solid var(--teal);
  }

  .capability_list article,
  .capability_list article:first-child {
    padding: 1.25rem 0;
    border-top: 1px solid var(--border);
    border-left: 0;
  }

  .privacy_strip {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.25rem;
    padding: 1.25rem 1rem;
  }

  #update_log.release_notes {
    padding-right: 1rem;
    padding-left: 1rem;
  }
}

/* Final header layout: restrained, readable and collision-safe */
#header {
  grid-template-columns: 7.5rem minmax(0, 1fr) minmax(21rem, 0.68fr);
  gap: clamp(1.5rem, 3vw, 3rem);
  min-height: 19rem;
  padding: clamp(2rem, 3.5vw, 3.5rem);
  border-bottom-color: #88a5bc;
  background: #080f1c;
}

#header::after {
  display: none;
}

#header_logo {
  width: 7.5rem;
  border: 2px solid #88a5bc;
  border-radius: 0;
}

#title_text {
  gap: 0.9rem;
}

#header_title h1 {
  max-width: 100%;
  color: #fff;
  font-size: clamp(2.35rem, 3.3vw, 3.65rem);
  line-height: 0.98;
  overflow-wrap: normal;
  white-space: normal;
}

#header_title h1 span {
  display: block;
  color: #c7dce8;
  white-space: nowrap;
}

#header_title h2 {
  max-width: 46ch;
  margin: 0;
  color: #d8e5ec;
  font-size: clamp(0.95rem, 1.2vw, 1.08rem);
  line-height: 1.55;
}

#header_upload {
  min-width: 0;
}

#header_upload_wrapper {
  justify-content: center;
}

@media (max-width: 1100px) {
  #header {
    grid-template-columns: 6.5rem minmax(0, 1fr);
  }

  #header_logo {
    width: 6.5rem;
  }

  #header_upload {
    grid-column: 1 / -1;
    padding: 1.5rem 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.22);
    border-left: 0;
  }

  #header_upload_wrapper {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(18rem, 0.8fr);
    gap: 0.35rem 2rem;
  }

  #header_upload .upload_step,
  #header_upload h3,
  #header_upload .upload_explanation {
    grid-column: 1;
  }

  #header_upload .upload_label,
  #header_upload input,
  #header_upload #status,
  #header_upload .upload_privacy {
    grid-column: 2;
  }
}

@media (max-width: 640px) {
  #header {
    grid-template-columns: 4.5rem minmax(0, 1fr);
    gap: 1rem;
    min-height: 0;
    padding: 1.5rem 1rem 2rem;
  }

  #header_logo {
    width: 4.5rem;
  }

  #header_title h1 {
    font-size: clamp(1.65rem, 8vw, 2.15rem);
  }

  #header_title h2 {
    font-size: 0.8rem;
  }

  #header_upload_wrapper {
    display: flex;
  }
}

/* Brand mark without a surrounding tile */
#header_logo,
#header.is-compact #header_logo {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

#header_logo img {
  width: 86%;
  height: 86%;
  filter: invert(1);
  opacity: 0.96;
}

/* Prominent local-processing notice */
.privacy_strip {
  display: grid;
  grid-template-columns: 2.75rem auto minmax(0, 1fr);
  gap: 1rem;
  padding: 1.45rem clamp(1.25rem, 4vw, 4.5rem);
  border: 0;
  color: #fff;
  background: #176b52;
}

.privacy_strip::before {
  content: "✓";
  display: grid;
  width: 2.75rem;
  height: 2.75rem;
  place-items: center;
  border: 2px solid rgba(255, 255, 255, 0.72);
  border-radius: 0;
  color: #fff;
  font-size: 1.2rem;
  font-weight: 850;
}

.privacy_strip strong {
  align-self: center;
  color: #fff;
  font-size: 1rem;
  font-weight: 800;
}

.privacy_strip span {
  align-self: center;
  color: #e2f4ed;
  font-size: 0.9rem;
}

@media (max-width: 640px) {
  .privacy_strip {
    grid-template-columns: 2.5rem minmax(0, 1fr);
    gap: 0.75rem;
  }

  .privacy_strip::before {
    grid-row: 1 / 3;
    width: 2.5rem;
    height: 2.5rem;
  }
}

/* Export workspace: one readable action list instead of three cards */
#export_area {
  display: block;
  overflow: visible;
  border-top: 4px solid #88a5bc;
  background: #fff;
}

.export_intro {
  padding: clamp(2rem, 4vw, 3.5rem) clamp(1.25rem, 4vw, 4.5rem);
  border-bottom: 1px solid var(--border);
}

.export_intro > span {
  display: block;
  margin-bottom: 0.45rem;
  color: var(--teal);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.export_intro h2 {
  margin-bottom: 0.6rem;
  color: var(--ink);
  font-size: clamp(1.65rem, 3vw, 2.5rem);
  font-weight: 780;
  letter-spacing: -0.035em;
}

.export_intro p {
  max-width: 65ch;
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.export_container {
  display: grid;
  grid-template-columns: minmax(15rem, 0.42fr) minmax(0, 1fr);
  width: 100%;
  padding: 0 clamp(1.25rem, 4vw, 4.5rem);
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.export_container > h3,
.export_container > h3:first-child {
  grid-column: 1;
  margin: 0;
  padding: 1.8rem 2rem 1.8rem 0;
  border-top: 1px solid var(--border);
  color: var(--ink);
  font-size: 0.82rem;
  line-height: 1.5;
}

.export_container > .flex-container {
  grid-column: 2;
  display: grid;
  grid-template-columns: minmax(13rem, 0.55fr) minmax(0, 1fr);
  gap: clamp(1rem, 3vw, 2.5rem);
  align-items: center;
  padding: 1.35rem 0 1.35rem 2rem;
  border-top: 1px solid var(--border);
}

.export_container:first-of-type > h3:first-child,
.export_container:first-of-type > h3:first-child + .flex-container {
  border-top: 0;
}

.export_container .col-1 {
  min-width: 0;
}

.export_container .col-1 > button {
  min-width: 11rem;
}

.export_container .col-3 p {
  max-width: 70ch;
  color: var(--ink-soft);
  font-size: 0.86rem;
  line-height: 1.65;
}

.export_container + .export_container {
  margin-top: 1.75rem;
  border-top: 12px solid var(--page);
}

.export_system_heading {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 1rem;
  min-width: 0;
  margin-top: 1.5rem;
  padding: 1.15rem 1.25rem;
  border-left: 4px solid var(--teal);
  border-bottom: 1px solid var(--border);
  background: var(--teal-soft);
}

.export_system_number {
  flex: 0 0 auto;
  padding-right: 1rem;
  border-right: 1px solid var(--border-strong);
  color: var(--teal);
  font-size: 0.85rem;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
}

.export_system_heading > div {
  min-width: 0;
}

.export_system_heading h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1rem, 2vw, 1.3rem);
  font-weight: 750;
  line-height: 1.35;
}

.export_system_heading p {
  margin: 0.25rem 0 0;
  color: var(--ink-soft);
  font-size: 0.82rem;
}

.export_container > .export_system_heading + h3,
.export_container > .export_system_heading + h3 + .flex-container {
  border-top: 0;
}

/* Email preview dialog */
.modal_overlay {
  position: fixed;
  z-index: 9998;
  inset: 0;
  display: grid;
  padding: clamp(0.5rem, 3vw, 2rem);
  place-items: center;
  background: rgba(8, 15, 28, 0.72);
  backdrop-filter: blur(3px);
}

body.modal_open {
  overflow: hidden;
}

.modal_overlay .preview_dialog {
  position: relative;
  inset: auto;
  display: flex;
  flex-direction: column;
  width: min(100%, 72rem);
  max-height: min(92dvh, 54rem);
  padding: 0;
  overflow: hidden;
  transform: none;
  border: 1px solid var(--border-strong);
  border-radius: 0;
  background: #fff;
  box-shadow: 0 24px 70px rgba(8, 15, 28, 0.35);
}

.modal_overlay .preview_dialog::before {
  display: none;
}

.preview_header {
  display: flex;
  flex: 0 0 auto;
  justify-content: space-between;
  gap: 2rem;
  padding: 1.6rem 1.8rem 1.35rem;
  border-bottom: 1px solid var(--border);
}

.preview_kicker {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--teal);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.preview_header h2 {
  margin: 0 0 0.35rem;
  color: var(--ink);
  font-size: clamp(1.45rem, 3vw, 2rem);
}

.preview_header p {
  max-width: 62ch;
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.86rem;
}

.preview_header .popup-close {
  position: static;
  flex: 0 0 auto;
  width: 2.5rem;
  height: 2.5rem;
  min-height: 2.5rem;
  padding: 0;
  border: 1px solid var(--border);
  color: var(--ink-soft);
  background: #fff;
  box-shadow: none;
}

.preview_header .popup-close:hover {
  color: var(--ink);
  background: var(--surface-subtle);
  box-shadow: none;
}

.preview_summary {
  display: grid;
  flex: 0 0 auto;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-bottom: 1px solid var(--border);
  background: var(--surface-subtle);
}

.preview_summary span {
  min-width: 0;
  padding: 0.85rem 1.1rem;
  border-left: 1px solid var(--border);
  color: var(--ink-soft);
  font-size: 0.75rem;
  overflow-wrap: anywhere;
}

.preview_summary span:first-child {
  border-left: 0;
}

.preview_summary strong {
  display: block;
  margin-bottom: 0.1rem;
  color: var(--ink);
  font-size: 0.86rem;
}

.preview_table_wrap {
  min-height: 10rem;
  overflow: auto;
}

.preview_dialog .preview_table {
  width: 100%;
  min-width: 44rem;
  border: 0 !important;
  border-radius: 0;
}

.preview_dialog .preview_table th,
.preview_dialog .preview_table td {
  padding: 0.72rem 1rem !important;
  border-right: 0 !important;
  border-bottom: 1px solid var(--border) !important;
  font-size: 0.82rem;
}

.preview_dialog .preview_table thead {
  position: sticky;
  z-index: 1;
  top: 0;
}

.preview_dialog .preview_table thead th {
  color: #fff;
  background: var(--navy);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.preview_dialog .preview_table tbody tr:nth-child(even) {
  background: #f7f9fa;
}

.preview_footer {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1rem 1.8rem;
  border-top: 1px solid var(--border);
  background: #fff;
}

.preview_note {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.78rem;
}

.preview_note_marker {
  flex: 0 0 auto;
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 0;
  background: #d8b44d;
}

.preview_footer button {
  flex: 0 0 auto;
}

@media (max-width: 820px) {
  .export_container {
    grid-template-columns: 1fr;
  }

  .export_container > h3,
  .export_container > h3:first-child {
    grid-column: 1;
    padding: 1.5rem 0 0.45rem;
  }

  .export_container > .flex-container {
    grid-column: 1;
    grid-template-columns: minmax(12rem, 0.7fr) minmax(0, 1fr);
    padding: 0 0 1.5rem;
    border-top: 0;
  }

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

  .preview_summary span:nth-child(3) {
    border-left: 0;
    border-top: 1px solid var(--border);
  }

  .preview_summary span:nth-child(4) {
    border-top: 1px solid var(--border);
  }
}

@media (max-width: 560px) {
  .export_container > .flex-container {
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }

  .export_container .col-1 > button {
    width: calc(100% - 2.8rem);
  }

  .modal_overlay {
    padding: 0;
  }

  .modal_overlay .preview_dialog {
    width: 100%;
    max-height: 100dvh;
    border: 0;
    border-radius: 0;
  }

  .preview_header {
    padding: 1.1rem;
  }

  .preview_summary span {
    padding: 0.7rem 0.8rem;
  }

  .preview_footer {
    align-items: stretch;
    flex-direction: column;
    padding: 0.9rem 1rem;
  }

  .preview_footer button {
    width: 100%;
  }
}

.preview_original {
  display: block;
  margin-bottom: 0.3rem;
  color: #775d12;
  font-size: 0.73rem;
}

.preview_email_input {
  width: min(100%, 23rem);
  min-height: 2.5rem;
  padding: 0.4rem 0.6rem;
  border: 1px solid var(--border-strong);
  background: #fff;
  color: var(--ink);
  font-size: 0.83rem;
}

.preview_email_input:invalid {
  border-color: #b42318;
}

#preview_error {
  margin: 0;
  color: #a11b13;
  font-size: 0.82rem;
  font-weight: 700;
}

.jamf_dialog {
  position: relative;
  inset: auto;
  display: flex;
  flex-direction: column;
  width: min(100%, 90rem);
  max-height: 92dvh;
  padding: 0;
  overflow: hidden;
  transform: none;
}

.jamf_dialog::before {
  display: none;
}

.jamf_summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--surface-subtle);
}

.jamf_summary > div {
  display: grid;
  gap: 0.15rem;
  min-width: 0;
  padding: 0.9rem 1.25rem;
  border-left: 1px solid var(--border);
}

.jamf_summary > div:first-child {
  border-left: 0;
}

.jamf_summary strong {
  color: var(--ink);
  font-size: 1.35rem;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}

.jamf_summary span {
  color: var(--ink-soft);
  font-size: 0.78rem;
}

.jamf_summary .jamf_summary_delete {
  background: #fff0ee;
}

.jamf_summary_delete strong,
.jamf_summary_delete span {
  color: #9d2b21;
}

.jamf_summary .jamf_summary_problem,
.jamf_dialog #jamf_compare_table .jamf_problem {
  background: #ffe1de;
}

.jamf_summary_problem strong,
.jamf_summary_problem span,
.jamf_dialog #jamf_compare_table .jamf_problem strong {
  color: #9d2b21;
}

.jamf_username_input {
  min-width: 14rem;
  border-color: #c93b2f;
  background: #fff;
}

.jamf_hint {
  margin: 0;
  padding: 0.7rem 1.8rem;
  color: var(--ink-soft);
  background: var(--surface-subtle);
  font-size: 0.82rem;
}

.jamf_table_wrap {
  min-height: 10rem;
  overflow: auto;
}

.jamf_dialog #jamf_compare_table {
  width: 100%;
  min-width: 58rem;
  border: 0;
}

.jamf_dialog #jamf_compare_table th {
  position: sticky;
  top: 0;
  z-index: 1;
  color: #fff;
  background: var(--navy);
  white-space: nowrap;
}

.jamf_dialog #jamf_compare_table td {
  vertical-align: top;
  white-space: nowrap;
}

.jamf_dialog #jamf_compare_table .jamf_new {
  background: #edf6ee;
}

.jamf_dialog #jamf_compare_table .jamf_changed {
  background: #fff8e8;
}

.jamf_dialog #jamf_compare_table .jamf_extra {
  background: #fff0ee;
}

.jamf_dialog #jamf_compare_table .jamf_outside {
  background: #f3f5f6;
}

.jamf_dialog #jamf_compare_table s {
  color: #8a7777;
}

.jamf_dialog #jamf_compare_table input:disabled {
  opacity: 0.45;
}

@media (max-width: 560px) {
  .jamf_dialog {
    width: 100%;
    max-height: 100dvh;
  }

  .jamf_hint {
    padding: 0.7rem 1rem;
  }

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

  .jamf_summary > div:nth-child(3) {
    border-top: 1px solid var(--border);
    border-left: 0;
  }

  .jamf_summary > div:nth-child(4) {
    border-top: 1px solid var(--border);
  }
}
