:root {
  --green: #358D3F;
  --green-deep: #26702F;
  --orange: #EA7B3C;
  --orange-deep: #C75E28;
  --cream: #FAF7F2;
  --ink: #2A2A28;
  --muted: #6E6A63;
  --line: #ECE6DD;
  --zA: #3E8E7E;
  --zB: #E0A43B;
  --zC: #C75E28;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { height: 100%; scroll-behavior: smooth; }
body {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  font-family: "Instrument Sans", Arial, sans-serif;
  background: #fff;
  color: var(--ink);
}
.container { max-width: 900px; margin: 0 auto; padding: 0 24px; }
h1, h2, h3 {
  font-family: "Archivo", sans-serif;
  letter-spacing: -0.01em;
}
a { text-decoration: none; color: inherit; }
.hide { display: none !important; }

nav {
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 20;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.nav-link {
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}
.nav-link:hover { color: var(--orange); }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  padding: 0;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.nav-toggle-bars {
  display: block;
  position: relative;
  width: 18px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: background 0.2s ease;
}
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 18px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.22s ease;
}
.nav-toggle-bars::before { transform: translateY(-6px); }
.nav-toggle-bars::after { transform: translateY(6px); }
.nav-toggle.is-open .nav-toggle-bars { background: transparent; }
.nav-toggle.is-open .nav-toggle-bars::before { transform: rotate(45deg); }
.nav-toggle.is-open .nav-toggle-bars::after { transform: rotate(-45deg); }
@media (max-width: 720px) {
  .nav-inner { flex-wrap: wrap; }
  .nav-toggle { display: inline-flex; }
  .nav-actions {
    display: flex;
    flex: 1 0 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    min-height: 0;
    max-height: 0;
    margin-top: 0;
    padding-top: 0;
    border-top: 1px solid transparent;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
    transition: max-height 0.28s ease, opacity 0.22s ease, margin-top 0.28s ease, padding-top 0.28s ease, border-color 0.28s ease;
  }
  .nav-actions.is-open {
    max-height: 320px;
    margin-top: 12px;
    padding-top: 4px;
    border-top-color: var(--line);
    opacity: 1;
    pointer-events: auto;
  }
  .nav-actions .nav-link {
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
  }
  .nav-actions .btn { margin-top: 14px; text-align: center; }
}
.lang-switch select {
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 6px 8px;
}
.wordmark {
  font-family: "Archivo", Arial, sans-serif;
  font-weight: 800;
  font-size: 19px;
  color: var(--green);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}
a.wordmark:hover { color: var(--orange); }
.btn {
  display: inline-block;
  background: var(--orange);
  color: #fff;
  font-family: "Archivo", Arial, sans-serif;
  font-weight: 800;
  font-size: 14px;
  padding: 11px 22px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(234, 123, 60, 0.3);
}

header {
  position: relative;
  background: var(--cream);
  border-bottom: 1px solid var(--line);
}
.hero { max-width: 640px; margin: 0; padding-top: 88px; padding-bottom: 48px; }
header h1 {
  font-weight: 900;
  font-size: 32px;
  line-height: 1.12;
  color: var(--green);
}
header h1 em {
  font-style: normal;
  color: var(--orange);
}
header p {
  margin-top: 12px;
  font-size: 15px;
  color: var(--muted);
  line-height: 1.6;
  max-width: 520px;
}
header .meta {
  margin-top: 14px;
  font-size: 13.5px;
  color: var(--ink);
  font-weight: 600;
}
.hero .btn { margin-top: 20px; }

.club-flash {
  position: absolute;
  top: 16px;
  left: 50%;
  z-index: 5;
  width: max-content;
  max-width: calc(100% - 48px);
  margin: 0;
  transform: translateX(-50%);
  pointer-events: none;
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.club-flash.is-leaving {
  opacity: 0;
  transform: translateX(-50%) translateY(-6px);
}
.club-flash p {
  font-size: 14px;
  color: var(--ink);
  background: #fff;
  border: 1px solid color-mix(in srgb, var(--green) 45%, var(--line));
  border-radius: 10px;
  padding: 12px 14px;
  line-height: 1.5;
  box-shadow: 0 8px 24px rgba(42, 42, 40, 0.08);
}
.club-flash p + p { margin-top: 8px; }
.club-flash p.is-error {
  border-color: #b42318;
  color: #b42318;
}

section { padding: 56px 0; }
.section-label {
  font-family: "Archivo", Arial, sans-serif;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 10px;
}
section h2 {
  font-weight: 800;
  font-size: 26px;
  color: var(--green);
}
section .lead {
  margin-top: 9px;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 560px;
}

.date-pick { position: relative; margin-top: 24px; }
.strip-row { display: flex; align-items: center; gap: 8px; }
.strip-nav.hidden { display: none; }
.strip-cal { display: flex; align-items: center; justify-content: center; }
.cal-wrap.pop {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 30;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 14px 36px rgba(42, 42, 40, 0.18);
  padding: 4px 4px 10px;
}
.cal-wrap.pop .cal-legend { padding: 0 14px; }
.cal-wrap.closed { display: none; }
.mobile .strip-row { gap: 6px; }
.mobile .strip-nav { width: 28px; height: 48px; }
.mobile .day-tabs { gap: 6px; overflow: hidden; padding-bottom: 0; }
.mobile .day-tab { min-width: 0; padding: 8px 4px; }
.mobile .day-tab .wd {
  font-size: 11px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mobile .day-tab .dt { font-size: 10px; }
.mobile .cal-wrap.pop { left: 0; right: 0; }
.mobile .cal-wrap .calendar { max-width: none; width: 100%; }
.cal-loading {
  display: none;
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: 16px;
  background: #fff;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.cal-wrap.is-loading .cal-loading { display: flex; }
.cal-spinner {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 3px solid color-mix(in srgb, var(--green) 18%, #fff);
  border-top-color: var(--green);
  animation: cal-spin 0.7s linear infinite;
}
.cal-loading-label {
  font-family: "Archivo", Arial, sans-serif;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green);
}
@keyframes cal-spin { to { transform: rotate(360deg); } }
.strip-nav {
  flex: 0 0 auto;
  width: 32px;
  height: 52px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 10px;
  cursor: pointer;
  color: var(--muted);
  font-size: 16px;
  font-family: "Archivo", Arial, sans-serif;
}
.strip-nav:hover:not(:disabled) {
  border-color: var(--orange);
  color: var(--orange);
}
.strip-nav:disabled { opacity: 0.3; cursor: default; }
.day-tabs {
  flex: 1 1 auto;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  -webkit-overflow-scrolling: touch;
}
.day-tab {
  flex: 1 1 0;
  min-width: 76px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 9px 11px;
  text-align: center;
  cursor: pointer;
  transition: 0.15s;
}
.day-tab:hover { border-color: var(--orange); }
.day-tab .wd {
  font-family: "Archivo", Arial, sans-serif;
  font-weight: 800;
  font-size: 12.5px;
  color: var(--ink);
  line-height: 1.2;
}
.day-tab .dt {
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
}
.day-tab.active {
  background: var(--orange);
  border-color: var(--orange);
}
.day-tab.active .wd,
.day-tab.active .dt { color: #fff; }

.calendar {
  max-width: 330px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
  background: #fff;
}
.cal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.cal-head .mname {
  font-family: "Archivo", Arial, sans-serif;
  font-weight: 800;
  font-size: 15px;
  color: var(--ink);
}
.cal-head button {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  padding: 0;
  margin: 0;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 8px;
  cursor: pointer;
  color: var(--muted);
  font-family: Arial, sans-serif;
  font-size: 18px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  appearance: none;
  -webkit-appearance: none;
}
.cal-head button:hover:not(:disabled) {
  border-color: var(--orange);
  color: var(--orange);
}
.cal-head button:disabled { opacity: 0.3; cursor: default; }
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px;
}
.cal-grid .wdh {
  text-align: center;
  font-family: "Archivo", Arial, sans-serif;
  font-weight: 700;
  font-size: 10.5px;
  color: var(--muted);
  padding: 2px 0 6px;
}
.cal-day {
  position: relative;
  aspect-ratio: 1 / 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  font-family: "Archivo", Arial, sans-serif;
  font-weight: 700;
  font-size: 13.5px;
  line-height: 1;
  color: var(--ink);
  cursor: pointer;
  border: 1px solid transparent;
  padding: 6px 0;
}
.cal-day:hover:not(.disabled):not(.blank) { border-color: var(--orange); }
.cal-day.blank { visibility: hidden; cursor: default; }
.cal-day.disabled {
  color: #cfc8bc;
  cursor: default;
  pointer-events: none;
}
.cal-day.today { box-shadow: inset 0 0 0 1.5px var(--orange); }
.cal-day.selected {
  background: var(--orange);
  color: #fff;
  box-shadow: none;
}
.cal-day .dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  margin-top: 3px;
  background: var(--green);
}
.cal-day .dot.low { background: var(--zB); }
.cal-day.selected .dot { background: #fff; }
.cal-day .dot.empty,
.cal-day.selected .dot.empty { background: transparent; }
.cal-legend {
  margin-top: 12px;
  display: flex;
  gap: 14px;
  font-size: 11px;
  color: var(--muted);
}
.cal-legend .d {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 5px;
  vertical-align: middle;
}

.dur-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 22px 0 4px;
}
.dur-row .lbl {
  font-family: "Archivo", Arial, sans-serif;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.dur-seg {
  display: inline-flex;
  gap: 4px;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 3px;
}
.dur-seg button {
  border: none;
  background: transparent;
  font-family: "Archivo", Arial, sans-serif;
  font-weight: 800;
  font-size: 13px;
  color: var(--muted);
  padding: 9px 16px;
  border-radius: 7px;
  cursor: pointer;
  transition: 0.15s;
}
.dur-seg button.on {
  background: var(--green);
  color: #fff;
}
.date-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin: 18px 0 10px;
}
.sel-date {
  font-family: "Archivo", Arial, sans-serif;
  font-weight: 800;
  font-size: 15px;
  color: var(--green);
}
.legend {
  margin-bottom: 16px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--muted);
}
.legend .sw { display: inline-flex; align-items: center; gap: 6px; }
.legend .bar {
  width: 12px;
  height: 12px;
  border-radius: 3px;
}

.courts-wrap {
  position: relative;
  min-height: 120px;
}
.courts-wrap.is-loading .courts {
  opacity: 0.4;
  pointer-events: none;
}
.courts-overlay {
  display: none;
  position: absolute;
  inset: 0;
  z-index: 2;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: color-mix(in srgb, #fff 72%, transparent);
  border-radius: 14px;
  font-weight: 700;
  color: var(--ink);
}
.courts-wrap.is-loading .courts-overlay { display: flex; }
.quota-note {
  grid-column: 1 / -1;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px 20px;
  color: var(--ink);
  font-weight: 700;
}
.page-loading {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: color-mix(in srgb, var(--bg, #f6f4ef) 88%, transparent);
  color: var(--ink);
  font-family: "Archivo", Arial, sans-serif;
  font-weight: 800;
}
.page-loading.is-on { display: flex; }
.courts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
@media (max-width: 700px) {
  .courts { grid-template-columns: 1fr; }
}
.court {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 1px 8px rgba(42, 42, 40, 0.04);
}
.court::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--orange);
}
.court h3 {
  font-weight: 800;
  font-size: 17px;
  color: var(--green);
  margin-bottom: 2px;
}
.court .kind {
  font-size: 12.5px;
  color: var(--muted);
  margin-bottom: 16px;
}
.zone { margin-bottom: 16px; }
.zone:last-child { margin-bottom: 0; }
.zone-h {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: "Archivo", Arial, sans-serif;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 9px;
}
.zone-h .zdot {
  width: 9px;
  height: 9px;
  border-radius: 3px;
  flex-shrink: 0;
}
.zone-h .zprice {
  margin-left: auto;
  letter-spacing: 0;
  text-transform: none;
  font-size: 12px;
  color: var(--ink);
}
.slots { display: flex; gap: 7px; flex-wrap: wrap; }
button.slot {
  font-family: "Archivo", Arial, sans-serif;
  font-weight: 700;
  font-size: 12.5px;
  padding: 8px 11px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--cream);
  color: var(--orange-deep);
  cursor: pointer;
  transition: 0.12s;
}
button.slot:hover {
  background: var(--orange);
  color: #fff;
  border-color: var(--orange);
}
.zone-empty {
  font-size: 12.5px;
  color: var(--muted);
  font-style: italic;
}
.courts-loading,
.courts-empty {
  grid-column: 1 / -1;
  padding: 28px;
  text-align: center;
  color: var(--muted);
  border: 1px dashed var(--line);
  border-radius: 14px;
  background: var(--cream);
}

.info {
  margin-top: 34px;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px 22px;
}
.info h3 {
  font-size: 14px;
  font-weight: 800;
  color: var(--green);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.info ul {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 22px;
}
@media (max-width: 600px) {
  .info ul { grid-template-columns: 1fr; }
}
.info li {
  font-size: 13.5px;
  color: #4a4740;
  padding-left: 20px;
  position: relative;
  line-height: 1.5;
}
.info li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 800;
}

footer {
  margin-top: auto;
  background: var(--ink);
  color: rgba(255, 255, 255, 0.72);
  padding: 24px 0;
  font-size: 13px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.foot-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
@media (max-width: 639px) {
  .foot-inner {
    flex-direction: column;
    justify-content: center;
    text-align: center;
    gap: 10px;
  }
}
.foot-inner .fm {
  font-family: "Archivo", Arial, sans-serif;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.4;
}
.powered {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1;
}
.powered .arenio {
  font-family: "Archivo", Arial, sans-serif;
  font-weight: 900;
  font-size: 15.5px;
  color: #fff;
  display: inline-flex;
  align-items: center;
  letter-spacing: -0.02em;
  line-height: 1;
}
.powered .oglyph {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 0.68em;
  height: 0.68em;
  position: relative;
  margin-left: 0.04em;
  vertical-align: middle;
}
.powered .oglyph svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.has-bo-nav .app-sidebar-fab,
.has-bo-nav #app-sidebar-fab,
.has-bo-nav .bo-float {
  position: fixed;
  right: 16px;
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 1160;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: none;
  border-radius: 8px;
  background: var(--green, var(--bo-primary, #358D3F));
  color: #fff;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.1), 0 4px 10px rgba(15, 23, 42, 0.14);
}
.has-bo-nav .app-sidebar-fab i,
.has-bo-nav #app-sidebar-fab i,
.has-bo-nav .bo-float i { font-size: 16px; line-height: 1; }
@media (max-width: 1248px) {
  .has-bo-nav:has(.app-sidebar-fab) footer:not(.app-footer-wrapper),
  .has-bo-nav:has(#app-sidebar-fab) footer:not(.app-footer-wrapper),
  .has-bo-nav:has(.bo-float) footer:not(.app-footer-wrapper) { padding-bottom: 84px; }
}

.has-bo-nav .app-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 1250;
  display: flex;
  flex-direction: column;
  width: min(19rem, 86vw);
  height: 100dvh;
  background: #fff;
  border-right: 1px solid var(--line);
  color: var(--ink);
  box-shadow: 0 12px 28px rgba(42, 42, 40, 0.16);
  transform: translateX(-102%);
  opacity: 0;
  pointer-events: none;
  overflow: hidden;
  transition: transform 0.24s ease, opacity 0.2s ease;
}
.has-bo-nav .app-sidebar.is-mobile-open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.has-bo-nav .app-sidebar-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1240;
  background: rgba(42, 42, 40, 0.42);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}
.has-bo-nav .app-sidebar-backdrop.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
html.app-sidebar-mobile-open body.has-bo-nav { overflow: hidden; }
.has-bo-nav .app-sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem;
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}
.has-bo-nav .app-sidebar-title {
  font-family: "Archivo", Arial, sans-serif;
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--green);
}
.has-bo-nav .app-sidebar-title-icons { display: none; }
.has-bo-nav .app-sidebar-toggle {
  height: 2.25rem;
  width: 2.25rem;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
}
.has-bo-nav .app-sidebar-toggle-icon { width: 1.25rem; height: 1.25rem; }
.has-bo-nav .app-sidebar-toggle-icon--right { display: none; }
.has-bo-nav .app-sidebar-toggle[aria-expanded="false"] .app-sidebar-toggle-icon--left { display: none; }
.has-bo-nav .app-sidebar-toggle[aria-expanded="false"] .app-sidebar-toggle-icon--right { display: block; }
.has-bo-nav .app-sidebar-nav {
  position: static;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  gap: 0.25rem;
  padding: 0.5rem;
  margin: 0;
  overflow-y: auto;
  background: transparent;
  border: 0;
  z-index: auto;
}
.has-bo-nav .app-sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.65rem 0.75rem;
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.5;
  border-radius: 8px;
}
.has-bo-nav .app-sidebar-link-icon {
  width: 1rem;
  flex: 0 0 1rem;
  text-align: center;
  font-size: 1rem;
  line-height: 1;
}
.has-bo-nav .app-sidebar-link-icon svg { display: block; width: 1rem; height: 1rem; }
.has-bo-nav .app-sidebar-link:hover,
.has-bo-nav .app-sidebar-group-toggle:hover { background: var(--cream); color: var(--ink); }
.has-bo-nav .app-sidebar-link.is-active {
  color: var(--green);
  background: color-mix(in srgb, var(--green) 12%, #fff);
}
.has-bo-nav .app-sidebar-link.app-sidebar-child-link.is-active,
.has-bo-nav .app-sidebar-link.app-sidebar-child-link.is-active:hover {
  color: var(--green);
  background: color-mix(in srgb, var(--green) 12%, #fff);
}
.has-bo-nav .app-sidebar-group { display: flex; flex-direction: column; gap: 0.1rem; }
.has-bo-nav .app-sidebar-group-toggle {
  width: 100%;
  margin: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.5;
  color: var(--ink);
}
.has-bo-nav .app-sidebar-link.app-sidebar-group-toggle {
  font-weight: 600;
  color: var(--ink);
}
.has-bo-nav .app-sidebar-group-chevron { display: none; }
.has-bo-nav .app-sidebar-submenu { display: grid; grid-template-rows: 1fr; }
.has-bo-nav .app-sidebar-submenu-inner {
  overflow: hidden;
  min-height: 0;
  display: flex;
  flex-direction: column;
  margin-left: 1.1rem;
  border-left: 1px solid var(--line);
  padding-left: 0.35rem;
}
.has-bo-nav .app-sidebar-group.is-collapsed .app-sidebar-submenu { grid-template-rows: 1fr; }
.has-bo-nav .app-sidebar-child-link {
  padding: 0.45rem 0.6rem;
  font-size: 0.84rem;
  font-weight: 500;
  font-family: var(--font-main), system-ui, sans-serif;
  letter-spacing: normal;
  line-height: 1.5;
  color: var(--muted);
}
.has-bo-nav .app-sidebar-link.app-sidebar-child-link {
  color: var(--muted);
  font-weight: 500;
}
.has-bo-nav .app-sidebar-child-link .app-sidebar-link-icon {
  width: 0.85rem;
  flex: 0 0 0.85rem;
  font-size: 0.75rem;
}
.has-bo-nav .app-sidebar-lang {
  padding: 0.75rem;
  border-top: 1px solid var(--line);
  margin-top: auto;
  flex-shrink: 0;
}
.has-bo-nav .app-sidebar-lang-select {
  width: 100%;
  padding: 0.5rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

/* Custom language select (same control as shell sidebar) */
.app-sidebar-lang .custom-select-wrapper {
  position: relative;
  width: auto;
  min-width: 0;
  overflow: visible;
}
.app-sidebar-lang .custom-select-wrapper > select[data-custom-select] {
  display: none !important;
}
.app-sidebar-lang .custom-select-wrapper > button {
  width: auto;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.375rem;
  padding: 0.375rem 0.625rem;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
  color: #374151;
  font: inherit;
  font-size: 0.875rem;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
  transition: background-color 0.15s ease, border-color 0.15s ease;
}
.app-sidebar-lang .custom-select-wrapper > button:hover {
  background: #f9fafb;
}
.app-sidebar-lang .custom-select-wrapper > button:focus {
  outline: none;
  border-color: var(--green, #0c1f47);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--green, #0c1f47) 20%, transparent);
}
.app-sidebar-lang .custom-select-trigger-value {
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
  pointer-events: none;
}
.app-sidebar-lang .custom-select-chevron {
  pointer-events: none;
  display: flex;
  flex-shrink: 0;
}
.app-sidebar-lang .custom-select-chevron svg {
  width: 1rem;
  height: 1rem;
  color: #6b7280;
}
.custom-select-dropdown-panel {
  z-index: 1500 !important;
  pointer-events: auto;
  width: max-content;
  max-width: calc(100vw - 16px);
  max-height: 200px;
  overflow-y: auto;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 15px -3px rgba(15, 23, 42, 0.1), 0 4px 6px -4px rgba(15, 23, 42, 0.1);
}
.custom-select-dropdown-panel.hidden {
  display: none !important;
}
.custom-select-backdrop {
  position: fixed;
  inset: 0;
  background: transparent;
  pointer-events: auto;
  z-index: 1499 !important;
}
.custom-select-options [role="option"] {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 0;
  background: transparent;
  color: #1f2937;
  font: inherit;
  font-size: 0.875rem;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.15s ease;
}
.custom-select-options [role="option"]:hover,
.custom-select-options [role="option"].custom-select-option-selected {
  background-color: #f3f4f6;
}
.custom-select-option-check {
  flex-shrink: 0;
  width: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green, #0c1f47);
  font-weight: 700;
  font-size: 0.875rem;
  opacity: 0;
}
.custom-select-options [role="option"][aria-selected="true"] .custom-select-option-check,
.custom-select-options [role="option"].custom-select-option-selected .custom-select-option-check,
.custom-select-option-check.opacity-100 {
  opacity: 1;
}
.custom-select-option-check.opacity-0 {
  opacity: 0;
}
.custom-select-option-check svg {
  width: 1rem;
  height: 1rem;
}

@media (min-width: 1249px) {
  body.has-bo-nav {
    --bo-home-nav-height: 73px;
    --bo-sidebar-width: 19rem;
    padding-left: var(--bo-sidebar-width);
    transition: padding-left 0.2s ease;
  }
  html.app-sidebar-collapsed body.has-bo-nav {
    --bo-sidebar-width: 4.5rem;
  }
  body.has-bo-nav > nav {
    z-index: 1260;
    width: calc(100% + var(--bo-sidebar-width));
    margin-left: calc(-1 * var(--bo-sidebar-width));
    box-sizing: border-box;
    transition: margin-left 0.2s ease, width 0.2s ease;
  }
  .has-bo-nav .app-sidebar-fab,
  .has-bo-nav #app-sidebar-fab,
  .has-bo-nav .bo-float {
    display: none;
  }
  .has-bo-nav:has(.app-sidebar-fab) footer:not(.app-footer-wrapper),
  .has-bo-nav:has(#app-sidebar-fab) footer:not(.app-footer-wrapper),
  .has-bo-nav:has(.bo-float) footer:not(.app-footer-wrapper) {
    padding-bottom: 24px;
  }
  .has-bo-nav .app-sidebar {
    top: var(--bo-home-nav-height);
    bottom: var(--bo-sidebar-footer-inset, 0px);
    width: var(--bo-sidebar-width);
    height: auto;
    max-height: none;
    transform: translateX(0);
    opacity: 1;
    pointer-events: auto;
    box-shadow: none;
    transition: width 0.2s ease, transform 0.24s ease, opacity 0.2s ease, bottom 0.05s linear;
  }
  body.has-bo-nav .app-footer-wrapper,
  body.has-bo-nav > footer {
    width: calc(100% + var(--bo-sidebar-width));
    max-width: calc(100% + var(--bo-sidebar-width));
    margin-left: calc(-1 * var(--bo-sidebar-width));
    box-sizing: border-box;
    transition: margin-left 0.2s ease, width 0.2s ease;
    text-align: center;
    position: relative;
    z-index: 1260;
  }
  .has-bo-nav .app-sidebar-backdrop,
  .has-bo-nav .app-sidebar-backdrop.is-visible {
    display: none;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }
  .has-bo-nav .app-sidebar-toggle {
    display: flex;
  }
  html.app-sidebar-collapsed .has-bo-nav .app-sidebar .sidebar-label,
  html.app-sidebar-collapsed .has-bo-nav .app-sidebar .app-sidebar-title,
  html.app-sidebar-collapsed .has-bo-nav .app-sidebar .app-sidebar-lang,
  html.app-sidebar-collapsed .has-bo-nav .app-sidebar .app-sidebar-section-title,
  html.app-sidebar-collapsed .has-bo-nav .app-sidebar .app-sidebar-group-chevron {
    display: none;
  }
  html.app-sidebar-collapsed .has-bo-nav .app-sidebar .app-sidebar-submenu {
    display: none;
  }
  html.app-sidebar-collapsed .has-bo-nav .app-sidebar .app-sidebar-nav {
    padding-left: 0;
    padding-right: 0;
  }
  html.app-sidebar-collapsed .has-bo-nav .app-sidebar .app-sidebar-header {
    padding-left: 0;
    padding-right: 0;
    justify-content: center;
  }
  html.app-sidebar-collapsed .has-bo-nav .app-sidebar .app-sidebar-link {
    justify-content: center;
    text-align: center;
    padding-left: 0;
    padding-right: 0;
  }
  html.app-sidebar-collapsed .has-bo-nav .app-sidebar-toggle .app-sidebar-toggle-icon--left {
    display: none;
  }
  html.app-sidebar-collapsed .has-bo-nav .app-sidebar-toggle .app-sidebar-toggle-icon--right {
    display: block;
  }
  html.app-sidebar-mobile-open body.has-bo-nav {
    overflow: auto;
  }
}
