:root {
  color-scheme: light;
  --bg: #FAF9FF;
  --paper: rgba(255, 255, 255, 0.84);
  --surface: rgba(255, 255, 255, 0.94);
  --text: #14151A;
  --sub: #5D6175;
  --outline: rgba(20, 21, 26, 0.09);
  --outline-strong: rgba(20, 21, 26, 0.15);
  --accent: #6C5CE7;
  --accent-deep: #5342D6;
  --on-accent: #ffffff;
  --ok: #15803d;
  --notice-error-bg: #fde8e8;
  --notice-error-text: #7f1d1d;
  --notice-error-border: #b91c1c;
  --notice-ok-bg: #dcfce7;
  --notice-ok-text: #14532d;
  --notice-ok-border: #166534;
  --clear: transparent;
  --font: 'Inter', 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'PingFang SC', 'Helvetica Neue', sans-serif;
  --heading: 'Plus Jakarta Sans', 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;
  --display: 'JetBrains Mono', ui-monospace, 'SF Mono', monospace;
  --r-sm: 10px;
  --r: 14px;
  --r-card: 20px;
  --r-pill: 999px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #111116;
    --paper: rgba(26, 26, 34, 0.82);
    --surface: rgba(34, 34, 44, 0.92);
    --text: #f4f4f5;
    --sub: #a1a1aa;
    --outline: rgba(255, 255, 255, 0.09);
    --outline-strong: rgba(255, 255, 255, 0.16);
    --accent: #7B6BFF;
    --accent-deep: #6C5CE7;
    --on-accent: #ffffff;
    --ok: #4ade80;
    --notice-error-bg: #3b1212;
    --notice-error-text: #fecaca;
    --notice-error-border: #fca5a5;
    --notice-ok-bg: #052e16;
    --notice-ok-text: #bbf7d0;
    --notice-ok-border: #86efac;
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #111116;
  --paper: rgba(26, 26, 34, 0.82);
  --surface: rgba(34, 34, 44, 0.92);
  --text: #f4f4f5;
  --sub: #a1a1aa;
  --outline: rgba(255, 255, 255, 0.09);
  --outline-strong: rgba(255, 255, 255, 0.16);
  --accent: #7B6BFF;
  --accent-deep: #6C5CE7;
  --on-accent: #ffffff;
  --ok: #4ade80;
  --notice-error-bg: #3b1212;
  --notice-error-text: #fecaca;
  --notice-error-border: #fca5a5;
  --notice-ok-bg: #052e16;
  --notice-ok-text: #bbf7d0;
  --notice-ok-border: #86efac;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 0;
  background-color: var(--bg);
}

body {
  margin: 0;
  min-height: 100svh;
  min-width: 0;
  padding: 0 0 max(36px, env(safe-area-inset-bottom)) 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--text);
  font: 400 14px/1.65 var(--font);
  overflow-wrap: anywhere;
  overflow-x: clip;
  background-color: var(--bg);
  background-image:
    radial-gradient(900px 560px at 84% 8%, rgba(152, 168, 255, 0.24) 0%, transparent 66%),
    radial-gradient(760px 520px at 14% 22%, rgba(123, 107, 255, 0.12) 0%, transparent 64%),
    radial-gradient(880px 600px at 74% 92%, rgba(224, 232, 255, 0.32) 0%, transparent 62%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) body {
    background-image:
      radial-gradient(900px 560px at 16% 10%, rgba(56, 108, 176, 0.18) 0%, transparent 58%),
      radial-gradient(860px 540px at 86% 14%, rgba(124, 92, 184, 0.16) 0%, transparent 56%),
      radial-gradient(880px 580px at 70% 90%, rgba(45, 130, 120, 0.14) 0%, transparent 60%);
  }
}

:root[data-theme="dark"] body {
  background-image:
    radial-gradient(900px 560px at 16% 10%, rgba(56, 108, 176, 0.18) 0%, transparent 58%),
    radial-gradient(860px 540px at 86% 14%, rgba(124, 92, 184, 0.16) 0%, transparent 56%),
    radial-gradient(880px 580px at 70% 90%, rgba(45, 130, 120, 0.14) 0%, transparent 60%);
}

button,
input,
select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  background: var(--clear);
  border: 0;
  border-radius: var(--r);
}

button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 3px;
}

a {
  color: inherit;
}

.ico {
  width: 20px;
  height: 20px;
  flex: none;
  vertical-align: middle;
  stroke-width: 1.5;
}

/* Unified Site Topbar (matches homepage /) */
.site-topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  width: 100%;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  background: rgba(250, 249, 255, 0.84);
  border-bottom: 1px solid var(--outline);
  view-transition-name: site-topbar;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .site-topbar {
    background: rgba(17, 17, 22, 0.84);
  }
}

:root[data-theme="dark"] .site-topbar {
  background: rgba(17, 17, 22, 0.84);
}

.site-topbar-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 28px;
  height: 68px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
}

.site-topbar-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  min-width: 0;
}

.site-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  font-size: 14px;
  font-weight: 500;
  color: var(--sub);
}

.site-signin {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--sub);
  padding: 6px 10px;
  border-radius: var(--r-pill);
  text-decoration: none;
  white-space: nowrap;
}

.site-signin:hover,
.site-signin.is-active {
  color: var(--text);
}

.site-links a {
  text-decoration: none;
}

.site-links a:hover,
.site-links a.is-active {
  color: var(--text);
}

.lang-pill {
  display: inline-flex;
  align-items: center;
  padding: 3px;
  border-radius: var(--r-pill);
  border: 1px solid var(--outline);
  background: var(--surface);
  flex-shrink: 0;
}

.lang-pill button,
.lang-pill a {
  border: 0;
  background: transparent;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--sub);
  text-decoration: none;
  cursor: pointer;
}

.lang-pill button.on,
.lang-pill a.on {
  background: var(--accent);
  color: var(--on-accent);
}

.site-dl {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 15px;
  border-radius: var(--r-pill);
  font-size: 13px;
  font-weight: 600;
  background: linear-gradient(135deg, #98A8FF 0%, #7B6BFF 52%, #5845E0 100%);
  color: #fff;
  white-space: nowrap;
  text-decoration: none;
}

.policy-foot {
  margin: 0 auto 28px;
  text-align: center;
}

.policy-foot a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.brand-name {
  font-family: var(--heading);
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.03em;
}

.top {
  width: 100%;
  max-width: 560px;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 4px 4px 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex-shrink: 0;
  text-decoration: none;
}

.brand-logo {
  width: 30px;
  height: 30px;
  display: block;
  flex: none;
  border-radius: 8px;
}

.brand-mark {
  display: grid;
  place-items: center;
}

.brand-mark .ico {
  width: 24px;
  height: 24px;
}

h1 {
  font: 700 17px/1.3 var(--heading);
  letter-spacing: -0.02em;
  margin: 0;
}

.doc-page {
  max-width: 680px;
  gap: 12px;
}

.doc-page h1 {
  font-size: clamp(24px, 3vw, 30px);
  margin-bottom: 4px;
}

.doc-page h2 {
  font: 700 16px/1.4 var(--heading);
  margin: 14px 0 2px;
}

.doc-page p {
  margin: 0;
  color: var(--sub);
}

.doc-page a {
  color: var(--accent-deep);
  text-underline-offset: 3px;
}

.doc-links {
  margin-top: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--outline);
  font-size: 13px;
}

.edition {
  display: none;
}

.ruler {
  display: none;
}

.meter {
  height: 6px;
  border-radius: var(--r-pill);
  background: var(--outline);
  overflow: hidden;
  position: relative;
  margin-top: 16px;
}

.meter i {
  display: block;
  height: 100%;
  border-radius: var(--r-pill);
  background: var(--accent);
}

.main {
  min-width: 0;
}

.hint { margin: 2px 0 8px; color: var(--sub); font-size: 13px; line-height: 1.45; }
.meter { display: flex; align-items: center; gap: 8px; min-height: 22px; margin: 2px 0 10px; }
.meter-bar { display: block; height: 6px; width: 0; border-radius: 99px; background: var(--sub); }
.meter[data-level="1"] .meter-bar { width: 25%; background: #a16207; }
.meter[data-level="2"] .meter-bar { width: 45%; background: #c2410c; }
.meter[data-level="3"] .meter-bar { width: 70%; background: #15803d; }
.meter[data-level="4"] .meter-bar { width: 100%; background: #166534; }
#strength-text { color: var(--text); font-size: 13px; font-weight: 600; }
@media (max-width: 640px) {
  main { padding: 16px 14px 18px; }
  .lead, .hint, .note { font-size: 15px; }
}

main {
  width: min(calc(100% - 32px), 460px);
  margin: 40px auto;
  padding: clamp(24px, 4vw, 36px);
  border-radius: var(--r-card);
  background: var(--paper);
  border: 1px solid var(--outline);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

main.doc-page {
  width: min(calc(100% - 32px), 720px);
}

/* Granola-minimal centered auth header & federated provider stack */
.auth-head {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
}

.auth-head h3 {
  font-family: var(--heading);
  font-size: clamp(24px, 3vw, 28px);
  font-weight: 700;
  letter-spacing: -0.025em;
  text-align: center;
}

.auth-head .lead {
  margin: 0;
  text-align: center;
  max-width: 360px;
}

.oauth-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.oauth-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 46px;
  padding: 11px 16px;
  border-radius: var(--r-pill);
  border: 1px solid var(--outline-strong);
  background: var(--surface);
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.oauth-btn:hover:not(:disabled) {
  border-color: var(--accent);
}

.oauth-btn.primary-oauth {
  border-color: var(--accent);
  background: var(--surface);
}

.oauth-ico {
  width: 18px;
  height: 18px;
  flex: none;
  display: block;
}

.auth-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  margin: 18px 0 8px;
  color: var(--sub);
  font-size: 12px;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--outline);
}

.email-toggle {
  display: block;
  width: 100%;
  padding: 8px 0;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-deep);
}

.email-toggle:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.email-panel {
  width: 100%;
  margin-top: 8px;
}

.auth-legal {
  margin: 20px 0 0;
  text-align: center;
  font-size: 12px;
  color: var(--sub);
}

.auth-legal a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

main:has(.win.wide) {
  max-width: 960px;
}

#screen > p.lead:only-child {
  margin: 0;
  text-align: center;
  color: var(--sub);
}

#screenSelect {
  min-width: 0;
  max-width: 70%;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--outline-strong);
  border-radius: var(--r-sm);
  padding: 8px 28px 8px 12px;
  font: 500 12px var(--font);
  cursor: pointer;
}

.stage {
  display: flex;
  align-items: stretch;
  position: relative;
  width: 100%;
}

.browser,
.win {
  width: 100%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.bar,
.tl,
.logo {
  display: none;
}

.web,
.bd {
  width: 100%;
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.web > .in {
  width: 100%;
}

.invite-layout,
.invite-copy {
  width: 100%;
}

.invite-photo {
  display: none;
}

h3 {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}

.lead {
  font-size: 14px;
  line-height: 1.7;
  color: var(--sub);
  margin: 12px 0 0;
  max-width: 460px;
}

form {
  width: 100%;
}

input {
  max-width: 100%;
}

.ticket {
  margin-top: 24px;
  display: flex;
  align-items: center;
  gap: 14px;
  border-block: 1px solid var(--outline);
  padding: 16px 0;
  width: 100%;
}

.ticket > .ico {
  width: 22px;
  height: 22px;
}

.ticket div {
  flex: 1;
}

.ticket b {
  font: 500 22px/1.35 var(--font);
  display: block;
}

.ticket span {
  font-size: 12px;
  color: var(--sub);
}

.ticket em {
  font-size: 11px;
  color: var(--sub);
  font-style: normal;
}

.list {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 13px;
  color: var(--sub);
}

.k {
  display: grid;
  place-items: center;
  width: 22px;
  flex: none;
}

.k .ico {
  width: 16px;
}

.btn,
.btn2 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 46px;
  margin-top: 22px;
  padding: 12px 18px;
  border-radius: var(--r);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
}

.btn {
  border: 1px solid var(--accent);
  background: var(--accent);
  color: var(--on-accent);
}

.btn2 {
  margin-top: 10px;
  border: 1px solid var(--outline-strong);
  background: var(--surface);
  color: var(--text);
}

.btn .ico,
.btn2 .ico {
  width: 17px;
}

.btn:hover:not(:disabled) {
  background: var(--accent-deep);
  border-color: var(--accent-deep);
  opacity: 1;
}

.btn2:hover:not(:disabled),
.mini:hover:not(:disabled) {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
}

.lnk {
  display: inline-block;
  text-align: left;
  margin-top: 16px;
  margin-right: 16px;
  padding: 0;
  font-size: 12px;
  color: var(--sub);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.secret {
  position: relative;
  margin-top: 14px;
}

.secret .field {
  margin-top: 0;
  padding-right: 76px;
}

.reveal {
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  min-height: 32px;
  padding: 4px 8px;
  color: var(--text);
  font-size: 12px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.foot {
  font-size: 12px;
  color: var(--sub);
  margin: 16px 0 0;
  max-width: 480px;
}

.foot .ico {
  width: 13px;
  height: 13px;
  margin-right: 6px;
}

.field {
  display: block;
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--outline-strong);
  border-radius: var(--r);
  padding: 13px 14px;
  color: var(--text);
  margin-top: 20px;
}

.field::placeholder {
  color: var(--sub);
}

.field[aria-invalid="true"] {
  border-color: var(--notice-error-border);
  outline: 2px solid var(--notice-error-border);
  outline-offset: 1px;
}

.or {
  font: 500 11px var(--display);
  letter-spacing: 0.08em;
  margin-top: 16px;
  color: var(--sub);
}

.note {
  border-radius: var(--r);
  border: 1px solid var(--outline);
  background: var(--surface);
  font-size: 13px;
  line-height: 1.7;
  padding: 14px 16px;
  margin-top: 20px;
  width: 100%;
}

.note > .ico {
  width: 16px;
  height: 16px;
  margin-right: 8px;
}

.note.ok > .ico {
  color: var(--ok);
}

.code {
  display: flex;
  align-items: center;
  gap: 12px;
  border-top: 1px solid var(--outline);
  width: 100%;
  margin-top: 20px;
  padding-top: 16px;
}

.code span {
  flex: 1;
  font: 500 12px var(--display);
  min-width: 0;
}

.mini {
  padding: 9px 14px;
  border: 1px solid var(--outline-strong);
  background: var(--surface);
  border-radius: var(--r-sm);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
}

.shares {
  display: flex;
  flex-direction: column;
  margin-top: 20px;
  width: 100%;
  border-top: 1px solid var(--outline);
}

.sc {
  padding: 14px 0;
  min-width: 0;
  text-align: left;
  position: relative;
  border-bottom: 1px solid var(--outline);
  display: grid;
  grid-template-columns: 22px 1fr;
  align-items: center;
  gap: 12px;
  color: var(--sub);
  border-radius: 0;
}

.sc:before {
  content: '○';
  font-size: 16px;
}

.sc.on {
  color: var(--text);
}

.sc.on:before {
  content: '●';
  font-size: 15px;
}

.sc .poster-brand,
.sc .poster-art,
.sc .poster-foot {
  display: none;
}

.sc b {
  font-size: 14px;
  font-weight: 500;
}

.bubble {
  max-width: 480px;
  font-size: 14px;
  color: var(--sub);
  border-left: 2px solid var(--outline-strong);
  padding-left: 16px;
  margin-bottom: 20px;
}

.card {
  display: block;
  position: relative;
  width: 100%;
  text-align: left;
  border-block: 1px solid var(--outline);
  padding: 16px 0;
  border-radius: 0;
}

.card p {
  font-size: 12px;
  color: var(--sub);
  margin: 6px 0 0;
}

.poster-preview {
  display: flex;
  flex-direction: column;
  min-height: 200px;
  justify-content: flex-end;
}

.poster-brand {
  font: 500 11px var(--display);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 12px;
}

.poster-preview b {
  font-weight: 500;
  font-size: 28px;
  line-height: 1.35;
  margin: 18px 0;
}

.poster-foot {
  font-size: 12px;
  color: var(--sub);
}

.poster-art {
  display: none;
}

.scene-icon,
.membership-mark {
  margin-bottom: 18px;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: var(--r-sm);
  background: var(--surface);
  border: 1px solid var(--outline);
}

.scene-icon .ico,
.membership-mark .ico {
  width: 24px;
  height: 24px;
  stroke-width: 1.5;
}

.membership-mark.success {
  color: var(--ok);
}

.plans {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: 100%;
  gap: 20px;
  margin-top: 24px;
}

.plan {
  border: 1px solid var(--outline);
  border-radius: var(--r);
  background: var(--surface);
  padding: 20px;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.plan.hl {
  border-color: var(--accent);
}

.plan h4 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font: 600 14px var(--display);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.plan h4 .ico {
  width: 18px;
}

.p {
  font: 600 34px/1.2 var(--display);
  margin-top: 16px;
}

.p small {
  font: 400 12px var(--font);
  color: var(--sub);
}

.h {
  font-size: 12px;
  color: var(--sub);
  margin-top: 6px;
}

.plan ul {
  list-style: none;
  padding: 0;
  margin: 18px 0;
  display: grid;
  gap: 10px;
  font-size: 12px;
  color: var(--sub);
  flex: 1;
}

.plan li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.plan li .ico {
  width: 14px;
  height: 17px;
  flex: none;
}

.plan .mini {
  width: 100%;
  margin-top: auto;
}

#message {
  color: var(--sub);
  font-size: 12px;
  margin-top: 16px;
  text-align: center;
}

#message.notice {
  --notice-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20zm1 5h-2v7h2V7zm0 9h-2v2h2v-2z'/%3E%3C/svg%3E");
  display: none;
  align-items: flex-start;
  gap: 10px;
  width: 100%;
  margin: 14px 0 4px;
  padding: 12px 14px;
  border: 1px solid var(--notice-error-border);
  border-radius: var(--r);
  background: var(--notice-error-bg);
  color: var(--notice-error-text);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
  text-align: start;
}

#message.notice:not(:empty) {
  display: flex;
}

#message.notice:not(:empty)::before {
  content: "";
  width: 18px;
  height: 18px;
  flex: none;
  margin-top: 1px;
  background: currentColor;
  -webkit-mask: var(--notice-icon) center / contain no-repeat;
  mask: var(--notice-icon) center / contain no-repeat;
}

#message.notice[data-tone="ok"] {
  --notice-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20zm-1.2 14.2-3.5-3.5 1.4-1.4 2.1 2.1 4.6-4.6 1.4 1.4-6 6z'/%3E%3C/svg%3E");
  border-color: var(--notice-ok-border);
  background: var(--notice-ok-bg);
  color: var(--notice-ok-text);
}

#message.notice[data-tone="pending"] {
  --notice-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20zm1 11h-5V7h2v4h3v2z'/%3E%3C/svg%3E");
  border-color: var(--outline-strong);
  background: var(--surface);
  color: var(--text);
}

.notice-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  margin: 4px 0 0;
}

.notice-actions .lnk {
  margin-top: 0;
  min-height: 32px;
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
}

.toast {
  position: fixed;
  z-index: 20;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  max-width: calc(100vw - 32px);
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--outline-strong);
  border-radius: var(--r-pill);
  padding: 10px 20px;
  font-size: 12px;
}

[hidden] {
  display: none !important;
}

@media (max-width: 900px) {
  .site-topbar-inner {
    display: flex;
    justify-content: space-between;
  }
  .site-links {
    display: none;
  }
}

@media (max-width: 650px) {
  .site-topbar-inner {
    padding: 0 16px;
    gap: 8px;
  }
  .site-topbar-right {
    gap: 6px;
  }
  .site-dl {
    padding: 7px 11px;
    font-size: 12px;
  }
  .brand-name {
    font-size: 17px;
  }
  .top {
    flex-wrap: wrap;
    gap: 8px 16px;
  }
  main {
    margin: 24px auto;
    padding: 22px 18px;
  }
  h3 {
    font-size: 24px;
  }
  .plans {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  @view-transition {
    navigation: auto;
  }
  .btn,
  .btn2,
  .mini,
  .oauth-btn {
    transition: opacity 0.16s ease, background 0.16s ease, color 0.16s ease, border-color 0.16s ease;
  }
  .fade {
    animation: appear 0.28s ease-out;
  }
  @keyframes appear {
    from {
      opacity: 0;
    }
    to {
      opacity: 1;
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
