/* Settings screens (Company, Channels, Team, Posting, Plan and billing), More and My account. Tokens and shared components come from ../styles.css. */
.st-wrap { display: grid; gap: 14px; min-width: 0; max-width: 1100px; }
.st-wrap > * { min-width: 0; }
.st-head { margin: 0; align-items: center; }
.st-body { min-width: 0; }
.st-body > * { min-width: 0; }
.st-wrap .tablist { margin-bottom: 0; }

/* back link: phone only on the settings page, always on the account page */
.st-back { display: inline-flex; align-items: center; gap: 6px; min-height: var(--tap); font-weight: 700; text-decoration: none; width: fit-content; }
.st-back .ic { width: 18px; height: 18px; }
@media (min-width: 900px) { .st-back:not(.st-back-on) { display: none; } }

/* setup progress bar */
.st-setup { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 12px 16px; display: grid; gap: 10px; flex: 1 1 100%; min-width: 0; }
.st-setup-t { display: flex; justify-content: space-between; align-items: baseline; gap: 4px 12px; flex-wrap: wrap; }
.st-setup-l { font-size: 13px; color: var(--ink-2); }
.st-setup .meter > span { background: var(--ok); }
@media (min-width: 900px) {
  .st-head { flex-wrap: nowrap; }
  .st-head > div { flex: 1 1 auto; }
  .st-setup { flex: 0 1 360px; background: none; border: 0; padding: 0; }
}

/* boxes */
.st-sec { scroll-margin-top: 72px; min-width: 0; }
.st-sec.st-hl { box-shadow: 0 0 0 3px color-mix(in srgb, var(--blue) 45%, transparent); transition: box-shadow .3s; }
.st-kv { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 14px; }
.st-kv > * { min-width: 0; }
.st-upper { text-transform: uppercase; }
.st-logo { max-height: 60px; max-width: 100%; margin-top: 8px; display: block; object-fit: contain; }
.st-wrap input[type='file'], .st-wrap input[type='color'] { min-height: var(--tap); width: 100%; }
.st-wrap input[type='color'] { padding: 4px; }
.st-wrap textarea { max-width: 100%; }
.st-wrap code { word-break: break-word; }
.st-wrap .secret { overflow-wrap: anywhere; }
.st-health { padding: 0; margin: 0; }
.st-health li { flex-wrap: wrap; }

/* team */
.st-people { gap: 12px; }
.st-person { list-style: none; border: 1px solid var(--line); border-radius: var(--r); padding: 12px; display: grid; gap: 10px; min-width: 0; background: var(--paper); }
.st-person.off { opacity: .75; }
.st-name { overflow: visible; display: block; -webkit-line-clamp: unset; overflow-wrap: anywhere; }
.st-name .pill { vertical-align: middle; }
.st-ctl { display: flex; flex-wrap: wrap; gap: 4px 18px; align-items: center; }
.st-inline { display: flex; align-items: center; gap: 8px; }
.st-inline select { width: auto; margin: 0; }
.st-acts { gap: 8px; }
.st-invite { border-top: 1px solid var(--line); padding-top: 14px; }
.st-invite h3 { margin: 0; font-size: 16px; }
.ag-h { margin: 8px 0 0; font-size: 16px; }
.ag-list { display: grid; }
.ag-key { display: grid; gap: 6px; padding: 12px 0; border-bottom: 1px solid var(--line); min-width: 0; }
.ag-top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ag-name { overflow-wrap: anywhere; }
.ag-meta { margin: 0; overflow-wrap: anywhere; }
.ag-acts { display: flex; flex-wrap: wrap; gap: 8px; }
.ag-new { margin-top: 8px; }
.ag-log { list-style: none; margin: 0; padding: 0; display: grid; max-height: 50vh; overflow: auto; }
.ag-log li { display: grid; gap: 2px; padding: 8px 0; border-top: 1px solid var(--line); }
.ag-log li:first-child { border-top: 0; }
.ag-log li.bad b { color: var(--bad); }
.st-key { display: flex; align-items: center; gap: 8px 12px; flex-wrap: wrap; padding: 6px 0; border-bottom: 1px solid var(--line); }

/* caption templates */
.st-tpl { border: 1px solid var(--line); border-radius: var(--r); padding: 0 14px; background: var(--paper); }
.st-tpl + .st-tpl { margin-top: 10px; }
.st-tpl > summary { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-height: var(--tap); cursor: pointer; padding: 6px 0; }
.st-tpl-b { padding-bottom: 14px; }

/* plan */
.st-plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 12px; }
.st-plan { border: 1px solid var(--line); border-radius: var(--r); padding: 14px; display: grid; gap: 6px; align-content: start; background: var(--paper); }
.st-plan.now { border-color: var(--blue); background: var(--blue-soft); }
.st-plan .btn { width: 100%; }

/* More (phone) */
.st-more { gap: 14px; }
.st-me { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 14px 16px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.st-av { width: 44px; height: 44px; font-size: 16px; }
.st-me-t { flex: 1 1 140px; min-width: 0; display: grid; }
.st-me-t b { font-size: 17px; font-weight: 800; overflow-wrap: anywhere; }
.st-me-t span { font-size: 13px; color: var(--ink-2); overflow-wrap: anywhere; }
.st-acct { display: inline-flex; align-items: center; min-height: var(--tap); font-weight: 700; font-size: 14px; }
.st-list { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; display: grid; }
.st-row { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 8px 16px; width: 100%; background: none; border: 0; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; text-align: left; cursor: pointer; font: inherit; }
.st-list > .st-row:last-child { border-bottom: 0; }
.st-row .ic { width: 18px; height: 18px; color: var(--ink-2); flex: none; }
.st-row-t { flex: 1; min-width: 0; display: grid; }
.st-row-t b { font-weight: 700; }
.st-row-s { font-size: 13px; color: var(--ink-2); }
.st-lang { cursor: default; }
.st-help p { margin: 4px 0 8px; }
.st-help > div { border-bottom: 1px solid var(--line); padding-bottom: 10px; }
.gd { display: grid; gap: 8px; margin: 8px 0; min-width: 0; }
.gd-app { border: 1px solid var(--line); border-radius: var(--r); padding: 4px 14px; min-width: 0; }
.gd-app > summary { cursor: pointer; font-weight: 600; min-height: var(--tap); display: flex; align-items: center; }
.gd-app[open] > summary { margin-bottom: 4px; }
.gd-steps { margin: 0 0 10px; padding-left: 22px; display: grid; gap: 8px; }
.gd-steps li { overflow-wrap: anywhere; }
.gd-url { overflow-wrap: anywhere; word-break: break-all; }
.gd-tip { border-left: 3px solid var(--line); padding: 2px 12px; }
.gd-tip p { margin: 4px 0; }

/* 2.3 What we sell */
.pf-row { border: 1px solid var(--line, #e3e6ea); border-radius: 12px; padding: 12px; margin: 0; display: grid; gap: 10px; min-width: 0; }
.pf-row .row { justify-content: space-between; }

/* 2.5 Brands */
.br-list { display: grid; gap: 12px; margin: 14px 0; }
.br-card { border: 1px solid var(--line); border-radius: var(--r-sm); padding: 12px; display: grid; gap: 10px; min-width: 0; }
.br-main { background: var(--paper); }
.br-h { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.br-ht { flex: 1; min-width: 160px; display: flex; flex-direction: column; }
.br-ht .hint { overflow-wrap: anywhere; }
.br-logo { width: 44px; height: 44px; border-radius: 10px; object-fit: contain; background: #fff; border: 1px solid var(--line); flex: none; }
.br-logo-none { display: inline-block; background: var(--paper); }
.br-accts { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.br-acct { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; }
.br-2 { display: grid; gap: 12px; }
.br-off { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; align-items: center; padding: 8px; border: 1px solid var(--line); border-radius: var(--r-sm); }
.br-off input { min-height: 44px; min-width: 0; }
.br-off .btn { justify-self: end; }
@media (min-width: 700px) {
  .br-2 { grid-template-columns: 1fr 1fr; }
  .br-off { grid-template-columns: 1.3fr 1fr 1fr .7fr auto; }
}
.br-sheet { max-width: 720px; }
/* 2.5 Channels: different business? */
.ch-other { margin: 8px 0 4px; }
.ch-other .row { margin-top: 8px; }
/* 2.5 All companies */
.co-wrap { max-width: 1100px; }
.co-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.co-top h1 { margin: 0 0 4px; }
.co-grid { display: grid; gap: 14px; }
@media (min-width: 900px) { .co-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.co-card { display: grid; gap: 12px; }
.co-cur { border-color: var(--blue); }
.co-h { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.co-h .cd-t { overflow-wrap: anywhere; }
.co-nums { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.co-n { border: 1px solid var(--line); border-radius: var(--r-sm); padding: 8px; display: flex; flex-direction: column; min-width: 0; }
.co-n b { font-size: 20px; }
.co-n span { font-size: 12.5px; color: var(--ink-2); }
.co-n.warn { border-color: var(--warn, #b7791f); }
.co-n.bad { border-color: var(--bad, #c53030); }
.co-vs { margin: 0; padding-left: 18px; display: grid; gap: 6px; }
.sb-cos { justify-content: flex-start; }
