:root {
  --ink: #1b2422;
  --muted: #5d6b67;
  --paper: #f4efe4;
  --card: #fffdf8;
  --line: #e2d9c8;
  --teal: #0f5f56;
  --teal-2: #157a6e;
  --gold: #c9a227;
  --danger: #b42318;
  --ok: #176b45;
  --warn: #9a6700;
  --sidebar: #12332f;
  --shadow: 0 10px 30px rgba(18, 51, 47, 0.08);
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--paper); color: var(--ink); }
#app { height: 100%; }
button, input, select, textarea { font: inherit; }
a { color: var(--teal); }

.install-body { display: grid; place-items: center; min-height: 100%; }
.install-card {
  width: min(440px, 92vw);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px;
  box-shadow: var(--shadow);
}
.brand { font-size: 22px; font-weight: 700; letter-spacing: .04em; }
.muted { color: var(--muted); }
.install-card h3 { margin: 18px 0 8px; font-size: 14px; color: var(--teal); }
label { display: block; margin: 8px 0; font-size: 13px; color: var(--muted); }
input, select, textarea {
  width: 100%; margin-top: 4px; padding: 8px 10px;
  border: 1px solid var(--line); border-radius: 8px; background: #fff;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 0;
  border: 1px solid #ddd4c2;
  border-radius: 8px;
  padding: 7px 14px;
  min-height: 36px;
  cursor: pointer;
  background: #ece6d8;
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  box-sizing: border-box;
}
a.btn, a.btn:link, a.btn:visited, a.btn:hover, a.btn:active {
  color: var(--ink);
  text-decoration: none;
}
label.btn {
  display: inline-flex;
  margin: 0;
  font-size: 13px;
  color: var(--ink);
}
.btn:hover:not(:disabled) { background: #e3dccb; }
.btn.primary { background: var(--teal); color: #fff; border-color: var(--teal); }
.btn.primary:hover:not(:disabled) { background: var(--teal-2); }
.btn.gold { background: var(--gold); color: #1b2422; border-color: #b8941f; }
.btn.gold:hover:not(:disabled) { filter: brightness(1.04); background: var(--gold); }
.btn.danger { background: var(--danger); color: #fff; border-color: var(--danger); }
.btn.danger:hover:not(:disabled) { background: #9b1e15; }
.btn.ghost { background: #fff; border-color: var(--line); color: var(--ink); min-height: 30px; padding: 4px 10px; }
.btn.ghost:hover:not(:disabled) { background: #f6f1e6; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.alert { padding: 10px 12px; border-radius: 8px; margin: 10px 0; }
.alert.err { background: #fde8e6; color: var(--danger); }
.alert.ok { background: #e6f6ee; color: var(--ok); }

.layout { display: grid; grid-template-columns: 220px 1fr; height: 100%; min-height: 100%; }
.side {
  background: var(--sidebar); color: #e8efe9; padding: 18px 12px;
  display: flex; flex-direction: column;
  height: 100%;
  overflow-y: auto;
}
.side .brand { color: #fff; padding: 6px 10px 18px; }
.nav a, .nav button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  text-align: left;
  color: #d5e4df;
  background: none;
  border: 0;
  padding: 9px 12px;
  border-radius: 8px;
  text-decoration: none;
  cursor: pointer;
  margin-bottom: 2px;
}
.nav-ico {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  opacity: .88;
}
.nav a:hover, .nav a.active { background: #1c4d47; color: #fff; }
.nav a:hover .nav-ico, .nav a.active .nav-ico { opacity: 1; }
.main { padding: 22px 26px 40px; overflow: auto; height: 100%; }
.topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; gap: 12px; }
h1 { font-size: 22px; margin: 0; }
.userbox { font-size: 13px; color: var(--muted); display: flex; gap: 10px; align-items: center; }

.cards { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 12px; margin-bottom: 18px; }
.dash-hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
  padding: 20px 22px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
}
.dash-hello { font-size: 22px; font-weight: 700; letter-spacing: .02em; }
.dash-hero .muted { margin: 6px 0 0; }
.dash-hero-side { min-width: 160px; }
.dash-hero-side .field { margin: 0; }
.dash-kpi {
  text-align: left;
  width: 100%;
  cursor: pointer;
  border: 1px solid var(--line);
  position: relative;
}
.dash-kpi::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--teal);
  border-radius: 14px 0 0 14px;
}
.dash-kpi.warn::before { background: var(--warn); }
.dash-kpi.danger::before { background: var(--danger); }
.dash-kpi:hover { border-color: #c9bfa8; background: #fff; }
.dash-kpi .hint { margin-top: 8px; font-size: 12px; color: var(--muted); }
.dash-grid {
  display: grid;
  grid-template-columns: 1.45fr .9fr;
  gap: 14px;
  margin-bottom: 18px;
}
.dash-settle h3, .dash-actions h3, .dash-rank-card h3 {
  margin: 0;
  font-size: 15px;
  color: var(--teal);
}
.dash-settle-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}
.dash-settle-main { margin-bottom: 14px; }
.dash-settle-main .v { color: var(--teal); font-size: 30px; }
.dash-settle-rows {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 18px;
}
.dash-settle-rows div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
}
.dash-settle-rows b { color: var(--ink); font-variant-numeric: tabular-nums; }
.dash-actions { display: flex; flex-direction: column; }
.dash-link {
  display: block;
  width: 100%;
  margin: 0 0 8px;
  padding: 10px 12px;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
}
.dash-link:last-child { margin-bottom: 0; }
.dash-link:hover { background: #f6f1e6; border-color: #c9bfa8; }
.dash-rank-card { margin-bottom: 8px; }
table.data.dash-table { min-width: 0; width: 100%; }
.dash-rank { width: 36px; color: var(--muted); font-variant-numeric: tabular-nums; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: 16px; box-shadow: var(--shadow);
}
.card .k { color: var(--muted); font-size: 12px; }
.card .v { font-size: 26px; font-weight: 700; font-variant-numeric: tabular-nums; margin-top: 6px; }
.toolbar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; align-items: end; }
.toolbar > label { margin: 0; }
.toolbar .field { min-width: 140px; margin: 0; }
.toolbar .search-field { min-width: 320px; }
.toolbar .btn { flex: 0 0 auto; }
.city-picker {
  position: relative;
  min-width: 168px;
  font-size: 13px;
  color: var(--muted);
}
.city-select {
  display: block;
  width: 100%;
  margin: 4px 0 0;
  padding: 8px 26px 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%235d6b67' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round' d='M1.5 2.2L6 6.3 10.5 2.2'/%3E%3C/svg%3E") no-repeat right 10px center;
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  line-height: 1.15;
  text-align: left;
  cursor: pointer;
  min-height: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.city-select:hover { background-color: #fff; }
.city-menu {
  position: absolute;
  z-index: 30;
  top: calc(100% + 4px);
  left: 0;
  min-width: 100%;
  max-width: min(280px, 80vw);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 4px 0 0;
}
.city-menu-list {
  max-height: 220px;
  overflow: auto;
  margin: 0;
  padding: 0 4px;
}
.city-menu .check-item {
  padding: 4px 8px;
  border-radius: 4px;
  cursor: pointer;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.3;
  gap: 6px;
}
.city-menu .check-item:hover { background: #f6f1e6; }
.city-all-row {
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  margin-bottom: 2px;
  padding-bottom: 6px;
}
.city-menu-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 2px;
  margin-top: 4px;
  padding: 6px 8px;
  border-top: 1px solid var(--line);
}
.city-act {
  margin: 0;
  padding: 2px 8px;
  min-height: 0;
  height: 24px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 12px;
  line-height: 20px;
  cursor: pointer;
}
.city-act:hover { background: #f6f1e6; color: var(--ink); }
.city-act.on {
  color: #fff;
  background: var(--teal);
}
.city-act.on:hover { background: var(--teal-2); color: #fff; }
.toolbar-stat {
  margin-left: auto;
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
  line-height: 36px;
  padding: 0 2px;
}
.table-wrap { overflow-x: auto; border-radius: 12px; }
table.data { width: 100%; min-width: 1280px; border-collapse: collapse; background: var(--card); white-space: nowrap; }
table.data th, table.data td { padding: 8px 10px; border-bottom: 1px solid var(--line); text-align: center; vertical-align: middle; font-size: 13px; }
table.data th { background: #efe8d8; font-weight: 600; }
table.data th.col-flag, table.data td.col-flag { min-width: 4.5em; }
table.data th.col-remark, table.data td.col-remark { min-width: 8em; }
table.data.audit { min-width: 0; }
table.data.audit td.col-audit-detail {
  white-space: normal;
  word-break: break-word;
  min-width: 16em;
  line-height: 1.5;
}
table.data td.num, table.data th.num { text-align: center; font-variant-numeric: tabular-nums; }
table.data tr.unmatched { background: #fde8e6; }
table.data.payout {
  width: max-content;
  min-width: 0;
  max-width: none;
  table-layout: auto;
  white-space: nowrap;
}
table.data.payout th,
table.data.payout td,
table.data.payout th.num,
table.data.payout td.num {
  text-align: center;
  padding: 8px 12px;
  vertical-align: middle;
}
table.data.payout td[rowspan] { vertical-align: middle; font-weight: 600; }
table.data.payout tr.group-follow td { color: var(--ink); }
table.data.payout tr.total td { font-weight: 700; background: #efe8d8; }
.payout-role-block { margin: 0 0 22px; }
.payout-role-block:last-child { margin-bottom: 0; }
.payout-role {
  margin: 0 0 10px;
  font-size: 16px;
  color: var(--teal);
}
.payout-block { margin: 16px 0 28px; }
.payout-block h3 { margin: 0 0 8px; font-size: 15px; color: var(--teal); }
.payout-cols {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1.05fr) minmax(0, .9fr);
  gap: 12px;
  align-items: start;
}
.payout-cols .payout-block {
  margin: 0;
  min-width: 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 10px 10px 8px;
  box-shadow: var(--shadow);
  max-height: calc(100vh - 180px);
  overflow: auto;
}
.payout-cols .payout-block h3 {
  margin: 0 0 8px;
  padding: 2px 2px 8px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.payout-cols .table-wrap {
  overflow-x: auto;
  border-radius: 0;
  max-height: none;
}
.payout-cols table.data.payout {
  width: 100%;
  min-width: 100%;
  max-width: none;
  table-layout: auto;
}
.payout-cols table.data.payout th,
.payout-cols table.data.payout td {
  padding: 7px 8px;
  font-size: 12px;
}
.payout-shot {
  margin: 0 0 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: #fffdf8;
  break-inside: avoid;
  page-break-inside: avoid;
}
.payout-shot:last-child { margin-bottom: 2px; }
.payout-shot-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  background: #efe8d8;
  font-weight: 700;
  font-size: 13px;
}
.payout-shot-head span { color: var(--muted); font-weight: 500; font-size: 12px; }
.payout-shot-head b {
  margin-left: auto;
  color: var(--teal);
  font-variant-numeric: tabular-nums;
}
.payout-plain table.data.payout thead th {
  position: sticky;
  top: 0;
  z-index: 1;
}
.payout-plain table.data.payout tbody tr.group-start td {
  border-top: 2px solid #d9d0bc;
}
.payout-plain table.data.payout tbody tr:first-child td {
  border-top: 0;
}
.payout-card {
  margin: 0 0 22px;
  width: fit-content;
  max-width: 100%;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  break-inside: avoid;
  page-break-inside: avoid;
}
.payout-card .table-wrap { border-radius: 0; overflow: visible; }
.payout-card table.data.payout { width: max-content; max-width: none; }
.pager { display: flex; gap: 8px; align-items: center; margin-top: 12px; font-size: 13px; flex-wrap: wrap; }
.pager-size { display: inline-flex; align-items: center; gap: 6px; margin: 0; color: var(--muted); white-space: nowrap; }
.pager-size select { width: auto; margin: 0; padding: 6px 8px; }

.tabs { display: flex; gap: 6px; margin-bottom: 12px; flex-wrap: wrap; }
.tab { padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line); background: #fff; cursor: pointer; }
.tab.on { background: var(--teal); color: #fff; border-color: var(--teal); }

.matrix input { width: 52px; padding: 5px; background: rgba(255,255,255,.72); }
table.data th.role { font-size: 12px; font-weight: 500; }
table.data td.locked { color: #9aa39b; text-align: center; }
table.data.matrix th.tier-head { text-align: center; }
table.data.matrix th.tier-129, table.data.matrix td.tier-129 { background: #e7f2ea; }
table.data.matrix th.tier-159, table.data.matrix td.tier-159 { background: #e5edf1; }
table.data.matrix th.tier-169, table.data.matrix td.tier-169 { background: #e4ebf0; }
table.data.matrix th.tier-199, table.data.matrix td.tier-199 { background: #efe8d8; }
table.data.matrix th.tier-239, table.data.matrix td.tier-239 { background: #ebe6ee; }
table.data.matrix th.tier-299, table.data.matrix td.tier-299 { background: #eee4e2; }
table.data.matrix td.tier-129.locked { background: #d5e6da; }
table.data.matrix td.tier-139.locked { background: #d8e2db; }
table.data.matrix td.tier-159.locked { background: #d4e0e6; }
table.data.matrix td.tier-169.locked { background: #d8e0e6; }
table.data.matrix td.tier-199.locked { background: #e4dccb; }
table.data.matrix td.tier-239.locked { background: #e0dae4; }
table.data.matrix td.tier-299.locked { background: #e4dad8; }
.badge { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 12px; }
.badge.draft { background: #eee; }
.badge.audited { background: #dbeafe; }
.badge.calculated { background: #fef3c7; }
.badge.settled { background: #d1fae5; }
.badge.locked { background: #111; color: #fff; }

.modal-bg { position: fixed; inset: 0; background: rgba(18,51,47,.35); display: grid; place-items: center; z-index: 20; }
.modal { width: min(560px, 94vw); background: var(--card); border-radius: 14px; padding: 18px; max-height: 90vh; overflow: auto; }
.modal h3 { margin: 0 0 12px; }
.check-list {
  max-height: 220px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 6px 8px;
  background: #fff;
}
.check-item {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 6px 4px;
  color: var(--ink);
}
.check-item input { width: auto; margin: 0; flex: none; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.toast {
  position: fixed;
  left: 50%;
  top: 18px;
  transform: translateX(-50%);
  z-index: 80;
  background: #12332f;
  color: #fff;
  padding: 10px 18px;
  border-radius: 10px;
  text-align: center;
  max-width: min(720px, calc(100vw - 32px));
  box-shadow: var(--shadow);
  pointer-events: none;
}
.toast.ok { background: #12332f; }
.toast.err { background: #b42318; }
.toast[hidden] { display: none !important; }
.login-wrap {
  min-height: 100%;
  display: grid;
  grid-template-columns: minmax(280px, 42%) 1fr;
  background: var(--paper);
}
.login-panel {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px 44px;
  background:
    radial-gradient(1200px 500px at -10% -20%, rgba(201, 162, 39, .18), transparent 50%),
    radial-gradient(800px 420px at 120% 110%, rgba(21, 122, 110, .45), transparent 55%),
    linear-gradient(165deg, #0d2c29 0%, var(--sidebar) 58%, #164842 100%);
  color: #e8efe9;
}
.login-panel::before,
.login-panel::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(232, 239, 233, .12);
  border-radius: 50%;
  pointer-events: none;
}
.login-panel::before { width: 280px; height: 280px; right: -80px; top: -90px; }
.login-panel::after { width: 180px; height: 180px; left: -50px; bottom: 40px; }
.login-mark {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  margin-bottom: 22px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .08);
  color: #f3e6b8;
}
.login-mark svg { width: 28px; height: 28px; }
.login-brand {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: .06em;
  color: #fff;
  line-height: 1.2;
}
.login-tag {
  margin: 14px 0 28px;
  max-width: 18em;
  font-size: 15px;
  line-height: 1.65;
  color: #c5d7d2;
}
.login-points {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
  color: #d5e4df;
  font-size: 14px;
}
.login-points li {
  display: flex;
  align-items: center;
  gap: 10px;
}
.login-points li::before {
  content: "";
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(201, 162, 39, .18);
}
.login-main {
  display: grid;
  place-items: center;
  padding: 32px 24px;
}
.login-card {
  width: min(400px, 100%);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 36px 32px 28px;
  box-shadow: var(--shadow);
}
.login-head {
  text-align: center;
  margin-bottom: 26px;
}
.login-kicker {
  display: inline-block;
  margin: 0 0 12px;
  padding: 4px 10px;
  font-size: 12px;
  letter-spacing: .12em;
  color: var(--teal);
  font-weight: 600;
  background: rgba(15, 95, 86, .08);
  border-radius: 999px;
}
.login-card h2 {
  margin: 0;
  font-size: 26px;
  letter-spacing: .04em;
}
.login-lead {
  margin: 10px 0 0;
  font-size: 13px;
  line-height: 1.55;
}
.login-field { margin: 0 0 16px; font-size: 13px; color: var(--muted); }
.login-field input {
  margin-top: 6px;
  padding: 11px 12px;
  border-radius: 10px;
  background: #fff;
  transition: border-color .15s, box-shadow .15s;
}
.login-field input:focus {
  outline: none;
  border-color: var(--teal-2);
  box-shadow: 0 0 0 3px rgba(15, 95, 86, .14);
}
.login-submit {
  width: 100%;
  margin-top: 6px;
  min-height: 44px;
  border-radius: 10px;
  font-size: 15px;
}
.login-err {
  margin: 0 0 12px;
  padding: 8px 10px;
  border-radius: 8px;
  background: #fde8e6;
  color: var(--danger);
  font-size: 13px;
  text-align: center;
}
.login-hint {
  margin: 18px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  line-height: 1.55;
  text-align: center;
}
.empty { color: var(--muted); padding: 24px; text-align: center; }
.watch-box { width: 300px; max-width: 100%; }
.watch-pair { display: grid; grid-template-columns: 1fr; gap: 10px; }
.watch-pair .v { font-size: 26px; font-weight: 700; font-variant-numeric: tabular-nums; margin-top: 6px; }
.watch-ver { margin: 10px 0 0; font-size: 12px; line-height: 1.55; }
.watch-lead { max-width: 72em; line-height: 1.55; margin: 0 0 12px; }
.watch-split {
  display: grid;
  grid-template-columns: 300px 30%;
  gap: 14px;
  align-items: start;
  justify-content: start;
  margin-top: 14px;
}
.watch-side { display: grid; gap: 14px; min-width: 0; }
.watch-rates { margin-top: 0; width: 100%; max-width: none; }
.watch-box h3,
.watch-rates h3 { margin: 0 0 6px; font-size: 15px; color: var(--teal); }
.watch-rates .muted { margin: 0 0 12px; font-size: 12px; line-height: 1.55; }
.watch-rates .watch-add { margin: 12px 0 0; }
.watch-rates table.data.slim {
  width: 100%;
  table-layout: fixed;
  background: transparent;
}
.watch-rates table.data.slim th:last-child,
.watch-rates table.data.slim td:last-child { width: 52px; text-align: center; }
.watch-rates table.data.slim.watch-staff th:nth-child(1),
.watch-rates table.data.slim.watch-staff td:nth-child(1),
.watch-rates table.data.slim.watch-store th:nth-child(1),
.watch-rates table.data.slim.watch-store td:nth-child(1) { width: 50%; }
.watch-rates table.data.slim.watch-staff th:nth-child(2),
.watch-rates table.data.slim.watch-staff td:nth-child(2) { width: 64px; }
.watch-rates table.data.slim.watch-staff th:nth-child(3),
.watch-rates table.data.slim.watch-staff td:nth-child(3),
.watch-rates table.data.slim.watch-store th:nth-child(2),
.watch-rates table.data.slim.watch-store td:nth-child(2) { width: 108px; }
.watch-rates table.data.slim .rate-staff,
.watch-rates table.data.slim .rate-store,
.watch-rates table.data.slim .rate-amt,
.watch-rates table.data.slim .rate-sales { width: 100%; margin: 0; }
.watch-rates table.data.slim td.empty { padding: 18px 10px; }
.credit-staff { margin-top: 14px; max-width: 560px; }
.credit-staff table.data.slim.watch-staff th:nth-child(2),
.credit-staff table.data.slim.watch-staff td:nth-child(2) { width: 108px; }
table.data.slim { min-width: 0; }
@media (max-width: 980px) {
  .layout { grid-template-columns: 1fr; }
  .side { display: none; }
  .cards { grid-template-columns: 1fr 1fr; }
  .dash-hero { flex-direction: column; align-items: flex-start; }
  .dash-grid { grid-template-columns: 1fr; }
  .payout-cols { grid-template-columns: 1fr; }
  .login-wrap { grid-template-columns: 1fr; }
  .login-panel { padding: 28px 24px 20px; }
  .login-brand { font-size: 24px; }
  .login-tag { margin-bottom: 16px; }
  .login-points { display: none; }
  .login-card { padding: 28px 22px 22px; border-radius: 16px; }
}
@media (max-width: 1180px) {
  .watch-split { grid-template-columns: 1fr; }
}
