Document local setup and OCR workflow
This commit is contained in:
+754
@@ -0,0 +1,754 @@
|
||||
:root {
|
||||
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
|
||||
color: oklch(0.24 0.012 255);
|
||||
background: oklch(0.965 0.006 250);
|
||||
font-synthesis: none;
|
||||
--background: oklch(0.965 0.006 250);
|
||||
--surface: oklch(0.99 0.004 250);
|
||||
--surface-raised: oklch(1 0.003 250);
|
||||
--surface-muted: oklch(0.935 0.008 250);
|
||||
--text: oklch(0.24 0.012 255);
|
||||
--text-muted: oklch(0.52 0.018 255);
|
||||
--border: oklch(0.86 0.012 250);
|
||||
--border-strong: oklch(0.74 0.02 250);
|
||||
--accent: oklch(0.58 0.16 250);
|
||||
--accent-hover: oklch(0.52 0.17 250);
|
||||
--accent-soft: oklch(0.93 0.035 250);
|
||||
--success: oklch(0.54 0.13 155);
|
||||
--success-soft: oklch(0.93 0.04 155);
|
||||
--error: oklch(0.56 0.18 25);
|
||||
--error-soft: oklch(0.94 0.04 25);
|
||||
--warning: oklch(0.68 0.15 75);
|
||||
--focus: oklch(0.66 0.18 250);
|
||||
--shadow: 0 14px 40px oklch(0.32 0.025 250 / 0.08);
|
||||
}
|
||||
|
||||
* {
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
body {
|
||||
margin: 0;
|
||||
min-width: 320px;
|
||||
min-height: 100vh;
|
||||
background: var(--background);
|
||||
color: var(--text);
|
||||
}
|
||||
|
||||
button,
|
||||
input,
|
||||
select {
|
||||
font: inherit;
|
||||
}
|
||||
|
||||
button,
|
||||
select,
|
||||
input[type="range"],
|
||||
.file-button {
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
button:focus-visible,
|
||||
input:focus-visible,
|
||||
select:focus-visible,
|
||||
.file-button:has(input:focus-visible) {
|
||||
outline: 3px solid color-mix(in oklch, var(--focus), transparent 50%);
|
||||
outline-offset: 2px;
|
||||
}
|
||||
|
||||
button:disabled {
|
||||
cursor: not-allowed;
|
||||
opacity: 0.52;
|
||||
}
|
||||
|
||||
h1,
|
||||
h2,
|
||||
h3,
|
||||
p {
|
||||
margin-block-start: 0;
|
||||
}
|
||||
|
||||
h1 {
|
||||
margin-block-end: 0;
|
||||
font-size: 1.45rem;
|
||||
line-height: 1.15;
|
||||
letter-spacing: -0.025em;
|
||||
}
|
||||
|
||||
h2 {
|
||||
margin-block-end: 0.45rem;
|
||||
font-size: 1.75rem;
|
||||
line-height: 1.15;
|
||||
letter-spacing: -0.035em;
|
||||
}
|
||||
|
||||
h3 {
|
||||
margin-block-end: 0.25rem;
|
||||
font-size: 1rem;
|
||||
}
|
||||
|
||||
.app-shell {
|
||||
width: min(1480px, 100%);
|
||||
min-height: 100vh;
|
||||
margin-inline: auto;
|
||||
padding: 28px clamp(18px, 3vw, 48px) 56px;
|
||||
}
|
||||
|
||||
.app-header {
|
||||
display: flex;
|
||||
min-height: 62px;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 24px;
|
||||
}
|
||||
|
||||
.eyebrow {
|
||||
margin-block-end: 5px;
|
||||
color: var(--text-muted);
|
||||
font-size: 0.72rem;
|
||||
font-weight: 700;
|
||||
letter-spacing: 0.1em;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
.status {
|
||||
display: grid;
|
||||
width: 270px;
|
||||
min-height: 38px;
|
||||
place-items: center;
|
||||
padding: 8px 14px;
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 999px;
|
||||
background: var(--surface);
|
||||
color: var(--text-muted);
|
||||
font-size: 0.84rem;
|
||||
text-align: center;
|
||||
transition: background-color 180ms cubic-bezier(0.22, 1, 0.36, 1),
|
||||
border-color 180ms cubic-bezier(0.22, 1, 0.36, 1);
|
||||
}
|
||||
|
||||
.status[data-tone="working"] {
|
||||
border-color: color-mix(in oklch, var(--accent), transparent 55%);
|
||||
background: var(--accent-soft);
|
||||
color: var(--accent-hover);
|
||||
}
|
||||
|
||||
.status[data-tone="success"] {
|
||||
border-color: color-mix(in oklch, var(--success), transparent 55%);
|
||||
background: var(--success-soft);
|
||||
color: var(--success);
|
||||
}
|
||||
|
||||
.status[data-tone="error"] {
|
||||
border-color: color-mix(in oklch, var(--error), transparent 55%);
|
||||
background: var(--error-soft);
|
||||
color: var(--error);
|
||||
}
|
||||
|
||||
.step-nav {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(3, minmax(0, 1fr));
|
||||
margin-block: 30px 42px;
|
||||
border-block-end: 1px solid var(--border);
|
||||
}
|
||||
|
||||
.step-nav__item {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
gap: 10px;
|
||||
min-height: 54px;
|
||||
border: 0;
|
||||
border-block-end: 2px solid transparent;
|
||||
background: transparent;
|
||||
color: var(--text-muted);
|
||||
font-weight: 650;
|
||||
}
|
||||
|
||||
.step-nav__item span {
|
||||
display: grid;
|
||||
width: 24px;
|
||||
height: 24px;
|
||||
place-items: center;
|
||||
border: 1px solid var(--border-strong);
|
||||
border-radius: 50%;
|
||||
font-size: 0.75rem;
|
||||
}
|
||||
|
||||
.step-nav__item:hover {
|
||||
color: var(--text);
|
||||
}
|
||||
|
||||
.step-nav__item.is-active {
|
||||
border-block-end-color: var(--accent);
|
||||
color: var(--accent);
|
||||
}
|
||||
|
||||
.step-nav__item.is-active span {
|
||||
border-color: var(--accent);
|
||||
background: var(--accent);
|
||||
color: oklch(0.98 0.004 250);
|
||||
}
|
||||
|
||||
.view[hidden] {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.section-heading {
|
||||
display: flex;
|
||||
align-items: end;
|
||||
justify-content: space-between;
|
||||
gap: 32px;
|
||||
margin-block-end: 28px;
|
||||
}
|
||||
|
||||
.section-heading > div:first-child {
|
||||
max-width: 70ch;
|
||||
}
|
||||
|
||||
.section-heading p:last-child {
|
||||
margin-block-end: 0;
|
||||
color: var(--text-muted);
|
||||
line-height: 1.55;
|
||||
}
|
||||
|
||||
.section-heading--compact {
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.button-row {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
align-items: center;
|
||||
justify-content: flex-end;
|
||||
gap: 9px;
|
||||
}
|
||||
|
||||
.button,
|
||||
select,
|
||||
input[type="text"] {
|
||||
min-height: 40px;
|
||||
border: 1px solid var(--border-strong);
|
||||
border-radius: 9px;
|
||||
background: var(--surface-raised);
|
||||
color: var(--text);
|
||||
}
|
||||
|
||||
.button {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
padding: 8px 14px;
|
||||
font-weight: 650;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.button:hover:not(:disabled) {
|
||||
border-color: var(--accent);
|
||||
}
|
||||
|
||||
.button--primary {
|
||||
border-color: var(--accent);
|
||||
background: var(--accent);
|
||||
color: oklch(0.98 0.004 250);
|
||||
}
|
||||
|
||||
.button--primary:hover:not(:disabled) {
|
||||
border-color: var(--accent-hover);
|
||||
background: var(--accent-hover);
|
||||
}
|
||||
|
||||
.button--quiet {
|
||||
border-color: transparent;
|
||||
background: transparent;
|
||||
color: var(--text-muted);
|
||||
}
|
||||
|
||||
.button--quiet:hover:not(:disabled) {
|
||||
border-color: var(--border);
|
||||
background: var(--surface-muted);
|
||||
color: var(--text);
|
||||
}
|
||||
|
||||
select,
|
||||
input[type="text"] {
|
||||
padding-inline: 11px;
|
||||
}
|
||||
|
||||
.file-button input {
|
||||
position: absolute;
|
||||
width: 1px;
|
||||
height: 1px;
|
||||
overflow: hidden;
|
||||
clip-path: inset(50%);
|
||||
}
|
||||
|
||||
.source-list {
|
||||
display: grid;
|
||||
gap: 12px;
|
||||
}
|
||||
|
||||
.source-row {
|
||||
display: grid;
|
||||
grid-template-columns: 220px minmax(220px, 1fr) auto;
|
||||
align-items: center;
|
||||
gap: 22px;
|
||||
padding: 14px;
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 14px;
|
||||
background: var(--surface);
|
||||
transition: border-color 180ms cubic-bezier(0.22, 1, 0.36, 1),
|
||||
box-shadow 180ms cubic-bezier(0.22, 1, 0.36, 1);
|
||||
}
|
||||
|
||||
.source-row.is-selected {
|
||||
border-color: color-mix(in oklch, var(--accent), transparent 35%);
|
||||
box-shadow: 0 0 0 3px color-mix(in oklch, var(--accent), transparent 88%);
|
||||
}
|
||||
|
||||
.source-row__preview {
|
||||
aspect-ratio: 16 / 9;
|
||||
overflow: hidden;
|
||||
border-radius: 8px;
|
||||
background: oklch(0.18 0.01 255);
|
||||
}
|
||||
|
||||
.source-row__preview video {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
object-fit: contain;
|
||||
}
|
||||
|
||||
.source-row__info span {
|
||||
color: var(--text-muted);
|
||||
font-size: 0.72rem;
|
||||
font-weight: 700;
|
||||
letter-spacing: 0.08em;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
.source-row__info h3 {
|
||||
margin-block: 5px;
|
||||
}
|
||||
|
||||
.source-row__info p {
|
||||
margin: 0;
|
||||
color: var(--text-muted);
|
||||
font-size: 0.85rem;
|
||||
}
|
||||
|
||||
.source-row__actions {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 5px;
|
||||
}
|
||||
|
||||
.empty-state {
|
||||
display: grid;
|
||||
place-items: center;
|
||||
gap: 8px;
|
||||
min-height: 260px;
|
||||
padding: 32px;
|
||||
color: var(--text-muted);
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.empty-state strong {
|
||||
color: var(--text);
|
||||
font-size: 1rem;
|
||||
}
|
||||
|
||||
.empty-state--wide {
|
||||
min-height: 300px;
|
||||
border: 1px dashed var(--border-strong);
|
||||
border-radius: 14px;
|
||||
background: color-mix(in oklch, var(--surface), transparent 30%);
|
||||
}
|
||||
|
||||
.calibration-layout {
|
||||
display: grid;
|
||||
grid-template-columns: minmax(0, 1fr) 310px;
|
||||
min-height: 620px;
|
||||
overflow: hidden;
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 16px;
|
||||
background: var(--surface);
|
||||
box-shadow: var(--shadow);
|
||||
}
|
||||
|
||||
.canvas-stage {
|
||||
display: grid;
|
||||
min-width: 0;
|
||||
min-height: 620px;
|
||||
max-height: calc(100vh - 260px);
|
||||
place-items: center;
|
||||
overflow: auto;
|
||||
padding: 24px;
|
||||
background-color: oklch(0.91 0.008 250);
|
||||
background-image: linear-gradient(45deg, oklch(0.88 0.008 250) 25%, transparent 25%),
|
||||
linear-gradient(-45deg, oklch(0.88 0.008 250) 25%, transparent 25%),
|
||||
linear-gradient(45deg, transparent 75%, oklch(0.88 0.008 250) 75%),
|
||||
linear-gradient(-45deg, transparent 75%, oklch(0.88 0.008 250) 75%);
|
||||
background-position: 0 0, 0 8px, 8px -8px, -8px 0;
|
||||
background-size: 16px 16px;
|
||||
}
|
||||
|
||||
#calibration-canvas {
|
||||
display: block;
|
||||
max-width: 100%;
|
||||
max-height: 100%;
|
||||
border-radius: 4px;
|
||||
box-shadow: 0 8px 30px oklch(0.2 0.02 255 / 0.2);
|
||||
cursor: crosshair;
|
||||
touch-action: none;
|
||||
}
|
||||
|
||||
.inspector {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 20px;
|
||||
padding: 24px;
|
||||
border-inline-start: 1px solid var(--border);
|
||||
background: var(--surface);
|
||||
}
|
||||
|
||||
.field-stack {
|
||||
display: grid;
|
||||
gap: 7px;
|
||||
}
|
||||
|
||||
.field-stack label,
|
||||
.range-label label {
|
||||
color: var(--text-muted);
|
||||
font-size: 0.78rem;
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
.hint {
|
||||
min-height: 58px;
|
||||
margin: 0;
|
||||
padding: 11px 12px;
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 9px;
|
||||
background: var(--surface-muted);
|
||||
color: var(--text-muted);
|
||||
font-size: 0.82rem;
|
||||
line-height: 1.45;
|
||||
}
|
||||
|
||||
.range-label {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
gap: 12px;
|
||||
}
|
||||
|
||||
.range-label output {
|
||||
color: var(--text);
|
||||
font-variant-numeric: tabular-nums;
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
input[type="range"] {
|
||||
width: 100%;
|
||||
accent-color: var(--accent);
|
||||
}
|
||||
|
||||
.inspector__section {
|
||||
min-height: 0;
|
||||
flex: 1;
|
||||
overflow: auto;
|
||||
border-block-start: 1px solid var(--border);
|
||||
padding-block-start: 18px;
|
||||
}
|
||||
|
||||
.inspector__title {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
margin-block-end: 10px;
|
||||
}
|
||||
|
||||
.inspector__title h3 {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.inspector__title span {
|
||||
display: grid;
|
||||
min-width: 24px;
|
||||
height: 24px;
|
||||
place-items: center;
|
||||
border-radius: 999px;
|
||||
background: var(--surface-muted);
|
||||
color: var(--text-muted);
|
||||
font-size: 0.75rem;
|
||||
}
|
||||
|
||||
.region-list {
|
||||
display: grid;
|
||||
gap: 6px;
|
||||
}
|
||||
|
||||
.region-row {
|
||||
display: flex;
|
||||
min-height: 48px;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 10px;
|
||||
padding: 8px 9px;
|
||||
border-radius: 8px;
|
||||
}
|
||||
|
||||
.region-row:hover {
|
||||
background: var(--surface-muted);
|
||||
}
|
||||
|
||||
.region-row span {
|
||||
display: grid;
|
||||
gap: 2px;
|
||||
}
|
||||
|
||||
.region-row strong {
|
||||
font-size: 0.84rem;
|
||||
}
|
||||
|
||||
.region-row small {
|
||||
color: var(--text-muted);
|
||||
font-size: 0.72rem;
|
||||
}
|
||||
|
||||
.icon-button {
|
||||
display: grid;
|
||||
width: 30px;
|
||||
height: 30px;
|
||||
place-items: center;
|
||||
border: 0;
|
||||
border-radius: 7px;
|
||||
background: transparent;
|
||||
color: var(--text-muted);
|
||||
font-size: 1.2rem;
|
||||
}
|
||||
|
||||
.icon-button:hover {
|
||||
background: var(--error-soft);
|
||||
color: var(--error);
|
||||
}
|
||||
|
||||
.muted-copy {
|
||||
color: var(--text-muted);
|
||||
font-size: 0.82rem;
|
||||
}
|
||||
|
||||
.inspector__actions {
|
||||
display: grid;
|
||||
grid-template-columns: 1fr auto;
|
||||
gap: 8px;
|
||||
padding-block-start: 2px;
|
||||
}
|
||||
|
||||
.results-list {
|
||||
display: grid;
|
||||
gap: 18px;
|
||||
}
|
||||
|
||||
.result-group {
|
||||
overflow: hidden;
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 14px;
|
||||
background: var(--surface);
|
||||
}
|
||||
|
||||
.result-group > header {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 20px;
|
||||
padding: 18px 20px;
|
||||
border-block-end: 1px solid var(--border);
|
||||
}
|
||||
|
||||
.result-group header h3 {
|
||||
margin-block-end: 3px;
|
||||
}
|
||||
|
||||
.result-group header p {
|
||||
margin: 0;
|
||||
color: var(--text-muted);
|
||||
font-size: 0.82rem;
|
||||
}
|
||||
|
||||
.result-badge {
|
||||
padding: 6px 9px;
|
||||
border-radius: 999px;
|
||||
font-size: 0.75rem;
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
.result-badge[data-tone="success"] {
|
||||
background: var(--success-soft);
|
||||
color: var(--success);
|
||||
}
|
||||
|
||||
.result-badge[data-tone="error"] {
|
||||
background: var(--error-soft);
|
||||
color: var(--error);
|
||||
}
|
||||
|
||||
.result-error {
|
||||
margin: 0;
|
||||
padding: 22px 20px;
|
||||
color: var(--error);
|
||||
}
|
||||
|
||||
table {
|
||||
width: 100%;
|
||||
border-collapse: collapse;
|
||||
font-size: 0.86rem;
|
||||
}
|
||||
|
||||
th,
|
||||
td {
|
||||
padding: 12px 20px;
|
||||
border-block-end: 1px solid var(--border);
|
||||
text-align: start;
|
||||
}
|
||||
|
||||
th {
|
||||
background: var(--surface-muted);
|
||||
color: var(--text-muted);
|
||||
font-size: 0.72rem;
|
||||
letter-spacing: 0.05em;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
tbody tr:last-child td {
|
||||
border-block-end: 0;
|
||||
}
|
||||
|
||||
td:nth-child(2),
|
||||
td:nth-child(4) {
|
||||
font-variant-numeric: tabular-nums;
|
||||
font-weight: 650;
|
||||
}
|
||||
|
||||
@media (max-width: 960px) {
|
||||
.section-heading {
|
||||
align-items: start;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
.button-row {
|
||||
justify-content: flex-start;
|
||||
}
|
||||
|
||||
.source-row {
|
||||
grid-template-columns: 180px 1fr;
|
||||
}
|
||||
|
||||
.source-row__actions {
|
||||
grid-column: 1 / -1;
|
||||
justify-content: flex-end;
|
||||
}
|
||||
|
||||
.calibration-layout {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
|
||||
.inspector {
|
||||
border-block-start: 1px solid var(--border);
|
||||
border-inline-start: 0;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 640px) {
|
||||
.app-shell {
|
||||
padding-inline: 14px;
|
||||
}
|
||||
|
||||
.app-header {
|
||||
align-items: start;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
.status {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.step-nav {
|
||||
margin-block: 22px 30px;
|
||||
}
|
||||
|
||||
.step-nav__item {
|
||||
flex-direction: column;
|
||||
gap: 5px;
|
||||
font-size: 0.76rem;
|
||||
}
|
||||
|
||||
.source-row {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
|
||||
.source-row__actions {
|
||||
grid-column: auto;
|
||||
flex-wrap: wrap;
|
||||
justify-content: flex-start;
|
||||
}
|
||||
|
||||
.button-row,
|
||||
.button-row > * {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.canvas-stage {
|
||||
min-height: 360px;
|
||||
padding: 12px;
|
||||
}
|
||||
|
||||
.result-group {
|
||||
overflow-x: auto;
|
||||
}
|
||||
|
||||
table {
|
||||
min-width: 680px;
|
||||
}
|
||||
}
|
||||
|
||||
@media (prefers-color-scheme: dark) {
|
||||
:root {
|
||||
color: oklch(0.9 0.009 250);
|
||||
background: oklch(0.18 0.012 255);
|
||||
--background: oklch(0.18 0.012 255);
|
||||
--surface: oklch(0.225 0.014 255);
|
||||
--surface-raised: oklch(0.255 0.015 255);
|
||||
--surface-muted: oklch(0.28 0.016 255);
|
||||
--text: oklch(0.9 0.009 250);
|
||||
--text-muted: oklch(0.68 0.018 250);
|
||||
--border: oklch(0.34 0.018 255);
|
||||
--border-strong: oklch(0.43 0.022 255);
|
||||
--accent: oklch(0.7 0.15 250);
|
||||
--accent-hover: oklch(0.75 0.13 250);
|
||||
--accent-soft: oklch(0.3 0.05 250);
|
||||
--success: oklch(0.72 0.12 155);
|
||||
--success-soft: oklch(0.29 0.045 155);
|
||||
--error: oklch(0.72 0.15 25);
|
||||
--error-soft: oklch(0.3 0.05 25);
|
||||
--warning: oklch(0.78 0.13 75);
|
||||
--shadow: 0 18px 48px oklch(0.08 0.015 255 / 0.28);
|
||||
}
|
||||
|
||||
.canvas-stage {
|
||||
background-color: oklch(0.16 0.01 255);
|
||||
background-image: linear-gradient(45deg, oklch(0.2 0.012 255) 25%, transparent 25%),
|
||||
linear-gradient(-45deg, oklch(0.2 0.012 255) 25%, transparent 25%),
|
||||
linear-gradient(45deg, transparent 75%, oklch(0.2 0.012 255) 75%),
|
||||
linear-gradient(-45deg, transparent 75%, oklch(0.2 0.012 255) 75%);
|
||||
}
|
||||
}
|
||||
|
||||
@media (prefers-reduced-motion: reduce) {
|
||||
*,
|
||||
*::before,
|
||||
*::after {
|
||||
scroll-behavior: auto !important;
|
||||
transition-duration: 0.01ms !important;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user