:root {
  color-scheme: light;
  --bg: #efe6d8;
  --bg-deep: #ddd0bc;
  --panel: rgba(255, 252, 246, 0.82);
  --border: rgba(35, 33, 28, 0.12);
  --text: #1d1b18;
  --muted: #695f53;
  --accent: #0f766e;
  --accent-strong: #0b5d57;
  --accent-soft: rgba(15, 118, 110, 0.12);
  --danger: #b5473d;
  --danger-soft: rgba(181, 71, 61, 0.12);
  --warning: #8a5a11;
  --warning-soft: rgba(201, 143, 42, 0.16);
  --shadow: 0 24px 80px rgba(54, 42, 24, 0.16);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: "Avenir Next", "Segoe UI Variable", "PingFang SC", "Hiragino Sans GB", sans-serif;
  background:
    radial-gradient(circle at 12% 14%, rgba(17, 120, 109, 0.10), transparent 26%),
    radial-gradient(circle at 84% 10%, rgba(164, 117, 41, 0.16), transparent 24%),
    linear-gradient(135deg, var(--bg), #f8f1e8 40%, var(--bg-deep));
  position: relative;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.22) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.2) 1px, transparent 1px);
  background-size: 42px 42px;
  opacity: 0.24;
  pointer-events: none;
}

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

a {
  color: inherit;
}

.hidden {
  display: none !important;
}

.page-glow {
  position: fixed;
  width: 38vw;
  height: 38vw;
  border-radius: 999px;
  filter: blur(90px);
  opacity: 0.28;
  pointer-events: none;
}

.page-glow-left {
  top: -10vw;
  left: -6vw;
  background: rgba(15, 118, 110, 0.26);
}

.page-glow-right {
  right: -8vw;
  bottom: -14vw;
  background: rgba(197, 142, 52, 0.28);
}

.auth-shell,
.app-shell {
  position: relative;
  z-index: 1;
}

.auth-shell {
  width: min(1320px, calc(100% - 48px));
  margin: 20px auto;
  min-height: calc(100vh - 40px);
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(540px, 580px);
  gap: 56px;
  align-items: center;
}

.auth-copy {
  min-height: 100%;
  padding: 40px 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 560px;
}

.auth-copy h1 {
  font-size: clamp(58px, 9vw, 108px);
}

.auth-panel,
.panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.auth-panel {
  width: 100%;
  padding: 36px;
  max-width: 580px;
  justify-self: end;
}

.hero-text,
.support-text,
.stack-subtitle,
.delivery-meta,
.device-meta,
.device-platform,
.meta-grid div span,
.dropzone span,
.notice {
  color: var(--muted);
}

.auth-actions,
.hero-action-row,
.composer-actions,
.pool-toolbar,
.stack-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.auth-action-group {
  margin-top: 34px;
  padding: 20px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.48);
  border: 1px solid rgba(29, 27, 24, 0.08);
}

.auth-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  align-items: stretch;
}

.auth-actions .button {
  width: 100%;
  justify-content: center;
}

.notice {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.48);
  border: 1px solid rgba(29, 27, 24, 0.08);
  line-height: 1.6;
}

.notice.warning {
  background: var(--warning-soft);
  color: var(--warning);
  border-color: rgba(138, 90, 17, 0.18);
}

.app-shell {
  width: min(1380px, calc(100% - 36px));
  margin: 28px auto 40px;
  display: grid;
  gap: 20px;
}

.hero {
  padding: 30px 32px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
}

.hero-copy {
  max-width: 780px;
}

.eyebrow,
.section-label {
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 11px;
  color: var(--accent);
  font-weight: 700;
}

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

h1 {
  font-family: "Iowan Old Style", "Palatino Linotype", serif;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 0.96;
  letter-spacing: -0.03em;
}

h2 {
  font-size: clamp(22px, 3vw, 30px);
  letter-spacing: -0.03em;
}

h3 {
  font-size: 16px;
}

.hero-text {
  margin-top: 16px;
  font-size: 17px;
  line-height: 1.7;
}

.hero-actions {
  display: grid;
  gap: 12px;
  justify-items: end;
}

.hero-action-row {
  justify-content: flex-end;
}

.view-tabs {
  padding: 10px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.view-tabs::-webkit-scrollbar {
  display: none;
}

.view-tabs-track {
  --indicator-left: 6px;
  --indicator-width: 120px;
  position: relative;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(120px, 1fr);
  gap: 8px;
  align-items: center;
  width: max(100%, max-content);
  min-width: 100%;
  padding: 6px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0.34));
  border: 1px solid rgba(29, 27, 24, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.view-tabs-track::before {
  content: "";
  position: absolute;
  top: 6px;
  bottom: 6px;
  left: var(--indicator-left);
  width: var(--indicator-width);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(221, 233, 224, 0.98), rgba(190, 211, 197, 0.94));
  border: 1px solid rgba(77, 113, 88, 0.22);
  box-shadow:
    0 12px 28px rgba(76, 109, 87, 0.14),
    0 1px 0 rgba(255, 255, 255, 0.72) inset,
    0 0 0 1px rgba(63, 96, 75, 0.04);
  transform: translateZ(0);
  transition: left 280ms cubic-bezier(0.22, 1, 0.36, 1), width 280ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 220ms ease;
}

.view-tab {
  appearance: none;
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border: 0;
  background: transparent;
  color: var(--muted);
  border-radius: 999px;
  padding: 12px 18px;
  font-weight: 700;
  letter-spacing: 0.01em;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 160ms ease, color 160ms ease, opacity 160ms ease;
}

.view-tab:hover,
.view-tab:focus-visible {
  transform: translateY(-1px);
  outline: none;
  color: var(--text);
}

.view-tab.active {
  color: #2e5b49;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.28);
}

.view-tab.hidden {
  display: none !important;
}

.view-stage {
  display: grid;
}

.dashboard-view {
  padding: 24px;
}

.dashboard-view:not(.active) {
  display: none;
}

.dashboard-view.active {
  animation: panel-enter 380ms cubic-bezier(0.16, 1, 0.3, 1);
  transform-origin: 50% 0;
  will-change: transform, opacity;
}

.identity-panel,
.composer-panel,
.pool-panel,
.admin-panel {
  padding: 24px;
}

.section-heading,
.mini-heading {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
}

.section-controls {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.picker-block {
  margin-top: 22px;
}

.field {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}

.identity-panel .field {
  gap: 0;
}

.identity-panel .field span {
  line-height: 1.05;
}

.identity-panel .identity-inline-row {
  min-height: 0;
}

.field span {
  font-size: 13px;
  color: var(--muted);
}

.identity-inline-row {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 52px;
  padding: 0 2px;
}

.identity-value {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
  word-break: break-word;
}

.text-action {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0;
  color: var(--accent-strong);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 160ms ease, color 160ms ease;
}

.text-action:hover,
.text-action:focus-visible {
  color: var(--accent);
  opacity: 0.78;
  outline: none;
}

.inline-field {
  display: flex;
  gap: 12px;
  align-items: center;
}

.inline-field input {
  flex: 1 1 auto;
  max-width: 320px;
}

.inline-field .button {
  flex: 0 0 auto;
  min-width: 88px;
  white-space: nowrap;
}

input[type="text"],
input[type="password"],
input[type="date"],
select,
textarea {
  width: 100%;
  border-radius: 18px;
  border: 1px solid rgba(29, 27, 24, 0.12);
  background: rgba(255, 255, 255, 0.54);
  color: var(--text);
  padding: 15px 16px;
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

input[type="text"]:focus,
input[type="password"]:focus,
input[type="date"]:focus,
select:focus,
textarea:focus {
  border-color: rgba(15, 118, 110, 0.42);
  box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.12);
  background: rgba(255, 255, 255, 0.9);
}

textarea {
  resize: vertical;
  min-height: 128px;
  line-height: 1.65;
}

.button {
  appearance: none;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), #15958b);
  color: #fcfbf6;
  padding: 13px 18px;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, opacity 160ms ease, background 160ms ease;
  box-shadow: 0 14px 34px rgba(15, 118, 110, 0.22);
}

.button:hover {
  transform: translateY(-1px);
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.52;
  transform: none;
  box-shadow: none;
}

.button.ghost {
  background: rgba(255, 255, 255, 0.58);
  color: var(--text);
  border: 1px solid var(--border);
  box-shadow: none;
}

.button.danger {
  background: var(--danger-soft);
  color: var(--danger);
  border: 1px solid rgba(181, 71, 61, 0.18);
  box-shadow: none;
}

.button.small {
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 700;
}

.icon-button {
  width: 48px;
  height: 48px;
  padding: 0;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.icon-button svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.badge,
.mini-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 13px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.5);
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}

.badge.soft {
  background: var(--accent-soft);
  color: var(--accent-strong);
  border-color: rgba(15, 118, 110, 0.14);
}

.badge.neutral::before,
.badge.soft::before,
.mini-pill::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: currentColor;
  opacity: 0.8;
}

.meta-grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.meta-grid div {
  padding: 16px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.46);
  border: 1px solid rgba(29, 27, 24, 0.08);
}

.meta-grid div strong {
  display: block;
  font-size: 16px;
  margin-bottom: 6px;
}

.device-grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.composer-panel .device-grid {
  grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
  gap: 8px;
  max-height: 320px;
  overflow-y: auto;
  padding: 2px 4px 4px 0;
}

.device-card {
  width: 100%;
  padding: 18px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(29, 27, 24, 0.08);
  background: rgba(255, 255, 255, 0.46);
  text-align: left;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.device-card:hover {
  transform: translateY(-1px);
  border-color: rgba(15, 118, 110, 0.22);
}

.device-card.selected {
  background: rgba(15, 118, 110, 0.12);
  border-color: rgba(15, 118, 110, 0.4);
}

.device-card-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.device-name {
  font-size: 17px;
  font-weight: 700;
}

.device-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: rgba(105, 95, 83, 0.3);
  margin-top: 4px;
}

.device-card.online .device-dot {
  background: #1b9c79;
  box-shadow: 0 0 0 8px rgba(27, 156, 121, 0.12);
}

.device-platform {
  margin-top: 12px;
  font-size: 14px;
}

.device-meta {
  margin-top: 6px;
  font-size: 13px;
}

.composer-panel .device-card {
  padding: 12px 11px;
  border-radius: 18px;
}

.composer-panel .device-card-top {
  justify-content: flex-start;
  gap: 8px;
}

.composer-panel .device-name {
  font-size: 15px;
}

.composer-panel .device-platform,
.composer-panel .device-meta {
  font-size: 12px;
}

.composer-panel .device-dot {
  width: 10px;
  height: 10px;
  margin-top: 5px;
  flex: 0 0 auto;
}

.composer-actions,
.pool-toolbar {
  margin-top: 18px;
}

.attachment-columns {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.attachment-columns.single-column {
  grid-template-columns: 1fr;
}

.stack-list,
.timeline-list {
  margin-top: 18px;
  display: grid;
  gap: 12px;
}

.stack-list.compact {
  margin-top: 12px;
}

.queued-strip {
  margin-top: 14px;
}

.queued-strip .stack-item {
  padding: 14px 16px;
}

.stack-item,
.delivery-card {
  padding: 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.54);
  border: 1px solid rgba(29, 27, 24, 0.08);
}

.stack-item.active {
  background: rgba(15, 118, 110, 0.12);
  border-color: rgba(15, 118, 110, 0.32);
}

.stack-item.empty,
.delivery-card.empty {
  border-style: dashed;
  color: var(--muted);
  text-align: center;
  padding: 24px 16px;
}

.stack-main {
  min-width: 0;
}

.stack-title {
  font-weight: 700;
  font-size: 15px;
  word-break: break-word;
}

.stack-subtitle {
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.5;
  word-break: break-word;
}

.pool-item,
.queued-item {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
}

.dropzone {
  margin-top: 18px;
  min-height: 150px;
  display: grid;
  place-items: center;
  text-align: center;
  gap: 8px;
  border-radius: 24px;
  border: 1.5px dashed rgba(15, 118, 110, 0.24);
  background:
    linear-gradient(135deg, rgba(15, 118, 110, 0.08), rgba(255, 255, 255, 0.36)),
    rgba(255, 255, 255, 0.5);
  padding: 20px;
  cursor: pointer;
  transition: border-color 160ms ease, transform 160ms ease, background 160ms ease;
}

.dropzone strong {
  display: block;
  font-size: 18px;
}

.dropzone.dragover {
  transform: translateY(-2px);
  border-color: rgba(15, 118, 110, 0.56);
  background:
    linear-gradient(135deg, rgba(15, 118, 110, 0.14), rgba(255, 255, 255, 0.52)),
    rgba(255, 255, 255, 0.7);
}

.delivery-top {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
}

.delivery-title {
  font-weight: 700;
  font-size: 17px;
}

.delivery-meta {
  margin-top: 6px;
  font-size: 13px;
}

.delivery-message {
  margin-top: 16px;
  line-height: 1.7;
  white-space: pre-wrap;
  word-break: break-word;
}

.delivery-message:empty {
  display: none;
}

.delivery-files {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.file-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.08);
  border: 1px solid rgba(15, 118, 110, 0.14);
  text-decoration: none;
  font-size: 13px;
}

.file-chip.unavailable {
  opacity: 0.52;
  pointer-events: none;
}

.delivery-actions {
  margin-top: 14px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.history-link {
  appearance: none;
  margin-top: 16px;
  border: 0;
  background: transparent;
  padding: 0;
  color: var(--accent-strong);
  font-weight: 700;
  cursor: pointer;
  transition: color 160ms ease, opacity 160ms ease;
}

.history-link:hover,
.history-link:focus-visible {
  color: var(--accent);
  opacity: 0.82;
  outline: none;
}

.history-filters {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.history-filter {
  display: grid;
  gap: 8px;
}

.history-filter span {
  font-size: 13px;
  color: var(--muted);
}

.history-filter-wide {
  grid-column: span 2;
}

.history-table-wrap {
  margin-top: 18px;
}

.history-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  background: rgba(255, 255, 255, 0.34);
  border: 1px solid rgba(29, 27, 24, 0.08);
  border-radius: 22px;
  overflow: hidden;
}

.history-table th,
.history-table td {
  padding: 14px 16px;
  text-align: left;
  vertical-align: middle;
  border-bottom: 1px solid rgba(29, 27, 24, 0.08);
}

.history-table th {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.46);
}

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

.history-type-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.08);
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 700;
}

.history-name {
  display: grid;
  gap: 4px;
}

.history-name strong {
  font-size: 14px;
  word-break: break-word;
}

.history-meta {
  font-size: 12px;
  color: var(--muted);
  word-break: break-word;
}

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

.history-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}

.history-checkbox input {
  width: 16px;
  height: 16px;
  margin: 0;
}

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

.pagination button,
.pagination span {
  min-width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 13px;
}

.pagination button {
  appearance: none;
  border: 1px solid rgba(29, 27, 24, 0.08);
  background: rgba(255, 255, 255, 0.56);
  color: var(--text);
  cursor: pointer;
}

.pagination button.active {
  background: rgba(15, 118, 110, 0.12);
  border-color: rgba(15, 118, 110, 0.22);
  color: var(--accent-strong);
  font-weight: 700;
}

.pagination span {
  color: var(--muted);
}

.toast-rack {
  position: fixed;
  right: 18px;
  bottom: 18px;
  display: grid;
  gap: 10px;
  z-index: 10;
}

.toast {
  min-width: 260px;
  max-width: min(420px, calc(100vw - 36px));
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(28, 26, 22, 0.88);
  color: #fcfbf6;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
  animation: toast-in 240ms ease;
}

.toast.error {
  background: rgba(133, 42, 34, 0.94);
}

.reveal {
  animation: reveal-up 500ms ease both;
}

@keyframes reveal-up {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes panel-enter {
  from {
    opacity: 0;
    transform: translate3d(0, 18px, 0) scale(0.992);
    filter: saturate(0.96);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
    filter: saturate(1);
  }
}

@media (max-width: 1120px) {
  .auth-shell,
  .attachment-columns,
  .history-filters {
    grid-template-columns: 1fr;
  }

  .auth-shell {
    width: min(100% - 28px, 1320px);
    gap: 24px;
    min-height: auto;
    margin-top: 18px;
    margin-bottom: 24px;
  }

  .auth-copy {
    padding: 18px 6px 4px;
  }

  .auth-copy h1 {
    font-size: clamp(52px, 14vw, 88px);
  }

  .auth-panel {
    max-width: none;
    justify-self: stretch;
    padding: 28px;
  }
}

@media (max-width: 780px) {
  .auth-shell,
  .app-shell {
    width: min(100% - 18px, 1380px);
    margin-top: 10px;
  }

  .hero,
  .inline-field,
  .pool-item,
  .queued-item,
  .delivery-top {
    flex-direction: column;
  }

  .device-grid,
  .meta-grid {
    grid-template-columns: 1fr;
  }

  .auth-panel,
  .identity-panel,
  .composer-panel,
  .pool-panel,
  .admin-panel,
  .dashboard-view {
    padding: 20px;
  }

  .auth-copy {
    padding: 8px 2px 0;
  }

  .auth-action-group {
    margin-top: 30px;
    padding: 16px;
  }

  .view-tabs {
    padding: 8px;
  }

  .view-tabs-track {
    grid-auto-columns: max-content;
    min-width: max-content;
  }

  .view-tab {
    min-width: 108px;
    min-height: 44px;
    padding: 10px 16px;
  }

  .history-filter-wide {
    grid-column: span 1;
  }
}

@media (max-width: 780px) {
  .history-table,
  .history-table thead,
  .history-table tbody,
  .history-table tr,
  .history-table th,
  .history-table td {
    display: block;
  }

  .history-table thead {
    display: none;
  }

  .history-table tr {
    border-bottom: 1px solid rgba(29, 27, 24, 0.08);
  }

  .history-table tbody tr:last-child {
    border-bottom: 0;
  }

  .history-table td {
    border-bottom: 0;
    padding-top: 8px;
    padding-bottom: 8px;
  }

  .history-table td:first-child {
    padding-top: 16px;
  }

  .history-table td:last-child {
    padding-bottom: 16px;
  }
}
