:root {
    --bg-base: #f5fbff;
    --bg-accent: #d8efff;
    --bg-accent-strong: #8dd3ff;
    --surface: rgba(255, 255, 255, 0.82);
    --surface-strong: rgba(255, 255, 255, 0.94);
    --surface-border: rgba(115, 182, 255, 0.24);
    --surface-shadow: 0 20px 45px rgba(79, 136, 196, 0.14);
    --text-main: #12304d;
    --text-soft: #5f7e99;
    --text-faint: #7e9bb5;
    --primary: #2693e6;
    --primary-deep: #1175c8;
    --primary-soft: rgba(38, 147, 230, 0.12);
    --primary-soft-strong: rgba(38, 147, 230, 0.18);
    --success-soft: #e8fff6;
    --danger-soft: #fff0f2;
    --table-border: rgba(115, 182, 255, 0.18);
}

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

body {
    margin: 0;
    font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
    background:
        radial-gradient(circle at top left, rgba(141, 211, 255, 0.54), transparent 30%),
        radial-gradient(circle at top right, rgba(220, 242, 255, 0.95), transparent 28%),
        linear-gradient(180deg, #fafdff 0%, #eef8ff 52%, #f6fbff 100%);
    color: var(--text-main);
}

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%;
}

.glass-card {
    background: var(--surface);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid var(--surface-border);
    box-shadow: var(--surface-shadow);
    border-radius: 24px;
    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: linear-gradient(135deg, #ffffff, #dff2ff);
    color: var(--primary);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
    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: var(--primary-deep);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(211, 238, 255, 0.95));
    transform: translateX(2px);
}

.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: #0f2b46;
}

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

.avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #eff9ff, #d7efff);
    border: 1px solid rgba(115, 182, 255, 0.3);
    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: rgba(255, 255, 255, 0.66);
    color: inherit;
    transform: translateY(-1px);
}

.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-label {
    color: var(--text-soft);
    font-size: 0.92rem;
}

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

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


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

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

.api-form-section {
    padding: 14px 16px;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(240, 249, 255, 0.9));
    border: 1px solid rgba(115, 182, 255, 0.16);
}

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

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

.api-accordion {
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.74), rgba(244, 250, 255, 0.92));
    border: 1px solid rgba(115, 182, 255, 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(115, 182, 255, 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(115, 182, 255, 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(115, 182, 255, 0.18);
    cursor: pointer;
}

.setting-switch .form-check-input {
    width: 3rem;
    height: 1.6rem;
    margin-top: 2px;
    border-color: rgba(38, 147, 230, 0.28);
    background-color: rgba(197, 224, 245, 0.9);
    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: #163d61;
}

.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(115, 182, 255, 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: #234b70;
    font-weight: 600;
}

.form-control,
.form-select,
.input-group-text {
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(115, 182, 255, 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(38, 147, 230, 0.14);
    border-color: rgba(38, 147, 230, 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: linear-gradient(135deg, #3aa2ef, #1d88da);
    border-color: transparent;
    color: #ffffff;
}

.btn-light.btn-soft:hover,
.btn-light:hover,
.btn-light:focus,
.btn-light:active {
    background: linear-gradient(135deg, #1f8bdd, #1177c9);
    color: #ffffff;
}

.btn-outline-light.btn-soft,
.btn-outline-light {
    background: rgba(255, 255, 255, 0.72);
    border-color: rgba(38, 147, 230, 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(38, 147, 230, 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;
}

.chart-holder {
    height: 320px;
}

.badge {
    padding: 8px 12px;
    border-radius: 999px;
    font-weight: 800;
    letter-spacing: 0.01em;
    border: 1px solid transparent;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.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: #1678c3 !important;
    border-color: rgba(38, 147, 230, 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;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.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: linear-gradient(135deg, rgba(218, 241, 255, 0.98), rgba(235, 248, 255, 0.98));
    color: var(--primary-deep);
}

.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: linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(246, 251, 255, 0.94));
}

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

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

.analytics-switcher .section-pill.active {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

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

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

.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: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(216, 239, 255, 0.96));
    border: 1px solid rgba(115, 182, 255, 0.28);
}

.account-hero-name {
    font-size: 1.3rem;
    font-weight: 800;
    color: #163d61;
    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(115, 182, 255, 0.16);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.7), rgba(246, 251, 255, 0.92));
}

.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(115, 182, 255, 0.18);
    color: #214463;
    min-height: 48px;
}

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

.meta-chip code {
    color: #0d4671;
}

.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(115, 182, 255, 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: linear-gradient(135deg, rgba(38, 147, 230, 0.14), rgba(38, 147, 230, 0.08));
    color: var(--primary-deep);
}

.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: #163d61;
}

.postman-editor {
    background: rgba(252, 254, 255, 0.96);
}

.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(115, 182, 255, 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(115, 182, 255, 0.18);
    color: var(--text-soft);
    font-weight: 700;
    cursor: pointer;
}

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

.body-mode-tab.active {
    background: linear-gradient(135deg, rgba(38, 147, 230, 0.14), rgba(38, 147, 230, 0.08));
    color: var(--primary-deep);
    border-color: rgba(38, 147, 230, 0.22);
}

.body-panel {
    display: none;
    padding: 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.68);
    border: 1px solid rgba(115, 182, 255, 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: #163d61;
}

.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(115, 182, 255, 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(232, 244, 255, 0.7);
    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(115, 182, 255, 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: linear-gradient(135deg, rgba(38, 147, 230, 0.14), rgba(38, 147, 230, 0.08));
    color: var(--primary-deep);
}

.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: rgba(255, 255, 255, 0.64);
    border: 1px solid rgba(115, 182, 255, 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: #163d61;
}

.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: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(228, 244, 255, 0.92));
    border: 1px solid rgba(115, 182, 255, 0.2);
}

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

.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(115, 182, 255, 0.2);
    font-weight: 700;
    color: #214463;
}

.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: #163d61;
}

.response-pre {
    margin: 0;
    padding: 16px;
    border-radius: 18px;
    background: rgba(242, 249, 255, 0.92);
    border: 1px solid rgba(115, 182, 255, 0.18);
    color: #12304d;
    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: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(216, 239, 255, 0.95));
    color: var(--primary-deep);
}

@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: rgba(255, 255, 255, 0.9);
        border-radius: 24px;
        box-shadow: 0 18px 36px rgba(73, 130, 183, 0.22);
    }

    .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: linear-gradient(180deg, rgba(218, 241, 255, 0.96), rgba(235, 248, 255, 0.96));
        color: var(--primary-deep);
    }

    .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(115, 182, 255, 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;
    }

    .chart-holder {
        height: 260px;
    }

    .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;
    }
}
