/* src/styles.css */
@tailwind base;
@tailwind components;
@tailwind utilities;
:root {
  color: #17212b;
  background: #f4f6f7;
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-width: 320px;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a.secondary {
  cursor: pointer;
}
.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 280px 1fr;
}
.sidebar {
  background: #17212b;
  color: #f8fafc;
  padding: 20px 14px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 8px 10px;
}
.brand img {
  width: 54px;
  height: 38px;
  object-fit: contain;
  background: #fff;
  border-radius: 6px;
  padding: 3px;
}
.brand strong {
  display: block;
  font-size: 18px;
}
.brand span {
  display: block;
  font-size: 12px;
  color: #b6c2cc;
}
.brand.large {
  color: #17212b;
  padding: 0;
  margin-bottom: 14px;
}
.brand.large img {
  width: 132px;
  height: 92px;
  border: 1px solid #e5eaee;
  padding: 6px;
}
.brand.large span {
  color: #66727d;
}
.sidebar nav {
  display: grid;
  gap: 3px;
}
.sidebar button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  border: 0;
  color: #d7dee5;
  background: transparent;
  padding: 10px;
  border-radius: 6px;
  text-align: left;
}
.sidebar button.active,
.sidebar button:hover {
  background: #263542;
  color: white;
}
main {
  min-width: 0;
  padding: 22px;
}
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}
.topbar h1 {
  margin: 2px 0 0;
  font-size: 28px;
  letter-spacing: 0;
}
.eyebrow {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  color: #50616f;
  font-size: 13px;
}
.context-line {
  margin: 4px 0 0;
  color: #66727d;
  font-size: 13px;
}
.userbox {
  display: flex;
  align-items: center;
  gap: 10px;
  background: white;
  border: 1px solid #d9e0e6;
  border-radius: 8px;
  padding: 8px 10px;
}
.icon-button {
  border: 1px solid #d7dee5;
  background: white;
  border-radius: 6px;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.brand-button {
  border: 0;
  background: transparent;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #17212b;
  padding: 0;
}
.brand-button img {
  width: 48px;
  height: 36px;
  object-fit: contain;
  border: 1px solid #e5eaee;
  border-radius: 6px;
  padding: 4px;
  background: #fff;
}
.brand-button strong {
  font-size: 18px;
}
.stack {
  display: grid;
  gap: 16px;
}
.grid {
  min-width: 0;
}
.public-shell,
.platform-shell {
  min-height: 100vh;
  background: #f4f6f7;
}
.public-nav,
.platform-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 28px;
  background: white;
  border-bottom: 1px solid #d9e0e6;
}
.public-nav > div,
.platform-topbar nav {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.public-main,
.platform-main {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0;
}
.landing-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.7fr);
  gap: 22px;
  align-items: stretch;
  margin: 22px 0;
}
.landing-hero h1 {
  margin: 10px 0;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.02;
  letter-spacing: 0;
  max-width: 820px;
}
.landing-hero p {
  color: #50616f;
  font-size: 18px;
  line-height: 1.45;
  max-width: 760px;
}
.landing-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 20px;
}
.landing-card,
.info-card,
.app-module-card {
  background: white;
  border: 1px solid #d9e0e6;
  border-radius: 8px;
  padding: 18px;
}
.landing-card {
  display: grid;
  align-content: start;
  gap: 14px;
}
.landing-card img {
  width: 160px;
  height: 118px;
  object-fit: contain;
  justify-self: center;
}
.public-section {
  display: grid;
  gap: 14px;
  margin: 24px 0;
  scroll-margin-top: 18px;
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 18px;
}
.section-head h2 {
  margin: 4px 0 0;
  font-size: 28px;
}
.section-head p {
  margin: 0;
  max-width: 520px;
  color: #50616f;
  line-height: 1.45;
}
.platform-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
}
.owner-banner {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  border: 1px solid #b8d8e0;
  background: #eef8fb;
  color: #203f49;
  border-radius: 8px;
  padding: 12px 14px;
  margin-bottom: 12px;
}
.owner-banner span {
  color: #40515c;
}
.onboarding-guide {
  display: grid;
  grid-template-columns: 1.2fr 1.4fr auto;
  align-items: center;
  gap: 16px;
  border: 1px solid #d6e1e6;
  background: #fff;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 12px;
}
.onboarding-guide h2 {
  margin: 0 0 6px;
  font-size: 20px;
}
.onboarding-guide p {
  margin: 0;
  color: #40515c;
  line-height: 1.4;
}
.onboarding-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.onboarding-step {
  min-height: 82px;
  border: 1px solid #d8e0e5;
  border-radius: 8px;
  padding: 10px;
  background: #f7fafb;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.onboarding-step span {
  width: fit-content;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  color: #49606c;
  background: #e8eef2;
  border-radius: 999px;
  padding: 3px 7px;
}
.onboarding-step.done {
  border-color: #b9dac5;
  background: #f2fbf5;
}
.onboarding-step.done span {
  color: #1f6b3b;
  background: #dff3e5;
}
.onboarding-step.current {
  border-color: #b8d8e0;
  background: #eef8fb;
}
.onboarding-step.current span {
  color: #1e5965;
  background: #d9f0f5;
}
.onboarding-step small {
  color: #5d6d78;
}
.onboarding-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 190px;
}
.billing-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.42fr);
  gap: 16px;
  align-items: start;
  border: 1px solid #d6e1e6;
  background: #fff;
  border-radius: 8px;
  padding: 18px;
  margin-bottom: 12px;
}
.billing-hero h2 {
  margin: 4px 0 8px;
  font-size: 24px;
}
.billing-hero p {
  margin: 0;
  color: #40515c;
  line-height: 1.45;
}
.empty-actions,
.inline-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 14px;
}
.inline-actions {
  justify-content: flex-end;
  min-width: 0;
}
.info-card h2,
.app-module-card h2 {
  margin: 10px 0 8px;
  font-size: 22px;
}
.info-card p,
.app-module-card p {
  margin: 0 0 12px;
  color: #5e6c78;
  line-height: 1.45;
}
.app-module-card {
  display: grid;
  gap: 8px;
  align-content: start;
  min-height: 220px;
}
.app-module-card.disabled {
  opacity: 0.72;
  background: #f8fafb;
}
.app-module-card button {
  margin-top: auto;
}
.shopflow-module-card {
  border-color: #d7bd79;
  background: #fffdf7;
}
.app-module-logo {
  width: 92px;
  height: 68px;
  object-fit: contain;
  border: 1px solid #eadfbd;
  border-radius: 8px;
  padding: 5px;
  background: #fbf6ea;
}
.shopflow-platform-frame {
  min-height: 100vh;
  background: #f8f3ea;
  position: relative;
}
.shopflow-app-frame {
  display: block;
  width: 100%;
  min-height: 100vh;
  border: 0;
  background: #f8f3ea;
}
.shopflow-platform-actions {
  position: fixed;
  right: 14px;
  top: 14px;
  z-index: 30;
  display: flex;
  gap: 8px;
}
.shopflow-platform-actions .secondary {
  border-color: rgba(92, 8, 34, 0.28);
  color: #5c0822;
  background: rgba(255, 252, 246, 0.94);
  box-shadow: 0 10px 24px rgba(92, 8, 34, 0.08);
}
.status-page {
  min-height: 56vh;
  display: grid;
  place-items: start;
  align-content: center;
  gap: 12px;
  max-width: 620px;
}
.status-page h1 {
  margin: 0;
  font-size: clamp(32px, 5vw, 48px);
}
.status-page p {
  margin: 0;
  color: #5e6c78;
  font-size: 17px;
  line-height: 1.45;
}
.overview-shell {
  min-height: 100vh;
  padding: 28px;
  background: #f4f6f7;
  display: grid;
  align-content: start;
  gap: 18px;
}
.overview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: white;
  border: 1px solid #d9e0e6;
  border-radius: 8px;
  padding: 16px;
}
.admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
}
.admin-card {
  display: grid;
  gap: 10px;
  text-align: left;
  background: white;
  border: 1px solid #d9e0e6;
  border-radius: 8px;
  padding: 16px;
  color: #17212b;
  min-height: 170px;
}
.admin-card:hover {
  border-color: #2f5965;
  box-shadow: 0 12px 28px rgba(23, 33, 43, 0.08);
}
.admin-card strong {
  font-size: 20px;
}
.admin-card small {
  color: #66727d;
  line-height: 1.4;
}
.admin-card-logo {
  width: 58px;
  height: 42px;
  object-fit: contain;
  background: #fff;
  border: 1px solid #e5eaee;
  border-radius: 6px;
  padding: 4px;
}
.badge {
  width: fit-content;
  border: 1px solid #cfd8df;
  border-radius: 999px;
  padding: 3px 8px;
  color: #2f5965;
  background: #f8fafb;
  font-size: 12px;
  font-weight: 700;
}
.tenant-hero {
  display: grid;
  grid-template-columns: 84px 1fr auto auto;
  gap: 16px;
  align-items: center;
  background: white;
  border: 1px solid #d9e0e6;
  border-radius: 8px;
  padding: 14px 16px;
  margin-bottom: 16px;
}
.tenant-hero img {
  width: 72px;
  height: 54px;
  object-fit: contain;
  border: 1px solid #e5eaee;
  border-radius: 6px;
  padding: 5px;
  background: white;
}
.tenant-hero h2 {
  margin: 2px 0 4px;
  font-size: 22px;
}
.tenant-hero p {
  margin: 0;
  color: #66727d;
}
.tenant-facts {
  min-width: 110px;
  border-left: 1px solid #edf1f4;
  padding-left: 14px;
}
.tenant-facts span {
  display: block;
  color: #66727d;
  font-size: 12px;
}
.tenant-facts strong {
  font-size: 20px;
}
.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(160px, 1fr));
  gap: 12px;
}
.account-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
}
.three-col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(260px, 1fr));
  gap: 12px;
}
.account-summary {
  display: grid;
  gap: 12px;
}
.metric,
.panel,
.table-wrap,
.toolbar {
  background: white;
  border: 1px solid #d9e0e6;
  border-radius: 8px;
}
.metric {
  padding: 16px;
  min-height: 94px;
}
.metric span {
  display: block;
  color: #5e6c78;
  font-size: 13px;
}
.metric strong {
  display: block;
  margin-top: 8px;
  font-size: 24px;
}
.panel {
  padding: 16px;
  min-width: 0;
}
.panel h2,
.toolbar h2 {
  margin: 0;
  font-size: 18px;
}
.minirows {
  display: grid;
  gap: 9px;
  margin-top: 10px;
}
.minirows div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid #edf1f4;
  padding-bottom: 8px;
}
.minirows span {
  color: #5e6c78;
}
.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
}
.tools {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.search {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px solid #cfd8df;
  border-radius: 6px;
  padding: 7px 9px;
  background: #fff;
  min-width: 240px;
}
.search input {
  border: 0;
  outline: none;
  width: 100%;
}
.primary,
.secondary,
.small {
  border: 1px solid #2f5965;
  border-radius: 6px;
  min-height: 34px;
  padding: 7px 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-decoration: none;
}
.primary {
  color: white;
  background: #2f5965;
}
.secondary,
.small {
  background: white;
  color: #2f5965;
}
.small {
  min-height: 28px;
  padding: 4px 8px;
  font-size: 13px;
}
.danger {
  border-color: #a94442;
  color: #a94442;
}
.table-wrap {
  overflow-x: auto;
  max-width: 100%;
}
table {
  width: 100%;
  min-width: 0;
  border-collapse: collapse;
  font-size: 14px;
}
th {
  text-align: left;
  color: #596b7a;
  background: #f8fafb;
  font-weight: 650;
  white-space: nowrap;
}
th,
td {
  padding: 10px 12px;
  border-bottom: 1px solid #edf1f4;
  vertical-align: top;
}
td {
  max-width: 320px;
  overflow-wrap: anywhere;
}
th.num,
td.num {
  text-align: right;
}
.tabular {
  font-variant-numeric: tabular-nums;
}
.row-actions {
  white-space: nowrap;
  text-align: right;
}
.empty {
  text-align: center;
  color: #66727d;
  padding: 28px;
}
.traffic {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 99px;
}
.traffic.green {
  background: #2f8f5b;
}
.traffic.yellow {
  background: #d8a21b;
}
.traffic.red {
  background: #bf3b35;
}
.traffic.grey {
  background: #8d99a3;
}
.login-page,
.center {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 20px;
  background:
    linear-gradient(
      140deg,
      #eef3f4,
      #f9faf7);
}
.login-card {
  width: min(420px, 100%);
  background: white;
  border: 1px solid #d8e0e5;
  border-radius: 8px;
  padding: 22px;
  display: grid;
  gap: 12px;
  box-shadow: 0 18px 40px rgba(23, 33, 43, 0.08);
}
label {
  display: grid;
  gap: 6px;
  color: #465561;
  font-size: 13px;
  font-weight: 650;
}
input,
select,
textarea {
  border: 1px solid #cfd8df;
  border-radius: 6px;
  padding: 8px 9px;
  background: white;
  color: #17212b;
  min-width: 0;
}
textarea {
  min-height: 82px;
  resize: vertical;
}
.demo-logins {
  display: flex;
  gap: 8px;
}
.demo-logins button {
  flex: 1;
  border: 1px solid #cfd8df;
  background: #f8fafb;
  border-radius: 6px;
  padding: 7px;
}
.error {
  color: #a94442;
  background: #fff3f3;
  border: 1px solid #f0c6c5;
  padding: 8px;
  border-radius: 6px;
  margin: 0;
}
.success {
  color: #246b45;
  background: #eef8f2;
  border: 1px solid #b8dfc7;
  padding: 8px;
  border-radius: 6px;
  margin: 0;
}
.link-button {
  border: 0;
  background: transparent;
  color: #2f6875;
  padding: 4px 0;
  text-align: left;
  width: fit-content;
}
.empty-state {
  border: 1px solid #d8e0e5;
  background: white;
  border-radius: 8px;
  padding: 22px;
  color: #40515c;
}
.empty-state h2 {
  margin-top: 0;
  color: #17212b;
}
.request-grid,
.access-list {
  display: grid;
  gap: 10px;
}
.request-card,
.access-row {
  border: 1px solid #d9e0e6;
  background: #f8fafb;
  border-radius: 8px;
  padding: 11px;
  color: #17212b;
}
.request-card {
  display: grid;
  gap: 4px;
  text-align: left;
}
.request-card.active {
  border-color: #2f5965;
  background: #eef6f7;
}
.request-card span,
.access-row span {
  color: #66727d;
  font-size: 13px;
}
.access-management h3 {
  margin: 0 0 10px;
  font-size: 15px;
}
.access-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(120px, auto) auto auto;
  gap: 8px;
  align-items: center;
}
.access-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}
.compact-access-row {
  grid-template-columns: minmax(0, 1fr) auto;
}
.access-row div {
  display: grid;
  gap: 3px;
}
.access-row p {
  margin: 3px 0 0;
  color: #40515c;
}
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(23, 33, 43, 0.38);
  display: grid;
  place-items: center;
  padding: 18px;
  z-index: 20;
}
.modal {
  width: min(980px, 100%);
  max-height: 92vh;
  overflow: auto;
  background: white;
  border-radius: 8px;
  border: 1px solid #ccd7de;
  padding: 16px;
  display: grid;
  gap: 14px;
}
.wide-modal {
  width: min(1180px, 100%);
}
.modal-head,
.modal-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.modal-head h2 {
  margin: 0;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  min-width: 0;
}
.wide {
  grid-column: 1 / -1;
}
.muted {
  color: #66727d;
}
.upload-row {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.upload-row input {
  flex: 1;
  min-width: 260px;
}
.toolbar-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.doc-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(240px, 1fr));
  gap: 12px;
  margin-top: 10px;
}
.doc-preview {
  border: 1px solid #d9e0e6;
  border-radius: 8px;
  padding: 10px;
  min-height: 120px;
  display: grid;
  gap: 8px;
  color: #17212b;
  text-decoration: none;
  background: #f8fafb;
}
.doc-preview strong {
  font-size: 14px;
}
.doc-preview img {
  width: 100%;
  max-height: 260px;
  object-fit: contain;
  background: white;
  border-radius: 6px;
}
.doc-preview object {
  width: 100%;
  height: 360px;
  background: white;
  border: 1px solid #edf1f4;
  border-radius: 6px;
}
.doc-preview.wide {
  grid-column: 1 / -1;
}
.logo-settings {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 16px;
  align-items: center;
}
.logo-settings img {
  width: 140px;
  height: 100px;
  object-fit: contain;
  border: 1px solid #d9e0e6;
  border-radius: 8px;
  padding: 8px;
  background: #fff;
}
.member-assignments {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.assignment-cards,
.game-list {
  display: grid;
  gap: 12px;
}
.assignment-card {
  display: grid;
  grid-template-columns: 98px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  border: 1px solid #d9e0e6;
  border-radius: 8px;
  padding: 12px;
  background: #f8fafb;
}
.date-block {
  display: grid;
  place-items: center;
  border: 1px solid #cfd8df;
  background: white;
  border-radius: 8px;
  padding: 10px 6px;
  min-height: 70px;
}
.date-block strong {
  font-size: 18px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.date-block span {
  color: #66727d;
  font-variant-numeric: tabular-nums;
}
.assignment-card h3,
.game-card-head h3 {
  margin: 6px 0 4px;
  font-size: 16px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}
.assignment-card p,
.game-card-head p {
  margin: 0;
  color: #66727d;
}
.game-card-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 12px;
}
.status-pill {
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 12px;
  font-weight: 700;
}
.status-pill.ok {
  background: #eef8f2;
  color: #246b45;
}
.status-pill.warn {
  background: #fff8e8;
  color: #8a6512;
}
.assignment-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(180px, 1fr));
  gap: 10px;
}
.assignment-slot {
  border: 1px solid #d9e0e6;
  border-radius: 8px;
  padding: 10px;
  display: grid;
  gap: 7px;
  background: #fff;
}
.assignment-slot span {
  color: #66727d;
}
.game-compact-row {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) auto;
  gap: 12px;
  align-items: center;
  border: 1px solid #d9e0e6;
  border-radius: 8px;
  padding: 10px 12px;
  background: white;
}
.game-compact-main {
  display: grid;
  grid-template-columns: auto auto auto minmax(90px, 1fr);
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.game-compact-main strong,
.game-compact-main span {
  white-space: nowrap;
}
.game-league {
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}
.slot-buttons {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.slot-button {
  min-width: 92px;
  border: 1px solid #cfd8df;
  border-radius: 6px;
  padding: 7px 9px;
  display: grid;
  gap: 2px;
  text-align: left;
  background: #f8fafb;
  color: #17212b;
}
.slot-button span {
  font-weight: 800;
  line-height: 1.1;
}
.slot-button small {
  color: #66727d;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 110px;
}
.slot-button.free {
  border-color: #2f5965;
  background: #eef6f7;
  color: #203f49;
}
.slot-button.filled {
  opacity: 0.62;
  background: #edf1f4;
}
.slot-button.replacement {
  border-color: #d8a21b;
  background: #fff8e8;
}
.assignment-overview {
  display: grid;
  gap: 8px;
  max-height: 64vh;
  overflow: auto;
}
.overview-row {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) auto minmax(120px, 1fr) minmax(180px, 1fr) auto;
  align-items: center;
  gap: 8px;
  border: 1px solid #edf1f4;
  border-radius: 8px;
  padding: 8px;
}
.overview-row div:first-child {
  display: grid;
  gap: 2px;
}
.overview-row div:first-child span {
  color: #66727d;
  font-size: 13px;
}
.overview-row .row-actions {
  display: flex;
  gap: 6px;
  justify-content: flex-end;
  white-space: normal;
}
.preview-box {
  margin-top: 12px;
  display: grid;
  gap: 12px;
  border: 1px solid #d9e0e6;
  border-radius: 8px;
  padding: 12px;
  background: #f8fafb;
}
.toolbar.slim {
  border: 0;
  padding: 0;
  margin-bottom: 12px;
  background: transparent;
}
.event-card-grid,
.helper-grid {
  display: grid;
  gap: 12px;
}
.event-card-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.event-card {
  display: grid;
  grid-template-columns: 98px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  border: 1px solid #d9e0e6;
  border-radius: 8px;
  background: #f8fafb;
  padding: 12px;
}
.event-card h3 {
  margin: 8px 0 4px;
  font-size: 16px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}
.event-card p {
  margin: 0;
  color: #66727d;
}
.helper-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 12px;
  align-items: center;
  border: 1px solid #d9e0e6;
  border-radius: 8px;
  background: #f8fafb;
  padding: 12px;
}
.helper-card > div:first-child {
  display: grid;
  gap: 3px;
}
.helper-card strong {
  overflow-wrap: anywhere;
}
.helper-card span {
  color: #66727d;
}
.helper-card .minirows {
  margin: 0;
  min-width: 180px;
}
@media (max-width: 980px) {
  .app-shell {
    grid-template-columns: 1fr;
  }
  .sidebar {
    position: static;
  }
  .sidebar nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .landing-hero {
    grid-template-columns: 1fr;
  }
  .metric-grid,
  .three-col,
  .two-col,
  .form-grid,
  .tenant-hero {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .member-assignments {
    grid-template-columns: 1fr;
  }
  .assignment-card {
    grid-template-columns: 86px minmax(0, 1fr) minmax(150px, auto);
  }
  .event-card {
    grid-template-columns: 86px minmax(0, 1fr);
  }
  .helper-card {
    grid-template-columns: 1fr;
    align-items: stretch;
  }
  .assignment-grid {
    grid-template-columns: 1fr;
  }
  .game-compact-row,
  .overview-row,
  .access-row {
    grid-template-columns: 1fr;
    align-items: stretch;
  }
  .slot-buttons,
  .overview-row .row-actions {
    justify-content: stretch;
  }
  .slot-button,
  .overview-row .row-actions button {
    flex: 1;
  }
  .onboarding-guide {
    grid-template-columns: 1fr;
  }
  .billing-hero {
    grid-template-columns: 1fr;
  }
  .onboarding-actions {
    min-width: 0;
    flex-direction: row;
    flex-wrap: wrap;
  }
}
@media (max-width: 640px) {
  html,
  body,
  #root {
    max-width: 100%;
    overflow-x: hidden;
  }
  main {
    padding: 12px;
  }
  .public-nav,
  .platform-topbar {
    align-items: stretch;
    flex-direction: column;
    padding: 14px;
  }
  .public-main,
  .platform-main {
    width: calc(100% - 24px);
    padding: 18px 0;
  }
  .section-head {
    align-items: start;
    flex-direction: column;
  }
  .landing-hero h1 {
    font-size: 34px;
  }
  .landing-hero p {
    font-size: 16px;
  }
  .landing-actions,
  .landing-actions button,
  .platform-topbar nav,
  .platform-topbar nav button,
  .public-nav > div,
  .public-nav > div button {
    width: 100%;
  }
  .topbar,
  .toolbar {
    align-items: stretch;
    flex-direction: column;
  }
  .tools,
  .search {
    width: 100%;
  }
  .metric-grid,
  .three-col,
  .two-col,
  .form-grid,
  .sidebar nav,
  .member-assignments {
    grid-template-columns: 1fr;
  }
  .overview-shell {
    padding: 12px;
  }
  .overview-head {
    align-items: stretch;
    flex-direction: column;
  }
  .tenant-hero {
    grid-template-columns: 1fr;
  }
  .tenant-facts {
    border-left: 0;
    border-top: 1px solid #edf1f4;
    padding-left: 0;
    padding-top: 10px;
  }
  .panel,
  .metric,
  .table-wrap,
  .toolbar,
  .empty-state {
    max-width: 100%;
  }
  .compact-table table {
    min-width: 560px;
  }
  .access-row,
  .inline-actions {
    grid-template-columns: 1fr;
    align-items: stretch;
  }
  .inline-actions input,
  .inline-actions button,
  .upload-row input,
  .upload-row button {
    width: 100%;
    min-width: 0;
  }
  .onboarding-steps {
    grid-template-columns: 1fr;
  }
  .onboarding-actions button {
    flex: 1;
    min-height: 42px;
  }
  .assignment-card {
    grid-template-columns: 1fr;
  }
  .event-card {
    grid-template-columns: 1fr;
  }
  .assignment-card .primary {
    width: 100%;
    min-height: 44px;
  }
  .game-compact-main {
    grid-template-columns: auto auto 1fr;
  }
  .game-compact-main .status-pill {
    grid-column: 1 / -1;
    width: fit-content;
  }
  .slot-buttons {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .slot-button {
    min-width: 0;
    text-align: center;
  }
  .slot-button small {
    max-width: none;
  }
  .date-block {
    justify-items: start;
    grid-template-columns: auto auto;
    gap: 8px;
    min-height: auto;
  }
  .doc-grid,
  .logo-settings {
    grid-template-columns: 1fr;
  }
  .metric strong {
    font-size: 20px;
  }
}
