/* ==========================================================================
   LEDIA CLOUD — API VAULT
   Horizontal infrastructure workspace
   ========================================================================== */


/* ==========================================================================
   PAGE
   ========================================================================== */

.api-page {
    --api-border: rgba(255, 255, 255, 0.09);
    --api-border-soft: rgba(255, 255, 255, 0.055);

    --api-panel: rgba(17, 18, 20, 0.88);
    --api-panel-2: rgba(21, 22, 24, 0.88);

    --api-hover: rgba(255, 255, 255, 0.045);
    --api-selected: rgba(244, 181, 84, 0.09);

    --api-text: #f4f4f4;
    --api-muted: #99999f;
    --api-muted-2: #707076;

    --api-brand: var(--brand, #f4b554);

    width: 100%;

    /*
     * The API is an application surface,
     * NOT a vertically expanding document.
     */

    height: calc(100dvh - 148px);
    min-height: 620px;

    overflow: hidden;

    box-sizing: border-box;
}


/* ==========================================================================
   SHELL
   ========================================================================== */

.api-shell {
    width: 100%;
    height: 100%;

    display: flex;
    flex-direction: column;

    min-width: 0;
    min-height: 0;

    gap: 14px;

    overflow: hidden;
}


/* ==========================================================================
   HEADER
   ========================================================================== */

.api-head {
    flex: 0 0 auto;

    min-height: 74px;

    display: flex;
    align-items: flex-end;
    justify-content: space-between;

    gap: 32px;

    padding: 0 2px;
}

.api-head-copy {
    min-width: 0;
}

.api-kicker {
    margin: 0 0 7px;

    color: var(--api-muted-2);

    font-size: 10px;
    font-weight: 800;

    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.api-title-line {
    display: flex;
    align-items: center;

    gap: 13px;
}

.api-title-line h1 {
    margin: 0;

    color: var(--api-text);

    font-size: clamp(25px, 2vw, 34px);
    line-height: 1;

    letter-spacing: -0.04em;
}

.api-head-copy>p {
    margin: 8px 0 0;

    color: var(--api-muted);

    font-size: 13px;
    line-height: 1.4;
}


/* ==========================================================================
   HEALTH
   ========================================================================== */

.api-health {
    display: inline-flex;
    align-items: center;

    gap: 7px;

    padding: 6px 9px;

    border: 1px solid var(--api-border);

    border-radius: 999px;

    color: #b9d8c3;

    background: rgba(83, 170, 109, 0.06);

    font-size: 10px;
    font-weight: 800;

    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.api-health-dot,
.api-status-indicator {
    width: 7px;
    height: 7px;

    flex: 0 0 auto;

    border-radius: 999px;

    background: #65c986;

    box-shadow:
        0 0 10px rgba(101, 201, 134, 0.5);
}


/* ==========================================================================
   SUMMARY
   ========================================================================== */

.api-summary {
    display: flex;
    align-items: center;

    gap: 17px;

    flex: 0 0 auto;

    padding-bottom: 2px;
}

.api-summary-item {
    display: flex;
    align-items: baseline;

    gap: 6px;

    white-space: nowrap;
}

.api-summary-item strong {
    color: var(--api-text);

    font-size: 16px;
    font-weight: 800;
}

.api-summary-item span {
    color: var(--api-muted);

    font-size: 11px;
    font-weight: 600;
}

.api-summary-divider {
    width: 1px;
    height: 18px;

    background: var(--api-border);
}


/* ==========================================================================
   ROOM NAVIGATION
   ========================================================================== */

.api-room-tabs {
    flex: 0 0 auto;

    display: flex;
    align-items: center;

    gap: 5px;

    width: fit-content;

    padding: 4px;

    border: 1px solid var(--api-border);

    border-radius: 999px;

    background: rgba(255, 255, 255, 0.025);
}

.api-room-tab {
    appearance: none;

    border: 0;
    outline: 0;

    min-height: 31px;

    padding: 0 14px;

    border-radius: 999px;

    background: transparent;

    color: var(--api-muted);

    font: inherit;
    font-size: 11px;
    font-weight: 800;

    cursor: pointer;

    transition:
        background 140ms ease,
        color 140ms ease,
        box-shadow 140ms ease;
}

.api-room-tab:hover {
    color: var(--api-text);
}

.api-room-tab.active {
    color: #151515;

    background: var(--api-brand);

    box-shadow:
        0 7px 22px rgba(244, 181, 84, 0.16);
}


/* ==========================================================================
   WORKSPACE
   ========================================================================== */

.api-workspace {
    position: relative;

    flex: 1 1 auto;

    min-width: 0;
    min-height: 0;

    overflow: hidden;

    border: 1px solid var(--api-border);

    border-radius: 24px;

    background:
        radial-gradient(circle at 82% 6%,
            rgba(255, 255, 255, 0.035),
            transparent 27%),
        rgba(12, 13, 14, 0.72);

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.025);
}

.api-room {
    width: 100%;
    height: 100%;

    min-width: 0;
    min-height: 0;
}

.api-room.hidden {
    display: none !important;
}


/* ==========================================================================
   VAULT GRID
   ========================================================================== */

.api-vault-room {
    display: grid;

    grid-template-columns:
        minmax(220px, 0.72fr) minmax(270px, 0.92fr) minmax(390px, 1.55fr);

    width: 100%;
    height: 100%;

    min-width: 0;
    min-height: 0;

    overflow: hidden;
}


/* ==========================================================================
   RAILS
   ========================================================================== */

.api-rail,
.api-inspector-pane {
    min-width: 0;
    min-height: 0;

    display: flex;
    flex-direction: column;

    overflow: hidden;
}

.api-project-rail,
.api-credential-rail {
    border-right: 1px solid var(--api-border);
}

.api-rail-head,
.api-inspector-header {
    flex: 0 0 auto;

    min-height: 73px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 12px;

    padding: 17px 18px 14px;

    border-bottom: 1px solid var(--api-border-soft);
}

.api-rail-head h2,
.api-inspector-header h2 {
    margin: 0;

    color: var(--api-text);

    font-size: 16px;
    line-height: 1.15;

    font-weight: 750;

    letter-spacing: -0.025em;
}

.api-rail-head .api-kicker,
.api-inspector-header .api-kicker {
    margin-bottom: 5px;
}


/* ==========================================================================
   ADD BUTTON
   ========================================================================== */

.api-add-btn {
    appearance: none;

    width: 30px;
    height: 30px;

    flex: 0 0 auto;

    display: grid;
    place-items: center;

    padding: 0;

    border: 1px solid var(--api-border);

    border-radius: 10px;

    background: rgba(255, 255, 255, 0.035);

    color: var(--api-text);

    font: inherit;
    font-size: 19px;
    line-height: 1;

    cursor: pointer;

    transition:
        border-color 140ms ease,
        background 140ms ease,
        color 140ms ease;
}

.api-add-btn:hover {
    color: #151515;

    border-color: var(--api-brand);

    background: var(--api-brand);
}


/* ==========================================================================
   RAIL TOOLS
   ========================================================================== */

.api-rail-tools {
    flex: 0 0 auto;

    padding: 11px 13px;

    border-bottom: 1px solid var(--api-border-soft);
}

.api-rail-count {
    margin: 0 0 8px;

    color: var(--api-muted-2);

    font-size: 10px;
    font-weight: 700;

    text-transform: uppercase;
    letter-spacing: 0.07em;
}

.api-search-input,
.api-input,
.api-textarea {
    width: 100%;

    box-sizing: border-box;

    appearance: none;

    border: 1px solid var(--api-border);

    outline: none;

    background: rgba(255, 255, 255, 0.025);

    color: var(--api-text);

    font: inherit;

    transition:
        border-color 140ms ease,
        background 140ms ease,
        box-shadow 140ms ease;
}

.api-search-input {
    height: 36px;

    padding: 0 12px;

    border-radius: 11px;

    font-size: 12px;
}

.api-search-input::placeholder,
.api-input::placeholder,
.api-textarea::placeholder {
    color: #64646a;
}

.api-search-input:focus,
.api-input:focus,
.api-textarea:focus {
    border-color:
        color-mix(in srgb,
            var(--api-brand) 48%,
            transparent);

    background: rgba(255, 255, 255, 0.04);

    box-shadow:
        0 0 0 3px rgba(244, 181, 84, 0.055);
}


/* ==========================================================================
   INTERNAL SCROLL
   ========================================================================== */

.api-rail-scroll,
.api-inspector-scroll {
    flex: 1 1 auto;

    min-height: 0;

    overflow-y: auto;
    overflow-x: hidden;

    overscroll-behavior: contain;

    scrollbar-width: thin;
    scrollbar-color:
        rgba(255, 255, 255, 0.14) transparent;
}

.api-rail-scroll::-webkit-scrollbar,
.api-inspector-scroll::-webkit-scrollbar {
    width: 6px;
}

.api-rail-scroll::-webkit-scrollbar-track,
.api-inspector-scroll::-webkit-scrollbar-track {
    background: transparent;
}

.api-rail-scroll::-webkit-scrollbar-thumb,
.api-inspector-scroll::-webkit-scrollbar-thumb {
    border-radius: 999px;

    background: rgba(255, 255, 255, 0.13);
}


/* ==========================================================================
   PROJECT ROWS
   ========================================================================== */

.api-project-list {
    padding: 7px;
}

.api-project-row {
    appearance: none;

    width: 100%;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 10px;

    padding: 10px 11px;

    margin: 0;

    border: 1px solid transparent;
    border-radius: 12px;

    background: transparent;

    color: var(--api-text);

    font: inherit;

    text-align: left;

    cursor: pointer;

    transition:
        background 120ms ease,
        border-color 120ms ease;
}

.api-project-row:hover {
    background: var(--api-hover);
}

.api-project-row.active {
    border-color:
        rgba(244, 181, 84, 0.17);

    background: var(--api-selected);
}

.api-project-row-main {
    min-width: 0;
    flex: 1;
}

.api-project-row-top {
    min-width: 0;

    display: flex;
    align-items: center;

    gap: 8px;
}

.api-project-row-top strong {
    min-width: 0;

    overflow: hidden;

    color: var(--api-text);

    font-size: 12px;
    font-weight: 750;

    text-overflow: ellipsis;
    white-space: nowrap;
}

.api-project-row-meta {
    display: flex;
    align-items: center;

    gap: 5px;

    margin-top: 4px;

    color: var(--api-muted-2);

    font-size: 10px;
}

.api-row-chevron {
    color: var(--api-muted-2);

    font-size: 16px;

    transition:
        transform 120ms ease,
        color 120ms ease;
}

.api-project-row:hover .api-row-chevron,
.api-project-row.active .api-row-chevron {
    color: var(--api-brand);

    transform: translateX(2px);
}


/* ==========================================================================
   STATUS
   ========================================================================== */

.api-status-dot {
    width: 6px;
    height: 6px;

    flex: 0 0 auto;

    border-radius: 999px;

    background: #65656b;
}

.api-status-dot.active {
    background: #62c982;

    box-shadow:
        0 0 8px rgba(98, 201, 130, 0.35);
}

.api-status-dot.inactive {
    background: #68686e;
}


/* ==========================================================================
   CREDENTIAL ROWS
   ========================================================================== */

.api-secret-list {
    padding: 7px;
}

.api-secret-item {
    appearance: none;

    width: 100%;

    display: block;

    margin: 0;

    padding: 11px;

    border: 1px solid transparent;
    border-radius: 12px;

    background: transparent;

    color: var(--api-text);

    font: inherit;

    text-align: left;

    cursor: pointer;

    transition:
        background 120ms ease,
        border-color 120ms ease;
}

.api-secret-item+.api-secret-item {
    margin-top: 2px;
}

.api-secret-item:hover {
    background: var(--api-hover);
}

.api-secret-item.active {
    border-color:
        rgba(244, 181, 84, 0.17);

    background: var(--api-selected);
}

.api-secret-item-top {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 10px;
}

.api-secret-label {
    min-width: 0;

    overflow: hidden;

    color: var(--api-text);

    font-size: 12px;
    font-weight: 750;

    text-overflow: ellipsis;
    white-space: nowrap;
}

.api-secret-item-meta {
    display: flex;
    align-items: center;

    gap: 5px;

    margin-top: 5px;

    color: var(--api-muted);

    font-size: 10px;
}

.api-secret-item-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 10px;

    margin-top: 7px;
}

.api-secret-item-bottom>span {
    color: var(--api-muted-2);

    font-size: 9px;

    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.api-secret-item-bottom code {
    min-width: 0;

    overflow: hidden;

    color: #aaaab0;

    font-family:
        ui-monospace,
        SFMono-Regular,
        Menlo,
        Monaco,
        Consolas,
        monospace;

    font-size: 9px;

    text-overflow: ellipsis;
    white-space: nowrap;
}


/* ==========================================================================
   HIDDEN SELECT
   ========================================================================== */

.api-hidden-select {
    position: absolute !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;
}


/* ==========================================================================
   INSPECTOR
   ========================================================================== */

.api-inspector-pane {
    position: relative;

    background:
        radial-gradient(circle at 86% 5%,
            rgba(244, 181, 84, 0.045),
            transparent 27%);
}

.api-inspector-type {
    flex: 0 0 auto;

    padding: 5px 8px;

    border: 1px solid var(--api-border);

    border-radius: 999px;

    color: var(--api-muted);

    background: rgba(255, 255, 255, 0.025);

    font-size: 8px;
    font-weight: 800;

    letter-spacing: 0.08em;
}

.api-inspector-scroll {
    padding: 0;
}

.api-inspector {
    min-height: 100%;

    display: flex;
    flex-direction: column;

    box-sizing: border-box;

    padding: 22px;
}

.api-inspector-hero {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;

    gap: 24px;

    padding-bottom: 21px;

    border-bottom: 1px solid var(--api-border-soft);
}

.api-inspector-name {
    color: var(--api-text);

    font-size: clamp(21px, 2vw, 29px);
    line-height: 1.05;

    font-weight: 800;

    letter-spacing: -0.04em;
}

.api-inspector-meta {
    display: flex;
    align-items: center;

    gap: 6px;

    margin-top: 9px;

    color: var(--api-muted);

    font-size: 11px;
}

.api-status-badge {
    display: inline-flex;
    align-items: center;

    gap: 6px;

    padding: 6px 9px;

    border: 1px solid var(--api-border);

    border-radius: 999px;

    color: var(--api-muted);

    background: rgba(255, 255, 255, 0.025);

    font-size: 9px;
    font-weight: 800;

    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.api-status-badge>span {
    width: 6px;
    height: 6px;

    border-radius: 999px;

    background: #68686e;
}

.api-status-badge.active>span {
    background: #62c982;

    box-shadow:
        0 0 8px rgba(98, 201, 130, 0.35);
}


/* ==========================================================================
   INSPECTOR DATA
   ========================================================================== */

.api-inspector-data {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 0;

    margin-top: 7px;
}

.api-data-block {
    min-width: 0;

    padding: 16px 0;

    border-bottom: 1px solid var(--api-border-soft);
}

.api-data-block:nth-child(odd):not(.api-data-block-wide) {
    padding-right: 18px;

    border-right: 1px solid var(--api-border-soft);
}

.api-data-block:nth-child(even):not(.api-data-block-wide) {
    padding-left: 18px;
}

.api-data-block-wide {
    grid-column: 1 / -1;
}

.api-data-label {
    display: block;

    margin-bottom: 7px;

    color: var(--api-muted-2);

    font-size: 9px;
    font-weight: 800;

    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.api-data-block strong {
    color: var(--api-text);

    font-size: 12px;
    font-weight: 700;

    overflow-wrap: anywhere;
}

.api-data-block p {
    margin: 0;

    max-width: 650px;

    color: var(--api-muted);

    font-size: 12px;
    line-height: 1.6;
}

.api-secret-value-display {
    width: 100%;

    box-sizing: border-box;

    padding: 12px 13px;

    border: 1px solid var(--api-border);

    border-radius: 11px;

    background: rgba(0, 0, 0, 0.17);
}

.api-secret-value-display code {
    color: #d4d4d6;

    font-family:
        ui-monospace,
        SFMono-Regular,
        Menlo,
        Monaco,
        Consolas,
        monospace;

    font-size: 11px;
}


/* ==========================================================================
   ACTIONS
   ========================================================================== */

.api-inspector-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;

    gap: 8px;

    margin-top: auto;

    padding-top: 22px;
}

.api-btn {
    appearance: none;

    min-height: 35px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 0 13px;

    border: 1px solid var(--api-border);
    border-radius: 11px;

    background: rgba(255, 255, 255, 0.035);

    color: var(--api-text);

    font: inherit;
    font-size: 11px;
    font-weight: 750;

    cursor: pointer;

    transition:
        background 140ms ease,
        border-color 140ms ease,
        color 140ms ease;
}

.api-btn:hover {
    border-color: rgba(255, 255, 255, 0.16);

    background: rgba(255, 255, 255, 0.07);
}

.api-btn-primary {
    border-color: var(--api-brand);

    background: var(--api-brand);

    color: #161616;
}

.api-btn-primary:hover {
    border-color: #ffc86c;

    background: #ffc86c;
}

.api-btn-danger {
    color: #ef9a9a;
}

.api-btn-danger:hover {
    border-color: rgba(225, 91, 91, 0.26);

    background: rgba(225, 91, 91, 0.08);

    color: #ffb1b1;
}

.api-btn-compact {
    min-height: 31px;

    margin-top: 7px;
}


/* ==========================================================================
   EMPTY STATES
   ========================================================================== */

.api-console-empty,
.api-inspector-empty {
    height: 100%;

    box-sizing: border-box;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    padding: 30px;

    text-align: center;
}

.api-console-empty-icon,
.api-inspector-empty-icon {
    width: 34px;
    height: 34px;

    display: grid;
    place-items: center;

    margin-bottom: 12px;

    border: 1px solid var(--api-border);

    border-radius: 11px;

    color: var(--api-muted);

    background: rgba(255, 255, 255, 0.025);
}

.api-console-empty strong,
.api-inspector-empty h3 {
    margin: 0;

    color: var(--api-text);

    font-size: 13px;
    font-weight: 750;
}

.api-console-empty p,
.api-inspector-empty p {
    max-width: 250px;

    margin: 7px 0 0;

    color: var(--api-muted-2);

    font-size: 11px;
    line-height: 1.5;
}


/* ==========================================================================
   FORMS
   ========================================================================== */

.api-inspector-form {
    display: block;
}

.api-form {
    display: flex;
    flex-direction: column;

    gap: 14px;
}

.api-form-grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 11px;
}

.api-field {
    display: flex;
    flex-direction: column;

    gap: 6px;
}

.api-field>span,
.api-form-context>span {
    color: var(--api-muted);

    font-size: 10px;
    font-weight: 700;
}

.api-input {
    height: 38px;

    padding: 0 11px;

    border-radius: 10px;

    font-size: 12px;
}

.api-textarea {
    min-height: 76px;

    resize: vertical;

    padding: 10px 11px;

    border-radius: 10px;

    font-size: 12px;
    line-height: 1.5;
}

select.api-input {
    cursor: pointer;
}

.api-form-context {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 15px;

    padding: 11px 12px;

    border: 1px solid var(--api-border);

    border-radius: 11px;

    background: rgba(255, 255, 255, 0.025);
}

.api-form-context strong {
    color: var(--api-text);

    font-size: 11px;
}

.api-feedback {
    min-height: 16px;

    color: var(--api-muted);

    font-size: 10px;
}


/* ==========================================================================
   SECURITY & OPERATIONS
   Colosian-style horizontal composition
   ========================================================================== */

.api-operations-room {
    display: grid;

    grid-template-columns:
        minmax(280px, 1fr) minmax(280px, 1fr) minmax(230px, 0.72fr);

    gap: 14px;

    padding: 14px;

    box-sizing: border-box;

    overflow: hidden;
}

.api-operation-card {
    min-width: 0;
    min-height: 0;

    display: flex;
    flex-direction: column;

    padding: 22px;

    box-sizing: border-box;

    border: 1px solid var(--api-border);

    border-radius: 18px;

    background:
        linear-gradient(145deg,
            rgba(255, 255, 255, 0.035),
            transparent 55%),
        var(--api-panel);

    overflow: hidden;
}

.api-operation-primary {
    background:
        radial-gradient(circle at 82% 12%,
            rgba(244, 181, 84, 0.08),
            transparent 34%),
        linear-gradient(145deg,
            rgba(255, 255, 255, 0.04),
            transparent 60%),
        var(--api-panel);
}

.api-operation-secondary {
    background:
        radial-gradient(circle at 75% 15%,
            rgba(255, 255, 255, 0.055),
            transparent 38%),
        var(--api-panel);
}

.api-operation-stack {
    min-width: 0;
    min-height: 0;

    display: grid;

    grid-template-rows:
        repeat(2, minmax(0, 1fr));

    gap: 14px;
}

.api-operation-small {
    padding: 17px;
}

.api-operation-top {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 12px;
}

.api-operation-icon {
    width: 35px;
    height: 35px;

    display: grid;
    place-items: center;

    border: 1px solid var(--api-border);

    border-radius: 11px;

    color: var(--api-muted);

    background: rgba(255, 255, 255, 0.025);

    font-size: 10px;
    font-weight: 800;
}

.api-operation-pill {
    padding: 5px 8px;

    border: 1px solid var(--api-border);

    border-radius: 999px;

    color: var(--api-muted-2);

    font-size: 8px;
    font-weight: 800;

    text-transform: uppercase;
    letter-spacing: 0.07em;
}

.api-operation-content {
    margin-top: 30px;
}

.api-operation-small .api-operation-content {
    margin-top: 18px;
}

.api-operation-content h2 {
    margin: 0;

    color: var(--api-text);

    font-size: clamp(20px, 2vw, 28px);
    line-height: 1.05;

    letter-spacing: -0.035em;
}

.api-operation-small .api-operation-content h2 {
    font-size: 17px;
}

.api-operation-content p {
    max-width: 430px;

    margin: 12px 0 0;

    color: var(--api-muted);

    font-size: 12px;
    line-height: 1.65;
}

.api-operation-small .api-operation-content p {
    margin-top: 8px;

    font-size: 10px;
    line-height: 1.5;
}

.api-operation-link {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    margin-top: auto;

    padding-top: 20px;

    border-top: 1px solid var(--api-border-soft);

    color: var(--api-text);

    font-size: 11px;
    font-weight: 750;
}

.api-operation-link span {
    color: var(--api-brand);

    font-size: 16px;
}


/* ==========================================================================
   STATUS BAR
   ========================================================================== */

.api-statusbar {
    flex: 0 0 34px;

    min-height: 34px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    padding: 0 4px;

    color: var(--api-muted-2);

    font-size: 9px;

    text-transform: uppercase;
    letter-spacing: 0.045em;
}

.api-status-left,
.api-status-right {
    display: flex;
    align-items: center;

    gap: 10px;
}

.api-status-left strong {
    color: var(--api-muted);

    font-size: 9px;
}

.api-status-online {
    color: #82b990;
}

.api-status-right span {
    display: inline-flex;
    align-items: center;

    gap: 5px;
}

.api-status-right strong {
    color: var(--api-text);
}


/* ==========================================================================
   SMALLER LAPTOPS

   IMPORTANT:
   We do NOT stack the application vertically.

   If the viewport becomes too narrow, the workspace becomes horizontally
   scrollable instead — exactly in line with the horizontal OS model.
   ========================================================================== */

@media (max-width: 1100px) {

    .api-summary-item span {
        display: none;
    }

    .api-summary {
        gap: 11px;
    }

    .api-workspace {
        overflow-x: auto;
        overflow-y: hidden;
    }

    .api-vault-room,
    .api-operations-room {
        min-width: 900px;
    }
}


/* ==========================================================================
   SHORT LAPTOP VIEWPORTS
   ========================================================================== */

@media (max-height: 800px) {

    .api-page {
        height: calc(100dvh - 132px);
        min-height: 520px;
    }

    .api-shell {
        gap: 9px;
    }

    .api-head {
        min-height: 58px;
    }

    .api-head-copy>p {
        display: none;
    }

    .api-title-line h1 {
        font-size: 25px;
    }

    .api-room-tabs {
        padding: 3px;
    }

    .api-room-tab {
        min-height: 28px;
    }

    .api-rail-head,
    .api-inspector-header {
        min-height: 60px;

        padding-top: 12px;
        padding-bottom: 11px;
    }

    .api-rail-tools {
        padding-top: 8px;
        padding-bottom: 8px;
    }

    .api-search-input {
        height: 32px;
    }

    .api-project-row {
        padding-top: 8px;
        padding-bottom: 8px;
    }

    .api-secret-item {
        padding-top: 8px;
        padding-bottom: 8px;
    }

    .api-inspector {
        padding: 17px;
    }

    .api-statusbar {
        flex-basis: 27px;
        min-height: 27px;
    }
}


/* ==========================================================================
   VERY NARROW VIEWPORTS

   Still horizontal.
   Never convert the vault into the long vertical page we are replacing.
   ========================================================================== */

@media (max-width: 760px) {

    .api-head {
        align-items: flex-start;
    }

    .api-summary {
        display: none;
    }

    .api-vault-room {
        min-width: 860px;

        grid-template-columns:
            210px 250px 400px;
    }

    .api-operations-room {
        min-width: 860px;

        grid-template-columns:
            300px 300px 230px;
    }

    .api-status-right {
        display: none;
    }
}