.zmtw-shell [data-zmt-account-deconstruction-v2] {
  --dcx-ink: #181713;
  --dcx-muted: #777165;
  --dcx-line: #e6e0d3;
  --dcx-soft: #f7f4ed;
  --dcx-gold: #d8ad2d;
  --dcx-gold-soft: #fff7d9;
  color: var(--dcx-ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.zmtw-shell .zmt-dcx-tabs {
  display: inline-flex;
  gap: 4px;
  margin: 0 0 24px;
  padding: 4px;
  border: 1px solid var(--dcx-line);
  border-radius: 14px;
  background: #f1eee7;
  box-shadow: inset 0 1px 2px rgba(38, 32, 19, .05);
}

.zmtw-shell .zmt-dcx-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #6c675e;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: color 160ms ease, background-color 160ms ease, box-shadow 160ms ease, transform 120ms ease;
}

.zmtw-shell .zmt-dcx-tab:hover { color: var(--dcx-ink); background: rgba(255,255,255,.55); }
.zmtw-shell .zmt-dcx-tab:active { transform: scale(.96); }
.zmtw-shell .zmt-dcx-tab.is-active { color: var(--dcx-ink); background: #fff; box-shadow: 0 2px 8px rgba(38, 32, 19, .10); }
.zmtw-shell .zmt-dcx-tab b { min-width: 20px; padding: 2px 6px; border-radius: 999px; background: #e7e2d8; font-size: 12px; font-variant-numeric: tabular-nums; }
.zmtw-shell .zmt-dcx-tab.is-active b { background: var(--dcx-gold-soft); color: #75580b; }

.zmtw-shell .zmt-dcx-guide {
  display: grid;
  grid-template-columns: 1fr 40px 1fr 40px 1fr;
  align-items: center;
  margin: 0 0 24px;
  padding: 18px 22px;
  border: 1px solid var(--dcx-line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(38, 32, 19, .06);
}

.zmtw-shell .zmt-dcx-guide article { display: flex; align-items: center; gap: 12px; min-width: 0; }
.zmtw-shell .zmt-dcx-guide article > b { display: grid; flex: 0 0 36px; width: 36px; height: 36px; place-items: center; border-radius: 11px; background: var(--dcx-gold-soft); color: #745607; font-variant-numeric: tabular-nums; }
.zmtw-shell .zmt-dcx-guide article div { display: grid; gap: 3px; min-width: 0; }
.zmtw-shell .zmt-dcx-guide strong { font-size: 14px; }
.zmtw-shell .zmt-dcx-guide span { overflow: hidden; color: var(--dcx-muted); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.zmtw-shell .zmt-dcx-guide i { width: 24px; height: 1px; margin: auto; background: var(--dcx-line); }

.zmtw-shell .zmt-dcx-workspace {
  overflow: hidden;
  border: 1px solid var(--dcx-line);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 16px 42px rgba(38, 32, 19, .08);
}

.zmtw-shell .zmt-dcx-workspace-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 30px 24px;
  border-bottom: 1px solid var(--dcx-line);
  background: linear-gradient(135deg, #fffdf7 0%, #f7f3e7 100%);
}

.zmtw-shell .zmt-dcx-workspace-head > div { max-width: 760px; }
.zmtw-shell .zmt-dcx-workspace-head span,
.zmtw-shell .zmt-dcx-section-label span,
.zmtw-shell .zmt-dcx-records > header span { display: block; margin-bottom: 7px; color: #927015; font-size: 12px; font-weight: 800; letter-spacing: .12em; }
.zmtw-shell .zmt-dcx-workspace-head h2,
.zmtw-shell .zmt-dcx-records > header h2 { margin: 0; font-size: 25px; line-height: 1.28; letter-spacing: -.02em; text-wrap: balance; }
.zmtw-shell .zmt-dcx-workspace-head p,
.zmtw-shell .zmt-dcx-records > header p { margin: 8px 0 0; color: var(--dcx-muted); line-height: 1.7; text-wrap: pretty; }
.zmtw-shell .zmt-dcx-workspace-head em { flex: 0 0 auto; padding: 8px 11px; border-radius: 9px; background: #fff; color: #766331; box-shadow: 0 2px 8px rgba(38,32,19,.08); font-size: 12px; font-style: normal; font-weight: 700; }

.zmtw-shell .zmt-dcx-workspace > .zmtw-diagnosis-builder { border: 0; border-radius: 0; box-shadow: none; }
.zmtw-shell .zmt-dcx-workspace .zmtw-deconstruction-history-rail { display: none; }
.zmtw-shell .zmt-dcx-workspace .zmtw-diagnosis-builder-main { padding-top: 26px; }

.zmtw-shell .zmt-dcx-auto-data {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  padding: 14px 16px;
  border: 1px solid #dce7dd;
  border-radius: 13px;
  background: #f5faf5;
}

.zmtw-shell .zmt-dcx-auto-data > span {
  display: grid;
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 10px;
  background: #e1f1e2;
  color: #397144;
}

.zmtw-shell .zmt-dcx-auto-data > div { display: grid; gap: 3px; }
.zmtw-shell .zmt-dcx-auto-data strong { font-size: 14px; }
.zmtw-shell .zmt-dcx-auto-data small { color: var(--dcx-muted); line-height: 1.55; }

.zmtw-shell .zmt-dcx-materials {
  margin-top: 14px;
  overflow: hidden;
  border: 1px solid var(--dcx-line);
  border-radius: 14px;
  background: #fff;
}

.zmtw-shell .zmt-dcx-materials > summary {
  display: flex;
  min-height: 58px;
  padding: 12px 15px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  list-style: none;
  transition: background-color 160ms ease;
}

.zmtw-shell .zmt-dcx-materials > summary::-webkit-details-marker { display: none; }
.zmtw-shell .zmt-dcx-materials > summary:hover { background: #fbf9f3; }
.zmtw-shell .zmt-dcx-materials > summary > span { display: grid; gap: 3px; }
.zmtw-shell .zmt-dcx-materials > summary strong { font-size: 14px; }
.zmtw-shell .zmt-dcx-materials > summary small { color: var(--dcx-muted); }
.zmtw-shell .zmt-dcx-materials > summary em { display: inline-flex; align-items: center; gap: 7px; color: #775c16; font-size: 12px; font-style: normal; font-weight: 750; }
.zmtw-shell .zmt-dcx-materials > summary em .dashicons { transition: transform 160ms ease; }
.zmtw-shell .zmt-dcx-materials[open] > summary { border-bottom: 1px solid var(--dcx-line); background: #fbf9f3; }
.zmtw-shell .zmt-dcx-materials[open] > summary em .dashicons { transform: rotate(180deg); }
.zmtw-shell .zmt-dcx-materials > .zmtw-materials-block { margin: 0; border: 0; border-radius: 0; box-shadow: none; }

.zmtw-shell .zmt-dcx-workspace .zmtw-deconstruction-sidecar {
  grid-template-columns: minmax(280px, 380px);
  justify-content: end;
}

.zmtw-shell .zmt-dcx-latest { margin: 0 0 24px; }
.zmtw-shell .zmt-dcx-section-label { display: flex; align-items: baseline; gap: 12px; margin-bottom: 12px; }
.zmtw-shell .zmt-dcx-section-label span { margin: 0; }
.zmtw-shell .zmt-dcx-section-label p { margin: 0; color: var(--dcx-muted); font-size: 13px; }
.zmtw-shell .zmt-dcx-latest .zmtw-deconstruction-result { margin: 0; border-radius: 18px; box-shadow: 0 14px 34px rgba(38,32,19,.10); }

.zmtw-shell .zmt-dcx-records { min-height: 480px; padding: 30px; border: 1px solid var(--dcx-line); border-radius: 20px; background: #fff; box-shadow: 0 16px 42px rgba(38,32,19,.08); }
.zmtw-shell .zmt-dcx-records > header { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 24px; padding-bottom: 22px; border-bottom: 1px solid var(--dcx-line); }
.zmtw-shell .zmt-dcx-records .zmtw-deconstruction-history-rail { display: block; width: 100%; border: 0; box-shadow: none; }
.zmtw-shell .zmt-dcx-records .zmtw-deconstruction-history-rail > header { display: none; }
.zmtw-shell .zmt-dcx-records .zmtw-deconstruction-history-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.zmtw-shell .zmt-dcx-records .zmtw-deconstruction-history-item { height: 100%; min-height: 126px; border-radius: 14px; transition: border-color 160ms ease, box-shadow 160ms ease, transform 120ms ease; }
.zmtw-shell .zmt-dcx-records .zmtw-deconstruction-history-item:hover { border-color: #d2b24e; box-shadow: 0 10px 24px rgba(38,32,19,.08); }
.zmtw-shell .zmt-dcx-records .zmtw-deconstruction-history-item:active { transform: scale(.98); }

.zmtw-shell .zmt-dcx-empty { display: grid; max-width: 520px; min-height: 320px; margin: 20px auto; place-items: center; align-content: center; text-align: center; }
.zmtw-shell .zmt-dcx-empty > span { display: grid; width: 58px; height: 58px; margin: 0 0 16px; place-items: center; border-radius: 18px; background: var(--dcx-gold-soft); color: #83620b; font-size: 28px; }
.zmtw-shell .zmt-dcx-empty h3 { margin: 0; font-size: 20px; }
.zmtw-shell .zmt-dcx-empty p { margin: 8px 0 20px; color: var(--dcx-muted); }

@media (prefers-reduced-motion: reduce) {
  .zmtw-shell .zmt-dcx-tab,
  .zmtw-shell .zmt-dcx-records .zmtw-deconstruction-history-item,
  .zmtw-shell .zmt-dcx-materials > summary,
  .zmtw-shell .zmt-dcx-materials > summary em .dashicons { transition: none; }
}
