@font-face {
  font-family: "es_buildregular";
  src: url("https://scoryx.com/assets/fonts/es_build-webfont.woff2") format("woff2"),
       url("https://scoryx.com/assets/fonts/es_build-webfont.woff") format("woff");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "es_buildmedium";
  src: url("https://scoryx.com/assets/fonts/es_build_medium-webfont.woff2") format("woff2"),
       url("https://scoryx.com/assets/fonts/es_build_medium-webfont.woff") format("woff");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #19151e;
  --bg-deep: #0d0115;

  --panel: rgba(26, 26, 26, 0.72);
  --panel-solid: #26202d;
  --panel-hover: rgba(95, 33, 172, 0.16);

  --border: #3f354b;
  --border-light: rgba(255, 255, 255, 0.09);

  --text: #fbfbfc;
  --text-light: #d8d2df;
  --text-muted: #a496b5;

  --primary: #5f21ac;
  --primary-dark: #471981;
  --primary-light: #772ad6;
  --primary-hover: #843fda;

  --accent: #a421ac;
  --teal: #21aca4;

  --success: #21ac21;
  --warning: #acac21;
  --error: #ac2121;

  --radius: 6px;
  --radius-lg: 12px;

  --font: "es_buildregular", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-medium: "es_buildmedium", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* ─────────────────────────────────────
   RESET
───────────────────────────────────── */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

html {
  font-size: 16px;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  font-family: var(--font);
  line-height: 1.5;
  background:
    radial-gradient(
      ellipse 55% 28% at 50% 0%,
      rgba(141, 78, 255, 0.25) 0%,
      rgba(79, 29, 145, 0.12) 40%,
      transparent 72%
    ),
    linear-gradient(
      180deg,
      #08050d 0%,
      #030205 30%,
      #000 75%,
      #020103 100%
    );
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

/* ─────────────────────────────────────
   HEADER
───────────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;

  height: 58px;
  padding: 0 24px;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;

  background: rgba(0, 0, 0, 0.68);
  border-bottom: 1px solid var(--border);

  backdrop-filter: blur(12px) saturate(160%);
  -webkit-backdrop-filter: blur(12px) saturate(160%);
}

.brand {
  min-width: 0;

  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo {
  display: block;
  width: auto;
  height: 27px;
  flex-shrink: 0;
}

.brand-divider {
  width: 1px;
  height: 22px;
  background: var(--border);
}

.brand-section {
  color: var(--text-light);
  font-size: 0.9rem;
  white-space: nowrap;
}

/* ─────────────────────────────────────
   BUTTONS
───────────────────────────────────── */

.report-button,
.primary-button {
  min-height: 36px;
  padding: 0 16px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  border: 0;
  border-radius: var(--radius);

  background: var(--primary);
  color: #fff;

  font-family: var(--font-medium);
  font-size: 0.9rem;

  cursor: pointer;

  transition:
    background-color 0.2s ease,
    transform 0.15s ease;
}

.report-button:hover,
.primary-button:hover {
  background: var(--primary-hover);
}

.report-button:active,
.primary-button:active {
  transform: translateY(1px);
}

/* ─────────────────────────────────────
   TOOLBAR
───────────────────────────────────── */

.toolbar {
  min-height: 74px;

  display: grid;
  grid-template-columns: minmax(300px, 430px) minmax(0, 1fr);

  background: rgba(10, 8, 14, 0.82);
  border-bottom: 1px solid var(--border);
}

.search-box {
  padding: 12px;
  border-right: 1px solid var(--border);
}

.search-box input {
  width: 100%;
  height: 48px;
  margin: 0;
  padding: 0 15px;

  border: 1px solid var(--border);
  border-radius: var(--radius);

  outline: none;
  background: #1e1e2a;
  color: var(--text);

  font-size: 1rem;

  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.search-box input::placeholder {
  color: var(--text-muted);
}

.search-box input:focus {
  border-color: var(--primary-light);
  box-shadow: 0 0 0 2px rgba(119, 42, 214, 0.22);
}

.toolbar-title {
  padding: 0 24px;

  display: flex;
  align-items: center;

  color: var(--text-muted);
  font-size: 0.85rem;
}

/* ─────────────────────────────────────
   TRACKER LAYOUT
───────────────────────────────────── */

.tracker {
  min-height: calc(100vh - 132px);

  display: grid;
  grid-template-columns: minmax(300px, 430px) minmax(0, 1fr);
}

/* ─────────────────────────────────────
   ISSUE LIST
───────────────────────────────────── */

.issue-list {
  min-width: 0;

  background: rgba(8, 6, 11, 0.52);
  border-right: 1px solid var(--border);
}

.issue-list-header {
  min-height: 58px;
  padding: 17px 18px;

  display: flex;
  align-items: center;

  border-bottom: 1px solid var(--border);

  color: var(--text);
  font-family: var(--font-medium);
  font-size: 1.05rem;
}

.issue-row {
  position: relative;

  min-width: 0;
  min-height: 82px;
  padding: 13px 112px 13px 18px;

  display: block;

  border-bottom: 1px solid var(--border-light);

  transition:
    background-color 0.15s ease,
    box-shadow 0.15s ease;
}

.issue-row:hover {
  background: var(--panel-hover);
}

.issue-row.active {
  background: rgba(95, 33, 172, 0.26);
  box-shadow: inset 3px 0 0 var(--primary-light);
}

.issue-row.active:hover {
  background: rgba(95, 33, 172, 0.32);
}

.issue-key {
  margin-bottom: 5px;

  color: #ae8cf9;
  font-family: var(--font-medium);
  font-size: 0.82rem;
}

.issue-summary {
  min-width: 0;

  color: var(--text-light);
  font-size: 0.92rem;
  line-height: 1.35;

  overflow-wrap: anywhere;
}

.bug-icon {
  margin-right: 5px;
}

/* ─────────────────────────────────────
   STATUS PILLS
───────────────────────────────────── */

.issue-status,
.status-pill {
  display: inline-flex;
  align-items: center;

  border-radius: 999px;

  font-family: var(--font-medium);
  font-size: 0.68rem;
  line-height: 1;

  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.issue-status {
  position: absolute;
  top: 50%;
  right: 14px;

  max-width: 92px;
  padding: 6px 9px;

  transform: translateY(-50%);

  text-align: center;
}

.status-pill {
  padding: 6px 9px;
}

.status-open {
  background: #3f354b;
  color: #eee9fe;
}

.status-confirmed {
  background: rgba(95, 33, 172, 0.65);
  color: #eee9fe;
}

.status-progress {
  background: rgba(172, 172, 33, 0.75);
  color: #fff;
}

.status-resolved {
  background: rgba(33, 172, 33, 0.62);
  color: #fff;
}

/* ─────────────────────────────────────
   WELCOME PANEL
───────────────────────────────────── */

.issue-content {
  min-width: 0;
}

.welcome-panel {
  padding: 48px;

  display: flex;
  align-items: center;
  justify-content: center;
}

.welcome-inner {
  width: min(620px, 100%);
  text-align: center;
}

.welcome-inner h1 {
  margin: 0 0 18px;

  font-family: var(--font-medium);
  font-size: clamp(2rem, 4vw, 3rem);

  background: linear-gradient(
    90deg,
    #cc2ad6 0%,
    #2ad6cc 50%,
    #89d62a 100%
  );

  background-clip: text;
  -webkit-background-clip: text;

  color: transparent;
  -webkit-text-fill-color: transparent;
}

.welcome-inner p {
  margin: 0 0 16px;

  color: var(--text-light);
  font-size: 1rem;
  line-height: 1.65;
}

.welcome-inner .primary-button {
  margin-top: 12px;
}

/* ─────────────────────────────────────
   ISSUE VIEW
───────────────────────────────────── */

.tracker-issue {
  min-width: 0;
  overflow: hidden;
}

.tracker-issue-inner {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 30px 34px 60px;
}

.single-issue {
  width: min(1280px, calc(100% - 48px));
  margin: 0 auto;
  padding: 34px 0 60px;
}

/* ─────────────────────────────────────
   BREADCRUMB
───────────────────────────────────── */

.breadcrumb {
  margin-bottom: 24px;

  display: flex;
  flex-wrap: wrap;
  gap: 7px;

  color: var(--text-muted);
  font-size: 0.84rem;
}

.breadcrumb a {
  color: #ae8cf9;
}

/* ─────────────────────────────────────
   ISSUE HEADING
───────────────────────────────────── */

.issue-heading {
  padding-bottom: 26px;
  border-bottom: 1px solid rgba(119, 42, 214, 0.35);
}

.issue-reference {
  margin-bottom: 8px;

  color: #ae8cf9;
  font-family: var(--font-medium);
  font-size: 0.9rem;
}

.issue-heading h1 {
  margin: 0;

  color: var(--text);
  font-family: var(--font-medium);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  line-height: 1.15;

  overflow-wrap: anywhere;
}

/*
  Report page:
  no divider under "Report a Bug".
*/

.report-page .issue-heading {
  margin-bottom: 24px;
  padding-bottom: 0;
  border-bottom: 0;
}

/* ─────────────────────────────────────
   ISSUE CONTENT
───────────────────────────────────── */

.issue-layout {
  padding-top: 30px;

  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 320px);
  gap: 48px;
}

.issue-layout > * {
  min-width: 0;
}

.issue-section {
  margin-bottom: 24px;
  padding: 24px;

  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.issue-section h2,
.sidebar-section h2 {
  margin: 0 0 20px;

  color: var(--text);
  font-family: var(--font-medium);
  font-size: 1.08rem;
}

.details-grid {
  margin: 0;

  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 28px;
}

.details-grid > div {
  min-width: 0;

  display: grid;
  grid-template-columns: 135px minmax(0, 1fr);
  gap: 10px;
}

dt {
  color: var(--text-muted);
}

dd {
  min-width: 0;
  margin: 0;

  color: var(--text-light);
  overflow-wrap: anywhere;
}

.description {
  color: var(--text-light);
  font-size: 0.96rem;
  line-height: 1.7;

  overflow-wrap: anywhere;
}

/* ─────────────────────────────────────
   ISSUE SIDEBAR
───────────────────────────────────── */

.issue-sidebar {
  min-width: 0;
}

.sidebar-section {
  padding: 22px;

  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.issue-sidebar dl {
  margin: 0;
}

.issue-sidebar dl > div {
  margin-bottom: 15px;

  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  gap: 10px;
}

.issue-sidebar dl > div:last-child {
  margin-bottom: 0;
}

/* ─────────────────────────────────────
   REPORT FORM
───────────────────────────────────── */

.bug-form {
  width: min(760px, 100%);
  margin-top: 0;
}

.form-group {
  margin-bottom: 22px;
}

.form-group label {
  display: block;
  margin-bottom: 7px;

  color: var(--text-light);
  font-family: var(--font-medium);
  font-size: 0.9rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  margin: 0;
  padding: 11px 13px;

  border: 1px solid var(--border);
  border-radius: var(--radius);

  outline: none;

  background: #1e1e2a;
  color: var(--text);

  font: inherit;
  line-height: 1.5;

  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.form-group input {
  min-height: 44px;
}

.form-group textarea {
  min-height: 110px;

  display: block;
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--primary-light);
  box-shadow: 0 0 0 2px rgba(119, 42, 214, 0.22);
}

/* ─────────────────────────────────────
   MESSAGES
───────────────────────────────────── */

.error-message,
.empty-message {
  padding: 20px;
  color: var(--text-muted);
}

/* ─────────────────────────────────────
   TABLET
───────────────────────────────────── */

@media (max-width: 900px) {
  .toolbar,
  .tracker {
    grid-template-columns: minmax(280px, 38%) minmax(0, 1fr);
  }

  .issue-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .issue-sidebar {
    width: 100%;
  }

  .details-grid {
    grid-template-columns: 1fr;
  }
}

/* ─────────────────────────────────────
   MOBILE
───────────────────────────────────── */

@media (max-width: 700px) {
  .site-header {
    height: 54px;
    padding: 0 14px;
    gap: 12px;
  }

  .brand {
    gap: 8px;
  }

  .brand-logo {
    height: 23px;
  }

  .brand-divider {
    height: 18px;
  }

  .brand-section {
    font-size: 0.76rem;
  }

  .report-button {
    min-height: 34px;
    padding: 0 11px;
    font-size: 0.78rem;
  }

  .toolbar {
    min-height: auto;
    display: block;
  }

  .search-box {
    padding: 10px;
    border-right: 0;
  }

  .search-box input {
    height: 44px;
  }

  .toolbar-title {
    display: none;
  }

  .tracker {
    min-height: 0;
    display: block;
  }

  .issue-list {
    border-right: 0;
  }

  /*
    When opening SCR-123 directly on mobile,
    show the issue immediately rather than
    placing 50 issues above it.
  */

  .tracker.issue-view .issue-list {
    display: none;
  }

  .issue-list-header {
    min-height: 50px;
    padding: 14px;
  }

  .issue-row {
    min-height: 0;
    padding: 13px 14px;
  }

  .issue-summary {
    padding-right: 0;
    margin-right: 0;
  }

  .issue-status {
    position: static;

    width: fit-content;
    max-width: none;
    margin-top: 9px;

    transform: none;
  }

  .welcome-panel {
    display: none;
  }

  .single-issue {
    width: calc(100% - 28px);
    padding: 22px 0 40px;
  }

  .tracker-issue-inner {
    padding: 22px 14px 40px;
  }

  .issue-heading {
    padding-bottom: 20px;
  }

  .report-page .issue-heading {
    margin-bottom: 20px;
    padding-bottom: 0;
  }

  .issue-layout {
    padding-top: 20px;
  }

  .issue-section,
  .sidebar-section {
    padding: 18px;
    border-radius: 8px;
  }

  .details-grid > div {
    grid-template-columns: 1fr;
    gap: 3px;
  }

  .issue-sidebar dl > div {
    grid-template-columns: 90px minmax(0, 1fr);
  }
}

/* ─────────────────────────────────────
   VERY SMALL PHONES
───────────────────────────────────── */

@media (max-width: 420px) {
  .brand-section,
  .brand-divider {
    display: none;
  }

  .site-header {
    padding: 0 12px;
  }

  .report-button {
    padding: 0 10px;
  }

  .single-issue {
    width: calc(100% - 20px);
  }

  .tracker-issue-inner {
    padding-left: 10px;
    padding-right: 10px;
  }

  .issue-sidebar dl > div {
    grid-template-columns: 1fr;
    gap: 2px;
  }
}