:root {
  --bg: #f4f5f7;
  --surface: #ffffff;
  --surface-strong: #f6f1e7;
  --text: #17130f;
  --muted: #6a645c;
  --line: #e3e4e8;
  --primary: #d2a33b;
  --primary-strong: #b9861b;
  --accent: #8f6a1e;
  --warning: #b88917;
  --danger: #b24e45;
  --info: #2f7a71;
  --shadow: 0 18px 40px rgba(23, 19, 15, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.app-shell {
  min-height: 100vh;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(210, 163, 59, 0.18);
  background: rgba(12, 10, 8, 0.96);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.topbar-brand {
  width: min(100%, 1240px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.topbar-title,
h1,
h2,
h3,
p {
  margin: 0;
}

.topbar-title {
  font-size: clamp(1.05rem, 1.6vw, 1.35rem);
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: 0;
  color: #fffaf0;
}

.brand-lockup {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 0.9rem;
  min-width: 0;
  text-decoration: none;
}

.brand-lockup__logo {
  width: 3.2rem;
  height: 3.2rem;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.24);
}

.brand-lockup__copy {
  display: grid;
  gap: 0.15rem;
  min-width: 0;
}

.brand-lockup__eyebrow {
  color: #d2a33b;
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.topbar-nav {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.topbar-nav__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.35rem;
  padding: 0.55rem 0.9rem;
  border: 1px solid rgba(210, 163, 59, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: #ddd2bf;
  text-decoration: none;
  font-weight: 700;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.topbar-nav__link:hover {
  color: #fff;
  border-color: rgba(210, 163, 59, 0.34);
}

.topbar-nav__link--active {
  color: #fff;
  border-color: rgba(210, 163, 59, 0.44);
  background: rgba(210, 163, 59, 0.14);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.18);
}

.eyebrow,
.muted,
.table-secondary,
.summary-item span {
  color: var(--muted);
}

.eyebrow {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
}

.page-content {
  max-width: 1240px;
  margin: 0 auto;
  padding: 1.5rem;
}

.panel-stack,
.form-stack {
  display: grid;
  gap: 1rem;
}

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

.panel {
  padding: 1.2rem;
}

.panel-actions {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 0.9rem;
}

.panel--hero {
  background: linear-gradient(135deg, #ffffff 0%, #fcf9f2 54%, #fffefb 100%);
}

.stats-grid,
.summary-grid,
.field-grid {
  display: grid;
  gap: 0.8rem;
}

.form-section-grid {
  display: grid;
  gap: 1rem;
}

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

.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.85rem;
}

.panel-heading__title {
  font-size: 1.05rem;
  line-height: 1.2;
  font-weight: 800;
}

.panel-heading__meta {
  margin-top: 0.25rem;
  font-size: 0.92rem;
  color: var(--muted);
}

.module-brand {
  display: inline-grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.7rem;
}

.module-brand__logo {
  width: 2.5rem;
  height: 2.5rem;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 12px 24px rgba(23, 19, 15, 0.12);
}

.module-brand__label {
  color: #8e6a22;
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.stat-card,
.summary-item {
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
}

.field-group-card {
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff 0%, #f9fbf8 100%);
}

.stat-card__label {
  display: block;
  color: var(--muted);
  font-size: 0.92rem;
  margin-bottom: 0.35rem;
}

.stat-card__value {
  font-size: 1.85rem;
  line-height: 1;
  font-weight: 800;
}

.stat-card--interactive {
  text-decoration: none;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.stat-card--interactive:hover {
  transform: translateY(-1px);
  border-color: #b8d4c3;
}

.stat-card--active {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(31, 143, 95, 0.12), 0 14px 28px rgba(25, 33, 26, 0.08);
  background: linear-gradient(180deg, #f6fbf7 0%, #ffffff 100%);
}

.stat-card--attention {
  background: linear-gradient(180deg, #fff5f2 0%, #ffffff 100%);
}

.searchbar {
  display: flex;
  gap: 0.8rem;
  align-items: end;
}

.field {
  display: grid;
  gap: 0.45rem;
  width: 100%;
}

.field__label {
  font-size: 0.92rem;
  font-weight: 700;
}

.field__input {
  width: 100%;
  min-height: 2.9rem;
  padding: 0.8rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
  background: #fff;
  color: var(--text);
}

.field__input:focus {
  outline: 2px solid rgba(210, 163, 59, 0.18);
  border-color: var(--primary);
}

.field__input--textarea {
  min-height: 11rem;
  resize: vertical;
}

.field__input--file {
  min-height: auto;
  padding: 0.75rem;
  background: #f9fbf9;
}

.field__input--compact {
  min-height: 7rem;
}

.panel--form {
  background: linear-gradient(180deg, #ffffff 0%, #f7faf7 100%);
}

.field__error {
  font-size: 0.9rem;
  color: var(--danger);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 2.9rem;
  padding: 0.8rem 1rem;
  border: 1px solid transparent;
  border-radius: 8px;
  background: linear-gradient(135deg, #e2bc63 0%, #c99628 100%);
  color: #1d1508;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.button:hover {
  background: linear-gradient(135deg, #e6c875 0%, #b98517 100%);
}

.button--ghost {
  background: #fff;
  color: var(--text);
  border-color: var(--line);
}

.button--ghost:hover {
  background: var(--surface-strong);
}

.button--subtle {
  background: #fbf6ec;
  color: #7f5b1e;
  border-color: #ebdcc0;
}

.button--whatsapp {
  background: #25d366;
  color: #fff;
}

.button--whatsapp:hover {
  background: #1ebe5a;
}

.button--suno {
  background: linear-gradient(135deg, #20252b 0%, #101317 100%);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 24px rgba(16, 19, 23, 0.18);
}

.button--suno:hover {
  background: linear-gradient(135deg, #2a3139 0%, #14181d 100%);
}

.button--adjust {
  background: #f5f7f5;
  color: #556359;
  border-color: #d7ded8;
  box-shadow: 0 6px 14px rgba(25, 33, 26, 0.06);
}

.button--adjust:hover {
  background: #eef2ee;
  color: #445147;
  border-color: #cbd5cd;
}

.button--story {
  background: linear-gradient(135deg, #f2e3bd 0%, #e6cc8a 100%);
  color: #6a4a0f;
  border-color: #e5d19f;
  box-shadow: 0 8px 18px rgba(210, 163, 59, 0.12);
}

.button--story:hover {
  background: linear-gradient(135deg, #f5e8c6 0%, #e0c276 100%);
}

.button--copy {
  background: #fffdfa;
  color: #6c655b;
  border-color: #e6dfd2;
}

.button--copy:hover {
  background: #f9f4ea;
  color: #4f483f;
  border-color: #d8ccb6;
}

.button--video-module {
  background: linear-gradient(135deg, #184f7a 0%, #123e61 100%);
  color: #fff;
  box-shadow: 0 10px 24px rgba(18, 62, 97, 0.18);
}

.button--video-module:hover {
  background: linear-gradient(135deg, #1b5b8a 0%, #15476f 100%);
}

.button--asset {
  justify-content: center;
  text-align: center;
}

.button--icon-only {
  min-width: 2.7rem;
  width: 2.7rem;
  min-height: 2.7rem;
  padding: 0;
  flex: 0 0 auto;
}

.button__glyph {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.08rem;
  line-height: 1;
}

.button__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.1rem;
  height: 1.1rem;
  flex: 0 0 auto;
}

.button__icon svg {
  width: 100%;
  height: 100%;
}

.button--wide {
  width: 100%;
}

.button--small {
  min-height: 2.4rem;
  padding: 0.55rem 0.8rem;
  font-size: 0.92rem;
}

.table-wrap {
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 0.8rem;
}

.data-table th,
.data-table td {
  text-align: left;
  padding: 1rem 0.95rem;
  vertical-align: top;
}

.data-table th {
  font-size: 0.84rem;
  color: var(--muted);
  font-weight: 700;
  padding-top: 0.2rem;
  padding-bottom: 0.2rem;
}

.data-table tbody td {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.data-table tbody td:first-child {
  border-left: 1px solid var(--line);
  border-radius: 8px 0 0 8px;
}

.data-table tbody td:last-child {
  border-right: 1px solid var(--line);
  border-radius: 0 8px 8px 0;
}

.table-row--received td:first-child {
  box-shadow: inset 4px 0 0 #f2c861;
}

.table-row--generated td:first-child {
  box-shadow: inset 4px 0 0 #71c7c1;
}

.table-row--completed td:first-child {
  box-shadow: inset 4px 0 0 #8ed0a7;
}

.table-row--adjustment-ready td:first-child {
  box-shadow: inset 4px 0 0 #9a84e8;
}

.table-row--sent td:first-child {
  box-shadow: inset 4px 0 0 #4c8b78;
}

.table-row--processing td:first-child {
  box-shadow: inset 4px 0 0 #7fb2de;
}

.table-row--danger td:first-child {
  box-shadow: inset 4px 0 0 #e39a93;
}

.table-primary {
  font-weight: 700;
}

.table-secondary {
  margin-top: 0.28rem;
  font-size: 0.92rem;
}

.pedido-card__identity {
  display: grid;
  gap: 0.18rem;
  padding-left: 0.35rem;
}

.pedido-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.85rem;
}

.pedido-card__utility {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-left: auto;
}

.utility-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.9rem;
  height: 1.9rem;
  flex: 0 0 auto;
  border-radius: 8px;
  border: 1px solid #d9e1d7;
  background: #fbfcfb;
  color: #6b7368;
  text-decoration: none;
  box-shadow: 0 6px 16px rgba(25, 33, 26, 0.04);
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.utility-icon:hover {
  transform: translateY(-1px);
  border-color: #b8c9bc;
  background: #ffffff;
  color: #2b332d;
}

.utility-icon--active {
  border-color: #b9d4c1;
  background: #eef7f1;
  color: #256347;
}

.utility-icon__glyph {
  font-size: 0.82rem;
  line-height: 1;
}

.ready-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  flex: 0 0 auto;
  border-radius: 8px;
  border: 1px solid #d9e1d7;
  background: #fbfcfb;
  color: transparent;
  box-shadow: 0 6px 16px rgba(25, 33, 26, 0.05);
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.ready-toggle:hover {
  transform: translateY(-1px);
  border-color: #b8c9bc;
  background: #ffffff;
}

.ready-toggle--active {
  border-color: #d8c18a;
  background: #fbf6e8;
  color: #936915;
  box-shadow: 0 8px 18px rgba(210, 163, 59, 0.18);
}

.ready-toggle__icon {
  font-size: 0.95rem;
  line-height: 1;
  font-weight: 800;
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.ready-toggle--active .ready-toggle__icon {
  opacity: 1;
  transform: scale(1);
}

.pedido-mobile-meta {
  display: none;
}

.pedido-desktop-meta {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.status-badge--desktop {
  display: inline-flex;
}

.status-badge.status-badge--mobile {
  display: none;
}

.order-pill {
  display: inline-flex;
  align-items: center;
  min-height: 2.15rem;
  padding: 0.4rem 0.7rem;
  border-radius: 8px;
  background: #f3f6f2;
  border: 1px solid #dfe7dc;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.25;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 700;
  border: 1px solid transparent;
}

.status-badge--received {
  background: #fff6d8;
  color: #8c6500;
  border-color: #f0d17a;
}

.status-badge--generated {
  background: #e8f7f5;
  color: #0f6f6b;
  border-color: #9ed8d3;
}

.status-badge--completed {
  background: #eaf7ef;
  color: #176946;
  border-color: #b7dcc6;
}

.status-badge--adjustment-ready {
  background: #f1ecff;
  color: #5c43b6;
  border-color: #cdbdf4;
}

.status-badge--sent {
  background: #edf4f1;
  color: #2f5f51;
  border-color: #bdd2ca;
}

.status-badge--processing {
  background: #ebf4fd;
  color: #2f618f;
  border-color: #bdd6ee;
}

.status-badge--danger {
  background: #fdeceb;
  color: #953f38;
  border-color: #efc3bf;
}

.status-badge--neutral {
  background: #f2f4f1;
  color: #4c574d;
  border-color: #d9dfd8;
}

.action-stack {
  display: grid;
  gap: 0.55rem;
  align-content: start;
}

.action-stack--icons {
  display: inline-grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(2.7rem, auto);
  align-items: center;
  gap: 0.5rem;
  justify-content: start;
}

.action-stack--story {
  width: min(100%, 10rem);
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-flow: unset;
  grid-auto-columns: unset;
  gap: 0.55rem;
}

.action-stack--story .button {
  width: 100%;
  min-width: 0;
  box-shadow: none;
}

.cell--action-empty {
  color: transparent;
}

.notice {
  padding: 0.95rem 1rem;
  border-radius: 8px;
  border: 1px solid var(--line);
}

.notice--success {
  background: #fbf7eb;
  border-color: #ead9ac;
}

.notice--error {
  background: #fdeceb;
  border-color: #efc3bf;
}

.phone-dialog {
  width: min(25rem, calc(100vw - 2rem));
  padding: 0;
  border: none;
  border-radius: 8px;
  background: transparent;
}

.phone-dialog::backdrop {
  background: rgba(10, 14, 18, 0.42);
}

.phone-dialog__surface {
  display: grid;
  gap: 0.9rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 38px rgba(14, 20, 17, 0.22);
}

.phone-dialog__header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 0.75rem;
}

.phone-dialog__title {
  display: block;
  font-size: 1rem;
}

.phone-dialog__meta,
.phone-dialog__hint {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.phone-dialog__close {
  width: 2rem;
  height: 2rem;
  border: 1px solid #d9e1d7;
  border-radius: 8px;
  background: #fbfcfb;
  color: #59615a;
  font-size: 1.1rem;
  cursor: pointer;
}

.phone-dialog__actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.55rem;
}

.sent-indicator {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--primary-strong);
  background: #ebf7f0;
  border: 1px solid #b8ddc8;
}

.public-shell {
  min-height: calc(100vh - 3rem);
  display: grid;
  place-items: center;
  padding: 1.5rem;
}

.login-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0) 100%),
    linear-gradient(145deg, #080706 0%, #13100b 56%, #24190d 100%);
}

.login-card,
.public-card {
  width: min(100%, 760px);
  padding: 1.4rem;
  display: grid;
  gap: 1rem;
}

.login-card--brand {
  width: min(100%, 980px);
  padding: 0;
  gap: 0;
  grid-template-columns: minmax(0, 0.94fr) minmax(0, 0.82fr);
  overflow: hidden;
  border-color: rgba(210, 163, 59, 0.2);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.32);
}

.login-card__brand-panel {
  display: grid;
  align-content: center;
  gap: 1rem;
  padding: 1.7rem;
  background: linear-gradient(160deg, #0a0806 0%, #151009 54%, #24180b 100%);
  color: #fff9ef;
}

.login-brand__logo {
  width: min(100%, 340px);
  border-radius: 8px;
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.28);
}

.login-brand__copy {
  display: grid;
  gap: 0.55rem;
}

.login-brand__copy .eyebrow {
  color: #d2a33b;
  letter-spacing: 0.08em;
}

.login-brand__copy h2 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  line-height: 1.05;
}

.login-brand__copy .muted {
  color: rgba(255, 249, 239, 0.78);
  line-height: 1.55;
}

.login-card__content {
  display: grid;
  align-content: center;
  gap: 1rem;
  padding: 1.45rem;
}

.public-card__header,
.login-card__intro {
  display: grid;
  gap: 0.45rem;
}

.public-card--brand {
  border-color: rgba(210, 163, 59, 0.18);
  background: linear-gradient(180deg, #ffffff 0%, #fdfbf7 100%);
}

.public-brand-lockup {
  display: inline-grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0.85rem;
  border: 1px solid rgba(210, 163, 59, 0.2);
  border-radius: 8px;
  background: linear-gradient(135deg, #fffdf8 0%, #fbf3df 100%);
}

.public-brand-lockup__logo {
  width: 3.2rem;
  height: 3.2rem;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 12px 24px rgba(23, 19, 15, 0.12);
}

.public-brand-lockup__copy {
  display: grid;
  gap: 0.2rem;
}

.public-brand-lockup__copy strong {
  font-size: 0.96rem;
  line-height: 1.25;
}

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

.field-grid--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.panel--adjust {
  display: grid;
  gap: 1rem;
}

.panel-heading--compact {
  margin-bottom: 0;
}

.adjust-actions {
  display: grid;
  gap: 0.6rem;
}

.adjustment-toolbar {
  margin-top: 1rem;
}

.adjustment-switch {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
  padding: 0.35rem;
  border-radius: 8px;
  background: #f4f7f3;
  border: 1px solid #dce4da;
}

.adjustment-switch__option {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.9rem;
  padding: 0.8rem 0.95rem;
  border-radius: 8px;
  color: var(--muted);
  text-decoration: none;
  font-weight: 700;
  transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.adjustment-switch__option:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.78);
}

.adjustment-switch__option--active {
  background: #ffffff;
  color: var(--text);
  box-shadow: 0 8px 20px rgba(25, 33, 26, 0.08);
}

.adjustment-context-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 1rem;
}

.adjustment-context-card {
  display: grid;
  gap: 0.6rem;
  padding: 1rem;
  border: 1px solid #dce4da;
  border-radius: 8px;
  background: linear-gradient(180deg, #fbfcfb 0%, #ffffff 100%);
}

.adjustment-context-card__eyebrow {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--muted);
  text-transform: uppercase;
}

.adjustment-context-card__title {
  font-size: 1rem;
  line-height: 1.2;
  font-weight: 800;
}

.adjustment-context-card__textarea {
  background: #fff;
}

.style-picker {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.7rem;
}

.style-picker__item {
  position: relative;
}

.style-picker__input {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
}

.style-picker__label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 3rem;
  padding: 0.8rem 0.75rem;
  border-radius: 8px;
  border: 1px solid #d7dfd6;
  background: #fff;
  color: #415046;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.style-picker__label:hover {
  border-color: #b5c8ba;
  color: var(--text);
  transform: translateY(-1px);
}

.style-picker__input:checked + .style-picker__label {
  border-color: rgba(210, 163, 59, 0.4);
  background: linear-gradient(180deg, #fbf7ec 0%, #ffffff 100%);
  color: #8b6419;
  box-shadow: 0 12px 24px rgba(210, 163, 59, 0.14);
}

.toggle-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.85rem;
  align-items: start;
  padding: 0.95rem 1rem;
  border: 1px solid #dce4da;
  border-radius: 8px;
  background: #f9fbf9;
  cursor: pointer;
}

.toggle-card__checkbox {
  width: 1.05rem;
  height: 1.05rem;
  margin-top: 0.15rem;
  accent-color: var(--primary);
}

.toggle-card__text {
  display: grid;
  gap: 0.25rem;
}

.toggle-card__text strong {
  font-size: 0.95rem;
}

.toggle-card__text span {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.video-module-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.video-module-card {
  display: grid;
  gap: 0.9rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff 0%, #f9fbfa 100%);
  box-shadow: 0 14px 28px rgba(25, 33, 26, 0.06);
}

.video-module-card--completed {
  box-shadow: inset 4px 0 0 #8ed0a7, 0 14px 28px rgba(25, 33, 26, 0.06);
}

.video-module-card--adjustment-ready {
  box-shadow: inset 4px 0 0 #9a84e8, 0 14px 28px rgba(25, 33, 26, 0.06);
}

.video-module-card--sent {
  box-shadow: inset 4px 0 0 #4c8b78, 0 14px 28px rgba(25, 33, 26, 0.06);
}

.video-module-card__header,
.video-module-card__footer {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.video-module-card__footer {
  align-items: center;
}

.video-module-card__meta {
  display: grid;
  gap: 0.35rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.video-context-card,
.video-render-card {
  min-height: 100%;
}

.video-upload-stack {
  display: grid;
  gap: 0.9rem;
}

.video-action-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.video-upload-card {
  display: grid;
  gap: 0.85rem;
  padding: 1rem;
  border: 1px solid #dde5db;
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfcfb 100%);
}

.video-upload-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.video-upload-card__status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid #d8e0d6;
  background: #f7faf7;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
  white-space: nowrap;
}

.video-upload-card__status--ready {
  border-color: #a6d2b5;
  background: #edf8f0;
  color: #1c6b42;
}

.video-upload-card__status--pending {
  border-color: #ead9a6;
  background: #fff8e7;
  color: #8c6412;
}

.video-file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.video-file-chip {
  display: flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid #dde5db;
  border-radius: 8px;
  background: #fbfcfb;
  color: var(--muted);
  font-size: 0.92rem;
  overflow-wrap: anywhere;
}

.video-summary-list {
  display: grid;
  gap: 0.75rem;
}

.video-summary-item {
  display: grid;
  gap: 0.2rem;
  padding: 0.8rem 0.85rem;
  border: 1px solid #dde5db;
  border-radius: 8px;
  background: #fbfcfb;
}

.video-summary-item strong {
  font-size: 0.94rem;
}

.video-summary-item span,
.video-render-note span {
  color: var(--muted);
  line-height: 1.45;
}

.video-summary-item__path {
  font-family: "Cascadia Mono", Consolas, "Courier New", monospace;
  font-size: 0.84rem;
  overflow-wrap: anywhere;
}

.video-render-note {
  display: grid;
  gap: 0.25rem;
  padding: 0.95rem 1rem;
  border: 1px solid #dce4da;
  border-radius: 8px;
  background: linear-gradient(180deg, #f8fbfd 0%, #ffffff 100%);
}

@media (max-width: 860px) {
  .summary-grid,
  .field-grid--two {
    grid-template-columns: 1fr;
  }

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

  .panel-heading {
    align-items: start;
    flex-direction: column;
  }

  .searchbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  .video-upload-card__header {
    align-items: start;
    flex-direction: column;
  }

  .video-action-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .topbar {
    padding: 0.95rem 1rem;
  }

  .topbar-brand {
    flex-direction: column;
    align-items: stretch;
    gap: 0.85rem;
  }

  .brand-lockup {
    gap: 0.75rem;
  }

  .brand-lockup__logo {
    width: 2.85rem;
    height: 2.85rem;
  }

  .topbar-nav {
    gap: 0.45rem;
    justify-content: stretch;
  }

  .topbar-nav__link {
    min-height: 2.2rem;
    padding-inline: 0.8rem;
    font-size: 0.92rem;
    flex: 1 1 0;
  }

  .page-content {
    padding: 1rem;
  }

  .panel {
    padding: 1rem;
  }

  .panel-heading__title {
    font-size: 1rem;
  }

  .module-brand {
    margin-bottom: 0.55rem;
  }

  .module-brand__logo {
    width: 2.25rem;
    height: 2.25rem;
  }

  .module-brand__label {
    font-size: 0.7rem;
  }

  .panel-heading__meta {
    font-size: 0.86rem;
  }

  .adjustment-context-grid,
  .style-picker,
  .video-module-grid,
  .login-card--brand {
    grid-template-columns: 1fr;
  }

  .login-card__brand-panel,
  .login-card__content {
    padding: 1.15rem;
  }

  .login-brand__logo {
    width: min(100%, 280px);
  }

  .public-brand-lockup {
    padding: 0.7rem;
  }

  .public-brand-lockup__logo {
    width: 2.8rem;
    height: 2.8rem;
  }

  .adjustment-switch__option {
    min-height: 2.75rem;
    padding-inline: 0.8rem;
  }

  .adjustment-context-card {
    padding: 0.95rem;
  }

  .toggle-card {
    gap: 0.75rem;
    padding: 0.9rem;
  }

  .data-table,
  .data-table thead,
  .data-table tbody,
  .data-table th,
  .data-table td,
  .data-table tr {
    display: block;
  }

  .data-table thead {
    display: none;
  }

  .data-table tr {
    padding: 0.95rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: 0 12px 24px rgba(25, 33, 26, 0.06);
    margin-bottom: 0.85rem;
  }

  .data-table td {
    padding: 0.48rem 0;
    border: none;
    background: transparent;
  }

  .data-table td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 0.25rem;
    font-size: 0.84rem;
    color: var(--muted);
    font-weight: 700;
  }

  .cell--pedido::before {
    margin-bottom: 0.4rem;
  }

  .pedido-mobile-meta {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(9rem, 1.2fr);
    gap: 0.65rem;
    align-items: center;
  }

  .pedido-desktop-meta {
    display: none;
  }

  .pedido-card__identity {
    padding-left: 0.45rem;
  }

  .pedido-card__header {
    align-items: flex-start;
  }

  .pedido-mobile-meta .order-pill {
    min-width: 0;
    font-size: 0.84rem;
    padding: 0.38rem 0.58rem;
  }

  .status-badge.status-badge--mobile {
    display: inline-flex;
    width: 100%;
    justify-content: center;
    text-align: center;
    white-space: normal;
    line-height: 1.15;
    min-height: 2.25rem;
  }

  .status-badge.status-badge--desktop {
    display: none;
  }

  .cell--action-empty {
    display: none;
  }

  .table-row--received {
    box-shadow: inset 4px 0 0 #f2c861, 0 12px 24px rgba(25, 33, 26, 0.06);
  }

  .table-row--generated {
    box-shadow: inset 4px 0 0 #71c7c1, 0 12px 24px rgba(25, 33, 26, 0.06);
  }

  .table-row--completed {
    box-shadow: inset 4px 0 0 #8ed0a7, 0 12px 24px rgba(25, 33, 26, 0.06);
  }

  .table-row--adjustment-ready {
    box-shadow: inset 4px 0 0 #9a84e8, 0 12px 24px rgba(25, 33, 26, 0.06);
  }

  .table-row--sent {
    box-shadow: inset 4px 0 0 #4c8b78, 0 12px 24px rgba(25, 33, 26, 0.06);
  }

  .table-row--processing {
    box-shadow: inset 4px 0 0 #7fb2de, 0 12px 24px rgba(25, 33, 26, 0.06);
  }

  .table-row--danger {
    box-shadow: inset 4px 0 0 #e39a93, 0 12px 24px rgba(25, 33, 26, 0.06);
  }

  .action-stack {
    display: grid;
    grid-template-columns: 1fr;
  }

  .action-stack--icons {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(0, 1fr);
    justify-content: stretch;
    width: 100%;
  }

  .action-stack--story {
    width: 100%;
    gap: 0.6rem;
  }

  .action-stack .button,
  .action-stack .sent-indicator {
    width: 100%;
  }

  .action-stack--icons .button {
    width: 100%;
    min-width: 0;
  }
}

@media (max-width: 520px) {
  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.7rem;
  }

  .pedido-mobile-meta {
    grid-template-columns: minmax(0, 0.72fr) minmax(9.5rem, 1.28fr);
  }

  .stat-card {
    padding: 0.9rem 0.85rem;
  }

  .stat-card__label {
    font-size: 0.82rem;
    line-height: 1.2;
  }

  .stat-card__value {
    font-size: 1.45rem;
  }

  .field__label {
    font-size: 0.88rem;
  }

  .field__input {
    min-height: 2.75rem;
    padding: 0.74rem 0.85rem;
  }

  .button {
    min-height: 2.75rem;
  }

  .button--small {
    min-height: 2.55rem;
  }

  .ready-toggle {
    width: 2.15rem;
    height: 2.15rem;
  }

  .utility-icon {
    width: 2.05rem;
    height: 2.05rem;
  }
}
