/* =====================================================================
   Painel Transly — tema leve
   Princípios: pouco negrito, poucas bordas, muito respiro, cores suaves.
   Mobile primeiro; claro/escuro automático. Sem estilos inline (CSP).
   ===================================================================== */
:root {
  --bg: #f6f7f9;
  --surface: #ffffff;
  --soft: #f1f3f6;
  --softer: #f8f9fb;
  --text: #1d2433;
  --text-2: #4a5468;
  --muted: #7a8396;
  --line: #e7eaf0;
  --line-strong: #d9dee7;

  --accent: #5b5fd6;
  --accent-hover: #4d51c7;
  --accent-soft: #eef0fd;
  --accent-text: #ffffff;

  --good: #15855c;
  --good-soft: #e8f5ef;
  --mid: #b5741c;
  --mid-soft: #fbf2e4;
  --low: #cf4655;
  --low-soft: #fcecee;
  --info: #3a6ad6;
  --info-soft: #ebf1fd;

  --shadow-sm: 0 1px 2px rgb(16 24 40 / 4%);
  --shadow: 0 1px 3px rgb(16 24 40 / 5%), 0 1px 2px rgb(16 24 40 / 3%);
  --shadow-lg: 0 20px 48px -12px rgb(16 24 40 / 22%);
  --radius: 14px;
  --radius-sm: 10px;
  --side-w: 232px;
  --ease: cubic-bezier(0.2, 0.7, 0.3, 1);
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1116;
    --surface: #151a21;
    --soft: #1b2129;
    --softer: #181d24;
    --text: #e6e9ef;
    --text-2: #b7beca;
    --muted: #8a93a3;
    --line: #232a34;
    --line-strong: #2e3642;

    --accent: #8f93ff;
    --accent-hover: #a3a6ff;
    --accent-soft: #23244a;
    --accent-text: #0e1116;

    --good: #4cc795;
    --good-soft: #13281f;
    --mid: #e9b25b;
    --mid-soft: #2c2314;
    --low: #f07a86;
    --low-soft: #331a1e;
    --info: #7ea3ff;
    --info-soft: #172240;

    --shadow-sm: 0 1px 2px rgb(0 0 0 / 30%);
    --shadow: 0 1px 3px rgb(0 0 0 / 35%);
    --shadow-lg: 0 20px 48px -12px rgb(0 0 0 / 70%);
  }
}

/* ---------- Base ---------- */
* {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font:
    400 15px/1.55 -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    'Inter',
    Roboto,
    system-ui,
    sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a {
  color: var(--accent);
  text-decoration: none;
}
a:hover {
  color: var(--accent-hover);
}
h1,
h2,
h3 {
  margin: 0;
  line-height: 1.3;
  font-weight: 600;
  letter-spacing: -0.01em;
}
h1 {
  font-size: 1.55rem;
  letter-spacing: -0.02em;
}
h2 {
  font-size: 1.05rem;
}
h3 {
  font-size: 0.98rem;
}
p {
  margin: 0.35rem 0;
}
strong,
b {
  font-weight: 600;
}
code,
.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.84em;
}
.muted {
  color: var(--muted);
}
.small {
  font-size: 0.84rem;
}
.center-text {
  text-align: center;
  padding: 20px;
}
.bad-text {
  color: var(--low);
}
.grow {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.link {
  color: var(--accent);
  cursor: pointer;
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 6px;
}
[hidden] {
  display: none !important;
}
::selection {
  background: var(--accent-soft);
}

/* Entrada suave do conteúdo (dá vida sem distrair) */
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.content > *,
.tab-body > *,
.ed-main > * {
  animation: rise 0.28s var(--ease) both;
}

/* ---------- Ícones ---------- */
.icon {
  width: 18px;
  height: 18px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  flex: none;
  transition:
    background 0.15s,
    color 0.15s;
}
.icon-btn:hover {
  background: var(--soft);
  color: var(--text);
}
.icon-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  background: transparent;
}
.icon-btn.flip .icon {
  transform: rotate(180deg);
}

/* ---------- Marca ---------- */
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 650;
  font-size: 1.06rem;
  letter-spacing: -0.01em;
  color: var(--text);
}
.brand:hover {
  color: var(--text);
}
.logo {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: linear-gradient(140deg, #6d72f0, #9b7bf2);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  box-shadow: 0 4px 10px -4px rgb(91 95 214 / 60%);
}
.brand.big {
  font-size: 1.25rem;
  margin-bottom: 22px;
}
.brand.big .logo {
  width: 38px;
  height: 38px;
  border-radius: 11px;
}

/* ---------- Layout: barra lateral / menu no celular ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.side {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 40;
  width: min(84vw, var(--side-w));
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 20px 14px 16px;
  background: var(--surface);
  border-right: 1px solid var(--line);
  transform: translateX(-102%);
  transition: transform 0.25s var(--ease);
}
.side > .brand {
  padding: 2px 8px 6px;
}
.side nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}
.side nav a {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  color: var(--text-2);
  font-weight: 500;
  transition:
    background 0.15s,
    color 0.15s;
}
.side nav a .icon {
  color: var(--muted);
}
.side nav a:hover {
  background: var(--soft);
  color: var(--text);
}
.side nav a.active {
  background: var(--accent-soft);
  color: var(--accent);
}
.side nav a.active .icon {
  color: var(--accent);
}
.scrim {
  position: fixed;
  inset: 0;
  z-index: 30;
  background: rgb(10 14 20 / 40%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
body.menu-open .side {
  transform: none;
  box-shadow: var(--shadow-lg);
}
body.menu-open .scrim {
  opacity: 1;
  pointer-events: auto;
}
.content {
  padding: 20px 16px 56px;
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
@media (min-width: 900px) {
  .topbar,
  .scrim {
    display: none;
  }
  .side {
    width: var(--side-w);
    transform: none;
    box-shadow: none;
  }
  body.menu-open .side {
    box-shadow: none;
  }
  .content {
    margin-left: var(--side-w);
    padding: 32px 40px 72px;
    max-width: calc(1400px + var(--side-w));
    gap: 22px;
  }
}

/* Usuário logado */
.who {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 8px 0;
  border-top: 1px solid var(--line);
}
.who-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}
.who-text strong {
  font-size: 0.84rem;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.who-text small {
  color: var(--muted);
  font-size: 0.74rem;
}
.avatar {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 600;
  font-size: 0.85rem;
  flex: none;
}

/* ---------- Cabeçalhos ---------- */
.page-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
}
.page-head h1 {
  word-break: break-word;
}
.page-head p {
  margin: 4px 0 0;
}
.back {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--muted);
  font-size: 0.88rem;
  margin-bottom: 10px;
}
.back:hover {
  color: var(--text);
}
.back .icon {
  width: 16px;
  height: 16px;
}
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 6px;
}
.section-head h2 {
  font-size: 0.95rem;
  color: var(--text-2);
}

/* ---------- Cartões ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}
@media (min-width: 700px) {
  .card {
    padding: 24px;
  }
}
.card > h2 {
  margin-bottom: -2px;
}
.card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.card-head p {
  margin: 4px 0 0;
}
details.card > summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 12px;
}
details.card > summary::-webkit-details-marker {
  display: none;
}
details.card > summary::before {
  content: '';
  width: 7px;
  height: 7px;
  border-right: 1.8px solid var(--muted);
  border-bottom: 1.8px solid var(--muted);
  transform: rotate(-45deg);
  transition: transform 0.2s var(--ease);
  align-self: center;
  margin-right: 2px;
}
details.card[open] > summary::before {
  transform: rotate(45deg);
}
details > summary.link {
  list-style: none;
  font-weight: 500;
  font-size: 0.9rem;
}
details > summary.link::-webkit-details-marker {
  display: none;
}
details > summary.link::before {
  content: '+ ';
}
details[open] > summary.link::before {
  content: '− ';
}
.danger-zone {
  border-color: color-mix(in srgb, var(--low) 30%, var(--line));
  background: color-mix(in srgb, var(--low-soft) 40%, var(--surface));
}
.danger-zone h2 {
  color: var(--low);
}
.empty {
  text-align: center;
  padding: 48px 24px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.empty h3 {
  font-size: 1.02rem;
}
.empty p {
  max-width: 460px;
  margin: 0 0 12px;
}

/* ---------- Linhas e grades ---------- */
.row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.row.end {
  justify-content: flex-end;
}
.two-col {
  display: grid;
  gap: 18px;
  min-width: 0;
}
.form-grid {
  display: grid;
  gap: 14px;
}
@media (min-width: 900px) {
  .two-col {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}
@media (min-width: 640px) {
  .form-grid {
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  }
}

/* ---------- Botões ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 8px 16px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: var(--accent-text);
  font: inherit;
  font-weight: 550;
  font-size: 0.93rem;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition:
    background 0.15s,
    box-shadow 0.15s,
    transform 0.1s;
  box-shadow: 0 1px 2px rgb(91 95 214 / 25%);
}
.btn:hover {
  background: var(--accent-hover);
  color: var(--accent-text);
}
.btn:active {
  transform: translateY(1px);
}
.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}
.btn.secondary {
  background: var(--surface);
  color: var(--text);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-sm);
}
.btn.secondary:hover {
  background: var(--soft);
}
.btn.ghost {
  background: transparent;
  color: var(--text-2);
  box-shadow: none;
}
.btn.ghost:hover {
  background: var(--soft);
  color: var(--text);
}
.btn.danger {
  background: var(--low);
  color: #fff;
  box-shadow: none;
}
.btn.danger:hover {
  background: color-mix(in srgb, var(--low) 88%, #000);
}
.btn.warn {
  background: var(--mid);
  color: #fff;
  box-shadow: none;
}
.btn.warn:hover {
  background: color-mix(in srgb, var(--mid) 88%, #000);
}
.btn.block {
  width: 100%;
}
.btn .icon {
  width: 16px;
  height: 16px;
}
.btn.small-btn {
  min-height: 32px;
  padding: 4px 10px;
  font-size: 0.84rem;
  gap: 5px;
}
.btn.small-btn .icon {
  width: 14px;
  height: 14px;
}
@media (max-width: 520px) {
  .row > .btn:not(.small-btn) {
    flex: 1 1 auto;
    white-space: normal;
  }
}

/* ---------- Formulários ---------- */
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.label {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-2);
}
.hint {
  color: var(--muted);
  font-size: 0.79rem;
}
input,
select,
textarea {
  width: 100%;
  min-height: 42px;
  padding: 9px 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 16px; /* evita zoom no iPhone */
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
}
@media (min-width: 700px) {
  input,
  select,
  textarea {
    font-size: 0.93rem;
  }
}
input::placeholder,
textarea::placeholder {
  color: var(--muted);
}
input:hover,
select:hover,
textarea:hover {
  border-color: color-mix(in srgb, var(--accent) 30%, var(--line-strong));
}
input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
input[readonly] {
  background: var(--softer);
}
input[type='checkbox'] {
  width: auto;
  min-height: 0;
  accent-color: var(--accent);
}
select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 34px;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position:
    calc(100% - 17px) 50%,
    calc(100% - 12px) 50%;
  background-size:
    5px 5px,
    5px 5px;
  background-repeat: no-repeat;
}
optgroup {
  font-weight: 600;
}
form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.copy-row {
  display: flex;
  gap: 8px;
}
.copy-row input {
  flex: 1;
  min-width: 0;
  font-size: 0.84rem;
}

/* Interruptor (gravar no Shopify) */
.switch {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--softer);
  transition: border-color 0.15s;
}
.switch:hover {
  border-color: var(--line-strong);
}
.switch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.switch .track {
  position: relative;
  flex: none;
  width: 42px;
  height: 24px;
  border-radius: 99px;
  background: var(--line-strong);
  transition: background 0.2s var(--ease);
}
.switch .track::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgb(0 0 0 / 20%);
  transition: transform 0.2s var(--ease);
}
.switch input:checked + .track {
  background: var(--mid);
}
.switch input:checked + .track::after {
  transform: translateX(18px);
}
.switch input:focus-visible + .track {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.switch strong {
  font-weight: 550;
}
.switch.disabled {
  cursor: not-allowed;
  opacity: 0.65;
}

/* Botões segmentados */
.segmented {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 2px;
  padding: 3px;
  border-radius: 11px;
  background: var(--soft);
}
.segmented button {
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.84rem;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition:
    background 0.15s,
    color 0.15s;
}
.segmented button:hover {
  color: var(--text);
}
.segmented button.active {
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow);
}
.toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

/* ---------- Mensagens ---------- */
.flash {
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  animation: rise 0.25s var(--ease) both;
}
.flash.error {
  background: var(--low-soft);
  color: var(--low);
}
.flash.ok {
  background: var(--good-soft);
  color: var(--good);
}
.banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 0.92rem;
}
.banner strong {
  font-weight: 550;
}
.banner.info {
  background: var(--info-soft);
  color: var(--info);
}
.banner.good {
  background: var(--good-soft);
  color: var(--good);
}
.banner.bad {
  background: var(--low-soft);
  color: var(--low);
}
.banner a {
  font-weight: 550;
  margin-left: auto;
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.banner small {
  opacity: 0.85;
  width: 100%;
}
@media (min-width: 700px) {
  .banner small {
    width: auto;
    margin-left: auto;
  }
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  flex: none;
  animation: pulse 1.4s ease-in-out infinite;
}
@keyframes pulse {
  50% {
    opacity: 0.25;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* ---------- Selos ---------- */
.pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 9px;
  border-radius: 99px;
  font-size: 0.74rem;
  font-weight: 500;
  white-space: nowrap;
  background: var(--soft);
  color: var(--muted);
  width: fit-content;
  line-height: 1.6;
}
.pill.good {
  background: var(--good-soft);
  color: var(--good);
}
.pill.mid {
  background: var(--mid-soft);
  color: var(--mid);
}
.pill.low {
  background: var(--low-soft);
  color: var(--low);
}
.pill.info {
  background: var(--info-soft);
  color: var(--info);
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.chip-check {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 99px;
  cursor: pointer;
  font-size: 0.86rem;
  transition:
    background 0.15s,
    border-color 0.15s;
}
.chip-check:has(input:checked) {
  background: var(--accent-soft);
  border-color: transparent;
  color: var(--accent);
}

/* ---------- Progresso ---------- */
.bar {
  height: 6px;
  border-radius: 99px;
  background: var(--soft);
  overflow: hidden;
  min-width: 40px;
}
.bar .fill {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  transition: width 0.6s var(--ease);
}
.fill.good {
  background: var(--good);
}
.fill.mid {
  background: var(--mid);
}
.fill.low {
  background: var(--low);
}
.ring {
  --p: 0;
  --c: var(--accent);
  position: relative;
  flex: none;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  display: grid;
  place-content: center;
  text-align: center;
  background: conic-gradient(var(--c) calc(var(--p) * 1%), var(--soft) 0);
}
.ring::before {
  content: '';
  position: absolute;
  inset: 7px;
  border-radius: 50%;
  background: var(--surface);
}
.ring > * {
  position: relative;
}
.ring strong {
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.ring small {
  font-size: 0.7rem;
  color: var(--muted);
}
.ring.good {
  --c: var(--good);
}
.ring.mid {
  --c: var(--mid);
}
.ring.low {
  --c: var(--low);
}

/* ---------- Lojas ---------- */
.store-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 310px), 1fr));
}
.store-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  transition:
    border-color 0.2s,
    transform 0.2s var(--ease),
    box-shadow 0.2s;
}
.store-card:hover {
  color: var(--text);
  border-color: color-mix(in srgb, var(--accent) 35%, var(--line));
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}
.store-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}
.store-card-head > div {
  min-width: 0;
}
.store-card-head h3 {
  font-size: 1.02rem;
}
.store-card-head .mono {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-top: 2px;
}
.store-card-body {
  display: flex;
  align-items: center;
  gap: 18px;
}
.facts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
  color: var(--muted);
  font-size: 0.88rem;
}
.facts strong {
  color: var(--text);
  font-weight: 600;
}
.running {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--info);
  font-size: 0.86rem;
  font-weight: 500;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.step-title {
  margin: 4px 0 10px;
  font-size: 0.95rem;
}
.steps {
  margin: 0 0 14px;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  color: var(--text-2);
}
.steps li::marker {
  color: var(--accent);
  font-weight: 600;
}
.two-col .field {
  margin-bottom: 10px;
}

/* ---------- Abas da loja ---------- */
.tabs {
  display: flex;
  gap: 2px;
  margin-top: 18px;
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar {
  display: none;
}
.tabs a {
  padding: 10px 14px;
  color: var(--muted);
  font-weight: 500;
  font-size: 0.93rem;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  white-space: nowrap;
  transition:
    color 0.15s,
    border-color 0.15s;
}
.tabs a:hover {
  color: var(--text);
}
.tabs a.active {
  color: var(--text);
  border-bottom-color: var(--accent);
}
.tab-body {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* ---------- Painel: KPIs ---------- */
.kpis {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.kpi {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  min-width: 0;
}
.kpi:has(.ring) {
  align-items: center;
  justify-content: center;
  grid-row: span 2;
}
.kpi-label {
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 500;
}
.kpi-value {
  font-size: 1.45rem;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.02em;
}
.kpi small {
  font-size: 0.77rem;
}
@media (min-width: 700px) {
  .kpis {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (min-width: 1100px) {
  .kpis {
    grid-template-columns: auto repeat(4, minmax(0, 1fr));
  }
  .kpi:has(.ring) {
    grid-row: auto;
  }
}

/* Painel: idiomas */
.lang-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr));
}
.lang-card {
  display: flex;
  flex-direction: column;
  gap: 7px;
  text-align: left;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--text);
  font: inherit;
  cursor: pointer;
  transition:
    border-color 0.15s,
    box-shadow 0.15s,
    transform 0.15s var(--ease);
}
.lang-card:hover {
  border-color: color-mix(in srgb, var(--accent) 35%, var(--line));
  transform: translateY(-1px);
}
.lang-card.selected {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.lang-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.lang-top strong {
  font-weight: 550;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.code {
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 0.72rem;
  padding: 1px 6px;
  border-radius: 6px;
  background: var(--soft);
  color: var(--muted);
}
.lang-pct {
  font-size: 1.4rem;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.lang-pct.good,
.cat-pct.good {
  color: var(--good);
}
.lang-pct.mid,
.cat-pct.mid {
  color: var(--mid);
}
.lang-pct.low,
.cat-pct.low {
  color: var(--low);
}

/* Painel: categorias do idioma */
.cat-list {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.cat + .cat {
  border-top: 1px solid var(--line);
}
.cat > summary {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas:
    'name pct'
    'bar bar'
    'miss miss';
  gap: 6px 12px;
  align-items: center;
  padding: 13px 16px;
  cursor: pointer;
  list-style: none;
  transition: background 0.15s;
}
.cat > summary::-webkit-details-marker {
  display: none;
}
.cat > summary:hover,
.cat[open] > summary {
  background: var(--softer);
}
.cat-name {
  grid-area: name;
  font-weight: 500;
}
.cat-name::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  margin: 0 10px 2px 2px;
  border-right: 1.6px solid var(--muted);
  border-bottom: 1.6px solid var(--muted);
  transform: rotate(-45deg);
  transition: transform 0.2s var(--ease);
}
.cat[open] .cat-name::before {
  transform: rotate(45deg);
}
.cat > summary .bar {
  grid-area: bar;
}
.cat-pct {
  grid-area: pct;
  font-weight: 600;
}
.cat-missing {
  grid-area: miss;
  font-size: 0.84rem;
}
@media (min-width: 700px) {
  .cat > summary {
    grid-template-columns: minmax(170px, 1.2fr) 2fr 56px 120px;
    grid-template-areas: 'name bar pct miss';
  }
  .cat-pct,
  .cat-missing {
    text-align: right;
  }
}
.cat > .mini {
  margin: 0 16px 14px;
  width: calc(100% - 32px);
}

/* Tabela pequena (vira cartões no celular) */
.mini {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.87rem;
}
.mini th {
  text-align: left;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  font-weight: 500;
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
}
.mini td {
  padding: 9px 10px;
  border-bottom: 1px solid var(--line);
  color: var(--text-2);
}
.mini tr:last-child td {
  border-bottom: 0;
}
.mini td:first-child {
  color: var(--text);
}
.mini td:not(:first-child),
.mini th:not(:first-child) {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
@media (max-width: 640px) {
  .mini thead {
    display: none;
  }
  .mini,
  .mini tbody,
  .mini tr,
  .mini td {
    display: block;
    width: 100%;
  }
  .cat > .mini {
    width: calc(100% - 32px);
  }
  .mini tr {
    padding: 8px 0;
    border-bottom: 1px solid var(--line);
  }
  .mini tr:last-child {
    border-bottom: 0;
  }
  .mini td {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 3px 0;
    border: 0;
  }
  .mini td:first-child {
    font-weight: 500;
  }
  .mini td:not(:first-child)::before {
    content: attr(data-label);
    color: var(--muted);
  }
}

/* ---------- Traduzir ---------- */
.stat-row {
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 110px), 1fr));
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 14px;
  background: var(--surface);
}
.stat small {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 500;
}
.stat strong {
  font-size: 1.1rem;
  font-weight: 600;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}
.quick-result {
  border-top: 1px solid var(--line);
  padding-top: 14px;
}
.results {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.result {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.result-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
}
.result-head code {
  color: var(--muted);
  word-break: break-all;
}
.result-cols {
  display: grid;
  gap: 10px;
}
.result-cols > div {
  min-width: 0;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: var(--softer);
}
.result-cols > div:last-child {
  background: var(--accent-soft);
}
.result-cols p {
  margin: 4px 0 0;
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 0.9rem;
}
@media (min-width: 760px) {
  .result-cols {
    grid-template-columns: 1fr 1fr;
  }
}

/* ---------- Tarefas ---------- */
.job-list {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.job {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 16px;
  padding: 16px 18px;
  text-align: left;
  font: inherit;
  color: var(--text);
  background: transparent;
  border: 0;
  cursor: default;
  transition: background 0.15s;
}
.job + .job {
  border-top: 1px solid var(--line);
}
.job.clickable {
  cursor: pointer;
}
.job.clickable:hover {
  background: var(--softer);
}
.job-main {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  flex: 1 1 260px;
}
.job-main strong {
  font-weight: 550;
  display: flex;
  align-items: center;
  gap: 8px;
}
.job-main small {
  word-break: break-word;
}
.job-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 5px;
  font-size: 0.84rem;
}
@media (max-width: 520px) {
  .job-side {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    width: 100%;
  }
}

/* ---------- Configurações ---------- */
.dl {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2px 16px;
  margin: 0;
}
.dl dt {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 500;
  margin-top: 10px;
}
.dl dd {
  margin: 0;
  word-break: break-word;
}
@media (min-width: 640px) {
  .dl {
    grid-template-columns: 170px 1fr;
    gap: 12px 16px;
  }
  .dl dt {
    margin-top: 0;
  }
}

/* ---------- Janela de confirmação ---------- */
.overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgb(10 14 20 / 45%);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  animation: fade 0.18s ease both;
}
@keyframes fade {
  from {
    opacity: 0;
  }
}
.dialog {
  width: min(100%, 460px);
  background: var(--surface);
  border-radius: 18px;
  padding: 24px;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  gap: 14px;
  animation: rise 0.22s var(--ease) both;
}
.dialog h3 {
  font-size: 1.08rem;
}
.dialog-body p {
  margin: 0 0 6px;
  color: var(--text-2);
}
.dialog-body ul {
  margin: 6px 0 0;
  padding-left: 18px;
  color: var(--text-2);
  font-size: 0.9rem;
}

/* ---------- Minha IA ---------- */
.provider-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
}
.provider {
  display: flex;
  flex-direction: column;
  gap: 5px;
  align-items: flex-start;
  text-align: left;
  padding: 16px 18px;
  font: inherit;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
}
.provider strong {
  font-weight: 550;
}
.provider:hover {
  border-color: color-mix(in srgb, var(--accent) 35%, var(--line));
}
.provider.selected {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

/* ---------- Usuários ---------- */
.user-list {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.user-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
}
.user-card + .user-card {
  border-top: 1px solid var(--line);
}
.user-card.column {
  flex-direction: column;
  align-items: stretch;
}
.user-card .grow strong {
  font-weight: 550;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ---------- Login ---------- */
.auth {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px 16px;
  background:
    radial-gradient(60rem 30rem at 10% -10%, var(--accent-soft), transparent 60%),
    radial-gradient(40rem 24rem at 110% 110%, var(--info-soft), transparent 60%), var(--bg);
}
.auth-card {
  width: min(100%, 400px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 32px 26px;
  box-shadow: var(--shadow-lg);
  animation: rise 0.35s var(--ease) both;
}
.auth-card h1 {
  font-size: 1.3rem;
}
.auth-card form {
  margin-top: 20px;
}

/* =====================================================================
   Editor de conteúdo (original × tradução)
   ===================================================================== */
.ed-top {
  display: grid;
  gap: 12px;
  align-items: end;
}
@media (min-width: 760px) {
  .ed-top {
    grid-template-columns: minmax(200px, 260px) minmax(220px, 320px) 1fr;
  }
}
.ed-top-stat {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding-bottom: 6px;
}
.ed {
  display: grid;
  gap: 18px;
  align-items: start;
}
@media (min-width: 900px) {
  .ed {
    grid-template-columns: 300px minmax(0, 1fr);
  }
  .ed-side {
    position: sticky;
    top: 16px;
    max-height: calc(100vh - 32px);
  }
  .ed-back {
    display: none;
  }
}
@media (max-width: 899px) {
  .ed.has-item .ed-side {
    display: none;
  }
  .ed:not(.has-item) .ed-main {
    display: none;
  }
}
.ed-side {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.ed-side-head {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
  border-bottom: 1px solid var(--line);
}
.ed-side-head .segmented {
  display: flex;
}
.ed-side-head .segmented button {
  flex: 1;
}
.ed-items {
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  min-height: 120px;
}
.ed-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 14px;
  border: 0;
  border-left: 3px solid transparent;
  background: transparent;
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background 0.12s;
}
.ed-item + .ed-item {
  border-top: 1px solid var(--line);
}
.ed-item:hover {
  background: var(--softer);
}
.ed-item.selected {
  background: var(--accent-soft);
  border-left-color: var(--accent);
}
.ed-thumb {
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 9px;
  object-fit: cover;
  background: var(--soft);
  color: var(--muted);
  display: inline-grid;
  place-items: center;
  font-weight: 600;
  font-size: 0.82rem;
}
.ed-item-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.ed-item-text strong {
  font-size: 0.87rem;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.ed-item-text .row {
  gap: 4px;
}
.ed-pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  border-top: 1px solid var(--line);
  font-size: 0.8rem;
}
.ed-main {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}
.ed-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
}
.ed-head h2 {
  font-size: 1.18rem;
  word-break: break-word;
}

/* Barra de busca/filtros dos campos (fica fixa ao rolar) */
.ed-tools {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  position: sticky;
  top: 0;
  z-index: 5;
}
@media (max-width: 899px) {
  .ed-tools {
    top: 57px;
  }
}
.ed-tools-row {
  display: grid;
  gap: 8px;
}
@media (min-width: 700px) {
  .ed-tools-row:has(select) {
    grid-template-columns: 1fr 240px;
  }
}
.ed-tools .segmented {
  align-self: flex-start;
}
.ed-fpager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}
.ed-tools .ed-fpager {
  justify-content: space-between;
}

/* Campos: um único bloco com divisórias (menos "caixas dentro de caixas") */
.ed-fields {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.ed-fields > .empty {
  border: 0;
}
.ed-field {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}
@media (min-width: 700px) {
  .ed-field {
    padding: 18px 20px;
  }
}
.ed-field + .ed-field {
  border-top: 1px solid var(--line);
}
.ed-field-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}
.ed-field-head > div {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.ed-field-head strong {
  font-weight: 550;
  font-size: 0.93rem;
}
.ed-field-head code {
  font-size: 0.7rem;
  word-break: break-all;
  margin-top: 1px;
}
.ed-cols {
  display: grid;
  gap: 10px;
}
@media (min-width: 1100px) {
  .ed-cols {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }
}
.ed-col {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}
.ed-col-label {
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.ed-src {
  background: var(--softer);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  min-height: 42px;
  max-height: 640px;
  overflow: auto;
  color: var(--text-2);
}
.ed-dst textarea {
  min-height: 42px;
  resize: vertical;
  line-height: 1.55;
}
.ed-dst textarea.mono {
  font-size: 13px;
}
.ed-dst > .ed-preview {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  max-height: 640px;
  overflow: auto;
}
.ed-text {
  white-space: pre-wrap;
  word-break: break-word;
}
.ed-code {
  white-space: pre-wrap;
  word-break: break-word;
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 0.79rem;
}
.ed-preview {
  font-size: 0.92rem;
  word-break: break-word;
}
.ed-preview img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}
.ed-preview p {
  margin: 0 0 0.6em;
}
.ed-preview h1,
.ed-preview h2,
.ed-preview h3,
.ed-preview h4 {
  margin: 0.4em 0;
}
.ed-preview table {
  border-collapse: collapse;
}
.ed-preview td,
.ed-preview th {
  border: 1px solid var(--line);
  padding: 4px 8px;
}
.ed-field-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  min-height: 30px;
}
.ed-note,
.ed-count {
  font-size: 0.79rem;
  color: var(--muted);
}
.ed-note.bad-text,
.ed-count.bad-text {
  color: var(--low);
}

/* Título de seção dentro do item (Produto, Opção: Cor, Metafields) */
.ed-group {
  padding: 10px 20px;
  background: var(--softer);
  font-size: 0.74rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-2);
  border-top: 1px solid var(--line);
}
.ed-group:first-child {
  border-top: 0;
}
.ed-group + .ed-field {
  border-top: 1px solid var(--line);
}

/* ---------- Minha IA ---------- */
.ai-hero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px 28px;
  padding: 22px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background:
    radial-gradient(40rem 12rem at 0% 0%, var(--accent-soft), transparent 70%), var(--surface);
}
.ai-hero h2 {
  font-size: 1.25rem;
  margin: 2px 0 6px;
}
.ai-hero-main {
  display: flex;
  align-items: center;
  gap: 16px;
}
.ai-badge {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  color: #fff;
  font-weight: 700;
  font-size: 1.2rem;
  flex: none;
  background: linear-gradient(140deg, #4d6bfe, #6f8bff);
}
.ai-badge.anthropic {
  background: linear-gradient(140deg, #d97757, #e8a07f);
}
.ai-badge.small {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  font-size: 0.85rem;
}
.ai-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
}
.ai-stat {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 130px;
}
.ai-stat small {
  font-size: 0.76rem;
  color: var(--muted);
}
.ai-stat strong {
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.ai-stat a {
  font-size: 0.84rem;
}
.lvl-good {
  color: var(--good);
}
.lvl-mid {
  color: var(--mid);
}
.lvl-low {
  color: var(--low);
}
.provider-top {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
}
.provider-top .pill {
  margin-left: auto;
}
.provider-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  margin-top: 6px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  color: var(--text-2);
}
.choice-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.choice {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  cursor: pointer;
  transition:
    border-color 0.15s,
    background 0.15s;
}
.choice:hover {
  border-color: color-mix(in srgb, var(--accent) 35%, var(--line-strong));
}
.choice.selected {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.choice input {
  width: auto;
  min-height: 0;
  accent-color: var(--accent);
}
.choice strong {
  font-weight: 550;
  font-size: 0.92rem;
}
.choice-price {
  text-align: right;
  font-size: 0.82rem;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.help-card .steps {
  margin-top: 4px;
}

/* Botões dentro de cartões/formulários não esticam (exceto .block e no celular) */
.card > .btn:not(.block),
form > .btn:not(.block),
.card > form > .btn:not(.block) {
  align-self: flex-start;
}
@media (max-width: 520px) {
  .card > .btn:not(.block),
  form > .btn:not(.block) {
    align-self: stretch;
  }
}
.block-hint {
  display: block;
  margin-top: 2px;
}
details.tech {
  margin-top: 8px;
}
details.tech .chips {
  margin: 8px 0 6px;
}

/* Passo a passo curto (Traduzir) */
.how {
  list-style: none;
  counter-reset: how;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
@media (min-width: 760px) {
  .how {
    grid-template-columns: repeat(3, 1fr);
  }
}
.how li {
  counter-increment: how;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 14px 12px 46px;
  position: relative;
  background: var(--softer);
  border-radius: 12px;
  font-size: 0.86rem;
  color: var(--text-2);
}
.how li::before {
  content: counter(how);
  position: absolute;
  left: 14px;
  top: 12px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 600;
  font-size: 0.78rem;
}
.how li strong {
  color: var(--text);
  font-weight: 550;
}

/* ---------- Pessoas ---------- */
.role-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
}
.role-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
}
.role-card small {
  font-size: 0.82rem;
  line-height: 1.45;
}
.people {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.person {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px 18px;
}
.person + .person {
  border-top: 1px solid var(--line);
}
.person-main {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}
.person-main .grow {
  gap: 2px;
}
.person-main strong {
  font-weight: 550;
  overflow: hidden;
  text-overflow: ellipsis;
}
.person-tags {
  gap: 6px;
  margin-top: 4px;
}
.person-actions {
  gap: 6px;
}
.person-stores {
  padding-left: 44px;
}
@media (max-width: 600px) {
  .person-actions {
    width: 100%;
  }
  .person-stores {
    padding-left: 0;
  }
}
.person-edit {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 14px;
  margin-left: 44px;
  border-radius: 12px;
  background: var(--softer);
  border: 1px solid var(--line);
}
@media (max-width: 600px) {
  .person-edit {
    margin-left: 0;
  }
}
.store-pick {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}
.invite-done {
  border-color: color-mix(in srgb, var(--good) 35%, var(--line));
  background: color-mix(in srgb, var(--good-soft) 35%, var(--surface));
}
.btn.danger-text {
  color: var(--low);
}
.btn.danger-text:hover {
  background: var(--low-soft);
  color: var(--low);
}
