/* Shared site navigation: Docs · Open app · Get a server, plus the "Open app" dialog. */
.cnav { display: flex; align-items: center; gap: 6px; pointer-events: auto; }
.cnav-link {
  display: inline-flex; align-items: center; height: 34px; padding: 0 12px;
  border-radius: 8px; color: inherit; opacity: .78;
  font: 500 13.5px/1 Inter, system-ui, sans-serif; text-decoration: none;
}
.cnav-link:hover { opacity: 1; }
.cnav-ghost {
  display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 14px;
  border: 1px solid #ffffff38; border-radius: 8px; background: #17171766;
  color: #f1f1f2; font: 500 13.5px/1 Inter, system-ui, sans-serif; cursor: pointer;
  backdrop-filter: blur(6px);
}
.cnav-ghost:hover { border-color: #ffffff66; background: #ffffff14; }
.cnav-cta {
  display: inline-flex; align-items: center; height: 34px; padding: 0 14px; border-radius: 8px;
  background: #f4f1ed; color: #23201d !important; font: 500 13.5px/1 Inter, system-ui, sans-serif;
  text-decoration: none; box-shadow: 0 6px 18px -8px #000;
}
.cnav-cta:hover { background: #e2ddd7; }
.cnav a:focus-visible, .cnav button:focus-visible { outline: 2px solid #bd9686; outline-offset: 3px; }
@media (max-width: 560px) { .cnav-link { display: none; } .cnav-ghost, .cnav-cta { padding: 0 11px; } }

.oapp {
  width: min(calc(100vw - 32px), 440px); padding: 26px; border: 1px solid #ffffff2e; border-radius: 14px;
  background: #1c1c1e; color: #f1f1f2; font: 14px/1.5 Inter, system-ui, sans-serif;
  box-shadow: 0 40px 100px -30px #000;
}
.oapp::backdrop { background: #000a; backdrop-filter: blur(3px); }
.oapp h2 { margin: 0 0 6px; font-weight: 400; font-size: 24px; letter-spacing: -.01em; }
.oapp p { margin: 0 0 18px; color: #9d9da4; font-size: 13px; }
.oapp label { display: grid; gap: 7px; font-size: 12px; color: #9d9da4; }
.oapp input {
  height: 42px; padding: 0 12px; border: 1px solid #ffffff1a; border-radius: 8px; background: #111112;
  color: #f1f1f2; font: 13px/1 "Geist Mono", ui-monospace, monospace; outline: none;
}
.oapp input:focus { border-color: #bd9686; box-shadow: 0 0 0 3px #bd96861f; }
.oapp .err { min-height: 18px; margin: 6px 0 0; font-size: 12px; color: #e07a7a; }
.oapp .row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 14px; }
.oapp .row a { color: #9d9da4; font-size: 12.5px; text-decoration: none; }
.oapp .row a:hover { color: #f1f1f2; }
.oapp .go {
  height: 38px; padding: 0 16px; border: 0; border-radius: 8px; background: #f4f1ed; color: #23201d;
  font: 600 13.5px/1 Inter, system-ui, sans-serif; cursor: pointer;
}
.oapp .go:hover { background: #e2ddd7; }
.oapp .x {
  position: absolute; top: 12px; right: 12px; width: 28px; height: 28px; border: 0; border-radius: 6px;
  background: transparent; color: #9d9da4; font-size: 18px; cursor: pointer;
}
.oapp .x:hover { background: #ffffff12; color: #f1f1f2; }

/* the browser/site reset zeroes dialog margins: centre it explicitly */
.oapp { position: fixed; inset: 0; margin: auto; height: fit-content; max-height: calc(100vh - 32px); }
/* one logo size on every page */
.site-brand img, .nav .brand img, .nav > a:first-child img { height: 24px !important; width: auto !important; }
