/* Dialogs: add scores (screenshots, paste, review), minimums, follow-up, backup. */
dialog { border: 1px solid var(--line-strong); border-radius: 12px; padding: 0; background: var(--panel); color: var(--ink); width: min(780px, calc(100vw - 32px)); max-height: calc(100vh - 48px); }
dialog::backdrop { background: var(--scrim); }
.dlg { display: flex; flex-direction: column; max-height: calc(100vh - 50px); }
.dlg-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.dlg-b { padding: 16px 18px; overflow: auto; display: grid; gap: 14px; min-height: 0; }
.dlg-f { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 8px; padding: 12px 18px; border-top: 1px solid var(--line); }
.dlg-f .note { margin-right: auto; font-size: 13px; color: var(--bad); }
.dlg .card { background: var(--bg); }

/* Screenshot pickers */
.drop { position: relative; display: grid; place-items: center; gap: 4px; text-align: center; padding: 22px; border: 1.5px dashed var(--line-strong); border-radius: var(--r); background: var(--bg); cursor: pointer; }
.drop.over { border-color: var(--accent); background: var(--accent-soft); }
.drop:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.drop b { font: 600 16px/1.1 var(--font-display); letter-spacing: .06em; text-transform: uppercase; }
.drop span { font-size: 13px; color: var(--muted); }
.pastebox { min-height: 52px; padding: 14px; border: 1.5px dashed var(--line-strong); border-radius: var(--r); background: var(--bg); color: var(--muted); font-size: 14px; text-align: center; overflow: hidden; -webkit-user-select: text; user-select: text; }
.pastebox:empty::before { content: attr(data-ph); color: var(--faint); }
.pastebox:focus { outline: 2px solid var(--accent); outline-offset: 2px; border-color: var(--accent); }
.files { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.files:empty { display: none; }
.files li { display: inline-flex; align-items: center; gap: 2px; font-size: 12.5px; padding: 2px 2px 2px 9px; border-radius: 999px; background: var(--sunk); color: var(--muted); max-width: 240px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.files li .x { border: 0; background: none; color: var(--muted); font-size: 16px; line-height: 1; width: 26px; height: 26px; border-radius: 999px; cursor: pointer; flex: none; }
.files li .x:hover { background: var(--line); color: var(--ink); }
.status { font-size: 13.5px; color: var(--muted); margin: 0; }
.status:empty { display: none; }
.status.err { color: var(--bad); }

/* Review table */
table.rev { width: 100%; border-collapse: collapse; }
.rev th { font: 600 12px/1 var(--font-display); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); text-align: left; padding: 8px; background: var(--sunk); white-space: nowrap; }
.rev th.num { text-align: right; }
.rev td { padding: 5px 8px; border-top: 1px solid var(--line); vertical-align: middle; }
.rev td.nm { font-weight: 500; max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rev td.pts { text-align: right; }
.rev .input { padding: 6px 8px; }
.rev input.input { width: 120px; text-align: right; font-family: var(--font-num); }
.rev select.input { width: 100%; min-width: 170px; }
.rev tr.dupe td { background: var(--bad-soft); }
.rev .was { font: 500 12px/1 var(--font-num); color: var(--muted); white-space: nowrap; }
.badge { display: inline-block; margin-left: 6px; font: 600 10.5px/1 var(--font-body); padding: 3px 6px; border-radius: 999px; background: var(--accent-soft); color: var(--ink); vertical-align: 1px; }

/* Minimums */
.mins { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.mins small { color: var(--faint); font-weight: 400; }
