/* Scoped correction: preserve the established NovaKeys palette and styling layers.
   This file only standardizes typography and the homepage/redeem layout structure. */
:root {
  --font-display: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

html, body, #app, #app button, #app input, #app select, #app textarea {
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
}
#app h1, #app h2, #app h3, #app h4, #app .brand, #app .btn, #app label,
#app .nav-links a, #app .workspace-tab, #app .userbtn {
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
  font-style: normal !important;
}
#app input.keyinput, #app .item pre, #app code, #app pre, #app .mono {
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Consolas, monospace !important;
}

/* Homepage stays a landing page; the panel is a portal only and contains no key form. */
#app .home-landing-page { min-height: auto; }
#app .home-landing-page .redeem-hero-layout { align-items: center; }
#app .home-portal-panel { width: 100%; max-width: 510px; justify-self: end; min-width: 0; }
#app .home-portal-panel .redeem-panel-body { display: block; min-width: 0; }
#app .home-portal-copy { margin: 14px 0 0; line-height: 1.7; }
#app .home-portal-user { display: flex; align-items: center; gap: 10px; min-width: 0; margin: 14px 0 0; padding: 10px 12px; border: 1px solid rgba(236,169,216,.12); border-radius: 13px; background: rgba(255,255,255,.025); }
#app .home-portal-user > div { display: grid; gap: 2px; min-width: 0; }
#app .home-portal-user > div b { overflow-wrap: anywhere; }
#app .home-portal-user > div span { color: var(--muted, #ad9eae); font-size: .76rem; }
#app .home-portal-user .redeem-connected { margin-left: auto; white-space: nowrap; }
#app .home-portal-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; margin-top: 17px; }
#app .home-portal-actions .btn { min-height: 42px; }
#app .home-portal-panel .redeem-login-note { margin-top: 13px; }

/* A single compact panel on /redeem, without a second headline/header above it. */
#app .workspace-page-only-panel { min-height: calc(100svh - 72px); padding: clamp(30px, 5vw, 58px) 0 clamp(40px, 6vw, 68px); }
#app .workspace-page-only-panel .workspace-container { width: min(760px, calc(100% - 32px)); }
#app .workspace-page-only-panel .workspace-content { min-width: 0; }
#app .workspace-page-only-panel .workspace-tabs { margin-top: 0; }
#app .workspace-pane[hidden] { display: none !important; }
#app .workspace-login-card { display: flex; align-items: flex-start; gap: 16px; padding: 18px; border: 1px solid rgba(236,169,216,.14); border-radius: 16px; background: rgba(255,255,255,.025); }
#app .workspace-login-card > div { min-width: 0; }
#app .workspace-login-card h2 { margin: 2px 0 7px; font-size: 1.1rem; line-height: 1.3; }
#app .workspace-login-card p { margin: 0 0 13px; line-height: 1.65; }
#app .workspace-login-card .btn { min-height: 40px; }
#app .redeem-workspace-services { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; margin-top: 18px; padding-top: 15px; border-top: 1px solid rgba(236,169,216,.10); }
#app .redeem-workspace-services > span:first-child { flex-basis: 100%; color: inherit; opacity: .72; font-size: .62rem; font-weight: 700; letter-spacing: .12em; }
#app .redeem-workspace-services .redeem-brand-rail { display: flex; flex-wrap: wrap; gap: 9px; align-items: center; }
#app .redeem-workspace-services .redeem-brand-orb { width: 36px; height: 36px; padding: 5px; flex: 0 0 auto; border-radius: 50%; }
#app .redeem-workspace-services .redeem-brand-orb img { display: block; width: 100%; height: 100%; object-fit: contain; }
#app .workspace-page-only-panel .workspace-footer { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 46px; padding: 12px 22px; }

@media (max-width: 900px) {
  #app .home-landing-page .redeem-hero-layout { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  #app .home-portal-panel { justify-self: stretch; max-width: none; }
}
@media (max-width: 600px) {
  #app .home-portal-actions { display: grid; grid-template-columns: 1fr; }
  #app .home-portal-actions .btn { width: 100%; }
  #app .home-portal-user { align-items: flex-start; flex-wrap: wrap; }
  #app .home-portal-user .redeem-connected { margin-left: 0; }
  #app .workspace-page-only-panel { padding-top: 25px; padding-bottom: 38px; }
  #app .workspace-page-only-panel .workspace-container { width: calc(100% - 24px); }
  #app .workspace-page-only-panel .workspace-content { padding: 17px 15px 20px; }
  #app .workspace-login-card { flex-direction: column; padding: 15px; }
  #app .workspace-page-only-panel .workspace-footer { padding: 12px 15px; }
}
