:root {
    --ink: #18232b;
    --muted: #8c979b;
    --line: #e3e9e7;
    --paper: #ffffff;
    --canvas: #f1f4f1;
    --bench: #e6ebe6;
    --purple: #7357e8;
    --orange: #e59a4f;
    --green: #2ca873;
    --red: #d96565;
    --shadow: 0 18px 48px rgba(36, 52, 47, .08);
}

* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--canvas); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
button { border: 0; color: inherit; font: inherit; cursor: pointer; }
button:focus-visible, [draggable="true"]:focus-visible { outline: 3px solid rgba(115, 87, 232, .35); outline-offset: 4px; }
.app-shell { min-height: 100vh; }
.topbar { height: 68px; display: flex; align-items: center; justify-content: space-between; padding: 0 25px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.9); }
.brand-block, .topbar-actions, .panel-heading, .zone-heading { display: flex; align-items: center; }.brand-block { gap: 9px; }.brand-mark { display: grid; place-items: center; width: 31px; height: 31px; border-radius: 9px; color: #fff; background: var(--ink); font-size: 10px; font-weight: 800; letter-spacing: -.08em; }.brand-name { color: var(--muted); font-size: 12px; font-weight: 700; }.topbar-actions { gap: 12px; }.database-indicator { font-size: 11px; }.is-online { color: var(--green); }.is-offline { color: var(--red); }.mode-toggle { display: inline-flex; align-items: center; gap: 7px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 9px; color: #637077; background: #fff; font-size: 11px; font-weight: 700; transition: border-color .2s, color .2s, transform .2s; }.mode-toggle:hover { border-color: var(--purple); color: var(--purple); transform: translateY(-1px); }.mode-icon { font-size: 15px; line-height: 1; }.avatar-button { display: grid; place-items: center; width: 31px; height: 31px; border-radius: 50%; color: var(--purple); background: #f0edff; font-size: 10px; font-weight: 800; }
.workspace { display: grid; grid-template-columns: 112px minmax(600px, 1fr) 112px; min-height: calc(100vh - 68px); }.side-panel { min-width: 0; padding: 25px 15px; overflow: hidden; background: var(--paper); transition: width .25s ease, padding .25s ease; }.catalog-panel { border-right: 1px solid var(--line); }.finished-panel { border-left: 1px solid var(--line); }.panel-heading { justify-content: center; gap: 9px; min-height: 31px; margin-bottom: 24px; }.catalog-panel .panel-heading { justify-content: flex-end; }.finished-panel .panel-heading { justify-content: flex-start; }.panel-symbol { display: grid; place-items: center; width: 31px; height: 31px; flex: 0 0 31px; border-radius: 9px; color: var(--purple); background: #f0edff; font-size: 18px; }.panel-copy { min-width: 0; }.panel-copy h2, .header-copy h1, .zone-heading h2 { margin: 0; letter-spacing: -.045em; }.panel-copy h2 { font-size: 17px; }.eyebrow { display: block; margin-bottom: 4px; color: var(--muted); font-size: 8px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }.panel-toggle { width: 24px; height: 24px; flex: 0 0 24px; border: 1px solid var(--line); border-radius: 7px; color: #9ba5a7; background: #fff; font-size: 18px; line-height: 1; }.catalog-panel .panel-toggle { order: -1; }.panel-meta { display: flex; justify-content: space-between; margin: 0 2px 14px; color: var(--muted); font-size: 9px; }.panel-meta strong { color: var(--ink); }.catalog-list { display: grid; justify-items: center; gap: 14px; }.catalog-item { display: grid; justify-items: center; gap: 7px; width: 100%; padding: 0; background: transparent; }.icon-object .item-art { transition: transform .2s, box-shadow .2s; }.catalog-item:hover .item-art { transform: translateY(-3px) scale(1.04); box-shadow: 0 10px 18px rgba(52, 62, 59, .14); }.item-art { position: relative; display: grid; place-items: center; width: 67px; height: 67px; overflow: hidden; border-radius: 14px; color: rgba(255,255,255,.9); background: #dae1de; box-shadow: inset 0 -15px 25px rgba(0,0,0,.08); }.item-art.object-art { width: clamp(105px, 11vw, 160px); height: clamp(105px, 11vw, 160px); border-radius: 22px; box-shadow: 0 12px 20px rgba(42, 54, 48, .1), inset 0 -20px 30px rgba(0,0,0,.08); }.item-art img { width: 100%; height: 100%; object-fit: contain; }.placeholder-art { font-size: 17px; font-weight: 800; letter-spacing: -.08em; }.placeholder-art.object-art { font-size: clamp(25px, 3vw, 44px); }.art-navy { background: linear-gradient(135deg, #526b9f, #182846); }.art-red { background: linear-gradient(135deg, #df7d7d, #7a202b); }.art-gold { background: linear-gradient(135deg, #e8c36d, #9a6326); }.art-green { background: linear-gradient(135deg, #64bda0, #1b604d); }.art-black { background: linear-gradient(135deg, #717b80, #1c2226); }.art-wood { background: linear-gradient(135deg, #cda176, #75492f); }.art-dark { background: linear-gradient(135deg, #737d82, #222a2e); }.art-warning { background: linear-gradient(135deg, #efad66, #bd5a3d); }
.production-area { min-width: 0; padding: 26px 34px 38px; }.production-header { display: flex; align-items: center; justify-content: space-between; min-height: 45px; margin-bottom: 20px; }.header-copy h1 { font-size: 25px; }.header-copy p { margin: 5px 0 0; color: var(--muted); font-size: 11px; }.header-mark { display: grid; place-items: center; width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 14px; color: var(--purple); background: #fff; font-size: 27px; transform: rotate(-18deg); }.bench-surface { min-height: calc(100vh - 174px); padding: clamp(18px, 3vw, 31px); border: 1px solid #dbe3de; border-radius: 22px; background: var(--bench); box-shadow: var(--shadow); }.bench-zone { min-height: 260px; }.zone-heading { gap: 10px; margin-bottom: 18px; }.zone-index { display: grid; place-items: center; width: 27px; height: 27px; border-radius: 8px; color: var(--purple); background: #f0edff; font-size: 9px; font-weight: 800; }.orange-index { color: var(--orange); background: #fff1e4; }.zone-heading h2 { font-size: 14px; }.zone-heading p { margin: 3px 0 0; color: var(--muted); font-size: 10px; }.object-grid { display: grid; gap: clamp(12px, 2vw, 24px); }.product-grid { grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); align-items: center; min-height: 205px; }.production-object, .component-object, .finished-object { position: relative; cursor: grab; }.production-object:active, .finished-object:active { cursor: grabbing; }.production-object { display: grid; place-items: center; min-height: 190px; padding: 7px; border: 1px solid transparent; border-radius: 24px; transition: border-color .2s, background .2s, transform .2s; }.production-object:hover { border-color: rgba(115,87,232,.18); background: rgba(255,255,255,.25); transform: translateY(-3px); }.unit-badge { position: absolute; top: 2px; right: 2px; display: grid; place-items: center; min-width: 27px; height: 21px; padding: 0 6px; border-radius: 7px; color: var(--purple); background: #fff; box-shadow: 0 3px 9px rgba(50,60,56,.1); font-size: 9px; font-weight: 800; }.object-status { margin-top: 9px; color: var(--muted); font-size: 9px; }.empty-drop { display: grid; place-items: center; align-content: center; min-height: 160px; border: 1px dashed #b8c5bc; border-radius: 22px; color: #91a098; text-align: center; }.empty-drop span, .finished-drop > span { display: grid; place-items: center; width: 29px; height: 29px; margin-bottom: 6px; border-radius: 50%; color: var(--purple); background: rgba(255,255,255,.72); font-size: 18px; }.empty-drop strong, .finished-drop strong { font-size: 10px; }.bench-divider { display: flex; align-items: center; gap: 13px; margin: 13px 0 25px; color: #92a098; font-size: 9px; }.bench-divider::before, .bench-divider::after { content: ""; flex: 1; height: 1px; background: #ccd7d0; }.component-grid { grid-template-columns: repeat(auto-fit, minmax(95px, 1fr)); min-height: 130px; }.component-object { display: grid; justify-items: center; gap: 6px; padding: 7px; border-radius: 16px; }.component-object .item-art { width: 66px; height: 66px; border-radius: 15px; }.component-object:hover { background: rgba(255,255,255,.35); }.component-status { position: absolute; right: 10px; top: 4px; width: 7px; height: 7px; border: 2px solid var(--bench); border-radius: 50%; background: var(--green); }.status-reserved { background: var(--orange); }.status-missing { background: var(--red); }.component-label { max-width: 120px; overflow: hidden; color: #73817a; font-size: 9px; text-align: center; text-overflow: ellipsis; white-space: nowrap; }
.finished-list { display: grid; justify-items: center; gap: 18px; min-height: 340px; }.finished-object { display: grid; place-items: center; width: 82px; min-height: 82px; padding: 7px; border-radius: 17px; transition: transform .2s, background .2s; }.finished-object:hover { background: #f5f8f5; transform: translateY(-3px); }.finished-object .item-art { width: 67px; height: 67px; }.finished-label { max-width: 100px; overflow: hidden; margin-top: 7px; color: var(--muted); font-size: 9px; text-align: center; text-overflow: ellipsis; white-space: nowrap; }.finished-drop { display: grid; justify-items: center; align-content: center; min-height: 94px; width: 100%; border: 1px dashed #bcc9c0; border-radius: 14px; color: #8e9c94; text-align: center; }.panel-action { width: 100%; margin-top: 20px; padding: 10px 7px; border: 1px dashed #ced8d1; border-radius: 9px; color: #79867f; background: #f9fbf9; font-size: 10px; font-weight: 700; }.panel-action:hover { color: var(--purple); border-color: var(--purple); }.panel-collapsed { width: 50px; padding-right: 10px; padding-left: 10px; }.panel-collapsed > *:not(.panel-heading) { display: none; }.panel-collapsed .panel-heading { justify-content: center; }.panel-collapsed .panel-copy { display: none; }.panel-collapsed .panel-toggle { transform: rotate(180deg); }
.detail-text { transition: opacity .18s, visibility .18s; }.visual-mode .detail-text { opacity: 0; visibility: hidden; pointer-events: none; }.visual-mode .brand-name { display: none; }.visual-mode .mode-toggle { color: var(--purple); }.visual-mode .object-status, .visual-mode .component-label, .visual-mode .finished-label { visibility: hidden; }.visual-mode .empty-drop, .visual-mode .finished-drop { border-color: transparent; background: transparent; }.visual-mode .empty-drop > span, .visual-mode .finished-drop > span { opacity: .48; }.details-mode .mode-toggle { color: var(--purple); border-color: #d7cffd; background: #faf9ff; }
.is-dragging { opacity: .45; transform: scale(.96); }.is-drop-target { border-color: var(--purple) !important; background: rgba(240,237,255,.65) !important; }
@media (max-width: 1050px) { .workspace { grid-template-columns: 90px minmax(520px, 1fr) 90px; }.production-area { padding-right: 22px; padding-left: 22px; } }.@media (max-width: 800px) { .workspace { display: block; }.side-panel { min-height: 100px; border: 0; border-bottom: 1px solid var(--line); }.catalog-list, .finished-list { grid-template-columns: repeat(4, 1fr); min-height: 0; }.catalog-panel .panel-heading, .finished-panel .panel-heading { justify-content: space-between; }.panel-toggle { display: none; }.production-area { padding: 18px 12px; }.bench-surface { min-height: 600px; } }.@media (max-width: 560px) { .topbar { padding: 0 14px; }.topbar-actions { gap: 7px; }.mode-toggle span:last-child { display: none; }.product-grid { grid-template-columns: repeat(2, 1fr); }.item-art.object-art { width: 116px; height: 116px; }.component-grid { grid-template-columns: repeat(2, 1fr); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; } }

.component-zone .zone-heading { gap: 10px; }
.zone-heading-copy { min-width: 0; flex: 1; }
.component-sort-button { display: inline-flex; align-items: center; gap: 4px; flex: 0 0 auto; padding: 6px 8px; border: 1px solid var(--line); border-radius: 7px; color: var(--muted); background: var(--paper); font: inherit; font-size: 9px; font-weight: 800; cursor: pointer; transition: border-color .2s, color .2s, background .2s; }
.component-sort-button:hover, .component-sort-button[aria-pressed="true"] { border-color: var(--purple); color: var(--purple); background: #f7f5ff; }
@media (max-width: 560px) { .component-sort-button span { display: none; } .component-sort-button { padding: 7px 8px; } }


.deliver-button { position: absolute; right: 2px; bottom: 0; padding: 4px 7px; border: 1px solid var(--line); border-radius: 7px; color: var(--muted); background: var(--paper); font: inherit; font-size: 9px; font-weight: 800; cursor: pointer; }
.deliver-button:hover { border-color: var(--green); color: var(--green); }

.ready-badge { position: absolute; left: 2px; top: 0; padding: 4px 6px; border-radius: 7px; color: #fff; background: var(--green); font-size: 8px; font-weight: 900; letter-spacing: .04em; box-shadow: 0 4px 10px rgba(44,168,115,.24); }

.confirm-modal[hidden] { display: none; }
.confirm-modal { position: fixed; z-index: 100; inset: 0; display: grid; place-items: center; padding: 22px; background: rgba(24,35,43,.38); backdrop-filter: blur(4px); }
.confirm-modal-card { width: min(100%, 430px); padding: 30px; border: 1px solid var(--line); border-radius: 22px; background: var(--paper); box-shadow: 0 24px 70px rgba(24,35,43,.2); text-align: center; }
.confirm-modal-icon { display: grid; place-items: center; width: 42px; height: 42px; margin: 0 auto 14px; border-radius: 13px; color: #fff; background: var(--orange); font-size: 22px; font-weight: 900; }
.confirm-modal-card h2 { margin: 7px 0 9px; font-size: 20px; color: var(--ink); }
.confirm-modal-card p { margin: 0 auto; color: var(--muted); font-size: 12px; line-height: 1.55; }
.confirm-modal-question { max-width: 340px; margin-top: 10px !important; color: var(--ink) !important; font-weight: 700; }
.confirm-modal-actions { display: flex; justify-content: center; gap: 10px; margin-top: 24px; }
.modal-button { padding: 10px 14px; border: 1px solid var(--line); border-radius: 9px; font: inherit; font-size: 11px; font-weight: 800; cursor: pointer; }
.modal-button.secondary { color: var(--muted); background: #fff; }
.modal-button.primary { border-color: var(--purple); color: #fff; background: var(--purple); }
.modal-button.primary:hover { filter: brightness(.96); }

.component-object { cursor: pointer; transition: transform .2s, border-color .2s, background .2s; }
.component-object:hover { transform: translateY(-3px); border-color: rgba(229,154,79,.35); background: rgba(255,255,255,.42); }
