












































* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: radial-gradient(ellipse at top, #0a0f24 0%, #06080f 60%);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 15px;
  min-height: 100vh;
}














body {
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-right: env(safe-area-inset-right, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  padding-left: env(safe-area-inset-left, 0px);
}





a { color: var(--cyan); text-decoration: none; }
a:where(:hover) { text-decoration: underline; }





.muted { color: var(--muted); }

code {
  font-family: ui-monospace, "Courier New", monospace;
  background: rgba(56, 225, 255, 0.08);
  color: var(--cyan);
  padding: 0.05em 0.4em;
  border-radius: 3px;
  font-size: 0.92em;
}



:where(button) {
  font-family: inherit;
  font-size: inherit;
  cursor: pointer;
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line-2);
  padding: 0.5em 1em;
  border-radius: 4px;
  transition: border-color 0.15s, color 0.15s, box-shadow 0.15s;
}
:where(button:hover:not(:disabled)) {
  border-color: var(--cyan);
  color: var(--cyan);
  box-shadow: 0 0 12px rgba(56, 225, 255, 0.3);
}
button:disabled { opacity: 0.4; cursor: not-allowed; }






.ptr-banner {
  background: rgba(255, 77, 110, 0.14);
  color: var(--red-light);
  border-bottom: 1px solid var(--red);
  padding: 0.5em 1.5em;
  text-align: center;
  font-size: 0.85em;
  font-weight: 600;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.4em;
  flex-wrap: wrap;
}


.ptr-banner .ptr-devlink {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 2px;
  padding: 0.25em 0.5em;
  white-space: nowrap;
}
.ptr-banner .ptr-devlink:hover {
  color: #fff;
  text-decoration: underline;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8em 1.5em;
  border-bottom: 1px solid var(--line);
  background: rgba(6, 8, 15, 0.7);
  backdrop-filter: blur(4px);
}
.site-title {
  font-size: 1.1em;
  font-weight: 600;
  color: var(--cyan);
  text-decoration: none;
  text-shadow: 0 0 8px rgba(56, 225, 255, 0.5);
}
.site-nav { display: flex; align-items: center; gap: 1em; }
.nav-link { color: var(--text); text-decoration: none; }
.nav-user { color: var(--muted); font-size: 0.9em; }
.logout-form { margin: 0; }
.nav-logout {
  padding: 0.3em 0.7em; font-size: 0.85em;
  border: 1px solid var(--line);
  color: var(--muted);
}

.nav-logout:hover { color: var(--cyan); border-color: var(--cyan); }




.nav-link { border-bottom: 2px solid transparent; }
.nav-link.active { color: var(--cyan); border-bottom-color: var(--cyan); }

.site-main {
  max-width: 980px;
  margin: 0 auto;
  padding: 1.5em;
}

.site-footer {
  margin-top: 3em;
  padding: 1em;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.85em;
  text-align: center;
}








.embed-body {
  background: transparent;
  min-height: 0;
}






.embed-surface {
  width: 100%;
  min-height: 100vh;
  padding: 8px 18px 0;
  box-sizing: border-box;
}







.embed-surface.ct-embed-mount {
  min-height: 0;
  height: auto;
  flex: 1 1 auto;
  width: 100%;
  box-sizing: border-box;
  padding: 8px 8px 0;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overflow-x: hidden;
}





@media (max-width: 600px) {
  .embed-surface.ct-embed-mount { padding-top: 0; }
  .embed-surface.ct-embed-mount::before {
    content: '';
    display: block;
    flex: none;
    height: 8px;
  }
}


.embed-login-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2em 1em;
  color: var(--muted);
  font-size: 0.95em;
  text-align: center;
}
.embed-login-hint a {
  color: var(--cyan);
}













@media (max-width: 600px) {

  .site-main { padding: 1em; }
  .site-nav { display: none; }
}

@media (max-width: 480px) {

  .site-header { padding: 0.6em 1em; }
  .site-title { font-size: 0.95em; }
  .nav-user { display: none; }
  .nav-logout {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
}

@media (hover: none), (pointer: coarse) {

  .nav-link {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 0.3em;
  }
  .nav-logout {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
  .site-nav {
    flex-wrap: wrap;
    row-gap: 0.4em;
  }

  .site-title {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }
  .nav-link {
    min-width: 44px;
    justify-content: center;
  }
}
