:root {
  color-scheme: light;
  --bg: #f5f6fa;
  --ink: #1d1d1f;
  --muted: #646b78;
  --accent: #0071e3;
  --line: rgba(56, 71, 100, .12);
  --glass: rgba(255, 255, 255, .72);
  --green: #2d7659;
  --shadow: 0 8px 32px rgba(39, 55, 94, .05), inset 0 1px 0 rgba(255, 255, 255, .95);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-width: 320px;
  min-height: 100dvh;
  background:
    radial-gradient(ellipse at 8% 18%, #e9e6ff 0, transparent 45%),
    radial-gradient(ellipse at 96% 3%, #dfeeff 0, transparent 40%),
    radial-gradient(ellipse at 65% 90%, #e8f0fc 0, transparent 50%),
    var(--bg);
  background-attachment: fixed;
}
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button {
  border: 0;
  cursor: pointer;
  transition: background .2s, box-shadow .2s, border-color .2s, color .2s, transform .2s;
}
button:disabled { opacity: .45; cursor: default; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid #0071e380;
  outline-offset: 4px;
}
[hidden] { display: none !important; }
.icon-sprite { display: none; }
.icon { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; width: 20px; height: 20px; flex-shrink: 0; display: inline-block; vertical-align: middle; }
header, .overview, .toolbar nav, .search-wrap, dialog, .login-card, .results {
  background: var(--glass);
  border: 1px solid rgba(255, 255, 255, .9);
  box-shadow: var(--shadow);
}
header, .toolbar nav, .search-wrap, dialog, .login-card {
  -webkit-backdrop-filter: blur(24px) saturate(150%);
  backdrop-filter: blur(24px) saturate(150%);
}
header {
  position: sticky;
  z-index: 3;
  top: 16px;
  width: calc(100% - 64px);
  max-width: 1320px;
  height: 66px;
  margin: 16px auto 0;
  padding: 0 21px;
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand { display: flex; align-items: center; text-decoration: none; color: var(--ink); font-size: 24px; font-weight: 650; letter-spacing: -1px; gap: 2px; }
.brand-mark { display: grid; place-items: center; width: 64px; height: 64px; background: linear-gradient(145deg, #fdfefe, #dceaff); color: var(--accent); border: 1px solid #fff; border-radius: 19px; box-shadow: 0 6px 16px #4776b414, inset 0 1px 2px #fff; }
.brand-mark .icon { width: 32px; height: 32px; }
.brand-mark.small { width: 38px; height: 38px; border-radius: 12px; margin-right: 10px; }
.brand-mark.small .icon { width: 23px; height: 23px; }
.accent { color: var(--accent); }
.brand-divider { height: 20px; width: 1px; background: var(--line); margin: 0 17px; }
.brand-caption { font-size: 11px; letter-spacing: .1px; font-weight: 500; color: var(--muted); }
.header-right { display: flex; align-items: center; gap: 20px; }
.online { display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--muted); }
.online i, .dot { width: 6px; height: 6px; border-radius: 50%; background: #378463; display: inline-block; }
.text-button { display: inline-flex; justify-content: center; align-items: center; gap: 7px; background: transparent; color: var(--muted); min-height: 44px; padding: 9px 12px; font-size: 12px; border-radius: 12px; }
.text-button .icon { width: 16px; height: 16px; }
.text-button:hover { color: var(--ink); background: #697b9a0d; }
main { max-width: 1320px; margin: auto; padding: 46px 16px 0; }
.page-heading { display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.eyebrow { font-size: 12px; font-weight: 500; letter-spacing: .2px; color: var(--muted); margin: 0 0 10px; }
h1 { font-size: clamp(30px, 3vw, 42px); font-weight: 650; letter-spacing: -1.7px; margin: 0; line-height: 1.15; text-wrap: balance; }
.subtitle { font-size: 14px; color: var(--muted); margin: 13px 0 0; line-height: 1.5; }
.primary, .secondary { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 16px; padding: 13px 20px; font-size: 13px; font-weight: 550; min-height: 46px; }
.primary { background: linear-gradient(180deg, #1985f2, #0071e3); color: #fff; border: 1px solid #0872d8; box-shadow: inset 0 1px 0 #ffffff42, 0 4px 12px #0071e31f; }
.primary:hover { background: linear-gradient(180deg, #2b90f6, #0077ed); box-shadow: inset 0 1px 0 #ffffff55, 0 6px 18px #0071e32e; }
.primary:active, .secondary:active { transform: scale(.98); }
.secondary { background: #ffffffab; color: #414a5a; border: 1px solid var(--line); box-shadow: inset 0 1px 0 #fff; }
.secondary:hover { background: #fff; border-color: #a8bbd4; }
.full { width: 100%; }
.overview { display: grid; grid-template-columns: repeat(4, 1fr); margin: 30px 0; border-radius: 22px; padding: 7px 0; }
.stat { padding: 13px 24px; display: flex; align-items: center; gap: 14px; position: relative; }
.stat + .stat::before { content: ""; position: absolute; left: 0; height: 36px; width: 1px; background: var(--line); }
.stat-icon { display: grid; place-items: center; width: 42px; height: 42px; color: #687891; background: #eef2f8; border: 1px solid #ffffffeb; border-radius: 13px; }
.stat-icon .icon { width: 21px; height: 21px; }
.stat strong { font-size: 26px; font-weight: 600; letter-spacing: -.7px; font-variant-numeric: tabular-nums; }
.stat p { font-size: 12px; line-height: 1.4; color: var(--muted); margin: 3px 0 0; }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
nav { display: inline-flex; gap: 4px; padding: 5px; border-radius: 17px; }
.tab { min-height: 40px; background: none; font-size: 12px; color: var(--muted); padding: 9px 18px; border-radius: 12px; }
.tab.active { background: #fff; box-shadow: 0 2px 8px #27375e12, 0 0 0 1px #34496b05; color: var(--ink); font-weight: 550; }
.tab:hover:not(.active) { background: #ffffff80; color: var(--ink); }
.search-row { display: flex; align-items: center; gap: 20px; margin: 22px 0 28px; }
.search-wrap { display: flex; align-items: center; gap: 10px; border-radius: 16px; max-width: 540px; width: 100%; padding: 0 16px; }
.search-wrap > span { display: flex; color: #788498; }
.search-wrap .icon { width: 19px; height: 19px; }
.search-wrap input { border: 0; background: transparent; outline: none; min-height: 49px; width: 100%; font-size: 13px; min-width: 0; color: var(--ink); }
.search-wrap:focus-within { box-shadow: 0 0 0 3px #0071e31c, var(--shadow); border-color: #84b9f0; }
.search-wrap input:focus-visible { outline: none; }
input::placeholder, textarea::placeholder { color: #7b8391; }
kbd { border: 1px solid #6f809a21; background: #fff7; border-radius: 5px; font-size: 11px; color: var(--muted); padding: 2px 6px; }
.search-hint { font-size: 12px; color: var(--muted); }
.section-label { display: flex; justify-content: space-between; align-items: center; margin: 0 3px 17px; gap: 10px; font-size: 12px; }
.section-label > span:first-child { display: flex; align-items: center; gap: 7px; font-weight: 550; }
.section-label .muted { font-size: 11px; }
.dot { background: #88a3c3; width: 5px; height: 5px; }
.racks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.rack { min-width: 0; padding: 18px 14px 15px; border-radius: 25px; background: linear-gradient(145deg, #ffffff85, #f8fbff66); border: 1px solid #fffffff0; box-shadow: var(--shadow); }
.rack-header { display: flex; align-items: center; gap: 11px; margin: 0 4px 19px; }
.rack-num { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 12px; background: #e9f1fc; color: #4774a8; border: 1px solid #fff; font-size: 12px; font-weight: 600; }
.rack-header h2 { font-size: 16px; font-weight: 600; letter-spacing: -.35px; margin: 0; }
.rack-header p { font-size: 11px; margin: 5px 0 0; color: var(--muted); }
.rack-frame { border: solid #bcc7d4; border-width: 0 4px 5px; border-radius: 3px 3px 8px 8px; background: linear-gradient(90deg, #dce3eb33, #fff0 12%, #fff0 88%, #dce3eb33); box-shadow: 0 5px 5px -5px #697b9470; }
.shelf { min-height: 111px; position: relative; border-bottom: 5px solid #c5ceda; padding: 25px 8px 9px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)) 44px repeat(2, minmax(0, 1fr)); align-items: end; gap: 6px; background: linear-gradient(0deg, #d8e0ea25, #fff0 40%); transition: background .2s; }
.shelf:last-child { border-bottom: 0; }
.shelf-label { position: absolute; top: 7px; left: 9px; font-size: 9px; color: #677589; font-weight: 500; letter-spacing: .1px; }
.shelf-add { grid-column: 3; grid-row: 1; display: grid; place-items: center; align-self: center; margin: auto; flex-shrink: 0; background: #ffffff75; border: 1px dashed #a8b7cb; color: #637c9c; width: 44px; height: 44px; border-radius: 13px; font-size: 23px; font-weight: 300; }
.shelf-add:hover { border-color: var(--accent); background: #edf5ff; color: var(--accent); }
.box { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-width: 0; width: 100%; max-width: 96px; min-height: 70px; padding: 16px 4px 8px; border-radius: 14px 14px 11px 11px; background: linear-gradient(150deg, #fff 0%, #f6faff 52%, #e7eef8 100%); border: 1px solid #c4d1e2; box-shadow: inset 0 1px 2px #fff, 0 3px 5px #4c668b12, 0 1px 0 #879bb929; color: #304966; cursor: grab; }
.box::before { content: ""; position: absolute; top: 8px; height: 1px; left: 8px; right: 8px; background: #abc1da55; box-shadow: 0 1px 0 #fff; pointer-events: none; }
.box-number { font-size: 24px; font-weight: 600; line-height: 1.1; letter-spacing: -1px; font-variant-numeric: tabular-nums; max-width: 100%; overflow-wrap: anywhere; }
.box-count { font-size: 10px; color: #586b84; white-space: nowrap; }
.box.empty { background: linear-gradient(145deg, #ffffff90, #e8edf46e); border-color: #cad3df; border-style: dashed; box-shadow: inset 0 1px 0 #fff, 0 2px 3px #4c668b08; color: #758399; }
.box.empty .box-count { color: #5d6d82; }
.box:hover { transform: translateY(-4px); border-color: #94b4dc; box-shadow: inset 0 1px 0 #fff, 0 8px 14px #44648e19; }
.box.match { outline: 2px solid var(--accent); outline-offset: 2px; background: linear-gradient(145deg, #fff, #d9eaff); color: #0062c4; }
.box.dim { opacity: .38; }
.box.dragging { opacity: .35; }
.shelf.drag-over { background: #d9eaff80; outline: 2px dashed #5798dc; outline-offset: -4px; }
.box.drop-before { box-shadow: -4px 0 0 var(--accent), inset 0 1px 0 #fff; }
.legend { display: flex; justify-content: center; gap: 24px; align-items: center; font-size: 11px; color: var(--muted); margin: 24px 0 32px; }
.legend > span { display: flex; align-items: center; gap: 7px; }
.legend-box { width: 12px; height: 12px; border-radius: 4px; background: #e3edf9; border: 1px solid #adc0d9; }
.legend-box.empty { background: #ffffff80; border: 1px dashed #adbacb; }
footer { border-top: 1px solid var(--line); padding: 20px 2px; display: flex; justify-content: space-between; font-size: 10px; color: var(--muted); gap: 15px; }
.muted { color: var(--muted); }
.empty-message { text-align: center; padding: 38px 20px; color: var(--muted); font-size: 13px; line-height: 1.7; border: 1px dashed #bbc9da; background: #ffffff45; border-radius: 17px; }
.results { margin: -10px 0 25px; padding: 16px; border-radius: 20px; }
.results-heading { font-size: 12px; margin: 0 0 12px; color: var(--muted); }
.result { display: flex; align-items: center; justify-content: space-between; gap: 15px; text-align: left; background: none; width: 100%; padding: 13px 10px; border-top: 1px solid var(--line); font-size: 13px; border-radius: 7px; }
.result:hover { background: #e9f2ff80; }
.result small { display: block; color: var(--muted); margin-top: 5px; font-size: 11px; }
.result strong { white-space: nowrap; font-size: 12px; color: #2b638f; }
dialog { border-radius: 28px; padding: 28px; width: min(540px, calc(100% - 28px)); max-height: 90dvh; box-shadow: 0 24px 90px #2639592e, inset 0 1px 0 #fff; color: var(--ink); background: #f9fbffed; }
dialog::backdrop { background: #26395930; -webkit-backdrop-filter: blur(7px); backdrop-filter: blur(7px); }
.dialog-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; margin-bottom: 23px; }
.dialog-heading h2 { margin: 0; font-size: 24px; font-weight: 600; letter-spacing: -.8px; }
.dialog-heading p { margin: 8px 0 0; font-size: 12px; color: var(--muted); line-height: 1.5; }
.icon-button { border-radius: 50%; background: #e7ecf3; width: 36px; height: 36px; display: grid; place-items: center; color: #5c697b; flex-shrink: 0; }
.icon-button .icon { width: 18px; height: 18px; }
.icon-button:hover { background: #dce5f0; color: var(--ink); }
label { display: flex; flex-direction: column; gap: 8px; font-size: 12px; font-weight: 500; margin-bottom: 18px; color: #414a5b; }
label input, label select, label textarea { width: 100%; background: #ffffffb8; border: 1px solid #b6c2d661; box-shadow: 0 1px 2px #34456204, inset 0 1px 0 #fff; border-radius: 12px; padding: 12px 13px; color: var(--ink); font-size: 14px; min-height: 47px; }
label input:hover, label select:hover, label textarea:hover { border-color: #a4b5ce; }
textarea { resize: vertical; min-height: 84px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.form-error { font-size: 12px; color: #b32626; line-height: 1.5; }
.dialog-actions { display: flex; gap: 9px; margin-top: 20px; flex-wrap: wrap; }
.dialog-actions button { flex: 1; white-space: nowrap; }
.item-row { border-top: 1px solid var(--line); padding: 17px 0; display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 14px; }
.item-row p { margin: 6px 0 0; font-size: 12px; color: var(--muted); line-height: 1.4; }
.stock-amount { font-weight: 600; white-space: nowrap; font-size: 15px; }
.modal-note { padding: 14px; background: #eaf1fb99; border: 1px solid #d7e4f470; border-radius: 12px; font-size: 12px; color: #5f6e84; line-height: 1.6; }
#modal-body { overflow-wrap: anywhere; }
#available { font-size: 12px; }
.login-screen { min-height: 100dvh; display: grid; place-items: center; padding: 30px 20px; }
.login-card { max-width: 430px; width: 100%; padding: 36px; border-radius: 32px; }
.login-card > .brand-mark { margin-bottom: 27px; }
.login-card h1 { font-size: 52px; letter-spacing: -2px; }
.login-card > #login-description { font-size: 14px; line-height: 1.65; color: var(--muted); margin: 18px 0 27px; }
.login-foot { text-align: center; font-size: 11px; margin: 23px 0 0; }
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); background: #263547f2; color: #fff; padding: 14px 23px; border-radius: 18px; box-shadow: 0 6px 25px #1d355d29; max-width: 90%; font-size: 13px; line-height: 1.5; z-index: 5; }
.toast.error { background: #963e3ef5; }
.history-intro { padding: 28px 0 12px; }
.history-intro h2 { font-size: 23px; font-weight: 600; letter-spacing: -.6px; margin: 0 0 9px; }
.history-intro p { font-size: 13px; }
#history-list { padding: 0 22px; background: #ffffff73; border: 1px solid #fff; border-radius: 22px; }
#history-list:has(.empty-message) { padding: 0; border: 0; background: none; }
.history-entry { display: grid; grid-template-columns: 125px 1fr auto; gap: 20px; align-items: start; padding: 20px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.history-entry:last-child { border-bottom: 0; }
.history-entry strong { font-weight: 550; }
.history-entry time { font-size: 11px; color: var(--muted); line-height: 1.7; }
.history-entry p { margin: 6px 0 0; color: var(--muted); font-size: 12px; line-height: 1.6; overflow-wrap: anywhere; }
.badge { background: #dfefe6; color: #286744; border-radius: 8px; padding: 6px 9px; font-size: 11px; white-space: nowrap; }
.badge.writeoff { background: #f8e6e4; color: #9c4741; }
.badge.transfer, .badge.move_box { background: #e3edfb; color: #396495; }
#history-more { margin: 20px 0; }
@media (min-width: 1400px) {
  main { padding-top: 50px; }
  .shelf { min-height: 118px; }
  .box { min-height: 76px; }
}
@media (max-width: 1380px) { main { padding-right: 32px; padding-left: 32px; } }
@media (max-width: 1100px) {
  .racks { gap: 14px; }
  .rack { padding-right: 10px; padding-left: 10px; }
  .shelf { gap: 6px; padding-right: 6px; padding-left: 6px; }
  .box-number { font-size: 23px; }
  .stat { padding: 13px 16px; gap: 11px; }
  .stat-icon { width: 35px; height: 35px; border-radius: 11px; }
  .stat p { font-size: 11px; }
  .search-hint { display: none; }
}
@media (min-width: 721px) and (max-width: 900px) {
  .racks { gap: 10px; }
  .rack { padding-right: 7px; padding-left: 7px; border-radius: 20px; }
  .rack-header { gap: 7px; margin-left: 2px; }
  .rack-header h2 { font-size: 14px; }
  .rack-header p { font-size: 10px; }
  .rack-num { width: 30px; height: 30px; border-radius: 10px; }
  .stat-icon { display: none; }
}
@media (max-width: 720px) {
  header { width: calc(100% - 28px); top: 10px; margin-top: 10px; height: 60px; border-radius: 21px; padding: 0 14px; }
  .brand { font-size: 22px; }
  .brand-caption, .brand-divider, .online { display: none; }
  main { padding: 32px 18px 0; }
  .page-heading { align-items: flex-start; flex-direction: column; gap: 22px; }
  h1 { font-size: 34px; letter-spacing: -1.3px; }
  .subtitle { font-size: 13px; }
  .page-heading > .primary { width: 100%; }
  .overview { grid-template-columns: repeat(2, 1fr); margin: 24px 0; border-radius: 21px; padding: 5px 0; }
  .stat { padding: 14px 16px; gap: 12px; }
  .stat:nth-child(3)::before { display: none; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .stat strong { font-size: 25px; }
  .stat p { font-size: 11px; }
  .stat-icon { width: 32px; height: 32px; border-radius: 10px; }
  .stat-icon .icon { width: 18px; height: 18px; }
  .racks { grid-template-columns: 1fr; gap: 22px; }
  .rack { padding: 18px 13px 15px; }
  .rack-header { margin-bottom: 17px; }
  .shelf { min-height: 113px; gap: 6px; padding: 25px 9px 9px; }
  .box { max-width: 100px; min-height: 71px; }
  .box-number { font-size: 24px; }
  .section-label { align-items: flex-start; flex-direction: column; gap: 9px; margin-bottom: 17px; }
  .legend { flex-wrap: wrap; gap: 12px 20px; line-height: 1.5; font-size: 10px; }
  .legend > span:last-child { flex-basis: 100%; justify-content: center; }
  nav { gap: 2px; padding: 4px; border-radius: 15px; }
  .tab { font-size: 11px; padding: 9px 12px; }
  .toolbar > .text-button { font-size: 0; padding: 10px; }
  .toolbar > .text-button .icon { width: 19px; height: 19px; }
  .toolbar { gap: 8px; }
  footer { font-size: 9px; }
  .history-entry { grid-template-columns: 1fr auto; gap: 8px 12px; }
  .history-entry time { grid-column: 1 / -1; }
  #history-list { padding: 0 15px; }
  .badge { font-size: 10px; }
  .search-row { margin-bottom: 24px; }
  .form-row { gap: 10px; }
  dialog { padding: 23px; border-radius: 25px; }
  label input, label select, label textarea { font-size: 16px; }
  .result { font-size: 12px; }
  .login-card { padding: 29px; border-radius: 28px; }
}
@supports not (backdrop-filter: blur(1px)) {
  :root { --glass: #f9fbff; }
  dialog { background: #f9fbff; }
}
@media (prefers-reduced-transparency: reduce) {
  :root { --glass: #f9fbff; }
  header, .toolbar nav, .search-wrap, dialog, .login-card, dialog::backdrop { -webkit-backdrop-filter: none; backdrop-filter: none; }
  dialog { background: #f9fbff; }
  .rack, #history-list, .box.empty { background: #f7f9fc; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .box:hover, .primary:active, .secondary:active { transform: none; }
}

.items-heading { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin: 28px 0 22px; }
.items-heading h2 { font-size: 23px; font-weight: 600; letter-spacing: -.6px; margin: 0 0 9px; }
.items-heading p { font-size: 13px; line-height: 1.5; margin: 0; }
.items-heading button { flex-shrink: 0; }
#items-list { margin-bottom: 30px; }
.items-table { width: 100%; table-layout: fixed; border-spacing: 0; border: 1px solid #fff; border-radius: 22px; overflow: hidden; background: #ffffff73; font-size: 13px; }
.items-table th, .items-table td { text-align: left; padding: 17px 15px; vertical-align: top; overflow-wrap: anywhere; }
.items-table th { font-size: 11px; color: var(--muted); font-weight: 550; background: #ffffff78; border-bottom: 1px solid var(--line); }
.items-table th:first-child { width: 23%; }
.items-table th:nth-child(2) { width: 13%; }
.items-table th:nth-child(3) { width: 9%; }
.items-table th:nth-child(4) { width: 33%; }
.items-table tr + tr td { border-top: 1px solid var(--line); }
.items-table .item-name, .item-total { font-weight: 550; }
.item-total { font-variant-numeric: tabular-nums; }
.item-place { display: flex; flex-direction: column; gap: 5px; text-align: left; padding: 8px 10px; margin: -5px -7px 9px; min-height: 44px; border-radius: 10px; background: none; color: var(--ink); max-width: 100%; overflow-wrap: anywhere; }
.item-place:last-child { margin-bottom: -5px; }
.item-place:hover { background: #dcecff88; }
.item-place strong { font-size: 12px; font-weight: 500; }
.item-place span { font-size: 11px; color: var(--muted); }
@media (max-width: 720px) {
  .toolbar { flex-wrap: wrap; }
  .toolbar nav { flex-wrap: wrap; }
  .toolbar .tab { padding: 9px 10px; }
  .items-heading { align-items: flex-start; flex-direction: column; gap: 16px; }
  .items-heading button { width: 100%; }
  .items-table, .items-table tbody, .items-table tr, .items-table td { display: block; width: 100%; }
  .items-table { background: none; border: 0; overflow: visible; }
  .items-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .items-table tr { background: #ffffffa3; border: 1px solid #fff; border-radius: 20px; padding: 9px 16px; margin-bottom: 14px; }
  .items-table td { padding: 11px 0; }
  .items-table td::before { content: attr(data-label); display: block; color: var(--muted); font-size: 11px; font-weight: 400; margin-bottom: 7px; }
  .items-table td + td { border-top: 1px solid var(--line); }
  .items-table tr + tr td { border-top: 0; }
  .items-table tr + tr td + td { border-top: 1px solid var(--line); }
}

@media (min-width: 721px) and (max-width: 900px), (max-width: 360px) {
  .shelf { grid-template-columns: minmax(0, 1fr) 44px minmax(0, 1fr); }
  .shelf-add { grid-column: 2; }
}
