:root {
  font:
    15px/1.5 "Inter",
    "Segoe UI",
    system-ui,
    sans-serif;
  color: #233144;
  background: #f5f7fa;
  color-scheme: light;
  --border: #dce2e9;
  --muted: #59697a;
  --blue: #195cb0;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
a {
  color: var(--blue);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
a:focus-visible,
button:focus-visible {
  outline: 3px solid #5997eb;
  outline-offset: 3px;
}
button,
.button,
input,
select,
textarea {
  font: inherit;
}
button,
.button {
  background: #195cb0;
  color: white;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 8px 15px;
  cursor: pointer;
  font-weight: 600;
  display: inline-flex;
  gap: 7px;
  align-items: center;
  justify-content: center;
}
button:hover,
.button:hover {
  background: #114987;
  text-decoration: none;
}
button:disabled {
  opacity: 0.58;
  cursor: default;
}
.secondary {
  background: white;
  color: #334558;
  border-color: #cbd4df;
}
.secondary:hover {
  background: #eff3f8;
}
.text-button {
  border: 0;
  padding: 0;
  font: inherit;
  color: var(--blue);
  background: transparent;
}
.text-button:hover {
  background: transparent;
  text-decoration: underline;
}
input,
textarea,
select {
  display: block;
  width: 100%;
  margin-top: 5px;
  padding: 8px 10px;
  min-height: 39px;
  background: white;
  border: 1px solid #bdc9d4;
  color: #203047;
  border-radius: 5px;
}
input:focus,
textarea:focus,
select:focus {
  outline: 2px solid #659ce1;
  outline-offset: 1px;
}
textarea {
  resize: vertical;
}
input[type="checkbox"] {
  width: auto;
  min-height: auto;
  margin: 0;
  accent-color: var(--blue);
}
label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
}
.check {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  line-height: 1.16;
  letter-spacing: -0.045em;
  overflow-wrap: anywhere;
}
h2 {
  font-size: 1.15rem;
  letter-spacing: -0.025em;
}
h3 {
  font-size: 1rem;
}
.shell {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  min-height: 100vh;
}
.sidebar {
  background: #17253b;
  color: #dbe3ee;
  padding: 28px 15px 20px;
  display: flex;
  flex-direction: column;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.045em;
}
.sidebar .brand {
  color: white;
  padding-left: 9px;
}
.brand:hover {
  text-decoration: none;
}
.brand-mark {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 3px;
  width: 30px;
  height: 30px;
  background: #b6d5ff;
  border-radius: 7px;
  transform: rotate(-3deg);
}
.brand-mark i {
  width: 3px;
  height: 14px;
  background: #193958;
  transform: skew(-18deg);
}
.brand-mark i:first-child {
  height: 8px;
}
.brand-mark i:last-child {
  height: 11px;
}
.nav-label {
  color: #aab9cc;
  margin: 37px 13px 10px;
  text-transform: uppercase;
  font-weight: 700;
  font-size: 0.69rem;
  letter-spacing: 0.12em;
}
.nav-link {
  padding: 9px 12px;
  color: #d7e1ef;
  border-radius: 5px;
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 2px 0;
}
.nav-link:hover,
.nav-link.active {
  background: #2b405b;
  color: #fff;
  text-decoration: none;
}
.nav-link.active {
  box-shadow: inset 3px 0 #91c0ff;
  font-weight: 600;
}
.nav-icon {
  font-size: 1.25rem;
  width: 20px;
  line-height: 1;
}
.account {
  margin-top: auto;
  padding: 20px 10px 0;
  border-top: 1px solid #3c495d;
}
.user {
  display: flex;
  align-items: center;
  gap: 9px;
  overflow-wrap: anywhere;
}
.avatar {
  background: #354e70;
  color: #e5efff;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
}
.signout {
  background: transparent;
  color: #c2d1e4;
  font-weight: 400;
  padding: 3px 0 0 41px;
  font-size: 0.8rem;
}
.signout:hover {
  background: transparent;
  text-decoration: underline;
}
main {
  width: 100%;
  max-width: 1540px;
  padding: clamp(24px, 4.2vw, 68px);
  margin: 0 auto;
}
.heading,
.panel-title,
.list-footer,
.review,
.toolbar,
.actions,
.inline-actions,
.event-line {
  display: flex;
  align-items: center;
  gap: 12px;
}
.heading,
.panel-title,
.list-footer,
.review {
  justify-content: space-between;
}
.heading {
  margin: 0 0 27px;
  align-items: flex-end;
}
.heading .button,
.heading button {
  flex-shrink: 0;
}
.crumb,
.back,
.byline,
.hint,
.muted,
.date,
.number,
.list-footer,
.event-line span,
.event-line time {
  color: var(--muted);
}
.crumb,
.back {
  font-size: 0.82rem;
  margin-bottom: 12px;
  display: inline-flex;
  gap: 9px;
  align-items: center;
}
.crumb span {
  color: #a1aebd;
}
.byline {
  font-size: 0.85rem;
  margin-top: 9px;
}
.card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 2px 5px #172a4505;
  overflow: hidden;
}
.filter-form,
.panel,
.editor,
.list-footer {
  padding: 20px 24px;
}
.toolbar .search {
  margin: 0;
  max-width: 440px;
  margin-right: auto;
}
.filter-grid,
.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 18px;
}
.filter-grid {
  grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
  border-top: 1px solid var(--border);
  padding-top: 17px;
  margin: 18px 0;
}
.actions,
.inline-actions {
  flex-wrap: wrap;
}
.actions {
  margin-top: 12px;
}
.table-scroll {
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
th,
td {
  text-align: left;
  padding: 13px 16px;
  border-top: 1px solid var(--border);
}
th:first-child,
td:first-child {
  padding-left: 24px;
}
th {
  font-size: 0.72rem;
  color: #526277;
  background: #f8fafc;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
td:first-child {
  min-width: 200px;
  width: 50%;
  overflow-wrap: anywhere;
}
.item-link {
  color: #203852;
  font-weight: 620;
}
.number {
  font-size: 0.8rem;
  font-weight: 500;
  margin-right: 5px;
}
.row-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.row-meta:not(:empty) {
  margin-top: 6px;
}
.reason {
  color: #805a15;
  font-size: 0.78rem;
}
.status,
.tag {
  display: inline-flex;
  white-space: nowrap;
  border-radius: 5px;
  font-size: 0.78rem;
  padding: 2px 8px;
}
.status {
  align-items: center;
  gap: 6px;
  background: #ecf1f8;
  color: #3a526e;
  font-weight: 600;
}
.status::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.s-in_progress {
  background: #e2efff;
  color: #255e9e;
}
.s-done {
  background: #e0f3e8;
  color: #236942;
}
.s-waiting {
  background: #fbefd0;
  color: #875810;
}
.s-triaged {
  background: #eee8ff;
  color: #694d97;
}
.tag {
  background: #eff2f5;
  color: #536177;
  margin: 1px 3px 1px 0;
  white-space: normal;
  overflow-wrap: anywhere;
}
.blank {
  text-align: center;
  padding: 60px 24px 70px;
  border-top: 1px solid var(--border);
  color: var(--muted);
}
.blank h2 {
  color: #314257;
  margin-bottom: 4px;
}
.blank a {
  display: inline-block;
  margin-top: 12px;
}
.empty-icon {
  width: 43px;
  height: 43px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #e7eff8;
  color: #456b94;
  margin: 0 auto 15px;
  font-size: 1.4rem;
}
.list-footer {
  font-size: 0.8rem;
  border-top: 1px solid var(--border);
}
.editor {
  max-width: 800px;
  display: grid;
  gap: 16px;
}
.hint {
  font-size: 0.75rem;
  font-weight: 400;
  margin-left: 5px;
}
.details-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(250px, 1fr);
  gap: 18px;
}
.stack {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
}
.panel h2 {
  margin-bottom: 16px;
}
.properties,
.conflict dl {
  display: grid;
  grid-template-columns: 85px minmax(0, 1fr);
  gap: 13px 10px;
  margin: 0;
}
dt {
  color: var(--muted);
}
dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.relation + .relation {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.panel-title,
.link-list,
.relation .muted,
.check {
  font-size: 0.85rem;
}
.panel-title {
  flex-wrap: wrap;
  gap: 6px;
}
.relation .muted,
.link-form,
.link-list {
  margin-top: 9px;
}
.link-form {
  background: #f6f8fb;
  padding: 14px;
  border-radius: 6px;
}
.link-form .check {
  margin-top: 8px;
}
.link-list {
  list-style: none;
  padding: 0;
}
.link-list li {
  margin-bottom: 10px;
}
.timeline {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
}
.timeline li {
  border-left: 2px solid #dce6f1;
  padding: 0 0 15px 14px;
}
.event-line {
  flex-wrap: wrap;
  gap: 6px;
  font-size: 0.8rem;
}
.event-line time {
  margin-left: auto;
}
.panel form > button {
  margin-top: 10px;
}
.markdown {
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
.markdown > * + * {
  margin-top: 0.65em;
}
.markdown ul {
  margin-bottom: 0;
}
.markdown code {
  background: #eef2f6;
  padding: 1px 4px;
  border-radius: 3px;
}
.markdown pre {
  background: #eef2f6;
  padding: 12px;
  overflow-x: auto;
}
.alert,
.conflict,
.review {
  border-radius: 6px;
  padding: 12px 16px;
  margin: 0 0 14px;
}
.alert {
  border: 1px solid #efc1be;
  background: #fff3f1;
  color: #8d342b;
}
.conflict,
.review {
  background: #fff6df;
  color: #694e21;
}
.conflict dl {
  margin-top: 12px;
  white-space: pre-wrap;
}
.login-page,
.loading {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 20px;
}
.login-card {
  background: white;
  padding: 36px;
  border: 1px solid var(--border);
  border-radius: 12px;
  width: min(390px, 100%);
  box-shadow: 0 8px 25px #23374e09;
}
.login-card h1 {
  margin-top: 32px;
}
.login-card form {
  display: grid;
  gap: 16px;
  margin-top: 22px;
}
@media (max-width: 990px) {
  .shell {
    grid-template-columns: 180px minmax(0, 1fr);
  }
  main {
    padding: 24px;
  }
  .details-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 690px) {
  .shell {
    display: block;
  }
  .sidebar {
    padding: 12px 16px;
  }
  .sidebar .brand {
    padding: 0;
  }
  .sidebar {
    position: relative;
  }
  .sidebar nav {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 12px;
  }
  .nav-label {
    display: none;
  }
  .nav-link {
    padding: 5px 8px;
    font-size: 0.8rem;
  }
  .nav-icon {
    display: none;
  }
  .account {
    position: absolute;
    right: 16px;
    top: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0;
    border: 0;
  }
  .account .avatar {
    display: none;
  }
  .signout {
    padding: 3px;
  }
  .user {
    max-width: 90px;
    font-size: 0.8rem;
  }
  .heading {
    align-items: center;
    gap: 8px;
  }
  main {
    padding: 22px 14px;
  }
  .heading .button {
    padding: 7px 10px;
  }
  .field-grid {
    grid-template-columns: 1fr;
  }
  .toolbar {
    gap: 6px;
    flex-wrap: wrap;
  }
  .toolbar .search {
    max-width: none;
    flex-basis: 100%;
  }
  .panel,
  .editor,
  .filter-form,
  .list-footer {
    padding: 16px;
  }
}
