.mx-command-list {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
    padding-bottom: 10px;
}
.mx-command-item {
    text-align: center;
    flex: 1 1 110px;
    max-width: 150px;
    min-width: 90px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    border-radius: 5px;
    box-sizing: border-box;
    font-size: 15px;
    font-family: inherit;
    letter-spacing: 0.2px;
    padding: 0 8px;
    white-space: nowrap;
    background-color: var(--mx-orange);
    color: #fff;
}

.mx-button-margin {
    margin-left: 8px !important;
}

.btn-outline-danger {
    background: transparent !important;
    border: 1px solid #d9534f !important;
    color: #d9534f !important;
}

.btn-outline-danger:hover, .btn-outline-danger:focus {
        background: #d9534f !important;
        color: #fff !important;
}

.api-group-desc {
    background: #f7f9fb;
    padding: 12px 20px;
    font-size: 13px;
    color: #555;
    border-bottom: 1px solid #e8e8e8;
    line-height: 1.5;
}

.qs-steps {
    display: flex;
    flex-direction: column;
}

.qs-step {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 18px 20px;
    border-bottom: 1px solid #eee;
}

.qs-step:last-child {
    border-bottom: none;
}

.qs-num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #e85d04;
    color: #fff;
    font-size: 13px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin: 0;
}

.qs-body {
    flex: 1;
    min-width: 0;
    margin: 0;
    padding: 0;
}

.qs-body h3 {
    margin: 0 0 6px 0;
    font-size: 14px;
    font-weight: bold;
    color: #1a1a2e;
    line-height: 1.2;
}

.qs-body p {
    margin: 0 0 8px 0;
    font-size: 13px;
    color: #555;
    line-height: 1.6;
}

.qs-body p:last-child {
    margin-bottom: 0;
}

.qs-body pre {
    margin: 8px 0 8px 0;
    font-size: 12px;
}

.try-row label {
    min-width: 90px;
    flex: 0 0 90px;
    margin-right: 0;
    text-align: left;
}
.try-row input,
.try-row select {
    flex: 1 1 auto;
    min-width: 0;
    width: 100%;
    max-width: none;
}
.try-row button {
    margin-left: 8px;
}
.try-row-extras {
    margin-left: auto;
}

.try-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.try-row-extras {
    display: flex;
    gap: 8px;
    margin-left: 16px;
}
.extra-info {
    font-size: 12px;
    color: #888;
}

.mx-api-page-card,
.mx-api-page-section {
    scroll-margin-top: 80px;
}
:root {
    --mx-orange: #e6a34a;
    --mx-blue: #337ab7;
    --mx-orange-dark: #d9902f;
    --mx-orange-accent: #f28c28;
    --mx-navy: #1d1d3b;
    --mx-text: #222;
    --mx-text-muted: #777;
    --mx-border: #ddd;
    --mx-border-soft: #eee;
    --mx-code-bg: #f5f5f5;
    --mx-required: #d9534f;
    --mx-panel-radius: 4px;
    --mx-font-sm: 11px;
    --mx-font-base: 13px;
    --mx-font-md: 16px;
}

.search h1 {
  padding-top: 10px;
}

.mx-api-page-title {
    min-height: 110px;
    width: 100%;
    margin: 0 auto 24px;
    padding: 16px;
    box-sizing: border-box;
    padding: 20px 40px 20px;
    border-bottom: 4px solid var(--mx-orange);
}

.mx-api-page-content {
    display: grid;
    grid-template-columns: 240px 840px;
    gap: 24px;
    width: 1104px;
    margin: 0 auto;
    align-items: start;
    box-sizing: border-box;
}

.mx-api-page-sidebar,
.mx-api-page-main,
.mx-api-page-section,
.mx-api-page-card {
    box-sizing: border-box;
}

.mx-api-page-sidebar {
    min-height: 420px;
    padding: 16px;
}

.mx-api-page-main {
    min-height: 420px;
    padding: 16px;
    margin-top: 6px;
    margin-bottom: 6px;
}

.mx-api-page-section,
.mx-api-page-card {
  margin-top: 0;
  margin-bottom: 24px; 
  padding-top: 0;
  padding-bottom: 0;
}

    .mx-api-page-section:last-child,
    .mx-api-page-card:last-child {
        margin-bottom: 0;
    }

.panel-mx {
    border: 1px solid var(--mx-orange);
    border-radius: var(--mx-panel-radius);
    overflow: hidden;
    background: #fff;
}

.panel-heading {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 1px 8px;
    line-height: 1.2;
    background: var(--mx-orange);
    color: #fff;
}

    .panel-heading h2 {
        margin: 0;
        font-size: var(--mx-font-md);
        line-height: 1.2;
        color: #fff;
    }

.group-icon {
    font-size: 14px;
    font-weight: bold;
    line-height: 1;
}

.api-tags {
    margin-left: auto;
    font-size: 12px;
    color: #fff;
}

.panel-mx .panel-body {
    background: #fff;
    color: var(--mx-text);
    padding: 16px;
}

.api-method {
    border-top: 1px solid var(--mx-border);
}

.api-method-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 16px;
    cursor: pointer;
    background-color: #f5f5f5;
    border-color: #ddd;

}

.api-method-route {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.api-method-path {
    word-break: break-word;
}

.api-method-action {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
    white-space: nowrap;
}

.api-method-toggle {
    font-size: 20px;
    line-height: 1;
    user-select: none;
}

.api-method-body {
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    padding: 0 16px;
    transition: max-height 0.3s ease, opacity 0.2s ease, padding 0.3s ease;
}

.api-method.is-open .api-method-body {
    max-height: 1600px;
    opacity: 1;
    padding: 0 16px 16px;
}

.api-method-tabs {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
    border-bottom: 1px solid var(--mx-border);
    margin-bottom: 16px;
    padding-top: 8px;
}

.api-method-tab {
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    padding: 10px 0;
    cursor: pointer;
    color: var(--mx-text);
}

    .api-method-tab:hover {
        color: var(--mx-orange-dark);
    }

    .api-method-tab.is-active {
        color: var(--mx-orange-accent);
        border-bottom-color: var(--mx-orange-accent);
    }

.api-method-panels {
    padding-top: 8px;
}

.api-method-panel {
    display: none;
    min-height: 120px;
}

    .api-method-panel.is-active {
        display: block;
    }

.section-label {
    font-size: var(--mx-font-sm);
    font-weight: bold;
    color: var(--mx-text-muted);
    text-transform: uppercase;
    margin-bottom: 6px;
}

.api-description {
    margin-bottom: 16px;
    font-size: var(--mx-font-base);
    color: var(--mx-text);
    line-height: 1.5;
}

.hero-badge {
      display: inline-block;
      background: var(--mx-orange);
      color: #fff;
      font-size: 11px;
      font-weight: bold;
      padding: 2px 8px;
      border-radius: 3px;
      letter-spacing: 0.5px;
      margin-bottom: 10px;
      text-transform: uppercase;
}

.params-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 10px;
    font-size: var(--mx-font-base);
}

    .params-table thead th {
        background: gainsboro;
        color: var(--mx-text);
        text-align: left;
        padding: 8px 10px;
        font-weight: 600;
    }

        .params-table thead th + th {
            border-left: 1px solid rgba(255, 255, 255, 0.18);
        }

    .params-table tbody td {
        padding: 10px;
        border-bottom: 1px solid var(--mx-border-soft);
        vertical-align: top;
    }

.param-name {
    font-weight: 600;
}

.param-type {
    font-size: var(--mx-font-sm);
    color: #999;
    font-style: italic;
}

.params-table code {
    background: var(--mx-code-bg);
    padding: 2px 4px;
    border-radius: 3px;
    font-size: 12px;
    color: #16162f;
}

.badge-req {
    display: inline-block;
    background: var(--mx-required);
    color: #fff;
    font-size: var(--mx-font-sm);
    padding: 2px 6px;
    border-radius: 3px;
}

.label-mx {
    color: #fff;
    border: 1px solid #444;
    background-image: linear-gradient(to bottom, #999 0%, #444 100%);
}

.cursor-pointer {
    cursor: pointer;
}

.cursor-default {
    cursor: default;
}

pre {
    position: relative;
    background: #f5f5f5;
    padding: 16px;
    border-radius: 4px;
    overflow: auto;
}

.try-it {
    background: #f7f7f9; 
    border: 1px solid #e3e3e3;
    border-radius: 4px;
    padding: 14px 16px;
}

.try-it-title {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    color: #333;
    margin-bottom: 12px;
}

.try-row {
    display: grid;
    grid-template-columns: 78px 1fr auto;
    gap: 10px;
    align-items: center;
    margin-bottom: 8px;
}

    .try-row label {
        margin: 0;
        font-size: 12px;
        font-weight: 700;
        color: #666;
    }

    .try-row select,
    .try-row input {
        width: 100%;
        height: 30px;
        padding: 4px 10px;
        border: 1px solid #dcdcdc;
        border-radius: 3px;
        background: #fafafa;
        color: #333;
        box-sizing: border-box;
    }

.btn-run {
    height: 30px;
    padding: 0 16px;
    border: 1px solid #d97d0d;
    border-radius: 3px;
    background: #f28c28;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}

    .btn-run:hover {
        background: #e57c1f;
    }

#try-url {
    margin: 6px 0 10px 88px;
    font-size: 12px;
    color: #666;
    word-break: break-all;
}

.try-result {
    margin-top: 6px;
}

    .try-result .section-label {
        margin: 0 0 6px;
    }

#lookup-result-pre {
    margin: 0;
    padding: 14px 16px;
    background: #f5f5f5;
    color: #333;
    border: 1px solid #16162f;
    border-radius: 3px;
    max-height: 250px;
    overflow: auto;
    box-sizing: border-box;
    font-family: Consolas, Monaco, monospace;
}

.sidebar {
    display: flex;
    flex-direction: column;
    gap: 16px;
}


.sidebar-section {
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
    background: #fff;
}

.sidebar-section .panel-heading {
    background: #101010;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 10px 12px;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 8px;

    padding: 10px 12px;

    font-size: 14px;
    color: #333;
    text-decoration: none;

    border-top: 1px solid #eee;
    background: #fafafa;

    transition: background 0.2s ease;
}

.sidebar-nav a:first-child {
    border-top: none;
}


.sidebar-nav a:hover {
    background: #f5f5f5;
}

.sidebar-nav a.active {
    background: #f3e7df; 
    border-left: 3px solid #f28c28;
    color: #000;
    font-weight: 600;
}

.method-badge {
    background: #5cb85c;
    color: #fff;

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

    padding: 2px 6px;
    border-radius: 3px;
}

.sidebar-nav a[href^="http"]::after {
    content: "↗";
    margin-left: auto;
    font-size: 12px;
    color: #999;
}

.code-200 { font-weight: bold; color: #2e7d32; }
.code-401 { font-weight: bold; color: #e65100; }
.code-429 { font-weight: bold; color: #1565c0; }
.code-500 { font-weight: bold; color: #c62828; }

    .auth-box {
      background: #fff8e1;
      border: 1px solid #ffe082;
      border-left: 4px solid #f9a825;
      padding: 12px 16px;
      border-radius: 3px;
      margin-bottom: 24px;
      font-size: 13px;
      line-height: 1.5;
    }
    .auth-box strong { color: #e65100; }

    .alert-info {
      background: #e8f4fd;
      border: 1px solid #aed6f1;
      border-left: 4px solid #2980b9;
      padding: 12px 16px;
      border-radius: 3px;
      margin-bottom: 24px;
      font-size: 13px;
      color: #1a5276;
      line-height: 1.5;
    }
    .alert-info strong { color: #154360; }

.copy-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    font-size: 12px;
    padding: 4px 8px;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 4px;
    cursor: pointer;
}

    .copy-btn:hover {
        background: #eee;
    }

    .lookup-type-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; padding: 20px; }
    .lookup-type-card { border: 1px solid #ddd; border-radius: 4px; overflow: hidden; }
    .lookup-type-card-header { padding: 10px 14px; font-size: 13px; font-weight: bold; display: flex; align-items: center; gap: 8px; }
    .lookup-type-card-header.dns { background: #e8f5e9; color: #2e7d32; border-bottom: 2px solid #a5d6a7; }
    .lookup-type-card-header.net { background: #e3f2fd; color: #1565c0; border-bottom: 2px solid #90caf9; }
    .lookup-type-table { width: 100%; border-collapse: collapse; font-size: 12px; }
    .lookup-type-table tr:nth-child(even) td { background: #f9f9f9; }
    .lookup-type-table td { padding: 7px 12px; border-bottom: 1px solid #f0f0f0; vertical-align: top; }
    .lookup-type-table tr:last-child td { border-bottom: none; }
    .lookup-type-table td:first-child { font-family: 'Courier New', monospace; font-weight: bold; color: #1a1a2e; width: 100px; }
    .lookup-type-table td:last-child { color: #555; line-height: 1.4; }
    .note-chip { display: inline-block; background: #fff3cd; color: #856404; font-size: 10px; font-weight: bold; padding: 1px 6px; border-radius: 10px; margin-left: 4px; vertical-align: middle; }


