/* Website design system layer for studio.colourpig.com (David, 2026-11-13).
   Matches colourpig.com (colour-pig.vercel.app): obsidian header bar, white light sections, #F6F6F6 tiles,
   sentence-case PP Agrandir headings (0.01em tracking; capitals reversed by David 2026-11-14), PP Neue Montreal body, Intel One Mono caps labels and
   buttons, pill buttons, 16px cards / 8px inputs, 1px ash lines. Each page keeps its own accent colours.
   Linked last in <head> so it overrides the page's own styles; remove the <link> to go back.
   Fonts are self-hosted (no font CDN: GDPR, Ireland later). */
@font-face { font-family: 'PP Agrandir'; src: url('/assets/fonts/PPAgrandir-Bold.ttf') format('truetype'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'PP Neue Montreal'; src: url('/assets/fonts/PPNeueMontreal-Regular.ttf') format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'PP Neue Montreal'; src: url('/assets/fonts/PPNeueMontreal-Medium.woff2') format('woff2'); font-weight: 500 700; font-display: swap; }
@font-face { font-family: 'Intel One Mono'; src: url('/assets/fonts/IntelOneMono-Medium.ttf') format('truetype'); font-weight: 400 700; font-display: swap; }

:root {
  --web-obsidian: #0D151C; --web-midnight: #13212E; --web-steel: #253744; --web-graphite: #495B69;
  --web-ash: #949FA3; --web-platinum: #CED1D0; --web-white: #FFFFFF; --web-tile: #F6F6F6;
  --web-line: rgba(148, 159, 163, 0.4);
  --web-head: 'PP Agrandir', Agrandir, 'Helvetica Neue', Arial, sans-serif;
  --web-body: 'PP Neue Montreal', -apple-system, system-ui, 'Helvetica Neue', Arial, sans-serif;
  --web-mono: 'Intel One Mono', ui-monospace, Menlo, monospace;
  --web-radius: 16px; --web-radius-sm: 8px;
  --web-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --web-shadow-lift: 0 18px 24px -14px rgba(0, 0, 0, 0.35);
  --web-track: 0.14em;
}

body { font-family: var(--web-body); }
h1, h2, h3 { font-family: var(--web-head); font-weight: 700; text-transform: none; letter-spacing: 0.01em; line-height: 1.2; }
button, input, select, textarea { font-family: inherit; }

/* ---------- home (/) and sign-in / manage (/agency/) ---------- */
body.web-simple { background: var(--web-white); color: var(--web-obsidian); font-size: 16px; }
body.web-simple > header { background: var(--web-obsidian); height: 64px; }
/* wordmark stays as before, with its accent dot (David, 2026-11-13) */
body.web-simple .logo { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; }
body.web-simple header a, body.web-simple #hdr { font-family: var(--web-mono); font-size: 12px; text-transform: uppercase; letter-spacing: var(--web-track); color: var(--web-platinum); }
body.web-simple .card { background: var(--web-tile); border-radius: var(--web-radius); }
body.web-simple h1 { font-size: 24px; }
body.web-simple p { font-size: 15px; color: var(--web-graphite); }
body.web-simple a.tile { background: var(--web-tile); border-radius: var(--web-radius); border-top-width: 4px; }
body.web-simple a.tile strong { font-family: var(--web-head); text-transform: none; letter-spacing: 0.01em; font-size: 16px; }
body.web-simple a.tile:hover { box-shadow: var(--web-shadow-lift); }
body.web-simple button { font-family: var(--web-mono); font-weight: 500; font-size: 13px; text-transform: uppercase; letter-spacing: var(--web-track);
  background: var(--web-obsidian); border-radius: 999px; padding: 14px 22px; }
body.web-simple input, body.web-simple select, body.web-simple textarea { border: 1px solid var(--web-line); border-radius: var(--web-radius-sm); }
body.web-simple .link { background: var(--web-tile); border-radius: var(--web-radius-sm); font-family: var(--web-mono); }
body.web-simple table td, body.web-simple table th { border-color: var(--web-line); }

/* ---------- review queue (/review/) ---------- */
body.web-review { --sans: var(--web-body); --mono: var(--web-mono); }
@media (prefers-color-scheme: light) {
  html:has(> body.web-review) { background: var(--web-white); }
  body.web-review { --bg: var(--web-white); --surface: var(--web-tile); --line: var(--web-line); --head: var(--web-obsidian); --ink: var(--web-obsidian); }
}
body.web-review header .brand { font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Arial, sans-serif; }
body.web-review .hbtn { font-family: var(--web-mono); font-weight: 500; font-size: 11px; text-transform: uppercase; letter-spacing: var(--web-track); }
body.web-review .btn { border-radius: 999px; font-family: var(--web-mono); font-weight: 500; font-size: 14px; text-transform: uppercase; letter-spacing: var(--web-track); }
body.web-review .kind, body.web-review .count { letter-spacing: var(--web-track); }
body.web-review h1, body.web-review h2, body.web-review h3 { font-family: var(--web-head); }

/* ---------- Personas (/agency/ signed in) ---------- */
body.web-personas { --paper: var(--web-white); --paper-2: var(--web-tile); --line: var(--web-line); --navy: var(--web-obsidian); --navy-2: var(--web-midnight); --navy-3: var(--web-steel); --ink: var(--web-obsidian); --grey: var(--web-graphite); --grey-2: var(--web-ash); }
body.web-personas, body.web-personas h1, body.web-personas h2, body.web-personas h3 { font-family: var(--web-body); }
body.web-personas h1, body.web-personas h2, body.web-personas h3 { font-family: var(--web-head); letter-spacing: 0.01em; }
body.web-personas h4, body.web-personas .studio-nav a, body.web-personas small.mono { font-family: var(--web-mono); letter-spacing: var(--web-track); }
body.web-personas header.brand .logo { font-family: -apple-system, BlinkMacSystemFont, "Inter", "Helvetica Neue", Arial, sans-serif; }
body.web-personas .studio-nav { background: var(--web-midnight); }
body.web-personas .studio-nav a { border-radius: 999px; text-transform: uppercase; font-weight: 500; }
body.web-personas .toolbar .btn, body.web-personas .toolbar button { font-family: var(--web-mono); font-weight: 500; text-transform: uppercase; letter-spacing: var(--web-track); border-radius: 999px; }
body.web-personas .tabs button { font-family: var(--web-body); }

/* Wordmark (David, 2026-11-13): snout-O COLOURPIG wordmark with the six accent dots on its left,
   in brand order yellow, pink, sky, orange, green, violet. Same as the review queue header. */
.web-brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; min-width: 0; }
.web-dots { display: inline-flex; gap: 4px; flex: none; }
.web-dots i { width: 7px; height: 7px; border-radius: 50%; display: block; }
body.web-simple .web-brand .wordmark { display: block; height: 15px; width: auto; }
body.web-personas header.brand .web-brand { gap: 14px; }
body.web-personas header.brand .web-dots i { width: 9px; height: 9px; }

/* Page name beside the wordmark (David, 2026-11-13): "someone else using this needs to know what page
   within the site they are on". Mono caps in platinum, a thin ash rule between it and the wordmark. */
.web-page { flex: none; margin: 0 auto 0 12px; padding-left: 12px; border-left: 1px solid rgba(206,209,208,.4);
  font-family: var(--web-mono); font-size: 11px; font-weight: 500; line-height: 15px; text-transform: uppercase;
  letter-spacing: var(--web-track); color: var(--web-platinum, #CED1D0); white-space: nowrap; }
body.web-review header .brand .web-page { margin-right: 0; }
body.web-personas header.brand .web-page { font-size: 12px; line-height: 18px; color: #fff; }
@media (max-width: 400px) {
  .web-page { margin-left: 8px; padding-left: 8px; font-size: 10px; letter-spacing: .08em; }
  .web-brand, body.web-review header .brand { gap: 7px; }
  .web-dots i, body.web-review header .dots i { width: 6px; height: 6px; }
  body.web-review header .dots { gap: 3px; }
}
@media (max-width: 520px) {
  /* Phones: wordmark, dots and page name keep the first row; Home / refresh / Sign out sit on a
     second row so nothing gets squeezed out (that squeeze is why the dots used to be hidden here). */
  body.web-review header .wrap { flex-wrap: wrap; row-gap: 8px; padding-block: 10px; }
  body.web-review header .brand { flex: 1 0 100%; }
  body.web-review header .wordmark { flex: none; max-width: none; }
  body.web-review header .wrap > div:last-child { margin-left: auto; }
  body.web-review header .wrap > div:last-child:not(:has(> :not([hidden]))) { display: none; }
}
/* Personas header on phones: wordmark + page name on one line, the workbench tagline below it. */
@media (max-width: 700px) {
  body.web-personas header.brand { flex-wrap: wrap; row-gap: 10px; padding: 18px 20px; }
  body.web-personas header.brand .web-brand { gap: 10px; }
  body.web-personas header.brand .web-dots i { width: 7px; height: 7px; }
  body.web-personas header.brand .logo-img { height: 15px; flex: none; }
  body.web-personas header.brand .web-page { margin-right: 0; font-size: 11px; line-height: 15px; }
  body.web-personas header.brand .tag { flex-basis: 100%; text-align: left; font-size: 12px; }
}
/* Review queue: the wordmark never shrinks to make room for the page name or the buttons. */
body.web-review header .wordmark { flex: none; max-width: none; }
body.web-review header .brand .web-page { margin-left: 4px; }
@media (min-width: 521px) { body.web-review header .wrap { max-width: 620px; } }

/* ---------- Personas page, full main-site look (David, 2026-11-13: "personas pages don't match the design system") ----------
   White page, #F6F6F6 tiles with no borders and 16px corners, obsidian hero card, mono caps labels and tabs,
   pill buttons, no heavy orange stripes. Accents kept: orange for small labels/dots, the five awareness colours
   as each column's top band and level label. */
body.web-personas { background: var(--web-white); font-size: 15px; line-height: 1.55; }
body.web-personas a { color: var(--web-obsidian); }
body.web-personas header.brand { background: var(--web-obsidian); border-bottom: 0; padding: 18px 28px; }
body.web-personas header.brand .tag { font-family: var(--web-mono); font-size: 11px; text-transform: uppercase; letter-spacing: var(--web-track); color: var(--web-ash); }
body.web-personas .studio-nav { background: var(--web-midnight); padding: 10px 28px; border-bottom: 0; }
body.web-personas .studio-nav a { font-size: 11px; padding: 7px 14px; color: var(--web-platinum); border-color: rgba(206,209,208,.35); }
body.web-personas .studio-nav a.current { background: rgba(255,255,255,.08); color: #fff; }
body.web-personas main { padding: 40px 28px 96px; }
body.web-personas h4 { font-size: 11px; font-weight: 500; color: var(--web-graphite); }

/* intro + its spine callout */
body.web-personas .intro { background: var(--web-tile); border: 0; border-radius: var(--web-radius); padding: 24px 28px; margin-bottom: 28px; }
body.web-personas .intro > p { font-size: 16px; }
body.web-personas .intro-spine { background: var(--web-white); border-radius: 12px; padding: 18px 20px; margin-top: 16px; }
body.web-personas .intro-spine strong[style*="--orange"] { display: block; font-family: var(--web-mono); font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: var(--web-track); line-height: 1.5; margin-bottom: 4px; }

/* toolbar buttons: obsidian pill, outline pill, ghost */
body.web-personas .toolbar { gap: 10px; margin-bottom: 28px; }
body.web-personas .toolbar .btn, body.web-personas .toolbar button { font-size: 12px; padding: 12px 20px; background: var(--web-obsidian); color: #fff; border: 1px solid var(--web-obsidian); }
body.web-personas .toolbar .btn.alt, body.web-personas .toolbar .btn.ghost { background: transparent; color: var(--web-obsidian); border: 1px solid var(--web-obsidian); }
body.web-personas .toolbar .btn:hover { filter: none; opacity: .85; }
body.web-personas .save-status { font-family: var(--web-mono); font-size: 11px; text-transform: uppercase; letter-spacing: var(--web-track); color: var(--web-ash); }

/* persona tabs: mono caps, obsidian underline */
body.web-personas .tabs { border-bottom: 1px solid var(--web-line); margin-bottom: 28px; }
body.web-personas .tabs .tab, body.web-personas .tabs button { font-family: var(--web-mono); font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: var(--web-track); color: var(--web-ash); padding: 14px 18px; border-bottom-width: 2px; margin-bottom: -1px; }
body.web-personas .tab.active { color: var(--web-obsidian); border-bottom-color: var(--web-obsidian); }
body.web-personas .tab small { font-family: var(--web-body); text-transform: none; letter-spacing: 0; font-size: 12px; color: var(--web-ash); margin-top: 2px; }

/* persona hero card */
body.web-personas .persona-card { background: var(--web-obsidian); border-radius: var(--web-radius); padding: 32px; gap: 32px; margin-bottom: 28px; }
body.web-personas .avatar { background: var(--web-steel); border: 2px solid var(--orange); font-family: var(--web-head); font-size: 56px; }
body.web-personas .persona-meta h2 { font-size: 30px; margin-bottom: 10px; }
body.web-personas .persona-meta .age { font-family: var(--web-mono); font-weight: 500; font-size: 12px; letter-spacing: var(--web-track); }
body.web-personas .persona-meta .summary { color: var(--web-platinum); font-size: 15px; }
body.web-personas .persona-meta .quote { border-left: 0; padding-left: 0; font-style: normal; font-size: 16px; color: #fff; }
body.web-personas .persona-card [style*="--navy-2"] { background: var(--web-midnight) !important; border-left: 0 !important; border-radius: 12px !important; }
body.web-personas .persona-card [style*="--navy-3"][style*="italic"] { background: var(--web-steel) !important; border-radius: 8px !important; font-style: normal !important; }

/* deep profile tiles */
body.web-personas .deep-grid { gap: 16px; margin-bottom: 40px; }
body.web-personas .deep-cell { background: var(--web-tile); border: 0; border-radius: var(--web-radius); padding: 20px; }
body.web-personas .deep-cell ul { font-size: 14px; }
body.web-personas .deep-cell .pill { background: var(--web-white); color: var(--web-obsidian); font-size: 12px; padding: 4px 10px; }

/* awareness ladder */
body.web-personas .ladder-intro { background: var(--web-tile); border: 0; border-radius: 12px; padding: 16px 20px; margin-bottom: 16px; font-size: 14px; color: var(--web-graphite); }
body.web-personas .awareness-grid { gap: 16px; }
body.web-personas .col { background: var(--web-tile); border: 0; border-top: 3px solid var(--aw-0); border-radius: var(--web-radius); overflow: hidden; }
body.web-personas .col-head { border-bottom: 1px solid var(--web-line); padding: 18px 16px 14px; }
body.web-personas .col-head .lvl { font-family: var(--web-mono); font-weight: 500; font-size: 10px; letter-spacing: var(--web-track); }
body.web-personas .col-head h3 { font-size: 15px; margin: 6px 0; }
body.web-personas .col-head p { font-size: 13px; color: var(--web-graphite); }
body.web-personas .col-body { padding: 12px; gap: 12px; }
body.web-personas .angle { background: var(--web-white); border: 0; border-radius: 12px; padding: 14px; font-size: 13px; box-shadow: var(--web-shadow-sm); }
body.web-personas .angle .head { font-family: var(--web-body); font-size: 15px; font-weight: 500; }
body.web-personas .angle .sub, body.web-personas .angle .field-label { font-family: var(--web-mono); font-weight: 500; letter-spacing: var(--web-track); color: var(--web-ash); }
body.web-personas .angle .field-value { font-size: 13px; }
body.web-personas .angle .actions button { background: var(--web-tile); border: 0; border-radius: 999px; padding: 3px 8px; }
body.web-personas .chip { font-family: var(--web-mono); font-weight: 500; border-radius: 999px; padding: 3px 8px; }
body.web-personas .chip.reason { background: var(--web-obsidian); }
body.web-personas .creator-fit { background: var(--web-white); border: 0; border-radius: 12px; padding: 12px 14px; color: var(--web-obsidian); }
body.web-personas .creator-fit .label { font-family: var(--web-mono); font-weight: 500; letter-spacing: var(--web-track); color: var(--web-graphite); }
body.web-personas .creator-fit .who { font-size: 13.5px; font-weight: 500; }
body.web-personas .creator-fit .how { color: var(--web-graphite); font-size: 13px; }
body.web-personas .lead-reason { border: 0; border-radius: 12px; background: var(--web-tile); color: var(--web-obsidian); }
body.web-personas .lead-reason .lr-label { font-family: var(--web-mono); font-weight: 500; color: var(--web-ash); }
body.web-personas .add-angle { border: 1px dashed var(--web-ash); border-radius: 999px; font-family: var(--web-mono); font-size: 11px; text-transform: uppercase; letter-spacing: var(--web-track); padding: 10px; color: var(--web-graphite); }
body.web-personas .add-angle:hover { background: var(--web-white); border-color: var(--web-obsidian); color: var(--web-obsidian); }

/* editable text highlight, notes */
body.web-personas [contenteditable="true"]:hover { background: var(--web-tile); outline: 1px dashed var(--web-ash); border-radius: 4px; }
body.web-personas [contenteditable="true"]:focus { background: var(--web-white); outline: 1px solid var(--web-obsidian); border-radius: 4px; }
body.web-personas .notes-block { background: var(--web-tile); border: 0; border-radius: var(--web-radius); padding: 24px 28px; margin-top: 40px; }
body.web-personas .notes-block textarea { background: var(--web-white); border: 1px solid var(--web-line); border-radius: var(--web-radius-sm); padding: 12px; font-size: 14px; }
@media (max-width: 700px) {
  body.web-personas main { padding: 24px 16px 72px; }
  body.web-personas .studio-nav { padding: 10px 20px; }
  body.web-personas header.brand { padding: 18px 20px; }
  body.web-personas header.brand .tag { font-size: 10px; }
  body.web-personas .persona-card { padding: 24px 20px; }
  body.web-personas .intro { padding: 20px; }
}
/* Persona hero: its "Core emotion" and "Lead buying reason" boxes sit dark-on-dark like the main site's obsidian sections. */
body.web-personas .persona-card .lead-reason { background: var(--web-midnight); color: var(--web-platinum); padding: 16px 18px; font-size: 14px; }
body.web-personas .persona-card .lead-reason .lr-why, body.web-personas .persona-card .lead-reason li, body.web-personas .persona-card .lead-reason div:not(.lr-label):not(.lr-lead) { color: var(--web-platinum); }
body.web-personas .persona-card .lead-reason .lr-label { color: var(--web-ash); font-size: 10px; letter-spacing: var(--web-track); margin-bottom: 4px; }
body.web-personas .persona-card .lead-reason .lr-lead { font-weight: 500; }
body.web-personas .intro-spine strong[style*="--orange"] + br { display: none; }
body.web-personas .intro-spine strong[style*="--orange"] { margin-top: 4px; }
@media (max-width: 700px) {
  /* phones: tabs scroll sideways, toolbar pills wrap two to a row, smaller avatar */
  body.web-personas .tabs { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  body.web-personas .tabs .tab, body.web-personas .tabs button { flex: none; text-align: left; padding: 12px 14px; }
  body.web-personas .toolbar .btn, body.web-personas .toolbar button { padding: 10px 14px; font-size: 11px; }
  body.web-personas .avatar { width: 96px; height: 96px; font-size: 34px; }
  body.web-personas .persona-card { gap: 20px; }
  body.web-personas .persona-meta h2 { font-size: 24px; }
}
/* ---------- Personas: bigger type + light hero card (David, 2026-11-13: "font is extremely small on laptop and mobile. I can still see navy and orange on the persona title cards") ----------
   Body text 16px minimum (main site), mono caps labels 12-13px. Hero card goes light (#F6F6F6 tile, obsidian text), no orange. */
body.web-personas { font-size: 17px; }
body.web-personas header.brand .tag, body.web-personas header.brand .web-page { font-size: 12px; }
body.web-personas .studio-nav a { font-size: 12px; }
body.web-personas h4, body.web-personas .deep-cell h4 { font-size: 13px; }
body.web-personas .intro > p { font-size: 17px; }
body.web-personas .intro-spine p, body.web-personas .intro-spine div, body.web-personas .intro-spine strong { font-size: 16px !important; }
body.web-personas .intro-spine strong[style*="--orange"] { font-size: 13px !important; }
body.web-personas .toolbar .btn, body.web-personas .toolbar button, body.web-personas .save-status { font-size: 13px; }
body.web-personas .tabs .tab, body.web-personas .tabs button { font-size: 13px; }
body.web-personas .tab small { font-size: 14px; }
body.web-personas .persona-meta .age { font-size: 13px; }
body.web-personas .persona-meta .summary, body.web-personas .persona-meta .quote { font-size: 17px; }
body.web-personas .deep-cell ul, body.web-personas .deep-cell li, body.web-personas .deep-cell li span { font-size: 16px; }
body.web-personas .deep-cell .pill, body.web-personas .deep-cell .pill span { font-size: 14px; }
body.web-personas .lead-reason, body.web-personas .lead-reason .lr-why, body.web-personas .lead-reason .lr-lead, body.web-personas .persona-card .lead-reason { font-size: 16px; }
body.web-personas .lead-reason .lr-label, body.web-personas .persona-card .lead-reason .lr-label { font-size: 12px !important; }
body.web-personas .ladder-intro, body.web-personas .ladder-intro strong { font-size: 16px; }
body.web-personas .col-head .lvl { font-size: 12px; }
body.web-personas .col-head h3 { font-size: 18px; }
body.web-personas .col-head p { font-size: 15px; }
body.web-personas .angle { font-size: 15px; }
body.web-personas .angle .head { font-size: 17px; }
body.web-personas .angle .field-value { font-size: 15px; }
body.web-personas .angle .sub, body.web-personas .angle .field-label { font-size: 12px; }
body.web-personas .chip { font-size: 12px; }
body.web-personas .creator-fit .label { font-size: 12px; }
body.web-personas .creator-fit .who { font-size: 16px; }
body.web-personas .creator-fit .how { font-size: 15px; }
body.web-personas .add-angle { font-size: 12px; }
body.web-personas .notes-block p, body.web-personas .notes-block textarea { font-size: 16px !important; }

/* hero card: light tile like the main site's product tiles; obsidian text; no navy, no orange */
body.web-personas .persona-card { background: var(--web-tile); color: var(--web-obsidian); }
body.web-personas .persona-meta h2 { color: var(--web-obsidian); }
body.web-personas .persona-meta .age { color: var(--web-graphite); }
body.web-personas .persona-meta .summary, body.web-personas .persona-meta .quote { color: var(--web-obsidian); }
body.web-personas .avatar { background: var(--web-obsidian); color: #fff; border: 0; }
body.web-personas .persona-card .lead-reason, body.web-personas .persona-card [style*="--navy-2"], body.web-personas .persona-card [style*="--navy-3"][style*="italic"] { background: var(--web-white) !important; color: var(--web-obsidian) !important; }
body.web-personas .persona-card .lead-reason .lr-why, body.web-personas .persona-card .lead-reason li, body.web-personas .persona-card .lead-reason div:not(.lr-label) { color: var(--web-obsidian); }
body.web-personas .persona-card .lead-reason .lr-label { color: var(--web-graphite); }
body.web-personas .persona-card .lead-reason .lr-why, body.web-personas .persona-card .lead-reason div:not(.lr-label):not(.lr-lead) { color: var(--web-graphite); }
body.web-personas .persona-card .lead-reason .lr-lead { color: var(--web-obsidian); font-weight: 700; }
body.web-personas .persona-card [style*="--orange"] { color: var(--web-obsidian) !important; border-color: var(--web-line) !important; }
@media (max-width: 700px) {
  body.web-personas .toolbar .btn, body.web-personas .toolbar button { font-size: 12px; }
  body.web-personas header.brand .tag { font-size: 11px; }
}
/* ---------- Personas: accent colour per persona + button grid (David, 2026-11-13: "give each of the persona title cards one of the accent colours... rotate through the accent colours in order"; "I would prefer the 7 persona to be buttons rather the scrolling") ----------
   --acc is set per persona in pages-src/personas.html (yellow, pink, sky, orange, green, violet, then yellow again). */
body.web-personas .persona-card { background: var(--acc, var(--web-tile)); }
body.web-personas .persona-meta .age { color: var(--web-obsidian); opacity: .75; }
body.web-personas .tabs { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; border-bottom: 0; overflow: visible; flex-wrap: wrap; }
body.web-personas .tabs .tab, body.web-personas .tabs button { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; text-align: left; margin: 0; padding: 14px 16px 14px 16px; border: 2px solid transparent; border-left: 8px solid var(--acc); border-radius: 12px; background: var(--web-tile); color: var(--web-obsidian); min-width: 0; }
body.web-personas .tabs .tab:hover { border-color: var(--acc); }
body.web-personas .tabs .tab.active { background: var(--acc); border-color: var(--acc); color: var(--web-obsidian); }
body.web-personas .tabs .tab small, body.web-personas .tabs .tab.active small { margin: 0; color: var(--web-graphite); white-space: normal; }
body.web-personas .tabs .tab.active small { color: var(--web-obsidian); }
@media (max-width: 700px) {
  body.web-personas .tabs { grid-template-columns: 1fr 1fr; flex-wrap: wrap; overflow: visible; }
  body.web-personas .tabs .tab, body.web-personas .tabs button { flex: initial; padding: 12px; font-size: 12px; }
  body.web-personas .tabs .tab small { font-size: 13px; }
}

/* Studio home header on phones (David, 2026-11-13: "welcome screen banner is cramped on the right"):
   wordmark + STUDIO on the first row, name and Sign out on a second row, right-aligned. */
@media (max-width: 520px) {
  body.web-simple > header { height: auto; flex-wrap: wrap; row-gap: 8px; padding: 12px 20px; }
  body.web-simple > header #hdr { flex-basis: 100%; text-align: right; }
  body.web-simple > header #hdr:empty { display: none; }
}
/* secondary buttons in tables (Manage access): light, readable on the tile */
body.web-simple button.alt { background: #fff; color: var(--web-obsidian); border: 1px solid #CED1D0; padding: 7px 12px; }
body.web-simple button.danger { background: #fff; color: #B42318; border: 1px solid #F1B5AE; padding: 7px 12px; }
