/* Shared visual language. Fiscal print layouts retain their own styles. */
@media screen {
  :root {
    --bg: #080f1c;
    --p: #101e31;
    --line: #293c53;
    --mut: #a8bbce;
    --g: #67e5c3;
  }
  body { background: radial-gradient(ellipse at 85% 0, #142d42 0, transparent 46%), var(--bg); }
  button, input, select, textarea { -webkit-tap-highlight-color: transparent; }
  button:not(:disabled), summary { cursor: pointer; }
  button:focus-visible, a:focus-visible, summary:focus-visible,
  input:focus-visible, select:focus-visible, textarea:focus-visible {
    outline: 2px solid #94f5da;
    outline-offset: 3px;
  }
  input, select { border-color: #3a5069; background: #0b1727; }
  input:not(:disabled):focus, select:focus, textarea:focus { border-color: var(--g); }
  .login, section { background: linear-gradient(145deg, #122136, #0f1b2d); box-shadow: 0 8px 26px #00000016; }
  section > h3:first-child { margin-top: 0; }
  button.primary, section button.primary, .legal-sheet button.primary {
    background: #67e5c3;
    border-color: #8aefd4;
    color: #082b25;
    box-shadow: 0 4px 12px #00000024;
  }
  button:disabled { cursor: not-allowed; }
  .app { grid-template-columns: 256px minmax(0, 1fr); }
  .app aside { padding: 26px 16px 20px; border-right-color: #263a50; background: #0b1626; }
  .brand { padding: 0 9px; margin-bottom: 24px; }
  .logo { box-shadow: 0 6px 20px #2dc6ab20; }
  .app nav { gap: 19px; }
  .nav-group { display: grid; gap: 4px; }
  .nav-group-title { margin: 0 0 7px 14px; color: #8ea7bf; font-size: 10px; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; }
  .app nav button { display: flex; align-items: center; gap: 11px; padding: 10px 12px; border-radius: 10px; min-height: 44px; color: #b9c9d9; text-align: left; }
  .nav-icon { width: 19px; height: 19px; flex: 0 0 19px; opacity: .85; }
  .app nav .on { color: #bdf9e8; background: #173a3e; border-color: #315e60; box-shadow: inset 3px 0 #67e5c3; }
  .app nav .on .nav-icon { color: #83efd0; opacity: 1; }
  .planbox { background: #101f31; border-color: #2c455b; border-radius: 14px; }
  .app header h1 { letter-spacing: -.04em; font-weight: 720; }
  .app header { border-bottom-color: #24364c; }
  .user { background: #101e31; box-shadow: none; }
  .hero { background: radial-gradient(ellipse at 100% 0, #205148 0, transparent 58%), linear-gradient(130deg, #152c43, #102134); border: 1px solid #365b68; border-radius: 24px; padding: 34px; }
  .hero h2 { font-weight: 720; letter-spacing: -.045em; line-height: 1.12; }
  .hero .primary { margin-top: 8px; min-height: 48px; padding-inline: 22px; }
  .orb { width: 164px; height: 150px; border: 1px solid #588b80; border-radius: 24px; background: #0e302f; box-shadow: 0 12px 26px #0002; gap: 2px; }
  .orb b { color: #baffea; font-size: 52px; font-variant-numeric: tabular-nums; }
  .orb small { color: #c0dfd7; }
  .metric { position: relative; overflow: hidden; border-radius: 18px; background: #112034; }
  .metric::before { content: ''; position: absolute; top: 0; left: 22px; width: 32px; height: 3px; border-radius: 0 0 4px 4px; background: #67e5c3; }
  .metric small { color: #b2c4d7; font-weight: 600; }
  .metric h2, .invoice-summary b { font-variant-numeric: tabular-nums; letter-spacing: -.04em; }
  .metric h2 { font-size: clamp(22px, 2.25vw, 32px); overflow-wrap: anywhere; }
  .quick button { border-color: #324960; background: #15283e; box-shadow: none; min-height: 100px; }
  .quick button b { font-size: 14px; }
  .setup-help { border-color: #30485f; background: #0e1c2e; }
  .setup-help > summary { line-height: 1.5; }
  .invoice-head { background: #14273d; }
  .invoice-table th { background: #102035; font-size: 11px; letter-spacing: .035em; }
  .invoice-summary > div { background: #102034; }
  .plans section { border-radius: 20px; background: #101f33; }
  .plans section h3 { font-size: 20px; margin-bottom: 0; }
  .plans section h2 { letter-spacing: -.045em; font-variant-numeric: tabular-nums; }
  .plans section.current-plan { background: linear-gradient(165deg, #183b3e, #102333); border-color: #76e8c7; }
  .plans .plan-benefits { flex: 1; }
  .fab { border-radius: 16px; background: #173b39; border-color: #548c7e; }

  /* A recognizable entrance with a short brand story and a focused form. */
  .auth.auth-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 460px); align-items: center; gap: clamp(36px, 6vw, 90px); max-width: 1160px; padding: 48px 28px; margin: 0 auto; }
  .auth-showcase { align-self: center; min-width: 0; }
  .auth-brand { display: flex; align-items: center; gap: 12px; font-size: 26px; font-weight: 650; letter-spacing: -.04em; }
  .auth-brand b { color: var(--g); }
  .auth-story { margin-top: 64px; }
  .auth-eyebrow { color: #a4bcd1; font-size: 10px; font-weight: 700; letter-spacing: .13em; }
  .auth-story h2 { margin: 20px 0 22px; font-size: clamp(40px, 5vw, 64px); font-weight: 700; line-height: 1.08; letter-spacing: -.055em; }
  .auth-story h2 span { color: #83e8ca; }
  .auth-story > p:not(.auth-eyebrow) { max-width: 360px; color: #b2c5d7; font-size: 16px; line-height: 1.8; }
  .auth-features { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 30px; }
  .auth-features span { color: #c2d8e7; border: 1px solid #31495e; border-radius: 9px; padding: 7px 11px; font-size: 11px; background: #102033; }
  .auth-layout > .login { width: 100%; padding: 32px; border: 1px solid #344a62; background: #122137; border-radius: 24px; box-shadow: 0 24px 64px #0003; }
  .auth-layout .login > .auth-eyebrow { margin-top: 0; }
  .auth-layout .login h1 { font-size: 27px; font-weight: 700; letter-spacing: -.04em; margin: 12px 0 22px; }
  .auth-layout .tabs { margin: 0 0 24px; padding: 5px; background: #0b192a; border-color: #2d4259; }
  .auth-layout .tabs[hidden] { display: none; }
  .auth-layout .tabs button { background: transparent; color: #aabed2; font-size: 13px; min-height: 44px; }
  .auth-layout .tabs button[aria-pressed=true] { background: #254056; color: #f1fff9; box-shadow: 0 2px 5px #0002; }
  .auth-layout form { gap: 11px; }
  .auth-layout form > .note { margin: 0 0 10px; padding: 12px 14px; font-size: 12px; background: #152f36; border-color: #355c60; }
  .auth-layout [data-auth-status]:empty { display: none; }
  .auth-layout form > small { font-size: 12px; line-height: 1.6; color: #abc0d3; }
  .auth-layout .login form > button:not(.primary) { border-color: transparent; background: transparent; color: #9cecd8; font-size: 12px; min-height: 40px; padding: 7px 10px; }
  .auth-layout form > .primary { min-height: 48px; margin-top: 3px; }
  .auth-layout .auth-legal { margin-top: 22px; padding-top: 15px; }
  .auth-layout .auth-legal .linkbtn { font-size: 11px; }
  .auth-layout .consent { align-items: flex-start; }
  .auth-layout .consent input { margin-top: 4px; }

  @media (hover: hover) {
    .app nav button:not(.on):hover { background: #152b40; color: #f1f7fc; }
    .quick button:hover { border-color: #62978d; background: #1b3448; }
    button.primary:not(:disabled):hover { background: #8aefd4; border-color: #a7f8e1; }
    .auth-layout .tabs button:not([aria-pressed=true]):hover { color: white; background: #172c41; }
  }
  @media (max-width: 1100px) { .app { grid-template-columns: 224px minmax(0, 1fr); } }
  @media (max-width: 800px) {
    .auth.auth-layout { grid-template-columns: minmax(0, 460px); justify-content: center; padding: 28px 20px; gap: 22px; }
    .auth-showcase { width: 100%; }
    .auth-story { display: none; }
    .auth-brand { font-size: 23px; }
  }
  @media (max-width: 700px) {
    .app { grid-template-columns: minmax(0, 1fr); }
    .app aside { padding: 16px; }
    .brand { padding: 0; margin-bottom: 16px; }
    .app nav { display: flex; gap: 6px; padding: 3px 3px 9px; scroll-padding-inline: 3px; }
    .nav-group { display: contents; }
    .nav-group-title { display: none; }
    .app nav button { gap: 8px; padding: 10px 12px; }
    .nav-icon { width: 17px; height: 17px; flex-basis: 17px; }
    .hero { padding: 24px; border-radius: 20px; }
    .hero h2 { font-size: clamp(28px, 6.5vw, 36px); }
    .quick button { min-height: 84px; }
    .auth-layout > .login { padding: 24px; border-radius: 20px; }
  }
  @media (max-width: 380px) {
    .auth.auth-layout { padding: 20px 14px; }
    .auth-layout > .login { padding: 20px; }
    .auth-layout .login h1 { font-size: 25px; }
  }
}
