/* ============================================================
   FALAK — Account & Workspace Settings (page 15)
   Enterprise settings shell: section list, forms, tables.
   ============================================================ */

.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}

/* ---------- topbar ---------- */
.st-topbar{
  position:sticky;top:0;z-index:50;
  background:rgba(5,11,24,.92);backdrop-filter:blur(20px);
  border-bottom:1px solid var(--line-soft);
}
.st-topbar-in{
  max-width:var(--container);margin:0 auto;padding:0 clamp(18px,4vw,40px);
  height:68px;display:flex;align-items:center;gap:18px;
}
.st-ws{display:flex;align-items:center;gap:10px;min-width:0;margin-left:6px;padding-left:18px;border-left:1px solid var(--line-soft)}
.st-ws-name{font-size:13.5px;color:#DCE6F2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.st-top-actions{display:flex;align-items:center;gap:14px;margin-left:auto}
.st-top-link{font-size:12.5px;color:#93A4BD;text-decoration:none;white-space:nowrap}
.st-top-link:hover{color:#fff}
.st-top-link:focus-visible{outline:2px solid var(--cyan);outline-offset:3px}
.st-avatar{
  display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;flex:none;
  border-radius:50%;border:1px solid rgba(34,211,238,.4);
  background:linear-gradient(150deg,rgba(34,211,238,.22),rgba(139,92,246,.22));
  font-family:var(--mono);font-size:10.5px;letter-spacing:.06em;color:#DCEBFA;
}
.st-avatar-lg{width:52px;height:52px;font-size:15px}
@media (max-width:820px){.st-ws{border-left:0;padding-left:0}.st-ws-name{display:none}.st-top-link:first-child{display:none}}
@media (max-width:620px){
  .st-topbar-in{height:auto;flex-wrap:wrap;padding-top:11px;padding-bottom:11px;gap:10px 12px}
  .st-ws{margin-left:0;min-width:0;flex:1 1 auto}
  .st-chip.is-demo{white-space:normal;line-height:1.35}
  .st-top-actions{gap:10px}
}

/* ---------- shell ---------- */
.st-main{padding:26px 0 70px}
.st-shell{display:grid;grid-template-columns:236px minmax(0,1fr);gap:36px;align-items:start}
@media (max-width:1080px){.st-shell{grid-template-columns:minmax(0,1fr);gap:20px}}

.st-side{position:sticky;top:92px}
@media (max-width:1080px){.st-side{position:static}}
.st-side-title{
  margin:0 0 10px;padding-bottom:8px;border-bottom:1px solid var(--line);
  font-family:var(--mono);font-size:9px;letter-spacing:.16em;text-transform:uppercase;color:#7E90A8;
}
.st-nav{display:flex;flex-direction:column}
@media (max-width:1080px){
  .st-nav{flex-direction:row;overflow-x:auto;gap:4px;padding-bottom:6px;scrollbar-width:none}
  .st-nav::-webkit-scrollbar{display:none}
  .st-nav a{border-left:0;border-bottom:2px solid transparent;white-space:nowrap;padding:7px 10px}
  .st-nav a.is-current{border-left-color:transparent;border-bottom-color:var(--cyan)}
}
.st-nav a{
  display:flex;align-items:baseline;gap:9px;padding:6px 0 6px 10px;border-left:2px solid transparent;
  text-decoration:none;font-size:12.5px;color:#93A4BD;transition:color .16s,border-color .16s;
}
.st-nav a span{font-family:var(--mono);font-size:9px;color:#4E5F78;letter-spacing:.06em}
.st-nav a:hover{color:#EAF2FB}
.st-nav a.is-current{border-left-color:var(--cyan);color:#EAF2FB}
.st-nav a.is-current span{color:var(--cyan)}
.st-nav a:focus-visible{outline:2px solid var(--cyan);outline-offset:2px}
.st-side-note{margin-top:18px;padding-top:14px;border-top:1px solid var(--line-soft)}
.st-side-note p{margin:0 0 8px;font-size:11px;line-height:1.65;color:#6F819B}
.st-side-note b{color:#CFF6FF;font-weight:500}
.st-side-note a{font-size:11px;color:#F7C77A;text-decoration:none;border-bottom:1px solid rgba(245,158,11,.4)}
@media (max-width:1080px){.st-side-note{display:none}}

/* ---------- masthead ---------- */
.st-masthead{padding:0 0 26px;border-bottom:1px solid var(--line);margin-bottom:8px}
.st-kicker{
  display:flex;align-items:center;gap:9px;flex-wrap:wrap;margin:0 0 12px;
  font-family:var(--mono);font-size:10px;letter-spacing:.14em;text-transform:uppercase;color:#7E90A8;
}
.st-kicker .dot{width:6px;height:6px;border-radius:50%;background:var(--cyan);box-shadow:0 0 10px rgba(34,211,238,.8)}
.st-flag{color:#F7C77A;border:1px solid rgba(245,158,11,.4);border-radius:999px;padding:2px 8px;background:rgba(245,158,11,.08);letter-spacing:.1em}
.st-masthead h1{margin:0 0 8px;font-size:clamp(28px,3.4vw,44px);line-height:1.08;color:#F2F6FC}
.st-ar{margin:0 0 14px;font-family:var(--ar);font-size:15px;color:#93A4BD;direction:rtl;text-align:left}
.st-lead{margin:0 0 16px;max-width:80ch;font-size:14.5px;line-height:1.72;color:#A9B8CC}
.st-status{
  display:flex;align-items:flex-start;gap:14px;flex-wrap:wrap;
  border:1px solid rgba(245,158,11,.3);background:rgba(245,158,11,.06);
  border-radius:12px;padding:12px 15px;
}
.st-status-tag{
  font-family:var(--mono);font-size:9px;letter-spacing:.14em;text-transform:uppercase;
  color:#F7C77A;border:1px solid rgba(245,158,11,.45);border-radius:3px;padding:3px 7px;flex:none;
}
.st-status ul{list-style:none;display:flex;flex-wrap:wrap;gap:6px 20px;margin:0;padding:0}
.st-status li{display:flex;align-items:baseline;gap:7px;font-family:var(--mono);font-size:9.5px;letter-spacing:.08em;text-transform:uppercase;color:#9C8F78}
.st-status li b{color:#F7C77A;font-size:11px}
.st-status p{margin:0;flex:1 1 320px;font-size:11.5px;line-height:1.6;color:#C9B99C}

/* ---------- sections ---------- */
.st-sec{padding:34px 0;border-bottom:1px solid var(--line-soft);scroll-margin-top:92px}
.st-sec:last-of-type{border-bottom:0}
.st-sec-head{display:flex;gap:14px;align-items:flex-start;margin:0 0 16px}
.st-sec-num{
  flex:none;margin:2px 0 0;min-width:26px;
  font-family:var(--mono);font-size:10px;letter-spacing:.1em;color:var(--cyan);
}
.st-sec-head h2{margin:0 0 4px;font-size:19px;font-weight:500;color:#F2F6FC;font-family:var(--display);letter-spacing:-.01em}
.st-sec-head p{margin:0;font-size:12.5px;line-height:1.6;color:#8FA2BC}

.st-card{
  border:1px solid var(--line);border-radius:14px;padding:18px 20px;
  background:linear-gradient(180deg,rgba(13,25,48,.6),rgba(8,15,29,.42));
}
.st-card-head{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;margin:0 0 6px}
.st-card-head h3{margin:0;font-size:14px;font-weight:500;color:#EAF2FB}
.st-count{
  display:inline-block;margin-left:6px;padding:1px 7px;border-radius:999px;
  border:1px solid var(--line);font-family:var(--mono);font-size:9px;color:#8FA2BC;
}
.st-why{margin:8px 0 14px;font-size:11.5px;line-height:1.65;color:#7E90A8;max-width:86ch}
.st-fine{margin:12px 0 0;font-size:11px;line-height:1.65;color:#6F819B;max-width:86ch}
.st-fine a{color:#8FC4FF;text-decoration:none;border-bottom:1px solid rgba(143,196,255,.35)}
.st-divider{height:1px;background:var(--line-soft);margin:18px 0}

/* ---------- forms ---------- */
.st-form{margin:0}
.st-row{display:grid;grid-template-columns:220px minmax(0,1fr);gap:16px;padding:12px 0;border-bottom:1px solid rgba(148,180,220,.06)}
.st-row:last-of-type{border-bottom:0}
@media (max-width:820px){.st-row{grid-template-columns:minmax(0,1fr);gap:8px}}
.st-row > label,.st-label{font-size:13px;color:#CBD8E8;line-height:1.5;padding-top:2px}
.st-label-col{display:flex;flex-direction:column;gap:3px}
.st-label-col .st-help{margin:0}
.st-control{display:flex;flex-direction:column;gap:7px;min-width:0}
.st-control input[type="text"],.st-control input[type="email"],.st-control input[type="password"],.st-control select{
  width:100%;max-width:440px;background:#060D1B;border:1px solid var(--line);border-radius:8px;
  padding:10px 11px;color:#E6EEF8;font-family:var(--body);font-size:13.5px;
}
.st-control select{cursor:pointer;max-width:340px}
.st-control input::placeholder{color:#4E5F78}
.st-control input:focus-visible,.st-control select:focus-visible,.st-select-sm:focus-visible{outline:2px solid var(--cyan);outline-offset:1px;border-color:rgba(34,211,238,.55)}
.st-control input:disabled,.st-control select:disabled{opacity:.6;cursor:not-allowed}
.st-help{margin:0;font-size:11px;line-height:1.6;color:#6F819B;max-width:76ch}
.st-value{margin:0;font-size:13px;color:#CBD8E8;padding-top:6px}
.st-form-foot{display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin-top:16px;padding-top:14px;border-top:1px solid var(--line-soft)}
.st-result{
  margin:0;font-size:11.5px;line-height:1.6;color:#6F819B;max-width:62ch;
  border-left:2px solid rgba(148,180,220,.18);padding-left:10px;
}
.st-result.is-warn{color:#F7C77A;border-left-color:rgba(245,158,11,.55)}
.st-result.is-ok{color:#7FE3BF;border-left-color:rgba(16,185,129,.55)}
.st-result-wide{margin-top:16px;max-width:100%}

/* buttons */
.st-btn{
  appearance:none;cursor:pointer;border:1px solid transparent;border-radius:9px;
  display:inline-flex;align-items:center;justify-content:center;height:38px;padding:0 16px;
  font-family:var(--body);font-size:13px;font-weight:500;text-decoration:none;white-space:nowrap;
  transition:transform .18s,border-color .18s,background .18s,color .18s;
}
.st-btn-primary{
  color:#03121F;background:linear-gradient(135deg,#22D3EE 0%,#168BFF 62%,#3F7BFF 100%);
  box-shadow:0 10px 28px -16px rgba(22,139,255,.9),inset 0 1px 0 rgba(255,255,255,.32);font-weight:600;
}
.st-btn-primary:hover{transform:translateY(-1px)}
.st-btn-ghost{color:#EAF2FB;background:rgba(148,180,220,.05);border-color:rgba(148,180,220,.22)}
.st-btn-ghost:hover{border-color:rgba(34,211,238,.45);background:rgba(34,211,238,.08)}
.st-btn-danger{color:#FFD9D9;background:rgba(239,68,68,.1);border-color:rgba(239,68,68,.45)}
.st-btn-danger:hover{background:rgba(239,68,68,.18);border-color:rgba(239,68,68,.7)}
.st-btn-off{color:#6F819B;background:rgba(148,180,220,.03);border-color:rgba(148,180,220,.16);cursor:not-allowed}
.st-btn:focus-visible{outline:2px solid var(--cyan);outline-offset:2px}
.st-btn:disabled{opacity:.85}

/* chips */
.st-chip{
  display:inline-block;font-family:var(--mono);font-size:8.5px;letter-spacing:.1em;text-transform:uppercase;
  padding:3px 7px;border-radius:999px;border:1px solid var(--line);color:#8FA2BC;white-space:nowrap;
}
.st-chip.is-off{color:#F7C77A;border-color:rgba(245,158,11,.4);background:rgba(245,158,11,.08)}
.st-chip.is-demo{color:#C9B6FF;border-color:rgba(139,92,246,.45);background:rgba(139,92,246,.12)}

/* switch + checkbox */
.st-switch{display:inline-flex;align-items:center;gap:10px;cursor:pointer;user-select:none}
.st-switch input{position:absolute;opacity:0;width:1px;height:1px}
.st-switch-ui{
  position:relative;width:38px;height:21px;border-radius:999px;flex:none;
  background:rgba(148,180,220,.16);border:1px solid var(--line);transition:background .18s,border-color .18s;
}
.st-switch-ui::after{
  content:"";position:absolute;top:2px;left:2px;width:15px;height:15px;border-radius:50%;
  background:#93A4BD;transition:transform .18s,background .18s;
}
.st-switch input:checked + .st-switch-ui{background:rgba(34,211,238,.28);border-color:rgba(34,211,238,.6)}
.st-switch input:checked + .st-switch-ui::after{transform:translateX(17px);background:#CFF6FF}
.st-switch input:focus-visible + .st-switch-ui{outline:2px solid var(--cyan);outline-offset:2px}
.st-switch-txt{font-size:11.5px;color:#8FA2BC;min-width:22px}
.st-check{display:inline-flex;align-items:center;gap:7px;margin-right:18px;font-size:12.5px;color:#CBD8E8;cursor:pointer}
.st-check input{width:15px;height:15px;accent-color:#22D3EE;cursor:pointer}
.st-check input:focus-visible{outline:2px solid var(--cyan);outline-offset:2px}

/* fieldset / radios */
.st-fieldset{border:0;margin:0;padding:0}
.st-legend{padding:0;margin:0 0 12px;font-family:var(--mono);font-size:9px;letter-spacing:.13em;text-transform:uppercase;color:#7E90A8}
.st-radio{display:flex;gap:10px;align-items:flex-start;padding:10px 0;border-bottom:1px solid rgba(148,180,220,.06);cursor:pointer}
.st-radio:last-of-type{border-bottom:0}
.st-radio input{margin:3px 0 0;width:15px;height:15px;accent-color:#22D3EE;cursor:pointer}
.st-radio b{display:block;font-size:13px;font-weight:500;color:#E2E8F0}
.st-radio em{display:block;font-style:normal;font-size:11.5px;line-height:1.6;color:#7E90A8;margin-top:2px}
.st-retention-note{
  margin:14px 0 0;border:1px solid rgba(245,158,11,.28);background:rgba(245,158,11,.06);
  border-radius:10px;padding:12px 14px;
}
.st-retention-note p{margin:0;font-size:11.5px;line-height:1.65;color:#C9B99C}
.st-retention-note b{color:#F7C77A;font-weight:500}

/* ---------- tables ---------- */
.st-tablewrap{position:relative;overflow-x:auto;border:1px solid var(--line-soft);border-radius:10px;background:rgba(6,13,27,.5)}
.st-table{width:100%;border-collapse:collapse;font-size:12.5px;min-width:620px}
.st-table thead th{
  text-align:left;padding:10px 14px;background:#08101F;border-bottom:1px solid var(--line-soft);
  font-family:var(--mono);font-size:9px;letter-spacing:.12em;text-transform:uppercase;color:#7E90A8;font-weight:500;white-space:nowrap;
}
.st-table tbody th[scope="row"]{text-align:left;padding:10px 14px;font-weight:400;font-size:12.5px;color:#CBD8E8;border-bottom:1px solid rgba(148,180,220,.06)}
.st-table td{padding:10px 14px;border-bottom:1px solid rgba(148,180,220,.06);color:#A9B8CC;border-left:1px solid rgba(148,180,220,.05)}
.st-table td.yes{color:#7FE3BF}
.st-table td.no{color:#5E708A}
.st-empty-row td{padding:26px 18px;border-left:0}
.st-empty-k{display:block;font-family:var(--mono);font-size:10px;letter-spacing:.12em;text-transform:uppercase;color:#8FA2BC;margin-bottom:6px}
.st-empty-p{display:block;font-size:12px;line-height:1.65;color:#6F819B;max-width:74ch}

/* api key format */
.st-format{margin-top:16px;border:1px dashed rgba(245,158,11,.35);border-radius:10px;padding:14px 16px;background:rgba(245,158,11,.04)}
.st-format-k{margin:0 0 10px;font-family:var(--mono);font-size:9px;letter-spacing:.12em;text-transform:uppercase;color:#F7C77A}
.st-code{
  margin:0;padding:12px 14px;border-radius:8px;background:#060D1B;border:1px solid var(--line-soft);
  font-family:var(--mono);font-size:11.5px;line-height:1.7;color:#C9B99C;overflow-x:auto;white-space:pre;
}

/* integrations */
.st-int{list-style:none;margin:0;padding:0;display:grid;gap:2px}
.st-int li{
  display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:12px;align-items:center;
  padding:12px 0;border-bottom:1px solid rgba(148,180,220,.06);
}
.st-int li:last-child{border-bottom:0}
@media (max-width:700px){.st-int li{grid-template-columns:minmax(0,1fr) auto;row-gap:8px}.st-int li .st-btn{grid-column:1/-1;justify-self:start}}
.st-int-id{display:flex;align-items:center;gap:11px;min-width:0}
.st-int-mark{
  display:inline-flex;align-items:center;justify-content:center;width:30px;height:30px;flex:none;
  border-radius:8px;border:1px solid var(--line);background:rgba(10,20,38,.8);
  font-family:var(--mono);font-size:9.5px;color:#8FA2BC;letter-spacing:.04em;
}
.st-int-id b{display:block;font-size:13px;font-weight:500;color:#E2E8F0}
.st-int-id span{display:block;font-size:11.5px;line-height:1.55;color:#6F819B}

/* usage + plan */
.st-usage{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:0 0 6px}
@media (max-width:820px){.st-usage{grid-template-columns:repeat(2,minmax(0,1fr))}}
.st-meter{border:1px solid var(--line-soft);border-radius:10px;padding:12px 14px;background:rgba(10,20,38,.5)}
.st-meter-k{margin:0 0 6px;font-family:var(--mono);font-size:9px;letter-spacing:.1em;text-transform:uppercase;color:#7E90A8}
.st-meter-v{margin:0;font-family:var(--display);font-size:22px;color:#DCE6F2;line-height:1}
.st-meter-n{margin:6px 0 0;font-size:10.5px;color:#6F819B}
.st-plan{
  display:flex;align-items:center;gap:24px;flex-wrap:wrap;margin:18px 0 4px;padding:14px 16px;
  border:1px solid var(--line-soft);border-radius:10px;background:rgba(10,20,38,.4);
}
.st-plan-k{margin:0 0 5px;font-family:var(--mono);font-size:9px;letter-spacing:.1em;text-transform:uppercase;color:#7E90A8}
.st-plan-v{margin:0;font-size:14px;color:#E2E8F0;display:flex;align-items:center;gap:8px}
.st-plan .st-btn{margin-left:auto}
@media (max-width:600px){.st-plan .st-btn{margin-left:0}}

/* inline rows */
.st-inline{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px 0;border-bottom:1px solid rgba(148,180,220,.06);flex-wrap:wrap}
.st-inline:last-of-type{border-bottom:0}

/* danger zone */
.st-danger .st-sec-num{color:#F59E0B}
.st-card-danger{border-color:rgba(239,68,68,.28);background:linear-gradient(180deg,rgba(40,12,16,.5),rgba(8,15,29,.4))}
.st-danger-row{display:flex;align-items:center;justify-content:space-between;gap:18px;flex-wrap:wrap}
.st-danger-row .st-help{max-width:60ch}

/* dialogs */
.st-dialog{
  border:1px solid var(--line);border-radius:16px;padding:0;max-width:520px;width:calc(100% - 32px);
  background:linear-gradient(180deg,#0B1628,#070F1D);color:var(--text);
  box-shadow:0 60px 120px -40px rgba(0,0,0,.9);
}
.st-dialog::backdrop{background:rgba(2,6,14,.72);backdrop-filter:blur(3px)}
.st-dialog-in{padding:22px 22px 18px}
.st-dialog-k{margin:0 0 8px;font-family:var(--mono);font-size:9px;letter-spacing:.14em;text-transform:uppercase;color:#F7C77A}
.st-dialog h2{margin:0 0 10px;font-size:20px;font-weight:500;color:#F2F6FC;font-family:var(--display)}
.st-dialog p{margin:0 0 14px;font-size:12.5px;line-height:1.7;color:#A9B8CC}
.st-dialog-field{display:block;margin:0 0 6px;font-size:11.5px;color:#8FA2BC}
.st-dialog-field b{font-family:var(--mono);color:#F7C77A;font-weight:500}
.st-dialog input{
  width:100%;background:#060D1B;border:1px solid var(--line);border-radius:8px;padding:10px 11px;
  color:#E6EEF8;font-family:var(--mono);font-size:13px;
}
.st-dialog input:focus-visible{outline:2px solid var(--cyan);outline-offset:1px}
.st-dialog-foot{display:flex;justify-content:flex-end;gap:10px;margin-top:18px;flex-wrap:wrap}

@media (prefers-reduced-motion:reduce){
  .st-btn,.st-switch-ui,.st-switch-ui::after{transition:none}
}
