/* Shared layout for the 2026-10 desk tools (rifa, bingo, puzzles, school printables, quotes, calculators). */
.desk-page {
  --ink: #172033;
  --body: #3d4658;
  --muted: #64748b;
  --line: #e3e9f1;
  --card: #fff;
  --soft: #f6f8fb;
  --blue: #2563eb;
  --blue-dark: #1d4ed8;
  --green: #15803d;
  --red: #b91c1c;
  color: var(--ink);
  margin: 4px 0 28px;
}
.desk-head { max-width: 760px; margin: 0 0 16px; }
.desk-page h1 {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: clamp(1.7rem, 2.6vw, 2.3rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.08;
}
.desk-lede { margin: 0; color: #3b4d9a; font-size: 1.02rem; line-height: 1.45; }
.desk-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 400px);
  gap: 16px;
  align-items: start;
}
.desk-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
}
.desk-card + .desk-card { margin-top: 12px; }
.desk-card h2 { margin: 0 0 12px; font-size: 1.05rem; letter-spacing: -0.02em; }
.desk-fields { display: grid; gap: 10px; }
.desk-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.desk-field { display: grid; gap: 4px; min-width: 0; }
.desk-field span, .desk-label { color: var(--body); font-size: 0.82rem; font-weight: 700; }
.desk-field input, .desk-field textarea, .desk-field select {
  width: 100%;
  box-sizing: border-box;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid #d5deea;
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  line-height: 1.35;
}
.desk-field textarea { min-height: 140px; resize: vertical; }
.desk-checks { display: flex; flex-wrap: wrap; gap: 8px 14px; margin: 2px 0 0; }
.desk-checks label { display: flex; align-items: center; gap: 6px; color: var(--body); font-size: 0.92rem; }
.desk-note { margin: 8px 0 0; color: var(--muted); font-size: 0.82rem; line-height: 1.4; }
.desk-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.desk-go, .desk-ghost, .desk-chip {
  appearance: none;
  border-radius: 12px;
  min-height: 44px;
  padding: 0 14px;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
}
.desk-go { border: 0; background: var(--blue); color: #fff; }
.desk-go:hover { background: var(--blue-dark); }
.desk-go:disabled, .desk-ghost:disabled { opacity: 0.55; cursor: wait; }
.desk-ghost, .desk-chip { border: 1px solid #d5deea; background: #fff; color: var(--ink); }
.desk-chip { min-height: 44px; padding: 0 10px; font-size: 0.82rem; font-weight: 650; }
.desk-chip.is-on { border-color: #93c5fd; background: #eff6ff; color: #1d4ed8; }
.desk-status { min-height: 1.3em; margin: 8px 0 0; color: var(--body); font-size: 0.9rem; }
.desk-status.is-error { color: var(--red); }
.desk-status.is-ok { color: var(--green); }
.desk-preview {
  overflow: auto;
  max-height: 720px;
  padding: 10px;
  border-radius: 12px;
  background: var(--soft);
}
.desk-sheet {
  width: min(100%, 360px);
  margin: 0 auto;
  padding: 10px;
  background: #fff;
  color: #172033;
  box-shadow: 0 8px 24px rgba(23, 32, 51, 0.08);
}
.desk-ticket {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 8px;
  margin: 0 0 8px;
  padding-bottom: 8px;
  border-bottom: 1px dashed #94a3b8;
  font-size: 11px;
}
.desk-ticket strong { font-size: 18px; }
.desk-mini-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.desk-mini-table th, .desk-mini-table td { padding: 4px 0; border-bottom: 1px solid #e3e9f1; text-align: left; }
.desk-mini-table td:last-child, .desk-mini-table th:last-child { text-align: right; }
.desk-letters {
  display: grid;
  width: max-content;
  margin: 0 auto;
  gap: 2px;
}
.desk-letters i {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 3px;
  background: #fff;
  border: 1px solid #dbe3ee;
  font-style: normal;
  font-size: 11px;
  font-weight: 700;
}
.desk-letters i.is-mark { background: #fde68a; border-color: #f59e0b; }
.desk-cross { border-collapse: collapse; margin: 0 auto; }
.desk-cross td {
  width: 18px;
  height: 18px;
  border: 1px solid #cbd5e1;
  text-align: center;
  font-size: 9px;
  vertical-align: top;
}
.desk-cross td.is-off { background: #1e293b; border-color: #1e293b; }
.desk-board { display: flex; flex-wrap: wrap; gap: 4px; }
.desk-ball {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #d5deea;
  font-size: 11px;
  font-weight: 700;
}
.desk-ball.is-on { background: #2563eb; border-color: #2563eb; color: #fff; }
.desk-last {
  margin: 0 0 8px;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
}
.desk-kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.desk-kpi {
  padding: 10px;
  border-radius: 12px;
  background: var(--soft);
}
.desk-kpi b { display: block; font-size: 1.15rem; letter-spacing: -0.03em; }
.desk-kpi span { color: var(--muted); font-size: 0.75rem; }
.desk-kpi.is-wide { grid-column: 1 / -1; }
.bingo-card { margin: 0 auto 10px; border-collapse: collapse; }
.bingo-card th, .bingo-card td {
  width: 36px;
  height: 28px;
  border: 1px solid #94a3b8;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
}
.bingo-card th { height: 22px; background: #1e293b; color: #fff; font-size: 12px; }
.desk-dots { font-family: ui-monospace, monospace; letter-spacing: 0.12em; color: #64748b; line-height: 1.1; white-space: pre; }
.desk-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--blue);
  font-weight: 700;
}
.desk-payload {
  margin: 8px 0 0;
  padding: 8px;
  border-radius: 8px;
  background: var(--soft);
  color: var(--body);
  font-size: 0.75rem;
  line-height: 1.35;
  white-space: pre-wrap;
  word-break: break-all;
}
.desk-page label.desk-check {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  color: var(--body);
  font-size: 0.92rem;
}
.desk-page label.desk-check input { width: auto; }
@media (max-width: 860px) {
  .desk-grid, .desk-row, .desk-kpis { grid-template-columns: 1fr; }
  .desk-actions .desk-go, .desk-actions .desk-ghost { flex: 1 1 140px; }
  .desk-preview { max-height: none; }
}
html[data-theme="dark"] .desk-page {
  --ink: #e7edf6;
  --body: #c5d0e0;
  --muted: #93a0b5;
  --line: #2a3548;
  --card: #151c27;
  --soft: #101722;
  --blue: #60a5fa;
  --blue-dark: #93c5fd;
}
html[data-theme="dark"] .desk-lede { color: #9db4e8; }
html[data-theme="dark"] .desk-field input,
html[data-theme="dark"] .desk-field textarea,
html[data-theme="dark"] .desk-field select,
html[data-theme="dark"] .desk-ghost,
html[data-theme="dark"] .desk-chip,
html[data-theme="dark"] .desk-sheet,
html[data-theme="dark"] .desk-ball,
html[data-theme="dark"] .desk-letters i {
  background: #0f1622;
  color: var(--ink);
  border-color: #314158;
}
html[data-theme="dark"] .desk-chip.is-on { background: #172554; color: #bfdbfe; }
html[data-theme="dark"] .desk-go { color: #0b1220; }
