:root {
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;

  color: #17171b;
  background: #f5f6f8;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(
      circle at 10% 0%,
      rgba(223, 138, 147, 0.16),
      transparent 30%
    ),
    radial-gradient(
      circle at 90% 5%,
      rgba(198, 105, 222, 0.13),
      transparent 28%
    ),
    #f6f7f9;
}

button {
  font: inherit;
}

.topbar {
  height: 78px;
  padding: 0 40px;
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid #e5e7eb;
  backdrop-filter: blur(18px);

  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 13px;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 13px;

  display: flex;
  align-items: center;
  justify-content: center;

  color: #fff;
  font-weight: 800;
  font-size: 19px;

  background:
    linear-gradient(
      135deg,
      #df8a93,
      #c669de,
      #9497cb
    );
}

.brand-title {
  font-size: 16px;
  font-weight: 800;
}

.brand-subtitle {
  margin-top: 2px;
  color: #7a7c84;
  font-size: 12px;
}

.environment-badge {
  padding: 8px 12px;
  border: 1px solid #e4d7ff;
  border-radius: 999px;

  color: #7550a3;
  background: #faf7ff;

  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.shell {
  width: min(1280px, calc(100% - 48px));
  margin: 0 auto;
  padding: 70px 0;
}

.hero {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 45px;
  align-items: center;

  margin-bottom: 60px;
}

.eyebrow {
  margin-bottom: 14px;

  color: #8b6d9a;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

h1 {
  max-width: 720px;
  margin: 0;

  font-size: clamp(42px, 6vw, 74px);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.hero-copy p {
  max-width: 620px;

  margin: 27px 0 32px;

  color: #686a72;
  font-size: 18px;
  line-height: 1.65;
}

.primary-button {
  padding: 14px 22px;
  border: 0;
  border-radius: 12px;

  color: #fff;
  background: #17171b;

  font-weight: 750;
  opacity: 0.7;
}

.status-card,
.preview {
  border: 1px solid rgba(220, 222, 228, 0.9);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow:
    0 25px 70px rgba(20, 20, 30, 0.07);
}

.status-card {
  padding: 27px;
}

.status-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;

  margin-bottom: 26px;

  font-weight: 760;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #28b67a;

  box-shadow:
    0 0 0 5px rgba(40, 182, 122, 0.12);
}

.metric-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.metric {
  min-height: 115px;
  padding: 20px;

  border-radius: 17px;
  background: #f7f7f9;

  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.metric-value {
  font-size: 26px;
  font-weight: 820;
  letter-spacing: -0.03em;
}

.metric-label {
  color: #81838a;
  font-size: 12px;
}

.preview {
  padding: 27px;
}

.preview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;

  margin-bottom: 26px;
}

.preview h2 {
  margin: 0;
  font-size: 25px;
  letter-spacing: -0.03em;
}

.preview-actions {
  display: flex;
  gap: 8px;
}

.preview-actions button {
  padding: 10px 14px;

  border: 1px solid #dedfe4;
  border-radius: 10px;

  background: #fff;
  color: #7a7c83;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th {
  padding: 13px 14px;

  color: #8b8d94;
  font-size: 11px;
  font-weight: 750;

  text-align: left;
  border-bottom: 1px solid #ececf0;
}

td {
  padding: 18px 14px;
  border-bottom: 1px solid #f0f0f2;

  font-size: 14px;
}

.pill {
  display: inline-flex;

  padding: 7px 10px;
  border-radius: 999px;

  font-size: 11px;
  font-weight: 750;
}

.fixed {
  color: #158463;
  background: #eaf9f3;
}

.review {
  color: #906113;
  background: #fff6df;
}

.reopen {
  color: #a74255;
  background: #fff0f2;
}

@media (max-width: 850px) {
  .topbar {
    padding: 0 20px;
  }

  .shell {
    width: min(100% - 30px, 1280px);
    padding-top: 40px;
  }

  .hero {
    grid-template-columns: 1fr;
  }

  .preview-header {
    align-items: flex-start;
    gap: 20px;
    flex-direction: column;
  }
}


/* =========================================================
   PORTAL AUTHENTICATION
   ========================================================= */

.hidden {
  display: none !important;
}

.login-view {
  min-height:
    calc(100vh - 78px - 140px);

  display: grid;

  grid-template-columns:
    minmax(0, 1.15fr)
    minmax(340px, 0.65fr);

  gap: 70px;

  align-items: center;
}

.login-copy p {
  max-width: 620px;

  margin-top: 28px;

  color: #686a72;
  font-size: 18px;
  line-height: 1.65;
}

.login-card {
  padding: 32px;

  border:
    1px solid
    rgba(220, 222, 228, 0.95);

  border-radius: 24px;

  background:
    rgba(255, 255, 255, 0.94);

  box-shadow:
    0 25px 70px
    rgba(20, 20, 30, 0.08);
}

.login-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.login-card h2 {
  margin: 0;

  font-size: 30px;
  letter-spacing: -0.04em;
}

.login-intro {
  margin:
    18px 0 28px;

  color: #74767e;
  line-height: 1.6;
}

.login-card form {
  display: flex;
  flex-direction: column;
}

.login-card label {
  margin:
    0 0 8px;

  color: #4e5057;

  font-size: 12px;
  font-weight: 750;
}

.login-card input {
  width: 100%;

  margin-bottom: 20px;
  padding: 14px 15px;

  border:
    1px solid #dadce2;

  border-radius: 11px;

  background: #fff;

  color: #17171b;

  font: inherit;

  outline: none;

  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

.login-card input:focus {
  border-color: #a990bb;

  box-shadow:
    0 0 0 4px
    rgba(198, 105, 222, 0.10);
}

.login-card .primary-button {
  width: 100%;
  margin-top: 3px;

  cursor: pointer;
  opacity: 1;
}

.login-card .primary-button:disabled {
  cursor: wait;
  opacity: 0.6;
}

.login-message {
  min-height: 20px;

  margin-top: 15px;

  font-size: 13px;
  line-height: 1.45;
}

.error-message {
  color: #a74255;
}

.security-note {
  margin-top: 25px;
  padding-top: 20px;

  border-top:
    1px solid #ededf0;

  color: #91939a;

  font-size: 11px;
  line-height: 1.55;
}

.portal-view {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.portal-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;

  gap: 30px;
}

.portal-title {
  font-size:
    clamp(38px, 5vw, 62px);
}

.portal-intro {
  margin-top: 18px;

  color: #74767e;
  font-size: 17px;
}

.account-area {
  display: flex;
  align-items: center;
  gap: 14px;

  padding-top: 7px;
}

.account-email {
  color: #6f7178;
  font-size: 13px;
}

.secondary-button {
  padding: 10px 14px;

  border:
    1px solid #dedfe4;

  border-radius: 10px;

  background: #fff;

  color: #474950;

  font-weight: 700;

  cursor: pointer;
}

@media (max-width: 850px) {
  .login-view {
    grid-template-columns: 1fr;
    gap: 35px;

    min-height: auto;
  }

  .login-card {
    padding: 24px;
  }

  .portal-heading {
    flex-direction: column;
  }

  .account-area {
    width: 100%;

    justify-content:
      space-between;
  }
}

.table-message {
  padding: 38px 24px;
  text-align: center;
  opacity: 0.7;
}

.pill.open,
.pill.default {
  opacity: 0.9;
}

.preview-actions button:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.pill.ready-review {
  background:
    rgba(255, 190, 92, 0.14);
  border-color:
    rgba(255, 190, 92, 0.28);
}


/* ============================================================
   BUG PORTAL - FULL STATUS WORKFLOW
   ============================================================ */

.pill.open {
  background: #d9f4ef;
  color: #247a6c;
}

.pill.reopened {
  background: #d9f4ef;
  color: #247a6c;
}

.pill.in-progress {
  background: #fff0c9;
  color: #9a6a00;
}

.pill.send-to-developer {
  background: #e8e5ff;
  color: #6256a8;
}

.pill.ready-review {
  background: #d9f2d2;
  color: #467d35;
}

.pill.blocked {
  background: #ffdadd;
  color: #bd2934;
}

.pill.review {
  background: #ece3ff;
  color: #7352a3;
}

.pill.fixed {
  background: #d6f7fa;
  color: #277882;
}


/* Nine cards:
   1 total + 8 workflow statuses */

.metric-grid {
  grid-template-columns:
    repeat(4, minmax(0, 1fr));
}


@media (max-width: 900px) {
  .metric-grid {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }
}


@media (max-width: 560px) {
  .metric-grid {
    grid-template-columns:
      1fr;
  }
}


/* =========================================================
   READ-ONLY BUG DETAIL VIEW
   ========================================================= */

body.bug-detail-open {
  overflow: hidden;
}

.bug-row {
  cursor: pointer;
  transition:
    background 140ms ease;
}

.bug-row:hover {
  background:
    rgba(248, 246, 250, 0.9);
}

.bug-row:focus-visible {
  outline:
    2px solid
    rgba(168, 96, 214, 0.55);
  outline-offset: -2px;
}

.bug-detail-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;

  display: flex;
  justify-content: flex-end;

  background:
    rgba(18, 15, 22, 0.28);

  backdrop-filter:
    blur(8px);

  -webkit-backdrop-filter:
    blur(8px);
}

.bug-detail-panel {
  width:
    min(680px, 100%);

  height: 100%;

  overflow-y: auto;

  background:
    rgba(255, 255, 255, 0.98);

  box-shadow:
    -24px 0 70px
    rgba(20, 16, 28, 0.16);

  animation:
    bug-detail-enter
    180ms ease-out;
}

@keyframes bug-detail-enter {
  from {
    opacity: 0;
    transform:
      translateX(22px);
  }

  to {
    opacity: 1;
    transform:
      translateX(0);
  }
}

.bug-detail-header {
  position: sticky;
  top: 0;
  z-index: 2;

  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;

  padding:
    34px 36px 24px;

  border-bottom:
    1px solid #ececf0;

  background:
    rgba(255, 255, 255, 0.96);

  backdrop-filter:
    blur(18px);

  -webkit-backdrop-filter:
    blur(18px);
}

.bug-detail-id {
  margin-bottom: 8px;

  color: #8d70a3;

  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.bug-detail-header h2 {
  max-width: 520px;

  margin: 0;

  font-size: 30px;
  line-height: 1.15;
  letter-spacing: -0.035em;
}

.bug-detail-close {
  width: 42px;
  height: 42px;

  flex: 0 0 auto;

  border:
    1px solid #dedfe4;

  border-radius: 12px;

  background: #fff;

  color: #575960;

  font-size: 27px;
  line-height: 1;

  cursor: pointer;
}

.bug-detail-close:hover {
  background: #f7f7f9;
}

.bug-detail-status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;

  padding:
    20px 36px;

  border-bottom:
    1px solid #f0f0f2;
}

.bug-detail-last-update {
  color: #888a91;
  font-size: 12px;
}

.bug-detail-content {
  padding:
    30px 36px 48px;
}

.detail-section-label {
  margin-bottom: 10px;

  color: #8d70a3;

  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.bug-detail-description {
  padding-bottom: 28px;

  border-bottom:
    1px solid #eeeeF1;
}

.bug-detail-description p {
  margin: 0;

  color: #34353a;

  font-size: 15px;
  line-height: 1.7;

  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.bug-detail-grid {
  display: grid;

  grid-template-columns:
    repeat(2, minmax(0, 1fr));

  gap: 14px;

  padding:
    28px 0;
}

.bug-detail-field {
  min-width: 0;

  padding: 16px;

  border:
    1px solid #eeeeF2;

  border-radius: 14px;

  background: #fafafd;
}

.bug-detail-label {
  display: block;

  margin-bottom: 7px;

  color: #8a8c93;

  font-size: 11px;
  font-weight: 700;
}

.bug-detail-value {
  display: block;

  color: #27282d;

  font-size: 13px;
  font-weight: 650;

  overflow-wrap: anywhere;
}

.bug-detail-evidence {
  padding-top: 4px;
}

.bug-detail-no-evidence {
  padding: 18px;

  border:
    1px dashed #dedfe5;

  border-radius: 14px;

  color: #8b8d94;

  font-size: 13px;
}

.bug-detail-evidence-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;

  padding:
    17px 18px;

  border:
    1px solid #e4dceb;

  border-radius: 14px;

  background:
    #fbf8fd;

  color: #75518b;

  font-size: 13px;
  font-weight: 750;

  text-decoration: none;
}

.bug-detail-evidence-link:hover {
  background:
    #f6effa;
}

@media (max-width: 650px) {
  .bug-detail-panel {
    width: 100%;
  }

  .bug-detail-header {
    padding:
      26px 22px 20px;
  }

  .bug-detail-header h2 {
    font-size: 25px;
  }

  .bug-detail-status-row {
    padding:
      18px 22px;

    align-items: flex-start;
    flex-direction: column;
  }

  .bug-detail-content {
    padding:
      24px 22px 40px;
  }

  .bug-detail-grid {
    grid-template-columns: 1fr;
  }
}


/* =========================================================
   PORTAL BUG FILTERS
   ========================================================= */

.bug-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;

  margin: 8px 0 10px;
}

.bug-search-wrap {
  flex:
    1 1 360px;
}

.bug-search-input,
.bug-filter-select {
  min-height: 44px;

  border:
    1px solid #dedfe5;

  border-radius: 12px;

  background: #fff;
  color: #25262b;

  font: inherit;
}

.bug-search-input {
  width: 100%;
  padding: 0 14px;
}

.bug-filter-controls {
  display: flex;
  align-items: center;
  gap: 9px;

  flex-wrap: wrap;
}

.bug-filter-select {
  padding:
    0 34px
    0 12px;
}

.clear-filters-button {
  min-height: 44px;
  padding: 0 14px;

  border:
    1px solid #dedfe5;

  border-radius: 12px;

  background: #fff;
  color: #55575e;

  font: inherit;
  font-size: 13px;
  font-weight: 700;

  cursor: pointer;
}

.clear-filters-button:hover {
  background: #f7f7f9;
}

.bug-search-input:focus,
.bug-filter-select:focus,
.clear-filters-button:focus-visible {
  outline:
    2px solid
    rgba(198, 105, 222, 0.28);

  outline-offset: 2px;

  border-color:
    rgba(198, 105, 222, 0.65);
}

.filter-result-summary {
  margin:
    0 0 16px;

  color: #8a8c93;
  font-size: 12px;
  font-weight: 650;
}

.sr-only {
  position: absolute;

  width: 1px;
  height: 1px;

  padding: 0;
  margin: -1px;

  overflow: hidden;

  clip:
    rect(
      0,
      0,
      0,
      0
    );

  white-space: nowrap;
  border: 0;
}

@media (max-width: 850px) {
  .bug-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .bug-search-wrap {
    flex: none;
    width: 100%;
  }

  .bug-filter-controls {
    width: 100%;
  }

  .bug-filter-select {
    flex:
      1 1 180px;
  }

  .clear-filters-button {
    flex:
      1 1 auto;
  }
}



/* =========================================================
   PORTAL BUG PAGINATION
   ========================================================= */

.pagination-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;

  margin:
    18px 0 0;

  padding:
    16px 0 2px;

  border-top:
    1px solid #ececf0;
}

.pagination-page-size,
.pagination-navigation {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pagination-label,
.pagination-page-info {
  color: #74767e;

  font-size: 13px;
  font-weight: 650;
}

.pagination-page-size-select {
  min-width: 76px;
}

.pagination-button {
  min-height: 40px;

  padding:
    0 14px;

  border:
    1px solid #dedfe5;

  border-radius: 11px;

  background: #fff;
  color: #4e5057;

  font: inherit;
  font-size: 13px;
  font-weight: 700;

  cursor: pointer;
}

.pagination-button:hover:not(:disabled) {
  background:
    #f7f7f9;
}

.pagination-button:focus-visible {
  outline:
    2px solid
    rgba(198, 105, 222, 0.28);

  outline-offset: 2px;

  border-color:
    rgba(198, 105, 222, 0.65);
}

.pagination-button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.pagination-empty
.pagination-page-info {
  opacity: 0.7;
}

@media (max-width: 650px) {
  .pagination-controls {
    align-items: stretch;
    flex-direction: column;
  }

  .pagination-page-size {
    justify-content:
      space-between;
  }

  .pagination-navigation {
    justify-content:
      space-between;
  }

  .pagination-button {
    flex:
      1 1 0;
  }

  .pagination-page-info {
    flex:
      0 0 auto;

    text-align: center;
  }
}


/* =========================================================
   PORTAL CSV EXPORT
   ========================================================= */

.secondary-action-button {
  min-height: 40px;

  padding:
    0 14px;

  border:
    1px solid #dedfe5;

  border-radius: 11px;

  background: #fff;
  color: #55575e;

  font: inherit;
  font-size: 13px;
  font-weight: 700;

  cursor: pointer;
}

.secondary-action-button:hover:not(:disabled) {
  background:
    #f7f7f9;
}

.secondary-action-button:focus-visible {
  outline:
    2px solid
    rgba(198, 105, 222, 0.28);

  outline-offset: 2px;

  border-color:
    rgba(198, 105, 222, 0.65);
}

.secondary-action-button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

@media (max-width: 650px) {
  .preview-actions {
    flex-wrap: wrap;
  }

  .secondary-action-button {
    flex:
      1 1 auto;
  }
}


/* =========================================================
   SHARED REPORTER FOOTER
   ========================================================= */

/* =========================================================
   POP IT GROUP FOOTER
   ========================================================= */

.site-footer {
  position: relative;
  overflow: hidden;

  padding: 72px 24px 28px;

  color: rgba(255, 255, 255, 0.82);

  background:
    radial-gradient(
      circle at 15% 0%,
      rgba(226, 189, 132, 0.16),
      transparent 32%
    ),
    radial-gradient(
      circle at 88% 80%,
      rgba(235, 215, 178, 0.08),
      transparent 30%
    ),
    #111114;
}

.site-footer::before {
  position: absolute;

  top: 0;
  left: 50%;

  width: min(1180px, calc(100% - 48px));
  height: 1px;

  background:
    linear-gradient(
      90deg,
      transparent,
      rgba(226, 189, 132, 0.58),
      transparent
    );

  content: "";

  transform: translateX(-50%);
}

.site-footer-inner {
  width: min(1180px, 100%);
  margin: 0 auto 56px;

  display: grid;

  grid-template-columns:
    minmax(280px, 1.25fr)
    minmax(160px, 0.65fr)
    minmax(260px, 1fr);

  gap: clamp(40px, 7vw, 90px);
}

.footer-brand {
  max-width: 390px;
}

.footer-logo {
  display: block;

  width: 220px;
  height: 72px;

  margin-bottom: 25px;
  margin-left: -165px;

  object-fit: contain;

  transform: scale(1.9);
  transform-origin: left center;
}

.footer-slogan {
  margin-bottom: 12px;

  color: #ffffff;

  font-family:
    Montserrat,
    Poppins,
    sans-serif;

  font-size: 19px;
  font-weight: 700;

  letter-spacing: -0.035em;
}

.footer-description {
  margin: 0;

  color: rgba(255, 255, 255, 0.5);

  font-size: 13px;
  line-height: 1.75;
}

.footer-column h2 {
  margin: 0 0 20px;

  color: #ffffff;

  font-family:
    Montserrat,
    Poppins,
    sans-serif;

  font-size: 13px;
  font-weight: 700;

  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-links {
  display: flex;
  flex-direction: column;

  gap: 11px;
}

.footer-links a,
.footer-links span {
  color: rgba(255, 255, 255, 0.56);

  font-size: 13px;
  line-height: 1.5;

  text-decoration: none;

  transition:
    color 160ms ease,
    transform 160ms ease;
}

.footer-links a:hover {
  color: #ffffff;

  transform: translateX(2px);
}

.footer-bottom {
  width: min(1180px, 100%);

  margin: 0 auto;

  padding-top: 24px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 24px;

  border-top:
    1px solid rgba(255, 255, 255, 0.08);
}

.footer-bottom p {
  margin: 0;

  color: rgba(255, 255, 255, 0.38);

  font-size: 11px;
}

.cookie-preferences-button {
  padding: 0;

  color: rgba(255, 255, 255, 0.52);

  background: transparent;

  cursor: pointer;

  font-size: 11px;

  text-decoration: underline;
  text-underline-offset: 3px;

  transition: color 160ms ease;
}

.cookie-preferences-button:hover {
  color: #ffffff;
}

@media (max-width: 800px) {
  .site-footer {
    padding-top: 54px;
  }

  .site-footer-inner {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));

    gap: 44px 32px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 520px) {
  .site-footer {
    padding:
      48px 20px
      calc(24px + env(safe-area-inset-bottom));
  }

  .site-footer-inner {
    margin-bottom: 40px;

    grid-template-columns: 1fr;

    gap: 34px;
  }

  .footer-brand {
    grid-column: auto;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;

    gap: 12px;
  }
}


/* =========================================================
   REPORTER PORTAL NAVIGATION
   ========================================================= */

.portal-main-nav {
  width: 100%;

  margin:
    -28px 0
    48px;

  display: flex;
  align-items: center;
  justify-content: flex-end;

  gap: 8px;
}

.portal-nav-link {
  min-height: 42px;

  padding:
    0 17px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  border:
    1px solid
    #dedfe5;

  border-radius: 12px;

  color: #666870;
  background: rgba(255, 255, 255, 0.82);

  font-size: 13px;
  font-weight: 700;

  text-decoration: none;

  transition:
    background 160ms ease,
    color 160ms ease,
    border-color 160ms ease,
    transform 160ms ease;
}

.portal-nav-link:hover {
  color: #222329;

  background: #ffffff;

  transform:
    translateY(-1px);
}

.portal-nav-link.active {
  color: #ffffff;

  border-color:
    #222329;

  background:
    #222329;
}

@media (max-width: 850px) {
  .portal-main-nav {
    margin:
      -14px 0
      34px;

    justify-content:
      stretch;
  }

  .portal-nav-link {
    flex:
      1 1 0;
  }
}


/* =========================================================
   MY BUGS PLATFORM BRANDING
   ========================================================= */

.portal-platform-cell {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 150px;
}

.portal-platform-logo {
  width: 34px;
  height: 34px;

  flex: 0 0 34px;

  display: flex;
  align-items: center;
  justify-content: center;

  overflow: hidden;

  border:
    1px solid
    rgba(220, 222, 228, 0.9);

  border-radius: 10px;

  background: #ffffff;
}

.portal-platform-logo img {
  display: block;

  max-width: 27px;
  max-height: 24px;

  width: auto;
  height: auto;

  object-fit: contain;
}

.portal-platform-logo-fallback {
  color: #555760;

  font-size: 10px;
  font-weight: 800;

  letter-spacing: 0.04em;
}

.portal-platform-name {
  font-weight: 650;
}


/* =========================================================
   MY BUGS COOKIE PREFERENCES
   ========================================================= */

.portal-cookie-dialog {
  position: fixed;
  inset: 0;

  z-index: 20000;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 24px;
}

.portal-cookie-backdrop {
  position: absolute;
  inset: 0;

  background:
    rgba(17, 17, 20, 0.58);

  backdrop-filter:
    blur(7px);
}

.portal-cookie-card {
  position: relative;

  z-index: 1;

  width:
    min(620px, 100%);

  max-height:
    calc(100vh - 48px);

  overflow-y: auto;

  padding: 28px;

  border:
    1px solid
    rgba(225, 226, 231, 0.96);

  border-radius: 22px;

  background: #ffffff;

  box-shadow:
    0 28px 90px
    rgba(0, 0, 0, 0.22);
}

.portal-cookie-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;

  gap: 20px;
}

.portal-cookie-header h2 {
  margin: 0;

  font-size: 26px;

  letter-spacing:
    -0.035em;
}

.portal-cookie-close {
  width: 38px;
  height: 38px;

  border:
    1px solid #e2e3e7;

  border-radius: 10px;

  background: #ffffff;

  cursor: pointer;

  font-size: 22px;
  line-height: 1;
}

.portal-cookie-intro {
  margin:
    18px 0 22px;

  color: #74767e;

  font-size: 13px;
  line-height: 1.7;
}

.portal-cookie-options {
  display: flex;
  flex-direction: column;

  border-top:
    1px solid #ececf0;
}

.portal-cookie-option {
  padding:
    18px 0;

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 24px;

  border-bottom:
    1px solid #ececf0;
}

.portal-cookie-option strong {
  display: block;

  margin-bottom: 5px;
}

.portal-cookie-option p {
  max-width: 430px;

  margin: 0;

  color: #7c7e85;

  font-size: 12px;
  line-height: 1.6;
}

.portal-cookie-option input {
  width: 18px;
  height: 18px;

  flex: 0 0 auto;
}

.portal-cookie-required {
  flex: 0 0 auto;

  color: #28a06b;

  font-size: 11px;
  font-weight: 750;
}

.portal-cookie-actions {
  margin-top: 24px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 18px;
}

.portal-cookie-actions > div {
  display: flex;

  gap: 9px;
}

.portal-cookie-policy {
  color: #666871;

  font-size: 12px;
  font-weight: 650;
}

.portal-cookie-save {
  width: auto;
  margin: 0;
  padding:
    10px 15px;
}

@media (max-width: 620px) {
  .portal-cookie-card {
    padding: 22px;
  }

  .portal-cookie-option {
    align-items: flex-start;
  }

  .portal-cookie-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .portal-cookie-actions > div {
    display: grid;

    grid-template-columns:
      1fr 1fr;
  }
}


/* =========================================================
   SHARED POP IT PRODUCT TOPBAR
   ========================================================= */

/* =========================================================
   POP IT PRODUCT SUPPORT TOPBAR
   Standalone navigation - does not modify page layout
   ========================================================= */

.product-topbar {
  position: relative;
  z-index: 500;

  width: 100%;

  padding: 18px 24px 0;

  box-sizing: border-box;
}

.product-topbar-inner {
  width: min(1240px, 100%);
  min-height: 64px;

  margin: 0 auto;
  padding: 8px 10px 8px 18px;

  display: flex;
  align-items: center;

  background:
    linear-gradient(
      135deg,
      rgba(21, 21, 25, 0.97),
      rgba(31, 31, 37, 0.96)
    );

  border:
    1px solid rgba(255, 255, 255, 0.08);

  border-radius: 18px;

  box-shadow:
    0 18px 55px rgba(26, 22, 30, 0.13),
    inset 0 1px 0 rgba(255, 255, 255, 0.055);

  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}


/* BRAND */

.product-topbar-brand {
  display: flex;
  align-items: center;

  min-width: 0;

  color: #ffffff;
  text-decoration: none;
}

.product-topbar-brand img {
  display: block;

  width: 92px;
  height: 42px;

  object-fit: contain;
}

.product-topbar-divider {
  width: 1px;
  height: 27px;

  margin: 0 17px;

  background:
    rgba(255, 255, 255, 0.12);
}

.product-topbar-title {
  color:
    rgba(255, 255, 255, 0.54);

  font-size: 10px;
  font-weight: 700;

  line-height: 1;

  letter-spacing: 0.13em;
  text-transform: uppercase;

  white-space: nowrap;
}


/* NAVIGATION */

.product-topbar-nav {
  display: flex;
  align-items: center;

  gap: 5px;

  margin-left: auto;
}

.product-topbar-link {
  position: relative;

  min-height: 42px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 0 17px;

  color:
    rgba(255, 255, 255, 0.58);

  background:
    transparent;

  border:
    1px solid transparent;

  border-radius: 12px;

  text-decoration: none;

  font-size: 13px;
  font-weight: 650;

  letter-spacing: -0.01em;

  transition:
    color 180ms ease,
    background 180ms ease,
    border-color 180ms ease,
    transform 180ms ease;
}

.product-topbar-link:hover {
  color: #ffffff;

  background:
    rgba(255, 255, 255, 0.055);

  border-color:
    rgba(255, 255, 255, 0.065);

  transform:
    translateY(-1px);
}

.product-topbar-link.active {
  color: #ffffff;

  background:
    rgba(255, 255, 255, 0.075);

  border-color:
    rgba(255, 255, 255, 0.08);

  box-shadow:
    inset 0 1px 0
    rgba(255, 255, 255, 0.05);
}

.product-topbar-link.active::after {
  content: "";

  position: absolute;

  left: 17px;
  right: 17px;
  bottom: 5px;

  height: 2px;

  border-radius: 999px;

  background:
    linear-gradient(
      90deg,
      #d5aa59,
      #efd28f
    );

  box-shadow:
    0 0 10px
    rgba(222, 181, 102, 0.28);
}


/* SYSTEM STATUS */

.product-topbar-status {
  min-height: 36px;

  display: inline-flex;
  align-items: center;

  gap: 8px;

  margin-left: 13px;
  padding: 0 13px;

  color:
    rgba(255, 255, 255, 0.52);

  background:
    rgba(255, 255, 255, 0.035);

  border:
    1px solid rgba(255, 255, 255, 0.065);

  border-radius: 999px;

  font-size: 10px;
  font-weight: 650;

  letter-spacing: 0.025em;

  white-space: nowrap;
}

.product-topbar-status-dot {
  width: 7px;
  height: 7px;

  flex: 0 0 7px;

  background:
    #54d88e;

  border-radius: 50%;

  box-shadow:
    0 0 0 4px rgba(84, 216, 142, 0.09),
    0 0 10px rgba(84, 216, 142, 0.3);
}


/* OLD HERO NAV IS NO LONGER NEEDED */

.reporter-page-nav {
  display: none !important;
}

/* =========================================================
   PRODUCT TOPBAR - RESPONSIVE
   Desktop above 900px intentionally untouched
   ========================================================= */


/* TABLET / SMALL LAPTOP
   681px - 900px
   ========================================================= */

@media (max-width: 900px) and (min-width: 681px) {

  .product-topbar {
    padding: 14px 16px 0;
  }

  .product-topbar-inner {
    min-height: 60px;
    padding: 7px 9px 7px 14px;
  }

  .product-topbar-brand {
    flex-shrink: 1;
    min-width: 0;
  }

  .product-topbar-brand img {
    width: 78px;
    height: 38px;
    flex: 0 0 auto;
  }

  .product-topbar-divider {
    height: 24px;
    margin: 0 13px;
    flex: 0 0 1px;
  }

  .product-topbar-title {
    font-size: 9px;
    letter-spacing: 0.1em;
  }

  .product-topbar-nav {
    flex: 0 0 auto;
  }

  .product-topbar-link {
    min-height: 39px;
    padding: 0 13px;
    font-size: 12px;
  }

  .product-topbar-status {
    min-height: 34px;
    margin-left: 8px;
    padding: 0 10px;
    font-size: 9px;
  }
}


/* MOBILE
   431px - 680px
   ========================================================= */

@media (max-width: 680px) {

  .product-topbar {
    padding: 10px 10px 0;
  }

  .product-topbar-inner {
    min-height: auto;

    display: grid;

    grid-template-columns:
      minmax(0, 1fr) auto;

    grid-template-areas:
      "brand status"
      "nav nav";

    column-gap: 10px;
    row-gap: 7px;

    padding: 9px 10px 8px;

    border-radius: 16px;
  }

  .product-topbar-brand {
    grid-area: brand;

    min-width: 0;
    min-height: 35px;
  }

  .product-topbar-brand img {
    width: 66px;
    height: 32px;

    flex: 0 0 auto;
  }

  .product-topbar-divider {
    width: 1px;
    height: 20px;

    margin: 0 10px;

    flex: 0 0 1px;
  }

  .product-topbar-title {
    min-width: 0;

    overflow: hidden;

    font-size: 8px;

    letter-spacing: 0.09em;

    white-space: nowrap;
    text-overflow: ellipsis;
  }

  .product-topbar-status {
    grid-area: status;

    justify-self: end;

    min-height: 29px;

    margin: 0;

    padding: 0 9px;

    gap: 6px;

    font-size: 8px;
  }

  .product-topbar-status-dot {
    width: 6px;
    height: 6px;

    flex: 0 0 6px;
  }

  .product-topbar-nav {
    grid-area: nav;

    width: 100%;

    display: grid;

    grid-template-columns:
      minmax(0, 1fr)
      minmax(0, 1fr);

    gap: 5px;

    margin: 0;
  }

  .product-topbar-link {
    width: 100%;
    min-width: 0;
    min-height: 35px;

    padding: 0 8px;

    border-radius: 10px;

    font-size: 11px;
  }

  .product-topbar-link.active::after {
    left: 28%;
    right: 28%;

    bottom: 3px;
  }
}


/* SMALL MOBILE
   Up to 430px
   ========================================================= */

@media (max-width: 430px) {

  .product-topbar {
    padding: 8px 8px 0;
  }

  .product-topbar-inner {
    column-gap: 7px;
    row-gap: 6px;

    padding: 8px;

    border-radius: 14px;
  }

  .product-topbar-brand img {
    width: 58px;
    height: 28px;
  }

  .product-topbar-divider {
    height: 18px;

    margin: 0 8px;
  }

  .product-topbar-title {
    font-size: 7px;

    letter-spacing: 0.07em;
  }

  .product-topbar-status {
    min-height: 27px;

    padding: 0 8px;

    gap: 5px;

    font-size: 7px;
  }

  .product-topbar-link {
    min-height: 33px;

    padding: 0 6px;

    font-size: 10px;
  }
}


/* VERY SMALL MOBILE
   Up to 350px
   ========================================================= */

@media (max-width: 350px) {

  .product-topbar-title,
  .product-topbar-divider {
    display: none;
  }

  .product-topbar-brand img {
    width: 61px;
  }

  .product-topbar-status {
    min-height: 26px;

    padding: 0 7px;

    font-size: 0;
  }

  .product-topbar-status-dot {
    margin: 0 2px;
  }

  .product-topbar-link {
    min-height: 32px;

    font-size: 9px;
  }
}

/* Old portal navigation replaced by shared topbar */
.portal-main-nav {
  display: none !important;
}


/* =========================================================
   CLEAN AUTOMATIC LOGIN FLOW
   ========================================================= */

#loginButton[hidden] {
  display: none !important;
}

.login-resend-link {
  width: auto !important;
  min-height: 0 !important;

  display: inline-flex;
  align-items: center;
  justify-content: flex-start;

  margin: 14px 0 0;
  padding: 0 !important;

  color: #777983;
  background: transparent !important;

  border: 0 !important;
  border-radius: 0 !important;

  box-shadow: none !important;

  font: inherit;
  font-size: 13px;
  font-weight: 650;

  cursor: pointer;

  text-decoration: none;

  transition:
    color 160ms ease,
    opacity 160ms ease;
}

.login-resend-link:hover {
  color: #17171b;
  background: transparent !important;
}

.login-resend-link:disabled {
  opacity: 0.45;
  cursor: default;
}

#codeSection {
  animation:
    cleanLoginReveal
    220ms ease both;
}

@keyframes cleanLoginReveal {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}



/* =========================================================
   MY BUGS DASHBOARD LOADING STATE
   ========================================================= */

.portal-loading-state {
  min-height: 280px;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  gap: 20px;

  padding: 48px 24px;

  background:
    rgba(255, 255, 255, 0.72);

  border:
    1px solid rgba(28, 28, 34, 0.08);

  border-radius: 18px;

  box-shadow:
    0 16px 45px rgba(26, 22, 30, 0.055);

  text-align: center;
}

.portal-loader-spinner {
  width: 38px;
  height: 38px;

  border:
    3px solid rgba(29, 29, 34, 0.1);

  border-top-color:
    #c79a49;

  border-radius: 50%;

  animation:
    portalLoaderSpin
    760ms
    linear
    infinite;
}

.portal-loader-copy {
  display: flex;
  flex-direction: column;

  gap: 7px;

  max-width: 390px;
}

.portal-loader-copy strong {
  color: #202126;

  font-size: 15px;
  font-weight: 750;
}

.portal-loader-copy span {
  color: #85878e;

  font-size: 12px;
  line-height: 1.5;
}

.portal-dashboard-content {
  display: flex;
  flex-direction: column;

  gap: 30px;

  opacity: 1;

  transition:
    opacity 180ms ease;
}

.portal-dashboard-content.portal-dashboard-loading {
  display: none;
}

@keyframes portalLoaderSpin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 680px) {

  .portal-loading-state {
    min-height: 220px;

    padding:
      38px 18px;

    border-radius:
      15px;
  }

  .portal-loader-spinner {
    width: 34px;
    height: 34px;
  }

  .portal-loader-copy strong {
    font-size:
      14px;
  }

  .portal-loader-copy span {
    font-size:
      11px;
  }
}

@media (prefers-reduced-motion: reduce) {

  .portal-loader-spinner {
    animation-duration:
      1.5s;
  }
}

/* =========================================================
   PORTAL STATUS GUIDE
   ========================================================= */


.status-guide {
  overflow: hidden;

  border:
    1px solid
    rgba(220, 222, 228, 0.9);

  border-radius: 20px;

  background:
    rgba(255, 255, 255, 0.9);

  box-shadow:
    0 18px 55px
    rgba(20, 20, 30, 0.05);
}


.status-guide-summary {
  min-height: 84px;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;

  padding: 20px 24px;

  cursor: pointer;
  list-style: none;

  user-select: none;
}


.status-guide-summary::-webkit-details-marker {
  display: none;
}


.status-guide-summary-copy {
  display: flex;
  align-items: center;
  gap: 15px;
}


.status-guide-summary-copy > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}


.status-guide-summary-copy strong {
  color: #222228;

  font-size: 15px;
  font-weight: 780;
}


.status-guide-summary-copy span:not(.status-guide-icon) {
  color: #85878f;

  font-size: 12px;
  line-height: 1.45;
}


.status-guide-icon {
  width: 36px;
  height: 36px;

  flex: 0 0 36px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  border-radius: 11px;

  color: #775e89;

  background:
    rgba(198, 105, 222, 0.10);

  font-size: 15px;
  font-weight: 800;
}


.status-guide-chevron {
  width: 34px;
  height: 34px;

  flex: 0 0 34px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  border:
    1px solid #e3e3e8;

  border-radius: 10px;

  color: #777982;
  background: #fff;

  font-size: 21px;
  font-weight: 400;

  transition:
    transform 180ms ease,
    background 180ms ease;
}


.status-guide[open]
.status-guide-chevron {
  transform: rotate(45deg);
}


.status-guide-content {
  display: grid;
  grid-template-columns:
    repeat(2, minmax(0, 1fr));

  gap: 0;

  padding:
    4px 24px 10px;

  border-top:
    1px solid #eeeeF2;

  animation:
    statusGuideReveal
    180ms ease both;
}


.status-guide-item {
  min-width: 0;

  display: flex;
  align-items: flex-start;
  gap: 14px;

  padding: 20px 12px 20px 0;

  border-bottom:
    1px solid #f0f0f3;
}


.status-guide-item:nth-child(even) {
  padding-left: 22px;
}


.status-guide-item:nth-last-child(-n + 2) {
  border-bottom: 0;
}


.status-guide-item p {
  margin: 2px 0 0;

  color: #74767e;

  font-size: 13px;
  line-height: 1.55;
}


.status-guide-badge {
  flex: 0 0 auto;

  display: inline-flex;
  align-items: center;

  padding: 7px 10px;

  border-radius: 999px;

  white-space: nowrap;

  font-size: 11px;
  font-weight: 750;
}


.status-guide-open {
  background: #f1f1f4;
  color: #65666d;
}


.status-guide-reopened {
  background: #fff0f2;
  color: #a74255;
}


.status-guide-progress {
  background: #e8f1ff;
  color: #416b9a;
}


.status-guide-ready {
  background: rgba(255, 190, 92, 0.14);
  color: #956416;
}


.status-guide-blocked {
  background: #ffdadd;
  color: #bd2934;
}


.status-guide-popit {
  background: #ece3ff;
  color: #7352a3;
}


.status-guide-fixed {
  background: #d6f7fa;
  color: #277882;
}


@keyframes statusGuideReveal {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}


@media (max-width: 760px) {
  .status-guide-summary {
    min-height: 76px;
    padding: 18px;
  }

  .status-guide-summary-copy {
    gap: 12px;
  }

  .status-guide-content {
    grid-template-columns: 1fr;
    padding:
      2px 18px 8px;
  }

  .status-guide-item,
  .status-guide-item:nth-child(even) {
    padding:
      17px 0;
  }

  .status-guide-item:nth-last-child(2) {
    border-bottom:
      1px solid #f0f0f3;
  }

  .status-guide-item:last-child {
    border-bottom: 0;
  }
}


@media (max-width: 480px) {
  .status-guide-item {
    flex-direction: column;
    gap: 9px;
  }

  .status-guide-summary-copy
  > div
  > span {
    display: none;
  }
}




/* =========================================================
   MY BUGS - REPORTER ACTIONS
   ========================================================= */

.bug-detail-actions {
  margin-top: 30px;
  padding-top: 28px;

  border-top:
    1px solid #eeeeF1;
}


.bug-detail-actions-intro {
  margin:
    0 0 18px;

  color: #74767e;

  font-size: 13px;
  line-height: 1.55;
}


.bug-detail-action-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}


.bug-action-button,
.bug-action-primary,
.bug-action-secondary {
  min-height: 44px;

  padding:
    11px 16px;

  border-radius: 11px;

  font: inherit;
  font-size: 13px;
  font-weight: 750;

  cursor: pointer;

  transition:
    transform 140ms ease,
    box-shadow 140ms ease,
    background 140ms ease,
    border-color 140ms ease,
    opacity 140ms ease;
}


.bug-action-button:hover,
.bug-action-primary:hover,
.bug-action-secondary:hover {
  transform:
    translateY(-1px);
}


.bug-action-button:disabled,
.bug-action-primary:disabled,
.bug-action-secondary:disabled {
  cursor: wait;
  opacity: 0.55;
  transform: none;
}


.bug-action-reopen {
  border:
    1px solid
    rgba(167, 66, 85, 0.22);

  background:
    #fff4f6;

  color:
    #a74255;
}


.bug-action-reopen:hover {
  background:
    #ffecef;
}


.bug-action-fixed {
  border:
    1px solid
    rgba(39, 120, 130, 0.20);

  background:
    #eafafb;

  color:
    #277882;
}


.bug-action-fixed:hover {
  background:
    #ddf6f8;
}


.bug-action-form {
  margin-top: 18px;
  padding: 18px;

  border:
    1px solid #e7e7ec;

  border-radius: 15px;

  background:
    #fafafd;
}


.bug-action-form label {
  display: block;

  margin-bottom: 9px;

  color:
    #4e5057;

  font-size: 12px;
  font-weight: 750;
}


.bug-action-form textarea,
.bug-action-form input {
  width: 100%;

  box-sizing: border-box;

  padding:
    12px 13px;

  border:
    1px solid #dcdde3;

  border-radius: 10px;

  background:
    #fff;

  color:
    #25262b;

  font: inherit;
  font-size: 14px;

  outline: none;

  transition:
    border-color 140ms ease,
    box-shadow 140ms ease;
}


.bug-action-form textarea {
  min-height: 120px;

  resize: vertical;

  line-height: 1.55;
}


.bug-action-form textarea:focus,
.bug-action-form input:focus {
  border-color:
    #a990bb;

  box-shadow:
    0 0 0 4px
    rgba(198, 105, 222, 0.10);
}


.bug-action-form-buttons {
  display: flex;
  justify-content: flex-end;
  gap: 9px;

  margin-top: 14px;
}


.bug-action-secondary {
  border:
    1px solid #dedfe4;

  background:
    #fff;

  color:
    #666870;
}


.bug-action-primary {
  border:
    1px solid #17171b;

  background:
    #17171b;

  color:
    #fff;
}


.bug-action-primary-reopen {
  border-color:
    #a74255;

  background:
    #a74255;
}


.bug-action-primary-fixed {
  border-color:
    #277882;

  background:
    #277882;
}


.bug-action-message {
  margin-top: 14px;
  padding:
    11px 13px;

  border-radius: 10px;

  font-size: 12px;
  font-weight: 650;
  line-height: 1.45;
}


.bug-action-message-error {
  color:
    #9d354a;

  background:
    #fff0f3;

  border:
    1px solid
    rgba(167, 66, 85, 0.14);
}


.bug-action-message-success {
  color:
    #23735d;

  background:
    #edf9f4;

  border:
    1px solid
    rgba(35, 115, 93, 0.14);
}


@media (max-width: 560px) {
  .bug-detail-action-buttons {
    flex-direction: column;
  }

  .bug-action-button {
    width: 100%;
  }

  .bug-action-form-buttons {
    flex-direction: column-reverse;
  }

  .bug-action-primary,
  .bug-action-secondary {
    width: 100%;
  }
}

/* Send to Developer - status guide */
.status-guide-send-developer {
  background: #e8e5ff;
  color: #6256a8;
}


/* ============================================================
   BUG PORTAL SAAS STATUS DASHBOARD
   ============================================================ */

.status-dashboard {
  overflow: hidden;
}

.status-dashboard-header {
  align-items: flex-start;
  margin-bottom: 30px;
}

.status-dashboard-header h2 {
  margin: 4px 0 6px;
  font-size: 24px;
  letter-spacing: -0.035em;
}

.status-dashboard-header p {
  margin: 0;
  max-width: 620px;
  color: #85868d;
  font-size: 13px;
  line-height: 1.55;
  font-weight: 500;
}

.status-dashboard-eyebrow {
  display: block;
  color: #9a9ba2;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.13em;
}

.status-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;

  padding: 8px 11px;
  border: 1px solid #e8e8ed;
  border-radius: 999px;

  background: rgba(255, 255, 255, 0.76);

  color: #62646a;
  font-size: 11px;
  font-weight: 700;
}

.status-live-badge .status-dot {
  width: 7px;
  height: 7px;

  animation:
    portalLivePulse 2.4s ease-in-out infinite;
}

@keyframes portalLivePulse {
  0%,
  100% {
    box-shadow:
      0 0 0 4px rgba(40, 182, 122, 0.1);
  }

  50% {
    box-shadow:
      0 0 0 8px rgba(40, 182, 122, 0.03);
  }
}


/* Top dashboard */

.status-dashboard-top {
  display: grid;
  grid-template-columns:
    minmax(320px, 0.9fr)
    minmax(480px, 1.55fr);
  gap: 18px;
}

.status-resolution-panel {
  display: flex;
  align-items: center;
  gap: 26px;

  min-height: 230px;
  padding: 28px;

  border: 1px solid #ececf1;
  border-radius: 24px;

  background:
    linear-gradient(
      145deg,
      #fafafd,
      #f7f7fa
    );
}

.status-resolution-ring {
  --resolution: 0%;

  width: 154px;
  height: 154px;

  flex: 0 0 154px;

  padding: 12px;

  border-radius: 50%;

  background:
    conic-gradient(
      #7867d7 0 var(--resolution),
      #e8e8ee var(--resolution) 100%
    );

  transform:
    rotate(-90deg);

  transition:
    background 0.65s ease;
}

.status-resolution-ring-inner {
  width: 100%;
  height: 100%;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  border-radius: 50%;

  background: #ffffff;

  box-shadow:
    0 8px 28px rgba(22, 22, 30, 0.06);

  transform:
    rotate(90deg);
}

.status-resolution-number {
  color: #17171d;
  font-size: 36px;
  font-weight: 850;
  letter-spacing: -0.055em;
}

.status-resolution-label {
  margin-top: 3px;

  color: #8c8d94;
  font-size: 11px;
  font-weight: 650;
}

.status-resolution-copy {
  display: flex;
  flex-direction: column;
}

.status-resolution-copy > strong {
  margin-top: 8px;

  font-size: 30px;
  letter-spacing: -0.045em;
}

.status-resolution-copy > span:not(
  .status-dashboard-eyebrow
) {
  margin-top: 2px;

  color: #85868d;
  font-size: 12px;
}

.status-resolution-legend {
  display: grid;
  gap: 8px;

  margin-top: 22px;
}

.status-resolution-legend > div {
  display: grid;
  grid-template-columns: 8px 1fr auto;
  align-items: center;
  gap: 8px;

  color: #777980;
  font-size: 11px;
}

.status-resolution-legend strong {
  color: #303137;
}

.status-legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.status-legend-fixed {
  background: #7867d7;
}

.status-legend-active {
  background: #dedee5;
}


/* Summary cards */

.status-summary-grid {
  display: grid;
  grid-template-columns:
    repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.status-summary-card {
  position: relative;

  min-height: 109px;
  padding: 18px 19px;

  border: 1px solid #eeeeF2;
  border-radius: 20px;

  background: #fafafd;

  display: flex;
  flex-direction: column;
  align-items: flex-start;

  appearance: none;
  font: inherit;
  text-align: left;

  cursor: pointer;

  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.status-summary-card:hover {
  transform:
    translateY(-2px);

  border-color: #dedee7;

  box-shadow:
    0 12px 30px rgba(18, 18, 30, 0.07);
}

.status-summary-card > span {
  color: #76777e;
  font-size: 11px;
  font-weight: 700;
}

.status-summary-card > strong {
  margin-top: 6px;

  color: #17171c;
  font-size: 29px;
  font-weight: 850;
  letter-spacing: -0.045em;
}

.status-summary-card > small {
  margin-top: auto;

  color: #a0a1a7;
  font-size: 10px;
}

.status-summary-developer {
  background:
    linear-gradient(
      145deg,
      #faf9ff,
      #f4f2ff
    );
}

.status-summary-review {
  background:
    linear-gradient(
      145deg,
      #fcfaff,
      #f6f1ff
    );
}

.status-summary-fixed {
  background:
    linear-gradient(
      145deg,
      #f7fcfc,
      #effafa
    );
}


/* Workflow */

.status-workflow-section {
  margin-top: 20px;

  padding: 24px;

  border: 1px solid #ececf1;
  border-radius: 24px;

  background: #fcfcfe;
}

.status-workflow-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;

  margin-bottom: 23px;
}

.status-workflow-heading h3 {
  margin: 4px 0 0;

  color: #25252a;
  font-size: 17px;
  letter-spacing: -0.025em;
}

.status-workflow-heading > span {
  color: #9a9ba1;
  font-size: 10px;
}

.status-workflow {
  display: grid;
  grid-template-columns:
    minmax(110px, 1fr)
    26px
    minmax(145px, 1.2fr)
    26px
    minmax(120px, 1fr)
    26px
    minmax(145px, 1.2fr)
    26px
    minmax(145px, 1.2fr)
    26px
    minmax(110px, 1fr);

  align-items: center;
}

.status-flow-node {
  position: relative;

  min-width: 0;
  min-height: 145px;

  padding: 15px;

  border: 1px solid #e9e9ee;
  border-radius: 18px;

  background: #ffffff;

  display: flex;
  flex-direction: column;

  appearance: none;
  font: inherit;
  text-align: left;

  cursor: pointer;

  animation:
    workflowNodeReveal 520ms both;

  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.status-flow-node:nth-of-type(2) {
  animation-delay: 50ms;
}

.status-flow-node:nth-of-type(3) {
  animation-delay: 100ms;
}

.status-flow-node:nth-of-type(4) {
  animation-delay: 150ms;
}

.status-flow-node:nth-of-type(5) {
  animation-delay: 200ms;
}

.status-flow-node:nth-of-type(6) {
  animation-delay: 250ms;
}

@keyframes workflowNodeReveal {
  from {
    opacity: 0;
    transform:
      translateY(8px);
  }

  to {
    opacity: 1;
    transform:
      translateY(0);
  }
}

.status-flow-node:hover {
  transform:
    translateY(-3px);

  border-color: #dcdce5;

  box-shadow:
    0 12px 26px rgba(20, 20, 30, 0.075);
}

.status-flow-marker {
  width: 27px;
  height: 27px;

  border-radius: 9px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  background: #f0f0f4;

  color: #73747a;
  font-size: 10px;
  font-weight: 850;
}

.status-flow-content {
  height: 100%;

  display: flex;
  flex-direction: column;
}

.status-flow-content > strong {
  margin-top: 15px;

  color: #29292f;
  font-size: 11px;
  font-weight: 760;
  line-height: 1.25;
}

.status-flow-content > small {
  margin-top: 3px;

  color: #a0a1a7;
  font-size: 9px;
}

.status-flow-count-clone {
  margin-top: auto;

  color: #222228;
  font-size: 23px;
  font-weight: 850;
  letter-spacing: -0.035em;
}

.status-hidden-counter {
  display: none;
}

.status-flow-progress {
  width: 100%;
  height: 4px;

  margin-top: 8px;

  overflow: hidden;

  border-radius: 100px;

  background: #eeeef2;
}

.status-flow-progress > span {
  display: block;

  width: 0;
  height: 100%;

  border-radius: inherit;

  background: #87808f;

  transition:
    width 750ms
    cubic-bezier(
      0.22,
      1,
      0.36,
      1
    );
}

.status-flow-developer .status-flow-marker {
  background: #eeeaff;
  color: #6658ae;
}

.status-flow-developer
.status-flow-progress > span {
  background: #7665c7;
}

.status-flow-progress-node
.status-flow-marker {
  background: #e8f1ff;
  color: #416b9a;
}

.status-flow-progress-node
.status-flow-progress > span {
  background: #6791c1;
}

.status-flow-ready
.status-flow-marker {
  background: #fff3d6;
  color: #956416;
}

.status-flow-ready
.status-flow-progress > span {
  background: #d49b35;
}

.status-flow-review
.status-flow-marker {
  background: #eee5ff;
  color: #7352a3;
}

.status-flow-review
.status-flow-progress > span {
  background: #8c69ba;
}

.status-flow-fixed
.status-flow-marker {
  background: #dff5f3;
  color: #277882;
}

.status-flow-fixed
.status-flow-progress > span {
  background: #48a5a7;
}

.status-flow-connector {
  position: relative;

  height: 2px;

  overflow: hidden;

  background: #e6e6eb;
}

.status-flow-connector::after {
  content: "";

  position: absolute;
  inset: 0;

  width: 45%;

  background:
    linear-gradient(
      90deg,
      transparent,
      #a6a0b0,
      transparent
    );

  animation:
    workflowTravel 2.7s linear infinite;
}

@keyframes workflowTravel {
  from {
    transform:
      translateX(-120%);
  }

  to {
    transform:
      translateX(320%);
  }
}


/* Exception states */

.status-exception-grid {
  display: grid;
  grid-template-columns:
    repeat(2, minmax(0, 1fr));
  gap: 12px;

  margin-top: 16px;
}

.status-exception-card {
  min-height: 70px;

  padding: 13px 15px;

  border: 1px solid #ebebf0;
  border-radius: 17px;

  display: grid;
  grid-template-columns: 34px 1fr auto;
  align-items: center;
  gap: 11px;

  appearance: none;
  font: inherit;
  text-align: left;

  cursor: pointer;

  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}

.status-exception-card:hover {
  transform:
    translateY(-2px);

  box-shadow:
    0 10px 24px rgba(20, 20, 30, 0.06);
}

.status-exception-reopened {
  background: #fffafb;
}

.status-exception-blocked {
  background: #fff9f9;
}

.status-exception-icon {
  width: 34px;
  height: 34px;

  border-radius: 11px;

  display: flex;
  align-items: center;
  justify-content: center;

  background: #f2f2f5;

  font-weight: 850;
}

.status-exception-reopened
.status-exception-icon {
  background: #fff0f2;
  color: #a74255;
}

.status-exception-blocked
.status-exception-icon {
  background: #ffdadd;
  color: #bd2934;
}

.status-exception-card strong,
.status-exception-card small {
  display: block;
}

.status-exception-card strong {
  color: #303036;
  font-size: 11px;
}

.status-exception-card small {
  margin-top: 2px;

  color: #999aa0;
  font-size: 9px;
}

.status-exception-count {
  color: #242429;
  font-size: 22px;
  font-weight: 850;
}


/* Selected / zero */

[data-status-filter].status-selected {
  outline:
    2px solid rgba(118, 101, 199, 0.32);

  outline-offset: 2px;
}

.status-flow-node.status-zero {
  opacity: 0.54;
}


/* Responsive */

@media (max-width: 1200px) {
  .status-dashboard-top {
    grid-template-columns: 1fr;
  }

  .status-workflow {
    grid-template-columns:
      repeat(3, minmax(0, 1fr));

    gap: 12px;
  }

  .status-flow-connector {
    display: none;
  }
}

@media (max-width: 760px) {
  .status-dashboard-header {
    gap: 15px;
  }

  .status-resolution-panel {
    align-items: flex-start;
  }

  .status-summary-grid {
    grid-template-columns: 1fr 1fr;
  }

  .status-workflow {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }

  .status-exception-grid {
    grid-template-columns: 1fr;
  }

  .status-workflow-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }
}

@media (max-width: 520px) {
  .status-resolution-panel {
    flex-direction: column;

    padding: 22px;
  }

  .status-resolution-ring {
    width: 132px;
    height: 132px;
    flex-basis: 132px;
  }

  .status-summary-grid {
    grid-template-columns: 1fr;
  }

  .status-workflow {
    grid-template-columns: 1fr;
  }

  .status-flow-node {
    min-height: 120px;
  }
}

@media (
  prefers-reduced-motion: reduce
) {
  .status-live-badge .status-dot,
  .status-flow-node,
  .status-flow-connector::after {
    animation: none !important;
  }

  .status-flow-progress > span,
  .status-summary-card,
  .status-flow-node,
  .status-exception-card {
    transition: none !important;
  }
}
