:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #edf1f6;
  background: #101b2d;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }

.password-panel {
  width: min(380px, calc(100vw - 28px));
  padding: 28px 24px;
  border: 1px solid #43536a;
  border-radius: 16px;
  background: #162338;
  color: #edf1f6;
  box-shadow: 0 18px 48px #0008;
}
.password-panel::backdrop { background: #101b2d; }
.password-panel h2 { margin: 0; }
.password-panel form { display: grid; gap: 12px; }
.password-panel input { width: 100%; min-width: 0; }

.menu-button {
  position: fixed;
  z-index: 2;
  top: 20px;
  left: 20px;
  display: flex;
  width: 48px;
  height: 48px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  border: 1px solid #52647c;
  border-radius: 10px;
  background: #1d2c42;
  cursor: pointer;
  transition: background-color 260ms ease, transform 260ms ease;
}

.menu-button:hover { background: #293c56; transform: translateY(-1px); }
.menu-button:active { transform: translateY(0); }
.menu-button:focus-visible { outline: 3px solid #becada; outline-offset: 3px; }
.menu-button span { width: 21px; height: 2px; border-radius: 2px; background: #edf1f6; }
.groups-menu { left: auto; right: 20px; }
.group-row { display: grid; grid-template-columns: minmax(0, 1fr) 80px 36px; gap: 8px; align-items: end; }
.group-delete { width: 36px; height: 48px; color: #ff9c9c; }
.group-row label { display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.add-group { width: 100%; margin-top: 18px; font-size: 16px; }

.dialog-panel {
  position: fixed;
  inset: 0 auto 0 0;
  width: min(380px, calc(100vw - 28px));
  max-width: none;
  height: 100vh;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 28px 24px;
  overflow-y: auto;
  border: 0;
  border-right: 1px solid #43536a;
  border-radius: 0 16px 16px 0;
  background: #162338;
  color: #edf1f6;
  box-shadow: 18px 0 48px #0008;
  transform: translateX(-12px);
  opacity: 0;
  transition: transform 450ms ease, opacity 380ms ease, overlay 450ms allow-discrete, display 450ms allow-discrete;
}

.dialog-panel[open] { transform: translateX(0); opacity: 1; }
@starting-style {
  .dialog-panel[open] { transform: translateX(-12px); opacity: 0; }
}
.dialog-panel::backdrop { background: #07101bcc; transition: background-color 450ms ease; }
.dialog-panel:not([open])::backdrop { background: transparent; }
.panel-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.panel-header h2 { margin: 0; font-size: 24px; font-weight: 600; }
.panel-close {
  width: 40px;
  height: 40px;
  border: 1px solid #52647c;
  border-radius: 9px;
  background: #1d2c42;
  color: #edf1f6;
  font: inherit;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  transition: background-color 260ms ease, transform 260ms ease;
}
.panel-close:hover { background: #293c56; transform: rotate(4deg); }
.panel-close:focus-visible { outline: 3px solid #becada; outline-offset: 3px; }
.panel-actions { display: flex; justify-content: flex-end; margin-top: 28px; }
.panel-ok { min-width: 104px; }
.panel-description { margin: 16px 0 24px; color: #c7d0dc; line-height: 1.5; }
.threshold-rows { display: flex; flex-direction: column; gap: 14px; }
.threshold-row { display: flex; flex-direction: column; gap: 8px; }
.threshold-number { color: #e5ebf3; font-size: 16px; font-weight: 600; overflow-wrap: anywhere; }
.threshold-input {
  width: 100%;
  height: 48px;
  padding: 0 12px;
  border: 1px solid #52647c;
  border-radius: 9px;
  background: #1d2c42;
  color: #f4f6f9;
  font: inherit;
  font-variant-numeric: tabular-nums;
}
.threshold-input:focus { border-color: #9daec2; outline: 3px solid #8196b333; }
.threshold-input::placeholder { color: #8492a5; opacity: 1; }
.threshold-empty { margin: 0; color: #9eacbe; }

body {
  min-width: 320px;
  height: 100vh;
  height: 100dvh;
  margin: 0;
  overflow: auto;
  background: radial-gradient(ellipse at 50% -25%, #203653 0, #142238 48%, #101b2d 82%);
}

.page {
  width: min(100% - 48px, 1120px);
  height: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
  margin: 0 auto;
  padding: 88px 0 24px;
}

.entry-form {
  flex-shrink: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(76px, .5fr) 96px;
  gap: 16px;
  align-items: start;
}

.field {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.field input {
  display: block;
  width: 100%;
  min-width: 0;
  height: 88px;
  padding: 0 18px;
  border: 1px solid #52647c;
  border-radius: 12px;
  background: #1d2c42;
  color: #f4f6f9;
  font: inherit;
  font-size: 25px;
  text-align: center;
  box-shadow: inset 0 1px 2px #09111c66;
}

.field input::placeholder { color: #8492a5; opacity: 1; }
.field input:focus { border-color: #9daec2; outline: 3px solid #8196b333; }
.field label { color: #d4dce7; font-size: 19px; text-align: center; }
.field-error { width: 100%; margin: 0; color: #ff9c9c; font-size: 14px; line-height: 1.4; text-align: center; overflow-wrap: anywhere; }

.group-field label { width: 100%; overflow-wrap: anywhere; }
.entry-group-name { overflow-wrap: anywhere; }

.button {
  min-height: 48px;
  padding: 9px 24px;
  border: 1px solid #8190a3;
  border-radius: 10px;
  background: #dce2e9;
  color: #152033;
  font: inherit;
  font-size: 18px;
  font-weight: 650;
  letter-spacing: .035em;
  cursor: pointer;
  transition: background-color 240ms ease, transform 240ms ease;
}

.button:hover { background: #f0f3f7; }
.button:active { transform: translateY(1px); }
.button:focus-visible { outline: 3px solid #becada; outline-offset: 3px; }

.add-button {
  justify-self: end;
  width: 100%;
  height: 88px;
  margin: 0;
  padding: 9px 12px;
  font-size: 20px;
}

.entries {
  flex: 1 1 0;
  min-height: 0;
  margin: 42px 20px 0;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-color: #52647c #162338;
  border: 1px solid #43536a;
  border-radius: 10px;
  background: #162338cc;
}

table {
  width: 100%;
  min-width: 540px;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 16px;
}

.entries > table { min-width: 840px; }

th, td {
  height: 34px;
  padding: 5px 10px;
  border: 1px solid #43536a;
  text-align: left;
  font-weight: 400;
}

th { position: sticky; top: 0; z-index: 1; background: #1b2a40; color: #edf1f6; text-align: center; font-weight: 550; }
td { color: #e2e7ee; }
.calculated-amount { font-variant-numeric: tabular-nums; white-space: nowrap; }
tfoot th { text-align: right; }
tfoot td { font-variant-numeric: tabular-nums; }

.table-editor {
  display: block;
  width: 100%;
  min-width: 0;
  padding: 1px 0;
  border: 1px solid transparent;
  border-radius: 5px;
  background: transparent;
  color: inherit;
  font: inherit;
  font-variant-numeric: tabular-nums;
}

.table-editor:focus { border-color: #8196b3; outline: 2px solid #8196b333; }
.entry-row--new {
  transform-origin: top center;
  animation: entry-arrive 420ms cubic-bezier(.2,.8,.2,1) both;
}
.entry-row--new:first-child > td { animation: entry-highlight 650ms ease-out both; }
@keyframes entry-arrive {
  0% { transform: translateY(10px) scale(.95); }
  55% { transform: translateY(0) scale(1.015); }
  100% { transform: translateY(0) scale(1); }
}
@keyframes entry-highlight {
  0%, 25% { background-color: #355777; box-shadow: inset 0 1px 0 #a8d6ff88, inset 0 -1px 0 #a8d6ff55; }
  100% { background-color: transparent; box-shadow: inset 0 1px 0 transparent, inset 0 -1px 0 transparent; }
}
.table-editor[type="number"] { appearance: textfield; }
.table-editor[type="number"]::-webkit-inner-spin-button,
.table-editor[type="number"]::-webkit-outer-spin-button { appearance: none; margin: 0; }
.summary {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 24px;
  flex: 0 0 auto;
  margin: 20px 20px 0;
}

.summary-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-right: auto; }
.summary-actions { flex-direction: column; align-items: flex-start; gap: 10px; }
.summary { align-items: flex-start; }
.summary-actions { flex-shrink: 0; }
.inline-summary { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.view-summary-button { min-height: 42px; padding: 9px 16px; border: 1px solid #51647d; background: #243750; color: #edf1f6; font-size: 14px; display: inline-flex; align-items: center; gap: 12px; }
.view-summary-button span { transition: transform 180ms ease; }
.view-summary-button[aria-expanded="true"] span { transform: rotate(180deg); }
#inline-summary-content { width: 100%; }
#inline-summary-status { margin: 0 0 10px; color: #c7d0dc; font-size: 13px; }
#inline-summary-status:empty { display: none; }
.inline-summary .daily-summary-scroll { max-height: 280px; }
.inline-summary .daily-summary-table { font-size: 12px; }
.overview-label { color: #e5ebf3; font-size: 20px; }
.overview-total-label { margin: 0; color: #c7d0dc; font-size: 17px; }
.overview-buttons { display: flex; gap: 10px; }
.export-button { min-height: 42px; padding: 7px 16px; font-size: 14px; }
[hidden] { display: none !important; }

@media (prefers-reduced-motion: reduce) {
  .entry-row--new { animation-delay: 0ms; }
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

@media (max-width: 760px) {
  .page { width: min(100% - 32px, 680px); padding: 80px 0 16px; }
  .entry-form { grid-template-columns: repeat(2, minmax(0, 1fr)) 60px; gap: 14px 8px; }
  .group-field { grid-column: 1; }
  .amount-field { grid-column: 1; }
  .division-field { grid-column: 2; }
  .field input { height: 62px; font-size: 21px; }
  .field label { font-size: 14px; }
  .field input { padding: 0 8px; }
  .add-button { grid-column: 3; grid-row: 2; height: 62px; font-size: 16px; padding: 9px 6px; }
  .entries { margin: 30px 0 0; }
  .summary { flex-direction: column; align-items: stretch; gap: 20px; margin: 20px 0 0; }
  .summary-actions { justify-content: flex-start; }
  .inline-summary { width: 100%; align-items: stretch; }
  .view-summary-button { align-self: flex-start; }
}

@media (max-height: 620px) {
  .page { padding-top: 80px; }
  .entries { margin-top: 24px; }
  .summary-actions { gap: 6px; }
  .overview-label { font-size: 18px; }
  .overview-total-label { font-size: 15px; }
}

@media (max-width: 760px) and (max-height: 620px) {
  .page { padding-top: 80px; }
  .entry-form { gap: 8px; }
  .field { gap: 6px; }
  .field input { height: 52px; }
  .add-button { height: 52px; }
  .entries { margin-top: 18px; }
  .summary { gap: 10px; }
  .export-button { min-height: 38px; }
}
 .review-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 24px; }
 .drawer-controls { display: grid; gap: 12px; margin: 24px 0; }
 .drawer-controls .button { width: 100%; }
 .auto-import-control { display: flex; align-items: center; gap: 10px; }
 .photo-review { width: min(900px, 94vw); max-height: 90vh; overflow: auto; padding: 24px; border-radius: 12px; }
 .review-row { display: flex; flex-wrap: wrap; gap: 12px; border-bottom: 1px solid #ddd; padding: 12px 0; }
 .review-row label { display: flex; flex-direction: column; gap: 4px; }
 .review-row input[type=text] { width: 120px; padding: 8px; }
 .review-row p { width: 100%; margin: 0; }
 #review-warnings, #review-result { white-space: pre-wrap; }
 #inbox-list { display: grid; gap: 12px; margin-bottom: 16px; }

.game-timer { flex-shrink: 0; min-height: 132px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 22px; border: 1px solid #425f80; border-radius: 16px; background: linear-gradient(135deg, #223c5a, #17283e); box-shadow: 0 10px 30px #0003, inset 0 1px 0 #ffffff0d; text-align: center; }
.game-timer-label { color: #a9bdd3; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .16em; }
#active-game-name { margin: 0; overflow-wrap: anywhere; color: #f1f7ff; font-size: clamp(20px, 3vw, 32px); line-height: 1.3; font-weight: 750; font-variant-numeric: tabular-nums; text-shadow: 0 2px 16px #7caee633; }
.game-timer--active { border-color: #65c7a2; background: linear-gradient(135deg, #214a40, #172f36); box-shadow: 0 0 28px #65c7a21c; }
.page > .entries { margin-top: 20px; }
.hit-filter-form { flex-shrink: 0; align-self: center; width: min(100%, 460px); margin: 16px 0 0; }
#winner-celebration { box-sizing: border-box; width: min(560px, calc(100vw - 28px)); max-height: calc(100dvh - 32px); overflow: auto; padding: 40px 24px 28px; border: 1px solid #eab30880; border-radius: 24px; color: #fff; background: radial-gradient(ellipse at top, #493965, #121b30 70%); text-align: center; box-shadow: 0 24px 100px #0008; }
#winner-celebration::backdrop { background: #050b18c9; backdrop-filter: blur(6px); }
.winner-close { position: absolute; top: 12px; right: 14px; z-index: 2; color: #fff; }
.winner-eyebrow { position: relative; margin: 0 0 12px; color: #fde68a; text-transform: uppercase; letter-spacing: .15em; font-size: 12px; }
#winner-number { display: block; margin-top: 8px; font-size: 32px; font-weight: 800; letter-spacing: .2em; }
#winner-title { position: relative; margin: 0 0 20px; font-size: clamp(26px, 6vw, 38px); color: #fde68a; }
.winner-window { position: relative; height: 260px; overflow: hidden; border-radius: 18px; background: #ffffff08; border: 1px solid #ffffff20; }
#winner-track { will-change: transform; }
.winner-card { box-sizing: border-box; height: 260px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 20px; }
.winner-card h3 { margin: 0 0 8px; max-width: 100%; font-size: clamp(22px, 5vw, 30px); overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.winner-card p { margin: 0; color: #cbd5e1; max-width: 100%; overflow-wrap: anywhere; font-size: 14px; }
.winner-card strong { display: block; margin: 20px 0 6px; max-width: 100%; font-size: clamp(24px, 7vw, 42px); font-variant-numeric: tabular-nums; color: #fcd34d; overflow-wrap: anywhere; }
#winner-position { position: relative; color: #cbd5e1; font-size: 13px; margin: 20px 0 12px; }
#winner-pause { position: relative; }
.winner-confetti { position: absolute; inset: 0; overflow: hidden; pointer-events: none; border-radius: inherit; }
.winner-confetti i { position: absolute; top: -20px; left: var(--x); width: 7px; height: 13px; background: var(--color); animation: winner-confetti-fall 4.5s var(--delay) linear infinite; }
.winner-paused .winner-confetti i { animation-play-state: paused; }
@keyframes winner-confetti-fall { from { transform: translateY(-20px) rotate(var(--turn)); opacity: 1; } to { transform: translateY(650px) rotate(calc(var(--turn) + 360deg)); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .winner-confetti i { animation: none; } }
.hit-filter-form > label { display: block; margin-bottom: 8px; color: #c7d0dc; font-size: 13px; }
.hit-filter-controls { display: flex; gap: 10px; }
.hit-filter-controls input { width: 100%; min-width: 0; background: #162338; border: 1px solid #52647c; border-radius: 8px; padding: 10px 14px; color: #edf1f6; font-size: 18px; letter-spacing: .1em; }
.hit-filter-controls .button { padding: 10px 18px; font-size: 14px; }
#clear-hit-filter { background: #243750; color: #edf1f6; border-color: #51647d; }
#hit-filter-status, #manual-entry-status { margin: 10px 0 0; color: #c7d0dc; font-size: 13px; line-height: 1.5; }
.manual-entry-panel { width: min(680px, calc(100vw - 28px)); }
.manual-entry-panel .entry-form { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.manual-entry-panel .entry-form .field { grid-column: auto; grid-row: auto; }
.manual-entry-panel .entry-form input { height: 54px; font-size: 20px; }
.manual-entry-panel .entry-form label { font-size: 14px; }
.manual-entry-panel .entry-form .add-button { grid-column: 1 / -1; grid-row: auto; height: 44px; font-size: 15px; }
.text-import-form { margin-top: 28px; padding-top: 20px; border-top: 1px solid #43536a; }
.text-import-form h3 { margin: 0; font-size: 18px; }
.text-import-form .panel-description { font-size: 13px; margin: 12px 0; }
.text-import-form > label { display: block; margin-bottom: 8px; font-size: 14px; color: #c7d0dc; }
.text-import-form textarea { display: block; width: 100%; resize: vertical; min-height: 160px; padding: 14px; margin-bottom: 14px; background: #101b2d; color: #edf1f6; border: 1px solid #52647c; border-radius: 10px; font: 15px/1.6 ui-monospace, monospace; }
.text-import-form textarea:focus, .hit-filter-controls input:focus { outline: 3px solid #8196b333; border-color: #9daec2; }
.history-game { padding: 16px 0; border-bottom: 1px solid #555; }
.history-game p { overflow-wrap: anywhere; }
.history-game input { width: 100%; box-sizing: border-box; margin-bottom: 12px; padding: 10px; }
.history-game button { margin-right: 8px; }

.draw-time-row { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
#add-draw-time { margin-bottom: 12px; }
/* Daily overview follows the draw colors and grouped columns of the summary sheet. */
.daily-summary-panel {
  inset: 0; width: min(1280px, calc(100vw - 48px)); max-width: calc(100vw - 48px);
  height: fit-content; max-height: calc(100dvh - 48px); margin: auto; padding: 28px;
  border: 1px solid #43536a; border-radius: 20px; box-shadow: 0 24px 80px #0009;
}
.daily-summary-panel .panel-header h2 { margin: 0; }
.daily-summary-panel .panel-description { max-width: 88ch; margin: 12px 0 16px; font-size: 14px; }
#daily-summary-status { min-height: 20px; margin: 0 0 12px; color: #c7d0dc; font-size: 14px; }
.daily-summary-panel .panel-actions { gap: 12px; margin-top: 20px; }
#save-daily-results { background: #243750; color: #edf1f6; border-color: #51647d; }
.daily-summary-scroll { overflow: auto; max-height: 60vh; border: 1px solid #cbd5df; border-radius: 12px; background: #fff; }
.daily-summary-table { width: 100%; min-width: 1080px; table-layout: auto; border-collapse: separate; border-spacing: 0; color: #243447; font-size: 13px; font-variant-numeric: tabular-nums; }
.daily-summary-table .daily-name-column { width: 220px; }
.daily-summary-table .daily-amount-column { width: 112px; }
.daily-summary-table .daily-count-column { width: 96px; }
.daily-summary-table th, .daily-summary-table td { height: 44px; border: 0; border-bottom: 1px solid #dbe2e8; padding: 10px 12px; text-align: right; white-space: nowrap; color: #243447; background: #f8fafc; }
.daily-summary-table th:first-child, .daily-summary-table td:first-child { min-width: 180px; max-width: 260px; text-align: left; font-weight: 650; white-space: normal; overflow-wrap: anywhere; line-height: 1.5; }
.daily-summary-table thead th { position: static; text-align: center; font-size: 12px; font-weight: 700; letter-spacing: .035em; white-space: normal; overflow-wrap: anywhere; }
.daily-summary-table thead th:not(:first-child) { min-width: 96px; white-space: nowrap; overflow-wrap: normal; }
.daily-summary-table thead { position: sticky; top: 0; z-index: 2; }
.daily-summary-table thead tr:first-child th { height: 44px; padding-top: 6px; padding-bottom: 6px; }
.daily-summary-table .daily-draw-0 { background: #edf6e4; }
.daily-summary-table .daily-draw-1 { background: #fff6dc; }
.daily-summary-table .daily-draw-2 { background: #fceee7; }
.daily-summary-table thead .daily-draw-0 { background: #d5e9bc; }
.daily-summary-table thead .daily-draw-1 { background: #ffe6a2; }
.daily-summary-table thead .daily-draw-2 { background: #f6d8c8; }
.daily-summary-table .daily-draw-start { border-left: 1px solid #cbd5df; }
.daily-summary-table tbody tr:hover td { box-shadow: inset 0 0 0 999px #24344708; }
.daily-summary-table .daily-summary-total { font-weight: 700; }
.daily-summary-table .daily-total-heading td { border-top: 2px solid #a6b4c3; text-align: center; font-size: 11px; letter-spacing: .06em; }
.daily-summary-table .daily-hit-totals td { text-align: center; }
.daily-summary-table .daily-estimate td { background: #f8fafc; color: #64748b; }
.daily-summary-table .daily-gross td { background: #e7edf5; color: #172b45; font-size: 15px; border-bottom: 0; }
.daily-summary-table .daily-summary-value { text-align: right; }
.daily-summary-table label { display: flex; justify-content: center; align-items: center; gap: 10px; }
.daily-summary-table input { width: 72px; padding: 8px; border: 1px solid #81917e; border-radius: 8px; background: #ffffffd9; color: #172019; font: inherit; font-size: 16px; letter-spacing: .08em; text-align: center; }
.daily-summary-table input:focus { outline: 3px solid #2563eb33; border-color: #2563eb; }
.daily-summary-table th[colspan] { text-align: center; }
.inline-summary .daily-summary-scroll { background: #162338; border-color: #43536a; scrollbar-color: #52647c #162338; }
.inline-summary .daily-summary-table { min-width: 760px; color: #e2e7ee; }
.inline-summary .daily-summary-table th, .inline-summary .daily-summary-table td { background: #19283e; color: #e2e7ee; border-bottom-color: #34465c; }
.inline-summary .daily-summary-table thead th { background: #243750; color: #edf1f6; }
.inline-summary .daily-summary-table .daily-draw-0 { background: #20372f; }
.inline-summary .daily-summary-table .daily-draw-1 { background: #393321; }
.inline-summary .daily-summary-table .daily-draw-2 { background: #3a2b32; }
.inline-summary .daily-summary-table thead .daily-draw-0 { background: #2b493b; }
.inline-summary .daily-summary-table thead .daily-draw-1 { background: #4b4028; }
.inline-summary .daily-summary-table thead .daily-draw-2 { background: #4c3540; }
.inline-summary .daily-summary-table .daily-draw-start { border-left-color: #43536a; }
.inline-summary .daily-summary-table tbody tr:hover td { box-shadow: inset 0 0 0 999px #ffffff08; }
@media (max-width: 760px) {
  .daily-summary-panel { width: calc(100vw - 20px); max-width: calc(100vw - 20px); max-height: calc(100dvh - 20px); padding: 18px; border-radius: 14px; }
  .daily-summary-panel .panel-actions .button { flex: 1; font-size: 14px; padding: 12px; }
}

.shared-review { width:min(1400px,96vw); max-width:96vw; }
.photo-layout { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:20px; }
.photo-viewport { height:65vh; overflow:auto; background:#ddd; touch-action:none; cursor:grab; }
.photo-viewport img { width:100%; transform-origin:top left; user-select:none; pointer-events:none; }
.photo-tools { display:flex; flex-wrap:wrap; gap:6px; }
.shared-review .rows { max-height:65vh; overflow:auto; }
.shared-review .review-row { display:flex; flex-wrap:wrap; gap:8px; padding:12px; margin:8px 0; border:1px solid #aaa; }
.shared-review .review-row p { width:100%; }
.shared-review input[type=text] { width:90px; }
.shared-review .flagged { border:2px solid #b66a00; }
.photo-card { display:inline-block; padding:16px; border:1px solid #aaa; margin:8px; }
.photo-card.flagged { border:2px solid #b66a00; }
.photo-card img { width:150px; height:120px; object-fit:contain; }
@media(max-width:760px) { .photo-layout { grid-template-columns:1fr; } .photo-viewport { height:40vh; } .shared-review .rows { max-height:none; } }

#payout-settings-form { display: grid; gap: 16px; }
#payout-settings-form label { display: grid; gap: 8px; }
#payout-settings-form input { width: 100%; box-sizing: border-box; }
