/* scan2cad — machinist's operation sheet. Dark graphite instrument panel; one signal-orange accent; condensed drafting capitals for structure, tabular numerals for measurements. */ :root { --bg: #0b0d10; --panel: #10131a; --card: #151a22; --line: #242b36; --line2: #303a48; --txt: #dde3ea; --muted: #828d9b; --faint: #5a6472; --accent: #ff8b3d; /* signal orange — the seat, the current action */ --accent-dim: #b35c22; --go: #43c06a; --cyan: #39c5cf; --pink: #ff2d9b; --bad: #f85149; --blue: #2f81f7; --display: "Avenir Next Condensed", "AvenirNextCondensed-DemiBold", "Arial Narrow", "Helvetica Neue", sans-serif; --body: "Avenir Next", "Avenir", "Helvetica Neue", sans-serif; --mono: "SF Mono", ui-monospace, "Menlo", monospace; --bar: #0e1117; --accent-wash: rgba(255,139,61,.08); --ink-on-accent: #150a02; } * { box-sizing: border-box; } html, body { margin: 0; height: 100%; background: var(--bg); color: var(--txt); font: 13px/1.5 var(--body); } #app { display: flex; height: calc(100vh - 32px); } /* ───────────────────────── panel chrome ───────────────────────── */ #panel { width: 360px; min-width: 360px; background: linear-gradient(180deg, #12161d 0%, var(--panel) 120px), var(--panel); border-right: 1px solid var(--line); padding: 18px 18px 12px; overflow-y: auto; display: flex; flex-direction: column; } #brand h1 { margin: 0; font-family: var(--display); font-weight: 600; font-size: 26px; letter-spacing: 0.06em; text-transform: uppercase; } #brand h1 span { color: var(--accent); } #brand .sub { margin: 2px 0 14px; color: var(--faint); font-size: 12px; letter-spacing: 0.02em; } /* ───────────────────────── stepper rail ───────────────────────── */ /* flex:none on panel chrome — #panel is a flex column, and when a step is taller than the viewport the default flex-shrink squeezes these below their content height, spilling text over the neighbours instead of scrolling. */ #stepper { list-style: none; display: flex; gap: 4px; padding: 0; margin: 0 0 14px; flex: none; } .stept { flex: 1; padding: 8px 6px 7px; text-align: center; cursor: pointer; user-select: none; border: 1px solid var(--line); border-radius: 4px; background: transparent; transition: border-color .18s, background .18s; position: relative; } .stept i { display: block; font-family: var(--mono); font-style: normal; font-size: 10px; color: var(--faint); letter-spacing: 0.1em; } .stept b { display: block; font-family: var(--display); font-weight: 600; font-size: 14px; letter-spacing: 0.09em; text-transform: uppercase; color: var(--muted); margin-top: 1px; } .stept.active { border-color: var(--accent); background: rgba(255, 139, 61, 0.07); } .stept.active i, .stept.active b { color: var(--accent); } .stept.done b { color: var(--txt); } .stept.done::after { content: "✓"; position: absolute; top: 3px; right: 5px; color: var(--go); font-size: 10px; } .stept.locked { opacity: 0.38; cursor: not-allowed; } /* ───────────────────────── directive banner ───────────────────── */ #directive { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; padding: 11px 12px; border: 1px solid var(--accent-dim); border-left: 3px solid var(--accent); border-radius: 4px; background: linear-gradient(90deg, rgba(255,139,61,.10), rgba(255,139,61,.02)); font-size: 13.5px; line-height: 1.45; min-height: 44px; flex: none; } #directive .reticle { flex: none; width: 14px; height: 14px; border: 1.5px solid var(--accent); border-radius: 50%; position: relative; animation: retpulse 1.6s ease-in-out infinite; } #directive .reticle::before, #directive .reticle::after { content: ""; position: absolute; background: var(--accent); } #directive .reticle::before { left: 50%; top: -4px; bottom: -4px; width: 1px; margin-left: -0.5px; } #directive .reticle::after { top: 50%; left: -4px; right: -4px; height: 1px; margin-top: -0.5px; } @keyframes retpulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.45; transform: scale(0.88); } } #directive.calm .reticle { animation: none; opacity: 0.5; } /* ───────────────────────── steps ──────────────────────────────── */ .step { display: none; flex-direction: column; gap: 10px; animation: stepin .22s ease-out; } .step.active { display: flex; } @keyframes stepin { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; } } .cardtitle { font-family: var(--display); font-weight: 600; font-size: 14px; letter-spacing: 0.09em; text-transform: uppercase; } .cardtitle.small { font-size: 12.5px; } .row { display: flex; align-items: center; gap: 8px; } .readout { background: var(--card); border: 1px solid var(--line); border-radius: 4px; padding: 9px 11px; font-size: 12.5px; } .readout b { font-family: var(--mono); font-weight: 600; } .muted { color: var(--muted); } .small { font-size: 12px; } .unit { color: var(--faint); font-size: 10px; letter-spacing: 0.06em; } .filebtn { display: block; } .filebtn span { display: block; text-align: center; padding: 13px 10px; border: 1px dashed var(--line2); border-radius: 4px; cursor: pointer; background: #0d1117; font-family: var(--display); font-size: 14.5px; letter-spacing: 0.06em; text-transform: uppercase; transition: border-color .15s, color .15s; } .filebtn span:hover { border-color: var(--accent); color: var(--accent); } .filebtn.secondary span { padding: 9px; font-size: 12.5px; color: var(--muted); } .filebtn.secondary span:hover { color: var(--cyan); border-color: var(--cyan); } label { display: block; font-size: 12px; color: var(--muted); } input[type=text], input[type=number], select { width: 100%; padding: 7px 8px; margin-top: 3px; background: #0d1117; color: var(--txt); border: 1px solid var(--line); border-radius: 4px; font-family: var(--mono); font-size: 12.5px; } input:focus, select:focus { outline: none; border-color: var(--accent-dim); } .grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; } .grid3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; } button { font-family: inherit; } .primary { width: 100%; margin-top: 4px; padding: 12px; border: 0; border-radius: 4px; background: var(--accent); color: #150a02; font-family: var(--display); font-weight: 600; font-size: 15.5px; letter-spacing: 0.08em; text-transform: uppercase; cursor: pointer; transition: filter .15s; } .primary:hover:not(:disabled) { filter: brightness(1.12); } .primary:disabled { background: #232a35; color: var(--faint); cursor: not-allowed; } .btnrow { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; } .ghost { background: transparent; color: var(--muted); border: 1px solid var(--line); border-radius: 4px; padding: 4px 9px; font-size: 11.5px; cursor: pointer; transition: color .15s, border-color .15s; margin-left: auto; } .ghost:hover:not(:disabled) { color: var(--txt); border-color: var(--accent-dim); } .ghost.wide { margin-left: 0; width: 100%; padding: 9px 4px; font-size: 12.5px; } .ghost.armed { color: var(--accent); border-color: var(--accent); box-shadow: 0 0 0 1px rgba(255,139,61,.25) inset; } .ghost:disabled { opacity: 0.4; cursor: not-allowed; } .pill { background: #0d1117; border: 1px solid var(--line); border-radius: 20px; padding: 2px 9px; font-size: 11px; font-family: var(--mono); } .pill.off { color: var(--faint); } .pill.on { color: var(--go); border-color: var(--go); } /* holes list */ .hole { border: 1px solid var(--line); border-radius: 4px; padding: 10px; background: var(--card); } .hole + .hole { margin-top: 8px; } .hole .hhead { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; } .hole .dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; margin-right: 6px; } .hole .x { cursor: pointer; color: var(--bad); border: 0; background: none; font-size: 14px; } .hole .fit { font-size: 11.5px; color: var(--muted); margin-bottom: 6px; font-family: var(--mono); } .hole .grid3 { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; } .hole.active { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; } .hole.locked { border-color: var(--go); } .hole.locked .fit::before { content: "🔒 "; } .hbtns { display: flex; gap: 6px; align-items: center; } .hole .lock { cursor: pointer; border: 1px solid var(--line); background: transparent; color: var(--muted); border-radius: 4px; padding: 2px 8px; font-size: 11px; } .hole .lock:hover { color: var(--go); border-color: var(--go); } .hole .lock.on { color: var(--go); border-color: var(--go); background: rgba(67,192,106,.08); } .holelabel.locked { border-color: var(--go); } .coord { font-size: 11px; color: var(--muted); font-family: var(--mono); margin-top: 2px; } .spacing { font-size: 11px; color: var(--accent); margin-top: 3px; font-family: var(--mono); } .hfly { cursor: pointer; } .hfly:hover b { text-decoration: underline; } .downloads { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; } .downloads .dlmore { flex-basis: 100%; } .downloads .dlmore summary { cursor: pointer; padding: 4px 0; } .downloads .dlmore a { display: block; margin-top: 6px; } .downloads a { flex: 1; text-align: center; padding: 9px 6px; border-radius: 4px; text-decoration: none; background: #0d1117; border: 1px solid var(--accent-dim); color: var(--accent); font-size: 12px; } .downloads a:hover { border-color: var(--accent); } details summary { cursor: pointer; } footer { margin-top: auto; padding-top: 14px; color: var(--faint); font-size: 11px; letter-spacing: 0.02em; } /* ───────────────────────── viewport ───────────────────────────── */ #viewport { flex: 1; position: relative; min-width: 0; overflow: hidden; } #viewport canvas { display: block; } #overlay { position: absolute; inset: 0; pointer-events: none; display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 15px; } #overlay.drag { background: rgba(255,139,61,.08); border: 2px dashed var(--accent); } #viewtools { position: absolute; right: 12px; top: 12px; z-index: 6; display: flex; gap: 6px; } #viewtools button { background: rgba(11,13,16,.85); color: var(--txt); border: 1px solid var(--line); border-radius: 4px; padding: 6px 10px; font-size: 13px; cursor: pointer; } #viewtools button:hover { border-color: var(--accent); } #viewtools button.armed { border-color: var(--accent); background: var(--accent); color: #150a02; } #hud { position: absolute; left: 12px; bottom: 12px; right: 12px; max-width: 720px; background: rgba(11,13,16,.85); padding: 7px 11px; border-radius: 4px; border: 1px solid var(--line); font-family: var(--mono); font-size: 12px; width: fit-content; } #hud:empty { display: none; } /* floating numbered hole markers over the viewport */ .holelabel { position: absolute; transform: translate(-50%, -50%); z-index: 4; cursor: pointer; min-width: 18px; height: 18px; line-height: 16px; padding: 0 4px; box-sizing: border-box; background: rgba(11,13,16,.85); border: 1.5px solid var(--accent); border-radius: 9px; color: #fff; font-size: 11px; font-weight: 700; text-align: center; pointer-events: auto; user-select: none; font-family: var(--mono); } .holelabel.sel { background: var(--accent); color: #150a02; transform: translate(-50%, -50%) scale(1.18); } /* 3-2-1 point rows (ZEISS-style) */ .a3sec { margin-top: 10px; border-bottom: 1px solid var(--line); padding-bottom: 2px; color: var(--txt); } .a3sec span { color: var(--faint); } .a3row { display: grid; grid-template-columns: 52px 1fr 104px; gap: 6px; align-items: center; margin-top: 4px; } .a3row .a3name { font-family: ui-monospace, monospace; font-size: 12px; font-weight: 700; } .a3row .a3pick { padding: 5px 6px; font-size: 12px; text-align: left; } .a3row.act .a3pick { border-color: var(--accent); color: var(--accent); } .a3row .a3val { display: flex; align-items: center; gap: 4px; margin: 0; } .a3row .a3val input { width: 100%; } .a3chk { display: flex; gap: 6px; align-items: center; margin: 4px 0 0; } .a3chk span { color: var(--faint); } /* point tags on the mesh: leader line + "✕ X1:" */ .ptag { position: absolute; width: 0; height: 0; z-index: 5; pointer-events: none; } .ptag .lead { position: absolute; left: 0; top: 0; width: 30px; height: 1.5px; background: var(--c); transform-origin: 0 50%; transform: rotate(-38deg); } .ptag .tagbody { position: absolute; left: 22px; top: -30px; display: flex; align-items: center; gap: 4px; font: 600 12px ui-monospace, monospace; color: var(--c); white-space: nowrap; pointer-events: auto; text-shadow: 0 0 3px #000, 0 0 3px #000; } .ptag .xbtn { width: 17px; height: 17px; border-radius: 50%; background: #b62324; color: #fff; border: 1.5px solid #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 9px; cursor: pointer; text-shadow: none; } /* ───────────────────────── menu bar + undo/redo ───────────────── */ /* CAD-style text menus across the top; undo/redo sit right after them as the quick-access pair, with the history list hanging off the ▾. */ #menubar { display: flex; align-items: stretch; height: 32px; background: var(--bar); border-bottom: 1px solid var(--line); padding: 0 8px 0 14px; position: relative; z-index: 30; } .wordmark { font-family: var(--display); font-weight: 600; font-size: 15px; letter-spacing: .06em; text-transform: uppercase; display: flex; align-items: center; padding-right: 14px; user-select: none; } .wordmark span { color: var(--accent); } .menu { position: relative; display: flex; } .mtop { background: none; border: 0; padding: 0 10px; font-size: 13px; color: var(--muted); cursor: default; } .mtop:hover, .menu.open .mtop { color: var(--txt); background: var(--card); } .menu.open .mtop { box-shadow: inset 0 -2px 0 var(--accent); } .dropdown { position: absolute; top: 100%; left: 0; min-width: 280px; background: var(--card); border: 1px solid var(--line2); border-radius: 0 0 4px 4px; padding: 4px 0; box-shadow: 0 10px 28px rgba(0,0,0,.55); display: none; } .menu.open .dropdown { display: block; } .mi { display: grid; grid-template-columns: 1fr auto; gap: 24px; width: 100%; text-align: left; background: none; border: 0; padding: 5px 14px; font-size: 13px; color: var(--txt); cursor: default; } .mi:hover:not(:disabled), .mi:focus-visible { background: var(--accent); color: var(--ink-on-accent); outline: none; } .mi:hover:not(:disabled) kbd, .mi:focus-visible kbd, .mi:hover:not(:disabled) .what, .mi:focus-visible .what { color: var(--ink-on-accent); } .mi:disabled { color: var(--faint); } .mi .what { color: var(--muted); } .mi.on span:first-child::after { content: " ✓"; } .sep { height: 1px; background: var(--line); margin: 4px 0; } kbd { font-family: var(--mono); font-size: 11.5px; color: var(--faint); letter-spacing: .04em; } #qa { display: flex; align-items: center; gap: 2px; margin-left: 10px; padding-left: 10px; border-left: 1px solid var(--line); min-width: 0; } .qbtn { height: 24px; min-width: 28px; display: inline-flex; align-items: center; justify-content: center; background: none; border: 1px solid transparent; border-radius: 3px; color: var(--txt); cursor: pointer; padding: 0 5px; } .qbtn svg { width: 16px; height: 16px; } .qbtn:hover:not(:disabled) { border-color: var(--line2); background: var(--card); } .qbtn:disabled { color: var(--faint); cursor: default; } .qbtn.caret { min-width: 16px; padding: 0 2px; margin-left: -2px; } .qbtn.caret svg { width: 9px; height: 9px; } .qbtn.flash { animation: qflash .45s ease-out; } @keyframes qflash { from { background: var(--accent); color: var(--ink-on-accent); } } #lastact { font-size: 12px; color: var(--faint); margin-left: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 280px; } #lastact b { color: var(--muted); font-weight: 500; } .docname { margin-left: auto; display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); white-space: nowrap; min-width: 0; padding-left: 12px; } .docname .file { overflow: hidden; text-overflow: ellipsis; } #tape { position: absolute; top: 100%; width: 380px; max-width: calc(100vw - 16px); background: var(--card); border: 1px solid var(--line2); border-radius: 0 0 4px 4px; box-shadow: 0 12px 30px rgba(0,0,0,.6); padding-top: 6px; display: none; } #tape.open { display: block; } #tape header { display: flex; justify-content: space-between; align-items: baseline; padding: 2px 12px 6px; font-size: 12px; color: var(--muted); } #tape header b { font-family: var(--display); font-weight: 600; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--txt); } #tapelist { list-style: none; margin: 0; padding: 0; max-height: 60vh; overflow-y: auto; } .ent { display: grid; grid-template-columns: 58px 1fr auto; gap: 8px; align-items: baseline; padding: 5px 12px; cursor: pointer; border-left: 2px solid transparent; } .ent:hover, .ent:focus-visible { background: var(--accent-wash); outline: none; } .ent .stp { font-family: var(--display); font-weight: 600; font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); } .ent .act { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .ent .det { font-family: var(--mono); font-size: 11.5px; color: var(--muted); white-space: nowrap; } .ent.now { border-left-color: var(--accent); background: var(--accent-wash); } .ent.now .stp { color: var(--accent); } .ent.future .act, .ent.future .det, .ent.future .stp { color: var(--faint); } .ent.future .act { text-decoration: line-through; text-decoration-color: var(--line2); } .ent.dropped { cursor: default; color: var(--faint); font-size: 11.5px; grid-template-columns: 1fr; } .ent.dropped:hover { background: none; } .cursorline { height: 0; border-top: 1px dashed var(--accent-dim); margin: 2px 12px; } #tape footer { border-top: 1px solid var(--line); padding: 7px 12px; font-size: 11.5px; color: var(--faint); } /* undo/redo confirmation: top-left of the viewport (the HUD owns bottom-left) */ #toast { position: absolute; left: 12px; top: 12px; z-index: 7; max-width: calc(100% - 24px); background: rgba(11,13,16,.94); border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: 4px; padding: 6px 8px 6px 12px; font-size: 12.5px; display: flex; gap: 12px; align-items: center; opacity: 0; transform: translateY(-4px); transition: opacity .18s, transform .18s; pointer-events: none; } #toast.show { opacity: 1; transform: none; pointer-events: auto; } #toast button { background: none; border: 1px solid var(--line2); border-radius: 3px; padding: 1px 8px; color: var(--accent); cursor: pointer; font-size: 12px; display: inline-flex; gap: 6px; align-items: center; } #toast button:hover { border-color: var(--accent); } #keyhelp { position: fixed; inset: 0; z-index: 40; background: rgba(0,0,0,.45); display: flex; align-items: flex-start; justify-content: center; padding-top: 12vh; } #keyhelp[hidden] { display: none; } .khcard { background: var(--card); border: 1px solid var(--line2); border-radius: 4px; padding: 14px 16px; width: 400px; max-width: calc(100vw - 32px); box-shadow: 0 16px 40px rgba(0,0,0,.6); } .khcard header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; } .khcard header b { font-family: var(--display); font-weight: 600; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; } .khcard dl { display: grid; grid-template-columns: 110px 1fr; gap: 6px 12px; margin: 0; } .khcard dt { font-family: var(--mono); font-size: 12px; color: var(--accent); } .khcard dd { margin: 0; color: var(--muted); } #menubar :focus-visible, #toast :focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; } @media (prefers-reduced-motion: reduce) { .qbtn.flash { animation: none; } #toast { transition: none; } } /* alignment: third axis overruled by the right-hand rule */ .handnote { margin-top: 8px; padding: 8px 10px; border: 1px solid var(--accent-dim); border-radius: 4px; background: var(--accent-wash); color: var(--txt); } .handnote button { display: block; margin: 8px 0 0; padding: 5px 10px; color: var(--accent); border-color: var(--accent-dim); } /* Faces alignment rows reuse the 3-2-1 row grid */ .facerow .faceopts { display: flex; align-items: center; justify-content: flex-end; gap: 8px; } .facerow .faceopts label { display: flex; align-items: center; gap: 4px; margin: 0; } .facerow .faceopts .x { border: 0; background: none; color: var(--bad); cursor: pointer; font-size: 14px; padding: 0 2px; } .facerow.act .a3pick { border-color: var(--accent); color: var(--accent); } .facerow .a3pick { margin-left: 0; width: 100%; }