/* SplitBill — tool-specific styles.
   Shared styles (nav, panels, buttons) live in ../../css/style.css */

.sb {
  max-width: 620px;
  margin: 6px auto 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ---------- Amounts ---------- */
.sb-top { display: flex; gap: 12px; align-items: flex-end; }
.sb-field { flex: 1; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.sb-field-small { flex: 0 0 110px; }
.sb-label {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #74747e;
}

.sb-input-wrap {
  display: flex;
  align-items: center;
  background: #141418;
  border: 1px solid #26262b;
  border-radius: 12px;
  padding: 0 13px;
  transition: border-color .15s, box-shadow .15s;
}
.sb-input-wrap:focus-within {
  border-color: var(--pink);
  box-shadow: 0 0 0 3px rgba(232, 70, 124, .18);
}
.sb-currency { color: #74747e; font-size: 1.05rem; font-weight: 600; }
#sb-total {
  flex: 1;
  min-width: 0;
  background: none;
  border: none;
  outline: none;
  color: var(--text);
  font: inherit;
  font-size: 1.35rem;
  font-weight: 700;
  padding: 12px 8px;
  font-variant-numeric: tabular-nums;
}
#sb-tip {
  background: #141418;
  border: 1px solid #26262b;
  border-radius: 12px;
  color: var(--text);
  font: inherit;
  font-size: 1.1rem;
  font-weight: 700;
  padding: 13px 12px;
  outline: none;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
#sb-tip:focus { border-color: var(--pink); }
#sb-total::-webkit-outer-spin-button, #sb-total::-webkit-inner-spin-button,
#sb-tip::-webkit-outer-spin-button, #sb-tip::-webkit-inner-spin-button {
  -webkit-appearance: none; margin: 0;
}
#sb-total, #sb-tip { -moz-appearance: textfield; }

/* ---------- People ---------- */
.sb-head-actions { margin-left: auto; display: flex; gap: 6px; }
.sb-people { display: flex; flex-direction: column; gap: 7px; }

.sb-person {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #141418;
  border: 1px solid #1c1c20;
  border-radius: 11px;
  padding: 7px 9px;
}
.sb-name {
  flex: 1;
  min-width: 0;
  background: none;
  border: none;
  outline: none;
  color: var(--text);
  font: inherit;
  font-size: .9rem;
  font-weight: 600;
  padding: 5px 4px;
  border-bottom: 1px solid transparent;
}
.sb-name:focus { border-bottom-color: var(--pink); }

.sb-shares {
  flex: none;
  display: flex;
  align-items: center;
  gap: 2px;
  background: #1c1c20;
  border-radius: 8px;
  padding: 2px;
}
.sb-share-btn {
  width: 24px; height: 24px;
  border: none;
  border-radius: 6px;
  background: none;
  color: #c4c4cc;
  font: inherit;
  font-size: .95rem;
  line-height: 1;
  cursor: pointer;
  transition: background .15s;
}
.sb-share-btn:hover:not(:disabled) { background: #2a2a31; }
.sb-share-btn:disabled { opacity: .3; cursor: not-allowed; }
.sb-share-count {
  min-width: 18px;
  text-align: center;
  font-size: .8rem;
  font-weight: 700;
  color: var(--pink);
  font-variant-numeric: tabular-nums;
}

.sb-amount {
  flex: none;
  min-width: 78px;
  text-align: right;
  font-size: .95rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.sb-remove {
  flex: none;
  width: 26px; height: 26px;
  border: none;
  border-radius: 7px;
  background: none;
  color: #5c5c66;
  font-size: 1.05rem;
  line-height: 1;
  cursor: pointer;
  transition: background .15s, color .15s;
}
.sb-remove:hover:not(:disabled) { background: rgba(239, 68, 68, .15); color: #ef4444; }
.sb-remove:disabled { opacity: .3; cursor: not-allowed; }

.sb-hint { margin-top: 10px; color: #5c5c66; font-size: .78rem; }

/* ---------- Summary ---------- */
.sb-out .panel-body { display: flex; flex-direction: column; gap: 14px; }
.sb-summary { display: flex; flex-direction: column; gap: 8px; }
.sb-sum {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  font-size: .85rem;
  color: #8b8b94;
}
.sb-sum strong { color: var(--text); font-weight: 700; font-variant-numeric: tabular-nums; }
.sb-sum-main {
  padding-top: 9px;
  border-top: 1px solid #1c1c20;
  font-size: .95rem;
}
.sb-sum-main strong { color: var(--pink-light); font-size: 1.35rem; }

.sb-copy { width: 100%; padding: 11px; font-size: .88rem; }

@media (max-width: 520px) {
  .sb-top { flex-direction: column; align-items: stretch; }
  .sb-field-small { flex: 1; }
  .sb-amount { min-width: 66px; font-size: .88rem; }
}
