.cms-expert-page {
    --cms-ink: #102a35;
    --cms-muted: #58717b;
    --cms-line: #dce8eb;
    --cms-teal: #0f766e;
    --cms-teal-dark: #115e59;
    color: var(--cms-ink);
}

.cms-hero {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    padding: clamp(4.25rem, 8vw, 7.25rem) max(1.5rem, calc((100vw - 1260px) / 2));
    color: #f3fbfc;
    background: linear-gradient(118deg, #0c2632 0%, #123d4a 52%, #126e69 100%);
}

.cms-hero-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 220px;
    gap: 3rem;
    align-items: end;
    max-width: 1260px;
    margin: 0 auto;
}

.cms-hero-copy { max-width: 850px; }
.cms-eyebrow { display: inline-flex; align-items: center; gap: .55rem; color: #66ded0; font-size: .76rem; font-weight: 800; letter-spacing: .14em; line-height: 1.3; text-transform: uppercase; }
.cms-hero h1 { margin: 1.15rem 0 .8rem; color: #fff; font-size: clamp(2.8rem, 6vw, 5rem); font-weight: 760; letter-spacing: -.055em; line-height: 1.02; }
.cms-hero-copy > p { max-width: 690px; margin: 0; color: #d3e5e9; font-size: clamp(1.05rem, 1.6vw, 1.25rem); line-height: 1.7; }
.cms-platform-logos { display: flex; flex-wrap: wrap; align-items: center; gap: 1.1rem 1.65rem; margin-top: 2rem; }
.cms-platform-logos > span { display: inline-flex; align-items: center; gap: .55rem; color: #fff; font-size: .9rem; font-weight: 680; letter-spacing: -.01em; }
.cms-platform-logos img { width: 28px; height: 28px; object-fit: contain; }
.cms-hero-aside { display: flex; flex-direction: column; align-items: flex-start; gap: .35rem; padding: 1.3rem 1.4rem; border: 1px solid rgb(221 249 249 / 19%); border-radius: 20px; background: rgb(255 255 255 / 7%); backdrop-filter: blur(12px); }
.cms-private-badge { display: inline-flex; align-items: center; gap: .45rem; margin-bottom: .65rem; color: #b8eee7; font-size: .73rem; font-weight: 750; letter-spacing: .07em; text-transform: uppercase; }
.cms-hero-aside > strong { color: #fff; font-size: 2.8rem; line-height: 1; }
.cms-hero-aside > span:not(.cms-private-badge) { color: #d4e9ec; font-size: .88rem; }
.cms-hero-aside form { margin-top: .85rem; }
.cms-logout-button { padding: .52rem .75rem; border: 1px solid rgb(222 249 247 / 35%); border-radius: 9px; background: transparent; color: #f0fbfb; font-size: .8rem; font-weight: 700; cursor: pointer; }
.cms-logout-button:hover { background: rgb(255 255 255 / 10%); }
.cms-hero-orb { position: absolute; z-index: 0; width: 370px; height: 370px; border-radius: 50%; background: rgb(64 213 191 / 13%); filter: blur(1px); pointer-events: none; }
.cms-hero-orb-one { top: -270px; right: 18%; }
.cms-hero-orb-two { bottom: -330px; right: -30px; width: 520px; height: 520px; background: rgb(177 235 228 / 8%); }

.cms-scope-section,
.cms-projects-section { max-width: 1320px; margin: 0 auto; padding: clamp(3.25rem, 6vw, 5.25rem) 1.5rem; }
.cms-scope-section { padding-bottom: 2rem; }
.cms-section-heading { display: grid; grid-template-columns: minmax(0, .95fr) minmax(320px, 1.05fr); gap: 3rem; align-items: end; }
.cms-section-heading h2 { margin: .5rem 0 .6rem; color: #102a35; font-size: clamp(1.9rem, 3.5vw, 2.7rem); font-weight: 740; letter-spacing: -.04em; line-height: 1.12; }
.cms-section-heading p { max-width: 680px; margin: 0; color: var(--cms-muted); font-size: 1rem; line-height: 1.7; }
.cms-section-heading .cms-eyebrow { color: var(--cms-teal); }
.cms-scope-chips { display: flex; flex-wrap: wrap; justify-content: flex-start; gap: .65rem; }
.cms-scope-chips span { display: inline-flex; align-items: center; gap: .48rem; padding: .7rem .9rem; border: 1px solid var(--cms-line); border-radius: 12px; background: #fff; color: #24414b; font-size: .83rem; font-weight: 680; box-shadow: 0 4px 14px rgb(20 58 69 / 4%); }
.cms-scope-chips i { color: var(--cms-teal); font-size: 1.05rem; }
.cms-custom-build-note { margin-top: 1.35rem; padding: 1.05rem 1.2rem; border-left: 3px solid #81d3c8; border-radius: 0 12px 12px 0; background: #f3f8f9; }
.cms-custom-build-note strong { display: block; margin-bottom: .3rem; color: #183640; font-size: .9rem; font-weight: 760; }
.cms-custom-build-note p { max-width: 1120px; margin: 0; color: #4d6872; font-size: .84rem; line-height: 1.65; }

.cms-projects-section { padding-top: 3.6rem; }
.cms-projects-heading { align-items: end; margin-bottom: 2rem; }
.cms-projects-heading > p { justify-self: end; max-width: 420px; padding-left: 1rem; border-left: 2px solid #81d3c8; }
.cms-tabs { display: flex; gap: .5rem; padding: .48rem; margin-bottom: 1.55rem; border: 1px solid #e0eaed; border-radius: 16px; background: #f3f8f9; overflow-x: auto; scrollbar-width: thin; }
.cms-tab { display: inline-flex; flex: 0 0 auto; align-items: center; gap: .65rem; min-height: 48px; padding: .55rem .95rem; border: 0; border-radius: 11px; background: transparent; color: #4d6872; font: inherit; font-size: .91rem; font-weight: 720; cursor: pointer; transition: background .18s ease, color .18s ease, box-shadow .18s ease; }
.cms-tab:hover { color: var(--cms-ink); background: #e5eff1; }
.cms-tab.is-active { color: #fff; background: #123c48; box-shadow: 0 5px 14px rgb(18 60 72 / 18%); }
.cms-tab:focus-visible,
.cms-button:focus-visible,
.cms-visit-link:focus-visible,
.cms-logout-button:focus-visible { outline: 3px solid #37b8a8; outline-offset: 3px; }
.cms-tab-count { display: inline-grid; min-width: 1.45rem; height: 1.45rem; place-items: center; padding: 0 .3rem; border-radius: 999px; background: rgb(17 94 89 / 10%); color: inherit; font-size: .72rem; line-height: 1; }
.cms-tab.is-active .cms-tab-count { background: rgb(255 255 255 / 18%); }
.cms-project-panel[hidden] { display: none; }
.cms-platform-intro { max-width: 920px; margin: 0 0 1.2rem; padding: .9rem 1.05rem; border-left: 2px solid #81d3c8; border-radius: 0 12px 12px 0; background: #f5f9f9; color: #4d6872; font-size: .88rem; line-height: 1.65; }
.cms-builders { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; margin: 0 0 1.35rem; padding: 1rem 1.1rem; border: 1px solid #e2ebed; border-radius: 14px; background: #fff; }
.cms-builders-heading { display: grid; gap: .25rem; }
.cms-builders-heading strong { color: #183640; font-size: .88rem; font-weight: 760; }
.cms-builders-heading > span { color: #718891; font-size: .76rem; }
.cms-builders-list { display: flex; flex-wrap: wrap; align-items: center; gap: .65rem 1rem; }
.cms-builder { display: inline-flex; align-items: center; gap: .45rem; color: #35525d; font-size: .78rem; font-weight: 720; white-space: nowrap; }
.cms-builder img { width: 28px; height: 28px; object-fit: contain; }
.cms-builder-divi img { border-radius: 50%; }
.cms-builder-beaver { gap: 0; }
.cms-builder-beaver img { width: 128px; height: auto; border-radius: 0; }
.cms-builder-gutenberg img { border-radius: 8px; }
.cms-project-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; }
.cms-project-card { overflow: hidden; border: 1px solid #dfe9eb; border-radius: 18px; background: #fff; box-shadow: 0 8px 26px rgb(18 53 65 / 6%); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.cms-project-card:hover { transform: translateY(-4px); border-color: #b7d5d6; box-shadow: 0 18px 38px rgb(18 53 65 / 11%); }
.cms-project-preview { position: relative; display: grid; min-height: 205px; aspect-ratio: 16 / 9; place-items: center; overflow: hidden; background: linear-gradient(135deg, #e4eff1 0%, #d7e7e8 52%, #c4dedc 100%); }
.cms-thumbnail-fallback { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; gap: .45rem; padding: 1rem; color: #23434d; background: linear-gradient(145deg, #eff6f7, #d5e8e8); }
.cms-thumbnail-fallback strong { margin-top: .65rem; font-size: clamp(.9rem, 1.5vw, 1.25rem); letter-spacing: -.02em; }
.cms-thumbnail-fallback > span:last-child { color: #58717b; font-size: .78rem; }
.cms-browser-dots { display: flex; gap: .26rem; }
.cms-browser-dots i { width: .42rem; height: .42rem; border-radius: 50%; background: #a8c4c8; }
.cms-browser-dots i:first-child { background: #e8a8a0; }
.cms-site-screenshot { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top center; background: #e6eff0; opacity: 0; transition: opacity .35s ease, transform .5s ease; }
.cms-site-screenshot.is-ready { opacity: 1; }
.cms-project-card:hover .cms-site-screenshot { transform: scale(1.025); }
.cms-project-preview.has-preview-error .cms-site-screenshot { display: none; }
.cms-project-favicon { position: absolute; left: 1rem; bottom: -1px; display: grid; width: 48px; height: 48px; place-items: center; border: 4px solid #fff; border-bottom: 0; border-radius: 13px 13px 0 0; background: #fff; box-shadow: 0 -2px 10px rgb(16 42 53 / 8%); }
.cms-project-favicon img { width: 28px; height: 28px; object-fit: contain; }
.cms-west-edge-tag { position: absolute; top: .85rem; right: .85rem; padding: .42rem .65rem; border: 1px solid rgb(255 255 255 / 28%); border-radius: 999px; background: rgb(16 42 53 / 78%); color: #f4ffff; font-size: .69rem; font-weight: 750; letter-spacing: .03em; backdrop-filter: blur(8px); }
.cms-project-content { padding: 1.05rem 1.15rem 1.15rem; }
.cms-project-topline { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding-left: 3.35rem; color: var(--cms-teal); font-size: .68rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.cms-staging-tag { padding: .26rem .4rem; border-radius: 6px; background: #fff4dc; color: #8b5a13; font-size: .61rem; letter-spacing: .01em; }
.cms-project-content h3 { margin: .7rem 0 .15rem; color: #14313c; font-size: 1.12rem; font-weight: 740; letter-spacing: -.025em; line-height: 1.35; }
.cms-project-content h3 span { color: #718891; font-size: .88em; font-weight: 550; }
.cms-project-domain { overflow: hidden; margin: 0 0 .95rem; color: #718891; font-size: .77rem; text-overflow: ellipsis; white-space: nowrap; }
.cms-project-meta { display: grid; gap: .65rem; margin: 0; padding-top: .85rem; border-top: 1px solid #edf2f3; }
.cms-project-meta > div { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: .5rem; }
.cms-project-meta dt { color: #718891; font-size: .69rem; font-weight: 750; letter-spacing: .04em; text-transform: uppercase; }
.cms-project-meta dd { margin: 0; color: #35525d; font-size: .78rem; line-height: 1.45; }
.cms-project-meta dd.cms-project-description { color: #405e68; font-size: .82rem; line-height: 1.62; }
.cms-visit-link { display: inline-flex; align-items: center; gap: .45rem; margin-top: 1rem; color: #0f716b; font-size: .83rem; font-weight: 760; text-decoration: none; }
.cms-visit-link:hover { color: #0a4f4b; text-decoration: underline; text-underline-offset: 3px; }
.cms-visit-link i { font-size: 1rem; }
.cms-staging-preview { display: flex; flex-direction: column; align-items: center; gap: .55rem; color: #65818a; font-size: .8rem; font-weight: 700; }
.cms-staging-preview i { display: grid; width: 3rem; height: 3rem; place-items: center; border: 1px solid #cbdde0; border-radius: 1rem; background: #fff; color: #54747d; font-size: 1.4rem; box-shadow: 0 6px 20px rgb(27 67 77 / 8%); }
.cms-empty-state { display: flex; min-height: 250px; flex-direction: column; align-items: center; justify-content: center; padding: 2rem; border: 1px dashed #bfd3d7; border-radius: 18px; background: #f8fbfb; text-align: center; }
.cms-empty-icon { display: grid; width: 3.25rem; height: 3.25rem; place-items: center; margin-bottom: .7rem; border-radius: 15px; background: #e2f3f0; color: var(--cms-teal); font-size: 1.65rem; }
.cms-empty-state h3 { max-width: 440px; margin: .4rem 0; color: #24424c; font-size: 1.08rem; }
.cms-empty-state p { max-width: 500px; margin: .25rem 0 0; color: var(--cms-muted); font-size: .9rem; line-height: 1.6; }
.cms-pending-heading { display: block; margin: .3rem 0 1.2rem; }
.cms-projects-pending { margin-top: 2.5rem; padding-top: 1.6rem; border-top: 1px solid var(--cms-line); }
.cms-pending-heading h3 { margin: 0 0 .35rem; color: #183640; font-size: 1.25rem; }
.cms-pending-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
.cms-pending-card { display: flex; align-items: center; gap: .9rem; min-width: 0; padding: 1rem; border: 1px solid #e0e9eb; border-radius: 14px; background: #fff; }
.cms-pending-icon { display: grid; flex: 0 0 auto; width: 42px; height: 42px; place-items: center; border-radius: 12px; background: #edf4f5; color: #42616c; font-size: 1.3rem; }
.cms-pending-card h3 { margin: 0; color: #1b3944; font-size: .92rem; }
.cms-pending-card p { margin: .2rem 0 0; color: #708790; font-size: .75rem; }
.cms-pending-status { flex: 0 0 auto; margin-left: auto; padding: .35rem .5rem; border-radius: 7px; background: #f2f5f5; color: #61777f; font-size: .66rem; font-weight: 750; }
.cms-attribution-note { margin: 1.3rem 0 0; color: #708790; font-size: .76rem; line-height: 1.55; }

.cms-access-section { display: grid; min-height: min(730px, calc(100vh - 5rem)); place-items: center; padding: 4rem 1.5rem; background: radial-gradient(ellipse at 18% 16%, rgb(15 118 110 / 9%) 0, transparent 34%), linear-gradient(180deg, #f8fbfb 0%, #eef5f4 100%); }
.cms-access-card { position: relative; width: min(100%, 500px); padding: clamp(1.6rem, 5vw, 2.7rem); border: 1px solid #e2e8f0; border-radius: 20px; background: #fff; box-shadow: 0 20px 55px rgb(15 23 42 / 10%), 0 2px 8px rgb(15 23 42 / 4%); text-align: left; }
.cms-access-card::before { position: absolute; top: -1px; left: 2rem; width: 3.5rem; height: 3px; border-radius: 0 0 4px 4px; background: var(--cms-teal); content: ""; }
.cms-access-card > .cms-eyebrow { justify-content: flex-start; color: var(--cms-teal); }
.cms-lock-mark { display: grid; width: 58px; height: 58px; place-items: center; margin: 1.4rem 0 1rem; border: 1px solid #cce8e3; border-radius: 17px; background: #eaf7f4; color: var(--cms-teal); font-size: 1.65rem; }
.cms-access-card h1 { margin: .45rem 0 .65rem; color: #111827; font-size: clamp(1.8rem, 5vw, 2.1rem); font-weight: 760; letter-spacing: -.045em; }
.cms-access-card > p { max-width: 390px; margin: 0 0 1.5rem; color: #64748b; font-size: .95rem; line-height: 1.65; }
.cms-login-form { display: grid; gap: .65rem; text-align: left; }
.cms-login-form label { color: #2b4a54; font-size: .82rem; font-weight: 730; }
.cms-login-form input[type="password"] { width: 100%; min-height: 50px; padding: .75rem .9rem; border: 1px solid #cbdadd; border-radius: 10px; background: #fff; color: #14313c; font: inherit; font-size: .95rem; }
.cms-login-form input[type="password"]:focus { border-color: var(--cms-teal); outline: 3px solid rgb(15 118 110 / 16%); }
.cms-button { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 50px; margin-top: .35rem; border: 0; border-radius: 10px; font: inherit; font-weight: 750; cursor: pointer; }
.cms-button-primary { background: #123c48; color: white; }
.cms-button-primary:hover { background: var(--cms-teal-dark); }
.cms-button:disabled { cursor: not-allowed; opacity: .55; }
.cms-form-message { margin: 1rem 0; padding: .7rem .8rem; border: 1px solid #edc9c4; border-radius: 10px; background: #fff4f2; color: #9c3c31; font-size: .83rem; line-height: 1.45; }
.cms-access-card .cms-session-note { margin: 1.15rem 0 0; color: #94a3b8; font-size: .74rem; }

@media (max-width: 1000px) {
    .cms-project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .cms-hero-inner { grid-template-columns: minmax(0, 1fr) 185px; gap: 2rem; }
}

@media (max-width: 720px) {
    .cms-hero { padding: 4rem 1.25rem 3.25rem; }
    .cms-hero-inner { grid-template-columns: 1fr; gap: 1.5rem; }
    .cms-hero h1 { font-size: clamp(2.8rem, 14vw, 4rem); }
    .cms-hero-aside { display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: .8rem; padding: .85rem 1rem; }
    .cms-hero-aside .cms-private-badge { grid-column: 1 / -1; margin: 0 0 .4rem; }
    .cms-hero-aside > strong { font-size: 1.9rem; }
    .cms-hero-aside form { grid-column: 2; grid-row: 2; justify-self: end; margin: 0; }
    .cms-scope-section, .cms-projects-section { padding-right: 1.1rem; padding-left: 1.1rem; }
    .cms-scope-section { padding-top: 2.8rem; }
    .cms-section-heading { grid-template-columns: 1fr; gap: 1.2rem; }
    .cms-projects-heading > p { justify-self: start; padding-left: .8rem; }
    .cms-scope-chips { gap: .5rem; }
    .cms-scope-chips span { padding: .58rem .7rem; font-size: .76rem; }
    .cms-project-grid { grid-template-columns: 1fr; gap: .9rem; }
    .cms-project-preview { min-height: 190px; }
    .cms-pending-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    .cms-tab, .cms-project-card, .cms-site-screenshot { transition: none; }
    .cms-project-card:hover, .cms-project-card:hover .cms-site-screenshot { transform: none; }
}
