/* Shared visual system: midnight, ivory and restrained champagne gold. */
:root {
    --ink: #172a38;
    --muted: #65717a;
    --paper: #f5f5f2;
    --card: #fff;
    --teal: #806b43;
    --lime: #b59a65;
    --line: #e2e5e5;
    --gold: #b59a65;
    --gold-light: #dbcba8;
    --gold-wash: #f5f0e5;
    --sidebar: #14232e;
    --danger: #a12c34;
}
body { font-family: "Segoe UI", Arial, sans-serif; font-size: 15px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
h1, h2, h3 { letter-spacing: -.025em; line-height: 1.25; }
h1 { font-weight: 650; }
h2 { font-size: 1.3rem; font-weight: 650; }
h3 { font-size: 1.05rem; font-weight: 650; }
p { margin: .5rem 0 1rem; }
button, input, select, textarea { font: inherit; }
a, a:hover, a:focus, a:active { text-decoration: none; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; border-radius: 4px; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid #b59a6533; border-color: #927b4f; }
input, select, textarea { border: 1px solid #cbd1d4; border-radius: 6px; padding: .7rem .85rem; min-height: 44px; color: var(--ink); transition: border-color .15s; }
input[type=checkbox] { min-height: auto; accent-color: var(--ink); }
input:disabled, select:disabled, textarea:disabled { background: #f3f4f4; color: var(--muted); cursor: not-allowed; }
.card { border-radius: 10px; padding: 1.75rem; box-shadow: 0 2px 5px #162a3803; }
.card h2:first-child, .card h3:first-child { margin-top: 0; }
.button, .account-shell button, .admin-content button { border-radius: 6px; min-height: 42px; padding: .65rem 1.05rem; font-weight: 600; font-size: .9rem; background: var(--ink); color: #fff; transition: background .15s, border-color .15s; }
.button:hover, .button:focus, .account-shell button:hover, .admin-content button:hover { background: #304756; color: white; }
.button-small { min-height: 36px; padding: .5rem .85rem; }
.button-quiet { background: #fff; border: 1px solid #ccd2d5; color: var(--ink); }
.button-quiet:hover, .button-quiet:focus { background: var(--gold-wash); color: var(--ink); border-color: #b9a77f; }
button:disabled, .button:disabled { opacity: .5; cursor: not-allowed; }
.eyebrow { margin: 0 0 .55rem; color: var(--teal); font-size: .72rem; letter-spacing: .13em; text-transform: uppercase; font-weight: 700; }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link:focus { z-index: 100; }
body a.brand:any-link { color: var(--ink); }
.brand { font-size: 1.2rem; font-weight: 500; letter-spacing: -.03em; }
.brand strong { color: var(--teal); font-weight: 700; }
body .site-header nav a:any-link { color: var(--ink); font-size: .9rem; font-weight: 500; }
body .site-header nav a.button { color: #fff; }
.site-header { max-width: 1400px; min-height: 82px; gap: 2rem; }
.public-body { background: #fafaf8; }
.public-body .hero { position: relative; max-width: none; padding: 5.5rem max(2rem, calc((100vw - 1200px)/2)); isolation: isolate; overflow: hidden; border-block: 1px solid #d8cdb5; background: #e4d9bf; }
.public-body .hero::before { content: ""; position: absolute; inset: 0; z-index: -2; background: url("/images/champagne-gold.jpg") center 48% / cover, linear-gradient(115deg, #f4efdf, #c3ae80 65%, #7e6847); }
.public-body .hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, #f5f1e8ed 0%, #f5f1e8cf 42%, #f5f1e833 80%); }
.public-body .hero h1 { max-width: 900px; font-size: clamp(2.35rem, 4.2vw, 4rem); line-height: 1.1; margin: .7rem 0 1.5rem; font-weight: 650; letter-spacing: -.045em; }
.public-body .hero h1 span { color: #705c34; }
.public-body .hero .lede { max-width: 680px; color: #45515a; font-size: 1.13rem; }
.public-body .hero .status-note { font-size: .84rem; max-width: 740px; color: #4f5659; border-color: #927b4f; }
.public-body .section { max-width: 1264px; padding-block: 4.5rem; }
.public-body .section h2 { font-size: clamp(1.8rem, 2.7vw, 2.65rem); line-height: 1.16; max-width: 780px; }
.public-body .section-heading span { font-size: .75rem; text-transform: uppercase; letter-spacing: .13em; }
.public-body .feature-grid { background: transparent; gap: 1rem; border: 0; }
.public-body .feature-grid article { padding: 2rem; background: white; border: 1px solid var(--line); border-radius: 8px; }
.public-body .feature-grid h2.feature-number { font-size: 1.1rem; letter-spacing: .1em; margin: 0 0 1.5rem; color: #9a8354; }
.public-body .feature-grid h3 { font-size: 1.25rem; }
.public-body .feature-grid p { color: var(--muted); }
.public-body .callout { max-width: none; background: #172a38; }
.public-body .callout .eyebrow { color: var(--gold-light); }
.public-body footer { max-width: 1400px; font-size: .8rem; gap: 1rem; }

/* The shell stays on screen; the main column owns scrolling and navigation. */
.cms-body { --sidebar-width: 248px; height: 100dvh; overflow: hidden; display: grid; grid-template-columns: var(--sidebar-width) minmax(0, 1fr); grid-template-rows: 72px auto minmax(0, 1fr) auto; grid-template-areas: "sidebar topbar" "sidebar banner" "sidebar content" "sidebar footer"; }
.workspace-sidebar { grid-area: sidebar; display: flex; flex-direction: column; padding: 1.6rem 1rem 1.1rem; background: var(--sidebar); color: #e1e7ec; min-height: 0; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #48555e transparent; border-right: 1px solid #1d303e; }
.workspace-sidebar .brand { padding: 0 .55rem 1.8rem; flex-shrink: 0; }
body .workspace-sidebar a.brand:any-link { color: white; }
.workspace-sidebar .brand img { background: #f5f1e7; border-radius: 7px; padding: 5px; width: 37px; height: 40px; }
.workspace-sidebar .brand strong { color: var(--gold-light); }
.sidebar-caption, .nav-group-label { color: #a6b2bb; font-size: .65rem; letter-spacing: .15em; text-transform: uppercase; font-weight: 600; padding: .4rem .85rem .85rem; }
.cms-nav { position: static; display: flex; flex-direction: column; align-items: stretch; gap: .25rem; width: 100%; }
body .cms-nav a:any-link { display: flex; align-items: center; gap: .8rem; min-height: 44px; border: 1px solid transparent; border-radius: 6px; padding: .65rem .8rem; color: #bbc7cf; font-size: .84rem; line-height: 1.35; font-weight: 500; }
body .cms-nav a:any-link:hover { color: #fff; background: #ffffff09; border-color: #ffffff09; }
body .cms-nav a.active:any-link { color: #eddbb3; background: #b59a651c; border-color: #b59a6536; }
.nav-group-label { padding-top: 1.5rem; padding-bottom: .5rem; }
.nav-icon { flex: 0 0 18px; width: 18px; height: 18px; display: inline-block; opacity: .85; background: currentColor; mask: var(--nav-symbol) center / 18px 18px no-repeat; --nav-symbol: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='7' height='7' rx='1'/%3E%3Crect x='14' y='3' width='7' height='7' rx='1'/%3E%3Crect x='3' y='14' width='7' height='7' rx='1'/%3E%3Crect x='14' y='14' width='7' height='7' rx='1'/%3E%3C/svg%3E"); }
.icon-projects, .icon-organizations { --nav-symbol: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6'%3E%3Cpath d='M4 21V5l8-3v19m0-12h8v12M2 21h20M7 7h2m-2 4h2m-2 4h2m6-3h2m-2 4h2'/%3E%3C/svg%3E"); }
.icon-providers { --nav-symbol: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6'%3E%3Crect x='2' y='5' width='20' height='14' rx='3'/%3E%3Cpath d='M2 10h20M6 15h4'/%3E%3C/svg%3E"); }
.icon-bank { --nav-symbol: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6'%3E%3Cpath d='m3 8 9-5 9 5H3Zm2 3v7m7-7v7m7-7v7M3 21h18'/%3E%3C/svg%3E"); }
.icon-email { --nav-symbol: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6'%3E%3Crect x='2' y='5' width='20' height='14' rx='2'/%3E%3Cpath d='m3 6 9 7 9-7'/%3E%3C/svg%3E"); }
.icon-furs, .icon-security { --nav-symbol: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6'%3E%3Cpath d='m12 2 8 4v6c0 5-8 10-8 10S4 17 4 12V6l8-4Z'/%3E%3Cpath d='m8 12 3 3 5-6'/%3E%3C/svg%3E"); }
.icon-integration, .icon-webhooks { --nav-symbol: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round'%3E%3Cpath d='m7 6-5 6 5 6m10-12 5 6-5 6m-3-15-4 18'/%3E%3C/svg%3E"); }
.icon-testing { --nav-symbol: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6'%3E%3Cpath d='m8 4 12 8-12 8V4Z'/%3E%3C/svg%3E"); }
.icon-branding { --nav-symbol: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6'%3E%3Cpath d='m12 2 10 10-10 10L2 12 12 2Z'/%3E%3Cpath d='m12 7 5 5-5 5-5-5 5-5Z'/%3E%3C/svg%3E"); }
.sidebar-bottom { margin-top: auto; padding: 2rem .85rem 0; }
body .sidebar-bottom a:any-link, .sidebar-bottom button { display: flex; justify-content: space-between; width: 100%; padding: .55rem 0; color: #bbc7cf; font-size: .8rem; background: none; border: 0; cursor: pointer; text-align: left; }
body .sidebar-bottom a:hover, .sidebar-bottom button:hover { color: #eddbb3; }
.sidebar-wordmark { display: block; margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid #ffffff12; color: #899aa7; font-size: .6rem; letter-spacing: .22em; }
.cms-body .site-header { grid-area: topbar; max-width: none; margin: 0; padding: 0 2.5rem; min-height: 0; gap: 1.5rem; border-bottom: 1px solid var(--line); background: #fff; }
.workspace-heading { display: flex; align-items: center; gap: 1.1rem; min-width: 0; }
.workspace-label { font-size: .73rem; color: #778188; padding-right: 1.1rem; border-right: 1px solid var(--line); white-space: nowrap; }
.workspace-title { font-size: .87rem; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.workspace-user { margin-left: auto; font-size: .78rem; color: var(--muted); white-space: nowrap; }
.cms-body .language-switcher { flex-wrap: nowrap; gap: 0; }
.cms-body .language-switcher button { font-size: .73rem; padding: .32rem .5rem; border: 0; color: #6a747b; }
.cms-body .language-switcher button[aria-pressed=true] { color: var(--ink); background: #f1f2f1; font-weight: 600; }
#cms-banner { grid-area: banner; }
.cms-body .support-banner { position: static; padding: .55rem 2.5rem; justify-content: flex-start; gap: .7rem; background: #f1ead9; border-bottom: 1px solid #ded0af; font-size: .76rem; }
.support-banner strong { color: #6d5429; }
.support-banner form { margin-left: auto; }
.support-banner button { border: 1px solid #ac966a; background: transparent; color: #57472c; font-size: .75rem; padding: .3rem .65rem; border-radius: 4px; }
.support-banner button:hover { background: #e7dcc3; }
.cms-body #main { grid-area: content; overflow: auto; padding: 2.35rem 2.5rem 3rem; min-width: 0; scroll-behavior: smooth; }
.cms-body #main:focus { outline: none; }
.cms-body #main[aria-busy=true] { cursor: progress; }
.cms-content, .cms-body .admin-content, .cms-body .settings-content { width: 100%; max-width: 1500px; min-width: 0; margin: 0 auto; padding: 0; display: grid; gap: 1.4rem; align-content: start; }
.cms-body .cms-content h1 { font-size: clamp(1.75rem, 2.3vw, 2.3rem); margin: 0; line-height: 1.18; letter-spacing: -.035em; }
.cms-body .account-shell { max-width: 900px; margin: 0; padding: 0; }
.page-heading { padding-bottom: .4rem; }
.page-heading .page-description { margin: .7rem 0 0; max-width: 850px; color: var(--muted); font-size: .93rem; }
.page-title-row { display: flex; gap: 1rem; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.page-heading .project-breadcrumb { display: flex; gap: .65rem; align-items: center; font-size: .76rem; font-weight: 500; margin: 0 0 1.2rem; }
body .project-breadcrumb:any-link { color: var(--muted); }
.page-heading .project-breadcrumb span { color: #aeb6bb; }
.card-heading { display: flex; justify-content: space-between; gap: 1rem; align-items: center; margin-bottom: 1.1rem; flex-wrap: wrap; }
.card-heading h2 { margin: 0; }
.count-badge { font-size: .78rem; background: #f2f3f3; padding: .1rem .55rem; border-radius: 5px; color: #65717a; }
.organization-list { margin: 0; }
.organization-list li:last-child { border-bottom: 0; }
.organization-list li { padding: 1.1rem 0; gap: 1rem; }
.organization-list a { display: grid; gap: .3rem; }
body .organization-list a:any-link { color: var(--ink); }
.organization-list a span { color: var(--muted); font-size: .8rem; }
.workspace-quicklinks, .provider-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1.3rem; }
body a.quicklink:any-link { color: var(--ink); transition: border-color .15s; }
body a.quicklink:hover { border-color: #bca97f; }
.quicklink h2 { margin: .6rem 0; }
.quicklink p { color: var(--muted); font-size: .9rem; }
.text-action { color: #7a6338; font-size: .84rem; font-weight: 650; }
.directory-search { display: flex; gap: .7rem; max-width: 660px; }
.directory-search input { background: white; min-width: 0; }
.admin-content .directory-search button { margin: 0; }
.organization-directory { display: grid; gap: 1rem; }
.organization-card { padding: 1.5rem 1.75rem; }
.organization-heading { display: flex; align-items: center; gap: 1rem; }
.organization-monogram { flex-shrink: 0; display: grid; place-items: center; width: 46px; height: 46px; border: 1px solid #e6dcc6; border-radius: 8px; background: #f7f3eb; color: #836b3e; font-size: 1.15rem; font-weight: 650; }
.organization-heading h2 { font-size: 1.12rem; margin: 0 0 .2rem; }
.organization-heading p { margin: 0; color: var(--muted); font-size: .78rem; }
.separator { margin: 0 .35rem; }
.organization-owner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-top: 1.1rem; margin-top: 1.1rem; border-top: 1px solid #edf0f1; }
.organization-owner > span { color: var(--muted); font-size: .85rem; overflow-wrap: anywhere; }
.admin-content .organization-owner button { margin: 0; }
.environment-switch { display: inline-flex; gap: .2rem; background: #e9eceb; border: 1px solid #e1e4e2; padding: 3px; border-radius: 7px; }
body .environment-switch a:any-link { display: flex; gap: .5rem; align-items: center; padding: .42rem .8rem; color: #65717a; border-radius: 4px; font-size: .8rem; font-weight: 600; }
body .environment-switch a[aria-current=page] { background: white; color: var(--ink); box-shadow: 0 1px 3px #172a3815; }
.mode-dot { width: 6px; height: 6px; background: #8a7448; border-radius: 50%; }
.mode-dot.live { background: #3b7663; }
.provider-tabs { gap: 1.75rem; border-bottom: 1px solid var(--line); margin-top: -.3rem; }
body .provider-tabs a:any-link { color: var(--muted); padding: .6rem .1rem .9rem; font-size: .88rem; border-bottom: 2px solid transparent; margin-bottom: -1px; font-weight: 600; }
body .provider-tabs a[aria-current=page] { color: #6e5832; border-color: var(--gold); }
.settings-notice { display: flex; gap: .75rem; align-items: baseline; margin: 0; padding: .9rem 1.1rem; border: 1px solid #e2dac9; border-left: 3px solid #b39b6c; border-radius: 6px; background: #f8f5ed; color: #695b3f; font-size: .82rem; }
.settings-notice strong { flex-shrink: 0; }
.settings-notice.live-notice { border-color: #d6dedb; border-left-color: #587768; background: #eef3f0; color: #405a4d; }
.settings-success { margin: 0; border: 1px solid #bdd7c9; border-radius: 6px; background: #ecf6f0; color: #285c42; font-size: .88rem; }
.provider-card h2 { font-size: 1.55rem; letter-spacing: -.04em; }
.provider-card p { color: var(--muted); margin-bottom: 1.5rem; }
.badge { background: #f0f1f1; color: #68727a; padding: .25rem .6rem; border-radius: 5px; font-size: .72rem; font-weight: 500; }
.badge-saved { background: #edf4ef; color: #3d6b4f; }
.settings-form fieldset { border: 0; padding: 1.5rem 0 0; margin: 1.25rem 0 0; border-top: 1px solid var(--line); min-width: 0; }
.settings-form legend { padding: 0 .7rem 0 0; font-size: .87rem; font-weight: 650; }
.settings-field { margin-bottom: 1.25rem; }
.settings-field label { display: block; font-size: .85rem; font-weight: 600; margin: 0 0 .4rem; }
.settings-field input:not([type=checkbox]):not([type=color]), .settings-field textarea { font-size: .9rem; border-color: #cbd1d4; border-radius: 6px; padding: .75rem .85rem; }
.settings-field input[type=password] { max-width: 720px; }
.settings-field .settings-check { font-size: .76rem; font-weight: 400; color: var(--muted); margin-top: .5rem; }
.field-help, .settings-field .field-help { font-size: .8rem; color: var(--muted); line-height: 1.55; margin: .5rem 0 .85rem; }
.form-actions { display: flex; gap: 1.4rem; align-items: center; border-top: 1px solid var(--line); padding-top: 1.3rem; margin-top: 1rem; }
.settings-form .form-actions a { margin: 0; font-size: .82rem; }
.cms-body .admin-content .form-actions button { margin: 0; }
.provider-guide { background: #fdfdfb; }
.provider-guide .card-heading h2 { font-size: 1.05rem; }
.guide-label { font-size: .67rem; text-transform: uppercase; letter-spacing: .1em; color: #8a7750; }
.guide-columns { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 2.5rem; }
.setup-steps { list-style: none; counter-reset: setup; padding: 0; margin: 1.5rem 0; }
.setup-steps li { position: relative; counter-increment: setup; padding-left: 2.5rem; margin-bottom: 1.6rem; font-size: .84rem; }
.setup-steps li::before { content: counter(setup, decimal-leading-zero); position: absolute; left: 0; top: -.05rem; font-size: .72rem; font-weight: 650; color: #8a7448; border: 1px solid #e5dcc7; border-radius: 5px; width: 27px; height: 27px; display: grid; place-items: center; background: #f7f3e9; }
.setup-steps li strong { font-weight: 650; }
.setup-steps li p { color: var(--muted); margin: .3rem 0 .5rem; }
.guide-footnote { border-top: 1px solid var(--line); padding-top: 1rem; margin: 0; color: var(--muted); font-size: .8rem; }
.workspace-next-step { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; border-top: 1px solid var(--line); padding-top: 1.5rem; }
.workspace-next-step h2 { font-size: .95rem; margin: 0; }
.workspace-next-step p { font-size: .82rem; color: var(--muted); margin-bottom: 0; }
.workspace-next-step .actions { margin: 0; flex-shrink: 0; }
.project-choice-group { padding: 1rem 0; }
.project-choice-group + .project-choice-group { border-top: 1px solid var(--line); }
.project-mode-links { display: flex; gap: .5rem; flex-wrap: wrap; }
.item-list li { gap: 1rem; align-items: center; }
.legacy-settings { font-size: .82rem; color: var(--muted); }
.legacy-settings summary { cursor: pointer; padding: 1rem 0; }
.setup-entry { border-top: 3px solid var(--gold); }
.empty-state { text-align: center; padding: 2.5rem; color: var(--muted); }
.cms-body footer { grid-area: footer; max-width: none; width: 100%; margin: 0; padding: .65rem 2.5rem; gap: 1rem; background: var(--paper); font-size: .67rem; border-top: 1px solid var(--line); }
.cms-body footer span:last-child { margin-left: auto; }
.gateway-code { font-size: .82rem; border: 1px solid #e0e5e7; background: #f0f3f4; padding: 1.25rem; border-radius: 7px; }
.cms-body table { border-collapse: collapse; font-size: .84rem; text-align: left; width: 100%; }
.cms-body th, .cms-body td { border-bottom: 1px solid var(--line); padding: .75rem; vertical-align: top; overflow-wrap: anywhere; }
.cms-body th { background: #eaeceb; font-weight: 600; }
.cms-body td code { font-size: .8rem; }
.cms-body .admin-actions { gap: .65rem; margin: .4rem 0; }
.cms-body .admin-actions a { padding: .45rem .7rem; background: #fff; border: 1px solid var(--line); border-radius: 5px; font-size: .8rem; }
@media(min-width:1700px) { .cms-body { --sidebar-width: 272px; } .cms-body #main { padding-inline: 3.5rem; } }
@media(max-width:1100px) { .cms-body { --sidebar-width: 222px; } .cms-body #main { padding: 1.75rem; } .cms-body .site-header { padding-inline: 1.75rem; } .workspace-user { display: none; } .workspace-next-step { align-items: flex-start; flex-direction: column; } .guide-columns { gap: 1.5rem; } }
@media(max-width:760px) {
    .cms-body { --sidebar-width: 68px; grid-template-rows: 64px auto minmax(0,1fr) auto; }
    .workspace-sidebar { padding: 1rem .4rem; }
    .workspace-sidebar .brand { padding: 0 .5rem 1.5rem; }
    .workspace-sidebar .brand img { width: 36px; min-width: 36px; }
    .workspace-sidebar .brand span, .sidebar-caption, .nav-group-label, .sidebar-wordmark, .sidebar-bottom { display: none; }
    .cms-nav { display: flex; gap: .4rem; }
    body .cms-nav a:any-link { justify-content: center; padding: .75rem; min-height: 46px; }
    .cms-nav a > span:not(.nav-icon) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
    .cms-body .site-header { flex-wrap: nowrap; padding: 0 1rem; gap: .5rem; }
    .workspace-label { display: none; }
    .workspace-title { max-width: 130px; font-size: .8rem; }
    .cms-body .language-switcher button { font-size: .65rem; padding: .3rem; }
    .cms-body #main { padding: 1.4rem 1rem 2rem; }
    .cms-body footer { padding: .5rem 1rem; display: flex; font-size: .6rem; }
    .cms-body footer a, .cms-body footer span:last-child { display: none; }
    .cms-body .support-banner { padding: .55rem 1rem; font-size: .7rem; }
    .support-banner form { margin-left: 0; }
    .workspace-quicklinks, .provider-grid, .guide-columns, .fields-two { grid-template-columns: 1fr; }
    .card { padding: 1.25rem; }
    .organization-owner { align-items: flex-start; flex-direction: column; }
    .card-heading { gap: .7rem; }
    .form-actions { align-items: flex-start; flex-wrap: wrap; gap: .8rem; }
    .page-title-row { align-items: flex-start; }
    .settings-notice { flex-direction: column; gap: .2rem; }
    .item-list li { flex-wrap: wrap; }
    .cms-body .cms-content h1 { font-size: 1.8rem; }
    .public-body .hero { padding: 3.5rem 1.5rem; }
    .public-body .hero h1 { font-size: clamp(2.1rem,7vw,3rem); }
    .public-body .site-header { padding: 1rem 1.5rem; gap: 1rem; }
    .public-body .section { padding: 3rem 1.5rem; }
    .public-body .hero .lede { font-size: 1rem; }
}
@media(prefers-reduced-motion:reduce) { html, .cms-body #main { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; } }

/* Provider destinations remain visually distinct in the permanent navigation. */
.icon-merchant-stripe, .icon-merchant-paypal { mask: none; background: transparent; border: 1px solid currentColor; border-radius: 4px; display: grid; place-items: center; font-size: 11px; line-height: 1; font-weight: 700; }
.icon-merchant-stripe::before { content: "S"; }
.icon-merchant-paypal::before { content: "P"; }
@media(max-width:760px) {
    .workspace-sidebar .sidebar-bottom { display: block; padding: 1rem .4rem 0; }
    .sidebar-bottom a { display: none !important; }
    .sidebar-bottom button { font-size: 0; min-height: 44px; justify-content: center; }
    .sidebar-bottom button span { font-size: 1.15rem; }
}
.cookie-settings { text-decoration: none; }
.cms-body footer .cookie-settings { font-size: inherit; padding: 0; }

/* Project workspace and company profile */
.project-tabs { display: flex; flex-wrap: wrap; gap: .4rem; padding: .75rem; background: #fff; border: 1px solid var(--line); border-radius: 12px; margin-bottom: .75rem; box-shadow: 0 3px 14px #172a3805; }
body .project-tabs a:any-link { position: relative; padding: .75rem 1rem; border-radius: 7px; color: #596872; font-size: .82rem; font-weight: 600; line-height: 1.4; border: 1px solid transparent; }
body .project-tabs a:hover { background: #f5f2ec; color: var(--ink); }
body .project-tabs a[aria-current=page] { color: #fff; background: var(--ink); border-color: var(--ink); box-shadow: inset 0 -3px var(--gold); }
.project-panel { margin: 0; padding: 2rem; }
.project-panel > h2 { display: flex; align-items: center; gap: .85rem; margin-bottom: 1.2rem; }
.step-number { display: inline-grid; place-items: center; flex-shrink: 0; width: 36px; height: 36px; border-radius: 9px; background: var(--gold-wash); color: #806b43; font-size: .75rem; letter-spacing: .08em; }
.project-panel > p { max-width: 90ch; color: var(--muted); }
.project-links, .environment-cards { display: grid; grid-template-columns: repeat(auto-fit,minmax(220px,1fr)); gap: .8rem; }
body .project-links a { display: flex; align-items: center; justify-content: space-between; min-height: 68px; padding: 1rem 1.2rem; border: 1px solid var(--line); border-radius: 8px; background: #fafbf9; color: var(--ink); font-weight: 600; font-size: .86rem; }
.project-links a::after { content: "→"; color: #947b48; margin-left: .75rem; }
body .project-links a:hover { background: var(--gold-wash); border-color: #cabc9f; }
.environment-cards article, .credential-row { padding: 1.25rem; border: 1px solid var(--line); border-radius: 8px; background: #fafbf9; }
.credential-row { margin-top: 1rem; overflow-wrap: anywhere; }
.credential-row form { margin-top: .8rem; }
.table-scroll { overflow-x: auto; }
.profile-section { border: 0; padding: 0 0 1.75rem; margin: 0 0 1.75rem; border-bottom: 1px solid var(--line); min-width: 0; }
.profile-section legend { padding: 0; margin-bottom: 1.2rem; font-size: 1.05rem; color: var(--ink); font-weight: 650; }
.profile-section label { display: block; margin-bottom: .35rem; font-size: .85rem; font-weight: 600; }
.profile-section .fields-two { gap: 1.1rem 1.5rem; margin-bottom: 1rem; }
.profile-section > input { margin-bottom: 1rem; }
.field-wide { grid-column: 1 / -1; }
.registration-shell { max-width: 1320px; grid-template-columns: .65fr 1.35fr; gap: 3rem; }
.registration-shell h1 { font-size: clamp(2rem,3vw,3rem); }
.registration-shell .form-card { display: block; }
.registration-shell .check { margin: 1rem 0; }
body .environment-switch a[aria-current=page] { background: var(--ink); color: #fff; box-shadow: inset 0 -2px var(--gold); }
@media(max-width:760px) { .registration-shell { grid-template-columns: 1fr; gap: 1.5rem; } .project-panel { padding: 1.2rem; } .project-tabs { gap: .25rem; padding: .5rem; } body .project-tabs a:any-link { padding: .65rem .7rem; font-size: .76rem; } }


.furs-metadata { display: grid; grid-template-columns: minmax(8rem, 1fr) minmax(0, 3fr); gap: .35rem 1rem; }
.furs-metadata dt { font-weight: 600; }
.furs-metadata dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 600px) { .furs-metadata { grid-template-columns: 1fr; } .furs-metadata dd { margin-bottom: .5rem; } }

/* Environment controls: words, icons, and contrast distinguish test from live. */
body .environment-switch-prominent { display: inline-flex; flex-wrap: wrap; gap: .5rem; padding: .4rem; border: 1px solid #cbd5dc; border-radius: 12px; background: #fff; box-shadow: 0 3px 12px #162b3808; }
body .environment-switch-prominent a.environment-option { display: flex; gap: .65rem; align-items: center; min-width: 150px; padding: .75rem 1rem; border: 2px solid transparent; border-radius: 8px; box-shadow: none; }
.environment-option strong, .environment-option small { display: block; }
.environment-option strong { font-size: .8rem; letter-spacing: .035em; }
.environment-option small { margin-top: .15rem; font-size: .7rem; font-weight: 450; }
.environment-icon { font-size: 1.1rem; }
body .environment-test { color: #205a90; background: #edf5ff; border-color: #c0d7ed; }
body .environment-live { color: #9a441e; background: #fff3eb; border-color: #efc9b3; }
body .environment-switch-prominent a.environment-test[aria-current=page] { color: #fff; background: #205a90; border-color: #16426d; box-shadow: 0 2px 7px #205a9030; }
body .environment-switch-prominent a.environment-live[aria-current=page] { color: #fff; background: #a5441c; border-color: #813414; box-shadow: 0 2px 7px #a5441c30; }
body .environment-switch-prominent a:hover { border-color: currentColor; }
body .environment-switch-prominent a:focus-visible { outline: 3px solid #2372ad; outline-offset: 3px; }
body .settings-notice { border-left: 5px solid #205a90; background: #edf5ff; color: #205a90; }
body .settings-notice.live-notice { border-left-color: #a5441c; background: #fff3eb; color: #8f3b18; }
.return-url-settings { margin: 1.5rem 0; padding: 1.4rem; border: 1px solid #cedbe2; border-radius: 10px; background: #f8fafb; min-width: 0; }
.return-url-settings legend { padding: 0 .5rem; font-weight: 700; font-size: 1rem; }
.provider-label { font-size: .7rem; margin-left: .5rem; color: #687e8c; font-weight: 500; }
.return-url-settings input[readonly] { background: #eaf0f3; color: #486271; border-style: dashed; }
.organization-logo-preview { display: block; width: 160px; height: 100px; object-fit: contain; padding: 12px; margin: 1rem 0; background: #f0f3f4; border: 1px solid #d3dce1; border-radius: 8px; }
.project-directory { margin-top: 1.5rem; }
.project-directory + .project-directory { padding-top: 1.5rem; border-top: 2px solid #dce4e8; }
.project-directory h3 { margin: 0; font-size: 1.1rem; }
.project-table { width: 100%; min-width: 620px; border-collapse: separate; border-spacing: 0; overflow: hidden; border: 1px solid #cdd8de; border-radius: 10px; }
.project-table thead th { background: #e8eef2; color: #314c5c; text-align: left; font-size: .73rem; letter-spacing: .055em; text-transform: uppercase; padding: 1rem 1.25rem; border-bottom: 1px solid #cdd8de; }
.project-table tbody th, .project-table tbody td { padding: 1.2rem 1.25rem; text-align: left; vertical-align: middle; border-bottom: 1px solid #dce4e8; }
.project-table tbody tr:last-child > * { border-bottom: 0; }
.project-table tbody tr:nth-child(even) { background: #f5f8fa; }
.project-table tbody tr:hover { background: #eef4f8; }
body a.project-table-name { color: #173f59; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.project-slug { display: block; margin-top: .35rem; color: #677e8c; font-size: .75rem; font-weight: 400; }
.project-status { display: inline-block; padding: .3rem .6rem; border-radius: 5px; background: #e6eeeb; color: #36634f; font-size: .73rem; font-weight: 650; }
.project-table-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.project-table-actions .button { white-space: nowrap; }
@media (max-width: 760px) { body .environment-switch-prominent { width: 100%; } body .environment-switch-prominent a.environment-option { min-width: 0; flex: 1; padding: .65rem; } .return-url-settings { padding: 1rem; } .project-directory .card-heading { align-items: flex-start; flex-wrap: wrap; } }

/* Keep native checkbox semantics with a larger, consistently aligned visual. */
body input[type="checkbox"] {
    appearance: none;
    width: 2.5rem !important;
    height: 2.5rem !important;
    min-height: 2.5rem;
    flex: 0 0 2.5rem;
    padding: 0;
    margin: 0;
    display: inline-grid;
    place-content: center;
    vertical-align: middle;
    border: 2px solid #607583;
    border-radius: .45rem;
    background: #fff;
    cursor: pointer;
}
body input[type="checkbox"]:checked { background: #205b91; border-color: #174875; }
body input[type="checkbox"]:checked::before {
    content: "";
    width: .65rem;
    height: 1.2rem;
    border: solid white;
    border-width: 0 .2rem .2rem 0;
    transform: translateY(-.12rem) rotate(45deg);
}
body input[type="checkbox"]:focus-visible { outline: 3px solid #205b91; outline-offset: 4px; }
body input[type="checkbox"]:disabled { opacity: .55; cursor: not-allowed; }
body .settings-form .settings-check { display: flex; align-items: center; justify-content: flex-start; gap: .8rem; text-align: left; font-size: 1rem; font-weight: 600; color: #182e3a; }
.return-url-settings > .settings-check { margin: 1rem 0; }
.webhook-guide li { margin-bottom: .75rem; }
@media (forced-colors: active) { body input[type="checkbox"] { appearance: auto; } body input[type="checkbox"]::before { content: none; } }

.white-label-status { display: inline-flex; padding: .4rem .7rem; border: 1px solid #cbd5dc; border-radius: 999px; font-size: .85rem; font-weight: 600; color: #536571; background: #f2f5f7; }
.white-label-status.is-active { color: #165436; background: #e7f6ed; border-color: #90c7a5; }
.organization-heading .white-label-status { margin-left: auto; }

/* FURS inventory: compact rows, accessible native dialogs and explicit status. */
.furs-grid-heading,.furs-actions { display:flex; align-items:center; gap:.65rem; justify-content:space-between; }
.furs-grid-heading { flex-wrap:wrap; margin-bottom:1rem; }
.furs-grid-heading small { font-size:.8rem; font-weight:400; }
.furs-table-scroll { overflow-x:auto; }
.furs-grid { width:100%; border-collapse:collapse; }
.furs-grid th,.furs-grid td { padding:.85rem 1rem; text-align:left; border-bottom:1px solid #d4dfdf; }
.furs-grid th button,.furs-row-link { border:0; background:none; color:inherit; font:inherit; text-align:left; cursor:pointer; padding:.25rem; }
.furs-grid th button,.furs-row-link { font-weight:700; }
.furs-grid th[aria-sort=ascending] button span,.furs-grid th[aria-sort=descending] button span { color:#1764a0; }
.furs-grid th[aria-sort=ascending] button span::after { content:' ↑'; }
.furs-grid th[aria-sort=descending] button span::after { content:' ↓'; }
.furs-grid tbody tr { cursor:pointer; }
.furs-grid .furs-row-active { background:#eaf6ee; }
.furs-grid .furs-row-inactive { background:#fcecec; }
.furs-grid tbody tr:hover { outline:2px solid #7b969e; outline-offset:-2px; }
.furs-actions { justify-content:flex-end; }
.furs-icon { display:inline-flex; align-items:center; justify-content:center; width:44px; height:44px; border:1px solid #acbec3; border-radius:8px; background:#fff; color:#192f3b; font-size:1.4rem; cursor:pointer; text-decoration:none; }
.furs-dialog { width:min(760px,calc(100vw - 2rem)); max-height:88vh; overflow:auto; border:1px solid #b8c7cc; border-radius:14px; padding:2rem; color:#192f3b; background:#fff; box-shadow:0 18px 80px #0004; }
.furs-dialog::backdrop { background:#0b243999; }
.furs-dialog-close { float:right; width:44px; height:44px; font-size:1.7rem; border:0; border-radius:6px; cursor:pointer; }
.furs-dialog h2,.furs-dialog h3 { padding-right:3rem; }
.furs-dialog .settings-form { display:grid; gap:.7rem; }
.furs-dialog fieldset { display:grid; gap:.5rem; padding:1rem; }
.furs-dialog .furs-metadata { overflow-wrap:anywhere; }
.furs-icon:focus-visible,.furs-row-link:focus-visible,.furs-grid th button:focus-visible { outline:3px solid #1764a0; outline-offset:2px; }

/* Keep project navigation on one line; narrow screens retain every tab. */
.project-tabs { flex-wrap: nowrap; overflow-x: auto; }
.project-tabs > a { flex: 0 0 auto; white-space: nowrap; padding: .65rem .85rem; }

.test-log-trash { min-width:44px; min-height:44px; padding:.65rem; }
[data-test-history] [hidden] { display:none !important; }
[data-test-history] .actions .button { display:inline-flex; align-items:center; gap:.45rem; }

/* Join the testing tabs and their active content into one panel. */
.testing-tab-panel { min-width:0; background:var(--card); border:1px solid var(--line); border-radius:12px; box-shadow:0 2px 5px #162a3803; }
.testing-tab-panel > .project-tabs { margin:0; border:0; border-bottom:1px solid var(--line); border-radius:12px 12px 0 0; box-shadow:0 3px 6px #172a3808; }
.testing-tab-panel > .card { margin:0; border:0; border-radius:0 0 12px 12px; box-shadow:none; }

.subscription-actions { display:flex; align-items:center; flex-wrap:wrap; gap:.75rem; margin:1rem 0; }
.subscription-actions > form { margin:0; }
#subscription-results, #payment-results { scroll-margin-top:1rem; }
