/* Veilora: tool interfaces, upload areas, previews, editors, results and feedback states. */
.tool-panel { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.4rem; margin: 1.5rem 0 2rem; }
.tool-panel h2 { margin: 0 0 .8rem; font-size: 1.3rem; }
.tool-panel h3 { font-size: 1.05rem; margin: 1.2rem 0 .5rem; }
.tool-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.disclosure { background: var(--warn-bg); border: 1px solid #FDE68A; border-radius: var(--radius-sm); padding: .9rem 1.1rem; margin-bottom: 1rem; color: #3F2A06; }
.disclosure strong { color: var(--warn); }
.disclosure ol, .disclosure ul { margin: .5rem 0 0; padding-left: 1.3rem; }
.checkbox-row { display: flex; gap: .6rem; align-items: flex-start; margin: .8rem 0; }
.checkbox-row input { width: 1.25rem; height: 1.25rem; margin-top: .25rem; flex: none; accent-color: var(--orange); }
.checkbox-row label { margin: 0; font-weight: 500; }

.dropzone { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: .35rem; border: 2px dashed #CDBFAF; border-radius: var(--radius); background: var(--cream); padding: 2rem 1rem; cursor: pointer; transition: border-color .15s, background .15s; }
.dropzone:hover, .dropzone.is-over, .dropzone:focus-within { border-color: var(--orange); background: var(--orange-soft); }
.dropzone input[type="file"] { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.dropzone strong { font-size: 1.05rem; }
.dropzone small { color: var(--muted); }

.preview-box { background: var(--neutral); border: 1px solid var(--border); border-radius: var(--radius-sm); min-height: 12rem; display: flex; align-items: center; justify-content: center; overflow: hidden; padding: .5rem; }
.preview-box img { max-height: 22rem; width: auto; object-fit: contain; }
.preview-empty { color: var(--muted); font-size: .95rem; }
.stat-list { display: grid; grid-template-columns: auto 1fr; gap: .25rem 1rem; margin: .75rem 0 0; font-size: .95rem; }
.stat-list dt { color: var(--muted); }
.stat-list dd { margin: 0; word-break: break-word; }
.range-row { display: flex; align-items: center; gap: .75rem; }
.range-row input[type="range"] { flex: 1; accent-color: var(--orange); }

.status { min-height: 1.5rem; margin-top: .9rem; padding: .6rem .9rem; border-radius: var(--radius-sm); font-weight: 550; }
.status:empty { display: none; }
.status-ok { background: var(--ok-bg); color: var(--ok); border: 1px solid #BBF7D0; }
.status-err { background: var(--err-bg); color: var(--err); border: 1px solid #FECACA; }
.status-info { background: var(--neutral); color: var(--charcoal); border: 1px solid var(--border); }
progress { width: 100%; height: .9rem; accent-color: var(--orange); }

.editor { font-family: var(--font-mono); font-size: .95rem; line-height: 1.55; min-height: 12rem; }
.opt-grid { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; margin: .5rem 0 1rem; }
.opt-grid label { display: inline-flex; align-items: center; gap: .4rem; font-weight: 500; margin: 0; }
.opt-grid input { accent-color: var(--orange); width: 1.1rem; height: 1.1rem; }
.match-list { list-style: none; margin: .5rem 0 1rem; padding: 0; max-height: 18rem; overflow: auto; border: 1px solid var(--border); border-radius: var(--radius-sm); }
.match-list li { display: flex; gap: .6rem; align-items: flex-start; padding: .5rem .75rem; border-bottom: 1px solid var(--border); }
.match-list li:last-child { border-bottom: 0; }
.match-list input { margin-top: .3rem; accent-color: var(--orange); width: 1.1rem; height: 1.1rem; flex: none; }
.match-text { word-break: break-all; font-family: var(--font-mono); font-size: .9rem; }
.tag { display: inline-block; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; padding: .1rem .45rem; border-radius: 4px; background: var(--orange-soft); color: var(--orange-dark); margin-right: .4rem; }
.preview-text { white-space: pre-wrap; word-break: break-word; background: var(--cream); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: .9rem; font-family: var(--font-mono); font-size: .92rem; max-height: 20rem; overflow: auto; }
mark { background: #FDE047; color: #1C1917; padding: 0 .1em; border-radius: 2px; }
mark.is-off { background: transparent; text-decoration: underline dotted; }

.result-box { background: var(--cream); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: .9rem; margin-top: 1rem; }
.hash-value { display: block; font-family: var(--font-mono); font-size: .95rem; word-break: break-all; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: .7rem .8rem; }
.findings { width: 100%; }
.level-review { color: var(--warn); font-weight: 700; }
.level-info { color: var(--muted); }

.pseudo-list { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: .6rem; }
.pseudo-list li { display: flex; justify-content: space-between; align-items: center; gap: .5rem; background: var(--cream); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: .5rem .5rem .5rem .8rem; font-weight: 600; }
.btn-sm { padding: .35rem .75rem; min-height: 2.25rem; font-size: .9rem; }

.cl-category { border: 1px solid var(--border); border-radius: var(--radius-sm); margin-bottom: .75rem; background: var(--white); }
.cl-category > summary { cursor: pointer; font-weight: 700; padding: .8rem 1rem; display: flex; gap: .75rem; align-items: center; justify-content: space-between; }
.cl-category .cl-count { font-weight: 500; color: var(--muted); font-size: .9rem; }
.cl-body { padding: 0 1rem 1rem; }
.cl-body textarea { min-height: 4.5rem; margin-top: .5rem; }
.progress-wrap { margin: .75rem 0 1.25rem; }
.print-only { display: none; }

@media print {
  .site-header, .site-footer, .breadcrumbs, .skip-link, .toc, .related, .no-print, .tool-panel, .prose, .page-head .lead { display: none !important; }
  .print-only { display: block !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .print-only h2 { margin-top: 1rem; font-size: 13pt; }
  .print-only li { margin-bottom: .2rem; }
}

.mt { margin-top: 1.25rem; }
.mt-s { margin-top: 1rem; }
fieldset.plain { border: 0; padding: 0; margin: 0 0 1rem; }
fieldset.plain legend { padding: 0; }
