:root {
  --ink: #171b18;
  --muted: #6d746f;
  --paper: #f4f1e8;
  --paper-strong: #fffdf7;
  --line: #d9d5c9;
  --felt: #111713;
  --felt-soft: #19231d;
  --lime: #d6ff4b;
  --lime-deep: #7f9b23;
  --orange: #ff8a3d;
  --danger: #b84234;
  --success: #237152;
  --shadow: 0 18px 50px rgba(27, 33, 28, 0.09);
  --radius: 16px;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--felt);
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background:
    linear-gradient(rgba(244, 241, 232, 0.985), rgba(244, 241, 232, 0.985)),
    repeating-linear-gradient(45deg, transparent 0 8px, rgba(17, 23, 19, 0.03) 8px 9px);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  min-height: 100vh;
}

button,
input,
select {
  font: inherit;
}

button {
  -webkit-tap-highlight-color: transparent;
}

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

.site-access-view {
  width: 100%;
  min-height: 100vh;
  margin: 0;
  padding: 32px 20px;
  display: grid;
  place-items: center;
  color: #fff;
  background:
    radial-gradient(circle at 50% 10%, rgba(214, 255, 75, 0.12), transparent 32%),
    var(--felt);
}

.site-access-card {
  width: min(430px, 100%);
  padding: clamp(28px, 6vw, 46px);
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 18px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.28);
  text-align: center;
}

.site-access-mark {
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  display: grid;
  place-items: center;
  color: var(--lime);
  border: 1px solid rgba(214, 255, 75, 0.55);
  border-radius: 50%;
  font-size: 2rem;
}

.site-access-kicker {
  margin: 0;
  color: var(--lime);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.16em;
}

.site-access-card h1 {
  margin: 5px 0 12px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.25rem, 9vw, 3.5rem);
  letter-spacing: -0.045em;
  line-height: 1;
}

.site-access-copy {
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.64);
  font-size: 0.94rem;
}

.site-access-form {
  margin-top: 26px;
  text-align: left;
}

.site-access-form .field-group label {
  color: rgba(255, 255, 255, 0.72);
}

.site-access-form .field {
  color: var(--ink);
  background: var(--paper-strong);
}

.site-access-form .button {
  width: 100%;
  margin-top: 14px;
}

.site-access-status {
  min-height: 1.3em;
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.48);
  font-size: 0.78rem;
}

.topbar {
  min-height: 88px;
  padding: 18px clamp(20px, 4vw, 64px);
  color: #fff;
  background: var(--felt);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand,
.top-actions,
.panel-header,
.card-heading,
.transfer-row,
.balance-main,
.summary-item,
.expense-top,
.participants-list {
  display: flex;
  align-items: center;
}

.brand {
  gap: 12px;
}

.brand-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(214, 255, 75, 0.45);
  color: var(--lime);
  border-radius: 50%;
  font-size: 1.45rem;
}

.brand h1,
.panel h2,
.results-intro h2,
.card-heading h3 {
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: -0.025em;
}

.brand h1 {
  margin: -2px 0 0;
  font-size: 1.35rem;
  line-height: 1;
}

.eyebrow,
.step-label,
.card-kicker {
  margin: 0;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.brand .eyebrow {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.65rem;
}

.top-actions {
  gap: 10px;
}

.main-nav {
  padding: 4px;
  display: flex;
  gap: 4px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 10px;
}

.nav-button {
  min-height: 36px;
  padding: 7px 12px;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.62);
  background: transparent;
  border: 0;
  border-radius: 7px;
  cursor: pointer;
  font-size: 0.84rem;
  font-weight: 750;
  text-decoration: none;
}

.nav-button.active {
  color: var(--felt);
  background: var(--lime);
}

[hidden] {
  display: none !important;
}

.save-state {
  margin-right: 10px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.82rem;
}

.save-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 7px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 4px rgba(214, 255, 75, 0.1);
}

.save-state[data-status="loading"] .save-dot,
.save-state[data-status="saving"] .save-dot {
  background: #ffd166;
  box-shadow: 0 0 0 4px rgba(255, 209, 102, 0.12);
}

.save-state[data-status="offline"] .save-dot {
  background: #ff9a86;
  box-shadow: 0 0 0 4px rgba(255, 137, 122, 0.12);
}

.edit-mode-banner {
  padding: 9px clamp(20px, 4vw, 64px);
  color: #6d5418;
  background: #fff0bd;
  border-bottom: 1px solid #ead792;
  font-size: 0.82rem;
}

[data-auth-locked="true"] {
  cursor: not-allowed !important;
}

input[data-auth-locked="true"],
select[data-auth-locked="true"] {
  opacity: 0.66;
}

main {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 42px 0 72px;
}

.directory-heading {
  min-height: 120px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.directory-heading h2 {
  margin: 4px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 3.5rem);
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.directory-heading p:last-child {
  margin: 10px 0 0;
  color: var(--muted);
}

.directory-panel {
  max-width: 820px;
}

.history-panel {
  padding-bottom: 10px;
}

.history-list {
  border-top: 1px solid var(--line);
}

.history-row {
  padding: 20px 0;
  display: grid;
  grid-template-columns: minmax(110px, 0.65fr) minmax(260px, 2fr) auto auto;
  align-items: center;
  gap: 20px;
  border-bottom: 1px solid var(--line);
}

.history-row:last-child {
  border-bottom: 0;
}

.history-row-active {
  position: relative;
}

.history-row-active::before {
  content: "";
  position: absolute;
  left: -24px;
  width: 4px;
  height: 56px;
  background: var(--lime-deep);
  border-radius: 0 4px 4px 0;
}

.history-date span {
  display: block;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.history-date strong {
  display: block;
  margin-top: 3px;
  font-size: 0.9rem;
  text-transform: capitalize;
}

.history-copy h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.history-copy p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.history-status {
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  white-space: nowrap;
}

.history-status-ready {
  color: var(--success);
  background: rgba(35, 113, 82, 0.1);
}

.history-status-pending {
  color: #8b6418;
  background: rgba(255, 209, 102, 0.25);
}

.directory-list {
  border-top: 1px solid var(--line);
}

.directory-row {
  padding: 14px 0;
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  align-items: end;
  gap: 12px;
  border-bottom: 1px solid var(--line);
}

.directory-row:last-child {
  border-bottom: 0;
}

.directory-row .button-text {
  margin-bottom: 4px;
}

.rules-panel {
  max-width: 1040px;
}

.rules-list {
  margin: 0;
  padding-left: 30px;
}

.rules-list li {
  padding: 14px 0 14px 10px;
  border-bottom: 1px solid var(--line);
  font-size: 1.02rem;
}

.rules-list li::marker {
  color: var(--lime-deep);
  font-weight: 850;
}

.rules-list li:last-child {
  border-bottom: 0;
}

.rules-list p {
  margin: 0;
}

.rules-blinds > p {
  margin-bottom: 14px;
}

.rules-table-wrap {
  width: 100%;
  overflow-x: auto;
}

.rules-table {
  width: 100%;
  min-width: 540px;
  border-collapse: collapse;
  font-size: 0.94rem;
}

.rules-table th,
.rules-table td {
  padding: 13px 15px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.rules-table th {
  color: var(--muted);
  background: rgba(17, 23, 19, 0.045);
  font-size: 0.75rem;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.rules-table th:not(:first-child),
.rules-table td:not(:first-child) {
  width: 22%;
  font-variant-numeric: tabular-nums;
}

.rules-table tbody tr:last-child td {
  border-bottom: 0;
}

.reports-heading {
  margin-bottom: 18px;
}

.report-filters-panel {
  margin-bottom: 18px;
}

.report-filters-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

.report-filters-heading h2 {
  margin: 3px 0 0;
}

.report-filters-heading > p {
  max-width: 390px;
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  text-align: right;
}

.report-filters {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

#reports-region {
  display: grid;
  gap: 18px;
}

.report-metrics,
.report-records {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.report-metric {
  min-height: 118px;
  padding: 18px;
  color: #fff;
  background: var(--felt-soft);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-top: 3px solid var(--lime);
}

.report-metric span,
.report-metric small {
  display: block;
}

.report-metric span {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.report-metric strong {
  display: block;
  margin-top: 7px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.35rem, 2vw, 1.85rem);
  line-height: 1.05;
}

.report-metric small {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.52);
  font-size: 0.76rem;
}

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

.report-card {
  min-width: 0;
  padding: 22px;
  color: #fff;
  background: var(--felt);
  border: 1px solid rgba(255, 255, 255, 0.13);
  box-shadow: var(--shadow);
}

.report-card-heading {
  padding-bottom: 16px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.report-card-heading h3 {
  margin: 2px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.42rem;
  letter-spacing: -0.02em;
}

.report-card-heading > small {
  max-width: 210px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.74rem;
  text-align: right;
}

.report-chart-wrap {
  position: relative;
  height: 300px;
  margin: 18px 0 4px;
}

.report-line-chart {
  height: 330px;
}

.report-doughnut-chart {
  height: 330px;
  max-width: 430px;
  margin-inline: auto;
}

.ranking-list {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.ranking-list li {
  padding: 12px 0;
  display: grid;
  grid-template-columns: 26px 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.ranking-list li:last-child {
  border-bottom: 0;
}

.ranking-position {
  color: var(--lime);
  font-size: 0.84rem;
  font-weight: 850;
  text-align: center;
}

.ranking-player {
  min-width: 0;
}

.ranking-player strong,
.ranking-player small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ranking-player small {
  margin-top: 1px;
  color: rgba(255, 255, 255, 0.46);
  font-size: 0.72rem;
}

.ranking-value {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.report-positive {
  color: var(--lime);
}

.report-negative {
  color: #ff9a86;
}

.report-neutral {
  color: rgba(255, 255, 255, 0.72);
}

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

.report-table {
  width: 100%;
  min-width: 860px;
  border-collapse: collapse;
  font-size: 0.82rem;
}

.report-table th,
.report-table td {
  padding: 13px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.report-table th:first-child,
.report-table td:first-child {
  padding-left: 0;
  text-align: left;
}

.report-table th {
  color: rgba(255, 255, 255, 0.46);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.report-table td > small,
.report-table td:first-child small {
  display: block;
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.68rem;
}

.report-table tbody tr:last-child td {
  border-bottom: 0;
}

.report-night-list {
  display: grid;
}

.report-night-row {
  padding: 14px 0;
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto auto auto;
  align-items: center;
  gap: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.82rem;
}

.report-night-row:last-child {
  border-bottom: 0;
}

.report-night-row > span:first-child strong,
.report-night-row > span:first-child small {
  display: block;
}

.report-night-row > span:first-child small,
.report-night-row > span:not(:first-child) {
  color: rgba(255, 255, 255, 0.52);
}

.report-person-heading {
  padding: 22px 24px;
  display: flex;
  align-items: center;
  gap: 14px;
  color: #fff;
  background: var(--felt);
  border-left: 4px solid var(--lime);
}

.report-person-heading .avatar {
  width: 52px;
  height: 52px;
  font-size: 1rem;
}

.report-person-heading h2 {
  margin: 2px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.8rem;
  letter-spacing: -0.025em;
}

.report-person-heading small {
  color: rgba(255, 255, 255, 0.52);
}

.report-empty {
  padding: 28px 10px 14px;
  color: rgba(255, 255, 255, 0.55);
  text-align: center;
}

.report-empty strong {
  display: block;
  margin-bottom: 4px;
  color: #fff;
}

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

.report-empty.light strong {
  color: var(--ink);
}

.report-loading {
  display: flex;
  align-items: center;
  gap: 10px;
}

.report-loading .save-dot {
  background: var(--lime-deep);
}

.report-person-heading {
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--paper-strong);
  border: 1px solid var(--line);
}

.report-person-heading .avatar {
  width: 48px;
  height: 48px;
  color: #fff;
  background: var(--felt);
}

.report-person-heading h2 {
  margin: 1px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.8rem;
}

.report-person-heading small {
  display: block;
  color: var(--muted);
}

.report-loading {
  display: flex;
  align-items: center;
  gap: 10px;
}

.report-loading .save-dot {
  background: #b89332;
}

.report-empty {
  padding: 28px 10px;
  color: rgba(255, 255, 255, 0.58);
  text-align: center;
}

.report-empty strong {
  display: block;
  margin-bottom: 5px;
  color: #fff;
}

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

.report-empty.light strong {
  color: var(--ink);
}

.session-heading {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(500px, 1.35fr);
  align-items: end;
  gap: 36px;
  margin-bottom: 28px;
}

.session-title-input {
  width: 100%;
  padding: 0;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid transparent;
  outline: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 3.8rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1.05;
}

.session-title-input:hover,
.session-title-input:focus {
  border-bottom-color: var(--line);
}

.session-date {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.summary-strip {
  min-height: 74px;
  padding: 14px 16px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  color: #fff;
  background: var(--felt-soft);
  border-left: 4px solid var(--lime);
  box-shadow: var(--shadow);
}

.summary-item {
  padding: 0 18px;
  align-items: flex-start;
  flex-direction: column;
  justify-content: center;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
}

.summary-item:last-child {
  border-right: 0;
}

.summary-label {
  color: rgba(255, 255, 255, 0.56);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.summary-value {
  margin-top: 2px;
  font-size: 1.12rem;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
}

.panel {
  margin-top: 18px;
  padding: clamp(20px, 3vw, 32px);
  background: var(--paper-strong);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.panel-header,
.card-heading {
  justify-content: space-between;
  gap: 20px;
}

.panel-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.panel h2,
.results-intro h2 {
  margin: 4px 0 0;
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  line-height: 1.1;
}

.panel-help {
  margin: 10px 0 24px;
  color: var(--muted);
  font-size: 0.9rem;
}

.button {
  min-height: 42px;
  padding: 9px 15px;
  border: 1px solid transparent;
  border-radius: 9px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 750;
  transition: transform 150ms ease, background 150ms ease, border-color 150ms ease;
}

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

.button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
  transform: none;
}

.button:active {
  transform: translateY(0);
}

button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid rgba(127, 155, 35, 0.28);
  outline-offset: 2px;
}

.button-primary {
  color: var(--felt);
  background: var(--lime);
  border-color: #bfeb24;
}

.button-secondary {
  color: #fff;
  background: var(--felt);
}

.button-ghost {
  color: #fff;
  background: transparent;
  border-color: rgba(255, 255, 255, 0.2);
}

.button-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
}

.button-text {
  min-height: 36px;
  padding: 6px 8px;
  color: var(--muted);
  background: transparent;
  border: 0;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 3px;
}

.button-text:hover {
  color: var(--danger);
  text-decoration-color: currentColor;
}

.players-table {
  width: 100%;
  border-collapse: collapse;
}

.players-table th {
  padding: 0 10px 10px;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-align: left;
  text-transform: uppercase;
}

.players-table th:first-child,
.players-table td:first-child {
  padding-left: 0;
}

.players-table th:last-child,
.players-table td:last-child {
  padding-right: 0;
}

.players-table td {
  padding: 10px;
  border-top: 1px solid var(--line);
}

.round-card {
  margin-top: 18px;
  border: 1px solid var(--line);
  background: #fff;
}

.round-card:first-child {
  margin-top: 0;
}

.round-header {
  min-height: 70px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: #fff;
  background: var(--felt-soft);
  border-left: 4px solid var(--lime);
}

.round-buyin {
  min-width: 148px;
  margin-left: auto;
}

.round-buyin label {
  display: block;
  margin-bottom: 4px;
  color: rgba(255, 255, 255, 0.56);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.round-buyin .money-field {
  min-height: 38px;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.22);
}

.round-buyin .money-wrap::before {
  color: rgba(255, 255, 255, 0.58);
}

.round-heading {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.round-number {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  color: var(--felt);
  background: var(--lime);
  border-radius: 50%;
  font-size: 0.82rem;
  font-weight: 850;
}

.round-title-input {
  min-width: 0;
  width: min(300px, 42vw);
  padding: 4px 2px;
  color: #fff;
  background: transparent;
  border: 0;
  border-bottom: 1px solid transparent;
  outline: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.25rem;
  font-weight: 700;
}

.round-title-input:hover,
.round-title-input:focus {
  border-bottom-color: rgba(255, 255, 255, 0.34);
}

.round-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.round-header .button-text {
  color: rgba(255, 255, 255, 0.65);
}

.round-status {
  padding: 5px 9px;
  border: 1px solid;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 800;
  white-space: nowrap;
}

.round-status-ready {
  color: var(--lime);
  background: rgba(214, 255, 75, 0.06);
  border-color: rgba(214, 255, 75, 0.28);
}

.round-status-pending {
  color: #ffe1a8;
  background: rgba(255, 188, 61, 0.06);
  border-color: rgba(255, 188, 61, 0.28);
}

.round-status-error {
  color: #ffb1a3;
  background: rgba(255, 112, 92, 0.06);
  border-color: rgba(255, 112, 92, 0.28);
}

.round-table-wrap {
  padding: 18px 18px 6px;
}

.round-add-player {
  padding: 12px 18px 18px;
}

.round-add-player .button {
  width: 100%;
}

.round-player-cell {
  min-width: 185px;
}

.player-select-wrap {
  min-width: 190px;
}

.player-select-wrap .select-field {
  font-weight: 750;
}

.reentry-counter {
  min-width: 130px;
  display: grid;
  grid-template-columns: 38px 52px 38px;
  align-items: stretch;
}

.counter-button,
.counter-input {
  min-height: 42px;
  color: var(--ink);
  background: #fff;
  border: 1px solid #cbc7ba;
}

.counter-button {
  cursor: pointer;
  font-size: 1.15rem;
  font-weight: 800;
}

.counter-button:first-child {
  border-radius: 8px 0 0 8px;
}

.counter-button:last-child {
  border-radius: 0 8px 8px 0;
}

.counter-button:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}

.counter-input {
  width: 52px;
  padding: 6px 2px;
  border-right: 0;
  border-left: 0;
  border-radius: 0;
  font-weight: 800;
  text-align: center;
  -moz-appearance: textfield;
}

.counter-input::-webkit-inner-spin-button,
.counter-input::-webkit-outer-spin-button {
  margin: 0;
  -webkit-appearance: none;
}

.seat-player-meta {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.72rem;
}

.round-player-name {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 800;
}

.round-player-name .avatar {
  width: 32px;
  height: 32px;
  color: #fff;
  background: var(--felt-soft);
  font-size: 0.72rem;
}

.round-player-name strong,
.round-player-name small {
  display: block;
}

.round-player-name small {
  margin-top: 1px;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 600;
}

.alias-field {
  min-height: 38px;
  margin-top: 7px;
  color: #455047;
  background: #f5f3ec;
  font-size: 0.82rem;
}

.remove-person {
  min-height: auto;
  margin-top: 3px;
  padding: 0;
  display: block;
  font-size: 0.72rem;
}

.participation-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 750;
}

.participation-toggle input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--lime-deep);
}

.round-row-inactive td:not(:first-child) {
  opacity: 0.42;
}

.round-row-inactive .money-field {
  background: #f2f0e9;
}

.round-result {
  min-width: 105px;
  font-weight: 850;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.round-result.balance-positive {
  color: var(--success);
}

.round-result.balance-negative {
  color: var(--danger);
}

.round-footer {
  padding: 13px 18px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  background: #f5f3ec;
  border-top: 1px solid var(--line);
}

.round-metric {
  padding: 2px 14px;
  border-right: 1px solid var(--line);
}

.round-metric:first-child {
  padding-left: 0;
}

.round-metric:last-child {
  padding-right: 0;
  border-right: 0;
}

.round-metric span {
  display: block;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.round-metric strong {
  display: block;
  margin-top: 2px;
  font-size: 0.92rem;
  font-variant-numeric: tabular-nums;
}

.round-metric .metric-error {
  color: var(--danger);
}

.round-metric .metric-ready {
  color: var(--success);
}

.field,
.money-field,
.select-field {
  width: 100%;
  min-height: 44px;
  padding: 9px 11px;
  color: var(--ink);
  background: #fff;
  border: 1px solid #cbc7ba;
  border-radius: 8px;
}

.money-wrap {
  min-width: 138px;
  position: relative;
}

.money-wrap::before {
  content: "$";
  position: absolute;
  top: 50%;
  left: 12px;
  z-index: 1;
  color: var(--muted);
  transform: translateY(-50%);
}

.money-field {
  padding-left: 28px;
  font-variant-numeric: tabular-nums;
}

.final-money .money-field {
  border-color: var(--lime-deep);
  background: #fbffe9;
  font-weight: 750;
}

.cashout-control {
  min-width: 238px;
  display: grid;
  grid-template-columns: minmax(138px, 1fr) auto;
  align-items: stretch;
  gap: 7px;
}

.chip-calc-trigger {
  min-width: 74px;
  min-height: 44px;
  padding: 7px 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: var(--felt);
  background: #fff;
  border: 1px solid #a8a497;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.76rem;
  font-weight: 800;
}

.chip-calc-trigger:hover {
  border-color: var(--lime-deep);
  background: #f8fce8;
}

.chip-trigger-mark {
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--danger);
  border: 3px dashed rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  box-shadow: 0 0 0 1px var(--danger);
}

.spent-total {
  min-width: 110px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.empty-state {
  padding: 30px 20px;
  color: var(--muted);
  border: 1px dashed #c9c4b6;
  text-align: center;
}

.empty-state strong {
  display: block;
  margin-bottom: 5px;
  color: var(--ink);
}

.expense-card {
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.expense-card:first-child {
  padding-top: 2px;
  border-top: 0;
}

.expense-top {
  display: grid;
  grid-template-columns: minmax(180px, 1.5fr) minmax(140px, 0.7fr) minmax(180px, 1fr) auto;
  gap: 12px;
}

.field-group label,
.participant-label {
  display: block;
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 750;
}

.participants-block {
  margin-top: 14px;
}

.participants-list {
  flex-wrap: wrap;
  gap: 8px;
}

.participant-chip {
  position: relative;
}

.participant-chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.participant-chip span {
  min-height: 38px;
  padding: 8px 13px;
  display: inline-flex;
  align-items: center;
  color: var(--muted);
  background: #f3f1ea;
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 700;
}

.participant-chip input:checked + span {
  color: var(--felt);
  background: var(--lime);
  border-color: #b8dd37;
}

.participant-chip input:focus-visible + span {
  outline: 3px solid rgba(127, 155, 35, 0.28);
  outline-offset: 2px;
}

.expense-share {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.expense-share strong {
  color: var(--ink);
}

.results-section {
  margin-top: 18px;
  padding: clamp(24px, 4vw, 42px);
  color: #fff;
  background:
    radial-gradient(circle at 86% 5%, rgba(214, 255, 75, 0.12), transparent 24%),
    var(--felt);
  box-shadow: 0 24px 60px rgba(17, 23, 19, 0.2);
}

.step-label-light,
.card-kicker {
  color: var(--lime);
}

.results-intro p:last-child {
  max-width: 620px;
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.64);
}

.status-banner {
  margin: 24px 0 18px;
  padding: 13px 15px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border: 1px solid;
  font-size: 0.9rem;
}

.status-banner strong {
  display: block;
}

.status-pending {
  color: #fff2c5;
  background: rgba(255, 188, 61, 0.08);
  border-color: rgba(255, 188, 61, 0.3);
}

.status-error {
  color: #ffd9d2;
  background: rgba(255, 112, 92, 0.08);
  border-color: rgba(255, 112, 92, 0.3);
}

.status-ready {
  color: #ebffc0;
  background: rgba(214, 255, 75, 0.07);
  border-color: rgba(214, 255, 75, 0.3);
}

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

.transfers-card,
.balances-card {
  padding: 22px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.13);
}

.transfers-card-final {
  margin-top: 18px;
}

.transfers-card-final #transfers-region {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 28px;
}

.card-heading {
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.card-heading h3 {
  margin: 2px 0 0;
  font-size: 1.35rem;
}

.card-heading-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

.copy-transfers {
  min-height: 36px;
  padding: 7px 11px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 800;
}

.copy-transfers:hover:not(:disabled) {
  color: var(--felt);
  background: var(--lime);
  border-color: var(--lime);
}

.copy-transfers:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}

.count-badge {
  min-width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  color: var(--felt);
  background: var(--lime);
  border-radius: 50%;
  font-weight: 850;
}

.transfer-row {
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.transfer-row:last-child {
  border-bottom: 0;
}

.avatar {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  color: var(--felt);
  background: var(--paper);
  border-radius: 50%;
  font-size: 0.85rem;
  font-weight: 850;
  text-transform: uppercase;
}

.transfer-copy {
  min-width: 0;
  flex: 1;
}

.transfer-copy p {
  margin: 0;
  color: rgba(255, 255, 255, 0.63);
  font-size: 0.78rem;
}

.transfer-copy strong {
  display: block;
  overflow: hidden;
  color: #fff;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.transfer-alias {
  display: block;
  margin-top: 2px;
  overflow: hidden;
  color: var(--lime);
  font-size: 0.76rem;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.transfer-alias.alias-missing {
  color: #ffd18c;
}

.transfer-amount {
  color: var(--lime);
  font-size: 1.02rem;
  font-weight: 850;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.result-empty {
  padding: 28px 0 12px;
  color: rgba(255, 255, 255, 0.58);
  text-align: center;
}

.result-empty strong {
  display: block;
  margin-bottom: 5px;
  color: #fff;
}

.balance-row {
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.balance-row:last-child {
  border-bottom: 0;
}

.balance-main {
  justify-content: space-between;
  gap: 18px;
}

.balance-person {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

.balance-person span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.balance-identity strong,
.balance-identity small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.balance-identity small {
  margin-top: 1px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.74rem;
  font-weight: 650;
}

.balance-total {
  display: block;
  font-size: 1.05rem;
  font-weight: 850;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.balance-values {
  flex: 0 0 auto;
  text-align: right;
}

.balance-settlement {
  display: block;
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.76rem;
  font-weight: 700;
  white-space: nowrap;
}

.balance-positive {
  color: var(--lime);
}

.balance-negative {
  color: #ff9a86;
}

.balance-neutral {
  color: rgba(255, 255, 255, 0.72);
}

.balance-breakdown {
  margin: 5px 0 0 48px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.78rem;
}

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 20;
  max-width: min(360px, calc(100vw - 40px));
  padding: 12px 15px;
  color: #fff;
  background: var(--felt);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-left: 4px solid var(--lime);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.24);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.visible {
  opacity: 1;
  transform: translateY(0);
}

.chip-dialog {
  width: min(540px, calc(100% - 28px));
  max-height: calc(100dvh - 28px);
  margin: auto;
  padding: 0;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-radius: 18px;
  overflow: visible;
}

.auth-dialog {
  width: min(460px, calc(100% - 28px));
  max-height: calc(100dvh - 28px);
  margin: auto;
  padding: 0;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-radius: 18px;
}

.auth-dialog::backdrop {
  background: rgba(7, 12, 9, 0.76);
  backdrop-filter: blur(3px);
}

.auth-dialog-body {
  padding: 22px 24px 4px;
}

.auth-error {
  margin: 10px 0 0;
  padding: 9px 11px;
  color: var(--danger);
  background: rgba(184, 66, 52, 0.08);
  border-left: 3px solid var(--danger);
  font-size: 0.82rem;
}

.chip-dialog::backdrop {
  background: rgba(7, 12, 9, 0.76);
  backdrop-filter: blur(3px);
}

.chip-dialog-surface {
  max-height: calc(100dvh - 28px);
  background: var(--paper-strong);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  box-shadow: 0 28px 80px rgba(3, 8, 5, 0.38);
  overflow: auto;
}

.chip-dialog-header {
  padding: 22px 24px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  color: #fff;
  background: var(--felt-soft);
  border-bottom: 4px solid var(--lime);
}

.chip-dialog-header h2 {
  margin: 4px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.65rem;
  line-height: 1.1;
}

.chip-dialog-header p:last-child {
  margin: 7px 0 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.86rem;
}

.dialog-close {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.75);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.5rem;
  line-height: 1;
}

.chip-list {
  padding: 10px 24px 4px;
}

.chip-row {
  min-height: 68px;
  display: grid;
  grid-template-columns: minmax(150px, 1fr) 136px 92px;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--line);
}

.chip-row:last-child {
  border-bottom: 0;
}

.chip-kind {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 11px;
}

.chip-swatch {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  border: 4px dashed rgba(255, 255, 255, 0.72);
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(17, 23, 19, 0.28), inset 0 0 0 2px rgba(17, 23, 19, 0.12);
}

.chip-red { background: #cf4039; }
.chip-green { background: #2f8c54; }
.chip-blue { background: #2f69b1; }
.chip-white { background: #f5f2e9; border-color: #bdb8aa; }
.chip-black { background: #171b18; }

.chip-kind strong,
.chip-kind small {
  display: block;
}

.chip-kind strong {
  font-size: 0.95rem;
}

.chip-kind small {
  color: var(--muted);
  font-size: 0.76rem;
}

.chip-count-stepper {
  display: grid;
  grid-template-columns: 38px 60px 38px;
}

.chip-count-stepper button,
.chip-count-input {
  min-height: 42px;
  color: var(--ink);
  background: #fff;
  border: 1px solid #cbc7ba;
}

.chip-count-stepper button {
  cursor: pointer;
  font-size: 1.1rem;
  font-weight: 850;
}

.chip-count-stepper button:first-child {
  border-radius: 8px 0 0 8px;
}

.chip-count-stepper button:last-child {
  border-radius: 0 8px 8px 0;
}

.chip-count-input {
  width: 60px;
  padding: 6px 3px;
  border-right: 0;
  border-left: 0;
  border-radius: 0;
  font-weight: 850;
  text-align: center;
  -moz-appearance: textfield;
}

.chip-count-input::-webkit-inner-spin-button,
.chip-count-input::-webkit-outer-spin-button {
  margin: 0;
  -webkit-appearance: none;
}

.chip-subtotal {
  font-size: 0.88rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.chip-total-panel {
  margin: 10px 24px 0;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: #fff;
  background: var(--felt);
  border-radius: 12px;
}

.chip-total-panel span {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.chip-total-panel strong {
  color: var(--lime);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.7rem;
  font-variant-numeric: tabular-nums;
}

.chip-dialog-actions {
  padding: 18px 24px 24px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 900px) {
  .topbar,
  .session-heading {
    align-items: stretch;
  }

  .topbar {
    flex-direction: column;
  }

  .main-nav {
    width: 100%;
    flex-wrap: wrap;
  }

  .nav-button {
    flex: 1 1 82px;
  }

  .top-actions {
    width: 100%;
    flex-wrap: wrap;
  }

  .save-state {
    flex: 1 0 100%;
  }

  .session-heading,
  .results-grid,
  .report-grid {
    grid-template-columns: 1fr;
  }

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

  .transfers-card-final #transfers-region {
    grid-template-columns: 1fr;
  }

  .history-row {
    grid-template-columns: minmax(100px, 0.5fr) minmax(220px, 2fr) auto;
  }

  .history-row .button {
    grid-column: 2 / -1;
    justify-self: start;
  }

  .players-table,
  .players-table tbody,
  .players-table tr,
  .players-table td {
    display: block;
    width: 100%;
  }

  .players-table thead {
    display: none;
  }

  .players-table tr {
    padding: 15px 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    border-top: 1px solid var(--line);
  }

  .players-table td {
    padding: 0;
    border: 0;
  }

  .players-table td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 5px;
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
  }

  .players-table td:first-child,
  .players-table td:last-child {
    grid-column: 1 / -1;
  }

  .round-player-cell {
    grid-column: 1 / -1;
  }

  .round-result {
    min-height: 44px;
    display: flex;
    align-items: center;
    text-align: left;
  }

  .spent-total {
    min-height: 44px;
    display: flex;
    align-items: center;
    text-align: left;
  }
}

@media (max-width: 680px) {
  .topbar {
    padding: 16px 18px;
  }

  .nav-button {
    min-width: 76px;
    padding-inline: 7px;
    font-size: 0.76rem;
  }

  main {
    width: min(100% - 24px, 1180px);
    padding-top: 28px;
  }

  .session-heading {
    gap: 22px;
  }

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

  .summary-item {
    min-height: 58px;
    padding: 8px 12px;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }

  .summary-item:last-child {
    border-bottom: 0;
  }

  .panel-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .panel-header .button {
    width: 100%;
  }

  .panel-actions {
    width: 100%;
    flex-direction: column;
  }

  .directory-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .directory-heading .button {
    width: 100%;
  }

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

  .report-filters-heading,
  .report-card-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .report-filters-heading > p,
  .report-card-heading > small {
    text-align: left;
  }

  .report-filters,
  .report-metrics,
  .report-records {
    grid-template-columns: 1fr;
  }

  .report-card {
    padding: 18px;
  }

  .report-chart-wrap,
  .report-line-chart,
  .report-doughnut-chart {
    height: 280px;
  }

  .report-night-row {
    grid-template-columns: 1fr auto;
    gap: 8px 14px;
  }

  .rules-list {
    padding-left: 22px;
  }

  .rules-list li {
    padding-left: 5px;
    font-size: 0.94rem;
  }

  .history-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .history-row .button {
    width: 100%;
    grid-column: auto;
  }

  .history-status {
    justify-self: start;
  }

  .round-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .round-heading,
  .round-header-actions {
    width: 100%;
  }

  .round-buyin {
    width: 100%;
    margin-left: 0;
  }

  .round-header-actions {
    justify-content: space-between;
  }

  .round-title-input {
    width: 100%;
  }

  .round-table-wrap {
    padding-inline: 14px;
  }

  .round-footer {
    grid-template-columns: 1fr;
  }

  .round-metric {
    min-height: 54px;
    padding: 8px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .round-metric:last-child {
    border-bottom: 0;
  }

  .expense-top {
    grid-template-columns: 1fr;
  }

  .expense-top .button-text {
    justify-self: start;
  }

  .results-section {
    padding-inline: 18px;
  }

  .transfers-card,
  .balances-card {
    padding: 18px;
  }

  .transfers-card .card-heading {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 12px;
  }

  .transfers-card .card-heading-actions {
    width: 100%;
    margin-left: 0;
    justify-content: space-between;
  }

  .transfer-row {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .transfer-amount {
    margin-left: 50px;
  }

  .cashout-control {
    width: 100%;
    min-width: 0;
  }

  .chip-dialog-header,
  .chip-list,
  .chip-dialog-actions {
    padding-inline: 16px;
  }

  .chip-row {
    padding: 12px 0;
    grid-template-columns: 1fr auto;
  }

  .chip-count-stepper {
    grid-row: 2;
    grid-column: 1;
  }

  .chip-subtotal {
    grid-row: 2;
    grid-column: 2;
  }

  .chip-total-panel {
    margin-inline: 16px;
  }

  .chip-dialog-actions .button {
    flex: 1;
  }
}

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