body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    margin: 0;
    background: #fff;
    color: #333;
}

.page-header {
    background: #ffffff;
    border-bottom: 1px solid #e7e9eb;
    padding: 8px 20px;
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 45px;
}

.page-header-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.page-header-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.page-header-brand span {
    font-size: 16px;
    font-weight: 600;
    color: #14387f;
}

.page-header-nav {
    display: flex;
    align-items: center;
    gap: 4px;
}

.page-header-nav a {
    padding: 5px 10px;
    font-size: 13px;
    font-weight: 500;
    color: #6c757d;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.12s;
}

.page-header-nav a:hover,
.page-header-nav a.active {
    color: #14387f;
    background: rgba(20, 56, 127, 0.06);
}

/* Single-column layout */
.content.single-col {
    max-width: 700px;
    margin: 0 auto;
    padding: 32px 20px;
}

/* Cards */
.card {
    background: #fff;
    border: 1px solid #e7e9eb;
    border-radius: 8px;
    margin-bottom: 16px;
}

.card-header {
    padding: 12px 20px;
    border-bottom: 1px solid #e7e9eb;
    font-size: 13px;
    font-weight: 600;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.card-body {
    padding: 0;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 13px;
}

.info-row:last-child {
    border-bottom: none;
}

.info-label {
    color: #6c757d;
    font-weight: 500;
}

.info-value {
    color: #333;
    font-weight: 500;
    text-align: right;
    word-break: break-all;
}

.res-text {
    font-size: 11px;
    color: #6c757d;
}

.res-bar {
    width: 100px;
    height: 6px;
    background: #e9ecef;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 2px;
}

.res-bar-fill {
    height: 100%;
    border-radius: 4px;
    background: #14387f;
    transition: width 0.5s ease, background 0.5s ease;
    width: 0;
}

.res-bar-fill.warn {
    background: #f59e0b;
}

.res-bar-fill.crit {
    background: #dc2626;
}

.info-value code {
    background: #f6f6f6;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-family: 'Courier New', monospace;
}

.model-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: flex-end;
}

.model-entry {
    display: flex;
    align-items: center;
    gap: 8px;
}

.model-badge {
    padding: 2px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-family: 'Courier New', monospace;
    background: #f6f6f6;
    color: #333;
}

.model-status {
    padding: 1px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
}

.model-status.fast {
    background: #e8f5e9;
    color: #2e7d32;
}

.model-status.ok {
    background: #fff3e0;
    color: #e65100;
}

.model-status.slow {
    background: #ffeaea;
    color: #c62828;
}

.model-status.error {
    background: #ffeaea;
    color: #c62828;
}

/* Provider mappings */
.mapping-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: flex-end;
}

.mapping-entry {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
}

.mapping-priority {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #eef1f6;
    color: #6c757d;
    font-size: 10px;
    font-weight: 600;
    flex-shrink: 0;
}

.mapping-arrow {
    color: #9ba6b7;
    font-size: 11px;
}

.mapping-provider {
    padding: 1px 7px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    background: #e8f0fe;
    color: #14387f;
}

.mapping-purpose {
    padding: 1px 7px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
    background: #f3e8fe;
    color: #6b21a8;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.mapping-url {
    font-size: 11px;
    color: #6c757d;
    word-break: break-all;
}

.text-muted {
    color: #9ba6b7;
}

.backend-badge {
    display: inline-block;
    padding: 1px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    margin-left: 8px;
    vertical-align: middle;
}

.backend-badge.connected {
    background: #e8f5e9;
    color: #2e7d32;
}

.backend-badge.disconnected {
    background: #ffeaea;
    color: #c62828;
}

/* Bot list */
.bot-group {
    padding: 10px 20px;
    border-bottom: 1px solid #f0f0f0;
}

.bot-group:last-child {
    border-bottom: none;
}

.bot-group-header {
    font-size: 11px;
    font-weight: 600;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.bot-entry {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
}

.bot-entry-left {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.bot-name {
    font-size: 13px;
    font-weight: 500;
    color: #333;
}

.bot-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.bot-tag {
    font-size: 11px;
    color: #6c757d;
    background: #eef1f6;
    padding: 1px 7px;
    border-radius: 4px;
}

.bot-key {
    font-size: 12px;
    font-family: 'Courier New', monospace;
    color: #9ba6b7;
    background: #f6f6f6;
    padding: 2px 8px;
    border-radius: 4px;
}

.bot-impl {
    font-size: 11px;
    color: #6c757d;
    background: #eef1f6;
    padding: 2px 8px;
    border-radius: 4px;
}
