:root {
  color-scheme: light;
  --bg: #f3f0e9;
  --ink: #1f2925;
  --muted: #68746e;
  --line: #d9d8d0;
  --line-strong: #c6cbc4;
  --panel: #fffdf9;
  --panel-soft: #f8faf6;
  --accent: #10796d;
  --accent-dark: #0b6058;
  --accent-ink: #ffffff;
  --warm: #ad5a38;
  --soft: #e9f3ee;
  --soft-warm: #fbf0e9;
  --shadow: 0 14px 36px rgba(35, 48, 42, 0.07);
  --shadow-sm: 0 4px 14px rgba(35, 48, 42, 0.06);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: "Avenir Next", "PingFang SC", "Noto Sans SC", "Helvetica Neue", sans-serif;
  line-height: 1.4;
}

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

.shell {
  width: min(1160px, calc(100% - 36px));
  margin: 0 auto;
  padding: 32px 0 64px;
}

.hero {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  padding: 4px 0 24px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--warm);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(28px, 3vw, 36px);
  line-height: 1.15;
  letter-spacing: 0;
}

.status {
  display: flex;
  align-items: center;
  max-width: 390px;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 9px 13px;
  background: var(--panel);
  color: var(--muted);
  font-size: 14px;
  line-height: 1.35;
  box-shadow: var(--shadow-sm);
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(217, 216, 208, 0.72);
}

.section-heading.wide {
  grid-column: 1 / -1;
}

.section-kicker {
  margin: 0 0 6px;
  color: var(--warm);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.section-heading h2 {
  margin: 0;
  font-size: 22px;
  line-height: 1.3;
}

.section-description {
  max-width: 760px;
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.section-badge {
  flex: 0 0 auto;
  border: 1px solid #c7ddd7;
  border-radius: 6px;
  padding: 7px 10px;
  background: var(--soft);
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.controls {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  padding: 22px;
}

.admin-panel {
  margin-bottom: 14px;
  padding: 14px 18px;
}

.admin-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  padding-top: 12px;
}

.admin-actions {
  display: flex;
  align-items: end;
  gap: 10px;
}

.preflight-result {
  grid-column: 1 / -1;
  display: grid;
  gap: 8px;
  padding-top: 2px;
}

.preflight-row {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 8px;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px 10px;
  background: #fffefa;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.preflight-row.ok {
  border-color: #bedbd1;
  background: #f3fbf8;
}

.preflight-row.fail {
  border-color: #e2c2b4;
  background: #fff7f3;
}

.preflight-state {
  color: var(--ink);
  font-weight: 700;
}

label {
  display: grid;
  gap: 6px;
}

label span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.date-control {
  display: grid;
  gap: 6px;
}

.date-control > label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.date-control-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.date-control-row button {
  min-height: 44px;
}

.date-shortcuts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: -4px;
}

.date-shortcuts button {
  min-height: 34px;
  padding: 6px 11px;
  font-size: 13px;
}

.checkbox-label {
  grid-template-columns: auto 1fr;
  align-items: center;
  align-self: end;
  min-height: 42px;
}

.checkbox-label input {
  width: 18px;
  min-height: 18px;
}

input,
select,
textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 9px 10px;
  background: #fffefb;
  color: var(--ink);
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

textarea {
  min-height: 136px;
  resize: vertical;
  line-height: 1.5;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(15, 123, 108, 0.12);
  background: #ffffff;
}

.wide {
  grid-column: span 2;
}

.advanced {
  grid-column: 1 / -1;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.paste-import {
  grid-column: 1 / -1;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

summary {
  cursor: pointer;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  list-style: none;
}

summary::-webkit-details-marker {
  display: none;
}

summary::before {
  content: "+";
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  margin-right: 6px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--accent);
  font-size: 13px;
  line-height: 1;
}

details[open] > summary::before {
  content: "−";
}

.advanced-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding-top: 12px;
}

.actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.generation-progress {
  grid-column: 1 / -1;
  display: grid;
  gap: 9px;
  padding: 13px 14px;
  border: 1px solid #b9d7cd;
  border-radius: 6px;
  background: var(--soft);
}

.generation-progress-heading,
.generation-progress-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.generation-progress-heading strong {
  color: var(--accent-dark);
  font-size: 14px;
}

.generation-progress-heading span,
.generation-progress-meta {
  color: var(--muted);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.generation-progress-track {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #d3e3dd;
}

.generation-progress-track > span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
  transition: width 220ms ease;
}

.generation-progress.is-running .generation-progress-track > span {
  animation: generation-progress-pulse 1.1s ease-in-out infinite alternate;
}

.generation-progress-meta span:first-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@keyframes generation-progress-pulse {
  to { opacity: 0.72; }
}

.inline-actions {
  padding-top: 10px;
}

.operation-dialog {
  width: min(560px, calc(100% - 28px));
  max-height: min(680px, calc(100dvh - 36px));
  margin: auto;
  overflow: auto;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 0;
  background: var(--panel);
  color: var(--ink);
  box-shadow: 0 24px 70px rgba(31, 41, 37, 0.24);
}

.operation-dialog::backdrop {
  background: rgba(31, 41, 37, 0.34);
}

.operation-dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 18px 12px;
  border-bottom: 1px solid var(--line);
}

.operation-dialog-header h2 {
  font-size: 18px;
}

.operation-dialog-close {
  display: grid;
  flex: 0 0 auto;
  width: 34px;
  min-height: 34px;
  place-items: center;
  padding: 0;
  color: var(--muted);
  font-size: 24px;
  font-weight: 400;
  line-height: 1;
}

.operation-dialog-state {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 48px;
  padding: 13px 18px;
  color: var(--accent-dark);
  font-size: 14px;
  font-weight: 700;
}

.operation-dialog.is-failed .operation-dialog-state {
  color: var(--warm);
}

.operation-dialog.is-pending .operation-dialog-state::before {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  border: 2px solid #9dc9bd;
  border-top-color: var(--accent);
  border-radius: 50%;
  content: "";
  animation: operation-dialog-spin 760ms linear infinite;
}

.operation-dialog-details {
  display: grid;
  gap: 8px;
  padding: 0 18px 18px;
}

.operation-dialog-line {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 9px 10px;
  background: var(--panel-soft);
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

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

button {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 9px 14px;
  background: var(--panel);
  color: var(--ink);
  cursor: pointer;
  font-weight: 600;
  white-space: nowrap;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

button.primary {
  border-color: var(--accent);
  background: var(--accent-dark);
  color: var(--accent-ink);
  box-shadow: 0 5px 12px rgba(11, 96, 88, 0.16);
}

button.ghost {
  color: var(--muted);
  background: transparent;
}

button:hover {
  border-color: var(--line-strong);
  background: #f8faf6;
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

button.primary:hover {
  border-color: var(--accent-dark);
  background: var(--accent);
  box-shadow: 0 7px 16px rgba(11, 96, 88, 0.2);
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

.summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0 14px;
  color: var(--muted);
}

.result-toolbar {
  margin-top: 16px;
  padding: 18px 20px;
}

.result-toolbar-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(217, 216, 208, 0.72);
}

.result-toolbar-heading h2 {
  margin: 0;
  font-size: 20px;
}

.result-filter-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 2fr);
  gap: 14px;
  padding-top: 16px;
}

.result-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 12px;
}

.result-presets button {
  min-height: 36px;
  padding: 7px 11px;
  font-size: 13px;
}

.route-hint {
  margin: 14px 0 0;
  border: 1px solid #d9e5de;
  border-left: 3px solid var(--accent);
  border-radius: 6px;
  padding: 11px 14px;
  background: var(--panel-soft);
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.workflow-panel {
  margin-top: 14px;
  padding: 22px;
}

.workflow-panel > .section-heading {
  margin-bottom: 14px;
}

.flow-strip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  padding: 12px;
  border: 1px solid #d8e6de;
  border-radius: 8px;
  background: #f4faf6;
}

.flow-node {
  display: grid;
  gap: 3px;
  min-width: 0;
  min-height: 74px;
  align-content: center;
  border: 1px solid #d9e5de;
  border-radius: 6px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.8);
}

.flow-label {
  color: var(--warm);
  font-size: 12px;
  font-weight: 700;
}

.flow-node strong {
  font-size: 14px;
  line-height: 1.35;
}

.flow-node small {
  color: var(--muted);
  font-size: 12px;
}

.flow-arrow {
  color: var(--accent);
  font-size: 24px;
  font-weight: 700;
}

.target-node strong {
  color: var(--accent);
}

.web-node strong {
  color: var(--ink);
}

.workflow-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.workflow-grid > *,
.workflow-douyin-grid > * {
  min-width: 0;
}

.workflow-accounts {
  grid-column: span 2;
}

.workflow-account-links {
  display: grid;
  grid-column: span 2;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
}

.workflow-account-links textarea {
  min-height: 82px;
}

.workflow-account-link-actions {
  display: grid;
  gap: 8px;
}

.workflow-works {
  grid-column: 1 / -1;
}

.workflow-primary-actions {
  padding-top: 2px;
}

.workflow-douyin {
  grid-column: 1 / -1;
  margin-top: 2px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.workflow-douyin summary {
  color: var(--ink);
  font-weight: 700;
}

.workflow-douyin-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  padding-top: 14px;
}

.workflow-douyin-grid .wide {
  grid-column: span 2;
}

.workflow-douyin-grid .section-description.wide,
.workflow-douyin-grid .actions {
  grid-column: 1 / -1;
}

.feishu-login {
  display: flex;
  grid-column: 1 / -1;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel-soft);
}

.feishu-login span {
  min-width: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.feishu-login.needs-login {
  border-color: #dfb9a8;
  background: var(--soft-warm);
}

.feishu-login.needs-login span {
  color: var(--warm);
  font-weight: 600;
}

.douyin-login {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.douyin-login-panel {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.72);
}

.douyin-login-panel img {
  width: 260px;
  height: 260px;
  border-radius: 6px;
  background: #fff;
  object-fit: contain;
}

.douyin-login-panel span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.douyin-login-help {
  display: grid;
  gap: 7px;
}

.douyin-login-help strong {
  font-size: 14px;
  line-height: 1.35;
}

.douyin-login-help code {
  display: inline-block;
  width: fit-content;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 6px 8px;
  background: #fffefa;
  color: var(--accent);
  font-size: 13px;
}

.workflow-result {
  grid-column: 1 / -1;
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.workflow-result-row {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px 10px;
  background: var(--panel-soft);
  overflow-wrap: anywhere;
}

.summary span {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 7px 10px;
  background: var(--panel);
  font-size: 14px;
  box-shadow: var(--shadow-sm);
}

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

.date-group {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 249, 0.58);
  padding: 14px;
}

.date-group > summary {
  display: flex;
  align-items: center;
  color: var(--ink);
  font-weight: 700;
}

.date-group > summary::before {
  border-color: #b8d7ca;
  background: var(--soft);
}

.date-group-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding-top: 14px;
}

.item {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: var(--panel);
  box-shadow: var(--shadow-sm);
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.item:hover {
  border-color: #b9cfc5;
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

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

.item-toggle {
  display: flex;
  flex: 1 1 220px;
  min-width: 0;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.item-toggle::before {
  content: '';
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  margin-top: 7px;
  border-right: 2px solid var(--accent-dark);
  border-bottom: 2px solid var(--accent-dark);
  transform: rotate(45deg);
  transition: transform 160ms ease;
}

.item.is-collapsed .item-toggle::before {
  transform: rotate(-45deg);
}

.item-name {
  min-width: 0;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.item.is-collapsed .item-content {
  display: none;
}

.item-actions {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

h2 {
  margin: 0;
  font-size: 18px;
  line-height: 1.35;
  letter-spacing: 0;
}

.item-date {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.copy-product,
.generate-product {
  flex: 0 0 auto;
  min-height: 34px;
  padding: 6px 10px;
  font-size: 13px;
}

.generate-product {
  border-color: #bad8cc;
  background: var(--soft);
  color: var(--accent-dark);
}

.item.is-generating {
  border-color: #9fc8ba;
  box-shadow: 0 0 0 3px rgba(16, 121, 109, 0.1);
}

.copy-product {
  background: #fffdf9;
}

.product-link {
  display: block;
  margin-top: 10px;
  padding: 8px 10px;
  border: 1px solid #e0e5df;
  border-radius: 6px;
  background: var(--panel-soft);
  color: var(--accent);
  overflow-wrap: anywhere;
  font-size: 14px;
  text-decoration: none;
  transition: border-color 160ms ease, background 160ms ease;
}

.product-link:hover {
  border-color: #bad8cc;
  background: var(--soft);
}

.titles {
  display: grid;
  gap: 10px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: title;
}

.titles li {
  counter-increment: title;
  display: grid;
  grid-template-columns: 36px 1fr auto;
  gap: 10px;
  align-items: start;
  border: 1px solid #e0e5df;
  border-radius: 6px;
  padding: 10px;
  background: #fcfdfb;
  transition: border-color 160ms ease, background 160ms ease;
}

.titles li:hover {
  border-color: #bad8cc;
  background: #f6fbf8;
}

.titles li::before {
  content: counter(title);
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--accent-dark);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}

.title-text {
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.title-copy {
  min-height: 30px;
  padding: 5px 9px;
  font-size: 13px;
  border-color: transparent;
  background: transparent;
  color: var(--accent-dark);
}

.title-copy:hover {
  border-color: #bad8cc;
  background: var(--soft);
}

@media (max-width: 760px) {
  .shell {
    width: min(100% - 20px, 560px);
    padding-top: 16px;
    padding-bottom: 40px;
  }

  .hero {
    display: grid;
    gap: 12px;
    padding-bottom: 18px;
  }

  h1 {
    font-size: 27px;
  }

  .status {
    max-width: none;
    font-size: 13px;
  }

  .controls,
  .workflow-panel,
  .result-toolbar {
    padding: 16px;
  }

  .controls,
  .admin-grid,
  .advanced-grid,
  .workflow-grid,
  .workflow-douyin-grid,
  .date-group-grid {
    grid-template-columns: 1fr;
  }

  .section-heading {
    display: grid;
    gap: 10px;
  }

  .section-heading h2 {
    font-size: 20px;
  }

  .result-toolbar-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .result-toolbar-heading button {
    width: 100%;
  }

  .section-badge {
    width: fit-content;
  }

  .result-filter-grid {
    grid-template-columns: 1fr;
  }

  .flow-strip {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .flow-arrow {
    justify-self: center;
    transform: rotate(90deg);
  }

  .wide {
    grid-column: span 1;
  }

  .workflow-accounts {
    grid-column: span 1;
  }

  .workflow-account-links {
    grid-column: span 1;
    grid-template-columns: 1fr;
  }

  .workflow-douyin-grid .wide {
    grid-column: span 1;
  }

  .feishu-login,
  .douyin-login,
  .douyin-login-panel {
    display: grid;
  }

  .douyin-login-panel img {
    width: min(100%, 220px);
    height: auto;
    aspect-ratio: 1;
  }

  .item header {
    flex-wrap: wrap;
  }

  .item-toggle {
    flex-basis: 100%;
  }

  .item-actions {
    justify-content: flex-start;
  }

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

  .actions button {
    width: 100%;
    min-width: 0;
    white-space: normal;
  }

  .generation-progress-meta {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .workflow-primary-actions #syncProductsBtn {
    grid-column: 1 / -1;
  }

  .admin-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .titles li {
    grid-template-columns: 30px 1fr;
  }

  .title-copy {
    grid-column: 2;
    justify-self: start;
  }
}

@media (max-width: 480px) {
  .shell {
    width: calc(100% - 16px);
    padding-top: 12px;
    padding-bottom: 28px;
  }

  .hero {
    padding-bottom: 14px;
  }

  h1 {
    font-size: 25px;
  }

  .admin-panel,
  .controls,
  .workflow-panel,
  .result-toolbar {
    padding: 12px;
  }

  .section-heading {
    padding-bottom: 12px;
  }

  .section-heading h2,
  .result-toolbar-heading h2 {
    font-size: 19px;
  }

  .section-description,
  .route-hint,
  .workflow-result,
  .operation-dialog-line {
    font-size: 13px;
  }

  .actions {
    gap: 8px;
  }

  .actions .primary {
    grid-column: 1 / -1;
  }

  .flow-strip {
    margin-bottom: 14px;
    padding: 10px;
  }

  .flow-node {
    min-height: 0;
    padding: 9px 10px;
  }

  .feishu-login {
    gap: 8px;
    padding: 9px 10px;
  }

  .date-group {
    padding: 10px;
  }

  .date-group-grid {
    gap: 10px;
    padding-top: 10px;
  }

  .item {
    padding: 12px;
  }

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

  .item-actions {
    display: grid;
    width: 100%;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 8px;
  }

  .item-actions button {
    width: 100%;
    min-width: 0;
    white-space: normal;
  }

  .product-link {
    margin-top: 8px;
    padding: 8px;
    font-size: 13px;
  }

  .titles {
    gap: 8px;
    margin-top: 12px;
  }

  .titles li {
    gap: 8px;
    padding: 8px;
  }

  .operation-dialog-header,
  .operation-dialog-state {
    padding-right: 14px;
    padding-left: 14px;
  }

  .operation-dialog-details {
    padding: 0 14px 14px;
  }
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(16, 121, 109, 0.28);
  outline-offset: 2px;
}

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