/* Round-check layout of the browser demo (same look as the desktop app, desktop/app.py). */ :root { --bg: #0b1220; --panel: #0f172a; --line: #1e293b; --bar: #0f2a3d; --btn: #1e3a5f; --btn-line: #2c5282; --text: #e2e8f0; --muted: #94a3b8; --key: #64748b; --accent: #0284c7; --sel: #1e3a5f; } * { box-sizing: border-box; } [hidden] { display: none !important; } html, body { margin: 0; height: 100%; } body { background: var(--bg); color: var(--text); display: flex; flex-direction: column; font: 14px/1.45 system-ui, -apple-system, "Segoe UI", "Malgun Gothic", "Apple SD Gothic Neo", sans-serif; } a { color: #7dd3fc; } .toolbar { background: var(--bar); display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 8px 12px; } .brand { font-size: 17px; font-weight: 700; color: #e2f2ff; margin-right: 8px; white-space: nowrap; } .tools { display: flex; flex-wrap: wrap; gap: 6px; } .btn { background: var(--btn); border: 1px solid var(--btn-line); border-radius: 6px; color: #e2f2ff; padding: 6px 12px; font: inherit; cursor: pointer; white-space: nowrap; } .btn:hover { background: #24507f; } .btn.primary { background: var(--accent); border-color: #0ea5e9; font-weight: 700; } .btn:disabled { opacity: .5; cursor: default; } .layout { flex: 1; display: grid; gap: 8px; padding: 8px; min-height: 0; grid-template-columns: 260px minmax(0, 1fr) 330px; grid-template-rows: minmax(420px, 1fr) auto; grid-template-areas: "list center side" "table table table"; } .layout.over { outline: 2px dashed #0ea5e9; outline-offset: -4px; } .list { grid-area: list; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; overflow-y: auto; } .item { display: flex; gap: 8px; padding: 8px 10px; border-bottom: 1px solid var(--line); cursor: pointer; } .item:hover { background: #13203a; } .item.active { background: var(--sel); } .item img { width: 44px; height: 44px; object-fit: cover; border-radius: 6px; flex: none; } .item .name { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .item .val { font-weight: 700; } .item .meta { min-width: 0; } .dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 6px; } .center { grid-area: center; display: flex; flex-direction: column; min-width: 0; min-height: 0; } .tabs { display: flex; gap: 2px; } .tab { background: var(--panel); border: 1px solid var(--line); border-bottom: none; color: var(--muted); padding: 7px 16px; font: inherit; cursor: pointer; border-radius: 6px 6px 0 0; } .tab.active { background: var(--sel); color: #e2f2ff; } .view { flex: 1; border: 1px solid var(--line); border-radius: 0 8px 8px 8px; display: flex; align-items: center; justify-content: center; padding: 8px; min-height: 300px; overflow: hidden; } .view canvas { max-width: 100%; max-height: 100%; object-fit: contain; } .empty { color: var(--key); text-align: center; padding: 16px; } .side { grid-area: side; display: flex; flex-direction: column; gap: 8px; min-width: 0; min-height: 0; overflow-y: auto; } .card { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; } .meter { display: flex; justify-content: center; } .meter svg { max-width: 100%; height: auto; } .key { color: var(--key); font-size: 11px; font-weight: 700; } select, input[type=number], input[type=text] { background: #13203a; color: var(--text); border: 1px solid var(--btn-line); border-radius: 6px; padding: 5px 8px; font: inherit; } .custom { display: flex; gap: 4px; align-items: center; } .custom input { width: 64px; } .check { display: flex; gap: 6px; align-items: center; color: var(--text); } .grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; } .grid .card b { display: block; color: var(--key); font-size: 11px; } .grid .card span { font-size: 15px; font-weight: 700; word-break: break-word; } .tablewrap { grid-area: table; max-height: 210px; overflow: auto; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; } table { border-collapse: collapse; width: 100%; font-size: 13px; } th { position: sticky; top: 0; background: #13203a; color: var(--muted); font-weight: 600; text-align: left; } th, td { padding: 6px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; } tbody tr { cursor: pointer; } tbody tr:hover { background: #13203a; } td.HIGH { background: #7f1d1d; } td.LOW { background: #78350f; } td.RETAKE { background: #713f12; } td.NORMAL { background: #14532d; } .status { background: var(--bar); color: #8fb3d1; display: flex; flex-wrap: wrap; gap: 6px 16px; padding: 6px 12px; font-size: 12px; } .status .right { margin-left: auto; } dialog { background: var(--panel); color: var(--text); border: 1px solid var(--btn-line); border-radius: 10px; max-width: 560px; } dialog::backdrop { background: rgba(0, 0, 0, .6); } @media (max-width: 1000px) { html, body { height: auto; } body { display: block; } .side { overflow: visible; } .view canvas { max-height: 60vh; } .layout { grid-template-columns: 1fr; grid-template-rows: auto; grid-template-areas: "list" "center" "side" "table"; } .list { max-height: 200px; } .view { min-height: 260px; } .status .right { margin-left: 0; } }