/* UnlimitedConvert shared UI: header, tools, content sections, footer. Loaded after style.css. */
:root {
  --uc-bg: #fdf7ef;
  --uc-card: #ffffff;
  --uc-brand: #ff5733;
  --uc-btn: #d93a15;
  --uc-btn-hover: #b83210;
  --uc-link: #c9360f;
  --uc-ink: #1f1d1b;
  --uc-ink-2: #4a4643;
  --uc-muted: #6b6b6b;
  --uc-line: #ece6de;
  --uc-soft: #fff4ee;
  --uc-ok: #1f7a4d;
  --uc-err: #b42318;
  --uc-radius: 14px;
  --uc-shadow: 0 1px 2px rgba(31, 29, 27, 0.04), 0 8px 28px -12px rgba(31, 29, 27, 0.14);
}

body.uc { background: var(--uc-bg); color: var(--uc-ink); font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif; line-height: 1.6; }
.uc a { color: var(--uc-link); }
.uc :focus-visible { outline: 2px solid var(--uc-btn); outline-offset: 2px; border-radius: 6px; }
.uc-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.uc-wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }

/* ---------- header ---------- */
.uc-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, 0.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--uc-line); }
.uc-header__in { display: flex; align-items: center; gap: 20px; min-height: 62px; }
.uc-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--uc-ink) !important; font-weight: 800; font-size: 18px; letter-spacing: -0.01em; flex: none; }
.uc-logo img { width: 34px; height: 34px; }
.uc-nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.uc-nav > .uc-dd > button, .uc-nav > a { display: flex; align-items: center; gap: 6px; padding: 10px 12px; border: 0; background: none; border-radius: 10px; font: 600 14px/1 Inter, sans-serif; color: var(--uc-ink-2); text-decoration: none; cursor: pointer; white-space: nowrap; }
.uc-nav > .uc-dd > button:hover, .uc-nav > a:hover, .uc-dd.open > button { background: var(--uc-soft); color: var(--uc-ink); }
.uc-dd { position: relative; }
.uc-dd > button i { font-size: 10px; transition: transform 0.2s; }
.uc-dd.open > button i { transform: rotate(180deg); }
.uc-menu { display: none; position: absolute; top: calc(100% + 6px); right: 0; background: #fff; border: 1px solid var(--uc-line); border-radius: 16px; box-shadow: var(--uc-shadow); padding: 18px; z-index: 60; }
.uc-dd.open .uc-menu { display: grid; }
/* invisible bridge over the gap so the menu doesn't close while the mouse moves down to it */
.uc-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 10px; }
.uc-menu.cols-3 { grid-template-columns: repeat(3, minmax(170px, 1fr)); gap: 6px 22px; width: max-content; max-width: min(760px, 92vw); }
.uc-menu.cols-2 { grid-template-columns: repeat(2, minmax(170px, 1fr)); gap: 6px 22px; width: max-content; max-width: 92vw; }
.uc-menu.cols-1 { min-width: 220px; }
.uc-menu h4 { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--uc-muted); margin: 4px 0 6px; }
.uc-menu a { display: block; padding: 6px 8px; margin: 0 -8px; border-radius: 8px; color: var(--uc-ink-2) !important; text-decoration: none; font-size: 14px; }
.uc-menu a:hover { background: var(--uc-soft); color: var(--uc-ink) !important; }
.uc-menu .all { color: var(--uc-link) !important; font-weight: 600; margin-top: 4px; }
.uc-coffee { flex: none; }
.uc-burger { display: none; margin-left: auto; width: 44px; height: 44px; border: 1px solid var(--uc-line); background: #fff; border-radius: 10px; font-size: 18px; color: var(--uc-ink); }
@media (max-width: 980px) {
  .uc-burger { display: grid; place-items: center; }
  .uc-coffee { display: none; }
  .uc-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; background: #fff; border-bottom: 1px solid var(--uc-line); padding: 8px 12px 16px; max-height: calc(100vh - 62px); overflow: auto; }
  .uc-header.nav-open .uc-nav { display: flex; }
  .uc-nav > .uc-dd > button, .uc-nav > a { width: 100%; justify-content: space-between; padding: 14px 10px; font-size: 16px; }
  .uc-menu { position: static; box-shadow: none; border: 0; padding: 0 10px 10px; }
  .uc-menu.cols-3, .uc-menu.cols-2 { grid-template-columns: 1fr 1fr; width: auto; }
}

/* ---------- layout with side ad ---------- */
.uc-main { padding: 28px 0 40px; }
.uc-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; }
@media (min-width: 1180px) { .uc-grid.with-ad { grid-template-columns: 160px minmax(0, 1fr); } }
.uc-ad-side { display: none; }
@media (min-width: 1180px) { .uc-ad-side { display: block; position: sticky; top: 84px; align-self: start; } }
.uc-ad-row { display: flex; justify-content: center; margin: 22px 0; min-height: 50px; }

/* ---------- page head ---------- */
.uc-crumbs { font-size: 13px; color: var(--uc-muted); margin-bottom: 10px; }
.uc-crumbs a { color: var(--uc-muted) !important; text-decoration: none; }
.uc-crumbs a:hover { color: var(--uc-ink) !important; }
.uc-h1 { font-size: clamp(28px, 4vw, 40px); line-height: 1.12; letter-spacing: -0.025em; font-weight: 800; margin: 0 0 10px; }
.uc-lede { font-size: 17px; color: var(--uc-ink-2); max-width: 720px; margin: 0 0 22px; }
.uc-badges { display: flex; flex-wrap: wrap; gap: 8px; margin: -8px 0 22px; }
.uc-badge { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--uc-ink-2); background: #fff; border: 1px solid var(--uc-line); padding: 5px 11px; border-radius: 999px; }
.uc-badge i { color: var(--uc-brand); }

/* ---------- tool card ---------- */
.uc-tool { background: var(--uc-card); border: 1px solid var(--uc-line); border-radius: 20px; box-shadow: var(--uc-shadow); padding: 22px; }
.uc-drop { display: grid; place-items: center; text-align: center; gap: 8px; min-height: 230px; border: 2px dashed #f1c9b9; border-radius: 16px; background: linear-gradient(180deg, #fffaf6, #fff); cursor: pointer; padding: 24px; transition: border-color 0.15s, background 0.15s; }
.uc-drop:hover, .uc-drop.drag { border-color: var(--uc-brand); background: var(--uc-soft); }
.uc-drop .ico { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: var(--uc-brand); color: #fff; font-size: 24px; margin-bottom: 4px; box-shadow: 0 10px 22px -10px rgba(255, 87, 51, 0.8); }
.uc-drop strong { font-size: 18px; }
.uc-drop .sub { color: var(--uc-muted); font-size: 14px; }
.uc-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 10px 20px; border-radius: 12px; border: 1px solid transparent; font: 700 15px/1.2 Inter, sans-serif; cursor: pointer; text-decoration: none !important; transition: background 0.15s, border-color 0.15s, transform 0.1s; }
.uc-btn:active { transform: translateY(1px); }
.uc-btn.primary { background: var(--uc-btn); color: #fff !important; }
.uc-btn.primary:hover { background: var(--uc-btn-hover); }
.uc-btn.ghost { background: #fff; color: var(--uc-ink) !important; border-color: var(--uc-line); }
.uc-btn.ghost:hover { border-color: #d9cfc4; background: #fffaf6; }
.uc-btn.sm { min-height: 36px; padding: 6px 12px; font-size: 13px; border-radius: 10px; }
.uc-btn[disabled] { opacity: 0.55; cursor: not-allowed; }

.uc-opts { display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: end; padding: 16px 0 4px; }
.uc-field { display: grid; gap: 6px; font-size: 13px; font-weight: 600; color: var(--uc-ink-2); }
.uc-field select, .uc-field input[type="number"], .uc-field input[type="text"] { min-height: 40px; border: 1px solid var(--uc-line); border-radius: 10px; padding: 6px 10px; font: 500 14px Inter, sans-serif; background: #fff; color: var(--uc-ink); }
.uc-field input[type="range"] { width: 180px; accent-color: var(--uc-btn); }
.uc-check { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; color: var(--uc-ink-2); min-height: 40px; }
.uc-check input { width: 18px; height: 18px; accent-color: var(--uc-btn); }

.uc-files { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 8px; }
.uc-file { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px; border: 1px solid var(--uc-line); border-radius: 12px; background: #fff; }
.uc-file .th { width: 48px; height: 48px; border-radius: 8px; object-fit: cover; background: #f4efe9; }
.uc-file .nm { font-weight: 600; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.uc-file .meta { font-size: 12.5px; color: var(--uc-muted); }
.uc-file .meta.err { color: var(--uc-err); }
.uc-file .meta.ok { color: var(--uc-ok); }
.uc-file .acts { display: flex; gap: 6px; align-items: center; }
.uc-x { width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--uc-line); background: #fff; color: var(--uc-muted); cursor: pointer; }
.uc-x:hover { color: var(--uc-err); border-color: #f2c9c4; }
.uc-spin { width: 18px; height: 18px; border: 2px solid #f1c9b9; border-top-color: var(--uc-btn); border-radius: 50%; animation: ucspin 0.8s linear infinite; }
@keyframes ucspin { to { transform: rotate(360deg); } }
.uc-bar { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; align-items: center; margin-top: 16px; }
.uc-bar .left, .uc-bar .right { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.uc-msg { margin-top: 12px; padding: 12px 14px; border-radius: 12px; font-size: 14px; }
.uc-msg.err { background: #fef3f2; color: var(--uc-err); border: 1px solid #fecdca; }
.uc-msg.info { background: #f6fef9; color: var(--uc-ok); border: 1px solid #c6f0d8; }
.uc-privacy { display: flex; gap: 8px; align-items: center; font-size: 13px; color: var(--uc-muted); margin-top: 14px; }
.uc-privacy i { color: var(--uc-ok); }

/* text tools */
.uc-io { display: grid; gap: 14px; }
@media (min-width: 860px) { .uc-io.two { grid-template-columns: 1fr 1fr; } }
.uc-io label.cap { display: flex; justify-content: space-between; align-items: center; font-size: 13px; font-weight: 700; color: var(--uc-ink-2); margin-bottom: 6px; }
.uc-io textarea, .uc-io .out { width: 100%; min-height: 220px; resize: vertical; border: 1px solid var(--uc-line); border-radius: 12px; padding: 12px 14px; font: 14px/1.55 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: var(--uc-ink); background: #fffdfb; }
.uc-io textarea:focus { outline: none; border-color: var(--uc-btn); box-shadow: 0 0 0 3px rgba(217, 58, 21, 0.15); }
.uc-io .out { background: #fbf8f5; white-space: pre-wrap; word-break: break-word; overflow: auto; }
.uc-tabs { display: inline-flex; padding: 4px; gap: 4px; background: #f6efe7; border-radius: 12px; margin-bottom: 14px; }
.uc-tabs button { border: 0; background: none; padding: 8px 16px; border-radius: 9px; font: 700 14px Inter, sans-serif; color: var(--uc-ink-2); cursor: pointer; min-height: 38px; }
.uc-tabs button[aria-pressed="true"] { background: #fff; color: var(--uc-ink); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08); }
.uc-kv { display: grid; grid-template-columns: max-content 1fr auto; gap: 8px 14px; align-items: center; }
.uc-kv dt { font-weight: 700; font-size: 13px; color: var(--uc-ink-2); }
.uc-kv dd { margin: 0; font: 14px ui-monospace, Menlo, Consolas, monospace; word-break: break-all; }

/* unit converter */
.uc-unit { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; align-items: end; }
.uc-unit .uc-field input { font-size: 22px; font-weight: 700; min-height: 56px; width: 100%; }
.uc-unit .uc-field select { width: 100%; }
.uc-swap { width: 48px; height: 56px; border: 1px solid var(--uc-line); background: #fff; border-radius: 12px; font-size: 18px; cursor: pointer; color: var(--uc-ink-2); }
.uc-swap:hover { border-color: var(--uc-brand); color: var(--uc-btn); }
.uc-result { margin-top: 16px; padding: 16px 18px; border-radius: 14px; background: var(--uc-soft); font-size: 18px; }
.uc-result strong { font-size: 24px; }
@media (max-width: 640px) { .uc-unit { grid-template-columns: 1fr; } .uc-swap { width: 100%; height: 44px; } }

/* ---------- content ---------- */
.uc-sec { margin-top: 40px; }
.uc-sec h2 { font-size: 24px; letter-spacing: -0.02em; margin: 0 0 14px; line-height: 1.25; }
.uc-sec h3 { font-size: 17px; margin: 0 0 6px; }
.uc-sec p { color: var(--uc-ink-2); margin: 0 0 12px; max-width: 760px; }
.uc-box { background: #fff; border: 1px solid var(--uc-line); border-radius: var(--uc-radius); padding: 20px 22px; }
.uc-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.uc-list li { position: relative; padding-left: 28px; color: var(--uc-ink-2); }
.uc-list li::before { content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%; background: var(--uc-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d93a15' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/11px no-repeat; }
.uc-steps { display: grid; gap: 14px; counter-reset: s; }
@media (min-width: 760px) { .uc-steps { grid-template-columns: repeat(3, 1fr); } }
.uc-step { background: #fff; border: 1px solid var(--uc-line); border-radius: var(--uc-radius); padding: 18px; }
.uc-step::before { counter-increment: s; content: counter(s); display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: var(--uc-soft); color: var(--uc-btn); font-weight: 800; margin-bottom: 10px; }
.uc-step p { margin: 0; font-size: 14.5px; }
.uc-compare { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--uc-line); border-radius: var(--uc-radius); overflow: hidden; font-size: 14.5px; }
.uc-compare th, .uc-compare td { padding: 11px 14px; border-top: 1px solid var(--uc-line); text-align: left; vertical-align: top; }
.uc-compare thead th { background: #faf6f1; border-top: 0; font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--uc-muted); }
.uc-compare tbody th { font-weight: 600; color: var(--uc-ink-2); width: 30%; }
.uc-tablewrap { overflow-x: auto; border-radius: var(--uc-radius); }
.uc-faq details { background: #fff; border: 1px solid var(--uc-line); border-radius: 12px; margin-bottom: 8px; }
.uc-faq summary { cursor: pointer; list-style: none; padding: 15px 18px; font-weight: 700; display: flex; justify-content: space-between; gap: 12px; }
.uc-faq summary::-webkit-details-marker { display: none; }
.uc-faq summary::after { content: "+"; color: var(--uc-btn); font-size: 20px; line-height: 1; }
.uc-faq details[open] summary::after { content: "−"; }
.uc-faq details p { padding: 0 18px 16px; margin: 0; }
.uc-links { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; }
.uc-links a { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 11px 14px; background: #fff; border: 1px solid var(--uc-line); border-radius: 12px; text-decoration: none; color: var(--uc-ink) !important; font-weight: 600; font-size: 14px; }
.uc-links a:hover { border-color: var(--uc-brand); }
.uc-links a i { color: var(--uc-brand); font-size: 12px; }

/* tool directory cards */
.uc-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.uc-card { display: flex; gap: 12px; align-items: flex-start; padding: 16px; background: #fff; border: 1px solid var(--uc-line); border-radius: 16px; text-decoration: none; color: var(--uc-ink) !important; transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s; }
.uc-card:hover { border-color: #f1c9b9; transform: translateY(-2px); box-shadow: var(--uc-shadow); }
.uc-card .ci { flex: none; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--uc-soft); color: var(--uc-btn); font-size: 18px; }
.uc-card b { display: block; font-size: 15px; margin-bottom: 2px; }
.uc-card span { font-size: 13px; color: var(--uc-muted); line-height: 1.45; }
.uc-hero { text-align: center; padding: 28px 0 10px; }
.uc-hero .uc-lede { margin: 0 auto 18px; }
.uc-search { max-width: 560px; margin: 0 auto 8px; position: relative; }
.uc-search input { width: 100%; min-height: 54px; border-radius: 14px; border: 1px solid var(--uc-line); padding: 0 18px 0 48px; font: 500 16px Inter, sans-serif; box-shadow: var(--uc-shadow); }
.uc-search i { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); color: var(--uc-muted); }

/* ---------- footer ---------- */
.uc-footer { margin-top: 56px; background: #fff; border-top: 1px solid var(--uc-line); padding: 40px 0 26px; font-size: 14px; }
.uc-footer__grid { display: grid; gap: 26px; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.uc-footer h3 { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--uc-muted); margin: 0 0 10px; }
.uc-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.uc-footer a { color: var(--uc-ink-2) !important; text-decoration: none; }
.uc-footer a:hover { color: var(--uc-link) !important; }
.uc-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin-top: 30px; padding-top: 18px; border-top: 1px solid var(--uc-line); color: var(--uc-muted); font-size: 13px; }

@media (prefers-reduced-motion: reduce) { .uc * { transition: none !important; animation: none !important; } }

/* PDF, audio and video tools */
.uc-hint { margin: 8px 2px 0; font-size: 13px; color: var(--uc-muted); }
.uc-x:disabled { opacity: .35; cursor: default; }
.uc-progress { height: 6px; margin-top: 14px; border-radius: 99px; background: #f1ebe4; overflow: hidden; }
.uc-progress > span { display: block; height: 100%; width: 0; background: var(--uc-btn); transition: width .2s; }
.uc-outs { margin-top: 14px; }
.uc-preview { margin: 16px 0 0; padding: 12px; border: 1px solid var(--uc-line); border-radius: 12px; background: repeating-conic-gradient(#f4efe9 0 25%, #fff 0 50%) 0 0 / 16px 16px; text-align: center; }
.uc-preview img { max-width: 100%; height: auto; border-radius: 6px; }
.uc-textout { margin-top: 16px; display: grid; gap: 10px; justify-items: start; }
.uc-textout textarea { width: 100%; min-height: 260px; padding: 12px; border: 1px solid var(--uc-line); border-radius: 12px; font: 13px/1.55 ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--uc-ink); background: #fff; resize: vertical; box-sizing: border-box; }
@media (min-width: 981px) and (max-width: 1199px) {
  .uc-coffee { display: none; }
  .uc-nav > .uc-dd > button, .uc-nav > a { padding: 10px 9px; }
}

/* exam photo & signature tools */
.uc-msg.warn { background: #fffaeb; color: #93370d; border: 1px solid #fedf89; }
.exam-warning { margin: 0 0 14px; }
.exam-docs { display: grid; gap: 16px; }
.exam-doc { border: 1px solid var(--uc-line); border-radius: 14px; padding: 16px; background: #fff; display: grid; gap: 10px; }
.exam-doc.active { border-color: var(--uc-btn); box-shadow: 0 0 0 2px rgba(217, 58, 21, .15); }
.exam-doc-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.exam-doc-head h2 { font-size: 18px; margin: 0; }
.exam-doc-head .req { font-size: 13px; font-weight: 700; color: var(--uc-btn); background: #fff4ee; border-radius: 99px; padding: 4px 10px; font-variant-numeric: tabular-nums; }
.exam-note { font-size: 13.5px; color: var(--uc-muted); margin: 0; }
.uc-drop.sm { padding: 18px 14px; min-height: 0; }
.exam-work { display: grid; grid-template-columns: minmax(0, auto) minmax(0, 1fr); gap: 20px; align-items: start; }
.exam-edit { display: grid; gap: 8px; justify-items: center; }
.crop-wrap { position: relative; max-width: 100%; }
.crop { display: block; max-width: 100%; height: auto; border: 1px solid var(--uc-line); border-radius: 6px; cursor: grab; touch-action: none; background: repeating-conic-gradient(#f4efe9 0 25%, #fff 0 50%) 0 0 / 14px 14px; }
.crop:active { cursor: grabbing; }
.crop-hint { position: absolute; left: 50%; bottom: 6px; transform: translateX(-50%); font-size: 11px; font-weight: 600; background: rgba(0, 0, 0, .55); color: #fff; padding: 2px 8px; border-radius: 99px; pointer-events: none; white-space: nowrap; }
.exam-edit .uc-field { width: 100%; max-width: 260px; }
.exam-opts { display: grid; gap: 4px; align-content: start; min-width: 0; }
.exam-opts .nd { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.exam-opts .nd[hidden] { display: none; }
.limits summary { cursor: pointer; font-size: 13.5px; font-weight: 600; color: var(--uc-muted); padding: 6px 0; }
.limits-in { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.limits-in input { width: 100%; }
.checks { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 4px; font-size: 14px; font-variant-numeric: tabular-nums; }
.checks li.ok { color: var(--uc-ok); }
.checks li.no { color: var(--uc-err); }
.uc-bar.tight { margin-top: 10px; padding: 0; border: 0; }
.exam-hub { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 14px; margin: 18px 0 8px; }
.exam-card { display: grid; gap: 6px; align-content: start; padding: 16px; border: 1px solid var(--uc-line); border-radius: 14px; background: #fff; text-decoration: none; color: inherit; transition: border-color .15s, box-shadow .15s; }
.exam-card:hover { border-color: var(--uc-btn); box-shadow: 0 6px 18px rgba(0, 0, 0, .06); }
.exam-card .exam-tag { justify-self: start; font-size: 12px; font-weight: 800; letter-spacing: .04em; color: #fff; background: var(--uc-btn); border-radius: 6px; padding: 3px 8px; }
.exam-card strong { font-size: 16px; }
.exam-card .exam-for { font-size: 13px; color: var(--uc-muted); }
.exam-card ul { margin: 4px 0 0; padding-left: 18px; font-size: 13px; color: var(--uc-ink-2); display: grid; gap: 2px; }
.exam-card .go { font-size: 13.5px; font-weight: 700; color: var(--uc-btn); margin-top: 4px; }
@media (max-width: 720px) {
  .exam-work { grid-template-columns: 1fr; }
  .limits-in { grid-template-columns: 1fr 1fr; }
}

/* ===== Fill & sign PDF (views/tool-fill.ejs, assets/js/fill-ui.js) ===== */
.uc-linkbtn { display: inline; padding: 0; border: 0; background: none; color: var(--uc-link); text-decoration: underline; font: inherit; cursor: pointer; }
.uc-fill-start { display: flex; align-items: center; gap: 16px; padding: 22px; border: 2px dashed #f1c9b9; border-radius: 16px; background: linear-gradient(180deg, #fffaf6, #fff); flex-wrap: wrap; }
.uc-fill-start .ico { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--uc-brand); color: #fff; font-size: 22px; flex: none; }
.uc-fill-start > div { flex: 1; min-width: 200px; }
.uc-fill-start strong { display: block; font-size: 17px; }
.uc-fill-start .sub { display: block; color: var(--uc-muted); font-size: 14px; }

.uc-fill-bar { position: sticky; top: 62px; z-index: 20; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 8px; margin: 0 -4px; border: 1px solid var(--uc-line); border-radius: 14px; background: rgba(255, 255, 255, 0.97); backdrop-filter: blur(6px); box-shadow: var(--uc-shadow); }
.uc-fill-bar .tools { display: flex; flex-wrap: wrap; gap: 4px; }
.uc-fill-bar .tools button { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 8px 11px; border: 1px solid transparent; border-radius: 10px; background: none; font: 600 14px/1 Inter, sans-serif; color: var(--uc-ink-2); cursor: pointer; }
.uc-fill-bar .tools button:hover { background: var(--uc-soft); }
.uc-fill-bar .tools button.is-on { background: var(--uc-ink); color: #fff; }
.uc-fill-bar .props { display: flex; align-items: center; gap: 10px; padding-left: 10px; border-left: 1px solid var(--uc-line); font-size: 13px; color: var(--uc-muted); }
.uc-fill-bar .props select { margin-left: 4px; padding: 6px; border: 1px solid var(--uc-line); border-radius: 8px; background: #fff; }
.uc-fill-bar .props .del { width: 38px; height: 38px; border: 1px solid var(--uc-line); border-radius: 10px; background: #fff; color: var(--uc-err); cursor: pointer; }
.uc-fill-bar .end { display: flex; gap: 8px; margin-left: auto; }
.uc-fill .swatches { display: inline-flex; gap: 6px; }
.uc-fill .swatches button { width: 24px; height: 24px; border-radius: 50%; border: 2px solid #fff; background: var(--c); box-shadow: 0 0 0 1px var(--uc-line); cursor: pointer; padding: 0; }
.uc-fill .swatches button.is-on { box-shadow: 0 0 0 2px var(--uc-btn); }
.uc-fill-flash { margin: 8px 0 0; padding: 8px 12px; border-radius: 10px; background: #1f1d1b; color: #fff; font-size: 14px; text-align: center; }
.uc-fill-status { margin: 12px 0 4px; font-size: 14.5px; color: var(--uc-ink-2); }
.uc-fill-status i { color: var(--uc-btn); margin-right: 4px; }
.uc-fill-flat { margin: 0 0 12px; font-size: 14px; }

.uc-fill-pages { display: grid; justify-items: center; gap: 22px; padding: 18px 0 8px; background: #efe9e2; border-radius: 14px; overflow: hidden; }
.uc-fill-page { position: relative; background: #fff; box-shadow: 0 10px 30px -12px rgba(31, 29, 27, 0.35); }
.uc-fill-page canvas { display: block; }
.uc-fill-page .num { position: absolute; left: 0; right: 0; bottom: -20px; text-align: center; font-size: 12px; color: var(--uc-muted); }
.uc-fill-page .layer { position: absolute; inset: 0; }
.uc-fill-pages[data-tool="text"] .layer, .uc-fill-pages[data-tool="date"] .layer { cursor: text; }
.uc-fill-pages[data-tool="check"] .layer, .uc-fill-pages[data-tool="cross"] .layer, .uc-fill-pages[data-tool="sigplace"] .layer, .uc-fill-pages[data-tool="white"] .layer { cursor: crosshair; }

/* Form fields drawn over the page */
.uc-fill .fld { position: absolute; margin: 0; border: 0; border-radius: 2px; background: rgba(66, 116, 255, 0.11); box-shadow: inset 0 -1px 0 rgba(40, 80, 220, 0.45); color: #0b1a6b; font-family: Helvetica, Arial, sans-serif; padding: 0 2px; line-height: 1.15; outline: none; }
.uc-fill .fld:hover { background: rgba(66, 116, 255, 0.18); }
.uc-fill .fld:focus { background: rgba(255, 245, 190, 0.85); box-shadow: 0 0 0 1.5px #2f5bea; }
.uc-fill .fld:disabled { background: transparent; box-shadow: none; }
.uc-fill textarea.fld { resize: none; padding-top: 2px; overflow: hidden; }
.uc-fill .fld.comb { font-family: "Courier New", Courier, monospace; padding-right: 0; }
.uc-fill .fld.box { display: grid; place-items: center; padding: 0; cursor: pointer; }
.uc-fill .fld.radio { border-radius: 50%; }
.uc-fill .fld.radio i { font-size: 0.6em; }
.uc-fill .fld.sel { padding: 0; appearance: auto; }
.uc-fill .fld.sigbox { display: flex; align-items: center; gap: 6px; padding: 0 8px; font: 600 12px Inter, sans-serif; color: #2f5bea; background: rgba(66, 116, 255, 0.08); box-shadow: inset 0 0 0 1px rgba(47, 91, 234, 0.5); cursor: pointer; }
.uc-fill-pages:not([data-tool="select"]) .fld { pointer-events: none; }

/* Added items */
.uc-fill .item { position: absolute; z-index: 5; outline: none; touch-action: none; }
.uc-fill .item.text, .uc-fill .item.date { padding: 2px 3px; margin: -3px 0 0 -4px; border: 1px dashed transparent; border-radius: 4px; cursor: move; }
.uc-fill .item .tx { min-width: 1ch; white-space: pre; line-height: 1.2; font-family: Helvetica, Arial, sans-serif; outline: none; cursor: text; }
.uc-fill .item.is-sel { border-color: #2f5bea !important; box-shadow: 0 0 0 1px rgba(47, 91, 234, 0.25); }
.uc-fill .item.check svg, .uc-fill .item.cross svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; display: block; }
.uc-fill .item.check, .uc-fill .item.cross, .uc-fill .item.sig, .uc-fill .item.white { cursor: move; border: 1px dashed transparent; }
.uc-fill .item.sig img { width: 100%; height: 100%; display: block; pointer-events: none; }
.uc-fill .item.white { background: #fff; }
.uc-fill .item.white:not(.is-sel) { border-color: rgba(0, 0, 0, 0.08); }
.uc-fill .item .x { position: absolute; top: -12px; right: -12px; width: 22px; height: 22px; border-radius: 50%; border: 0; background: var(--uc-err); color: #fff; font-size: 11px; display: none; place-items: center; cursor: pointer; padding: 0; }
.uc-fill .item.is-sel .x { display: grid; }
.uc-fill .item .rs { position: absolute; right: -7px; bottom: -7px; width: 14px; height: 14px; border-radius: 4px; background: #2f5bea; border: 2px solid #fff; cursor: nwse-resize; display: none; }
.uc-fill .item.is-sel .rs { display: block; }

/* After download */
.uc-fill-done { margin-top: 18px; padding: 18px; border: 1px solid #cfe6d9; border-radius: 14px; background: #f3fbf6; }
.uc-fill-done .ok { font-weight: 700; color: var(--uc-ok); margin-bottom: 10px; }
.uc-fill-done .row { display: flex; flex-wrap: wrap; gap: 8px; }
.uc-fill-cta { display: flex; gap: 12px; align-items: flex-start; margin-top: 14px; padding: 14px 16px; border-radius: 12px; background: #fff; border: 1px solid var(--uc-line); color: var(--uc-ink-2) !important; text-decoration: none !important; font-size: 14.5px; }
.uc-fill-cta i { color: #0d6b4f; font-size: 20px; margin-top: 2px; }
.uc-fill-cta b { color: var(--uc-ink); }
.uc-fill-cta:hover { border-color: #0d6b4f; }

/* Signature pad */
.uc-sigpad { width: min(560px, calc(100vw - 24px)); padding: 0; border: 0; border-radius: 18px; box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.45); }
.uc-sigpad::backdrop { background: rgba(20, 18, 16, 0.5); }
.uc-sigpad form { padding: 18px; display: grid; gap: 14px; }
.uc-sigpad .head { display: flex; justify-content: space-between; align-items: center; font-size: 17px; }
.uc-sigpad .x { width: 36px; height: 36px; border: 0; border-radius: 10px; background: var(--uc-soft); cursor: pointer; }
.uc-sigpad .tabs { display: flex; gap: 4px; padding: 4px; border-radius: 12px; background: #f4efe9; }
.uc-sigpad .tabs button { flex: 1; min-height: 38px; border: 0; border-radius: 9px; background: none; font: 600 14px Inter, sans-serif; cursor: pointer; color: var(--uc-ink-2); }
.uc-sigpad .tabs button.is-on { background: #fff; color: var(--uc-ink); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); }
.uc-sigpad canvas { width: 100%; aspect-ratio: 3 / 1; border: 1px solid var(--uc-line); border-radius: 12px; background: #fff linear-gradient(transparent calc(78% - 1px), #e8e1d8 calc(78% - 1px), #e8e1d8 78%, transparent 78%); touch-action: none; cursor: crosshair; }
.uc-sigpad .row { display: flex; justify-content: space-between; align-items: center; margin-top: 6px; }
.uc-sigpad input[type="text"] { width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid var(--uc-line); border-radius: 12px; font-size: 16px; }
.uc-sigpad .preview { margin-top: 10px; min-height: 92px; display: grid; place-items: center; border: 1px solid var(--uc-line); border-radius: 12px; font: 600 46px "UC Sign", "Brush Script MT", cursive; color: #111; overflow: hidden; white-space: nowrap; }
.uc-sigpad .uc-drop.small { min-height: 120px; }
.uc-sigpad .foot { display: flex; align-items: center; gap: 8px; }
.uc-sigpad .foot .swatches { margin-right: auto; }

@media (max-width: 720px) {
  .uc-fill-bar { top: 58px; }
  .uc-fill-bar .tools button span { display: none; }
  .uc-fill-bar .tools button { padding: 8px 10px; }
  .uc-fill-bar .end { margin-left: 0; width: 100%; }
  .uc-fill-bar .end .uc-btn.primary { flex: 1; }
  .hide-sm { display: none; }
  .uc-fill-pages { margin: 0 -12px; border-radius: 0; }
}
