:root {
    --tblr-primary: #4f46e5;
    --tblr-primary-rgb: 79, 70, 229;
    --tblr-sidebar-width: 240px;
    --tblr-font-sans-serif: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --tblr-body-bg: #f7f8fc;
    --tblr-body-color: #243047;
    --atelier-muted: #626d80;
    --atelier-border: #e7eaf1;
}

body {
    min-width: 320px;
}
a, button {
    touch-action: manipulation;
}
:focus-visible {
    outline: 3px solid #4f46e5;
    outline-offset: 4px;
}
.skip-link {
    position: fixed;
    top: -100px;
    left: 16px;
    z-index: 1100;
    padding: 12px 20px;
    background: #fff;
    color: #3730a3;
    border: 2px solid currentColor;
    border-radius: 8px;
}
.skip-link:focus {
    top: 12px;
}
.atelier-sidebar {
    background: #fff;
    border-right: 1px solid var(--atelier-border);
    box-shadow: none;
}
.atelier-brand {
    gap: 12px;
    justify-content: flex-start;
    font-size: 23px;
    font-weight: 750;
    letter-spacing: -.8px;
    color: #243047;
}
.brand-symbol {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: var(--tblr-primary);
    color: #fff;
    flex-shrink: 0;
}
.brand-symbol .icon {
    width: 25px;
    height: 25px;
}
.navigation-caption {
    margin: 32px 24px 12px;
    color: var(--atelier-muted);
    font-size: 10px;
    font-weight: 650;
    letter-spacing: 1.6px;
}
.atelier-sidebar .nav-link {
    min-height: 48px;
    margin: 3px 12px;
    padding: 12px;
    border-radius: 8px;
    gap: 9px;
    font-size: 14px;
}
.atelier-sidebar .nav-item.active .nav-link {
    color: #4338ca;
    background: #eeedff;
    font-weight: 650;
}
.atelier-sidebar .nav-item.active::after {
    display: none;
}
.atelier-sidebar .nav-link-icon {
    margin: 0;
    color: inherit;
}
.atelier-sidebar .upcoming-link {
    color: var(--atelier-muted);
    opacity: 1;
    cursor: default;
}
.upcoming-label {
    margin-left: auto;
    font-size: 10px;
    color: #6b7280;
    white-space: nowrap;
}
.sidebar-note {
    margin: auto 24px 28px;
    padding-top: 32px;
    color: var(--atelier-muted);
}
.sidebar-note > .icon {
    color: #a6adbc;
    margin-bottom: 12px;
}
.sidebar-note p {
    line-height: 1.7;
    font-size: 12px;
    margin: 0;
}
.sidebar-note strong {
    color: #47536a;
    font-weight: 550;
}
.workspace-header {
    display: flex;
    align-items: center;
    min-height: 76px;
    background: #fff;
    border-bottom: 1px solid var(--atelier-border);
}
.workspace-header > .container-xl {
    width: 100%;
}
.workspace-label {
    font-size: 13px;
    font-weight: 600;
}
.page-body {
    margin-top: 28px;
}
.page-pretitle {
    font-size: 10px;
    color: var(--atelier-muted);
    letter-spacing: 1.6px;
    margin-bottom: 9px;
}
.page-title {
    font-size: clamp(25px, 2.6vw, 32px);
    font-weight: 700;
    letter-spacing: -1px;
    line-height: 1.25;
}
.footer {
    margin-top: auto;
}

@media (min-width: 992px) {
    .atelier-sidebar {
        width: 240px;
    }
    .atelier-sidebar.navbar-vertical.navbar-expand-lg .container-fluid {
        padding: 30px 0 0;
    }
    .atelier-sidebar.navbar-vertical.navbar-expand-lg .navbar-brand {
        justify-content: flex-start;
        margin: 0;
        padding: 0 24px;
    }
    .atelier-sidebar .navbar-collapse {
        width: 100%;
        align-items: stretch;
        flex: 1;
    }
    .atelier-sidebar ~ .page-wrapper {
        margin-left: 240px;
    }
    .page-wrapper > .page-body > .container-xl,
    .workspace-header > .container-xl,
    .footer > .container-xl {
        padding-left: 40px;
        padding-right: 40px;
    }
}

@media (max-width: 991.98px) {
    .atelier-sidebar .container-fluid {
        padding: 14px 20px;
    }
    .atelier-sidebar .navbar-brand {
        margin: 0;
        padding: 0;
    }
    .atelier-sidebar .navbar-toggler {
        min-width: 44px;
        min-height: 44px;
        margin-left: auto;
    }
    .navigation-caption {
        margin: 24px 12px 10px;
    }
    .atelier-sidebar .nav-link {
        margin-left: 0;
        margin-right: 0;
    }
    .sidebar-note {
        display: none;
    }
    .workspace-header {
        min-height: 54px;
    }
}

@media (max-width: 575.98px) {
    .page-body {
        margin-top: 26px;
    }
    .container-xl {
        --tblr-gutter-x: 40px;
    }
    .brand-symbol {
        width: 36px;
        height: 36px;
        border-radius: 10px;
    }
    .atelier-brand {
        font-size: 21px;
    }
    .workspace-status {
        font-size: 11px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}

.auth-page {
    margin-left: 0 !important;
}
.auth-container {
    max-width: 440px;
    margin: clamp(24px, 7vh, 72px) auto 32px;
}
.auth-container .form-control,
.auth-container .btn {
    min-height: 48px;
    font-size: 16px;
    border-radius: 8px;
}
.auth-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 28px;
    font-size: 26px;
    font-weight: 750;
    letter-spacing: -.8px;
}
.auth-card {
    border: 1px solid var(--atelier-border);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgb(24 36 56 / 5%);
}
.auth-card .card-body {
    padding: clamp(20px, 5vw, 36px);
}
.auth-heading {
    margin-bottom: 28px;
}
.auth-heading h1 {
    margin: 0 0 10px;
    font-size: clamp(23px, 5vw, 28px);
    font-weight: 700;
    letter-spacing: -.7px;
    line-height: 1.25;
}
.auth-heading p,
.auth-help p {
    margin: 0;
    color: var(--atelier-muted);
    line-height: 1.65;
}
.auth-container .form-label {
    font-weight: 600;
}
.auth-container .form-hint {
    margin-top: 8px;
    color: var(--atelier-muted);
    line-height: 1.6;
}
.auth-password {
    position: relative;
}
.password-visibility-ready .auth-password .form-control {
    padding-right: 88px;
}
.auth-password-toggle {
    position: absolute;
    top: 2px;
    right: 3px;
    min-height: 44px;
    padding: 0 10px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: #4338ca;
    font: inherit;
    font-size: 13px;
    font-weight: 600;
}
.auth-password-toggle:hover {
    background: #eeedff;
}
.auth-password-toggle:focus-visible {
    outline-offset: 0;
}
.auth-submit {
    font-weight: 600;
}
.auth-error {
    display: block;
    line-height: 1.6;
}
.auth-error p {
    margin: 4px 0 0;
}
.auth-help {
    margin-top: 24px;
    padding: 0 8px;
    text-align: center;
    font-size: 13px;
}
.auth-help h2 {
    margin: 0 0 8px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.6;
}

.customer-form {
    max-width: 760px;
}
.customer-notes {
    white-space: pre-wrap;
}
.customer-form .form-control {
    min-height: 44px;
}

.order-form {
    max-width: 900px;
}
.order-form .form-control,
.order-form .form-select {
    min-height: 44px;
}
.order-line legend {
    float: none;
    width: auto;
}

.workspace-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding-top: 16px;
    padding-bottom: 16px;
}
.workspace-context,
.workspace-user {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
    overflow-wrap: anywhere;
}
.workspace-context {
    flex: 1;
}
.workspace-context-caption,
.workspace-user-role {
    color: var(--atelier-muted);
    font-size: 12px;
    line-height: 1.5;
}
.workspace-context .workspace-label {
    font-size: 15px;
    line-height: 1.5;
}
.workspace-account,
.workspace-identity {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}
.workspace-account {
    max-width: 55%;
    gap: 24px;
}
.workspace-user-name {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.5;
}
.workspace-logout {
    flex-shrink: 0;
}
.workspace-logout .btn {
    min-height: 44px;
    border-color: #d6dbe5;
    border-radius: 8px;
    font-size: 13px;
}
.atelier-sidebar .nav-link:hover:not(.upcoming-link) {
    background: #f4f4fc;
    color: #4338ca;
}
.atelier-sidebar .nav-item.active .nav-link:hover {
    background: #eeedff;
}
.atelier-sidebar .nav-link-title {
    min-width: 0;
    overflow-wrap: anywhere;
}
.workspace-footer {
    padding-top: 24px;
    padding-bottom: 24px;
    border-top: 1px solid var(--atelier-border);
}
.workspace-footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px 24px;
    color: var(--atelier-muted);
    font-size: 12px;
    line-height: 1.7;
}
.workspace-footer strong {
    color: #47536a;
    font-weight: 650;
}
.page-body .alert {
    overflow-wrap: anywhere;
}
@media (max-width: 767.98px) {
    .workspace-toolbar {
        flex-wrap: wrap;
        gap: 16px;
    }
    .workspace-context {
        flex-basis: 100%;
    }
    .workspace-account {
        width: 100%;
        max-width: none;
        justify-content: space-between;
        gap: 12px;
    }
    .workspace-avatar {
        display: none;
    }
    .workspace-footer-content {
        flex-direction: column;
        gap: 4px;
    }
}

/* Keep domain lists readable while leaving component styling to Tabler. */
.record-link {
    color: inherit;
    text-decoration: none;
    overflow-wrap: anywhere;
}
.record-link:hover {
    color: inherit;
    background: var(--tblr-active-bg);
    text-decoration: none;
}
.record-link:focus-visible {
    outline-offset: -3px;
}
.page-header .page-title {
    overflow-wrap: anywhere;
}
.page-body .btn,
.page-body .form-control,
.page-body .form-select,
.page-body .page-link {
    min-height: 44px;
}
.page-body summary.card-header {
    display: list-item;
    list-style-position: inside;
    cursor: pointer;
}
.page-body summary .card-title {
    display: inline;
}
@media (max-width: 767.98px) {
    .page-body .form-control,
    .page-body .form-select {
        font-size: 16px;
    }
    .page-header {
        margin-top: 0;
    }
}

/* SaaS administration stays isolated from workshop screens. */
.saas-admin-page { min-width: 0; }
.saas-admin { --saas-muted: #667085; --saas-line: #e6e9f0; padding-bottom: 12px; }
.saas-admin .card { border: 1px solid var(--saas-line); border-radius: 14px; box-shadow: 0 2px 4px #1c254103; overflow: hidden; }
.saas-admin .card-header { min-height: 88px; padding: 22px 24px; gap: 16px; justify-content: space-between; border-color: var(--saas-line); }
.saas-admin .card-body { padding: 26px; }
.saas-admin .card-title { margin: 0; font-size: 17px; font-weight: 650; letter-spacing: -.3px; }
.saas-admin .btn { gap: 8px; font-weight: 600; border-radius: 8px; }
.saas-admin .btn .icon { width: 18px; height: 18px; }
.saas-admin .form-control, .saas-admin .form-select { border-radius: 8px; border-color: #d8deea; box-shadow: 0 1px 2px #10182804; }
.saas-admin .form-control:focus, .saas-admin .form-select:focus { border-color: #8b83ee; box-shadow: 0 0 0 3px #4f46e51a; }
.saas-admin .form-label { font-size: 13px; font-weight: 600; margin-bottom: 8px; }
.saas-admin .form-hint { font-size: 12px; line-height: 1.6; }
.saas-admin .table > :not(caption) > * > * { padding: 16px 22px; border-color: var(--saas-line); }
.saas-admin .table thead th { background: #fafbfe; color: var(--saas-muted); font-size: 10px; letter-spacing: .9px; }
.saas-context { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; gap: 12px; }
.saas-breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; font-size: 12px; }
.saas-breadcrumb a { color: var(--saas-muted); text-decoration: none; }
.saas-breadcrumb a:hover { color: var(--tblr-primary); text-decoration: underline; }
.saas-breadcrumb > span:last-child { color: #39445a; font-weight: 550; }
.saas-breadcrumb > span[aria-hidden] { color: #b7bfcd; }
.saas-context-note { color: var(--saas-muted); font-size: 11px; }
.saas-session { display: flex; align-items: center; gap: 12px; padding: 14px 18px; margin-bottom: 32px; border: 1px solid #e0def8; background: #f1f0fe; border-radius: 10px; }
.saas-session-icon { display: grid; place-items: center; flex: 0 0 32px; height: 32px; border-radius: 9px; background: #e5e2fc; color: #5145c2; }
.saas-session-icon .icon { width: 19px; height: 19px; }
.saas-session-copy { display: flex; flex-wrap: wrap; align-items: baseline; gap: 5px 12px; flex: 1; min-width: 0; font-size: 12px; }
.saas-session-copy strong { color: #41378b; font-weight: 650; }
.saas-session-copy > span { color: #686283; }
.saas-session-link, .saas-text-link { display: inline-flex; align-items: center; gap: 7px; color: #5145c2; font-size: 12px; font-weight: 650; text-decoration: none; }
.saas-session-link .icon, .saas-text-link .icon { width: 16px; height: 16px; }
.saas-session-link:hover, .saas-text-link:hover { text-decoration: underline; }
.saas-session.is-verified { background: #f0f8f4; border-color: #dcece2; }
.saas-session.is-verified .saas-session-icon { background: #e0f0e6; color: #217246; }
.saas-session.is-verified .saas-session-copy strong { color: #246340; }
.saas-session.is-verified .saas-session-copy > span { color: #567562; }
.saas-session.is-verified .saas-session-link { color: #246340; }
.saas-page-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.saas-page-header .page-title { font-size: clamp(26px, 2.5vw, 33px); margin-bottom: 8px; }
.saas-page-header > .btn { flex-shrink: 0; }
.saas-page-description { margin: 0; color: var(--saas-muted); font-size: 13px; line-height: 1.7; }
.saas-section-description { color: var(--saas-muted); font-size: 12px; line-height: 1.6; margin: 5px 0 0; }
.saas-icon-tile { display: inline-grid; place-items: center; width: 38px; height: 38px; flex-shrink: 0; border-radius: 11px; color: #6658d4; background: #f0eefc; }
.saas-icon-tile .icon { width: 21px; height: 21px; }
.saas-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 26px; }
.saas-metric .card-body { padding: 22px; }
.saas-metric-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; color: var(--saas-muted); font-size: 12px; font-weight: 550; }
.saas-metric-value { font-size: clamp(28px, 2.5vw, 36px); font-weight: 700; letter-spacing: -1px; line-height: 1.3; margin-top: 15px; font-variant-numeric: tabular-nums; }
.saas-metric-value.saas-money { font-size: clamp(23px, 2.2vw, 33px); overflow-wrap: anywhere; }
.saas-metric-hint { margin: 7px 0 0; font-size: 11px; color: var(--saas-muted); }
.saas-dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); align-items: start; gap: 24px; }
.saas-action-row { display: flex; align-items: center; gap: 13px; padding: 19px 24px; color: inherit; border-bottom: 1px solid #f0f1f5; text-decoration: none; }
.saas-action-row:last-child { border-bottom: 0; }
.saas-action-row > span:nth-child(2) { flex: 1; min-width: 0; }
.saas-action-row strong { display: block; font-size: 13px; font-weight: 600; line-height: 1.5; }
.saas-action-row small { display: block; font-size: 11px; color: var(--saas-muted); line-height: 1.6; margin-top: 4px; }
.saas-action-row > .icon { width: 17px; height: 17px; color: #9da5b4; flex-shrink: 0; }
.saas-action-row:hover, .saas-recent-row:hover, .saas-workshop-row:hover { background: #fafaff; color: inherit; text-decoration: none; }
.saas-action-icon { display: grid; place-items: center; width: 34px; height: 34px; flex-shrink: 0; border-radius: 10px; color: #7b8498; background: #f1f3f7; }
.saas-action-icon .icon { width: 19px; height: 19px; }
.saas-action-icon.is-amber { background: #fff5df; color: #ac7419; }
.saas-action-icon.is-indigo { background: #eeebff; color: #6552c7; }
.saas-count { display: inline-block; min-width: 22px; padding: 1px 6px; margin-left: 5px; text-align: center; font-size: 11px; color: #667085; background: #f0f2f7; border-radius: 5px; }
.saas-recent-row { display: flex; align-items: center; gap: 12px; padding: 20px 24px; border-bottom: 1px solid #f0f1f5; color: inherit; text-decoration: none; }
.saas-workshop-avatar { display: inline-grid; place-items: center; width: 40px; height: 40px; flex: 0 0 40px; background: #f0eefb; color: #6555b3; border: 1px solid #e9e5f8; border-radius: 11px; font-size: 16px; font-weight: 650; }
.saas-grow { min-width: 0; flex: 1; }
.saas-recent-row strong { display: block; font-size: 13px; font-weight: 600; overflow-wrap: anywhere; }
.saas-recent-row small { display: block; font-size: 11px; color: var(--saas-muted); margin-top: 4px; }
.saas-badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 9px; border-radius: 6px; font-size: 10px; font-weight: 600; line-height: 1.4; color: #667085; background: #f1f3f7; white-space: nowrap; }
.saas-badge.is-green { background: #eaf6ee; color: #25734c; }
.saas-badge.is-red { background: #fdf0ee; color: #b3473c; }
.saas-badge.is-amber { background: #fff5df; color: #966714; }
.saas-status-dot { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.saas-card-note, .saas-inline-note { display: flex; align-items: flex-start; gap: 9px; color: var(--saas-muted); font-size: 11px; line-height: 1.7; }
.saas-card-note { padding: 18px 24px; background: #fafbfe; }
.saas-inline-note { margin-top: 22px; }
.saas-card-note .icon, .saas-inline-note .icon { width: 16px; height: 16px; flex-shrink: 0; margin-top: 2px; }
.saas-filters { display: flex; align-items: end; flex-wrap: wrap; gap: 12px; padding: 24px; }
.saas-filters > div { min-width: 150px; flex: 1; }
.saas-filters .saas-search-field { flex: 2; min-width: 200px; }
.saas-filters > .saas-text-link { min-height: 44px; }
.saas-results-header { display: flex; justify-content: space-between; gap: 12px; padding: 15px 24px; border-top: 1px solid var(--saas-line); font-size: 12px; }
.saas-results-header > span:last-child { color: var(--saas-muted); font-size: 11px; }
.saas-workshop-columns, .saas-workshop-row { display: grid; grid-template-columns: minmax(0, 2fr) minmax(150px, 1fr) 90px 20px; align-items: center; gap: 18px; padding: 20px 24px; }
.saas-workshop-columns { padding-top: 12px; padding-bottom: 12px; background: #fafbfe; color: var(--saas-muted); font-size: 10px; letter-spacing: .8px; text-transform: uppercase; border-block: 1px solid var(--saas-line); }
.saas-workshop-row { color: inherit; text-decoration: none; border-bottom: 1px solid #f0f1f5; }
.saas-workshop-list li:last-child .saas-workshop-row { border-bottom: 0; }
.saas-workshop-identity { display: flex; align-items: center; gap: 12px; min-width: 0; }
.saas-workshop-identity > span:last-child { min-width: 0; }
.saas-workshop-row strong { display: block; font-size: 13px; font-weight: 600; overflow-wrap: anywhere; }
.saas-workshop-row small { display: block; margin-top: 4px; font-size: 11px; line-height: 1.5; color: var(--saas-muted); overflow-wrap: anywhere; }
.saas-row-arrow { color: #99a2b4; }
.saas-row-arrow .icon { width: 18px; height: 18px; }
.saas-empty { text-align: center; padding: 48px 24px; }
.saas-empty-large { padding-block: 64px; }
.saas-empty-icon { display: grid; place-items: center; width: 62px; height: 62px; border-radius: 18px; background: #f0eefc; color: #7364ce; margin: 0 auto 22px; }
.saas-empty-icon .icon { width: 30px; height: 30px; }
.saas-empty h2, .saas-empty h3 { font-size: 19px; font-weight: 650; letter-spacing: -.4px; }
.saas-empty p { color: var(--saas-muted); font-size: 13px; max-width: 430px; margin: 10px auto 24px; line-height: 1.8; }
.saas-empty-footnote { display: block; color: var(--saas-muted); font-size: 11px; margin-top: 18px; }
.saas-eyebrow { display: block; color: #746597; font-size: 10px; letter-spacing: 1.4px; font-weight: 650; margin-bottom: 12px; }
.saas-plan-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.saas-plan-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 24px; }
.saas-plan-card h2 { font-size: 21px; margin-bottom: 4px; }
.saas-plan-price { font-size: 30px; font-weight: 700; letter-spacing: -1px; line-height: 1.3; padding: 20px 0; border-bottom: 1px solid var(--saas-line); overflow-wrap: anywhere; }
.saas-plan-price > span { font-size: 12px; font-weight: 600; letter-spacing: 0; }
.saas-plan-price small { color: var(--saas-muted); font-weight: 400; }
.saas-plan-capacity { display: flex; align-items: center; gap: 7px; margin: 22px 0 4px; font-size: 13px; }
.saas-plan-capacity .icon { width: 18px; height: 18px; color: #7b8498; }
.saas-pagination { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 20px; color: var(--saas-muted); font-size: 12px; }
.saas-back { display: inline-flex; align-items: center; gap: 4px; margin-bottom: 16px; color: var(--saas-muted); font-size: 12px; text-decoration: none; }
.saas-back .icon { width: 16px; height: 16px; }
.saas-form-grid { display: grid; grid-template-columns: minmax(0, 1fr) 270px; align-items: start; gap: 32px; }
.saas-form-legend { display: flex; align-items: center; gap: 10px; width: auto; margin-bottom: 20px; font-size: 16px; font-weight: 650; }
.saas-step-number { display: grid; place-items: center; width: 27px; height: 27px; border-radius: 8px; background: #f0edff; color: #6254b9; font-size: 12px; }
.saas-form-divider { border-top: 1px solid var(--saas-line); }
.saas-form-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; border-top: 1px solid var(--saas-line); padding: 18px 26px; background: #fafbfe; }
.saas-form-aside { padding-top: 8px; color: var(--saas-muted); font-size: 13px; line-height: 1.8; }
.saas-form-aside > h2 { margin: 20px 0 12px; font-size: 16px; color: #344054; font-weight: 650; }
.saas-checkbox-card { display: flex; align-items: flex-start; gap: 12px; padding: 17px; border: 1px solid var(--saas-line); border-radius: 10px; background: #fafbfe; cursor: pointer; }
.saas-checkbox-card .form-check-input { flex-shrink: 0; margin-top: 3px; }
.saas-checkbox-card strong { display: block; font-size: 12px; font-weight: 600; }
.saas-checkbox-card small { display: block; color: var(--saas-muted); font-size: 11px; margin-top: 4px; line-height: 1.6; }
.saas-required { color: #8076af; font-size: 11px; }
.saas-code-label { color: var(--saas-muted); font-size: 12px; }
.saas-code-label strong { display: block; color: #475467; margin-top: 5px; }
.saas-security-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.saas-security-card .card-body { padding: 36px; }
.saas-security-symbol { display: grid; place-items: center; width: 54px; height: 54px; background: #efecff; color: #6656c5; border-radius: 16px; margin-bottom: 24px; }
.saas-security-symbol.is-green { color: #28794e; background: #e8f5ed; }
.saas-security-symbol .icon { width: 28px; height: 28px; }
.saas-security-card h2 { font-size: 22px; font-weight: 650; letter-spacing: -.5px; }
.saas-security-card p { font-size: 13px; line-height: 1.8; }
.saas-otp-input { text-align: center; font-size: 29px; letter-spacing: .45em; font-variant-numeric: tabular-nums; padding: 16px 8px 16px 20px; margin: 12px 0 10px; min-height: 68px !important; }
.saas-otp-input::placeholder { color: #c0c5d3; opacity: 1; }
.saas-security-caption { text-align: center; color: var(--saas-muted); font-size: 11px !important; margin: 16px 0 0; }
.saas-security-guide { padding-top: 18px; }
.saas-security-guide > h2 { font-size: 21px; line-height: 1.5; font-weight: 650; letter-spacing: -.4px; max-width: 290px; margin-bottom: 28px; }
.saas-steps { list-style: none; padding: 0; margin: 0 0 24px; counter-reset: none; }
.saas-steps li { display: flex; align-items: flex-start; gap: 13px; margin: 0 0 24px; }
.saas-steps li > span { display: grid; place-items: center; width: 27px; height: 27px; flex: 0 0 27px; border: 1px solid #deddec; background: #fff; color: #7a6da9; border-radius: 50%; font-size: 11px; font-weight: 600; }
.saas-steps strong { display: block; font-size: 13px; color: #344054; font-weight: 600; }
.saas-steps p { margin: 6px 0 0; color: var(--saas-muted); font-size: 12px; line-height: 1.8; }
.saas-help-box { display: flex; align-items: flex-start; gap: 11px; padding: 18px; border: 1px solid #e3e6f0; border-radius: 10px; background: #f5f6fb; color: var(--saas-muted); }
.saas-help-box > .icon { flex-shrink: 0; width: 18px; height: 18px; color: #8a82ab; margin-top: 2px; }
.saas-help-box strong { font-size: 12px; color: #566074; font-weight: 600; }
.saas-help-box p { margin: 4px 0 0; font-size: 12px; line-height: 1.8; }
.saas-security-success { display: flex; gap: 8px; align-items: center; color: #2b764b; background: #edf7f0; padding: 13px; border-radius: 8px; font-size: 12px; margin: 18px 0; }
.saas-security-success .icon { width: 18px; height: 18px; flex-shrink: 0; }
.saas-section-nav { display: flex; gap: 22px; overflow-x: auto; border-bottom: 1px solid var(--saas-line); margin-bottom: 26px; }
.saas-section-nav a { padding: 0 0 14px; font-size: 12px; color: var(--saas-muted); white-space: nowrap; text-decoration: none; }
.saas-section-nav a:hover { color: var(--tblr-primary); }
.saas-section-anchor { scroll-margin-top: 24px; }
.saas-detail-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 24px; margin-bottom: 26px; }
.saas-detail-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; color: var(--saas-muted); font-size: 12px; margin-top: 10px; }
.saas-detail-meta span { display: inline-flex; gap: 6px; align-items: center; }
.saas-detail-meta .icon { width: 15px; height: 15px; }
.saas-detail-owner { padding: 18px 0; border-bottom: 1px solid var(--saas-line); }
.saas-detail-owner:last-child { padding-bottom: 0; border-bottom: 0; }
.saas-detail-owner p { color: var(--saas-muted); font-size: 12px; overflow-wrap: anywhere; margin: 5px 0 12px; }
.saas-subscription-overview { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.saas-subscription-overview h3 { font-size: 21px; margin: 4px 0 10px; }
.saas-subscription-overview p { font-size: 12px; color: var(--saas-muted); margin: 5px 0; }
.saas-table-note { padding: 14px 22px; color: var(--saas-muted); background: #fafbfe; font-size: 11px; }
.saas-danger-zone { margin-top: 26px; border: 1px solid #eededb !important; }
.saas-danger-zone summary { padding: 20px 24px; cursor: pointer; color: #a25247; font-size: 13px; font-weight: 600; }
.saas-danger-zone .card-body { border-top: 1px solid #eededb; }
.saas-audit-action { font-size: 12px; font-weight: 600; }
.saas-audit-context { display: block; margin-top: 5px; color: var(--saas-muted); font-size: 11px; }
.saas-resource-id { font-size: 10px; overflow-wrap: anywhere; color: var(--saas-muted); }
@media (max-width: 1199.98px) {
    .saas-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .saas-plan-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .saas-form-grid { grid-template-columns: minmax(0, 1fr) 230px; gap: 24px; }
    .saas-dashboard-grid { gap: 18px; }
}
@media (max-width: 767.98px) {
    .saas-context-note { display: none; }
    .saas-admin-page .workspace-context { display: none; }
    .saas-session { flex-wrap: wrap; gap: 10px; padding: 14px; margin-bottom: 26px; }
    .saas-session-copy { flex-direction: column; align-items: flex-start; gap: 3px; }
    .saas-session-link { margin-left: 42px; min-height: 30px; flex-basis: calc(100% - 42px); }
    .saas-page-header { align-items: flex-start; flex-wrap: wrap; gap: 16px; margin-bottom: 24px; }
    .saas-metrics { gap: 12px; }
    .saas-metric .card-body { padding: 16px; }
    .saas-metric-top { align-items: flex-start; font-size: 11px; }
    .saas-metric-top .saas-icon-tile { width: 28px; height: 28px; border-radius: 8px; }
    .saas-metric-top .saas-icon-tile .icon { width: 16px; height: 16px; }
    .saas-metric-value { font-size: 29px; }
    .saas-metric-hint { line-height: 1.6; }
    .saas-dashboard-grid, .saas-form-grid, .saas-security-grid, .saas-detail-grid { grid-template-columns: minmax(0, 1fr); }
    .saas-admin .card-header { padding: 20px; }
    .saas-admin .card-body { padding: 22px; }
    .saas-action-row, .saas-recent-row { padding: 18px 20px; }
    .saas-card-note { padding: 18px 20px; }
    .saas-filters { padding: 20px; }
    .saas-filters > div { min-width: 0; flex-basis: calc(50% - 6px); }
    .saas-filters .saas-search-field { flex-basis: 100%; }
    .saas-filters > .btn { flex: 1; }
    .saas-results-header { padding: 15px 20px; }
    .saas-results-header > span:last-child { display: none; }
    .saas-workshop-columns { display: none; }
    .saas-workshop-row { grid-template-columns: minmax(0, 1fr) auto; gap: 14px; padding: 20px; }
    .saas-workshop-identity { grid-column: 1 / -1; }
    .saas-workshop-billing { padding-left: 52px; }
    .saas-workshop-row > span:nth-last-child(2) { grid-column: 2; grid-row: 2; }
    .saas-row-arrow { display: none; }
    .saas-form-aside { padding: 0 6px; }
    .saas-security-guide { padding: 8px 4px 0; }
    .saas-security-guide > h2 { max-width: none; }
    .saas-form-actions { padding: 18px 20px; }
    .saas-otp-input { font-size: clamp(22px, 7vw, 27px) !important; letter-spacing: .32em; }
    .saas-subscription-overview { flex-wrap: wrap; }
}
@media (max-width: 479.98px) {
    .saas-plan-grid { grid-template-columns: minmax(0, 1fr); }
    .saas-metric-top { gap: 4px; }
    .saas-metric-top .saas-icon-tile { display: none; }
    .saas-metric-value.saas-money { font-size: 23px; }
    .saas-empty { padding: 36px 22px; }
    .saas-recent-row { flex-wrap: wrap; }
    .saas-pagination { flex-wrap: wrap; }
}

.order-model-photo { display: block; width: 180px; max-width: 100%; max-height: 220px; object-fit: contain; border-radius: 8px; border: 1px solid var(--atelier-border); }
.order-document { max-width: 820px; margin: 0 auto; padding: clamp(20px, 5vw, 48px); overflow-wrap: anywhere; }
@media print {
    .order-document-page .navbar, .order-document-page .workspace-header, .order-document-page .workspace-footer,
    .order-document-page .document-toolbar, .order-document-page .skip-link { display: none !important; }
    .order-document-page .page-wrapper { margin: 0 !important; }
    .order-document-page .page-body, .order-document-page .container-xl { margin: 0; padding: 0; }
    .order-document-page .order-document { max-width: none; border: 0; box-shadow: none; padding: 8mm; }
    .order-document-page .table-responsive { overflow: visible; }
    .order-document-page { background: white; color: black; }
    .order-document-page tr { break-inside: avoid; }
}

/* Owner workspace: priorities first, with the same routes and business controls. */
.owner-workspace .card { border-radius: 14px; border-color: var(--atelier-border); box-shadow: 0 2px 4px #24304703; }
.owner-workspace .card-header { gap: 12px; flex-wrap: wrap; }
.owner-workspace .page-title { letter-spacing: -.7px; }
.owner-date { display: flex; align-items: center; gap: 7px; color: var(--atelier-muted); font-size: 12px; margin-bottom: 16px; }
.owner-date .icon { width: 16px; height: 16px; }
.owner-icon { display: inline-grid; place-items: center; flex: 0 0 36px; width: 36px; height: 36px; border-radius: 11px; background: #f1f3f8; color: #6b7486; }
.owner-icon .icon { width: 20px; height: 20px; }
.owner-icon.is-indigo { background: #efedff; color: #574ac9; }
.owner-icon.is-amber { background: #fff3dd; color: #98600c; }
.owner-icon.is-teal { background: #e7f6ef; color: #21775a; }
.owner-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.owner-metric .card-body { padding: 22px; }
.owner-metric-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: #566175; font-size: 13px; font-weight: 550; }
.owner-metric-value { display: block; font-size: 38px; font-weight: 700; letter-spacing: -1px; margin-block: 8px; line-height: 1.2; font-variant-numeric: tabular-nums; }
.owner-metric-hint { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--atelier-muted); font-size: 11px; }
.owner-metric-hint .icon { flex-shrink: 0; width: 16px; height: 16px; }
.owner-dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.owner-dashboard-grid > *, .owner-dashboard-aside > * { min-width: 0; }
.owner-dashboard-aside { display: grid; gap: 20px; }
.owner-priorities .card-header { justify-content: space-between; padding: 22px; }
.owner-card-note { margin: 0; padding: 14px 22px; font-size: 12px; color: var(--atelier-muted); background: #fbfbfe; border-bottom: 1px solid var(--atelier-border); }
.owner-planning-row { display: flex; align-items: center; gap: 14px; padding: 18px 22px; color: inherit; text-decoration: none; border-bottom: 1px solid var(--atelier-border); }
.owner-planning-row:last-child { border-bottom: 0; border-radius: 0 0 14px 14px; }
.owner-planning-date { display: flex; align-items: center; flex-direction: column; gap: 4px; width: 46px; flex: 0 0 46px; padding: 8px 3px; font-size: 12px; background: #f2f3fc; border-radius: 10px; color: #6255ac; font-weight: 600; }
.owner-planning-date .icon { width: 18px; height: 18px; }
.owner-planning-date.is-overdue { background: #fff4e1; color: #926010; }
.owner-planning-copy { min-width: 0; flex: 1; }
.owner-planning-copy strong { display: block; font-size: 14px; overflow-wrap: anywhere; }
.owner-planning-copy small { display: block; color: var(--atelier-muted); font-size: 11px; margin-top: 5px; overflow-wrap: anywhere; }
.owner-planning-status { flex-shrink: 0; text-align: right; }
.owner-planning-status small { display: flex; align-items: center; justify-content: end; gap: 6px; color: var(--atelier-muted); font-size: 11px; margin-top: 7px; }
.owner-planning-status small .icon { width: 15px; height: 15px; }
.owner-revenue { background: linear-gradient(140deg, #fff 20%, #f4f2ff); }
.owner-revenue-value { font-size: clamp(24px, 2.5vw, 32px); font-weight: 700; letter-spacing: -.8px; overflow-wrap: anywhere; margin-block: 14px; }
.owner-revenue-value span { font-size: 12px; font-weight: 550; letter-spacing: 0; }
.owner-shortcut { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-top: 1px solid var(--atelier-border); color: inherit; text-decoration: none; }
.owner-shortcut > span:nth-child(2) { flex: 1; min-width: 0; }
.owner-shortcut strong { font-size: 13px; font-weight: 600; }
.owner-shortcut small { display: block; color: var(--atelier-muted); font-size: 11px; margin-top: 4px; }
.owner-shortcut > .icon { width: 17px; height: 17px; color: #8b93a4; }
.owner-shortcut:hover { background: #f8f8ff; color: var(--tblr-primary); }
.owner-section-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 16px; }
.owner-section-heading a { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; }
.owner-section-heading .icon { width: 16px; height: 16px; }
.owner-pipeline { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.owner-pipeline a { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 10px; padding: 18px; }
.owner-pipeline span { grid-column: 1 / -1; color: var(--atelier-muted); font-size: 12px; }
.owner-pipeline strong { font-size: 25px; }
.owner-pipeline .icon { width: 17px; height: 17px; color: #8d92a5; }
.owner-guide-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; padding-left: 20px; margin-bottom: 0; }
.owner-guide-steps strong { display: block; font-size: 13px; margin-bottom: 6px; }
.owner-guide-steps span { font-size: 12px; color: var(--atelier-muted); }
.owner-filter-tabs, .owner-section-links { display: flex; align-items: center; gap: 8px; overflow-x: auto; padding: 4px 4px 12px; margin: 0 -4px 12px; scrollbar-width: thin; }
.owner-filter-tabs a { display: inline-flex; align-items: center; min-height: 42px; padding: 9px 17px; border: 1px solid var(--atelier-border); border-radius: 24px; color: #566175; background: #fff; white-space: nowrap; font-size: 13px; text-decoration: none; }
.owner-filter-tabs a[aria-current] { background: #eeedff; color: #4338ca; border-color: #bdb7f4; font-weight: 600; }
.owner-section-links { gap: 20px; border-bottom: 1px solid var(--atelier-border); margin-bottom: 24px; }
.owner-section-links a { padding: 9px 2px; font-size: 13px; color: #596277; white-space: nowrap; }
.owner-section-links a:hover { color: var(--tblr-primary); }
.owner-order-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.owner-summary-cell { min-width: 0; }
.owner-summary-cell .card { height: 100%; }
.owner-summary-cell:last-child .card { background: #f0eefc; border-color: #ded9f7; }
.owner-summary-cell strong { overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.owner-order-quick-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.owner-delivery-row { padding: 22px; }
.owner-delivery-row p { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; font-size: 13px; }
.owner-delivery-row .icon { width: 16px; height: 16px; }
.owner-delivery-row strong { overflow-wrap: anywhere; }
.owner-delivery-action { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; color: var(--tblr-primary); font-size: 12px; }
.owner-workspace [id] { scroll-margin-top: 24px; }
.owner-mobile-nav { display: none; }
@media (max-width: 991.98px) {
    .owner-dashboard-grid { grid-template-columns: minmax(0, 1fr); }
    .owner-dashboard-aside { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .owner-mobile-nav { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); position: fixed; inset: auto 0 0; background: #fffffff5; border-top: 1px solid #e3e4ef; box-shadow: 0 -3px 16px #24304708; padding: 5px 8px max(5px, env(safe-area-inset-bottom)); z-index: 1030; }
    .owner-mobile-nav a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 54px; border-radius: 9px; color: #626d80; text-decoration: none; font-size: 10px; font-weight: 550; }
    .owner-mobile-nav a[aria-current] { color: #4338ca; background: #eeedff; }
    .owner-mobile-nav .icon { width: 22px; height: 22px; }
    .owner-workspace .page-wrapper { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
}
@media (max-width: 575.98px) {
    .owner-metrics { gap: 8px; }
    .owner-metric .card-body { padding: 14px 11px; }
    .owner-metric-top { font-size: 11px; min-height: 32px; align-items: flex-start; }
    .owner-metric-top .owner-icon { display: none; }
    .owner-metric-value { font-size: 30px; }
    .owner-metric-hint { font-size: 10px; line-height: 1.5; align-items: flex-end; }
    .owner-metric-hint .icon { display: none; }
    .owner-dashboard-aside { grid-template-columns: minmax(0, 1fr); }
    .owner-priorities .card-header, .owner-card-note { padding: 18px; }
    .owner-planning-row { flex-wrap: wrap; padding: 16px; gap: 10px; }
    .owner-planning-copy { flex-basis: calc(100% - 60px); }
    .owner-planning-status { display: flex; align-items: center; gap: 10px; padding-left: 56px; text-align: left; }
    .owner-planning-status small { margin: 0; }
    .owner-pipeline { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .owner-guide-steps { grid-template-columns: minmax(0, 1fr); gap: 16px; }
    .owner-order-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .owner-summary-cell:first-child { grid-column: 1 / -1; }
    .owner-summary-cell .card-body { padding: 16px; }
    .owner-summary-cell strong { font-size: 21px; }
    .owner-order-quick-actions > .btn { flex: 1 1 100%; }
    .owner-workspace .workspace-toolbar { gap: 10px; padding-block: 12px; }
    .owner-workspace .workspace-context-caption { display: none; }
    .owner-workspace .workspace-account { gap: 8px; }
    .owner-workspace .workspace-user { gap: 0; }
    .owner-workspace .workspace-user-name { font-size: 12px; }
    .owner-workspace .workspace-user-role { font-size: 11px; }
    .owner-workspace .workspace-logout .btn { min-height: 38px; padding: 7px 10px; font-size: 11px; }
    .owner-delivery-action { margin-left: 0; flex-basis: 100%; margin-top: 5px; }
}
@media print { .owner-mobile-nav, .owner-section-links, .owner-order-quick-actions { display: none !important; } }
.owner-workspace #delivery-filter { min-width: 0; max-width: 100%; }

@media print { .order-document-page .page-wrapper { padding-bottom: 0 !important; } }

.workspace-switch { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; padding: 5px 0; min-height: 32px; color: #4f46e5; font-size: 12px; font-weight: 550; text-decoration: none; }
.workspace-switch:hover { color: #3730a3; text-decoration: underline; }
@media (max-width: 767.98px) { .workspace-switch { min-height: 44px; } }
@media print { .workspace-switch { display: none !important; } }
