:root {
  color-scheme: light;
  --bg: #f3efe6;
  --panel: rgba(255, 252, 246, 0.92);
  --line: #d5c8b4;
  --text: #1e1a14;
  --muted: #645949;
  --accent: #0f6f62;
  --accent-strong: #094f45;
  --warn: #a14b16;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: "PingFang SC", "Noto Serif SC", serif;
  background:
    radial-gradient(circle at top left, rgba(15, 111, 98, 0.14), transparent 26%),
    radial-gradient(circle at bottom right, rgba(161, 75, 22, 0.12), transparent 28%),
    linear-gradient(180deg, #faf5eb 0%, var(--bg) 100%);
}

.shell {
  max-width: 1560px;
  margin: 0 auto;
  padding: 36px 28px 60px;
}

.top-tabs {
  display: grid;
  gap: 18px;
}

.tab-list {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
  max-width: 100%;
  padding: 10px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  border: 1px solid rgba(15, 111, 98, 0.14);
  border-radius: 999px;
  background: rgba(255, 252, 246, 0.78);
  box-shadow: 0 18px 40px rgba(30, 26, 20, 0.06);
  scrollbar-width: thin;
}

.tab-trigger {
  flex: 0 0 auto;
  border: none;
  border-radius: 999px;
  padding: 12px 22px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.tab-trigger:hover {
  transform: translateY(-1px);
}

.tab-trigger.is-active {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: white;
  box-shadow: 0 12px 28px rgba(15, 111, 98, 0.2);
}

.tab-panel-group[hidden] {
  display: none;
}

.hero,
.panel,
.login-card {
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: 0 24px 60px rgba(30, 26, 20, 0.08);
}

.hero {
  display: grid;
  grid-template-columns: 1fr minmax(260px, 320px);
  gap: 20px;
  align-items: start;
  padding: 28px;
  border-radius: 28px;
}

.eyebrow {
  margin: 0 0 10px;
  letter-spacing: 0.16em;
  font-size: 12px;
  text-transform: uppercase;
  color: var(--accent);
}

h1,
h2,
h3 {
  margin: 0;
}

h1 {
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.02;
}

.sub,
.hint,
.user-card p {
  color: var(--muted);
}

.sub {
  margin: 14px 0 0;
  max-width: 700px;
  line-height: 1.7;
}

.user-card {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(15, 111, 98, 0.16);
}

.avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--accent), #77b7a0);
  color: white;
  font-size: 24px;
  font-weight: 700;
}

.panel {
  margin-top: 24px;
  border-radius: 24px;
  padding: 24px;
}

.tab-panel-group > .panel:first-child,
.tab-panel-group > .hero:first-child {
  margin-top: 0;
}

form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

label {
  display: grid;
  gap: 8px;
  font-size: 14px;
}

label span {
  color: var(--muted);
}

label.full,
.actions {
  grid-column: 1 / -1;
}

fieldset {
  margin: 0;
  border: 1px solid rgba(100, 89, 73, 0.18);
  border-radius: 20px;
  padding: 18px;
}

legend {
  padding: 0 8px;
  color: var(--muted);
}

input,
textarea,
button {
  font: inherit;
}

input,
textarea {
  width: 100%;
  border: 1px solid rgba(100, 89, 73, 0.22);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--text);
  padding: 14px 16px;
}

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

.logic-box {
  min-height: 150px;
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  background: rgba(255, 250, 241, 0.96);
}

.rule-guide-card {
  margin-bottom: 0;
}

.threshold-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

button,
.primary-link,
.ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  padding: 12px 18px;
  text-decoration: none;
  transition: transform 160ms ease, background 160ms ease;
}

button,
.primary-link {
  border: none;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: white;
  font-weight: 700;
  cursor: pointer;
}

button:hover,
.primary-link:hover,
.ghost-btn:hover {
  transform: translateY(-1px);
}

button:disabled {
  cursor: wait;
  opacity: 0.75;
}

.ghost-btn {
  background: transparent;
  border: 1px solid rgba(15, 111, 98, 0.18);
  color: var(--accent-strong);
}

.ghost-btn.small {
  padding: 8px 14px;
  font-size: 13px;
}

.actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.inline-alert {
  margin: 0;
  color: #c63a32;
  font-size: 14px;
  line-height: 1.6;
  font-weight: 700;
}

.angle-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(240px, 1fr));
  gap: 18px;
  margin-top: 16px;
}

.angle-chip {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  min-height: 190px;
  padding: 18px 16px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(100, 89, 73, 0.14);
}

.angle-chip input {
  width: 18px;
  height: 18px;
  margin-top: 3px;
}

.angle-chip span {
  display: grid;
  gap: 10px;
}

.angle-chip strong {
  font-size: 16px;
  line-height: 1.45;
}

.angle-chip small {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}

.result-head,
.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.badge {
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(15, 111, 98, 0.08);
  color: var(--accent);
  font-size: 13px;
}

.badge.subtle {
  background: rgba(15, 111, 98, 0.06);
}

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

.card {
  border: 1px solid rgba(100, 89, 73, 0.18);
  border-radius: 20px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.7);
}

.card h3 {
  margin-bottom: 12px;
  font-size: 18px;
}

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

.meta-row {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 12px;
  line-height: 1.6;
}

.expert-list {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.rule-list {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.7;
}

.expert-card {
  padding: 16px;
  border: 1px solid rgba(100, 89, 73, 0.14);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.64);
}

.expert-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.expert-head h4,
.inner-card h4 {
  margin: 0;
}

.expert-meta,
.expert-example,
.draft-sub,
.empty-state {
  color: var(--muted);
  line-height: 1.6;
}

.draft-list {
  display: grid;
  gap: 20px;
  margin-top: 20px;
}

.draft-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.74), rgba(248, 244, 236, 0.9));
}

.plain-draft-card {
  padding: 16px;
}

.plain-draft-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.publish-btn {
  border-color: rgba(15, 111, 98, 0.42);
  background: rgba(15, 111, 98, 0.08);
  font-weight: 800;
}

.publish-btn.is-success {
  border-color: rgba(15, 111, 98, 0.24);
  background: rgba(15, 111, 98, 0.14);
  color: var(--accent-strong);
}

.publish-btn.has-new-draft {
  border-color: rgba(173, 103, 20, 0.45);
  background: rgba(173, 103, 20, 0.1);
  color: #8a4f0e;
}

.plain-draft-text {
  display: grid;
  gap: 14px;
  line-height: 1.9;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(100, 89, 73, 0.18);
  border-radius: 18px;
  padding: 20px;
}

.plain-draft-line,
.plain-draft-body {
  font-size: 16px;
}

.plain-draft-line strong,
.plain-draft-body strong {
  font-weight: 700;
}

.plain-draft-title {
  font-size: 18px;
}

.plain-draft-paragraphs {
  margin-top: 8px;
}

.plain-draft-paragraphs p {
  margin: 0 0 1em;
}

.plain-draft-paragraphs p:last-child {
  margin-bottom: 0;
}

.draft-top,
.draft-actions {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.draft-grid {
  margin: 14px 0;
}

.inner-card {
  margin-top: 14px;
}

.inner-card textarea {
  min-height: auto;
}

iframe {
  width: 100%;
  min-height: 620px;
  border: 1px solid rgba(100, 89, 73, 0.18);
  border-radius: 18px;
  margin-top: 14px;
  background: white;
}

.warning,
.message {
  border-radius: 16px;
  padding: 14px 16px;
  line-height: 1.6;
}

.warning,
.message.warn {
  background: rgba(255, 239, 225, 0.92);
  border: 1px solid rgba(161, 75, 22, 0.18);
  color: var(--warn);
}

.message.ok {
  background: rgba(230, 250, 244, 0.9);
  border: 1px solid rgba(15, 111, 98, 0.18);
  color: var(--accent-strong);
}

.role-pill {
  display: inline-flex;
  width: fit-content;
  margin-top: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(15, 111, 98, 0.08);
  color: var(--accent-strong);
  font-size: 12px;
  text-transform: uppercase;
}

.login-body {
  display: grid;
  place-items: center;
  padding: 24px;
}

.login-card {
  width: min(520px, 100%);
  border-radius: 28px;
  padding: 32px 28px;
}

.login-option {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(100, 89, 73, 0.16);
}

.login-option h2 {
  font-size: 20px;
}

.password-login-form {
  grid-template-columns: 1fr;
}

.placeholder-panel {
  min-height: 220px;
  display: grid;
  align-content: start;
  gap: 12px;
}

.injuries-panel {
  display: grid;
  gap: 18px;
}

.injury-split-layout,
.injury-summary-grid,
.injury-team-grid {
  display: grid;
  gap: 16px;
}

.injury-split-layout {
  grid-template-columns: minmax(0, 1.4fr) minmax(320px, 0.6fr);
  align-items: start;
}

.injury-main-column,
.injury-side-column {
  display: grid;
  gap: 16px;
}

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

.injury-metric-card h3,
.injury-match-card h3,
.injury-article-card h3,
.injury-team-block h4,
.injury-source-card h3 {
  margin: 4px 0 0;
}

.injury-source-card,
.injury-article-card,
.injury-match-card {
  padding: 18px;
}

.injury-source-top,
.injury-article-top,
.injury-match-top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.injury-source-card-muted {
  min-height: 240px;
  background: linear-gradient(180deg, rgba(247, 243, 235, 0.8), rgba(255, 255, 255, 0.7));
}

.injury-clipboard-text {
  min-height: 320px !important;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 14px;
}

.injury-article-body {
  margin-top: 16px;
  display: grid;
  gap: 10px;
  line-height: 1.75;
}

.injury-article-body p {
  margin: 0;
}

.injury-team-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 16px;
}

.injury-team-block {
  border: 1px solid rgba(100, 89, 73, 0.16);
  border-radius: 16px;
  background: rgba(255, 252, 247, 0.72);
  padding: 14px 16px;
}

.injury-player-list {
  margin: 12px 0 0;
  padding-left: 18px;
  display: grid;
  gap: 10px;
}

.injury-player-list li {
  display: grid;
  gap: 4px;
  line-height: 1.6;
}

.injury-player-list li span {
  color: var(--muted);
}

.more-articles-panel {
  display: grid;
  gap: 18px;
}

.source-filter-list {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.source-filter-btn {
  border: 1px solid rgba(15, 111, 98, 0.18);
  border-radius: 999px;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.84);
  color: var(--muted);
  font-weight: 700;
}

.source-filter-btn.is-active {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  border-color: transparent;
  color: white;
  box-shadow: 0 12px 24px rgba(15, 111, 98, 0.18);
}

.more-articles-form {
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr;
}

.more-articles-input {
  min-height: 220px;
}

.more-articles-summary,
.more-articles-stored,
.more-article-source-catalog {
  display: grid;
  gap: 14px;
}

.more-articles-official {
  display: grid;
  gap: 14px;
}

.handicap-panel {
  display: grid;
  gap: 18px;
}

.handicap-subtabs {
  margin-top: 2px;
}

.handicap-article-list {
  margin-top: 18px;
}

.more-source-card h3,
.more-summary-card h3,
.more-article-card h3,
.more-stored-card h3,
.more-official-card h3 {
  margin: 4px 0 0;
}

.more-source-description {
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.more-source-endpoint {
  margin: 14px 0 0;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 250, 241, 0.92);
  border: 1px solid rgba(100, 89, 73, 0.16);
  overflow-x: auto;
}

.more-source-endpoint code {
  white-space: pre-wrap;
  word-break: break-all;
}

.more-source-block,
.more-article-block {
  margin-top: 16px;
  display: grid;
  gap: 10px;
}

.more-official-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.more-official-block {
  margin-top: 14px;
  display: grid;
  gap: 8px;
}

.more-official-block h4 {
  margin: 0;
}

.more-official-block p,
.more-official-pre {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
  white-space: pre-wrap;
}

.more-source-block h4,
.more-article-block h4 {
  margin: 0;
}

.more-source-list,
.more-article-list {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 10px;
}

.more-source-list li,
.more-article-list li {
  display: grid;
  gap: 4px;
  line-height: 1.6;
}

.more-article-list li span,
.more-stored-excerpt,
.more-article-list.muted {
  color: var(--muted);
}

.mini-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.future-panel {
  display: grid;
  gap: 18px;
}

.future-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
}

.future-toolbar {
  display: flex;
  gap: 12px;
  align-items: flex-end;
  flex-wrap: wrap;
}

.future-date-field {
  display: grid;
  gap: 6px;
  min-width: 180px;
}

.future-date-field span,
.future-field span {
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
}

.future-preview-card {
  padding: 18px;
}

.future-preview-top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.future-preview-top h3 {
  margin: 4px 0 0;
}

.future-preview-card.is-missing {
  border-left: 3px solid var(--warn);
}

.future-preview-status {
  line-height: 1.5;
}

.preview-scheduler-status {
  margin-top: 4px;
  line-height: 1.5;
  color: var(--muted);
}

.preview-state-detail {
  margin: 10px 0 0;
  color: var(--warn);
  font-size: 14px;
  line-height: 1.6;
}

.future-preview-actions,
.future-raw-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.future-fields {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.future-field {
  display: grid;
  gap: 8px;
}

.future-field input[readonly],
.future-field textarea[readonly] {
  width: 100%;
  border: 1px solid rgba(100, 89, 73, 0.18);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
  padding: 14px 16px;
  font: inherit;
  line-height: 1.7;
}

.future-field textarea[readonly] {
  resize: vertical;
  min-height: 120px;
}

.future-body-text {
  min-height: 420px !important;
}

.future-html-text,
.future-markdown-text {
  min-height: 220px !important;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
}

.future-notes {
  margin-top: 14px;
  display: grid;
  gap: 6px;
  color: var(--muted);
}

.future-notes p {
  margin: 0;
}

.future-angle-list {
  margin-top: 18px;
  border-top: 1px dashed rgba(100, 89, 73, 0.24);
  padding-top: 18px;
  display: grid;
  gap: 14px;
}

.future-angle-header h4,
.future-angle-top h4 {
  margin: 0;
}

.future-angle-header p {
  margin: 6px 0 0;
  color: var(--muted);
}

.future-angle-item {
  border: 1px solid rgba(100, 89, 73, 0.16);
  border-radius: 16px;
  background: rgba(255, 252, 247, 0.7);
  padding: 14px 16px;
}

.future-angle-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.future-angle-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.future-angle-body {
  margin-top: 12px;
  display: grid;
  gap: 10px;
  line-height: 1.75;
}

.future-angle-body p {
  margin: 0;
}

.future-brief-match {
  padding: 18px;
}

.future-brief-match-top,
.future-brief-article-top {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
}

.future-brief-match-top h3,
.future-brief-article-top h4 {
  margin: 4px 0 0;
}

.future-source-link {
  text-decoration: none;
  white-space: nowrap;
}

.future-brief-articles {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}

.future-brief-article {
  border: 1px solid rgba(100, 89, 73, 0.16);
  border-radius: 16px;
  background: rgba(255, 252, 247, 0.72);
  padding: 14px 16px;
}

.future-brief-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.future-brief-body {
  margin-top: 12px;
  display: grid;
  gap: 10px;
  line-height: 1.75;
}

.future-brief-body p,
.empty-inline {
  margin: 0;
}

.empty-inline {
  color: var(--muted);
}

.corner-match-card {
  padding: 18px;
}

.corner-teams {
  margin-top: 16px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  font-weight: 700;
}

.corner-teams span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.corner-teams span:last-child {
  text-align: right;
}

.corner-teams strong {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0;
}

.corner-summary-panel {
  margin-top: 16px;
  border: 1px solid rgba(15, 111, 98, 0.18);
  border-radius: 8px;
  background: rgba(239, 250, 247, 0.72);
  padding: 14px;
  display: grid;
  gap: 12px;
}

.corner-summary-text {
  display: grid;
  gap: 8px;
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.75;
}

.corner-summary-text p {
  margin: 0;
}

.corner-summary-actions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}

.corner-summary-publish {
  min-width: 112px;
}

.corner-recent-row {
  margin-top: 16px;
  display: grid;
  gap: 10px;
}

.corner-recent-label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.corner-pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

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

.corner-team-row {
  display: grid;
  grid-template-columns: minmax(92px, 150px) minmax(0, 1fr);
  align-items: center;
  gap: 12px;
}

.corner-team-name {
  color: var(--text);
  font-weight: 700;
  overflow-wrap: anywhere;
}

.corner-team-name small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.3;
}

.corner-pill {
  position: relative;
  min-width: 118px;
  min-height: 86px;
  padding: 10px 10px 9px;
  border-radius: 8px;
  border: 1px solid rgba(15, 111, 98, 0.18);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(246, 242, 234, 0.92));
  box-shadow: 0 8px 20px rgba(30, 26, 20, 0.06);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  font-weight: 800;
}

.corner-pill-side {
  align-self: flex-start;
  border-radius: 999px;
  padding: 3px 8px;
  background: rgba(15, 111, 98, 0.1);
  color: var(--accent-strong);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.1;
}

.corner-pill.is-away .corner-pill-side {
  background: rgba(161, 75, 22, 0.1);
  color: var(--warn);
}

.corner-pill-total {
  color: var(--text);
  display: grid;
  justify-items: center;
  gap: 1px;
  line-height: 1.1;
}

.corner-pill-total strong {
  font-size: 28px;
  line-height: 1;
}

.corner-pill-total span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.corner-pill-team {
  width: 100%;
  border-radius: 7px;
  padding: 4px 8px;
  background: rgba(15, 111, 98, 0.08);
  color: var(--accent-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.corner-pill-team strong {
  font-size: 15px;
}

.half-full-match-card {
  padding: 18px;
}

.half-full-team-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.half-full-team-block {
  border: 1px solid rgba(100, 89, 73, 0.14);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.7);
  overflow: hidden;
}

.half-full-team-head {
  padding: 14px 14px 10px;
}

.half-full-team-head h4 {
  margin: 4px 0 0;
}

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

.half-full-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 420px;
}

.half-full-table th,
.half-full-table td {
  padding: 10px 12px;
  border-top: 1px solid rgba(100, 89, 73, 0.12);
  text-align: left;
  vertical-align: top;
  font-size: 13px;
}

.half-full-table th {
  color: var(--muted);
  font-weight: 800;
  background: rgba(255, 250, 241, 0.82);
}

.half-full-table td:nth-child(2),
.half-full-table td:nth-child(3),
.half-full-table td:nth-child(4),
.half-full-table th:nth-child(2),
.half-full-table th:nth-child(3),
.half-full-table th:nth-child(4) {
  width: 64px;
  text-align: center;
  white-space: nowrap;
}

.half-full-table td strong,
.half-full-table td span {
  display: block;
}

.half-full-table td span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.half-full-recommendation {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(100, 89, 73, 0.16);
}

.half-full-recommendation h4 {
  margin: 5px 0 0;
  font-size: 17px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.half-full-recommendation-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.half-full-recommendation-grid p {
  min-width: 0;
  min-height: 66px;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid rgba(100, 89, 73, 0.14);
  border-radius: 8px;
  background: rgba(255, 250, 241, 0.58);
}

.half-full-recommendation-grid span,
.half-full-recommendation-grid strong {
  display: block;
}

.half-full-recommendation-grid span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.half-full-recommendation-grid strong {
  margin-top: 5px;
  font-size: 15px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.half-full-article-preview {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed rgba(100, 89, 73, 0.2);
}

.half-full-article-preview summary {
  cursor: pointer;
  color: var(--accent-strong);
  font-weight: 800;
}

.half-full-article-preview .future-angle-body {
  margin-top: 12px;
}

.half-full-article-missing {
  margin-top: 16px;
}

.future-issues {
  margin: 8px 0 0;
  padding-left: 18px;
}

.future-raw-block {
  margin-top: 16px;
  border-top: 1px dashed rgba(100, 89, 73, 0.24);
  padding-top: 16px;
}

.future-raw-block summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--accent-strong);
  margin-bottom: 12px;
}

.pending-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.user-table {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.admin-runtime-head,
.admin-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.admin-runtime-head h3,
.admin-section-head h3 {
  margin: 0;
  font-size: 16px;
}

.admin-runtime-status {
  margin: 12px 0 24px;
}

.admin-runtime-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  border-top: 1px solid rgba(100, 89, 73, 0.14);
}

.admin-runtime-row {
  min-width: 0;
  padding: 12px 12px 12px 0;
  border-bottom: 1px solid rgba(100, 89, 73, 0.14);
}

.admin-runtime-row dt {
  color: var(--muted);
  font-size: 12px;
}

.admin-runtime-row dd {
  margin: 4px 0 0;
  overflow-wrap: anywhere;
  font-weight: 700;
}

.admin-runtime-warning {
  margin-top: 12px;
}

.admin-section-head {
  padding-top: 20px;
  border-top: 1px solid rgba(100, 89, 73, 0.14);
}

@media (max-width: 720px) {
  .admin-runtime-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.user-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
  border: 1px solid rgba(100, 89, 73, 0.14);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
}

.user-row p {
  margin: 6px 0 0;
  color: var(--muted);
}

.user-row-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.role-select {
  min-width: 120px;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid rgba(100, 89, 73, 0.22);
  background: rgba(255, 255, 255, 0.92);
}

.poster-panel {
  display: grid;
  gap: 18px;
  overflow: visible;
}

.poster-list-view,
.poster-match-groups,
.poster-status-group,
.poster-date-group,
.poster-editor-view {
  display: grid;
}

.poster-list-view {
  gap: 18px;
}

.poster-list-view[hidden],
.poster-editor-view[hidden] {
  display: none;
}

.poster-list-toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
}

.poster-list-search {
  width: min(620px, 100%);
}

.poster-list-search > span:first-child {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.poster-list-search-shell {
  position: relative;
  display: block;
}

.poster-list-search-shell input {
  width: 100%;
  min-height: 46px;
  padding-right: 44px;
}

.poster-list-search-shell input::-webkit-search-cancel-button {
  appearance: none;
}

.poster-search-clear {
  position: absolute;
  top: 50%;
  right: 7px;
  width: 32px;
  min-height: 32px;
  padding: 0;
  border-radius: 8px;
  background: transparent;
  box-shadow: none;
  color: var(--muted);
  font-size: 22px;
  font-weight: 400;
  transform: translateY(-50%);
}

.poster-search-clear:hover {
  background: rgba(15, 111, 98, 0.08);
  color: var(--accent-strong);
  transform: translateY(-50%);
}

.poster-match-groups {
  gap: 24px;
}

.poster-status-group {
  gap: 16px;
}

.poster-status-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 0 0 10px;
  border-bottom: 2px solid rgba(15, 111, 98, 0.34);
}

.poster-status-heading h3 {
  margin: 0;
  font-size: 18px;
}

.poster-status-heading span {
  color: var(--muted);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.poster-date-group {
  gap: 12px;
}

.poster-date-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 9px;
  border-bottom: 1px solid rgba(100, 89, 73, 0.18);
}

.poster-date-heading h3,
.poster-date-heading h4 {
  margin: 0;
  font-size: 16px;
}

.poster-date-heading span {
  color: var(--muted);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

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

.poster-match-card {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 76px;
  gap: 14px;
  align-items: stretch;
  padding: 15px;
  border: 1px solid rgba(100, 89, 73, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.66);
}

.poster-match-card-main {
  min-width: 0;
  display: grid;
  gap: 13px;
}

.poster-match-meta {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.poster-match-time {
  flex: 0 0 auto;
  color: var(--text);
  font-size: 15px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.poster-match-competition {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.poster-match-teams {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 32px minmax(0, 1fr);
  gap: 9px;
  align-items: center;
}

.poster-match-team {
  min-width: 0;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 9px;
  align-items: center;
}

.poster-match-team.is-away {
  grid-template-columns: minmax(0, 1fr) 46px;
  text-align: right;
}

.poster-match-team-name {
  min-width: 0;
  overflow: hidden;
  color: var(--text);
  font-size: 15px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.poster-match-logo {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(100, 89, 73, 0.14);
  border-radius: 50%;
  background: rgba(255, 252, 246, 0.9);
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.poster-match-logo img {
  width: 100%;
  height: 100%;
  display: block;
  padding: 4px;
  object-fit: contain;
}

.poster-match-vs {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}

.poster-match-actions {
  display: grid;
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.poster-match-actions button {
  width: 100%;
  min-height: 36px;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 14px;
}

.poster-match-actions .poster-edit-button,
.poster-match-actions .poster-secondary-button {
  border: 1px solid rgba(15, 111, 98, 0.25);
  background: rgba(255, 255, 255, 0.8);
  box-shadow: none;
  color: var(--accent-strong);
}

.poster-match-actions button:disabled {
  cursor: wait;
  opacity: 0.58;
}

.lottery-image-action.is-unavailable:disabled {
  cursor: not-allowed;
}

.lottery-image-match-card {
  grid-template-columns: minmax(0, 1fr) 206px;
  gap: 12px;
}

.lottery-image-actions {
  grid-template-columns: 76px minmax(0, 1fr);
  grid-template-rows: none;
  gap: 8px;
}

.lottery-image-action-column {
  min-width: 0;
  display: grid;
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.lottery-snapshot-action {
  white-space: nowrap;
}

.lottery-article-action {
  white-space: nowrap;
}

.lottery-image-meta {
  flex-wrap: nowrap;
}

.lottery-image-issue {
  flex: 0 0 auto;
  padding: 3px 7px;
  border-radius: 6px;
  background: rgba(15, 111, 98, 0.08);
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.lottery-image-teams {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 32px minmax(0, 1fr);
  gap: 9px;
  align-items: center;
}

.lottery-image-team-name {
  min-width: 0;
  overflow: hidden;
  color: var(--text);
  font-size: 15px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lottery-image-team-name.is-away {
  text-align: right;
}

.lottery-snapshot-dialog {
  width: min(760px, calc(100% - 32px));
  max-width: none;
  max-height: calc(100dvh - 48px);
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(100, 89, 73, 0.24);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  box-shadow: 0 24px 64px rgba(30, 26, 20, 0.24);
}

.lottery-snapshot-dialog::backdrop {
  background: rgba(30, 26, 20, 0.42);
}

.lottery-snapshot-shell {
  min-width: 0;
  display: grid;
  gap: 18px;
  max-height: calc(100dvh - 48px);
  padding: 22px;
  overflow: auto;
}

.lottery-snapshot-head,
.lottery-snapshot-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.lottery-snapshot-head > div {
  min-width: 0;
}

.lottery-snapshot-head h3 {
  margin: 4px 0 0;
  overflow-wrap: anywhere;
  font-size: 20px;
}

.lottery-snapshot-close {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(100, 89, 73, 0.2);
  border-radius: 50%;
  background: #fff;
  box-shadow: none;
  color: var(--muted);
  font-size: 24px;
  line-height: 1;
}

.lottery-snapshot-close:hover {
  border-color: rgba(100, 89, 73, 0.38);
  background: rgba(245, 242, 235, 0.9);
  box-shadow: none;
  transform: none;
}

.lottery-snapshot-meta {
  min-width: 0;
  display: grid;
  gap: 5px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(100, 89, 73, 0.18);
}

.lottery-snapshot-meta strong {
  font-size: 14px;
}

.lottery-snapshot-meta span,
.lottery-snapshot-footer span {
  color: var(--muted);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.lottery-snapshot-table-wrap {
  min-width: 0;
  overflow-x: auto;
  border: 1px solid rgba(100, 89, 73, 0.18);
  border-radius: 6px;
}

.lottery-snapshot-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.lottery-snapshot-table th,
.lottery-snapshot-table td {
  padding: 12px 13px;
  border-bottom: 1px solid rgba(100, 89, 73, 0.14);
  text-align: right;
}

.lottery-snapshot-table th:first-child,
.lottery-snapshot-table td:first-child {
  text-align: left;
}

.lottery-snapshot-table thead th {
  background: rgba(245, 242, 235, 0.78);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.lottery-snapshot-table tbody th {
  color: var(--text);
  font-weight: 700;
}

.lottery-snapshot-table tbody tr:last-child th,
.lottery-snapshot-table tbody tr:last-child td {
  border-bottom: 0;
}

.lottery-snapshot-error.is-positive {
  color: #a43a3a;
  font-weight: 700;
}

.lottery-snapshot-error.is-negative {
  color: #315f91;
  font-weight: 700;
}

.lottery-snapshot-footer {
  padding-top: 2px;
}

.lottery-snapshot-footer button {
  min-width: 112px;
}

.lottery-article-dialog {
  width: min(880px, calc(100% - 32px));
}

.lottery-article-shell {
  gap: 16px;
}

.lottery-article-form {
  min-width: 0;
  display: grid;
  gap: 14px;
}

.lottery-article-field {
  min-width: 0;
  gap: 7px;
  font-weight: 700;
}

.lottery-article-field input,
.lottery-article-field textarea {
  border-radius: 6px;
  background: #fff;
  font-weight: 400;
}

.lottery-article-field input {
  padding: 11px 12px;
}

.lottery-article-image-preview {
  min-width: 0;
  margin: 0;
  display: grid;
  gap: 7px;
}

.lottery-article-image-preview figcaption {
  font-size: 14px;
  font-weight: 700;
}

.lottery-article-image-frame {
  min-width: 0;
  overflow-x: auto;
  border: 1px solid rgba(100, 89, 73, 0.18);
  background: #fff;
}

.lottery-article-image-frame img {
  width: auto;
  height: auto;
  display: block;
  max-width: none;
}

.lottery-article-field textarea {
  min-height: 280px;
  padding: 12px;
  line-height: 1.8;
  overflow-wrap: anywhere;
  resize: vertical;
}

.lottery-article-status {
  margin: 0;
}

.lottery-article-footer {
  align-items: flex-end;
}

.lottery-article-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.lottery-article-actions button {
  min-width: 104px;
  min-height: 38px;
  padding: 8px 13px;
  border-radius: 6px;
}

.poster-list-empty {
  margin: 0;
}

.poster-editor-view {
  gap: 18px;
}

.poster-editor-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(100, 89, 73, 0.18);
}

.poster-editor-bar > div {
  min-width: 0;
  display: grid;
  gap: 4px;
  text-align: right;
}

.poster-editor-bar strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.poster-editor-bar span {
  color: var(--muted);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.poster-workspace {
  display: grid;
  grid-template-columns: minmax(340px, 390px) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.poster-controls {
  border: 1px solid rgba(100, 89, 73, 0.18);
  border-radius: 20px;
  background: rgba(255, 252, 246, 0.72);
  overflow: visible;
}

.poster-control-section {
  display: grid;
  gap: 14px;
  padding: 20px;
  border-bottom: 1px solid rgba(100, 89, 73, 0.14);
}

.poster-control-section:last-child {
  border-bottom: 0;
}

.poster-control-section h3 {
  font-size: 16px;
}

.poster-control-section label > span,
.poster-range-head {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.poster-control-section select {
  width: 100%;
  min-width: 0;
  border: 1px solid rgba(100, 89, 73, 0.22);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--text);
  padding: 14px 16px;
  font: inherit;
}

.poster-control-section select:disabled,
.poster-control-section input:disabled {
  cursor: not-allowed;
  opacity: 0.62;
}

.poster-segmented {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px;
  padding: 5px;
  border-radius: 16px;
  background: rgba(100, 89, 73, 0.09);
}

.poster-segmented label {
  position: relative;
}

.poster-segmented input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.poster-segmented span {
  min-height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: var(--muted);
  font-weight: 700;
  cursor: pointer;
}

.poster-segmented input:checked + span {
  background: rgba(255, 255, 255, 0.94);
  color: var(--accent-strong);
  box-shadow: 0 5px 16px rgba(30, 26, 20, 0.08);
}

.poster-segmented input:focus-visible + span {
  outline: 3px solid rgba(15, 111, 98, 0.22);
  outline-offset: 1px;
}

.poster-inline-status {
  min-height: 20px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.poster-inline-status.is-warning {
  color: var(--warn);
}

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

.poster-team-card {
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(100, 89, 73, 0.16);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.66);
}

.poster-team-head,
.poster-team-actions,
.poster-range-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.poster-team-head strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.poster-team-dot {
  width: 10px;
  height: 10px;
  flex: 0 0 auto;
  border: 1px solid rgba(30, 26, 20, 0.14);
  border-radius: 50%;
}

.poster-upload {
  position: relative;
  width: 100%;
  aspect-ratio: 1.4;
  margin-top: 10px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px dashed rgba(100, 89, 73, 0.34);
  border-radius: 12px;
  background-color: rgba(255, 252, 246, 0.82);
  background-image:
    linear-gradient(45deg, rgba(100, 89, 73, 0.05) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(100, 89, 73, 0.05) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, rgba(100, 89, 73, 0.05) 75%),
    linear-gradient(-45deg, transparent 75%, rgba(100, 89, 73, 0.05) 75%);
  background-size: 18px 18px;
  background-position: 0 0, 0 9px, 9px -9px, -9px 0;
  cursor: pointer;
}

.poster-upload.is-dragging {
  border-color: var(--accent);
  background-color: rgba(15, 111, 98, 0.08);
}

.poster-upload input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.poster-upload img {
  width: 100%;
  height: 100%;
  display: none;
  object-fit: contain;
  padding: 8px;
}

.poster-upload.has-image img {
  display: block;
}

.poster-upload.has-image > span {
  display: none;
}

.poster-upload > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.poster-team-actions {
  margin-top: 10px;
}

.poster-color-control {
  display: flex;
  align-items: center;
  gap: 7px;
}

.poster-color-control input[type="color"] {
  width: 32px;
  height: 32px;
  padding: 3px;
  border-radius: 10px;
}

.poster-clear-button {
  min-height: 32px;
  padding: 7px 12px;
  font-size: 12px;
}

.poster-field-grid {
  display: grid;
  gap: 14px;
}

.poster-field-grid input[type="range"] {
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  accent-color: var(--accent);
}

.poster-range-head output {
  color: var(--muted);
  font-weight: 400;
  font-variant-numeric: tabular-nums;
}

.poster-check-row {
  display: flex;
  align-items: center;
  gap: 9px;
}

.poster-check-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  margin: 0;
  padding: 0;
  accent-color: var(--accent);
}

.poster-export-section > button {
  width: 100%;
}

.poster-preview-area {
  min-width: 0;
  position: sticky;
  top: 20px;
}

.poster-canvas-frame {
  width: 100%;
  overflow: hidden;
  border: 1px solid rgba(100, 89, 73, 0.18);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.62);
  box-shadow: 0 24px 60px rgba(30, 26, 20, 0.12);
}

#posterCanvas {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  display: block;
  background: #183b6b;
}

.poster-preview-status {
  margin-top: 12px;
  text-align: right;
}

@media (max-width: 1080px) {
  .poster-match-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1180px) {
  .tab-list {
    width: 100%;
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    border-radius: 22px;
  }

  .tab-trigger {
    min-width: max-content;
    padding: 10px 14px;
    white-space: nowrap;
  }

  .poster-workspace {
    grid-template-columns: 1fr;
  }

  .poster-preview-area {
    position: static;
  }
}

@media (max-width: 620px) {
  .poster-team-grid {
    grid-template-columns: 1fr;
  }

  .poster-list-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .poster-match-card {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 13px;
  }

  .poster-match-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: none;
  }

  .lottery-snapshot-shell {
    gap: 15px;
    padding: 18px;
  }

  .lottery-snapshot-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .lottery-snapshot-footer button {
    width: 100%;
  }

  .lottery-article-field textarea {
    min-height: 280px;
  }

  .lottery-article-actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
  }

  .lottery-snapshot-table thead {
    display: none;
  }

  .lottery-snapshot-table tbody,
  .lottery-snapshot-table tbody tr {
    display: grid;
  }

  .lottery-snapshot-table tbody tr {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px 8px;
    padding: 12px;
    border-bottom: 1px solid rgba(100, 89, 73, 0.14);
  }

  .lottery-snapshot-table tbody tr:last-child {
    border-bottom: 0;
  }

  .lottery-snapshot-table tbody th,
  .lottery-snapshot-table tbody td {
    padding: 0;
    border: 0;
    text-align: left;
  }

  .lottery-snapshot-table tbody th {
    grid-column: 1 / -1;
    padding-bottom: 2px;
  }

  .lottery-snapshot-table tbody td {
    min-width: 0;
    display: grid;
    gap: 3px;
  }

  .lottery-snapshot-table tbody td::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: 11px;
    font-weight: 400;
  }

  .poster-match-team {
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 7px;
  }

  .poster-match-team.is-away {
    grid-template-columns: minmax(0, 1fr) 38px;
  }

  .poster-match-logo {
    width: 38px;
    height: 38px;
  }

  .poster-match-teams {
    grid-template-columns: minmax(0, 1fr) 28px minmax(0, 1fr);
    gap: 6px;
  }

  .poster-editor-bar {
    align-items: stretch;
    flex-direction: column;
  }

  .poster-editor-bar > div {
    text-align: left;
  }
}

@media (max-width: 860px) {
  .shell {
    padding: 24px 16px 48px;
  }

  .tab-list {
    width: 100%;
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 8px;
    border-radius: 22px;
  }

  .tab-trigger {
    flex: 0 0 auto;
    justify-content: center;
    text-align: center;
    min-width: max-content;
    padding: 10px 14px;
    white-space: nowrap;
  }

  .half-full-team-grid {
    grid-template-columns: 1fr;
  }

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

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

  .half-full-table td:nth-child(2),
  .half-full-table td:nth-child(3),
  .half-full-table td:nth-child(4),
  .half-full-table th:nth-child(2),
  .half-full-table th:nth-child(3),
  .half-full-table th:nth-child(4) {
    width: 44px;
  }

  .half-full-table td:first-child,
  .half-full-table th:first-child {
    min-width: 0;
    overflow-wrap: anywhere;
  }

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

  .panel {
    padding: 18px;
    border-radius: 18px;
  }

  .future-preview-top > div,
  .future-head > div {
    min-width: 0;
  }

  .future-preview-top h3,
  .draft-sub,
  .future-angle-body p {
    overflow-wrap: anywhere;
  }

  .future-preview-actions .ghost-btn,
  .future-preview-actions .copy-btn {
    flex: 1 1 auto;
  }

  .hero,
  .grid,
  form,
  .angle-grid {
    grid-template-columns: 1fr;
  }

  .threshold-grid {
    grid-template-columns: 1fr;
  }

  .injury-split-layout,
  .injury-summary-grid,
  .injury-team-grid {
    grid-template-columns: 1fr;
  }

  .actions,
  .user-card,
  .result-head,
  .card-head,
  .draft-top,
	  .expert-head,
	  .user-row,
	  .future-head,
	  .future-preview-top,
	  .future-brief-match-top,
	  .future-brief-article-top,
    .injury-source-top,
    .injury-article-top,
    .injury-match-top {
	    align-items: flex-start;
	    flex-direction: column;
	  }

  .meta-row {
    grid-template-columns: 1fr;
  }

  .future-preview-actions,
  .future-raw-actions {
    justify-content: flex-start;
  }

  .corner-team-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1280px) {
  .angle-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
