@font-face {
  font-family: "Cabinet Grotesk";
  src: url("/assets/fonts/CabinetGrotesk-Variable.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --ink: #172019;
  --muted: #68736b;
  --paper: #f4f1e9;
  --card: rgba(255, 255, 255, .72);
  --line: rgba(23, 32, 25, .14);
  --moss: #315c45;
  --moss-dark: #173d2b;
  --lime: #d6ed8a;
  --sun: #f2b84b;
  --shadow: 0 24px 70px rgba(32, 46, 36, .1);
  --radius: 24px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 0%, rgba(214, 237, 138, .42), transparent 28rem),
    radial-gradient(circle at 95% 18%, rgba(242, 184, 75, .2), transparent 24rem),
    var(--paper);
  font-family: "Cabinet Grotesk", Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
}

a { color: inherit; }
button, input, textarea, select { font: inherit; }
img, video { max-width: 100%; }
.shell { width: min(1160px, calc(100% - 40px)); margin: 0 auto; }
.skip-link { position: fixed; left: 12px; top: -80px; z-index: 20; background: var(--ink); color: white; padding: 9px 14px; border-radius: 10px; }
.skip-link:focus { top: 12px; }

.site-header { padding: 22px 0; }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 22px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 780; text-decoration: none; letter-spacing: -.02em; }
.brand-mark { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: var(--ink); color: var(--lime); font-size: 13px; }
.nav-links { display: flex; align-items: center; gap: 22px; }
.nav-links a { text-decoration: none; color: var(--muted); font-size: 14px; font-weight: 650; }
.nav-links a:hover, .nav-links a:focus-visible { color: var(--ink); }

.hero { min-height: 70vh; display: grid; grid-template-columns: 1.45fr .8fr; gap: 70px; align-items: center; padding: 72px 0 96px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 22px; color: var(--moss); font-size: 13px; text-transform: uppercase; letter-spacing: .12em; font-weight: 780; }
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--sun); box-shadow: 0 0 0 5px rgba(242, 184, 75, .18); }
h1, h2, h3 { margin-top: 0; line-height: 1.08; letter-spacing: -.045em; }
h1 { margin-bottom: 24px; font-size: clamp(52px, 7vw, 94px); font-weight: 790; }
h2 { margin-bottom: 16px; font-size: clamp(35px, 4.8vw, 58px); }
h3 { font-size: 24px; }
.hero h1 span { display: block; color: var(--moss); }
.lead { max-width: 680px; font-size: clamp(18px, 2vw, 22px); color: #445148; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; gap: 8px; padding: 10px 18px; border: 1px solid var(--ink); border-radius: 999px; background: transparent; color: var(--ink); text-decoration: none; font-weight: 720; cursor: pointer; }
.button.primary { background: var(--ink); color: white; }
.button.soft { border-color: transparent; background: rgba(49, 92, 69, .1); color: var(--moss-dark); }
.button[aria-disabled="true"], .button:disabled { opacity: .48; cursor: not-allowed; }
.button:not([aria-disabled="true"]):hover, .button:focus-visible { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(23, 32, 25, .13); }

.profile-card { position: relative; padding: 34px; border: 1px solid var(--line); border-radius: 32px; background: var(--card); box-shadow: var(--shadow); backdrop-filter: blur(12px); transform: rotate(1.5deg); }
.profile-card::after { content: ""; position: absolute; width: 86px; height: 86px; top: -25px; right: -24px; border-radius: 50%; background: var(--lime); z-index: -1; }
.monogram { width: 86px; height: 86px; margin-bottom: 34px; display: grid; place-items: center; border-radius: 25px; background: var(--moss); color: white; font-size: 34px; font-weight: 760; }
.profile-card strong { display: block; margin-bottom: 5px; font-size: 20px; }
.profile-card p { color: var(--muted); }
.mini-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 25px; }
.mini-stat { padding-top: 15px; border-top: 1px solid var(--line); }
.mini-stat b { font-size: 24px; }
.mini-stat span { display: block; color: var(--muted); font-size: 12px; }

.section { padding: 95px 0; }
.section-head { display: grid; grid-template-columns: .75fr 1.25fr; gap: 50px; align-items: end; margin-bottom: 42px; }
.section-head p { margin: 0; color: var(--muted); font-size: 18px; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card { min-height: 280px; display: flex; flex-direction: column; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); box-shadow: 0 10px 35px rgba(32, 46, 36, .04); }
.card .tag, .tag { display: inline-flex; align-self: flex-start; padding: 5px 10px; border-radius: 999px; background: rgba(49, 92, 69, .09); color: var(--moss-dark); font-size: 12px; font-weight: 750; }
.card h3 { margin: 24px 0 12px; }
.card p { color: var(--muted); }
.card footer { margin-top: auto; padding-top: 20px; display: flex; justify-content: space-between; align-items: center; }
.text-link { color: var(--moss-dark); font-weight: 760; text-underline-offset: 4px; }

.timeline { border-top: 1px solid var(--line); }
.timeline-item { display: grid; grid-template-columns: 180px 1fr; gap: 36px; padding: 30px 0; border-bottom: 1px solid var(--line); }
.timeline-item time { color: var(--muted); font-size: 14px; }
.timeline-item h3 { margin-bottom: 7px; }
.timeline-item p { margin: 0; color: var(--muted); }

.callout { display: grid; grid-template-columns: 1.2fr .8fr; gap: 30px; align-items: center; padding: 44px; border-radius: 32px; background: var(--moss-dark); color: white; }
.callout p { color: rgba(255, 255, 255, .7); }
.callout .button { border-color: rgba(255,255,255,.7); color: white; }
.callout .button.primary { background: var(--lime); border-color: var(--lime); color: var(--ink); }

.page-hero { padding: 75px 0 55px; }
.page-hero h1 { font-size: clamp(48px, 7vw, 84px); }
.page-hero .lead { max-width: 780px; }
.project-layout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(250px, .65fr); gap: 45px; padding-bottom: 90px; }
.prose { font-size: 18px; }
.prose h2 { margin-top: 60px; font-size: 35px; }
.prose ul { padding-left: 22px; }
.sidebar { align-self: start; position: sticky; top: 24px; padding: 25px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.meta-list { margin: 0; }
.meta-list div { padding: 13px 0; border-bottom: 1px solid var(--line); }
.meta-list div:last-child { border-bottom: 0; }
.meta-list dt { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.meta-list dd { margin: 4px 0 0; font-weight: 700; }
.placeholder-media { min-height: 330px; display: grid; place-items: center; margin: 28px 0; border: 1px dashed rgba(49, 92, 69, .36); border-radius: var(--radius); background: linear-gradient(145deg, rgba(214,237,138,.22), rgba(255,255,255,.38)); color: var(--muted); text-align: center; padding: 25px; }

.product-hero { padding-bottom: 46px; }
.product-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.product-pills span { padding: 6px 11px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.5); color: var(--moss-dark); font-size: 12px; font-weight: 760; }
.omeety-case { grid-template-columns: minmax(0, 1.45fr) minmax(260px, .55fr); }
.proof-media { margin: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 22px; background: #0d0f10; box-shadow: 0 18px 48px rgba(23,32,25,.09); }
.proof-media img { width: 100%; display: block; }
.proof-media figcaption { padding: 14px 17px; color: rgba(255,255,255,.72); background: #111515; font-size: 13px; line-height: 1.55; }
.proof-media figcaption b { color: white; }
.proof-media-hero { margin-bottom: 74px; }
.proof-media.accent { border-color: rgba(49,92,69,.42); }
.case-section { margin: 0 0 82px; }
.case-section h2 { max-width: 760px; margin-top: 0; }
.case-section > p:not(.section-kicker):not(.fine-print) { color: #4d5951; }
.section-kicker { margin: 0 0 12px !important; color: var(--moss) !important; font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.problem-grid, .capability-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; margin-top: 28px; }
.problem-grid > div { padding: 20px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,255,255,.55); }
.problem-grid b, .problem-grid span { display: block; }
.problem-grid b { margin-bottom: 5px; }
.problem-grid span { color: var(--muted); font-size: 14px; }
.comparison-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 30px; }
.comparison-grid .proof-media { display: flex; flex-direction: column; }
.comparison-grid .proof-media img { aspect-ratio: 16 / 9; height: 100%; object-fit: cover; }
.comparison-grid .proof-media:first-child img { object-position: top left; }
.capability-grid > div { position: relative; padding: 23px; border-radius: 20px; background: var(--moss-dark); color: white; }
.capability-grid > div > span { color: var(--lime); font-size: 12px; font-weight: 800; letter-spacing: .1em; }
.capability-grid h3 { margin: 20px 0 9px; font-size: 22px; }
.capability-grid p { margin: 0; color: rgba(255,255,255,.68); font-size: 14px; }
.product-quote { margin: 24px 0 0; padding: 24px 27px; border: 0; border-radius: 20px; background: var(--lime); color: var(--moss-dark); font-size: 22px; font-weight: 780; line-height: 1.4; letter-spacing: -.025em; }
.scenario-list { margin: 28px 0; border-top: 1px solid var(--line); }
.scenario-list > div { display: grid; grid-template-columns: 190px 1fr; gap: 24px; padding: 19px 0; border-bottom: 1px solid var(--line); }
.scenario-list span { color: var(--muted); }
.boundary-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 28px; }
.boundary { padding: 23px; border: 1px solid var(--line); border-radius: 20px; background: rgba(255,255,255,.55); }
.boundary.good { background: rgba(214,237,138,.2); border-color: rgba(49,92,69,.24); }
.boundary > b { display: block; font-size: 18px; }
.boundary ul { margin: 14px 0 0; padding-left: 19px; color: var(--muted); font-size: 14px; }
.fine-print { padding-left: 13px; border-left: 2px solid var(--sun); color: var(--muted); font-size: 13px; }
.open-source-callout { display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: center; padding: 30px; border-radius: 24px; background: var(--moss-dark); color: white; }
.open-source-callout h2 { margin-bottom: 10px; color: white; }
.open-source-callout p:not(.section-kicker) { margin: 0; color: rgba(255,255,255,.68) !important; }
.open-source-callout .button.primary { background: var(--lime); border-color: var(--lime); color: var(--ink); white-space: nowrap; }

.access-wrap { width: min(620px, calc(100% - 40px)); min-height: calc(100vh - 170px); display: grid; place-items: center; margin: 0 auto; padding: 50px 0 90px; }
.access-panel { width: 100%; padding: clamp(27px, 6vw, 48px); border: 1px solid var(--line); border-radius: 32px; background: var(--card); box-shadow: var(--shadow); }
.access-panel h1 { font-size: clamp(40px, 7vw, 62px); }
.field { margin: 25px 0 14px; }
.field label { display: block; margin-bottom: 8px; font-weight: 730; }
.field input { width: 100%; min-height: 51px; padding: 11px 14px; border: 1px solid var(--line); border-radius: 13px; background: white; color: var(--ink); }
.field input:focus { outline: 3px solid rgba(214, 237, 138, .7); border-color: var(--moss); }
.form-status { min-height: 26px; margin: 13px 0; color: var(--muted); }
.form-status.error { color: #9d2d22; }
.scope-list { display: grid; gap: 10px; margin: 22px 0; }
.scope { display: flex; justify-content: space-between; gap: 15px; padding: 12px 14px; border-radius: 13px; background: rgba(49, 92, 69, .07); }
.hidden { display: none !important; }

.site-footer { padding: 45px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.footer-row { display: flex; justify-content: space-between; gap: 20px; }

@media (max-width: 820px) {
  .nav-links a:not(.nav-access) { display: none; }
  .hero, .section-head, .callout, .project-layout { grid-template-columns: 1fr; }
  .hero { gap: 45px; padding-top: 45px; }
  .profile-card { transform: none; }
  .cards { grid-template-columns: 1fr; }
  .timeline-item { grid-template-columns: 1fr; gap: 8px; }
  .sidebar { position: static; }
  .omeety-case { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  a, button, input, textarea, select { touch-action: manipulation; }
  input, textarea, select { font-size: 16px; }
  .shell { width: min(100% - 32px, 1160px); }
  .site-header { padding: 16px 0; }
  .nav { gap: 12px; }
  .brand { gap: 9px; }
  .brand-mark { width: 32px; height: 32px; font-size: 12px; }
  .nav-links { gap: 10px; }
  .nav-links a { font-size: 13px; }

  .eyebrow { margin-bottom: 15px; font-size: 11px; letter-spacing: .1em; }
  h1 { font-size: clamp(40px, 11.6vw, 47px); line-height: 1.03; }
  h2 { font-size: 36px; }
  h3 { font-size: 22px; }
  .lead { font-size: 17px; line-height: 1.72; }

  .hero {
    min-height: auto;
    gap: 30px;
    padding: 34px 0 56px;
  }
  .hero h1 { margin-bottom: 20px; }
  .hero .actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 25px;
  }
  .hero .actions .button:first-child { grid-column: 1 / -1; }
  .button { min-height: 46px; padding: 10px 14px; }

  .profile-card {
    padding: 24px;
    border-radius: 25px;
  }
  .profile-card::after { width: 62px; height: 62px; top: -16px; right: -10px; }
  .monogram {
    width: 64px;
    height: 64px;
    margin-bottom: 18px;
    border-radius: 19px;
    font-size: 27px;
  }
  .profile-card strong { font-size: 18px; }
  .profile-card p { margin: 8px 0 0; font-size: 15px; line-height: 1.65; }
  .mini-stats { margin-top: 18px; }
  .mini-stat { padding-top: 12px; }
  .mini-stat b { font-size: 21px; }

  .section { padding: 58px 0; }
  .section-head { gap: 11px; margin-bottom: 26px; }
  .section-head p { font-size: 16px; }
  .cards { gap: 14px; }
  .card { min-height: 0; padding: 22px; border-radius: 20px; }
  .card h3 { margin: 18px 0 9px; }
  .card p { margin: 0; font-size: 15px; }
  .card footer { flex-wrap: wrap; gap: 10px; padding-top: 22px; font-size: 14px; }

  .timeline-item { padding: 23px 0; }
  .timeline-item h3 { margin-bottom: 6px; }
  .timeline-item p { font-size: 15px; }
  .callout { gap: 15px; padding: 26px; border-radius: 24px; }
  .callout h2 { margin-bottom: 12px; }
  .callout .actions { margin-top: 12px; }

  .page-hero { padding: 40px 0 18px; }
  .page-hero h1 { margin-bottom: 18px; font-size: clamp(40px, 11.6vw, 47px); }
  .page-hero + .section { padding-top: 28px; }
  .project-layout { display: flex; flex-direction: column; gap: 22px; padding-bottom: 58px; }
  .prose { font-size: 16px; }
  .prose h2 { margin-top: 40px; font-size: 29px; }
  .prose ul { padding-left: 19px; }
  .placeholder-media { min-height: 220px; margin: 12px 0 30px; }
  .sidebar { order: -1; padding: 20px; border-radius: 20px; }
  .meta-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
  .meta-list div { min-width: 0; }
  .meta-list dd { overflow-wrap: anywhere; font-size: 14px; }
  .sidebar .actions { display: grid; margin-top: 18px; }
  .sidebar .button { width: 100%; }

  .product-hero { padding-bottom: 24px; }
  .product-pills { margin-top: 20px; }
  .proof-media { border-radius: 17px; }
  .proof-media-hero { margin-bottom: 48px; }
  .proof-media figcaption { padding: 12px 14px; }
  .case-section { margin-bottom: 58px; }
  .problem-grid, .capability-grid, .comparison-grid, .boundary-grid { grid-template-columns: 1fr; }
  .problem-grid { gap: 10px; }
  .problem-grid > div, .capability-grid > div, .boundary { padding: 19px; }
  .comparison-grid { gap: 13px; }
  .capability-grid { gap: 11px; }
  .capability-grid h3 { margin-top: 13px; }
  .product-quote { padding: 21px; font-size: 19px; }
  .scenario-list > div { grid-template-columns: 1fr; gap: 3px; padding: 16px 0; }
  .open-source-callout { grid-template-columns: 1fr; gap: 20px; padding: 24px; }
  .open-source-callout .button { width: 100%; }

  .access-wrap { width: min(100% - 32px, 620px); min-height: auto; padding: 36px 0 64px; }
  .access-panel { padding: 25px 21px; border-radius: 24px; }
  .access-panel h1 { font-size: 42px; }
  .scope { align-items: center; font-size: 14px; }

  .site-footer { padding: 32px 0; }
  .footer-row { flex-direction: column; gap: 5px; }
}

/* Private AI product knowledge workspace */
.admin-knowledge-workspace { display: none; }
.admin-view-monitor .admin-knowledge-workspace,
.admin-view-applications .admin-knowledge-workspace { display: none !important; }
.admin-view-knowledge .admin-knowledge-workspace { display: block; }
.admin-view-knowledge .admin-section-link-knowledge { display: none !important; }
.admin-view-knowledge .admin-window-control,
.admin-view-knowledge .admin-refresh,
.admin-view-knowledge .admin-application-panel,
.admin-view-knowledge .admin-application-records-panel,
.admin-view-knowledge .admin-metrics,
.admin-view-knowledge .admin-grid,
.admin-view-knowledge .admin-grants-panel,
.admin-view-knowledge .admin-grant-records-panel,
.admin-view-knowledge .admin-password-panel,
.admin-view-knowledge .admin-footnote { display: none !important; }
.admin-view-knowledge .admin-title { min-height: 190px; }

.admin-knowledge-intro { display: grid; grid-template-columns: minmax(0, .78fr) minmax(520px, 1.22fr); align-items: end; gap: 48px; margin-bottom: 12px; padding: 42px 44px; border-radius: 22px; color: #eef1f7; background: linear-gradient(135deg, rgba(16,20,33,.98), rgba(8,10,17,.98)); box-shadow: 0 24px 72px rgba(0,0,0,.22); }
.admin-knowledge-intro-copy > span,
.admin-knowledge-library > header span { color: #7d89a1; font-size: 8px; font-weight: 760; letter-spacing: .16em; }
.admin-knowledge-intro-copy h2 { max-width: 520px; margin: 13px 0 12px; font-size: clamp(34px, 4vw, 58px); font-weight: 560; line-height: 1.02; letter-spacing: -.055em; }
.admin-knowledge-intro-copy p { max-width: 530px; margin: 0; color: #8992a2; font-size: 12px; line-height: 1.75; }
.admin-knowledge-role-tabs { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 8px; }
.admin-knowledge-role-tabs > button { min-width: 0; min-height: 118px; display: grid; align-content: space-between; gap: 2px; padding: 17px 18px; border: 0; border-radius: 14px; color: #7f8999; background: rgba(255,255,255,.035); text-align: left; cursor: pointer; transition: color .2s ease, background .2s ease, transform .2s ease; }
.admin-knowledge-role-tabs > button:hover { color: #dce1ea; background: rgba(255,255,255,.06); transform: translateY(-2px); }
.admin-knowledge-role-tabs > button[aria-selected="true"] { color: #08101a; background: #c9f45a; }
.admin-knowledge-role-tabs > button > span { color: inherit; opacity: .64; font-size: 8px; font-weight: 760; letter-spacing: .14em; }
.admin-knowledge-role-tabs > button > b { align-self: end; font-size: 13px; font-weight: 680; line-height: 1.25; }
.admin-knowledge-role-tabs > button > small { color: inherit; opacity: .65; font-size: 8px; }

.admin-knowledge-map { display: grid; grid-template-columns: minmax(280px, .72fr) minmax(0, 1.78fr); align-items: start; gap: 12px; }
.admin-knowledge-role-card { position: sticky; top: 18px; min-height: 490px; padding: 34px; border-radius: 20px; color: #e9edf4; background: linear-gradient(155deg, rgba(19,24,39,.98), rgba(7,9,15,.98)); box-shadow: 0 20px 70px rgba(0,0,0,.2); }
.admin-knowledge-role-card > span { color: #97a7ff; font-size: 8px; font-weight: 760; letter-spacing: .15em; }
.admin-knowledge-role-card > h3 { margin: 17px 0 13px; font-size: clamp(28px, 3vw, 42px); font-weight: 570; line-height: 1.06; letter-spacing: -.045em; }
.admin-knowledge-role-card > p { max-width: 360px; margin: 0; color: #a4abb7; font-size: 13px; line-height: 1.75; }
.admin-knowledge-role-card > ol { display: grid; gap: 4px; margin: 37px 0 0; padding: 0; list-style: none; }
.admin-knowledge-role-card > ol li { min-height: 42px; display: flex; align-items: center; gap: 14px; padding: 0 12px; border-radius: 9px; color: #aab1bd; background: rgba(255,255,255,.026); }
.admin-knowledge-role-card > ol span { color: #5f6b80; font-size: 8px; }
.admin-knowledge-role-card > ol b { font-size: 11px; font-weight: 570; }
.admin-knowledge-role-card > .admin-knowledge-role-insight { margin-top: 16px; padding: 15px 16px; border: 0; border-radius: 10px; background: rgba(255,255,255,.035); }
.admin-knowledge-role-card > ol + .admin-knowledge-role-insight { margin-top: 22px; }
.admin-knowledge-role-card > .admin-knowledge-role-insight span { color: #7e8ba1; font-size: 8px; font-weight: 740; letter-spacing: .11em; }
.admin-knowledge-role-card > .admin-knowledge-role-insight p { margin: 8px 0 0; color: #c3c9d2; font-size: 11px; line-height: 1.68; }

.admin-knowledge-library { min-width: 0; padding: 30px 32px 34px; border-radius: 20px; background: rgba(7,9,15,.94); box-shadow: 0 20px 70px rgba(0,0,0,.2); }
.admin-knowledge-library > header { min-height: 68px; display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.admin-knowledge-library > header h2 { margin: 8px 0 0; color: #eff2f7; font-size: 26px; font-weight: 570; line-height: 1.1; letter-spacing: -.035em; }
.admin-knowledge-library > header > b { color: #7c8799; font-size: 9px; font-weight: 560; white-space: nowrap; }
.admin-knowledge-cards { display: grid; gap: 8px; }
.admin-knowledge-card { overflow: hidden; border: 0; border-radius: 14px; color: #c5cbd5; background: rgba(255,255,255,.027); transition: background .2s ease; }
.admin-knowledge-card[open] { background: rgba(255,255,255,.048); }
.admin-knowledge-card > summary { min-height: 116px; display: grid; grid-template-columns: 34px minmax(0,1fr) 22px; align-items: start; gap: 14px; padding: 22px 22px 20px; list-style: none; cursor: pointer; }
.admin-knowledge-card > summary::-webkit-details-marker { display: none; }
.admin-knowledge-card-index { padding-top: 3px; color: #586376; font-size: 8px; font-weight: 720; letter-spacing: .1em; }
.admin-knowledge-card-meta { display: flex; align-items: center; gap: 6px; margin-bottom: 9px; }
.admin-knowledge-card-meta b,
.admin-knowledge-card-meta i { padding: 4px 6px; border-radius: 5px; color: #8793a5; background: rgba(255,255,255,.05); font-size: 7px; font-style: normal; font-weight: 690; line-height: 1; }
.admin-knowledge-card-meta i { color: #a9c7ff; background: rgba(100,130,232,.12); }
.admin-knowledge-card summary h3 { margin: 0; color: #edf0f5; font-size: 19px; font-weight: 590; line-height: 1.22; letter-spacing: -.025em; }
.admin-knowledge-card summary p { max-width: 820px; margin: 8px 0 0; color: #818b9a; font-size: 11px; line-height: 1.68; }
.admin-knowledge-card-toggle { padding-top: 0; color: #6f7b8f; font: 300 20px/1 Arial,sans-serif; text-align: right; }
.admin-knowledge-card-body { display: grid; grid-template-columns: minmax(0,1fr) minmax(230px,.75fr); gap: 10px; padding: 0 22px 23px 70px; }
.admin-knowledge-card-body > ul { grid-row: 1 / span 2; display: grid; align-content: start; gap: 10px; margin: 0; padding: 17px 19px; border-radius: 10px; background: rgba(2,4,8,.34); list-style: none; }
.admin-knowledge-card-body > ul li { position: relative; padding-left: 13px; color: #aeb5c1; font-size: 11px; line-height: 1.65; }
.admin-knowledge-card-body > ul li::before { content: ""; width: 4px; height: 4px; position: absolute; top: .68em; left: 0; border-radius: 50%; background: #93a4ff; }
.admin-knowledge-card-body > section { padding: 15px 17px; border-radius: 10px; background: rgba(255,255,255,.025); }
.admin-knowledge-card-body > section > span { color: #728098; font-size: 7px; font-weight: 760; letter-spacing: .12em; }
.admin-knowledge-card-body > section > p { margin: 7px 0 0; color: #b7bec9; font-size: 10px; line-height: 1.7; }
.admin-knowledge-card-body > .admin-knowledge-proof { background: rgba(184,237,89,.045); }
.admin-knowledge-card-body > .admin-knowledge-proof > span { color: #8ba65e; }
.admin-knowledge-sources { min-height: 90px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 0 18px; color: #5d6878; font-size: 8px; }
.admin-knowledge-sources > div { display: flex; gap: 18px; }
.admin-knowledge-sources a { color: #778399; text-decoration: none; }
.admin-knowledge-sources a:hover { color: #d8dde6; }

@media (max-width: 980px) {
  .admin-knowledge-intro { grid-template-columns: 1fr; gap: 32px; }
  .admin-knowledge-map { grid-template-columns: 1fr; }
  .admin-knowledge-role-card { position: static; min-height: 0; }
  .admin-knowledge-role-card > ol { grid-template-columns: repeat(5, minmax(0,1fr)); }
  .admin-knowledge-role-card > ol li { justify-content: center; padding: 8px; text-align: center; }
  .admin-knowledge-role-card > ol span { display: none; }
}

@media (max-width: 640px) {
  .admin-view-knowledge .admin-console { width: calc(100% - 20px); padding-top: 18px; padding-bottom: 24px; }
  .admin-view-knowledge .admin-title { min-height: 124px; margin-bottom: 16px; padding: 4px 3px 0; }
  .admin-view-knowledge .admin-title > div:first-child { padding-right: 54px; }
  .admin-view-knowledge .admin-title > div:first-child > span { font-size: 8px; }
  .admin-view-knowledge .admin-title h1 { margin: 9px 0 7px; font-size: 38px; line-height: 1; letter-spacing: -.055em; }
  .admin-view-knowledge .admin-title p { max-width: 245px; font-size: 11px; line-height: 1.5; }
  .admin-view-knowledge .admin-corner-logout { top: 2px; right: 3px; font-size: 11px; }
  .admin-view-knowledge .admin-title-actions { width: auto; position: absolute; top: 34px; right: 3px; display: grid; gap: 2px; margin: 0; }
  .admin-view-knowledge .admin-section-link { min-height: 27px; justify-content: flex-end; padding: 0 2px; border: 0; border-radius: 0; color: #737d8d; background: transparent; font-size: 10px; }
  .admin-knowledge-intro { gap: 24px; margin-bottom: 9px; padding: 25px 18px 18px; border-radius: 18px; }
  .admin-knowledge-intro-copy > span { font-size: 8px; }
  .admin-knowledge-intro-copy h2 { max-width: 320px; margin: 11px 0 9px; font-size: 35px; line-height: 1.06; }
  .admin-knowledge-intro-copy p { max-width: 320px; font-size: 12px; line-height: 1.68; }
  .admin-knowledge-role-tabs { gap: 5px; }
  .admin-knowledge-role-tabs > button { min-height: 103px; padding: 13px 10px; border-radius: 11px; }
  .admin-knowledge-role-tabs > button > span { font-size: 7px; }
  .admin-knowledge-role-tabs > button > b { font-size: 12px; line-height: 1.28; }
  .admin-knowledge-role-tabs > button > small { font-size: 8px; }
  .admin-knowledge-map { gap: 9px; }
  .admin-knowledge-role-card { padding: 24px 18px; border-radius: 18px; }
  .admin-knowledge-role-card > span { font-size: 8px; }
  .admin-knowledge-role-card > h3 { margin: 12px 0 9px; font-size: 31px; }
  .admin-knowledge-role-card > p { font-size: 13px; line-height: 1.68; }
  .admin-knowledge-role-card > ol { grid-template-columns: 1fr; gap: 3px; margin-top: 23px; }
  .admin-knowledge-role-card > ol li { min-height: 37px; justify-content: flex-start; padding: 0 11px; text-align: left; }
  .admin-knowledge-role-card > ol span { display: inline; }
  .admin-knowledge-role-card > ol b { font-size: 11px; }
  .admin-knowledge-role-card > .admin-knowledge-role-insight { margin-top: 8px; padding: 14px; }
  .admin-knowledge-role-card > ol + .admin-knowledge-role-insight { margin-top: 18px; }
  .admin-knowledge-role-card > .admin-knowledge-role-insight p { font-size: 12px; }
  .admin-knowledge-library { padding: 23px 11px 15px; border-radius: 18px; }
  .admin-knowledge-library > header { min-height: 66px; padding: 0 5px; }
  .admin-knowledge-library > header span { font-size: 7px; }
  .admin-knowledge-library > header h2 { font-size: 23px; }
  .admin-knowledge-library > header > b { padding-top: 2px; font-size: 8px; }
  .admin-knowledge-cards { gap: 6px; }
  .admin-knowledge-card { border-radius: 12px; }
  .admin-knowledge-card > summary { min-height: 126px; grid-template-columns: 25px minmax(0,1fr) 17px; gap: 9px; padding: 19px 13px 17px; }
  .admin-knowledge-card-index { font-size: 8px; }
  .admin-knowledge-card-meta { margin-bottom: 8px; }
  .admin-knowledge-card-meta b,
  .admin-knowledge-card-meta i { font-size: 8px; }
  .admin-knowledge-card summary h3 { font-size: 18px; line-height: 1.25; }
  .admin-knowledge-card summary p { margin-top: 7px; font-size: 12px; line-height: 1.62; }
  .admin-knowledge-card-toggle { font-size: 19px; }
  .admin-knowledge-card-body { grid-template-columns: 1fr; gap: 7px; padding: 0 12px 14px 47px; }
  .admin-knowledge-card-body > ul { grid-row: auto; padding: 14px 13px; }
  .admin-knowledge-card-body > ul li { font-size: 12px; line-height: 1.6; }
  .admin-knowledge-card-body > section { padding: 13px; }
  .admin-knowledge-card-body > section > span { font-size: 8px; }
  .admin-knowledge-card-body > section > p { font-size: 12px; line-height: 1.65; }
  .admin-knowledge-sources { min-height: 112px; align-items: flex-start; flex-direction: column; justify-content: center; gap: 10px; padding: 0 8px; font-size: 8px; }
  .admin-knowledge-sources > div { flex-wrap: wrap; gap: 10px 15px; }
}

/* Owner console has two isolated views sharing one authenticated session. */
.admin-section-link { min-height: 56px; display: flex; align-items: center; gap: 26px; padding: 0 18px; border: 1px solid rgba(255,255,255,.14); border-radius: 13px; color: #d7dbe3; background: rgba(7,9,14,.74); font-size: 9px; font-weight: 650; text-decoration: none; white-space: nowrap; }
.admin-section-link i { color: #7d8bea; font-size: 14px; font-style: normal; }
.admin-view-monitor .admin-section-link-monitor,
.admin-view-applications .admin-section-link-applications { display: none; }
.admin-view-monitor .admin-application-panel,
.admin-view-monitor .admin-application-records-panel { display: none; }
.admin-view-applications .admin-metrics,
.admin-view-applications .admin-grid,
.admin-view-applications .admin-grants-panel,
.admin-view-applications .admin-grant-records-panel,
.admin-view-applications .admin-password-panel,
.admin-view-applications .admin-footnote,
.admin-view-applications .admin-window-control,
.admin-view-applications .admin-refresh { display: none; }
.admin-view-applications .admin-title { min-height: 220px; }
.admin-view-applications .admin-application-panel { margin-top: 0; }

@media (max-width: 640px) {
  .admin-section-link { min-height: 44px; gap: 14px; padding: 0 12px; border-radius: 10px; font-size: 8px; }
  .admin-view-applications .admin-title { min-height: 180px; }
}

/* Private job-application workspace */
.admin-application-panel { margin-bottom: 12px; }
.admin-application-panel > header > p { max-width: 460px; margin: 0; color: #727b8b; font-size: 10px; line-height: 1.65; text-align: right; }
.admin-application-layout { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(390px, .95fr); }
.admin-application-builder { min-width: 0; padding: 30px; }
.admin-application-fields { display: grid; grid-template-columns: .76fr 1.24fr; gap: 12px; }
.admin-application-builder .admin-field { display: grid; }
.admin-application-builder .admin-field > span,
.admin-application-jd > span,
.admin-application-types legend,
.admin-application-upload > div:first-child > span { margin-bottom: 9px; color: #858d9c; font-size: 9px; font-weight: 720; letter-spacing: .06em; }
.admin-application-builder input,
.admin-application-jd textarea,
.admin-message-editor textarea { width: 100%; border: 1px solid rgba(255,255,255,.12); border-radius: 12px; outline: 0; color: #e8eaf0; background: rgba(4,6,11,.7); font-family: inherit; box-shadow: inset 0 1px 0 rgba(255,255,255,.025); transition: border-color .18s ease, box-shadow .18s ease; }
.admin-application-builder input { min-height: 51px; padding: 0 15px; font-size: 13px; }
.admin-application-url { margin-top: 12px; }
.admin-application-jd { display: grid; margin-top: 18px; }
.admin-application-jd textarea { min-height: 174px; resize: vertical; padding: 15px; font-size: 13px; line-height: 1.75; }
.admin-application-builder input:focus,
.admin-application-jd textarea:focus,
.admin-message-editor textarea:focus { border-color: #7e90ff; box-shadow: 0 0 0 3px rgba(113,132,255,.12); }
.admin-application-types { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 7px; margin: 22px 0; padding: 0; border: 0; }
.admin-application-types legend { width: 100%; padding: 0; }
.admin-application-types label { position: relative; min-width: 0; cursor: pointer; }
.admin-application-types input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.admin-application-types span { min-height: 42px; display: grid; place-items: center; padding: 0 7px; border: 1px solid rgba(255,255,255,.085); border-radius: 10px; color: #747d8e; background: rgba(255,255,255,.02); font-size: 8px; font-weight: 650; text-align: center; }
.admin-application-types input:checked + span { color: #f2f3f6; border-color: rgba(128,146,255,.5); background: rgba(105,122,225,.12); }
.admin-application-upload { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 15px 0 18px; border-top: 1px solid rgba(255,255,255,.065); }
.admin-application-upload > div:first-child { display: grid; }
.admin-application-upload > div:first-child > span { margin: 0 0 5px; }
.admin-application-upload small { color: #5f6877; font-size: 8px; }
.admin-application-upload > label { cursor: pointer; }
.admin-application-upload > label input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.admin-application-upload > label span { min-height: 38px; display: grid; place-items: center; padding: 0 15px; border: 1px solid rgba(255,255,255,.12); border-radius: 10px; color: #b5bbc6; font-size: 9px; }
.admin-application-previews { grid-column: 1 / -1; display: flex; gap: 8px; overflow-x: auto; }
.admin-application-previews:empty { display: none; }
.admin-application-previews > div { position: relative; flex: 0 0 74px; height: 74px; overflow: hidden; border-radius: 9px; background: #090b10; }
.admin-application-previews img { width: 100%; height: 100%; object-fit: cover; }
.admin-panel .admin-upload-preview-remove { position: absolute; z-index: 3; top: 4px; right: 4px; width: 18px; height: 18px; min-height: 18px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 0; color: rgba(255,255,255,.86); background: rgba(4,5,8,.58); font: 400 13px/1 Arial,sans-serif; box-shadow: none; }
.admin-panel .admin-upload-preview-remove:hover { color: #fff; border: 0; background: rgba(4,5,8,.78); }
.admin-application-spinner { display: none; }
.admin-application-analyze { width: 100%; min-height: 51px; display: flex; align-items: center; justify-content: space-between; padding: 0 17px; border: 0; border-radius: 11px; color: #07080b; background: #f0f1f4; font-weight: 680; }
.admin-application-analyze > i { font-size: 16px; font-style: normal; }
.admin-application-analyze[data-state="loading"] { color: #6f7783; background: #c9cdd5; }
.admin-application-builder > .form-status { min-height: 18px; margin: 10px 0 0; color: #83d9ba; font-size: 9px; }
.admin-application-builder > .form-status.error { color: #ff98a5; }
.admin-application-analysis { min-width: 0; min-height: 590px; padding: 30px; border-left: 1px solid rgba(255,255,255,.07); background: radial-gradient(circle at 48% 6%, rgba(80,101,229,.12), transparent 21rem), rgba(3,5,10,.3); }
.admin-application-empty { height: 100%; min-height: 450px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.admin-application-empty > span { color: #7483ec; font-size: 10px; font-weight: 760; letter-spacing: .15em; }
.admin-application-empty h3 { max-width: 360px; margin: 24px 0 10px; color: #eff0f4; font-size: clamp(28px, 3vw, 42px); font-weight: 570; line-height: 1.15; letter-spacing: -.04em; }
.admin-application-empty p { max-width: 380px; margin: 0; color: #6f7888; font-size: 10px; line-height: 1.8; }
.admin-match-heading { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 24px; align-items: end; }
.admin-match-heading > div > span { display: block; margin-bottom: 8px; color: #7987e7; font-size: 8px; font-weight: 740; letter-spacing: .08em; }
.admin-match-heading strong { color: #f2f3f5; font-size: 42px; font-weight: 560; letter-spacing: -.06em; }
.admin-match-heading strong i { color: #586171; font-size: 10px; font-style: normal; letter-spacing: 0; }
.admin-match-heading > p { margin: 0; color: #adb3be; font-size: 11px; line-height: 1.7; }
.admin-match-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 24px 0; }
.admin-match-columns section > span { color: #737c8b; font-size: 8px; font-weight: 740; letter-spacing: .08em; }
.admin-match-columns ul { margin: 10px 0 0; padding: 0; list-style: none; }
.admin-match-columns li { position: relative; margin: 0 0 8px; padding-left: 12px; color: #989fab; font-size: 9px; line-height: 1.65; }
.admin-match-columns li::before { content: ''; position: absolute; top: .65em; left: 0; width: 4px; height: 4px; border-radius: 50%; background: #7182f0; }
.admin-message-editor { padding-top: 20px; border-top: 1px solid rgba(255,255,255,.07); }
.admin-message-variants { display: flex; gap: 6px; margin-bottom: 8px; overflow-x: auto; }
.admin-message-variants button { min-height: 34px; flex: 0 0 auto; padding: 0 12px; border-radius: 8px; color: #727b89; background: transparent; font-size: 8px; }
.admin-message-variants button.is-active { color: #e8eaf0; border-color: rgba(124,142,255,.45); background: rgba(107,125,229,.1); }
.admin-message-editor textarea { min-height: 158px; resize: vertical; padding: 14px; font-size: 12px; line-height: 1.8; }
.admin-message-actions { display: grid; grid-template-columns: .8fr 1.2fr; gap: 7px; margin-top: 8px; }
.admin-message-actions button { min-height: 40px; border-radius: 9px; color: #a8afbb; background: rgba(255,255,255,.035); font-size: 8px; }
.admin-message-actions button:first-child { color: #090a0e; background: #e9ebef; }
.admin-application-evidence { display: flex; gap: 7px; margin-top: 12px; overflow-x: auto; }
.admin-application-evidence:empty { display: none; }
.admin-application-evidence a { flex: 0 0 68px; height: 68px; overflow: hidden; border-radius: 8px; background: #090b10; }
.admin-application-evidence img { width: 100%; height: 100%; object-fit: cover; }
.admin-application-delivery { display: grid; grid-template-columns: 1.35fr .65fr; gap: 8px; margin-top: 14px; }
.admin-application-delivery button { min-height: 46px; border-radius: 10px; color: #9ba3b0; background: rgba(255,255,255,.035); font-size: 8px; }
.admin-application-delivery button:first-child { display: flex; align-items: center; justify-content: space-between; padding: 0 14px; color: #08090c; background: #f0f1f4; }
.admin-application-delivery i { font-size: 14px; font-style: normal; }
.admin-application-ready > .form-status { min-height: 17px; margin: 10px 0 0; color: #80d8b7; font-size: 8px; line-height: 1.5; }
.admin-application-ready > .form-status.error { color: #ff98a5; }
.admin-application-records-panel { margin-bottom: 12px; }
.admin-record-controls { display: flex; align-items: center; gap: 12px; }
.admin-record-controls select,
.admin-application-record > select { min-height: 36px; padding: 0 30px 0 12px; border: 1px solid rgba(255,255,255,.1); border-radius: 9px; outline: 0; color: #b7bdc8; background: #0c0f16; font: inherit; font-size: 9px; }
.admin-record-controls > b { color: #687181; font-size: 9px; font-weight: 570; }
.admin-application-records { max-height: 390px; overflow-y: auto; }
.admin-application-record { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 18px; padding: 16px 20px; border-top: 1px solid rgba(255,255,255,.06); }
.admin-record-identity { min-width: 0; display: grid; grid-template-columns: 120px minmax(0, 1fr) 200px; align-items: center; gap: 15px; padding: 0; border: 0; color: inherit; background: transparent; text-align: left; }
.admin-record-identity > span { color: #737c8b; font-size: 9px; }
.admin-record-identity > strong { overflow: hidden; color: #d8dbe1; font-size: 11px; font-weight: 590; text-overflow: ellipsis; white-space: nowrap; }
.admin-record-identity > small { color: #5d6675; font-size: 8px; text-align: right; }
.admin-record-empty { padding: 42px 20px; color: #626b7a; font-size: 10px; text-align: center; }

@media (max-width: 980px) {
  .admin-application-layout { grid-template-columns: 1fr; }
  .admin-application-analysis { border-top: 1px solid rgba(255,255,255,.07); border-left: 0; }
  .admin-application-types { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .admin-application-panel > header > p { display: none; }
  .admin-application-builder, .admin-application-analysis { padding: 20px 16px; }
  .admin-application-fields { grid-template-columns: 1fr; gap: 10px; }
  .admin-application-builder input,
  .admin-application-jd textarea,
  .admin-message-editor textarea { font-size: 16px; }
  .admin-application-jd textarea { min-height: 220px; }
  .admin-application-types { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-application-types span { min-height: 44px; font-size: 9px; }
  .admin-application-upload { grid-template-columns: 1fr auto; }
  .admin-application-analysis { min-height: 0; }
  .admin-application-empty { min-height: 330px; }
  .admin-match-heading { grid-template-columns: 102px minmax(0, 1fr); gap: 14px; }
  .admin-match-heading strong { font-size: 35px; }
  .admin-match-heading > p { font-size: 10px; }
  .admin-match-columns { grid-template-columns: 1fr; gap: 14px; }
  .admin-match-columns li { font-size: 10px; }
  .admin-message-actions, .admin-application-delivery { grid-template-columns: 1fr; }
  .admin-message-actions button, .admin-application-delivery button { min-height: 46px; font-size: 9px; }
  .admin-application-records-panel > header { align-items: flex-start; }
  .admin-record-controls { display: grid; justify-items: end; gap: 7px; }
  .admin-record-controls select { max-width: 132px; font-size: 10px; }
  .admin-application-records { max-height: 430px; }
  .admin-application-record { grid-template-columns: minmax(0, 1fr) 116px; gap: 10px; padding: 15px 14px; }
  .admin-record-identity { grid-template-columns: 1fr; gap: 4px; }
  .admin-record-identity > strong { font-size: 12px; }
  .admin-record-identity > small { text-align: left; }
  .admin-application-record > select { width: 116px; min-height: 38px; font-size: 10px; }
}

/* OMYNE — cinematic live topology */
.case-v2-hero-visual.topology-3d {
  position: relative;
  isolation: isolate;
  background:
    radial-gradient(circle at 50% 48%, rgba(69, 83, 187, .19), transparent 37%),
    #03050b;
  border-color: rgba(143, 157, 225, .2);
  box-shadow: 0 42px 120px rgba(0, 0, 0, .4), inset 0 1px 0 rgba(255, 255, 255, .035);
}
.topology-3d::after {
  content: "";
  position: absolute;
  z-index: 3;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(3, 5, 11, .2), transparent 21%, transparent 74%, rgba(3, 5, 11, .75)),
    radial-gradient(circle at center, transparent 38%, rgba(2, 3, 8, .44) 100%);
}
#omyne-topology {
  position: absolute;
  z-index: 1;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  cursor: crosshair;
}
.topology-3d-head,
.topology-3d-foot {
  position: absolute;
  z-index: 5;
  right: 28px;
  left: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
  color: rgba(191, 200, 229, .52);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .18em;
}
.topology-3d-head { top: 25px; }
.topology-3d-head b,
.topology-3d-foot b { color: rgba(145, 155, 188, .36); font-size: inherit; font-weight: inherit; }
.topology-3d-foot { bottom: 24px; }
.topology-3d-foot span { color: #93a4ff; }
.topology-3d-foot span i {
  width: 5px;
  height: 5px;
  display: inline-block;
  margin-right: 8px;
  border-radius: 50%;
  background: #79e7c4;
  box-shadow: 0 0 14px rgba(121, 231, 196, .95);
  animation: topology-status-pulse 2.2s ease-in-out infinite;
}
.topology-3d-label {
  position: absolute;
  z-index: 6;
  top: 0;
  left: 0;
  min-width: 130px;
  display: flex;
  gap: 9px;
  align-items: flex-start;
  padding: 8px 10px 8px 9px;
  pointer-events: none;
  border: 1px solid rgba(144, 158, 217, .15);
  border-radius: 7px;
  background: linear-gradient(120deg, rgba(10, 14, 28, .78), rgba(5, 7, 14, .4));
  box-shadow: 0 12px 28px rgba(0, 0, 0, .22);
  backdrop-filter: blur(8px);
  will-change: transform, opacity;
}
.topology-3d-label::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  width: 1px;
  height: 17px;
  background: linear-gradient(rgba(135, 150, 218, .32), transparent);
}
.topology-3d-label > i {
  width: 5px;
  height: 5px;
  flex: 0 0 auto;
  margin-top: 3px;
  border-radius: 50%;
  background: #93a7ff;
  box-shadow: 0 0 12px rgba(128, 148, 255, .9);
}
.topology-3d-label span,
.topology-3d-label b,
.topology-3d-label small { display: block; }
.topology-3d-label b { color: rgba(238, 241, 255, .88); font-size: 8px; font-weight: 720; letter-spacing: .11em; }
.topology-3d-label small { margin-top: 3px; color: rgba(137, 147, 180, .58); font-size: 6px; letter-spacing: .12em; }
.topology-3d-label.is-core {
  border-color: rgba(145, 158, 255, .29);
  background: linear-gradient(120deg, rgba(24, 31, 66, .82), rgba(7, 10, 22, .5));
}
.topology-3d-label.is-core > i { background: white; box-shadow: 0 0 18px #8495ff; }
.topology-fallback {
  position: absolute;
  z-index: 4;
  inset: 50% auto auto 50%;
  width: 80%;
  display: none;
  margin: 0;
  color: rgba(196, 204, 235, .64);
  font-size: 10px;
  letter-spacing: .15em;
  line-height: 2;
  text-align: center;
  transform: translate(-50%, -50%);
}
.topology-3d-fallback #omyne-topology,
.topology-3d-fallback .topology-3d-label { display: none; }
.topology-3d-fallback .topology-fallback { display: block; }
.topology-3d-fallback {
  background:
    radial-gradient(circle at 50% 50%, rgba(103, 119, 233, .24), transparent 28%),
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px),
    #03050b !important;
  background-size: auto, 42px 42px, 42px 42px, auto !important;
}
@keyframes topology-status-pulse {
  0%, 100% { opacity: .55; transform: scale(.8); }
  50% { opacity: 1; transform: scale(1.25); }
}
@media (prefers-reduced-motion: reduce) {
  .topology-3d-foot span i { animation: none; }
}
@media (max-width: 640px) {
  .topology-3d-head,
  .topology-3d-foot { right: 14px; left: 14px; font-size: 6px; }
  .topology-3d-head { top: 14px; }
  .topology-3d-foot { bottom: 13px; }
  .topology-3d-head b,
  .topology-3d-foot b { display: none; }
  .topology-3d-label { min-width: 95px; gap: 6px; padding: 6px 7px; }
  .topology-3d-label b { font-size: 6px; }
  .topology-3d-label small { font-size: 5px; }
  .topology-3d-label::after { height: 10px; }
}

@media (hover: none) and (pointer: coarse) {
  .button:not([aria-disabled="true"]):hover, .button:focus-visible {
    transform: none;
    box-shadow: none;
  }
}

@media (max-width: 360px) {
  .hero .actions { grid-template-columns: 1fr; }
  .hero .actions .button:first-child { grid-column: auto; }
  .meta-list { grid-template-columns: 1fr; }
}

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

@media print {
  .site-header, .site-footer, .actions, .callout { display: none; }
  body { background: white; }
  .hero { min-height: 0; padding: 20px 0; }
  .profile-card, .card { box-shadow: none; }
}

/* Homepage — dark product narrative */
.home-page {
  --home-bg: #05060a;
  --home-panel: #0b0d14;
  --home-text: #f5f6f9;
  --home-muted: #989da9;
  --home-line: rgba(255, 255, 255, .14);
  --home-accent: #99a7ff;
  color: var(--home-text);
  background: var(--home-bg);
  line-height: 1.55;
}
.home-page .shell { width: min(1240px, calc(100% - 64px)); }
.home-header { position: absolute; inset: 0 0 auto; z-index: 10; padding: 24px 0; border: 0; }
.home-nav { display: flex; justify-content: space-between; border: 0; }
.home-brand { color: white; font-size: 15px; }
.home-brand .brand-mark { border: 1px solid rgba(255,255,255,.28); background: rgba(5,6,10,.42); color: white; backdrop-filter: blur(12px); }
.home-nav-links { display: flex; align-items: center; gap: clamp(22px, 3vw, 42px); }
.home-nav-links a { position: relative; color: rgba(255,255,255,.7); font-size: 13px; font-weight: 650; text-decoration: none; }
.home-nav-links a::after { content: ""; position: absolute; right: 0; bottom: -7px; left: 0; height: 1px; background: white; transform: scaleX(0); transform-origin: right; transition: transform .25s ease; }
.home-nav-links a:hover { color: white; }
.home-nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }
.home-login { justify-self: end; display: inline-flex; min-height: 42px; align-items: center; gap: 16px; padding: 7px 8px 7px 17px; border: 1px solid rgba(255,255,255,.35); border-radius: 999px; color: white; font-size: 13px; font-weight: 720; text-decoration: none; backdrop-filter: blur(12px); }
.home-login b { width: 27px; height: 27px; display: grid; place-items: center; border-radius: 50%; background: white; color: #080a10; font-size: 12px; transition: transform .25s ease; }
.nav-arrow { position: relative; display: inline-block; flex: 0 0 auto; }
.nav-arrow::before { content: ""; position: absolute; top: 50%; left: 50%; width: 10px; height: 1.5px; border-radius: 2px; background: currentColor; transform: translate(-50%, -50%); }
.nav-arrow::after { content: ""; position: absolute; top: 50%; right: calc(50% - 5px); width: 5px; height: 5px; border-top: 1.5px solid currentColor; border-right: 1.5px solid currentColor; transform: translateY(-50%) rotate(45deg); transform-origin: center; }
.nav-arrow-diagonal { transform: rotate(-45deg); }
.home-login:hover b { transform: rotate(45deg); }

/* One-path navigation arrows: no joined CSS shaft/head geometry. */
svg.nav-arrow { width: 14px; height: 14px; display: block; flex: 0 0 auto; overflow: visible; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
svg.nav-arrow::before, svg.nav-arrow::after { content: none; }
.home-login svg.nav-arrow { width: 27px; height: 27px; padding: 7px; border-radius: 50%; background: white; color: #080a10; transition: transform .25s ease; }
.home-login:hover svg.nav-arrow { transform: rotate(0deg); }

.home-hero { position: relative; min-height: 100svh; isolation: isolate; overflow: hidden; background: #080b18; }
.dither-container { position: absolute; inset: 0; z-index: -3; width: 100%; height: 100%; display: block; }
.dither-container.dither-fallback { background: radial-gradient(ellipse at 66% 36%, #3646a4 0, #151b4b 32%, #070918 69%, #030409 100%); }
.hero-shade { position: absolute; inset: 0; z-index: -2; background: linear-gradient(90deg, rgba(3,4,9,.75) 0%, rgba(3,4,9,.34) 51%, rgba(3,4,9,.08) 100%), linear-gradient(0deg, rgba(3,4,9,.83) 0%, transparent 34%); }
.hero-shade::after { content: ""; position: absolute; inset: 0; opacity: .18; background-image: linear-gradient(rgba(255,255,255,.09) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.09) 1px, transparent 1px); background-size: 80px 80px; mask-image: linear-gradient(to bottom, black, transparent 72%); }
.hero-content { min-height: 100svh; display: flex; flex-direction: column; justify-content: center; align-items: center; padding-top: 76px; padding-bottom: 17vh; text-align: center; }
.hero-kicker { position: relative; width: min(920px, 100%); display: flex; align-items: center; justify-content: flex-start; margin: 0 0 30px; padding-left: 27px; color: rgba(255,255,255,.68); font-size: 11px; font-weight: 760; letter-spacing: .15em; text-align: left; }
.hero-kicker i { position: absolute; top: 50%; left: 7px; width: 7px; height: 7px; border-radius: 50%; background: #abb7ff; box-shadow: 0 0 18px #8394ff; transform: translateY(-50%); }
.home-page .hero-content h1 { width: min(920px, 100%); max-width: 920px; margin: 0; color: white; font-size: clamp(54px, 7vw, 98px); font-weight: 620; letter-spacing: -.06em; line-height: .96; text-align: left; }
.hero-content h1 > span, .hero-content h1 > em { display: block; }
.hero-content h1 em { color: rgba(255,255,255,.58); font-style: normal; font-weight: 520; }
.hero-lead { width: min(920px, 100%); max-width: 920px; margin: 30px 0 0; color: rgba(255,255,255,.7); font-family: "Cabinet Grotesk", "Songti SC", "STSong", "Noto Serif SC", Georgia, serif; font-size: clamp(16px, 1.4vw, 20px); font-weight: 400; line-height: 1.8; letter-spacing: .045em; text-align: left; }
.hero-lead span + span { margin-left: .3em; }
.hero-actions { width: min(440px, 100%); align-self: center; justify-content: center; margin: 34px auto 0; }
.home-page .hero-actions .button { min-height: 52px; padding: 11px 22px; border-color: rgba(255,255,255,.42); color: white; font-size: 14px; }
.home-page .hero-actions .hero-primary { gap: 28px; border-color: white; background: white; color: #080910; }
.home-page .hero-actions .hero-secondary { background: rgba(5,6,10,.18); backdrop-filter: blur(10px); }
.home-hero-footer { position: absolute; right: 0; bottom: 23px; left: 0; z-index: 2; display: grid; grid-template-columns: 1fr auto 1fr; gap: 24px; align-items: center; color: rgba(255,255,255,.43); font-size: 9px; font-weight: 650; letter-spacing: .13em; pointer-events: none; }
.home-hero-footer > span:last-child { text-align: right; }
.palette-label { display: inline-flex; align-items: center; gap: 9px; }
.palette-label i { width: 6px; height: 6px; border-radius: 50%; background: white; box-shadow: 0 0 12px rgba(255,255,255,.7); animation: palette-pulse 9s ease-in-out infinite alternate; }
@keyframes palette-pulse { 0%, 35% { background: #8e9dff; } 65%, 100% { background: white; } }

.gooey-nav-container {
  --gooey-1: #9eabff;
  --gooey-2: #d2d8ff;
  --gooey-3: #6477ef;
  --gooey-4: #ffffff;
  position: relative;
  isolation: isolate;
}
.gooey-nav-container nav { position: relative; z-index: 3; width: 100%; }
.gooey-nav-container ul { width: 100%; display: flex; gap: 10px; margin: 0; padding: 5px; border: 1px solid rgba(255,255,255,.2); border-radius: 999px; background: rgba(5,6,10,.2); list-style: none; backdrop-filter: blur(12px); }
.gooey-nav-container li { position: relative; isolation: isolate; flex: 1; min-width: 0; border-radius: 999px; color: white; cursor: pointer; }
.gooey-nav-container li a { width: 100%; min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 28px; padding: 9px 19px; border-radius: inherit; color: inherit; font-size: 13px; font-weight: 740; text-decoration: none; text-shadow: 0 1px 2px rgba(0,0,0,.22); transition: color .25s ease; }
.gooey-nav-container li::after { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: white; opacity: 0; transform: scale(.8); transition: opacity .25s ease, transform .25s ease; }
.gooey-nav-container li.active { color: #080910; }
.gooey-nav-container li.active::after { opacity: 1; transform: scale(1); }
.gooey-nav-container li:focus-within { outline: 2px solid white; outline-offset: 3px; }
.gooey-effect { position: absolute; top: 0; left: 0; z-index: 1; display: grid; place-items: center; pointer-events: none; transition: left .38s cubic-bezier(.2,.8,.2,1), top .38s cubic-bezier(.2,.8,.2,1), width .38s cubic-bezier(.2,.8,.2,1), height .38s cubic-bezier(.2,.8,.2,1); }
.gooey-text { color: #080910; font-size: 13px; font-weight: 740; opacity: 0; }
.gooey-filter { z-index: 2; filter: blur(6px) contrast(16); }
.gooey-filter::after { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: 999px; background: white; opacity: 0; transform: scale(.72); }
.gooey-filter.active::after { animation: gooey-pill .34s ease both; }
@keyframes gooey-pill { to { opacity: 1; transform: scale(1); } }
.gooey-particle, .gooey-point { display: block; width: 15px; height: 15px; border-radius: 50%; }
.gooey-particle { position: absolute; top: calc(50% - 7px); left: calc(50% - 7px); animation: gooey-particle var(--particle-time) ease-out both; }
.gooey-point { background: var(--particle-color); animation: gooey-point var(--particle-time) ease-out both; }
@keyframes gooey-particle {
  0% { opacity: 1; transform: translate(var(--start-x), var(--start-y)); }
  72% { opacity: 1; transform: translate(calc(var(--end-x) * 1.35), calc(var(--end-y) * 1.35)); }
  100% { opacity: 0; transform: translate(var(--end-x), var(--end-y)); }
}
@keyframes gooey-point {
  0% { opacity: 0; transform: scale(0); }
  30% { opacity: 1; transform: scale(var(--particle-scale)); }
  78% { opacity: 1; transform: scale(var(--particle-scale)); }
  100% { opacity: 0; transform: scale(0); }
}
.hero-scroll { position: absolute; right: 0; bottom: 0; left: 0; display: flex; justify-content: space-between; align-items: center; padding-top: 22px; padding-bottom: 24px; border-top: 1px solid rgba(255,255,255,.22); color: rgba(255,255,255,.5); font-size: 9px; font-weight: 740; letter-spacing: .17em; text-decoration: none; }
.hero-scroll b { display: grid; width: 32px; height: 32px; place-items: center; border: 1px solid rgba(255,255,255,.32); border-radius: 50%; color: white; font-size: 12px; }

.home-section { padding: 140px 0; }
.work-section { background: #f2f2ef; color: #0c0d10; }
.home-section-head { display: grid; grid-template-columns: 1.15fr .7fr; gap: 100px; align-items: end; margin-bottom: 76px; }
.home-section-head.compact-head { margin-bottom: 54px; }
.section-index { display: block; margin-bottom: 32px; color: #737783; font-size: 10px; font-weight: 780; letter-spacing: .18em; }
.home-section h2 { margin: 0; font-size: clamp(44px, 5.7vw, 76px); font-weight: 610; letter-spacing: -.055em; line-height: 1.02; }
.home-section-head > p { max-width: 490px; margin: 0 0 7px; color: #62666f; font-size: 17px; line-height: 1.75; }
.work-list { border-top: 1px solid rgba(10,12,17,.18); }
.work-card { display: grid; grid-template-columns: 70px minmax(0,1fr) auto; gap: 38px; align-items: center; min-height: 210px; padding: 36px 10px; border-bottom: 1px solid rgba(10,12,17,.18); color: #0c0d10; text-decoration: none; transition: padding .3s ease, background .3s ease; }
.work-card:hover { padding-right: 26px; padding-left: 26px; background: white; }
.work-number { align-self: start; color: #8b8e95; font: 11px "Cabinet Grotesk", sans-serif; }
.work-copy p { margin: 0 0 18px; color: #787b83; font-size: 10px; font-weight: 780; letter-spacing: .16em; }
.work-copy h3 { margin: 0 0 13px; font-size: clamp(34px, 4vw, 56px); font-weight: 610; letter-spacing: -.045em; }
.work-copy > span { color: #62666e; font-size: 15px; }
.work-meta { min-width: 146px; text-align: right; }
.work-meta span, .work-meta b { display: block; }
.work-meta span { margin-bottom: 28px; color: #7e8188; font-size: 12px; }
.work-meta b { font-size: 13px; }
.work-arrow { display: grid; width: 48px; height: 48px; place-items: center; border: 1px solid rgba(10,12,17,.2); border-radius: 50%; font-size: 15px; transition: transform .25s ease, background .25s ease, color .25s ease; }
.work-card:hover .work-arrow { background: #101217; color: white; transform: rotate(45deg); }
.section-link-row { display: flex; justify-content: flex-end; gap: 36px; padding-top: 34px; }
.section-link-row a { color: #111318; font-size: 13px; font-weight: 720; text-underline-offset: 6px; }
.section-link-row span { margin-left: 8px; }

.method-section { background: var(--home-bg); }
.method-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 120px; }
.method-title { position: sticky; top: 60px; align-self: start; }
.method-title > p { max-width: 480px; margin: 34px 0; color: var(--home-muted); font-size: 17px; line-height: 1.75; }
.inline-arrow { color: white; font-size: 14px; font-weight: 700; text-underline-offset: 7px; }
.method-list { border-top: 1px solid var(--home-line); }
.method-list article { display: grid; grid-template-columns: 50px 1fr; gap: 26px; min-height: 150px; padding: 34px 0; border-bottom: 1px solid var(--home-line); }
.method-list article > span { color: #737887; font: 11px "Cabinet Grotesk", sans-serif; }
.method-list h3 { margin: 0 0 18px; color: white; font-size: 29px; font-weight: 580; letter-spacing: -.035em; }
.method-list p { max-width: 570px; margin: 0; color: var(--home-muted); font-size: 15px; line-height: 1.75; }

.contact-section { padding-top: 40px; background: var(--home-bg); }
.contact-panel { position: relative; overflow: hidden; padding: clamp(48px, 8vw, 104px); border: 1px solid rgba(255,255,255,.13); border-radius: 4px; background: radial-gradient(circle at 88% 20%, rgba(109,126,255,.32), transparent 31%), linear-gradient(135deg, #121728, #090b12 65%); }
.contact-panel::after { content: "YQ"; position: absolute; right: -3vw; bottom: -10vw; color: rgba(255,255,255,.025); font-size: 33vw; font-weight: 800; line-height: 1; letter-spacing: -.12em; pointer-events: none; }
.contact-panel h2 { position: relative; z-index: 1; }
.contact-panel h2 em { color: var(--home-accent); font-style: normal; }
.contact-panel > p { position: relative; z-index: 1; max-width: 660px; margin: 32px 0 0; color: #a6aab5; font-size: 16px; line-height: 1.75; }
.contact-panel .actions { position: relative; z-index: 1; }
.home-page .contact-panel .button { border-color: rgba(255,255,255,.38); color: white; }
.home-page .contact-panel .contact-primary { background: white; color: #080910; }
.home-footer { padding: 42px 0; border-top: 1px solid var(--home-line); color: #777c89; font-size: 11px; letter-spacing: .08em; }

@media (max-width: 820px) {
  .home-page .shell { width: min(100% - 40px, 1240px); }
  .home-header { padding: 15px 0; }
  .home-nav { border-bottom: 0; }
  .hero-content { justify-content: center; padding-top: 92px; padding-bottom: 14vh; }
  .home-section { padding: 92px 0; }
  .home-section-head, .method-grid { grid-template-columns: 1fr; gap: 34px; }
  .home-section-head { margin-bottom: 50px; }
  .method-title { position: static; }
  .work-card { grid-template-columns: 38px minmax(0,1fr); gap: 18px; }
  .work-arrow { grid-column: 2; width: 40px; height: 40px; }
}

@media (max-width: 640px) {
  .home-page .shell { width: min(100% - 30px, 1240px); }
  .home-brand .brand-mark { width: 30px; height: 30px; }
  .home-login { min-height: 36px; padding: 4px 5px 4px 13px; }
  .home-login b { width: 25px; height: 25px; }
  .hero-shade { background: linear-gradient(0deg, rgba(3,4,9,.88) 0%, rgba(3,4,9,.22) 76%), linear-gradient(90deg, rgba(3,4,9,.5), transparent); }
  .hero-shade::after { background-size: 50px 50px; }
  .hero-content { min-height: 100svh; padding-top: 92px; padding-bottom: 12vh; }
  .hero-kicker { margin-bottom: 21px; font-size: 8.5px; line-height: 1.5; letter-spacing: .11em; }
  .home-page .hero-content h1 { font-size: clamp(45px, 13.2vw, 61px); line-height: .98; }
  .hero-lead { margin-top: 25px; font-size: 15px; line-height: 1.66; }
  .hero-lead br { display: none; }
  .hero-lead span { display: block; }
  .hero-lead span + span { margin-left: 0; }
  .hero-actions { display: grid; grid-template-columns: 1fr; width: min(390px, 100%); margin-top: 28px; }
  .home-page .hero-actions .button { min-height: 47px; padding: 9px 13px; font-size: 12px; }
  .home-page .hero-actions .hero-primary { gap: 12px; }
  .gooey-nav-container ul { width: 100%; gap: 5px; padding: 4px; }
  .gooey-nav-container li { flex: 1; min-width: 0; }
  .gooey-nav-container li a { min-width: 0; min-height: 45px; gap: 12px; padding: 8px 11px; font-size: 12px; }
  .hero-scroll { padding-top: 15px; padding-bottom: 16px; }
  .home-hero-footer { bottom: 15px; grid-template-columns: 1fr auto; gap: 12px; font-size: 7.5px; letter-spacing: .09em; }
  .home-hero-footer > span:last-child { display: none; }
  .home-section { padding: 72px 0; }
  .section-index { margin-bottom: 22px; }
  .home-section h2 { font-size: 39px; }
  .home-section-head { margin-bottom: 38px; }
  .home-section-head > p, .method-title > p { font-size: 15px; }
  .work-card { min-height: 0; padding: 27px 0; }
  .work-card:hover { padding-right: 0; padding-left: 0; background: transparent; }
  .work-copy p { margin-bottom: 13px; font-size: 8px; }
  .work-copy h3 { font-size: 31px; }
  .work-copy > span { display: block; font-size: 13px; line-height: 1.55; }
  .work-arrow { margin-top: 3px; }
  .section-link-row { justify-content: flex-start; flex-direction: column; gap: 16px; }
  .method-list article { grid-template-columns: 32px 1fr; gap: 14px; min-height: 0; padding: 29px 0; }
  .method-list h3 { font-size: 25px; }
  .contact-section { padding-top: 18px; }
  .contact-panel { width: calc(100% - 20px) !important; padding: 42px 25px; }
  .contact-panel > p { margin-top: 24px; font-size: 14px; }
  .contact-panel .actions { display: grid; grid-template-columns: 1fr; }
  .home-page .contact-panel .button { width: 100%; }
  .home-footer .footer-row { gap: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  .home-nav-links a::after, .home-login b, .work-card, .work-arrow { transition: none; }
  .gooey-effect, .gooey-nav-container li a, .gooey-nav-container li::after { transition: none; }
  .gooey-particle { display: none; }
  .palette-label i { animation: none; background: white; }
}

@media (max-width: 360px) {
  .home-page .hero-content h1 { font-size: 40px; }
  .hero-lead { font-size: 14px; }
  .gooey-nav-container li a { gap: 7px; padding-right: 8px; padding-left: 8px; font-size: 11px; }
}

/* Unified inner-page system */
.inner-page {
  --inner-bg: #05060a;
  --inner-panel: #0c0e15;
  --inner-text: #f3f4f7;
  --inner-muted: #9297a4;
  --inner-line: rgba(255,255,255,.13);
  --inner-accent: #9eabff;
  min-height: 100vh;
  color: var(--inner-text);
  background:
    radial-gradient(circle at 82% 5%, rgba(66,79,176,.18), transparent 27rem),
    linear-gradient(rgba(255,255,255,.024) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.024) 1px, transparent 1px),
    var(--inner-bg);
  background-size: auto, 80px 80px, 80px 80px, auto;
}
.inner-page .shell { width: min(1240px, calc(100% - 64px)); }
.inner-page a { color: inherit; }
.inner-header { position: relative; z-index: 10; padding: 22px 0; border-bottom: 1px solid var(--inner-line); background: rgba(5,6,10,.72); backdrop-filter: blur(18px); }
.inner-nav { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 28px; }
.inner-brand { color: white; }
.inner-brand .brand-mark { border: 1px solid rgba(255,255,255,.25); background: transparent; color: white; }
.inner-nav-links { display: flex; align-items: center; gap: 36px; }
.inner-nav-links a { color: #adb1bc; font-size: 12px; font-weight: 700; text-decoration: none; }
.inner-nav-links a:hover, .inner-nav-links a[aria-current="page"] { color: white; }
.inner-login { justify-self: end; color: white; font-size: 12px; font-weight: 720; text-decoration: none; }
.inner-login.active { color: var(--inner-accent); }
.inner-index, .case-label, .console-label { display: block; color: #787e8e; font-size: 10px; font-weight: 800; letter-spacing: .18em; }
.inner-hero { padding: 112px 0 82px; border-bottom: 1px solid var(--inner-line); }
.inner-hero h1 { max-width: 1100px; margin: 24px 0; color: white; font-size: clamp(72px, 10.5vw, 150px); font-weight: 610; line-height: .88; letter-spacing: -.07em; }
.inner-hero > p:last-of-type { max-width: 690px; margin: 0; color: var(--inner-muted); font-size: 18px; line-height: 1.75; }
.inner-footer { margin-top: 110px; padding: 38px 0; border-top: 1px solid var(--inner-line); color: #737986; font-size: 11px; letter-spacing: .08em; }
.inner-footer a { text-underline-offset: 6px; }

.portfolio-hero h1 { font-size: clamp(86px, 13vw, 176px); }
.portfolio-list { border-top: 1px solid var(--inner-line); }
.portfolio-item { display: grid; grid-template-columns: 62px minmax(0, 1fr) auto 54px; gap: 34px; align-items: center; min-height: 225px; padding: 38px 8px; border-bottom: 1px solid var(--inner-line); color: white; text-decoration: none; transition: padding .3s ease, background .3s ease; }
.portfolio-item:hover { padding-right: 28px; padding-left: 28px; background: rgba(255,255,255,.045); }
.portfolio-no { align-self: start; color: #666c79; font: 10px "Cabinet Grotesk", sans-serif; }
.portfolio-item small { color: #777d89; font-size: 9px; font-weight: 780; letter-spacing: .16em; }
.portfolio-item h2 { margin: 15px 0 9px; color: white; font-size: clamp(36px, 4.5vw, 62px); font-weight: 580; letter-spacing: -.05em; }
.portfolio-item p { margin: 0; color: var(--inner-muted); font-size: 14px; }
.portfolio-status { padding: 6px 10px; border: 1px solid var(--inner-line); border-radius: 999px; color: #969ca8; font-size: 9px; letter-spacing: .12em; }
.portfolio-item > b { display: grid; width: 48px; height: 48px; place-items: center; border: 1px solid rgba(255,255,255,.22); border-radius: 50%; font-size: 14px; transition: transform .25s ease, background .25s ease, color .25s ease; }
.portfolio-item:hover > b { color: #080910; background: white; transform: rotate(45deg); }
.archive-entry { display: grid; grid-template-columns: 1fr auto; gap: 50px; align-items: center; margin-top: 72px; padding-top: 27px; padding-bottom: 27px; border-top: 1px solid var(--inner-line); border-bottom: 1px solid var(--inner-line); }
.archive-entry .inner-index { margin-bottom: 9px; }
.archive-entry h2 { margin: 0; color: white; font-size: 25px; font-weight: 580; }
.archive-entry > a { display: inline-flex; align-items: center; gap: 24px; color: #a1a6b2; font-size: 11px; font-weight: 720; text-decoration: none; }

.case-hero h1 { font-size: clamp(78px, 12vw, 160px); }
.case-facts { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 38px; }
.case-facts span { padding: 7px 11px; border: 1px solid var(--inner-line); border-radius: 999px; color: #9ba0ac; font-size: 9px; letter-spacing: .12em; }
.case-layout { display: grid; grid-template-columns: minmax(0, 1.4fr) 310px; gap: 90px; padding-top: 100px; }
.case-content > section { padding: 0 0 88px; }
.case-content h2 { max-width: 850px; margin: 23px 0; color: white; font-size: clamp(38px, 5vw, 66px); font-weight: 570; line-height: 1.08; letter-spacing: -.05em; }
.case-content > section > p { max-width: 760px; color: var(--inner-muted); font-size: 17px; line-height: 1.8; }
.case-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin-top: 44px; border: 1px solid var(--inner-line); background: var(--inner-line); }
.case-grid > div { min-height: 160px; padding: 28px; background: var(--inner-panel); }
.case-grid b { color: white; font-size: 18px; }
.case-grid p { margin: 28px 0 0; color: var(--inner-muted); font-size: 14px; }
.case-aside { position: sticky; top: 28px; align-self: start; padding: 27px; border: 1px solid var(--inner-line); background: rgba(10,12,18,.7); backdrop-filter: blur(16px); }
.case-aside > span { color: #717786; font-size: 9px; font-weight: 780; letter-spacing: .16em; }
.case-aside dl { margin: 24px 0 28px; }
.case-aside dl div { padding: 15px 0; border-bottom: 1px solid var(--inner-line); }
.case-aside dt { color: #747a87; font-size: 10px; }
.case-aside dd { margin: 5px 0 0; color: white; font-size: 13px; }
.case-aside > a { font-size: 12px; font-weight: 720; text-underline-offset: 6px; }

.legacy-case-page .page-hero { border-bottom: 1px solid var(--inner-line); }
.legacy-case-page .page-hero h1 { color: white; }
.legacy-case-page .page-hero .lead { color: var(--inner-muted); }
.legacy-case-page .product-pills span { border-color: var(--inner-line); background: rgba(255,255,255,.04); color: #abb1c0; }
.legacy-case-page .project-layout { gap: 70px; padding-top: 90px; }
.legacy-case-page .prose { color: #d6d8de; }
.legacy-case-page .prose h2 { color: white; }
.legacy-case-page .case-section > p:not(.section-kicker):not(.fine-print) { color: var(--inner-muted); }
.legacy-case-page .section-kicker { color: var(--inner-accent) !important; }
.legacy-case-page .problem-grid > div, .legacy-case-page .boundary { border-color: var(--inner-line); background: rgba(255,255,255,.035); }
.legacy-case-page .problem-grid span, .legacy-case-page .scenario-list span, .legacy-case-page .boundary ul, .legacy-case-page .fine-print { color: var(--inner-muted); }
.legacy-case-page .capability-grid > div { border: 1px solid var(--inner-line); background: #0d101a; }
.legacy-case-page .product-quote { background: #a8b3ff; color: #111528; }
.legacy-case-page .scenario-list, .legacy-case-page .scenario-list > div { border-color: var(--inner-line); }
.legacy-case-page .boundary.good { background: rgba(118,134,255,.12); }
.legacy-case-page .sidebar { top: 28px; border-color: var(--inner-line); background: rgba(10,12,18,.82); }
.legacy-case-page .meta-list div { border-color: var(--inner-line); }
.legacy-case-page .meta-list dt { color: #737986; }
.legacy-case-page .meta-list dd { color: white; }
.legacy-case-page .button { border-color: rgba(255,255,255,.35); color: white; }
.legacy-case-page .button.primary, .legacy-case-page .open-source-callout .button.primary { border-color: white; background: white; color: #090a10; }
.legacy-case-page .open-source-callout { border: 1px solid var(--inner-line); background: linear-gradient(135deg,#12172a,#090b12); }

.archive-hero { position: relative; }
.archive-hero h1 { font-size: clamp(74px, 12vw, 160px); }
.archive-back { position: absolute; right: 0; bottom: 82px; color: #9ca1ad; font-size: 12px; text-underline-offset: 6px; }
.archive-grid { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--inner-line); border-left: 1px solid var(--inner-line); }
.archive-grid article { min-height: 280px; padding: 38px; border-right: 1px solid var(--inner-line); border-bottom: 1px solid var(--inner-line); background: rgba(255,255,255,.018); }
.archive-grid article > span { color: #6f7582; font-size: 9px; letter-spacing: .16em; }
.archive-grid h2 { margin: 48px 0 13px; color: white; font-size: 38px; font-weight: 580; }
.archive-grid p { color: var(--inner-muted); }
.archive-grid small { display: block; margin-top: 46px; color: #6e7481; font-size: 10px; }

.access-page { display: flex; flex-direction: column; }
.access-stage { width: min(1240px, calc(100% - 64px)); flex: 1; display: grid; grid-template-columns: 1fr minmax(360px, 470px); gap: 100px; align-items: center; margin: 0 auto; padding: 90px 0; }
.access-context h1 { max-width: 700px; margin: 28px 0; color: white; font-size: clamp(48px, 6.6vw, 88px); font-weight: 590; line-height: 1.02; letter-spacing: -.055em; }
.access-context > p { color: #7f8593; font-size: 12px; letter-spacing: .12em; }
.access-console { padding: 42px; border: 1px solid var(--inner-line); background: rgba(12,14,21,.84); box-shadow: 0 35px 100px rgba(0,0,0,.28); backdrop-filter: blur(18px); }
.access-console h2 { margin: 28px 0 10px; color: white; font-size: 34px; font-weight: 590; }
.access-console > p, .access-console > small { color: var(--inner-muted); }
.access-console .field { margin-top: 36px; }
.access-console .field label { color: #777d8b; font-size: 9px; letter-spacing: .14em; }
.access-console .field input { border-color: var(--inner-line); border-radius: 0; background: #07080d; color: white; }
.access-console .field input:focus { border-color: var(--inner-accent); outline: 1px solid var(--inner-accent); }
.access-console .button { width: 100%; border-color: rgba(255,255,255,.35); color: white; }
.access-console .button.primary { border-color: white; background: white; color: #090a10; }
.access-console .scope { background: rgba(255,255,255,.05); }
.access-page .inner-footer { margin-top: 0; }

.error-page { display: grid; place-items: center; }
.error-stage { width: min(760px, calc(100% - 40px)); }
.error-stage > span { color: #777d8b; font-size: 10px; letter-spacing: .18em; }
.error-stage h1 { margin: 28px 0 18px; color: white; font-size: clamp(58px, 10vw, 118px); font-weight: 590; line-height: .92; letter-spacing: -.065em; }
.error-stage p { color: var(--inner-muted); font-size: 17px; }
.error-stage div { display: flex; gap: 28px; margin-top: 45px; }
.error-stage a { font-size: 13px; font-weight: 720; text-underline-offset: 7px; }

@media (max-width: 820px) {
  .inner-page .shell, .access-stage { width: min(100% - 40px, 1240px); }
  .inner-nav { grid-template-columns: 1fr auto; row-gap: 13px; }
  .inner-nav-links { grid-column: 1 / -1; grid-row: 2; justify-content: center; padding-top: 12px; border-top: 1px solid var(--inner-line); }
  .inner-login { grid-column: 2; grid-row: 1; }
  .inner-hero { padding: 76px 0 58px; }
  .portfolio-item { grid-template-columns: 38px 1fr 44px; gap: 18px; }
  .portfolio-status { display: none; }
  .portfolio-item > b { width: 40px; height: 40px; }
  .archive-entry, .case-layout, .access-stage { grid-template-columns: 1fr; }
  .case-layout { gap: 30px; padding-top: 70px; }
  .case-aside { position: static; order: -1; }
  .legacy-case-page .project-layout { gap: 30px; padding-top: 55px; }
  .archive-back { position: static; display: inline-block; margin-top: 34px; }
  .access-stage { gap: 48px; padding-top: 70px; }
}

@media (max-width: 640px) {
  .inner-page .shell, .access-stage { width: min(100% - 30px, 1240px); }
  .inner-header { padding: 14px 0; }
  .inner-brand .brand-mark { width: 30px; height: 30px; }
  .inner-nav-links { gap: 30px; }
  .inner-nav-links a, .inner-login { font-size: 11px; }
  .inner-hero { padding: 58px 0 45px; }
  .inner-hero h1 { margin: 19px 0; font-size: clamp(58px, 18vw, 86px); }
  .inner-hero > p:last-of-type { font-size: 15px; }
  .portfolio-item { min-height: 175px; padding: 27px 0; }
  .portfolio-item:hover { padding-right: 0; padding-left: 0; background: transparent; }
  .portfolio-item h2 { font-size: 31px; }
  .portfolio-item p { font-size: 12px; }
  .portfolio-item > b { width: 36px; height: 36px; }
  .archive-entry { grid-template-columns: 1fr auto; gap: 18px; margin-top: 45px; padding: 22px 0; }
  .archive-entry h2 { font-size: 20px; }
  .case-hero h1 { font-size: clamp(55px, 17vw, 82px); }
  .case-content > section { padding-bottom: 62px; }
  .case-content h2 { font-size: 35px; }
  .case-content > section > p { font-size: 15px; }
  .case-grid { grid-template-columns: 1fr; }
  .case-grid > div { min-height: 130px; padding: 23px; }
  .legacy-case-page .page-hero h1 { font-size: clamp(48px, 14vw, 68px); }
  .archive-grid { grid-template-columns: 1fr; }
  .archive-grid article { min-height: 225px; padding: 28px; }
  .archive-grid h2 { margin-top: 35px; }
  .archive-grid small { margin-top: 30px; }
  .access-stage { gap: 36px; padding: 52px 0; }
  .access-context h1 { font-size: 44px; }
  .access-console { padding: 28px 22px; }
  .inner-footer { margin-top: 70px; padding: 28px 0; }
  .error-stage div { flex-direction: column; gap: 16px; }
}

/* Portfolio v2 — visual project selector */
.portfolio-v2 { background-size: auto, 96px 96px, 96px 96px, auto; }
.portfolio-intro { display: grid; grid-template-columns: 160px minmax(0, 1fr) auto; gap: 55px; align-items: start; padding: 110px 0 105px; }
.portfolio-intro h1 { margin: 0; color: white; font-size: clamp(68px, 8vw, 116px); font-weight: 580; line-height: .91; letter-spacing: -.065em; }
.portfolio-intro p { max-width: 650px; margin: 38px 0 0; color: var(--inner-muted); font-size: 17px; line-height: 1.75; }
.portfolio-intro dl { min-width: 170px; margin: 0; border-top: 1px solid var(--inner-line); }
.portfolio-intro dl div { display: flex; justify-content: space-between; align-items: baseline; gap: 25px; padding: 14px 0; border-bottom: 1px solid var(--inner-line); }
.portfolio-intro dt { color: white; font-size: 18px; font-weight: 650; }
.portfolio-intro dd { margin: 0; color: #777d8a; font-size: 10px; }
.showcase-list { display: grid; gap: 30px; }
.showcase { --project-accent: #a9b3ff; min-height: 650px; display: grid; grid-template-columns: minmax(0, 1.18fr) minmax(340px, .82fr); overflow: hidden; border: 1px solid var(--inner-line); color: white; background: #090b11; text-decoration: none; }
.showcase:nth-child(even) { grid-template-columns: minmax(340px, .82fr) minmax(0, 1.18fr); }
.showcase:nth-child(even) .showcase-visual { order: 2; }
.showcase:nth-child(even) .showcase-copy { order: 1; }
.showcase-visual { position: relative; min-width: 0; overflow: hidden; border-right: 1px solid var(--inner-line); background: #0d1019; }
.showcase:nth-child(even) .showcase-visual { border-right: 0; border-left: 1px solid var(--inner-line); }
.showcase-visual > img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: left top; filter: saturate(.78) brightness(.8); transform: scale(1.015); transition: filter .6s ease, transform .8s cubic-bezier(.2,.8,.2,1); }
.showcase:hover .showcase-visual > img { filter: saturate(1) brightness(.94); transform: scale(1.055); }
.visual-chip { position: absolute; left: 25px; bottom: 25px; padding: 7px 10px; border: 1px solid rgba(255,255,255,.28); border-radius: 999px; color: white; background: rgba(3,5,10,.56); font-size: 9px; letter-spacing: .14em; backdrop-filter: blur(12px); }
.showcase-copy { min-width: 0; display: flex; flex-direction: column; padding: clamp(35px, 5vw, 66px); }
.showcase-copy header { display: flex; justify-content: space-between; gap: 22px; color: #777d8a; font-size: 9px; font-weight: 740; letter-spacing: .14em; }
.showcase-copy header b { color: var(--project-accent); font-weight: 650; }
.showcase-copy h2 { margin: auto 0 24px; color: white; font-size: clamp(48px, 5vw, 74px); font-weight: 570; line-height: .9; letter-spacing: -.06em; }
.showcase-copy > p { max-width: 520px; margin: 0; color: #9a9fab; font-size: 15px; line-height: 1.75; }
.showcase-copy dl { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin: 42px 0 0; padding-top: 20px; border-top: 1px solid var(--inner-line); }
.showcase-copy dl div { min-width: 0; }
.showcase-copy dt { color: #686e7b; font-size: 9px; letter-spacing: .1em; }
.showcase-copy dd { margin: 7px 0 0; color: #c4c7ce; font-size: 12px; }
.showcase-copy > strong { display: flex; justify-content: space-between; align-items: center; margin-top: 32px; color: white; font-size: 12px; }
.showcase-copy > strong i { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.22); border-radius: 50%; font-style: normal; transition: transform .3s ease, background .3s ease, color .3s ease; }
.showcase:hover .showcase-copy > strong i { color: #080910; background: white; transform: rotate(45deg); }
.showcase-omyne { --project-accent: #98a6ff; }
.showcase-silver { --project-accent: #b8dca5; }
.topology-visual { min-height: 650px; background: radial-gradient(circle at 52% 48%, rgba(91,107,229,.22), transparent 31%), linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px), #080b15; background-size: auto, 48px 48px, 48px 48px, auto; }
.topology-label { position: absolute; top: 28px; left: 30px; color: #707788; font-size: 9px; letter-spacing: .16em; }
.topology-node { position: absolute; z-index: 2; width: 118px; padding: 17px; border: 1px solid rgba(157,170,255,.28); background: rgba(8,11,21,.82); box-shadow: 0 18px 45px rgba(0,0,0,.22); backdrop-filter: blur(10px); }
.topology-node i { width: 6px; height: 6px; display: block; margin-bottom: 18px; border-radius: 50%; background: #9eacff; box-shadow: 0 0 16px #8192ff; }
.topology-node b, .topology-node small { display: block; }
.topology-node b { font-size: 12px; letter-spacing: .1em; }
.topology-node small { margin-top: 4px; color: #767d8d; font-size: 9px; }
.node-web { top: 18%; left: 10%; }.node-agent { top: 40%; left: 42%; }.node-mac { top: 16%; right: 9%; }.node-pty { right: 12%; bottom: 14%; }
.topology-line { position: absolute; z-index: 1; height: 1px; background: linear-gradient(90deg, transparent, rgba(148,161,255,.7), transparent); transform-origin: left center; }
.line-a { width: 39%; top: 32%; left: 20%; transform: rotate(23deg); }.line-b { width: 32%; top: 47%; left: 52%; transform: rotate(-35deg); }.line-c { width: 28%; top: 52%; left: 53%; transform: rotate(35deg); }.line-d { width: 47%; top: 29%; left: 21%; transform: rotate(-2deg); }
.topology-status { position: absolute; bottom: 28px; left: 30px; color: #8e9cf1; font-size: 9px; letter-spacing: .12em; }
.business-visual { min-height: 650px; display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: auto 1.35fr 1fr; gap: 1px; padding: 34px; background: #cad4bd; color: #172019; }
.business-head { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; padding-bottom: 25px; font-size: 9px; font-weight: 760; letter-spacing: .12em; }
.business-head b { padding: 5px 9px; border-radius: 999px; color: #e8f0df; background: #264532; }
.business-metric { min-width: 0; display: flex; flex-direction: column; padding: 22px; border: 1px solid rgba(23,32,25,.16); background: rgba(255,255,255,.28); }
.business-metric.metric-wide { grid-column: 1 / -1; position: relative; justify-content: center; overflow: hidden; }
.business-metric small { color: #576157; font-size: 9px; letter-spacing: .08em; }
.business-metric b { margin-top: 13px; font-size: 14px; }
.metric-wide b { position: relative; z-index: 1; font-size: clamp(18px, 2.2vw, 30px); letter-spacing: -.03em; }
.metric-wide i { position: absolute; right: -3%; bottom: -58%; width: 48%; aspect-ratio: 1; border: 22px solid rgba(38,69,50,.12); border-radius: 50%; }
.business-metric span { margin-top: auto; color: #516e56; font-size: 8px; letter-spacing: .1em; }
.archive-entry-v2 { margin-bottom: 40px; }

@media (max-width: 900px) {
  .portfolio-intro { grid-template-columns: 1fr; gap: 28px; padding: 78px 0 72px; }
  .portfolio-intro dl { display: grid; grid-template-columns: repeat(3, 1fr); }
  .portfolio-intro dl div { display: block; }
  .portfolio-intro dd { margin-top: 5px; }
  .showcase, .showcase:nth-child(even) { grid-template-columns: 1fr; }
  .showcase:nth-child(even) .showcase-visual, .showcase:nth-child(even) .showcase-copy { order: initial; }
  .showcase-visual, .showcase:nth-child(even) .showcase-visual { min-height: 480px; border: 0; border-bottom: 1px solid var(--inner-line); }
  .showcase-copy { min-height: 500px; }
  .topology-visual, .business-visual { min-height: 480px; }
}

@media (max-width: 640px) {
  .portfolio-intro { padding-top: 58px; }
  .portfolio-intro h1 { font-size: 58px; }
  .portfolio-intro p { margin-top: 26px; font-size: 15px; }
  .portfolio-intro dl { min-width: 0; }
  .portfolio-intro dl div { padding-right: 8px; }
  .portfolio-intro dt { font-size: 15px; }
  .showcase-list { gap: 18px; }
  .showcase { min-height: 0; }
  .showcase-visual, .showcase:nth-child(even) .showcase-visual, .topology-visual, .business-visual { min-height: 330px; }
  .showcase-copy { min-height: 410px; padding: 27px 23px; }
  .showcase-copy h2 { font-size: 46px; }
  .showcase-copy > p { font-size: 14px; }
  .showcase-copy dl { gap: 12px; margin-top: 28px; }
  .showcase-copy dd { font-size: 11px; }
  .topology-node { width: 90px; padding: 12px; }
  .node-web { top: 18%; left: 5%; }.node-agent { top: 41%; left: 36%; }.node-mac { top: 15%; right: 4%; }.node-pty { right: 7%; bottom: 12%; }
  .business-visual { padding: 18px; }
  .business-metric { padding: 12px; }
  .business-metric b { font-size: 11px; }
  .metric-wide b { font-size: 17px; }
}

/* Focused visitor login */
.access-simple { position: relative; overflow-x: hidden; background: #030407; }
.access-simple::before { content: ""; position: fixed; z-index: 0; inset: 0; pointer-events: none; background: radial-gradient(circle at 50% 44%, rgba(91,105,184,.15), transparent 27rem), linear-gradient(180deg, rgba(3,4,7,.16), rgba(3,4,7,.55)); }
.access-simple { isolation: isolate; }
.access-simple::before { z-index: 1; background: linear-gradient(90deg, rgba(3,4,9,.69), rgba(3,4,9,.28)), linear-gradient(0deg, rgba(3,4,9,.76), transparent 50%); }
.access-dither { position: fixed; z-index: 0; pointer-events: none; }
.access-simple .simple-access-header { z-index: 5; }
.access-simple .simple-access-stage { z-index: 2; }
.simple-access-header { position: absolute; top: 24px; right: 32px; left: 32px; z-index: 2; display: flex; align-items: center; justify-content: space-between; }
.simple-access-stage { position: relative; z-index: 1; width: min(460px, calc(100% - 40px)); min-height: 100svh; display: grid; place-items: center; margin: 0 auto; padding: 105px 0 60px; }
.simple-access-panel { width: 100%; }
.simple-access-panel .console-label { color: #828999; }
.simple-access-panel h1 { margin: 22px 0 14px; color: white; font-size: clamp(48px, 6vw, 64px); font-weight: 580; line-height: 1; letter-spacing: -.055em; }
.simple-access-panel > p { margin: 0; color: #9298a5; font-size: 15px; }
.simple-access-panel form { margin-top: 38px; }
.simple-access-panel .field { margin: 0; }
.simple-access-panel .field label { margin-bottom: 9px; color: #767d8b; font-size: 10px; font-weight: 700; letter-spacing: .08em; }
.simple-access-panel .field input { min-height: 58px; border: 1px solid rgba(255,255,255,.2); border-radius: 12px; background: rgba(7,8,13,.76); color: white; font-size: 17px; box-shadow: inset 0 1px 0 rgba(255,255,255,.035); backdrop-filter: blur(12px); transition: border-color .2s ease, box-shadow .2s ease, background .2s ease; }
.simple-access-panel .field input:focus { border-color: #aab4ff; outline: 0; background: rgba(9,11,19,.9); box-shadow: 0 0 0 3px rgba(144,157,255,.14), inset 0 1px 0 rgba(255,255,255,.05); }
.simple-access-panel .form-status { min-height: 25px; margin: 11px 0; font-size: 13px; }
.simple-access-panel form .button { width: 100%; min-height: 54px; justify-content: space-between; padding-right: 20px; padding-left: 20px; border-color: rgba(255,255,255,.92); border-radius: 12px; background: rgba(255,255,255,.94); color: #090a10; box-shadow: 0 12px 34px rgba(0,0,0,.2); }
.simple-access-panel form .button:hover, .simple-access-panel form .button:focus-visible { background: white; box-shadow: 0 16px 38px rgba(0,0,0,.28); }
.simple-access-panel > small { display: block; margin-top: 24px; color: #676d7a; font-size: 10px; letter-spacing: .08em; text-align: center; }
.access-cancel { position: relative; z-index: 4; width: max-content; display: block; color: #a0a5b0; font-size: 12px; text-decoration: none; pointer-events: auto; transition: color .2s ease; }
.access-cancel:hover, .access-cancel:focus-visible { color: white; }
.simple-access-panel .scope-list { margin: 28px 0; }
.simple-access-panel .scope { border: 1px solid rgba(255,255,255,.1); border-radius: 0; background: rgba(255,255,255,.035); }
.simple-access-panel > .actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.simple-access-panel > .actions .button { border-color: rgba(255,255,255,.3); border-radius: 0; color: white; }
.simple-access-panel > .actions .button.primary { border-color: white; background: white; color: #090a10; }

@media (max-width: 640px) {
  .simple-access-header { top: 17px; right: 16px; left: 16px; }
  .simple-access-stage { width: min(100% - 32px, 460px); padding-top: 92px; }
  .simple-access-panel h1 { font-size: 47px; }
  .simple-access-panel > p { font-size: 14px; }
  .simple-access-panel form { margin-top: 31px; }
  .simple-access-panel > .actions { grid-template-columns: 1fr; }
}

/* Portfolio v3 — curated, same-tab case browsing */
.portfolio-v3 {
  background:
    radial-gradient(circle at 74% 8%, rgba(82, 101, 225, .2), transparent 29rem),
    radial-gradient(circle at 12% 42%, rgba(36, 49, 111, .11), transparent 32rem),
    linear-gradient(rgba(255,255,255,.021) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.021) 1px, transparent 1px),
    #05060a;
  background-size: auto, auto, 96px 96px, 96px 96px, auto;
}
.portfolio-header { position: sticky; z-index: 20; top: 0; border-bottom: 1px solid rgba(255,255,255,.1); background: rgba(5,6,10,.76); backdrop-filter: blur(20px); }
.portfolio-nav { min-height: 76px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; }
.portfolio-back, .portfolio-tools a, .portfolio-wordmark { color: #a7acb7; font-size: 11px; font-weight: 680; text-decoration: none; }
.portfolio-back { justify-self: start; }
.portfolio-back:hover, .portfolio-tools a:hover { color: white; }
.portfolio-wordmark { display: inline-flex; align-items: center; gap: 11px; color: white; letter-spacing: .12em; }
.portfolio-wordmark b { width: 30px; height: 30px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.28); border-radius: 50%; font-size: 10px; letter-spacing: 0; }
.portfolio-wordmark span { font-size: 9px; }
.portfolio-tools { justify-self: end; display: flex; align-items: center; gap: 27px; }
.portfolio-tools .portfolio-login { color: white; }
.portfolio-login { display: inline-flex; align-items: center; gap: 8px; }
.portfolio-login .nav-arrow { width: 14px; height: 14px; }

/* Shared visitor session */
.visitor-auth-slot, [data-visitor-auth] { position: relative; min-width: 116px; min-height: 42px; display: flex; align-items: center; justify-content: flex-end; }
a.home-login[href^="/access"], .portfolio-tools > a.portfolio-login[href^="/access"] { min-width: 116px; justify-content: flex-end; }
html:not(.visitor-auth-ready) a.home-login[href^="/access"], html:not(.visitor-auth-ready) .portfolio-tools > a.portfolio-login[href^="/access"] { visibility: hidden; }
html:not(.visitor-auth-ready) .visitor-auth-slot::before, html:not(.visitor-auth-ready) [data-visitor-auth]::before { content: ""; width: 112px; height: 36px; display: block; border: 1px solid rgba(255,255,255,.11); border-radius: 999px; background: rgba(8,10,16,.28); }
.visitor-session { position: relative; z-index: 80; color: #eef1f6; }
.visitor-session > summary { min-height: 38px; display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border: 1px solid rgba(255,255,255,.18); border-radius: 999px; background: rgba(7,9,14,.46); box-shadow: 0 10px 30px rgba(0,0,0,.12); color: #dfe3ea; font-size: 10px; font-weight: 650; list-style: none; cursor: pointer; backdrop-filter: blur(16px); transition: border-color .18s ease, background .18s ease; }
.visitor-session > summary::-webkit-details-marker { display: none; }
.visitor-session > summary:hover, .visitor-session > summary:focus-visible, .visitor-session[open] > summary { border-color: rgba(255,255,255,.36); background: rgba(12,15,23,.78); color: #fff; outline: 0; }
.visitor-session > summary i { width: 6px; height: 6px; flex: 0 0 auto; border-radius: 50%; background: #75dfb8; box-shadow: 0 0 12px rgba(117,223,184,.72); }
.visitor-session > summary span { color: #9299a8; }
.visitor-session > summary b { color: #f3f5f8; font-size: 9px; font-weight: 720; letter-spacing: .08em; }
.visitor-session-panel { position: absolute; top: calc(100% + 12px); right: 0; width: min(310px, calc(100vw - 24px)); padding: 19px; border: 1px solid rgba(255,255,255,.14); border-radius: 16px; background: rgba(8,10,16,.96); box-shadow: 0 24px 80px rgba(0,0,0,.5); backdrop-filter: blur(24px); }
.visitor-session-panel header { display: flex; align-items: start; justify-content: space-between; gap: 16px; padding-bottom: 16px; border-bottom: 1px solid rgba(255,255,255,.08); }
.visitor-session-panel header div { display: grid; gap: 5px; }
.visitor-session-panel header span, .visitor-session-scope-title { color: #717a8c; font-size: 7px; font-weight: 760; letter-spacing: .16em; }
.visitor-session-panel header strong { color: #f2f4f7; font-size: 18px; font-weight: 560; letter-spacing: -.025em; }
.visitor-session-panel header em { padding: 5px 8px; border-radius: 99px; color: #87dfbd; background: rgba(78,164,130,.12); font-size: 8px; font-style: normal; }
.visitor-session-meta { display: grid; gap: 8px; padding: 15px 0; }
.visitor-session-meta p, .visitor-session-scopes p { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 0; }
.visitor-session-meta span { color: #737b8a; font-size: 9px; }
.visitor-session-meta b { max-width: 175px; overflow: hidden; color: #cdd1d9; font-size: 9px; font-weight: 580; text-overflow: ellipsis; white-space: nowrap; }
.visitor-session-scope-title { display: block; margin: 3px 0 9px; }
.visitor-session-scopes { display: grid; gap: 7px; }
.visitor-session-scopes p { min-height: 34px; padding: 8px 10px; border-radius: 9px; background: rgba(255,255,255,.045); }
.visitor-session-scopes strong { color: #d9dde4; font-size: 9px; font-weight: 580; }
.visitor-session-scopes span { color: #858d9c; font-size: 8px; }
.visitor-session-logout { width: 100%; min-height: 39px; margin-top: 15px; border: 1px solid rgba(255,255,255,.11); border-radius: 10px; color: #aeb4c0; background: transparent; font: inherit; font-size: 9px; cursor: pointer; transition: border-color .18s ease, color .18s ease, background .18s ease; }
.visitor-session-logout:hover, .visitor-session-logout:focus-visible { border-color: rgba(255,255,255,.25); color: #fff; background: rgba(255,255,255,.045); outline: 0; }
.visitor-session-logout:disabled { cursor: wait; opacity: .62; }

.portfolio-v3 .portfolio-intro { min-height: 650px; display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(340px, .58fr); gap: clamp(60px, 9vw, 145px); align-items: center; padding: 90px 0 100px; }
.portfolio-title .inner-index { margin-bottom: 31px; color: #8e96bb; }
.portfolio-v3 .portfolio-title h1 { margin: 0; color: white; font-size: clamp(86px, 11.4vw, 158px); font-weight: 560; line-height: .77; letter-spacing: -.075em; }
.portfolio-title h1 em { color: transparent; font-style: normal; -webkit-text-stroke: 1px rgba(255,255,255,.48); }
.portfolio-statement { padding-left: 35px; border-left: 1px solid rgba(255,255,255,.16); }
.portfolio-statement > span { color: #81889a; font-size: 9px; font-weight: 760; letter-spacing: .17em; }
.portfolio-statement > p { max-width: 470px; margin: 31px 0 51px; color: #b2b6c0; font-size: 18px; line-height: 1.8; }
.portfolio-statement dl { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0; border-top: 1px solid rgba(255,255,255,.13); }
.portfolio-statement dl div { padding: 17px 7px 0 0; }
.portfolio-statement dt { color: white; font-size: 26px; font-weight: 570; }
.portfolio-statement dd { margin: 3px 0 0; color: #727987; font-size: 9px; }

.portfolio-section-head { display: grid; grid-template-columns: 150px minmax(0, 1fr) minmax(240px, 390px); gap: 32px; align-items: end; margin-bottom: 30px; padding-top: 37px; border-top: 1px solid rgba(255,255,255,.14); }
.portfolio-section-head > span { align-self: start; color: #757c8c; font-size: 9px; font-weight: 780; letter-spacing: .16em; }
.portfolio-section-head h2 { margin: 0; color: white; font-size: clamp(42px, 5.2vw, 70px); font-weight: 560; }
.portfolio-section-head p { margin: 0 0 8px; color: #7f8592; font-size: 13px; line-height: 1.7; }

.portfolio-v3 .showcase-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.portfolio-v3 .showcase { min-height: 760px; display: flex; flex-direction: column; overflow: hidden; border-color: rgba(255,255,255,.14); border-radius: 16px; background: rgba(9,11,17,.9); box-shadow: 0 32px 90px rgba(0,0,0,.13); transition: border-color .3s ease, transform .4s cubic-bezier(.2,.8,.2,1), box-shadow .4s ease; }
.portfolio-v3 .showcase:hover { border-color: rgba(255,255,255,.3); transform: translateY(-5px); box-shadow: 0 42px 100px rgba(0,0,0,.25); }
.portfolio-v3 .showcase-featured { grid-column: 1 / -1; min-height: 610px; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(370px, .75fr); }
.portfolio-v3 .showcase:nth-child(even) { grid-template-columns: initial; }
.portfolio-v3 .showcase:nth-child(even) .showcase-visual,
.portfolio-v3 .showcase:nth-child(even) .showcase-copy { order: initial; }
.portfolio-v3 .showcase-visual,
.portfolio-v3 .showcase:nth-child(even) .showcase-visual { min-height: 355px; border: 0; border-bottom: 1px solid var(--inner-line); }
.portfolio-v3 .showcase-featured .showcase-visual { min-height: 610px; border: 0; border-right: 1px solid var(--inner-line); }
.portfolio-v3 .showcase-copy { min-height: 405px; flex: 1; padding: clamp(30px, 4vw, 52px); }
.portfolio-v3 .showcase-featured .showcase-copy { min-height: 610px; }
.portfolio-v3 .showcase-copy h2 { margin: 74px 0 20px; font-size: clamp(46px, 5vw, 69px); }
.portfolio-v3 .showcase-featured .showcase-copy h2 { margin: auto 0 24px; }
.portfolio-v3 .showcase-copy > p { font-size: 14px; }
.portfolio-v3 .showcase-copy dl { margin-top: 31px; }
.portfolio-v3 .showcase-copy > strong { margin-top: auto; padding-top: 28px; }
.portfolio-v3 .showcase-copy > strong i { border-radius: 12px; }
.portfolio-v3 .showcase:hover .showcase-copy > strong i { transform: translateX(4px); }
.portfolio-v3 .topology-visual, .portfolio-v3 .business-visual { min-height: 355px; }
.portfolio-v3 .business-visual { padding: 24px; }

.archive-entry-v3 { margin-top: 86px; margin-bottom: 30px; padding: 38px 0; }
.archive-entry-v3 h2 { margin-top: 13px; font-size: clamp(29px, 3vw, 42px); }
.archive-entry-v3 p { margin: 10px 0 0; color: #777e8b; font-size: 13px; }
.archive-entry-v3 > a { min-width: 155px; justify-content: space-between; padding: 13px 16px; border: 1px solid rgba(255,255,255,.18); border-radius: 12px; color: white; }

@media (max-width: 900px) {
  .portfolio-v3 .portfolio-intro { min-height: auto; grid-template-columns: 1fr; gap: 62px; padding: 90px 0; }
  .portfolio-statement { max-width: 650px; }
  .portfolio-section-head { grid-template-columns: 1fr; gap: 12px; }
  .portfolio-section-head p { max-width: 520px; }
  .portfolio-v3 .showcase-list { grid-template-columns: 1fr; }
  .portfolio-v3 .showcase-featured { grid-column: auto; display: flex; }
  .portfolio-v3 .showcase-featured .showcase-visual { min-height: 470px; border: 0; border-bottom: 1px solid var(--inner-line); }
  .portfolio-v3 .showcase-featured .showcase-copy { min-height: 430px; }
}

@media (max-width: 640px) {
  .portfolio-nav { min-height: 64px; grid-template-columns: 1fr auto; }
  .portfolio-wordmark { display: none; }
  .portfolio-tools { gap: 17px; }
  .portfolio-tools > a:first-child { display: none; }
  .portfolio-v3 .portfolio-intro { gap: 47px; padding: 68px 0 72px; }
  .portfolio-title .inner-index { margin-bottom: 24px; }
  .portfolio-v3 .portfolio-title h1 { font-size: clamp(68px, 22vw, 94px); }
  .portfolio-statement { padding-left: 20px; }
  .portfolio-statement > p { margin: 23px 0 37px; font-size: 15px; }
  .portfolio-statement dt { font-size: 21px; }
  .portfolio-section-head { padding-top: 25px; }
  .portfolio-section-head h2 { font-size: 42px; }
  .portfolio-v3 .showcase { min-height: 0; border-radius: 12px; }
  .portfolio-v3 .showcase-visual,
  .portfolio-v3 .showcase:nth-child(even) .showcase-visual,
  .portfolio-v3 .showcase-featured .showcase-visual,
  .portfolio-v3 .topology-visual,
  .portfolio-v3 .business-visual { min-height: 300px; }
  .portfolio-v3 .showcase-copy,
  .portfolio-v3 .showcase-featured .showcase-copy { min-height: 390px; padding: 27px 23px; }
  .portfolio-v3 .showcase-copy h2,
  .portfolio-v3 .showcase-featured .showcase-copy h2 { margin: 58px 0 19px; font-size: 45px; }
  .portfolio-v3 .showcase-copy dl { grid-template-columns: 1fr; gap: 13px; }
  .archive-entry-v3 { grid-template-columns: 1fr; gap: 28px; margin-top: 58px; }
  .archive-entry-v3 > a { width: 100%; }
}

/* Portfolio v4 — one claim, three consistent proofs */
.portfolio-v4 {
  background:
    radial-gradient(circle at 82% 4%, rgba(76,91,197,.16), transparent 27rem),
    linear-gradient(rgba(255,255,255,.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.02) 1px, transparent 1px),
    #05060a;
  background-size: auto, 96px 96px, 96px 96px, auto;
}
.portfolio-v4-intro { min-height: 560px; display: grid; grid-template-columns: 1fr minmax(340px, .55fr); gap: clamp(60px, 10vw, 150px); align-items: center; padding: 90px 0; }
.portfolio-v4-intro h1 { margin: 28px 0 0; color: white; font-size: clamp(82px, 12vw, 158px); font-weight: 560; line-height: .86; letter-spacing: -.075em; }
.portfolio-v4-summary { padding-left: 34px; border-left: 1px solid rgba(255,255,255,.16); }
.portfolio-v4-summary > p { max-width: 480px; margin: 0; color: #b1b6c2; font-size: 18px; line-height: 1.85; }
.portfolio-v4-summary > div { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 38px; }
.portfolio-v4-summary span { padding: 7px 10px; border: 1px solid rgba(255,255,255,.16); border-radius: 999px; color: #8d94a4; font-size: 9px; letter-spacing: .09em; }

.portfolio-v4-projects { border-top: 1px solid rgba(255,255,255,.15); }
.portfolio-v4-section-head { display: grid; grid-template-columns: 160px 1fr; gap: 34px; padding: 56px 0 70px; }
.portfolio-v4-section-head > span { color: #747b8a; font-size: 9px; font-weight: 780; letter-spacing: .16em; }
.portfolio-v4-section-head h2 { max-width: 800px; margin: 0; color: white; font-size: clamp(48px, 6vw, 82px); font-weight: 560; line-height: .98; letter-spacing: -.055em; }

.portfolio-case-row { display: grid; grid-template-columns: 110px minmax(390px, 1.15fr) minmax(310px, .85fr); gap: clamp(28px, 4vw, 62px); align-items: stretch; padding: 38px 0; border-top: 1px solid rgba(255,255,255,.13); color: white; text-decoration: none; }
.portfolio-case-row:last-child { border-bottom: 1px solid rgba(255,255,255,.13); }
.portfolio-case-index { display: flex; flex-direction: column; align-items: flex-start; padding-top: 3px; }
.portfolio-case-index b { color: white; font-size: 28px; font-weight: 560; }
.portfolio-case-index span { margin-top: 14px; color: #767d8c; font-size: 8px; font-weight: 760; letter-spacing: .13em; }
.portfolio-case-index i { margin-top: auto; color: #8f96a5; font-size: 10px; font-style: normal; }
.portfolio-case-visual { position: relative; min-width: 0; height: 410px; overflow: hidden; border: 1px solid rgba(255,255,255,.12); border-radius: 12px; background: #0b0e16; transition: border-color .35s ease, transform .5s cubic-bezier(.2,.8,.2,1); }
.portfolio-case-row:hover .portfolio-case-visual { border-color: rgba(255,255,255,.3); transform: translateY(-4px); }
.portfolio-case-visual > img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: left top; filter: saturate(.76) brightness(.8); transition: filter .5s ease, transform .7s ease; }
.portfolio-case-row:hover .portfolio-case-visual > img { filter: saturate(1) brightness(.94); transform: scale(1.035); }
.portfolio-case-visual.topology-visual, .portfolio-case-visual.business-visual { min-height: 0; }
.portfolio-case-visual.business-visual { padding: 25px; }
.portfolio-case-copy { min-width: 0; display: flex; flex-direction: column; padding: 15px 0 10px; }
.portfolio-case-copy > span { color: #7e86b4; font-size: 9px; font-weight: 780; letter-spacing: .15em; }
.portfolio-case-copy h3 { margin: 45px 0 21px; color: white; font-size: clamp(45px, 5vw, 67px); font-weight: 560; line-height: .9; letter-spacing: -.06em; }
.portfolio-case-copy > p { max-width: 450px; margin: 0; color: #959ba8; font-size: 14px; line-height: 1.75; }
.portfolio-case-copy dl { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 31px 0 0; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.11); }
.portfolio-case-copy dt { color: #656c7a; font-size: 9px; }
.portfolio-case-copy dd { margin: 5px 0 0; color: #b8bcc5; font-size: 11px; }
.portfolio-case-copy strong { display: flex; justify-content: space-between; align-items: center; margin-top: auto; color: white; font-size: 11px; }
.portfolio-case-copy strong i { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.2); border-radius: 10px; font-style: normal; transition: color .25s ease, background .25s ease, transform .25s ease; }
.portfolio-case-row:hover .portfolio-case-copy strong i { color: #080910; background: white; transform: translateX(4px); }

.portfolio-v4-archive { display: grid; grid-template-columns: 1fr auto; gap: 45px; align-items: end; margin-top: 95px; padding: 45px 0; border-top: 1px solid rgba(255,255,255,.14); border-bottom: 1px solid rgba(255,255,255,.14); }
.portfolio-v4-archive > div > span { color: #747b89; font-size: 9px; font-weight: 780; letter-spacing: .16em; }
.portfolio-v4-archive h2 { margin: 20px 0 9px; color: white; font-size: clamp(32px, 4vw, 52px); font-weight: 560; }
.portfolio-v4-archive p { margin: 0; color: #7c8290; font-size: 13px; }
.portfolio-v4-archive > a { min-width: 160px; display: flex; justify-content: space-between; gap: 25px; padding: 13px 16px; border: 1px solid rgba(255,255,255,.18); border-radius: 10px; color: white; font-size: 11px; text-decoration: none; }

@media (min-width: 901px) {
  .home-page .hero-center-stack { width: max-content; max-width: 100%; margin-right: auto; margin-left: auto; }
  .home-page .hero-copy { width: max-content; max-width: 100%; transform: translateX(clamp(18px, 1.55vw, 24px)); }
  .home-page .hero-kicker,
  .home-page .hero-content h1,
  .home-page .hero-lead { width: max-content; max-width: 100%; margin-right: 0; margin-left: 0; transform: none; }
  .home-page .hero-actions { margin-right: auto; margin-left: auto; }
  .home-page .hero-content h1 { font-size: clamp(56px, 5.5vw, 78px); }
  .home-page .hero-kicker { margin-bottom: 24px; }
  .home-page .hero-lead { margin-top: 24px; font-size: clamp(15px, 1.15vw, 18px); }
}

@media (max-width: 980px) {
  .portfolio-v4-intro { min-height: auto; grid-template-columns: 1fr; gap: 55px; padding: 80px 0; }
  .portfolio-v4-summary { max-width: 670px; }
  .portfolio-case-row { grid-template-columns: 72px minmax(0, 1fr); }
  .portfolio-case-index { grid-row: 1 / span 2; }
  .portfolio-case-visual { grid-column: 2; }
  .portfolio-case-copy { grid-column: 2; min-height: 370px; }
}

@media (max-width: 640px) {
  .portfolio-v4-intro { gap: 42px; padding: 65px 0 72px; }
  .portfolio-v4-intro h1 { margin-top: 22px; font-size: clamp(67px, 22vw, 90px); }
  .portfolio-v4-summary { padding-left: 19px; }
  .portfolio-v4-summary > p { font-size: 15px; }
  .portfolio-v4-summary > div { margin-top: 27px; }
  .portfolio-v4-section-head { grid-template-columns: 1fr; gap: 19px; padding: 40px 0 48px; }
  .portfolio-v4-section-head h2 { font-size: 43px; }
  .portfolio-case-row { grid-template-columns: 1fr; gap: 22px; padding: 28px 0 44px; }
  .portfolio-case-index { grid-row: auto; display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: baseline; }
  .portfolio-case-index b { font-size: 23px; }
  .portfolio-case-index span { margin: 0; }
  .portfolio-case-index i { margin: 0; }
  .portfolio-case-visual { grid-column: 1; height: 295px; border-radius: 9px; }
  .portfolio-case-copy { grid-column: 1; min-height: 365px; padding-top: 8px; }
  .portfolio-case-copy h3 { margin-top: 34px; font-size: 46px; }
  .portfolio-case-copy dl { grid-template-columns: 1fr; gap: 13px; }
  .portfolio-v4-archive { grid-template-columns: 1fr; gap: 28px; margin-top: 65px; }
  .portfolio-v4-archive > a { width: 100%; }
}

/* Portfolio v5 — desktop project matrix over the shared Dither system */
.portfolio-v5 { position: relative; isolation: isolate; background: #05060a; }
.portfolio-v5::before { content: ""; position: fixed; z-index: 1; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(3,4,9,.32) 0%, rgba(3,4,9,.66) 48%, rgba(3,4,9,.9) 100%), linear-gradient(90deg, rgba(3,4,9,.3), transparent 55%); }
.portfolio-dither { position: fixed; z-index: 0; pointer-events: none; }
.portfolio-v5 > header, .portfolio-v5 > main, .portfolio-v5 > footer { position: relative; z-index: 2; }
.portfolio-v5 .portfolio-header { z-index: 20; background: rgba(4,5,9,.52); }

.portfolio-v5-hero { min-height: 650px; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(340px, .55fr); gap: clamp(70px, 10vw, 150px); align-items: center; padding: 100px 0 110px; }
.portfolio-v5-title > span, .portfolio-v5-intro > span { color: rgba(214,218,232,.58); font-size: 9px; font-weight: 780; letter-spacing: .18em; }
.portfolio-v5-title h1 { margin: 31px 0 0; color: white; font-size: clamp(90px, 11vw, 150px); font-weight: 560; line-height: .78; letter-spacing: -.075em; }
.portfolio-v5-title h1 em { color: rgba(255,255,255,.28); font-style: normal; }
.portfolio-v5-intro { padding: 6px 0 6px 34px; border-left: 1px solid rgba(255,255,255,.2); }
.portfolio-v5-intro > p { max-width: 470px; margin: 31px 0 46px; color: rgba(238,240,247,.78); font-size: 18px; line-height: 1.8; }
.portfolio-v5-intro dl { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.15); }
.portfolio-v5-intro dt { color: white; font-size: 25px; font-weight: 560; }
.portfolio-v5-intro dd { margin: 3px 0 0; color: rgba(216,220,232,.48); font-size: 9px; }

.portfolio-v5-projects { padding: 58px 0 0; border-top: 1px solid rgba(255,255,255,.18); }
.portfolio-v5-section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 410px); gap: 70px; align-items: end; margin-bottom: 42px; }
.portfolio-v5-section-head span { color: rgba(214,218,232,.5); font-size: 9px; font-weight: 780; letter-spacing: .17em; }
.portfolio-v5-section-head h2 { max-width: 760px; margin: 20px 0 0; color: white; font-size: clamp(43px, 4.5vw, 62px); font-weight: 560; letter-spacing: -.05em; }
.portfolio-v5-section-head > p { margin: 0 0 7px; color: rgba(220,223,233,.55); font-size: 12px; line-height: 1.75; }

.portfolio-deck { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.portfolio-card { --card-accent: #a9b3ff; min-width: 0; min-height: 740px; display: flex; flex-direction: column; overflow: hidden; padding: 20px; border: 1px solid rgba(255,255,255,.17); border-radius: 16px; color: white; background: rgba(7,9,15,.74); box-shadow: 0 30px 80px rgba(0,0,0,.18); text-decoration: none; backdrop-filter: blur(18px); transition: transform .4s cubic-bezier(.2,.8,.2,1), border-color .3s ease, background .3s ease, box-shadow .4s ease; }
.portfolio-card:hover { border-color: rgba(255,255,255,.38); background: rgba(10,12,20,.88); box-shadow: 0 42px 95px rgba(0,0,0,.3); transform: translateY(-7px); }
.portfolio-card-omyne { --card-accent: #98a6ff; }
.portfolio-card-silver { --card-accent: #bfd6b2; }
.portfolio-card > header { display: flex; justify-content: space-between; gap: 15px; padding: 1px 2px 18px; color: rgba(220,223,232,.48); font-size: 8px; font-weight: 760; letter-spacing: .12em; }
.portfolio-card > header b { color: var(--card-accent); font-weight: 650; letter-spacing: .04em; }
.portfolio-card-visual { position: relative; height: 265px; flex: 0 0 265px; overflow: hidden; border: 1px solid rgba(255,255,255,.11); border-radius: 10px; background: #0a0d15; }
.portfolio-card-visual > img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: left top; filter: saturate(.72) brightness(.78); transition: filter .5s ease, transform .7s ease; }
.portfolio-card:hover .portfolio-card-visual > img { filter: saturate(1) brightness(.96); transform: scale(1.04); }
.portfolio-card .visual-chip { right: 14px; bottom: 14px; left: auto; }
.portfolio-card .topology-visual, .portfolio-card .business-visual { min-height: 0; }
.portfolio-card .topology-label { top: 18px; left: 18px; }
.portfolio-card .topology-node { width: 82px; padding: 10px; }
.portfolio-card .topology-node i { margin-bottom: 9px; }
.portfolio-card .node-web { top: 20%; left: 5%; }.portfolio-card .node-agent { top: 42%; left: 36%; }.portfolio-card .node-mac { top: 17%; right: 4%; }.portfolio-card .node-pty { right: 7%; bottom: 10%; }
.portfolio-card .topology-status { bottom: 15px; left: 17px; font-size: 7px; }
.portfolio-card .business-visual { grid-template-rows: auto 1.25fr 1fr; padding: 16px; }
.portfolio-card .business-head { padding-bottom: 12px; }
.portfolio-card .business-metric { padding: 10px; }
.portfolio-card .business-metric b { font-size: 10px; }
.portfolio-card .metric-wide b { font-size: 16px; }
.portfolio-card-copy { padding: 29px 3px 0; }
.portfolio-card-copy > span { color: var(--card-accent); font-size: 8px; font-weight: 780; letter-spacing: .15em; }
.portfolio-card-copy h3 { margin: 26px 0 18px; color: white; font-size: clamp(39px, 3.5vw, 51px); font-weight: 560; line-height: .89; letter-spacing: -.06em; }
.portfolio-card-copy > p { min-height: 73px; margin: 0; color: rgba(220,223,233,.62); font-size: 13px; line-height: 1.75; }
.portfolio-card > dl { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 25px 3px 0; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.11); }
.portfolio-card > dl dt { color: rgba(220,223,233,.36); font-size: 8px; letter-spacing: .1em; }
.portfolio-card > dl dd { margin: 5px 0 0; color: rgba(240,241,246,.74); font-size: 10px; }
.portfolio-card > strong { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding: 25px 3px 0; color: white; font-size: 11px; }
.portfolio-card > strong i { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.22); border-radius: 10px; font-style: normal; transition: color .25s ease, background .25s ease, transform .25s ease; }
.portfolio-card:hover > strong i { color: #080910; background: white; transform: translateX(4px); }

.portfolio-v5-archive { display: grid; grid-template-columns: 1fr auto; gap: 45px; align-items: end; margin-top: 100px; padding: 45px 0; border-top: 1px solid rgba(255,255,255,.16); border-bottom: 1px solid rgba(255,255,255,.16); }
.portfolio-v5-archive > div > span { color: rgba(220,223,233,.43); font-size: 9px; font-weight: 780; letter-spacing: .16em; }
.portfolio-v5-archive h2 { margin: 18px 0 9px; color: white; font-size: clamp(34px, 4vw, 52px); font-weight: 560; }
.portfolio-v5-archive p { margin: 0; color: rgba(220,223,233,.52); font-size: 13px; }
.portfolio-v5-archive > a { min-width: 160px; display: flex; justify-content: space-between; gap: 25px; padding: 13px 16px; border: 1px solid rgba(255,255,255,.22); border-radius: 10px; color: white; font-size: 11px; text-decoration: none; background: rgba(7,9,15,.38); backdrop-filter: blur(12px); }

@media (max-width: 1100px) {
  .portfolio-v5-hero { grid-template-columns: 1fr; gap: 55px; }
  .portfolio-v5-intro { max-width: 650px; }
  .portfolio-deck { grid-template-columns: 1fr; }
  .portfolio-card { min-height: 0; }
}

@media (max-width: 640px) {
  .portfolio-v5-hero { min-height: auto; padding: 65px 0 72px; }
  .portfolio-v5-title h1 { font-size: clamp(67px, 22vw, 92px); }
  .portfolio-v5-intro { padding-left: 19px; }
  .portfolio-v5-intro > p { font-size: 15px; }
  .portfolio-v5-section-head { grid-template-columns: 1fr; gap: 19px; }
  .portfolio-v5-section-head h2 { font-size: 41px; }
  .portfolio-card { padding: 15px; border-radius: 12px; }
  .portfolio-card-visual { height: 285px; flex-basis: 285px; }
  .portfolio-card-copy h3 { font-size: 45px; }
  .portfolio-v5-archive { grid-template-columns: 1fr; gap: 28px; }
  .portfolio-v5-archive > a { width: 100%; }
}

/* Portfolio v6 — reduced to title, projects and archive */
.portfolio-v6 { position: relative; isolation: isolate; background: #05060a; }
.portfolio-v6::before { content: ""; position: fixed; z-index: 1; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(3,4,9,.46), rgba(3,4,9,.78) 56%, rgba(3,4,9,.92)); }
.portfolio-v6 > header, .portfolio-v6 > main, .portfolio-v6 > footer { position: relative; z-index: 2; }
.portfolio-v6 .portfolio-header { z-index: 20; background: rgba(4,5,9,.56); }

.portfolio-v6-hero { min-height: 390px; display: flex; justify-content: space-between; align-items: flex-end; gap: 80px; padding: 90px 0 68px; }
.portfolio-v6-hero h1 { margin: 0; color: white; font-size: clamp(72px, 8vw, 108px); font-weight: 560; line-height: .88; letter-spacing: -.07em; }
.portfolio-v6-hero p { max-width: 440px; margin: 0 0 5px; color: rgba(232,234,242,.66); font-size: 16px; line-height: 1.8; }
.portfolio-v6-projects { padding-top: 36px; border-top: 1px solid rgba(255,255,255,.17); }
.portfolio-v6 .portfolio-card { min-height: 650px; padding: 18px; background: rgba(7,9,15,.72); }
.portfolio-v6 .portfolio-card > header { padding-bottom: 16px; font-size: 9px; }
.portfolio-v6 .portfolio-card-visual { height: 255px; flex-basis: 255px; }
.portfolio-v6 .portfolio-card-copy { padding: 29px 3px 0; }
.portfolio-v6 .portfolio-card-copy h3 { margin: 0 0 20px; }
.portfolio-v6 .portfolio-card-copy > p { min-height: 0; }
.portfolio-v6 .portfolio-card > strong { padding-top: 30px; }

.portfolio-v6-archive { display: grid; grid-template-columns: 1fr auto; gap: 45px; align-items: end; margin-top: 78px; padding: 38px 0; border-top: 1px solid rgba(255,255,255,.16); border-bottom: 1px solid rgba(255,255,255,.16); }
.portfolio-v6-archive h2 { margin: 0 0 8px; color: white; font-size: clamp(30px, 3.4vw, 44px); font-weight: 560; }
.portfolio-v6-archive p { margin: 0; color: rgba(220,223,233,.5); font-size: 13px; }
.portfolio-v6-archive > a { min-width: 150px; display: flex; justify-content: space-between; gap: 25px; padding: 12px 15px; border: 1px solid rgba(255,255,255,.22); border-radius: 10px; color: white; font-size: 11px; text-decoration: none; background: rgba(7,9,15,.38); }

@media (max-width: 900px) {
  .portfolio-v6-hero { min-height: 350px; flex-direction: column; align-items: flex-start; justify-content: flex-end; gap: 30px; }
}

@media (max-width: 640px) {
  .portfolio-v6-hero { min-height: auto; padding: 62px 0 52px; }
  .portfolio-v6-hero h1 { font-size: 66px; }
  .portfolio-v6-hero p { font-size: 15px; }
  .portfolio-v6 .portfolio-card { min-height: 600px; }
  .portfolio-v6-archive { grid-template-columns: 1fr; gap: 26px; }
  .portfolio-v6-archive > a { width: 100%; }
}

/* Portfolio v7 — desktop project browser */
.portfolio-v7 { position: relative; isolation: isolate; background: #05060a; }
.portfolio-v7::before { content: ""; position: fixed; z-index: 1; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(3,4,9,.46), rgba(3,4,9,.76) 50%, rgba(3,4,9,.92)); }
.portfolio-v7 > main, .portfolio-v7 > footer { position: relative; z-index: 2; }
.portfolio-v7 > header.portfolio-floating-header { position: absolute; z-index: 20; inset: 0 0 auto; border: 0; background: transparent; backdrop-filter: none; }
.portfolio-v7 .portfolio-floating-header .portfolio-nav { grid-template-columns: 1fr auto; }
.portfolio-v7-hero { min-height: 330px; display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; gap: 22px; padding: 86px 0 60px; }
.portfolio-v7-hero h1 { margin: 0; color: white; font-size: clamp(58px, 6.5vw, 86px); font-weight: 560; line-height: .92; letter-spacing: -.065em; }
.portfolio-v7-hero p { max-width: 520px; margin: 0; color: rgba(232,234,242,.65); font-size: 16px; line-height: 1.8; }
.portfolio-v7-projects { border-top: 1px solid rgba(255,255,255,.17); }
.portfolio-v7-label { height: 86px; display: flex; align-items: center; color: rgba(244,245,249,.9); font-size: clamp(24px, 2.3vw, 32px); font-weight: 560; letter-spacing: -.035em; }

.project-browser { min-height: 620px; display: grid; grid-template-columns: minmax(330px, .72fr) minmax(560px, 1.28fr); gap: 16px; background: transparent; }
.project-browser-list { display: grid; grid-template-rows: repeat(3, 1fr); gap: 12px; }
.project-browser-tab { --project-accent: 168,179,255; position: relative; isolation: isolate; overflow: hidden; display: grid; grid-template-columns: 38px minmax(0, 1fr) 35px; gap: 18px; align-items: center; padding: 28px 27px; border: 1px solid rgba(255,255,255,.11); border-radius: 16px; color: white; text-decoration: none; background: linear-gradient(135deg, rgba(var(--project-accent),.08), rgba(8,10,17,.62) 44%, rgba(5,7,12,.74)); box-shadow: 0 18px 55px rgba(0,0,0,.12); transition: border-color .3s ease, background .3s ease, box-shadow .3s ease, transform .3s ease; }
.project-browser-tab[data-project-tab="omeety"] { --project-accent: 197,203,255; }
.project-browser-tab[data-project-tab="omyne"] { --project-accent: 117,134,255; }
.project-browser-tab[data-project-tab="silver"] { --project-accent: 155,205,172; }
.project-browser-tab:last-child { border-bottom: 0; }
.project-browser-tab::before { content: ""; position: absolute; z-index: 2; top: 18px; bottom: 18px; left: 0; width: 3px; border-radius: 0 3px 3px 0; background: rgb(var(--project-accent)); box-shadow: 0 0 22px rgba(var(--project-accent),.6); opacity: 0; transform: scaleY(.35); transition: opacity .3s ease, transform .3s ease; }
.project-browser-tab::after { content: ""; position: absolute; z-index: -1; width: 230px; height: 230px; top: -150px; right: -100px; border-radius: 50%; background: radial-gradient(circle, rgba(var(--project-accent),.2), transparent 68%); opacity: .35; transition: opacity .35s ease, transform .5s ease; }
.project-browser-tab > * { position: relative; z-index: 1; }
.project-browser-tab:hover { border-color: rgba(var(--project-accent),.3); transform: translateY(-2px); }
.project-browser-tab.active { padding-left: 27px; border-color: rgba(var(--project-accent),.42); background: linear-gradient(135deg, rgba(var(--project-accent),.17), rgba(13,16,27,.82) 46%, rgba(6,8,14,.9)); box-shadow: 0 22px 70px rgba(0,0,0,.28), inset 0 1px 0 rgba(255,255,255,.045); }
.project-browser-tab.active::after { opacity: .9; transform: scale(1.16); }
.project-browser-tab.active::before { opacity: 1; transform: scaleY(1); }
.project-browser-tab > span { align-self: start; color: rgba(220,223,233,.42); font-size: 16px; font-weight: 500; line-height: 1; }
.project-browser-tab small { color: rgba(220,223,233,.5); font-size: 10px; font-weight: 700; letter-spacing: .075em; }
.project-browser-tab h2 { margin: 15px 0 8px; color: white; font-size: clamp(29px, 2.25vw, 35px); font-weight: 560; line-height: 1.05; letter-spacing: -.04em; }
.project-browser-tab p { margin: 0; color: rgba(220,223,233,.58); font-size: 13.5px; line-height: 1.5; }
.project-browser-arrow { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.18); border-radius: 9px; color: white; font-size: 11px; font-weight: 500; text-decoration: none; transition: color .25s ease, background .25s ease, transform .25s ease; }
.project-browser-tab.active > .project-browser-arrow { color: #080910; background: white; transform: translateX(3px); }

.project-browser-stage { position: relative; min-width: 0; min-height: 620px; overflow: hidden; border: 1px solid rgba(255,255,255,.14); border-radius: 18px; background: #080b14; box-shadow: 0 28px 90px rgba(0,0,0,.26); }
.project-preview { position: absolute; inset: 0; overflow: hidden; color: white; text-decoration: none; opacity: 0; pointer-events: none; transform: scale(1.025); transition: opacity .42s ease, transform .7s cubic-bezier(.2,.8,.2,1); }
.project-preview.active { opacity: 1; pointer-events: auto; transform: scale(1); }
.project-preview > img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: left top; filter: saturate(.82) brightness(.82); transition: filter .5s ease, transform .8s ease; }
.project-preview[data-project-panel="omeety"] > img { height: calc(100% + 52px); margin-top: -52px; }
.project-preview:hover > img { filter: saturate(1) brightness(.95); transform: scale(1.025); }
.project-preview::after { content: ""; position: absolute; inset: 35% 0 0; pointer-events: none; background: linear-gradient(0deg, rgba(3,4,8,.94), transparent); }
.project-preview-caption { position: absolute; z-index: 4; right: 34px; bottom: 32px; left: 34px; display: grid; grid-template-columns: 1fr auto; gap: 12px 30px; align-items: end; }
.project-preview-caption span { grid-column: 1 / -1; color: rgba(229,232,241,.55); font-size: 9px; font-weight: 760; letter-spacing: .14em; }
.project-preview-caption strong { max-width: 580px; color: white; font-size: clamp(25px, 2.7vw, 39px); font-weight: 560; line-height: 1.15; letter-spacing: -.035em; }
.project-preview-caption b { color: white; font-size: 11px; font-weight: 650; }
.project-preview.topology-visual { min-height: 0; background: radial-gradient(circle at 52% 48%, rgba(91,107,229,.3), transparent 32%), linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px), #080b15; background-size: auto, 48px 48px, 48px 48px, auto; }
.project-preview.omyne-preview-real { background: radial-gradient(circle at 78% 18%, rgba(70,94,255,.25), transparent 34%), radial-gradient(circle at 18% 58%, rgba(80,101,235,.14), transparent 38%), #080a11; }
.omyne-thumb-scene { position:absolute; inset:0 0 118px; overflow:hidden; }
.omyne-thumb-scene::before { content:""; position:absolute; inset:0; background:linear-gradient(rgba(255,255,255,.028) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.028) 1px,transparent 1px); background-size:42px 42px; mask-image:linear-gradient(to bottom,black,transparent 88%); }
.omyne-thumb-browser { position:absolute; z-index:1; top:48px; left:40px; width:82%; overflow:hidden; border:1px solid rgba(255,255,255,.17); border-radius:12px; background:#0d0e12; box-shadow:0 38px 90px rgba(0,0,0,.48); transform:perspective(1200px) rotateY(2deg) rotateX(.5deg); transform-origin:left center; }
.omyne-thumb-browser-bar { height:30px; display:flex; align-items:center; gap:6px; padding:0 12px; border-bottom:1px solid rgba(255,255,255,.1); color:rgba(226,230,241,.43); background:#16171c; font-size:7px; font-weight:650; letter-spacing:.055em; }
.omyne-thumb-browser-bar i { width:5px; height:5px; border-radius:50%; background:rgba(232,235,244,.38); }
.omyne-thumb-browser-bar span { margin-left:6px; }
.omyne-thumb-browser img { width:100%; height:auto; display:block; filter:saturate(.9) brightness(.96); }
.omyne-thumb-phone { position:absolute; z-index:3; top:76px; right:34px; width:21%; max-width:166px; overflow:hidden; padding:7px 5px 8px; border:1px solid rgba(255,255,255,.23); border-radius:23px; background:#050609; box-shadow:0 35px 90px rgba(0,0,0,.66),0 0 0 5px rgba(5,7,13,.48); transform:rotate(1.5deg); }
.omyne-thumb-phone > span { position:absolute; z-index:2; top:7px; left:50%; width:28%; height:4px; border-radius:0 0 5px 5px; background:#090a0d; transform:translateX(-50%); }
.omyne-thumb-phone img { width:100%; height:auto; display:block; border-radius:17px; }
.project-preview.business-visual { min-height: 0; padding: 50px 50px 190px; }
.project-preview.business-visual::after { z-index: 2; }
.project-preview.business-visual .project-preview-caption { z-index: 4; color: white; }

.portfolio-v7-archive { margin-top: 76px; padding: 34px 0; border-top: 1px solid rgba(255,255,255,.16); border-bottom: 1px solid rgba(255,255,255,.16); }
.portfolio-v7-archive > h2 { margin: 0; color: rgba(244,245,249,.9); font-size: clamp(24px, 2.3vw, 32px); font-weight: 560; letter-spacing: -.035em; }
.portfolio-v7-archive > .archive-v2-grid { margin-top: 32px; }

.portfolio-v7 .portfolio-header,
.portfolio-v7-projects,
.portfolio-v7 .inner-footer { border: 0; }
.portfolio-v7 .project-browser { border-top: 0; border-bottom: 0; }
.portfolio-v7 .project-browser-list { padding: 0; }
.portfolio-v7 .project-browser-tab { border-bottom: 1px solid rgba(255,255,255,.11); }
.portfolio-v7 .portfolio-v7-archive { padding: 34px 0; border: 0; border-radius: 0; background: transparent; backdrop-filter: none; }

@media (max-width: 1100px) {
  .project-browser { grid-template-columns: 1fr; }
  .project-browser-list { grid-template-columns: repeat(3, 1fr); grid-template-rows: none; }
  .project-browser-tab { grid-template-columns: 1fr auto; }
  .project-browser-tab > span, .project-browser-tab p { display: none; }
  .project-browser-stage { min-height: 520px; }
}

@media (max-width: 640px) {
  .portfolio-v7-hero { min-height: auto; flex-direction: column; align-items: flex-start; gap: 40px; padding: 116px 0 52px; }
  .portfolio-v7-hero h1 { font-size: 48px; }
  .portfolio-v7-hero p { font-size: 15px; }
  .project-browser { min-height: 0; }
  .project-browser-list { grid-template-columns: 1fr; grid-template-rows: none; align-content: start; }
  .project-browser-tab { height: 136px; min-height: 136px; max-height: 136px; grid-template-columns: 28px minmax(0, 1fr) 46px; gap: 14px; box-sizing: border-box; cursor: pointer; }
  .project-browser-tab:hover { transform: none; }
  .project-browser-tab > span { display: block; align-self: center; color: rgba(220,223,233,.5); font-size: 13px; font-variant-numeric: tabular-nums; letter-spacing: .04em; }
  .project-status-long > span { display: block; }
  .project-browser-tab > .project-browser-arrow { width: 46px; height: 46px; border-radius: 11px; font-size: 15px; }
  .project-browser-stage { display: none; }
  .project-browser-list > .project-preview { position: relative; inset: auto; width: 100%; min-height: 330px; margin: 0 0 8px; border: 1px solid rgba(255,255,255,.14); border-radius: 16px; opacity: 1; pointer-events: none; transform: none; box-shadow: 0 24px 75px rgba(0,0,0,.24); }
  .project-browser-list > .project-preview.active { pointer-events: auto; }
  .project-browser-list > .project-preview[data-project-panel="omeety"] > img { width: calc(100% + 2em); max-width: none; height: calc(100% + 52px); margin-left: -2em; }
  .project-browser-list > .project-preview.topology-visual { min-height: 330px; }
  .project-browser-list > .project-preview.omyne-preview-real { min-height:330px; }
  .project-browser-list > .omyne-preview-real .omyne-thumb-scene { inset:0 0 96px; }
  .project-browser-list > .omyne-preview-real .omyne-thumb-browser { top:28px; left:-26%; width:122%; border-radius:9px; transform:none; }
  .project-browser-list > .omyne-preview-real .omyne-thumb-browser-bar { height:22px; padding:0 8px; font-size:5px; }
  .project-browser-list > .omyne-preview-real .omyne-thumb-phone { top:38px; right:17px; width:28%; padding:5px 4px 6px; border-radius:17px; box-shadow:0 24px 58px rgba(0,0,0,.7),0 0 0 3px rgba(5,7,13,.48); }
  .project-browser-list > .omyne-preview-real .omyne-thumb-phone img { border-radius:13px; }
  .project-browser-list > .project-preview.business-visual { min-height: 360px; }
  .project-preview-caption { right: 22px; bottom: 22px; left: 22px; grid-template-columns: 1fr; }
  .project-preview-caption strong { font-size: 18px; line-height: 1.2; letter-spacing: -.04em; white-space: nowrap; }
  .project-preview-caption b { width: max-content; display: inline-flex; align-items: center; padding: 7px 0; }
  .project-preview.business-visual { padding: 24px 18px 150px; }
  .portfolio-v7-archive > .archive-v2-grid { margin-top: 24px; }
}

/* Case v2 — shared project detail system */
.case-v2 { position: relative; isolation: isolate; background: #05060a; }
.case-v2::before { content: ""; position: fixed; z-index: 1; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(3,4,9,.5), rgba(3,4,9,.83) 52%, rgba(3,4,9,.94)); }
.case-dither { position: fixed; z-index: 0; pointer-events: none; }
.case-v2 > header, .case-v2 > main, .case-v2 > footer { position: relative; z-index: 2; }
.case-v2 .portfolio-header { z-index: 20; border: 0; background: rgba(4,5,9,.56); }
.case-v2 .portfolio-name { display: inline-block; color: white; font-size: 12px; letter-spacing: .04em; }
.case-v2 .inner-hero, .case-v2 .page-hero { padding: 95px 0 76px; border: 0; }
.case-v2 .inner-hero h1, .case-v2 .page-hero h1 { max-width: 1050px; margin: 25px 0 30px; color: white; font-size: clamp(68px, 9vw, 122px); font-weight: 560; line-height: .86; letter-spacing: -.07em; }
.case-v2 .inner-hero > p:last-of-type, .case-v2 .page-hero .lead { max-width: 760px; margin: 0; color: rgba(230,233,241,.7); font-size: 17px; line-height: 1.8; }
.case-v2 .product-pills, .case-v2 .case-facts { margin-top: 32px; }
.case-v2 .product-pills span, .case-v2 .case-facts span { border-color: rgba(255,255,255,.16); background: rgba(6,8,14,.34); color: rgba(232,235,243,.64); }
.case-v2-hero-visual { position: relative; height: 500px; min-height: 500px; overflow: hidden; margin-bottom: 85px; border: 1px solid rgba(255,255,255,.14); border-radius: 15px; box-shadow: 0 35px 100px rgba(0,0,0,.22); }
.case-v2-hero-visual.topology-visual { background: radial-gradient(circle at 52% 48%, rgba(91,107,229,.28), transparent 31%), linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px), #080b15; background-size: auto, 48px 48px, 48px 48px, auto; }
.case-v2-hero-visual.business-visual { padding: 42px; }
.case-v2 .project-layout, .case-v2 .case-layout { gap: 72px; padding-top: 10px; }
.case-v2 .case-layout { grid-template-columns: minmax(0, 1fr) 300px; }
.case-v2 .case-content > section, .case-v2 .case-section { padding: 18px 0 72px; }
.case-v2 .case-content h2, .case-v2 .case-section h2, .case-v2 .prose h2 { max-width: 820px; margin: 23px 0; color: white; font-size: clamp(36px, 4.4vw, 58px); font-weight: 560; line-height: 1.08; letter-spacing: -.05em; }
.case-v2 .case-content > section > p, .case-v2 .case-section > p:not(.section-kicker):not(.fine-print) { max-width: 760px; color: rgba(222,225,234,.66); font-size: 16px; line-height: 1.82; }
.case-v2 .case-aside, .case-v2 .sidebar { top: 28px; padding: 26px; border: 0; border-radius: 14px; background: rgba(8,10,17,.7); box-shadow: 0 25px 70px rgba(0,0,0,.15); backdrop-filter: blur(18px); }
.case-v2 .meta-list div, .case-v2 .case-aside dl div { border: 0; }
.case-v2 .meta-list div + div, .case-v2 .case-aside dl div + div { margin-top: 5px; }
.case-v2 .case-grid { gap: 12px; border: 0; background: transparent; }
.case-v2 .case-grid > div { border-radius: 12px; background: rgba(10,13,22,.72); }
.case-v2 .proof-media { border-color: rgba(255,255,255,.14); border-radius: 14px; }
.case-v2 .proof-media-hero { margin-bottom: 80px; }
.case-v2 .problem-grid > div, .case-v2 .boundary { border-color: rgba(255,255,255,.12); background: rgba(10,13,22,.64); }
.case-v2 .capability-grid > div { border: 1px solid rgba(255,255,255,.12); background: rgba(10,13,22,.72); }
.case-v2 .scenario-list, .case-v2 .scenario-list > div { border: 0; }
.case-v2 .scenario-list > div { margin-bottom: 8px; padding: 17px 19px; border-radius: 10px; background: rgba(10,13,22,.55); }
.case-v2 .product-quote { color: white; background: rgba(120,136,255,.2); }
.case-v2 .open-source-callout { border: 0; border-radius: 15px; background: rgba(10,13,22,.78); }
.case-v2 .inner-footer { border: 0; }

@media (max-width: 900px) {
  .case-v2-hero-visual { height: 400px; min-height: 400px; }
  .case-v2 .project-layout, .case-v2 .case-layout { grid-template-columns: 1fr; }
  .case-v2 .case-aside, .case-v2 .sidebar { position: static; order: -1; }
}

@media (max-width: 640px) {
  .case-v2 .inner-hero, .case-v2 .page-hero { padding: 62px 0 48px; }
  .case-v2 .inner-hero h1, .case-v2 .page-hero h1 { font-size: clamp(54px, 17vw, 74px); }
  .case-v2-hero-visual { height: 310px; min-height: 310px; margin-bottom: 55px; border-radius: 10px; }
  .case-v2-hero-visual.business-visual { padding: 18px; }
}

/* Archive v2 — quiet project catalog */
.archive-v2 { position: relative; isolation: isolate; background: #05060a; }
.archive-v2::before { content: ""; position: fixed; z-index: 1; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(3,4,9,.48), rgba(3,4,9,.82) 55%, rgba(3,4,9,.94)); }
.archive-dither { position: fixed; z-index: 0; pointer-events: none; }
.archive-v2 > main, .archive-v2 > footer { position: relative; z-index: 2; }
.archive-v2 .archive-floating-header { position: absolute; z-index: 20; inset: 0 0 auto; border: 0; background: transparent; backdrop-filter: none; }
.archive-v2 .archive-floating-header .portfolio-nav { grid-template-columns: 1fr auto; }
.archive-v2-hero { min-height: 350px; display: flex; justify-content: space-between; align-items: flex-end; gap: 80px; padding: 88px 0 64px; }
.archive-v2-hero h1 { margin: 0; color: white; font-size: clamp(70px, 8vw, 106px); font-weight: 560; line-height: .88; letter-spacing: -.07em; }
.archive-v2-hero p { max-width: 440px; margin: 0 0 5px; color: rgba(230,233,241,.64); font-size: 16px; line-height: 1.8; }
.archive-v2-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.archive-v2-grid article { min-height: 300px; display: flex; flex-direction: column; padding: 30px; border-radius: 14px; background: rgba(7,9,15,.68); box-shadow: 0 25px 70px rgba(0,0,0,.14); backdrop-filter: blur(16px); }
.archive-v2-grid article header { display: flex; justify-content: space-between; gap: 20px; color: rgba(222,225,234,.43); font-size: 9px; font-weight: 720; letter-spacing: .1em; }
.archive-v2-grid article header b { color: rgba(215,221,255,.7); font-weight: 650; }
.archive-v2-grid article > div { margin: auto 0; }
.archive-v2-grid h2 { margin: 0 0 14px; color: white; font-size: clamp(35px, 4vw, 52px); font-weight: 560; letter-spacing: -.05em; }
.archive-v2-grid p { margin: 0; color: rgba(220,223,233,.6); font-size: 14px; }
.archive-v2-grid small { color: rgba(220,223,233,.38); font-size: 9px; letter-spacing: .08em; }
.archive-v2 .inner-footer { border: 0; }
.archive-v2-grid .archive-project-card.is-ready { border: 1px solid rgba(130,148,255,.34); background: radial-gradient(circle at 88% 8%, rgba(72,94,255,.22), transparent 42%), rgba(7,9,15,.78); }
.archive-project-link { width: max-content; display: inline-flex; align-items: center; gap: 12px; color: rgba(235,238,248,.82); font-size: 10px; font-weight: 700; text-decoration: none; }
.archive-project-link svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s ease; }
.archive-project-link:hover svg { transform: translateX(3px); }

@media (max-width: 760px) {
  .archive-v2-hero { min-height: auto; flex-direction: column; align-items: flex-start; gap: 28px; padding: 62px 0 52px; }
  .archive-v2-hero h1 { font-size: 64px; }
  .archive-v2-grid { grid-template-columns: 1fr; }
  .archive-v2-grid article { min-height: 240px; padding: 24px; }
  .archive-project-link { min-height: 36px; }
}

/* Omeety v3 — repository-backed product case */
.omeety-v3 > header.project-case-header,
.case-v2 > header.project-case-header { position: absolute; z-index: 20; inset: 0 0 auto; border: 0; background: transparent; backdrop-filter: none; }
.project-case-header .portfolio-nav { grid-template-columns: 1fr auto; }
.case-v2 > header.project-case-header + main .inner-hero { padding-top: 155px; }
.omeety-v3-hero { min-height: 680px; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(360px, .62fr); gap: clamp(70px, 10vw, 150px); align-items: end; padding: 160px 0 92px; }
.omeety-v3-title .inner-index { margin: 0 0 34px; color: rgba(213,218,237,.5); font-size: 10px; font-weight: 720; letter-spacing: .14em; }
.omeety-v3-title h1 { margin: 0; color: white; font-size: clamp(86px, 10vw, 142px); font-weight: 550; line-height: .76; letter-spacing: -.075em; }
.omeety-v3-intro { padding-bottom: 5px; }
.omeety-v3-intro > span { color: rgba(177,188,255,.72); font-size: 9px; font-weight: 760; letter-spacing: .14em; }
.omeety-v3-intro > p { margin: 28px 0 34px; color: rgba(229,232,240,.72); font-size: 17px; line-height: 1.78; }
.omeety-v3-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.omeety-v3-actions .button { min-width: 145px; justify-content: center; border-color: rgba(255,255,255,.17); color: white; background: rgba(7,9,15,.36); }
.omeety-v3-actions .button.primary { border-color: white; color: #080910; background: white; }

.omeety-v3-proof { position: relative; height: min(680px, 56vw); min-height: 500px; overflow: hidden; background: #080b14; box-shadow: 0 38px 110px rgba(0,0,0,.28); }
.omeety-v3-proof::after { content: ""; position: absolute; inset: 48% 0 0; pointer-events: none; background: linear-gradient(0deg, rgba(3,4,8,.92), transparent); }
.omeety-v3-proof > img { width: 100%; height: calc(100% + 58px); display: block; margin-top: -58px; object-fit: cover; object-position: left top; filter: saturate(.82) brightness(.86); }
.omeety-v3-proof > div { position: absolute; z-index: 2; right: 38px; bottom: 34px; left: 38px; display: flex; justify-content: space-between; align-items: end; gap: 40px; }
.omeety-v3-proof span { color: rgba(231,234,242,.52); font-size: 9px; font-weight: 740; letter-spacing: .13em; }
.omeety-v3-proof b { max-width: 570px; color: white; font-size: clamp(23px, 2.5vw, 36px); font-weight: 550; line-height: 1.18; letter-spacing: -.035em; }

.omeety-v3-metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; padding-top: 12px; }
.omeety-v3-metrics > div { min-height: 155px; display: flex; flex-direction: column; justify-content: space-between; padding: 23px; background: rgba(8,10,17,.56); backdrop-filter: blur(14px); }
.omeety-v3-metrics strong { color: white; font-size: clamp(32px, 3.5vw, 48px); font-weight: 540; letter-spacing: -.05em; }
.omeety-v3-metrics span { color: rgba(221,225,235,.48); font-size: 10px; letter-spacing: .06em; }

.omeety-v3-body { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: clamp(65px, 9vw, 130px); padding-top: 125px; padding-bottom: 120px; }
.omeety-v3-profile { position: sticky; top: 30px; align-self: start; }
.omeety-v3-profile > span { color: rgba(201,207,226,.42); font-size: 9px; font-weight: 760; letter-spacing: .15em; }
.omeety-v3-profile dl { margin: 27px 0 0; }
.omeety-v3-profile dl div { margin-bottom: 21px; }
.omeety-v3-profile dt { color: rgba(210,215,230,.38); font-size: 9px; }
.omeety-v3-profile dd { margin: 6px 0 0; color: rgba(243,244,248,.78); font-size: 12px; line-height: 1.5; }
.omeety-v3-content > section { padding: 0 0 105px; }
.omeety-v3-content .case-label { color: rgba(170,183,255,.62); font-size: 9px; font-weight: 760; letter-spacing: .14em; }
.omeety-v3-content h2 { max-width: 880px; margin: 25px 0 28px; color: white; font-size: clamp(42px, 5vw, 68px); font-weight: 550; line-height: 1.04; letter-spacing: -.055em; }
.omeety-v3-content section > p { max-width: 790px; margin: 0; color: rgba(223,226,235,.65); font-size: 16px; line-height: 1.85; }
.omeety-v3-content blockquote { max-width: 790px; margin: 42px 0 0; padding: 25px 28px; color: white; font-size: 20px; line-height: 1.55; background: rgba(108,125,242,.16); }

.omeety-v3-flow { display: grid; grid-template-columns: 1fr auto 1.18fr auto 1fr; gap: 12px; align-items: center; margin: 48px 0 35px; }
.omeety-v3-flow > i { color: rgba(222,226,238,.34); font-size: 20px; font-style: normal; }
.omeety-v3-flow .flow-node { min-height: 155px; display: flex; flex-direction: column; padding: 20px; background: rgba(8,11,19,.62); }
.omeety-v3-flow .flow-core { background: rgba(93,109,224,.18); }
.omeety-v3-flow small { color: rgba(218,222,235,.36); font-size: 9px; }
.omeety-v3-flow b { margin: auto 0 8px; color: white; font-size: 19px; font-weight: 560; }
.omeety-v3-flow span { color: rgba(216,221,234,.48); font-size: 10px; line-height: 1.5; }

.omeety-v3-capabilities { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 48px; }
.omeety-v3-capabilities > div { min-height: 315px; display: flex; flex-direction: column; padding: 25px; background: rgba(8,11,19,.62); }
.omeety-v3-capabilities > div > span { color: rgba(187,197,255,.54); font-size: 11px; }
.omeety-v3-capabilities h3 { margin: auto 0 16px; color: white; font-size: 28px; font-weight: 550; letter-spacing: -.04em; }
.omeety-v3-capabilities p { margin: 0; color: rgba(218,222,233,.55); font-size: 13px; line-height: 1.75; }

.omeety-v3-scenarios { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 46px; }
.omeety-v3-scenarios > div { min-height: 185px; padding: 24px; background: rgba(8,11,19,.54); }
.omeety-v3-scenarios b { color: white; font-size: 18px; font-weight: 560; }
.omeety-v3-scenarios p { margin: 42px 0 0; color: rgba(218,222,233,.54); font-size: 13px; line-height: 1.7; }

.omeety-v3-secondary-proof { position: relative; height: 440px; overflow: hidden; margin: 48px 0 0; background: #080b14; }
.omeety-v3-secondary-proof::after { content: ""; position: absolute; inset: 40% 0 0; background: linear-gradient(0deg, rgba(3,4,8,.93), transparent); }
.omeety-v3-secondary-proof img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: left top; filter: brightness(.72) saturate(.72); }
.omeety-v3-secondary-proof figcaption { position: absolute; z-index: 2; right: 27px; bottom: 25px; left: 27px; display: flex; justify-content: space-between; align-items: end; gap: 30px; }
.omeety-v3-secondary-proof figcaption span { color: rgba(221,225,235,.44); font-size: 9px; letter-spacing: .11em; }
.omeety-v3-secondary-proof figcaption b { max-width: 450px; color: white; font-size: 22px; font-weight: 550; line-height: 1.25; }

.omeety-v3-boundaries { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 46px; }
.omeety-v3-boundaries > div { min-height: 290px; padding: 25px; background: rgba(8,11,19,.58); }
.omeety-v3-boundaries b { color: white; font-size: 18px; font-weight: 560; }
.omeety-v3-boundaries ul { margin: 38px 0 0; padding: 0; list-style: none; }
.omeety-v3-boundaries li { margin-top: 12px; color: rgba(219,223,233,.55); font-size: 13px; line-height: 1.65; }
.omeety-v3-boundaries li::before { content: "·"; margin-right: 8px; color: rgba(179,190,255,.8); }
.omeety-v3-closing { padding: 58px !important; background: radial-gradient(circle at 90% 10%, rgba(105,121,238,.24), transparent 38%), rgba(8,11,19,.76); }
.omeety-v3-closing h2 { max-width: 760px; }
.omeety-v3-closing .omeety-v3-actions { margin-top: 38px; }

@media (max-width: 980px) {
  .omeety-v3-hero { min-height: auto; grid-template-columns: 1fr; gap: 65px; padding: 150px 0 80px; }
  .omeety-v3-intro { max-width: 650px; }
  .omeety-v3-proof { height: 570px; min-height: 0; }
  .omeety-v3-metrics { grid-template-columns: 1fr 1fr; }
  .omeety-v3-body { grid-template-columns: 1fr; padding-top: 90px; }
  .omeety-v3-profile { position: static; display: none; }
}

@media (max-width: 640px) {
  .omeety-v3-hero { gap: 44px; padding: 120px 0 58px; }
  .omeety-v3-title h1 { font-size: clamp(58px, 18vw, 78px); line-height: .82; }
  .omeety-v3-intro > p { margin: 21px 0 28px; font-size: 15px; }
  .omeety-v3-actions { display: grid; grid-template-columns: 1fr; }
  .omeety-v3-actions .button { width: 100%; }
  .omeety-v3-proof { width: 100%; height: 390px; }
  .omeety-v3-proof > div { right: 20px; bottom: 20px; left: 20px; display: block; }
  .omeety-v3-proof b { display: block; margin-top: 10px; font-size: 21px; }
  .omeety-v3-metrics { grid-template-columns: 1fr 1fr; gap: 6px; }
  .omeety-v3-metrics > div { min-height: 125px; padding: 17px; }
  .omeety-v3-metrics strong { font-size: 29px; }
  .omeety-v3-body { padding-top: 75px; padding-bottom: 75px; }
  .omeety-v3-content > section { padding-bottom: 78px; }
  .omeety-v3-content h2 { font-size: 38px; }
  .omeety-v3-content section > p { font-size: 15px; }
  .omeety-v3-content blockquote { padding: 21px; font-size: 17px; }
  .omeety-v3-flow { grid-template-columns: 1fr; }
  .omeety-v3-flow > i { transform: rotate(90deg); justify-self: center; }
  .omeety-v3-flow .flow-node { min-height: 130px; }
  .omeety-v3-capabilities, .omeety-v3-scenarios, .omeety-v3-boundaries { grid-template-columns: 1fr; }
  .omeety-v3-capabilities > div { min-height: 245px; }
  .omeety-v3-secondary-proof { height: 330px; }
  .omeety-v3-secondary-proof figcaption { display: block; }
  .omeety-v3-secondary-proof figcaption b { display: block; margin-top: 9px; font-size: 18px; }
  .omeety-v3-closing { padding: 30px 22px !important; }
}

/* First-party privacy notice */
.privacy-notice {
  position: fixed;
  z-index: 100;
  right: 22px;
  bottom: 22px;
  width: min(520px, calc(100% - 32px));
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 18px;
  align-items: center;
  padding: 16px 18px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 12px;
  color: rgba(231,234,242,.76);
  background: rgba(7,9,15,.92);
  box-shadow: 0 24px 70px rgba(0,0,0,.38);
  backdrop-filter: blur(18px);
}
.privacy-notice p { margin: 0; font-size: 11px; line-height: 1.55; }
.privacy-notice a,
.privacy-notice button { color: white; font-size: 11px; white-space: nowrap; }
.privacy-notice button { padding: 7px 10px; border: 1px solid rgba(255,255,255,.24); border-radius: 7px; background: transparent; cursor: pointer; }

@media (min-width: 901px) {
  .privacy-notice { width: auto; max-width: calc(100% - 44px); }
  .privacy-notice p { white-space: nowrap; }
}

/* Owner monitoring console */
.admin-page { position: relative; min-height: 100svh; overflow-x: hidden; isolation: isolate; background: #05060a; }
.admin-page::before { content: ""; position: fixed; z-index: 1; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(3,4,9,.72), rgba(3,4,9,.34)), linear-gradient(0deg, rgba(3,4,9,.78), transparent 58%); }
.admin-dither { position: fixed; z-index: 0; pointer-events: none; }
.admin-header,
.admin-login-stage,
.admin-console { position: relative; z-index: 2; }
.admin-header { min-height: 66px; display: flex; justify-content: space-between; align-items: center; padding: 0 34px; border-bottom: 1px solid rgba(255,255,255,.1); color: #727989; font-size: 9px; letter-spacing: .14em; }
.admin-header a { color: #adb2bd; font-size: 11px; text-decoration: none; }
.admin-login-stage { width: min(460px, calc(100% - 40px)); min-height: calc(100svh - 66px); display: grid; place-items: center; margin: 0 auto; padding: 70px 0; }
.admin-login-card { width: 100%; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; backdrop-filter: none; }
.admin-login-card h1 { margin: 22px 0 14px; color: white; font-size: clamp(48px, 6vw, 64px); font-weight: 580; line-height: 1; letter-spacing: -.055em; }
.admin-login-card > p { margin: 0 0 38px; color: #9298a5; font-size: 15px; }
.admin-login-card label,
.admin-grant-layout label { display: grid; gap: 8px; margin-top: 22px; color: #7f8797; font-size: 10px; }
.admin-login-card label { margin-top: 16px; color: #767d8b; font-weight: 700; letter-spacing: .08em; }
.admin-login-card input,
.admin-grant-layout input,
.admin-title select { min-height: 48px; padding: 0 13px; border: 1px solid rgba(255,255,255,.16); border-radius: 9px; outline: 0; color: white; background: #070910; }
.admin-login-card input { min-height: 58px; border-color: rgba(255,255,255,.2); border-radius: 12px; background: rgba(7,8,13,.76); font-size: 17px; box-shadow: inset 0 1px 0 rgba(255,255,255,.035); backdrop-filter: blur(12px); }
.admin-login-card input:focus,
.admin-grant-layout input:focus { border-color: #91a0ff; box-shadow: 0 0 0 3px rgba(125,142,255,.12); }
.admin-login-card .button { width: 100%; min-height: 54px; justify-content: space-between; margin-top: 10px; padding-right: 20px; padding-left: 20px; border-color: rgba(255,255,255,.92); border-radius: 12px; background: rgba(255,255,255,.94); color: #090a10; box-shadow: 0 12px 34px rgba(0,0,0,.2); }
.admin-console { width: min(1500px, calc(100% - 64px)); margin: 0 auto; padding: 72px 0 50px; }
.admin-title { display: flex; justify-content: space-between; align-items: end; gap: 40px; margin-bottom: 42px; }
.admin-title span,
.admin-panel header span { color: #747d93; font-size: 9px; font-weight: 740; letter-spacing: .16em; }
.admin-title h1 { margin: 15px 0 9px; color: white; font-size: clamp(52px, 7vw, 90px); font-weight: 550; letter-spacing: -.065em; }
.admin-title p { margin: 0; color: #686f7d; font-size: 11px; }
.admin-title-actions { display: flex; gap: 8px; }
.admin-title-actions select,
.admin-title-actions button,
.admin-panel button { min-height: 38px; padding: 0 12px; border: 1px solid rgba(255,255,255,.14); border-radius: 8px; color: #c5c9d2; background: rgba(8,10,16,.76); cursor: pointer; }
.admin-title-actions button:hover,
.admin-panel button:hover { color: white; border-color: rgba(255,255,255,.3); }
.admin-metrics { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-bottom: 10px; }
.admin-metrics article { min-height: 150px; display: flex; flex-direction: column; padding: 21px; border-radius: 12px; background: rgba(10,13,22,.77); }
.admin-metrics span { color: #71798a; font-size: 9px; letter-spacing: .11em; }
.admin-metrics strong { margin: auto 0 5px; color: white; font-size: 38px; font-weight: 550; letter-spacing: -.05em; }
.admin-metrics small { color: #646c7a; font-size: 9px; }
.admin-grid { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 10px; }
.admin-panel { overflow: hidden; border-radius: 13px; background: rgba(10,13,22,.77); }
.admin-panel > header { min-height: 82px; display: flex; justify-content: space-between; align-items: center; padding: 20px 22px; border-bottom: 1px solid rgba(255,255,255,.08); }
.admin-panel h2 { margin: 7px 0 0; color: white; font-size: 23px; font-weight: 550; }
.admin-panel header > i { color: #768092; font-size: 8px; font-style: normal; letter-spacing: .1em; }
.admin-panel header > i b { width: 5px; height: 5px; display: inline-block; margin-right: 7px; border-radius: 50%; background: #78e4be; box-shadow: 0 0 12px rgba(120,228,190,.8); }
.admin-table-wrap { max-height: 590px; overflow: auto; }
.admin-events { width: 100%; border-collapse: collapse; font-size: 10px; }
.admin-events th { position: sticky; z-index: 1; top: 0; padding: 12px 15px; color: #687181; background: #0b0e17; font-size: 8px; font-weight: 650; text-align: left; }
.admin-events td { max-width: 230px; padding: 13px 15px; overflow: hidden; border-top: 1px solid rgba(255,255,255,.055); color: #aeb4c0; text-overflow: ellipsis; white-space: nowrap; }
.admin-pages-panel > div { padding: 10px 22px 24px; }
.admin-pages-panel > div > div { position: relative; padding: 17px 0 12px; border-bottom: 1px solid rgba(255,255,255,.06); }
.admin-pages-panel span { max-width: 210px; display: block; overflow: hidden; color: #b7bdc8; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.admin-pages-panel b { position: absolute; top: 17px; right: 0; color: #697282; font-size: 8px; font-weight: 500; }
.admin-pages-panel i { width: var(--page-width); height: 2px; display: block; margin-top: 12px; background: linear-gradient(90deg,#7488ff,#76e2c1); }
.admin-grants-panel { margin-top: 10px; }
.admin-grant-layout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr); gap: 30px; padding: 26px; }
.admin-form-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.admin-grant-layout fieldset { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 24px 0; padding: 18px; border: 1px solid rgba(255,255,255,.1); border-radius: 9px; }
.admin-grant-layout legend { padding: 0 8px; color: #798294; font-size: 9px; }
.admin-grant-layout fieldset label { display: flex; align-items: center; gap: 7px; margin: 0; color: #aab0bc; }
.admin-grant-layout fieldset input { min-height: 0; }
.admin-grant-result { align-self: end; padding: 20px; border: 1px solid rgba(123,142,255,.26); border-radius: 10px; background: rgba(77,94,194,.1); }
.admin-grant-result span { color: #7f8dc8; font-size: 9px; }
.admin-grant-result code { display: block; margin: 17px 0; overflow-wrap: anywhere; color: white; font-size: 11px; line-height: 1.7; }
.admin-grant-list { padding: 0 26px 26px; }
.admin-grant-list article { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 16px 0; border-top: 1px solid rgba(255,255,255,.07); }
.admin-grant-list b,
.admin-grant-list span { display: block; }
.admin-grant-list b { color: white; font-size: 13px; }
.admin-grant-list span { margin-top: 5px; color: #6f7786; font-size: 9px; }
.admin-grant-list button:disabled { opacity: .35; cursor: default; }
.admin-password-panel { margin-top: 10px; }
.admin-password-panel form { display: grid; grid-template-columns: 1fr 1fr auto; gap: 12px; align-items: end; padding: 24px 26px; }
.admin-password-panel label { display: grid; gap: 8px; color: #7f8797; font-size: 10px; }
.admin-password-panel input { min-height: 42px; padding: 0 12px; border: 1px solid rgba(255,255,255,.14); border-radius: 8px; color: white; background: #070910; }
.admin-password-panel .form-status { grid-column: 1 / -1; margin: 0; }
.admin-footnote { padding: 30px 0 0; color: #59616e; font-size: 9px; text-align: center; }

/* Admin console v2 — explicit metrics, readable activity and refined controls */
.admin-authenticated .admin-header { display: none; }
.admin-authenticated .admin-console { padding-top: 48px; }
.admin-title-actions { align-items: stretch; gap: 10px; }
.admin-window-control { position: relative; min-width: 148px; display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto; align-items: center; padding: 8px 14px 7px; border: 1px solid rgba(255,255,255,.13); border-radius: 13px; background: rgba(9,11,18,.72); box-shadow: inset 0 1px 0 rgba(255,255,255,.035); backdrop-filter: blur(16px); }
.admin-window-control > span { grid-column: 1 / -1; color: #626a7b; font-size: 7px; font-weight: 760; letter-spacing: .12em; text-transform: uppercase; }
.admin-window-control select { grid-column: 1 / -1; grid-row: 2; min-height: 22px; padding: 0 24px 0 0; border: 0; appearance: none; color: #f1f2f5; background: transparent; font: inherit; font-size: 12px; font-weight: 620; cursor: pointer; }
.admin-window-control > i { z-index: 1; grid-column: 2; grid-row: 2; color: #858da0; font-size: 15px; font-style: normal; pointer-events: none; }
.admin-title-actions .admin-refresh,
.admin-title-actions .admin-logout { min-height: 54px; border-radius: 13px; }
.admin-title-actions .admin-refresh { min-width: 130px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; border-color: rgba(255,255,255,.22); color: white; background: rgba(255,255,255,.075); }
.admin-refresh > i { font-size: 17px; font-style: normal; line-height: 1; }
.admin-refresh[data-state="loading"] > i { animation: admin-refresh-spin .8s linear infinite; }
.admin-refresh[data-state="done"] { border-color: rgba(110,225,182,.35); color: #96e9c8; background: rgba(71,156,124,.1); }
.admin-refresh[data-state="error"] { border-color: rgba(255,115,130,.36); color: #ff9ba7; }
.admin-title-actions .admin-logout { padding: 0 18px; color: #7e8593; background: transparent; }
@keyframes admin-refresh-spin { to { transform: rotate(360deg); } }

.admin-metrics { gap: 12px; margin-bottom: 12px; }
.admin-metrics article { min-height: 162px; padding: 23px; border: 1px solid rgba(255,255,255,.075); border-radius: 16px; background: linear-gradient(145deg, rgba(16,19,30,.82), rgba(8,10,17,.72)); box-shadow: inset 0 1px 0 rgba(255,255,255,.025); }
.admin-metrics span { color: #8a92a4; font-size: 9px; font-weight: 720; letter-spacing: .09em; }
.admin-metrics strong { font-size: 43px; }
.admin-metrics small { max-width: 210px; color: #687081; font-size: 9px; line-height: 1.55; }

.admin-grid { gap: 12px; }
.admin-panel { border: 1px solid rgba(255,255,255,.075); border-radius: 16px; background: rgba(9,11,19,.78); box-shadow: inset 0 1px 0 rgba(255,255,255,.025); backdrop-filter: blur(18px); }
.admin-panel > header { min-height: 88px; padding: 21px 24px; }
.admin-panel header > i[data-state="loading"] b { animation: admin-live-pulse .7s ease-in-out infinite alternate; }
@keyframes admin-live-pulse { to { opacity: .25; transform: scale(.7); } }
.admin-table-wrap { max-height: 660px; }
.admin-events { font-size: 10px; }
.admin-events th { padding: 13px 17px; background: rgba(8,10,17,.96); color: #60697a; letter-spacing: .06em; }
.admin-events td { height: 58px; max-width: 260px; padding: 10px 17px; border-top-color: rgba(255,255,255,.045); color: #aeb4c0; }
.admin-events tbody tr { transition: background-color .18s ease; }
.admin-events tbody tr:hover { background: rgba(255,255,255,.028); }
.admin-events td:first-child { width: 116px; color: #707989; font-variant-numeric: tabular-nums; }
.admin-events .admin-event-action { min-width: 220px; display: flex; align-items: center; gap: 11px; }
.admin-event-action > i { width: 7px; height: 7px; flex: 0 0 auto; border-radius: 50%; background: #8091ff; box-shadow: 0 0 12px rgba(128,145,255,.35); }
.admin-event-action span { min-width: 0; display: grid; gap: 3px; }
.admin-event-action strong { overflow: hidden; color: #e4e6eb; font-size: 11px; font-weight: 590; text-overflow: ellipsis; white-space: nowrap; }
.admin-event-action small { color: #646d7e; font-size: 8px; letter-spacing: .04em; }
.admin-events tr[data-tone="resume"] .admin-event-action > i { background: #75dfbd; box-shadow: 0 0 12px rgba(117,223,189,.42); }
.admin-events tr[data-tone="auth"] .admin-event-action > i { background: #e0bc68; }
.admin-events tr[data-tone="warning"] .admin-event-action > i { background: #ff7889; }
.admin-events tr[data-tone="admin"] .admin-event-action > i { background: #a88cff; }
.admin-pages-panel > div > div { padding: 19px 0 14px; }
.admin-pages-panel span { color: #c0c5cf; font-size: 11px; }
.admin-pages-panel b { color: #70798a; font-size: 8px; }

.admin-grant-layout { gap: 34px; padding: 30px; }
.admin-field { gap: 9px !important; margin-top: 0 !important; }
.admin-field > span { color: #7f8798; font-size: 9px; font-weight: 700; letter-spacing: .06em; }
.admin-grant-layout .admin-field input,
.admin-password-panel .admin-field input { min-height: 54px; padding: 0 16px; border: 1px solid rgba(255,255,255,.13); border-radius: 12px; outline: none; color: #f2f3f5; background: rgba(5,7,12,.7); box-shadow: inset 0 1px 0 rgba(255,255,255,.025); transition: border-color .18s ease, background .18s ease, box-shadow .18s ease; }
.admin-grant-layout .admin-field input:hover,
.admin-password-panel .admin-field input:hover { border-color: rgba(255,255,255,.22); }
.admin-grant-layout .admin-field input:focus,
.admin-password-panel .admin-field input:focus { border-color: #8595ff; background: rgba(7,9,16,.92); box-shadow: 0 0 0 3px rgba(113,132,255,.12); }
.admin-form-row { gap: 12px; margin-top: 20px; }
.admin-number-field { min-height: 56px; display: grid; grid-template-columns: 42px minmax(0, 1fr) 42px; align-items: center; overflow: hidden; border: 1px solid rgba(255,255,255,.13); border-radius: 14px; background: rgba(5,7,12,.7); box-shadow: inset 0 1px 0 rgba(255,255,255,.025); transition: border-color .18s ease, background .18s ease, box-shadow .18s ease; }
.admin-number-field:hover { border-color: rgba(255,255,255,.22); }
.admin-number-field:focus-within { border-color: #8595ff; background: rgba(7,9,16,.92); box-shadow: 0 0 0 3px rgba(113,132,255,.12); }
.admin-number-field > button { width: 30px; height: 30px; display: grid; place-items: center; justify-self: center; padding: 0 0 2px; border: 0; border-radius: 0; color: #8e97a7; background: transparent; font-family: inherit; font-size: 19px; font-weight: 350; line-height: 1; cursor: pointer; transition: color .15s ease, transform .12s ease, opacity .15s ease; }
.admin-number-field > button:hover:not(:disabled) { color: #fff; background: transparent; }
.admin-number-field > button:active:not(:disabled) { transform: scale(.88); }
.admin-number-field > button:focus-visible { outline: 2px solid #91a0ff; outline-offset: 2px; }
.admin-number-field > button:disabled { opacity: .2; cursor: default; }
.admin-number-value { min-width: 0; display: flex; align-items: baseline; justify-content: center; gap: 6px; }
.admin-grant-layout .admin-number-value input { width: 3.2ch; min-height: 0; padding: 0; border: 0; border-radius: 0; outline: 0; color: #f4f5f7; background: transparent; box-shadow: none; font-size: 17px; font-weight: 560; line-height: 1; text-align: right; font-variant-numeric: tabular-nums; }
.admin-grant-layout .admin-number-value input:hover,
.admin-grant-layout .admin-number-value input:focus { border: 0; background: transparent; box-shadow: none; }
.admin-number-value i { color: #626c7d; font-size: 9px; font-style: normal; white-space: nowrap; }
.admin-number-value input::-webkit-inner-spin-button,
.admin-number-value input::-webkit-outer-spin-button { margin: 0; appearance: none; -webkit-appearance: none; }
.admin-number-value input[type="number"] { appearance: textfield; -moz-appearance: textfield; }
.admin-grant-layout .admin-scope-field { margin: 28px 0 24px; padding: 0; border: 0; }
.admin-scope-field legend { margin-bottom: 10px; padding: 0; color: #7f8798; font-size: 9px; font-weight: 700; letter-spacing: .06em; }
.admin-scope-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.admin-grant-layout .admin-scope-card { position: relative; min-height: 78px; display: flex; align-items: center; gap: 12px; margin: 0; padding: 14px; overflow: hidden; border: 1px solid rgba(255,255,255,.1); border-radius: 13px; background: rgba(255,255,255,.025); cursor: pointer; transition: border-color .18s ease, background .18s ease, transform .18s ease; }
.admin-scope-card:hover { border-color: rgba(255,255,255,.21); background: rgba(255,255,255,.04); transform: translateY(-1px); }
.admin-scope-card input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.admin-scope-card > i { width: 18px; height: 18px; flex: 0 0 auto; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.24); border-radius: 6px; background: rgba(0,0,0,.2); }
.admin-scope-card input:checked + i { border-color: #8797ff; background: #8797ff; }
.admin-scope-card input:checked + i::after { content: "✓"; color: #080a10; font-size: 11px; font-style: normal; font-weight: 900; }
.admin-scope-card:has(input:checked) { border-color: rgba(135,151,255,.32); background: rgba(106,123,225,.075); }
.admin-scope-card > span { min-width: 0; display: grid; gap: 5px; }
.admin-scope-card b { overflow: hidden; color: #d8dbe2; font-size: 10px; font-weight: 620; text-overflow: ellipsis; white-space: nowrap; }
.admin-scope-card small { color: #687182; font-size: 8px; }
.admin-primary-action { min-height: 48px; justify-content: space-between; padding: 0 17px; border-radius: 12px; }

.admin-password-panel form { gap: 14px; padding: 28px 30px 30px; }
.admin-password-panel .admin-field { display: grid; }
.admin-password-panel .admin-security-action { min-height: 54px; display: inline-flex; align-items: center; justify-content: space-between; gap: 24px; padding: 0 18px; border: 1px solid rgba(255,255,255,.2); border-radius: 12px; color: #e6e8ed; background: rgba(255,255,255,.06); cursor: pointer; }
.admin-password-panel .admin-security-action:hover { border-color: rgba(255,255,255,.34); background: rgba(255,255,255,.09); }

/* Privacy policy */
.privacy-content { padding: 110px 0 70px; }
.privacy-content h1 { max-width: 900px; margin: 28px 0 35px; color: white; font-size: clamp(58px, 9vw, 112px); font-weight: 550; line-height: .9; letter-spacing: -.065em; }
.privacy-lead { max-width: 820px; color: #a8aeba; font-size: 19px; line-height: 1.8; }
.privacy-content section { max-width: 820px; padding-top: 60px; }
.privacy-content h2 { color: white; font-size: 28px; font-weight: 550; }
.privacy-content section p { color: #858c99; font-size: 15px; line-height: 1.85; }

@media (max-width: 980px) {
  .admin-metrics { grid-template-columns: repeat(2, 1fr); }
  .admin-grid,
  .admin-grant-layout { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .privacy-notice { right: 16px; left: 16px; bottom: 16px; width: auto; grid-template-columns: 1fr auto; gap: 10px; }
  .privacy-notice p { grid-column: 1 / -1; }
  .admin-header { padding: 0 16px; }
  .admin-console { width: calc(100% - 28px); padding-top: 48px; }
  .admin-title { display: block; }
  .admin-title-actions { margin-top: 24px; overflow-x: auto; }
  .admin-metrics { grid-template-columns: 1fr 1fr; }
  .admin-metrics article { min-height: 125px; padding: 16px; }
  .admin-metrics strong { font-size: 31px; }
  .admin-form-row { grid-template-columns: 1fr; }
  .admin-scope-grid { grid-template-columns: 1fr; }
  .admin-password-panel form { grid-template-columns: 1fr; }
  .admin-grant-layout { padding: 18px; }
  .admin-events { min-width: 900px; }
  .privacy-content { padding-top: 75px; }
}

/* Visitor access flow v2 */
.access-simple::before { background: radial-gradient(circle at 74% 44%, rgba(90,108,220,.13), transparent 30rem), linear-gradient(90deg, rgba(3,4,9,.82), rgba(3,4,9,.38)), linear-gradient(0deg, rgba(3,4,9,.84), transparent 58%); }
.access-simple .simple-access-stage { width: min(1080px, calc(100% - 64px)); padding: 118px 0 72px; }
.access-gate { display: grid; grid-template-columns: minmax(0, 1fr) 460px; align-items: center; gap: clamp(64px, 9vw, 130px); }
.access-gate > * { min-width: 0; }
.access-gate-intro h1 { max-width: 560px; margin: 24px 0 22px; color: #fff; font-size: clamp(56px, 5vw, 76px); font-weight: 550; line-height: .92; letter-spacing: -.065em; white-space: nowrap; }
.access-gate-intro > p { max-width: 510px; margin: 0; color: #959ca9; font-size: 15px; line-height: 1.8; }
.access-trust-row { display: flex; flex-wrap: wrap; gap: 12px 24px; margin-top: 34px; }
.access-trust-row span { display: inline-flex; align-items: center; gap: 8px; color: #747d8c; font-size: 10px; }
.access-trust-row i { width: 5px; height: 5px; border-radius: 50%; background: #7b8fff; box-shadow: 0 0 12px rgba(123,143,255,.58); }
.access-code-card { margin: 0 !important; padding: 34px; border: 1px solid rgba(255,255,255,.13); border-radius: 22px; background: linear-gradient(150deg, rgba(18,21,34,.9), rgba(7,9,15,.84)); box-shadow: 0 28px 80px rgba(0,0,0,.34), inset 0 1px 0 rgba(255,255,255,.035); backdrop-filter: blur(22px); }
.access-code-card > header { display: flex; align-items: start; justify-content: space-between; gap: 20px; margin-bottom: 34px; }
.access-code-card > header span { color: #737c91; font-size: 8px; font-weight: 760; letter-spacing: .16em; }
.access-code-card > header h2 { margin: 9px 0 0; color: #f3f4f7; font-size: 25px; font-weight: 570; letter-spacing: -.035em; }
.access-code-card > header > b { padding: 7px 10px; border-radius: 100px; color: #8c94a3; background: rgba(255,255,255,.055); font-size: 9px; font-weight: 650; }
.simple-access-panel .access-code-card .field label { margin-bottom: 10px; color: #7e8798; font-size: 9px; }
.simple-access-panel .access-code-card .field input { min-height: 72px; padding: 0 18px; border-color: rgba(255,255,255,.14); border-radius: 15px; color: #f7f8fa; background: rgba(2,4,9,.64); font-family: var(--font-en, inherit); font-size: 30px; font-weight: 620; letter-spacing: .16em; text-align: center; font-variant-numeric: tabular-nums; caret-color: #9eabff; }
.simple-access-panel .access-code-card .field input::placeholder { color: #373e4b; opacity: 1; }
.simple-access-panel .access-code-card .field input:focus { border-color: rgba(145,160,255,.72); box-shadow: 0 0 0 4px rgba(117,135,255,.11), inset 0 1px 0 rgba(255,255,255,.04); }
.access-code-card .form-status { min-height: 31px; display: flex; align-items: center; margin: 8px 0; color: #7d8797; font-size: 11px; }
.access-code-card .form-status.error { color: #ff9ba7; }
.simple-access-panel .access-code-card .button { min-height: 58px; margin: 0; border: 0; border-radius: 15px; color: #090b11; background: #f4f5f7; box-shadow: none; transition: opacity .18s ease, transform .16s ease, background .18s ease; }
.simple-access-panel .access-code-card .button i { font-size: 18px; font-style: normal; }
.simple-access-panel .access-code-card .button:disabled { opacity: .24; cursor: not-allowed; }
.simple-access-panel .access-code-card.is-ready .button:not(:disabled):hover { background: #fff; transform: translateY(-2px); }
.access-code-card.is-loading .button i { width: 15px; height: 15px; border: 1.5px solid rgba(9,11,17,.25); border-top-color: #090b11; border-radius: 50%; font-size: 0; animation: admin-refresh-spin .7s linear infinite; }
.access-code-card.has-error .field input { border-color: rgba(255,110,128,.68); animation: access-shake .32s ease; }
@keyframes access-shake { 25% { transform: translateX(-4px); } 50% { transform: translateX(4px); } 75% { transform: translateX(-2px); } }
.access-code-card > footer { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 20px; color: #5f6877; font-size: 9px; }
.access-code-card > footer i { color: #7b8496; font-style: normal; }
.access-success { width: min(560px, 100%); margin: auto; text-align: center; }
.access-success-mark { width: 52px; height: 52px; display: grid; place-items: center; margin: 0 auto 26px; border: 1px solid rgba(127,231,191,.4); border-radius: 50%; color: #8ee8c5; background: rgba(74,159,126,.12); font-size: 19px; }
.access-success h1 { margin-top: 18px; }
.access-success .scope-list { display: grid; gap: 8px; margin: 34px 0; text-align: left; }
.access-success .scope { display: flex; justify-content: space-between; align-items: center; padding: 18px 20px; border: 1px solid rgba(255,255,255,.11); border-radius: 13px; background: rgba(9,12,20,.64); }
.access-success .scope strong { color: #e7e9ed; font-size: 12px; }
.access-success .scope span { color: #747d8c; font-size: 10px; }
.access-success > .actions .button { min-height: 54px; border-radius: 13px; }

/* Admin visitor authorization workbench */
.admin-grant-heading > p { max-width: 430px; margin: 0; color: #727b8b; font-size: 10px; line-height: 1.6; text-align: right; }
.admin-grants-panel { overflow: visible; }
.admin-grant-layout { grid-template-columns: minmax(0, 1.35fr) minmax(320px, .65fr); gap: 0; padding: 0; }
.admin-grant-builder { padding: 34px; }
.admin-form-section { display: flex; align-items: start; gap: 14px; margin: 34px 0 17px; }
.admin-form-section:first-child { margin-top: 0; }
.admin-step-index { width: 29px; height: 29px; flex: 0 0 auto; display: grid; place-items: center; border: 1px solid rgba(131,147,255,.3); border-radius: 9px; color: #9aa7ff; background: rgba(98,116,221,.08); font-size: 8px; font-weight: 730; }
.admin-form-section > div { display: grid; gap: 4px; }
.admin-form-section b { color: #dfe2e8; font-size: 12px; font-weight: 620; }
.admin-form-section small { color: #697283; font-size: 9px; line-height: 1.55; }
.admin-grant-builder .admin-form-row { margin-top: 0; }
.admin-grant-builder .admin-scope-field { margin: 0 0 24px; }
.admin-grant-builder .admin-scope-field > legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.admin-primary-action i { font-size: 17px; font-style: normal; }
.admin-primary-action[data-state="loading"] i { width: 14px; height: 14px; border: 1.5px solid rgba(8,10,16,.22); border-top-color: #080a10; border-radius: 50%; font-size: 0; animation: admin-refresh-spin .7s linear infinite; }
.admin-grant-delivery { min-height: 100%; display: grid; place-items: center; padding: 34px; border-left: 1px solid rgba(255,255,255,.07); background: radial-gradient(circle at 50% 35%, rgba(91,110,221,.12), transparent 18rem), rgba(4,6,11,.3); }
.admin-delivery-empty { max-width: 260px; text-align: center; }
.admin-delivery-empty > span { width: 42px; height: 42px; display: grid; place-items: center; margin: 0 auto 24px; border: 1px solid rgba(255,255,255,.1); border-radius: 13px; color: #646d7d; font-size: 9px; }
.admin-delivery-empty b { display: block; color: #cdd1d9; font-size: 14px; font-weight: 580; }
.admin-delivery-empty p { margin: 12px 0 22px; color: #697283; font-size: 10px; line-height: 1.7; }
.admin-delivery-empty small { color: #535c6b; font-size: 8px; letter-spacing: .1em; }
.admin-delivery-ready { width: min(100%, 340px); text-align: center; }
.admin-ready-state { display: inline-flex; align-items: center; gap: 8px; color: #8de4c2; font-size: 10px; }
.admin-ready-state i { width: 6px; height: 6px; border-radius: 50%; background: #7ee2bc; box-shadow: 0 0 14px rgba(126,226,188,.75); }
.admin-delivery-ready > p { margin: 24px 0 10px; color: #727c8d; font-size: 10px; }
.admin-delivery-ready code { display: block; margin: 0 0 26px; color: #fff; font-family: var(--font-en, monospace); font-size: clamp(29px, 3vw, 40px); font-weight: 650; letter-spacing: .13em; white-space: nowrap; }
.admin-delivery-ready > button { width: 100%; min-height: 52px; display: flex; align-items: center; justify-content: space-between; padding: 0 17px; border-color: rgba(255,255,255,.2); border-radius: 13px; color: #e9ebef; background: rgba(255,255,255,.07); }
.admin-delivery-ready > button[data-state="done"] { border-color: rgba(114,222,181,.35); color: #93e6c6; background: rgba(68,151,120,.1); }
.admin-delivery-ready > button i { font-size: 15px; font-style: normal; }
.admin-delivery-ready > small { display: block; margin-top: 18px; color: #535c6b; font-size: 8px; }
.admin-grant-list { padding: 0 34px 34px; }
.admin-grant-list > header { display: flex; align-items: end; justify-content: space-between; gap: 20px; padding: 30px 0 18px; border-top: 1px solid rgba(255,255,255,.07); }
.admin-grant-list > header span { color: #667086; font-size: 8px; font-weight: 720; letter-spacing: .14em; }
.admin-grant-list > header h3 { margin: 7px 0 0; color: #e3e5ea; font-size: 18px; font-weight: 570; }
.admin-grant-list > header > b { color: #697283; font-size: 9px; font-weight: 520; }
.admin-grant-items { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.admin-grant-items > article { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 18px; padding: 20px; border: 1px solid rgba(255,255,255,.075); border-radius: 14px; background: rgba(255,255,255,.022); }
.admin-grant-items > article[data-state="expired"], .admin-grant-items > article[data-state="revoked"] { opacity: .54; }
.admin-grant-items > article > div { min-width: 0; }
.admin-grant-items > article > div > header { display: flex; align-items: center; gap: 10px; }
.admin-grant-items > article > div > header > b { min-width: 0; overflow: hidden; color: #e7e9ed; font-size: 12px; font-weight: 620; text-overflow: ellipsis; white-space: nowrap; }
.admin-grant-items > article > div > header > span { flex: 0 0 auto; padding: 4px 7px; border-radius: 99px; color: #86dfbd; background: rgba(75,157,127,.1); font-size: 7px; }
.admin-grant-items > article[data-state="expired"] > div > header > span, .admin-grant-items > article[data-state="revoked"] > div > header > span { color: #818999; background: rgba(255,255,255,.06); }
.admin-grant-items > article > div > div:nth-child(2) { display: grid; grid-template-columns: 1.5fr .8fr .8fr; gap: 12px; margin-top: 18px; }
.admin-grant-items > article > div > div:nth-child(2) > span { min-width: 0; display: grid; gap: 4px; }
.admin-grant-items > article > div > div:nth-child(2) small { color: #596273; font-size: 7px; }
.admin-grant-items > article > div > div:nth-child(2) b { overflow: hidden; color: #aeb4bf; font-size: 9px; font-weight: 520; text-overflow: ellipsis; white-space: nowrap; }
.admin-grant-items > article > div > div:nth-child(3) { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.admin-grant-items > article > div > div:nth-child(3) span { margin: 0; padding: 5px 8px; border-radius: 6px; color: #747e91; background: rgba(255,255,255,.04); font-size: 7px; }
.admin-grant-items > article > button { min-height: 32px; padding: 0 9px; border: 0; color: #737c8c; background: transparent; font-size: 8px; white-space: nowrap; }
.admin-grant-items > article > button:hover:not(:disabled) { color: #ff9ba7; }
.admin-grant-items > article > button[data-confirm="true"] { color: #ff9ba7; background: rgba(198,68,86,.08); }

@media (max-width: 980px) {
  .access-simple .simple-access-stage { width: min(760px, calc(100% - 48px)); }
  .access-gate { grid-template-columns: 1fr; gap: 48px; }
  .access-gate-intro { max-width: 620px; }
  .access-code-card { width: min(100%, 520px); }
  .admin-grant-layout { grid-template-columns: minmax(0, 1fr); }
  .admin-grant-builder { min-width: 0; }
  .admin-grant-delivery { min-height: 300px; border-top: 1px solid rgba(255,255,255,.07); border-left: 0; }
  .admin-grant-items { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .access-simple .simple-access-stage { width: calc(100% - 32px); align-items: start; padding: 112px 0 40px; }
  .access-gate { gap: 34px; }
  .access-gate-intro, .access-code-card { width: 100%; min-width: 0; }
  .access-gate-intro h1 { max-width: 100%; margin: 18px 0 16px; font-size: clamp(40px, 12vw, 50px); line-height: .96; }
  .access-gate-intro > p { font-size: 13px; line-height: 1.7; }
  .access-trust-row { gap: 10px 16px; margin-top: 22px; }
  .access-code-card { padding: 22px; border-radius: 18px; }
  .access-code-card > header { margin-bottom: 26px; }
  .access-code-card > header h2 { font-size: 22px; }
  .simple-access-panel .access-code-card .field input { min-height: 66px; font-size: 26px; letter-spacing: .12em; }
  .simple-access-panel .access-code-card .button { min-height: 56px; }
  .access-code-card > footer { line-height: 1.5; text-align: center; }
  .access-success h1 { font-size: 48px; }
  .admin-grant-heading { align-items: start !important; }
  .admin-grant-heading > p { max-width: 160px; font-size: 8px; text-align: right; }
  .admin-grant-builder { padding: 22px 18px; }
  .admin-form-section { margin-top: 30px; }
  .admin-grant-builder .admin-form-row { gap: 14px; }
  .admin-grant-builder .admin-scope-grid { gap: 8px; }
  .admin-grant-layout .admin-scope-card { min-height: 66px; }
  .admin-grant-delivery { min-height: 270px; padding: 28px 20px; }
  .admin-delivery-ready code { font-size: 31px; }
  .admin-grant-list { padding: 0 18px 22px; }
  .admin-grant-list > header { align-items: center; }
  .admin-grant-items > article { grid-template-columns: 1fr; padding: 17px; }
  .admin-grant-items > article > button { justify-self: start; padding: 0; }
  .admin-grant-items > article > div > div:nth-child(2) { grid-template-columns: 1fr 1fr; }
  .admin-grant-items > article > div > div:nth-child(2) > span:first-child { grid-column: 1 / -1; }
}

/* Admin mobile control pass */
.admin-title { position: relative; }
.admin-corner-logout { position: absolute; top: 0; right: 0; min-height: 36px; padding: 0 5px; border: 0; color: #78808f; background: transparent; font-size: 9px; cursor: pointer; transition: color .18s ease; }
.admin-corner-logout:hover, .admin-corner-logout:focus-visible { color: #fff; }
.admin-title-actions { margin-right: 72px; overflow: visible; }
.admin-window-control { position: relative; min-width: 164px; display: block; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; backdrop-filter: none; }
.admin-window-control > button[data-admin-window-trigger] { width: 100%; min-height: 56px; display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto; align-items: center; padding: 9px 14px 8px; border: 1px solid rgba(255,255,255,.13); border-radius: 14px; color: #eff1f5; background: rgba(9,11,18,.82); box-shadow: inset 0 1px 0 rgba(255,255,255,.035); text-align: left; cursor: pointer; }
.admin-window-control > button > span { grid-column: 1 / -1; color: #626b7c; font-size: 7px; font-weight: 760; letter-spacing: .12em; }
.admin-window-control > button > strong { grid-column: 1; grid-row: 2; margin-top: 2px; color: #f0f2f5; font-size: 11px; font-weight: 620; }
.admin-window-control > button > i { grid-column: 2; grid-row: 2; color: #818a9c; font-size: 14px; font-style: normal; transition: transform .18s ease; }
.admin-window-control.is-open > button > i { transform: rotate(180deg); }
.admin-window-menu { position: absolute; z-index: 50; top: calc(100% + 8px); left: 0; width: 100%; padding: 6px; border: 1px solid rgba(255,255,255,.14); border-radius: 14px; background: rgba(8,10,17,.98); box-shadow: 0 20px 55px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.04); backdrop-filter: blur(22px); }
.admin-window-menu > button { width: 100%; min-height: 40px; display: flex; align-items: center; justify-content: space-between; padding: 0 10px; border: 0; border-radius: 9px; color: #858e9f; background: transparent; font-size: 10px; text-align: left; cursor: pointer; }
.admin-window-menu > button:hover, .admin-window-menu > button:focus-visible { color: #fff; background: rgba(255,255,255,.055); }
.admin-window-menu > button i { opacity: 0; color: #91e3c3; font-size: 10px; font-style: normal; }
.admin-window-menu > button[aria-selected="true"] { color: #e9ebef; background: rgba(112,130,240,.1); }
.admin-window-menu > button[aria-selected="true"] i { opacity: 1; }
.admin-title-actions .admin-refresh { min-width: 132px; min-height: 56px; gap: 10px; border-radius: 14px; }
.admin-sync-icon { position: relative; width: 18px; height: 18px; flex: 0 0 auto; display: inline-block; }
.admin-sync-icon::before { content: ""; position: absolute; inset: 2px; border: 1.5px solid currentColor; border-left-color: transparent; border-radius: 50%; transform: rotate(-28deg); }
.admin-sync-icon::after { content: ""; position: absolute; top: 1px; right: 1px; width: 5px; height: 5px; border-top: 1.5px solid currentColor; border-right: 1.5px solid currentColor; transform: rotate(17deg); }
.admin-refresh[data-state="loading"] .admin-sync-icon { animation: admin-refresh-spin .75s linear infinite; }
.admin-refresh[data-state="done"] .admin-sync-icon::before { inset: 2px 4px 4px 5px; border: 0; border-right: 1.7px solid currentColor; border-bottom: 1.7px solid currentColor; border-radius: 0; transform: rotate(43deg); }
.admin-refresh[data-state="done"] .admin-sync-icon::after { display: none; }
.admin-refresh[data-state="error"] .admin-sync-icon::before { content: "!"; inset: 0; display: grid; place-items: center; border: 1px solid currentColor; border-radius: 50%; font-size: 11px; transform: none; }
.admin-refresh[data-state="error"] .admin-sync-icon::after { display: none; }
.admin-pages-panel .admin-page-bar { width: 100%; height: 3px; display: block; margin-top: 13px; overflow: hidden; border-radius: 99px; background: rgba(255,255,255,.055); }
.admin-pages-panel .admin-page-bar > i { width: 100%; height: 100%; display: block; margin: 0; border-radius: inherit; background: linear-gradient(90deg,#7488ff,#76e2c1); transform: scaleX(var(--page-scale, 0)); transform-origin: left center; transition: transform .35s ease; }

@media (max-width: 640px) {
  .admin-authenticated .admin-console { width: calc(100% - 24px); padding-top: 26px; }
  .admin-title { margin-bottom: 26px; }
  .admin-title h1 { margin-top: 11px; font-size: 49px; }
  .admin-title p { max-width: calc(100% - 64px); line-height: 1.5; }
  .admin-corner-logout { top: 0; right: 0; min-height: 34px; }
  .admin-title-actions { display: grid; grid-template-columns: minmax(0, 1fr) 128px; gap: 8px; margin: 22px 0 0; overflow: visible; }
  .admin-window-control { min-width: 0; }
  .admin-window-control > button[data-admin-window-trigger], .admin-title-actions .admin-refresh { min-height: 54px; }
  .admin-title-actions .admin-refresh { min-width: 0; padding: 0 12px; }
  .admin-metrics { grid-template-columns: repeat(5, minmax(145px, 1fr)); gap: 8px; margin-right: -12px; padding-right: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .admin-metrics::-webkit-scrollbar { display: none; }
  .admin-metrics article { min-height: 122px; scroll-snap-align: start; }
  .admin-pages-panel > div { padding-right: 17px; padding-left: 17px; }
  .admin-pages-panel span { max-width: 58%; }
  .admin-pages-panel b { right: 0; }
  .admin-grant-heading > p { display: none; }
  .admin-grants-panel { overflow: hidden; }
  .admin-grant-layout { grid-template-columns: minmax(0, 1fr); }
  .admin-grant-builder { padding: 20px 16px 22px; }
  .admin-form-section { gap: 10px; margin: 26px 0 14px; }
  .admin-form-section:first-child { margin-top: 0; }
  .admin-step-index { width: 26px; height: 26px; border-radius: 8px; }
  .admin-form-section b { font-size: 11px; }
  .admin-form-section small { font-size: 8px; }
  .admin-grant-builder .admin-form-row { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
  .admin-grant-builder .admin-form-row .admin-field { min-width: 0; }
  .admin-grant-builder .admin-form-row .admin-field > span { overflow: hidden; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
  .admin-number-field { min-height: 54px; grid-template-columns: 27px minmax(0, 1fr) 27px; border-radius: 12px; }
  .admin-number-field > button { width: 24px; height: 32px; font-size: 17px; }
  .admin-number-value { gap: 3px; }
  .admin-grant-layout .admin-number-value input { width: 2.3ch; font-size: 14px; }
  .admin-number-value i { font-size: 7px; }
  .admin-grant-builder .admin-scope-grid { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(210px, 72%); grid-template-columns: none; gap: 8px; margin-right: -16px; padding-right: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .admin-grant-builder .admin-scope-grid::-webkit-scrollbar { display: none; }
  .admin-grant-layout .admin-scope-card { min-height: 68px; scroll-snap-align: start; }
  .admin-grant-delivery { min-height: 158px; padding: 22px 18px; }
  .admin-grant-delivery.is-ready { min-height: 245px; }
  .admin-delivery-empty { max-width: 290px; display: grid; grid-template-columns: 38px 1fr; align-items: center; gap: 3px 14px; text-align: left; }
  .admin-delivery-empty > span { width: 38px; height: 38px; grid-row: 1 / 4; margin: 0; }
  .admin-delivery-empty p { margin: 2px 0 0; font-size: 9px; }
  .admin-delivery-empty small { margin-top: 3px; }
  .admin-grant-list { padding-right: 0; }
  .admin-grant-list > header { padding-right: 18px; }
  .admin-grant-items { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(285px, 86vw); grid-template-columns: none; gap: 9px; padding-right: 18px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .admin-grant-items::-webkit-scrollbar { display: none; }
  .admin-grant-items > article { min-height: 210px; align-content: space-between; scroll-snap-align: start; }
}

/* Stable refresh states and single-axis activity scrolling */
.admin-sync-icon::before, .admin-sync-icon::after { display: none !important; }
.admin-sync-icon svg { width: 100%; height: 100%; display: block; overflow: visible; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.admin-sync-icon .sync-check, .admin-sync-icon .sync-error { display: none; }
.admin-refresh[data-state="loading"] .admin-sync-icon { animation: admin-refresh-spin .8s linear infinite; }
.admin-refresh[data-state="done"] .sync-refresh, .admin-refresh[data-state="error"] .sync-refresh { display: none; }
.admin-refresh[data-state="done"] .sync-check, .admin-refresh[data-state="error"] .sync-error { display: block; }
.admin-refresh[data-state="done"] .admin-sync-icon, .admin-refresh[data-state="error"] .admin-sync-icon { animation: none; }
.admin-table-wrap { overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; touch-action: pan-y; }

@media (max-width: 640px) {
  .admin-table-wrap { max-height: 620px; overflow-x: hidden; overflow-y: auto; }
  .admin-events { min-width: 0; width: 100%; display: block; }
  .admin-events thead { display: none; }
  .admin-events tbody { display: grid; }
  .admin-events tbody tr { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px 18px; padding: 18px 16px; border-top: 1px solid rgba(255,255,255,.055); }
  .admin-events tbody tr:first-child { border-top: 0; }
  .admin-events td { width: auto !important; max-width: none; height: auto; display: grid; gap: 5px; padding: 0; overflow: visible; border: 0; color: #a9b0bc; font-size: 9px; line-height: 1.45; text-overflow: clip; white-space: normal; }
  .admin-events td::before { content: attr(data-label); color: #586273; font-size: 7px; font-weight: 680; letter-spacing: .08em; }
  .admin-events td.admin-event-action { grid-column: 1 / -1; grid-template-columns: 7px minmax(0, 1fr); align-items: center; gap: 0 10px; order: -1; }
  .admin-events td.admin-event-action::before { grid-column: 1 / -1; margin-bottom: 2px; }
  .admin-events .admin-event-action > i { grid-column: 1; }
  .admin-events .admin-event-action > span { grid-column: 2; }
  .admin-event-action strong { font-size: 11px; white-space: normal; }
  .admin-event-action small { font-size: 7px; }
}

/* Mobile dashboard fixed panels */
.admin-grant-records-panel { margin-top: 10px; overflow: hidden; }
.admin-grant-records-panel .admin-grant-list { padding-top: 0; }
.admin-grant-records-panel .admin-grant-items { max-height: 520px; padding-right: 6px; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: rgba(139,151,177,.28) transparent; }
.admin-grant-records-panel .admin-grant-items::-webkit-scrollbar { width: 4px; }
.admin-grant-records-panel .admin-grant-items::-webkit-scrollbar-thumb { border-radius: 99px; background: rgba(139,151,177,.28); }

@media (max-width: 640px) {
  .admin-title-actions { width: 100%; grid-template-columns: minmax(0, 1fr) 108px; }
  .admin-title-actions .admin-refresh { width: 108px; min-width: 0; padding: 0 9px; gap: 7px; }
  .admin-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; margin-right: 0; padding: 8px; overflow: visible; border: 1px solid rgba(255,255,255,.075); border-radius: 16px; background: rgba(9,11,19,.78); box-shadow: inset 0 1px 0 rgba(255,255,255,.025); }
  .admin-metrics article { min-width: 0; min-height: 112px; padding: 14px; border: 0; border-radius: 11px; background: rgba(255,255,255,.026); box-shadow: none; scroll-snap-align: none; }
  .admin-metrics article:nth-child(5) { min-height: 98px; grid-column: 1 / -1; }
  .admin-metrics strong { font-size: 30px; }
  .admin-metrics small { font-size: 8px; }
  .admin-grant-builder .admin-form-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 8px; }
  .admin-grant-builder .admin-form-row .admin-field:first-child { grid-column: 1 / -1; }
  .admin-grant-builder .admin-form-row .admin-field > span { overflow: visible; text-overflow: clip; white-space: normal; }
  .admin-number-field { width: 100%; grid-template-columns: 32px minmax(0, 1fr) 32px; }
  .admin-number-field > button { width: 28px; }
  .admin-grant-layout .admin-number-value input { width: 3ch; }
  .admin-grant-builder .admin-scope-grid { display: grid; grid-auto-flow: row; grid-auto-columns: auto; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-right: 0; padding-right: 0; overflow: visible; scroll-snap-type: none; }
  .admin-grant-builder .admin-scope-grid .admin-scope-card { min-width: 0; width: 100%; padding: 12px 10px; scroll-snap-align: none; }
  .admin-grant-builder .admin-scope-grid .admin-scope-card:nth-child(3) { grid-column: 1 / -1; }
  .admin-grant-layout .admin-scope-card > span { min-width: 0; }
  .admin-grant-layout .admin-scope-card b { overflow: visible; font-size: 9px; text-overflow: clip; white-space: normal; }
  .admin-grant-layout .admin-scope-card small { font-size: 7px; }
  .admin-grant-records-panel .admin-grant-list { padding: 0 16px 18px; }
  .admin-grant-records-panel .admin-grant-list > header { padding-right: 0; }
  .admin-grant-records-panel .admin-grant-items { max-height: 480px; display: grid; grid-auto-flow: row; grid-auto-columns: auto; grid-template-columns: minmax(0, 1fr); gap: 8px; padding: 0 4px 0 0; overflow-x: hidden; overflow-y: auto; scroll-snap-type: none; touch-action: pan-y; }
  .admin-grant-records-panel .admin-grant-items > article { width: 100%; min-width: 0; min-height: 0; grid-template-columns: minmax(0, 1fr); padding: 16px; scroll-snap-align: none; }
  .admin-grant-records-panel .admin-grant-items > article > button { justify-self: start; }
}

/* Keep the destructive record action visible without consuming a content row. */
.admin-grant-records-panel .admin-grant-items > article { position: relative; grid-template-columns: minmax(0, 1fr); }
.admin-grant-records-panel .admin-grant-items > article > div > header { padding-right: 88px; }
.admin-grant-records-panel .admin-grant-items > article > button {
  position: absolute;
  top: 12px;
  right: 10px;
  min-height: 30px;
  padding: 0 8px;
}

/* Visitor access is a single-screen gate, not a scrolling document. */
body.access-simple { height: 100svh; min-height: 100svh; overflow: hidden; }
.access-simple .simple-access-stage {
  height: 100svh;
  min-height: 0;
  box-sizing: border-box;
  padding-top: clamp(86px, 11vh, 112px);
  padding-bottom: clamp(28px, 7vh, 58px);
}

@media (max-width: 980px) {
  .access-simple .access-gate { gap: clamp(24px, 4.5vh, 38px); }
}

@media (max-width: 640px) {
  .access-simple .simple-access-stage { align-items: center; padding: 72px 0 18px; }
  .access-simple .access-gate { gap: clamp(18px, 3vh, 26px); }
  .access-simple .access-gate-intro h1 { margin: 14px 0 12px; font-size: clamp(38px, 11vw, 46px); }
  .access-simple .access-gate-intro > p { font-size: 12px; line-height: 1.62; }
  .access-simple .access-code-card { padding: 20px; }
  .access-simple .access-code-card > header { margin-bottom: 20px; }
  .access-simple .simple-access-panel .access-code-card .field input { min-height: 62px; }
  .access-simple .access-code-card .form-status { min-height: 25px; margin: 6px 0; }
  .access-simple .simple-access-panel .access-code-card .button { min-height: 54px; }
}

@media (max-height: 680px) and (max-width: 980px) {
  .access-simple .simple-access-stage { padding-top: 64px; padding-bottom: 12px; }
  .access-simple .access-gate { gap: 14px; }
  .access-simple .access-gate-intro h1 { margin-top: 10px; margin-bottom: 8px; font-size: 38px; }
  .access-simple .access-gate-intro > p { font-size: 11px; line-height: 1.5; }
  .access-simple .access-code-card { padding: 16px 18px; }
  .access-simple .access-code-card > header { margin-bottom: 14px; }
  .access-simple .simple-access-panel .access-code-card .field input { min-height: 56px; }
  .access-simple .access-code-card .form-status { min-height: 21px; margin: 4px 0; }
  .access-simple .simple-access-panel .access-code-card .button { min-height: 50px; }
}

/* Protected PDF resume viewer */
.resume-viewer-page { height: 100svh; min-height: 100svh; overflow: hidden; color: #eef0f4; background: #05060a; }
.resume-viewer-header { height: 66px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; padding: 0 28px; border-bottom: 1px solid rgba(255,255,255,.1); background: rgba(6,8,13,.96); }
.resume-viewer-header > a { color: #b3b8c2; font-size: 11px; text-decoration: none; }
.resume-viewer-actions { justify-self: end; display: flex; align-items: center; gap: 14px; }
.resume-viewer-actions > a { color: #f2f3f5; font-size: 11px; text-decoration: none; }
.resume-viewer-header > a:hover, .resume-viewer-header > a:focus-visible { color: #fff; }
.resume-viewer-header > div:not(.resume-viewer-actions) { display: flex; align-items: center; gap: 12px; }
.resume-viewer-header > div:not(.resume-viewer-actions) span { color: #fff; font-size: 12px; font-weight: 650; }
.resume-viewer-header > div:not(.resume-viewer-actions) i { color: #697284; font-size: 8px; font-style: normal; letter-spacing: .14em; }
.resume-viewer-main { height: calc(100svh - 66px); padding: 0; overflow: hidden; background: #14161d; }
.resume-pdf-document { width: 100%; height: 100%; display: block; border: 0; background: #fff; }
.resume-pdf-fallback { height: 100%; display: block; overflow: auto; background: #14161d; }
.resume-pdf-fallback img { width: min(1040px, 100%); height: auto; display: block; margin: 18px auto; background: #fff; box-shadow: 0 18px 70px rgba(0,0,0,.38); }
.admin-grant-builder .admin-scope-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* Application copy and private resume access, kept inside the owner console. */
.admin-outreach-panel { margin-bottom: 12px; }
.admin-outreach-panel > header > p { max-width: 430px; margin: 0; color: #727b8b; font-size: 10px; line-height: 1.6; text-align: right; }
.admin-outreach-layout { display: grid; grid-template-columns: minmax(0, 1.32fr) minmax(320px, .68fr); }
.admin-outreach-builder { min-width: 0; padding: 30px; }
.admin-outreach-fields { display: grid; grid-template-columns: .72fr 1.28fr; gap: 12px; }
.admin-outreach-builder .admin-field { display: grid; }
.admin-outreach-builder .admin-field input { min-height: 52px; padding: 0 15px; border: 1px solid rgba(255,255,255,.13); border-radius: 12px; outline: 0; color: #f2f3f5; background: rgba(5,7,12,.7); font: inherit; font-size: 13px; box-shadow: inset 0 1px 0 rgba(255,255,255,.025); }
.admin-outreach-builder .admin-field input:focus,
.admin-outreach-message textarea:focus { border-color: #8595ff; box-shadow: 0 0 0 3px rgba(113,132,255,.12); }
.admin-outreach-types { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 24px 0; padding: 0; border: 0; }
.admin-outreach-types legend { width: 100%; margin-bottom: 9px; padding: 0; color: #7f8798; font-size: 9px; font-weight: 700; letter-spacing: .06em; }
.admin-outreach-types label { position: relative; min-width: 0; margin: 0; cursor: pointer; }
.admin-outreach-types input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.admin-outreach-types span { min-height: 43px; display: grid; place-items: center; padding: 0 10px; border: 1px solid rgba(255,255,255,.09); border-radius: 11px; color: #747d8e; background: rgba(255,255,255,.022); font-size: 9px; font-weight: 620; text-align: center; transition: color .18s ease, border-color .18s ease, background .18s ease; }
.admin-outreach-types label:hover span { color: #c8cdd6; border-color: rgba(255,255,255,.2); }
.admin-outreach-types input:checked + span { color: #eef0f5; border-color: rgba(128,146,255,.42); background: rgba(105,122,225,.1); }
.admin-outreach-message { display: grid; gap: 9px; color: #7f8798; font-size: 9px; font-weight: 700; letter-spacing: .06em; }
.admin-outreach-message textarea { width: 100%; min-height: 166px; resize: vertical; padding: 17px 18px; border: 1px solid rgba(255,255,255,.13); border-radius: 14px; outline: 0; color: #dfe2e8; background: rgba(5,7,12,.72); font-family: inherit; font-size: 13px; line-height: 1.85; box-shadow: inset 0 1px 0 rgba(255,255,255,.025); }
.admin-outreach-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.admin-outreach-actions > button { min-height: 44px; border-radius: 11px; color: #9ca4b2; background: rgba(255,255,255,.035); }
.admin-outreach-actions > button:first-child { color: #0a0b10; border-color: rgba(255,255,255,.9); background: #f2f3f5; }
.admin-outreach-delivery { min-width: 0; display: flex; flex-direction: column; padding: 31px; border-left: 1px solid rgba(255,255,255,.07); background: radial-gradient(circle at 50% 16%, rgba(91,110,221,.13), transparent 16rem), rgba(4,6,11,.28); }
.admin-outreach-index { color: #7180e6; font-size: 8px; font-weight: 760; letter-spacing: .15em; }
.admin-outreach-delivery h3 { margin: 18px 0 10px; color: #f0f1f4; font-size: 23px; font-weight: 570; letter-spacing: -.025em; }
.admin-outreach-delivery > p:not(.form-status) { margin: 0; color: #747d8d; font-size: 10px; line-height: 1.75; }
.admin-outreach-links { display: grid; gap: 1px; margin: 24px 0; }
.admin-outreach-links > a { min-width: 0; display: grid; grid-template-columns: 82px minmax(0, 1fr) auto; align-items: center; gap: 10px; min-height: 48px; padding: 0 3px; border-bottom: 1px solid rgba(255,255,255,.065); text-decoration: none; }
.admin-outreach-links > a > span { color: #596273; font-size: 8px; }
.admin-outreach-links > a > b { overflow: hidden; color: #adb4c0; font-size: 9px; font-weight: 560; text-overflow: ellipsis; white-space: nowrap; }
.admin-outreach-links > a > i { color: #7b88e4; font-size: 13px; font-style: normal; }
.admin-outreach-primary { width: 100%; min-height: 50px !important; display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding: 0 16px !important; border-color: rgba(255,255,255,.88) !important; border-radius: 12px !important; color: #090a0e !important; background: #f0f1f4 !important; }
.admin-outreach-primary[data-state="loading"] { color: #7f8795 !important; background: #c9cdd5 !important; }
.admin-outreach-primary > i { font-style: normal; font-size: 15px; }
.admin-outreach-delivery .form-status { min-height: 18px; margin: 12px 0 0; color: #82dcb9; font-size: 9px; line-height: 1.55; }
.admin-outreach-delivery .form-status.error { color: #ff98a5; }

@media (max-width: 980px) {
  .admin-outreach-layout { grid-template-columns: 1fr; }
  .admin-outreach-delivery { min-height: 330px; border-top: 1px solid rgba(255,255,255,.07); border-left: 0; }
}

@media (max-width: 640px) {
  .resume-viewer-header { height: 58px; grid-template-columns: 1fr auto; padding: 0 16px; }
  .resume-viewer-header > div:not(.resume-viewer-actions) { display: none; }
  .resume-viewer-actions { gap: 10px; }
  .resume-viewer-actions > a { font-size: 9px; }
  .resume-viewer-actions .visitor-session > summary span { display: none; }
  .resume-viewer-main { height: calc(100svh - 58px); padding: 0; }
  .admin-grant-builder .admin-scope-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-grant-builder .admin-scope-grid .admin-scope-card:nth-child(3) { grid-column: auto; }
  .admin-outreach-panel > header > p { display: none; }
  .admin-outreach-builder { padding: 20px 16px; }
  .admin-outreach-fields { grid-template-columns: 1fr; gap: 10px; }
  .admin-outreach-builder .admin-field input { min-height: 50px; font-size: 16px; }
  .admin-outreach-types { grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 22px 0; }
  .admin-outreach-types span { min-height: 46px; padding: 0 7px; font-size: 8px; }
  .admin-outreach-message textarea { min-height: 210px; padding: 15px; font-size: 16px; line-height: 1.7; }
  .admin-outreach-actions { grid-template-columns: 1fr; }
  .admin-outreach-actions > button { min-height: 48px; }
  .admin-outreach-delivery { min-height: 0; padding: 24px 18px; }
  .admin-outreach-delivery h3 { font-size: 21px; }
  .admin-outreach-links { margin: 19px 0 22px; }
  .admin-outreach-links > a { grid-template-columns: 68px minmax(0, 1fr) auto; min-height: 46px; }
  .admin-outreach-primary { margin-top: 0; }
}

/* Final view isolation overrides must remain after legacy admin controls. */
.admin-view-applications .admin-title-actions .admin-window-control,
.admin-view-applications .admin-title-actions .admin-refresh { display: none !important; }
.admin-view-monitor .admin-application-panel,
.admin-view-monitor .admin-application-records-panel,
.admin-view-applications .admin-metrics,
.admin-view-applications .admin-grid,
.admin-view-applications .admin-grants-panel,
.admin-view-applications .admin-grant-records-panel,
.admin-view-applications .admin-password-panel,
.admin-view-applications .admin-footnote { display: none !important; }

/* Application workspace v2: source first, editable result second. */
.admin-view-applications .admin-title { min-height: 190px; }
.admin-view-applications .admin-application-panel > header { padding: 24px 28px; }
.admin-view-applications .admin-application-layout { grid-template-columns: minmax(330px, .72fr) minmax(520px, 1.28fr); }
.admin-view-applications .admin-application-builder { display: flex; flex-direction: column; padding: 32px; }
.admin-application-source-url { display: grid; gap: 10px; }
.admin-application-source-url > span { color: #9098a7; font-size: 9px; font-weight: 720; letter-spacing: .06em; }
.admin-application-source-url input { min-height: 64px; padding: 0 18px; border-color: rgba(255,255,255,.17); border-radius: 14px; font-size: 14px; }
.admin-source-divider { position: relative; height: 54px; display: grid; place-items: center; color: #586170; font-size: 8px; }
.admin-source-divider::before { content: ''; position: absolute; right: 0; left: 0; height: 1px; background: rgba(255,255,255,.065); }
.admin-source-divider span { position: relative; padding: 0 12px; background: #090b11; }
.admin-view-applications .admin-application-upload-primary { display: grid; grid-template-columns: 1fr auto; padding: 22px; border: 1px dashed rgba(139,151,231,.32); border-radius: 14px; background: rgba(92,109,212,.045); }
.admin-application-upload-primary > div:first-child > span { color: #c9ced7; font-size: 11px; }
.admin-application-upload-primary > div:first-child small { color: #6e7786; font-size: 9px; }
.admin-application-upload-primary > label span { min-height: 42px; padding: 0 16px; border-color: rgba(255,255,255,.15); background: rgba(255,255,255,.035); }
.admin-application-manual { margin: 18px 0; }
.admin-application-manual summary,
.admin-parsed-jd summary,
.admin-match-detail summary { color: #727c8c; font-size: 9px; cursor: pointer; list-style: none; }
.admin-application-manual summary::-webkit-details-marker,
.admin-parsed-jd summary::-webkit-details-marker,
.admin-match-detail summary::-webkit-details-marker { display: none; }
.admin-application-manual summary::after,
.admin-parsed-jd summary::after,
.admin-match-detail summary::after { content: '+'; float: right; color: #7182ef; font-size: 13px; }
.admin-application-manual[open] summary::after,
.admin-parsed-jd[open] summary::after,
.admin-match-detail[open] summary::after { content: '−'; }
.admin-application-manual label { display: grid; gap: 8px; margin-top: 12px; }
.admin-application-manual label > span { color: #697281; font-size: 8px; }
.admin-application-manual textarea { width: 100%; min-height: 150px; padding: 14px; resize: vertical; border: 1px solid rgba(255,255,255,.12); border-radius: 12px; outline: 0; color: #e6e8ed; background: #05070b; font: inherit; font-size: 12px; line-height: 1.7; }
.admin-view-applications .admin-application-analyze { min-height: 56px; margin-top: 14px; }
.admin-application-submit-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 14px; }
.admin-view-applications .admin-application-submit-grid .admin-application-analyze { width: 100%; margin-top: 0; }
.admin-view-applications .admin-application-parse-only { color: #cbd0da; background: #171b24; box-shadow: inset 0 0 0 1px rgba(255,255,255,.09); }
.admin-view-applications .admin-application-analysis { min-height: 660px; padding: 32px 36px; }
.admin-view-applications .admin-application-empty { min-height: 570px; align-items: center; text-align: center; }
.admin-view-applications .admin-application-empty h3 { max-width: 420px; font-size: 34px; }
.admin-view-applications .admin-application-empty p { max-width: 410px; }
.admin-view-applications .admin-match-heading { grid-template-columns: 128px minmax(0, 1fr); }
.admin-parsed-job { display: grid; grid-template-columns: .8fr 1.2fr; gap: 10px; margin: 24px 0 10px; }
.admin-parsed-job label { display: grid; gap: 8px; }
.admin-parsed-job label > span { color: #747d8c; font-size: 8px; font-weight: 700; }
.admin-parsed-job input,
.admin-parsed-jd textarea { width: 100%; border: 1px solid rgba(255,255,255,.12); border-radius: 10px; outline: 0; color: #e7e9ee; background: rgba(3,5,9,.68); font-family: inherit; }
.admin-parsed-job input { min-height: 46px; padding: 0 13px; font-size: 12px; }
.admin-parsed-job input:focus,
.admin-parsed-jd textarea:focus { border-color: #7e90ff; box-shadow: 0 0 0 3px rgba(113,132,255,.1); }
.admin-parsed-jd { margin-bottom: 20px; padding: 13px 0 17px; border-bottom: 1px solid rgba(255,255,255,.065); }
.admin-parsed-jd textarea { min-height: 170px; margin-top: 12px; padding: 13px; resize: vertical; font-size: 11px; line-height: 1.7; }
.admin-parsed-jd button { min-height: 38px; margin-top: 8px; padding: 0 13px; border-radius: 8px; color: #aeb5c0; background: rgba(255,255,255,.035); font-size: 8px; }
.admin-message-label { display: block; margin-bottom: 10px; color: #d7dbe2; font-size: 11px; font-weight: 650; }
.admin-view-applications .admin-message-editor { padding-top: 0; border-top: 0; }
.admin-view-applications .admin-message-editor textarea { min-height: 190px; font-size: 13px; line-height: 1.78; }
.admin-copy-primary { width: 100%; min-height: 50px; margin-top: 9px; border: 0; border-radius: 10px; color: #08090c; background: #f2f3f5; font-size: 10px; font-weight: 700; }
.admin-view-applications .admin-message-actions { grid-template-columns: 1fr 1fr; }
.admin-view-applications .admin-message-actions button:first-child { color: #a8afbb; background: rgba(255,255,255,.035); }
.admin-match-detail { margin-top: 16px; padding: 14px 0; border-top: 1px solid rgba(255,255,255,.065); }
.admin-match-detail .admin-match-columns { margin: 18px 0 0; }
.admin-view-applications .admin-application-delivery { grid-template-columns: 1fr; margin-top: 2px; }
.admin-view-applications .admin-application-delivery button:first-child { color: #9ea6b3; border: 1px solid rgba(255,255,255,.1); background: transparent; }

@media (max-width: 980px) {
  .admin-view-applications .admin-application-layout { grid-template-columns: 1fr; }
  .admin-view-applications .admin-application-builder { min-height: 0; }
  .admin-view-applications .admin-application-analysis { min-height: 0; }
}

@media (max-width: 640px) {
  .admin-view-applications .admin-title { min-height: 168px; }
  .admin-view-applications .admin-application-panel > header { padding: 20px 16px; }
  .admin-view-applications .admin-application-builder,
  .admin-view-applications .admin-application-analysis { padding: 20px 16px; }
  .admin-application-source-url input,
  .admin-application-manual textarea,
  .admin-parsed-job input,
  .admin-parsed-jd textarea,
  .admin-view-applications .admin-message-editor textarea { font-size: 16px; }
  .admin-application-source-url input { min-height: 58px; }
  .admin-view-applications .admin-application-upload-primary { padding: 17px 14px; }
  .admin-application-upload-primary > div:first-child > span { font-size: 10px; }
  .admin-view-applications .admin-application-empty { min-height: 330px; }
  .admin-view-applications .admin-application-empty h3 { font-size: 27px; }
  .admin-view-applications .admin-match-heading { grid-template-columns: 96px minmax(0, 1fr); }
  .admin-parsed-job { grid-template-columns: 1fr; }
  .admin-view-applications .admin-message-actions { grid-template-columns: 1fr; }
}

/* Application workspace v3: one clear input, one clear outcome. */
.admin-source-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-bottom: 18px;
  padding: 5px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 13px;
  background: rgba(255,255,255,.025);
}
.admin-source-tabs > button {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 12px;
  border: 0;
  border-radius: 9px;
  color: #717a8a;
  background: transparent;
  font-size: 10px;
  font-weight: 650;
}
.admin-source-tabs > button > span { color: #4f5868; font-size: 7px; letter-spacing: .08em; }
.admin-source-tabs > button[aria-selected="true"] { color: #0a0b0e; background: #f2f3f5; }
.admin-source-tabs > button[aria-selected="true"] > span { color: #6473d7; }
.admin-source-tabs > button.has-value::after { content: ''; width: 5px; height: 5px; margin-left: 2px; border-radius: 50%; background: #72dcb7; }
.admin-source-panel { min-height: 142px; display: flex; flex-direction: column; justify-content: center; }
.admin-source-panel > p { margin: 11px 2px 0; color: #606979; font-size: 9px; line-height: 1.65; }
.admin-source-panel.hidden { display: none; }
.admin-view-applications .admin-application-upload-primary { margin: 0; }
.admin-application-manual summary { min-height: 30px; display: flex; align-items: center; justify-content: space-between; }
.admin-application-manual summary small { margin-left: 7px; color: #4f5867; font-size: 7px; font-weight: 520; }
.admin-application-manual summary::after { margin-left: auto; }
.admin-view-applications .admin-application-analyze { justify-content: center; border: 0; color: #08090c; background: #f2f3f5; font-size: 11px; letter-spacing: .01em; }
.admin-view-applications .admin-application-parse-only { color: #cbd0da; background: #171b24; }
.admin-view-applications .admin-application-analyze[data-state="loading"]::before { content: none; }
.admin-view-applications .admin-application-analyze[data-state="loading"] .admin-application-spinner {
  width: 13px;
  height: 13px;
  display: block;
  margin-right: 9px;
  border: 1.5px solid rgba(226,231,255,.3);
  border-top-color: #91a2ff;
  border-radius: 50%;
  animation: admin-refresh-spin .7s linear infinite;
}
.admin-view-applications .admin-message-actions button,
.admin-view-applications .admin-application-delivery button { font-size: 9px; font-weight: 620; }
.admin-view-applications .admin-application-delivery button:first-child { justify-content: center; }

@media (max-width: 640px) {
  .admin-view-applications .admin-console { width: calc(100% - 20px); padding-top: 18px; padding-bottom: 28px; }
  .admin-view-applications .admin-title { min-height: 0; margin-bottom: 18px; padding: 4px 4px 0; }
  .admin-view-applications .admin-title > div:first-child { padding-right: 54px; }
  .admin-view-applications .admin-title > div:first-child > span { font-size: 8px; letter-spacing: .13em; }
  .admin-view-applications .admin-title h1 { margin: 9px 0 6px; font-size: 39px; line-height: 1; letter-spacing: -.055em; }
  .admin-view-applications .admin-title p { max-width: 100%; font-size: 11px; line-height: 1.55; }
  .admin-view-applications .admin-corner-logout { top: 2px; right: 3px; font-size: 11px; }
  .admin-view-applications .admin-title-actions { width: auto; position: absolute; top: 38px; right: 3px; display: flex; margin: 0; }
  .admin-view-applications .admin-section-link { min-height: 30px; padding: 0 2px; border: 0; border-radius: 0; color: #737d8d; background: transparent; font-size: 11px; }

  .admin-view-applications .admin-panel { border-radius: 17px; }
  .admin-view-applications .admin-application-panel > header { min-height: 76px; padding: 17px 16px; }
  .admin-view-applications .admin-application-panel > header span,
  .admin-view-applications .admin-application-records-panel > header span { font-size: 9px; letter-spacing: .11em; }
  .admin-view-applications .admin-panel h2 { margin-top: 6px; font-size: 21px; line-height: 1.1; }
  .admin-view-applications .admin-application-builder { padding: 16px 14px 18px; }
  .admin-source-tabs { gap: 5px; margin-bottom: 14px; padding: 4px; border-radius: 12px; }
  .admin-source-tabs > button { min-height: 46px; gap: 7px; border-radius: 8px; font-size: 11px; }
  .admin-source-tabs > button > span { font-size: 7px; }
  .admin-source-panel { min-height: 148px; }
  .admin-application-source-url { gap: 8px; }
  .admin-application-source-url > span { font-size: 11px; }
  .admin-application-source-url input { min-height: 54px; padding: 0 14px; border-radius: 11px; font-size: 16px; }
  .admin-source-panel > p { margin-top: 9px; font-size: 11px; line-height: 1.55; }
  .admin-view-applications .admin-application-upload-primary { min-height: 136px; grid-template-columns: minmax(0,1fr) auto; align-content: center; gap: 11px; padding: 16px 13px; border-radius: 12px; }
  .admin-application-upload-primary > div:first-child > span { font-size: 11px; }
  .admin-application-upload-primary > div:first-child small { margin-top: 4px; font-size: 10px; }
  .admin-application-upload-primary > label span { min-height: 40px; padding: 0 13px; border-radius: 9px; font-size: 11px; }
  .admin-application-previews { gap: 7px; padding-top: 2px; }
  .admin-application-previews > div { flex-basis: 66px; height: 66px; border-radius: 8px; }
  .admin-application-previews button { width: 22px; height: 22px; font-size: 14px; }
  .admin-application-manual { margin: 12px 2px 14px; }
  .admin-application-manual summary,
  .admin-parsed-jd summary,
  .admin-match-detail summary { min-height: 36px; font-size: 11px; }
  .admin-application-manual label > span { font-size: 10px; }
  .admin-application-manual textarea { min-height: 170px; padding: 13px; border-radius: 10px; line-height: 1.65; }
  .admin-view-applications .admin-application-analyze { min-height: 52px; margin-top: 4px; border-radius: 11px; font-size: 14px; }
  .admin-application-submit-grid { grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 8px; margin-top: 4px; }
  .admin-view-applications .admin-application-submit-grid .admin-application-analyze { min-height: 52px; margin-top: 0; padding: 0 9px; font-size: 12px; white-space: nowrap; }
  .admin-view-applications .admin-application-builder > .form-status { min-height: 17px; margin: 8px 2px 0; font-size: 11px; line-height: 1.5; }

  .admin-view-applications .admin-application-analysis { padding: 18px 14px 20px; border-top-color: rgba(255,255,255,.055); }
  .admin-view-applications .admin-application-empty { min-height: 210px; align-items: flex-start; text-align: left; }
  .admin-view-applications .admin-application-empty > span { font-size: 9px; }
  .admin-view-applications .admin-application-empty h3 { max-width: 280px; margin: 14px 0 8px; font-size: 25px; line-height: 1.16; }
  .admin-view-applications .admin-application-empty p { max-width: 300px; font-size: 12px; line-height: 1.65; }
  .admin-view-applications .admin-match-heading { grid-template-columns: 82px minmax(0,1fr); gap: 12px; align-items: center; }
  .admin-view-applications .admin-match-heading strong { font-size: 31px; }
  .admin-view-applications .admin-match-heading > p { font-size: 12px; line-height: 1.65; }
  .admin-parsed-job { gap: 11px; margin: 20px 0 12px; }
  .admin-parsed-job label > span { font-size: 11px; }
  .admin-parsed-job input { min-height: 50px; padding: 0 13px; font-size: 16px; }
  .admin-parsed-jd { margin-bottom: 18px; padding: 9px 0 15px; }
  .admin-parsed-jd textarea { min-height: 180px; margin-top: 9px; font-size: 16px; line-height: 1.62; }
  .admin-parsed-jd button { width: 100%; min-height: 43px; margin-top: 8px; font-size: 11px; }
  .admin-message-label { margin-bottom: 9px; font-size: 12px; }
  .admin-message-variants { gap: 6px; overflow-x: auto; scrollbar-width: none; }
  .admin-message-variants::-webkit-scrollbar { display: none; }
  .admin-message-variants button { flex: 0 0 auto; min-height: 39px; padding: 0 13px; font-size: 11px; white-space: nowrap; }
  .admin-view-applications .admin-message-editor textarea { min-height: 220px; padding: 14px; font-size: 16px; line-height: 1.7; }
  .admin-copy-primary { min-height: 50px; font-size: 13px; }
  .admin-view-applications .admin-message-actions { grid-template-columns: 1fr 1fr; gap: 7px; }
  .admin-view-applications .admin-message-actions button { min-height: 44px; padding: 0 8px; font-size: 11px; }
  .admin-application-evidence { gap: 7px; margin-top: 11px; }
  .admin-application-evidence a { flex-basis: 62px; height: 62px; }
  .admin-match-detail { margin-top: 14px; padding: 10px 0 12px; }
  .admin-match-columns { gap: 12px; margin-top: 12px; }
  .admin-match-columns section { padding: 13px; }
  .admin-match-columns li { font-size: 12px; line-height: 1.65; }
  .admin-view-applications .admin-application-delivery button { min-height: 46px; border-radius: 10px; font-size: 12px; }
  .admin-view-applications .admin-application-ready > .form-status { font-size: 11px; }

  .admin-view-applications .admin-application-records-panel { margin-top: 10px; }
  .admin-view-applications .admin-application-records-panel > header { min-height: 80px; align-items: center; padding: 16px 14px; }
  .admin-record-controls { gap: 6px; }
  .admin-record-controls select { width: 120px; min-height: 38px; padding-left: 10px; font-size: 11px; }
  .admin-record-controls > b { font-size: 10px; }
  .admin-application-records { max-height: 420px; }
  .admin-application-record { grid-template-columns: minmax(0,1fr) 104px; gap: 8px; padding: 14px 12px; }
  .admin-record-identity { gap: 4px; }
  .admin-record-identity > span { font-size: 10px; }
  .admin-record-identity > strong { font-size: 13px; line-height: 1.35; white-space: normal; }
  .admin-record-identity > small { font-size: 10px; }
  .admin-application-record > select { width: 104px; min-height: 38px; padding-left: 9px; font-size: 11px; }
}

/* Application details: image viewer and expandable records. */
.admin-viewing-image { overflow: hidden; }
.admin-image-preview-trigger {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: inherit;
  background: #090b10;
  cursor: zoom-in;
}
.admin-image-preview-trigger img { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform .25s ease, opacity .25s ease; }
.admin-image-preview-trigger:hover img { opacity: .88; transform: scale(1.035); }
.admin-view-applications .admin-application-previews > div > .admin-upload-preview-image { position: static; width: 100%; height: 100%; min-height: 0; display: block; padding: 0; border: 0; border-radius: inherit; background: #090b10; }
.admin-view-applications .admin-application-previews > div > .admin-upload-preview-image:hover { border: 0; background: #090b10; }
.admin-application-evidence > .admin-image-preview-trigger { flex: 0 0 68px; height: 68px; border-radius: 8px; }

.admin-panel .admin-application-analyze:hover { color: #08090c; border: 0; background: #f2f3f5; }
.admin-panel .admin-application-analyze[data-state="loading"],
.admin-panel .admin-application-analyze[data-state="loading"]:hover { color: #eef1ff; border: 0; background: #181e2d; cursor: wait; }

.admin-image-viewer {
  width: 100vw;
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  color: #f4f5f7;
  background: rgba(3,4,8,.96);
}
.admin-image-viewer::backdrop { background: rgba(0,0,0,.82); backdrop-filter: blur(8px); }
.admin-image-viewer-stage { width: 100%; height: 100%; position: relative; display: grid; place-items: center; padding: 68px 88px 54px; }
.admin-image-viewer figure { width: 100%; height: 100%; display: grid; grid-template-rows: minmax(0,1fr) auto; gap: 16px; margin: 0; }
.admin-image-viewer figure > img { width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.admin-image-viewer figcaption { min-height: 20px; display: flex; justify-content: center; gap: 14px; color: #a8afbb; font-size: 11px; }
.admin-image-viewer figcaption b { color: #697383; font-weight: 560; }
.admin-image-viewer-close { position: absolute; z-index: 2; top: 20px; right: 24px; width: 40px; height: 40px; min-height: 40px; padding: 0; border: 0 !important; border-radius: 0; outline: 0; color: #d9dce2; background: transparent !important; box-shadow: none !important; font: 300 28px/1 Arial,sans-serif; }
.admin-image-viewer-close:hover { color: #fff; border: 0 !important; background: transparent !important; }
.admin-image-viewer-nav { width: 42px; height: 64px; position: absolute; z-index: 2; top: 50%; padding: 0; border: 0; color: #daddE4; background: transparent; font: 300 36px/1 Arial,sans-serif; transform: translateY(-50%); }
.admin-image-viewer-prev { left: 24px; }
.admin-image-viewer-next { right: 24px; }
.admin-image-viewer-nav:disabled { display: none; }

.admin-view-applications .admin-application-record { display: block; padding: 0; }
.admin-record-row { display: grid; grid-template-columns: minmax(0,1fr) 126px; align-items: center; gap: 18px; padding: 16px 20px; }
.admin-record-row > select { width: 126px; min-height: 38px; padding: 0 30px 0 12px; border: 1px solid rgba(255,255,255,.1); border-radius: 9px; outline: 0; color: #b7bdc8; background: #0c0f16; font: inherit; font-size: 9px; }
.admin-view-applications .admin-record-identity { grid-template-columns: 130px minmax(0,1fr) 210px 24px; gap: 16px; min-height: 38px; }
.admin-record-identity > i { color: #727d8f; font: normal 18px/1 Arial,sans-serif; text-align: right; }
.admin-application-record.is-expanded { background: linear-gradient(120deg, rgba(91,108,218,.075), rgba(255,255,255,.012) 48%); }
.admin-record-expanded { margin: 0 20px 18px; padding: 20px; border: 1px solid rgba(255,255,255,.075); border-radius: 13px; background: rgba(2,4,8,.36); animation: admin-record-open .22s ease both; }
@keyframes admin-record-open { from { opacity: 0; transform: translateY(-5px); } to { opacity: 1; transform: none; } }
.admin-record-expanded > p { max-width: 900px; margin: 0; color: #b7bdc8; font-size: 11px; line-height: 1.75; }
.admin-record-expanded blockquote { margin: 16px 0 0; padding: 14px 16px; border: 0; border-left: 2px solid #7182ef; color: #858e9d; background: rgba(255,255,255,.025); font-size: 10px; line-height: 1.75; }
.admin-record-evidence { display: flex; gap: 8px; margin-top: 15px; overflow-x: auto; }
.admin-record-evidence .admin-image-preview-trigger { flex: 0 0 72px; height: 72px; border-radius: 8px; }
.admin-record-actions { display: flex; gap: 8px; margin-top: 16px; }
.admin-record-actions button,
.admin-record-actions a { min-height: 40px; display: inline-flex; align-items: center; justify-content: center; padding: 0 16px; border: 0; border-radius: 8px; color: #090a0d; background: #eef0f3; font-size: 9px; font-weight: 680; text-decoration: none; }
.admin-record-actions a { color: #abb2bd; border: 1px solid rgba(255,255,255,.1); background: transparent; }

@media (max-width: 640px) {
  .admin-image-viewer-stage { padding: 58px 12px 42px; }
  .admin-image-viewer-close { top: 10px; right: 10px; width: 40px; height: 40px; min-height: 40px; font-size: 28px; }
  .admin-image-viewer-nav { width: 38px; height: 54px; top: auto; bottom: 10px; color: #cfd3da; font-size: 32px; transform: none; }
  .admin-image-viewer-prev { left: 18px; }
  .admin-image-viewer-next { right: 18px; }
  .admin-image-viewer figure { gap: 10px; }
  .admin-image-viewer figcaption { padding: 0 52px; font-size: 11px; white-space: nowrap; overflow: hidden; }
  .admin-image-viewer figcaption span { overflow: hidden; text-overflow: ellipsis; }

  .admin-record-row { grid-template-columns: minmax(0,1fr) 104px; gap: 10px; padding: 15px 12px; }
  .admin-record-row > select { width: 104px; min-height: 40px; padding-left: 9px; font-size: 11px; }
  .admin-view-applications .admin-record-identity { grid-template-columns: minmax(0,1fr) 22px; gap: 4px 8px; }
  .admin-record-identity > span,
  .admin-record-identity > strong,
  .admin-record-identity > small { grid-column: 1; }
  .admin-record-identity > i { grid-column: 2; grid-row: 1 / span 3; align-self: center; font-size: 21px; }
  .admin-record-expanded { margin: 0 10px 12px; padding: 15px 13px; border-radius: 11px; }
  .admin-record-expanded > p { font-size: 12px; line-height: 1.7; }
  .admin-record-expanded blockquote { max-height: 132px; margin-top: 12px; padding: 12px 13px; overflow-y: auto; font-size: 12px; line-height: 1.7; }
  .admin-record-evidence .admin-image-preview-trigger { flex-basis: 66px; height: 66px; }
  .admin-record-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin-top: 13px; }
  .admin-record-actions button,
  .admin-record-actions a { min-height: 44px; padding: 0 9px; font-size: 11px; }
  .admin-record-actions > :only-child { grid-column: 1 / -1; }
}

/* Traffic classifier — conservative human / automation / unknown separation. */
.admin-traffic-tools { display: flex; align-items: center; gap: 18px; }
.admin-traffic-tools > i { color: #768092; font-size: 8px; font-style: normal; letter-spacing: .1em; white-space: nowrap; }
.admin-traffic-tools > i b { width: 5px; height: 5px; display: inline-block; margin-right: 7px; border-radius: 50%; background: #78e4be; box-shadow: 0 0 12px rgba(120,228,190,.8); }
.admin-traffic-filter { display: flex; align-items: center; gap: 2px; padding: 3px; border: 1px solid rgba(255,255,255,.075); border-radius: 10px; background: rgba(0,0,0,.2); }
.admin-panel .admin-traffic-filter button { min-height: 28px; padding: 0 10px; border: 0; border-radius: 7px; color: #646d7d; background: transparent; font-size: 8px; }
.admin-panel .admin-traffic-filter button[aria-pressed="true"] { color: #eff1f5; background: rgba(255,255,255,.09); box-shadow: inset 0 1px 0 rgba(255,255,255,.04); }
.admin-event-action em { min-width: 43px; align-self: center; justify-self: end; padding: 5px 7px; border-radius: 6px; font-size: 7px; font-style: normal; font-weight: 720; line-height: 1; text-align: center; letter-spacing: .05em; }
.admin-event-action em[data-class="human"] { color: #85dfbd; background: rgba(58,155,118,.12); }
.admin-event-action em[data-class="admin"] { color: #b3a5ff; background: rgba(126,103,224,.14); }
.admin-event-action em[data-class="automated"] { color: #f0ae7c; background: rgba(191,107,49,.13); }
.admin-event-action em[data-class="unknown"] { color: #959dad; background: rgba(133,143,161,.11); }
.admin-events-empty { height: 180px !important; color: #606979 !important; text-align: center !important; }

@media (min-width: 641px) {
  .admin-event-action { display: grid; grid-template-columns: 6px minmax(0,1fr) auto; align-items: center; gap: 9px; }
}

@media (max-width: 640px) {
  .admin-live-panel > header { align-items: flex-start; gap: 15px; }
  .admin-traffic-tools { flex-direction: column-reverse; align-items: flex-end; gap: 9px; }
  .admin-traffic-tools > i { font-size: 7px; }
  .admin-panel .admin-traffic-filter button { min-height: 27px; padding: 0 8px; font-size: 7px; }
  .admin-events td.admin-event-action { grid-template-columns: 7px minmax(0, 1fr) auto; }
  .admin-event-action em { grid-column: 3; grid-row: 2; }
  .admin-events-empty { display: table-cell !important; height: 140px !important; padding: 50px 15px !important; }
}

/* Workspace polish: aligned console navigation, full-width scopes and modal records. */
.admin-title-actions { position: static; }
.admin-corner-logout { min-height: 28px; }
.admin-title-actions .admin-section-link { position: absolute; top: 30px; right: 0; min-height: 28px; padding: 0 3px; border: 0; border-radius: 0; color: #737d8d; background: transparent; font-size: 10px; }
.admin-title-actions .admin-section-link:hover { color: #fff; background: transparent; }

.admin-view-applications .admin-application-records-panel > header { min-height: 92px; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 18px 22px; }
.admin-record-heading > div { display: flex; align-items: baseline; gap: 10px; }
.admin-record-heading > div > b { color: #687181; font-size: 9px; font-weight: 570; }
.admin-record-controls { position: relative; flex: 0 0 auto; justify-content: flex-end; gap: 13px; }
.admin-record-filter { position: relative; width: 176px; }
.admin-record-filter > button { width: 100%; min-height: 52px; display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto; align-items: center; padding: 8px 13px; border: 1px solid rgba(255,255,255,.13); border-radius: 13px; color: #eff1f5; background: rgba(7,9,15,.74); text-align: left; }
.admin-record-filter > button > span { grid-column: 1 / -1; color: #60697a; font-size: 7px; letter-spacing: .11em; }
.admin-record-filter > button > strong { grid-column: 1; grid-row: 2; margin-top: 2px; color: #dfe2e8; font-size: 10px; font-weight: 620; }
.admin-record-filter > button > i { grid-column: 2; grid-row: 2; color: #7b8495; font-size: 13px; font-style: normal; transition: transform .18s ease; }
.admin-record-filter.is-open > button > i { transform: rotate(180deg); }
.admin-view-applications .admin-application-records-panel { overflow: visible; }
.admin-record-filter-menu { position: absolute; z-index: 60; right: 0; bottom: calc(100% + 7px); width: 100%; padding: 6px; border: 1px solid rgba(255,255,255,.13); border-radius: 13px; background: rgba(7,9,15,.98); box-shadow: 0 22px 54px rgba(0,0,0,.48); backdrop-filter: blur(18px); }
.admin-panel .admin-record-filter-menu > button { width: 100%; min-height: 37px; display: flex; align-items: center; padding: 0 10px; border: 0; border-radius: 8px; color: #7e8797; background: transparent; font-size: 9px; text-align: left; }
.admin-panel .admin-record-filter-menu > button:hover { color: #fff; background: rgba(255,255,255,.05); }
.admin-panel .admin-record-filter-menu > button[aria-selected="true"] { color: #eef0f4; background: rgba(112,130,240,.11); }
.admin-application-record { position: relative; overflow: hidden; }
.admin-record-row { position: relative; z-index: 2; display: block; min-height: 78px; padding: 0; background: #0b0e14; transition: transform .24s cubic-bezier(.2,.75,.25,1); touch-action: pan-y; }
.admin-view-applications .admin-record-identity { width: 100%; min-height: 78px; grid-template-columns: 38px 118px minmax(0,1fr) 210px; padding: 17px 158px 17px 20px; }
.admin-record-identity > .admin-record-sequence { color: #485161; font: 650 9px/1 var(--font-sans, inherit); letter-spacing: .08em; text-align: left; }
.admin-record-identity > .admin-record-company { color: #737c8b; }
.admin-application-record:hover { background: rgba(255,255,255,.018); }
.admin-record-delete { display: none; }
.admin-record-status { position: absolute; z-index: 4; top: 21px; right: 20px; width: 116px; }
.admin-record-status-trigger { position: relative; width: 100%; min-height: 36px !important; padding: 0 25px 0 12px !important; border: 0 !important; border-radius: 9px !important; color: #a9b1c0 !important; background: rgba(255,255,255,.055) !important; font-size: 9px; text-align: left; }
.admin-record-status-trigger::after { content: ''; position: absolute; top: 15px; right: 12px; width: 5px; height: 5px; border-right: 1px solid currentColor; border-bottom: 1px solid currentColor; transform: rotate(45deg); transition: transform .18s ease; }
.admin-record-status-trigger[aria-expanded="true"]::after { top: 17px; transform: rotate(225deg); }
.admin-record-status-trigger.is-saving::after { top: 13px; width: 7px; height: 7px; border: 1px solid currentColor; border-top-color: transparent; border-radius: 50%; transform: none; animation: admin-status-saving .7s linear infinite; }
@keyframes admin-status-saving { to { transform: rotate(360deg); } }
.admin-record-status[data-status="ready"] .admin-record-status-trigger { color: #aab2c0 !important; background: rgba(136,146,164,.1) !important; }
.admin-record-status[data-status="sent"] .admin-record-status-trigger,
.admin-record-status[data-status="viewed"] .admin-record-status-trigger { color: #88a2ff !important; background: rgba(94,119,225,.12) !important; }
.admin-record-status[data-status="replied"] .admin-record-status-trigger,
.admin-record-status[data-status="interview"] .admin-record-status-trigger { color: #81dab8 !important; background: rgba(74,171,132,.12) !important; }
.admin-record-status[data-status="rejected"] .admin-record-status-trigger,
.admin-record-status[data-status="withdrawn"] .admin-record-status-trigger { color: #c28f96 !important; background: rgba(172,88,101,.1) !important; }
.admin-record-status[data-status="offer"] .admin-record-status-trigger { color: #efc46f !important; background: rgba(202,155,64,.12) !important; }
.admin-record-status-menu { position: fixed; z-index: 1000; width: 142px; padding: 6px; border: 0; border-radius: 11px; background: #0b0e16; box-shadow: 0 18px 48px rgba(0,0,0,.5); }
.admin-record-status-menu > button { width: 100%; min-height: 34px; display: flex; align-items: center; padding: 0 9px; border: 0; border-radius: 7px; color: #80899a; background: transparent; font-family: inherit; font-size: 9px; cursor: pointer; }
.admin-record-status-menu > button:hover,
.admin-record-status-menu > button[aria-selected="true"] { color: #eef0f5; background: rgba(255,255,255,.06); }

.admin-viewing-record { overflow: hidden; }
.admin-record-dialog { width: min(900px, calc(100vw - 44px)); max-width: none; max-height: min(820px, calc(100dvh - 44px)); padding: 0; overflow: visible; border: 0 !important; border-radius: 22px; outline: 0 !important; color: #e9ebef; background: transparent; box-shadow: none !important; }
.admin-record-dialog:focus,
.admin-record-dialog:focus-visible { border: 0 !important; outline: 0 !important; box-shadow: none !important; }
.admin-record-dialog::backdrop { background: rgba(1,2,5,.76); backdrop-filter: blur(9px); }
.admin-record-dialog-card { max-height: min(820px, calc(100dvh - 44px)); display: grid; grid-template-rows: auto minmax(0,1fr) auto; overflow: hidden; border: 0 !important; border-radius: 22px; outline: 0 !important; background: linear-gradient(145deg, rgba(17,20,31,.99), rgba(7,9,15,.99)); box-shadow: 0 35px 110px rgba(0,0,0,.62); }
.admin-record-dialog-close { position: absolute; z-index: 2; top: 17px; right: 20px; width: 38px; min-height: 38px; padding: 0; border: 0 !important; border-radius: 0 !important; outline: 0; color: #778090; background: transparent !important; font: 300 27px/1 Arial,sans-serif; }
.admin-record-dialog-card > header { padding: 34px 76px 25px 34px; border: 0; }
.admin-record-dialog-eyebrow { display: flex; align-items: center; gap: 9px; }
.admin-record-dialog-eyebrow > span { color: #7c86a0; font-size: 8px; font-weight: 740; letter-spacing: .13em; }
.admin-record-dialog-eyebrow > b { padding: 5px 8px; border-radius: 6px; color: #aab2c0; background: rgba(136,146,164,.1); font-size: 8px; font-weight: 620; line-height: 1; }
.admin-record-dialog-eyebrow > b[data-status="sent"],
.admin-record-dialog-eyebrow > b[data-status="viewed"] { color: #88a2ff; background: rgba(94,119,225,.12); }
.admin-record-dialog-eyebrow > b[data-status="replied"],
.admin-record-dialog-eyebrow > b[data-status="interview"] { color: #81dab8; background: rgba(74,171,132,.12); }
.admin-record-dialog-eyebrow > b[data-status="rejected"],
.admin-record-dialog-eyebrow > b[data-status="withdrawn"] { color: #c28f96; background: rgba(172,88,101,.1); }
.admin-record-dialog-eyebrow > b[data-status="offer"] { color: #efc46f; background: rgba(202,155,64,.12); }
.admin-record-dialog-card > header h2 { margin: 10px 0 8px; color: #f5f6f8; font-size: clamp(28px, 3vw, 42px); font-weight: 570; line-height: 1.08; letter-spacing: -.04em; }
.admin-record-dialog-card > header p { margin: 0; color: #697282; font-size: 9px; }
.admin-record-dialog-body { padding: 28px 34px 32px; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; }
.admin-record-dialog-body section + section { margin-top: 28px; }
.admin-record-dialog-body section > span { color: #687286; font-size: 8px; font-weight: 720; letter-spacing: .12em; }
.admin-record-dialog-section-title { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.admin-record-dialog-section-title > span { color: #687286; font-size: 8px; font-weight: 720; letter-spacing: .12em; }
.admin-record-dialog-section-title > button { min-height: 30px; padding: 0 10px; border: 0; border-radius: 7px; color: #aab2c2; background: rgba(255,255,255,.05); font-size: 8px; }
.admin-record-dialog-body section > p { margin: 12px 0 0; color: #bdc2cb; font-size: 13px; line-height: 1.8; }
.admin-record-dialog-body blockquote { margin: 12px 0 0; padding: 18px 20px; border: 0; color: #a5acb8; background: rgba(255,255,255,.025); font-size: 12px; line-height: 1.8; }
.admin-record-followup blockquote { color: #bdc3ce; background: rgba(105,126,255,.055); }
.admin-record-dialog-evidence { display: flex; gap: 9px; margin-top: 25px; overflow-x: auto; }
.admin-record-dialog-evidence .admin-image-preview-trigger { flex: 0 0 86px; height: 86px; border-radius: 10px; }
.admin-record-dialog-card > footer { display: grid; grid-template-columns: 1fr; gap: 9px; padding: 17px 34px 24px; border: 0; }
.admin-record-dialog-card > footer.has-source { grid-template-columns: 1fr 1fr; }
.admin-record-dialog-card > footer button,
.admin-record-dialog-card > footer a { min-height: 46px; display: flex; align-items: center; justify-content: center; padding: 0 16px; border: 0; border-radius: 10px; color: #080a0d; background: #eff1f4; font-size: 10px; font-weight: 680; text-decoration: none; }
.admin-record-dialog-card > footer a { color: #aab1bd; border: 0; background: rgba(255,255,255,.045); }
.admin-record-dialog-card > footer > :only-child { grid-column: 1 / -1; }

@media (max-width: 640px) {
  .admin-corner-logout { min-height: 28px; }
  .admin-view-applications .admin-title-actions { position: static; }
  .admin-title-actions .admin-section-link { top: 30px; right: 3px; min-height: 28px; font-size: 11px; }
  .admin-grant-builder .admin-scope-grid { width: 100%; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px; margin: 0; padding: 0; overflow: visible; }
  .admin-grant-builder .admin-scope-grid .admin-scope-card,
  .admin-grant-builder .admin-scope-grid .admin-scope-card:nth-child(3) { width: 100%; min-width: 0; min-height: 82px; grid-column: auto; margin: 0; padding: 12px 10px; }
  .admin-grant-builder .admin-primary-action { width: min(250px, 100%); min-height: 50px; justify-content: center; gap: 14px; margin: 20px auto 0; }

  .admin-view-applications .admin-application-records-panel > header { min-height: 92px; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 15px 14px; }
  .admin-record-heading { min-width: 0; }
  .admin-record-heading > div { gap: 8px; }
  .admin-record-heading > div > b { font-size: 10px; }
  .admin-record-controls { display: flex; align-items: center; justify-content: flex-end; gap: 6px; }
  .admin-record-filter { width: 132px; }
  .admin-record-filter > button { min-height: 48px; padding: 7px 10px; border-radius: 11px; }
  .admin-record-filter > button > strong { font-size: 11px; }
  .admin-record-controls > b { padding-right: 2px; }
  .admin-record-row { min-height: 88px; }
  .admin-view-applications .admin-record-identity { min-height: 88px; grid-template-columns: 25px minmax(0,1fr); gap: 3px 8px; padding: 14px 111px 14px 13px; }
  .admin-record-identity > .admin-record-sequence { grid-column: 1; grid-row: 1 / span 3; align-self: center; font-size: 9px; }
  .admin-record-identity > .admin-record-company,
  .admin-record-identity > strong,
  .admin-record-identity > small { grid-column: 2; }
  .admin-panel .admin-record-delete { position: absolute; z-index: 1; top: 50%; right: 14px; width: 44px; height: 44px; min-height: 44px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; color: #ff9ca8; background: rgba(200,65,83,.17); transform: translateY(-50%); }
  .admin-panel .admin-record-delete:hover { color: #ffc1c8; border: 0; background: rgba(200,65,83,.24); }
  .admin-record-delete svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
  .admin-application-record.is-delete-revealed .admin-record-row { transform: translateX(-72px); }
  .admin-application-record.is-deleting { opacity: .48; pointer-events: none; }
  .admin-record-status { top: 50%; right: 13px; bottom: auto; left: auto; width: 92px; transform: translateY(-50%); }
  .admin-record-status-trigger { width: 100%; min-width: 0; min-height: 34px !important; font-size: 10px; }
  .admin-record-status-trigger::after { top: 13px; }
  .admin-record-status-trigger[aria-expanded="true"]::after { top: 15px; }
  .admin-record-status-menu { width: 150px; }

  .admin-record-dialog { width: calc(100vw - 20px); max-height: calc(100dvh - 20px); border-radius: 20px; }
  .admin-record-dialog-card { max-height: calc(100dvh - 20px); border-radius: 20px; }
  .admin-record-dialog-close { top: 11px; right: 12px; width: 38px; min-height: 38px; font-size: 27px; }
  .admin-record-dialog-card > header { padding: 25px 62px 20px 20px; }
  .admin-record-dialog-eyebrow > span { font-size: 9px; }
  .admin-record-dialog-eyebrow > b { font-size: 9px; }
  .admin-record-dialog-card > header h2 { margin-top: 9px; font-size: 27px; line-height: 1.14; }
  .admin-record-dialog-card > header p { font-size: 10px; line-height: 1.5; }
  .admin-record-dialog-body { padding: 21px 20px 24px; }
  .admin-record-dialog-body section + section { margin-top: 23px; }
  .admin-record-dialog-body section > span { font-size: 9px; }
  .admin-record-dialog-body section > p { margin-top: 10px; font-size: 13px; line-height: 1.72; }
  .admin-record-dialog-body blockquote { margin-top: 10px; padding: 14px 15px; font-size: 13px; line-height: 1.72; }
  .admin-record-dialog-evidence { margin-top: 19px; }
  .admin-record-dialog-evidence .admin-image-preview-trigger { flex-basis: 72px; height: 72px; }
  .admin-record-dialog-card > footer { gap: 7px; padding: 14px 20px 18px; }
  .admin-record-dialog-card > footer button,
  .admin-record-dialog-card > footer a { min-height: 45px; padding: 0 10px; font-size: 11px; }
}

/* Knowledge view has two sibling destinations; keep them independently clickable. */
.admin-view-knowledge .admin-title-actions { width: auto; position: absolute; top: 29px; right: 0; display: grid; justify-items: end; gap: 1px; margin: 0; }
.admin-view-knowledge .admin-title-actions .admin-section-link { position: static; min-height: 25px; justify-content: flex-end; padding: 0 3px; border: 0; border-radius: 0; color: #737d8d; background: transparent; font-size: 9px; }
.admin-view-knowledge .admin-title-actions .admin-section-link:hover { color: #fff; background: transparent; }

@media (max-width: 640px) {
  .admin-view-knowledge .admin-title-actions { top: 32px; right: 3px; gap: 1px; }
  .admin-view-knowledge .admin-title-actions .admin-section-link { min-height: 26px; font-size: 10px; }
}

/* Resume workspace */
.admin-resume-workspace { display: none; }
.admin-view-resumes .admin-resume-workspace { display: block; }
.admin-view-resumes .admin-section-link-resumes { display: none !important; }
.admin-view-resumes .admin-knowledge-workspace,
.admin-view-resumes .admin-application-panel,
.admin-view-resumes .admin-application-records-panel,
.admin-view-resumes .admin-metrics,
.admin-view-resumes .admin-grid,
.admin-view-resumes .admin-grants-panel,
.admin-view-resumes .admin-grant-records-panel,
.admin-view-resumes .admin-password-panel,
.admin-view-resumes .admin-footnote,
.admin-view-resumes .admin-window-control,
.admin-view-resumes .admin-refresh { display: none !important; }
.admin-view-monitor .admin-resume-workspace,
.admin-view-applications .admin-resume-workspace,
.admin-view-knowledge .admin-resume-workspace { display: none !important; }
.admin-view-resumes .admin-title { min-height: 176px; }
.admin-view-resumes .admin-title-actions { position: static; }

.admin-resume-intro { min-height: 224px; display: grid; grid-template-columns: minmax(0,1fr) 180px; align-items: end; gap: 40px; padding: 36px 38px; border-radius: 20px; color: #f5f6f8; background: rgba(8,10,15,.82); box-shadow: inset 0 0 0 1px rgba(255,255,255,.07); backdrop-filter: blur(22px); }
.admin-resume-intro > div:first-child > span { color: #747e91; font-size: 9px; font-weight: 800; letter-spacing: .18em; }
.admin-resume-intro h2 { max-width: none; margin: 17px 0 11px; font-size: clamp(34px,3.4vw,50px); line-height: 1; letter-spacing: -.055em; white-space: nowrap; }
.admin-resume-intro p { max-width: 620px; margin: 0; color: #9da4b0; font-size: 13px; line-height: 1.72; }
.admin-resume-meta { display: grid; justify-items: end; align-content: end; text-align: right; }
.admin-resume-meta b { font: 700 68px/1 "Cabinet Grotesk","PingFang SC",sans-serif; letter-spacing: -.06em; }
.admin-resume-meta span { margin-top: 8px; color: #7d8594; font-size: 8px; font-weight: 800; letter-spacing: .16em; }
.admin-resume-meta small { margin-top: 16px; color: #606979; font-size: 10px; }
.admin-resume-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; margin-top: 14px; }
.admin-resume-card { --resume-accent:#2457d6; min-height: 520px; display: flex; flex-direction: column; padding: 24px; border-radius: 18px; color: #eff1f5; background: rgba(10,12,18,.88); box-shadow: inset 0 0 0 1px rgba(255,255,255,.075); overflow: hidden; }
.admin-resume-card::before { content:""; width: 42px; height: 4px; margin-bottom: 28px; border-radius: 4px; background: var(--resume-accent); box-shadow: 0 0 26px color-mix(in srgb,var(--resume-accent) 60%,transparent); }
.admin-resume-card > header { display: flex; align-items: center; justify-content: space-between; color: #646d7d; font-size: 9px; font-weight: 800; letter-spacing: .14em; }
.admin-resume-card > header b { padding: 5px 7px; border-radius: 4px; color: #c4cad4; background: rgba(255,255,255,.055); font-size: 7px; }
.admin-resume-card-copy { margin-top: 48px; }
.admin-resume-card-copy small { color: var(--resume-accent); font-size: 9px; font-weight: 800; letter-spacing: .08em; }
.admin-resume-card-copy h3 { margin: 9px 0 17px; font-size: 30px; line-height: 1.04; letter-spacing: -.045em; }
.admin-resume-card-copy p { display: -webkit-box; margin: 0; overflow: hidden; color: #9ba2ae; font-size: 12px; line-height: 1.72; -webkit-box-orient: vertical; -webkit-line-clamp: 6; }
.admin-resume-target { margin-top: auto; padding-top: 30px; }
.admin-resume-target > span { color: #626b7a; font-size: 8px; font-weight: 800; letter-spacing: .14em; }
.admin-resume-target p { margin: 8px 0 0; color: #d3d7df; font-size: 11px; line-height: 1.6; }
.admin-resume-proof { display: flex; gap: 12px; margin-top: 20px; color: #697282; font-size: 8px; }
.admin-resume-card > footer { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 22px; }
.admin-resume-card > footer button,.admin-resume-card > footer a { min-height: 46px; display: flex; align-items: center; justify-content: center; border: 0; border-radius: 10px; color: #c9ced7; background: rgba(255,255,255,.055); font: 700 10px/1 "PingFang SC",sans-serif; text-decoration: none; cursor: pointer; }
.admin-resume-card > footer a { gap: 10px; color: #080a0d; background: #f4f5f7; }
.admin-resume-card > footer a span { color: #111; font-size: 15px; transform: translateY(-1px); }
.admin-resume-card > footer .admin-resume-download { grid-column: 1 / -1; color: #eef1f6; background: color-mix(in srgb,var(--resume-accent) 76%,#10131a); }
.admin-resume-card > footer .admin-resume-download span { color: inherit; }

.admin-resume-dialog { width: min(1080px,calc(100vw - 32px)); max-height: calc(100dvh - 32px); padding: 0; border: 0; border-radius: 20px; color: #e9ebef; background: #0b0d12; box-shadow: 0 30px 100px rgba(0,0,0,.65); overflow: hidden; }
.admin-resume-dialog::backdrop { background: rgba(0,0,0,.72); backdrop-filter: blur(9px); }
.admin-resume-dialog-shell { max-height: calc(100dvh - 32px); display: grid; grid-template-rows: auto minmax(0,1fr) auto; }
.admin-resume-dialog-shell > header { min-height: 112px; display: flex; align-items: flex-start; justify-content: space-between; gap: 30px; padding: 25px 28px 20px; border-bottom: 1px solid rgba(255,255,255,.07); }
.admin-resume-dialog-shell > header span { color: #616a79; font-size: 8px; font-weight: 800; letter-spacing: .16em; }
.admin-resume-dialog-shell > header h2 { margin: 8px 0 6px; font-size: 30px; line-height: 1; letter-spacing: -.04em; }
.admin-resume-dialog-shell > header p { margin: 0; color: #858d9a; font-size: 10px; }
.admin-resume-dialog-shell > header button { width: 34px; height: 34px; padding: 0; border: 0; color: #9299a5; background: transparent; font-size: 24px; cursor: pointer; }
.admin-resume-editor { padding: 24px 28px 40px; overflow: auto; overscroll-behavior: contain; }
.admin-resume-edit-section { margin-bottom: 30px; }
.admin-resume-edit-section > header { min-height: 34px; display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; color: #707988; font-size: 9px; font-weight: 800; letter-spacing: .13em; }
.admin-resume-edit-section > header b { font-size: 10px; }
.admin-resume-edit-fields,.admin-resume-edit-unit:not(details) { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.admin-resume-field { min-width: 0; display: grid; gap: 7px; }
.admin-resume-field.is-wide { grid-column: 1/-1; }
.admin-resume-field > span { color: #707988; font-size: 9px; font-weight: 700; }
.admin-resume-field input,.admin-resume-field textarea { width: 100%; min-height: 44px; padding: 11px 12px; border: 1px solid rgba(255,255,255,.08); border-radius: 9px; outline: 0; color: #e5e8ed; background: rgba(255,255,255,.035); font: 12px/1.65 "PingFang SC",sans-serif; resize: vertical; }
.admin-resume-field input:focus,.admin-resume-field textarea:focus { border-color: rgba(122,140,255,.56); background: rgba(89,107,213,.08); }
.admin-resume-edit-stack { display: grid; gap: 9px; }
.admin-resume-edit-unit { padding: 15px; border-radius: 12px; background: rgba(255,255,255,.027); box-shadow: inset 0 0 0 1px rgba(255,255,255,.055); }
details.admin-resume-edit-unit { padding: 0; }
.admin-resume-edit-unit > summary { min-height: 58px; display: grid; grid-template-columns: 30px minmax(0,1fr) auto; align-items: center; gap: 10px; padding: 0 16px; list-style: none; cursor: pointer; }
.admin-resume-edit-unit > summary::-webkit-details-marker { display: none; }
.admin-resume-edit-unit > summary span,.admin-resume-edit-unit > summary i { color: #616a79; font-size: 8px; font-style: normal; }
.admin-resume-edit-unit > summary b { font-size: 13px; }
.admin-resume-edit-unit[open] > summary { border-bottom: 1px solid rgba(255,255,255,.055); }
.admin-resume-edit-unit > .admin-resume-edit-fields { padding: 16px; }
.admin-resume-bullets { display: grid; gap: 10px; }
.admin-resume-bullets > div { display: grid; grid-template-columns: 180px minmax(0,1fr); gap: 10px; padding-top: 10px; border-top: 1px solid rgba(255,255,255,.055); }
.admin-resume-dialog-shell > footer { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 14px 28px; border-top: 1px solid rgba(255,255,255,.07); background: #0b0d12; }
.admin-resume-dialog-shell > footer p { margin: 0; color: #727b89; font-size: 10px; }
.admin-resume-dialog-shell > footer > div { display: flex; gap: 8px; }
.admin-resume-dialog-shell > footer button { min-width: 110px; min-height: 42px; border: 0; border-radius: 9px; color: #aab0ba; background: rgba(255,255,255,.055); font-size: 11px; cursor: pointer; }
.admin-resume-dialog-shell > footer button[data-resume-save] { color: #090a0c; background: #f2f3f5; font-weight: 800; }
.admin-viewing-resume { overflow: hidden; }

@media(max-width:900px){
  .admin-view-resumes .admin-console { width: calc(100% - 20px); padding-top: 18px; padding-bottom: 28px; }
  .admin-view-resumes .admin-title { min-height: 0; margin-bottom: 18px; padding: 4px 4px 0; }
  .admin-view-resumes .admin-title > div:first-child { padding-right: 54px; }
  .admin-view-resumes .admin-title > div:first-child > span { font-size: 8px; letter-spacing: .13em; }
  .admin-view-resumes .admin-title h1 { margin: 9px 0 6px; font-size: 39px; line-height: 1; letter-spacing: -.055em; }
  .admin-view-resumes .admin-title p { max-width: 100%; font-size: 11px; line-height: 1.55; }
  .admin-view-resumes .admin-corner-logout { top: 2px; right: 3px; font-size: 11px; }
  .admin-view-resumes .admin-title-actions { width: auto; display: flex; margin: 0; }
  .admin-view-resumes .admin-section-link { min-height: 30px; padding: 0 2px; border: 0; border-radius: 0; color: #737d8d; background: transparent; font-size: 11px; }
  .admin-resume-intro { min-height: 0; grid-template-columns: 1fr; align-items: start; gap: 18px; padding: 24px 20px 20px; border-radius: 16px; }
  .admin-resume-intro h2 { margin: 13px 0 9px; font-size: 34px; line-height: 1.04; white-space: normal; }
  .admin-resume-intro h2 > span { display: block; }
  .admin-resume-intro p { font-size: 11px; line-height: 1.65; }
  .admin-resume-meta { grid-template-columns: auto 1fr; grid-template-rows: auto auto; justify-items: start; align-items: end; column-gap: 12px; padding-top: 15px; border-top: 1px solid rgba(255,255,255,.07); text-align: left; }
  .admin-resume-meta b { grid-row: 1 / 3; font-size: 38px; }
  .admin-resume-meta span { margin: 0 0 2px; font-size: 6px; }
  .admin-resume-meta small { margin: 0; display: block; font-size: 8px; }
  .admin-resume-grid { grid-template-columns: 1fr; gap: 10px; margin-top: 10px; }
  .admin-resume-card { min-height: 0; padding: 19px 17px; border-radius: 15px; }
  .admin-resume-card::before { width: 34px; height: 3px; margin-bottom: 20px; }
  .admin-resume-card-copy { margin-top: 30px; }
  .admin-resume-card-copy h3 { margin: 7px 0 12px; font-size: 27px; }
  .admin-resume-card-copy p { font-size: 11px; line-height: 1.7; -webkit-line-clamp: 5; }
  .admin-resume-target { margin-top: 26px; padding-top: 0; }
  .admin-resume-target p { font-size: 10px; }
  .admin-resume-proof { margin-top: 16px; }
  .admin-resume-card > footer { margin-top: 18px; }
  .admin-resume-card > footer button,.admin-resume-card > footer a { min-height: 44px; font-size: 11px; }
  .admin-resume-dialog { width: 100vw; max-width: none; height: 100dvh; max-height: none; border-radius: 0; }
  .admin-resume-dialog-shell { height: 100dvh; max-height: none; }
  .admin-resume-dialog-shell > header { min-height: 104px; padding: 21px 17px 16px; }
  .admin-resume-dialog-shell > header h2 { font-size: 27px; }
  .admin-resume-dialog-shell > header p { max-width: 280px; line-height: 1.5; }
  .admin-resume-editor { padding: 18px 14px 32px; }
  .admin-resume-edit-fields,.admin-resume-edit-unit:not(details) { grid-template-columns: 1fr; }
  .admin-resume-field input,.admin-resume-field textarea { min-height: 46px; font-size: 16px; }
  .admin-resume-bullets > div { grid-template-columns: 1fr; }
  .admin-resume-dialog-shell > footer { min-height: 92px; display: grid; gap: 8px; padding: 12px 14px; }
  .admin-resume-dialog-shell > footer > div { width: 100%; display: grid; grid-template-columns: 1fr 1fr; }
  .admin-resume-dialog-shell > footer button { min-width: 0; min-height: 44px; }
}

/* Keep workspace navigation out of the range / refresh layout. */
.admin-view-monitor .admin-title-actions,
.admin-view-applications .admin-title-actions,
.admin-view-knowledge .admin-title-actions { position: static; }
.admin-view-monitor .admin-section-link-monitor,
.admin-view-applications .admin-section-link-applications,
.admin-view-knowledge .admin-section-link-knowledge { display: none !important; }
.admin-section-nav { position: absolute; z-index: 4; top: 30px; right: 0; display: grid; justify-items: end; gap: 1px; }
.admin-title-actions .admin-section-nav .admin-section-link { position: static; min-height: 25px; display: flex; align-items: center; justify-content: flex-end; padding: 0 3px; border: 0; border-radius: 0; color: #737d8d; background: transparent; font-size: 9px; line-height: 1; }
.admin-title-actions .admin-section-nav .admin-section-link:hover { color: #fff; background: transparent; }

@media (max-width: 640px) {
  .admin-section-nav { top: 32px; right: 3px; }
  .admin-title-actions .admin-section-nav .admin-section-link { min-height: 26px; font-size: 10px; }
}

/* Admin workspaces are isolated before JavaScript runs. This keeps a slow or
   interrupted script from stacking the three consoles into one document. */
.admin-application-panel,
.admin-application-records-panel,
.admin-knowledge-workspace { display: none !important; }
.admin-view-applications .admin-application-panel,
.admin-view-applications .admin-application-records-panel { display: block !important; }
.admin-view-knowledge .admin-knowledge-workspace { display: block !important; }

/* The activity stream is a bounded tool, not the page's document flow. */
.admin-view-monitor .admin-live-panel,
.admin-view-monitor .admin-pages-panel { min-height: 0; }
.admin-view-monitor .admin-table-wrap { overscroll-behavior: contain; scrollbar-gutter: stable; }

@media (max-width: 640px) {
  .admin-view-monitor .admin-traffic-tools { min-width: 0; align-items: flex-end; }
  .admin-view-monitor .admin-traffic-filter { max-width: 100%; flex-wrap: wrap; justify-content: flex-end; }
  .admin-view-monitor .admin-panel .admin-traffic-filter button { min-width: 38px; flex: 1 0 auto; }
}
