/* Fills the window; the page itself never scrolls, the two halves scroll inside. Large, high-contrast type. */
:root {
  --bg: #15161a; --panel: #1f2127; --line: #3a3d46; --text: #f4f4f2; --dim: #c9cbd1; --accent: #ffd23f; --warn: #ff9b7a;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 19px; color: var(--text); background: var(--bg);
}
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; overflow: hidden; }
body { display: flex; flex-direction: column; }
.bar { flex: 0 0 auto; padding: 12px 18px 6px; background: var(--panel); border-bottom: 2px solid var(--line); }
h1 { margin: 0 0 8px; font-size: 26px; letter-spacing: 0.01em; }
h2 { margin: 0; font-size: 21px; }
.inputs { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: flex-end; }
.field { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.field.grow { flex: 1 1 220px; }
.field.count { width: 96px; }
label { font-size: 17px; color: var(--dim); font-weight: 600; }
input[type=text], input[type=number] {
  font: inherit; font-size: 20px; color: var(--text); background: #0f1013; border: 2px solid var(--line);
  border-radius: 10px; padding: 9px 12px; width: 100%; min-height: 50px;
}
input:focus { outline: 3px solid var(--accent); outline-offset: 1px; }
.pickrow { display: flex; align-items: center; gap: 10px; min-height: 50px; }
.fname { color: var(--dim); max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.key {
  font: inherit; font-weight: 700; font-size: 19px; color: #111; background: #e9eaee; border: 0; border-radius: 10px;
  padding: 0 18px; min-height: 50px; cursor: pointer; white-space: nowrap;
}
.key:hover { filter: brightness(1.08); }
.key:disabled { opacity: 0.45; cursor: default; filter: none; }
.key.go { background: var(--accent); min-width: 190px; font-size: 21px; }
.key.small { min-height: 42px; font-size: 17px; padding: 0 14px; }
.status { min-height: 30px; line-height: 30px; font-size: 18px; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.status.warn { color: var(--warn); }

main { flex: 1 1 auto; min-height: 0; display: grid; grid-template-columns: minmax(300px, 34%) 1fr; }
.left, .right { min-height: 0; overflow-y: auto; padding: 14px 18px 24px; }
.left { border-right: 2px solid var(--line); display: flex; flex-direction: column; gap: 12px; }
.left > * { flex: 0 0 auto; }
.h2row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; }
.right .h2row { margin-top: 18px; }
.right .h2row:first-child { margin-top: 0; }

.found { display: flex; flex-wrap: wrap; gap: 8px; min-height: 40px; }
.found .shape { display: flex; flex-direction: column; align-items: center; gap: 2px; background: #fff; border-radius: 6px; padding: 4px 4px 2px; }
.found .shape canvas { height: 46px; width: auto; display: block; }
.found .shape span { color: #111; font-size: 17px; font-weight: 700; line-height: 20px; }
.found .shape.off { opacity: 0.4; }
.empty { color: var(--dim); }

.list { display: flex; flex-direction: column; gap: 10px; }
.font { background: var(--panel); border: 2px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.font .top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.font .name { font-weight: 700; color: var(--dim); }
.font .sample { font-size: 46px; line-height: 1.15; padding-top: 6px; white-space: nowrap; overflow: hidden; text-overflow: clip; color: #fff; }

.how { max-width: 760px; margin: 30px auto; font-size: 22px; line-height: 1.5; }
.how ol { padding-left: 1.4em; }
.how li { margin: 6px 0; }

.mix { background: #fff; color: #111; border-radius: 12px; padding: 14px 20px; overflow: hidden; }
.mix svg { width: 100%; height: auto; display: block; }
.varrow { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin-top: 10px; }
.vartype { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.lab { font-size: 17px; color: var(--dim); font-weight: 600; margin-top: 8px; }
.vartype .lab { margin-top: 0; }
.keys { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 26px; font-weight: 700; color: var(--accent); overflow-wrap: anywhere; }
.varkeys { display: flex; gap: 10px; }
.varmap { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; gap: 2px; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 19px; color: var(--text); overflow-wrap: anywhere; }
.font.alpha .sample { font-size: 34px; padding-top: 2px; }

.grid { display: grid; gap: 16px; margin-top: 8px; }
.shirts { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.flyers { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.card { background: var(--panel); border: 2px solid var(--line); border-radius: 12px; padding: 10px; display: flex; flex-direction: column; gap: 8px; }
.card svg { width: 100%; height: auto; display: block; border-radius: 8px; }
.card .foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 10px; }
.card .foot span { color: var(--dim); font-weight: 600; white-space: nowrap; }

@media (max-width: 860px) {
  main { display: block; overflow-y: auto; -webkit-overflow-scrolling: touch; }
  .left, .right { overflow: visible; min-height: auto; }
  .left { border-right: 0; border-bottom: 2px solid var(--line); }
  .field.photo { flex: 1 1 100%; }
  .key.go { flex: 1 1 auto; }
}
