:root {
  color-scheme: dark;
  --bg: #001326;
  --panel: #062035;
  --panel-2: #0a3b50;
  --ink: #f7fbff;
  --muted: #b8cad1;
  --line: rgba(255, 255, 255, 0.16);
  --teal: #6ce6df;
  --cyan: #20b9d4;
  --amber: #f5b84b;
  --paper: #f5f7fb;
  --shadow: 0 18px 44px rgba(0, 0, 0, 0.32);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  position: relative;
  isolation: isolate;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--ink);
  font-family: "Pretendard", "SUIT", "Noto Sans KR", "Apple SD Gothic Neo", system-ui, sans-serif;
  letter-spacing: 0;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
}

body::before {
  z-index: -2;
  background: url("assets/brand/thumbs/tournament-backdrop.webp") center / cover no-repeat;
  opacity: 0.48;
}

body::after {
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(0, 13, 32, 0.9) 0%, rgba(0, 22, 40, 0.74) 44%, rgba(3, 74, 92, 0.72) 100%),
    radial-gradient(circle at 82% 16%, rgba(108, 230, 223, 0.18), transparent 34%);
}

body[data-page="input"]::before {
  display: none;
}

body[data-page="input"]::after {
  background: linear-gradient(180deg, #001326 0%, #06283a 52%, #07384a 100%);
}

button,
a {
  font: inherit;
}

button {
  cursor: pointer;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px clamp(20px, 4vw, 56px) 22px;
  border-bottom: 1px solid var(--line);
  background: rgba(0, 17, 34, 0.82);
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
}

.topbar > div:first-of-type {
  min-width: 0;
}

.topbar-logo {
  display: block;
  flex: 0 0 auto;
  width: clamp(156px, 20vw, 292px);
}

.topbar-logo img {
  display: block;
  width: 100%;
  height: auto;
}

.eyebrow,
.section-label {
  margin: 0 0 8px;
  color: var(--teal);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.12;
  letter-spacing: 0;
}

h1 {
  font-size: 30px;
}

h2 {
  font-size: 24px;
}

h3 {
  font-size: 22px;
}

.top-actions,
.zoom-tools,
.card-actions,
.data-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mode-button,
.nav-button,
.print-button,
.zoom-tools button,
.card-actions a,
.grade-tab {
  border: 1px solid var(--line);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  min-height: 44px;
  transition:
    border-color 90ms ease-out,
    background-color 90ms ease-out,
    color 90ms ease-out;
}

.mode-button,
.nav-button,
.print-button {
  padding: 0 14px;
}

.nav-button {
  display: inline-grid;
  place-items: center;
  text-decoration: none;
}

.mode-button.is-active,
.nav-button.is-active,
.grade-tab.is-active {
  border-color: rgba(25, 199, 187, 0.72);
  background: rgba(25, 199, 187, 0.16);
  color: #e9fffb;
}

.layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  min-height: calc(100vh - 104px);
}

.side-panel {
  border-right: 1px solid var(--line);
  background: rgba(7, 24, 40, 0.72);
  padding: 24px 18px;
  position: sticky;
  top: 104px;
  align-self: start;
  min-height: calc(100vh - 104px);
}

.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 13px;
  text-transform: uppercase;
}

.panel-heading strong {
  color: var(--ink);
  font-size: 18px;
  text-transform: none;
}

.grade-tabs {
  display: grid;
  gap: 10px;
}

.grade-tab {
  width: 100%;
  display: grid;
  grid-template-columns: 56px 1fr;
  align-items: center;
  min-height: 62px;
  padding: 0;
  overflow: hidden;
  text-align: left;
}

.grade-tab span:first-child {
  display: grid;
  place-items: center;
  min-height: 62px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--teal);
  font-size: 24px;
  font-weight: 900;
  transition: background-color 160ms ease;
}

.grade-tab span:last-child {
  padding: 0 14px;
  font-weight: 800;
}

.quick-info {
  margin: 22px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.quick-info div {
  display: grid;
  gap: 4px;
  margin-bottom: 14px;
}

.quick-info dt {
  color: var(--muted);
  font-size: 12px;
}

.quick-info dd {
  margin: 0;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.45;
}

.content {
  min-width: 0;
  padding: 24px clamp(18px, 3vw, 42px) 44px;
}

.save-state {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.score-app {
  display: grid;
  gap: 24px;
}

.home-page {
  display: grid;
  min-height: 100vh;
  padding: 0;
}

.home-shell {
  width: 100%;
  min-height: 100vh;
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 40px;
  padding: clamp(28px, 5vw, 72px);
}

.home-hero {
  width: min(1180px, 100%);
  display: grid;
  align-content: center;
  gap: 34px;
}

.home-logo {
  display: block;
  width: min(760px, 100%);
  height: auto;
  filter: drop-shadow(0 22px 38px rgba(0, 0, 0, 0.24));
}

.home-copy {
  display: grid;
  gap: 22px;
  max-width: 700px;
}

.home-copy p {
  margin: 0;
  color: rgba(247, 251, 255, 0.86);
  font-size: clamp(18px, 2vw, 28px);
  font-weight: 800;
  line-height: 1.45;
}

.home-primary-link {
  display: inline-grid;
  place-items: center;
  justify-self: start;
  min-height: 54px;
  padding: 0 26px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  color: #042136;
  font-weight: 900;
  text-decoration: none;
  transition:
    border-color 90ms ease-out,
    background-color 90ms ease-out,
    color 90ms ease-out;
}

.home-primary-link {
  color: #042136;
}

.home-info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  width: min(760px, 100%);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.home-info-grid div {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 4px 12px;
  align-content: center;
  min-height: 88px;
  padding: 16px;
  background: rgba(0, 17, 34, 0.64);
}

.home-info-grid .brand-icon {
  grid-row: 1 / 3;
  align-self: center;
  width: 42px;
  height: 42px;
}

.home-info-grid span:not(.brand-icon) {
  display: block;
  margin-bottom: 8px;
  color: var(--teal);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.home-info-grid strong {
  display: block;
  line-height: 1.38;
}

.brand-icon,
.ui-icon {
  display: inline-block;
  background: currentColor;
  color: var(--teal);
  -webkit-mask: var(--icon-mask) center / contain no-repeat;
  mask: var(--icon-mask) center / contain no-repeat;
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.2));
}

.brand-icon-ball-football {
  --icon-mask: url("assets/brand/icons/ball-football.svg");
}

.brand-icon-calendar-event {
  --icon-mask: url("assets/brand/icons/calendar-event.svg");
}

.brand-icon-clock {
  --icon-mask: url("assets/brand/icons/clock.svg");
}

.brand-icon-scoreboard {
  --icon-mask: url("assets/brand/icons/scoreboard.svg");
}

.brand-icon-trophy {
  --icon-mask: url("assets/brand/icons/trophy.svg");
}

.ui-icon {
  width: 34px;
  height: 34px;
}

.home-brand-strip {
  display: grid;
  gap: 18px;
  align-self: end;
  width: min(1220px, 100%);
}

.home-brand-strip img {
  display: block;
  max-width: 100%;
  height: auto;
  opacity: 0.86;
}

.grade-workspace {
  display: grid;
  gap: 18px;
}

.grade-workspace[hidden] {
  display: none;
}

.data-actions {
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
}

.data-actions p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.data-actions button {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid rgba(25, 199, 187, 0.55);
  border-radius: 8px;
  background: rgba(25, 199, 187, 0.12);
  color: var(--ink);
  transition:
    border-color 90ms ease-out,
    background-color 90ms ease-out;
}

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

.overview-item {
  min-height: 92px;
  padding: 16px;
  background: rgba(6, 16, 33, 0.82);
  transition: background-color 100ms ease-out;
}

.overview-item span {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 12px;
}

.overview-item strong {
  display: block;
  line-height: 1.42;
}

.section-shell {
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(8, 27, 43, 0.56);
  transition: border-color 100ms ease-out, background-color 100ms ease-out;
}

.section-shell > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 62px;
  padding: 0 18px;
  color: var(--ink);
  font-size: 19px;
  font-weight: 900;
  list-style: none;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.06);
  transition: background-color 90ms ease-out, color 90ms ease-out;
}

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

.section-shell > summary::after {
  content: "+";
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--teal);
  transition: border-color 90ms ease-out, background-color 90ms ease-out;
}

.section-shell[open] > summary::after {
  content: "-";
}

.section-shell > summary span {
  margin-left: auto;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.section-shell > .group-grid,
.section-shell > .viewer-group-grid,
.section-shell > .knockout-division,
.section-shell > .source-preview {
  margin: 16px;
}

.section-tools {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 12px 16px 0;
}

.section-reset-button {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
  transition: border-color 90ms ease-out, background-color 90ms ease-out, color 90ms ease-out;
}

.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 4px;
}

.section-title h3 {
  font-size: 20px;
}

.rule-note {
  color: var(--muted);
  font-size: 13px;
}

.group-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 16px;
}

.group-card,
.knockout-division {
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(8, 27, 43, 0.74);
  transition: border-color 90ms ease-out, background-color 90ms ease-out;
}

.group-head,
.division-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.06);
}

.group-head strong,
.division-head strong {
  font-size: 18px;
}

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

.team-list {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}

.team-list div {
  display: grid;
  grid-template-columns: 30px 36px 1fr;
  gap: 8px;
  align-items: center;
  color: #e9f3ff;
}

.team-list span {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

body[data-page="input"] .group-card .team-list {
  grid-template-columns: repeat(auto-fit, minmax(148px, 1fr));
  gap: 8px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.035);
}

body[data-page="input"] .group-card .team-list div {
  grid-template-columns: 24px 34px minmax(0, 1fr);
  min-height: 44px;
  padding: 6px 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.18);
}

body[data-page="input"] .group-card .team-list strong {
  min-width: 0;
  overflow: hidden;
  color: var(--ink);
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.standings,
.match-table {
  width: 100%;
  border-collapse: collapse;
}

.standings {
  min-width: 620px;
}

.match-table {
  min-width: 100%;
  table-layout: fixed;
}

.standings th,
.standings td,
.match-table th,
.match-table td {
  padding: 9px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  font-size: 13px;
}

.standings th,
.match-table th {
  color: var(--muted);
  font-weight: 700;
  background: rgba(0, 0, 0, 0.18);
}

.standings td.team-cell,
.match-table td.team-cell {
  text-align: left;
}

.team-inline {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.team-inline span:last-child {
  min-width: 0;
  overflow-wrap: anywhere;
}

.team-logo-only {
  --match-logo-size: 38px;
  display: inline-grid;
  place-items: center;
  width: var(--match-logo-size);
  height: var(--match-logo-size);
  vertical-align: middle;
}

.team-logo-only .team-logo {
  width: var(--match-logo-size);
  height: var(--match-logo-size);
}

.team-logo {
  width: 32px;
  height: 32px;
  object-fit: contain;
  flex: 0 0 auto;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.24));
}

.team-logo-placeholder {
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(25, 199, 187, 0.18);
  color: var(--teal);
  font-size: 14px;
  font-weight: 900;
}

.team-logo-placeholder.is-empty,
.team-logo-only.is-empty {
  background: transparent;
  color: transparent;
}

.standings td.team-cell {
  min-width: 138px;
}

.match-table td.team-cell {
  min-width: 0;
  word-break: keep-all;
}

.match-table td.logo-cell {
  text-align: center;
}

.match-table .input-team-cell {
  text-align: left;
}

.match-table .input-team-cell.away {
  text-align: right;
}

.input-team-name {
  display: block;
  min-width: 0;
  color: var(--ink);
  font-weight: 900;
  line-height: 1.32;
  overflow-wrap: anywhere;
  word-break: keep-all;
}

.match-table th,
.match-table td {
  padding: 9px 6px;
}

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

.match-table th:nth-child(2),
.match-table td:nth-child(2) {
  width: 68px;
}

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

.match-table .team-logo-only {
  --match-logo-size: 38px;
}

.match-table .score-pair {
  grid-template-columns: 40px 8px 40px;
  gap: 4px;
}

.match-table .score-input {
  width: 40px;
}

.rank-cell {
  color: var(--amber);
  font-weight: 900;
}

.tie-flag {
  display: inline-block;
  margin-left: 6px;
  color: var(--amber);
  font-size: 11px;
}

.score-pair {
  display: inline-grid;
  grid-template-columns: 48px 12px 48px;
  align-items: center;
  gap: 5px;
}

.score-input {
  width: 48px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.96);
  color: #071325;
  text-align: center;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.score-input:focus {
  outline: 2px solid var(--cyan);
  outline-offset: 1px;
}

.match-table caption,
.standings caption {
  padding: 12px 16px 6px;
  color: var(--teal);
  text-align: left;
  font-weight: 800;
}

.knockout-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
  padding: 14px;
}

.round-column {
  display: grid;
  align-content: start;
  gap: 10px;
}

.round-title {
  color: var(--teal);
  font-size: 13px;
  font-weight: 900;
}

.knockout-match {
  display: grid;
  gap: 10px;
  min-height: 164px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.24);
  transition: border-color 90ms ease-out, background-color 90ms ease-out;
}

.match-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
}

.swap-sides-button {
  position: relative;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  min-height: 34px;
  padding: 0;
  border: 1px solid rgba(108, 230, 223, 0.32);
  border-radius: 7px;
  background: rgba(25, 199, 187, 0.1);
  color: var(--teal);
  font-size: 0;
  cursor: pointer;
  user-select: none;
}

.swap-sides-button::before {
  content: "⇅";
  color: currentColor;
  font-size: 22px;
  font-weight: 900;
  line-height: 1;
}

.swap-sides-button:disabled {
  cursor: default;
  opacity: 0.36;
}

.slot-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 52px;
  align-items: center;
  gap: 8px;
}

.shootout-row {
  display: grid;
  grid-template-columns: minmax(76px, auto) minmax(0, 1fr);
  gap: 6px 10px;
  align-items: center;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.shootout-row > span:first-child {
  color: var(--teal);
  font-size: 12px;
  font-weight: 900;
}

.shootout-row small {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.shootout-pair {
  justify-self: end;
  grid-template-columns: 36px 8px 36px;
  gap: 4px;
}

.shootout-input {
  width: 36px;
  height: 32px;
}

.slot-name {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  min-width: 0;
  color: #f3f8ff;
  font-weight: 800;
  line-height: 1.35;
}

.slot-name.is-logo-only {
  grid-template-columns: 46px minmax(0, 1fr);
}

.slot-name.is-logo-only .team-logo-only {
  --match-logo-size: 46px;
  grid-row: 1 / 2;
}

.slot-name.is-input-name {
  grid-template-columns: minmax(0, 1fr);
  gap: 2px;
}

.slot-name.is-view-name {
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 9px;
}

.slot-name.is-view-name .team-logo-only {
  --match-logo-size: 46px;
  grid-row: 1 / 3;
}

.slot-name.is-view-name small {
  grid-column: 2;
}

.viewer-slot-team {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.slot-name.is-input-name small {
  grid-column: 1;
  margin-top: 0;
}

.slot-name.is-empty .team-logo-only,
.slot-name.is-empty .input-team-name,
.slot-name.is-empty .viewer-slot-team,
.slot-row.is-empty .score-input,
.score-chip.is-empty {
  visibility: hidden;
}

.slot-name small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  grid-column: 2;
}

.winner-select {
  width: 100%;
  min-height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.96);
  color: #071325;
  font-weight: 700;
}

.shootout-row.is-pending,
.winner-select.is-pending,
.viewer-result.is-empty {
  display: none;
}

.source-link {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: rgba(25, 199, 187, 0.6);
  text-underline-offset: 3px;
}

.source-preview {
  display: grid;
  gap: 14px;
}

.source-preview button {
  width: fit-content;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid rgba(25, 199, 187, 0.55);
  border-radius: 8px;
  background: rgba(25, 199, 187, 0.12);
  color: var(--ink);
  transition:
    border-color 90ms ease-out,
    background-color 90ms ease-out;
}

.source-preview img {
  display: block;
  width: 100%;
  max-height: 70vh;
  object-fit: contain;
  border-radius: 8px;
  background: var(--paper);
}

.viewer-layout {
  grid-template-columns: 240px minmax(0, 1fr);
}

.viewer-content {
  padding-top: 20px;
}

.viewer-hero-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(360px, 1.45fr) minmax(260px, 0.9fr);
  gap: 14px;
  align-items: stretch;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(0, 25, 48, 0.92), rgba(7, 70, 86, 0.76)),
    url("assets/brand/thumbs/tournament-backdrop.webp") center / cover no-repeat;
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: border-color 90ms ease-out, background-color 90ms ease-out;
}

.viewer-hero-card::before {
  content: none;
}

.viewer-hero-card h3 {
  font-size: clamp(32px, 4vw, 54px);
}

.viewer-hero-card p {
  color: rgba(247, 251, 255, 0.78);
  line-height: 1.5;
}

.viewer-hero-main,
.viewer-focus-panel,
.viewer-side-panel {
  min-width: 0;
}

.viewer-hero-main {
  display: grid;
  align-content: center;
  gap: 12px;
  padding: 14px;
}

.progress-track {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
}

.progress-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--teal), #f7f3d1);
}

.progress-label {
  color: #f7f3d1;
  font-size: 14px;
}

.viewer-focus-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 12px;
}

.focus-card,
.recent-results {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(0, 15, 30, 0.58);
  transition: border-color 90ms ease-out, background-color 90ms ease-out;
}

.focus-card .ui-icon {
  width: 40px;
  height: 40px;
}

.focus-card > span:not(.brand-icon),
.recent-results > span {
  color: var(--teal);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.focus-card > strong {
  font-size: 24px;
}

.focus-card small,
.recent-results small {
  color: var(--muted);
  line-height: 1.45;
}

.mini-match {
  display: grid;
  grid-template-columns: 48px 34px 48px;
  gap: 12px;
  align-items: center;
  justify-content: start;
  justify-self: start;
}

.mini-match span {
  display: grid;
  place-items: center;
  align-items: center;
  min-width: 0;
  font-weight: 900;
}

.mini-match .team-logo-only {
  --match-logo-size: 38px;
}

.mini-match span:last-child {
  justify-content: center;
  text-align: center;
}

.mini-match em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  text-align: center;
  font-weight: 900;
}

.leader-list {
  display: grid;
  gap: 7px;
}

.leader-list div {
  display: grid;
  grid-template-columns: 34px 30px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  min-width: 0;
}

.leader-list span,
.leader-list em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.leader-list strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.viewer-side-panel {
  display: grid;
  gap: 12px;
}

.logo-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  grid-column: 1 / -1;
  max-height: 72px;
  overflow: hidden;
  padding: 10px 12px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.logo-cloud .team-logo {
  width: 36px;
  height: 36px;
}

.hero-stats {
  display: grid;
  gap: 8px;
}

.hero-stats div {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 2px 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
}

.hero-stats span:not(.brand-icon) {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.hero-stats strong {
  display: block;
  grid-column: 2;
  font-size: 22px;
}

.recent-results {
  gap: 8px;
}

.mini-result {
  display: grid;
  grid-template-columns: 44px 42px 48px 42px;
  gap: 7px;
  align-items: center;
  color: rgba(247, 251, 255, 0.9);
  font-size: 12px;
}

.mini-result span {
  color: var(--muted);
}

.mini-result strong {
  display: grid;
  place-items: center;
}

.mini-result em {
  display: grid;
  place-items: center;
  min-height: 26px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.9);
  color: #071325;
  font-style: normal;
  font-weight: 900;
}

.viewer-group-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 16px;
}

.viewer-match-list {
  display: grid;
  gap: 1px;
  background: rgba(255, 255, 255, 0.1);
}

.viewer-match {
  display: grid;
  grid-template-columns: 92px 58px 104px 58px;
  gap: 12px;
  align-items: center;
  min-height: 72px;
  padding: 10px 14px;
  background: rgba(7, 22, 36, 0.92);
}

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

.viewer-side {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.viewer-side strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.viewer-side.away {
  justify-content: flex-end;
}

.viewer-side.logo-only-side {
  justify-content: center;
}

.viewer-side.logo-only-side .team-logo-only {
  --match-logo-size: 40px;
}

.viewer-score {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 44px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 28px;
  font-weight: 900;
}

.viewer-score span {
  color: var(--muted);
  font-size: 14px;
}

.viewer-score em {
  color: var(--muted);
  font-style: normal;
}

.score-chip {
  display: grid;
  place-items: center;
  width: 52px;
  height: 40px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  color: #071325;
  font-size: 20px;
}

.view-slot.is-winner .viewer-slot-team,
.view-slot.is-winner .slot-name small {
  color: var(--amber);
}

.viewer-result {
  padding-top: 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--muted);
  font-size: 13px;
}

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

.zoom-tools button {
  width: 48px;
}

.zoom-tools button[data-zoom="reset"] {
  width: 70px;
}

.schedule-list {
  display: grid;
  gap: 22px;
}

.schedule-card {
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(12, 33, 49, 0.7);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: border-color 90ms ease-out, background-color 90ms ease-out;
}

.schedule-card[hidden] {
  display: none;
}

.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(90deg, rgba(16, 45, 63, 0.92), rgba(10, 26, 43, 0.92));
}

.card-title {
  display: flex;
  align-items: center;
  gap: 14px;
}

.grade-mark {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 2px solid rgba(25, 199, 187, 0.66);
  border-radius: 8px;
  color: var(--teal);
  font-size: 28px;
  font-weight: 900;
}

.meta-line {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.card-actions a {
  display: inline-grid;
  place-items: center;
  min-width: 86px;
  padding: 0 12px;
  color: var(--ink);
  text-decoration: none;
}

.image-frame {
  --zoom: 1;
  overflow: auto;
  background: var(--paper);
  max-height: calc(100vh - 232px);
}

.image-frame img {
  display: block;
  width: calc(100% * var(--zoom));
  max-width: none;
  height: auto;
  margin: 0 auto;
}

.summary-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
}

.summary-item {
  min-height: 76px;
  padding: 14px 16px;
  background: rgba(6, 16, 33, 0.88);
  transition: background-color 100ms ease-out;
}

.summary-item span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 6px;
}

.summary-item strong {
  display: block;
  font-size: 15px;
  line-height: 1.38;
}

.lightbox {
  width: min(96vw, 1400px);
  height: 92vh;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: #f3f5f8;
}

.lightbox::backdrop {
  background: rgba(0, 0, 0, 0.82);
}

.lightbox img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.72);
  color: #fff;
}

body[data-page="input"] .top-actions {
  display: none !important;
}

body[data-page="input"] .topbar {
  justify-content: flex-start;
  backdrop-filter: none;
}

body[data-page="input"] .team-logo,
body[data-page="input"] .brand-icon,
body[data-page="input"] .ui-icon {
  filter: none;
}

button:focus-visible,
a:focus-visible,
summary:focus-visible,
select:focus-visible,
input:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
}

.mode-button:active,
.nav-button:active,
.print-button:active,
.zoom-tools button:active,
.card-actions a:active,
.grade-tab:active,
.data-actions button:active,
.source-preview button:active,
.home-primary-link:active {
  background-color: rgba(25, 199, 187, 0.2);
}

@media (hover: hover) and (pointer: fine) {
  .mode-button:hover,
  .nav-button:hover,
  .print-button:hover,
  .zoom-tools button:hover,
  .card-actions a:hover,
  .data-actions button:hover,
  .source-preview button:hover {
    border-color: rgba(108, 230, 223, 0.76);
    background-color: rgba(25, 199, 187, 0.18);
  }

  .home-primary-link:hover {
    border-color: rgba(108, 230, 223, 0.76);
    background-color: #ffffff;
    color: #031a2d;
  }

  .grade-tab:hover {
    border-color: rgba(108, 230, 223, 0.62);
    background-color: rgba(255, 255, 255, 0.09);
  }

  .grade-tab:hover span:first-child {
    background: rgba(25, 199, 187, 0.2);
  }

  .section-shell:hover,
  .group-card:hover,
  .knockout-division:hover,
  .schedule-card:hover {
    border-color: rgba(108, 230, 223, 0.36);
  }

  .group-card:hover,
  .knockout-division:hover,
  .schedule-card:hover {
    background-color: rgba(10, 38, 54, 0.84);
  }

  .section-shell > summary:hover {
    background-color: rgba(25, 199, 187, 0.1);
  }

  .section-shell > summary:hover::after {
    border-color: rgba(108, 230, 223, 0.66);
    background-color: rgba(25, 199, 187, 0.12);
  }

  .knockout-match:hover,
  .focus-card:hover,
  .recent-results:hover {
    border-color: rgba(108, 230, 223, 0.34);
    background-color: rgba(8, 42, 58, 0.62);
  }

  .section-reset-button:hover {
    border-color: rgba(108, 230, 223, 0.58);
    background-color: rgba(25, 199, 187, 0.14);
  }

  .overview-item:hover,
  .summary-item:hover {
    background-color: rgba(12, 44, 60, 0.9);
  }

  .viewer-hero-card:hover {
    border-color: rgba(108, 230, 223, 0.42);
    background-color: rgba(5, 36, 50, 0.62);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media (max-width: 980px) {
  .topbar {
    align-items: start;
    flex-direction: column;
    position: static;
    gap: 14px;
    padding: 18px clamp(14px, 4vw, 28px) 14px;
  }

  .layout {
    display: block;
  }

  .side-panel {
    position: static;
    min-height: 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .grade-tabs {
    grid-template-columns: repeat(5, minmax(64px, 1fr));
    gap: 6px;
  }

  .grade-tab {
    grid-template-columns: 1fr;
    min-height: 58px;
    text-align: center;
  }

  .grade-tab span:first-child {
    min-height: 32px;
    font-size: 20px;
  }

  .grade-tab span:last-child {
    padding: 6px 2px;
    font-size: 12px;
  }

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

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

  .quick-info div {
    margin-bottom: 0;
  }

  .image-frame {
    max-height: none;
  }

  .viewer-layout {
    display: block;
  }

  .viewer-hero-card {
    grid-template-columns: 1fr;
  }

  .viewer-focus-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  body::before,
  body::after {
    position: absolute;
    min-height: 100%;
  }

  .topbar {
    backdrop-filter: none;
  }

  .home-logo,
  .brand-icon,
  .ui-icon,
  .team-logo {
    filter: none;
  }

  .toolbar,
  .card-head {
    align-items: stretch;
    flex-direction: column;
  }

  .top-actions,
  .zoom-tools,
  .card-actions {
    width: 100%;
  }

  .top-actions {
    width: 100%;
    flex-wrap: nowrap;
    gap: 6px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
  }

  .top-actions::-webkit-scrollbar {
    display: none;
  }

  .topbar-logo {
    width: min(220px, 100%);
  }

  .mode-button,
  .nav-button,
  .print-button,
  .zoom-tools button,
  .card-actions a {
    flex: 1 0 auto;
    min-width: 0;
    padding-inline: 10px;
    white-space: nowrap;
    font-size: 13px;
  }

  .viewer-topbar .top-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    overflow: visible;
  }

  .viewer-topbar .mode-button,
  .viewer-topbar .print-button {
    width: 100%;
    padding-inline: 6px;
  }

  body[data-page="input"] .top-actions {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    overflow: visible;
  }

  body[data-page="input"] .mode-button,
  body[data-page="input"] .nav-button,
  body[data-page="input"] .print-button {
    width: 100%;
    padding-inline: 4px;
  }

  h1 {
    font-size: 24px;
  }

  h2 {
    font-size: 21px;
  }

  .quick-info,
  .summary-strip,
  .overview-grid {
    grid-template-columns: 1fr;
  }

  .side-panel {
    padding: 14px 12px;
  }

  .grade-tabs {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 5px;
  }

  .grade-tab {
    min-height: 52px;
    border-radius: 6px;
  }

  .grade-tab span:first-child {
    min-height: 30px;
    font-size: 18px;
  }

  .grade-tab span:last-child {
    padding: 5px 1px;
    font-size: 11px;
    line-height: 1.1;
  }

  .data-actions,
  .section-title {
    align-items: stretch;
    flex-direction: column;
  }

  .content {
    padding-inline: 12px;
  }

  .home-shell {
    gap: 28px;
    padding: 24px 18px;
  }

  .home-hero {
    align-content: start;
    gap: 24px;
    padding-top: 8vh;
  }

  .home-primary-link {
    width: 100%;
  }

  .home-info-grid {
    grid-template-columns: 1fr;
  }

  .home-info-grid div {
    grid-template-columns: 34px minmax(0, 1fr);
    min-height: 0;
    padding: 13px 14px;
  }

  .home-info-grid .brand-icon {
    width: 34px;
    height: 34px;
  }

  .home-brand-strip {
    gap: 12px;
  }

  .viewer-hero-card {
    gap: 10px;
    padding: 10px;
  }

  .viewer-hero-main,
  .focus-card,
  .recent-results {
    padding: 12px;
  }

  .focus-card .ui-icon {
    width: 34px;
    height: 34px;
  }

  .viewer-focus-panel,
  .viewer-side-panel {
    grid-template-columns: 1fr;
  }

  .viewer-hero-card h3 {
    font-size: 34px;
  }

  .logo-cloud {
    flex-wrap: nowrap;
    max-height: none;
    overflow-x: auto;
    overflow-y: visible;
    padding: 8px 8px 10px;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
  }

  .logo-cloud::-webkit-scrollbar {
    display: none;
  }

  .logo-cloud .team-logo {
    width: 30px;
    height: 30px;
  }

  .card-head {
    padding: 16px;
  }

  .match-table-wrap {
    overflow-x: visible;
  }

  .match-table,
  .match-table tbody,
  .match-table tr,
  .match-table td {
    display: block;
  }

  .match-table {
    min-width: 0;
    width: 100%;
  }

  .match-table caption {
    display: block;
    width: 100%;
  }

  .home-actions,
  .viewer-group-grid {
    grid-template-columns: 1fr;
  }

  .section-shell > summary {
    align-items: start;
    flex-direction: column;
    padding: 14px 16px;
  }

  .section-shell > summary span {
    margin-left: 0;
  }

  .viewer-match {
    grid-template-columns: minmax(0, 1fr) 78px minmax(0, 1fr);
    gap: 8px;
    min-height: 86px;
    padding: 12px;
  }

  .viewer-time {
    grid-column: 1 / -1;
  }

  .viewer-score {
    min-height: 42px;
    font-size: 22px;
  }

  .viewer-side {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .viewer-side.away {
    align-items: flex-end;
    text-align: right;
  }

  .viewer-side.logo-only-side,
  .viewer-side.away.logo-only-side {
    align-items: center;
    justify-content: center;
    text-align: center;
  }

  .viewer-side .team-logo {
    width: 30px;
    height: 30px;
  }

  .viewer-side.logo-only-side .team-logo-only {
    --match-logo-size: 36px;
  }

  .viewer-side strong {
    max-width: 100%;
    white-space: normal;
    line-height: 1.24;
  }

  .mini-match {
    grid-template-columns: 44px 30px 44px;
    gap: 10px;
    justify-content: start;
  }

  .mini-match em {
    text-align: center;
  }

  .mini-match span:last-child {
    justify-content: center;
    text-align: center;
  }

  .mini-result {
    grid-template-columns: 40px 38px 42px 38px;
  }

  .match-table thead {
    display: none;
  }

  .match-table tr {
    display: grid;
    grid-template-columns: 52px 58px 42px minmax(96px, 1fr) 42px;
    gap: 6px 8px;
    padding: 11px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }

  .match-table td {
    border-bottom: 0;
    padding: 0;
    width: auto;
  }

  .match-table td:nth-child(1) {
    grid-column: 1;
    width: auto;
  }

  .match-table td:nth-child(2) {
    grid-column: 2;
    width: auto;
  }

  .match-table td:nth-child(3) {
    grid-column: 3;
    justify-self: center;
  }

  .match-table td:nth-child(4) {
    grid-column: 4;
    align-self: center;
    justify-self: stretch;
    width: 100%;
  }

  .match-table td:nth-child(5) {
    grid-column: 5;
    justify-self: center;
    text-align: center;
    min-width: 0;
    max-width: 100%;
  }

  .match-table .team-cell {
    min-width: 0;
  }

  .match-table .team-logo-only {
    --match-logo-size: 34px;
  }

  .match-table .score-pair {
    width: 100%;
    grid-template-columns: minmax(0, 1fr) 8px minmax(0, 1fr);
  }

  .match-table .score-input {
    width: 100%;
    min-width: 0;
  }

  body[data-page="input"] .topbar {
    gap: 10px;
    padding: 12px;
  }

  body[data-page="input"] .topbar-logo {
    width: 156px;
  }

  body[data-page="input"] h1 {
    font-size: 20px;
  }

  body[data-page="input"] .eyebrow,
  body[data-page="input"] .section-label {
    margin-bottom: 5px;
    font-size: 12px;
  }

  body[data-page="input"] .side-panel {
    padding: 10px 10px 12px;
  }

  body[data-page="input"] .panel-heading {
    margin-bottom: 10px;
  }

  body[data-page="input"] .quick-info,
  body[data-page="input"] .data-actions,
  body[data-page="input"] .overview-grid,
  body[data-page="input"] .group-card > .table-wrap:not(.match-table-wrap) {
    display: none;
  }

  body[data-page="input"] .content {
    padding-top: 14px;
  }

  body[data-page="input"] .toolbar {
    margin-bottom: 12px;
  }

  body[data-page="input"] .section-shell > summary {
    min-height: 0;
    padding: 12px;
    font-size: 18px;
  }

  body[data-page="input"] .section-shell > summary span {
    display: none;
  }

  body[data-page="input"] .section-tools {
    padding: 10px 8px 0;
  }

  body[data-page="input"] .section-reset-button {
    width: 100%;
    min-height: 44px;
    font-size: 14px;
  }

  body[data-page="input"] .section-shell > .group-grid,
  body[data-page="input"] .section-shell > .knockout-division {
    margin: 8px;
  }

  body[data-page="input"] .group-grid {
    gap: 10px;
  }

  body[data-page="input"] .group-head,
  body[data-page="input"] .division-head {
    padding: 12px;
  }

  body[data-page="input"] .group-card .team-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 10px;
  }

  body[data-page="input"] .group-card .team-list div {
    grid-template-columns: 20px 30px minmax(0, 1fr);
    min-height: 42px;
    padding: 6px;
  }

  body[data-page="input"] .group-card .team-list .team-logo {
    width: 30px;
    height: 30px;
  }

  body[data-page="input"] .group-card .team-list strong {
    font-size: 12px;
  }

  body[data-page="input"] .match-table caption {
    padding: 12px;
    font-size: 18px;
  }

  body[data-page="input"] .match-table tr {
    grid-template-columns: minmax(0, 1fr) 116px minmax(0, 1fr);
    grid-template-areas:
      "time field field"
      "home score away";
    gap: 8px 10px;
    min-height: 106px;
    padding: 13px 10px;
  }

  body[data-page="input"] .match-table td:nth-child(1),
  body[data-page="input"] .match-table td:nth-child(2) {
    align-self: start;
    font-size: 14px;
    font-weight: 800;
  }

  body[data-page="input"] .match-table td:nth-child(1) {
    grid-area: time;
    justify-self: start;
  }

  body[data-page="input"] .match-table td:nth-child(2) {
    grid-area: field;
    justify-self: start;
  }

  body[data-page="input"] .match-table td:nth-child(3) {
    grid-area: home;
    align-self: center;
    justify-self: stretch;
    text-align: left;
  }

  body[data-page="input"] .match-table td:nth-child(4) {
    grid-area: score;
    align-self: center;
    justify-self: stretch;
  }

  body[data-page="input"] .match-table td:nth-child(5) {
    grid-area: away;
    align-self: center;
    justify-self: stretch;
    text-align: right;
  }

  body[data-page="input"] .match-table .input-team-name {
    font-size: 14px;
    line-height: 1.25;
  }

  body[data-page="input"] .match-table .score-pair {
    grid-template-columns: minmax(0, 1fr) 10px minmax(0, 1fr);
    gap: 6px;
    justify-items: stretch;
  }

  body[data-page="input"] .score-input {
    min-height: 52px;
    border-radius: 8px;
    font-size: 22px;
  }

  body[data-page="input"] .knockout-grid {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 10px;
  }

  body[data-page="input"] .knockout-match {
    gap: 12px;
    padding: 14px;
  }

  body[data-page="input"] .match-meta {
    flex-wrap: wrap;
    font-size: 13px;
  }

  body[data-page="input"] .swap-sides-button {
    width: 34px;
    height: 34px;
    min-height: 34px;
    margin-left: auto;
  }

  body[data-page="input"] .slot-row {
    grid-template-columns: minmax(0, 1fr) 62px;
    gap: 10px;
  }

  body[data-page="input"] .slot-name.is-input-name {
    grid-template-columns: minmax(0, 1fr);
  }

  body[data-page="input"] .slot-name.is-input-name .input-team-name {
    line-height: 1.22;
  }

  body[data-page="input"] .slot-row .score-input {
    width: 62px;
  }

  body[data-page="input"] .shootout-row {
    grid-template-columns: minmax(76px, auto) minmax(0, 1fr);
    gap: 8px 10px;
  }

  body[data-page="input"] .shootout-pair {
    grid-template-columns: 52px 10px 52px;
  }

  body[data-page="input"] .shootout-input {
    width: 52px;
    min-height: 48px;
  }

  body[data-page="input"] .winner-select {
    min-height: 52px;
    border-radius: 8px;
    font-size: 16px;
  }
}

@media print {
  body {
    background: #fff;
    color: #000;
  }

  .topbar,
  .side-panel,
  .toolbar,
  .card-actions,
  .summary-strip {
    display: none;
  }

  .layout,
  .content,
  .schedule-list {
    display: block;
    padding: 0;
  }

  .schedule-card {
    break-after: page;
    border: 0;
    box-shadow: none;
  }

  .schedule-card[hidden] {
    display: block;
  }

  .card-head {
    color: #000;
    background: #fff;
    border: 0;
  }

  .image-frame {
    max-height: none;
    overflow: visible;
  }
}
