/* Agent Hub — "the card you read before hiring".
 * One typeface (Schibsted Grotesk, self-hosted), quiet surfaces, hairlines instead of boxes in boxes.
 * One loud thing only: the yellow highlighter, kept for what leaves the company and waits for a person. */

@font-face { font-family: "Schibsted Grotesk"; font-style: normal; font-display: swap; font-weight: 400 900;
  src: url("/fonts/schibsted-grotesk-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Schibsted Grotesk"; font-style: normal; font-display: swap; font-weight: 400 900;
  src: url("/fonts/schibsted-grotesk-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --page: #f2f3ef;          /* stone paper */
  --surface: #ffffff;
  --sunk: #ebece7;          /* wells: code, inputs at rest, hovered rows */
  --ink: #12151a;
  --body: #3a404a;
  --muted: #6b717b;
  --line: #dfe1db;
  --line-strong: #c6c9c1;
  --marker: #ffd23f;        /* the highlighter */
  --marker-soft: #fff2bd;
  --marker-ink: #12151a;
  --link: #1f4fd1;
  --good: #14744a;  --good-bg: #ddf1e5;
  --bad: #b42318;   --bad-bg: #fbe3e0;
  --focus: #1f4fd1;
  --shadow: 0 1px 0 rgba(18, 21, 26, .04), 0 18px 40px -22px rgba(18, 21, 26, .28);
  --sans: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --r-sheet: 16px; --r-ctl: 9px;
  --wrap: min(1200px, calc(100% - 40px));
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --page: #101215; --surface: #171a1e; --sunk: #1e2227; --ink: #f1f2ee; --body: #c8cbd0; --muted: #8e949d; --line: #272b31; --line-strong: #363b43;
    --marker: #ffd23f; --marker-soft: #3a3214; --link: #8fb0ff; --good: #6fd6a2; --good-bg: #12301f; --bad: #ff9b90; --bad-bg: #3a1714; --focus: #8fb0ff;
    --shadow: 0 1px 0 rgba(0, 0, 0, .3), 0 24px 50px -24px rgba(0, 0, 0, .7);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --page: #101215; --surface: #171a1e; --sunk: #1e2227; --ink: #f1f2ee; --body: #c8cbd0; --muted: #8e949d; --line: #272b31; --line-strong: #363b43;
  --marker: #ffd23f; --marker-soft: #3a3214; --link: #8fb0ff; --good: #6fd6a2; --good-bg: #12301f; --bad: #ff9b90; --bad-bg: #3a1714; --focus: #8fb0ff;
  --shadow: 0 1px 0 rgba(0, 0, 0, .3), 0 24px 50px -24px rgba(0, 0, 0, .7);
  color-scheme: dark;
}

/* ------------------------------------------------------------------ base */
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
body { margin: 0; background: var(--page); color: var(--body); font: 400 15.5px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }
a { color: var(--link); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
::selection { background: var(--marker); color: var(--marker-ink); }
h1, h2, h3, h4 { margin: 0; color: var(--ink); line-height: 1.12; font-weight: 750; letter-spacing: -.022em; }
h1 { font-size: clamp(2rem, 4.2vw, 3rem); font-weight: 800; letter-spacing: -.035em; }
h2 { font-size: 1.22rem; margin-bottom: 14px; }
h3 { font-size: 1.02rem; }
h4 { font-size: .9rem; margin-bottom: 6px; }
p { margin: 0 0 10px; } p:last-child { margin-bottom: 0; }
code, pre { font-family: var(--mono); }
.muted { color: var(--muted); } .small { font-size: .86rem; }
.err { color: var(--bad); } .warn-text { color: var(--ink); background: var(--marker-soft); padding: 0 4px; border-radius: 4px; }
.lede { font-size: 1.08rem; color: var(--muted); max-width: 62ch; margin: 12px 0 0; line-height: 1.55; }
.skip { position: fixed; top: -80px; left: 16px; background: var(--surface); color: var(--ink); padding: 10px 14px; border-radius: 8px; z-index: 60; border: 1px solid var(--line); }
.skip:focus { top: 10px; }
main { width: var(--wrap); margin: 0 auto; padding: 36px 0 96px; outline: none; }

/* ---------------------------------------------------------------- header */
/* Always in sight: the brand, the three places people come for, the search; on the right the bell and the ☰ menu
 * that holds everything about the account, the less used pages and the language. */
.top { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--page) 88%, transparent); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--line); }
.top-inner { position: relative; width: var(--wrap); margin: 0 auto; min-height: 64px; display: flex; gap: 10px 20px; align-items: center; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-size: 1.12rem; font-weight: 800; letter-spacing: -.035em; text-decoration: none; white-space: nowrap; }
.mark { position: relative; width: 26px; height: 30px; border-radius: 5px; background: var(--surface); border: 1.5px solid var(--ink); flex: none; }
.mark::before, .mark::after { content: ""; position: absolute; left: 4px; right: 4px; height: 3px; border-radius: 2px; background: var(--ink); opacity: .85; }
.mark::before { top: 6px; right: 8px; }
.mark::after { top: 15px; height: 6px; left: 2px; right: 2px; background: var(--marker); opacity: 1; box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .08); }
.main-links { display: flex; gap: 2px; }
.main-links a, .top-login { position: relative; color: var(--body); text-decoration: none; font-size: .93rem; font-weight: 600; padding: 7px 11px; border-radius: 8px; white-space: nowrap; }
.main-links a:hover, .top-login:hover { color: var(--ink); background: var(--sunk); }
.main-links a[aria-current="page"] { color: var(--ink); }
.main-links a[aria-current="page"]::after { content: ""; position: absolute; left: 11px; right: 11px; bottom: -14px; height: 3px; border-radius: 3px 3px 0 0; background: var(--ink); }
.top-search { flex: 1 1 200px; max-width: 420px; margin-left: auto; }
.top-search input { background: var(--surface); border-color: var(--line); min-height: 38px; padding: 7px 14px 7px 36px; border-radius: 999px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b717b' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='6.5'/%3E%3Cpath d='m20 20-4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: 12px 50%; background-size: 16px; }
.top-actions { display: flex; align-items: center; gap: 6px; }
.top-actions .pill-dark { background: var(--ink); color: var(--page); text-decoration: none; font-size: .9rem; font-weight: 650; padding: 7px 14px; border-radius: 999px; white-space: nowrap; }
.top-actions .pill-dark:hover { opacity: .88; }
.bell { position: relative; display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: var(--body); }
.bell:hover { background: var(--sunk); color: var(--ink); }
.bell .badge { position: absolute; top: 2px; right: 0; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--bad); color: #fff; font-size: .68rem; font-weight: 800; display: grid; place-items: center; box-shadow: 0 0 0 2px var(--page); }
.menu-button { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 6px 0 12px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); cursor: pointer; }
.menu-button:hover, .menu-button[aria-expanded="true"] { border-color: var(--ink); }
.menu-button .bars { position: relative; width: 16px; height: 2px; background: currentColor; border-radius: 2px; margin-right: 6px; }
.menu-button .bars::before, .menu-button .bars::after { content: ""; position: absolute; left: 0; width: 16px; height: 2px; background: currentColor; border-radius: 2px; }
.menu-button .bars::before { top: -5px; } .menu-button .bars::after { top: 5px; }
.menu-button:not(:has(.menu-initials:not([hidden]))) { padding-right: 12px; }
.menu-button:not(:has(.menu-initials:not([hidden]))) .bars { margin-right: 0; }
.menu-initials { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: var(--page); font-size: .66rem; font-weight: 800; }
.menu-initials.big { width: 40px; height: 40px; font-size: .85rem; }
/* the panel */
.menu-panel { display: none; position: absolute; right: 0; top: calc(100% + 8px); width: 290px; max-height: calc(100vh - 90px); overflow-y: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sheet); box-shadow: var(--shadow); padding: 8px; z-index: 40; }
.menu-panel.open { display: grid; gap: 4px; }
.menu-panel > div { display: grid; gap: 1px; }
.menu-panel > div + div:not([hidden]) { border-top: 1px solid var(--line); padding-top: 6px; margin-top: 2px; }
.menu-panel a, .menu-panel .link { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 9px 12px; border-radius: 9px; color: var(--body); text-decoration: none; font-weight: 600; font-size: .93rem; background: none; border: 0; cursor: pointer; text-align: left; width: 100%; font-family: inherit; }
.menu-panel a:hover, .menu-panel .link:hover { background: var(--sunk); color: var(--ink); }
.menu-panel a[aria-current="page"] { color: var(--ink); background: var(--marker-soft); }
.menu-account { display: flex !important; align-items: center; gap: 12px; padding: 8px 10px 10px; }
.menu-account[hidden] { display: none !important; }
.menu-account-text { display: grid; line-height: 1.3; min-width: 0; }
.menu-account-text strong { color: var(--ink); overflow: hidden; text-overflow: ellipsis; }
.menu-count { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--bad); color: #fff; font-size: .72rem; font-weight: 800; display: inline-grid; place-items: center; }
.menu-main { display: none !important; }
.menu-lang { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 12px; color: var(--body); font-weight: 600; font-size: .93rem; }
.menu-lang .lang { width: auto; min-height: 34px; padding: 4px 30px 4px 10px; border-radius: 999px; font-size: .86rem; }
@media (max-width: 1060px) { .top-login { display: none; } }
@media (max-width: 900px) {
  .top-inner { flex-wrap: wrap; padding: 10px 0; }
  .main-links { display: none; }
  .menu-main { display: grid !important; }
  .top-actions { margin-left: auto; }
  .top-search { order: 5; flex-basis: 100%; max-width: none; margin-left: 0; }
  .menu-panel { width: min(340px, 100%); }
}
@media (max-width: 480px) { .top-actions .pill-dark { padding: 7px 12px; font-size: .84rem; } .menu-panel { left: 0; width: auto; } }

/* ---------------------------------------------------------------- footer */
.foot { margin-top: 24px; border-top: 1px solid var(--line); background: var(--surface); color: var(--body); font-size: .92rem; }
.foot-grid { width: var(--wrap); margin: 0 auto; padding: 48px 0 8px; display: grid; gap: 32px 40px; grid-template-columns: minmax(220px, 1.5fr) repeat(4, minmax(130px, 1fr)); align-items: start; }
.foot-brand .brand { font-size: 1.12rem; }
.foot-brand p { margin: 12px 0 0; max-width: 30ch; color: var(--muted); line-height: 1.5; }
.foot-col h2 { font-size: .86rem; font-weight: 700; color: var(--ink); margin: 0 0 12px; letter-spacing: 0; }
.foot-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.foot-col a { display: inline-block; padding: 4px 0; color: var(--body); text-decoration: none; }
.foot-col a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.foot-bar { width: var(--wrap); margin: 32px auto 0; padding: 18px 0 32px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; color: var(--muted); font-size: .84rem; }
@media (max-width: 960px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .foot-grid { grid-template-columns: 1fr; } .foot-bar { flex-direction: column; } }

/* terms and privacy */
.legal { max-width: 760px; }
.legal > .banner { margin: 0 0 28px; }
.legal section { padding: 20px 0; border-top: 1px solid var(--line); }
.legal section h2 { font-size: 1.1rem; margin-bottom: 8px; }
.legal section p { margin: 0; line-height: 1.7; }
.legal-switch { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); font-weight: 650; }

/* -------------------------------------------------------- fields, buttons */
input, select, textarea, button { font: inherit; color: inherit; }
input, select, textarea { background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--r-ctl); padding: 9px 12px; width: 100%; min-height: 42px; color: var(--ink); transition: border-color .15s, box-shadow .15s; }
select { appearance: none; -webkit-appearance: none; padding-right: 34px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b717b' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center; background-size: 16px; }
input::placeholder, textarea::placeholder { color: color-mix(in srgb, var(--muted) 80%, transparent); }
input:hover, select:hover, textarea:hover { border-color: color-mix(in srgb, var(--ink) 35%, var(--line-strong)); }
input:focus, select:focus, textarea:focus { border-color: var(--ink); outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--ink) 12%, transparent); }
textarea { min-height: 100px; resize: vertical; line-height: 1.55; }
textarea.tall { min-height: 220px; }
textarea.code { font: .84rem/1.6 var(--mono); min-height: 460px; tab-size: 2; background: var(--sunk); }
input[type="checkbox"], input[type="radio"] { width: 18px; height: 18px; min-height: 0; accent-color: var(--ink); flex: none; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 9px 20px; background: var(--ink); color: var(--page); border: 1px solid var(--ink); border-radius: 999px;
  font-size: .93rem; font-weight: 650; letter-spacing: -.005em; cursor: pointer; text-decoration: none; white-space: nowrap; transition: transform .12s, background .15s, opacity .15s; }
.btn:hover { opacity: .9; color: var(--page); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn.light { background: var(--surface); color: var(--ink); border-color: var(--line-strong); }
.btn.light:hover { border-color: var(--ink); opacity: 1; color: var(--ink); }
.btn.ghost { background: transparent; color: var(--body); border-color: transparent; padding-inline: 12px; }
.btn.ghost:hover { background: var(--sunk); color: var(--ink); opacity: 1; }
.btn.danger { background: var(--bad); border-color: var(--bad); color: #fff; }
.btn.block { width: 100%; }
.btn.small { min-height: 34px; padding: 5px 14px; font-size: .86rem; }
.btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; }
.row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.row.between { justify-content: space-between; margin-top: 10px; }
.row.wrap { flex-wrap: wrap; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 28px; }
.actions-row { margin-top: 16px; }
label.field, .field { display: grid; gap: 6px; min-width: 0; font-size: .9rem; }
.field-label { font-weight: 650; color: var(--ink); font-size: .9rem; }
.hint { display: block; color: var(--muted); font-size: .84rem; margin-top: 2px; line-height: 1.45; }
.req { font-weight: 500; color: var(--muted); font-size: .8rem; }
.two { display: grid; gap: 16px; align-items: start; }
@media (min-width: 640px) { .two { grid-template-columns: 1fr 1fr; } }
fieldset { border: 1px solid var(--line); border-radius: var(--r-sheet); padding: 16px 20px 20px; margin: 0; min-width: 0; background: var(--surface); }
legend { padding: 0 8px; font-weight: 700; color: var(--ink); }
label.check, .check-label { display: inline-flex; gap: 10px; align-items: center; font-weight: 500; padding: 3px 0; cursor: pointer; }
.file-label { display: flex; gap: 8px; align-items: center; }
.file-label input { width: auto; border: 0; padding: 0; min-height: 0; background: none; box-shadow: none; }
.errors { margin: 10px 0 0; padding-left: 18px; color: var(--bad); }
.status { min-height: 1.4em; margin: 8px 0 0; font-size: .9rem; font-weight: 550; } .status.err { color: var(--bad); } .status.ok { color: var(--good); }
.segmented { display: inline-flex; flex-wrap: wrap; gap: 2px; padding: 3px; background: var(--sunk); border-radius: 999px; margin-top: 6px; }
.segmented button { background: transparent; border: 0; padding: 6px 14px; font-size: .86rem; font-weight: 600; cursor: pointer; color: var(--body); border-radius: 999px; }
.segmented button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(0, 0, 0, .12); }

/* ------------------------------------------------------------------ tags */
.tag { display: inline-flex; align-items: center; gap: 5px; border-radius: 6px; padding: 2px 8px; font-size: .78rem; font-weight: 650; line-height: 1.5; background: var(--sunk); color: var(--body); white-space: nowrap; }
.tag.good { background: var(--good-bg); color: var(--good); }
.tag.bad { background: var(--bad-bg); color: var(--bad); }
/* the highlighter: whatever waits for a person */
.tag.warn { background: var(--marker); color: var(--marker-ink); border-radius: 3px; padding: 1px 7px; transform: rotate(-.6deg); box-shadow: 1px 1px 0 color-mix(in srgb, var(--marker) 60%, #b38a00); }
.tag.role { background: color-mix(in srgb, var(--hue, #6b717b) 14%, transparent); color: color-mix(in srgb, var(--hue, #6b717b) 72%, var(--ink)); }
.tag.external { background: color-mix(in srgb, #2b7bbf 14%, transparent); color: color-mix(in srgb, #1d5d93 80%, var(--ink)); }
.tag.small-tag { font-size: .7rem; padding: 0 6px; margin-left: 6px; }
.kicker { display: inline-flex; gap: 8px; align-items: center; margin: 0 0 18px; color: var(--muted); font-size: .9rem; font-weight: 600; }
.kicker::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--good); box-shadow: 0 0 0 4px color-mix(in srgb, var(--good) 18%, transparent); }
.role-comptable { --hue: #2457c5; } .role-commercial { --hue: #c4501b; } .role-admin { --hue: #6a46c2; } .role-support { --hue: #0f8174; }
.role-rh { --hue: #c0336f; } .role-dirigeant { --hue: #9a6b00; } .role-marketing { --hue: #4f8a12; } .role-juridique { --hue: #4b5563; } .role-autre { --hue: #6b717b; }

/* monogram: two letters on the role's colour, like a badge on a file */
.avatar { flex: none; display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 11px; font-weight: 750; font-size: .86rem; letter-spacing: -.01em;
  background: color-mix(in srgb, var(--hue, #6b717b) 15%, var(--surface)); color: color-mix(in srgb, var(--hue, #6b717b) 85%, var(--ink));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--hue, #6b717b) 22%, transparent); }

/* ---------------------------------------------------------------- sheets */
.panel { min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sheet); padding: 22px 24px; }
.panel h2 { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.panel h2 .tag { margin-left: auto; }
.panel h3.mini, h3.mini { font-size: .9rem; font-weight: 700; color: var(--ink); margin: 20px 0 8px; }
.stack { display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr); min-width: 0; }
.side { display: grid; gap: 16px; }
.banner { border-radius: 12px; padding: 12px 16px; margin: 16px 0 0; background: var(--marker-soft); color: var(--ink); font-weight: 550; border: 1px solid color-mix(in srgb, var(--marker) 55%, transparent); }
.banner.bad { background: var(--bad-bg); color: var(--bad); border-color: transparent; } .banner.good { background: var(--good-bg); color: var(--good); border-color: transparent; }
.banner p { margin: 0 0 8px; }
.empty { padding: 48px 0; color: var(--muted); text-align: center; display: grid; gap: 14px; justify-items: center; }
.panel.empty { display: grid; justify-items: center; gap: 14px; text-align: center; padding: 40px 24px; }
.prose { max-width: 780px; display: grid; gap: 18px; }
.prose .panel p { margin: 0 0 10px; } .prose ul { margin: 6px 0 0; padding-left: 20px; } .prose li { margin: 3px 0; }
.narrow { max-width: 460px; margin: 32px auto 0; display: grid; gap: 16px; }
.narrow .panel { padding: 26px; }
form.stack { gap: 14px; }
details.more > summary { cursor: pointer; list-style: none; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; color: var(--ink); font-weight: 650; }
details.more > summary::-webkit-details-marker { display: none; }
details.more > summary::before { content: ""; width: 7px; height: 7px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(-45deg); transition: transform .18s; align-self: center; }
details.more[open] > summary::before { transform: rotate(45deg); }
details.panel.more[open] > summary { margin-bottom: 16px; }
table { width: 100%; border-collapse: collapse; font-size: .92rem; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 600; font-size: .84rem; }
dl.facts { display: grid; grid-template-columns: auto 1fr; gap: 8px 18px; margin: 4px 0 0; font-size: .92rem; }
dl.facts dt { color: var(--muted); } dl.facts dd { margin: 0; overflow-wrap: anywhere; color: var(--ink); font-weight: 650; }
.code-block { position: relative; margin: 10px 0 14px; }
.code-block pre, pre.code { margin: 0; padding: 16px 18px; border-radius: 12px; background: var(--sunk); overflow-x: auto; font: .82rem/1.6 var(--mono); color: var(--ink); white-space: pre; }
.code-block .btn { position: absolute; top: 8px; right: 8px; }
.inline-code, .tool-line code { padding: 2px 8px; border-radius: 6px; background: var(--sunk); font-size: .82rem; color: var(--ink); }
.copy-field { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 8px 0; }
.copy-field code { word-break: break-all; }
.tool-line { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; }

/* toast */
.toast { position: fixed; z-index: 80; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink); color: var(--page); padding: 12px 20px; border-radius: 999px; font-weight: 600; font-size: .92rem; box-shadow: var(--shadow); transition: opacity .35s, transform .35s; max-width: calc(100% - 32px); }
.toast.err { background: var(--bad); color: #fff; }
.toast.gone { opacity: 0; transform: translate(-50%, 10px); }

/* skeleton rows */
.skeleton { pointer-events: none; }
.sk { display: block; height: 12px; border-radius: 6px; background: linear-gradient(90deg, var(--sunk), var(--line), var(--sunk)); background-size: 200% 100%; animation: shimmer 1.3s linear infinite; }
.sk-title { width: 40%; height: 16px; } .sk-line { width: 80%; } .sk-meta { width: 30%; }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* ------------------------------------------------------------------ home */
.landing { display: grid; gap: 48px; align-items: center; padding: 28px 0 24px; }
@media (min-width: 980px) { .landing { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 64px; padding: 48px 0 40px; } }
.landing h1 { font-size: clamp(2.4rem, 5.6vw, 4.1rem); line-height: 1.02; letter-spacing: -.045em; max-width: 13ch; }
.landing .sub { font-size: 1.12rem; color: var(--body); margin: 22px 0 28px; max-width: 52ch; line-height: 1.55; }
.big-search { display: flex; gap: 6px; max-width: 560px; padding: 6px; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 999px; box-shadow: var(--shadow); }
.big-search:focus-within { border-color: var(--ink); }
.big-search input { min-height: 46px; font-size: 1.02rem; padding: 10px 18px; border: 0; background: transparent; box-shadow: none; }
.big-search .btn { min-height: 46px; padding: 8px 24px; }
.landing .note { margin: 16px 0 0; max-width: 56ch; }

/* the specimen: a real agent's card, read like a hiring file */
.specimen { position: relative; isolation: isolate; }
.specimen::before, .specimen::after { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: var(--r-sheet); background: var(--surface); border: 1px solid var(--line); }
.specimen::before { transform: rotate(3.2deg) translate(10px, 8px); opacity: .55; }
.specimen::after { transform: rotate(1.4deg) translate(4px, 4px); opacity: .85; }
.spec-card { display: block; background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--r-sheet); padding: 24px 26px 20px; box-shadow: var(--shadow); color: var(--body); text-decoration: none; transition: transform .25s; }
a.spec-card:hover { transform: translateY(-2px); text-decoration: none; }
.spec-head { display: flex; gap: 14px; align-items: center; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.spec-head .avatar { width: 48px; height: 48px; font-size: .95rem; }
.spec-name { display: block; color: var(--ink); font-weight: 750; font-size: 1.16rem; letter-spacing: -.02em; line-height: 1.2; }
.spec-by { display: block; color: var(--muted); font-size: .86rem; }
.spec-sum { margin: 14px 0 4px; color: var(--body); }
.spec-group { padding: 12px 0 2px; }
.spec-group + .spec-group { border-top: 1px dashed var(--line); }
.spec-label { display: block; font-size: .8rem; font-weight: 650; color: var(--muted); margin-bottom: 6px; }
.spec-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.spec-list li { font-size: .9rem; color: var(--ink); background: var(--sunk); border-radius: 6px; padding: 2px 9px; }
.spec-group.approval .spec-label { color: var(--ink); }
.spec-group.approval .spec-list li { background: var(--marker); color: var(--marker-ink); font-weight: 650; border-radius: 3px; transform: rotate(-.5deg); }
.spec-foot { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; justify-content: space-between; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); font-size: .86rem; }
.spec-foot .open { color: var(--ink); font-weight: 650; }

.section { margin: 72px 0 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.section-head h2 { margin: 0; font-size: 1.5rem; letter-spacing: -.03em; }
.section-head a { font-size: .92rem; font-weight: 650; text-decoration: none; color: var(--ink); }
.section-head a:hover { text-decoration: underline; }
/* roles: an index, not a wall of tiles */
.role-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); border-top: 1px solid var(--line); }
.role-grid li { border-bottom: 1px solid var(--line); }
.role-card { display: flex; align-items: center; gap: 12px; width: 100%; padding: 14px 6px; background: none; border: 0; color: var(--ink); text-align: left; cursor: pointer; font-size: 1rem; }
.role-card .avatar { width: 34px; height: 34px; font-size: .74rem; border-radius: 9px; }
.role-card .name { font-weight: 650; }
.role-card .count { margin-left: auto; color: var(--muted); font-size: .88rem; font-variant-numeric: tabular-nums; padding-right: 10px; }
.role-card:hover .name { text-decoration: underline; text-underline-offset: 4px; }
.role-card:hover .count { color: var(--ink); }
.two-col { display: grid; gap: 32px; }
.two-col > * { min-width: 0; }
@media (min-width: 900px) { .two-col { grid-template-columns: 1fr 1fr; } }
.compact { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: var(--r-sheet); overflow: hidden; background: var(--surface); }
.compact li + li { border-top: 1px solid var(--line); }
.compact a { display: flex; gap: 14px; align-items: center; padding: 13px 16px; text-decoration: none; color: var(--body); transition: background .15s; }
.compact a:hover { background: color-mix(in srgb, var(--sunk) 55%, var(--surface)); }
.compact .avatar { width: 36px; height: 36px; font-size: .76rem; border-radius: 9px; }
.compact .c-main { min-width: 0; flex: 1; }
.compact .c-title { display: block; color: var(--ink); font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.compact .c-title .owner, .item .title .owner, .title-row .owner { font-weight: 500; color: var(--muted); }
.compact .c-sum { display: block; color: var(--muted); font-size: .86rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.compact .c-meta { flex: none; color: var(--muted); font-size: .82rem; text-align: right; font-variant-numeric: tabular-nums; }
.compact li.security { background: var(--bad-bg); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--ink); counter-reset: step; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); } .steps li + li { border-left: 1px solid var(--line); } }
.steps li { padding: 20px 24px 8px 0; display: grid; gap: 6px; align-content: start; }
@media (min-width: 760px) { .steps li + li { padding-left: 24px; } }
@media (max-width: 759px) { .steps li + li { border-top: 1px solid var(--line); } }
.step-n { display: block; font-size: 2.4rem; font-weight: 800; letter-spacing: -.05em; line-height: 1; color: var(--ink); margin-bottom: 8px; font-variant-numeric: tabular-nums; }
.steps h3 { font-size: 1.1rem; }
.steps p { margin: 0; color: var(--muted); font-size: .95rem; }
.invite { display: flex; flex-wrap: wrap; gap: 18px 32px; align-items: center; justify-content: space-between; padding: 30px 32px; border-radius: 20px; background: var(--ink); color: color-mix(in srgb, var(--page) 78%, transparent); }
.invite h2 { margin: 0 0 6px; color: var(--page); font-size: 1.5rem; letter-spacing: -.03em; }
.invite p { margin: 0; max-width: 60ch; color: inherit; }
.invite .muted { color: inherit; }
.invite .btn { background: var(--marker); color: var(--marker-ink); border-color: var(--marker); }

/* --------------------------------------------------------------- explore */
.page-head { margin-bottom: 26px; }
.page-head h1 { font-size: clamp(2rem, 4vw, 2.7rem); }
.explore { display: grid; gap: 22px; }
/* filters: no frame, the roles on one line (it scrolls sideways when the screen is narrow), the rest on the next */
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px 28px; align-items: center; }
.filter-group { display: flex; gap: 10px; align-items: center; min-width: 0; }
.filter-group.filter-role { flex-basis: 100%; }
.filter-role .filter-list { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding: 2px 24px 2px 2px; -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); }
.filter-role .filter-list::-webkit-scrollbar { display: none; }
.filter-title { font-size: .84rem; color: var(--muted); font-weight: 650; flex: none; }
.filter-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.filter-role .chip { padding: 3px 10px; font-size: .84rem; }
.chip { display: inline-flex; gap: 7px; align-items: center; border: 1px solid var(--line-strong); background: var(--surface); color: var(--body); border-radius: 999px; padding: 4px 12px; font-size: .86rem; font-weight: 600; cursor: pointer; text-align: left; transition: border-color .15s; white-space: nowrap; }
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--page); border-color: var(--ink); }
.chip .n { color: var(--muted); font-size: .78rem; font-variant-numeric: tabular-nums; } .chip[aria-pressed="true"] .n { color: inherit; opacity: .7; }
.chip.on { background: var(--marker-soft); border-color: color-mix(in srgb, var(--marker) 70%, transparent); color: var(--ink); }
.active-filters { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.list-head { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; justify-content: space-between; margin-bottom: 16px; color: var(--muted); font-size: .92rem; }
.list-head .segmented { margin: 0; }
.list-head { padding-top: 16px; border-top: 1px solid var(--line); }
/* results: a grid of cards */
.agents { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); }
.item { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 20px 20px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sheet); transition: border-color .15s, box-shadow .2s, transform .2s; }
.item:hover { border-color: var(--line-strong); box-shadow: var(--shadow); transform: translateY(-2px); }
.item:focus-within { border-color: var(--ink); }
.item-head { display: flex; gap: 12px; align-items: center; }
.item-main { min-width: 0; display: grid; }
.item .title { font-size: 1.06rem; font-weight: 700; color: var(--ink); text-decoration: none; letter-spacing: -.015em; line-height: 1.25; overflow-wrap: anywhere; }
.item .title::after { content: ""; position: absolute; inset: 0; border-radius: var(--r-sheet); }
.item .title:focus-visible { outline: none; }
.item-role { color: var(--muted); font-size: .84rem; }
.item-by { display: inline-flex; align-items: center; gap: 7px; color: var(--body); font-weight: 600; position: relative; min-width: 0; }
.mini-avatar { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--ink); color: var(--page); font-size: .6rem; font-weight: 750; letter-spacing: 0; flex: none; }
.by-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.by-verified { display: inline-grid; place-items: center; width: 15px; height: 15px; border-radius: 50%; background: var(--good); color: #fff; font-size: .55rem; font-weight: 900; flex: none; }
.item-rating { color: #9a6c00; font-weight: 650; }
.item-rating.none { color: var(--muted); font-weight: 500; }
.meta-push { display: inline-flex; gap: 12px; align-items: center; font-variant-numeric: tabular-nums; }
.item-extra { gap: 6px; }
.item-sum { margin: 0; color: var(--body); font-size: .93rem; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.rights-strip { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }
.right { font-size: .78rem; font-weight: 600; color: var(--body); background: var(--sunk); border-radius: 6px; padding: 2px 8px; }
.right.approval { background: var(--marker); color: var(--marker-ink); border-radius: 3px; transform: rotate(-.5deg); }
.meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 10px; color: var(--muted); font-size: .82rem; padding-top: 12px; border-top: 1px solid var(--line); }
.stars { color: #b07c00; letter-spacing: 1px; }
.publish-side .agents { grid-template-columns: 1fr; }
.publish-side .item:hover { transform: none; box-shadow: none; }

/* ---------------------------------------------------------------- detail */
.crumbs { margin-bottom: 14px; } .crumbs .back { font-size: .9rem; color: var(--muted); text-decoration: none; font-weight: 600; } .crumbs .back:hover { color: var(--ink); }
.detail-head { display: grid; gap: 18px 32px; padding-bottom: 6px; }
@media (min-width: 960px) { .detail-head { grid-template-columns: minmax(0, 1fr) auto; align-items: end; } }
.title-row { display: flex; align-items: center; gap: 16px; margin: 0 0 6px; }
.title-row .avatar { width: 60px; height: 60px; font-size: 1.15rem; border-radius: 15px; }
.title-row h1 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); overflow-wrap: anywhere; }
.title-row .owner { display: block; font-size: .95rem; font-weight: 600; letter-spacing: 0; margin-bottom: 2px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; align-items: center; }
.detail-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
@media (min-width: 960px) { .detail-actions { justify-content: flex-end; max-width: 460px; } }
.tabs { display: flex; gap: 2px 26px; border-bottom: 1px solid var(--line); margin: 30px 0 28px; overflow-x: auto; scrollbar-width: none; }
.tabs button { position: relative; background: none; border: 0; padding: 12px 0; color: var(--muted); font-weight: 650; font-size: .95rem; cursor: pointer; white-space: nowrap; }
.tabs button:hover { color: var(--ink); }
.tabs button[aria-selected="true"] { color: var(--ink); }
.tabs button[aria-selected="true"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; border-radius: 3px 3px 0 0; background: var(--ink); }
.detail { display: grid; gap: 28px; }
@media (min-width: 960px) { .detail { grid-template-columns: minmax(0, 1fr) 320px; align-items: start; } .detail > .side { position: sticky; top: 88px; } }
.instructions { white-space: pre-wrap; overflow-wrap: anywhere; font-size: .95rem; line-height: 1.65; background: var(--sunk); border-radius: 12px; padding: 18px 20px; max-height: 380px; overflow: auto; color: var(--ink); }
ul.plain { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.rights li, .checks li { display: grid; grid-template-columns: 11rem 1fr; gap: 4px 18px; align-items: start; padding: 14px 0; }
.rights li + li, .checks li + li { border-top: 1px solid var(--line); }
.rights li:first-child, .checks li:first-child { padding-top: 4px; }
.rights li .tag, .checks li .tag { justify-self: start; white-space: nowrap; margin-top: 2px; }
.rights li > div > div { color: var(--ink); }
.rights li > div > .small { color: var(--muted); margin-bottom: 4px; }
.checks .what { font-weight: 650; color: var(--ink); grid-column: 2; }
.checks .detail-line { grid-column: 2; color: var(--muted); font-size: .9rem; }
.checks li .tag { grid-row: 1 / span 2; }
@media (max-width: 560px) { .rights li, .checks li { grid-template-columns: 1fr; } .checks .what, .checks .detail-line { grid-column: 1; } .checks li .tag { grid-row: auto; } }
.notchecked { margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--line-strong); color: var(--muted); font-size: .9rem; }
.notchecked li { margin-left: 18px; list-style: disc; }
.trust-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 10px; align-items: center; padding: 9px 0; }
.trust-list li + li { border-top: 1px solid var(--line); }
.trust-list .trust-label { color: var(--body); font-size: .92rem; }
.trust-list .tag { justify-self: end; }
.trust-list .hint { grid-column: 1 / -1; margin: 0; font-size: .8rem; }
.trust .digest code { font-size: .78rem; background: var(--sunk); border-radius: 6px; padding: 1px 6px; word-break: break-all; }
/* the family tree */
.lineage { list-style: none; margin: 0; padding: 0 0 0 22px; border-left: 2px solid var(--line); display: grid; gap: 18px; }
.lineage li { position: relative; }
.lineage li::before { content: ""; position: absolute; left: -30px; top: .35em; width: 14px; height: 14px; border-radius: 50%; background: var(--surface); border: 2px solid var(--line-strong); }
.lineage li.here::before { background: var(--marker); border-color: var(--ink); }
.lineage li.gone { color: var(--muted); }
.lineage .sub { display: block; color: var(--muted); font-size: .84rem; }
.lineage ul { list-style: none; margin: 14px 0 0; padding: 0 0 0 22px; border-left: 2px solid var(--line); display: grid; gap: 14px; }
/* differences */
.diff-lines { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; font-size: .9rem; }
.diff-line { display: grid; grid-template-columns: 22px minmax(0, 1fr); padding: 5px 12px 5px 8px; white-space: pre-wrap; overflow-wrap: anywhere; }
.diff-line.add { background: var(--good-bg); color: var(--good); }
.diff-line.del { background: var(--bad-bg); color: var(--bad); text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--bad) 40%, transparent); }
.diff-line .sign, .diff-tool .sign { font-family: var(--mono); font-weight: 800; text-decoration: none; }
.diff-tool { display: flex; gap: 10px; align-items: center; padding: 7px 12px; border-radius: 9px; }
.diff-tool.add { background: var(--good-bg); } .diff-tool.del { background: var(--bad-bg); }
.diff-old { color: var(--bad); text-decoration: line-through; } .diff-new { color: var(--good); font-weight: 650; }
.comment { border-left: 3px solid var(--line-strong); padding: 2px 0 2px 14px; }
.comment-body { white-space: pre-wrap; overflow-wrap: anywhere; margin: 4px 0 0; }
.easy-way { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; align-items: center; padding: 16px 0; border-top: 1px solid var(--line); }
.easy-way:first-of-type { border-top: 0; padding-top: 4px; }
.easy-way p { margin: 2px 0 0; max-width: 60ch; }

/* --------------------------------------------------------------- try it */
.try-grid { display: block; }
.try-world, .try-data { margin: 0 0 14px; padding: 10px 14px; border: 1px dashed var(--line-strong); border-radius: 12px; }
.try-world > summary, .try-data > summary, .own-tools > summary, .try-steps > summary, .step-more > summary { cursor: pointer; list-style: none; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.try-world > summary, .try-data > summary { font-weight: 600; color: var(--ink); }
.try-world > summary::-webkit-details-marker, .try-data > summary::-webkit-details-marker, .own-tools > summary::-webkit-details-marker, .try-steps > summary::-webkit-details-marker, .step-more > summary::-webkit-details-marker { display: none; }
.try-world > summary::before, .try-data > summary::before, .own-tools > summary::before, .try-steps > summary::before, .step-more > summary::before { content: ""; flex: none; width: 6px; height: 6px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(-45deg); transition: transform .18s; align-self: center; }
.try-world[open] > summary::before, .try-data[open] > summary::before, .own-tools[open] > summary::before, .try-steps[open] > summary::before, .step-more[open] > summary::before { transform: rotate(45deg); }
.try-world .mini { margin: 12px 0 4px; }
.try-world ul { margin: 4px 0 10px; }
.thread { display: flex; flex-direction: column; gap: 12px; max-height: 560px; overflow-y: auto; padding: 6px 2px 12px; }
.bubble { max-width: 88%; padding: 12px 16px; border-radius: 16px; background: var(--sunk); color: var(--ink); }
.bubble p { margin: 4px 0 0; white-space: pre-wrap; }
.bubble.me { align-self: flex-end; background: var(--ink); color: var(--page); border-bottom-right-radius: 5px; }
.bubble.me .who { color: color-mix(in srgb, var(--page) 65%, transparent); }
.bubble.agent { align-self: flex-start; background: var(--surface); border: 1px solid var(--line); border-bottom-left-radius: 5px; }
.bubble .who { font-size: .76rem; font-weight: 650; color: var(--muted); }
.bubble .err { color: var(--bad); }
.try-steps { margin: 8px 0 4px; }
.try-steps > summary, .step-more > summary { cursor: pointer; color: var(--muted); font-size: .86rem; }
.try-step { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 8px; font-size: .9rem; }
.step-more pre { max-height: 160px; overflow: auto; margin: 4px 0; }
.composer { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: end; margin-top: 10px; }
.composer textarea { min-height: 52px; border-radius: 14px; }
.improve { margin-top: 18px; }
.improve textarea { width: 100%; }

/* ------------------------------------------------------------- publish */
.publish-grid { display: grid; gap: 24px; }
@media (min-width: 1000px) { .publish-grid { grid-template-columns: minmax(0, 1fr) 380px; align-items: start; } .publish-side { position: sticky; top: 88px; } }
.step h2 { margin-bottom: 16px; display: flex; align-items: center; gap: 12px; }
.step .step-n { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: var(--page); font-size: .86rem; margin: 0; letter-spacing: 0; }
.step > .field, .step > .two { margin-top: 14px; }
.templates { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); margin-top: 14px; max-height: 320px; overflow: auto; padding: 2px; }
.template { display: flex; gap: 12px; align-items: flex-start; text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px; cursor: pointer; color: var(--body); transition: border-color .15s; }
.template:hover { border-color: var(--ink); }
.template .avatar { width: 34px; height: 34px; font-size: .72rem; border-radius: 9px; }
.tpl-text { display: grid; min-width: 0; }
.tpl-text strong { color: var(--ink); font-size: .92rem; }
.tpl-text span { color: var(--muted); font-size: .82rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tool-list { display: grid; gap: 2px; }
.tool-list h3 { font-size: .9rem; color: var(--ink); margin: 10px 0 6px; }
.tool-check { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 4px 12px; align-items: center; padding: 9px 10px; border-radius: 10px; cursor: pointer; }
.tool-check:hover { background: var(--sunk); }
.tool-check .tool-text { display: grid; } .tool-check .tool-text .hint { margin: 0; font-size: .8rem; }
.tool-group { margin-top: 12px; display: grid; gap: 4px; } .tool-group h4 { color: var(--muted); }
.own-tools { margin-top: 16px; border-top: 1px solid var(--line); padding-top: 14px; }
.own-tools > summary { cursor: pointer; font-weight: 600; color: var(--ink); }
.own-row { display: grid; grid-template-columns: minmax(120px, 1fr) minmax(110px, auto) auto; gap: 8px; align-items: center; margin: 10px 0; padding: 12px; border: 1px dashed var(--line-strong); border-radius: 12px; }
.own-row > [data-own="description"] { grid-column: 1 / -1; grid-row: 2; }
.example-row { display: grid; gap: 8px; padding: 14px; border: 1px dashed var(--line-strong); border-radius: 12px; }
.bump { margin-bottom: 16px; }
.advanced .two { margin-top: 14px; }
.publish-side .agents { pointer-events: none; }
.publish-side .btn.block { margin-top: 16px; }

/* --------------------------------------------------------------- my space */
.me-head { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.me-head .avatar { width: 56px; height: 56px; font-size: 1.05rem; border-radius: 14px; }
.me-head h1 { font-size: 2rem; }
.stats { display: grid; gap: 0; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); margin-bottom: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sheet); overflow: hidden; }
.stat { padding: 18px 20px; display: grid; gap: 2px; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat strong { font-size: 2rem; font-weight: 800; letter-spacing: -.04em; color: var(--ink); line-height: 1.05; font-variant-numeric: tabular-nums; }
.stat span { color: var(--muted); font-size: .88rem; }
.mine-row { display: flex; gap: 14px; align-items: center; padding: 13px 16px; flex-wrap: wrap; }
.mine-row .c-main { flex: 1; min-width: 200px; }
.mine-row .c-title { color: var(--ink); font-weight: 650; text-decoration: none; }
.mine-row .c-title:hover { text-decoration: underline; }
.compact .mine-row a.c-title { display: inline; padding: 0; }
.compact .mine-row a.btn { padding: 4px 14px; color: var(--ink); }
.notif-dot { flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--marker); box-shadow: 0 0 0 3px color-mix(in srgb, var(--marker) 30%, transparent); }
.notif-dot.read { background: var(--line-strong); box-shadow: none; } .notif-dot.bad { background: var(--bad); box-shadow: none; }

/* ------------------------------------------------------------ my company */
.install-head { display: flex; gap: 14px; align-items: center; margin-bottom: 16px; }
.install-head h2 { margin: 0; font-size: 1.12rem; }
.install-head h2 a { color: var(--ink); text-decoration: none; } .install-head h2 a:hover { text-decoration: underline; }
.install-head p { margin: 0; }
.install-head .tag { margin-left: auto; }
.bindings { margin: 18px 0; }
.bindings > p { margin-bottom: 6px; }
.binding { display: grid; grid-template-columns: 9.5rem 1fr minmax(170px, 250px); gap: 10px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
.binding select { min-height: 36px; padding-block: 5px; }
@media (max-width: 640px) { .binding { grid-template-columns: 1fr; } }
.run-card { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin-top: 12px; background: color-mix(in srgb, var(--sunk) 40%, var(--surface)); }
.run-card .reply { white-space: pre-wrap; margin: 8px 0 0; color: var(--ink); }
.conn-line { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.conn-line strong { color: var(--ink); }
.conn-line button { margin-left: auto; }
.approval pre { max-height: 220px; overflow: auto; }
.panel.approval { border-left: 4px solid var(--marker); }
@media (max-width: 600px) { .specimen { margin-right: 10px; } .spec-card { padding: 20px; } .big-search .btn { padding-inline: 18px; } }

/* how it works: the sheets fill the width, two or three per row as the screen allows */
.how-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); align-items: stretch; }
.how-grid .panel ul { margin: 8px 0 0; padding-left: 20px; } .how-grid .panel li { margin: 4px 0; }
.how .actions { margin-top: 32px; }

/* publish: drop a file */
.dropzone { display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; justify-content: space-between; padding: 26px 28px; border: 2px dashed var(--line-strong); border-radius: var(--r-sheet); background: color-mix(in srgb, var(--surface) 60%, transparent); transition: border-color .15s, background .15s; }
.dropzone h2 { margin: 0 0 4px; }
.dropzone .drop-text { flex: 1 1 320px; }
.dropzone .status { flex-basis: 100%; margin: 0; }
.dropzone .status:empty { display: none; }
.dropzone.over { border-color: var(--ink); background: var(--marker-soft); }

/* publish: search over the tools */
.tool-search { margin: 4px 0 6px; border-radius: 999px; padding-left: 36px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b717b' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='6.5'/%3E%3Cpath d='m20 20-4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: 12px 50%; background-size: 16px; }
/* checks in the narrow column of the publish page: label above, text below */
.publish-side .checks li { grid-template-columns: 1fr; gap: 4px; }
.publish-side .checks .what, .publish-side .checks .detail-line { grid-column: 1; }
.publish-side .checks li .tag { grid-row: auto; }
/* the role line scrolls inside its own width instead of pushing the page */
.explore > * { min-width: 0; }
.filter-bar > * { min-width: 0; }
.filter-group.filter-role { width: 100%; }
.filter-role .filter-list { flex: 1 1 auto; min-width: 0; }
.list-head .segmented { max-width: 100%; overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; }
.list-head .segmented button { white-space: nowrap; }

/* author on a card: a real link above the card's own link */
a.item-by { z-index: 1; text-decoration: none; border-radius: 999px; padding: 2px 8px 2px 2px; margin-left: -2px; }
a.item-by:hover { background: var(--sunk); color: var(--ink); }
a.item-by:hover .by-name { text-decoration: underline; text-underline-offset: 3px; }
.title-row a.owner { text-decoration: none; } .title-row a.owner:hover { color: var(--ink); text-decoration: underline; }

/* a creator's public page */
.person-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 18px 28px; align-items: start; padding: 12px 0 28px; }
@media (max-width: 700px) { .person-head { grid-template-columns: auto minmax(0, 1fr); } .person-head > .btn { grid-column: 1 / -1; justify-self: start; } }
.person-avatar { display: grid; place-items: center; width: 92px; height: 92px; border-radius: 50%; background: var(--ink); color: var(--page); font-size: 1.9rem; font-weight: 800; letter-spacing: -.03em; box-shadow: 0 0 0 6px var(--surface), 0 0 0 7px var(--line); }
@media (max-width: 560px) { .person-avatar { width: 64px; height: 64px; font-size: 1.3rem; } }
.person-main { min-width: 0; padding-top: 6px; }
.person-name { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; }
.person-name h1 { overflow-wrap: anywhere; }
.person-bio { margin: 12px 0 0; max-width: 62ch; font-size: 1.06rem; color: var(--body); white-space: pre-line; overflow-wrap: anywhere; }
.person-facts { display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center; margin-top: 14px; font-size: .92rem; }
.person-site { display: inline-flex; align-items: center; gap: 6px; color: var(--ink); font-weight: 650; text-decoration: none; overflow-wrap: anywhere; }
.person-site::before { content: ""; width: 14px; height: 14px; flex: none; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 14a5 5 0 0 0 7 0l3-3a5 5 0 0 0-7-7l-1 1'/%3E%3Cpath d='M14 10a5 5 0 0 0-7 0l-3 3a5 5 0 0 0 7 7l1-1'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 14a5 5 0 0 0 7 0l3-3a5 5 0 0 0-7-7l-1 1'/%3E%3Cpath d='M14 10a5 5 0 0 0-7 0l-3 3a5 5 0 0 0 7 7l1-1'/%3E%3C/svg%3E") center / contain no-repeat; }
.person-site:hover { text-decoration: underline; text-underline-offset: 3px; }
.person-shelf { margin-top: 44px; }
.browse-search { flex: 1 1 100%; max-width: 520px; margin: 0; }
/* my space: what I can do with a card of mine, or what changed since I downloaded it */
.item-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; position: relative; z-index: 1; padding-top: 2px; }

/* in my AI: one address for the whole catalogue, then steps per assistant */
.home-connect { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; font-weight: 650; color: var(--ink); text-decoration: none; border-bottom: 2px solid var(--marker); padding-bottom: 1px; }
.home-connect:hover { text-decoration: none; background: var(--marker-soft); }
.address-box { display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; justify-content: space-between; padding: 22px 26px; margin-bottom: 20px; border-radius: 20px; background: var(--ink); color: var(--page); }
.address-box .muted { color: color-mix(in srgb, var(--page) 65%, transparent); display: block; margin-bottom: 4px; }
.address-box .address { font: 650 clamp(1rem, 2.4vw, 1.35rem) var(--mono); color: var(--page); word-break: break-all; }
.address-box .btn { background: var(--marker); color: var(--marker-ink); border-color: var(--marker); }
.connect-guide { display: grid; gap: 18px; margin-bottom: 20px; }
.connect-guide > .banner { margin: 0; }
.ai-picker { margin: 0; max-width: 100%; overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; }
.ai-picker button { white-space: nowrap; }
.connect-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; counter-reset: step; }
.connect-steps li { position: relative; padding: 16px 0 16px 54px; counter-increment: step; display: grid; gap: 6px; }
.connect-steps li + li { border-top: 1px solid var(--line); }
.connect-steps li::before { content: counter(step); position: absolute; left: 0; top: 14px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--page); font-weight: 800; font-size: .9rem; }
.connect-steps strong { color: var(--ink); font-size: 1.02rem; }
.connect-steps p { margin: 0; max-width: 70ch; }
.connect-steps .code-block { margin: 4px 0 0; }
.phrases { list-style: none; margin: 0; padding: 0; }
.phrases li { display: flex; gap: 10px; align-items: center; justify-content: space-between; padding: 10px 0; border-top: 1px solid var(--line); color: var(--ink); }
.phrases li:first-child { border-top: 0; }
.in-my-ai { border: 2px solid var(--ink); display: grid; gap: 16px; }
.in-my-ai-head h2 { margin-bottom: 4px; }
.in-my-ai-head p { margin: 0; }
.in-my-ai .easy-way:first-of-type { border-top: 0; }
.say-this { margin: 6px 0 0; padding: 8px 12px; border-left: 3px solid var(--marker); background: var(--sunk); border-radius: 0 8px 8px 0; color: var(--ink); font-weight: 600; }
.in-my-ai .more .panel, .more .panel { border: 0; padding: 0; }

/* every AI and tool: a search, tiles by family, the chosen one's guide */
.host-search { margin: 6px 0 18px; } .host-search .tool-search { max-width: 520px; margin: 0; }
.host-groups { display: grid; gap: 22px; margin-bottom: 24px; }
.host-group h2 { font-size: 1.05rem; margin-bottom: 10px; }
.host-grid { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); }
.host-tile { display: grid; gap: 2px; text-align: left; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; transition: border-color .15s; }
.host-tile:hover { border-color: var(--ink); }
.host-tile[aria-pressed="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); background: var(--marker-soft); }
.host-tile strong { font-size: .95rem; }
.host-kinds { color: var(--muted); font-size: .78rem; }
.connect-guide { scroll-margin-top: 90px; }
.guide-head h2 { margin-bottom: 4px; } .guide-head p { margin: 0; }
.way { padding-top: 14px; border-top: 1px solid var(--line); }
.way h3 { font-size: 1rem; margin-bottom: 6px; }
.menu-path { font: 600 .86rem var(--mono); background: var(--sunk); color: var(--ink); padding: 4px 10px; border-radius: 6px; }
.reported { color: var(--ink); background: var(--marker-soft); padding: 6px 10px; border-radius: 8px; }
.host-select { max-width: 360px; }

/* proof of use */
.proof-badge { margin: 0; font-size: .8rem; font-weight: 650; color: var(--body); }
.proof-badge::before { content: "◐ "; color: var(--muted); }
.proof-badge.full { color: var(--good); }
.proof-badge.full::before { content: "✓ "; color: var(--good); }
.proof-score { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: baseline; margin: 6px 0 12px; }
.proof-score strong { font-size: 1.5rem; letter-spacing: -.03em; color: var(--ink); }
.proof-tasks li { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; padding: 10px 0; border-top: 1px solid var(--line); }
.proof-tasks li .tag { margin-top: 2px; }
.proof-task { margin: 0; color: var(--ink); font-weight: 600; }
.proof-tasks p.small { margin: 2px 0 0; }

/* my company: services by area, and which service tool does an agent tool */
.service-area { margin-top: 6px; }
.service-grid { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); }
.service-tile { display: grid; gap: 2px; justify-items: start; text-align: left; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; }
.service-tile:hover { border-color: var(--ink); }
.service-tile.on { border-color: var(--good); }
.service-tile .small { color: var(--muted); }
.binding-which { grid-column: 2 / -1; }
.binding-which:empty { display: none; }

/* agent page: three tabs, the rest under "More" */
.tabs { overflow: visible; }
.tab-more { position: relative; margin-left: auto; }
.tab-more-button { position: relative; background: none; border: 0; padding: 12px 0; color: var(--muted); font-weight: 650; font-size: .95rem; cursor: pointer; white-space: nowrap; }
.tab-more-button::after { content: " ▾"; }
.tab-more-button:hover, .tab-more-button[aria-selected="true"] { color: var(--ink); }
.tab-more-button[aria-selected="true"]::before { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; border-radius: 3px 3px 0 0; background: var(--ink); }
.tab-more-menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 20; min-width: 220px; display: grid; gap: 1px; padding: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); }
.tab-more-menu[hidden] { display: none; }
.tab-more-menu button { text-align: left; padding: 9px 12px; border-radius: 8px; border: 0; background: none; color: var(--body); font-weight: 600; cursor: pointer; }
.tab-more-menu button:hover, .tab-more-menu button[aria-selected="true"] { background: var(--sunk); color: var(--ink); }
.item-uses { color: var(--ink); font-weight: 600; }
.feedback-dialog { width: min(520px, calc(100% - 32px)); border: 1px solid var(--line); border-radius: var(--r-sheet); padding: 24px; background: var(--surface); color: var(--body); box-shadow: var(--shadow); }
.feedback-dialog::backdrop { background: rgba(10, 12, 16, .45); }
.feedback-dialog textarea { margin: 12px 0 4px; }
.foot-feedback { color: var(--ink); font-weight: 650; text-decoration: underline; text-underline-offset: 3px; background: none; border: 0; padding: 0; cursor: pointer; font: inherit; }

/* Direct prompt handoff, using the existing highlighter and type system. */
.btn.prompt-copy { background: var(--marker); color: var(--marker-ink); border-color: var(--marker); }
.btn.prompt-copy:hover { color: var(--marker-ink); }
.item-copy { position: relative; border-top: 1px solid var(--line); padding-top: 12px; }
.item-copy .prompt-copy { width: 100%; min-height: 44px; }
.copy-hint { margin: 8px 0 0; color: var(--muted); font-size: .78rem; line-height: 1.45; }
.detail-actions > .copy-hint { flex-basis: 100%; margin: 0; }
.copy-feedback { display: block; max-width: 65ch; white-space: normal; }
.btn[aria-busy="true"] { cursor: progress; opacity: .7; }
.copy-dialog { width: min(720px, calc(100% - 32px)); max-height: calc(100dvh - 32px); overflow-y: auto; padding: 24px; border: 1px solid var(--line-strong); border-top: 5px solid var(--marker); border-radius: var(--r-sheet); background: var(--surface); color: var(--body); box-shadow: var(--shadow); }
.copy-dialog::backdrop { background: rgba(10, 12, 16, .55); }
.copy-dialog textarea { display: block; width: 100%; min-height: 160px; max-height: 45dvh; margin: 16px 0; resize: vertical; font: .85rem/1.6 var(--sans); }
@media (max-width: 560px) { .detail-actions { width: 100%; } .detail-actions > .prompt-copy { flex-basis: 100%; min-height: 48px; } .copy-dialog { padding: 18px; } .copy-dialog .row > .btn { flex: 1; min-height: 44px; } }

/* Full community edition: soft workshop surfaces, visible provenance, quiet chrome. */
:root, :root[data-theme="light"] { --page:#f6f7fb; --surface:#fff; --sunk:#eef0f8; --ink:#20223a; --body:#464a65; --muted:#626780; --line:#e0e3ef; --line-strong:#c9cede; --marker:#5351ce; --marker-soft:#ecebff; --marker-ink:#fff; --link:#4642b6; --focus:#5351ce; --shadow:0 8px 28px -18px rgba(53,52,106,.22); --r-sheet:22px; --r-ctl:12px; }
@media(prefers-color-scheme:dark) { :root:not([data-theme="light"]) { --page:#171a29; --surface:#222638; --sunk:#2c3148; --ink:#f0f1fc; --body:#d5d8ea; --muted:#aeb5cf; --line:#3a405a; --line-strong:#515a78; --marker:#b8b5ff; --marker-soft:#333250; --marker-ink:#20223a; --link:#c4c1ff; --focus:#c4c1ff; } }
.top { background:var(--page); border-bottom:1px solid var(--line); }
.top-inner { min-height:82px; }
.mark { width:34px;height:34px;border:0;background: url('/logo.svg?v=connected-b') center/contain no-repeat;border-radius:10px; }
.mark::before,.mark::after { display:none; }
.brand { letter-spacing:-.045em;font-weight:800; }
.landing { padding-top:54px; padding-bottom:54px; gap:60px; }
.landing h1 { max-width:15ch;font-size:clamp(2.5rem,5vw,4.4rem);line-height:1.06; }
.landing .sub { font-size:1.12rem;line-height:1.7; }
.big-search { border-radius:16px;box-shadow:var(--shadow); }
.specimen::before { background:#dfe9ff;transform:rotate(-4deg);opacity:.7; }
.specimen::after { background:#e9e1fc;transform:rotate(3deg);opacity:.7; }
.specimen { padding:6px; }
.item { border-radius:20px;box-shadow:none;transition:border-color .15s,box-shadow .15s; }
.item:hover { border-color:var(--line-strong);box-shadow:var(--shadow); }
.item-by { font-weight:600; }
.item .meta { padding-top:12px; }
.item-copy .prompt-copy { min-height:44px;border-radius:12px; }
.item-copy { margin-top:14px; }
.role-card { border-radius:16px; }
.invite { background:var(--marker-soft);border:0;border-radius:26px;padding:32px; }
.filter-bar { border-radius:16px;background:var(--surface);padding:18px; }
@media(max-width:700px) { .top-inner { min-height:68px; } .landing { padding-top:30px;gap:34px; } .invite { padding:24px; } }

:root[data-theme="dark"] { --page:#171a29; --surface:#222638; --sunk:#2c3148; --ink:#f0f1fc; --body:#d5d8ea; --muted:#aeb5cf; --line:#3a405a; --line-strong:#515a78; --marker:#b8b5ff; --marker-soft:#333250; --marker-ink:#20223a; --link:#c4c1ff; --focus:#c4c1ff; }
.item-copy>.row{align-items:stretch}.item-copy>.row>.btn{flex:1 1 140px;width:auto}.item-copy>.row>.prompt-copy{width:auto}.item-copy .btn:disabled{opacity:.5;cursor:not-allowed}

/* Language remains accessible without opening the account menu. */
.footer-language-label{display:inline-flex;align-items:center;gap:10px;margin:0;font-size:12px;color:inherit}
.footer-language{width:auto;min-width:115px;padding:6px 24px 6px 8px;border:1px solid var(--line,#dedde8);border-radius:8px;background:transparent;color:inherit;font:inherit}
.variant-source{display:flex;flex-wrap:wrap;gap:6px}.variant-source a{text-decoration:underline}

@media (max-width: 560px) { .tabs { flex-wrap: wrap; column-gap: 12px; } .detail-actions .btn { white-space: normal; overflow-wrap: anywhere; } }

/* Shared catalogue landing: compact heading and existing top search. */
.catalogue-heading { margin-bottom: 18px; }
.catalogue-heading h1 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 8px; }
.avatar-portrait { overflow: hidden; padding: 0; }
.avatar-portrait img { width:100%; height:100%; object-fit:cover; display:block; }

/* Role cards are the catalogue's single role filter. */
.filter-bar .catalogue-roles { flex: 1 0 100%; width: 100%; }
.catalogue-roles h2 { font-size: 1.05rem; margin: 0 0 12px; }
.catalogue-roles .role-grid { width:100%; }
.catalogue-roles .role-card[aria-pressed="true"] { background:var(--surface-2,rgba(128,128,180,.16)); outline:2px solid var(--accent,#a99df5); outline-offset:-2px; }
@media(max-width:600px) { .catalogue-roles .role-grid { grid-template-columns:1fr; } }

/* Dense role chips with a distinct robot colour per category. */
.filter-bar .catalogue-roles { display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.catalogue-roles h2 { margin:0; font-size:.82rem; color:var(--muted); font-weight:600; }
.catalogue-roles .role-grid { display:flex; flex-wrap:wrap; gap:6px; border:0; width:auto; flex:1; }
.catalogue-roles .role-grid li { border:0; }
.catalogue-roles .role-card { width:auto; min-height:36px; padding:5px 9px; gap:7px; border:1px solid var(--line); border-radius:20px; font-size:.82rem; }
.catalogue-roles .role-card .avatar { width:24px; height:24px; flex:0 0 24px; border-radius:7px; }
.catalogue-roles .role-card .name { font-weight:550; }
.catalogue-roles .role-card .count { font-size:.75rem; padding:0; margin-left:1px; }
@media(max-width:600px) { .catalogue-roles .role-grid { flex-wrap:nowrap; overflow-x:auto; max-width:100%; flex-basis:100%; padding:2px 0 5px; } .catalogue-roles .role-grid li { flex:0 0 auto; } .catalogue-roles .role-card { min-height:44px; } }

/* Catalogue sections flow without decorative separator rules. */
.explore > .two-col { margin-top:0; }
.explore .list-head, .explore .compact li + li { border-top:0; }

.external-catalogue .agent-list { list-style:none; padding:0; display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,310px),1fr)); gap:16px; }
.external-catalogue h3 { margin:0; font-size:1rem; }
.external-catalogue .item { min-width:0; }

.github-import input { flex:1; min-width:min(100%,260px); }
.github-import .row { align-items:center; }

.github-import textarea { display:block; width:100%; resize:vertical; margin-bottom:14px; }
.create-options { margin:18px 0; }
.create-options > summary { cursor:pointer; padding:12px 0; color:var(--muted); }
.create-options[open] > .stack { margin-top:16px; }

.templates { max-height:290px; overflow-y:auto; overscroll-behavior:contain; }
.start-from .section-head { gap:12px; flex-wrap:wrap; }
.start-from .tool-search { max-width:320px; width:100%; }
.tool-list { max-height:320px; overflow-y:auto; }
.github-import .two { margin-bottom:12px; }
.github-import textarea { margin-top:8px; }

.avatar-colors { display:flex; flex-wrap:wrap; gap:8px; }
.avatar-colors button { width:36px; height:36px; border-radius:50%; background:var(--swatch); border:3px solid transparent; }
.avatar-colors button[aria-pressed="true"] { border-color:var(--ink); outline:2px solid var(--line); outline-offset:2px; }
.avatar-options button[aria-pressed="true"] { outline:2px solid var(--accent,#a99df5); }

.use-guide-steps { padding-left:22px; margin:0; }
.use-guide-steps li { margin:8px 0; }
.trust-extra summary { cursor:pointer; padding:8px 0; color:var(--muted); }

.avatar-colors button { min-width:44px; min-height:44px; }

.mark{border-radius:0}.services-brand-return{display:block;margin-top:22px}.services-brand-return img{width:170px;height:auto}
@media(prefers-color-scheme:dark){:root:not([data-theme="light"]) .mark{background-image:url('/logo-dark.svg?v=connected-b')}:root:not([data-theme="light"]) .services-brand-return img{content:url('/studio/neolia-services-signature-light.svg')}}
:root[data-theme="dark"] .mark{background-image:url('/logo-dark.svg?v=connected-b')}:root[data-theme="dark"] .services-brand-return img{content:url('/studio/neolia-services-signature-light.svg')}

.detail-side .btn,.detail-aside .btn,aside .btn,.detail-actions .btn {white-space:normal;overflow-wrap:anywhere;max-width:100%;height:auto;min-height:44px;text-align:center;box-sizing:border-box;}
.use-guide-steps{overflow-wrap:anywhere;}

.avatar-portrait{overflow:hidden;padding:0}.avatar-portrait img{width:100%;height:100%;object-fit:cover;display:block}.avatar-picker{margin-top:20px}.avatar-picker summary{cursor:pointer;font-weight:600;min-height:44px}.avatar-picker p{font-size:14px;color:var(--muted)}.avatar-options{display:grid;grid-template-columns:repeat(auto-fill,minmax(56px,1fr));gap:10px}.avatar-options button{width:56px;height:56px;border-radius:12px;overflow:hidden;padding:0;border:2px solid transparent;cursor:pointer}.avatar-options img{display:block;width:100%;height:100%}.avatar-options button[aria-pressed=true]{border-color:var(--ink);outline:2px solid var(--focus);outline-offset:2px}

.agent-data-download{display:inline-flex!important;align-items:center;justify-content:center;min-width:44px;width:44px;min-height:44px;height:44px;padding:8px;flex:0 0 44px;font-size:24px;line-height:1;}

.merge-choices{max-height:240px;overflow:auto}.merge-choice{display:flex;gap:8px;align-items:center;min-height:44px;font-size:14px}.merge-choice input{width:18px;flex:0 0 18px;}

.detail-head{display:block}.detail-primary{justify-content:flex-start;margin-top:20px}.detail-primary .btn{min-height:44px}.detail .side{min-width:0}.detail .side h2{font-size:16px;margin:0 0 10px}.create-grid{align-items:start;grid-template-columns:minmax(0,1.45fr) minmax(280px,1fr)}.create-grid:has(>.publish-side[hidden]){display:block;max-width:850px}.publish-side{min-width:0}.publish-side .panel{margin-top:0}.create-options{min-width:0}.create-options>.stack{padding-top:16px}.create-grid .two{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
@media(max-width:900px){.create-grid{grid-template-columns:1fr}.create-grid .two{grid-template-columns:1fr}.detail-primary{gap:8px}.detail .side{width:100%}}

/* Agent reading surface: one primary task, compact secondary controls. */
.detail-head{padding:26px 0 20px;border-bottom:1px solid var(--line);margin-bottom:14px}
.detail-head .title-row{gap:16px;align-items:center}.detail-head .title-row h1{font-size:clamp(25px,2.5vw,34px);line-height:1.15;letter-spacing:-.035em;margin:0;overflow-wrap:anywhere}
.detail-head .title-row .avatar{width:52px;height:52px;flex:0 0 52px}.detail-head .lede{max-width:850px;margin:14px 0;font-size:17px;line-height:1.65;color:var(--body)}
.agent-author{font-size:13px;text-decoration:underline;margin-inline:4px}.detail-primary{margin-top:18px;gap:10px}.detail-primary .btn{padding:10px 16px}
.detail{grid-template-columns:minmax(0,1fr) minmax(270px,310px);gap:28px;align-items:start}.detail>.stack{min-width:0}.detail .instructions{font-size:16px;line-height:1.8;white-space:pre-wrap;overflow-wrap:anywhere;max-width:75ch;color:var(--body)}
.detail .panel{padding:22px;border-radius:14px}.detail h2{font-size:19px;line-height:1.3;letter-spacing:-.02em;margin-bottom:14px}.detail .side{gap:14px;display:flex;flex-direction:column}.detail .side .panel{padding:18px}.detail .side .panel .panel{border:0;padding:0;border-radius:0;background:transparent}
.side-fold>summary{font-size:14px;font-weight:650;cursor:pointer;min-height:28px;line-height:1.7}.side-fold-body{margin-top:16px}.side-fold .btn{font-size:13px}.side-fold .facts{font-size:12px}.trust-explanation{border-top:1px solid var(--line);margin-top:14px;padding-top:14px}.trust-explanation h3{font-size:14px}.trust-explanation p{line-height:1.6}.trust-extra .trust-list{font-size:13px}
.detail .side .copy-hint{display:none}.detail .tags{gap:7px}.tabs{margin-bottom:20px}
@media(max-width:850px){.detail{grid-template-columns:1fr;gap:18px}.detail .side{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.detail .side>.trust{grid-column:1/-1}.detail-head .lede{font-size:16px}}
@media(max-width:560px){.detail .side{display:flex}.detail-head{padding-top:16px}.detail-head .title-row{gap:12px}.detail .panel{padding:18px}.detail .instructions{font-size:15px;line-height:1.75}.detail-primary .btn{flex:1 1 auto}.tabs{gap:10px}}

.auth-choices{margin:22px 0}.auth-choices h2{font-size:18px;margin:0}.auth-providers{display:grid;grid-template-columns:1fr 1fr;gap:12px}.auth-providers .btn{width:100%;min-height:44px}.auth-password{border-top:1px solid var(--line);padding-top:16px}.auth-password>summary{cursor:pointer;min-height:44px;font-weight:600}.auth-password form{margin-top:12px}.auth-choices input[autocomplete="one-time-code"]{font-size:24px;letter-spacing:.2em}.auth-choices .status:empty{display:none}

.auth-providers .btn{display:flex;align-items:center;justify-content:center;gap:10px;white-space:normal}.provider-icon{display:inline-block;width:20px;height:20px;object-fit:contain;flex:0 0 20px}
