.flow-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.2rem 0;
}
.flow-links button[aria-pressed="true"] {
  background: var(--navy);
  color: white;
}
.flow-links .step-no {
  opacity: 0.7;
  margin-right: 0.45rem;
}
.grid-row {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(17rem, 1fr);
  gap: 1rem;
}
.card + .card,
.section-gap {
  margin-top: 1rem;
}
.grid-row > .card + .card {
  margin-top: 0;
}
.kpi-note {
  font-size: 0.86rem;
  color: var(--subtle);
}
.timeline {
  list-style: none;
  padding: 0;
  margin: 0;
}
.timeline li {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
}
.timeline li:last-child {
  border: none;
}
.timeline time {
  font-size: 0.85rem;
  color: var(--subtle);
}
.timeline .dot {
  width: 0.62rem;
  height: 0.62rem;
  display: block;
  margin-top: 0.45rem;
  background: #4b8094;
  border-radius: 100%;
  flex-shrink: 0;
}
.hero-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.hero p {
  margin-bottom: 0;
}
.auth-cover .brand small {
  color: #ceddea;
}
#toast:not(:empty) {
  position: fixed;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  padding: 0.85rem 1.2rem;
  background: var(--navy);
  color: white;
  border-radius: 0.65rem;
  box-shadow: 0 3px 12px #0002;
  max-width: 90vw;
}
.form-grid textarea,
.form-grid .wide {
  grid-column: 1/-1;
}
.form-grid label:has(textarea) {
  grid-column: 1/-1;
}
.card form + form,
.card form + details {
  margin-top: 1.25rem;
}
.card details {
  padding: 0.5rem 0;
}
.card details > summary {
  margin-bottom: 0.65rem;
}
.field-note {
  font-size: 0.85rem;
  color: var(--subtle);
  font-weight: 400;
}
.plan-line {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--line);
}
.plan-line input {
  margin-bottom: 0.45rem;
}
tr[data-select] {
  cursor: pointer;
}
td > button {
  white-space: nowrap;
}
.mono {
  font-family: ui-monospace, monospace;
  font-size: 0.9rem;
}
.sample-links {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  align-items: center;
}
.sample-links a {
  font-size: 0.9rem;
}
.mini-bar {
  height: 8px;
  background: #e1e9ee;
  border-radius: 8px;
  overflow: hidden;
  margin: 0.35rem 0 0.75rem;
}
.mini-bar i {
  height: 100%;
  display: block;
  background: #30818b;
  border-radius: 8px;
}
.mini-bar i.orange {
  background: #e99b68;
}
.page-head h1 {
  margin: 0;
}
.section-title {
  margin-top: 1.5rem;
}
.board-stamp {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: #d1e5ed;
}
.board-stamp:before {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  background: #97c4bc;
  border-radius: 50%;
}
.table-wrap th,
.table-wrap td {
  white-space: normal;
}
.table-wrap .num {
  white-space: nowrap;
}
.topbar .actions {
  margin: 0;
}
.sample-ctrl {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}
.inline-label {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  font-weight: 500;
}
.inline-label input[type="checkbox"] {
  width: auto;
}
.invitelink {
  overflow-wrap: anywhere;
}
.auth-card .qr {
  display: block;
  width: 150px;
  height: 150px;
}
.auth-card details {
  margin: 0.6rem 0;
}
.nav-link span {
  display: grid;
  place-content: center;
  width: 1.3rem;
  font-size: 1rem;
}
@media (max-width: 900px) {
  .grid-row {
    grid-template-columns: 1fr;
  }
  .topbar .actions {
    flex-wrap: wrap;
  }
  .hero-top {
    align-items: flex-start;
    flex-direction: column;
  }
  .card .actions {
    flex-wrap: wrap;
  }
}
.sidebar .account a.btn {
  background: #29485e;
  color: #fff;
  border-color: #496379;
}
.grid-row + .card,
.grid-row + #trend,
#positions {
  margin-top: 1rem;
}
.stage-chart {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
  overflow-x: auto;
}
.stage-chart .stage {
  min-width: 0;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  flex-direction: column;
  gap: 0.35rem;
  border: 1px solid transparent;
  background: transparent;
  color: var(--subtle);
  padding: 0.4rem 0.3rem;
  font-weight: 500;
  font-size: 0.86rem;
}
.stage-chart .stage strong {
  color: var(--navy);
  white-space: nowrap;
  font-size: 0.89rem;
}
.stage-chart .graph {
  display: flex;
  align-items: flex-end;
  width: 100%;
  height: 70px;
  border-bottom: 1px solid var(--line);
  background: repeating-linear-gradient(
    to top,
    transparent 0 22px,
    #eff3f5 22px 23px
  );
}
.stage-chart .graph i {
  display: block;
  width: 80%;
  min-height: 3px;
  background: #a4bec9;
  border-radius: 3px 3px 0 0;
}
.stage-chart .stage[aria-pressed="true"] {
  background: #f9f2ed;
  border-color: #f2d5c1;
}
.stage-chart .stage[aria-pressed="true"] .graph i {
  background: #df8550;
}
@media (max-width: 780px) {
  .stage-chart {
    grid-template-columns: repeat(7, minmax(7rem, 1fr));
  }
}
.auth-card .form-grid {
  grid-template-columns: minmax(0, 1fr);
}
.action-highlight {
  border-inline-start: 4px solid var(--accent);
}
.action-highlight .sample-links {
  margin-top: 0.8rem;
}
