/* The CCC identity surfaces share one emerald palette in both modes. */
:root {
  --ccc-bright: #95f45b;
  --ccc-accent: #77e683;
  --ccc-action: linear-gradient(120deg, #c0ff87, #61d779);
  --ccc-shadow: 0 8px 24px #3bba5e32;
}
html[data-theme=light] {
  --ccc-accent: #126c3a;
  --ccc-action: linear-gradient(120deg, #167842, #095d37);
}
html .login-brand, html .brand-splash {
  background: radial-gradient(ellipse at 50% 39%, #10281b 0%, #07120d 50%, #030805 100%);
}
html .login-brand img { object-fit: contain; filter: none; }
html .login-brand .eyebrow, html .elite-brand>span>span { color: var(--ccc-bright); }
html[data-theme=light] .elite-brand>span>span { color: var(--ccc-accent); }
html .login-brand .brand-line, html .splash-loader>span { background: #6bd581; }
html[data-theme] .es-auth { --es7-cyan: var(--ccc-accent); --es7-focus: #60c96b55; }
html[data-theme] .es-seg-thumb, html[data-theme] .es-signin {
  background: var(--ccc-action) !important;
  box-shadow: var(--ccc-shadow) !important;
}
html[data-theme=dark] .es-signin { color: #092815 !important; }
html .elite-brand img { object-fit: cover; }

html .login-brand,html .brand-splash {background:#030604}
.ccc-pdf-link {display:inline-flex;align-items:center;justify-content:center;min-height:44px;border:1px solid currentColor;padding:8px 15px;border-radius:10px;color:var(--ccc-accent);font-weight:650}
.ccc-gallery {display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,220px),1fr));gap:16px;margin-block:18px}
.ccc-gallery figure {margin:0;min-width:0;border:1px solid var(--es7-line);border-radius:13px;overflow:hidden}
.ccc-gallery img {width:100%;height:165px;object-fit:cover}
.ccc-gallery figcaption {display:grid;gap:5px;padding:12px;overflow-wrap:anywhere}
.record-total {display:flex;justify-content:space-between;align-items:center;gap:12px;padding:11px 7px;border-block-end:1px solid var(--es7-line);margin-bottom:12px}
#ccc-record .record-body {margin-top:14px}

.ccc-demo-link{display:inline-block;margin-bottom:12px;color:var(--ccc-accent);text-decoration:underline;text-underline-offset:3px}

:root{--ccc-bright:#76ff34;--ccc-accent:#88fa5c;--ccc-action:#8aff54;--ccc-shadow:0 3px 17px #6efe3128}
html[data-theme=light]{--ccc-accent:#266d0e;--ccc-action:#276716}
html .login-brand,html .brand-splash{background-color:#030403;background-image:radial-gradient(ellipse at 50% 45%,#142011 0,transparent 58%),linear-gradient(#9ac48b0b 1px,transparent 1px),linear-gradient(90deg,#9ac48b0b 1px,transparent 1px);background-size:auto,44px 44px,44px 44px}
html .login-brand img{width:min(76%,610px);max-height:260px;object-fit:contain;margin-block:22px}
html .login-brand .eyebrow{letter-spacing:.22em;color:#a5fc86}
html .login-brand .brand-line{background:#84ff48;width:65px;box-shadow:0 0 18px #75ff5580}
html .es-auth .login-panel>div{border:1px solid #82958140;padding:clamp(20px,3vw,42px);border-radius:22px;box-shadow:0 18px 75px #0002}
html .es-auth .es-signin{border-radius:12px}
.ccc-icon-link,.ccc-demo-link{display:inline-flex;align-items:center;min-height:38px;font-size:.87rem;margin:0 10px 8px 0}
.ccc-icon-link{color:inherit}
.ccc-box{min-width:0;border:1px solid #84978154;background:var(--panel,Canvas);border-radius:18px;padding:clamp(18px,2.2vw,32px);align-self:start}
.ccc-search-layout{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,1fr);gap:18px;margin:18px 0}
.ccc-box-head{display:flex;align-items:center;gap:10px}.ccc-box-head .icon{color:var(--ccc-accent)}.ccc-box h2{margin:0}.ccc-box .field{margin-block:14px}
.ccc-drop{display:grid;gap:6px;padding:22px 18px;margin:18px 0;border-radius:12px;border:1px dashed var(--ccc-accent);background:#6bfd4809}.ccc-drop span,.ccc-doc small{font-size:.8rem}.ccc-drop input{max-width:100%;margin-top:8px}.ccc-drop.over{outline:2px solid var(--ccc-accent)}
.ccc-box output{display:block;margin-top:12px}.ccc-doc{padding:16px 0;border-top:1px solid #869b8250;overflow-wrap:anywhere}.ccc-doc a{display:block;margin:6px 0;font-weight:720;color:var(--ccc-accent)}.ccc-doc p{margin:4px 0 8px;font-size:.88rem}
html[data-theme=dark] .ccc-box{background:#0e1512;color:#edf6ef}
html[data-theme=light] .ccc-box{background:white;color:#15231b}
html[data-theme=dark] .worker-heading h1 span,html[data-theme=dark] .command-copy h1 span{color:#88ff55;-webkit-text-fill-color:#88ff55}
@media(prefers-reduced-motion:no-preference){.ccc-box,.es-auth .login-panel>div{animation:ccc-reveal .38s ease-out}.elite-module,.worker-launch-card{transition:transform .18s ease,box-shadow .18s ease}.elite-module:hover,.worker-launch-card:hover{transform:translateY(-3px);box-shadow:0 6px 23px #58d93a26}@keyframes ccc-reveal{from{opacity:.45;transform:translateY(6px)}to{opacity:1;transform:translateY(0)}}}
@media(max-width:800px){.ccc-search-layout{grid-template-columns:1fr}.es-auth .login-brand p,.es-auth .login-brand .brand-line{display:none}html .login-brand img{width:min(66%,300px);margin:12px 0}html .es-auth .login-panel>div{padding:18px}}
html[data-theme=dark] .elite-shell .command-hero{background:radial-gradient(ellipse at 91% 50%,#25421e66,transparent 53%),#0b100d;border-color:#354a36}
html[data-theme=dark] .elite-shell .command-hero:before{background:linear-gradient(90deg,transparent,#a0ff72,transparent)}
html[data-theme=dark] .elite-shell .command-copy .eyebrow,html[data-theme=dark] .elite-shell .worker-heading .eyebrow{color:#a3ee82}
html[data-theme=dark] .elite-shell .navbtn.active{border-color:#7fc95980;color:#a6fc83;background:#20351d}
html[data-theme=dark] .elite-shell .elite-module[data-id=library]{--launch-accent:#8dff51}
html[data-theme=dark] .elite-shell .elite-module[data-id=evidence]{--launch-accent:#42ebb0}
html[data-theme=dark] .elite-shell .worker-launch-card.clock-launch{--card-neon:#98ff59}
html[data-theme=dark] .elite-shell .worker-heading h1 span{color:#88ff55}
html .command-brand img{object-fit:contain}
html .es-auth .login-brand>p{color:#b6c6b7}
html[data-theme=light] .es-auth .es-signin{color:white!important}

.ccc-home-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:16px}
html[data-theme] .ccc-home-actions button{min-height:44px;padding:10px 16px;border:1px solid #9cea655e;border-radius:8px;background:#152114;color:#d9ffcb;font-weight:700}
html[data-theme=light] .ccc-home-actions button{background:#f4faef;color:#244818;border-color:#aacd96}
html[data-theme] .ccc-home-actions button:hover,html[data-theme] .ccc-home-actions button:focus-visible{outline:2px solid #71b847;outline-offset:2px}
html .command-brand img{filter:drop-shadow(0 8px 16px #0714053d)}
