/* =====================================================================
   SAME STUDIO — Developer Analytics dashboard
   Reuses the site's design tokens (styles.css :root). Dark + holographic.
   ===================================================================== */

.dev-body { min-height: 100dvh; }
/* the views toggle via the [hidden] attribute; ensure it always wins over the
   display:grid/flex rules below (author styles otherwise override UA [hidden]) */
[hidden] { display: none !important; }

/* ---------------- LOGIN ---------------- */
.dev-login {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 32px 20px;
}
.dev-login__card {
  position: relative;
  width: 100%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 40px 34px 34px;
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(255,255,255,0.085), rgba(255,255,255,0.025));
  border: 1px solid var(--line-2);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}
.dev-login__card .brand { margin-bottom: 6px; }
.dev-login__title { font-family: var(--font-display); font-weight: 800; font-size: 1.7rem; letter-spacing: -0.01em; }
.dev-login__sub { color: var(--muted); font-size: 0.92rem; margin-bottom: 8px; }
.dev-login__error {
  margin: 2px 0 0;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #ffb4b4;
  font-size: 0.88rem;
}
.dev-login__back { display: inline-block; margin-top: 6px; color: var(--muted); font-size: 0.86rem; text-align: center; transition: color 0.25s; }
.dev-login__back:hover { color: var(--cyan); }

.dev-field { display: flex; flex-direction: column; gap: 6px; }
.dev-field > span { font-size: 0.8rem; font-weight: 600; color: var(--muted); letter-spacing: 0.02em; }
.dev-field input {
  width: 100%;
  padding: 12px 14px;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text);
  background: rgba(7, 9, 14, 0.55);
  border: 1px solid var(--line-2);
  border-radius: var(--radius-sm);
  transition: border-color 0.25s, box-shadow 0.25s;
}
.dev-field input:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(103, 232, 249, 0.18); }
.dev-field--inline { flex-direction: row; align-items: center; gap: 12px; }
.dev-field--inline > span { white-space: nowrap; }

.dev-spinner {
  width: 16px; height: 16px;
  border-radius: 50%;
  border: 2px solid rgba(7, 17, 26, 0.35);
  border-top-color: #07111a;
  display: none;
  animation: devSpin 0.7s linear infinite;
}
.btn.is-loading .dev-spinner { display: inline-block; }
@keyframes devSpin { to { transform: rotate(360deg); } }
.btn.is-loading .dev-btn-label { opacity: 0.6; }

/* ---------------- DASHBOARD SHELL ---------------- */
.dash { max-width: 1280px; margin: 0 auto; padding: 22px clamp(16px, 3vw, 32px) 60px; }
.dash__top {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 8px 0 18px; flex-wrap: wrap;
  border-bottom: 1px solid var(--line); margin-bottom: 26px;
}
.dash__top-right { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.dash__updated { display: inline-flex; align-items: center; gap: 8px; font-size: 0.84rem; color: var(--muted); }

.dash__demo-banner, .dash__warn {
  margin: 0 0 18px;
  padding: 11px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
}
.dash__demo-banner { background: rgba(184, 139, 255, 0.12); border: 1px solid rgba(184, 139, 255, 0.4); color: #d7c4ff; }
.dash__warn { background: rgba(245, 197, 66, 0.1); border: 1px solid rgba(245, 197, 66, 0.4); color: #ffe39a; }
/* softer, non-alarming variant for valid-session info (e.g. one group lacks permission) */
.dash__warn--info { background: rgba(103, 232, 249, 0.08); border-color: rgba(103, 232, 249, 0.35); color: #bfeaf5; }

.dash__heading {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 20px; flex-wrap: wrap; margin-bottom: 24px;
}
.dash__heading h1 { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.7rem, 3.6vw, 2.6rem); line-height: 1.05; margin-top: 6px; }
.dash__filters { display: flex; gap: 12px; flex-wrap: wrap; }
.dash__filter { display: flex; flex-direction: column; gap: 5px; }
.dash__filter > span { font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); }
.dash__filter select {
  appearance: none;
  padding: 9px 34px 9px 14px;
  font-family: var(--font-body); font-size: 0.92rem; font-weight: 500;
  color: var(--text);
  background: rgba(7, 9, 14, 0.55) 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='%2399a2ba' d='M6 8L0 0h12z'/%3E%3C/svg%3E") no-repeat right 13px center;
  border: 1px solid var(--line-2); border-radius: 100px; cursor: pointer;
  transition: border-color 0.25s;
}
.dash__filter select:focus { outline: none; border-color: var(--cyan); }

.dash__section-title { font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; margin: 34px 0 16px; display: flex; align-items: center; gap: 12px; }
.dash__rate { font-family: var(--font-body); font-size: 0.78rem; font-weight: 600; color: var(--cyan); padding: 4px 12px; border: 1px solid rgba(103,232,249,0.3); border-radius: 100px; background: rgba(103,232,249,0.08); }

/* ---------------- KPI CARDS ---------------- */
.kpi-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.kpi-grid--earn { grid-template-columns: repeat(4, 1fr); }
.kpi {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; gap: 6px;
  padding: 20px 18px;
  border-radius: var(--radius-sm);
  background: var(--surface); border: 1px solid var(--line);
  backdrop-filter: blur(10px);
  transition: transform 0.35s var(--ease), border-color 0.35s, box-shadow 0.4s;
}
.kpi:hover { transform: translateY(-3px); border-color: var(--line-2); box-shadow: 0 0 30px -12px rgba(103,232,249,0.4); }
.kpi__label { font-size: 0.76rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.07em; display: inline-flex; align-items: center; gap: 6px; }
.kpi__value { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.4rem, 2.3vw, 1.9rem); line-height: 1.1; font-variant-numeric: tabular-nums;
  background: var(--grad-silver); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; padding-bottom: 0.05em; }
.kpi__sub { font-size: 0.78rem; color: var(--muted); }
.kpi--accent .kpi__value { background: var(--grad-primary); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.kpi--mint .kpi__value { background: var(--grad-mint); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.kpi--mint { background: rgba(52,245,168,0.05); border-color: rgba(52,245,168,0.28); }

/* ---------------- CHARTS ---------------- */
.charts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 22px; }
.chart-card {
  display: flex; flex-direction: column; gap: 14px;
  padding: 22px;
  border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line);
  backdrop-filter: blur(10px);
}
.chart-card--wide { grid-column: 1 / -1; }
.chart-card header { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.chart-card h3 { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; }
.chart-card header .muted { font-size: 0.8rem; }
.chart-wrap { position: relative; height: 280px; }
.chart-card--wide .chart-wrap { height: 300px; }

/* ---- daily-revenue average/total stat header (mirrors the Creator Dashboard Explore numbers) ---- */
.rev-stats { display: flex; flex-wrap: wrap; gap: 28px; margin: -2px 0 8px; }
.rev-stat { display: flex; flex-direction: column; gap: 3px; }
.rev-stat__v {
  font-family: var(--font-display); font-weight: 800; font-size: clamp(1.3rem, 2.6vw, 1.95rem); line-height: 1;
  font-variant-numeric: tabular-nums; background: var(--grad-primary);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; padding-bottom: 0.05em;
}
.rev-stat__v--usd { background: var(--grad-mint); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.rev-stat__l { font-size: 0.72rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.07em; }

/* ---------------- DEVEX ---------------- */
.devex__body { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 24px; align-items: center; }
.devex__calc { display: flex; flex-direction: column; gap: 14px; }
.devex__out { display: flex; flex-direction: column; gap: 2px; padding: 16px 18px; border-radius: var(--radius-sm); background: rgba(52,245,168,0.07); border: 1px solid rgba(52,245,168,0.3); }
.devex__usd { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.8rem, 4vw, 2.6rem); line-height: 1; background: var(--grad-mint); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; filter: drop-shadow(0 0 18px rgba(52,245,168,0.3)); }
.devex__usd-label { font-size: 0.76rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; }
.devex__min { font-size: 0.82rem; color: var(--muted); margin: 0; }
.devex__min.is-under { color: #ffe39a; }
.devex__quick { display: flex; flex-wrap: wrap; gap: 8px; }
.devex__quick button {
  padding: 6px 12px; font-family: var(--font-body); font-size: 0.8rem; font-weight: 600;
  color: var(--text); background: rgba(255,255,255,0.04); border: 1px solid var(--line-2);
  border-radius: 100px; cursor: pointer; transition: border-color 0.2s, background 0.2s;
}
.devex__quick button:hover { border-color: var(--cyan); background: rgba(103,232,249,0.08); }
.devex__chart { height: 240px; }

/* ---------------- BEST SELLERS ---------------- */
.bestsellers { margin-top: 30px; }
.bs-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
.bs-card {
  padding: 22px;
  border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line);
  backdrop-filter: blur(10px);
}
.bs-card__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.bs-card__head h3 { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; }
.bs-card__tot { font-size: 0.82rem; font-weight: 600; color: var(--mint); font-variant-numeric: tabular-nums; }
.bs-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.bs-col__title { font-size: 0.74rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin-bottom: 10px; }
.bs-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.bs-row {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto auto auto;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.86rem;
  transition: background 0.2s;
}
.bs-row:nth-child(odd) { background: rgba(255,255,255,0.025); }
.bs-row:hover { background: rgba(103,232,249,0.07); }
.bs-row--empty { grid-template-columns: 1fr; color: var(--muted); font-style: italic; justify-items: start; }
.bs-rank { font-family: var(--font-display); font-weight: 800; font-size: 0.82rem; color: var(--muted); text-align: center; }
.bs-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; display: flex; align-items: center; gap: 8px; }
.bs-price { flex: none; font-size: 0.68rem; font-weight: 600; color: var(--cyan); padding: 1px 7px; border: 1px solid rgba(103,232,249,0.3); border-radius: 100px; background: rgba(103,232,249,0.06); }
.bs-metric { font-variant-numeric: tabular-nums; font-size: 0.8rem; color: var(--muted); white-space: nowrap; text-align: right; }
.bs-metric b { color: var(--text); font-weight: 700; }
.bs-metric--robux { color: var(--text); font-weight: 600; }
.bs-metric--usd { color: var(--mint); font-weight: 600; }

/* ---------------- MANAGE (library) ---------------- */
.manage { margin-top: 30px; }
.manage__hint { color: var(--muted); font-size: 0.86rem; max-width: 70ch; margin: -6px 0 16px; }
.manage__empty { color: var(--muted); font-style: italic; padding: 18px; border: 1px dashed var(--line-2); border-radius: var(--radius-sm); }
.manage__list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.mg-group { padding: 16px 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.mg-group.is-removed { opacity: 0.55; }
.mg-group__head { display: flex; align-items: center; gap: 10px; padding-bottom: 10px; margin-bottom: 8px; border-bottom: 1px solid var(--line); }
.mg-group__head h4 { font-family: var(--font-display); font-weight: 700; font-size: 1rem; margin-right: auto; }
.mg-tag { font-size: 0.64rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); padding: 2px 7px; border: 1px solid var(--line-2); border-radius: 100px; }
.mg-tag--soft { border-color: transparent; background: rgba(255,255,255,0.05); }
.mg-games { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.mg-game { display: flex; align-items: center; gap: 10px; padding: 8px 6px; border-radius: var(--radius-sm); font-size: 0.9rem; }
.mg-game:hover { background: rgba(255,255,255,0.025); }
.mg-game--none { color: var(--muted); font-style: italic; }
.mg-game.is-removed { opacity: 0.5; }
.mg-game__name { display: flex; align-items: center; gap: 8px; margin-right: auto; min-width: 0; }
.mg-game__name > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mg-game__ctrl { display: flex; align-items: center; gap: 10px; flex: none; }
.mg-removed-tag { font-size: 0.72rem; color: var(--muted); font-style: italic; }
.mg-btn {
  font-family: var(--font-body); font-size: 0.74rem; font-weight: 600; cursor: pointer;
  padding: 5px 11px; border-radius: 100px; color: var(--text);
  background: rgba(255,255,255,0.04); border: 1px solid var(--line-2); transition: border-color 0.2s, background 0.2s, color 0.2s;
}
.mg-btn:hover { border-color: var(--cyan); }
.mg-btn--remove:hover { border-color: rgba(239,68,68,0.6); color: #ffb4b4; background: rgba(239,68,68,0.08); }
.mg-btn--restore:hover { border-color: var(--mint); color: var(--mint); }
/* toggle switch */
.mg-switch { display: inline-flex; align-items: center; gap: 7px; cursor: pointer; user-select: none; }
.mg-switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.mg-switch__track { position: relative; width: 38px; height: 21px; border-radius: 100px; background: rgba(255,255,255,0.1); border: 1px solid var(--line-2); transition: background 0.25s, border-color 0.25s; flex: none; }
.mg-switch__track::after { content: ''; position: absolute; top: 2px; left: 2px; width: 15px; height: 15px; border-radius: 50%; background: #c3ccdf; transition: transform 0.25s, background 0.25s; }
.mg-switch input:checked + .mg-switch__track { background: rgba(52,245,168,0.4); border-color: rgba(52,245,168,0.6); }
.mg-switch input:checked + .mg-switch__track::after { transform: translateX(17px); background: var(--mint); }
.mg-switch input:disabled + .mg-switch__track { opacity: 0.4; cursor: not-allowed; }
.mg-switch__label { font-size: 0.74rem; color: var(--muted); font-weight: 600; }

/* ---------------- PAYOUT SPLITS ---------------- */
.splits { margin-top: 30px; }
.splits__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.sp-card { padding: 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.sp-card__head { display: flex; align-items: center; gap: 12px; }
.sp-card__head h3 { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; margin-right: auto; }
.sp-base { font-size: 0.8rem; color: var(--muted); margin: 6px 0 14px; }
.sp-over { color: #ffe39a; font-weight: 600; }
.sp-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.sp-row { display: grid; grid-template-columns: 30px minmax(0,1fr) auto auto auto; align-items: center; gap: 10px; padding: 7px 8px; border-radius: var(--radius-sm); font-size: 0.88rem; }
.sp-row:nth-child(odd) { background: rgba(255,255,255,0.025); }
.sp-row--empty { grid-template-columns: 1fr; color: var(--muted); font-style: italic; }
.sp-row--unalloc { color: var(--muted); }
.sp-av { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; background: rgba(255,255,255,0.08); }
.sp-av--ph { display: inline-flex; align-items: center; justify-content: center; font-size: 0.72rem; font-weight: 700; color: var(--muted); }
.sp-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.sp-pct { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--violet); text-align: right; }
.sp-earned { font-variant-numeric: tabular-nums; font-weight: 600; text-align: right; white-space: nowrap; }
.sp-usd { font-variant-numeric: tabular-nums; color: var(--mint); font-weight: 600; text-align: right; white-space: nowrap; }

/* ---------------- MODAL + TOAST ---------------- */
.dev-modal { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 20px; }
.dev-modal__backdrop { position: absolute; inset: 0; background: rgba(4,5,9,0.72); backdrop-filter: blur(4px); }
.dev-modal__card {
  position: relative; width: 100%; max-width: 460px; max-height: 88vh; overflow-y: auto;
  padding: 28px 26px 24px; border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(24,26,36,0.98), rgba(14,16,24,0.98));
  border: 1px solid var(--line-2); box-shadow: var(--shadow);
}
.dev-modal__x { position: absolute; top: 12px; right: 14px; background: none; border: none; color: var(--muted); font-size: 1.6rem; line-height: 1; cursor: pointer; transition: color 0.2s; }
.dev-modal__x:hover { color: var(--text); }
.dev-modal__title { font-family: var(--font-display); font-weight: 800; font-size: 1.3rem; margin-bottom: 16px; }
.modal-form { display: flex; flex-direction: column; gap: 12px; }
.modal-form__hint { font-size: 0.82rem; color: var(--muted); margin: 0; }
.modal-form__err { font-size: 0.84rem; color: #ffb4b4; background: rgba(239,68,68,0.12); border: 1px solid rgba(239,68,68,0.4); border-radius: var(--radius-sm); padding: 8px 12px; margin: 0; }
.modal-form__actions { display: flex; align-items: center; gap: 10px; margin-top: 6px; }
.modal-form__spacer { margin-left: auto; }
.se-rows { display: flex; flex-direction: column; gap: 8px; }
.se-row { display: flex; align-items: center; gap: 8px; }
.se-name { flex: 1 1 auto; min-width: 0; padding: 9px 12px; font-family: var(--font-body); font-size: 0.92rem; color: var(--text); background: rgba(7,9,14,0.55); border: 1px solid var(--line-2); border-radius: var(--radius-sm); }
.se-pct { width: 68px; flex: none; padding: 9px 10px; font-family: var(--font-body); font-size: 0.92rem; color: var(--text); background: rgba(7,9,14,0.55); border: 1px solid var(--line-2); border-radius: var(--radius-sm); text-align: right; }
.se-name:focus, .se-pct:focus { outline: none; border-color: var(--cyan); }
.se-pctsign { color: var(--muted); font-size: 0.85rem; }
.dev-toast {
  position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 24px); z-index: 240;
  padding: 12px 20px; border-radius: 100px; font-size: 0.88rem; font-weight: 500; color: var(--text);
  background: rgba(24,26,36,0.97); border: 1px solid var(--line-2); box-shadow: var(--shadow);
  opacity: 0; pointer-events: none; transition: opacity 0.3s, transform 0.3s; max-width: 90vw;
}
.dev-toast.is-show { opacity: 1; transform: translate(-50%, 0); }
.dev-toast--ok { border-color: rgba(52,245,168,0.55); }
.dev-toast--err { border-color: rgba(239,68,68,0.55); color: #ffd0d0; }

/* ---------------- CONNECTED ACCOUNTS (cookies) ---------------- */
.accounts { margin-top: 30px; }
.accounts__list { display: flex; flex-direction: column; gap: 8px; }
.acc-row {
  display: grid; grid-template-columns: minmax(0, 1.2fr) auto minmax(0, 1.4fr) auto;
  align-items: center; gap: 12px;
  padding: 12px 16px; border-radius: var(--radius-sm);
  background: var(--surface); border: 1px solid var(--line);
}
.acc-id { display: flex; flex-direction: column; min-width: 0; }
.acc-id b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acc-id small { color: var(--muted); font-size: 0.78rem; }
.acc-badge { justify-self: start; font-size: 0.66rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; padding: 3px 9px; border-radius: 100px; border: 1px solid var(--line-2); color: var(--muted); }
.acc-badge--ok { color: var(--mint); border-color: rgba(52,245,168,0.5); background: rgba(52,245,168,0.08); }
.acc-badge--bad { color: #ffb4b4; border-color: rgba(239,68,68,0.5); background: rgba(239,68,68,0.1); }
.acc-covers { color: var(--muted); font-size: 0.82rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acc-server { color: var(--muted); font-size: 0.74rem; font-style: italic; justify-self: end; }

/* ---------------- ADD MODAL TABS + COOKIE WARNING ---------------- */
.add-tabs { display: flex; gap: 6px; margin-bottom: 16px; background: rgba(7,9,14,0.5); padding: 4px; border-radius: 100px; border: 1px solid var(--line); }
.add-tab {
  flex: 1; padding: 8px 12px; font-family: var(--font-body); font-size: 0.86rem; font-weight: 600;
  color: var(--muted); background: none; border: none; border-radius: 100px; cursor: pointer; transition: background 0.2s, color 0.2s;
}
.add-tab:hover { color: var(--text); }
.add-tab.is-active { background: var(--grad-primary); color: #0a0c12; }
.dev-field textarea {
  width: 100%; padding: 11px 13px; font-family: var(--font-mono, ui-monospace, monospace); font-size: 0.82rem;
  color: var(--text); background: rgba(7,9,14,0.55); border: 1px solid var(--line-2); border-radius: var(--radius-sm);
  resize: vertical; line-height: 1.4; word-break: break-all;
}
.dev-field textarea:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(103,232,249,0.18); }
.add-cookie-warn {
  font-size: 0.82rem; line-height: 1.5; color: #ffe39a;
  background: rgba(245,197,66,0.1); border: 1px solid rgba(245,197,66,0.4);
  border-radius: var(--radius-sm); padding: 12px 14px;
}

/* ---------------- RESPONSIVE ---------------- */
@media (max-width: 1080px) {
  .kpi-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 820px) {
  .charts { grid-template-columns: 1fr; }
  .chart-card--wide { grid-column: auto; }
  .devex__body { grid-template-columns: 1fr; }
  .kpi-grid--earn { grid-template-columns: repeat(2, 1fr); }
  .bs-cols { grid-template-columns: 1fr; gap: 18px; }
  .manage__list { grid-template-columns: 1fr; }
  .splits__grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .acc-row { grid-template-columns: 1fr auto; row-gap: 6px; }
  .acc-covers { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .dash__heading { flex-direction: column; align-items: stretch; }
  .dash__filters { width: 100%; }
  .dash__filter { flex: 1; }
  /* drop the USD column on very narrow screens so rows stay readable */
  .bs-row { grid-template-columns: 20px minmax(0, 1fr) auto auto; gap: 8px; font-size: 0.82rem; }
  .bs-metric--usd { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .dev-spinner { animation-duration: 0.001ms; }
}
