/* The "Install this app" bar, shared by SparesBuddy and Team Inbox (14-Nov-2026).
   Its own file rather than a copy in app.css / work.css / inbox.css: three copies of the same
   rules is exactly the trap the strip CSS is already in (MIND 11-Nov). */

.ins {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: max(12px, env(safe-area-inset-bottom));
  z-index: 60;
  width: min(520px, calc(100vw - 24px));
  box-sizing: border-box;
  display: grid;
  grid-template-columns: 34px 1fr auto auto;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  background: #16171b;                       /* graphite, like the strip (v0.26.0) */
  color: #fff;
  border: 1px solid #26282e;
  border-top: 2px solid #d42a2a;             /* the red rule */
  border-radius: 10px;
  box-shadow: 0 6px 24px rgb(0 0 0 / 28%);
  font: inherit;
}
.ins[hidden] { display: none; }

.ins-i {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  background: #26282e;
  border-radius: 8px;
  font-size: 17px; line-height: 1;
}
.ins-t { min-width: 0; line-height: 1.3; }
.ins-t b { display: block; font-size: 14px; }
.ins-t span { display: block; font-size: 12px; color: #a1a1aa; }

.ins-go {
  padding: 8px 14px;
  background: #d42a2a; color: #ffffff;
  border: 0; border-radius: 7px;
  font: inherit; font-size: 13px; font-weight: 700;
  cursor: pointer;
}
.ins-go:hover { background: #b91c1c; }
.ins-x {
  width: 30px; height: 30px;
  background: transparent; color: #a1a1aa;
  border: 1px solid #3a3c44; border-radius: 7px;
  font: inherit; font-size: 14px; line-height: 1;
  cursor: pointer;
}
.ins-x:hover { color: #fff; border-color: #71717a; }

/* The by-hand steps (iPhone, Firefox) appear under the line, in the same bar. */
.ins-how { grid-column: 1 / -1; margin: 2px 0 0; }
.ins-how[hidden] { display: none; }
.ins-how ol { margin: 0; padding-left: 20px; }
.ins-how li { font-size: 12.5px; line-height: 1.5; color: #e4e4e7; }

/* On a phone the button drops to its own line, so a long app name never squeezes it to an arrow
   (that happened to the Orders dropdowns on 12-Nov). Named areas, so nothing auto-places itself
   into the wrong cell. */
@media (max-width: 420px) {
  .ins {
    grid-template-columns: 28px 1fr auto;
    grid-template-areas:
      "icon text close"
      ".    go   go";
    gap: 8px;
    padding: 10px;
  }
  .ins-i { grid-area: icon; width: 28px; height: 28px; font-size: 15px; }
  .ins-t { grid-area: text; }
  .ins-x { grid-area: close; }
  .ins-go { grid-area: go; justify-self: start; }
}
