#mode { color: var(--muted); font-size: 12px; margin: 0 0 20px; }
.submit-layout { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(300px, 1fr); gap: 24px; align-items: start; }
.transaction-panel, .submit-panel { padding: 22px; background: #fff; border: 1px solid var(--border); }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.section-heading h2 { margin: 0; }
#clear { min-height: 28px; padding: 3px 9px; }
.submission-column { position: sticky; top: 24px; min-width: 0; }
.submission-destination { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.submission-destination select { width: 100%; }
.submit-actions { display: flex; flex-direction: column; gap: 8px; margin-top: 20px; }
fieldset { min-width: 0; margin: 0; padding: 14px; border: 1px dashed #b9c5d4; border-radius: 0; background: #fafbfd; }
legend { padding: 0 6px; color: #566577; font-size: 12px; }
#dropzone.dragging { outline: 2px solid var(--accent); background: #f0f5fc; }
#filename { overflow-wrap: anywhere; font-size: 12px; margin-bottom: 0; }
#filename:empty { display: none; }
.file-picker { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.file-picker > span { color: var(--muted); font-size: 12px; }
#choose-file { min-width: 105px; background: #fff; }
#choose-file:not(:disabled):hover { background: #f0f3f7; }
label[for="cbor"] { font-size: 12px; color: #566577; }
#cbor { display: block; }
.review-actions { margin-top: 14px; justify-content: space-between; }
#inspect { color: #fff; background: var(--accent); border-color: var(--accent); }
#inspect:not(:disabled):hover { background: #214a8b; }
.transaction-review { margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--border); }
.transaction-review .facts th { width: 32%; }
#review-summary, #witness-note, #status-note { font-size: 12px; color: var(--muted); }
#witness-note.witness-warning { color: #a23932; }
#elapsed, #health, #memory { font: 11px var(--mono); color: var(--muted); }
.submission-status { border-top: 1px solid var(--border); margin-top: 20px; padding-top: 20px; }
.submission-status h3 { margin-bottom: 8px; }
.progress { display: grid; gap: 10px; padding-left: 20px; margin: 18px 0; font-size: 12px; color: #85909d; }
.progress li { padding-left: 4px; }
.progress li.done { color: #356143; }
.progress li.done::after { content: '✓'; float: right; font-weight: 600; }
.activity-log { border-top: 1px solid var(--border); padding-top: 12px; font-size: 12px; }
.activity-log summary { color: var(--muted); }
.log { list-style: none; padding: 0; margin: 0; max-height: 200px; overflow: auto; }
.log li { display: flex; gap: 10px; padding: 8px 0; border-top: 1px solid #e8ebf0; overflow-wrap: anywhere; font-size: 11px; }
.log time { flex-shrink: 0; color: var(--muted); font: 10px var(--mono); padding-top: 3px; }
.review-detail { border-top: 1px solid var(--border); padding: 12px 0; font-size: 12px; }
.review-detail > summary { font-weight: 550; }
.review-detail > summary > span { font-weight: 400; color: var(--muted); margin-left: 8px; }
.review-detail .output:first-child { border-top: 0; }
#details .output { display: grid; gap: 6px; font-size: 12px; }
#details .hash { font-size: 11px; }
#details small { display: block; }
.input-list { padding-left: 18px; font: 11px/1.7 var(--mono); overflow-wrap: anywhere; }
@media (max-width: 800px) {
  .submit-layout { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .submission-column { position: static; }
  .transaction-panel, .submit-panel { padding: 16px; }
}
@media (max-width: 380px) { .transaction-panel, .submit-panel { padding: 12px; } }
