:root {
    --bg-base: #ffffff;
    --bg-accent: #fff4e8;
    --bg-accent-strong: #ffb56a;
    --surface: #ffffff;
    --surface-strong: #ffffff;
    --surface-border: rgba(255, 139, 43, 0.18);
    --surface-shadow: none;
    --text-main: #40220f;
    --text-soft: #9a6a41;
    --text-faint: #c09572;
    --primary: #ff8b2b;
    --primary-deep: #e36512;
    --primary-soft: rgba(255, 139, 43, 0.12);
    --primary-soft-strong: rgba(255, 139, 43, 0.18);
    --success-soft: #ecfff2;
    --danger-soft: #fff1e8;
    --table-border: rgba(255, 170, 89, 0.18);
}

html, body {
    min-height: 100%;
}

body {
    margin: 0;
    font-family: "Be Vietnam Pro", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: #ffffff;
    color: var(--text-main);
    position: relative;
}

body::before {
    content: "";
    position: fixed;
    top: -140px;
    left: -120px;
    width: 360px;
    height: 360px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 146, 31, 0.12) 0%, rgba(255, 146, 31, 0.06) 45%, rgba(255, 146, 31, 0) 72%);
    pointer-events: none;
    z-index: 0;
}

a {
    text-decoration: none;
}

.app-shell {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 22px;
    min-height: 100vh;
    padding: 22px;
    width: 100%;
    max-width: 100%;
    position: relative;
    z-index: 1;
}

.glass-card {
    background: var(--surface);
    border: 1px solid var(--surface-border);
    box-shadow: var(--surface-shadow);
    border-radius: 20px;
    min-width: 0;
}

.sidebar {
    padding: 24px;
    position: sticky;
    top: 22px;
    height: calc(100vh - 44px);
}

.brand {
    display: flex;
    gap: 14px;
    align-items: center;
}

.brand-icon {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    background: #fff4e8;
    color: var(--primary);
    font-size: 24px;
}

.brand-title {
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: 0.01em;
}

.brand-subtitle {
    color: var(--text-soft);
    font-size: 0.92rem;
}

.sidebar .nav-link {
    color: var(--text-soft);
    border-radius: 18px;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.sidebar .nav-link i {
    width: 20px;
    text-align: center;
    color: var(--primary);
}

.sidebar .nav-link:hover,
.sidebar .nav-link.active {
    color: #ffffff;
    background: var(--primary);
    transform: none;
}

.sidebar .nav-link:hover i,
.sidebar .nav-link.active i {
    color: #ffffff;
}

.main-content {
    min-width: 0;
    width: 100%;
    max-width: 100%;
}

.topbar {
    padding: 18px 22px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

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

.topbar-actions {
    flex-wrap: nowrap;
    min-width: 0;
}

.page-title {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--primary-deep);
    display: inline-block;
}

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

.avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #fff4e8;
    border: 1px solid rgba(255, 170, 89, 0.26);
    color: var(--primary-deep);
    font-weight: 800;
}

.account-trigger {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: inherit;
    padding: 8px 10px;
    border-radius: 18px;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.account-meta {
    min-width: 0;
}

.account-trigger:hover,
.account-trigger:focus {
    background: #fff7f1;
    color: inherit;
    transform: none;
}

.topbar-logout {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 18px;
    margin-top: 20px;
}

.stat-card {
    padding: 18px;
}

.stat-card--highlight {
    background: var(--primary);
    border-color: var(--primary);
}

.stat-card--highlight .stat-label,
.stat-card--highlight .stat-value {
    color: #ffffff;
}

.stat-label {
    color: var(--text-soft);
    font-size: 0.92rem;
}

.stat-value {
    font-size: 2rem;
    font-weight: 800;
    margin-top: 8px;
    color: #cf5a12;
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 18px;
    margin-top: 18px;
    min-width: 0;
}

.page-apis .content-grid.apis-layout {
    grid-template-columns: minmax(0, 1fr);
}

.page-apis .apis-layout > .panel {
    width: 100%;
}

.page-apis .modal {
    z-index: 2000;
}

.page-apis .modal-backdrop {
    z-index: 1990;
}

.page-apis .modal-dialog {
    margin: 1rem auto;
}

.page-apis .api-editor-modal-shell {
    padding: 0;
    overflow: hidden;
}

.page-apis .api-editor-modal-head {
    padding: 20px;
    border-bottom: 1px solid var(--surface-border);
}

.page-apis .api-editor-modal-body {
    max-height: calc(100vh - 8rem);
    overflow-y: auto;
    padding: 20px;
}

.page-overview {
    position: relative;
    overflow-x: hidden;
    background: #ffffff;
}

.page-overview::before,
.page-overview::after {
    display: none;
}

.page-overview::before {
    display: none;
}

.page-overview::after {
    display: none;
}

.page-overview .app-shell,
.page-overview .main-content {
    position: relative;
    z-index: 1;
}

.page-overview .glass-card {
    background: #ffffff;
    border: 1px solid rgba(255, 139, 43, 0.16);
    box-shadow: none;
}

.page-overview .topbar {
    background: #ffffff;
}

.page-overview .overview-shell {
    margin-top: 20px;
}

.page-overview .overview-stats-grid {
    gap: 20px;
}

.page-overview .metric-card {
    position: relative;
    overflow: hidden;
    min-height: 198px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: #ffffff;
}

.page-overview .metric-card::before {
    display: none;
}

.page-overview .metric-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.page-overview .metric-icon {
    width: 52px;
    height: 52px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    background: #fff4e8;
    border: 1px solid rgba(255, 139, 43, 0.16);
    font-size: 1.2rem;
}

.page-overview .metric-badge {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    background: #fff4e8;
    border: 1px solid rgba(255, 139, 43, 0.16);
    font-size: 0.77rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.page-overview .metric-card .stat-label {
    margin-top: 18px;
    color: #a06a3e;
    font-size: 0.9rem;
    font-weight: 700;
}

.page-overview .metric-card .stat-value {
    color: #46230f;
    font-size: 2.35rem;
    line-height: 1;
    margin-top: 10px;
}

.page-overview .metric-caption {
    margin-top: 14px;
    color: #8f643f;
    font-size: 0.88rem;
    line-height: 1.55;
}

.page-overview .metric-card--primary .metric-icon,
.page-overview .metric-card--primary .metric-badge {
    color: #e56a17;
}

.page-overview .metric-card--success .metric-icon,
.page-overview .metric-card--success .metric-badge {
    color: #0f9f6e;
}

.page-overview .metric-card--danger .metric-icon,
.page-overview .metric-card--danger .metric-badge {
    color: #ff7a1a;
}

.page-overview .metric-card--warning .metric-icon,
.page-overview .metric-card--warning .metric-badge {
    color: #d38316;
}

.page-overview .metric-card--neutral .metric-icon,
.page-overview .metric-card--neutral .metric-badge {
    color: #ef7b1a;
}

.page-overview .overview-content-grid {
    gap: 20px;
    margin-top: 20px;
}

.page-overview .panel {
    padding: 22px;
    background: #ffffff;
}

.page-overview .overview-panel-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 18px;
}

.page-overview .overview-panel-kicker {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    margin-bottom: 10px;
    background: #fff4e8;
    border: 1px solid rgba(255, 139, 43, 0.16);
    color: #df6816;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.page-overview .panel-title {
    color: #46230f;
    font-size: 1.14rem;
}

.page-overview .overview-panel-text {
    max-width: 58ch;
    color: #8d6542;
    font-size: 0.9rem;
    line-height: 1.6;
}

.page-overview .overview-panel-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 0 14px;
    border-radius: 999px;
    white-space: nowrap;
    background: #fff4e8;
    border: 1px solid rgba(255, 139, 43, 0.16);
    color: #cf5a12;
    font-weight: 700;
}

.page-overview .table-soft thead th {
    color: #b07a4b !important;
}

.page-overview .table-soft tbody tr {
    background: #ffffff;
}

.page-overview .table-soft tbody tr + tr td {
    border-top-color: rgba(255, 170, 89, 0.16);
}

.page-overview .chart-holder {
    height: 360px;
    padding: 14px 12px 6px;
    border-radius: 24px;
    background: #ffffff;
    border: 1px solid rgba(255, 139, 43, 0.14);
}

.page-overview .top-api-list {
    display: grid;
    gap: 14px;
}

.page-overview .top-api-item {
    padding: 14px 16px;
    border-radius: 22px;
    background: #ffffff;
    border: 1px solid rgba(255, 139, 43, 0.14);
}

.page-overview .top-api-row {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: center;
}

.page-overview .top-api-main {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.page-overview .top-api-rank {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: #fff4e8;
    border: 1px solid rgba(255, 139, 43, 0.16);
    color: #df6816;
    font-weight: 800;
}

.page-overview .top-api-meta {
    min-width: 0;
}

.page-overview .top-api-name {
    color: #46230f;
    font-weight: 800;
    overflow-wrap: anywhere;
}

.page-overview .top-api-subtext {
    color: #9d6b42;
    font-size: 0.84rem;
    margin-top: 2px;
}

.page-overview .top-api-value {
    color: #cf5a12;
    font-weight: 800;
    white-space: nowrap;
}

.page-overview .top-api-track {
    position: relative;
    height: 10px;
    border-radius: 999px;
    margin-top: 12px;
    overflow: hidden;
    background: #fff1e2;
}

.page-overview .top-api-track span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: var(--primary);
    box-shadow: none;
}


.panel {
    padding: 20px;
    min-width: 0;
}

.panel-title {
    font-size: 1.08rem;
    font-weight: 800;
    margin-bottom: 16px;
    color: #522a11;
}

.api-form-section {
    padding: 14px 16px;
    border-radius: 18px;
    background: #ffffff;
    border: 1px solid rgba(255, 170, 89, 0.16);
}

.api-form-section-title {
    font-size: 0.95rem;
    font-weight: 800;
    color: #522a11;
    margin-bottom: 4px;
}

.api-form-section-text {
    color: var(--text-soft);
    font-size: 0.88rem;
}

.api-accordion {
    border-radius: 20px;
    background: #ffffff;
    border: 1px solid rgba(255, 170, 89, 0.16);
    overflow: hidden;
}

.api-accordion-summary {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 18px;
    cursor: pointer;
}

.api-accordion-summary::-webkit-details-marker {
    display: none;
}

.api-accordion-icon {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 170, 89, 0.16);
    color: var(--primary-deep);
    flex: 0 0 auto;
    transition: transform 0.2s ease;
}

.api-accordion[open] .api-accordion-icon {
    transform: rotate(180deg);
}

.api-accordion-body {
    padding: 0 18px 18px;
    border-top: 1px solid rgba(255, 170, 89, 0.14);
    margin: 0;
}

.setting-switch {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    min-height: 84px;
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(255, 170, 89, 0.18);
    cursor: pointer;
}

.setting-switch .form-check-input {
    width: 3rem;
    height: 1.6rem;
    margin-top: 2px;
    border-color: rgba(255, 139, 43, 0.28);
    background-color: rgba(255, 242, 226, 0.96);
    box-shadow: none;
}

.setting-switch .form-check-input:checked {
    background-color: var(--primary);
    border-color: var(--primary);
}

.setting-switch-copy {
    display: grid;
    gap: 4px;
}

.setting-switch-title {
    font-weight: 800;
    color: #522a11;
}

.setting-switch-text {
    color: var(--text-soft);
    font-size: 0.88rem;
    line-height: 1.45;
}

.api-body-mode-tabs {
    margin-bottom: 14px;
}

.api-body-panel {
    display: none;
}

.api-body-panel.active {
    display: block;
}

.api-binary-hint {
    display: flex;
    align-items: center;
    padding: 12px 14px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.66);
    border: 1px solid rgba(255, 170, 89, 0.16);
    min-height: 50px;
}

.table-soft {
    --bs-table-bg: transparent;
    --bs-table-color: var(--text-main);
    --bs-table-border-color: var(--table-border);
}

.table-soft td,
.table-soft th {
    background: transparent !important;
    color: var(--text-main) !important;
    border-color: var(--table-border);
    white-space: nowrap;
}

.table-soft thead th {
    color: var(--text-soft) !important;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.78rem;
    letter-spacing: 0.05em;
}

.form-label {
    color: #c45a16;
    font-weight: 600;
}

.form-control,
.form-select,
.input-group-text {
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(255, 170, 89, 0.22);
    color: var(--text-main);
}

.form-control::placeholder {
    color: var(--text-faint);
}

.form-control:focus,
.form-select:focus {
    background: #ffffff;
    color: var(--text-main);
    box-shadow: 0 0 0 0.22rem rgba(255, 139, 43, 0.14);
    border-color: rgba(255, 139, 43, 0.38);
}

.form-select option {
    color: #111827;
}

.btn-soft {
    border-radius: 14px;
    padding: 10px 16px;
    font-weight: 700;
}

.btn-light.btn-soft,
.btn-light {
    background: var(--primary);
    border-color: var(--primary);
    color: #ffffff;
}

.btn-light.btn-soft:hover,
.btn-light:hover,
.btn-light:focus,
.btn-light:active {
    background: var(--primary-deep);
    border-color: var(--primary-deep);
    color: #ffffff;
}

.btn-outline-light.btn-soft,
.btn-outline-light {
    background: #ffffff;
    border-color: rgba(255, 139, 43, 0.26);
    color: var(--primary-deep);
}

.btn-outline-light.btn-soft:hover,
.btn-outline-light:hover,
.btn-outline-light:focus,
.btn-outline-light:active {
    background: var(--primary-soft);
    border-color: rgba(255, 139, 43, 0.34);
    color: var(--primary-deep);
}

.btn-outline-danger {
    background: rgba(255, 240, 242, 0.88);
    border-color: rgba(215, 95, 123, 0.24);
    color: #c34866;
}

.btn-outline-danger:hover,
.btn-outline-danger:focus,
.btn-outline-danger:active {
    background: rgba(255, 226, 232, 0.96);
    border-color: rgba(195, 72, 102, 0.3);
    color: #a93654;
}

.login-wrap {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 20px;
}

.login-card {
    width: 100%;
    max-width: 430px;
    padding: 28px;
}

.login-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 14px;
    border-radius: 999px;
    margin-bottom: 12px;
    background: rgba(255, 139, 43, 0.12);
    color: var(--primary-deep);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.login-headline {
    color: #522a11;
}

.login-note {
    text-align: center;
}

.chart-holder {
    height: 320px;
}

.badge {
    padding: 8px 12px;
    border-radius: 999px;
    font-weight: 800;
    letter-spacing: 0.01em;
    border: 1px solid transparent;
    box-shadow: none;
}

.text-bg-success {
    background: linear-gradient(135deg, rgba(232, 255, 246, 0.98), rgba(243, 255, 250, 0.98)) !important;
    color: #118160 !important;
    border-color: rgba(54, 177, 131, 0.18);
}

.text-bg-danger {
    background: linear-gradient(135deg, rgba(255, 240, 242, 0.98), rgba(255, 247, 248, 0.98)) !important;
    color: #c23a58 !important;
    border-color: rgba(215, 95, 123, 0.18);
}

.text-bg-warning {
    background: linear-gradient(135deg, rgba(255, 249, 231, 0.98), rgba(255, 253, 243, 0.98)) !important;
    color: #a06b00 !important;
    border-color: rgba(227, 179, 67, 0.18);
}

.text-bg-info {
    background: linear-gradient(135deg, rgba(234, 247, 255, 0.98), rgba(245, 251, 255, 0.98)) !important;
    color: #e36512 !important;
    border-color: rgba(255, 139, 43, 0.16);
}

.alert-success {
    background: linear-gradient(135deg, rgba(232, 255, 246, 0.96), rgba(245, 255, 251, 0.96));
    border: 1px solid rgba(54, 177, 131, 0.16) !important;
    color: #0e7b5b;
}

.alert-warning {
    background: linear-gradient(135deg, rgba(255, 249, 231, 0.96), rgba(255, 253, 243, 0.96));
    border: 1px solid rgba(227, 179, 67, 0.18) !important;
    color: #9a6a00;
}

.alert-danger {
    background: linear-gradient(135deg, rgba(255, 240, 242, 0.96), rgba(255, 247, 248, 0.96));
    border: 1px solid rgba(215, 95, 123, 0.16) !important;
    color: #b63f5b;
}

.alert {
    border-radius: 18px;
    padding: 14px 16px;
}

.small-card-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-top: 18px;
    min-width: 0;
}

.mobile-dock {
    display: none;
}

.section-switcher {
    margin-top: 18px;
    padding: 10px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.section-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 999px;
    color: var(--text-soft);
    font-weight: 700;
}

.section-pill.active {
    background: var(--primary);
    color: #ffffff;
}

.analytics-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}

.analytics-toolbar-copy {
    flex: 1 1 320px;
    max-width: 620px;
}

.analytics-toolbar-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    flex: 1 1 420px;
    flex-wrap: wrap;
}

@media (max-width: 1100px) {
    .analytics-toolbar-copy,
    .analytics-toolbar-actions {
        flex: 1 1 100%;
        max-width: none;
    }
}

.analytics-switcher {
    margin-top: 0;
    padding: 8px;
    gap: 8px;
    background: #ffffff;
}

.analytics-switcher .section-pill {
    min-height: 42px;
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(255, 170, 89, 0.14);
    transition: background-color 0.2s ease, color 0.2s ease;
}

.analytics-switcher .section-pill:hover {
    color: var(--primary-deep);
}

.analytics-switcher .section-pill.active {
    box-shadow: none;
}

.analytics-clear-form {
    display: flex;
    align-items: center;
}

.analytics-clear-form .btn {
    min-height: 44px;
    white-space: nowrap;
}

.analytics-stats-grid {
    align-items: stretch;
    gap: 20px;
    margin-top: 22px;
}

.analytics-stat-card {
    position: relative;
    overflow: hidden;
    border-width: 1px;
    border-radius: 22px;
    padding: 20px;
}

.analytics-stat-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 18px;
    right: 18px;
    height: 5px;
    border-radius: 999px;
    background: currentColor;
    opacity: 0.9;
}

.analytics-stat-card .stat-label {
    color: #1f2937 !important;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.analytics-stat-card .stat-value {
    margin-top: 10px;
    line-height: 1;
    letter-spacing: -0.03em;
}

.analytics-stat-note {
    margin-top: 12px;
    color: #667085;
    font-size: 0.86rem;
    line-height: 1.45;
}

.analytics-stat-card--traffic {
    color: #ef8a1f !important;
    background: linear-gradient(180deg, #fffdf9 0%, #fff6ea 100%) !important;
    border-color: #f4dcc0 !important;
}

.analytics-stat-card--traffic .stat-value {
    color: #ef8a1f !important;
}

.analytics-stat-card--success {
    color: #149a6c !important;
    background: linear-gradient(180deg, #fbfefc 0%, #eef9f3 100%) !important;
    border-color: #cae8d8 !important;
}

.analytics-stat-card--success .stat-value {
    color: #149a6c !important;
}

.analytics-stat-card--failed {
    color: #d45b77 !important;
    background: linear-gradient(180deg, #fffafb 0%, #fff1f4 100%) !important;
    border-color: #f0d2dc !important;
}

.analytics-stat-card--failed .stat-value {
    color: #d45b77 !important;
}

.analytics-stat-card--limited {
    color: #3b82f6 !important;
    background: linear-gradient(180deg, #fbfdff 0%, #f1f7ff 100%) !important;
    border-color: #d4e2f8 !important;
}

.analytics-stat-card--limited .stat-value {
    color: #3b82f6 !important;
}

.analytics-stat-card--rate {
    color: #8b5cf6 !important;
    background: linear-gradient(180deg, #fcfbff 0%, #f5f1ff 100%) !important;
    border-color: #e0d7fb !important;
}

.analytics-stat-card--rate .stat-value {
    color: #8b5cf6 !important;
}

.account-layout {
    grid-template-columns: minmax(280px, 0.8fr) minmax(360px, 1.2fr);
    align-items: start;
}

.account-hero {
    display: flex;
    align-items: center;
    gap: 18px;
}

.account-hero-avatar {
    width: 84px;
    height: 84px;
    border-radius: 28px;
    display: grid;
    place-items: center;
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-deep);
    background: #fff4e8;
    border: 1px solid rgba(255, 170, 89, 0.28);
}

.account-hero-name {
    font-size: 1.3rem;
    font-weight: 800;
    color: #522a11;
    margin-bottom: 6px;
}

.account-form .form-text {
    color: var(--text-soft);
}

.table-responsive {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

.table-responsive .table {
    width: max-content;
    min-width: 100%;
    margin-bottom: 0;
}

.postman-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(360px, 0.85fr);
    gap: 18px;
    margin-top: 18px;
    align-items: start;
}

.postman-main-column {
    display: grid;
    gap: 18px;
    min-width: 0;
}

.postman-panel,
.response-panel,
.snippet-sidebar {
    padding: 0;
    overflow: hidden;
}

.postman-topbar,
.response-topbar {
    padding: 18px 20px;
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 16px;
    border-bottom: 1px solid rgba(255, 170, 89, 0.16);
    background: #ffffff;
}

.postman-quick-pick {
    min-width: 240px;
}

.postman-form {
    padding: 18px 20px 20px;
}

.request-bar {
    display: grid;
    grid-template-columns: 140px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
}

.request-method,
.request-url,
.request-send {
    height: 50px;
}

.request-url {
    font-size: 0.96rem;
}

.postman-meta-row {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 14px;
}

.meta-chip {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid rgba(255, 170, 89, 0.18);
    color: #c45a16;
    min-height: 48px;
}

.meta-chip span {
    color: var(--text-soft);
    font-size: 0.86rem;
    font-weight: 700;
}

.meta-chip code {
    color: #c45a16;
}

.meta-chip .form-control {
    width: 92px;
    min-width: 92px;
}

.request-tabs {
    display: flex;
    gap: 8px;
    margin-top: 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 170, 89, 0.16);
    overflow-x: auto;
}

.request-tab {
    border: 0;
    border-radius: 999px;
    padding: 9px 14px;
    background: transparent;
    color: var(--text-soft);
    font-weight: 700;
}

.request-tab.active {
    background: var(--primary);
    color: #ffffff;
}

.request-tab-panel {
    display: none;
    padding-top: 16px;
}

.request-tab-panel.active {
    display: block;
}

.tab-headline {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.tab-title {
    font-size: 1rem;
    font-weight: 800;
    color: #522a11;
}

.postman-editor {
    background: #ffffff;
}

.pair-preview-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.pair-preview-item {
    padding: 7px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.84);
    border: 1px solid rgba(255, 170, 89, 0.18);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, Liberation Mono, monospace;
    font-size: 0.84rem;
}

.body-mode-tabs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.body-mode-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(255, 170, 89, 0.18);
    color: var(--text-soft);
    font-weight: 700;
    cursor: pointer;
}

.body-mode-tab input {
    display: none;
}

.body-mode-tab.active {
    background: var(--primary);
    color: #ffffff;
    border-color: rgba(255, 139, 43, 0.22);
}

.body-panel {
    display: none;
    padding: 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.68);
    border: 1px solid rgba(255, 170, 89, 0.14);
}

.body-panel.active {
    display: block;
}

.body-panel-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    margin-bottom: 12px;
    font-weight: 800;
    color: #522a11;
}

.body-empty-state {
    color: var(--text-soft);
    font-weight: 600;
}

.upload-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.formdata-table {
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(255, 170, 89, 0.16);
    background: rgba(255, 255, 255, 0.66);
}

.formdata-head,
.formdata-row {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) 140px minmax(0, 1.4fr);
    gap: 10px;
    padding: 12px;
}

.formdata-head {
    background: rgba(255, 238, 214, 0.88);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 800;
    color: var(--text-soft);
}

.formdata-row {
    border-top: 1px solid rgba(255, 170, 89, 0.12);
    align-items: center;
}

.formdata-head-two,
.formdata-row-two {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
}

.formdata-value-cell {
    min-width: 0;
}

.response-topbar {
    align-items: center;
}

.response-panel .response-block {
    padding: 0 20px;
}

.response-panel .response-block:last-child {
    padding-bottom: 20px;
}

.response-tabs,
.snippet-tabs {
    display: flex;
    gap: 8px;
    padding: 16px 20px 0;
    flex-wrap: wrap;
}

.response-tab,
.snippet-tab {
    border: 0;
    border-radius: 999px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.72);
    color: var(--text-soft);
    font-weight: 700;
}

.response-tab.active,
.snippet-tab.active {
    background: var(--primary);
    color: #ffffff;
}

.response-tab-panel,
.snippet-tab-panel {
    display: none;
}

.response-tab-panel.active,
.snippet-tab-panel.active {
    display: block;
}

.snippet-panel {
    margin: 20px;
    margin-top: 12px;
    border-radius: 20px;
    background: #ffffff;
    border: 1px solid rgba(255, 170, 89, 0.16);
    overflow: hidden;
}

.snippet-head {
    padding: 20px 20px 4px;
}

.snippet-tabs {
    padding: 14px 20px 0;
}

.snippet-pre {
    margin: 0 20px 20px;
    max-height: 360px;
}

.snippet-sidebar {
    position: sticky;
    top: 22px;
}

.snippet-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 16px 20px 10px;
}

.snippet-lang {
    font-weight: 800;
    color: #522a11;
}

.snippet-copy-btn {
    padding: 8px 14px;
}

.snippet-empty {
    min-height: 420px;
    padding: 24px;
}

.response-body {
    min-height: 280px;
}

.response-empty {
    min-height: 520px;
    padding: 24px;
}

.code-block-input,
.response-pre {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, Liberation Mono, monospace;
    font-size: 0.92rem;
}

.code-block-input {
    min-height: 180px;
}

.test-hint-card {
    border-radius: 18px;
    padding: 14px;
    background: #ffffff;
    border: 1px solid rgba(255, 170, 89, 0.2);
}

.hint-title {
    font-weight: 700;
    margin-bottom: 8px;
    color: #522a11;
}

.result-stats {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.result-chip {
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 170, 89, 0.2);
    font-weight: 700;
    color: #c45a16;
}

.result-chip.is-ok {
    background: var(--success-soft);
    color: #16704a;
}

.result-chip.is-error {
    background: var(--danger-soft);
    color: #a93654;
}

.request-url-chip {
    max-width: 100%;
    overflow-wrap: anywhere;
}

.response-block {
    margin-top: 16px;
}

.response-label {
    font-weight: 700;
    margin-bottom: 8px;
    color: #522a11;
}

.response-pre {
    margin: 0;
    padding: 16px;
    border-radius: 18px;
    background: #fffaf5;
    border: 1px solid rgba(255, 170, 89, 0.18);
    color: #3b1f10;
    white-space: pre-wrap;
    word-break: break-word;
    max-height: 520px;
    overflow: auto;
}

.empty-state {
    min-height: 360px;
    display: grid;
    place-items: center;
    text-align: center;
    gap: 10px;
    color: var(--text-soft);
}

.empty-state-icon {
    width: 68px;
    height: 68px;
    border-radius: 22px;
    display: grid;
    place-items: center;
    font-size: 1.5rem;
    background: #fff4e8;
    color: var(--primary-deep);
}

.json-layout {
    grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
}

.json-builder-panel,
.json-sidebar {
    padding: 20px;
}

.json-toolbar {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}

.json-toolbar-main {
    flex: 1 1 320px;
}

.json-toolbar-main .form-control,
.json-toolbar-main .input-group-text {
    min-height: 46px;
}

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

.json-status-bar {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 14px;
    padding: 12px 14px;
    border-radius: 16px;
    background: #ffffff;
    border: 1px solid rgba(255, 170, 89, 0.14);
}

.json-builder-table {
    margin-top: 8px;
}

.json-builder-head,
.json-builder-row {
    grid-template-columns: 44px minmax(0, 1fr) 150px minmax(0, 1.3fr);
}

.json-value-cell {
    min-width: 0;
}

.json-value-cell .form-select,
.json-value-cell .form-control {
    width: 100%;
}

.json-builder-item {
    border-top: 1px solid rgba(255, 170, 89, 0.12);
}

.json-builder-item:first-child {
    border-top: 0;
}

.json-builder-row {
    display: grid;
    align-items: center;
    gap: 10px;
    padding: 12px;
}

.json-accordion-toggle {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    border: 1px solid rgba(255, 170, 89, 0.18);
    background: rgba(255, 255, 255, 0.76);
    color: var(--primary-deep);
    display: grid;
    place-items: center;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.json-accordion-toggle.is-hidden {
    visibility: hidden;
}

.json-builder-item.is-expanded .json-accordion-toggle i {
    transform: rotate(90deg);
}

.json-key-slot {
    min-width: 0;
}

.json-array-item-label,
.json-nested-label {
    min-height: 44px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.84);
    border: 1px dashed rgba(255, 170, 89, 0.24);
    color: var(--text-soft);
    display: flex;
    align-items: center;
    padding: 0 14px;
    font-weight: 700;
}

.json-nested-panel {
    padding: 0 12px 12px 56px;
}

.json-nested-list {
    border-radius: 18px;
    background: #ffffff;
    border: 1px solid rgba(255, 170, 89, 0.16);
    overflow: hidden;
}

.json-raw-input {
    min-height: 420px;
}

.json-file-list {
    display: grid;
    gap: 10px;
}

.json-file-item {
    width: 100%;
    border: 1px solid rgba(255, 170, 89, 0.16);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.7);
    padding: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    text-align: left;
    transition: background-color 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.json-file-item:hover,
.json-file-item.active {
    background: #fff4e8;
    border-color: rgba(255, 139, 43, 0.22);
    transform: none;
}

.json-file-name {
    font-weight: 800;
    color: #522a11;
    overflow-wrap: anywhere;
}

.json-file-main {
    min-width: 0;
    display: grid;
    gap: 4px;
    flex: 1 1 auto;
}

.json-file-info {
    color: var(--text-soft);
    font-size: 0.84rem;
}

.json-file-open {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(255, 170, 89, 0.16);
    color: var(--primary-deep);
}

.json-file-open:hover {
    background: rgba(255, 255, 255, 0.96);
    color: var(--primary-deep);
}

.json-sidebar-actions {
    margin-top: 16px;
    display: grid;
    gap: 10px;
}

.json-sidebar-actions .btn {
    width: 100%;
    min-height: 46px;
    border-radius: 16px;
}

.json-empty-list {
    min-height: 220px;
}

@media (max-width: 1100px) {
    .app-shell {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: static;
        height: auto;
    }

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

    .content-grid,
    .account-layout,
    .postman-layout {
        grid-template-columns: 1fr;
    }

    .snippet-sidebar {
        position: static;
    }
}

@media (max-width: 700px) {
    body.has-dock {
        padding-bottom: 104px;
        overflow-x: hidden;
    }

    .app-shell {
        padding: 14px;
        gap: 14px;
    }

    .sidebar {
        display: none;
    }

    .mobile-dock {
        position: fixed;
        left: 12px;
        right: 12px;
        bottom: 12px;
        z-index: 1000;
        display: grid;
        grid-auto-flow: column;
        grid-auto-columns: minmax(62px, 1fr);
        gap: 8px;
        padding: 10px;
        overflow-x: auto;
        max-width: calc(100vw - 24px);
        background: #ffffff;
        border-radius: 24px;
        box-shadow: none;
        border: 1px solid rgba(255, 139, 43, 0.18);
    }

    .dock-link {
        min-width: 62px;
        max-width: 74px;
        padding: 10px 8px;
        border-radius: 18px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 4px;
        color: var(--text-soft);
        font-size: 0.68rem;
        font-weight: 700;
        text-align: center;
        overflow: hidden;
    }

    .dock-link i {
        font-size: 1.08rem;
        color: var(--primary);
    }

    .dock-link span {
        display: block;
        width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .dock-link.active {
        background: var(--primary);
        color: #ffffff;
    }

    .dock-link.active i {
        color: #ffffff;
    }

    .topbar {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        padding: 16px;
    }

    .topbar-main {
        width: 100%;
    }

    .page-title {
        font-size: 1.35rem;
        line-height: 1.15;
    }

    .topbar-main .soft-subtext {
        max-width: 34ch;
        line-height: 1.45;
    }

    .topbar-actions {
        width: 100%;
        justify-content: stretch;
        min-width: 0;
        gap: 10px !important;
    }

    .account-trigger {
        min-width: 0;
        flex: 1 1 auto;
        justify-content: space-between;
        padding: 10px 12px;
        border-radius: 16px;
        background: rgba(255, 255, 255, 0.72);
        border: 1px solid rgba(255, 170, 89, 0.18);
    }

    .account-meta {
        text-align: left !important;
        overflow: hidden;
    }

    .account-meta .fw-semibold {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .avatar {
        width: 42px;
        height: 42px;
        flex: 0 0 42px;
    }

    .topbar-logout {
        flex: 0 0 auto;
        min-width: 48px;
        justify-content: center;
        padding: 10px 12px;
        border-radius: 16px;
    }

    .topbar-logout span {
        display: none;
    }

    .stats-grid,
    .small-card-grid {
        grid-template-columns: 1fr;
    }

    .request-bar,
    .upload-grid,
    .formdata-head,
    .formdata-row {
        grid-template-columns: 1fr;
    }

    .json-toolbar,
    .json-status-bar {
        align-items: stretch;
    }

    .json-toolbar-actions .btn {
        flex: 1 1 0;
    }

    .json-builder-head,
    .json-builder-row {
        grid-template-columns: 1fr;
    }

    .json-accordion-toggle.is-hidden {
        display: none;
    }

    .json-nested-panel {
        padding: 0 12px 12px;
    }

    .chart-holder {
        height: 260px;
    }

    .page-overview .overview-panel-head,
    .page-overview .top-api-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .page-overview .overview-panel-chip {
        min-height: 32px;
    }

    .page-overview .metric-card {
        min-height: 176px;
    }

    .page-overview .metric-card .stat-value {
        font-size: 2.05rem;
    }

    .page-overview .top-api-value {
        white-space: normal;
    }

    .section-switcher {
        display: flex;
        width: 100%;
    }

    .section-pill {
        justify-content: center;
        flex: 1 1 0;
    }

    .analytics-toolbar {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .analytics-toolbar-copy,
    .analytics-toolbar-actions,
    .analytics-clear-form {
        width: 100%;
        max-width: none;
    }

    .analytics-toolbar-actions {
        justify-content: stretch;
        gap: 10px;
    }

    .analytics-switcher {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr 1fr;
        padding: 6px;
        gap: 6px;
    }

    .analytics-switcher .section-pill {
        width: 100%;
        min-height: 38px;
        padding: 8px 10px;
        font-size: 0.9rem;
    }

    .analytics-clear-form .btn {
        width: 100%;
        min-height: 42px;
    }

    .table-responsive {
        margin-inline: -4px;
        padding-inline: 4px;
    }

    .table-responsive .table {
        min-width: 640px;
    }

    .postman-topbar,
    .response-topbar,
    .tab-headline,
    .body-panel-head {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Final palette override: black text, light gray borders, fresh orange gradient */
:root {
    --surface-border: #e5e7eb;
    --surface-shadow: none;
    --text-main: #111111;
    --text-soft: #111111;
    --text-faint: #4b5563;
    --primary: #ff921f;
    --primary-deep: #ff5a00;
    --primary-soft: rgba(255, 146, 31, 0.12);
    --primary-soft-strong: rgba(255, 146, 31, 0.2);
    --table-border: #e5e7eb;
    --primary-gradient: linear-gradient(135deg, #ffb12a 0%, #ff921f 48%, #ff5a00 100%);
    --primary-gradient-hover: linear-gradient(135deg, #ffbf47 0%, #ffa126 48%, #ff640a 100%);
    --primary-glow: 0 0 0 1px rgba(255, 146, 31, 0.14), 0 10px 24px rgba(255, 122, 24, 0.24);
    --primary-glow-strong: 0 0 0 1px rgba(255, 146, 31, 0.18), 0 14px 28px rgba(255, 122, 24, 0.3);
}

body,
.panel-title,
.page-overview .panel-title,
.page-overview .top-api-name,
.page-overview .metric-card .stat-value,
.page-overview .metric-caption,
.page-overview .overview-panel-text,
.page-overview .top-api-subtext,
.page-overview .top-api-value,
.tab-title,
.hint-title,
.snippet-lang,
.response-label,
.account-hero-name,
.setting-switch-title,
.api-form-section-title,
.json-file-name,
.login-headline,
.stat-value,
.form-label,
.meta-chip,
.meta-chip code {
    color: #111111 !important;
}

.soft-subtext,
.muted,
.brand-subtitle,
.stat-label,
.table-soft thead th,
.page-overview .table-soft thead th,
.page-overview .metric-card .stat-label,
.page-overview .overview-panel-kicker,
.page-overview .overview-panel-chip,
.login-badge,
.result-chip,
.json-file-info,
.api-form-section-text,
.setting-switch-text,
.body-empty-state {
    color: #111111 !important;
}

.glass-card,
.page-overview .glass-card,
.page-overview .panel,
.page-overview .chart-holder,
.page-overview .top-api-item,
.api-form-section,
.api-accordion,
.setting-switch,
.api-binary-hint,
.form-control,
.form-select,
.input-group-text,
.btn-outline-light,
.btn-outline-light.btn-soft,
.analytics-switcher .section-pill,
.meta-chip,
.body-mode-tab,
.body-panel,
.formdata-table,
.pair-preview-item,
.snippet-panel,
.test-hint-card,
.result-chip,
.response-pre,
.json-status-bar,
.json-nested-list,
.json-file-item,
.json-file-open,
.empty-state-icon,
.avatar,
.brand-icon,
.account-hero-avatar,
.account-trigger,
.mobile-dock,
.dock-link,
.table-soft td,
.table-soft th {
    border-color: #e5e7eb !important;
    box-shadow: none !important;
}

.btn-light,
.btn-light.btn-soft,
.sidebar .nav-link:hover,
.sidebar .nav-link.active,
.section-pill.active,
.request-tab.active,
.body-mode-tab.active,
.response-tab.active,
.snippet-tab.active,
.dock-link.active,
.stat-card--highlight,
.page-overview .top-api-track span {
    background: var(--primary-gradient) !important;
    border-color: transparent !important;
    color: #ffffff !important;
    box-shadow: var(--primary-glow) !important;
}

.btn-light:hover,
.btn-light:focus,
.btn-light:active,
.btn-light.btn-soft:hover,
.btn-light.btn-soft:focus,
.btn-light.btn-soft:active {
    background: var(--primary-gradient-hover) !important;
    border-color: transparent !important;
    color: #ffffff !important;
    box-shadow: var(--primary-glow-strong) !important;
}

.sidebar .nav-link:hover i,
.sidebar .nav-link.active i,
.dock-link.active i {
    color: #ffffff !important;
}

.page-title {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent !important;
}

.btn,
.btn-soft,
.request-send,
.snippet-copy-btn,
.topbar-logout,
.analytics-clear-form .btn,
.json-sidebar-actions .btn {
    transition: all 0.18s ease;
    will-change: transform;
}

.btn:hover,
.btn-soft:hover,
.request-send:hover,
.snippet-copy-btn:hover,
.topbar-logout:hover,
.analytics-clear-form .btn:hover,
.json-sidebar-actions .btn:hover {
    transform: translateY(-2px);
}

.btn:active,
.btn-soft:active,
.request-send:active,
.snippet-copy-btn:active,
.topbar-logout:active,
.analytics-clear-form .btn:active,
.json-sidebar-actions .btn:active {
    transform: translateY(0);
}

.btn-light,
.btn-light.btn-soft,
.sidebar .nav-link,
.section-pill,
.request-tab,
.body-mode-tab,
.response-tab,
.snippet-tab,
.dock-link {
    transition: all 0.2s ease;
}

.login-badge,
.page-overview .metric-icon,
.page-overview .metric-badge,
.page-overview .overview-panel-kicker,
.page-overview .overview-panel-chip,
.page-overview .top-api-rank,
.brand-icon,
.avatar,
.account-hero-avatar,
.empty-state-icon {
    background: #fff7ed !important;
    color: var(--primary-deep) !important;
}

.page-overview .top-api-track {
    background: #f3f4f6 !important;
}

.form-control:focus,
.form-select:focus {
    border-color: rgba(239, 108, 18, 0.38) !important;
    box-shadow: 0 0 0 0.2rem rgba(239, 108, 18, 0.12) !important;
}
