.stats {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 14px;
}

.stat {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-card);
  padding: 14px 16px;
}

.stat__label {
  font-size: var(--text-micro);
  color: var(--ink-soft);
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 500;
}

.stat__value {
  font-family: var(--font-num);
  font-size: 25px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-top: 6px;
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.stat__value--up {
  color: var(--mint-deep);
}

html[data-theme="night"] .stat__value--up {
  color: var(--mint);
}

.stat__value--down {
  color: #b8494f;
}

html[data-theme="night"] .stat__value--down {
  color: var(--pink);
}

.stat__foot {
  font-size: var(--text-micro);
  color: var(--ink-soft);
  margin-top: 6px;
  line-height: 1.5;
  font-family: var(--font-sans);
}

.dash {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.dash__col {
  display: grid;
  gap: 14px;
}

.todo-list {
  display: flex;
  flex-direction: column;
}

.todo {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 16px;
  border-top: 1px solid var(--line);
  width: 100%;
  text-align: left;
  font-size: var(--text-body);
  color: var(--ink);
}

.todo:first-child {
  border-top: 0;
}

.todo:hover {
  background: var(--surface-2);
}

.todo__box {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  border: 1.5px solid var(--line-strong);
  flex: none;
  display: grid;
  place-items: center;
  font-size: 11px;
  color: var(--mint-deep);
  font-weight: 700;
}

.todo--done .todo__box {
  background: var(--mint);
  border-color: var(--mint);
  color: #1f2c26;
}

.todo--done {
  color: var(--ink-soft);
}

.todo__label {
  min-width: 0;
}

.todo__count {
  font-family: var(--font-num);
  font-size: var(--text-small);
  color: var(--ink-soft);
  min-width: 1.6ch; margin-right: 6px; font-weight: 500;
  white-space: nowrap;
}

.todo__go {
  color: var(--ink-faint);
  font-size: var(--text-small);
  margin-left: auto;
}

.chart {
  width: 100%;
  height: 168px;
  display: block;
}

.chart__grid line {
  stroke: var(--line);
  stroke-width: 1;
}

.chart__axis {
  font-family: var(--font-num);
  font-size: 9.5px;
  fill: var(--ink-faint);
}

.chart__line {
  fill: none;
  stroke: var(--mint-deep);
  stroke-width: 2.4;
  stroke-linejoin: round;
  stroke-linecap: round;
  transition: stroke-dashoffset 900ms var(--ease);
}

html[data-theme="night"] .chart__line {
  stroke: var(--mint);
}

.chart__line--spend {
  stroke: var(--salmon);
  stroke-width: 2;
  stroke-dasharray: 4 4;
}

.chart__area {
  fill: var(--mint-wash);
  opacity: 0.7;
}

.chart__dot {
  fill: var(--surface);
  stroke: var(--mint-deep);
  stroke-width: 2.4;
}

html[data-theme="night"] .chart__dot {
  stroke: var(--mint);
}

.chart__key {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
  font-size: var(--text-micro);
  color: var(--ink-soft);
  font-family: var(--font-data);
}

.chart__key i {
  width: 16px;
  height: 3px;
  border-radius: 2px;
  background: var(--mint-deep);
  display: inline-block;
  margin-right: 5px;
  vertical-align: middle;
}

.chart__key i.dash {
  background: repeating-linear-gradient(90deg, var(--salmon) 0 4px, transparent 4px 7px);
}

.leader {
  display: flex;
  flex-direction: column;
}

.leader__row {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) auto auto;
  gap: 10px;
  align-items: center;
  padding: 10px 16px;
  border-top: 1px solid var(--line);
  font-size: var(--text-body);
}

.leader__row:first-child {
  border-top: 0;
}

.leader__rank {
  font-family: var(--font-num);
  font-size: var(--text-small);
  color: var(--ink-soft);
}

.leader__row--top .leader__rank {
  color: var(--ink);
  font-weight: 600;
}

.leader__bar {
  height: 6px;
  border-radius: 3px;
  background: var(--mint);
  min-width: 4px;
}

.leader__row--2 .leader__bar {
  background: var(--lime);
}

.leader__row--3 .leader__bar {
  background: var(--peach);
}

.leader__row--4 .leader__bar {
  background: var(--salmon);
}

.leader__row--5 .leader__bar {
  background: var(--pink);
}

.leader__units {
  font-family: var(--font-data);
  font-size: var(--text-small);
  color: var(--ink-soft);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.leader__money {
  font-family: var(--font-data);
  font-size: var(--text-small);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.board {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
  align-items: start;
}

.column {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 10px;
  min-height: 140px;
}

.column__head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 2px 4px 10px;
}

.column__name {
  font-size: var(--text-small);
  font-weight: 500;
  letter-spacing: -0.01em;
  font-family: var(--font-mono);
}

.column__count {
  margin-left: auto;
  font-family: var(--font-num);
  font-size: var(--text-micro);
  color: var(--ink-soft);
}

.column__hint {
  font-size: var(--text-micro);
  color: var(--ink-faint);
  padding: 0 4px 8px;
  line-height: 1.45;
  font-family: var(--font-sans);
}

.ordercard {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  box-shadow: var(--shadow-card);
  padding: 11px;
  margin-bottom: 9px;
  width: 100%;
  text-align: left;
  display: block;
}

.ordercard:last-child {
  margin-bottom: 0;
}

.ordercard:hover {
  border-color: var(--mint-deep);
}

.ordercard--cold {
  border-left: 3px solid var(--salmon);
}

.ordercard__id {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: var(--text-micro);
  color: var(--ink-soft);
  font-weight: 500;
}

.ordercard__total {
  margin-left: auto;
  color: var(--ink);
  font-weight: 600;
  font-family: var(--font-data);
  font-variant-numeric: tabular-nums;
}

.ordercard__who {
  font-size: var(--text-body);
  font-weight: 600;
  margin-top: 6px;
  letter-spacing: -0.01em;
  font-family: var(--font-title);
}

.ordercard__where {
  font-size: var(--text-micro);
  color: var(--ink-soft);
  margin-top: 2px;
  font-family: var(--font-num);
}

.ordercard__tags {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  margin-top: 9px;
}

.ordercard__act {
  margin-top: 10px;
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
}

.ordercard__act .btn {
  width: 100%;
  justify-content: center;
}

.ordercard__next {
  margin-top: 10px;
  font-family: var(--font-sans);
  font-size: var(--text-small);
  color: var(--ink-soft);
  line-height: 1.4;
}

.stagebar {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 12px 0 4px;
}

.stagebar__step {
  flex: 1;
  height: 5px;
  border-radius: 3px;
  background: var(--shade);
}

.stagebar__step.is-done {
  background: var(--mint);
}

.stagebar__step.is-now {
  background: var(--mint-deep);
}

html[data-theme="night"] .stagebar__step.is-now {
  background: var(--mint);
}

.stagebar__labels {
  display: flex;
  justify-content: space-between;
  font-size: var(--text-mini);
  font-family: var(--font-mono);
  color: var(--ink-faint);
}

.detail {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.detail__block {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 12px 13px;
  background: var(--surface-2);
}

.detail__block--plain {
  background: transparent;
}

.detail__label {
  font-size: var(--text-micro);
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--ink-faint);
  margin-bottom: 8px;
  font-weight: 500;
}

.detail__rows {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: var(--text-small);
}

.detail__row {
  display: flex;
  gap: 12px;
  align-items: baseline;
}

.detail__row span:first-child {
  min-width: 0;
}

.detail__row span:last-child {
  margin-left: auto;
  font-family: var(--font-data);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.detail__total {
  border-top: 1px solid var(--line);
  padding-top: 8px;
  margin-top: 2px;
  font-weight: 600;
}

.detail__acts {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.lineitem {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 0;
  border-top: 1px solid var(--line);
  font-size: var(--text-small);
}

.lineitem:first-of-type {
  border-top: 0;
}

.lineitem__name {
  min-width: 0;
}

.lineitem__pipe {
  font-family: var(--font-mono);
  font-size: var(--text-mini);
  color: var(--ink-soft);
  display: block;
  margin-top: 1px;
}

.lineitem__qty {
  font-family: var(--font-data);
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
}

.lineitem__price {
  margin-left: auto;
  font-family: var(--font-data);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.lineitem__tick {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1.5px solid var(--line-strong);
  flex: none;
  display: grid;
  place-items: center;
  font-size: 11px;
  color: transparent;
  font-size: var(--text-mini);
}

.thread__tags .pill {
  white-space: normal;
  overflow-wrap: anywhere;
  height: auto;
  min-height: 22px;
  padding: 3px 8px;
  line-height: 1.35;
  text-align: left;
  font-weight: 500;
}

.lineitem--packed .lineitem__tick {
  background: var(--mint);
  border-color: var(--mint);
  color: #1f2c26;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.box {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
  padding: 11px 11px 10px;
  min-height: 150px;
  display: flex;
  flex-direction: column;
}

.box__label {
  font-size: var(--text-micro);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-title);
}

.box__count {
  margin-left: auto;
  font-family: var(--font-num);
  color: var(--ink-soft);
  font-weight: 400;
}

.box__draw {
  margin: 8px 0 6px;
  flex: 1;
  display: grid;
  place-items: center;
}

.box__draw svg {
  width: 104px;
  height: 80px;
  overflow: visible;
}

.box__ground {
  filter: blur(2.5px);
}

.box__label {
  flex-wrap: wrap;
  font-family: var(--font-title);
}

.box__items {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  line-height: 1.5;
  margin-top: auto;
  font-size: var(--text-micro);
}

.box__item {
  background: var(--peach-wash);
  border-radius: 5px;
  padding: 4px 8px;
  letter-spacing: 0.02em;
  animation: drop 520ms var(--ease) both;
  font-family: var(--font-mono);
  font-size: var(--text-mini);
}

.box__item--warm {
  background: var(--mint-wash);
}

.box__empty {
  font-size: var(--text-micro);
  color: var(--ink-faint);
  font-family: var(--font-mono);
}

@keyframes drop {
  0% { opacity: 0; transform: translateY(-16px); }
  70% { opacity: 1; transform: translateY(1px); }
  100% { opacity: 1; transform: none; }
}

.notice {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  border-radius: var(--r-md);
  padding: 11px 12px;
  background: var(--salmon-wash);
  border: 1px solid var(--line);
  font-size: var(--text-small);
}

.notice--mint {
  background: var(--mint-wash);
}

.notice--peach {
  background: var(--peach-wash);
}

.notice b {
  display: block;
  font-weight: 600;
  margin-bottom: 2px;
}

.notice__body {
  color: var(--ink-soft);
  line-height: 1.5;
}

.table-wrap {
  overflow-x: auto;
}

table.shelf {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-small);
  min-width: 560px;
}

table.shelf th {
  text-align: left;
  font-size: var(--text-micro);
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-faint);
  font-weight: 500;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

table.shelf td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}

table.shelf tr:last-child td {
  border-bottom: 0;
}

table.shelf tr.is-low td {
  background: var(--salmon-wash);
}

.cell-name {
  font-weight: 500;
}

.cell-sub {
  font-family: var(--font-num);
  font-size: var(--text-micro);
  color: var(--ink-soft);
  margin-top: 2px;
}

.num {
  font-family: var(--font-data);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 22px;
  padding: 0 8px;
  border-radius: 5px;
  font-size: var(--text-mini);
  font-family: var(--font-mono);
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--ink-soft);
  white-space: nowrap;
}

.pill--ok {
  background: var(--mint-wash);
  border-color: transparent;
  color: var(--ink);
}

.pill--low {
  background: var(--salmon);
  border-color: transparent;
  color: var(--ink);
}

.pill--watch {
  background: var(--peach);
  border-color: transparent;
  color: var(--ink);
}

.pill--info {
  background: var(--lime-wash);
  border-color: transparent;
  color: var(--ink);
}

.rows {
  display: flex;
  flex-direction: column;
}

.row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-top: 1px solid var(--line);
  font-size: var(--text-small);
}

.row:first-child {
  border-top: 0;
}

.row__main {
  min-width: 0;
}

.row__title {
  font-size: var(--text-body);
  font-weight: 500;
  letter-spacing: -0.01em;
  font-family: var(--font-title);
}

.row__sub {
  color: var(--ink-soft);
  font-size: var(--text-micro);
  margin-top: 3px;
  font-family: var(--font-data);
  letter-spacing: 0.02em;
}

.row__amount {
  margin-left: auto;
  font-family: var(--font-data);
  font-size: var(--text-body);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.row__acts {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.row--stack {
  align-items: flex-start;
  flex-direction: column;
  gap: 8px;
}

.progress {
  height: 26px;
  border-radius: var(--r-sm);
  background: var(--surface-2);
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}

.progress__fill {
  position: absolute;
  inset: 0 auto 0 0;
  background: var(--mint);
  width: 0%;
  transition: width 1000ms linear;
}

.progress__truck {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%) scaleX(-1);
  font-size: 14px;
  line-height: 1;
  transition: left 1000ms linear;
}

.progress__label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-num);
  font-size: var(--text-mini);
  color: var(--ink);
}

.feed-list {
  display: flex;
  flex-direction: column;
}

.feed-row {
  display: flex;
  gap: 12px;
  padding: 12px 16px;
  border-top: 1px solid var(--line);
  font-size: var(--text-small);
}

.feed-row:first-child {
  border-top: 0;
}

.feed-row__when {
  font-family: var(--font-num);
  font-size: var(--text-micro);
  color: var(--ink-faint);
  width: 62px;
  flex: none;
  padding-top: 2px;
}

.feed-row__what {
  min-width: 0;
  flex: 1;
}

.feed-row__who {
  font-weight: 600;
}

.feed-row__body {
  color: var(--ink-soft);
  margin-top: 3px;
  line-height: 1.5;
}

.track {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.track__step {
  display: flex;
  gap: 11px;
  font-size: var(--text-small);
}

.track__rail {
  width: 14px;
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.track__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--shade);
  border: 1.5px solid var(--line-strong);
  margin-top: 4px;
  flex: none;
}

.track__step--done .track__dot {
  background: var(--mint);
  border-color: var(--mint);
}

.track__step--now .track__dot {
  background: var(--mint-deep);
  border-color: var(--mint-deep);
}

.track__line {
  flex: 1;
  width: 1.5px;
  background: var(--line);
  margin: 3px 0;
}

.track__step--done .track__line {
  background: var(--mint);
}

.track__text {
  padding-bottom: 10px;
}

.track__when {
  font-family: var(--font-num);
  font-size: var(--text-micro);
  color: var(--ink-faint);
  margin-top: 2px;
}

.threads {
  display: grid;
  grid-template-columns: minmax(0, 320px) minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.thread {
  display: block;
  width: 100%;
  text-align: left;
  padding: 12px 14px;
  border-top: 1px solid var(--line);
  font-size: var(--text-small);
}

.thread:first-child {
  border-top: 0;
}

.thread:hover {
  background: var(--surface-2);
}

.thread.is-on {
  background: var(--mint-wash);
}

.thread__top {
  display: flex;
  align-items: center;
  gap: 8px;
}

.thread__who {
  font-weight: 600;
  color: var(--ink);
  font-family: var(--font-title);
}

.thread__when {
  margin-left: auto;
  font-family: var(--font-num);
  font-size: var(--text-micro);
  color: var(--ink-faint);
  white-space: nowrap;
}

.thread__preview {
  color: var(--ink-soft);
  margin-top: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-family: var(--font-sans);
}

.thread__tags {
  display: flex;
  gap: 5px;
  margin-top: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.senti {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 22px;
  padding: 0 8px 0 5px;
  border-radius: 5px;
  font-size: var(--text-mini);
  font-family: var(--font-mono);
  color: var(--ink);
  white-space: nowrap;
  font-weight: 500;
}

.senti img {
  width: 15px;
  height: 15px;
  object-fit: contain;
}

.senti--happy {
  background: var(--mint);
}

.senti--asking {
  background: var(--peach);
}

.senti--upset {
  background: var(--salmon);
}

.senti--return {
  background: var(--pink);
}

.convo {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
}

.msg {
  max-width: 84%;
  border-radius: var(--r-md);
  padding: 10px 13px;
  font-size: var(--text-small);
  background: var(--surface-2);
  border: 1px solid var(--line);
  line-height: 1.55;
}

.msg__meta {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-num);
  font-size: var(--text-mini);
  color: var(--ink-faint);
  margin-bottom: 5px;
}

.msg--shop {
  margin-left: auto;
  background: var(--mint-wash);
  border-color: transparent;
}

.note {
  border-left: 3px solid var(--mint-mid);
  background: var(--surface-2);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  padding: 10px 13px;
  font-size: var(--text-small);
  max-width: 92%;
}

.note__top {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: var(--text-mini);
  color: var(--ink-soft);
  margin-bottom: 5px;
}

.note__body {
  color: var(--ink-soft);
  line-height: 1.55;
  font-family: var(--font-sans);
}

.note__body b {
  color: var(--ink);
  font-weight: 600;
}

.draft {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
  padding: 12px 13px;
  font-size: var(--text-small);
  box-shadow: var(--shadow-card);
}

.draft__head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 8px;
}

.draft__subj {
  font-weight: 600;
  min-width: 0;
  line-height: 1.35;
}

.draft__close {
  margin-left: auto;
  width: 32px;
  height: 32px;
  flex: none;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  color: var(--ink-soft);
  font-size: var(--text-small);
  line-height: 1;
}

.draft__close:hover {
  background: var(--surface-2);
  color: var(--ink);
  border-color: var(--line-strong);
}

.draft__body {
  white-space: pre-line;
  color: var(--ink-soft);
  line-height: 1.6;
  font-size: var(--text-small);
  font-family: var(--font-sans);
}

.draft__acts {
  display: flex;
  gap: 8px;
  margin-top: 11px;
  align-items: center;
  flex-wrap: wrap;
}

.draft__tag {
  font-family: var(--font-mono);
  font-size: var(--text-mini);
  color: var(--ink-soft);
  margin-left: auto;
}

.legend {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  font-size: var(--text-micro);
  color: var(--ink-soft);
  padding: 10px 16px;
  border-bottom: 1px solid var(--line);
}

.legend__lead {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-faint);
}

.rule {
  height: 1px;
  background: var(--line);
  margin: 18px 0;
}

.split-2 {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.watch {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: flex-start;
}

.watch__item {
  flex: 1 1 210px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 11px 12px;
  background: var(--surface-2);
  font-size: var(--text-small);
}

.watch__city {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}

.watch__temp {
  margin-left: auto;
  font-family: var(--font-num);
  font-size: var(--text-small);
}

.watch__temp--cold {
  color: #b8494f;
}

html[data-theme="night"] .watch__temp--cold {
  color: var(--pink);
}

.watch__note {
  color: var(--ink-soft);
  font-size: var(--text-small);
  margin-top: 6px;
  line-height: 1.5;
  font-family: var(--font-sans);
}

.suggest {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px 14px;
  border-top: 1px solid var(--line);
  font-size: var(--text-small);
}

.suggest:first-child {
  border-top: 0;
}

.suggest__body {
  min-width: 0;
  flex: 1;
}

.suggest__body b {
  font-weight: 600;
  font-family: var(--font-title);
}

.suggest__line {
  color: var(--ink-soft);
  margin-top: 3px;
  line-height: 1.5;
}

.suggest__acts {
  display: flex;
  gap: 6px;
  margin-top: 9px;
  flex-wrap: wrap;
}

@media (max-width: 1120px) {
  .dash {
    grid-template-columns: minmax(0, 1fr);
  }
  .board {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .threads {
    grid-template-columns: minmax(0, 1fr);
  }
  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .split-2 {
    grid-template-columns: minmax(0, 1fr);
  }
  .board {
    grid-template-columns: minmax(0, 1fr);
  }
  .stats {
    grid-template-columns: minmax(0, 1fr);
  }
  .split {
    grid-template-columns: minmax(0, 1fr);
  }
  .row {
    flex-wrap: wrap;
  }
  .row__amount {
    margin-left: 0;
  font-family: var(--font-data);
  font-variant-numeric: tabular-nums;
}
  .row__acts {
    justify-content: flex-start;
    margin-left: 0;
    width: 100%;
  }
  .chart {
    height: 148px;
  }
  .feed-row__when {
    width: 52px;
  font-family: var(--font-num);
}
  .msg {
    max-width: 96%;
  }
  .note {
    max-width: 100%;
  }
}


.shelf-cards {
  display: none;
}



@media (max-width: 700px) {
  .table-wrap {
    display: none;
  }
  .shelf-cards {
    display: block;
  }
  .shelf-card {
    padding: 12px 14px;
    border-top: 1px solid var(--line);
  }
  .shelf-card:first-child {
    border-top: 0;
  }
  .shelf-card.is-low {
    background: var(--salmon-wash);
  }
  .shelf-card__name {
    font-weight: 500;
    letter-spacing: -0.01em;
  }
  .shelf-card__meta {
    font-family: var(--font-num);
    font-size: var(--text-micro);
    color: var(--ink-soft);
    margin-top: 3px;
    line-height: 1.5;
  }
  .shelf-card__stock {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: var(--text-small);
    margin-top: 9px;
  }
  .shelf-card__stock b {
    font-family: var(--font-num);
    font-size: var(--text-body);
  }
  .shelf-card__acts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    margin-top: 10px;
  }
  .shelf-card__acts .btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 720px) {
  .ordercard__act,
  .row__acts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    width: 100%;
  }
  .ordercard__act .btn,
  .row__acts .btn {
    width: 100%;
    justify-content: center;
  }
  .ordercard__act .btn--go,
  .ordercard__act .btn--warn {
    grid-column: 1 / -1;
  }
  .btn--more {
    display: none;
  }
}

@media (max-width: 620px) {
  .todo {
    padding: 10px 13px;
    gap: 9px;
    font-size: var(--text-small);
  }
  .todo__count {
    margin-left: 0;
  font-family: var(--font-num);
}
  .todo__word {
    display: none;
  }
  .todo__go {
    margin-left: auto;
  }
  .thread {
    padding: 11px 14px;
  }
  .thread__preview {
    -webkit-line-clamp: 1;
    font-size: var(--text-small);
  font-family: var(--font-sans);
}
  .thread__subject {
    display: none;
  }
  .thread__tags {
    margin-top: 7px;
  }
  .thread__tags .pill {
    white-space: nowrap;
    padding: 0 8px;
    height: 22px;
    line-height: 22px;
  }
  .box__draw svg {
    width: 148px;
    height: 114px;
  }
  .chart {
    height: 132px;
  }
  .detail__key {
    min-width: 74px;
  font-family: var(--font-mono);
  font-weight: 500;
}
  .feed-row__when {
    width: 46px;
  font-family: var(--font-num);
}
  .legend {
    gap: 8px;
    padding: 10px 13px;
  }
}


@media (max-width: 620px) {
  .view .suggest__acts,
  [data-drawer-body] .suggest__acts,
  [data-drawer-body] .detail__acts {
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .view .suggest__acts .btn,
  [data-drawer-body] .suggest__acts .btn,
  [data-drawer-body] .detail__acts .btn {
    width: 100%;
    justify-content: center;
  }
  .rma__meta {
    display: none;
  }
  .watch__item {
    flex: 1 1 100%;
  }
  .ledger-hide {
    display: none;
  }
  .view__note {
    max-width: 40ch;
  font-family: var(--font-sans);
}
}


.card__head {
  flex-wrap: wrap;
}

.done-list {
  display: flex;
  flex-direction: column;
}

.done-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-top: 1px solid var(--line);
  font-size: var(--text-small);
}

.done-row:first-child {
  border-top: 0;
}

.done-row__main {
  min-width: 0;
}

.done-row__title {
  font-size: var(--text-body);
  font-weight: 500;
  letter-spacing: -0.01em;
  font-family: var(--font-title);
}

.done-row__meta {
  font-family: var(--font-data);
  font-size: var(--text-micro);
  color: var(--ink-soft);
  margin-top: 3px;
  letter-spacing: 0.02em;
}

.done-row__cash {
  margin-left: auto;
  text-align: right;
  font-family: var(--font-data);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.done-row__paid {
  display: block;
  font-size: var(--text-micro);
  color: var(--mint-deep);
}

html[data-theme="night"] .done-row__paid {
  color: var(--mint);
}

.done-row__acts {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.channel-chip {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 7px;
  border-radius: 5px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: var(--text-micro);
  color: var(--ink-soft);
  white-space: nowrap;
  flex: none;
  font-weight: 500;
}

.spinner {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--text-small);
  color: var(--ink-soft);
}

.spinner svg {
  width: 17px;
  height: 17px;
  flex: none;
  transform: rotate(-90deg);
}

.spinner__track {
  fill: none;
  stroke: var(--line-strong);
  stroke-width: 2.4;
}

.spinner__fill {
  fill: none;
  stroke: var(--mint-deep);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-dasharray: 39;
  stroke-dashoffset: 39;
  animation: fill-round 1.4s linear infinite;
}

html[data-theme="night"] .spinner__fill {
  stroke: var(--mint);
}

@keyframes fill-round {
  0% { stroke-dashoffset: 39; }
  100% { stroke-dashoffset: 0; }
}

.box__busy {
  margin-top: 8px;
}

.convo__about {
  font-size: var(--text-small);
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.linkish {
  border-bottom: 1px solid var(--line-strong);
  font-family: var(--font-mono);
  font-size: var(--text-small);
  color: var(--ink);
}

.linkish:hover {
  color: var(--mint-deep);
}

.reply {
  border-top: 1px solid var(--line);
  padding-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.reply__label {
  font-family: var(--font-mono);
  font-size: var(--text-micro);
  color: var(--ink-soft);
}

.reply__box {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  background: var(--surface);
  padding: 9px 11px;
  font-family: var(--font-sans);
  font-size: var(--text-small);
  line-height: 1.5;
  resize: vertical;
  min-height: 72px;
}

.reply__box::placeholder {
  color: var(--ink-faint);
}

@media (max-width: 620px) {
  .done-row {
    flex-wrap: wrap;
  }
  .done-row__cash {
    margin-left: 0;
    text-align: left;
  font-family: var(--font-data);
  font-variant-numeric: tabular-nums;
}
  .done-row__acts {
    justify-content: flex-start;
    width: 100%;
  }
}

.view__title,
.card__title,
.top__name,
.dock__name,
.modal__to,
.ordercard__who,
.done-row__title,
.row__title,
.thread__who,
.pipe-item__who,
.suggest__body b,
.box__label,
.empty b,
.legend__lead {
  font-family: var(--font-title);
  letter-spacing: -0.01em;
}

.chart__scale {
  font-family: var(--font-sans);
  font-size: var(--text-micro);
  color: var(--ink-faint);
  letter-spacing: 0;
}

.linetools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin-top: 8px;
}

.linetools__field {
  flex: 1 1 190px;
  min-width: 0;
  height: 34px;
  padding: 0 9px;
  font-size: var(--text-small);
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
}

.linetools__qty {
  width: 74px;
  height: 34px;
  padding: 0 9px;
  font-size: var(--text-small);
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
}

.linetools--price {
  margin-top: 7px;
}

.linetools__note {
  margin-top: 8px;
  font-size: var(--text-micro);
  color: var(--ink-faint);
}

.lineitem__drop {
  margin-left: 8px;
  padding: 0;
  font-family: var(--font-sans);
  font-size: var(--text-micro);
  color: var(--ink-soft);
  background: none;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  cursor: pointer;
}

.lineitem__drop:hover {
  color: var(--mint-deep);
  border-color: var(--mint-deep);
}

.chart-wrap {
  position: relative;
}

.chart__ymax {
  position: absolute;
  top: 0;
  left: 2px;
  font-family: var(--font-data);
  font-size: var(--text-micro);
  color: var(--ink-faint);
}

.ordercard.is-leaving {
  pointer-events: none;
  opacity: 0.34;
  filter: saturate(0.55);
  transition: opacity 520ms ease-out, filter 520ms ease-out;
}
