.reference-settings { gap:14px; }
.settings-tabs {
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:10px;
  padding:0 0 14px;
  border-bottom:1px solid rgba(255,255,255,.08);
}
.settings-tabs .chip-button {
  min-height:46px;
  justify-content:center;
  border-radius:8px 8px 0 0;
  border-color:transparent;
  background:transparent;
  color:#d7d0c6;
  transform:none;
}
.settings-tabs .chip-button span {
  margin-right:8px;
  color:#cfc7bc;
}
.settings-tabs .chip-button.active {
  color:var(--gold);
  border-color:rgba(248,189,36,.45);
  background:linear-gradient(180deg, rgba(248,189,36,.08), rgba(248,189,36,.025));
  box-shadow:0 12px 24px rgba(248,189,36,.12), inset 0 -2px 0 var(--gold);
}
.account-summary {
  display:flex;
  align-items:center;
  gap:12px;
  margin:10px 0 14px;
}
.account-summary > div {
  min-width:0;
  display:grid;
  gap:3px;
}
.account-summary strong,
.account-summary small {
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.summary-list {
  display:grid;
  gap:8px;
  margin:12px 0;
}
.summary-list div,
.summary-list dt,
.summary-list dd {
  min-width:0;
}
.summary-list dt {
  color:#aaa298;
  font-weight:800;
}
.summary-list dd {
  margin:0 0 8px;
  overflow-wrap:anywhere;
}
.operator-profile-form {
  margin:16px 0 10px;
}
.operator-profile-form input[readonly] {
  color:#918a80;
  border-color:rgba(255,255,255,.08);
  background:rgba(255,255,255,.018);
  cursor:not-allowed;
}
.profile-plan-grid {
  grid-template-columns:minmax(0, .95fr) minmax(520px, 1.05fr);
}
.reference-plans {
  gap:16px;
}
.plans-dashboard.is-standalone {
  display:grid;
  gap:16px;
}
.plan-actions {
  justify-content:flex-start;
  margin-bottom:0;
}
.plan-unified-card {
  display:grid;
  gap:18px;
}
.plan-unified-header {
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:18px;
  padding-bottom:14px;
  border-bottom:1px solid rgba(255,255,255,.08);
}
.plan-unified-header h3 {
  margin-bottom:4px;
}
.plan-unified-header > span {
  flex:0 0 auto;
  padding:8px 12px;
  border:1px solid rgba(248,189,36,.28);
  border-radius:999px;
  color:var(--gold);
  background:rgba(248,189,36,.08);
  font-weight:900;
}
.plan-column-grid {
  display:grid;
  grid-template-columns:repeat(auto-fill, minmax(200px, 1fr));
  gap:12px;
  align-items:stretch;
}
.plan-card-option {
  min-width:0;
  min-height:0;
  padding:16px;
  border:1px solid rgba(255,255,255,.08);
  border-radius:12px;
  background:linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.012));
  display:flex;
  flex-direction:column;
  gap:12px;
}
.plan-card-option p {
  margin:0;
  color:#bfb6aa;
  line-height:1.45;
  font-size:13px;
}
.plan-card-option.current {
  border-color:rgba(248,189,36,.42);
  background:
    radial-gradient(circle at 90% 0%, rgba(248,189,36,.16), transparent 36%),
    linear-gradient(180deg, rgba(248,189,36,.08), rgba(255,255,255,.012));
}
.plan-card-option.featured {
  border-color:rgba(248,189,36,.52);
  background:
    radial-gradient(circle at 50% 0, rgba(248,189,36,.12), transparent 50%),
    linear-gradient(180deg, rgba(248,189,36,.055), rgba(255,255,255,.01));
}
.plan-card-option > div:first-child {
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:8px;
}
.plan-card-option strong {
  color:#fff7df;
  font-size:18px;
}
.plan-price {
  color:var(--gold);
  font-weight:900;
  text-align:right;
  font-size:14px;
}
/* ── plan badge ── */
.plan-badge {
  display:inline-flex;
  align-items:center;
  height:20px;
  padding:0 8px;
  border-radius:999px;
  font-size:10px;
  font-weight:900;
  letter-spacing:.08em;
  text-transform:uppercase;
  border:1px solid;
  width:fit-content;
}
.badge-trial   { color:#7ab87a; border-color:rgba(120,180,120,.32); background:rgba(120,180,120,.09); }
.badge-free    { color:#d4a855; border-color:rgba(212,168,85,.32); background:rgba(212,168,85,.09); }
.badge-active  { color:var(--gold); border-color:rgba(248,189,36,.35); background:rgba(248,189,36,.08); }
.badge-solo    { color:#9db3c8; border-color:rgba(140,170,200,.3); background:rgba(140,170,200,.08); }
.badge-pro     { color:#f2c94c; border-color:rgba(248,201,76,.42); background:rgba(248,201,76,.12); }
.badge-team    { color:#c09af5; border-color:rgba(190,150,240,.3); background:rgba(190,150,240,.08); }
.badge-scale   { color:#ffd180; border-color:rgba(255,209,128,.38); background:rgba(255,209,128,.1); }
/* ── plan limits row (3 cells) ── */
.plan-limits-row {
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:6px;
}
.plan-limit-cell {
  display:grid;
  gap:2px;
  padding:8px 6px;
  border:1px solid rgba(248,189,36,.16);
  border-radius:var(--radius);
  background:rgba(0,0,0,.26);
  text-align:center;
}
.plan-limit-cell b { color:#fff2c9; font-size:14px; font-weight:800; }
.plan-limit-cell span { color:#a8a29a; font-size:10px; }
.plan-feature-group {
  display:grid;
  gap:6px;
  padding-top:12px;
  border-top:1px solid rgba(255,255,255,.07);
}
.plan-feature-group > span {
  color:#aaa298;
  font-size:11px;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.04em;
}
.plan-feature {
  display:grid;
  grid-template-columns:18px minmax(0, 1fr);
  gap:7px;
  align-items:start;
  min-width:0;
}
.plan-feature span {
  width:16px;
  height:16px;
  display:grid;
  place-items:center;
  border-radius:50%;
  color:#031108;
  background:var(--green);
  font-size:11px;
  font-weight:900;
}
.plan-feature p {
  margin:0;
  color:#d7cec1;
  line-height:1.35;
  font-size:13px;
  overflow-wrap:anywhere;
}
.plan-feature.missing span {
  color:#91877a;
  background:rgba(255,255,255,.08);
}
.plan-feature.missing p {
  color:#91877a;
}
.plan-feature-group.is-complete {
  border-color:rgba(40,211,104,.22);
}
.plan-card-option button {
  align-self:end;
  width:100%;
  justify-content:center;
  margin-top:auto;
}
.settings-help {
  display:grid;
  gap:14px;
}
.help-intro {
  display:grid;
  gap:14px;
}
.help-intro p {
  max-width:980px;
  margin:0;
  color:#b9b1a7;
  line-height:1.5;
}
.help-grid {
  display:grid;
  grid-template-columns:repeat(5, minmax(180px, 1fr));
  gap:12px;
}
.help-card {
  min-height:210px;
  display:flex;
  flex-direction:column;
  gap:12px;
  padding:16px;
  border:1px solid rgba(248,189,36,.20);
  border-radius:10px;
  background:linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.01));
}
.help-card h4 {
  margin:0;
  font-size:17px;
}
.help-card p {
  flex:1;
  margin:0;
  color:#d7d0c6;
  line-height:1.45;
}
.help-card small {
  display:block;
  min-height:52px;
  color:#9f968b;
  line-height:1.35;
}
.help-card button {
  width:100%;
  justify-content:center;
}
.help-faq-card {
  display:grid;
  gap:14px;
  margin-top:2px;
}
.help-faq-card h3 {
  margin:0;
}
.help-faq-grid {
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:10px;
}
.faq-card {
  min-width:0;
  border:1px solid rgba(255,255,255,.08);
  border-radius:8px;
  padding:12px 14px;
  background:rgba(255,255,255,.025);
}
.faq-card summary {
  cursor:pointer;
  color:#f3eadf;
  font-weight:800;
  line-height:1.35;
}
.faq-card p {
  margin:10px 0 0;
  color:#bdb5aa;
  line-height:1.5;
}
@media (max-width: 1500px) {
  .help-grid {
    grid-template-columns:repeat(3, minmax(0, 1fr));
  }
  .help-faq-grid {
    grid-template-columns:repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 900px) {
  .help-grid,
  .help-faq-grid {
    grid-template-columns:1fr;
  }
}
.settings-reset {
  grid-column:1 / -1;
  min-height:64px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  border:1px solid rgba(248,189,36,.16);
  border-radius:9px;
  padding:12px 20px;
  background:rgba(255,255,255,.025);
}
.session-settings {
  display:grid;
  gap:0;
}
.session-settings > label {
  min-height:72px;
  display:grid;
  grid-template-columns:minmax(0, 1fr) 150px;
  gap:14px;
  align-items:center;
  padding:12px 0;
  border-bottom:1px solid rgba(255,255,255,.065);
}
.session-settings > label:last-child {
  border-bottom:0;
}
.session-settings > label > span {
  display:grid;
  gap:3px;
}
.session-settings select {
  min-height:42px;
}
@media (max-width: 1500px) {
  .profile-plan-grid {
    grid-template-columns:repeat(2, minmax(0, 1fr));
  }
  .plan-column-grid {
    grid-template-columns:repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 900px) {
  .settings-tabs,
  .profile-plan-grid,
  .plan-column-grid,
  .help-grid,
  .help-faq-grid {
    grid-template-columns:minmax(0, 1fr);
  }
}
