/* TranscendenceIA editorial family. Agujita remains the product identity. */
:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  color: #f7f6f1;
  background: #090b10;
  --ink: #090b10;
  --surface: #11141b;
  --raised: #1a1e28;
  --paper: #f7f6f1;
  --accent: #ff9dcc;
  --blue: #a5baff;
  --violet: #d9afff;
  --warm: #ffad8a;
  --muted: #b4bcc9;
  --border: #62516f;
  --line: #2b2f3b;
  --spectrum: linear-gradient(110deg, #ff4b0a, #ff0a8a 36%, #aa35ff 67%, #3867ff 91%, #28d9f7);
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 280px; text-rendering: optimizeLegibility; }
:where(h1,h2,h3,p,a,button) { overflow-wrap: break-word; }
:where(a,button,summary) { touch-action: manipulation; }
a { color: var(--blue); text-decoration: none; text-underline-offset: 5px; }
a:hover { text-decoration: underline; }
header,footer { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
header { max-width: 1400px; margin: 16px 20px 0; padding: 15px 24px; min-height: 76px; background: var(--surface); border: 1px solid var(--border); border-radius: 20px; }
.brand { display: inline-flex; align-items: center; gap: 13px; color: var(--paper); font-size: 15px; font-weight: 800; letter-spacing: .08em; line-height: 1.4; flex-shrink: 0; }
.brand:hover { text-decoration: none; }
.brand small { display: block; margin-top: 3px; color: #c1cbd3; font: 600 9px/1.5 ui-monospace, monospace; letter-spacing: .15em; }
.brand-icon { width: 48px; height: 48px; object-fit: contain; flex-shrink: 0; }
nav { display: flex; align-items: center; flex-wrap: wrap; gap: 24px; font-size: 13px; }
header nav a { color: #c1c6d0; min-height: 44px; display: inline-flex; align-items: center; }
nav a:hover { color: var(--paper); }
main { max-width: 1320px; margin: auto; padding: 68px 40px 76px; }
h1 { font-size: clamp(42px,5.3vw,76px); line-height: 1.03; letter-spacing: -.055em; margin: 20px 0 26px; font-weight: 750; }
h1 span { color: var(--accent); }
h2 { font-size: clamp(24px,2.7vw,36px); line-height: 1.15; letter-spacing: -.04em; margin: 18px 0 16px; }
h3 { font-size: 20px; letter-spacing: -.025em; margin: 12px 0; }
p { line-height: 1.7; color: var(--muted); }
.lead { font-size: 18px; line-height: 1.75; max-width: 57ch; }
.eyebrow,.step,.section-code { font: 650 11px/1.6 ui-monospace, monospace; letter-spacing: .1em; color: var(--violet); }
.eyebrow { display: flex; align-items: center; gap: 12px; }
.eyebrow::before { content: ""; width: 22px; height: 3px; background: var(--spectrum); flex-shrink: 0; }
.heading { display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.identity { max-width: 320px; display: grid; gap: 10px; text-align: right; overflow-wrap: anywhere; }
.identity>span { font-size: 21px; }
.identity small { color: var(--muted); }
.identity button { justify-self: end; }
.notice { padding: 13px 17px; border: 1px solid var(--line); border-radius: 10px; font-size: 14px; background: var(--surface); }
.notice.error { border-color: #995244; color: #ffc3a3; }
.notice:empty { display: none; }
.auth-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 60px; margin-top: 32px; align-items: start; }
.intro { padding: 35px 10px; }
.intro h2 { font-size: 36px; max-width: 350px; }
.intro p { max-width: 400px; }
.panel { padding: 30px; background: var(--surface); border: 1px solid var(--border); border-radius: 20px; margin: 24px 0; }
.tabs { padding-bottom: 18px; border-bottom: 1px solid var(--line); margin-bottom: 20px; }
.tabs a.active { color: var(--paper); border-bottom: 2px solid var(--accent); padding-bottom: 10px; }
.providers { display: grid; gap: 10px; }
.divider { text-align: center; font-size: 12px; margin: 18px 0; }
.muted,small { color: var(--muted); font-size: 13px; line-height: 1.6; }
form { display: grid; gap: 12px; }
form p { font-size: 13px; margin: 2px 0; }
form>a { font-size: 13px; margin-top: 2px; }
label { font-size: 13px; color: #d6dbe5; }
input,select,textarea { width: 100%; min-width: 0; background: var(--ink); color: var(--paper); border: 1px solid #505260; border-radius: 9px; padding: 13px; font: inherit; resize: vertical; }
input::placeholder,textarea::placeholder { color: #939ba9; }
button,.button-link { display: inline-flex; justify-content: center; align-items: center; gap: 12px; background: var(--paper); color: var(--ink); border: 1px solid var(--paper); border-radius: 12px; padding: 14px 18px; min-height: 48px; font-family: inherit; line-height: 1.4; font-size: 14px; font-weight: 700; cursor: pointer; text-align: center; box-shadow: 0 3px 0 #aa35ff; }
button:hover,.button-link:hover { background: #fff; border-color: var(--accent); text-decoration: none; }
button:disabled { opacity: .5; cursor: wait; }
button.secondary { background: var(--raised); color: var(--paper); border-color: var(--border); box-shadow: none; }
button.secondary:hover { border-color: var(--violet); background: #252a36; }
button.quiet { background: transparent; color: var(--muted); border-color: transparent; box-shadow: none; min-height: 44px; padding: 8px; }
button.quiet:hover { color: var(--paper); text-decoration: underline; text-underline-offset: 5px; }
button.danger { background: #3b252b; color: #ffb9b2; border-color: #845362; box-shadow: none; }
:where(button,a,input,select,textarea,summary):focus-visible { outline: 3px solid #28d9f7; outline-offset: 5px; }
form>button { margin-top: 8px; }
.section-nav { margin: 32px 0; gap: 12px; }
.section-nav a { border: 1px solid var(--border); border-radius: 9px; padding: 10px 16px; color: var(--paper); }
.section-nav a:hover { border-color: var(--accent); background: var(--surface); text-decoration: none; }
.section-heading { display: flex; justify-content: space-between; gap: 24px; align-items: center; }
.section-heading p { max-width: 720px; font-size: 14px; }
.section-heading>button,.text-link { flex-shrink: 0; }
.release-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.release-card { padding: 22px; border: 1px solid var(--line); border-radius: 14px; background: var(--ink); overflow-wrap: anywhere; }
.release-card small { display: block; }
.release-card .actions { margin-top: 20px; }
.release-card h3 { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.chip { font: 500 10px/1.5 ui-monospace,monospace; letter-spacing: .06em; border: 1px solid var(--border); color: var(--warm); border-radius: 5px; padding: 5px 9px; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; }
.tunnel-row,.session-row { padding: 20px 0; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 20px; align-items: center; }
.tunnel-info,.session-info { min-width: 0; overflow-wrap: anywhere; }
.tunnel-info small,.session-info small { display: block; }
.tunnel-row .actions button,.session-row button { font-size: 12px; padding: 10px 12px; }
.rename-form { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.rename-form label { width: 100%; }
.rename-form input { flex: 1; }
.rename-form button { margin: 0; }
.compact-form { max-width: 520px; margin-top: 20px; }
details { border-top: 1px solid var(--line); padding: 20px 0 0; margin-top: 20px; }
summary { cursor: pointer; color: var(--blue); font-size: 14px; line-height: 1.5; }
.device-panel { max-width: 670px; margin: 30px auto; }
.device-panel h2 { font-size: 32px; }
#device-approval { margin-top: 28px; border-top: 1px solid var(--line); padding-top: 12px; }
#device-code { text-transform: uppercase; font: 22px ui-monospace,monospace; letter-spacing: .1em; }
dialog { width: min(580px,calc(100% - 36px)); border: 1px solid var(--border); border-radius: 18px; background: var(--surface); color: var(--paper); padding: 28px; }
dialog::backdrop { background: #000b; }
dialog textarea { margin: 12px 0; font: 13px ui-monospace,monospace; overflow-wrap: anywhere; }
dialog .actions { margin-top: 14px; }
footer { max-width: 1320px; margin: auto; padding: 24px 40px; border-top: 1px solid var(--line); color: var(--muted); font: 10px/1.7 ui-monospace,monospace; letter-spacing: .06em; }
/* Access screen: same two-column editorial composition as the parent site. */
.access-main { padding-top: 88px; }
.access-layout { display: grid; grid-template-columns: minmax(0,1.15fr) minmax(0,.85fr); align-items: center; gap: 72px; }
.access-copy h1 { font-size: clamp(44px,5vw,70px); }
.access-copy .lead { max-width: 47ch; margin-bottom: 30px; }
.access-specimen { display: flex; align-items: center; gap: 26px; margin-top: 32px; }
.mascot-frame { position: relative; display: grid; place-items: center; flex-shrink: 0; width: 140px; height: 155px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
.mascot-frame::before { content: ""; position: absolute; top: -1px; left: 16px; right: 16px; height: 2px; background: var(--spectrum); }
.mascot-frame img { width: 112px; height: 144px; object-fit: contain; }
.access-specimen strong { font-size: 16px; font-weight: 600; display: block; margin: 8px 0; }
.access-specimen p { font-size: 13px; margin: 0; max-width: 26ch; }
.access-panel { position: relative; padding: 30px; margin: 0; border-bottom-right-radius: 40px; }
.access-panel::before { content: ""; position: absolute; top: -1px; left: 20px; right: 20px; height: 3px; background: var(--spectrum); border-radius: 3px; }
.access-panel h2 { font-size: 30px; margin: 18px 0 12px; }
.access-panel h2 span { color: var(--accent); }
.panel-topline { display: flex; justify-content: space-between; gap: 15px; color: var(--muted); font: 600 10px/1.5 ui-monospace,monospace; letter-spacing: .09em; }
.panel-topline i { width: 8px; height: 8px; background: #ff4b0a; margin-top: 3px; flex-shrink: 0; }
.access-panel .notice { background: transparent; border: 0; padding: 0; margin: 0 0 24px; }
.access-panel .providers { margin-bottom: 22px; }
.access-panel .providers:has(button:not([hidden])) { border-bottom: 1px solid var(--line); padding-bottom: 22px; }
.access-panel .providers button { width: 100%; }
.access-footnote { border-top: 1px solid var(--line); padding-top: 18px; margin: 22px 0 0; color: var(--muted); font-size: 12px; }
.access-strip { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 18px; margin-top: 68px; padding: 22px 0; border-top: 1px solid var(--line); color: var(--muted); font: 600 10px/1.7 ui-monospace,monospace; letter-spacing: .08em; }
.access-strip span { display: inline-flex; align-items: center; gap: 10px; }
.access-strip i { color: var(--violet); font-style: normal; }
[hidden] { display: none !important; }
@media(min-width:1440px) { header { margin-inline: auto; } }
@media(max-width:1000px) { .access-layout { gap: 36px; grid-template-columns: minmax(0,1fr) minmax(0,1fr); } .access-copy h1 { font-size: 54px; } .access-panel { padding: 24px; } }
@media(max-width:760px) {
  header { margin: 12px 12px 0; padding: 12px 16px; gap: 12px; min-height: 68px; border-radius: 16px; }
  header nav { gap: 12px; font-size: 12px; justify-content: flex-end; }
  main { padding: 40px 22px 48px; }
  .heading { align-items: flex-start; flex-direction: column; gap: 10px; }
  .identity { text-align: left; max-width: 100%; }
  .identity button { justify-self: start; }
  .auth-grid,.access-layout { grid-template-columns: 1fr; gap: 28px; }
  .intro { padding: 10px 4px; }
  .intro h2 { font-size: 28px; }
  .intro p:nth-of-type(2) { display: none; }
  .panel { padding: 24px 20px; }
  .section-heading { align-items: flex-start; flex-direction: column; gap: 4px; }
  .section-heading>button { margin-bottom: 15px; }
  .release-grid { grid-template-columns: 1fr; }
  .tunnel-row,.session-row { flex-direction: column; align-items: flex-start; gap: 14px; }
  .tunnel-row .actions { width: 100%; }
  .section-nav { gap: 10px; font-size: 12px; }
  footer { padding: 24px 22px; align-items: flex-start; flex-direction: column; gap: 8px; }
  .brand { gap: 8px; font-size: 12px; }
  .brand small { font-size: 8px; }
  .brand-icon { width: 38px; height: 38px; }
  .device-panel h2 { font-size: 28px; }
  dialog { padding: 22px; }
  .access-main { padding-top: 48px; }
  .access-copy h1 { font-size: clamp(40px,10.7vw,54px); }
  .lead { font-size: 16px; }
  .access-specimen { gap: 20px; margin-top: 24px; }
  .mascot-frame { width: 102px; height: 116px; }
  .mascot-frame img { width: 84px; height: 106px; }
  .access-specimen strong { font-size: 14px; }
  .access-specimen p { font-size: 12px; }
  .access-strip { margin-top: 38px; gap: 14px; flex-direction: column; }
}
@media(prefers-reduced-motion:reduce) { *,*::before,*::after { scroll-behavior: auto !important; transition: none !important; } }
@media(max-width:420px) {
  header { flex-wrap: wrap; }
  header>.chip { display: none; }
  header nav { width: 100%; padding-left: 46px; justify-content: flex-start; }
  .brand small { font-size: 7px; letter-spacing: .1em; }
}

.release-notice { padding: 18px 22px; margin-bottom: 36px; border: 1px solid var(--line); border-radius: 14px; line-height: 1.7; background: var(--surface); font-size: 14px; }
.release-notice strong { display:block; margin-bottom:4px; }
.download-pending { color: var(--muted); cursor: default; }
.installer-links .download-pending { display:inline-flex; max-width:100%; padding:10px 14px; margin:4px 0; border:1px solid var(--line); border-radius:9px; font-size:13px; line-height:1.5; }
