:root { --bg: #14171c; --panel: #1c2027; --line: #2c323c; --text: #e6e9ef; --muted: #8b93a1; --accent: #4da3ff; --ok: #46c07a; --warn: #e0a33a; } * { box-sizing: border-box; } /* An element given `display:` by a rule of its own ignores the hidden attribute - the UA's [hidden] rule loses on specificity. That is why the canvas sat *below* the "Select photo" placeholder instead of replacing it: both were display'd. */ [hidden] { display: none !important; } body { margin: 0; background: var(--bg); color: var(--text); font: 14px/1.5 system-ui, -apple-system, "Segoe UI", sans-serif; } header { padding: 16px 24px; border-bottom: 1px solid var(--line); } h1 { margin: 0; font-size: 18px; letter-spacing: .3px; } h2 { font-size: 12px; text-transform: uppercase; letter-spacing: .8px; color: var(--muted); margin: 0 0 8px; } .sub, .muted { color: var(--muted); font-size: 12px; } .sub { margin: 2px 0 0; } main { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 20px; padding: 20px 24px; align-items: start; } aside { display: flex; flex-direction: column; gap: 14px; position: sticky; top: 0; max-height: 100vh; overflow-y: auto; padding: 20px 10px 20px 0; margin: -20px 0; } aside::-webkit-scrollbar { width: 8px; } aside::-webkit-scrollbar-thumb { background: var(--line); border-radius: 4px; } section { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 14px; } label { display: block; font-size: 12px; color: var(--muted); } .row { display: flex; gap: 10px; } .row > * { flex: 1; } input[type=number], select, input[type=text] { width: 100%; margin-top: 4px; padding: 7px 8px; background: #11141a; border: 1px solid var(--line); border-radius: 5px; color: var(--text); font-size: 13px; } button.stale { border-color: var(--accent); color: var(--text); } td.skip input { opacity: .4; } input[type=range] { width: 100%; margin: 6px 0 2px; accent-color: var(--accent); } #boxPctVal { color: var(--text); } .chk { display: flex; align-items: center; gap: 6px; margin: 10px 0; cursor: pointer; } .chk input { width: auto; } button { width: 100%; margin-top: 10px; padding: 9px; border: 0; border-radius: 5px; background: var(--accent); color: #08111c; font-weight: 600; font-size: 13px; cursor: pointer; } button.ghost { background: transparent; border: 1px solid var(--line); color: var(--text); font-weight: 500; } button:disabled { opacity: .4; cursor: not-allowed; } button:not(:disabled):hover { filter: brightness(1.12); } .drop { display: block; padding: 22px 12px; text-align: center; cursor: pointer; border: 1px dashed var(--line); border-radius: 6px; color: var(--muted); } .drop:hover, .drop.over { border-color: var(--accent); color: var(--accent); } .workspace { display: flex; flex-direction: column; gap: 12px; min-width: 0; } .status { padding: 9px 12px; border-radius: 6px; background: var(--panel); border-left: 3px solid var(--accent); font-size: 13px; } .status.err { border-left-color: #e0574a; } .status.ok { border-left-color: var(--ok); } /* the photo is fitted to the room, so whichever axis it does not fill is slack - centre it there rather than letting it hug the left edge */ #canvasWrap { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 10px; overflow: auto; display: flex; align-items: center; justify-content: center; } canvas { display: block; max-width: 100%; height: auto; cursor: crosshair; } canvas.grid { cursor: default; } table { border-collapse: collapse; } th, td { border: 1px solid var(--line); padding: 3px; } th { background: var(--panel); color: var(--muted); font-size: 11px; font-weight: 500; padding: 5px 8px; } td input { margin: 0; min-width: 110px; } .spaced { margin-top: 16px; } .drop.busy { border-style: solid; color: var(--warn); border-color: var(--warn); } .card { border: 1px solid var(--line); border-radius: 6px; margin-top: 8px; overflow: hidden; } .card summary { cursor: pointer; padding: 9px 11px 9px 30px; position: relative; font-size: 12.5px; color: var(--text); font-weight: 600; list-style: none; } .card summary::-webkit-details-marker { display: none; } .card summary::before { /* the radio that says which is picked */ content: ""; position: absolute; left: 11px; top: 50%; margin-top: -6px; width: 12px; height: 12px; border: 1px solid var(--muted); border-radius: 50%; } .card[open] { border-color: var(--accent); background: #171b21; } .card[open] summary { color: var(--accent); } .card[open] summary::before { border-color: var(--accent); box-shadow: inset 0 0 0 3px var(--accent); } .card:not([open]) summary:hover { background: #1f242c; } .cardBody { padding: 0 11px 11px; } .cardBody p { margin: 0 0 2px; } .modes { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; } .mode { margin: 0; padding: 11px 14px; background: var(--panel); color: var(--muted); border: 1px solid var(--line); font-size: 13px; } .mode:hover { color: var(--text); } /* the one you are working on, and it is the only one you can work on */ .mode.on { background: var(--accent); color: #08111c; border-color: var(--accent); } /* the working window *is* the upload target: one area, as big as the window allows */ #dropZone { position: relative; cursor: pointer; border-radius: 6px; display: flex; align-items: center; justify-content: center; } #dropZone:hover, #dropZone.over { background: #171b21; } .ph { position: absolute; inset: 0; width: 100%; height: 100%; } .ph rect, .ph line { fill: none; stroke: var(--line); stroke-width: 1; vector-effect: non-scaling-stroke; } .slot:hover .ph rect, .slot:hover .ph line { stroke: var(--accent); } .slotHint { position: relative; z-index: 1; color: var(--muted); font-size: 15px; background: var(--panel); padding: 6px 16px; border-radius: 4px; } #dropZone:hover .slotHint { color: var(--accent); } #dropZone:hover .ph rect, #dropZone:hover .ph line { stroke: var(--accent); } #chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; } .chip { width: auto; margin: 0; padding: 4px 9px; font-size: 12px; border-radius: 999px; background: transparent; border: 1px solid var(--warn); color: var(--warn); cursor: pointer; } .chip:hover { background: var(--warn); color: #1b1206; } td.low input { border-color: var(--warn); } /* the reader was unsure */ td.check input { border-color: var(--warn); background: #241d0e; } /* it cannot be right */ /* a count that has to be readable from across the room: how much is left to check */ .badge { display: inline-block; margin-left: 8px; padding: 1px 9px; border-radius: 999px; font-size: 11px; text-transform: none; letter-spacing: .3px; border: 1px solid var(--line); color: var(--muted); } .badge.warn { border-color: var(--warn); color: var(--warn); } .badge.ok { border-color: var(--ok); color: var(--ok); } /* the grid sliders are not one of the three detection methods, so the card they sit in must not wear the radio that says "this is the one you picked" */ .card.plain summary { padding-left: 11px; } .card.plain summary::before { display: none; } /* one specimen per row: what gets exported, what says its name, and the name */ .samples { display: flex; flex-direction: column; gap: 6px; } .sample { display: grid; grid-template-columns: 34px 96px 240px 44px minmax(150px, 1fr) auto; align-items: center; gap: 10px; padding: 6px 8px; background: var(--panel); border: 1px solid var(--line); border-radius: 6px; } .sample .no { color: var(--muted); font-size: 12px; } .sample .cell { color: var(--muted); font-size: 11px; } .sample .flag { color: var(--warn); font-size: 11px; } .sample input { margin: 0; } .sample.check { border-color: var(--warn); } .sample.check input { border-color: var(--warn); background: #241d0e; } .sample.low input { border-color: var(--warn); } .sample.skip { opacity: .45; } .sample:focus-within { border-color: var(--ok); } canvas.thumb { display: block; max-width: 100%; background: #11141a; border: 1px solid var(--line); border-radius: 3px; }