/* Box Sizing */
*, *::before, *::after {
  box-sizing: border-box;
}

:root{
    --bg:#0f172a10;
    --ink:#0b1020;
    --muted:#5b6475;
    --ok:#1f9d55; /* green */
    --warn:#eab308; /* amber */
    --bad:#dc2626; /* red */
    --panel:#ffffff;
    --ring:#cbd5e1;
}
html,body{height:100%}
body{margin:0;font:16px/1.4 system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;background:#f6f7fb;color:var(--ink)}
.wrap{max-width:900px;margin:32px auto;padding:24px}
h1{font-size:26px;margin:0 0 8px 0;color:#465399}
p.lead{color:var(--muted);margin-top:0}
.panel{background:var(--panel);border:1px solid var(--ring);border-radius:12px;padding:16px 16px 8px 16px;margin:16px 0}
.row{display:grid;grid-template-columns:1fr 1fr;gap:16px}
@media (max-width: 800px){.row{grid-template-columns:1fr}}
label{display:block;font-size:18px;font-weight:600;color:#465399;margin:8px 0 6px 0}
input[type="text"], input[type="url"], select{width:100%;padding:10px 12px;border:1px solid var(--ring);border-radius:8px;background:#fff;font:inherit}
input[type="color"]{width:48px;height:36px;border:1px solid var(--ring);border-radius:8px;background:#fff;padding:0}
.inline{display:flex;gap:12px;align-items:center;flex-wrap:wrap}
.hint{font-size:12px;color:var(--muted)}
.bubble{width:42px;height:42px;border-radius:50%;display:flex;align-items:center;justify-content:center;flex:0 0 auto}
.bubble img{display:block;width:22px;height:22px}
.kicker{font-size:18px;line-height:1.2}
.code{width:100%;min-height:160px;font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;border:1px solid var(--ring);border-radius:12px;padding:12px;white-space:pre;overflow:auto;background:#0b1020;color:#e2e8f0}
.toolbar{display:flex;gap:8px;align-items:center;justify-content:flex-end;margin-top:8px}

/* Buttons */
button {
  appearance: none;
  border: 1px solid var(--ring);
  background: #fff;
  border-radius: 10px;
  padding: 10px 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

button:hover,
button:focus {
  background: #f3f4f6; /* subtle light gray hover */
}

button.primary {
  background: #465399;
  color: #fff;
  border-color: #7d86c2;
}

button.primary:hover,
button.primary:focus {
  background: #5F6AB4; /* slightly lighter black on hover */
  border-color: #465399;
}
.pill{font-size:12px;border-radius:999px;padding:4px 10px;border:1px solid var(--ring);background:#fff}
.ratio{font-variant-numeric:tabular-nums}
.pass{color:var(--ok)}
.fail{color:var(--bad)}
.soft{color:var(--muted)}
.grid-3{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}
.vis{display:flex;align-items:center;gap:12px}
.vis .swatch{width:28px;height:28px;border-radius:6px;border:1px solid var(--ring)}
.divider{height:1px;background:#e5e7eb;margin:12px 0}

/* Link styling */
a {
  color: #465399;
  text-decoration: none;
  font-weight: 600;
}

a:hover,
a:focus {
  text-decoration: underline;
}


/* Preview card */
.preview-box {
  border: 1px dashed var(--ring);
  border-radius: 12px;
  background: #f9fafb;
  padding: 12px 16px 20px;  /* extra bottom padding for more height */
  width: 100%;
  box-sizing: border-box;
  margin-top: 8px;
  min-height: 120px;        /* makes the box come down further */
  display: flex;
  flex-direction: column;
}

.preview {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-radius: 12px;
  background: #fff; /* no dashed border */
}

.padded{
  margin-top: 20px;
}

.labelText{
  display:block;
  font-size:18px;
  font-weight:600;
  color:#465399;
  margin:20px 0 6px 0
}

#warning{
  font-size: 16px;
  color: white;
  background-color: rgb(194, 6, 6);
  text-align: center;
}