/**
 * Chalk & Settle — Dots setup wizard (Phase 3)
 */

.cs-dt-screen {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  padding: 0;
  max-width: 430px;
}

.cs-dt-screen.u-hidden { display: none; }

.cs-dt-nav {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  column-gap: 8px;
  padding: 14px 18px 8px;
  flex-shrink: 0;
}

.cs-dt-nav > :first-child { justify-self: start; }
.cs-dt-nav > :nth-child(2) { justify-self: center; }
.cs-dt-nav > :last-child { justify-self: end; }

.cs-dt-back {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--forest);
  font-weight: 600;
  background: none;
  border: none;
  cursor: pointer;
  min-height: var(--touch-min);
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

.cs-dt-game {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--cs-muted);
  font-weight: 600;
}

.cs-dt-body {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 0 16px 14px;
}

.cs-dt-sec { margin-top: 16px; }

.cs-dt-sec-h {
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
  display: flex;
  align-items: baseline;
}

.cs-dt-hint {
  color: var(--text-dim);
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  font-size: 11px;
  margin-left: auto;
}

.cs-dt-players {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.cs-dt-player {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 11px;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
}

.cs-dt-p-av {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--bg-inset);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  color: var(--olive);
  flex-shrink: 0;
}

.cs-dt-p-name {
  font-family: var(--font-body);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--forest);
  flex: 1;
  min-width: 0;
}

.cs-dt-p-ch {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  flex-shrink: 0;
}

.cs-dt-p-strokes {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--muted);
  min-width: 48px;
  text-align: right;
  flex-shrink: 0;
}

.cs-dt-p-strokes--gets { color: var(--olive); font-weight: 500; }
.cs-dt-p-strokes--zero { color: var(--cs-muted); font-weight: 500; }
.cs-dt-p-strokes--gross,
.cs-dt-p-strokes--muted { color: var(--muted); }

.cs-dt-note {
  font-size: 12px;
  color: var(--muted);
  margin-top: 8px;
  line-height: 1.4;
}

.cs-dt-money {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 14px;
}

.cs-dt-money-lbl {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 6px;
}

.cs-dt-money-in {
  display: flex;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 9px 12px;
}

.cs-dt-cur {
  font-family: var(--font-mono);
  font-size: 18px;
  color: var(--cs-muted);
  flex-shrink: 0;
}

.cs-dt-money-in input {
  border: none;
  background: transparent;
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 500;
  color: var(--forest);
  width: 100%;
  outline: none;
  -moz-appearance: textfield;
}

.cs-dt-money-in input::-webkit-outer-spin-button,
.cs-dt-money-in input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.cs-dt-cat {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 4px 0;
}

.cs-dt-cat-name {
  flex: 1;
  min-width: 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

.cs-dt-cat.is-on .cs-dt-cat-name { color: var(--forest); }

.cs-dt-cat-amt {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.cs-dt-cat-step {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-card);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.cs-dt-cat-pts {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  min-width: 20px;
  text-align: center;
}

.cs-dt-toggle {
  width: 40px;
  height: 23px;
  border-radius: 12px;
  background: var(--stone);
  position: relative;
  flex-shrink: 0;
  border: none;
  cursor: pointer;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

.cs-dt-toggle::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: var(--paper);
}

.cs-dt-toggle.is-on { background: var(--forest); }
.cs-dt-toggle.is-on::after { left: auto; right: 2px; }

.cs-dt-custom {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

.cs-dt-custom-in {
  flex: 1;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg-card);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 13px;
  padding: 0 12px;
}

.cs-dt-custom-add {
  min-height: 44px;
  padding: 0 16px;
  background: var(--forest);
  color: var(--on-forest);
  border: none;
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.cs-dt-custom-remove {
  width: 44px;
  height: 44px;
  border: none;
  background: none;
  color: var(--clay);
  font-size: 18px;
  cursor: pointer;
}

.cs-dt-opt-row { display: flex; gap: 8px; }

.cs-dt-opt-card {
  flex: 1;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 9px 11px;
}

.cs-dt-opt-lbl {
  font-size: 10.5px;
  color: var(--muted);
  margin-bottom: 4px;
}

.cs-dt-opt-val {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cs-dt-v {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 500;
  color: var(--forest);
}

.cs-dt-opt-step { display: flex; gap: 5px; }

.cs-dt-opt-btn {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--forest);
  cursor: pointer;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

.cs-dt-startbar {
  flex-shrink: 0;
  padding: 11px 16px calc(11px + env(safe-area-inset-bottom));
  background: var(--paper);
  border-top: 1px solid var(--line);
}

.cs-dt-start-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  gap: 8px;
}

.cs-dt-lab {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--forest);
}

.cs-dt-amt {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--muted);
}

.cs-dt-btn-start {
  width: 100%;
  min-height: var(--touch-min);
  background: var(--forest);
  color: var(--on-forest);
  border: none;
  border-radius: 14px;
  padding: 15px;
  font-family: var(--font-body);
  font-size: 15.5px;
  font-weight: 600;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.cs-dt-engine-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}
