@font-face {
    font-family: "Inter";
    src: url("/assets/fonts/Inter-Regular.otf") format("opentype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Inter";
    src: url("/assets/fonts/Inter-Bold.otf") format("opentype");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Inter Mono";
    src: url("/assets/fonts/Inter-Mono.otf") format("opentype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

:root {
    color-scheme: dark;
    --bg: #0c0c10;
    --surface: #111116;
    --surface-raised: #17171d;
    --card: #1e1e26;
    --field: #15151b;
    --element: #2a2a34;
    --border: #2b2b35;
    --border-strong: #3a3a46;
    --text: #f4f4f6;
    --muted: #a4a4af;
    --quiet: #747480;
    --accent: #d32f2f;
    --accent-hover: #e13c3c;
    --accent-deep: #b71c1c;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --focus: #f16a6a;
    --shell: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    background: var(--bg);
}

body {
    margin: 0;
    min-width: 320px;
    background: var(--bg);
    color: var(--text);
    font-family: "Inter", system-ui, sans-serif;
    font-size: 16px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-underline-offset: 3px;
}

a:hover {
    color: #fff;
}

button,
input {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

:focus-visible {
    outline: 2px solid var(--focus);
    outline-offset: 3px;
}

.shell {
    width: min(calc(100% - 40px), var(--shell));
    margin-inline: auto;
}

.site-header {
    position: sticky;
    z-index: 20;
    top: 0;
    border-bottom: 1px solid rgba(43, 43, 53, 0.86);
    background: rgba(12, 12, 16, 0.94);
    backdrop-filter: blur(16px);
}

.header-inner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    min-height: 66px;
    gap: 32px;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
    font-weight: 700;
    letter-spacing: -0.02em;
    text-decoration: none;
}

.brand img,
.footer-brand img {
    display: block;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

.main-nav a {
    color: var(--muted);
    font-size: 14px;
    text-decoration: none;
}

.main-nav a:hover {
    color: var(--text);
}

.header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.header-actions form {
    margin: 0;
}

.header-user {
    max-width: 160px;
    overflow: hidden;
    color: var(--muted);
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.button {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    border-radius: 5px;
    padding: 0 19px;
    color: #fff;
    font-weight: 700;
    line-height: 1;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: border-color 150ms ease, background-color 150ms ease, color 150ms ease, transform 150ms ease;
}

.button:hover {
    color: #fff;
    transform: translateY(-1px);
}

.button:active {
    transform: translateY(0);
}

.button-primary {
    border-color: var(--accent);
    background: var(--accent);
}

.button-primary:hover {
    border-color: var(--accent-hover);
    background: var(--accent-hover);
}

.button-secondary {
    border-color: var(--border-strong);
    background: var(--surface-raised);
}

.button-secondary:hover,
.button-quiet:hover {
    border-color: #50505e;
    background: var(--card);
}

.button-quiet {
    border-color: transparent;
    background: transparent;
    color: var(--muted);
}

.button-small {
    min-height: 38px;
    padding-inline: 14px;
    font-size: 13px;
}

.button-full {
    width: 100%;
}

.button-disabled {
    border-color: var(--border);
    background: var(--field);
    color: var(--quiet);
    cursor: default;
}

.button-disabled:hover {
    color: var(--quiet);
    transform: none;
}

.eyebrow {
    margin: 0 0 18px;
    color: #d8d8de;
    font-family: "Inter Mono", monospace;
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.status-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    margin-right: 7px;
    border-radius: 50%;
    background: var(--success);
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.1);
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.03fr) minmax(430px, 0.97fr);
    align-items: center;
    gap: 76px;
    min-height: 720px;
    padding-block: 84px 96px;
}

.hero h1,
.page-heading h1,
.auth-panel h1 {
    margin: 0;
    letter-spacing: -0.055em;
    line-height: 0.98;
}

.hero h1 {
    max-width: 680px;
    font-size: clamp(54px, 6vw, 80px);
}

.hero h1 span {
    color: #9a9aa5;
}

.hero-lede {
    max-width: 640px;
    margin: 28px 0 0;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.65;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 34px;
}

.hero-proof {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 24px;
    margin: 28px 0 0;
    padding: 0;
    color: var(--quiet);
    font-family: "Inter Mono", monospace;
    font-size: 11px;
    list-style: none;
    text-transform: uppercase;
}

.hero-proof li::before {
    content: "✓";
    margin-right: 7px;
    color: var(--success);
}

.activity-console {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border-strong);
    border-radius: 6px;
    background: var(--surface);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.32);
}

.activity-console::before {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 2px;
    background: var(--accent);
    content: "";
}

.console-titlebar,
.console-current {
    display: flex;
    align-items: center;
}

.console-titlebar {
    justify-content: space-between;
    border-bottom: 1px solid var(--border);
    padding: 19px 22px;
}

.console-titlebar strong,
.console-current strong {
    display: block;
    font-size: 15px;
}

.console-kicker,
.console-label {
    display: block;
    margin-bottom: 2px;
    color: var(--quiet);
    font-family: "Inter Mono", monospace;
    font-size: 10px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.live-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border: 1px solid #345f51;
    border-radius: 999px;
    padding: 5px 9px;
    color: #8be2c4;
    font-family: "Inter Mono", monospace;
    font-size: 9px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.live-pill span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--success);
    animation: pulse 2.4s ease-in-out infinite;
}

.console-current {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 15px;
    border-bottom: 1px solid var(--border);
    padding: 24px 22px;
    background: #15151b;
}

.console-current small {
    display: block;
    margin-top: 3px;
    color: var(--muted);
    font-size: 12px;
}

.console-current time,
.timeline time {
    color: #d6d6dd;
    font-family: "Inter Mono", monospace;
    font-size: 12px;
}

.task-mark {
    position: relative;
    width: 34px;
    height: 34px;
    border: 1px solid #6b3030;
    border-radius: 50%;
}

.task-mark::before,
.task-mark span {
    position: absolute;
    top: 50%;
    left: 50%;
    border-radius: 50%;
    content: "";
    transform: translate(-50%, -50%);
}

.task-mark::before {
    width: 16px;
    height: 16px;
    border: 1px solid var(--accent);
}

.task-mark span {
    width: 4px;
    height: 4px;
    background: var(--accent);
}

.timeline {
    margin: 0;
    padding: 10px 22px 8px;
    list-style: none;
}

.timeline li {
    position: relative;
    display: grid;
    grid-template-columns: 18px 1fr auto;
    align-items: center;
    gap: 11px;
    min-height: 62px;
}

.timeline li:not(:last-child)::after {
    position: absolute;
    top: 38px;
    bottom: -23px;
    left: 6px;
    width: 1px;
    background: var(--border-strong);
    content: "";
}

.timeline-node {
    position: relative;
    z-index: 1;
    width: 13px;
    height: 13px;
    border: 2px solid var(--border-strong);
    border-radius: 50%;
    background: var(--surface);
}

.timeline .complete .timeline-node {
    border-color: #427260;
    background: var(--success);
    box-shadow: inset 0 0 0 3px var(--surface);
}

.timeline .active .timeline-node {
    border-color: var(--accent);
    background: var(--accent);
    box-shadow: 0 0 0 4px rgba(211, 47, 47, 0.12);
}

.timeline strong,
.timeline small {
    display: block;
}

.timeline strong {
    font-size: 13px;
}

.timeline small {
    margin-top: 2px;
    color: var(--quiet);
    font-size: 11px;
}

.sample-label {
    margin: 0;
    border-top: 1px solid var(--border);
    padding: 13px 22px;
    color: var(--quiet);
    font-size: 10px;
}

.signal-strip {
    border-block: 1px solid var(--border);
    background: var(--surface);
}

.signal-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.signal-grid > div {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0 13px;
    min-height: 96px;
    align-content: center;
    padding: 18px 26px;
}

.signal-grid > div:not(:last-child) {
    border-right: 1px solid var(--border);
}

.signal-grid span {
    grid-row: 1 / 3;
    color: var(--accent);
    font-family: "Inter Mono", monospace;
    font-size: 11px;
}

.signal-grid strong {
    font-size: 13px;
}

.signal-grid small {
    color: var(--quiet);
    font-size: 11px;
}

.section {
    padding-block: 120px;
}

.section-heading {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px 80px;
    align-items: end;
    margin-bottom: 48px;
}

.section-heading .eyebrow {
    grid-column: 1 / -1;
    margin-bottom: -8px;
}

.section-heading h2,
.trust-copy h2,
.final-cta h2,
.page-heading h1 {
    margin: 0;
    letter-spacing: -0.045em;
    line-height: 1.08;
}

.section-heading h2,
.trust-copy h2,
.final-cta h2 {
    font-size: clamp(36px, 4.2vw, 54px);
}

.section-heading > p:last-child,
.trust-copy > p:last-child,
.page-heading > p:last-child {
    margin: 0;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.7;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 12px;
}

.feature-card {
    grid-column: span 4;
    min-height: 270px;
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 28px;
    background: var(--surface);
}

.feature-large {
    grid-column: span 8;
}

.feature-wide {
    grid-column: span 8;
}

.feature-index,
.plan-code {
    color: var(--accent);
    font-family: "Inter Mono", monospace;
    font-size: 10px;
    letter-spacing: 0.1em;
}

.feature-card h3 {
    margin: 54px 0 12px;
    font-size: 21px;
    letter-spacing: -0.025em;
}

.feature-card p {
    max-width: 620px;
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

.code-line {
    display: inline-flex;
    gap: 12px;
    margin-top: 24px;
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 10px 12px;
    background: var(--field);
    font-family: "Inter Mono", monospace;
    font-size: 11px;
}

.code-line span {
    color: var(--quiet);
}

.code-line strong {
    color: #fff;
}

.trust-section {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 110px;
    border-top: 1px solid var(--border);
}

.trust-list {
    margin: 0;
}

.trust-list > div {
    display: grid;
    grid-template-columns: 0.7fr 1.3fr;
    gap: 20px;
    border-top: 1px solid var(--border);
    padding: 20px 0;
}

.trust-list > div:last-child {
    border-bottom: 1px solid var(--border);
}

.trust-list dt {
    font-size: 13px;
    font-weight: 700;
}

.trust-list dd {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}

.final-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 100px;
    border: 1px solid var(--border-strong);
    border-radius: 6px;
    padding: 46px;
    background: var(--surface);
}

.final-cta .eyebrow {
    margin-bottom: 12px;
}

.final-cta h2 {
    max-width: 760px;
    font-size: clamp(30px, 3.5vw, 44px);
}

.site-footer {
    border-top: 1px solid var(--border);
    color: var(--quiet);
}

.footer-inner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 30px;
    min-height: 120px;
    font-size: 12px;
}

.footer-inner p {
    margin: 0;
}

.footer-inner nav {
    display: flex;
    gap: 20px;
}

.page-main {
    min-height: calc(100vh - 187px);
    padding-block: 86px 100px;
}

.page-heading {
    max-width: 720px;
    margin-bottom: 48px;
}

.page-heading h1 {
    font-size: clamp(44px, 5.2vw, 66px);
}

.page-heading > p:last-child {
    margin-top: 22px;
}

.centered-heading {
    margin-inline: auto;
    text-align: center;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    max-width: 920px;
    margin-inline: auto;
}

.pricing-card {
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 34px;
    background: var(--surface);
}

.pricing-card.emphasized {
    border-color: #6e3232;
    background: #151315;
}

.pricing-card h2 {
    margin: 22px 0 10px;
    font-size: 30px;
    letter-spacing: -0.04em;
}

.plan-description {
    min-height: 54px;
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

.pricing-card ul {
    min-height: 174px;
    margin: 28px 0;
    padding: 0;
    list-style: none;
}

.pricing-card li {
    border-top: 1px solid var(--border);
    padding: 10px 0;
    color: #d6d6db;
    font-size: 13px;
}

.pricing-card li::before {
    content: "✓";
    margin-right: 9px;
    color: var(--success);
}

.pricing-note {
    max-width: 780px;
    margin: 24px auto 0;
    color: var(--quiet);
    font-size: 11px;
    text-align: center;
}

.auth-body {
    min-height: 100vh;
    background: var(--bg);
}

.auth-main {
    display: grid;
    min-height: calc(100vh - 67px);
    place-items: center;
    padding: 54px 20px 80px;
}

.auth-main-wide {
    padding-block: 44px 70px;
}

.auth-panel {
    width: min(100%, 440px);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 36px;
    background: var(--surface);
}

.auth-panel h1 {
    font-size: 38px;
}

.auth-intro,
.status-panel > p:not(.eyebrow) {
    margin: 14px 0 26px;
    color: var(--muted);
    font-size: 14px;
}

.form-stack {
    display: grid;
    gap: 18px;
}

.form-stack label:not(.check-row) {
    display: grid;
    gap: 7px;
    color: #dcdce1;
    font-size: 12px;
    font-weight: 700;
}

.form-stack input[type="email"],
.form-stack input[type="password"],
.form-stack input[type="text"] {
    width: 100%;
    min-height: 47px;
    border: 1px solid var(--border-strong);
    border-radius: 4px;
    padding: 0 13px;
    background: var(--field);
    color: var(--text);
    font-size: 14px;
}

.form-stack input[type="number"],
.form-stack textarea,
.admin-search input {
    width: 100%;
    border: 1px solid var(--border-strong);
    border-radius: 4px;
    padding: 11px 13px;
    background: var(--field);
    color: var(--text);
    font-size: 14px;
}

.form-stack textarea {
    resize: vertical;
}

.form-stack input:hover {
    border-color: #4c4c59;
}

.form-stack input:focus {
    border-color: var(--focus);
    outline: 1px solid var(--focus);
    outline-offset: 0;
}

.form-stack label small {
    color: var(--quiet);
    font-size: 10px;
    font-weight: 400;
}

.field-error {
    display: block;
    color: #ff8e8e !important;
    font-size: 11px !important;
}

.check-row {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: start;
    gap: 10px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 400;
}

.check-row input {
    width: 18px;
    height: 18px;
    margin: 1px 0 0;
    accent-color: var(--accent);
}

.form-row {
    display: flex;
    gap: 12px;
    font-size: 12px;
}

.form-row-between {
    justify-content: flex-end;
}

.form-row a,
.auth-switch a {
    color: #d7d7dd;
}

.auth-switch {
    margin: 24px 0 0;
    color: var(--quiet);
    font-size: 12px;
    text-align: center;
}

.notice {
    margin: 0 0 18px;
    border: 1px solid var(--border-strong);
    border-radius: 4px;
    padding: 11px 12px;
    background: var(--field);
    color: #d4d4da;
    font-size: 12px;
}

.notice-error {
    border-color: #713737;
    background: #211415;
    color: #ffaaaa;
}

.notice-success {
    border-color: #315f4d;
    background: #112019;
    color: #89dabd;
}

.status-panel {
    text-align: center;
}

.status-icon {
    display: grid;
    width: 48px;
    height: 48px;
    margin: 0 auto 24px;
    place-items: center;
    border: 1px solid #6e3232;
    border-radius: 50%;
    color: #ff7777;
    font-family: "Inter Mono", monospace;
}

.muted {
    color: var(--quiet) !important;
    font-size: 11px !important;
}

.app-main {
    min-height: calc(100vh - 187px);
    padding-block: 58px 100px;
}

.app-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 32px;
    margin-bottom: 34px;
}

.app-heading h1 {
    margin: 0;
    font-size: clamp(38px, 5vw, 58px);
    letter-spacing: -0.05em;
    line-height: 1;
}

.app-heading > div > p:last-child {
    margin: 13px 0 0;
    color: var(--muted);
}

.compact-heading {
    margin-top: 12px;
}

.access-badge {
    min-width: 148px;
    border: 1px solid var(--border-strong);
    border-radius: 5px;
    padding: 12px 15px;
    background: var(--surface);
}

.access-badge span,
.metric-card span,
.metric-card small {
    display: block;
    color: var(--quiet);
    font-family: "Inter Mono", monospace;
    font-size: 9px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.access-badge strong {
    display: block;
    margin-top: 3px;
    font-size: 14px;
}

.access-active {
    border-color: #35624f;
}

.access-active strong {
    color: #8be2c4;
}

.access-inactive strong {
    color: #efb767;
}

.metric-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 10px;
}

.metric-card {
    min-height: 136px;
    border: 1px solid var(--border);
    border-radius: 5px;
    padding: 20px;
    background: var(--surface);
}

.metric-card strong {
    display: block;
    margin: 18px 0 4px;
    overflow: hidden;
    font-size: 25px;
    letter-spacing: -0.035em;
    text-overflow: ellipsis;
}

.metric-card small {
    line-height: 1.5;
    text-transform: none;
}

.dashboard-grid,
.admin-detail-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 10px;
}

.panel {
    grid-column: span 4;
    border: 1px solid var(--border);
    border-radius: 5px;
    padding: 24px;
    background: var(--surface);
}

.panel-large {
    grid-column: span 8;
}

.panel-heading {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px;
}

.panel-heading span,
.panel-heading small {
    display: block;
    margin-bottom: 3px;
    color: var(--quiet);
    font-family: "Inter Mono", monospace;
    font-size: 9px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.panel-heading h2 {
    margin: 0;
    font-size: 18px;
    letter-spacing: -0.025em;
}

.panel-copy {
    margin: 0 0 20px;
    color: var(--muted);
    font-size: 12px;
}

.empty-state {
    display: grid;
    min-height: 220px;
    align-content: center;
    justify-items: center;
    padding: 30px;
    border: 1px dashed var(--border-strong);
    border-radius: 4px;
    color: var(--muted);
    text-align: center;
}

.empty-state strong {
    color: var(--text);
    font-size: 14px;
}

.empty-state p {
    max-width: 430px;
    margin: 8px 0 0;
    font-size: 12px;
}

.compact-empty {
    min-height: 110px;
    font-size: 12px;
}

.task-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.task-list li {
    padding: 14px 0;
}

.task-list li + li {
    border-top: 1px solid var(--border);
}

.task-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.task-row strong,
.task-row small {
    display: block;
}

.task-row strong {
    font-size: 13px;
}

.task-row small {
    color: var(--quiet);
    font-size: 10px;
}

.task-row time {
    font-family: "Inter Mono", monospace;
    font-size: 12px;
}

.task-list progress {
    width: 100%;
    height: 4px;
    margin-top: 9px;
    border: 0;
    border-radius: 0;
    background: var(--element);
    color: var(--accent);
}

.task-list progress::-webkit-progress-bar { background: var(--element); }
.task-list progress::-webkit-progress-value { background: var(--accent); }
.task-list progress::-moz-progress-bar { background: var(--accent); }

.identity-card {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 12px;
}

.avatar-placeholder {
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    border: 1px solid var(--border-strong);
    border-radius: 4px;
    background: var(--field);
    font-weight: 700;
}

.identity-card strong,
.identity-card small {
    display: block;
}

.identity-card strong {
    font-size: 13px;
}

.identity-card small {
    max-width: 180px;
    overflow: hidden;
    color: var(--quiet);
    font-family: "Inter Mono", monospace;
    font-size: 9px;
    text-overflow: ellipsis;
}

.state-label {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    border: 1px solid var(--border-strong);
    border-radius: 999px;
    padding: 4px 8px;
    color: var(--muted);
    font-family: "Inter Mono", monospace;
    font-size: 9px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.state-good {
    border-color: #35624f;
    color: #8be2c4;
}

.state-warn {
    border-color: #705326;
    color: #efb767;
}

.state-danger {
    border-color: #713737;
    color: #ff9292;
}

.state-large {
    padding: 7px 11px;
    font-size: 10px;
}

.link-code {
    display: grid;
    gap: 8px;
    border: 1px solid #6e3232;
    border-radius: 4px;
    padding: 16px;
    background: #181214;
}

.link-code span,
.link-code small {
    color: var(--quiet);
    font-size: 10px;
}

.link-code code {
    overflow-wrap: anywhere;
    color: #fff;
    font-family: "Inter Mono", monospace;
    font-size: 13px;
}

.access-detail p {
    color: var(--muted);
    font-size: 12px;
}

.compact-list,
.detail-list {
    margin: 0 0 18px;
}

.compact-list > div,
.detail-list > div {
    display: grid;
    grid-template-columns: minmax(90px, 0.7fr) minmax(0, 1.3fr);
    gap: 15px;
    border-top: 1px solid var(--border);
    padding: 11px 0;
    font-size: 11px;
}

.compact-list > div:last-child,
.detail-list > div:last-child {
    border-bottom: 1px solid var(--border);
}

.compact-list dt,
.detail-list dt {
    color: var(--quiet);
}

.compact-list dd,
.detail-list dd {
    min-width: 0;
    margin: 0;
    overflow-wrap: anywhere;
    text-align: right;
}

.admin-list-panel {
    grid-column: 1 / -1;
    padding: 0;
    overflow: hidden;
}

.admin-search {
    display: grid;
    grid-template-columns: auto minmax(180px, 420px) auto;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid var(--border);
    padding: 18px;
}

.admin-search label {
    color: var(--muted);
    font-size: 12px;
}

.admin-search input {
    min-height: 38px;
    padding-block: 7px;
}

.table-wrap {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

.data-table th,
.data-table td {
    border-bottom: 1px solid var(--border);
    padding: 14px 18px;
    text-align: left;
    white-space: nowrap;
}

.data-table th {
    color: var(--quiet);
    font-family: "Inter Mono", monospace;
    font-size: 9px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.data-table td strong,
.data-table td small {
    display: block;
}

.data-table td small {
    max-width: 180px;
    overflow: hidden;
    color: var(--quiet);
    font-family: "Inter Mono", monospace;
    font-size: 8px;
    text-overflow: ellipsis;
}

.table-link,
.back-link {
    color: #e0e0e4;
    font-size: 11px;
}

.back-link {
    display: inline-block;
    margin-bottom: 24px;
    color: var(--muted);
    text-decoration: none;
}

.user-detail-heading {
    align-items: center;
}

.admin-facts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    margin-bottom: 10px;
    border: 1px solid var(--border);
    border-radius: 5px;
    overflow: hidden;
    background: var(--border);
}

.admin-facts > div {
    min-width: 0;
    padding: 16px;
    background: var(--surface);
}

.admin-facts span,
.admin-facts strong {
    display: block;
}

.admin-facts span {
    color: var(--quiet);
    font-family: "Inter Mono", monospace;
    font-size: 9px;
    text-transform: uppercase;
}

.admin-facts strong {
    margin-top: 5px;
    overflow: hidden;
    font-size: 13px;
    text-overflow: ellipsis;
}

.danger-panel {
    border-color: #553030;
}

.button-danger {
    border-color: #8d3333;
    background: #7e2828;
}

.button-danger:hover {
    border-color: #b34545;
    background: #963232;
}

.event-list article {
    display: grid;
    grid-template-columns: minmax(100px, 0.6fr) minmax(0, 1fr) auto;
    gap: 15px;
    border-top: 1px solid var(--border);
    padding: 13px 0;
    font-size: 11px;
}

.event-list span,
.event-list time {
    color: var(--quiet);
    font-family: "Inter Mono", monospace;
    font-size: 9px;
}

.compact-admin-form,
.subordinate-list {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid var(--border);
}

.inline-audit-form {
    display: flex;
    grid-column: 1 / -1;
    gap: 8px;
    margin: 4px 0 0;
}

.inline-audit-form input {
    min-width: 0;
    flex: 1;
}

.inline-confirm-form {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: minmax(150px, 1fr) auto;
    gap: 8px;
    margin-top: 4px;
}

.inline-confirm-form input {
    width: 100%;
    min-height: 36px;
    border: 1px solid var(--border-strong);
    border-radius: 4px;
    padding: 0 11px;
    background: var(--surface);
    color: var(--text);
    font-size: 11px;
}

.compact-confirm-form {
    margin-top: 18px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.machine-list {
    display: grid;
    gap: 10px;
}

.machine-list article {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    border: 1px solid var(--border);
    border-radius: 5px;
    padding: 14px;
    background: var(--field);
}

.machine-list strong,
.machine-list small {
    display: block;
}

.machine-list strong {
    font-family: "Inter Mono", monospace;
    font-size: 12px;
}

.machine-list small {
    margin-top: 4px;
    color: var(--quiet);
    font-size: 10px;
}

@keyframes pulse {
    0%, 100% { opacity: 0.55; transform: scale(0.82); }
    50% { opacity: 1; transform: scale(1); }
}

@media (max-width: 960px) {
    .hero {
        grid-template-columns: 1fr;
        gap: 54px;
        min-height: auto;
    }

    .activity-console {
        width: min(100%, 620px);
    }

    .section-heading,
    .trust-section {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .trust-section {
        gap: 54px;
    }

    .feature-card,
    .feature-large,
    .feature-wide {
        grid-column: span 6;
    }

    .metric-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .panel,
    .panel-large {
        grid-column: span 6;
    }
}

@media (max-width: 760px) {
    .shell {
        width: min(calc(100% - 28px), var(--shell));
    }

    .header-inner {
        grid-template-columns: 1fr auto;
        gap: 12px;
    }

    .main-nav,
    .header-user {
        display: none;
    }

    .header-actions .button-quiet:not(button) {
        display: none;
    }

    .hero {
        padding-block: 64px 72px;
    }

    .hero h1 {
        font-size: clamp(48px, 14vw, 66px);
    }

    .hero-lede {
        font-size: 16px;
    }

    .signal-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .signal-grid > div:nth-child(2) {
        border-right: 0;
    }

    .signal-grid > div:nth-child(-n + 2) {
        border-bottom: 1px solid var(--border);
    }

    .section {
        padding-block: 82px;
    }

    .feature-card,
    .feature-large,
    .feature-wide {
        grid-column: 1 / -1;
        min-height: 240px;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .final-cta {
        align-items: stretch;
        flex-direction: column;
        padding: 30px;
    }

    .footer-inner {
        grid-template-columns: 1fr auto;
    }

    .footer-inner p {
        display: none;
    }

    .app-heading {
        align-items: stretch;
        flex-direction: column;
    }

    .access-badge {
        width: 100%;
    }

    .panel,
    .panel-large {
        grid-column: 1 / -1;
    }

    .admin-facts {
        grid-template-columns: repeat(2, 1fr);
    }

    .table-wrap {
        overflow: visible;
    }

    .data-table,
    .data-table tbody,
    .data-table tr,
    .data-table td {
        display: block;
        width: 100%;
    }

    .data-table thead {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
        clip-path: inset(50%);
        white-space: nowrap;
    }

    .data-table tr {
        border-bottom: 1px solid var(--border);
        padding: 14px 18px;
    }

    .data-table td {
        display: grid;
        grid-template-columns: minmax(68px, 0.55fr) minmax(0, 1.45fr);
        gap: 14px;
        border: 0;
        padding: 7px 0;
        white-space: normal;
        overflow-wrap: anywhere;
    }

    .data-table td::before {
        content: attr(data-label);
        color: var(--quiet);
        font-family: "Inter Mono", monospace;
        font-size: 9px;
        letter-spacing: 0.06em;
        text-transform: uppercase;
    }

    .data-table td > * {
        min-width: 0;
    }

    .data-table td small {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .header-actions .button-primary {
        display: none;
    }

    .hero h1 {
        font-size: 46px;
    }

    .hero-actions {
        display: grid;
    }

    .hero-actions .button {
        width: 100%;
    }

    .hero-proof {
        display: grid;
        gap: 8px;
    }

    .console-titlebar,
    .console-current,
    .timeline,
    .sample-label {
        padding-inline: 16px;
    }

    .console-current {
        grid-template-columns: auto 1fr;
    }

    .console-current time {
        grid-column: 2;
    }

    .signal-grid > div {
        padding-inline: 14px;
    }

    .section-heading h2,
    .trust-copy h2 {
        font-size: 36px;
    }

    .trust-list > div {
        grid-template-columns: 1fr;
        gap: 5px;
    }

    .feature-card,
    .pricing-card,
    .auth-panel {
        padding: 24px;
    }

    .auth-main {
        align-items: start;
        padding: 28px 14px 60px;
    }

    .auth-panel {
        width: 100%;
    }

    .footer-inner nav {
        gap: 12px;
    }

    .app-main {
        padding-block: 38px 70px;
    }

    .metric-grid,
    .admin-facts {
        grid-template-columns: 1fr;
    }

    .panel {
        padding: 20px;
    }

    .admin-search {
        grid-template-columns: 1fr;
    }

    .event-list article {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .inline-audit-form,
    .machine-list article {
        grid-template-columns: 1fr;
        flex-direction: column;
        align-items: stretch;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
