@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500;600&family=Inter:wght@400;500;600;700;800&family=Space+Grotesk:wght@500;700&display=swap");

:root,
body[data-theme="dark"] {
  --background: 220 18% 4%;
  --foreground: 220 14% 96%;
  --surface: 222 17% 7%;
  --surface-foreground: 220 14% 96%;
  --elevated: 220 14% 13%;
  --elevated-foreground: 220 14% 96%;
  --card: 222 17% 7%;
  --card-foreground: 220 14% 96%;
  --primary: 73 100% 50%;
  --primary-foreground: 220 18% 4%;
  --secondary: 220 14% 13%;
  --secondary-foreground: 220 14% 96%;
  --muted: 220 14% 13%;
  --muted-foreground: 220 11% 60%;
  --accent: 73 100% 50%;
  --accent-foreground: 220 18% 4%;
  --destructive: 0 75% 55%;
  --destructive-foreground: 220 14% 96%;
  --warning: 35 95% 55%;
  --border: 220 14% 13%;
  --input: 220 14% 13%;
  --ring: 73 100% 50%;
  --sidebar-background: 220 18% 4%;
  --sidebar-foreground: 220 11% 60%;
  --sidebar-accent: 220 14% 13%;
  --shadow-glow: 0 0 24px hsl(73 100% 50% / 0.12);
  --shadow-card: 0 1px 0 0 hsl(220 14% 13%);
  --radius: 0.25rem;
}

body[data-theme="light"] {
  --background: 50 33% 97%;
  --foreground: 220 24% 12%;
  --surface: 0 0% 100%;
  --surface-foreground: 220 24% 12%;
  --elevated: 45 30% 92%;
  --elevated-foreground: 220 24% 12%;
  --card: 0 0% 100%;
  --card-foreground: 220 24% 12%;
  --primary: 88 84% 42%;
  --primary-foreground: 0 0% 100%;
  --secondary: 45 30% 92%;
  --secondary-foreground: 220 24% 12%;
  --muted: 45 24% 94%;
  --muted-foreground: 220 10% 42%;
  --accent: 88 84% 42%;
  --accent-foreground: 0 0% 100%;
  --destructive: 0 68% 52%;
  --destructive-foreground: 0 0% 100%;
  --warning: 35 92% 48%;
  --border: 45 16% 85%;
  --input: 45 20% 93%;
  --ring: 88 84% 42%;
  --sidebar-background: 48 36% 95%;
  --sidebar-foreground: 220 10% 42%;
  --sidebar-accent: 0 0% 100%;
  --shadow-glow: 0 0 18px hsl(88 84% 42% / 0.12);
  --shadow-card: 0 1px 0 0 hsl(45 16% 85%);
}

* {
  box-sizing: border-box;
}

html {
  font-family: "Inter", system-ui, sans-serif;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top right, hsl(var(--primary) / 0.05), transparent 22rem),
    linear-gradient(180deg, hsl(var(--background)), hsl(var(--background)));
  color: hsl(var(--foreground));
  font-feature-settings: "ss01", "cv11";
  overflow-x: hidden;
}

body.auth-body,
body.print-body {
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
.inline-button {
  appearance: none;
  border: 1px solid hsl(var(--primary));
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  padding: 0.82rem 1.2rem;
  font: inherit;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-radius: var(--radius);
  cursor: pointer;
  transition:
    background-color 0.16s ease,
    color 0.16s ease,
    border-color 0.16s ease,
    transform 0.16s ease,
    box-shadow 0.16s ease;
}

button:hover,
.inline-button:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-glow);
}

button:disabled,
.inline-button:disabled {
  border-color: hsl(var(--border));
  background: hsl(var(--background));
  color: hsl(var(--muted-foreground));
  cursor: default;
  transform: none;
  box-shadow: none;
}

.save-button {
  border-color: hsl(var(--border));
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  box-shadow: none;
}

.save-button:hover {
  background: hsl(var(--surface));
  border-color: hsl(var(--primary) / 0.35);
  box-shadow: none;
}

.save-button.is-dirty {
  border-color: hsl(var(--primary));
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
}

.save-button.is-dirty:hover {
  box-shadow: var(--shadow-glow);
}

button:focus-visible,
.inline-button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible,
a:focus-visible {
  outline: 2px solid hsl(var(--ring));
  outline-offset: 2px;
}

.ghost-button {
  border-color: hsl(var(--border));
  background: hsl(var(--background));
  color: hsl(var(--foreground));
}

.ghost-button:hover {
  background: hsl(var(--surface));
  border-color: hsl(var(--primary) / 0.4);
}

.model-details-panel,
.catalog-panel {
  border: 1px solid hsl(var(--border));
  background: hsl(var(--surface));
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
}

.model-details-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.9rem;
  margin-bottom: 0.8rem;
}

.detail-label {
  display: block;
  margin-bottom: 0.3rem;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: hsl(var(--muted-foreground));
}

.model-details-empty {
  color: hsl(var(--muted-foreground));
}

.catalog-head h3 {
  margin: 0 0 0.35rem;
}

.catalog-head p {
  margin: 0 0 0.85rem;
}

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

.catalog-table {
  width: 100%;
  border-collapse: collapse;
}

.catalog-table th,
.catalog-table td {
  padding: 0.7rem 0.65rem;
  border-top: 1px solid hsl(var(--border));
  text-align: left;
  vertical-align: top;
}

.catalog-table th {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: hsl(var(--muted-foreground));
}

.catalog-table td {
  font-size: 0.92rem;
}

.ai-preview-dialog {
  width: min(92rem, calc(100vw - 3rem));
  max-width: 92rem;
}

.ai-preview-shell {
  gap: 1rem;
}

.ai-preview-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.ai-preview-metric {
  border: 1px solid hsl(var(--border));
  background: hsl(var(--surface));
  border-radius: var(--radius);
  padding: 0.9rem 1rem;
}

.ai-preview-metric span {
  display: block;
  margin-bottom: 0.35rem;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: hsl(var(--muted-foreground));
}

.ai-preview-metric strong {
  display: block;
  word-break: break-word;
}

.ai-preview-sections {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.ai-preview-section {
  border: 1px solid hsl(var(--border));
  background: hsl(var(--surface));
  border-radius: var(--radius);
  padding: 0.95rem 1rem;
  min-width: 0;
}

.ai-preview-section h3 {
  margin: 0 0 0.7rem;
}

.ai-preview-section pre {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  overflow-wrap: anywhere;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.74rem;
  line-height: 1.45;
  max-height: 22rem;
  overflow: auto;
}

@media (max-width: 980px) {
  .ai-preview-summary-grid,
  .ai-preview-sections {
    grid-template-columns: 1fr;
  }
}

.danger-button {
  border-color: hsl(var(--destructive));
  background: hsl(var(--destructive));
  color: hsl(var(--destructive-foreground));
}

.wide {
  width: 100%;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid hsl(var(--border));
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  border-radius: var(--radius);
  padding: 0.82rem 0.9rem;
  font: inherit;
  font-size: 0.95rem;
  transition:
    border-color 0.16s ease,
    box-shadow 0.16s ease,
    background-color 0.16s ease;
}

input[type="checkbox"] {
  width: 1.8rem;
  height: 1.8rem;
  min-width: 1.8rem;
  flex: 0 0 1.8rem;
  margin: 0;
  padding: 0;
  accent-color: hsl(var(--primary));
}

input::placeholder,
textarea::placeholder {
  color: hsl(var(--muted-foreground));
}

textarea {
  resize: vertical;
  min-height: 120px;
}

label {
  display: grid;
  gap: 0.45rem;
  font-size: 0.79rem;
  font-weight: 600;
  color: hsl(var(--foreground));
}

label > input,
label > select,
label > textarea {
  margin-top: 0;
}

.page-shell {
  display: flex;
  min-height: 100vh;
  background: hsl(var(--background));
}

.sidebar {
  width: 16rem;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: hsl(var(--sidebar-background));
  border-right: 1px solid hsl(var(--border));
}

.sidebar-main {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.brand {
  display: flex;
  align-items: center;
  min-height: 4rem;
  padding: 1.15rem 1.5rem;
  border-bottom: 1px solid hsl(var(--border));
}

.brand strong,
.brand-mark {
  display: block;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: hsl(var(--primary));
}

.brand small {
  display: block;
  margin-top: 0.3rem;
  color: hsl(var(--muted-foreground));
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.nav-stack {
  display: grid;
  gap: 0.2rem;
  padding: 1.25rem 0.75rem 1rem;
}

.nav-label {
  padding: 0 0.75rem;
  margin: 0.5rem 0 0.35rem;
  color: hsl(var(--muted-foreground));
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.nav-stack a {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.8rem 0.75rem;
  border-radius: var(--radius);
  color: hsl(var(--sidebar-foreground));
  font-size: 0.92rem;
  transition: background-color 0.16s ease, color 0.16s ease;
}

.nav-stack a span {
  width: 1.45rem;
  flex-shrink: 0;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.68rem;
  color: hsl(var(--muted-foreground));
}

.nav-stack a:hover {
  background: hsl(var(--sidebar-accent));
  color: hsl(var(--foreground));
}

.nav-active {
  background: hsl(var(--elevated));
  color: hsl(var(--foreground)) !important;
  font-weight: 600;
}

.nav-active span {
  color: hsl(var(--primary)) !important;
}

.sidebar-footer {
  padding: 1rem;
  border-top: 1px solid hsl(var(--border));
}

.user-card {
  display: grid;
  gap: 0.25rem;
  padding: 0.9rem;
  margin-bottom: 0.8rem;
  border: 1px solid hsl(var(--border));
  background: hsl(var(--surface));
  border-radius: var(--radius);
}

.user-card strong {
  font-size: 0.94rem;
}

.user-card small {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: hsl(var(--muted-foreground));
}

.content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 1.4rem 2rem 2rem;
}

.flash-stack,
.list-stack,
.chart-stack,
.performance-stack,
.inning-stack,
.admin-user-stack,
.dashboard-stack,
.row-card-stack,
.stack-layout,
.stack-form {
  display: grid;
  gap: 1rem;
}

.flash {
  padding: 0.95rem 1rem;
  border: 1px solid hsl(var(--border));
  background: hsl(var(--surface));
  border-radius: var(--radius);
  font-size: 0.92rem;
}

.flash-success {
  border-color: hsl(var(--primary) / 0.45);
  box-shadow: var(--shadow-glow);
}

.flash-error {
  border-color: hsl(var(--destructive) / 0.55);
}

.flash-warning {
  border-color: hsl(var(--warning) / 0.55);
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
  margin-top: 1rem;
  color: hsl(var(--muted-foreground));
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.breadcrumbs strong,
.breadcrumbs a:hover {
  color: hsl(var(--foreground));
}

.page-header,
.section-head,
.team-card-head,
.header-actions,
.button-row,
.stat-row,
.list-item,
.auth-layout,
.three-column-grid,
.form-grid,
.two-column-grid,
.dashboard-grid,
.stats-grid,
.mini-stat-row,
.row-card,
.row-card-title,
.row-card-actions,
.dialog-head,
.dialog-actions,
.split-actions {
  display: flex;
  gap: 1rem;
}

.page-header,
.section-head,
.team-card-head,
.dialog-head,
.dialog-actions,
.row-card,
.row-card-title,
.row-card-actions,
.split-actions {
  justify-content: space-between;
  align-items: flex-start;
}

.page-header {
  padding-bottom: 1.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid hsl(var(--border));
}

.section-head {
  position: relative;
}

.page-header > div:first-child {
  min-width: 0;
}

.page-header p {
  max-width: 52rem;
}

.header-actions,
.button-row {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.action-toast-anchor {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.inline-save-toast {
  position: absolute;
  right: 0;
  top: calc(100% + 0.55rem);
  z-index: 10;
  padding: 0.45rem 0.7rem;
  border: 1px solid hsl(var(--primary) / 0.45);
  background: hsl(var(--surface));
  color: hsl(var(--foreground));
  border-radius: var(--radius);
  box-shadow: var(--shadow-glow);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
  pointer-events: none;
  transform-origin: top right;
  animation: inline-toast-fade 2.2s ease forwards;
}

.planning-pill {
  border-color: hsl(126 58% 48% / 0.55);
  background: hsl(126 70% 90%);
  color: hsl(132 64% 20%);
  box-shadow: 0 0 0 3px hsl(126 70% 52% / 0.12);
}

button.planning-pill {
  cursor: pointer;
}

.table-planning-pill {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  transform: translate(-50%, -50%);
  white-space: nowrap;
}

.table-planning-pill[hidden] {
  display: none;
}

.global-toast-stack {
  position: fixed;
  right: 1.35rem;
  bottom: 1.35rem;
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  pointer-events: none;
}

.global-toast {
  width: min(26rem, calc(100vw - 2.7rem));
  padding: 0.95rem 1rem;
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  background: hsl(var(--surface));
  box-shadow: 0 18px 38px hsl(220 30% 4% / 0.25);
  pointer-events: auto;
  transition:
    opacity 0.16s ease,
    transform 0.16s ease;
}

.global-toast strong {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.95rem;
}

.global-toast p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.4;
}

.global-toast-completed {
  border-color: hsl(var(--primary) / 0.38);
}

.global-toast-failed {
  border-color: hsl(var(--destructive) / 0.38);
}

.global-toast-planning {
  border-color: hsl(126 58% 48% / 0.45);
  background: hsl(126 70% 94%);
  color: hsl(132 54% 18%);
}

.global-toast-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.55rem;
  margin-top: 0.8rem;
}

.global-toast-link,
.global-toast-dismiss {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2rem;
  padding: 0.4rem 0.7rem;
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.global-toast-link {
  border-color: hsl(var(--primary));
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
}

.global-toast-dismiss {
  cursor: pointer;
}

.global-toast-leaving {
  opacity: 0;
  transform: translateY(0.35rem);
}

@keyframes inline-toast-fade {
  0% {
    opacity: 0;
    transform: translateY(-0.2rem) scale(0.98);
  }
  15%,
  70% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translateY(0.15rem) scale(0.98);
  }
}

.panel,
.metric-panel,
.team-card,
.list-item,
.performance-card,
.field-slot,
.hero-panel,
.assign-teams-panel,
.theme-panel,
.nested-panel {
  background: hsl(var(--surface));
  color: hsl(var(--surface-foreground));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}

.panel,
.hero-panel,
.metric-panel,
.auth-panel .panel,
.assign-teams-panel,
.theme-panel {
  padding: 1.3rem;
}

.subtle-panel {
  background: hsl(var(--elevated));
}

.eyebrow,
.panel-kicker {
  display: inline-block;
  margin-bottom: 0.6rem;
  color: hsl(var(--primary));
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Inter", system-ui, sans-serif;
  font-weight: 600;
  letter-spacing: -0.03em;
}

h1 {
  font-size: clamp(2rem, 4vw, 3rem);
}

h2 {
  font-size: 1.28rem;
}

h3 {
  font-size: 1rem;
}

p,
small,
.muted {
  color: hsl(var(--muted-foreground));
}

.muted {
  margin: 0;
}

.section-head {
  padding-bottom: 1rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid hsl(var(--border));
}

.compact-head {
  padding-bottom: 0.7rem;
  margin-bottom: 0.7rem;
}

.section-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: -0.2rem 0 1.4rem;
}

.section-tab {
  display: inline-flex;
  align-items: center;
  padding: 0.72rem 0.95rem;
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  background: hsl(var(--surface));
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: hsl(var(--muted-foreground));
}

.section-tab:hover {
  color: hsl(var(--foreground));
  border-color: hsl(var(--primary) / 0.35);
}

.section-tab-active {
  color: hsl(var(--foreground));
  border-color: hsl(var(--primary));
  box-shadow: var(--shadow-glow);
}

.pill,
.chip,
.action-bubble {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2rem;
  padding: 0.35rem 0.7rem;
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  background: hsl(var(--elevated));
  color: hsl(var(--foreground));
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.config-chip-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
}

.chip {
  color: hsl(var(--muted-foreground));
}

.add-button {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
}

.add-button-mark {
  display: grid;
  place-items: center;
  width: 1.2rem;
  height: 1.2rem;
  border: 1px solid currentColor;
  border-radius: var(--radius);
  font-size: 0.85rem;
  line-height: 1;
}

.full-width-panel {
  width: 100%;
}

.inline-form {
  display: flex;
  gap: 0.75rem;
}

.form-grid,
.two-column-grid,
.three-column-grid,
.dashboard-grid,
.stats-grid {
  flex-wrap: wrap;
}

.form-grid > *,
.two-column-grid > *,
.three-column-grid > * {
  flex: 1 1 16rem;
}

.score-input-row {
  display: flex;
  gap: 1rem;
  flex: 1 1 16rem;
}

.score-input-row > label {
  flex: 1 1 0;
  min-width: 0;
}

.stats-grid > * {
  flex: 1 1 18rem;
}

.metric-panel {
  min-height: 8.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.metric-panel strong {
  font-size: 2.2rem;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  letter-spacing: -0.04em;
}

.metric-panel-record strong {
  font-size: 1.85rem;
  line-height: 1.1;
}

.metric-line-nowrap {
  white-space: nowrap;
}

.metric-panel span {
  color: hsl(var(--muted-foreground));
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.metric-panel small {
  color: hsl(var(--muted-foreground));
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ops-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
  margin-bottom: 1rem;
}

.ops-summary-card {
  display: grid;
  gap: 0.25rem;
  padding: 0.95rem 1rem;
  border: 1px solid hsl(var(--border));
  background: hsl(var(--background));
  border-radius: var(--radius);
}

.ops-summary-card span {
  color: hsl(var(--muted-foreground));
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.ops-summary-card strong {
  font-size: 1.05rem;
  color: hsl(var(--foreground));
}

.row-card {
  width: 100%;
  padding: 1rem 1.1rem;
  border: 1px solid hsl(var(--border));
  background: hsl(var(--surface));
  border-radius: var(--radius);
  transition:
    border-color 0.16s ease,
    background-color 0.16s ease,
    transform 0.16s ease,
    box-shadow 0.16s ease;
}

.row-card-link {
  cursor: pointer;
}

.row-card:hover {
  border-color: hsl(var(--primary) / 0.45);
  box-shadow: var(--shadow-glow);
  transform: translateY(-1px);
}

.row-card-main {
  flex: 1;
  min-width: 0;
  display: grid;
  gap: 0.6rem;
}

.row-card-title {
  flex-wrap: wrap;
  justify-content: flex-start;
}

.row-card-title h3 {
  font-size: 1.05rem;
  margin-right: 0.4rem;
}

.row-card-actions {
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  min-width: max-content;
}

.row-card-upcoming {
  border-left: 2px solid hsl(var(--primary));
}

.row-card-past {
  border-left: 2px solid hsl(var(--destructive) / 0.55);
}

.mini-stat-row {
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  align-items: center;
}

.mini-stat-row span {
  color: hsl(var(--muted-foreground));
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mini-stat-row strong {
  color: hsl(var(--foreground));
}

.ops-table {
  display: grid;
}

.ops-table-head,
.ops-table-row {
  display: grid;
  gap: 1rem;
  align-items: center;
}

.ops-table-head {
  padding: 0 0 0.9rem;
  border-bottom: 1px solid hsl(var(--border));
  color: hsl(var(--muted-foreground));
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.ops-table-head-games,
.ops-table-row-games {
  grid-template-columns: minmax(7rem, 1.15fr) minmax(0, 2fr) minmax(0, 1.75fr) minmax(7rem, 0.9fr) minmax(8rem, 1fr);
}

.ops-table-head-teams,
.ops-table-row-teams {
  grid-template-columns: minmax(0, 2fr) minmax(9rem, 1.1fr) minmax(8rem, 1fr) minmax(8rem, 1fr) minmax(14rem, 1.45fr) minmax(7rem, 0.7fr);
}

.ops-table-head-players,
.ops-table-row-players {
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1.35fr) minmax(0, 1fr) minmax(0, 1.35fr) minmax(8rem, 0.85fr);
}

.ops-table-head-roster,
.ops-table-row-roster {
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1.35fr) minmax(8rem, 0.9fr);
}

.ops-table-head-roster-mini,
.ops-table-row-roster-mini,
.ops-table-head-lineup-roster,
.ops-table-row-lineup-roster {
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr) minmax(0, 1.45fr);
}

.ops-table-head-performance {
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.85fr) minmax(0, 1.3fr) minmax(0, 1.35fr) minmax(7rem, 0.7fr);
  align-items: end;
}

.ops-table-row-performance-actions {
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.85fr) minmax(0, 1.3fr) minmax(0, 1.35fr) minmax(7rem, 0.7fr);
  align-items: center;
  cursor: pointer;
}

.ops-table-head-stat-players,
.ops-table-row-stat-players {
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 0.9fr) minmax(0, 1.2fr) minmax(0, 1fr);
}

.ops-table-head-admin-resources,
.ops-table-row-admin-resources {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
}

.ops-table-head-admin-activity,
.ops-table-row-admin-activity {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.8fr) minmax(7rem, 0.8fr);
}

.ops-table-head-fielding {
  grid-template-columns: minmax(6rem, 0.8fr) minmax(0, 2fr);
  margin-bottom: 0.55rem;
}

.ops-table-row {
  padding: 1rem 0;
  border-bottom: 1px solid hsl(var(--border) / 0.65);
}

.ops-table-row:last-child {
  border-bottom: 0;
}

.ops-table-row:hover {
  background: hsl(var(--elevated) / 0.35);
}

.player-directory-row {
  width: 100%;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.player-directory-row-shell:focus-visible {
  outline: 2px solid hsl(var(--primary));
  outline-offset: -2px;
  background: hsl(var(--elevated) / 0.55);
}

.player-directory-row:focus-visible {
  outline: 2px solid hsl(var(--primary));
  outline-offset: -2px;
  background: hsl(var(--elevated) / 0.55);
}

.ops-cell {
  min-width: 0;
  display: grid;
  gap: 0.28rem;
}

.ops-cell strong {
  display: block;
  color: hsl(var(--foreground));
  font-size: 0.92rem;
  font-weight: 600;
}

.team-name-inline,
.page-title-with-logo,
.print-title-with-logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.team-logo {
  display: inline-block;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  object-fit: contain;
  object-position: center;
  overflow: hidden;
  flex: 0 0 auto;
  border: 1px solid hsl(var(--border));
  background: hsl(var(--surface));
}

.team-logo-sm {
  width: 1.65rem;
  height: 1.65rem;
}

.team-logo-list {
  width: 2.55rem;
  height: 2.55rem;
}

.team-logo-lg {
  width: 2.82rem;
  height: 2.82rem;
}

.team-logo-xl {
  width: 4.5rem;
  height: 4.5rem;
}

.team-logo-print {
  width: 2.1rem;
  height: 2.1rem;
  border-color: rgba(15, 23, 42, 0.14);
}

.page-title-with-logo {
  width: fit-content;
  max-width: 100%;
  min-width: 0;
  flex-wrap: nowrap;
}

.page-title-with-logo h1,
.print-title-with-logo h1 {
  min-width: 0;
}

.team-identity-cell {
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 0.8rem;
  align-items: center;
}

.team-identity-copy {
  min-width: 0;
}

.ops-cell span {
  color: hsl(var(--muted-foreground));
  font-size: 0.76rem;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.ops-date-cell strong,
.ops-date-cell span {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
}

.ops-date-cell strong {
  color: hsl(var(--foreground));
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ops-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 1.8rem;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.ops-status-active {
  background: hsl(var(--primary) / 0.12);
  color: hsl(var(--primary));
}

.ops-status-danger {
  background: hsl(var(--destructive) / 0.12);
  color: hsl(var(--destructive));
}

.align-right {
  justify-self: end;
  text-align: right;
}

.ops-action-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  justify-content: flex-end;
}

.ops-cell form {
  margin-top: 0.55rem;
}

.roster-select-row {
  cursor: pointer;
}

.roster-toggle-cell {
  justify-items: end;
  gap: 0.55rem;
}

.roster-toggle-cell input {
  width: auto;
  margin: 0;
  accent-color: hsl(var(--primary));
}

.ops-empty-state {
  padding: 1rem 0 0;
}

.player-directory-tools {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: flex-end;
}

.roster-inline-form {
  margin-bottom: 1rem;
}

.logo-upload-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1rem;
  align-items: center;
}

.logo-upload-row > label {
  flex: 1 1 18rem;
}

.logo-upload-row small {
  display: block;
  margin-top: 0.4rem;
  color: hsl(var(--muted-foreground));
  font-size: 0.78rem;
}

.logo-preview-card {
  display: grid;
  justify-items: center;
  gap: 0.55rem;
  min-width: 8rem;
  padding: 1rem;
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  background: hsl(var(--background));
}

.roster-action-cell {
  justify-items: end;
}

.roster-action-cell form {
  margin-top: 0;
}

.search-shell {
  width: min(24rem, 100%);
}

.search-shell input {
  font-family: "Inter", system-ui, sans-serif;
}

.action-bubble-stack {
  display: grid;
  gap: 0.55rem;
  justify-items: end;
}

.action-bubble {
  min-width: 9rem;
}

.action-bubble-danger {
  background: hsl(var(--destructive));
  border-color: hsl(var(--destructive));
  color: hsl(var(--destructive-foreground));
}

.list-item {
  align-items: center;
  padding: 0.95rem 1rem;
}

.list-item.compact {
  padding: 0.8rem 0.9rem;
}

.list-item strong {
  display: block;
}

.list-item small {
  display: block;
  margin-top: 0.2rem;
}

.settings-grid,
.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
  gap: 1rem;
}

.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.9rem;
  border: 1px solid hsl(var(--border));
  background: hsl(var(--background));
  border-radius: var(--radius);
  font-size: 0.88rem;
}

.checkbox input {
  margin-top: -0.1rem;
}

details.performance-card,
details.panel {
  overflow: hidden;
}

details > summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.15rem 1.2rem;
  cursor: pointer;
}

details > summary::-webkit-details-marker {
  display: none;
}

details[open] > summary {
  border-bottom: 1px solid hsl(var(--border));
}

.player-profile-form {
  gap: 1.15rem;
}

.player-profile-row {
  display: grid !important;
  gap: 0.9rem;
  width: 100%;
}

.player-profile-row-meta {
  grid-template-columns:
    minmax(0, 1.4fr)
    minmax(0, 0.45fr)
    minmax(0, 0.9fr)
    minmax(0, 0.42fr)
    minmax(0, 0.38fr)
    minmax(0, 0.38fr)
    minmax(0, 1fr)
    minmax(0, 1.15fr);
}

.player-profile-row-ratings {
  grid-template-columns: repeat(8, minmax(0, 1fr));
}

.player-profile-row-positions {
  grid-template-columns: repeat(9, minmax(0, 1fr));
}

.player-profile-row-notes {
  display: grid;
}

.coaching-notes-row textarea {
  min-height: 6rem;
}

.player-edit-section {
  display: grid;
  gap: 0.9rem;
  padding: 1.1rem 1.2rem;
  border: 1px solid hsl(var(--border));
  background: hsl(var(--background) / 0.82);
  border-radius: calc(var(--radius) - 0.15rem);
}

.player-dialog-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.assign-teams-panel,
.theme-panel {
  display: grid;
  gap: 1rem;
}

.theme-choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.theme-choice {
  display: flex;
  align-items: stretch;
  gap: 0.8rem;
  padding: 0.95rem 1rem;
  border: 1px solid hsl(var(--border));
  background: hsl(var(--background));
  border-radius: var(--radius);
  cursor: pointer;
}

.theme-choice input {
  width: auto;
  margin: 0.1rem 0 0;
  accent-color: hsl(var(--primary));
}

.theme-choice span {
  display: grid;
  gap: 0.3rem;
}

.theme-choice small {
  font-size: 0.78rem;
}

.split-actions {
  align-items: center;
}

.split-actions > * {
  flex: 1 1 0;
}

.lineup-list {
  display: grid;
  gap: 0.75rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.lineup-item {
  display: grid;
  grid-template-columns: 2.1rem minmax(0, 1.2fr) minmax(14rem, 1fr) minmax(14rem, 1.15fr);
  gap: 1rem;
  align-items: center;
  padding: 0.95rem 1rem;
  border: 1px solid hsl(var(--border));
  background: hsl(var(--background));
  border-radius: var(--radius);
  cursor: grab;
}

.lineup-item.dragging {
  opacity: 0.5;
}

.lineup-item-manual {
  background: hsl(120 46% 93%);
  border-color: hsl(120 34% 72%);
}

body[data-theme="dark"] .lineup-item-manual {
  background: hsl(138 24% 16%);
  border-color: hsl(138 28% 34%);
}

.slot-number {
  width: 2.1rem;
  height: 2.1rem;
  display: grid;
  place-items: center;
  border: 1px solid hsl(var(--border));
  background: hsl(var(--elevated));
  border-radius: var(--radius);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-weight: 700;
  color: hsl(var(--primary));
}

.lineup-player-block {
  min-width: 0;
}

.lineup-player-block strong {
  display: block;
}

.lineup-player-block small,
.lineup-ratings-block small {
  display: block;
  margin-top: 0.2rem;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lineup-ratings-block {
  min-width: 0;
}

.lineup-ratings-block strong {
  display: block;
  color: hsl(var(--foreground));
  font-size: 0.88rem;
  font-weight: 600;
}

.lineup-reason-block {
  min-width: 15rem;
}

.lineup-reason-label {
  display: block;
  margin-bottom: 0.25rem;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: hsl(var(--muted-foreground));
}

.lineup-item-note {
  color: hsl(var(--muted-foreground));
  font-size: 0.78rem;
  line-height: 1.45;
}

.compact-section-head {
  margin-top: 0.35rem;
  padding-top: 0.25rem;
}

.fielding-board {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.65rem;
}

.fielding-matrix-head {
  align-items: flex-start;
  flex-wrap: wrap;
}

.fielding-matrix-head .config-chip-row {
  justify-content: flex-end;
  margin-left: auto;
}

.fielding-matrix-table {
  table-layout: fixed;
  min-width: max(52rem, calc(5.5rem + (var(--inning-count, 5) * 6.75rem)));
}

.fielding-position-col {
  width: 5.5rem;
}

.fielding-inning-col {
  width: calc((100% - 5.5rem) / var(--inning-count, 5));
}

.fielding-matrix-table th,
.fielding-matrix-table td {
  vertical-align: top;
}

.fielding-matrix-table thead th {
  text-align: center;
}

.fielding-matrix-table thead th:first-child {
  text-align: left;
}

.fielding-matrix-position {
  width: 5.5rem;
  white-space: nowrap;
  vertical-align: middle !important;
}

.fielding-matrix-cell {
  padding: 0.7rem 0.5rem;
}

.fielding-chip {
  min-height: 2.45rem;
  width: 100%;
  cursor: pointer;
}

.fielding-inning-adjustments {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 0.35rem;
  flex: 1 0 100%;
  margin-top: 0.15rem;
}

.fielding-inning-adjustments form {
  margin: 0;
}

.fielding-inning-icon-button {
  width: 1.9rem;
  height: 1.9rem;
  min-width: 1.9rem;
  padding: 0;
  display: grid;
  place-items: center;
  border: 1px solid hsl(var(--border));
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  border-radius: calc(var(--radius) - 0.25rem);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0;
}

.fielding-inning-icon-button:hover {
  background: hsl(var(--surface));
  border-color: hsl(var(--primary) / 0.45);
}

.fielding-legend {
  border-color: hsl(var(--border));
}

.fielding-legend-relaxed {
  background: hsl(32 100% 93%);
  border-color: hsl(32 78% 70%);
  color: hsl(24 55% 26%);
}

.fielding-legend-violation {
  background: hsl(0 100% 95%);
  border-color: hsl(0 75% 78%);
  color: hsl(0 52% 30%);
}

.fielding-chip.dragging {
  opacity: 0.5;
}

.fielding-chip-manual:not(.fielding-chip-relaxed):not(.fielding-chip-violation) {
  background: hsl(120 46% 93%);
  border-color: hsl(120 34% 72%);
}

body[data-theme="dark"] .fielding-chip-manual:not(.fielding-chip-relaxed):not(.fielding-chip-violation) {
  background: hsl(138 24% 16%);
  border-color: hsl(138 28% 34%);
}

.fielding-sit-lane {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  min-height: 2.45rem;
  align-items: flex-start;
}

.fielding-sit-lane .bench-chip {
  flex: 0 0 100%;
}

.fielding-empty-note {
  color: hsl(var(--muted-foreground));
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.fielding-chip-trail {
  background: hsl(210 100% 88%) !important;
  border-color: hsl(210 68% 58%) !important;
  color: hsl(220 24% 14%) !important;
}

.field-slot {
  padding: 0.85rem 0.95rem;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(6rem, 0.8fr) minmax(0, 2fr);
  gap: 0.75rem;
  align-items: center;
}

.field-slot-label {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: hsl(var(--muted-foreground));
}

.player-chip,
.bench-chip {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 2.6rem;
  padding: 0.65rem 0.5rem;
  border: 1px solid hsl(var(--border));
  background: hsl(var(--background));
  border-radius: var(--radius);
  text-align: center;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.2;
  overflow-wrap: anywhere;
  cursor: grab;
}

.player-chip.fielding-chip-relaxed,
.bench-chip.fielding-chip-relaxed {
  background: hsl(32 100% 93%);
  border-color: hsl(32 78% 70%);
}

.player-chip.fielding-chip-manual.fielding-chip-relaxed,
.bench-chip.fielding-chip-manual.fielding-chip-relaxed,
.player-chip.fielding-chip-manual.fielding-chip-violation,
.bench-chip.fielding-chip-manual.fielding-chip-violation {
  box-shadow: inset 0 0 0 2px hsl(120 34% 62%);
}

.player-chip.fielding-chip-violation,
.bench-chip.fielding-chip-violation {
  background: hsl(0 100% 95%);
  border-color: hsl(0 75% 78%);
}

.rich-tooltip {
  position: absolute;
  z-index: 9999;
  max-width: min(28rem, calc(100vw - 2rem));
  border: 1px solid hsl(var(--border));
  background: hsl(var(--surface));
  color: hsl(var(--foreground));
  border-radius: var(--radius);
  padding: 0.85rem 0.95rem;
  box-shadow: 0 12px 30px hsl(220 20% 2% / 0.35);
  pointer-events: none;
}

.tooltip-section + .tooltip-section {
  margin-top: 0.75rem;
}

.tooltip-section strong {
  display: block;
  margin-bottom: 0.35rem;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: hsl(var(--muted-foreground));
}

.tooltip-section ul {
  margin: 0;
  padding-left: 1rem;
}

.tooltip-section li {
  margin: 0.18rem 0;
  line-height: 1.4;
  font-size: 0.84rem;
}

.regenerate-control-form {
  align-items: flex-end;
  gap: 0.45rem;
}

.compact-checkbox {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: hsl(var(--muted-foreground));
}

.compact-checkbox input {
  margin: 0;
}

.bench-row {
  display: grid;
  gap: 0.75rem;
  margin-top: 1rem;
}

.bench-lane {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  min-height: 3.15rem;
  padding: 0.85rem;
  border: 1px dashed hsl(var(--border));
  border-radius: var(--radius);
}

.usage-row,
.bar-row {
  display: grid;
  grid-template-columns: minmax(0, 10rem) 1fr auto;
  gap: 1rem;
  align-items: center;
}

.lineup-summary-stack {
  display: grid;
  gap: 1rem;
}

.lineup-summary-row {
  display: grid;
  grid-template-columns: minmax(0, 14rem) minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
  padding: 0.9rem 0;
  border-bottom: 1px solid hsl(var(--border) / 0.65);
}

.lineup-summary-row:last-child {
  border-bottom: 0;
}

.lineup-summary-player strong,
.lineup-slot-bar strong {
  display: block;
}

.lineup-summary-player span,
.lineup-slot-bar span {
  display: block;
  margin-top: 0.2rem;
  color: hsl(var(--muted-foreground));
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lineup-slot-bars {
  display: grid;
  gap: 0.6rem;
}

.lineup-slot-bar {
  display: grid;
  grid-template-columns: minmax(4.5rem, 0.7fr) minmax(0, 1fr) auto;
  gap: 0.8rem;
  align-items: center;
}

.lineup-slot-track {
  width: 100%;
  height: 0.75rem;
  overflow: hidden;
  border-radius: 999px;
  background: hsl(var(--elevated));
}

.lineup-slot-fill {
  height: 100%;
  min-width: 0.2rem;
  border-radius: 999px;
  background: linear-gradient(90deg, hsl(var(--primary) / 0.55), hsl(var(--primary)));
}

.usage-bars,
.bar-track {
  width: 100%;
  height: 0.8rem;
  position: relative;
  overflow: hidden;
  border-radius: 999px;
  background: hsl(var(--elevated));
}

.bar-fill,
.usage-played,
.usage-sits {
  height: 100%;
  border-radius: inherit;
}

.bar-fill,
.usage-played {
  background: linear-gradient(90deg, hsl(var(--primary) / 0.55), hsl(var(--primary)));
}

.usage-sits {
  background: linear-gradient(90deg, hsl(var(--destructive) / 0.55), hsl(var(--destructive)));
  margin-top: 0.25rem;
}

.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 42rem;
}

thead th {
  padding: 0.85rem 0.9rem;
  border-bottom: 1px solid hsl(var(--border));
  color: hsl(var(--muted-foreground));
  text-align: left;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

tbody td {
  padding: 0.95rem 0.9rem;
  border-bottom: 1px solid hsl(var(--border) / 0.65);
  font-size: 0.92rem;
}

.app-dialog {
  width: min(52rem, calc(100vw - 3rem));
  padding: 0;
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  background: hsl(var(--surface));
  color: hsl(var(--foreground));
}

.app-dialog > .stack-form {
  padding: 1.45rem;
}

.app-dialog > .stack-form > .dialog-actions {
  margin: 1.45rem -1.45rem -1.45rem;
}

.player-edit-dialog {
  width: min(78rem, calc(100vw - 3rem));
  max-height: calc(100vh - 3rem);
  overflow: auto;
}

.regenerate-dialog {
  width: min(34rem, calc(100vw - 3rem));
}

.dialog-busy .player-dialog-form {
  position: relative;
}

.dialog-busy-indicator {
  display: grid;
  justify-items: center;
  gap: 0.55rem;
  padding: 1rem 1rem 0;
  text-align: center;
}

.dialog-busy-indicator[hidden] {
  display: none !important;
}

.dialog-busy-spinner {
  width: 1.2rem;
  height: 1.2rem;
  border: 2px solid hsl(var(--border));
  border-top-color: hsl(var(--primary));
  border-radius: 999px;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.app-dialog::backdrop {
  background: rgb(0 0 0 / 0.62);
  backdrop-filter: blur(4px);
}

.dialog-head,
.dialog-actions {
  padding: 1.25rem 1.45rem;
}

.dialog-head {
  border-bottom: 1px solid hsl(var(--border));
}

.dialog-head p {
  margin: 0.45rem 0 0;
}

.dialog-actions {
  border-top: 1px solid hsl(var(--border));
}

.player-dialog-head-meta {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.player-dialog-form {
  padding: 1.45rem;
  gap: 1rem;
}

.player-dialog-actions {
  align-items: center;
  padding-top: 0.25rem;
}

.player-dialog-actions > .compact-delete-button,
.player-dialog-actions > form {
  flex: 0 0 auto;
}

.player-dialog-actions .dialog-actions {
  padding: 0;
  border-top: 0;
  flex: 0 0 auto;
}

.compact-delete-button {
  width: auto;
  padding: 0.62rem 0.9rem;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
}

.icon-close {
  width: 2.4rem;
  height: 2.4rem;
  padding: 0;
  border-color: hsl(var(--border));
  background: transparent;
  color: hsl(var(--foreground));
  font-size: 1.1rem;
  letter-spacing: normal;
}

.auth-layout {
  min-height: 100vh;
  align-items: stretch;
}

.hero-panel,
.auth-panel {
  flex: 1 1 0;
}

.hero-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3rem;
  border-right: 1px solid hsl(var(--border));
  background:
    radial-gradient(circle at top right, hsl(var(--primary) / 0.08), transparent 20rem),
    hsl(var(--background));
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.hero-grid article {
  padding: 1rem;
  border: 1px solid hsl(var(--border));
  background: hsl(var(--surface));
  border-radius: var(--radius);
}

.auth-hero-status {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
  margin-top: 1.4rem;
}

.auth-status-panel,
.auth-setup-panel {
  display: grid;
  gap: 1rem;
}

.auth-inline-actions {
  padding: 0;
  border: 0;
  justify-content: flex-start;
}

.auth-panel {
  padding: 3rem;
  display: grid;
  gap: 1rem;
  align-content: center;
  background: hsl(var(--background));
}

.single-card-layout {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 2rem;
  background: hsl(var(--background));
}

.single-card-layout .panel {
  width: min(34rem, 100%);
}

.auth-simple-shell {
  background:
    radial-gradient(circle at top, hsl(var(--primary) / 0.12), transparent 24rem),
    linear-gradient(180deg, hsl(var(--background)), hsl(var(--surface)));
}

.auth-simple-card {
  display: grid;
  gap: 1.35rem;
  width: min(32rem, 100%);
  padding: 2rem;
  border: 1px solid hsl(var(--border));
  background: hsl(var(--surface));
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
}

.auth-brand-lockup {
  display: grid;
  gap: 0.7rem;
  justify-items: center;
  text-align: center;
}

.auth-brand-lockup p {
  max-width: 26rem;
  margin: 0;
}

.auth-app-logo {
  display: grid;
  place-items: center;
  width: 5.5rem;
  height: 5.5rem;
  border-radius: 1.5rem;
  background: linear-gradient(180deg, hsl(var(--primary) / 0.18), hsl(var(--primary) / 0.08));
  border: 1px solid hsl(var(--primary) / 0.25);
  box-shadow: var(--shadow-glow);
}

.auth-app-logo svg {
  width: 4.1rem;
  height: 4.1rem;
}

.auth-form-stack {
  gap: 0.95rem;
}

.auth-support-links {
  display: grid;
  gap: 0.45rem;
  justify-items: center;
  text-align: center;
}

.auth-support-links p,
.auth-password-note {
  margin: 0;
}

.auth-support-links a {
  color: hsl(var(--primary));
  text-decoration: none;
}

.auth-support-links a:hover {
  text-decoration: underline;
}

.print-body {
  background: #fff;
  color: #111;
  font-family: "Inter", system-ui, sans-serif;
}

.print-sheet {
  width: 100%;
  padding: 2rem;
}

.print-sheet-ops {
  padding: 1.5rem;
}

.print-sheet-lineup {
  padding: 0.75rem;
}

.print-sheet h1 {
  font-size: 1.6rem;
  color: #111;
}

.print-sheet-lineup h1 {
  font-size: 1.2rem;
  line-height: 1.1;
}

.print-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  padding-bottom: 1rem;
  margin-bottom: 1rem;
  border-bottom: 2px solid #d8d8d8;
}

.print-sheet-lineup .print-header {
  padding-bottom: 0.55rem;
  margin-bottom: 0.55rem;
}

.print-kicker {
  display: inline-block;
  margin-bottom: 0.4rem;
  color: #65706f;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.print-header p {
  margin-top: 0.35rem;
  color: #555;
}

.print-sheet-lineup .print-header p {
  margin-top: 0.15rem;
  font-size: 0.82rem;
}

.print-badge {
  min-height: 2rem;
  padding: 0.35rem 0.7rem;
  border: 1px solid #d8d8d8;
  background: #f3f5f4;
  color: #111;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.print-sheet-lineup .print-badge {
  min-height: 1.7rem;
  padding: 0.2rem 0.45rem;
  font-size: 0.6rem;
}

.print-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
  margin-bottom: 1rem;
}

.print-sheet-lineup .print-summary-grid {
  gap: 0.45rem;
  margin-bottom: 0.55rem;
}

.print-summary-card {
  padding: 0.8rem 0.9rem;
  border: 1px solid #d8d8d8;
  background: #fafafa;
}

.print-sheet-lineup .print-summary-card {
  padding: 0.45rem 0.55rem;
}

.print-summary-card span {
  display: block;
  margin-bottom: 0.25rem;
  color: #666;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.print-summary-card strong {
  color: #111;
  font-size: 1rem;
}

.print-sheet-lineup .print-summary-card strong {
  font-size: 0.82rem;
}

.print-lineup {
  padding-left: 1.35rem;
}

.print-lineup li {
  margin-bottom: 0.65rem;
}

.print-table th,
.print-table td {
  border: 1px solid #d8d8d8;
}

.print-center-cell {
  text-align: center;
}

.print-lineup-table {
  display: grid;
}

.print-table-head,
.print-table-row {
  display: grid;
  gap: 1rem;
  align-items: center;
}

.print-table-head {
  padding: 0 0 0.8rem;
  border-bottom: 1px solid #d8d8d8;
  color: #666;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.print-sheet-lineup .print-table-head {
  padding: 0 0 0.35rem;
  font-size: 0.58rem;
}

.print-table-head-lineup,
.print-table-row-lineup {
  grid-template-columns: 3rem minmax(0, 1fr);
}

.print-table-row {
  padding: 0.9rem 0;
  border-bottom: 1px solid #ececec;
}

.print-sheet-lineup .print-table-row {
  padding: 0.32rem 0;
}

.print-sheet-lineup .print-table-row strong,
.print-sheet-lineup .print-table-row div {
  font-size: 0.82rem;
  line-height: 1.15;
}

.print-rank {
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  border: 1px solid #d8d8d8;
  background: #f3f5f4;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-weight: 700;
}

.print-sheet-lineup .print-rank {
  width: 1.45rem;
  height: 1.45rem;
  font-size: 0.72rem;
}

.diamond-sheet {
  padding: 0;
  break-after: page;
  page-break-after: always;
  break-inside: avoid;
  page-break-inside: avoid;
}

.diamond-card-sheet {
  padding: 0.55rem 0.75rem 0.65rem;
}

.diamond-card-header {
  margin-bottom: 0.45rem;
}

.diamond-graphic-wrap {
  width: 100%;
}

.diamond-print-svg {
  width: 100%;
  height: auto;
  max-height: 9.65in;
  display: block;
}

.diamond-sheet:last-of-type {
  break-after: auto;
  page-break-after: auto;
}

.print-sheet-fielding-by-player {
  padding: 0.45in 0.45in 0.38in;
}

.print-sheet-fielding-by-player .print-header {
  margin-bottom: 0.45rem;
}

.print-sheet-fielding-by-player .print-header h1 {
  font-size: 1.22rem;
}

.print-sheet-fielding-by-player .print-header p {
  margin-top: 0.18rem;
  font-size: 0.78rem;
}

.print-sheet-fielding-by-player .print-badge {
  min-height: 1.7rem;
  padding: 0.2rem 0.45rem;
  font-size: 0.58rem;
}

.print-sheet-fielding-by-player .print-summary-grid {
  gap: 0.45rem;
  margin-bottom: 0.55rem;
}

.print-sheet-fielding-by-player .print-summary-card {
  padding: 0.45rem 0.55rem;
}

.print-sheet-fielding-by-player .print-summary-card span {
  font-size: 0.58rem;
}

.print-sheet-fielding-by-player .print-summary-card strong {
  font-size: 0.78rem;
}

.print-sheet-fielding-by-player .print-table {
  font-size: 0.72rem;
  table-layout: fixed;
  width: 100%;
}

.print-sheet-fielding-by-player .print-table th,
.print-sheet-fielding-by-player .print-table td {
  padding: 0.3rem 0.28rem;
}

.print-sheet-fielding-by-player .print-table thead th {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.56rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.print-sheet-fielding-by-player .print-table tbody td:first-child,
.print-sheet-fielding-by-player .print-table thead th:first-child {
  width: 6%;
}

.print-sheet-fielding-by-player .print-table tbody td:nth-child(2),
.print-sheet-fielding-by-player .print-table thead th:nth-child(2) {
  width: 18%;
}

@media (max-width: 1100px) {
  .content {
    padding: 1.15rem 1.35rem 1.5rem;
  }

  .page-header {
    gap: 0.9rem;
  }

  .page-header p {
    max-width: 100%;
  }

  .header-actions {
    gap: 0.65rem;
  }

  .row-card-actions {
    min-width: 0;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: center;
  }

  .action-bubble-stack {
    display: flex;
    flex-wrap: wrap;
    justify-items: unset;
  }

  .lineup-item {
    grid-template-columns: 2.1rem minmax(0, 1fr) minmax(0, 1fr);
    align-items: start;
  }

  .lineup-reason-block {
    grid-column: 2 / -1;
    min-width: 0;
  }

  .fielding-matrix-table {
    min-width: 50rem;
  }

  .player-profile-row-meta {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .player-profile-row-ratings {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .player-profile-row-positions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 920px) {
  .page-shell {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
    position: sticky;
    top: 0;
    z-index: 25;
    border-right: 0;
    border-bottom: 1px solid hsl(var(--border));
    background: hsl(var(--sidebar-background) / 0.98);
    backdrop-filter: blur(12px);
  }

  .sidebar-main {
    min-width: 0;
  }

  .brand {
    min-height: auto;
    padding: 0.95rem 1rem 0.65rem;
    border-bottom: 0;
  }

  .nav-stack {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.55rem;
    overflow-x: auto;
    padding: 0.7rem 1rem 0.95rem;
    scrollbar-width: none;
  }

  .nav-stack::-webkit-scrollbar,
  .section-tabs::-webkit-scrollbar {
    display: none;
  }

  .nav-label {
    flex: 0 0 auto;
    align-self: center;
    padding: 0;
    margin: 0 0.1rem 0 0;
    white-space: nowrap;
  }

  .nav-stack a {
    flex: 0 0 auto;
    min-height: 2.6rem;
    padding: 0.72rem 0.85rem;
    border: 1px solid hsl(var(--border));
    background: hsl(var(--sidebar-accent));
    white-space: nowrap;
  }

  .sidebar-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.8rem 1rem;
  }

  .sidebar-footer form {
    margin: 0;
    flex: 0 0 auto;
  }

  .user-card {
    margin-bottom: 0;
    min-width: 0;
    flex: 1 1 auto;
  }

  .content {
    padding: 1rem 1rem 1.5rem;
  }

  .page-header,
  .row-card,
  .dialog-head,
  .dialog-actions,
  .split-actions {
    flex-direction: column;
  }

  .page-header {
    gap: 0.85rem;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
  }

  .page-title-with-logo {
    align-items: flex-start;
  }

  .page-title-with-logo h1 {
    line-height: 1.05;
  }

  .header-actions {
    width: 100%;
    justify-content: flex-start;
    gap: 0.65rem;
  }

  .section-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 0.3rem;
    margin-bottom: 1rem;
  }

  .section-tab {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .row-card-actions,
  .action-bubble-stack,
  .player-dialog-head-meta {
    align-items: flex-start;
    justify-items: start;
  }

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

  .ops-table-head {
    display: none;
  }

  .ops-table-row-games,
  .ops-table-row-teams,
  .ops-table-row-players,
  .ops-table-row-roster,
  .ops-table-row-roster-mini,
  .ops-table-row-lineup-roster,
  .ops-table-row-performance,
  .ops-table-row-stat-players,
  .ops-table-head-fielding,
  .field-slot {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ops-table-row-performance-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ops-table-row,
  .ops-table-row-performance-actions {
    gap: 0.75rem 1rem;
    align-items: start;
    padding: 0.9rem 0;
  }

  .align-right {
    justify-self: start;
    text-align: left;
  }

  .ops-action-stack {
    justify-content: flex-start;
  }

  .roster-toggle-cell {
    justify-items: start;
  }

  .roster-action-cell,
  .ops-action-stack {
    justify-items: start;
    justify-content: flex-start;
  }

  .table-wrap {
    margin-inline: -1rem;
    padding-inline: 1rem;
  }

  .fielding-matrix-table {
    min-width: max(44rem, calc(5.25rem + (var(--inning-count, 5) * 6rem)));
  }

  .fielding-matrix-head .config-chip-row {
    flex: 1 0 100%;
    justify-content: flex-start;
    margin-left: 0;
  }

  .fielding-matrix-head .fielding-inning-adjustments {
    justify-content: flex-start;
  }

  .table-planning-pill {
    position: static;
    transform: none;
    order: 1;
    margin-inline: auto;
  }

  .fielding-matrix-table thead th:first-child,
  .fielding-matrix-table tbody th.fielding-matrix-position {
    position: sticky;
    left: 0;
    z-index: 1;
    background: hsl(var(--surface));
  }

  .app-dialog,
  .player-edit-dialog,
  .ai-preview-dialog,
  .regenerate-dialog {
    width: min(calc(100vw - 1.5rem), 100%);
    max-width: calc(100vw - 1.5rem);
    max-height: calc(100vh - 1.5rem);
    overflow: auto;
  }

  .dialog-head,
  .dialog-actions {
    position: sticky;
    background: hsl(var(--surface));
    z-index: 2;
  }

  .dialog-head {
    top: 0;
  }

  .dialog-actions {
    bottom: 0;
  }

  .player-dialog-form {
    padding: 1rem;
  }

  .app-dialog > .stack-form {
    padding: 1.2rem;
  }

  .app-dialog > .stack-form > .dialog-actions {
    margin: 1.2rem -1.2rem -1.2rem;
  }

  .hero-grid,
  .theme-choice-grid {
    grid-template-columns: 1fr;
  }

  .global-toast-stack {
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
  }

  .global-toast {
    width: 100%;
  }
}

@media (max-width: 680px) {
  .sidebar {
    position: sticky;
  }

  .brand {
    padding: 0.8rem 0.75rem 0.55rem;
  }

  .brand small,
  .user-card small {
    font-size: 0.62rem;
  }

  .nav-stack {
    padding: 0.55rem 0.75rem 0.8rem;
    gap: 0.45rem;
  }

  .nav-stack a {
    padding: 0.68rem 0.8rem;
    font-size: 0.84rem;
  }

  .nav-stack a span {
    display: none;
  }

  .sidebar-footer {
    flex-direction: column;
    align-items: stretch;
    padding: 0.75rem;
  }

  .hero-panel,
  .auth-panel {
    padding: 1.35rem;
  }

  h1 {
    font-size: clamp(1.8rem, 8vw, 2.35rem);
  }

  .page-title-with-logo {
    gap: 0.55rem;
  }

  .team-logo-lg {
    width: 2.35rem;
    height: 2.35rem;
  }

  .breadcrumbs {
    gap: 0.4rem;
    font-size: 0.68rem;
  }

  .header-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
  }

  .header-actions > *,
  .header-actions .action-toast-anchor,
  .header-actions .action-toast-anchor > button,
  .header-actions .inline-button {
    width: 100%;
  }

  .header-actions .pill {
    justify-content: center;
  }

  .player-profile-row-meta,
  .player-profile-row-ratings,
  .player-profile-row-positions,
  .player-dialog-section-head,
  .settings-grid,
  .checkbox-grid,
  .fielding-board,
  .ops-summary-grid {
    grid-template-columns: 1fr;
  }

  .row-card,
  .panel,
  .metric-panel,
  .hero-panel,
  .auth-simple-card {
    padding-inline: 0.9rem;
  }

  .ops-table-row-games,
  .ops-table-row-teams,
  .ops-table-row-players,
  .ops-table-row-roster,
  .ops-table-row-roster-mini,
  .ops-table-row-lineup-roster,
  .ops-table-row-performance,
  .ops-table-row-performance-actions,
  .ops-table-row-stat-players,
  .field-slot,
  .lineup-item {
    grid-template-columns: 1fr;
  }

  .player-directory-tools,
  .logo-upload-row,
  .row-card-actions,
  .action-bubble-stack {
    width: 100%;
  }

  .search-shell {
    width: 100%;
  }

  .action-bubble,
  .ops-action-stack > *,
  .row-card-actions > *,
  .player-directory-tools > * {
    width: 100%;
  }

  .lineup-item {
    gap: 0.75rem;
    padding: 0.85rem;
  }

  .lineup-reason-block {
    grid-column: auto;
    min-width: 0;
  }

  .inline-form,
  .usage-row,
  .bar-row,
  .ops-action-stack {
    flex-direction: column;
    align-items: flex-start;
  }

  .fielding-matrix-table {
    min-width: max(39rem, calc(5rem + (var(--inning-count, 5) * 5.6rem)));
  }

  .fielding-matrix-position {
    width: 5.8rem;
  }

  .fielding-matrix-cell {
    padding: 0.65rem 0.45rem;
  }

  .player-chip,
  .bench-chip,
  .fielding-chip {
    min-height: 2.25rem;
    padding: 0.55rem 0.45rem;
    font-size: 0.82rem;
  }

  .rich-tooltip {
    max-width: min(20rem, calc(100vw - 1rem));
    padding: 0.75rem 0.8rem;
  }

  .dialog-head,
  .dialog-actions,
  .player-dialog-form {
    padding-inline: 1.1rem;
  }

  .app-dialog > .stack-form {
    padding-inline: 1.1rem;
  }

  .app-dialog > .stack-form > .dialog-actions {
    margin-inline: -1.1rem;
  }

  .dialog-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .player-dialog-actions {
    gap: 0.65rem;
  }

  .global-toast-actions {
    flex-direction: column;
  }

  .global-toast-link,
  .global-toast-dismiss {
    width: 100%;
  }

  table {
    min-width: 32rem;
  }
}

@media (max-width: 520px) {
  .content {
    padding: 0.85rem 0.75rem 1.25rem;
  }

  .table-wrap {
    margin-inline: -0.75rem;
    padding-inline: 0.75rem;
  }

  .page-header {
    padding-bottom: 0.85rem;
    margin-bottom: 0.9rem;
  }

  .header-actions {
    grid-template-columns: 1fr;
  }

  .team-logo-list {
    width: 2.15rem;
    height: 2.15rem;
  }

  .ops-cell strong {
    font-size: 0.88rem;
  }

  .ops-cell span,
  .mini-stat-row span {
    font-size: 0.66rem;
  }

  .app-dialog,
  .player-edit-dialog,
  .ai-preview-dialog,
  .regenerate-dialog {
    width: calc(100vw - 0.5rem);
    max-width: calc(100vw - 0.5rem);
    max-height: calc(100vh - 0.5rem);
  }
}

@media print {
  @page {
    size: auto;
    margin: 0.3in;
  }

  .page-shell,
  .sidebar,
  .flash-stack,
  .header-actions,
  .section-tabs,
  button,
  .inline-button {
    display: none !important;
  }

  .content {
    padding: 0;
  }
}
