/* Account entrance; uses the same tokens, assets and motion as the workbench. */
.nx-entry * { box-sizing: border-box; }
.nx-entry { margin: 0; background: var(--page); color: var(--text); font: 15px/1.65 -apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC",sans-serif; }
.nx-entry button { font: inherit; cursor: pointer; }
.nx-entry button:disabled { opacity: .5; cursor: default; }
.nx-entry p { margin: 0; }
.nx-entry-main { width: min(100%,620px); padding: max(20px,env(safe-area-inset-top)) max(24px,env(safe-area-inset-right)) max(28px,env(safe-area-inset-bottom)) max(24px,env(safe-area-inset-left)); margin: auto; }
.nx-entry-header { display: flex; justify-content: space-between; align-items: center; min-height: 44px; position: relative; z-index: 2; }
.nx-brand { display: flex; align-items: center; gap: 9px; color: var(--text); font-size: 21px; font-weight: 700; text-decoration: none; letter-spacing: -.8px; }
.nx-brand img { border-radius: 50%; }
.nx-icon-button { display: inline-grid; place-items: center; flex: none; width: 44px; height: 44px; padding: 10px; background: var(--raised); border: 1px solid var(--line); border-radius: 50%; color: var(--text); }
.nx-entry-hero { position: relative; height: 332px; margin: 26px -10px 6px; isolation: isolate; }
.nx-entry-hero h1 { position: absolute; top: 0; left: 0; margin: 0; font-size: clamp(75px,19vw,114px); font-weight: 850; letter-spacing: -.085em; line-height: 1; color: var(--text); z-index: -1; }
.nx-entry-hero > .nx-scene { position: absolute; top: 25px; right: -6px; width: 310px; height: 310px; }
.nx-entry-hero .nx-scene-plane { inset: 55px 24px 12px 0; border-radius: 38% 47% 30% 36%; background: var(--forest); box-shadow: 10px 10px 0 var(--scene); }
.nx-entry-hero .nx-scene-plane::after { inset: 16px; border-color: #c6a36270; }
.nx-entry-hero .nx-scene-orbit { width: 118%; height: 118%; left: -12%; top: -8%; }
.nx-entry-hero .nx-scene-character { width: 108%; height: 108%; left: -4%; bottom: 4%; }
.nx-hero-line { position: absolute; left: 10px; top: 135px; height: 150px; width: 1px; background: linear-gradient(var(--gold),transparent); }
.nx-hero-line::before { content: ""; width: 5px; height: 5px; border: 1px solid var(--gold); position: absolute; top: -10px; left: -3px; border-radius: 50%; }
.nx-entry-welcome { position: relative; padding-top: 4px; }
.nx-entry .nx-greeting { min-height: 102px; }
.nx-greeting [data-greeting-lead] { display: block; }
.nx-entry .nx-greeting [data-greeting-body] { display: block; max-width: 24em; margin-top: 10px; font-size: clamp(18px,5vw,22px); font-weight: 500; line-height: 1.6; letter-spacing: -.4px; text-wrap: pretty; }
.nx-entry h2 { margin: 0; font-size: 34px; font-weight: 650; line-height: 1.3; letter-spacing: -1.4px; }
.nx-entry-welcome .nx-primary { margin-top: 26px; }
.nx-entry .nx-account-greeting { min-height: 0; margin: 0 0 28px; padding-bottom: 24px; border-bottom: 1px solid var(--line); font-size: 28px; }
.nx-entry .button,.nx-entry .nx-primary { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; border: 0; border-radius: 17px; padding: 16px 20px; min-height: 58px; background: var(--accent); color: #fffefa; text-decoration: none; font: inherit; font-weight: 600; }
.nx-entry #feedback { color: var(--error); line-height: 1.8; margin-top: 20px; font-size: 14px; }
.nx-entry #feedback:empty { display: none; }
.nx-entry-footer { border-top: 1px solid var(--line); padding-top: 24px; margin-top: 38px; color: var(--muted); }
.nx-entry-footer a { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; color: var(--text); font-size: 14px; text-decoration: none; min-height: 44px; }
.nx-entry-footer .nx-icon { width: 17px; height: 17px; }
.nx-account-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 0 0 22px; }
.nx-account-heading #account-name { color: var(--muted); margin-bottom: 7px; font-size: 14px; overflow-wrap: anywhere; }
.nx-account-heading h2 { font-size: 30px; }
.nx-entry[data-entry-state="account"] .nx-entry-hero { height: 184px; margin-top: 20px; margin-bottom: 26px; }
.nx-entry[data-entry-state="account"] .nx-entry-hero h1 { font-size: clamp(65px,17vw,94px); top: 35px; }
.nx-entry[data-entry-state="account"] .nx-entry-hero > .nx-scene { width: 200px; height: 200px; top: -4px; right: -10px; }
.nx-entry[data-entry-state="account"] .nx-hero-line { height: 45px; top: 130px; }
.nx-computer { position: relative; padding: 22px; border: 1px solid var(--line); border-radius: 25px; background: var(--raised); margin-bottom: 16px; box-shadow: var(--shadow); }
.nx-computer[data-online="true"] { border-color: color-mix(in srgb,var(--accent) 30%,var(--line)); }
.nx-computer-head { display: flex; align-items: center; gap: 12px; }
.nx-device-icon { width: 46px; height: 46px; display: grid; place-items: center; flex: none; color: var(--green); border-radius: 15px; background: var(--soft); }
.nx-device-icon .nx-icon { width: 25px; height: 25px; }
.nx-computer h3 { flex: 1; min-width: 0; margin: 0; font-size: 19px; font-weight: 600; line-height: 1.5; overflow-wrap: anywhere; letter-spacing: -.5px; }
.nx-device-menu { position: relative; flex: none; }
.nx-device-menu summary { list-style: none; cursor: pointer; border: 0; background: transparent; }
.nx-device-menu summary::-webkit-details-marker { display: none; }
.nx-device-menu > button { position: absolute; right: 0; top: 48px; z-index: 3; white-space: nowrap; display: flex; align-items: center; gap: 10px; color: var(--error); background: var(--raised); padding: 12px 16px; border: 1px solid var(--line); border-radius: 15px; box-shadow: 0 10px 30px #10271d20; }
.nx-device-status { margin: 18px 0 !important; display: flex; align-items: flex-start; gap: 8px; color: var(--green); font-size: 13px; }
.nx-device-status::before { content: ""; width: 6px; height: 6px; margin-top: 8px; flex: none; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 4px var(--soft); }
.nx-computer[data-online="false"] .nx-device-status { color: var(--warning-text); }
.nx-device-reason,.nx-device-time,.nx-device-selected { display: block; font-size: 12px; color: var(--muted); line-height: 1.8; }
.nx-device-time { margin-top: 6px; }
.nx-device-selected { margin-top: 12px; color: var(--green); }
.nx-computer .nx-primary { margin-top: 18px; min-height: 50px; padding: 12px 16px; border-radius: 14px; font-size: 14px; }
.nx-computer[data-online="false"] .nx-primary { background: var(--surface); color: var(--muted); opacity: 1; }
.nx-empty { text-align: center; padding: 12px 18px 24px; border: 1px solid var(--line); border-radius: 26px; background: var(--raised); }
.nx-empty .nx-scene { width: 210px; height: 190px; margin: auto; }
.nx-empty p { color: var(--muted); font-size: 14px; line-height: 1.9; }
@media (min-width: 721px) {
  .nx-entry-main { width: min(100%,1020px); display: grid; grid-template-columns: 1fr 1fr; gap: 0 58px; padding: 30px 40px; }
  .nx-entry-header,.nx-entry-footer { grid-column: 1/-1; }
  .nx-entry-hero { grid-column: 1; grid-row: 2/4; height: 430px; margin-top: 64px; }
  .nx-entry-hero > .nx-scene { width: 370px; height: 370px; top: 50px; }
  .nx-entry-hero h1 { font-size: 112px; }
  .nx-entry-welcome { grid-column: 2; align-self: center; margin-top: 100px; }
  .nx-entry-welcome h2 { font-size: 44px; }
  #account { grid-column: 2; margin-top: 56px; }
  .nx-entry #feedback { grid-column: 2; }
  .nx-entry[data-entry-state="account"] .nx-entry-hero { height: 380px; position: sticky; top: 60px; }
  .nx-entry[data-entry-state="account"] .nx-entry-hero > .nx-scene { width: 320px; height: 320px; top: 60px; }
  .nx-entry[data-entry-state="account"] .nx-entry-hero h1 { top: 0; }
  .nx-entry-footer { margin-top: 50px; }
}
@media (max-width: 380px) {
  .nx-entry-main { padding-left: 20px; padding-right: 20px; }
  .nx-entry-hero { height: 296px; margin-top: 18px; }
  .nx-entry-hero > .nx-scene { width: 280px; height: 280px; }
  .nx-entry h2 { font-size: 31px; }
  .nx-computer { padding: 18px; }
}
@media (max-height: 740px) and (max-width: 720px) {
  .nx-entry-hero { height: 248px; margin-top: 14px; }
  .nx-entry-hero > .nx-scene { width: 250px; height: 250px; top: 10px; }
  .nx-entry-welcome .nx-primary { margin-top: 18px; }
}
@media (max-height: 500px) and (min-width: 721px) {
  .nx-entry-main { padding-top: 14px; column-gap: 32px; }
  .nx-entry-hero { height: 270px; margin-top: 16px; grid-row: 2; }
  .nx-entry-hero h1 { font-size: 84px; }
  .nx-entry-hero > .nx-scene { width: 250px; height: 250px; top: 18px; }
  .nx-entry-welcome { margin-top: 16px; }
  .nx-entry-welcome h2 { font-size: 30px; }
  .nx-entry-welcome .nx-primary { margin-top: 16px; }
}
