/* Buttons ------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out), background var(--dur-fast);
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--teal); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--teal-dark); box-shadow: var(--shadow-md); }
.btn-ghost { background: transparent; color: var(--text-secondary); border-color: var(--porcelain-line); }
.btn-ghost:hover { background: var(--porcelain-dim); color: var(--text-primary); }
.btn-block { width: 100%; justify-content: center; }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }
.btn-icon { padding: 10px; border-radius: var(--r-pill); }

/* Inputs ---------------------------------------------------------------- */
.field { display: flex; flex-direction: column; gap: 6px; text-align: left; min-width: 0; }
.field label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.field input, .field select, .field textarea {
  width: 100%;
  padding: 13px 16px;
  border-radius: var(--r-md);
  border: 1.5px solid var(--porcelain-line);
  background: var(--surface);
  color: var(--text-primary);
  font-size: 15px;
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast);
}
.field textarea { resize: vertical; min-height: 64px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--teal); box-shadow: var(--shadow-focus); }
.field input::placeholder, .field textarea::placeholder { color: var(--text-tertiary); }
.field-error input { border-color: var(--status-debt); }
.field-error .hint { color: var(--status-debt); }
.hint { font-size: 12.5px; color: var(--text-tertiary); }

/* Tooth formula (FDI chart) ------------------------------------------------ */
.tooth-chart {
  margin-top: 8px;
  background: var(--porcelain);
  border: 1.5px solid var(--porcelain-line);
  border-radius: var(--r-md);
  padding: 10px;
}
/* The gap between jaws doubles as the shared centerline both rows'
   numbers sit against — like the horizontal rule on a printed dental
   chart, just without the "зубная формула" caption (the popup title
   already says as much). */
.tooth-chart__group + .tooth-chart__group { margin-top: 6px; padding-top: 6px; border-top: 1px solid var(--porcelain-line); }
/* One scrollbar for the whole jaw — the marker strip and the tooth row
   below it scroll together as a single unit, never independently. */
.tooth-chart__group { overflow-x: auto; padding-bottom: 4px; }
/* Small marker strip above each jaw row — lights up amber, independent of
   the active tab, for whichever teeth are included in the Мост selection.
   Always visible so the bridge picks stay legible even while on "Зубы". */
.tooth-chart__marks {
  display: flex;
  gap: 3px;
  margin-bottom: 3px;
  width: max-content;
}
.tooth-chart__mark {
  flex-shrink: 0;
  width: 27px; height: 6px;
  border-radius: 3px;
  background: var(--porcelain-line);
}
.tooth-chart__mark.active { background: var(--amber); }
.tooth-chart__mark--pontic { background: var(--amber-tint); }
.tooth-chart__row {
  display: flex;
  gap: 2px;
  width: max-content;
}
/* Lower jaw reuses the exact same tooth-shape paths as the upper jaw, just
   flipped vertically — so the biting edge of both rows faces the shared
   numbers strip between them, same as a printed dental chart. */
.tooth-chart__row--lower .tooth-shape-svg { transform: scaleY(-1); }
.tooth-chart__tooth {
  flex-shrink: 0;
  width: 26px; height: 34px;
  display: grid; place-items: center;
  border: none;
  background: none;
  padding: 0;
  cursor: pointer;
  /* Drives the shape's fill below — swapped per state, same idea as the
     old background-color toggle, just applied to an SVG path instead. */
  --tooth-fill: var(--surface);
}
.tooth-shape-svg { width: 100%; height: 100%; display: block; }
.tooth-shape { fill: var(--tooth-fill); stroke: var(--text-tertiary); stroke-width: 1.3; stroke-linejoin: round; transition: fill var(--dur-fast); }
.tooth-chart__tooth:hover:not(:disabled) .tooth-shape { stroke: var(--teal); }
.tooth-chart__tooth.active { --tooth-fill: var(--teal); }
.tooth-chart__tooth.active .tooth-shape { stroke: var(--teal-dark); }
.tooth-chart__tooth--mid { margin-left: 8px; }
/* Within a bridge span, the two outer (abutment/опора) teeth get the
   full-strength color; whatever's picked between them (pontics) gets the
   lighter tint — so a real bridge's actual anchor points stay visually
   distinct from the teeth it just spans over. Only shown while the Мост
   tab is active; the marker strip above is what stays visible on both. */
.tooth-chart__tooth--bridge-anchor { --tooth-fill: var(--amber-dark); }
.tooth-chart__tooth--bridge-anchor .tooth-shape { stroke: var(--amber-dark); }
.tooth-chart__tooth--bridge-pick { --tooth-fill: var(--amber-tint); }
.tooth-chart__tooth--bridge-pick .tooth-shape { stroke: var(--amber); }
/* A tooth picked on Зубы still shows through while you're on Мост — a
   light teal ghost, so switching tabs never hides where the teeth picks
   were. */
.tooth-chart__tooth--teeth-ghost { --tooth-fill: var(--teal-tint); }
.tooth-chart__tooth--teeth-ghost .tooth-shape { stroke: var(--teal); }
/* Already marked "Зубы" on another line in the same order — can't be
   double-booked here, so the button is disabled and dimmed. */
.tooth-chart__tooth--taken { --tooth-fill: var(--porcelain-line); cursor: not-allowed; opacity: 0.65; }
.tooth-chart__tooth--taken .tooth-shape { stroke: var(--porcelain-line); }
/* Numbers sit outside the shapes, nearest the shared centerline between
   the two jaw rows — same placement as a printed "зубная формула" chart. */
.tooth-chart__numbers { display: flex; gap: 2px; width: max-content; }
.tooth-chart__number {
  flex-shrink: 0;
  width: 26px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--text-tertiary);
}
.tooth-chart__number.tooth-chart__tooth--mid { margin-left: 8px; }

/* Bridge type — single-select pill group, shown only while "Мост" is the
   active tab. */
.bridge-type-group { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.bridge-type-group__btn {
  padding: 8px 14px;
  border-radius: var(--r-pill);
  border: 1.5px solid var(--porcelain-line);
  background: var(--surface);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.bridge-type-group__btn:hover { border-color: var(--amber); color: var(--text-primary); }
.bridge-type-group__btn.active { background: var(--amber); border-color: var(--amber); color: #fff; }

/* Tag checklist (multi-select chips, e.g. CAD/CAM materials) -------------- */
.tag-checklist { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.tag-checklist__item {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: var(--r-pill);
  border: 1.5px solid var(--porcelain-line);
  background: var(--surface);
  color: var(--text-secondary);
  font-size: 12.5px;
  cursor: pointer;
  user-select: none;
}
.tag-checklist__item input { position: absolute; opacity: 0; pointer-events: none; }
.tag-checklist__item:hover { border-color: var(--teal); color: var(--text-primary); }
.tag-checklist__item:has(input:checked) { background: var(--teal); border-color: var(--teal); color: #fff; font-weight: 600; }

/* Collapsible CAD/CAM technical-details block ----------------------------- */
.cad-cam-details {
  margin-top: 4px;
  border: 1.5px solid var(--porcelain-line);
  border-radius: var(--r-md);
  background: var(--porcelain);
  padding: 12px 14px;
}
.cad-cam-details summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 13px;
  color: var(--text-primary);
  list-style: none;
}
.cad-cam-details summary::-webkit-details-marker { display: none; }
.cad-cam-details summary::before {
  content: '▸';
  display: inline-block;
  margin-right: 6px;
  color: var(--text-secondary);
  transition: transform var(--dur-fast) var(--ease-out);
}
.cad-cam-details[open] summary::before { transform: rotate(90deg); }
.cad-cam-details__body { margin-top: 12px; display: flex; flex-direction: column; gap: 14px; }

/* Face shape (single-select) ------------------------------------------- */
.face-shape { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.face-shape__btn {
  flex: 1;
  min-width: 72px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 12px 8px;
  border: 1.5px solid var(--porcelain-line);
  border-radius: var(--r-md);
  background: var(--surface);
  color: var(--text-secondary);
  cursor: pointer;
}
.face-shape__btn:hover { border-color: var(--teal); color: var(--text-primary); }
.face-shape__btn.active { background: var(--teal); border-color: var(--teal); color: #fff; }
.face-shape__symbol { font-size: 22px; line-height: 1; }
.face-shape__label { font-size: 11px; }

/* Shared "card" look for anything that groups a service with its own
   tooth-formula triggers — an additional-service row (select/qty + its own
   "Формула зубов"/"Мост") and the main service's own formula/bridge block
   inside the "Услуга" field both use it, so the two read as the same kind
   of self-contained unit instead of one looking bare and the other boxed. */
.tooth-card { display: flex; flex-direction: column; gap: 6px; padding: 10px 12px; border: 1px solid var(--porcelain-line); border-radius: var(--r-md); background: var(--porcelain-dim); }

/* Multi-select rows (e.g. additional services) --------------------------- */
.multi-select-rows { display: flex; flex-direction: column; gap: 12px; }
.multi-select-row-wrap { display: flex; flex-direction: column; gap: 6px; }
.multi-select-row { display: flex; gap: 6px; }
.multi-select-row select { width: 100%; min-width: 0; flex: 1; }
.multi-select-row .multi-select-row__qty { width: 56px; flex: none; text-align: center; }
.multi-select-row .multi-select-row__qty:disabled { opacity: 0.5; }
.row-tooth-block { display: flex; flex-direction: column; gap: 3px; margin-top: 6px; }
.row-tooth-block__label {
  font-size: 10.5px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.field-add-btn {
  align-self: flex-start;
  margin-top: 8px;
  background: none;
  border: none;
  padding: 2px 0;
  color: var(--teal);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.field-add-btn:hover { color: var(--teal-dark); }
.field-add-btn:disabled { color: var(--text-tertiary); cursor: not-allowed; }

/* Tooth formula trigger (chart itself lives in a popup) ------------------- */
.tooth-formula-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 16px;
  border: 1.5px solid var(--porcelain-line);
  border-radius: var(--r-md);
  background: var(--porcelain);
}
.tooth-formula-trigger__text { font-size: 14px; color: var(--text-primary); overflow-wrap: anywhere; }
.tooth-formula-trigger .field-add-btn { margin-top: 0; flex-shrink: 0; }
.tooth-formula-trigger--compact { padding: 8px 12px; }
.tooth-formula-trigger--compact .tooth-formula-trigger__text { font-size: 13px; }

/* Mini tooth-pick preview (teal = Зубы, amber = Мост) --------------------- */
.tooth-chips { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.tooth-chips__chip {
  width: 20px; height: 20px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: var(--r-sm);
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 600;
  color: #fff;
  background: var(--teal);
}
.tooth-chips__chip--bridge { background: var(--amber); }
.tooth-chips__empty { font-size: 12px; color: var(--text-tertiary); }
/* Stands in for a dedicated trigger row (e.g. under "Услуга") — clicking
   the chips themselves reopens the tooth-formula popup. */
.tooth-chips--clickable { cursor: pointer; border-radius: var(--r-sm); }
.tooth-chips--clickable:hover .tooth-chips__chip { filter: brightness(1.1); }
.tooth-chips--clickable:hover .tooth-chips__empty { color: var(--teal); text-decoration: underline; }

/* Card -------------------------------------------------------------------- */
.card {
  background: var(--surface);
  border: 1px solid var(--porcelain-line);
  border-radius: var(--r-lg);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

/* Status pill — "shade tab" motif -------------------------------------- */
.tab-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px 5px 8px;
  border-radius: var(--r-tab);
  font-size: 12.5px;
  font-weight: 600;
}
.tab-badge::before {
  content: "";
  width: 7px; height: 14px;
  border-radius: 2px 2px 5px 5px;
  background: currentColor;
}
.tab-waiting { background: var(--status-waiting-bg); color: var(--status-waiting); }
.tab-progress { background: var(--status-progress-bg); color: var(--status-progress); }
.tab-ready { background: var(--status-ready-bg); color: var(--status-ready); }
.tab-rework { background: var(--status-rework-bg); color: var(--status-rework); }
.tab-debt { background: var(--status-debt-bg); color: var(--status-debt); }

/* Stat card ------------------------------------------------------------- */
.stat-card {
  background: var(--surface);
  border: 1px solid var(--porcelain-line);
  border-radius: var(--r-lg);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}
.stat-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}
.stat-card__icon {
  width: 30px; height: 30px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.stat-card__value {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1;
}
.stat-card__sub { font-size: 13px; color: var(--text-secondary); }
.stat-card__bar {
  height: 4px;
  border-radius: var(--r-pill);
  background: var(--porcelain-dim);
  overflow: hidden;
  margin-top: 2px;
}
.stat-card__bar > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  transform-origin: left;
  animation: growBar var(--dur-slow) var(--ease-out) both;
}
@keyframes growBar { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* Segmented stage progress ------------------------------------------------ */
.stage-progress { display: flex; gap: 3px; align-items: center; }
.stage-progress span {
  flex: 1;
  height: 6px;
  border-radius: 3px;
  background: var(--porcelain-dim);
}
.stage-progress span.filled { background: var(--teal); }

/* Skip link ---------------------------------------------------------------- */
.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--ink); color: var(--text-on-dark);
  padding: 10px 16px; border-radius: var(--r-sm); z-index: 999;
}
.skip-link:focus { left: 12px; top: 12px; }

/* Dropdown menu ------------------------------------------------------------ */
.menu {
  position: absolute;
  min-width: 190px;
  background: var(--surface);
  border: 1px solid var(--porcelain-line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-lg);
  padding: 6px;
  z-index: 60;
  transform-origin: top right;
  animation: menuIn var(--dur-fast) var(--ease-out);
}
@keyframes menuIn {
  from { opacity: 0; transform: scale(0.96) translateY(-4px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
.menu button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 9px 12px;
  border: none;
  background: transparent;
  border-radius: var(--r-sm);
  cursor: pointer;
  font-size: 13.5px;
  color: var(--text-primary);
  text-align: left;
}
.menu button:hover, .menu button[aria-selected="true"] { background: var(--porcelain-dim); }
.menu button .flag { font-size: 15px; }

/* Notification bell ------------------------------------------------------- */
.topbar__bell .badge {
  position: absolute;
  top: -3px; right: -3px;
  min-width: 17px; height: 17px;
  padding: 0 4px;
  border-radius: var(--r-pill);
  background: var(--status-debt);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--surface);
}
.topbar__bell .badge[hidden] { display: none; }
.notif-menu { width: 340px; max-width: calc(100vw - 32px); padding: 0; overflow: hidden; }
.notif-menu__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 14px;
  border-bottom: 1px solid var(--porcelain-dim);
  font-size: 13.5px; font-weight: 700;
}
.notif-menu__mark-all {
  border: none; background: transparent;
  color: var(--teal); font-size: 12px; font-weight: 600;
  cursor: pointer; padding: 4px;
}
.notif-menu__mark-all:hover { text-decoration: underline; }
.notif-menu__list { max-height: 360px; overflow-y: auto; padding: 6px; }
.notif-menu__empty { padding: 28px 16px; text-align: center; color: var(--text-tertiary); font-size: 13px; }
.notif-row {
  display: flex; align-items: flex-start; gap: 10px;
  width: 100%;
  padding: 10px;
  border: none; background: transparent;
  border-radius: var(--r-sm);
  cursor: pointer;
  text-align: left;
}
.notif-row:hover { background: var(--porcelain-dim); }
.notif-row__dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  margin-top: 6px;
  flex-shrink: 0;
  background: transparent;
}
.notif-row.unread .notif-row__dot { background: var(--teal); }
.notif-row__body { flex: 1; min-width: 0; }
.notif-row__msg { font-size: 13px; line-height: 1.4; color: var(--text-primary); }
.notif-row.unread .notif-row__msg { font-weight: 600; }
.notif-row__time { font-size: 11.5px; color: var(--text-tertiary); margin-top: 3px; }

/* Modal ------------------------------------------------------------------- */
.modal-scrim {
  position: fixed; inset: 0;
  background: rgba(18,24,27,0.5);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  z-index: 100;
  animation: viewFadeIn var(--dur-fast) var(--ease-out);
}
.modal-card {
  background: var(--surface);
  border-radius: var(--r-lg);
  padding: 26px;
  width: 100%;
  max-width: 440px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  animation: modalIn var(--dur-base) var(--ease-out);
}
@keyframes modalIn {
  from { opacity: 0; transform: scale(0.96) translateY(8px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
.modal-card__head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 20px;
}
.modal-card__head h3 { font-size: 19px; }
.modal-card__close {
  width: 32px; height: 32px;
  border-radius: 50%;
  display: grid; place-items: center;
  border: none; background: var(--porcelain-dim);
  color: var(--text-secondary);
  cursor: pointer;
}
.modal-form { display: flex; flex-direction: column; gap: 14px; }
.modal-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.modal-form__actions { display: flex; gap: 10px; margin-top: 6px; }
.modal-form__actions .btn { flex: 1; }

/* Person card (doctors, workers…) ------------------------------------------ */
.person-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.person-card { display: flex; flex-direction: column; gap: 12px; }
.person-card__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.person-card__id { display: flex; gap: 12px; align-items: center; }
.person-card__avatar {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--teal); color: #fff;
  display: grid; place-items: center;
  font-weight: 700; font-size: 15px; flex-shrink: 0;
}
.person-card__name { font-weight: 700; font-size: 14.5px; }
.person-card__sub { font-size: 12.5px; color: var(--text-tertiary); margin-top: 2px; }
.person-card__actions { display: flex; gap: 4px; }
.person-card__actions button {
  width: 30px; height: 30px; border-radius: 8px;
  border: none; background: transparent; color: var(--text-tertiary);
  display: grid; place-items: center; cursor: pointer;
}
.person-card__actions button:hover { background: var(--porcelain-dim); color: var(--text-primary); }
.person-card__actions button.danger:hover { background: var(--status-debt-bg); color: var(--status-debt); }
.person-card__phone { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-secondary); font-family: var(--font-mono); }
.person-card__stats {
  display: flex; justify-content: space-between;
  padding-top: 12px; border-top: 1px solid var(--porcelain-dim);
}
.person-card__stat { text-align: left; }
.person-card__stat .n { font-family: var(--font-mono); font-weight: 700; font-size: 16px; }
.person-card__stat .n.debt { color: var(--status-debt); }
.person-card__stat .l { font-size: 11px; color: var(--text-tertiary); text-transform: uppercase; letter-spacing: 0.04em; }

.toolbar {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin-bottom: 18px;
}
.toolbar__search {
  flex: 1; min-width: 200px;
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px;
  border-radius: var(--r-pill);
  background: var(--surface);
  border: 1px solid var(--porcelain-line);
  color: var(--text-tertiary);
}
.toolbar__search input {
  border: none; outline: none; background: transparent;
  flex: 1; font-size: 13.5px; color: var(--text-primary);
}
.toolbar__sort {
  display: flex; gap: 4px; background: var(--porcelain-dim); padding: 4px; border-radius: var(--r-pill);
  max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.toolbar__sort::-webkit-scrollbar { display: none; }
.toolbar__sort button {
  padding: 7px 14px; border: none; background: transparent;
  border-radius: var(--r-pill); font-size: 12.5px; font-weight: 600;
  color: var(--text-secondary); cursor: pointer;
  flex-shrink: 0; white-space: nowrap;
}
.toolbar__sort button.active { background: var(--surface); color: var(--text-primary); box-shadow: var(--shadow-sm); }

@media (max-width: 1180px) {
  .person-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .person-grid { grid-template-columns: 1fr; }
  .modal-form__row { grid-template-columns: 1fr; }
}

.toast {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  color: var(--text-on-dark);
  padding: 12px 20px;
  border-radius: var(--r-pill);
  font-size: 13.5px;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  z-index: 200;
  animation: toastIn var(--dur-base) var(--ease-out);
}
@keyframes toastIn {
  from { opacity: 0; transform: translate(-50%, 12px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

/* "Add to Home Screen" banner --------------------------------------------- */
.install-banner {
  position: fixed;
  left: 12px; right: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  z-index: 210;
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--ink);
  color: var(--text-on-dark);
  padding: 14px;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  animation: installBannerIn var(--dur-base) var(--ease-out);
}
.install-banner__mark {
  width: 36px; height: 36px;
  flex-shrink: 0;
  border-radius: 9px;
  overflow: hidden;
}
.install-banner__copy { flex: 1; min-width: 0; }
.install-banner__title { font-size: 13.5px; font-weight: 700; margin-bottom: 2px; }
.install-banner__body { font-size: 12.5px; color: var(--text-on-dark-dim); line-height: 1.4; }
.install-banner__actions { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.install-banner__close {
  width: 28px; height: 28px;
  border: none; background: transparent;
  color: var(--text-on-dark-dim);
  font-size: 20px; line-height: 1;
  border-radius: 50%;
  cursor: pointer;
}
.install-banner__close:hover { background: var(--ink-soft); color: var(--text-on-dark); }
@keyframes installBannerIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (max-width: 420px) {
  .install-banner { flex-wrap: wrap; }
  .install-banner__copy { order: 2; flex-basis: 100%; }
  .install-banner__actions { order: 3; flex-basis: 100%; justify-content: flex-end; }
}
