﻿:root {
    color-scheme: light;
    --stockly-green: #0b5d35;
    --stockly-green-hover: #084a2a;
    --ink: #171a19;
    --muted: #6f7471;
    --line: #dfe3e0;
    --soft-line: #ecefec;
    --surface: #ffffff;
    --stockly-brightness-color: #000000;
    --stockly-brightness-opacity: 0;
}

/* Public landing and company onboarding */
.landing-body {
    background: #f7faf8;
}

.landing-page {
    --landing-ink: #13271d;
    --landing-muted: #64736b;
    --landing-green: #0b5d35;
    --landing-bright: #21a663;
    overflow: hidden;
    background: #f7faf8;
    color: var(--landing-ink);
}

.landing-content {
    width: min(1180px, calc(100% - 48px));
    margin-inline: auto;
}

.landing-nav-wrap {
    position: absolute;
    z-index: 30;
    top: 0;
    right: 0;
    left: 0;
    padding: 22px 0;
}

.landing-nav {
    display: grid;
    width: min(1240px, calc(100% - 48px));
    min-height: 64px;
    align-items: center;
    margin-inline: auto;
    padding: 8px 10px 8px 16px;
    border: 1px solid rgba(20, 64, 42, 0.1);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 18px 50px rgba(20, 64, 42, 0.08);
    backdrop-filter: blur(18px);
    grid-template-columns: 1fr auto 1fr;
}

.landing-brand {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    gap: 10px;
    color: var(--landing-ink);
    font-size: 1.08rem;
    font-weight: 780;
    letter-spacing: -0.03em;
    text-decoration: none;
}

.landing-brand:hover,
.landing-brand:focus-visible {
    color: var(--landing-green);
}

.landing-brand img {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    object-fit: cover;
}

.landing-nav-links,
.landing-nav-actions {
    display: flex;
    align-items: center;
}

.landing-nav-links {
    gap: 30px;
}

.landing-nav-links a,
.landing-help-link,
.landing-login-link {
    color: #53645b;
    font-size: 0.87rem;
    font-weight: 660;
    text-decoration: none;
}

.landing-nav-links a:hover,
.landing-help-link:hover,
.landing-login-link:hover,
.landing-nav-links a:focus-visible,
.landing-help-link:focus-visible,
.landing-login-link:focus-visible {
    color: var(--landing-green);
}

.landing-nav-actions {
    justify-content: flex-end;
    gap: 18px;
}

.landing-primary-link {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    padding: 0 18px;
    border-radius: 13px;
    background: var(--landing-green);
    color: #ffffff;
    font-size: 0.84rem;
    font-weight: 740;
    text-decoration: none;
    transition: background 160ms ease, transform 160ms ease;
}

.landing-primary-link:hover,
.landing-primary-link:focus-visible {
    background: #084a2a;
    color: #ffffff;
    transform: translateY(-1px);
}

.landing-hero {
    position: relative;
    min-height: 820px;
    padding: 160px 0 90px;
    background:
        radial-gradient(circle at 12% 14%, rgba(85, 201, 137, 0.13), transparent 31%),
        linear-gradient(155deg, #f7faf8 0%, #f2f8f4 56%, #eaf4ed 100%);
}

.landing-hero::before {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(11, 93, 53, 0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(11, 93, 53, 0.035) 1px, transparent 1px);
    background-size: 52px 52px;
    content: "";
    mask-image: linear-gradient(to bottom, #000, transparent 86%);
    pointer-events: none;
}

.landing-hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(1px);
    pointer-events: none;
}

.landing-orb-one {
    top: 180px;
    right: -90px;
    width: 340px;
    height: 340px;
    border: 1px solid rgba(11, 93, 53, 0.1);
}

.landing-orb-two {
    right: 150px;
    bottom: -220px;
    width: 440px;
    height: 440px;
    background: rgba(85, 201, 137, 0.09);
}

.landing-hero-grid {
    position: relative;
    z-index: 2;
    display: grid;
    align-items: center;
    gap: 76px;
    grid-template-columns: minmax(0, 0.9fr) minmax(470px, 1.1fr);
}

.landing-kicker {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin: 0 0 20px;
    color: var(--landing-green);
    font-size: 0.72rem;
    font-weight: 820;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.landing-kicker > span {
    width: 26px;
    height: 1px;
    background: currentColor;
}

.landing-hero h1 {
    max-width: 690px;
    margin: 0;
    color: var(--landing-ink);
    font-size: clamp(3.3rem, 6.2vw, 6.4rem);
    font-weight: 690;
    letter-spacing: -0.068em;
    line-height: 0.96;
}

.landing-hero h1 em {
    color: var(--landing-green);
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 500;
}

.landing-hero-copy > p {
    max-width: 630px;
    margin: 29px 0 0;
    color: var(--landing-muted);
    font-size: clamp(1rem, 1.6vw, 1.17rem);
    line-height: 1.72;
}

.landing-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 34px;
}

.landing-cta {
    display: inline-flex;
    min-height: 54px;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 0 23px;
    border: 1px solid transparent;
    border-radius: 14px;
    font-size: 0.91rem;
    font-weight: 750;
    text-decoration: none;
    transition: border-color 160ms ease, background 160ms ease, color 160ms ease, transform 160ms ease;
}

.landing-cta:hover,
.landing-cta:focus-visible {
    transform: translateY(-2px);
}

.landing-cta-primary {
    background: var(--landing-green);
    box-shadow: 0 14px 35px rgba(11, 93, 53, 0.2);
    color: #ffffff;
}

.landing-cta-primary:hover,
.landing-cta-primary:focus-visible {
    background: #084a2a;
    color: #ffffff;
}

.landing-cta-secondary {
    border-color: rgba(11, 93, 53, 0.18);
    background: rgba(255, 255, 255, 0.72);
    color: var(--landing-green);
}

.landing-cta-secondary:hover,
.landing-cta-secondary:focus-visible {
    border-color: rgba(11, 93, 53, 0.35);
    background: #ffffff;
    color: #084a2a;
}

.landing-trust-line {
    display: flex;
    flex-wrap: wrap;
    gap: 16px 24px;
    margin-top: 28px;
    color: #64736b;
    font-size: 0.73rem;
    font-weight: 600;
}

.landing-trust-line span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.landing-trust-line i {
    display: inline-grid;
    width: 17px;
    height: 17px;
    border-radius: 50%;
    background: rgba(11, 93, 53, 0.1);
    color: var(--landing-green);
    font-size: 0.63rem;
    font-style: normal;
    place-items: center;
}

.landing-product-visual {
    position: relative;
    width: 100%;
    border: 1px solid rgba(17, 63, 39, 0.13);
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 45px 100px rgba(23, 72, 47, 0.17), 0 8px 26px rgba(23, 72, 47, 0.09);
    transform: perspective(1100px) rotateY(-2deg) rotateX(1deg);
}

.landing-window-bar {
    display: flex;
    min-height: 48px;
    align-items: center;
    gap: 6px;
    padding: 0 18px;
    border-bottom: 1px solid #e7eee9;
}

.landing-window-bar > span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ced8d2;
}

.landing-window-bar > span:first-child {
    background: #78c899;
}

.landing-window-bar small {
    margin-left: 7px;
    color: #849188;
    font-size: 0.68rem;
    font-weight: 680;
}

.landing-search-demo {
    padding: 24px;
}

.landing-search-box {
    display: grid;
    min-height: 58px;
    align-items: center;
    gap: 12px;
    padding: 0 12px 0 17px;
    border: 1px solid rgba(11, 93, 53, 0.24);
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(11, 93, 53, 0.07);
    color: #33443a;
    grid-template-columns: auto 1fr auto;
}

.landing-search-box svg {
    width: 20px;
    fill: none;
    stroke: var(--landing-green);
    stroke-linecap: round;
    stroke-width: 1.7;
}

.landing-search-box span {
    font-size: 0.9rem;
    font-weight: 630;
}

.landing-search-box kbd {
    padding: 8px 11px;
    border-radius: 9px;
    background: var(--landing-green);
    box-shadow: none;
    color: #ffffff;
    font-family: inherit;
    font-size: 0.69rem;
    font-weight: 730;
}

.landing-search-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 18px 2px 10px;
    color: #89948e;
    font-size: 0.65rem;
}

.landing-search-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.landing-search-meta i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #22a961;
    box-shadow: 0 0 0 4px rgba(34, 169, 97, 0.1);
}

.landing-search-meta strong {
    color: #526159;
    font-weight: 740;
}

.landing-result-card {
    display: grid;
    min-width: 0;
    align-items: center;
    gap: 12px;
    margin-top: 9px;
    padding: 13px;
    border: 1px solid #e5ece7;
    border-radius: 14px;
    background: #ffffff;
    grid-template-columns: auto minmax(0, 1fr) auto;
}

.landing-result-featured {
    border-color: rgba(11, 93, 53, 0.2);
    background: #f7fbf8;
    box-shadow: 0 10px 24px rgba(21, 78, 47, 0.06);
}

.landing-file-icon {
    display: grid;
    width: 39px;
    height: 43px;
    border-radius: 9px;
    background: #e9f6ee;
    color: #167846;
    font-size: 0.59rem;
    font-weight: 850;
    place-items: center;
}

.landing-file-sheet {
    background: #eff5ea;
    color: #527a28;
}

.landing-file-doc {
    background: #edf3f8;
    color: #346b95;
}

.landing-result-card > div:nth-child(2) {
    display: grid;
    min-width: 0;
    gap: 3px;
}

.landing-result-card strong {
    overflow: hidden;
    color: #263a2f;
    font-size: 0.78rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.landing-result-card span,
.landing-result-card p,
.landing-result-card > small {
    color: #829087;
    font-size: 0.62rem;
}

.landing-result-card p {
    margin: 2px 0 0;
}

.landing-result-card > small {
    padding: 4px 7px;
    border-radius: 20px;
    background: #f0f5f1;
    white-space: nowrap;
}

.landing-floating-stat {
    position: absolute;
    right: -27px;
    bottom: -36px;
    display: grid;
    min-width: 205px;
    gap: 3px;
    padding: 17px 20px;
    border: 1px solid rgba(11, 93, 53, 0.12);
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 20px 50px rgba(23, 72, 47, 0.15);
}

.landing-floating-stat span {
    color: var(--landing-green);
    font-size: 0.64rem;
    font-weight: 800;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.landing-floating-stat strong {
    color: #273d31;
    font-size: 0.84rem;
}

.landing-proof-strip {
    border-top: 1px solid rgba(11, 93, 53, 0.07);
    border-bottom: 1px solid rgba(11, 93, 53, 0.07);
    background: #ffffff;
}

.landing-proof-strip .landing-content {
    display: flex;
    min-height: 112px;
    align-items: center;
    justify-content: space-between;
    gap: 34px;
}

.landing-proof-strip p {
    max-width: 340px;
    margin: 0;
    color: #68766e;
    font-size: 0.78rem;
    line-height: 1.5;
}

.landing-proof-strip div > div {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 15px 30px;
}

.landing-proof-strip span {
    color: #405148;
    font-size: 0.76rem;
    font-weight: 780;
}

.landing-section {
    padding: 120px 0;
}

.landing-section-heading {
    display: grid;
    max-width: 750px;
    margin: 0 auto 56px;
    text-align: center;
    justify-items: center;
}

.landing-section-heading h2,
.landing-results-copy h2,
.landing-company-copy h2,
.landing-final-card h2 {
    margin: 0;
    color: var(--landing-ink);
    font-size: clamp(2.4rem, 5vw, 4.7rem);
    font-weight: 670;
    letter-spacing: -0.058em;
    line-height: 1.02;
}

.landing-section-heading > p:last-child {
    max-width: 670px;
    margin: 20px 0 0;
    color: var(--landing-muted);
    line-height: 1.7;
}

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

.landing-feature-card {
    position: relative;
    min-height: 365px;
    overflow: hidden;
    padding: 38px;
    border: 1px solid rgba(20, 64, 42, 0.09);
    border-radius: 25px;
    background: #ffffff;
    box-shadow: 0 22px 60px rgba(24, 67, 44, 0.06);
}

.landing-feature-card-wide {
    display: grid;
    min-height: 410px;
    align-items: center;
    gap: 50px;
    background: linear-gradient(135deg, #103e28 0%, #0b5d35 100%);
    color: #ffffff;
    grid-column: 1 / -1;
    grid-template-columns: 1fr 0.8fr;
}

.landing-feature-number {
    display: inline-grid;
    width: 36px;
    height: 36px;
    margin-bottom: 44px;
    border: 1px solid rgba(11, 93, 53, 0.16);
    border-radius: 11px;
    color: var(--landing-green);
    font-size: 0.69rem;
    font-weight: 820;
    place-items: center;
}

.landing-feature-card-wide .landing-feature-number {
    margin-bottom: 28px;
    border-color: rgba(255, 255, 255, 0.2);
    color: #a8e6c2;
}

.landing-feature-card h3 {
    max-width: 500px;
    margin: 0;
    color: var(--landing-ink);
    font-size: clamp(1.55rem, 3vw, 2.25rem);
    font-weight: 680;
    letter-spacing: -0.045em;
    line-height: 1.08;
}

.landing-feature-card-wide h3 {
    color: #ffffff;
}

.landing-feature-card p {
    max-width: 570px;
    margin: 18px 0 0;
    color: var(--landing-muted);
    line-height: 1.7;
}

.landing-feature-card-wide p {
    color: #c4dacd;
}

.landing-feature-card ul {
    display: grid;
    margin: 24px 0 0;
    padding: 0;
    color: #deeee4;
    font-size: 0.82rem;
    list-style: none;
    gap: 10px;
}

.landing-feature-card li::before {
    margin-right: 9px;
    color: #7bd3a1;
    content: "✓";
}

.landing-query-stack {
    display: grid;
    gap: 12px;
}

.landing-query-stack > div {
    display: flex;
    min-height: 72px;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 0 18px;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(7px);
}

.landing-query-stack span {
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 620;
}

.landing-query-stack b {
    color: #8fdcaf;
    font-size: 0.66rem;
    font-weight: 760;
    white-space: nowrap;
}

.landing-feature-icon {
    display: grid;
    width: 66px;
    height: 66px;
    margin: -23px 0 30px auto;
    border-radius: 20px;
    background: #edf7f1;
    color: var(--landing-green);
    place-items: center;
}

.landing-feature-icon svg {
    width: 30px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.55;
}

.landing-results-section {
    background: #102a1d;
    color: #ffffff;
}

.landing-results-grid {
    display: grid;
    align-items: center;
    gap: 85px;
    grid-template-columns: 0.82fr 1.18fr;
}

.landing-kicker-light {
    color: #8cdeb0;
}

.landing-results-copy h2,
.landing-final-card h2 {
    color: #ffffff;
}

.landing-results-copy > p:not(.landing-kicker) {
    margin: 24px 0 0;
    color: #b9cec1;
    line-height: 1.74;
}

.landing-result-points {
    display: grid;
    margin-top: 38px;
    gap: 22px;
}

.landing-result-points > div {
    display: grid;
    gap: 4px;
    padding-left: 17px;
    border-left: 2px solid rgba(110, 215, 154, 0.45);
}

.landing-result-points strong {
    font-size: 0.9rem;
}

.landing-result-points span {
    color: #a9c0b2;
    font-size: 0.78rem;
    line-height: 1.5;
}

.landing-curve-card {
    margin: 0;
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.13);
}

.landing-curve-card figcaption {
    display: grid;
    gap: 5px;
}

.landing-curve-card figcaption span {
    color: #8fdcaf;
    font-size: 0.64rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.landing-curve-card figcaption strong {
    color: #f6fff9;
    font-size: 1.04rem;
}

.landing-curve-card svg {
    width: 100%;
    height: auto;
    margin-top: 16px;
    overflow: visible;
}

.curve-grid path {
    fill: none;
    stroke: rgba(255, 255, 255, 0.07);
    stroke-width: 1;
}

.curve-manual-fill {
    fill: url(#manualCurveFill);
}

.curve-manual-line {
    fill: none;
    stroke: #899a90;
    stroke-width: 3;
}

.curve-stockly-fill {
    fill: url(#stocklyCurveFill);
}

.curve-stockly-line {
    fill: none;
    stroke: #6bd296;
    stroke-linecap: round;
    stroke-width: 4;
}

.curve-markers line {
    stroke: rgba(255, 255, 255, 0.14);
    stroke-dasharray: 4 6;
}

.curve-axis-ticks path {
    fill: none;
    stroke: rgba(255, 255, 255, 0.18);
    stroke-width: 1;
}

.curve-axis-ticks text {
    fill: #8fa79a;
    font-family: Inter, ui-sans-serif, sans-serif;
    font-size: 11px;
}

.curve-labels text {
    fill: #bed1c5;
    font-family: Inter, ui-sans-serif, sans-serif;
    font-size: 12px;
}

.curve-labels text:first-child {
    fill: #86dda9;
    font-weight: 750;
}

.landing-curve-legend {
    display: flex;
    gap: 20px;
    color: #a9bdb1;
    font-size: 0.7rem;
}

.landing-curve-legend span {
    display: flex;
    align-items: center;
    gap: 7px;
}

.landing-curve-legend i {
    width: 20px;
    height: 3px;
    border-radius: 3px;
    background: #899a90;
}

.landing-curve-legend .is-stockly i {
    background: #6bd296;
}

.landing-curve-card > small {
    display: block;
    margin-top: 18px;
    color: #829a8b;
    font-size: 0.61rem;
    line-height: 1.45;
}

.landing-company-grid {
    display: grid;
    align-items: center;
    gap: 90px;
    grid-template-columns: 0.95fr 1.05fr;
}

.landing-company-photo {
    position: relative;
}

.landing-company-photo img {
    display: block;
    width: 100%;
    min-height: 570px;
    border-radius: 28px;
    object-fit: cover;
}

.landing-company-photo > div {
    position: absolute;
    right: -28px;
    bottom: 30px;
    display: grid;
    width: min(290px, 75%);
    gap: 8px;
    padding: 22px;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 22px 55px rgba(23, 72, 47, 0.19);
}

.landing-company-photo span {
    color: var(--landing-green);
    font-size: 0.64rem;
    font-weight: 820;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.landing-company-photo strong {
    color: #253a2f;
    font-size: 0.92rem;
    line-height: 1.45;
}

.landing-company-copy > p:not(.landing-kicker) {
    margin: 24px 0 0;
    color: var(--landing-muted);
    line-height: 1.75;
}

.landing-company-values {
    display: grid;
    margin: 36px 0;
}

.landing-company-values > div {
    display: grid;
    gap: 14px;
    padding: 18px 0;
    border-bottom: 1px solid rgba(11, 93, 53, 0.11);
    grid-template-columns: auto 1fr;
}

.landing-company-values span {
    color: var(--landing-green);
    font-size: 0.66rem;
    font-weight: 830;
}

.landing-company-values p {
    display: grid;
    margin: 0;
    color: var(--landing-muted);
    font-size: 0.78rem;
    line-height: 1.5;
    gap: 3px;
}

.landing-company-values strong {
    color: var(--landing-ink);
    font-size: 0.91rem;
}

.landing-text-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--landing-green);
    font-size: 0.86rem;
    font-weight: 760;
    text-decoration: none;
}

.landing-text-link:hover,
.landing-text-link:focus-visible {
    color: #084a2a;
}

.landing-final-cta {
    padding: 0 0 90px;
}

.landing-final-card {
    position: relative;
    display: grid;
    overflow: hidden;
    align-items: center;
    gap: 60px;
    padding: 64px;
    border-radius: 30px;
    background: linear-gradient(135deg, #0b5d35, #0c482c);
    box-shadow: 0 30px 80px rgba(11, 74, 43, 0.2);
    grid-template-columns: 1.25fr 0.75fr;
}

.landing-final-card::after {
    position: absolute;
    top: -180px;
    right: -110px;
    width: 460px;
    height: 460px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    content: "";
}

.landing-final-card > div {
    position: relative;
    z-index: 1;
}

.landing-final-card h2 {
    max-width: 700px;
}

.landing-final-card p:not(.landing-kicker) {
    max-width: 650px;
    margin: 18px 0 0;
    color: #c4d9cc;
    line-height: 1.65;
}

.landing-final-card > div:last-child {
    display: grid;
    gap: 11px;
}

.landing-cta-white {
    background: #ffffff;
    color: var(--landing-green);
}

.landing-cta-white:hover,
.landing-cta-white:focus-visible {
    background: #eef8f2;
    color: #084a2a;
}

.landing-cta-outline {
    border-color: rgba(255, 255, 255, 0.28);
    color: #ffffff;
}

.landing-cta-outline:hover,
.landing-cta-outline:focus-visible {
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.07);
    color: #ffffff;
}

.landing-final-help {
    margin-top: 6px;
    color: #a9c7b5;
    font-size: 0.72rem;
    text-align: center;
}

.landing-final-help:hover,
.landing-final-help:focus-visible {
    color: #ffffff;
}

.landing-footer {
    padding: 50px 0;
    border-top: 1px solid rgba(11, 93, 53, 0.09);
    background: #ffffff;
}

.landing-footer .landing-content {
    display: grid;
    align-items: center;
    gap: 24px;
    grid-template-columns: auto 1fr auto;
}

.landing-footer p {
    margin: 0;
    color: #7b8981;
    font-size: 0.76rem;
}

.landing-footer nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 20px;
}

.landing-footer nav a {
    color: #5e6e65;
    font-size: 0.74rem;
    font-weight: 650;
    text-decoration: none;
}

.landing-footer nav a:hover,
.landing-footer nav a:focus-visible {
    color: var(--landing-green);
}

.landing-footer small {
    color: #929e97;
    font-size: 0.65rem;
    grid-column: 1 / -1;
}

/* Company onboarding wizard */
.onboarding-body {
    background: #f4f8f5;
}

.onboarding-page {
    position: relative;
    display: grid;
    min-height: 100dvh;
    overflow: hidden;
    padding: 105px 24px 45px;
    background:
        linear-gradient(rgba(11, 93, 53, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(11, 93, 53, 0.025) 1px, transparent 1px),
        #f4f8f5;
    background-size: 48px 48px;
    place-items: start center;
}

.onboarding-glow {
    position: absolute;
    border-radius: 50%;
    background: rgba(48, 176, 105, 0.1);
    filter: blur(2px);
    pointer-events: none;
}

.onboarding-glow-one {
    top: -180px;
    left: -140px;
    width: 430px;
    height: 430px;
}

.onboarding-glow-two {
    right: -140px;
    bottom: -190px;
    width: 500px;
    height: 500px;
}

.onboarding-shell {
    position: relative;
    z-index: 1;
    width: min(850px, 100%);
}

.onboarding-heading {
    display: grid;
    max-width: 690px;
    margin: 0 auto 34px;
    text-align: center;
    justify-items: center;
}

.onboarding-back {
    margin-bottom: 26px;
    color: #65746c;
    font-size: 0.76rem;
    font-weight: 670;
    text-decoration: none;
}

.onboarding-back:hover,
.onboarding-back:focus-visible {
    color: var(--stockly-green);
}

.onboarding-heading .eyebrow {
    margin-bottom: 10px;
}

.onboarding-heading h1 {
    margin: 0;
    color: #172b20;
    font-size: clamp(2.25rem, 6vw, 4.2rem);
    font-weight: 680;
    letter-spacing: -0.06em;
    line-height: 1;
}

.onboarding-heading > p:last-child {
    max-width: 610px;
    margin: 18px 0 0;
    color: #6d7a73;
    line-height: 1.65;
}

.setup-progress {
    display: grid;
    width: min(600px, 100%);
    margin: 0 auto 20px;
    padding: 0;
    list-style: none;
    grid-template-columns: repeat(4, 1fr);
}

.setup-progress li {
    position: relative;
    display: grid;
    justify-items: center;
    color: #8c9992;
    font-size: 0.66rem;
    font-weight: 730;
    gap: 7px;
}

.setup-progress li::before {
    position: absolute;
    z-index: -1;
    top: 21px;
    left: -50%;
    width: 100%;
    height: 1px;
    background: #d6dfd9;
    content: "";
}

.setup-progress li:first-child::before {
    display: none;
}

.setup-progress li span {
    display: grid;
    width: 43px;
    height: 43px;
    border: 1px solid #d5ded8;
    border-radius: 13px;
    background: #f4f8f5;
    color: #7d8a83;
    font-size: 0.72rem;
    transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
    place-items: center;
}

.setup-progress li.is-active,
.setup-progress li.is-complete {
    color: var(--stockly-green);
}

.setup-progress li.is-active span {
    border-color: var(--stockly-green);
    background: var(--stockly-green);
    box-shadow: 0 10px 25px rgba(11, 93, 53, 0.18);
    color: #ffffff;
    transform: translateY(-2px);
}

.setup-progress li.is-complete span {
    border-color: rgba(11, 93, 53, 0.3);
    background: #e7f5ed;
    color: var(--stockly-green);
}

.setup-progress li.is-complete::before,
.setup-progress li.is-active::before {
    background: rgba(11, 93, 53, 0.35);
}

.setup-wizard {
    width: 100%;
}

.setup-summary {
    width: min(660px, 100%);
    margin: 0 auto 14px;
    padding: 0 10px;
}

.setup-step {
    position: relative;
    width: min(760px, 100%);
    min-height: 530px;
    margin-inline: auto;
    padding: clamp(32px, 6vw, 58px);
    border: 1px solid rgba(20, 64, 42, 0.11);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 28px 75px rgba(20, 64, 42, 0.1);
    animation: setup-step-in 260ms ease both;
}

@keyframes setup-step-in {
    from { opacity: 0; transform: translateY(10px) scale(0.992); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.setup-step-number {
    position: absolute;
    top: 28px;
    right: 30px;
    display: grid;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: #eef6f1;
    color: var(--stockly-green);
    font-size: 0.72rem;
    font-weight: 840;
    place-items: center;
}

.setup-step-check {
    background: var(--stockly-green);
    color: #ffffff;
    font-size: 1rem;
}

.setup-step > .eyebrow {
    margin: 0 60px 8px 0;
}

.setup-step h2 {
    max-width: 560px;
    margin: 0;
    color: #192d22;
    font-size: clamp(1.75rem, 4vw, 2.65rem);
    font-weight: 690;
    letter-spacing: -0.045em;
    line-height: 1.08;
}

.setup-step > p:not(.eyebrow) {
    max-width: 600px;
    margin: 13px 0 30px;
    color: #6b7971;
    line-height: 1.62;
}

.setup-field {
    display: grid;
    color: #37473e;
    font-size: 0.81rem;
    font-weight: 690;
    gap: 8px;
}

.setup-field > small {
    color: #89948e;
    font-size: 0.69rem;
    font-weight: 500;
}

.setup-input {
    width: 100%;
    min-height: 52px;
    padding: 0 15px;
    border: 1px solid #d6dfd9;
    border-radius: 13px;
    outline: 0;
    background: #ffffff;
    color: #21352a;
    box-shadow: none;
}

.setup-input:focus {
    border-color: rgba(11, 93, 53, 0.66);
    box-shadow: 0 0 0 4px rgba(11, 93, 53, 0.09);
}

.setup-code-field {
    max-width: 500px;
    margin-top: 38px;
}

.setup-code-input {
    height: 64px;
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    font-size: clamp(1rem, 3vw, 1.35rem);
    font-weight: 780;
    letter-spacing: 0.1em;
    text-align: center;
    text-transform: uppercase;
}

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

.setup-select {
    appearance: auto;
}

.setup-company-badge {
    display: grid;
    width: fit-content;
    min-width: 260px;
    margin: 25px 0 12px;
    padding: 13px 16px;
    border: 1px solid rgba(11, 93, 53, 0.14);
    border-radius: 14px;
    background: #eff8f3;
    gap: 2px;
}

.setup-company-badge span {
    color: #62806f;
    font-size: 0.61rem;
    font-weight: 790;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.setup-company-badge strong {
    color: var(--stockly-green);
    font-size: 0.93rem;
}

.setup-note {
    display: grid;
    margin-top: 20px;
    padding: 15px 17px;
    border-left: 3px solid #38a76b;
    border-radius: 0 12px 12px 0;
    background: #f2f8f4;
    gap: 3px;
}

.setup-note strong {
    color: #254433;
    font-size: 0.78rem;
}

.setup-note span {
    color: #718077;
    font-size: 0.7rem;
    line-height: 1.45;
}

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

.setup-choice {
    display: flex;
    min-height: 118px;
    align-items: flex-start;
    gap: 12px;
    padding: 17px;
    border: 1px solid #dce4df;
    border-radius: 15px;
    background: #fafcfb;
    cursor: pointer;
}

.setup-choice:has(input:checked) {
    border-color: rgba(11, 93, 53, 0.34);
    background: #f0f8f3;
}

.setup-choice input {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: var(--stockly-green);
}

.setup-choice > span {
    display: grid;
    gap: 5px;
}

.setup-choice strong {
    color: #263b30;
    font-size: 0.82rem;
}

.setup-choice small {
    color: #75837b;
    font-size: 0.7rem;
    line-height: 1.5;
}

.setup-inline-error {
    margin-top: 16px;
    color: #a52b2b;
    font-size: 0.78rem;
    font-weight: 620;
}

.setup-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 34px;
}

.setup-actions-end {
    justify-content: flex-end;
}

.setup-primary,
.setup-secondary {
    min-height: 49px;
    padding: 0 20px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 0.82rem;
    font-weight: 740;
}

.setup-primary {
    border: 1px solid var(--stockly-green);
    background: var(--stockly-green);
    box-shadow: 0 10px 25px rgba(11, 93, 53, 0.16);
    color: #ffffff;
}

.setup-primary:hover,
.setup-primary:focus-visible {
    border-color: #084a2a;
    outline: 0;
    background: #084a2a;
}

.setup-primary:disabled {
    opacity: 0.68;
    cursor: wait;
}

.setup-secondary {
    border: 1px solid #d4ddd7;
    background: #ffffff;
    color: #607068;
}

.setup-secondary:hover,
.setup-secondary:focus-visible {
    border-color: rgba(11, 93, 53, 0.3);
    outline: 0;
    color: var(--stockly-green);
}

.setup-submit {
    min-width: 215px;
}

.setup-review-list {
    display: grid;
    overflow: hidden;
    margin: 26px 0 0;
    border: 1px solid #dfe7e2;
    border-radius: 16px;
    background: #fbfdfb;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.setup-review-list > div {
    min-width: 0;
    padding: 16px 18px;
    border-right: 1px solid #e3eae5;
    border-bottom: 1px solid #e3eae5;
}

.setup-review-list > div:nth-child(even) {
    border-right: 0;
}

.setup-review-list > div:nth-last-child(-n + 2) {
    border-bottom: 0;
}

.setup-review-list dt {
    color: #809087;
    font-size: 0.61rem;
    font-weight: 790;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.setup-review-list dd {
    margin: 5px 0 0;
    overflow-wrap: anywhere;
    color: #263a2f;
    font-size: 0.83rem;
    font-weight: 710;
}

.onboarding-footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 7px;
    margin-top: 22px;
    color: #849188;
    font-size: 0.7rem;
}

.setup-noscript {
    margin: 16px auto;
    color: #6f7d75;
    font-size: 0.76rem;
    text-align: center;
}

.onboarding-footer a {
    color: var(--stockly-green);
    font-weight: 680;
}

.auth-company-confirmation {
    display: grid;
    margin: -2px 0 19px;
    padding: 13px 15px;
    border: 1px solid rgba(11, 93, 53, 0.15);
    border-radius: 12px;
    background: #f0f8f3;
    gap: 2px;
}

.auth-company-confirmation span {
    color: #678072;
    font-size: 0.64rem;
    font-weight: 780;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.auth-company-confirmation strong {
    color: var(--stockly-green);
}

.auth-company-confirmation small {
    color: #708078;
    font-size: 0.7rem;
}

.admin-company-create {
    display: grid;
    align-items: center;
    gap: 24px;
    padding: 20px;
    border: 1px solid color-mix(in srgb, var(--stockly-green) 16%, var(--soft-line));
    border-radius: 18px;
    background: color-mix(in srgb, var(--stockly-green) 5%, var(--surface));
    grid-template-columns: minmax(0, 1fr) auto;
}

.admin-company-create strong {
    color: var(--ink);
}

.admin-company-create p {
    max-width: 650px;
    margin: 5px 0 0;
    color: var(--muted);
    font-size: 0.78rem;
    line-height: 1.5;
}

.admin-company-create-form {
    display: flex;
    align-items: end;
    gap: 10px;
}

.admin-company-create-form .admin-input {
    width: min(260px, 32vw);
}

.company-setup-code {
    width: 100%;
    flex-wrap: wrap;
    border-radius: 18px;
}

.company-setup-code > span:first-child {
    display: grid;
    min-width: 210px;
    gap: 2px;
}

.company-setup-code > span:first-child small {
    color: var(--muted);
    font-size: 0.7rem;
}

@media (max-width: 1060px) {
    .landing-nav {
        grid-template-columns: 1fr auto;
    }

    .landing-nav-links {
        display: none;
    }

    .landing-hero-grid,
    .landing-results-grid,
    .landing-company-grid {
        gap: 60px;
        grid-template-columns: 1fr;
    }

    .landing-hero-grid {
        width: min(780px, calc(100% - 48px));
    }

    .landing-hero-copy {
        text-align: center;
    }

    .landing-hero-copy > p {
        margin-inline: auto;
    }

    .landing-kicker,
    .landing-hero-actions,
    .landing-trust-line {
        justify-content: center;
    }

    .landing-product-visual {
        transform: none;
    }

    .landing-results-copy {
        max-width: 760px;
    }

    .landing-results-copy .landing-kicker,
    .landing-company-copy .landing-kicker {
        justify-content: flex-start;
    }

    .landing-company-photo {
        width: min(720px, 100%);
    }

    .landing-final-card {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .landing-content,
    .landing-nav,
    .landing-hero-grid {
        width: min(100% - 30px, 1180px);
    }

    .landing-nav-wrap {
        padding-top: 14px;
    }

    .landing-nav {
        min-height: 58px;
        border-radius: 17px;
    }

    .landing-nav-actions {
        gap: 10px;
    }

    .landing-help-link {
        display: none;
    }

    .landing-login-link {
        font-size: 0.78rem;
    }

    .landing-primary-link {
        min-height: 40px;
        padding: 0 12px;
        font-size: 0.75rem;
    }

    .landing-brand span {
        display: none;
    }

    .landing-hero {
        min-height: 0;
        padding: 125px 0 75px;
    }

    .landing-hero-grid {
        gap: 44px;
    }

    .landing-hero h1 {
        font-size: clamp(3rem, 14vw, 5rem);
    }

    .landing-hero-actions,
    .landing-trust-line {
        flex-direction: column;
        align-items: stretch;
    }

    .landing-trust-line {
        align-items: center;
    }

    .landing-search-demo {
        padding: 15px;
    }

    .landing-result-card p,
    .landing-result-card > small {
        display: none;
    }

    .landing-floating-stat {
        position: static;
        min-width: 0;
        margin: 0 15px 15px;
        box-shadow: none;
    }

    .landing-proof-strip .landing-content {
        align-items: flex-start;
        padding: 28px 0;
        flex-direction: column;
    }

    .landing-proof-strip div > div {
        justify-content: flex-start;
    }

    .landing-section {
        padding: 82px 0;
    }

    .landing-feature-grid,
    .landing-feature-card-wide {
        grid-template-columns: 1fr;
    }

    .landing-feature-card {
        min-height: 0;
        padding: 28px;
    }

    .landing-feature-card-wide {
        gap: 34px;
    }

    .landing-feature-icon {
        margin-top: -14px;
    }

    .landing-curve-card {
        padding: 20px;
    }

    .curve-labels text:first-child,
    .curve-labels text:nth-child(2) {
        font-size: 10px;
    }

    .landing-company-photo img {
        min-height: 420px;
    }

    .landing-company-photo > div {
        right: 14px;
        bottom: 14px;
    }

    .landing-final-cta {
        padding-bottom: 50px;
    }

    .landing-final-card {
        gap: 38px;
        padding: 38px 28px;
        border-radius: 24px;
    }

    .landing-footer .landing-content {
        justify-items: start;
        grid-template-columns: 1fr;
    }

    .landing-footer nav {
        justify-content: flex-start;
    }

    .landing-footer .landing-brand span {
        display: inline;
    }

    .landing-footer small {
        grid-column: 1;
    }

    .onboarding-page {
        padding: 105px 14px 35px;
    }

    .setup-step {
        min-height: 0;
        padding: 30px 22px;
        border-radius: 22px;
    }

    .setup-step-number {
        top: 21px;
        right: 20px;
    }

    .setup-field-grid,
    .setup-choice-grid,
    .setup-review-list {
        grid-template-columns: 1fr;
    }

    .setup-review-list > div,
    .setup-review-list > div:nth-child(even),
    .setup-review-list > div:nth-last-child(-n + 2) {
        border-right: 0;
        border-bottom: 1px solid #e3eae5;
    }

    .setup-review-list > div:last-child {
        border-bottom: 0;
    }

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

    .setup-actions-end {
        flex-direction: column;
    }

    .setup-primary,
    .setup-secondary {
        width: 100%;
    }

    .admin-company-create {
        align-items: stretch;
        grid-template-columns: 1fr;
    }

    .admin-company-create-form {
        align-items: stretch;
        flex-direction: column;
    }

    .admin-company-create-form .admin-input {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .setup-step {
        animation: none;
    }
}

html[data-theme="dark"] {
    color-scheme: dark;
    --ink: #edf4ef;
    --muted: #aab7af;
    --line: #34443a;
    --soft-line: #26362d;
    --surface: #101814;
}

* {
    box-sizing: border-box;
}

[hidden] {
    display: none !important;
}

html {
    min-height: 100%;
    background: var(--surface);
    font-size: 16px;
}

body {
    min-width: 320px;
    min-height: 100dvh;
    margin: 0;
    overflow-x: hidden;
    background: var(--surface);
    color: var(--ink);
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased;
}

body::after {
    position: fixed;
    z-index: 1000;
    inset: 0;
    background: var(--stockly-brightness-color);
    content: "";
    opacity: var(--stockly-brightness-opacity);
    pointer-events: none;
}

html[data-motion="reduced"] {
    scroll-behavior: auto;
}

html[data-motion="reduced"] *,
html[data-motion="reduced"] *::before,
html[data-motion="reduced"] *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
}

button,
input,
select {
    font: inherit;
}

.stockly-header {
    position: fixed;
    z-index: 20;
    top: 0;
    right: 0;
    display: flex;
    justify-content: flex-end;
    width: 100%;
    padding: 24px 30px;
    pointer-events: none;
}

.stockly-header-stack {
    display: flex;
    width: 190px;
    max-width: 190px;
    align-items: flex-end;
    flex-direction: column;
    gap: 5px;
    pointer-events: auto;
}

.stockly-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--ink);
    font-size: 1.08rem;
    font-weight: 650;
    letter-spacing: -0.02em;
    text-decoration: none;
    pointer-events: auto;
}

.stockly-brand:hover,
.stockly-brand:focus-visible {
    color: var(--stockly-green);
}

.stockly-brand:focus-visible {
    border-radius: 8px;
    outline: 3px solid rgba(11, 93, 53, 0.18);
    outline-offset: 5px;
}

.stockly-brand img {
    width: 46px;
    height: 46px;
    border-radius: 13px;
    object-fit: cover;
}

.stockly-user-actions {
    display: flex;
    width: 100%;
    min-width: 0;
    align-items: center;
    justify-content: flex-end;
    gap: 3px;
}

.stockly-company-context {
    width: 100%;
    min-width: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    text-align: right;
}

.stockly-company-context strong,
.stockly-company-context small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.stockly-company-context strong {
    color: var(--muted);
    font-size: 0.74rem;
    font-weight: 620;
    line-height: 1.3;
}

.stockly-company-context small {
    margin-top: 2px;
    color: var(--muted);
    font-size: 0.66rem;
}

.stockly-user-name,
.stockly-settings-trigger {
    border: 0;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
}

.stockly-user-name {
    position: relative;
    display: block;
    min-width: 0;
    max-width: calc(100% - 29px);
    padding: 3px 4px;
    border-radius: 7px;
    color: var(--ink);
    font-size: 0.8rem;
    font-weight: 700;
    line-height: 1.2;
}

.stockly-user-name > span {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.stockly-user-name.is-overflowing > span {
    padding-right: 15px;
    text-overflow: clip;
    -webkit-mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 21px), transparent calc(100% - 7px));
    mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 21px), transparent calc(100% - 7px));
}

.stockly-user-name.is-overflowing::after {
    position: absolute;
    right: 4px;
    bottom: 4px;
    content: "…";
}

.stockly-settings-trigger {
    display: grid;
    width: 26px;
    height: 26px;
    flex: 0 0 26px;
    padding: 4px;
    border-radius: 8px;
    place-items: center;
}

.stockly-settings-trigger svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.55;
}

.stockly-user-name:hover,
.stockly-user-name:focus-visible,
.stockly-settings-trigger:hover,
.stockly-settings-trigger:focus-visible {
    outline: 0;
    background: color-mix(in srgb, var(--stockly-green) 9%, transparent);
    color: var(--stockly-green);
}

.stockly-admin-links {
    display: grid;
    width: 100%;
    justify-items: end;
    gap: 5px;
    margin-top: 4px;
    padding-top: 9px;
    border-top: 1px solid var(--line);
}

.site-main {
    min-height: 100dvh;
}

.search-stage {
    display: grid;
    min-height: 100dvh;
    place-items: center;
    grid-template-columns: minmax(0, 1fr);
    padding: 120px 24px;
}

.search-stage.has-results {
    align-items: start;
    padding-top: max(120px, 14vh);
}

.search-cluster {
    display: flex;
    width: min(740px, 100%);
    flex-direction: column;
    gap: 12px;
    margin-inline: auto;
    justify-self: center;
}

.filter-toolbar {
    position: fixed;
    z-index: 40;
    top: 24px;
    right: auto;
    left: 30px;
}

.filter-trigger {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    gap: 9px;
    padding: 0 15px;
    border: 1px solid rgba(19, 38, 28, 0.1);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow:
        0 14px 35px rgba(21, 47, 33, 0.12),
        0 4px 12px rgba(21, 47, 33, 0.07),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    color: #26302a;
    cursor: pointer;
    font-size: 0.92rem;
    font-weight: 650;
    transition: border-color 160ms ease, box-shadow 160ms ease, color 160ms ease, transform 160ms ease;
}

.filter-trigger:hover,
.filter-trigger[aria-expanded="true"] {
    border-color: rgba(11, 93, 53, 0.22);
    box-shadow:
        0 18px 42px rgba(21, 47, 33, 0.16),
        0 5px 14px rgba(21, 47, 33, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.95);
    color: var(--stockly-green);
    transform: translateY(-1px);
}

.filter-trigger:focus-visible {
    outline: 3px solid rgba(11, 93, 53, 0.16);
    outline-offset: 3px;
}

.filter-trigger > svg:first-child {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.7;
}

.filter-trigger-chevron {
    width: 14px;
    height: 14px;
    margin-left: 2px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.7;
    transition: transform 160ms ease;
}

.filter-trigger[aria-expanded="true"] .filter-trigger-chevron {
    transform: rotate(180deg);
}

.filter-menu {
    position: absolute;
    top: calc(100% + 11px);
    right: auto;
    left: 0;
    width: min(330px, calc(100vw - 38px));
    padding: 9px;
    border: 1px solid rgba(21, 47, 33, 0.09);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 24px 58px rgba(21, 47, 33, 0.17), 0 5px 16px rgba(21, 47, 33, 0.08);
    backdrop-filter: blur(16px);
}

.filter-menu-heading {
    margin: 4px 10px 7px;
    color: #8a918d;
    font-size: 0.7rem;
    font-weight: 750;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.filter-menu > button {
    display: flex;
    width: 100%;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: var(--ink);
    cursor: pointer;
    text-align: left;
    transition: background 140ms ease, color 140ms ease;
}

.filter-menu > button:hover,
.filter-menu > button:focus-visible {
    outline: 0;
    background: #f3f7f4;
    color: var(--stockly-green);
}

.filter-menu > button.is-active {
    background: color-mix(in srgb, var(--stockly-green) 10%, transparent);
    color: var(--stockly-green);
}

.filter-menu > button.is-active::after {
    flex: 0 0 auto;
    margin-left: auto;
    color: var(--stockly-green);
    content: "✓";
    font-size: 0.9rem;
    font-weight: 800;
}

.filter-menu > button[data-filter-locked="true"] {
    cursor: not-allowed;
}

.filter-menu > button[data-filter-locked="true"]::after {
    margin-left: auto;
    color: var(--muted);
    content: "LOCK";
    font-size: .58rem;
    font-weight: 820;
    letter-spacing: .05em;
}

.filter-menu-icon {
    display: grid;
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    border: 1px solid #e4ebe6;
    border-radius: 10px;
    background: #f9fbf9;
    color: var(--stockly-green);
    overflow: hidden;
    font-size: .68rem;
    font-weight: 720;
    letter-spacing: -.02em;
    line-height: 1;
    place-items: center;
}

.filter-menu-icon svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.55;
}

.filter-menu button > span:last-child {
    display: flex;
    min-width: 0;
    flex: 1 1 auto;
    flex-direction: column;
}

.filter-menu strong {
    font-size: 0.89rem;
    font-weight: 650;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.filter-menu small {
    margin-top: 2px;
    color: #7c837f;
    font-size: 0.76rem;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.active-filters {
    display: flex;
    min-height: 28px;
    flex-wrap: nowrap;
    flex-direction: column;
    align-items: flex-end;
    justify-content: flex-end;
    gap: 7px;
    padding-inline: 3px;
}

.active-filter {
    display: inline-flex;
    min-height: 28px;
    align-items: center;
    gap: 5px;
    padding: 4px 7px 4px 9px;
    border: 1px solid rgba(11, 93, 53, 0.13);
    border-radius: 9px;
    background: rgba(11, 93, 53, 0.055);
    color: var(--stockly-green);
    font-size: 0.78rem;
    font-weight: 650;
    line-height: 1.2;
}

.active-filter.is-folder-filter {
    border-color: color-mix(in srgb, var(--stockly-green) 28%, transparent);
    background: color-mix(in srgb, var(--stockly-green) 10%, transparent);
}

.active-filter.is-locked {
    padding-right: 9px;
}

.active-filter-lock {
    color: var(--muted);
    font-size: .54rem;
    font-weight: 820;
    letter-spacing: .05em;
}

.active-filter-icon {
    display: grid;
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
    place-items: center;
}

.active-filter-icon svg {
    width: 15px;
    height: 15px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.7;
}

.active-filter button {
    display: grid;
    width: 18px;
    height: 18px;
    padding: 0;
    border: 1px solid rgba(11, 93, 53, 0.12);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.72);
    color: inherit;
    cursor: pointer;
    opacity: 1;
    place-items: center;
    transform: none;
    transition: background 130ms ease, opacity 130ms ease, transform 130ms ease;
}

.active-filter:hover button,
.active-filter:focus-within button {
    opacity: 1;
    transform: translateX(0);
}

.active-filter button:hover,
.active-filter button:focus-visible {
    outline: 0;
    background: rgba(11, 93, 53, 0.12);
}

.active-filter button svg {
    width: 12px;
    height: 12px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-width: 2;
}

.system-search {
    position: relative;
    display: flex;
    align-items: center;
    width: min(740px, 100%);
    height: 70px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--surface);
    box-shadow: 0 10px 30px rgba(22, 33, 27, 0.07), 0 2px 8px rgba(22, 33, 27, 0.04);
    transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.system-search:focus-within {
    border-color: rgba(11, 93, 53, 0.55);
    box-shadow: 0 14px 36px rgba(22, 33, 27, 0.09), 0 0 0 4px rgba(11, 93, 53, 0.09);
    transform: translateY(-1px);
}

.system-search-icon {
    flex: 0 0 auto;
    width: 23px;
    height: 23px;
    margin-left: 21px;
    fill: none;
    stroke: #777d79;
    stroke-linecap: round;
    stroke-width: 1.8;
}

.system-search input {
    min-width: 0;
    height: 100%;
    flex: 1 1 auto;
    padding: 0 15px;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--ink);
    font-size: 1.08rem;
}

.system-search input::placeholder {
    color: #929793;
    opacity: 1;
}

.system-search input::-webkit-search-cancel-button {
    cursor: pointer;
}

.system-search button {
    display: grid;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    margin-right: 9px;
    border: 0;
    border-radius: 13px;
    background: var(--stockly-green);
    color: #ffffff;
    cursor: pointer;
    place-items: center;
    transition: background 150ms ease, transform 150ms ease;
}

.system-search button:hover {
    background: var(--stockly-green-hover);
    transform: translateX(1px);
}

.system-search button:focus-visible {
    outline: 3px solid rgba(11, 93, 53, 0.2);
    outline-offset: 3px;
}

.system-search button svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.system-search button:disabled {
    cursor: wait;
    opacity: 0.66;
    transform: none;
}

.search-suggestions {
    position: absolute;
    z-index: 70;
    bottom: calc(100% + 8px);
    right: 0;
    left: 0;
    width: auto;
    max-height: min(320px, 44vh);
    overflow-x: hidden;
    overflow-y: auto;
    padding: 7px;
    border: 1px solid var(--soft-line);
    border-radius: 14px;
    background: var(--surface);
    box-shadow: 0 18px 45px rgba(22, 33, 27, .14);
}

.system-search.has-active-search-filters .search-suggestions {
    right: auto;
    width: min(560px, calc(100% - var(--active-filter-inline-space, 124px)));
}

.system-search.has-active-search-filters.stack-search-assist .search-suggestions {
    bottom: calc(100% + 8px + var(--active-filter-stack-offset, 40px));
    width: min(560px, 100%);
}
.search-suggestions[hidden] { display: none; }
.search-suggestions-label { margin: 5px 10px 7px; color: var(--muted); font-size: .7rem; font-weight: 700; text-transform: uppercase; }
.search-suggestions button { display: block; width: 100%; height: auto; min-height: 44px; margin: 0; padding: 10px 12px; border-radius: 9px; background: transparent; color: var(--ink); text-align: left; }
.search-suggestions button:hover, .search-suggestions button[aria-selected="true"] { background: #edf5f0; color: var(--stockly-green); transform: none; }
.search-advanced { width: min(740px, 100%); color: var(--muted); font-size: .78rem; }
.search-advanced summary { width: max-content; cursor: pointer; }
.search-advanced div { display: flex; align-items: center; gap: 7px; padding-top: 8px; }
.search-advanced button, .search-empty button, .search-correction button { min-height: 36px; padding: 0 11px; border: 1px solid var(--soft-line); border-radius: 9px; background: var(--surface); color: var(--stockly-green); cursor: pointer; }
.search-advanced button.is-active { border-color: var(--stockly-green); background: #edf5f0; }
.search-correction { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 14px; color: var(--ink); }
.search-correction[hidden], .search-empty[hidden] { display: none; }
.search-empty { margin-top: 18px; padding: 22px; border: 1px dashed var(--line); border-radius: 14px; text-align: center; }
.search-empty h3 { margin: 0 0 7px; color: var(--ink); }
.search-empty p { margin: 0 auto 14px; color: var(--muted); }
.search-empty div { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.filter-check-field { display: flex; min-height: 48px; align-items: center; gap: 10px; }
.filter-check-field input { width: 20px; height: 20px; accent-color: var(--stockly-green); }

.connector-results {
    width: 100%;
    padding: 24px;
    border: 1px solid var(--soft-line);
    border-radius: 18px;
    background: var(--surface);
    box-shadow: 0 12px 34px rgba(22, 33, 27, 0.065);
}

.connector-results-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}

.connector-results-kicker,
.preview-modal-kicker {
    margin: 0 0 5px;
    color: var(--stockly-green);
    font-size: 0.7rem;
    font-weight: 750;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.connector-results h2,
.preview-modal h2 {
    margin: 0;
    color: var(--ink);
    font-size: 1.35rem;
    font-weight: 680;
    letter-spacing: -0.025em;
}

.connector-results-count {
    display: inline-flex;
    min-width: 0;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 5px 9px;
    border-radius: 9px;
    background: #f1f6f2;
    color: var(--stockly-green);
    font-size: 0.76rem;
    font-weight: 700;
    white-space: nowrap;
}

.connector-results-summary {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.connector-currentness-loading {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 9px;
    border: 1px solid rgba(11, 93, 53, 0.14);
    border-radius: 999px;
    background: #f4faf6;
    color: #496057;
    font-size: 0.76rem;
    font-weight: 680;
    white-space: nowrap;
}

.connector-currentness-loading[hidden] {
    display: none;
}

.connector-currentness-loading svg {
    width: 17px;
    height: 17px;
    flex: 0 0 17px;
    padding: 2px;
    border-radius: 50%;
    background: var(--stockly-green);
    color: #ffffff;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2.4;
}

.connector-last-updated {
    color: #a52b2b;
    font-size: 0.78rem;
    font-weight: 680;
    white-space: nowrap;
}

.connector-last-updated[hidden] {
    display: none;
}

.connector-results-count.is-loading {
    min-width: 48px;
}

.connector-loaded-count {
    min-width: 1ch;
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.connector-loading-spinner {
    width: 12px;
    height: 12px;
    flex: 0 0 12px;
    border: 2px solid color-mix(in srgb, currentColor 28%, transparent);
    border-top-color: currentColor;
    border-radius: 50%;
    animation: connector-results-spin 700ms linear infinite;
}

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

.connector-search-status,
.preview-status {
    margin: 17px 0 0;
    color: var(--muted);
    font-size: 0.9rem;
}

.connector-search-status:empty,
.preview-status:empty {
    display: none;
}

.connector-search-status.is-error,
.preview-status.is-error {
    color: #a52b2b;
}

.connector-open-confirm {
    min-height: 36px;
    margin-left: 8px;
    padding: 0 13px;
    border: 0;
    border-radius: 999px;
    background: var(--stockly-green);
    color: #ffffff;
    cursor: pointer;
    font: inherit;
    font-weight: 700;
}

.connector-open-confirm:hover {
    background: var(--stockly-green-hover);
}

.connector-open-confirm:focus-visible {
    outline: 3px solid rgba(38, 132, 255, 0.28);
    outline-offset: 2px;
}

.connector-open-confirm:disabled {
    cursor: not-allowed;
    opacity: 0.62;
}

.connector-results-list {
    display: grid;
    gap: 11px;
    margin-top: 18px;
}

.connector-results-list:empty {
    display: none;
}

.connector-load-all {
    display: block;
    min-height: 44px;
    margin: 18px auto 0;
    padding: 0 20px;
    border: 1px solid rgba(11, 93, 53, 0.28);
    border-radius: 12px;
    background: #ffffff;
    color: var(--stockly-green);
    cursor: pointer;
    font-size: 0.88rem;
    font-weight: 700;
    transition: background 150ms ease, border-color 150ms ease, transform 150ms ease;
}

.connector-load-all:hover,
.connector-load-all:focus-visible {
    outline: 0;
    border-color: var(--stockly-green);
    background: #f1f7f3;
    transform: translateY(-1px);
}

.connector-load-all[hidden] {
    display: none;
}

.connector-final-loading {
    display: flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    gap: 9px;
    margin-top: 18px;
    border-top: 1px solid var(--soft-line);
    color: var(--muted);
    font-size: 0.8rem;
}

.connector-final-loading > span {
    width: 15px;
    height: 15px;
    flex: 0 0 15px;
    border: 2px solid color-mix(in srgb, var(--stockly-green) 24%, transparent);
    border-top-color: var(--stockly-green);
    border-radius: 50%;
    animation: connector-results-spin 700ms linear infinite;
}

.connector-final-loading strong {
    font-weight: 680;
}

.connector-final-loading[hidden] {
    display: none;
}

.connector-result-card {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 17px;
    border: 1px solid #e4e8e5;
    border-radius: 14px;
    background: #fbfcfb;
}
.connector-result-card.is-superseded { border-style: dashed; background: #f4f4f2; opacity: .78; }
.connector-result-card.is-current-approved { border-color: rgba(11, 93, 53, .4); box-shadow: inset 4px 0 0 var(--stockly-green); }
.connector-result-filename { margin: 4px 0 0; color: var(--ink); font-size: .78rem; font-weight: 620; }
.connector-result-snippet mark { border-radius: 3px; background: #fff1a8; color: inherit; }
.connector-result-why { margin: 7px 0 0; color: #526159; font-size: .76rem; font-weight: 600; }
.connector-result-actions { display: flex; flex: 0 0 auto; align-items: center; justify-content: center; gap: 7px; }
.connector-open-button { min-height: 39px; padding: 0 14px; border: 0; border-radius: 10px; background: var(--stockly-green); color: #fff; cursor: pointer; font-size: .82rem; font-weight: 680; }
.connector-open-button:hover, .connector-open-button:focus-visible { outline: 3px solid rgba(11, 93, 53, .18); outline-offset: 2px; background: var(--stockly-green-hover); }

.connector-result-copy {
    min-width: 0;
    flex: 1 1 auto;
}

.connector-result-copy h3 {
    margin: 0;
    overflow-wrap: anywhere;
    color: #252a27;
    font-size: 1rem;
    font-weight: 670;
}

.connector-result-title-button {
    display: inline;
    max-width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    cursor: pointer;
    font: inherit;
    font-weight: inherit;
    text-align: left;
    text-decoration: underline;
    text-decoration-color: transparent;
    text-underline-offset: 3px;
    transition: color 150ms ease, text-decoration-color 150ms ease;
}

.connector-result-title-button:hover,
.connector-result-title-button:focus-visible {
    outline: 0;
    color: var(--stockly-green);
    text-decoration-color: currentColor;
}

.connector-result-title-button:disabled {
    cursor: wait;
    opacity: 0.65;
}

.connector-result-open-status {
    margin: 10px 0 0;
    color: var(--muted);
    font-size: 0.86rem;
    line-height: 1.45;
}

.connector-result-open-status:empty {
    display: none;
}

.connector-result-open-status.is-error {
    color: #a52b2b;
}

.connector-result-open-status.is-loading,
.preview-open-status.is-loading {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.connector-open-status-spinner {
    width: 13px;
    height: 13px;
    flex: 0 0 13px;
    border: 2px solid color-mix(in srgb, currentColor 25%, transparent);
    border-top-color: currentColor;
    border-radius: 50%;
    animation: connector-results-spin 650ms linear infinite;
}

.connector-result-open-status.is-error:not(.is-loading),
.preview-open-status.is-error:not(.is-loading) {
    animation: connector-open-status-refresh 160ms ease-out;
}

@keyframes connector-open-status-refresh {
    from {
        opacity: 0;
        transform: translateY(2px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.connector-result-open-status .connector-open-confirm {
    margin: 5px 0 0 8px;
}

.connector-result-path,
.connector-result-snippet {
    margin: 6px 0 0;
    overflow-wrap: anywhere;
    color: var(--muted);
    font-size: 0.8rem;
    line-height: 1.45;
}

.connector-result-path {
    color: #747b77;
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    font-size: 0.74rem;
}

.connector-result-path span {
    margin-right: 5px;
    color: #6a756e;
    font-weight: 680;
}

.connector-result-path code {
    color: inherit;
    font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
    font-size: inherit;
    overflow-wrap: anywhere;
}

.connector-result-metadata {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 9px;
}

.connector-result-metadata > span {
    display: inline-flex;
    min-height: 25px;
    align-items: center;
    gap: 5px;
    padding: 4px 8px;
    border: 1px solid rgba(11, 93, 53, 0.1);
    border-radius: 999px;
    background: #eef6f1;
    color: #52635a;
    font-size: 0.69rem;
    font-weight: 620;
    line-height: 1.2;
}

.connector-result-metadata svg {
    width: 14px;
    height: 14px;
    flex: 0 0 14px;
    fill: none;
    stroke: var(--stockly-green);
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.7;
}

.connector-result-metadata .connector-result-file-icon {
    display: inline-flex;
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    color: #ffffff;
    font-size: 0.58rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1;
    box-shadow: 0 2px 5px rgba(15, 23, 42, 0.13);
}

.connector-result-metadata .connector-result-file-icon svg {
    width: 14px;
    height: 14px;
    flex: 0 0 14px;
    stroke: currentColor;
    stroke-width: 1.8;
}

.connector-result-file-icon--acrobat {
    background: #e3262e;
}

.connector-result-file-icon--word {
    background: #185abd;
}

.connector-result-file-icon--excel {
    background: #107c41;
}

.connector-result-file-icon--powerpoint {
    background: #c43e1c;
}

.connector-result-file-icon--photos {
    background: linear-gradient(135deg, #6d5dfc, #a855f7);
}

.connector-result-file-icon--code {
    background: #334155;
    font-size: 0.44rem;
    letter-spacing: -0.08em;
}

.connector-result-file-icon--file {
    background: #64748b;
}

.connector-preview-button {
    min-height: 39px;
    flex: 0 0 auto;
    padding: 0 14px;
    border: 1px solid rgba(11, 93, 53, 0.26);
    border-radius: 10px;
    background: #ffffff;
    color: var(--stockly-green);
    cursor: pointer;
    font-size: 0.82rem;
    font-weight: 680;
}

.connector-preview-button:hover,
.connector-preview-button:focus-visible {
    outline: 0;
    border-color: var(--stockly-green);
    background: #f1f7f3;
}

.connector-preview-button:disabled {
    cursor: not-allowed;
    opacity: 0.45;
}

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

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

.currentness-modal-backdrop {
    position: fixed;
    z-index: 125;
    inset: 0;
    display: grid;
    overflow-y: auto;
    padding: 24px;
    background: rgba(12, 25, 18, 0.42);
    backdrop-filter: blur(7px);
    place-items: center;
}

.currentness-modal-backdrop[hidden] {
    display: none;
}

.currentness-modal {
    position: relative;
    width: min(690px, 100%);
    max-height: min(780px, calc(100vh - 48px));
    overflow-y: auto;
    padding: 30px;
    border: 1px solid rgba(11, 93, 53, 0.16);
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 26px 70px rgba(13, 31, 21, 0.24);
}

.currentness-modal-close {
    position: absolute;
    top: 18px;
    right: 18px;
    display: grid;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 1px solid #e1e8e3;
    border-radius: 50%;
    background: #ffffff;
    color: #637069;
    cursor: pointer;
    place-items: center;
}

.currentness-modal-close svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-width: 1.8;
}

.currentness-modal-mark {
    display: grid;
    width: 43px;
    height: 43px;
    margin-bottom: 13px;
    border-radius: 14px;
    background: #e9f6ee;
    color: var(--stockly-green);
    place-items: center;
}

.currentness-modal-mark svg {
    width: 25px;
    height: 25px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2.2;
}

.currentness-modal-kicker {
    margin: 0 0 5px;
    color: var(--stockly-green);
    font-size: 0.7rem;
    font-weight: 780;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.currentness-modal h2 {
    margin: 0;
    padding-right: 42px;
    color: var(--ink);
    font-size: clamp(1.35rem, 3vw, 1.75rem);
    letter-spacing: -0.03em;
}

.currentness-modal-message {
    margin: 9px 0 0;
    color: #526058;
    line-height: 1.55;
}

.currentness-version-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 20px;
}

.currentness-version-card {
    padding: 14px;
    border: 1px solid #e2e9e4;
    border-radius: 13px;
    background: #f8faf8;
}

.currentness-version-card.is-current {
    border-color: rgba(11, 93, 53, 0.34);
    background: #f0f8f3;
}

.currentness-version-label {
    display: block;
    margin-bottom: 5px;
    color: var(--stockly-green);
    font-size: 0.66rem;
    font-weight: 760;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.currentness-version-card strong {
    display: block;
    overflow-wrap: anywhere;
    color: #28312c;
    font-size: 0.88rem;
}

.currentness-explanation {
    margin: 16px 0 0;
    color: #3d4a43;
    font-size: 0.88rem;
    line-height: 1.5;
}

.currentness-evidence {
    margin: 9px 0 0;
    padding-left: 19px;
    color: #66716b;
    font-size: 0.79rem;
    line-height: 1.55;
}

.currentness-comparison {
    margin-top: 15px;
    padding: 14px;
    border: 1px solid #dfe8e2;
    border-radius: 13px;
    background: #f7faf8;
    color: #48564e;
    font-size: 0.8rem;
}

.currentness-comparison h3 {
    margin: 0 0 9px;
    color: #28312c;
    font-size: 0.9rem;
}

.currentness-comparison p,
.currentness-comparison ul {
    margin: 6px 0 0;
}

.currentness-comparison ul {
    padding-left: 18px;
}

.currentness-modal-status {
    min-height: 1.3em;
    margin: 12px 0 0;
    color: var(--stockly-green);
    font-size: 0.78rem;
    font-weight: 650;
}

.currentness-modal-status.is-error {
    color: #a52b2b;
}

.currentness-modal-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 15px;
}

.currentness-modal-actions button {
    min-height: 41px;
    padding: 0 14px;
    border: 1px solid rgba(11, 93, 53, 0.23);
    border-radius: 10px;
    background: #ffffff;
    color: var(--stockly-green);
    cursor: pointer;
    font: inherit;
    font-size: 0.79rem;
    font-weight: 700;
}

.currentness-modal-actions .currentness-open-current {
    border-color: var(--stockly-green);
    background: var(--stockly-green);
    color: #ffffff;
}

.currentness-modal-actions button:hover,
.currentness-modal-actions button:focus-visible,
.currentness-modal-close:hover,
.currentness-modal-close:focus-visible {
    outline: 3px solid rgba(11, 93, 53, 0.16);
    outline-offset: 2px;
}

.currentness-modal-actions button:disabled {
    cursor: wait;
    opacity: 0.55;
}

@media (max-width: 620px) {
    .currentness-modal {
        padding: 24px 18px;
    }

    .currentness-version-grid {
        grid-template-columns: 1fr;
    }

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

.preview-modal-backdrop {
    position: fixed;
    z-index: 110;
    inset: 0;
    display: grid;
    padding: 24px;
    background: rgba(16, 24, 20, 0.34);
    backdrop-filter: blur(5px);
    place-items: center;
}

.preview-modal {
    position: relative;
    width: min(980px, 100%);
    max-height: calc(100dvh - 48px);
    overflow-y: auto;
    padding: 34px;
    border: 1px solid rgba(21, 47, 33, 0.1);
    border-radius: 22px;
    outline: 0;
    background: #ffffff;
    box-shadow: 0 30px 90px rgba(12, 29, 20, 0.24), 0 8px 24px rgba(12, 29, 20, 0.12);
}

.preview-modal-close {
    position: absolute;
    top: 17px;
    right: 17px;
    display: grid;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 0;
    border-radius: 10px;
    background: #f3f6f4;
    color: #626a65;
    cursor: pointer;
    place-items: center;
}

.preview-modal-close:hover,
.preview-modal-close:focus-visible {
    outline: 0;
    background: #e9efeb;
    color: var(--stockly-green);
}

.preview-modal-close svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-width: 1.8;
}

.preview-modal-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding-right: 28px;
}

.preview-open-button {
    display: inline-flex;
    min-height: 41px;
    flex: 0 0 auto;
    align-items: center;
    gap: 8px;
    padding: 0 15px;
    border: 1px solid var(--stockly-green);
    border-radius: 10px;
    background: var(--stockly-green);
    color: #ffffff;
    cursor: pointer;
    font-size: 0.82rem;
    font-weight: 700;
}

.preview-open-button:hover,
.preview-open-button:focus-visible {
    outline: 0;
    background: #084c2c;
}

.preview-open-button:disabled {
    cursor: wait;
    opacity: 0.65;
}

.preview-open-button[hidden] {
    display: none;
}

.preview-open-button svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.preview-open-status {
    min-height: 0;
    margin: 10px 0 0;
    color: var(--stockly-green);
    font-size: 0.82rem;
    font-weight: 650;
}

.preview-open-status:empty {
    display: none;
}

.preview-open-status.is-error {
    color: #9a3412;
}

.preview-open-status .connector-open-confirm {
    margin-left: 4px;
}

.preview-metadata {
    display: grid;
    grid-template-columns: max-content minmax(0, 1fr);
    gap: 6px 14px;
    margin: 22px 0 16px;
    padding: 13px 15px;
    border-radius: 12px;
    background: #f5f8f6;
    font-size: 0.78rem;
}

.preview-metadata:empty {
    display: none;
}

.preview-metadata dt {
    color: #4a534d;
    font-weight: 700;
}

.preview-metadata dd {
    min-width: 0;
    margin: 0;
    overflow-wrap: anywhere;
    color: #69716c;
}

.preview-date-value time {
    display: grid;
    gap: 2px;
}

.preview-date-value time span:first-child {
    color: var(--ink);
    font-weight: 650;
}

.preview-visual {
    margin: 20px 0 0;
    padding: 14px;
    border: 1px solid #dce4de;
    border-radius: 15px;
    background: #edf2ef;
    text-align: center;
}

.preview-visual img {
    display: block;
    width: auto;
    max-width: 100%;
    max-height: 62vh;
    margin: 0 auto;
    border-radius: 7px;
    background: #ffffff;
    box-shadow: 0 10px 28px rgba(18, 42, 28, 0.14);
    object-fit: contain;
}

.preview-page-control {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 26px;
    margin-top: 11px;
    color: #66716a;
    font-size: 0.78rem;
}

.preview-page-control[hidden] {
    display: none;
}

.preview-page-control span {
    min-width: 82px;
    text-align: center;
}

.preview-page-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    padding: 0;
    border: 1px solid #d6dfd9;
    border-radius: 999px;
    background: #ffffff;
    color: #405047;
    cursor: pointer;
    transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, opacity 0.18s ease;
}

.preview-page-button:hover,
.preview-page-button:focus-visible {
    border-color: #b8c9bf;
    background: #f7faf8;
    color: #20382c;
}

.preview-page-button:focus-visible {
    outline: 2px solid color-mix(in srgb, var(--stockly-green) 35%, transparent);
    outline-offset: 2px;
}

.preview-page-button:disabled {
    opacity: 0.35;
    cursor: default;
}

.preview-page-button[hidden] {
    display: none;
}

.preview-page-button svg {
    width: 13px;
    height: 13px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}

.preview-text-panel {
    margin-top: 18px;
    border: 1px solid #e1e6e2;
    border-radius: 13px;
    background: #fbfcfb;
}

.preview-text-panel summary {
    padding: 13px 17px;
    color: #405047;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
}

.preview-text-panel .preview-document {
    margin: 0;
    border: 0;
    border-top: 1px solid #e1e6e2;
    border-radius: 0 0 13px 13px;
}

.preview-document {
    max-height: 56vh;
    margin: 22px 0 0;
    overflow: auto;
    padding: 18px;
    border: 1px solid #e1e6e2;
    border-radius: 13px;
    background: #fbfcfb;
    color: #303632;
    font: 0.84rem/1.6 ui-monospace, SFMono-Regular, Consolas, monospace;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

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

.top-app-page {
    min-height: 100dvh;
    background:
        radial-gradient(circle at 10% 0%, color-mix(in srgb, var(--stockly-green) 14%, transparent) 0, transparent 31rem),
        radial-gradient(circle at 92% 12%, color-mix(in srgb, var(--stockly-green) 9%, transparent) 0, transparent 26rem),
        linear-gradient(180deg, color-mix(in srgb, var(--surface) 94%, var(--stockly-green) 6%), var(--surface));
}

.settings-open-with-entry {
    overflow: hidden;
    margin-bottom: 12px;
    border: 1px solid color-mix(in srgb, var(--stockly-green) 28%, var(--line));
    border-radius: 17px;
    background: color-mix(in srgb, var(--surface) 93%, var(--stockly-green) 7%);
    box-shadow: 0 12px 30px color-mix(in srgb, var(--stockly-green) 8%, transparent);
}

.settings-open-with-entry .settings-accordion-button {
    min-height: 82px;
    border: 0;
    background: transparent;
    color: var(--ink);
    box-shadow: none;
}

.settings-open-with-entry .settings-accordion-button:hover,
.settings-open-with-entry .settings-accordion-button:focus-visible {
    outline: 0;
    background: color-mix(in srgb, var(--stockly-green) 9%, transparent);
    color: var(--ink);
}

.settings-open-with-entry .settings-accordion-title {
    display: block;
    color: var(--ink);
    font-weight: 760;
}

.settings-open-with-entry .settings-accordion-subtitle {
    display: grid;
    margin-top: 3px;
    color: var(--muted);
    font-size: 0.78rem;
    gap: 3px;
}

.settings-open-with-entry [data-open-with-summary] {
    color: var(--stockly-green);
    font-size: 0.7rem;
    font-weight: 740;
}

.app-shell {
    width: min(1180px, calc(100% - 36px));
    margin: 0 auto;
    padding: clamp(92px, 10vh, 124px) 0 48px;
}

.app-shell-wide {
    width: min(1500px, calc(100% - 48px));
}

.panel {
    min-width: 0;
    padding: clamp(18px, 2.2vw, 26px);
    border: 1px solid color-mix(in srgb, var(--line) 82%, transparent);
    border-radius: 24px;
    background:
        linear-gradient(145deg,
            color-mix(in srgb, var(--surface) 97%, #ffffff 3%) 0%,
            color-mix(in srgb, var(--surface) 91%, var(--stockly-green) 9%) 100%);
    box-shadow:
        0 22px 58px color-mix(in srgb, var(--ink) 10%, transparent),
        inset 0 1px 0 color-mix(in srgb, #ffffff 76%, transparent);
}

.hero-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

.eyebrow {
    margin: 0;
    color: var(--stockly-green);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.page-subtitle {
    max-width: 860px;
    margin: 0;
    color: var(--muted);
    line-height: 1.55;
}

.panel-title {
    margin: 0;
    color: var(--ink);
    font-size: clamp(1.08rem, 1.4vw, 1.32rem);
    font-weight: 760;
    letter-spacing: -0.025em;
}

.admin-area-page .app-shell-wide {
    max-width: none;
}

.admin-area-page h1 {
    margin: 0;
    color: var(--ink);
    font-size: clamp(2.1rem, 4vw, 4rem);
    font-weight: 790;
    letter-spacing: -0.06em;
    line-height: 0.96;
}

.admin-hero-panel {
    overflow: hidden;
    position: relative;
}

.admin-hero-panel::after {
    position: absolute;
    right: -80px;
    bottom: -120px;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--stockly-green) 13%, transparent);
    content: "";
    pointer-events: none;
}

.admin-hero-copy,
.admin-section-heading > div,
.admin-command-card > div {
    min-width: 0;
}

.admin-hero-bubbles {
    position: relative;
    z-index: 1;
    display: flex;
    max-width: 520px;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 9px;
}

.admin-bubble,
.admin-pill,
.status-pill {
    display: inline-flex;
    min-height: 32px;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 6px 11px;
    border: 1px solid color-mix(in srgb, var(--stockly-green) 20%, transparent);
    border-radius: 999px;
    background: color-mix(in srgb, var(--stockly-green) 8%, transparent);
    color: var(--stockly-green);
    font-size: 0.76rem;
    font-weight: 780;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
}

.admin-bubble-link:hover,
.admin-bubble-link:focus-visible,
.admin-bubble-button:hover,
.admin-bubble-button:focus-visible {
    outline: 0;
    border-color: var(--stockly-green);
    background: color-mix(in srgb, var(--stockly-green) 13%, transparent);
    color: var(--stockly-green);
}

.admin-bubble-form {
    margin: 0;
}

.admin-bubble-button {
    cursor: pointer;
    font: inherit;
}

.admin-alert {
    border-radius: 16px;
}

.admin-control-center {
    position: relative;
    overflow: hidden;
    border-color: color-mix(in srgb, var(--stockly-green) 18%, var(--line));
    background:
        radial-gradient(circle at 100% 0, color-mix(in srgb, var(--stockly-green) 10%, transparent), transparent 28rem),
        var(--surface);
}

.admin-control-center-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 22px;
}

.admin-control-assurance {
    display: inline-flex;
    min-height: 36px;
    flex: 0 0 auto;
    align-items: center;
    gap: 8px;
    padding: 7px 12px;
    border: 1px solid color-mix(in srgb, var(--stockly-green) 22%, transparent);
    border-radius: 999px;
    background: color-mix(in srgb, var(--stockly-green) 7%, transparent);
    color: var(--stockly-green);
    font-size: .72rem;
    font-weight: 760;
}

.admin-control-assurance > span {
    display: grid;
    width: 19px;
    height: 19px;
    border-radius: 50%;
    background: var(--stockly-green);
    color: #fff;
    font-size: .65rem;
    place-items: center;
}

.admin-control-grid {
    display: grid;
    margin-top: 20px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 11px;
}

.company-admin-page .admin-control-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.admin-control-tile-form {
    min-width: 0;
    margin: 0;
}

.admin-control-tile {
    display: grid;
    width: 100%;
    min-height: 98px;
    align-items: center;
    padding: 14px;
    border: 1px solid var(--soft-line);
    border-radius: 17px;
    background: color-mix(in srgb, var(--surface) 95%, var(--stockly-green) 5%);
    color: var(--ink);
    cursor: pointer;
    font: inherit;
    grid-template-columns: 38px minmax(0, 1fr) auto;
    gap: 11px;
    text-align: left;
    text-decoration: none;
    transition: border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease, background 150ms ease;
}

.admin-control-tile:hover,
.admin-control-tile:focus-visible {
    outline: 0;
    border-color: color-mix(in srgb, var(--stockly-green) 48%, transparent);
    background: color-mix(in srgb, var(--surface) 90%, var(--stockly-green) 10%);
    box-shadow: 0 15px 35px color-mix(in srgb, var(--stockly-green) 10%, transparent);
    color: var(--ink);
    transform: translateY(-2px);
}

.admin-control-tile.is-primary {
    border-color: color-mix(in srgb, var(--stockly-green) 34%, transparent);
    background: var(--stockly-green);
    color: #fff;
    box-shadow: 0 14px 32px color-mix(in srgb, var(--stockly-green) 20%, transparent);
}

.admin-control-tile.is-primary:hover,
.admin-control-tile.is-primary:focus-visible {
    background: var(--stockly-green-hover);
    color: #fff;
}

.admin-control-tile.is-security {
    border-color: color-mix(in srgb, #b73a3a 24%, var(--soft-line));
    background: color-mix(in srgb, var(--surface) 94%, #b73a3a 6%);
}

.admin-control-icon {
    display: grid;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: color-mix(in srgb, var(--stockly-green) 12%, transparent);
    color: var(--stockly-green);
    font-size: .62rem;
    font-weight: 850;
    letter-spacing: .04em;
    place-items: center;
}

.admin-control-tile.is-primary .admin-control-icon {
    background: rgba(255, 255, 255, .15);
    color: #fff;
}

.admin-control-tile.is-security .admin-control-icon {
    background: color-mix(in srgb, #b73a3a 13%, transparent);
    color: #a22f2f;
}

.admin-control-tile > span:nth-child(2) {
    display: grid;
    min-width: 0;
    gap: 3px;
}

.admin-control-tile strong,
.admin-control-tile small {
    overflow-wrap: anywhere;
}

.admin-control-tile strong {
    color: inherit;
    font-size: .82rem;
    font-weight: 790;
}

.admin-control-tile small {
    color: var(--muted);
    font-size: .66rem;
    line-height: 1.4;
}

.admin-control-tile.is-primary small {
    color: rgba(255, 255, 255, .78);
}

.admin-control-tile > b {
    color: color-mix(in srgb, currentColor 70%, transparent);
    font-size: 1rem;
}

.admin-control-section {
    scroll-margin-top: 120px;
}

.admin-control-section:target {
    border-color: color-mix(in srgb, var(--stockly-green) 45%, var(--line));
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--stockly-green) 9%, transparent), var(--shadow);
}

.stockly-admin-shortcut {
    padding: 2px 1px;
    border-radius: 5px;
    color: var(--stockly-green);
    font-size: 0.73rem;
    font-weight: 750;
    text-decoration: none;
    white-space: nowrap;
    transition: color 140ms ease;
}

.stockly-admin-shortcut:hover,
.stockly-admin-shortcut:focus-visible {
    outline: 0;
    color: var(--stockly-green-hover);
    text-decoration: none;
}

.admin-area-page .btn {
    border-radius: 999px;
    font-weight: 740;
}

.admin-area-page .btn-primary {
    border-color: var(--stockly-green);
    background: var(--stockly-green);
    color: #fff;
    box-shadow: none;
}

.admin-area-page .btn-primary:hover,
.admin-area-page .btn-primary:focus-visible {
    border-color: var(--stockly-green-hover);
    background: var(--stockly-green-hover);
    color: #fff;
}

.admin-area-page .btn-outline-light {
    border-color: color-mix(in srgb, var(--stockly-green) 28%, transparent);
    color: var(--stockly-green);
}

.admin-area-page .btn-outline-light:hover,
.admin-area-page .btn-outline-light:focus-visible {
    border-color: var(--stockly-green);
    background: color-mix(in srgb, var(--stockly-green) 11%, transparent);
    color: var(--stockly-green);
}

.admin-section-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}

.admin-section-heading-actions {
    position: relative;
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: flex-end;
    gap: 9px;
}

.admin-action-disclosure {
    position: relative;
}

.admin-action-disclosure > summary {
    list-style: none;
    cursor: pointer;
}

.admin-action-disclosure > summary::-webkit-details-marker {
    display: none;
}

.admin-action-popover {
    position: absolute;
    z-index: 80;
    top: calc(100% + 10px);
    right: 0;
    width: min(460px, calc(100vw - 40px));
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--surface);
    box-shadow: 0 24px 65px color-mix(in srgb, var(--ink) 20%, transparent);
}

.admin-action-popover h3 {
    margin: 0;
    color: var(--ink);
    font-size: 1rem;
}

.admin-action-popover > p {
    margin: 6px 0 16px;
    color: var(--muted);
    font-size: 0.82rem;
    line-height: 1.5;
}

.admin-action-popover .admin-form-grid {
    grid-template-columns: 1fr;
}

.admin-action-popover .admin-form-grid > small {
    color: var(--muted);
    font-size: 0.74rem;
    line-height: 1.45;
}

.admin-payment-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(100px, 0.45fr);
    gap: 10px;
}

.admin-payment-grid > label {
    display: grid;
    gap: 7px;
}

.admin-metric-grid,
.admin-card-grid,
.connector-setup-steps,
.admin-health-grid {
    display: grid;
    gap: 16px;
}

.admin-metric-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.admin-metric {
    display: grid;
    align-content: start;
    gap: 5px;
}

.admin-metric span,
.admin-health-grid dt,
.admin-form-grid label > span,
.admin-field > span,
.admin-textarea-label > span {
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 790;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.admin-metric strong {
    overflow-wrap: anywhere;
    color: var(--ink);
    font-size: clamp(1.55rem, 3vw, 2.35rem);
    line-height: 1.05;
}

.admin-metric small {
    color: var(--muted);
}

.admin-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-command-card {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.admin-command-card-wide {
    grid-column: 1 / -1;
}

.admin-collapsible-card {
    display: block;
}

.admin-collapsible-summary,
.admin-settings-disclosure > summary {
    display: flex;
    min-width: 0;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    cursor: pointer;
    list-style: none;
}

.admin-collapsible-summary::-webkit-details-marker,
.admin-settings-disclosure > summary::-webkit-details-marker {
    display: none;
}

.admin-collapsible-summary > div,
.admin-settings-disclosure > summary > span {
    min-width: 0;
}

.admin-collapsible-summary > span,
.admin-settings-disclosure > summary > b {
    display: grid;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--stockly-green) 10%, transparent);
    color: var(--stockly-green);
    font-size: 1rem;
    place-items: center;
    transition: transform 160ms ease;
}

.admin-collapsible-card[open] > .admin-collapsible-summary > span,
.admin-settings-disclosure[open] > summary > b {
    transform: rotate(180deg);
}

.admin-collapsible-card > form,
.admin-settings-disclosure > .admin-filter-policy {
    margin-top: 18px;
}

.admin-settings-disclosure {
    margin-top: 18px;
    padding: 14px;
    border: 1px solid var(--soft-line);
    border-radius: 15px;
    background: color-mix(in srgb, var(--surface) 96%, var(--stockly-green) 4%);
}

.admin-settings-disclosure > summary strong,
.admin-settings-disclosure > summary small {
    display: block;
}

.admin-settings-disclosure > summary small {
    margin-top: 3px;
    color: var(--muted);
    font-size: .72rem;
    font-weight: 500;
}

.admin-capability-note {
    display: grid;
    gap: .25rem;
    padding: .85rem 1rem;
    border: 1px solid rgba(148, 163, 184, .22);
    border-radius: .8rem;
    background: rgba(15, 23, 42, .34);
    color: var(--muted);
}

.admin-capability-note strong {
    color: var(--text);
}

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

.admin-user-invitation-form {
    align-items: end;
}

.admin-invitation-options {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-invitation-option {
    padding: 18px;
    border: 1px solid rgba(148, 163, 184, .22);
    border-radius: 16px;
    background: rgba(15, 23, 42, .24);
}

.admin-invitation-option-heading {
    margin-bottom: 16px;
}

.admin-invitation-option-heading h3 {
    margin: 7px 0 4px;
    color: var(--text);
    font-size: 1rem;
}

.admin-invitation-option-heading p,
.admin-invitation-delegation {
    margin: 0;
    color: var(--muted);
    font-size: .76rem;
    line-height: 1.5;
}

.admin-invitation-delegation {
    padding: 12px 14px;
    border-left: 3px solid var(--stockly-green);
    border-radius: 8px;
    background: color-mix(in srgb, var(--stockly-green) 7%, transparent);
}

.admin-invitation-delegation strong {
    color: var(--text);
}

.admin-user-invitation-form .btn {
    min-height: 44px;
}

.user-invitation-code {
    width: 100%;
    flex-wrap: wrap;
    border-radius: 18px;
}

.user-invitation-code > span:first-child {
    display: grid;
    min-width: 0;
    gap: 2px;
}

.user-invitation-code > span:first-child small {
    overflow-wrap: anywhere;
    color: var(--muted);
    font-size: 0.74rem;
}

.auth-field-note {
    display: block;
    margin-top: 7px;
    color: var(--muted);
    font-size: 0.75rem;
    line-height: 1.45;
}

.auth-code-input {
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    font-weight: 720;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.auth-text-button {
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--stockly-green);
    cursor: pointer;
    font: inherit;
}

.auth-label small {
    color: var(--muted);
    font-size: .72rem;
    font-weight: 500;
}

@media (max-width: 820px) {
    .admin-invitation-options {
        grid-template-columns: 1fr;
    }
}

.admin-form-grid label,
.admin-field,
.admin-textarea-label {
    display: grid;
    gap: 7px;
}

.admin-tuning-slider {
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: color-mix(in srgb, var(--surface) 88%, var(--stockly-green) 12%);
}

.admin-form-grid .admin-tuning-slider > span {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.admin-tuning-slider output {
    min-width: 58px;
    padding: 4px 9px;
    border-radius: 999px;
    background: var(--stockly-green);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 850;
    letter-spacing: 0;
    text-align: center;
    margin-left: auto;
}

.admin-tuning-slider input[type="range"] {
    width: 100%;
    height: 20px;
    margin: 2px 0 0;
    cursor: pointer;
    accent-color: var(--stockly-green);
}

.admin-tuning-slider input[type="range"]:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--stockly-green) 28%, transparent);
    outline-offset: 3px;
}

.admin-tuning-slider > small {
    color: var(--muted);
    font-size: 0.74rem;
}

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

.admin-file-access-form .admin-textarea-label,
.admin-file-access-form .admin-inline-check {
    grid-column: 1 / -1;
}

.admin-input,
.admin-select,
.admin-textarea {
    width: 100%;
    min-width: 0;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--surface);
    color: var(--ink);
    box-shadow: none;
}

.admin-input,
.admin-select {
    min-height: 44px;
    padding: 0 13px;
}

.admin-textarea {
    min-height: 118px;
    resize: vertical;
    padding: 12px 13px;
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    font-size: 0.88rem;
}

.admin-input:focus,
.admin-select:focus,
.admin-textarea:focus {
    border-color: color-mix(in srgb, var(--stockly-green) 70%, transparent);
    outline: 0;
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--stockly-green) 13%, transparent);
}

.admin-inline-check {
    display: flex;
    align-items: center;
    gap: 9px;
    color: var(--muted);
    font-size: 0.86rem;
}

.admin-inline-check input {
    width: 17px;
    height: 17px;
    accent-color: var(--stockly-green);
}

.connector-setup-steps {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.connector-setup-steps article {
    min-width: 0;
    padding: 15px;
    border: 1px solid var(--soft-line);
    border-radius: 18px;
    background: color-mix(in srgb, var(--surface) 94%, var(--stockly-green) 6%);
}

.connector-setup-steps span {
    display: inline-grid;
    width: 30px;
    height: 30px;
    margin-bottom: 11px;
    border-radius: 50%;
    background: var(--stockly-green);
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 850;
    place-items: center;
}

.connector-setup-steps strong,
.connector-setup-steps small {
    display: block;
}

.connector-setup-steps strong {
    color: var(--ink);
    font-size: 0.92rem;
}

.connector-setup-steps small {
    margin-top: 5px;
    color: var(--muted);
    line-height: 1.45;
}

.connector-release-status {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 13px 15px;
    border: 1px solid var(--soft-line);
    border-radius: 15px;
    background: color-mix(in srgb, var(--surface) 95%, var(--stockly-green) 5%);
}

.connector-release-status > span {
    display: grid;
    width: 32px;
    height: 32px;
    flex: 0 0 auto;
    border-radius: 10px;
    background: color-mix(in srgb, var(--stockly-green) 14%, transparent);
    color: var(--stockly-green);
    font-size: .8rem;
    font-weight: 850;
    place-items: center;
}

.connector-release-status > div { display: grid; gap: 2px; }
.connector-release-status strong { color: var(--ink); font-size: .78rem; }
.connector-release-status small { color: var(--muted); font-size: .68rem; }
.connector-release-status.is-waiting { border-color: rgba(180, 124, 35, .25); background: rgba(255, 248, 231, .62); }
.connector-release-status.is-waiting > span { background: rgba(180, 124, 35, .12); color: #996719; }

.connector-install-flow {
    overflow: hidden;
    border: 1px solid color-mix(in srgb, var(--stockly-green) 24%, var(--soft-line));
    border-radius: 22px;
    background: color-mix(in srgb, var(--surface) 97%, var(--stockly-green) 3%);
    box-shadow: 0 20px 50px rgba(19, 77, 45, .08);
}

.connector-install-flow-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 22px 24px;
    border-bottom: 1px solid var(--soft-line);
    background: color-mix(in srgb, var(--stockly-green) 8%, transparent);
}

.connector-install-flow-heading h3 { margin: 0; color: var(--ink); font-size: 1.1rem; font-weight: 720; }
.connector-install-flow-heading > span { padding: 6px 10px; border: 1px solid color-mix(in srgb, var(--stockly-green) 22%, transparent); border-radius: 999px; color: var(--stockly-green); font-size: .63rem; font-weight: 760; }

.connector-install-step {
    display: grid;
    padding: 24px;
    border-bottom: 1px solid var(--soft-line);
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 15px;
}

.connector-install-step-number {
    display: grid;
    width: 34px;
    height: 34px;
    border-radius: 11px;
    background: var(--stockly-green);
    color: #fff;
    font-size: .7rem;
    font-weight: 820;
    place-items: center;
}

.connector-install-step > div > strong { color: var(--ink); font-size: .87rem; }
.connector-install-step > div > p { max-width: 780px; margin: 5px 0 14px; color: var(--muted); font-size: .72rem; line-height: 1.55; }

.connector-pairing-copy-row {
    display: flex;
    width: fit-content;
    align-items: center;
    gap: 12px;
    padding: 10px 11px 10px 16px;
    border: 1px solid color-mix(in srgb, var(--stockly-green) 22%, transparent);
    border-radius: 13px;
    background: var(--surface);
}

.connector-pairing-copy-row code { color: var(--stockly-green); font-size: 1rem; font-weight: 800; letter-spacing: .1em; }

.connector-command-box {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 15px;
    background: #10251a;
}

.connector-command-box pre {
    max-height: 250px;
    overflow: auto;
    margin: 0;
    padding: 18px 20px 62px;
    color: #c7efd8;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.connector-command-box code { color: inherit; font-size: .69rem; line-height: 1.65; }
.connector-command-copy { position: absolute; right: 12px; bottom: 12px; min-height: 34px; padding: 0 12px; border: 1px solid rgba(255,255,255,.22); border-radius: 9px; background: rgba(255,255,255,.08); color: #fff; cursor: pointer; font-size: .65rem; font-weight: 720; }
.connector-command-copy:hover,
.connector-command-copy:focus-visible { border-color: rgba(255,255,255,.5); outline: 0; background: rgba(255,255,255,.14); }

.connector-install-integrity {
    display: grid;
    margin-top: 12px;
    padding: 12px 14px;
    border: 1px solid var(--soft-line);
    border-radius: 12px;
    grid-template-columns: 120px minmax(0, 1fr);
    gap: 5px 12px;
}

.connector-install-integrity span { color: var(--muted); font-size: .59rem; font-weight: 760; text-transform: uppercase; }
.connector-install-integrity code { overflow-wrap: anywhere; color: var(--ink); font-size: .61rem; }

.connector-install-flow > footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 24px;
}

.connector-install-flow > footer > span { color: var(--muted); font-size: .68rem; }

@media (max-width: 680px) {
    .connector-install-flow-heading,
    .connector-install-flow > footer { align-items: flex-start; flex-direction: column; }
    .connector-install-step { padding: 20px 16px; grid-template-columns: 1fr; }
    .connector-pairing-copy-row { width: 100%; align-items: stretch; flex-direction: column; }
    .connector-install-integrity { grid-template-columns: 1fr; }
    .connector-install-integrity code { margin-bottom: 7px; }
}

.admin-table-wrap {
    max-width: 100%;
    overflow-x: auto;
    border: 1px solid var(--soft-line);
    border-radius: 18px;
    background: color-mix(in srgb, var(--surface) 96%, var(--stockly-green) 4%);
}

.admin-table {
    width: 100%;
    min-width: 820px;
    border-collapse: separate;
    border-spacing: 0;
    color: var(--ink);
}

.admin-table-compact {
    min-width: 620px;
}

.admin-table th,
.admin-table td {
    padding: 13px 15px;
    vertical-align: top;
}

.admin-table th {
    border-bottom: 1px solid var(--soft-line);
    background: color-mix(in srgb, var(--stockly-green) 10%, transparent);
    color: var(--ink);
    font-size: 0.73rem;
    font-weight: 820;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    white-space: nowrap;
}

.admin-table td {
    border-bottom: 1px solid color-mix(in srgb, var(--soft-line) 82%, transparent);
    color: color-mix(in srgb, var(--ink) 88%, var(--muted) 12%);
    font-size: 0.9rem;
}

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

.admin-table td > strong {
    display: block;
    max-width: 360px;
    overflow-wrap: anywhere;
    color: var(--ink);
    font-weight: 780;
}

.admin-table td > small {
    display: block;
    max-width: 360px;
    margin-top: 4px;
    overflow-wrap: anywhere;
    color: var(--muted);
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    font-size: 0.74rem;
}

.protected-email {
    unicode-bidi: isolate;
    white-space: nowrap;
}

.admin-list-toggle {
    display: flex;
    width: 100%;
    min-height: 42px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 14px;
    padding: 9px 12px;
    border: 1px solid color-mix(in srgb, var(--soft-line) 88%, transparent);
    border-radius: 11px;
    background: color-mix(in srgb, var(--surface) 92%, var(--soft-line) 8%);
    color: var(--stockly-green);
    cursor: pointer;
    font-size: 0.78rem;
    font-weight: 760;
    letter-spacing: 0.01em;
    text-align: left;
    transition: border-color 140ms ease, background 140ms ease, box-shadow 140ms ease;
}

.admin-list-toggle:hover,
.admin-list-toggle:focus-visible {
    border-color: color-mix(in srgb, var(--stockly-green) 32%, var(--soft-line));
    outline: 0;
    background: color-mix(in srgb, var(--stockly-green) 7%, var(--surface));
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--stockly-green) 9%, transparent);
}

.admin-list-toggle-icon {
    width: 9px;
    height: 9px;
    flex: 0 0 9px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg) translate(-2px, -2px);
    transition: transform 150ms ease;
}

.admin-list-toggle[aria-expanded="false"] .admin-list-toggle-icon {
    transform: rotate(-45deg);
}

.admin-list-toggle + .admin-table-wrap {
    margin-top: 8px !important;
}

.admin-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 7px;
}

.admin-actions form {
    margin: 0;
}

.admin-actions .btn {
    white-space: nowrap;
}

.admin-connector-actions-cell {
    width: 255px;
    min-width: 255px;
    text-align: right;
}

.admin-connector-actions {
    display: inline-block;
    width: 225px;
    text-align: left;
}

.admin-connector-actions > summary {
    display: flex;
    min-height: 42px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 13px;
    border: 1px solid color-mix(in srgb, var(--stockly-green) 36%, var(--soft-line));
    border-radius: 11px;
    background: color-mix(in srgb, var(--stockly-green) 7%, var(--surface));
    color: var(--stockly-green);
    font-size: 0.8rem;
    font-weight: 780;
    transition: border-color 140ms ease, background 140ms ease, box-shadow 140ms ease;
}

.admin-connector-actions > summary:hover,
.admin-connector-actions > summary:focus-visible {
    border-color: color-mix(in srgb, var(--stockly-green) 60%, var(--soft-line));
    outline: 0;
    background: color-mix(in srgb, var(--stockly-green) 11%, var(--surface));
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--stockly-green) 9%, transparent);
}

.admin-connector-actions-chevron {
    width: 8px;
    height: 8px;
    flex: 0 0 8px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg) translate(-2px, -2px);
    transition: transform 150ms ease;
}

.admin-connector-actions[open] .admin-connector-actions-chevron {
    transform: rotate(225deg) translate(-1px, -1px);
}

.admin-connector-action-list {
    display: grid;
    gap: 6px;
    margin-top: 7px;
    padding: 8px;
    border: 1px solid var(--soft-line);
    border-radius: 13px;
    background: var(--surface);
    box-shadow: 0 12px 30px color-mix(in srgb, var(--ink) 10%, transparent);
}

.admin-connector-action-list form {
    margin: 0;
}

.admin-connector-action {
    display: grid;
    width: 100%;
    min-height: 51px;
    align-content: center;
    gap: 2px;
    padding: 8px 10px;
    border: 1px solid transparent;
    border-radius: 9px;
    background: transparent;
    color: var(--ink);
    cursor: pointer;
    text-align: left;
    text-decoration: none;
    transition: border-color 120ms ease, background 120ms ease, color 120ms ease;
}

.admin-connector-action:hover,
.admin-connector-action:focus-visible {
    border-color: color-mix(in srgb, var(--stockly-green) 24%, var(--soft-line));
    outline: 0;
    background: color-mix(in srgb, var(--stockly-green) 7%, transparent);
    color: var(--stockly-green);
    text-decoration: none;
}

.admin-connector-action strong,
.admin-connector-action small {
    display: block;
}

.admin-connector-action strong {
    font-size: 0.78rem;
    font-weight: 780;
}

.admin-connector-action small {
    color: var(--muted);
    font-size: 0.66rem;
    font-weight: 520;
    line-height: 1.3;
}

.admin-connector-action:disabled {
    cursor: not-allowed;
    opacity: 0.48;
}

.admin-connector-action-secure {
    border-color: color-mix(in srgb, #149cc0 22%, transparent);
    background: color-mix(in srgb, #149cc0 7%, transparent);
    color: color-mix(in srgb, #087d9b 85%, var(--ink));
}

.admin-connector-action-danger {
    display: grid;
    gap: 6px;
    margin-top: 3px;
    padding-top: 8px;
    border-top: 1px solid var(--soft-line);
}

.admin-connector-action-warning:hover,
.admin-connector-action-warning:focus-visible {
    border-color: color-mix(in srgb, #c48608 32%, var(--soft-line));
    background: color-mix(in srgb, #c48608 8%, transparent);
    color: #966300;
}

.admin-connector-action-enable:hover,
.admin-connector-action-enable:focus-visible {
    color: var(--stockly-green);
}

.admin-connector-action-remove:hover,
.admin-connector-action-remove:focus-visible {
    border-color: color-mix(in srgb, #c93b43 34%, var(--soft-line));
    background: color-mix(in srgb, #c93b43 8%, transparent);
    color: #b0252e;
}

.admin-person-access-form {
    display: grid;
    padding: 12px;
    border: 1px solid var(--soft-line);
    border-radius: 14px;
    background: color-mix(in srgb, var(--surface) 95%, var(--stockly-green) 5%);
    grid-template-columns: repeat(3, minmax(120px, 1fr));
    gap: 8px;
}

.admin-person-access-form .btn {
    grid-column: 1 / -1;
}

.admin-action-field {
    display: grid;
    min-width: 0;
    gap: 5px;
}

.admin-action-field > span {
    color: var(--muted);
    font-size: .62rem;
    font-weight: 790;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.admin-person-company-link {
    justify-self: end;
}

.company-user-searches {
    width: fit-content;
    margin-top: 9px;
}

.company-user-searches summary {
    display: inline-flex;
    min-height: 32px;
    align-items: center;
    gap: 8px;
    padding: 5px 10px;
    border: 1px solid color-mix(in srgb, var(--stockly-green) 24%, transparent);
    border-radius: 999px;
    background: color-mix(in srgb, var(--stockly-green) 7%, transparent);
    color: var(--stockly-green);
    cursor: pointer;
    font-size: .7rem;
    font-weight: 760;
    list-style: none;
}

.company-user-searches summary::-webkit-details-marker {
    display: none;
}

.company-user-searches summary strong {
    display: grid;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    border-radius: 999px;
    background: var(--stockly-green);
    color: #fff;
    font-size: .62rem;
    place-items: center;
}

.company-user-searches[open] {
    width: min(420px, 80vw);
}

.company-user-search-list {
    display: grid;
    max-height: 260px;
    overflow: auto;
    margin-top: 9px;
    padding: 10px;
    border: 1px solid var(--soft-line);
    border-radius: 13px;
    background: var(--surface);
    gap: 7px;
}

.company-user-search-list > div {
    display: grid;
    padding: 8px 9px;
    border-radius: 9px;
    background: color-mix(in srgb, var(--surface) 93%, var(--stockly-green) 7%);
    gap: 3px;
}

.company-user-search-list time {
    color: var(--muted);
    font-size: .62rem;
}

.company-user-search-list span {
    overflow-wrap: anywhere;
    color: var(--ink);
    font-size: .74rem;
}

.admin-company-fields {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.admin-company-fields:disabled {
    opacity: 0.68;
}

.admin-company-results {
    display: grid;
    gap: 8px;
}

.admin-company-result {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    border: 1px solid var(--soft-line);
    border-radius: 14px;
    background: color-mix(in srgb, var(--surface) 96%, var(--stockly-green) 4%);
    color: var(--ink);
    text-align: left;
}

.admin-company-result:hover,
.admin-company-result:focus-visible,
.admin-company-result.is-selected {
    outline: 0;
    border-color: color-mix(in srgb, var(--stockly-green) 58%, transparent);
    background: color-mix(in srgb, var(--stockly-green) 11%, transparent);
}

.admin-company-result span,
.admin-company-selection,
.admin-click-cell {
    overflow-wrap: anywhere;
    color: var(--muted);
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    font-size: 0.78rem;
}

.admin-delete-confirmation {
    padding: 15px;
    border: 1px solid color-mix(in srgb, #b73a3a 25%, transparent);
    border-radius: 18px;
    background: color-mix(in srgb, #b73a3a 8%, var(--surface) 92%);
}

.admin-empty {
    padding: 22px 15px !important;
    color: var(--muted) !important;
    text-align: left;
}

.status-pill {
    min-height: 28px;
    padding: 5px 9px;
    border-color: transparent;
    font-size: 0.72rem;
}

.status-pill.is-online {
    background: color-mix(in srgb, #1f9d5a 13%, transparent);
    color: #147c45;
}

.status-pill.is-offline {
    background: color-mix(in srgb, var(--muted) 13%, transparent);
    color: var(--muted);
}

.status-pill.is-disabled {
    background: color-mix(in srgb, #b73a3a 12%, transparent);
    color: #a22f2f;
}

.status-pill.is-warning {
    background: color-mix(in srgb, #d6a327 16%, transparent);
    color: #8d6814;
}

.admin-detail-panel {
    border-top: 1px solid var(--soft-line);
    padding-top: 14px;
}

.admin-detail-panel summary {
    color: var(--stockly-green);
    cursor: pointer;
    font-weight: 760;
}

.admin-list-search {
    display: grid;
    width: min(620px, 100%);
    min-height: 48px;
    align-items: center;
    padding: 0 12px 0 15px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--surface);
    box-shadow: 0 12px 30px color-mix(in srgb, var(--ink) 6%, transparent);
    grid-template-columns: 22px minmax(0, 1fr) auto;
    gap: 10px;
}

.admin-list-search svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: var(--stockly-green);
    stroke-linecap: round;
    stroke-width: 1.8;
}

.admin-list-search input {
    min-width: 0;
    height: 46px;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--ink);
    font: inherit;
}

.admin-list-search input::placeholder {
    color: var(--muted);
}

.admin-list-search:focus-within {
    border-color: color-mix(in srgb, var(--stockly-green) 70%, transparent);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--stockly-green) 12%, transparent);
}

.admin-list-search small,
.admin-current-user {
    color: var(--muted);
    font-size: .72rem;
    font-weight: 720;
    white-space: nowrap;
}

.admin-company-link {
    display: flex;
    width: fit-content;
    max-width: 360px;
    align-items: baseline;
    gap: 9px;
    color: var(--ink);
    text-decoration: none;
}

.admin-company-link strong {
    overflow-wrap: anywhere;
}

.admin-company-link span {
    color: var(--stockly-green);
    font-size: .68rem;
    font-weight: 760;
    white-space: nowrap;
}

.admin-company-link:hover,
.admin-company-link:focus-visible {
    outline: 0;
    color: var(--stockly-green);
}

.company-access-hero.is-suspended,
.company-access-control-card.is-suspended {
    border-color: color-mix(in srgb, #b73a3a 24%, var(--line));
    background:
        linear-gradient(145deg,
            color-mix(in srgb, var(--surface) 96%, #fff 4%),
            color-mix(in srgb, var(--surface) 91%, #b73a3a 9%));
}

.company-access-hero.is-suspended::after {
    background: color-mix(in srgb, #b73a3a 15%, transparent);
}

.company-access-layout {
    display: grid;
    align-items: stretch;
    grid-template-columns: minmax(0, 1.7fr) minmax(280px, .7fr);
    gap: 18px;
}

.company-access-control-card,
.company-access-form,
.company-access-form label {
    display: grid;
    gap: 11px;
}

.company-access-form label > span {
    color: var(--ink);
    font-size: .78rem;
    font-weight: 760;
}

.company-access-form label > small,
.company-access-submit-row > span {
    color: var(--muted);
    font-size: .72rem;
}

.company-access-current-note {
    margin-top: 18px;
    padding: 15px 16px;
    border: 1px solid color-mix(in srgb, #b73a3a 20%, var(--line));
    border-radius: 15px;
    background: color-mix(in srgb, #b73a3a 7%, var(--surface));
}

.company-access-current-note strong {
    color: #9f3030;
    font-size: .72rem;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.company-access-current-note p {
    margin: 6px 0 0;
    color: var(--ink);
    white-space: pre-wrap;
}

.company-access-submit-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.company-access-preview {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    border-color: color-mix(in srgb, #b73a3a 18%, var(--line));
}

.company-access-preview-mark {
    display: grid;
    width: 54px;
    height: 54px;
    margin: 14px 0 20px;
    border-radius: 18px;
    background: linear-gradient(145deg, #c94a4a, #8e2727);
    box-shadow: 0 16px 34px rgba(144, 38, 38, .22);
    color: #fff;
    font-size: 1.4rem;
    font-weight: 820;
    place-items: center;
}

.company-access-preview h2 {
    margin: 0;
    color: var(--ink);
    font-size: 1.45rem;
    letter-spacing: -.04em;
}

.company-access-preview > p:not(.eyebrow) {
    margin: 9px 0 19px;
    color: var(--muted);
    line-height: 1.55;
}

.company-access-preview a {
    color: var(--stockly-green);
    font-weight: 740;
    text-decoration: none;
}

.admin-reference {
    color: var(--muted);
    font-size: .72rem;
    overflow-wrap: anywhere;
}

.access-unavailable-body {
    background: #f9f5f5;
}

.access-unavailable-page {
    --access-red: #a83238;
    position: relative;
    display: grid;
    min-height: 100dvh;
    overflow: hidden;
    padding: 34px clamp(20px, 5vw, 72px) 26px;
    background:
        radial-gradient(circle at 13% 12%, rgba(185, 61, 68, .13), transparent 27rem),
        radial-gradient(circle at 88% 78%, rgba(11, 93, 53, .09), transparent 30rem),
        linear-gradient(145deg, #fffafa 0%, #f7f9f7 68%, #fff 100%);
    color: #202321;
    grid-template-rows: auto 1fr auto;
}

.access-status-maintenance {
    --access-red: #b24a3d;
}

.access-status-accountclosed {
    --access-red: #7f2831;
}

.access-unavailable-page::before,
.access-unavailable-page::after {
    position: absolute;
    border: 1px solid rgba(168, 50, 56, .11);
    border-radius: 50%;
    content: "";
    pointer-events: none;
}

.access-unavailable-page::before {
    top: -210px;
    right: -150px;
    width: 520px;
    height: 520px;
}

.access-unavailable-page::after {
    bottom: -280px;
    left: -210px;
    width: 620px;
    height: 620px;
}

.access-unavailable-brand {
    position: relative;
    z-index: 2;
    display: inline-flex;
    width: fit-content;
    align-items: center;
    gap: 10px;
    color: #173124;
    font-size: 1.12rem;
    font-weight: 800;
    letter-spacing: -.03em;
    text-decoration: none;
}

.access-unavailable-brand img {
    width: 42px;
    height: 42px;
    border-radius: 13px;
    object-fit: cover;
}

.access-unavailable-card {
    position: relative;
    z-index: 2;
    width: min(680px, 100%);
    align-self: center;
    justify-self: center;
    padding: clamp(30px, 5vw, 58px);
    border: 1px solid rgba(139, 40, 47, .14);
    border-radius: 32px;
    background: rgba(255, 255, 255, .88);
    box-shadow: 0 32px 90px rgba(83, 37, 40, .13), inset 0 1px 0 #fff;
    backdrop-filter: blur(18px);
    text-align: center;
}

.access-unavailable-symbol {
    display: grid;
    width: 70px;
    height: 70px;
    margin: 0 auto 24px;
    border-radius: 24px;
    background: linear-gradient(145deg, color-mix(in srgb, var(--access-red) 86%, #fff), var(--access-red));
    box-shadow: 0 18px 40px color-mix(in srgb, var(--access-red) 28%, transparent);
    color: #fff;
    font-size: 1.75rem;
    font-weight: 760;
    place-items: center;
}

.access-unavailable-kicker {
    margin: 0 0 10px;
    color: var(--access-red);
    font-size: .72rem;
    font-weight: 840;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.access-unavailable-card h1 {
    max-width: 560px;
    margin: 0 auto;
    color: #202321;
    font-size: clamp(2rem, 6vw, 3.8rem);
    font-weight: 810;
    letter-spacing: -.065em;
    line-height: 1;
}

.access-unavailable-company {
    width: fit-content;
    margin: 18px auto 0;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(168, 50, 56, .08);
    color: var(--access-red);
    font-size: .78rem;
    font-weight: 760;
}

.access-unavailable-message {
    max-width: 560px;
    margin: 18px auto 0;
    color: #68706b;
    font-size: 1rem;
    line-height: 1.65;
}

.access-unavailable-note {
    margin-top: 24px;
    padding: 16px 18px;
    border: 1px solid rgba(168, 50, 56, .12);
    border-radius: 17px;
    background: #fff8f8;
    text-align: left;
}

.access-unavailable-note strong {
    color: var(--access-red);
    font-size: .72rem;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.access-unavailable-note p {
    margin: 6px 0 0;
    color: #454a47;
    line-height: 1.55;
    white-space: pre-wrap;
}

.access-unavailable-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 28px;
}

.access-unavailable-actions a {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    padding: 0 18px;
    border: 1px solid rgba(168, 50, 56, .18);
    border-radius: 999px;
    font-size: .82rem;
    font-weight: 760;
    text-decoration: none;
}

.access-unavailable-home {
    gap: 8px;
    background: var(--access-red);
    color: #fff;
    box-shadow: 0 13px 28px color-mix(in srgb, var(--access-red) 23%, transparent);
}

.access-unavailable-support {
    background: #fff;
    color: var(--access-red);
}

.access-unavailable-signout {
    margin-top: 18px;
    padding: 4px 8px;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: #818782;
    cursor: pointer;
    font-size: .75rem;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.access-unavailable-footer {
    position: relative;
    z-index: 2;
    margin: 22px 0 0;
    color: #7a817d;
    font-size: .72rem;
    text-align: center;
}

.admin-health-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.admin-health-grid > div {
    min-width: 0;
    padding: 15px;
    border: 1px solid var(--soft-line);
    border-radius: 16px;
    background: color-mix(in srgb, var(--surface) 94%, var(--stockly-green) 6%);
}

.admin-health-grid dd {
    margin: 4px 0 0;
    overflow-wrap: anywhere;
    color: var(--ink);
    font-weight: 700;
}

.admin-settings-form .workspace-toggle-row {
    margin-top: 10px;
}

.admin-filter-policy {
    display: grid;
    gap: 10px;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid var(--soft-line);
}

.admin-filter-policy-heading,
.admin-filter-policy-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    align-items: center;
}

.admin-filter-policy-heading > div,
.admin-filter-policy-copy {
    display: grid;
    gap: 3px;
}

.admin-filter-policy-heading strong,
.admin-filter-policy-copy strong {
    color: var(--ink);
    font-size: .8rem;
}

.admin-filter-policy-heading small,
.admin-filter-policy-copy small {
    color: var(--muted);
    font-size: .69rem;
    line-height: 1.4;
}

.admin-filter-policy-heading > span {
    grid-column: 1;
    color: var(--muted);
    font-size: .66rem;
    font-weight: 760;
    text-align: left;
    text-transform: uppercase;
}

.admin-filter-policy-row {
    padding: 12px;
    border: 1px solid var(--soft-line);
    border-radius: 15px;
    background: color-mix(in srgb, var(--surface) 96%, var(--stockly-green) 4%);
}

.admin-filter-policy-row-stacked {
    align-items: start;
}

.admin-filter-date-defaults,
.admin-filter-format-defaults {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.admin-filter-format-defaults {
    grid-template-columns: minmax(0, 1fr);
}

.admin-filter-date-defaults label,
.admin-filter-select {
    display: grid;
    gap: 4px;
}

.admin-filter-date-defaults label > span,
.admin-filter-choice-grid legend {
    color: var(--muted);
    font-size: .64rem;
    font-weight: 760;
    text-transform: uppercase;
}

.admin-filter-date-defaults .admin-input,
.admin-filter-select .admin-input {
    min-width: 0;
    padding: 8px 9px;
    font-size: .72rem;
}

.admin-filter-choice-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: 6px;
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.admin-filter-choice-grid label,
.admin-filter-default,
.admin-filter-lock {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--ink);
    font-size: .69rem;
    cursor: pointer;
    line-height: 1.3;
    min-width: 0;
}

.admin-filter-choice-grid label span {
    min-width: 0;
    overflow-wrap: anywhere;
}

.admin-filter-choice-grid input,
.admin-filter-default input,
.admin-filter-lock input {
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
    accent-color: var(--stockly-green);
}

.admin-filter-lock {
    justify-content: flex-start;
    font-weight: 760;
}

@media (max-width: 720px) {
    .admin-filter-policy-heading,
    .admin-filter-policy-row {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .admin-filter-policy-copy,
    .admin-filter-policy-heading > div {
        grid-column: 1 / -1;
    }

    .admin-filter-policy-heading > span {
        grid-column: 1 / -1;
        text-align: left;
    }

    .admin-filter-date-defaults,
    .admin-filter-format-defaults {
        grid-template-columns: 1fr;
    }
}

.admin-key-bubble {
    max-width: 100%;
}

.admin-key-bubble .branch-key-divider {
    background: color-mix(in srgb, var(--stockly-green) 25%, transparent);
}

html[data-theme="dark"] .panel,
html[data-theme="dark"] .admin-table-wrap,
html[data-theme="dark"] .connector-setup-steps article,
html[data-theme="dark"] .admin-health-grid > div,
html[data-theme="dark"] .admin-company-result,
html[data-theme="dark"] .admin-input,
html[data-theme="dark"] .admin-select,
html[data-theme="dark"] .admin-textarea,
html[data-theme="dark"] .admin-control-tile,
html[data-theme="dark"] .admin-person-access-form,
html[data-theme="dark"] .company-user-search-list {
    border-color: var(--line);
    background: #16211b;
    color: var(--ink);
}

html[data-theme="dark"] .admin-control-tile.is-primary {
    border-color: color-mix(in srgb, var(--stockly-green) 50%, var(--line));
    background: var(--stockly-green);
    color: #fff;
}

html[data-theme="dark"] .admin-control-tile.is-security {
    border-color: color-mix(in srgb, #ff9a9a 25%, var(--line));
    background: color-mix(in srgb, #ff9a9a 9%, #16211b 91%);
}

html[data-theme="dark"] .admin-list-search {
    border-color: var(--line);
    background: #16211b;
}

html[data-theme="dark"] .admin-table th {
    background: #1d2c23;
}

html[data-theme="dark"] .admin-company-result:hover,
html[data-theme="dark"] .admin-company-result:focus-visible,
html[data-theme="dark"] .admin-company-result.is-selected {
    background: #1d2c23;
}

html[data-theme="dark"] .admin-delete-confirmation {
    border-color: color-mix(in srgb, #ff9a9a 25%, transparent);
    background: color-mix(in srgb, #ff9a9a 9%, #16211b 91%);
}

html[data-theme="dark"] .status-pill.is-online {
    color: #72e2a8;
}

html[data-theme="dark"] .status-pill.is-disabled {
    color: #ff9a9a;
}

html[data-theme="dark"] .status-pill.is-warning {
    color: #f5ce70;
}

@media (min-width: 900px) {
    .admin-area-page .app-shell-wide {
        padding-right: 190px;
    }
}

@media (max-width: 1100px) {
    .admin-metric-grid,
    .connector-setup-steps,
    .admin-health-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .admin-card-grid {
        grid-template-columns: 1fr;
    }

    .admin-control-grid,
    .company-admin-page .admin-control-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .company-access-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 899px) {
    .admin-area-page .app-shell {
        padding-top: 176px;
    }

    .admin-area-page .app-shell-wide {
        width: calc(100% - 28px);
    }

    .hero-panel,
    .admin-section-heading,
    .admin-control-center-heading {
        align-items: stretch;
        flex-direction: column;
    }

    .admin-control-assurance {
        width: fit-content;
    }

    .admin-section-heading-actions {
        justify-content: flex-start;
    }

    .admin-hero-bubbles {
        justify-content: flex-start;
    }
}

@media (max-width: 640px) {
    .admin-metric-grid,
    .connector-setup-steps,
    .admin-health-grid,
    .admin-form-grid,
    .admin-control-grid,
    .company-admin-page .admin-control-grid {
        grid-template-columns: 1fr;
    }

    .admin-payment-grid {
        grid-template-columns: 1fr;
    }

    .admin-control-tile {
        min-height: 84px;
    }

    .admin-table {
        min-width: 720px;
    }

    .admin-list-search {
        grid-template-columns: 22px minmax(0, 1fr);
    }

    .admin-list-search small {
        display: none;
    }

    .company-access-submit-row,
    .access-unavailable-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .access-unavailable-page {
        padding: 22px 14px 20px;
    }

    .access-unavailable-card {
        margin: 30px 0;
        padding: 28px 20px;
        border-radius: 25px;
    }
}

.filter-modal-backdrop {
    position: fixed;
    z-index: 100;
    inset: 0;
    display: grid;
    padding: 24px;
    background: rgba(16, 24, 20, 0.28);
    backdrop-filter: blur(5px);
    place-items: center;
}

.filter-modal {
    position: relative;
    width: min(540px, 100%);
    max-height: calc(100dvh - 48px);
    overflow-y: auto;
    padding: 36px;
    border: 1px solid rgba(21, 47, 33, 0.1);
    border-radius: 22px;
    outline: 0;
    background: #ffffff;
    box-shadow: 0 30px 90px rgba(12, 29, 20, 0.24), 0 8px 24px rgba(12, 29, 20, 0.12);
}

.filter-modal-close {
    position: absolute;
    top: 18px;
    right: 18px;
    display: grid;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 0;
    border-radius: 10px;
    background: #f3f6f4;
    color: #626a65;
    cursor: pointer;
    place-items: center;
}

.filter-modal-close:hover,
.filter-modal-close:focus-visible {
    outline: 0;
    background: #e9efeb;
    color: var(--stockly-green);
}

.filter-modal-close svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-width: 1.8;
}

.filter-panel {
    padding-top: 4px;
}

.filter-panel-kicker {
    margin: 0 0 8px;
    color: var(--stockly-green);
    font-size: 0.7rem;
    font-weight: 750;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.filter-panel h2 {
    margin: 0;
    padding-right: 38px;
    color: var(--ink);
    font-size: 1.6rem;
    font-weight: 680;
    letter-spacing: -0.035em;
}

.filter-panel-copy {
    margin: 9px 0 25px;
    color: var(--muted);
    font-size: 0.91rem;
    line-height: 1.55;
}

.filter-date-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 13px;
}

.filter-date-grid label,
.filter-date-entry,
.filter-select-field {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.filter-date-grid label > span,
.filter-date-entry > span,
.filter-select-field > span {
    color: #3c443f;
    font-size: 0.82rem;
    font-weight: 650;
}

.filter-date-grid input,
.filter-date-entry input,
.filter-select-field select {
    width: 100%;
    min-height: 49px;
    padding: 0 13px;
    border: 1px solid #d8deda;
    border-radius: 11px;
    outline: 0;
    background: #ffffff;
    color: var(--ink);
}

.filter-date-grid input:focus,
.filter-date-entry input:focus,
.filter-select-field select:focus {
    border-color: rgba(11, 93, 53, 0.64);
    box-shadow: 0 0 0 4px rgba(11, 93, 53, 0.08);
}

.filter-choice-grid {
    display: grid;
    margin: 0;
    padding: 0;
    border: 0;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
}

.filter-choice-grid legend {
    grid-column: 1 / -1;
    width: 100%;
    margin-bottom: 9px;
    color: #3c443f;
    font-size: 0.78rem;
    font-weight: 700;
}

.filter-choice-grid label {
    display: flex;
    min-width: 0;
    min-height: 48px;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid #d8deda;
    border-radius: 11px;
    background: #ffffff;
    color: var(--ink);
    cursor: pointer;
    font-size: 0.84rem;
    font-weight: 620;
    line-height: 1.35;
    overflow-wrap: anywhere;
    transition: border-color 140ms ease, background 140ms ease, box-shadow 140ms ease;
}

.filter-choice-grid + .filter-choice-grid,
.filter-date-entry + .filter-choice-grid {
    margin-top: 20px;
}

.filter-choice-grid > label:last-child:nth-child(even) {
    width: calc(50% - 4.5px);
    grid-column: 1 / -1;
    justify-self: center;
}

.filter-date-boundary + .filter-date-entry {
    margin-top: 10px;
}

.filter-date-entry[hidden] {
    display: none;
}

.filter-choice-grid label:hover {
    border-color: rgba(11, 93, 53, 0.34);
    background: #f8fbf9;
}

.filter-choice-grid label:has(input:checked) {
    border-color: rgba(11, 93, 53, 0.52);
    background: rgba(11, 93, 53, 0.07);
    box-shadow: inset 0 0 0 1px rgba(11, 93, 53, 0.08);
    color: var(--stockly-green);
}

.filter-choice-grid input {
    width: 19px;
    height: 19px;
    margin: 0;
    flex: 0 0 auto;
    accent-color: var(--stockly-green);
}

.filter-choice-grid-single {
    grid-template-columns: 1fr;
}

.filter-form-error {
    min-height: 20px;
    margin: 8px 0 0;
    color: #a52b2b;
    font-size: 0.79rem;
}

.filter-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 9px;
    margin-top: 28px;
}

.filter-cancel,
.filter-apply {
    min-height: 44px;
    padding: 0 16px;
    border-radius: 11px;
    cursor: pointer;
    font-size: 0.87rem;
    font-weight: 650;
}

.filter-cancel {
    border: 1px solid #dde2df;
    background: #ffffff;
    color: #555d58;
}

.filter-cancel:hover,
.filter-cancel:focus-visible {
    outline: 0;
    background: #f5f7f5;
}

.filter-apply {
    border: 1px solid var(--stockly-green);
    background: var(--stockly-green);
    color: #ffffff;
}

.filter-apply:hover,
.filter-apply:focus-visible {
    outline: 0;
    border-color: var(--stockly-green-hover);
    background: var(--stockly-green-hover);
}

.access-stage,
.auth-shell {
    display: grid;
    min-height: 100dvh;
    grid-template-columns: minmax(0, 1fr);
    padding: 110px 24px;
    place-items: center;
}

.access-card,
.auth-card {
    width: min(440px, 100%);
    margin-inline: auto;
    padding: 36px;
    border: 1px solid var(--soft-line);
    border-radius: 22px;
    background: var(--surface);
    box-shadow: 0 18px 55px rgba(22, 33, 27, 0.08);
}

.access-card-compact {
    width: min(400px, 100%);
}

.access-heading {
    margin-bottom: 28px;
}

.access-heading p,
.auth-kicker {
    margin: 0 0 8px;
    color: var(--stockly-green);
    font-size: 0.72rem;
    font-weight: 750;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.access-heading h1,
.auth-card h1,
.auth-card h2 {
    margin: 0;
    color: var(--ink);
    font-size: clamp(1.65rem, 5vw, 2rem);
    font-weight: 680;
    letter-spacing: -0.035em;
    line-height: 1.12;
}

.access-heading span,
.auth-card p {
    display: block;
    margin-top: 10px;
    color: var(--muted);
    line-height: 1.55;
}

.access-field,
.auth-field {
    margin-bottom: 19px;
}

.access-field > label,
.auth-label {
    display: block;
    margin-bottom: 7px;
    color: #343936;
    font-size: 0.88rem;
    font-weight: 620;
}

.access-field .form-control,
.auth-input {
    min-height: 50px;
    border: 1px solid #d9dedb;
    border-radius: 12px;
    background: #ffffff;
    color: var(--ink);
    box-shadow: none;
}

.access-field .form-control:focus,
.auth-input:focus {
    border-color: rgba(11, 93, 53, 0.7);
    box-shadow: 0 0 0 4px rgba(11, 93, 53, 0.09);
}

.access-password-wrap,
.auth-password-wrap {
    position: relative;
}

.access-password-wrap .form-control,
.auth-password-wrap .form-control {
    padding-right: 66px;
}

.access-password-wrap button,
.auth-password-toggle {
    position: absolute;
    top: 50%;
    right: 12px;
    padding: 4px 5px;
    border: 0;
    background: transparent;
    color: var(--stockly-green);
    font-size: 0.8rem;
    font-weight: 650;
    transform: translateY(-50%);
}

.access-checkbox {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: -2px 0 22px;
    color: #555b57;
    font-size: 0.84rem;
}

.access-checkbox input {
    width: 16px;
    height: 16px;
    accent-color: var(--stockly-green);
}

.access-submit,
.auth-submit {
    width: 100%;
    min-height: 50px;
    border: 0;
    border-radius: 12px;
    background: var(--stockly-green);
    color: #ffffff;
    font-weight: 650;
    cursor: pointer;
    transition: background 150ms ease, transform 150ms ease;
}

.access-submit:hover,
.auth-submit:hover {
    background: var(--stockly-green-hover);
    transform: translateY(-1px);
}

.access-submit:focus-visible,
.auth-submit:focus-visible {
    outline: 3px solid rgba(11, 93, 53, 0.2);
    outline-offset: 3px;
}

.access-alert,
.auth-alert {
    margin-bottom: 18px;
    color: #9d2525;
    font-size: 0.86rem;
}

.access-alert:empty,
.auth-alert:empty,
.access-error:empty,
.auth-error:empty {
    display: none;
}

.access-error,
.auth-error {
    display: block;
    margin-top: 6px;
    color: #a52b2b;
    font-size: 0.8rem;
}

.access-code-input {
    text-align: center;
    font-size: 1.35rem;
    font-weight: 650;
    letter-spacing: 0.42em;
}

/* Kept intentionally simple for dormant Identity screens such as MFA recovery. */
.auth-stage {
    display: grid;
    width: min(620px, 100%);
    margin-inline: auto;
    place-items: center;
}

.auth-brand-panel,
.auth-feature-grid,
.auth-trust-row,
.auth-side-note {
    display: none;
}

.auth-form .form-check-input {
    accent-color: var(--stockly-green);
}

.auth-secondary-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
    margin-top: 20px;
    font-size: 0.84rem;
}

.auth-secondary-actions a,
.auth-inline-link,
.auth-inline-button {
    color: var(--stockly-green);
}

.auth-inline-button {
    min-height: 36px;
    padding: 0 13px;
    border: 1px solid color-mix(in srgb, var(--stockly-green) 22%, var(--soft-line));
    border-radius: 999px;
    background: color-mix(in srgb, var(--stockly-green) 7%, var(--surface));
    cursor: pointer;
    font-size: inherit;
    font-weight: 650;
    line-height: 1;
    transition: border-color 150ms ease, background 150ms ease, color 150ms ease, transform 150ms ease;
}

.auth-inline-button:hover,
.auth-inline-button:focus-visible {
    border-color: var(--stockly-green);
    outline: 0;
    background: var(--stockly-green);
    color: #ffffff;
    transform: translateY(-1px);
}

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

.auth-recovery-modal {
    position: fixed;
    z-index: 220;
    inset: 0;
    display: grid;
    overflow-y: auto;
    padding: clamp(16px, 4vw, 32px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease, visibility 180ms ease;
    visibility: hidden;
    place-items: center;
}

.auth-recovery-modal[hidden],
.auth-recovery-panel[hidden],
.auth-recovery-options[hidden] {
    display: none !important;
}

.auth-recovery-modal.is-open {
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
}

.auth-recovery-modal .help-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(11, 20, 15, 0.52);
    backdrop-filter: blur(8px);
}

.auth-recovery-card {
    position: relative;
    z-index: 1;
    width: min(600px, 100%);
    max-height: calc(100dvh - clamp(32px, 8vw, 64px));
    overflow: auto;
    border: 1px solid color-mix(in srgb, var(--stockly-green) 16%, var(--line));
    border-radius: 20px;
    outline: 0;
    background: var(--surface);
    box-shadow: 0 32px 90px rgba(8, 26, 17, 0.28), 0 8px 28px rgba(8, 26, 17, 0.12);
    color: var(--ink);
    opacity: 0;
    transform: translateY(14px) scale(0.985);
    transition: opacity 180ms ease, transform 180ms ease;
}

.auth-recovery-modal.is-open .auth-recovery-card {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.auth-recovery-card .help-modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    padding: 28px 28px 22px;
    border-bottom: 1px solid var(--soft-line);
}

.auth-recovery-card .eyebrow {
    margin: 0 0 7px;
    color: var(--stockly-green);
    font-size: 0.7rem;
    font-weight: 760;
    letter-spacing: 0;
    text-transform: uppercase;
}

.auth-recovery-card .help-modal-header h2 {
    margin: 0;
    color: var(--ink);
    font-size: clamp(1.35rem, 4vw, 1.65rem);
    font-weight: 720;
    letter-spacing: 0;
    line-height: 1.2;
}

.auth-recovery-card .help-modal-header p:last-child {
    max-width: 440px;
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 0.88rem;
    line-height: 1.5;
}

.auth-recovery-card .help-modal-close {
    display: grid;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    padding: 0 0 2px;
    border: 1px solid var(--soft-line);
    border-radius: 10px;
    background: color-mix(in srgb, var(--surface) 92%, var(--line));
    color: var(--muted);
    cursor: pointer;
    font: 400 1.55rem/1 system-ui, sans-serif;
    place-items: center;
}

.auth-recovery-card .help-modal-close:hover,
.auth-recovery-card .help-modal-close:focus-visible {
    border-color: color-mix(in srgb, var(--stockly-green) 38%, var(--line));
    outline: 3px solid color-mix(in srgb, var(--stockly-green) 18%, transparent);
    outline-offset: 2px;
    background: color-mix(in srgb, var(--stockly-green) 8%, var(--surface));
    color: var(--stockly-green);
}

.auth-recovery-options {
    display: grid;
    gap: 12px;
    padding: 24px 28px 28px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.auth-recovery-choice {
    position: relative;
    display: grid;
    min-height: 142px;
    align-content: start;
    gap: 8px;
    padding: 20px 42px 20px 20px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: color-mix(in srgb, var(--surface) 97%, var(--stockly-green));
    color: var(--ink);
    cursor: pointer;
    text-align: left;
    transition: border-color 150ms ease, background 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.auth-recovery-choice::after,
.help-contact-options a::after {
    position: absolute;
    top: 18px;
    right: 18px;
    color: var(--stockly-green);
    content: "\203A";
    font-size: 1.45rem;
    line-height: 1;
}

.auth-recovery-choice strong,
.help-contact-options strong {
    font-size: 0.95rem;
    font-weight: 720;
    line-height: 1.35;
}

.auth-recovery-choice span,
.help-contact-options span {
    color: var(--muted);
    font-size: 0.8rem;
    line-height: 1.5;
}

.auth-recovery-choice:hover,
.auth-recovery-choice:focus-visible {
    border-color: color-mix(in srgb, var(--stockly-green) 50%, var(--line));
    outline: 0;
    background: color-mix(in srgb, var(--stockly-green) 7%, var(--surface));
    box-shadow: 0 12px 30px color-mix(in srgb, var(--stockly-green) 10%, transparent);
    transform: translateY(-2px);
}

.auth-recovery-panel {
    padding: 24px 28px 28px;
}

.auth-recovery-panel-heading h3 {
    margin: 0;
    color: var(--ink);
    font-size: 1.15rem;
    font-weight: 720;
    letter-spacing: 0;
}

.auth-recovery-panel .auth-recovery-copy {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 0.86rem;
    line-height: 1.55;
}

.help-contact-options {
    display: grid;
    gap: 10px;
    margin-top: 20px;
}

.help-contact-options a {
    position: relative;
    display: grid;
    gap: 4px;
    padding: 16px 42px 16px 16px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: color-mix(in srgb, var(--surface) 97%, var(--stockly-green));
    color: var(--ink);
    text-decoration: none;
}

.help-contact-options a::after {
    top: 15px;
}

.help-contact-options a:hover,
.help-contact-options a:focus-visible {
    border-color: color-mix(in srgb, var(--stockly-green) 50%, var(--line));
    outline: 3px solid color-mix(in srgb, var(--stockly-green) 16%, transparent);
    outline-offset: 2px;
    background: color-mix(in srgb, var(--stockly-green) 7%, var(--surface));
    color: var(--ink);
}

.auth-recovery-reset-button {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    margin-top: 20px;
    padding: 0 18px;
    border-radius: 11px;
    background: var(--stockly-green);
    color: #ffffff;
    font-size: 0.86rem;
    font-weight: 720;
    text-decoration: none;
}

.auth-recovery-reset-button:hover,
.auth-recovery-reset-button:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--stockly-green) 20%, transparent);
    outline-offset: 2px;
    background: var(--stockly-green-hover);
    color: #ffffff;
}

.auth-recovery-back {
    display: block;
    margin-top: 18px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--stockly-green);
    cursor: pointer;
    font-size: 0.82rem;
    font-weight: 700;
}

.auth-recovery-back:hover,
.auth-recovery-back:focus-visible {
    outline: 0;
    color: var(--stockly-green-hover);
    text-decoration: underline;
    text-underline-offset: 3px;
}

html[data-theme="dark"] .auth-recovery-card,
html[data-theme="dark"] .auth-recovery-choice,
html[data-theme="dark"] .help-contact-options a {
    border-color: var(--line);
    background: var(--surface);
}

html[data-theme="dark"] .auth-recovery-card .help-modal-close {
    border-color: var(--line);
    background: #1c2b23;
}

@media (max-width: 620px) {
    .auth-recovery-modal {
        padding: max(12px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) max(12px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
    }

    .auth-recovery-card {
        max-height: calc(100dvh - 24px);
        border-radius: 18px;
    }

    .auth-recovery-card .help-modal-header {
        gap: 14px;
        padding: 22px 20px 18px;
    }

    .auth-recovery-options {
        padding: 20px;
        grid-template-columns: 1fr;
    }

    .auth-recovery-choice {
        min-height: 0;
    }

    .auth-recovery-panel {
        padding: 20px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .auth-recovery-modal,
    .auth-recovery-card,
    .auth-recovery-choice {
        transition: none;
    }
}

body.workspace-settings-open,
body.workspace-open-with-open,
body.stockly-logout-open {
    overflow: hidden;
}

.workspace-settings-backdrop,
.stockly-logout-backdrop {
    position: fixed;
    z-index: 140;
    inset: 0;
    background: rgba(12, 24, 17, 0.34);
    backdrop-filter: blur(5px);
}

.workspace-settings-backdrop {
    display: grid;
    justify-items: end;
}

.workspace-settings-panel {
    display: flex;
    width: min(440px, 100%);
    height: 100dvh;
    overflow: hidden;
    border-left: 1px solid var(--soft-line);
    outline: 0;
    background: var(--surface);
    box-shadow: -24px 0 70px rgba(12, 29, 20, 0.2);
    flex-direction: column;
}

.workspace-settings-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding: 25px 26px 20px;
    border-bottom: 1px solid var(--soft-line);
}

.workspace-settings-header p {
    margin: 0 0 4px;
    color: var(--stockly-green);
    font-size: 0.68rem;
    font-weight: 750;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.workspace-settings-header h2 {
    margin: 0;
    color: var(--ink);
    font-size: 1.45rem;
    font-weight: 700;
    letter-spacing: -0.035em;
}

.workspace-settings-header button {
    display: grid;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 0;
    border-radius: 10px;
    background: color-mix(in srgb, var(--ink) 6%, transparent);
    color: var(--muted);
    cursor: pointer;
    place-items: center;
}

.workspace-settings-header button:hover,
.workspace-settings-header button:focus-visible {
    outline: 0;
    background: color-mix(in srgb, var(--stockly-green) 11%, transparent);
    color: var(--stockly-green);
}

.workspace-settings-header svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-width: 1.8;
}

.workspace-settings-content {
    display: grid;
    overflow-y: auto;
    padding: 20px 22px 26px;
    gap: 15px;
}

.workspace-settings-group {
    padding: 17px;
    border: 1px solid var(--soft-line);
    border-radius: 16px;
    background: color-mix(in srgb, var(--surface) 94%, var(--ink) 6%);
}

.workspace-settings-group-heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 15px;
}

.workspace-settings-group h3,
.workspace-help-group h3 {
    margin: 0;
    color: var(--ink);
    font-size: 0.94rem;
    font-weight: 700;
}

.workspace-settings-group-heading > span {
    color: var(--muted);
    font-size: 0.69rem;
}

.workspace-open-with-group > p {
    margin: -3px 0 13px;
    color: var(--muted);
    font-size: 0.72rem;
    line-height: 1.45;
}

.workspace-open-with-trigger {
    display: flex;
    width: 100%;
    min-height: 58px;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface);
    color: var(--ink);
    cursor: pointer;
    text-align: left;
    transition: border-color 150ms ease, background 150ms ease, transform 150ms ease;
}

.workspace-open-with-trigger:hover,
.workspace-open-with-trigger:focus-visible {
    border-color: var(--stockly-green);
    outline: 0;
    background: color-mix(in srgb, var(--stockly-green) 7%, var(--surface));
    transform: translateY(-1px);
}

.workspace-open-with-trigger > span {
    display: grid;
    min-width: 0;
    gap: 3px;
}

.workspace-open-with-trigger strong {
    font-size: 0.78rem;
}

.workspace-open-with-trigger small {
    overflow: hidden;
    color: var(--muted);
    font-size: 0.69rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.workspace-open-with-trigger svg {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.workspace-account-links {
    display: grid;
    gap: 8px;
}

.workspace-account-links a {
    display: grid;
    padding: 11px 12px;
    border: 1px solid var(--line);
    border-radius: 11px;
    background: var(--surface);
    color: var(--ink);
    gap: 2px;
    text-decoration: none;
}

.workspace-account-links a:hover,
.workspace-account-links a:focus-visible {
    outline: 0;
    border-color: var(--stockly-green);
    background: color-mix(in srgb, var(--stockly-green) 8%, var(--surface));
}

.workspace-account-links strong {
    font-size: 0.78rem;
}

.workspace-account-links small {
    color: var(--muted);
    font-size: 0.69rem;
    line-height: 1.4;
}

.workspace-settings-field {
    display: grid;
    margin-top: 13px;
    color: var(--ink);
    font-size: 0.78rem;
    font-weight: 650;
    gap: 7px;
}

.workspace-settings-field:first-of-type {
    margin-top: 0;
}

.workspace-settings-field select {
    width: 100%;
    min-height: 42px;
    padding: 0 11px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--surface);
    color: var(--ink);
}

.workspace-settings-field select:focus,
.workspace-settings-field input:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--stockly-green) 18%, transparent);
    outline-offset: 2px;
}

.workspace-range-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.workspace-range-label output {
    color: var(--stockly-green);
    font-variant-numeric: tabular-nums;
}

.workspace-settings-field input[type="range"] {
    width: 100%;
    accent-color: var(--stockly-green);
}

.workspace-toggle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 11px 0;
    border-bottom: 1px solid var(--soft-line);
    cursor: pointer;
}

.workspace-toggle-row > span {
    display: grid;
    gap: 2px;
}

.workspace-toggle-row strong {
    color: var(--ink);
    font-size: 0.78rem;
}

.workspace-toggle-row small {
    color: var(--muted);
    font-size: 0.69rem;
    line-height: 1.35;
}

.workspace-toggle-row input {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    accent-color: var(--stockly-green);
}

.workspace-mode-toggle {
    padding-top: 0;
}

.workspace-mode-toggle input {
    position: relative;
    width: 44px;
    height: 24px;
    flex: 0 0 44px;
    appearance: none;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: color-mix(in srgb, var(--muted) 22%, var(--surface));
    cursor: pointer;
    transition: background 150ms ease, border-color 150ms ease;
}

.workspace-mode-toggle input::before {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--surface);
    box-shadow: 0 1px 4px rgba(12, 29, 20, 0.25);
    content: "";
    transition: transform 150ms ease;
}

.workspace-mode-toggle input:checked {
    border-color: var(--stockly-green);
    background: var(--stockly-green);
}

.workspace-mode-toggle input:checked::before {
    transform: translateX(20px);
}

.workspace-mode-toggle input:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--stockly-green) 20%, transparent);
    outline-offset: 2px;
}

.workspace-help-group {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.workspace-help-group p {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 0.72rem;
}

.workspace-help-group > button,
.workspace-quick-help a {
    flex: 0 0 auto;
    padding: 9px 11px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: transparent;
    color: var(--stockly-green);
    cursor: pointer;
    font-size: 0.72rem;
    font-weight: 700;
    text-decoration: none;
}

.workspace-help-group > button:hover,
.workspace-help-group > button:focus-visible,
.workspace-quick-help a:hover,
.workspace-quick-help a:focus-visible {
    outline: 0;
    border-color: var(--stockly-green);
    background: color-mix(in srgb, var(--stockly-green) 8%, transparent);
}

.workspace-quick-help {
    display: grid;
    width: 100%;
    flex: 1 0 100%;
    padding-top: 12px;
    border-top: 1px solid var(--soft-line);
    gap: 8px;
}

.workspace-quick-help p {
    margin: 0;
    line-height: 1.45;
}

.workspace-quick-help ol {
    display: grid;
    margin: 0;
    padding-left: 20px;
    color: var(--muted);
    font-size: 0.72rem;
    gap: 8px;
}

.workspace-quick-help li {
    padding-left: 2px;
    line-height: 1.45;
}

.workspace-quick-help strong {
    color: var(--ink);
}

.workspace-quick-help a {
    width: max-content;
}

.workspace-settings-footer {
    display: flex;
    min-height: 66px;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    border-top: 1px solid var(--soft-line);
}

.workspace-settings-footer button {
    min-height: 38px;
    padding: 0 11px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    font-size: 0.72rem;
    font-weight: 700;
}

.workspace-settings-footer button:hover,
.workspace-settings-footer button:focus-visible {
    outline: 0;
    border-color: var(--stockly-green);
    color: var(--stockly-green);
}

.workspace-settings-footer .workspace-settings-logout {
    color: #a13939;
}

.workspace-settings-footer > span {
    margin-left: auto;
    color: var(--stockly-green);
    font-size: 0.7rem;
}

.workspace-open-with-backdrop {
    position: fixed;
    z-index: 155;
    inset: 0;
    display: grid;
    overflow-y: auto;
    padding: 22px;
    background: rgba(10, 20, 14, 0.48);
    backdrop-filter: blur(8px);
    place-items: center;
}

.workspace-open-with-dialog {
    display: flex;
    width: min(640px, 100%);
    max-height: min(820px, calc(100dvh - 44px));
    overflow: hidden;
    border: 1px solid var(--soft-line);
    border-radius: 22px;
    outline: 0;
    background: var(--surface);
    box-shadow: 0 30px 90px rgba(12, 29, 20, 0.28);
    flex-direction: column;
    animation: workspace-open-with-enter 180ms ease-out both;
}

@keyframes workspace-open-with-enter {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.985);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.workspace-open-with-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding: 22px 24px 18px;
    border-bottom: 1px solid var(--soft-line);
}

.workspace-open-with-header p {
    margin: 0 0 4px;
    color: var(--stockly-green);
    font-size: 0.68rem;
    font-weight: 750;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.workspace-open-with-header h2 {
    margin: 0;
    color: var(--ink);
    font-size: 1.35rem;
    letter-spacing: -0.03em;
}

.workspace-open-with-header button {
    display: grid;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 0;
    border-radius: 10px;
    background: color-mix(in srgb, var(--ink) 6%, transparent);
    color: var(--muted);
    cursor: pointer;
    place-items: center;
}

.workspace-open-with-header button:hover,
.workspace-open-with-header button:focus-visible {
    outline: 0;
    background: color-mix(in srgb, var(--stockly-green) 11%, transparent);
    color: var(--stockly-green);
}

.workspace-open-with-header svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-width: 1.8;
}

.workspace-open-with-content {
    overflow-y: auto;
    padding: 20px 24px;
}

.workspace-open-with-description {
    margin: 0 0 16px;
    color: var(--muted);
    font-size: 0.78rem;
    line-height: 1.5;
}

.workspace-open-with-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.workspace-open-with-type {
    display: grid;
    padding: 13px;
    border: 1px solid var(--soft-line);
    border-radius: 14px;
    background: color-mix(in srgb, var(--surface) 95%, var(--ink) 5%);
    gap: 10px;
}

.workspace-open-with-heading {
    display: flex;
    align-items: center;
    min-width: 0;
    gap: 10px;
}

.workspace-open-with-copy {
    display: grid;
    min-width: 0;
    gap: 2px;
}

.workspace-open-with-app-icon {
    display: inline-flex;
    flex: 0 0 32px;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    color: #fff;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1;
    box-shadow: 0 3px 8px rgb(15 23 42 / 14%);
}

.workspace-open-with-app-icon svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.workspace-open-with-app-icon--acrobat {
    background: #e3262e;
}

.workspace-open-with-app-icon--word {
    background: #185abd;
}

.workspace-open-with-app-icon--excel {
    background: #107c41;
}

.workspace-open-with-app-icon--powerpoint {
    background: #c43e1c;
}

.workspace-open-with-app-icon--photos {
    background: linear-gradient(135deg, #6d5dfc, #a855f7);
}

.workspace-open-with-app-icon--code {
    background: #334155;
    font-size: 0.62rem;
    letter-spacing: -0.08em;
}

.workspace-open-with-app-icon--file {
    background: #64748b;
}

.workspace-open-with-type strong {
    color: var(--ink);
    font-size: 0.8rem;
}

.workspace-open-with-type small {
    overflow: hidden;
    color: var(--muted);
    font-size: 0.66rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.workspace-open-with-type select {
    width: 100%;
    min-height: 40px;
    padding: 0 10px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--surface);
    color: var(--ink);
    font: inherit;
    font-size: 0.72rem;
}

.workspace-open-with-type select:focus-visible {
    border-color: var(--stockly-green);
    outline: 3px solid color-mix(in srgb, var(--stockly-green) 18%, transparent);
    outline-offset: 1px;
}

.workspace-open-with-note {
    margin: 14px 0 0;
    padding: 11px 12px;
    border-radius: 11px;
    background: color-mix(in srgb, var(--stockly-green) 8%, transparent);
    color: var(--muted);
    font-size: 0.72rem;
    line-height: 1.45;
}

.workspace-open-with-note strong {
    color: var(--ink);
}

.workspace-open-with-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 14px 24px;
    border-top: 1px solid var(--soft-line);
}

.workspace-open-with-footer button {
    min-height: 40px;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    font-size: 0.72rem;
    font-weight: 700;
}

.workspace-open-with-footer button:hover,
.workspace-open-with-footer button:focus-visible {
    border-color: var(--stockly-green);
    outline: 0;
    color: var(--stockly-green);
}

.workspace-open-with-footer .workspace-open-with-done {
    border-color: var(--stockly-green);
    background: var(--stockly-green);
    color: #fff;
}

.workspace-open-with-footer .workspace-open-with-done:hover,
.workspace-open-with-footer .workspace-open-with-done:focus-visible {
    background: color-mix(in srgb, var(--stockly-green) 88%, #000);
    color: #fff;
}

.connector-device-open-action {
    margin-left: 5px;
    padding: 4px 8px;
    border: 1px solid var(--stockly-green);
    border-radius: 8px;
    background: color-mix(in srgb, var(--stockly-green) 9%, var(--surface));
    color: var(--stockly-green);
    cursor: pointer;
    font: inherit;
    font-weight: 700;
}

.connector-device-open-action:hover,
.connector-device-open-action:focus-visible {
    outline: 2px solid color-mix(in srgb, var(--stockly-green) 20%, transparent);
    outline-offset: 2px;
}

.stockly-logout-backdrop {
    display: grid;
    padding: 22px;
    place-items: center;
}

.stockly-logout-dialog {
    width: min(390px, 100%);
    padding: 28px;
    border: 1px solid var(--soft-line);
    border-radius: 20px;
    outline: 0;
    background: var(--surface);
    box-shadow: 0 28px 80px rgba(12, 29, 20, 0.25);
}

.stockly-logout-dialog > p {
    margin: 0 0 5px;
    color: var(--stockly-green);
    font-size: 0.7rem;
    font-weight: 750;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.stockly-logout-dialog h2 {
    margin: 0;
    overflow: hidden;
    color: var(--ink);
    font-size: 1.3rem;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.stockly-logout-dialog > span {
    display: block;
    margin-top: 10px;
    color: var(--muted);
    font-size: 0.86rem;
    line-height: 1.5;
}

.stockly-logout-actions {
    display: flex;
    justify-content: flex-end;
    gap: 9px;
    margin-top: 23px;
}

.stockly-logout-actions button {
    min-height: 42px;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    font-size: 0.78rem;
    font-weight: 700;
}

.stockly-logout-actions form button {
    border-color: var(--stockly-green);
    background: var(--stockly-green);
    color: #ffffff;
}

.stockly-logout-actions button:hover,
.stockly-logout-actions button:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--stockly-green) 16%, transparent);
    outline-offset: 2px;
}

html[data-density="compact"] .connector-results {
    padding: 17px;
}

html[data-density="compact"] .connector-results-list {
    gap: 7px;
}

html[data-density="compact"] .connector-result-card {
    padding: 11px 13px;
}

html[data-density="compact"] .access-card,
html[data-density="compact"] .auth-card {
    padding: 28px;
}

html[data-theme="dark"] .filter-trigger,
html[data-theme="dark"] .filter-menu,
html[data-theme="dark"] .filter-modal,
html[data-theme="dark"] .connector-result-card,
html[data-theme="dark"] .connector-preview-button,
html[data-theme="dark"] .preview-modal,
html[data-theme="dark"] .preview-text-panel,
html[data-theme="dark"] .preview-document,
html[data-theme="dark"] .access-field .form-control,
html[data-theme="dark"] .auth-input {
    border-color: var(--line);
    background: #16211b;
    color: var(--ink);
}

html[data-theme="dark"] .filter-menu > button,
html[data-theme="dark"] .connector-result-copy h3,
html[data-theme="dark"] .access-field > label,
html[data-theme="dark"] .auth-label {
    color: var(--ink);
}

html[data-theme="dark"] .filter-menu > button:hover,
html[data-theme="dark"] .filter-menu > button:focus-visible,
html[data-theme="dark"] .connector-preview-button:hover,
html[data-theme="dark"] .connector-preview-button:focus-visible {
    background: #1c2b23;
}

html[data-theme="dark"] .preview-page-button {
    border-color: var(--line);
    background: #203128;
    color: #b8d9c5;
}

html[data-theme="dark"] .preview-page-button:hover,
html[data-theme="dark"] .preview-page-button:focus-visible {
    background: #263b30;
    color: var(--ink);
}

html[data-theme="dark"] .connector-result-metadata span,
html[data-theme="dark"] .connector-results-count {
    background: #203128;
    color: #b8d9c5;
}

html[data-theme="dark"] .preview-metadata {
    background: #16211b;
}

html[data-theme="dark"] .preview-metadata dt,
html[data-theme="dark"] .preview-metadata dd {
    color: var(--muted);
}

@media (max-width: 600px) {
    html,
    body {
        width: 100%;
        max-width: 100%;
        overflow-x: clip;
        overscroll-behavior-x: none;
    }

    .site-main {
        width: 100%;
        max-width: 100%;
        overflow-x: clip;
    }

    .stockly-header {
        position: absolute;
        padding:
            max(12px, env(safe-area-inset-top))
            max(16px, env(safe-area-inset-right))
            12px
            max(16px, env(safe-area-inset-left));
    }

    .stockly-header-stack {
        width: min(156px, calc(100vw - 150px));
        max-width: 156px;
    }

    .stockly-brand span {
        font-size: 0.94rem;
    }

    .stockly-brand img {
        width: 39px;
        height: 39px;
        border-radius: 11px;
    }

    .stockly-user-name {
        max-width: calc(100% - 29px);
        font-size: 0.72rem;
    }

    .filter-toolbar {
        position: absolute;
        top: max(12px, env(safe-area-inset-top));
        right: auto;
        left: max(16px, env(safe-area-inset-left));
    }

    .filter-trigger {
        min-height: 43px;
        padding-inline: 13px;
        border-radius: 12px;
        font-size: 0.86rem;
    }

    .filter-menu {
        top: calc(100% + 9px);
        width: min(315px, calc(100vw - 36px));
    }

    .system-search.has-active-search-filters .search-suggestions {
        width: calc(100% - var(--active-filter-inline-space, 102px));
    }

    .system-search.has-active-search-filters.stack-search-assist .search-suggestions {
        width: 100%;
    }

    .filter-choice-grid {
        grid-template-columns: 1fr;
    }

    .filter-choice-grid > label:last-child:nth-child(even) {
        width: 100%;
        grid-column: auto;
    }

    .active-filters {
        width: 100%;
        min-height: 0;
        align-items: flex-start;
        flex-direction: column;
        justify-content: flex-start;
        gap: 6px;
        overflow-x: visible;
        padding: 2px 1px 5px;
    }

    .active-filter {
        max-width: 100%;
    }

    .search-stage {
        min-height: 100svh;
        padding:
            max(112px, calc(env(safe-area-inset-top) + 94px))
            max(14px, env(safe-area-inset-right))
            max(34px, env(safe-area-inset-bottom))
            max(14px, env(safe-area-inset-left));
    }

    .search-stage.has-results {
        /* Keep the raised search controls below the filter and account/admin chrome. */
        padding-top: max(216px, calc(env(safe-area-inset-top) + 198px));
    }

    .search-cluster {
        gap: 10px;
    }

    .search-advanced div {
        flex-wrap: wrap;
    }

    .search-advanced div > span {
        width: 100%;
    }

    .system-search {
        height: 62px;
        border-radius: 16px;
    }

    .system-search-icon {
        width: 21px;
        height: 21px;
        margin-left: 17px;
    }

    .system-search input {
        padding-inline: 12px;
        font-size: 0.95rem;
    }

    .system-search button {
        width: 40px;
        height: 40px;
        flex-basis: 40px;
    }

    .connector-results {
        padding: 16px;
        border-radius: 16px;
    }

    .connector-results-heading {
        align-items: stretch;
        flex-direction: column;
        gap: 10px;
    }

    .connector-results-summary {
        justify-content: flex-start;
    }

    .connector-last-updated {
        white-space: normal;
    }

    .connector-result-card {
        align-items: stretch;
        flex-direction: column;
        gap: 14px;
        padding: 15px;
    }

    .connector-result-actions {
        display: grid;
        width: 100%;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 9px;
    }

    .connector-result-actions > button {
        width: 100%;
        min-height: 48px;
        padding-inline: 10px;
    }

    .connector-result-path {
        max-height: 3.2em;
        overflow: hidden;
    }

    .connector-preview-button {
        width: 100%;
    }

    .connector-result-open-status .connector-open-confirm,
    .preview-open-status .connector-open-confirm,
    .connector-device-open-action {
        display: block;
        width: 100%;
        min-height: 44px;
        margin: 8px 0 0;
    }

    .preview-modal-backdrop {
        place-items: center;
        padding:
            max(16px, env(safe-area-inset-top))
            max(16px, env(safe-area-inset-right))
            max(16px, env(safe-area-inset-bottom))
            max(16px, env(safe-area-inset-left));
    }

    .preview-modal {
        width: min(560px, 100%);
        max-height: 100%;
        padding:
            32px
            max(18px, env(safe-area-inset-right))
            max(22px, calc(env(safe-area-inset-bottom) + 14px))
            max(18px, env(safe-area-inset-left));
        border-radius: 22px;
    }

    .preview-modal-heading {
        align-items: stretch;
        flex-direction: column;
        padding-right: 0;
    }

    .preview-open-button {
        justify-content: center;
        width: 100%;
    }

    .preview-metadata {
        grid-template-columns: 1fr;
        margin-top: 16px;
        padding: 12px;
    }

    .preview-metadata dd + dt {
        margin-top: 5px;
    }

    .preview-page-button {
        width: 40px;
        height: 40px;
    }

    .preview-page-control {
        width: 100%;
        justify-content: space-between;
    }

    .preview-document {
        max-height: 48svh;
        padding: 14px;
        font-size: 0.78rem;
    }

    .filter-modal-backdrop {
        align-items: end;
        padding:
            max(10px, env(safe-area-inset-top))
            0
            0;
    }

    .filter-modal {
        width: 100%;
        max-height: calc(100dvh - max(10px, env(safe-area-inset-top)));
        padding:
            31px
            max(20px, env(safe-area-inset-right))
            max(23px, calc(env(safe-area-inset-bottom) + 14px))
            max(20px, env(safe-area-inset-left));
        border-radius: 22px 22px 0 0;
    }

    .filter-modal-close {
        top: 14px;
        right: 14px;
    }

    .filter-date-grid {
        grid-template-columns: 1fr;
    }

    .filter-modal-actions {
        margin-top: 23px;
    }

    .access-stage,
    .auth-shell {
        padding: 90px 16px;
    }

    .access-card,
    .auth-card {
        padding: 27px 22px;
        border-radius: 18px;
        box-shadow: 0 14px 38px rgba(22, 33, 27, 0.07);
    }

    .workspace-settings-header {
        padding-inline: 20px;
    }

    .workspace-settings-content {
        padding-inline: 16px;
    }

    .workspace-settings-footer {
        padding-right: max(16px, env(safe-area-inset-right));
        padding-bottom: max(16px, env(safe-area-inset-bottom));
        padding-left: max(16px, env(safe-area-inset-left));
    }

    .workspace-open-with-backdrop {
        align-items: end;
        padding:
            max(10px, env(safe-area-inset-top))
            0
            0;
    }

    .workspace-open-with-dialog {
        width: 100%;
        max-height: calc(100dvh - max(10px, env(safe-area-inset-top)));
        border-radius: 22px 22px 0 0;
    }

    .workspace-open-with-header,
    .workspace-open-with-content {
        padding-right: max(18px, env(safe-area-inset-right));
        padding-left: max(18px, env(safe-area-inset-left));
    }

    .workspace-open-with-list {
        grid-template-columns: 1fr;
    }

    .workspace-open-with-footer {
        padding-right: max(18px, env(safe-area-inset-right));
        padding-bottom: max(16px, env(safe-area-inset-bottom));
        padding-left: max(18px, env(safe-area-inset-left));
    }

    .workspace-help-group {
        align-items: stretch;
        flex-direction: column;
    }

    .workspace-help-group > button {
        text-align: center;
    }
}

@media (max-width: 380px) {
    .search-stage.has-results {
        padding-top: max(108px, calc(env(safe-area-inset-top) + 94px));
    }

    .stockly-header-stack {
        width: min(142px, calc(100vw - 142px));
        max-width: 142px;
    }

    .stockly-brand {
        gap: 7px;
    }

    .stockly-brand img {
        width: 36px;
        height: 36px;
    }

    .stockly-company-context,
    .stockly-admin-links {
        display: none;
    }

    .filter-trigger > span,
    .filter-trigger-chevron {
        display: none;
    }

    .filter-trigger {
        width: 44px;
        justify-content: center;
        padding: 0;
    }

    .system-search {
        height: 58px;
    }

    .system-search-icon {
        width: 19px;
        height: 19px;
        margin-left: 14px;
    }

    .system-search input {
        padding-inline: 9px;
        font-size: 0.9rem;
    }

    .system-search button {
        width: 38px;
        height: 38px;
        flex-basis: 38px;
        margin-right: 7px;
    }

    .connector-result-actions {
        grid-template-columns: 1fr;
    }
}

@media (hover: none) {
    .active-filter button {
        opacity: 1;
        transform: none;
    }
}

.connector-pairing-code-panel {
    border-color: rgba(55, 206, 135, 0.45);
    box-shadow: 0 16px 42px rgba(22, 146, 89, 0.14);
}

.connector-pairing-code {
    color: #54dc9d;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    font-size: clamp(1.75rem, 5vw, 3rem);
    font-weight: 800;
    letter-spacing: 0.12em;
    line-height: 1.1;
    overflow-wrap: anywhere;
}

.company-portal-access-page .app-shell {
    max-width: 620px;
}

.company-portal-access-card {
    margin-inline: auto;
    padding: clamp(24px, 5vw, 42px);
}

.company-approval-stage {
    display: grid;
    min-height: 100vh;
    padding: 120px 24px 60px;
    place-items: center;
}

.company-approval-card {
    width: min(580px, 100%);
    padding: clamp(28px, 6vw, 48px);
    border: 1px solid var(--line);
    border-radius: 24px;
    background: var(--surface);
    box-shadow: 0 20px 60px rgba(22, 33, 27, 0.09);
}

.company-approval-card h1 {
    margin-bottom: 14px;
    font-size: clamp(1.8rem, 4vw, 2.7rem);
}

.company-approval-card > p:not(.eyebrow) {
    color: var(--muted);
    line-height: 1.65;
}

.company-approval-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 24px;
}

.company-approval-actions form {
    margin: 0;
}

.branch-key-search-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    align-items: end;
}

.branch-key-search-row .btn {
    min-width: 140px;
}

.branch-key-bubble {
    display: flex;
    align-items: center;
    width: fit-content;
    max-width: 100%;
    gap: 14px;
    padding: 12px 16px;
    border: 1px solid rgba(84, 220, 157, 0.42);
    border-radius: 999px;
    background: rgba(44, 164, 111, 0.12);
    box-shadow: 0 10px 30px rgba(22, 146, 89, 0.12);
}

.branch-key-company {
    font-weight: 750;
}

.branch-key-divider {
    width: 1px;
    height: 24px;
    background: rgba(255, 255, 255, 0.18);
}

.branch-key-bubble code {
    color: #54dc9d;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.branch-key-expiry {
    color: var(--text-muted, #9aa9a1);
    font-size: 0.78rem;
    white-space: nowrap;
}

.company-branch-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.company-branch-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 9px 13px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
}

.company-branch-pill small {
    color: var(--text-muted, #9aa9a1);
}

@media (max-width: 640px) {
    .branch-key-search-row {
        grid-template-columns: 1fr;
    }

    .branch-key-search-row .btn {
        width: 100%;
    }

    .branch-key-bubble {
        align-items: flex-start;
        flex-direction: column;
        border-radius: 18px;
    }

    .branch-key-divider {
        width: 100%;
        height: 1px;
    }
}

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

    .connector-result-open-status,
    .preview-open-status {
        animation-duration: 0.01ms !important;
    }
}
.company-user-searches summary {
    cursor: pointer;
    list-style-position: outside;
}

.company-user-searches summary small {
    color: var(--bs-secondary-color);
    font-weight: 400;
    margin-left: .35rem;
    white-space: nowrap;
}

.company-user-search-list {
    display: grid;
    gap: .45rem;
    margin-top: .75rem;
    min-width: 18rem;
}

.company-user-search-list > div {
    border-left: 2px solid rgba(101, 163, 255, .45);
    display: grid;
    gap: .1rem;
    padding-left: .6rem;
}

.company-user-search-list time {
    color: var(--bs-secondary-color);
    font-size: .75rem;
}

.company-user-search-list span {
    overflow-wrap: anywhere;
}

/* Company setup purchase */
.setup-no-code-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: 13px;
    color: var(--stockly-green);
    font-size: .76rem;
    font-weight: 720;
    text-decoration: none;
}

.setup-no-code-link:hover,
.setup-no-code-link:focus-visible {
    color: #084a2a;
    text-decoration: underline;
}

.setup-purchase-success {
    display: flex;
    max-width: 560px;
    align-items: center;
    gap: 12px;
    margin-top: 24px;
    padding: 14px 16px;
    border: 1px solid rgba(11, 93, 53, .2);
    border-radius: 14px;
    background: #eef8f2;
}

.setup-purchase-success > span {
    display: grid;
    width: 34px;
    height: 34px;
    flex: 0 0 auto;
    border-radius: 10px;
    background: var(--stockly-green);
    color: #fff;
    place-items: center;
}

.setup-purchase-success > div {
    display: grid;
    gap: 2px;
}

.setup-purchase-success strong { color: #173c27; font-size: .8rem; }
.setup-purchase-success small { color: #668072; font-size: .69rem; }
.setup-purchase-success + .setup-code-field { margin-top: 22px; }

.setup-purchase-page {
    position: relative;
    min-height: 100dvh;
    overflow: hidden;
    padding: 48px 24px;
    background:
        radial-gradient(circle at 12% 8%, rgba(45, 166, 99, .12), transparent 28%),
        linear-gradient(rgba(11, 93, 53, .025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(11, 93, 53, .025) 1px, transparent 1px),
        #f4f8f5;
    background-size: auto, 48px 48px, 48px 48px, auto;
}

.setup-purchase-orb {
    position: absolute;
    border-radius: 50%;
    background: rgba(33, 166, 99, .09);
    pointer-events: none;
}

.setup-purchase-orb-one { top: -180px; right: -120px; width: 430px; height: 430px; }
.setup-purchase-orb-two { bottom: -230px; left: -170px; width: 500px; height: 500px; }

.setup-purchase-shell {
    position: relative;
    z-index: 1;
    width: min(1120px, 100%);
    margin-inline: auto;
}

.setup-purchase-shell > .onboarding-back {
    display: inline-block;
    margin-bottom: 34px;
}

.setup-purchase-grid {
    display: grid;
    align-items: center;
    gap: clamp(42px, 8vw, 100px);
    grid-template-columns: minmax(0, .88fr) minmax(420px, 1fr);
}

.setup-purchase-copy h1 {
    max-width: 610px;
    margin: 10px 0 20px;
    color: #14291d;
    font-size: clamp(2.7rem, 6vw, 5.2rem);
    font-weight: 690;
    letter-spacing: -.065em;
    line-height: .98;
}

.setup-purchase-copy > p:not(.eyebrow, .setup-purchase-help) {
    max-width: 590px;
    color: #65766c;
    font-size: 1rem;
    line-height: 1.72;
}

.setup-purchase-price {
    display: grid;
    width: fit-content;
    margin: 28px 0;
    grid-template-columns: auto auto;
    align-items: baseline;
    column-gap: 18px;
}

.setup-purchase-price span { color: #4b6255; font-size: .76rem; font-weight: 730; }
.setup-purchase-price strong { color: var(--stockly-green); font-size: 2rem; letter-spacing: -.04em; }
.setup-purchase-price small { grid-column: 1 / -1; color: #87958d; font-size: .65rem; }

.setup-purchase-includes {
    display: grid;
    margin: 0;
    padding: 0;
    color: #344b3e;
    font-size: .77rem;
    font-weight: 620;
    gap: 12px;
    list-style: none;
}

.setup-purchase-includes span { margin-right: 9px; color: var(--stockly-green); }
.setup-purchase-help { margin-top: 26px; color: #74837b; font-size: .72rem; }
.setup-purchase-help a { color: var(--stockly-green); font-weight: 720; }

.setup-purchase-card {
    min-height: 590px;
    padding: clamp(28px, 5vw, 46px);
    border: 1px solid rgba(20, 64, 42, .12);
    border-radius: 28px;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 30px 85px rgba(20, 64, 42, .12);
}

.setup-purchase-card-heading {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 28px;
    padding-bottom: 22px;
    border-bottom: 1px solid #e4ebe7;
}

.setup-purchase-lock {
    display: grid;
    width: 42px;
    height: 42px;
    flex: 0 0 auto;
    border-radius: 13px;
    background: #eaf6ef;
    font-size: .9rem;
    place-items: center;
}

.setup-purchase-card-heading .eyebrow { margin: 0 0 2px; font-size: .58rem; }
.setup-purchase-card-heading h2 { margin: 0; color: #1e3427; font-size: 1.35rem; font-weight: 680; }
.setup-purchase-card-heading > small { margin-left: auto; color: #8a978f; font-size: .62rem; }

.setup-purchase-form,
.setup-purchase-step { display: grid; gap: 18px; }

.setup-purchase-step.is-active { animation: setup-step-in 220ms ease both; }

.setup-purchase-step-label {
    display: flex;
    align-items: center;
    gap: 9px;
    color: #52665a;
    font-size: .68rem;
    font-weight: 760;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.setup-purchase-step-label span {
    display: grid;
    width: 25px;
    height: 25px;
    border-radius: 8px;
    background: var(--stockly-green);
    color: #fff;
    font-size: .62rem;
    place-items: center;
}

.setup-purchase-continue,
.setup-purchase-pay { width: 100%; margin-top: 4px; }

.setup-purchase-company-summary {
    display: grid;
    padding: 12px 14px;
    border: 1px solid #dce7e0;
    border-radius: 12px;
    background: #f6faf7;
    grid-template-columns: 1fr auto;
}

.setup-purchase-company-summary span { color: #829087; font-size: .6rem; text-transform: uppercase; }
.setup-purchase-company-summary strong { color: #25402f; font-size: .8rem; }
.setup-purchase-company-summary button { grid-column: 2; grid-row: 1 / 3; border: 0; background: none; color: var(--stockly-green); font-size: .68rem; font-weight: 720; }
.setup-stripe-element { min-height: 160px; padding: 3px 0; }
.setup-purchase-secure { color: #89968f; font-size: .63rem; line-height: 1.5; text-align: center; }

.setup-purchase-message,
.setup-purchase-unavailable {
    padding: 13px 15px;
    border: 1px solid #efcaca;
    border-radius: 12px;
    background: #fff5f5;
    color: #952f2f;
    font-size: .72rem;
    line-height: 1.5;
}

.setup-purchase-message.is-success { border-color: #c8e4d3; background: #eff9f3; color: #23633e; }
.setup-purchase-unavailable { display: grid; margin-top: 45px; padding: 24px; gap: 8px; }
.setup-purchase-unavailable p { margin: 0; }
.setup-purchase-unavailable a { width: fit-content; color: var(--stockly-green); font-weight: 750; }

/* Modern public help center */
.help-modern-body { background: #f5f8f6; }
.help-modern-page { min-height: 100dvh; color: #162a1e; }

.help-modern-hero {
    min-height: 500px;
    padding: 24px max(24px, calc((100vw - 1180px) / 2));
    background:
        radial-gradient(circle at 78% 18%, rgba(70, 193, 124, .24), transparent 30%),
        radial-gradient(circle at 12% 100%, rgba(70, 193, 124, .14), transparent 30%),
        #0b4f30;
    color: #fff;
}

.help-modern-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.help-modern-brand { display: flex; align-items: center; gap: 9px; color: #fff; font-size: 1rem; font-weight: 760; text-decoration: none; }
.help-modern-brand img { width: 32px; height: 32px; object-fit: contain; filter: brightness(0) invert(1); }
.help-modern-nav > div { display: flex; align-items: center; gap: 10px; }
.help-modern-nav > div a { padding: 10px 15px; color: rgba(255,255,255,.82); font-size: .72rem; font-weight: 680; text-decoration: none; }
.help-modern-nav > div .help-modern-login { border: 1px solid rgba(255,255,255,.35); border-radius: 10px; color: #fff; }

.help-modern-hero-copy { display: grid; max-width: 760px; margin: 85px auto 0; text-align: center; justify-items: center; }
.help-modern-hero-copy .eyebrow { color: #8de1b2; }
.help-modern-hero h1 { margin: 10px 0 15px; color: #fff; font-size: clamp(2.5rem, 6vw, 4.6rem); font-weight: 690; letter-spacing: -.06em; line-height: 1; }
.help-modern-hero-copy > p:not(.eyebrow, .help-modern-search-status) { max-width: 600px; margin: 0; color: rgba(255,255,255,.7); line-height: 1.65; }

.help-modern-search {
    display: grid;
    width: min(660px, 100%);
    min-height: 66px;
    align-items: center;
    margin-top: 28px;
    padding: 0 18px;
    border: 1px solid rgba(255,255,255,.22);
    border-radius: 17px;
    background: #fff;
    box-shadow: 0 22px 55px rgba(0,0,0,.16);
    grid-template-columns: 24px 1fr auto;
    gap: 12px;
}

.help-modern-search svg { width: 22px; fill: none; stroke: #648071; stroke-linecap: round; stroke-width: 1.7; }
.help-modern-search input { min-width: 0; border: 0; outline: 0; color: #20352a; font-size: .88rem; }
.help-modern-search input::placeholder { color: #96a29b; }
.help-modern-search kbd { padding: 3px 8px; border: 1px solid #dce5df; border-radius: 7px; background: #f1f5f2; color: #728078; box-shadow: none; }
.help-modern-search-status { margin: 10px 0 0; color: rgba(255,255,255,.55); font-size: .66rem; }

.help-modern-shell { width: min(1180px, calc(100% - 48px)); margin: 0 auto; }
.help-path-section { padding: 84px 0 95px; }
.help-modern-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 32px; }
.help-modern-heading .eyebrow { margin-bottom: 8px; }
.help-modern-heading h2 { max-width: 650px; margin: 0; color: #182e21; font-size: clamp(2rem, 4vw, 3.3rem); font-weight: 680; letter-spacing: -.055em; line-height: 1.05; }
.help-modern-heading > p { max-width: 360px; margin: 0; color: #77857d; font-size: .76rem; line-height: 1.6; }

.help-path-grid { display: grid; gap: 15px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.help-path-card { display: flex; min-height: 300px; flex-direction: column; align-items: flex-start; padding: 25px; border: 1px solid #dce5df; border-radius: 20px; background: #fff; box-shadow: 0 12px 35px rgba(24, 65, 42, .04); }
.help-path-card[hidden] { display: none; }
.help-path-featured { background: #103d28; border-color: #103d28; color: #fff; }
.help-path-number { display: grid; width: 38px; height: 38px; border-radius: 11px; background: #eff7f2; color: var(--stockly-green); font-size: .65rem; font-weight: 800; place-items: center; }
.help-path-featured .help-path-number { background: rgba(255,255,255,.12); color: #8de1b2; }
.help-path-card h3 { margin: 28px 0 10px; color: #1e3527; font-size: 1.12rem; font-weight: 700; letter-spacing: -.025em; }
.help-path-featured h3 { color: #fff; }
.help-path-card p { margin: 0 0 24px; color: #74827a; font-size: .74rem; line-height: 1.6; }
.help-path-featured p { color: rgba(255,255,255,.66); }
.help-path-card > a,
.help-path-card > div { margin-top: auto; }
.help-path-card a { color: var(--stockly-green); font-size: .72rem; font-weight: 750; text-decoration: none; }
.help-path-featured a { color: #8de1b2; }
.help-path-featured > div { display: flex; flex-wrap: wrap; gap: 12px; }
.help-path-featured .is-secondary { color: rgba(255,255,255,.65); }

.help-faq-section { padding: 90px 0; border-top: 1px solid #dce5df; }
.help-faq-layout { display: grid; align-items: start; gap: 45px; grid-template-columns: 210px minmax(0, 1fr); }
.help-topic-nav { position: sticky; top: 110px; display: grid; padding: 8px 0; border-left: 1px solid #d6e0da; gap: 3px; }
.help-topic-nav a { padding: 9px 16px; color: #74827a; font-size: .7rem; font-weight: 650; text-decoration: none; }
.help-topic-nav a:hover { color: var(--stockly-green); }
.help-faq-groups { display: grid; gap: 20px; }
.help-faq-group { overflow: hidden; border: 1px solid #dce5df; border-radius: 20px; background: #fff; }
.help-faq-group > header { display: flex; align-items: center; gap: 13px; padding: 22px 24px; background: #f8fbf9; }
.help-faq-group > header > span { display: grid; width: 38px; height: 38px; border-radius: 11px; background: #e8f5ed; color: var(--stockly-green); font-size: .8rem; font-weight: 800; place-items: center; }
.help-faq-group h3 { margin: 0; color: #20382a; font-size: .95rem; font-weight: 720; }
.help-faq-group header p { margin: 2px 0 0; color: #849189; font-size: .64rem; }
.help-faq-group details { border-top: 1px solid #e5ebe7; }
.help-faq-group details[hidden] { display: none; }
.help-faq-group summary { position: relative; padding: 20px 55px 20px 24px; color: #2c4135; cursor: pointer; font-size: .79rem; font-weight: 690; list-style: none; }
.help-faq-group summary::-webkit-details-marker { display: none; }
.help-faq-group summary::after { position: absolute; top: 17px; right: 23px; color: var(--stockly-green); content: "+"; font-size: 1.2rem; font-weight: 400; }
.help-faq-group details[open] summary::after { content: "−"; }
.help-faq-group details > p { margin: -4px 55px 21px 24px; color: #6d7d74; font-size: .73rem; line-height: 1.7; }
.help-faq-group details a { color: var(--stockly-green); font-weight: 700; }
.help-no-results { padding: 35px; border: 1px dashed #bfcfc5; border-radius: 18px; text-align: center; }
.help-no-results p { color: #74827a; font-size: .74rem; }
.help-no-results a { color: var(--stockly-green); font-size: .74rem; font-weight: 740; }

.help-contact-card { display: flex; align-items: center; justify-content: space-between; gap: 35px; margin: 25px 0 90px; padding: clamp(32px, 6vw, 60px); border-radius: 26px; background: #0d4c2f; color: #fff; }
.help-contact-card .eyebrow { color: #8de1b2; }
.help-contact-card h2 { max-width: 650px; margin: 8px 0; color: #fff; font-size: clamp(1.8rem, 4vw, 3rem); font-weight: 680; letter-spacing: -.05em; }
.help-contact-card p:not(.eyebrow) { margin: 0; color: rgba(255,255,255,.65); font-size: .76rem; }
.help-contact-card > div:last-child { display: flex; flex: 0 0 auto; gap: 10px; }
.help-contact-card a { padding: 13px 18px; border-radius: 11px; font-size: .72rem; font-weight: 740; text-decoration: none; }
.help-contact-primary { background: #fff; color: var(--stockly-green); }
.help-contact-secondary { border: 1px solid rgba(255,255,255,.3); color: #fff; }

.help-modern-footer { display: flex; align-items: center; justify-content: space-between; padding: 25px max(24px, calc((100vw - 1180px) / 2)); border-top: 1px solid #dbe4de; color: #87938c; font-size: .65rem; }
.help-modern-footer nav { display: flex; gap: 18px; }
.help-modern-footer a { color: #66776d; text-decoration: none; }

@media (max-width: 940px) {
    .setup-purchase-grid { grid-template-columns: 1fr; }
    .setup-purchase-copy { text-align: center; }
    .setup-purchase-copy > p,
    .setup-purchase-price { margin-inline: auto; }
    .setup-purchase-includes { width: fit-content; margin-inline: auto; text-align: left; }
    .help-path-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .help-contact-card { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 680px) {
    .setup-purchase-page { padding: 28px 16px; }
    .setup-purchase-grid { gap: 32px; }
    .setup-purchase-card { min-height: 0; padding: 24px 20px; border-radius: 21px; }
    .setup-purchase-card-heading > small { display: none; }
    .help-modern-hero { min-height: 450px; padding-inline: 18px; }
    .help-modern-nav > div a:first-child { display: none; }
    .help-modern-hero-copy { margin-top: 70px; }
    .help-modern-search { min-height: 58px; }
    .help-modern-shell { width: min(100% - 28px, 1180px); }
    .help-modern-heading { align-items: flex-start; flex-direction: column; }
    .help-path-grid { grid-template-columns: 1fr; }
    .help-path-card { min-height: 245px; }
    .help-faq-layout { grid-template-columns: 1fr; }
    .help-topic-nav { position: static; overflow-x: auto; padding: 0 0 10px; border-left: 0; grid-auto-flow: column; grid-auto-columns: max-content; }
    .help-topic-nav a { padding: 8px 11px; border: 1px solid #dce5df; border-radius: 9px; }
    .help-contact-card > div:last-child { width: 100%; flex-direction: column; }
    .help-contact-card a { text-align: center; }
}
