* { box-sizing: border-box; }
:root { color-scheme: dark; --bg: #1a1014; --panel: #291820; --panel-2: #35202a; --ink: #fff6f1; --muted: #d7b8c2; --line: rgba(255, 140, 171, .3); --rose: #ff8cab; --gold: #f4d36c; --green: #7df2bf; --blue: #87cfff; }
html, body { min-height: 100%; }
body { margin: 0; background: radial-gradient(circle at 80% 10%, rgba(255, 140, 171, .24), transparent 30rem), linear-gradient(145deg, #1c1016, #301b25 58%, #090608); color: var(--ink); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
button, a { font: inherit; }
.shell { width: min(1160px, calc(100% - 28px)); margin: 0 auto; padding: 18px 0 30px; }
.topbar, .meta, .controls { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.topbar { justify-content: space-between; min-height: 56px; margin-bottom: 18px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-size: 22px; font-weight: 900; text-decoration: none; }
.brand span { display: grid; width: 34px; height: 34px; place-items: center; border: 2px solid var(--rose); border-radius: 8px; background: #1d0f15; color: var(--rose); }
.meta span { min-height: 36px; border: 1px solid var(--line); border-radius: 6px; padding: 8px 12px; background: rgba(0, 0, 0, .22); font-weight: 850; }
.layout { display: grid; grid-template-columns: minmax(0, 680px) minmax(310px, 430px); gap: 18px; align-items: start; }
.bay, .manifest { border: 1px solid var(--line); border-radius: 8px; background: rgba(35, 19, 27, .9); box-shadow: 0 24px 70px rgba(0, 0, 0, .35); padding: clamp(18px, 3vw, 28px); }
.eyebrow { margin: 0 0 8px; color: var(--muted); font-size: 12px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
h1, h2, h3 { margin: 0; letter-spacing: 0; }
h1 { font-size: clamp(34px, 7vw, 62px); line-height: .95; }
h2 { font-size: clamp(24px, 4vw, 38px); line-height: 1; }
h3 { margin: 18px 0 8px; color: var(--gold); font-size: 14px; text-transform: uppercase; }
.bay-grid { display: grid; gap: 8px; margin-top: 22px; }
.cell { position: relative; display: grid; min-height: 64px; place-items: center; border: 1px solid rgba(255, 246, 241, .13); border-radius: 7px; background: rgba(255, 255, 255, .035); color: rgba(255, 246, 241, .36); font-weight: 950; text-transform: uppercase; }
.cell.blocked { border-style: dashed; background: repeating-linear-gradient(135deg, rgba(255,255,255,.04), rgba(255,255,255,.04) 8px, rgba(0,0,0,.13) 8px, rgba(0,0,0,.13) 16px); color: rgba(255, 246, 241, .16); }
.parcel-cell { color: #160a0e; border-color: rgba(255,255,255,.38); box-shadow: inset 0 -4px 0 rgba(0,0,0,.18); }
.weight-1 { background: var(--blue); }
.weight-2 { background: var(--gold); }
.weight-3 { background: var(--rose); }
.parcel-list, .column-list { display: grid; gap: 8px; min-height: 42px; }
.parcel-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.column-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.parcel-list button, .column-list button, .controls button { min-height: 44px; border: 1px solid var(--line); border-radius: 6px; color: var(--ink); background: rgba(255, 255, 255, .05); font-weight: 900; cursor: pointer; }
.parcel-list button { min-height: 66px; padding: 8px; text-align: left; }
.parcel-list small { display: block; margin-top: 4px; color: var(--muted); font-weight: 750; }
.parcel-list button.selected, .column-list button:hover { border-color: var(--rose); background: rgba(255, 140, 171, .16); }
.parcel-list button:disabled { opacity: .45; cursor: default; text-decoration: line-through; }
.controls button { padding: 0 14px; color: #160a0e; background: var(--rose); border: 0; }
.controls button:nth-child(2) { background: #ffe8ef; }
#rotate-button { background: var(--blue); }
#submit-button { background: var(--green); }
.status { min-height: 48px; color: #fff8f0; font-weight: 760; }
.empty { color: var(--muted); }
@media (max-width: 880px) { .layout { grid-template-columns: 1fr; } .shell { width: min(100% - 18px, 700px); } .cell { min-height: 54px; } }
