.main-tabs {
    display: flex;
    gap: 10px;
}

.main-tab-btn {
    flex: 1;
    text-align: center;
    border: 1px solid var(--color-border);
    background: var(--color-surface-tint);
    border-radius: var(--radius-lg);
    padding: 12px 14px;
    cursor: pointer;
    color: var(--color-text-secondary);
    font-size: var(--font-size-body);
    font-weight: var(--font-weight-secondary);
    box-shadow: var(--shadow-card);
    transition: all var(--transition-normal) var(--ease-spring);
}

.main-tab-btn:hover {
    border-color: var(--color-brand);
    color: var(--color-text-primary);
    transform: translateY(-1px);
}

.main-tab-btn.active {
    border-color: var(--color-brand);
    box-shadow: var(--shadow-card-hover);
    color: var(--color-text-primary);
    background: linear-gradient(135deg, var(--color-brand-light), var(--color-surface-tint));
}

.status-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 12px;
}

/* Give the status strip a bit more breathing room under the sticky header. */
.main-panel-topbar .status-strip {
    margin-top: 10px;
    margin-bottom: 16px;
}

.lang-toggle {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.lang-toggle-btn {
    border: 1px solid var(--color-border);
    background: var(--color-surface-tint);
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 12px;
    font-weight: 700;
    color: var(--color-text-secondary);
    transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.lang-toggle-btn:hover {
    border-color: var(--color-border-strong);
    background: var(--color-surface);
}

.lang-toggle-btn.active {
    background: var(--color-brand-light);
    border-color: rgba(200, 121, 99, 0.28);
    color: var(--color-brand-dark);
}

.status-chip {
    min-width: 0;
    max-width: 100%;
    padding: 6px 10px;
    border: 1px solid var(--color-border-soft);
    background: rgba(255, 255, 255, 0.62);
    box-shadow: var(--shadow-subtle);
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    border-radius: 999px;
}

.status-chip .label {
    display: inline;
    font-size: 10px;
    color: var(--color-text-muted);
    margin-bottom: 0;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    flex-shrink: 0;
}

.status-chip .value {
    font-size: 12px;
    font-weight: 600;
    color: var(--color-text-primary);
    letter-spacing: -0.01em;
    white-space: nowrap;
    overflow-wrap: normal;
    word-break: normal;
}

.provider-fast-switch {
    margin: 0 0 14px;
    padding: 10px 12px;
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border-soft);
    background: rgba(255, 255, 255, 0.58);
    box-shadow: var(--shadow-card);
    display: grid;
    gap: 6px;
}

.provider-fast-switch-label {
    font-size: 11px;
    color: var(--color-text-tertiary);
    letter-spacing: 0.02em;
    font-weight: 600;
}

.provider-fast-switch-select {
    width: 100%;
    min-height: 36px;
    padding: 7px 10px;
    padding-right: 38px;
    border: 1px solid var(--color-border-soft);
    border-radius: var(--radius-sm);
    font-size: var(--font-size-body);
    color: var(--color-text-primary);
    background-color: rgba(255, 255, 255, 0.72);
    outline: none;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='none' stroke='%23505A66' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round' d='M2 4l4 4 4-4'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 12px;
}

.provider-fast-switch-select:focus {
    border-color: var(--color-brand);
    box-shadow: var(--shadow-input-focus);
}

.provider-fast-switch-select:disabled {
    cursor: not-allowed;
    opacity: 0.72;
    border-color: var(--color-border-soft);
    background-color: var(--color-surface-alt);
    box-shadow: none;
}

.main-panel {
    min-width: 0;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    padding: 0 28px 28px;
    backdrop-filter: none;
    position: relative;
    overflow-x: hidden;
    overflow-y: auto;
    min-height: 0;
    height: 100vh;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.main-panel::-webkit-scrollbar {
    display: none;
}

.main-panel-topbar {
    position: sticky;
    top: 0;
    z-index: 12;
    margin: 0 -28px 18px;
    padding: 0 28px 14px;
    background: linear-gradient(180deg, var(--color-bg-topbar-strong) 0%, var(--color-bg-topbar-soft) 78%, var(--color-bg-topbar-clear) 100%);
    backdrop-filter: blur(18px) saturate(130%);
}

.panel-header {
    margin-bottom: 14px;
    text-align: left;
}

.panel-header-refined {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin: 0 0 14px;
    padding: 20px 0 16px;
    border-bottom: 1px solid rgba(137, 111, 94, 0.14);
    background: transparent;
}

.panel-header-copy {
    display: flex;
    flex-direction: column;
    gap: 4px;
    max-width: none;
}

.panel-kicker {
    font-size: 10px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-brand-dark);
    font-weight: 700;
}

.hero {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-sm);
}

.hero-logo {
    display: none;
}

.hero-title {
    font-size: clamp(22px, 2.4vw, 30px);
    line-height: 1.08;
    font-family: var(--font-family-display);
    color: var(--color-text-primary);
    letter-spacing: -0.025em;
}

.hero-title .accent {
    color: var(--color-brand);
}

.hero-subtitle {
    margin-top: 0;
    font-size: 13px;
    color: var(--color-text-tertiary);
    line-height: 1.5;
    max-width: 54ch;
}

.hero-github {
    display: none;
    margin-bottom: var(--spacing-sm);
}

.top-tabs {
    margin: 10px 12px 12px;
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0 8px 2px 2px;
    box-shadow: none;
    display: flex;
    flex-wrap: nowrap;
    gap: 6px;
    backdrop-filter: none;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    scroll-snap-type: x proximity;
}

.top-tabs::-webkit-scrollbar {
    display: none;
}

.top-tab {
    border: 1px solid var(--color-border-soft);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.66);
    padding: 6px 10px;
    font-size: 11px;
    color: var(--color-text-secondary);
    text-align: center;
    cursor: pointer;
    transition: border-color var(--transition-fast) var(--ease-smooth), background-color var(--transition-fast) var(--ease-smooth), color var(--transition-fast) var(--ease-smooth), box-shadow var(--transition-fast) var(--ease-smooth), transform var(--transition-fast) var(--ease-smooth);
    box-shadow: var(--shadow-subtle);
    flex: 0 0 auto;
    scroll-snap-align: start;
}

.top-tab:hover {
    border-color: var(--color-border-strong);
    color: var(--color-text-primary);
    transform: translateY(-1px);
}

.top-tab.active,
.top-tab.nav-intent-active {
    border-color: rgba(200, 121, 99, 0.28);
    color: var(--color-brand-dark);
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 10px 24px rgba(92, 68, 52, 0.1);
}

.top-tab.nav-intent-inactive,
.top-tab.active.nav-intent-inactive {
    border-color: var(--color-border);
    color: var(--color-text-secondary);
    background: var(--color-surface);
    box-shadow: none;
}

#panel-sessions.session-panel-fast-hidden {
    display: none !important;
}

.config-subtabs {
    display: flex;
    gap: 6px;
    margin-bottom: 12px;
    padding: 4px;
    background: rgba(255, 255, 255, 0.42);
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border-soft);
    box-shadow: var(--shadow-subtle);
}

.config-subtab {
    border: 1px solid rgba(216, 201, 184, 0.3);
    border-radius: var(--radius-sm);
    padding: 8px 10px;
    background: rgba(255, 255, 255, 0.62);
    color: var(--color-text-secondary);
    cursor: pointer;
    font-size: 13px;
    font-weight: var(--font-weight-secondary);
    transition: all var(--transition-fast) var(--ease-smooth);
    box-shadow: none;
}

.config-subtab:hover {
    border-color: var(--color-border-strong);
    color: var(--color-text-primary);
}

.config-subtab.active {
    border-color: rgba(200, 121, 99, 0.34);
    color: var(--color-text-primary);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 8px 20px rgba(92, 68, 52, 0.08);
}

.settings-subtabs {
    margin-bottom: var(--spacing-sm);
}

.settings-tab-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    margin-left: 6px;
    padding: 0 6px;
    border-radius: 999px;
    background: rgba(200, 121, 99, 0.14);
    color: var(--color-text-secondary);
    font-size: 11px;
    line-height: 1;
}

.content-wrapper {
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    padding: 0 0 40px;
    width: min(100%, 1480px);
    max-width: none;
}

.mode-content {
    width: 100%;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    padding: 0;
}
