:root {
  color-scheme: light;
  --canvas: #edf3f0;
  --surface: #ffffff;
  --surface-soft: #f4f8f6;
  --ink: #172824;
  --muted: #657772;
  --line: #d7e2dd;
  --line-strong: #b9cbc4;
  --teal: #0b6958;
  --teal-dark: #084c41;
  --teal-soft: #dceee8;
  --coral: #d66543;
  --coral-soft: #f8e2d9;
  --amber: #b97c17;
  --amber-soft: #f6e9c8;
  --blue: #397c92;
  --blue-soft: #dcecf1;
  --purple: #785d8d;
  --purple-soft: #ece5f2;
  --danger: #b94235;
  --shadow-sm: 0 1px 2px rgba(26, 51, 44, 0.06);
  --shadow-md: 0 12px 34px rgba(23, 40, 36, 0.12);
  --radius: 8px;
  --font-sans:
    "PingFang SC", "Microsoft YaHei UI", "Microsoft YaHei", "Noto Sans SC",
    system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  min-width: 320px;
  background: var(--canvas);
  -webkit-tap-highlight-color: transparent;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  color: var(--ink);
  background:
    linear-gradient(rgba(23, 40, 36, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 40, 36, 0.025) 1px, transparent 1px),
    var(--canvas);
  background-size: 32px 32px;
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a {
  touch-action: manipulation;
}

button {
  color: inherit;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(11, 105, 88, 0.22);
  outline-offset: 2px;
}

h1,
h2,
h3,
p {
  margin: 0;
}

.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.offline-banner {
  position: sticky;
  z-index: 50;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  padding: 8px 16px;
  color: #fff;
  background: var(--danger);
  font-size: 13px;
}

.app-shell {
  width: min(100%, 1180px);
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0 auto;
  background: rgba(237, 243, 240, 0.76);
}

.topbar {
  position: sticky;
  z-index: 30;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 68px;
  padding: max(10px, env(safe-area-inset-top)) 20px 10px;
  border-bottom: 1px solid rgba(185, 203, 196, 0.78);
  background: rgba(247, 250, 248, 0.92);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: var(--ink);
  text-decoration: none;
  font-size: 19px;
  font-weight: 750;
  letter-spacing: 0.02em;
}

.brand-mark {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  overflow: hidden;
  border-radius: 8px;
  background: var(--teal);
}

.brand-line {
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 10px;
  width: 3px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.88);
}

.brand-mark::before,
.brand-mark::after {
  position: absolute;
  left: 16px;
  width: 9px;
  height: 4px;
  border-radius: 4px;
  background: #fff;
  content: "";
}

.brand-mark::before {
  top: 11px;
}

.brand-mark::after {
  bottom: 11px;
  width: 7px;
}

.brand-dot {
  position: absolute;
  top: 7px;
  left: 7px;
  width: 9px;
  height: 9px;
  border: 2px solid var(--teal);
  border-radius: 50%;
  background: #f0a344;
}

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

.sync-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: var(--surface);
  font-size: 12px;
  white-space: nowrap;
}

.sync-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 3px var(--amber-soft);
}

.sync-pill.is-online .sync-dot {
  background: var(--teal);
  box-shadow: 0 0 0 3px var(--teal-soft);
}

.sync-pill.is-error .sync-dot {
  background: var(--danger);
  box-shadow: 0 0 0 3px var(--coral-soft);
}

.icon-button,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 40px;
  border: 0;
  border-radius: var(--radius);
  cursor: pointer;
  transition:
    background-color 150ms ease,
    border-color 150ms ease,
    transform 150ms ease;
}

.icon-button {
  width: 40px;
  padding: 0;
  color: var(--muted);
  background: transparent;
}

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

.button {
  padding: 8px 14px;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 650;
}

.button:active,
.icon-button:active {
  transform: translateY(1px);
}

.button-primary {
  color: #fff;
  background: var(--teal);
  box-shadow: var(--shadow-sm);
}

.button-primary:hover {
  background: var(--teal-dark);
}

.button-secondary {
  border-color: var(--line-strong);
  background: var(--surface);
}

.button-secondary:hover {
  border-color: var(--teal);
}

.button-ghost {
  border-color: transparent;
  color: var(--muted);
  background: transparent;
  text-decoration: none;
}

.button-danger {
  color: var(--danger);
  border-color: #e8c7c1;
  background: #fff7f5;
}

.button-wide {
  width: 100%;
}

.main-content {
  padding-bottom: 112px;
}

.day-hero {
  padding: 28px 20px 24px;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(115deg, rgba(220, 238, 232, 0.75), transparent 55%),
    var(--surface);
}

.hero-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 24px;
}

.city-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 0;
  border: 0;
  color: var(--teal-dark);
  background: transparent;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
}

.city-chip .icon {
  width: 17px;
  height: 17px;
}

.revision-label {
  color: var(--muted);
  font-size: 12px;
}

.hero-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 28px;
}

.eyebrow,
.section-kicker {
  color: var(--coral);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.day-hero h1 {
  margin: 4px 0 8px;
  font-size: clamp(32px, 5vw, 54px);
  font-weight: 780;
  line-height: 1.08;
  letter-spacing: 0.01em;
}

.hero-copy {
  max-width: 520px;
  color: var(--muted);
  font-size: 14px;
}

.day-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(74px, 1fr));
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.76);
}

.stat {
  min-width: 76px;
  padding: 11px 14px;
  border-left: 1px solid var(--line);
}

.stat:first-child {
  border-left: 0;
}

.stat span {
  display: block;
  margin-bottom: 3px;
  color: var(--muted);
  font-size: 11px;
}

.stat strong {
  display: block;
  font-size: 19px;
  line-height: 1.2;
}

.notice-band {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.notice-label {
  flex: 0 0 auto;
  padding: 2px 7px;
  border-radius: 4px;
  color: #74490a;
  background: var(--amber-soft);
  font-size: 11px;
  font-weight: 750;
}

.notice-band p {
  color: #4b5d58;
  font-size: 13px;
  white-space: pre-wrap;
}

.day-strip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}

.day-strip::-webkit-scrollbar {
  display: none;
}

.day-chip {
  display: grid;
  place-items: center;
  flex: 0 0 70px;
  min-height: 68px;
  padding: 7px 6px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  background: var(--surface-soft);
  cursor: pointer;
}

.day-chip span {
  font-size: 11px;
}

.day-chip strong {
  color: var(--ink);
  font-size: 22px;
  line-height: 1.1;
}

.day-chip small {
  font-size: 10px;
  font-weight: 500;
}

.day-chip.is-active {
  color: #d9f1ea;
  border-color: var(--teal);
  background: var(--teal);
}

.day-chip.is-active strong {
  color: #fff;
}

.day-chip.is-today:not(.is-active) {
  border-color: var(--coral);
}

.timeline-section {
  padding: 26px 20px 18px;
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.section-heading h2,
.sheet-header h2 {
  margin-top: 2px;
  font-size: 24px;
  line-height: 1.2;
}

.text-button {
  min-height: 36px;
  padding: 6px 9px;
  border: 0;
  border-radius: 6px;
  color: var(--teal);
  background: transparent;
  cursor: pointer;
  font-size: 13px;
  font-weight: 650;
}

.text-button:hover {
  background: var(--teal-soft);
}

.timeline {
  position: relative;
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 58px 22px minmax(0, 1fr);
  gap: 9px;
  min-height: 92px;
}

.timeline-item:not(:last-child)::after {
  position: absolute;
  top: 34px;
  bottom: 0;
  left: 67px;
  width: 2px;
  border-radius: 2px;
  background: var(--line-strong);
  content: "";
}

.time-rail {
  padding-top: 5px;
  text-align: right;
}

.time-rail time {
  display: block;
  color: var(--ink);
  font-size: 14px;
  font-weight: 760;
  font-variant-numeric: tabular-nums;
}

.time-rail small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px;
  font-variant-numeric: tabular-nums;
}

.timeline-node {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  padding-top: 1px;
}

.node-icon {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 3px solid var(--canvas);
  border-radius: 50%;
  color: var(--teal);
  background: var(--teal-soft);
}

.node-icon .icon {
  width: 14px;
  height: 14px;
}

.event-card {
  position: relative;
  min-width: 0;
  margin-bottom: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--teal);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition:
    border-color 150ms ease,
    box-shadow 150ms ease,
    transform 150ms ease;
}

.event-card:hover {
  border-color: var(--line-strong);
  border-left-color: var(--teal);
  box-shadow: 0 8px 24px rgba(23, 40, 36, 0.09);
  transform: translateY(-1px);
}

.event-card.is-ongoing {
  border-color: rgba(214, 101, 67, 0.52);
  box-shadow: 0 8px 24px rgba(126, 68, 48, 0.12);
}

.timeline-item.type-transit .event-card {
  border-left-color: var(--teal);
}

.timeline-item.type-transit .node-icon {
  color: var(--teal);
  background: var(--teal-soft);
}

.timeline-item.type-meeting .event-card {
  border-left-color: var(--coral);
}

.timeline-item.type-meeting .node-icon {
  color: var(--coral);
  background: var(--coral-soft);
}

.timeline-item.type-meal .event-card {
  border-left-color: var(--amber);
}

.timeline-item.type-meal .node-icon {
  color: var(--amber);
  background: var(--amber-soft);
}

.timeline-item.type-hotel .event-card {
  border-left-color: var(--blue);
}

.timeline-item.type-hotel .node-icon {
  color: var(--blue);
  background: var(--blue-soft);
}

.timeline-item.type-activity .event-card {
  border-left-color: var(--purple);
}

.timeline-item.type-activity .node-icon {
  color: var(--purple);
  background: var(--purple-soft);
}

.event-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.event-title {
  min-width: 0;
  font-size: 17px;
  font-weight: 720;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.event-type {
  flex: 0 0 auto;
  padding: 2px 7px;
  border-radius: 4px;
  color: var(--muted);
  background: var(--surface-soft);
  font-size: 10px;
  font-weight: 700;
}

.event-location {
  display: flex;
  align-items: flex-start;
  gap: 5px;
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  overflow-wrap: anywhere;
}

.event-location .icon {
  width: 14px;
  height: 14px;
  margin-top: 2px;
}

.transit-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding: 10px 11px;
  border-radius: 6px;
  background: var(--teal-soft);
}

.transit-summary strong {
  min-width: 0;
  font-size: 14px;
  overflow-wrap: anywhere;
}

.transit-summary .arrow {
  color: var(--teal);
  font-size: 15px;
}

.seat-badge {
  padding: 3px 7px;
  border-radius: 4px;
  color: var(--teal-dark);
  background: rgba(255, 255, 255, 0.72);
  font-size: 11px;
  white-space: nowrap;
}

.event-note {
  margin-top: 10px;
  color: #52615d;
  font-size: 12px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.event-footer {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid #edf2f0;
}

.event-action {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 32px;
  padding: 5px 8px;
  border: 0;
  border-radius: 5px;
  color: var(--teal);
  background: transparent;
  cursor: pointer;
  font-size: 11px;
  font-weight: 650;
}

.event-action:hover {
  background: var(--teal-soft);
}

.event-action .icon {
  width: 14px;
  height: 14px;
}

.editor-label {
  margin-left: auto;
  color: #879690;
  font-size: 10px;
}

.now-marker {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 14px;
  color: var(--coral);
  font-size: 11px;
  font-weight: 750;
}

.now-marker::before {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--coral);
  box-shadow: 0 0 0 4px var(--coral-soft);
  content: "";
}

.now-marker::after {
  height: 1px;
  flex: 1;
  background: var(--coral);
  content: "";
}

.empty-state {
  display: grid;
  justify-items: center;
  padding: 42px 20px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  text-align: center;
  background: rgba(255, 255, 255, 0.55);
}

.empty-graphic {
  position: relative;
  width: 82px;
  height: 72px;
  margin-bottom: 14px;
}

.empty-graphic::before {
  position: absolute;
  top: 10px;
  left: 17px;
  width: 50px;
  height: 56px;
  border: 2px solid var(--teal);
  border-radius: 8px;
  background: var(--surface);
  content: "";
}

.empty-graphic::after {
  position: absolute;
  top: 24px;
  left: 30px;
  width: 4px;
  height: 32px;
  border-radius: 4px;
  background: var(--coral);
  box-shadow: 12px 8px 0 -0.5px var(--teal-soft), 12px 20px 0 -0.5px var(--teal-soft);
  content: "";
}

.empty-state h3 {
  margin-bottom: 6px;
  font-size: 17px;
}

.empty-state p {
  max-width: 330px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 13px;
}

.floating-add {
  position: fixed;
  z-index: 25;
  right: max(20px, calc((100vw - 1180px) / 2 + 20px));
  bottom: max(20px, calc(env(safe-area-inset-bottom) + 16px));
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 50px;
  padding: 0 18px;
  border: 0;
  border-radius: 8px;
  color: #fff;
  background: var(--coral);
  box-shadow: 0 12px 28px rgba(141, 65, 40, 0.28);
  cursor: pointer;
  font-weight: 750;
}

.floating-add:hover {
  background: #bd5334;
}

.sheet {
  width: min(620px, calc(100vw - 28px));
  max-height: min(88vh, 780px);
  padding: 0;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  background: var(--surface);
  box-shadow: var(--shadow-md);
}

.sheet::backdrop {
  background: rgba(15, 33, 29, 0.48);
  backdrop-filter: blur(3px);
}

.sheet[open] {
  animation: sheet-in 180ms ease-out;
}

.sheet form {
  display: grid;
  gap: 15px;
  padding: 20px;
}

.sheet-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 4px;
}

.form-grid {
  display: grid;
  gap: 12px;
}

.form-grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.form-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.field {
  display: grid;
  gap: 6px;
}

.field > span {
  color: #4c5f59;
  font-size: 12px;
  font-weight: 650;
}

.field input,
.field select,
.field textarea,
.share-row input {
  width: 100%;
  min-width: 0;
  min-height: 42px;
  padding: 9px 11px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  color: var(--ink);
  background: var(--surface);
  font-size: 14px;
}

.field textarea {
  min-height: 84px;
  resize: vertical;
}

.field input::placeholder,
.field textarea::placeholder {
  color: #9aa7a2;
}

.field input:focus,
.field select:focus,
.field textarea:focus,
.share-row input:focus {
  border-color: var(--teal);
  outline: 3px solid rgba(11, 105, 88, 0.12);
}

.transit-fields {
  display: grid;
  gap: 12px;
  padding: 14px;
  border-left: 3px solid var(--teal);
  border-radius: 6px;
  background: var(--teal-soft);
}

.transit-fields[hidden] {
  display: none;
}

.sheet-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 6px;
}

.action-spacer {
  flex: 1;
}

.settings-block {
  display: grid;
  gap: 12px;
  padding: 15px 0;
  border-top: 1px solid var(--line);
}

.settings-block-heading > div {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.settings-block-heading .icon {
  margin-top: 2px;
  color: var(--teal);
}

.settings-block-heading strong {
  display: block;
  font-size: 14px;
}

.settings-block-heading p {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.share-row {
  display: flex;
  gap: 6px;
}

.share-row input {
  color: var(--muted);
  background: var(--surface-soft);
}

.toast-region {
  position: fixed;
  z-index: 80;
  right: 16px;
  bottom: max(88px, calc(env(safe-area-inset-bottom) + 88px));
  left: 16px;
  display: grid;
  justify-items: end;
  gap: 8px;
  pointer-events: none;
}

.toast {
  max-width: min(360px, 100%);
  padding: 10px 13px;
  border: 1px solid rgba(23, 40, 36, 0.16);
  border-radius: 6px;
  color: #fff;
  background: #263b36;
  box-shadow: var(--shadow-md);
  font-size: 13px;
  animation: toast-in 160ms ease-out;
}

.toast.is-error {
  background: var(--danger);
}

.noscript {
  position: fixed;
  inset: auto 16px 16px;
  padding: 12px;
  border-radius: 6px;
  color: #fff;
  background: var(--danger);
  text-align: center;
}

@keyframes sheet-in {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.99);
  }
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}

@media (min-width: 780px) {
  .day-hero {
    padding: 34px 34px 28px;
  }

  .day-strip {
    padding-inline: 34px;
  }

  .timeline-section {
    padding: 30px 34px 20px;
  }

  .timeline-item {
    grid-template-columns: 68px 28px minmax(0, 1fr);
    gap: 13px;
  }

  .timeline-item:not(:last-child)::after {
    left: 81px;
  }

  .event-card {
    padding: 17px 18px;
  }

  .sheet {
    width: min(660px, calc(100vw - 48px));
  }
}

@media (max-width: 640px) {
  .topbar {
    min-height: 62px;
    padding-inline: 14px;
  }

  .brand {
    font-size: 17px;
  }

  .brand-mark {
    width: 30px;
    height: 30px;
  }

  .sync-pill {
    display: none;
  }

  .share-button span {
    display: none;
  }

  .share-button {
    width: 40px;
    padding: 0;
  }

  .day-hero {
    padding: 22px 16px 20px;
  }

  .hero-meta {
    margin-bottom: 18px;
  }

  .hero-content {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .day-hero h1 {
    font-size: 38px;
  }

  .day-stats {
    width: 100%;
  }

  .stat {
    padding: 9px 11px;
  }

  .day-strip {
    padding-inline: 16px;
  }

  .timeline-section {
    padding-inline: 16px;
  }

  .timeline-item {
    grid-template-columns: 50px 20px minmax(0, 1fr);
    gap: 7px;
  }

  .timeline-item:not(:last-child)::after {
    left: 60px;
  }

  .event-card {
    padding: 13px 12px;
  }

  .event-heading {
    gap: 8px;
  }

  .event-title {
    font-size: 16px;
  }

  .transit-summary {
    grid-template-columns: minmax(0, 1fr) 14px minmax(0, 1fr);
  }

  .seat-badge {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .editor-label {
    display: none;
  }

  .floating-add {
    right: 14px;
    bottom: max(14px, calc(env(safe-area-inset-bottom) + 12px));
    left: 14px;
    justify-content: center;
  }

  .sheet {
    width: 100vw;
    max-width: none;
    max-height: min(92vh, 820px);
    margin: auto 0 0;
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: 8px 8px 0 0;
  }

  .sheet form {
    padding: 18px 16px max(18px, env(safe-area-inset-bottom));
  }

  .form-grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .form-grid-3 .field:first-child {
    grid-column: 1 / -1;
  }

  .sheet-actions {
    flex-wrap: wrap;
  }

  .sheet-actions .action-spacer {
    display: none;
  }

  .sheet-actions .button {
    flex: 1 1 auto;
  }

  .sheet-actions .button-danger,
  .sheet-actions .button-ghost {
    flex: 0 0 auto;
  }
}

@media (max-width: 380px) {
  .brand > span:last-child {
    display: none;
  }

  .timeline-item {
    grid-template-columns: 44px 18px minmax(0, 1fr);
    gap: 6px;
  }

  .timeline-item:not(:last-child)::after {
    left: 52px;
  }

  .time-rail time {
    font-size: 13px;
  }

  .form-grid-2 {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
