/* CyberCalm Scanner: [cybercalm_scanner_entry] on the home page (1.0.50, style of design/scanner-page-mock-v3.html).
   Kept small (the home page is slow on phones): no images or fonts, the grid is two CSS gradients.
   Colors are the widget's (scanner.css .wrap.light / .wrap.dark; build.sh checks them).
   Rules for h2/p start with "body .ccs-entry" to outrank the theme's content styles (see guide.css). */

.ccs-entry{
  --ccs-e-text-dim:#64748b;--ccs-e-heading:#0f172a;--ccs-e-accent:#3b82f6;--ccs-e-accent-hover:#2563eb;
  --ccs-e-card-bg:#fff;--ccs-e-card-border:#e2e8f0;--ccs-e-input-text:#1e293b;
  --ccs-e-grid:#eef2f6;--ccs-e-shadow:0 1px 2px rgba(20,30,60,.04),0 8px 28px rgba(20,30,60,.08);
  position:relative;overflow:hidden;box-sizing:border-box;max-width:880px;margin:0 auto;padding:44px 32px 36px;
  border:1px solid var(--ccs-e-card-border);border-radius:24px;background:var(--ccs-e-card-bg);text-align:center
}
body[data-theme="dark"] .ccs-entry{
  --ccs-e-text-dim:#94a3b8;--ccs-e-heading:#f1f5f9;--ccs-e-accent:#60a5fa;--ccs-e-accent-hover:#3b82f6;
  --ccs-e-card-bg:#1e293b;--ccs-e-card-border:#334155;--ccs-e-input-text:#e2e8f0;
  --ccs-e-grid:#2b3a50;--ccs-e-shadow:0 8px 28px rgba(0,0,0,.35)
}
.ccs-entry *,.ccs-entry *::before,.ccs-entry *::after{box-sizing:border-box}
/* The grid: 14px cells fading out from the middle, as behind the field on /scanner/. */
.ccs-entry::before{content:"";position:absolute;inset:0;pointer-events:none;
  background-image:linear-gradient(var(--ccs-e-grid) 1px,transparent 1px),linear-gradient(90deg,var(--ccs-e-grid) 1px,transparent 1px);
  background-size:14px 14px;
  -webkit-mask-image:radial-gradient(60% 70% at 50% 55%,#000 0%,transparent 75%);
  mask-image:radial-gradient(60% 70% at 50% 55%,#000 0%,transparent 75%)}
.ccs-entry>*{position:relative}

body .ccs-entry h2.ccs-entry__title{margin:0;padding:0;font-size:clamp(24px,3.4vw,32px);font-weight:500;letter-spacing:-.02em;
  line-height:1.2;color:var(--ccs-e-heading);text-align:center}
.ccs-entry__form{display:flex;gap:8px;align-items:center;max-width:640px;margin:24px auto 0;padding:8px;border-radius:999px;
  background:var(--ccs-e-card-bg);border:1px solid var(--ccs-e-card-border);box-shadow:var(--ccs-e-shadow);transition:border-color .2s}
.ccs-entry__form:focus-within{border-color:var(--ccs-e-accent)}
/* Field + clear button (1.0.54): the button shows only with text, so the hint keeps the whole width. */
.ccs-entry__field{position:relative;display:flex;flex:1 1 0;min-width:0}
.ccs-entry__field.has-value input.ccs-entry__input{padding-right:44px}
body .ccs-entry button.ccs-entry__clear{position:absolute;top:50%;right:4px;transform:translateY(-50%);display:grid;place-items:center;
  width:36px;height:36px;margin:0;padding:0;border:0;border-radius:50%;background:transparent;box-shadow:none;color:var(--ccs-e-text-dim);cursor:pointer}
body .ccs-entry button.ccs-entry__clear[hidden]{display:none}
body .ccs-entry button.ccs-entry__clear:hover{color:var(--ccs-e-heading);background:rgba(127,127,127,.12)}
body .ccs-entry button.ccs-entry__clear:focus-visible{outline:2px solid var(--ccs-e-accent);outline-offset:1px}
.ccs-entry__clear svg{display:block}
body .ccs-entry input.ccs-entry__input{flex:1 1 0;min-width:0;width:auto;height:auto;margin:0;padding:0 16px;border:0;border-radius:999px;
  background:transparent;box-shadow:none;outline:none;color:var(--ccs-e-input-text);font:inherit;font-size:16px;line-height:1.4}
body .ccs-entry input.ccs-entry__input::placeholder{color:var(--ccs-e-text-dim);opacity:1}
body .ccs-entry button.ccs-entry__btn{flex:0 0 auto;margin:0;padding:13px 24px;border:0;border-radius:999px;background:var(--ccs-e-accent);
  color:#fff;font:inherit;font-size:15px;font-weight:600;line-height:1.4;cursor:pointer;transition:background .2s}
body .ccs-entry button.ccs-entry__btn:hover{background:var(--ccs-e-accent-hover)}
body .ccs-entry button.ccs-entry__btn:focus-visible{outline:2px solid var(--ccs-e-accent);outline-offset:3px}
body .ccs-entry p.ccs-entry__badge{display:inline-flex;align-items:center;gap:6px;margin:14px 0 0;padding:0;font-size:13px;line-height:1.4;
  color:var(--ccs-e-text-dim)}
.ccs-entry__badge svg{flex:none}
.ccs-entry__sr{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

/* Phones: the button goes under the field, as on /scanner/. */
@media (max-width:600px){
  /* Narrow sides: the whole hint has to fit in the field. */
  .ccs-entry{padding:32px 12px 26px;border-radius:20px}
  .ccs-entry__form{flex-direction:column;align-items:stretch;padding:6px;border-radius:18px}
  body .ccs-entry input.ccs-entry__input{flex:none;padding:12px 4px}
  .ccs-entry__field{flex:none;width:100%}
  body .ccs-entry button.ccs-entry__clear{width:40px;height:40px;right:2px}
  .ccs-entry__field.has-value input.ccs-entry__input{padding-right:46px}
  /* Only the hint is smaller, as on /scanner/: the field keeps 16px, so iPhones do not zoom in on focus. */
  body .ccs-entry input.ccs-entry__input::placeholder{font-size:12.5px}
  body .ccs-entry button.ccs-entry__btn{width:100%}
}
@media (max-width:380px){
  body .ccs-entry input.ccs-entry__input::placeholder{font-size:11px}
}
