* {
    box-sizing:border-box;
}

body {
    margin:0;
    font-family:Arial,Helvetica,sans-serif;
    color:#20202a;
    background:#fafafa;
}

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

.brand {
    font-size:21px;
    font-weight:700;
    letter-spacing:-.7px;
    white-space:nowrap;
}

.brand span {
    font-weight:400;
    color:#9587bc;
    margin:0 5px;
}

.eyebrow,.label {
    font-size:11px;
    letter-spacing:1.8px;
    font-weight:700;
    color:#7a65a9;
}

h2 {
    font-size:28px;
    letter-spacing:-.8px;
    margin:16px 0 12px;
}

label {
    display:block;
    font-size:13px;
    font-weight:600;
    margin:22px 0 10px;
}

input {
    width:100%;
    height:49px;
    padding:0 14px;
    border:1px solid #ddddE4;
    border-radius:6px;
    background:#fff;
    font:inherit;
    font-size:14px;
}

input:focus {
    outline:2px solid #b3a0fc;
    outline-offset:2px;
}

button {
    font:inherit;
    cursor:pointer;
    border-radius:6px;
    font-size:14px;
}

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

.primary {
    display:flex;
    justify-content:space-between;
    align-items:center;
    width:100%;
    padding:16px 18px;
    margin-top:28px;
    background:#6745f5;
    color:white;
    border:0;
    font-weight:600;
}

.primary:hover {
    background:#5734dd;
}

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

.notice,.error {
    font-size:13px;
    line-height:1.6;
    padding:13px 15px;
    border-radius:6px;
    margin:20px 0;
    background:#f0edf8;
    color:#65577e;
}

.error {
    background:#fff0f0;
    color:#a72d39;
}

.workspace {
    min-height:100svh;
    display:grid;
    grid-template-columns:280px 1fr;
}

aside {
    padding:35px 24px;
    background:#fff;
    border-right:1px solid #e9e9ef;
    display:flex;
    flex-direction:column;
}

aside .brand {
    font-size:19px;
}

.label {
    margin:60px 12px 18px;
    color:#9995a4;
    font-size:10px;
}

.nav {
    padding:14px 16px;
    display:flex;
    justify-content:space-between;
    font-size:14px;
    border-radius:6px;
}

.active {
    background:#f0ecff;
    color:#6745f5;
}

.aside-bottom {
    margin-top:auto;
    font-size:12px;
    color:#9995a4;
    padding:30px 12px 0;
}

.dashboard {
    padding:0 48px;
    display:flex;
    flex-direction:column;
    min-width:0;
    min-height:100svh;
}

header {
    height:100px;
    display:flex;
    justify-content:space-between;
    align-items:center;
    border-bottom:1px solid #e9e9ef;
    font-size:13px;
    color:#82808c;
}

.secondary {
    background:white;
    padding:10px 15px;
    border:1px solid #e1dfe8;
    color:#595363;
}

.welcome {
    padding:58px 0 32px;
}

.welcome h1 {
    font-size:40px;
    letter-spacing:-1.5px;
    margin:16px 0;
}

.welcome>p:last-child,.panel>p {
    color:#8b8796;
    font-size:14px;
    line-height:1.7;
}

.panel {
    max-width:780px;
    background:white;
    border:1px solid #e9e6ef;
    border-radius:10px;
    padding:34px;
}

.panel h2 {
    font-size:23px;
    margin-top:25px;
}

@media(max-width:850px) {
.brand {
        font-size:18px;
    }
    .workspace {
        grid-template-columns:220px 1fr;
    }
    aside {
        padding:30px 18px;
    }
    aside .brand {
        font-size:15px;
    }
    .dashboard {
        padding:0 24px;
    }
}

@media(max-width:767px) {
.workspace {
        display:block;
    }
    aside {
        border-right:0;
        border-bottom:1px solid #e9e9ef;
        padding:24px;
    }
    aside .brand {
        font-size:19px;
    }
    .label,.aside-bottom,.nav {
        display:none;
    }
    header {
        height:80px;
    }
    .welcome {
        padding-top:32px;
    }
    .welcome h1 {
        font-size:34px;
    }
    .panel {
        padding:24px;
    }
    .panel h2 {
        font-size:21px;
    }
}

.brand {
    display:flex;
    align-items:center;
    gap:8px;
    white-space:normal;
}

.brand .brand-title {
    color:inherit;
    font-weight:700;
    margin:0;
}

.brand-logo {
    width:48px;
    height:48px;
    flex-shrink:0;
}

.brand-title {
    line-height:1.35;
}

aside .brand {
    font-size:17px;
}

@media(max-width:850px) {
    aside .brand {
        font-size:14px;
    }
    .brand-logo {
        width:42px;
        height:42px;
    }
}

@media(max-width:767px) {
    aside .brand {
        font-size:18px;
    }
}

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

.page-heading p {
    color:#8b8796;
    font-size:14px;
}

.page-heading .eyebrow {
    font-size:11px;
    color:#7a65a9;
}

.page-heading>.primary {
    width:auto;
    margin:0;
    white-space:nowrap;
    gap:15px;
}

.lead-panel {
    margin-bottom:48px;
}

.lead-panel h2 {
    margin-top:0;
}

.form-grid {
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:0 24px;
}

.full-width {
    grid-column:1/-1;
}

.optional {
    font-size:12px;
    font-weight:400;
    color:#8b8796;
}

.form-actions {
    display:flex;
    justify-content:flex-end;
    align-items:center;
    gap:14px;
    border-top:1px solid #eeeaf4;
    margin-top:32px;
    padding-top:24px;
}

.form-actions .primary {
    width:auto;
    margin:0;
    gap:28px;
}

.form-actions a.secondary {
    padding:14px 18px;
}

.field-error {
    color:#a72d39;
    font-size:12px;
    margin:8px 0 0;
}

input[aria-invalid=true] {
    border-color:#bd4050;
}

.success {
    padding:15px 18px;
    background:#eaf6ef;
    color:#326849;
    border-radius:6px;
    margin-bottom:24px;
    font-size:14px;
}

.leads-list {
    max-width:none;
    margin-bottom:48px;
    padding:0;
    overflow:hidden;
}

.search-form {
    padding:24px;
}

.search-label {
    margin:0 0 12px;
    font-size:12px;
}

.search-controls {
    display:flex;
    gap:10px;
    align-items:center;
}

.search-controls input {
    max-width:460px;
}

.search-controls .secondary {
    white-space:nowrap;
    padding:14px;
}

.empty-state {
    text-align:center;
    padding:55px 24px 70px;
    border-top:1px solid #eeeaf4;
}

.empty-state h2 {
    font-size:20px;
}

.empty-state p {
    color:#8b8796;
    font-size:14px;
    line-height:1.6;
}

.table-scroll {
    overflow-x:auto;
}

table {
    width:100%;
    border-collapse:collapse;
    text-align:left;
    font-size:13px;
}

th {
    background:#faf9fc;
    color:#8b8796;
    font-weight:500;
    font-size:12px;
    white-space:nowrap;
}

th,td {
    padding:20px 24px;
    border-top:1px solid #eeeaf4;
}

td {
    max-width:260px;
    overflow-wrap:anywhere;
    min-width:150px;
}

td strong {
    font-weight:600;
}

.nav+.nav {
    margin-top:6px;
}

@media(max-width:767px) {
    aside .nav {
        display:flex;
    }
    aside .label {
        display:block;
        margin:24px 12px 12px;
    }
    .form-grid {
        grid-template-columns:1fr;
    }
    .page-heading {
        align-items:flex-start;
    }
    .page-heading h1 {
        font-size:30px;
    }
    .page-heading>.primary {
        padding:13px 14px;
        font-size:12px;
        margin-top:15px;
    }
    .search-controls {
        flex-wrap:wrap;
    }
    .search-controls input {
        max-width:none;
    }
    .dashboard {
        padding:0 18px;
    }
    .lead-panel {
        padding:22px;
    }
    .form-actions {
        justify-content:space-between;
    }
    .form-actions .primary {
        font-size:13px;
        gap:12px;
    }
}

/* Rounded actions with consistent line icons. */
.icon {
    width:18px;
    height:18px;
    flex:0 0 18px;
    vertical-align:middle;
}

button,.primary,.secondary {
    border-radius:8px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:9px;
    line-height:1.3;
    min-height:44px;
    transition:background-color .15s,border-color .15s;
}

.secondary:hover {
    background:#f5f2fc;
    border-color:#c9bfdf;
}

.nav {
    border-radius:8px;
    justify-content:flex-start;
    align-items:center;
    gap:12px;
    min-height:48px;
}

.nav .icon {
    width:19px;
    height:19px;
    flex-basis:19px;
}

.page-heading>.primary,.form-actions .primary,.search-controls .secondary {
    gap:9px;
}

@media(prefers-reduced-motion:reduce) {
    button,.primary,.secondary {
        transition:none;
    }
}

select,textarea {
    width:100%;
    padding:13px 14px;
    border:1px solid #dddde4;
    border-radius:6px;
    background:#fff;
    color:inherit;
    font:inherit;
    font-size:14px;
    line-height:1.5;
}

select {
    min-height:49px;
}

textarea {
    display:block;
    resize:vertical;
    min-height:132px;
}

select:focus,textarea:focus {
    outline:2px solid #b3a0fc;
    outline-offset:2px;
}

select[aria-invalid=true],textarea[aria-invalid=true] {
    border-color:#bd4050;
}

.mobile-navigation {
    display:none;
}

@media(max-width:767px) {
    .workspace>aside {
        display:grid;
        grid-template-columns:minmax(0,1fr) 44px;
        column-gap:12px;
        align-items:center;
        padding:18px 20px;
    }
    .desktop-navigation {
        display:none;
    }
    .mobile-navigation {
        display:block;
    }
    .mobile-navigation>summary {
        list-style:none;
        width:44px;
        height:44px;
        display:flex;
        align-items:center;
        justify-content:center;
        border:1px solid #e1dfe8;
        border-radius:8px;
        background:#fff;
        color:#595363;
        cursor:pointer;
    }
    .mobile-navigation>summary::-webkit-details-marker {
        display:none;
    }
    .mobile-navigation>summary:focus-visible {
        outline:3px solid #a68afc;
        outline-offset:3px;
    }
    .mobile-navigation .icon {
        width:22px;
        height:22px;
        flex-basis:22px;
    }
    .mobile-navigation .menu-close {
        display:none;
    }
    .mobile-navigation[open] {
        display:contents;
    }
    .mobile-navigation[open] .menu-open {
        display:none;
    }
    .mobile-navigation[open] .menu-close {
        display:block;
    }
    .mobile-navigation nav {
        grid-column:1/-1;
        padding-top:18px;
    }
    .mobile-navigation nav .icon {
        width:19px;
        height:19px;
        flex-basis:19px;
    }
}

.report-total {
    background:#252b3b;
    border:1px solid #343d52;
    border-radius:10px;
    padding:28px 32px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:20px;
}

.report-total>div {
    display:flex;
    flex-direction:column;
    gap:12px;
}

.report-total span {
    color:#d8deeb;
    font-weight:600;
    font-size:14px;
}

.report-total strong {
    color:#fff;
    font-size:48px;
    letter-spacing:-1.5px;
}

.stage-report {
    padding:20px 0 48px;
}

.stage-report h2 {
    font-size:22px;
    margin-bottom:10px;
}

.report-description {
    font-size:13px;
    color:#827b90;
    margin-bottom:24px;
}

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

/* Stage colors keep labels and counts distinct, including on mobile. */
.stage-card {
    --stage-accent:#6745f5;
    --stage-bg:#f0ebff;
    --stage-border:#cbbbf8;
    display:flex;
    flex-direction:column;
    background:var(--stage-bg);
    border:1px solid var(--stage-border);
    border-top:5px solid var(--stage-accent);
    border-radius:8px;
    padding:24px;
    gap:12px;
    box-shadow:0 4px 12px #2420390a;
    transition:box-shadow .15s,border-color .15s;
}

.stage-card:hover {
    border-color:var(--stage-accent);
    box-shadow:0 7px 20px #24203918;
}

.stage-card:focus-visible {
    outline:3px solid var(--stage-accent);
    outline-offset:4px;
}

.stage-card-label {
    font-size:14px;
    font-weight:700;
    line-height:1.5;
    min-height:44px;
    color:#292333;
}

.stage-card strong {
    font-size:48px;
    letter-spacing:-2px;
    line-height:1.1;
    color:var(--stage-accent);
}

.stage-percentage {
    align-self:flex-start;
    font-size:11px;
    font-weight:600;
    color:#494351;
    background:#ffffffc7;
    border:1px solid var(--stage-border);
    border-radius:5px;
    padding:5px 8px;
    line-height:1.4;
}

.stage-card small {
    font-size:11px;
    color:#595261;
    line-height:1.6;
}

.stage-card-link {
    display:flex;
    align-items:center;
    justify-content:space-between;
    font-size:12px;
    font-weight:600;
    color:var(--stage-accent);
    margin-top:auto;
    padding-top:16px;
    border-top:1px solid var(--stage-border);
}

.stage-first_contact {
    --stage-accent:#225fbd;
    --stage-bg:#eaf2ff;
    --stage-border:#b6cef1;
}

.stage-demo_sent {
    --stage-accent:#0c7181;
    --stage-bg:#e5f5f8;
    --stage-border:#a7d6df;
}

.stage-catch_up {
    --stage-accent:#9a590a;
    --stage-bg:#fff3dd;
    --stage-border:#ebcb91;
}

.stage-not_interested {
    --stage-accent:#b52f48;
    --stage-bg:#fff0f2;
    --stage-border:#ebbac4;
}

.stage-other_platform {
    --stage-accent:#695669;
    --stage-bg:#f1ecf3;
    --stage-border:#d1c1d3;
}

.stage-almost_closed {
    --stage-accent:#946000;
    --stage-bg:#fff5cf;
    --stage-border:#e8cf7c;
}

.stage-done_deal {
    --stage-accent:#217044;
    --stage-bg:#e5f5eb;
    --stage-border:#a2d5b6;
}

@media(prefers-reduced-motion:reduce) {
    .stage-card {
        transition:none;
    }
}

.new-stage-note {
    background:#f4f1ff;
    color:#756292;
    font-size:12px;
    line-height:1.7;
    padding:12px 16px;
    border-radius:6px;
    margin-bottom:24px;
}

.search-controls {
    flex-wrap:wrap;
}

.search-controls>select {
    width:auto;
    max-width:100%;
    flex:0 1 260px;
}

.search-controls>input {
    flex:1 1 220px;
}

.stage-cell {
    min-width:280px;
    max-width:340px;
}

.stage-form {
    display:flex;
    flex-direction:column;
    align-items:flex-start;
    gap:10px;
}

.stage-form select {
    font-size:12px;
}

.stage-form button {
    font-size:12px;
    min-height:36px;
    padding:8px 12px;
}

.stage-form .icon {
    width:16px;
    height:16px;
    flex-basis:16px;
}

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

@media(max-width:767px) {
    .stage-grid {
        gap:12px;
    }
    .stage-card {
        padding:18px 14px;
    }
    .stage-card-label {
        font-size:12px;
        min-height:48px;
    }
    .report-total {
        padding:24px;
    }
    .report-total .secondary {
        font-size:12px;
    }
    .search-controls>select {
        flex:1 1 100%;
    }
}

@media(max-width:360px) {
    .stage-grid {
        grid-template-columns:1fr;
    }
}

.dashboard>header {
    flex-shrink:0;
}

.site-footer {
    margin-top:auto;
    padding:28px 0 32px;
    border-top:1px solid #e9e6ef;
    display:flex;
    align-items:center;
    justify-content:center;
}

.site-footer img {
    display:block;
    width:95px;
    height:auto;
    max-width:100%;
}

@media(max-width:767px) {
    .dashboard {
        min-height:calc(100svh - 80px);
    }
    .site-footer {
        padding:24px 0;
    }
    .site-footer img {
        width:85px;
    }
}

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

.stage-card-heading .stage-card-label {
    min-width:0;
}

.stage-icon {
    display:flex;
    align-items:center;
    justify-content:center;
    width:38px;
    height:38px;
    flex-shrink:0;
    border-radius:8px;
    background:#ffffffbd;
    border:1px solid var(--stage-border);
    color:var(--stage-accent);
}

.stage-icon .icon {
    width:22px;
    height:22px;
    flex-basis:22px;
}

@media(max-width:767px) {
    .stage-card-heading {
        flex-direction:column-reverse;
        gap:12px;
    }
    .stage-icon {
        width:34px;
        height:34px;
    }
    .stage-icon .icon {
        width:20px;
        height:20px;
        flex-basis:20px;
    }
}



/* Minimal sign-in page. */
.login-layout {
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 48px 24px 0;
    background: #f5f5f8;
}
.login-content {
    width: 100%;
    max-width: 420px;
    margin: auto 0;
}
.login-card {
    width: 100%;
    padding: 36px;
    background: #fff;
    border: 1px solid #e9e6ef;
    border-radius: 10px;
    box-shadow: 0 8px 28px #24203908;
}
.login-content > .brand {
    margin-bottom: 24px;
    justify-content: center;
    font-size: 19px;
    gap: 4px;
}
.login-content > .brand .brand-logo {
    width: 44px;
    height: 44px;
}
.login-card form {
    margin-top: 0;
}
.login-card label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
}
.login-card form > label:first-of-type {
    margin-top: 0;
}
.login-card .primary {
    margin-top: 26px;
    width: 100%;
}
.login-footer {
    flex-shrink: 0;
    padding: 32px 0 24px;
}
.login-footer img {
    display: block;
    width: 95px;
    height: auto;
}
@media (max-width: 767px) {
    .login-layout {
        padding-top: 24px;
    }
    .login-card {
        padding: 28px 24px;
    }
    .login-footer img {
        width: 85px;
    }
}
