Something went wrong. Try again.
Something went wrong. Try again.
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624:root { color-scheme: dark; --ink: #07080c; --glass: rgba(15, 17, 26, 0.52); --glass-2: rgba(15, 17, 26, 0.68); --glass-3: rgba(22, 25, 38, 0.78); --hair: rgba(255, 255, 255, 0.1); --edge: rgba(255, 255, 255, 0.85); --edge-soft: rgba(255, 255, 255, 0.22); --text: #eef0f6; --text-strong: #ffffff; --muted: #aeb4c6; --faint: #767d92;
--indigo: #6d5efc; --lime: #c4f000; --magenta: #ff2e97; --cyan: #19e3ff; --danger: #ff3b3b;
--hard: 5px 5px 0 rgba(0, 0, 0, 0.7); --hard-sm: 3px 3px 0 rgba(0, 0, 0, 0.7); --hard-lg: 9px 9px 0 rgba(0, 0, 0, 0.6);
font-family: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; --mono: "Space Mono", "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace; -webkit-font-smoothing: antialiased;}
* { box-sizing: border-box;}
body { margin: 0; min-width: 1080px; min-height: 720px; color: var(--text); background: radial-gradient(900px 700px at 8% -8%, rgba(109, 94, 252, 0.55), transparent 55%), radial-gradient(1000px 800px at 105% 0%, rgba(255, 46, 151, 0.42), transparent 52%), radial-gradient(1100px 900px at 60% 115%, rgba(25, 227, 255, 0.38), transparent 55%), radial-gradient(700px 600px at 100% 100%, rgba(196, 240, 0, 0.22), transparent 60%), var(--ink); background-attachment: fixed;}
button,input,select { font: inherit; color: var(--text);}
/* ---------- Buttons (brutalist) ---------- */button { height: 36px; border: 2px solid var(--edge); border-radius: 3px; padding: 0 14px; color: var(--text-strong); background: var(--glass-2); backdrop-filter: blur(6px); font-family: var(--mono); font-size: 12px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; cursor: pointer; box-shadow: var(--hard-sm); transition: transform 0.08s ease, box-shadow 0.08s ease, background 0.12s ease, color 0.12s ease;}
button:hover { transform: translate(-1px, -1px); box-shadow: var(--hard); background: rgba(30, 34, 50, 0.8);}
button:active { transform: translate(3px, 3px); box-shadow: 0 0 0 rgba(0, 0, 0, 0);}
button.active,button.primary { color: #08090d; border-color: #000; background: var(--lime); text-shadow: none;}
button.primary:hover,button.active:hover { background: #d4ff1a;}
button.danger { color: #fff; border-color: #000; background: var(--magenta);}
button.danger:hover { background: #ff4da7;}
/* ---------- Inputs ---------- */input,select { width: 100%; height: 36px; border: 2px solid var(--edge-soft); border-radius: 3px; padding: 0 11px; color: var(--text-strong); background: rgba(7, 8, 12, 0.6); transition: border-color 0.12s ease, box-shadow 0.12s ease;}
input::placeholder { color: var(--faint);}
input:hover,select:hover { border-color: var(--edge);}
input:focus,select:focus,button:focus-visible { outline: none; border-color: var(--lime); box-shadow: var(--hard-sm), 0 0 0 1px var(--lime);}
select { appearance: none; font-family: var(--mono); font-size: 12px; background-image: linear-gradient(45deg, transparent 50%, var(--lime) 50%), linear-gradient(135deg, var(--lime) 50%, transparent 50%); background-position: calc(100% - 16px) 15px, calc(100% - 11px) 15px; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; padding-right: 28px;}
input[type="range"] { height: 6px; padding: 0; border: 2px solid var(--edge-soft); border-radius: 0; background: rgba(7, 8, 12, 0.6); box-shadow: none; cursor: pointer; -webkit-appearance: none; appearance: none;}
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 16px; height: 16px; border-radius: 0; background: var(--lime); border: 2px solid #000; box-shadow: var(--hard-sm);}
input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--lime);}
/* ---------- Shell ---------- */.app-shell { display: grid; grid-template-rows: 62px minmax(0, 1fr); height: 100vh;}
.topbar { display: grid; grid-template-columns: 260px minmax(0, 1fr) auto; align-items: center; gap: 18px; padding: 0 18px; border-bottom: 2px solid var(--edge); background: var(--glass-2); backdrop-filter: blur(16px) saturate(140%);}
.brand { display: flex; align-items: center; gap: 12px; min-width: 0;}
.brand-mark { display: inline-grid; place-items: center; width: 44px; height: 34px; border: 2px solid #000; border-radius: 3px; color: #08090d; background: var(--lime); box-shadow: var(--hard-sm); font-family: var(--mono); font-size: 13px; font-weight: 700; letter-spacing: 0.02em;}
.brand-name { overflow: hidden; font-family: var(--mono); font-size: 16px; font-weight: 700; letter-spacing: -0.01em; text-transform: uppercase; color: var(--text-strong); white-space: nowrap; text-overflow: ellipsis;}
.tool-row,.export-row,.canvas-toolbar,.view-tabs,.view-options { display: flex; align-items: center; gap: 8px;}
.tool-row { min-width: 0;}
.export-row { justify-content: end;}
.status { max-width: 320px; overflow: hidden; padding: 6px 13px; border: 2px solid var(--edge-soft); border-radius: 3px; background: rgba(7, 8, 12, 0.5); color: var(--cyan); font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: 0.03em; text-transform: uppercase; white-space: nowrap; text-overflow: ellipsis;}
/* ---------- Workspace ---------- */.workspace { display: grid; grid-template-columns: 290px minmax(560px, 1fr) 262px; gap: 16px; min-height: 0; padding: 16px;}
.side-panel,.parts-panel,.canvas-stack { min-height: 0; border: 2px solid var(--edge); border-radius: 4px; background: var(--glass); backdrop-filter: blur(18px) saturate(130%); box-shadow: var(--hard-lg);}
.side-panel,.parts-panel { display: flex; flex-direction: column; overflow: auto;}
.canvas-stack { display: grid; grid-template-rows: 52px minmax(0, 1fr); overflow: hidden;}
.canvas-toolbar { justify-content: space-between; min-width: 0; padding: 9px 12px; border-bottom: 2px solid var(--edge); background: var(--glass-3);}
.view-tabs { gap: 0; border: 2px solid var(--edge); border-radius: 3px; background: rgba(7, 8, 12, 0.5); box-shadow: var(--hard-sm); overflow: hidden;}
.view-tabs button { height: 30px; border: 0; border-radius: 0; background: transparent; box-shadow: none; color: var(--muted);}
.view-tabs button + button { border-left: 2px solid var(--edge);}
.view-tabs button:hover { transform: none; box-shadow: none; background: rgba(255, 255, 255, 0.08); color: var(--text-strong);}
.view-tabs button.active { background: var(--indigo); color: #fff;}
.view-tabs button.active:hover { background: #7d6fff;}
.view-options label { display: flex; align-items: center; gap: 7px; color: var(--muted); font-family: var(--mono); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em;}
.view-options input[type="range"] { width: 118px;}
.check-row input { width: 16px; height: 16px;}
canvas { display: block; width: 100%; height: 100%; background: #f1f3f5; cursor: grab;}
canvas:active { cursor: grabbing;}
/* ---------- Panel sections ---------- */.panel-section { display: grid; gap: 11px; padding: 16px; border-bottom: 2px solid var(--hair);}
.panel-section:last-child { border-bottom: 0;}
.panel-section.grow { flex: 1; min-height: 0; grid-template-rows: auto minmax(0, 1fr);}
.panel-section.compact { flex: 0 0 auto;}
h2 { margin: 0 0 4px; padding-left: 9px; border-left: 4px solid var(--lime); color: var(--text-strong); font-family: var(--mono); font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;}
label { display: grid; gap: 6px; color: var(--muted); font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: 0.02em; text-transform: uppercase;}
.split-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 9px;}
.triple-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px;}
/* ---------- Lists ---------- */.parts-list,.holes-list { display: grid; align-content: start; gap: 9px; min-height: 0; overflow: auto; padding: 2px;}
.part-item,.hole-item { display: grid; grid-template-columns: minmax(0, 1fr) auto 30px; gap: 9px; align-items: center; border: 2px solid var(--edge-soft); border-radius: 3px; padding: 11px; background: rgba(7, 8, 12, 0.45); cursor: pointer; transition: transform 0.08s ease, box-shadow 0.08s ease, border-color 0.12s ease, background 0.12s ease;}
.hole-item { grid-template-columns: minmax(0, 1fr) 30px; cursor: default;}
.part-item:hover,.hole-item:hover { transform: translate(-1px, -1px); border-color: var(--edge); background: rgba(20, 24, 38, 0.6); box-shadow: var(--hard-sm);}
.part-item.selected,.hole-item.selected { border-color: var(--lime); background: rgba(196, 240, 0, 0.12); box-shadow: var(--hard-sm);}
.part-title,.hole-title { overflow: hidden; font-family: var(--mono); font-size: 13px; font-weight: 700; color: var(--text-strong); white-space: nowrap; text-overflow: ellipsis;}
.part-meta,.hole-meta,.empty-note { margin-top: 4px; color: var(--muted); font-family: var(--mono); font-size: 11px;}
.empty-note { margin-top: 0; padding: 14px; border: 2px dashed var(--edge-soft); border-radius: 3px; color: var(--faint); text-align: center; text-transform: uppercase; letter-spacing: 0.05em;}
.part-badge { min-width: 48px; border: 2px solid #000; border-radius: 999px; padding: 3px 9px; color: #08090d; background: var(--cyan); font-family: var(--mono); font-size: 10px; font-weight: 700; text-align: center; letter-spacing: 0.05em; text-transform: uppercase;}
.part-remove { width: 30px; height: 30px; padding: 0; color: var(--magenta); border: 2px solid var(--edge-soft); background: transparent; box-shadow: none; font-size: 16px; font-weight: 800; line-height: 1;}
.part-remove:hover { color: #fff; border-color: #000; background: var(--magenta);}
/* ---------- Config tabs ---------- */.panel-tabs { position: sticky; top: 0; z-index: 2; display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-bottom: 2px solid var(--edge); background: var(--glass-3); backdrop-filter: blur(18px);}
.panel-tabs button { height: 42px; border: 0; border-radius: 0; background: transparent; box-shadow: none; color: var(--muted); font-size: 12px; letter-spacing: 0.1em;}
.panel-tabs button + button { border-left: 2px solid var(--edge);}
.panel-tabs button:hover { transform: none; box-shadow: none; background: rgba(255, 255, 255, 0.06); color: var(--text-strong);}
.panel-tabs button.active { color: var(--lime); background: rgba(196, 240, 0, 0.1); box-shadow: inset 0 -3px 0 var(--lime);}
.tab-pane[hidden] { display: none;}
.hint { margin: 0; color: var(--muted); font-family: var(--mono); font-size: 11px; line-height: 1.5; letter-spacing: 0.01em;}
#boxSummary { color: var(--cyan);}
/* ---------- Scrollbars ---------- */::-webkit-scrollbar { width: 12px; height: 12px;}
::-webkit-scrollbar-thumb { border: 3px solid transparent; border-radius: 0; background: var(--edge-soft); background-clip: padding-box;}
::-webkit-scrollbar-thumb:hover { background: var(--lime); background-clip: padding-box;}
::-webkit-scrollbar-track { background: transparent;}