:root {
  --ink: #17352b;
  --ink-soft: #486158;
  --paper: #f4efe5;
  --card: #fffdf8;
  --line: #ddd4c4;
  --sun: #f3bd54;
  --sun-deep: #d89422;
  --green: #1f7656;
  --green-soft: #e8f3ec;
  --red: #b33c2f;
  --red-soft: #faebe7;
  --amber: #9a6417;
  --amber-soft: #fff3d6;
  --shadow: 0 18px 50px rgba(46, 50, 36, 0.09);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--paper);
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 4%, rgba(243, 189, 84, 0.24), transparent 28rem),
    linear-gradient(rgba(23, 53, 43, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 53, 43, 0.035) 1px, transparent 1px),
    var(--paper);
  background-size: auto, 24px 24px, 24px 24px, auto;
  font-family: "Avenir Next", "Microsoft YaHei", "PingFang SC", sans-serif;
  -webkit-font-smoothing: antialiased;
}

button {
  font: inherit;
}

button:focus-visible {
  outline: 3px solid rgba(31, 118, 86, 0.25);
  outline-offset: 3px;
}

.app-shell {
  width: min(100%, 1080px);
  margin: 0 auto;
  padding: max(20px, env(safe-area-inset-top)) 18px max(32px, env(safe-area-inset-bottom));
}

.topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.topbar-actions {
  flex: 0 0 auto;
  display: grid;
  justify-items: end;
  gap: 8px;
}

.refresh-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 36px;
  padding: 7px 12px;
  border: 1px solid #b9cfc5;
  border-radius: 999px;
  color: var(--green);
  background: rgba(236, 247, 240, 0.9);
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}

.refresh-status:disabled {
  cursor: not-allowed;
  filter: grayscale(0.45);
  opacity: 0.5;
}

.refresh-icon {
  display: inline-block;
  font-size: 18px;
  line-height: 1;
}

.refresh-status.is-running .refresh-icon {
  animation: spin 0.9s linear infinite;
}

.eyebrow,
.section-kicker {
  margin: 0 0 5px;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-family: "STKaiti", "KaiTi", serif;
  font-size: clamp(26px, 6vw, 38px);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

h2 {
  margin-bottom: 8px;
  font-size: clamp(22px, 5vw, 31px);
  line-height: 1.15;
}

.agent-status {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.78);
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 800;
  backdrop-filter: blur(12px);
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #9a9a91;
  box-shadow: 0 0 0 4px rgba(154, 154, 145, 0.12);
}

.agent-status.is-online .status-dot {
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(31, 118, 86, 0.13);
}

.agent-status.is-offline .status-dot {
  background: var(--red);
  box-shadow: 0 0 0 4px rgba(179, 60, 47, 0.12);
}

.agent-status.is-maintenance {
  border-color: rgba(180, 116, 15, 0.28);
  background: #fff7e6;
  color: #8a5708;
}

.agent-status.is-maintenance .status-dot {
  background: var(--amber);
  box-shadow: 0 0 0 4px rgba(180, 116, 15, 0.13);
}

.hero-card {
  position: relative;
  overflow: hidden;
  padding: 26px;
  border: 1px solid rgba(23, 53, 43, 0.85);
  border-radius: 28px;
  color: #fffdf8;
  background: var(--ink);
  box-shadow: var(--shadow);
}

.hero-card::after {
  content: "";
  position: absolute;
  right: -80px;
  top: -110px;
  width: 250px;
  height: 250px;
  border: 34px solid rgba(243, 189, 84, 0.18);
  border-radius: 50%;
  pointer-events: none;
}

.hero-copy {
  position: relative;
  z-index: 1;
}

.hero-copy .section-kicker {
  color: #e7d9b9;
}

.hero-copy p:last-child {
  max-width: 38rem;
  margin-bottom: 0;
  color: #d9e3dd;
  font-size: 15px;
  line-height: 1.7;
}

.primary-action {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 13px;
  width: 100%;
  padding: 15px 17px;
  border: 0;
  border-radius: 18px;
  color: var(--ink);
  background: var(--sun);
  box-shadow: inset 0 -2px 0 rgba(87, 55, 0, 0.14);
  text-align: left;
  cursor: pointer;
}

.primary-action:disabled,
.product-action:disabled {
  cursor: not-allowed;
  filter: grayscale(0.55);
  opacity: 0.48;
}

.button-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  color: #fff;
  background: var(--ink);
  font-size: 23px;
  font-weight: 900;
}

.primary-action strong,
.primary-action small {
  display: block;
}

.primary-action strong {
  font-size: 17px;
}

.primary-action small {
  margin-top: 3px;
  color: #5b4a25;
  font-size: 12px;
  font-weight: 700;
}

.restore-all-card {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 18px;
  margin-top: 22px;
  padding: 22px;
  border: 1px solid #ddcba4;
  border-radius: 24px;
  background: rgba(255, 250, 237, 0.94);
  box-shadow: 0 14px 38px rgba(46, 50, 36, 0.07);
}

.restore-all-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: var(--sun-deep);
}

.soak-card {
  display: flex;
  flex-direction: column;
  height: 318px;
  margin-top: 22px;
  padding: 21px;
  overflow: hidden;
  border: 1px solid #cfd9d4;
  border-radius: 22px;
  background: rgba(248, 252, 249, 0.94);
  box-shadow: 0 14px 38px rgba(46, 50, 36, 0.06);
}

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

.soak-heading h2 {
  margin-bottom: 0;
}

.soak-status {
  flex: 0 0 auto;
  padding: 7px 10px;
  border-radius: 999px;
  color: var(--ink-soft);
  background: #edf1ef;
  font-size: 12px;
  font-weight: 900;
}

.soak-status.is-running,
.soak-status.is-waiting {
  color: var(--amber);
  background: var(--amber-soft);
}

.soak-status.is-warning {
  color: #8a560c;
  background: #ffedc2;
}

.soak-status.is-completed {
  color: var(--green);
  background: var(--green-soft);
}

.soak-status.is-failed {
  color: var(--red);
  background: var(--red-soft);
}

.soak-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 14px;
}

.soak-metric {
  min-width: 0;
  height: 65px;
  padding: 10px 11px;
  overflow: hidden;
  border: 1px solid #dce4df;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.78);
}

.soak-metric span,
.soak-metric strong {
  display: block;
}

.soak-metric span {
  color: var(--ink-soft);
  font-size: 11px;
  line-height: 1.3;
}

.soak-metric strong {
  margin-top: 4px;
  overflow: hidden;
  font-size: 13px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stop-soak-button {
  width: 100%;
  min-height: 45px;
  margin-top: auto;
  border: 1px solid #dfaba4;
  border-radius: 13px;
  color: var(--red);
  background: #fff7f5;
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
}

.stop-soak-button:disabled {
  color: #8a9590;
  border-color: #d9dfdc;
  background: #f0f3f1;
  cursor: not-allowed;
  opacity: 0.72;
}

.restore-all-copy {
  padding-left: 4px;
}

.restore-all-copy .section-kicker {
  color: var(--amber);
}

.restore-all-copy h2 {
  margin-bottom: 7px;
  font-size: clamp(21px, 4vw, 27px);
}

.restore-all-copy p:last-child {
  margin: 0;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.65;
}

.queue-panel {
  position: fixed;
  z-index: 18;
  top: max(12px, calc(env(safe-area-inset-top) + 10px));
  right: 12px;
  left: auto;
  width: min(350px, calc(100vw - 24px));
  max-height: none;
  margin: 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 253, 248, 0.94);
  box-shadow: 0 14px 38px rgba(24, 39, 31, 0.18);
  overflow: hidden;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  backdrop-filter: blur(14px);
  animation: queue-float-in 0.2s ease-out both;
}

.queue-panel.is-expanded {
  right: 12px;
  left: 12px;
  width: auto;
  max-height: min(64dvh, 540px);
  padding: 18px;
  border-radius: 20px;
  overflow-y: auto;
  box-shadow: 0 22px 64px rgba(24, 39, 31, 0.2);
}

.queue-panel[hidden],
.queue-details[hidden],
.queue-current[hidden],
.queue-waiting[hidden] {
  display: none;
}

.queue-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  min-height: 62px;
  padding: 9px 10px 9px 12px;
  border: 0;
  color: var(--ink);
  background: transparent;
  text-align: left;
  cursor: pointer;
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
}

.queue-summary:focus-visible,
.queue-collapse:focus-visible {
  outline: 3px solid rgba(34, 126, 92, 0.24);
  outline-offset: -3px;
}

.queue-panel.is-expanded .queue-summary {
  display: none;
}

.queue-summary-leading,
.queue-summary-meta,
.queue-heading-actions {
  display: flex;
  align-items: center;
}

.queue-summary-leading {
  min-width: 0;
  gap: 9px;
}

.queue-summary .activity-spinner {
  width: 20px;
  height: 20px;
  border-width: 3px;
}

.queue-summary .activity-spinner.is-idle {
  border-color: rgba(48, 84, 72, 0.28);
  animation: none;
}

.queue-summary-copy {
  min-width: 0;
}

.queue-summary-copy span {
  display: block;
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.queue-summary-copy strong {
  display: block;
  max-width: 190px;
  margin-top: 1px;
  font-size: 13px;
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.queue-summary-meta {
  flex: 0 0 auto;
  gap: 6px;
}

.queue-toggle-label {
  color: var(--green);
  font-size: 11px;
  font-weight: 900;
}

.queue-chevron {
  color: var(--green);
  font-size: 16px;
  font-weight: 900;
  line-height: 1;
}

.queue-heading,
.queue-waiting-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.queue-heading {
  margin-bottom: 12px;
}

.queue-heading-actions {
  flex: 0 0 auto;
  gap: 7px;
}

.queue-collapse {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid #bdd9cd;
  border-radius: 999px;
  color: var(--green);
  background: var(--green-soft);
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
}

.queue-heading .section-kicker {
  margin-bottom: 3px;
}

.queue-heading h2 {
  margin: 0;
  font-size: 21px;
}

.queue-count,
.queue-status {
  flex: 0 0 auto;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.queue-count {
  padding: 6px 10px;
  color: var(--ink-soft);
  background: #f1ece2;
}

.queue-current {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid #ead49e;
  border-radius: 15px;
  background: #fff7df;
}

.queue-copy {
  min-width: 0;
}

.queue-copy strong {
  display: block;
  font-size: 14px;
}

.queue-copy p {
  margin: 3px 0 0;
  color: #725624;
  font-size: 13px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.queue-status {
  padding: 5px 8px;
  color: var(--amber);
  background: rgba(154, 100, 23, 0.1);
}

.queue-status.is-paused {
  color: var(--red);
  background: var(--red-soft);
}

.queue-waiting {
  margin-top: 14px;
}

.queue-waiting-heading {
  margin-bottom: 8px;
  color: var(--ink-soft);
  font-size: 12px;
}

.queue-list {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.queue-item {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border: 1px solid #e7dfd2;
  border-radius: 13px;
  background: #faf7f0;
}

.queue-position {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  color: #fff;
  background: var(--ink-soft);
  font-size: 12px;
  font-weight: 900;
}

.queue-item-copy {
  min-width: 0;
}

.queue-item-copy strong {
  display: block;
  font-size: 13px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.queue-item-copy small {
  display: block;
  margin-top: 2px;
  color: var(--ink-soft);
  font-size: 11px;
}

.queue-item-copy small.queue-recovery-note {
  color: var(--amber);
  font-weight: 800;
}

.queue-item-action {
  color: var(--amber);
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}

.activity-spinner {
  width: 24px;
  height: 24px;
  border: 3px solid rgba(154, 100, 23, 0.2);
  border-top-color: var(--amber);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}

.group-tabs {
  display: flex;
  gap: 9px;
  overflow-x: auto;
  margin: 24px -18px 20px;
  padding: 0 18px 5px;
  scrollbar-width: none;
}

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

.group-tab {
  flex: 0 0 auto;
  padding: 10px 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-soft);
  background: rgba(255, 253, 248, 0.72);
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}

.group-tab.is-active {
  border-color: var(--ink);
  color: #fff;
  background: var(--ink);
}

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

.section-heading h2 {
  margin-bottom: 0;
}

.product-count {
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 800;
}

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

.product-card {
  display: grid;
  gap: 17px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 253, 248, 0.93);
  box-shadow: 0 8px 28px rgba(42, 48, 34, 0.05);
  animation: rise 0.35s both;
}

.product-card.no-entry-animation {
  animation: none;
}

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

.product-name {
  margin: 0 0 9px;
  font-size: 17px;
  line-height: 1.4;
}

.platform-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.platform-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 8px;
  border-radius: 8px;
  color: var(--ink-soft);
  background: #f1ece2;
  font-size: 11px;
  font-weight: 800;
}

.platform-chip::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
}

.product-state {
  flex: 0 0 auto;
  padding: 6px 9px;
  border-radius: 8px;
  color: var(--ink-soft);
  background: #f1ece2;
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}

.product-state.is-success,
.product-state.is-up {
  color: var(--green);
  background: var(--green-soft);
}

.product-state.is-down {
  color: var(--red);
  background: var(--red-soft);
}

.product-state.is-failed {
  color: var(--red);
  background: var(--red-soft);
}

.product-state.is-warning {
  color: var(--amber);
  background: #fff4d7;
}

.product-state.is-running {
  color: var(--amber);
  background: #fff4d7;
}

.product-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}

.product-action {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 13px;
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
}

.product-action.up {
  border-color: #b8d8c6;
  color: var(--green);
  background: var(--green-soft);
}

.product-action.down {
  border-color: #e7c0b9;
  color: var(--red);
  background: var(--red-soft);
}

.history-section {
  margin-top: 26px;
}

.activity-log {
  display: grid;
  gap: 8px;
}

.log-empty {
  padding: 20px 18px;
  border: 1px dashed #cec4b4;
  border-radius: 16px;
  color: var(--ink-soft);
  background: rgba(255, 253, 248, 0.62);
  text-align: center;
}

.log-empty strong {
  display: block;
  margin-bottom: 5px;
  color: var(--ink);
  font-size: 14px;
}

.log-empty p {
  margin: 0;
  font-size: 12px;
  line-height: 1.6;
}

.log-item {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(255, 253, 248, 0.9);
}

.log-icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  color: var(--green);
  background: var(--green-soft);
  font-size: 16px;
  font-weight: 900;
}

.log-item.is-failed .log-icon {
  color: var(--red);
  background: var(--red-soft);
}

.log-item.is-recovered .log-icon {
  color: var(--amber);
  background: var(--amber-soft);
}

.log-copy {
  min-width: 0;
}

.log-copy strong {
  display: block;
  font-size: 13px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.log-copy small,
.log-copy p {
  display: block;
  margin: 3px 0 0;
  color: var(--ink-soft);
  font-size: 11px;
  line-height: 1.45;
}

.log-copy p {
  color: var(--red);
}

.log-copy p.log-recovery-note {
  color: var(--amber);
}

.log-result {
  text-align: right;
}

.log-result strong,
.log-result small,
.log-result time {
  display: block;
  white-space: nowrap;
}

.log-result .log-duration {
  margin-top: 3px;
  color: var(--ink-soft);
  font-size: 10px;
}

.log-result strong {
  color: var(--green);
  font-size: 11px;
}

.log-item.is-failed .log-result strong {
  color: var(--red);
}

.log-item.is-recovered .log-result strong {
  color: var(--amber);
}

.log-result time {
  margin-top: 4px;
  color: var(--ink-soft);
  font-size: 10px;
}

.scope-note {
  margin-top: 22px;
  padding: 18px;
  border-left: 4px solid var(--sun-deep);
  border-radius: 4px 16px 16px 4px;
  background: rgba(255, 253, 248, 0.68);
}

.scope-note p {
  margin: 6px 0 0;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.7;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 24px;
  padding: 0 3px;
  color: var(--ink-soft);
  font-size: 12px;
}

.toast {
  position: fixed;
  z-index: 20;
  left: 50%;
  bottom: calc(22px + env(safe-area-inset-bottom));
  width: min(calc(100% - 36px), 520px);
  padding: 13px 16px;
  border-radius: 14px;
  color: #fff;
  background: rgba(23, 53, 43, 0.94);
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 16px);
  transition: 0.22s ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.confirm-sheet {
  position: fixed;
  z-index: 30;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.confirm-sheet[hidden] {
  display: none;
}

.sheet-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  border: 0;
  background: rgba(18, 30, 25, 0.58);
  backdrop-filter: blur(5px);
}

.sheet-panel {
  position: relative;
  z-index: 1;
  width: min(100%, 600px);
  padding: 12px 20px max(22px, env(safe-area-inset-bottom));
  border-radius: 26px 26px 0 0;
  background: var(--card);
  box-shadow: 0 -20px 60px rgba(18, 30, 25, 0.2);
  animation: sheet-up 0.24s ease-out both;
}

.sheet-handle {
  display: block;
  width: 42px;
  height: 5px;
  margin: 0 auto 20px;
  border-radius: 999px;
  background: #d6cec0;
}

.restore-kicker {
  color: var(--green);
}

.sheet-panel > p:not(.section-kicker) {
  color: var(--ink-soft);
  line-height: 1.65;
}

.confirm-action {
  width: 100%;
  min-height: 56px;
  border: 0;
  border-radius: 15px;
  color: #fff;
  background: var(--red);
  font-weight: 900;
  cursor: pointer;
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
}

.confirm-action:active {
  background: #912e25;
  transform: translateY(1px);
}

.confirm-action.is-restore {
  background: var(--green);
}

.confirm-action.is-restore:active {
  background: #175f45;
}

.cancel-button {
  width: 100%;
  min-height: 50px;
  margin-top: 8px;
  border: 1px solid var(--line);
  border-radius: 15px;
  color: var(--ink-soft);
  background: var(--card);
  font-weight: 800;
  cursor: pointer;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

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

@keyframes sheet-up {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

@keyframes queue-float-in {
  from {
    opacity: 0;
    transform: translateY(-10px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (min-width: 760px) {
  .app-shell {
    padding-inline: 30px;
  }

  .hero-card {
    padding: 34px;
  }

  .restore-all-card {
    grid-template-columns: minmax(0, 1fr) 320px;
    align-items: center;
    padding: 26px 28px;
  }

  .soak-card {
    height: 238px;
    padding: 24px 26px;
  }

  .soak-metrics {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .stop-soak-button {
    width: 300px;
    align-self: flex-end;
  }

  .queue-panel {
    top: 24px;
    right: max(30px, calc((100vw - 1080px) / 2 + 30px));
    left: auto;
    width: 360px;
  }

  .queue-panel.is-expanded {
    right: max(30px, calc((100vw - 1080px) / 2 + 30px));
    left: auto;
    width: 410px;
  }

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

  .group-tabs {
    margin-inline: 0;
    padding-inline: 0;
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 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;
  }
}
