:root {
  color-scheme: light;
  --ink: #151618;
  --muted: #69717d;
  --line: #dfe5eb;
  --panel: #ffffff;
  --page: #f5f7f9;
  --blue: #008ccf;
  --deep-blue: #075d93;
  --black: #1f1f1d;
  --red: #cf202f;
  --green: #147a5a;
  --gold: #b78022;
  --shadow: 0 18px 45px rgba(21, 22, 24, 0.11);
  font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(115deg, rgba(0, 140, 207, 0.16), rgba(31, 31, 29, 0.04) 42%, rgba(207, 32, 47, 0.08)),
    var(--page);
  color: var(--ink);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.65), rgba(255,255,255,0)),
    repeating-linear-gradient(135deg, rgba(0, 140, 207, 0.06) 0 1px, transparent 1px 18px);
  content: "";
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

.hidden {
  display: none !important;
}

.app-shell {
  min-height: 100vh;
  padding: 24px;
}

.login-view {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(300px, 420px);
  gap: 38px;
  align-items: center;
  max-width: 1160px;
  min-height: calc(100vh - 48px);
  margin: 0 auto;
}

.login-view::before {
  position: absolute;
  inset: -24px calc(50% - 50vw);
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(245, 247, 249, 0.78) 0%, rgba(245, 247, 249, 0.6) 42%, rgba(245, 247, 249, 0.9) 100%),
    linear-gradient(0deg, rgba(245, 247, 249, 0.9), rgba(245, 247, 249, 0.2) 40%, rgba(245, 247, 249, 0.86)),
    url("assets/yugwansun-gym-sketch-web.jpg") center / cover no-repeat;
  content: "";
}

.login-view::after {
  position: absolute;
  inset: -24px calc(50% - 50vw);
  z-index: -1;
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.84), transparent 32%),
    radial-gradient(circle at 78% 55%, rgba(255, 255, 255, 0.78), transparent 28%),
    repeating-linear-gradient(135deg, rgba(0, 140, 207, 0.04) 0 1px, transparent 1px 18px);
  content: "";
  pointer-events: none;
}

.hero-copy h1,
.topbar h1 {
  margin: 0;
  color: var(--black);
  font-size: clamp(42px, 7vw, 84px);
  line-height: 0.96;
  letter-spacing: 0;
}

.topbar h1 {
  font-size: 26px;
  line-height: 1.18;
}

.hero-copy p:not(.eyebrow) {
  max-width: 560px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
}

.contact-note {
  display: grid;
  gap: 4px;
  max-width: 560px;
  margin: 18px 0 12px;
  padding: 13px 15px;
  border-left: 4px solid var(--blue);
  background: rgba(255, 255, 255, 0.68);
  color: var(--ink);
  font-size: 14px;
  font-weight: 850;
  line-height: 1.45;
}

.contact-note p {
  margin: 0;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--deep-blue);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.login-card,
.panel,
.topbar {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.login-card {
  display: grid;
  gap: 18px;
  padding: 28px;
  border-top: 4px solid var(--blue);
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 28px;
}

.brand-lockup img {
  width: 210px;
  max-width: 44vw;
  height: 72px;
  object-fit: contain;
  padding: 12px 16px;
  border: 1px solid rgba(223, 229, 235, 0.95);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(21, 22, 24, 0.08);
}

.brand-lockup .team-mark {
  width: 118px;
  height: 118px;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.hero-stats span {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid rgba(0, 140, 207, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: #475467;
  font-size: 13px;
  font-weight: 750;
}

.hero-stats strong {
  color: var(--blue);
  font-size: 11px;
  letter-spacing: 0;
}

.card-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.card-brand img {
  width: 58px;
  height: 58px;
  object-fit: contain;
}

.card-brand strong,
.card-brand span {
  display: block;
}

.card-brand strong {
  font-size: 18px;
}

.card-brand span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

label {
  display: grid;
  gap: 7px;
  color: #344054;
  font-size: 13px;
  font-weight: 780;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 11px 12px;
  background: #fff;
  color: var(--ink);
}

textarea {
  resize: vertical;
}

.login-card button,
.stack-form button {
  min-height: 44px;
  border-radius: 6px;
  background: linear-gradient(135deg, var(--deep-blue), var(--blue));
  color: #fff;
  font-weight: 850;
}

.small-text,
.form-alert {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.form-alert {
  min-height: 18px;
  color: var(--red);
  font-weight: 800;
}

.ticket-app {
  position: relative;
  isolation: isolate;
  display: grid;
  gap: 16px;
}

.ticket-app::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(115deg, rgba(245, 247, 249, 0.84), rgba(245, 247, 249, 0.68) 48%, rgba(245, 247, 249, 0.9)),
    url("assets/skywalkers-mark-sketch-web.jpg") center 54% / min(92vw, 1180px) auto no-repeat;
  content: "";
}

.ticket-app::after {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0.18)),
    repeating-linear-gradient(135deg, rgba(0, 140, 207, 0.035) 0 1px, transparent 1px 18px);
  content: "";
  pointer-events: none;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 18px 22px;
  border-top: 4px solid var(--black);
}

.topbar-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.topbar-brand img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.topbar-actions,
.button-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.language-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  width: fit-content;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}

.language-toggle button {
  min-height: 34px;
  padding: 0 12px;
  background: #fff;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.language-toggle button.active {
  background: var(--black);
  color: #fff;
}

.mode-pill,
.count-badge {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: #e8f1fa;
  color: var(--deep-blue);
  font-size: 13px;
  font-weight: 850;
}

.ghost-button {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  font-weight: 800;
}

.ghost-button:hover,
.tabs button:hover {
  border-color: rgba(0, 140, 207, 0.45);
  color: var(--deep-blue);
}

.tabs {
  display: flex;
  gap: 8px;
}

.tabs button {
  min-height: 42px;
  padding: 0 18px;
  border-radius: 6px;
  background: #e8edf3;
  color: var(--muted);
  font-weight: 850;
}

.tabs button.active {
  background: var(--black);
  color: #fff;
}

body:not(.is-admin) .tabs button[data-view="adminView"] {
  display: none;
}

.request-layout,
.admin-layout {
  display: grid;
  grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.admin-workspace {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.schedule-view {
  display: grid;
  gap: 16px;
}

.schedule-view.hidden {
  display: none;
}

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

.calendar-actions strong {
  min-width: 130px;
  text-align: center;
  font-size: 16px;
  font-weight: 900;
}

.calendar-stats {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.calendar-stats span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.calendar-stats .home {
  border-color: rgba(0, 140, 207, 0.28);
  color: var(--deep-blue);
}

.calendar-stats .away {
  border-color: rgba(31, 41, 55, 0.22);
  color: var(--black);
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(120px, 1fr));
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
}

.calendar-weekday {
  padding: 11px 8px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #eef4f8;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-align: center;
}

.calendar-weekday:nth-child(7) {
  border-right: 0;
}

.calendar-day {
  min-height: 132px;
  padding: 9px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.88);
}

.calendar-day:nth-child(7n) {
  border-right: 0;
}

.calendar-day.is-outside {
  background: rgba(248, 250, 252, 0.68);
  color: #9aa6b2;
}

.calendar-day.is-today {
  box-shadow: inset 0 0 0 2px rgba(0, 140, 207, 0.3);
}

.calendar-date {
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 900;
}

.calendar-events {
  display: grid;
  gap: 6px;
}

.calendar-event {
  display: grid;
  gap: 4px;
  width: 100%;
  padding: 8px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--deep-blue);
  border-radius: 6px;
  background: #fff;
  text-align: left;
}

.calendar-event.away {
  border-left-color: var(--black);
  background: #f7fbff;
}

.calendar-event.closed {
  opacity: 0.55;
}

.calendar-event strong {
  font-size: 13px;
  line-height: 1.35;
}

.calendar-event small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.admin-subtabs {
  display: flex;
  gap: 8px;
}

.admin-subtabs button {
  min-height: 40px;
  padding: 0 16px;
  border-radius: 6px;
  background: #e8edf3;
  color: var(--muted);
  font-weight: 850;
}

.admin-subtabs button.active {
  background: var(--black);
  color: #fff;
}

.panel {
  padding: 18px;
}

.panel h2,
.panel h3 {
  margin: 0 0 14px;
}

.panel-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.panel-title h2 {
  margin: 0;
}

.title-mark {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--black);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

.stack-form {
  display: grid;
  gap: 12px;
}

.match-summary {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
  color: var(--muted);
  font-size: 13px;
}

.match-summary strong {
  color: var(--ink);
}

.seat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
  gap: 10px;
}

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

.match-list {
  display: grid;
  gap: 10px;
}

.my-request-panel {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.section-head.compact {
  margin-bottom: 10px;
}

.my-request-list {
  display: grid;
  gap: 10px;
}

.my-request-card {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-left: 5px solid var(--black);
  border-radius: 8px;
  background: #fff;
}

.my-request-card.closed {
  opacity: 0.62;
}

.my-request-card p {
  margin: 4px 0 6px;
  color: var(--muted);
  font-size: 13px;
}

.my-request-card span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.my-request-actions {
  display: grid;
  gap: 8px;
  justify-items: end;
  min-width: 92px;
}

.my-request-actions button {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  font-weight: 850;
}

.my-request-actions .danger-button {
  color: #b42318;
  border-color: #f2b8b5;
  background: #fff7f7;
}

.match-card {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-left: 5px solid var(--blue);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease,
    transform 0.15s ease;
}

.match-card:hover,
.match-card:focus-visible {
  border-color: rgba(0, 140, 207, 0.48);
  box-shadow: 0 10px 24px rgba(20, 40, 60, 0.1);
  outline: none;
  transform: translateY(-1px);
}

.match-card.home-match {
  border-left-color: var(--black);
}

.match-card.away-match {
  border-left-color: var(--blue);
  background: #f7fbff;
}

.match-kind-badge {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  margin-right: 8px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0;
  vertical-align: 1px;
}

.match-kind-badge.home {
  background: var(--black);
  color: #fff;
}

.match-kind-badge.away {
  border: 1px solid rgba(0, 140, 207, 0.32);
  background: #e8f1fa;
  color: var(--deep-blue);
}

.match-card.closed {
  opacity: 0.55;
  border-left-color: var(--muted);
}

.closed-match-section {
  display: grid;
  gap: 8px;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.closed-match-section .match-card {
  padding: 10px 12px;
  font-size: 13px;
}

.closed-match-section .match-card p,
.closed-match-section .match-meta {
  font-size: 11px;
}

.match-card p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.match-meta {
  display: grid;
  gap: 6px;
  min-width: 142px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-align: right;
}

.summary-cards {
  display: grid;
  grid-template-columns: repeat(5, minmax(120px, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.summary-cards article {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.summary-cards article:first-child {
  background: var(--black);
  color: #fff;
}

.summary-cards article:first-child span {
  color: rgba(255, 255, 255, 0.75);
}

.summary-cards span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.summary-cards strong {
  font-size: 24px;
}

.table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}

table {
  width: 100%;
  min-width: 860px;
  border-collapse: collapse;
  background: #fff;
}

th,
td {
  padding: 11px 12px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  text-align: left;
  vertical-align: top;
}

th {
  background: #eef4f8;
  color: #475467;
  font-size: 12px;
  font-weight: 850;
}

td small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
}

.summary-group-row td {
  background: #f7fbff;
  color: var(--ink);
  font-size: 13px;
}

.summary-group-row strong {
  margin-right: 10px;
}

.summary-group-row span {
  color: var(--muted);
  font-weight: 800;
}

.upload-box {
  display: grid;
  gap: 10px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.match-manage-box {
  display: grid;
  gap: 10px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.match-manage-list {
  display: grid;
  gap: 8px;
}

.match-manage-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.match-manage-card.closed {
  opacity: 0.72;
}

.match-manage-card strong,
.match-manage-card span,
.match-manage-card small {
  display: block;
}

.match-manage-card span,
.match-manage-card small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.match-manage-actions {
  display: grid;
  gap: 6px;
  align-content: start;
}

.match-manage-actions button {
  min-height: 30px;
  padding: 0 10px;
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  font-size: 12px;
  font-weight: 850;
}

.match-manage-actions .danger-button {
  color: var(--red);
  border: 1px solid #f2b8b5;
  background: #fff7f7;
}

.member-box {
  display: grid;
  gap: 10px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.mini-form {
  display: grid;
  gap: 8px;
}

.mini-form button {
  min-height: 40px;
  border-radius: 6px;
  background: var(--black);
  color: #fff;
  font-weight: 850;
}

.member-list {
  display: grid;
  gap: 8px;
}

.member-list article {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.member-list strong,
.member-list span {
  display: block;
}

.member-list span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.member-list button {
  min-height: 30px;
  padding: 0 9px;
  border-radius: 6px;
  background: #fff;
  color: var(--red);
  font-size: 12px;
  font-weight: 850;
}

.member-login-fields {
  display: grid;
  gap: 10px;
}

.member-login-filter {
  margin-bottom: 0;
}

.member-login-filter input,
.member-login-filter select {
  background: #f8fafc;
}

.admin-settings-box {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.table-danger-button {
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid #f2b8b5;
  border-radius: 6px;
  background: #fff7f7;
  color: var(--red);
  font-size: 12px;
  font-weight: 900;
}

.table-action-button {
  min-height: 30px;
  margin-right: 6px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--deep-blue);
  font-size: 12px;
  font-weight: 900;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  margin-left: 6px;
  padding: 0 7px;
  border-radius: 999px;
  background: #e8f1fa;
  color: var(--deep-blue);
  font-size: 11px;
  font-weight: 900;
}

.status-badge.warn {
  background: #fff7ed;
  color: #b45309;
}

.assignment-toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 1.3fr) minmax(190px, 0.9fr) minmax(220px, 1fr);
  gap: 12px;
  margin-bottom: 12px;
}

.summary-filter {
  max-width: 420px;
  margin-bottom: 12px;
}

.assignment-status {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.assignment-status span {
  min-height: 32px;
  padding: 8px 10px;
  border: 1px solid rgba(0, 140, 207, 0.18);
  border-radius: 999px;
  background: rgba(232, 241, 250, 0.88);
  color: var(--deep-blue);
  font-size: 12px;
  font-weight: 850;
}

.seat-board-wrap {
  overflow: auto;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
}

.seat-board {
  display: grid;
  gap: 13px;
  min-width: 1260px;
  user-select: none;
}

.seat-board-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-bottom: 4px;
}

.seat-board-title strong {
  font-size: 18px;
}

.seat-board-title span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.seat-row {
  display: grid;
  grid-template-columns: repeat(28, 42px);
  gap: 0;
  align-items: end;
  overflow: visible;
}

.seat-row.floor1-board {
  grid-template-columns: repeat(24, 52px) 74px repeat(4, 52px);
}

.seat-row.floor2-board {
  grid-template-columns: repeat(24, 52px);
}

.seat-cell {
  display: grid;
  grid-template-rows: 24px 20px;
  width: 42px;
  height: 45px;
  border: 1px solid #1f2937;
  margin-right: -1px;
  border-radius: 0;
  background: #fff;
  color: var(--ink);
  text-align: center;
  touch-action: none;
  box-sizing: border-box;
}

body.is-seat-dragging .seat-cell {
  cursor: crosshair;
}

.seat-row.floor1-board .seat-cell {
  width: 52px;
  margin-right: -1px;
}

.seat-row.floor2-board .seat-cell {
  width: 52px;
  margin-right: -1px;
}

.seat-cell:last-child {
  margin-right: 0;
}

.seat-cell span {
  overflow: hidden;
  align-self: center;
  padding: 0 2px;
  color: #111827;
  font-size: 10px;
  line-height: 1.05;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.seat-cell strong {
  display: grid;
  place-items: center;
  border-top: 1px solid #1f2937;
  font-size: 10px;
  font-weight: 700;
}

.seat-cell:hover {
  position: relative;
  z-index: 1;
  outline: 3px solid rgba(0, 140, 207, 0.25);
}

.seat-cell.is-assigned {
  background: #dff2fb;
}

.seat-cell.is-assigned span {
  color: var(--deep-blue);
  font-weight: 900;
}

.seat-cell.is-sale {
  background: #f3f4f6;
  color: #9ca3af;
}

.seat-cell.is-sale span {
  color: #6b7280;
  font-style: italic;
  font-weight: 800;
}

.seat-aisle {
  display: grid;
  place-items: center;
  width: 74px;
  height: 45px;
  color: var(--black);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.25;
  text-align: center;
  white-space: pre-line;
}

.court-direction {
  margin-top: 12px;
  padding: 13px;
  border: 1px solid #1f2937;
  background: rgba(255, 255, 255, 0.78);
  font-size: 22px;
  font-weight: 500;
  text-align: center;
}

.empty-state {
  padding: 18px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: #f8fafc;
  color: var(--muted);
}

.free-seat-panel {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.84);
}

.compact-table table {
  min-width: 520px;
}

@media (max-width: 1020px) {
  .request-layout,
  .admin-layout {
    grid-template-columns: 1fr;
  }

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

  .assignment-toolbar {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .app-shell {
    padding: 12px;
  }

  .login-view {
    grid-template-columns: 1fr;
    min-height: calc(100vh - 24px);
  }

  .topbar,
  .section-head,
  .match-card {
    align-items: flex-start;
    flex-direction: column;
  }

  .calendar-actions {
    justify-content: flex-start;
  }

  .calendar-grid {
    grid-template-columns: repeat(7, minmax(170px, 1fr));
  }

  .brand-lockup {
    align-items: flex-start;
    flex-direction: column;
  }

  .brand-lockup img,
  .brand-lockup .team-mark {
    width: min(100%, 260px);
    height: auto;
    max-height: 150px;
  }

  .topbar-brand {
    align-items: flex-start;
  }

  .match-meta {
    text-align: left;
  }

  .summary-cards {
    grid-template-columns: 1fr;
  }
}

@media print {
  @page {
    size: landscape;
    margin: 8mm;
  }

  body {
    background: #fff;
  }

  .login-view,
  .tabs,
  .topbar-actions,
  .admin-layout > aside,
  .request-layout {
    display: none !important;
  }

  .app-shell {
    padding: 0;
  }

  .topbar,
  .panel {
    border: 0;
    box-shadow: none;
  }

  .admin-layout {
    display: block !important;
  }

  body.print-assignment .topbar,
  body.print-assignment .tabs,
  body.print-assignment .topbar-actions,
  body.print-assignment .admin-layout > aside,
  body.print-assignment #summaryPanel,
  body.print-assignment .admin-subtabs,
  body.print-assignment .assignment-toolbar,
  body.print-assignment .assignment-status,
  body.print-assignment .free-seat-panel,
  body.print-assignment .button-row {
    display: none !important;
  }

  body.print-assignment .admin-layout,
  body.print-assignment .admin-workspace,
  body.print-assignment #assignmentPanel {
    display: block !important;
  }

  body.print-assignment .seat-board-wrap {
    overflow: visible !important;
  }

  body.print-assignment .seat-board {
    transform: scale(0.74);
    transform-origin: top left;
  }
}
