/* Settings page — scoped to .pg-settings */
.pg-settings .rf-page-head{margin-bottom:18px}
.pg-settings .st-top{display:grid;grid-template-columns:568fr 585fr;gap:10px;margin-bottom:12px}
.pg-settings .st-grid{display:grid;grid-template-columns:382fr 370fr 391fr;gap:10px;margin-bottom:12px;align-items:stretch}
.pg-settings .st-stack{display:grid;grid-template-rows:auto 1fr;gap:10px;min-width:0}
.pg-settings .rf-card{min-width:0;border-radius:12px}

.pg-settings .rf-card-head{display:flex;align-items:flex-start;gap:12px;padding:14px 14px 10px}
.pg-settings .rf-card-icon{display:grid;place-items:center;flex:none;width:38px;height:38px;border-radius:9px;background:#f3f4f8;color:#1f2433}
.pg-settings .rf-card-icon .ic{width:20px;height:20px}
.pg-settings .rf-card-heading{flex:1;min-width:0}
.pg-settings .rf-card-heading h2{margin:1px 0 0;font-size:17px;font-weight:650;letter-spacing:-.015em;color:#0b0d17}
.pg-settings .rf-card-heading p{margin:2px 0 0;color:#6b7288;font-size:12.5px}
.pg-settings .rf-card-actions{display:flex;align-items:center;flex:none}
.pg-settings .rf-card-actions .rf-btn{height:32px;padding:0 12px;font-size:12px}

.pg-settings .st-field{display:grid;gap:5px;min-width:0}
.pg-settings .st-field>span:first-child{color:#6b7288;font-size:11.5px}
.pg-settings .st-field input,.pg-settings .st-select select{width:100%;height:31px;padding:0 11px;border:1px solid #e6e8ef;border-radius:6px;background:#fff;color:#1b1f2e;font:inherit;font-size:13px;outline:0}
.pg-settings .st-field input:focus,.pg-settings .st-select select:focus{border-color:#a9a2f7;box-shadow:0 0 0 3px #efeefe}
.pg-settings .st-field.span-2{grid-column:1/-1}
.pg-settings .st-select{position:relative;display:block}
.pg-settings .st-select select{appearance:none;-webkit-appearance:none;padding-right:26px;font-size:12.5px;text-overflow:ellipsis}
.pg-settings .st-projects .rf-card-heading p,.pg-settings .st-team .rf-card-heading p{font-size:12px;white-space:nowrap}
.pg-settings .st-notify .rf-card-heading p{font-size:11.5px;white-space:nowrap}
.pg-settings .st-projects .rf-card-actions .rf-btn,.pg-settings .st-team .rf-card-actions .rf-btn{height:30px;padding:0 8px;gap:5px;font-size:11.5px}
.pg-settings .st-api-card .rf-card-actions .rf-btn{height:30px;padding:0 9px;font-size:11px}
.pg-settings .st-select .ic{position:absolute;right:10px;top:50%;width:14px;height:14px;transform:translateY(-50%);color:#3b4256;pointer-events:none}

.pg-settings .st-profile{display:grid;grid-template-columns:128px 1fr;gap:14px;padding:0 14px 14px}
.pg-settings .st-photo{display:grid;justify-items:center;align-content:start;gap:10px}
.pg-settings .st-photo small{justify-self:start;color:#7a8196;font-size:10.5px;line-height:1.35}
.pg-settings .st-avatar-wrap{position:relative}
.pg-settings .st-avatar{width:106px;height:106px;font-size:34px}
.pg-settings .st-camera{position:absolute;right:2px;bottom:4px;display:grid;place-items:center;width:26px;height:26px;border-radius:50%;background:#fff;color:#2a3042;box-shadow:0 1px 4px rgba(20,24,40,.18)}
.pg-settings .st-camera .ic{width:14px;height:14px}
.pg-settings .st-photo .rf-btn{width:110px;height:30px;font-size:12px}
.pg-settings .st-fields{display:grid;grid-template-columns:1fr 1fr;gap:14px 8px;align-content:start}

.pg-settings .st-workspace{display:grid;grid-template-columns:1fr 112px;gap:20px;padding:0 14px 14px}
.pg-settings .st-workspace .st-fields{gap:12px 14px}
.pg-settings .st-logo{display:grid;justify-items:center;align-content:start;gap:12px;margin-top:-50px}
.pg-settings .st-logo-tile{display:grid;place-items:center;width:112px;height:106px;border-radius:10px;background:#f2f3f8;color:#0b0d17;font-size:34px;font-family:var(--rf-display);font-weight:800;letter-spacing:-.04em}
.pg-settings .st-logo .rf-btn{width:112px;height:30px;font-size:12px}
.pg-settings .st-logo small{justify-self:start;color:#7a8196;font-size:10.5px;line-height:1.35}

.pg-settings .st-list{display:grid;gap:6px;padding:0 12px 12px}
.pg-settings .st-row{display:flex;align-items:center;gap:12px;min-height:50px;padding:8px 10px;border:1px solid #eef0f5;border-radius:9px;background:#fff}
.pg-settings .st-row-main{flex:1;min-width:0;display:grid;gap:3px}
.pg-settings .st-row-main strong{display:flex;align-items:center;gap:8px;color:#0b0d17;font-size:13px;font-weight:600;white-space:nowrap}
.pg-settings .st-row-main small{color:#6b7288;font-size:11px;line-height:1.3}
.pg-settings .rf-more{display:grid;place-items:center;width:28px;height:28px;border:0;border-radius:7px;background:transparent;color:#3b4256}
.pg-settings .rf-more .ic{width:18px;height:18px}
.pg-settings .st-xs{height:18px;padding:0 7px;font-size:10px}

.pg-settings .st-project{min-height:52px}
.pg-settings .st-mark{display:grid;place-items:center;flex:none;width:36px;height:36px;border-radius:8px;background:#f5f6fa}
.pg-settings .st-mark svg{width:24px;height:24px}
.pg-settings .st-project small{display:grid;grid-template-columns:100px 1fr;gap:6px}
.pg-settings .st-create{display:flex;align-items:center;justify-content:center;gap:8px;height:34px;margin-top:4px;border:1px solid #eef0f5;border-radius:9px;background:#fff;color:#1b1f2e;font:inherit;font-size:12.5px;font-weight:550;cursor:pointer}
.pg-settings .st-create .ic{width:15px;height:15px;color:#3b3fd8}

.pg-settings .st-plan{margin:0 12px;padding:16px;border-radius:12px;background:var(--th-lime-soft)}
.pg-settings .st-plan-top{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}
.pg-settings .st-plan-top strong{display:flex;align-items:center;gap:10px;color:#0b0d17;font-size:19px;font-weight:700}
.pg-settings .st-plan-top p{margin:6px 0 0;color:#3b4256;font-size:12.5px}
.pg-settings .st-plan-top p i{margin:0 4px;font-style:normal;color:#8a90a3}
.pg-settings .st-plan-top .rf-btn{height:36px;border-color:#fff;background:#fff;font-size:12.5px;font-weight:600;box-shadow:0 1px 3px rgba(40,40,90,.08)}
.pg-settings .st-plan ul{display:grid;gap:9px;margin:16px 0 2px;padding:0;list-style:none}
.pg-settings .st-plan li{display:flex;align-items:center;gap:10px;color:#4a5064;font-size:11.5px}
.pg-settings .st-plan li .ic{width:15px;height:15px;padding:3px;border-radius:50%;background:#dff3e6;color:#16a34a;stroke-width:3;flex:none}
.pg-settings .st-next{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px 14px 14px}
.pg-settings .st-next small{display:block;color:#6b7288;font-size:11px}
.pg-settings .st-next strong{display:block;margin-top:3px;color:#1b1f2e;font-size:12.5px;font-weight:500}
.pg-settings .st-next .rf-btn{height:34px;font-size:12.5px}

.pg-settings .st-member-avatar{width:36px;height:36px;font-size:12px;flex:none}
.pg-settings .st-role{min-width:58px;height:22px;justify-content:center;font-size:11px;background:#f2f3f7;color:#3b4256}
.pg-settings .st-role.owner{background:#eeedfd;color:#4b43d9}

.pg-settings .st-integration{gap:8px;min-height:54px;padding:7px 8px}
.pg-settings .st-int-mark{display:grid;place-items:center;flex:none;width:28px;height:28px;margin-right:4px}
.pg-settings .st-int-mark svg{width:24px;height:24px}
.pg-settings .st-integration small{font-size:10px;line-height:1.3}
.pg-settings .st-integration strong{font-size:12px}
.pg-settings .st-status{gap:4px;height:19px;padding:0 6px;font-size:9.5px;white-space:nowrap;flex:none}
.pg-settings .st-chev{width:15px;height:15px;color:#3b4256;flex:none}
.pg-settings .st-link{display:inline-flex;align-items:center;gap:6px;margin:0 14px 14px;padding:0;border:0;background:none;color:#3b3fd8;font:inherit;font-size:12px;font-weight:500;cursor:pointer}
.pg-settings .st-link .ic{width:13px;height:13px}

.pg-settings .st-notify .st-list{gap:0;padding:2px 8px 12px}
.pg-settings .st-pref{gap:10px;min-height:40px;padding:4px 2px;border:0}
.pg-settings .st-pref-icon{display:grid;place-items:center;flex:none;width:24px;height:24px;color:#3b4256}
.pg-settings .st-pref-icon .ic{width:16px;height:16px}
.pg-settings .st-pref strong{font-size:12px}
.pg-settings .st-pref small{font-size:10px;letter-spacing:-.05px}
.pg-settings .st-pref .rf-toggle{flex:none}

.pg-settings .st-api{padding:0 14px 12px}
.pg-settings .st-key{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:9px 12px;border:1px solid #eef0f5;border-radius:9px}
.pg-settings .st-key small{display:block;color:#3b4256;font-size:11px}
.pg-settings .st-key code{display:block;margin-top:3px;color:#1b1f2e;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:12px;letter-spacing:.02em}
.pg-settings .st-copy{display:grid;place-items:center;width:30px;height:30px;border:1px solid #eef0f5;border-radius:7px;background:#fff;color:#3b4256}
.pg-settings .st-copy .ic{width:15px;height:15px}
.pg-settings .st-api-meta{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:10px 0 8px;padding:0 4px}
.pg-settings .st-api-meta dt{color:#7a8196;font-size:10.5px}
.pg-settings .st-api-meta dd{display:flex;align-items:center;gap:6px;margin:3px 0 0;color:#1b1f2e;font-size:12px}
.pg-settings .st-live{width:7px;height:7px;border-radius:50%;background:#16a34a}
.pg-settings .st-api .st-link{margin:0}

.pg-settings .st-security .rf-card-head{padding-bottom:6px}
.pg-settings .st-security .rf-card-icon{width:32px;height:32px}
.pg-settings .st-security .rf-card-heading h2{font-size:13px}
.pg-settings .st-security .rf-card-heading p{font-size:11px}
.pg-settings .st-sec-list{display:grid;gap:4px;padding:0 14px 12px}
.pg-settings .st-sec-list article{display:flex;align-items:center;gap:12px;min-height:30px}
.pg-settings .st-sec-list article>.ic{width:17px;height:17px;color:#1b1f2e;flex:none}
.pg-settings .st-sec-list article>div{flex:1;min-width:0;display:grid;gap:1px}
.pg-settings .st-sec-list strong{color:#0b0d17;font-size:11.5px;font-weight:600}
.pg-settings .st-sec-list small{color:#6b7288;font-size:10.5px}
.pg-settings .st-sec-list .rf-btn{height:26px;min-width:62px;padding:0 10px;font-size:11px}

@media(max-width:1180px){
  .pg-settings .st-top{grid-template-columns:1fr}
  .pg-settings .st-grid{grid-template-columns:1fr 1fr}
}
@media(max-width:760px){
  .pg-settings .st-grid{grid-template-columns:1fr}
  .pg-settings .st-profile,.pg-settings .st-workspace{grid-template-columns:1fr}
  .pg-settings .st-logo{margin-top:0;justify-items:start}
  .pg-settings .st-fields{grid-template-columns:1fr}
}

/* ---- Live billing, seats and notices ---- */
.pg-settings .st-anchor{scroll-margin-top:84px}
.pg-settings .st-billing>.rf-notice{margin-bottom:14px}
.pg-settings .st-notice{align-items:center}
.pg-settings .st-notice>div{flex:1;min-width:0}
.pg-settings .st-notice.green{border-color:#cdebd8;background:#f3fbf6}
.pg-settings .st-notice.green>.ic{color:var(--rf-green)}
.pg-settings .st-notice.amber{border-color:#f6e3b8;background:#fffaf0}
.pg-settings .st-notice.amber>.ic{color:var(--rf-amber-ink)}
.pg-settings .st-dismiss{display:grid;place-items:center;flex:none;width:30px;height:30px;border:0;border-radius:8px;background:transparent;color:var(--rf-muted);cursor:pointer}
.pg-settings .st-dismiss:hover{background:rgba(20,24,40,.06)}
.pg-settings .st-dismiss .ic{width:16px;height:16px}

.pg-settings .st-plan-head{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;padding:2px 18px 12px}
.pg-settings .st-plan-head>strong{color:var(--rf-ink);font-size:22px;font-weight:700;letter-spacing:-.02em}
.pg-settings .st-plan-price{color:var(--rf-ink);font-size:17px;font-weight:650}
.pg-settings .st-plan-price small{color:var(--rf-muted);font-size:12.5px;font-weight:500}
.pg-settings .st-pills{display:flex;flex-wrap:wrap;gap:6px}
.pg-settings .st-alert{display:grid;justify-items:start;gap:8px;margin:0 18px 12px;padding:10px 12px;border-radius:9px;background:var(--rf-soft);color:var(--rf-text);font-size:13px;line-height:1.45}
.pg-settings .st-alert p{margin:0}
.pg-settings .st-alert.amber{background:var(--rf-amber-soft);color:var(--rf-amber-ink)}
.pg-settings .st-alert.red{background:var(--rf-red-soft);color:var(--rf-red-ink)}
.pg-settings .st-alert .rf-btn.link{color:inherit;text-decoration:underline}
.pg-settings .st-inline-error{margin:0 18px 12px}
.pg-settings .rf-form .st-inline-error{margin:0}
.pg-settings .st-inline-error p{margin:0}
.pg-settings .st-inline-error .rf-btn{margin-top:8px}
.pg-settings .st-inline-error .rf-btn.link{margin:0 0 0 4px;color:inherit;font-size:13px;text-decoration:underline;vertical-align:baseline}

.pg-settings .st-usage{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 24px;margin:0;padding:4px 18px 18px;list-style:none}
.pg-settings .st-usage li{min-width:0}
.pg-settings .st-usage-top{display:flex;align-items:baseline;justify-content:space-between;gap:10px;margin-bottom:7px;font-size:13px}
.pg-settings .st-usage-top span{color:var(--rf-text);font-weight:550}
.pg-settings .st-usage-top strong{color:var(--rf-ink);font-weight:650;white-space:nowrap}
.pg-settings .st-usage-top strong small{margin-left:2px;color:var(--rf-muted);font-size:12px;font-weight:500}
.pg-settings .st-meter{height:7px}
.pg-settings .st-usage-note{display:block;margin-top:6px;color:var(--rf-muted);font-size:12px;line-height:1.35}
.pg-settings .st-usage-note.is-over{color:var(--rf-red-ink)}

.pg-settings .st-plans-card{margin-bottom:14px}
.pg-settings .st-plan-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;padding:2px 18px 18px}
.pg-settings .st-plan-card{display:flex;flex-direction:column;gap:12px;min-width:0;padding:16px;border:1px solid var(--rf-line);border-radius:12px;background:#fff}
.pg-settings .st-plan-card.is-current{border-color:var(--th-lime);background:var(--th-lime-soft)}
.pg-settings .st-plan-card header{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:24px}
.pg-settings .st-plan-card header strong{color:var(--rf-ink);font-size:15px;font-weight:650}
.pg-settings .st-price{margin:0;color:var(--rf-muted);font-size:13px}
.pg-settings .st-price b{margin-right:2px;color:var(--rf-ink);font-size:30px;font-weight:700;letter-spacing:-.03em}
.pg-settings .st-plan-limits{display:grid;flex:1;align-content:start;gap:7px;margin:0;padding:0;list-style:none}
.pg-settings .st-plan-limits li{display:flex;align-items:flex-start;gap:8px;color:var(--rf-text);font-size:12.5px;line-height:1.4}
.pg-settings .st-plan-limits .ic{flex:none;width:15px;height:15px;margin-top:1px;color:var(--rf-green);stroke-width:2.4}
.pg-settings .st-plan-card>.rf-btn{width:100%}
.pg-settings .st-plans-card>.rf-pad{padding-top:0}
.pg-settings .st-price-note{margin:-6px 0 0;color:var(--rf-muted);font-size:12px;line-height:1.4}
.pg-settings .st-tile-off{margin:-4px 0 0;color:var(--rf-muted);font-size:11.5px}

/* Hatched allowance meters, matching the Overview and Audit bars. Width comes from data-w + hydrate(). */
.pg-settings .st-track{height:8px;overflow:hidden;border-radius:4px;background:var(--rf-soft)}
.pg-settings .st-track span{display:block;height:100%;border-radius:4px;background-color:var(--th-lime)}
.pg-settings .st-track span.yellow{background-color:var(--th-yellow)}
.pg-settings .st-track span.orange{background-color:var(--th-orange)}

/* Website-quantity stepper: ink-black numerals, soft-grey surface. */
.pg-settings .st-stepper{display:inline-flex;align-items:center;gap:4px;padding:3px;border-radius:10px;background:var(--rf-soft)}
.pg-settings .st-stepper .rf-btn{width:30px;min-width:30px;height:28px;padding:0;border-color:transparent;background:#fff;font-weight:650}
.pg-settings .st-stepper b{min-width:34px;color:var(--rf-ink);font-family:var(--rf-display);font-size:16px;font-weight:550;text-align:center}
.pg-settings .st-tile-qty{display:flex;align-items:center;justify-content:space-between;gap:10px;color:var(--rf-text);font-size:12.5px;font-weight:550}
.pg-settings .st-qty-block{display:grid;justify-items:start;gap:10px;margin:0 18px 14px;padding:14px;border:1px solid var(--rf-line);border-radius:12px}
.pg-settings .st-qty-head{display:grid;gap:3px}
.pg-settings .st-qty-head strong{color:var(--rf-ink);font-size:13.5px;font-weight:650}
.pg-settings .st-qty-head small{color:var(--rf-muted);font-size:12px;line-height:1.45}
.pg-settings .st-qty-total{display:flex;align-items:baseline;gap:6px;margin:0}
.pg-settings .st-qty-total b{color:var(--rf-ink);font-family:var(--rf-display);font-size:26px;font-weight:550;letter-spacing:-.03em}
.pg-settings .st-qty-total span{color:var(--rf-muted);font-size:12.5px}
.pg-settings .st-qty-note{color:var(--rf-muted);font-size:11.5px;line-height:1.45}

/* Top-up packs. */
.pg-settings .st-topups-card{margin-bottom:14px}
.pg-settings .st-topup-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;padding:2px 18px 18px}
.pg-settings .st-topup{display:flex;flex-direction:column;gap:8px;min-width:0;padding:16px;border:1px solid var(--rf-line);border-radius:18px;background:#fff}
.pg-settings .st-topup strong{color:var(--rf-ink);font-family:var(--rf-display);font-size:15px;font-weight:550}
.pg-settings .st-topup p{flex:1;margin:0;color:var(--rf-muted);font-size:12px;line-height:1.45}
.pg-settings .st-topup-have{flex:none;color:var(--rf-ink);font-size:12.5px;font-weight:550}
.pg-settings .st-topup>.rf-btn{width:100%}

.pg-settings .st-invoices{margin-bottom:14px}
.pg-settings .st-invoices .rf-table-wrap{padding:0 6px 8px}
.pg-settings .st-invoices .rf-table td,.pg-settings .st-invoices .rf-table th{white-space:nowrap}
.pg-settings .st-invoices .st-num{text-align:right;white-space:nowrap}
.pg-settings .st-invoices .st-links{text-align:right;white-space:nowrap}
.pg-settings .st-mono{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:12.5px}
.pg-settings .st-invoice-link{display:inline-flex;align-items:center;gap:4px;margin-left:12px;font-weight:500}
.pg-settings .st-invoice-link .ic{width:13px;height:13px}

.pg-settings .st-seats{display:grid;gap:8px;margin:0 18px 8px;padding:12px 14px;border:1px solid var(--rf-line-2);border-radius:10px;background:var(--rf-soft)}
.pg-settings .st-seats.is-full{border-color:#f6e3b8;background:#fffaf0}
.pg-settings .st-seats-top{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:4px 12px;font-size:13px}
.pg-settings .st-seats-top strong{color:var(--rf-ink);font-weight:650}
.pg-settings .st-seats-top small{color:var(--rf-muted);font-size:12px}
.pg-settings .st-seats-warn{margin:0;color:var(--rf-amber-ink);font-size:12.5px;line-height:1.45}
.pg-settings .st-seats-warn .rf-btn.link{height:auto;margin-left:2px;color:inherit;font-size:12.5px;text-decoration:underline;vertical-align:baseline}

@media(max-width:1180px){.pg-settings .st-plan-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:900px){.pg-settings .st-plan-grid,.pg-settings .st-topup-grid{grid-template-columns:minmax(0,1fr)}}
@media(max-width:560px){
  .pg-settings .st-usage{grid-template-columns:minmax(0,1fr)}
  .pg-settings .st-plan-head>strong{font-size:20px}
}

/* Settings tabs: one section at a time instead of a 2,700px scroll. */
.pg-settings .st-tabs{display:inline-flex;flex-wrap:wrap;gap:2px;margin-bottom:16px;padding:4px;border-radius:12px;background:var(--rf-soft)}
.pg-settings .st-tab{height:34px;padding:0 14px;border:0;border-radius:9px;background:transparent;color:var(--rf-muted);font:inherit;font-size:13.5px;font-weight:500;cursor:pointer}
.pg-settings .st-tab:hover{color:var(--rf-ink)}
.pg-settings .st-tab.is-current{background:#fff;color:var(--rf-ink);font-weight:600;box-shadow:0 1px 3px rgba(20,22,28,.1)}
.pg-settings .st-tab:focus-visible{outline:2px solid var(--rf-ink);outline-offset:2px}
.pg-settings .rf-card-icon{background:var(--rf-soft);color:var(--rf-ink)}
.pg-settings .rf-form input:not([type=checkbox]),.pg-settings .rf-form select{border-radius:11px}
