/* MM Load Planner
 * Layout: fixed navy sidebar (tasks grouped Plan / Products / Admin) + scrolling work area of cards.
 * Identity: shipping navy + life-jacket orange; Archivo for headings, IBM Plex Sans for text, Plex Mono for figures.
 */
:root {
  --bg: #eef2f6;          /* page */
  --panel: #ffffff;       /* cards */
  --panel-2: #f6f8fb;     /* tiles, table heads */
  --text: #12202f;
  --muted: #5d6b7d;
  --line: #dfe5ec;
  --line-2: #c9d2dd;
  --navy: #0f2742;        /* sidebar */
  --navy-2: #183a5e;
  --primary: #1b4f86;     /* main buttons, links */
  --primary-soft: #e4eef9;
  --accent: #ee6b1f;      /* life-jacket orange: brand mark, active nav, highlights */
  --accent-soft: #fff0e6;
  --accent-soft-2: #ffe1cc;
  --warn: #a6510a; --warn-soft: #fff3e3;
  --ok: #17784b; --ok-soft: #e3f5ec;
  --bad: #b3261e; --bad-soft: #fde9e7;
  --viewer-bg: #e9eef4;
  --shadow: 0 1px 2px rgba(16, 32, 51, .06), 0 4px 14px rgba(16, 32, 51, .05);
  --radius: 12px;
  --f-head: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --f-body: "IBM Plex Sans", -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-num: "IBM Plex Sans", -apple-system, "Segoe UI", Roboto, sans-serif; /* plain zero (no dot), tabular digits below */
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0c131d; --panel: #131c28; --panel-2: #182333; --text: #e6edf5; --muted: #93a3b8; --line: #243245; --line-2: #31435b;
    --navy: #08101a; --navy-2: #142338; --primary: #5b9be0; --primary-soft: #16283f; --accent: #ff7d33; --accent-soft: #33200f; --accent-soft-2: #4a2c14;
    --warn: #f4a640; --warn-soft: #34240e; --ok: #4fc98e; --ok-soft: #0f2c1f; --bad: #f2786d; --bad-soft: #3a1714; --viewer-bg: #1a2534;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0c131d; --panel: #131c28; --panel-2: #182333; --text: #e6edf5; --muted: #93a3b8; --line: #243245; --line-2: #31435b;
  --navy: #08101a; --navy-2: #142338; --primary: #5b9be0; --primary-soft: #16283f; --accent: #ff7d33; --accent-soft: #33200f; --accent-soft-2: #4a2c14;
  --warn: #f4a640; --warn-soft: #34240e; --ok: #4fc98e; --ok-soft: #0f2c1f; --bad: #f2786d; --bad-soft: #3a1714; --viewer-bg: #1a2534;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3); color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--text); font: 14px/1.5 var(--f-body); -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- shell ---------- */
.app { display: grid; grid-template-columns: 236px minmax(0, 1fr); min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; background: var(--navy); color: #c8d4e3; display: flex; flex-direction: column; padding: 18px 12px; gap: 14px; z-index: 5; }
.logo { display: flex; align-items: center; gap: 10px; padding: 2px 8px 10px; }
.mark { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: var(--accent); color: #fff; font: 800 15px/1 var(--f-head); letter-spacing: .5px; flex: none; }
.logo-t { font: 700 16px/1.15 var(--f-head); color: #fff; display: flex; flex-direction: column; }
.logo-t small { font: 500 11px/1.3 var(--f-body); color: #8fa3bb; margin-top: 2px; }
nav#tabs { display: flex; flex-direction: column; gap: 2px; overflow-y: auto; }
.navlabel { font-size: 10.5px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: #6f86a1; padding: 14px 10px 4px; }
nav#tabs button { display: flex; align-items: center; gap: 10px; width: 100%; border: 0; background: none; color: #c8d4e3; padding: 9px 10px; border-radius: 9px; font-weight: 500; cursor: pointer; text-align: left; position: relative; }
nav#tabs button svg { width: 19px; height: 19px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; opacity: .85; }
nav#tabs button:hover { background: var(--navy-2); color: #fff; }
nav#tabs button.active { background: var(--navy-2); color: #fff; font-weight: 600; }
nav#tabs button.active::before { content: ""; position: absolute; left: -12px; top: 8px; bottom: 8px; width: 4px; border-radius: 0 4px 4px 0; background: var(--accent); }
nav#tabs button.active svg { color: var(--accent); opacity: 1; }
.side-foot { margin-top: auto; display: grid; gap: 10px; padding: 12px 8px 0; border-top: 1px solid rgba(255, 255, 255, .08); }
.sync { font-size: 12px; font-weight: 600; color: #a8b8cb; display: inline-flex; align-items: center; gap: 7px; }
.sync::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #7f93ab; flex: none; }
.sync[data-s="online"]::before { background: #3fd08a; box-shadow: 0 0 0 3px rgba(63, 208, 138, .18); }
.sync[data-s="saving"]::before, .sync[data-s="connecting"]::before { background: #6fb0ff; }
.sync[data-s="offline"]::before, .sync[data-s="error"]::before { background: #ffb347; }
.lang { display: inline-flex; border: 1px solid rgba(255, 255, 255, .14); border-radius: 8px; overflow: hidden; width: max-content; }
.lang button { border: 0; background: none; padding: 5px 12px; font-weight: 700; font-size: 12px; color: #a8b8cb; cursor: pointer; }
.lang button.active { background: var(--accent); color: #fff; }

main { padding: 28px 32px 48px; min-width: 0; max-width: 1480px; width: 100%; }
main > h2:first-child { font: 800 28px/1.15 var(--f-head); letter-spacing: -.3px; margin: 0 0 6px; text-wrap: balance; }
.sub { color: var(--muted); margin: 0 0 20px; max-width: 78ch; font-size: 14.5px; }
h3 { font: 700 15.5px/1.3 var(--f-head); margin: 0 0 12px; letter-spacing: -.1px; }

/* ---------- cards & layout ---------- */
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; margin-bottom: 18px; box-shadow: var(--shadow); min-width: 0; }
.grid2 { display: grid; grid-template-columns: minmax(320px, 400px) minmax(0, 1fr); gap: 18px; align-items: start; }
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; margin-bottom: 14px; }
.toolbar > h3 { align-self: center; }
.spacer { flex: 1; }
.muted { color: var(--muted); }
.hint { font-size: 12.5px; color: var(--muted); }
.empty { padding: 34px 20px; text-align: center; color: var(--muted); }
.panel.empty { border-style: dashed; box-shadow: none; }
ul.plain { margin: 6px 0; padding-left: 18px; }
ul.plain li, ol.plain li { margin: 4px 0; }
ol.plain { padding-left: 20px; }
details.panel > summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
details.panel > summary::-webkit-details-marker { display: none; }
details.panel > summary::before { content: "▸"; color: var(--muted); font-size: 13px; transition: transform .15s; }
details.panel[open] > summary::before { transform: rotate(90deg); }
details.panel > summary h3 { margin: 0; }
details.panel[open] > summary { margin-bottom: 14px; }

/* ---------- buttons ---------- */
.btn, a.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 36px; border: 1px solid var(--line-2); background: var(--panel); color: var(--text); padding: 7px 14px; border-radius: 9px; font-weight: 600; cursor: pointer; text-decoration: none; white-space: nowrap; transition: border-color .12s, background .12s, box-shadow .12s; }
.btn:hover:not(:disabled) { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.btn.primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn.primary:hover:not(:disabled) { filter: brightness(1.1); }
.btn.danger { color: var(--bad); }
.btn.danger:hover:not(:disabled) { border-color: var(--bad); box-shadow: 0 0 0 3px var(--bad-soft); }
.btn.sm { min-height: 29px; padding: 3px 10px; font-size: 12.5px; border-radius: 7px; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
button.link { background: none; border: 0; color: var(--primary); cursor: pointer; padding: 0; font-weight: 600; }
button.link:hover { text-decoration: underline; }

/* ---------- forms ---------- */
input, select, textarea { color: var(--text); background: var(--panel); border: 1px solid var(--line-2); border-radius: 8px; padding: 7px 10px; min-height: 36px; }
input[type=number] { width: 96px; font-family: var(--f-num); font-size: 13px; }
input[type=checkbox] { min-height: 0; width: 16px; height: 16px; accent-color: var(--primary); }
input[type=color] { padding: 2px; width: 44px; }
input[type=range] { accent-color: var(--accent); min-height: 0; padding: 0; border: 0; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
textarea { width: 100%; min-height: 160px; font: 12.5px/1.5 var(--f-num); }
label.f { display: flex; flex-direction: column; gap: 5px; font-size: 12px; color: var(--muted); font-weight: 600; letter-spacing: .1px; }
label.f input:not([type=checkbox]), label.f select { color: var(--text); font-weight: 400; font-size: 14px; }
.fields { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px 14px; margin-bottom: 14px; }
.fields .wide { grid-column: 1 / -1; }
.fields input:not([type=checkbox]), .fields select { width: 100%; }
label.chk { display: inline-flex; gap: 8px; align-items: center; font-size: 13.5px; cursor: pointer; }
code { font-family: var(--f-num); font-size: 12px; background: var(--panel-2); padding: 1px 5px; border-radius: 5px; }

/* ---------- tables ---------- */
.tablewrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; }
table.t { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.t th { text-align: left; color: var(--muted); font-weight: 600; font-size: 11.5px; letter-spacing: .4px; text-transform: uppercase; padding: 9px 10px; background: var(--panel-2); border-bottom: 1px solid var(--line); white-space: nowrap; }
table.t td { padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.t tbody tr:last-child td { border-bottom: 0; }
table.t tbody tr:hover td { background: var(--panel-2); }
table.t td.n, table.t th.n { text-align: right; }
table.t td.n { font-family: var(--f-num); font-size: 13px; font-variant-numeric: tabular-nums; }
table.t tr.sel td { background: var(--primary-soft) !important; }
table.t tr.tot td { border-top: 2px solid var(--line-2); background: var(--panel-2); font-weight: 600; }
.mc table.t, .modal table.t, .kpis + table.t { border: 0; }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 7px; vertical-align: -1px; }

/* ---------- chips, notes, tiles ---------- */
.pill { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 600; padding: 2px 8px; border-radius: 99px; background: var(--panel-2); color: var(--muted); border: 1px solid var(--line); white-space: nowrap; }
.pill.warn { background: var(--warn-soft); color: var(--warn); border-color: transparent; }
.pill.ok { background: var(--ok-soft); color: var(--ok); border-color: transparent; }
.pill.bad { background: var(--bad-soft); color: var(--bad); border-color: transparent; }
.note, .info { border-radius: 10px; padding: 10px 14px; font-size: 13.5px; margin: 10px 0; border: 1px solid transparent; }
.note { background: var(--warn-soft); color: var(--warn); }
.info { background: var(--primary-soft); color: var(--text); }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-bottom: 16px; }
.kpi { background: var(--panel-2); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; }
.kpi .v { font: 600 22px/1.2 var(--f-num); font-variant-numeric: tabular-nums; letter-spacing: -.5px; }
.kpi .l { font-size: 12px; color: var(--muted); margin-top: 2px; }
.bar { height: 7px; background: var(--line); border-radius: 99px; overflow: hidden; }
.bar > i { display: block; height: 100%; background: var(--primary); border-radius: 99px; }

/* ---------- 3D viewer ---------- */
.viewer { height: 460px; border-radius: 10px; overflow: hidden; background: var(--viewer-bg); position: relative; border: 1px solid var(--line); }
.viewer canvas { display: block; }
.v-missing { padding: 40px; color: var(--muted); text-align: center; }
.vtools { display: flex; gap: 6px; margin: 0 0 10px; flex-wrap: wrap; align-items: center; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12.5px; margin-top: 10px; color: var(--muted); }

/* ---------- shipment planner ---------- */
.ctabs { display: flex; gap: 10px; flex-wrap: wrap; }
.ctab { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; cursor: pointer; background: var(--panel); color: var(--text); text-align: left; min-width: 160px; display: grid; gap: 3px; }
.ctab:hover { border-color: var(--primary); }
.ctab.active { border-color: var(--primary); background: var(--primary-soft); box-shadow: 0 0 0 1px var(--primary) inset; }
.ctab b { font-family: var(--f-head); }
.ctab small { color: var(--muted); font-family: var(--f-num); font-size: 11.5px; }
.mcgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 14px; margin-top: 12px; }
.mc { border: 1px solid var(--line); border-radius: 12px; padding: 14px; display: grid; gap: 10px; align-content: start; min-width: 0; background: var(--panel); }
.mc.active { border-color: var(--primary); box-shadow: 0 0 0 1px var(--primary) inset; }
.mc-head { display: flex; gap: 8px; align-items: center; }
.mc .t td { padding: 6px; }
.picker { display: inline-flex; gap: 6px; flex-wrap: nowrap; vertical-align: middle; }
.picker select:first-child { width: 190px; }
.picker select:last-child { width: 104px; }
td:has(> .picker) { white-space: nowrap; }
th.grabcol, td.grabcol { width: 1%; white-space: nowrap; }
button.grab { border: 1px solid transparent; background: none; color: var(--muted); font-size: 18px; line-height: 1; padding: 3px 5px; border-radius: 6px; cursor: grab; touch-action: none; }
button.grab:hover, button.grab:focus-visible { border-color: var(--line-2); color: var(--text); background: var(--panel-2); }
button.grab:active { cursor: grabbing; }
.prio { display: inline-block; min-width: 18px; font: 600 13px var(--f-num); color: var(--accent); }
tr.dragging td { opacity: .4; }
tr.drop-before td { box-shadow: inset 0 3px 0 var(--accent); }
tr.drop-after td { box-shadow: inset 0 -3px 0 var(--accent); }

/* segmented switch, steps */
.seg { display: inline-flex; background: var(--panel-2); border: 1px solid var(--line); border-radius: 10px; padding: 3px; gap: 3px; margin-bottom: 16px; }
.seg button { border: 0; background: none; color: var(--muted); padding: 6px 14px; font-weight: 600; cursor: pointer; border-radius: 7px; }
.seg button.active { background: var(--panel); color: var(--text); box-shadow: 0 1px 3px rgba(16, 32, 51, .16); }
.stepctl { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin-bottom: 8px; }
.stepcard { border: 1px solid var(--accent-soft-2); background: var(--accent-soft); border-radius: 12px; padding: 14px 16px; margin-top: 12px; }
.stepcard .st-title { font: 700 16px/1.3 var(--f-head); margin: 2px 0 4px; }
.stepcard ul.plain { margin-top: 8px; }
ol.steps { padding-left: 22px; margin: 4px 0; max-height: 340px; overflow-y: auto; }
ol.steps li { padding: 5px 8px; border-radius: 7px; cursor: pointer; font-size: 13px; }
ol.steps li:hover { background: var(--panel-2); }
ol.steps li.cur { background: var(--accent-soft); }

/* catalogue groups */
table.cat tr.grp { cursor: pointer; }
table.cat tr.grp td { background: var(--panel-2); font-weight: 500; }
table.cat tr.grp:hover td { background: var(--primary-soft); }
table.cat tr.child td:nth-child(3) { padding-left: 24px; }
.caret { display: inline-block; width: 12px; color: var(--muted); }

/* ---------- home ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-bottom: 18px; }
.stat { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow); }
.stat .v { font: 600 26px/1.15 var(--f-num); letter-spacing: -.5px; }
.stat .l { color: var(--muted); font-size: 12.5px; margin-top: 3px; }
.actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; margin-bottom: 18px; }
.action { display: grid; grid-template-columns: 40px 1fr; gap: 2px 12px; align-items: start; text-align: left; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; cursor: pointer; color: var(--text); box-shadow: var(--shadow); transition: border-color .12s, transform .12s; }
.action:hover { border-color: var(--primary); transform: translateY(-1px); }
.action .ic { grid-row: span 2; width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); }
.action.main .ic { background: var(--accent-soft); color: var(--accent); }
.action .ic svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.action b { font: 700 14.5px/1.3 var(--f-head); }
.action span { font-size: 12.5px; color: var(--muted); }
.home2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); gap: 18px; }

/* ---------- dialogs ---------- */
.modal { position: fixed; inset: 0; background: rgba(8, 16, 28, .45); backdrop-filter: blur(3px); display: flex; align-items: flex-start; justify-content: center; padding: 48px 16px; z-index: 20; overflow-y: auto; }
.modal[hidden] { display: none; }
.modal-box { background: var(--panel); border-radius: 16px; padding: 22px 24px; width: 100%; max-width: 760px; box-shadow: 0 24px 70px rgba(8, 16, 28, .35); border: 1px solid var(--line); }
.modal-box > h3:first-child { font-size: 19px; margin-bottom: 14px; }
.modal-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 18px; }
.modal.dlg { z-index: 25; }
.dlg-box { max-width: 460px; }
.dlg-msg { margin: 0 0 14px; font-size: 15px; }
.toast { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); background: var(--navy); color: #fff; padding: 10px 18px; border-radius: 10px; font-weight: 600; z-index: 30; box-shadow: 0 10px 30px rgba(8, 16, 28, .3); border-left: 4px solid var(--accent); }
.toast[hidden] { display: none; }

/* ---------- sign-in page ---------- */
.brand { font: 800 22px/1.2 var(--f-head); }
.brand span { font-weight: 600; color: var(--muted); }

/* ---------- small screens: the sidebar becomes a top bar ---------- */
@media (max-width: 980px) {
  .app { grid-template-columns: 1fr; }
  .side { position: sticky; top: 0; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; padding: 10px 14px; gap: 10px; }
  .logo { padding: 0; }
  .logo-t small { display: none; }
  nav#tabs { flex-direction: row; overflow-x: auto; order: 3; width: 100%; gap: 4px; }
  nav#tabs button { width: auto; white-space: nowrap; padding: 7px 10px; }
  nav#tabs button.active::before { display: none; }
  .navlabel { display: none; }
  .side-foot { margin: 0 0 0 auto; border: 0; padding: 0; display: flex; align-items: center; gap: 12px; }
  main { padding: 20px max(16px, env(safe-area-inset-left, 0px)) 40px; }
  .grid2 { grid-template-columns: 1fr; }
}
@media (max-width: 520px) { .mcgrid { grid-template-columns: 1fr; } .sync { display: none; } }

@media print {
  .side, .toolbar, .vtools, button, .noprint { display: none !important; }
  .app { display: block; }
  body { background: #fff; color: #000; }
  .panel { border: 0; box-shadow: none; padding: 0; }
  .grid2 { display: block; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* ---------- compact tables (less sideways scrolling) ---------- */
table.t th { white-space: normal; line-height: 1.25; vertical-align: bottom; padding: 8px; }
table.t td { padding: 8px; }
table.t td.acts { white-space: nowrap; text-align: right; }
table.t td.acts .btn { margin-left: 3px; }
table.t td.fillcol { min-width: 84px; width: 96px; }
table.t td .hint { font-family: var(--f-body); }
.u { color: var(--muted); font-family: var(--f-body); font-size: 12px; }
.qty { display: inline-flex; gap: 4px; }
.qty input[type=number] { width: 82px; }
.qty select { width: 84px; }
.btn.sm { padding: 3px 8px; }

/* ---------- icon-only sidebar on laptop widths ---------- */
@media (min-width: 981px) and (max-width: 1500px) {
  .app { grid-template-columns: 68px minmax(0, 1fr); }
  .side { padding: 14px 8px; align-items: center; }
  .logo { padding: 0 0 6px; }
  .logo-t, .navlabel, nav#tabs button span { display: none; }
  nav#tabs { width: 100%; align-items: center; }
  nav#tabs button { justify-content: center; padding: 10px 0; width: 46px; }
  nav#tabs button svg { width: 21px; height: 21px; }
  nav#tabs button.active::before { left: -8px; }
  .navlabel + button, nav#tabs button[data-tab="orders"], nav#tabs button[data-tab="catalog"], nav#tabs button[data-tab="settings"] { margin-top: 10px; }
  .side-foot { padding: 10px 0 0; justify-items: center; width: 100%; }
  .sync { font-size: 0; gap: 0; }
  .sync::before { width: 10px; height: 10px; }
  .lang { flex-direction: column; }
  .lang button { padding: 5px 8px; }
  main { padding: 24px 24px 44px; }
}

/* figures: equal-width digits so columns line up, plain zero */
body { font-variant-numeric: tabular-nums; }
table.t td.n, .kpi .v, .stat .v, .ctab small, .prio, input[type=number], textarea { font-family: var(--f-num); font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1, "zero" 0; }
.kpi .v, .stat .v { font-weight: 700; letter-spacing: -.3px; }

/* ---------- PIER Technical branding ---------- */
.pier { display: block; padding: 4px 8px 14px; border-bottom: 1px solid rgba(255, 255, 255, .08); margin-bottom: 2px; }
.pier img { display: block; height: 34px; width: auto; max-width: 100%; }
.pier-icon { display: none; }
@media (min-width: 981px) and (max-width: 1500px) {
  .pier { display: none; }
  .pier-icon { display: block; width: 34px; height: 34px; border-radius: 8px; background: #fff; padding: 3px; margin-top: auto; }
  .side-foot { margin-top: 10px; }
}
@media (max-width: 980px) { .pier { border: 0; padding: 0 6px 0 0; margin: 0; } .pier img { height: 24px; } }
