@font-face {
  font-family: 'Schibsted Grotesk';
  src: url('./schibsted-grotesk-latin.woff2') format('woff2');
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
}

/* Keep Twenty's theme switch, UI scaling, spacing, and status colors. */
html.light,
html.dark {
  --t-font-family: 'Schibsted Grotesk', system-ui, sans-serif;
  --t-accent-accent9: #2d5bff;
  --t-accent-accent10: #244bd9;
  --t-font-color-on-accent: #fff;
  --t-border-color-blue: #2d5bff;
}

html.light {
  --t-background-primary: #fbfaf7;
  --t-background-secondary: #f4f2ed;
  --t-background-tertiary: #ece9e2;
  --t-background-quaternary: #e2dfd7;
  --t-border-color-light: #e2dfd7;
  --t-border-color-medium: #d6d2c9;
  --t-border-color-strong: #b9b4a8;
  --t-font-color-primary: #0f1724;
  --t-font-color-secondary: #343e50;
  --t-font-color-tertiary: #586174;
  --t-accent-accent3: #edf1ff;
  --t-accent-accent4: #e3eaff;
  --t-accent-accent5: #d4e0ff;
  --t-accent-accent8: #849df7;
  --t-accent-accent11: #2449cb;
  --jettonry-desk: #eae6dd;
  --jettonry-grid-heading: #f0ede6;
  --jettonry-group-row: #f6f3ee;
  --jettonry-grid-shadow: #352b211a;
}

html.dark {
  --t-background-primary: #151f2e;
  --t-background-secondary: #0f1724;
  --t-background-tertiary: #1e2a3d;
  --t-background-quaternary: #263349;
  --t-border-color-light: #263349;
  --t-border-color-medium: #31405a;
  --t-border-color-strong: #4b5b75;
  --t-font-color-primary: #f4f2ed;
  --t-font-color-secondary: #d0d7e2;
  --t-font-color-tertiary: #a8b4c8;
  --t-accent-accent3: #192948;
  --t-accent-accent4: #1e315b;
  --t-accent-accent5: #273c72;
  --t-accent-accent8: #6e8cff;
  --t-accent-accent11: #adc1ff;
  --jettonry-desk: #0b1422;
  --jettonry-grid-heading: #1c2a40;
  --jettonry-group-row: #18263a;
  --jettonry-grid-shadow: #03081270;
}

/* Ink navigation and headers sit beside the workspace's chosen table theme. */
@media screen and (forced-colors: none) {
  #root :is(.sv8w7uw, .skbu4f7, .sxho7x6) {
    --t-background-primary: #172439;
    --t-background-secondary: #111d30;
    --t-background-tertiary: #233650;
    --t-background-transparent-light: #abc6fa20;
    --t-background-transparent-lighter: #abc6fa13;
    --t-border-color-medium: #425776;
    --t-border-color-strong: #5c7294;
    --t-font-color-primary: #f4f2ed;
    --t-font-color-secondary: #d7e1f0;
    --t-font-color-tertiary: #b8c8e0;
    --t-font-color-light: #96abc9;
    --t-accent-accent11: #adc1ff;
    color: var(--t-font-color-primary);
  }

  #root .sv8w7uw {
    background:
      linear-gradient(180deg, #0d1829 0, #0d1829 43%, #0d1829de 62%, #07111e34 100%),
      url('./metal-cobalt.webp') left bottom / auto 380px no-repeat #091422;
  }

  #root :is(.skbu4f7, .sxho7x6) {
    background:
      linear-gradient(90deg, #101c31 2%, #101c31f0 22%, #101c3159 66%, #0a1322bb 100%),
      url('./metal-cobalt.webp') right 17% / max(720px, 100%) auto no-repeat #101c31;
    box-shadow: inset 0 1px #7599ec40, inset 0 -1px #7ca4f45c;
  }

  #root .s11i4dxq {
    height: 88px;
    padding-inline: 10px;
    background: linear-gradient(165deg, #1e3356, #0d1829 73%);
    border-bottom-color: #405677;
  }

  #root .skbu4f7 {
    min-height: 88px;
    padding-inline: 22px;
  }

  #root .skbu4f7 .s9pz9l0 {
    gap: 8px;
    font-size: clamp(21px, 2.3vw, 32px);
    font-weight: 650;
    letter-spacing: -0.04em;
    line-height: 1.1;
  }

  #root .skbu4f7 .s9pz9l0 > svg {
    width: clamp(19px, 1.8vw, 25px);
    height: clamp(19px, 1.8vw, 25px);
    flex: none;
    color: #b8cdff;
    stroke: currentColor;
  }

  #root .skbu4f7 button[data-variant="solid"] {
    min-height: 32px;
    padding-inline: 11px;
    border-radius: 8px;
  }

  #root .sv8w7uw .navigation-drawer-item[aria-current]:not([aria-current="false"]) {
    background: linear-gradient(100deg, #335795, #1c3155);
    box-shadow: inset 2px 0 #8fb3ff, inset 0 0 0 1px #779efb25;
    color: var(--t-font-color-primary);
  }

  #root .s11i4dxq [data-testid="workspace-dropdown"]:has(> .sliumw4[aria-hidden="false"]) > [data-shape="square"] {
    display: none;
  }

  #root .s11i4dxq .sliumw4[aria-hidden="false"] {
    position: relative;
    width: 121px;
    height: 25px;
  }

  #root .s11i4dxq .sliumw4[aria-hidden="false"]::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('./jettonry-horizontal.svg') left center / contain no-repeat;
    pointer-events: none;
  }

  /* Preserve the workspace name as the menu's accessible label. */
  #root .s11i4dxq .sliumw4[aria-hidden="false"] .s1s653g5 {
    opacity: 0;
  }

  /* Frame the stock index viewport without changing its row geometry. */
  #root [data-page-surface="main"] .s9iz60d:has(.record-index-container-gater-for-drag-select) {
    background: radial-gradient(ellipse at 82% 2%, var(--t-background-secondary), var(--jettonry-desk) 58%);
  }

  #root .record-index-container-gater-for-drag-select :is(.s1jb8d3w, .header-cell) {
    background-color: var(--jettonry-grid-heading);
  }

  #root .record-index-container-gater-for-drag-select .s1jb8d3w {
    box-shadow: 0 1px 0 var(--t-border-color-medium);
  }

  #root .record-index-container-gater-for-drag-select .s13i6k3k {
    background-color: var(--jettonry-group-row);
  }

  @media (min-width: 769px) {
    #root .s9iz60d:has(.record-index-container-gater-for-drag-select) > .s11skfdf:has(.si9z1zl) {
      margin: 16px 18px 0;
      border: 1px solid var(--t-border-color-medium);
      border-bottom: 0;
      border-radius: 13px 13px 0 0;
      background: var(--t-background-primary);
    }

    #root .s9iz60d .record-index-container-gater-for-drag-select {
      width: auto;
      margin: 0 18px 18px;
      border: 1px solid var(--t-border-color-medium);
      border-radius: 0 0 13px 13px;
      background: var(--t-background-primary);
      box-shadow: 0 10px 24px var(--jettonry-grid-shadow);
    }
  }

  @media (max-width: 768px) {
    #root :is(.s11i4dxq, .skbu4f7) {
      height: auto;
      min-height: 62px;
    }

    #root .skbu4f7 {
      padding-inline: 12px;
    }
  }
}

/* Native Twenty sign-in background and content, using the pinned CSS hooks. */
#root .s1wc667 {
  color-scheme: dark;
  --t-background-primary: #152338;
  --t-background-secondary: #101b2e;
  --t-background-tertiary: #1c2a41;
  --t-background-primary-inverted: #2d5bff;
  --t-background-primary-inverted-hover: #244bd9;
  --t-background-transparent-light: #c6dcff17;
  --t-background-transparent-lighter: #c6dcff0d;
  --t-border-color-strong: #617697;
  --t-border-color-medium: #526784;
  --t-border-color-light: #3a4c6a;
  --t-font-color-primary: #f4f2ed;
  --t-font-color-secondary: #d4deed;
  --t-font-color-tertiary: #acbdd5;
  --t-font-color-inverted: #fff;
  --t-font-color-light: var(--t-font-color-tertiary);
  box-sizing: border-box;
  padding: clamp(18px, 5vw, 56px);
  background: linear-gradient(125deg, #0f172440, #0f172473), url('./metal-cobalt.webp') center / cover no-repeat #0f1724;
}

.s1wc667 > .swdi819 {
  box-sizing: border-box;
  flex: 0 0 auto;
  width: min(100%, 424px);
  margin: auto;
  padding: clamp(22px, 5vw, 34px);
  background:
    linear-gradient(145deg, #233752f2, #111d31f5 44%, #101c30f5) padding-box,
    linear-gradient(137deg, #8caddd, #415a80 29%, #22344d 64%, #3c659b) border-box;
  backdrop-filter: blur(14px);
  border: 1px solid transparent;
  border-radius: 20px;
  box-shadow: inset 0 1px #c1dcff1a, 0 24px 65px #050b15a6;
}

.s1wc667 .si03ohs {
  width: min(180px, 63vw);
  height: 38px;
  margin-block: 0;
}

.s1wc667 .s1u3xbtx {
  background-image: url('./jettonry-horizontal.svg') !important;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}

.s1wc667 .sztoge {
  display: none;
}

.s1wc667 .sfyinng {
  margin-top: 22px;
}

.s1wc667 .scp97ch {
  margin-block: 20px 14px;
}

.jettonry-login-heading {
  text-align: center;
}

.jettonry-login-heading h1 {
  margin: 0;
  color: var(--t-font-color-primary);
  font-size: clamp(20px, 4vw, 25px);
  font-weight: 650;
  letter-spacing: -0.025em;
  line-height: 1.18;
}

.jettonry-login-heading p {
  margin: 6px 0 0;
  color: var(--t-font-color-tertiary);
  font-size: 12px;
  line-height: 1.4;
}

.jettonry-auth-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 4px 12px;
  max-width: 100%;
  color: var(--t-font-color-tertiary);
  font-size: var(--t-font-size-sm);
  text-align: center;
}

.jettonry-source {
  color: inherit;
  text-decoration: none;
}

.jettonry-source:hover,
.jettonry-source:focus-visible {
  text-decoration: underline;
}
