.ai-live-mounted > .tool-titlebar,
.ai-live-mounted .tool-titlebar + .timestamp-grid {
  display: none;
}

.ai-live-workbench {
  width: min(100% - 48px, 1440px) !important;
  margin: 34px auto 46px !important;
  position: relative;
  z-index: 2;
}

.ai-live-page {
  overflow: auto !important;
}

.ai-live-page .home-footer {
  position: relative;
  z-index: 2;
}

.ai-live-titlebar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}

.ai-live-titlebar span {
  display: inline-flex;
  height: 26px;
  align-items: center;
  border-radius: 999px;
  padding: 0 11px;
  color: #5d35dc;
  background: #f1edff;
  font-size: 12px;
  font-weight: 760;
}

.ai-live-titlebar h1 {
  margin: 12px 0 8px;
  color: #071230;
  font-size: clamp(32px, 3.5vw, 50px);
  line-height: 1.08;
  letter-spacing: 0;
}

.ai-live-titlebar p {
  max-width: 820px;
  margin: 0;
  color: #607399;
  font-size: 15px;
  line-height: 1.7;
}

.ai-live-badge {
  display: grid;
  min-width: 136px;
  min-height: 84px;
  place-items: center;
  border: 1px solid rgba(204, 211, 246, 0.84);
  border-radius: 20px;
  background: linear-gradient(145deg, #ffffff, #f6f2ff);
  box-shadow: 0 18px 48px rgba(77, 56, 173, 0.1);
}

.ai-live-badge b {
  color: #6d4dff;
  font-size: 30px;
  line-height: 1;
}

.ai-live-badge small {
  color: #6b7d9e;
  font-size: 12px;
  font-weight: 720;
}

.ai-live-shell {
  display: grid;
  grid-template-columns: minmax(460px, 0.9fr) minmax(0, 1.1fr);
  gap: 22px;
  align-items: start;
}

.ai-live-panel {
  overflow: hidden;
  border: 1px solid rgba(201, 214, 238, 0.86);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 20px 60px rgba(31, 76, 154, 0.1);
}

.ai-live-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border-bottom: 1px solid rgba(222, 230, 244, 0.9);
  background: linear-gradient(180deg, #fff, #f8f6ff);
}

.ai-live-panel-head h2 {
  margin: 0;
  color: #081631;
  font-size: 18px;
}

.ai-live-panel-head span {
  color: #66799e;
  font-size: 13px;
  font-weight: 700;
}

.ai-live-body,
.ai-live-result {
  display: grid;
  gap: 16px;
  padding: 20px;
}

.ai-live-grid {
  display: grid;
  gap: 14px;
}

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

.ai-live-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ai-live-field {
  display: grid;
  gap: 7px;
  color: #405b88;
  font-size: 13px;
  font-weight: 760;
}

.ai-live-field.wide {
  grid-column: 1 / -1;
}

.ai-live-field input,
.ai-live-field select,
.ai-live-field textarea {
  width: 100%;
  border: 1px solid #c5cff2;
  border-radius: 12px;
  outline: 0;
  color: #081631;
  background: #fff;
  font: inherit;
  font-weight: 520;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.ai-live-field input,
.ai-live-field select {
  height: 40px;
  padding: 0 12px;
}

.ai-live-field textarea {
  min-height: 118px;
  padding: 13px 14px;
  line-height: 1.65;
  resize: vertical;
}

.ai-live-field input:focus,
.ai-live-field select:focus,
.ai-live-field textarea:focus {
  border-color: #6d4dff;
  box-shadow: 0 0 0 4px rgba(109, 77, 255, 0.11);
}

.ai-live-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.ai-live-btn {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 12px;
  padding: 0 15px;
  color: #3b4f80;
  background: #f0f3ff;
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.ai-live-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(77, 56, 173, 0.13);
}

.ai-live-btn.primary {
  color: #fff;
  background: linear-gradient(135deg, #1d72ff, #7b5cff 58%, #b855ff);
  box-shadow: 0 14px 34px rgba(109, 77, 255, 0.23);
}

.ai-live-btn:disabled {
  cursor: not-allowed;
  opacity: 0.56;
  transform: none;
  box-shadow: none;
}

.ai-live-empty {
  display: grid;
  min-height: 560px;
  place-items: center;
  padding: 28px;
  color: #7485a8;
  text-align: center;
}

.ai-live-empty strong {
  display: block;
  margin-bottom: 8px;
  color: #081631;
  font-size: 20px;
}

.ai-live-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.ai-live-kpis div,
.ai-live-section {
  border: 1px solid rgba(207, 219, 243, 0.74);
  border-radius: 16px;
  background: #fff;
}

.ai-live-kpis div {
  min-height: 82px;
  padding: 15px;
  background: linear-gradient(180deg, #fff, #faf8ff);
}

.ai-live-kpis span {
  display: block;
  color: #66799e;
  font-size: 12px;
  font-weight: 760;
}

.ai-live-kpis strong {
  display: block;
  margin-top: 9px;
  color: #081631;
  font-size: 24px;
  line-height: 1.12;
}

.ai-live-section {
  padding: 16px;
}

.ai-live-section h3 {
  margin: 0 0 12px;
  color: #081631;
  font-size: 14px;
  font-weight: 820;
}

.ai-live-section ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 18px;
  color: #506589;
  font-size: 13px;
  line-height: 1.6;
}

.ai-live-hero-result {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  background: linear-gradient(135deg, #fff, #f6f2ff);
}

.ai-live-hero-result span {
  color: #6d4dff;
  font-size: 12px;
  font-weight: 800;
}

.ai-live-hero-result h2 {
  margin: 7px 0 0;
  color: #071230;
  font-size: 22px;
}

.ai-live-hero-result button {
  flex: 0 0 auto;
  min-height: 32px;
  border: 0;
  border-radius: 10px;
  padding: 0 12px;
  color: #6d4dff;
  background: #eee9ff;
  font-size: 12px;
  font-weight: 760;
}

.ai-live-notice {
  display: block;
  margin-top: 10px;
  color: #8a6a16;
  font-size: 12px;
  line-height: 1.6;
}

.ai-live-flow {
  display: grid;
  gap: 11px;
}

.ai-live-flow-item {
  display: grid;
  grid-template-columns: 98px minmax(0, 1fr);
  gap: 14px;
  padding: 13px;
  border-radius: 15px;
  background: #f8faff;
}

.ai-live-flow-time {
  display: grid;
  align-content: start;
  gap: 8px;
}

.ai-live-flow-time span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 10px;
  color: #fff;
  background: linear-gradient(135deg, #1d72ff, #7b5cff);
  font-size: 12px;
  font-weight: 900;
}

.ai-live-flow-time b {
  color: #5f6f93;
  font-size: 12px;
  line-height: 1.4;
}

.ai-live-flow-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.ai-live-flow-head strong {
  color: #081631;
  font-size: 14px;
}

.ai-live-flow-head em {
  border-radius: 999px;
  padding: 4px 8px;
  color: #5d35dc;
  background: #f1edff;
  font-size: 11px;
  font-style: normal;
  font-weight: 760;
}

.ai-live-flow-main p {
  margin: 8px 0 10px;
  color: #40577f;
  font-size: 13px;
  line-height: 1.7;
}

.ai-live-flow-meta {
  display: grid;
  gap: 5px;
}

.ai-live-flow-meta small {
  color: #7283a5;
  font-size: 12px;
  line-height: 1.55;
}

.ai-live-products {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.ai-live-product-card {
  display: grid;
  gap: 9px;
  border-radius: 15px;
  padding: 14px;
  background: linear-gradient(180deg, #f9fbff, #fff);
}

.ai-live-product-card h4 {
  margin: 0;
  color: #081631;
  font-size: 15px;
}

.ai-live-product-card p {
  margin: 0;
  color: #506589;
  font-size: 12px;
  line-height: 1.55;
}

.ai-live-product-card b {
  margin-right: 8px;
  color: #152853;
}

.ai-live-mini-list {
  gap: 5px !important;
  font-size: 12px !important;
}

.ai-live-product-card small {
  color: #6d4dff;
  font-size: 12px;
  line-height: 1.55;
}

.ai-live-result-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.ai-live-toast {
  position: fixed;
  right: 28px;
  bottom: 28px;
  z-index: 90;
  padding: 12px 16px;
  border-radius: 14px;
  color: #fff;
  background: #10224a;
  box-shadow: 0 18px 42px rgba(17, 35, 74, 0.22);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}

.ai-live-toast.show {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1180px) {
  .ai-live-workbench {
    width: min(100% - 32px, 960px) !important;
  }

  .ai-live-shell,
  .ai-live-result-grid,
  .ai-live-products {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .ai-live-titlebar,
  .ai-live-grid.two,
  .ai-live-grid.three,
  .ai-live-kpis {
    grid-template-columns: 1fr;
  }

  .ai-live-titlebar,
  .ai-live-hero-result {
    display: grid;
  }

  .ai-live-badge {
    min-height: 70px;
  }

  .ai-live-flow-item {
    grid-template-columns: 1fr;
  }
}
