
.tmcc-wrap {
  --tmcc-bg: #f6f7fb;
  --tmcc-surface: rgba(255,255,255,0.92);
  --tmcc-border: rgba(110, 92, 246, 0.12);
  --tmcc-border-strong: rgba(110, 92, 246, 0.22);
  --tmcc-text: #17192d;
  --tmcc-muted: #677089;
  --tmcc-primary: #5f4dee;
  --tmcc-primary-dark: #4f3fe4;
  --tmcc-shadow: 0 20px 55px rgba(30, 35, 90, 0.08);
  --tmcc-shadow-soft: 0 10px 28px rgba(95, 77, 238, 0.06);
  --tmcc-radius-xl: 30px;
  --tmcc-radius-lg: 22px;
  --tmcc-radius-md: 16px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--tmcc-text);
  background:
    radial-gradient(circle at top left, rgba(110, 92, 246, 0.11), transparent 26%),
    radial-gradient(circle at right, rgba(50, 177, 255, 0.08), transparent 22%),
    var(--tmcc-bg);
  border: 1px solid rgba(255,255,255,0.72);
  border-radius: calc(var(--tmcc-radius-xl) + 8px);
  box-shadow: var(--tmcc-shadow);
  overflow: hidden;
}

.tmcc-shell {
  max-width: 1380px;
  margin: 0 auto;
  padding: 36px;
}

.tmcc-header {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-start;
  margin-bottom: 30px;
}

.tmcc-kicker {
  display: inline-flex;
  align-items: center;
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(95, 77, 238, 0.1);
  color: var(--tmcc-primary);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .05em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.tmcc-title {
  margin: 0;
  font-size: clamp(34px, 4vw, 54px);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.tmcc-subtitle {
  margin: 14px 0 0;
  font-size: 17px;
  max-width: 760px;
  color: var(--tmcc-muted);
}

.tmcc-header-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 4px;
}

.tmcc-chip,
.tmcc-pill,
.tmcc-ad-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}

.tmcc-chip,
.tmcc-pill {
  border: 1px solid var(--tmcc-border);
  background: rgba(255,255,255,0.78);
  color: var(--tmcc-primary);
  box-shadow: 0 6px 18px rgba(95, 77, 238, 0.04);
}

.tmcc-main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(360px, .92fr);
  gap: 26px;
  align-items: start;
}

.tmcc-composer-card,
.tmcc-stats-card,
.tmcc-tool-card,
.tmcc-ad-slot {
  background: var(--tmcc-surface);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.82);
  box-shadow: var(--tmcc-shadow-soft);
}

.tmcc-composer-card,
.tmcc-stats-card {
  border-radius: var(--tmcc-radius-xl);
  padding: 22px;
}

.tmcc-right-rail {
  display: grid;
  gap: 20px;
}

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

.tmcc-toolbar-left {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tmcc-btn,
.tmcc-select {
  appearance: none;
  border: 1px solid var(--tmcc-border);
  background: rgba(255,255,255,0.94);
  color: var(--tmcc-text);
  border-radius: 14px;
  font-weight: 700;
  font-size: 14px;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease;
}

.tmcc-btn {
  padding: 13px 18px;
  cursor: pointer;
  min-width: 68px;
  box-shadow: 0 3px 12px rgba(95, 77, 238, 0.03);
}

.tmcc-btn:hover,
.tmcc-btn:focus,
.tmcc-select:hover,
.tmcc-select:focus {
  transform: translateY(-1px);
  border-color: var(--tmcc-border-strong);
  box-shadow: 0 12px 28px rgba(95, 77, 238, 0.1);
  outline: none;
}

.tmcc-select-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(246,245,255,0.98));
  border: 1px solid rgba(95,77,238,0.12);
  border-radius: 14px;
  box-shadow: 0 10px 25px rgba(95, 77, 238, 0.06);
  padding-right: 36px;
}

.tmcc-select-wrap::before {
  content: "Sample";
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--tmcc-primary);
  opacity: .85;
  pointer-events: none;
}

.tmcc-select-wrap::after {
  content: "▾";
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--tmcc-primary);
  font-size: 11px;
  pointer-events: none;
}

.tmcc-select {
  padding: 24px 18px 11px 14px;
  min-width: 170px;
  cursor: pointer;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.tmcc-editor-wrap {
  border: 1px solid var(--tmcc-border);
  border-radius: 24px;
  background: rgba(255,255,255,0.95);
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.85);
}

.tmcc-editor {
  width: 100%;
  min-height: 380px;
  border: 0;
  resize: vertical;
  padding: 26px 24px 18px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--tmcc-text);
  background: transparent;
  box-sizing: border-box;
}

.tmcc-editor::placeholder {
  color: #8c94ad;
}

.tmcc-editor:focus {
  outline: none;
}

.tmcc-editor-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 22px 20px;
  border-top: 1px solid rgba(95,77,238,0.08);
  color: var(--tmcc-muted);
  font-size: 14px;
}

.tmcc-live-indicator {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.tmcc-live-indicator span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #2dc98a;
  box-shadow: 0 0 0 7px rgba(45, 201, 138, 0.12);
}

.tmcc-mini-insights {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 20px;
}

.tmcc-mini-insight,
.tmcc-tool-card {
  padding: 18px;
  border: 1px solid rgba(95,77,238,0.08);
  border-radius: 20px;
  background: rgba(255,255,255,0.78);
}

.tmcc-mini-insight strong,
.tmcc-tool-card strong {
  display: block;
  font-size: 14px;
  margin-bottom: 6px;
}

.tmcc-mini-insight span,
.tmcc-tool-card span {
  color: var(--tmcc-muted);
  font-size: 13px;
  line-height: 1.55;
}

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

.tmcc-stats-head h3 {
  margin: 0;
  font-size: 24px;
}

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

.tmcc-stat-box {
  border-radius: 20px;
  padding: 20px;
  min-height: 132px;
  border: 1px solid rgba(95,77,238,0.08);
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(248,248,255,0.9));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.78);
}

.tmcc-stat-box span {
  display: block;
  font-size: 14px;
  font-weight: 800;
  margin-bottom: 10px;
}

.tmcc-stat-box strong {
  display: block;
  font-size: clamp(30px, 4vw, 42px);
  line-height: 1;
  margin-bottom: 10px;
  letter-spacing: -0.03em;
}

.tmcc-stat-box small {
  color: var(--tmcc-muted);
  font-size: 13px;
  line-height: 1.45;
}

.tmcc-tool-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
}

.tmcc-tool-card.active {
  background: linear-gradient(135deg, rgba(95,77,238,0.1), rgba(95,77,238,0.03));
  border-color: rgba(95,77,238,0.18);
}

@media (max-width: 1100px) {
  .tmcc-main-grid {
    grid-template-columns: 1fr;
  }

  .tmcc-tool-strip,
  .tmcc-mini-insights {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .tmcc-shell {
    padding: 18px;
  }

  .tmcc-header,
  .tmcc-toolbar,
  .tmcc-editor-meta {
    flex-direction: column;
    align-items: stretch;
  }

  .tmcc-title {
    font-size: 34px;
  }

  .tmcc-composer-card,
  .tmcc-stats-card {
    padding: 16px;
    border-radius: 22px;
  }

  .tmcc-editor {
    min-height: 280px;
    padding: 20px 18px 16px;
  }

  .tmcc-stats-grid,
  .tmcc-tool-strip,
  .tmcc-mini-insights {
    grid-template-columns: 1fr;
  }

  .tmcc-select-wrap,
  .tmcc-select,
  .tmcc-toolbar-right {
    width: 100%;
  }

  .tmcc-select {
    min-width: 0;
  }
}
