:root {
  --bg: #0a0e17;

  /* Cards (tumsākas nekā bija) */
  --card: rgba(12, 9, 9, 0.45);
  --card2: rgba(16, 11, 11, 0.5);
  --card-hover: rgba(8, 7, 7, 0.55);

  --border: rgba(22, 17, 17, 0.12);
  --border-strong: rgba(33, 20, 20, 0.18);

  --text: rgba(255, 255, 255, 0.95);
  --muted: rgba(255, 255, 255, 0.75);
  --muted2: rgba(255, 255, 255, 0.55);

  --shadow: 0 18px 46px rgba(0, 0, 0, 0.44);
  --shadow-sm: 0 8px 22px rgba(0, 0, 0, 0.32);

  --radius: 16px;
  --radius2: 20px;

  --focus: 0 0 0 3px rgba(88, 101, 242, 0.34);

  --primary: linear-gradient(
    135deg,
    rgba(88, 101, 242, 0.95),
    rgba(16, 185, 129, 0.85)
  );
  --primary-hover: linear-gradient(
    135deg,
    rgba(88, 101, 242, 1),
    rgba(16, 185, 129, 0.95)
  );

  --success: rgba(34, 197, 94, 0.15);
  --success-border: rgba(34, 197, 94, 0.4);
  --error: rgba(239, 68, 68, 0.15);
  --error-border: rgba(239, 68, 68, 0.4);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

html, body {
  height: 100%;
  margin: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background:
    linear-gradient(180deg, rgba(7, 11, 19, 0.74), rgba(7, 11, 19, 0.46)),
    url("./images/site-bg.jpg"),
    radial-gradient(1200px 700px at 18% 8%, rgba(88, 101, 242, 0.22), transparent 60%),
    radial-gradient(1000px 700px at 88% 18%, rgba(16, 185, 129, 0.18), transparent 60%),
    radial-gradient(900px 600px at 50% 95%, rgba(236, 72, 153, 0.10), transparent 60%),
    var(--bg);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

a.underline {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  color: var(--muted);
}

a.underline:hover {
  color: var(--text);
  text-decoration-thickness: 2px;
}

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 24px;
}

@media (max-width: 520px) {
  .container { padding: 16px; }
}

/* Navigation */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 0 20px;
  margin-bottom: 8px;
}

.navSticky {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
  background: linear-gradient(180deg, rgba(10, 14, 23, 0.80), rgba(10, 14, 23, 0.36));
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  transition: transform 0.2s ease;
}

.brand:hover { transform: translateY(-1px); }

.logo {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(88, 101, 242, 0.6), rgba(16, 185, 129, 0.4));
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.logo::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.10), transparent);
  transform: rotate(45deg);
  animation: logoShine 3s infinite;
}

@keyframes logoShine {
  0%, 100% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
  50% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.brand h1 {
  font-size: 17px;
  margin: 0;
  letter-spacing: 0.3px;
  font-weight: 650;
}

.brand p {
  margin: 0;
  font-size: 12px;
  color: var(--muted2);
  letter-spacing: 0.2px;
}

.navlinks {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.pill {
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.pill:hover {
  background: rgba(255, 255, 255, 0.10);
  border-color: var(--border-strong);
  transform: translateY(-1px);
}

/* Buttons */
.btn {
  appearance: none;
  border: none;
  cursor: pointer;
  padding: 8px 14px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.10);
  color: var(--text);
  border: 1px solid var(--border);
  font-size: 13px;
  font-weight: 600;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.btn:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: var(--border-strong);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.btn:active { transform: translateY(0); }

.btn:focus-visible {
  outline: none;
  box-shadow: var(--focus);
}

.btn.primary {
  background: var(--primary);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #fff;
  font-weight: 700;
  padding: 10px 18px;
}

.btn.primary:hover {
  background: var(--primary-hover);
  box-shadow: 0 10px 28px rgba(88, 101, 242, 0.40);
}

/* Hero banner */
.heroBanner {
  margin-top: 14px;
  border-radius: 26px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background:
    linear-gradient(180deg, rgba(10, 14, 23, 0.54), rgba(10, 14, 23, 0.56)),
    radial-gradient(1200px 600px at 18% 20%, rgba(88, 101, 242, 0.46), transparent 60%),
    radial-gradient(1000px 600px at 88% 25%, rgba(16, 185, 129, 0.42), transparent 60%),
    url("./images/hero-waves.jpg");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.heroBannerInner {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 18px;
  padding: 22px;
}

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

.heroCopy { padding: 6px; }

.heroTitle {
  margin: 12px 0 10px;
  font-size: 34px;
  letter-spacing: -0.9px;
  line-height: 1.08;
}

@media (max-width: 520px) { .heroTitle { font-size: 28px; } }

.heroLead {
  color: var(--muted);
  font-size: 15px;
  max-width: 72ch;
  margin: 0;
}

.heroActions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.heroCTA {
  padding: 14px 22px;
  font-size: 14px;
  border-radius: 14px;
  box-shadow: 0 14px 34px rgba(16, 185, 129, 0.18);
}

.heroChips {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
}

/* One single Chip style (no duplicates) */
.chip {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
  letter-spacing: 0.2px;
}

.contactCard {
  align-self: start;
  background: var(--card2);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

/* Cards */
.card {
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: var(--radius2);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.card.pad { padding: 20px; }

.card:hover {
  background: var(--card-hover);
  border-color: rgba(255, 255, 255, 0.16);
  transform: translateY(-2px);
}

.card h2 {
  margin: 0 0 10px;
  font-size: 24px;
  letter-spacing: -0.5px;
  font-weight: 750;
  line-height: 1.2;
}

.card h3 {
  margin: 0 0 8px;
  font-size: 18px;
  letter-spacing: -0.3px;
  font-weight: 700;
}

.card p {
  margin: 0 0 10px;
  color: var(--muted);
  line-height: 1.65;
  font-size: 14px;
}

/* Card images */
.card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: calc(var(--radius2) - 1px) calc(var(--radius2) - 1px) 0 0;
  margin: -1px -1px 20px -1px;
  border: 1px solid var(--border);
}

.card-image-wrapper {
  position: relative;
  overflow: hidden;
  margin: -20px -20px 16px -20px;
  border-radius: var(--radius2) var(--radius2) 0 0;
}

.card-image-wrapper::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 90px;
  background: linear-gradient(to top, rgba(10, 14, 23, 0.92), transparent);
  pointer-events: none;
}

.card-image-wrapper img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.card:hover .card-image-wrapper img { transform: scale(1.05); }

/* KPIs */
.kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 18px;
}

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

.kpi {
  padding: 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.05);
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.kpi::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(88, 101, 242, 0.55), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.kpi:hover::before { opacity: 1; }

.kpi:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.16);
  transform: translateY(-2px);
}

.kpi .big {
  font-size: 17px;
  font-weight: 750;
  letter-spacing: -0.2px;
}

.kpi .small {
  font-size: 12px;
  color: var(--muted2);
  margin-top: 4px;
  line-height: 1.4;
}

/* Grid */
.grid3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px;
}

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

/* Badge */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.2px;
}

/* Section */
.section { padding: 56px 0; }

.sectionBlock {
  padding: 26px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.03));
  box-shadow: var(--shadow-sm);
}

@media (max-width: 520px) { .sectionBlock { padding: 18px; } }

.section h3 {
  margin: 0 0 14px;
  font-size: 22px;
  font-weight: 750;
  letter-spacing: -0.4px;
}

.muted { color: var(--muted); }
.small { font-size: 12px; color: var(--muted2); line-height: 1.5; }

/* Capacity summary */
.capacity-summary {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 6px;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.03));
}

.capacity-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 14px;
  color: var(--text);
}

.capacity-item strong { font-size: 14px; font-weight: 800; }

.capacity-total {
  padding-top: 8px;
  margin-top: 2px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  justify-content: space-between;
  color: var(--muted);
}

/* Forms */
.form { display: grid; gap: 14px; }

.row2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

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

/* Admin filter bar */
.filterBar {
  padding: 12px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.03));
  box-shadow: var(--shadow-sm);
  margin-bottom: 12px;
}

.filterGrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  align-items: end;
}

.filterGrid > * { min-width: 0; }

.filterActions { display: flex; align-items: flex-end; }

@media (max-width: 920px) { .filterGrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) {
  .filterGrid { grid-template-columns: 1fr; }
  .filterBar { padding: 10px; }
}

/* Sortable table headers */
th.sortable { cursor: pointer; user-select: none; }
th.sortable:hover { color: rgba(255, 255, 255, 0.92); }

.thInner {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  width: auto;
}

.sortArrow {
  opacity: 0.65;
  font-size: 11px;
  min-width: 12px;
  text-align: left;
}

.sortArrow.active {
  color: rgba(16, 185, 129, 0.95);
  opacity: 1;
  font-size: 16px;
  font-weight: 900;
}

.sortArrow.inactive { opacity: 0.35; font-size: 12px; }

.tableWrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* Table */
.table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 8px;
  table-layout: auto;
}

.table th {
  text-align: left;
  font-size: 10px;
  color: var(--muted2);
  font-weight: 750;
  padding: 6px 10px;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  white-space: nowrap;
}

.table td {
  padding: 10px;
  background: rgba(255, 255, 255, 0.05);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  vertical-align: top;
  overflow-wrap: break-word;
  word-break: break-word;
}

.table td:first-child {
  border-left: 1px solid var(--border);
  border-radius: 10px 0 0 10px;
}

.table td:last-child {
  border-right: 1px solid var(--border);
  border-radius: 0 10px 10px 0;
}

.table tr { transition: all 0.2s ease; }

.table tbody tr:hover td {
  background: rgba(255, 255, 255, 0.10);
  border-color: rgba(255, 255, 255, 0.16);
}

/* Table select fields */
.table select {
  padding: 6px 10px;
  font-size: 12px;
  min-width: 120px;
}

/* Table buttons */
.table .btn {
  padding: 7px 14px;
  font-size: 12px;
  white-space: nowrap;
  min-width: 75px;
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.32);
  color: rgba(255, 255, 255, 0.92);
}

.table .btn:hover {
  background: rgba(239, 68, 68, 0.22);
  border-color: rgba(239, 68, 68, 0.52);
  transform: translateY(-1px);
}

@media (max-width: 860px) {
  .table thead { display: none; }

  .table,
  .table tbody,
  .table tr,
  .table td {
    display: block;
    width: 100%;
  }

  .table tr {
    margin-bottom: 10px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.05);
    box-shadow: var(--shadow-sm);
    padding: 10px;
  }

  .table td {
    border: none !important;
    padding: 8px 0;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
  }

  .table td::before {
    content: attr(data-label);
    flex: 0 0 100px;
    max-width: 100px;
    color: var(--muted2);
    font-size: 11px;
    font-weight: 750;
    letter-spacing: 0.2px;
    text-transform: none;
  }

  .table td:last-child { justify-content: flex-end; }
}

label {
  font-size: 12px;
  color: var(--muted2);
  display: block;
  margin: 0 0 6px;
  font-weight: 650;
  letter-spacing: 0.2px;
}

input,
select,
textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.30);
  color: var(--text);
  outline: none;
  font-size: 13px;
  transition: all 0.2s ease;
  font-family: inherit;
}

input::placeholder,
textarea::placeholder {
  color: var(--muted2);
  opacity: 0.65;
}

textarea {
  min-height: 80px;
  resize: vertical;
  line-height: 1.6;
}

input:focus,
select:focus,
textarea:focus {
  box-shadow: var(--focus);
  border-color: rgba(88, 101, 242, 0.55);
  background: rgba(0, 0, 0, 0.36);
}

input:hover,
select:hover,
textarea:hover {
  border-color: rgba(255, 255, 255, 0.20);
}

/* Date inputs - clickable wrapper */
.date-wrapper {
  position: relative;
  cursor: pointer;
}

.date-wrapper input[type="date"] {
  cursor: pointer;
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='rgb(88,101,242)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2' ry='2'/%3E%3Cline x1='16' y1='2' x2='16' y2='6'/%3E%3Cline x1='8' y1='2' x2='8' y2='6'/%3E%3Cline x1='3' y1='10' x2='21' y2='10'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
}

.date-wrapper input[type="date"]::-webkit-calendar-picker-indicator {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

/* Inline Error */
.inlineError {
  display: none;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--error-border);
  background: var(--error);
  color: var(--text);
  font-size: 13px;
  line-height: 1.5;
}

.inlineError.show {
  display: block;
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* HR */
.hr {
  height: 1px;
  background: rgba(255, 255, 255, 0.10);
  border: 0;
  margin: 14px 0;
}

/* Footer */
.footer {
  padding: 24px 0 32px;
  color: var(--muted2);
  font-size: 12px;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  margin-top: 32px;
}

/* Toasts */
.toasts {
  position: fixed;
  top: 20px;
  right: 20px;
  display: grid;
  gap: 10px;
  z-index: 9999;
  max-width: 380px;
  pointer-events: none;
}

.toast {
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(10, 14, 23, 0.96);
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 34px rgba(0, 0, 0, 0.62);
  padding: 14px;
  pointer-events: all;
  animation: toastSlideIn 0.3s ease;
}

@keyframes toastSlideIn {
  from { opacity: 0; transform: translateX(100%); }
  to { opacity: 1; transform: translateX(0); }
}

.toast .tTitle {
  font-weight: 750;
  margin-bottom: 4px;
  font-size: 14px;
}

.toast .tMsg {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.toast .tRow {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.toast button {
  padding: 5px 9px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  cursor: pointer;
  font-size: 15px;
  line-height: 1;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.toast button:hover { background: rgba(255, 255, 255, 0.12); }

/* Admin Split Layout */
.split {
  display: grid;
  grid-template-columns: 1.5fr 0.5fr;
  gap: 14px;
  align-items: start;
}

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

/* Panel with Hover Effect */
.panel {
  position: relative;
  transition: all 0.2s ease;
}

.panel:hover,
.panel:focus-within {
  z-index: 10;
  transform: translateY(-2px);
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.62);
}

/* Scrollbar */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: rgba(255, 255, 255, 0.03); }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.12); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.18); }

/* Loading */
.loading {
  opacity: 0.6;
  pointer-events: none;
  position: relative;
}

.loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 18px;
  height: 18px;
  margin: -9px 0 0 -9px;
  border: 2px solid rgba(255, 255, 255, 0.22);
  border-top-color: var(--text);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* Accessibility */
.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;
}

/* Focus visible */
*:focus-visible {
  outline: none;
  box-shadow: var(--focus);
}

/* Responsive improvements */
@media (max-width: 768px) {
  .container { padding: 14px; }

  .nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .navlinks {
    width: 100%;
    justify-content: flex-start;
  }

  .card h2 { font-size: 22px; }

  .toasts {
    top: 14px;
    right: 14px;
    left: 14px;
    max-width: none;
  }
}

/* Admin UI additions */
.btnStack {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: stretch;
}

.noteLine {
  max-width: 520px;
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  word-break: break-word;
  overflow-wrap: anywhere;
}

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  z-index: 999;
}

.modal.hidden { display: none; }
.modalBackdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.45); }
.modalCard { position: relative; width: min(720px, 100%); max-height: calc(100vh - 28px); overflow: auto; }
.modalHead { display: flex; align-items: center; justify-content: space-between; gap: 12px; }

/* Motion preference */
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
