
:root {
    --fail: #d32f2f;
    --warn: #f9a825;
    --summary: #1b5e20;
    --ink: #54595F;
    --muted: #444;
    --bg: #a5cbff;
    --card: #fff;
    --border: #e6e8eb;
    --accent: #1976d2;
}

body.eann {
    --bg: #a5f0ed;
    --accent: #18BFB7;
}
* { box-sizing: border-box; }
body {
    font-family: "Roboto", system-ui, -apple-system, Segoe UI, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
    font-size: 16px;
    color: var(--ink);
    background: var(--bg);
    margin: 0;
    padding: 0;
}

.topbar{
    width: 100%;
    background: #ffffff;
    box-shadow: 0 1.5px 4px rgba(0, 0, 0, 0.15);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: .8rem 1rem;
}
.topbar img{
    display: block;
    height: 92.8px;
    width: auto;
    object-fit: contain;
}

.container {
    max-width: 1020px;
    margin: 2rem auto;
    padding: 0 2rem;
}
h1 { font-size: 1.5rem; margin: 0 0 1rem; }
p.help { color: var(--muted); margin-top: 0; }

.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1rem;
    box-shadow: 0 1px 2px rgba(0,0,0,.04);
}
.row { display: grid; gap: .75rem; }

.actions { display: flex; gap: .75rem; align-items: center; }
input[type="file"] {
    display: block;
    width: 100%;
    padding: .5rem;
    border: 1px dashed #ccc;
    border-radius: 8px;
    background: #fff;
    font: inherit;
    color: inherit;
}
button {
    appearance: none;
    border: none;
    background: var(--accent);
    color: white;
    padding: .6rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    font: inherit;
    font-weight: 600;
}
button:disabled { opacity: .6; cursor: not-allowed; }

.error {
    color: var(--fail);
    font-weight: 600;
    margin-top: .5rem;
}

.spinner {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    color: #666;
    font-weight: 600;
    visibility: hidden;
    font: inherit;
}
.spinner.visible { visibility: visible; }
.spin {
    width: 18px; height: 18px;
    border: 3px solid #ddd;
    border-top-color: #555;
    border-radius: 50%;
    animation: rot .8s linear infinite;
}
@keyframes rot { to { transform: rotate(360deg); } }

.results { margin-top: 1rem; }
.block { margin-bottom: 1rem; }
.title { font-size: 1rem; font-weight: 700; margin-bottom: .25rem; color: #555; }
pre {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: .75rem .9rem;
    margin: 0;
    overflow-x: auto;
    white-space: pre-wrap;
    word-break: break-word;
    font-family: inherit;
    font-size: 16px;
    line-height: 1.35;
    color: inherit;
}
.fail-text { color: var(--fail); }
.warn-text { color: var(--warn); }
.summary-text { color: var(--summary); }
.hidden { display: none; }

.issue-list {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: .75rem .9rem;
}

.issue-row {
    display: grid;
    grid-template-columns: max-content 1fr;
    gap: 1rem;
    align-items: start;
    padding: .5rem 0;
}

.issue-row + .issue-row {
    border-top: 1px solid var(--border);
}

.issue-title {
    font-weight: 500;
    white-space: nowrap;
}

.issue-detail {
    justify-self: end;
    text-align: right;
    word-break: break-word;
}
.help a {
    text-decoration: none;
    transition: color 0.2s ease, background-color 0.2s ease;
    border-radius: 4px;
}
.help a:hover,
.help a:focus {
    color: var(--accent);
    background-color: color-mix(in srgb, var(--accent) 10%, transparent);
    text-decoration: none;
}

#certBtn {
  background: #1b5e20;
  color: #fff;
  border: none;
  padding: .5rem 1rem;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
}

