:root {
  --psc-widget-ink:#18362b;
  --psc-widget-muted:#5b6e65;
  --psc-widget-line:#d9e5df;
  --psc-widget-green:#0a8f5a;
  --psc-widget-green-dark:#087447;
  --psc-widget-green-soft:#eaf8f1;
  --psc-widget-orange:#e87520;
  --psc-widget-orange-soft:#fff3e8;
  --psc-widget-blue:#2778bf;
  --psc-widget-blue-soft:#edf6ff;
}
* { box-sizing:border-box; }
html { background:transparent; }
body.psc-embed-widget {
  margin:0;
  padding:12px;
  background:#f7faf8;
  color:var(--psc-widget-ink);
  font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  line-height:1.45;
}
.psc-embed-shell { max-width:560px; margin:0 auto; }
.psc-embed-card { background:#fff; border:1px solid var(--psc-widget-line); border-radius:18px; overflow:hidden; box-shadow:0 8px 28px rgba(18,59,43,.07); }
.psc-embed-head { padding:20px 20px 17px; background:linear-gradient(135deg,#edf9f3 0%,#fff5eb 100%); border-bottom:1px solid var(--psc-widget-line); }
.psc-embed-brand { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:9px; }
.psc-embed-brand strong { font-size:.8rem; letter-spacing:.06em; text-transform:uppercase; color:var(--psc-widget-green-dark); }
.psc-embed-tag { font-size:.72rem; font-weight:800; padding:5px 8px; border-radius:999px; background:#fff; color:#4b6257; border:1px solid #d7e5de; }
.psc-embed-head h1 { margin:0; font-size:1.42rem; line-height:1.15; letter-spacing:-.025em; }
.psc-embed-head p { margin:8px 0 0; color:var(--psc-widget-muted); font-size:.89rem; }
.psc-embed-form { padding:18px 20px 20px; display:grid; gap:14px; }
.psc-embed-grid { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.psc-embed-field { display:grid; gap:6px; font-weight:750; font-size:.84rem; min-width:0; }
.psc-embed-field small { color:var(--psc-widget-muted); font-weight:500; font-size:.74rem; line-height:1.4; }
.psc-embed-field input,.psc-embed-field select { width:100%; min-width:0; min-height:43px; border:1px solid #c9d8d0; border-radius:10px; background:#fff; color:#203a30; padding:9px 10px; font:inherit; font-weight:600; outline:none; }
.psc-embed-field input:focus,.psc-embed-field select:focus { border-color:var(--psc-widget-green); box-shadow:0 0 0 3px rgba(10,143,90,.12); }
.psc-embed-hint { margin:-2px 0 0; padding:10px 12px; border-radius:10px; background:var(--psc-widget-blue-soft); color:#285d8f; font-size:.78rem; }
.psc-embed-actions { display:flex; gap:9px; align-items:center; flex-wrap:wrap; }
.psc-embed-primary { min-height:44px; border:0; border-radius:10px; background:var(--psc-widget-green); color:#fff; padding:10px 16px; font:inherit; font-weight:850; cursor:pointer; box-shadow:0 7px 18px rgba(10,143,90,.18); }
.psc-embed-primary:hover { background:var(--psc-widget-green-dark); }
.psc-embed-secondary { min-height:42px; border:0; background:transparent; color:#50665b; text-decoration:underline; text-underline-offset:3px; padding:8px 4px; font:inherit; font-weight:700; cursor:pointer; }
.psc-embed-error { margin:0 20px 18px; padding:10px 12px; border:1px solid #efb3aa; background:#fff1ef; color:#8b3024; border-radius:10px; font-size:.82rem; font-weight:700; }
.psc-embed-result { margin:0 20px 20px; padding:16px; border:1px solid #cfe1d8; border-radius:14px; background:#fbfdfc; }
.psc-embed-status { display:inline-flex; padding:6px 9px; border-radius:999px; font-size:.78rem; font-weight:900; margin-bottom:12px; }
.psc-embed-status.is-consistent { background:var(--psc-widget-green-soft); color:#12623f; }
.psc-embed-status.is-review { background:var(--psc-widget-orange-soft); color:#89450f; }
.psc-embed-result-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:8px; }
.psc-embed-result-grid div { border:1px solid #e0e9e4; border-radius:10px; padding:10px; background:#fff; min-width:0; }
.psc-embed-result-grid span { display:block; color:var(--psc-widget-muted); font-size:.7rem; font-weight:700; }
.psc-embed-result-grid strong { display:block; margin-top:3px; font-size:.9rem; overflow-wrap:anywhere; }
.psc-embed-result p { margin:12px 0 0; color:#52675d; font-size:.8rem; }
.psc-embed-ann-primary { padding:14px; background:linear-gradient(120deg,var(--psc-widget-green-soft),#fff); border:1px solid #c9e3d6; border-radius:12px; margin-bottom:10px; }
.psc-embed-ann-primary span { display:block; color:#50675c; font-size:.73rem; font-weight:750; }
.psc-embed-ann-primary strong { display:block; color:var(--psc-widget-green-dark); font-size:1.65rem; line-height:1.12; margin-top:3px; overflow-wrap:anywhere; }
.psc-embed-ann-secondary { display:flex; justify-content:space-between; gap:12px; padding:10px 2px; border-bottom:1px solid #e4ece8; font-size:.82rem; }
.psc-embed-ann-secondary:last-of-type { border-bottom:0; }
.psc-embed-ann-secondary span { color:var(--psc-widget-muted); }
.psc-embed-ann-secondary strong { text-align:right; }
.psc-embed-attribution { display:flex; justify-content:space-between; align-items:center; gap:12px; padding:12px 17px; border-top:1px solid var(--psc-widget-line); background:#fbfdfc; font-size:.72rem; color:#60736a; }
.psc-embed-attribution a { color:var(--psc-widget-green-dark); font-weight:850; text-decoration:none; }
.psc-embed-attribution a:hover { text-decoration:underline; }
.psc-embed-attribution .psc-embed-full { color:#596f65; font-weight:700; }
[hidden] { display:none !important; }
@media (max-width:460px) {
  body.psc-embed-widget { padding:8px; }
  .psc-embed-grid,.psc-embed-result-grid { grid-template-columns:1fr; }
  .psc-embed-head,.psc-embed-form { padding-left:15px; padding-right:15px; }
  .psc-embed-error,.psc-embed-result { margin-left:15px; margin-right:15px; }
  .psc-embed-attribution { align-items:flex-start; flex-direction:column; }
}
@media (prefers-reduced-motion:no-preference) {
  .psc-embed-primary { transition:background .16s ease,transform .16s ease; }
  .psc-embed-primary:hover { transform:translateY(-1px); }
}
