/* Exam photo pages + signature resizer: the disclaimer, the live-photo note,
   and the signature / thumb / declaration cards (ink-tool.js). Same dark
   glass look as the passport maker (passport.css). */

.exam-disclaimer {
    margin: 14px auto 0;
    max-width: 760px;
    padding: 10px 14px;
    border-radius: 12px;
    border: 1px solid rgba(245, 158, 11, 0.45);
    background: rgba(245, 158, 11, 0.12);
    color: rgba(255, 255, 255, 0.85);
    font-size: 14px;
    line-height: 1.5;
    text-align: left;
}
.exam-disclaimer b, .ink-disclaimer b { color: #fcd34d; font-weight: 600; }
.ink-disclaimer a { color: #fcd34d; }

.spec-summary .spec-caveat { margin-top: 6px; color: rgba(255, 255, 255, 0.66); }
.spec-summary .spec-caveat b { color: #fcd34d; font-weight: 600; }

.exam-live-note {
    margin: 0 0 16px;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.85);
    font-size: 14px;
    line-height: 1.5;
}
.exam-live-note b { color: #fff; }

/* Exams that capture the photo live: only the exam picker and the note stay. */
#editor-view.exam-no-photo .passport-preview-col,
#editor-view.exam-no-photo .passport-controls-col > :not(.exam-keep) { display: none; }
#editor-view.exam-no-photo .passport-editor { grid-template-columns: 1fr; }

#group-namedate input { width: 100%; margin-bottom: 8px; }
#group-namedate input[type="date"] {
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    font: inherit;
    color-scheme: dark;
}

/* ─── Ink cards ─────────────────────────────────────────────────────── */
.ink-tools { margin: 40px auto 0; max-width: 1100px; min-width: 0; }
/* A <select> is as wide as its longest option; cap it so phones don't scroll sideways. */
.ink-tools select { width: 100%; max-width: 100%; min-width: 0; text-overflow: ellipsis; }
.ink-tools > h2 { font-size: 24px; margin: 0 0 8px; color: #fff; }
.ink-disclaimer { margin: 0 0 16px; }
.ink-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
    gap: 16px;
}
.ink-card { padding: 20px; border-radius: 20px; min-width: 0; }
.ink-card h3 { margin: 0 0 4px; font-size: 18px; color: #fff; }
.ink-size { margin: 0 0 6px; font-size: 14px; font-weight: 600; color: rgba(255, 255, 255, 0.9); }
.ink-card .control-help { margin: 0 0 12px; }
.ink-declaration {
    margin: 0 0 6px;
    padding: 10px 12px;
    border-left: 3px solid rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.05);
    border-radius: 0 10px 10px 0;
    font-size: 14px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.85);
}
.ink-card .upload-zone { min-height: 170px; padding: 20px; text-align: center; }
.ink-card .upload-zone p { margin: 0; }
.ink-card .upload-zone.dragover { border-color: rgba(255, 255, 255, 0.6); background: rgba(255, 255, 255, 0.1); }

.ink-preview {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 120px;
    padding: 12px;
    border-radius: 12px;
    background: #fff;
    margin-bottom: 12px;
}
.ink-preview canvas {
    display: block;
    max-width: 100%;
    max-height: 260px;
    height: auto;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.12);
    image-rendering: auto;
}
.ink-preview.is-checker {
    background-color: #fff;
    background-image:
        linear-gradient(45deg, #e6e6e6 25%, transparent 25%),
        linear-gradient(-45deg, #e6e6e6 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, #e6e6e6 75%),
        linear-gradient(-45deg, transparent 75%, #e6e6e6 75%);
    background-size: 16px 16px;
    background-position: 0 0, 0 8px, 8px -8px, -8px 0;
}
.ink-controls { display: grid; gap: 10px; margin-bottom: 12px; }
.ink-controls label { display: grid; gap: 6px; font-size: 13px; color: rgba(255, 255, 255, 0.75); }
.ink-controls select {
    padding: 9px 12px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    font: inherit;
}
.ink-controls select option { color: #111; }
.ink-card .ink-save { width: 100%; }
.ink-card .ink-note { margin: 8px 0 0; }
.ink-card .ink-again { margin-top: 6px; }

/* Signature page: purpose picker and custom size */
.ink-purpose-row { display: grid; gap: 8px; max-width: 520px; margin: 0 0 16px; }
.ink-purpose-row label { font-size: 14px; color: rgba(255, 255, 255, 0.8); }
.ink-purpose-row select, .ink-custom input, .ink-custom select {
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    font: inherit;
}
.ink-purpose-row select option, .ink-purpose-row select optgroup, .ink-custom select option { color: #111; }
.ink-custom {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
    max-width: 640px;
    margin: 0 0 16px;
}
.ink-custom label { display: grid; gap: 6px; font-size: 13px; color: rgba(255, 255, 255, 0.75); }
.ink-custom.hidden { display: none; }

@media (max-width: 600px) {
    .ink-cards { grid-template-columns: 1fr; }
    .ink-card { padding: 16px; }
}
.ink-warn {
    margin: 0 0 10px;
    padding: 8px 12px;
    border-radius: 10px;
    border: 1px solid rgba(245, 158, 11, 0.45);
    background: rgba(245, 158, 11, 0.12);
    color: #fcd34d;
    font-size: 13px;
}
.ink-warn.hidden { display: none; }
.ink-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
}
/* Small outputs (140 × 60 px) are previewed larger, without smoothing, so
   what you see is the file's pixels. */
.ink-preview canvas { min-width: min(100%, 260px); image-rendering: pixelated; }
.ink-preview.is-checker canvas { min-width: 0; image-rendering: auto; box-shadow: none; }
