@font-face {
  font-family: "Bitter";
  src: url("/fonts/bitter-v19-latin-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Bitter";
  src: url("/fonts/bitter-v19-latin-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #f2f1ee;
  --bg-soft: #ebe8e2;
  --surface: #ffffff;
  --surface-alt: #f7f6f2;
  --border: rgba(60, 60, 60, 0.16);
  --border-strong: rgba(3, 61, 84, 0.32);
  --text: #3c3c3c;
  --muted: #625f5a;
  --navy: #033d54;
  --indigo: #2d294b;
  --steel: #3c768b;
  --blue: #3e5383;
  --accent: #d17030;
  --accent-soft: #e8dcc5;
  --healthy: #3c768b;
  --success: #3e5383;
  --warning: #d17030;
  --danger: #9b4836;
  --neutral: #e6e1d8;
  --shadow: 0 20px 50px rgba(45, 41, 75, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(62, 83, 131, 0.11), transparent 26rem),
    linear-gradient(180deg, #f7f6f2 0%, var(--bg) 100%);
  font-family: "Bitter", Georgia, serif;
}

a {
  color: inherit;
  text-decoration: none;
}

.page-shell {
  display: grid;
  grid-template-columns: 20rem 1fr;
  min-height: 100vh;
}

.sidebar {
  padding: 1.8rem 1.5rem;
  background:
    linear-gradient(180deg, rgba(3, 61, 84, 0.98) 0%, rgba(45, 41, 75, 0.98) 100%);
  color: #f8f6f1;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.brand {
  margin-bottom: 1.6rem;
}

.brand h1,
.hero h2,
.summary-card h3,
.panel h3,
.item h4 {
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.brand__logo-image {
  display: block;
  width: 9rem;
  max-width: 100%;
}

.brand__logo-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 0.35rem;
  background: var(--surface-alt);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08);
}

.brand__copy {
  margin: 0.65rem 0 0;
  color: rgba(248, 246, 241, 0.76);
  font-size: 0.94rem;
  line-height: 1.55;
}

.eyebrow {
  margin: 0 0 0.3rem;
  color: inherit;
  opacity: 0.7;
  font-size: 0.76rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.status-card,
.panel,
.metric {
  border: 1px solid var(--border);
  border-radius: 0.4rem;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.status-card {
  display: flex;
  gap: 0.9rem;
  align-items: center;
  padding: 1rem;
  margin-bottom: 1rem;
  color: #f8f6f1;
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: none;
}

.status-card__pulse {
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 999px;
  background: currentColor;
  box-shadow: 0 0 0 0 rgba(0, 0, 0, 0.15);
  animation: pulse 1.8s infinite;
}

.status-card--healthy {
  color: #8ac1d0;
}

.status-card--warning {
  color: #f0b07d;
}

.status-card__label {
  margin: 0 0 0.2rem;
  font-weight: 700;
}

.status-card__meta,
.source__meta,
.summary-card__copy,
.panel__description,
.metric__desc,
.item__note,
.sidebar__caption,
.flow-connector__copy {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.sidebar__section {
  margin-top: 1.4rem;
}

.sidebar__section--small {
  padding-top: 1.2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
}

.sidebar__title {
  margin: 0 0 0.7rem;
  color: rgba(248, 246, 241, 0.62);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.sidebar__body {
  margin: 0;
  font-weight: 600;
  color: #f8f6f1;
}

.sidebar__link {
  display: block;
  padding: 0.55rem 0;
  color: #f8f6f1;
}

.source {
  display: flex;
  gap: 0.7rem;
  align-items: center;
  padding: 0.7rem 0;
}

.source__dot {
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 999px;
}

.source__dot--healthy {
  background: var(--healthy);
}

.source__dot--warning {
  background: var(--warning);
}

.source__label,
.metric__label,
.item__meta {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 600;
}

.content {
  padding: 1.8rem;
}

.hero {
  display: flex;
  justify-content: space-between;
  gap: 1.2rem;
  align-items: stretch;
  margin-bottom: 1.2rem;
  padding: 1.45rem 1.5rem;
  border-radius: 0.4rem;
  background:
    linear-gradient(120deg, rgba(3, 61, 84, 0.98) 0%, rgba(45, 41, 75, 0.95) 100%);
  color: #f8f6f1;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -6rem -5rem auto;
  width: 17rem;
  height: 17rem;
  border-radius: 50%;
  background: rgba(209, 112, 48, 0.16);
  filter: blur(10px);
}

.hero__content,
.hero__actions {
  position: relative;
  z-index: 1;
}

.hero__copy {
  max-width: 44rem;
  margin: 0.5rem 0 0;
  color: rgba(248, 246, 241, 0.84);
  font-size: 1rem;
  line-height: 1.6;
}

.hero__actions {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
  align-content: flex-start;
  justify-content: flex-end;
  min-width: 14rem;
}

.hero__meta {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.hero__meta-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 0.3rem;
  background: rgba(255, 255, 255, 0.06);
  font-size: 0.82rem;
  color: rgba(248, 246, 241, 0.9);
}

.hero__note {
  align-self: center;
  color: rgba(248, 246, 241, 0.74);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero__logout-form {
  margin: 0;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 9rem;
  padding: 0.82rem 1rem;
  border-radius: 5px;
  background: var(--accent);
  color: #fff8f0;
  font: inherit;
  font-weight: 700;
  border: 1px solid transparent;
  cursor: pointer;
  appearance: none;
  transition:
    background-color 180ms ease,
    color 180ms ease,
    border-color 180ms ease;
}

.button--ghost {
  background: transparent;
  color: #f8f6f1;
  border-color: rgba(255, 255, 255, 0.28);
}

.button:hover {
  background: #b8612a;
}

.button--ghost:hover {
  background: rgba(255, 255, 255, 0.08);
}

.button--inline {
  align-self: flex-start;
  margin-top: auto;
  min-width: auto;
  padding: 0.62rem 0.9rem;
  background: transparent;
  color: var(--text);
  border: 1px solid transparent;
  border-radius: 0.35rem;
  font-weight: 600;
  box-shadow: none;
}

.button--inline:hover {
  background: rgba(3, 61, 84, 0.04);
  color: var(--navy);
  border-color: transparent;
}

.flow-overview,
.workflow-board {
  display: grid;
  gap: 1rem;
}

.flow-overview {
  grid-template-columns: minmax(0, 1fr) 16rem minmax(0, 1fr);
  margin-bottom: 1rem;
  align-items: stretch;
}

.workflow-board {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
}

.summary-card,
.flow-connector {
  height: 100%;
  border: 1px solid var(--border);
  border-radius: 0.4rem;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.summary-card {
  display: flex;
  flex-direction: column;
  padding: 1.15rem 1.2rem;
}

.summary-card--desk {
  border-top: 4px solid var(--accent);
}

.summary-card--github {
  border-top: 4px solid var(--navy);
}

.summary-card__copy {
  margin-top: 0.45rem;
}

.summary-card__metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(6rem, 1fr));
  gap: 0.9rem;
  margin-top: 1rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--border);
}

.summary-card__value {
  margin: 0;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.05em;
}

.summary-card__label {
  margin: 0.15rem 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.flow-connector {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1.15rem;
  border-style: dashed;
  border-color: rgba(60, 118, 139, 0.35);
  background:
    linear-gradient(180deg, rgba(60, 118, 139, 0.06) 0%, rgba(209, 112, 48, 0.04) 100%);
}

.flow-connector__eyebrow,
.flow-connector__title {
  margin: 0;
}

.flow-connector__eyebrow {
  color: var(--steel);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.flow-connector__title {
  margin-top: 0.55rem;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.4;
}

.panel {
  display: flex;
  flex-direction: column;
  padding: 1.1rem;
  border-top: 4px solid var(--steel);
}

.panel--lane {
  background: linear-gradient(180deg, #ffffff 0%, #faf8f4 100%);
}

.panel--primary {
  min-height: 36rem;
}

.panel--secondary {
  min-height: 22rem;
}

.panel--feature {
  padding: 1.2rem;
}

.panel--attention {
  border-top-color: var(--accent);
}

.panel--warning {
  margin-bottom: 1rem;
  border-top-color: var(--accent);
  background: #fff9f2;
}

.panel__header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.panel__description {
  max-width: 20rem;
  font-size: 0.92rem;
  text-align: right;
}

.list {
  display: grid;
  gap: 0.55rem;
}

.list--work-feature {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.list--compact {
  gap: 0.45rem;
}

.list--ticket-feature {
  grid-auto-rows: min-content;
  gap: 0.7rem;
}

.collapsible {
  position: relative;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.collapsible--collapsed::after {
  content: "";
  position: absolute;
  inset: auto 0 3.25rem;
  height: 4.5rem;
  background: linear-gradient(180deg, rgba(247, 246, 242, 0) 0%, rgba(247, 246, 242, 1) 90%);
  pointer-events: none;
}

.collapsible [data-collapsible-item] {
  min-width: 0;
}

.item {
  padding: 0.85rem 0.9rem;
  border-radius: 0.35rem;
  border: 1px solid var(--border);
  background: var(--surface-alt);
}

.item--healthy {
  border-left: 0.35rem solid var(--healthy);
}

.item--warning {
  border-left: 0.35rem solid var(--warning);
}

.item--danger {
  border-left: 0.35rem solid var(--danger);
}

.item--success {
  border-left: 0.35rem solid var(--success);
}

.item__topline,
.item__footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

.item__note {
  margin-top: 0.45rem;
  font-size: 0.88rem;
}

.item__footer--compact {
  font-size: 0.84rem;
}

.item__context {
  margin: 0.5rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.panel__footer-note {
  display: flex;
  gap: 0.7rem;
  align-items: center;
  margin-top: 0.9rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.9rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 0.26rem 0.62rem;
  border-radius: 5px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.pill--healthy {
  background: rgba(60, 118, 139, 0.13);
  color: #15485d;
}

.pill--warning {
  background: rgba(209, 112, 48, 0.14);
  color: #9a4e1f;
}

.pill--success {
  background: rgba(62, 83, 131, 0.14);
  color: #24375e;
}

.pill--danger {
  background: rgba(155, 72, 54, 0.14);
  color: #7d3325;
}

.pill--neutral {
  background: var(--neutral);
  color: #4f504d;
}

.warning-list,
.empty {
  margin: 0;
}

.warning-list {
  padding-left: 1.1rem;
}

.empty {
  color: var(--muted);
}

.auth-body {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 1.5rem;
}

.auth-layout {
  display: grid;
  grid-template-columns: minmax(0, 22rem) minmax(0, 24rem);
  gap: 1.2rem;
  width: min(100%, 54rem);
}

.auth-brand,
.auth-card {
  border: 1px solid var(--border);
  border-radius: 0.4rem;
  box-shadow: var(--shadow);
}

.auth-brand {
  padding: 2rem 1.8rem;
  color: #f8f6f1;
  background:
    linear-gradient(180deg, rgba(3, 61, 84, 0.98) 0%, rgba(45, 41, 75, 0.98) 100%);
}

.auth-brand h1,
.auth-card h2 {
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.auth-brand__copy {
  margin: 0.8rem 0 0;
  color: rgba(248, 246, 241, 0.76);
  line-height: 1.6;
}

.auth-card {
  padding: 2rem 1.8rem;
  background: linear-gradient(180deg, #ffffff 0%, #faf8f4 100%);
}

.auth-card__copy {
  margin: 0.55rem 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.auth-card__error {
  margin: 1rem 0 0;
  padding: 0.75rem 0.85rem;
  border-radius: 0.35rem;
  border: 1px solid rgba(155, 72, 54, 0.18);
  background: rgba(155, 72, 54, 0.08);
  color: var(--danger);
  line-height: 1.5;
}

.auth-form {
  display: grid;
  gap: 1rem;
  margin-top: 1.2rem;
}

.auth-field {
  display: grid;
  gap: 0.45rem;
}

.auth-field span {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.auth-field input {
  width: 100%;
  padding: 0.9rem 1rem;
  border: 1px solid var(--border-strong);
  border-radius: 0.35rem;
  background: #fff;
  color: var(--text);
  font: inherit;
}

.auth-field input:focus {
  outline: 2px solid rgba(60, 118, 139, 0.22);
  outline-offset: 2px;
  border-color: var(--steel);
}

.auth-submit {
  width: 100%;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(209, 112, 48, 0.34);
  }
  70% {
    box-shadow: 0 0 0 0.65rem rgba(209, 112, 48, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(209, 112, 48, 0);
  }
}

@media (max-width: 1100px) {
  .page-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .flow-overview,
  .workflow-board,
  .list--work-feature {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .content,
  .sidebar {
    padding: 1rem;
  }

  .hero,
  .panel__header,
  .item__topline,
  .item__footer {
    flex-direction: column;
    align-items: flex-start;
  }

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

  .panel__description {
    text-align: left;
  }

  .hero__actions {
    justify-content: flex-start;
    min-width: auto;
  }

  .auth-layout {
    grid-template-columns: 1fr;
  }
}
