@font-face {
    font-family:Poppins;
    src:url('/assets/fonts/poppins-400.ttf') format('truetype');
    font-weight:400;
    font-display:swap;
}

@font-face {
    font-family:Poppins;
    src:url('/assets/fonts/poppins-500.ttf') format('truetype');
    font-weight:500;
    font-display:swap;
}

@font-face {
    font-family:Poppins;
    src:url('/assets/fonts/poppins-600.ttf') format('truetype');
    font-weight:600;
    font-display:swap;
}

@font-face {
    font-family:Poppins;
    src:url('/assets/fonts/poppins-700.ttf') format('truetype');
    font-weight:700;
    font-display:swap;
}

:root {
    --purple:#8d34f2;
    --purple-dark:#7020c8;
    --ink:#0b0f0a;
    --muted:#686773;
    --line:#e9e7ed;
    --lavender:#f3edfd;
    --paper:#f8f9f6;
    --white:#fff;
    --radius:14px;
}

* {
    box-sizing:border-box;
}

body {
    margin:0;
    color:var(--ink);
    font-family:Poppins,system-ui,sans-serif;
    font-size:14px;
    -webkit-font-smoothing:antialiased;
}

a {
    color:inherit;
    text-decoration:none;
}

button,input {
    font:inherit;
}

button,a,input {
    touch-action:manipulation;
}

button {
    cursor:pointer;
}

img {
    max-width:100%;
    height:auto;
}

h1,h2,h3,p {
    margin-top:0;
}

h1,h2,h3 {
    font-weight:600;
    letter-spacing:-.055em;
}

button:focus-visible,a:focus-visible,input:focus-visible {
    outline:3px solid #b790ef;
    outline-offset:4px;
}

.skip-link {
    position:fixed;
    left:16px;
    top:-100px;
    background:white;
    padding:12px;
    z-index:20;
}

.skip-link:focus {
    top:12px;
}

.eyebrow {
    font-size:10px;
    letter-spacing:.18em;
    font-weight:500;
    color:var(--purple-dark);
    margin-bottom:18px;
}

.muted {
    color:var(--muted);
    line-height:1.8;
}

.dot {
    display:inline-block;
    width:7px;
    height:7px;
    flex-shrink:0;
    border-radius:50%;
    background:var(--purple);
}

.button {
    border:0;
    border-radius:8px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:20px;
    min-height:52px;
    padding:14px 22px;
    font-weight:500;
}

.primary {
    background:var(--purple);
    color:white;
    transition:background .15s;
}

.primary:hover {
    background:var(--purple-dark);
}

.section-icon {
    width:44px;
    height:44px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    color:var(--purple);
    background:var(--lavender);
    border:1px solid #e9ddfa;
    border-radius:12px;
}

.login-layout {
    min-height:100dvh;
    display:grid;
    grid-template-columns:1.05fr 1fr;
}

.login-brand {
    background:var(--paper);
    padding:44px 9%;
    display:flex;
    flex-direction:column;
    position:relative;
    overflow:hidden;
}

.brand-logo {
    width:166px;
    align-self:flex-start;
}

.brand-story {
    margin:auto 0;
    padding:65px 0;
    max-width:570px;
}

.brand-story .eyebrow {
    display:flex;
    align-items:center;
    gap:12px;
}

.brand-story .eyebrow span {
    width:25px;
    height:1px;
    background:var(--purple);
}

.brand-story h2 {
    font-size:clamp(42px,3.9vw,70px);
    line-height:1.14;
    margin:0 0 28px;
    letter-spacing:-.065em;
}

.brand-story h2>span {
    color:var(--purple);
}

.brand-description {
    max-width:370px;
    font-size:15px;
    color:var(--muted);
    line-height:1.85;
}

.brand-details {
    margin-top:44px;
    border-top:1px solid #dddfd8;
    max-width:380px;
}

.brand-details>div {
    display:flex;
    align-items:center;
    gap:24px;
    border-bottom:1px solid #dddfd8;
    padding:13px 0;
}

.brand-details span {
    font-size:10px;
    color:var(--purple);
    font-family:monospace;
}

.brand-details p {
    margin:0;
    font-size:12px;
}

.brand-footer {
    font-size:9px;
    letter-spacing:.18em;
    color:var(--muted);
    margin:0;
}

.brand-footer span {
    margin:0 12px;
    color:var(--purple);
}

.login-form-side {
    display:flex;
    flex-direction:column;
    padding:44px 9% 28px;
}

.login-topline {
    font-size:11px;
    align-self:flex-end;
    display:flex;
    align-items:center;
    gap:8px;
    color:var(--muted);
}

.login-card {
    width:100%;
    max-width:385px;
    margin:auto;
    padding:42px 0;
}

.login-card>.section-icon {
    margin-bottom:28px;
}

.login-card .eyebrow {
    margin-bottom:12px;
}

.login-card h1 {
    font-size:39px;
    line-height:1.2;
    margin-bottom:16px;
}

.login-intro {
    font-size:13px;
    margin-bottom:31px;
}

.login-form {
    display:flex;
    flex-direction:column;
}

.login-form label {
    font-size:12px;
    font-weight:500;
    margin-bottom:9px;
}

.login-form input:not([type=hidden]) {
    width:100%;
    min-width:0;
    min-height:51px;
    border:1px solid #dedce4;
    background:#fff;
    border-radius:8px;
    padding:12px 15px;
    color:var(--ink);
    font-size:13px;
}

.login-form input::placeholder {
    color:#a09ca9;
}

.login-form>input[type=email] {
    margin-bottom:24px;
}

.password-field {
    position:relative;
}

.password-field input {
    padding-right:84px!important;
}

.reveal-password {
    position:absolute;
    right:10px;
    top:50%;
    transform:translateY(-50%);
    background:transparent;
    color:var(--muted);
    font-size:10px;
    padding:9px;
    border:0;
}

.login-submit {
    margin-top:28px;
    justify-content:space-between;
    font-size:13px;
}

.login-help {
    font-size:11px;
    text-align:center;
    margin:25px 0 0;
    line-height:1.9;
    color:var(--ink);
}

.login-help span {
    color:var(--muted);
}

.login-footer {
    font-size:9px;
    color:var(--muted);
    display:flex;
    justify-content:space-between;
    margin:0;
    gap:12px;
}

.mobile-logo {
    display:none;
}

.alert {
    background:#fff1f2;
    color:#9e2239;
    border:1px solid #f1c4ce;
    padding:12px 15px;
    border-radius:8px;
    font-size:12px;
    line-height:1.7;
    margin-bottom:22px;
}

.workspace-page {
    background:#f8f9fc;
}

.workspace-layout {
    display:grid;
    grid-template-columns:250px minmax(0,1fr);
    min-height:100dvh;
}

.sidebar {
    background:white;
    border-right:1px solid var(--line);
    display:flex;
    flex-direction:column;
    padding:32px 18px;
    position:sticky;
    top:0;
    height:100dvh;
    overflow-y:auto;
}

.sidebar-logo {
    display:block;
    margin:0 13px 33px;
}

.workspace-label {
    margin:0 6px 35px;
    border:1px solid var(--line);
    padding:12px 10px;
    display:flex;
    align-items:center;
    gap:11px;
    border-radius:10px;
    font-size:11px;
    font-weight:500;
}

.workspace-monogram {
    background:var(--lavender);
    border-radius:8px;
    color:var(--purple);
    font-weight:600;
    display:grid;
    place-items:center;
    width:33px;
    height:35px;
}

.workspace-label small {
    display:block;
    color:var(--muted);
    font-weight:400;
    font-size:10px;
    margin-top:3px;
}

.nav-item {
    display:flex;
    align-items:center;
    gap:12px;
    border-radius:8px;
    padding:13px 14px;
    min-height:46px;
    font-size:11px;
    margin-bottom:4px;
    color:#575260;
}

.nav-item.active {
    color:var(--purple-dark);
    background:var(--lavender);
    font-weight:500;
}

.nav-item.disabled {
    color:#8b8793;
}

.nav-item small {
    margin-left:auto;
    white-space:nowrap;
    font-size:8px;
    color:#938b9e;
}

.nav-item:not(.disabled):hover {
    background:var(--lavender);
}

.nav-item svg {
    width:18px;
    flex-shrink:0;
}

.crm-navigation > summary {
    list-style:none;
    cursor:pointer;
    user-select:none;
}

.crm-navigation > summary::-webkit-details-marker {
    display:none;
}

.nav-chevron {
    width:7px;
    height:7px;
    margin-left:auto;
    margin-right:3px;
    border-right:1.5px solid currentColor;
    border-bottom:1.5px solid currentColor;
    transform:rotate(45deg);
}

.crm-navigation[open] > summary .nav-chevron {
    transform:rotate(225deg);
}

.crm-submenu {
    margin:6px 0 12px 22px;
    padding-left:7px;
    border-left:1px solid var(--line);
}

.crm-submenu .nav-item {
    padding:11px 13px;
    font-size:10px;
}

.workspace-main {
    display:flex;
    flex-direction:column;
    min-width:0;
}

.topbar {
    background:white;
    border-bottom:1px solid var(--line);
    height:91px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:0 44px;
    gap:18px;
}

.breadcrumb {
    font-size:10px;
    color:var(--muted);
}

.breadcrumb>span {
    color:#c2bec9;
    margin:0 14px;
}

.breadcrumb strong {
    font-weight:500;
    color:#403a49;
}

.profile {
    display:flex;
    gap:11px;
    align-items:center;
}

.avatar {
    background:var(--lavender);
    color:var(--purple-dark);
    border:1px solid #e6d8f9;
    width:36px;
    height:36px;
    flex-shrink:0;
    border-radius:50%;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    font-weight:500;
    font-size:13px;
}

.profile strong,.profile small {
    display:block;
}

.profile strong {
    font-size:11px;
    font-weight:500;
}

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

.logout-button {
    padding:8px;
    margin-left:8px;
    border:0;
    border-left:1px solid var(--line);
    background:transparent;
    color:var(--muted);
    display:flex;
}

.logout-button:hover {
    color:var(--purple);
}

.workspace-content {
    width:100%;
    max-width:1680px;
    padding:44px;
    margin:0 auto;
    flex:1;
}

.page-heading {
    display:flex;
    justify-content:space-between;
    gap:20px;
    align-items:center;
    margin:0 0 35px;
}

.page-heading .eyebrow {
    font-size:9px;
    margin-bottom:12px;
}

.page-heading h1 {
    font-size:31px;
    line-height:1.3;
    margin-bottom:10px;
}

.page-heading .muted {
    font-size:11px;
    margin:0;
}

.status-pill {
    display:inline-flex;
    align-items:center;
    gap:7px;
    background:#f0e9fa;
    border:1px solid #e6d9f5;
    color:#7733b9;
    padding:6px 10px;
    font-size:9px;
    white-space:nowrap;
    border-radius:20px;
}

.status-pill .dot {
    width:5px;
    height:5px;
}

.welcome-panel {
    display:grid;
    grid-template-columns:1.5fr 1fr;
    border:1px solid #e7def1;
    border-radius:var(--radius);
    background:#f1ebf8;
    overflow:hidden;
    margin-bottom:36px;
}

.welcome-copy {
    padding:35px 38px;
}

.tag {
    font-family:monospace;
    font-size:9px;
    letter-spacing:.15em;
    color:var(--purple-dark);
    display:inline-block;
    margin-bottom:21px;
}

.welcome-copy h2 {
    font-size:36px;
    line-height:1.18;
    margin-bottom:17px;
}

.welcome-copy p {
    font-size:11px;
    line-height:1.9;
    color:#6d6279;
    max-width:420px;
    margin-bottom:0;
}

.welcome-note {
    background:#e9e0f3;
    border-left:1px solid #e0d4ec;
    padding:35px 38px;
    display:flex;
    flex-direction:column;
    justify-content:center;
}

.large-number {
    font-size:58px;
    letter-spacing:-.08em;
    line-height:1;
    color:var(--purple);
    font-weight:500;
}

.note-line {
    width:34px;
    height:1px;
    background:#baa1d4;
    margin:22px 0;
}

.welcome-note strong {
    font-size:12px;
    font-weight:500;
}

.welcome-note p {
    font-size:10px;
    line-height:1.9;
    color:#6d6279;
    margin:8px 0 0;
}

.section-heading {
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:15px;
    margin-bottom:17px;
}

.section-heading h2 {
    font-size:17px;
    margin:0;
    letter-spacing:-.035em;
}

.section-heading>span {
    font-size:9px;
    color:var(--muted);
}

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

.module-card {
    background:white;
    border:1px solid var(--line);
    border-radius:12px;
    padding:24px 21px;
}

.module-card-top {
    display:flex;
    align-items:center;
    justify-content:space-between;
    margin-bottom:22px;
    gap:10px;
}

.module-icon {
    color:var(--purple);
    background:#f7f3fc;
    width:39px;
    height:39px;
    border-radius:10px;
    display:grid;
    place-items:center;
}

.soon-badge {
    font-size:8px;
    color:#867b91;
    background:#f7f5f9;
    border:1px solid #eee9f3;
    border-radius:5px;
    padding:3px 7px;
    white-space:nowrap;
}

.module-card h3 {
    font-size:14px;
    letter-spacing:-.025em;
    margin-bottom:9px;
}

.module-card p {
    font-size:10px;
    line-height:1.85;
    color:var(--muted);
    margin:0;
}

.account-link {
    display:flex;
    align-items:center;
    gap:16px;
    background:white;
    border:1px solid var(--line);
    border-radius:12px;
    margin-top:24px;
    padding:20px 24px;
}

.account-link strong {
    display:block;
    font-size:11px;
    font-weight:500;
}

.account-link small {
    display:block;
    font-size:10px;
    color:var(--muted);
    margin-top:5px;
}

.account-link>svg {
    margin-left:auto;
    color:var(--purple);
}

.account-link:hover {
    border-color:#c3a0ed;
}

.account-link .section-icon {
    width:36px;
    height:36px;
}

.workspace-footer {
    display:flex;
    justify-content:space-between;
    gap:12px;
    border-top:1px solid var(--line);
    padding:20px 44px;
    font-size:9px;
    color:#928b9b;
}

.users-panel {
    background:white;
    border:1px solid var(--line);
    border-radius:12px;
    overflow:hidden;
}

.table-scroll {
    max-height:65dvh;
    overflow:auto;
}

table {
    width:100%;
    border-collapse:collapse;
    text-align:left;
    white-space:nowrap;
}

th {
    font-size:10px;
    font-weight:500;
    color:var(--muted);
    background:#fbfafd;
    padding:18px 22px;
    border-bottom:1px solid var(--line);
    position:sticky;
    top:0;
    z-index:1;
}

td {
    padding:22px;
    font-size:11px;
    border-bottom:1px solid #f4f1f6;
}

.table-user {
    display:flex;
    align-items:center;
    gap:12px;
}

.table-user strong {
    font-weight:500;
}

tbody tr:last-child td {
    border-bottom:0;
}

.count-pill {
    background:white;
    border:1px solid var(--line);
    padding:8px 14px;
    border-radius:20px;
    font-size:10px;
    color:var(--muted);
}

.account-help {
    font-size:11px;
    line-height:1.8;
    color:var(--muted);
    margin-top:23px;
}

@media(min-width:1600px) {
    .login-brand {
        padding-left:12%;
        padding-right:12%;
    }
    .login-form-side {
        padding-left:14%;
        padding-right:14%;
    }
    .workspace-content {
        padding:58px;
    }
    .welcome-copy,.welcome-note {
        padding:44px;
    }
    .module-card {
        padding:30px;
    }
    .module-card p {
        font-size:12px;
    }
    .page-heading h1 {
        font-size:36px;
    }
    .welcome-copy h2 {
        font-size:43px;
    }
    .welcome-copy p {
        font-size:13px;
    }
    .workspace-content .muted {
        font-size:13px;
    }
}

@media(max-width:1150px) {
    .workspace-layout {
        grid-template-columns:218px minmax(0,1fr);
    }
    .topbar {
        padding:0 28px;
    }
    .workspace-content {
        padding:32px 28px;
    }
    .module-grid {
        grid-template-columns:repeat(2,minmax(0,1fr));
    }
    .welcome-copy,.welcome-note {
        padding:28px;
    }
    .welcome-copy h2 {
        font-size:29px;
    }
    .welcome-note strong {
        font-size:11px;
    }
    .workspace-footer {
        padding:20px 28px;
    }
    .sidebar {
        padding:28px 12px;
    }
    .nav-item {
        font-size:10px;
        gap:9px;
    }
    .nav-item small {
        font-size:7px;
    }
    .login-brand,.login-form-side {
        padding-left:8%;
        padding-right:8%;
    }
    .brand-story h2 {
        font-size:46px;
    }
}

@media(max-width:760px) {
    .login-layout {
        grid-template-columns:1fr;
    }
    .login-brand {
        display:none;
    }
    .login-form-side {
        min-height:100dvh;
        padding:25px 28px;
    }
    .login-topline {
        font-size:10px;
    }
    .mobile-logo {
        display:block;
        margin-bottom:38px;
    }
    .login-card {
        padding:28px 0 40px;
        max-width:420px;
    }
    .login-card>.section-icon {
        display:none;
    }
    .login-card h1 {
        font-size:35px;
    }
    .login-footer {
        font-size:8px;
    }
    .workspace-layout {
        display:block;
    }
    .sidebar {
        position:relative;
        height:auto;
        padding:18px;
        border-right:0;
        border-bottom:1px solid var(--line);
    }
    .sidebar-logo {
        margin:0 0 18px;
    }
    .sidebar-logo img {
        width:124px;
    }
    .workspace-label {
        display:none;
    }
    .sidebar nav {
        display:flex;
        flex-direction:column;
        gap:4px;
    }
    .crm-submenu {
        margin-bottom:4px;
    }
    .nav-item {
        font-size:10px;
        margin:0;
        padding:9px 11px;
        min-height:36px;
    }
    .topbar {
        height:auto;
        min-height:75px;
        padding:17px 20px;
    }
    .breadcrumb {
        display:none;
    }
    .profile {
        width:100%;
    }
    .profile form {
        margin-left:auto;
    }
    .logout-button {
        border:0;
    }
    .workspace-content {
        padding:28px 20px;
    }
    .page-heading {
        align-items:flex-start;
        gap:12px;
        margin-bottom:25px;
    }
    .page-heading h1 {
        font-size:27px;
    }
    .page-heading>.status-pill {
        display:none;
    }
    .page-heading .muted {
        font-size:11px;
    }
    .welcome-panel {
        grid-template-columns:1fr;
    }
    .welcome-copy {
        padding:27px;
    }
    .welcome-copy h2 {
        font-size:32px;
    }
    .welcome-note {
        border-left:0;
        border-top:1px solid #e0d4ec;
        padding:22px 27px;
    }
    .large-number,.note-line {
        display:none;
    }
    .welcome-note p br {
        display:none;
    }
    .section-heading {
        align-items:flex-start;
    }
    .section-heading>span {
        max-width:120px;
        text-align:right;
        line-height:1.6;
    }
    .module-grid {
        gap:12px;
    }
    .module-card {
        padding:18px 15px;
    }
    .module-card-top {
        margin-bottom:18px;
    }
    .module-card p {
        font-size:10px;
    }
    .account-link {
        padding:18px 15px;
        gap:12px;
    }
    .account-link strong {
        font-size:10px;
    }
    .account-link small {
        font-size:9px;
        line-height:1.7;
    }
    .account-link .section-icon {
        flex-shrink:0;
    }
    .workspace-footer {
        padding:18px 20px;
        font-size:8px;
    }
    .workspace-footer span {
        max-width:160px;
        text-align:right;
    }
    .count-pill {
        font-size:9px;
        flex-shrink:0;
    }
    th,td {
        padding:16px;
    }
}

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

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

/* Shared agent documentation */
.agent-intro {display:flex;gap:22px;margin-bottom:26px;align-items:flex-start;background:linear-gradient(120deg,#fff,#f7f0ff);}
.agent-intro h2,.agent-handoff h2 {font-size:19px;margin-bottom:10px;letter-spacing:-.035em;}
.agent-intro p {color:var(--muted);line-height:1.85;max-width:820px;font-size:12px;}
.agent-symbol {display:grid;place-items:center;flex-shrink:0;width:48px;height:48px;background:var(--purple);color:white;border-radius:14px;}
.agent-symbol svg {width:26px;height:26px;}
.agent-intro .text-link {display:inline-flex;align-items:center;gap:8px;font-weight:500;font-size:12px;}
.agent-documents {margin-bottom:25px;}
.agent-documents>.panel-heading {display:flex;justify-content:space-between;align-items:center;padding:24px 26px;margin:0;gap:16px;}
.agent-documents .panel-heading h2 {font-size:17px;margin-bottom:6px;}
.agent-documents .panel-heading p {font-size:11px;color:var(--muted);margin:0;}
.agent-format {font-size:9px;letter-spacing:.1em;color:var(--muted);}
.agent-documents table {white-space:normal;}
.agent-document-title {display:flex;align-items:flex-start;gap:14px;min-width:260px;max-width:610px;}
.document-glyph {display:grid;place-items:center;width:39px;height:45px;flex-shrink:0;border:1px solid #e6d9f5;border-radius:8px;background:var(--lavender);color:var(--purple-dark);font:600 11px ui-monospace,monospace;}
.agent-document-title strong {font-size:13px;display:block;margin-bottom:4px;}
.agent-document-title code {font:11px ui-monospace,monospace;color:var(--purple-dark);}
.agent-document-title p {font-size:11px;line-height:1.75;color:var(--muted);margin:8px 0 0;}
.agent-version {font-size:10px;border-radius:6px;padding:4px 8px;background:#f4f3f6;color:#625a70;white-space:nowrap;}
.agent-documents time {white-space:nowrap;}
.agent-row-actions {display:flex;gap:14px;align-items:center;justify-content:flex-end;}
.agent-row-actions>.button {background:var(--purple);color:white;}
.agent-handoff {margin-bottom:18px;}
.agent-handoff .muted {font-size:12px;line-height:1.8;}
.agent-handoff pre {white-space:pre-wrap;overflow-wrap:anywhere;background:#f8f6fb;border:1px solid var(--line);border-radius:9px;padding:17px;color:#574465;font:12px/1.9 ui-monospace,monospace;}
.agent-handoff .eyebrow {font-size:9px;}
.button-small {padding:9px 13px!important;min-height:38px!important;}
.button-secondary {background:white;border-color:var(--line)!important;color:#51485c;}
.button-secondary:hover {background:#faf7fe;border-color:#b994e2!important;}
.copy-result {font-size:11px;color:var(--purple-dark);margin-left:9px;}
body.document-open {overflow:hidden;}
.document-dialog {padding:0;width:min(1000px,calc(100% - 48px));max-width:1000px;height:min(860px,calc(100dvh - 64px));max-height:calc(100dvh - 64px);border:1px solid var(--line);border-radius:18px;box-shadow:0 24px 100px #1a082345;color:var(--ink);overflow:hidden;}
.document-dialog[open] {display:flex;flex-direction:column;}
.document-dialog::backdrop {background:#170b2a77;backdrop-filter:blur(3px);}
.document-dialog-heading {display:flex;justify-content:space-between;align-items:flex-start;padding:23px 30px 17px;flex-shrink:0;gap:20px;border-bottom:1px solid var(--line);}
.document-dialog-heading .eyebrow {font-size:9px;}
.document-dialog-heading h2 {font:600 23px ui-monospace,monospace;margin:9px 0 7px;letter-spacing:-.04em;}
.document-dialog-heading p {color:var(--muted);font-size:10px;margin:0;}
.dialog-close {border:1px solid var(--line);background:white;border-radius:9px;width:38px;height:38px;flex-shrink:0;font-size:25px;color:#6c6077;}
.document-toolbar {display:flex;align-items:center;flex-wrap:wrap;gap:12px;padding:14px 30px;border-bottom:1px solid var(--line);background:#fdfbff;flex-shrink:0;font-size:11px;}
.document-toolbar .copy-result {flex-basis:100%;margin:0;}
.document-toolbar .copy-result:empty {display:none;}
.document-dialog-content {padding:25px 34px 42px;overflow:auto;min-height:0;overscroll-behavior:contain;}
.markdown-body {font-size:13px;line-height:1.95;overflow-wrap:anywhere;}
.markdown-body h1 {font-size:25px;line-height:1.45;margin-bottom:18px;letter-spacing:-.04em;}
.markdown-body h2 {font-size:19px;line-height:1.5;margin:32px 0 15px;letter-spacing:-.035em;}
.markdown-body h3 {font-size:15px;line-height:1.6;margin:26px 0 12px;}
.markdown-body p {margin-bottom:17px;}
.markdown-body a {color:var(--purple-dark);text-decoration:underline;text-underline-offset:3px;}
.markdown-body ul,.markdown-body ol {padding-left:24px;margin:0 0 20px;}
.markdown-body li {margin-bottom:8px;}
.markdown-body pre {white-space:pre-wrap;overflow-wrap:anywhere;padding:18px;background:#f7f4fb;border:1px solid var(--line);border-radius:9px;font:12px/1.8 ui-monospace,monospace;}
.markdown-body code {font-family:ui-monospace,monospace;background:#f5effb;border-radius:4px;padding:2px 4px;}
.markdown-body pre code {padding:0;background:none;}
.markdown-body table {white-space:normal;table-layout:fixed;margin-bottom:22px;}
.markdown-body th {position:static;}
.markdown-body td,.markdown-body th {padding:12px;font-size:12px;border:1px solid var(--line);}
.document-page {max-width:1000px;margin-top:20px;padding:32px;}
.document-page-toolbar {border:1px solid var(--line);border-radius:10px;padding:13px 18px;}
@media(max-width:760px) {
    .agent-intro {gap:13px;padding:20px;}
    .agent-symbol {width:34px;height:36px;border-radius:10px;}
    .agent-symbol svg {width:21px;height:21px;}
    .agent-intro h2,.agent-handoff h2 {font-size:17px;}
    .agent-documents>.panel-heading {padding:20px;}
    .agent-format {display:none;}
    .agent-documents th:nth-child(2),.agent-documents td:nth-child(2),.agent-documents th:nth-child(3),.agent-documents td:nth-child(3) {display:none;}
    .agent-documents th,.agent-documents td {padding:16px 12px;}
    .agent-document-title {min-width:0;gap:9px;}
    .document-glyph {display:none;}
    .agent-document-title strong {font-size:12px;}
    .agent-document-title p {font-size:10px;}
    .agent-row-actions {flex-direction:column;gap:9px;}
    .agent-row-actions .button {padding:8px 10px!important;}
    .agent-row-actions svg {width:14px;}
    .agent-handoff {padding:20px;}
    .agent-handoff pre {font-size:11px;padding:12px;}
    .document-dialog {width:calc(100% - 16px);height:calc(100dvh - 24px);max-height:calc(100dvh - 24px);border-radius:12px;}
    .document-dialog-heading {padding:17px 18px;}
    .document-dialog-heading h2 {font-size:21px;}
    .document-toolbar {padding:12px 16px;gap:10px;}
    .document-dialog-content {padding:19px 20px 30px;}
    .markdown-body {font-size:12px;}
    .markdown-body h1 {font-size:21px;}
    .markdown-body h2 {font-size:17px;}
    .document-page {padding:20px;}
    .markdown-body td,.markdown-body th {font-size:10px;padding:8px;}
}

/* CRM directory and record forms */
.button {
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:8px;
    padding:12px 17px;
    border:1px solid transparent;
    border-radius:8px;
    font:500 11px Poppins,system-ui,sans-serif;
    line-height:1.5;
    text-align:center;
    white-space:nowrap;
    min-height:42px;
}

.button.primary {
    background:var(--purple);
    color:white;
    box-shadow:0 3px 8px #8d34f218;
}

.button.primary:hover {
    background:var(--purple-dark);
}

.button.secondary {
    background:white;
    border-color:var(--line);
    color:#51485c;
}

.button.secondary:hover {
    border-color:#b994e2;
    background:#faf7fe;
}

.button:disabled {
    opacity:.5;
    cursor:not-allowed;
}

.text-link,.record-link {
    color:var(--purple-dark);
}

.text-link:hover,.record-link:hover {
    text-decoration:underline;
    text-underline-offset:3px;
}

.record-link {
    font-weight:500;
}

.cell-detail {
    display:block;
    font-size:10px;
    color:var(--muted);
    margin-top:5px;
}

.back-link {
    display:inline-block;
    font-size:11px;
    color:var(--muted);
    margin-bottom:25px;
}

.back-link:hover {
    color:var(--purple-dark);
}

.crm-toolbar {
    background:white;
    border:1px solid var(--line);
    border-radius:12px;
    display:flex;
    flex-wrap:wrap;
    align-items:center;
    gap:12px;
    padding:18px;
    margin:0 0 28px;
}

.crm-toolbar .search-field {
    flex:1 1 240px;
}

.crm-toolbar input[type=search],.crm-toolbar select {
    width:100%;
    padding:11px 12px;
    border:1px solid #e0dce7;
    border-radius:7px;
    background:white;
    color:var(--ink);
    min-height:42px;
    font:400 11px Poppins,system-ui,sans-serif;
}

.crm-toolbar>select {
    width:auto;
    max-width:250px;
}

.crm-toolbar .text-link {
    font-size:10px;
}

.checkbox-label {
    display:flex;
    align-items:center;
    gap:7px;
    font-size:10px;
    white-space:nowrap;
}

.checkbox-label input {
    accent-color:var(--purple);
    width:16px;
    height:16px;
}

.empty-state {
    background:white;
    border:1px dashed #d8cbe9;
    border-radius:14px;
    text-align:center;
    padding:55px 25px;
}

.empty-state .module-icon {
    margin:0 auto 20px;
}

.empty-state h2 {
    font-size:23px;
    margin-bottom:12px;
}

.empty-state p {
    max-width:470px;
    margin:0 auto 24px;
    font-size:12px;
    line-height:1.9;
    color:var(--muted);
}

.empty-state.compact {
    padding:30px 20px;
}

.empty-state.compact h3 {
    font-size:17px;
}

.empty-state.compact p {
    margin-bottom:12px;
}

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

.pagination>div {
    display:flex;
    gap:8px;
}

.form-panel {
    background:white;
    border:1px solid var(--line);
    border-radius:12px;
    padding:26px;
    margin-bottom:20px;
    min-width:0;
}

.panel-heading {
    border-bottom:1px solid #f0edf4;
    padding-bottom:18px;
    margin-bottom:22px;
}

.panel-heading h2 {
    font-size:17px;
    margin:0 0 7px;
}

.panel-heading p,.panel-note {
    font-size:11px;
    line-height:1.8;
    color:var(--muted);
    margin:0;
}

.form-grid {
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:22px 26px;
}

.form-field {
    display:flex;
    flex-direction:column;
    gap:8px;
    min-width:0;
}

.form-field label {
    font-size:11px;
    font-weight:500;
    color:#49414f;
}

.form-field label span {
    color:var(--purple);
}

.form-field input,.form-field select,.form-field textarea {
    font:400 12px Poppins,system-ui,sans-serif;
    width:100%;
    min-height:44px;
    padding:11px 13px;
    border:1px solid #ded9e5;
    border-radius:7px;
    background:#fff;
    color:var(--ink);
}

.form-field textarea {
    resize:vertical;
    line-height:1.8;
}

.form-field [aria-invalid=true] {
    border-color:#bc4161;
    background:#fffafb;
}

.form-field input:focus,.form-field select:focus,.form-field textarea:focus {
    border-color:var(--purple);
    outline:2px solid #8d34f222;
    outline-offset:1px;
}

select:focus-visible,textarea:focus-visible {
    outline:3px solid #b790ef;
    outline-offset:3px;
}

.field-error {
    color:#a12848;
    font-size:10px;
    line-height:1.7;
}

.form-alert {
    padding:19px 22px;
    border:1px solid #e9c5d0;
    background:#fff8fa;
    border-radius:10px;
    color:#8e2f4d;
    font-size:12px;
    line-height:1.8;
    margin-bottom:23px;
}

.form-alert strong {
    font-weight:500;
}

.form-alert ul {
    padding-left:18px;
    margin-bottom:0;
}

.form-alert .text-link {
    display:inline-block;
    margin-top:10px;
}

.success-alert {
    background:#f0f8f2;
    border:1px solid #cce2d1;
    color:#396a46;
    padding:15px 19px;
    border-radius:9px;
    font-size:12px;
    margin-bottom:25px;
}

.form-actions {
    display:flex;
    align-items:center;
    justify-content:flex-end;
    gap:12px;
    margin-top:25px;
}

.form-actions>.muted {
    margin-right:auto;
    font-size:10px;
}

.readonly-field {
    font-size:12px;
    padding:12px 0;
    margin:0;
    color:var(--muted);
}

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

.detail-grid {
    display:grid;
    grid-template-columns:minmax(0,1.8fr) minmax(270px,1fr);
    gap:24px;
    align-items:start;
}

.detail-main,.detail-aside {
    min-width:0;
}

.record-details {
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:23px;
    margin:0;
}

.record-details.single {
    grid-template-columns:1fr;
}

.record-details dt {
    font-size:10px;
    color:var(--muted);
    margin-bottom:8px;
}

.record-details dd {
    font-size:12px;
    line-height:1.9;
    margin:0;
    overflow-wrap:anywhere;
}

.record-notes {
    font-size:12px;
    line-height:1.9;
    color:#5d5564;
    overflow-wrap:anywhere;
}

.detail-aside .panel-note {
    margin-top:20px;
}

.client-pill {
    background:#ecf5ef;
    border-color:#d6e8dc;
    color:#3e7651;
}

.history-list {
    list-style:none;
    padding:0;
    margin:0;
    max-height:560px;
    overflow-y:auto;
}

.history-list li {
    position:relative;
    border-left:2px solid #e9def5;
    padding:0 0 24px 17px;
    margin-left:4px;
}

.history-list li:last-child {
    padding-bottom:0;
}

.history-list li:before {
    content:'';
    position:absolute;
    width:8px;
    height:8px;
    background:#b27be9;
    border:2px solid white;
    border-radius:50%;
    left:-5px;
    top:4px;
}

.history-list strong {
    font-size:10px;
    font-weight:500;
}

.history-list p {
    font-size:11px;
    line-height:1.8;
    margin:5px 0;
}

.history-list small {
    font-size:9px;
    color:var(--muted);
    line-height:1.7;
}

.archive-panel {
    border:1px solid var(--line);
    border-radius:12px;
    padding:23px;
    background:#f5f3f7;
}

.archive-panel h2 {
    font-size:14px;
}

.archive-panel p {
    font-size:11px;
    line-height:1.9;
    color:var(--muted);
}

.directory-cards {
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:20px;
    margin-bottom:32px;
}

.directory-card {
    background:white;
    border:1px solid var(--line);
    border-radius:12px;
    padding:26px;
}

.directory-card:hover {
    border-color:#c9a5ef;
}

.directory-card .module-icon {
    margin-bottom:22px;
}

.directory-card h2 {
    font-size:18px;
    margin-bottom:10px;
}

.directory-count {
    font-size:36px;
    font-weight:500;
    letter-spacing:-.05em;
    display:block;
    margin-bottom:12px;
}

.directory-card p {
    font-size:11px;
    line-height:1.8;
    color:var(--muted);
}

@media(max-width:1150px) {
    .detail-grid {
        grid-template-columns:minmax(0,1fr);
    }
    .detail-aside {
        display:grid;
        grid-template-columns:1fr 1fr;
        gap:20px;
    }
    .detail-aside .form-panel {
        margin:0;
    }
    .detail-aside .archive-panel {
        grid-column:1/-1;
    }
    .page-heading {
        flex-wrap:wrap;
    }
}

@media(max-width:760px) {
    .crm-toolbar {
        padding:15px;
        gap:10px;
    }
    .crm-toolbar .search-field {
        flex-basis:100%;
    }
    .crm-toolbar>select {
        flex:1 1 100%;
        max-width:none;
    }
    .crm-toolbar .checkbox-label {
        width:100%;
        padding:4px 0;
    }
    .form-grid,.record-details,.detail-aside {
        grid-template-columns:1fr;
    }
    .form-panel {
        padding:20px;
    }
    .form-actions {
        flex-wrap:wrap;
    }
    .form-actions>.muted {
        width:100%;
        margin-bottom:5px;
    }
    .form-actions>.button {
        flex:1;
    }
    .page-heading>.button,.heading-actions {
        width:100%;
    }
    .heading-actions>.button {
        flex:1;
    }
    .detail-grid {
        gap:20px;
    }
    .directory-cards {
        gap:12px;
    }
    .directory-card {
        padding:20px;
    }
    .directory-card h2 {
        font-size:16px;
    }
    .empty-state {
        padding:35px 20px;
    }
    .pagination .button {
        font-size:10px;
        padding:10px;
    }
    .form-field input,.form-field select,.form-field textarea {
        font-size:16px;
    }
}

/* Agenda and commercial actions */
.calendar-heading {
    display:flex;
    align-items:center;
    justify-content:space-between;
    flex-wrap:wrap;
    gap:18px;
    margin:25px 0 16px;
}

.calendar-heading h2 {
    margin:0;
    font-size:22px;
    text-transform:none;
}

.calendar-heading h2 small {
    display:block;
    font-size:11px;
    color:var(--muted);
    letter-spacing:0;
    font-weight:400;
    margin-top:7px;
}

.calendar-navigation,.view-switch {
    display:flex;
    gap:6px;
    align-items:center;
}

.view-switch {
    border:1px solid var(--line);
    border-radius:8px;
    background:white;
    padding:4px;
}

.view-switch a {
    padding:9px 12px;
    border-radius:5px;
    font-size:11px;
}

.view-switch a.active {
    background:var(--lavender);
    color:var(--purple-dark);
    font-weight:500;
}

.date-jump {
    display:flex;
    align-items:center;
    flex-wrap:wrap;
    gap:12px;
    margin-bottom:20px;
    font-size:11px;
    color:var(--muted);
}

.date-jump input {
    font:inherit;
    min-height:40px;
    padding:8px 10px;
    border:1px solid var(--line);
    border-radius:6px;
    background:white;
}

.date-jump>span {
    margin-left:auto;
}

.calendar-grid {
    display:grid;
    grid-template-columns:repeat(7,minmax(0,1fr));
    background:var(--line);
    gap:1px;
    border:1px solid var(--line);
    border-radius:12px;
    overflow:hidden;
}

.calendar-weekday {
    background:#f4f1f8;
    text-align:center;
    padding:12px 5px;
    font-size:10px;
    font-weight:500;
    color:var(--muted);
}

.calendar-day {
    background:white;
    min-height:145px;
    min-width:0;
    padding:9px;
}

.calendar-day.outside-month {
    background:#f7f6f9;
}

.calendar-day.is-today {
    background:#fcf8ff;
    box-shadow:inset 0 0 0 1px #c398ef;
}

.calendar-day-heading {
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:10px;
    font-size:11px;
}

.day-number {
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-width:26px;
    min-height:26px;
    border-radius:50%;
}

.is-today .day-number {
    background:var(--purple);
    color:white;
}

.calendar-add {
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-width:26px;
    min-height:26px;
    font-size:18px;
    border-radius:5px;
    color:var(--purple-dark);
}

.calendar-add:hover {
    background:var(--lavender);
}

.calendar-action {
    display:block;
    position:relative;
    background:#f4eefb;
    border-left:3px solid #a572da;
    border-radius:5px;
    padding:8px;
    margin-bottom:6px;
    font-size:10px;
    line-height:1.6;
    overflow-wrap:anywhere;
}

.calendar-action:hover {
    background:#ebddfa;
}

.calendar-action strong {
    display:block;
    font-size:9px;
    color:#77549b;
}

.calendar-action-title {
    display:block;
    font-weight:500;
}

.calendar-action small {
    display:block;
    color:#7d6d8d;
    font-size:9px;
}

.calendar-action.is-late {
    border-left-color:#c15a5a;
    background:#fff1ee;
}

.calendar-action.action-state-completed {
    background:#edf6ef;
    border-left-color:#6a9c77;
}

.calendar-action.action-state-cancelled {
    background:#f2f2f4;
    border-left-color:#a6a0ac;
    color:#88828d;
}

.mobile-action-dot {
    display:none;
}

.calendar-day:focus-within {
    position:relative;
    z-index:1;
}

.calendar-day .calendar-action:focus-visible {
    outline-offset:1px;
}

.calendar-week .calendar-day {
    min-height:290px;
}

.calendar-day.calendar-day {
    overflow-wrap:anywhere;
}

.calendar-day .calendar-empty {
    font-size:11px;
    line-height:1.8;
    color:var(--muted);
    margin:15px;
}

.calendar-grid.calendar-day {
    display:block;
    padding:0;
    background:white;
}

.calendar-grid.calendar-day>.calendar-day {
    min-height:240px;
}

.calendar-grid.calendar-day .calendar-action {
    padding:15px 18px;
    margin:10px;
    font-size:13px;
}

.calendar-grid.calendar-day .calendar-action small,.calendar-grid.calendar-day .calendar-action strong {
    font-size:11px;
}

.late-pill {
    background:#fff0eb;
    border-color:#ebc5b9;
    color:#a04431;
    margin-top:6px;
}

.action-state-waiting.status-pill {
    background:#fff6e6;
    border-color:#ecdbb5;
    color:#8e6a21;
}

.action-state-completed.status-pill {
    background:#ecf5ef;
    border-color:#d0e4d6;
    color:#39734c;
}

.action-state-cancelled.status-pill {
    background:#f1eff4;
    border-color:#ddd9e3;
    color:#777080;
}

.spaced-field {
    margin-top:23px;
}

.company-choice-form {
    display:flex;
    align-items:end;
    gap:16px;
}

.company-choice-form .form-field {
    flex:1;
}

.action-shortcuts {
    display:flex;
    flex-direction:column;
    gap:17px;
    font-size:11px;
}

.action-shortcuts .button {
    white-space:normal;
}

.waiting-note {
    margin-top:25px;
    padding:18px;
    border-radius:8px;
    background:#f7f3fc;
    font-size:12px;
    line-height:1.9;
}

.waiting-note strong {
    font-weight:500;
}

.waiting-note p {
    margin:10px 0 0;
    white-space:normal;
    overflow-wrap:anywhere;
}

.activity-history {
    list-style:none;
    margin:0;
    padding:0;
}

.activity-event {
    position:relative;
    display:flex;
    gap:16px;
    padding:0 0 25px;
    min-width:0;
}

.activity-event:last-child {
    padding-bottom:0;
}

.activity-marker {
    width:9px;
    height:9px;
    margin-top:5px;
    background:#af83d9;
    border-radius:50%;
    flex-shrink:0;
}

.activity-event.event-completed .activity-marker {
    background:#619b71;
}

.activity-event>div {
    min-width:0;
}

.activity-event strong,.activity-event a,.activity-event small {
    display:block;
}

.activity-event strong {
    font-size:11px;
    font-weight:500;
    margin-bottom:4px;
}

.activity-event a {
    font-size:12px;
    margin-bottom:7px;
    overflow-wrap:anywhere;
}

.activity-event small {
    font-size:10px;
    line-height:1.8;
    color:var(--muted);
}

.activity-event p {
    font-size:11px;
    line-height:1.8;
    margin:9px 0;
    overflow-wrap:anywhere;
}

.profile-actions {
    margin-top:30px;
    margin-bottom:25px;
}

.copy-draft {
    margin-top:18px;
}

.copy-result {
    display:block;
    font-size:10px;
    color:var(--muted);
    margin-top:8px;
}

.draft-subject {
    font-size:14px;
}

.draft-content {
    padding:18px;
    background:#f8f6fb;
    border-radius:8px;
}

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

.action-overview>a {
    background:white;
    border:1px solid var(--line);
    border-radius:12px;
    padding:24px;
}

.action-overview>a:hover {
    border-color:#c5a4e9;
}

.action-overview span,.action-overview strong,.action-overview small {
    display:block;
}

.action-overview span {
    font-size:11px;
    font-weight:500;
    color:var(--muted);
}

.action-overview strong {
    font-size:33px;
    letter-spacing:-.04em;
    font-weight:500;
    margin:8px 0;
}

.action-overview small {
    font-size:10px;
    line-height:1.8;
    color:var(--muted);
}

.action-overview .has-late strong {
    color:#b5573e;
}

.action-overview .overview-plan strong {
    font-size:18px;
    margin:15px 0 8px;
}

.action-overview .overview-plan .module-icon {
    display:grid;
    color:var(--purple);
}

.directory-heading {
    margin-top:30px;
}

@media(max-width:1150px) {
    .calendar-week {
        grid-template-columns:1fr;
    }
    .calendar-week .calendar-weekday {
        display:none;
    }
    .calendar-week .calendar-day {
        min-height:120px;
    }
    .action-overview {
        gap:12px;
    }
    .action-overview>a {
        padding:18px;
    }
}

@media(max-width:760px) {
    .calendar-heading {
        gap:16px;
    }
    .calendar-heading h2 {
        font-size:20px;
        order:-1;
        width:100%;
    }
    .calendar-navigation {
        flex:1;
    }
    .calendar-heading .view-switch {
        width:100%;
        justify-content:space-between;
    }
    .calendar-heading .view-switch a {
        flex:1;
        text-align:center;
    }
    .date-jump>span {
        width:100%;
        margin:0;
    }
    .calendar-month .calendar-day {
        min-height:95px;
        padding:3px;
    }
    .calendar-month .calendar-day-heading {
        gap:0;
        font-size:10px;
    }
    .calendar-month .day-number,.calendar-month .calendar-add {
        min-width:20px;
        min-height:24px;
    }
    .calendar-month .calendar-add {
        font-size:16px;
    }
    .calendar-month .calendar-action {
        display:inline-flex;
        padding:0 2px;
        background:transparent;
        border:0;
        margin:0;
        line-height:1.1;
        min-width:20px;
        min-height:24px;
        align-items:center;
        justify-content:center;
    }
    .calendar-month .calendar-action>strong,.calendar-month .calendar-action-title,.calendar-month .calendar-action>small {
        display:none;
    }
    .calendar-month .mobile-action-dot {
        display:block;
        font-size:22px;
        color:var(--purple);
    }
    .calendar-month .is-late .mobile-action-dot {
        color:#b5573e;
    }
    .calendar-month .action-state-completed .mobile-action-dot {
        color:#619b71;
    }
    .calendar-weekday {
        font-size:9px;
    }
    .action-overview {
        grid-template-columns:1fr 1fr;
    }
    .action-overview .overview-plan {
        grid-column:1/-1;
    }
    .company-choice-form {
        align-items:stretch;
        flex-direction:column;
    }
    .calendar-grid.calendar-day .calendar-action {
        margin:8px;
        padding:14px;
    }
    .heading-actions .button {
        white-space:normal;
    }
}

.agenda-filter-panel>summary {
    display:none;
}

@media(max-width:760px) {
    .agenda-filter-panel {
        border:1px solid var(--line);
        border-radius:10px;
        background:white;
        margin-bottom:22px;
    }
    .agenda-filter-panel>summary {
        display:list-item;
        cursor:pointer;
        padding:15px 18px;
        min-height:48px;
        color:var(--purple-dark);
        font-size:12px;
    }
    .agenda-filter-panel>summary strong {
        font-weight:500;
    }
    .agenda-filter-panel>summary small {
        display:block;
        font-size:10px;
        margin:5px 0 0 17px;
        color:var(--muted);
    }
    .agenda-filter-panel .crm-toolbar {
        border:0;
        margin-bottom:0;
        padding-top:7px;
    }
}

/* Mandatory MFA uses the same type, colour and form language as login. */
.mfa-page{background:#f7f7fb}.mfa-layout{max-width:1140px;margin:auto;padding:32px 40px}.mfa-top{display:flex;align-items:center;justify-content:space-between;gap:24px}.mfa-top>span{display:flex;gap:8px;align-items:center;font-size:12px;color:#777783}.mfa-heading{max-width:740px;margin:56px auto 32px;text-align:center}.mfa-heading h1{font-size:clamp(28px,3.6vw,42px);line-height:1.2;letter-spacing:-1.2px;margin:16px 0}.mfa-heading .muted{line-height:1.7}.mfa-panel{max-width:500px;margin:0 auto;background:#fff;border:1px solid #e9e6ef;border-radius:24px;box-shadow:0 18px 60px #35205e08;overflow:hidden}.mfa-enrolling{max-width:none;display:grid;grid-template-columns:1fr 1fr}.mfa-guide{padding:40px;background:linear-gradient(150deg,#f4ecff,#faf8ff);border-right:1px solid #eee7f5}.mfa-guide h2{font-size:26px;line-height:1.3;letter-spacing:-.6px;margin:24px 0}.mfa-steps{list-style:none;padding:0;margin:32px 0;display:grid;gap:28px}.mfa-steps li{display:flex;gap:16px}.mfa-steps li>span{flex:0 0 32px;height:32px;border-radius:50%;display:grid;place-items:center;background:#fff;color:#8f2df2;font-size:13px;font-weight:600}.mfa-steps strong{font-size:14px}.mfa-steps p,.mfa-note,.mfa-manual p{font-size:12px;line-height:1.8;color:#74717d}.mfa-steps p{margin:6px 0 0}.mfa-verification{padding:36px 40px}.mfa-identity{text-align:center;display:grid;gap:4px;font-size:12px;color:#77717f;overflow-wrap:anywhere}.mfa-identity strong{font-size:15px;color:#29232f}.mfa-qr-box{display:flex;justify-content:center;margin:20px 0 12px}.mfa-qr{max-width:100%;height:auto;border:1px solid #f0edf4;border-radius:12px}.mfa-manual{border-bottom:1px solid #eee;padding-bottom:18px;margin-bottom:24px;font-size:12px}.mfa-manual summary{cursor:pointer;color:#7e2bcc}.mfa-manual code{display:block;background:#f5f2fa;border-radius:8px;padding:12px;overflow-wrap:anywhere;user-select:all;letter-spacing:1px}.mfa-form{margin-top:28px}.mfa-form #mfa-code{font-size:26px;letter-spacing:8px;text-align:center;font-variant-numeric:tabular-nums}.mfa-form .mfa-trust{display:flex;gap:10px;align-items:flex-start;font-size:12px;font-weight:400;line-height:1.7;margin:14px 0}.mfa-trust input{width:18px;height:18px;flex:0 0 18px;margin-top:2px;accent-color:#9130ef}.mfa-trust small{display:block;color:#85808c;font-size:11px;margin-top:4px}.mfa-cancel{margin-top:14px}.mfa-cancel button{width:100%;justify-content:center}.mfa-verification>.mfa-note{text-align:center;margin:24px 0 0}.mfa-footer{text-align:center;color:#93909c;font-size:11px;padding:30px 0 8px}.mfa-reset-form{max-width:640px;background:#fff;border:1px solid #ebe7f1;border-radius:18px;padding:32px}.mfa-reset-form .login-form{margin-top:20px}.mfa-reset-form textarea{min-height:110px}.mfa-status{font-size:12px}.mfa-status small{display:block;color:#85808c}
@media(max-width:700px){.mfa-layout{padding:24px 18px}.mfa-top>span{font-size:10px}.mfa-top img{width:120px}.mfa-heading{margin:36px auto 24px}.mfa-heading h1{letter-spacing:-.7px}.mfa-heading .muted{font-size:13px}.mfa-enrolling{grid-template-columns:1fr}.mfa-guide{padding:26px;border-right:0;border-bottom:1px solid #eee7f5}.mfa-guide .section-icon{display:none}.mfa-guide h2{font-size:22px;margin:0 0 22px}.mfa-steps{gap:20px;margin:20px 0}.mfa-verification{padding:26px}.mfa-reset-form{padding:22px}.mfa-footer{font-size:10px}}
.mfa-reset-form>p{font-size:14px;line-height:1.8;margin:18px 0}.mfa-reset-form textarea{width:100%;padding:14px 16px;font:inherit;font-size:13px;line-height:1.7;border:1px solid #dedde4;border-radius:10px;background:#fff;resize:vertical}.mfa-reset-form textarea:focus{outline:2px solid #b786ef;outline-offset:3px;border-color:#a565e6}
