@media screen {
 body:is(.cc-glass,.cc-standalone)[data-mode="dark"] {
  --ink:#eef6ff;
  --muted:#c4d4e2;
  --line:#527087;
  --theme-field:#203448;
  --theme-row:#22384a;
  --cc-readable-ink:#eef6ff;
  --cc-readable-secondary:#c4d4e2;
  --cc-readable-error:#ffb4bd;
  --glass-field:#203448;
  --glass-surface:#192d3e;
 }
 body:is(.cc-glass,.cc-standalone)[data-mode="dark"]
 :is(#counter,#frontPage,#safePage,#pettyPage,header,.panel,.recon,.metric,.field,.theme-panel,.team-settings,.business-picker,.extra-summary,#ccV99Banner,#ccTransferBar,#ccConfirmBox) {
  background:linear-gradient(145deg,#223c4d,#172938) !important;
  color:#eef6ff !important;
  border-color:#57758b !important;
 }
 body:is(.cc-glass,.cc-standalone)[data-mode="dark"]
 :is(#counter,#frontPage,#safePage,#pettyPage,.panel,header,#ccV99Banner,#ccTransferBar)
 :is(h1,h2,h3,label,.sub,.note,.muted,.sumline,.doc-footer,.extra-summary,.qty,.count-total,.count-qty,output,th,td) {
  color:#eef6ff !important;
 }
 body:is(.cc-glass,.cc-standalone)[data-mode="dark"]
 :is(#counter,#frontPage,#safePage,#pettyPage,.panel,.meta,.theme-panel)
 :is(input:not([type="checkbox"]):not([type="radio"]):not([type="color"]),select,textarea) {
  background:#203448 !important;
  color:#eef6ff !important;
  -webkit-text-fill-color:#eef6ff !important;
  border-color:#708da4 !important;
 }
 body:is(.cc-glass,.cc-standalone)[data-mode="dark"]
 :is(#counter,#frontPage,#safePage,#pettyPage,.panel,.meta)
 :is(input,textarea)::placeholder {
  color:#becfdd !important;
  opacity:1;
 }
 body:is(.cc-glass,.cc-standalone)[data-mode="dark"]
 :is(#counter,#frontPage,#safePage,#pettyPage)
 :is(.money-table th,.recon-grid > div,.sumline,.doc-footer,.extra-summary) {
  background:#22384a !important;
 }
 body:is(.cc-glass,.cc-standalone)[data-mode="dark"]
 :is(#counter,#frontPage,#safePage,#pettyPage)
 :is(.money-table td,.sumline,.doc-footer,.extra-summary,.recon-grid > div) strong {
  color:#eef6ff !important;
 }
 body:is(.cc-glass,.cc-standalone)[data-mode="dark"]
 :is(#counter,#frontPage,#safePage,#pettyPage)
 :is(.red-label,#difference[data-negative="true"],#differenceInput.negative,#pettyDifference.negative) {
  color:#ffb4bd !important;
  -webkit-text-fill-color:#ffb4bd !important;
 }
 body:is(.cc-glass,.cc-standalone)[data-mode="dark"] .cc-document-date-label {
  color:#eef6ff !important;
 }
 /* Pale leaf green inputs use dark digits in either appearance mode. */
 body:is(.cc-glass,.cc-standalone)
 :is(#frontPage,#pettyPage,#counter:not([data-part="safe"]))
 :is(#safeAdd,#deductOther,#changeFloat,#dailySales,#other,#change,#sales) {
  background:#e2f3c5 !important;
  color:#213b17 !important;
  -webkit-text-fill-color:#213b17 !important;
  border-color:#83a852 !important;
  box-shadow:inset 0 1px 3px #47752b1a !important;
 }
 body:is(.cc-glass,.cc-standalone)
 :is(#frontPage,#pettyPage,#counter:not([data-part="safe"]))
 :is(#safeAdd,#deductOther,#changeFloat,#dailySales,#other,#change,#sales)::placeholder {
  color:#49613b !important;
  opacity:1;
 }
 body:is(.cc-glass,.cc-standalone)[data-mode="dark"]
 :is(#ccV99Banner #ccV99ModeLabel,#ccV99Banner #ccV99Network) {
  color:#eef6ff !important;
  text-shadow:none;
 }
}

@media screen {
 body:is(.cc-glass,.cc-standalone) #pettyPage #pettyLimit,
 body:is(.cc-glass,.cc-standalone) #counter[data-part="petty"] #sales {
  background:#fff3c4 !important;
  color:#44350d !important;
  -webkit-text-fill-color:#44350d !important;
  border-color:#a98732 !important;
  box-shadow:inset 0 1px 3px #7a5b181a !important;
 }
 body:is(.cc-glass,.cc-standalone) #pettyPage #pettyLimit::placeholder,
 body:is(.cc-glass,.cc-standalone) #counter[data-part="petty"] #sales::placeholder {
  color:#68551d !important;
  opacity:1;
 }
}

@media screen {
 body:is(.cc-glass,.cc-standalone) #frontPage :is(#safeAdd,#deductOther,#changeFloat,#dailySales):is(:focus,.cc-active-input),
 body:is(.cc-glass,.cc-standalone) #counter[data-part="front"] :is(#safeAdd,#other,#change,#sales):is(:focus,.cc-active-input) {
  background:#d4edac !important;
  color:#213b17 !important;
  -webkit-text-fill-color:#213b17 !important;
  border-color:#587b30 !important;
  outline:2px solid #587b30;
  outline-offset:2px;
 }
 body:is(.cc-glass,.cc-standalone) #pettyPage #pettyLimit:is(:focus,.cc-active-input),
 body:is(.cc-glass,.cc-standalone) #counter[data-part="petty"] #sales:is(:focus,.cc-active-input) {
  background:#ffebb1 !important;
  color:#44350d !important;
  -webkit-text-fill-color:#44350d !important;
  border-color:#8b681c !important;
  outline:2px solid #8b681c;
  outline-offset:2px;
 }
}

@media screen {
 body:is(.cc-glass,.cc-standalone) #pettyPage .extra-summary:has(:is(#pettyPageTotal,#pettyGrandTotal,#pettyLimit)),
 body:is(.cc-glass,.cc-standalone) #counter[data-part="petty"] :is(.sumline,.recon-grid > div:has(:is(#combined,#sales))) {
  background:#e1f1ff !important;
  color:#163e5b !important;
  border-color:#78a8cd !important;
 }
 body:is(.cc-glass,.cc-standalone) #pettyPage .extra-summary:has(:is(#pettyPageTotal,#pettyGrandTotal,#pettyLimit)) :is(label,strong,span),
 body:is(.cc-glass,.cc-standalone) #counter[data-part="petty"] :is(.sumline,.recon-grid > div:has(:is(#combined,#sales))) :is(label,strong,span,output) {
  color:#163e5b !important;
 }
}

@media screen {
 body:is(.cc-glass,.cc-standalone) :is(#safePage,#pettyPage,#counter:not([data-part="front"])):is(#safePage,#pettyPage,#counter)
 :is(.sumline,.doc-footer,.extra-summary,.recon-grid > div):has(> :is(
 #safePageTotal,#safeDocTotal,#safeGrandTotal,#pettyPageTotal,#pettyDocTotal,#pettyGrandTotal,#pettyLimit,#pettyDifference,
 #total,#docTotal,#combined,#sales,#difference)) {
  display:grid !important;
  grid-template-columns:minmax(0,1fr) minmax(110px,42%) !important;
  align-items:center !important;
  gap:8px !important;
  width:100% !important;
  max-width:none !important;
  margin-inline:0 !important;
  padding:9px 10px !important;
  box-sizing:border-box !important;
 }
 body:is(.cc-glass,.cc-standalone) :is(#safePage,#pettyPage,#counter:not([data-part="front"])):is(#safePage,#pettyPage,#counter)
 :is(#safePageTotal,#safeDocTotal,#safeGrandTotal,#pettyPageTotal,#pettyDocTotal,#pettyGrandTotal,#pettyLimit,#pettyDifference,
 #total,#docTotal,#combined,#sales,#difference) {
  display:block !important;
  width:100% !important;
  min-width:0 !important;
  max-width:100% !important;
  margin:0 !important;
  box-sizing:border-box !important;
  text-align:right !important;
  padding-right:var(--cc-align-padding,5px) !important;
  white-space:nowrap;
  font-variant-numeric:tabular-nums;
 }
}

/* R200: keep receipt and summary spacing compact in safe and petty modes. */
@media screen {
 body:is(.cc-glass,.cc-standalone) :is(#safePage,#pettyPage,#counter:not([data-part="front"])):is(#safePage,#pettyPage,#counter) :is(.extra-summary,.sumline,.doc-footer,.recon-grid > div) {
  margin-block:6px 0 !important;
  min-height:40px !important;
  padding-block:6px !important;
  line-height:1.3 !important;
 }
 body:is(.cc-glass,.cc-standalone) :is(#safePage,#pettyPage,#counter:not([data-part="front"])):is(#safePage,#pettyPage,#counter) :is(.safe-doc-section,#docsBox,#countTotals) {
  margin-block:10px 0 !important;
  padding-block:8px 0 !important;
 }
 body:is(.cc-glass,.cc-standalone) :is(#safePage,#pettyPage,#counter:not([data-part="front"])):is(#safePage,#pettyPage,#counter) :is(.safe-doc-section h2,.doc-head) {margin-block:0 6px !important;}
 body:is(.cc-glass,.cc-standalone) :is(#safePage,#pettyPage,#counter:not([data-part="front"])):is(#safePage,#pettyPage,#counter) .recon-grid {gap:0 !important;}
}

/* R201: compact team workspace; login and printed reports retain their layout. */
@media screen {
 body.team-count-page:has(#workspace:not([hidden])) > header {
  display:flex!important;flex-wrap:wrap!important;align-items:center!important;
  gap:6px 12px!important;padding:8px 12px!important;margin:6px 10px!important;
 }
 body.team-count-page:has(#workspace:not([hidden])) > header .cc-mode-top {margin:0!important;padding:0!important;}
 body.team-count-page:has(#workspace:not([hidden])) > header .cc-mode-top .cc-back-mode {margin:0!important;padding:8px 12px!important;}
 body.team-count-page:has(#workspace:not([hidden])) > header > p[role="status"] {order:3;flex:1 0 100%;margin:0!important;padding:3px 8px!important;}
 body.team-count-page:has(#workspace:not([hidden])) > header > div:first-of-type {display:flex;align-items:center;flex-wrap:wrap;gap:4px 10px;}
 body.team-count-page:has(#workspace:not([hidden])) > header > .actions {margin-inline-start:auto;gap:5px!important;}
 body.team-count-page:has(#workspace:not([hidden])) > main.wrap {padding-top:4px!important;}
 body.team-count-page:has(#workspace:not([hidden])) :is(.cc-workspace-nav,#status) {display:inline-block;margin:2px 8px 5px 0!important;vertical-align:middle;}
 body.team-count-page #workspace.team-settings:not([hidden]) {padding:8px 12px!important;gap:4px 12px!important;margin-bottom:6px!important;}
 body.team-count-page #workspace.team-settings > h2 {font-size:16px!important;}
 body.team-count-page #workspace.team-settings > .cc-round-select {grid-column:1; margin:0!important;}
 body.team-count-page #workspace.team-settings #teamCountClock {grid-column:2; margin:0!important;font-size:13px!important;text-align:right;}
 body.team-count-page #counter:is([data-part="safe"],[data-part="petty"]) #cashPanel #docsBox {
  margin-top:8px!important;padding:8px 0 0!important;
 }
 body.team-count-page #counter:is([data-part="safe"],[data-part="petty"]) #cashPanel #countTotals {
  margin:6px 0 0!important;padding:0!important;border:0!important;
 }
 body.team-count-page #counter:is([data-part="safe"],[data-part="petty"]) #docsBox .doc-footer {
  margin-top:4px!important;padding-block:5px!important;min-height:32px!important;
 }
 body.team-count-page #counter:is([data-part="safe"],[data-part="petty"]) #countTotals .recon-grid {gap:5px!important;}
 body.team-count-page #counter:is([data-part="safe"],[data-part="petty"]) #countTotals .recon-grid > div {
  margin-block:0!important;padding-block:5px!important;min-height:40px!important;
 }
 @media(max-width:600px) {
  body.team-count-page #workspace.team-settings > :is(.cc-round-select,#teamCountClock) {grid-column:1/-1!important;text-align:left!important;}
  body.team-count-page:has(#workspace:not([hidden])) > header > .actions {flex-wrap:wrap;width:auto!important;}
 }
}

/* R202: compact local-mode header, preserving all actions and print layout. */
@media screen {
 body.cc-local-header:not(.cc-v99-locked) > header {
  display:flex!important;align-items:center!important;flex-wrap:wrap!important;
  gap:6px 12px!important;padding:8px 12px!important;margin:6px 10px!important;
 }
 body.cc-local-header > header > .cc-mode-top {margin:0!important;padding:0!important;flex:none;}
 body.cc-local-header > header > .cc-mode-top .cc-back-mode {margin:0!important;padding:8px 12px!important;}
 body.cc-local-header.cc-v99-locked > header > .cc-mode-top {visibility:visible!important;}
 body.cc-local-header:not(.cc-v99-locked) > header > div:first-of-type {display:flex!important;align-items:center;flex-wrap:wrap;gap:4px 10px;min-width:0;}
 body.cc-local-header:not(.cc-v99-locked) > header h1 {font-size:16px!important;margin:0!important;}
 body.cc-local-header:not(.cc-v99-locked) > header p.developer-credit {font-size:12px!important;line-height:1.3!important;margin:0!important;padding:3px 6px!important;}
 body.cc-local-header:not(.cc-v99-locked) > header p.developer-credit strong {font-size:14px!important;}
 body.cc-local-header:not(.cc-v99-locked) > header > .actions {display:flex!important;align-items:center!important;flex-wrap:wrap!important;gap:5px!important;margin-inline-start:auto;width:auto!important;min-width:0;}
 body.cc-local-header:not(.cc-v99-locked) > header .actions :is(button,.zoom) {margin-block:0!important;}
 body.cc-local-header:not(.cc-v99-locked) > header #saveStatus {font-size:12px!important;}
 body.cc-local-header:not(.cc-v99-locked) #ccV99Banner {margin:4px 10px!important;padding:4px 10px!important;max-width:none!important;gap:4px 10px!important;flex-wrap:wrap;}
 body.cc-local-header:not(.cc-v99-locked) > main.wrap {padding-top:6px!important;}
 @media(max-width:600px) {
  body.cc-local-header:not(.cc-v99-locked) > header > .actions {flex:1 0 100%;justify-content:flex-start!important;}
  body.cc-local-header:not(.cc-v99-locked) > header .actions > button {flex:0 1 auto!important;}
  body.cc-local-header:not(.cc-v99-locked) > header .zoom {margin-inline-start:auto;}
 }
}

/* R203: translucent photo chooser on the mode-selection gate only. */
@media screen {
 body.cc-glass #ccV99Gate .cc-background-picker {
  background:linear-gradient(145deg,rgba(18,53,67,.68),rgba(13,47,58,.52))!important;
  border:1px solid rgba(217,255,245,.55)!important;
  box-shadow:0 8px 24px rgba(0,28,35,.2),inset 0 1px 0 rgba(255,255,255,.25)!important;
  backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);
 }
 body.cc-glass #ccV99Gate .cc-background-picker > summary {
  background:linear-gradient(120deg,rgba(21,111,118,.6),rgba(27,108,78,.5))!important;
  border:1px solid rgba(211,255,245,.6)!important;
  color:#fff!important;text-shadow:0 1px 3px #063540!important;
 }
 body.cc-glass #ccV99Gate .cc-background-grid button {
  background:linear-gradient(145deg,rgba(15,67,84,.75),rgba(11,67,77,.62))!important;
  border:1px solid rgba(202,248,244,.65)!important;
  color:#fff!important;text-shadow:0 1px 3px #063540!important;
 }
 body.cc-glass #ccV99Gate .cc-background-grid button[aria-pressed="true"] {
  outline:2px solid #b8ffe0!important;outline-offset:1px;
 }
 body.cc-glass #ccV99Gate .cc-background-grid img {opacity:1;}
}

/* R204: one compact control per appearance action on the mode gate. */
@media screen {
 body.cc-glass #ccV99Gate .cc-gate-appearance {gap:6px!important;align-items:center!important;}
 body.cc-glass #ccV99Gate .cc-background-picker:not([open]) {
  margin:0!important;padding:0!important;background:transparent!important;
  border:0!important;box-shadow:none!important;
  backdrop-filter:none!important;-webkit-backdrop-filter:none!important;
 }
 body.cc-glass #ccV99Gate :is(#ccGateThemes,.cc-background-picker > summary) {
  display:inline-flex!important;align-items:center!important;justify-content:center!important;
  width:auto!important;min-width:0!important;min-height:32px!important;
  padding:5px 10px!important;margin:0!important;
  font-size:12px!important;line-height:1.25!important;
  border:1px solid rgba(219,255,248,.55)!important;
  border-radius:999px!important;
  box-shadow:0 2px 5px rgba(0,28,35,.18)!important;
  outline:none!important;transform:none!important;
 }
 body.cc-glass #ccV99Gate :is(#ccGateThemes,.cc-background-picker > summary):focus-visible {
  outline:2px solid #b8ffe0!important;outline-offset:3px!important;
 }
 body.cc-glass #ccV99Gate .cc-background-picker[open] {margin:0!important;padding:6px!important;}
}

/* R205: the glass surface rule carries an ID via :is(); override the actual
   inner counting panel, not only the surrounding page section. */
@media screen {
 body:is(.cc-glass,.cc-standalone)[data-mode="dark"] :is(#safePage,#pettyPage).count-page > .panel {
  background:linear-gradient(145deg,#223c4d,#172938)!important;
  color:#eef6ff!important;border-color:#57758b!important;
 }
 body:is(.cc-glass,.cc-standalone)[data-mode="dark"] :is(#safePage,#pettyPage).count-page > .panel :is(h2,.sub,.extra-note,.money-table td) {
  color:#eef6ff!important;-webkit-text-fill-color:#eef6ff!important;
 }
 body:is(.cc-glass,.cc-standalone)[data-mode="dark"] :is(#safePage,#pettyPage).count-page > .panel .money-table th {
  background:#22384a!important;color:#eef6ff!important;
 }
}

/* R208: safe reference amount, in both appearance modes. */
@media screen {
 body.cc-glass #counter[data-part="safe"] #sales {
  background:#fff3c4!important;
  color:#483b15!important;-webkit-text-fill-color:#483b15!important;
  border-color:#b58b21!important;
  box-shadow:inset 0 1px 3px #8e6d171a!important;
 }
 body.cc-glass #counter[data-part="safe"] #sales::placeholder {
  color:#6b5b2b!important;opacity:1;
 }
}

/* R209: compact reference fields and explicit working mode. */
@media screen {
 body.cc-glass #counter:is([data-part="safe"],[data-part="petty"]) #countTotals #sales,
 body:is(.cc-glass,.cc-standalone) #pettyPage#pettyPage.count-page #pettyLimit {
  width:min(220px,100%)!important;max-width:100%!important;
  justify-self:end!important;min-width:0!important;
 }
 .cc-current-mode {
  display:inline-flex;align-items:center;padding:5px 10px;
  border:1px solid #88d6bd;border-radius:999px;
  background:#103e3a!important;color:#fff!important;-webkit-text-fill-color:#fff!important;
  font:700 13px/1.4 system-ui;white-space:normal;
 }
 body.cc-v99-locked .cc-current-mode {display:none!important;}
}
@media print {.cc-current-mode{display:none!important;}}

/* R211: expanded photo gallery fits the viewport and shows more thumbnails. */
@media screen {
 body.cc-glass #ccV99Gate .cc-background-picker[open] {
  width:min(720px,calc(100vw - 24px))!important;
  max-width:calc(100vw - 24px)!important;
  padding:8px!important;box-sizing:border-box!important;
 }
 body.cc-glass #ccV99Gate .cc-background-picker[open] .cc-background-grid {
  grid-template-columns:repeat(5,minmax(0,1fr))!important;
  gap:8px!important;
  max-height:min(560px,calc(100dvh - 130px))!important;
  overflow-y:auto!important;overscroll-behavior:contain;
  padding:6px!important;
 }
 @media(max-width:600px) {
  body.cc-glass #ccV99Gate .cc-background-picker[open] .cc-background-grid {
   grid-template-columns:repeat(3,minmax(0,1fr))!important;
   gap:6px!important;
   max-height:min(560px,calc(100dvh - 130px))!important;
  }
 }
}

/* R212: anchor the enlarged gallery to the viewport, never above its top. */
@media screen {
 body.cc-glass #ccV99Gate .cc-gate-appearance {
  position:fixed!important;
  top:calc(12px + env(safe-area-inset-top))!important;
  right:max(12px,env(safe-area-inset-right))!important;
  bottom:auto!important;transform:none!important;
 }
 body.cc-glass #ccV99Gate .cc-gate-appearance .cc-background-picker[open] {
  position:absolute!important;top:0!important;right:0!important;bottom:auto!important;
  transform:none!important;max-height:calc(100dvh - 24px - env(safe-area-inset-top))!important;
  overflow:hidden!important;
 }
}

/* R215: lift the mobile mode card while keeping safe centering on short screens. */
@media screen and (max-width:600px) {
 body.cc-glass #ccV99Gate {
  padding-top:calc(76px + env(safe-area-inset-top))!important;
  padding-bottom:calc(18px + clamp(64px,10dvh,100px) + env(safe-area-inset-bottom))!important;
  align-items:safe center!important;
 }
}

/* R216: login appearance controls, with a single translucent surface. */
@media screen {
 body.cc-glass .cc-login-appearance > details:not([open]) {
  padding:0!important;margin:0!important;border:0!important;
  background:transparent!important;box-shadow:none!important;
 }
 body.cc-glass .cc-login-appearance > details > summary {
  display:inline-flex!important;align-items:center;justify-content:center;
  padding:6px 12px!important;min-height:34px!important;
  margin:0!important;border:1px solid rgba(214,255,242,.55)!important;
  border-radius:999px!important;
  background:rgba(20,77,76,.35)!important;color:#fff!important;
  font-size:13px!important;line-height:1.3!important;
  text-shadow:0 1px 3px #123c45;box-shadow:none!important;
 }
 body.cc-glass .cc-login-appearance > details > summary:focus-visible {
  outline:2px solid #b8ffe0!important;outline-offset:3px;
 }
 body.cc-glass .cc-login-appearance .cc-background-picker[open] {
  position:fixed!important;top:64px!important;right:12px!important;
  bottom:auto!important;left:auto!important;transform:none!important;
  width:min(720px,calc(100vw - 24px))!important;
  max-width:calc(100vw - 24px)!important;
  max-height:calc(100dvh - 80px)!important;box-sizing:border-box;
  margin:0!important;padding:8px!important;z-index:10070;
  background:linear-gradient(145deg,rgba(18,53,67,.72),rgba(13,47,58,.55))!important;
  border:1px solid rgba(217,255,245,.55)!important;
  box-shadow:0 8px 24px #001c3533!important;
  backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);
  overflow:hidden;
 }
 body.cc-glass .cc-login-appearance .cc-background-picker[open] .cc-background-grid {
  grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:8px!important;
  max-height:min(560px,calc(100dvh - 150px))!important;
  overflow-y:auto!important;overscroll-behavior:contain;padding:6px!important;
 }
 body.cc-glass .cc-login-appearance .cc-background-grid button {
  background:rgba(13,62,76,.68)!important;color:#fff!important;
  border:1px solid rgba(202,248,244,.6)!important;text-shadow:0 1px 3px #063540;
 }
 @media(max-width:600px) {
  body.cc-glass .cc-login-appearance .cc-background-picker[open] .cc-background-grid {
   grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:6px!important;
  }
 }
}

/* R219: login/signup already has mode navigation in the footer. */
@media screen {
 body.cc-glass:has(.cc-login:not([hidden])) .cc-mode-top,
 body.cc-glass:has(.cc-login:not([hidden])) .cc-mode-top + p[role="status"] {
  display:none!important;
 }
}

/* R223: brighter jewel-tone glass on the mode chooser. */
@media screen {
 body.cc-glass #ccV99Gate .cc-v99-card {
  background:linear-gradient(145deg,#aaffee57,#0b455fba 40%,#123d55ba 65%,#58edc36b)!important;
  border:1px solid #b6fff0b3!important;
  box-shadow:0 12px 36px #062e4b55,0 0 22px #7cffe84d,inset 0 1px 4px #e3fffab3!important;
 }
 body.cc-glass #ccV99Gate .cc-v99-heading h2 {
  color:#b7ffec!important;text-shadow:0 2px 4px #07343e,0 0 14px #65ffc94d!important;
 }
 body.cc-glass #ccV99Gate .cc-mode-grid > .cc-v99-option {
  background:linear-gradient(155deg,#ffffff33,transparent 48%),linear-gradient(115deg,var(--cc-bright-start),var(--cc-bright-end))!important;
  border:1px solid #ffffffa6!important;
  box-shadow:0 3px 0 #082a4559,0 7px 16px #07274338,inset 0 1px 2px #ffffff8c!important;
  color:#fff!important;
 }
 body.cc-glass #ccV99Gate .cc-mode-grid > .cc-v99-option[data-v99-mode="offline"] {--cc-bright-start:#ad205fd9;--cc-bright-end:#6c2b91e8;}
 body.cc-glass #ccV99Gate .cc-mode-grid > .cc-v99-option[data-v99-mode="solo"] {--cc-bright-start:#006f86e8;--cc-bright-end:#08765edb;}
 body.cc-glass #ccV99Gate .cc-mode-grid > a.cc-v99-option[href="/team-count.html"] {--cc-bright-start:#13733ce6;--cc-bright-end:#326a1ee8;background:linear-gradient(155deg,#ffffff33,transparent 48%),linear-gradient(115deg,var(--cc-bright-start),var(--cc-bright-end))!important;color:#fff!important;}
 body.cc-glass #ccV99Gate .cc-mode-grid > #ccManageTeam {--cc-bright-start:#4b3ba9e8;--cc-bright-end:#8b3289db;}
 body.cc-glass #ccV99Gate .cc-mode-grid > .cc-v99-option :is(strong,small) {color:#fff!important;text-shadow:0 1px 2px #092b4566!important;}
}

@media screen {body.cc-glass #ccV99Gate .cc-mode-grid > a.cc-v99-option[href="/team-count.html"] :is(strong,small){color:#fff!important;}}

/* R224: signup is a real flow layout, not overlaid on the fixed login artwork. */
@media screen {
 body.cc-glass main .cc-login:has(#registrationNames:not([hidden])) {
  width:min(400px,calc(100vw - 32px))!important;aspect-ratio:auto!important;
  padding:22px!important;box-sizing:border-box;
  background:linear-gradient(145deg,#136a61ed,#073e3ced)!important;
  border:1px solid #b7fff0a6!important;border-radius:28px!important;
  box-shadow:0 12px 36px #073d3a66,inset 0 1px 3px #e2fff99c!important;
 }
 body.cc-glass .cc-login:has(#registrationNames:not([hidden]))::before {display:none!important;}
 body.cc-glass .cc-login:has(#registrationNames:not([hidden])) > :is(h2,.cc-sub,.cc-field) {
  position:static!important;width:auto!important;height:auto!important;clip-path:none!important;overflow:visible!important;
 }
 body.cc-glass .cc-login:has(#registrationNames:not([hidden])) :is(#email,.cc-pass,#password,#register,#cancelRegistration) {
  position:static!important;inset:auto!important;opacity:1!important;
  width:100%!important;height:auto!important;min-height:44px!important;
  margin:4px 0!important;box-sizing:border-box;
 }
 body.cc-glass .cc-login:has(#registrationNames:not([hidden])) :is(#email,#password,#registerPasswordConfirm,#registerFullName,#registerNickname) {
  padding:10px 12px!important;background:#f2fffa!important;
  color:#163c37!important;-webkit-text-fill-color:#163c37!important;
  border:1px solid #8bd3bd!important;
 }
 body.cc-glass .cc-login:has(#registrationNames:not([hidden])) input::placeholder {color:#496c63!important;}
 body.cc-glass .cc-login:has(#registrationNames:not([hidden])) :is(.cc-login-modes,.cc-login-options,#login) {display:none!important;}
 body.cc-glass .cc-login:has(#registrationNames:not([hidden])) .cc-toggle {opacity:1!important;}
 body.cc-glass .cc-login:has(#registrationNames:not([hidden])) #register {background:#0b846c!important;color:white!important;}
 body.cc-glass .cc-login:has(#registrationNames:not([hidden])) #cancelRegistration:not([hidden]) {display:block!important;background:transparent!important;color:white!important;border:1px solid #9ee8d5;}
 body.cc-glass #registrationError {color:#fff0c2!important;font-weight:700;margin:8px 0;}
 body.cc-glass #registrationError:empty {display:none;}
}
@media screen {body.cc-glass .cc-login:has(#registrationNames:not([hidden])) .cc-pass {position:relative!important;}}

/* R225: match the legacy ID-weighted :is selector so bright colors actually win. */
@media screen {
 body.cc-glass #ccV99Gate .cc-v99-card {
  background:linear-gradient(145deg,#18b6b9e8,#087777ed 48%,#07545ced)!important;
  border-color:#b9fff4!important;
  box-shadow:0 12px 32px #05343d55,0 0 22px #65ffe15c,inset 0 2px 4px #d8fffab3!important;
 }
 body.cc-glass #ccV99Gate #ccV99Title {color:#fff!important;text-shadow:0 2px 4px #07515b!important;}
 body.cc-glass #ccV99Gate .cc-v99-heading p {color:#fff2b2!important;}
 body.cc-glass #ccV99Gate .cc-mode-grid > :is(.cc-v99-option,#ccManageTeam) {
  background:linear-gradient(155deg,#ffffff33,transparent 55%),linear-gradient(115deg,var(--cc-vivid-start),var(--cc-vivid-end))!important;
  border:1px solid #ffffffb3!important;
  box-shadow:0 4px 0 #062b4240,0 7px 14px #05294033,inset 0 1px 2px #ffffff80!important;
  backdrop-filter:none!important;-webkit-backdrop-filter:none!important;
  color:#fff!important;
 }
 body.cc-glass #ccV99Gate [data-v99-mode="offline"] {--cc-vivid-start:#c3196a;--cc-vivid-end:#7731af;}
 body.cc-glass #ccV99Gate [data-v99-mode="solo"] {--cc-vivid-start:#1259bd;--cc-vivid-end:#007e91;}
 body.cc-glass #ccV99Gate a[href="/team-count.html"] {--cc-vivid-start:#078047;--cc-vivid-end:#006d65;}
 body.cc-glass #ccV99Gate #ccManageTeam {--cc-vivid-start:#6534b8;--cc-vivid-end:#ac247b;}
 body.cc-glass #ccV99Gate .cc-mode-grid > :is(.cc-v99-option,#ccManageTeam) :is(strong,small) {color:#fff!important;text-shadow:0 1px 2px #142a4c66!important;}
}

/* R226: registration uses the emerald glass style with real, bounded controls. */
@media screen {
 body.cc-glass main .cc-login:has(#registrationNames:not([hidden])) {
  padding:22px!important;border-radius:34px!important;
  background:linear-gradient(145deg,#a9fff03d 0%,transparent 27%,#002c2470 60%,#7bff5d52 100%),linear-gradient(120deg,#079275ed,#003f2fed 55%,#00aa6bd9)!important;
  border:1px solid #b8ffe4!important;
  box-shadow:0 0 22px #67ffb74d,inset 0 2px 4px #d5fff5b3,inset 0 -3px 10px #87ffb159!important;
 }
 body.cc-glass .cc-login:has(#registrationNames:not([hidden])) > .cc-mark {
  display:grid!important;position:relative!important;width:48px!important;height:48px!important;
  margin:0 auto 8px!important;place-items:center;background:linear-gradient(145deg,#b6ff63,#00c67d)!important;
  box-shadow:0 0 16px #64ff58a6!important;border-radius:14px!important;
 }
 body.cc-glass .cc-login:has(#registrationNames:not([hidden])) > .cc-mark::before {content:'💰';background:none;border:0;width:auto;height:auto;font-size:30px;}
 body.cc-glass .cc-login:has(#registrationNames:not([hidden])) > :is(h2,.cc-sub) {text-align:center!important;margin:4px 0!important;}
 body.cc-glass .cc-login:has(#registrationNames:not([hidden])) :is(#email,#password,#registerPasswordConfirm,#registerFullName,#registerNickname) {
  background:linear-gradient(110deg,#ffffff1f,#06453866)!important;
  color:#fff!important;-webkit-text-fill-color:#fff!important;
  border:1px solid #a4e9d980!important;border-radius:999px!important;
  box-shadow:inset 0 1px 2px #ffffff26!important;
 }
 body.cc-glass .cc-login:has(#registrationNames:not([hidden])) input::placeholder {color:#d4f8e9!important;opacity:1;}
 body.cc-glass .cc-login:has(#registrationNames:not([hidden])) .cc-pass {position:relative!important;min-height:0!important;height:auto!important;}
 body.cc-glass .cc-login:has(#registrationNames:not([hidden])) .cc-pass #password {padding-right:58px!important;}
 body.cc-glass .cc-login:has(#registrationNames:not([hidden])) .cc-pass .cc-toggle {
  position:absolute!important;top:50%!important;right:6px!important;left:auto!important;bottom:auto!important;
  transform:translateY(-50%)!important;width:44px!important;max-width:44px!important;
  height:32px!important;min-height:0!important;padding:2px!important;margin:0!important;
  background:transparent!important;border:0!important;box-shadow:none!important;color:#e7fff3!important;
  font-size:11px!important;line-height:1!important;border-radius:999px!important;opacity:1!important;
 }
 body.cc-glass .cc-login:has(#registrationNames:not([hidden])) #register {
  background:linear-gradient(105deg,#63fa30,#00b83c 65%,#0ce89b)!important;
  color:#073b25!important;text-shadow:none!important;border:1px solid #b8ff87!important;
  box-shadow:0 0 14px #4aff5473,inset 0 1px 3px #eeffd7b3!important;border-radius:999px!important;
  margin-top:14px!important;
 }
 body.cc-glass .cc-login:has(#registrationNames:not([hidden])) #cancelRegistration:not([hidden]) {
  border-radius:999px!important;background:#ffffff0d!important;border-color:#b7f6d68c!important;
 }
}

/* R227: shared emerald glass language for the mode card and footer links. */
@media screen {
 body.cc-glass #ccV99Gate .cc-v99-card {
  background:linear-gradient(145deg,#b0ffed59 0%,transparent 26%,#002b226b 58%,#7bff5d57 100%),linear-gradient(120deg,#079275ed,#003f2fed 55%,#00aa6bd9)!important;
  border:1px solid #b8ffe4!important;
  box-shadow:0 0 24px #67ffb759,inset 0 2px 5px #d5fff5bf,inset 0 -4px 12px #87ffb16b,0 12px 28px #003f354d!important;
 }
 body.cc-glass #ccV99Gate .cc-v99-heading::before {
  content:'💰';display:grid;place-items:center;width:48px;height:48px;margin:0 auto 8px;
  font-size:30px;background:linear-gradient(145deg,#b6ff63,#00c67d);
  border:1px solid #d9ffbe;border-radius:14px;
  box-shadow:0 0 16px #64ff58a6,inset 0 1px 3px #f3ffda;
 }
 body.cc-glass .cc-login-footer > a.cc-back-mode {
  background:linear-gradient(150deg,#ffffff33,transparent 60%),linear-gradient(115deg,var(--cc-footer-start,#6432a3a6),var(--cc-footer-end,#a72e8299))!important;
  color:#fff!important;border:1px solid #e5fff59c!important;
  box-shadow:0 4px 0 #07352f59,0 7px 15px #072e3840,inset 0 1px 2px #ffffff8c!important;
  text-shadow:0 1px 2px #133c4359;
  backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);
 }
 body.cc-glass .cc-login-footer > a.cc-back-mode[href="/"] {--cc-footer-start:#a94d00ad;--cc-footer-end:#e18300a6;}
 body.cc-glass .cc-login-footer > a.cc-back-mode[href*="team.html"] {--cc-footer-start:#5138a6b3;--cc-footer-end:#a22b8f99;}
 @media(hover:hover) and (pointer:fine) {
  body.cc-glass .cc-login-footer > a.cc-back-mode:hover {filter:brightness(1.1);}
 }
 body.cc-glass .cc-login-footer > a.cc-back-mode:active {transform:translateY(2px);box-shadow:0 2px 0 #07352f59,inset 0 1px 3px #ffffff59!important;}
}

/* R228: compact signup and matching emerald footer controls. */
@media screen {
 body.cc-glass main .cc-login:has(#registrationNames:not([hidden])) {
  padding:14px 20px!important;border-radius:30px!important;
 }
 body.cc-glass .cc-login:has(#registrationNames:not([hidden])) > .cc-mark {
  display:none!important;
 }
 body.cc-glass .cc-login:has(#registrationNames:not([hidden])) > h2 {
  font-size:27px!important;line-height:1.2!important;margin:0 0 4px!important;
 }
 body.cc-glass .cc-login:has(#registrationNames:not([hidden])) > .cc-sub {
  font-size:12px!important;line-height:1.35!important;margin:0 0 8px!important;
 }
 body.cc-glass .cc-login:has(#registrationNames:not([hidden])) .cc-field {
  font-size:13px!important;line-height:1.3!important;margin:6px 0 3px!important;
 }
 body.cc-glass .cc-login:has(#registrationNames:not([hidden])) :is(#email,#password,#registerPasswordConfirm,#registerFullName,#registerNickname) {
  height:40px!important;min-height:40px!important;padding:8px 12px!important;
  margin:0!important;font-size:15px!important;
 }
 body.cc-glass .cc-login:has(#registrationNames:not([hidden])) .cc-pass {
  min-height:0!important;margin:0!important;padding:0!important;
 }
 body.cc-glass .cc-login:has(#registrationNames:not([hidden])) :is(#register,#cancelRegistration) {
  min-height:40px!important;padding:7px 12px!important;margin:6px 0 0!important;
  font-size:14px!important;
 }
 body.cc-glass .cc-login:has(#registrationNames:not([hidden])) #register {margin-top:10px!important;}
 body.cc-glass:has(:is(#loginBox,#authBox)) .cc-login-footer > a.cc-back-mode {
  background:linear-gradient(145deg,#b0ffed47,transparent 42%,#7bff5d33),linear-gradient(120deg,#07876edb,#004d3cde 60%,#009b69c9)!important;
  border:1px solid #b8ffe4b3!important;color:#fff!important;
  box-shadow:0 3px 0 #003c3066,0 0 12px #67ffb733,inset 0 1px 3px #d5fff599!important;
 }
}

/* R229: login artwork already contains the signup button; the hit target
   stays transparent, while signup mode keeps its real submit button. */
@media screen {
 body.cc-glass .cc-login:not(:has(#registrationNames:not([hidden]))) :is(#register,.cc-register-link) {
  opacity:0!important;background:transparent!important;border:0!important;
  box-shadow:none!important;text-shadow:none!important;
 }
 body.cc-glass .cc-login:not(:has(#registrationNames:not([hidden]))):has(:is(#register,.cc-register-link):focus-visible) {
  outline:2px solid #adffe2;outline-offset:4px;
 }
}

@media screen {
 body.cc-glass #loginBox.cc-login:has(#registrationNames:not([hidden])) .cc-pass {
  position:relative!important;height:40px!important;min-height:40px!important;
  width:100%!important;overflow:hidden!important;border-radius:999px!important;
 }
 body.cc-glass #loginBox.cc-login:has(#registrationNames:not([hidden])) .cc-pass .cc-toggle {
  position:absolute!important;top:4px!important;right:8px!important;bottom:auto!important;left:auto!important;
  transform:none!important;width:40px!important;height:32px!important;min-height:0!important;max-width:40px!important;
  margin:0!important;padding:0!important;line-height:32px!important;z-index:1;
 }
 body.cc-glass #loginBox.cc-login:has(#registrationNames:not([hidden])) .cc-pass #password {padding-right:60px!important;height:40px!important;}
}

@media screen {
 body.cc-glass #loginBox.cc-login:has(#registrationNames:not([hidden])) .cc-confirm-pass {position:relative;height:40px;width:100%;overflow:hidden;border-radius:999px;}
 body.cc-glass #loginBox.cc-login:has(#registrationNames:not([hidden])) #registerPasswordConfirm {padding-right:60px!important;}
 body.cc-glass #loginBox.cc-login:has(#registrationNames:not([hidden])) #toggleRegisterConfirm {
  position:absolute!important;top:4px!important;right:8px!important;bottom:auto!important;left:auto!important;
  width:40px!important;max-width:40px!important;height:32px!important;min-height:0!important;
  padding:0!important;margin:0!important;line-height:32px!important;font-size:11px!important;
  background:transparent!important;border:0!important;box-shadow:none!important;
  color:#e7fff3!important;transform:none!important;z-index:1;
 }
}

/* R232: retain a single field edge; use a soft glow instead of a second outline. */
@media screen {
 body.cc-glass :is(#loginBox,#authBox).cc-login :is(#email,#password,#registerPasswordConfirm,#registerFullName,#registerNickname):is(:focus,:focus-visible) {
  outline:none!important;outline-offset:0!important;
  border-color:#9fffe0!important;
  box-shadow:0 0 12px #55ffd94d!important;
 }
}
