:root {
    --primary: var(--oksia-brand-primary-bg, #1e3a5f);
    --accent: var(--oksia-brand-accent-bg, #2563eb);
    --accent-light: var(--oksia-brand-accent-light-bg, #e8f0fe);
    --bg-canvas: transparent;
    --bg-card: #ffffff;
    --border-color: #dbe3ec;
    --text-main: #334155;
    --text-muted: #64748b;
}

.oksia-master-settings,
.oksia-master-settings * {
    box-sizing: border-box;
}

.oksia-master-settings {
    width: 100vw;
    max-width: none;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    min-height: 70vh;
    padding: 24px 20px 40px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
        Ubuntu, sans-serif;
    color: var(--text-main);
    background: var(--bg-canvas);
}

.oksia-settings-shell {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    background: var(--bg-card);
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.oksia-settings-tabs {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 6px;
    overflow-x: auto;
    padding: 10px 12px;
    border-bottom: none;
    background: transparent;
    scrollbar-width: thin;
}

.oksia-settings-tab {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    padding: 10px 14px;
    border: none;
    border-radius: 10px;
    background: transparent;
    color: #475569;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.oksia-settings-tab:hover {
    color: var(--primary);
    background: rgba(255, 255, 255, 0.55);
}

.oksia-settings-tab.is-active {
    color: var(--accent);
    background: #ffffff;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.08);
}

.oksia-settings-tab__icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    background-color: currentColor;
    opacity: 0.85;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-size: contain;
    mask-size: contain;
}

.oksia-settings-tab__icon--grid {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Crect x='3' y='3' width='7' height='7'/%3E%3Crect x='14' y='3' width='7' height='7'/%3E%3Crect x='3' y='14' width='7' height='7'/%3E%3Crect x='14' y='14' width='7' height='7'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Crect x='3' y='3' width='7' height='7'/%3E%3Crect x='14' y='3' width='7' height='7'/%3E%3Crect x='3' y='14' width='7' height='7'/%3E%3Crect x='14' y='14' width='7' height='7'/%3E%3C/svg%3E");
}

.oksia-settings-tab__icon--users {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M17 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='9' cy='7' r='4'/%3E%3Cpath d='M23 21v-2a4 4 0 0 0-3-3.87'/%3E%3Cpath d='M16 3.13a4 4 0 0 1 0 7.75'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M17 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='9' cy='7' r='4'/%3E%3Cpath d='M23 21v-2a4 4 0 0 0-3-3.87'/%3E%3Cpath d='M16 3.13a4 4 0 0 1 0 7.75'/%3E%3C/svg%3E");
}

.oksia-settings-tab__icon--globe {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M2 12h20M12 2a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10 15.3 15.3 0 0 1-4-10 15.3 15.3 0 0 1 4-10z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M2 12h20M12 2a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10 15.3 15.3 0 0 1-4-10 15.3 15.3 0 0 1 4-10z'/%3E%3C/svg%3E");
}

.oksia-settings-tab__icon--bed {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M2 9V5a2 2 0 0 1 2-2h16v16H4a2 2 0 0 1-2-2V9z'/%3E%3Cpath d='M2 13h20'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M2 9V5a2 2 0 0 1 2-2h16v16H4a2 2 0 0 1-2-2V9z'/%3E%3Cpath d='M2 13h20'/%3E%3C/svg%3E");
}

.oksia-settings-tab__icon--bus {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M8 6v6M15 6v6M2 12h19.6M2 18h19.6a2 2 0 0 0 2-1.7L24 6H0l2 10.3A2 2 0 0 0 4 18z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M8 6v6M15 6v6M2 12h19.6M2 18h19.6a2 2 0 0 0 2-1.7L24 6H0l2 10.3A2 2 0 0 0 4 18z'/%3E%3C/svg%3E");
}

.oksia-settings-tab__icon--list {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M8 6h13M8 12h13M8 18h13M3 6h.01M3 12h.01M3 18h.01'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M8 6h13M8 12h13M8 18h13M3 6h.01M3 12h.01M3 18h.01'/%3E%3C/svg%3E");
}

.oksia-settings-tab__icon--card {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Crect x='2' y='5' width='20' height='14' rx='2'/%3E%3Cpath d='M2 10h20'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Crect x='2' y='5' width='20' height='14' rx='2'/%3E%3Cpath d='M2 10h20'/%3E%3C/svg%3E");
}

.oksia-settings-tab__icon--child {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Ccircle cx='12' cy='6' r='3'/%3E%3Cpath d='M7 20v-2a5 5 0 0 1 10 0v2'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Ccircle cx='12' cy='6' r='3'/%3E%3Cpath d='M7 20v-2a5 5 0 0 1 10 0v2'/%3E%3C/svg%3E");
}

.oksia-settings-tab__icon--passport {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Crect x='4' y='2' width='16' height='20' rx='2'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3Cpath d='M8 18h8'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Crect x='4' y='2' width='16' height='20' rx='2'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3Cpath d='M8 18h8'/%3E%3C/svg%3E");
}

.oksia-settings-tab__icon--billing {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z'/%3E%3Cpath d='M14 2v6h6M16 13H8M16 17H8M10 9H8'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z'/%3E%3Cpath d='M14 2v6h6M16 13H8M16 17H8M10 9H8'/%3E%3C/svg%3E");
}

.oksia-settings-tab__icon--utilities {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.77-3.77a6 6 0 0 1-7.94 7.94l-6.91 6.91a2.12 2.12 0 0 1-3-3l6.91-6.91a6 6 0 0 1 7.94-7.94l-3.76 3.76z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.77-3.77a6 6 0 0 1-7.94 7.94l-6.91 6.91a2.12 2.12 0 0 1-3-3l6.91-6.91a6 6 0 0 1 7.94-7.94l-3.76 3.76z'/%3E%3C/svg%3E");
}

.oksia-settings-main {
    min-width: 0;
    padding: 24px 28px 28px;
    background: #ffffff;
}

.oksia-settings-form {
    display: flex;
    flex-direction: column;
}

.oksia-settings-panel {
    display: none;
}

.oksia-settings-panel.is-active {
    display: block;
}

.oksia-settings-panel__card {
    border: none;
    background: transparent;
    padding: 0;
}

.oksia-settings-panel__head {
    margin-bottom: 22px;
}

.oksia-settings-panel__title {
    margin: 0 0 8px;
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: -0.01em;
    text-transform: none;
}

.oksia-settings-panel__hint {
    margin: 0;
    font-size: 0.88rem;
    line-height: 1.5;
    color: var(--text-muted);
}

.oksia-section-title {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 0 0 22px;
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: -0.01em;
    text-transform: none;
}

.oksia-section-title::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--border-color);
}

.oksia-settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px 14px;
}

.oksia-settings-grid--six {
    grid-template-columns: repeat(6, minmax(0, 1fr));
}

.oksia-settings-grid--two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.oksia-settings-grid--three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.oksia-settings-grid--four {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: end;
}

.oksia-field-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.oksia-field-group--full {
    grid-column: 1 / -1;
}

.oksia-field-group label {
    font-size: 0.72rem;
    font-weight: 600;
    color: #475569;
    text-transform: none;
    letter-spacing: 0;
}

.oksia-field {
    width: 100%;
    min-height: 40px;
    padding: 0 12px;
    border: 1px solid #d7e0ea;
    border-radius: 8px;
    background: #ffffff;
    color: var(--primary);
    font-size: 0.88rem;
    outline: none;
    appearance: none;
}

.oksia-field:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 12%, transparent);
}

.oksia-field--readonly {
    background: #f8fafc;
    color: #64748b;
    border-color: #e2e8f0;
    cursor: default;
}

.oksia-field--readonly:focus {
    box-shadow: none;
    border-color: #e2e8f0;
}

textarea.oksia-field {
    padding: 10px 12px;
    min-height: 110px;
    resize: vertical;
    line-height: 1.45;
}

select.oksia-field {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23475569'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 14px;
    padding-right: 34px;
}

.oksia-file-field {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 40px;
    border: 1px solid #d7e0ea;
    border-radius: 8px;
    background: #ffffff;
    overflow: hidden;
}

.oksia-file-field__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 14px;
    background: #f1f5f9;
    border-right: 1px solid #d7e0ea;
    color: #475569;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
}

.oksia-file-field__input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.oksia-settings-logo-preview {
    display: block;
    max-width: 96px;
    margin-top: 10px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 4px;
}

.oksia-market-block {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 18px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: #f8fafc;
}

.oksia-market-block__title {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--primary);
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

.oksia-settings-notice {
    padding: 14px 16px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background: #f8fafc;
    color: var(--text-main);
    font-size: 0.88rem;
}

.oksia-settings-divider {
    height: 1px;
    background: var(--border-color);
    margin: 20px 0;
}

.oksia-optional {
    font-weight: 500;
    color: #64748b;
    text-transform: none;
}

.oksia-checkbox-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.oksia-checkbox-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-main);
}

.oksia-checkbox-card input {
    margin: 0;
}

@media (max-width: 768px) {
    .oksia-checkbox-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.oksia-billing-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

.oksia-billing-summary > div {
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 14px;
    background: #f8fafc;
}

.oksia-billing-summary span {
    display: block;
    font-size: 0.72rem;
    font-weight: 600;
    color: #475569;
    margin-bottom: 6px;
}

.oksia-billing-summary strong {
    font-size: 1rem;
    color: var(--primary);
}

.oksia-billing-state--active {
    color: #16a34a;
}

.oksia-billing-state--trial {
    color: #2563eb;
}

.oksia-billing-state--grace {
    color: #d97706;
}

.oksia-billing-state--suspended {
    color: #dc2626;
}

.oksia-billing-plans {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin: 20px 0;
}

.oksia-billing-plan-card {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 18px;
    background: #fff;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.oksia-billing-plan-card.is-current {
    border-color: var(--accent);
    box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 25%, transparent);
}

.oksia-billing-plan-card__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.oksia-billing-plan-card__head h3 {
    margin: 0;
    font-size: 1.05rem;
    color: var(--primary);
}

.oksia-billing-plan-card__badge {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--accent);
    background: var(--accent-light);
    padding: 4px 8px;
    border-radius: 999px;
}

.oksia-billing-plan-card__price {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--primary);
}

.oksia-billing-plan-card__price span {
    font-size: 0.82rem;
    font-weight: 500;
    color: #64748b;
}

.oksia-billing-plan-card__users {
    margin: 0;
    color: #64748b;
    font-size: 0.88rem;
}

.oksia-billing-plan-card__gst-breakdown {
    margin: 8px 0 12px;
    color: #64748b;
    font-size: 0.82rem;
}

.oksia-billing-gst-notice {
    margin-bottom: 18px;
    padding: 12px 14px;
    border: 1px solid #fde68a;
    border-radius: 10px;
    background: #fffbeb;
    color: #92400e;
    font-size: 0.9rem;
}

.oksia-billing-subscribe-btn,
.oksia-billing-sync-btn {
    margin-top: auto;
    border: none;
    border-radius: 8px;
    padding: 10px 14px;
    background: var(--accent);
    color: #fff;
    font-weight: 600;
    cursor: pointer;
}

.oksia-billing-subscribe-btn.is-disabled,
.oksia-billing-subscribe-btn:disabled {
    background: #cbd5e1;
    cursor: not-allowed;
}

.oksia-billing-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 24px;
}

.oksia-billing-sync-btn {
    background: var(--oksia-button-bg, var(--primary));
    color: var(--oksia-button-text, #ffffff);
}

.oksia-billing-extra-hint {
    display: block;
    margin-top: 4px;
    font-size: 0.78rem;
    font-weight: 500;
    color: #64748b;
}

.oksia-billing-extra-quotes {
    margin-bottom: 24px;
    padding: 18px 20px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #f8fafc;
}

.oksia-billing-extra-quotes__controls {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.oksia-billing-extra-quotes-btn {
    background: var(--oksia-button-bg, var(--primary));
    color: var(--oksia-button-text, #ffffff);
    border: none;
    border-radius: 10px;
    padding: 10px 18px;
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
}

.oksia-billing-extra-quotes-btn:disabled {
    background: #cbd5e1;
    cursor: not-allowed;
}

.oksia-billing-cycle-toggle {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
    padding: 12px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #f8fafc;
}

.oksia-billing-cycle-toggle__label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #334155;
}

.oksia-billing-cycle-option {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    color: #334155;
    cursor: pointer;
}

.oksia-settings-actions {
    margin-top: 28px;
    padding-top: 0;
    border-top: none;
    display: flex;
    justify-content: flex-end;
}

.oksia-settings-save {
    background: var(--oksia-button-bg, var(--primary));
    color: var(--oksia-button-text, #ffffff);
    border: none;
    border-radius: 10px;
    padding: 12px 22px;
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
}

.oksia-settings-save:hover {
    filter: brightness(1.06);
}

.oksia-settings-flash {
    margin: 0 0 16px;
    padding: 12px 14px;
    border: 1px solid #86efac;
    border-radius: 10px;
    background: #ecfdf5;
    color: #166534;
}

.oksia-settings-flash.notice-error {
    border-color: #fca5a5;
    background: #fef2f2;
    color: #991b1b;
}

.oksia-team-create-form {
    margin-bottom: 24px;
}

.oksia-settings-actions--team {
    margin-top: 20px;
}

.oksia-field--compact {
    min-width: 140px;
    padding: 8px 10px;
    font-size: 0.85rem;
}

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

.oksia-team-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

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

.oksia-team-table th {
    color: var(--text-muted);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.oksia-team-inline-form {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.oksia-team-btn {
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: #ffffff;
    color: var(--primary);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
}

.oksia-team-btn:hover {
    background: var(--accent-light);
}

.oksia-team-btn--danger {
    color: #b91c1c;
    border-color: #fecaca;
}

.oksia-team-btn--danger:hover {
    background: #fef2f2;
}

.oksia-team-owner-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--accent-light);
    color: var(--accent);
    font-size: 0.78rem;
    font-weight: 700;
}

.oksia-master-settings--gate {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 50vh;
}

.oksia-settings-gate {
    width: min(100%, 420px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    background: #ffffff;
    padding: 36px 28px;
    text-align: center;
}

.oksia-settings-gate h2 {
    margin: 0 0 10px;
    color: var(--primary);
}

.oksia-settings-gate p {
    margin: 0 0 20px;
    color: var(--text-muted);
}

.oksia-settings-gate .oksia-settings-save {
    display: inline-block;
    text-decoration: none;
}

@media (max-width: 1280px) {
    .oksia-settings-grid--six {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .oksia-settings-grid--six,
    .oksia-settings-grid--two,
    .oksia-settings-grid--three,
    .oksia-settings-grid--four,
    .oksia-billing-summary {
        grid-template-columns: 1fr;
    }

    .oksia-billing-plans {
        grid-template-columns: 1fr;
    }

    .oksia-settings-tab {
        padding: 9px 12px;
        font-size: 0.76rem;
    }

    .oksia-settings-main {
        padding: 20px 16px;
    }
}
