:root {
  --blue: #0b3f91;
  --blue-dark: #082f6b;
  --sky: #eaf4ff;
  --line: #c9d9ee;
  --ink: #172033;
  --muted: #5b6680;
  --success: #2f7d45;
  --warning: #b97300;
  --danger: #b3261e;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: #f7fbff;
}
a { color: var(--blue); font-weight: 700; text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 3px solid #79b8ff; outline-offset: 2px; }
.topbar {
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 12px 28px;
  background: white;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 2;
}
.brand { display: flex; align-items: center; gap: 12px; color: var(--blue-dark); }
.brand picture { display: block; }
.brand img { width: 230px; height: 58px; object-fit: contain; border-radius: 0; object-position: left center; }
.brand span { display: grid; line-height: 1.1; }
.brand small { color: var(--muted); font-size: 12px; margin-top: 4px; }
nav { display: flex; flex-wrap: wrap; gap: 14px; flex: 1; }
nav a { color: var(--ink); font-size: 14px; }
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 18px;
}
.tabs a {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 9px 12px;
  background: #f7fbff;
  color: var(--ink);
}
.tabs a.active {
  background: var(--blue);
  border-color: var(--blue);
  color: white;
}
button {
  border: 0;
  border-radius: 6px;
  padding: 10px 14px;
  color: white;
  background: var(--blue);
  font-weight: 700;
  cursor: pointer;
}
button:disabled, input:disabled { cursor: not-allowed; opacity: .48; }
.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 282px minmax(0, 1fr);
}
.public-shell {
  min-height: 100vh;
}
.with-sidebar {
  background: #eef5fc;
}
.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 16px;
  padding: 18px 16px;
  background: #ffffff;
  border-right: 1px solid var(--line);
  box-shadow: 10px 0 28px rgba(11, 63, 145, .06);
  overflow-y: auto;
  z-index: 5;
}
.sidebar-brand {
  padding: 6px 6px 12px;
  border-bottom: 1px solid var(--line);
}
.sidebar-brand img {
  width: 220px;
  height: 58px;
}
.sidebar-user {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid var(--line);
  border-left: 5px solid var(--blue);
  border-radius: 8px;
  background: #f7fbff;
}
.sidebar-user strong {
  color: var(--blue-dark);
  line-height: 1.25;
}
.sidebar-user span,
.sidebar-user small {
  color: var(--muted);
  line-height: 1.35;
}
.sidebar-nav {
  display: grid;
  align-content: start;
  gap: 5px;
}
.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 9px 11px;
  border-radius: 8px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
}
.sidebar-nav a:hover,
.sidebar-nav a:focus {
  background: var(--sky);
  color: var(--blue-dark);
}
.nav-module span:nth-child(2) {
  flex: 1;
}
.nav-icon {
  width: 22px;
  display: inline-flex;
  justify-content: center;
  flex: 0 0 auto;
}
.nav-badge,
.nav-count,
.coming-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 20px;
  border: 1px solid rgba(185, 115, 0, .28);
  border-radius: 999px;
  padding: 3px 7px;
  color: var(--warning);
  background: #fff8e8;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  white-space: nowrap;
}
.sidebar-subnav {
  display: grid;
  gap: 3px;
  margin: -2px 0 4px 34px;
  padding-left: 10px;
  border-left: 2px solid var(--line);
}
.sidebar-subnav a {
  min-height: 30px;
  padding: 6px 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}
.sidebar-subnav a:hover,
.sidebar-subnav a:focus {
  color: var(--blue-dark);
  background: #f7fbff;
}
.nav-group {
  margin: 12px 8px 3px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
}
.sidebar-logout {
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.sidebar-logout button {
  width: 100%;
  background: #5b6680;
}
.app-main {
  min-width: 0;
}
.with-sidebar .page {
  width: min(1320px, calc(100% - 40px));
  margin: 24px auto 36px;
}
.mobile-topbar {
  display: none;
}
.compact-brand img {
  width: 170px;
  height: 46px;
}
.mobile-menu {
  position: relative;
}
.mobile-menu summary {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 12px;
  color: var(--blue-dark);
  font-weight: 800;
  cursor: pointer;
  background: white;
}
.mobile-menu nav {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  width: min(280px, calc(100vw - 28px));
  display: grid;
  gap: 4px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: 0 18px 38px rgba(11, 63, 145, .16);
}
.mobile-menu nav a {
  padding: 9px 10px;
  border-radius: 6px;
  color: var(--ink);
}
.mobile-menu nav a:hover {
  background: var(--sky);
}
.page { width: min(1180px, calc(100% - 32px)); margin: 28px auto; }
.hero {
  background: linear-gradient(90deg, var(--blue), #1f66b5);
  color: white;
  border-radius: 8px;
  padding: 28px;
  margin-bottom: 18px;
}
.hero h1 { margin: 6px 0 8px; font-size: 30px; letter-spacing: 0; }
.hero p { max-width: 720px; margin: 0; line-height: 1.5; }
.eyebrow { text-transform: uppercase; letter-spacing: 0; font-weight: 700; color: inherit; opacity: .86; margin: 0; }
.metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px;
  margin: 18px 0;
}
.metrics article, .panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(11, 63, 145, .06);
}
.metrics article { padding: 18px; display: grid; gap: 6px; }
.metrics strong { color: var(--blue); font-size: 30px; }
.metrics span { color: var(--muted); }
.panel { padding: 22px; overflow: auto; }
.panel h1, .panel h2 { margin-top: 0; color: var(--blue-dark); letter-spacing: 0; }
.grid.two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 16px; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 11px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { color: var(--blue-dark); font-size: 13px; }
.action-list { padding-left: 20px; line-height: 1.7; }
.login-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 24px; align-items: center; }
.welcome img { width: 100%; max-height: 420px; object-fit: cover; object-position: left center; border-radius: 8px; border: 1px solid var(--line); }
.welcome h1 { color: var(--blue-dark); font-size: 34px; margin: 18px 0 8px; letter-spacing: 0; }
.welcome p { color: var(--muted); font-size: 18px; line-height: 1.5; }
.login-form { display: grid; gap: 14px; }
label { display: grid; gap: 6px; font-weight: 700; }
input { width: 100%; padding: 11px 12px; border: 1px solid var(--line); border-radius: 6px; font: inherit; }
textarea { width: 100%; min-height: 110px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 6px; font: inherit; }
select { width: 100%; padding: 11px 12px; border: 1px solid var(--line); border-radius: 6px; font: inherit; background: white; }
.form-stack { display: grid; gap: 16px; }
.smart-form { display: grid; gap: 18px; }
.smart-form fieldset {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  margin: 0;
}
.smart-form legend { color: var(--blue-dark); font-weight: 700; padding: 0 6px; }
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 14px;
}
.form-span-2 { grid-column: 1 / -1; }
.license-form {
  width: 100%;
  max-width: none;
}
.license-form fieldset {
  background: #fff;
}
.license-form .inline-panel {
  border-left-width: 5px;
  padding: 12px 14px;
}
.license-form legend {
  font-size: 16px;
}
.compact-options {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}
.inline-panel {
  border-left: 4px solid var(--blue);
  padding: 12px 0 12px 14px;
}
.inline-panel h2 { font-size: 18px; margin: 0 0 10px; }
.errorlist { color: var(--danger); margin: 6px 0 0; padding-left: 18px; font-weight: 700; }
.button-row { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 12px; margin-top: 16px; }
.secondary { background: #5b6680; }
.muted { color: var(--muted); line-height: 1.5; }
.metrics.compact strong { font-size: 24px; }
.messages p { background: #eef6ff; border-left: 4px solid var(--blue); padding: 12px; border-radius: 6px; }
.warning-panel { border-left: 6px solid var(--warning); }
.import-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; margin: 18px 0; }
.import-tile {
  min-height: 160px;
  display: grid;
  gap: 10px;
  align-content: start;
  padding: 22px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(11, 63, 145, .06);
  color: var(--ink);
}
.import-tile strong { color: var(--blue-dark); font-size: 20px; }
.import-tile small { color: var(--muted); line-height: 1.45; }
.import-tile.clubs { border-top: 5px solid #1c7c54; }
.import-tile.licensees { border-top: 5px solid #0b63b6; }
.import-tile.active-licenses { border-top: 5px solid var(--success); }
.import-tile.history { border-top: 5px solid #7a5b12; }
.import-tile.disabled { opacity: .55; pointer-events: none; }
.action-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; margin: 18px 0; }
.action-card { display: grid; gap: 6px; padding: 18px; background: white; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 8px 24px rgba(11, 63, 145, .06); color: var(--ink); }
.action-card strong { color: var(--blue); font-size: 28px; }
.action-card span { color: var(--muted); }
.license-action-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
  margin: 18px 0;
}
.license-action-card {
  display: grid;
  gap: 8px;
  min-height: 138px;
  align-content: start;
  padding: 20px;
  background: white;
  border: 1px solid var(--line);
  border-top: 5px solid var(--blue);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(11, 63, 145, .06);
  color: var(--ink);
}
.license-action-card.primary-action { border-top-color: var(--success); }
.license-action-card.action-renew { border-top-color: var(--success); }
.license-action-card.action-new { border-top-color: var(--blue); }
.license-action-card.action-command { border-top-color: var(--warning); }
.license-action-card strong { color: var(--blue-dark); font-size: 20px; line-height: 1.2; }
.license-action-card span { color: var(--muted); line-height: 1.45; font-weight: 400; }
.nav-count { margin-left: auto; min-width: 24px; padding: 2px 7px; border-radius: 999px; background: #e8eef8; color: var(--blue-dark); text-align: center; font-size: 12px; font-weight: 800; }
.nav-count.attention { background: #fff0cc; color: #8a5200; }
.primary-choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.primary-choice-grid .license-action-card { min-height: 130px; border-top-width: 6px; align-content: center; }
.primary-choice-grid .license-action-card strong { font-size: 24px; }
.tracking-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin: 16px 0; }
.tracking-grid a { display: grid; gap: 6px; padding: 16px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); }
.tracking-grid strong { color: var(--blue); font-size: 26px; }
.attention-row { display: grid; grid-template-columns: minmax(180px, .8fr) minmax(240px, 1.5fr) auto; gap: 14px; align-items: center; padding: 14px 0; border-top: 1px solid var(--line); }
.priority-danger { border-left: 5px solid var(--danger); }
.priority-warning { border-left: 5px solid var(--warning); }
.filter-notice { padding: 10px 14px; border-left: 4px solid var(--blue); background: #eff6ff; }
.simple-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; }
.simple-filters a { padding: 9px 13px; border: 1px solid var(--line); border-radius: 999px; background: #fff; }
.simple-filters a[aria-current="page"] { color: #fff; background: var(--blue); border-color: var(--blue); }
.compact-search { grid-template-columns: minmax(240px, 1fr) auto; align-items: end; }
.advanced-filters { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 10px; }
.advanced-filters summary, .secondary-details > summary { cursor: pointer; color: var(--blue-dark); font-weight: 800; padding: 8px 0; }
.secondary-details { margin: 14px 0; }
.secondary-details[open] > summary { margin-bottom: 12px; }
.condensed-summary { padding: 12px 14px; border-left: 4px solid var(--blue); background: #f4f8fd; color: var(--muted); }
.condensed-summary strong { color: var(--blue-dark); font-size: 18px; }
.information-note { padding: 10px 12px; border-left: 4px solid var(--blue); background: #eff6ff; color: var(--muted); }
.category-badge { display: inline-flex; align-items: center; min-height: 24px; padding: 3px 9px; border: 1px solid #b9c7da; border-radius: 999px; background: #eef3f9; color: var(--blue-dark); font-size: 12px; font-weight: 900; white-space: nowrap; }
.ordered-label { display: inline-block; margin-top: 4px; color: var(--blue-dark); font-size: 11px; letter-spacing: .03em; }
.decision-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.decision-actions button { width: auto; }
.decision-accept { background: var(--success); }
.decision-correct, .decision-wait { background: var(--warning); color: #382500; }
@media (max-width: 900px) {
  .primary-choice-grid, .tracking-grid { grid-template-columns: 1fr; }
  .attention-row { grid-template-columns: 1fr; }
}
.clickable-metrics a {
  display: grid;
  gap: 6px;
  padding: 18px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(11, 63, 145, .06);
  color: var(--ink);
}
.clickable-metrics strong { color: var(--blue); font-size: 24px; }
.clickable-metrics span { color: var(--muted); font-weight: 400; }
.secondary-link { color: var(--muted); }
.inline-form { display: inline-grid; gap: 6px; margin-top: 6px; }
.inline-form button { padding: 7px 9px; font-size: 12px; }
.compact-action { padding: 7px 9px; margin-top: 6px; font-size: 12px; }
.kind-success { border-left: 4px solid var(--success); background: #f1fbf4; padding: 12px; line-height: 1.45; }
.chart-list { display: grid; gap: 12px; }
.chart-row { display: grid; grid-template-columns: minmax(120px, 1fr) 44px; gap: 10px; align-items: center; }
.chart-row i { grid-column: 1 / -1; display: block; height: 10px; min-width: 3px; border-radius: 999px; background: var(--blue); }
.stepper, .journey-stepper { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; align-items: center; }
.stepper span, .journey-stepper span { padding: 8px 10px; border-radius: 6px; background: #eef6ff; color: var(--muted); font-weight: 700; }
.stepper .active, .journey-stepper .active { background: var(--blue); color: white; }
.journey-stepper span[aria-hidden="true"] { padding: 0; background: transparent; color: var(--line); }
.journey-stepper {
  position: static;
  width: 100%;
  clear: both;
  padding: 8px 0;
  background: transparent;
}
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 13px;
}
.breadcrumb a::after { content: "/"; color: var(--line); margin-left: 8px; }
.breadcrumb span { font-weight: 700; color: var(--blue-dark); }
.status-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  color: white;
  background: var(--muted);
}
.status-preparation { background: var(--warning); }
.status-ready_to_transmit { background: var(--success); }
.status-transmitted { background: var(--blue); }
.status-district_review { background: var(--warning); }
.status-waiting_info { background: var(--warning); }
.status-district_validated { background: #237a57; }
.status-active { background: var(--success); }
.status-refused { background: var(--danger); }
.status-cancelled { background: #5b6680; }
.status-active-safe { background: var(--success); }
.status-active-review { background: var(--warning); }
.status-active-new { background: var(--blue); }
.status-active-anomaly { background: var(--danger); }
.success-panel {
  border-left: 7px solid var(--success);
  background: #f6fff8;
}
.top-action-row { justify-content: space-between; align-items: center; }
.selection-action-bar {
  position: sticky;
  bottom: 12px;
  z-index: 3;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  padding: 12px;
  background: #ffffff;
  border: 2px solid var(--blue);
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(11, 63, 145, .18);
}
.selection-action-bar[hidden] { display: none; }
.selection-action-bar strong { margin-right: auto; color: var(--blue-dark); }
.status-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 18px;
}
.legend-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 7px 10px;
  font-size: 13px;
}
.license-row td { border-top: 1px solid rgba(15, 23, 42, .06); }
.license-row.row-to_prepare { background: #f8fafc; }
.license-row.row-needs_attention { background: #fff3d8; }
.license-row.row-ready { background: #eaf8ef; }
.license-row.row-in_order { background: #e8f2ff; }
.license-row.row-locked { background: #e5e7eb; }
.license-row.row-blocked { background: #ffe8e4; }
.license-row.dossier-ok { background: #eaf8ef; }
.license-row.dossier-warning { background: #fff3d8; }
.license-row.dossier-blocking { background: #ffe8e4; }
.workflow-label {
  display: inline-block;
  font-weight: 800;
  color: var(--blue-dark);
  margin-bottom: 4px;
}
.document-status {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 12px;
}
.photo-preview {
  display: block;
  max-width: 160px;
  max-height: 160px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--line);
  margin: 8px 0 12px;
}
.photo-panel { border-left: 6px solid var(--blue); }
.muted-row { opacity: .68; background: #f8fafc; }
.order-status-banner {
  border: 2px solid var(--line);
  border-left-width: 8px;
  border-radius: 8px;
  padding: 14px;
  margin: 14px 0 18px;
  background: #fffbe8;
}
.order-status-banner dl {
  margin: 12px 0 0;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
}
.order-status-banner.status-preparation { border-left-color: #facc15; background: #fffbe8; }
.order-status-banner.status-waiting_info { border-left-color: #f97316; background: #fff7ed; }
.order-status-banner.status-transmitted, .order-status-banner.status-district_review { border-left-color: #2563eb; background: #eff6ff; }
.order-status-banner.status-ready_to_transmit, .order-status-banner.status-district_validated { border-left-color: #16a34a; background: #ecfdf3; }
.order-status-banner.status-active { border-left-color: #7c3aed; background: #f5f3ff; }
.tile-icon { font-size: 32px; line-height: 1; }
.import-header { display: flex; gap: 18px; align-items: flex-start; margin-bottom: 16px; }
.import-header.clubs { border-left: 6px solid #1c7c54; }
.import-header.licensees { border-left: 6px solid #0b63b6; }
.parental-box { border-left: 6px solid var(--warning); }
.filters { justify-content: flex-start; margin: 0 0 16px; }
.filter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
  align-items: end;
  margin-bottom: 18px;
}
.compact-table th, .compact-table td { padding: 8px; font-size: 13px; line-height: 1.32; }
.licensee-list-table th, .licensee-list-table td { padding: 7px 8px; font-size: 13px; line-height: 1.3; }
.licensee-list-table th:nth-child(1), .licensee-list-table td:nth-child(1) { width: 72px; }
.licensee-list-table th:nth-child(2), .licensee-list-table td:nth-child(2) { width: 92px; }
.licensee-list-table th:nth-child(4), .licensee-list-table td:nth-child(4) { width: 140px; }
.licensee-list-table th:nth-child(7), .licensee-list-table td:nth-child(7) { width: 150px; }
.licensee-list-table small { font-size: 11px; line-height: 1.25; }
.category-hint {
  display: inline-block;
  margin-top: 3px;
  color: var(--blue-dark);
  font-weight: 700;
}
.practice-current {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  background: #f8fafc;
}
.practice-current ul { margin: 6px 0 0; padding-left: 18px; line-height: 1.45; }
.control-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  margin: 14px 0;
  background: #f8fafc;
}
.control-summary strong { color: var(--blue-dark); margin-right: 8px; }
.control-summary span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  border-radius: 999px;
  padding: 5px 10px;
  font-weight: 700;
  background: white;
}
.summary-ok { color: var(--success); border: 1px solid rgba(47, 125, 69, .28); }
.summary-warning { color: var(--warning); border: 1px solid rgba(185, 115, 0, .28); }
.summary-blocking { color: var(--danger); border: 1px solid rgba(179, 38, 30, .28); }
.issue-groups {
  display: grid;
  gap: 6px;
  margin: 10px 0 14px;
}
.issue-groups p {
  margin: 0;
  padding: 8px 10px;
  border-left: 4px solid var(--warning);
  background: #fff8e8;
}
.kind-error { border-left: 4px solid var(--danger); background: #fff4f2; padding: 12px; line-height: 1.45; }
.kind-warning { border-left: 4px solid var(--warning); background: #fff8e8; padding: 8px 10px; line-height: 1.45; display: inline-block; }
.success-note { border-left: 4px solid var(--success); background: #f1fbf4; padding: 12px; line-height: 1.45; }
.export-check details { border: 1px solid var(--line); border-radius: 6px; padding: 10px 12px; background: #fff; margin-top: 10px; }
.export-check summary { cursor: pointer; color: var(--blue-dark); }
.export-check li { margin: 8px 0; }
.smart-form fieldset, .form-stack fieldset {
  padding: 12px 14px;
  margin: 0 0 14px;
}
.smart-form label, .form-stack label {
  font-size: 13px;
  gap: 4px;
}
.smart-form input,
.smart-form select,
.smart-form textarea,
.form-stack input,
.form-stack select,
.form-stack textarea {
  min-height: 34px;
  padding: 7px 9px;
  font-size: 14px;
}
.smart-form textarea, .form-stack textarea { min-height: 68px; }
.button-row a.button-primary,
.button-row button.action-primary,
a.action-primary,
button.action-primary {
  background: var(--blue);
  color: white;
  border: 1px solid var(--blue);
  border-radius: 8px;
  padding: 11px 16px;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(11, 99, 182, .18);
}
.button-row a.button-secondary {
  border: 1px solid var(--line);
  background: white;
  border-radius: 8px;
  padding: 10px 14px;
  text-decoration: none;
}
.new-license-validation-actions { align-items: stretch; }
.new-license-validation-actions > button,
.new-license-validation-actions > a {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.new-license-validation-actions > button:focus-visible,
.new-license-validation-actions > a:focus-visible {
  outline: 3px solid #ffbf47;
  outline-offset: 3px;
}
.danger-action, button.danger-action { background: var(--danger); color: #fff; border-color: var(--danger); }
.button-row a.transmit-action,
button.transmit-action {
  background: var(--blue-dark);
  color: white;
  border-color: var(--blue-dark);
  text-transform: uppercase;
  letter-spacing: 0;
}
.next-action-panel {
  display: grid;
  gap: 8px;
  margin: 14px 0 18px;
  padding: 18px;
  border: 2px solid var(--blue);
  border-left-width: 8px;
  border-radius: 8px;
  background: #eef6ff;
}
.next-action-panel strong { color: var(--blue-dark); font-size: 21px; }
.next-action-panel p { margin: 0; }
.next-action-panel.is-ready { border-color: var(--success); background: #f1fbf4; }
.next-action-panel.needs-action { border-color: var(--warning); background: #fff8e8; }
.district-licensee-heading {
  margin: 0 0 24px;
  padding: 4px 0 20px;
  border-bottom: 1px solid var(--line);
}
.district-licensee-heading .eyebrow { margin-bottom: 8px; }
.district-licensee-heading h1 {
  margin: 0 0 12px;
  color: var(--blue-dark);
  font-size: clamp(30px, 3.2vw, 44px);
  letter-spacing: -.035em;
}
.district-licensee-context {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
}
.district-licensee-context p { margin: 0; color: var(--muted); font-size: 15px; }
.district-journey { margin: 0 0 26px; padding: 4px 0 20px; border-bottom: 1px solid var(--line); }
.district-license-workflow { margin-top: 22px; padding: 22px; border: 2px solid #b8cbe2; border-radius: 10px; background: #fff; }
.district-license-workflow > h2 { margin: 4px 0 16px; font-size: 25px; }
.district-license-workflow.status-finalized { border-color: var(--success); background: #f7fcf8; }
.district-license-workflow.status-ready_heva { border-color: var(--blue); background: #f7faff; }
.district-license-workflow > dl { margin: 12px 0; }
.heva-finalization-form { margin-top: 14px; padding-top: 16px; border-top: 1px solid #b9d9c2; }
.heva-finalization-form button.action-primary { justify-self: start; }
.district-license-workflow + .secondary-details { margin-top: 24px; }
.active-queue-summary { margin: 16px 0 20px; padding: 14px 16px; border-left: 5px solid var(--blue); background: #f3f7fc; }
.new-license-queue-table th:last-child,
.new-license-queue-table td:last-child { width: 190px; min-width: 190px; }
.new-license-queue-table td:last-child .compact-action {
  display: block;
  width: 100%;
  margin: 0 0 7px;
  padding: 10px 12px;
  white-space: normal;
  text-align: center;
  line-height: 1.25;
}
.mixed-order-note,
.exception-summary,
.old-license-guidance {
  margin: 14px 0;
  padding: 14px 16px;
  border-left: 5px solid var(--blue);
  border-radius: 6px;
  background: #eef6ff;
}
.mixed-order-note ul { margin-bottom: 0; }
.exception-panel { border-left: 6px solid var(--warning); }
.exception-summary { border-left-color: var(--warning); background: #fff8e8; }
.decision-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.decision-actions button { min-width: 150px; }
.decision-accept { background: var(--success); }
.decision-review { background: var(--warning); color: var(--ink); }
.decision-refuse { background: var(--danger); }
.old-license-guidance { opacity: .72; }
.old-license-guidance.is-active { opacity: 1; border-left-color: var(--warning); background: #fff8e8; }
.required-attention { padding: 8px; border: 2px solid var(--warning); border-radius: 6px; }
.operational-panel { border-left: 7px solid var(--blue); }
.secondary-information { opacity: .94; }
.club-dashboard-heading { margin-bottom: 14px; }
.club-dashboard-heading h1 { margin-bottom: 0; }
.club-headcount { margin-bottom: 14px; }
.section-title h2 { margin: 2px 0 10px; color: var(--blue-dark); }
.headcount-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.headcount-grid article { display: grid; align-content: start; gap: 2px; min-height: 126px; padding: 15px 16px; border: 1px solid var(--line); border-top: 4px solid var(--blue); border-radius: 8px; background: white; }
.headcount-grid article > span { color: var(--muted); font-size: 13px; font-weight: 700; }
.headcount-grid article > strong { color: var(--blue-dark); font-size: 34px; line-height: 1.12; }
.headcount-grid article > strong.pending-value { margin-top: 8px; font-size: 21px; }
.headcount-grid article small { color: var(--muted); }
.headcount-grid article em { margin-top: 7px; color: var(--blue-dark); font-size: 12px; font-style: normal; font-weight: 700; }
.data-freshness, .data-note { margin: 7px 0 0; color: var(--muted); font-size: 12px; }
.club-dashboard-core { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 12px; margin-bottom: 12px; }
.club-dashboard-core > .panel { padding: 16px; }
.club-dashboard-core h2 { margin: 2px 0 10px; font-size: 20px; }
.compact-stat-table table { margin: 0; }
.compact-stat-table th, .compact-stat-table td { padding: 7px 8px; }
.compact-stat-table th:not(:first-child), .compact-stat-table td:not(:first-child) { text-align: right; }
.compact-stat-table .total-row td { border-top: 2px solid var(--blue); color: var(--blue-dark); font-weight: 800; }
.campaign-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 7px; }
.campaign-grid > * { display: grid; gap: 1px; padding: 9px 10px; border: 1px solid var(--line); border-radius: 7px; background: #f7f9fc; color: var(--muted); }
.campaign-grid > *:last-child { grid-column: 1 / -1; }
.campaign-grid strong { color: var(--blue-dark); font-size: 23px; }
.campaign-grid span { font-size: 12px; }
.campaign-grid .needs-action { border-color: var(--warning); background: #fff8e8; }
.practice-strip { margin: 0 0 12px; padding: 12px 15px; border: 1px solid var(--line); border-radius: 8px; background: white; }
.practice-strip > div { display: flex; flex-wrap: wrap; gap: 7px; margin: 7px 0 4px; }
.practice-strip > div span { padding: 5px 9px; border-radius: 99px; background: var(--sky); color: var(--blue-dark); font-size: 12px; }
.practice-strip small { color: var(--muted); }
.dashboard-more { margin-top: 0; }
.dashboard-more-content { display: grid; gap: 18px; padding-top: 16px; }
.dashboard-more-content h2 { font-size: 18px; }
.table-scroll { overflow-x: auto; }
@media (max-width: 900px) {
  .headcount-grid { grid-template-columns: 1fr; }
  .headcount-grid article { min-height: 0; }
  .club-dashboard-core { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .club-dashboard-heading { align-items: stretch; }
  .club-dashboard-heading .action-primary { width: 100%; text-align: center; }
  .campaign-grid { grid-template-columns: 1fr; }
  .campaign-grid > *:last-child { grid-column: auto; }
  .compact-stat-table { overflow-x: auto; }
}
tr:target { outline: 3px solid var(--warning); background: #fff8e8; }
.status-doc-ok { background: var(--success); }
.status-doc-warning { background: var(--warning); }
.status-doc-blocking { background: var(--danger); }
.dossier-status-banner {
  border: 2px solid var(--line);
  border-left-width: 8px;
  border-radius: 8px;
  padding: 16px;
  margin: 14px 0 18px;
  background: white;
}
.dossier-status-banner strong { display: block; font-size: 22px; color: var(--blue-dark); margin-bottom: 6px; }
.dossier-status-banner p { margin: 0; line-height: 1.45; }
.dossier-status-banner.status-doc-ok { border-left-color: var(--success); background: #f1fbf4; }
.dossier-status-banner.status-doc-warning { border-left-color: var(--warning); background: #fff8e8; }
.dossier-status-banner.status-doc-blocking { border-left-color: var(--danger); background: #fff4f2; }
.anomaly-summary {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  margin: 0 0 18px;
  background: #fff;
}
.anomaly-summary h2 { font-size: 18px; margin: 0 0 10px; color: var(--blue-dark); }
.anomaly-summary ul { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.anomaly-summary li {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  border-left: 4px solid var(--warning);
  background: #fff8e8;
  padding: 9px 10px;
}
.anomaly-summary li.anomaly-blocking { border-left-color: var(--danger); background: #fff4f2; }
.document-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px;
  margin: 12px 0 18px;
}
.document-card {
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-left: 5px solid var(--muted);
  border-radius: 8px;
  padding: 12px;
  background: #fff;
}
.document-card strong { color: var(--blue-dark); }
.document-card span { color: var(--muted); line-height: 1.35; }
.document-card.document-present { border-left-color: var(--success); background: #f1fbf4; }
.document-card.document-missing { border-left-color: var(--warning); background: #fff8e8; }
.document-card.document-neutral { background: #f8fafc; }
.table-action { display: inline-block; margin-bottom: 4px; }
dl { display: grid; grid-template-columns: 180px 1fr; gap: 10px 16px; }
dt { color: var(--muted); font-weight: 700; }
dd { margin: 0; }
.message { border-left: 4px solid var(--blue); padding: 8px 0 8px 14px; }
.module-coming-soon {
  max-width: 860px;
  display: grid;
  gap: 14px;
  border: 1px solid var(--line);
  border-left: 7px solid var(--blue);
  border-radius: 8px;
  padding: 28px;
  background: white;
  box-shadow: 0 12px 32px rgba(11, 63, 145, .08);
}
.module-coming-soon .coming-icon {
  width: 54px;
  height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: var(--sky);
  color: var(--blue-dark);
  font-size: 30px;
}
.module-coming-soon h1 {
  margin: 0;
  color: var(--blue-dark);
  font-size: 32px;
}
.module-coming-soon p {
  max-width: 760px;
  margin: 0;
  line-height: 1.55;
}

@media (max-width: 760px) {
  .app-shell {
    display: block;
  }
  .sidebar {
    display: none;
  }
  .mobile-topbar {
    min-height: 66px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: white;
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 8;
  }
  .with-sidebar .page {
    width: min(100% - 24px, 720px);
    margin: 18px auto 28px;
  }
  .topbar { align-items: flex-start; flex-direction: column; }
  nav { width: 100%; }
  .grid.two, .login-layout { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .form-span-2 { grid-column: auto; }
  .hero h1, .welcome h1 { font-size: 25px; }
  dl { grid-template-columns: 1fr; }
}

.status-cfb-missing,
.status-cfb-to_verify,
.status-waiting_club,
.status-waiting_district {
  background: #fff1d6;
  color: #7a4300;
  border-color: #e9a23b;
}
.status-cfb-archived {
  background: #e6f6ec;
  color: #17653a;
  border-color: #58a875;
}
.actionable-table td:last-child { white-space: nowrap; }

/* Hiérarchie opérationnelle commune */
.page-heading {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 20px;
  margin: 0 0 16px; padding: 4px 2px;
}
.page-heading h1 { margin: 2px 0 4px; font-size: clamp(25px, 3vw, 38px); letter-spacing: -.03em; }
.page-heading > div { min-width: 0; }
.page-heading h1,
.panel > h1,
.district-licensee-heading h1 {
  max-width: 100%;
  line-height: 1.14;
  overflow-wrap: anywhere;
}
.page-heading p { margin: 0; color: var(--muted); }
.compact-heading { min-height: 74px; }
.focus-panel {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  margin: 0 0 14px; padding: 18px 20px; border: 1px solid var(--line); border-left-width: 6px;
  border-radius: 10px; background: white;
}
.focus-panel h2 { margin: 7px 0 0; font-size: 20px; }
.focus-warning { border-left-color: #e39a20; background: #fffaf0; }
.focus-success { border-left-color: var(--success); background: #f2fbf5; }
.focus-info { border-left-color: var(--blue); background: #f3f8ff; }
.focus-title { min-width: 230px; }
.signal { display: inline-flex; border-radius: 999px; padding: 4px 9px; font-size: 11px; font-weight: 900; text-transform: uppercase; letter-spacing: .04em; }
.signal-warning { color: #7a4300; background: #ffe8b8; }
.signal-success { color: #17653a; background: #dcefe3; }
.signal-info { color: var(--blue-dark); background: #dcecff; }
.action-list { flex: 1; display: grid; gap: 7px; }
.action-list article { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 9px 11px; border-radius: 7px; background: white; }
.action-list article div { display: grid; gap: 2px; }
.action-list article span { color: var(--muted); font-size: 13px; }
.quick-actions { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 0 0 14px; }
.quick-actions a { display: grid; grid-template-columns: 40px 1fr; gap: 2px 12px; padding: 18px; border-radius: 10px; color: white; background: linear-gradient(120deg, var(--blue-dark), #1768b6); box-shadow: 0 8px 20px rgba(11,63,145,.12); }
.quick-actions a > span { grid-row: 1 / 3; align-self: center; font-size: 12px; opacity: .68; }
.quick-actions strong { font-size: 20px; }
.quick-actions small { color: #dcecff; font-weight: 500; }
.compact-tools { display: flex; align-items: center; gap: 18px; margin: 14px 0; padding: 14px 16px; border: 1px solid var(--line); border-radius: 9px; background: white; }
.compact-tools h2 { margin: 0; font-size: 15px; }
.compact-tools > div { display: flex; flex-wrap: wrap; gap: 8px; }
.compact-tools a { padding: 7px 10px; border-radius: 6px; background: var(--sky); font-size: 13px; }
.count-warning { display: inline-flex; min-width: 20px; justify-content: center; border-radius: 99px; padding: 2px 5px; color: #7a4300; background: #ffe1a3; }
.status-strip { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-top: 14px; }
.status-strip a { display: grid; gap: 3px; padding: 10px; border-radius: 7px; color: var(--muted); background: #f5f8fc; font-size: 12px; }
.status-strip strong { color: var(--ink); font-size: 20px; }
.district-strip { grid-template-columns: repeat(4, 1fr); margin: 0 0 14px; }
.meta-line { margin: 8px 0 14px; color: var(--muted); font-size: 13px; }
.compact-order-header { padding-bottom: 14px; }
.compact-order-header .page-heading { margin-bottom: 0; }
.order-meta { margin: 8px 0; }

/* Parcours Nouvelle licence */
.wizard-progress { display: grid; grid-template-columns: repeat(6, 1fr); gap: 5px; margin: 14px 0 18px; padding: 0; list-style: none; }
.wizard-progress li { display: grid; grid-template-columns: 24px 1fr; align-items: center; gap: 6px; padding: 8px; border-radius: 7px; color: var(--muted); background: #edf2f8; font-size: 12px; font-weight: 800; }
.wizard-progress li:first-letter { font-weight: 900; }
.wizard-progress li.active { color: white; background: var(--blue); }
.wizard-progress li.done { color: #17653a; background: #e1f3e7; }
.wizard-step { scroll-margin-top: 18px; }
.wizard-step-heading { margin-bottom: 12px; }
.wizard-step-heading span { color: var(--blue); font-size: 12px; font-weight: 900; text-transform: uppercase; }
.wizard-step-heading h2 { margin: 4px 0; font-size: 24px; }
.wizard-step-heading p { margin: 0; color: var(--muted); }
.wizard-step > fieldset { margin: 10px 0; border: 0; border-top: 1px solid var(--line); border-radius: 0; padding: 14px 0 0; }
.wizard-step > fieldset legend { padding-right: 12px; color: var(--blue-dark); font-size: 15px; font-weight: 900; }
.wizard-navigation { justify-content: flex-end; margin-top: 18px; }
.wizard-review { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin: 12px 0 18px; }
.wizard-review-block { overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: #f3f7fb; }
.wizard-review-block header { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; background: #e7f0fa; }
.wizard-review-block h3 { margin: 0; color: var(--blue-dark); font-size: 15px; }
.wizard-review-block header button { min-height: auto; padding: 5px 9px; font-size: 12px; }
.wizard-review-block > div { display: grid; grid-template-columns: minmax(120px, .7fr) 1.3fr; gap: 8px; padding: 8px 12px; border-top: 1px solid #dce6f1; }
.wizard-review span { color: var(--muted); font-size: 12px; }

/* Fiche licencié condensée et édition par blocs */
.licensee-summary-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 16px 0; }
.summary-card { min-width: 0; padding: 14px; border: 1px solid var(--line); border-top: 5px solid var(--blue); border-radius: 8px; background: #fff; }
.summary-card header { display: flex; align-items: start; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.summary-card h2 { margin: 0; color: var(--blue-dark); font-size: 16px; text-transform: uppercase; }
.summary-card header a { flex: 0 0 auto; font-size: 12px; font-weight: 800; }
.summary-card p { margin: 5px 0; line-height: 1.4; overflow-wrap: anywhere; }
.summary-card-attention { border-top-color: var(--warning); background: #fffdf7; }
.summary-card-special { border-top-color: var(--warning); }
.summary-card-wide { grid-column: span 3; }
.summary-card-empty { border-top-width: 2px; background: #f8fafc; }
.compact-empty-state { margin: 0 !important; font-size: 13px; }
.sporting-situation { display: grid; gap: 3px; }
.sporting-situation > strong { color: var(--blue-dark); font-size: 12px; text-transform: uppercase; }
.sporting-situation > span { font-weight: 800; }
.sporting-situation b { padding: 0 4px; color: var(--blue); font-size: 18px; }
.special-case-focus { padding-left: 12px; border-left: 3px solid var(--warning); }
.primary-work-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 12px 0 16px; padding: 14px; border: 1px solid var(--line); border-radius: 8px; background: #f8fafc; }
.primary-work-actions > :only-child { grid-column: 1 / -1; }
.primary-work-actions h2 { margin-top: 0; font-size: 17px; }
.embedded-action > summary { color: var(--blue-dark); font-weight: 800; cursor: pointer; }
.compact-action-form { margin: 0; }
.compact-action-form .form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.compact-upload-form { display: grid; gap: 8px; margin-top: 8px; }
.compact-upload-form label { display: grid; gap: 5px; font-size: 12px; }
.document-card .button-row { margin: 6px 0; }
.document-management { margin-top: 10px; border-top: 1px solid var(--line); padding-top: 8px; }
.document-management > summary { color: var(--blue); font-weight: 800; cursor: pointer; }
.embedded-document-section { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.embedded-document-section h3 { margin: 0 0 8px; font-size: 14px; }
.compact-document-list { display: grid; gap: 6px; margin: 8px 0; padding: 0; list-style: none; }
.compact-document-list li { display: flex; justify-content: space-between; gap: 8px; }
.technical-details { margin-top: 18px; padding-top: 8px; border-top: 1px solid var(--line); }
.edit-block-nav { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 18px; }
.edit-block-nav a { padding: 9px 12px; border: 1px solid var(--line); border-radius: 7px; background: #fff; }
.edit-block-nav a[aria-current="page"] { color: #fff; border-color: var(--blue); background: var(--blue); }
.compact-edit-panel { max-width: 1050px; }
.compact-block-form { gap: 12px; }

@media (max-width: 1050px) {
  .licensee-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .summary-card-wide { grid-column: span 2; }
}
@media (max-width: 650px) {
  .licensee-summary-grid { grid-template-columns: 1fr; }
  .summary-card-wide { grid-column: auto; }
  .primary-work-actions, .compact-action-form .form-row { grid-template-columns: 1fr; }
  .summary-card header { align-items: center; }
  .edit-block-nav { display: grid; grid-template-columns: 1fr; }
}

/* Documents et échanges */
.document-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.document-grid > a { display: grid; grid-template-columns: 44px 1fr; gap: 4px 12px; align-items: center; min-height: 120px; padding: 18px; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); background: white; }
.document-grid .document-icon { grid-row: 1 / 3; font-size: 28px; }
.document-grid div { display: grid; gap: 4px; }
.document-grid strong { font-size: 18px; }
.document-grid small { color: var(--muted); }
.document-grid b { grid-column: 2; color: #9a5d00; font-size: 12px; }
.document-grid b.ok { color: var(--success); }
.conversation-list { display: grid; gap: 8px; }
.conversation-row { display: grid; grid-template-columns: 1fr auto 70px; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); background: white; }
.conversation-row div { display: grid; gap: 4px; }
.conversation-row div span { color: var(--muted); font-size: 12px; }
.reply-panel { display: grid; grid-template-columns: 180px 1fr; gap: 20px; padding: 18px; border: 1px solid #aac9ef; border-radius: 10px; background: #f2f7ff; }
.reply-panel h2 { margin: 7px 0; }
.reply-form textarea { width: 100%; min-height: 80px; }
.reply-form > div { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin-top: 8px; }
.message-thread { margin-top: 16px; }
.message-thread article { max-width: 820px; margin: 8px 0; padding: 14px 16px; border-radius: 8px; background: white; }
.message-thread article header { display: flex; justify-content: space-between; gap: 12px; }
.message-thread time { color: var(--muted); font-size: 12px; }
.empty-state { padding: 44px 24px; border: 1px dashed var(--line); border-radius: 10px; text-align: center; background: white; }
.context-link { margin: -8px 0 12px; }
.narrow-panel { max-width: 760px; }
.sidebar-future { margin-top: 8px; padding: 8px; color: var(--muted); font-size: 12px; }
.sidebar-future summary { cursor: pointer; font-weight: 800; text-transform: uppercase; }
.sidebar-future div { display: grid; gap: 3px; margin-top: 6px; }
.sidebar-future a { min-height: 30px; padding: 6px 8px; font-size: 12px; }

@media (max-width: 900px) {
  .wizard-progress { grid-template-columns: repeat(3, 1fr); }
  .document-grid { grid-template-columns: 1fr; }
  .status-strip, .district-strip { grid-template-columns: repeat(2, 1fr); }
  .reply-panel { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .page-heading, .focus-panel, .compact-tools { align-items: stretch; flex-direction: column; }
  .quick-actions, .wizard-review { grid-template-columns: 1fr; }
  .wizard-progress { display: flex; overflow-x: auto; }
  .wizard-progress li { min-width: 48px; grid-template-columns: 1fr; text-align: center; }
  .wizard-progress li span { display: none; }
  .conversation-row { grid-template-columns: 1fr auto; }
  .conversation-row > b { display: none; }
  .reply-form > div { align-items: stretch; flex-direction: column; }
  .journey-stepper span[aria-hidden="true"] { display: none; }
}
@media (max-width: 760px) {
  .button-row { align-items: stretch; }
  .button-row > a, .button-row > button, .button-row > form { width: 100%; max-width: 100%; }
  .button-row > form > button { width: 100%; }
  .new-license-validation-actions { flex-direction: column; }
  .decision-actions { display: grid; grid-template-columns: 1fr; }
  .decision-actions button { width: 100%; min-width: 0; white-space: normal; }
  .compact-search { grid-template-columns: 1fr; }
  .licensee-list-table { min-width: 720px; }
}
.confirmation-dialog {
  max-width: 34rem;
  border: 0;
  border-radius: 0.8rem;
  padding: 1.5rem;
  box-shadow: 0 1.5rem 4rem rgba(0, 0, 0, 0.3);
}
.confirmation-dialog::backdrop { background: rgba(20, 29, 40, 0.62); }
.confirmation-dialog h2 { margin-top: 0; }
.club-access-table { min-width: 1120px; }
.access-actions { display: grid; gap: 5px; min-width: 190px; }
.access-actions a { font-size: 12px; font-weight: 800; }
.status-access-to_create, .status-access-expired { background:#fff1d6; color:#7a4300; }
.status-access-not_sent { background:#edf2f8; color:#43536a; }
.status-access-sent { background:#e8f1ff; color:#174f91; }
.status-access-activated { background:#e6f6ec; color:#17653a; }
.confirmation-dialog .button-row { justify-content: flex-end; margin-top: 1.25rem; }
.confirmation-dialog .button-row form { margin: 0; }
.club-directory-filters { display:grid; grid-template-columns:2fr 1fr 1fr auto; gap:10px; align-items:end; margin-bottom:14px; }
.club-directory-filters label { display:grid; gap:5px; font-size:12px; font-weight:800; }
.club-directory-table { min-width:1120px; }
.club-profile-table { min-width:900px; }
.subtle-link { color:var(--muted); font-size:11px; }
.status-access-active { background:#e6f6ec; color:#17653a; }
.status-access-invited { background:#fff1d6; color:#7a4300; }
.status-access-suspended, .status-access-withdrawn { background:#fde8e8; color:#9a2424; }
.district-access-table { min-width:1180px; }
.capability-list { display:grid; gap:3px; margin:0; padding-left:18px; font-size:12px; }
@media (max-width:800px) { .club-directory-filters { grid-template-columns:1fr; } }
