/* Arenyze account — Developer, Automations, Billing (2026-11). Uses the
   tokens of theme.css (--acc, --s1..s5, --ink.., --line, --f-mono…). */

.dev-plan-chip { text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }

/* ---- API key ---- */
.dev-key { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--s1); }
.dev-key-value { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--f-mono); font-size: .82rem; color: var(--ink); }
.dev-key-meta { margin-top: 10px; font-size: .78rem; color: var(--ink-3); }
.dev-key-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 14px; }
.dev-inline { display: inline-flex; align-items: center; gap: 8px; font-size: .78rem; color: var(--ink-3); }
.dev-inline .form-control { width: auto; min-width: 110px; padding-top: 6px; padding-bottom: 6px; }
.btn-icon { padding-left: 9px !important; padding-right: 9px !important; }

/* ---- meters ---- */
.dev-meter { position: relative; height: 6px; margin-top: 10px; border-radius: 99px; background: var(--s3); overflow: hidden; }
.dev-meter > i { position: absolute; inset: 0 auto 0 0; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--acc), var(--hi, #ff6b35)); transition: width .6s cubic-bezier(.2,.8,.2,1); }
.dev-meter.is-warn > i { background: linear-gradient(90deg, #ff9f43, #ff5e57); }
.dev-meter-lg { height: 10px; }

/* ---- grids ---- */
.dev-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-bottom: 16px; }
.dev-grid > .card { margin: 0; }
.dev-grid-tight { margin: 0; gap: 22px; }
@media (max-width: 860px) { .dev-grid { grid-template-columns: 1fr; } }
.dev-h4 { margin: 0 0 10px; font-size: .6875rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }

/* ---- quota ---- */
.dev-quota-num { display: flex; align-items: baseline; gap: 8px; }
.dev-quota-num b { font: 800 2rem/1 var(--f-display); letter-spacing: -.01em; color: var(--ink); }
.dev-quota-num span { color: var(--ink-3); font-size: .85rem; }
.dev-quota-foot { display: flex; justify-content: space-between; margin-top: 8px; font-size: .75rem; color: var(--ink-3); }
.dev-games { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 10px; }
.dev-games li { display: grid; grid-template-columns: 12px 1fr auto; align-items: center; gap: 10px; font-size: .84rem; }
.dev-games li i { width: 10px; height: 10px; border-radius: 3px; background: var(--c, var(--acc)); }
.dev-games li b { font-family: var(--f-mono); font-weight: 600; }
.dev-games li small { grid-column: 2 / 4; margin-top: -6px; color: var(--ink-3); font-size: .72rem; }

/* ---- limits ---- */
.dev-limits { display: grid; gap: 8px; }
.dev-limit { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: .84rem; }
.dev-limit:last-child { border-bottom: 0; }
.dev-limit span { color: var(--ink-3); }
.dev-limit b { font-family: var(--f-mono); font-weight: 600; text-align: right; }

/* ---- bars + windows ---- */
.dev-bars { display: grid; gap: 9px; }
.dev-bar { display: grid; grid-template-columns: minmax(90px, 140px) 1fr auto; align-items: center; gap: 10px; font-size: .8rem; }
.dev-bar span { color: var(--ink-2, var(--ink)); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dev-bar .dev-meter { margin: 0; }
.dev-bar b { font-family: var(--f-mono); font-weight: 600; font-size: .78rem; }
.dev-windows { display: grid; gap: 12px; }
.dev-window { display: grid; gap: 4px; }
.dev-window-top { display: flex; justify-content: space-between; font-size: .8rem; }
.dev-window-top span { color: var(--ink-3); }
.dev-window .dev-meter { margin-top: 2px; }

/* ---- base urls ---- */
.dev-urls { display: grid; gap: 8px; }
.dev-url { display: grid; grid-template-columns: 190px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--s1); font-size: .84rem; }
.dev-url code { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--f-mono); font-size: .78rem; color: var(--acc-hi, var(--acc)); }
.dev-url a { font-size: .78rem; font-weight: 600; }
@media (max-width: 640px) { .dev-url { grid-template-columns: 1fr auto; } .dev-url code { grid-column: 1 / -1; grid-row: 2; } }

/* ---- list rows (endpoints, flows, legacy automations) ---- */
.row-list { display: grid; gap: 10px; }
.x-row { border: 1px solid var(--line); border-radius: 12px; background: var(--s1); padding: 14px 16px; }
.x-row.is-off { opacity: .62; }
.x-row-top { display: flex; align-items: flex-start; gap: 12px; }
.x-row-main { flex: 1 1 auto; min-width: 0; }
.x-row-title { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-weight: 700; font-size: .92rem; }
.x-row-title code { font-family: var(--f-mono); font-size: .78rem; font-weight: 500; overflow-wrap: anywhere; }
.x-row-sub { margin-top: 4px; color: var(--ink-3); font-size: .78rem; line-height: 1.55; }
.x-row-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.x-row-actions .btn-secondary { padding-top: 5px; padding-bottom: 5px; font-size: .75rem; }
.x-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.x-tag { display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px; border-radius: 99px; border: 1px solid var(--line); background: var(--s2); font-size: .7rem; color: var(--ink-2, var(--ink)); }
.x-tag.is-acc { border-color: var(--acc-a30, var(--line)); color: var(--acc-hi, var(--acc)); background: var(--acc-a08, var(--s2)); }
.x-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ink-3); flex: none; }
.x-dot.ok { background: #2ecc71; box-shadow: 0 0 0 3px #2ecc7126; }
.x-dot.bad { background: #ff5e57; box-shadow: 0 0 0 3px #ff5e5726; }
.x-log { margin-top: 12px; border-top: 1px solid var(--line); padding-top: 10px; display: grid; gap: 6px; }
.x-log-row { display: grid; grid-template-columns: 10px 1fr auto; align-items: center; gap: 10px; font-size: .74rem; color: var(--ink-3); }
.x-log-row b { color: var(--ink); font-weight: 600; }
.x-secret { margin-top: 12px; padding: 12px; border-radius: 10px; border: 1px solid var(--acc-a30, var(--line)); background: var(--acc-a08, var(--s2)); font-size: .78rem; }
.x-secret code { display: block; margin-top: 6px; font-family: var(--f-mono); font-size: .8rem; overflow-wrap: anywhere; color: var(--ink); }

/* ---- flows: templates + sentence ---- */
.flow-templates { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; margin-bottom: 16px; }
.flow-tpl { text-align: left; display: grid; gap: 6px; padding: 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--s1); color: inherit; font: inherit; cursor: pointer; transition: border-color .2s, transform .2s, background .2s; }
.flow-tpl:hover { border-color: var(--acc-a30, var(--acc)); background: var(--s2); transform: translateY(-2px); }
.flow-tpl b { font-size: .86rem; }
.flow-tpl span { font-size: .74rem; color: var(--ink-3); line-height: 1.5; }
.flow-tpl .flow-tpl-ic { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: var(--acc-a08, var(--s2)); color: var(--acc); }
.flow-sentence { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 8px; font-size: .8rem; color: var(--ink-3); }
.flow-sentence em { font-style: normal; font-weight: 700; color: var(--acc-hi, var(--acc)); letter-spacing: .06em; text-transform: uppercase; font-size: .66rem; }
.flow-sentence b { color: var(--ink); font-weight: 600; }

/* ---- builder modal ---- */
.dmodal-content.is-wide { width: min(760px, 100%); max-height: calc(100vh - 48px); display: flex; flex-direction: column; }
.dmodal-content.is-wide .dmodal-body { flex: 1 1 auto; }
.fb-step { position: relative; padding: 16px 16px 16px 54px; border: 1px solid var(--line); border-radius: 12px; background: var(--s1); }
.fb-step + .fb-step { margin-top: 12px; }
.fb-step::before { content: attr(data-n); position: absolute; left: 16px; top: 16px; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: var(--acc); color: var(--acc-ink, #111); font: 800 .8rem/1 var(--f-display); }
.fb-step h4 { margin: 2px 0 12px; font: 800 .95rem/1.2 var(--f-display); text-transform: uppercase; letter-spacing: .04em; }
.fb-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.fb-row + .fb-row, .fb-row + .fb-field, .fb-field + .fb-row, .fb-field + .fb-field { margin-top: 12px; }
@media (max-width: 620px) { .fb-row { grid-template-columns: 1fr; } .fb-step { padding-left: 16px; padding-top: 52px; } }
.fb-field label { display: block; margin-bottom: 6px; font-size: .6875rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.fb-hint { margin-top: 6px; font-size: .72rem; color: var(--ink-3); }
.fb-seg { display: inline-flex; padding: 3px; border-radius: 10px; background: var(--s3); gap: 3px; }
.fb-seg button { border: 0; background: transparent; color: var(--ink-3); font: 600 .78rem/1 inherit; padding: 8px 12px; border-radius: 8px; cursor: pointer; }
.fb-seg button.on { background: var(--s1); color: var(--ink); box-shadow: 0 1px 0 var(--line); }
.fb-checks { display: grid; gap: 8px; }
.fb-check { display: flex; align-items: center; gap: 10px; font-size: .84rem; }
.fb-check input[type=number] { width: 90px; }
.fb-action { display: grid; grid-template-columns: 150px 1fr auto; gap: 8px; align-items: center; }
.fb-action + .fb-action { margin-top: 8px; }
@media (max-width: 620px) { .fb-action { grid-template-columns: 1fr auto; } .fb-action .form-control.url { grid-column: 1 / -1; } }
.fb-events { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 6px 14px; }
.fb-events h5 { grid-column: 1 / -1; margin: 8px 0 2px; font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.fb-players { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.fb-players .x-tag button { border: 0; background: none; color: inherit; cursor: pointer; padding: 0; line-height: 1; }
.fb-addplayer { display: grid; grid-template-columns: 150px 1fr auto auto; gap: 8px; }
@media (max-width: 620px) { .fb-addplayer { grid-template-columns: 1fr 1fr; } }

/* ---- billing ---- */
.bill-hero { --tc: #9393a1; position: relative; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 22px; padding: 24px; margin-bottom: 16px; border: 1px solid color-mix(in srgb, var(--tc) 32%, var(--line)); border-radius: 16px; overflow: hidden;
  background: radial-gradient(520px 220px at 0% 0%, color-mix(in srgb, var(--tc) 18%, transparent), transparent 70%), repeating-linear-gradient(-60deg, transparent 0 18px, #ffffff05 18px 19px), var(--s1); }
.bill-hero::after { content: ''; position: absolute; right: -60px; bottom: -70px; width: 220px; height: 240px; background: var(--tc); opacity: .08; clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%); pointer-events: none; }
.bill-hero-k { font: 700 .66rem/1 var(--f-ui, inherit); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); }
.bill-hero-name { display: flex; align-items: center; gap: 12px; margin: 8px 0 6px; }
.bill-hero-name b { font: 850 2.4rem/1 var(--f-display); font-stretch: 112%; text-transform: uppercase; color: var(--tc); letter-spacing: -.01em; }
.bill-hero[data-tier="free"] .bill-hero-name b { color: var(--ink); }
.bill-hero p { margin: 0; color: var(--ink-2); font-size: .88rem; max-width: 460px; }
.bill-period { height: 5px; margin-top: 14px; max-width: 420px; border-radius: 99px; background: var(--s3); overflow: hidden; }
.bill-period i { display: block; height: 100%; width: 0; background: var(--tc); border-radius: inherit; transition: width .8s cubic-bezier(.2,.8,.2,1); }
.bill-hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.bill-stats { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; align-content: center; }
.bill-stat { display: grid; grid-template-columns: auto 1fr; column-gap: 10px; align-items: center; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: color-mix(in srgb, var(--s2) 82%, transparent); }
.bill-stat > :is(.material-icons, .i) { grid-row: span 3; width: 34px; height: 34px; padding: 8px; border-radius: 10px; background: color-mix(in srgb, var(--tc) 16%, transparent); color: var(--tc); }
.bill-hero[data-tier="free"] .bill-stat > :is(.material-icons, .i) { color: var(--acc); background: var(--acc-a08, #f5a62314); }
.bill-stat b { font: 800 1.15rem/1.1 var(--f-display); }
.bill-stat span { font-size: .76rem; color: var(--ink-2); }
.bill-stat small { font-size: .68rem; color: var(--ink-4); }
@media (max-width: 900px) { .bill-hero { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .bill-stats { grid-template-columns: 1fr; } .bill-hero-name b { font-size: 1.9rem; } }

.bill-picker { margin-bottom: 16px; padding: 20px; border: 1px solid var(--line); border-radius: 16px; background: var(--s1); }
.bill-picker-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px; margin-bottom: 18px; }
.bill-picker-head h3 { font: 800 1.25rem/1.1 var(--f-display); text-transform: uppercase; }
.bill-picker-head p { margin: 4px 0 0; color: var(--ink-3); font-size: .8rem; }
.bill-cycle { display: inline-flex; padding: 4px; gap: 4px; border-radius: 12px; background: var(--s3); }
.bill-cycle button { border: 0; background: none; color: var(--ink-3); font: 650 .8rem/1 inherit; padding: 9px 14px; border-radius: 9px; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; }
.bill-cycle button.on { background: var(--s1); color: var(--ink); box-shadow: 0 1px 0 var(--line-2, var(--line)); }
.bill-cycle em { font-style: normal; font-size: .64rem; font-weight: 700; padding: 3px 6px; border-radius: 6px; background: #2ecc7122; color: #49e08a; letter-spacing: .02em; }
.bill-tiers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 1000px) { .bill-tiers { grid-template-columns: 1fr; } }
.tier { --tc: var(--acc); position: relative; display: flex; flex-direction: column; padding: 20px; border-radius: 14px; border: 1px solid var(--line-2, var(--line)); background: linear-gradient(180deg, color-mix(in srgb, var(--tc) 9%, var(--s2)) 0%, var(--s1) 46%); overflow: hidden; transition: transform .25s, border-color .25s, box-shadow .25s; }
.tier::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 3px; background: linear-gradient(90deg, var(--tc), color-mix(in srgb, var(--tc) 30%, transparent)); }
.tier:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--tc) 45%, transparent); box-shadow: 0 18px 40px -24px color-mix(in srgb, var(--tc) 70%, transparent); }
.tier.is-current { border-color: var(--tc); box-shadow: inset 0 0 0 1px var(--tc); }
.tier-top { display: flex; justify-content: space-between; align-items: center; }
.tier-tag { font: 700 .62rem/1 var(--f-ui, inherit); letter-spacing: .14em; text-transform: uppercase; color: var(--tc); padding: 5px 8px; border-radius: 6px; background: color-mix(in srgb, var(--tc) 14%, transparent); }
.tier-hex { width: 22px; height: 24px; background: var(--tc); clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%); opacity: .9; }
.tier h4 { margin: 14px 0 0; font: 850 1.6rem/1 var(--f-display); font-stretch: 112%; text-transform: uppercase; }
.tier h4 small { font: 600 .7rem/1 var(--f-ui, inherit); letter-spacing: .1em; color: var(--ink-3); vertical-align: middle; }
.tier-price { display: flex; align-items: baseline; gap: 6px; margin-top: 12px; }
.tier-price b { font: 850 2.2rem/1 var(--f-display); font-stretch: 90%; color: var(--ink); }
.tier-price span { color: var(--ink-3); font-size: .84rem; }
.tier-sub { margin-top: 6px; font-size: .74rem; color: var(--ink-3); }
.tier-feats { list-style: none; margin: 16px 0 18px; padding: 16px 0 0; border-top: 1px dashed var(--line-2, var(--line)); display: grid; gap: 9px; flex: 1; }
.tier-feats li { display: flex; gap: 9px; align-items: flex-start; font-size: .82rem; color: var(--ink-2); line-height: 1.4; }
.tier-feats :is(.material-icons, .i) { flex: none; width: 16px; height: 16px; margin-top: 1px; color: var(--tc); }
.tier-btn { width: 100%; padding: 11px 14px; border: 1px solid var(--tc); background: var(--tc); color: #111; font: 750 .86rem/1 inherit; cursor: pointer; clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%); transition: filter .2s, transform .15s; }
.tier-btn:hover { filter: brightness(1.08); }
.tier-btn:active { transform: translateY(1px); }
.tier-btn.is-ghost { background: transparent; color: var(--ink-2); border-color: var(--line-2, var(--line)); cursor: default; }
.tier-btn:disabled { opacity: .8; }
.tier-why { margin: 8px 0 0; font-size: .7rem; color: var(--ink-4); }
.bill-fine { margin: 14px 0 0; font-size: .72rem; color: var(--ink-4); }

.inv-table { display: grid; }
.inv-tr { display: grid; grid-template-columns: 110px minmax(0, 1fr) 90px 100px auto; gap: 12px; align-items: center; padding: 11px 4px; border-bottom: 1px dashed var(--line); font-size: .82rem; }
.inv-tr:last-child { border-bottom: 0; }
.inv-th { font: 700 .64rem/1 var(--f-ui, inherit); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-4); border-bottom-style: solid; }
.inv-tr code { font-family: var(--f-mono); font-size: .76rem; }
.inv-st { font-style: normal; font-size: .7rem; font-weight: 700; text-transform: capitalize; padding: 3px 8px; border-radius: 99px; background: var(--s3); color: var(--ink-3); }
.inv-st.ok { background: #2ecc7120; color: #49e08a; } .inv-st.warn { background: #ff9f4322; color: #ffb36b; }
.inv-links { display: flex; gap: 12px; justify-content: flex-end; font-weight: 600; font-size: .78rem; }
@media (max-width: 640px) { .inv-tr { grid-template-columns: 1fr auto; } .inv-tr > :nth-child(2), .inv-th { display: none; } }

/* ---- custom selects (app.js wraps <select class="form-control"> in .sel.form-control):
   the wrapper must not draw a second box around the .sel-btn ---- */
.sel.form-control { display: flex; width: 100%; height: auto; padding: 0; border: 0; background: none; box-shadow: none; }
.sel.form-control:focus-within { box-shadow: none; }
.sel.form-control .sel-btn { width: 100%; height: 40px; background: #121217; border-color: var(--line-3, var(--line-2)); }
.dev-inline .sel.form-control, .dev-key-actions .sel.form-control { width: auto; min-width: 140px; }
.fb-field .sel.form-control, .fb-addplayer .sel.form-control { width: 100%; }
.fb-row { align-items: start; }
.fb-seg { display: flex; width: fit-content; }
.fb-check input[type=number] { height: 34px; padding: 4px 8px; }

/* ---- sidebar icons: fixed integer box (no sub-pixel jitter while the sticky rail
   scrolls) and reserved space before the ligature spans become SVG icons ---- */
.dashboard-sidebar { transform: translateZ(0); backface-visibility: hidden; }
.dashboard-sidebar .nav-item :is(.material-icons, .i) { width: 20px; height: 20px; font-size: 20px; line-height: 20px; flex: 0 0 20px; overflow: hidden; vertical-align: middle; }
.dashboard-sidebar .nav-item .material-icons { display: inline-block; color: transparent; }
.fb-row > .fb-field + .fb-field { margin-top: 0; }
.fb-check input[type=number] { width: 96px; }
.dev-sep { margin: 28px 0 12px; font: 800 1rem/1.1 var(--f-display); text-transform: uppercase; letter-spacing: .04em; color: var(--ink-2); }
#sec-developer .dash-head { align-items: flex-start; }
/* Developer uses the full width of the account area (charts, playground). */
.dashboard-content > #sec-developer { max-width: none; }

/* ---- Playground inputs (classes from the R6 dashboard) ---- */
#sec-developer .request-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
#sec-developer .request-bar .sel { flex: 0 0 auto; min-width: 96px; }
#sec-developer :is(.url-input, .header-key, .header-value, input.param-value) {
  height: 40px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line-3, #ffffff26); background: #121217; color: var(--ink);
  font: 500 .82rem var(--f-mono); outline: none; transition: border-color .15s, box-shadow .15s; min-width: 0;
}
#sec-developer .url-input { flex: 1 1 320px; }
#sec-developer :is(.url-input, .header-key, .header-value, input.param-value):focus { border-color: var(--acc); box-shadow: 0 0 0 3px rgb(245 166 35 / .16); }
#sec-developer .url-input[readonly], #sec-developer .header-key[readonly], #sec-developer .header-value[readonly] { color: var(--ink-2); }
#sec-developer .header-row { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 8px; }
#sec-developer .header-row + .header-row { margin-top: 8px; }
#sec-developer .header-key, #sec-developer .header-value { width: 100%; }
#sec-developer input.param-value { width: 100%; }
#sec-developer #responseBody { max-height: 520px; overflow: auto; margin: 0; padding: 14px 16px; border-radius: 12px; background: #0c0c11; border: 1px solid var(--line); font: 400 .8rem/1.6 var(--f-mono); }
#sec-developer .dev-grid { align-items: start; }

/* =====================================================================
   Account polish (2026-11): status pills, icon buttons, game tiles,
   summary values, playground, per-game quota strip
   ===================================================================== */
/* status: rounded pills, no slanted cut */
.dashboard-body .status-badge { clip-path: none; border-radius: 99px; height: 26px; padding: 0 11px 0 9px; gap: 6px; font: 650 .68rem/1 var(--f-ui); letter-spacing: .07em; text-transform: uppercase; border: 1px solid transparent; }
.dashboard-body .status-badge :is(.material-icons, .i) { width: 14px; height: 14px; font-size: 14px; }
.dashboard-body .status-badge.status-success { background: #2ecc7114; border-color: #2ecc7133; color: #49e08a; }
.dashboard-body .status-badge.status-pending { background: #f5a62314; border-color: #f5a62333; color: #ffc04d; }
.dashboard-body .status-badge.status-muted { background: var(--s2); border-color: var(--line-2); color: var(--ink-3); }
.dashboard-body .status-badge.status-error { background: #ff5e5714; border-color: #ff5e5733; color: #ff7c76; }

/* icon buttons: same square, soft radius, quiet until hover */
.dashboard-body .btn-icon { width: 34px; height: 34px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--s2); color: var(--ink-2); transition: background .15s, color .15s, border-color .15s, transform .15s; }
.dashboard-body .btn-icon :is(.material-icons, .i) { width: 16px; height: 16px; font-size: 16px; }
.dashboard-body .btn-icon:hover { background: var(--s3); border-color: var(--line-3, #ffffff26); color: var(--ink); }
.dashboard-body .btn-icon.danger:hover { background: #ff5e5714; border-color: #ff5e5740; color: #ff7c76; }
.dashboard-body .btn-icon:active { transform: translateY(1px); }

/* game account tiles */
.dashboard-body .conn-grid { gap: 14px; }
.dashboard-body .conn-tile { position: relative; gap: 16px; padding: 16px; border-radius: 14px; border: 1px solid var(--line); overflow: hidden; }
.dashboard-body .conn-tile.is-linked { border-color: color-mix(in srgb, var(--g) 28%, var(--line)); }
.dashboard-body .conn-tile::before { content: ''; position: absolute; inset: 0 auto 0 0; width: 3px; background: var(--g); opacity: .0; transition: opacity .2s; }
.dashboard-body .conn-tile.is-linked::before { opacity: .9; }
.dashboard-body .conn-logo, .dashboard-body .conn-logo img { width: 44px; height: 44px; border-radius: 12px; }
.dashboard-body .conn-logo { box-shadow: 0 0 0 1px #ffffff14, 0 8px 18px -10px #000; }
.dashboard-body .conn-body b { font-size: 1.05rem; line-height: 1.15; }
.dashboard-body .conn-body > span { margin-top: 4px; font-family: var(--f-mono); font-size: .74rem; color: var(--ink-2); }
.dashboard-body .conn-tile:not(.is-linked) .conn-body > span { font-family: inherit; color: var(--ink-3); }
.dashboard-body .conn-foot { align-items: center; gap: 8px 6px; padding-top: 12px; border-top: 1px solid #ffffff0a; }
.dashboard-body .conn-foot > .status-badge + .status-badge { margin-left: 0; }
.dashboard-body .conn-actions { margin-left: auto; }

/* summary values: one line, sized to fit */
.dashboard-body .stat-value { font-size: clamp(1.35rem, 2.1vw, 2rem); white-space: nowrap; }

/* ---- per-game strip in Developer → Usage ---- */
.dev-bygame { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin: 0 0 14px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--s1); }
.dev-bygame-k { font: 700 .64rem/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.dev-bygame .dev-games { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 0; flex: 1; }
.dev-bygame .dev-games li { display: inline-flex; align-items: center; gap: 8px; font-size: .84rem; }
.dev-bygame .dev-games li i { width: 9px; height: 10px; border-radius: 0; clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%); background: var(--c); }
.dev-bygame .dev-games li span { color: var(--ink-2); }
.dev-bygame .dev-games li b { font-family: var(--f-mono); font-weight: 600; color: var(--ink); }
.dev-bygame .dev-games li em { display: inline-block; width: 64px; height: 4px; border-radius: 99px; background: linear-gradient(90deg, var(--c) var(--p), var(--s3) var(--p)); }
.dev-bygame-link { margin-left: auto; font-size: .76rem; font-weight: 600; }

/* ---- Playground ---- */
#sec-developer [data-dapi-pane="playground"] .dapi-card { border-radius: 14px; }
#sec-developer [data-dapi-pane="playground"] .form-group label { font: 700 .64rem/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 8px; }
#sec-developer .form-group .sel, #sec-developer .form-group .sel-btn, #sec-developer #endpointSelector { max-width: none; }
/* one address bar: method · URL · send */
#sec-developer .request-bar { gap: 0; margin-top: 14px; padding: 5px; border: 1px solid var(--line-3, #ffffff26); border-radius: 12px; background: #101015; flex-wrap: nowrap; transition: border-color .15s, box-shadow .15s; }
#sec-developer .request-bar:focus-within { border-color: var(--acc); box-shadow: 0 0 0 3px rgb(245 166 35 / .14); }
#sec-developer .request-bar .sel { min-width: 88px; }
#sec-developer .request-bar .sel-btn { height: 36px; border: 0; border-radius: 9px; background: #2ecc711c; color: #49e08a; font: 800 .74rem/1 var(--f-mono); letter-spacing: .06em; }
#sec-developer .request-bar .url-input { flex: 1 1 auto; height: 36px; border: 0; background: transparent; box-shadow: none !important; padding: 0 12px; color: var(--ink); font-size: .84rem; }
#sec-developer .request-bar #sendRequestBtn { height: 36px; padding: 0 16px; border-radius: 9px; clip-path: none; gap: 6px; }
#sec-developer #queryParamsContainer { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
#sec-developer #queryParamsContainer .empty-state { grid-column: 1 / -1; padding: 22px 0; }
#sec-developer .param-row { display: flex; }
#sec-developer .param-label { font: 600 .78rem var(--f-mono); color: var(--ink); }
#sec-developer .param-label span { font-family: var(--f-ui); font-weight: 500; font-size: .7rem; }
#sec-developer .param-required { margin-left: 4px; color: var(--hi, #ff6b35); }
#sec-developer .header-row { grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); }
#sec-developer .header-key { color: var(--ink-3) !important; }
#sec-developer .response-area .dapi-card-head { align-items: center; }
#sec-developer .dapi-resp-meta { display: flex; align-items: center; gap: 10px; }
#sec-developer #responseStatus:empty { display: none; }
#sec-developer #responseStatus.status-success { background: #2ecc7114; border: 1px solid #2ecc7133; color: #49e08a; }
#sec-developer #responseStatus.status-error { background: #ff5e5714; border: 1px solid #ff5e5733; color: #ff7c76; }
#sec-developer #responseBody { min-height: 220px; max-height: 560px; color: #e8e8ee; }
@media (max-width: 640px) { #sec-developer .request-bar { flex-wrap: wrap; } #sec-developer .request-bar .url-input { flex-basis: 100%; order: 3; } #sec-developer .request-bar #sendRequestBtn { margin-left: auto; } }
.dashboard-body .conn-foot { flex-wrap: nowrap; align-items: center; }
.dashboard-body .conn-badges { display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; }
.dashboard-body .conn-actions { flex: none; }
#sec-developer [data-dapi-pane="playground"] .dapi-grid { align-items: start; }
#sec-developer .dapi-panes + .card, #sec-developer [data-dapi-pane] ~ .card, #sec-developer > .card { margin-top: 18px; }
.dev-bygame { margin-top: 14px; }

/* =====================================================================
   Round 3 (2026-11)
   ===================================================================== */
/* charts appear in place, softly */
@keyframes arzFade { from { opacity: 0; } to { opacity: 1; } }
#sec-developer .dapi-plot canvas { animation: arzFade .45s ease both; }
#sec-developer .dapi-foot { margin: 14px 2px 26px; font-size: .74rem; color: var(--ink-4); }

/* quota by game — a real card */
#sec-developer .dev-bygame { display: block; margin: 14px 0; padding: 0; gap: 0; border: 0; background: none; }
#sec-developer .dev-bygame .dapi-card-head h3 { display: flex; align-items: center; gap: 8px; }
#sec-developer .dev-bygame .dapi-card-head h3 :is(.material-icons, .i) { width: 18px; height: 18px; color: var(--acc); }
#sec-developer .dev-bygame .dev-games { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 14px 0 0; padding: 0; list-style: none; }
@media (max-width: 760px) { #sec-developer .dev-bygame .dev-games { grid-template-columns: 1fr; } }
.dev-game { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--s2); }
.dev-game img { width: 36px; height: 36px; border-radius: 10px; flex: none; box-shadow: 0 0 0 1px #ffffff14; }
.dev-game-main { flex: 1; min-width: 0; display: grid; gap: 4px; }
.dev-game-main > span { font-size: .76rem; color: var(--ink-3); }
.dev-game-main b { font: 800 1.35rem/1.1 var(--f-display); color: var(--ink); }
.dev-game-main b small { margin-left: 5px; font: 500 .74rem var(--f-ui); color: var(--ink-3); }
.dev-game-main .dev-meter { margin-top: 6px; height: 5px; }
.dev-game-main .dev-meter > i { background: var(--acc); }
.dev-game-main em { font-style: normal; font-size: .7rem; color: var(--ink-4); }

/* ---- Billing: one accent for every plan, no decorations ---- */
.bill-hero, .bill-hero[data-tier] { --tc: var(--acc) !important; }
.bill-hero::after { display: none; }
.bill-hero[data-tier="free"] .bill-hero-name b { color: var(--ink); }
.tier, .tier[style] { --tc: var(--acc) !important; background: var(--s2); }
.tier::before { display: none; }
.tier-hex { display: none; }
.tier-tag { color: var(--ink-3); background: var(--s3); }
.tier.is-pop { border-color: var(--acc-a30, #f5a6234d); background: linear-gradient(180deg, rgb(245 166 35 / .08), var(--s2) 45%); }
.tier.is-pop .tier-tag { color: var(--acc-hi, #ffc04d); background: rgb(245 166 35 / .14); }
.tier.is-current { border-color: var(--acc); box-shadow: inset 0 0 0 1px var(--acc); }
.tier:hover { box-shadow: 0 16px 36px -26px #000; }
.tier-btn { background: var(--s4, #262631); border-color: var(--line-2); color: var(--ink); clip-path: none; border-radius: 10px; }
.tier.is-pop .tier-btn:not(.is-ghost) { background: var(--acc); border-color: var(--acc); color: var(--acc-ink, #170f02); }
.tier-btn:hover { filter: none; background: var(--s5, #31313e); }
.tier.is-pop .tier-btn:not(.is-ghost):hover { background: var(--acc-hi, #ffc04d); }
.tier-feats :is(.material-icons, .i) { color: var(--acc); }
.bill-stat > :is(.material-icons, .i) { color: var(--acc) !important; background: rgb(245 166 35 / .1) !important; }
.bill-hero { background: var(--s1); border-color: var(--line-2); }
.bill-period i { background: var(--acc); }

/* ---- Automations ---- */
.flow-templates { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.flow-tpl { gap: 8px; padding: 16px; border-radius: 14px; background: var(--s1); border: 1px solid var(--line); }
.flow-tpl:hover { transform: translateY(-2px); background: var(--s2); border-color: rgb(245 166 35 / .3); }
.flow-tpl .flow-tpl-ic { width: 34px; height: 34px; border-radius: 10px; background: rgb(245 166 35 / .1); }
.flow-tpl .flow-tpl-ic :is(.material-icons, .i) { width: 17px; height: 17px; }
.flow-tpl b { font-size: .9rem; }
.x-row { border-radius: 14px; padding: 16px 18px; background: var(--s2); border: 1px solid var(--line); }
.x-row-title { font-size: .95rem; }
.x-row .switch { margin-left: auto; }
.flow-sentence { gap: 6px 8px; margin-top: 10px; padding: 10px 12px; border-radius: 10px; background: var(--s1); border: 1px solid var(--line); }
.flow-sentence em { padding: 3px 7px; border-radius: 6px; background: rgb(245 166 35 / .12); }
.x-row-actions { gap: 8px; margin-top: 14px; }
.x-row-actions .btn-secondary { height: 32px; border-radius: 9px; }
.x-tag { border-radius: 99px; }
.x-log { border-top: 1px dashed var(--line-2); }
#sec-developer section.dev-bygame { padding: 18px 20px 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--s1); }
#sec-developer section.dev-bygame .dapi-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
#sec-developer section.dev-bygame .dapi-card-head p { margin-top: 4px; }
/* Quota by game = a native .dapi-card (its outline is the box-shadow): no extra border, no boxed tiles */
#sec-developer section.dev-bygame { padding: 20px 22px; border: 0; border-radius: var(--r-lg, 16px); background: var(--s1); }
#sec-developer section.dev-bygame .dapi-card-head { margin-bottom: 14px; }
#sec-developer section.dev-bygame .dapi-card-head h3 { font: 650 15px/1.3 var(--f-ui); }
#sec-developer section.dev-bygame .dapi-card-head .btn { height: 30px; font-size: .74rem; }
#sec-developer .dev-bygame .dev-games { gap: 0; margin: 0; }
#sec-developer .dev-game { padding: 4px 20px; border: 0; border-radius: 0; background: none; }
#sec-developer .dev-game:first-child { padding-left: 0; }
#sec-developer .dev-game + .dev-game { border-left: 1px solid var(--line); }
#sec-developer .dev-game img { width: 32px; height: 32px; border-radius: 9px; }
@media (max-width: 760px) {
  #sec-developer .dev-game { padding: 12px 0; }
  #sec-developer .dev-game + .dev-game { border-left: 0; border-top: 1px solid var(--line); }
}
/* key card buttons */
#sec-developer #generateKeyBtn { display: inline-flex; align-items: center; gap: 8px; }
#sec-developer #generateKeyBtn :is(.material-icons, .i) { width: 17px; height: 17px; flex: none; }
#sec-developer .btn-delete { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--s2); color: var(--ink-2); cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
#sec-developer .btn-delete :is(.material-icons, .i) { width: 17px; height: 17px; }
#sec-developer .btn-delete:hover:not(:disabled) { background: #ff5e5714; border-color: #ff5e5740; color: #ff7c76; }
#sec-developer .btn-delete:disabled { opacity: .45; cursor: not-allowed; }
@keyframes arzRot { to { transform: rotate(360deg); } }
.is-rot { animation: arzRot .9s linear infinite; }
/* key actions: one 44px row, delete as a real (danger) button */
#sec-developer .dapi-key-actions { align-items: flex-end; gap: 10px; }
#sec-developer .dapi-key-actions .btn-primary, #sec-developer .dapi-key-actions .sel-btn { height: 44px; }
#sec-developer .dapi-key-actions .btn-primary { padding: 0 20px; }
#sec-developer .btn-delete { width: auto; height: 44px; padding: 0 16px; display: inline-flex; align-items: center; gap: 8px; border-radius: 10px; font: 600 .84rem var(--f-ui); color: #ff7c76; border-color: #ff5e5733; background: #ff5e570d; }
#sec-developer .btn-delete :is(.material-icons, .i) { width: 18px; height: 18px; }
#sec-developer .btn-delete:hover:not(:disabled) { background: #ff5e571f; border-color: #ff5e5766; color: #ff9690; }
#sec-developer .btn-delete:disabled { color: var(--ink-4); border-color: var(--line-2); background: var(--s2); opacity: .7; }
@media (max-width: 640px) { #sec-developer .btn-delete-label { display: none; } #sec-developer .btn-delete { width: 44px; padding: 0; justify-content: center; } }

/* automation templates: always full rows (6 templates → 3×2, 2×3, 1×6) */
.flow-templates { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1100px) { .flow-templates { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .flow-templates { grid-template-columns: 1fr; } }
.flow-tpl { height: 100%; align-content: start; }
/* card titles in the R6 panel follow the account style (Archivo, uppercase) */
#sec-developer .dapi-card-head h3 { font: 700 1.1rem/1.15 var(--f-display); text-transform: uppercase; letter-spacing: .02em; }
#sec-developer .dapi-card-head p { font-size: .78rem; }
