/* «Настройки» — the console mock's `settings` screen.

   Every number below is the mock's, copied rather than eyeballed — the mock
   writes its styles inline with exact pixels, and a port that guesses is a
   port that drifts (gear.css precedent). Two colours are literal because
   tokens.css carries no triplet for them: the privacy cyan (103,232,249) and
   the data red (255,138,148) are the mock's own section tints.

   Written narrow-first. The breakpoint is @container scene, never @media (see
   shell.css § WINDOW CLASSES): the mock collapses settings to one column on
   its medium device, so the 212px nav column appears at the `expanded` class
   (>= 905 scene px) and below that the section nav is a wrapping chip row —
   the mock's own phone reading. */

#view.sett-host,
#scene.shell-scene #view.sett-host {
  max-width: none;
  padding: 0;
  overflow-x: hidden;
}

.sett-view {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 12px 15px;
  min-width: 0;
}

/* ── Header card — mock: padding:14px 17px; radius 17; violet .24 border ── */

.sett-head {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  padding: 14px 17px;
  border-radius: 17px;
  border: 1px solid rgba(var(--t-violet), 0.24);
  background: linear-gradient(115deg, rgba(34, 22, 60, 0.8), rgba(18, 12, 34, 0.6));
}
.sett-head-mark {
  font-size: 23px;
  line-height: 1;
  flex: 0 0 auto;
}
.sett-head-copy {
  flex: 1;
  min-width: 180px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.sett-head-title {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 800;
}
.sett-head-lede {
  font-size: 11px;
  color: var(--text-soft);
  text-wrap: pretty;
}

/* ── The two columns ────────────────────────────────────────────────────── */

.sett-cols {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  min-width: 0;
}
.sett-side {
  display: flex;
  flex-direction: column;
  gap: 11px;
  min-width: 0;
}

/* ── Section nav — chips on a phone, the mock's 212px column when wide ─── */

.sett-nav {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 4px;
}
.sett-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 11px 12px;
  border-radius: 12px;
  border: 1px solid transparent;
  background: rgba(20, 13, 38, 0.4);
  text-align: left;
  transition: 0.16s;
}
.sett-nav-icon {
  font-size: 14px;
  line-height: 1;
  flex: 0 0 auto;
}
.sett-nav-label {
  flex: 1;
  min-width: 0;
  font-size: 11px;
  font-weight: 600;
  color: rgba(var(--t-mute), 0.66);
}
.sett-nav-item.is-on .sett-nav-label {
  font-weight: 800;
}
/* The active tint per section is the mock's `c` channel, value for value. */
.sett-nav-item.is-on[data-tone="violet"] {
  border-color: rgba(var(--t-violet), 0.4);
  background: rgba(var(--t-violet), 0.1);
}
.sett-nav-item.is-on[data-tone="violet"] .sett-nav-label { color: var(--violet); }
.sett-nav-item.is-on[data-tone="gold"] {
  border-color: rgba(var(--t-gold), 0.4);
  background: rgba(var(--t-gold), 0.1);
}
.sett-nav-item.is-on[data-tone="gold"] .sett-nav-label { color: var(--gold); }
.sett-nav-item.is-on[data-tone="cyan"] {
  border-color: rgba(103, 232, 249, 0.4);
  background: rgba(103, 232, 249, 0.1);
}
.sett-nav-item.is-on[data-tone="cyan"] .sett-nav-label { color: var(--cyan); }
.sett-nav-item.is-on[data-tone="mute"] {
  border-color: rgba(var(--t-mute), 0.4);
  background: rgba(var(--t-mute), 0.1);
}
.sett-nav-item.is-on[data-tone="mute"] .sett-nav-label { color: rgba(var(--t-mute), 1); }
.sett-nav-item.is-on[data-tone="danger"] {
  border-color: rgba(255, 138, 148, 0.4);
  background: rgba(255, 138, 148, 0.1);
}
.sett-nav-item.is-on[data-tone="danger"] .sett-nav-label { color: var(--danger-soft); }

/* ── Section body ───────────────────────────────────────────────────────── */

.sett-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}
.sett-sec-head {
  display: flex;
  align-items: center;
  gap: 10px;
}
.sett-sec-icon {
  font-size: 15px;
  line-height: 1;
}
.sett-sec-title {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 800;
}

/* mock note: dashed border in the section tint; only the mute (view) and
   danger (data) notes survive the honesty pass, so only two tints exist. */
.sett-note {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 11px 13px;
  border-radius: 12px;
  border: 1px dashed rgba(var(--t-mute), 0.34);
  background: rgba(var(--t-mute), 0.05);
  font-size: 10px;
  line-height: 1.5;
  color: rgba(var(--t-mute), 0.6);
  text-wrap: pretty;
}
.sett-note.is-danger {
  border-color: rgba(255, 138, 148, 0.34);
  background: rgba(255, 138, 148, 0.05);
}

/* ── Rows — mock: min-height 56, radius 13, green wash when on ──────────── */

.sett-row {
  text-align: left;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 13px;
  min-height: 56px;
  padding: 12px 14px;
  border-radius: 13px;
  border: 1px solid rgba(var(--t-violet), 0.14);
  background: rgba(20, 13, 38, 0.44);
  transition: 0.16s;
}
.sett-row.is-on {
  border-color: rgba(var(--t-violet), 0.28);
  background: rgba(var(--t-ok), 0.05);
}
.sett-row.is-busy {
  opacity: 0.6;
}
.sett-row-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.sett-row-name {
  font-size: 12px;
  font-weight: 700;
  color: rgba(var(--t-mute), 0.64);
}
.sett-row.is-on .sett-row-name,
.sett-row.is-pill .sett-row-name {
  color: rgba(var(--t-mute), 0.92);
}
.sett-row-hint {
  font-size: 10px;
  line-height: 1.45;
  color: rgba(var(--t-mute), 0.44);
  text-wrap: pretty;
}

/* The switch — mock swOn/swOff: 42x23, the dot slides by justify. */
.sett-sw {
  flex: 0 0 auto;
  width: 42px;
  height: 23px;
  border-radius: 12px;
  background: rgba(var(--t-violet), 0.1);
  border: 1px solid rgba(var(--t-violet), 0.2);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0 4px;
  font-size: 15px;
  line-height: 1;
  color: rgba(var(--t-mute), 0.32);
}
.sett-row.is-on .sett-sw {
  background: rgba(var(--t-ok), 0.26);
  border-color: rgba(var(--t-ok), 0.5);
  justify-content: flex-end;
  color: var(--ok);
}

.sett-pill {
  flex: 0 0 auto;
  white-space: nowrap;
  padding: 8px 13px;
  border-radius: 10px;
  border: 1px solid rgba(var(--t-gold), 0.34);
  background: rgba(var(--t-gold), 0.08);
  font-size: 11px;
  font-weight: 800;
  color: var(--gold);
}

/* ── Acts — the mock's data-section buttons ─────────────────────────────── */

.sett-act {
  text-align: left;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-height: 56px;
  padding: 13px 14px;
  border-radius: 13px;
  border: 1px solid rgba(var(--t-violet), 0.18);
  background: rgba(20, 13, 38, 0.44);
  transition: 0.16s;
}
.sett-act-name {
  font-size: 12px;
  font-weight: 800;
  color: rgba(var(--t-mute), 0.9);
}
.sett-act-sub {
  font-size: 10px;
  line-height: 1.5;
  color: rgba(var(--t-mute), 0.46);
  text-wrap: pretty;
}

/* ── «Чего здесь нет и не будет» ────────────────────────────────────────── */

.sett-cant {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 13px 14px;
  border-radius: 14px;
  border: 1px dashed rgba(var(--t-danger), 0.26);
  background: rgba(30, 14, 22, 0.4);
}
.sett-cant-title {
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 138, 148, 0.8);
}
.sett-cant-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.sett-cant-name {
  font-size: 10px;
  font-weight: 800;
  color: rgba(var(--t-mute), 0.72);
}
.sett-cant-why {
  font-size: 9px;
  line-height: 1.45;
  color: rgba(var(--t-mute), 0.42);
  text-wrap: pretty;
}

/* The push card wrapper: the card's own classes (card-title, push-row, tgl)
   are components.css's, shared with /dashboard; only the slot is this file's. */
.sett-push {
  min-width: 0;
}

/* ── expanded and up: the mock's 212px nav column ───────────────────────── */

@container scene (min-width: 905px) {
  .sett-view {
    gap: 13px;
    padding: 16px 18px;
  }
  .sett-head-title {
    font-size: 19px;
  }
  .sett-cols {
    grid-template-columns: 212px minmax(0, 1fr);
  }
  .sett-nav {
    flex-direction: column;
  }
}
