:root {
  color-scheme: light;
  --bg: #f4f7f6;
  --surface: #ffffff;
  --surface-2: #eef7f4;
  --ink: #17211f;
  --muted: #63706d;
  --line: #d8e3df;
  --accent: #0f9f8f;
  --accent-strong: #0b766d;
  --orange: #f97316;
  --danger: #b42318;
  --shadow: 0 16px 38px rgba(20, 42, 37, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.login-gate {
  position: fixed;
  inset: 0;
  z-index: 30;
  overflow: auto;
  padding: 28px;
  background: linear-gradient(135deg, #f7fbff 0%, #f4f7f6 48%, #eef7f4 100%);
}

.login-gate.hidden {
  display: none;
}

.auth-shell {
  width: min(1120px, 100%);
  min-height: calc(100vh - 56px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(340px, 0.75fr);
  gap: 28px;
  align-items: center;
}

.auth-info {
  display: grid;
  gap: 24px;
}

.auth-brand .brand-subtitle {
  color: var(--muted);
}

.auth-copy {
  display: grid;
  gap: 14px;
}

.auth-eyebrow {
  width: fit-content;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 10px;
  background: #ffffff;
  color: var(--accent-strong);
  font-size: 13px;
  font-weight: 850;
}

.auth-copy h1 {
  max-width: 760px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.02;
}

.auth-copy p {
  max-width: 700px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
}

.auth-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 12px;
}

.auth-feature-grid article {
  min-height: 126px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 10px 28px rgba(20, 42, 37, 0.06);
}

.auth-feature-grid article span {
  display: block;
  margin-bottom: 10px;
  font-size: 24px;
}

.auth-feature-grid strong {
  display: block;
  margin-bottom: 6px;
}

.auth-feature-grid p,
.auth-steps,
.auth-help,
.login-card p {
  color: var(--muted);
}

.auth-feature-grid p {
  font-size: 13px;
  line-height: 1.45;
}

.auth-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.auth-steps li {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px 0 6px;
  background: #ffffff;
  font-weight: 750;
}

.auth-steps span,
.next-steps span {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--accent);
  color: #ffffff;
  font-size: 13px;
  font-weight: 900;
}

.login-card {
  display: grid;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  background: #ffffff;
  box-shadow: 0 20px 54px rgba(20, 42, 37, 0.12);
}

.login-card h2 {
  font-size: 24px;
}

.auth-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.auth-help {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: #fbfdfc;
  font-size: 13px;
  line-height: 1.4;
}

.login-error {
  min-height: 20px;
  color: var(--danger);
  font-weight: 800;
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.app-shell {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  background: #10201d;
  color: #effffb;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.brand {
  display: flex;
  gap: 12px;
  align-items: center;
}

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: #ffffff;
  font-weight: 800;
}

.brand-title {
  font-weight: 800;
  letter-spacing: 0;
}

.brand-subtitle {
  color: #a9c8c0;
  font-size: 13px;
}

.nav-tabs {
  display: grid;
  gap: 8px;
}

.nav-tab {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: #effffb;
  text-align: left;
  min-height: 44px;
  border-radius: 8px;
  padding: 0 14px;
}

.nav-tab.active {
  background: #ffffff;
  color: #10201d;
}

.status-panel {
  margin-top: auto;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 14px;
  display: grid;
  gap: 10px;
}

.status-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  font-size: 14px;
}

.status-row span {
  color: #a9c8c0;
}

.main {
  min-width: 0;
  padding: 28px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  margin-bottom: 22px;
}

.topbar-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  font-size: 30px;
  line-height: 1.15;
}

h2 {
  font-size: 18px;
}

h3 {
  font-size: 16px;
}

.topbar p,
.muted {
  color: var(--muted);
}

.next-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.next-steps article {
  min-height: 92px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 4px 10px;
  align-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.next-steps span {
  grid-row: 1 / span 2;
}

.next-steps strong {
  align-self: end;
}

.next-steps p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.view {
  display: none;
}

.view.active {
  display: block;
}

.workspace-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.92fr) minmax(320px, 1fr) minmax(360px, 1.15fr);
  gap: 16px;
  align-items: start;
}

.compact-form,
.compact-picker,
.compact-result {
  max-width: 980px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(240px, 1fr));
  gap: 0 14px;
}

.form-grid.wide {
  grid-template-columns: minmax(280px, 1fr) minmax(280px, 1fr) minmax(220px, 0.8fr);
  align-items: start;
}

.step-footer,
.footer-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.step-footer {
  margin-top: 4px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.compact-picker .preset-list {
  grid-template-columns: repeat(3, minmax(180px, 1fr));
}

.compact-picker .content-list {
  grid-template-columns: repeat(3, minmax(220px, 1fr));
}

.compact-picker .preset-list,
.compact-picker .content-list {
  display: grid;
  gap: 12px;
}

.compact-picker .preset-button,
.compact-picker .content-option {
  min-height: 172px;
  align-content: start;
}

.compact-picker .preset-button {
  min-height: 126px;
}

.compact-picker .content-option {
  grid-template-columns: 1fr;
  position: relative;
}

.compact-picker .content-option input {
  position: absolute;
  top: 12px;
  right: 12px;
}

.compact-picker .content-title {
  padding-right: 28px;
}

.picker-section-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 6px 0 10px;
}

.picker-section-title strong {
  font-size: 15px;
}

.picker-section-title span {
  color: var(--muted);
  font-size: 13px;
}

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

.form-panel,
.picker-panel,
.result-panel {
  padding: 18px;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.step-badge {
  min-width: 30px;
  height: 30px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--surface-2);
  color: var(--accent-strong);
  font-weight: 800;
}

label {
  display: grid;
  gap: 7px;
  margin-bottom: 14px;
  color: #2d3a37;
  font-weight: 650;
  font-size: 14px;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: #fbfdfc;
  color: var(--ink);
  border-radius: 8px;
  padding: 11px 12px;
  outline: none;
}

textarea {
  resize: vertical;
}

input:focus,
textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(15, 159, 143, 0.15);
}

.file-field input {
  display: none;
}

.file-field span {
  border: 1px dashed var(--accent);
  border-radius: 8px;
  min-height: 46px;
  padding: 12px;
  color: var(--accent-strong);
  background: var(--surface-2);
}

.preset-list,
.content-list,
.result-stack,
.history-list {
  display: grid;
  gap: 10px;
}

.preset-button,
.content-option,
.history-item {
  border: 1px solid var(--line);
  background: #fbfdfc;
  border-radius: 8px;
  padding: 12px;
}

.preset-button {
  width: 100%;
  text-align: left;
}

.preset-button:hover,
.content-option:hover,
.history-item:hover {
  border-color: var(--accent);
}

.gallery-item {
  width: 100%;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  text-align: left;
}

.gallery-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #f1efff;
  color: #6d5dfc;
}

.gallery-main {
  min-width: 0;
}

.gallery-main strong {
  display: block;
}

.gallery-open {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  border-radius: 8px;
  padding: 0 10px;
  background: #eef7f4;
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 900;
}

.content-option.selected {
  border-color: #6d5dfc;
  background: #f7f5ff;
  box-shadow: 0 12px 28px rgba(101, 71, 245, 0.13);
}

.content-option.selected::after {
  content: "выбрано";
  position: absolute;
  right: 12px;
  bottom: 12px;
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  border-radius: 8px;
  padding: 0 8px;
  background: #6d5dfc;
  color: #ffffff;
  font-size: 11px;
  font-weight: 900;
}

.preset-title,
.content-title {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-weight: 800;
}

.preset-desc,
.content-desc {
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.content-outcome {
  display: block;
  margin-top: 8px;
  color: #3d4643;
  font-size: 12px;
  font-weight: 750;
  line-height: 1.35;
}

.content-option {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.content-option input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--accent);
}

.meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.pill,
.kind-pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border-radius: 8px;
  padding: 0 8px;
  background: var(--surface-2);
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 750;
}

.selected-pill {
  display: none;
}

.content-option.selected .selected-pill {
  display: inline-flex;
}

.divider {
  height: 1px;
  background: var(--line);
  margin: 14px 0;
}

.order-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-top: 14px;
  margin-top: 14px;
  border-top: 1px solid var(--line);
  position: sticky;
  bottom: 0;
  background: var(--surface);
}

.primary-button,
.ghost-button {
  min-height: 42px;
  border-radius: 8px;
  padding: 0 16px;
  border: 1px solid transparent;
  font-weight: 800;
}

.primary-button {
  background: var(--accent);
  color: #ffffff;
}

.primary-button:hover {
  background: var(--accent-strong);
}

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

.link-button {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.ghost-button.small {
  min-height: 34px;
  padding: 0 10px;
  font-size: 13px;
}

.empty-state {
  min-height: 180px;
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--muted);
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: #fbfdfc;
  padding: 18px;
}

.result-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #fbfdfc;
}

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

.result-item h3 {
  margin-top: 6px;
}

.result-meta {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.text-result-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.text-result-grid section,
.result-block {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fbfdfc;
}

.text-result-grid span,
.result-block > span,
.result-block-head span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.text-result-grid p {
  color: #2d3a37;
  line-height: 1.45;
}

.result-block-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.result-block-head span {
  margin-bottom: 0;
}

pre {
  white-space: pre-wrap;
  word-break: break-word;
  margin: 0;
  border-radius: 8px;
  background: #10201d;
  color: #effffb;
  padding: 12px;
  line-height: 1.5;
  font-size: 13px;
  max-height: 320px;
  overflow: auto;
}

details {
  margin-top: 10px;
}

summary {
  color: var(--accent-strong);
  font-weight: 800;
  cursor: pointer;
}

.catalog-layout,
.history-layout {
  max-width: 1100px;
}

.catalog-layout .panel,
.history-layout .panel {
  padding: 18px;
}

.catalog-table {
  display: grid;
  gap: 8px;
}

.catalog-row {
  display: grid;
  grid-template-columns: minmax(220px, 1.4fr) 110px 120px 120px 100px;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdfc;
}

.catalog-row.header {
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.price-ok {
  color: var(--accent-strong);
  font-weight: 800;
}

.price-bad {
  color: var(--danger);
  font-weight: 800;
}

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

@media (max-width: 1180px) {
  .workspace-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
  }

  .main {
    padding: 18px;
  }

  .topbar {
    flex-direction: column;
  }

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

/* Dashboard redesign */
:root {
  --bg: #eeeaff;
  --surface: #ffffff;
  --surface-2: #f5f3ff;
  --ink: #16162a;
  --muted: #74748c;
  --line: #eceaf5;
  --accent: #6547f5;
  --accent-strong: #4e35da;
  --orange: #ff8a1f;
  --blue: #3f82ff;
  --green: #24c58a;
  --rose: #ff5f8d;
  --shadow: 0 18px 48px rgba(68, 54, 150, 0.1);
}

body {
  background:
    radial-gradient(circle at 12% 8%, rgba(255, 255, 255, 0.95), transparent 26%),
    linear-gradient(135deg, #ece8ff 0%, #f8f7ff 48%, #e8f9f4 100%);
}

.app-shell {
  min-height: calc(100vh - 28px);
  margin: 14px;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 24px 80px rgba(88, 68, 170, 0.16);
  overflow: hidden;
}

.sidebar {
  background: rgba(255, 255, 255, 0.96);
  color: var(--ink);
  border-right: 1px solid var(--line);
}

.main {
  background: rgba(255, 255, 255, 0.42);
}

.brand-mark {
  background: linear-gradient(135deg, #6d5dfc, #7c3aed);
}

.brand-subtitle,
.topbar p,
.muted {
  color: var(--muted);
}

.nav-tab {
  display: flex;
  align-items: center;
  gap: 10px;
  border-color: transparent;
  background: transparent;
  color: #50506a;
  font-weight: 750;
}

.nav-tab.active,
.nav-tab:hover {
  background: #f1efff;
  color: var(--accent-strong);
  border-color: #e6e1ff;
}

.status-panel {
  border-color: var(--line);
  background: linear-gradient(180deg, #faf9ff, #ffffff);
}

.status-row span {
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.topbar-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.factory-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}

.metric-tile {
  min-height: 92px;
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  box-shadow: var(--shadow);
}

.metric-tile span:not(.tile-icon) {
  color: var(--muted);
  font-size: 13px;
}

.metric-tile strong {
  display: block;
  margin-top: 6px;
  font-size: 24px;
}

.tile-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 8px;
}

.tile-icon.violet {
  background: #eeeaff;
  color: var(--accent);
}

.tile-icon.rose {
  background: #fff0f5;
  color: var(--rose);
}

.tile-icon.blue {
  background: #eef5ff;
  color: var(--blue);
}

.tile-icon.green {
  background: #eafaf3;
  color: var(--green);
}

.panel,
.metric-tile,
.preset-button,
.content-option,
.history-item,
.result-item,
.catalog-row {
  border-color: var(--line);
}

input,
textarea,
.preset-button,
.content-option,
.history-item,
.result-item,
.catalog-row,
.empty-state {
  background: #fcfcff;
}

input:focus,
textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(101, 71, 245, 0.14);
}

.preset-title > span:first-child,
.content-title > span:first-child {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.pill,
.kind-pill {
  background: var(--surface-2);
  color: var(--accent-strong);
}

.primary-button,
.ghost-button,
.link-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.primary-button {
  background: linear-gradient(135deg, #6d5dfc, #5a3ff0);
  box-shadow: 0 10px 22px rgba(101, 71, 245, 0.22);
}

.primary-button:hover {
  background: linear-gradient(135deg, #5a48e9, #4d35d4);
}

.link-button {
  text-decoration: none;
}

pre {
  background: #17172f;
  color: #f4f3ff;
}

svg {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
}

.app-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  display: inline-grid;
  place-items: center;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
}

.nav-tab .app-icon,
.status-row .app-icon {
  background: #f1efff;
  color: var(--accent-strong);
}

.login-gate {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.95), transparent 24%),
    linear-gradient(135deg, #ece8ff 0%, #faf9ff 54%, #e8f9f4 100%);
}

.login-gate.hidden {
  display: none;
}

.login-card {
  width: min(430px, 100%);
  display: grid;
  gap: 16px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 24px 80px rgba(88, 68, 170, 0.18);
}

.auth-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.login-error {
  min-height: 20px;
  color: var(--danger);
  font-weight: 750;
}

@media (max-width: 760px) {
  .app-shell {
    margin: 0;
    min-height: 100vh;
  }

  .factory-metrics {
    grid-template-columns: 1fr;
  }

  .form-grid,
  .form-grid.wide,
  .compact-picker .preset-list,
  .compact-picker .content-list {
    grid-template-columns: 1fr;
  }
}

/* Auth start screen overrides */
.login-gate {
  z-index: 30;
  display: block;
  place-items: initial;
  overflow: auto;
  padding: 28px;
  background: linear-gradient(135deg, #f7fbff 0%, #f4f7f6 48%, #eef7f4 100%);
}

.login-card {
  width: 100%;
  align-self: center;
  border: 1px solid var(--line);
  background: #ffffff;
  box-shadow: 0 20px 54px rgba(20, 42, 37, 0.12);
}

@media (max-width: 980px) {
  .auth-shell {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .auth-copy h1 {
    font-size: 36px;
  }

  .next-steps {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .login-gate {
    padding: 16px;
  }

  .auth-shell {
    min-height: auto;
  }

  .auth-feature-grid,
  .auth-actions {
    grid-template-columns: 1fr;
  }

  .auth-copy h1 {
    font-size: 30px;
  }
}
﻿
/* User-facing generated materials */
.ready-result,
.material-card {
  background: #ffffff;
}
.ready-copy,
.material-preview,
.ready-caption {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdfc;
  padding: 12px;
}
.ready-copy {
  display: grid;
  gap: 10px;
}
.ready-copy ul {
  margin: 0;
  padding-left: 20px;
  color: #2d3a37;
}
.lead-text {
  color: var(--muted);
  line-height: 1.5;
}
.material-preview {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}
.material-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #f1efff;
  color: #5a3ff0;
  font-weight: 900;
  font-size: 24px;
}
.material-preview strong {
  display: block;
  margin-bottom: 5px;
}
.material-preview p,
.ready-caption p {
  color: var(--muted);
  line-height: 1.45;
}
.ready-caption {
  margin-top: 10px;
  display: grid;
  gap: 8px;
}
.ready-caption > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}
.tech-details {
  margin-top: 10px;
}
.tech-details summary {
  color: var(--muted);
}


.panel-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.generated-media {
  display: grid;
  gap: 8px;
  margin-bottom: 10px;
}
.generated-media img,
.generated-media video {
  width: 100%;
  max-height: 360px;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}
.generated-media a {
  color: var(--accent);
  font-weight: 850;
  text-decoration: none;
}
.material-card .material-preview p {
  white-space: pre-line;
}


.wallet-row strong,
#metricWallet {
  color: #047857;
}
.factory-metrics {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}
@media (max-width: 1180px) {
  .factory-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}


.gallery-thumb {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #f1efff;
  color: var(--accent);
  overflow: hidden;
  flex: 0 0 56px;
}
.gallery-thumb img,
.gallery-thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.gallery-thumb.has-media {
  background: #eef8f3;
  border: 1px solid var(--line);
}
