.oberon-color-preview {
    display: none !important;
}

.oberon-appearance-layout {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    align-items: flex-start;
    position: relative;
}

.oberon-appearance-fields {
    flex: 1 1 320px;
    min-width: 280px;
}

.oberon-appearance-preview {
    flex: 0 0 320px;
    min-width: 280px;
    position: relative;
}

.oberon-preview-card {
    position: relative;
    width: 320px;
    margin-left: auto;
    margin-right: auto;
    bottom: auto;
    right: auto;
    left: auto;
    background: #fff;
    border: 1px solid #d0d7de;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
    z-index: 10;
    --oberon-preview-left: auto;
    --oberon-preview-width: 320px;
}

.oberon-preview-card h2 {
    margin-top: 0;
    font-size: 16px;
    margin-bottom: 12px;
    font-weight: 600;
}

.oberon-preview-card.is-floating {
    position: fixed;
    bottom: 24px;
    left: var(--oberon-preview-left, auto);
    right: auto;
    width: var(--oberon-preview-width, 320px);
    max-height: calc(100vh - 48px);
    overflow-y: auto;
    z-index: 30;
}

.oberon-preview-card.is-docked {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 24px;
    width: 100%;
    max-height: none;
    overflow: visible;
}

.oberon-preview-stage {
    position: relative;
    padding: 24px;
    padding-bottom: 96px;
    border-radius: 12px;
    background: linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
    overflow: hidden;
}

.oberon-preview-window {
    width: 260px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.12);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.oberon-preview-header {
    padding: 16px;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 12px;
}

.oberon-preview-header img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.25);
}

.oberon-preview-title-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.oberon-preview-title {
    font-weight: 600;
    font-size: 16px;
    line-height: 1.2;
}

.oberon-preview-subtitle {
    font-size: 12px;
    opacity: 0.85;
}

.oberon-preview-subtitle--hidden {
    display: none !important;
}

.oberon-preview-body {
    padding: 16px;
    background: #f8fafc;
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 180px;
}

.oberon-preview-message {
    padding: 10px 14px;
    border-radius: 14px;
    font-size: 13px;
    line-height: 1.45;
    max-width: 180px;
    position: relative;
}

.oberon-preview-message-user {
    align-self: flex-end;
    background: #0ea5e9;
    color: #fff;
    border-bottom-right-radius: 4px;
    box-shadow: 0 10px 30px rgba(14, 165, 233, 0.25);
}

.oberon-preview-message-assistant {
    align-self: flex-start;
    background: #ffffff;
    color: #1f2937;
    border-bottom-left-radius: 4px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.12);
}

.oberon-preview-trigger-left,
.oberon-preview-trigger-right {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 15px 35px rgba(15, 23, 42, 0.18);
}

.oberon-preview-trigger-left {
    left: 24px;
    bottom: 24px;
    background: #0073aa;
    color: #ffffff;
    font-weight: 600;
    padding: 12px 10px;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    border-radius: 0 30px 30px 0;
    letter-spacing: 0.08em;
}

.oberon-preview-trigger-right {
    right: 24px;
    bottom: 24px;
    background: #0073aa;
    color: #ffffff;
    width: 65px;
    height: 65px;
    border-radius: 50%;
}

.oberon-preview-trigger-right img {
    width: 60%;
    height: auto;
    display: block;
}

.oberon-preview-stage.oberon-preview-layout-compact .oberon-preview-trigger-left {
    left: auto;
    right: 120px;
    bottom: 28px;
    writing-mode: horizontal-tb;
    text-orientation: initial;
    border-radius: 999px;
    padding: 10px 16px;
    transform: none;
    letter-spacing: 0.08em;
}

.oberon-preview-stage.oberon-preview-layout-floating .oberon-preview-trigger-left {
    display: none;
}

.oberon-preview-note {
    margin-top: 16px;
    font-size: 12px;
    color: #475569;
    text-align: center;
}

.oberon-llm-connections {
    margin-top: 18px;
}

.oberon-llm-table th,
.oberon-llm-table td {
    vertical-align: middle;
}

.oberon-llm-heading {
    padding-left: 1em;
    padding-right: 12px;
}

.oberon-llm-connections th {
    padding-left: 1em;
}

.oberon-llm-table .oberon-llm-cell--provider select,
.oberon-llm-table .oberon-llm-cell--model select {
    width: 100%;
    max-width: 100%;
}

.oberon-llm-table .oberon-llm-cell--key input[type="password"],
.oberon-llm-table .oberon-llm-cell--key input[type="text"] {
    width: 100%;
    max-width: 100%;
}

.oberon-llm-model-status {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    color: #3858a5;
}

.oberon-llm-cell--actions {
    text-align: right;
    white-space: nowrap;
}

.oberon-llm-actions-header {
    width: 90px;
}

.oberon-llm-pro-upgrade {
    margin-top: 8px;
}

.oberon-prompt-helper {
    margin-top: 8px;
}

.oberon-prompt-helper-toggle {
    font-weight: 600;
    text-decoration: none;
}

.oberon-prompt-helper-toggle:hover,
.oberon-prompt-helper-toggle:focus {
    text-decoration: underline;
}

.oberon-prompt-helper-panel {
    margin-top: 12px;
    border: 1px solid #d4d4d8;
    border-radius: 8px;
    padding: 16px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}

.oberon-prompt-helper-header {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}

.oberon-prompt-helper-select {
    max-width: 280px;
}

.oberon-prompt-helper-description {
    margin: 0;
    color: #475569;
}

.oberon-prompt-helper-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
}

.oberon-prompt-card {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 16px;
    background: #f8fafc;
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative;
}

.oberon-prompt-card h4 {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    color: #1e293b;
}

.oberon-prompt-card p {
    margin: 0;
    color: #475569;
    line-height: 1.4;
}

.oberon-prompt-card pre {
    margin: 0;
    padding: 12px;
    background: #fff;
    border: 1px dashed #cbd5f5;
    border-radius: 8px;
    font-size: 12px;
    line-height: 1.5;
    color: #1f2937;
    max-height: 200px;
    overflow: auto;
    white-space: pre-wrap;
    word-break: break-word;
}

.oberon-prompt-card-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.oberon-prompt-card-copy {
    padding: 0;
    border: none;
    background: none;
    color: #2563eb;
    cursor: pointer;
}

.oberon-prompt-card-copy:hover,
.oberon-prompt-card-copy:focus {
    text-decoration: underline;
}

.oberon-prompt-helper-empty {
    margin: 0;
    color: #6b7280;
}

@media (max-width: 900px) {
    .oberon-appearance-preview {
        position: static;
        flex-basis: 100%;
    }

    .oberon-appearance-layout {
        flex-direction: column;
}

    .oberon-preview-card {
        position: relative !important;
        top: auto !important;
        bottom: auto !important;
        right: auto !important;
        left: auto !important;
        width: auto !important;
        max-height: none;
        overflow: visible;
    }
}

.oberon-transcript-view {
    background: #f9f9f9;
    border: 1px solid #ddd;
    padding: 10px;
    max-height: 500px;
    overflow-y: auto;
}

.oberon-transcript-view .oberon-chat-transcript-message {
    margin-bottom: 10px;
}

.oberon-transcript-view .oberon-chat-transcript-message p {
    margin: 0;
    padding: 0;
}


.oberon-pro-field {
    display: flex;
   align-items: center;
    gap: 12px;
    max-width: 520px;
}

.oberon-pro-field--actions {
    padding: 6px 10px;
    background: rgba(148, 163, 184, 0.12);
    border-radius: 999px;
    flex-wrap: wrap;
    gap: 8px;
}

.oberon-pro-field--actions .button.disabled {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

.oberon-pro-field--locked input[disabled],
.oberon-pro-input--locked {
    background: #f3f4f6 !important;
    color: #6b7280 !important;
    border-color: #d1d5db !important;
    cursor: not-allowed;
}

.oberon-pro-field__lock {
    border: none;
    background: #1d4ed8;
    color: #ffffff;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    font-weight: 700;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease;
}

.oberon-pro-field__lock:hover,
.oberon-pro-field__lock:focus {
    background: #2563eb;
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

.oberon-pro-field__lock[aria-expanded="true"] {
    background: #0ea5e9;
}

.oberon-pro-field__lock span[aria-hidden="true"] {
    pointer-events: none;
}

.oberon-pro-field__tooltip {
    display: none;
    font-size: 12px;
    background: #e0f2fe;
    color: #1f2937;
    padding: 10px 12px;
    border-radius: 10px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.12);
    max-width: 260px;
}

.oberon-pro-field__lock[aria-expanded="true"] + .oberon-pro-field__tooltip,
.oberon-pro-field__lock:focus + .oberon-pro-field__tooltip {
    display: inline-block;
}

.oberon-transcripts-action-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin: 16px 0 24px;
}

.oberon-transcripts-export-actions {
    margin: 16px 0 18px;
}

.oberon-pro-row-lock {
    color: #94a3b8;
    font-style: italic;
    cursor: help;
}

@media (max-width: 640px) {
    .oberon-pro-field {
        flex-direction: column;
        align-items: flex-start;
    }

    .oberon-pro-field__tooltip {
        margin-left: 0;
        margin-top: 8px;
    }
}

.oberon-settings-hero {
    margin: 16px 0 24px;
    padding: 28px;
    padding-right: 56px;
    border: 1px solid #d0d5dd;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
    background: #ffffff;
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
    border-left: 4px solid #2563eb;
    position: relative;
}

.oberon-settings-hero--free {
    border-left: 4px solid #16a34a;
    background: linear-gradient(135deg, rgba(240, 253, 244, 0.75), rgba(255, 255, 255, 0.96));
}

.oberon-settings-hero--pro {
    border-left: 4px solid #2563eb;
    background: linear-gradient(135deg, rgba(219, 234, 254, 0.75), rgba(255, 255, 255, 0.96));
}

.oberon-settings-hero__column {
    flex: 1 1 calc(50% - 16px);
    max-width: calc(50% - 16px);
    font-size: 13px;
    color: #1f2937;
    line-height: 1.7;
}

.oberon-settings-hero__logo {
    width: 75px;
    height: auto;
    display: block;
    margin-bottom: 12px;
}
.oberon-settings-hero img {
    width: 75px;
}

.oberon-settings-hero__close {
    position: absolute;
    top: 6px;
    right: 10px;
    padding: 0;
    border: none;
    background: transparent;
    color: #475569;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    z-index: 2;
}

.oberon-settings-hero__close:hover,
.oberon-settings-hero__close:focus {
    color: #1f2937;
}

.oberon-go-pro {
    margin-top: 24px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 28px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.oberon-go-pro__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.oberon-plan-card {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    background: #f8fafc;
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: relative;
}

.oberon-plan-card--pro {
    background: linear-gradient(120deg, #2563eb0d, #3b82f60d);
    border-color: #2563eb;
}

.oberon-plan-card--ultra {
    background: linear-gradient(120deg, #6d28d90d, #7c3aed0d);
    border-color: #7c3aed;
}

.oberon-plan-card__header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #0f172a;
}

.oberon-plan-card__header p {
    margin: 4px 0 0;
    color: #475569;
}

.oberon-plan-card__badge {
    display: inline-block;
    margin-top: 8px;
    padding: 4px 10px;
    background: #22c55e1a;
    color: #16a34a;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
}

.oberon-plan-card__features {
    margin: 0;
    padding-left: 18px;
    color: #1f2937;
}

.oberon-plan-card__features li {
    margin-bottom: 8px;
}

.oberon-plan-card__cta {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.oberon-plan-card__button {
    text-align: center;
}

.oberon-plan-card__guarantee {
    margin: 0;
    font-size: 12px;
    color: #475569;
}

.oberon-plan-card__footer {
    margin: 0;
    color: #475569;
}

.oberon-go-pro__divider {
    margin: 32px 0;
    border-top: 1px solid #e2e8f0;
}

.oberon-go-pro__activation {
    max-width: 520px;
}

.oberon-go-pro__activation-form {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.oberon-go-pro__activation-form input[type="text"] {
    flex: 1 1 260px;
}

.oberon-billing {
    margin-top: 24px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.oberon-billing__summary,
.oberon-billing__upgrade,
.oberon-billing__support {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.oberon-billing__summary h3,
.oberon-billing__upgrade h3,
.oberon-billing__support h3 {
    margin-top: 0;
    font-size: 18px;
}

.oberon-settings-hero__column h2 {
    margin-top: 0;
    font-size: 20px;
    font-weight: 600;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 8px;
}

.oberon-settings-hero__column h2 .dashicons {
    font-size: 24px;
    color: inherit;
}

.oberon-settings-hero__list {
    margin: 0;
    padding-left: 18px;
}

.oberon-settings-hero__list li {
    margin-bottom: 10px;
}

.oberon-settings-hero__list strong {
    display: inline-block;
    margin-bottom: 4px;
}

.oberon-settings-hero__cta {
    font-weight: 600;
    color: #1d4ed8;
}

.oberon-settings-hero__footnote {
    font-size: 12px;
    color: #475569;
}

@media screen and (max-width: 870px) {
    .oberon-settings-hero {
        flex-direction: column;
        gap: 18px;
    }

    .oberon-settings-hero__column {
        max-width: 100%;
        flex: 1 1 100%;
    }
}

.oberon-setting-full {
    padding-left: 0;
}
