* {
    box-sizing: border-box;
}

:root {
    --color-bg: #f4f6f8;
    --color-surface: #ffffff;
    --color-surface-muted: #f8fafc;
    --color-text: #1f2933;
    --color-text-muted: #52616f;
    --color-border: #d9e2ec;
    --color-primary: #1d4ed8;
    --color-primary-hover: #1e40af;
    --color-danger: #b91c1c;
    --shadow-card: 0 14px 34px rgba(15, 23, 42, 0.08);
    --radius-card: 14px;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.5;
}

a {
    color: var(--color-primary);
    text-decoration: none;
}

a:hover {
    color: var(--color-primary-hover);
    text-decoration: underline;
}

button,
input {
    font: inherit;
}

button {
    cursor: pointer;
}

.page {
    min-height: 100vh;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 18px 32px;
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
}

.brand {
    font-size: 20px;
    font-weight: 700;
    color: var(--color-text);
}

.brand:hover {
    color: var(--color-text);
    text-decoration: none;
}

.nav {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.nav a {
    font-weight: 600;
}

.nav form {
    margin: 0;
}

.nav-user {
    color: var(--color-text-muted);
    font-size: 14px;
}

.main {
    width: min(100% - 32px, 960px);
    margin: 48px auto;
}

.page-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
    padding: 32px;
}

.page-card + .page-card {
    margin-top: 24px;
}

h1,
h2,
h3 {
    line-height: 1.2;
    margin-top: 0;
}

h1 {
    font-size: 32px;
    margin-bottom: 18px;
}

h2 {
    font-size: 22px;
    margin-bottom: 14px;
}

p {
    margin-top: 0;
}

dl {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 12px 18px;
    margin: 0;
}

dt {
    font-weight: 700;
    color: var(--color-text-muted);
}

dd {
    margin: 0;
}

form {
    display: grid;
    gap: 16px;
}

label {
    display: grid;
    gap: 6px;
    font-weight: 700;
}

input[type="text"],
input[type="password"],
input[type="email"] {
    width: 100%;
    padding: 11px 12px;
    border: 1px solid var(--color-border);
    border-radius: 10px;
    background: var(--color-surface);
    color: var(--color-text);
}

input[type="text"]:focus,
input[type="password"]:focus,
input[type="email"]:focus {
    outline: 3px solid rgba(29, 78, 216, 0.16);
    border-color: var(--color-primary);
}

button,
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    padding: 10px 16px;
    border: 0;
    border-radius: 10px;
    background: var(--color-primary);
    color: #ffffff;
    font-weight: 700;
    text-decoration: none;
}

button:hover,
.button:hover {
    background: var(--color-primary-hover);
    color: #ffffff;
    text-decoration: none;
}

.button-secondary {
    background: var(--color-surface-muted);
    color: var(--color-text);
    border: 1px solid var(--color-border);
}

.button-secondary:hover {
    background: #eef2f7;
    color: var(--color-text);
}

.error,
.alert-error {
    padding: 12px 14px;
    border: 1px solid #fecaca;
    border-radius: 10px;
    background: #fef2f2;
    color: var(--color-danger);
}

.container {
    max-width: 900px;
    margin: 60px auto;
    padding: 32px;
    background: var(--color-surface);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
}

@media (max-width: 700px) {
    .topbar {
        align-items: flex-start;
        flex-direction: column;
        padding: 16px 20px;
    }

    .main {
        width: min(100% - 24px, 960px);
        margin: 28px auto;
    }

    .page-card {
        padding: 22px;
    }

    dl {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    h1 {
        font-size: 26px;
    }
}

.flash-stack {
    display: grid;
    gap: 12px;
    margin-bottom: 24px;
}

.flash-message {
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid var(--color-border);
    background: var(--color-surface);
    font-weight: 700;
}

.flash-message-success {
    border-color: #bbf7d0;
    background: #f0fdf4;
    color: #166534;
}

.flash-message-info {
    border-color: #bfdbfe;
    background: #eff6ff;
    color: #1e40af;
}

.flash-message-warning {
    border-color: #fde68a;
    background: #fffbeb;
    color: #92400e;
}

.flash-message-error {
    border-color: #fecaca;
    background: #fef2f2;
    color: var(--color-danger);
}

.table-wrapper {
    width: 100%;
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: var(--color-surface);
}

th,
td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--color-border);
    text-align: left;
    vertical-align: top;
    font-size: 14px;
}

th {
    background: var(--color-surface-muted);
    color: var(--color-text-muted);
    font-weight: 700;
    white-space: nowrap;
}

tr:hover td {
    background: #f8fafc;
}

.button.secondary,
button.secondary {
    background: var(--color-surface-muted);
    color: var(--color-text);
    border: 1px solid var(--color-border);
}

.button.secondary:hover,
button.secondary:hover {
    background: #eef2f7;
    color: var(--color-text);
}

.badge {
    display: inline-flex;
    align-items: center;
    max-width: 260px;
    padding: 4px 8px;
    border-radius: 999px;
    background: var(--color-surface-muted);
    border: 1px solid var(--color-border);
    color: var(--color-text);
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.code-cell {
    max-width: 360px;
    max-height: 180px;
    overflow: auto;
    margin: 0;
    padding: 8px;
    border-radius: 8px;
    background: #0f172a;
    color: #e5e7eb;
    font-size: 12px;
    line-height: 1.4;
}

.muted {
    color: var(--color-text-muted);
    font-size: 13px;
}

.section-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
}

.section-header p {
    margin-bottom: 0;
}

.button-small {
    padding: 7px 10px;
    border-radius: 8px;
    font-size: 12px;
}

.action-group {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    flex-wrap: wrap;
    min-width: 220px;
}

.action-group form {
    display: inline-flex;
    gap: 0;
    margin: 0;
}

.badge-list {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.badge-success {
    background: #ecfdf5;
    border-color: #bbf7d0;
    color: #166534;
}

.badge-danger {
    background: #fef2f2;
    border-color: #fecaca;
    color: #991b1b;
}

select {
    width: 100%;
    padding: 11px 12px;
    border: 1px solid var(--color-border);
    border-radius: 10px;
    background: var(--color-surface);
    color: var(--color-text);
    font: inherit;
}

select:focus {
    outline: 3px solid rgba(29, 78, 216, 0.16);
    border-color: var(--color-primary);
}

.filter-form {
    display: grid;
    grid-template-columns: minmax(240px, 1fr) minmax(160px, 220px) auto;
    align-items: end;
    gap: 16px;
}

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

@media (max-width: 800px) {
    .filter-form {
        grid-template-columns: 1fr;
    }
}

.pagination {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.pagination-info {
    color: #6b7280;
    font-size: 0.95rem;
}

.button.disabled,
.button.disabled:hover {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.stat-card {
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    padding: 1rem;
    background: #f9fafb;
}

.stat-label {
    display: block;
    color: #6b7280;
    font-size: 0.9rem;
    margin-bottom: 0.35rem;
}

.stat-value {
    display: block;
    font-size: 1.8rem;
    line-height: 1;
}

.users-table {
    min-width: 1180px;
}

.users-table .email-cell {
    max-width: 220px;
    overflow-wrap: anywhere;
}

.users-table .date-cell {
    min-width: 120px;
    white-space: normal;
}

.users-table .actions-cell {
    position: sticky;
    right: 0;
    z-index: 1;
    min-width: 128px;
    background: var(--color-surface);
    box-shadow: -8px 0 12px rgba(15, 23, 42, 0.06);
}

.users-table th.actions-cell {
    z-index: 2;
    background: var(--color-surface-muted);
}

.users-table tr:hover .actions-cell {
    background: #f8fafc;
}

.users-table .actions-cell .action-group {
    min-width: 0;
    width: 112px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
}

.users-table .actions-cell .button-small {
    width: 100%;
    justify-content: center;
    text-align: center;
    padding: 6px 8px;
    font-size: 12px;
}

.users-table .actions-cell form {
    width: 100%;
}

@media (max-width: 900px) {
    .users-table {
        min-width: 1080px;
    }

    .users-table .actions-cell {
        min-width: 118px;
    }

    .users-table .actions-cell .action-group {
        width: 102px;
    }
}

.muted {
    color: var(--color-text-muted);
}

.search-form {
    grid-template-columns: 1fr auto;
    align-items: end;
}

.table-wrap {
    width: 100%;
    overflow-x: auto;
}

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

.data-table th,
.data-table td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--color-border);
    text-align: left;
    vertical-align: top;
}

.data-table th {
    background: var(--color-surface-muted);
    color: var(--color-text-muted);
    font-weight: 700;
    white-space: nowrap;
}

.table-subtext {
    margin-top: 4px;
    color: var(--color-text-muted);
    font-size: 12px;
    word-break: break-all;
}

@media (max-width: 700px) {
    .search-form {
        grid-template-columns: 1fr;
    }
}

select {
    width: 100%;
    padding: 11px 12px;
    border: 1px solid var(--color-border);
    border-radius: 10px;
    background: var(--color-surface);
    color: var(--color-text);
    font: inherit;
}

select:focus {
    outline: 3px solid rgba(29, 78, 216, 0.16);
    border-color: var(--color-primary);
}

.search-form-advanced {
    grid-template-columns: 2fr 1fr 1fr auto;
    align-items: end;
}

.search-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.release-results {
    display: grid;
    gap: 16px;
}

.release-card {
    display: grid;
    gap: 16px;
    padding: 18px;
    border: 1px solid var(--color-border);
    border-radius: 14px;
    background: var(--color-surface-muted);
}

.release-card h3 {
    margin: 8px 0 0;
    font-size: 18px;
    word-break: break-word;
}

.release-badges,
.release-flags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.badge,
.flag {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 4px 8px;
    border-radius: 999px;
    border: 1px solid var(--color-border);
    background: var(--color-surface);
    color: var(--color-text-muted);
    font-size: 12px;
    font-weight: 700;
}

.badge {
    color: var(--color-primary);
}

.badge-muted {
    color: var(--color-text-muted);
}

.flag-ok {
    border-color: #bbf7d0;
    background: #f0fdf4;
    color: #166534;
}

.release-path {
    margin: 8px 0 0;
    color: var(--color-text-muted);
    font-size: 13px;
    word-break: break-all;
}

.release-meta {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.release-meta div {
    display: grid;
    gap: 4px;
}

.release-meta dt {
    font-size: 12px;
}

.release-meta dd {
    font-weight: 700;
}

@media (max-width: 900px) {
    .search-form-advanced {
        grid-template-columns: 1fr 1fr;
    }

    .search-actions {
        grid-column: 1 / -1;
    }
}

@media (max-width: 700px) {
    .search-form-advanced,
    .release-meta {
        grid-template-columns: 1fr;
    }
}

.release-actions {
    margin-top: 1rem;
}

.release-detail-card {
    display: grid;
    gap: 1rem;
}

.release-detail-title {
    overflow-wrap: anywhere;
}

.release-detail-meta {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.file-list {
    display: grid;
    gap: 0.75rem;
}

.file-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.85rem 1rem;
    border: 1px solid #dde3ea;
    border-radius: 0.75rem;
    background: #ffffff;
}

.file-main {
    min-width: 0;
}

.file-name {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    font-size: 0.9rem;
    overflow-wrap: anywhere;
}

.file-size {
    white-space: nowrap;
    color: #526070;
    font-size: 0.9rem;
}

.file-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-top: 0.45rem;
}

.file-tag {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0.15rem 0.45rem;
    background: #eef2f6;
    color: #526070;
    font-size: 0.75rem;
    font-weight: 600;
}

.file-tag-ok {
    background: #e7f7ed;
    color: #1e7a3a;
}

@media (max-width: 700px) {
    .file-row {
        flex-direction: column;
    }

    .file-size {
        white-space: normal;
    }
}

.release-meta-wide {
    grid-column: 1 / -1;
}

.release-meta-long {
    overflow-wrap: anywhere;
    word-break: normal;
    max-width: 100%;
}

.release-detail-meta dd {
    overflow-wrap: anywhere;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem 1.25rem;
}

.detail-grid dt {
    color: #526070;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.detail-grid dd {
    margin: 0;
    overflow-wrap: anywhere;
    font-weight: 600;
}

.detail-grid-wide {
    grid-column: 1 / -1;
}

.omdb-plot {
    font-weight: 500;
    line-height: 1.6;
}

.file-sections {
    display: grid;
    gap: 1.25rem;
}

.file-section {
    display: grid;
    gap: 0.75rem;
}

.file-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.file-section-header h3 {
    margin: 0;
}

.collection-card {
    display: grid;
    gap: 1.25rem;
}

.collection-summary {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1.5rem;
    align-items: start;
    padding: 1rem;
    border: 1px solid #dde3ea;
    border-radius: 0.9rem;
    background: #f8fafc;
}

.collection-label {
    color: #526070;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.collection-title {
    font-size: 1.25rem;
    font-weight: 800;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.collection-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: flex-end;
}

.collection-fact {
    display: grid;
    gap: 0.15rem;
    min-width: 120px;
    padding: 0.65rem 0.8rem;
    border: 1px solid #dde3ea;
    border-radius: 0.75rem;
    background: #ffffff;
    color: #111827;
    font-weight: 700;
}

.collection-fact strong {
    color: #526070;
    font-size: 0.78rem;
}

.collection-relations {
    display: grid;
    gap: 1rem;
}

.collection-relation-block {
    display: grid;
    gap: 0.5rem;
}

.collection-relation-block h3 {
    margin: 0;
    font-size: 1rem;
}

.collection-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

@media (max-width: 800px) {
    .collection-summary {
        grid-template-columns: 1fr;
    }

    .collection-facts {
        justify-content: flex-start;
    }
}

.file-section-collapsible {
    overflow: hidden;
}

.file-section-summary {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    list-style: none;
}

.file-section-summary::-webkit-details-marker {
    display: none;
}

.file-section-summary::before {
    content: "▶";
    font-size: 0.85rem;
    line-height: 1;
    opacity: 0.75;
    transition: transform 0.15s ease-in-out;
}

.file-section-collapsible[open] .file-section-summary::before {
    transform: rotate(90deg);
}

.file-section-collapsible:not([open]) .file-list {
    display: none;
}

.file-section-summary span:first-of-type {
    font-size: 1.15rem;
    font-weight: 700;
}

.pagination-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.pagination-bar-bottom {
    margin-top: 1.25rem;
    margin-bottom: 0;
}

.pagination-info {
    color: #6b7280;
    font-weight: 600;
    text-align: center;
}

.button-disabled {
    cursor: not-allowed;
    opacity: 0.5;
    pointer-events: none;
}

.search-form-advanced > .search-sort-field {
    grid-column: 1 / -1;
    max-width: 32rem;
}

.search-form-advanced > .search-actions {
    grid-column: 1 / -1 !important;
    justify-content: flex-start;
    align-self: start;
}

.badge-link {
    color: inherit;
    text-decoration: none;
    transition: transform 0.12s ease-in-out, box-shadow 0.12s ease-in-out;
}

.badge-link:hover,
.badge-link:focus {
    transform: translateY(-1px);
    box-shadow: 0 0.25rem 0.75rem rgba(15, 23, 42, 0.12);
    text-decoration: none;
}

.search-form-advanced > .search-scope-field {
    grid-column: 1 / span 2;
    max-width: 32rem;
}

/* Navigation groups / dropdowns */
.nav-group {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.nav-group-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    width: auto;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--color-primary);
    font-weight: 700;
    line-height: 1.5;
}

.nav-group-toggle:hover,
.nav-group-toggle:focus {
    background: transparent;
    color: var(--color-primary-hover);
    text-decoration: underline;
}

.nav-caret {
    font-size: 12px;
    line-height: 1;
}

.nav-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    z-index: 20;
    display: none;
    min-width: 210px;
    padding: 8px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    box-shadow: var(--shadow-card);
}

.nav-group:hover .nav-dropdown,
.nav-group:focus-within .nav-dropdown {
    display: grid;
    gap: 2px;
}

.nav-dropdown a {
    display: block;
    padding: 9px 10px;
    border-radius: 8px;
    color: var(--color-text);
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
}

.nav-dropdown a:hover,
.nav-dropdown a:focus {
    background: var(--color-surface-muted);
    color: var(--color-primary-hover);
    text-decoration: none;
}

@media (max-width: 700px) {
    .nav {
        align-items: flex-start;
    }

    .nav-group {
        display: grid;
        width: 100%;
    }

    .nav-group-toggle {
        justify-content: flex-start;
    }

    .nav-dropdown {
        position: static;
        width: 100%;
        min-width: 0;
        margin-top: 8px;
        box-shadow: none;
    }
}

/* Phase 23D: Job UI / Dry-Run display */
.job-release-name {
    overflow-wrap: anywhere;
    word-break: break-word;
}

.job-release-id {
    white-space: nowrap;
}

.job-json-box {
    max-width: 100%;
    overflow-x: auto;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.job-detail-grid {
    display: grid;
    grid-template-columns: minmax(140px, 220px) 1fr;
    gap: 0.5rem 1rem;
}

.job-detail-grid dt {
    font-weight: 600;
}

.job-detail-grid dd {
    margin: 0;
    min-width: 0;
}

.job-badge {
    display: inline-block;
    padding: 0.15rem 0.45rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1.3;
    white-space: nowrap;
}

.job-badge-dry-run {
    border: 1px solid currentColor;
}

.job-message-safe {
    margin-top: 0.35rem;
    font-size: 0.9rem;
}

/* Phase 23D: Job table layout improvements */
.job-table {
    width: 100%;
    min-width: 1180px;
    table-layout: fixed;
}

.job-table th,
.job-table td {
    vertical-align: top;
}

.job-col-id {
    width: 95px;
}

.job-col-type {
    width: 210px;
}

.job-col-status {
    width: 140px;
}

.job-col-release {
    width: 420px;
}

.job-col-attempts {
    width: 90px;
}

.job-col-time {
    width: 150px;
}

.job-col-error {
    width: 90px;
}

.job-col-action {
    width: 110px;
}

.job-table .job-release-cell {
    white-space: normal;
}

.job-table .job-type-cell code,
.job-table .job-release-name {
    overflow-wrap: anywhere;
    word-break: break-word;
}

.job-table .job-release-name {
    line-height: 1.35;
}

.job-table .job-release-id {
    display: block;
    margin-top: 0.2rem;
}

.job-table .job-id-actions {
    line-height: 1.5;
}

/* Admin system status */
.status-hero,
.status-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 1rem;
    margin: 1rem 0;
}

.status-panel {
    background: #ffffff;
    border: 1px solid #d9e2ec;
    border-radius: 10px;
    padding: 1rem 1.15rem;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.status-panel h2 {
    margin-top: 0;
    margin-bottom: 0.85rem;
}

.status-summary-grid,
.status-pill-grid,
.status-timer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.85rem 1rem;
}

.status-kv span,
.status-pill-label {
    display: block;
    color: #64748b;
    font-size: 0.88rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.status-kv strong {
    display: block;
    color: #0f172a;
    font-size: 0.98rem;
    overflow-wrap: anywhere;
}

.status-note {
    margin: 1rem 0 0;
    padding: 0.75rem 0.85rem;
    border-left: 4px solid #94a3b8;
    background: #f8fafc;
    color: #334155;
}

.status-table {
    width: 100%;
    border-collapse: collapse;
}

.status-table th,
.status-table td {
    padding: 0.58rem 0.5rem;
    border-bottom: 1px solid #e2e8f0;
    vertical-align: top;
}

.status-table th {
    width: 34%;
    color: #475569;
    text-align: left;
    font-weight: 700;
    background: #f8fafc;
}

.status-table td {
    overflow-wrap: anywhere;
}

.status-table tr:last-child th,
.status-table tr:last-child td {
    border-bottom: 0;
}

.status-panel code {
    white-space: normal;
    overflow-wrap: anywhere;
}

@media (max-width: 760px) {
    .status-hero,
    .status-grid,
    .status-summary-grid,
    .status-pill-grid,
    .status-timer-grid {
        grid-template-columns: 1fr;
    }
}

/* Transfer configuration overview */
.transfer-config-table {
    min-width: 1100px;
    table-layout: auto;
}

.transfer-config-table th,
.transfer-config-table td {
    vertical-align: top;
}

.transfer-config-table code {
    white-space: nowrap;
    word-break: normal;
    overflow-wrap: normal;
}

.transfer-config-table .transfer-path-cell {
    min-width: 260px;
}

.transfer-config-table .transfer-key-cell {
    min-width: 160px;
}

.transfer-config-table td {
    line-height: 1.45;
}


/* Transfer dry-run details */
.transfer-dry-run-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.85rem;
    padding: 1rem;
    border: 1px solid #d8e0ec;
    border-radius: 0.9rem;
    background: #f8fafc;
}

.transfer-summary-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 0;
}

.transfer-summary-item span {
    color: #64748b;
    font-size: 0.9rem;
    font-weight: 700;
}

.transfer-summary-item strong {
    color: #0f172a;
    overflow-wrap: anywhere;
}

.transfer-summary-item code {
    display: inline-block;
    width: fit-content;
    max-width: 100%;
    overflow-wrap: anywhere;
    white-space: normal;
}

.transfer-summary-wide {
    grid-column: 1 / -1;
}

.transfer-action-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

