/* Oryx trial — mix tokens (Fiori + Redwood + Odoo). */
:root {
  --pro-paper: #F5F6F7;
  --pro-card: #FFFFFF;
  --pro-ink: #131E29;
  --pro-muted: #556B82;
  --pro-line: #E5E5E5;
  --pro-line-strong: #D9D9D9;
  --pro-brand: #0B6B5C;
  --pro-info: #0070F2;
  --pro-ok: #256F3A;
  --pro-warn: #E76500;
  --pro-danger: #AA0808;
  --pro-filter: #EFF1F2;
  --pro-hover: #EBF8FF;
  --pro-radius: 8px;
  --pro-radius-input: 4px;
  --pro-shadow: 0 1px 2px rgba(19, 30, 41, .06);
  --pro-control: #0070F2;
  --pro-execute: #0B6B5C;
  --pro-money: #D27700;
  --pro-masters: #6C32A9;
  --pro-people: #5B738B;
  --pro-ok-soft: #E8F5EC;
  --pro-warn-soft: #FFF4E5;
  --pro-danger-soft: #FDECEC;
  --pro-info-soft: #EBF8FF;
  --pro-brand-soft: #E7F3F0;
  --rail: 236px;
  --shell: 52px;
}

* { box-sizing: border-box; }
html, body { margin: 0; background: var(--pro-paper); color: var(--pro-ink); }
body {
  font-family: Inter, "IBM Plex Sans Arabic", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.45;
}
html[dir="rtl"] body { font-family: "IBM Plex Sans Arabic", Inter, Arial, sans-serif; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; }
#app { min-height: 100vh; }
.ic { width: 18px; height: 18px; flex-shrink: 0; }

/* ——— Login ——— */
.login {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(280px, 0.92fr) minmax(0, 1.08fr);
}
.login-l {
  position: relative;
  color: #fff;
  padding: 40px 44px 36px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  background: var(--pro-ink);
}
.login-l::before {
  content: "";
  position: absolute;
  inset: -8%;
  background: url("../assets/photo-formwork.png") center / cover no-repeat;
  opacity: 0.12;
  animation: loginKb 48s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes loginKb {
  0% { transform: scale(1) translate3d(0,0,0); }
  100% { transform: scale(1.08) translate3d(-1.5%, -1%, 0); }
}
.login-l::after {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  right: -120px;
  bottom: -140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(11, 107, 92, 0.28) 0%, transparent 68%);
  pointer-events: none;
}
html[dir="rtl"] .login-l::after {
  right: auto;
  left: -120px;
}
.login-l > * { position: relative; z-index: 1; }
.login-l .word {
  letter-spacing: 0.22em;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 28px;
}
.login-ed {
  letter-spacing: 0.12em;
  font-size: 11px;
  font-weight: 600;
  color: var(--pro-muted);
  text-transform: uppercase;
}
.login-l h1 {
  font-size: 36px;
  font-weight: 700;
  margin: 12px 0 0;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.login-l .trial-line {
  margin-top: 14px;
  font-size: 14px;
  color: #D5DADD;
  max-width: 32ch;
}
.sites {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
}
.sites span {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 0;
  border-radius: 0;
  padding: 0;
  font-size: 13px;
  color: #D5DADD;
  background: none;
}
.sites span::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: transparent;
  border: 1px solid #5B738B;
  flex-shrink: 0;
}
.sites span.on {
  color: #fff;
  background: none;
  outline: none;
  font-weight: 600;
}
.sites span.on::before {
  background: var(--pro-brand);
  border-color: var(--pro-brand);
}
.login-r {
  background: var(--pro-card);
  padding: 56px 64px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.login-lockup {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
}
.login-mark, .login-lockup-img {
  height: 56px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
  flex-shrink: 0;
  background: transparent;
  margin: 0;
}
.login-lockup .word {
  letter-spacing: 0.22em;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
}
.login-r .kicker { margin-bottom: 8px; }
.login-r h2 {
  font-size: 28px;
  font-weight: 700;
  margin: 0 0 20px;
  letter-spacing: -0.02em;
}
.login-r .hint { color: var(--pro-muted); margin: 14px 0 0; font-size: 13px; }
.trial-note {
  color: var(--pro-muted);
  font-size: 13px;
  font-weight: 500;
  margin: 14px 0 0;
}
label { display: block; font-size: 13px; color: var(--pro-muted); margin: 12px 0 6px; font-weight: 500; }
input, select, textarea {
  width: 100%;
  height: 36px;
  padding: 0 10px;
  border: 1px solid var(--pro-line-strong);
  border-radius: var(--pro-radius-input);
  background: #fff;
}
textarea { height: auto; min-height: 72px; padding: 8px 10px; resize: vertical; }
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--pro-control);
  box-shadow: 0 0 0 1px var(--pro-control);
}
.primary {
  margin-top: 18px;
  width: 100%;
  height: 36px;
  background: var(--pro-execute);
  color: #fff;
  border: 0;
  border-radius: var(--pro-radius-input);
  padding: 0 16px;
  font-weight: 600;
  font-size: 14px;
}
.primary:hover { background: #08574b; }
.primary.inline { width: auto; margin-top: 0; }
.err { color: var(--pro-danger); font-size: 13px; min-height: 18px; margin-top: 8px; }
.back-mkt { display: inline-block; margin-top: 18px; font-size: 13px; color: var(--pro-brand); font-weight: 600; }

/* ——— Shell ——— */
.app-shell { min-height: 100vh; display: flex; flex-direction: column; background: var(--pro-paper); }
.shell-bar {
  height: var(--shell);
  background: var(--pro-card);
  border-bottom: 1px solid var(--pro-line-strong);
  box-shadow: none;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 16px 0 12px;
  position: sticky;
  top: 0;
  z-index: 20;
}
.shell-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  min-width: 0;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}
.shell-mark {
  width: 44px;
  height: 44px;
  object-fit: contain;
  flex-shrink: 0;
}
.word {
  font-weight: 700;
  letter-spacing: 0.22em;
  font-size: 16px;
  white-space: nowrap;
}
.shell-search {
  flex: 1;
  max-width: 420px;
  height: 36px;
  padding: 0 12px;
  border: 1px solid var(--pro-line-strong);
  border-radius: var(--pro-radius-input);
  background: #fff;
  font-size: 13px;
}
.shell-search:focus { background: #fff; }
.shell-right { margin-inline-start: auto; display: flex; gap: 8px; align-items: center; }
.ghost {
  background: var(--pro-card);
  border: 1px solid var(--pro-line-strong);
  border-radius: var(--pro-radius-input);
  height: 36px;
  padding: 0 12px;
  color: var(--pro-ink);
  font-weight: 600;
  font-size: 13px;
}
.owner-pick { width: auto; height: 36px; padding: 0 10px; font-size: 12px; }
.trial-pill {
  background: var(--pro-filter);
  color: var(--pro-brand);
  border-radius: var(--pro-radius-input);
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.trial-pill.warn {
  background: var(--pro-warn-soft);
  color: var(--pro-warn);
}
.user-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 10px 0 4px;
  border: 1px solid var(--pro-line-strong);
  border-radius: var(--pro-radius-input);
  font-size: 12px;
  font-weight: 600;
}
.user-ava {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--pro-brand-soft);
  color: var(--pro-brand);
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 700;
}

/* ——— Body: rail + work ——— */
.shell-body { display: flex; flex: 1; min-height: 0; }
.rail {
  width: var(--rail);
  flex-shrink: 0;
  background: var(--pro-ink);
  border-inline-end: 0;
  padding: 12px 10px 24px;
  position: sticky;
  top: var(--shell);
  height: calc(100vh - var(--shell));
  overflow: auto;
}
.rail-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  background: none;
  border: 0;
  border-radius: var(--pro-radius);
  min-height: 38px;
  padding: 8px 12px;
  color: #D5DADD;
  font-size: 13.5px;
  text-align: start;
}
.rail-item:hover { background: rgba(255, 255, 255, 0.06); color: #fff; }
.rail-item.on {
  background: var(--pro-brand);
  color: #fff;
  font-weight: 600;
}
.rail-group {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #5B738B;
  padding: 14px 12px 4px;
  font-weight: 600;
}
.rail-lab { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.work { flex: 1; min-width: 0; background: var(--pro-paper); }
.page-wrap { max-width: 1180px; margin: 0 auto; padding: 24px 28px 96px; }

.kicker {
  color: var(--pro-muted);
  font-size: 11px;
  letter-spacing: 0.12em;
  font-weight: 600;
  text-transform: uppercase;
}
h1.page {
  font-size: 28px;
  font-weight: 700;
  margin: 4px 0 6px;
  letter-spacing: -0.02em;
}
h1.greet {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 4px 0 6px;
}
.sub { color: var(--pro-muted); margin: 0 0 20px; font-size: 14px; }
.muted { color: var(--pro-muted); }

/* KPIs */
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 0 0 28px; }
.kpi {
  background: var(--pro-card);
  border: 1px solid var(--pro-line);
  border-radius: var(--pro-radius);
  padding: 16px 18px;
  box-shadow: none;
  min-height: 104px;
}
.kpi span {
  color: var(--pro-muted);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
}
.kpi b {
  display: block;
  font-size: 28px;
  margin-top: 8px;
  font-weight: 700;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

/* Tiles — Odoo left edge on launchpad only */
.tile-block { margin-bottom: 22px; }
.tile-block h4 {
  margin: 0 0 10px;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--pro-muted);
  font-weight: 600;
}
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.tile {
  background: var(--pro-card);
  border: 1px solid var(--pro-line);
  border-radius: var(--pro-radius);
  padding: 16px 18px;
  text-align: start;
  border-inline-start: 4px solid var(--pro-brand);
  min-height: 108px;
  box-shadow: none;
}
.tile:hover { background: var(--pro-hover); }
.tile-today { border-inline-start-color: var(--pro-brand); }
.tile-yards { border-inline-start-color: var(--pro-info); }
.tile-post { border-inline-start-color: var(--pro-money); }
.tile-master { border-inline-start-color: var(--pro-masters); }
.tile-people { border-inline-start-color: var(--pro-people); }
.tile-system { border-inline-start-color: #334155; }
.tile small { color: var(--pro-muted); font-size: 11px; letter-spacing: 0.08em; font-weight: 600; }
.tile h3 { margin: 8px 0 0; font-size: 16px; font-weight: 700; }
.tile p { margin: 6px 0 0; font-size: 12px; color: var(--pro-muted); }

/* Operation cards */
.ops { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 8px 0 22px; }
.op {
  background: var(--pro-card);
  border: 1px solid var(--pro-line);
  border-radius: var(--pro-radius);
  padding: 16px 18px;
  text-align: start;
  box-shadow: none;
}
.op:hover { background: var(--pro-hover); }
.op.sel { border-color: var(--pro-brand); background: var(--pro-hover); }
.op b { display: block; font-size: 14px; }
.badge {
  display: inline-block;
  margin-top: 10px;
  background: var(--pro-filter);
  color: var(--pro-muted);
  border-radius: var(--pro-radius-input);
  padding: 3px 8px;
  font-size: 12px;
  font-weight: 600;
}
.op.sel .badge { background: var(--pro-brand-soft); color: var(--pro-brand); }

/* Employee action cards */
.actions { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.action-card {
  background: var(--pro-card);
  border: 1px solid var(--pro-line);
  border-radius: var(--pro-radius);
  padding: 28px 26px;
  text-align: start;
  min-height: 168px;
  box-shadow: none;
}
.action-card:hover { background: var(--pro-hover); }
.action-card h3 { margin: 12px 0 6px; font-size: 20px; font-weight: 700; }
.action-card p { margin: 0; color: var(--pro-muted); font-size: 13px; }

/* Tables */
.toolbar { display: flex; gap: 10px; margin: 0 0 14px; align-items: center; flex-wrap: wrap; }
.search {
  flex: 1;
  min-width: 180px;
  height: 36px;
  padding: 0 12px;
  border: 1px solid var(--pro-line-strong);
  border-radius: var(--pro-radius-input);
}
.table-wrap {
  overflow: auto;
  background: var(--pro-card);
  border: 1px solid var(--pro-line);
  border-radius: var(--pro-radius);
  max-height: calc(100vh - 280px);
  box-shadow: none;
}
.table { width: 100%; border-collapse: collapse; }
.table th, .table td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--pro-line);
  text-align: start;
  font-size: 13px;
  white-space: nowrap;
}
.table th {
  color: var(--pro-muted);
  font-weight: 600;
  background: var(--pro-filter);
  position: sticky;
  top: 0;
  z-index: 1;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.table tbody tr:hover { background: var(--pro-hover); }
.table tbody tr.clickable { cursor: pointer; }
.table .empty { color: var(--pro-muted); padding: 28px 14px; text-align: center; }
.act {
  background: var(--pro-execute);
  color: #fff;
  border: 0;
  border-radius: var(--pro-radius-input);
  height: 28px;
  padding: 0 12px;
  font-weight: 600;
  font-size: 12px;
}
.act.danger { background: var(--pro-danger); }
.act-ghost {
  background: #fff;
  color: var(--pro-ink);
  border: 1px solid var(--pro-line-strong);
  border-radius: var(--pro-radius-input);
  height: 28px;
  padding: 0 12px;
  font-weight: 600;
  font-size: 12px;
}
.row-acts { display: flex; gap: 6px; }

.st {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--pro-radius-input);
  letter-spacing: 0.04em;
}
.st-pending { background: var(--pro-warn-soft); color: var(--pro-warn); }
.st-approved { background: var(--pro-ok-soft); color: var(--pro-ok); }
.st-rejected { background: var(--pro-danger-soft); color: var(--pro-danger); }
.st-draft { background: var(--pro-filter); color: var(--pro-muted); }
.st-active { background: var(--pro-ok-soft); color: var(--pro-ok); }
.st-hold { background: var(--pro-warn-soft); color: var(--pro-warn); }
.st-closing { background: var(--pro-info-soft); color: var(--pro-info); }
.role { font-size: 11px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--pro-muted); }

/* Chips */
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 14px; }
.chip {
  background: #fff;
  border: 1px solid var(--pro-line-strong);
  border-radius: var(--pro-radius-input);
  height: 32px;
  padding: 0 12px;
  font-size: 12px;
  font-weight: 600;
}
.chip.on {
  background: var(--pro-filter);
  border-color: var(--pro-brand);
  color: var(--pro-brand);
}

/* Object page */
.obj-head { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 18px; }
.obj-back {
  background: #fff;
  border: 1px solid var(--pro-line-strong);
  border-radius: var(--pro-radius-input);
  height: 36px;
  padding: 0 12px;
  font-size: 13px;
  flex-shrink: 0;
  font-weight: 600;
}
.obj-head h1 { margin: 0 0 6px; font-size: 28px; font-weight: 700; letter-spacing: -0.02em; }
.obj-meta { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}
.fact {
  background: var(--pro-card);
  border: 1px solid var(--pro-line);
  border-radius: var(--pro-radius);
  padding: 12px 14px;
  box-shadow: none;
}
.fact span {
  display: block;
  color: var(--pro-muted);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
}
.fact b { display: block; margin-top: 6px; font-size: 15px; font-weight: 700; }
.tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--pro-line);
  margin-bottom: 16px;
}
.tab {
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--pro-muted);
  margin-bottom: -1px;
}
.tab.on { color: var(--pro-brand); border-bottom-color: var(--pro-brand); }
.panel {
  background: var(--pro-card);
  border: 1px solid var(--pro-line);
  border-radius: var(--pro-radius);
  padding: 18px;
  box-shadow: none;
}
.tl { list-style: none; margin: 0; padding: 0; }
.tl li {
  position: relative;
  padding: 0 0 18px 22px;
  border-inline-start: 2px solid var(--pro-line);
  margin-inline-start: 7px;
}
.tl li:last-child { border: 0; padding-bottom: 0; }
.tl li::before {
  content: "";
  position: absolute;
  inset-inline-start: -6px;
  top: 4px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--pro-line);
}
.tl li.done::before { background: var(--pro-brand); }
.tl li.wait::before { background: #fff; outline: 2px solid var(--pro-line); }
.tl li.bad::before { background: var(--pro-danger); }
.tl strong { display: block; font-size: 13px; }
.tl em { font-style: normal; color: var(--pro-muted); font-size: 12px; }

/* Post guided */
.types { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin: 0 0 22px; }
.type-card {
  background: var(--pro-card);
  border: 1px solid var(--pro-line);
  border-radius: var(--pro-radius);
  padding: 16px 14px;
  text-align: start;
  min-height: 88px;
  box-shadow: none;
}
.type-card small { color: var(--pro-muted); font-size: 11px; letter-spacing: 0.08em; }
.type-card b { display: block; margin-top: 8px; font-size: 14px; }
.type-card.on { border-color: var(--pro-brand); background: var(--pro-hover); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.form-grid .full { grid-column: 1 / -1; }
.field span { display: block; font-size: 12px; color: var(--pro-muted); margin-bottom: 6px; font-weight: 600; }
.post-actions { margin-top: 20px; display: flex; gap: 10px; }

/* Yards / partners cards */
.card-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.info-card {
  background: var(--pro-card);
  border: 1px solid var(--pro-line);
  border-radius: var(--pro-radius);
  padding: 18px;
  text-align: start;
  box-shadow: none;
}
.info-card h3 { margin: 0 0 6px; font-size: 16px; }
.info-card p { margin: 0; color: var(--pro-muted); font-size: 13px; }
.info-card .kpi-mini { font-size: 22px; font-weight: 700; margin-top: 12px; letter-spacing: -0.03em; }

/* Toast */
.toast {
  position: fixed;
  bottom: 24px;
  inset-inline-start: 50%;
  transform: translateX(-50%) translateY(12px);
  background: var(--pro-ink);
  color: #fff;
  padding: 10px 16px;
  border-radius: var(--pro-radius-input);
  font-size: 13px;
  opacity: 0;
  pointer-events: none;
  z-index: 80;
  transition: opacity .2s, transform .2s;
  max-width: min(420px, calc(100% - 32px));
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* Trial overlay */
.trial-overlay {
  position: fixed;
  inset: 0;
  background: rgba(19, 30, 41, 0.55);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 24px;
}
.trial-overlay.show { display: flex; }
.trial-card {
  background: #fff;
  padding: 36px 32px;
  border-radius: var(--pro-radius);
  max-width: 440px;
  width: 100%;
  text-align: center;
  box-shadow: none;
  border: 1px solid var(--pro-line);
}
.trial-card h2 { margin: 0 0 8px; font-size: 22px; font-weight: 700; letter-spacing: -0.02em; }
.trial-card p { color: var(--pro-muted); margin: 0 0 22px; }
.trial-card .btns { display: flex; flex-direction: column; gap: 8px; }
.trial-card .primary { margin-top: 0; }
.trial-card a.ghost {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  text-align: center;
  font-weight: 600;
}

/* Bottom tabs + more */
.tabbar { display: none; }
.more-sheet {
  display: none;
  position: fixed;
  inset: 0 0 56px 0;
  background: rgba(19, 30, 41, 0.4);
  z-index: 30;
}
.more-sheet.open { display: block; }
.more-panel {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fff;
  border-radius: 8px 8px 0 0;
  padding: 12px 12px 20px;
  max-height: 70vh;
  overflow: auto;
}
.more-panel .rail-item { border-radius: var(--pro-radius); color: var(--pro-ink); }
.more-panel .rail-item:hover { background: var(--pro-hover); color: var(--pro-ink); }
.more-panel .rail-item.on { background: var(--pro-brand); color: #fff; }

.min-edit { width: 88px; height: 32px; padding: 0 8px; }

@media (max-width: 1100px) {
  :root { --rail: 64px; }
  .rail-lab, .rail-group { display: none; }
  .rail-item { justify-content: center; padding: 10px 8px; }
  .kpis, .tiles, .ops { grid-template-columns: repeat(2, 1fr); }
  .types { grid-template-columns: repeat(3, 1fr); }
  .facts { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .login { grid-template-columns: 1fr; }
  .login-l { min-height: 220px; padding: 28px; }
  .login-r { padding: 32px 24px 48px; }
  .rail { display: none; }
  .tabbar {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 56px;
    background: #fff;
    border-top: 1px solid var(--pro-line-strong);
    z-index: 40;
    padding: 0 4px;
  }
  .tabbar button {
    flex: 1;
    background: none;
    border: 0;
    color: var(--pro-muted);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    font-size: 10px;
    font-weight: 600;
  }
  .tabbar button.on { color: var(--pro-brand); }
  .tabbar .ic { width: 20px; height: 20px; }
  .page-wrap { padding: 18px 16px 88px; }
  .shell-search { max-width: none; }
  .word { display: none; }
  .login-l .word, .login-lockup .word { display: block; }
  .actions, .card-grid, .form-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .kpis, .tiles, .ops, .types { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr; }
}

.spark-wrap {
  background: var(--pro-card);
  border: 1px solid var(--pro-line);
  border-radius: var(--pro-radius);
  padding: 16px 18px 8px;
  margin-bottom: 22px;
}
.spark-wrap h4 {
  margin: 0 0 8px;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--pro-muted);
  font-weight: 600;
}
.spark { width: 100%; height: 128px; display: block; }
.print-slip {
  background: #fff;
  border: 1px solid var(--pro-line);
  border-radius: var(--pro-radius);
  padding: 28px 32px;
  max-width: 640px;
}
.print-slip h2 { margin: 0 0 4px; font-size: 20px; }
.print-slip .slip-meta { color: var(--pro-muted); font-size: 13px; margin-bottom: 18px; }
@media print {
  .shell-bar, .rail, .tabbar, .toast, .trial-overlay, .more-sheet, .toolbar, .chips { display: none !important; }
  .app-shell, .shell-body, .work, .page-wrap { display: block !important; background: #fff !important; }
  .page-wrap { padding: 0 !important; max-width: none; }
  .print-slip { border: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .login-l::before { animation: none; }
}
