/* studio/settings.css: Settings under the new look ("studio"). Every rule starts with html[data-ui="studio"] and copies the Classic selector of
   public/css/settings.css verbatim, inside the same media or container block (SPEC 2026-11-03 section 3). Only what carries a literal or what a panel
   asks to change is restated: the rest of the Classic sheet is token-based and the studio tokens recolour it. Values: panel/01-ux-architect.md section 4
   (Settings), panel/02-visual-system.md section 4, Admin's rail (design.md). No transition or animation shorthand is written here (a studio rule at the
   same specificity in a later file would beat the keyboard flag in tokens.css); the Edit user and Invite user dialog keeps Classic's pop.
   A studio rule outside a block outranks a Classic rule inside one, so every Classic container or phone variant it touches is restated inside that block. */

/* ---- the list of settings pages: Admin's rail recipe. The title and the group labels are 13px bold secondary (the page title is the one 28px h1); a link is
   a bare word in the secondary ink, the current one the one-step-up fill in bold (the rail already carries the page's light fill: two light fills would be
   two primaries). Under the container threshold the links are the same words in a wrapped row, no longer pills (SPEC 4.1); Classic's own 44px phone height
   holds because no height is set outside its block. ---- */
html[data-ui="studio"] .set-nav-t{font-size:var(--type-xs);line-height:18px;font-weight:700;color:var(--text-secondary)}
html[data-ui="studio"] .set-link{padding:0 12px;border-color:transparent;border-radius:var(--radius-xs);color:var(--text-secondary);font-weight:400;touch-action:manipulation;-webkit-user-select:none;user-select:none}
html[data-ui="studio"] .set-link[aria-current=page]{background:var(--bg-panel-2);border-color:transparent;color:var(--text-primary);font-weight:700}
@media (hover:hover) and (pointer:fine){html[data-ui="studio"] .set-link:hover{background:var(--row-hover);color:var(--text-primary)}html[data-ui="studio"] .set-link[aria-current=page]:hover{background:var(--bg-panel-2)}}
@container set (min-width:1000px){
  html[data-ui="studio"] .set-nav-t{margin-bottom:4px;padding:0 8px}
  html[data-ui="studio"] .set-grp{gap:2px;margin-top:16px}
  html[data-ui="studio"] .set-grp-t{padding:0 8px 4px;line-height:18px}
  html[data-ui="studio"] .set-link{min-height:var(--control-s);padding:0 8px;border:0;border-radius:var(--radius-xs);font-size:var(--type-m);font-weight:400}
  html[data-ui="studio"] .set-link[aria-current=page]{font-weight:700}
}

/* ---- the Edit user and Invite user dialog (its own class, not form.js's .dlg): the panel grey with the rule as its edge, no shadow (a shadow does not
   survive the dark), the 60 percent backdrop. Its size and its pop stay Classic's (settings.browser.test.mjs asserts the pop in both looks). ---- */
html[data-ui="studio"] .set-dialog{border-color:var(--divider);box-shadow:none}
html[data-ui="studio"] .set-dialog::backdrop{background:rgba(0,0,0,.6)}
html[data-ui="studio"] .set-dialog h2{line-height:28px}

/* ---- the Users tables sit straight on the page (primitives: a panel whose child is a table is a list, no card; review R), so the row's quiet buttons (Edit,
   Delete, Revoke) end at the page's edge with no hang (Classic's negative margin pulled them into the card's padding, which is gone); the Status head and
   cells keep their left alignment with the 8px head padding of the studio table. ---- */
html[data-ui="studio"] .table.team td.act .row-actions{margin-right:0}
@media (max-width:959px){
  html[data-ui="studio"] .table.team td.act .row-actions{margin:0}
}
@media (min-width:960px){
  html[data-ui="studio"] .table.team th.state{padding:0 12px 8px 0}
  html[data-ui="studio"] .table.team td.state{padding:0 12px 0 0}
}

/* ---- Accent Color: the colour box is a field (the well, the rule as its edge, 8px corners) ---- */
html[data-ui="studio"] .set-accent-row input[type=color]{border-color:var(--divider);border-radius:var(--radius-xs);background:var(--bg-inset)}

/* ---- Message templates: the preview of the mail stays light (Classic's own white and ink), with a light grey rule and the mail's face (tokens.css
   re-pins .mail to DM Sans; this preview is the same mail). The rule is a grey, never the paper's blue-grey (the studio sheets are neutral by test). ---- */
html[data-ui="studio"] .tpl-mail{--divider:#e0e0e0;font-family:'DM Sans','Lato',system-ui,-apple-system,'Segoe UI',sans-serif}
