/* LOYANCE RC11. Shared application layer, scoped to plugin surfaces only. */
:is(.cl-fullwidth,.cl-dashboard,.cl-scanner-app){--cl-release-ink:#102d37;--cl-release-muted:#526b75;--cl-release-mint:#dceee5;--cl-release-line:#dce7e4;--cl-release-surface:#f5f8f7;font-synthesis:none}
:is(.cl-fullwidth,.cl-dashboard,.cl-scanner-app) :is(button,input,select,textarea,a){-webkit-tap-highlight-color:transparent}
:is(.cl-fullwidth,.cl-dashboard,.cl-scanner-app) :is(button,input,select,textarea,a):focus-visible{outline:3px solid #178775!important;outline-offset:3px}
:is(.cl-fullwidth,.cl-dashboard,.cl-scanner-app) :is(input:not([type=checkbox]):not([type=radio]):not([type=hidden]),select,textarea){font-size:16px;min-height:46px;border-radius:12px}
:is(.cl-fullwidth,.cl-dashboard,.cl-scanner-app) :is(button,.clp-button){min-height:44px}
:is(.cl-fullwidth,.cl-dashboard,.cl-scanner-app) [hidden]{display:none!important}
.cl-control-center{background:var(--cl-release-surface);color:var(--cl-release-ink)}
.cl-control-center .cl-main-app{padding:36px clamp(22px,3.5vw,64px) 64px}
.cl-control-center .cl-sidebar{background:linear-gradient(155deg,#122f38,#081f28);border-right:1px solid #ffffff14}
.cl-control-center .cl-nav-item{border-radius:12px;min-height:44px;transition:background .18s,color .18s}
.cl-control-center .cl-nav-item.is-active{background:#dceee5;color:#123a35;box-shadow:0 4px 20px #00000012}
.cl-control-center .cl-nav-label{letter-spacing:.1em;font-size:10px;margin-top:22px;color:#b0c7c8}
.cl-control-center .cl-app-header{padding-bottom:24px;margin-bottom:26px;border-bottom:1px solid var(--cl-release-line)}
.cl-control-center .cl-app-header h1{font-size:clamp(24px,2.2vw,34px);letter-spacing:-.045em;color:var(--cl-release-ink);line-height:1.1}
.cl-control-center .cl-app-header p{font-size:14px;line-height:1.6;color:var(--cl-release-muted)}
.cl-control-center :is(.cl-panel,.cl-plan-card,.cl-stat-card){border:1px solid var(--cl-release-line);border-radius:22px;box-shadow:0 6px 28px #0b302506}
.cl-control-center :is(.cl-panel h3,.cl-page-intro h2){letter-spacing:-.035em}
.cl-control-center .cl-panel-head p{line-height:1.65;max-width:65ch;color:var(--cl-release-muted)}
.cl-control-center :is(.cl-primary-action,.cl-btn){border-radius:12px;background:#173e3a;color:#fff;box-shadow:0 4px 12px #173e3a15}
.cl-control-center .cl-muted-empty{display:block;border:1px dashed #ceded7;border-radius:16px;padding:28px 20px;background:#f8faf9;color:#526b75;line-height:1.7}
.cl-control-center .cl-table td,.cl-control-center .cl-table th{padding-block:16px}
.cl-release-guide{display:flex;align-items:center;justify-content:space-between;gap:28px;padding:clamp(24px,3vw,38px);margin-bottom:24px;border:1px solid #c3ddd1;border-radius:24px;background:radial-gradient(ellipse at 95% 0%,#eef8dc 0,transparent 65%),#deeee5;box-shadow:0 12px 40px #102e4206}
.cl-release-guide h2{font-size:clamp(24px,2.2vw,34px)!important;line-height:1.15!important;letter-spacing:-.04em;margin:10px 0 12px!important;color:#15382f!important}
.cl-release-guide p{max-width:58ch;color:#3f6157;line-height:1.65;margin:0}
.cl-release-guide button{flex-shrink:0;padding:14px 22px!important;font-size:14px!important}
.cl-release-usage{display:flex;gap:20px;align-items:center;justify-content:space-between;border:1px solid #c9dfd3;background:#eff7f1;border-radius:18px;padding:22px 26px;margin:24px 0}
.cl-release-usage strong{font-size:20px;display:block;letter-spacing:-.025em;color:#183e33}
.cl-release-usage p{margin:5px 0 0;color:#4a665b;line-height:1.6;font-size:14px}
.cl-release-usage meter{width:160px;height:12px;accent-color:#257c60}
.cl-release-lock{background:linear-gradient(130deg,#f9fbf8,#e5f0e9);border:1px solid #ceded5;border-radius:24px;padding:clamp(28px,5vw,70px);max-width:960px}
.cl-release-lock>span{font-size:11px;color:#2f6c58;font-weight:700;letter-spacing:.12em}
.cl-release-lock h2{font-size:clamp(30px,4vw,48px);line-height:1.1;letter-spacing:-.04em;margin:20px 0}
.cl-release-lock p{max-width:52ch;line-height:1.8;color:#4f6961;margin-bottom:28px}
.cl-release-lock a{display:inline-flex;align-items:center;padding:14px 22px;border-radius:12px;background:#163b32;color:#fff;text-decoration:none;min-height:48px}
.cl-plan-hint{margin-left:auto;font-size:9px;letter-spacing:.08em;opacity:.75;white-space:nowrap}
.cl-plan-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:20px}
.cl-plan-card{display:flex;flex-direction:column;gap:12px;padding:28px!important}
.cl-plan-card>button{margin-top:auto!important;min-height:48px;border-radius:12px}
.cl-plan-card>strong{font-size:32px;letter-spacing:-.04em}
.cl-plan-card>p{min-height:3.6em;line-height:1.65}
.cl-plan-card.is-current{border:1px solid #247560;box-shadow:0 0 0 3px #2475600b}
.clp-pricing{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:20px!important;padding:clamp(20px,4vw,64px)!important;align-items:stretch}
.clp-price{display:flex!important;flex-direction:column;gap:20px;border:1px solid var(--cl-release-line)!important;border-radius:24px!important;box-shadow:0 12px 40px #102e4205!important;min-width:0}
.clp-price-free{background:#eef6ef!important}
.clp-price h2{font-size:30px!important;letter-spacing:-.04em}
.clp-price .clp-price-value{font-size:clamp(32px,3vw,48px)!important;line-height:1.1}
.clp-price small{font-size:13px;line-height:1.7}
.clp-price ul{font-size:14px;line-height:1.8}
.clp-shell{background:#f6f9f6!important}
.clp-shell .clp-card{border:1px solid var(--cl-release-line);border-radius:24px;box-shadow:0 18px 65px #14392d08}
.clp-shell h1{letter-spacing:-.05em;line-height:1.1}
.clp-form label{line-height:1.55}
.clp-form :is(input:not([type=checkbox]):not([type=radio]),select){background:#fff!important;border:1px solid #b9ccc5!important}
.clp-form .clp-button{border-radius:12px!important;background:#173e3a!important;color:#fff!important;min-height:50px}
.clp-fine{line-height:1.7!important}
.cl-scanner-app{background:#f5f8f7}
.cl-scanner-app :is(.cl-scan-card,.cl-scan-shell){border-radius:24px}
.cl-join-layout{background:#f8faf7}
.cl-join-card :is(input,select){min-height:48px}
.cl-release-note{border-left:3px solid #247560;padding:14px 18px;background:#eef6ef;border-radius:0 12px 12px 0;color:#3c5d52;line-height:1.7;margin:20px 0}
@media(min-width:1700px){.cl-plan-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important}}
@media(max-width:1200px){.clp-pricing{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:1024px){.cl-control-center .cl-main-app{padding:24px 22px 120px}.cl-release-guide{align-items:flex-start}.cl-sidebar.is-open .cl-nav-item{min-height:44px}}
@media(max-width:600px){.cl-control-center .cl-main-app{padding:20px 16px 120px}.cl-release-guide{flex-direction:column;gap:22px;padding:24px 22px}.cl-release-guide button{width:100%}.cl-release-usage{align-items:flex-start;flex-direction:column;padding:22px}.cl-release-usage meter{width:100%}.cl-plan-grid,.clp-pricing{grid-template-columns:minmax(0,1fr)!important}.clp-pricing{padding:20px!important}.cl-plan-card>p{min-height:0}.cl-control-center .cl-panel{padding:22px 18px}.cl-control-center .cl-table{font-size:12px}.cl-control-center .cl-app-header{gap:10px}.cl-billing-toggle button{padding:12px 10px}.clp-price{padding:26px!important}.cl-release-lock{padding:28px 22px}.cl-control-center .cl-nav-label{margin-top:14px}}
@media(prefers-reduced-motion:reduce){:is(.cl-fullwidth,.cl-dashboard,.cl-scanner-app) *{scroll-behavior:auto!important;animation:none!important;transition:none!important}}

/* Compact navigation and full-width pricing. */
.cl-plan-hint{font-size:0;flex:0 0 14px;text-align:right}.cl-plan-hint::after{content:"↗";font-size:13px}.cl-nav-item>span{white-space:nowrap}
.cl-release-actions{display:flex;align-items:center;gap:16px;padding:24px 28px;background:#102d37;color:white;border-radius:20px;margin:0 0 24px}.cl-release-actions>div{margin-right:auto}.cl-release-actions strong{display:block;font-size:17px;margin-top:6px;letter-spacing:-.02em}.cl-release-actions .cl-panel-kicker{color:#b1d4c6}.cl-release-actions .cl-btn{background:#dceee5;color:#183e33;border:0;white-space:nowrap}.cl-release-actions .cl-btn-secondary{background:transparent;color:#dceee5;border:1px solid #5c777c}
.cl-fullwidth .cl-pricing-switcher{width:100%;max-width:none;background:#f6f9f6;padding:0 0 40px}.cl-fullwidth .clp-pricing{width:100%;max-width:none;margin:0}.cl-pricing-intro{padding:64px 24px 24px;text-align:center;color:#102d37}.cl-pricing-intro h2{font-size:clamp(36px,5vw,68px);font-weight:650;letter-spacing:-.055em;line-height:1.06;margin:12px 0 20px}.cl-pricing-intro p{color:#526b75;line-height:1.7;margin:0}.cl-pricing-switcher>.cl-billing-toggle{margin:16px auto 0;width:fit-content}.clp-price [data-price-period] .clp-button{margin-top:20px}.clp-price [data-price-period]>.clp-fine{margin-top:16px!important;min-height:42px}.clp-price .clp-eyebrow{margin-bottom:0}
@media(max-width:900px){.clp-shell{grid-template-rows:auto 1fr!important}.clp-story{min-height:0!important;padding:24px!important;gap:0!important;align-self:start}.cl-release-actions{flex-wrap:wrap}.cl-release-actions>div{width:100%;margin-bottom:4px}}
@media(max-width:600px){.cl-release-actions{padding:22px;gap:12px}.cl-release-actions .cl-btn{width:100%}.cl-pricing-intro{padding:44px 22px 20px}.clp-pricing .clp-price{gap:18px}}
.cl-dashboard :is(.cl-nav-item,.cl-release-guide,[data-view-target])[hidden]{display:none!important}
.cl-release-actions a.cl-btn{display:inline-flex;align-items:center;justify-content:center;min-height:46px;padding:12px 18px;text-decoration:none;border-radius:12px;font-weight:600}
.clp-price-free>.clp-price-value{min-height:116px}

.cl-staff-overview>:not(.cl-release-actions){display:none!important}

.cl-legal-panel{margin-top:28px}.cl-legal-panel textarea{min-height:240px;font:inherit;line-height:1.7}.cl-legal-panel [data-legal-hosted],.cl-legal-panel [data-legal-external]{display:grid;gap:22px}.cl-legal-panel [hidden]{display:none!important}.cl-legal-check{display:flex;align-items:flex-start;gap:12px;font-size:14px;line-height:1.7}.cl-legal-check input{width:20px;height:20px;flex:0 0 20px;margin-top:3px}.cl-legal-panel a{color:#096d5d;text-decoration:underline;text-underline-offset:4px}

/* RC13: public documents and deliberate, readable form states. */
.cl-dashboard .cl-legal-panel .cl-panel-head{padding-bottom:20px;border-bottom:1px solid #dce7e0;margin-bottom:24px}
.cl-dashboard .cl-legal-panel textarea{min-height:220px;resize:vertical;line-height:1.7;padding:18px;border-radius:14px;background:#fff;overflow-wrap:anywhere}
.cl-dashboard .cl-legal-panel .cl-field>span{font-size:14px;font-weight:700}
.cl-dashboard .cl-legal-check{padding:18px;background:#f2f7f4;border:1px solid #d7e4dd;border-radius:14px;align-items:flex-start;line-height:1.6}
.cl-dashboard .cl-legal-check input{margin-top:4px;flex-shrink:0;accent-color:#173f3b}
.cl-dashboard #cl-legal-links{display:flex;flex-wrap:wrap;gap:12px;padding:16px}
.cl-dashboard #cl-legal-links[hidden]{display:none}
.cl-dashboard #cl-legal-links a{display:inline-flex;align-items:center;min-height:44px;padding:8px 12px;border-radius:10px;background:#fff;color:#075e55;font-weight:600;overflow-wrap:anywhere}
.cl-dashboard .cl-legal-panel :disabled{opacity:.65;cursor:wait}
.cl-dashboard .cl-legal-panel .cl-form-msg{min-height:26px;line-height:1.6;margin:14px 0}
.cl-dashboard #cl-wallet-troubleshoot{padding:16px;border:1px solid #dce7e0;border-radius:14px;margin:18px 0}
.cl-dashboard #cl-wallet-troubleshoot summary{cursor:pointer;min-height:44px;font-weight:600;display:list-item;list-style:disclosure-closed}
.cl-dashboard #cl-wallet-troubleshoot[open] summary{list-style:disclosure-open}
.cl-dashboard button:disabled{cursor:wait}
@media(max-width:600px){.cl-dashboard .cl-legal-panel textarea{min-height:200px;font-size:16px}.cl-dashboard #cl-legal-links{flex-direction:column}.cl-dashboard .cl-legal-panel [type=submit]{width:100%;min-height:48px}}
