:root {
    --bg: #0f1419;
    --surface: #171d25;
    --surface-2: #1f2733;
    --border: #2a3441;
    --text: #e8eef5;
    --muted: #8b98a8;
    --accent: #3b82f6;
    --accent-hover: #2563eb;
    --danger: #ef4444;
    --success: #22c55e;
    --radius: 12px;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    background: linear-gradient(180deg, #0b1015 0%, #121820 100%);
    color: var(--text);
    min-height: 100vh;
}

a { color: inherit; text-decoration: none; }

.app {
    display: grid;
    grid-template-columns: 260px 1fr;
    min-height: 100vh;
}

.sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    height: 100dvh;
    background: rgba(15, 20, 25, 0.95);
    border-right: 1px solid var(--border);
    padding: 24px 16px;
    display: flex;
    flex-direction: column;
    gap: 0;
    overflow: hidden;
}

.sidebar-scroll {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding-bottom: 16px;
}

.sidebar-footer {
    flex-shrink: 0;
    margin-top: 0;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    display: grid;
    gap: 8px;
}

.sidebar-footer-link {
    display: grid;
    gap: 2px;
    padding: 10px 12px;
    border-radius: 10px;
    color: var(--muted);
    transition: background .15s ease, color .15s ease;
}

.sidebar-footer-link small {
    font-size: 11px;
    color: var(--muted);
}

.sidebar-footer-link:hover,
.sidebar-footer-link.active {
    background: var(--surface-2);
    color: var(--text);
}

.logout {
    display: block;
    padding: 10px 12px;
    border-radius: 10px;
    color: var(--muted);
    transition: background .15s ease, color .15s ease;
}

.logout:hover {
    background: rgba(239, 68, 68, 0.12);
    color: #fca5a5;
}

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

.brand.centered { justify-content: center; }

.brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #2563eb, #06b6d4);
    font-weight: 700;
}

.brand small {
    display: block;
    color: var(--muted);
    font-size: 12px;
}

.nav {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.nav a {
    padding: 10px 12px;
    border-radius: 10px;
    color: var(--muted);
}

.nav a:hover,
.nav a.active {
    background: var(--surface-2);
    color: var(--text);
}

.main {
    padding: 28px;
}

.page-header h1 {
    margin: 0 0 20px;
    font-size: 28px;
}

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

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

.stat {
    display: block;
    transition: transform .15s ease, border-color .15s ease;
}

.stat:hover {
    transform: translateY(-2px);
    border-color: #3b82f6;
}

.stat-value {
    display: block;
    font-size: 32px;
    font-weight: 700;
}

.stat-label {
    color: var(--muted);
}

.panel {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
}

.table-wrap { overflow-x: auto; }

.table {
    width: 100%;
    border-collapse: collapse;
}

.table th,
.table td {
    padding: 12px 10px;
    border-bottom: 1px solid var(--border);
    text-align: left;
    vertical-align: middle;
}

.table td.col-actions {
    width: 1%;
    white-space: nowrap;
}

.table-actions {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    gap: 6px;
}

.btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    min-width: 28px;
    min-height: 28px;
    padding: 0;
    line-height: 1;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 14px 14px;
}

.table th {
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
}

.table tbody tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

.muted { color: var(--muted); }

.btn {
    border: none;
    border-radius: 10px;
    padding: 10px 14px;
    cursor: pointer;
    font: inherit;
}

.btn-sm { padding: 6px 10px; font-size: 13px; }

.btn-primary {
    background: var(--accent);
    color: white;
}

.btn-primary:hover { background: var(--accent-hover); }

.btn-secondary {
    background: var(--surface-2);
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-danger {
    background: rgba(239, 68, 68, 0.15);
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.35);
}

.input,
.form input,
.form textarea,
.form select {
    background: var(--surface-2);
    border: 1px solid var(--border);
    color: var(--text);
    border-radius: 10px;
    padding: 10px 12px;
    font: inherit;
    width: 100%;
}

.form label {
    display: grid;
    gap: 6px;
    margin-bottom: 12px;
}

.settings-list {
    display: grid;
    gap: 16px;
}

.setting-row {
    display: grid;
    grid-template-columns: 220px 1fr auto;
    gap: 12px;
    align-items: start;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.setting-key {
    font-weight: 600;
    word-break: break-word;
}

.row-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.dialog {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    color: var(--text);
    width: min(640px, 92vw);
    padding: 0;
}

.dialog::backdrop {
    background: rgba(0, 0, 0, 0.6);
}

.dialog form {
    padding: 20px;
}

.dialog-actions {
    display: flex;
    gap: 10px;
    margin-top: 8px;
}

.login-page {
    display: grid;
    place-items: center;
    padding: 24px;
}

.login-card {
    width: min(420px, 100%);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: var(--shadow);
}

.login-card h1 {
    margin: 16px 0 20px;
    font-size: 24px;
}

.alert {
    padding: 10px 12px;
    border-radius: 10px;
    margin-bottom: 12px;
}

.alert-error {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.35);
    color: #fecaca;
}

.badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 999px;
    background: var(--surface-2);
    font-size: 12px;
}

.plan-count {
    align-self: center;
    margin-left: auto;
    font-size: 13px;
}

.table tbody tr.row-highlight {
    background: rgba(59, 130, 246, 0.18);
    outline: 1px solid rgba(59, 130, 246, 0.45);
}

@media (max-width: 1100px) {
    .api-docs-layout {
        grid-template-columns: 1fr;
    }

    .api-docs-index {
        position: static;
        max-height: none;
    }
}

@media (max-width: 900px) {
    .app { grid-template-columns: 1fr; }
    .sidebar {
        position: relative;
        height: auto;
        border-right: none;
        border-bottom: 1px solid var(--border);
    }
    .sidebar-scroll { overflow: visible; }
    .setting-row { grid-template-columns: 1fr; }
}

/* Icon action buttons — must come after .btn-secondary/.btn-danger (background shorthand resets image) */
.btn.btn-secondary.btn-icon {
    background-color: var(--surface-2);
    border: 1px solid var(--border);
}

.btn.btn-danger.btn-icon {
    background-color: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.35);
}

.btn.btn-secondary.btn-icon-edit {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c5d0dc' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 20h9'/%3E%3Cpath d='M16.5 3.5a2.1 2.1 0 0 1 3 3L7 19l-4 1 1-4 12.5-12.5z'/%3E%3C/svg%3E");
}

.btn.btn-danger.btn-icon-delete {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f87171' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 6h18'/%3E%3Cpath d='M8 6V4h8v2'/%3E%3Cpath d='M19 6l-1 14H6L5 6'/%3E%3Cpath d='M10 11v6'/%3E%3Cpath d='M14 11v6'/%3E%3C/svg%3E");
}

.btn.btn-secondary.btn-icon-edit:hover {
    background-color: var(--surface);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e8eef5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 20h9'/%3E%3Cpath d='M16.5 3.5a2.1 2.1 0 0 1 3 3L7 19l-4 1 1-4 12.5-12.5z'/%3E%3C/svg%3E");
}

.btn.btn-danger.btn-icon-delete:hover {
    background-color: rgba(239, 68, 68, 0.25);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fca5a5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 6h18'/%3E%3Cpath d='M8 6V4h8v2'/%3E%3Cpath d='M19 6l-1 14H6L5 6'/%3E%3Cpath d='M10 11v6'/%3E%3Cpath d='M14 11v6'/%3E%3C/svg%3E");
}

.photos-upload-panel {
    margin-bottom: 20px;
}

.photos-upload-panel h2 {
    margin: 0 0 12px;
    font-size: 18px;
}

.photos-upload-form {
    display: grid;
    gap: 14px;
}

.upload-dropzone {
    display: grid;
    gap: 12px;
    place-items: stretch;
    text-align: center;
    padding: 28px 16px;
    border: 2px dashed var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    color: var(--muted);
    transition: border-color .15s ease, background .15s ease;
}

.upload-dropzone-title {
    display: block;
    color: var(--text);
}

.upload-dropzone-empty {
    display: grid;
    gap: 6px;
    place-items: center;
}

.upload-dropzone.has-files {
    border-color: var(--success);
    border-style: solid;
    background: rgba(34, 197, 94, 0.08);
    color: var(--text);
}

.upload-dropzone:hover,
.upload-dropzone.dragover {
    border-color: var(--accent);
    background: rgba(59, 130, 246, 0.08);
    color: var(--text);
}

.upload-dropzone.has-files:hover,
.upload-dropzone.has-files.dragover {
    border-color: #4ade80;
    background: rgba(34, 197, 94, 0.12);
}

.upload-pending-summary {
    display: grid;
    gap: 6px;
    place-items: center;
}

.upload-pending-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(34, 197, 94, 0.18);
    border: 1px solid rgba(34, 197, 94, 0.45);
    color: #bbf7d0;
    font-size: 13px;
    font-weight: 600;
}

.upload-pending-hint {
    font-size: 12px;
    color: var(--muted);
}

.upload-pending-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 10px;
    width: 100%;
    text-align: left;
}

.upload-pending-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
}

.upload-pending-thumb {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    background: #0b1015;
}

.upload-pending-meta {
    padding: 8px 10px;
    display: grid;
    gap: 2px;
}

.upload-pending-name {
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--text);
}

.upload-pending-size {
    font-size: 11px;
    color: var(--muted);
}

.upload-actions-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.upload-actions-row .btn-primary:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.upload-dropzone input[type="file"],
.upload-file-input {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.upload-dropzone {
    position: relative;
    cursor: pointer;
}

.upload-change-btn {
    border: none;
    background: transparent;
    color: var(--accent);
    font: inherit;
    font-size: 13px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 8px;
}

.upload-change-btn:hover {
    background: rgba(59, 130, 246, 0.12);
}

.upload-pending-list {
    pointer-events: none;
}

.upload-meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
}

.photos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
}

.photo-card {
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    transition: transform .15s ease, border-color .15s ease;
}

.photo-card:hover {
    transform: translateY(-2px);
    border-color: rgba(59, 130, 246, 0.5);
}

.photo-card img {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    background: #0b1015;
}

.photo-card-body {
    padding: 10px 12px;
    display: grid;
    gap: 4px;
}

.photo-card-title {
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.photo-card-meta {
    font-size: 11px;
    color: var(--muted);
}

.photo-preview img {
    width: 100%;
    max-height: 320px;
    object-fit: contain;
    border-radius: 10px;
    background: #0b1015;
}

.photo-meta {
    font-size: 12px;
    color: var(--muted);
    display: grid;
    gap: 4px;
}

.integration-grid {
    display: grid;
    gap: 20px;
}

.integration-card h2 {
    margin: 0 0 8px;
    font-size: 18px;
}

.integration-card-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 14px;
}

.integration-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    font-size: 13px;
    margin-bottom: 12px;
}

.integration-status.is-on .status-dot {
    background: var(--success);
    box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.15);
}

.integration-status.is-off .status-dot {
    background: var(--muted);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.integration-note,
.integration-warning {
    font-size: 13px;
    margin: 0;
}

.integration-warning {
    margin-top: 12px;
    color: #fca5a5;
}

.integration-key-field {
    display: grid;
    gap: 8px;
    margin-top: 12px;
}

.integration-key-field > span {
    font-size: 13px;
    color: var(--muted);
}

.credential-field {
    display: grid;
    gap: 8px;
    margin-top: 12px;
}

.credential-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--muted);
    letter-spacing: 0.02em;
}

.credential-control {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 48px;
    padding: 4px 6px 4px 14px;
    background: linear-gradient(180deg, #0d1218 0%, #0a0f14 100%);
    border: 1px solid var(--border);
    border-radius: 12px;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.credential-control:focus-within {
    border-color: rgba(59, 130, 246, 0.65);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
}

.credential-input {
    flex: 1;
    min-width: 0;
    border: none;
    background: transparent;
    padding: 10px 0;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 13px;
    line-height: 1.4;
    color: #dbe4ee;
    letter-spacing: 0.02em;
}

.credential-input:focus {
    outline: none;
}

.credential-input::selection {
    background: rgba(59, 130, 246, 0.35);
}

.credential-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.btn.btn-secondary.btn-icon-eye {
    background-color: var(--surface-2);
    border: 1px solid var(--border);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c5d0dc' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 12s3.5-7 10-7 10 7 10 7-3.5 7-10 7-10-7-10-7z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E");
}

.btn.btn-secondary.btn-icon-eye.is-visible {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c5d0dc' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M17.94 17.94A10.94 10.94 0 0 1 12 19c-6.5 0-10-7-10-7a20.3 20.3 0 0 1 5.06-6.94'/%3E%3Cpath d='M9.9 4.24A10.73 10.73 0 0 1 12 5c6.5 0 10 7 10 7a20.3 20.3 0 0 1-3.25 4.06'/%3E%3Cline x1='1' y1='1' x2='23' y2='23'/%3E%3C/svg%3E");
}

.btn.btn-secondary.btn-icon-eye:hover {
    background-color: var(--surface);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e8eef5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 12s3.5-7 10-7 10 7 10 7-3.5 7-10 7-10-7-10-7z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E");
}

.btn.btn-secondary.btn-icon-eye.is-visible:hover {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e8eef5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M17.94 17.94A10.94 10.94 0 0 1 12 19c-6.5 0-10-7-10-7a20.3 20.3 0 0 1 5.06-6.94'/%3E%3Cpath d='M9.9 4.24A10.73 10.73 0 0 1 12 5c6.5 0 10 7 10 7a20.3 20.3 0 0 1-3.25 4.06'/%3E%3Cline x1='1' y1='1' x2='23' y2='23'/%3E%3C/svg%3E");
}

.integration-key-row {
    display: flex;
    gap: 10px;
    align-items: stretch;
}

.integration-key-row input {
    flex: 1;
    min-width: 0;
}

.integration-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

.toggle {
    position: relative;
    display: inline-flex;
    cursor: pointer;
    flex-shrink: 0;
}

.toggle input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-track {
    width: 48px;
    height: 28px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    padding: 3px;
    transition: background .15s ease, border-color .15s ease;
}

.toggle-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--muted);
    transition: transform .15s ease, background .15s ease;
}

.toggle input:checked + .toggle-track {
    background: rgba(34, 197, 94, 0.2);
    border-color: rgba(34, 197, 94, 0.5);
}

.toggle input:checked + .toggle-track .toggle-thumb {
    transform: translateX(20px);
    background: var(--success);
}

.toggle input:focus-visible + .toggle-track {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.api-docs-layout {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 28px;
    align-items: start;
}

.api-docs-index {
    position: sticky;
    top: 20px;
    max-height: calc(100vh - 40px);
    max-height: calc(100dvh - 40px);
    overflow-y: auto;
    padding: 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.api-docs-index h2 {
    margin: 0 0 12px;
    font-size: 15px;
}

.api-docs-index h3 {
    margin: 16px 0 8px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--muted);
}

.api-docs-index ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 4px;
}

.api-docs-index a {
    display: block;
    padding: 5px 8px;
    border-radius: 8px;
    font-size: 13px;
    color: var(--muted);
}

.api-docs-index a:hover {
    background: var(--surface-2);
    color: var(--text);
}

.api-docs-content {
    display: grid;
    gap: 20px;
    min-width: 0;
}

.api-endpoint {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px 22px;
    scroll-margin-top: 20px;
}

.api-endpoint h2 {
    margin: 0 0 10px;
    font-size: 20px;
}

.api-endpoint h3 {
    margin: 18px 0 8px;
    font-size: 14px;
    color: var(--text);
}

.api-endpoint p {
    margin: 0 0 10px;
    color: var(--muted);
    line-height: 1.5;
}

.api-endpoint-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.api-method {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.03em;
    font-family: ui-monospace, monospace;
}

.api-method-get { background: rgba(59, 130, 246, 0.2); color: #93c5fd; }
.api-method-post { background: rgba(34, 197, 94, 0.2); color: #86efac; }
.api-method-put { background: rgba(234, 179, 8, 0.2); color: #fde047; }
.api-method-patch { background: rgba(168, 85, 247, 0.2); color: #d8b4fe; }
.api-method-delete { background: rgba(239, 68, 68, 0.2); color: #fca5a5; }

.api-path {
    font-family: ui-monospace, monospace;
    font-size: 12px;
    word-break: break-all;
    color: #cbd5e1;
}

.api-list {
    margin: 0 0 12px;
    padding-left: 20px;
    color: var(--muted);
    line-height: 1.6;
}

.api-list code {
    font-family: ui-monospace, monospace;
    font-size: 12px;
}

.api-note {
    margin-top: 10px !important;
    padding: 10px 12px;
    background: rgba(59, 130, 246, 0.1);
    border-left: 3px solid var(--accent);
    border-radius: 0 8px 8px 0;
    font-size: 13px;
    color: #bfdbfe !important;
}

.api-docs {
    display: grid;
    gap: 28px;
}

.api-docs-section h2 {
    margin: 0 0 10px;
    font-size: 20px;
}

.api-docs-section p {
    margin: 0 0 12px;
    color: var(--muted);
}

.api-docs-box {
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
}

.api-code {
    display: block;
    margin-top: 6px;
    padding: 10px 12px;
    background: #0b1015;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-family: ui-monospace, monospace;
    font-size: 13px;
    word-break: break-all;
}

.api-docs-spacer {
    margin-top: 14px;
}

.api-docs-note {
    margin: 10px 0 0 !important;
    font-size: 13px;
}

.api-pre {
    margin: 0;
    padding: 16px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow-x: auto;
}

.api-pre code {
    font-family: ui-monospace, monospace;
    font-size: 13px;
    line-height: 1.5;
    white-space: pre;
}

.api-table code {
    font-family: ui-monospace, monospace;
    font-size: 12px;
}
