a { color: var(--accent); } a.plain { color: inherit; text-decoration: none; }
.nav { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }
.nav a { text-decoration: none; font-weight: 600; color: var(--ink); padding: .4rem 0; }
.nav a[aria-current="page"] { color: var(--accent); border-bottom: 2px solid var(--accent); }
.count { background: var(--pin); color: #fff; border-radius: 999px; padding: 0 .45rem; font-size: .75rem; }
main#view { max-width: 1200px; }
.page-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.page-head h2 { font-size: 1.3rem; margin: 0; }
table { width: 100%; border-collapse: collapse; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
th, td { text-align: left; padding: .65rem .8rem; border-bottom: 1px solid var(--line); font-size: .95rem; vertical-align: top; }
th { font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
tr:last-child td { border-bottom: 0; }
tr.row { cursor: pointer; } tr.row:hover { background: color-mix(in srgb, var(--accent) 7%, transparent); }
.table-wrap { overflow-x: auto; }
.badge { display: inline-block; border-radius: 999px; padding: .1rem .6rem; font-size: .8rem; font-weight: 600; border: 1px solid var(--line); white-space: nowrap; }
.badge.good { color: var(--ok); border-color: var(--ok); } .badge.bad { color: var(--danger); border-color: var(--danger); }
.badge.wait { color: var(--warn-ink); background: var(--warn-bg); border-color: transparent; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; align-items: start; }
.row-fields { display: flex; gap: .5rem; flex-wrap: wrap; align-items: end; }
.row-fields > div { flex: 1 1 140px; display: flex; flex-direction: column; gap: .25rem; }
select { font: inherit; color: inherit; background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: .55rem .5rem; width: 100%; min-height: 44px; }
textarea.code { font: 13px/1.45 ui-monospace, SFMono-Regular, Menlo, monospace; min-height: 9rem; }
.linkbox { display: flex; gap: .5rem; flex-wrap: wrap; } .linkbox input { flex: 1 1 260px; font-family: ui-monospace, Menlo, monospace; font-size: .85rem; }
.issues { margin: .5rem 0 0; padding-left: 1.1rem; } .issues li { margin-bottom: .3rem; overflow-wrap: anywhere; }
.preview { display: grid; grid-template-columns: 1fr; gap: .75rem; margin-top: .75rem; }
.preview img { width: 100%; border: 1px solid var(--line); border-radius: 6px; background: #8881; }
.preview iframe { height: 520px; }
.flat-head { display: flex; justify-content: space-between; align-items: center; gap: .75rem; flex-wrap: wrap; }
.flat-head a.btn { text-decoration: none; }
.flat-pages { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .5rem; }
a.btn { text-decoration: none; display: inline-flex; align-items: center; }
.version { border-top: 1px solid var(--line); padding-top: 1rem; margin-top: 1rem; }
.version:first-of-type { border-top: 0; padding-top: 0; margin-top: 0; }
.gap-top { margin-top: 1rem; }
.logo-preview { height: 56px; max-width: 260px; object-fit: contain; object-position: left; background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 4px; align-self: flex-start; }
input[type=color] { width: 100%; min-height: 44px; padding: 2px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); }
.hint { font-size: .85rem; color: var(--muted); margin: 0; }
.ok-note { color: var(--ok); font-weight: 600; }
.auth { max-width: 420px; margin: 3rem auto; }
.spread { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; align-items: center; }
.stack > .card + .card, .cards > .card + .card { margin-top: 1rem; }
@media (max-width: 860px) { .grid2 { grid-template-columns: 1fr; } }
/* 15-A: upload first */
.drop { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .4rem; text-align: center;
  min-height: 180px; padding: 1.5rem; border: 2px dashed var(--line); border-radius: var(--radius); background: var(--bg); cursor: pointer; }
.drop.over { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 8%, transparent); }
.drop strong { font-size: 1.1rem; }
.drop-input { max-width: 100%; }
.files { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.files li { display: grid; grid-template-columns: 1fr minmax(160px, 240px); gap: .2rem .75rem; align-items: center;
  border: 1px solid var(--line); border-radius: 8px; padding: .5rem .7rem; }
.files li > div:first-child { overflow-wrap: anywhere; } .files li .hint { grid-column: 1; }
.files li select { grid-column: 2; grid-row: 1 / span 2; }
.found { margin: 0; } .note-line { margin: 0; padding: .5rem .7rem; border-radius: 8px; background: var(--warn-bg); color: var(--warn-ink); }
.check { display: inline-flex; gap: .45rem; align-items: center; } .check input { width: auto; min-height: 0; }
.finish-row { display: flex; flex-direction: column; gap: .4rem; border: 1px solid var(--line); border-radius: 8px; padding: .6rem .7rem; }
.finish-row.off { opacity: .75; } .finish-row .btn { align-self: flex-start; }
.row-fields.compact > * { flex: 1 1 140px; }
/* 15-G: the proof and one send button */
.review { display: grid; grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr); gap: 1rem; align-items: start; }
.review.solo { grid-template-columns: minmax(0, 1fr); max-width: 760px; }
.review-proof .preview { margin-top: 0; } .review-proof .preview iframe { height: 640px; }
.btn.big { font-size: 1.05rem; padding: .8rem 1.2rem; }
.send { border-top: 1px solid var(--line); padding-top: .75rem; }
.issue { margin-bottom: .6rem; } .issue.note { color: var(--muted); } .ways { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .35rem; }
.file-btn { position: relative; overflow: hidden; } .file-btn input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.list-row { border-bottom: 1px solid var(--line); padding-bottom: .5rem; }
@media (max-width: 860px) { .review { grid-template-columns: 1fr; } .files li { grid-template-columns: 1fr; } .files li select { grid-column: 1; grid-row: auto; } }
