/* UdesQuake location-based browser notification controls. */
.uq-push-button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 38px; padding: 9px 14px; border-radius: 10px;
  border: 1px solid rgba(34,211,238,.36); color: #67e8f9;
  background: rgba(8,145,178,.12); font: 700 12px/1.2 Inter,system-ui,sans-serif;
  cursor: pointer; transition: transform .18s, border-color .18s, background .18s;
}
.uq-push-button:hover { transform: translateY(-1px); border-color: #22d3ee; background: rgba(8,145,178,.2); }
.uq-push-button.enabled { color: #86efac; border-color: rgba(34,197,94,.45); background: rgba(34,197,94,.11); }
.uq-push-button:disabled { opacity: .55; cursor: not-allowed; transform: none; }

.uq-push-fab {
  position: fixed; right: 18px; bottom: 18px; z-index: 900;
  box-shadow: 0 16px 40px rgba(0,0,0,.42);
}

.uq-push-modal {
  position: fixed; inset: 0; z-index: 12000; display: none;
  align-items: center; justify-content: center; padding: 18px;
  color: #dbe7f4; background: rgba(1,5,10,.78); backdrop-filter: blur(10px);
  font-family: Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
}
.uq-push-modal.open { display: flex; }
.uq-push-card {
  width: min(620px,100%); max-height: min(860px,92dvh); overflow-y: auto;
  border-radius: 18px; border: 1px solid #213047;
  background: linear-gradient(145deg,#101826,#080d15); box-shadow: 0 28px 85px rgba(0,0,0,.65);
}
.uq-push-head { display: flex; align-items: flex-start; gap: 12px; padding: 20px 22px; border-bottom: 1px solid #1c293c; }
.uq-push-head-icon { width: 42px; height: 42px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 12px; background: rgba(34,211,238,.12); font-size: 21px; }
.uq-push-head h2 { margin: 0 0 4px; color: #f1f5f9; font-size: 18px; line-height: 1.25; }
.uq-push-head p { margin: 0; color: #8092aa; font-size: 11.5px; line-height: 1.55; }
.uq-push-close { margin-left: auto; width: 32px; height: 32px; flex: 0 0 auto; border: 0; border-radius: 8px; color: #94a3b8; background: #172132; font-size: 18px; cursor: pointer; }
.uq-push-body { padding: 18px 22px 22px; }
.uq-push-notice { padding: 11px 13px; margin-bottom: 14px; border-radius: 10px; border: 1px solid rgba(245,158,11,.3); color: #fcd34d; background: rgba(245,158,11,.08); font-size: 11.5px; line-height: 1.55; }
.uq-push-notice.ok { color: #86efac; border-color: rgba(34,197,94,.3); background: rgba(34,197,94,.08); }
.uq-push-notice.error { color: #fca5a5; border-color: rgba(239,68,68,.35); background: rgba(239,68,68,.09); }
.uq-push-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.uq-push-field { min-width: 0; }
.uq-push-field.full { grid-column: 1/-1; }
.uq-push-field label { display: block; margin-bottom: 6px; color: #90a1b7; font-size: 10px; font-weight: 800; letter-spacing: .65px; text-transform: uppercase; }
.uq-push-field input,.uq-push-field select {
  width: 100%; min-height: 40px; padding: 9px 11px; border: 1px solid #223149; border-radius: 9px;
  outline: none; color: #edf4fc; background: #131d2c; font-size: 12.5px;
}
.uq-push-field input:focus,.uq-push-field select:focus { border-color: #22d3ee; box-shadow: 0 0 0 3px rgba(34,211,238,.1); }
.uq-push-location { display: grid; grid-template-columns: 1fr 1fr auto; gap: 8px; }
.uq-push-location button { padding: 0 12px; border: 1px solid rgba(34,211,238,.34); border-radius: 9px; color: #67e8f9; background: rgba(8,145,178,.12); font-weight: 700; cursor: pointer; white-space: nowrap; }
.uq-push-switches { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; }
.uq-push-check { display: flex; gap: 8px; align-items: center; min-height: 38px; padding: 8px 10px; border-radius: 9px; border: 1px solid #202e43; color: #adbbcd; background: #111a28; font-size: 11.5px; cursor: pointer; }
.uq-push-check input { accent-color: #22d3ee; }
.uq-push-help { margin-top: 14px; color: #65778f; font-size: 10.5px; line-height: 1.65; }
.uq-push-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 17px; padding-top: 16px; border-top: 1px solid #1b283a; }
.uq-push-action { min-height: 39px; padding: 9px 14px; border: 1px solid #293950; border-radius: 9px; color: #bdc9d8; background: #152031; font-size: 12px; font-weight: 750; cursor: pointer; }
.uq-push-action.primary { margin-left: auto; border-color: transparent; color: #031418; background: linear-gradient(135deg,#22d3ee,#22c55e); }
.uq-push-action.danger { color: #fca5a5; border-color: rgba(239,68,68,.28); background: rgba(127,29,29,.16); }
.uq-push-action:disabled { opacity: .52; cursor: wait; }
.uq-push-ios { display: none; }
.uq-push-ios.show { display: block; }

@media (max-width: 640px) {
  .uq-push-modal { padding: 0; align-items: flex-end; }
  .uq-push-card { width: 100%; max-height: 94dvh; border-radius: 18px 18px 0 0; }
  .uq-push-head,.uq-push-body { padding-inline: 15px; }
  .uq-push-grid { grid-template-columns: 1fr; }
  .uq-push-field.full { grid-column: auto; }
  .uq-push-location { grid-template-columns: 1fr 1fr; }
  .uq-push-location button { grid-column: 1/-1; min-height: 39px; }
  .uq-push-switches { grid-template-columns: 1fr; }
  .uq-push-actions { flex-direction: column; }
  .uq-push-action.primary { margin-left: 0; order: -1; }
  .uq-push-fab { right: 10px; bottom: calc(62px + env(safe-area-inset-bottom)); }
}
