/* Phone + desktop visibility. Loaded after theme.css (and injected by theme.js). */
a.btn.outline,
.btn.outline,
a.outline {
  background: transparent !important;
  color: var(--teal) !important;
  border: 1px solid var(--teal) !important;
}
.hdr-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 0;
  flex: 0 0 auto;
}
.who-chip.signed-out {
  padding: 8px 16px !important;
  max-width: none !important;
}
.who-chip.signed-out .who-copy > span,
.who-chip.signed-out .who-pic {
  display: none !important;
}
body.has-desk-nav .site-foot {
  padding-bottom: 20px;
}
@media (max-width: 859px) {
  body.has-desk-nav .site-foot nav {
    row-gap: 6px;
  }
}
.menu.card > a {
  display: block;
  padding: 12px 16px;
  color: var(--heading);
  text-decoration: none;
  font-weight: 700;
  border-bottom: 1px solid var(--line);
}
.menu.card > a span {
  display: block;
  margin-top: 3px;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
}

header,
.site-header,
body.has-desk-nav header,
body.has-desk-nav .site-header {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "brand tools"
    "nav nav";
  align-items: center;
  gap: 8px 12px;
  overflow: visible;
}
header > .brand,
.site-header > .brand,
header > a.brand,
header a.brand,
body.has-desk-nav header > .brand,
body.has-desk-nav header > a.brand,
body.has-desk-nav .site-header > .brand {
  grid-area: brand !important;
  justify-self: start;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
header .hdr-tools,
.site-header .hdr-tools,
body.has-desk-nav header .hdr-tools,
body.has-desk-nav .site-header .hdr-tools {
  grid-area: tools !important;
  justify-self: end;
  margin-left: 0;
}
header > nav,
header nav.site-nav,
header .nav.site-nav,
header nav:not(.desk-tabs),
.site-header .nav {
  grid-area: nav !important;
  width: 100%;
  display: flex !important;
  flex-wrap: wrap;
  gap: 10px 14px;
  align-items: center;
}
body.has-desk-nav header nav.site-nav,
body.has-desk-nav header .nav.site-nav {
  display: none !important;
}
body.has-desk-nav header .desk-tabs,
body.has-desk-nav .site-header .desk-tabs {
  grid-area: nav !important;
  width: 100%;
}
@media (min-width: 860px) {
  header:not(:has(.desk-tabs)),
  .site-header:not(:has(.desk-tabs)) {
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-areas: "brand nav tools";
  }
  header:not(:has(.desk-tabs)) nav.site-nav,
  header:not(:has(.desk-tabs)) nav:not(.desk-tabs) {
    width: auto;
    justify-content: flex-start;
  }
  body.has-desk-nav { padding-bottom: 24px; }
  body.has-desk-nav #desk-nav { display: none !important; }
}

@media (max-width: 640px) {
  header .brand-name,
  .site-header .brand-name,
  header > a strong,
  header .brand strong {
    display: none !important;
  }
  header .brand-short,
  .site-header .brand-short {
    display: inline !important;
  }
}

@media (max-width: 859px) {
  body.has-desk-nav .desk-tabs { display: none !important; }
  html { scroll-padding-bottom: calc(120px + env(safe-area-inset-bottom, 0px)); }
  body.has-desk-nav {
    padding-bottom: calc(152px + env(safe-area-inset-bottom, 0px)) !important;
  }
  body.has-desk-nav main,
  body.has-desk-nav .wrap,
  body.has-desk-nav main.wrap {
    padding-bottom: 72px !important;
  }
  body.kb-open #desk-nav {
    display: none !important;
  }
  body.kb-open.has-desk-nav {
    padding-bottom: 24px !important;
  }
  header a.brand {
    min-width: 0;
    overflow: hidden;
  }
}

.verify-cells {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.verify-cells button,
button[data-jump] {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  justify-content: center !important;
  text-align: left !important;
  gap: 2px;
  width: 100%;
  min-height: 56px;
  padding: 8px 10px !important;
}
.verify-cells button .k,
button[data-jump] .k {
  display: block;
  font: 600 11px/1.2 system-ui, sans-serif;
  color: var(--muted);
}
.verify-cells button .v,
button[data-jump] .v {
  display: block;
  font: 700 14px/1.25 system-ui, sans-serif;
  color: var(--ink);
  white-space: normal;
}
@media (max-width: 720px) {
  .verify-cells { grid-template-columns: 1fr; }
}

.kpi b,
.kpi strong {
  display: block !important;
  min-height: 1.4em !important;
  font-size: 1.6rem !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;
  letter-spacing: 0 !important;
  color: var(--teal-deep, #0a4f4f) !important;
  font-variant-numeric: tabular-nums;
  overflow: visible !important;
  font-family: ui-sans-serif, system-ui, sans-serif !important;
}
.kpi b:empty::after,
.kpi strong:empty::after {
  content: "0";
}

#gate button,
#gate button.edit,
#gate button.go,
#open-desk,
button.open-desk {
  background: var(--orange, #f39c12) !important;
  color: #0c1116 !important;
  font-weight: 800 !important;
  opacity: 1 !important;
  border: 0 !important;
}

.sheet { z-index: 80 !important; }
.sheet.on,
.sheet[open],
.sheet.busy { z-index: 90 !important; }
.sheet-card {
  max-height: min(90vh, calc(100dvh - 88px - env(safe-area-inset-bottom, 0px)));
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}
#desk-nav { z-index: 50 !important; }
.brand-short { display: none; }
@media (max-width: 640px) {
  header .brand-short,
  .site-header .brand-short { display: inline !important; }
}
.theme-btn {
  white-space: nowrap;
  min-width: 64px !important;
  flex: 0 0 auto;
  border: 1px solid rgba(255,255,255,.9) !important;
  background: rgba(255,255,255,.22) !important;
  color: #fff !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 6px;
  overflow: visible !important;
}
.theme-btn .theme-lab { display: inline; }
@media (max-width: 640px) {
  .theme-btn {
    min-width: 44px !important;
    width: 44px !important;
    padding: 0 !important;
    border-radius: 999px !important;
    font-size: 0 !important;
    line-height: 0 !important;
  }
  .theme-btn::before {
    font-size: 15px !important;
    line-height: 44px !important;
    font-weight: 800;
    color: #fff;
    letter-spacing: 0;
  }
  .theme-btn[data-mode="system"]::before,
  .theme-btn:not([data-mode])::before { content: "A"; }
  .theme-btn[data-mode="dark"]::before { content: "Dk"; font-size: 13px !important; }
  .theme-btn[data-mode="light"]::before { content: "Lt"; font-size: 13px !important; }
  .theme-btn .theme-lab {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }
}
.kpis {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}
.brand-mark {
  background: transparent;
  box-shadow: none;
}

.desk-chips {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: stretch;
  gap: 8px !important;
  width: 100%;
  max-width: 100%;
}
.desk-chips .chip-label,
.desk-chips .sub,
#public-desk-hits .chip-label,
#public-desk-hits .sub {
  flex: 1 0 100% !important;
  width: 100% !important;
  margin: 6px 0 0 !important;
  color: var(--muted);
  font: 600 13px/1.3 system-ui, sans-serif;
}
.desk-chips button,
#public-desk-hits button {
  flex: 1 1 148px !important;
  max-width: 100% !important;
  min-width: 0 !important;
  white-space: normal !important;
  text-align: left;
  overflow-wrap: anywhere;
}
@media (max-width: 859px) {
  #public-desk-search,
  #desk-pick,
  .desk-pick {
    margin-bottom: 12px;
  }
  body.has-desk-nav .row:has(#drop-go),
  body.has-desk-nav #gate {
    position: relative;
    z-index: 1;
    margin-bottom: 16px !important;
  }
}

@media (max-width: 640px) {
  #gate {
    display: grid !important;
    grid-template-columns: 1fr 110px;
    gap: 8px;
  }
  #gate #ws { grid-column: 1 / -1; width: 100% !important; }
  #gate button {
    grid-column: 1 / -1;
    width: 100% !important;
    min-height: 48px;
  }
}
