/* Nexcility Agent Platform — design tokens, app shell and catalog components. */

@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("../fonts/ibm-plex-sans-latin.b2c9031d9fd6.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: "IBM Plex Sans"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("../fonts/ibm-plex-sans-latin-ext.f0e2925b3fa6.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; }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/ibm-plex-mono-400-latin.79936b18df9f.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: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/ibm-plex-mono-400-latin-ext.8450d5944de2.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; }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/ibm-plex-mono-500-latin.b1c8a895f5fd.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: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/ibm-plex-mono-500-latin-ext.fa8d8838b94a.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 {
  color-scheme: light;
  --font-sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --red: #d42a3c;

  --bg: #f2f4f7;
  --surface: #ffffff;
  --surface-2: #f7f9fb;
  --field-bg: #ffffff;
  --border: #e1e6ed;
  --border-strong: #cfd7e1;
  --border-hover: #c3ccd8;
  --ink: #13263d;
  --body: #40566a;
  --muted: #5a6a7e;
  --faint: #a6b0bd;
  --hover: #eef2f6;
  --header-bg: #ffffff;
  --input-bg: #f2f4f7;
  --icon-bg: #13263d;
  --icon-fg: #ffffff;
  --primary: #13263d;
  --primary-ink: #ffffff;
  --accent: #1f5a8a;
  --accent-soft: #e8eff7;
  --star: #e3a008;
  --star-soft: #fff1e6;
  --sb-bg: #ffffff;
  --sb-border: #e1e6ed;
  --sb-muted: #6c7b8e;
  --sb-active: #edf1f6;
  --sb-hover: #f4f6f9;
  --track: #e6eaf0;
  --overlay: rgba(19, 38, 61, .28);
  --logo-bg: transparent;
  --logo-pad: 0;
  --stripe-a: #f2f4f7;
  --stripe-b: #e7ebf1;
  --toast-bg: #13263d;
  --toast-fg: #ffffff;
  --hero-base: #13263d;
  --hero-ink: #ffffff;
  --hero-muted: #b3c1d3;
  --hero-border: transparent;
  --shot-a: #eef1f5;
  --shot-b: #e2e7ee;
  --lock-bg: rgba(19, 38, 61, .85);
  --success: #1c7c42;
  --success-bg: #e6f6ec;
  --success-line: #bfe3cc;
  --warning: #8a5a00;
  --warning-bg: #fff4dc;
  --warning-line: #e8c887;
  --danger: #b3261e;
  --danger-bg: #fdeceb;
  --danger-line: #efc4c4;
  --code-bg: #0f2233;
  --code-ink: #e6eef5;
  --r: 16px;
  --r-sm: 10px;
  --r-lg: 22px;
  --shadow: 0 18px 40px rgba(19, 38, 61, .14);
  --card-shadow: 0 1px 2px rgba(19, 38, 61, .05);
  --focus: 0 0 0 3px rgba(31, 90, 138, .28);
  --header-h: 72px;
  --sidebar-w: 288px;

  /* Aliases kept for agent module stylesheets written against the previous palette. */
  --navy: var(--ink);
  --navy-deep: var(--ink);
  --blue: var(--accent);
  --blue-bright: var(--accent);
  --blue-soft: var(--accent-soft);
  --aqua: #3fb3bf;
  --line: var(--border);
  --line-strong: var(--border-strong);
  --paper: var(--bg);
  --surface-subtle: var(--surface-2);
  --radius: var(--r);
  --radius-sm: var(--r-sm);
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #121417;
  --surface: #1c1f23;
  --surface-2: #202328;
  --field-bg: #16181c;
  --border: #2b2f35;
  --border-strong: #3a3f46;
  --border-hover: #4a515b;
  --ink: #eef0f3;
  --body: #c3c9d1;
  --muted: #9ba3ae;
  --faint: #5d646e;
  --hover: #262a30;
  --header-bg: #16181c;
  --input-bg: #1c1f23;
  --icon-bg: #2a2e34;
  --icon-fg: #f4f5f7;
  --primary: #eef0f3;
  --primary-ink: #121417;
  --accent: #8cb4dc;
  --accent-soft: #22303f;
  --star: #f5b83d;
  --star-soft: rgba(232, 89, 12, .16);
  --sb-bg: #16181c;
  --sb-border: #25282d;
  --sb-muted: #868e99;
  --sb-active: #262a31;
  --sb-hover: #1f2226;
  --track: #2b2f35;
  --overlay: rgba(6, 7, 9, .55);
  --logo-bg: transparent;
  --logo-pad: 0;
  --stripe-a: #191c20;
  --stripe-b: #22262b;
  --toast-bg: #eef0f3;
  --toast-fg: #121417;
  --hero-base: #1c1f23;
  --hero-muted: #a3abb6;
  --hero-border: #2b2f35;
  --lock-bg: rgba(0, 0, 0, .6);
  --success: #69db7c;
  --success-bg: rgba(55, 178, 77, .16);
  --success-line: rgba(105, 219, 124, .35);
  --warning: #ffc56b;
  --warning-bg: rgba(245, 184, 61, .14);
  --warning-line: rgba(245, 184, 61, .4);
  --danger: #ff8a80;
  --danger-bg: rgba(255, 107, 107, .14);
  --danger-line: rgba(255, 107, 107, .35);
  --code-bg: #0b0d10;
  --shadow: 0 20px 50px rgba(0, 0, 0, .5);
  --card-shadow: none;
  --focus: 0 0 0 3px rgba(140, 180, 220, .38);
  --aqua: #5fc9d3;
}

/* Category colour: any element with --hue gets a solid, tint, glow and art gradient. */
.hued {
  --c-l: .58; --c-c: .16;
  --c-solid: oklch(var(--c-l) var(--c-c) var(--hue, 250));
  --c-tint: oklch(.95 .035 var(--hue, 250));
  --c-glow: oklch(.58 .16 var(--hue, 250) / .35);
  --c-art: radial-gradient(120% 90% at 50% 0%, oklch(.97 .03 var(--hue, 250)), oklch(.91 .055 var(--hue, 250)));
}
:root[data-theme="dark"] .hued {
  --c-l: .66; --c-c: .15;
  --c-tint: oklch(.29 .05 var(--hue, 250));
  --c-art: radial-gradient(120% 90% at 50% 0%, oklch(.36 .08 var(--hue, 250)), oklch(.25 .04 var(--hue, 250)));
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--bg); }
body { min-height: 100vh; margin: 0; display: flex; flex-direction: column; background: var(--bg); color: var(--ink); font-family: var(--font-sans); font-size: 14px; line-height: 1.45; -webkit-font-smoothing: antialiased; }
a { color: var(--accent); }
button, input, textarea, select { font: inherit; color: inherit; }
input::placeholder, textarea::placeholder { color: var(--muted); opacity: .8; }
kbd, code, pre { font-family: var(--font-mono); }
img { max-width: 100%; }
.icon { flex: none; display: block; }
.icon--filled { fill: #e8590c; stroke: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: -100px; left: 20px; z-index: 100; padding: 10px 14px; border-radius: var(--r-sm); background: var(--primary); color: var(--primary-ink); }
.skip-link:focus { top: 10px; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, summary:focus-visible { outline: none; box-shadow: var(--focus); }
[hidden] { display: none !important; }

/* Top bar */
.topbar { position: sticky; top: 0; z-index: 40; height: var(--header-h); flex: none; display: flex; align-items: center; gap: 16px; padding: 0 24px 0 14px; background: var(--header-bg); border-bottom: 1px solid var(--border); }
.is-guest .topbar { padding-left: 24px; }
.shell-icon-button { width: 40px; height: 40px; flex: none; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--border); border-radius: var(--r-sm); background: transparent; color: var(--ink); cursor: pointer; }
.shell-icon-button:hover { background: var(--hover); }
.shell-icon-button--plain { border-color: transparent; border-radius: 8px; }
.brand { display: flex; align-items: center; padding: var(--logo-pad); border-radius: 6px; background: var(--logo-bg); text-decoration: none; }
.brand__logo { display: block; width: auto; height: 38px; }
.topbar__product { padding-left: 16px; border-left: 1px solid var(--border); color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; }
.topbar__spacer { flex: 1; }
.topbar-search { flex: 1; display: flex; justify-content: center; min-width: 0; padding: 0 12px; }
.topbar-search__field { width: 100%; max-width: 480px; height: 44px; display: flex; align-items: center; gap: 10px; padding: 0 16px; border: 1px solid var(--border); border-radius: var(--r-sm); background: var(--input-bg); color: var(--muted); cursor: text; }
.topbar-search__field:focus-within { border-color: var(--border-hover); box-shadow: var(--focus); }
.topbar-search__field input { flex: 1; min-width: 0; border: 0; outline: none; background: transparent; color: var(--ink); font-size: 14px; }
.topbar-search__field input:focus-visible { box-shadow: none; }
.topbar-search__field input::-webkit-search-cancel-button { cursor: pointer; }
.topbar-search__kbd { padding: 2px 6px; border: 1px solid var(--border); border-radius: 4px; font-size: 11px; white-space: nowrap; }
.topbar__search-toggle { display: none; }
.theme-toggle__sun { display: none; }
:root[data-theme="dark"] .theme-toggle__sun { display: block; }
:root[data-theme="dark"] .theme-toggle__moon { display: none; }
.segmented { display: inline-flex; flex: none; gap: 2px; margin: 0; padding: 3px; border: 1px solid var(--border); border-radius: var(--r-sm); }
.segmented button { border: 0; padding: 5px 8px; border-radius: 4px; background: transparent; color: var(--muted); cursor: pointer; font-size: 11px; font-weight: 600; }
.segmented button:hover { color: var(--ink); }
.segmented button[aria-current="true"] { background: var(--primary); color: var(--primary-ink); }

.avatar { width: 38px; height: 38px; flex: none; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--icon-bg); color: var(--icon-fg); font-size: 13px; font-weight: 700; box-shadow: 0 0 0 2px var(--header-bg), 0 0 0 4px var(--red); }
.avatar--lg { width: 42px; height: 42px; box-shadow: none; }
.account-menu { position: relative; flex: none; }
.account-menu__summary { display: flex; align-items: center; gap: 8px; padding: 4px; border-radius: 99px; color: var(--ink); cursor: pointer; list-style: none; }
.account-menu__summary::-webkit-details-marker { display: none; }
.account-menu__summary:hover, .account-menu[open] .account-menu__summary { background: var(--hover); }
.account-menu__chevron { transition: transform .16s ease; }
.account-menu[open] .account-menu__chevron { transform: rotate(180deg); }
.account-menu__panel { position: absolute; z-index: 50; top: calc(100% + 10px); right: 0; width: 280px; padding: 8px; border: 1px solid var(--border); border-radius: var(--r); background: var(--surface); box-shadow: var(--shadow); }
.account-menu__panel form { margin: 0; }
.account-menu__identity { display: flex; align-items: center; gap: 12px; padding: 10px 10px 14px; margin-bottom: 6px; border-bottom: 1px solid var(--border); }
.account-menu__identity span:last-child, .account-menu__item span { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.account-menu__identity strong, .account-menu__identity small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-menu__identity strong { font-size: 14px; }
.account-menu__identity small, .account-menu__item small { color: var(--muted); font-size: 12px; }
.account-menu__item { width: 100%; display: flex; align-items: center; gap: 12px; padding: 10px; border: 0; border-radius: var(--r-sm); background: transparent; color: var(--ink); cursor: pointer; text-align: left; text-decoration: none; }
.account-menu__item:hover { background: var(--hover); }
.account-menu__item strong { font-size: 13px; font-weight: 600; }
.account-menu__item--danger { color: var(--danger); }

/* Shell */
.shell { flex: 1; display: flex; align-items: stretch; min-height: 0; }
.sidebar { position: sticky; top: var(--header-h); z-index: 30; width: var(--sidebar-w); height: calc(100dvh - var(--header-h)); flex: none; display: flex; flex-direction: column; gap: 3px; padding: 14px 10px; overflow-x: hidden; overflow-y: auto; background: var(--sb-bg); border-right: 1px solid var(--sb-border); transition: width .2s ease, transform .25s ease; }
.sidebar__section { display: flex; flex-direction: column; gap: 3px; }
.sidebar__divider { height: 1px; flex: none; margin: 10px 4px; background: var(--sb-border); }
.sidebar__label { padding: 2px 10px 8px; color: var(--sb-muted); font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; }
.sidebar__footer { display: flex; flex-direction: column; gap: 10px; margin-top: auto; padding-top: 16px; }
.sidebar__lang { display: none; align-items: center; justify-content: space-between; gap: 10px; padding: 4px 8px; color: var(--sb-muted); font-size: 12px; }
.nav-item { width: 100%; display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: var(--r-sm); color: var(--ink); text-decoration: none; }
.nav-item:hover { background: var(--sb-hover); }
.nav-item[aria-current="page"] { background: var(--sb-active); }
.nav-item--category { align-items: flex-start; }
.nav-item__chip { width: 36px; height: 36px; flex: none; display: inline-flex; align-items: center; justify-content: center; border-radius: var(--r-sm); background: var(--c-tint, var(--hover)); color: var(--c-solid, var(--ink)); }
.nav-item[aria-current="page"] .nav-item__chip { background: var(--c-solid); color: #fff; }
.nav-item__chip--ink, .nav-item[aria-current="page"] .nav-item__chip--ink { background: var(--icon-bg); color: var(--icon-fg); }
.nav-item__chip--star, .nav-item[aria-current="page"] .nav-item__chip--star { background: var(--star-soft); color: var(--star); }
.nav-item__chip--plain, .nav-item[aria-current="page"] .nav-item__chip--plain { background: var(--hover); color: var(--ink); }
.nav-item__text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.nav-item--category .nav-item__text { gap: 3px; }
.nav-item__text strong { overflow: hidden; font-size: 14px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.nav-item__text small { color: var(--sb-muted); font-size: 12px; line-height: 1.35; }
.nav-item__row { display: flex; justify-content: space-between; gap: 8px; }
.nav-item__count { flex: none; color: var(--sb-muted); font-size: 11px; font-weight: 700; }
.progress { display: block; height: 3px; margin-top: 3px; overflow: hidden; border-radius: 99px; background: var(--track); }
.progress > span { display: block; height: 100%; border-radius: 99px; background: var(--c-solid, var(--red)); }
.progress--lg { height: 10px; margin: 0; }
.powered-by { display: flex; align-items: center; gap: 8px; padding: 4px 10px; color: var(--sb-muted); font-size: 11px; white-space: nowrap; }
.powered-by img { display: block; width: auto; height: 14px; opacity: .8; }
:root[data-theme="dark"] .powered-by img { filter: invert(1) hue-rotate(180deg) brightness(1.2); }
.shell__scrim { position: fixed; inset: var(--header-h) 0 0; z-index: 25; background: var(--overlay); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }

@media (min-width: 760px) {
  :root[data-sidebar="collapsed"] .sidebar { width: 72px; }
  :root[data-sidebar="collapsed"] .sidebar .nav-item__text,
  :root[data-sidebar="collapsed"] .sidebar .nav-item__count,
  :root[data-sidebar="collapsed"] .sidebar .sidebar__label,
  :root[data-sidebar="collapsed"] .sidebar .powered-by { display: none; }
}

.main { flex: 1; min-width: 0; padding: 28px 32px 64px; container-type: inline-size; }
.main--guest { width: 100%; max-width: 1240px; margin: 0 auto; padding-top: 40px; }
.guest-footer { display: flex; justify-content: center; padding: 16px; }

/* Buttons */
.btn, .button { min-height: 38px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 0 16px; border: 1px solid transparent; border-radius: var(--r-sm); background: transparent; color: var(--ink); cursor: pointer; font-size: 14px; font-weight: 600; line-height: 1.1; text-decoration: none; white-space: nowrap; transition: opacity .15s ease, background-color .15s ease, border-color .15s ease; }
.button { min-height: 44px; padding: 0 18px; }
.btn--lg { min-height: 44px; padding: 0 20px; }
.btn--grow { flex: 1; }
.btn--primary, .button--primary { background: var(--primary); color: var(--primary-ink); }
.btn--primary:hover, .button--primary:hover { opacity: .88; }
.btn--ghost, .button--secondary { border-color: var(--border); background: transparent; color: var(--ink); }
.btn--ghost:hover, .button--secondary:hover { background: var(--hover); }
.button--inline { width: auto; }
.btn--light { background: #fff; color: #15171a; }
.btn--light:hover { opacity: .9; }
.btn--outline-light { border-color: rgba(255, 255, 255, .3); color: var(--hero-ink); font-weight: 500; }
.btn--outline-light:hover { background: rgba(255, 255, 255, .08); }
.status-locked { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: var(--r-sm); background: rgba(255, 255, 255, .1); color: var(--hero-ink); font-size: 14px; font-weight: 500; }
.status-locked .icon { color: #ff8a93; }
.btn--locked { border-color: var(--border); background: var(--surface-2); color: var(--muted); cursor: not-allowed; font-weight: 500; }
.btn--buy { background: var(--red); color: #fff; box-shadow: 0 6px 16px rgba(212, 42, 60, .28); }
.btn--buy:hover { background: #bf2233; box-shadow: 0 8px 20px rgba(212, 42, 60, .34); }
.btn--buy:focus-visible { box-shadow: 0 0 0 3px rgba(212, 42, 60, .35); }
.btn--pending { border-color: var(--border); background: var(--surface-2); color: var(--muted); font-weight: 500; }
.btn--pending:hover { background: var(--hover); color: var(--ink); }
.status-locked--pending { text-decoration: none; }
.status-locked--pending .icon { color: var(--hero-muted); }
.status-locked--pending:hover { background: rgba(255, 255, 255, .16); }
.tile__price { margin-left: auto; color: var(--ink); font-weight: 600; }
.detail__price { display: flex; flex-direction: column; gap: 2px; }
.detail__price strong { font-size: 16px; }
.detail__price small { color: var(--muted); font-size: 12px; }
.button--microsoft { width: 100%; border-color: var(--border-strong); background: var(--field-bg); color: var(--ink); }
.button--microsoft:hover { background: var(--hover); }
.microsoft-mark { width: 18px; height: 18px; display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.microsoft-mark i:nth-child(1) { background: #f35325; }.microsoft-mark i:nth-child(2) { background: #81bc06; }.microsoft-mark i:nth-child(3) { background: #05a6f0; }.microsoft-mark i:nth-child(4) { background: #ffba08; }
.round-button { width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 50%; background: var(--surface); color: var(--ink); cursor: pointer; }
.round-button:hover { background: var(--hover); }

/* Badges and favourites */
.badge { display: inline-flex; align-items: center; gap: 3px; padding: 4px 8px; border-radius: 99px; background: var(--surface); color: var(--ink); font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.badge--new { background: var(--red); color: #fff; }
.lock-pill { position: absolute; right: 10px; bottom: 10px; display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px; border-radius: 99px; background: var(--lock-bg); color: #fff; font-size: 11px; font-weight: 700; }
.fav-form { margin: 0; }
.fav-form--tile { position: absolute; top: 8px; right: 8px; }
.fav-button { width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 50%; background: var(--surface); color: var(--faint); cursor: pointer; box-shadow: 0 2px 6px rgba(0, 0, 0, .08); transition: transform .15s ease, color .15s ease; }
.fav-button:hover { transform: scale(1.08); color: var(--star); }
.fav-button[aria-pressed="true"] { color: var(--star); }
.fav-button[aria-pressed="true"] svg { fill: currentColor; }
.fav-form--detail .fav-button, .fav-form--heading .fav-button { width: 38px; height: 38px; box-shadow: none; }
.fav-form--heading .fav-button { border: 1px solid var(--border); }

/* Home: spotlight + recently used */
.home-grid { display: grid; grid-template-columns: minmax(0, 1.9fr) minmax(300px, 1fr); gap: 20px; }
.spotlight { position: relative; min-height: 310px; display: grid; }
.spotlight__slide { position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); border: 1px solid var(--hero-border); border-radius: var(--r-lg); background: radial-gradient(520px 320px at 88% 30%, oklch(.58 .16 var(--hue) / .55), transparent 70%), var(--hero-base); color: var(--hero-ink); animation: spotlight-in .35s ease; }
@keyframes spotlight-in { from { opacity: 0; } to { opacity: 1; } }
.spotlight__copy { position: relative; z-index: 1; display: flex; flex-direction: column; justify-content: space-between; gap: 20px; padding: 32px 0 28px 36px; }
.spotlight__intro { display: flex; flex-direction: column; gap: 12px; }
.spotlight__eyebrow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--hero-muted); font-size: 12px; }
.spotlight__tag { padding: 5px 10px; border-radius: 99px; background: var(--c-solid); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.spotlight__title { margin: 0; font-size: 38px; font-weight: 700; letter-spacing: -.025em; line-height: 1.05; text-wrap: balance; }
.spotlight__desc { max-width: 420px; margin: 0; color: var(--hero-muted); font-size: 15px; line-height: 1.55; text-wrap: pretty; }
.spotlight__bottom { display: flex; flex-direction: column; gap: 18px; }
.spotlight__stats { display: flex; flex-wrap: wrap; gap: 22px; }
.spotlight__stats div { display: flex; flex-direction: column; gap: 2px; }
.spotlight__stats strong { font-size: 22px; font-weight: 700; letter-spacing: -.01em; }
.spotlight__stats span { color: var(--hero-muted); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.spotlight__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding-right: 96px; }
.spotlight__visual { position: relative; }
.spotlight__card { position: absolute; width: 380px; aspect-ratio: 16 / 10; border-radius: 10px; }
.spotlight__card--back { top: 44px; left: 40px; width: 360px; border: 1px solid rgba(255, 255, 255, .14); background: repeating-linear-gradient(135deg, rgba(255, 255, 255, .06) 0 10px, rgba(255, 255, 255, .1) 10px 20px); transform: rotate(4deg); }
.spotlight__card--front { top: 30px; left: 10px; display: flex; flex-direction: column; gap: 14px; padding: 14px 18px; border: 1px solid rgba(255, 255, 255, .2); background: repeating-linear-gradient(135deg, var(--shot-a) 0 10px, var(--shot-b) 10px 20px); box-shadow: 0 24px 50px rgba(0, 0, 0, .35); transform: rotate(-2deg); }
.spotlight__window { display: flex; gap: 5px; }
.spotlight__window i { width: 8px; height: 8px; border-radius: 50%; background: rgba(19, 38, 61, .18); }
.spotlight__lines { display: flex; flex-direction: column; gap: 10px; padding: 16px; border-radius: 8px; background: rgba(255, 255, 255, .9); }
.spotlight__lines i { height: 8px; border-radius: 4px; background: oklch(.9 .04 var(--hue)); }
.spotlight__lines i:nth-child(1) { width: 58%; background: oklch(.6 .14 var(--hue) / .7); }
.spotlight__lines i:nth-child(2) { width: 88%; }
.spotlight__lines i:nth-child(3) { width: 74%; }
.spotlight__lines i:nth-child(4) { width: 42%; }
.spotlight__chip { position: absolute; right: 24px; bottom: 26px; width: 64px; height: 64px; display: flex; align-items: center; justify-content: center; border-radius: 18px; background: var(--c-solid); color: #fff; box-shadow: 0 12px 30px rgba(0, 0, 0, .35); }
.spotlight__chip img { width: 34px; height: 34px; object-fit: contain; }
.spotlight__dots { position: absolute; z-index: 2; left: 36px; bottom: 14px; display: flex; gap: 6px; }
.spotlight__dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 99px; background: rgba(255, 255, 255, .35); cursor: pointer; transition: width .2s ease; }
.spotlight__dots button[aria-current="true"] { width: 24px; background: #fff; }
.spotlight:has(.spotlight__dots) .spotlight__copy { padding-bottom: 40px; }

.panel { border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--card-shadow); }
.recent { display: flex; flex-direction: column; gap: 14px; padding: 22px 22px 18px; }
.recent__head { display: flex; align-items: center; justify-content: space-between; }
.recent__head h2 { margin: 0; font-size: 15px; font-weight: 700; }
.recent__head a { color: var(--muted); font-size: 12px; font-weight: 600; text-decoration: none; }
.recent__head a:hover { color: var(--ink); }
.recent__list { display: flex; flex-direction: column; gap: 2px; margin: 0; padding: 0; list-style: none; }
.recent__item { display: flex; align-items: center; gap: 12px; padding: 9px 8px; border-radius: var(--r-sm); color: var(--ink); text-decoration: none; }
.recent__item:hover { background: var(--hover); }
.recent__chip { width: 38px; height: 38px; flex: none; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; background: var(--c-solid); color: #fff; }
.recent__text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.recent__text strong { overflow: hidden; font-size: 14px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.recent__text small { color: var(--muted); font-size: 12px; }
.recent__arrow { color: var(--muted); }
.recent__empty { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 12px; color: var(--muted); }
.recent__empty p { margin: 0; font-size: 14px; line-height: 1.5; }
.recent__empty-mark { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border-radius: 12px; background: var(--hover); color: var(--ink); }

/* Category hero and list headings */
.category-hero { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; padding: 28px 32px; border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--c-art); }
.category-hero__chip { width: 76px; height: 76px; flex: none; display: flex; align-items: center; justify-content: center; border-radius: 18px; background: var(--c-solid); color: #fff; box-shadow: 0 12px 28px var(--c-glow); }
.category-hero__copy { flex: 1; min-width: 200px; display: flex; flex-direction: column; gap: 6px; }
.category-hero__copy h1, .list-heading h1 { margin: 0; font-size: 34px; font-weight: 700; letter-spacing: -.02em; line-height: 1.1; }
.category-hero__copy p, .list-heading p { margin: 0; color: var(--muted); font-size: 15px; }
.category-hero__progress { width: 260px; display: flex; flex-direction: column; gap: 8px; }
.category-hero__progress-row { display: flex; justify-content: space-between; font-size: 13px; }
.category-hero__progress-row span { font-weight: 600; }
.category-hero__progress small { color: var(--muted); font-size: 12px; }
.list-heading { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; }
.list-heading > div { display: flex; flex-direction: column; gap: 6px; }
.count-pill { padding: 6px 12px; border: 1px solid var(--border); border-radius: 99px; color: var(--muted); font-size: 12px; font-weight: 600; }
.catalog-empty { margin-top: 28px; padding: 56px 24px; display: flex; flex-direction: column; align-items: center; gap: 12px; border: 1px dashed var(--border-strong); border-radius: var(--r); color: var(--muted); font-size: 15px; text-align: center; }
.catalog-empty h2 { margin: 0; color: var(--ink); font-size: 20px; }
.catalog-empty p { max-width: 520px; margin: 0; line-height: 1.6; }

/* Tile groups */
.tile-group { margin-top: 36px; }
.catalog > .tile-group:first-child { margin-top: 0; }
.tile-group__head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.tile-group__chip { width: 32px; height: 32px; flex: none; display: inline-flex; align-items: center; justify-content: center; border-radius: var(--r-sm); background: var(--c-solid); color: #fff; }
.tile-group__head h2 { margin: 0; font-size: 20px; font-weight: 700; letter-spacing: -.01em; }
.tile-group__progress { padding: 3px 8px; border-radius: 99px; background: var(--c-tint); color: var(--ink); font-size: 12px; font-weight: 600; white-space: nowrap; }
.tile-group__spacer { flex: 1; }
.tile-group__all { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); font-size: 13px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.tile-group__all:hover { color: var(--ink); }
.tile-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(262px, 1fr)); gap: 18px; }

.tile { position: relative; overflow: hidden; display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: var(--r); background: var(--surface); box-shadow: var(--card-shadow); transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.tile:hover { transform: translateY(-3px); border-color: var(--border-hover); box-shadow: var(--shadow); }
.tile__art { position: relative; height: 112px; display: flex; align-items: center; justify-content: center; background: var(--c-art); }
.tile__chip { width: 60px; height: 60px; display: flex; align-items: center; justify-content: center; border-radius: 16px; background: var(--c-solid); color: #fff; box-shadow: 0 10px 24px var(--c-glow); }
.tile__chip img { width: 32px; height: 32px; object-fit: contain; }
.tile--locked .tile__chip { filter: saturate(.55); }
.tile--planned .tile__chip { filter: saturate(.35); opacity: .8; }
.lock-pill--planned { background: var(--surface); color: var(--muted); border: 1px dashed var(--border-strong); }
.tile__badges { position: absolute; top: 10px; left: 10px; display: flex; gap: 5px; }
.tile__body { flex: 1; display: flex; flex-direction: column; gap: 6px; padding: 16px 18px 0; }
.tile__title { margin: 0; font-size: 16px; font-weight: 700; letter-spacing: -.005em; line-height: 1.3; }
.tile__desc { flex: 1; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; text-wrap: pretty; }
.tile__meta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 8px; color: var(--muted); font-size: 12px; }
.tile__meta span { display: inline-flex; align-items: center; gap: 5px; }
.tile__foot { display: flex; align-items: center; gap: 8px; margin-top: 14px; padding: 12px 18px 16px; }

/* Detail dialog */
.detail { width: 100%; max-width: 1000px; max-height: calc(100dvh - 80px); padding: 0; border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--surface); color: var(--ink); box-shadow: 0 40px 100px rgba(0, 0, 0, .35); }
.detail::backdrop { background: var(--overlay); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.detail[open] { display: flex; animation: detail-in .2s ease; }
@keyframes detail-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.detail__panel { width: 100%; display: flex; flex-direction: column; overflow: auto; }
.detail__head { position: relative; display: flex; align-items: center; gap: 22px; padding: 30px 110px 30px 32px; background: var(--c-art); }
.detail__chip { width: 76px; height: 76px; flex: none; display: flex; align-items: center; justify-content: center; border-radius: 18px; background: var(--c-solid); color: #fff; box-shadow: 0 12px 28px var(--c-glow); }
.detail__chip img, .detail__preview-chip img { width: 40px; height: 40px; object-fit: contain; }
.detail__heading { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.detail__eyebrow { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; }
.detail__heading h2 { margin: 0; font-size: 32px; font-weight: 700; letter-spacing: -.02em; line-height: 1.1; }
.detail__heading p { max-width: 640px; margin: 0; color: var(--muted); font-size: 15px; line-height: 1.5; text-wrap: pretty; }
.detail__actions { position: absolute; top: 16px; right: 16px; display: flex; gap: 6px; }
.detail__body { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 28px; padding: 28px 32px; }
.detail__preview { aspect-ratio: 16 / 10; display: flex; align-items: center; justify-content: center; border: 1px solid var(--border); border-radius: var(--r); background: repeating-linear-gradient(135deg, var(--stripe-a) 0 10px, var(--stripe-b) 10px 20px); box-shadow: var(--card-shadow); }
.detail__preview-chip { width: 96px; height: 96px; display: flex; align-items: center; justify-content: center; border-radius: 26px; background: var(--c-solid); color: #fff; box-shadow: 0 18px 40px var(--c-glow); }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-content: start; }
.fact { display: flex; flex-direction: column; gap: 6px; padding: 14px; border: 1px solid var(--border); border-radius: var(--r-sm); background: var(--surface-2); color: var(--c-solid); }
.fact--wide { grid-column: span 2; }
.fact--locked { color: var(--muted); }
.fact--notice { color: var(--warning); border-color: var(--warning-line); background: var(--warning-bg); }
.fact__text { color: var(--ink); font-size: 13px; line-height: 1.5; }
.fact__value { color: var(--ink); font-size: 18px; font-weight: 700; letter-spacing: -.01em; line-height: 1.2; overflow-wrap: anywhere; }
.fact__label { color: var(--muted); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; }
.detail__foot { position: sticky; bottom: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 18px 32px; border-top: 1px solid var(--border); background: var(--surface-2); }
.detail__note { color: var(--muted); font-size: 13px; }
.detail__spacer { flex: 1; }
.detail .btn--lg { min-height: 48px; padding: 0 24px; font-size: 15px; }

/* Toast and flash messages */
.toast { position: fixed; left: 50%; bottom: 28px; z-index: 60; max-width: calc(100% - 32px); display: flex; align-items: center; gap: 10px; padding: 12px 20px 12px 16px; border-radius: 99px; background: var(--toast-bg); color: var(--toast-fg); box-shadow: 0 12px 30px rgba(0, 0, 0, .25); font-size: 14px; font-weight: 500; transform: translateX(-50%); animation: toast-in .2s ease; }
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 8px); } to { opacity: 1; transform: translate(-50%, 0); } }
.messages { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.message { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid var(--success-line); border-radius: var(--r-sm); background: var(--success-bg); color: var(--ink); }
.message .icon { color: var(--success); }

/* Agent pages */
.agent-page { max-width: 1600px; margin: 0 auto; }
.agent-heading { margin-bottom: 22px; }
.back-link { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 14px; color: var(--muted); font-size: 13px; font-weight: 600; text-decoration: none; }
.back-link:hover { color: var(--ink); }
.agent-heading__row { display: flex; align-items: center; gap: 16px; }
.agent-heading__chip { width: 56px; height: 56px; flex: none; display: flex; align-items: center; justify-content: center; border-radius: 15px; background: var(--c-solid); color: #fff; box-shadow: 0 10px 24px var(--c-glow); }
.agent-heading__chip img { width: 30px; height: 30px; object-fit: contain; }
.agent-heading__copy { flex: 1; min-width: 0; }
.agent-heading__category { color: var(--c-solid); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-decoration: none; text-transform: uppercase; }
.agent-heading__category:hover { text-decoration: underline; }
.agent-heading h1 { margin: 3px 0 0; font-size: clamp(26px, 3.4vw, 34px); font-weight: 700; letter-spacing: -.02em; line-height: 1.1; }
.agent-heading p { max-width: 900px; margin: 6px 0 0; color: var(--muted); font-size: 14px; line-height: 1.5; }
.eyebrow { color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }

/* Sign-in */
.login-layout { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: stretch; gap: 24px; }
.login-hero { position: relative; overflow: hidden; min-height: 520px; display: flex; flex-direction: column; justify-content: space-between; gap: 28px; padding: 40px; border: 1px solid var(--hero-border); border-radius: var(--r-lg); background: radial-gradient(560px 360px at 90% 20%, rgba(212, 42, 60, .35), transparent 70%), var(--hero-base); color: var(--hero-ink); }
.login-hero__copy { display: flex; flex-direction: column; gap: 14px; }
.login-hero__tag { align-self: flex-start; padding: 5px 10px; border-radius: 99px; background: var(--red); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.login-hero h1 { margin: 0; font-size: clamp(36px, 4.6vw, 54px); font-weight: 700; letter-spacing: -.03em; line-height: 1.02; }
.login-hero p { max-width: 460px; margin: 0; color: var(--hero-muted); font-size: 16px; line-height: 1.6; }
.login-hero__points { display: flex; flex-direction: column; gap: 12px; margin: 0; padding: 0; list-style: none; }
.login-hero__points li { display: flex; align-items: center; gap: 12px; color: var(--hero-muted); font-size: 14px; }
.login-hero__points .icon { color: var(--hero-ink); }
.login-hero__visual { position: absolute; top: 40px; right: 40px; display: grid; grid-template-columns: repeat(2, 52px); gap: 12px; transform: rotate(-6deg); }
.login-hero__visual span { width: 52px; height: 52px; display: flex; align-items: center; justify-content: center; border-radius: 15px; background: var(--c-solid); color: #fff; box-shadow: 0 12px 30px rgba(0, 0, 0, .3); }
.login-card { align-self: center; width: 100%; max-width: 440px; justify-self: center; padding: 34px; border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow); }
.login-card h2 { margin: 0 0 22px; font-size: 26px; font-weight: 700; letter-spacing: -.02em; }
.form-stack { display: flex; flex-direction: column; gap: 17px; }
.form-stack label { display: flex; flex-direction: column; gap: 7px; color: var(--ink); font-size: 13px; font-weight: 600; }
.form-stack input, .html-form textarea, .html-form select { width: 100%; border: 1px solid var(--border-strong); border-radius: var(--r-sm); background: var(--field-bg); color: var(--ink); }
.form-stack input { height: 46px; padding: 0 13px; }
.form-stack input:hover, .html-form textarea:hover, .html-form select:hover { border-color: var(--border-hover); }
.divider { display: flex; align-items: center; gap: 12px; margin: 22px 0; color: var(--muted); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; }
.divider::before, .divider::after { content: ""; height: 1px; flex: 1; background: var(--border); }
.login-note { margin: 20px 0 0; color: var(--muted); font-size: 12px; text-align: center; }
.form-error { margin-bottom: 16px; padding: 11px 13px; border-left: 3px solid var(--danger); border-radius: 4px; background: var(--danger-bg); color: var(--danger); font-size: 13px; line-height: 1.45; }

/* Container-driven layout of the catalog */
@container (max-width: 1180px) {
  .home-grid { grid-template-columns: minmax(0, 1fr); }
}
@container (max-width: 820px) {
  .spotlight__slide { grid-template-columns: minmax(0, 1fr); }
  .spotlight__visual { display: none; }
  .spotlight__copy { padding: 24px 20px 20px; }
  .spotlight__actions { padding-right: 0; }
  .spotlight__dots { left: 20px; }
}
@media (max-width: 900px) {
  .detail__body { grid-template-columns: minmax(0, 1fr); }
  .detail__preview { display: none; }
}


/* Shared agent workspace, error, profile and administration components */
/* Shared agent dropdowns retain native form semantics while using the same visual language. */
.agent-page .agent-select {
  min-height: 36px;
  appearance: none;
  padding: 0 34px 0 10px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background-color: var(--surface);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14' fill='none'%3E%3Cpath d='m3.5 5.25 3.5 3.5 3.5-3.5' stroke='%235b7487' stroke-width='1.45' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-position: right 10px center;
  background-repeat: no-repeat;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
}
.agent-page .agent-select:hover { border-color: var(--border-hover); background-color: var(--surface-2); }
.agent-page .agent-select:disabled { cursor: not-allowed; opacity: .58; }

@supports (appearance: base-select) {
  .agent-page .agent-select,
  .agent-page .agent-select::picker(select) { appearance: base-select; }
  .agent-page .agent-select { align-items: center; padding-right: 9px; background-image: none; }
  .agent-page .agent-select::picker-icon {
    width: 14px;
    height: 14px;
    content: "";
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14' fill='none'%3E%3Cpath d='m3.5 5.25 3.5 3.5 3.5-3.5' stroke='%235b7487' stroke-width='1.45' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px 14px no-repeat;
    transition: transform 140ms ease;
  }
  .agent-page .agent-select:open::picker-icon { transform: rotate(180deg); }
  .agent-page .agent-select::picker(select) {
    margin-top: 6px;
    padding: 5px;
    border: 1px solid var(--line-strong);
    border-radius: 10px;
    background: var(--surface);
    box-shadow: 0 14px 34px rgba(14, 54, 82, .18);
  }
  .agent-page .agent-select option {
    min-height: 34px;
    padding: 8px 10px;
    border-radius: 7px;
    color: var(--ink);
    font-size: 12px;
    font-weight: 600;
  }
  .agent-page .agent-select option:hover,
  .agent-page .agent-select option:focus-visible { background: var(--surface-subtle); }
  .agent-page .agent-select option:checked { background: var(--blue-soft); color: var(--navy); }
  .agent-page .agent-select option::checkmark { display: none; }
}
.agent-workspace { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: 0 1px 2px rgba(14, 54, 82, .03); overflow: hidden; }
.agent-toolbar { padding: 18px 22px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; border-bottom: 1px solid var(--line); background: var(--surface-subtle); }
.agent-toolbar__options { display: flex; align-items: center; gap: 18px; margin-right: auto; flex-wrap: wrap; }
.check-field { display: inline-flex; align-items: center; gap: 8px; color: var(--body); font-size: 13px; font-weight: 650; cursor: pointer; }
.check-field input { width: 16px; height: 16px; accent-color: var(--blue); }
.select-field { display: inline-flex; align-items: center; gap: 8px; color: var(--body); font-size: 13px; font-weight: 650; }
.select-field select { width: auto; height: 36px; padding: 0 30px 0 10px; }
.html-editors { display: grid; grid-template-columns: 1fr 1fr; }
.editor-panel + .editor-panel { border-left: 1px solid var(--line); }
.editor-panel__head { min-height: 48px; padding: 0 18px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.editor-panel__meta { font-weight: 600; letter-spacing: 0; text-transform: none; }
.html-form textarea { display: block; min-height: 460px; padding: 18px; resize: vertical; border: 0; border-radius: 0; background: var(--surface-2); color: var(--ink); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px; line-height: 1.65; tab-size: 2; }
.html-form textarea:focus-visible { border-radius: 0; box-shadow: inset var(--focus); }
.editor-panel--output textarea { background: var(--surface-2); }
.field-error { padding: 10px 18px; background: var(--danger-bg); color: var(--danger); font-size: 13px; }


.error-page { max-width: 720px; margin: 60px auto; text-align: center; }
.error-code { margin-bottom: 10px; color: var(--faint); font-size: 88px; font-weight: 850; letter-spacing: -.06em; line-height: 1; }
.error-page h1 { margin: 10px 0 0; color: var(--navy); font-size: 33px; }
.error-page p { margin: 14px auto 26px; color: var(--body); line-height: 1.65; }
/* Local account profile */
.profile-page { max-width: 1080px; margin: 0 auto; }
.profile-heading { margin-bottom: 28px; }
.profile-heading h1 { margin: 7px 0 0; color: var(--navy); font-size: clamp(34px, 5vw, 48px); letter-spacing: -.035em; line-height: 1.06; }
.profile-heading p { margin: 10px 0 0; color: var(--body); font-size: 16px; line-height: 1.55; }
.profile-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 18px; align-items: start; }
.profile-card { padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: 0 1px 2px rgba(14, 54, 82, .03); }
.profile-card__heading { display: flex; align-items: flex-start; gap: 13px; margin-bottom: 24px; }
.profile-card__heading > svg { width: 40px; height: 40px; flex: none; padding: 9px; border: 1px solid var(--border); border-radius: 10px; background: var(--blue-soft); color: var(--blue); }
.profile-card__heading h2 { margin: 1px 0 0; color: var(--navy); font-size: 20px; }
.profile-card__heading p { margin: 5px 0 0; color: var(--muted); font-size: 12px; line-height: 1.45; }
.profile-form .button { align-self: flex-start; margin-top: 3px; }
.profile-form__help { margin-top: -9px; }

/* First-party platform administration */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.admin-shell { display: flex; flex-direction: column; gap: 24px; }
.admin-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; }
.admin-header h1 { margin: 7px 0 0; color: var(--navy); font-size: clamp(36px, 5vw, 52px); letter-spacing: -.04em; line-height: 1; }
.admin-header p, .panel-heading p { margin: 10px 0 0; color: var(--body); line-height: 1.55; }
.admin-nav { display: flex; gap: 5px; overflow-x: auto; padding: 6px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); scrollbar-width: none; }
.admin-nav::-webkit-scrollbar { display: none; }
.admin-nav a { flex: none; padding: 10px 15px; border-radius: 8px; color: var(--body); font-size: 13px; font-weight: 750; text-decoration: none; }
.admin-nav a:hover { background: var(--surface); color: var(--blue); }
.admin-nav a[aria-current="page"] { background: var(--primary); color: var(--primary-ink); box-shadow: 0 5px 15px rgba(14, 54, 82, .15); }
.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
@media (min-width: 1101px) { .stat-grid:has(> :nth-child(5)) { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.stat-card { min-height: 150px; display: flex; flex-direction: column; justify-content: space-between; padding: 21px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--ink); text-decoration: none; transition: border-color 160ms ease, box-shadow 160ms ease; }
.stat-card:hover { border-color: var(--border-hover); box-shadow: var(--shadow); }
.stat-card span { color: var(--blue); font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.stat-card strong { margin-block: auto; color: var(--navy); font-size: 38px; line-height: 1; }
.stat-card small { color: var(--muted); font-size: 12px; }
.admin-dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(340px, .88fr); gap: 18px; align-items: start; }
.admin-panel, .admin-side-card, .advanced-admin-callout { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: 0 1px 2px rgba(14, 54, 82, .03); }
.admin-panel { overflow: hidden; }
.panel-heading { min-height: 106px; padding: 24px 26px; display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line); }
.panel-heading--actions { align-items: center; }
.panel-heading h2 { margin: 6px 0 0; color: var(--navy); font-size: 25px; letter-spacing: -.025em; }
.panel-heading p { font-size: 14px; }
.panel-heading > a:not(.button) { flex: none; color: var(--blue); font-size: 12px; font-weight: 750; text-decoration: none; }
.admin-action-list { display: flex; flex-direction: column; }
.admin-action-list > a { min-height: 79px; display: grid; grid-template-columns: 42px 1fr auto; align-items: center; gap: 15px; padding: 14px 24px; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.admin-action-list > a:last-child { border-bottom: 0; }
.admin-action-list > a:hover { background: var(--surface-subtle); }
.admin-action-list__icon { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--border); border-radius: 10px; background: var(--blue-soft); color: var(--blue); font-size: 12px; font-weight: 850; }
.admin-action-list strong, .admin-action-list small { display: block; }
.admin-action-list strong { color: var(--navy); font-size: 14px; }
.admin-action-list small { margin-top: 4px; color: var(--muted); font-size: 12px; line-height: 1.4; }
.activity-list { list-style: none; margin: 0; padding: 8px 24px 13px; }
.activity-list li { position: relative; min-height: 57px; display: grid; grid-template-columns: 12px 1fr; align-items: center; gap: 12px; border-bottom: 1px solid var(--line); }
.activity-list li:last-child { border-bottom: 0; }
.activity-list__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--aqua); box-shadow: 0 0 0 4px var(--hover); }
.activity-list strong, .activity-list small { display: block; }
.activity-list strong { color: var(--ink); font-size: 13px; }
.activity-list small { margin-top: 3px; color: var(--muted); font-size: 11px; }
.advanced-admin-callout { display: flex; align-items: center; justify-content: space-between; gap: 28px; padding: 24px 26px; background: var(--surface); }
.advanced-admin-callout h2 { margin: 5px 0 0; color: var(--navy); font-size: 20px; }
.advanced-admin-callout p { max-width: 720px; margin: 7px 0 0; color: var(--body); font-size: 13px; line-height: 1.5; }
.admin-search { display: grid; grid-template-columns: max-content minmax(0, 1fr); align-items: center; gap: 14px; padding: 18px 26px; border-bottom: 1px solid var(--line); background: var(--surface-subtle); }
.admin-search label { display: flex; align-items: center; min-height: 42px; color: var(--ink); font-size: 12px; font-weight: 750; line-height: 1.3; }
.admin-search__field { position: relative; min-width: 0; }
.admin-search__field > svg { position: absolute; top: 50%; left: 13px; width: 17px; height: 17px; translate: 0 -50%; color: var(--muted); pointer-events: none; }
.admin-search input { width: 100%; height: 42px; padding: 0 38px 0 40px; border: 1px solid var(--line-strong); border-radius: 9px; background: var(--surface); color: var(--ink); }
.admin-search input::-webkit-search-cancel-button { cursor: pointer; }
.admin-search.is-loading .admin-search__field::after { position: absolute; top: 50%; right: 13px; width: 14px; height: 14px; margin-top: -7px; border: 2px solid var(--line-strong); border-top-color: var(--blue); border-radius: 50%; content: ""; animation: admin-search-spin 650ms linear infinite; }
.admin-search.is-loading input::-webkit-search-cancel-button { visibility: hidden; }
@keyframes admin-search-spin { to { transform: rotate(360deg); } }
.admin-table-wrap { width: 100%; overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th { padding: 13px 18px; background: var(--surface-subtle); color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .08em; text-align: left; text-transform: uppercase; white-space: nowrap; }
.admin-table td { min-width: 105px; padding: 17px 18px; border-top: 1px solid var(--line); color: var(--body); font-size: 13px; vertical-align: middle; }
.admin-table tbody tr:first-child td { border-top: 0; }
.admin-table tbody tr:hover { background: var(--surface-2); }
.admin-table td:first-child { min-width: 240px; }
.admin-table td:last-child { text-align: right; white-space: nowrap; }
.admin-table strong, .admin-table small { display: block; }
.admin-table strong { color: var(--ink); font-size: 13.5px; }
.admin-table small { margin-top: 4px; color: var(--muted); font-size: 11px; line-height: 1.4; }
.admin-table__mobile-only { display: none; }
.admin-table__row-link { color: var(--ink); text-decoration: none; }
.admin-table__row-link:hover { color: var(--blue); }
.table-action { color: var(--blue); font-size: 12px; font-weight: 800; text-decoration: none; }
.state-pill { display: inline-flex; margin: 2px 3px 2px 0; padding: 5px 8px; border-radius: 999px; background: var(--success-bg); color: var(--success); font-size: 10px; font-weight: 800; letter-spacing: .035em; text-transform: uppercase; }
.state-pill--muted { background: var(--hover); color: var(--muted); }
.admin-empty { padding: 28px !important; color: var(--muted); font-size: 13px; text-align: center !important; }
.admin-shell > .back-link { margin-bottom: 0; }
.admin-edit-layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 18px; align-items: start; }
.admin-edit-sidebar { display: flex; flex-direction: column; gap: 16px; }
.admin-side-card { padding: 22px; }
.admin-side-card h3 { margin: 6px 0 0; color: var(--navy); font-size: 18px; }
.admin-side-card p { margin: 10px 0 0; color: var(--body); font-size: 13px; line-height: 1.55; }
.admin-side-card > small { display: block; margin-top: 13px; color: var(--muted); font-size: 11px; line-height: 1.5; }
.admin-side-card dl { margin: 17px 0 0; }
.admin-side-card dl div { display: flex; justify-content: space-between; gap: 14px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 12px; }
.admin-side-card dt { color: var(--muted); }.admin-side-card dd { margin: 0; color: var(--ink); font-weight: 700; text-align: right; }
.compact-list { list-style: none; margin: 14px 0 0; padding: 0; }
.compact-list li { padding: 9px 0; border-top: 1px solid var(--line); color: var(--body); font-size: 12px; }
.admin-form-panel { overflow: visible; }
.admin-form-body { display: flex; flex-direction: column; }
.admin-form-section { padding: 25px 26px 27px; }
.admin-form-section + .admin-form-section { border-top: 1px solid var(--line); }
.admin-form-section__heading { margin-bottom: 19px; }
.admin-form-section__heading h3 { margin: 0; color: var(--navy); font-size: 16px; letter-spacing: -.01em; }
.admin-form-section__heading p { margin: 5px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.admin-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 22px; }
.admin-form-grid--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.admin-field { min-width: 0; }
.admin-field--full { grid-column: 1 / -1; }
.admin-field--narrow { max-width: 560px; }
.admin-field > label:not(.admin-check) { display: block; margin-bottom: 8px; color: var(--ink); font-size: 12px; font-weight: 780; }
.admin-field > input:not([type="checkbox"]), .admin-field > select, .admin-field > textarea { width: 100%; min-height: 44px; padding: 9px 11px; border: 1px solid var(--line-strong); border-radius: 9px; background: var(--surface); color: var(--ink); }
.admin-field > textarea { min-height: 110px; resize: vertical; }
.admin-field--choices > div { max-height: 250px; overflow-y: auto; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-subtle); }
.admin-field--choices > div > div + div { border-top: 1px solid var(--line); }
.admin-field--choices label { min-height: 43px; display: flex; align-items: center; gap: 10px; padding: 9px 12px; color: var(--body); font-size: 12.5px; cursor: pointer; }
.admin-field--choices label:hover { background: var(--surface); }
.admin-field input[type="checkbox"] { width: 16px; height: 16px; flex: none; accent-color: var(--blue); }
.admin-field--toggle { display: flex; flex-direction: column; }
.admin-check { min-height: 70px; height: 100%; display: flex; align-items: flex-start; gap: 11px; padding: 14px 15px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-subtle); color: var(--ink); cursor: pointer; }
.admin-check input { margin-top: 2px; }
.admin-check__copy { display: flex; flex-direction: column; gap: 4px; }
.admin-check__copy strong { font-size: 12.5px; line-height: 1.3; }
.admin-check__copy small { color: var(--muted); font-size: 11px; font-weight: 500; line-height: 1.45; }
.choice-empty { min-height: 44px; display: flex; align-items: center; padding: 10px 12px; border: 1px dashed var(--line-strong); border-radius: 10px; background: var(--surface-subtle); color: var(--muted); font-size: 12px; }
.field-help { margin-top: 7px; color: var(--muted); font-size: 11px; line-height: 1.45; }
.field-help ul { margin: 6px 0 0; padding-left: 18px; }
.field-error-inline { margin-top: 7px; color: var(--danger); font-size: 12px; }
.admin-form-actions { display: flex; gap: 10px; padding: 20px 26px; border-top: 1px solid var(--line); background: var(--surface-subtle); }

@media (max-width: 1100px) {
  .admin-edit-layout { grid-template-columns: 1fr; }
  .admin-edit-sidebar { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 800px) {
  .html-editors { grid-template-columns: 1fr; }
  .editor-panel + .editor-panel { border-left: 0; border-top: 1px solid var(--line); }
  .html-form textarea { min-height: 330px; }
  .admin-header { align-items: flex-start; }
  .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-dashboard-grid, .admin-edit-layout { grid-template-columns: 1fr; }
  .admin-edit-sidebar { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .profile-grid { grid-template-columns: 1fr; }
}

@media (min-width: 681px) and (max-width: 1000px) {
  .admin-table th { padding-inline: 12px; }
  .admin-table td { min-width: 80px; padding-inline: 12px; }
  .admin-table td:first-child { min-width: 190px; }
}

@media (max-width: 680px) {
  .admin-table-wrap { overflow: hidden; }
  .admin-table { table-layout: fixed; }
  .admin-table th { padding: 10px; font-size: 9px; white-space: normal; }
  .admin-table td,
  .admin-table td:first-child,
  .admin-table td:last-child { min-width: 0; padding: 13px 10px; overflow: hidden; font-size: 12px; text-align: left; text-overflow: ellipsis; white-space: nowrap; }
  .admin-table td:first-child { min-width: 0; }
  .admin-table strong { overflow: hidden; font-size: 12.5px; text-overflow: ellipsis; white-space: nowrap; }
  .admin-table .state-pill { margin: 0; padding: 4px 7px; font-size: 9px; }
  .admin-table__mobile-only { display: table-cell; }
  .admin-table__mobile-hide, .admin-table__desktop-detail { display: none !important; }
  .admin-table__email { color: var(--body); text-overflow: ellipsis; }
  .admin-table--users th:nth-child(1), .admin-table--users td:nth-child(1) { width: 32%; }
  .admin-table--users th:nth-child(2), .admin-table--users td:nth-child(2) { width: 43%; }
  .admin-table--users th:nth-child(3), .admin-table--users td:nth-child(3) { width: 25%; }
  .admin-table--groups th:nth-child(1), .admin-table--groups td:nth-child(1) { width: 54%; }
  .admin-table--groups th:nth-child(2), .admin-table--groups td:nth-child(2),
  .admin-table--groups th:nth-child(3), .admin-table--groups td:nth-child(3) { width: 23%; }
  .admin-table--entra-groups th:nth-child(1), .admin-table--entra-groups td:nth-child(1) { width: 45%; }
  .admin-table--entra-groups th:nth-child(2), .admin-table--entra-groups td:nth-child(2) { width: 28%; }
  .admin-table--entra-groups th:nth-child(3), .admin-table--entra-groups td:nth-child(3) { width: 27%; }
  .admin-table--agents th:first-child, .admin-table--agents td:first-child { width: 58%; }
  .admin-table--agents th:nth-child(2), .admin-table--agents td:nth-child(2) { width: 42%; }
  .admin-table .admin-empty { display: table-cell; padding: 24px 16px !important; text-align: center !important; white-space: normal; }
}

@media (max-width: 520px) {
  .profile-card { padding: 21px 18px; }
  .agent-toolbar { align-items: stretch; }
  .agent-toolbar__options { width: 100%; }
  .agent-toolbar .button { flex: 1; }
  .admin-header { display: block; }
  .admin-header .button { margin-top: 18px; }
  .admin-nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); overflow: visible; }
  .admin-nav a { padding: 9px 5px; font-size: 11px; text-align: center; }
  .stat-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stat-card { min-height: 128px; padding: 17px; }
  .stat-card strong { font-size: 30px; }
  .panel-heading, .panel-heading--actions, .advanced-admin-callout { display: block; }
  .panel-heading .button, .advanced-admin-callout .button { margin-top: 17px; }
  .admin-action-list > a { padding-inline: 18px; }
  .admin-search { grid-template-columns: 1fr; gap: 7px; padding-inline: 18px; }
  .admin-search label { min-height: auto; }
  .admin-form-section { padding: 21px 18px 23px; }
  .admin-form-grid, .admin-form-grid--three { grid-template-columns: 1fr; }
  .admin-field--full { grid-column: 1; }
  .admin-field--choices { grid-column: 1; }
  .admin-form-actions { padding: 18px; }
  .admin-edit-sidebar { display: flex; }
}

/* Page headings inherited from the previous layout, aligned to the catalog scale */
.admin-header h1, .profile-heading h1 { font-size: clamp(28px, 3.4vw, 34px); font-weight: 700; letter-spacing: -.02em; line-height: 1.1; }
.admin-header h1, .profile-heading h1, .panel-heading h2, .admin-side-card h3, .admin-form-section__heading h3, .advanced-admin-callout h2, .profile-card__heading h2, .error-page h1 { color: var(--ink); }

/* Spotlight: "Your own agent" slide */
.spotlight__steps { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 0; padding: 0; list-style: none; }
.spotlight__steps li { display: flex; align-items: center; gap: 9px; color: var(--hero-muted); font-size: 13px; font-weight: 600; }
.spotlight__steps strong { width: 28px; height: 28px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid rgba(255, 255, 255, .3); border-radius: 50%; color: var(--hero-ink); font-size: 13px; }
.spotlight__steps li + li::before { content: ""; width: 18px; height: 1px; background: rgba(255, 255, 255, .3); }
.spotlight__blueprint { flex: 1; display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; padding: 16px; border: 1.5px dashed oklch(.6 .14 var(--hue) / .6); border-radius: 8px; background: rgba(255, 255, 255, .85); }
.spotlight__blueprint i { border-radius: 6px; background: oklch(.92 .04 var(--hue)); }
.spotlight__blueprint i:nth-child(2) { background: oklch(.6 .14 var(--hue) / .55); }

/* Custom agent requests */
.request-page { max-width: 1180px; margin: 0 auto; }
.request-hero { display: flex; align-items: center; gap: 22px; margin-bottom: 22px; padding: 26px 30px; border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--c-art); }
.request-hero__chip { width: 64px; height: 64px; flex: none; display: flex; align-items: center; justify-content: center; border-radius: 18px; background: var(--c-solid); color: #fff; box-shadow: 0 12px 28px var(--c-glow); }
.request-hero h1 { margin: 0; font-size: 30px; font-weight: 700; letter-spacing: -.02em; }
.request-hero p { max-width: 720px; margin: 6px 0 0; color: var(--muted); font-size: 15px; line-height: 1.5; }
.request-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; align-items: start; }
.request-form { display: flex; flex-direction: column; gap: 18px; padding: 26px; }
.request-field { display: flex; flex-direction: column; gap: 7px; }
.request-field label, .request-field legend { color: var(--ink); font-size: 13px; font-weight: 600; }
.request-field fieldset { margin: 0; padding: 0; border: 0; }
.request-field legend { margin-bottom: 7px; padding: 0; }
.request-field__req { color: var(--red); }
.request-field input[type="text"], .request-field input[type="email"], .request-field textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--border-strong); border-radius: var(--r-sm); background: var(--field-bg); color: var(--ink); line-height: 1.5; }
.request-field textarea { resize: vertical; }
.request-field--error input, .request-field--error textarea { border-color: var(--danger); }
.request-choices { display: flex; flex-wrap: wrap; gap: 8px; }
.request-choice { display: inline-flex; align-items: center; gap: 8px; padding: 9px 13px; border: 1px solid var(--border); border-radius: var(--r-sm); cursor: pointer; font-weight: 500 !important; }
.request-choice:has(input:checked) { border-color: var(--primary); background: var(--hover); }
.request-choice input { accent-color: var(--primary); }
.guest-contact { display: flex; flex-direction: column; gap: 12px; margin: 0; padding: 16px 0 0; border: 0; border-top: 1px solid var(--border); }
.guest-contact legend { float: left; width: 100%; margin: 0 0 12px; padding: 0; color: var(--ink); font-size: 13px; font-weight: 700; }
.guest-contact__grid { clear: both; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.guest-contact__hint { color: var(--muted); font-size: 12.5px; line-height: 1.5; }
@media (max-width: 640px) { .guest-contact__grid { grid-template-columns: 1fr; } }
.request-form__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; padding-top: 6px; color: var(--muted); font-size: 13px; }
.request-aside { display: flex; flex-direction: column; gap: 16px; }
.request-steps, .request-estimate { padding: 22px; }
.request-steps h2, .request-estimate h2 { margin: 0 0 12px; font-size: 16px; }
.request-steps ol { display: flex; flex-direction: column; gap: 14px; margin: 0; padding: 0; list-style: none; }
.request-steps li { display: flex; gap: 12px; }
.request-steps li > span { width: 28px; height: 28px; flex: none; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--primary); color: var(--primary-ink); font-size: 13px; font-weight: 700; }
.request-steps strong, .request-steps small { display: block; }
.request-steps small { margin-top: 2px; color: var(--muted); font-size: 12.5px; line-height: 1.45; }
.request-estimate p { margin: 0 0 14px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.request-list { display: flex; flex-direction: column; gap: 14px; margin: 24px 0 0; padding: 0; list-style: none; }
.request-item { padding: 20px 22px; }
.request-item__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.request-item h2 { margin: 0; font-size: 17px; }
.request-item small { color: var(--muted); font-size: 12px; }
.request-item p { margin: 10px 0 0; color: var(--body); font-size: 14px; line-height: 1.5; }
.request-item__note { display: flex; gap: 10px; margin-top: 12px; padding: 12px 14px; border-radius: var(--r-sm); background: var(--surface-2); color: var(--ink); font-size: 13px; line-height: 1.5; }
.request-status { display: inline-flex; flex: none; padding: 4px 10px; border-radius: 99px; background: var(--hover); color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; }
.request-status--new, .request-status--reviewing { background: var(--accent-soft); color: var(--accent); }
.request-status--estimated, .request-status--in_progress { background: var(--warning-bg); color: var(--warning); }
.request-status--done { background: var(--success-bg); color: var(--success); }
.request-status--draft { border: 1px dashed var(--border-strong); background: transparent; color: var(--muted); }
.request-list__heading { margin: 28px 0 0; color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.request-list__heading + .request-list { margin-top: 12px; }
.request-item h2 a { color: inherit; text-decoration: none; }
.request-item h2 a:hover { text-decoration: underline; }
.request-item__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 14px; }
.request-item__price { color: var(--ink); font-size: 15px; font-weight: 700; }
.request-filter__drafts { border-style: dashed !important; }
.request-filter__note { margin: 0; padding: 12px 26px; border-bottom: 1px solid var(--border); background: var(--surface-2); color: var(--muted); font-size: 12.5px; }
.admin-table--requests td small { display: block; }
.admin-nav__badge { display: inline-flex; align-items: center; justify-content: center; min-width: 19px; height: 19px; margin-left: 4px; padding: 0 6px; border-radius: 99px; background: var(--red); color: #fff; font-size: 11px; font-weight: 700; }
.request-filter { display: flex; flex-wrap: wrap; gap: 6px; padding: 14px 26px; border-bottom: 1px solid var(--border); }
.request-filter a { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border: 1px solid var(--border); border-radius: 99px; color: var(--body); font-size: 12px; font-weight: 600; text-decoration: none; }
.request-filter a span { color: var(--muted); }
.request-filter a[aria-current="true"] { border-color: var(--primary); background: var(--primary); color: var(--primary-ink); }
.request-filter a[aria-current="true"] span { color: inherit; opacity: .75; }
.request-answers h3 { margin: 16px 0 4px; color: var(--muted); font-size: 13px; letter-spacing: .04em; text-transform: uppercase; }
.request-answers h3:first-child { margin-top: 0; }
.request-answers p { margin: 0; color: var(--ink); line-height: 1.55; }
@media (max-width: 900px) { .request-layout { grid-template-columns: 1fr; } }
@media (max-width: 759px) { .request-hero { flex-direction: column; align-items: flex-start; padding: 20px; } .request-hero h1 { font-size: 24px; } .request-form { padding: 20px; } }

/* Administration: AI connections */
.ai-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--border); }
.ai-summary > div { display: flex; flex-direction: column; gap: 4px; padding: 16px 24px; background: var(--surface); }
.ai-summary span { color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.ai-summary strong { overflow: hidden; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.ai-tool { display: flex; align-items: center; gap: 12px; }
.ai-tool__chip { width: 32px; height: 32px; flex: none; display: inline-flex; align-items: center; justify-content: center; border-radius: var(--r-sm); background: var(--c-tint); color: var(--c-solid); }
@media (max-width: 760px) { .ai-summary { grid-template-columns: 1fr 1fr; } }

/* Shell breakpoints */
@media (max-width: 1100px) {
  .topbar__product { display: none; }
}

@media (max-width: 900px) {
  .login-layout { grid-template-columns: 1fr; }
  .login-hero { min-height: 0; padding: 28px; }
  .login-hero__visual { display: none; }
  .login-card { max-width: none; }
}

@media (max-width: 759px) {
  :root { --header-h: 60px; }
  .topbar { gap: 8px; padding: 0 12px 0 6px; }
  .is-guest .topbar { padding-left: 16px; }
  .brand__logo { height: 30px; }
  .topbar__search-toggle { display: inline-flex; margin-left: auto; }
  .topbar-search { display: none; position: absolute; top: 100%; left: 0; right: 0; padding: 10px 16px; background: var(--header-bg); border-bottom: 1px solid var(--border); }
  .topbar-search.is-open { display: flex; }
  .topbar-search__field { max-width: none; }
  .topbar-search__field input { font-size: 16px; }
  .topbar-search__kbd { display: none; }
  .has-shell .topbar > .language-switcher { display: none; }
  .sidebar__lang { display: flex; }
  .avatar { width: 34px; height: 34px; }
  .account-menu__panel { position: fixed; top: calc(var(--header-h) + 8px); right: 12px; width: min(300px, calc(100vw - 24px)); }

  .sidebar { position: fixed; top: var(--header-h); bottom: 0; left: 0; width: 300px; height: auto; transform: translateX(-102%); }
  .drawer-open .sidebar { transform: translateX(0); box-shadow: 0 20px 60px rgba(0, 0, 0, .3); }

  .main { padding: 16px 16px 48px; }
  .spotlight__title { font-size: 28px; }
  .spotlight__stats { gap: 18px; }
  .spotlight__stats strong { font-size: 18px; }
  .spotlight__steps { gap: 8px 16px; }
  .spotlight__steps li + li::before { display: none; }
  .category-hero { gap: 16px; padding: 20px; }
  .category-hero__chip { width: 56px; height: 56px; }
  .category-hero__copy h1, .list-heading h1 { font-size: 26px; }
  .category-hero__progress { width: 100%; }
  .tile-group { margin-top: 28px; }
  .tile-group__head h2 { font-size: 17px; }
  .tile-group__progress { display: none; }
  .tile-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }

  /* Centered card with room on every side: a bottom sheet put the actions behind the browser toolbar. */
  .detail { width: calc(100% - 24px); max-width: none; max-height: calc(100dvh - 32px); margin: auto; border-radius: var(--r-lg); }
  .detail__head { flex-direction: row; align-items: flex-start; gap: 14px; padding: 18px 92px 18px 18px; }
  .detail__chip { width: 48px; height: 48px; border-radius: 14px; }
  .detail__chip .icon { width: 26px; height: 26px; }
  .detail__heading { gap: 5px; }
  .detail__heading h2 { font-size: 21px; }
  .detail__heading p { font-size: 13.5px; }
  .detail__actions { top: 12px; right: 12px; }
  .detail__body { grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 16px 18px; }
  .facts { gap: 8px; }
  .fact { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 4px 10px; padding: 10px 12px; }
  .fact .icon { width: 16px; height: 16px; }
  .fact__value { font-size: 15px; }
  .fact__label { flex-basis: 100%; }
  .detail__foot { gap: 8px; padding: 12px 18px 16px; }
  .detail__close, .detail__spacer { display: none; }
  .detail__foot .btn, .detail__note, .detail__price { flex: 1 1 100%; }

  .agent-heading__row { align-items: flex-start; }
  .agent-heading__chip { width: 48px; height: 48px; }
  .login-card { padding: 25px 20px; }
}

/* Public landing page for visitors who are not signed in. */
.guest-footer { align-items: center; gap: 16px; }
.guest-footer__link, .landing-footer__links a { color: var(--muted); font-size: 12px; font-weight: 600; text-decoration: none; }
.guest-footer__link:hover, .landing-footer__links a:hover { color: var(--ink); }
.landing-signin { min-height: 36px; }
.main--landing { max-width: 1240px; padding-top: 28px; }
.landing { display: flex; flex-direction: column; gap: 88px; }
.landing-eyebrow { align-self: flex-start; padding: 5px 11px; border-radius: 99px; background: var(--red); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.landing-kicker { color: var(--red); font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }

.landing-hero { position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 32px; padding: 56px 56px 48px; border: 1px solid var(--hero-border); border-radius: var(--r-lg); background: radial-gradient(640px 420px at 92% 18%, rgba(212, 42, 60, .38), transparent 70%), radial-gradient(520px 380px at 70% 110%, rgba(31, 90, 138, .45), transparent 70%), var(--hero-base); color: var(--hero-ink); }
.landing-hero__copy { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 20px; }
.landing-hero h1 { margin: 0; font-size: clamp(40px, 5.6vw, 68px); font-weight: 700; letter-spacing: -.035em; line-height: 1; text-wrap: balance; }
.landing-hero h1 span { color: #ff8793; }
.landing-hero__lead { max-width: 540px; margin: 0; color: var(--hero-muted); font-size: 17px; line-height: 1.6; text-wrap: pretty; }
.landing-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }
.landing-hero__signin { margin: 0; color: var(--hero-muted); font-size: 13px; }
.landing-hero__signin a { color: var(--hero-ink); font-weight: 600; }
.landing-stats { display: flex; flex-wrap: wrap; gap: 32px; margin: 12px 0 0; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .14); }
.landing-stats div { display: flex; flex-direction: column-reverse; gap: 2px; }
.landing-stats dd { margin: 0; font-size: 30px; font-weight: 700; letter-spacing: -.02em; line-height: 1.1; }
.landing-stats dt { color: var(--hero-muted); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }

.landing-hero__visual { position: relative; min-height: 380px; }
.landing-doc { position: absolute; top: 8px; left: 6%; width: 74%; border: 1px solid rgba(255, 255, 255, .16); border-radius: 12px; background: rgba(255, 255, 255, .06); transform: rotate(-3deg); }
.landing-doc__bar { display: flex; align-items: center; gap: 5px; padding: 10px 14px; border-bottom: 1px solid rgba(255, 255, 255, .1); color: var(--hero-muted); font-family: var(--font-mono); font-size: 11px; }
.landing-doc__bar i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, .25); }
.landing-doc__bar span { margin-left: 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.landing-doc__page { display: flex; flex-direction: column; gap: 11px; padding: 22px 22px 60px; }
.landing-doc__page i { height: 8px; border-radius: 4px; background: rgba(255, 255, 255, .14); }
.landing-doc__page i:nth-child(odd) { width: 86%; }
.landing-doc__page i:nth-child(3n) { width: 64%; }
.landing-doc__page i.is-hit { background: rgba(255, 135, 147, .6); box-shadow: 0 0 0 4px rgba(212, 42, 60, .18); }
.landing-result { position: absolute; right: 0; bottom: 0; width: 74%; display: flex; flex-direction: column; gap: 12px; padding: 18px; border-radius: 14px; background: #fff; color: #13263d; box-shadow: 0 30px 60px rgba(0, 0, 0, .35); transform: rotate(1.5deg); }
.landing-result__head { display: flex; align-items: center; gap: 10px; }
.landing-result__head strong { flex: 1; font-size: 14px; }
.landing-result__chip { width: 30px; height: 30px; display: inline-flex; align-items: center; justify-content: center; border-radius: 9px; background: var(--c-solid); color: #fff; }
.landing-result__ok { display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border-radius: 99px; background: #e6f6ec; color: #1c7c42; font-size: 11px; font-weight: 700; }
.landing-result ul { display: flex; flex-direction: column; margin: 0; padding: 0; list-style: none; }
.landing-result li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px solid #e1e6ed; font-size: 13px; }
.landing-result li span { color: #5a6a7e; }
.landing-result__source { display: inline-flex; align-items: center; gap: 6px; color: #1f5a8a; font-size: 11.5px; font-weight: 600; }

.landing-section { display: flex; flex-direction: column; gap: 32px; scroll-margin-top: calc(var(--header-h) + 24px); }
.landing-section__head { max-width: 680px; display: flex; flex-direction: column; gap: 10px; }
.landing-section__head h2, .landing-trust h2 { margin: 0; font-size: clamp(28px, 3.4vw, 40px); font-weight: 700; letter-spacing: -.025em; line-height: 1.1; text-wrap: balance; }
.landing-section__head p, .landing-trust__copy p { margin: 0; color: var(--body); font-size: 16px; line-height: 1.6; text-wrap: pretty; }

.landing-benefits { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.landing-benefit { display: flex; flex-direction: column; gap: 10px; padding: 26px 24px; border: 1px solid var(--border); border-radius: var(--r); background: var(--surface); box-shadow: var(--card-shadow); }
.landing-benefit__chip, .landing-agent__chip { width: 46px; height: 46px; display: inline-flex; align-items: center; justify-content: center; border-radius: 13px; background: var(--c-tint); color: var(--c-solid); }
.landing-benefit h3, .landing-agent h3, .landing-steps h3 { margin: 6px 0 0; font-size: 17px; font-weight: 700; letter-spacing: -.01em; }
.landing-benefit p, .landing-agent p, .landing-steps p { margin: 0; color: var(--body); font-size: 14px; line-height: 1.55; }

.landing-agents { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.landing-agent { display: flex; flex-direction: column; gap: 6px; padding: 22px; border: 1px solid var(--border); border-radius: var(--r); background: var(--surface); box-shadow: var(--card-shadow); transition: transform .18s ease, border-color .18s ease; }
.landing-agent:hover { transform: translateY(-2px); border-color: var(--border-hover); }
.landing-agent__top { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 8px; }
.landing-agent__chip { background: var(--c-solid); color: #fff; }
.landing-agent__chip img { width: 24px; height: 24px; object-fit: contain; }
.landing-agent__badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 99px; background: var(--surface-2); color: var(--muted); font-size: 11px; font-weight: 700; }
.landing-agent__badge--live { background: var(--success-bg); color: var(--success); }
.landing-agent__category { color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.landing-agent--planned .landing-agent__chip { background: var(--c-tint); color: var(--c-solid); }

.landing-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin: 0; padding: 0; list-style: none; }
.landing-steps li { display: flex; flex-direction: column; gap: 8px; padding: 26px 24px; border: 1px solid var(--border); border-radius: var(--r); background: var(--surface); }
.landing-steps__num { width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--primary); color: var(--primary-ink); font-weight: 700; }

.landing-trust { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: start; gap: 40px; padding: 44px; border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--surface); }
.landing-trust__copy { display: flex; flex-direction: column; gap: 12px; }
.landing-trust__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 28px; margin: 0; padding: 0; list-style: none; }
.landing-trust__list li { display: flex; gap: 12px; color: var(--body); font-size: 14px; line-height: 1.5; }
.landing-trust__list .icon { margin-top: 2px; color: var(--red); }
.landing-trust__list strong { display: block; margin-bottom: 2px; color: var(--ink); font-size: 15px; }

.landing-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; padding: 44px 48px; border: 1px solid var(--hero-border); border-radius: var(--r-lg); background: radial-gradient(520px 300px at 100% 0%, rgba(212, 42, 60, .4), transparent 70%), var(--hero-base); color: var(--hero-ink); }
.landing-cta > div:first-child { max-width: 620px; display: flex; flex-direction: column; gap: 12px; }
.landing-cta h2 { margin: 0; font-size: clamp(26px, 3vw, 36px); font-weight: 700; letter-spacing: -.025em; line-height: 1.1; }
.landing-cta p { margin: 0; color: var(--hero-muted); font-size: 16px; line-height: 1.6; }
.landing-cta__actions { display: flex; flex-wrap: wrap; gap: 12px; }

.landing-footer { margin-top: 24px; border-top: 1px solid var(--border); background: var(--header-bg); }
.landing-footer__inner { max-width: 1240px; display: flex; flex-wrap: wrap; align-items: center; gap: 20px; margin: 0 auto; padding: 22px 32px; }
.landing-footer__logo { height: 28px; padding: var(--logo-pad); border-radius: 6px; background: var(--logo-bg); }
.landing-footer__links { display: flex; gap: 20px; margin-left: auto; }

@media (max-width: 1080px) {
  .landing-hero { grid-template-columns: 1fr; padding: 44px 40px; }
  .landing-hero__visual { min-height: 340px; max-width: 560px; }
  .landing-benefits { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .landing-trust { grid-template-columns: 1fr; }
}

@media (max-width: 759px) {
  .main--landing { padding-top: 16px; }
  .landing { gap: 64px; }
  .landing-hero { padding: 28px 22px; }
  .landing-hero__lead { font-size: 15.5px; }
  .landing-hero__actions .btn { flex: 1 1 100%; }
  .landing-stats { gap: 22px; }
  .landing-stats dd { font-size: 24px; }
  .landing-hero__visual { display: none; }
  .landing-benefits, .landing-steps, .landing-trust__list { grid-template-columns: 1fr; }
  .landing-trust, .landing-cta { padding: 28px 22px; }
  .landing-cta__actions .btn { flex: 1 1 100%; }
  .landing-footer__inner { padding: 20px 16px; }
  .landing-footer__links { margin-left: 0; }
  .is-guest .topbar__product { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}

/* The anthracite parts of the logo vanish on dark surfaces, so dark mode swaps in the light variant (print stays light). */
@media screen {
  :root[data-theme="dark"] .nexcility-logo { content: url("../img/nexcility-logo-dark.b4fcf57364c6.svg"); }
}
