:root {
  --font-title: "Highway Gothic Wide", "Highway Gothic", "Inter", ui-sans-serif, system-ui, sans-serif;
  --font-sans: "Highway Gothic", "Inter", ui-sans-serif, system-ui, sans-serif;
  --font-data: "Inter", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-mono: "ZT Nature", "Inter", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-num: "Utendo", "Inter", ui-sans-serif, system-ui, -apple-system, sans-serif;
  color-scheme: light;
  --mint: #a8e6cf;
  --lime: #dcedc1;
  --peach: #ffd3b6;
  --salmon: #ffaaa5;
  --pink: #ff8b94;
  --mint-deep: #2f6b52;
  --mint-mid: #7fcfae;
  --mint-wash: #e8f7f0;
  --lime-wash: #f2f8e4;
  --peach-wash: #fdf0e4;
  --salmon-wash: #fdeae8;
  --pink-wash: #fdeaec;
  --canvas: #fdf8f3;
  --sand: #f7efe6;
  --surface: #ffffff;
  --surface-2: #fbf7f2;
  --ink: #2e3a34;
  --ink-soft: #5d6b63;
  --ink-faint: #67746c;
  --line: rgba(46, 58, 52, 0.13);
  --line-strong: rgba(46, 58, 52, 0.22);
  --shade: rgba(46, 58, 52, 0.07);
  --shadow-card: 0 1px 2px rgba(46, 58, 52, 0.06), 0 8px 24px rgba(46, 58, 52, 0.06);
  --shadow-float: 0 12px 40px rgba(46, 58, 52, 0.16);
  --text-micro: 12px;
  --text-mini: 11.5px;
  --text-small: 13px;
  --text-body: 14px;
  --text-title: 15px;
  --text-h: 23px;
  --rail-w: 224px;
  --dock-w: 344px;
  --top-h: 60px;
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 14px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --dur: 220ms;
}
@font-face {
  font-family: "Highway Gothic";
  src: url("../fonts/HWYGOTH.TTF") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Highway Gothic Wide";
  src: url("../fonts/HWYGWDE.TTF") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "ZT Nature";
  src: url("../fonts/ZTNature-Medium.ttf") format("truetype");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Utendo";
  src: url("../fonts/Utendo-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Utendo";
  src: url("../fonts/Utendo-Bold.ttf") format("truetype");
  font-weight: 500 700;
  font-style: normal;
  font-display: swap;
}



.bell {
  display: none;
}

.modal {
  display: none;
}

.modal.is-on {
  display: grid;
  place-items: center;
  position: fixed;
  inset: 0;
  z-index: 55;
  padding: 20px;
  background: rgba(23, 29, 26, 0.44);
}

.modal__card {
  width: min(620px, 100%);
  max-height: 88vh;
  overflow-y: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-float);
}

.modal__head {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 15px 16px;
  border-bottom: 1px solid var(--line);
}

.modal__to {
  font-size: var(--text-title);
  font-weight: 600;
  letter-spacing: -0.02em;
  font-family: var(--font-title);
}

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

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

.modal__close:hover {
  background: var(--surface-2);
  color: var(--ink);
}

.modal__body {
  padding: 16px;
}

.modal__body .draft__body {
  border: 1px solid transparent;
  border-radius: var(--r-sm);
  padding: 10px 12px;
  background: var(--surface-2);
}

.modal__body .draft__body[contenteditable="true"] {
  border-color: var(--mint-deep);
  background: var(--surface);
  outline: none;
}

.modal__foot {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 14px 16px 16px;
  border-top: 1px solid var(--line);
}
html[data-theme="night"] {
  color-scheme: dark;
  --mint-deep: #8fe0bb;
  --mint-mid: #4f9d7c;
  --mint-wash: #24352d;
  --lime-wash: #2b3524;
  --peach-wash: #3a2e26;
  --salmon-wash: #3a2a29;
  --pink-wash: #3a2a2d;
  --canvas: #171d1a;
  --sand: #1d2420;
  --surface: #1f2724;
  --surface-2: #232c28;
  --ink: #ecf4e9;
  --ink-soft: #a9b8ae;
  --ink-faint: #94a39a;
  --line: rgba(236, 244, 233, 0.14);
  --line-strong: rgba(236, 244, 233, 0.26);
  --shade: rgba(0, 0, 0, 0.3);
  --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.3), 0 10px 26px rgba(0, 0, 0, 0.28);
  --shadow-float: 0 16px 46px rgba(0, 0, 0, 0.5);
}

html[data-theme="night"] .iconbtn__glyph,
html[data-theme="night"] .rail__glyph,
html[data-theme="night"] .mark {
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.55)) drop-shadow(0 0 10px rgba(168, 230, 207, 0.16));
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--text-body);
  line-height: 1.5;
  letter-spacing: -0.01em;
  min-height: 100vh;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}

h1,
h2,
h3,
h4,
p,
ul,
ol,
figure {
  margin: 0;
  padding: 0;
}

ul,
ol {
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
  color: inherit;
  letter-spacing: inherit;
}

button {
  background: none;
  border: 0;
  cursor: pointer;
}

img {
  display: block;
  max-width: 100%;
}

img.mark {
  display: inline-block;
  vertical-align: middle;
  object-fit: contain;
  flex: none;
}

.mark--lg {
  width: 42px;
  height: 42px;
}

.mark--md {
  width: 22px;
  height: 22px;
}

.mark--sm {
  width: 16px;
  height: 16px;
}

.mark--xs {
  width: 13px;
  height: 13px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--mint-deep);
  color: #ffffff;
  padding: 10px 16px;
  border-radius: 0 0 var(--r-md) 0;
  z-index: 60;
}

.skip:focus {
  left: 0;
}

:focus-visible {
  outline: 2px solid var(--mint-deep);
  outline-offset: 2px;
}

html[data-theme="night"] :focus-visible {
  outline-color: var(--mint);
}

.top {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 18px;
  height: var(--top-h);
  padding: 0 20px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.top__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.top__mark {
  width: 36px;
  height: 36px;
  flex: none;
  border-radius: 10px;
  background: var(--mint-wash);
  display: grid;
  place-items: center;
}

.top__mark svg {
  width: 24px;
  height: 24px;
}

.top__name {
  font-size: var(--text-title);
  font-weight: 600;
  letter-spacing: -0.02em;
  white-space: nowrap;
  font-family: var(--font-title);
}

.top__sub {
  font-size: var(--text-micro);
  color: var(--ink-soft);
  font-family: var(--font-num);
  white-space: nowrap;
}

.top__status {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 4px;
  min-width: 0;
  overflow: hidden;
}

.top__tools {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 26px;
  padding: 0 9px;
  border-radius: var(--r-sm);
  background: var(--surface-2);
  border: 1px solid var(--line);
  font-size: var(--text-micro);
  color: var(--ink-soft);
  white-space: nowrap;
  font-family: var(--font-num);
}

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

.chip--peach {
  background: var(--peach-wash);
  border-color: transparent;
  color: var(--ink);
}

.chip--salmon {
  background: var(--salmon-wash);
  border-color: transparent;
  color: var(--ink);
}

.chip--pink {
  background: var(--pink-wash);
  border-color: transparent;
  color: var(--ink);
}

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

.chip--plain {
  background: transparent;
}

.chip__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--mint-deep);
  flex: none;
}

.chip__dot--live {
  animation: pulse 2.4s var(--ease) infinite;
}

.chip--alert {
  background: var(--salmon);
  border-color: transparent;
  color: var(--ink);
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.82); }
}

.iconbtn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 34px;
  padding: 0 10px;
  border-radius: var(--r-sm);
  border: 1px solid transparent;
  color: var(--ink);
  font-size: var(--text-small);
  position: relative;
}

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

.iconbtn[aria-pressed="true"] {
  background: var(--mint-wash);
  border-color: var(--line);
}

.iconbtn__glyph {
  width: 17px;
  height: 17px;
  flex: none;
  font-family: var(--font-mono);
}

.iconbtn__badge {
  position: absolute;
  top: -3px;
  right: -3px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--pink);
  color: #1f2c26;
  font-family: var(--font-num);
  font-size: var(--text-mini);
  font-weight: 600;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 2px var(--surface);
}

.shell {
  display: grid;
  grid-template-columns: var(--rail-w) minmax(0, 1fr) var(--dock-w);
  align-items: start;
  min-height: calc(100vh - var(--top-h));
}

.shell.is-nodock {
  grid-template-columns: var(--rail-w) minmax(0, 1fr);
}

.shell.is-nodock .dock {
  display: none;
}

.rail {
  position: sticky;
  top: var(--top-h);
  align-self: start;
  height: calc(100vh - var(--top-h));
  overflow-y: auto;
  padding: 16px 12px 24px;
  background: var(--canvas);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.rail__head {
  font-size: var(--text-micro);
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-faint);
  padding: 6px 10px 8px;
}

.rail__item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: var(--r-sm);
  font-size: var(--text-body);
  color: var(--ink-soft);
  border: 1px solid transparent;
}

.rail__item:hover {
  background: var(--surface);
  color: var(--ink);
}

.rail__item.is-on {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line);
  font-weight: 500;
}

.rail__glyph {
  width: 18px;
  height: 18px;
  flex: none;
  object-fit: contain;
}

.rail__count {
  margin-left: auto;
  font-family: var(--font-num);
  font-size: var(--text-micro);
  color: var(--ink-soft);
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 1px 6px;
}

.rail__item.is-on .rail__count {
  background: var(--mint-wash);
  border-color: transparent;
}

.rail__foot {
  margin-top: auto;
  padding: 14px 12px;
  border-radius: var(--r-md);
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: var(--text-micro);
  color: var(--ink-soft);
  line-height: 1.6;
}

.rail__foot b {
  display: block;
  font-size: var(--text-small);
  color: var(--ink);
  font-weight: 500;
}

.main {
  min-width: 0;
  padding: 22px 24px 40px;
}

.view {
  display: none;
}

.view.is-on {
  display: block;
}

.view.is-enter {
  animation: rise 260ms var(--ease) both;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

.view__head {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.view__title {
  font-size: var(--text-h);
  font-weight: 600;
  letter-spacing: -0.03em;
  font-family: var(--font-title);
}

.view__note {
  font-size: var(--text-small);
  color: var(--ink-soft);
  margin-top: 2px;
  font-family: var(--font-sans);
}

.view__actions {
  margin-left: auto;
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 34px;
  padding: 0 12px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink);
  font-size: var(--text-small);
  font-weight: 500;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}

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

.btn:active {
  transform: translateY(1px);
}

.btn--go {
  background: var(--mint-deep);
  border-color: var(--mint-deep);
  color: #ffffff;
}

.btn--go:hover {
  background: #275c46;
  border-color: #275c46;
}

html[data-theme="night"] .btn--go {
  background: #2f6b52;
  border-color: #3d7f63;
  color: #ffffff;
}

.btn--soft {
  background: var(--mint-wash);
  border-color: transparent;
}

.btn--warn {
  background: var(--salmon);
  border-color: transparent;
}

.btn--ghost {
  background: transparent;
  border-color: transparent;
  color: var(--ink-soft);
}

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

.btn__short {
  display: none;
}

.btn--sm {
  height: 28px;
  padding: 0 9px;
  font-size: var(--text-micro);
}

.btn[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn[disabled]:hover {
  border-color: var(--line-strong);
}

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

.card__head {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}

.card__title {
  font-size: var(--text-title);
  font-weight: 600;
  letter-spacing: -0.02em;
  font-family: var(--font-title);
}

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

.card__tools {
  margin-left: auto;
  display: flex;
  gap: 6px;
  align-items: center;
}

.card__body {
  padding: 14px 16px 16px;
}

.card__body--flush {
  padding: 0;
}

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

.dock {
  position: sticky;
  z-index: 10;
  top: var(--top-h);
  align-self: start;
  height: calc(100vh - var(--top-h));
  border-left: 1px solid var(--line);
  background: var(--surface);
  display: flex;
  flex-direction: column;
}

.dock__head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}

.dock__avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--mint-wash);
  display: grid;
  place-items: center;
  flex: none;
}

.dock__avatar svg {
  width: 22px;
  height: 22px;
}

.dock__name {
  font-size: var(--text-title);
  font-weight: 600;
}

.dock__state {
  font-size: var(--text-micro);
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  gap: 5px;
}

.dock__feed {
  flex: 1;
  overflow-y: auto;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dock__compose {
  border-top: 1px solid var(--line);
  padding: 12px 14px 14px;
  display: flex;
  gap: 8px;
  align-items: center;
}

.pipe-item {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 10px 12px;
  background: var(--surface-2);
  font-size: var(--text-small);
}

.pipe-item.is-enter {
  animation: rise 240ms var(--ease) both;
}

.pipe-item--quiet {
  background: transparent;
  border-style: dashed;
}

.pipe-item--you {
  background: var(--mint-wash);
  border-color: transparent;
  border-left: 3px solid var(--mint-deep);
}

.pipe-item__top {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 5px;
}

.pipe-item__who {
  font-weight: 600;
  font-size: var(--text-small);
  font-family: var(--font-title);
}

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

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

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

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

.pipe-item__acts .btn {
  height: auto;
  min-height: 28px;
  padding: 5px 10px;
  white-space: normal;
  text-align: left;
  line-height: 1.35;
  max-width: 100%;
}

.field {
  flex: 1;
  height: 34px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line-strong);
  background: var(--surface);
  padding: 0 11px;
  font-size: var(--text-small);
  min-width: 0;
}

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

.drawer {
  position: fixed;
  z-index: 40;
  top: 0;
  right: 0;
  height: 100vh;
  width: min(460px, 94vw);
  background: var(--surface);
  border-left: 1px solid var(--line);
  box-shadow: var(--shadow-float);
  display: flex;
  flex-direction: column;
  transform: translateX(102%);
  transition: transform 280ms var(--ease);
}

.drawer.is-open {
  transform: none;
}

.drawer__head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 16px 14px;
  border-bottom: 1px solid var(--line);
}

.drawer__title {
  font-size: var(--text-title);
  font-weight: 500; font-family: var(--font-mono);
  letter-spacing: -0.02em;
}

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

.drawer__close {
  margin-left: auto;
  width: 32px;
  height: 32px;
  border-radius: var(--r-sm);
  display: grid;
  place-items: center;
  color: var(--ink-soft);
}

.drawer__close:hover {
  background: var(--surface-2);
  color: var(--ink);
}

.drawer__body {
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.bell {
  position: fixed;
  z-index: 45;
  top: calc(var(--top-h) - 4px);
  right: 16px;
  width: min(360px, 92vw);
  max-height: 70vh;
  overflow-y: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-float);
  padding: 12px;
}

.bell__head {
  display: flex;
  align-items: baseline;
  gap: 9px;
  padding: 4px 8px 10px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 6px;
}

.bell__row {
  display: flex;
  width: 100%;
  text-align: left;
  gap: 9px;
  padding: 9px 8px;
  border-radius: var(--r-sm);
  font-size: var(--text-small);
  color: var(--ink-soft);
  align-items: flex-start;
}

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

.bell__row + .bell__row {
  border-top: 1px solid var(--line);
}

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

.bell__row--unread span {
  color: var(--ink);
  font-weight: 500;
}

.bell__row span {
  min-width: 0;
}

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

.bell__foot {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 8px 2px;
  border-top: 1px solid var(--line);
  font-size: var(--text-micro);
  color: var(--ink-soft);
}

.toast {
  position: fixed;
  z-index: 50;
  left: 20px;
  bottom: 20px;
  transform: translateY(12px);
  max-width: min(440px, 92vw);
  background: var(--ink);
  color: var(--surface);
  border-radius: var(--r-md);
  padding: 11px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: var(--text-small);
  box-shadow: var(--shadow-float);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
}

html[data-theme="night"] .dock {
  background: var(--canvas);
}

html[data-theme="night"] .dock {
  background: var(--canvas);
}

html[data-theme="night"] .toast {
  background: var(--surface-2);
  color: var(--ink);
  border: 1px solid var(--line-strong);
}

.toast.is-on {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.toast__text {
  min-width: 0;
  line-height: 1.45;
}

.toast__text b {
  margin-bottom: 2px;
}

.toast__text b {
  display: block;
  font-weight: 600;
}

.toast .btn {
  height: auto;
  min-height: 30px;
  padding: 6px 11px;
  font-size: var(--text-micro);
  line-height: 1.35;
  white-space: normal;
  text-align: left;
  flex: none;
}

.toast--hint {
  background: var(--mint-deep);
  color: #ffffff;
}

html[data-theme="night"] .toast--hint {
  background: var(--mint-wash);
  color: var(--ink);
}

.demo-band {
  background: var(--ink);
  color: #fdf8f3;
  padding: 44px 24px 48px;
}

html[data-theme="night"] .demo-band {
  background: #101613;
}

.demo-band__inner {
  max-width: 760px;
  margin-inline: auto;
}

.demo-band__eyebrow {
  font-family: var(--font-mono);
  font-size: var(--text-micro);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--mint);
  margin-bottom: 12px;
}

.demo-band__title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.demo-band__title .mark {
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.45)) drop-shadow(0 0 12px rgba(168, 230, 207, 0.2));
}

.demo-band__body {
  font-size: var(--text-body);
  line-height: 1.6;
  color: #e7ded4;
  margin-bottom: 10px;
}

.demo-band__actions {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.demo-band__cta {
  display: inline-flex;
  align-items: center;
  height: 38px;
  padding: 0 16px;
  border-radius: var(--r-sm);
  background: var(--mint);
  color: #1f2c26;
  font-weight: 600;
  font-size: var(--text-small);
}

.demo-band__cta:hover {
  background: var(--lime);
}

.demo-band__link {
  font-size: var(--text-small);
  color: var(--mint);
  font-family: var(--font-mono);
  border-bottom: 1px solid rgba(168, 230, 207, 0.4);
}

.demo-band__rules {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(247, 239, 230, 0.2);
  display: flex;
  align-items: flex-start;
  gap: 14px;
  flex-wrap: wrap;
}

.demo-band__rules p {
  font-size: var(--text-micro);
  color: #cbbfb2;
  max-width: 46ch;
  line-height: 1.6;
}

.reset {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 32px;
  padding: 0 12px;
  border-radius: var(--r-sm);
  border: 1px solid rgba(247, 239, 230, 0.28);
  color: #e7ded4;
  font-size: var(--text-micro);
  font-family: var(--font-mono);
}

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

.empty {
  padding: 26px 16px;
  text-align: center;
  color: var(--ink-soft);
  font-size: var(--text-small);
}

.empty b {
  display: block;
  color: var(--ink);
  margin-bottom: 4px;
  font-weight: 600;
  font-family: var(--font-title);
}

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 1280px) {
  :root {

    --dock-w: 312px;
    --rail-w: 206px;
  }
}

@media (min-width: 861px) and (max-width: 1279px) {
  .shell {
    grid-template-columns: var(--rail-w) minmax(0, 1fr);
  }
}

@media (max-width: 1279px) {
  .dock {
    position: fixed;
    top: var(--top-h);
    right: 0;
    width: min(400px, 92vw);
    z-index: 38;
    transform: translateX(102%);
    transition: transform 280ms var(--ease);
    box-shadow: var(--shadow-float);
  }
  .dock.is-open {
    transform: none;
  }
}

@media (max-width: 860px) {
  .toast {
    left: 12px;
    right: 12px;
    max-width: none;
  }
  .shell,
  .shell.is-nodock {
    grid-template-columns: minmax(0, 1fr);
  }
  .rail {
    position: static;
    height: auto;
    overflow: visible;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
    padding: 10px 12px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .rail__head,
  .rail__foot {
    display: none;
  }
  .rail__item {
    display: block;
    position: relative;
    padding: 9px 9px;
    border: 1px solid var(--line);
    background: var(--surface);
    font-size: var(--text-mini);
    min-width: 0;
    line-height: 1.3;
  }
  .rail__item.is-on {
    border-color: var(--mint-deep);
  }
  .rail__item:hover {
    border-color: var(--line-strong);
  }
  .rail__glyph {
    width: 17px;
    height: 17px;
    margin-bottom: 5px;
  }
  .rail__item > span:not(.rail__count) {
    display: block;
    line-height: 1.3;
    white-space: normal;
    overflow-wrap: anywhere;
  }
  .rail__count {
    position: absolute;
    top: 7px;
    right: 8px;
    margin-left: 0;
    padding: 0 5px;
    font-size: var(--text-micro);
  font-family: var(--font-num);
}
  .main {
    padding: 16px 14px 32px;
  }
  .top__status {
    display: none;
  }
  .view__title {
    font-size: 19px;
  font-family: var(--font-title);
}
  .drawer {
    width: 100vw;
  }
}

@media (max-width: 460px) {
  .rail {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .top {
    gap: 10px;
    padding: 0 12px;
  }
  .top__sub {
    display: none;
  font-family: var(--font-num);
}
  .top__name {
    font-size: var(--text-body);
  font-family: var(--font-title);
}
  .iconbtn__label {
    display: none;
  }
  .demo-band {
    padding: 34px 16px 38px;
  }
  .demo-band__title {
    font-size: 17px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
@keyframes truck-body {
  from, 12.5%, 25%, 37.5%, 50%, 62.5%, 75%, 87.5%, to {
    animation-timing-function: cubic-bezier(0.33, 0, 0.67, 0);
    transform: translate(0, 0) rotate(0);
  }
  6.25%, 18.75%, 31.25%, 43.75%, 56.25%, 68.75%, 81.25%, 93.75% {
    animation-timing-function: cubic-bezier(0.33, 1, 0.67, 1);
    transform: translate(0, 1px) rotate(-0.75deg);
  }
}
@keyframes truck-line {
  from {
    stroke-dashoffset: -18;
  }
  to {
    stroke-dashoffset: 78;
  }
}
@keyframes truck-outside1 {
  from {
    stroke-dashoffset: 105;
  }
  to {
    stroke-dashoffset: -105;
  }
}
@keyframes truck-outside2 {
  from {
    stroke-dashoffset: 168;
  }
  to {
    stroke-dashoffset: -42;
  }
}
@keyframes truck-outside3 {
  from {
    stroke-dashoffset: 192;
  }
  to {
    stroke-dashoffset: -18;
  }
}
@keyframes truck-wheel {
  from, 12.5%, 25%, 37.5%, 50%, 62.5%, 75%, 87.5%, to {
    animation-timing-function: cubic-bezier(0.33, 0, 0.67, 0);
    transform: translate(0, 0);
  }
  6.25%, 18.75%, 31.25%, 43.75%, 56.25%, 68.75%, 81.25%, 93.75% {
    animation-timing-function: cubic-bezier(0.33, 1, 0.67, 1);
    transform: translate(0, -1px);
  }
}
@keyframes truck-wheel-spin {
  from {
    stroke-dashoffset: -15.71;
    transform: rotate(0);
  }
  to {
    stroke-dashoffset: 15.71;
    transform: rotate(-4turn);
  }
}
@keyframes truck-window1 {
  from {
    stroke-dashoffset: -21;
  }
  to {
    stroke-dashoffset: 189;
  }
}
@keyframes truck-window2 {
  from {
    stroke-dashoffset: -39;
  }
  to {
    stroke-dashoffset: 171;
  }
}

.flyover {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 5;
}

.flyover__card {
  position: absolute;
  margin: 0;
  box-shadow: var(--shadow-card);
}

.flyover__truck {
  position: absolute;
  width: 138px;
  height: 69px;
  color: var(--ink);
  will-change: transform;
}

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

.flyover__truck svg {
  display: block;
  width: 100%;
  height: auto;
  transform: scaleX(-1);
}

.truck-trail {
  position: absolute;
  left: -48px;
  top: 54%;
  width: 46px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, currentColor);
  opacity: 0;
  animation: truck-trail 0.46s linear infinite;
}

.truck-trail--short {
  left: -34px;
  top: 62%;
  width: 30px;
  animation-duration: 0.62s;
}

@keyframes truck-trail {
  0% {
    transform: translateX(16px) scaleX(0.55);
    opacity: 0;
  }
  45% {
    opacity: 0.6;
  }
  100% {
    transform: translateX(-12px) scaleX(1);
    opacity: 0;
  }
}

.flyover__truck .truck__body,
.flyover__truck .truck__line,
.flyover__truck .truck__outside1,
.flyover__truck .truck__outside2,
.flyover__truck .truck__outside3,
.flyover__truck .truck__wheel,
.flyover__truck .truck__wheel-spin,
.flyover__truck .truck__window1,
.flyover__truck .truck__window2 {
  animation: truck-body 1.6s linear infinite;
}

.flyover__truck .truck__body {
  transform-origin: 17px 11px;
}

.flyover__truck .truck__line {
  animation-name: truck-line;
}

.flyover__truck .truck__outside1 {
  animation-name: truck-outside1;
}

.flyover__truck .truck__outside2 {
  animation-name: truck-outside2;
}

.flyover__truck .truck__outside3 {
  animation-name: truck-outside3;
}

.flyover__truck .truck__wheel {
  animation-name: truck-wheel;
}

.flyover__truck .truck__wheel-spin {
  animation-name: truck-wheel-spin;
  transform-origin: 6.5px 17px;
}

.flyover__truck .truck__wheel:nth-child(2) {
  animation-delay: 0.1s;
}

.flyover__truck .truck__wheel:nth-child(2) .truck__wheel-spin {
  transform-origin: 27px 17px;
}

.flyover__truck .truck__window1 {
  animation-name: truck-window1;
}

.flyover__truck .truck__window2 {
  animation-name: truck-window2;
}

.ordercard[data-sliding],
.ordercard[data-dropping] {
  z-index: 2;
  position: relative;
}

.ordercard[data-sliding] {
  box-shadow: var(--shadow-float);
}

.is-pulse {
  animation: pulse-glow 1.5s ease-out 2;
}

@keyframes pulse-glow {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 139, 148, 0.62);
  }
  70% {
    box-shadow: 0 0 0 12px rgba(255, 139, 148, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 139, 148, 0);
  }
}

.iconbtn__badge[hidden] {
  display: none;
}

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

.drawer:not(.is-open) { visibility: hidden; transition-property: visibility; transition-duration: 0s; transition-delay: 0.4s; }
