:root {
  --font-sans: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --bg: #fff4e8;
  --bg-mesh-a: rgba(251, 146, 60, 0.28);
  --bg-mesh-b: rgba(52, 211, 153, 0.22);
  --bg-mesh-c: rgba(167, 139, 250, 0.2);
  --bg-mesh-d: rgba(244, 114, 182, 0.12);
  --surface: #fffdf9;
  --surface-muted: #fff0e0;
  --surface-tint: #ecfdf5;
  --text: #1c1917;
  --text-secondary: #44403c;
  --muted: #78716c;
  --primary: #0d9488;
  --primary-dark: #0f766e;
  --primary-light: #ccfbf1;
  --primary-glow: rgba(13, 148, 136, 0.4);
  --accent: #7c3aed;
  --accent-light: #ede9fe;
  --accent-warm: #ea580c;
  --accent-warm-light: #ffedd5;
  --border: #f0d4b8;
  --border-strong: #e4b896;
  --success: #059669;
  --success-bg: #d1fae5;
  --warning: #d97706;
  --warning-bg: #fef3c7;
  --danger: #dc2626;
  --danger-bg: #fee2e2;
  --sidebar-w: 248px;
  --header-h: 60px;
  --sidebar-bg: #3a4248;
  --sidebar-bg-mid: #333a40;
  --sidebar-bg-deep: #2a3136;
  --sidebar-text: #e7e5e4;
  --sidebar-text-muted: #a8b0b6;
  --sidebar-text-hover: #fafaf9;
  --sidebar-active-bg: rgba(255, 255, 255, 0.09);
  --sidebar-active-text: #ffffff;
  --sidebar-active-bar: #5eb5aa;
  --header-bg: rgba(255, 253, 249, 0.9);
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 2px 8px rgba(120, 53, 15, 0.07), 0 6px 20px rgba(13, 148, 136, 0.08);
  --shadow-lg: 0 12px 36px rgba(120, 53, 15, 0.12), 0 4px 16px rgba(124, 58, 237, 0.08);
  --sched-chrome-muted: #fff7ed;
  --sched-chrome-footer: #ffedd5;
  --sched-grid-line: #fde8d4;
  font-family: var(--font-sans);
}

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

body {
  margin: 0;
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 85% 60% at 0% 0%, var(--bg-mesh-a), transparent 50%),
    radial-gradient(ellipse 75% 50% at 100% 5%, var(--bg-mesh-b), transparent 48%),
    radial-gradient(ellipse 60% 45% at 85% 95%, var(--bg-mesh-c), transparent 50%),
    radial-gradient(ellipse 50% 40% at 10% 90%, var(--bg-mesh-d), transparent 45%);
  background-attachment: fixed;
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--primary-dark);
  text-decoration: none;
  font-weight: 500;
}

a:hover {
  color: var(--primary);
  text-decoration: underline;
}

.app-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.app-header {
  height: var(--header-h);
  background: var(--header-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.25rem 0 calc(var(--sidebar-w) + 1.25rem);
  position: sticky;
  top: 0;
  z-index: 20;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.7) inset;
}

.app-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  color: var(--text);
}

.app-brand-mark {
  width: 11px;
  height: 11px;
  border-radius: 3px;
  background: linear-gradient(135deg, #34d399, #a78bfa, #fb923c);
  box-shadow: 0 0 0 3px rgba(251, 146, 60, 0.25);
  flex-shrink: 0;
}

.app-header-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.875rem;
  color: var(--muted);
}

.app-header-meta a {
  color: var(--text-secondary);
  font-weight: 600;
}

.app-header-meta a:hover {
  color: var(--primary);
}

.app-header-clock {
  color: var(--primary-dark);
  font-weight: 700;
  white-space: nowrap;
  padding: 0.3rem 0.7rem;
  background: linear-gradient(135deg, var(--primary-light), var(--accent-warm-light));
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  font-size: 0.82rem;
  letter-spacing: 0.01em;
}

.app-body {
  display: flex;
  flex: 1;
}

.app-sidebar {
  width: var(--sidebar-w);
  background: linear-gradient(
    180deg,
    var(--sidebar-bg) 0%,
    var(--sidebar-bg-mid) 55%,
    var(--sidebar-bg-deep) 100%
  );
  border-right: 1px solid rgba(0, 0, 0, 0.18);
  padding: 1.1rem 0.85rem;
  position: fixed;
  top: var(--header-h);
  bottom: 0;
  left: 0;
  overflow-y: auto;
  box-shadow: 4px 0 18px rgba(42, 49, 54, 0.14);
}

.app-sidebar a {
  display: block;
  padding: 0.6rem 0.85rem;
  border-radius: var(--radius-sm);
  color: var(--sidebar-text-muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  position: relative;
  margin-bottom: 0.15rem;
  transition: background 0.15s ease, color 0.15s ease;
}

.nav-badge {
  position: absolute;
  right: 0.65rem;
  top: 50%;
  transform: translateY(-50%);
  min-width: 18px;
  height: 18px;
  padding: 0 6px;
  border-radius: 999px;
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.35);
}

.app-sidebar a:hover {
  background: rgba(255, 255, 255, 0.07);
  color: var(--sidebar-text-hover);
  text-decoration: none;
}

.app-sidebar a.active {
  background: var(--sidebar-active-bg);
  color: var(--sidebar-active-text);
  font-weight: 700;
  text-decoration: none;
}

.app-sidebar a.active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 60%;
  border-radius: 0 3px 3px 0;
  background: var(--sidebar-active-bar);
}

.app-main {
  margin-left: var(--sidebar-w);
  padding: 1.5rem 1.75rem 2rem;
  flex: 1;
  width: calc(100% - var(--sidebar-w));
  min-height: calc(100vh - var(--header-h));
}

.mobile-nav {
  display: none;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.15rem 1.2rem;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent-warm), var(--accent));
  opacity: 0.9;
}

.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
  border-color: var(--border-strong);
}

.card h3 {
  margin: 0 0 0.4rem;
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.card .metric {
  font-size: 1.85rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
  line-height: 1.15;
}

.badge {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.badge-draft {
  background: var(--accent-warm-light);
  color: #9a3412;
}

.badge-active {
  background: var(--success-bg);
  color: #047857;
}

.badge-warning {
  background: var(--warning-bg);
  color: #b45309;
}

.page-title {
  margin: 0 0 1.25rem;
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
  line-height: 1.2;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.55rem 1.05rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-size: 0.9rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 2px 8px var(--primary-glow);
}

.btn-primary:hover {
  background: var(--primary-dark);
  color: #fff;
  text-decoration: none;
  box-shadow: 0 3px 12px var(--primary-glow);
}

.btn-secondary {
  background: var(--surface);
  border-color: var(--border-strong);
  color: var(--text-secondary);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.btn-secondary:hover {
  background: var(--surface-muted);
  border-color: var(--primary);
  color: var(--primary-dark);
  text-decoration: none;
}

.alert {
  padding: 0.8rem 1rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
  font-weight: 500;
  font-size: 0.92rem;
  border: 1px solid transparent;
}

.alert-error {
  background: var(--danger-bg);
  color: #991b1b;
  border-color: #fecaca;
}

.alert-success {
  background: var(--success-bg);
  color: #065f46;
  border-color: #a7f3d0;
}

.auth-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background:
    radial-gradient(ellipse 80% 60% at 15% 15%, var(--bg-mesh-a), transparent 50%),
    radial-gradient(ellipse 70% 50% at 90% 25%, var(--bg-mesh-b), transparent 45%),
    linear-gradient(155deg, #115e59 0%, #6d28d9 48%, #c2410c 100%);
}

.auth-card {
  width: 100%;
  max-width: 400px;
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: calc(var(--radius) + 2px);
  padding: 2rem 2.1rem;
  box-shadow: var(--shadow-lg);
}

.auth-card h1 {
  margin: 0 0 0.25rem;
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.auth-card .subtitle {
  color: var(--muted);
  margin: 0 0 1.5rem;
  font-size: 0.95rem;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-family: inherit;
  background: var(--surface);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.18);
}

.form-hint {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0.35rem 0 0;
}

.employee-pay-fieldset {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem 1.25rem;
  margin: 0 0 1.25rem;
  background: var(--surface-muted);
}

.employee-pay-fieldset legend {
  font-weight: 700;
  padding: 0 0.35rem;
}

.employee-pay-table .employee-pay-rate-input {
  max-width: 8rem;
}

.employee-pay-table .schedule-legend-swatch {
  vertical-align: middle;
  margin-right: 0.35rem;
}

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

.company-list li {
  margin-bottom: 0.5rem;
}

.company-list button {
  width: 100%;
  text-align: left;
  padding: 0.9rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  cursor: pointer;
  font-size: 1rem;
  font-family: inherit;
  font-weight: 600;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.company-list button:hover {
  border-color: var(--primary);
  background: var(--primary-light);
  box-shadow: var(--shadow);
}

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

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

th,
td {
  padding: 0.7rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

tbody tr:last-child td {
  border-bottom: none;
}

tbody tr:hover td {
  background: var(--surface-muted);
}

th {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--primary-dark);
  font-weight: 700;
  background: linear-gradient(180deg, var(--surface-tint) 0%, var(--surface-muted) 100%);
}

.placeholder-box {
  background: linear-gradient(145deg, var(--surface) 0%, var(--accent-warm-light) 100%);
  border: 2px dashed var(--border-strong);
  border-radius: var(--radius);
  padding: 2.25rem 1.5rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.95rem;
}

.settings-lead {
  color: var(--muted);
  margin: -0.35rem 0 1.25rem;
  max-width: 42rem;
  font-size: 0.95rem;
}

.settings-subnav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
  margin-bottom: 1.35rem;
  padding: 0.35rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  width: fit-content;
  max-width: 100%;
  box-shadow: var(--shadow);
}

.settings-subnav a {
  color: var(--muted);
  text-decoration: none;
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  border-bottom: none;
}

.settings-subnav a:hover {
  color: var(--primary-dark);
  background: var(--surface-muted);
  text-decoration: none;
}

.settings-subnav a.active {
  color: #fff;
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 0 2px 8px rgba(13, 148, 136, 0.25);
}

.positions-table-wrap {
  margin-bottom: 1rem;
}

.positions-table input[type="text"],
.positions-table input[type="number"],
.positions-table select {
  width: 100%;
  min-width: 0;
  padding: 0.4rem 0.5rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.9rem;
  font-family: inherit;
}

.positions-table .position-order-input {
  width: 4.5rem;
}

.position-color-input {
  width: 2.5rem;
  height: 2rem;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 6px;
  cursor: pointer;
  background: transparent;
}

.positions-check {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.85rem;
  white-space: nowrap;
}

.positions-delete-check {
  color: var(--muted);
}

.positions-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.btn-sm {
  padding: 0.35rem 0.65rem;
  font-size: 0.85rem;
}

.table-empty {
  text-align: center;
  color: var(--muted);
  padding: 1.5rem !important;
}

.table-actions {
  white-space: nowrap;
}

.table-actions a,
.table-actions .link-button {
  margin-right: 0.75rem;
}

.inline-form {
  display: inline;
}

.link-button {
  background: none;
  border: none;
  padding: 0;
  color: var(--danger);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
}

.link-button:hover {
  color: #b91c1c;
}

.employee-form .card {
  padding: 1.35rem;
}

.employees-table-wrap {
  overflow-x: auto;
}

.employees-table-wrap table {
  min-width: 720px;
}

.schedule-hours-group {
  margin-bottom: 1.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
}

.schedule-hours-labels {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.schedule-hours-time {
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--primary-dark);
}

.schedule-hours-track-wrap {
  position: relative;
  height: 2.5rem;
  margin: 0 0.25rem;
}

.schedule-hours-track {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 8px;
  background: var(--border);
  border-radius: 999px;
  pointer-events: none;
}

.schedule-hours-track::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--range-left, 0%);
  width: var(--range-width, 0%);
  right: auto;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 999px;
}

.schedule-hours-range {
  position: absolute;
  left: 0;
  width: 100%;
  top: 50%;
  transform: translateY(-50%);
  margin: 0;
  height: 2.5rem;
  background: transparent;
  pointer-events: none;
  -webkit-appearance: none;
  appearance: none;
}

.schedule-hours-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--primary);
  box-shadow: var(--shadow);
  cursor: pointer;
  pointer-events: auto;
}

.schedule-hours-range::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--primary);
  box-shadow: var(--shadow);
  cursor: pointer;
  pointer-events: auto;
}

.schedule-hours-range::-webkit-slider-runnable-track {
  height: 8px;
  background: transparent;
}

.schedule-hours-range::-moz-range-track {
  height: 8px;
  background: transparent;
}

.schedule-hours-range-end {
  z-index: 2;
}

.schedule-hours-range-start {
  z-index: 3;
}

.schedule-hours-slider[data-readonly="1"] .schedule-hours-range::-webkit-slider-thumb,
.schedule-hours-slider[data-readonly="1"] .schedule-hours-range::-moz-range-thumb {
  cursor: default;
}

.schedule-hours-ticks {
  display: flex;
  justify-content: space-between;
  font-size: 0.7rem;
  color: var(--muted);
  margin-top: 0.35rem;
  padding: 0 0.1rem;
}

.system-shell .app-header {
  padding-left: 1.25rem;
  background: linear-gradient(90deg, var(--sidebar-bg) 0%, var(--sidebar-bg-deep) 100%);
  border-bottom-color: rgba(255, 255, 255, 0.12);
}

.system-shell .app-brand,
.system-shell .app-header-meta,
.system-shell .app-header-meta a,
.system-shell .app-header-clock {
  color: #e2e8f0;
}

.system-shell .app-header-meta a:hover {
  color: var(--sidebar-active-bar);
}

.system-shell .app-header-clock {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
}

.system-shell .app-main {
  margin-left: 0;
  width: 100%;
  max-width: 1100px;
}

@media (max-width: 768px) {
  .app-sidebar {
    display: none;
  }

  .app-header {
    padding-left: 1rem;
  }

  .app-main {
    margin-left: 0;
    width: 100%;
    padding: 1.15rem 1rem 4.75rem;
  }

  .mobile-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, var(--sidebar-bg), var(--sidebar-bg-deep));
    border-top: 1px solid rgba(0, 0, 0, 0.2);
    justify-content: space-around;
    padding: 0.45rem 0 0.55rem;
    z-index: 30;
    box-shadow: 0 -8px 24px rgba(15, 23, 42, 0.2);
  }

  .mobile-nav a {
    font-size: 0.68rem;
    color: var(--sidebar-text);
    text-align: center;
    padding: 0.25rem 0.35rem;
    text-decoration: none;
    font-weight: 600;
    border-radius: var(--radius-sm);
  }

  .mobile-nav a.active {
    color: var(--sidebar-active-text);
    background: var(--sidebar-active-bg);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
  }

  .mobile-nav .nav-badge {
    position: static;
    transform: none;
    margin-left: 0.2rem;
    vertical-align: middle;
  }
}

.system-nav {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.system-nav a {
  color: var(--primary);
}

.system-backup-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.25rem;
  align-items: start;
}

.system-backup-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.35rem;
  margin-bottom: 0;
}

.system-backup-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 1.25rem 0;
}

.system-backup-subheading {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
}

.system-backup-inline {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.75rem;
}

.system-backup-inline .form-group {
  flex: 1 1 12rem;
  margin-bottom: 0;
}

.system-backup-panel--warn {
  border-color: #fecaca;
  background: #fffbfb;
}

.system-backup-panel--recovery {
  border-color: #fde68a;
  background: #fffbeb;
  margin-bottom: 1.25rem;
}

.system-backup-heading {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
}

.system-backup-hint {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0 0 1rem;
}

.system-backup-form {
  max-width: 32rem;
}

.system-backup-checkboxes {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1rem;
}

.system-backup-checkboxes label,
.system-backup-restore-form label {
  font-weight: 600;
  font-size: 0.9rem;
}

.system-backup-restore-row td {
  background: var(--bg);
  padding-top: 0.5rem !important;
  padding-bottom: 0.85rem !important;
}

.system-backup-restore-form,
.system-backup-delete-form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  margin-top: 0.35rem;
}

.system-backup-delete-form {
  margin-left: auto;
}

.system-backup-confirm input {
  width: 7rem;
  margin-left: 0.35rem;
  padding: 0.25rem 0.4rem;
  font-family: inherit;
}

.system-backup-actions {
  white-space: nowrap;
}

.system-backup-actions .btn {
  margin-bottom: 0.25rem;
}

.btn-danger {
  background: var(--danger);
  color: #fff;
  border-color: var(--danger);
}

.btn-danger:hover {
  background: #b91c1c;
  color: #fff;
  text-decoration: none;
}

.form-optional {
  font-weight: 500;
  color: var(--muted);
}

.backup-file-analysis-slot {
  margin-top: 0.65rem;
}

.backup-file-analysis {
  padding: 0.65rem 0.75rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  line-height: 1.45;
}

.backup-file-analysis-meta {
  color: var(--muted);
  font-size: 0.85rem;
}

.backup-file-analysis-warn {
  color: #b45309;
  font-weight: 600;
}
