/* HORA App Installer. Intentionally no generic theme selectors. */
.hora-app-shortcode,
.hora-app-primary {
  appearance: none;
  border: 0;
  border-radius: 9px;
  background: #c9a22e;
  color: #181818;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font: 600 14px/1.3 -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif;
  padding: 12px 17px;
  cursor: pointer;
  text-decoration: none;
}
.hora-app-shortcode:hover,
.hora-app-primary:hover { background: #e0b847; color: #141414; }
.hora-app-shortcode:focus-visible,
.hora-app-banner button:focus-visible,
.hora-app-dialog button:focus-visible { outline: 3px solid #2265cd; outline-offset: 3px; }
.hora-app-banner[hidden],
.hora-app-overlay[hidden],
.hora-app-guide[hidden],
#hora-app-trigger[hidden] { display: none !important; }
.hora-app-banner {
  position: fixed;
  z-index: 2147483000;
  inset: auto 16px 18px;
  max-width: 490px;
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 14px;
  background: #1e1e1e;
  color: #fff;
  box-shadow: 0 8px 35px rgba(0,0,0,.3);
  font: 14px/1.4 -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif;
}
.hora-app-banner-content { display: flex; flex: 1 1 200px; align-items: center; gap: 11px; min-width: 0; }
.hora-app-banner-content img { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; }
.hora-app-banner-copy { display: grid; gap: 2px; min-width: 0; }
.hora-app-banner-copy span { font-size: 12px; opacity: .85; line-height: 1.4; }
.hora-app-banner-actions { display: flex; align-items: center; gap: 4px; }
.hora-app-banner .hora-app-primary { padding: 11px 14px; font-size: 13px; }
.hora-app-later,
.hora-app-close { border: 0; background: transparent; color: inherit; cursor: pointer; font: 26px/1 sans-serif; padding: 4px 8px; }
.hora-app-overlay { position: fixed; inset: 0; z-index: 2147483001; display: grid; place-items: center; background: rgba(0,0,0,.66); padding: 18px; }
.hora-app-modal-open { overflow: hidden !important; }
.hora-app-dialog { position: relative; width: min(100%, 490px); max-height: min(90dvh, 740px); overflow: auto; box-sizing: border-box; padding: 26px; background: #fff; border-radius: 16px; color: #202020; box-shadow: 0 18px 55px rgba(0,0,0,.26); font: 15px/1.6 -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif; }
.hora-app-dialog * { box-sizing: border-box; }
.hora-app-close { color: #333; position: absolute; right: 10px; top: 8px; }
.hora-app-title-row { display: flex; align-items: flex-start; gap: 16px; padding-right: 12px; }
.hora-app-title-row img { flex-shrink: 0; border-radius: 12px; object-fit: cover; width: 64px; height: 64px; }
.hora-app-dialog h2 { font: 700 21px/1.25 -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif; margin: 0 0 7px; color: #171717; }
.hora-app-dialog h3 { font: 700 17px/1.3 -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif; margin: 0 0 7px; color: #171717; }
.hora-app-dialog p { margin: 0; color: #444; }
.hora-app-guides { margin: 21px 0 19px; border-block: 1px solid #e6e6e6; padding-block: 17px; }
.hora-app-guide p { white-space: pre-line; }
.hora-app-dialog-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.hora-app-dialog .hora-app-secondary { border: 1px solid #d6d6d6; color: #333; background: #fff; padding: 11px 16px; border-radius: 9px; cursor: pointer; font: 600 14px/1.3 -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif; }
.hora-app-dialog .hora-app-note { font-size: 13px; margin-top: 12px; }
@media (max-width: 400px) {
  .hora-app-banner { inset-inline: 9px; padding: 11px; }
  .hora-app-dialog { padding: 22px 18px; }
  .hora-app-banner-actions { width: 100%; justify-content: flex-end; }
}

/* Nasconde le voci Installazione quando già in modalità app installata. */
.hora-app-installed-hidden[hidden] { display: none !important; }

/* 1.0.2: SVG inline nelle istruzioni, mai immagini remote né codice HTML utente. */
.hora-app-dialog .hora-inline-icon {
  display: inline-flex;
  vertical-align: -0.18em;
  width: 1.5em;
  height: 1.5em;
  align-items: center;
  justify-content: center;
  margin: 0 0.12em;
  padding: 0.08em;
  border: 1px solid #d8dfe7;
  border-radius: 0.35em;
  background: #f5f7f9;
  color: #202a3a;
  line-height: 1;
  white-space: nowrap;
}
.hora-app-dialog .hora-inline-icon svg { width: 1.12em; height: 1.12em; display: block; flex: none; }
