/* hj.css — /heic-to-jpg/ (T-PAHEIC.2). Built only from polyatic.css tokens: no colour, font or shadow of its own. */
.hj-noscript{margin:0;padding:0.75rem 1rem;background:var(--surface-2);border-bottom:1px solid var(--line);font-size:0.9375rem}
.hj-head{margin-bottom:0}
.hj-head .sub{margin-bottom:0.625rem}
.hj-trust{display:flex;align-items:center;gap:0.5rem;margin:0 0 1rem;font-weight:600;font-size:0.9375rem;color:var(--ink);text-wrap:pretty}
.hj-lock{flex:none;width:0.875rem;height:0.875rem;border-radius:0.1875rem;background:var(--signal);box-shadow:inset 0 0 0 1px rgba(17,19,18,.25)}

.hj-main{display:flex;flex-direction:column;gap:0.875rem}
.hj-drop{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:0.625rem;text-align:center;min-height:9rem;padding:1.375rem 1rem;border:2px dashed var(--line-2);border-radius:0.875rem;background:var(--surface-2);cursor:pointer;transition:.15s}
.hj-drop:hover,.hj-drop.drag,.hj-drop:focus-within{border-color:var(--accent);background:var(--accent-soft)}
.hj-file{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}
.hj-file:focus-visible+.hj-choose{outline:2px solid var(--accent);outline-offset:3px}
.hj-choose{display:inline-flex;align-items:center;justify-content:center;height:3.25rem;padding:0 1.75rem;font-size:1.0625rem;pointer-events:none;max-width:100%}
.hj-drop-hint{color:var(--muted);font-size:0.875rem;max-width:34ch;text-wrap:balance}

.hj-set{border:1px solid var(--line);border-radius:0.625rem;background:var(--surface)}
.hj-set>summary{display:flex;align-items:center;justify-content:space-between;gap:0.75rem;padding:0.625rem 0.875rem;cursor:pointer;list-style:none;font-size:0.875rem;color:var(--ink-2)}
.hj-set>summary::-webkit-details-marker{display:none}
.hj-set-k{flex:none;font-family:var(--mono);font-size:0.75rem;text-transform:uppercase;letter-spacing:.06em;color:var(--accent)}
.hj-set[open]>summary .hj-set-k{visibility:hidden}
.hj-set-body{padding:0.25rem 0.875rem 0.875rem;display:grid;gap:0.75rem}
.hj-set-body .modes{margin-bottom:0}
.hj-set-body input[type=range]{width:100%;accent-color:var(--accent)}
.hj-check{display:flex;gap:0.5rem;align-items:center;font-weight:600;font-size:0.9375rem;cursor:pointer}
.hj-check input{width:1.125rem;height:1.125rem;accent-color:var(--accent)}
.hj-small{margin:0.375rem 0 0;color:var(--muted);font-size:0.8125rem;line-height:1.5}

.hj-bar{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:0.625rem;margin-bottom:0.75rem}
.hj-summary{margin:0;font-weight:600;font-size:0.9375rem;min-width:0}
.hj-bar-btns{display:flex;flex-wrap:wrap;gap:0.5rem}
.hj-bar-btns .btn{height:auto;min-height:2.75rem;white-space:normal}
.hj-unsupported{border:1px solid var(--bad);border-left-width:4px;border-radius:0.625rem;background:var(--surface-2);padding:0.75rem 0.875rem;margin-bottom:0.75rem}
.hj-unsupported p{margin:0 0 0.375rem;font-size:0.875rem;line-height:1.5;color:var(--ink-2)}
.hj-unsupported p:last-child{margin-bottom:0}
.hj-unsupported b{color:var(--ink);font-size:0.9375rem}
.hj-list{list-style:none;margin:0;padding:0;display:grid;gap:0.5rem}
.hj-row{display:grid;grid-template-columns:4rem minmax(0,1fr) auto;gap:0.75rem;align-items:center;padding:0.5rem;border:1px solid var(--line);border-radius:0.625rem;background:var(--surface)}
.hj-thumb{width:4rem;height:4rem;border-radius:0.375rem;background:var(--surface-2);display:grid;place-items:center;overflow:hidden;font-weight:700;color:var(--muted)}
.hj-thumb img{width:100%;height:100%;object-fit:cover;display:block}
.hj-row.is-unsupported .hj-thumb,.hj-row.is-error .hj-thumb{color:var(--bad)}
.hj-row.is-busy .hj-thumb{animation:hj-pulse 1.2s ease-in-out infinite}
@keyframes hj-pulse{50%{opacity:.45}}
.hj-info{display:flex;flex-direction:column;gap:0.125rem;min-width:0}
.hj-name{font-size:0.9375rem;overflow-wrap:anywhere}
.hj-sizes{font-family:var(--mono);font-size:0.8125rem;color:var(--ink-2);font-variant-numeric:tabular-nums}
.hj-note{font-size:0.8125rem;color:var(--muted);line-height:1.45}
.hj-note:empty{display:none}
.hj-dl{height:2.5rem;padding:0 0.875rem}
@media (max-width:420px){
  .hj-row{grid-template-columns:3.25rem minmax(0,1fr)}
  .hj-thumb{width:3.25rem;height:3.25rem}
  .hj-act{grid-column:1 / -1}
  .hj-act:empty{display:none}
  .hj-dl{width:100%}
}

.hj-example{padding:1rem}
.hj-ex-h{font-family:var(--mono);font-size:0.75rem;font-weight:500;text-transform:uppercase;letter-spacing:.06em;color:var(--muted);margin:0 0 0.75rem}
.hj-ba{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);gap:0.5rem;align-items:start}
.hj-ba figure{margin:0;display:flex;flex-direction:column;gap:0.5rem;min-width:0}
.hj-ba figcaption{display:flex;flex-direction:column;gap:0.125rem;font-size:0.8125rem;line-height:1.4;color:var(--muted)}
.hj-ba figcaption b{color:var(--ink);font-family:var(--mono);font-size:0.75rem;font-weight:600;overflow-wrap:anywhere}
.hj-fileicon,.hj-after img{width:100%;aspect-ratio:3 / 4;border-radius:0.5rem}
.hj-fileicon{display:grid;place-items:center;background:repeating-linear-gradient(135deg,var(--surface-2) 0 0.5rem,var(--surface) 0.5rem 1rem);border:1px solid var(--line-2)}
.hj-fileicon span{font-family:var(--mono);font-weight:700;font-size:0.875rem;letter-spacing:.06em;padding:0.375rem 0.5rem;border:1.5px solid var(--muted);border-radius:0.25rem;color:var(--muted);background:var(--surface)}
.hj-after img{object-fit:cover;display:block;height:auto;border:1px solid var(--line)}
.hj-arrow{align-self:center;margin-top:-2.5rem;font-size:1.25rem;color:var(--accent);font-weight:700}
@media (max-width:640px){
  .hj-ba{grid-template-columns:minmax(0,1fr) auto minmax(0,1fr)}
  .hj-fileicon,.hj-after img{aspect-ratio:1 / 1}
}
@media (min-width:900px){
  .hj-drop{min-height:13rem}
}
.hj-main.has-results .hj-drop{min-height:0;flex-direction:row;flex-wrap:wrap;padding:0.75rem}
.hj-main.has-results .hj-choose{height:2.75rem;font-size:0.9375rem;padding:0 1.125rem}
.hj-main.has-results .hj-drop-hint{display:none}

/* the unsupported box's "Finish it on this computer or phone" (T-PAHEIC.4) */
.hj-howto{margin-top:0.625rem;border:1px solid var(--line);border-radius:0.5rem;background:var(--surface)}
.hj-howto>summary{display:flex;align-items:center;justify-content:space-between;gap:0.75rem;padding:0.625rem 0.75rem;min-height:2.75rem;cursor:pointer;list-style:none;font-weight:600;font-size:0.9375rem;color:var(--ink)}
.hj-howto>summary::-webkit-details-marker{display:none}
.hj-howto>summary:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.hj-howto[open]>summary .hj-set-k{visibility:hidden}
.hj-howto-list{display:grid;gap:0.625rem;padding:0 0.75rem 0.75rem}
.hj-os{border-top:1px solid var(--line);padding-top:0.625rem}
.hj-os:first-child{border-top:0;padding-top:0}
.hj-unsupported .hj-os-h{display:flex;align-items:center;justify-content:space-between;gap:0.5rem;margin:0 0 0.25rem}
.hj-yours{display:none;flex:none;font-family:var(--mono);font-size:0.6875rem;text-transform:uppercase;letter-spacing:.06em;color:var(--accent)}
.hj-os.is-yours .hj-yours{display:inline}
.hj-os ol{margin:0;padding-left:1.25rem;display:grid;gap:0.25rem;font-size:0.875rem;line-height:1.5;color:var(--ink-2)}
.hj-unsupported .hj-src{margin:0.375rem 0 0;font-size:0.75rem;color:var(--muted)}
.hj-src a{color:inherit;overflow-wrap:anywhere}
