/* Navigation shared by the console, files, backups and scheduled tasks. */
.server-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    padding: 8px;
    margin: 0 0 27px;
    border: 1px solid #80568c66;
    border-radius: 15px;
    background: linear-gradient(100deg, #30203f, #24182f);
}

.server-tabs > a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 11px 17px;
    border: 1px solid transparent;
    border-radius: 10px;
    color: #cdb1df;
    font-size: .77rem;
    font-weight: 500;
    line-height: 1.5;
    transition: background .2s, border-color .2s, color .2s;
}

.server-tabs > a:hover {
    color: #fff1ff;
    background: #7d4a9c33;
    border-color: #c78ce333;
}

.server-tabs > a.active {
    color: #fff4ff;
    background: linear-gradient(105deg, #8749bb, #b64a96);
    border-color: #e4a3ef66;
    box-shadow: 0 5px 19px #8c3f9b33;
}

.server-tabs > a > svg {
    color: #d6a7ef;
}

.server-tabs > a.active > svg {
    color: #ffe4fc;
}

/* File locations and folder tools. */
.files-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    padding: 17px 20px;
    margin-bottom: 23px;
    border: 1px solid #74518570;
    border-radius: 12px;
    background: linear-gradient(110deg, #2b1d3b, #252135);
    color: #ae8fc3;
    font-size: .72rem;
    line-height: 1.8;
    overflow-wrap: anywhere;
}

.files-breadcrumb > a {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
    color: #dbc0ed;
    overflow-wrap: anywhere;
}

.files-breadcrumb > a:first-child > svg {
    color: #72e4d5;
}

.files-breadcrumb > a:last-child {
    color: #f1c6ff;
    font-weight: 600;
}

.files-breadcrumb > a:hover {
    color: #fff1ff;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.files-breadcrumb > svg {
    color: #9872ad;
}

.files-toolbar {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 23px;
}

.files-toolbar .action-row {
    gap: 10px;
}

.files-toolbar .button {
    font-size: .72rem;
}

.files-count {
    padding: 6px 10px;
    border: 1px solid #a076ba4a;
    border-radius: 8px;
    background: #35213e66;
    font-size: .67rem;
    white-space: nowrap;
}

.files-tools-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 21px;
    align-items: start;
    margin-bottom: 22px;
}

.file-action-panel {
    margin-bottom: 23px;
}

.files-tools-grid > .file-action-panel {
    margin: 0;
}

.file-action-panel > summary {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 11px;
    padding-right: 21px;
    list-style: none;
    position: relative;
    color: #eed9fb;
    font-weight: 500;
    line-height: 1.8;
}

.file-action-panel > summary::-webkit-details-marker {
    display: none;
}

.file-action-panel > summary::after {
    content: '+';
    position: absolute;
    right: 0;
    color: #dba5f1;
    font-size: 1.3rem;
    line-height: 1;
    font-weight: 400;
}

.file-action-panel[open] > summary::after {
    content: '−';
}

.file-action-panel > summary > svg {
    color: #a6f0df;
}

.file-action-panel [data-file-selection-count] {
    display: inline-block;
    margin-left: auto;
    padding: 2px 7px;
    border: 1px solid #aa77c650;
    border-radius: 6px;
    color: #d2addf;
    background: #65407d33;
    font-size: .59rem;
    font-weight: 400;
}

.file-action-panel .details-body {
    margin-top: 21px;
    padding-top: 21px;
    border-top: 1px solid #80568c50;
}

.file-action-panel .stack-form > p {
    margin-bottom: 0;
    font-size: .75rem;
}

.file-action-panel .stack-form > .button {
    justify-self: start;
    font-size: .75rem;
}

/* Files stay in their table; their action popovers do not resize the row. */
.files-list-panel {
    position: relative;
    margin-top: 24px;
}

.files-list-panel .table-wrap {
    overflow: visible;
}

.files-table {
    width: 100%;
    table-layout: fixed;
}

.files-table th:first-child:empty,
.files-table th[aria-label='Sélection'] {
    width: 42px;
    padding-inline: 15px 8px;
}

.files-table th:nth-last-child(3) {
    width: 100px;
}

.files-table th:nth-last-child(2) {
    width: 142px;
}

.files-table th:last-child {
    width: 111px;
}

.files-table td {
    min-width: 0;
    padding-block: 16px;
}

.files-table td:nth-last-child(3),
.files-table td:nth-last-child(2) {
    color: #bda0cd;
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    font-size: .63rem;
    line-height: 1.9;
    white-space: nowrap;
}

.files-table td:has(> input.file-selection) {
    padding-inline: 15px 8px;
}

input.file-selection {
    width: 15px;
    height: 15px;
    margin: 0;
    accent-color: #c37bf1;
    vertical-align: middle;
    cursor: pointer;
}

input.file-selection:disabled {
    opacity: .35;
    cursor: not-allowed;
}

label.file-selection {
    font-size: .66rem;
    align-items: center;
    white-space: nowrap;
}

label.file-selection > input {
    margin-top: 0;
}

.file-name {
    display: flex;
    align-items: center;
    gap: 11px;
    min-width: 0;
}

.file-name > svg {
    color: #dba5f4;
}

.file-name > a,
.file-name > span {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #eed9fc;
    font-size: .76rem;
    font-weight: 500;
}

.file-name > a:hover {
    color: #a8ffe1;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.file-name > span > small {
    font-size: .56rem;
    font-weight: 400;
}

.files-table .files-actions {
    position: relative;
}

.files-actions > summary {
    padding: 7px 10px;
    min-height: 34px;
    font-size: .62rem;
    list-style: none;
}

.files-actions > summary::-webkit-details-marker {
    display: none;
}

.files-actions > summary > svg {
    transform: rotate(90deg);
}

.files-actions[open] {
    z-index: 45;
}

.files-actions[open] > summary {
    background: #74468d;
    border-color: #d49cf26b;
}

.file-actions-menu {
    position: absolute;
    z-index: 45;
    top: calc(100% + 9px);
    right: 0;
    display: grid;
    gap: 11px;
    width: 298px;
    max-width: calc(100vw - 50px);
    padding: 16px;
    border: 1px solid #ba87d785;
    border-radius: 13px;
    background: linear-gradient(145deg, #3b274c, #271b35);
    box-shadow: 0 16px 50px #090411a6;
}

.files-table tr:nth-last-child(-n+3) .file-actions-menu {
    top: auto;
    bottom: calc(100% + 9px);
}

.file-actions-menu .button {
    width: 100%;
    justify-content: flex-start;
    min-height: 35px;
    font-size: .65rem;
}

.file-actions-menu > form {
    margin: 0;
}

.file-actions-menu > form.stack-form {
    gap: 11px;
    padding-top: 13px;
    border-top: 1px solid #b47bc43d;
}

.file-actions-menu .field {
    gap: 8px;
}

.file-actions-menu .field > span {
    color: #cbb0df;
    font-size: .63rem;
}

.file-actions-menu input {
    padding: 9px 10px;
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    font-size: .65rem;
}

.file-actions-menu .danger {
    justify-content: center;
    margin-top: 2px;
}

.files-hint {
    padding-top: 18px;
    margin: 0;
    font-size: .67rem;
    color: #a88cbb;
    line-height: 1.9;
}

/* Editor and upload surfaces. */
.file-editor > .section-inline-title h2 {
    overflow-wrap: anywhere;
}

.file-editor > p.muted {
    padding: 10px 13px;
    margin: 0 0 24px;
    border: 1px solid #80568c55;
    border-radius: 8px;
    background: #1a102933;
    color: #cdb0e0;
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    font-size: .67rem;
    overflow-wrap: anywhere;
}

.file-editor textarea.code-input {
    min-height: 460px;
    padding: 20px;
    border-color: #79558c;
    border-radius: 12px;
    background: #150e21;
    color: #e8d4fb;
    font-size: .75rem !important;
    line-height: 1.9 !important;
    tab-size: 4;
    resize: vertical;
    white-space: pre;
    overflow: auto;
    scrollbar-width: thin;
    scrollbar-color: #88619e #160e22;
}

.file-editor textarea.code-input:focus {
    border-color: #c787ee;
    box-shadow: 0 0 0 3px #c488ee17;
}

.file-editor textarea[readonly] {
    border-style: dashed;
    color: #c6b3d4;
}

.file-editor .form-actions {
    gap: 12px;
}

[data-file-editor-state] {
    font-size: .68rem;
    margin-left: auto;
}

.file-upload-zone {
    padding: 22px;
    gap: 13px;
    border: 1px dashed #bb83d58f;
    border-radius: 13px;
    background: radial-gradient(ellipse at 0 0, #9964b22c, transparent 80%), #291b3638;
    transition: border-color .2s, background .2s;
}

.file-upload-zone > span {
    color: #e6c9f6;
    font-size: .73rem;
}

.file-upload-zone.drag-over {
    border-color: #86f3d8;
    background: #3c756a3b;
    box-shadow: inset 0 0 0 1px #86f3d844;
}

.file-upload-zone input[type=file] {
    min-width: 0;
    width: 100%;
    font-size: .69rem;
}

.file-upload-zone small {
    font-size: .62rem;
}

[data-file-upload-status] {
    display: block;
    min-height: 0;
    color: #b0edda;
    font-size: .67rem;
    overflow-wrap: anywhere;
}

[data-file-upload-status]:empty {
    display: none;
}

/* Backup metrics and archives. */
.server-tabs + div > .stats-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 17px;
}

.server-tabs + div > .stats-grid > .stat-card:nth-child(4) {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 13px;
    padding: 15px 20px;
    border-color: #78578770;
    background: linear-gradient(110deg, #33223f, #252035);
}

.server-tabs + div > .stats-grid > .stat-card:nth-child(4) > svg {
    position: static;
    width: 17px;
    height: 17px;
    color: #c2a2d8;
}

.server-tabs + div > .stats-grid > .stat-card:nth-child(4) > span {
    padding: 0;
    margin: 0;
    color: #bba0ce;
    font-size: .68rem;
}

.server-tabs + div > .stats-grid > .stat-card:nth-child(4) > strong {
    padding: 0;
    margin-left: auto;
    color: #e9d7f6;
    font-size: .78rem;
    font-weight: 500;
    letter-spacing: -.01em;
}

.server-tabs + div > form.panel .form-grid > .field > p {
    margin: 0;
    font-size: .75rem;
    line-height: 1.95;
}

.server-tabs + div .database-card > .section-inline-title {
    align-items: flex-start;
    margin-bottom: 19px;
}

.server-tabs + div .database-card h3 {
    margin: 0 0 9px;
    color: #f0d5ff;
    font-family: Space, system-ui, sans-serif;
    font-size: .96rem;
    line-height: 1.55;
    letter-spacing: -.025em;
    overflow-wrap: anywhere;
}

.server-tabs + div .database-card .section-inline-title .muted {
    display: block;
    font-size: .62rem;
    line-height: 1.9;
    overflow-wrap: anywhere;
}

.server-tabs + div .database-card > .info-note {
    padding: 13px 16px;
    margin-bottom: 19px;
    font-size: .68rem;
    border-left-color: #7bdecc;
    background: #27594b3b;
    color: #c2efdf;
}

.server-tabs + div .database-card > .mini-metrics {
    gap: 8px;
    margin-block: 17px;
}

.server-tabs + div .database-card > details:not(.form-section) {
    margin-top: 18px;
}

.server-tabs + div .database-card > details:not(.form-section) > summary {
    color: #bd9ecf;
    font-size: .65rem;
    cursor: pointer;
    line-height: 1.8;
}

.server-tabs + div .database-card .key-block {
    margin-bottom: 0;
    font-size: .63rem;
    overflow-wrap: anywhere;
}

.server-tabs + div .database-card > .action-row {
    gap: 10px;
    margin-top: 22px;
}

.server-tabs + div .database-card > .form-section {
    margin-top: 22px;
    padding-top: 19px;
}

.server-tabs + div .database-card .details-body p {
    margin-bottom: 22px;
    font-size: .73rem;
    line-height: 2;
}

.server-tabs + div .database-card .form-section .details-heading {
    color: #efb8d5;
    font-size: .73rem;
}

/* Running jobs, histories and terminal failures use consistent status badges. */
.status-backing_up,
.status-restoring,
.status-creating,
.status-queued {
    color: #ffdfad;
    border-color: #d3a06c70;
    background: #624735;
}

.status-backing_up i,
.status-restoring i,
.status-creating i,
.status-queued i {
    background: #ffd08a;
}

.status-ready,
.status-succeeded {
    color: #b8ffe2;
    border-color: #78c7aa70;
    background: #235245;
}

.status-ready i,
.status-succeeded i {
    background: #85f7c7;
}

.status-failed,
.status-deleting {
    color: #ffc7dc;
    border-color: #da86a77a;
    background: #663048;
}

.status-failed i,
.status-deleting i {
    background: #ff9dc7;
}

.status-skipped {
    color: #d9c8e8;
    border-color: #9576aa66;
    background: #49344f;
}

.status-skipped i {
    background: #c4a8d7;
}

/* Schedules: readable action cards beside their creation form. */
.schedule-workspace {
    grid-template-columns: minmax(0, 1.45fr) minmax(280px, .85fr);
    align-items: start;
    gap: 24px;
}

.schedule-workspace > .panel,
.schedule-workspace > aside {
    min-width: 0;
}

.schedule-workspace > aside {
    border-color: #b27bc570;
    background: radial-gradient(ellipse at 100% 0, #b56aa62b, transparent 70%), linear-gradient(140deg, #332041, #251b32);
}

.schedule-workspace > aside h2 {
    margin-bottom: 1px;
    color: #f1d8ff;
}

.schedule-workspace form .field > input[name=cron_expression],
.schedule-workspace form .field > input[name=command] {
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    font-size: .72rem;
}

.schedule-workspace form .field > select[name=timezone] {
    color: #b9f0e0;
}

.schedule-workspace form .check {
    font-size: .71rem;
}

.schedule-card > .section-inline-title {
    align-items: flex-start;
    margin-bottom: 16px;
}

.schedule-card > .section-inline-title h3 {
    margin: 0 0 12px;
    font-size: 1rem;
    line-height: 1.55;
    color: #edd4fc;
    letter-spacing: -.025em;
    overflow-wrap: anywhere;
}

.schedule-card > .section-inline-title > svg {
    width: 35px;
    height: 35px;
    padding: 8px;
    border: 1px solid #ae7cc358;
    border-radius: 10px;
    color: #dcc1f6;
    background: #70478b40;
}

.schedule-card .static-badge {
    color: #e8c9f7;
    font-size: .6rem;
    line-height: 1.8;
    white-space: normal;
}

.schedule-card .support-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 20px;
    margin-top: 19px;
}

.schedule-card .support-list > div {
    min-width: 0;
    padding-block: 14px;
    border-color: #80568c40;
}

.schedule-card .support-list > div:last-child:nth-child(odd) {
    grid-column: 1 / -1;
}

.schedule-card .support-list dt {
    font-size: .61rem;
    color: #ad8fc2;
}

.schedule-card .support-list dd {
    color: #dfc8ef;
    font-size: .71rem;
    line-height: 1.9;
    overflow-wrap: anywhere;
}

.schedule-card .support-list code {
    display: inline-block;
    margin: 3px 4px 3px 0;
    padding: 3px 8px;
    border-color: #a375bc66;
    color: #d8f5f0;
    font-size: .71rem;
}

.schedule-card > .action-row {
    gap: 9px;
}

.schedule-card > .action-row .button {
    padding: 8px 11px;
    min-height: 35px;
    font-size: .64rem;
}

.schedule-card > details {
    padding: 17px 18px;
    border: 1px solid #835b9864;
    border-radius: 11px;
    background: #55316e1c;
}

.schedule-card > details > .details-heading {
    color: #d9b8ec;
    font-size: .71rem;
}

.schedule-card > details > .details-body {
    padding-top: 23px;
}

.schedule-card .details-body .stack-form {
    gap: 21px;
}

.schedule-card .details-body .stack-form > small {
    font-size: .62rem;
    line-height: 1.9;
}

.schedule-workspace + .panel .table td {
    line-height: 1.9;
}

.schedule-workspace + .panel .table th:last-child,
.schedule-workspace + .panel .table td:last-child {
    min-width: 138px;
    white-space: nowrap;
}

.schedule-workspace + .panel .table td:nth-child(3) {
    min-width: 200px;
    overflow-wrap: anywhere;
    font-size: .7rem;
    color: #c4a9d5;
}

.schedule-workspace + .panel .table td:first-child strong {
    display: block;
    min-width: 115px;
    color: #e7cff7;
    font-size: .73rem;
    overflow-wrap: anywhere;
}

.schedule-workspace + .panel .table .status {
    font-size: .59rem;
}

/* Mobile and tablet layouts keep controls reachable without widening the page. */
@media (max-width: 1100px) {
    .schedule-workspace {
        grid-template-columns: minmax(0, 1fr);
    }

    .schedule-workspace > aside .form-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .files-tools-grid {
        gap: 17px;
    }

    .files-table th:nth-last-child(3) {
        width: 90px;
    }

    .files-table th:nth-last-child(2) {
        width: 125px;
    }

    .files-table th:last-child {
        width: 100px;
    }

    .files-table td,
    .files-table th {
        padding-inline: 13px;
    }

    .files-table td:nth-last-child(3),
    .files-table td:nth-last-child(2) {
        font-size: .6rem;
    }
}

@media (max-width: 760px) {
    .server-tabs {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 7px;
        padding: 7px;
        margin-bottom: 23px;
        border-radius: 13px;
    }

    .server-tabs > a {
        gap: 8px;
        padding: 11px 9px;
        font-size: .69rem;
        border-radius: 9px;
    }

    .server-tabs > a > svg {
        width: 15px;
        height: 15px;
    }

    .files-breadcrumb {
        gap: 8px;
        padding: 15px 16px;
        font-size: .65rem;
        border-radius: 11px;
        margin-bottom: 20px;
    }

    .files-toolbar {
        gap: 13px;
        margin-bottom: 21px;
    }

    .files-toolbar .button {
        padding: 9px 12px;
        min-height: 38px;
        font-size: .64rem;
    }

    .files-count {
        font-size: .59rem;
    }

    .files-tools-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 18px;
        margin-bottom: 20px;
    }

    .file-action-panel {
        margin-bottom: 20px;
    }

    .file-action-panel > summary {
        font-size: .72rem;
        gap: 9px;
    }

    .file-action-panel > summary > svg {
        width: 16px;
        height: 16px;
    }

    .file-action-panel .details-body {
        margin-top: 19px;
        padding-top: 20px;
    }

    .file-action-panel .stack-form > .button {
        font-size: .69rem;
    }

    .file-action-panel [data-file-selection-count] {
        width: fit-content;
        margin: 4px 0 0 25px;
        font-size: .57rem;
    }

    .files-list-panel {
        padding: 22px 18px;
        margin-top: 22px;
    }

    .files-list-panel .section-inline-title {
        gap: 14px;
    }

    .files-list-panel .section-inline-title h2 {
        font-size: 1.04rem;
    }

    .files-list-panel .table-wrap {
        width: 100%;
        max-width: 100%;
        overflow-x: auto;
        overflow-y: auto;
        scrollbar-width: thin;
        scrollbar-color: #9568b0 #21152e;
        overscroll-behavior-x: contain;
    }

    .files-table {
        min-width: 640px;
        table-layout: fixed;
    }

    .files-table th:nth-last-child(3) {
        width: 90px;
    }

    .files-table th:nth-last-child(2) {
        width: 128px;
    }

    .files-table th:last-child {
        width: 101px;
    }

    .files-table th[aria-label='Sélection'] {
        width: 38px;
        padding-inline: 12px 6px;
    }

    .files-table td:has(> input.file-selection) {
        padding-inline: 12px 6px;
    }

    .file-name > a,
    .file-name > span {
        font-size: .7rem;
    }

    .file-name {
        gap: 9px;
    }

    .file-name > svg {
        width: 16px;
        height: 16px;
    }

    .files-actions[open] .file-actions-menu,
    .files-table tr:nth-last-child(-n+3) .file-actions-menu {
        position: fixed;
        top: 50%;
        bottom: auto;
        right: 20px;
        left: 20px;
        width: auto;
        max-width: none;
        max-height: min(70vh, 580px);
        padding: 18px;
        overflow-y: auto;
        transform: translateY(-50%);
        z-index: 80;
        box-shadow: 0 14px 80px #080310c4, 0 0 0 1px #dba1ef22;
    }

    .file-actions-menu .button {
        min-height: 39px;
        font-size: .71rem;
    }

    .file-actions-menu input {
        font-size: .7rem;
    }

    .file-actions-menu .field > span {
        font-size: .68rem;
    }

    .files-hint {
        padding-top: 17px;
        font-size: .61rem;
    }

    .file-upload-zone {
        padding: 18px;
        gap: 12px;
    }

    .file-upload-zone > span {
        font-size: .69rem;
    }

    .file-upload-zone input[type=file] {
        font-size: .62rem;
    }

    .file-upload-zone input[type=file]::file-selector-button {
        margin-right: 8px;
        padding: 7px 8px;
        font-size: .62rem;
    }

    .file-editor > .section-inline-title {
        align-items: flex-start;
    }

    .file-editor > .section-inline-title h2 {
        font-size: 1.03rem;
    }

    .file-editor > p.muted {
        font-size: .61rem;
        margin-bottom: 21px;
    }

    .file-editor textarea.code-input {
        min-height: 390px;
        padding: 15px;
        font-size: .67rem !important;
        line-height: 1.9 !important;
    }

    .file-editor .form-actions {
        gap: 10px;
        align-items: stretch;
    }

    .file-editor .form-actions > .button {
        flex: 1 1 150px;
        padding: 10px 12px;
        font-size: .68rem;
    }

    [data-file-editor-state] {
        margin: 4px 0 0;
        width: 100%;
        font-size: .61rem;
    }

    .server-tabs + div > .stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 13px;
    }

    .server-tabs + div > .stats-grid > .stat-card {
        padding: 20px 17px 18px;
    }

    .server-tabs + div > .stats-grid > .stat-card > span {
        padding: 24px 0 0;
        min-height: 58px;
        margin-bottom: 11px;
        font-size: .65rem;
        line-height: 1.7;
    }

    .server-tabs + div > .stats-grid > .stat-card > svg {
        top: 16px;
        left: 17px;
        right: auto;
        width: 17px;
        height: 17px;
    }

    .server-tabs + div > .stats-grid > .stat-card > strong {
        font-size: 1.38rem;
        white-space: nowrap;
    }

    .server-tabs + div > .stats-grid > .stat-card > strong > small {
        font-size: .52rem;
        margin-left: 2px;
    }

    .server-tabs + div > .stats-grid > .stat-card:nth-child(3) {
        grid-column: 1 / -1;
        display: flex;
        align-items: center;
        flex-wrap: wrap;
        gap: 11px;
        padding: 18px;
    }

    .server-tabs + div > .stats-grid > .stat-card:nth-child(3) > svg {
        position: static;
        width: 18px;
        height: 18px;
    }

    .server-tabs + div > .stats-grid > .stat-card:nth-child(3) > span {
        min-height: 0;
        padding: 0;
        margin: 0;
        font-size: .65rem;
    }

    .server-tabs + div > .stats-grid > .stat-card:nth-child(3) > strong {
        margin-left: auto;
        font-size: 1.4rem;
    }

    .server-tabs + div > .stats-grid > .stat-card:nth-child(4) {
        gap: 9px;
        padding: 14px 16px;
    }

    .server-tabs + div > .stats-grid > .stat-card:nth-child(4) > svg {
        position: static;
        width: 16px;
        height: 16px;
    }

    .server-tabs + div > .stats-grid > .stat-card:nth-child(4) > span {
        min-height: 0;
        margin: 0;
        padding: 0;
        font-size: .6rem;
    }

    .server-tabs + div > .stats-grid > .stat-card:nth-child(4) > strong {
        width: 100%;
        margin-left: 25px;
        font-size: .72rem;
        white-space: normal;
    }

    .server-tabs + div .database-card > .section-inline-title {
        gap: 13px;
    }

    .server-tabs + div .database-card h3 {
        font-size: .9rem;
    }

    .server-tabs + div .database-card .section-inline-title .muted {
        font-size: .58rem;
    }

    .server-tabs + div .database-card > .info-note {
        padding: 13px 15px;
        font-size: .63rem;
    }

    .server-tabs + div .database-card > .action-row {
        gap: 10px;
    }

    .server-tabs + div .database-card > .action-row > .button,
    .server-tabs + div .database-card > .action-row > form {
        flex: 1 1 145px;
    }

    .server-tabs + div .database-card > .action-row .button {
        width: 100%;
        justify-content: center;
        min-height: 37px;
        font-size: .64rem;
    }

    .server-tabs + div .database-card .form-section .details-heading {
        font-size: .69rem;
    }

    .server-tabs + div .database-card .details-body p {
        font-size: .68rem;
    }

    .schedule-workspace {
        gap: 23px;
    }

    .schedule-card > .section-inline-title h3 {
        font-size: .94rem;
    }

    .schedule-card > .section-inline-title > svg {
        width: 32px;
        height: 32px;
        padding: 7px;
    }

    .schedule-card .support-list {
        column-gap: 15px;
    }

    .schedule-card .support-list dt {
        font-size: .58rem;
    }

    .schedule-card .support-list dd {
        font-size: .66rem;
    }

    .schedule-card .support-list code {
        font-size: .65rem;
    }

    .schedule-card > .action-row .button {
        padding: 8px 10px;
        font-size: .6rem;
    }

    .schedule-card > details {
        padding: 15px;
    }

    .schedule-card .details-body .field > span {
        font-size: .69rem;
    }

    .schedule-card .details-body .field input,
    .schedule-card .details-body .field select {
        font-size: .7rem;
    }

    .schedule-card .details-body .stack-form > small {
        font-size: .59rem;
    }

    .schedule-workspace > aside .form-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .schedule-workspace + .panel .table {
        min-width: 620px;
    }

    .schedule-workspace + .panel .table td,
    .schedule-workspace + .panel .table th {
        padding: 14px;
    }
}

@media (max-width: 480px) {
    .server-tabs > a {
        gap: 7px;
        padding: 11px 8px;
        font-size: .64rem;
    }

    .file-action-panel [data-file-selection-count] {
        margin-left: 24px;
    }

    .file-action-panel .form-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .file-action-panel .stack-form > .button {
        width: 100%;
    }

    .files-toolbar .action-row {
        width: 100%;
        gap: 9px;
    }

    .files-toolbar .action-row > .button {
        flex: 1 1 120px;
        min-height: 38px;
    }

    .files-count {
        padding: 5px 8px;
    }

    .files-list-panel .section-inline-title {
        margin-bottom: 18px;
    }

    .files-list-panel .section-inline-title .check {
        font-size: .6rem;
    }

    .file-editor .form-actions > .button {
        flex-basis: 100%;
    }

    .server-tabs + div > .stats-grid > .stat-card > strong {
        font-size: 1.5rem;
        letter-spacing: -.055em;
    }

    .server-tabs + div > .stats-grid > .stat-card > strong > small {
        font-size: .58rem;
    }

    .server-tabs + div > .stats-grid > .stat-card > span {
        font-size: .61rem;
        min-height: 58px;
    }

    .server-tabs + div > .stats-grid > .stat-card:nth-child(3) > span {
        min-height: 0;
        font-size: .62rem;
    }

    .server-tabs + div > .stats-grid > .stat-card:nth-child(3) > strong {
        font-size: 1.25rem;
    }

    .server-tabs + div > .stats-grid > .stat-card:nth-child(4) > span {
        min-height: 0;
        font-size: .58rem;
    }

    .server-tabs + div > .stats-grid > .stat-card:nth-child(4) > strong {
        font-size: .7rem;
    }

    .schedule-card .support-list {
        grid-template-columns: minmax(0, 1fr);
    }

    .schedule-card .support-list > div:last-child:nth-child(odd) {
        grid-column: auto;
    }

    .schedule-card > .action-row {
        gap: 10px;
    }

    .schedule-card > .action-row > form {
        flex: 1 1 120px;
    }

    .schedule-card > .action-row .button {
        width: 100%;
        min-height: 37px;
        font-size: .64rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .server-tabs > a,
    .file-upload-zone {
        transition: none;
    }
}

.advanced-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:26px;align-items:start}.advanced-grid>.panel{margin:0;padding:28px;min-width:0}.advanced-grid h2{display:flex;gap:12px;align-items:center;margin:0 0 18px}.advanced-grid p{line-height:1.8;margin:0 0 24px}.advanced-grid .stack-form{gap:20px}.advanced-grid .info-note{margin:15px 0;padding:20px}.advanced-grid .info-note p{margin:12px 0 0}.advanced-full{grid-column:1/-1}.advanced-grid .form-section{margin-top:26px;padding-top:24px}.resource-charts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px;margin:28px 0}.resource-chart{margin:0;min-width:0;padding:22px}.resource-chart h3{margin:0 0 15px}.resource-chart svg{display:block;width:100%;height:115px;border-bottom:1px solid #ffffff22}.resource-chart small{display:block;margin-top:12px;color:#b9b2d0}.console-tools{display:flex;gap:12px;flex-wrap:wrap;padding:15px 20px;border-top:1px solid #ffffff18}.console-tools input{flex:1;min-width:140px}.console-tools label{display:flex;align-items:center;gap:8px;font-size:13px}.console-tools input[type=checkbox]{width:auto;flex:none}.console-tools input[type=search]{padding:10px;border-radius:8px;background:#181322;color:inherit;border:1px solid #ffffff22}.console-output{white-space:pre-wrap;overflow-wrap:anywhere}.advanced-grid input,.advanced-grid select{max-width:100%}@media(max-width:950px){.advanced-grid{grid-template-columns:1fr}.resource-charts{grid-template-columns:1fr}.advanced-grid>.panel{padding:23px}.advanced-full{grid-column:auto}}

.mc-subnav{display:flex;flex-wrap:wrap;gap:12px;margin:28px 0}.mc-subnav a{padding:11px 17px;border:1px solid #c481e852;border-radius:11px;background:#34213c;color:#ead7ff}.mc-section{margin:0 0 28px!important;padding:30px!important;scroll-margin-top:110px;min-width:0}.mc-section h2{display:flex;gap:12px;align-items:center;margin-bottom:20px}.mc-section p{margin:15px 0 25px;line-height:1.9}.mc-section .stack-form{gap:22px}.mc-section h3{margin:28px 0 20px}.mc-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:28px;align-items:start;margin-top:28px}.mc-results{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;margin:24px 0}.mc-result{padding:22px;border-radius:14px;border:1px solid #ffffff25;background:#261a34;min-width:0}.mc-result h3{margin:0 0 12px}.mc-result p{margin:10px 0 20px}.mc-result select{width:100%;margin-bottom:16px}.mc-files>div{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:16px 0;border-bottom:1px solid #ffffff18;overflow-wrap:anywhere}.mc-files strong{min-width:0;overflow-wrap:anywhere}.mc-files .action-row{flex-shrink:0}.mc-section input,.mc-section select{max-width:100%;min-width:0}.mc-section .action-row>input{flex:1;min-width:120px}.mc-section details[open]{min-width:200px}.mc-section .info-note{margin:20px 0}.mc-section .table td:first-child{max-width:330px;overflow-wrap:anywhere}@media(max-width:1000px){.mc-grid{grid-template-columns:1fr}.mc-results{grid-template-columns:1fr}}@media(max-width:600px){.mc-section{padding:22px!important}.mc-files>div{align-items:flex-start;flex-direction:column}.mc-section .section-inline-title{flex-wrap:wrap;gap:16px}}
.mc-section .action-row>input{padding:13px 15px;border:1px solid #a26bb857;border-radius:10px;background:#191024;color:#f7edff;font:inherit}.mc-section .table{min-width:700px}.mc-section .table td:first-child{min-width:230px;max-width:380px;overflow-wrap:break-word}
