.zmtcc-view {
  --zmtcc-ink: #201d17;
  --zmtcc-muted: #746d60;
  --zmtcc-faint: #9b9282;
  --zmtcc-gold: #d4af37;
  --zmtcc-gold-strong: #b98c14;
  --zmtcc-gold-soft: #fff7dc;
  --zmtcc-dark: #211f1a;
  --zmtcc-green: #24735a;
  --zmtcc-blue: #346d9e;
  --zmtcc-red: #b54b45;
  --zmtcc-line: rgba(42, 36, 25, .11);
  --zmtcc-shadow:
    0 0 0 1px rgba(0, 0, 0, .055),
    0 1px 2px -1px rgba(0, 0, 0, .06),
    0 6px 18px rgba(42, 36, 25, .045);
  --zmtcc-shadow-hover:
    0 0 0 1px rgba(185, 140, 20, .24),
    0 2px 5px rgba(42, 36, 25, .08),
    0 10px 24px rgba(42, 36, 25, .075);
  color: var(--zmtcc-ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.zmtcc-view *,
.zmtcc-view *::before,
.zmtcc-view *::after { box-sizing: border-box; }

.zmtcc-view h1,
.zmtcc-view h2,
.zmtcc-view h3,
.zmtcc-view p { margin: 0; }

.zmtcc-view h1,
.zmtcc-view h2,
.zmtcc-view h3 { text-wrap: balance; }
.zmtcc-view p,
.zmtcc-view small { text-wrap: pretty; }

.zmtw-shell:has(.zmtcc-view.is-active) .zmtw-account-switcher { display: none; }

.zmtcc-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 124px;
  margin-bottom: 18px;
  padding: 24px 28px;
  color: #fff;
  background:
    radial-gradient(circle at 78% 0%, rgba(241, 201, 76, .14), transparent 32%),
    var(--zmtcc-dark);
  border-top: 4px solid var(--zmtcc-gold);
  border-radius: 10px;
  box-shadow: 0 12px 28px rgba(25, 21, 14, .14);
}

.zmtcc-eyebrow {
  display: block;
  margin-bottom: 6px;
  color: var(--zmtcc-gold);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.zmtcc-hero h1 { color: #fff; font-size: clamp(25px, 2.3vw, 32px); line-height: 1.2; }
.zmtcc-hero p { max-width: 660px; margin-top: 8px; color: #d9cfba; font-size: 14px; }
.zmtcc-hero-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

.zmtcc-button,
.zmtcc-text-button,
.zmtcc-account-card button,
.zmtcc-kind-tabs button,
.zmtcc-status-tabs button,
.zmtcc-task,
.zmtcc-row-action,
.zmtcc-pagination button {
  font-family: inherit;
  cursor: pointer;
  transition-property: color, background-color, box-shadow, scale, opacity, transform;
  transition-duration: 160ms;
  transition-timing-function: cubic-bezier(.2, 0, 0, 1);
}

.zmtcc-button:active,
.zmtcc-text-button:active,
.zmtcc-account-card button:active,
.zmtcc-kind-tabs button:active,
.zmtcc-status-tabs button:active,
.zmtcc-task:active,
.zmtcc-row-action:active,
.zmtcc-pagination button:active { scale: .96; }

.zmtcc-button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px 10px 16px;
  border: 0;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 750;
  line-height: 1;
  text-decoration: none !important;
}
.zmtcc-button .dashicons { width: 17px; height: 17px; font-size: 17px; }
.zmtcc-button.is-primary { color: #211d15 !important; background: #f1c94c; box-shadow: 0 7px 18px rgba(241, 201, 76, .2); }
.zmtcc-button.is-primary:hover { background: #dfb936; box-shadow: 0 9px 22px rgba(241, 201, 76, .28); }
.zmtcc-button.is-secondary { color: #fff !important; background: rgba(255, 255, 255, .09); box-shadow: 0 0 0 1px rgba(255, 255, 255, .22); }
.zmtcc-button.is-secondary:hover { background: rgba(255, 255, 255, .14); box-shadow: 0 0 0 1px rgba(255, 255, 255, .34); }

.zmtcc-accounts,
.zmtcc-workspace {
  background: #fff;
  border-radius: 10px;
  box-shadow: var(--zmtcc-shadow);
}

.zmtcc-accounts { margin-bottom: 18px; padding: 18px; }
.zmtcc-accounts > header,
.zmtcc-workspace-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.zmtcc-accounts > header { margin-bottom: 13px; }
.zmtcc-accounts > header > div:last-child { display: flex; align-items: center; gap: 14px; }
.zmtcc-accounts h2,
.zmtcc-workspace h2 { font-size: 19px; line-height: 1.25; }
.zmtcc-accounts header p,
.zmtcc-workspace-head p { margin-top: 4px; color: var(--zmtcc-muted); font-size: 13px; }
.zmtcc-accounts header [data-zmtcc-account-count] { color: var(--zmtcc-faint); font-size: 12px; font-variant-numeric: tabular-nums; }

.zmtcc-text-button {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  gap: 5px;
  padding: 0 8px;
  color: #80630e;
  background: transparent;
  border: 0;
  font-size: 13px;
  font-weight: 750;
}
.zmtcc-text-button:hover { color: var(--zmtcc-ink); }
.zmtcc-text-button .dashicons { width: 16px; height: 16px; font-size: 16px; }

.zmtcc-account-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(220px, 1fr);
  gap: 10px;
  max-width: 100%;
  padding: 1px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scrollbar-width: thin;
  scroll-snap-type: inline proximity;
}

.zmtcc-account-card {
  min-width: 0;
  min-height: 86px;
  color: var(--zmtcc-ink);
  background: #fff;
  border: 0;
  border-radius: 8px;
  box-shadow: var(--zmtcc-shadow);
  scroll-snap-align: start;
  transition-property: box-shadow, transform, background-color;
  transition-duration: 160ms;
  transition-timing-function: ease-out;
}
.zmtcc-account-card:hover { transform: translateY(-1px); box-shadow: var(--zmtcc-shadow-hover); }
.zmtcc-account-card.is-active { color: #fff; background: var(--zmtcc-dark); box-shadow: 0 0 0 2px var(--zmtcc-gold), 0 8px 20px rgba(28, 24, 16, .15); }

button.zmtcc-account-card,
.zmtcc-account-select {
  display: grid;
  width: 100%;
  min-height: 86px;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 13px;
  color: inherit;
  text-align: left;
  background: transparent;
  border: 0;
  border-radius: 8px;
}
.zmtcc-account-card > span:not(.zmtcc-account-avatar),
.zmtcc-account-select > span:not(.zmtcc-account-avatar) { min-width: 0; }
.zmtcc-account-card strong,
.zmtcc-account-card small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.zmtcc-account-card strong { font-size: 14px; }
.zmtcc-account-card small { margin-top: 3px; color: var(--zmtcc-muted); font-size: 11px; font-weight: 550; }
.zmtcc-account-card.is-active small { color: #cfc5b2; }
.zmtcc-account-card > b,
.zmtcc-account-select > b { color: var(--zmtcc-gold-strong); font-size: 17px; font-variant-numeric: tabular-nums; text-align: right; }
.zmtcc-account-card.is-active > b,
.zmtcc-account-card.is-active .zmtcc-account-select > b { color: #f1c94c; }
.zmtcc-account-card > b small,
.zmtcc-account-select > b small { font-size: 10px; font-weight: 650; }

.zmtcc-account-avatar {
  display: grid !important;
  width: 38px;
  height: 38px;
  place-items: center;
  flex: 0 0 38px;
  color: #fff;
  background: #746339;
  border-radius: 7px;
  font-size: 14px;
  font-weight: 800;
}
.zmtcc-account-card.is-active .zmtcc-account-avatar { color: #251f12; background: #f1c94c; }
.zmtcc-account-card.is-all .zmtcc-account-avatar { background: #2f765f; }
.zmtcc-account-card.is-unassigned .zmtcc-account-avatar { background: #7e7a70; }

.zmtcc-account-card footer {
  display: flex;
  min-height: 40px;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 8px 6px 13px;
  border-top: 1px solid var(--zmtcc-line);
}
.zmtcc-account-card.is-active footer { border-color: rgba(255, 255, 255, .13); }
.zmtcc-account-card footer button {
  min-width: 72px;
  min-height: 40px;
  padding: 0 8px;
  color: #745d1d;
  background: transparent;
  border: 0;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 750;
}
.zmtcc-account-card footer button:hover { background: var(--zmtcc-gold-soft); }
.zmtcc-account-card.is-active footer button { color: #f1c94c; }
.zmtcc-account-card.is-active footer button:hover { background: rgba(241, 201, 76, .1); }
.zmtcc-profile-state { color: #986b16; font-size: 11px; font-variant-numeric: tabular-nums; }
.zmtcc-profile-state.is-ready { color: var(--zmtcc-green); }
.zmtcc-account-card.is-active .zmtcc-profile-state { color: #d1c7b5; }

.zmtcc-account-card.is-add {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px;
  color: #745d1d;
  background: #fffaf0;
  box-shadow: inset 0 0 0 1px rgba(185, 140, 20, .25);
}
.zmtcc-account-card.is-add > .dashicons { display: grid; width: 38px; height: 38px; place-items: center; color: #2c2413; background: #f1c94c; border-radius: 7px; font-size: 19px; line-height: 38px; }

.zmtcc-workspace { overflow: hidden; }
.zmtcc-workspace-head { padding: 21px 22px 17px; }
.zmtcc-workspace-head > div { min-width: 0; }

.zmtcc-search {
  display: flex;
  width: min(340px, 42vw);
  height: 44px;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  background: #fff;
  border: 1px solid rgba(42, 36, 25, .16);
  border-radius: 8px;
}
.zmtcc-search:focus-within { border-color: var(--zmtcc-gold); box-shadow: 0 0 0 3px rgba(212, 175, 55, .14); }
.zmtcc-search .dashicons { width: 17px; height: 17px; color: var(--zmtcc-faint); font-size: 17px; }
.zmtcc-search input { width: 100%; min-width: 0; height: 40px; padding: 0 !important; background: transparent !important; border: 0 !important; box-shadow: none !important; font-size: 13px; outline: 0 !important; }

.zmtcc-resume {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0 18px 14px;
  padding: 13px 14px;
  color: #fff;
  background: linear-gradient(118deg, #2b2923, #1f1d19);
  border-radius: 8px;
  box-shadow: 0 7px 18px rgba(29, 25, 17, .12);
}
.zmtcc-resume > div { display: flex; align-items: center; gap: 11px; min-width: 0; }
.zmtcc-resume > div > span { display: grid; width: 38px; height: 38px; place-items: center; flex: 0 0 38px; color: #2b2517; background: #f1c94c; border-radius: 7px; }
.zmtcc-resume p { min-width: 0; }
.zmtcc-resume p small,
.zmtcc-resume p strong,
.zmtcc-resume p em { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.zmtcc-resume p small { color: #d2c5a7; font-size: 10px; letter-spacing: .05em; }
.zmtcc-resume p strong { margin-top: 2px; color: #fff; font-size: 14px; }
.zmtcc-resume p em { margin-top: 2px; color: #bdb4a4; font-size: 11px; font-style: normal; }
.zmtcc-resume > a,
.zmtcc-resume > button { display: inline-flex; min-height: 40px; align-items: center; gap: 5px; padding: 0 10px 0 12px; flex-shrink: 0; color: #f1c94c !important; background: transparent; border: 0; border-radius: 6px; font-size: 12px; font-weight: 750; text-decoration: none !important; }
.zmtcc-resume > a:hover,
.zmtcc-resume > button:hover { background: rgba(241, 201, 76, .1); }

.zmtcc-tasks {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  padding: 0 18px 16px;
}
.zmtcc-task {
  display: flex;
  min-height: 56px;
  align-items: center;
  gap: 9px;
  padding: 9px 11px;
  color: var(--zmtcc-ink);
  text-align: left;
  background: #fbfaf7;
  border: 0;
  border-radius: 7px;
  box-shadow: 0 0 0 1px rgba(42, 36, 25, .075);
}
.zmtcc-task:hover { background: #fff8e5; box-shadow: 0 0 0 1px rgba(185, 140, 20, .22); }
.zmtcc-task > .dashicons { width: 20px; height: 20px; color: #97731c; font-size: 20px; }
.zmtcc-task span { display: flex; align-items: baseline; gap: 6px; min-width: 0; }
.zmtcc-task strong { font-size: 18px; font-variant-numeric: tabular-nums; }
.zmtcc-task small { color: var(--zmtcc-muted); font-size: 11px; }
.zmtcc-task.is-alert { background: #fff6f3; box-shadow: 0 0 0 1px rgba(181, 75, 69, .16); }
.zmtcc-task.is-alert > .dashicons,
.zmtcc-task.is-alert strong { color: var(--zmtcc-red); }

.zmtcc-toolbar {
  display: grid;
  grid-template-columns: auto minmax(390px, 1fr) 170px;
  align-items: center;
  gap: 10px;
  min-height: 64px;
  padding: 10px 18px;
  background: #fbfaf7;
  border-top: 1px solid var(--zmtcc-line);
  border-bottom: 1px solid var(--zmtcc-line);
}
.zmtcc-kind-tabs,
.zmtcc-status-tabs { display: inline-flex; align-items: center; gap: 2px; padding: 3px; background: #eeeae2; border-radius: 8px; }
.zmtcc-kind-tabs button,
.zmtcc-status-tabs button {
  min-height: 40px;
  padding: 0 12px;
  color: var(--zmtcc-muted);
  background: transparent;
  border: 0;
  border-radius: 5px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.zmtcc-kind-tabs button.is-active,
.zmtcc-status-tabs button.is-active { color: var(--zmtcc-ink); background: #fff; box-shadow: 0 1px 5px rgba(48, 40, 27, .12); }
.zmtcc-status-tabs { justify-self: start; overflow-x: auto; max-width: 100%; }
.zmtcc-source select { width: 100%; height: 44px; padding: 0 34px 0 11px; color: var(--zmtcc-muted); background-color: #fff; border: 1px solid rgba(42, 36, 25, .15); border-radius: 7px; font-size: 12px; }

.zmtcc-content { min-height: 196px; overflow-x: auto; }
.zmtcc-table { min-width: 860px; }
.zmtcc-table-head,
.zmtcc-row {
  display: grid;
  grid-template-columns: minmax(280px, 1.7fr) minmax(145px, .8fr) minmax(140px, .7fr) 118px 104px;
  align-items: center;
  gap: 12px;
  padding: 0 18px;
}
.zmtcc-table-head { min-height: 42px; color: var(--zmtcc-muted); background: #fffdf9; border-bottom: 1px solid var(--zmtcc-line); font-size: 11px; font-weight: 750; }
.zmtcc-row { min-height: 72px; border-bottom: 1px solid rgba(42, 36, 25, .075); font-size: 12px; }
.zmtcc-row:last-child { border-bottom: 0; }
.zmtcc-row:hover { background: #fffdf8; }
.zmtcc-title { display: flex; align-items: center; gap: 11px; min-width: 0; }
.zmtcc-title > span { display: grid; width: 38px; height: 38px; place-items: center; flex: 0 0 38px; color: #7a5d12; background: var(--zmtcc-gold-soft); border-radius: 7px; }
.zmtcc-title > span .dashicons { width: 18px; height: 18px; font-size: 18px; }
.zmtcc-title > div { min-width: 0; }
.zmtcc-title strong,
.zmtcc-title small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.zmtcc-title strong { color: var(--zmtcc-ink); font-size: 13px; }
.zmtcc-title small { margin-top: 4px; color: var(--zmtcc-muted); font-size: 11px; }
.zmtcc-owner { display: flex; align-items: center; gap: 8px; min-width: 0; }
.zmtcc-owner i { display: grid; width: 28px; height: 28px; place-items: center; flex: 0 0 28px; color: #fff; background: #6e6246; border-radius: 6px; font-size: 10px; font-style: normal; font-weight: 800; }
.zmtcc-owner span { overflow: hidden; color: #5f594f; text-overflow: ellipsis; white-space: nowrap; }
.zmtcc-owner span small { display: block; margin-top: 1px; color: var(--zmtcc-faint); font-size: 9px; }
.zmtcc-item-status strong,
.zmtcc-item-status small { display: block; }
.zmtcc-item-status strong { font-size: 12px; }
.zmtcc-item-status small { margin-top: 3px; color: var(--zmtcc-muted); font-size: 10px; }
.zmtcc-item-status.is-working strong { color: var(--zmtcc-blue); }
.zmtcc-item-status.is-ready strong { color: #9a6c11; }
.zmtcc-item-status.is-published strong { color: var(--zmtcc-green); }
.zmtcc-item-status.is-alert strong { color: var(--zmtcc-red); }
.zmtcc-row time { color: var(--zmtcc-muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.zmtcc-row-action { display: inline-flex; min-height: 40px; align-items: center; justify-content: flex-end; gap: 3px; padding: 0 7px 0 9px; justify-self: end; color: #775d15 !important; background: transparent; border: 0; border-radius: 6px; font-size: 11px; font-weight: 750; text-decoration: none !important; white-space: nowrap; }
.zmtcc-row-action:hover { color: var(--zmtcc-ink) !important; background: var(--zmtcc-gold-soft); }
.zmtcc-row-action .dashicons { width: 15px; height: 15px; font-size: 15px; }

.zmtcc-pagination { display: flex; min-height: 58px; align-items: center; justify-content: space-between; gap: 14px; padding: 8px 18px; background: #fffdf9; border-top: 1px solid var(--zmtcc-line); }
.zmtcc-pagination > span { color: var(--zmtcc-muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.zmtcc-pagination > div { display: flex; gap: 8px; }
.zmtcc-pagination button { min-width: 72px; min-height: 40px; padding: 0 12px; color: var(--zmtcc-ink); background: #fff; border: 0; border-radius: 6px; box-shadow: var(--zmtcc-shadow); font-size: 11px; font-weight: 700; }
.zmtcc-pagination button:hover:not(:disabled) { box-shadow: var(--zmtcc-shadow-hover); }
.zmtcc-pagination button:disabled { opacity: .4; cursor: not-allowed; }

.zmtcc-loading,
.zmtcc-empty { display: grid; min-height: 196px; place-items: center; align-content: center; padding: 30px; color: var(--zmtcc-muted); text-align: center; }
.zmtcc-loading span { width: 22px; height: 22px; border: 2px solid rgba(185, 140, 20, .2); border-top-color: var(--zmtcc-gold-strong); border-radius: 50%; animation: zmtcc-spin 700ms linear infinite; }
.zmtcc-loading strong { margin-top: 10px; font-size: 12px; }
.zmtcc-empty > .dashicons { width: 30px; height: 30px; color: var(--zmtcc-gold-strong); font-size: 30px; }
.zmtcc-empty strong { margin-top: 10px; color: var(--zmtcc-ink); font-size: 15px; }
.zmtcc-empty p { max-width: 440px; margin: 5px 0 15px; color: var(--zmtcc-muted); font-size: 12px; }
.zmtcc-empty .zmtcc-button.is-secondary { color: var(--zmtcc-ink) !important; background: #fff; box-shadow: var(--zmtcc-shadow); }
.zmtcc-skeleton { background: linear-gradient(100deg, #f4f1eb 25%, #fbfaf7 42%, #f4f1eb 58%); background-size: 300% 100%; border-radius: 8px; animation: zmtcc-shimmer 1.2s ease-in-out infinite; }
.zmtcc-skeleton.is-account { min-height: 86px; }

.zmtcc-toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 10020;
  max-width: min(380px, calc(100vw - 32px));
  padding: 12px 14px;
  color: #fff;
  background: #2b2923;
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(25, 21, 14, .22);
  font-size: 12px;
  font-weight: 650;
  opacity: 0;
  transform: translateY(8px);
  transition-property: opacity, transform;
  transition-duration: 180ms;
  transition-timing-function: ease-out;
}
.zmtcc-toast.is-show { opacity: 1; transform: translateY(0); }

@keyframes zmtcc-spin { to { transform: rotate(360deg); } }
@keyframes zmtcc-shimmer { to { background-position-x: -150%; } }

@media (max-width: 1120px) {
  .zmtcc-toolbar { grid-template-columns: 1fr 170px; }
  .zmtcc-kind-tabs { justify-self: start; }
  .zmtcc-status-tabs { grid-column: 1 / -1; grid-row: 2; }
  .zmtcc-source { grid-column: 2; grid-row: 1; }
}

@media (max-width: 760px) {
  .zmtcc-hero { align-items: flex-start; min-height: 0; padding: 20px; flex-direction: column; }
  .zmtcc-hero-actions { width: 100%; }
  .zmtcc-hero-actions .zmtcc-button { flex: 1; }
  .zmtcc-accounts { padding: 15px; }
  .zmtcc-accounts > header { align-items: flex-start; }
  .zmtcc-accounts > header > div:last-child { flex-direction: column; align-items: flex-end; gap: 1px; }
  .zmtcc-account-strip { grid-auto-columns: minmax(205px, 84vw); }
  .zmtcc-workspace-head { align-items: stretch; padding: 18px; flex-direction: column; }
  .zmtcc-search { width: 100%; }
  .zmtcc-resume { align-items: flex-start; flex-direction: column; }
  .zmtcc-resume > a,
  .zmtcc-resume > button { align-self: stretch; justify-content: center; background: rgba(241, 201, 76, .08); }
  .zmtcc-tasks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .zmtcc-task span { display: block; }
  .zmtcc-task small { margin-top: 1px; }
  .zmtcc-toolbar { display: flex; align-items: stretch; padding: 10px 14px; flex-direction: column; }
  .zmtcc-kind-tabs,
  .zmtcc-status-tabs { width: 100%; overflow-x: auto; }
  .zmtcc-kind-tabs button { flex: 1; }
  .zmtcc-source select { width: 100%; }
  .zmtcc-pagination { position: sticky; left: 0; }
}

@media (max-width: 430px) {
  .zmtcc-hero-actions { flex-direction: column-reverse; }
  .zmtcc-hero-actions .zmtcc-button { width: 100%; }
  .zmtcc-tasks { grid-template-columns: 1fr 1fr; padding-inline: 14px; }
  .zmtcc-task { padding: 8px; }
  .zmtcc-table-head,
  .zmtcc-row { padding-inline: 14px; }
}

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