/*
 * CoffeeGuard premium brand adaptation.
 * Adapted from Claude's navy / gold / warm-cream design system.
 * Scoped to the existing SPA, marketing site and isolated demo.
 * No global reset; no backend, API, billing or PWA behavior changes.
 */

/* --------------------------------------------------------------------------
   Existing Laravel SPA / authenticated workspace
   -------------------------------------------------------------------------- */
body.cg-workspace {
  --cg-coffee: #14243B;
  --cg-coffee-deep: #14243B;
  --cg-espresso: #14243B;
  --cg-ink: #152033;
  --cg-cream: #F5F3EE;
  --cg-gold: #C6A269;
  --cg-muted: #687486;
  --cg-line: rgba(20, 36, 59, .12);
  --cg-panel: #fffefa;
  --cg-soft: #F0EDE7;
  --cg-shadow: 0 16px 44px rgba(20, 36, 59, .065);
  --cg-shadow-hover: 0 22px 55px rgba(20, 36, 59, .105);
  color: #152033;
  background:
    radial-gradient(circle at 82% 0%, rgba(198, 162, 105, .09), transparent 28rem),
    #F5F3EE;
}

body.cg-workspace .brand-icon {
  color: transparent;
  background: url("/assets/coffeeguard/coffeeguard-logo.svg") center / contain no-repeat;
  box-shadow: none;
  border-radius: 11px;
  object-fit: contain;
}

body.cg-workspace .sidebar {
  background:
    radial-gradient(circle at 5% 100%, rgba(198, 162, 105, .15), transparent 18rem),
    linear-gradient(180deg, #192C46 0%, #14243B 100%);
}

body.cg-workspace .sidebar .brand-icon {
  background-color: transparent;
}

body.cg-workspace .workspace-info {
  border-color: rgba(228, 210, 175, .16);
  background: rgba(255, 255, 255, .055);
}

body.cg-workspace .workspace-avatar {
  color: #E4D2AF;
  background: rgba(198, 162, 105, .18);
}

body.cg-workspace .sidebar-label {
  color: #aab8ca;
}

body.cg-workspace .nav-btn {
  color: #c8d2df;
}

body.cg-workspace .nav-btn .icon {
  color: #aebfd2;
}

body.cg-workspace .nav-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, .075);
}

body.cg-workspace .nav-btn.active {
  color: #fffaf0;
  border-color: rgba(198, 162, 105, .25);
  background: linear-gradient(105deg, rgba(198, 162, 105, .19), rgba(198, 162, 105, .07));
  box-shadow: inset 3px 0 0 #C6A269;
}

body.cg-workspace .nav-btn.active .icon {
  color: #E4D2AF;
}

body.cg-workspace .sidebar-status {
  border-color: rgba(228, 210, 175, .15);
  background: rgba(255, 255, 255, .05);
}

body.cg-workspace .sidebar-status strong {
  color: #E4D2AF;
}

body.cg-workspace .sidebar-status p,
body.cg-workspace .user-mini small {
  color: #bdc8d6;
}

body.cg-workspace .user-mini {
  border-top-color: rgba(255, 255, 255, .13);
}

body.cg-workspace .avatar {
  color: #14243B;
  background: #C6A269;
}

body.cg-workspace .topbar {
  border-bottom-color: rgba(20, 36, 59, .10);
  background: rgba(245, 243, 238, .96);
}

body.cg-workspace .breadcrumb strong,
body.cg-workspace .page-heading h1,
body.cg-workspace .section-top h2 {
  color: #14243B;
}

body.cg-workspace .eyebrow {
  color: #795C2B;
}

body.cg-workspace .btn.primary {
  border-color: #C6A269;
  color: #14243B;
  background: linear-gradient(135deg, #E4D2AF 0%, #C6A269 100%);
  box-shadow: 0 8px 19px rgba(198, 162, 105, .22);
}

body.cg-workspace .btn.primary:hover {
  border-color: #bd8c25;
  color: #14243B;
  background: linear-gradient(135deg, #f5e5ba 0%, #e0b34d 100%);
  box-shadow: 0 11px 24px rgba(198, 162, 105, .28);
}

body.cg-workspace .btn-icon {
  color: #14243B;
  border-color: rgba(20, 36, 59, .13);
  background: #fffefa;
}

body.cg-workspace .btn-icon:hover {
  color: #14243B;
  background: #F0EDE7;
}

body.cg-workspace .surface {
  border-color: rgba(20, 36, 59, .10);
  box-shadow: 0 12px 34px rgba(20, 36, 59, .055);
}

body.cg-workspace .stat {
  background: linear-gradient(155deg, #fffefa 0%, #f8f4eb 100%);
}

body.cg-workspace .stat-icon {
  color: #14243B;
  background: rgba(198, 162, 105, .16);
}

body.cg-workspace .stat-icon.green {
  color: #36745a;
  background: #eaf3ec;
}

body.cg-workspace .stat-icon.orange {
  color: #94651d;
  background: #fbf1dc;
}

body.cg-workspace .stat-icon.blue {
  color: #315b85;
  background: #edf2f7;
}

body.cg-workspace .chart-bar {
  background: linear-gradient(180deg, #C6A269 0%, #14243B 100%);
  box-shadow: 0 5px 12px rgba(20, 36, 59, .12);
}

body.cg-workspace .chart-col:nth-child(2n) .chart-bar {
  background: linear-gradient(180deg, #f0d99c 0%, #315779 100%);
}

body.cg-workspace .seg-tabs {
  border-color: rgba(20, 36, 59, .11);
  background: #f2eee6;
}

body.cg-workspace .seg-tabs button.selected {
  color: #14243B;
  background: #fffefa;
  box-shadow: 0 2px 8px rgba(20, 36, 59, .09);
}

body.cg-workspace .field input:focus,
body.cg-workspace .field select:focus,
body.cg-workspace .field textarea:focus,
body.cg-workspace .select-small:focus {
  border-color: rgba(198, 162, 105, .9);
  box-shadow: 0 0 0 3px rgba(198, 162, 105, .18);
}

body.cg-workspace a:focus-visible,
body.cg-workspace button:focus-visible,
body.cg-workspace input:focus-visible,
body.cg-workspace select:focus-visible,
body.cg-workspace textarea:focus-visible {
  outline-color: rgba(198, 162, 105, .9);
}

body.cg-workspace .hint.warning {
  border-color: rgba(198, 162, 105, .32);
  color: #74551b;
  background: #fbf5e8;
}

body.cg-workspace .auth-aside {
  background:
    radial-gradient(circle at 82% 78%, rgba(198, 162, 105, .20), transparent 19rem),
    linear-gradient(145deg, #14243B 0%, #192C46 55%, #14243B 100%);
}

body.cg-workspace .auth-aside::before {
  border-color: rgba(228, 210, 175, .12);
}

body.cg-workspace .auth-aside::after {
  border-color: rgba(198, 162, 105, .28);
}

body.cg-workspace .auth-aside h1 span {
  color: #C6A269;
}

body.cg-workspace .auth-aside .brand-icon {
  background-color: transparent;
}

body.cg-workspace .auth-aside .auth-pill {
  border-color: rgba(228, 210, 175, .22);
  color: #E4D2AF;
}

body.cg-workspace .auth-card {
  border-color: rgba(20, 36, 59, .10);
  box-shadow: 0 24px 70px rgba(20, 36, 59, .09);
}

body.cg-workspace .auth-card h2,
body.cg-workspace .auth-card > .brand {
  color: #14243B;
}

body.cg-workspace .auth-hero-art {
  display: none;
}

@media (min-width: 1500px) and (min-height: 820px) {
  body.cg-workspace .auth-hero-art {
    display: block;
    position: absolute;
    z-index: 0;
    right: clamp(28px, 5vw, 76px);
    bottom: 76px;
    width: min(340px, 38%);
    height: auto;
    border-radius: 20px;
    box-shadow: 0 20px 58px rgba(0, 0, 0, .22);
    opacity: .96;
    pointer-events: none;
  }

  body.cg-workspace .auth-content {
    max-width: 520px;
    padding-bottom: 190px;
  }
}

@media (max-width: 960px) {
  body.cg-workspace .auth-hero-art {
    display: none;
  }
}

/* --------------------------------------------------------------------------
   Existing marketing landing page
   -------------------------------------------------------------------------- */
body.cg-marketing {
  --ink: #152033;
  --espresso: #14243B;
  --coffee: #14243B;
  --coffee-2: #315779;
  --gold: #C6A269;
  --cream: #F5F3EE;
  --paper: #fffefa;
  --line: rgba(20, 36, 59, .12);
  --muted: #687486;
  --green: #36745a;
  --shadow: 0 24px 70px rgba(20, 36, 59, .12);
  color: #152033;
  background: #F5F3EE;
}

body.cg-marketing .site-header {
  border-bottom-color: rgba(255, 255, 255, .10);
  background: rgba(20, 36, 59, .96);
}

body.cg-marketing .site-brand-mark {
  color: transparent;
  font-size: 0;
  border: 0;
  background: url("/assets/coffeeguard/coffeeguard-logo.svg") center / contain no-repeat;
  box-shadow: none;
}

body.cg-marketing .nav-cta {
  border-color: rgba(228, 210, 175, .35);
  color: #14243B;
  background: linear-gradient(135deg, #E4D2AF, #C6A269);
  box-shadow: 0 8px 22px rgba(0, 0, 0, .18);
}

body.cg-marketing .hero-copy h1 em {
  color: #795C2B;
}

body.cg-marketing .scroll-progress span {
  background: linear-gradient(90deg, #14243B, #C6A269);
  box-shadow: 0 0 12px rgba(198, 162, 105, .35);
}

body.cg-marketing .visual-orbit {
  border-color: rgba(198, 162, 105, .20);
}

body.cg-marketing .eyebrow {
  color: #795C2B;
}

body.cg-marketing .eyebrow-dot {
  background: #C6A269;
  box-shadow: 0 0 0 4px rgba(198, 162, 105, .14), 0 0 13px rgba(198, 162, 105, .35);
}

body.cg-marketing .button-primary {
  color: #14243B;
  background: linear-gradient(135deg, #E4D2AF, #C6A269);
  box-shadow: 0 12px 26px rgba(198, 162, 105, .24);
}

body.cg-marketing .button-primary:hover {
  box-shadow: 0 16px 32px rgba(198, 162, 105, .30);
}

body.cg-marketing .button-secondary {
  border-color: rgba(20, 36, 59, .20);
  color: #14243B;
  background: rgba(255, 254, 250, .86);
}

body.cg-marketing .preview-sidebar {
  background: linear-gradient(180deg, #14243B, #14243B);
}

body.cg-marketing .preview-logo span {
  color: #14243B;
  background: linear-gradient(135deg, #E4D2AF, #C6A269);
}

body.cg-marketing .preview-nav.active {
  color: #fffaf0;
  background: rgba(198, 162, 105, .17);
  box-shadow: inset 2px 0 #C6A269;
}

body.cg-marketing .preview-nav i {
  color: #C6A269;
}

body.cg-marketing .signal-strip {
  border-color: rgba(20, 36, 59, .10);
  background: rgba(255, 254, 250, .82);
}

body.cg-marketing .signal-inner {
  color: #14243B;
}

body.cg-marketing .signal-inner > span {
  color: #687486;
}

body.cg-marketing .signal-inner i {
  background: #C6A269;
}

body.cg-marketing .product-section {
  background:
    radial-gradient(circle at 80% 20%, rgba(198, 162, 105, .17), transparent 33%),
    linear-gradient(125deg, #14243B, #14243B 68%);
}

body.cg-marketing .product-copy .eyebrow,
body.cg-marketing .payment-layout .eyebrow {
  color: #E4D2AF;
}

body.cg-marketing .workflow-section {
  background: #F0EDE7;
}

body.cg-marketing .workflow-step > span {
  border-color: rgba(198, 162, 105, .48);
  color: #14243B;
}

body.cg-marketing .price-card.featured {
  border-color: #C6A269;
  box-shadow: 0 17px 40px rgba(20, 36, 59, .12);
}

body.cg-marketing .popular-tag {
  color: #14243B;
  background: linear-gradient(135deg, #E4D2AF, #C6A269);
}

body.cg-marketing .payment-section {
  background: linear-gradient(110deg, #14243B, #14243B);
}

body.cg-marketing .final-cta {
  border-color: rgba(228, 210, 175, .15);
  background: linear-gradient(115deg, #14243B, #14243B);
  box-shadow: 0 22px 50px rgba(20, 36, 59, .18);
}

body.cg-marketing .final-cta .eyebrow {
  color: #E4D2AF;
}

body.cg-marketing .button-light {
  color: #14243B;
  background: linear-gradient(135deg, #E4D2AF, #C6A269);
}

body.cg-marketing .site-footer {
  border-top-color: rgba(20, 36, 59, .10);
  background: #F0EDE7;
}

body.cg-marketing .footer-inner .site-brand-mark {
  background-size: contain;
}

body.cg-marketing .footer-links a:hover,
body.cg-marketing .faq-list summary span {
  color: #795C2B;
}

/* --------------------------------------------------------------------------
   Isolated public demo: keep its existing navy/gold system, use the same logo.
   -------------------------------------------------------------------------- */
body.cg-demo .brand-icon {
  color: transparent;
  font-size: 0;
  background: url("/assets/coffeeguard/coffeeguard-logo.svg") center / contain no-repeat;
  box-shadow: none;
  border: 0;
}

/* Premium UI V2 candidate: visual-only, staging approval required. */
body.cg-marketing .cg-site-loader { display: none; }
body.cg-marketing .site-header { background: #14243B; backdrop-filter: none; }
body.cg-marketing .site-header.is-scrolled { background: #14243B; backdrop-filter: none; }
body.cg-marketing .hero-lead, body.cg-marketing .hero-proof { color: #687486; }
body.cg-marketing .button-primary, body.cg-marketing .nav-cta,
body.cg-marketing .button-light { background: #C6A269; color: #14243B; box-shadow: none; }
body.cg-marketing .button-primary:hover, body.cg-marketing .nav-cta:hover,
body.cg-marketing .button-light:hover { background: #D5B986; box-shadow: none; }
body.cg-marketing .hero-copy h1 { letter-spacing: -.055em; }
body.cg-marketing .preview-window { border-radius: 12px; transform: none; box-shadow: 0 14px 36px rgba(20,36,59,.14); }
body.cg-marketing .preview-window:hover { transform: none; }
body.cg-marketing .visual-orbit, body.cg-marketing .floating-chip { animation: none; }
body.cg-marketing .visual-orbit { display: none; }
body.cg-marketing .preview-window::after { animation: none; }
body.cg-marketing .feature-card, body.cg-marketing .price-card, body.cg-marketing .final-cta { border-radius: 12px; }
body.cg-marketing .button, body.cg-marketing .nav-cta { border-radius: 8px; }
.has-motion body.cg-marketing [data-reveal] { transition: opacity .55s ease-out, transform .55s ease-out; filter: none; transform: translateY(10px); }
.has-motion body.cg-marketing [data-reveal].is-visible { opacity: 1; transform: none; }
body.cg-marketing [data-delay="1"] { --reveal-delay: 80ms; }
body.cg-marketing [data-delay="2"] { --reveal-delay: 160ms; }
body.cg-marketing [data-delay="3"] { --reveal-delay: 240ms; }
body.cg-marketing .hero-copy.is-visible > *, body.cg-marketing .hero-visual.is-visible > *,
body.cg-marketing .section-heading.is-visible > *, body.cg-marketing .product-copy.is-visible > *,
body.cg-marketing .payment-layout > div.is-visible > * { animation: none; }
@media (max-width: 850px) {
  body.cg-marketing .site-nav { background: #14243B; }
  body.cg-marketing .hero-visual { max-width: 100%; }
  body.cg-marketing .floating-chip { display: none; }
  body.cg-marketing .preview-window { max-width: 100%; }
}
body.cg-workspace .auth-aside { background: #14243B; }
body.cg-workspace .auth-aside::before, body.cg-workspace .auth-aside::after { display: none; }
body.cg-workspace .auth-panel { background: #F5F3EE; }
body.cg-workspace .auth-card { background: #fff; border-radius: 12px; box-shadow: 0 8px 26px rgba(20,36,59,.07); }
body.cg-workspace .auth-card .field input, body.cg-workspace .auth-card .field select { border-radius: 8px; }
body.cg-workspace .btn.primary { background: #C6A269; color: #14243B; border-radius: 8px; box-shadow: none; }
body.cg-workspace .btn.primary:hover { background: #D5B986; box-shadow: none; }
body.cg-workspace .auth-card .cg-pwa-install { border-radius: 8px; }
body.cg-workspace .surface, body.cg-workspace .stat { border-radius: 12px; }
body.cg-workspace .stat { background: #fff; }
body.cg-workspace .auth-aside, body.cg-workspace .auth-panel, body.cg-workspace .auth-card { animation: none; }
body.cg-workspace .auth-aside *, body.cg-workspace .auth-card > *, body.cg-workspace .auth-card .field { animation-duration: .45s; animation-delay: 0s; }
@media (max-width: 760px) {
  body.cg-workspace .auth-aside { padding: 18px 20px; }
  body.cg-workspace .auth-content { margin: 16px 0 0; padding: 0; }
  body.cg-workspace .auth-aside h1 { margin-top: 10px; font-size: clamp(24px, 7vw, 32px); line-height: 1.12; }
  body.cg-workspace .auth-aside .lead { margin-top: 9px; font-size: 12px; line-height: 1.5; }
  body.cg-workspace .auth-panel { padding: 16px 16px 32px; }
  body.cg-workspace .auth-card { padding: 22px 20px; }
  body.cg-workspace .auth-card > .brand { margin-bottom: 20px; }
}
body.cg-demo { --navy: #14243B; --navy-2: #243B55; --gold: #C6A269; --muted: #687486; --bg: #F5F3EE; }
body.cg-demo .sidebar, body.cg-demo .welcome { background: #14243B; }
body.cg-demo .welcome { border-radius: 12px; box-shadow: none; }
body.cg-demo .welcome::after, body.cg-demo .welcome-glow, body.cg-demo .hero-graphic { display: none; }
body.cg-demo .welcome h1 em { color: #C6A269; }
body.cg-demo .btn-gold { background: #C6A269; color: #14243B; box-shadow: none; }
body.cg-demo .btn-gold:hover:not(:disabled) { background: #D5B986; box-shadow: none; }
body.cg-demo .demo-control, body.cg-demo .metric, body.cg-demo .surface { border-radius: 12px; box-shadow: none; }
body.cg-demo .module-link, body.cg-demo .btn, body.cg-demo .header-login, body.cg-demo .small-btn { border-radius: 8px; }
body.cg-demo .action-surface input, body.cg-demo .action-surface select { border-radius: 8px; }
@media (prefers-reduced-motion: reduce) {
  .has-motion body.cg-marketing [data-reveal] { opacity: 1; transform: none; transition: none; }
  body.cg-marketing *, body.cg-workspace *, body.cg-demo * { scroll-behavior: auto; }
}

/* CG staging: PWA control palette */
#app .cg-pwa-install { background: #C6A269; color: #14243B; box-shadow: none; }
#app .cg-pwa-install:hover { background: #D8BD90; }
#app .cg-pwa-install:focus-visible { outline: 3px solid #C6A269; outline-offset: 3px; }


/* CoffeeGuard Motion V4 | progressive enhancement, operational first */
:root { --cg-motion-fast: 180ms; --cg-motion-enter: 520ms; --cg-motion-curve: cubic-bezier(.2,.75,.25,1); }
@keyframes cg-motion-rise { from { opacity: .22; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes cg-motion-panel { from { opacity: .72; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes cg-motion-notice-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes cg-motion-notice-out { to { opacity: 0; transform: translateY(-6px); } }
/* Never hide readable content while waiting for a scroll observer. */
body.cg-marketing [data-reveal] { opacity: 1; transform: none; filter: none; transition: none; }
body.cg-marketing [data-reveal].cg-motion-enter { animation: cg-motion-rise var(--cg-motion-enter) var(--cg-motion-curve) backwards; }
body.cg-marketing [data-delay="1"] { --cg-motion-delay: 60ms; }
body.cg-marketing [data-delay="2"] { --cg-motion-delay: 120ms; }
body.cg-marketing [data-delay="3"] { --cg-motion-delay: 180ms; }
body.cg-marketing [data-reveal].cg-motion-enter { animation-delay: var(--cg-motion-delay, 0ms); }
body.cg-marketing .cg-site-loader { display: none; }
body.cg-marketing .floating-chip, body.cg-marketing .orbit-a, body.cg-marketing .orbit-b,
body.cg-marketing .cta-orbit, body.cg-marketing .hero-scroll span,
body.cg-marketing .feature-icon, body.cg-marketing .preview-chart i,
body.cg-marketing .preview-window::after { animation: none !important; }
body.cg-marketing .preview-chart i { opacity: 1; transform: none; }
body.cg-marketing .button, body.cg-marketing .nav-cta,
body.cg-workspace .btn, body.cg-workspace .nav-btn, body.cg-demo .btn, body.cg-demo .module-link {
  transition: background-color var(--cg-motion-fast) ease, color var(--cg-motion-fast) ease, border-color var(--cg-motion-fast) ease, transform var(--cg-motion-fast) ease;
}
/* Auth: one entrance per panel; no repeated animations on input fields. */
body.cg-workspace .auth-aside *, body.cg-workspace .auth-card *, body.cg-workspace .auth-aside::after { animation: none; }
body.cg-workspace .auth-aside { animation: cg-motion-rise 460ms var(--cg-motion-curve) both; }
body.cg-workspace .auth-panel { animation: none; }
body.cg-workspace .auth-card { animation: cg-motion-rise 480ms var(--cg-motion-curve) both; }
body.cg-workspace .auth-card .btn.is-loading::after { animation: cg-v2-spin .72s linear infinite; }
body.cg-workspace .shell { animation: cg-motion-panel 240ms ease-out both; }
body.cg-workspace #content > *:not(.cg-v6-loading) { animation: cg-motion-panel 230ms ease-out both; }
body.cg-workspace #content .summary-grid > *, body.cg-workspace #content .two-col > *, body.cg-workspace #content .surface { animation: none; }
body.cg-workspace .modal-card { animation: cg-motion-panel 220ms ease-out both; }
body.cg-workspace .cg-v6-skeleton { animation: none; }
body.cg-demo .view-panel { animation: cg-motion-panel 250ms ease-out both; }
body.cg-demo .metric, body.cg-demo .surface, body.cg-workspace .stat { transition: border-color 180ms ease; }
/* Nonmodal center notification: does not trap focus or cover the whole app. */
.cg-auth-notice { position: fixed; z-index: 2000; inset: 0; display: grid; place-items: center; padding: 16px; pointer-events: none; }
.cg-auth-notice[hidden] { display: none; }
.cg-auth-notice-card { display: grid; grid-template-columns: 34px minmax(0,1fr); align-items: start; gap: 12px; width: min(100%,420px); padding: 18px; background: #fffefa; color: #14243b; border: 1px solid #e5d9c5; border-inline-start: 4px solid #a84d43; border-radius: 12px; box-shadow: 0 12px 36px rgba(20,36,59,.18); animation: cg-motion-notice-in 320ms var(--cg-motion-curve) both; }
.cg-auth-notice-card.cg-leaving { animation: cg-motion-notice-out 250ms ease both; }
.cg-auth-notice-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 8px; background: #faeae6; color: #a84d43; font-size: 20px; font-weight: 700; }
.cg-auth-notice-card strong { display: block; font-size: 15px; line-height: 1.4; }
.cg-auth-notice-card p { margin: 5px 0 0; color: #46556a; font-size: 13px; line-height: 1.55; overflow-wrap: anywhere; }
.cg-auth-feedback { margin: 12px 0 0; color: #813a32; font-size: 13px; line-height: 1.55; overflow-wrap: anywhere; }
.cg-auth-feedback[hidden] { display: none; }
@media (hover: hover) and (pointer: fine) { body.cg-marketing .button:hover, body.cg-marketing .nav-cta:hover { transform: translateY(-2px); } }
@media (hover: none), (pointer: coarse) { body.cg-marketing .button:hover, body.cg-workspace .btn:hover, body.cg-workspace .stat:hover, body.cg-demo .metric:hover, body.cg-demo .surface:hover { transform: none; } }
@media (max-width: 1024px) { body.cg-workspace .auth-card { max-width: 100%; } body.cg-marketing .hero-visual { min-width: 0; } }
@media (max-width: 760px) {
  body.cg-workspace .auth-card .field input, body.cg-workspace .auth-card .field select { font-size: 16px; min-height: 44px; }
  body.cg-workspace .auth-card .btn, body.cg-marketing .button { min-height: 44px; }
  body.cg-workspace .auth-card { min-width: 0; }
  body.cg-marketing [data-reveal].cg-motion-enter { animation-duration: 400ms; animation-delay: 0ms; }
}
@media (prefers-reduced-motion: reduce) {
  body.cg-marketing *, body.cg-workspace *, body.cg-demo *,
  body.cg-marketing *::before, body.cg-marketing *::after,
  body.cg-workspace *::before, body.cg-workspace *::after,
  body.cg-demo *::before, body.cg-demo *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Signature workspace: shared brand, motion and loading hierarchy. */
body.cg-workspace { --cg-signature-ease:cubic-bezier(.22,1,.36,1); }
.cg-wordmark { font-family:system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif; font-weight:750; letter-spacing:-.065em; white-space:nowrap; }
.cg-wordmark > span { color:#C6A269; }
.auth-card .cg-wordmark > span {color:#87652f;}
body.cg-workspace .auth-aside .brand, body.cg-workspace .auth-card .brand {font-size:24px;}
body.cg-workspace .auth-aside {background:radial-gradient(ellipse at 80% 100%,#263e56 0%,#14243b 63%);}
body.cg-workspace .auth-aside h1 {font-family:Georgia,'Times New Roman',serif;font-weight:400;letter-spacing:-.045em;line-height:1.13;}
body.cg-workspace .auth-aside h1 span {font-style:italic;color:#C6A269;}
body.cg-workspace .auth-aside .auth-pill {letter-spacing:.09em;font-size:10px;}
body.cg-workspace .auth-panel {background:#F5F3EE;}
body.cg-workspace .auth-card {border:1px solid #e3dbcd;border-radius:16px;box-shadow:0 14px 40px rgba(20,36,59,.07);}
body.cg-workspace .auth-card h2 {font-family:Georgia,'Times New Roman',serif;font-weight:400;letter-spacing:-.035em;color:#14243B;}
body.cg-workspace .auth-card .eyebrow {color:#86652f;letter-spacing:.13em;}
body.cg-workspace .auth-card .field input:focus {border-color:#987440;outline:2px solid #c6a269;outline-offset:1px;}
@keyframes cg-signature-arrive {from{opacity:.55;transform:translateY(14px)}to{opacity:1;transform:none}}
@keyframes cg-signature-lockup {from{opacity:.15;transform:translateY(8px) scale(.97)}to{opacity:1;transform:none}}
@keyframes cg-signature-line {0%{transform:translateX(-110%)}100%{transform:translateX(280%)}}
@keyframes cg-signature-pulse {0%,100%{opacity:.68}50%{opacity:1}}
body.cg-workspace .auth-aside {animation:cg-signature-arrive 850ms var(--cg-signature-ease) both;}
body.cg-workspace .auth-card {animation:cg-signature-arrive 920ms var(--cg-signature-ease) both;}
body.cg-workspace .auth-card:focus-within {animation:none;}
body.cg-workspace .cg-signature-boot {display:flex;flex-direction:column;align-items:center;justify-content:center;gap:22px;min-height:100vh;min-height:100svh;background:#14243B;color:#F5F3EE;animation:none;}
body.cg-workspace .cg-signature-boot::before {display:none;}
.cg-signature-boot .cg-wordmark {font-size:clamp(32px,7vw,56px);animation:cg-signature-lockup 850ms var(--cg-signature-ease) both;}
.cg-boot-caption {font-size:13px;color:#e2e5e9;text-align:center;}
.cg-brand-track {display:block;position:relative;width:88px;height:2px;border-radius:2px;overflow:hidden;background:rgba(198,162,105,.22);flex:none;}
.cg-brand-track i {display:block;width:42%;height:100%;background:#C6A269;animation:cg-signature-line 1.25s ease-in-out infinite;}
.cg-auth-progress {display:flex;gap:10px;align-items:center;color:#536176;font-size:12px;min-height:24px;}
.cg-auth-progress[hidden] {display:none;}
.cg-auth-progress .cg-brand-track,.cg-load-caption .cg-brand-track {width:32px;}
.cg-load-caption {display:flex;gap:10px;align-items:center;font-size:12px;color:#536176;min-width:0;}
body.cg-workspace .cg-v6-skeleton {background:#e7e8e7;animation:cg-signature-pulse 1.6s ease-in-out 3;}
body.cg-workspace .cg-v6-loading {animation:cg-motion-panel 260ms ease-out both;}
body.cg-workspace .shell {animation:cg-motion-panel 370ms var(--cg-signature-ease) both;}
body.cg-workspace #content > *:not(.cg-v6-loading) {animation:cg-motion-panel 330ms var(--cg-signature-ease) both;}
body.cg-workspace #content > .summary-grid .stat {animation:cg-motion-panel 330ms var(--cg-signature-ease) both;}
body.cg-workspace #content > .summary-grid .stat:nth-child(2){animation-delay:35ms;}
body.cg-workspace #content > .summary-grid .stat:nth-child(3){animation-delay:70ms;}
body.cg-workspace #content > .summary-grid .stat:nth-child(4){animation-delay:105ms;}
.cg-help-entry {margin-top:16px;text-align:center;}
.cg-help-entry .text-button {display:inline-flex;align-items:center;gap:8px;min-height:44px;}
.cg-support-btn {width:100%;margin-bottom:8px;}
.cg-help-list {display:grid;gap:10px;}
.cg-help-list details {border:1px solid #e3dbcd;border-radius:9px;background:#fffefa;padding:12px 14px;}
.cg-help-list summary {cursor:pointer;font-weight:650;color:#14243b;min-height:32px;}
.cg-help-list p {margin:8px 0 0;color:#46556a;line-height:1.65;}
@media(max-width:1024px){body.cg-workspace .auth-card{min-width:0;}body.cg-workspace .auth-card .btn,body.cg-workspace .sidebar .nav-btn{min-height:44px;}body.cg-workspace .auth-card .field input{min-height:44px;font-size:16px;}}
@media(max-width:960px){body.cg-workspace .mobile-menu{display:inline-flex;}body.cg-workspace .sidebar{overscroll-behavior:contain;}}
@media(max-width:760px){body.cg-workspace .auth-card{animation-duration:680ms;}body.cg-workspace .auth-aside{animation-duration:650ms;}body.cg-workspace .auth-aside h1{font-size:clamp(25px,6.4vw,34px);}body.cg-workspace .auth-card > .brand{margin-bottom:16px;}body.cg-workspace .auth-card .form-stack{margin-top:20px;}}
@media(prefers-reduced-motion:reduce){body.cg-workspace .cg-signature-boot .cg-wordmark,body.cg-workspace .cg-brand-track i,body.cg-workspace .cg-v6-skeleton{animation:none!important;}body.cg-workspace .cg-brand-track i{width:100%;}}

/* Workspace polish: retain real backend values, no simulated KPI. */
@media(prefers-reduced-motion:no-preference){.chart-bars .chart-bar{transform-origin:bottom;animation:cgWorkspaceGrowth .68s cubic-bezier(.22,.8,.25,1) both}.chart-bars .chart-col:nth-child(2n) .chart-bar{animation-delay:45ms}.chart-bars .chart-bar{transition:filter .2s}.chart-bars .chart-bar:hover,.chart-bars .chart-bar:focus-visible{filter:brightness(1.15)}}
@keyframes cgWorkspaceGrowth{from{transform:scaleY(.1)}to{transform:scaleY(1)}}
.chart-bar:focus-visible{outline:2px solid #a88143;outline-offset:2px}

/* Signature public help modal */
.cg-help-premium {gap:12px;}.cg-care-intro{background:#f3eee4;border:1px solid #e2d7c4;border-radius:9px;padding:14px 16px;animation:cg-care-reveal .55s ease-out both;}.cg-care-kicker{font-size:10px;font-weight:750;letter-spacing:.15em;color:#796036;}.cg-care-intro p{font-size:14px;line-height:1.6;margin-top:7px;}.cg-wa-link,.cg-care-ticket{display:flex;align-items:center;gap:12px;justify-content:space-between;min-height:56px;padding:12px 14px;border-radius:8px;text-decoration:none!important;transition:background .22s,transform .22s;}.cg-wa-link{background:#14243b;color:#f5f3ee!important;border:1px solid #14243b;}.cg-wa-link:hover{background:#253c59;transform:translateY(-1px)}.cg-wa-link strong,.cg-care-ticket strong{display:block;font-size:14px;line-height:1.4;}.cg-wa-link small,.cg-care-ticket small{display:block;font-size:12px;line-height:1.5;margin-top:3px;font-weight:400;overflow-wrap:anywhere}.cg-wa-link small{color:#e0d7c6}.cg-wa-mark{display:grid;place-items:center;flex:none;border:1px solid #c6a269;border-radius:50%;height:36px;width:36px;color:#e3c994;font-size:11px;font-weight:800}.cg-wa-link>span:nth-child(2),.cg-care-ticket>span:first-child{flex:1;min-width:0}.cg-care-ticket{background:#f1e7d5;border:1px solid #c6a269;color:#14243b!important}.cg-care-ticket:hover{background:#e7d8bc}.cg-help-list .cg-care-hours{font-size:12px;color:#526071;line-height:1.5;margin:0 2px}.cg-help-premium details{padding:9px 12px}.cg-help-premium summary{min-height:34px;line-height:1.5;padding-block:5px}.cg-help-premium a:focus-visible{outline:3px solid #a88143;outline-offset:2px}@keyframes cg-care-reveal{from{opacity:.5;transform:translateY(9px)}to{opacity:1;transform:none}}@media(max-width:480px){.cg-wa-link,.cg-care-ticket{gap:8px;padding:10px}.cg-wa-mark{width:30px;height:30px}.cg-wa-link small{font-size:11px}}@media(prefers-reduced-motion:reduce){.cg-care-intro{animation:none!important}.cg-wa-link,.cg-care-ticket{transition:none!important;transform:none!important}}
