[data-nav][hidden] {
  display: none !important;
}
.table-wrap[tabindex]:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}
.account-card {
  overflow-wrap: anywhere;
}
.account-hub dd,
.account-hub th,
.account-hub td {
  overflow-wrap: anywhere;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
:root {
  --ink: #41494c;
  --muted: #5f6a70; /* WCAG AA ≥4.5:1 on all planner backgrounds (was #687379, 4.16–4.41:1) */
  --canvas: #f3f4f2;
  --line: #e1e5e1;
  --olive: #8b9900;
  --olive-dark: #637000;
  --olive-wash: #f4f6df;
  --blue: #3575b5;
  --blue-wash: #eaf0f9;
  --red: #b40748;
  --red-wash: #fbedf2;
  --amber: #936000;
  --amber-wash: #fff4dc;
  --radius: 12px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font:
    14px/1.5 Arial,
    Helvetica,
    sans-serif;
  font-variant-numeric: tabular-nums;
}
a {
  color: inherit;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
select,
summary {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.55;
  cursor: wait;
}
button,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  padding: 8px 15px;
  border: 1px solid #d8ded9;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  white-space: nowrap;
  font-weight: 500;
}
button:hover,
.button:hover {
  background: #f4f5f2;
  text-decoration: none;
}
.primary {
  background: var(--ink);
  border-color: var(--ink);
  color: white;
}
.primary:hover {
  background: #2e3638;
}
.quiet {
  border: 0;
  background: transparent;
}
input,
select {
  border: 1px solid #d9dfda;
  border-radius: 7px;
  padding: 9px 12px;
  min-height: 39px;
  background: white;
  color: var(--ink);
}
input[type='search'] {
  width: 100%;
}
:focus-visible {
  outline: 3px solid #617ab0;
  outline-offset: 3px;
}
.skip-link {
  position: fixed;
  top: -80px;
  left: 16px;
  background: #fff;
  padding: 12px;
  z-index: 20;
}
.skip-link:focus {
  top: 8px;
}
.topbar {
  height: 60px;
  display: flex;
  align-items: center;
  padding: 0 28px;
  gap: 32px;
  background: var(--ink);
  color: white;
  position: sticky;
  top: 0;
  z-index: 10;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  line-height: 1;
}
.brand:hover {
  text-decoration: none;
}
/* Official TOGL logo (light-letter variant for the charcoal header; planner/assets/). */
.brand-logo {
  display: block;
  height: 28px;
  width: auto;
}
.brand-product {
  font-size: 14px;
  font-weight: 600;
  padding-left: 12px;
  border-left: 1px solid #727b7d;
  line-height: 20px;
}
.brand {
  white-space: nowrap;
}
.topbar-context {
  font-size: 11px;
  letter-spacing: 1.2px;
  color: #e2e6e3;
}
.topbar-divider {
  padding: 0 16px;
  opacity: 0.35;
}
.topbar-tag {
  margin-left: auto;
  font-size: 11px;
  border: 1px solid #657072;
  border-radius: 20px;
  padding: 4px 11px;
  color: #e7eae6;
}
.workspace {
  display: flex;
  min-height: calc(100vh - 60px);
}
.sidebar {
  width: 214px;
  flex: none;
  background: #ebeeeb;
  border-right: 1px solid var(--line);
  padding: 28px 12px;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 60px;
  height: calc(100vh - 60px);
}
.sidebar-label {
  font-size: 10px;
  letter-spacing: 1.5px;
  padding: 0 14px 16px;
  color: var(--muted);
}
.sidebar nav a {
  display: flex;
  gap: 13px;
  align-items: center;
  margin-bottom: 6px;
  padding: 12px 14px;
  border-radius: 8px;
}
.sidebar nav a.active {
  background: white;
  font-weight: 700;
  box-shadow: inset 3px 0 var(--olive);
}
.nav-icon {
  font-size: 23px;
  line-height: 20px;
  color: var(--muted);
}
.sidebar nav a.active .nav-icon {
  color: var(--olive-dark);
}
.site-card {
  margin: 32px 8px;
  padding: 16px 12px;
  border: 1px solid #dce1d9;
  border-radius: 9px;
  display: grid;
  grid-template-columns: 9px 1fr;
  gap: 4px 8px;
  font-size: 12px;
}
.site-card span,
.site-card small {
  grid-column: 2;
  color: var(--muted);
}
.site-indicator {
  width: 7px;
  height: 7px;
  background: var(--olive);
  border-radius: 50%;
  margin-top: 6px;
}
.sidebar-bottom {
  margin-top: auto;
  padding: 12px;
  font-size: 9px;
  letter-spacing: 1.2px;
  color: var(--muted);
  line-height: 1.8;
}
.sidebar-bottom span {
  letter-spacing: 0;
  font-size: 11px;
}
.main-column {
  flex: 1;
  min-width: 0;
  padding: 26px 30px 0;
  max-width: 1920px;
}
#account {
  margin-bottom: 22px;
}
#account .head-actions {
  margin-top: 12px;
}
#account input,
#account select {
  max-width: 100%;
}
#account .field {
  min-width: 0;
}
#account strong {
  overflow-wrap: anywhere;
}
.breadcrumbs {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 18px;
}
.breadcrumbs strong {
  color: var(--ink);
}
main:focus {
  outline: none;
}
.page-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 22px;
}
.page-head h1 {
  margin: 0 0 6px;
  font-size: 30px;
  letter-spacing: -0.6px;
  line-height: 1.2;
}
.page-head p {
  margin: 0;
  color: var(--muted);
}
.head-actions {
  display: flex;
  gap: 10px;
  align-items: flex-end;
  flex-wrap: wrap;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 11px;
  color: var(--muted);
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 0.7px;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}
.card {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 2px 3px #26392a03;
  padding: 22px;
}
.metric-grid,
.metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}
.metric {
  padding: 18px 20px;
  min-height: 112px;
}
.metric strong {
  display: block;
  font-size: 29px;
  letter-spacing: -0.6px;
  line-height: 1.5;
  font-weight: 700;
}
.metric .small {
  font-size: 12px;
}
.metric.bad strong {
  color: var(--red);
}
.metric.warn strong {
  color: var(--amber);
}
.metric.good strong {
  color: var(--olive-dark);
}
.muted {
  color: var(--muted);
}
.small {
  font-size: 12px;
}
.filters {
  display: flex;
  gap: 20px;
  align-items: end;
  padding: 17px 20px;
  margin-bottom: 18px;
}
.filters .field:first-child {
  flex: 1;
  max-width: 420px;
}
.filters .field {
  min-width: 150px;
}
.filters-note {
  margin-left: auto;
  align-self: center;
  font-size: 12px;
  color: var(--muted);
}
.tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 18px 0;
}
.tabs button {
  font-size: 12px;
}
.tabs button.active {
  background: var(--ink);
  border-color: var(--ink);
  color: white;
}
.table-card {
  padding: 0;
  overflow: hidden;
}
.table-wrap {
  position: relative;
  overflow: auto;
}
.data-table {
  border-collapse: collapse;
  width: 100%;
  text-align: left;
}
.data-table th {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.65px;
  font-weight: 600;
  background: #f7f8f5;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.data-table th,
.data-table td {
  padding: 15px 18px;
}
.data-table td {
  border-bottom: 1px solid #eef0ec;
  font-size: 13px;
  vertical-align: middle;
}
.data-table tr:last-child td {
  border-bottom: 0;
}
.data-table tbody tr:hover {
  background: #fcfdf8;
}
.data-table .number {
  text-align: right;
  white-space: nowrap;
}
.data-table td strong {
  font-weight: 600;
}
.data-table .subline {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-top: 3px;
}
.journey-name {
  min-width: 210px;
  max-width: 360px;
}
.journey-name a {
  font-weight: 600;
}
.journey-name a:hover {
  color: var(--olive-dark);
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  background: #eef0ed;
  color: #596364;
}
.badge.good {
  background: var(--olive-wash);
  color: var(--olive-dark);
}
.badge.warn {
  background: var(--amber-wash);
  color: var(--amber);
}
.badge.bad {
  background: var(--red-wash);
  color: var(--red);
}
.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  flex: none;
}
.bad-text {
  color: var(--red);
}
.good-text {
  color: var(--olive-dark);
}
.warn-text {
  color: var(--amber);
}
.source-tag {
  display: inline-block;
  font-size: 10px;
  padding: 2px 6px;
  background: #f0f2ed;
  border-radius: 4px;
  color: var(--muted);
}
.table-foot {
  padding: 13px 19px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 11px;
  color: var(--muted);
}
.banner {
  padding: 14px 18px;
  border: 1px solid #dfe5c2;
  border-radius: 9px;
  background: #f8faed;
  font-size: 12px;
  margin: 16px 0;
}
.banner.bad {
  background: var(--red-wash);
  border-color: #efc9d6;
}
.banner.warn {
  background: var(--amber-wash);
  border-color: #edddb6;
}
.banner p {
  margin: 3px 0;
}
.grid-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin: 18px 0;
}
.grid-wide {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 18px;
  margin: 18px 0;
}
.card-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 18px;
}
.card h2,
.section-title {
  font-size: 17px;
  margin: 0 0 5px;
  letter-spacing: -0.2px;
}
.card h3 {
  font-size: 14px;
  margin: 0 0 8px;
}
.card-head p {
  margin: 0;
}
.equation {
  font:
    15px/1.8 ui-monospace,
    Consolas,
    monospace;
  background: #f7f8f3;
  padding: 18px;
  border-radius: 8px;
  margin: 17px 0;
  overflow-wrap: anywhere;
}
.evidence-list {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
}
.evidence-list li {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 10px 0;
  border-bottom: 1px solid #edf0e9;
  font-size: 12px;
}
.evidence-list li:last-child {
  border: 0;
}
.bar-track {
  height: 7px;
  border-radius: 5px;
  background: #ecefe8;
  overflow: hidden;
  min-width: 80px;
}
.bar-fill {
  height: 100%;
  background: var(--olive);
  border-radius: 5px;
}
.breakdown-row {
  display: grid;
  grid-template-columns: 100px 1fr 85px;
  gap: 15px;
  align-items: center;
  margin: 17px 0;
  font-size: 12px;
}
.breakdown-row strong {
  text-align: right;
}
.confidence-row {
  margin: 16px 0;
}
.confidence-row > div:first-child {
  display: flex;
  justify-content: space-between;
  margin-bottom: 7px;
  font-size: 12px;
}
.section-nav {
  display: flex;
  border-bottom: 1px solid var(--line);
  gap: 28px;
  padding: 0 20px;
  background: white;
  border-radius: 10px 10px 0 0;
  margin-bottom: 20px;
  overflow: auto;
}
.section-nav a {
  padding: 14px 0;
  font-size: 12px;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
}
.section-nav a:hover {
  border-color: var(--olive);
  text-decoration: none;
}
.detail-heading {
  padding: 24px;
  margin-bottom: 18px;
}
.detail-heading .page-head {
  margin: 0;
}
.detail-meta {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 14px;
  font-size: 12px;
  color: var(--muted);
}
.section-block {
  scroll-margin-top: 80px;
  margin: 20px 0;
}
.fix-card {
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 18px;
  margin: 14px 0;
}
.fix-card.recommended {
  border-color: #b8c677;
  background: #fcfdf6;
}
.fix-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 15px;
}
.fix-stats {
  display: flex;
  gap: 28px;
  margin: 15px 0;
  flex-wrap: wrap;
}
.fix-stats span {
  display: block;
  font-size: 10px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 3px;
}
.fix-stats strong {
  font-size: 18px;
}
.fix-card ul,
.assumptions-list {
  font-size: 12px;
  color: var(--muted);
  padding-left: 18px;
  line-height: 1.7;
}
.route-event {
  display: grid;
  grid-template-columns: 60px 18px 1fr 90px;
  gap: 12px;
  padding: 12px 0;
  position: relative;
  border-bottom: 1px solid #eef0eb;
  font-size: 12px;
}
.route-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--blue);
  margin: 4px auto;
  outline: 4px solid #edf2f8;
}
.route-event.stop .route-dot {
  background: var(--olive);
  outline-color: #f0f3e0;
}
.route-event .number {
  text-align: right;
}
.empty {
  text-align: center;
  padding: 50px 24px;
}
.loading {
  padding: 70px 30px;
  text-align: center;
  color: var(--muted);
}
.loading:before {
  content: '';
  display: block;
  margin: 0 auto 16px;
  width: 24px;
  height: 24px;
  border: 3px solid #dfe4d5;
  border-top-color: var(--olive);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
details {
  margin-top: 14px;
}
summary {
  cursor: pointer;
  font-size: 12px;
  color: var(--ink);
}
pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 11px;
  background: #f5f6f3;
  padding: 14px;
  border-radius: 7px;
}
footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  padding: 26px 0;
  color: var(--muted);
  font-size: 10px;
}
svg text {
  font-family: Arial, Helvetica, sans-serif;
}
.mobile-only {
  display: none;
}
@media (min-width: 1600px) {
  .main-column {
    padding: 30px 36px;
  }
  .data-table th,
  .data-table td {
    padding: 17px 21px;
  }
  .metric {
    min-height: 120px;
  }
}
@media (max-width: 1100px) {
  .sidebar {
    width: 176px;
  }
  .main-column {
    padding: 22px 20px;
  }
  .grid-wide {
    grid-template-columns: 1fr;
  }
  .filters-note {
    display: none;
  }
  .metric-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .topbar-context {
    font-size: 10px;
  }
  .topbar {
    gap: 20px;
    padding: 0 20px;
  }
}
@media (max-width: 760px) {
  .topbar {
    height: 55px;
    padding: 0 16px;
  }
  .brand-logo {
    height: 24px;
  }
  .topbar-context {
    display: none;
  }
  .workspace {
    display: block;
  }
  .sidebar {
    position: static;
    width: auto;
    height: auto;
    padding: 8px 12px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .sidebar nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }
  .sidebar nav a {
    margin: 0;
    padding: 8px 14px;
  }
  .sidebar-label,
  .site-card,
  .sidebar-bottom {
    display: none;
  }
  .main-column {
    padding: 18px 14px;
  }
  .page-head {
    flex-direction: column;
    gap: 16px;
  }
  .page-head h1 {
    font-size: 25px;
  }
  .head-actions {
    width: 100%;
    justify-content: space-between;
  }
  .metric-grid,
  .metrics {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .metric {
    padding: 14px;
    min-height: 105px;
  }
  .metric strong {
    font-size: 25px;
  }
  .filters {
    flex-wrap: wrap;
    gap: 12px;
  }
  .filters .field {
    min-width: 120px;
  }
  .filters .field:first-child {
    min-width: 100%;
    max-width: none;
  }
  .grid-two,
  .grid-wide {
    grid-template-columns: 1fr;
  }
  .card {
    padding: 17px;
  }
  .table-card {
    padding: 0;
  }
  .card-head {
    flex-wrap: wrap;
  }
  .section-nav {
    gap: 20px;
  }
  .detail-heading {
    padding: 18px;
  }
  .route-event {
    grid-template-columns: 45px 12px 1fr 70px;
    gap: 8px;
  }
  .table-foot {
    flex-wrap: wrap;
  }
  .topbar-tag {
    font-size: 10px;
  }
  footer {
    font-size: 10px;
  }
  .breakdown-row {
    grid-template-columns: 90px 1fr 75px;
    gap: 8px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .loading:before {
    animation: none;
  }
}

/* Compact account panel: identity, depot and sign-out visible; rare actions collapsed. */
.account-card {
  padding-top: 14px;
  padding-bottom: 14px;
}
.account-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 20px;
}
.account-bar .head-actions {
  margin: 0;
  align-items: flex-end;
}
.account-more {
  margin-top: 10px;
}
.account-more summary {
  cursor: pointer;
  color: var(--muted);
  font-size: 13px;
  width: fit-content;
}
.account-more[open] summary {
  margin-bottom: 8px;
}
#account-message:empty {
  display: none;
}
.data-table.access-table th,
.data-table.access-table td {
  padding: 12px;
  white-space: normal;
}
.data-table.access-table tbody th {
  text-transform: none;
  letter-spacing: normal;
  font-size: 13px;
}
.preview-banner {
  border: 2px solid var(--amber);
  background: var(--amber-wash);
  overflow-wrap: anywhere;
}
.preview-controls {
  margin-top: 12px;
}
.preview-controls form,
.preview-controls fieldset,
.member-admin form {
  min-width: 0;
}
.preview-controls label,
.member-grant-row label {
  display: grid;
  gap: 5px;
  margin: 10px 0;
}
.preview-controls input:not([type='checkbox']),
.preview-controls textarea,
.preview-controls select,
.member-admin input:not([type='checkbox']),
.member-admin select {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}
.member-grant-row {
  display: grid;
  grid-template-columns: minmax(130px, 1fr) minmax(130px, 1fr) minmax(
      130px,
      1fr
    );
  gap: 12px;
  min-width: 0;
  margin: 16px 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.member-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0;
}
.member-diff {
  border: 1px solid var(--amber);
  background: var(--amber-wash);
  padding: 16px;
  margin: 16px 0;
  overflow-wrap: anywhere;
}
.member-admin .data-table th:nth-child(2),
.member-admin .data-table td:nth-child(2) {
  min-width: 90px;
}
@media (max-width: 700px) {
  .member-grant-row {
    grid-template-columns: minmax(0, 1fr);
  }
  .member-admin .data-table {
    min-width: 640px;
  }
  .member-admin th,
  .member-admin td {
    overflow-wrap: anywhere;
    white-space: normal;
  }
}
