:root {
  --navy: #333333;
  --navy-2: #262626;
  --navy-3: #3d3d3d;
  --teal: #9a6f00;
  --gold: #F1B526;
  --gold-hover: #e0a312;
  --teal-soft: #fdf3d6;
  --bg: #f4f4f2;
  --card: #ffffff;
  --text: #262626;
  --muted: #6f6f6f;
  --line: #e6e4df;
  --green: #23945a;
  --green-soft: #e3f5ea;
  --orange: #d9821a;
  --orange-soft: #fdf0de;
  --red: #d04444;
  --red-soft: #fbe5e5;
  --blue: #2f6fd6;
  --blue-soft: #e5eefc;
  --grey-soft: #f0efec;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(0, 0, 0, .06), 0 4px 16px rgba(0, 0, 0, .05);
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "IBM Plex Sans Arabic", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;
  background: var(--bg); color: var(--text); font-size: 14px; line-height: 1.55;
}
a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.error { color: var(--red); min-height: 1.2em; }
.num { font-variant-numeric: tabular-nums; direction: ltr; unicode-bidi: isolate; }
h1, h2, h3 { margin: 0; font-weight: 700; }
h2 { font-size: 20px; }
h3 { font-size: 15px; }

/* ---------- login ---------- */
.login-screen { min-height: 100vh; display: grid; place-items: center; padding: 16px;
  background: radial-gradient(circle at 20% 10%, #4a4a4a 0, #262626 60%); }
.login-card { background: #fff; border-radius: 18px; padding: 32px 28px; width: 100%; max-width: 380px;
  box-shadow: 0 20px 60px rgba(0,0,0,.25); display: flex; flex-direction: column; gap: 14px; text-align: center; }
.login-card h1 { font-size: 20px; }
.login-card label { text-align: right; }
.brand-logo { width: 180px; height: auto; display: block; margin: 0 auto 4px; }
.side-logo { width: 84px; height: auto; display: block; }
.gold-rule { width: 48px; height: 4px; background: var(--gold); border-radius: 2px; margin: 0 auto; }

/* ---------- form controls ---------- */
label { display: flex; flex-direction: column; gap: 5px; font-weight: 500; font-size: 13px; color: #344054; }
input, select, textarea {
  font: inherit; border: 1px solid #d3d9e3; border-radius: 9px; padding: 8px 11px; background: #fff; color: var(--text);
  min-height: 38px; width: 100%;
}
textarea { min-height: 70px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid rgba(241, 181, 38, .35); border-color: var(--gold); }
input[type=checkbox] { width: auto; min-height: 0; }
.check { flex-direction: row; align-items: center; gap: 8px; font-weight: 500; }
.btn { font: inherit; font-weight: 600; border: 1px solid #d3d9e3; background: #fff; color: var(--text); border-radius: 9px;
  padding: 7px 14px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; min-height: 36px; }
.btn:hover { background: #f7f6f2; }
.btn.primary { background: var(--gold); border-color: var(--gold); color: #262626; }
.btn.primary:hover { background: var(--gold-hover); }
.btn.navy { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn.success { background: var(--green); border-color: var(--green); color: #fff; }
.btn.danger { background: #fff; border-color: #f0c4c4; color: var(--red); }
.btn.danger:hover { background: var(--red-soft); }
.btn.sm { padding: 3px 10px; min-height: 28px; font-size: 12.5px; }
.btn.block { width: 100%; justify-content: center; min-height: 42px; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.link-btn { background: none; border: 0; color: inherit; cursor: pointer; font: inherit; padding: 0; text-decoration: underline; opacity: .8; }
.icon-btn { background: none; border: 0; font-size: 20px; cursor: pointer; position: relative; padding: 6px; border-radius: 8px; }
.icon-btn:hover { background: var(--grey-soft); }

/* ---------- shell ---------- */
.shell { display: flex; min-height: 100vh; }
.sidebar { width: 240px; background: var(--navy-2); color: #dbe4f0; display: flex; flex-direction: column; position: sticky; top: 0;
  height: 100vh; flex-shrink: 0; }
.side-brand { display: flex; gap: 10px; align-items: center; padding: 18px 16px; border-bottom: 1px solid rgba(255,255,255,.07); }
.side-title { font-weight: 700; color: #fff; }
.side-sub { font-size: 12px; opacity: .7; }
nav { flex: 1; overflow-y: auto; padding: 10px 8px; }
nav a { display: flex; align-items: center; gap: 10px; color: #c5d1e0; padding: 9px 12px; border-radius: 9px; margin-bottom: 2px;
  text-decoration: none; font-weight: 500; }
nav a:hover { background: rgba(255,255,255,.06); color: #fff; text-decoration: none; }
nav a.active { background: var(--navy-3); color: #fff; box-shadow: inset -3px 0 0 var(--gold); }
nav a .ico { width: 20px; text-align: center; opacity: .9; }
nav a .count { margin-inline-start: auto; background: var(--gold); color: #262626 !important; color: #fff; border-radius: 10px; font-size: 11px; padding: 0 7px; }
nav .sep { font-size: 11px; opacity: .5; padding: 12px 12px 4px; }
.side-user { padding: 14px 16px; border-top: 1px solid rgba(255,255,255,.07); font-size: 13px; display: flex; flex-direction: column; gap: 4px; }
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 500; background: rgba(244,244,242,.92); backdrop-filter: blur(6px);
  display: flex; align-items: center; gap: 10px; padding: 12px 24px; border-bottom: 1px solid var(--line); }
.top-title { font-weight: 700; font-size: 16px; flex: 1; }
.top-actions { display: flex; gap: 12px; align-items: center; }
.server-clock { font-size: 13px; color: var(--muted); }
.menu-btn { display: none; }
.badge-dot { position: absolute; top: 0; left: 0; background: var(--red); color: #fff; border-radius: 10px; font-size: 10px;
  padding: 0 5px; min-width: 16px; line-height: 16px; }
.view { padding: 22px 24px 60px; }

/* ---------- layout pieces ---------- */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.page-head .sub { color: var(--muted); font-size: 13px; margin-top: 2px; }
.toolbar { display: flex; gap: 8px; flex-wrap: wrap; align-items: flex-end; }
.toolbar label { min-width: 140px; }
.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; background: var(--card); padding: 12px 14px;
  border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 16px; }
.filters label { min-width: 150px; flex: 0 1 190px; }
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px 18px; }
.card + .card { margin-top: 16px; }
.card-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; gap: 10px; flex-wrap: wrap; }
.grid { display: grid; gap: 16px; }
.grid.k4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid.k5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.grid.c2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.grid.c21 { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 14px; }
.form-grid .full { grid-column: 1 / -1; }

.kpi { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px 16px; position: relative; overflow: hidden; }
.kpi .label { color: var(--muted); font-size: 12.5px; }
.kpi .value { font-size: 30px; font-weight: 700; line-height: 1.2; margin-top: 4px; }
.kpi .hint { font-size: 12px; color: var(--muted); }
.kpi.green .value { color: var(--green); } .kpi.orange .value { color: var(--orange); }
.kpi.red .value { color: var(--red); } .kpi.blue .value { color: var(--blue); } .kpi.navy .value { color: var(--navy); }
.kpi.clickable { cursor: pointer; } .kpi.clickable:hover { outline: 2px solid var(--teal-soft); }

.badge { display: inline-flex; align-items: center; gap: 4px; border-radius: 20px; padding: 1px 10px; font-size: 12px; font-weight: 600;
  background: var(--grey-soft); color: #4a5568; white-space: nowrap; }
.badge.green { background: var(--green-soft); color: var(--green); }
.badge.orange { background: var(--orange-soft); color: var(--orange); }
.badge.red { background: var(--red-soft); color: var(--red); }
.badge.blue { background: var(--blue-soft); color: var(--blue); }
.badge.teal { background: var(--teal-soft); color: var(--teal); }
.badge.navy { background: #e8e8e6; color: var(--navy); }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th { text-align: right; font-size: 12px; font-weight: 600; color: var(--muted); padding: 9px 10px; border-bottom: 1px solid var(--line);
  background: #fafaf8; white-space: nowrap; position: sticky; top: 0; }
td { padding: 9px 10px; border-bottom: 1px solid #f0f2f6; vertical-align: middle; }
tr.clickable { cursor: pointer; } tr.clickable:hover td { background: #fbfaf6; }
td .sub { font-size: 12px; color: var(--muted); }
.empty { text-align: center; color: var(--muted); padding: 30px 10px; }
.actions { display: flex; gap: 6px; flex-wrap: wrap; }

/* ---------- site bars ---------- */
.site-row { padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; margin-bottom: 10px; cursor: pointer; }
.site-row:hover { border-color: var(--gold); }
.site-row .top { display: flex; justify-content: space-between; font-weight: 600; margin-bottom: 8px; gap: 8px; }
.bar { display: flex; height: 9px; border-radius: 6px; overflow: hidden; background: var(--grey-soft); }
.bar span { display: block; height: 100%; }
.bar .g { background: var(--green); } .bar .o { background: var(--orange); } .bar .r { background: var(--red); }
.bar .b { background: #9db7e6; } .bar .x { background: #cfd5df; }
.legend { display: flex; gap: 12px; flex-wrap: wrap; font-size: 12px; color: var(--muted); margin-top: 8px; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-inline-end: 4px; vertical-align: -1px; }

.map { height: 340px; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); z-index: 0; }
.map.tall { height: 440px; }
.map.small { height: 220px; }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 14px; flex-wrap: wrap; }
.tabs button { background: none; border: 0; font: inherit; padding: 8px 14px; cursor: pointer; color: var(--muted); font-weight: 600;
  border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs button.active { color: var(--teal); border-bottom-color: var(--teal); }
.pill-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.pill-tabs button { font: inherit; border: 1px solid var(--line); background: #fff; border-radius: 20px; padding: 3px 12px; cursor: pointer; font-size: 13px; }
.pill-tabs button.active { background: var(--navy); color: #fff; border-color: var(--navy); }

.report-types { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-bottom: 16px; }
.report-types button { font: inherit; text-align: right; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px;
  cursor: pointer; display: flex; flex-direction: column; gap: 3px; }
.report-types button b { font-size: 14px; }
.report-types button span { font-size: 12px; color: var(--muted); }
.report-types button.active { border-color: var(--gold); background: var(--teal-soft); }

.chart-bars { display: flex; flex-direction: column; gap: 10px; }
.chart-bars .row { display: grid; grid-template-columns: 170px 1fr 50px; gap: 10px; align-items: center; font-size: 13px; }
.chart-bars .track { background: var(--grey-soft); border-radius: 6px; height: 14px; overflow: hidden; }
.chart-bars .fill { height: 100%; border-radius: 6px; background: var(--gold); }
.chart-bars .fill.alt { background: var(--navy-3); }

.summary-strip { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.summary-strip .s { background: var(--grey-soft); border-radius: 9px; padding: 6px 12px; font-size: 13px; }
.summary-strip .s b { font-size: 15px; margin-inline-start: 4px; }

.list { display: flex; flex-direction: column; }
.list-item { display: flex; gap: 12px; padding: 11px 4px; border-bottom: 1px solid #f0f2f6; align-items: flex-start; }
.list-item:last-child { border-bottom: 0; }
.list-item.unread { background: #fffaeb; }
.list-item .grow { flex: 1; min-width: 0; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--gold); margin-top: 7px; flex-shrink: 0; }
.dot.alert { background: var(--red); } .dot.late { background: var(--orange); } .dot.leave { background: var(--blue); }
.dot.read { background: #d5dbe4; }

.diff { font-size: 12px; display: grid; grid-template-columns: auto auto auto; gap: 2px 10px; }
.diff .k { color: var(--muted); }
.diff .b { color: var(--red); text-decoration: line-through; }
.diff .a { color: var(--green); font-weight: 600; }

.selfie { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); cursor: zoom-in; }

/* ---------- modal & toast ---------- */
.modal-backdrop { position: fixed; inset: 0; background: rgba(15, 25, 40, .45); z-index: 1000; display: flex; align-items: flex-start;
  justify-content: center; padding: 40px 16px; overflow-y: auto; }
.modal { background: #fff; border-radius: 16px; width: 100%; max-width: 620px; box-shadow: 0 24px 80px rgba(0,0,0,.3); }
.modal.wide { max-width: 900px; }
.modal-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.modal-body { padding: 18px 20px; }
.modal-foot { padding: 12px 20px; border-top: 1px solid var(--line); display: flex; gap: 8px; justify-content: flex-start; }
.toasts { position: fixed; bottom: 20px; left: 20px; z-index: 2000; display: flex; flex-direction: column; gap: 8px; }
.toast { background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 10px; box-shadow: var(--shadow); max-width: 360px; animation: pop .2s ease; }
.toast.error { background: var(--red); } .toast.success { background: var(--green); }
@keyframes pop { from { transform: translateY(8px); opacity: 0; } to { transform: none; opacity: 1; } }
.info-box { background: var(--teal-soft); border-radius: 10px; padding: 10px 14px; font-size: 13px; color: #6b4d00; }
.warn-box { background: var(--orange-soft); border-radius: 10px; padding: 10px 14px; font-size: 13px; color: #8a520d; }
.kv { display: grid; grid-template-columns: 140px 1fr; gap: 6px 12px; font-size: 13.5px; }
.kv .k { color: var(--muted); }
.radius-label { font-weight: 700; color: var(--teal); }
.leaflet-container { font-family: inherit; }

/* ---------- print (PDF export) ---------- */
@media print {
  .sidebar, .topbar, .filters, .no-print, .toasts { display: none !important; }
  .view { padding: 0; }
  .card { box-shadow: none; padding: 0; }
  body { background: #fff; }
}

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .grid.k5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid.c21, .grid.c2 { grid-template-columns: minmax(0, 1fr); }
}

/* =====================================================================
   APP MODE — phones, tablets and the installed app (set by JS on <html>),
   whatever the screen width: bottom tabs, drawer menu, cards.
   ===================================================================== */
.bottom-tabs, .app-head-logo { display: none; }
.back-to-app { display: block; background: var(--gold); color: #262626 !important; font-weight: 700; text-align: center; border-radius: 9px;
  padding: 8px 10px; margin-bottom: 10px; text-decoration: none !important; }
.sidebar-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.35); z-index: 850; }

html.app-mode body { background: var(--bg); -webkit-tap-highlight-color: transparent; }
html.app-mode .sidebar { position: fixed; right: 0; top: 0; z-index: 900; transform: translateX(100%); transition: transform .2s;
  width: 82vw; max-width: 320px; padding-top: env(safe-area-inset-top); padding-bottom: env(safe-area-inset-bottom); }
html.app-mode .sidebar.open { transform: none; box-shadow: -10px 0 40px rgba(0,0,0,.3); }
html.app-mode .topbar { background: var(--navy-2); color: #fff; border-bottom: 0; backdrop-filter: none;
  padding: calc(10px + env(safe-area-inset-top)) 14px 10px; gap: 10px; }
html.app-mode .top-title { color: #fff; font-size: 17px; }
html.app-mode .app-head-logo { display: block; height: 22px; width: auto; }
html.app-mode .menu-btn { display: none; }
html.app-mode .server-clock { display: none; }
html.app-mode .icon-btn { color: #fff; }
html.app-mode .icon-btn:hover { background: rgba(255,255,255,.1); }
html.app-mode .view { padding: 14px 14px calc(86px + env(safe-area-inset-bottom)); }

/* bottom tab bar */
html.app-mode .bottom-tabs { display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 800; background: #fff;
  border-top: 1px solid var(--line); box-shadow: 0 -4px 18px rgba(0,0,0,.06); padding-bottom: env(safe-area-inset-bottom); }
.bottom-tabs a, .bottom-tabs button { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  height: 62px; color: var(--muted); font: inherit; font-size: 11.5px; font-weight: 600; background: none; border: 0; text-decoration: none;
  position: relative; cursor: pointer; }
.bottom-tabs .ti { font-size: 20px; line-height: 1; filter: grayscale(1); opacity: .7; }
.bottom-tabs .active { color: var(--navy); }
.bottom-tabs .active .ti { filter: none; opacity: 1; }
.bottom-tabs .active::before { content: ""; position: absolute; top: 0; width: 36px; height: 3px; border-radius: 0 0 3px 3px; background: var(--gold); }
.bottom-tabs .tcount { position: absolute; top: 6px; margin-inline-start: 26px; background: var(--red); color: #fff; font-size: 10px; border-radius: 9px;
  min-width: 17px; height: 17px; display: grid; place-items: center; padding: 0 4px; }

/* layout */
html.app-mode .page-head { margin-bottom: 12px; }
html.app-mode .page-head h2 { font-size: 18px; }
html.app-mode .page-head .sub { font-size: 12.5px; }
html.app-mode .page-head .toolbar { width: 100%; }
html.app-mode .page-head .toolbar > * { flex: 1 1 auto; justify-content: center; }
html.app-mode .grid.k4, html.app-mode .grid.k5 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
html.app-mode .grid.c21, html.app-mode .grid.c2 { grid-template-columns: minmax(0, 1fr); }
html.app-mode .grid { gap: 12px; }
html.app-mode .kpi { padding: 12px 14px; }
html.app-mode .kpi .value { font-size: 26px; }
html.app-mode .card { padding: 14px; border-radius: 14px; }
html.app-mode .form-grid { grid-template-columns: minmax(0, 1fr); }
html.app-mode .filters { padding: 10px 12px; gap: 8px; }
html.app-mode .filters label { flex: 1 1 140px; min-width: 0; }
html.app-mode .map { height: 260px; }
html.app-mode .map.tall { height: 300px; }
html.app-mode .report-types { grid-template-columns: repeat(2, minmax(0, 1fr)); }
html.app-mode .chart-bars .row { grid-template-columns: 96px 1fr 40px; font-size: 12px; }
html.app-mode .kv { grid-template-columns: 110px 1fr; }
html.app-mode .btn { min-height: 40px; }
html.app-mode .btn.sm { min-height: 34px; padding: 4px 12px; }
html.app-mode .toasts { left: 10px; right: 10px; bottom: calc(76px + env(safe-area-inset-bottom)); }

/* modals become bottom sheets */
html.app-mode .modal-backdrop { padding: calc(10px + env(safe-area-inset-top)) 0 0; align-items: flex-end; }
html.app-mode .modal { max-width: none; border-radius: 18px 18px 0 0; max-height: calc(100vh - 20px - env(safe-area-inset-top)); overflow-y: auto; }
html.app-mode .modal-head { position: sticky; top: 0; background: #fff; z-index: 2; border-radius: 18px 18px 0 0; }
html.app-mode .modal-head, html.app-mode .modal-body, html.app-mode .modal-foot { padding-left: 14px; padding-right: 14px; }
html.app-mode .modal-foot { flex-wrap: wrap; position: sticky; bottom: 0; background: #fff; padding-bottom: calc(12px + env(safe-area-inset-bottom)); }
html.app-mode .modal-foot .btn { flex: 1 1 auto; justify-content: center; }

/* tables become cards: each row is a card, each cell shows its column name */
html.app-mode .table-wrap { overflow: visible; }
html.app-mode table.cards, html.app-mode table.cards tbody, html.app-mode table.cards tr, html.app-mode table.cards td { display: block; width: 100%; }
html.app-mode table.cards thead { display: none; }
html.app-mode table.cards tr { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 6px 12px; margin-bottom: 10px;
  box-shadow: 0 1px 3px rgba(0,0,0,.04); }
html.app-mode table.cards tr.hidden { display: none; }
html.app-mode table.cards td { display: flex; justify-content: space-between; align-items: center; gap: 12px; border-bottom: 1px solid #f2f1ee;
  padding: 7px 0; text-align: left; min-height: 34px; }
html.app-mode table.cards td:last-child { border-bottom: 0; }
html.app-mode table.cards td::before { content: attr(data-label); color: var(--muted); font-size: 12px; font-weight: 600; text-align: right; flex: 0 0 auto; max-width: 45%; }
html.app-mode table.cards td[data-label=""]::before { display: none; }
html.app-mode table.cards td[data-label=""] { justify-content: flex-start; }
html.app-mode table.cards td:first-child { font-weight: 700; }
html.app-mode table.cards td > * { text-align: left; }
html.app-mode table.cards td .actions, html.app-mode table.cards td.actions { justify-content: flex-start; }
html.app-mode table.cards tr.clickable:hover td { background: none; }
html.app-mode table.cards td:empty { display: none; }
/* the bottom bar is a <nav>: undo the sidebar's link styles */
.bottom-tabs a, .bottom-tabs a:hover, .bottom-tabs a.active { background: none; box-shadow: none; border-radius: 0; padding: 0; margin: 0; text-decoration: none; }
.bottom-tabs a:not(.active), .bottom-tabs button:not(.active) { color: var(--muted); }
.bottom-tabs a.active, .bottom-tabs button.active { color: var(--navy); }
html.app-mode .grid.k5 > :last-child:nth-child(odd) { grid-column: 1 / -1; }

/* line-manager picker */
.lm-list { max-height: 50vh; overflow: auto; border: 1px solid var(--line, #e3e3e3); border-radius: 10px; padding: 4px 10px; }
.lm-row { display: flex; gap: 8px; align-items: flex-start; padding: 7px 0; border-bottom: 1px solid var(--line, #eee); }
.lm-row:last-child { border-bottom: 0; }

/* site boundary editor */
.bnd-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.bnd-tools { display: inline-flex; gap: 6px; align-items: center; flex-wrap: wrap; }
