:root {
  --pb-ink: #111820;
  --pb-muted: #5f6b76;
  --pb-surface: #ffffff;
  --pb-court: #f7f5ef;
  --pb-court-warm: #fffdf8;
  --pb-line: #d4ddd7;
  --pb-green: #0f4d3a;
  --pb-green-2: #176b4d;
  --pb-teal: #0b7285;
  --pb-blue: #2458a6;
  --pb-amber: #a16207;
  --pb-danger: #e11d48;
  --pb-radius: 8px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--pb-court);
  color: var(--pb-ink);
  font-family: Inter, "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, system-ui, sans-serif;
  letter-spacing: 0;
  overflow-x: hidden;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px clamp(16px, 4vw, 44px);
  border-bottom: 1px solid var(--pb-line);
  background: rgb(255 253 248 / 94%);
  backdrop-filter: blur(12px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

.brand img {
  flex: 0 0 auto;
  border-radius: 8px;
}

.brand span {
  display: grid;
  gap: 1px;
  min-width: 0;
}

.brand small,
.eyebrow,
.section-kicker,
.auth-kicker {
  color: var(--pb-amber);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.brand strong {
  font-size: 16px;
  line-height: 1.2;
}

.top-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}

.top-nav a,
.auth-badge {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 8px 10px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--pb-muted);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.top-nav a:hover,
.auth-badge.authenticated {
  border-color: var(--pb-line);
  color: var(--pb-green);
  background: #fff;
}

.auth-badge.unauthenticated {
  border-color: #d3b03f;
  color: #60420b;
  background: #fff6cf;
}

.auth-badge[hidden] {
  display: none;
}

.page-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 48px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 2px 0 12px;
  color: var(--pb-muted);
  font-size: 13px;
  font-weight: 800;
}

.breadcrumb a {
  color: var(--pb-green);
  text-decoration: none;
}

.breadcrumb span::before {
  content: "/";
  margin-right: 8px;
  color: #9aa79f;
}

.ranking-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 24px;
  align-items: stretch;
  padding: 12px 0 14px;
}

.seo-hero {
  display: grid;
  gap: 14px;
  max-width: 860px;
  padding: 18px 0 10px;
}

.hero-copy {
  display: grid;
  align-content: center;
  gap: 14px;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  max-width: 840px;
  font-size: clamp(38px, 5vw, 60px);
  line-height: 1.02;
  letter-spacing: 0;
}

h2 {
  font-size: 22px;
  line-height: 1.3;
}

.lead {
  max-width: 720px;
  color: #3f514a;
  font-size: 16px;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-actions a,
.month-link,
.link-band a,
.archive-list a,
.auth-primary-link,
.auth-secondary-link,
.auth-secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border-radius: 8px;
  font-weight: 800;
  text-decoration: none;
}

.hero-actions a:first-child,
.auth-primary-link {
  padding: 10px 14px;
  background: var(--pb-green);
  color: white;
}

.hero-actions a:last-child,
.month-link,
.archive-list a,
.auth-secondary-link,
.auth-secondary-button {
  padding: 10px 14px;
  border: 1px solid var(--pb-line);
  background: white;
  color: var(--pb-green);
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  align-content: end;
}

.metric {
  min-height: 94px;
  display: grid;
  align-content: space-between;
  padding: 16px;
  border: 1px solid var(--pb-line);
  border-radius: 8px;
  background: white;
}

.metric span {
  color: var(--pb-muted);
  font-size: 13px;
  font-weight: 700;
}

.metric strong {
  font-size: 24px;
  font-variant-numeric: tabular-nums;
}

.ranking-workbench {
  margin-top: 18px;
}

.archive-section,
.notes {
  margin-top: 18px;
  border: 1px solid var(--pb-line);
  border-radius: 8px;
  background: white;
}

.workbench-head,
.archive-section {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.workbench-head {
  padding: 18px;
  border: 1px solid var(--pb-line);
  border-radius: 8px 8px 0 0;
  background: white;
}

.workbench-head p,
.notes p {
  margin-top: 6px;
  color: var(--pb-muted);
  line-height: 1.7;
}

.controls {
  display: grid;
  grid-template-columns: repeat(5, auto);
  gap: 10px;
  padding: 14px 18px;
  border-right: 1px solid var(--pb-line);
  border-bottom: 1px solid var(--pb-line);
  border-left: 1px solid var(--pb-line);
  background: var(--pb-court-warm);
}

.control-group {
  display: grid;
  gap: 5px;
}

.control-group > span {
  color: var(--pb-muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.segmented {
  display: inline-grid;
  grid-auto-flow: column;
  grid-auto-columns: max-content;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--pb-line);
  border-radius: 8px;
  background: white;
}

.segmented button {
  min-width: 58px;
  min-height: 34px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--pb-muted);
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.segmented button[aria-pressed="true"] {
  background: var(--pb-green);
  color: white;
}

.search-box {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--pb-line);
  border-radius: 8px;
  background: white;
  color: var(--pb-muted);
  font-size: 13px;
  font-weight: 800;
}

.search-box input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  color: var(--pb-ink);
  font: inherit;
  font-weight: 600;
}

.ranking-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  margin-top: 12px;
}

.table-panel,
.insights-panel {
  border: 1px solid var(--pb-line);
  border-radius: 8px;
  background: white;
  overflow: hidden;
}

.table-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 58px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--pb-line);
  background: white;
}

.table-toolbar > div:first-child {
  display: grid;
  gap: 1px;
}

.table-toolbar span {
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

.table-toolbar small {
  color: var(--pb-muted);
  font-size: 12px;
  font-weight: 700;
}

.pagination {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.pagination button {
  width: 34px;
  height: 34px;
  border: 1px solid var(--pb-line);
  border-radius: 8px;
  background: var(--pb-court-warm);
  color: var(--pb-green);
  font: inherit;
  font-size: 22px;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
}

.pagination button:disabled {
  opacity: 0.42;
  cursor: default;
}

.pagination span {
  min-width: 52px;
  color: var(--pb-muted);
  font-size: 13px;
  text-align: center;
}

.ranking-table-wrap {
  overflow-x: auto;
}

.mobile-ranking-list {
  display: none;
}

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

.ranking-table th,
.ranking-table td {
  padding: 11px 14px;
  border-top: 1px solid #e8eee9;
  text-align: left;
  vertical-align: middle;
}

.ranking-table th {
  color: var(--pb-muted);
  font-size: 12px;
  text-transform: uppercase;
  white-space: nowrap;
}

.ranking-table th:nth-child(1),
.ranking-table td:nth-child(1) {
  width: 64px;
}

.ranking-table th:nth-child(3),
.ranking-table td:nth-child(3) {
  width: 108px;
}

.ranking-table th:nth-child(4),
.ranking-table td:nth-child(4) {
  width: 104px;
}

.ranking-table th:nth-child(5),
.ranking-table td:nth-child(5) {
  width: 78px;
}

.insights-panel {
  display: grid;
  align-content: start;
  gap: 0;
}

.player-spotlight,
.insight-block,
.side-actions {
  display: grid;
  gap: 7px;
  padding: 14px;
  border-bottom: 1px solid var(--pb-line);
}

.player-spotlight span,
.insight-label {
  color: var(--pb-amber);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.player-spotlight strong,
.insight-block strong {
  font-size: 21px;
  line-height: 1.2;
}

.player-spotlight small,
.insight-block p {
  color: var(--pb-muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.55;
}

.compact-archive {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.compact-archive a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 6px 9px;
  border: 1px solid var(--pb-line);
  border-radius: 8px;
  color: var(--pb-green);
  font-size: 12px;
  font-weight: 850;
  text-decoration: none;
}

.compact-archive a[aria-current="page"] {
  border-color: var(--pb-green);
  background: var(--pb-green);
  color: white;
}

.side-actions {
  border-bottom: 0;
}

.side-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 9px 10px;
  border-radius: 8px;
  background: var(--pb-green);
  color: white;
  font-size: 13px;
  font-weight: 850;
  text-decoration: none;
}

.side-actions a + a {
  border: 1px solid var(--pb-line);
  background: white;
  color: var(--pb-green);
}

.rank-row-gold {
  background: linear-gradient(90deg, rgb(255 248 218 / 82%), rgb(255 253 248 / 0%) 50%);
}

.rank-row-silver {
  background: linear-gradient(90deg, rgb(241 245 249 / 82%), rgb(255 253 248 / 0%) 48%);
}

.rank-row-bronze {
  background: linear-gradient(90deg, rgb(255 239 224 / 78%), rgb(255 253 248 / 0%) 48%);
}

.rank-cell,
.number-cell {
  font-variant-numeric: tabular-nums;
  font-weight: 850;
  white-space: nowrap;
}

.rank-cell {
  color: var(--pb-green);
}

.rank-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 34px;
  height: 32px;
  padding: 0 8px;
  border: 1px solid #b9dfcd;
  border-radius: 999px;
  background: #e9f2ee;
  color: var(--pb-green);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 72%);
  line-height: 1;
}

.rank-badge-number {
  display: inline-block;
  min-width: 1ch;
  font-size: 15px;
  font-weight: 950;
  line-height: 1;
  text-align: center;
}

.rank-crown {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.2;
}

.rank-badge-gold {
  min-width: 48px;
  border-color: #c88a11;
  background: linear-gradient(180deg, #fff5c7, #e1a223);
  color: #5c3900;
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 78%),
    0 4px 10px rgb(161 98 7 / 16%);
}

.rank-badge-silver {
  border-color: #a8b3bf;
  background: linear-gradient(180deg, #f8fafc, #cbd5e1);
  color: #334155;
}

.rank-badge-bronze {
  border-color: #b77946;
  background: linear-gradient(180deg, #ffe7d0, #bd7a43);
  color: #56331e;
}

.player-cell {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.player-cell strong {
  overflow-wrap: anywhere;
}

.player-cell span {
  color: var(--pb-muted);
  font-size: 12px;
  font-weight: 700;
}

.official-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 5px 8px;
  border: 1px solid var(--pb-line);
  border-radius: 8px;
  background: var(--pb-court-warm);
  color: var(--pb-green);
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
}

.empty-table-row td,
.empty-ranking-card {
  color: var(--pb-muted);
  font-size: 14px;
  font-weight: 800;
  text-align: center;
}

.empty-table-row td {
  padding: 28px 14px;
}

.empty-ranking-card {
  padding: 22px 12px;
  border-top: 1px solid #e8eee9;
}

.link-band {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.link-band a {
  align-items: flex-start;
  justify-content: flex-start;
  display: grid;
  gap: 4px;
  min-height: 92px;
  padding: 16px;
  border: 1px solid var(--pb-line);
  background: white;
  color: var(--pb-ink);
}

.link-band span {
  color: var(--pb-amber);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

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

.seo-card {
  min-height: 148px;
  padding: 18px;
  border: 1px solid var(--pb-line);
  border-radius: 8px;
  background: white;
}

.seo-card p,
.faq-item p {
  margin-top: 8px;
  color: var(--pb-muted);
  line-height: 1.75;
}

.seo-card a {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  margin-top: 12px;
  border: 1px solid rgba(15, 77, 58, 0.18);
  border-radius: 999px;
  background: #eef8f2;
  color: var(--pb-green);
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
}

.faq-section {
  display: grid;
  gap: 10px;
}

.faq-item {
  border-top: 1px solid var(--pb-line);
  padding-top: 10px;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 900;
}

.archive-section {
  padding: 18px;
}

.archive-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.archive-list a[aria-current="page"] {
  border-color: var(--pb-green);
  color: white;
  background: var(--pb-green);
}

.notes {
  padding: 18px;
}

.warning-note {
  color: var(--pb-danger) !important;
  font-weight: 800;
}

.site-footer {
  display: grid;
  gap: 14px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 34px;
  color: var(--pb-muted);
  font-size: 13px;
}

.site-footer p {
  max-width: 920px;
  line-height: 1.7;
}

.site-footer a {
  width: fit-content;
}

.bottom-service-tabs {
  display: none;
}

@media (max-width: 980px) {
  .ranking-hero,
  .controls,
  .ranking-layout,
  .link-band,
  .seo-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 680px) {
  body {
    padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 82px);
  }

  .workbench-head,
  .archive-section {
    display: grid;
  }

  .site-header {
    position: static;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    min-height: 54px;
    padding: 8px 12px;
    gap: 8px;
  }

  .brand {
    gap: 8px;
  }

  .brand span {
    overflow: hidden;
  }

  .brand img {
    width: 36px;
    height: 36px;
  }

  .brand small {
    font-size: 10px;
  }

  .brand strong {
    display: block;
    font-size: 14px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .top-nav {
    flex: 0 0 auto;
    justify-content: flex-end;
    min-width: 0;
  }

  .top-nav a:not(.auth-badge) {
    display: none;
  }

  .top-nav a,
  .auth-badge {
    min-height: 30px;
    padding: 5px 8px;
    font-size: 12px;
  }

  .bottom-service-tabs {
    position: fixed;
    right: auto;
    bottom: max(10px, env(safe-area-inset-bottom, 0px));
    left: max(10px, env(safe-area-inset-left, 0px));
    z-index: 80;
    display: grid;
    width: calc(100vw - 20px);
    max-width: calc(100vw - 20px);
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 4px;
    padding: 6px;
    border: 1px solid rgba(15, 77, 58, 0.24);
    border-radius: 8px;
    background: rgb(255 253 248 / 96%);
    box-shadow: 0 12px 34px rgba(20, 28, 24, 0.18);
    backdrop-filter: blur(16px);
  }

  .bottom-service-tab {
    display: grid;
    min-width: 0;
    min-height: 52px;
    align-content: center;
    justify-items: center;
    gap: 3px;
    padding: 6px 2px;
    border: 1px solid transparent;
    border-radius: 8px;
    color: var(--pb-ink);
    font-size: 10px;
    font-weight: 950;
    line-height: 1;
    text-align: center;
    text-decoration: none;
  }

  .bottom-service-tab.active {
    border-color: var(--pb-green);
    background: var(--pb-green);
    color: white;
  }

  .bottom-service-tab-icon {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .bottom-service-tab span {
    display: block;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  h1 {
    font-size: 29px;
    line-height: 1.04;
  }

  .page-shell {
    width: min(100% - 20px, 1180px);
    padding-top: 10px;
  }

  .ranking-hero {
    gap: 10px;
    padding: 8px 0 10px;
  }

  .seo-hero {
    gap: 10px;
    padding: 10px 0 6px;
  }

  .hero-copy {
    gap: 8px;
  }

  .eyebrow,
  .section-kicker {
    font-size: 10px;
  }

  .lead {
    font-size: 15px;
    line-height: 1.65;
  }

  .hero-actions {
    flex-wrap: nowrap;
    gap: 8px;
  }

  .hero-actions a,
  .month-link {
    min-height: 34px;
    padding: 7px 8px;
    font-size: 12px;
  }

  .hero-actions a {
    flex: 1 1 0;
    min-width: 0;
    line-height: 1.2;
    text-align: center;
    white-space: normal;
  }

  .hero-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }

  .metric {
    min-height: 38px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 6px 8px;
  }

  .metric span {
    min-width: 0;
    font-size: 10px;
    line-height: 1.15;
  }

  .metric strong {
    flex: 0 0 auto;
    font-size: 17px;
    line-height: 1;
  }

  .ranking-workbench,
  .archive-section,
  .notes {
    margin-top: 12px;
  }

  .workbench-head,
  .controls {
    padding: 10px 12px;
  }

  .workbench-head {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 8px;
    border-radius: 8px 8px 0 0;
  }

  .workbench-head h2 {
    font-size: 20px;
  }

  .workbench-head p,
  .notes p {
    margin-top: 4px;
    line-height: 1.45;
  }

  .workbench-head > div > p:not(.section-kicker) {
    font-size: 14px;
  }

  .month-link {
    justify-self: end;
  }

  .table-toolbar {
    align-items: flex-start;
    min-height: 46px;
    padding: 8px 10px;
  }

  .ranking-table-wrap {
    display: none;
  }

  .mobile-ranking-list {
    display: grid;
    background: white;
  }

  .mobile-ranking-card {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr) 56px 40px;
    grid-template-areas:
      "rank player score official"
      "rank rel score official";
    align-items: center;
    column-gap: 7px;
    row-gap: 2px;
    min-width: 0;
    min-height: 56px;
    padding: 7px 8px;
    border-top: 1px solid #e8eee9;
  }

  .mobile-rank-wrap {
    grid-area: rank;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
  }

  .mobile-rank-wrap .rank-badge {
    min-width: 34px;
    height: 28px;
    padding: 0 7px;
  }

  .mobile-rank-wrap .rank-badge-gold {
    min-width: 44px;
  }

  .mobile-rank-wrap .rank-badge-number {
    font-size: 14px;
  }

  .mobile-rank-wrap .rank-crown {
    width: 12px;
    height: 12px;
  }

  .mobile-player {
    grid-area: player;
    display: grid;
    gap: 1px;
    min-width: 0;
  }

  .mobile-player strong {
    min-width: 0;
    color: var(--pb-ink);
    font-size: 15px;
    line-height: 1.15;
    overflow-wrap: anywhere;
  }

  .mobile-player span,
  .mobile-rating span,
  .mobile-reliability {
    color: var(--pb-muted);
    font-size: 10px;
    font-weight: 800;
  }

  .mobile-rating {
    grid-area: score;
    display: grid;
    justify-items: end;
    gap: 1px;
    min-width: 0;
  }

  .mobile-rating strong {
    color: var(--pb-ink);
    font-size: 18px;
    line-height: 1;
    font-weight: 900;
    font-variant-numeric: tabular-nums;
  }

  .mobile-reliability {
    grid-area: rel;
    min-width: 0;
  }

  .mobile-official-link {
    grid-area: official;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    justify-self: end;
    min-height: 26px;
    padding: 3px 6px;
    border: 1px solid var(--pb-line);
    border-radius: 8px;
    background: var(--pb-court-warm);
    color: var(--pb-green);
    font-size: 11px;
    font-weight: 900;
    text-decoration: none;
    white-space: nowrap;
  }

  .table-toolbar span {
    font-size: 18px;
  }

  .table-toolbar small {
    font-size: 10px;
  }

  .pagination button {
    width: 30px;
    height: 30px;
    font-size: 18px;
  }

  .pagination span {
    min-width: 46px;
    font-size: 12px;
  }

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

  .control-group {
    min-width: 0;
    gap: 4px;
  }

  .control-group > span {
    font-size: 10px;
  }

  .segmented {
    display: flex;
    width: 100%;
    min-width: 0;
    gap: 1px;
    padding: 2px;
  }

  .segmented button {
    flex: 1 1 0;
    min-width: 0;
    min-height: 30px;
    padding: 0 4px;
    font-size: 12px;
    white-space: nowrap;
  }

  .search-box {
    grid-column: 1 / -1;
    min-height: 36px;
    padding: 0 10px;
  }
}
