:root {
  color-scheme: light;
  --ink: #16243a;
  --soft: #607084;
  --line: #dce4ec;
  --blue: #166ccb;
  --mint: #147855;
  --bg: #f3f6fa;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  font-size: 14px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}
button,
a,
input,
select,
textarea {
  outline-offset: 3px;
}
button {
  cursor: pointer;
  background: white;
  border: 1px solid var(--line);
  border-radius: 9px;
}
button:disabled {
  cursor: default;
  opacity: 0.55;
}
button:hover:not(:disabled) {
  border-color: #9db9d8;
}
button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 2px solid #227bd7;
}
button svg,
small svg {
  flex-shrink: 0;
}
h1,
h2,
h3,
h4,
p {
  margin: 0;
}
small {
  font-size: 12px;
}
a {
  color: var(--blue);
}
.topbar {
  background: #ffffffed;
  border-bottom: 1px solid var(--line);
  height: 60px;
  padding: 0 clamp(16px, 2vw, 38px);
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 56px);
}
.brand {
  display: block;
  width: 194px;
  height: auto;
  flex: none;
}
.topbar nav {
  display: flex;
  gap: 5px;
  align-items: center;
}
.editor-access {
  margin-left: auto;
  padding: 6px 12px;
  flex: none;
}
.topbar nav button {
  border: 0;
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 10px 13px;
  color: #627184;
  background: transparent;
  font-weight: 550;
}
.topbar nav button.current {
  color: var(--blue);
  background: #eaf3fd;
}
.topbar nav button:hover {
  background: #f1f6fb;
}
.sync a {
  display: flex;
  align-items: center;
  color: var(--blue);
  text-decoration: none;
  white-space: nowrap;
  gap: 4px;
}
.sync a:hover,
.sync a:focus-visible {
  text-decoration: underline;
}
.dot {
  display: inline-block;
  border-radius: 50%;
  width: 7px;
  height: 7px;
  background: #24aa7d;
}
.dot.offline {
  background: #e19b26;
}
main {
  max-width: 2400px;
  margin: auto;
  padding: clamp(16px, 1.6vw, 30px);
}
.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 20px;
}
h1 {
  font-weight: 700;
  letter-spacing: -1.35px;
  font-size: clamp(26px, 2vw, 38px);
  line-height: 1.15;
}
.hero p {
  margin-top: 6px;
  font-size: 14px;
  color: var(--soft);
}
.sync {
  display: grid;
  justify-items: end;
  gap: 4px;
  font-size: 12px;
  font-weight: 600;
}
.sync small {
  font-size: 11px;
  font-weight: 400;
  color: var(--soft);
}
.metrics {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 13px;
}
.metric,
.panel {
  border: 1px solid var(--line);
  background: white;
  border-radius: 15px;
  box-shadow: 0 3px 10px #23314304;
}
.metric {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 12px;
}
.metric > div {
  display: grid;
  gap: 2px;
}
.metric > div > span {
  color: var(--soft);
  font-size: 12px;
  font-weight: 550;
}
.metric strong {
  font-size: 23px;
  font-weight: 680;
  letter-spacing: -1px;
  line-height: 1.1;
}
.metric-icon,
.section-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  width: 43px;
  height: 43px;
}
.sky {
  color: #137aac;
  background: #e7f5fc;
}
.blue {
  color: #146ccd;
  background: #e8f1ff;
}
.lavender {
  color: #7553b2;
  background: #f1ecfa;
}
.green,
.mint,
.teal {
  color: #137b59;
  background: #e5f6ee;
}
.orange {
  color: #bb6921;
  background: #fdf0e2;
}
.board-grid {
  display: grid;
  grid-template-columns: minmax(232px, 0.97fr) minmax(435px, 2.27fr) minmax(
      218px,
      0.87fr
    );
  gap: 14px;
  height: max(570px, calc(100dvh - 268px));
}
.board-grid > .panel {
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.panel-top {
  padding: 17px 16px 13px;
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}
.panel-title {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}
.panel-title h2 {
  font-size: 17px;
  letter-spacing: -0.45px;
  font-weight: 670;
}
.section-icon {
  width: 29px;
  height: 29px;
  border-radius: 8px;
}
.count {
  padding: 3px 8px;
  font-size: 12px;
  color: #53647a;
  background: #f0f3f7;
  border: 1px solid #e5eaf0;
  border-radius: 9px;
  font-variant-numeric: tabular-nums;
}
.panel-title .count {
  margin-left: auto;
}
.sort-options {
  margin: 8px 0 0;
  padding: 4px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.sort-options label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 7px;
  border-radius: 5px;
  color: #52657b;
  font-size: 12px;
  cursor: pointer;
}
.sort-options label:has(:checked) {
  color: #175a9d;
  background: #edf5ff;
}
.sort-options input {
  accent-color: var(--blue);
  margin: 0;
}
.readiness-filter {
  flex: 1;
  min-width: 0;
  height: 34px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #445970;
  background: #f8fafc;
  font-size: 12px;
}
.find-row,
.place-tools,
.table-tools,
.actions,
.check-line,
.photo-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.find-row,
.place-tools {
  margin-top: 12px;
}
.search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  min-width: 0;
  flex: 1;
  color: #728295;
}
.search input {
  min-width: 0;
  border: 0;
  background: transparent;
  width: 100%;
  outline: 0;
  font-size: 12px;
}
.search:focus-within {
  outline: 2px solid #b8d8f7;
}
.square {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: #5e7388;
  padding: 0;
  flex-shrink: 0;
}
.square.on {
  color: var(--blue);
  background: #edf5ff;
}
.card-list,
.lanes,
.table-scroll {
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #cdd7e2 transparent;
}
.card-list {
  padding: 11px;
  display: flex;
  flex-flow: column;
  gap: 8px;
  flex: 1;
}
.queue-list {
  overflow-anchor: none;
}
.cab-card {
  position: relative;
  text-align: left;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) 8px;
  align-items: center;
  gap: 8px 9px;
  border: 1px solid #dfe6ed;
  border-radius: 11px;
  padding: 11px 10px;
  background: linear-gradient(115deg, #fbfcfd, #fff);
  width: 100%;
  flex-shrink: 0;
}
.cab-card[draggable="true"],
.work-card[draggable="true"] {
  cursor: grab;
}
.cab-card:active[draggable="true"],
.work-card:active[draggable="true"] {
  cursor: grabbing;
}
.cab-card:hover {
  background: #f7fbff;
}
.card-info {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}
.card-info strong,
.work-name strong {
  font-size: 14px;
  line-height: 1.18;
  letter-spacing: -0.27px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: anywhere;
}
.card-info .obj {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 12px;
  line-height: 1.3;
  color: #405169;
}
.card-info small {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--soft);
  font-size: 10.8px;
  line-height: 1.22;
}
.card-info small svg {
  width: 12px;
  height: 12px;
}
.card-grip {
  width: 14px;
  height: 14px;
  color: #90a1b4;
  justify-self: center;
}
.badges {
  grid-column: 1/-1;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.badge {
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border-radius: 5px;
  padding: 3px 6px;
  background: #edf1f5;
  color: #526376;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.25;
}
.badge.green,
.badge.teal {
  background: #e6f5eb;
  color: #17734f;
}
.badge.yellow {
  background: #fff2ac;
  color: #6a5408;
}
.badge.sky,
.badge.blue {
  color: #176aab;
  background: #e9f4fc;
}
.badge.lavender {
  color: #7653a3;
  background: #f3edfc;
}
.badge.muted {
  color: #667787;
  background: #f0f3f5;
}
.glyph {
  width: 56px;
  height: 65px;
  display: grid;
  place-items: center;
  position: relative;
}
.glyph:after {
  content: "";
  position: absolute;
  bottom: 0;
  width: 73%;
  height: 5px;
  filter: blur(2px);
  background: #182b4322;
  border-radius: 50%;
}
.glyph.large {
  width: 90px;
  height: 115px;
}
.cabinet {
  position: relative;
  transform: skewY(-2deg);
  margin-left: var(--depth);
  border: 1px solid #8c9ba4;
  border-radius: 1px;
  background: linear-gradient(110deg, #f4f6f6, #d9dfe3 70%, #d1d8dc);
  box-shadow: inset 0 0 0 1px #fff9;
  isolation: isolate;
}
.cabinet:before {
  content: "";
  position: absolute;
  inset: -1px auto -1px calc(-1 * var(--depth));
  width: var(--depth);
  transform: skewY(23deg);
  transform-origin: right top;
  background: linear-gradient(90deg, #97a2a9, #b9c2c8);
  border: 1px solid #9ca7ad;
}
.cab-door {
  position: absolute;
  inset: 4% 5% 4%;
  border: 1px solid #b9c4ca;
  box-shadow: 0 0 0 1px #edf1f166;
}
.cab-door b {
  position: absolute;
  right: 8%;
  top: 47%;
  height: 13%;
  min-height: 3px;
  width: 2px;
  border-radius: 2px;
  background: #52616c;
}
.cab-door em {
  position: absolute;
  right: 20%;
  top: 34%;
  width: 4px;
  height: 4px;
  background: #edbd49;
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}
.cab-door i {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  border-left: 1px solid #aab9c2;
}
.cab-foot {
  position: absolute;
  height: 3%;
  min-height: 1px;
  inset: auto 2% -4%;
  background: #788691;
}
.panel-foot,
.next-stage {
  font-size: 11px;
  display: flex;
  gap: 7px;
  align-items: center;
  flex-shrink: 0;
}
.panel-foot {
  border-top: 1px solid #e7ecf2;
  padding: 10px 14px;
  color: #64768b;
  background: #fbfcfe;
}
.switch {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  background: #f1f4f8;
  border: 1px solid #e4e9ef;
  border-radius: 9px;
}
.switch button {
  font-size: 12px;
  padding: 5px 10px;
  border: 0;
  background: transparent;
  color: #66768b;
  border-radius: 6px;
}
.switch .selected {
  background: #fff;
  box-shadow: 0 1px 4px #20385822;
  color: #1d60a8;
  font-weight: 630;
}
.lanes {
  padding: 10px;
  flex: 1;
  background: #fafbfd;
}
.lane {
  display: grid;
  grid-template-columns: clamp(99px, 8.2vw, 151px) minmax(0, 1fr);
  min-height: 110px;
  border: 1px solid #dfe6ee;
  border-radius: 11px;
  background: white;
  overflow: hidden;
  margin-bottom: 8px;
}
.lane:last-child {
  margin-bottom: 0;
}
.lane.over {
  background: #e9f5ff;
  outline: 2px solid #3695e7;
  outline-offset: -2px;
}
.lane-owner {
  padding: 11px 10px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 5px;
  border-right: 1px solid #e4eaf0;
  background: linear-gradient(105deg, #fff, #f7f9fc);
}
.lane-owner strong {
  font-size: 12px;
  line-height: 1.2;
  overflow-wrap: anywhere;
}
.avatar {
  width: 29px;
  height: 29px;
  border-radius: 9px;
  display: inline-grid;
  place-items: center;
  background: #e7f2fc;
  color: #356a99;
  font-size: 11px;
  font-weight: 650;
  object-fit: cover;
  flex-shrink: 0;
}
.avatar.purple {
  background: #f0eafb;
  color: #7758a1;
}
.owner-type {
  font-size: 9px;
  letter-spacing: 0.2px;
  font-weight: 600;
  color: #3978a7;
}
.owner-type.sub {
  color: #8755ad;
}
.track {
  overflow-x: auto;
  scrollbar-width: thin;
  background:
    repeating-linear-gradient(
      to right,
      transparent 0,
      transparent 47px,
      #e5ecf3 48px
    ),
    linear-gradient(90deg, #fbfcfd, #f6f9fc);
  display: flex;
}
.external .track {
  background-color: #f8f5fc;
}
.track-inner {
  padding: 9px;
  display: flex;
  gap: 7px;
  align-items: center;
  min-width: 100%;
  width: max-content;
  justify-content: flex-end;
}
.work-card {
  min-width: 140px;
  max-width: 310px;
  flex: none;
  display: grid;
  gap: 5px;
  text-align: left;
  border: 1px solid #d8e2ec;
  border-top: 3px solid #a3b3c2;
  padding: 8px 11px 7px;
  background: white;
  border-radius: 9px;
  box-shadow: 0 2px 4px #24354b08;
}
.work-card.active {
  border-color: #a8ccf8;
  border-top-color: #348ded;
  background: linear-gradient(120deg, #f6fbff, #eff6ff);
}
.work-card.sub {
  border-top-color: #a085c6;
}
.work-card.paused {
  border-top-color: #dba350;
  background: #fffaf3;
}
.work-name {
  display: flex;
  align-items: center;
  gap: 6px;
}
.work-name svg {
  color: #487399;
}
.work-card small {
  font-size: 10.5px;
  color: #50647b;
  max-width: 19ch;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.work-progress {
  display: flex;
  align-items: center;
  gap: 7px;
}
.work-progress b {
  font-size: 12px;
  margin-left: auto;
}
.bar-scroll {
  max-width: 220px;
  overflow-x: auto;
  scrollbar-width: thin;
}
.segments {
  height: 15px;
  position: relative;
  background: #dce5ee;
  border-radius: 4px;
  overflow: hidden;
}
.segments i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #36a5ed, #227ee5);
}
.sub .segments i {
  background: #9472bd;
}
.segments:after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    to right,
    transparent 0,
    transparent calc(var(--unit) - 2px),
    #fff calc(var(--unit) - 2px),
    #fff var(--unit)
  );
}
.work-card footer {
  display: flex;
  justify-content: space-between;
  gap: 9px;
  color: #62758b;
  font-size: 10px;
}
.work-card.active footer span:first-child {
  color: #1a70c1;
  font-weight: 600;
}
.work-card.paused footer span:first-child {
  color: #935d18;
  font-weight: 600;
}
.work-card footer span {
  white-space: nowrap;
}
.work-card footer time {
  font-weight: 400;
  font-variant-numeric: tabular-nums;
}
.work-card footer .dot {
  width: 5px;
  height: 5px;
  background: #358dee;
  margin: 0 4px 1px 0;
}
.drop-hint {
  margin: auto;
  color: #8291a0;
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
}
.unknown,
.empty {
  color: var(--soft);
}
.empty {
  padding: 25px;
  text-align: center;
}
.ready .card-info {
  gap: 5px;
}
.next-stage {
  margin: 10px;
  padding: 12px;
  background: #f0f5fc;
  color: #37628b;
  font-size: 12px;
  font-weight: 600;
  border-color: #d5e2f1;
}
.next-stage svg:last-child {
  margin-left: auto;
}
.table-tools {
  padding: 16px;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}
.table-tools .search {
  max-width: 400px;
  min-width: 180px;
}
.table-tools select,
form input,
form textarea {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  background: white;
}
.table-scroll {
  max-height: calc(100dvh - 245px);
  min-height: 210px;
}
table {
  border-collapse: collapse;
  width: 100%;
}
th,
td {
  text-align: left;
  padding: 12px 15px;
  border-bottom: 1px solid #e8edf3;
}
th {
  font-weight: 600;
  font-size: 12px;
  background: #f7f9fc;
  position: sticky;
  top: 0;
  z-index: 1;
}
td {
  font-size: 13px;
}
td:first-child {
  min-width: 190px;
  max-width: 450px;
}
td small,
.people-grid small {
  display: block;
  color: var(--soft);
  margin-top: 4px;
}
.cell-link {
  border: 0;
  background: none;
  padding: 0;
  text-align: left;
  color: #175e9a;
  font-weight: 600;
}
.directory .table-tools {
  justify-content: space-between;
}
.people-grid {
  padding: 15px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px;
}
.people-grid button {
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  padding: 15px;
}
.people-grid button > svg {
  margin-left: auto;
  color: var(--soft);
}
.people-grid strong {
  font-size: 14px;
}
.people-grid .avatar {
  height: 40px;
  width: 40px;
  font-size: 15px;
}
.primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: white;
  border-color: #2177c6;
  background: #1c72c7;
  padding: 9px 13px;
  font-weight: 600;
}
.primary:hover {
  background: #1764b0;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 17px;
  box-shadow: 0 25px 100px #16325236;
  padding: 0;
  width: min(540px, calc(100vw - 24px));
  max-height: 89dvh;
  color: var(--ink);
}
dialog::backdrop {
  background: #17304758;
  backdrop-filter: blur(3px);
}
.dialog-body {
  padding: 22px;
}
.dialog-body header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 13px;
}
.dialog-body h2 {
  font-size: 20px;
  letter-spacing: -0.6px;
}
.identity {
  display: flex;
  align-items: center;
  gap: 16px;
  border-top: 1px solid var(--line);
  padding-top: 10px;
}
.identity h3 {
  font-size: 19px;
  margin: 6px 0;
}
.identity p,
.identity small {
  color: var(--soft);
}
.detail-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 12px 0;
}
.detail-metrics > div {
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 9px;
}
.detail-metrics span,
.detail-metrics strong {
  display: block;
}
.detail-metrics span {
  color: var(--soft);
  font-size: 11px;
  margin-bottom: 3px;
}
.detail-metrics small {
  font-weight: 400;
}
.cab-journal {
  margin: 18px 0;
}
.cab-journal h4 {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 8px;
  font-size: 14px;
}
.cab-journal h4 svg {
  color: #596f85;
}
.cab-journal ol {
  list-style: none;
  padding: 3px 12px;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  max-height: 210px;
  overflow: auto;
}
.cab-journal li {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 2px 10px;
  padding: 8px 0 8px 15px;
}
.cab-journal li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #3982bf;
}
.cab-journal li.pause-event::before {
  background: #bc8328;
}
.cab-journal li + li {
  border-top: 1px solid var(--line);
}
.cab-journal strong {
  font-size: 13px;
  font-weight: 600;
}
.cab-journal small,
.cab-journal time,
.cab-journal p {
  color: var(--soft);
  font-size: 12px;
}
.cab-journal small {
  display: block;
  margin-top: 2px;
}
.cab-journal time {
  font-variant-numeric: tabular-nums;
}
.cab-journal p {
  margin: 6px 0;
}
dl {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  font-size: 13px;
}
dt {
  color: var(--soft);
}
dd {
  margin: 0;
  text-align: right;
}
.project-roles {
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 16px;
}
.project-roles dd {
  overflow-wrap: anywhere;
}
.note,
.warning {
  padding: 10px 13px;
  border-radius: 8px;
  font-size: 13px;
  margin: 10px 0;
}
.note {
  background: #f4f7fa;
}
.warning {
  background: #fff2d9;
  color: #825b15;
}
.people-pick {
  max-height: 145px;
  overflow: auto;
  margin: 8px 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 7px;
}
.people-pick label,
.check-line {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
}
.people-pick label {
  padding: 4px;
}
.check-line {
  margin-top: 11px;
}
.actions {
  flex-wrap: wrap;
}
.actions button:not(.primary) {
  padding: 8px;
}
.actions .danger {
  color: #a33131;
  border-color: #e8c9c9;
}
.remove-actions {
  margin-top: 16px;
}
.detail-foot {
  border-top: 1px solid var(--line);
  padding-top: 12px;
  margin-top: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.detail-foot a,
.upload {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.detail-foot small {
  color: var(--soft);
}
form > label {
  display: grid;
  gap: 6px;
  margin-bottom: 12px;
  font-size: 13px;
}
form textarea {
  min-height: 65px;
}
.photo-row {
  margin: 14px 0;
}
.photo-row .avatar {
  width: 50px;
  height: 50px;
  font-size: 18px;
}
.upload {
  border: 1px solid var(--line);
  padding: 7px;
  border-radius: 8px;
  cursor: pointer;
}
.upload input {
  width: 1px;
  height: 1px;
  opacity: 0;
  position: absolute;
}
.toast {
  position: fixed;
  z-index: 4;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 12px;
  background: #18334b;
  color: white;
  padding: 12px 15px;
  border-radius: 10px;
  box-shadow: 0 6px 20px #11334d29;
}
.toast button {
  border: 0;
  background: transparent;
  color: #fff;
  padding: 0;
  display: flex;
}
.assignment-notice {
  display: grid;
  gap: 5px;
  max-width: 460px;
  overflow-wrap: anywhere;
}
.assignment-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
}
.assignment-links a {
  display: inline-flex;
  align-items: center;
  padding: 3px 0;
  gap: 3px;
  color: #a9dcff;
  text-underline-offset: 3px;
}
.loading {
  min-height: 70vh;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 12px;
}
@media (min-width: 1800px) {
  .board-grid {
    grid-template-columns: 1fr 2.5fr 1fr;
  }
  .card-info strong {
    font-size: 16px;
  }
  .card-info small {
    font-size: 12px;
  }
}
@media (max-width: 1120px) {
  .topbar {
    gap: 15px;
  }
  .topbar nav {
    gap: 1px;
  }
  .topbar nav button {
    padding: 9px;
  }
  .board-grid {
    grid-template-columns: minmax(200px, 0.96fr) minmax(335px, 1.8fr) minmax(
        182px,
        0.84fr
      );
    gap: 8px;
  }
  .panel-top {
    padding: 13px 10px;
  }
  .panel-title {
    gap: 6px;
  }
  .panel-title h2 {
    font-size: 15px;
  }
  .cab-card {
    grid-template-columns: 42px minmax(0, 1fr) 6px;
    padding: 8px;
    gap: 5px;
  }
  .glyph {
    transform: scale(0.82);
    transform-origin: center;
    width: 42px;
  }
  .metric {
    padding: 12px;
    gap: 9px;
  }
  .metric-icon {
    width: 35px;
    height: 35px;
  }
  .lane {
    grid-template-columns: 95px minmax(0, 1fr);
  }
}
@media (max-width: 880px) {
  .topbar {
    height: auto;
    min-height: 58px;
    flex-wrap: wrap;
    gap: 5px;
    padding: 9px 14px;
  }
  .topbar nav {
    overflow: auto;
    width: 100%;
    order: 1;
  }
  .topbar nav button {
    font-size: 12px;
    white-space: nowrap;
  }
  .brand {
    width: 155px;
  }
}
@media (max-width: 800px) {
  .hero {
    margin-bottom: 12px;
  }
  .hero p {
    font-size: 12px;
  }
  .metrics {
    gap: 6px;
    margin-bottom: 12px;
  }
  .metric {
    padding: 10px 8px;
    gap: 5px;
  }
  .metric-icon {
    width: 25px;
    height: 25px;
    border-radius: 6px;
  }
  .metric-icon svg {
    width: 16px;
  }
  .metric > div > span {
    font-size: 10px;
  }
  .metric strong {
    font-size: 20px;
  }
  .board-grid {
    height: auto;
    display: flex;
    flex-direction: column;
  }
  .board-grid .places {
    order: -1;
    max-height: 65vh;
    min-height: 320px;
  }
  .queue-panel,
  .tests-panel {
    max-height: 460px;
  }
  .cab-card {
    grid-template-columns: 54px minmax(0, 1fr) 15px;
  }
  .card-info {
    gap: 3px;
  }
  .places .panel-title h2 {
    font-size: 17px;
  }
  .board-grid > .panel {
    border-radius: 12px;
  }
  .table-scroll {
    max-height: 70vh;
  }
}
@media (max-width: 540px) {
  main {
    padding: 12px;
  }
  .hero {
    align-items: flex-start;
  }
  h1 {
    font-size: 23px;
  }
  .hero p {
    max-width: 220px;
  }
  .sync {
    font-size: 10px;
  }
  .sync small {
    font-size: 9px;
  }
  .metrics {
    grid-template-columns: repeat(5, 1fr);
  }
  .metric {
    display: block;
    border-radius: 9px;
  }
  .metric-icon {
    display: none;
  }
  .metric > div > span {
    font-size: 9px;
  }
  .metric strong {
    font-size: 18px;
  }
  .topbar nav button {
    gap: 4px;
    padding: 8px 7px;
  }
  .topbar nav button svg {
    width: 13px;
  }
  .detail-foot {
    display: grid;
  }
  .table-tools {
    padding: 9px;
  }
  .dialog-body {
    padding: 14px;
  }
  .toast {
    width: max-content;
    max-width: 90vw;
  }
  .work-card {
    min-width: 125px;
  }
  .lane {
    grid-template-columns: 91px minmax(0, 1fr);
  }
}

.badge.amber {
  color: #945b14;
  background: #fff1d9;
}
.queue-target {
  color: #8294a6;
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  flex: 1;
  align-self: stretch;
  min-width: 110px;
  margin: 1px;
  border: 1px dashed #cedbe7;
  border-radius: 8px;
  background: #ffffff61;
}
.lane.over .queue-target {
  background: #e5f4ff;
  color: #176abd;
  border-color: #67abe6;
}
.work-card {
  min-width: 170px;
}
.work-card small {
  max-width: 25ch;
}
.work-dims {
  font-size: 10px;
  color: #65788c;
  display: flex;
  align-items: center;
  gap: 4px;
}
.track-inner {
  width: max-content;
}
.work-card.active {
  box-shadow: 0 2px 5px #1974cb0c;
}
@media (min-width: 1121px) {
  main:has(.board-grid) {
    display: grid;
    grid-template-columns: minmax(300px, 1fr) clamp(610px, 54vw, 860px);
    grid-template-rows: auto minmax(475px, 1fr);
    height: calc(100dvh - 60px);
    gap: 12px 24px;
    padding-block: 14px;
  }
  main:has(.board-grid):has(> .warning) {
    grid-template-rows: auto auto minmax(475px, 1fr);
  }
  main:has(.board-grid) > .warning {
    grid-row: 2;
  }
  main:has(.board-grid) > .metrics {
    grid-column: 2;
    grid-row: 1;
  }
  main:has(.board-grid) .hero {
    flex-direction: column;
    align-items: start;
    justify-content: center;
    gap: 3px;
    margin: 0;
  }
  main:has(.board-grid) .hero p {
    margin-top: 2px;
    font-size: 12px;
  }
  main:has(.board-grid) .sync {
    display: flex;
    gap: 8px;
    font-size: 10px;
  }
  main:has(.board-grid) .sync small {
    font-size: 10px;
  }
  main:has(.board-grid) h1 {
    font-size: clamp(22px, 1.55vw, 26px);
    letter-spacing: -0.7px;
  }
  .metrics {
    margin: 0;
    gap: 6px;
    align-self: center;
  }
  .metric {
    padding: 7px 9px;
    gap: 7px;
    border-radius: 10px;
  }
  .metric > div > span {
    font-size: 11px;
  }
  .metric-icon {
    width: 28px;
    height: 28px;
    border-radius: 8px;
  }
  .metric-icon svg {
    width: 18px;
    height: 18px;
  }
  .board-grid {
    grid-column: 1/-1;
    height: auto;
    min-height: 475px;
  }
  main > .warning {
    grid-column: 1/-1;
  }
  .work-card {
    min-width: 195px;
  }
  .work-card small {
    max-width: 29ch;
  }
  .work-name strong {
    font-size: 15px;
  }
}
@media (max-width: 1120px) {
  .queue-target {
    display: none;
  }
}
