:root {
  color-scheme: light;
  --bg: #f3f5f4;
  --surface: #ffffff;
  --surface-muted: #eef1ef;
  --text: #17211d;
  --muted: #65706b;
  --line: #d8dedb;
  --brand: #0f6647;
  --brand-strong: #0a4c35;
  --accent: #245b8f;
  --danger: #a43b36;
  --warning: #95620a;
  --shadow: 0 10px 28px rgba(23, 33, 29, 0.09);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

.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;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.5;
}

button,
input,
select {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: var(--accent);
}

.app-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  min-height: 58px;
  align-items: center;
  gap: 28px;
  padding: 0 28px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.brand {
  color: var(--text);
  font-size: 15px;
  font-weight: 750;
  text-decoration: none;
}

.brand span {
  color: var(--brand);
}

.app-nav {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 6px;
}

.app-nav a {
  padding: 8px 10px;
  border-radius: 4px;
  color: var(--muted);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.app-nav a:hover,
.app-nav a[aria-current="page"] {
  background: var(--surface-muted);
  color: var(--text);
}

.session-area {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
}

.session-email {
  max-width: 240px;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.project-switcher {
  position: relative;
  z-index: 45;
}

.project-switcher-toggle {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  width: auto;
  min-width: 40px;
  justify-content: center;
  padding: 0 12px;
  border: 1px solid #aebbb5;
  border-radius: 5px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 750;
  touch-action: manipulation;
}

.project-switcher-toggle > span:not(.project-switcher-icon) {
  display: inline;
  margin-left: 8px;
}

.project-switcher-toggle:hover,
.project-switcher-toggle[aria-expanded="true"] {
  border-color: var(--brand);
  color: var(--brand-strong);
}

.project-switcher-icon {
  display: grid;
  width: 15px;
  height: 15px;
  grid-template-columns: repeat(2, 5px);
  grid-template-rows: repeat(2, 5px);
  gap: 3px;
}

.project-switcher-icon span {
  border-radius: 1px;
  background: currentColor;
}

.project-switcher-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  display: grid;
  width: min(330px, calc(100vw - 36px));
  max-height: min(520px, calc(100vh - 110px));
  overflow-y: auto;
  padding: 8px;
  border: 1px solid #aebbb5;
  border-radius: 6px;
  background: var(--surface);
  box-shadow: var(--shadow);
  left: auto;
}

.project-switcher[data-menu-direction="down"] .project-switcher-menu {
  top: calc(100% + 8px);
  bottom: auto;
}

.project-switcher[data-menu-direction="up"] .project-switcher-menu {
  top: auto;
  bottom: calc(100% + 8px);
}

.platform-ai-notice {
  min-height: 34px;
  padding: 8px 16px;
  border-top: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
  text-align: center;
}

.project-switcher-menu strong {
  padding: 8px 10px 7px;
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
}

.project-switcher-menu a {
  padding: 9px 10px;
  border-radius: 4px;
  color: var(--text);
  font-size: 13px;
  font-weight: 650;
  text-decoration: none;
}

.project-switcher-menu a:hover,
.project-switcher-menu a:focus-visible,
.project-switcher-menu a[aria-current="page"] {
  background: var(--surface-muted);
  color: var(--brand-strong);
}

.page-shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 28px 0 56px;
}

.page-shell.wide {
  width: min(1500px, calc(100% - 40px));
}

.page-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.page-heading h1 {
  margin: 0;
  font-size: 26px;
  line-height: 1.2;
}

.project-introduction {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(260px, 1fr);
  gap: 24px;
  margin: -8px 0 24px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--brand);
  border-radius: 6px;
  background: var(--surface);
}

.project-introduction p { margin: 3px 0 0; line-height: 1.55; }
.project-introduction-label {
  color: var(--brand-strong);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}
.project-introduction-caution {
  align-self: center;
  color: var(--muted);
  font-size: 12px;
}

.page-heading p {
  margin: 7px 0 0;
  color: var(--muted);
}

.status-pill {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--surface-muted);
  color: var(--brand-strong);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.placeholder-project {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(320px, 1.15fr);
  gap: 42px;
  align-items: start;
}

.placeholder-project-copy h2 {
  margin-bottom: 10px;
  font-size: 22px;
}

.placeholder-project-copy > p:last-child,
.placeholder-project-preview p {
  color: var(--muted);
  line-height: 1.6;
}

.placeholder-project-preview {
  display: grid;
  min-height: 250px;
  align-content: center;
  gap: 12px;
  padding: 24px;
  border: 1px dashed #aebbb5;
  border-radius: 6px;
  background: var(--surface-muted);
}

.placeholder-project-preview label,
.placeholder-preview-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.placeholder-project-preview textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #bcc6c1;
  border-radius: 4px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  resize: none;
}

.placeholder-project-preview .button {
  justify-self: start;
}

.placeholder-project-preview p {
  margin: 0;
  font-size: 12px;
}

.week-picker {
  display: grid;
  grid-template-columns: minmax(170px, 220px) auto auto;
  align-items: end;
  gap: 8px;
}

.week-picker label {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.week-picker select,
.week-picker .button {
  min-height: 38px;
}

.content-section {
  padding: 22px 0;
  border-top: 1px solid var(--line);
}

.content-section h2 {
  margin: 0 0 14px;
  font-size: 17px;
}

.status-band {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--line);
}

.status-item {
  min-height: 92px;
  padding: 16px;
  background: var(--surface);
}

.status-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.status-value {
  display: block;
  margin-top: 8px;
  font-size: 15px;
  font-weight: 650;
}

.release-build-summary { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.release-history { display: grid; gap: 14px; }
.release-entry {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
}
.release-entry header, .support-panel {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}
.release-entry h3, .support-panel h2 { margin: 0; font-size: 18px; }
.release-entry header p, .support-panel p { margin: 6px 0 0; color: var(--muted); }
.release-entry-meta {
  display: grid;
  justify-items: end;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
}
.release-entry ul { margin: 18px 0 0; padding-left: 20px; }
.release-entry li + li { margin-top: 8px; }
.support-panel {
  margin-top: 28px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface-muted);
}

.route-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.route-link {
  display: block;
  min-height: 112px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
}

.route-link:hover {
  border-color: var(--brand);
}

.route-link strong {
  display: block;
  margin-bottom: 7px;
  font-size: 15px;
}

.route-link span {
  color: var(--muted);
  font-size: 13px;
}

.muted-copy {
  color: var(--muted);
  font-size: 12px;
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.section-heading h2,
.section-heading p {
  margin: 0;
}

.section-heading p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

@media (max-width: 700px) {
  .project-introduction {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 14px;
  }

}

.analytics-scope {
  display: grid;
  grid-template-columns: repeat(3, minmax(180px, 1fr));
  gap: 12px;
  margin-bottom: 18px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
}

.chart-panel-heading p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.section-actions {
  display: flex;
  gap: 6px;
}

.similarity-chart-shell {
  min-height: 280px;
  overflow-x: auto;
}

.similarity-chart-shell canvas {
  display: block;
}

.timeline-heading,
.composition-heading {
  align-items: end;
  gap: 18px;
}

.analytics-timeline-section {
  scroll-margin-top: 74px;
}

.analytics-view-tabs {
  display: flex;
  min-width: 0;
  gap: 2px;
  overflow-x: auto;
  margin: 4px 0 20px;
  border-bottom: 1px solid var(--line);
  scrollbar-width: thin;
}

.analytics-view-tabs button {
  flex: none;
  min-height: 38px;
  padding: 8px 12px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-weight: 700;
}

.analytics-view-tabs button:hover {
  color: var(--text);
}

.analytics-view-tabs button[aria-selected="true"] {
  border-bottom-color: var(--brand);
  color: var(--brand-strong);
}

.analytics-view-tabs button:focus-visible,
.analytics-section-nav a:focus-visible {
  border-radius: 3px;
  outline: 2px solid rgba(15, 102, 71, 0.35);
  outline-offset: -2px;
}

.analytics-tab-panel {
  min-width: 0;
}

.timeline-status {
  margin-top: 8px;
  color: var(--muted);
}

.timeline-controls {
  display: grid;
  grid-template-columns: 130px minmax(210px, 1fr) auto auto;
  align-items: end;
  gap: 10px;
}

.timeline-chart-shell {
  width: 100%;
  min-height: 410px;
  overflow-x: auto;
  overflow-y: hidden;
}

.timeline-chart {
  display: block;
}

.timeline-note {
  margin: 8px 0 24px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.composition-heading {
  margin-top: 6px;
}

.composition-heading .field {
  min-width: 240px;
}

.timeline-composition {
  display: grid;
  gap: 9px;
}

.timeline-composition-row {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  align-items: start;
  gap: 12px;
  color: var(--muted);
  font-size: 11px;
}

.timeline-composition-content {
  display: grid;
  gap: 7px;
}

.timeline-composition-values {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  color: var(--text);
  font-size: 11px;
}

.timeline-composition-values span::before {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 5px;
  border-radius: 2px;
  background: var(--composition-color);
  content: "";
}

.timeline-stacked-bar {
  display: flex;
  width: 100%;
  height: 22px;
  overflow: hidden;
  border-radius: 3px;
  background: var(--surface-muted);
}

.timeline-stacked-bar span {
  display: block;
  height: 100%;
}

.timeline-composition-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin: 12px 0 20px 132px;
  color: var(--muted);
  font-size: 11px;
}

.timeline-composition-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.timeline-composition-legend i {
  width: 10px;
  height: 10px;
  border-radius: 2px;
}

.timeline-table {
  width: 100%;
  min-width: 1040px;
  border-collapse: collapse;
}

.timeline-table th,
.timeline-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.timeline-table th:first-child,
.timeline-table td:first-child,
.timeline-table th:nth-child(7),
.timeline-table td:nth-child(7) {
  text-align: left;
}

.timeline-table th {
  background: var(--surface-muted);
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
}

.bar-chart-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.distribution-controls {
  display: flex;
  align-items: end;
  gap: 12px;
}

.distribution-mode-field {
  margin: 0;
}

.distribution-pie {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
}

.distribution-pie[hidden] {
  display: none;
}

#export-distribution-csv {
  margin: 14px 0 0 auto;
}

.distribution-detail-search {
  margin: 12px 0;
}

.donut-chart-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(280px, 1fr));
  gap: 12px;
}

.classification-tabs {
  margin-bottom: 16px;
}

.classification-view {
  min-height: 224px;
}

.classification-panel {
  width: min(760px, 100%);
}

.chart-panel {
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
}

.chart-panel h3 {
  margin: 0 0 14px;
  font-size: 14px;
}

.chart-panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.chart-panel-heading h3 {
  margin: 0;
}

.distribution-table {
  width: 100%;
  min-width: 540px;
  border-collapse: collapse;
}

.distribution-table th,
.distribution-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.distribution-table th {
  background: var(--surface-muted);
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
}

.distribution-table th:nth-child(1),
.distribution-table td:nth-child(1),
.distribution-table th:nth-child(3),
.distribution-table td:nth-child(3),
.distribution-table th:nth-child(4),
.distribution-table td:nth-child(4) {
  width: 100px;
  text-align: right;
}

.bar-chart {
  display: grid;
  gap: 11px;
}

.bar-chart-row {
  min-width: 0;
}

.compact-ranked-chart {
  gap: 8px;
}

.compact-ranked-chart .bar-chart-label {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  align-items: baseline;
}

.bar-chart-label .bar-chart-rank {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.bar-chart-label {
  display: flex;
  min-width: 0;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 4px;
  font-size: 11px;
}

.bar-chart-label span {
  overflow: hidden;
  color: #46524c;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bar-chart-label strong {
  flex: none;
  font-variant-numeric: tabular-nums;
}

.bar-chart-track {
  height: 7px;
  overflow: hidden;
  border-radius: 3px;
  background: #e7ebe9;
}

.bar-chart-track span {
  display: block;
  height: 100%;
  border-radius: 3px;
}

.donut-layout {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
}

.donut-chart {
  width: 190px;
  height: 190px;
}

.chart-legend {
  display: grid;
  gap: 7px;
}

.chart-legend > div {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr) auto;
  align-items: center;
  gap: 7px;
  font-size: 11px;
}

.chart-legend > div > span:nth-child(2) {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chart-swatch {
  width: 10px;
  height: 10px;
  border-radius: 2px;
}

.chart-empty {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.button {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border: 1px solid transparent;
  border-radius: 5px;
  background: var(--brand);
  color: #ffffff;
  cursor: pointer;
  font-weight: 700;
  text-decoration: none;
}

.button:hover {
  background: var(--brand-strong);
}

.button.secondary {
  border-color: var(--line);
  background: var(--surface);
  color: var(--text);
}

.button.secondary:hover {
  border-color: #aeb8b3;
  background: var(--surface-muted);
}

.button.subtle {
  min-height: 32px;
  padding: 5px 9px;
  border-color: transparent;
  background: transparent;
  color: var(--muted);
}

.button.subtle:hover {
  background: var(--surface-muted);
  color: var(--text);
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.button.danger {
  background: #fff;
  border-color: #b42318;
  color: #b42318;
}

.button.danger:hover:not(:disabled) {
  background: #fff1f0;
}

.icon-button {
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  font-size: 18px;
}

.icon-button:hover {
  background: var(--surface-muted);
}

.filter-bar {
  display: grid;
  grid-template-columns: minmax(180px, 1.1fr) minmax(150px, 0.9fr) minmax(170px, 1fr) minmax(190px, 1.2fr) auto minmax(250px, 1.2fr);
  align-items: end;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
}

.toggle-control {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  gap: 9px;
  color: var(--text);
  cursor: pointer;
  font-size: 13px;
  font-weight: 750;
  white-space: nowrap;
}

.toggle-control input {
  width: 18px;
  height: 18px;
  accent-color: var(--brand);
}

.display-settings {
  margin-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.display-settings summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 8px 0;
  color: var(--accent);
  cursor: pointer;
  font-size: 12px;
  font-weight: 750;
}

.display-settings summary::before {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg);
  flex: 0 0 auto;
  margin-right: 4px;
}

.display-settings[open] summary::before {
  transform: rotate(45deg);
}

.display-settings[open] .display-settings-summary {
  display: none;
}

.display-settings summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.display-settings-summary {
  padding: 2px 6px;
  border-radius: 3px;
  background: #e8efeb;
  color: var(--text);
  font-size: 11px;
  font-weight: 700;
}

.display-settings-controls {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 220px));
  gap: 12px;
  padding: 4px 0 14px;
}

.field-label {
  font-size: 13px;
  font-weight: 700;
}

.field {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.field label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.field input,
.field select {
  width: 100%;
  height: 40px;
  min-width: 0;
  padding: 0 10px;
  border: 1px solid #bcc6c1;
  border-radius: 4px;
  background: #ffffff;
  color: var(--text);
}

.field input:focus,
.field select:focus {
  border-color: var(--brand);
  outline: 2px solid rgba(15, 102, 71, 0.15);
}

.field select:disabled {
  background: var(--surface-muted);
  color: #909a95;
}

.asset-search-field {
  position: relative;
}

.asset-suggestions {
  position: absolute;
  z-index: 30;
  top: calc(100% + 5px);
  right: 0;
  left: 0;
  max-height: 360px;
  overflow-y: auto;
  border: 1px solid #aebbb5;
  border-radius: 5px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.asset-suggestion {
  display: grid;
  width: 100%;
  gap: 2px;
  padding: 10px 12px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  text-align: left;
}

.asset-suggestion:last-child {
  border-bottom: 0;
}

.asset-suggestion:hover,
.asset-suggestion.active {
  background: var(--surface-muted);
}

.asset-suggestion strong {
  color: var(--accent);
  font-size: 14px;
}

.asset-suggestion span {
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.soft-path-suggestion {
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: center;
}

.soft-path-suggestion input {
  width: 16px;
  height: 16px;
  margin: 0;
  pointer-events: none;
  accent-color: var(--brand);
}

.soft-path-suggestion-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.filter-actions {
  display: flex;
  gap: 8px;
}

.table-shell {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
}

.results-table {
  width: 100%;
  min-width: 1120px;
  border-collapse: collapse;
  table-layout: fixed;
}

.results-table th,
.results-table td {
  padding: 11px 12px;
  border-bottom: 1px solid #e5e9e7;
  overflow: hidden;
  text-align: left;
  text-overflow: ellipsis;
  vertical-align: middle;
  white-space: nowrap;
}

.results-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--surface-muted);
  color: #4c5852;
  font-size: 11px;
  text-transform: uppercase;
}

.table-sort-button {
  display: inline-flex;
  width: 100%;
  min-height: 32px;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
  text-align: left;
  text-transform: inherit;
}

.table-sort-button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.table-sort-indicator {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 14px;
}

.detail-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.results-table tbody tr:hover {
  background: #f7faf8;
}

.results-table tbody tr.selected {
  background: #edf6f1;
}

.results-table tbody tr:last-child td {
  border-bottom: 0;
}

.asset-link {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--accent);
  cursor: pointer;
  font-weight: 750;
}

.cell-secondary {
  display: block;
  overflow: hidden;
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
  text-overflow: ellipsis;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #e9eeeb;
  color: #46524c;
  font-size: 11px;
  font-weight: 750;
}

.badge.new {
  background: #e6f0f8;
  color: #285d87;
}

.badge.assigned {
  background: #fff2d8;
  color: #80590c;
}

.badge.repaired,
.badge.assessed {
  background: #e3f2ea;
  color: #226046;
}

.priority-high {
  color: var(--danger);
  font-weight: 750;
}

.priority-medium {
  color: var(--warning);
  font-weight: 750;
}

.empty-state {
  padding: 48px 20px !important;
  color: var(--muted);
  text-align: center !important;
}

.pagination {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  min-height: 62px;
}

.pagination-actions {
  display: flex;
  grid-column: 1;
  justify-self: start;
  gap: 6px;
}

.pagination-status {
  grid-column: 2;
  justify-self: center;
  color: var(--muted);
  font-size: 12px;
}

.page-jump {
  display: flex;
  grid-column: 3;
  align-items: center;
  justify-self: end;
  gap: 7px;
}

.page-jump label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.page-jump input {
  width: 72px;
  height: 38px;
  padding: 0 8px;
  border: 1px solid #bcc6c1;
  border-radius: 4px;
}

.page-jump .button {
  min-width: 54px;
}

.road-plan-workspace {
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.road-plan-view-tabs {
  display: flex;
  min-height: 44px;
  border-bottom: 1px solid var(--line);
}

.road-plan-view-tabs button {
  min-width: 140px;
  padding: 11px 18px;
  border: 0;
  border-bottom: 3px solid transparent;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-weight: 750;
}

.road-plan-view-tabs button:hover {
  color: var(--text);
}

.road-plan-view-tabs button[aria-selected="true"] {
  border-bottom-color: var(--brand);
  color: var(--brand);
}

.road-plan-view-tabs button:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: -2px;
}

.road-plan-history-panel {
  padding-top: 28px;
}

.road-plan-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.road-plan-header h2 {
  margin: 0;
  font-size: 20px;
}

.road-plan-header p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.road-history-filters {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(160px, 220px) minmax(130px, 170px) auto;
  align-items: end;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
}

.road-history-filter-actions,
.road-history-actions,
.road-history-metadata-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.road-history-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.78fr) minmax(520px, 1.35fr);
  gap: 22px;
  margin-top: 20px;
}

.road-history-list-section,
.road-history-detail {
  min-width: 0;
}

.road-history-list {
  display: grid;
  border-top: 1px solid var(--line);
}

.road-history-item {
  display: grid;
  width: 100%;
  gap: 7px;
  padding: 14px 12px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-left: 3px solid transparent;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  text-align: left;
}

.road-history-item:hover {
  background: var(--surface-muted);
}

.road-history-item[data-selected="true"] {
  border-left-color: var(--brand);
  background: #f3f8f5;
}

.road-history-item-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.road-history-item > span:not(.road-history-item-heading),
.road-history-item small {
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.road-history-item-state,
.road-history-badge {
  flex: 0 0 auto;
  padding: 3px 7px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--surface-muted);
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
}

.road-history-badge[data-adopted="true"] {
  border-color: #8eb7a7;
  background: #edf7f2;
  color: var(--brand);
}

.road-history-pagination {
  display: flex;
  min-height: 58px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--muted);
  font-size: 12px;
}

.road-history-detail {
  padding-left: 22px;
  border-left: 1px solid var(--line);
}

.road-history-detail-empty {
  padding: 36px 0;
  color: var(--muted);
}

.road-history-detail-empty h2 {
  margin: 0 0 8px;
  color: var(--text);
  font-size: 20px;
}

.road-history-metrics {
  display: grid;
  grid-template-columns: repeat(5, minmax(100px, 1fr));
  margin: 12px 0 16px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.road-history-metrics > div {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 12px 10px;
  border-right: 1px solid var(--line);
}

.road-history-metrics > div:last-child {
  border-right: 0;
}

.road-history-metrics span {
  color: var(--muted);
  font-size: 11px;
}

.road-history-metrics strong {
  overflow: hidden;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.road-history-stops-section {
  margin-top: 22px;
}

.road-history-stops-section h3 {
  margin: 0 0 9px;
  font-size: 15px;
}

.road-history-stops {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
}

.road-history-stops li {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.road-history-stop-number {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 50%;
  background: var(--brand);
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
}

.road-history-stops strong,
.road-history-stops span,
.road-history-stops small {
  display: block;
}

.road-history-stops span,
.road-history-stops small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.road-history-metadata {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(150px, 200px);
  gap: 14px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.road-history-adopted-control {
  display: flex;
  min-height: 40px;
  align-items: center;
  gap: 9px;
  font-weight: 700;
}

.road-history-name-field,
.road-history-notes-field,
.road-history-metadata-actions {
  grid-column: 1 / -1;
}

.road-history-notes-field textarea {
  width: 100%;
  min-height: 92px;
  padding: 9px 10px;
  border: 1px solid #bcc6c1;
  border-radius: 4px;
  color: var(--text);
  font: inherit;
  resize: vertical;
}

.road-history-metadata-actions {
  justify-content: flex-end;
}

.road-history-metadata-actions span {
  color: var(--muted);
  font-size: 12px;
}

@media (max-width: 980px) {
  .road-history-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .road-history-layout {
    grid-template-columns: 1fr;
  }

  .road-history-detail {
    padding-top: 20px;
    padding-left: 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .road-history-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .road-history-filters,
  .road-history-metadata {
    grid-template-columns: 1fr;
  }

  .road-history-filter-actions,
  .road-history-notes-field,
  .road-history-metadata-actions {
    grid-column: 1;
  }

  .road-history-metrics {
    grid-template-columns: 1fr;
  }

  .road-history-metrics > div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .road-plan-header {
    align-items: flex-start;
    flex-direction: column;
  }
}

.road-plan-controls {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  align-items: end;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
}

.road-plan-api-estimate {
  grid-column: 1 / -1;
  min-height: 20px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.road-plan-api-estimate[data-state="warning"] {
  color: #855a00;
}

.road-plan-api-estimate[data-state="error"] {
  color: var(--danger);
}

.road-place-form {
  display: grid;
  grid-template-columns:
    minmax(120px, 0.45fr)
    minmax(140px, 0.55fr)
    minmax(170px, 0.7fr)
    minmax(260px, 1.3fr)
    auto;
  align-items: end;
  gap: 12px;
  margin-top: 10px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-left: 3px solid #d59a1f;
  border-radius: 6px;
  background: var(--surface);
}

.road-place-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.segmented-field {
  min-width: 190px;
  padding: 0;
  border: 0;
}

.segmented-field legend {
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.segmented-control {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  height: 40px;
  padding: 3px;
  border: 1px solid #bcc6c1;
  border-radius: 5px;
  background: var(--surface-muted);
}

.segmented-control label {
  display: contents;
}

.segmented-control input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.segmented-control span {
  display: grid;
  place-items: center;
  border-radius: 3px;
  color: var(--muted);
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
}

.segmented-control input:checked + span {
  background: var(--surface);
  box-shadow: 0 1px 3px rgba(23, 33, 29, 0.12);
  color: var(--text);
}

.road-plan-layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.7fr) minmax(520px, 1.6fr);
  gap: 18px;
  margin-top: 18px;
}

.road-plan-sidebar {
  min-width: 0;
}

.road-boundary-places {
  display: grid;
  gap: 6px;
  margin-bottom: 10px;
}

.road-boundary-place {
  display: flex;
  min-height: 54px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid #b9c8c0;
  border-left: 3px solid var(--brand);
  border-radius: 5px;
  background: #f3f8f5;
}

.road-boundary-place.empty {
  border-left-color: var(--line);
  background: var(--surface-muted);
}

.road-boundary-place strong,
.road-boundary-place span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
}

.road-boundary-place span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.road-plan-assets,
.road-plan-legs {
  margin: 0;
  padding: 0;
  list-style: none;
}

.road-plan-asset {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 62px;
  padding: 9px 8px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.road-plan-asset:first-child {
  border-top: 1px solid var(--line);
}

.road-plan-asset.dragging {
  opacity: 0.45;
}

.road-plan-asset.custom-stop {
  border-left: 3px solid #d59a1f;
  background: #fffaf0;
}

.road-plan-drag {
  color: var(--muted);
  cursor: grab;
  font-size: 18px;
  text-align: center;
}

.road-plan-asset strong,
.road-plan-asset span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.road-plan-asset .road-plan-asset-address {
  margin-top: 3px;
  color: #46524c;
}

.road-plan-asset span {
  color: var(--muted);
  font-size: 11px;
}

.remove-road-asset {
  width: 32px;
  height: 32px;
}

.road-plan-asset-actions {
  display: flex;
  gap: 4px;
}

.road-plan-asset-actions .icon-button {
  font-size: 14px;
}

.road-plan-message {
  min-height: 42px;
  padding: 12px 0;
  color: var(--muted);
  font-size: 12px;
}

.road-plan-message.error {
  color: var(--danger);
}

.road-plan-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--line);
  border-radius: 5px;
  overflow: hidden;
  background: var(--line);
}

.road-plan-summary div {
  padding: 12px;
  background: var(--surface);
}

.road-plan-summary span,
.road-plan-navigation span {
  display: block;
  color: var(--muted);
  font-size: 11px;
}

.road-plan-summary strong {
  display: block;
  margin-top: 3px;
  font-size: 16px;
}

.road-plan-feasibility {
  margin-top: 10px;
  padding: 11px 12px;
  border-left: 3px solid var(--warning);
  background: #fff8e8;
  color: #664b19;
  font-size: 12px;
  line-height: 1.45;
}

.road-plan-navigation {
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  margin-top: 14px;
}

.road-plan-navigation img {
  width: 116px;
  height: 116px;
  border: 1px solid var(--line);
  background: var(--surface);
}

.road-plan-navigation .button {
  width: 100%;
  margin-bottom: 7px;
}

.export-option {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 30px;
  color: var(--muted);
  cursor: pointer;
  font-size: 11px;
}

.export-option input {
  width: 16px;
  height: 16px;
  accent-color: var(--brand);
}

.road-plan-map-column {
  min-width: 0;
}

.road-plan-map-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
}

.road-plan-map-legend[hidden] {
  display: none;
}

.road-plan-map-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.road-plan-map-legend i {
  width: 11px;
  height: 11px;
  border: 2px solid #ffffff;
  border-radius: 50%;
  box-shadow: 0 0 0 1px var(--line);
  background: var(--accent);
}

.road-plan-map-legend i[data-marker="start"] { background: var(--brand); }
.road-plan-map-legend i[data-marker="stop"] { background: var(--warning); }
.road-plan-map-legend i[data-marker="end"] { background: var(--danger); }

.road-plan-map {
  width: 100%;
  min-height: 470px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #e7ebe9;
}

.road-plan-map-empty {
  display: grid;
  min-height: inherit;
  margin: 0;
  place-items: center;
  padding: 24px;
  color: #4c5852;
  text-align: center;
}

.road-plan-map-frame {
  display: block;
  width: 100%;
  min-height: inherit;
  border: 0;
}

.road-plan-legs {
  margin-top: 14px;
}

.road-plan-leg {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.road-plan-leg-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.road-plan-leg-header strong {
  min-width: 0;
  overflow-wrap: anywhere;
}

.road-plan-leg-header span {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 12px;
}

.road-plan-leg details {
  margin-top: 8px;
}

.road-plan-leg-addresses {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.road-plan-leg-address {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 9px 10px;
  border-left: 3px solid #9fb9aa;
  background: var(--surface);
}

.road-plan-leg-address span {
  display: block;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

.road-plan-leg-address p {
  margin: 2px 0 0;
  overflow-wrap: anywhere;
  user-select: text;
}

.road-plan-leg-address .button {
  min-width: 52px;
}

.road-plan-leg summary {
  color: var(--accent);
  cursor: pointer;
  font-size: 12px;
}

.road-plan-instructions {
  margin: 10px 0 0;
  padding-left: 24px;
  color: var(--muted);
  font-size: 12px;
}

.road-plan-warning {
  margin-top: 5px;
  color: var(--warning) !important;
  white-space: normal !important;
}

.detail-dialog {
  width: min(860px, calc(100% - 30px));
  max-height: min(820px, calc(100vh - 40px));
  overflow: auto;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 7px;
  box-shadow: var(--shadow);
}

.detail-dialog::backdrop {
  background: rgba(10, 20, 16, 0.54);
}

.dialog-header {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.dialog-header h2 {
  margin: 0;
  font-size: 19px;
}

.dialog-body {
  padding: 4px 22px 26px;
}

.detail-section {
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.detail-section:last-child {
  border-bottom: 0;
}

.detail-section h3 {
  margin: 0 0 12px;
  font-size: 14px;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 24px;
  margin: 0;
}

.detail-grid div {
  min-width: 0;
}

.detail-grid dt {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.detail-grid dd {
  margin: 4px 0 0;
  overflow-wrap: anywhere;
}

.detail-grid .wide {
  grid-column: 1 / -1;
}

.login-page {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 24px;
  background: #e9eeeb;
}

.login-shell {
  width: min(420px, 100%);
}

.login-brand {
  margin-bottom: 18px;
  color: var(--brand);
  font-size: 14px;
  font-weight: 800;
  text-align: center;
}

.login-panel {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.login-panel h1 {
  margin: 0 0 6px;
  font-size: 24px;
  text-align: center;
}

.login-panel > p {
  margin: 0 0 24px;
  color: var(--muted);
  text-align: center;
}

.login-panel .button {
  width: 100%;
  margin-top: 16px;
}

.login-panel .button[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 0.55;
}

.form-status {
  min-height: 22px;
  margin: 12px 0 0;
  color: var(--danger);
  font-size: 12px;
}

.form-status.timeline-status {
  color: var(--muted);
}

.form-status.timeline-status[data-state="error"] {
  color: var(--danger);
}

.form-status[data-state="loading"],
.form-status[data-state="ready"] {
  color: var(--muted);
}

.form-status[data-state="warning"] {
  color: var(--warning);
}

.preformatted {
  overflow: auto;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #101713;
  color: #dce8e1;
  font: 12px/1.55 ui-monospace, SFMono-Regular, Menlo, monospace;
  white-space: pre-wrap;
}

@media (max-width: 980px) {
  .app-header {
    grid-template-columns: auto 1fr;
    gap: 14px;
    padding: 8px 18px;
  }

  .app-nav {
    order: 3;
    grid-column: 1 / -1;
    overflow-x: auto;
  }

  .session-area {
    justify-self: end;
  }

  .filter-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .platform-positioning {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .road-plan-controls {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .road-place-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .road-place-actions {
    grid-column: 1 / -1;
  }

  .road-plan-layout {
    grid-template-columns: minmax(260px, 0.8fr) minmax(430px, 1.2fr);
    overflow-x: auto;
  }

  .bar-chart-grid {
    grid-template-columns: 1fr;
  }

  .donut-chart-grid {
    grid-template-columns: repeat(2, minmax(280px, 1fr));
  }

  .filter-actions {
    align-self: end;
  }

}

@media (max-width: 680px) {
  .soft-circuit-deliverables { grid-template-columns: 1fr; gap: 14px; }

  .app-header {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    padding: 8px 12px;
  }

  .session-email {
    display: none;
  }

  .app-nav {
    width: 100%;
    flex-wrap: wrap;
    gap: 2px;
    overflow: visible;
  }

  .app-nav a {
    padding: 6px 8px;
    font-size: 12px;
  }

  .session-area {
    gap: 6px;
  }

  .page-shell,
  .page-shell.wide {
    width: min(100% - 24px, 1500px);
    padding-top: 20px;
  }

  .page-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .project-switcher-menu {
    width: min(330px, calc(100vw - 24px));
  }

  .platform-ai-notice {
    min-height: 46px;
    padding: 7px 12px;
  }

  .placeholder-project {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .placeholder-project-preview {
    min-height: 220px;
    padding: 18px;
  }

  .week-picker {
    width: 100%;
    grid-template-columns: 1fr;
  }

  .week-picker label {
    grid-column: 1;
  }

  .status-band,
  .route-grid,
  .filter-bar,
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .release-entry header,
  .support-panel {
    align-items: stretch;
    flex-direction: column;
  }

  .release-entry-meta { justify-items: start; }

  .analytics-scope,
  .analytics-summary,
  .donut-chart-grid,
  .timeline-controls {
    grid-template-columns: 1fr;
  }

  .analytics-view-tabs button {
    padding-inline: 10px;
    font-size: 12px;
  }

  .timeline-heading,
  .composition-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .timeline-composition-row {
    grid-template-columns: 92px minmax(0, 1fr);
  }

  .distribution-controls {
    width: 100%;
    align-items: stretch;
    flex-direction: column;
  }

  .distribution-pie {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .timeline-composition-legend {
    margin-left: 0;
  }

  .donut-layout {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .chart-legend {
    width: 100%;
  }

  .detail-grid .wide {
    grid-column: auto;
  }

  .session-email {
    display: none;
  }

  .filter-actions .button {
    flex: 1;
  }

  .display-settings-controls {
    grid-template-columns: 1fr;
  }

  .road-plan-controls,
  .road-place-form,
  .road-plan-layout {
    grid-template-columns: 1fr;
  }

  .road-place-actions {
    grid-column: auto;
  }

  .road-place-actions .button {
    flex: 1;
  }

  .road-plan-layout {
    overflow: visible;
  }

  .road-plan-map {
    min-height: 380px;
  }

  .road-plan-leg-addresses {
    grid-template-columns: 1fr;
  }

  .pagination {
    grid-template-columns: 1fr;
    justify-items: center;
    padding: 12px 0;
  }

  .pagination-actions,
  .pagination-status,
  .page-jump {
    grid-column: 1;
    justify-self: center;
  }

}
