:root {
    --primary: #0066cc;
    --primary-focus: #0071e3;
    --primary-on-dark: #2997ff;
    --ink: #1d1d1f;
    --ink-soft: #333333;
    --ink-muted: #6e6e73;
    --canvas: #ffffff;
    --parchment: #f5f5f7;
    --pearl: #fafafc;
    --black: #000000;
    --dark-tile: #272729;
    --hairline: #d2d2d7;
    --divider: #e8e8ed;
    --safe: #248a3d;
    --safe-bg: #edf8ef;
    --warning: #9a5b00;
    --warning-bg: #fff6e5;
    --danger: #b42318;
    --danger-bg: #fff0ee;
    --space-xxs: 4px;
    --space-xs: 8px;
    --space-sm: 12px;
    --space-md: 17px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-xxl: 48px;
    --space-section: 80px;
    --radius-xs: 5px;
    --radius-sm: 8px;
    --radius-lg: 18px;
    --radius-pill: 9999px;
    --content-width: 1440px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    color-scheme: light;
    scroll-behavior: smooth;
}

body {
    min-width: 320px;
    min-height: 100vh;
    margin: 0;
    background: var(--parchment);
    color: var(--ink);
    font-family: "SF Pro Text", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 17px;
    line-height: 1.47;
    letter-spacing: 0;
    -webkit-font-smoothing: antialiased;
}

button,
input,
select,
textarea {
    color: inherit;
    font: inherit;
    letter-spacing: 0;
}

button,
select {
    cursor: pointer;
}

button:disabled {
    cursor: not-allowed;
}

a {
    color: var(--primary);
}

svg {
    width: 18px;
    height: 18px;
    stroke-width: 1.8;
}

.hidden {
    display: none !important;
}

.visually-hidden {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.skip-link {
    position: fixed;
    top: var(--space-xs);
    left: var(--space-xs);
    z-index: 1000;
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    background: var(--canvas);
    color: var(--ink);
    transform: translateY(-150%);
}

.skip-link:focus {
    transform: translateY(0);
}

.content-lock {
    width: min(100%, var(--content-width));
    margin: 0 auto;
    padding-inline: var(--space-xl);
}

.global-nav {
    position: relative;
    z-index: 20;
    height: 44px;
    background: var(--black);
    color: var(--canvas);
}

.nav-inner {
    display: flex;
    width: min(100%, 1068px);
    height: 44px;
    margin: 0 auto;
    padding-inline: var(--space-lg);
    align-items: center;
    justify-content: space-between;
}

.brand-button,
.global-link {
    display: inline-flex;
    min-height: 44px;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    align-items: center;
    gap: var(--space-xs);
    font-size: 12px;
}

.brand-mark {
    display: grid;
    width: 24px;
    height: 24px;
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 50%;
    place-items: center;
    font-size: 12px;
    font-weight: 600;
}

.global-actions {
    display: flex;
    height: 44px;
    align-items: center;
    gap: var(--space-lg);
}

.global-link {
    opacity: 0.78;
    transition: opacity 160ms ease;
}

.global-link:active,
.global-link:focus-visible {
    opacity: 1;
}

.global-link svg {
    width: 14px;
    height: 14px;
}

.sub-nav {
    position: sticky;
    top: 0;
    z-index: 15;
    height: 52px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    background: rgba(245, 245, 247, 0.88);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    backdrop-filter: saturate(180%) blur(20px);
}

.sub-nav-inner {
    display: flex;
    width: min(100%, 1068px);
    height: 52px;
    margin: 0 auto;
    padding-inline: var(--space-lg);
    align-items: center;
    justify-content: space-between;
}

.sub-nav-inner > div {
    display: flex;
    min-width: 0;
    align-items: baseline;
    gap: var(--space-sm);
}

.sub-nav strong {
    overflow: hidden;
    font-family: "SF Pro Display", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 21px;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sub-nav-inner > div > span {
    color: var(--ink-muted);
    font-size: 12px;
}

.button,
.icon-button {
    display: inline-flex;
    border: 0;
    align-items: center;
    justify-content: center;
    transition: transform 120ms ease, background-color 160ms ease, color 160ms ease, border-color 160ms ease;
}

.button {
    min-height: 44px;
    padding: 10px 20px;
    border-radius: var(--radius-pill);
    gap: var(--space-xs);
    font-size: 14px;
    font-weight: 400;
    white-space: nowrap;
}

.button-compact {
    min-height: 32px;
    padding: 7px 14px;
    font-size: 12px;
}

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

.button-secondary {
    border: 1px solid var(--hairline);
    background: var(--canvas);
    color: var(--primary);
}

.button-dark {
    border-radius: var(--radius-sm);
    background: var(--ink);
    color: var(--canvas);
}

.button-danger {
    background: var(--danger);
    color: var(--canvas);
}

.button:active:not(:disabled),
.icon-button:active:not(:disabled) {
    transform: scale(0.95);
}

.button:disabled {
    border-color: var(--divider);
    background: var(--divider);
    color: var(--ink-muted);
    opacity: 0.8;
}

.button:focus-visible,
.icon-button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
.domain-link:focus-visible {
    outline: 2px solid var(--primary-focus);
    outline-offset: 2px;
}

.icon-button {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    padding: 0;
    border: 1px solid var(--hairline);
    border-radius: 50%;
    background: var(--canvas);
    color: var(--ink);
}

.overview-band {
    min-height: 156px;
    background: var(--canvas);
}

.overview-layout {
    display: grid;
    min-height: 156px;
    padding-block: var(--space-lg);
    align-items: center;
    grid-template-columns: minmax(280px, 0.7fr) minmax(480px, 1.3fr);
    gap: var(--space-xxl);
}

.eyebrow {
    margin: 0 0 var(--space-xs);
    color: var(--ink-muted);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.3;
}

h1,
h2,
p {
    letter-spacing: 0;
}

h1,
h2 {
    margin: 0;
    font-family: "SF Pro Display", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-weight: 600;
}

h1 {
    font-size: 34px;
    line-height: 1.1;
}

h2 {
    font-size: 28px;
    line-height: 1.18;
}

.overview-summary {
    max-width: 34ch;
    margin: var(--space-xs) 0 0;
    color: var(--ink-muted);
    font-size: 14px;
}

.metrics {
    display: grid;
    margin: 0;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.metrics > div {
    min-width: 0;
    padding-inline: 20px;
    border-left: 1px solid var(--divider);
}

.metrics dt {
    color: var(--ink-muted);
    font-size: 14px;
}

.metrics dd {
    margin: var(--space-xxs) 0 0;
    font-family: "SF Pro Display", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 30px;
    font-weight: 600;
    line-height: 1;
}

.toolbar-band {
    border-top: 1px solid var(--divider);
    border-bottom: 1px solid var(--divider);
    background: var(--parchment);
}

.toolbar-layout {
    display: flex;
    min-height: 64px;
    align-items: center;
    gap: var(--space-sm);
}

.search-field {
    position: relative;
    display: flex;
    width: min(100%, 480px);
    align-items: center;
}

.search-field svg {
    position: absolute;
    left: 17px;
    z-index: 1;
    width: 16px;
    height: 16px;
    color: var(--ink-muted);
    pointer-events: none;
}

.search-field input {
    width: 100%;
    height: 44px;
    padding: 10px 20px 10px 46px;
    border: 1px solid var(--hairline);
    border-radius: var(--radius-pill);
    background: var(--canvas);
    font-size: 17px;
}

.search-field input::placeholder {
    color: var(--ink-muted);
}

.filter-controls {
    display: flex;
    margin-left: auto;
    gap: var(--space-xs);
}

.filter-controls select,
.field-group input,
.field-group select,
.field-group textarea {
    border: 1px solid var(--hairline);
    border-radius: var(--radius-sm);
    background: var(--canvas);
}

.filter-controls select {
    height: 44px;
    padding: 8px 36px 8px 14px;
    font-size: 14px;
}

.filter-toggle {
    display: none;
}

.assets-band {
    min-height: 360px;
    padding-block: var(--space-xl) 64px;
    background: var(--parchment);
}

.section-heading {
    display: flex;
    margin-bottom: 20px;
    align-items: end;
    justify-content: space-between;
    gap: var(--space-lg);
}

.section-heading > p {
    margin: 0;
    color: var(--ink-muted);
    font-size: 14px;
}

.domain-grid {
    display: grid;
    border-top: 1px solid var(--hairline);
    grid-template-columns: 1fr;
    gap: 0;
}

.ledger-columns {
    display: grid;
    padding: 0 16px 10px;
    color: var(--ink-muted);
    grid-template-columns: minmax(260px, 1.15fr) minmax(230px, 0.8fr) minmax(320px, 1.4fr);
    gap: var(--space-xl);
    font-size: 12px;
    font-weight: 600;
}

.domain-card {
    position: relative;
    display: grid;
    min-width: 0;
    min-height: 116px;
    padding: 20px 16px;
    border: 0;
    border-bottom: 1px solid var(--divider);
    border-radius: 0;
    background: var(--canvas);
    grid-template-columns: minmax(260px, 1.15fr) minmax(230px, 0.8fr) minmax(320px, 1.4fr);
    align-items: center;
    gap: var(--space-xl);
    animation: card-enter 420ms cubic-bezier(0.22, 1, 0.36, 1) both;
    transition: background-color 160ms ease;
}

.domain-card:hover {
    background: var(--pearl);
}

.domain-card:nth-child(2n) {
    animation-delay: 40ms;
}

.domain-card:nth-child(3n) {
    animation-delay: 80ms;
}

@keyframes card-enter {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card-topline {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: var(--space-sm);
}

.domain-identity {
    position: relative;
    display: grid;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    overflow: hidden;
    border: 1px solid var(--divider);
    border-radius: var(--radius-sm);
    background: var(--pearl);
    place-items: center;
    color: var(--ink-soft);
    font-size: 18px;
    font-weight: 600;
}

.domain-identity img {
    position: absolute;
    inset: 7px;
    width: 30px;
    height: 30px;
    object-fit: contain;
}

.domain-heading {
    min-width: 0;
    flex: 1;
}

.domain-link {
    display: block;
    overflow: hidden;
    color: var(--ink);
    font-family: "SF Pro Display", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.domain-heading p {
    margin: var(--space-xxs) 0 0;
    color: var(--ink-muted);
    font-size: 14px;
}

.card-actions,
.row-actions {
    display: flex;
    align-items: center;
    gap: var(--space-xxs);
}

.card-actions .icon-button,
.row-actions .icon-button {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
}

.card-facts {
    display: grid;
    margin: 0;
    gap: var(--space-xs);
}

.card-facts > div {
    display: flex;
    min-width: 0;
    min-height: 26px;
    padding: 0;
    border: 0;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-md);
}

.card-facts dt {
    color: var(--ink-muted);
    font-size: 14px;
}

.card-facts dd {
    min-width: 0;
    margin: 0;
    overflow: hidden;
    font-size: 14px;
    text-align: right;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.status-pill {
    display: inline-flex;
    min-height: 28px;
    padding: 4px 10px;
    border-radius: var(--radius-pill);
    align-items: center;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.status-safe {
    background: var(--safe-bg);
    color: var(--safe);
}

.status-warning {
    background: var(--warning-bg);
    color: var(--warning);
}

.status-danger {
    background: var(--danger-bg);
    color: var(--danger);
}

.status-free {
    background: #eef5ff;
    color: var(--primary);
}

.evaluation {
    display: -webkit-box;
    min-height: 0;
    margin: 0;
    overflow: hidden;
    color: var(--ink-muted);
    font-size: 14px;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.evaluation.is-empty {
    color: #9a9a9f;
}

.evaluation-block {
    display: grid;
    min-width: 0;
    gap: var(--space-xs);
}

.ai-evaluation {
    display: grid;
    min-width: 0;
    padding-left: 12px;
    border-left: 2px solid var(--primary);
    gap: var(--space-xxs);
}

.ai-evaluation-label {
    display: inline-flex;
    color: var(--primary);
    align-items: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 600;
}

.ai-evaluation-label svg {
    width: 13px;
    height: 13px;
}

.ai-evaluation p {
    display: -webkit-box;
    margin: 0;
    overflow: hidden;
    color: var(--ink-soft);
    font-size: 13px;
    line-height: 1.45;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.renewal-track {
    position: absolute;
    right: 16px;
    bottom: 0;
    left: 16px;
    height: 4px;
    overflow: hidden;
    border-radius: var(--radius-pill);
    background: var(--divider);
}

.renewal-fill {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: var(--primary);
}

.renewal-fill.warning {
    background: var(--warning);
}

.renewal-fill.danger {
    background: var(--danger);
}

.state-panel {
    grid-column: 1 / -1;
    display: grid;
    min-height: 280px;
    padding: var(--space-xxl);
    place-items: center;
    align-content: center;
    gap: var(--space-sm);
    color: var(--ink-muted);
    text-align: center;
}

.state-panel p {
    max-width: 48ch;
    margin: 0;
}

.state-panel h3 {
    margin: 0;
    color: var(--ink);
    font-size: 21px;
}

.spinner {
    width: 28px;
    height: 28px;
    border: 2px solid var(--divider);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 700ms linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.spin-icon {
    animation: spin 700ms linear infinite;
}

.admin-heading-band {
    background: var(--canvas);
}

.admin-heading-layout {
    display: flex;
    min-height: 156px;
    padding-block: var(--space-lg);
    align-items: center;
    justify-content: space-between;
    gap: var(--space-xl);
}

.draft-status {
    margin: var(--space-sm) 0 0;
    color: var(--ink-muted);
    font-size: 14px;
}

.draft-status.is-dirty {
    color: var(--warning);
}

.admin-toolbar {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: var(--space-xs);
}

.admin-table-band {
    width: 100%;
    max-width: 100vw;
    min-height: 480px;
    padding-block: var(--space-xl) 64px;
    border-top: 1px solid var(--divider);
    background: var(--parchment);
    overflow: hidden;
}

.admin-table-scroll {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--canvas);
    table-layout: fixed;
}

.admin-table th,
.admin-table td {
    padding: 16px;
    border-bottom: 1px solid var(--divider);
    overflow: hidden;
    text-align: left;
    text-overflow: ellipsis;
    vertical-align: middle;
}

.admin-table th {
    height: 48px;
    background: var(--pearl);
    color: var(--ink-muted);
    font-size: 12px;
    font-weight: 600;
}

.admin-table td {
    font-size: 14px;
}

.admin-table th:nth-child(1) { width: 18%; }
.admin-table th:nth-child(2) { width: 13%; }
.admin-table th:nth-child(3) { width: 11%; }
.admin-table th:nth-child(4) { width: 12%; }
.admin-table th:nth-child(5) { width: 14%; }
.admin-table th:nth-child(6) { width: 24%; }
.admin-table th:nth-child(7) { width: 170px; }

.table-domain {
    font-weight: 600;
}

.table-link {
    color: var(--primary);
    text-decoration: none;
}

.row-actions {
    justify-content: flex-end;
}

.row-actions .danger-action {
    color: var(--danger);
}

.row-actions [data-action="ai-review"] {
    color: var(--primary);
}

.table-evaluation {
    display: grid;
    min-width: 0;
    gap: var(--space-xxs);
}

.table-evaluation > span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.table-ai-evaluation {
    color: var(--primary);
    font-size: 12px;
}

.site-footer {
    padding-block: 40px;
    border-top: 1px solid var(--divider);
    background: var(--parchment);
    color: var(--ink-muted);
    font-size: 12px;
}

.footer-layout {
    display: flex;
    justify-content: space-between;
    gap: var(--space-lg);
}

.dialog {
    width: min(calc(100% - 32px), 680px);
    max-height: calc(100vh - 32px);
    padding: 0;
    overflow: auto;
    border: 1px solid var(--hairline);
    border-radius: var(--radius-sm);
    background: var(--canvas);
    color: var(--ink);
}

.dialog-compact {
    width: min(calc(100% - 32px), 460px);
}

.dialog::backdrop {
    background: rgba(0, 0, 0, 0.52);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

.dialog[open] {
    animation: dialog-enter 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes dialog-enter {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dialog form {
    padding: var(--space-xl);
}

.dialog-header {
    display: flex;
    margin-bottom: var(--space-xl);
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--space-lg);
}

.dialog-header h2 {
    font-size: 28px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-md);
}

.form-span-2 {
    grid-column: span 2;
}

.field-group {
    position: relative;
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: var(--space-xs);
}

.field-group label {
    font-size: 14px;
    font-weight: 600;
}

.field-group input,
.field-group select,
.field-group textarea {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
}

.field-group textarea {
    min-height: 92px;
    resize: vertical;
}

.password-field {
    position: relative;
    display: flex;
    align-items: center;
}

.password-field input {
    padding-right: 56px;
}

.password-field .icon-button {
    position: absolute;
    right: 2px;
    border: 0;
}

.field-hint {
    align-self: flex-end;
    color: var(--ink-muted);
    font-size: 12px;
}

.field-error {
    margin: var(--space-sm) 0 0;
    padding: 10px 12px;
    border: 1px solid #f3bbb5;
    border-radius: var(--radius-sm);
    background: var(--danger-bg);
    color: var(--danger);
    font-size: 14px;
}

.dialog-actions {
    display: flex;
    margin-top: var(--space-xl);
    justify-content: flex-end;
    gap: var(--space-xs);
}

.confirm-message {
    margin: 0;
    color: var(--ink-muted);
}

.toast-region {
    position: fixed;
    right: var(--space-lg);
    bottom: var(--space-lg);
    z-index: 100;
    display: grid;
    width: min(calc(100% - 48px), 380px);
    gap: var(--space-xs);
    pointer-events: none;
}

.toast {
    display: flex;
    min-height: 48px;
    padding: 12px 16px;
    border: 1px solid var(--hairline);
    border-radius: var(--radius-sm);
    background: var(--ink);
    color: var(--canvas);
    align-items: center;
    gap: var(--space-sm);
    font-size: 14px;
    animation: toast-enter 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

.toast.error {
    background: var(--danger);
}

.toast.warning {
    background: var(--warning);
}

@keyframes toast-enter {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@container (max-width: 360px) {
    .domain-link {
        font-size: 17px;
    }

    .card-actions .icon-button:last-child {
        display: none;
    }
}

@media (max-width: 1068px) {
    .filter-controls select {
        max-width: 180px;
    }

    .admin-heading-layout {
        align-items: flex-start;
        flex-direction: column;
    }

    .admin-toolbar {
        justify-content: flex-start;
    }
}

@media (max-width: 833px) {
    .content-lock {
        padding-inline: var(--space-lg);
    }

    .global-actions .global-link:first-child {
        display: none;
    }

    .overview-layout {
        min-height: 228px;
        padding-block: var(--space-lg);
        grid-template-columns: 1fr;
        align-items: center;
        gap: 20px;
    }

    h1 {
        font-size: 34px;
    }

    .toolbar-layout {
        position: relative;
        flex-wrap: wrap;
        padding-block: var(--space-md);
    }

    .search-field {
        width: calc(100% - 56px);
    }

    .filter-toggle {
        display: inline-flex;
    }

    .filter-controls {
        display: grid;
        width: 100%;
        max-height: 0;
        margin-left: 0;
        overflow: hidden;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        opacity: 0;
        transform: translateY(-8px);
        transition: max-height 220ms ease, opacity 180ms ease, transform 220ms ease;
    }

    .filter-controls.is-open {
        max-height: 180px;
        padding-top: var(--space-xs);
        opacity: 1;
        transform: translateY(0);
    }

    .filter-controls select {
        width: 100%;
        max-width: none;
    }

    .admin-table {
        min-width: 1120px;
    }

    .ledger-columns {
        display: none;
    }

    .domain-card {
        grid-template-columns: minmax(240px, 1fr) minmax(220px, 0.8fr);
        gap: var(--space-lg);
    }

    .evaluation-block {
        grid-column: 1 / -1;
        padding-left: 56px;
    }
}

@media (max-width: 640px) {
    .content-lock,
    .nav-inner,
    .sub-nav-inner {
        padding-inline: var(--space-md);
    }

    .brand-button > span:last-child,
    .global-link span,
    .sub-nav-inner > div > span {
        display: none;
    }

    .metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        row-gap: var(--space-lg);
    }

    .metrics > div:nth-child(odd) {
        border-left: 0;
        padding-left: 0;
    }

    .domain-grid {
        grid-template-columns: 1fr;
        border-top: 0;
        gap: var(--space-sm);
    }

    .domain-card {
        min-height: 0;
        padding: var(--space-md);
        border: 1px solid var(--hairline);
        border-radius: var(--radius-sm);
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }

    .evaluation-block {
        grid-column: auto;
        padding-left: 0;
    }

    .renewal-track {
        right: var(--space-md);
        left: var(--space-md);
    }

    .admin-table-scroll {
        overflow: visible;
    }

    .admin-table {
        min-width: 0;
        border-collapse: separate;
        background: transparent;
    }

    .admin-table thead {
        display: none;
    }

    .admin-table tbody {
        display: grid;
        gap: var(--space-sm);
    }

    .admin-table tbody tr {
        display: grid;
        padding: var(--space-md);
        border: 1px solid var(--hairline);
        border-radius: var(--radius-sm);
        background: var(--canvas);
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: var(--space-sm) var(--space-md);
    }

    .admin-table tbody td {
        display: flex;
        min-width: 0;
        padding: 0;
        border: 0;
        overflow: visible;
        flex-direction: column;
        gap: var(--space-xxs);
        white-space: normal;
    }

    .admin-table tbody td::before {
        color: var(--ink-muted);
        content: attr(data-label);
        font-size: 12px;
        font-weight: 400;
    }

    .admin-table tbody td:first-child,
    .admin-table tbody td:nth-child(6),
    .admin-table tbody td:last-child {
        grid-column: 1 / -1;
    }

    .admin-table tbody td:first-child {
        padding-bottom: var(--space-sm);
        border-bottom: 1px solid var(--divider);
        font-size: 17px;
    }

    .admin-table tbody .row-action-cell {
        padding-top: var(--space-sm);
        border-top: 1px solid var(--divider);
    }

    .row-action-cell::before {
        display: none;
    }

    .row-actions {
        justify-content: flex-end;
    }

    .filter-controls {
        grid-template-columns: 1fr;
    }

    .filter-controls.is-open {
        max-height: 240px;
    }

    .section-heading {
        align-items: flex-start;
    }

    .admin-toolbar {
        display: grid;
        width: 100%;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .admin-toolbar .button {
        width: 100%;
    }

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

    .form-span-2 {
        grid-column: auto;
    }

    .dialog form {
        padding: var(--space-lg);
    }

    .footer-layout {
        flex-direction: column;
        gap: var(--space-xs);
    }

    .footer-layout span:last-child {
        display: none;
    }
}

@media (max-width: 419px) {
    h1 {
        font-size: 28px;
    }

    h2,
    .dialog-header h2 {
        font-size: 21px;
    }

    .overview-layout {
        min-height: 220px;
        padding-block: var(--space-lg);
    }

    .assets-band,
    .admin-table-band {
        padding-block: var(--space-xl) var(--space-xxl);
    }

    .domain-card {
        padding: var(--space-md);
    }

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

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

    .toast-region {
        right: var(--space-md);
        bottom: var(--space-md);
        width: calc(100% - 34px);
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
