@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root { --ink: #f5f2ea; --muted: #f5f2ea; --paper: #090a09; --card: #121513; --line: #3e443b; --lime: #8fb34f; --gold: #d6ad5b; }
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; color: var(--ink); background: radial-gradient(circle at 80% 0, rgba(214,173,91,.18) 0, transparent 28%), radial-gradient(circle at 10% 80%, rgba(143,179,79,.08) 0, transparent 25%), var(--paper); font-family: 'Space Grotesk', sans-serif; }
.noise { position: fixed; inset: 0; pointer-events: none; opacity: .18; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.16'/%3E%3C/svg%3E"); }
.shell { position: relative; width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: 34px 0 80px; }
.auth-layout { min-height: calc(100vh - 114px); display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 8vw; }
.brand-panel { max-width: 620px; animation: rise .7s ease both; }
.eyebrow, .metric-label { margin: 0 0 16px; color: #718239; font: 500 12px/1.2 'DM Mono', monospace; letter-spacing: .13em; text-transform: uppercase; }
h1 { max-width: 650px; margin: 0; font-size: clamp(3.5rem, 8vw, 7.8rem); line-height: .9; letter-spacing: -.08em; }
h2 { margin: 0; font-size: clamp(2rem, 4vw, 4.2rem); letter-spacing: -.07em; line-height: .9; }
h3 { margin: 0; font-size: 1.65rem; letter-spacing: -.04em; }
.lede { max-width: 480px; margin: 32px 0; color: var(--muted); font-size: 1.15rem; line-height: 1.55; }
.signal-row { display: flex; align-items: center; gap: 10px; font: 500 12px 'DM Mono', monospace; text-transform: uppercase; }
.signal-dot { width: 9px; height: 9px; border-radius: 50%; background: #6c9a2c; box-shadow: 0 0 0 5px #dbeab7; }
.card { border: 1px solid var(--line); border-radius: 22px; background: linear-gradient(135deg, rgba(25,30,25,.96), rgba(15,18,16,.94)); box-shadow: 0 18px 60px rgba(0,0,0,.28); }
.auth-card { padding: 28px; animation: rise .7s .12s ease both; }
.tabs { display: flex; gap: 24px; border-bottom: 1px solid var(--line); margin-bottom: 26px; }
.tab { border: 0; padding: 0 0 14px; color: var(--muted); background: none; font: 600 15px 'Space Grotesk'; cursor: pointer; }
.tab.active { color: var(--ink); border-bottom: 3px solid var(--lime); }
label { display: grid; gap: 8px; margin: 18px 0; color: var(--muted); font: 500 12px 'DM Mono', monospace; text-transform: uppercase; letter-spacing: .04em; }
input, select { width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 14px; color: var(--ink); background: #20251f; font: 16px 'Space Grotesk'; text-transform: none; letter-spacing: normal; }
textarea { width: 100%; min-height: 92px; resize: vertical; border: 1px solid var(--line); border-radius: 10px; padding: 14px; color: var(--ink); background: #20251f; font: 16px 'Space Grotesk'; }
input:focus, select:focus, textarea:focus { outline: 3px solid rgba(214,173,91,.24); border-color: var(--lime); }
button { font-family: inherit; }
.primary-button, .secondary-button, .ghost-button { border-radius: 999px; padding: 13px 18px; cursor: pointer; font-weight: 700; }
.primary-button { width: 100%; border: 1px solid var(--ink); color: var(--ink); background: var(--lime); }
.secondary-button { border: 1px solid var(--ink); background: transparent; }
.ghost-button { border: 1px solid var(--line); background: transparent; }
.arrow { float: right; font-family: 'DM Mono'; }
.fine-print, .muted { color: var(--muted); font-size: 13px; line-height: 1.5; }
.message { min-height: 20px; margin: 12px 0; color: #a7462e; font-size: 14px; }
.message.success { color: #4b7020; }
.hidden { display: none !important; }
.topbar, .section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; }
.topbar-menu { display: flex; align-items: center; gap: 12px; }
.mobile-menu-toggle { display: none; }
.dashboard { animation: rise .5s ease both; }
.topbar { margin: 30px 0 45px; }
.topbar-actions { display: flex; align-items: center; gap: 12px; }
.notification-menu { position: relative; }
.notification-button { position: relative; display: grid; width: 48px; height: 48px; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--ink); background: var(--card); cursor: pointer; font-size: 21px; }
.notification-button:hover { border-color: #91ad3f; }
.bell-icon { line-height: 1; filter: grayscale(1); }
.notification-count { position: absolute; top: -4px; right: -3px; min-width: 20px; height: 20px; padding: 2px 5px; border: 2px solid var(--card); border-radius: 999px; color: var(--paper); background: var(--lime); font: 700 11px/16px 'DM Mono', monospace; text-align: center; }
.notification-popover { position: absolute; z-index: 20; top: 58px; right: 0; width: min(390px, calc(100vw - 40px)); border: 1px solid var(--line); border-radius: 18px; background: var(--card); box-shadow: 0 18px 50px rgba(47,55,32,.18); overflow: hidden; }
.notification-popover-heading { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.popover-close { border: 0; color: var(--muted); background: none; font-size: 22px; cursor: pointer; }
.notification-list { max-height: 420px; overflow-y: auto; }
.notification-list > .muted { display: block; margin: 0; padding: 18px; }
.notification-item { padding: 15px 18px; border-bottom: 1px solid var(--line); }
.notification-item:last-child { border-bottom: 0; }
.notification-item strong, .notification-item p, .notification-item .muted { display: block; }
.notification-item p { margin: 6px 0; color: var(--muted); font-size: 13px; line-height: 1.45; }
.notification-item strong, .notification-item .muted { color: var(--lime); }
.notification-item p { color: var(--ink); }
.notification-unread { border-left: 4px solid var(--lime); background: rgba(143,179,79,.12); }
.metric-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 18px; }
.dashboard-columns { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: start; }
.dashboard-columns > section { display: flex; min-width: 0; margin-top: 18px; flex-direction: column; }
.dashboard-columns #agent-section, .dashboard-columns .contacts-card, .dashboard-columns .reports-card { height: 100%; }
.metric { display: grid; gap: 7px; padding: 22px; }
.metric strong { font-size: 1.8rem; letter-spacing: -.05em; }
.status-badge { justify-self: start; width: fit-content; padding: 5px 9px; border-radius: 999px; font: 500 11px 'DM Mono', monospace; letter-spacing: .04em; text-transform: uppercase; }
.status-verified { color: #10150e; background: #d6ad5b; }
.status-pending { color: #21170d; background: #f0b66b; }
.status-unverified { color: #d1d5c9; background: #343a33; }
.setup-card, #agent-section { padding: 26px; margin-top: 18px; }
.inline-form { display: grid; grid-template-columns: 1.2fr 1.2fr .8fr auto; align-items: end; gap: 14px; }
.entity-form { grid-template-columns: minmax(0, 1fr) auto; }
.inline-form label { margin: 0; }
.agent-field { min-width: 0; }
.agent-field > label { display: block; margin: 0 0 8px; }
.agent-field select { min-height: 126px; padding: 8px; }
.agent-field option { padding: 5px; }
.field-help, .agent-form-note { margin: 7px 0 0; color: var(--muted); font-size: 12px; line-height: 1.4; }
.agent-form-note { grid-column: 1 / -1; margin: 0; }
.inline-form .primary-button { width: auto; white-space: nowrap; }
.form-warning { grid-column: 1 / -1; margin: 0; padding: 12px 14px; border: 1px solid #e1b16c; border-radius: 12px; color: #87501e; background: #fff5df; font-size: 14px; line-height: 1.45; }
.verification-details { margin-top: 18px; padding: 18px; border: 1px dashed #91ad3f; border-radius: 14px; color: var(--muted); line-height: 1.55; }
.verification-details strong { color: var(--ink); }
.verification-details button { margin: 12px 10px 0 0; }
.verification-details code { overflow-wrap: anywhere; color: var(--ink); font-family: 'DM Mono', monospace; font-size: .88em; }
.dns-record-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 16px; }
.dns-record-item { display: grid; gap: 7px; align-content: start; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.dns-record-item span { color: var(--muted); font: 11px 'DM Mono', monospace; letter-spacing: .06em; text-transform: uppercase; }
.dns-record-item code { color: #506f14; font-weight: 700; }
.dns-record-wide { grid-column: 1 / -1; }
.copy-button { justify-self: start; margin-top: 0 !important; border: 1px solid var(--line); border-radius: 999px; padding: 6px 10px; color: var(--ink); background: #f3f8df; font-size: 12px; cursor: pointer; }
.dns-visual { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 18px; }
.dns-step { padding: 8px 10px; border-radius: 8px; color: #506f14; background: #edf6cf; font: 12px 'DM Mono', monospace; }
.dns-arrow { color: var(--muted); }
.dns-full-host { margin-bottom: 0; }
.integration-link-panel { margin-top: 22px; padding: 18px; border: 1px dashed #91ad3f; border-radius: 14px; background: #f7fbe9; }
.connect-panel-heading, .provider-instructions-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.connect-panel-heading p { margin: 5px 0 0; }
.provider-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 18px; }
.provider-card { display: grid; grid-template-columns: 42px 1fr auto; align-items: center; gap: 12px; padding: 13px; border: 1px solid var(--line); border-radius: 14px; color: var(--ink); background: #fff; text-align: left; cursor: pointer; transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease; }
.provider-card:hover { border-color: #91ad3f; box-shadow: 0 8px 20px rgba(47,55,32,.08); transform: translateY(-2px); }
.provider-mark { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 11px; color: #506f14; background: #edf6cf; font: 500 11px 'DM Mono', monospace; }
.provider-card strong, .provider-card small { display: block; }
.provider-card small { margin-top: 3px; color: var(--muted); font-size: 11px; }
.provider-arrow { color: #718239; font-family: 'DM Mono'; }
.provider-instructions { margin-top: 16px; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: #fffdf7; }
.provider-instructions h4 { margin: 0; font-size: 1.2rem; }
.provider-instructions .eyebrow { margin-bottom: 7px; }
.provider-instructions ol { margin: 14px 0; padding-left: 20px; color: var(--muted); line-height: 1.7; }
.provider-instructions code { color: #506f14; font-family: 'DM Mono', monospace; font-size: .9em; overflow-wrap: anywhere; }
.provider-fields { display: grid; gap: 8px; margin: 16px 0; }
.provider-field { display: grid; grid-template-columns: 180px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 10px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.provider-field span { color: var(--muted); font: 11px 'DM Mono', monospace; text-transform: uppercase; }
.provider-field code { overflow-wrap: anywhere; }
.provider-field .copy-button { margin: 0; }
.provider-link { display: inline-block; text-decoration: none; }
.integration-link-value { display: flex; align-items: center; gap: 12px; margin-top: 12px; }
.integration-link-value code { flex: 1; overflow-wrap: anywhere; color: #506f14; font: 12px 'DM Mono', monospace; }
.integration-link-value .secondary-button { flex: 0 0 auto; white-space: nowrap; }
.agent-list { display: grid; gap: 10px; margin-top: 24px; }
.agent-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; border-top: 1px solid var(--line); padding: 17px 0 5px; }
.agent-actions { display: flex; align-items: center; gap: 16px; }
.danger-button { min-height: 46px; padding: 0 18px; border: 0; border-radius: 0; color: #fff; background: #c23b3b; cursor: pointer; font-weight: 700; }
.danger-button:hover { background: #a92f2f; }
.danger-button:disabled, .primary-button:disabled { opacity: .45; cursor: not-allowed; }
.inline-form-message { grid-column: 1 / -1; margin: 0; min-height: 0; }
.agent-name { font-weight: 700; }
.agent-meta { color: var(--muted); font: 12px 'DM Mono'; }
.credential-panel { margin: 0 0 10px; padding: 18px; border: 1px dashed #91ad3f; border-radius: 14px; background: #f7fbe9; }
.credential-panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.credential-panel-heading p { margin: 5px 0 0; }
.credential-list { display: grid; gap: 0; margin-top: 14px; }
.credential-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 13px 0; border-top: 1px solid var(--line); }
.credential-row > div:first-child { display: grid; gap: 3px; }
.credential-row-actions { display: flex; align-items: center; gap: 10px; }
.credential-secret-panel { margin-top: 14px; padding: 14px; border: 1px solid #e1b16c; border-radius: 12px; background: #fff5df; }
.credential-secret-value { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.credential-secret-value code { flex: 1; overflow-wrap: anywhere; color: #506f14; font: 12px 'DM Mono', monospace; }
.credential-secret-value .secondary-button { white-space: nowrap; }
.credential-panel code { color: #506f14; font-family: 'DM Mono', monospace; font-size: .9em; }
.rating-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 24px; }
.summary-stat, .rating-history-row { border-top: 1px solid var(--line); padding: 16px 0; }
.summary-stat strong { display: block; font-size: 2rem; }
.summary-stat span, .rating-history-row span { display: block; color: var(--muted); font-size: 13px; }
.rating-history { display: grid; gap: 0; margin-top: 12px; }
.rating-history-row { display: flex; justify-content: space-between; gap: 16px; }
.reports-card { margin-top: 18px; padding: 26px; }
.contacts-card { margin-top: 18px; padding: 26px; }
.contacts-list { display: grid; gap: 0; margin-top: 18px; }
.contact-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 15px 0; border-top: 1px solid var(--line); }
.contact-row strong, .contact-row .muted { display: block; }
.contact-row .muted { margin-top: 4px; overflow-wrap: anywhere; font: 12px 'DM Mono', monospace; }
.network-card { margin-top: 18px; padding: 26px; }
.network-lede { max-width: 820px; margin: 14px 0 24px; color: var(--muted); font-size: 1.05rem; line-height: 1.55; }
.network-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.network-steps article { min-height: 150px; padding: 18px; border: 1px solid var(--line); border-radius: 16px; background: rgba(214,173,91,.06); }
.network-step-number { display: block; margin-bottom: 22px; color: var(--lime); font: 500 12px 'DM Mono', monospace; }
.network-steps p { margin: 8px 0 0; color: var(--muted); font-size: 13px; line-height: 1.45; }
.network-boundary { margin: 22px 0 0; padding-top: 16px; border-top: 1px solid var(--line); color: var(--muted); font: 12px 'DM Mono', monospace; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 760px) { .shell { width: min(100% - 28px, 620px); padding-top: 20px; } .auth-layout { min-height: auto; grid-template-columns: 1fr; gap: 38px; padding: 8vh 0; } h1 { font-size: clamp(3.4rem, 17vw, 6rem); } .metric-grid, .rating-summary, .provider-grid, .network-steps { grid-template-columns: 1fr; } .inline-form, .entity-form { grid-template-columns: 1fr; } .inline-form .primary-button { width: 100%; } .dns-record-grid { grid-template-columns: 1fr; } .dns-record-wide { grid-column: auto; } .agent-row { align-items: flex-start; } .agent-actions { flex-direction: column; align-items: flex-end; gap: 10px; } .credential-panel-heading, .credential-row, .credential-secret-value, .connect-panel-heading, .provider-instructions-heading { align-items: stretch; flex-direction: column; } .provider-field { grid-template-columns: 1fr; } .integration-link-value { align-items: stretch; flex-direction: column; } .topbar { align-items: start; } }

/* Serpyn network surface: hard edges, signal lines, and readable contrast. */
.auth-layout { position: relative; overflow: hidden; grid-template-columns: minmax(0, 1.25fr) minmax(340px, .75fr); }
.auth-layout::before { content: ''; position: absolute; z-index: -1; width: 62vw; height: 62vw; right: -22vw; top: -16vw; border: 1px solid rgba(214,173,91,.2); transform: rotate(35deg); box-shadow: 0 0 0 22px rgba(214,173,91,.03), 0 0 0 44px rgba(214,173,91,.03); }
.brand-panel { position: relative; min-height: 580px; display: flex; flex-direction: column; justify-content: center; }
.brand-panel h1 { max-width: 700px; text-transform: uppercase; }
.brand-panel .lede { max-width: 560px; }
.auth-card, .card { border-radius: 2px; clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 22px 100%, 0 calc(100% - 22px)); }
.auth-card { position: relative; border-color: rgba(214,173,91,.46); background: linear-gradient(145deg, rgba(23,27,23,.98), rgba(10,12,11,.98)); }
.auth-card::before, .card::before { content: ''; position: absolute; inset: 10px; border: 1px solid rgba(214,173,91,.1); pointer-events: none; }
.public-network-metrics { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin-top: -8px; }
.public-network-metrics > div { min-width: 0; padding: 16px 14px; border-left: 3px solid var(--lime); background: rgba(214,173,91,.06); clip-path: polygon(0 0, 100% 0, calc(100% - 12px) 100%, 0 100%); }
.public-network-metrics strong, .public-network-metrics span { display: block; }
.public-network-metrics strong { color: var(--lime); font: 500 clamp(30px, 4vw, 52px) 'DM Mono', monospace; letter-spacing: -.08em; }
.public-network-metrics span { margin-top: 5px; color: var(--muted); font: 10px 'DM Mono', monospace; letter-spacing: .08em; text-transform: uppercase; }
.network-graphic { position: absolute; right: 3%; bottom: 4%; width: 230px; height: 230px; border: 1px solid rgba(214,173,91,.22); transform: rotate(45deg); opacity: .8; }
.network-graphic::before, .network-graphic::after { content: ''; position: absolute; inset: 28px; border: 1px solid rgba(143,179,79,.3); }
.network-graphic::after { inset: 62px; border-color: rgba(214,173,91,.46); }
.network-core { position: absolute; inset: 98px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 9px rgba(143,179,79,.12), 0 0 36px rgba(143,179,79,.7); }
.network-graphic i { position: absolute; width: 7px; height: 7px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 16px var(--lime); }
.network-graphic i:nth-of-type(1) { left: 20px; top: 20px; }.network-graphic i:nth-of-type(2) { right: 20px; top: 20px; }.network-graphic i:nth-of-type(3) { right: 20px; bottom: 20px; }.network-graphic i:nth-of-type(4) { left: 20px; bottom: 20px; }
.dashboard { position: relative; }
.dashboard::before { content: ''; position: fixed; z-index: -1; inset: 0; background: linear-gradient(105deg, transparent 0 48%, rgba(214,173,91,.04) 48.1% 48.4%, transparent 48.5% 100%); pointer-events: none; }
.topbar { padding-bottom: 26px; border-bottom: 1px solid rgba(214,173,91,.26); }
.metric { position: relative; min-height: 150px; border-color: rgba(214,173,91,.26); }
.metric strong { color: var(--ink); }
.metric-label { color: var(--lime); }
.setup-card, #agent-section, .contacts-card, .network-card, .reports-card, #rating-section { position: relative; border-color: rgba(214,173,91,.28); }
.primary-button { border-radius: 2px; clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px)); color: #0b0d0c; background: var(--lime); }
.primary-button:hover { background: #f1c870; transform: translateY(-1px); }
.secondary-button, .ghost-button { border-radius: 2px; color: var(--ink); border-color: rgba(214,173,91,.5); }
.agent-field select, .agent-field input { min-height: 48px; }
.agent-access-note { margin-top: 8px; color: var(--lime); font: 11px 'DM Mono', monospace; }
.contacts-network-board { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; margin-top: 20px; }
.contact-node { position: relative; display: grid; grid-template-columns: 16px 1fr auto; align-items: center; gap: 13px; min-height: 110px; padding: 16px; border: 1px solid rgba(214,173,91,.3); background: rgba(214,173,91,.04); clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px)); }
.contact-node-signal { width: 10px; height: 10px; border-radius: 50%; background: #5f665c; box-shadow: 0 0 0 5px rgba(95,102,92,.12); }
.contact-node-signal.is-active { background: var(--lime); box-shadow: 0 0 0 5px rgba(214,173,91,.16), 0 0 16px var(--lime); }
.contact-node-copy strong, .contact-node-copy span { display: block; }
.contact-node-copy .muted { margin-top: 5px; overflow-wrap: anywhere; font: 10px 'DM Mono', monospace; }
.contact-presence { margin-top: 8px; color: var(--lime); font: 10px 'DM Mono', monospace; text-transform: uppercase; }
.contact-node .ghost-button { padding: 8px 10px; font-size: 11px; }
.notification-unread { border-left-color: var(--lime); background: rgba(143,179,79,.11); }
.notification-item p { color: var(--ink); }
.network-steps article { border-radius: 2px; clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px)); background: rgba(214,173,91,.05); }
@media (max-width: 760px) { .brand-panel { min-height: 480px; } .network-graphic { width: 150px; height: 150px; right: 2%; bottom: 0; } .network-core { inset: 64px; } .public-network-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 35px; } .public-network-metrics > div { min-width: 0; } .dashboard-columns { grid-template-columns: 1fr; } .contact-node { grid-template-columns: 16px 1fr; } .contact-node .ghost-button { grid-column: 2; justify-self: start; } }

/* Final visual system: charcoal, white, green, and gold only. */
:root {
  --ink: #f5f2ea;
  --muted: #f5f2ea;
  --paper: #090a09;
  --card: #121513;
  --line: #3e443b;
  --lime: #8fb34f;
  --gold: #d6ad5b;
}

body {
  background: radial-gradient(circle at 80% 0, rgba(214,173,91,.14) 0, transparent 28%), radial-gradient(circle at 10% 80%, rgba(143,179,79,.08) 0, transparent 25%), var(--paper);
}

h1, h2, h3, h4, .eyebrow, .metric-label { color: var(--lime); }
h1 { font-size: clamp(3.1rem, 6.4vw, 6.4rem); }
.auth-layout { min-height: calc(100vh - 68px); grid-template-rows: minmax(0, 1fr) auto; gap: 10px 7vw; }
.brand-panel { min-height: 0; }
.brand-panel .lede { margin: 22px 0; }

.public-network-metrics { grid-column: 1 / -1; margin-top: 0; }
.public-network-metrics > div { padding: 10px 14px 8px; border-left-color: var(--lime); background: rgba(143,179,79,.08); }
.public-network-metrics strong { color: var(--lime); font: 500 clamp(32px, 4.2vw, 58px) 'DM Mono', monospace; letter-spacing: -.08em; }
.public-network-metrics span { margin-top: 3px; color: var(--lime); font: 600 12px/1.05 'DM Mono', monospace; letter-spacing: .08em; text-transform: uppercase; }
.public-network-metrics .metric-unit { margin: 0 0 4px; color: var(--gold); font-size: 10px; }
.public-network-metrics strong + span { min-height: 25px; }

.network-core { background: var(--lime); box-shadow: 0 0 0 9px rgba(143,179,79,.14), 0 0 36px rgba(143,179,79,.7); }
.network-graphic::before { border-color: rgba(143,179,79,.3); }
.network-core, .network-graphic i { background-color: var(--lime); }
.network-graphic i { box-shadow: 0 0 16px var(--lime); }
.tab.active { border-bottom-color: var(--lime); }

button, .primary-button, .secondary-button, .ghost-button, .notification-button, .account-button { border-radius: 0 !important; }
.primary-button, .secondary-button, .ghost-button { border: 0; color: var(--paper); background: var(--gold); }
.primary-button:hover, .secondary-button:hover, .ghost-button:hover { color: var(--paper); background: var(--lime); transform: translateY(-1px); }
.notification-button, .account-button { border: 0; color: var(--paper); background: var(--gold); }
.notification-button:hover, .account-button:hover { background: var(--lime); }
.notification-count { border-color: var(--card); border-radius: 0; color: var(--paper); background: var(--lime); }
.status-badge { border-radius: 0; color: var(--paper); background: var(--lime); }
.status-pending { color: var(--paper); background: var(--gold); }
.status-unverified { color: var(--paper); background: var(--muted); }
.notification-unread { border-left-color: var(--lime); background: rgba(143,179,79,.12); }
.notification-item strong, .notification-item .muted { color: var(--gold); }
.notification-item p { color: var(--ink); }

.account-menu { position: relative; }
.account-button { display: grid; width: 48px; height: 48px; place-items: center; cursor: pointer; font-size: 24px; }
.account-popover { position: absolute; z-index: 25; top: 58px; right: 0; width: min(360px, calc(100vw - 28px)); border: 1px solid var(--gold); background: var(--card); box-shadow: 0 18px 50px rgba(0,0,0,.35); }
.profile-row { display: grid; grid-template-columns: 1fr auto; gap: 5px 14px; padding: 13px 16px; border-bottom: 1px solid var(--line); }
.profile-row:last-child { border-bottom: 0; }
.profile-label { grid-column: 1 / -1; color: var(--gold); font: 600 11px 'DM Mono', monospace; letter-spacing: .08em; text-transform: uppercase; }
.profile-row strong { color: var(--ink); }
.profile-row .muted { text-align: right; }

.network-card { margin-top: 18px; padding: 26px 0; border: 0; background: transparent; box-shadow: none; clip-path: none; }
.network-card::before { display: none; }
.network-steps article { border-radius: 0; background: rgba(143,179,79,.06); }
.network-boundary, .network-disclaimer { max-width: 980px; color: var(--muted); }
.network-disclaimer { margin: 14px 0 0; font-size: 12px; line-height: 1.55; }
.dashboard-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.section-description { margin: 8px 0 0; color: var(--muted); font-size: 1rem; line-height: 1.5; }
.contact-actions { display: flex; align-items: center; gap: 8px; }
.contact-actions .secondary-button, .contact-actions .ghost-button { min-height: 46px; padding: 0 18px; }

@media (min-width: 761px) {
  body.landing { height: 100vh; overflow: hidden; }
}

@media (min-width: 761px) and (max-height: 820px) {
  .shell { padding-top: 18px; padding-bottom: 24px; }
  .auth-layout { min-height: calc(100vh - 42px); gap: 6px 6vw; }
  .brand-panel .lede { margin: 14px 0; }
  .network-graphic { width: 180px; height: 180px; }
  .network-core { inset: 76px; }
  .public-network-metrics > div { padding: 7px 10px 5px; }
}

@media (max-width: 760px) {
  .admin-section-controls { width: 100%; grid-template-columns: minmax(0, 1fr) 144px; flex-basis: 100%; }
  .admin-search-input { width: 100%; min-width: 0; }
  .auth-layout { min-height: auto; grid-template-rows: auto; }
  .public-network-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 12px; }
  .dashboard-columns { grid-template-columns: 1fr; }
}

/* Billing actions use the same visual language on the dashboard and Pricing page. */
.profile-upgrade-button { display: inline-flex; align-items: center; justify-content: center; min-height: 34px; margin-left: auto; padding: 8px 16px; border: 0; border-radius: 0; color: #fff; background: #c23b3b; font: 700 12px 'DM Mono', monospace; text-decoration: none; text-transform: uppercase; cursor: pointer; }
.profile-upgrade-button:hover { background: #df5050; }
.account-pricing-dialog { position: fixed; z-index: 100; inset: 0; display: grid; place-items: center; padding: 24px; background: rgba(0,0,0,.78); }
.account-pricing-dialog-inner { width: min(1240px, 100%); max-height: min(820px, calc(100vh - 48px)); overflow-y: auto; padding: 30px; border: 1px solid var(--gold); background: var(--card); box-shadow: 0 24px 90px rgba(0,0,0,.65); }
.account-pricing-dialog-inner > h2 { margin: 0; color: var(--gold); }
.pricing-table-host { width: 100%; min-width: 0; }
.pricing-unit-cost { color: var(--gold) !important; font: 600 12px 'DM Mono', monospace; }
.pricing-benefits { display: grid; gap: 8px; min-height: 106px; margin: 16px 0 0; padding: 0; list-style: none; color: var(--ink); font-size: 13px; line-height: 1.35; }
.pricing-benefits li::before { content: '✓'; display: inline-block; width: 22px; color: var(--lime); font-weight: 700; }
.pricing-card .primary-button:disabled { opacity: .42; cursor: not-allowed; transform: none; }
.pricing-card .primary-button { min-height: 44px; }
.email-event-card small { overflow-wrap: anywhere; }
.email-event-heading { margin: 24px 0 10px; color: var(--gold); font: 600 14px 'DM Mono', monospace; letter-spacing: .08em; text-transform: uppercase; }
.email-event-list { grid-template-columns: 1fr; gap: 10px; }
.email-event-list .email-event-card { min-height: 0; padding: 14px 16px; }

@media (max-width: 760px) {
  .profile-upgrade-button { grid-column: 1 / -1; justify-self: end; margin-left: 0; }
  .account-pricing-dialog { padding: 12px; }
  .account-pricing-dialog-inner { max-height: calc(100vh - 24px); padding: 20px; }
}

/* Final viewport fit and dashboard text contract. */
@media (min-width: 761px) {
  body.landing .shell { padding-top: 14px; padding-bottom: 18px; }
  body.landing .auth-layout { min-height: calc(100vh - 118px); gap: 4px 6vw; }
  body.landing .brand-panel { padding-top: 0; }
  body.landing .brand-panel h1 { margin-bottom: 24px; }
  body.landing .brand-panel .lede { margin-bottom: 24px; }
  body.landing .auth-layout + .public-links { margin-top: 14px; }
}

.dashboard-mode .topbar { background: transparent !important; backdrop-filter: none !important; }
.dashboard .section-heading + .agent-form-note { margin-top: 24px; color: var(--ink) !important; }
.dashboard .section-heading .section-description { margin-top: 24px; color: var(--ink) !important; }
.dashboard .network-lede, .dashboard .network-boundary, .dashboard .network-boundary p, .dashboard .agent-form-note { color: var(--ink) !important; }
.dashboard .network-boundary strong { color: var(--gold); }
.dashboard .agent-title strong, .dashboard .contact-node-copy > strong { color: var(--gold) !important; font-weight: 700; }
.rename-contact-icon { display: inline-flex; width: 20px; height: 20px; margin-left: 7px; padding: 0; align-items: center; justify-content: center; border: 0; color: var(--gold); background: transparent; font-size: 18px; line-height: 1; cursor: pointer; vertical-align: middle; }
.rename-contact-icon:hover, .rename-contact-icon:focus-visible { color: var(--lime); }
.section-rule { width: 100%; height: 1px; margin-top: 24px; background: rgba(214,173,91,.3); }

/* Keep account and enforcement controls on the same fixed grid track. */
.admin-wide-panel > .section-heading.admin-filter-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 600px);
  align-items: start;
}
.admin-wide-panel > .section-heading > .admin-section-controls {
  width: 100%;
  max-width: 600px;
  min-width: 0;
  flex: none;
}

@media (max-width: 760px) {
  .signal-row { width: 100%; white-space: nowrap; font-size: clamp(8px, 2.35vw, 10px); letter-spacing: -.02em; }
  .signal-divider { margin: 0 5px; }
}

/* Final usability pass: flat icons, mobile-first flow, and one text white. */
.signal-row span { color: var(--gold); }
.public-network-metrics > div,
.public-network-metrics strong,
.public-network-metrics span,
.public-network-metrics .metric-unit { color: var(--ink); }
.public-network-metrics .metric-unit { font-size: 10px; }
.network-steps article strong, .network-steps article h3 { color: var(--gold); }
.network-card > .network-steps { margin-top: 32px; }
.network-lede, .network-boundary, .network-disclaimer { max-width: none; width: 100%; }
.network-boundary { margin-top: 22px; padding-top: 0; border-top: 0; font: 1rem/1.55 'Space Grotesk', sans-serif; }
.network-boundary p { margin: 8px 0; }
.network-disclaimer { margin-top: 14px; font: 1rem/1.55 'Space Grotesk', sans-serif; }
#agent-form { grid-template-columns: repeat(3, minmax(0, 1fr)) auto; }
.status-badge { min-height: 46px; display: inline-flex; align-items: center; padding: 0 18px; border-radius: 4px; }
.agent-actions { align-items: center; }
.agent-actions .secondary-button, .agent-actions .ghost-button { min-height: 46px; padding: 0 18px; }
.agent-actions .status-badge { min-height: 46px; }
.agent-actions > button { width: 148px; min-width: 148px; height: 46px; min-height: 46px; padding: 0 18px; font-size: inherit; }

.robot-icon { position: relative; display: block; width: 23px; height: 18px; border: 2px solid var(--paper); }
.robot-icon::before { content: ''; position: absolute; left: 8px; top: -6px; width: 3px; height: 4px; background: var(--paper); }
.robot-icon::after { content: ''; position: absolute; left: 9px; top: -8px; width: 4px; height: 3px; border: 1px solid var(--paper); }
.robot-icon i { position: absolute; top: 6px; width: 3px; height: 3px; background: var(--paper); }
.robot-icon i:first-child { left: 5px; }
.robot-icon i:last-child { right: 5px; }
.bell-icon { position: relative; display: block; width: 16px; height: 17px; border: 2px solid var(--paper); border-radius: 9px 9px 3px 3px; }
.bell-icon::before { content: ''; position: absolute; left: -4px; right: -4px; bottom: -5px; height: 2px; background: var(--paper); }
.bell-icon::after { content: ''; position: absolute; left: 5px; bottom: -8px; width: 3px; height: 3px; background: var(--paper); }
.profile-row .muted { text-align: left; }

@media (max-width: 760px) {
  .auth-layout { display: flex !important; flex-direction: column !important; grid-template-columns: none !important; grid-template-rows: none !important; width: 100%; min-width: 0; min-height: auto; gap: 22px; padding: 24px 0 36px; overflow: visible; }
  body.landing { height: auto; overflow-x: hidden; }
  .brand-panel, .auth-card, .public-network-metrics { width: 100%; min-width: 0; }
  .brand-panel { min-height: 300px; padding: 10px 0; }
  .brand-panel h1 { max-width: 100%; font-size: clamp(3rem, 16vw, 5rem); }
  .auth-card { width: 100%; padding: 22px 18px; }
  .public-network-metrics { grid-template-columns: 1fr; margin-top: 0; }
  .public-network-metrics > div { display: grid; grid-template-columns: 100px 1fr; align-items: center; column-gap: 12px; padding: 12px; }
  .public-network-metrics .metric-unit { grid-row: 1 / span 2; }
  .public-network-metrics strong { font-size: 42px; }
  .public-network-metrics strong + span { min-height: 0; }
  #agent-form { grid-template-columns: 1fr; }
  .agent-form-note { grid-column: auto; }
  .agent-actions { flex-wrap: wrap; justify-content: flex-end; }
  .contact-actions { grid-column: 2; flex-wrap: wrap; }
  .network-steps { grid-template-columns: 1fr; }
}

/* Final responsive and control contract. Keep the landing card in normal flow on phones. */
.public-network-metrics strong { color: var(--gold); }
.public-network-metrics { grid-template-columns: 1fr 1fr 1.7fr 1fr 1fr; }
.public-network-metrics strong { font-size: clamp(28px, 3.5vw, 50px); }
.public-network-metrics .metric-heading { margin: 0 0 5px; color: var(--gold); font: 600 11px/1.1 'DM Mono', monospace; letter-spacing: .08em; text-transform: uppercase; }
.public-network-metrics strong + span { color: var(--ink); }
.public-network-metrics strong + span br { display: block; }
.signal-row { line-height: 1.8; }
.signal-row strong { color: var(--gold); }
.public-network-metrics > div, .public-network-metrics span { color: var(--ink); }
.public-network-metrics .metric-unit { color: var(--gold); }
.notification-button, .account-button, #logout-button { min-height: 46px; height: 46px; }
.notification-button, .account-button { width: 46px; }
.robot-icon { width: 24px; height: 20px; }
.bell-icon { width: 18px; height: 20px; }
.notification-popover { border: 1px solid var(--gold); border-radius: 0; background: var(--card); box-shadow: 0 18px 50px rgba(0,0,0,.35); }
.profile-label, .agent-field > label { color: var(--gold); }
.agent-form-note { margin: 0 0 24px; color: var(--muted); font-size: 1rem; line-height: 1.5; }
.agent-field .field-help { margin-top: 7px; color: var(--muted); font-size: .88rem; line-height: 1.3; }
.agent-form-note + .agent-field { grid-column: auto; }
#agent-form > .primary-button { align-self: end; justify-self: end; width: auto; min-width: 132px; border-radius: 0 !important; }
.dashboard-mode #auth-view { display: none !important; }
.dashboard-route #auth-view, .dashboard-route .public-links, .dashboard-route #public-page-dialog { display: none !important; }
.dashboard-route #dashboard-view { display: block !important; }
.dashboard-mode #dashboard-view { display: block !important; }
.dashboard-mode.admin-mode #dashboard-view { display: none !important; }
.dashboard-mode.admin-mode #admin-view { display: block !important; }
.dashboard-mode .topbar { position: sticky; z-index: 30; top: 0; padding-top: 18px; background: rgba(9,10,9,.94); backdrop-filter: blur(16px); }
.agent-title { display: flex; align-items: center; gap: 9px; }
.active-check { display: inline-grid; width: 22px; height: 22px; place-items: center; color: var(--paper); background: var(--lime); font-weight: 700; line-height: 1; }
.agent-copy { min-width: 0; }
.agent-access-note { color: var(--muted); font-size: .88rem; }
.agent-id-copy, .contact-id-copy { display: block; max-width: 100%; padding: 0; overflow: hidden; border: 0; color: var(--muted); background: transparent; font: 11px 'DM Mono', monospace; text-align: left; text-overflow: ellipsis; white-space: nowrap; cursor: pointer; }
.agent-id-copy:hover, .contact-id-copy:hover { color: var(--gold); }
.contact-presence { font: 600 11px 'DM Mono', monospace; letter-spacing: .08em; text-transform: uppercase; }
.contact-presence.is-online { color: var(--lime); }
.contact-presence.is-offline { color: var(--gold); }
.contact-actions button:disabled { cursor: not-allowed; opacity: .38; transform: none; }
.contact-actions .secondary-button, .contact-actions .ghost-button { min-height: 46px; padding: 0 18px; }
.dashboard .primary-button, .dashboard .secondary-button, .dashboard .ghost-button { width: 148px; min-width: 148px; height: 46px; min-height: 46px; padding: 0 16px; border-radius: 0 !important; font-size: 16px; line-height: 1; }
.dashboard .danger-button { width: 148px; min-width: 148px; height: 46px; min-height: 46px; padding: 0 16px; font-size: 16px; line-height: 1; }
.dashboard #show-agent-form { color: var(--paper); background: var(--lime); }
.dashboard .profile-label, .dashboard .agent-field > label, .dashboard .field-help, .dashboard .contact-presence { color: var(--lime); }
.dashboard .notification-button, .dashboard .account-button, .dashboard #logout-button, .dashboard .mobile-menu-toggle { width: 46px; min-width: 46px; }
.dashboard #logout-button { width: 148px; }
.dashboard .agent-actions, .dashboard .contact-actions { align-items: center; }
.dashboard .agent-row, .dashboard .contact-node { padding: 26px 0 16px; box-sizing: border-box; }

@media (max-width: 760px) {
  .auth-view, .brand-panel, .auth-card, .public-network-metrics { max-width: 100%; }
  .auth-card { align-self: stretch; }
  .agent-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .agent-actions { justify-content: flex-start; align-items: flex-start; }
  .contact-node { grid-template-columns: 16px minmax(0, 1fr); }
  .contact-actions { grid-column: 2; justify-content: flex-start; }
  .topbar { position: sticky; top: 0; z-index: 30; align-items: center; margin: 0 -14px 28px; padding: 14px; background: rgba(9,10,9,.96); backdrop-filter: blur(16px); }
  .topbar > div:first-child h2 { font-size: 1.6rem; }
  .topbar-actions { position: relative; display: flex; align-items: center; gap: 8px; }
  .mobile-menu-toggle { display: inline-flex; min-height: 46px; height: 46px; padding: 0 14px; align-items: center; border: 0; color: var(--paper); background: var(--gold); font-weight: 700; cursor: pointer; }
  .topbar-menu { position: absolute; top: 54px; right: 0; display: none; min-width: 190px; padding: 10px; flex-direction: column; align-items: stretch; gap: 8px; border: 1px solid var(--gold); background: var(--card); box-shadow: 0 18px 50px rgba(0,0,0,.45); }
  .topbar-menu.is-open { display: flex; }
  .topbar-menu .account-menu, .topbar-menu .notification-menu { align-self: stretch; }
  .topbar-menu .account-button, .topbar-menu .notification-button, .topbar-menu #logout-button { width: 100%; }
  .topbar-menu .account-popover, .topbar-menu .notification-popover { position: fixed; top: 76px; right: 14px; width: min(360px, calc(100vw - 28px)); }
  #agent-form > .primary-button { grid-column: 1; justify-self: end; }
  .dashboard .primary-button, .dashboard .secondary-button, .dashboard .ghost-button { width: 148px; min-width: 148px; }
}

/* Admin control plane and final dashboard action alignment. */
.dashboard .agent-actions, .dashboard .contact-actions { flex-direction: column; align-items: flex-start; gap: 10px; }
.dashboard .agent-actions .secondary-button, .dashboard .agent-actions .ghost-button, .dashboard .contact-actions .secondary-button, .dashboard .contact-actions .ghost-button { align-self: flex-start; }
.admin-dashboard h1, .dashboard h1 { color: var(--lime); font-size: clamp(2rem, 4vw, 4.2rem); letter-spacing: -.07em; line-height: .9; }
.admin-metrics { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.admin-metric { display: grid; gap: 9px; min-height: 110px; padding: 18px; border: 1px solid var(--line); background: rgba(143,179,79,.08); }
.admin-metric span, .admin-list-row span { color: var(--lime); font: 600 11px 'DM Mono', monospace; letter-spacing: .08em; text-transform: uppercase; }
.admin-metric strong { color: var(--gold); font: 500 2.4rem 'DM Mono', monospace; }
.admin-columns { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.admin-panel { min-width: 0; padding: 22px; }
.admin-list { display: grid; gap: 8px; margin-top: 18px; }
.admin-list-row { display: flex; justify-content: space-between; gap: 14px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.admin-list-row strong { color: var(--ink); font: 500 1.2rem 'DM Mono', monospace; }
.admin-list-card { display: grid; gap: 6px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.admin-list-card strong { color: var(--gold); }
.admin-list-card span, .admin-list-card small { color: var(--muted); }
.admin-list-card p { margin: 0; color: var(--ink); line-height: 1.45; }
.admin-decision-actions { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.admin-wide-panel { margin-top: 18px; }
.admin-dashboard h2 { font-size: clamp(1.2rem, 2.4vw, 2.5rem); }
.admin-dashboard h3 { font-size: 1.2rem; }
.admin-chart-first { margin-bottom: 18px; }
.admin-metrics { margin-top: 0; margin-bottom: 18px; }
.admin-columns { margin-top: 18px; }
.admin-window-select { width: auto; min-width: 130px; padding: 10px 12px; }
.admin-panel .section-heading { align-items: flex-start; }
.admin-panel .section-heading > div { flex: 1 1 auto; min-width: 0; }
.admin-panel .section-heading .admin-window-select { flex: 0 0 auto; align-self: flex-start; margin: 0; }
.admin-section-controls { display: grid; grid-template-columns: minmax(0, 1fr) 144px; align-items: center; gap: 10px; width: 600px; flex: 0 0 600px; }
.admin-search-input { width: 100%; min-width: 0; height: 48px; padding: 10px 12px; box-sizing: border-box; }
.admin-section-controls select { height: 48px; box-sizing: border-box; }
.admin-growth-chart { margin-top: 18px; min-height: 220px; border: 1px solid var(--line); background: rgba(143,179,79,.04); }
.admin-growth-chart svg { display: block; width: 100%; height: 220px; }
.admin-revenue-panel { margin-bottom: 18px; }
.admin-revenue-chart { display: grid; gap: 18px; margin-top: 18px; }
.admin-subchart { min-width: 0; }
.admin-subchart h3 { margin: 0 0 10px; color: var(--gold); }
.admin-data-chart { position: relative; border: 1px solid var(--line); background: rgba(143,179,79,.04); }
.admin-chart-scroll { overflow-x: auto; overscroll-behavior-x: contain; touch-action: pan-x; }
.admin-data-chart svg { display: block; width: 100%; min-width: 860px; height: 280px; }
.chart-toolbar { display: flex; align-items: center; gap: 6px; padding: 8px 12px; border-bottom: 1px solid var(--line); font: 12px 'DM Mono', monospace; color: var(--muted); }
.chart-toolbar button { min-width: 34px; height: 30px; padding: 0 9px; border: 1px solid var(--line); background: var(--panel); color: var(--light); cursor: pointer; font: inherit; }
.chart-toolbar button:hover, .chart-toolbar button:focus-visible { border-color: var(--gold); color: var(--gold); }
.chart-toolbar span { margin-left: auto; }
.chart-grid { stroke: var(--line); stroke-width: 1; }
.chart-axis-label, .chart-x-label { fill: var(--muted); font: 11px 'DM Mono', monospace; }
.chart-point { cursor: pointer; fill: var(--ink); stroke: var(--bg); stroke-width: 2; }
.chart-point.growth-entities, .growth-entities { stroke: var(--gold); }
.chart-point.growth-conversations, .growth-conversations { stroke: var(--lime); }
.chart-point.growth-revenue, .growth-revenue { stroke: var(--gold); }
.chart-point.growth-plan-free, .growth-plan-free { stroke: var(--muted); }
.chart-point.growth-plan-trial, .growth-plan-trial { stroke: var(--gold); }
.chart-point.growth-plan-starter, .growth-plan-starter { stroke: #78a9d8; }
.chart-point.growth-plan-growth, .growth-plan-growth { stroke: #c77dff; }
.chart-point.growth-plan-pro, .growth-plan-pro { stroke: #f07878; }
.chart-tooltip { position: absolute; top: 12px; right: 12px; padding: 8px 10px; color: var(--ink); background: var(--card); border: 1px solid var(--gold); font: 11px 'DM Mono', monospace; }
.chart-tooltip.hidden { display: none; }
.growth-line { fill: none; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.growth-revenue { stroke: var(--gold); }
.legend-revenue { background: var(--gold); }
.growth-line.is-hidden { display: none; }
.growth-entities { stroke: var(--gold); }
.growth-legend { display: flex; flex-wrap: wrap; gap: 18px; padding: 12px 16px; font: 12px 'DM Mono', monospace; }
.growth-legend span { display: inline-flex; align-items: center; gap: 7px; }
.growth-toggle { display: inline-flex; align-items: center; gap: 7px; border: 0; padding: 0; color: var(--ink); background: transparent; font: 12px 'DM Mono', monospace; cursor: pointer; }
.growth-toggle:not(.is-visible) { opacity: .4; text-decoration: line-through; }
.growth-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; }
.legend-entity { background: var(--gold); }
.legend-conversation { background: var(--lime); }
.legend-plan-free { background: var(--muted); }
.legend-plan-trial { background: var(--gold); }
.legend-plan-starter { background: #78a9d8; }
.legend-plan-growth { background: #c77dff; }
.legend-plan-pro { background: #f07878; }
.admin-account-list { display: grid; gap: 0; margin-top: 18px; max-height: 420px; overflow-y: auto; }
.admin-account-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; width: 100%; padding: 14px 0; border: 0; border-bottom: 1px solid var(--line); color: var(--ink); background: transparent; text-align: left; cursor: pointer; }
.admin-account-row span { display: grid; gap: 5px; }
.admin-account-row strong { color: var(--gold); }
.admin-account-row small { color: var(--muted); }
.admin-account-row .account-presence { color: var(--ink); }
.admin-account-row .account-presence.online, .admin-account-detail .account-presence.online { color: var(--lime); }
.admin-account-row .account-presence.offline, .admin-account-detail .account-presence.offline { color: var(--ink); }
.account-state { color: var(--lime); font: 600 11px 'DM Mono', monospace; text-transform: uppercase; }
.account-state.restricted, .account-state.banned { color: var(--gold); }
.dashboard-route #admin-view { position: relative; z-index: 100; }
.admin-account-detail:not(.hidden) { display: block !important; visibility: visible; opacity: 1; position: fixed !important; z-index: 2147483647; top: 50% !important; left: 50% !important; width: min(760px, calc(100vw - 32px)); aspect-ratio: 1 / 1; max-height: calc(100vh - 32px); overflow-y: auto; transform: translate(-50%, -50%); padding: 28px; border: 1px solid var(--gold); color: var(--ink) !important; background: var(--card) !important; box-shadow: 0 24px 80px rgba(0,0,0,.9); isolation: isolate; }
.admin-account-detail:not(.hidden)::before { display: none; }
.admin-account-backdrop:not(.hidden) { display: block !important; position: fixed; inset: 0; z-index: 2147483646; background: rgba(0,0,0,.86); backdrop-filter: blur(3px); }
.admin-account-table-head, .admin-account-row { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) 110px; align-items: center; gap: 18px; }
.admin-account-table-head { margin-top: 18px; padding: 0 0 10px; color: var(--gold); font: 600 11px 'DM Mono', monospace; letter-spacing: .08em; text-transform: uppercase; }
.admin-account-detail strong { color: var(--gold); }
.admin-account-detail p { color: var(--ink); line-height: 1.5; }
.notification-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; padding-top: 0; border-top: 0; }
.notification-actions .primary-button, .notification-actions .danger-button { width: 112px; min-width: 112px; height: 40px; min-height: 40px; padding: 0 12px; border-radius: 0; font-size: 14px; }
.admin-modal-error { color: var(--alert) !important; }
.admin-profile-signals { margin: 0 0 18px; padding-left: 20px; color: var(--ink); line-height: 1.6; }
.admin-content-editor { display: grid; gap: 0; margin-top: 18px; }
.admin-content-page { border-bottom: 1px solid var(--line); }
.admin-content-toggle { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 16px 0; border: 0; color: var(--gold); background: transparent; font: 600 1rem 'DM Mono', monospace; text-align: left; cursor: pointer; }
.admin-content-toggle[aria-expanded='true'] .collapse-arrow { transform: rotate(180deg); }
.admin-content-form { display: grid; gap: 10px; padding: 0 0 18px; }
.admin-content-form label { margin: 0; color: var(--gold); }
.admin-content-form textarea { min-height: 120px; }
.admin-content-form .primary-button { width: 148px; justify-self: end; }
.standalone-network-steps { margin-top: 28px; }
.standalone-network-steps article h3 { margin: 0; color: var(--gold); font-size: clamp(1.35rem, 2.4vw, 2.1rem); line-height: 1.08; }
.standalone-network-steps article p { margin-top: 16px; color: var(--ink); font-size: 1rem; line-height: 1.5; }
.public-how-details { display: grid; gap: 8px; margin-top: 28px; }
.public-how-details h2 { margin: 16px 0 0; color: var(--gold); }
.public-how-details p { margin: 0; color: var(--ink); line-height: 1.5; }
.admin-technical-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.admin-technical-region { display: grid; gap: 12px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.admin-technical-region:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.admin-technical-region > h3 { color: var(--gold); font: 600 1rem 'DM Mono', monospace; letter-spacing: .08em; text-transform: uppercase; }
.admin-technical-regions { display: grid; gap: 24px; }
.technical-alert-list { display: grid; gap: 10px; margin-bottom: 20px; }
.technical-alert { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid #ff6b2c; background: #ff6b2c; color: #10130f; }
.technical-alert strong, .technical-alert span { color: #10130f; }
.technical-alert strong { font: 600 12px 'DM Mono', monospace; letter-spacing: .08em; }
.technical-monitoring-error { padding: 16px; border: 1px solid #ff6b2c; color: #ffb08c; background: rgba(255,107,44,.12); }
.admin-technical-group { display: grid; gap: 10px; margin-top: 18px; }
.admin-technical-card { display: grid; gap: 6px; padding: 14px; border: 1px solid var(--line); background: rgba(143,179,79,.05); }
.admin-technical-card strong { color: var(--gold); text-transform: capitalize; }
.admin-technical-card span, .admin-technical-card small { color: var(--ink); }
.standalone-public-page { max-width: 1180px; margin: 10vh auto 0; padding: 42px; }
.standalone-public-page h1 { margin: 18px 0 30px; color: var(--lime); font-size: clamp(3rem, 8vw, 6rem); }
.standalone-public-page h2 { margin: 34px 0 18px; color: var(--lime); font-size: clamp(1.2rem, 2.4vw, 2.5rem); letter-spacing: -.07em; line-height: .9; }
.standalone-public-page-content { color: var(--ink); white-space: pre-wrap; font-size: 1.1rem; line-height: 1.75; }
.about-introduction { max-width: 920px; }
.about-benefits ul { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.about-benefits li { display: grid; gap: 3px; padding: 16px 20px; border-left: 3px solid var(--lime); background: rgba(143,179,79,.06); }
.about-benefits li strong { color: var(--gold); }
.about-benefits li span { color: var(--ink); }
.about-how-it-works .network-steps { margin-top: 0; }
.pricing-intro { color: var(--gold); font-weight: 700; }
.pricing-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; margin: 34px 0; }
.pricing-card { position: relative; border: 1px solid var(--gold); padding: 24px; min-height: 240px; background: rgba(24, 29, 24, .82); }
.pricing-card h2 { color: var(--gold); margin: 18px 0 12px; }
.pricing-card strong { display: block; color: var(--gold); font-size: clamp(2rem, 4vw, 3rem); line-height: 1; margin: 18px 0; }
.pricing-card p { color: var(--ink); }
.pricing-recommendation { display: block; min-height: 1.2em; color: var(--lime); font: 12px 'DM Mono', monospace; text-transform: uppercase; }
.pricing-card .primary-button { margin-top: 18px; width: 100%; }
@media (max-width: 980px) { .pricing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .pricing-grid { grid-template-columns: 1fr; } }
.pricing-table-wrap { width: 100%; overflow-x: auto; margin: 28px 0; }
.pricing-note, .pricing-intro-copy { margin: 22px 0 0; color: var(--muted); }
.pricing-table { width: 100%; min-width: 760px; border-collapse: collapse; table-layout: fixed; }
.pricing-table th, .pricing-table td { padding: 16px 14px; border-bottom: 1px solid var(--line); text-align: center; vertical-align: middle; }
.pricing-table th:first-child { position: sticky; left: 0; z-index: 2; background: var(--card); box-shadow: 8px 0 12px rgba(0,0,0,.16); }
.pricing-table thead th:first-child { z-index: 3; }
.pricing-table thead th:first-child, .pricing-table tbody th { width: 24%; color: var(--gold); text-align: left; }
.pricing-table thead th { color: var(--gold); }
.pricing-table tbody th[scope="row"] { white-space: pre-line; }
.pricing-table .pricing-plan-column { height: 178px; }
.pricing-plan-column strong, .pricing-plan-price, .pricing-unit-cost { display: block; }
.pricing-plan-column strong { margin: 10px 0; color: var(--gold); font-size: 1.2rem; }
.pricing-plan-price { color: var(--ink); font-size: 1rem; font-weight: 600; }
.pricing-plan-price span, .pricing-plan-price small { display: block; }
.pricing-plan-price small { font-size: .82em; }
.pricing-table .pricing-unit-cost { margin-top: 8px; color: var(--gold) !important; font: 500 11px 'DM Mono', monospace; }
.pricing-table tbody th { color: var(--ink); font-weight: 500; }
.pricing-check, .pricing-cross { font-size: 1.25rem; font-weight: 700; }
.pricing-check { color: var(--lime); }
.pricing-cross { color: var(--muted); }
.pricing-action-row th, .pricing-action-row td { border-bottom: 0; padding-top: 24px; }
.pricing-action-row .primary-button { width: 100%; min-width: 128px; margin: 0; }
.account-pricing-dialog .pricing-table-wrap { margin: 20px 0 0; }
.account-pricing-dialog .pricing-table { min-width: 980px; }
.entity-profile-row #profile-billing-plan, .entity-profile-row #profile-next-payment, .entity-profile-row #profile-conversation-usage { grid-column: 1; text-align: left; }
.entity-profile-row #profile-next-payment { margin-top: -2px; }
.entity-profile-row #profile-upgrade-button { grid-column: 2; grid-row: 4 / span 2; align-self: end; width: 100%; min-width: 140px; min-height: 46px; padding: 13px 18px; border: 0; border-radius: 0; color: #fff; background: #c23b3b; font: 700 12px 'DM Mono', monospace; letter-spacing: .04em; text-transform: uppercase; }
.back-link { color: var(--gold); font: 12px 'DM Mono', monospace; text-transform: uppercase; }
.menu-icon, .menu-icon::before, .menu-icon::after { display: block; width: 18px; height: 2px; background: var(--paper); }
.menu-icon { position: relative; }
.menu-icon::before, .menu-icon::after { content: ''; position: absolute; left: 0; }
.menu-icon::before { top: -6px; }
.menu-icon::after { top: 6px; }

@media (max-width: 760px) {
  .admin-metrics, .admin-columns, .admin-technical-grid { grid-template-columns: 1fr; }
  .admin-dashboard .topbar { margin-left: -14px; margin-right: -14px; padding-left: 14px; padding-right: 14px; }
  .admin-wide-panel { padding: 16px; }
  .standalone-public-page { margin-top: 24px; padding: 24px; }
}

/* Final responsive contract: metrics, profile hierarchy, and agent registration. */
html, body { width: 100%; max-width: 100%; overflow-x: hidden; }
body.public-route { height: auto; min-height: 100vh; overflow-y: auto; }
.shell { width: min(1180px, calc(100% - 40px)); max-width: 100%; }
.auth-layout { grid-template-rows: minmax(0, 1fr) auto; }
.auth-layout > .brand-panel { grid-column: 1; grid-row: 1; }
.auth-layout > .auth-card { grid-column: 2; grid-row: 1; }
.auth-layout > .public-network-metrics { grid-column: 1 / -1; grid-row: 2; }
.public-network-metrics .mobile-metric { display: none; }

#dashboard-view h2 { font-size: clamp(1.2rem, 2.4vw, 2.5rem); }
#account-popover .profile-label { color: var(--gold) !important; }
.entity-profile-row { grid-template-columns: minmax(0, 1fr) auto; }
.entity-profile-row #profile-entity-state,
.entity-profile-row #profile-entity-plan { grid-column: 1; }
.entity-profile-row #entity-verification-badge { grid-column: 2; grid-row: 2 / span 2; align-self: start; width: 100%; min-width: 140px; min-height: 46px; display: inline-flex; align-items: center; justify-content: center; padding: 13px 18px; box-sizing: border-box; }
.entity-profile-row #profile-entity-plan { margin-top: -2px; }
#agent-form { grid-template-columns: repeat(3, minmax(0, 1fr)) 148px; align-items: start; }
#agent-form > .primary-button { grid-column: 4; grid-row: 2; align-self: start; justify-self: end; width: 148px; min-width: 148px; height: 46px; min-height: 46px; padding: 0 16px; border-radius: 0 !important; clip-path: none !important; }
#agent-form .agent-field > label { color: var(--gold) !important; }
#agent-form .field-help { color: var(--ink) !important; }
.dashboard .agent-actions, .dashboard .contact-actions { flex-direction: column; align-items: flex-start; }

@media (max-width: 760px) {
  .shell { width: 100%; padding-left: 16px; padding-right: 16px; }
  .auth-layout { display: flex !important; flex-direction: column !important; width: 100%; gap: 22px; padding: 24px 0 36px; }
  .auth-layout > .brand-panel,
  .auth-layout > .public-network-metrics,
  .auth-layout > .auth-card { width: 100%; max-width: 100%; min-width: 0; }
  .auth-layout > .brand-panel { order: 1; }
  .auth-layout > .public-network-metrics { order: 2; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0; }
  .auth-layout > .auth-card { order: 3; align-self: stretch; }
  .public-network-metrics .desktop-metric { display: none; }
  .public-network-metrics .mobile-metric { display: block; min-width: 0; padding: 12px 10px 10px; }
  .public-network-metrics .mobile-metric strong { font-size: clamp(28px, 11vw, 44px); }
  .public-network-metrics .mobile-metric span { font-size: 10px; }
  #agent-form { grid-template-columns: 1fr; }
  #agent-form > .primary-button { grid-column: 1; grid-row: auto; justify-self: end; }
  .entity-profile-row #entity-verification-badge { grid-row: 2 / span 2; }
}
.auth-layout { grid-template-rows: minmax(0, 1fr) auto auto; }
.auth-layout > .brand-panel { grid-column: 1; grid-row: 1 / span 3; }
.auth-layout > .public-network-metrics { grid-column: 1 / -1; grid-row: 3; }
.auth-layout > .auth-card { grid-column: 2; grid-row: 2; }
.public-links { grid-column: 2; grid-row: 1; display: flex; justify-content: flex-end; align-items: end; gap: 16px; }
.public-links button { border: 0; padding: 0; color: var(--gold); background: transparent; font: 11px 'DM Mono', monospace; text-transform: uppercase; cursor: pointer; }
.public-links button:hover { color: var(--ink); }
.public-links a { color: var(--gold); font: 11px 'DM Mono', monospace; text-decoration: none; text-transform: uppercase; }
.public-links a:hover { color: var(--ink); }
.public-links button { white-space: nowrap; }
.public-page-dialog { position: fixed; z-index: 50; inset: 0; display: grid; place-items: center; padding: 20px; background: rgba(0,0,0,.72); }
.public-page-dialog-inner { position: relative; width: min(620px, 100%); padding: 30px; border: 1px solid var(--gold); background: var(--card); box-shadow: 0 24px 80px rgba(0,0,0,.55); }
.public-page-dialog-inner > .ghost-button { position: absolute; top: 18px; right: 18px; width: 100px; }
.public-page-dialog-inner h2 { margin-right: 120px; color: var(--lime); }
.public-page-content { margin-top: 24px; color: var(--ink); line-height: 1.6; }
.agent-form-note { margin: 18px 0 0; color: var(--ink) !important; }
.dashboard-columns #agent-section .agent-form-note,
.dashboard-columns .contacts-card .section-description { min-height: 72px; box-sizing: border-box; }
.dashboard .topbar { align-items: center; }
.dashboard .topbar-menu { align-items: center; }
.dashboard .topbar-menu > .account-menu,
.dashboard .topbar-menu > .notification-menu,
.dashboard .topbar-menu > #public-menu-button,
.dashboard .topbar-menu > #logout-button { align-self: center; }
.dashboard .topbar-menu > .account-menu,
.dashboard .topbar-menu > .notification-menu,
.dashboard .topbar-menu > .public-menu,
.dashboard .topbar-menu > #logout-button { display: flex; align-items: center; height: 46px; }
.dashboard .topbar-menu button { display: inline-flex; align-items: center; justify-content: center; margin: 0; line-height: 1; }
.standalone-network-steps article h3 { font-size: 1.65rem; letter-spacing: -.04em; line-height: 1.08; }
.agent-add-row { display: flex; justify-content: flex-end; margin-top: 18px; }
#agent-form > .primary-button { grid-column: 1 / -1; grid-row: auto; justify-self: end; }
.collapse-arrow { display: inline-block; width: 8px; height: 8px; margin-left: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform .22s ease; }
.is-expanded .collapse-arrow { transform: rotate(225deg) translate(-1px, -1px); }
#agent-form:not(.hidden), #integration-link-panel:not(.hidden), .credential-panel:not(.hidden) { animation: panel-reveal .24s ease both; }
@keyframes panel-reveal { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }
.contacts-network-board { max-height: 360px; overflow-y: auto; padding-right: 8px; }
.contact-node { grid-template-columns: minmax(0, 1fr) auto; min-height: 0; padding: 16px 0; border: 0; border-top: 1px solid var(--line); background: transparent; clip-path: none; }
.contact-node:first-child { border-top: 0; }
.contact-node-signal { display: none; }
.contact-node-copy { min-width: 0; }
.contact-actions { align-self: start; }
.dashboard .profile-label, .dashboard .agent-field > label, .integration-link-panel h4, .credential-panel strong { color: var(--gold) !important; }
.connect-panel-heading strong, .credential-panel-heading strong { color: var(--gold) !important; }
.dashboard .field-help { color: var(--ink) !important; }

/* Keep expandable runtime panels in the dashboard visual system. */
.dashboard .integration-link-panel,
.dashboard .credential-panel,
.dashboard .provider-instructions,
.dashboard .provider-field,
.dashboard .provider-card {
  color: var(--ink);
  background: var(--card);
  border-color: var(--line);
}
.dashboard .provider-card:hover,
.dashboard .provider-card:focus-visible { border-color: var(--gold); background: rgba(214,173,91,.08); }
.dashboard .provider-card strong,
.dashboard .provider-instructions h4,
.dashboard .credential-panel-heading strong { color: var(--gold); }
.dashboard .provider-card small,
.dashboard .provider-instructions li,
.dashboard .provider-field label,
.dashboard .credential-panel p { color: var(--ink); }
.dashboard .provider-mark { color: var(--lime); background: rgba(143,179,79,.16); }
.dashboard .credential-secret-panel { color: var(--ink); background: rgba(214,173,91,.08); border-color: var(--gold); }
.dashboard .credential-panel code,
.dashboard .credential-secret-value code { color: var(--lime); }

@media (max-width: 760px) {
  .auth-layout { grid-template-rows: none; }
  .auth-layout > .brand-panel,
  .auth-layout > .public-network-metrics,
  .auth-layout > .auth-card,
  .auth-layout > .public-links { grid-column: auto; grid-row: auto; }
  .auth-layout > .brand-panel { order: 1; }
  .auth-layout > .public-network-metrics { order: 2; }
  .auth-layout > .auth-card { order: 3; }
  .auth-layout > .public-links { order: 4; width: 100%; justify-content: center; align-items: center; padding: 4px 0 10px; }
  #agent-form > .primary-button { grid-column: 1; justify-self: end; }
  .contact-node { grid-template-columns: minmax(0, 1fr); gap: 14px; padding: 18px 0; }
  .contact-actions { grid-column: 1; }
}

/* Final landing hierarchy and dashboard collapse layout. */
.auth-layout { grid-template-rows: minmax(0, 1fr) auto; }
.auth-layout > .brand-panel { grid-column: 1; grid-row: 1; }
.auth-layout > .auth-card { grid-column: 2; grid-row: 1; }
.auth-layout > .public-network-metrics { grid-column: 1 / -1; grid-row: 2; }
.brand-panel { justify-content: flex-start; padding-top: clamp(44px, 8vh, 110px); }
.brand-panel h1 { margin-bottom: 40px; }
.brand-panel .lede { margin: 0 0 42px; }
.signal-row { margin-top: 0; }
.signal-divider { margin: 0 10px; color: var(--gold); font-style: normal; font-weight: 400; }
.public-links { width: 100%; display: flex; justify-content: center; gap: 20px; margin: 18px 0 0; }
.auth-layout + .public-links { margin-top: 38px; }
.public-links button { border: 0; padding: 0; color: var(--gold); background: transparent; font: 11px 'DM Mono', monospace; text-transform: uppercase; cursor: pointer; }
.public-page-dialog-inner { aspect-ratio: 1 / 1; max-height: calc(100vh - 40px); overflow-y: auto; }
.network-collapsible:not(.hidden) { animation: panel-reveal .24s ease both; }
.agent-form-note { margin: 28px 0 0; color: var(--muted) !important; }
#agent-form { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; margin-top: 18px; }
#agent-form > .primary-button { grid-column: 1 / -1; grid-row: auto; justify-self: end; }
.agent-add-row { justify-content: flex-end; }
.dashboard .agent-actions, .dashboard .contact-actions { align-items: flex-end; }
.dashboard .agent-actions .secondary-button, .dashboard .agent-actions .ghost-button, .dashboard .contact-actions .secondary-button, .dashboard .contact-actions .ghost-button { align-self: flex-end; }

@media (max-width: 760px) {
  .auth-layout { grid-template-rows: none; }
  .auth-layout > .brand-panel,
  .auth-layout > .public-network-metrics,
  .auth-layout > .auth-card { grid-column: auto; grid-row: auto; }
  .auth-layout > .brand-panel { order: 1; }
  .auth-layout > .public-network-metrics { order: 2; }
  .auth-layout > .auth-card { order: 3; }
  .public-links { order: 4; justify-content: center; margin-top: 0; margin-bottom: 14px; }
  .brand-panel { padding-top: 18px; }
  .brand-panel h1 { margin-bottom: 26px; }
  .brand-panel .lede { margin-bottom: 28px; }
  #agent-form { grid-template-columns: 1fr; }
  #agent-form > .primary-button { grid-column: 1; justify-self: end; }
  .dashboard .agent-actions, .dashboard .contact-actions { align-items: flex-end; }
  .dashboard .agent-actions .secondary-button, .dashboard .agent-actions .ghost-button, .dashboard .contact-actions .secondary-button, .dashboard .contact-actions .ghost-button { align-self: flex-end; }
  .network-card > .network-steps { margin-top: 22px; }
}

/* Final viewport fit and dashboard text contract. */
@media (min-width: 761px) {
  body.landing .shell { padding-top: 14px; padding-bottom: 18px; }
  body.landing .auth-layout { min-height: calc(100vh - 118px); gap: 4px 6vw; }
  body.landing .brand-panel { padding-top: 0; }
  body.landing .brand-panel h1 { margin-bottom: 24px; }
  body.landing .brand-panel .lede { margin-bottom: 24px; }
  body.landing .auth-layout + .public-links { margin-top: 14px; }
}

.dashboard-mode .topbar { background: transparent !important; backdrop-filter: none !important; }
.dashboard .section-heading + .agent-form-note { margin-top: 24px; color: var(--ink) !important; }
.dashboard .section-heading .section-description { margin-top: 24px; color: var(--ink) !important; }
.dashboard .network-lede, .dashboard .network-boundary, .dashboard .network-boundary p, .dashboard .agent-form-note { color: var(--ink) !important; }
.dashboard .network-boundary strong { color: var(--gold); }
.dashboard .agent-title strong, .dashboard .contact-node-copy > strong { color: var(--gold) !important; font-weight: 700; }
.dashboard #agent-section .agent-list { border-top: 0 !important; }
.dashboard #agent-section .agent-list .agent-row:first-child { border-top: 0 !important; }
.dashboard .agent-title,
.dashboard .agent-meta,
.dashboard .agent-access-note { display: flex; align-items: baseline; gap: 6px; line-height: 1.35; }
.dashboard .agent-meta,
.dashboard .agent-access-note { margin-top: 6px; color: var(--muted); font: 11px/1.35 'DM Mono', monospace; }
.dashboard .agent-label { color: var(--gold); font-weight: 600; }
.dashboard .provider-instructions .provider-copy-button { display: inline-flex; align-items: center; justify-content: center; width: 72px; min-width: 72px; height: 36px; margin: 0; padding: 0 10px; border: 1px solid var(--gold); border-radius: 0; color: var(--paper); background: var(--gold); font: 600 11px/1 'DM Mono', monospace; text-transform: uppercase; cursor: pointer; }
.dashboard .provider-instructions .provider-copy-button:hover, .dashboard .provider-instructions .provider-copy-button:focus-visible { color: var(--paper); background: var(--lime); border-color: var(--lime); }
.dashboard .provider-instructions { min-width: 0; overflow: hidden; }
.dashboard .provider-instructions li, .dashboard .provider-instructions a, .dashboard .provider-field, .dashboard .provider-field code { min-width: 0; overflow-wrap: anywhere; word-break: break-word; }
.dashboard .provider-field code { white-space: normal; }
.oauth-error { color: var(--gold); }

/* Authenticated users reach public pages through one compact header menu. */
.public-menu { position: relative; }
.public-menu-button { width: 46px; min-width: 46px; height: 46px; border: 0; color: var(--paper); background: var(--gold); cursor: pointer; }
.menu-grid-icon { display: block; width: 16px; height: 16px; margin: auto; background: radial-gradient(circle, currentColor 2px, transparent 2.5px) 0 0 / 8px 8px; }
.public-menu-popover { position: absolute; z-index: 50; top: calc(100% + 10px); right: 0; display: grid; min-width: 190px; padding: 8px; border: 1px solid var(--gold); background: var(--card); box-shadow: 0 18px 50px rgba(0,0,0,.45); }
.public-menu-popover a { padding: 12px 14px; color: var(--ink); text-decoration: none; font: 500 12px 'DM Mono', monospace; text-transform: uppercase; }
.public-menu-popover a:hover, .public-menu-popover a:focus-visible { color: var(--paper); background: var(--gold); }
.public-menu-popover button { display: block; width: 100%; margin: 0; padding: 12px 14px; border: 0; color: var(--ink); background: transparent; text-align: left; font: 500 12px 'DM Mono', monospace; text-transform: uppercase; cursor: pointer; }
.public-menu-popover button:hover, .public-menu-popover button:focus-visible { color: var(--paper); background: var(--gold); }
.dashboard .topbar-menu .public-menu-popover button { justify-content: flex-start; text-align: left; }

.cookie-consent { position: fixed; z-index: 80; right: 20px; bottom: 20px; width: min(680px, calc(100vw - 40px)); padding: 20px; border: 1px solid var(--gold); background: rgba(18,21,19,.98); box-shadow: 0 18px 60px rgba(0,0,0,.58); }
.cookie-consent-inner { display: grid; grid-template-columns: minmax(170px, .75fr) minmax(0, 1.35fr); grid-template-areas: "options copy" "options actions"; align-items: stretch; gap: 14px 20px; }
.cookie-consent-inner > div:first-child { grid-area: copy; }
.cookie-consent-inner > div:first-child { align-self: start; text-align: right; }
.cookie-consent-options { grid-area: options; align-self: stretch; }
.cookie-consent-actions { grid-area: actions; }
.cookie-consent h2 { margin: 4px 0 8px; color: var(--lime); font-size: clamp(1.25rem, 2vw, 1.8rem); }
.cookie-consent-copy { max-width: 680px; margin: 0; color: var(--ink); font-size: 13px; line-height: 1.45; }
.cookie-consent-options { display: grid; gap: 4px; }
.cookie-option { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; padding: 9px 10px; border: 1px solid var(--line); background: rgba(143,179,79,.06); cursor: pointer; }
.cookie-option input { width: 17px; height: 17px; margin: 2px 0 0; accent-color: var(--lime); }
.cookie-option input:disabled { opacity: 1; }
.cookie-option strong, .cookie-option small { display: block; }
.cookie-option strong { color: var(--ink); font-size: 13px; }
.cookie-option small { margin-top: 3px; color: var(--muted); font-size: 11px; line-height: 1.35; }
.cookie-consent-actions { display: flex; flex-wrap: wrap; align-self: end; gap: 8px; justify-content: flex-end; }
.cookie-consent-actions button { width: auto; min-width: 100px; min-height: 42px; padding: 0 14px; }

@media (max-width: 760px) {
  .public-menu-button { width: 100%; height: 46px; }
  .public-menu-popover { position: fixed; top: 76px; right: 14px; width: min(260px, calc(100vw - 28px)); }
  .cookie-consent { right: 10px; bottom: 10px; width: calc(100vw - 20px); padding: 16px; }
  .cookie-consent-inner { grid-template-columns: 1fr; grid-template-areas: "copy" "options" "actions"; gap: 12px; }
  .cookie-consent-inner > div:first-child { text-align: left; }
  .cookie-consent-options { align-self: auto; }
  .cookie-consent-actions { justify-content: stretch; }
  .cookie-consent-actions button { flex: 1 1 0; min-width: 0; }
}

@media (max-width: 760px) {
  .signal-row { width: 100%; white-space: nowrap; font-size: clamp(8px, 2.35vw, 10px); letter-spacing: -.02em; }
  .signal-divider { margin: 0 5px; }
}
