* {
  box-sizing: border-box;
}
html {
  font-size: 16px;
}
body {
  margin: 0;
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: #17253d;
  background: #f4f6fa;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #89abff;
  outline-offset: 3px;
}
a {
  color: #245bdd;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: 1.9rem;
  letter-spacing: -0.05em;
  margin-bottom: 0.45rem;
}
h2 {
  font-size: 1.2rem;
  letter-spacing: -0.025em;
}
h3 {
  font-size: 1rem;
}
.shell {
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr);
  min-height: 100vh;
}
.side {
  background: #111b30;
  color: #aab5ce;
  padding: 30px 20px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.brand {
  color: white;
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.05em;
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand img {
  width: 33px;
}
.brand span {
  color: #779aff;
}
.workspace {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 14px;
  color: #818fa9;
}
.nav {
  display: grid;
  gap: 7px;
}
.nav button {
  border: 0;
  background: transparent;
  text-align: left;
  color: #aab5ce;
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 0.9rem;
}
.nav button.active {
  background: #263856;
  color: white;
}
.nav button:hover {
  background: #20304a;
  color: white;
}
.nav b {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  background: #d88822;
  color: #1b2130;
  border-radius: 5px;
  float: right;
}
.sidefoot {
  margin-top: auto;
  border-top: 1px solid #2b3548;
  padding-top: 22px;
  font-size: 0.875rem;
  line-height: 1.7;
}
.sidefoot strong {
  color: #dbe4fa;
}
.main {
  min-width: 0;
}
.topbar {
  height: 76px;
  padding: 0 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #e2e7ef;
  background: white;
  gap: 15px;
}
.crumb {
  font-size: 0.875rem;
  color: #73809a;
}
.crumb strong {
  color: #293953;
}
.user {
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 0.875rem;
}
.avatar {
  display: grid;
  place-items: center;
  border-radius: 50%;
  width: 35px;
  height: 35px;
  background: #edf1fa;
  color: #3c5984;
  font-size: 0.75rem;
  font-weight: 700;
}
.page {
  padding: 28px 32px;
  max-width: 1880px;
  margin: auto;
}
.banner {
  border: 1px solid #cad9f7;
  background: #edf3ff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  border-radius: 9px;
  font-size: 0.875rem;
  gap: 16px;
  margin-bottom: 27px;
  line-height: 1.5;
}
.banner strong {
  color: #254fbc;
}
.banner a {
  white-space: nowrap;
}
.heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-bottom: 26px;
}
.muted {
  color: #72809a;
}
.small {
  font-size: 0.875rem;
}
.btn {
  border: 1px solid #d7dfeb;
  border-radius: 8px;
  background: white;
  color: #30435f;
  padding: 10px 16px;
  font-size: 0.875rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.btn.primary {
  background: #275df3;
  color: white;
  border-color: #275df3;
  box-shadow: 0 3px 6px #2454bb18;
}
.btn.danger {
  color: #ae441c;
  border-color: #f3c6ad;
}
.btn.link {
  border: 0;
  padding: 4px;
  background: none;
  color: #285bd5;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}
.stat {
  background: white;
  border: 1px solid #e1e6ef;
  border-radius: 11px;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 15px;
}
.stat .number {
  font-size: 1.75rem;
  font-weight: 720;
  letter-spacing: -0.04em;
}
.stat .caption {
  font-size: 0.875rem;
  color: #79859a;
  margin-top: 3px;
}
.stat .symbol {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: #ecf1ff;
  color: #3763d5;
}
.toolbar {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 22px;
  flex-wrap: wrap;
}
.search {
  min-width: 180px;
  flex: 1;
  max-width: 310px;
}
.toolbar input,
.toolbar select {
  border: 1px solid #dce3ed;
  background: white;
  border-radius: 7px;
  padding: 10px 12px;
  color: #52627c;
  font-size: 0.875rem;
  height: 42px;
}
.toolbar .toggle {
  margin-left: auto;
}
.toggle.active {
  border-color: #eba763;
  background: #fff4e9;
  color: #a25b18;
}
.board {
  display: grid;
  grid-template-columns: repeat(5, minmax(190px, 1fr));
  gap: 18px;
  align-items: start;
  overflow-x: auto;
}
.column {
  min-width: 0;
}
.column-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.875rem;
  font-weight: 650;
  margin-bottom: 15px;
  padding: 8px 2px;
}
.column-head .count {
  background: #e5eaf3;
  color: #71809a;
  border-radius: 5px;
  padding: 2px 7px;
  font-size: 0.75rem;
}
.bar {
  height: 3px;
  border-radius: 4px;
  background: #aec3f0;
  margin-bottom: 10px;
}
.bar.scheduled {
  background: #8972d4;
}
.bar.waiting {
  background: #ecb561;
}
.bar.ready {
  background: #70b99c;
}
.card {
  display: block;
  width: 100%;
  text-align: left;
  background: white;
  border: 1px solid #dfe5f0;
  border-radius: 11px;
  padding: 0;
  margin-bottom: 14px;
  overflow: hidden;
  transition:
    box-shadow 0.18s,
    transform 0.18s;
  color: inherit;
}
.card:hover {
  box-shadow: 0 6px 24px #182a4710;
  transform: translateY(-2px);
}
.cover {
  height: 112px;
  background: #eaf0ff;
  color: #324e89;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 15px 17px;
  font-weight: 750;
  font-size: 1.1rem;
  line-height: 1.1;
  position: relative;
}
.cover small {
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  font-weight: 500;
  opacity: 0.75;
}
.cover.rose {
  background: #f6e5e5;
  color: #843f42;
}
.cover.ink {
  background: #233753;
  color: #d5e4ff;
}
.cover.mint {
  background: #e2f0ec;
  color: #326459;
}
.cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.card-body {
  padding: 16px;
}
.tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.tag {
  font-size: 0.7rem;
  line-height: 1.5;
  border-radius: 4px;
  padding: 2px 6px;
  background: #f0f3f8;
  color: #71809a;
}
.tag.attention {
  background: #fff0d9;
  color: #955718;
}
.tag.pass {
  background: #e6f4ef;
  color: #278563;
}
.card h3 {
  font-size: 0.96rem;
  line-height: 1.45;
  margin-bottom: 16px;
}
.plan {
  display: flex;
  justify-content: space-between;
  gap: 6px;
  font-size: 0.78rem;
  margin-top: 8px;
  color: #748198;
}
.platform {
  color: #465b7d;
  font-weight: 550;
}
.next {
  border-top: 1px solid #ecf0f6;
  margin-top: 15px;
  padding-top: 12px;
  display: flex;
  justify-content: space-between;
  gap: 6px;
  font-size: 0.76rem;
  color: #79869b;
}
.empty {
  border: 1px dashed #d6dfea;
  border-radius: 10px;
  padding: 28px 18px;
  text-align: center;
  color: #8290a6;
  font-size: 0.875rem;
  line-height: 1.65;
  min-height: 146px;
}
.panel {
  background: white;
  border: 1px solid #dee5f0;
  border-radius: 12px;
  padding: 22px;
  margin-bottom: 18px;
}
.panel h2 {
  margin-bottom: 16px;
}
.grid2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.connections {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.connection {
  border: 1px solid #e0e6f0;
  background: white;
  border-radius: 12px;
  padding: 23px;
}
.connection h3 {
  margin: 0 0 8px;
  font-size: 1.04rem;
}
.connection p {
  font-size: 0.875rem;
  line-height: 1.6;
  color: #738099;
}
.badge {
  font-size: 0.75rem;
  padding: 5px 9px;
  border-radius: 20px;
  background: #fff2dc;
  color: #956123;
  display: inline-block;
}
.badge.good {
  background: #e6f4ed;
  color: #2a8058;
}
.table-wrap {
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}
th {
  text-align: left;
  color: #6e7b91;
  font-weight: 500;
  border-bottom: 1px solid #e1e7ef;
  padding: 12px;
}
td {
  padding: 13px 12px;
  border-bottom: 1px solid #eef1f6;
  vertical-align: top;
}
td.title {
  min-width: 230px;
  color: #253958;
}
dialog {
  border: 0;
  border-radius: 15px;
  width: min(850px, calc(100vw - 30px));
  max-height: 92vh;
  padding: 0;
  color: #243550;
  box-shadow: 0 30px 100px #10172c45;
}
dialog::backdrop {
  background: #0c172c70;
  backdrop-filter: blur(2px);
}
.dialog-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #e5eaf2;
  padding: 22px 26px;
}
.dialog-head h2 {
  margin: 0;
}
.dialog-body {
  padding: 24px 26px;
}
.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 18px 26px;
  border-top: 1px solid #e5eaf2;
}
.close {
  border: 0;
  background: #f0f3f8;
  color: #60718b;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  font-size: 1.2rem;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
label {
  display: grid;
  gap: 7px;
  font-size: 0.875rem;
  font-weight: 500;
}
label input,
label select,
label textarea {
  width: 100%;
  border: 1px solid #d5deed;
  border-radius: 7px;
  padding: 10px;
  background: white;
  color: #263a57;
  min-height: 42px;
}
.full {
  grid-column: 1/-1;
}
textarea {
  resize: vertical;
  min-height: 84px;
}
.drop {
  border: 2px dashed #bdceed;
  border-radius: 10px;
  background: #f7faff;
  padding: 24px;
  text-align: center;
  margin-bottom: 22px;
  line-height: 1.7;
}
.drop input {
  max-width: 100%;
  font-size: 0.875rem;
}
.check {
  display: flex;
  align-items: center;
  gap: 9px;
}
.check input {
  width: 16px;
  min-height: 16px;
}
.note {
  font-size: 0.8rem;
  color: #7d8aa1;
  line-height: 1.65;
}
.error {
  background: #fff0eb;
  border: 1px solid #f8c9ba;
  border-radius: 7px;
  padding: 12px;
  color: #ac4a2c;
  font-size: 0.875rem;
  margin: 14px 0;
}
.success {
  background: #ebf6ef;
  color: #2f8052;
  padding: 14px;
  border-radius: 8px;
}
.detail-top {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.detail-top h1 {
  font-size: 1.45rem;
  flex: 1;
}
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.field {
  margin-bottom: 15px;
  font-size: 0.875rem;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.field dt {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #8490a3;
  margin-bottom: 5px;
}
.field dd {
  margin: 0;
}
.score {
  font-size: 2.4rem;
  font-weight: 700;
  letter-spacing: -0.06em;
}
.meter {
  height: 7px;
  background: #e3eaf5;
  border-radius: 7px;
  overflow: hidden;
  margin: 8px 0 13px;
}
.meter span {
  display: block;
  height: 100%;
  background: #3578e7;
}
.timeline {
  padding: 0;
  list-style: none;
}
.timeline li {
  padding: 10px 0;
  border-bottom: 1px solid #eff2f6;
  font-size: 0.875rem;
}
.timeline small {
  display: block;
  color: #8b97aa;
  margin-top: 5px;
}
.loading {
  display: grid;
  place-items: center;
  min-height: 100vh;
  color: #8492a7;
}
#toast {
  position: fixed;
  bottom: 25px;
  right: 25px;
  max-width: 420px;
  background: #172742;
  color: white;
  border-radius: 9px;
  padding: 13px 20px;
  box-shadow: 0 6px 30px #10224830;
  display: none;
  z-index: 5;
  font-size: 0.875rem;
}
progress {
  width: 100%;
  height: 14px;
  accent-color: #275df3;
}
pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 0.8rem;
}
.login {
  max-width: 450px;
  margin: 12vh auto;
  background: white;
  padding: 35px;
  border-radius: 14px;
  border: 1px solid #dae2ef;
  line-height: 1.7;
}
.metric {
  font-size: 1.4rem;
  font-weight: 650;
}
.checkbox-row {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}
.disabled-link {
  color: #8a94a5;
}
.pill-row {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.archive-search {
  margin-bottom: 18px;
  max-width: none;
  width: 100%;
  padding: 11px;
  border: 1px solid #d4deed;
  border-radius: 7px;
}
@media (min-width: 1550px) {
  .cover {
    height: 142px;
  }
  .page {
    padding: 32px 42px;
  }
  .board {
    gap: 22px;
  }
}
@media (max-width: 1150px) {
  .shell {
    grid-template-columns: 195px minmax(0, 1fr);
  }
  .page {
    padding: 24px;
  }
  .topbar {
    padding: 0 24px;
  }
  .board {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .stats {
    gap: 10px;
  }
  .stat {
    padding: 13px;
  }
  .stat .symbol {
    display: none;
  }
}
@media (max-width: 720px) {
  .shell {
    display: block;
  }
  .side {
    padding: 16px;
    gap: 15px;
  }
  .brand {
    font-size: 1.3rem;
  }
  .side .workspace,
  .sidefoot {
    display: none;
  }
  .nav {
    display: flex;
    overflow-x: auto;
    gap: 5px;
  }
  .nav button {
    white-space: nowrap;
    padding: 9px 11px;
  }
  .topbar {
    height: 58px;
    padding: 0 17px;
  }
  .user .email {
    display: none;
  }
  .page {
    padding: 20px 16px;
  }
  .banner {
    align-items: flex-start;
    font-size: 0.8rem;
  }
  .banner a {
    white-space: normal;
  }
  .heading {
    align-items: flex-start;
  }
  .heading h1 {
    font-size: 1.6rem;
  }
  .heading .btn {
    white-space: nowrap;
    padding: 10px;
  }
  .stats {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .stat .number {
    font-size: 1.5rem;
  }
  .stat .caption {
    font-size: 0.8rem;
  }
  .toolbar {
    gap: 7px;
  }
  .toolbar .search {
    max-width: none;
    flex-basis: 100%;
    width: 100%;
  }
  .toolbar select {
    min-width: 0;
    flex: 1;
    width: 110px;
  }
  .toolbar .toggle {
    margin: 0;
    width: 100%;
  }
  .board,
  .connections,
  .grid2,
  .detail-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }
  .cover {
    height: 125px;
  }
  .full {
    grid-column: auto;
  }
  .dialog-head,
  .dialog-body {
    padding: 20px;
  }
  .dialog-actions {
    padding: 16px;
  }
  .heading p {
    font-size: 0.85rem;
  }
  .crumb {
    font-size: 0.8rem;
  }
  .table-wrap {
    margin: 0 -5px;
  }
  .empty {
    min-height: 110px;
  }
  .connection {
    padding: 19px;
  }
  #toast {
    left: 16px;
    right: 16px;
    bottom: 16px;
  }
  .login {
    margin: 35px 16px;
  }
  .detail-top h1 {
    flex-basis: 100%;
  }
}
