/* Settings area: users and roles, connections and import, security and backups. Prefix .st- */

.st-hi { display: inline-block; width: 16px; height: 16px; vertical-align: -3px; margin-right: 4px; color: var(--accent-ink); }
.st-tip { display: flex; gap: 8px; align-items: flex-start; font-size: var(--fs-sm); color: var(--ink-2); }
.st-tip > svg { width: 16px; height: 16px; flex: none; margin-top: 2px; color: var(--accent-ink); }
.st-warn { border-color: color-mix(in srgb, var(--warn) 60%, var(--line)); }
.st-warn .st-hi { color: var(--warn-ink); }
.st-from { text-decoration: line-through; color: var(--muted); }
.st-arr { display: inline-block; width: 14px; height: 14px; vertical-align: -2px; color: var(--muted); }

/* Roles grid: one button per area and role, cycling through the levels */
.st-grid td, .st-grid th { text-align: left; }
.st-grid td:first-child svg { width: 16px; height: 16px; color: var(--accent-ink); }
.st-lvl { display: inline-flex; align-items: center; gap: 6px; min-width: 120px; height: 30px; padding: 0 10px; border: 1px solid transparent; border-radius: var(--r-control);
  font-size: var(--fs-xs); font-weight: 600; transition: background .15s, transform .1s var(--ease); }
.st-lvl svg { width: 14px; height: 14px; }
button.st-lvl:not([disabled]):hover { transform: translateY(-1px); border-color: currentColor; }
button.st-lvl[disabled] { cursor: default; }
.st-lvl--none { background: var(--surface-3); color: var(--muted); }
.st-lvl--view { background: var(--warn-soft); color: var(--warn-ink); }
.st-lvl--own { background: var(--accent-soft); color: var(--accent-ink); }
.st-lvl--all { background: var(--good-soft); color: var(--good-ink); }
.st-rolecard { gap: 8px; }
.st-rolecard small { font-size: var(--fs-xs); }
.st-areas { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 6px; }
.st-area { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: var(--r-control); font-size: var(--fs-sm); font-weight: 600; }
.st-area svg { width: 15px; height: 15px; flex: none; }
.st-area small { margin-left: auto; font-size: 11px; font-weight: 600; opacity: .85; }

/* Connected accounts */
.st-groups { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.st-group .card__head p { min-height: 2.6em; }
.st-acct { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: var(--r-control); background: var(--surface-2); border: 1px solid var(--line); }
.st-acct.on { background: var(--good-soft); border-color: color-mix(in srgb, var(--good) 35%, transparent); }
.st-acct.on small { color: var(--good-ink); font-weight: 600; }
.st-steps { display: grid; gap: 14px; }
.st-cstep { display: flex; gap: 12px; align-items: flex-start; }
.st-cstep b { color: var(--ink); }
.st-cstep p { font-size: var(--fs-sm); margin: 2px 0 8px; }
.st-cstep .au-logo { width: 20px; height: 20px; background: transparent; }

/* Import: stepper, kinds, file, column matching, checks */
.st-stepper { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.st-stepper button { width: 100%; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: var(--r-control);
  background: var(--surface); color: var(--muted); font-size: var(--fs-sm); font-weight: 600; text-align: left; }
.st-stepper button > span { width: 26px; height: 26px; flex: none; display: grid; place-items: center; border-radius: var(--r-dot); background: var(--surface-3); color: var(--ink-2); font: 700 12px var(--font-head); }
.st-stepper button > span svg { width: 14px; height: 14px; }
.st-stepper li.on button { border-color: var(--accent); color: var(--accent-ink); background: var(--accent-soft); }
.st-stepper li.on button > span { background: var(--accent); color: var(--on-accent); }
.st-stepper li.done button { color: var(--good-ink); }
.st-stepper li.done button > span { background: var(--good-soft); color: var(--good-ink); }
.st-stepper button[disabled] { cursor: default; opacity: .7; }
.st-kinds { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.st-kind { display: grid; place-items: center; gap: 10px; padding: 26px 12px; border: 1.5px solid var(--line); border-radius: var(--r-surface); background: var(--surface-2); color: var(--accent-ink); transition: border-color .15s, background .15s, transform .15s var(--ease); }
.st-kind svg { width: 30px; height: 30px; }
.st-kind b { color: var(--ink); font-size: var(--fs-md); }
.st-kind:hover { transform: translateY(-2px); border-color: var(--accent); }
.st-kind[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.st-kind[aria-pressed="true"] b { color: var(--on-accent); }
.st-drop { display: grid; place-items: center; gap: 10px; width: 100%; padding: 60px 20px; border: 2px dashed color-mix(in srgb, var(--accent) 45%, var(--line)); border-radius: var(--r-surface); background: var(--accent-soft); color: var(--accent-ink); }
.st-drop svg { width: 36px; height: 36px; }
.st-drop b { color: var(--ink); font-size: var(--fs-lg); }
.st-drop small { color: var(--muted); }
.st-drop:hover { background: color-mix(in srgb, var(--accent-soft) 70%, var(--accent) 12%); }
.st-file { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--r-control); background: var(--good-soft); }
.st-file > svg { width: 26px; height: 26px; color: var(--good-ink); flex: none; }
.st-preview { max-height: calc(100vh - 470px); border: 1px solid var(--line); border-radius: var(--r-control); }
.st-preview td, .st-preview th { white-space: nowrap; }
.st-map td { vertical-align: middle; }
.st-map td > svg { width: 16px; height: 16px; color: var(--muted); }
.st-map .search { min-width: 200px; }
.input--sm { min-height: 34px; height: 34px; font-size: var(--fs-sm); }
.st-conf { display: flex; align-items: center; gap: 8px; min-width: 110px; }
.st-conf .meter { flex: 1; }
.st-conf small { font-size: var(--fs-xs); color: var(--muted); width: 32px; text-align: right; }
.st-issue { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.st-issue .row__main { flex: 1 1 260px; }
.st-progress { display: grid; gap: 6px; }
.st-progress .meter > i { transition: width .12s linear; }

/* Security */
.st-gval { position: absolute; left: 0; right: 0; bottom: 6px; text-align: center; font: 700 var(--fs-xl) var(--font-head); color: var(--ink); }
.st-cal { display: grid; grid-template-columns: repeat(15, minmax(0, 1fr)); gap: 5px; }
.st-day { aspect-ratio: 1; border-radius: var(--r-small); background: color-mix(in srgb, var(--c3) 75%, var(--surface)); display: grid; place-items: center; cursor: default; transition: transform .12s var(--ease); }
.st-day:hover { transform: scale(1.12); }
.st-day small { font-size: 10px; font-weight: 700; color: #fff; }
.st-day.warn { background: var(--c4); }

@media (max-width: 1180px) { .st-groups { grid-template-columns: repeat(2, minmax(0, 1fr)); } .st-kinds { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .st-groups { grid-template-columns: minmax(0, 1fr); }
  .st-stepper { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .st-kinds { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .st-cal { grid-template-columns: repeat(10, minmax(0, 1fr)); }
  .st-lvl { min-width: 0; }
}
.st-why { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); }
.st-whycard { gap: 6px; }
.st-whycard > svg { width: 24px; height: 24px; color: var(--accent-ink); }
.st-whycard b { color: var(--ink); font-family: var(--font-head); }
.st-whycard small { color: var(--ink-2); font-size: var(--fs-sm); line-height: 1.5; }
.statgrid.st-stat3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) { .st-why { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .st-why { grid-template-columns: minmax(0, 1fr); } }
.st-grid td:first-child .inline { flex-wrap: nowrap; white-space: nowrap; }
.st-progress[hidden] { display: none; }
.st-cstep[hidden], .st-tip[hidden] { display: none; }
