:root {
    color-scheme: dark;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", Inter, sans-serif;
    font-synthesis: none;
    --canvas: #06080d;
    --canvas-soft: #090d14;
    --surface: rgba(15, 21, 31, 0.88);
    --surface-solid: #101721;
    --surface-raised: #151d29;
    --surface-hover: #1a2431;
    --line: rgba(209, 222, 239, 0.12);
    --line-strong: rgba(209, 222, 239, 0.2);
    --text: #f5f7fb;
    --text-soft: #a7b0bf;
    --text-dim: #737f90;
    --accent: #f04e59;
    --accent-hover: #ff626d;
    --accent-soft: rgba(240, 78, 89, 0.13);
    --success: #58d68d;
    --success-soft: rgba(88, 214, 141, 0.12);
    --warning: #f5b94c;
    --warning-soft: rgba(245, 185, 76, 0.13);
    --danger: #ff6b76;
    --danger-soft: rgba(255, 107, 118, 0.13);
    --info: #70a8ff;
    --info-soft: rgba(112, 168, 255, 0.13);
    --radius-sm: 10px;
    --radius: 14px;
    --radius-lg: 20px;
    --shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}

* {
    box-sizing: border-box;
}

html {
    min-width: 320px;
    background: var(--canvas);
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    margin: 0;
    background:
        radial-gradient(circle at 12% 4%, rgba(185, 38, 53, 0.2), transparent 31rem),
        radial-gradient(circle at 95% 18%, rgba(24, 58, 94, 0.22), transparent 34rem),
        linear-gradient(150deg, #080a10 0%, #070a10 46%, #07101a 100%);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
}

body::before {
    position: fixed;
    inset: 0;
    z-index: -1;
    background-image: linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
    background-size: 52px 52px;
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.32), transparent 72%);
    content: "";
    pointer-events: none;
}

a {
    color: inherit;
}

button,
input,
select {
    font: inherit;
}

button,
.button {
    min-height: 38px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    padding: 0 14px;
    background: var(--surface-raised);
    color: var(--text);
    cursor: pointer;
    font-weight: 650;
    line-height: 36px;
    text-decoration: none;
    transition: background 140ms ease, border-color 140ms ease, color 140ms ease, transform 100ms ease;
}

button:hover,
.button:hover {
    border-color: rgba(240, 78, 89, 0.48);
    background: var(--surface-hover);
}

button:active,
.button:active {
    transform: translateY(1px);
}

button.primary,
.button.primary {
    border-color: #f04e59;
    background: linear-gradient(180deg, #f35661, #d93e49);
    box-shadow: 0 8px 24px rgba(240, 78, 89, 0.18);
    color: white;
}

button.primary:hover,
.button.primary:hover {
    border-color: #ff6a74;
    background: linear-gradient(180deg, #ff626d, #e44752);
}

button.quiet,
.button.quiet {
    background: rgba(255, 255, 255, 0.035);
}

button.danger {
    border-color: rgba(255, 107, 118, 0.26);
    color: #ffadb4;
}

:focus-visible {
    outline: 2px solid rgba(255, 98, 109, 0.92);
    outline-offset: 3px;
}

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

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

.brand-mark {
    display: inline-grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border: 1px solid rgba(240, 78, 89, 0.35);
    border-radius: 11px;
    background: var(--accent-soft);
    box-shadow: inset 0 1px rgba(255, 255, 255, 0.05);
    color: #ff6873;
}

.brand-mark svg {
    width: 19px;
    height: 19px;
}

.brand-context {
    color: var(--text-soft);
    font-weight: 560;
}

.eyebrow {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    margin: 0 0 18px;
    color: #ff8991;
    font-size: 12px;
    font-weight: 760;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.eyebrow::before {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 18px rgba(240, 78, 89, 0.85);
    content: "";
}

.site-shell {
    width: min(1160px, calc(100% - 40px));
    margin: 0 auto;
}

.site-nav {
    display: flex;
    min-height: 74px;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--line);
}

.site-nav-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.hero {
    display: grid;
    min-height: 610px;
    grid-template-columns: minmax(0, 1.05fr) minmax(390px, 0.95fr);
    gap: 72px;
    align-items: center;
    padding: 74px 0 82px;
}

.hero h1 {
    max-width: 780px;
    margin: 0;
    font-size: clamp(43px, 6vw, 70px);
    font-weight: 760;
    letter-spacing: -0.055em;
    line-height: 0.98;
}

.hero h1 span {
    color: #ff626d;
}

.hero-copy > p {
    max-width: 650px;
    margin: 24px 0 0;
    color: var(--text-soft);
    font-size: clamp(17px, 2vw, 20px);
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 32px;
}

.hero-meta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 28px;
    color: var(--text-dim);
    font-size: 12px;
}

.hero-meta span {
    display: inline-flex;
    gap: 7px;
    align-items: center;
}

.hero-meta svg {
    width: 15px;
    height: 15px;
    color: var(--success);
}

.console-card {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--line-strong);
    border-radius: 24px;
    background: linear-gradient(160deg, rgba(25, 33, 46, 0.96), rgba(11, 16, 24, 0.96));
    box-shadow: var(--shadow);
}

.console-card::before {
    position: absolute;
    width: 250px;
    height: 250px;
    top: -160px;
    right: -90px;
    border-radius: 50%;
    background: rgba(240, 78, 89, 0.2);
    filter: blur(45px);
    content: "";
}

.console-header {
    display: flex;
    min-height: 58px;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--line);
    padding: 0 20px;
}

.window-dots {
    display: flex;
    gap: 6px;
}

.window-dots i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #455163;
}

.window-dots i:first-child {
    background: var(--accent);
}

.console-title {
    color: var(--text-soft);
    font-size: 12px;
    font-weight: 650;
}

.console-body {
    padding: 18px;
}

.console-status {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 14px;
    background: rgba(255, 255, 255, 0.028);
}

.console-status strong {
    display: block;
    margin-bottom: 4px;
    font-size: 13px;
}

.console-status small {
    color: var(--text-dim);
}

.status-orb {
    display: inline-flex;
    gap: 7px;
    align-items: center;
    border: 1px solid rgba(88, 214, 141, 0.2);
    border-radius: 999px;
    padding: 6px 9px;
    background: var(--success-soft);
    color: #82e3aa;
    font-size: 11px;
    font-weight: 720;
}

.status-orb::before {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--success);
    box-shadow: 0 0 10px var(--success);
    content: "";
}

.product-row {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    border-top: 1px solid rgba(209, 222, 239, 0.08);
    padding: 14px 2px;
}

.product-icon {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-soft);
}

.product-icon svg {
    width: 17px;
    height: 17px;
}

.product-row strong {
    display: block;
    font-size: 13px;
}

.product-row small {
    color: var(--text-dim);
}

.mini-pill {
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 5px 8px;
    color: var(--text-soft);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
}

.mini-pill.live {
    border-color: rgba(88, 214, 141, 0.2);
    background: var(--success-soft);
    color: #82e3aa;
}

.section {
    border-top: 1px solid var(--line);
    padding: 78px 0;
}

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

.section-heading h2 {
    max-width: 650px;
    margin: 0;
    font-size: clamp(30px, 4vw, 45px);
    letter-spacing: -0.04em;
    line-height: 1.05;
}

.section-heading p {
    max-width: 420px;
    margin: 0;
    color: var(--text-soft);
    line-height: 1.6;
}

.feature-grid,
.product-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.feature-card,
.product-card {
    min-height: 210px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 22px;
    background: var(--surface);
    box-shadow: inset 0 1px rgba(255, 255, 255, 0.025);
}

.feature-card svg,
.product-card .product-card-icon {
    width: 22px;
    height: 22px;
    color: #ff6a74;
}

.feature-card h3,
.product-card h3 {
    margin: 32px 0 8px;
    font-size: 17px;
    letter-spacing: -0.015em;
}

.feature-card p,
.product-card p {
    margin: 0;
    color: var(--text-soft);
    font-size: 14px;
    line-height: 1.55;
}

.product-card {
    min-height: 184px;
}

.product-card h3 {
    margin-top: 22px;
}

.product-card-top {
    display: flex;
    justify-content: space-between;
}

.cta-panel {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid rgba(240, 78, 89, 0.24);
    border-radius: 24px;
    padding: 34px;
    background: linear-gradient(135deg, rgba(240, 78, 89, 0.12), rgba(18, 27, 40, 0.74));
}

.cta-panel h2 {
    margin: 0 0 8px;
    font-size: 28px;
    letter-spacing: -0.035em;
}

.cta-panel p {
    margin: 0;
    color: var(--text-soft);
}

.site-footer {
    display: flex;
    min-height: 94px;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--line);
    color: var(--text-dim);
    font-size: 12px;
}

.site-footer-links {
    display: flex;
    gap: 18px;
}

.site-footer a:hover {
    color: var(--text);
}

/* Authentication */
.auth-page {
    display: grid;
    min-height: 100vh;
    place-items: center;
    padding: 32px 20px;
}

.auth-layout {
    display: grid;
    width: min(900px, 100%);
    grid-template-columns: minmax(0, 1fr) 410px;
    overflow: hidden;
    border: 1px solid var(--line-strong);
    border-radius: 24px;
    background: rgba(10, 14, 21, 0.88);
    box-shadow: var(--shadow);
}

.auth-aside {
    display: flex;
    min-height: 540px;
    flex-direction: column;
    justify-content: space-between;
    padding: 38px;
    background:
        radial-gradient(circle at 15% 0, rgba(240, 78, 89, 0.22), transparent 18rem),
        linear-gradient(145deg, rgba(29, 21, 30, 0.98), rgba(12, 20, 31, 0.98));
}

.auth-aside-copy h1 {
    max-width: 360px;
    margin: 0;
    font-size: 38px;
    letter-spacing: -0.045em;
    line-height: 1.04;
}

.auth-aside-copy p {
    max-width: 390px;
    margin: 16px 0 0;
    color: var(--text-soft);
    line-height: 1.6;
}

.security-stack {
    display: grid;
    gap: 9px;
}

.security-stack span {
    display: flex;
    gap: 9px;
    align-items: center;
    color: var(--text-soft);
    font-size: 12px;
}

.security-stack svg {
    width: 15px;
    height: 15px;
    color: var(--success);
}

.auth-card {
    display: flex;
    min-height: 540px;
    flex-direction: column;
    justify-content: center;
    padding: 42px;
    background: rgba(13, 18, 27, 0.96);
}

.auth-card .eyebrow {
    margin-bottom: 14px;
}

.auth-card h2 {
    margin: 0;
    font-size: 28px;
    letter-spacing: -0.035em;
}

.auth-card > p {
    margin: 10px 0 26px;
    color: var(--text-soft);
    font-size: 14px;
    line-height: 1.55;
}

.field {
    display: grid;
    gap: 7px;
}

.field label,
.control-label {
    color: var(--text-soft);
    font-size: 11px;
    font-weight: 680;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

input,
select {
    width: 100%;
    min-height: 40px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    padding: 0 12px;
    background: rgba(5, 8, 13, 0.72);
    color: var(--text);
    outline: 0;
    transition: border-color 140ms ease, box-shadow 140ms ease, background 140ms ease;
}

input:hover,
select:hover {
    border-color: rgba(209, 222, 239, 0.3);
}

input:focus,
select:focus {
    border-color: rgba(240, 78, 89, 0.76);
    box-shadow: 0 0 0 3px rgba(240, 78, 89, 0.12);
    background: rgba(7, 10, 16, 0.92);
}

input::placeholder {
    color: #687487;
}

.auth-form {
    display: grid;
    gap: 14px;
}

.auth-form button {
    width: 100%;
    margin-top: 4px;
}

.auth-footnote {
    margin-top: 20px;
    color: var(--text-dim);
    font-size: 11px;
    line-height: 1.55;
}

/* Support dashboard */
.admin-page {
    background:
        radial-gradient(circle at 10% 0, rgba(185, 38, 53, 0.16), transparent 26rem),
        linear-gradient(145deg, #070a10, #08111b);
}

.app-shell {
    display: grid;
    min-height: 100vh;
    grid-template-columns: 220px minmax(0, 1fr);
}

.sidebar {
    position: sticky;
    top: 0;
    display: flex;
    height: 100vh;
    flex-direction: column;
    border-right: 1px solid var(--line);
    padding: 22px 14px;
    background: rgba(8, 11, 17, 0.9);
    backdrop-filter: blur(24px);
}

.sidebar .brand {
    padding: 0 8px 22px;
}

.side-nav {
    display: grid;
    gap: 5px;
    margin-top: 8px;
}

.side-nav a {
    display: flex;
    min-height: 40px;
    gap: 11px;
    align-items: center;
    border: 1px solid transparent;
    border-radius: 11px;
    padding: 0 11px;
    color: var(--text-soft);
    font-size: 13px;
    font-weight: 620;
    text-decoration: none;
}

.side-nav a:hover,
.side-nav a.active {
    border-color: var(--line);
    background: rgba(255, 255, 255, 0.045);
    color: var(--text);
}

.side-nav a.active svg {
    color: var(--accent);
}

.side-nav svg,
.sidebar-foot svg {
    width: 17px;
    height: 17px;
}

.sidebar-foot {
    margin-top: auto;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 12px;
    background: rgba(255, 255, 255, 0.025);
}

.sidebar-foot strong {
    display: flex;
    gap: 7px;
    align-items: center;
    font-size: 12px;
}

.sidebar-foot p {
    margin: 7px 0 11px;
    color: var(--text-dim);
    font-size: 11px;
    line-height: 1.5;
}

.sidebar-foot .button {
    display: block;
    min-height: 34px;
    padding: 0 10px;
    font-size: 11px;
    line-height: 32px;
    text-align: center;
}

.workspace {
    width: 100%;
    min-width: 0;
    padding: 0 24px 40px;
}

.topbar {
    display: flex;
    min-height: 72px;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--line);
}

.topbar h1 {
    margin: 0;
    font-size: 19px;
    letter-spacing: -0.025em;
}

.topbar p {
    margin: 3px 0 0;
    color: var(--text-dim);
    font-size: 11px;
}

.operator {
    display: flex;
    gap: 10px;
    align-items: center;
}

.operator-copy {
    text-align: right;
}

.operator-copy strong {
    display: block;
    font-size: 12px;
}

.operator-copy small {
    color: var(--text-dim);
    font-size: 10px;
}

.operator-avatar {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border: 1px solid var(--line-strong);
    border-radius: 11px;
    background: var(--surface-raised);
    color: var(--text-soft);
    font-size: 11px;
    font-weight: 760;
}

.operator form {
    margin: 0;
}

.operator button {
    min-height: 34px;
    padding: 0 11px;
    font-size: 11px;
    line-height: 32px;
}

.dashboard-content {
    padding-top: 22px;
}

.message {
    display: flex;
    gap: 10px;
    align-items: start;
    margin-bottom: 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 12px 14px;
    color: var(--text-soft);
    font-size: 12px;
    line-height: 1.5;
}

.message.error {
    border-color: rgba(255, 107, 118, 0.3);
    background: var(--danger-soft);
    color: #ffc1c6;
}

.message.notice {
    border-color: rgba(88, 214, 141, 0.25);
    background: var(--success-soft);
    color: #a7ecc4;
}

.message code {
    color: #d5f9e4;
    font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
    user-select: all;
    overflow-wrap: anywhere;
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 14px;
}

.metric-card {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    min-height: 88px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 14px;
    background: var(--surface);
}

.metric-icon {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.055);
    color: var(--text-soft);
}

.metric-card.active .metric-icon {
    background: var(--success-soft);
    color: var(--success);
}

.metric-card.trial .metric-icon {
    background: var(--warning-soft);
    color: var(--warning);
}

.metric-card.suspended .metric-icon {
    background: var(--danger-soft);
    color: var(--danger);
}

.metric-icon svg {
    width: 19px;
    height: 19px;
}

.metric-label {
    display: block;
    margin-bottom: 3px;
    color: var(--text-soft);
    font-size: 11px;
}

.metric-value {
    font-size: 23px;
    font-weight: 720;
    letter-spacing: -0.035em;
}

.panel {
    margin-bottom: 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: inset 0 1px rgba(255, 255, 255, 0.018);
}

.panel-heading {
    display: flex;
    min-height: 60px;
    justify-content: space-between;
    align-items: center;
    padding: 0 16px;
}

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

.panel-heading p {
    margin: 4px 0 0;
    color: var(--text-dim);
    font-size: 10px;
}

.issue-panel {
    overflow: hidden;
}

.issue-panel > summary {
    display: flex;
    min-height: 58px;
    justify-content: space-between;
    align-items: center;
    padding: 0 16px;
    cursor: pointer;
    list-style: none;
}

.issue-panel > summary::-webkit-details-marker,
.row-menu > summary::-webkit-details-marker {
    display: none;
}

.issue-summary-copy {
    display: flex;
    gap: 11px;
    align-items: center;
}

.issue-summary-copy svg {
    width: 18px;
    height: 18px;
    color: var(--accent);
}

.issue-summary-copy strong {
    display: block;
    font-size: 13px;
}

.issue-summary-copy small {
    color: var(--text-dim);
    font-size: 10px;
}

.issue-summary-action {
    color: #ff7b84;
    font-size: 11px;
    font-weight: 720;
}

.issue-form {
    display: grid;
    grid-template-columns: minmax(240px, 1fr) minmax(260px, 1.25fr) auto;
    gap: 10px;
    align-items: end;
    border-top: 1px solid var(--line);
    padding: 14px 16px 16px;
}

.issue-form button {
    min-width: 126px;
}

.filters {
    display: grid;
    grid-template-columns: minmax(230px, 1.4fr) repeat(3, minmax(140px, 0.62fr)) auto;
    gap: 9px;
    align-items: end;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding: 12px 16px;
}

.filter-actions {
    display: flex;
    gap: 7px;
}

.filter-actions button,
.filter-actions .button {
    min-height: 40px;
    line-height: 38px;
    white-space: nowrap;
}

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

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

th,
td {
    border-bottom: 1px solid rgba(209, 222, 239, 0.08);
    padding: 12px 14px;
    text-align: left;
    vertical-align: middle;
    white-space: nowrap;
}

th {
    color: var(--text-dim);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.035em;
    text-transform: uppercase;
}

tbody tr {
    transition: background 120ms ease;
}

tbody tr:hover {
    background: rgba(255, 255, 255, 0.025);
}

tbody tr:last-child td {
    border-bottom: 0;
}

.customer-cell {
    max-width: 250px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cell-primary {
    color: var(--text);
    font-weight: 590;
}

.cell-secondary {
    display: block;
    margin-top: 3px;
    color: var(--text-dim);
    font-size: 10px;
}

.status-pill {
    display: inline-flex;
    gap: 5px;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 4px 7px;
    color: var(--text-soft);
    font-size: 9px;
    font-weight: 760;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.status-pill::before {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: currentColor;
    content: "";
}

.status-pill.active,
.status-pill.available,
.status-pill.sent {
    border-color: rgba(88, 214, 141, 0.2);
    background: var(--success-soft);
    color: #78dea3;
}

.status-pill.trial,
.status-pill.pending {
    border-color: rgba(245, 185, 76, 0.22);
    background: var(--warning-soft);
    color: #f4c96e;
}

.status-pill.suspended,
.status-pill.revoked,
.status-pill.refunded {
    border-color: rgba(255, 107, 118, 0.22);
    background: var(--danger-soft);
    color: #ff929b;
}

.status-pill.subscription,
.status-pill.activated {
    border-color: rgba(112, 168, 255, 0.2);
    background: var(--info-soft);
    color: #9bc1ff;
}

.status-pill.not-tracked {
    border-color: rgba(167, 176, 191, 0.18);
    background: rgba(167, 176, 191, 0.07);
    color: var(--text-dim);
}

.row-menu {
    position: relative;
}

.row-menu > summary {
    display: grid;
    width: 32px;
    height: 30px;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 9px;
    color: var(--text-soft);
    cursor: pointer;
    list-style: none;
}

.row-menu[open] > summary {
    border-color: rgba(240, 78, 89, 0.4);
    background: var(--accent-soft);
    color: #ff8f97;
}

.row-actions {
    position: absolute;
    z-index: 10;
    width: min(310px, calc(100vw - 32px));
    top: 36px;
    right: 0;
    display: grid;
    gap: 7px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
    padding: 9px;
    background: #151d29;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.42);
}

tbody tr:nth-last-child(-n + 2) .row-actions {
    top: auto;
    bottom: 36px;
}

.row-actions form {
    display: grid;
    gap: 7px;
}

.row-actions input,
.row-actions select,
.row-actions button {
    min-height: 32px;
    font-size: 10px;
}

.row-actions button {
    line-height: 30px;
}

.row-actions .pending-action {
    border-color: rgba(245, 185, 76, 0.28);
    color: #f4c96e;
}

.resend-zone {
    border-bottom: 1px solid rgba(240, 78, 89, 0.2);
    padding-bottom: 8px;
}

.resend-zone small {
    color: var(--text-dim);
    font-size: 10px;
    line-height: 1.5;
    white-space: normal;
}

.row-actions .confirmation-check {
    display: grid;
    grid-template-columns: 15px minmax(0, 1fr);
    gap: 7px;
    align-items: start;
    color: var(--text-soft);
    font-size: 10px;
    line-height: 1.4;
    cursor: pointer;
}

.row-actions .confirmation-check input {
    width: 14px;
    min-height: 14px;
    margin: 0;
    accent-color: var(--accent);
}

.row-actions .resend-action {
    border-color: rgba(240, 78, 89, 0.48);
    color: #ff8f97;
}

.row-actions .resend-action:hover {
    border-color: var(--accent);
    background: var(--accent-soft);
    color: #fff;
}

.action-disclosure > summary {
    display: flex;
    min-height: 32px;
    justify-content: space-between;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 0 10px;
    color: var(--text-soft);
    font-size: 10px;
    cursor: pointer;
    list-style: none;
}

.action-disclosure > summary::after {
    content: "+";
    color: var(--text-dim);
}

.action-disclosure[open] > summary {
    border-color: var(--line-strong);
    color: var(--text);
}

.action-disclosure[open] > summary::after {
    content: "−";
}

.action-disclosure form {
    padding-top: 8px;
}

.destructive-zone {
    margin-top: 2px;
    border-top: 1px solid rgba(255, 107, 118, 0.2);
    padding-top: 10px;
}

.destructive-zone .control-label {
    color: #ff929b;
}

.destructive-zone small {
    color: var(--text-dim);
    font-size: 9px;
    line-height: 1.45;
    white-space: normal;
}

.empty-state {
    padding: 44px 20px;
    color: var(--text-dim);
    text-align: center;
}

.panel-footer {
    display: flex;
    min-height: 48px;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--line);
    padding: 0 16px;
    color: var(--text-dim);
    font-size: 10px;
}

.audit-table code {
    display: block;
    max-width: 440px;
    overflow: hidden;
    color: #aeb9c8;
    font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
    font-size: 9px;
    text-overflow: ellipsis;
}

@media (max-width: 1080px) {
    .hero {
        grid-template-columns: 1fr;
        gap: 44px;
    }

    .hero-copy {
        max-width: 760px;
    }

    .console-card {
        max-width: 680px;
    }

    .feature-grid,
    .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .app-shell {
        grid-template-columns: 190px minmax(0, 1fr);
    }

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

    .filters {
        grid-template-columns: minmax(220px, 1fr) repeat(2, minmax(130px, 0.6fr));
    }

    .filters .kind-filter,
    .filter-actions {
        grid-column: auto;
    }
}

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

    .site-nav {
        min-height: 66px;
    }

    .brand-context,
    .site-nav .quiet {
        display: none;
    }

    .hero {
        min-height: auto;
        padding: 58px 0 64px;
    }

    .hero h1 {
        font-size: clamp(40px, 13vw, 58px);
    }

    .console-card {
        border-radius: 18px;
    }

    .feature-grid,
    .product-grid {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 58px 0;
    }

    .section-heading,
    .cta-panel {
        align-items: stretch;
        flex-direction: column;
    }

    .section-heading {
        display: flex;
    }

    .cta-panel {
        display: flex;
        gap: 22px;
    }

    .site-footer {
        gap: 14px;
        flex-direction: column;
        justify-content: center;
        align-items: start;
    }

    .auth-layout {
        grid-template-columns: 1fr;
    }

    .auth-aside {
        min-height: 270px;
        padding: 28px;
    }

    .auth-aside-copy h1 {
        font-size: 32px;
    }

    .security-stack {
        display: none;
    }

    .auth-card {
        min-height: auto;
        padding: 32px 28px;
    }

    .app-shell {
        display: block;
    }

    .sidebar {
        position: static;
        height: auto;
        border-right: 0;
        border-bottom: 1px solid var(--line);
        padding: 12px 14px;
    }

    .sidebar .brand {
        padding: 0 4px 10px;
    }

    .side-nav {
        display: flex;
        overflow-x: auto;
    }

    .side-nav a {
        flex: 0 0 auto;
        min-height: 36px;
    }

    .sidebar-foot {
        display: none;
    }

    .workspace {
        padding: 0 14px 30px;
    }

    .topbar {
        min-height: 64px;
    }

    .status-orb,
    .operator-copy {
        display: none;
    }

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

    .metric-card {
        min-height: 78px;
        padding: 11px;
    }

    .metric-value {
        font-size: 20px;
    }

    .issue-form,
    .filters {
        grid-template-columns: 1fr;
    }

    .filter-actions {
        display: grid;
        grid-template-columns: 1fr auto;
    }

    .panel-heading {
        align-items: start;
        flex-direction: column;
        justify-content: center;
    }

    th,
    td {
        padding: 11px 12px;
    }
}

@media (max-width: 460px) {
    .site-nav-actions .primary {
        padding: 0 11px;
        font-size: 12px;
    }

    .hero-actions {
        display: grid;
    }

    .hero-actions .button {
        text-align: center;
    }

    .console-status {
        align-items: start;
        flex-direction: column;
        gap: 10px;
    }

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

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

    *,
    *::before,
    *::after {
        transition-duration: 0.001ms !important;
    }
}
