:root {
    --osw-navy: #002147;
    --osw-navy-deep: #07192d;
    --osw-blue: #165dff;
    --osw-gold: #c8a550;
    --osw-bg: #f4f6f9;
    --osw-white: #ffffff;
    --osw-text: #172234;
    --osw-muted: #6f7b8b;
    --osw-border: #e4e8ee;
    --osw-green: #1daf73;
    --osw-shadow: 0 18px 50px rgba(23, 34, 52, 0.07);
}

.osw-chat-action-button {
    width: fit-content;
    margin-top: 12px;
}

.osw-assistant-confirmation {
    display: grid;
    gap: 8px;
    margin-top: 14px;
    padding: 14px;
    border: 1px solid rgba(180, 65, 65, .22);
    border-radius: 14px;
    background: rgba(255, 247, 247, .9);
}

.osw-assistant-confirmation > span {
    color: var(--osw-muted);
    font-size: .92rem;
    line-height: 1.45;
}

.osw-assistant-confirmation-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 4px;
}

.osw-mail-advanced {
    margin-top: 18px;
    padding: 14px 16px;
    border: 1px solid var(--osw-border);
    border-radius: 14px;
    background: rgba(245, 248, 252, .72);
}

.osw-mail-advanced summary {
    cursor: pointer;
    color: var(--osw-muted);
    font-weight: 700;
}

.osw-mail-advanced > p {
    margin: 10px 0 16px;
    color: var(--osw-muted);
}

/* OpenSmart One 3.0 — wielofirmowość, poczta i Asystent kontekstowy */
.osw-workspace-switcher {
    display: grid;
    gap: 6px;
    margin: 14px 20px 6px;
    color: rgba(255, 255, 255, .72);
    font-size: 12px;
}

.osw-workspace-switcher select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 10px;
    background: rgba(255, 255, 255, .08);
    color: #fff;
}

.osw-workspace-switcher option {
    color: #07192d;
}

.osw-mail-heading-actions,
.osw-mail-status-row,
.osw-mail-tabs,
.osw-mail-config-columns,
.osw-mail-account-cards {
    display: flex;
    gap: 12px;
    align-items: center;
}

.osw-mail-heading-actions select {
    min-width: 210px;
}

.osw-icon-button {
    width: 46px;
    height: 46px;
    border: 1px solid #d8e0ea;
    border-radius: 13px;
    background: #fff;
    color: var(--osw-navy);
    font-size: 20px;
    cursor: pointer;
}

.osw-mail-status-row {
    justify-content: space-between;
    margin: -6px 0 16px;
    color: #718096;
}

.osw-mail-tabs {
    margin-bottom: 12px;
}

.osw-mail-tabs button {
    padding: 11px 18px;
    border: 1px solid #dbe3ec;
    border-radius: 999px;
    background: #fff;
    color: #536174;
    font-weight: 700;
    cursor: pointer;
}

.osw-mail-tabs button.is-active {
    border-color: var(--osw-navy);
    background: var(--osw-navy);
    color: #fff;
}

.osw-mail-item {
    width: 100%;
    text-align: left;
    cursor: pointer;
    background: transparent;
    border-width: 0 0 1px;
}

.osw-mail-item.is-unread {
    background: #f3f8ff;
}

.osw-mail-item .osw-mail-correspondent {
    min-width: 210px;
}

.osw-mail-item .osw-mail-preview {
    flex: 1;
    min-width: 0;
}

.osw-mail-item .osw-mail-preview span {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.osw-mail-settings-card {
    width: min(1050px, calc(100vw - 40px));
}

.osw-mail-config-columns {
    align-items: stretch;
    margin-top: 18px;
}

.osw-mail-config-columns fieldset {
    flex: 1;
    display: grid;
    gap: 12px;
    min-width: 0;
    margin: 0;
    padding: 18px;
    border: 1px solid #dfe6ee;
    border-radius: 16px;
}

.osw-mail-config-columns legend {
    padding: 0 7px;
    color: var(--osw-navy);
    font-size: 15px;
    font-weight: 800;
}

.osw-mail-account-cards {
    align-items: stretch;
    flex-wrap: wrap;
    margin: 18px 0 12px;
}

.osw-mail-account-card {
    display: grid;
    gap: 3px;
    min-width: 210px;
    padding: 13px 15px;
    border: 1px solid #dfe6ee;
    border-radius: 13px;
    background: #f8fafc;
    cursor: pointer;
}

.osw-mail-account-card.is-active {
    border-color: var(--osw-gold);
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--osw-gold) 20%, transparent);
}

.osw-mail-account-card small,
.osw-mail-message-meta {
    color: #768397;
}

.osw-secret-notice {
    margin: 12px 0;
    padding: 11px 13px;
    border-radius: 12px;
    background: #fff8e5;
    color: #735b17;
    font-size: 13px;
    line-height: 1.5;
}

.osw-consent-status {
    padding: 12px 14px;
    border: 1px solid #bde8d3;
    border-radius: 12px;
    background: #effbf5;
    color: #08734a;
}

.osw-mail-message-card {
    width: min(760px, calc(100vw - 40px));
}

.osw-mail-message-body {
    min-height: 180px;
    max-height: 52vh;
    overflow: auto;
    margin-top: 20px;
    padding: 20px;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    background: #fff;
    color: #263548;
    line-height: 1.65;
}

.osw-context-assistant-launcher {
    position: fixed;
    z-index: 90;
    right: 24px;
    bottom: 22px;
    display: flex;
    gap: 9px;
    align-items: center;
    padding: 13px 18px;
    border: 0;
    border-radius: 999px;
    background: var(--osw-navy, #07192d);
    color: #fff;
    box-shadow: 0 16px 38px rgba(7, 25, 45, .24);
    font-weight: 800;
    cursor: pointer;
}

@keyframes osw-work-light {
    0%, 18% { left: -45%; opacity: 0; }
    32% { opacity: 1; }
    72%, 100% { left: 125%; opacity: 0; }
}

.osw-context-assistant {
    position: fixed;
    z-index: 1100;
    top: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    width: min(420px, 100vw);
    height: 100dvh;
    border-left: 1px solid #dce3eb;
    background: #fff;
    box-shadow: -18px 0 50px rgba(20, 34, 52, .16);
}

.osw-context-assistant[hidden] {
    display: none;
}

.osw-context-assistant header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 22px;
    border-bottom: 1px solid #e5eaf0;
}

.osw-context-assistant header p,
.osw-context-assistant header h2 {
    margin: 0;
}

.osw-context-assistant header button {
    border: 0;
    background: transparent;
    color: #5e6a79;
    font-size: 30px;
    cursor: pointer;
}

.osw-context-assistant-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow: auto;
    padding: 20px;
    background: #f5f7fa;
}

.osw-context-message {
    max-width: 90%;
    padding: 12px 14px;
    border-radius: 14px;
    line-height: 1.5;
    white-space: pre-wrap;
}

.osw-context-message.is-assistant {
    align-self: flex-start;
    border: 1px solid #dfe6ee;
    background: #fff;
    color: #263548;
}

.osw-context-message.is-user {
    align-self: flex-end;
    background: var(--osw-navy);
    color: #fff;
}

.osw-context-assistant form {
    display: grid;
    gap: 10px;
    padding: 16px;
    border-top: 1px solid #e5eaf0;
}

.osw-context-assistant textarea {
    width: 100%;
    min-height: 74px;
    padding: 12px;
    border: 1px solid #d7e0ea;
    border-radius: 13px;
    resize: vertical;
}

.osw-context-assistant form > div {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

@media (max-width: 760px) {
    .osw-context-assistant-launcher {
        right: 14px;
        bottom: calc(14px + env(safe-area-inset-bottom));
        padding: 12px 14px;
    }

    .osw-context-assistant {
        top: auto;
        bottom: 0;
        width: 100%;
        height: min(86dvh, 760px);
        border: 0;
        border-radius: 24px 24px 0 0;
    }

    .osw-mail-heading-actions,
    .osw-mail-status-row,
    .osw-mail-config-columns {
        align-items: stretch;
        flex-direction: column;
    }

    .osw-mail-heading-actions select {
        width: 100%;
        min-width: 0;
    }

    .osw-mail-heading-actions .osw-icon-button {
        width: 100%;
    }

    .osw-mail-status-row small {
        line-height: 1.5;
    }

    .osw-mail-tabs {
        overflow-x: auto;
    }

    .osw-mail-item {
        display: grid;
        grid-template-columns: 1fr auto;
        gap: 7px;
    }

    .osw-mail-item .osw-mail-preview {
        grid-column: 1 / -1;
    }

    .osw-mail-settings-card,
    .osw-mail-message-card {
        width: calc(100vw - 20px);
    }
}

/* OpenSmart One 6.13.6 — smuklejsze działania nagłówków. */
.osw-app .osw-page-heading > .osw-primary-button,
.osw-app .osw-page-heading > .osw-secondary-button,
.osw-app .osw-page-heading .osw-heading-actions > .osw-primary-button,
.osw-app .osw-page-heading .osw-heading-actions > .osw-secondary-button,
.osw-app .osw-page-heading .osw-page-heading-actions > .osw-primary-button,
.osw-app .osw-page-heading .osw-page-heading-actions > .osw-secondary-button {
    min-height: 38px;
    padding: 7px 16px;
    border-radius: 10px;
    line-height: 1.2;
}

.osw-app .osw-welcome-actions > .osw-primary-button {
    min-height: 44px;
    padding: 10px 18px;
    line-height: 1.25;
}

@media (max-width: 760px) {
    .osw-first-welcome-title img {
        width: min(230px, 64vw);
        height: 38px;
    }
}

/* OpenSmart One 6.6.0 — Fakturownia i kontrolowany obieg KSeF. */
.osw-fiscal-integration-card {
    margin-bottom: 22px;
}

.osw-fiscal-status {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 6px 12px;
    border-radius: 999px;
    background: #eef2f6;
    color: #53677e;
    font-size: 13px;
    font-weight: 700;
}

.osw-fiscal-status.is-connected {
    background: #e4f7ef;
    color: #087a53;
}

.osw-fiscal-status.is-disconnected {
    background: #fff1e4;
    color: #9a5316;
}

.osw-fiscal-connect-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
    align-items: end;
    gap: 14px;
    margin-top: 18px;
}

.osw-fiscal-connect-form .osw-form-error {
    grid-column: 1 / -1;
    margin: 0;
}

.osw-fiscal-domain-control {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
}

.osw-fiscal-domain-control input {
    border-radius: 10px 0 0 10px;
}

.osw-fiscal-domain-control small {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 0 12px;
    border: 1px solid #dbe4ee;
    border-left: 0;
    border-radius: 0 10px 10px 0;
    background: #eef3f8;
    color: #53677e;
}

.osw-fiscal-transmission {
    display: grid;
    gap: 10px;
    margin: 16px 0;
    padding: 16px;
    border: 1px solid #dbe4ee;
    border-radius: 13px;
    background: #f7f9fc;
}

.osw-fiscal-transmission.is-ksef-accepted {
    border-color: #b9e5d4;
    background: #effaf6;
}

.osw-fiscal-transmission.is-ksef-error {
    border-color: #efc5c7;
    background: #fff5f5;
}

.osw-fiscal-transmission-details {
    display: grid;
    gap: 4px;
    color: #53677e;
    font-size: 14px;
}

.osw-fiscal-transmission-details .is-error {
    color: #a12f38;
}

@media (max-width: 760px) {
    .osw-fiscal-connect-form {
        grid-template-columns: 1fr;
    }
}

/* OpenSmart One 5.1 — bezpieczne logowanie i zaufane urządzenia. */
.osw-login-separator {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 17px 0;
    color: #9aa5b3;
    font-size: 10px;
    text-transform: uppercase;
}

.osw-login-separator::before,
.osw-login-separator::after {
    flex: 1;
    height: 1px;
    background: var(--osw-border);
    content: "";
}

.osw-passkey-login {
    width: 100%;
    min-height: 46px;
    padding: 0 15px;
    color: var(--osw-navy);
    border: 1px solid #cbd7e5;
    border-radius: 10px;
    background: #fff;
    font: inherit;
    font-size: 12px;
    font-weight: 750;
    cursor: pointer;
}

.osw-passkey-login:hover {
    border-color: #91a8c3;
    background: #f8fafc;
}

.osw-passkey-login:disabled {
    cursor: wait;
    opacity: .68;
}

.osw-passkey-login-error {
    margin: 11px 0 0;
    padding: 10px 12px;
    color: #9b2e3b;
    border-radius: 9px;
    background: #fff0f2;
    font-size: 10px;
    line-height: 1.5;
}

.osw-login-security-note {
    margin: 16px 0 0;
    padding: 11px 12px;
    color: #657386;
    border: 1px solid #e4e9ef;
    border-radius: 10px;
    background: #f8fafc;
    font-size: 10px;
    line-height: 1.55;
}

.osw-security-tip {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    margin: -2px 0 17px;
    padding: 15px 52px 15px 17px;
    color: #173f35;
    border: 1px solid #cce9df;
    border-radius: 15px;
    background: linear-gradient(135deg, #f4fcf8, #edf8f4);
    box-shadow: 0 10px 30px rgba(23, 83, 64, .07);
}

.osw-security-tip[hidden] {
    display: none;
}

.osw-security-tip-icon {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    color: #087b59;
    border-radius: 50%;
    background: #dff5ec;
    font-weight: 900;
}

.osw-security-tip strong {
    display: block;
    margin-bottom: 3px;
    color: #153f33;
    font-size: 13px;
}

.osw-security-tip p {
    margin: 0;
    color: #527267;
    font-size: 10px;
    line-height: 1.55;
}

.osw-security-tip .osw-primary-button {
    min-height: 39px;
    white-space: nowrap;
}

.osw-security-tip-close {
    position: absolute;
    top: 10px;
    right: 11px;
    width: 30px;
    height: 30px;
    color: #72847e;
    border: 0;
    border-radius: 50%;
    background: transparent;
    font-size: 19px;
    cursor: pointer;
}

.osw-security-card {
    border-left: 3px solid var(--osw-gold);
}

.osw-security-card-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

.osw-security-card-heading h2 {
    margin: 7px 0;
}

.osw-passkey-list {
    display: grid;
    gap: 9px;
    margin-top: 19px;
}

.osw-passkey-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    min-height: 58px;
    padding: 10px 12px 10px 15px;
    border: 1px solid var(--osw-border);
    border-radius: 12px;
    background: color-mix(in srgb, var(--osw-white) 82%, var(--osw-bg));
}

.osw-passkey-row > div {
    display: grid;
    gap: 4px;
}

.osw-passkey-row strong {
    color: var(--osw-navy);
    font-size: 12px;
}

.osw-passkey-row small,
.osw-passkey-empty,
.osw-passkey-state {
    color: var(--osw-muted);
    font-size: 10px;
}

.osw-passkey-empty {
    margin: 0;
    padding: 14px;
    border: 1px dashed var(--osw-border);
    border-radius: 11px;
}

.osw-passkey-state {
    min-height: 16px;
    margin: 9px 0 0;
}

.osw-password-safety {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 15px;
    padding: 12px 14px;
    color: #68531b;
    border-radius: 11px;
    background: #fff8e6;
    font-size: 10px;
    line-height: 1.55;
}

.osw-password-safety strong {
    color: #806417;
}

.osw-connection-need-card {
    display: grid;
    grid-template-columns: minmax(230px, .8fr) minmax(300px, 1.2fr);
    gap: 28px;
    margin-top: 18px;
    border-left: 3px solid var(--osw-gold);
}

.osw-connection-need-card h2 {
    margin: 7px 0 9px;
}

.osw-connection-need-card > div:first-child > p:last-child {
    color: var(--osw-muted);
    font-size: 11px;
    line-height: 1.65;
}

.osw-connection-need-form {
    display: grid;
    gap: 12px;
}

.osw-connection-need-form label {
    display: grid;
    gap: 6px;
}

.osw-connection-need-form label > span {
    color: #4f5d6f;
    font-size: 11px;
    font-weight: 750;
}

.osw-connection-need-form input,
.osw-connection-need-form textarea {
    width: 100%;
    padding: 11px 12px;
    color: var(--osw-text);
    border: 1px solid var(--osw-border);
    border-radius: 10px;
    background: color-mix(in srgb, var(--osw-white) 92%, var(--osw-bg));
    font: inherit;
    font-size: 12px;
}

.osw-connection-need-form textarea {
    min-height: 88px;
    resize: vertical;
}

.osw-connection-need-form .osw-primary-button {
    justify-self: end;
}

.osw-connection-needs {
    grid-column: 1 / -1;
    display: grid;
    gap: 9px;
}

.osw-connection-needs:empty {
    display: none;
}

.osw-connection-needs-heading {
    margin-top: 5px;
}

.osw-connection-needs-heading h3 {
    margin: 5px 0 2px;
}

.osw-connection-need-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 13px 14px;
    border: 1px solid var(--osw-border);
    border-radius: 12px;
    background: color-mix(in srgb, var(--osw-white) 84%, var(--osw-bg));
}

.osw-connection-need-row > div {
    display: grid;
    gap: 4px;
}

.osw-connection-need-row strong {
    color: var(--osw-navy);
    font-size: 12px;
}

.osw-connection-need-row p {
    margin: 0;
    color: var(--osw-muted);
    font-size: 10px;
}

.osw-connection-need-row small {
    color: #8a6a19;
    font-size: 9px;
    font-weight: 750;
}

.osw-app[data-osw-theme="modern_tech"] .osw-passkey-row {
    border-color: rgba(126, 164, 198, .25);
    background: rgba(7, 26, 43, .84);
}

.osw-app[data-osw-theme="modern_tech"] .osw-passkey-row strong {
    color: #eef7ff;
}

.osw-app[data-osw-theme="modern_tech"] .osw-password-safety {
    color: #e0cd96;
    background: rgba(113, 85, 22, .28);
}

@media (max-width: 760px) {
    .osw-security-tip {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .osw-security-tip .osw-primary-button {
        grid-column: 1 / -1;
        width: 100%;
    }

    .osw-security-card-heading {
        align-items: stretch;
        flex-direction: column;
    }

    .osw-security-card-heading .osw-primary-button {
        width: 100%;
    }

    .osw-passkey-row {
        align-items: stretch;
        flex-direction: column;
    }

    .osw-connection-need-card {
        grid-template-columns: 1fr;
    }

    .osw-connection-need-form .osw-primary-button {
        width: 100%;
    }

    .osw-connection-needs {
        grid-column: 1;
    }

    .osw-connection-need-row {
        align-items: stretch;
        flex-direction: column;
    }
}

.osw-inline-invite,
.osw-team-member {
    display: flex;
    gap: 10px;
    align-items: center;
}

.osw-inline-invite {
    margin: 18px 0;
}

.osw-inline-invite input {
    flex: 1;
}

.osw-team-list {
    display: grid;
    gap: 8px;
}

.osw-team-member {
    justify-content: space-between;
    padding: 12px 0;
    border-top: 1px solid #e4e9ef;
}

.osw-team-member div {
    display: grid;
    gap: 2px;
}

.osw-team-member small {
    color: #748195;
}

@media (max-width: 760px) {
    .osw-inline-invite {
        align-items: stretch;
        flex-direction: column;
    }
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
}

body.osw-app-page,
body.osw-login-page {
    color: var(--osw-text);
    background: var(--osw-bg);
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased;
}

.osw-app {
    display: flex;
    min-height: 100vh;
    background: var(--osw-bg);
}

.osw-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 20;
    display: flex;
    width: 252px;
    flex-direction: column;
    padding: 28px 22px 22px;
    color: #fff;
    background: linear-gradient(175deg, #082846 0%, #061a30 58%, #071425 100%);
}

.osw-logo,
.osw-login-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.osw-logo strong,
.osw-logo span {
    display: block;
}

.osw-logo strong {
    font-size: 17px;
    letter-spacing: -0.3px;
}

.osw-logo span {
    margin-top: 1px;
    color: #cbd5df;
    font-size: 12px;
    letter-spacing: 2.5px;
    text-transform: uppercase;
}

.osw-brand-mark {
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    color: var(--osw-navy-deep);
    border-radius: 12px;
    background: linear-gradient(145deg, #f4e4ae, var(--osw-gold));
    box-shadow: 0 7px 22px rgba(200, 165, 80, 0.25);
    font-weight: 800;
}

.osw-nav {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 7px;
    margin-top: 46px;
}

.osw-nav a {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 12px 14px;
    color: #aebbc8;
    border-radius: 11px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: 160ms ease;
}

.osw-nav a:hover,
.osw-nav a.is-active {
    color: #fff;
    background: rgba(255, 255, 255, 0.09);
}

.osw-nav a.is-active {
    box-shadow: inset 3px 0 0 var(--osw-gold);
}

.osw-nav a > span:first-child {
    width: 20px;
    font-size: 19px;
    text-align: center;
}

.osw-sidebar-footer {
    display: flex;
    align-items: center;
    gap: 11px;
    padding-top: 19px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.osw-install-app {
    display: flex;
    min-height: 42px;
    align-items: center;
    gap: 10px;
    margin: 0 0 14px;
    padding: 0 13px;
    color: #e7edf4;
    border: 1px solid rgba(200, 165, 80, 0.32);
    border-radius: 11px;
    background: rgba(200, 165, 80, 0.1);
    font: inherit;
    font-size: 11px;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
}

.osw-install-app span {
    display: grid;
    width: 23px;
    height: 23px;
    place-items: center;
    color: var(--osw-navy-deep);
    border-radius: 7px;
    background: var(--osw-gold);
    font-size: 14px;
}

.osw-user-avatar {
    display: grid;
    width: 39px;
    height: 39px;
    place-items: center;
    flex: 0 0 39px;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.09);
    font-weight: 700;
}

.osw-sidebar-footer strong,
.osw-sidebar-footer a {
    display: block;
}

.osw-sidebar-footer strong {
    max-width: 145px;
    overflow: hidden;
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.osw-sidebar-footer a {
    margin-top: 3px;
    color: #9fadb9;
    font-size: 11px;
    text-decoration: none;
}

.osw-main {
    width: calc(100% - 252px);
    min-height: 100vh;
    margin-left: 252px;
    background: var(--osw-bg);
}

.osw-topbar {
    display: flex;
    height: 70px;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    border-bottom: 1px solid var(--osw-border);
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(18px);
}

.osw-date {
    color: var(--osw-muted);
    font-size: 13px;
    text-transform: capitalize;
}

.osw-system-status {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #526071;
    font-size: 12px;
    font-weight: 600;
}

.osw-system-status span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--osw-green);
    box-shadow: 0 0 0 4px rgba(29, 175, 115, 0.11);
}

.osw-menu-toggle {
    display: none;
}

.osw-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 42px 42px 60px;
}

.osw-welcome {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
}

.osw-eyebrow {
    margin: 0 0 8px;
    color: var(--osw-gold);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.7px;
    text-transform: uppercase;
}

.osw-welcome h1 {
    margin: 0;
    color: var(--osw-navy);
    font-size: clamp(28px, 3vw, 40px);
    letter-spacing: -1.5px;
}

.osw-welcome > div > p:last-child {
    margin: 9px 0 0;
    color: var(--osw-muted);
    font-size: 15px;
}

.osw-primary-button {
    padding: 13px 20px;
    color: #fff;
    border: 0;
    border-radius: 11px;
    background: var(--osw-navy);
    box-shadow: 0 10px 25px rgba(0, 33, 71, 0.16);
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.osw-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-top: 34px;
}

.osw-metrics article,
.osw-card {
    border: 1px solid rgba(225, 230, 237, 0.9);
    background: var(--osw-white);
    box-shadow: var(--osw-shadow);
}

.osw-metrics article {
    padding: 20px 21px;
    border-radius: 15px;
}

.osw-metrics span,
.osw-metrics small {
    display: block;
}

.osw-metrics span {
    color: var(--osw-muted);
    font-size: 12px;
    font-weight: 600;
}

.osw-metrics strong {
    display: block;
    margin: 8px 0 6px;
    color: var(--osw-navy);
    font-size: 30px;
    line-height: 1;
}

.osw-metrics small {
    color: #9aa4b1;
    font-size: 10px;
}

.osw-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(310px, 0.75fr);
    gap: 18px;
    margin-top: 18px;
}

.osw-card {
    padding: 25px;
    border-radius: 17px;
}

.osw-card-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 15px;
}

.osw-card h2 {
    margin: 0;
    color: var(--osw-navy);
    font-size: 19px;
    letter-spacing: -0.5px;
}

.osw-badge {
    padding: 6px 9px;
    color: #466078;
    border-radius: 20px;
    background: #eff3f7;
    font-size: 10px;
    font-weight: 700;
}

.osw-empty-state {
    display: flex;
    min-height: 230px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
}

.osw-empty-icon {
    display: grid;
    width: 49px;
    height: 49px;
    place-items: center;
    color: var(--osw-green);
    border-radius: 50%;
    background: rgba(29, 175, 115, 0.1);
    font-size: 20px;
    font-weight: 800;
}

.osw-empty-state h3 {
    margin: 15px 0 7px;
    color: var(--osw-navy);
    font-size: 15px;
}

.osw-empty-state p {
    max-width: 420px;
    margin: 0;
    color: var(--osw-muted);
    font-size: 12px;
    line-height: 1.65;
}

.osw-command-list {
    display: grid;
    gap: 8px;
    margin-top: 22px;
}

.osw-command-list button {
    padding: 11px 13px;
    color: #4f5c6d;
    border: 1px solid var(--osw-border);
    border-radius: 10px;
    background: #fafbfd;
    font: inherit;
    font-size: 12px;
    text-align: left;
    cursor: pointer;
}

.osw-assistant-input {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 18px;
    padding: 8px 8px 8px 14px;
    color: #9aa4b1;
    border: 1px solid var(--osw-border);
    border-radius: 12px;
    font-size: 12px;
}

.osw-assistant-input button {
    width: 32px;
    height: 32px;
    color: #fff;
    border: 0;
    border-radius: 9px;
    background: var(--osw-navy);
    cursor: pointer;
}

.osw-login-page {
    display: grid;
    min-height: 100vh;
    place-items: center;
    padding: 28px;
    background:
        radial-gradient(circle at 15% 12%, rgba(200, 165, 80, 0.14), transparent 30%),
        radial-gradient(circle at 90% 82%, rgba(22, 93, 255, 0.11), transparent 31%),
        #f4f6f9;
}

.osw-login-shell {
    width: min(100%, 430px);
}

.osw-login-brand {
    justify-content: center;
    margin-bottom: 24px;
    color: var(--osw-navy);
    font-size: 17px;
    font-weight: 800;
}

.osw-login-card {
    padding: 36px;
    border: 1px solid rgba(225, 230, 237, 0.9);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 28px 80px rgba(0, 33, 71, 0.1);
}

.osw-login-card h1 {
    margin: 0;
    color: var(--osw-navy);
    font-size: 29px;
    letter-spacing: -1px;
}

.osw-login-intro {
    margin: 10px 0 25px;
    color: var(--osw-muted);
    font-size: 13px;
    line-height: 1.6;
}

.osw-login-card label {
    display: block;
    margin-bottom: 7px;
    color: #425065;
    font-size: 12px;
    font-weight: 700;
}

.osw-login-card .login-username,
.osw-login-card .login-password {
    margin: 0 0 17px;
}

.osw-login-card input[type="text"],
.osw-login-card input[type="password"] {
    width: 100%;
    height: 46px;
    padding: 0 13px;
    border: 1px solid var(--osw-border);
    border-radius: 10px;
    background: #fbfcfd;
    font: inherit;
    outline: none;
}

.osw-login-card input[type="text"]:focus,
.osw-login-card input[type="password"]:focus {
    border-color: #8aa9ce;
    box-shadow: 0 0 0 3px rgba(0, 33, 71, 0.06);
}

.osw-login-card .login-remember {
    margin: 2px 0 18px;
}

.osw-login-card .login-remember label {
    display: flex;
    align-items: center;
    gap: 7px;
    font-weight: 500;
}

.osw-login-card .login-submit {
    margin: 0;
}

.osw-login-card .button-primary {
    width: 100%;
    height: 46px;
    color: #fff;
    border: 0;
    border-radius: 10px;
    background: var(--osw-navy);
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.osw-forgot-link {
    display: block;
    margin-top: 17px;
    color: #5d6b7c;
    font-size: 11px;
    text-align: center;
    text-decoration: none;
}

.osw-login-footer {
    margin: 21px 0 0;
    color: #98a2af;
    font-size: 10px;
    letter-spacing: 1px;
    text-align: center;
    text-transform: uppercase;
}

@media (max-width: 1000px) {
    .osw-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .osw-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .osw-sidebar {
        width: 236px;
        transform: translateX(-100%);
        transition: transform 180ms ease;
    }

    .osw-app.is-menu-open .osw-sidebar {
        transform: translateX(0);
    }

    .osw-main {
        width: 100%;
        margin-left: 0;
    }

    .osw-menu-toggle {
        display: block;
        padding: 0;
        color: var(--osw-navy);
        border: 0;
        background: transparent;
        font-size: 20px;
    }

    .osw-topbar {
        padding: 0 20px;
    }

    .osw-content {
        padding: 28px 20px 45px;
    }

    .osw-welcome {
        align-items: flex-start;
        flex-direction: column;
    }

    .osw-primary-button {
        width: 100%;
    }
}

/* OpenSmart One 2.0 — czytelność, moduły i pełny układ mobilny */

body.osw-app-page {
    overflow-x: hidden;
    font-size: 14px;
}

body.osw-app-page #wpadminbar {
    display: none !important;
}

.osw-mobile-bar,
.osw-mobile-backdrop {
    display: none;
}

.osw-content {
    padding-top: 32px;
}

.osw-nav {
    min-height: 0;
    margin-top: 30px;
    overflow-y: auto;
    scrollbar-width: thin;
}

.osw-nav a {
    flex: 0 0 auto;
    font-size: 13px;
}

.osw-nav a > span[data-osw-assistant-name] {
    width: auto;
    min-width: 0;
    overflow: hidden;
    font-size: inherit;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.osw-welcome {
    align-items: center;
}

.osw-welcome-actions {
    display: flex;
    align-items: flex-end;
    flex-direction: column;
    gap: 12px;
}

.osw-office-meta {
    display: flex;
    align-items: center;
    gap: 18px;
}

.osw-date {
    color: #5f6d7e;
    font-size: 12px;
    text-transform: capitalize;
}

.osw-system-status.is-working span,
.osw-mobile-status.is-working span {
    background: var(--osw-gold);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--osw-gold) 16%, transparent);
}

.osw-metrics span,
.osw-contact-summary span,
.osw-sales-summary span,
.osw-module-summary span {
    color: #5c6979;
    font-size: 13px;
}

.osw-metrics small,
.osw-contact-summary article small,
.osw-theme-option small,
.osw-switch-row > span small {
    color: #758293;
    font-size: 11px;
}

.osw-companies-table td,
.osw-analysis-block p,
.osw-detail-item dd,
.osw-dossier-message p,
.osw-page-heading > div > p:last-child,
.osw-coming-soon > p {
    color: #4f5d6e;
    font-size: 13px;
}

.osw-company-domain,
.osw-detail-item dt,
.osw-companies-table th,
.osw-status-pill,
.osw-table-action {
    font-size: 11px;
}

.osw-status-pill {
    padding: 6px 10px;
}

.osw-two-column {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-top: 24px;
}

.osw-module-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 26px;
}

.osw-module-summary article {
    padding: 19px 20px;
    border: 1px solid rgba(225, 230, 237, 0.9);
    border-radius: 14px;
    background: var(--osw-white);
    box-shadow: var(--osw-shadow);
}

.osw-module-summary span,
.osw-module-summary strong {
    display: block;
}

.osw-module-summary strong {
    margin-top: 8px;
    color: var(--osw-navy);
    font-size: 26px;
}

.osw-module-summary strong.is-text {
    overflow: hidden;
    font-size: 15px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.osw-integration-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 24px;
}

.osw-integration-strip article {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 15px 16px;
    border: 1px solid var(--osw-border);
    border-radius: 13px;
    background: color-mix(in srgb, var(--osw-white) 92%, transparent);
}

.osw-integration-strip strong,
.osw-integration-strip small {
    display: block;
}

.osw-integration-strip strong {
    color: var(--osw-navy);
    font-size: 12px;
}

.osw-integration-strip small {
    margin-top: 3px;
    color: #6d7988;
    font-size: 10px;
    line-height: 1.45;
}

.osw-integration-dot {
    width: 10px;
    height: 10px;
    flex: 0 0 10px;
    border-radius: 50%;
}

.osw-integration-dot.is-ready {
    background: var(--osw-green);
    box-shadow: 0 0 0 4px rgba(29, 175, 115, 0.11);
}

.osw-integration-dot.is-pending {
    background: var(--osw-gold);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--osw-gold) 15%, transparent);
}

.osw-marketing-creator,
.osw-calendar-creator {
    margin-top: 18px;
    border-color: color-mix(in srgb, var(--osw-gold) 40%, var(--osw-border));
}

.osw-marketing-creator form,
.osw-calendar-creator form,
.osw-two-column form {
    margin-top: 22px;
}

.osw-plain-button {
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    padding: 0;
    color: #5e6b7c;
    border: 0;
    border-radius: 50%;
    background: #f0f3f6;
    font: inherit;
    font-size: 21px;
    cursor: pointer;
}

.osw-platform-fieldset {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 15px;
    border: 1px solid var(--osw-border);
    border-radius: 11px;
}

.osw-platform-fieldset legend {
    padding: 0 6px;
    color: #4a5869;
    font-size: 12px;
    font-weight: 700;
}

.osw-platform-fieldset label,
.osw-check-row {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #4f5d6e;
    font-size: 12px;
    cursor: pointer;
}

.osw-platform-fieldset input,
.osw-check-row input {
    width: 17px;
    height: 17px;
    accent-color: var(--osw-navy);
}

.osw-inline-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}

.osw-campaign-list,
.osw-calendar-list {
    display: grid;
    gap: 15px;
    margin-top: 18px;
}

.osw-campaign-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

.osw-campaign-heading h2 {
    margin-top: 10px;
}

.osw-campaign-heading small {
    display: block;
    margin-top: 6px;
    color: #667486;
    font-size: 11px;
}

.osw-campaign-content {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 22px;
}

.osw-campaign-block {
    padding: 16px;
    border: 1px solid #e7ebf0;
    border-radius: 12px;
    background: #fafbfd;
}

.osw-campaign-block h3 {
    margin: 0 0 8px;
    color: var(--osw-navy);
    font-size: 12px;
}

.osw-campaign-block p {
    margin: 0;
    color: #526071;
    font-size: 12px;
    line-height: 1.65;
    white-space: pre-line;
}

.osw-campaign-status-ready {
    color: #765604;
    background: #fff3cf;
}

.osw-campaign-status-approved {
    color: #14734d;
    background: #e2f6ed;
}

.osw-legal-note {
    margin: 15px 0 0;
    padding: 11px 13px;
    color: #735a1b;
    border-radius: 10px;
    background: #fff8e6;
    font-size: 11px;
}

.osw-connection-state,
.osw-settings-state {
    display: inline-flex;
    align-items: center;
    padding: 8px 11px;
    color: #6e5a25;
    border-radius: 20px;
    background: #fff4d8;
    font-size: 11px;
    font-weight: 700;
}

.osw-connection-state.is-ready,
.osw-settings-state.is-ready {
    color: #14734d;
    background: #e2f6ed;
}

.osw-compact-form {
    gap: 12px;
}

.osw-module-list-card {
    margin-top: 18px;
}

.osw-mail-list {
    margin-top: 18px;
}

.osw-mail-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid #edf0f4;
}

.osw-mail-item:last-child {
    border-bottom: 0;
}

.osw-mail-item strong,
.osw-mail-item span {
    display: block;
}

.osw-mail-item strong {
    color: var(--osw-navy);
    font-size: 13px;
}

.osw-mail-item div > span,
.osw-mail-item time {
    margin-top: 4px;
    color: #718091;
    font-size: 11px;
}

.osw-mail-status-sent {
    color: #14734d;
    background: #e2f6ed;
}

.osw-mail-status-failed {
    color: #9b3131;
    background: #fde9e9;
}

.osw-module-empty-text {
    margin: 20px 0 0;
    color: #6d7988;
    font-size: 13px;
}

.osw-calendar-event {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
    padding: 19px 21px;
}

.osw-calendar-date {
    display: grid;
    min-height: 58px;
    place-items: center;
    align-content: center;
    border-radius: 13px;
    background: color-mix(in srgb, var(--osw-gold) 17%, white);
}

.osw-calendar-date strong,
.osw-calendar-date span {
    display: block;
    color: var(--osw-navy);
    text-align: center;
}

.osw-calendar-date strong {
    font-size: 24px;
    line-height: 1;
}

.osw-calendar-date span {
    margin-top: 4px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
}

.osw-calendar-event h2 {
    font-size: 16px;
}

.osw-calendar-event p {
    margin: 6px 0 0;
    color: #596779;
    font-size: 12px;
}

.osw-calendar-event small {
    display: block;
    margin-top: 7px;
    color: #6b7889;
    font-size: 11px;
}

.osw-calendar-link {
    display: inline-flex;
    margin-top: 9px;
    color: var(--osw-navy);
    font-size: 11px;
    font-weight: 750;
    text-decoration: none;
}

.osw-calendar-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.osw-color-control input[type="color"] {
    width: 52px;
}

.osw-assistant-view:not([hidden]) {
    display: flex;
    height: 100dvh;
    max-width: none;
    flex-direction: column;
    overflow: hidden;
    padding-top: 24px;
    padding-bottom: 24px;
}

.osw-assistant-view .osw-page-heading {
    flex: 0 0 auto;
}

.osw-assistant-workspace {
    display: flex;
    min-height: 0;
    flex: 1 1 auto;
    flex-direction: column;
}

.osw-assistant-workspace .osw-chat-messages {
    min-height: 0;
    max-height: none;
    flex: 1 1 auto;
    overflow-y: auto;
}

.osw-assistant-workspace .osw-chat-quick-actions,
.osw-assistant-workspace .osw-chat-form,
.osw-assistant-workspace .osw-ai-voice-note,
.osw-assistant-workspace .osw-form-error {
    flex: 0 0 auto;
}

@media (max-width: 1100px) {
    .osw-two-column {
        grid-template-columns: 1fr;
    }

    .osw-integration-strip {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    html,
    body.osw-app-page {
        width: 100%;
        min-height: 100dvh;
        margin: 0 !important;
        overflow-x: hidden;
    }

    .osw-app {
        width: 100%;
        min-height: 100dvh;
    }

    .osw-main {
        min-width: 0;
        min-height: 100dvh;
    }

    .osw-mobile-bar {
        position: sticky;
        top: 0;
        z-index: 35;
        display: flex;
        min-height: calc(58px + env(safe-area-inset-top));
        align-items: center;
        justify-content: space-between;
        padding: env(safe-area-inset-top) 16px 0;
        border-bottom: 1px solid var(--osw-border);
        background: rgba(255, 255, 255, 0.94);
        backdrop-filter: blur(18px);
    }

    .osw-mobile-bar strong {
        color: var(--osw-navy);
        font-size: 14px;
    }

    .osw-mobile-status {
        display: grid;
        width: 38px;
        height: 38px;
        place-items: center;
    }

    .osw-mobile-status span {
        width: 9px;
        height: 9px;
        border-radius: 50%;
        background: var(--osw-green);
        box-shadow: 0 0 0 4px rgba(29, 175, 115, 0.11);
    }

    .osw-menu-toggle {
        display: grid;
        width: 42px;
        height: 42px;
        place-items: center;
        margin: 0;
        font-size: 22px;
    }

    .osw-sidebar {
        z-index: 60;
        width: min(84vw, 300px);
        padding-right: 18px;
        padding-left: 18px;
    }

    .osw-app.is-menu-open .osw-mobile-backdrop {
        position: fixed;
        inset: 0;
        z-index: 55;
        display: block;
        width: 100%;
        height: 100%;
        padding: 0;
        border: 0;
        background: rgba(2, 15, 29, 0.5);
        backdrop-filter: blur(3px);
    }

    .osw-logo {
        padding: 0 8px;
    }

    .osw-nav {
        gap: 4px;
        margin-top: 25px;
    }

    .osw-nav a {
        min-height: 46px;
        font-size: 14px;
    }

    .osw-content {
        width: 100%;
        max-width: none;
        padding-top: 22px;
        padding-right: max(16px, env(safe-area-inset-right));
        padding-bottom: max(36px, env(safe-area-inset-bottom));
        padding-left: max(16px, env(safe-area-inset-left));
    }

    .osw-welcome {
        align-items: stretch;
    }

    .osw-welcome-actions {
        align-items: stretch;
        width: 100%;
    }

    .osw-office-meta {
        justify-content: space-between;
    }

    .osw-page-heading h1,
    .osw-welcome h1,
    .osw-dossier-heading h1 {
        font-size: 30px;
        letter-spacing: -1px;
    }

    .osw-metrics,
    .osw-module-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .osw-module-summary article:last-child:nth-child(odd) {
        grid-column: 1 / -1;
    }

    .osw-card {
        border-radius: 15px;
    }

    .osw-table-wrap {
        overflow: visible;
    }

    .osw-companies-table,
    .osw-companies-table tbody,
    .osw-companies-table tr,
    .osw-companies-table td {
        display: block;
        width: 100%;
        min-width: 0;
    }

    .osw-companies-table thead {
        display: none;
    }

    .osw-companies-table tbody {
        display: grid;
        gap: 12px;
        padding: 13px;
        background: var(--osw-bg);
    }

    .osw-companies-table tr {
        padding: 14px;
        border: 1px solid var(--osw-border);
        border-radius: 13px;
        background: var(--osw-white);
        box-shadow: 0 9px 24px rgba(23, 34, 52, 0.05);
    }

    .osw-companies-table td {
        display: grid;
        grid-template-columns: minmax(86px, 0.42fr) minmax(0, 1fr);
        align-items: start;
        gap: 10px;
        padding: 7px 0;
        border: 0;
        font-size: 13px;
    }

    .osw-companies-table td::before {
        color: #7b8795;
        font-size: 10px;
        font-weight: 750;
        letter-spacing: 0.3px;
        text-transform: uppercase;
    }

    .osw-companies-table:not(.osw-sales-table) td:nth-child(1)::before { content: "Firma"; }
    .osw-companies-table:not(.osw-sales-table) td:nth-child(2)::before { content: "Branża"; }
    .osw-companies-table:not(.osw-sales-table) td:nth-child(3)::before { content: "Lokalizacja"; }
    .osw-companies-table:not(.osw-sales-table) td:nth-child(4)::before { content: "Potencjał"; }
    .osw-companies-table:not(.osw-sales-table) td:nth-child(5)::before { content: "Status"; }
    .osw-companies-table:not(.osw-sales-table) td:nth-child(6)::before { content: "Dodano"; }
    .osw-companies-table:not(.osw-sales-table) td:nth-child(7)::before { content: "Działanie"; }

    .osw-sales-table td:nth-child(1)::before { content: "Firma"; }
    .osw-sales-table td:nth-child(2)::before { content: "Etap"; }
    .osw-sales-table td:nth-child(3)::before { content: "Potencjał"; }
    .osw-sales-table td:nth-child(4)::before { content: "Następne działanie"; }
    .osw-sales-table td:nth-child(5)::before { content: "Termin"; }
    .osw-sales-table td:nth-child(6)::before { content: "Działanie"; }

    .osw-action-cell {
        display: grid !important;
    }

    .osw-action-cell .osw-table-action {
        width: 100%;
        min-height: 40px;
    }

    .osw-campaign-heading,
    .osw-mail-item,
    .osw-calendar-event {
        align-items: stretch;
        grid-template-columns: 1fr;
        flex-direction: column;
    }

    .osw-campaign-heading {
        display: flex;
    }

    .osw-campaign-heading .osw-primary-button {
        width: 100%;
    }

    .osw-campaign-content {
        grid-template-columns: 1fr;
    }

    .osw-calendar-event {
        display: grid;
    }

    .osw-calendar-date {
        width: 64px;
    }

    .osw-calendar-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .osw-calendar-actions .osw-secondary-button {
        width: 100%;
    }

    .osw-mail-item {
        display: grid;
        gap: 8px;
    }

    .osw-platform-fieldset {
        align-items: flex-start;
        flex-direction: column;
    }

    .osw-inline-actions {
        align-items: stretch;
        flex-direction: column-reverse;
    }

    .osw-inline-actions .osw-primary-button,
    .osw-inline-actions .osw-secondary-button {
        width: 100%;
        min-height: 46px;
    }

    .osw-assistant-view:not([hidden]) {
        height: calc(100dvh - 58px - env(safe-area-inset-top));
        padding-top: 14px;
        padding-bottom: max(10px, env(safe-area-inset-bottom));
    }

    .osw-assistant-view .osw-page-heading {
        gap: 8px;
    }

    .osw-assistant-view .osw-page-heading > div > p:last-child,
    .osw-assistant-view .osw-eyebrow,
    .osw-assistant-view .osw-assistant-ready,
    .osw-assistant-view .osw-ai-voice-note {
        display: none;
    }

    .osw-assistant-view .osw-page-heading h1 {
        font-size: 25px;
    }

    .osw-assistant-heading-tools {
        position: absolute;
        top: calc(69px + env(safe-area-inset-top));
        right: max(16px, env(safe-area-inset-right));
        width: auto;
    }

    .osw-voice-toggle {
        min-height: 36px;
        padding: 0 11px;
    }

    .osw-voice-toggle span:last-child {
        display: none;
    }

    .osw-assistant-workspace {
        margin-top: 10px;
        padding: 0;
        overflow: hidden;
    }

    .osw-assistant-workspace .osw-chat-messages {
        padding: 15px 12px;
    }

    .osw-chat-quick-actions {
        padding: 9px 11px;
        overflow-x: auto;
        flex-wrap: nowrap;
    }

    .osw-chat-quick-actions button {
        flex: 0 0 auto;
        white-space: nowrap;
    }

    .osw-chat-form {
        gap: 9px;
        padding: 10px;
        border-top: 1px solid var(--osw-border);
        background: var(--osw-white);
    }

    .osw-chat-form textarea {
        min-height: 54px;
        max-height: 110px;
    }

    .osw-chat-actions button {
        min-height: 44px;
    }

    .osw-settings-grid,
    .osw-form-grid {
        grid-template-columns: 1fr;
    }

    .osw-color-control {
        width: 100%;
    }
}

@media (max-width: 420px) {
    .osw-metrics,
    .osw-module-summary {
        grid-template-columns: 1fr;
    }

    .osw-module-summary article:last-child:nth-child(odd) {
        grid-column: auto;
    }

    .osw-metrics article {
        min-height: 108px;
    }
}

@media (max-width: 520px) {
    .osw-metrics {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .osw-metrics article {
        padding: 17px 15px;
    }

    .osw-metrics strong {
        font-size: 25px;
    }

    .osw-card {
        padding: 20px;
    }

    .osw-login-page {
        padding: 16px;
    }

    .osw-login-card {
        padding: 27px 22px;
    }
}

/* OpenSmart One 5.0 — Integracje, Rozwój firmy i Pomoc Platinum */
.osw-nav .osw-nav-platinum {
    position: relative;
    overflow: hidden;
}

.osw-nav .osw-nav-platinum small {
    margin-left: auto;
    padding: 3px 7px;
    border: 1px solid color-mix(in srgb, var(--osw-gold) 56%, transparent);
    border-radius: 999px;
    color: var(--osw-gold);
    font-size: 8px;
    font-weight: 800;
    letter-spacing: .12em;
}

.osw-nav .osw-nav-platinum.is-active small {
    border-color: color-mix(in srgb, var(--osw-gold) 78%, transparent);
    background: color-mix(in srgb, var(--osw-gold) 13%, transparent);
}

.osw-platinum-heading {
    align-items: flex-end;
}

.osw-platinum-heading .osw-primary-button {
    min-width: 230px;
}

.osw-platinum-access {
    margin-bottom: 18px;
    padding: 15px 18px;
    border: 1px solid #ead9a5;
    border-radius: 15px;
    background: #fff9e9;
    color: #6c571b;
    font-weight: 700;
}

.osw-platinum-loading,
.osw-platinum-empty {
    display: grid;
    justify-items: center;
    gap: 14px;
    padding: clamp(46px, 9vw, 104px) 24px;
    text-align: center;
}

.osw-platinum-loading {
    color: var(--osw-text-soft);
}

.osw-platinum-loading > span {
    width: 42px;
    height: 42px;
    border: 3px solid var(--osw-line);
    border-top-color: var(--osw-gold);
    border-radius: 50%;
    animation: osw-spin .8s linear infinite;
}

.osw-platinum-empty > span {
    display: grid;
    place-items: center;
    width: 74px;
    height: 74px;
    border: 1px solid color-mix(in srgb, var(--osw-gold) 50%, white);
    border-radius: 24px;
    background:
        radial-gradient(circle at 30% 20%, rgba(255,255,255,.95), transparent 40%),
        linear-gradient(145deg, #f8df8b, #c3942b);
    box-shadow: 0 18px 38px rgba(156, 116, 24, .18);
    color: var(--osw-navy);
    font-size: 32px;
}

.osw-platinum-empty h2,
.osw-platinum-empty p {
    margin: 0;
}

.osw-platinum-overview {
    display: grid;
    grid-template-columns: minmax(180px, .32fr) minmax(0, 1.68fr);
    gap: 18px;
    margin-bottom: 18px;
}

.osw-platinum-score {
    display: grid;
    align-content: center;
    justify-items: center;
    min-height: 220px;
    background:
        radial-gradient(circle at 20% 10%, rgba(255,255,255,.12), transparent 35%),
        linear-gradient(145deg, var(--osw-navy), color-mix(in srgb, var(--osw-navy) 76%, #000));
    color: white;
    text-align: center;
}

.osw-platinum-score > span,
.osw-platinum-score > small {
    color: rgba(255,255,255,.72);
}

.osw-platinum-score > strong {
    margin: 8px 0 2px;
    color: var(--osw-gold);
    font-size: clamp(58px, 7vw, 84px);
    font-weight: 400;
    line-height: 1;
}

.osw-platinum-summary {
    display: grid;
    align-content: center;
    min-height: 220px;
}

.osw-platinum-summary h2,
.osw-platinum-summary p {
    max-width: 900px;
}

.osw-platinum-insights {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 18px;
}

.osw-platinum-insights h2 {
    margin-top: 0;
    font-size: 19px;
}

.osw-platinum-insights ul {
    display: grid;
    gap: 9px;
    margin: 14px 0 0;
    padding-left: 19px;
    color: var(--osw-text-soft);
}

.osw-platinum-plan {
    margin-bottom: 24px;
    border-left: 4px solid var(--osw-gold);
}

.osw-platinum-actions-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin: 24px 0 14px;
}

.osw-platinum-actions-heading h2,
.osw-platinum-actions-heading p {
    margin: 0;
}

.osw-platinum-actions-heading > strong {
    color: var(--osw-navy);
    font-size: 22px;
}

.osw-platinum-actions {
    display: grid;
    gap: 12px;
}

.osw-platinum-action {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr);
    gap: 15px;
    padding: 18px 20px;
    border: 1px solid var(--osw-line);
    border-radius: 17px;
    background: var(--osw-card, #fff);
    box-shadow: 0 8px 24px rgba(8, 32, 60, .045);
    cursor: pointer;
}

.osw-platinum-action:hover {
    border-color: color-mix(in srgb, var(--osw-gold) 62%, var(--osw-line));
}

.osw-platinum-action.is-blocked {
    opacity: .7;
    cursor: default;
}

.osw-platinum-action input {
    width: 19px;
    height: 19px;
    margin-top: 2px;
    accent-color: var(--osw-navy);
}

.osw-platinum-action > span,
.osw-platinum-action > span > span {
    display: grid;
    gap: 6px;
}

.osw-platinum-action > span > span {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
}

.osw-platinum-action strong,
.osw-platinum-action p,
.osw-platinum-action small {
    margin: 0;
}

.osw-platinum-action p,
.osw-platinum-action small {
    color: var(--osw-text-soft);
}

.osw-platinum-action-price {
    color: var(--osw-navy);
    white-space: nowrap;
}

.osw-platinum-execute {
    display: block;
    min-width: 240px;
    margin: 20px 0 0 auto;
}

.osw-integration-group {
    margin-bottom: 28px;
}

.osw-integration-group > h2 {
    margin: 0 0 12px;
    color: var(--osw-text-soft);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.osw-integration-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.osw-integration-card {
    display: grid;
    align-content: start;
    gap: 13px;
    min-height: 230px;
}

.osw-integration-card-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.osw-integration-card-heading > div {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.osw-integration-provider-mark {
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 1px solid var(--osw-line);
    border-radius: 14px;
    background: color-mix(in srgb, var(--osw-navy) 6%, white);
    color: var(--osw-navy);
    font-size: 19px;
    font-weight: 800;
}

.osw-integration-title h2,
.osw-integration-title small,
.osw-integration-card p {
    margin: 0;
}

.osw-integration-title h2 {
    font-size: 18px;
}

.osw-integration-title small,
.osw-integration-card p {
    color: var(--osw-text-soft);
}

.osw-integration-status {
    flex: 0 0 auto;
    padding: 6px 9px;
    border-radius: 999px;
    background: #f0f3f6;
    color: #627084;
    font-size: 11px;
    font-weight: 800;
}

.osw-integration-card.is-connected .osw-integration-status,
.osw-integration-card.is-available .osw-integration-status {
    background: #e4f7ef;
    color: #087a4d;
}

.osw-integration-dot.is-connected {
    background: #19b878;
    box-shadow: 0 0 0 5px rgba(25, 184, 120, .12);
}

.osw-integration-card .osw-primary-button,
.osw-integration-card .osw-secondary-button {
    align-self: end;
    justify-self: start;
    margin-top: auto;
}

.osw-integration-security {
    border-left: 4px solid var(--osw-gold);
}

.osw-billing-current {
    margin-bottom: 18px;
}

.osw-current-plan {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    background:
        radial-gradient(circle at 88% 20%, rgba(218,177,74,.16), transparent 31%),
        var(--osw-card, #fff);
}

.osw-current-plan h2,
.osw-current-plan p {
    margin: 0;
}

.osw-billing-plans {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.osw-plan-card {
    display: grid;
    gap: 12px;
    min-height: 340px;
}

.osw-plan-card.is-platinum {
    border-color: color-mix(in srgb, var(--osw-gold) 68%, var(--osw-line));
    background:
        linear-gradient(145deg, rgba(255,255,255,.98), rgba(255,249,229,.98));
}

.osw-plan-card h2,
.osw-plan-card p {
    margin: 0;
}

.osw-plan-tagline {
    color: var(--osw-muted);
    min-height: 44px;
}

.osw-plan-price {
    color: var(--osw-navy);
    font-size: 20px;
}

.osw-tax-note {
    color: var(--osw-muted);
    font-size: 12px;
}

.osw-plan-features {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    color: var(--osw-text);
    list-style: none;
}

.osw-plan-features li::before {
    margin-right: 8px;
    color: #0b8b61;
    content: "✓";
    font-weight: 800;
}

.osw-plan-card button {
    align-self: end;
    margin-top: auto;
}

.osw-growth-costs,
.osw-growth-wallet {
    margin-bottom: 18px;
}

.osw-cost-overview {
    display: grid;
    grid-template-columns: minmax(230px, .72fr) minmax(0, 1.7fr);
    gap: 26px;
}

.osw-cost-budget h2,
.osw-cost-budget p,
.osw-wallet-card h2,
.osw-wallet-card p,
.osw-service-card h2,
.osw-service-card p {
    margin: 0;
}

.osw-cost-meters {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.osw-cost-meter {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 7px 12px;
    padding: 12px 14px;
    border: 1px solid var(--osw-line);
    border-radius: 14px;
}

.osw-cost-meter span {
    color: var(--osw-muted);
}

.osw-usage-bar {
    grid-column: 1 / -1;
    height: 7px;
    overflow: hidden;
    border-radius: 99px;
    background: color-mix(in srgb, var(--osw-navy) 8%, var(--osw-white));
}

.osw-usage-bar > span {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--osw-gold), #e3c36b);
}

.osw-cost-budget .osw-usage-bar {
    margin-top: 18px;
}

.osw-cost-alert {
    margin-top: 10px !important;
    color: #9a6200;
    font-weight: 700;
}

.osw-cost-alert.is-critical {
    color: #b54a17;
}

.osw-cost-alert.is-blocked {
    color: #b3261e;
}

.osw-wallet-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
}

.osw-wallet-topups {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.osw-wallet-topups .osw-secondary-button {
    min-width: 0;
    padding: 11px 14px;
}

.osw-section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin: 26px 0 14px;
}

.osw-section-heading h2,
.osw-section-heading p {
    margin: 0;
}

.osw-growth-services {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.osw-service-card {
    display: grid;
    gap: 10px;
    min-height: 260px;
}

.osw-service-price {
    margin-top: auto;
    color: var(--osw-navy);
    font-size: 19px;
}

.osw-service-card button {
    margin-top: 8px;
}

.osw-billing-security {
    display: flex;
    align-items: center;
    gap: 18px;
}

.osw-billing-shield {
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    width: 58px;
    height: 58px;
    border-radius: 19px;
    background: #e4f7ef;
    color: #078356;
    font-size: 25px;
    font-weight: 800;
}

.osw-billing-security h2,
.osw-billing-security p {
    margin: 0;
}

@media (max-width: 1100px) {
    .osw-billing-plans {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .osw-growth-services {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .osw-platinum-insights {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .osw-platinum-heading {
        align-items: stretch;
    }

    .osw-platinum-heading .osw-primary-button {
        width: 100%;
        min-width: 0;
    }

    .osw-platinum-overview,
    .osw-integration-grid,
    .osw-billing-plans,
    .osw-growth-services,
    .osw-cost-overview,
    .osw-cost-meters {
        grid-template-columns: 1fr;
    }

    .osw-platinum-score {
        min-height: 175px;
    }

    .osw-platinum-actions-heading,
    .osw-current-plan,
    .osw-billing-security,
    .osw-wallet-card {
        align-items: flex-start;
        flex-direction: column;
    }

    .osw-wallet-topups {
        justify-content: flex-start;
    }

    .osw-platinum-action > span > span {
        grid-template-columns: 1fr;
    }

    .osw-platinum-execute {
        width: 100%;
        min-width: 0;
    }

    .osw-integration-card-heading {
        display: grid;
    }
}

[hidden] {
    display: none !important;
}

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.osw-page-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
}

.osw-page-heading h1,
.osw-coming-soon h1 {
    margin: 0;
    color: var(--osw-navy);
    font-size: clamp(30px, 3vw, 40px);
    letter-spacing: -1.4px;
}

.osw-page-heading > div > p:last-child,
.osw-coming-soon > p {
    margin: 9px 0 0;
    color: var(--osw-muted);
    font-size: 14px;
}

.osw-contact-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 30px;
}

.osw-contact-summary article {
    padding: 17px 20px;
    border: 1px solid rgba(225, 230, 237, 0.9);
    border-radius: 14px;
    background: var(--osw-white);
    box-shadow: var(--osw-shadow);
}

.osw-contact-summary span {
    display: block;
    color: var(--osw-muted);
    font-size: 11px;
    font-weight: 650;
}

.osw-contact-summary strong {
    display: block;
    margin-top: 7px;
    color: var(--osw-navy);
    font-size: 24px;
}

.osw-contacts-card {
    margin-top: 16px;
    padding: 0;
    overflow: hidden;
}

.osw-contact-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 18px 20px;
    border-bottom: 1px solid var(--osw-border);
}

.osw-search-field {
    display: flex;
    max-width: 520px;
    min-width: 280px;
    flex: 1;
    align-items: center;
    gap: 10px;
    padding: 0 13px;
    border: 1px solid var(--osw-border);
    border-radius: 10px;
    background: #fafbfd;
}

.osw-search-field > span {
    color: #8995a4;
    font-size: 18px;
}

.osw-search-field input,
.osw-status-filter select,
.osw-form-field input,
.osw-form-field select {
    color: var(--osw-text);
    border: 0;
    background: transparent;
    font: inherit;
    outline: none;
}

.osw-search-field input {
    width: 100%;
    height: 42px;
    font-size: 12px;
}

.osw-status-filter select {
    height: 42px;
    padding: 0 35px 0 13px;
    border: 1px solid var(--osw-border);
    border-radius: 10px;
    background-color: #fafbfd;
    font-size: 12px;
}

.osw-table-wrap {
    width: 100%;
    overflow-x: auto;
}

.osw-companies-table {
    width: 100%;
    min-width: 870px;
    border-collapse: collapse;
}

.osw-companies-table th,
.osw-companies-table td {
    padding: 15px 18px;
    border-bottom: 1px solid #edf0f4;
    text-align: left;
    vertical-align: middle;
}

.osw-companies-table th {
    color: #8c97a5;
    background: #fbfcfd;
    font-size: 10px;
    font-weight: 750;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.osw-companies-table td {
    color: #526071;
    font-size: 12px;
}

.osw-companies-table tbody tr {
    transition: background 140ms ease;
}

.osw-companies-table tbody tr:hover {
    background: #fbfcfe;
}

.osw-company-name {
    display: block;
    color: var(--osw-navy);
    font-size: 13px;
    font-weight: 750;
}

.osw-company-domain {
    display: block;
    margin-top: 3px;
    color: #929dab;
    font-size: 10px;
}

.osw-score {
    display: flex;
    align-items: center;
    gap: 8px;
}

.osw-score-track {
    width: 54px;
    height: 5px;
    overflow: hidden;
    border-radius: 10px;
    background: #edf0f4;
}

.osw-score-track span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--osw-gold), #e0c477);
}

.osw-status-pill {
    display: inline-flex;
    align-items: center;
    padding: 5px 8px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 700;
    white-space: nowrap;
}

.osw-status-new {
    color: #315b80;
    background: #eaf2f9;
}

.osw-status-analyzing {
    color: #7b5b0a;
    background: #fff5d8;
}

.osw-status-analysis_failed {
    color: #9b3131;
    background: #fde9e9;
}

.osw-status-ready_for_sales {
    color: #14734d;
    background: #e2f6ed;
}

.osw-status-rejected {
    color: #8a4350;
    background: #f9e9ec;
}

.osw-status-handed_to_sales {
    color: #594b91;
    background: #eeeafc;
}

.osw-contacts-empty {
    padding: 74px 25px;
    text-align: center;
}

.osw-contacts-empty .osw-empty-icon {
    margin: 0 auto;
}

.osw-contacts-empty h3 {
    margin: 15px 0 7px;
    color: var(--osw-navy);
    font-size: 17px;
}

.osw-contacts-empty p {
    margin: 0 0 20px;
    color: var(--osw-muted);
    font-size: 12px;
}

.osw-contacts-loading {
    display: flex;
    min-height: 200px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: var(--osw-muted);
    font-size: 12px;
}

.osw-contacts-loading span {
    width: 15px;
    height: 15px;
    border: 2px solid #dfe5ec;
    border-top-color: var(--osw-navy);
    border-radius: 50%;
    animation: osw-spin 700ms linear infinite;
}

@keyframes osw-spin {
    to {
        transform: rotate(360deg);
    }
}

.osw-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    color: var(--osw-muted);
    border-top: 1px solid var(--osw-border);
    font-size: 11px;
}

.osw-pagination button {
    padding: 7px 10px;
    color: #4f5d6f;
    border: 1px solid var(--osw-border);
    border-radius: 8px;
    background: #fff;
    font: inherit;
    font-weight: 650;
    cursor: pointer;
}

.osw-pagination button:disabled {
    opacity: 0.45;
    cursor: default;
}

.osw-secondary-button {
    display: inline-flex;
    min-height: 40px;
    align-items: center;
    justify-content: center;
    padding: 0 16px;
    color: var(--osw-navy);
    border: 1px solid #d9e0e8;
    border-radius: 10px;
    background: #fff;
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.osw-primary-button:disabled,
.osw-secondary-button:disabled {
    opacity: 0.55;
    cursor: wait;
}

.osw-coming-soon {
    min-height: 430px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
}

.osw-coming-soon .osw-secondary-button {
    margin-top: 22px;
}

.osw-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: grid;
    place-items: center;
    padding: 20px;
}

.osw-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(3, 18, 34, 0.58);
    backdrop-filter: blur(5px);
}

.osw-modal-card {
    position: relative;
    z-index: 1;
    width: min(100%, 650px);
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 35px 100px rgba(0, 20, 45, 0.28);
}

.osw-modal-card h2 {
    margin: 0;
    color: var(--osw-navy);
    font-size: 25px;
    letter-spacing: -0.7px;
}

.osw-modal-intro {
    margin: 8px 0 23px;
    color: var(--osw-muted);
    font-size: 12px;
}

.osw-modal-close {
    position: absolute;
    top: 16px;
    right: 18px;
    width: 34px;
    height: 34px;
    color: #6f7b8b;
    border: 0;
    border-radius: 50%;
    background: #f1f4f7;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

.osw-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.osw-form-field {
    display: block;
}

.osw-form-field-wide {
    grid-column: 1 / -1;
}

.osw-form-field > span {
    display: block;
    margin-bottom: 7px;
    color: #4a5869;
    font-size: 11px;
    font-weight: 700;
}

.osw-form-field input,
.osw-form-field select {
    width: 100%;
    height: 44px;
    padding: 0 12px;
    border: 1px solid var(--osw-border);
    border-radius: 10px;
    background: #fafbfd;
    font-size: 12px;
}

.osw-form-field input:focus,
.osw-form-field select:focus {
    border-color: #91a9c2;
    box-shadow: 0 0 0 3px rgba(0, 33, 71, 0.06);
}

.osw-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 24px;
}

.osw-form-error {
    margin: 15px 0 0;
    padding: 10px 12px;
    color: #8d3340;
    border-radius: 9px;
    background: #fae9ec;
    font-size: 11px;
}

.osw-form-success {
    margin: 15px 0;
    padding: 10px 12px;
    border-radius: 9px;
    background: #e7f6ef;
    color: #146b4d;
    font-size: 11px;
}

.osw-toast {
    position: fixed;
    right: 25px;
    bottom: 25px;
    z-index: 1200;
    max-width: 360px;
    overflow: hidden;
    padding: 13px 17px;
    color: #168058;
    border: 1px solid var(--osw-navy);
    border-radius: 11px;
    background: #fff;
    box-shadow: 0 18px 45px rgba(0, 33, 71, 0.15);
    font-size: 12px;
    font-weight: 750;
}

.osw-toast::after {
    position: absolute;
    inset: 0 auto 0 -45%;
    width: 35%;
    background: linear-gradient(105deg, transparent, rgba(61, 183, 133, .2), transparent);
    content: '';
    pointer-events: none;
}

.osw-toast.is-visible::after {
    animation: osw-toast-shimmer 1.1s ease-out;
}

.osw-toast.is-error {
    color: #a33a46;
    border-color: #b44a55;
}

.osw-toast.is-error::after {
    background: linear-gradient(105deg, transparent, rgba(180, 74, 85, .14), transparent);
}

@keyframes osw-toast-shimmer {
    to {
        left: 125%;
    }
}

body.osw-modal-open {
    overflow: hidden;
}

@media (max-width: 760px) {
    .osw-page-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .osw-page-heading .osw-primary-button {
        width: 100%;
    }

    .osw-contact-summary {
        grid-template-columns: 1fr;
    }

    .osw-contact-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .osw-search-field {
        max-width: none;
        min-width: 0;
    }

    .osw-status-filter select {
        width: 100%;
    }

    .osw-form-grid {
        grid-template-columns: 1fr;
    }

    .osw-form-field-wide {
        grid-column: auto;
    }
}

@media (max-width: 520px) {
    .osw-modal {
        padding: 10px;
    }

    .osw-modal-card {
        max-height: calc(100vh - 20px);
        padding: 25px 18px 20px;
        border-radius: 16px;
    }

    .osw-modal-actions {
        flex-direction: column-reverse;
    }

    .osw-modal-actions button {
        width: 100%;
    }
}

.osw-table-action {
    padding: 7px 10px;
    color: var(--osw-navy);
    border: 1px solid #dbe2ea;
    border-radius: 8px;
    background: #fff;
    font: inherit;
    font-size: 10px;
    font-weight: 750;
    cursor: pointer;
}

.osw-table-action:hover {
    border-color: #aebdcd;
    background: #f6f8fb;
}

.osw-action-cell {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.osw-table-action.is-retry {
    color: #8a5d00;
    border-color: #efdca8;
    background: #fff9e9;
}

.osw-back-link {
    display: inline-flex;
    margin-bottom: 25px;
    color: #647284;
    font-size: 12px;
    font-weight: 650;
    text-decoration: none;
}

.osw-dossier-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 25px;
}

.osw-dossier-heading h1 {
    margin: 0;
    color: var(--osw-navy);
    font-size: clamp(30px, 3vw, 40px);
    letter-spacing: -1.4px;
}

.osw-dossier-heading > div > p:last-child {
    margin: 8px 0 0;
    color: var(--osw-muted);
    font-size: 13px;
}

.osw-dossier-status {
    display: block;
    min-width: 220px;
}

.osw-dossier-status > span {
    display: block;
    margin-bottom: 6px;
    color: #778395;
    font-size: 10px;
    font-weight: 750;
    letter-spacing: 0.4px;
    text-transform: uppercase;
}

.osw-dossier-status select {
    width: 100%;
    height: 43px;
    padding: 0 35px 0 12px;
    color: var(--osw-navy);
    border: 1px solid #d9e0e8;
    border-radius: 10px;
    background: #fff;
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    outline: none;
}

.osw-dossier-status select:focus {
    border-color: #91a9c2;
    box-shadow: 0 0 0 3px rgba(0, 33, 71, 0.06);
}

.osw-dossier-status select:disabled {
    opacity: 0.6;
}

.osw-dossier-loading {
    display: flex;
    min-height: 330px;
    align-items: center;
    justify-content: center;
    gap: 11px;
    color: var(--osw-muted);
    font-size: 12px;
}

.osw-dossier-loading span {
    width: 17px;
    height: 17px;
    border: 2px solid #dfe5ec;
    border-top-color: var(--osw-navy);
    border-radius: 50%;
    animation: osw-spin 700ms linear infinite;
}

.osw-dossier {
    margin-top: 28px;
}

.osw-dossier-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 16px;
    padding: 5px;
    overflow-x: auto;
    border: 1px solid var(--osw-border);
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.75);
}

.osw-dossier-tabs button {
    min-height: 38px;
    padding: 0 14px;
    color: #6a7788;
    border: 0;
    border-radius: 9px;
    background: transparent;
    font: inherit;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
    cursor: pointer;
}

.osw-dossier-tabs button:hover {
    color: var(--osw-navy);
}

.osw-dossier-tabs button.is-active {
    color: #fff;
    background: var(--osw-navy);
    box-shadow: 0 8px 20px rgba(0, 33, 71, 0.14);
}

.osw-dossier-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(285px, 0.55fr);
    gap: 16px;
}

.osw-detail-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    margin: 23px 0 0;
    border-top: 1px solid #edf0f4;
}

.osw-detail-item {
    min-width: 0;
    padding: 15px 12px 15px 0;
    border-bottom: 1px solid #edf0f4;
}

.osw-detail-item:nth-child(even) {
    padding-left: 14px;
}

.osw-detail-item dt {
    margin: 0 0 5px;
    color: #8b96a4;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
}

.osw-detail-item dd {
    min-width: 0;
    margin: 0;
    overflow: hidden;
    color: #3f4d60;
    font-size: 12px;
    font-weight: 600;
    text-overflow: ellipsis;
}

.osw-detail-item a {
    color: var(--osw-navy);
    text-decoration: none;
}

.osw-potential-card {
    display: flex;
    min-height: 250px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
}

.osw-potential-card > strong {
    margin-top: 12px;
    color: var(--osw-navy);
    font-size: 46px;
    letter-spacing: -2px;
}

.osw-potential-track {
    width: min(100%, 220px);
    height: 7px;
    margin: 13px 0 15px;
    overflow: hidden;
    border-radius: 20px;
    background: #edf0f4;
}

.osw-potential-track span {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--osw-gold), #e0c477);
    transition: width 260ms ease;
}

.osw-potential-card > p:last-child {
    max-width: 290px;
    margin: 0;
    color: var(--osw-muted);
    font-size: 11px;
    line-height: 1.6;
}

.osw-dossier-empty {
    display: flex;
    min-height: 255px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
}

.osw-dossier-empty .osw-empty-icon {
    margin: 0 auto;
}

.osw-dossier-empty h3 {
    margin: 15px 0 7px;
    color: var(--osw-navy);
    font-size: 16px;
}

.osw-dossier-empty p {
    max-width: 470px;
    margin: 0;
    color: var(--osw-muted);
    font-size: 12px;
    line-height: 1.65;
}

.osw-analysis-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 15px;
}

.osw-analysis-toolbar {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 18px;
    padding-bottom: 16px;
    border-bottom: 1px solid #edf1f5;
}

.osw-analysis-toolbar .osw-primary-button {
    min-height: 42px;
}

.osw-analysis-summary {
    margin: 22px 0 0;
    color: #49576a;
    font-size: 13px;
    line-height: 1.75;
    white-space: pre-line;
}

.osw-analysis-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 22px;
}

.osw-analysis-block {
    padding: 17px;
    border: 1px solid #e8ecf1;
    border-radius: 12px;
    background: #fafbfd;
}

.osw-analysis-block h3 {
    margin: 0 0 8px;
    color: var(--osw-navy);
    font-size: 12px;
}

.osw-analysis-block p {
    margin: 0;
    color: #667385;
    font-size: 11px;
    line-height: 1.65;
    white-space: pre-line;
}

.osw-people-list {
    display: grid;
    gap: 10px;
    margin-top: 20px;
}

.osw-person-card,
.osw-document-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 13px 14px;
    border: 1px solid #e8ecf1;
    border-radius: 11px;
    background: #fafbfd;
}

.osw-person-card strong,
.osw-person-card span,
.osw-document-item strong,
.osw-document-item span {
    display: block;
}

.osw-person-card strong,
.osw-document-item strong {
    color: var(--osw-navy);
    font-size: 12px;
}

.osw-person-card span,
.osw-document-item span {
    margin-top: 3px;
    color: #8995a4;
    font-size: 10px;
}

.osw-person-details {
    flex: 0 0 auto;
    text-align: right;
}

.osw-sales-details {
    margin-top: 22px;
}

.osw-timeline {
    margin-top: 23px;
}

.osw-timeline-item {
    position: relative;
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr);
    gap: 11px;
    padding-bottom: 21px;
}

.osw-timeline-item:not(:last-child)::before {
    position: absolute;
    top: 13px;
    bottom: 0;
    left: 5px;
    width: 1px;
    background: #dfe5eb;
    content: "";
}

.osw-timeline-marker {
    position: relative;
    z-index: 1;
    width: 11px;
    height: 11px;
    margin-top: 3px;
    border: 3px solid #e8d9ad;
    border-radius: 50%;
    background: var(--osw-gold);
}

.osw-timeline-item p {
    margin: 0;
    color: #445266;
    font-size: 12px;
    line-height: 1.55;
}

.osw-timeline-item time {
    display: block;
    margin-top: 4px;
    color: #98a2af;
    font-size: 10px;
}

.osw-document-list {
    display: grid;
    gap: 10px;
    margin-top: 22px;
}

.osw-document-item .osw-secondary-button {
    min-height: 34px;
    flex: 0 0 auto;
}

.osw-dossier-error {
    min-height: 340px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    margin-top: 28px;
    text-align: center;
}

.osw-dossier-error:not([hidden]) {
    display: flex;
}

.osw-dossier-error h2 {
    margin-top: 15px;
}

.osw-dossier-error p {
    margin: 8px 0 20px;
    color: var(--osw-muted);
    font-size: 12px;
}

@media (max-width: 900px) {
    .osw-dossier-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .osw-dossier-heading {
        align-items: stretch;
        flex-direction: column;
    }

    .osw-dossier-status {
        min-width: 0;
    }

    .osw-analysis-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 520px) {
    .osw-detail-list {
        grid-template-columns: 1fr;
    }

    .osw-detail-item:nth-child(even) {
        padding-left: 0;
    }

    .osw-person-card,
    .osw-document-item {
        align-items: flex-start;
        flex-direction: column;
    }

    .osw-person-details {
        text-align: left;
    }
}

.osw-system-status.is-working span {
    background: var(--osw-gold);
    box-shadow: 0 0 0 4px rgba(200, 165, 80, 0.14);
    animation: osw-pulse 1.6s ease-in-out infinite;
}

@keyframes osw-pulse {
    50% {
        opacity: 0.45;
        transform: scale(0.8);
    }
}

.osw-heading-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.osw-contact-summary,
.osw-sales-summary {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.osw-assistant-input input {
    width: 100%;
    min-width: 0;
    color: var(--osw-text);
    border: 0;
    background: transparent;
    font: inherit;
    font-size: 12px;
    outline: none;
}

.osw-report-loading {
    display: flex;
    min-height: 225px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: var(--osw-muted);
    font-size: 12px;
}

.osw-report-loading span,
.osw-chat-loading span {
    width: 15px;
    height: 15px;
    border: 2px solid #dfe5ec;
    border-top-color: var(--osw-navy);
    border-radius: 50%;
    animation: osw-spin 700ms linear infinite;
}

.osw-report-summary {
    margin: 20px 0 15px;
    color: #5d6b7c;
    font-size: 12px;
    line-height: 1.6;
}

.osw-report-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 7px;
    margin-bottom: 16px;
}

.osw-report-metric {
    padding: 9px;
    border: 1px solid #e8ecf1;
    border-radius: 9px;
    background: #fafbfd;
}

.osw-report-metric strong,
.osw-report-metric span {
    display: block;
}

.osw-report-metric strong {
    color: var(--osw-navy);
    font-size: 16px;
}

.osw-report-metric span {
    margin-top: 3px;
    color: #8995a4;
    font-size: 8px;
}

.osw-recommendation-list {
    display: grid;
    gap: 8px;
}

.osw-recommendation {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 12px 13px;
    color: #4f5d70;
    border: 1px solid #e6eaf0;
    border-radius: 10px;
    background: #fafbfd;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.osw-recommendation.osw-priority-high {
    box-shadow: inset 3px 0 0 var(--osw-gold);
}

.osw-recommendation strong,
.osw-recommendation small {
    display: block;
}

.osw-recommendation strong {
    color: var(--osw-navy);
    font-size: 11px;
}

.osw-recommendation small {
    margin-top: 3px;
    color: #8995a4;
    font-size: 10px;
}

.osw-recommendation-arrow {
    color: var(--osw-gold);
    font-size: 17px;
}

.osw-assistant-ready {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #39725a;
    font-size: 11px;
    font-weight: 700;
}

.osw-assistant-ready > span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--osw-green);
}

.osw-assistant-ready.is-not-ready {
    color: #876714;
}

.osw-assistant-ready.is-not-ready > span {
    background: var(--osw-gold);
}

.osw-assistant-heading-tools {
    display: flex;
    align-items: center;
    gap: 14px;
}

.osw-voice-toggle {
    display: inline-flex;
    min-height: 34px;
    align-items: center;
    gap: 7px;
    padding: 0 11px;
    color: #6b7787;
    border: 1px solid var(--osw-border);
    border-radius: 20px;
    background: #fff;
    font: inherit;
    font-size: 10px;
    font-weight: 700;
    cursor: pointer;
}

.osw-voice-toggle.is-active {
    color: #14734d;
    border-color: #bfe8d6;
    background: #eaf8f1;
}

.osw-speech-stop,
.osw-context-stop-speech {
    min-height: 34px;
    padding: 0 12px;
    border: 1px solid #efc6ca;
    border-radius: 20px;
    background: #fff4f5;
    color: #9a2f3b;
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.osw-speech-stop[hidden],
.osw-context-stop-speech[hidden] {
    display: none;
}

.osw-context-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.osw-context-assistant header .osw-context-stop-speech {
    min-height: 32px;
    padding: 0 10px;
    border: 1px solid #efc6ca;
    border-radius: 18px;
    background: #fff4f5;
    color: #9a2f3b;
    font-size: 11px;
}

.osw-assistant-workspace {
    display: flex;
    min-height: calc(100vh - 215px);
    flex-direction: column;
    margin-top: 28px;
    padding: 0;
    overflow: hidden;
}

.osw-chat-messages {
    display: flex;
    min-height: 430px;
    max-height: calc(100vh - 370px);
    flex: 1;
    flex-direction: column;
    gap: 16px;
    padding: 28px;
    overflow-y: auto;
    background:
        radial-gradient(circle at 90% 8%, rgba(200, 165, 80, 0.07), transparent 26%),
        #fff;
}

.osw-chat-loading {
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: var(--osw-muted);
    font-size: 12px;
}

.osw-chat-message {
    display: flex;
    max-width: 82%;
    align-items: flex-start;
    gap: 10px;
}

.osw-chat-message.is-user {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.osw-chat-avatar {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    flex: 0 0 34px;
    color: var(--osw-navy);
    border-radius: 11px;
    background: linear-gradient(145deg, #f4e4ae, var(--osw-gold));
    font-size: 9px;
    font-weight: 850;
}

.osw-chat-message.is-user .osw-chat-avatar {
    color: #fff;
    background: var(--osw-navy);
}

.osw-chat-bubble {
    padding: 13px 15px;
    border: 1px solid #e7ebf0;
    border-radius: 4px 14px 14px;
    background: #f8fafc;
}

.osw-chat-message.is-user .osw-chat-bubble {
    color: #fff;
    border-color: var(--osw-navy);
    border-radius: 14px 4px 14px 14px;
    background: var(--osw-navy);
}

.osw-chat-bubble p {
    margin: 0;
    font-size: 12px;
    line-height: 1.7;
    white-space: pre-line;
}

.osw-chat-bubble time {
    display: block;
    margin-top: 6px;
    color: #98a2af;
    font-size: 9px;
}

.osw-chat-message.is-user time {
    color: rgba(255, 255, 255, 0.58);
}

.osw-listen-button {
    margin-top: 8px;
    padding: 0;
    color: #607086;
    border: 0;
    background: transparent;
    font: inherit;
    font-size: 9px;
    font-weight: 750;
    cursor: pointer;
}

.osw-listen-button:hover {
    color: var(--osw-navy);
}

.osw-chat-message.is-typing .osw-chat-bubble {
    color: var(--osw-muted);
    font-size: 11px;
}

.osw-thinking {
    display: inline-flex;
    gap: 8px;
    align-items: center;
}

.osw-thinking-dots {
    display: inline-flex;
    gap: 4px;
    align-items: center;
}

.osw-thinking-dots i {
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: currentColor;
    animation: osw-thinking-dot 1.15s ease-in-out infinite;
}

.osw-thinking-dots i:nth-child(2) {
    animation-delay: .16s;
}

.osw-thinking-dots i:nth-child(3) {
    animation-delay: .32s;
}

.osw-context-message.is-thinking {
    color: #69788c;
}

@keyframes osw-thinking-dot {
    0%, 60%, 100% { opacity: .28; transform: translateY(0); }
    30% { opacity: 1; transform: translateY(-3px); }
}

@media (prefers-reduced-motion: reduce) {
    .osw-thinking-dots i {
        animation: none;
    }
}

.osw-chat-quick-actions {
    display: flex;
    gap: 7px;
    padding: 13px 20px;
    overflow-x: auto;
    border-top: 1px solid var(--osw-border);
    background: #fbfcfd;
}

.osw-chat-quick-actions button {
    padding: 8px 11px;
    color: #566477;
    border: 1px solid #dfe5eb;
    border-radius: 20px;
    background: #fff;
    font: inherit;
    font-size: 10px;
    font-weight: 650;
    white-space: nowrap;
    cursor: pointer;
}

.osw-chat-form {
    display: flex;
    align-items: flex-end;
    gap: 11px;
    padding: 16px 20px 20px;
    border-top: 1px solid var(--osw-border);
}

.osw-chat-form textarea {
    width: 100%;
    min-height: 48px;
    max-height: 140px;
    resize: vertical;
    padding: 13px 14px;
    color: var(--osw-text);
    border: 1px solid var(--osw-border);
    border-radius: 12px;
    background: #fafbfd;
    font: inherit;
    font-size: 12px;
    line-height: 1.5;
    outline: none;
}

.osw-chat-form textarea:focus {
    border-color: #91a9c2;
    box-shadow: 0 0 0 3px rgba(0, 33, 71, 0.06);
}

.osw-chat-form .osw-primary-button {
    flex: 0 0 auto;
}

.osw-chat-actions {
    display: flex;
    flex: 0 0 auto;
    align-items: stretch;
    gap: 8px;
}

.osw-chat-mic {
    display: inline-flex;
    min-width: 78px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 0 13px;
    color: var(--osw-navy);
    border: 1px solid #cfd9e4;
    border-radius: 11px;
    background: #fff;
    font: inherit;
    font-size: 10px;
    font-weight: 800;
    cursor: pointer;
    transition: 160ms ease;
}

.osw-chat-mic svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.osw-chat-mic:hover {
    border-color: #91a9c2;
    background: #f5f8fb;
}

.osw-chat-mic.is-recording {
    color: #fff;
    border-color: #b93434;
    background: #b93434;
    box-shadow: 0 0 0 4px rgba(185, 52, 52, 0.12);
    animation: osw-pulse 1.2s ease-in-out infinite;
}

.osw-chat-mic:disabled {
    opacity: 0.55;
    cursor: wait;
}

.osw-ai-voice-note {
    margin: -12px 20px 14px;
    color: #8995a5;
    font-size: 9px;
    text-align: right;
}

.osw-assistant-workspace > .osw-form-error {
    margin: 0 20px 18px;
}

.osw-sales-summary {
    display: grid;
    gap: 14px;
    margin-top: 30px;
}

.osw-sales-summary article {
    padding: 17px 20px;
    border: 1px solid rgba(225, 230, 237, 0.9);
    border-radius: 14px;
    background: var(--osw-white);
    box-shadow: var(--osw-shadow);
}

.osw-sales-summary span {
    display: block;
    color: var(--osw-muted);
    font-size: 11px;
    font-weight: 650;
}

.osw-sales-summary strong {
    display: block;
    margin-top: 7px;
    color: var(--osw-navy);
    font-size: 24px;
}

.osw-sales-card {
    margin-top: 16px;
    padding: 0;
    overflow: hidden;
}

.osw-sales-table {
    min-width: 900px;
}

.osw-sales-status {
    min-width: 135px;
    height: 34px;
    padding: 0 8px;
    color: #4c5a6d;
    border: 1px solid #dfe5eb;
    border-radius: 8px;
    background: #fff;
    font: inherit;
    font-size: 10px;
    font-weight: 700;
}

.osw-sales-next-action {
    max-width: 260px;
    line-height: 1.5;
}

.osw-client-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 30px;
}

.osw-client-card {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) auto;
    align-items: center;
    gap: 15px;
}

.osw-client-mark {
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    color: var(--osw-navy);
    border-radius: 14px;
    background: linear-gradient(145deg, #f4e4ae, var(--osw-gold));
    font-size: 18px;
    font-weight: 850;
}

.osw-client-card h2 {
    margin: 0;
    font-size: 15px;
}

.osw-client-card p {
    margin: 4px 0 7px;
    color: var(--osw-muted);
    font-size: 10px;
}

.osw-client-value {
    color: #39725a;
    font-size: 11px;
    font-weight: 750;
}

.osw-clients-empty {
    display: flex;
    min-height: 380px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    margin-top: 30px;
    text-align: center;
}

.osw-clients-empty h2 {
    margin: 15px 0 7px;
}

.osw-clients-empty p {
    max-width: 470px;
    margin: 0;
    color: var(--osw-muted);
    font-size: 12px;
    line-height: 1.65;
}

.osw-settings-form {
    display: grid;
    gap: 16px;
    margin-top: 30px;
}

.osw-settings-form .osw-card h2 {
    margin-bottom: 22px;
}

.osw-settings-grid {
    gap: 18px;
}

.osw-form-field textarea {
    width: 100%;
    min-height: 88px;
    resize: vertical;
    padding: 12px;
    color: var(--osw-text);
    border: 1px solid var(--osw-border);
    border-radius: 10px;
    background: #fafbfd;
    font: inherit;
    font-size: 12px;
    line-height: 1.6;
    outline: none;
}

.osw-form-field textarea:focus {
    border-color: #91a9c2;
    box-shadow: 0 0 0 3px rgba(0, 33, 71, 0.06);
}

.osw-settings-note {
    margin: -12px 0 20px;
    color: var(--osw-muted);
    font-size: 11px;
}

.osw-onboarding-assistant {
    position: relative;
    overflow: hidden;
    color: #e8eef5;
    border-color: rgba(200, 165, 80, 0.2);
    background:
        radial-gradient(circle at 100% 0, rgba(200, 165, 80, 0.2), transparent 34%),
        linear-gradient(145deg, #0a3152 0%, #07192d 62%, #061425 100%);
    box-shadow: 0 22px 60px rgba(2, 23, 43, 0.18);
}

.osw-onboarding-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
}

.osw-settings-form .osw-onboarding-heading h2 {
    margin: 0 0 8px;
    color: #fff;
    font-size: 23px;
}

.osw-onboarding-heading p:not(.osw-eyebrow) {
    max-width: 720px;
    margin: 0;
    color: #aebdcb;
    font-size: 11px;
    line-height: 1.65;
}

.osw-onboarding-reset {
    flex: 0 0 auto;
    padding: 8px 11px;
    color: #cbd6df;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.06);
    font: inherit;
    font-size: 9px;
    font-weight: 700;
    cursor: pointer;
}

.osw-onboarding-reset:disabled {
    opacity: 0.5;
    cursor: wait;
}

.osw-onboarding-messages {
    min-height: 220px;
    max-height: 390px;
    margin-top: 22px;
    overflow-y: auto;
    padding: 19px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 15px;
    background: rgba(2, 16, 29, 0.35);
    scrollbar-color: rgba(200, 165, 80, 0.45) transparent;
}

.osw-onboarding-message {
    display: flex;
    align-items: flex-end;
    gap: 9px;
    margin-top: 12px;
}

.osw-onboarding-message:first-child {
    margin-top: 0;
}

.osw-onboarding-message.is-user {
    justify-content: flex-end;
}

.osw-onboarding-avatar {
    display: grid;
    width: 29px;
    height: 29px;
    place-items: center;
    flex: 0 0 29px;
    color: #07192d;
    border-radius: 9px;
    background: linear-gradient(145deg, #f4e4ae, var(--osw-gold));
    font-size: 9px;
    font-weight: 850;
}

.osw-onboarding-message.is-user .osw-onboarding-avatar {
    color: #d9e3ec;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.08);
}

.osw-onboarding-message p {
    max-width: min(78%, 720px);
    margin: 0;
    padding: 12px 14px;
    color: #dce6ef;
    border-radius: 13px 13px 13px 4px;
    background: rgba(255, 255, 255, 0.08);
    font-size: 11px;
    line-height: 1.65;
    white-space: pre-wrap;
}

.osw-onboarding-message.is-user p {
    color: #07192d;
    border-radius: 13px 13px 4px;
    background: #fff;
}

.osw-onboarding-loading {
    display: flex;
    min-height: 180px;
    align-items: center;
    justify-content: center;
    gap: 9px;
    color: #9fb0bf;
    font-size: 10px;
}

.osw-onboarding-loading span {
    width: 17px;
    height: 17px;
    border: 2px solid rgba(255, 255, 255, 0.16);
    border-top-color: var(--osw-gold);
    border-radius: 50%;
    animation: osw-spin 0.8s linear infinite;
}

.osw-onboarding-compose {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 11px;
    margin-top: 12px;
}

.osw-onboarding-compose textarea {
    width: 100%;
    min-height: 78px;
    resize: vertical;
    padding: 13px 14px;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.07);
    font: inherit;
    font-size: 12px;
    line-height: 1.55;
    outline: none;
}

.osw-onboarding-compose textarea::placeholder {
    color: #8fa2b4;
}

.osw-onboarding-compose textarea:focus {
    border-color: rgba(200, 165, 80, 0.75);
    box-shadow: 0 0 0 3px rgba(200, 165, 80, 0.1);
}

.osw-onboarding-compose textarea:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.osw-onboarding-actions {
    display: grid;
    width: 112px;
    gap: 8px;
}

.osw-voice-button,
.osw-onboarding-send {
    display: flex;
    min-height: 35px;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 0 12px;
    border: 0;
    border-radius: 10px;
    font: inherit;
    font-size: 10px;
    font-weight: 800;
    cursor: pointer;
}

.osw-voice-button {
    color: #e4edf4;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.08);
}

.osw-onboarding-send {
    color: #07192d;
    background: linear-gradient(145deg, #f2dea0, var(--osw-gold));
}

.osw-voice-button:disabled,
.osw-onboarding-send:disabled {
    opacity: 0.48;
    cursor: wait;
}

.osw-mic-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--osw-gold);
    box-shadow: 0 0 0 4px rgba(200, 165, 80, 0.1);
}

.osw-voice-button.is-recording {
    color: #fff;
    border-color: rgba(255, 111, 111, 0.4);
    background: rgba(175, 38, 38, 0.42);
}

.osw-voice-button.is-recording .osw-mic-dot {
    background: #ff6f6f;
    box-shadow: 0 0 0 5px rgba(255, 111, 111, 0.12);
    animation: osw-pulse 1.2s ease-in-out infinite;
}

.osw-onboarding-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 10px;
    color: #9eafbe;
    font-size: 9px;
}

.osw-onboarding-footer > span {
    color: #e2c778;
    font-weight: 750;
}

.osw-onboarding-footer > span.is-complete {
    color: #65d3a1;
}

.osw-onboarding-footer small {
    font-size: 9px;
    text-align: right;
}

.osw-onboarding-error {
    margin: 12px 0 0;
    padding: 10px 12px;
    color: #ffe5e5;
    border: 1px solid rgba(255, 120, 120, 0.26);
    border-radius: 9px;
    background: rgba(151, 32, 32, 0.34);
    font-size: 10px;
}

.osw-company-lookup {
    position: relative;
    z-index: 4;
    overflow: visible;
    border-color: rgba(200, 165, 80, 0.38);
    background:
        radial-gradient(circle at 100% 0, rgba(200, 165, 80, 0.13), transparent 34%),
        #fff;
}

.osw-company-search {
    position: relative;
    display: flex;
    align-items: center;
    max-width: 760px;
}

.osw-company-search > span {
    position: absolute;
    left: 17px;
    z-index: 1;
    color: var(--osw-gold);
    font-size: 22px;
    pointer-events: none;
}

.osw-company-search input {
    width: 100%;
    min-height: 54px;
    padding: 0 18px 0 49px;
    color: var(--osw-text);
    border: 1px solid #d8dee7;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(0, 33, 71, 0.07);
    font: inherit;
    font-size: 14px;
    outline: none;
}

.osw-company-search input:focus {
    border-color: var(--osw-gold);
    box-shadow: 0 0 0 4px rgba(200, 165, 80, 0.12), 0 12px 32px rgba(0, 33, 71, 0.08);
}

.osw-company-search input:disabled {
    color: #9ba6b4;
    background: #f5f7f9;
    cursor: not-allowed;
}

.osw-company-suggestions {
    position: relative;
    z-index: 20;
    width: min(760px, 100%);
    margin-top: 6px;
    overflow: hidden;
    border: 1px solid #e0e5eb;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 22px 55px rgba(0, 33, 71, 0.16);
}

.osw-company-suggestion {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 14px 16px;
    color: var(--osw-text);
    border: 0;
    border-bottom: 1px solid #edf0f3;
    background: #fff;
    text-align: left;
    cursor: pointer;
}

.osw-company-suggestion:last-child {
    border-bottom: 0;
}

.osw-company-suggestion:hover,
.osw-company-suggestion:focus-visible {
    background: #f7f9fc;
    outline: none;
}

.osw-company-suggestion > span:first-child {
    display: grid;
    gap: 4px;
}

.osw-company-suggestion strong {
    color: var(--osw-navy);
    font-size: 12px;
}

.osw-company-suggestion small {
    color: var(--osw-muted);
    font-size: 10px;
}

.osw-company-suggestion-arrow {
    margin-left: 14px;
    color: var(--osw-gold);
    font-size: 17px;
}

.osw-company-suggestion-empty {
    padding: 17px;
    color: var(--osw-muted);
    font-size: 11px;
    line-height: 1.55;
}

.osw-google-attribution {
    display: flex;
    justify-content: flex-end;
    min-height: 28px;
    padding: 7px 12px;
    background: #fff;
}

.osw-google-attribution img {
    display: block;
    width: 120px;
    height: 14px;
    object-fit: contain;
}

.osw-company-progress {
    display: flex;
    align-items: center;
    gap: 13px;
    max-width: 760px;
    margin-top: 14px;
    padding: 14px 16px;
    border: 1px solid #e2e8ee;
    border-radius: 13px;
    background: #f8fafc;
}

.osw-company-progress[hidden] {
    display: none;
}

.osw-company-progress-spinner {
    width: 25px;
    height: 25px;
    flex: 0 0 25px;
    border: 3px solid #e5eaf0;
    border-top-color: var(--osw-gold);
    border-radius: 50%;
    animation: osw-spin 0.8s linear infinite;
}

.osw-company-progress div {
    display: grid;
    gap: 3px;
}

.osw-company-progress strong {
    color: var(--osw-navy);
    font-size: 11px;
}

.osw-company-progress small {
    color: var(--osw-muted);
    font-size: 10px;
}

.osw-company-lookup-status {
    min-height: 16px;
    margin: 11px 0 0;
    color: var(--osw-muted);
    font-size: 10px;
    line-height: 1.55;
}

.osw-company-lookup-status.is-success {
    color: #14734d;
}

.osw-company-lookup-status.is-error {
    color: #a83232;
}

.osw-company-manual-note {
    margin: 4px 0 0;
    color: #9aa3af;
    font-size: 9px;
}

@keyframes osw-spin {
    to {
        transform: rotate(360deg);
    }
}

.osw-settings-state,
.osw-api-state {
    display: inline-flex;
    align-items: center;
    padding: 7px 10px;
    color: #876714;
    border-radius: 20px;
    background: #fff5d8;
    font-size: 10px;
    font-weight: 700;
}

.osw-settings-state.is-ready,
.osw-api-state.is-ready {
    color: #14734d;
    background: #e2f6ed;
}

.osw-api-state {
    margin-top: 18px;
}

.osw-settings-actions {
    display: flex;
    justify-content: flex-end;
}

.osw-personalization-card {
    overflow: visible;
}

.osw-color-control {
    display: flex;
    min-height: 43px;
    align-items: center;
    gap: 11px;
    padding: 6px 10px;
    border: 1px solid #dfe4eb;
    border-radius: 10px;
    background: #fafbfd;
}

.osw-color-control input[type="color"] {
    width: 38px;
    height: 30px;
    padding: 0;
    border: 0;
    border-radius: 7px;
    background: transparent;
    cursor: pointer;
}

.osw-color-control span {
    color: var(--osw-muted);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.osw-theme-fieldset {
    margin: 24px 0 0;
    padding: 0;
    border: 0;
}

.osw-theme-fieldset legend {
    margin-bottom: 11px;
    color: var(--osw-navy);
    font-size: 11px;
    font-weight: 750;
}

.osw-theme-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 11px;
}

.osw-theme-option {
    position: relative;
    display: block;
    padding: 10px;
    border: 1px solid #e0e5eb;
    border-radius: 13px;
    background: #fff;
    cursor: pointer;
    transition: 160ms ease;
}

.osw-theme-option:hover,
.osw-theme-option:has(input:checked) {
    border-color: var(--osw-gold);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--osw-gold) 14%, transparent);
}

.osw-theme-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.osw-theme-option strong,
.osw-theme-option small {
    display: block;
}

.osw-theme-option strong {
    margin-top: 9px;
    color: var(--osw-navy);
    font-size: 10px;
}

.osw-theme-option small {
    margin-top: 3px;
    color: var(--osw-muted);
    font-size: 9px;
}

.osw-theme-preview {
    position: relative;
    display: block;
    height: 74px;
    overflow: hidden;
    border-radius: 9px;
    background: #f2f4f7;
}

.osw-theme-preview i {
    position: absolute;
    inset: 0 auto 0 0;
    width: 29%;
    background: #07192d;
}

.osw-theme-preview b,
.osw-theme-preview em {
    position: absolute;
    right: 8%;
    left: 37%;
    border-radius: 5px;
    background: #fff;
    box-shadow: 0 4px 12px rgba(20, 33, 51, 0.08);
}

.osw-theme-preview b {
    top: 17%;
    height: 24%;
}

.osw-theme-preview em {
    top: 50%;
    height: 34%;
}

.osw-theme-preview::after {
    position: absolute;
    top: 13%;
    left: 9%;
    width: 10%;
    aspect-ratio: 1;
    border-radius: 4px;
    background: var(--osw-gold);
    content: "";
}

.osw-theme-option.is-executive .osw-theme-preview {
    background: #f7f8fa;
}

.osw-theme-option.is-executive .osw-theme-preview i {
    background: #fff;
    box-shadow: inset -1px 0 #dfe4ea;
}

.osw-theme-option.is-executive .osw-theme-preview::after {
    background: #415d78;
}

.osw-theme-option.is-modern .osw-theme-preview {
    background: #111a2b;
}

.osw-theme-option.is-modern .osw-theme-preview i {
    background: #080d18;
}

.osw-theme-option.is-modern .osw-theme-preview b,
.osw-theme-option.is-modern .osw-theme-preview em {
    background: #1d2b43;
}

.osw-theme-option.is-modern .osw-theme-preview::after {
    background: #4b8dff;
}

.osw-theme-option.is-warm .osw-theme-preview {
    background: #f5efe7;
}

.osw-theme-option.is-warm .osw-theme-preview i {
    background: #45362e;
}

.osw-theme-option.is-warm .osw-theme-preview b,
.osw-theme-option.is-warm .osw-theme-preview em {
    background: #fffdf9;
}

.osw-theme-option.is-warm .osw-theme-preview::after {
    background: #b88b5b;
}

.osw-switch-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 20px;
    padding: 14px 15px;
    border: 1px solid #e2e7ed;
    border-radius: 12px;
    background: #fafbfd;
    cursor: pointer;
}

.osw-switch-row > span strong,
.osw-switch-row > span small {
    display: block;
}

.osw-switch-row > span strong {
    color: var(--osw-navy);
    font-size: 11px;
}

.osw-switch-row > span small {
    margin-top: 4px;
    color: var(--osw-muted);
    font-size: 9px;
}

.osw-switch-row input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.osw-switch-row i {
    position: relative;
    width: 42px;
    height: 24px;
    flex: 0 0 42px;
    border-radius: 30px;
    background: #cbd3dc;
    transition: 160ms ease;
}

.osw-switch-row i::after {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 7px rgba(20, 33, 51, 0.2);
    content: "";
    transition: 160ms ease;
}

.osw-switch-row input[type="checkbox"]:checked + i {
    background: var(--osw-gold);
}

.osw-switch-row input[type="checkbox"]:checked + i::after {
    transform: translateX(18px);
}

.osw-contact-summary article small {
    display: block;
    margin-top: 5px;
    color: var(--osw-muted);
    font-size: 9px;
}

.osw-app[data-osw-theme="executive_light"] {
    --osw-navy: #1f3851;
    --osw-navy-deep: #172a3d;
    --osw-bg: #f5f7fa;
    --osw-text: #253444;
}

.osw-app[data-osw-theme="executive_light"] .osw-sidebar {
    color: #20364b;
    border-right: 1px solid #dfe5eb;
    background: #fff;
}

.osw-app[data-osw-theme="executive_light"] .osw-logo span,
.osw-app[data-osw-theme="executive_light"] .osw-nav a,
.osw-app[data-osw-theme="executive_light"] .osw-sidebar-footer a {
    color: #6f7f8e;
}

.osw-app[data-osw-theme="executive_light"] .osw-nav a:hover,
.osw-app[data-osw-theme="executive_light"] .osw-nav a.is-active {
    color: #172a3d;
    background: #eef2f6;
}

.osw-app[data-osw-theme="executive_light"] .osw-sidebar-footer {
    border-top-color: #e2e7ec;
}

.osw-app[data-osw-theme="executive_light"] .osw-user-avatar {
    color: #20364b;
    border-color: #d9e0e7;
    background: #eef2f6;
}

.osw-app[data-osw-theme="modern_tech"] {
    --osw-navy: #0d2d5b;
    --osw-navy-deep: #071322;
    --osw-blue: #337cff;
    --osw-bg: #edf3fb;
    --osw-text: #13253b;
}

.osw-app[data-osw-theme="modern_tech"] .osw-sidebar {
    background: linear-gradient(165deg, #07101f, #0a1b34 58%, #0d274a);
}

.osw-app[data-osw-theme="modern_tech"] .osw-topbar {
    border-bottom-color: #d8e4f2;
    background: rgba(246, 250, 255, 0.9);
}

.osw-app[data-osw-theme="modern_tech"] .osw-card {
    box-shadow: 0 18px 50px rgba(15, 55, 103, 0.09);
}

.osw-app[data-osw-theme="warm_premium"] {
    --osw-navy: #4b382d;
    --osw-navy-deep: #33251f;
    --osw-bg: #f5efe7;
    --osw-text: #3f352f;
    --osw-muted: #81736a;
    --osw-border: #e7ddd2;
}

.osw-app[data-osw-theme="warm_premium"] .osw-sidebar {
    background: linear-gradient(170deg, #4a392f, #352820 65%, #2b211c);
}

.osw-app[data-osw-theme="warm_premium"] .osw-topbar {
    border-bottom-color: #e8ddd2;
    background: rgba(255, 252, 247, 0.9);
}

.osw-app[data-osw-theme="warm_premium"] .osw-card {
    border-color: #eadfd4;
    background: #fffdf9;
}

.osw-find-modal-card {
    width: min(100%, 560px);
}

.osw-dossier-messages {
    margin-top: 27px;
    padding-top: 22px;
    border-top: 1px solid #edf0f4;
}

.osw-dossier-messages > h3 {
    margin: 0 0 12px;
    color: var(--osw-navy);
    font-size: 14px;
}

.osw-dossier-message {
    margin-top: 10px;
    padding: 17px;
    border: 1px solid #e7ebf0;
    border-radius: 12px;
    background: #fafbfd;
}

.osw-message-type {
    display: block;
    margin: 0;
    color: var(--osw-gold);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.7px;
    text-transform: uppercase;
}

.osw-message-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 7px;
}

.osw-message-header .osw-table-action {
    padding: 5px 8px;
    font-size: 9px;
}

.osw-dossier-message strong {
    display: block;
    color: var(--osw-navy);
    font-size: 12px;
}

.osw-dossier-message p {
    margin: 10px 0 0;
    color: #5d6b7c;
    font-size: 11px;
    line-height: 1.7;
    white-space: pre-line;
}

@media (max-width: 1000px) {
    .osw-contact-summary,
    .osw-sales-summary,
    .osw-client-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .osw-theme-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .osw-heading-actions {
        width: 100%;
        align-items: stretch;
        flex-direction: column-reverse;
    }

    .osw-heading-actions .osw-secondary-button,
    .osw-heading-actions .osw-primary-button {
        width: 100%;
    }

    .osw-assistant-ready,
    .osw-settings-state {
        align-self: flex-start;
    }

    .osw-assistant-heading-tools {
        width: 100%;
        align-items: flex-start;
        flex-direction: column-reverse;
    }

    .osw-chat-messages {
        min-height: 390px;
        max-height: none;
        padding: 20px 16px;
    }

    .osw-chat-message {
        max-width: 94%;
    }

    .osw-chat-form {
        align-items: stretch;
        flex-direction: column;
    }

    .osw-chat-form .osw-primary-button {
        flex: 1;
    }

    .osw-chat-actions {
        width: 100%;
    }

    .osw-chat-mic {
        flex: 1;
    }

    .osw-ai-voice-note {
        margin-top: -10px;
        text-align: left;
    }

    .osw-onboarding-heading {
        flex-direction: column;
        gap: 14px;
    }

    .osw-onboarding-reset {
        min-height: 38px;
    }

    .osw-onboarding-messages {
        min-height: 260px;
        max-height: 52vh;
        padding: 15px;
    }

    .osw-onboarding-message p {
        max-width: 88%;
    }

    .osw-onboarding-footer {
        align-items: flex-start;
        flex-direction: column;
        gap: 5px;
    }

    .osw-onboarding-footer small {
        text-align: left;
    }

    .osw-client-card {
        grid-template-columns: 48px minmax(0, 1fr);
    }

    .osw-client-card .osw-secondary-button {
        grid-column: 1 / -1;
    }
}

@media (max-width: 520px) {
    .osw-contact-summary,
    .osw-sales-summary,
    .osw-client-grid {
        grid-template-columns: 1fr;
    }

    .osw-theme-grid {
        grid-template-columns: 1fr;
    }

    .osw-chat-avatar {
        width: 30px;
        height: 30px;
        flex-basis: 30px;
    }

    .osw-report-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .osw-onboarding-compose {
        grid-template-columns: 1fr;
    }

    .osw-onboarding-actions {
        display: flex;
        width: 100%;
    }

    .osw-voice-button,
    .osw-onboarding-send {
        min-height: 44px;
        flex: 1;
    }

    .osw-onboarding-message p {
        max-width: calc(100% - 38px);
    }
}

@media (max-width: 760px) {
    html,
    body.osw-app-page {
        min-height: 100dvh;
        overscroll-behavior-y: none;
    }

    .osw-sidebar {
        height: 100dvh;
        padding-top: max(24px, env(safe-area-inset-top));
        padding-bottom: max(18px, env(safe-area-inset-bottom));
        box-shadow: 18px 0 60px rgba(2, 15, 29, 0.32);
    }

    .osw-topbar {
        position: sticky;
        top: 0;
        z-index: 12;
        height: 62px;
        padding-top: env(safe-area-inset-top);
    }

    .osw-menu-toggle {
        width: 44px;
        height: 44px;
        margin-left: -11px;
    }

    .osw-system-status {
        font-size: 10px;
    }

    .osw-content {
        padding-right: max(18px, env(safe-area-inset-right));
        padding-bottom: max(45px, env(safe-area-inset-bottom));
        padding-left: max(18px, env(safe-area-inset-left));
    }

    .osw-settings-actions .osw-primary-button {
        min-height: 48px;
    }

    .osw-toast {
        right: max(14px, env(safe-area-inset-right));
        bottom: max(14px, env(safe-area-inset-bottom));
        left: max(14px, env(safe-area-inset-left));
        max-width: none;
        text-align: center;
    }
}

/* Końcowe reguły układu aplikacji — muszą pozostać na końcu pliku. */
.osw-assistant-view:not([hidden]) {
    display: flex;
    height: 100dvh;
    max-width: none;
    flex-direction: column;
    overflow: hidden;
    padding-top: 24px;
    padding-bottom: 24px;
}

.osw-assistant-view .osw-assistant-workspace {
    display: flex;
    min-height: 0;
    flex: 1 1 auto;
    flex-direction: column;
    margin-top: 18px;
}

.osw-assistant-view .osw-chat-messages {
    min-height: 0;
    max-height: none;
    flex: 1 1 auto;
}

.osw-companies-table td,
.osw-analysis-block p,
.osw-detail-item dd,
.osw-dossier-message p {
    color: #4f5d6e;
    font-size: 13px;
}

.osw-companies-table th,
.osw-company-domain,
.osw-status-pill,
.osw-table-action {
    font-size: 11px;
}

@media (max-width: 760px) {
    .osw-content {
        padding-top: 22px;
        padding-right: max(16px, env(safe-area-inset-right));
        padding-bottom: max(36px, env(safe-area-inset-bottom));
        padding-left: max(16px, env(safe-area-inset-left));
    }

    .osw-assistant-view:not([hidden]) {
        height: calc(100dvh - 58px - env(safe-area-inset-top));
        padding-top: 14px;
        padding-bottom: max(10px, env(safe-area-inset-bottom));
    }

    .osw-assistant-view .osw-assistant-heading-tools {
        position: absolute;
        top: calc(69px + env(safe-area-inset-top));
        right: max(16px, env(safe-area-inset-right));
        width: auto;
        align-items: center;
        flex-direction: row;
    }

    .osw-assistant-view .osw-chat-messages {
        min-height: 0;
        max-height: none;
        padding: 15px 12px;
    }

    .osw-assistant-view .osw-chat-form {
        align-items: stretch;
        flex-direction: column;
        gap: 9px;
        padding: 10px;
    }

    .osw-assistant-view .osw-ai-voice-note {
        display: none;
    }
}

/* Ostateczna warstwa responsywna. Trzymamy ją na końcu, aby motyw i starsze reguły
   nie mogły ponownie wymusić desktopowych szerokości na telefonie. */
@media (max-width: 760px) {
    html,
    body.osw-app-page {
        width: 100%;
        min-width: 0;
        min-height: 100dvh;
        margin: 0 !important;
        overflow-x: hidden;
        background: var(--osw-bg);
    }

    body.osw-app-page > .wp-site-blocks,
    body.osw-app-page > header,
    body.osw-app-page > footer {
        display: none !important;
    }

    .osw-app,
    .osw-main {
        width: 100%;
        min-width: 0;
        min-height: 100dvh;
        margin: 0;
    }

    .osw-mobile-bar {
        position: sticky;
        top: 0;
        z-index: 35;
        display: flex;
        min-height: calc(58px + env(safe-area-inset-top));
        align-items: center;
        justify-content: space-between;
        padding: env(safe-area-inset-top) 16px 0;
        border-bottom: 1px solid var(--osw-border);
        background: rgba(255, 255, 255, 0.96);
        backdrop-filter: blur(18px);
    }

    .osw-sidebar {
        position: fixed;
        top: 0;
        bottom: 0;
        left: 0;
        z-index: 60;
        width: min(84vw, 300px);
        height: 100dvh;
        margin: 0;
        transform: translateX(-105%);
    }

    .osw-app.is-menu-open .osw-sidebar {
        transform: translateX(0);
    }

    .osw-app.is-menu-open .osw-mobile-backdrop {
        position: fixed;
        inset: 0;
        z-index: 55;
        display: block;
        width: 100%;
        height: 100%;
        padding: 0;
        border: 0;
        background: rgba(2, 15, 29, 0.5);
        backdrop-filter: blur(3px);
    }

    .osw-content {
        width: 100%;
        max-width: none;
        min-width: 0;
        padding: 22px max(16px, env(safe-area-inset-right))
            max(36px, env(safe-area-inset-bottom))
            max(16px, env(safe-area-inset-left));
    }

    .osw-welcome,
    .osw-page-heading,
    .osw-contact-toolbar,
    .osw-heading-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .osw-welcome-actions,
    .osw-search-field,
    .osw-status-filter,
    .osw-status-filter select {
        width: 100%;
        max-width: none;
        min-width: 0;
    }

    .osw-metrics,
    .osw-contact-summary,
    .osw-sales-summary,
    .osw-module-summary,
    .osw-client-grid,
    .osw-two-column,
    .osw-integration-strip,
    .osw-campaign-content,
    .osw-form-grid,
    .osw-settings-grid {
        grid-template-columns: 1fr;
    }

    .osw-table-wrap {
        overflow: visible;
    }

    .osw-companies-table,
    .osw-companies-table tbody,
    .osw-companies-table tr,
    .osw-companies-table td {
        display: block;
        width: 100%;
        min-width: 0;
    }

    .osw-companies-table thead {
        display: none;
    }

    .osw-companies-table tbody {
        display: grid;
        gap: 12px;
        padding: 13px;
        background: var(--osw-bg);
    }

    .osw-companies-table tr {
        padding: 14px;
        border: 1px solid var(--osw-border);
        border-radius: 13px;
        background: var(--osw-white);
        box-shadow: 0 9px 24px rgba(23, 34, 52, 0.05);
    }

    .osw-companies-table td {
        display: grid;
        grid-template-columns: minmax(84px, 0.42fr) minmax(0, 1fr);
        gap: 10px;
        padding: 7px 0;
        border: 0;
        font-size: 13px;
    }

    .osw-action-cell .osw-table-action,
    .osw-inline-actions .osw-primary-button,
    .osw-inline-actions .osw-secondary-button,
    .osw-calendar-actions .osw-secondary-button,
    .osw-heading-actions .osw-secondary-button,
    .osw-heading-actions .osw-primary-button {
        width: 100%;
        min-height: 44px;
    }

    .osw-campaign-heading,
    .osw-calendar-event,
    .osw-mail-item {
        align-items: stretch;
        grid-template-columns: 1fr;
    }

    .osw-campaign-heading,
    .osw-inline-actions,
    .osw-calendar-actions {
        flex-direction: column;
    }

    .osw-assistant-view:not([hidden]) {
        height: calc(100dvh - 58px - env(safe-area-inset-top));
        min-height: 0;
        overflow: hidden;
        padding-top: 14px;
        padding-bottom: max(10px, env(safe-area-inset-bottom));
    }

    .osw-assistant-view .osw-assistant-workspace {
        min-height: 0;
        margin-top: 10px;
        padding: 0;
        overflow: hidden;
    }

    .osw-assistant-view .osw-chat-messages {
        min-height: 0;
        max-height: none;
        flex: 1 1 auto;
        overflow-y: auto;
    }

    .osw-assistant-view .osw-chat-form {
        flex: 0 0 auto;
        padding: 10px;
    }
}

@media (min-width: 421px) and (max-width: 760px) {
    .osw-metrics,
    .osw-contact-summary,
    .osw-sales-summary,
    .osw-module-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* OpenSmart One 3.1 — czytelność, poczta, kalendarz i marka klienta */
.osw-context-assistant-launcher[hidden],
.osw-mail-connection-toast[hidden] {
    display: none !important;
}

.osw-app {
    font-size: 14px;
}

.osw-analysis-block p,
.osw-analysis-summary,
.osw-company-domain,
.osw-detail-list dd,
.osw-companies-table td,
.osw-form-field input,
.osw-form-field select,
.osw-form-field textarea {
    font-size: 13px;
}

.osw-analysis-block p,
.osw-company-domain,
.osw-detail-list dd,
.osw-page-heading > div > p,
.osw-settings-note {
    color: #59687b;
}

.osw-client-brand {
    display: flex;
    align-items: center;
    gap: 11px;
    margin-bottom: 14px;
}

.osw-client-brand > strong {
    color: var(--osw-navy);
    font-size: 14px;
    font-weight: 800;
}

.osw-client-logo {
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    overflow: hidden;
    border: 1px solid #e1e7ee;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(16, 35, 58, .08);
    color: var(--osw-navy);
    font-weight: 850;
}

.osw-client-logo img,
.osw-user-avatar img,
.osw-brand-preview img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.osw-user-avatar {
    overflow: hidden;
}

.osw-user-avatar img {
    object-fit: cover;
}

.osw-brand-assets {
    display: grid;
    grid-template-columns: minmax(220px, .8fr) repeat(2, minmax(230px, 1fr));
    gap: 16px;
    align-items: stretch;
    margin-top: 25px;
    padding-top: 23px;
    border-top: 1px solid #e4e9ef;
}

.osw-brand-assets h3,
.osw-brand-assets p {
    margin: 0 0 7px;
}

.osw-brand-upload {
    position: relative;
    display: flex;
    gap: 13px;
    align-items: center;
    min-height: 92px;
    padding: 14px;
    overflow: hidden;
    border: 1px solid #dfe6ed;
    border-radius: 15px;
    background: #f9fbfd;
    cursor: pointer;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.osw-brand-upload:hover {
    transform: translateY(-1px);
    border-color: var(--osw-gold);
    box-shadow: 0 10px 28px rgba(20, 36, 56, .08);
}

.osw-brand-upload > span:last-of-type {
    display: grid;
    gap: 4px;
}

.osw-brand-upload small {
    color: #6f7c8d;
    line-height: 1.4;
}

.osw-brand-upload input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.osw-brand-preview {
    display: grid;
    flex: 0 0 auto;
    width: 60px;
    height: 60px;
    place-items: center;
    overflow: hidden;
    border: 1px solid #dce4ec;
    border-radius: 14px;
    background: #fff;
    color: #68778a;
    font-size: 11px;
    font-weight: 800;
}

.osw-brand-preview.is-icon {
    border-radius: 50%;
}

.osw-onboarding-messages {
    border-color: rgba(7, 25, 45, .12);
    background: #eef3f8;
}

.osw-onboarding-message.is-assistant p {
    border-color: #dce4ec;
    background: #fff;
    color: #263548;
}

.osw-onboarding-message.is-user p {
    background: var(--osw-navy);
    color: #fff;
}

.osw-onboarding-messages .osw-onboarding-loading {
    color: #657487;
}

.osw-onboarding-compose textarea {
    border-color: rgba(255, 255, 255, .24);
    background: rgba(255, 255, 255, .11);
}

.osw-personalization-card {
    border-color: #dfe6ed;
    background: #fff;
}

.osw-mail-heading-right {
    position: relative;
    display: grid;
    justify-items: end;
    gap: 10px;
    min-width: min(100%, 600px);
}

.osw-mail-heading-actions {
    justify-content: flex-end;
    flex-wrap: wrap;
}

.osw-mail-account-identity {
    min-width: 230px;
}

.osw-mail-account-identity > span:not([hidden]) {
    display: grid;
    gap: 2px;
    min-height: 46px;
    padding: 8px 14px;
    border: 1px solid #dce4ec;
    border-radius: 13px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(19, 35, 54, .05);
}

.osw-mail-account-identity strong {
    color: var(--osw-navy);
    font-size: 12px;
}

.osw-mail-account-identity span span {
    color: #667589;
    font-size: 12px;
}

.osw-mail-account-identity select {
    width: 100%;
    min-width: 250px;
    min-height: 46px;
    padding: 0 42px 0 14px;
    border: 1px solid #dce4ec;
    border-radius: 13px;
    background-color: #fff;
    color: var(--osw-navy);
    font: inherit;
    font-weight: 750;
    box-shadow: 0 8px 24px rgba(19, 35, 54, .05);
}

.osw-mail-connection-toast {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 7px 12px;
    border: 1px solid #f0d899;
    border-radius: 999px;
    background: #fff8e5;
    color: #755a13;
    font-size: 12px;
    font-weight: 750;
    animation: osw-mail-state-in .25s ease both;
}

.osw-mail-connection-toast.is-ready {
    border-color: #bde7d3;
    background: #edf9f4;
    color: #08734a;
}

.osw-mail-connection-toast.is-ready::before {
    width: 7px;
    height: 7px;
    margin-right: 7px;
    border-radius: 50%;
    background: #1daf73;
    content: "";
}

@keyframes osw-mail-state-in {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

.osw-module-list-card {
    padding: 0;
    overflow: hidden;
}

.osw-mail-list {
    display: grid;
    gap: 0;
}

.osw-mail-item {
    display: grid;
    grid-template-columns: 46px minmax(160px, .55fr) minmax(260px, 1.35fr) minmax(125px, auto);
    gap: 14px;
    align-items: center;
    min-height: 84px;
    padding: 15px 20px;
    border: 0;
    border-bottom: 1px solid #e7ebf0;
    background: #fff;
    color: #233246;
    transition: background .15s ease;
}

.osw-mail-item:last-child {
    border-bottom: 0;
}

.osw-mail-item:hover {
    background: #f8fafc;
}

.osw-mail-item.is-unread {
    border-left: 3px solid var(--osw-gold);
    background: #f5f8fc;
}

.osw-mail-avatar {
    display: grid !important;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 13px;
    background: #eaf0f6;
    color: var(--osw-navy) !important;
    font-size: 12px !important;
    font-weight: 850;
}

.osw-mail-correspondent,
.osw-mail-preview,
.osw-mail-meta {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.osw-mail-correspondent strong,
.osw-mail-preview strong {
    overflow: hidden;
    color: var(--osw-navy);
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.osw-mail-correspondent span,
.osw-mail-preview span,
.osw-mail-meta time {
    overflow: hidden;
    color: #6b788a;
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.osw-mail-preview span {
    max-width: 100%;
}

.osw-mail-meta {
    justify-items: end;
}

.osw-mail-attachment {
    padding: 3px 7px;
    border-radius: 999px;
    background: #eef2f6;
    color: #526175 !important;
    font-size: 10px !important;
    font-weight: 750;
}

.osw-calendar-board {
    margin-bottom: 18px;
}

.osw-calendar-board-heading {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: center;
    margin-bottom: 20px;
}

.osw-calendar-board-heading h2,
.osw-calendar-month h3 {
    margin: 0;
    color: var(--osw-navy);
}

.osw-calendar-navigation {
    display: flex;
    gap: 8px;
}

.osw-calendar-navigation button {
    min-height: 38px;
    padding: 0 13px;
    border: 1px solid #dae2eb;
    border-radius: 10px;
    background: #fff;
    color: var(--osw-navy);
    font-weight: 750;
    cursor: pointer;
}

.osw-calendar-months {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.osw-calendar-month {
    min-width: 0;
    padding: 15px;
    border: 1px solid #e1e7ee;
    border-radius: 15px;
    background: #fbfcfe;
}

.osw-calendar-month.is-current {
    border-color: color-mix(in srgb, var(--osw-gold) 55%, #e1e7ee);
    background: #fff;
    box-shadow: 0 10px 30px rgba(27, 43, 62, .06);
}

.osw-calendar-month h3 {
    margin-bottom: 12px;
    text-align: center;
    font-size: 14px;
    text-transform: capitalize;
}

.osw-calendar-weekdays,
.osw-calendar-days {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 4px;
}

.osw-calendar-weekdays {
    margin-bottom: 5px;
}

.osw-calendar-weekdays span {
    padding: 4px 0;
    color: #7a8797;
    font-size: 10px;
    font-weight: 800;
    text-align: center;
}

.osw-calendar-day {
    position: relative;
    display: grid;
    min-width: 0;
    min-height: 44px;
    place-items: center;
    padding: 4px 2px;
    border: 1px solid transparent;
    border-radius: 9px;
    background: transparent;
    color: #2d3c4e;
    cursor: pointer;
}

.osw-calendar-day:hover {
    border-color: #dbe3ec;
    background: #f0f4f8;
}

.osw-calendar-day.is-today {
    border-color: var(--osw-gold);
    color: var(--osw-navy);
    font-weight: 850;
}

.osw-calendar-day.has-events {
    background: #edf4fb;
}

.osw-calendar-event-markers {
    display: flex;
    gap: 2px;
    align-items: center;
    min-height: 5px;
}

.osw-calendar-event-markers i {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--osw-navy);
}

.osw-calendar-event-markers small {
    color: #526175;
    font-size: 8px;
}

.osw-company-google-picker {
    position: relative;
    margin-bottom: 18px;
    padding: 15px;
    border: 1px solid #dfe6ed;
    border-radius: 14px;
    background: #f8fafc;
}

.osw-company-google-picker > p {
    min-height: 18px;
    margin: 7px 0 0;
    color: #697789;
    font-size: 12px;
}

.osw-company-google-picker > p.is-success {
    color: #08734a;
}

.osw-company-google-picker > p.is-error {
    color: #a63845;
}

.osw-company-google-picker .osw-company-suggestions {
    top: calc(100% - 15px);
    right: 15px;
    left: 15px;
}

.osw-sales-message-status {
    padding: 5px 9px;
    border-radius: 999px;
    background: #eef2f6;
    color: #5d6a7a;
    font-size: 10px;
    font-weight: 800;
}

.osw-sales-message-status.is-sent {
    background: #e6f7ef;
    color: #08734a;
}

.osw-sales-message-status.is-rejected {
    background: #f7e9eb;
    color: #9b3140;
}

.osw-sales-message-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 15px;
}

.osw-sales-message-actions button {
    min-height: 38px;
    padding: 0 14px;
}

.osw-plain-button.is-danger {
    color: #a63845;
}

.osw-context-assistant {
    border-left: 1px solid #dce4ec;
    background: #fff;
}

.osw-context-assistant header {
    background: linear-gradient(145deg, #fff, #f7f9fc);
}

.osw-context-assistant-body {
    background: #f2f5f8;
}

.osw-context-assistant form {
    padding: 14px;
    background: #fff;
}

.osw-context-compose {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 46px auto;
    gap: 8px;
    align-items: end;
    padding: 7px;
    border: 1px solid #d9e2eb;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(20, 37, 56, .05);
}

.osw-context-assistant .osw-context-compose textarea {
    min-height: 48px;
    max-height: 130px;
    padding: 11px 8px;
    border: 0;
    outline: 0;
    resize: none;
}

.osw-context-mic,
.osw-context-send {
    display: grid;
    min-width: 46px;
    height: 46px;
    place-items: center;
    border: 0;
    border-radius: 12px;
    cursor: pointer;
}

.osw-context-mic {
    border: 1px solid #d8e1ea;
    background: #f5f8fb;
    color: var(--osw-navy);
}

.osw-context-mic svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
}

.osw-context-mic.is-recording {
    border-color: #ef9aa5;
    background: #fff0f2;
    color: #b72d40;
    animation: osw-recording-pulse 1.2s ease infinite;
}

.osw-context-send {
    padding: 0 15px;
    background: var(--osw-navy);
    color: #fff;
    font-weight: 800;
}

@keyframes osw-recording-pulse {
    50% { box-shadow: 0 0 0 6px rgba(183, 45, 64, .1); }
}

@media (max-width: 1050px) {
    .osw-brand-assets {
        grid-template-columns: 1fr 1fr;
    }

    .osw-brand-assets > div:first-child {
        grid-column: 1 / -1;
    }

    .osw-mail-item {
        grid-template-columns: 42px minmax(150px, .6fr) minmax(220px, 1.2fr);
    }

    .osw-mail-meta {
        grid-column: 2 / -1;
        grid-template-columns: 1fr auto;
        justify-items: start;
    }
}

@media (max-width: 760px) {
    .osw-brand-assets {
        grid-template-columns: 1fr;
    }

    .osw-brand-assets > div:first-child {
        grid-column: auto;
    }

    .osw-mail-heading-right,
    .osw-mail-heading-actions,
    .osw-mail-account-identity,
    .osw-mail-account-identity select {
        width: 100%;
        min-width: 0;
    }

    .osw-mail-heading-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .osw-mail-account-identity {
        grid-column: 1 / -1;
    }

    .osw-mail-heading-actions .osw-icon-button {
        width: 100%;
    }

    .osw-mail-connection-toast {
        justify-self: stretch;
    }

    .osw-mail-item {
        grid-template-columns: 42px minmax(0, 1fr);
        gap: 10px;
        padding: 14px;
    }

    .osw-mail-correspondent,
    .osw-mail-preview,
    .osw-mail-meta {
        grid-column: 2;
    }

    .osw-mail-meta {
        display: flex;
        justify-content: space-between;
    }

    .osw-calendar-board-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .osw-calendar-navigation {
        width: 100%;
        justify-content: space-between;
    }

    .osw-calendar-months {
        grid-template-columns: 1fr;
    }

    .osw-calendar-month.is-previous,
    .osw-calendar-month.is-next {
        display: none;
    }

    .osw-calendar-day {
        min-height: 48px;
    }

    .osw-context-compose {
        grid-template-columns: minmax(0, 1fr) 46px;
    }

    .osw-context-send {
        grid-column: 1 / -1;
        width: 100%;
    }
}

/* OpenSmart One 3.2.1 — końcowa warstwa estetyczna.
   Reguły pozostają na końcu, aby nie zostały nadpisane przez starsze style. */
.osw-content {
    padding-top: 14px;
}

.osw-assistant-view:not([hidden]) {
    padding-top: 14px;
}

.osw-sidebar {
    border-right: 1px solid #102f4a;
    background: linear-gradient(180deg, #071d32 0%, #06182a 100%);
    box-shadow: 12px 0 38px rgba(1, 15, 31, .12);
}

.osw-logo {
    min-height: 88px;
    margin: -28px -22px 0;
    padding: 20px 22px 18px;
    flex-wrap: wrap;
    color: #002147;
    border-bottom: 1px solid #d8dee5;
    background: #eef1f4;
    box-shadow: 0 10px 26px rgba(1, 15, 31, .09);
}

.osw-logo strong {
    color: #002147;
    font-weight: 700;
}

.osw-logo span {
    color: #9b7524;
    font-weight: 700;
}

.osw-brand-mark {
    display: grid;
    width: 46px;
    height: 46px;
    padding: 0;
    overflow: hidden;
    place-items: center;
    border: 0;
    border-radius: 12px;
    background: transparent;
    box-shadow: none;
}

.osw-brand-mark img {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 12px;
    object-fit: contain;
    filter: none;
}

.osw-workspace-switcher {
    flex: 1 0 100%;
    margin-top: 13px;
}

.osw-nav {
    gap: 8px;
    margin-top: 27px;
}

.osw-nav a {
    color: #d2dbe4;
    border: 1px solid #24425c;
    background: #102e49;
    box-shadow: 0 5px 14px rgba(0, 10, 23, .12);
}

.osw-nav a > span:first-child {
    color: #d4b35e;
}

.osw-nav a:hover {
    color: #fff;
    border-color: #355673;
    background: #183a58;
}

.osw-nav a.is-active {
    color: #092642;
    border-color: #d7dee5;
    background: linear-gradient(135deg, #fff 0%, #edf1f5 100%);
    box-shadow: inset 4px 0 0 var(--osw-gold), 0 9px 22px rgba(0, 10, 24, .18);
}

.osw-nav a.is-active > span:first-child {
    color: #a47d25;
}

.osw-sidebar-footer {
    min-height: 80px;
    margin: 18px -22px -22px;
    padding: 16px 22px 18px;
    color: #002147;
    border-top: 1px solid #d3dae1;
    background: #e6eaee;
    box-shadow: 0 -10px 28px rgba(1, 15, 31, .1);
}

.osw-sidebar-footer strong {
    color: #002147;
    font-size: 14px;
    font-weight: 650;
}

.osw-sidebar-footer a {
    color: #607184;
    font-size: 11px;
    font-weight: 600;
}

.osw-user-avatar {
    color: #002147;
    border-color: #cbd4dd;
    background: #fff;
    box-shadow: 0 5px 15px rgba(20, 39, 58, .08);
}

.osw-app[data-osw-theme="executive_light"] .osw-sidebar {
    border-right-color: #cfd7df;
    background: #dfe5eb;
    box-shadow: 12px 0 34px rgba(25, 42, 60, .07);
}

.osw-app[data-osw-theme="executive_light"] .osw-logo {
    color: #002147;
    background: #f3f5f7;
}

.osw-app[data-osw-theme="executive_light"] .osw-logo strong {
    color: #002147;
}

.osw-app[data-osw-theme="executive_light"] .osw-logo span {
    color: #9b7524;
}

.osw-app[data-osw-theme="executive_light"] .osw-nav a {
    color: #40556a;
    border-color: #d2dae2;
    background: #f8fafc;
    box-shadow: 0 5px 14px rgba(27, 45, 64, .05);
}

.osw-app[data-osw-theme="executive_light"] .osw-nav a:hover {
    color: #172a3d;
    border-color: #c1ccd6;
    background: #fff;
}

.osw-app[data-osw-theme="executive_light"] .osw-nav a.is-active {
    color: #fff;
    border-color: #17334e;
    background: linear-gradient(135deg, #173b5d, #092642);
    box-shadow: inset 4px 0 0 var(--osw-gold), 0 9px 22px rgba(27, 45, 64, .14);
}

.osw-app[data-osw-theme="executive_light"] .osw-sidebar-footer {
    color: #002147;
    border-top-color: #ccd5de;
    background: #e9edf1;
}

.osw-app[data-osw-theme="modern_tech"] .osw-logo,
.osw-app[data-osw-theme="warm_premium"] .osw-logo {
    color: #002147;
    background: #eef1f4;
}

.osw-app[data-osw-theme="modern_tech"] .osw-logo strong,
.osw-app[data-osw-theme="warm_premium"] .osw-logo strong {
    color: #002147;
}

.osw-app[data-osw-theme="modern_tech"] .osw-logo span,
.osw-app[data-osw-theme="warm_premium"] .osw-logo span {
    color: #9b7524;
}

.osw-app[data-osw-theme="modern_tech"] .osw-sidebar-footer,
.osw-app[data-osw-theme="warm_premium"] .osw-sidebar-footer {
    color: #002147;
    border-top-color: #d3dae1;
    background: #e6eaee;
}

.osw-app[data-osw-theme="modern_tech"] .osw-sidebar-footer strong,
.osw-app[data-osw-theme="warm_premium"] .osw-sidebar-footer strong {
    color: #002147;
}

.osw-app[data-osw-theme="modern_tech"] .osw-sidebar-footer a,
.osw-app[data-osw-theme="warm_premium"] .osw-sidebar-footer a {
    color: #607184;
}

.osw-mobile-brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.osw-mobile-brand img {
    width: 29px;
    height: 29px;
    border-radius: 8px;
}

.osw-client-brand {
    gap: 18px;
    margin-bottom: 16px;
}

.osw-client-logo {
    width: 164px;
    height: 76px;
    padding: 8px 14px;
    flex: 0 0 164px;
    border-radius: 15px;
}

.osw-client-brand > strong {
    color: var(--osw-navy);
    font-size: 20px;
    font-weight: 500;
    letter-spacing: -.2px;
    line-height: 1.25;
}

.osw-brand-preview.is-logo {
    width: 150px;
    height: 72px;
    border-radius: 13px;
}

.osw-onboarding-heading-actions {
    display: flex;
    flex: 0 0 auto;
    gap: 9px;
    align-items: center;
}

.osw-onboarding-toggle {
    min-height: 42px;
    padding: 0 16px;
}

.osw-onboarding-body {
    display: grid;
    gap: 14px;
    margin-top: 18px;
}

.osw-onboarding-body[hidden] {
    display: none !important;
}

.osw-onboarding-assistant {
    transition: padding .22s ease, box-shadow .22s ease;
}

.osw-onboarding-assistant.is-collapsed {
    padding-top: 21px;
    padding-bottom: 21px;
}

.osw-onboarding-assistant.is-collapsed .osw-onboarding-heading p:not(.osw-eyebrow),
.osw-onboarding-assistant.is-collapsed .osw-onboarding-reset {
    display: none;
}

.osw-onboarding-assistant.is-collapsed .osw-onboarding-heading h2 {
    margin-bottom: 0;
    font-size: 20px;
}

.osw-company-search-more {
    display: block;
    width: calc(100% - 20px);
    min-height: 40px;
    margin: 8px 10px;
    border: 1px solid color-mix(in srgb, var(--osw-gold) 55%, #dce4ec);
    border-radius: 11px;
    background: #fffaf0;
    color: var(--osw-navy);
    font: inherit;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
}

.osw-company-search-more:hover {
    border-color: var(--osw-gold);
    background: #fff6df;
}

.osw-view[data-osw-view="mail"] .osw-page-heading {
    margin-bottom: 25px;
}

.osw-view[data-osw-view="mail"] .osw-page-heading > div > p:last-child {
    margin-top: 9px;
    line-height: 1.5;
}

.osw-view[data-osw-view="mail"] .osw-mail-tabs {
    margin: 0 0 14px;
}

.osw-view[data-osw-view="mail"] .osw-module-list-card {
    padding: 12px;
    border: 0;
    background: rgba(255, 255, 255, .38);
    box-shadow: none;
}

.osw-view[data-osw-view="mail"] .osw-mail-list {
    gap: 9px;
}

.osw-view[data-osw-view="mail"] .osw-mail-item {
    grid-template-columns: 38px minmax(150px, .55fr) minmax(240px, 1.35fr) minmax(115px, auto);
    gap: 12px;
    min-height: 66px;
    padding: 10px 14px;
    border: 1px solid #e1e7ee;
    border-radius: 13px;
    background: #fff;
    box-shadow: 0 5px 18px rgba(19, 35, 54, .045);
}

.osw-view[data-osw-view="mail"] .osw-mail-item:hover {
    transform: translateY(-1px);
    border-color: #ced8e3;
    box-shadow: 0 9px 24px rgba(19, 35, 54, .075);
}

.osw-view[data-osw-view="mail"] .osw-mail-item.is-unread {
    border-color: #cbdcf1;
    background: #f7faff;
}

.osw-view[data-osw-view="mail"] .osw-mail-avatar {
    width: 34px;
    height: 34px;
    font-size: 10px;
}

.osw-view[data-osw-view="mail"] .osw-mail-correspondent,
.osw-view[data-osw-view="mail"] .osw-mail-preview {
    gap: 2px;
}

.osw-view[data-osw-view="mail"] .osw-mail-correspondent strong,
.osw-view[data-osw-view="mail"] .osw-mail-preview strong {
    font-size: 12px;
}

.osw-view[data-osw-view="mail"] .osw-mail-correspondent span,
.osw-view[data-osw-view="mail"] .osw-mail-preview span,
.osw-view[data-osw-view="mail"] .osw-mail-meta {
    font-size: 11px;
}

@media (max-width: 1050px) {
    .osw-view[data-osw-view="mail"] .osw-mail-item {
        grid-template-columns: 38px minmax(145px, .6fr) minmax(210px, 1.2fr);
    }
}

@media (max-width: 760px) {
    .osw-content,
    .osw-assistant-view:not([hidden]) {
        padding-top: 12px;
    }

    .osw-logo {
        margin-top: calc(-1 * max(24px, env(safe-area-inset-top)));
        padding-top: max(18px, env(safe-area-inset-top));
    }

    .osw-client-logo {
        width: 116px;
        height: 58px;
        flex-basis: 116px;
        padding: 6px 10px;
    }

    .osw-client-brand {
        gap: 13px;
    }

    .osw-client-brand > strong {
        font-size: 17px;
    }

    .osw-onboarding-heading-actions {
        width: 100%;
    }

    .osw-onboarding-heading-actions .osw-secondary-button,
    .osw-onboarding-heading-actions .osw-onboarding-reset {
        flex: 1;
    }

    .osw-view[data-osw-view="mail"] .osw-page-heading {
        margin-bottom: 18px;
    }

    .osw-view[data-osw-view="mail"] .osw-module-list-card {
        padding: 8px;
    }

    .osw-view[data-osw-view="mail"] .osw-mail-item {
        grid-template-columns: 36px minmax(0, 1fr);
        gap: 7px 10px;
        padding: 11px;
    }
}

/* OpenSmart One 3.3 — usuwanie danych i cztery dopracowane style Biura. */
.osw-content,
.osw-assistant-view:not([hidden]) {
    padding-top: 6px;
}

.osw-table-action.is-danger,
.osw-mail-delete {
    color: #a83b48;
    border-color: #ebcdd2;
    background: #fff7f8;
}

.osw-table-action.is-danger:hover,
.osw-mail-delete:hover {
    color: #8d2936;
    border-color: #dcaeb6;
    background: #ffedef;
}

.osw-client-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.osw-danger-button {
    min-height: 42px;
    padding: 0 15px;
    color: #a63845;
    border: 1px solid #e5bdc4;
    border-radius: 11px;
    background: #fff7f8;
    font: inherit;
    font-size: 12px;
    font-weight: 750;
    cursor: pointer;
}

.osw-danger-button:hover {
    border-color: #d99ea8;
    background: #ffedef;
}

.osw-danger-button:disabled,
.osw-table-action:disabled,
.osw-mail-delete:disabled {
    opacity: .55;
    cursor: wait;
}

.osw-mail-item[role="button"] {
    cursor: pointer;
}

.osw-mail-item[role="button"]:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--osw-gold) 36%, transparent);
    outline-offset: 2px;
}

.osw-mail-delete {
    min-height: 28px;
    padding: 0 9px;
    border-style: solid;
    border-width: 1px;
    border-radius: 8px;
    font: inherit;
    font-size: 10px;
    font-weight: 750;
    cursor: pointer;
}

/* Styl 1: silniejsza hierarchia oryginalnego OpenSmart Premium. */
.osw-app[data-osw-theme="open_smart"] .osw-sidebar {
    border-right-color: #17344e;
    background: linear-gradient(180deg, #020d18 0%, #041424 100%);
}

.osw-app[data-osw-theme="open_smart"] .osw-nav a {
    color: #e0e8ef;
    border-color: #315571;
    background: #163b59;
    box-shadow: 0 7px 18px rgba(0, 7, 16, .2);
}

.osw-app[data-osw-theme="open_smart"] .osw-nav a:hover {
    color: #fff;
    border-color: #47708f;
    background: #214b6b;
}

.osw-app[data-osw-theme="open_smart"] .osw-nav a.is-active {
    color: #08243e;
    border-color: #fff;
    background: linear-gradient(135deg, #fff 0%, #e9eef3 100%);
    box-shadow: inset 4px 0 0 var(--osw-gold), 0 11px 26px rgba(0, 6, 15, .28);
}

/* Styl 3: Nocny Błękit — głębia, standardowe materiały i oszczędne szkło. */
.osw-app[data-osw-theme="modern_tech"] {
    --osw-navy: #1763a6 !important;
    --osw-navy-deep: #061522 !important;
    --osw-gold: #d0aa4d !important;
    --osw-bg: #061522 !important;
    --osw-text: #eaf2fa !important;
    --osw-muted: #9bb0c5 !important;
    --osw-border: rgba(142, 178, 210, .2) !important;
}

.osw-app[data-osw-theme="modern_tech"] .osw-main {
    background:
        radial-gradient(circle at 88% 2%, rgba(37, 111, 186, .24), transparent 30%),
        radial-gradient(circle at 34% 82%, rgba(18, 75, 126, .18), transparent 38%),
        #061522;
}

.osw-app[data-osw-theme="modern_tech"] .osw-sidebar {
    border-right-color: rgba(87, 145, 196, .25);
    background:
        linear-gradient(180deg, rgba(4, 17, 30, .96), rgba(5, 22, 38, .98)),
        #04111e;
}

.osw-app[data-osw-theme="modern_tech"] .osw-nav a {
    color: #c9d8e7;
    border-color: rgba(102, 155, 201, .24);
    background: rgba(20, 54, 83, .78);
    box-shadow: inset 0 1px rgba(255, 255, 255, .04), 0 7px 18px rgba(0, 5, 13, .2);
    backdrop-filter: blur(14px);
}

.osw-app[data-osw-theme="modern_tech"] .osw-nav a:hover {
    color: #fff;
    border-color: rgba(104, 176, 238, .46);
    background: rgba(29, 76, 115, .88);
}

.osw-app[data-osw-theme="modern_tech"] .osw-nav a.is-active {
    color: #fff;
    border-color: rgba(108, 188, 255, .58);
    background: linear-gradient(135deg, rgba(27, 108, 177, .96), rgba(13, 61, 104, .96));
    box-shadow: inset 4px 0 0 #d5b55f, 0 12px 28px rgba(0, 7, 18, .35);
}

.osw-app[data-osw-theme="modern_tech"] .osw-card,
.osw-app[data-osw-theme="modern_tech"] .osw-metrics article,
.osw-app[data-osw-theme="modern_tech"] .osw-contact-summary article,
.osw-app[data-osw-theme="modern_tech"] .osw-sales-summary article,
.osw-app[data-osw-theme="modern_tech"] .osw-client-card,
.osw-app[data-osw-theme="modern_tech"] .osw-calendar-month,
.osw-app[data-osw-theme="modern_tech"] .osw-personalization-card {
    color: #eaf2fa;
    border-color: rgba(116, 159, 198, .22);
    background: rgba(10, 33, 53, .88);
    box-shadow: inset 0 1px rgba(255, 255, 255, .045), 0 20px 55px rgba(0, 6, 16, .24);
    backdrop-filter: blur(18px);
}

.osw-app[data-osw-theme="modern_tech"] .osw-content h1,
.osw-app[data-osw-theme="modern_tech"] .osw-content h2,
.osw-app[data-osw-theme="modern_tech"] .osw-content h3,
.osw-app[data-osw-theme="modern_tech"] .osw-content strong,
.osw-app[data-osw-theme="modern_tech"] .osw-company-name,
.osw-app[data-osw-theme="modern_tech"] .osw-form-field > span {
    color: #f3f8fd;
}

.osw-app[data-osw-theme="modern_tech"] .osw-content p,
.osw-app[data-osw-theme="modern_tech"] .osw-company-domain,
.osw-app[data-osw-theme="modern_tech"] .osw-detail-list dd,
.osw-app[data-osw-theme="modern_tech"] .osw-settings-note,
.osw-app[data-osw-theme="modern_tech"] .osw-contact-summary span,
.osw-app[data-osw-theme="modern_tech"] .osw-sales-summary span {
    color: #9fb2c6;
}

.osw-app[data-osw-theme="modern_tech"] .osw-search-field,
.osw-app[data-osw-theme="modern_tech"] .osw-status-filter select,
.osw-app[data-osw-theme="modern_tech"] .osw-form-field input,
.osw-app[data-osw-theme="modern_tech"] .osw-form-field select,
.osw-app[data-osw-theme="modern_tech"] .osw-form-field textarea,
.osw-app[data-osw-theme="modern_tech"] .osw-sales-status {
    color: #eaf2fa;
    border-color: rgba(126, 164, 198, .25);
    background-color: rgba(7, 26, 43, .84);
}

.osw-app[data-osw-theme="modern_tech"] select option {
    color: #eaf2fa;
    background: #0a2339;
}

.osw-app[data-osw-theme="modern_tech"] .osw-contact-toolbar,
.osw-app[data-osw-theme="modern_tech"] .osw-companies-table th,
.osw-app[data-osw-theme="modern_tech"] .osw-companies-table td {
    border-color: rgba(130, 166, 198, .16);
}

.osw-app[data-osw-theme="modern_tech"] .osw-companies-table th {
    color: #9eb2c7;
    background: rgba(7, 25, 42, .9);
}

.osw-app[data-osw-theme="modern_tech"] .osw-companies-table td {
    color: #b9c9d8;
}

.osw-app[data-osw-theme="modern_tech"] .osw-companies-table tbody tr:hover {
    background: rgba(32, 78, 116, .3);
}

.osw-app[data-osw-theme="modern_tech"] .osw-secondary-button,
.osw-app[data-osw-theme="modern_tech"] .osw-table-action {
    color: #d9e7f4;
    border-color: rgba(127, 169, 205, .3);
    background: rgba(17, 48, 75, .88);
}

.osw-app[data-osw-theme="modern_tech"] .osw-primary-button {
    background: linear-gradient(135deg, #2378bd, #15538a);
    box-shadow: 0 12px 28px rgba(7, 72, 127, .32);
}

.osw-app[data-osw-theme="modern_tech"] .osw-onboarding-messages,
.osw-app[data-osw-theme="modern_tech"] .osw-context-assistant-body {
    border-color: rgba(122, 160, 195, .2);
    background: rgba(5, 23, 39, .82);
}

/* Styl 4: Perłowy Minimalizm — neutralna perła, grafit i szampańskie złoto. */
.osw-app[data-osw-theme="warm_premium"] {
    --osw-navy: #243546 !important;
    --osw-navy-deep: #1c2630 !important;
    --osw-gold: #b89542 !important;
    --osw-bg: #f0efeb !important;
    --osw-text: #29323b !important;
    --osw-muted: #737a80 !important;
    --osw-border: #deddd7 !important;
}

.osw-app[data-osw-theme="warm_premium"] .osw-main {
    background:
        radial-gradient(circle at 90% 0%, rgba(212, 193, 146, .22), transparent 30%),
        linear-gradient(145deg, #f5f4f1 0%, #ecebe7 100%);
}

.osw-app[data-osw-theme="warm_premium"] .osw-sidebar {
    border-right-color: #34414d;
    background: linear-gradient(180deg, #202a34 0%, #171f27 100%);
}

.osw-app[data-osw-theme="warm_premium"] .osw-nav a {
    color: #dfe4e7;
    border-color: #46535f;
    background: #303c48;
    box-shadow: 0 7px 18px rgba(7, 12, 17, .16);
}

.osw-app[data-osw-theme="warm_premium"] .osw-nav a:hover {
    color: #fff;
    border-color: #64717c;
    background: #3b4854;
}

.osw-app[data-osw-theme="warm_premium"] .osw-nav a.is-active {
    color: #26313b;
    border-color: #e6d8b1;
    background: linear-gradient(135deg, #fffdf7, #e9dfc7);
    box-shadow: inset 4px 0 0 #b89542, 0 11px 25px rgba(9, 13, 18, .24);
}

.osw-app[data-osw-theme="warm_premium"] .osw-nav a > span:first-child {
    color: #d2b465;
}

.osw-app[data-osw-theme="warm_premium"] .osw-nav a.is-active > span:first-child {
    color: #9f7e31;
}

.osw-app[data-osw-theme="warm_premium"] .osw-card,
.osw-app[data-osw-theme="warm_premium"] .osw-metrics article,
.osw-app[data-osw-theme="warm_premium"] .osw-contact-summary article,
.osw-app[data-osw-theme="warm_premium"] .osw-sales-summary article,
.osw-app[data-osw-theme="warm_premium"] .osw-client-card,
.osw-app[data-osw-theme="warm_premium"] .osw-calendar-month,
.osw-app[data-osw-theme="warm_premium"] .osw-personalization-card {
    border-color: rgba(208, 204, 193, .88);
    background: rgba(255, 255, 253, .94);
    box-shadow: 0 17px 45px rgba(43, 48, 52, .075);
}

.osw-app[data-osw-theme="warm_premium"] .osw-eyebrow {
    color: #a98432;
}

.osw-app[data-osw-theme="warm_premium"] .osw-primary-button {
    background: linear-gradient(135deg, #344a5d, #223341);
    box-shadow: 0 11px 25px rgba(30, 43, 54, .18);
}

.osw-app[data-osw-theme="warm_premium"] .osw-search-field,
.osw-app[data-osw-theme="warm_premium"] .osw-status-filter select,
.osw-app[data-osw-theme="warm_premium"] .osw-form-field input,
.osw-app[data-osw-theme="warm_premium"] .osw-form-field select,
.osw-app[data-osw-theme="warm_premium"] .osw-form-field textarea {
    border-color: #d9d7d0;
    background-color: #faf9f6;
}

.osw-app[data-osw-theme="warm_premium"] .osw-companies-table th {
    color: #787d81;
    background: #f7f6f2;
}

.osw-app[data-osw-theme="warm_premium"] .osw-companies-table tbody tr:hover {
    background: #faf8f2;
}

/* Miniatury nowych stylów w Ustawieniach. */
.osw-theme-option.is-modern .osw-theme-preview {
    background:
        radial-gradient(circle at 82% 12%, rgba(42, 126, 204, .42), transparent 36%),
        #061522;
}

.osw-theme-option.is-modern .osw-theme-preview i {
    background: #04111e;
    box-shadow: inset -1px 0 rgba(106, 169, 224, .25);
}

.osw-theme-option.is-modern .osw-theme-preview b,
.osw-theme-option.is-modern .osw-theme-preview em {
    border: 1px solid rgba(106, 169, 224, .22);
    background: rgba(15, 46, 73, .86);
    box-shadow: 0 6px 16px rgba(0, 5, 13, .3);
}

.osw-theme-option.is-modern .osw-theme-preview::after {
    background: linear-gradient(145deg, #63b5ff, #256ca8);
}

.osw-theme-option.is-warm .osw-theme-preview {
    background:
        radial-gradient(circle at 88% 2%, rgba(212, 193, 146, .3), transparent 35%),
        #efeee9;
}

.osw-theme-option.is-warm .osw-theme-preview i {
    background: #202a34;
}

.osw-theme-option.is-warm .osw-theme-preview b,
.osw-theme-option.is-warm .osw-theme-preview em {
    border: 1px solid #dfdcd3;
    background: #fff;
    box-shadow: 0 6px 16px rgba(43, 48, 52, .1);
}

.osw-theme-option.is-warm .osw-theme-preview::after {
    background: linear-gradient(145deg, #d5bd7b, #a78335);
}

@media (max-width: 760px) {
    .osw-content,
    .osw-assistant-view:not([hidden]) {
        padding-top: 9px;
    }

    .osw-client-actions {
        grid-column: 1 / -1;
        justify-content: stretch;
    }

    .osw-client-actions button {
        flex: 1;
    }

    .osw-mail-delete {
        min-height: 30px;
    }
}

/* OpenSmart One 4.0 — Marketing24, Radar Wiedzy i pamięć wyników. */
.osw-marketing-command {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(420px, .75fr);
    gap: 24px;
    margin-top: 22px;
    padding: 28px;
    overflow: hidden;
    border: 1px solid color-mix(in srgb, var(--osw-gold) 42%, var(--osw-border));
    border-radius: 22px;
    background:
        radial-gradient(circle at 90% 15%, color-mix(in srgb, var(--osw-gold) 18%, transparent), transparent 38%),
        color-mix(in srgb, var(--osw-white) 92%, var(--osw-bg));
    box-shadow: var(--osw-shadow);
}

.osw-marketing-command h2,
.osw-marketing-section-heading h2 {
    margin: 7px 0 9px;
    color: var(--osw-navy);
    font-size: clamp(20px, 2vw, 29px);
}

.osw-marketing-command-copy > p:not(.osw-eyebrow) {
    max-width: 760px;
    margin: 0 0 18px;
    color: #657286;
    font-size: 13px;
    line-height: 1.65;
}

.osw-marketing-flow {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.osw-marketing-flow li {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    min-height: 68px;
    padding: 12px;
    border: 1px solid var(--osw-border);
    border-radius: 14px;
    background: color-mix(in srgb, var(--osw-white) 84%, var(--osw-bg));
}

.osw-marketing-flow strong {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    color: var(--osw-navy);
    border-radius: 50%;
    background: color-mix(in srgb, var(--osw-gold) 24%, var(--osw-white));
    font-size: 13px;
}

.osw-marketing-flow span {
    color: var(--osw-navy);
    font-size: 12px;
    font-weight: 750;
}

.osw-marketing-hub,
.osw-marketing-creators {
    margin-top: 24px;
}

.osw-marketing-section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 13px;
}

.osw-marketing-section-heading h2 {
    margin-bottom: 0;
    font-size: 20px;
}

.osw-marketing-section-heading > small {
    max-width: 360px;
    color: #768295;
    font-size: 11px;
    text-align: right;
}

.osw-marketing-channel-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 11px;
}

.osw-marketing-channel-card {
    display: grid;
    grid-template-columns: 45px minmax(0, 1fr);
    gap: 8px 11px;
    min-height: 112px;
    padding: 14px;
    color: var(--osw-navy);
    border: 1px solid var(--osw-border);
    border-radius: 16px;
    background: color-mix(in srgb, var(--osw-white) 92%, var(--osw-bg));
    box-shadow: 0 9px 22px rgba(2, 33, 71, .05);
    text-align: left;
    cursor: pointer;
    transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.osw-marketing-channel-card:hover,
.osw-marketing-channel-card:focus-visible {
    border-color: color-mix(in srgb, var(--osw-gold) 62%, var(--osw-border));
    box-shadow: 0 14px 30px rgba(2, 33, 71, .1);
    transform: translateY(-2px);
}

.osw-marketing-channel-icon {
    display: grid;
    width: 45px;
    height: 45px;
    grid-row: 1 / span 2;
    place-items: center;
    overflow: hidden;
    border-radius: 12px;
    background: color-mix(in srgb, var(--osw-white) 76%, var(--osw-bg));
    font-size: 17px;
    font-weight: 800;
}

.osw-marketing-channel-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.osw-marketing-channel-card > span:nth-child(2) {
    display: grid;
    gap: 5px;
    align-content: center;
    min-width: 0;
}

.osw-marketing-channel-card strong {
    font-size: 13px;
}

.osw-marketing-channel-card small {
    color: #738094;
    font-size: 9px;
    line-height: 1.4;
}

.osw-marketing-channel-card em {
    grid-column: 1 / -1;
    justify-self: start;
    padding: 4px 8px;
    color: #657286;
    border-radius: 999px;
    background: var(--osw-bg);
    font-size: 9px;
    font-style: normal;
    font-weight: 750;
}

.osw-marketing-channel-card em.is-connected,
.osw-marketing-channel-card em.is-available {
    color: #087451;
    background: #e3f7ef;
}

.osw-marketing-channel-card em.is-planned {
    color: #856419;
    background: #fff3cf;
}

.osw-marketing-creator-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 11px;
}

.osw-marketing-creator-grid button {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 3px 10px;
    min-height: 76px;
    align-items: center;
    padding: 12px 14px;
    color: var(--osw-navy);
    border: 1px solid var(--osw-border);
    border-radius: 14px;
    background: transparent;
    text-align: left;
    cursor: pointer;
}

.osw-marketing-creator-grid button > span {
    display: grid;
    width: 36px;
    height: 36px;
    grid-row: 1 / span 2;
    place-items: center;
    border-radius: 11px;
    background: color-mix(in srgb, var(--osw-gold) 18%, var(--osw-white));
}

.osw-marketing-creator-grid strong {
    font-size: 12px;
}

.osw-marketing-creator-grid small {
    color: #778396;
    font-size: 9px;
}

.osw-page-heading-actions,
.osw-campaign-actions,
.osw-campaign-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.osw-marketing-tabs {
    display: flex;
    gap: 7px;
    margin: 20px 0 18px;
    padding: 5px;
    overflow-x: auto;
    border: 1px solid var(--osw-border);
    border-radius: 14px;
    background: color-mix(in srgb, var(--osw-white) 76%, var(--osw-bg));
}

.osw-marketing-tabs button {
    min-height: 40px;
    padding: 0 16px;
    color: #647184;
    border: 0;
    border-radius: 10px;
    background: transparent;
    font: inherit;
    font-size: 12px;
    font-weight: 750;
    white-space: nowrap;
    cursor: pointer;
}

.osw-marketing-tabs button.is-active {
    color: #fff;
    background: var(--osw-navy);
    box-shadow: 0 8px 20px color-mix(in srgb, var(--osw-navy) 22%, transparent);
}

.osw-marketing-metrics {
    margin-top: 18px;
    border-color: color-mix(in srgb, var(--osw-gold) 44%, var(--osw-border));
}

.osw-marketing-metrics-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(120px, 1fr));
    gap: 12px;
    margin-top: 22px;
}

.osw-marketing-metrics-grid label {
    display: grid;
    gap: 7px;
}

.osw-marketing-metrics-grid label > span {
    color: #4f5d6f;
    font-size: 11px;
    font-weight: 750;
}

.osw-marketing-metrics-grid input,
.osw-marketing-metrics-grid select {
    width: 100%;
    min-height: 43px;
    padding: 0 11px;
    color: var(--osw-text);
    border: 1px solid var(--osw-border);
    border-radius: 10px;
    background: color-mix(in srgb, var(--osw-white) 92%, var(--osw-bg));
    font: inherit;
    font-size: 12px;
}

.osw-campaign-card {
    overflow: hidden;
}

.osw-campaign-content .osw-campaign-block.is-wide {
    grid-column: 1 / -1;
    border-left: 3px solid var(--osw-gold);
}

.osw-platform-packages {
    display: grid;
    gap: 10px;
    margin-top: 15px;
}

.osw-platform-package {
    overflow: hidden;
    border: 1px solid var(--osw-border);
    border-radius: 13px;
    background: color-mix(in srgb, var(--osw-white) 90%, var(--osw-bg));
}

.osw-platform-package summary {
    display: flex;
    align-items: center;
    gap: 11px;
    min-height: 55px;
    padding: 10px 15px;
    color: var(--osw-navy);
    list-style: none;
    cursor: pointer;
}

.osw-platform-package summary::-webkit-details-marker {
    display: none;
}

.osw-platform-package summary::after {
    margin-left: auto;
    color: #7a8797;
    content: "＋";
    font-size: 18px;
}

.osw-platform-package[open] summary::after {
    content: "−";
}

.osw-platform-package-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding: 0 14px 14px;
}

.osw-platform-package-grid .osw-campaign-block {
    background: color-mix(in srgb, var(--osw-white) 80%, var(--osw-bg));
}

.osw-platform-badge {
    display: inline-flex;
    align-items: center;
    min-height: 25px;
    padding: 0 9px;
    color: #785b13;
    border-radius: 20px;
    background: #fff1c9;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .02em;
    white-space: nowrap;
}

.osw-platform-badge img {
    width: 20px;
    height: 20px;
    margin: 2px 5px 2px -6px;
    border-radius: 6px;
    object-fit: contain;
}

.osw-platform-studio {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 0 14px 15px;
}

.osw-platform-studio img {
    width: 112px;
    height: 112px;
    border: 1px solid var(--osw-border);
    border-radius: 13px;
    object-fit: cover;
}

.osw-campaign-analysis {
    margin-top: 16px;
    padding: 18px;
    border: 1px solid #cfe7dc;
    border-radius: 14px;
    background: #f1fbf6;
}

.osw-campaign-analysis h3 {
    margin: 7px 0 9px;
}

.osw-campaign-analysis p,
.osw-campaign-analysis li,
.osw-campaign-analysis strong {
    color: #3f6152;
    font-size: 12px;
    line-height: 1.6;
}

.osw-campaign-analysis ul {
    margin: 10px 0;
    padding-left: 20px;
}

.osw-campaign-footer {
    justify-content: flex-end;
    margin-top: 17px;
    padding-top: 15px;
    border-top: 1px solid var(--osw-border);
}

.osw-marketing-radar-card,
.osw-marketing-learning-card,
.osw-marketing-studio-note {
    margin-top: 0;
}

.osw-radar-state {
    display: inline-flex;
    padding: 8px 11px;
    color: #58677a;
    border-radius: 20px;
    background: color-mix(in srgb, var(--osw-bg) 72%, var(--osw-white));
    font-size: 10px;
    font-weight: 750;
}

.osw-radar-list,
.osw-learning-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 20px;
}

.osw-radar-item,
.osw-learning-item {
    padding: 17px;
    border: 1px solid var(--osw-border);
    border-radius: 13px;
    background: color-mix(in srgb, var(--osw-white) 87%, var(--osw-bg));
}

.osw-radar-item h3,
.osw-learning-item h3 {
    margin: 11px 0 8px;
    font-size: 14px;
}

.osw-radar-item p,
.osw-radar-item li,
.osw-learning-item p {
    color: #586679;
    font-size: 11px;
    line-height: 1.65;
}

.osw-radar-item ul {
    padding-left: 18px;
}

.osw-radar-item a {
    display: inline-flex;
    margin-top: 8px;
    color: var(--osw-navy);
    font-size: 11px;
    font-weight: 750;
}

.osw-learning-item small {
    display: block;
    margin-top: 11px;
    color: #7b8795;
    font-size: 10px;
}

.osw-marketing-placeholder {
    grid-column: 1 / -1;
    margin: 0;
    padding: 24px;
    color: #6d7989;
    border: 1px dashed var(--osw-border);
    border-radius: 13px;
    text-align: center;
}

.osw-marketing-integrations {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 13px;
}

.osw-marketing-integration-card {
    display: grid;
    grid-template-columns: 42px 12px minmax(0, 1fr);
    gap: 5px 11px;
}

.osw-marketing-integration-icon {
    display: grid;
    width: 42px;
    height: 42px;
    grid-row: 1 / span 3;
    place-items: center;
    overflow: hidden;
    border-radius: 12px;
    color: var(--osw-navy);
    font-weight: 800;
}

.osw-marketing-integration-icon img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.osw-marketing-integration-card .osw-integration-dot {
    grid-column: 2;
    grid-row: 1 / span 3;
    margin-top: 5px;
}

.osw-marketing-integration-card h2,
.osw-marketing-integration-card p,
.osw-marketing-integration-card small {
    grid-column: 3;
}

.osw-marketing-integration-card h2 {
    font-size: 15px;
}

.osw-marketing-integration-card p,
.osw-marketing-integration-card small,
.osw-marketing-studio-note p {
    color: #667486;
    font-size: 11px;
    line-height: 1.6;
}

.osw-marketing-studio-note {
    margin-top: 14px;
    border-left: 3px solid var(--osw-gold);
}

.osw-marketing-studio-note h2 {
    margin: 8px 0;
}

.osw-platform-fieldset label small {
    display: block;
    margin-left: 22px;
    color: #778496;
    font-size: 10px;
    font-weight: 500;
}

.osw-platform-fieldset > p {
    flex-basis: 100%;
    margin: 0 0 6px;
    color: #718095;
    font-size: 11px;
}

.osw-campaign-block ul {
    margin: 7px 0 0;
    padding-left: 18px;
    color: #5d6a7b;
    font-size: 12px;
    line-height: 1.6;
}

.osw-knowledge-state {
    display: inline-flex;
    margin-left: 6px;
    padding: 4px 8px;
    color: #536176;
    border: 1px solid var(--osw-border);
    border-radius: 999px;
    background: color-mix(in srgb, var(--osw-white) 84%, var(--osw-bg));
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.osw-knowledge-state.is-available {
    color: #087a52;
    border-color: #b8ead9;
    background: #edfaf5;
}

.osw-knowledge-state.is-beta,
.osw-knowledge-state.is-planned {
    color: #855f00;
    border-color: #ead8a8;
    background: #fff9e8;
}

.osw-knowledge-verified {
    display: block;
    margin-top: 8px;
    color: #7a8797;
    font-size: 10px;
}

.osw-marketing-expansion-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.osw-marketing-expansion-grid > .osw-card {
    margin: 0;
}

.osw-visibility-result,
.osw-site-project-list,
.osw-openai-ads-draft-list {
    display: grid;
    gap: 10px;
    margin-top: 18px;
}

.osw-visibility-score {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 0;
    border-top: 1px solid var(--osw-border);
    border-bottom: 1px solid var(--osw-border);
}

.osw-visibility-score > strong {
    color: var(--osw-navy);
    font-size: 30px;
    letter-spacing: -.04em;
}

.osw-visibility-checks {
    display: grid;
    gap: 8px;
}

.osw-visibility-check {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 2px 9px;
    padding: 11px;
    border: 1px solid var(--osw-border);
    border-radius: 11px;
    background: color-mix(in srgb, var(--osw-white) 88%, var(--osw-bg));
}

.osw-visibility-check-mark {
    display: grid;
    width: 26px;
    height: 26px;
    grid-row: 1 / span 2;
    place-items: center;
    color: #a13d47;
    border-radius: 50%;
    background: #fff0f2;
    font-weight: 850;
}

.osw-visibility-check.is-passed .osw-visibility-check-mark {
    color: #087a52;
    background: #e8f8f2;
}

.osw-visibility-check strong {
    color: var(--osw-navy);
    font-size: 12px;
}

.osw-visibility-check p {
    grid-column: 2;
    margin: 0;
    color: #667486;
    font-size: 11px;
    line-height: 1.5;
}

.osw-site-project-item,
.osw-openai-ads-draft-item {
    padding: 14px;
    border: 1px solid var(--osw-border);
    border-radius: 12px;
    background: color-mix(in srgb, var(--osw-white) 88%, var(--osw-bg));
}

.osw-site-project-item h3,
.osw-openai-ads-draft-item h3 {
    margin: 10px 0 6px;
    color: var(--osw-navy);
    font-size: 14px;
}

.osw-site-project-item p,
.osw-openai-ads-draft-item p,
.osw-openai-ads-draft-item li {
    color: #5f6e81;
    font-size: 11px;
    line-height: 1.55;
}

.osw-site-project-item small,
.osw-openai-ads-draft-item small {
    color: #7a8797;
    font-size: 10px;
}

.osw-openai-ads-status {
    border-left: 3px solid var(--osw-gold);
}

.osw-openai-ads-status h2 {
    margin: 8px 0;
}

.osw-openai-ads-status p,
.osw-openai-ads-status li,
.osw-form-note {
    color: #5c6b7e;
    font-size: 11px;
    line-height: 1.6;
}

.osw-openai-ads-draft-card {
    margin-top: 14px;
}

.osw-openai-ads-draft-item ul {
    margin: 8px 0;
    padding-left: 18px;
}

.osw-app[data-osw-theme="modern_tech"] .osw-marketing-tabs,
.osw-app[data-osw-theme="modern_tech"] .osw-platform-package,
.osw-app[data-osw-theme="modern_tech"] .osw-radar-item,
.osw-app[data-osw-theme="modern_tech"] .osw-learning-item,
.osw-app[data-osw-theme="modern_tech"] .osw-marketing-metrics-grid input,
.osw-app[data-osw-theme="modern_tech"] .osw-marketing-metrics-grid select {
    color: #eaf2fa;
    border-color: rgba(126, 164, 198, .25);
    background: rgba(7, 26, 43, .84);
}

.osw-app[data-osw-theme="modern_tech"] .osw-platform-package summary,
.osw-app[data-osw-theme="modern_tech"] .osw-radar-item h3,
.osw-app[data-osw-theme="modern_tech"] .osw-learning-item h3 {
    color: #eef7ff;
}

.osw-app[data-osw-theme="modern_tech"] .osw-campaign-analysis {
    border-color: rgba(72, 180, 143, .28);
    background: rgba(20, 77, 62, .35);
}

.osw-app[data-osw-theme="modern_tech"] .osw-campaign-analysis p,
.osw-app[data-osw-theme="modern_tech"] .osw-campaign-analysis li,
.osw-app[data-osw-theme="modern_tech"] .osw-campaign-analysis strong {
    color: #a8d6c6;
}

@media (max-width: 1050px) {
    .osw-marketing-metrics-grid {
        grid-template-columns: repeat(3, minmax(120px, 1fr));
    }

    .osw-marketing-command {
        grid-template-columns: 1fr;
    }

    .osw-marketing-channel-grid,
    .osw-marketing-creator-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .osw-page-heading-actions {
        width: 100%;
    }

    .osw-page-heading-actions button {
        flex: 1;
    }

    .osw-marketing-tabs {
        margin-top: 14px;
    }

    .osw-platform-fieldset {
        align-items: flex-start;
        flex-direction: column;
    }

    .osw-marketing-metrics-grid,
    .osw-platform-package-grid,
    .osw-radar-list,
    .osw-learning-list,
    .osw-marketing-integrations {
        grid-template-columns: 1fr;
    }

    .osw-marketing-expansion-grid {
        grid-template-columns: 1fr;
    }

    .osw-marketing-command {
        padding: 20px;
    }

    .osw-marketing-channel-grid,
    .osw-marketing-creator-grid {
        grid-template-columns: 1fr 1fr;
    }

    .osw-marketing-section-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .osw-marketing-section-heading > small {
        text-align: left;
    }

    .osw-campaign-heading {
        align-items: stretch;
        flex-direction: column;
    }

    .osw-campaign-actions {
        justify-content: flex-end;
    }

    .osw-platform-package summary {
        align-items: flex-start;
    }

    .osw-platform-studio {
        align-items: stretch;
        flex-direction: column;
    }

    .osw-platform-studio img {
        width: 100%;
        height: auto;
        aspect-ratio: 1;
    }

    .osw-campaign-footer button {
        flex: 1;
    }
}

/* OpenSmart One 5.2 — pierwsze uruchomienie, wykorzystanie pakietu i zwarty panel. */
.osw-sidebar {
    width: 236px;
    padding: 22px 18px 18px;
}

.osw-main {
    width: calc(100% - 236px);
    margin-left: 236px;
}

.osw-logo {
    min-height: 76px;
    margin: -22px -18px 0;
    padding: 15px 18px 14px;
}

.osw-brand-mark {
    width: 42px;
    height: 42px;
}

.osw-nav {
    gap: 5px;
    margin-top: 17px;
    padding-right: 0;
    scrollbar-width: none;
}

.osw-nav::-webkit-scrollbar {
    display: none;
}

.osw-nav a {
    min-height: 38px;
    gap: 10px;
    padding: 7px 11px;
    border-radius: 10px;
    font-size: 12px;
}

.osw-nav a > span:first-child {
    width: 18px;
    font-size: 16px;
}

.osw-nav .osw-nav-platinum {
    min-height: 42px;
}

.osw-nav .osw-nav-platinum small {
    font-size: 8px;
}

.osw-install-app {
    min-height: 36px;
    margin-bottom: 10px;
    padding: 0 11px;
    font-size: 10px;
}

.osw-install-app span {
    width: 21px;
    height: 21px;
}

.osw-sidebar-footer {
    min-height: 68px;
    margin: 12px -18px -18px;
    padding: 12px 18px 14px;
}

.osw-user-avatar {
    width: 36px;
    height: 36px;
    flex-basis: 36px;
}

.osw-package-usage {
    display: grid;
    gap: 8px;
    margin: 18px 0 20px;
    padding: 13px 16px;
    border: 1px solid color-mix(in srgb, var(--osw-green) 24%, var(--osw-border));
    border-radius: 14px;
    background: color-mix(in srgb, var(--osw-green) 4%, var(--osw-white));
    box-shadow: 0 8px 24px rgba(23, 34, 52, .035);
}

.osw-package-usage-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: var(--osw-navy);
    font-size: 12px;
    font-weight: 750;
}

.osw-package-usage-heading strong {
    font-size: 13px;
}

.osw-package-usage-bar {
    position: relative;
    height: 7px;
    overflow: hidden;
    border-radius: 999px;
    background: #e5ebef;
}

.osw-package-usage-bar span {
    position: absolute;
    inset: 0 auto 0 0;
    width: 0;
    border-radius: inherit;
    background: var(--osw-green);
    transition: width .35s ease, background .2s ease;
}

.osw-package-usage small {
    color: var(--osw-muted);
    font-size: 10px;
    line-height: 1.35;
}

.osw-package-usage.is-warning {
    border-color: #efd596;
    background: #fffbf1;
}

.osw-package-usage.is-warning .osw-package-usage-bar span {
    background: #e7a72d;
}

.osw-package-usage.is-critical,
.osw-package-usage.is-blocked {
    border-color: #efb8b8;
    background: #fff7f7;
}

.osw-package-usage.is-critical .osw-package-usage-bar span,
.osw-package-usage.is-blocked .osw-package-usage-bar span {
    background: #d74d4d;
}

.osw-first-welcome,
.osw-device-setup {
    position: fixed;
    inset: 0;
    z-index: 1500;
    display: grid;
    padding: 18px;
    place-items: center;
}

.osw-first-welcome[hidden],
.osw-device-setup[hidden],
.osw-modal[hidden] {
    display: none !important;
}

.osw-first-welcome-backdrop {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 18% 12%, rgba(31, 112, 212, .22), transparent 34%),
        radial-gradient(circle at 84% 85%, rgba(200, 165, 80, .2), transparent 32%),
        rgba(3, 18, 34, .86);
    backdrop-filter: blur(12px);
}

.osw-first-welcome-card,
.osw-device-setup-card {
    position: relative;
    width: min(720px, 100%);
    max-height: calc(100dvh - 36px);
    overflow-y: auto;
    padding: 34px 38px 32px;
    border: 1px solid rgba(255, 255, 255, .75);
    border-radius: 26px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, .98), rgba(245, 248, 252, .96));
    box-shadow: 0 34px 100px rgba(0, 11, 28, .32);
    scrollbar-width: thin;
}

.osw-first-welcome-brand {
    position: absolute;
    top: 27px;
    right: 30px;
    width: 58px;
    height: 58px;
}

.osw-first-welcome-brand img {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 15px;
}

.osw-first-welcome-card h1,
.osw-device-setup-card h2 {
    max-width: calc(100% - 76px);
    margin: 5px 0 22px;
    color: var(--osw-navy);
    font-size: clamp(30px, 4vw, 44px);
    font-weight: 520;
    letter-spacing: -1.2px;
}

.osw-first-welcome-title {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 12px;
}

.osw-first-welcome-title img {
    display: block;
    width: min(295px, 58vw);
    height: 48px;
    object-fit: contain;
    object-position: left center;
}

.osw-device-setup-card h2 {
    max-width: none;
    font-size: clamp(27px, 3vw, 36px);
}

.osw-first-welcome-copy {
    display: grid;
    gap: 11px;
}

.osw-first-welcome-copy p,
.osw-device-setup-intro {
    margin: 0;
    color: #4c5d70;
    font-size: 14px;
    line-height: 1.62;
}

.osw-first-welcome-copy p:first-child {
    color: var(--osw-navy);
    font-size: 16px;
    font-weight: 700;
}

.osw-first-welcome-voice-note {
    margin: 20px 0 0;
    padding: 11px 13px;
    color: #5c6c7e;
    border: 1px solid #e0e6ed;
    border-radius: 12px;
    background: rgba(255, 255, 255, .72);
    font-size: 11px;
}

.osw-first-welcome-actions,
.osw-install-modal-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.osw-device-setup-card {
    width: min(760px, 100%);
}

.osw-device-setup-list {
    display: grid;
    gap: 10px;
    margin: 22px 0;
}

.osw-device-setup-list article {
    display: flex;
    min-height: 72px;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 13px 14px 13px 17px;
    border: 1px solid #dde5ed;
    border-radius: 15px;
    background: #fff;
}

.osw-device-setup-list article.is-information {
    background: #f7f9fc;
}

.osw-device-setup-list strong,
.osw-device-setup-list small {
    display: block;
}

.osw-device-setup-list strong {
    margin-bottom: 4px;
    color: var(--osw-navy);
    font-size: 13px;
}

.osw-device-setup-list small {
    color: var(--osw-muted);
    font-size: 11px;
    line-height: 1.4;
}

.osw-install-modal-card {
    width: min(470px, calc(100% - 28px));
    text-align: center;
}

.osw-install-modal-card .osw-eyebrow {
    justify-content: center;
}

.osw-install-modal-card h2 {
    margin-bottom: 9px;
}

.osw-install-qr {
    display: block;
    width: min(260px, 80%);
    margin: 20px auto 0;
    padding: 10px;
    border: 1px solid #dce4ec;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 12px 32px rgba(18, 37, 58, .09);
}

.osw-install-qr img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 10px;
}

.osw-install-modal-actions {
    justify-content: center;
}

@media (max-width: 760px) {
    html {
        height: auto !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
        overscroll-behavior-y: auto !important;
    }

    body.osw-app-page:not(.osw-modal-open) {
        position: static !important;
        height: auto !important;
        min-height: 100dvh;
        overflow-x: hidden !important;
        overflow-y: auto !important;
        overscroll-behavior-y: auto !important;
        touch-action: pan-y;
        -webkit-overflow-scrolling: touch;
    }

    .osw-app,
    .osw-main {
        height: auto !important;
        max-height: none !important;
        min-height: 100dvh;
        overflow: visible !important;
    }

    .osw-view:not(.osw-assistant-view):not([hidden]) {
        height: auto !important;
        max-height: none !important;
        overflow: visible !important;
    }

    .osw-sidebar {
        width: min(82vw, 270px);
        height: 100dvh !important;
        padding: max(18px, env(safe-area-inset-top)) 16px max(14px, env(safe-area-inset-bottom));
        overflow: hidden !important;
        touch-action: pan-y;
    }

    .osw-logo {
        min-height: 71px;
        margin: calc(-1 * max(18px, env(safe-area-inset-top))) -16px 0;
        padding: max(13px, env(safe-area-inset-top)) 16px 12px;
    }

    .osw-nav {
        margin-top: 12px;
        overflow-y: auto !important;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
    }

    .osw-nav a {
        min-height: 36px;
        padding: 6px 10px;
    }

    .osw-main {
        width: 100%;
        margin-left: 0;
    }

    .osw-assistant-view:not([hidden]) {
        height: calc(100dvh - 58px - env(safe-area-inset-top)) !important;
        max-height: calc(100dvh - 58px - env(safe-area-inset-top)) !important;
        overflow: hidden !important;
    }

    .osw-package-usage {
        margin-top: 14px;
        padding: 12px 14px;
    }

    .osw-first-welcome,
    .osw-device-setup {
        align-items: start;
        padding: max(10px, env(safe-area-inset-top)) 10px max(10px, env(safe-area-inset-bottom));
        overflow-y: auto;
    }

    .osw-first-welcome-card,
    .osw-device-setup-card {
        max-height: none;
        margin: auto 0;
        padding: 25px 20px 22px;
        border-radius: 20px;
    }

    .osw-first-welcome-brand {
        top: 20px;
        right: 20px;
        width: 46px;
        height: 46px;
    }

    .osw-first-welcome-card h1,
    .osw-device-setup-card h2 {
        margin-top: 4px;
        font-size: 29px;
    }

    .osw-first-welcome-copy p,
    .osw-device-setup-intro {
        font-size: 13px;
    }

    .osw-first-welcome-actions .osw-primary-button,
    .osw-first-welcome-actions .osw-secondary-button,
    .osw-install-modal-actions .osw-primary-button,
    .osw-install-modal-actions .osw-secondary-button {
        width: 100%;
    }

    .osw-device-setup-list article {
        align-items: stretch;
        flex-direction: column;
        gap: 10px;
    }

    .osw-device-setup-list button {
        width: 100%;
    }

    .osw-install-qr {
        display: none;
    }
}

/* OpenSmart One 6.0 — detal premium, zwarty limit i firmowy kod instalacyjny. */
.osw-client-brand {
    flex-wrap: wrap;
}

.osw-client-brand .osw-package-usage {
    width: 196px;
    max-width: 100%;
    gap: 4px;
    margin: 0 0 0 8px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.osw-client-brand .osw-package-usage-heading {
    font-size: 9px;
    line-height: 1;
}

.osw-client-brand .osw-package-usage-heading strong {
    font-size: 10px;
}

.osw-client-brand .osw-package-usage-bar {
    height: 4px;
}

.osw-client-brand .osw-package-usage small {
    overflow: hidden;
    color: #718095;
    font-size: 8px;
    line-height: 1.15;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.osw-client-brand .osw-package-usage.is-warning,
.osw-client-brand .osw-package-usage.is-critical,
.osw-client-brand .osw-package-usage.is-blocked {
    border: 0;
    background: transparent;
}

.osw-install-qr {
    position: relative;
    border: 2px solid color-mix(in srgb, var(--osw-gold) 72%, white);
    box-shadow:
        0 16px 40px rgba(18, 37, 58, .12),
        inset 0 0 0 4px rgba(200, 165, 80, .08);
}

.osw-install-qr > .osw-install-qr-code {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 10px;
}

.osw-install-qr-brand {
    position: absolute;
    top: 50%;
    left: 50%;
    display: grid;
    width: 50px;
    height: 50px;
    padding: 5px;
    place-items: center;
    border: 4px solid white;
    border-radius: 15px;
    background: white;
    box-shadow: 0 5px 16px rgba(0, 24, 57, .2);
    transform: translate(-50%, -50%);
}

.osw-install-qr .osw-install-qr-brand img {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 9px;
    object-fit: contain;
}

.osw-install-qr-code svg {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 10px;
}

.osw-install-qr-caption {
    max-width: 330px;
    margin: 11px auto 0;
    color: var(--osw-muted);
    font-size: 12px;
    line-height: 1.5;
}

/* OpenSmart One 6.13 — Dokumenty, Notatnik i centralne udostępnianie aplikacji. */
.osw-document-workspace {
    display: grid;
    grid-template-columns: minmax(230px, 290px) minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}

.osw-document-sidebar,
.osw-document-editor-card {
    min-height: 620px;
}

.osw-document-list {
    display: grid;
    gap: 8px;
    margin-top: 14px;
}

.osw-document-list-item {
    display: grid;
    width: 100%;
    gap: 5px;
    padding: 13px;
    border: 1px solid #e0e6ed;
    border-radius: 13px;
    background: #fff;
    color: var(--osw-navy);
    text-align: left;
    cursor: pointer;
}

.osw-document-list-item:hover,
.osw-document-list-item.is-active {
    border-color: color-mix(in srgb, var(--osw-gold) 70%, white);
    background: color-mix(in srgb, var(--osw-gold) 8%, white);
    box-shadow: 0 8px 22px rgba(0, 33, 71, .07);
}

.osw-document-list-item small,
.osw-document-list-item span {
    overflow: hidden;
    color: var(--osw-muted);
    font-size: 11px;
    line-height: 1.4;
    text-overflow: ellipsis;
}

.osw-document-empty {
    display: grid;
    min-height: 560px;
    place-content: center;
    text-align: center;
}

.osw-document-title {
    width: 100%;
    padding: 8px 2px 14px;
    border: 0;
    border-bottom: 1px solid #dde4ec;
    outline: 0;
    background: transparent;
    color: var(--osw-navy);
    font-size: clamp(24px, 3vw, 36px);
    font-weight: 800;
}

.osw-document-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 14px 0;
    padding: 8px;
    border: 1px solid #e0e6ed;
    border-radius: 12px;
    background: #f7f9fb;
}

.osw-document-toolbar button {
    min-width: 36px;
    min-height: 34px;
    padding: 6px 10px;
    border: 1px solid transparent;
    border-radius: 8px;
    background: transparent;
    color: var(--osw-navy);
    cursor: pointer;
}

.osw-document-toolbar button:hover {
    border-color: #d6dee7;
    background: #fff;
}

.osw-document-paper {
    min-height: 430px;
    padding: clamp(22px, 4vw, 52px);
    border: 1px solid #dde4ec;
    border-radius: 4px;
    outline: none;
    background: #fff;
    box-shadow: 0 13px 35px rgba(0, 33, 71, .08);
    color: #17283b;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 16px;
    line-height: 1.65;
}

.osw-document-paper:focus {
    border-color: color-mix(in srgb, var(--osw-gold) 72%, white);
    box-shadow: 0 13px 35px rgba(0, 33, 71, .08), 0 0 0 3px rgba(200, 165, 80, .12);
}

.osw-document-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 9px;
    margin-top: 16px;
}

.osw-document-actions .osw-danger-button {
    margin-right: auto;
}

.osw-print-frame {
    position: fixed;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.osw-notes-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.osw-note-card {
    display: flex;
    min-height: 230px;
    padding: 20px;
    flex-direction: column;
    border: 1px solid rgba(0, 33, 71, .1);
    border-top: 5px solid var(--osw-gold);
    border-radius: 18px;
    background: linear-gradient(145deg, #fff 0%, #fffdf6 100%);
    box-shadow: 0 12px 30px rgba(0, 33, 71, .07);
}

.osw-note-card.is-navy { border-top-color: var(--osw-navy); background: linear-gradient(145deg, #fff 0%, #f3f7fb 100%); }
.osw-note-card.is-green { border-top-color: #27a36c; background: linear-gradient(145deg, #fff 0%, #f0fbf5 100%); }
.osw-note-card.is-rose { border-top-color: #d56882; background: linear-gradient(145deg, #fff 0%, #fff3f6 100%); }
.osw-note-card.is-due { box-shadow: 0 0 0 3px rgba(242, 41, 91, .13), 0 15px 34px rgba(0, 33, 71, .1); }

.osw-note-card-heading {
    display: grid;
    gap: 4px;
}

.osw-note-card-heading strong {
    color: var(--osw-navy);
    font-size: 17px;
}

.osw-note-card-heading small,
.osw-note-card > p {
    color: var(--osw-muted);
}

.osw-note-card > p {
    margin: 16px 0;
    white-space: pre-wrap;
    line-height: 1.55;
}

.osw-note-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: auto;
}

.osw-note-reminder {
    display: flex;
    margin: 0 0 14px;
    padding: 9px 11px;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    border-radius: 10px;
    background: rgba(0, 33, 71, .06);
    color: var(--osw-navy);
    font-size: 11px;
    font-weight: 700;
}

.osw-note-reminder.is-due {
    background: rgba(242, 41, 91, .1);
    color: #a11338;
}

.osw-note-modal-card {
    width: min(680px, calc(100% - 28px));
}

.osw-app-share-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
    margin-top: 18px;
}

.osw-app-share-options button {
    display: flex;
    min-height: 48px;
    padding: 10px 12px;
    align-items: center;
    gap: 9px;
    border: 1px solid #dce4ec;
    border-radius: 12px;
    background: #fff;
    color: var(--osw-navy);
    font-weight: 750;
    cursor: pointer;
}

.osw-app-share-options button:hover {
    border-color: color-mix(in srgb, var(--osw-gold) 70%, white);
    background: color-mix(in srgb, var(--osw-gold) 7%, white);
}

.osw-install-qr.is-highlighted {
    animation: osw-qr-highlight 1.2s ease;
}

@keyframes osw-qr-highlight {
    0%, 100% { transform: scale(1); }
    45% { transform: scale(1.035); box-shadow: 0 0 0 7px rgba(200, 165, 80, .18), 0 18px 42px rgba(18, 37, 58, .16); }
}

.osw-app-share-options button span {
    display: grid;
    width: 28px;
    height: 28px;
    place-items: center;
    border-radius: 9px;
    background: var(--osw-navy);
    color: #fff;
    font-size: 10px;
}

.osw-app-share-options button img {
    width: 28px;
    height: 28px;
    border-radius: 9px;
    object-fit: contain;
}

@media (max-width: 1050px) {
    .osw-notes-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
    .osw-document-workspace { grid-template-columns: 1fr; }
    .osw-document-sidebar,
    .osw-document-editor-card { min-height: 0; }
    .osw-document-empty { min-height: 300px; }
    .osw-document-paper { min-height: 360px; padding: 22px 17px; }
    .osw-document-actions > * { flex: 1 1 calc(50% - 9px); }
    .osw-document-actions .osw-danger-button { margin-right: 0; }
    .osw-notes-grid { grid-template-columns: 1fr; }
    .osw-install-qr,
    .osw-install-qr-caption { display: none; }
    .osw-app-share-options { grid-template-columns: 1fr; }
}

.osw-integration-provider-mark {
    overflow: hidden;
    padding: 3px;
    border: 0;
    background: transparent;
}

.osw-integration-provider-mark img {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 11px;
    object-fit: contain;
}

.osw-app[data-osw-theme="executive_light"] .osw-install-app {
    border-color: #002147 !important;
    background: #002147 !important;
    box-shadow: 0 8px 20px rgba(0, 33, 71, .16);
    color: #fff !important;
}

.osw-app[data-osw-theme="executive_light"] .osw-install-app span {
    background: #c8a550 !important;
    color: #002147 !important;
}

@media (max-width: 920px) {
    .osw-client-brand .osw-package-usage {
        width: 170px;
        margin-left: 0;
    }
}

/* OpenSmart One 6.1 — branding, prostsza nawigacja i edytowalna Teczka. */
.osw-logo {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    align-items: center;
    gap: 11px;
}

.osw-brand-wordmark {
    display: block;
    width: 100%;
    max-width: 145px;
    height: 42px;
    object-fit: contain;
    object-position: left center;
}

.osw-workspace-switcher {
    grid-column: 1 / -1;
}

.osw-nav a {
    min-height: 40px;
    font-size: 12.5px;
    line-height: 1.15;
}

.osw-login-wordmark {
    display: block;
    width: min(220px, 56vw);
    height: 54px;
    object-fit: contain;
    object-position: left center;
}

.osw-mobile-wordmark {
    width: 126px !important;
    height: 32px !important;
    border-radius: 0 !important;
    object-fit: contain !important;
    object-position: left center;
}

.osw-office-shortcuts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.osw-office-shortcuts button {
    min-height: 52px;
    text-align: left;
}

.osw-assistant-back {
    margin-bottom: 10px;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.osw-company-contact-form {
    display: grid;
    gap: 18px;
    margin-top: 18px;
}

.osw-contact-form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
}

.osw-detail-mail-link {
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--osw-navy);
    font: inherit;
    font-weight: 750;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}

.osw-growth-strategy-card,
.osw-settings-integration-card {
    display: flex;
    align-items: center;
    gap: 28px;
    justify-content: space-between;
    margin: 18px 0 24px;
}

.osw-growth-strategy-card p:last-child,
.osw-settings-integration-card p:last-child {
    max-width: 760px;
    margin-bottom: 0;
}

.osw-color-control {
    grid-template-columns: 52px minmax(112px, 1fr);
}

.osw-color-hex {
    width: 122px;
    min-width: 122px;
    flex: 1 1 122px;
    height: 42px;
    padding: 0 12px;
    border: 1px solid #d9e1ea;
    border-radius: 10px;
    background: #fff;
    color: #172b43;
    font: inherit;
    font-weight: 750;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.osw-device-session-setting {
    margin-top: 16px;
}

.osw-device-biometric-setting {
    margin-top: 10px;
}

.osw-biometric-lock {
    position: fixed;
    z-index: 100000;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 24px;
}

.osw-biometric-lock[hidden] {
    display: none;
}

.osw-biometric-lock-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(4, 18, 34, .82);
    backdrop-filter: blur(14px);
}

.osw-biometric-lock-card {
    position: relative;
    width: min(100%, 410px);
    padding: 38px 32px 30px;
    border: 1px solid rgba(200, 165, 80, .32);
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 30px 90px rgba(0, 14, 31, .34);
    text-align: center;
}

.osw-biometric-lock-card h2 {
    margin: 7px 0 10px;
    color: var(--osw-navy);
    font-size: 25px;
}

.osw-biometric-lock-card > p:not(.osw-eyebrow):not(.osw-form-error) {
    margin: 0 auto 22px;
    color: var(--osw-muted);
    font-size: 12px;
    line-height: 1.65;
}

.osw-biometric-lock-card .osw-primary-button {
    width: 100%;
    min-height: 48px;
}

.osw-biometric-lock-icon {
    display: grid;
    width: 58px;
    height: 58px;
    place-items: center;
    margin: 0 auto 18px;
    color: var(--osw-gold);
    border: 2px solid var(--osw-gold);
    border-radius: 50%;
    box-shadow: 0 0 0 8px rgba(200, 165, 80, .12);
    font-size: 20px;
}

.osw-biometric-other-login {
    margin-top: 15px;
    padding: 5px;
    color: var(--osw-muted);
    border: 0;
    background: transparent;
    font: inherit;
    font-size: 11px;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}

.osw-biometric-lock-card .osw-form-error {
    margin-top: 15px;
}

body.osw-biometric-locked {
    overflow: hidden;
}

@media (max-width: 760px) {
    .osw-office-shortcuts {
        grid-template-columns: 1fr;
    }

    .osw-growth-strategy-card,
    .osw-settings-integration-card {
        align-items: stretch;
        flex-direction: column;
    }

    .osw-contact-form-actions > button {
        width: 100%;
    }

    .osw-color-control {
        flex-wrap: nowrap;
    }

    .osw-color-control .osw-color-hex {
        width: calc(100% - 50px);
        min-width: 112px;
    }

    .osw-biometric-lock {
        padding: 16px;
    }

    .osw-biometric-lock-card {
        padding: 32px 22px 26px;
        border-radius: 20px;
    }
}
/* Księgowość — odczyt i kontrola dokumentów */
.osw-accounting-stage {
    display: inline-flex;
    min-height: 38px;
    align-items: center;
    padding: 8px 14px;
    border: 1px solid #d8e2eb;
    border-radius: 999px;
    color: #446078;
    background: #fff;
    font-size: 14px;
    font-weight: 750;
}

.osw-accounting-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 18px;
}

.osw-accounting-upload-card,
.osw-accounting-safety-card {
    min-height: 100%;
}

.osw-accounting-upload-card > p:not(.osw-eyebrow),
.osw-accounting-safety-card > p:not(.osw-eyebrow) {
    color: var(--osw-muted);
}

.osw-accounting-upload-card form {
    display: grid;
    gap: 15px;
    margin-top: 20px;
}

.osw-accounting-document-kind {
    display: grid;
    gap: 5px;
    padding: 13px 15px;
    border: 1px solid #dce5ec;
    border-radius: 13px;
    background: #f8fafc;
}

.osw-accounting-document-kind span {
    color: var(--osw-muted);
    font-size: 13px;
}

.osw-accounting-document-kind strong {
    color: var(--osw-navy);
    font-size: 15px;
}

.osw-accounting-file {
    display: grid;
    gap: 8px;
    padding: 16px;
    border: 1px dashed #bccbd8;
    border-radius: 15px;
    background: #f8fafc;
}

.osw-accounting-file > span {
    color: var(--osw-navy);
    font-weight: 750;
}

.osw-accounting-file input {
    width: 100%;
}

.osw-accounting-file small {
    color: var(--osw-muted);
}

.osw-accounting-safety-card ul {
    display: grid;
    gap: 13px;
    margin: 20px 0 0;
    padding: 0;
    list-style: none;
}

.osw-accounting-safety-card li {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr);
    gap: 8px;
    color: #405369;
    line-height: 1.5;
}

.osw-accounting-safety-card li span {
    display: grid;
    width: 23px;
    height: 23px;
    place-items: center;
    border-radius: 50%;
    color: #0f8f68;
    background: #e4f7f0;
    font-weight: 850;
}

.osw-accounting-documents {
    display: grid;
}

.osw-accounting-document {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 14px;
    padding: 15px 0;
    border-bottom: 1px solid var(--osw-line);
}

.osw-accounting-document:last-child {
    border-bottom: 0;
}

.osw-accounting-document-icon {
    display: grid;
    width: 46px;
    height: 46px;
    place-items: center;
    border-radius: 13px;
    color: #fff;
    background: linear-gradient(145deg, var(--osw-navy), #215b91);
    font-size: 11px;
    font-weight: 850;
}

.osw-accounting-document-details strong,
.osw-accounting-document-details small {
    display: block;
    overflow-wrap: anywhere;
}

.osw-accounting-document-details strong {
    color: var(--osw-navy);
    font-size: 15px;
}

.osw-accounting-document-details small {
    margin-top: 5px;
    color: var(--osw-muted);
    font-size: 13px;
}

.osw-accounting-document-details small.is-warning {
    color: #9a6812;
    font-weight: 700;
}

.osw-accounting-document-details small.is-ocr {
    color: #386486;
    font-weight: 700;
}

.osw-accounting-document-status {
    display: inline-flex;
    min-height: 30px;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    color: #166e57;
    background: #e5f7f1;
    font-size: 13px;
    font-weight: 750;
    white-space: nowrap;
}

.osw-accounting-document-status.is-review_required {
    color: #805d14;
    background: #fff5d9;
}

.osw-accounting-document-status.is-ready_for_approval,
.osw-accounting-modal-status.is-ready_for_approval {
    color: #714b12;
    background: #fff0c8;
}

.osw-accounting-document-status.is-approved,
.osw-accounting-modal-status.is-approved {
    color: #0c7255;
    background: #ddf6ed;
}

.osw-accounting-document-status.is-rejected,
.osw-accounting-modal-status.is-rejected {
    color: #9b3340;
    background: #fae7ea;
}

.osw-accounting-modal-card {
    width: min(100%, 1040px);
}

.osw-accounting-modal-status {
    display: inline-flex;
    min-height: 32px;
    align-items: center;
    margin: 12px 0 18px;
    padding: 6px 11px;
    border-radius: 999px;
    color: #805d14;
    background: #fff5d9;
    font-size: 13px;
    font-weight: 800;
}

.osw-accounting-extraction {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 20px;
    margin-bottom: 18px;
    padding: 18px;
    border: 1px solid #cbddec;
    border-radius: 16px;
    background: #f4f9fd;
}

.osw-accounting-extraction > div:first-child {
    min-width: 0;
}

.osw-accounting-extraction span,
.osw-accounting-extraction strong,
.osw-accounting-extraction p,
.osw-accounting-extraction small {
    display: block;
}

.osw-accounting-extraction span {
    margin-bottom: 5px;
    color: #386486;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .02em;
}

.osw-accounting-extraction strong {
    color: var(--osw-navy);
    font-size: 17px;
}

.osw-accounting-extraction p {
    margin: 6px 0 0;
    color: #526b81;
    line-height: 1.5;
}

.osw-accounting-extraction.is-review_required {
    border-color: #ead7a2;
    background: #fffaf0;
}

.osw-accounting-extraction.is-reviewed {
    border-color: #bde6d8;
    background: #edf9f5;
}

.osw-accounting-extraction.is-failed {
    border-color: #efc8cf;
    background: #fff4f5;
}

.osw-accounting-extraction-action {
    display: grid;
    width: min(100%, 250px);
    gap: 8px;
}

.osw-accounting-extraction-action small {
    color: var(--osw-muted);
    font-size: 12px;
    line-height: 1.4;
}

.osw-accounting-extraction-details {
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid rgba(56, 100, 134, .18);
}

.osw-accounting-extraction-details p {
    font-size: 13px;
    font-weight: 650;
}

.osw-accounting-alerts {
    margin-bottom: 20px;
    padding: 14px 16px;
    border: 1px solid #efdca6;
    border-radius: 14px;
    color: #6f531b;
    background: #fff9e9;
}

.osw-accounting-alerts.is-ready {
    color: #12664f;
    border-color: #bde6d8;
    background: #edf9f5;
}

.osw-accounting-alerts strong,
.osw-accounting-alerts p {
    display: block;
    margin: 0;
}

.osw-accounting-alerts p + p,
.osw-accounting-alerts strong + p {
    margin-top: 5px;
}

.osw-accounting-form-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 15px;
}

.osw-accounting-form-grid textarea {
    width: 100%;
    min-height: 92px;
    padding: 12px;
    resize: vertical;
    border: 1px solid var(--osw-border);
    border-radius: 10px;
    background: #fafbfd;
}

.osw-accounting-form-grid :disabled {
    color: #526071;
    opacity: .85;
    background: #f0f3f6;
}

.osw-accounting-decision {
    margin-top: 24px;
    padding: 20px;
    border: 1px solid #ead7a2;
    border-radius: 16px;
    background: #fffaf0;
}

.osw-accounting-decision h3,
.osw-accounting-history h3 {
    margin: 0;
    color: var(--osw-navy);
    font-size: 18px;
}

.osw-accounting-decision > p {
    margin: 7px 0 15px;
    color: var(--osw-muted);
}

.osw-accounting-decision textarea {
    width: 100%;
    min-height: 82px;
    padding: 12px;
    border: 1px solid var(--osw-border);
    border-radius: 10px;
    background: #fff;
}

.osw-accounting-history {
    margin-top: 28px;
    padding-top: 22px;
    border-top: 1px solid var(--osw-line);
}

.osw-accounting-history > div {
    display: grid;
    margin-top: 12px;
}

.osw-accounting-history-row {
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 10px;
    padding: 12px 0;
    border-bottom: 1px solid var(--osw-line);
}

.osw-accounting-history-row > span {
    display: grid;
    width: 28px;
    height: 28px;
    place-items: center;
    border-radius: 50%;
    color: #0d7758;
    background: #e2f6ef;
    font-weight: 800;
}

.osw-accounting-history-row strong,
.osw-accounting-history-row small {
    display: block;
}

.osw-accounting-history-row small,
.osw-accounting-history-row p,
.osw-accounting-history-empty {
    margin: 4px 0 0;
    color: var(--osw-muted);
    font-size: 13px;
    line-height: 1.45;
}

/* Księgowość — faktury sprzedażowe */
.osw-invoice-section {
    display: grid;
    gap: 18px;
    margin-top: 34px;
    padding-top: 30px;
    border-top: 1px solid var(--osw-line);
}

.osw-invoice-heading {
    margin-bottom: 0;
}

.osw-invoice-heading h2 {
    margin: 5px 0 7px;
    color: var(--osw-navy);
    font-size: clamp(26px, 3vw, 36px);
}

.osw-invoice-heading-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

.osw-invoice-summary {
    margin-bottom: 0;
}

.osw-invoice-settings-card,
.osw-invoice-list-card {
    margin-top: 0;
}

.osw-invoice-settings-card form {
    display: grid;
    gap: 18px;
}

.osw-invoice-list {
    display: grid;
}

.osw-invoice-row {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 14px;
    padding: 15px 0;
    border-bottom: 1px solid var(--osw-line);
}

.osw-invoice-row:last-child {
    border-bottom: 0;
}

.osw-invoice-row-status,
.osw-invoice-state {
    display: inline-flex;
    min-height: 30px;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    color: #805d14;
    background: #fff5d9;
    font-size: 13px;
    font-weight: 750;
    white-space: nowrap;
}

.osw-invoice-row-status.is-issued,
.osw-invoice-state.is-issued {
    color: #0c7255;
    background: #ddf6ed;
}

.osw-invoice-row-status.is-issued.is-unpaid,
.osw-invoice-state.is-issued.is-unpaid {
    color: #9b3340;
    background: #fae7ea;
}

.osw-invoice-modal-card {
    width: min(100%, 1180px);
}

.osw-invoice-state {
    margin: 12px 0 18px;
}

.osw-invoice-items-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin: 26px 0 12px;
}

.osw-invoice-items-heading h3 {
    margin: 4px 0 0;
    color: var(--osw-navy);
    font-size: 20px;
}

.osw-invoice-items {
    display: grid;
    gap: 10px;
}

.osw-invoice-item {
    display: grid;
    grid-template-columns:
        minmax(180px, 2fr)
        minmax(75px, .65fr)
        minmax(80px, .7fr)
        minmax(120px, 1fr)
        minmax(78px, .65fr)
        minmax(125px, 1fr)
        38px;
    align-items: end;
    gap: 10px;
    padding: 14px;
    border: 1px solid var(--osw-line);
    border-radius: 14px;
    background: #f8fafc;
}

.osw-invoice-item .osw-form-field {
    min-width: 0;
}

.osw-invoice-item .osw-form-field span,
.osw-invoice-item-amount span {
    font-size: 12px;
}

.osw-invoice-item-amount {
    display: grid;
    min-height: 45px;
    align-content: center;
    gap: 4px;
    padding: 7px 9px;
    border-radius: 10px;
    background: #edf3f7;
}

.osw-invoice-item-amount span {
    color: var(--osw-muted);
}

.osw-invoice-item-amount strong {
    color: var(--osw-navy);
    font-size: 14px;
}

.osw-invoice-item-remove {
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    border: 1px solid #edc8ce;
    border-radius: 10px;
    color: #9b3340;
    background: #fff;
    font-size: 22px;
    cursor: pointer;
}

.osw-invoice-totals {
    display: grid;
    width: min(100%, 390px);
    gap: 2px;
    margin: 20px 0 22px auto;
    padding: 14px 16px;
    border: 1px solid var(--osw-line);
    border-radius: 14px;
    background: #f8fafc;
}

.osw-invoice-totals > div {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 6px 0;
}

.osw-invoice-totals span {
    color: var(--osw-muted);
}

.osw-invoice-totals .is-gross {
    margin-top: 5px;
    padding-top: 11px;
    border-top: 1px solid #cbd8e3;
    color: var(--osw-navy);
    font-size: 18px;
}

.osw-invoice-confirmation {
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr);
    gap: 10px;
    margin-top: 18px;
    padding: 15px 17px;
    border: 1px solid #e0c36f;
    border-radius: 14px;
    color: #664d18;
    background: #fff9e9;
    line-height: 1.5;
}

.osw-invoice-confirmation input {
    width: 18px;
    height: 18px;
    margin-top: 2px;
}

.osw-invoice-actions {
    flex-wrap: wrap;
}

@media (max-width: 900px) {
    .osw-accounting-grid {
        grid-template-columns: 1fr;
    }

    .osw-accounting-form-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .osw-accounting-extraction {
        grid-template-columns: 1fr;
    }

    .osw-accounting-extraction-action {
        width: 100%;
    }

    .osw-accounting-document {
        grid-template-columns: 44px minmax(0, 1fr) auto;
    }

    .osw-accounting-document-status {
        grid-column: 2 / -1;
        justify-self: start;
    }

    .osw-invoice-row {
        grid-template-columns: 44px minmax(0, 1fr) auto;
    }

    .osw-invoice-row-status {
        grid-column: 2 / -1;
        justify-self: start;
    }

    .osw-invoice-item {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .osw-invoice-item-name {
        grid-column: span 3;
    }
}

@media (max-width: 620px) {
    .osw-accounting-form-grid {
        grid-template-columns: 1fr;
    }

    .osw-accounting-form-grid .osw-form-field-wide {
        grid-column: auto;
    }

    .osw-accounting-document {
        grid-template-columns: 42px minmax(0, 1fr);
    }

    .osw-accounting-document > .osw-secondary-button {
        grid-column: 2;
        justify-self: start;
    }

    .osw-invoice-heading-actions {
        width: 100%;
        justify-content: stretch;
    }

    .osw-invoice-heading-actions > * {
        flex: 1 1 auto;
    }

    .osw-invoice-row {
        grid-template-columns: 42px minmax(0, 1fr);
    }

    .osw-invoice-row > .osw-secondary-button {
        grid-column: 2;
        justify-self: start;
    }

    .osw-invoice-item {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .osw-invoice-item-name {
        grid-column: span 2;
    }

    .osw-invoice-item-remove {
        justify-self: end;
    }
}

/* Audyt czytelności całego Biura */
.osw-app {
    font-size: 16px;
}

.osw-app .osw-nav a {
    font-size: 15px;
}

.osw-app .osw-sidebar-footer strong,
.osw-app .osw-sidebar-footer a,
.osw-app .osw-workspace-switcher span {
    font-size: 13px;
}

.osw-app .osw-eyebrow {
    font-size: 13px;
    line-height: 1.4;
}

.osw-app .osw-welcome > div > p:last-child,
.osw-app .osw-page-heading > div > p:last-child,
.osw-app .osw-card p,
.osw-app .osw-card li {
    font-size: 15px;
    line-height: 1.6;
}

.osw-app .osw-date,
.osw-app .osw-system-status,
.osw-app .osw-settings-state {
    font-size: 14px;
}

.osw-app .osw-metrics span,
.osw-app .osw-metrics small,
.osw-app .osw-module-summary span,
.osw-app .osw-contact-summary span,
.osw-app .osw-contact-summary small,
.osw-app .osw-sales-summary span,
.osw-app .osw-package-usage span,
.osw-app .osw-package-usage small {
    font-size: 14px;
    line-height: 1.45;
}

.osw-app .osw-form-field > span,
.osw-app .osw-check-row > span,
.osw-app form label > span {
    font-size: 14px;
    line-height: 1.45;
}

.osw-app input,
.osw-app select,
.osw-app textarea,
.osw-app button {
    font-size: 15px;
}

.osw-app input,
.osw-app select,
.osw-app textarea {
    min-height: 44px;
}

.osw-app .osw-table-wrap th,
.osw-app .osw-companies-table th {
    font-size: 13px;
}

/* OpenSmart One 6.4.1 — korekty czytelności i proporcji. */
.osw-accounting-summary {
    margin-bottom: 28px;
}

.osw-accounting-control {
    display: grid;
    gap: 24px;
    margin-top: 34px;
    scroll-margin-top: 24px;
}

.osw-accounting-control-heading {
    margin-bottom: 0;
}

.osw-accounting-control-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.osw-accounting-control-links a,
.osw-accounting-control-links button {
    padding: 10px 14px;
    border: 1px solid var(--osw-line);
    border-radius: 999px;
    background: var(--osw-white);
    color: var(--osw-navy);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.osw-accounting-control-summary,
.osw-accounting-office-summary {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.osw-accounting-control-card,
.osw-accounting-office-card {
    scroll-margin-top: 24px;
}

.osw-accounting-case-form,
.osw-accounting-filing-form {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin: 20px 0 24px;
    padding: 18px;
    border: 1px solid var(--osw-line);
    border-radius: 18px;
    background: var(--osw-soft);
}

.osw-accounting-case-form input,
.osw-accounting-case-form select,
.osw-accounting-case-form textarea,
.osw-accounting-filing-form input,
.osw-accounting-filing-form select,
.osw-accounting-filing-form textarea {
    width: 100%;
    min-height: 46px;
    box-sizing: border-box;
    padding: 10px 12px;
    border: 1px solid var(--osw-line);
    border-radius: 12px;
    background: var(--osw-white);
    color: var(--osw-navy);
    font: inherit;
}

.osw-accounting-case-form textarea,
.osw-accounting-filing-form textarea {
    grid-column: span 3;
    resize: vertical;
}

.osw-accounting-case-form button,
.osw-accounting-filing-form button {
    align-self: end;
}

.osw-accounting-signature-check {
    display: flex;
    align-items: center;
    gap: 9px;
    min-height: 46px;
    padding: 9px 12px;
    border: 1px solid var(--osw-line);
    border-radius: 12px;
    background: var(--osw-white);
    color: var(--osw-navy);
    font-size: 14px;
    font-weight: 700;
}

.osw-accounting-signature-check input {
    width: 18px;
    min-height: 18px;
}

.osw-accounting-case-list,
.osw-accounting-filing-list,
.osw-accounting-archive-list,
.osw-accounting-office-clients {
    display: grid;
    gap: 12px;
}

.osw-accounting-case,
.osw-accounting-filing,
.osw-accounting-archive-row,
.osw-accounting-office-client {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    padding: 18px;
    border: 1px solid var(--osw-line);
    border-left: 4px solid #8aa0b8;
    border-radius: 18px;
    background: var(--osw-white);
}

.osw-accounting-case.is-high {
    border-left-color: #d5a735;
}

.osw-accounting-case.is-critical,
.osw-accounting-office-client.is-attention {
    border-left-color: #d55d69;
    background: #fffafb;
}

.osw-accounting-case.is-resolved,
.osw-accounting-office-client.is-ready {
    border-left-color: #18a777;
    background: #f8fffc;
}

.osw-accounting-case-details,
.osw-accounting-filing-details,
.osw-accounting-archive-row > div,
.osw-accounting-office-client > div {
    min-width: 0;
}

.osw-accounting-case-details strong,
.osw-accounting-case-details small,
.osw-accounting-filing-details strong,
.osw-accounting-filing-details small,
.osw-accounting-archive-row strong,
.osw-accounting-archive-row small,
.osw-accounting-office-client strong,
.osw-accounting-office-client small {
    display: block;
}

.osw-accounting-case-details strong,
.osw-accounting-filing-details strong,
.osw-accounting-archive-row strong,
.osw-accounting-office-client strong {
    color: var(--osw-navy);
    font-size: 16px;
}

.osw-accounting-case-details small,
.osw-accounting-filing-details small,
.osw-accounting-archive-row small,
.osw-accounting-office-client small {
    margin-top: 5px;
    color: var(--osw-muted);
    font-size: 13px;
    line-height: 1.5;
}

.osw-accounting-case-details p,
.osw-accounting-filing-details p {
    margin: 9px 0 0;
    color: var(--osw-muted);
    line-height: 1.55;
}

.osw-accounting-case-actions,
.osw-accounting-filing-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
    max-width: 520px;
}

.osw-accounting-case-status {
    min-height: 42px;
    padding: 8px 11px;
    border: 1px solid var(--osw-line);
    border-radius: 12px;
    background: var(--osw-white);
    color: var(--osw-navy);
    font: inherit;
    font-size: 13px;
    font-weight: 700;
}

.osw-accounting-case-thread {
    display: grid;
    gap: 6px;
    margin-top: 12px;
    padding: 10px 12px;
    border-radius: 12px;
    background: var(--osw-soft);
}

.osw-accounting-case-thread p {
    margin: 0;
    font-size: 13px;
}

.osw-accounting-signature-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 24px;
    align-items: center;
    scroll-margin-top: 24px;
}

.osw-accounting-signature-card h2 {
    margin: 6px 0 8px;
}

.osw-accounting-signature-card p:not(.osw-eyebrow) {
    max-width: 850px;
    margin: 0;
    color: var(--osw-muted);
    line-height: 1.65;
}

.osw-accounting-archive-row code {
    display: block;
    width: fit-content;
    max-width: 100%;
    margin-top: 9px;
    overflow: hidden;
    color: var(--osw-muted);
    font-size: 12px;
    text-overflow: ellipsis;
}

.osw-accounting-control-empty {
    margin: 0;
    padding: 20px;
    border: 1px dashed var(--osw-line);
    border-radius: 16px;
    color: var(--osw-muted);
    text-align: center;
}

@media (max-width: 1050px) {
    .osw-accounting-control-summary,
    .osw-accounting-office-summary,
    .osw-accounting-case-form,
    .osw-accounting-filing-form {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .osw-accounting-case-form textarea,
    .osw-accounting-filing-form textarea {
        grid-column: span 2;
    }
}

@media (max-width: 720px) {
    .osw-accounting-control-summary,
    .osw-accounting-office-summary,
    .osw-accounting-case-form,
    .osw-accounting-filing-form,
    .osw-accounting-case,
    .osw-accounting-filing,
    .osw-accounting-archive-row,
    .osw-accounting-office-client,
    .osw-accounting-signature-card {
        grid-template-columns: 1fr;
    }

    .osw-accounting-case-form textarea,
    .osw-accounting-filing-form textarea {
        grid-column: auto;
    }

    .osw-accounting-case-actions,
    .osw-accounting-filing-actions {
        justify-content: flex-start;
        max-width: none;
    }

    .osw-accounting-case-actions > *,
    .osw-accounting-filing-actions > * {
        width: 100%;
        text-align: center;
    }
}

/* Pakiety: wszystkie funkcje są widoczne, a dostęp egzekwuje ten sam katalog co API. */
.osw-mail-reconciliation {
    margin-top: 18px;
    padding: 14px 16px;
    border: 1px solid rgba(200, 165, 80, 0.42);
    border-radius: 14px;
    background: rgba(200, 165, 80, 0.08);
}

.osw-mail-reconciliation p {
    margin: 0;
    color: var(--osw-navy);
    line-height: 1.55;
}

.osw-mail-reconciliation .osw-modal-actions {
    margin-top: 12px;
}

.osw-nav-group-label {
    margin: 14px 12px 5px;
    color: rgba(255, 255, 255, 0.52);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.12em;
    line-height: 1.2;
    text-transform: uppercase;
}

.osw-nav-group-label:first-child {
    margin-top: 2px;
}

.osw-nav a .osw-nav-label {
    width: auto;
    min-width: 0;
    flex: 1 1 auto;
    overflow: hidden;
    font-size: inherit;
    text-align: left;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.osw-nav a.is-plan-locked {
    cursor: pointer;
    opacity: 0.43;
    filter: saturate(0.35);
}

.osw-nav a.is-plan-locked:hover,
.osw-nav a.is-plan-locked:focus-visible {
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    opacity: 0.72;
}

.osw-nav a .osw-nav-lock {
    width: 7px;
    height: 7px;
    margin-left: auto;
    flex: 0 0 7px;
    overflow: hidden;
    border-radius: 50%;
    background: var(--osw-gold, #c8a550);
    color: transparent;
    box-shadow: 0 0 0 3px rgba(200, 165, 80, 0.12);
}

.osw-plan-lock-popover {
    position: absolute;
    z-index: 40;
    right: 14px;
    bottom: 88px;
    left: 14px;
    padding: 12px 14px;
    border: 1px solid rgba(200, 165, 80, 0.52);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 18px 48px rgba(0, 20, 45, 0.25);
    color: #062247;
    font-size: 12px;
    font-weight: 750;
    line-height: 1.45;
    opacity: 0;
    transform: translateY(5px);
    transition: opacity 160ms ease, transform 160ms ease;
}

.osw-plan-lock-popover.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.osw-package-welcome {
    position: fixed;
    z-index: 10030;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 24px;
}

.osw-package-welcome[hidden] {
    display: none !important;
}

.osw-package-welcome-card {
    position: relative;
    z-index: 1;
    width: min(100%, 560px);
    padding: clamp(28px, 5vw, 48px);
    border: 1px solid rgba(1, 36, 77, 0.1);
    border-radius: 28px;
    background: #fff;
    box-shadow: 0 30px 90px rgba(0, 24, 54, 0.2);
    color: #09264a;
}

.osw-package-welcome-card h2 {
    margin: 8px 0 14px;
    color: #062247;
    font-size: clamp(28px, 5vw, 42px);
    font-weight: 500;
    letter-spacing: -0.04em;
    line-height: 1.06;
}

.osw-package-welcome-card > p:not(.osw-eyebrow):not(.osw-form-error) {
    margin: 0 0 13px;
    color: #5d6f87;
    font-size: 16px;
    line-height: 1.55;
}

.osw-package-welcome-card .osw-package-welcome-lead {
    color: #16385f;
    font-weight: 750;
}

.osw-package-welcome-card .osw-package-welcome-upgrade {
    margin-bottom: 24px !important;
    padding: 13px 15px;
    border: 1px solid rgba(200, 165, 80, 0.32);
    border-radius: 14px;
    background: rgba(200, 165, 80, 0.08);
}

.osw-package-welcome-badge {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 6px 12px;
    border-radius: 999px;
    background: #e8f7f1;
    color: #087a53;
    font-size: 12px;
    font-weight: 850;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

@media (max-width: 720px) {
    .osw-package-welcome {
        align-items: end;
        padding: 12px;
    }

    .osw-package-welcome-card {
        padding: 26px 22px;
        border-radius: 24px;
    }

    .osw-package-welcome-card h2 {
        font-size: 30px;
    }
}

.osw-app .osw-color-control {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
}

.osw-app .osw-color-control input[type="color"] {
    width: 44px;
    min-width: 44px;
    height: 42px;
    min-height: 42px;
}

.osw-app .osw-color-control .osw-color-hex {
    width: 100%;
    min-width: 0;
    flex: none;
}

.osw-nav .osw-office-nav-icon svg {
    display: block;
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.9;
}

.osw-app .osw-report-metric span {
    margin-top: 5px;
    font-size: 12px;
    line-height: 1.35;
}

.osw-app .osw-recommendation strong {
    font-size: 13px;
    line-height: 1.4;
}

.osw-app .osw-recommendation small {
    margin-top: 5px;
    font-size: 13px;
    line-height: 1.45;
}

.osw-app .osw-table-wrap td,
.osw-app .osw-companies-table td,
.osw-app .osw-detail-list,
.osw-app .osw-timeline {
    font-size: 14px;
    line-height: 1.5;
}

.osw-app .osw-badge,
.osw-app [class*="status"],
.osw-app [class*="state"] {
    font-size: max(13px, .8rem);
}

.osw-app small {
    font-size: 13px;
    line-height: 1.45;
}

.osw-app .osw-chat-bubble time,
.osw-app .osw-listen-button,
.osw-app .osw-chat-quick-actions button,
.osw-app .osw-ai-voice-note,
.osw-app .osw-sales-status,
.osw-app .osw-message-type,
.osw-app .osw-mail-attachment,
.osw-app .osw-platform-badge,
.osw-app .osw-radar-state,
.osw-app .osw-package-usage small,
.osw-app .osw-device-setup-list small,
.osw-app .osw-biometric-other-login {
    font-size: 13px;
    line-height: 1.45;
}

.osw-app .osw-form-error,
.osw-app .osw-form-success,
.osw-app .osw-settings-note,
.osw-app .osw-legal-note,
.osw-app .osw-password-safety,
.osw-app .osw-connection-state,
.osw-app .osw-api-state,
.osw-app .osw-company-lookup-status {
    font-size: 14px;
    line-height: 1.5;
}

.osw-login-page {
    font-size: 16px;
}

.osw-login-page .osw-login-card label,
.osw-login-page .osw-login-intro,
.osw-login-page .osw-form-error,
.osw-login-page .osw-form-success {
    font-size: 14px;
    line-height: 1.5;
}

.osw-login-page input,
.osw-login-page button,
.osw-login-page .osw-passkey-login {
    min-height: 44px;
    font-size: 16px;
}

.osw-login-page .osw-login-separator,
.osw-login-page .osw-passkey-login-error,
.osw-login-page .osw-login-security-note,
.osw-login-page .osw-security-tip p,
.osw-login-page .osw-forgot-link,
.osw-login-page .osw-login-footer {
    font-size: 13px;
    line-height: 1.5;
}

@media (max-width: 760px) {
    .osw-app input,
    .osw-app select,
    .osw-app textarea {
        font-size: 16px;
    }
}

/* Stabilizacja interfejsu 6.11.0 */
.osw-assistant-view {
    position: relative;
}

.osw-assistant-close-view {
    position: absolute;
    z-index: 4;
    top: 20px;
    right: 26px;
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #5f6d7d;
    font: inherit;
    font-size: 32px;
    cursor: pointer;
}

.osw-assistant-close-view:hover {
    background: #edf2f7;
    color: var(--osw-navy);
}

.osw-assistant-heading-tools .osw-voice-toggle {
    width: 38px;
    min-width: 38px;
    height: 38px;
    min-height: 38px;
    justify-content: center;
    padding: 0;
    border-radius: 50%;
    font-size: 13px;
}

.osw-context-assistant-backdrop {
    position: fixed;
    z-index: 1090;
    inset: 0;
    border: 0;
    background: rgba(7, 25, 45, .2);
    backdrop-filter: blur(1px);
}

.osw-context-assistant-backdrop[hidden] {
    display: none;
}

.osw-module-summary .osw-summary-card {
    display: flex;
    min-width: 0;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 22px;
    border: 1px solid var(--osw-border);
    border-radius: var(--osw-radius);
    background: #fff;
    color: inherit;
    box-shadow: var(--osw-shadow);
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.osw-module-summary .osw-summary-card:hover,
.osw-module-summary .osw-summary-card:focus-visible {
    border-color: color-mix(in srgb, var(--osw-gold) 55%, var(--osw-border));
    transform: translateY(-1px);
}

.osw-module-summary .osw-summary-card span {
    color: var(--osw-muted);
}

.osw-module-summary .osw-summary-card strong {
    margin-top: 14px;
    color: var(--osw-navy);
    font-size: 30px;
}

.osw-calendar-event {
    cursor: pointer;
}

.osw-calendar-event:hover,
.osw-calendar-event:focus-within {
    border-color: color-mix(in srgb, var(--osw-gold) 45%, var(--osw-border));
}

.osw-calendar-event-cancel {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    padding: 0;
    border: 1px solid #efc6ca;
    border-radius: 50%;
    background: #fff;
    color: #9a2f3b;
    font: inherit;
    font-size: 20px;
    cursor: pointer;
}

.osw-mail-attachments-field input[type="file"] {
    padding: 10px;
    border: 1px dashed #bcc9d7;
    background: #f8fafc;
}

.osw-mail-attachment-list {
    display: grid;
    gap: 6px;
    margin-top: 8px;
}

.osw-mail-attachment-list > span {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 7px 9px;
    border-radius: 8px;
    background: #eef3f8;
    color: #405168;
    font-size: 12px;
}

@media (max-width: 760px) {
    .osw-assistant-close-view {
        top: 10px;
        right: 12px;
    }

    .osw-context-assistant-backdrop {
        background: rgba(7, 25, 45, .28);
    }
}

/* Ostateczne proporcje działań w nagłówkach — muszą wygrać ze starszymi regułami mobilnymi. */
.osw-app .osw-page-heading > .osw-primary-button,
.osw-app .osw-page-heading > .osw-secondary-button,
.osw-app .osw-page-heading .osw-heading-actions > .osw-primary-button,
.osw-app .osw-page-heading .osw-heading-actions > .osw-secondary-button,
.osw-app .osw-page-heading .osw-page-heading-actions > .osw-primary-button,
.osw-app .osw-page-heading .osw-page-heading-actions > .osw-secondary-button {
    min-height: 38px;
    padding: 7px 16px;
    border-radius: 10px;
    line-height: 1.2;
}

.osw-app .osw-welcome-actions > .osw-primary-button {
    min-height: 44px;
    padding: 10px 18px;
    line-height: 1.25;
}

@media (max-width: 760px) {
    .osw-app .osw-page-heading .osw-primary-button,
    .osw-app .osw-page-heading .osw-secondary-button {
        min-height: 38px;
        padding-block: 7px;
    }
}

/* OpenSmart One 6.13.8 — spójny rytm podstron i zwarty kalendarz. */
.osw-app .osw-view:not([data-osw-view="office"]):not(.osw-assistant-view) > .osw-page-heading {
    margin-bottom: 20px;
}

.osw-app .osw-view:not([data-osw-view="office"]):not(.osw-assistant-view) > .osw-page-heading + * {
    margin-top: 0;
}

.osw-app .osw-view[data-osw-view="notes"] > .osw-clients-empty,
.osw-app .osw-view[data-osw-view="clients"] > .osw-clients-empty {
    margin-top: 0;
}

.osw-app .osw-view[data-osw-view="calendar"] > .osw-module-summary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.osw-app .osw-view[data-osw-view="calendar"] > .osw-module-summary > article,
.osw-app .osw-view[data-osw-view="calendar"] > .osw-module-summary > .osw-summary-card {
    display: flex;
    min-height: 62px;
    padding: 9px 14px;
    align-items: flex-start;
    justify-content: center;
    flex-direction: column;
    border: 1px solid var(--osw-border);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 7px 20px rgba(19, 35, 54, .045);
}

.osw-app .osw-view[data-osw-view="calendar"] > .osw-module-summary > .osw-summary-card.is-active {
    border-color: color-mix(in srgb, var(--osw-navy) 62%, var(--osw-border));
    box-shadow: 0 7px 20px rgba(19, 35, 54, .06), inset 0 -2px 0 var(--osw-navy);
}

.osw-app .osw-view[data-osw-view="calendar"] > .osw-module-summary span {
    font-size: 12px;
    line-height: 1.2;
}

.osw-app .osw-view[data-osw-view="calendar"] > .osw-module-summary strong {
    margin-top: 3px;
    font-size: 20px;
    line-height: 1.05;
}

.osw-app .osw-view[data-osw-view="calendar"] > .osw-module-summary strong.is-text {
    font-size: 13px;
}

.osw-app .osw-view[data-osw-view="calendar"] > .osw-calendar-board {
    margin-top: 0;
    margin-bottom: 16px;
}

.osw-app .osw-view[data-osw-view="calendar"] > .osw-calendar-list,
.osw-app .osw-view[data-osw-view="calendar"] > .osw-clients-empty {
    margin-top: 16px;
    scroll-margin-top: 18px;
}

.osw-calendar-day.is-selected {
    border-color: var(--osw-navy);
    background: var(--osw-navy);
    color: #fff;
    box-shadow: 0 6px 15px rgba(0, 33, 71, .18);
}

.osw-calendar-day.is-selected .osw-calendar-event-markers i {
    background: #fff;
}

.osw-calendar-day.is-selected .osw-calendar-event-markers small {
    color: rgba(255, 255, 255, .82);
}

/* Jedyny wskaźnik pracy: cienka informacja nad głównym CTA Asystentki24. */
.osw-system-status[data-osw-inline-work-status] {
    position: relative;
    max-width: min(430px, 55vw);
    min-height: 24px;
    padding: 3px 8px;
    overflow: hidden;
    border-radius: 8px;
    background: rgba(255, 255, 255, .55);
}

.osw-system-status[data-osw-inline-work-status]::after {
    position: absolute;
    inset: 0 auto 0 -45%;
    width: 42%;
    content: "";
    background: linear-gradient(
        100deg,
        transparent,
        rgba(200, 165, 80, .14),
        rgba(255, 255, 255, .88),
        transparent
    );
    transform: skewX(-14deg);
    animation: osw-work-light 2.1s ease-in-out infinite;
    pointer-events: none;
}

.osw-system-status[data-osw-inline-work-status] > span:first-child {
    position: relative;
    z-index: 1;
    width: 8px;
    height: 8px;
    flex: 0 0 8px;
    border-radius: 50%;
}

.osw-system-status[data-osw-inline-work-status] > [data-osw-inline-work-label] {
    position: relative;
    z-index: 1;
    width: auto;
    height: auto;
    min-width: 0;
    overflow: hidden;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    animation: none;
    color: #526071;
    font-size: 12px;
    line-height: 1.3;
    opacity: 1;
    text-overflow: ellipsis;
    transform: none;
    white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
    .osw-system-status[data-osw-inline-work-status]::after {
        animation: none;
    }
}

@media (max-width: 760px) {
    .osw-app .osw-view:not([data-osw-view="office"]):not(.osw-assistant-view) > .osw-page-heading {
        margin-bottom: 16px;
    }

    .osw-app .osw-view[data-osw-view="calendar"] > .osw-module-summary {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 7px;
        margin-bottom: 12px;
    }

    .osw-app .osw-view[data-osw-view="calendar"] > .osw-module-summary > article,
    .osw-app .osw-view[data-osw-view="calendar"] > .osw-module-summary > .osw-summary-card {
        min-height: 56px;
        padding: 8px 9px;
        border-radius: 12px;
    }

    .osw-app .osw-view[data-osw-view="calendar"] > .osw-module-summary strong,
    .osw-app .osw-view[data-osw-view="calendar"] > .osw-module-summary strong.is-text {
        font-size: 15px;
    }

    .osw-app .osw-view[data-osw-view="calendar"] > .osw-module-summary span {
        font-size: 10px;
    }

    .osw-system-status[data-osw-inline-work-status] {
        max-width: calc(100vw - 32px);
    }
}

/* OpenSmart One 6.14.0 — panel boczny mieści komplet funkcji bez przewijania. */
.osw-sidebar {
    height: 100dvh;
    overflow: hidden;
}

.osw-logo,
.osw-install-app,
.osw-sidebar-footer {
    flex-shrink: 0;
}

.osw-nav {
    min-height: 0;
    align-content: start;
    gap: 4px;
    margin-top: 8px;
    padding: 0;
    overflow: hidden !important;
    scrollbar-width: none;
}

.osw-nav-group-label,
.osw-nav-group-label:first-child {
    min-height: 13px;
    margin: 3px 8px 0;
    color: rgba(229, 237, 245, .78);
    font-size: 8.5px;
    letter-spacing: .1em;
    line-height: 13px;
}

.osw-app[data-osw-theme="executive_light"] .osw-nav-group-label {
    color: #64788c;
}

.osw-nav a,
.osw-nav .osw-nav-platinum {
    min-height: 36px;
    height: 36px;
    gap: 8px;
    padding: 4px 9px;
    border-radius: 9px;
    font-size: 12px;
    line-height: 1;
}

/* Dokumenty: prawdziwy DOCX, PDF, import i spójny wybór kroju pisma. */
.osw-document-font-label {
    display: inline-flex;
    min-height: 34px;
    align-items: center;
    gap: 7px;
    padding: 0 8px;
    border-left: 1px solid #dce4ec;
    color: var(--osw-muted);
    font-size: 11px;
}

.osw-document-font-label select {
    min-height: 30px;
    max-width: 165px;
    padding: 0 28px 0 9px;
    border: 1px solid #d6dee7;
    border-radius: 8px;
    background: #fff;
    color: var(--osw-navy);
    font: inherit;
    font-size: 12px;
    font-weight: 700;
}

.osw-document-pdf-source {
    position: fixed;
    top: 0;
    left: -20000px;
    width: 794px;
    min-height: 1123px;
    padding: 54px 60px;
    background: #fff;
    color: #17283b;
    font-size: 15px;
    line-height: 1.58;
}

.osw-document-pdf-source h1,
.osw-document-pdf-source h2,
.osw-document-pdf-source h3 {
    break-after: avoid;
    color: #002147;
}

.osw-document-pdf-source table {
    width: 100%;
    border-collapse: collapse;
}

.osw-document-pdf-source td,
.osw-document-pdf-source th {
    padding: 7px;
    border: 1px solid #ccd5df;
}

/* Poczta: równe akcje, stałe strony po 20 wiadomości i starsze dane na żądanie. */
.osw-mail-heading-actions > .osw-primary-button,
.osw-mail-heading-actions > .osw-secondary-button,
.osw-mail-heading-actions > .osw-icon-button,
.osw-mail-account-identity,
.osw-mail-account-identity > span:not([hidden]),
.osw-mail-account-identity select {
    min-height: 46px;
    height: 46px;
}

.osw-mail-heading-actions > .osw-icon-button {
    width: 46px;
    flex: 0 0 46px;
}

.osw-mail-pagination {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 9px;
    padding: 12px 14px 3px;
    color: var(--osw-muted);
    font-size: 12px;
    font-weight: 700;
}

.osw-mail-pagination[hidden] {
    display: none;
}

.osw-mail-pagination button {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border: 1px solid #d7e0e9;
    border-radius: 9px;
    background: #fff;
    color: var(--osw-navy);
    cursor: pointer;
    font-size: 22px;
}

.osw-mail-pagination button:disabled {
    opacity: .38;
    cursor: default;
}

.osw-mail-older {
    display: block;
    margin: 9px auto 14px;
}

.osw-mail-older[hidden],
.osw-mail-tabs button[hidden] {
    display: none;
}

.osw-nav a > span:first-child {
    width: 17px;
    font-size: 15px;
}

.osw-install-app {
    min-height: 33px;
    height: 33px;
    margin: 6px 0;
    padding: 0 9px;
    border-radius: 9px;
    font-size: 11px;
}

.osw-install-app span {
    width: 20px;
    height: 20px;
    font-size: 13px;
}

.osw-sidebar-footer {
    min-height: 50px;
    gap: 8px;
    margin-top: 0;
    padding-top: 7px;
    padding-bottom: 7px;
}

.osw-user-avatar {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
}

.osw-sidebar-user-meta {
    min-width: 0;
    flex: 1 1 auto;
}

.osw-sidebar-footer .osw-sidebar-user-meta strong {
    max-width: none;
    font-size: 12px;
}

.osw-sidebar-footer a.osw-sidebar-logout {
    display: grid;
    width: 30px;
    height: 30px;
    margin: 0 0 0 auto;
    padding: 0;
    place-items: center;
    flex: 0 0 30px;
    color: #d94c58;
    border: 1px solid rgba(217, 76, 88, .38);
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 4px 12px rgba(111, 28, 36, .08);
}

.osw-sidebar-footer a.osw-sidebar-logout:hover,
.osw-sidebar-footer a.osw-sidebar-logout:focus-visible {
    color: #fff;
    border-color: #c93e4a;
    background: #c93e4a;
}

.osw-sidebar-logout svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}

.osw-document-empty h2 {
    margin-top: 0;
}

@media (min-width: 761px) {
    .osw-sidebar {
        padding: 0 12px;
    }

    .osw-logo {
        min-height: 68px;
        margin: 0 -12px;
        padding: 10px 12px;
    }

    .osw-logo .osw-brand-mark {
        width: 40px;
        height: 40px;
    }

    .osw-logo .osw-brand-wordmark {
        height: 38px;
    }

    .osw-sidebar-footer {
        margin: 0 -12px;
        padding-right: 12px;
        padding-left: 12px;
    }
}

@media (max-width: 760px) {
    .osw-sidebar {
        padding: 0 12px;
    }

    .osw-logo {
        min-height: 64px;
        margin: 0 -12px;
        padding: max(9px, env(safe-area-inset-top)) 12px 8px;
    }

    .osw-nav {
        margin-top: 6px;
        overflow: hidden !important;
    }

    .osw-sidebar-footer {
        margin: 0 -12px;
        padding-right: 12px;
        padding-left: 12px;
    }
}

@media (max-height: 740px) {
    .osw-logo {
        min-height: 58px;
        padding-top: 7px;
        padding-bottom: 7px;
    }

    .osw-logo .osw-brand-mark {
        width: 36px;
        height: 36px;
    }

    .osw-logo .osw-brand-wordmark {
        height: 34px;
    }

    .osw-nav {
        gap: 2px;
        margin-top: 5px;
    }

    .osw-nav-group-label,
    .osw-nav-group-label:first-child {
        min-height: 11px;
        margin-top: 1px;
        font-size: 8px;
        line-height: 11px;
    }

    .osw-nav a,
    .osw-nav .osw-nav-platinum {
        min-height: 29px;
        height: 29px;
        padding-top: 3px;
        padding-bottom: 3px;
    }

    .osw-install-app {
        min-height: 30px;
        height: 30px;
        margin: 4px 0;
    }

    .osw-sidebar-footer {
        min-height: 45px;
        padding-top: 5px;
        padding-bottom: 5px;
    }

    .osw-user-avatar {
        width: 31px;
        height: 31px;
        flex-basis: 31px;
    }

    .osw-sidebar-footer a.osw-sidebar-logout {
        width: 28px;
        height: 28px;
        flex-basis: 28px;
    }
}

@media (max-height: 620px) {
    .osw-logo {
        min-height: 48px;
        padding-top: 5px;
        padding-bottom: 5px;
    }

    .osw-logo .osw-brand-mark {
        width: 31px;
        height: 31px;
    }

    .osw-logo .osw-brand-wordmark {
        height: 29px;
    }

    .osw-nav {
        gap: 1px;
        margin-top: 3px;
    }

    .osw-nav-group-label,
    .osw-nav-group-label:first-child {
        min-height: 9px;
        margin-top: 0;
        font-size: 7.5px;
        line-height: 9px;
    }

    .osw-nav a,
    .osw-nav .osw-nav-platinum {
        min-height: 25px;
        height: 25px;
        padding-top: 2px;
        padding-bottom: 2px;
        font-size: 11px;
    }

    .osw-install-app {
        min-height: 27px;
        height: 27px;
        margin: 2px 0;
        font-size: 10px;
    }

    .osw-sidebar-footer {
        min-height: 39px;
        padding-top: 3px;
        padding-bottom: 3px;
    }

    .osw-user-avatar {
        width: 29px;
        height: 29px;
        flex-basis: 29px;
    }

    .osw-sidebar-footer a.osw-sidebar-logout {
        width: 26px;
        height: 26px;
        flex-basis: 26px;
    }
}
