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

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

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

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

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

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

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

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

.ai-oral-badge {
  display: grid;
  min-width: 132px;
  min-height: 82px;
  place-items: center;
  border: 1px solid rgba(199, 214, 243, 0.78);
  border-radius: 20px;
  background: linear-gradient(145deg, #ffffff, #f2f7ff);
  box-shadow: 0 18px 48px rgba(31, 76, 154, 0.1);
}

.ai-oral-badge b {
  color: #116dff;
  font-size: 30px;
  line-height: 1;
}

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

.ai-oral-shell {
  display: grid;
  grid-template-columns: minmax(430px, 0.86fr) minmax(0, 1.14fr);
  gap: 22px;
  align-items: start;
}

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

.ai-oral-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, #f7faff);
}

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

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

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

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

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

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

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

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

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

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

.ai-oral-field input:focus,
.ai-oral-field select:focus,
.ai-oral-field textarea:focus {
  border-color: #1d72ff;
  box-shadow: 0 0 0 4px rgba(29, 114, 255, 0.11);
}

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

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

.ai-oral-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(31, 76, 154, 0.13);
}

.ai-oral-btn.primary {
  color: #fff;
  background: linear-gradient(135deg, #156dff, #715cff);
  box-shadow: 0 14px 34px rgba(21, 109, 255, 0.22);
}

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

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

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

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

.ai-oral-kpis div {
  min-height: 82px;
  padding: 15px;
  border: 1px solid rgba(207, 219, 243, 0.74);
  border-radius: 16px;
  background: linear-gradient(180deg, #fff, #f8fbff);
}

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

.ai-oral-kpis strong {
  display: block;
  margin-top: 9px;
  color: #081631;
  font-size: 29px;
  line-height: 1;
}

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

.ai-oral-script-card {
  padding: 18px;
}

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

.ai-oral-result-head span,
.ai-oral-section h3 {
  color: #081631;
  font-size: 14px;
  font-weight: 820;
}

.ai-oral-result-head button {
  min-height: 30px;
  border: 0;
  border-radius: 9px;
  padding: 0 10px;
  color: #156dff;
  background: #edf5ff;
  font-size: 12px;
  font-weight: 760;
}

.ai-oral-script-card h2 {
  margin: 0 0 12px;
  color: #071230;
  font-size: 22px;
}

.ai-oral-script-card pre {
  margin: 0;
  color: #233b64;
  font-family: inherit;
  font-size: 14px;
  line-height: 1.9;
  white-space: pre-wrap;
}

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

.ai-oral-section {
  padding: 15px;
}

.ai-oral-section h3 {
  margin: 0 0 10px;
}

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

.ai-oral-tags {
  display: flex !important;
  flex-wrap: wrap;
  gap: 8px !important;
  padding-left: 0 !important;
  list-style: none;
}

.ai-oral-tags li {
  border-radius: 999px;
  padding: 6px 10px;
  color: #155bd4;
  background: #edf5ff;
  font-size: 12px;
  font-weight: 720;
}

.ai-oral-timeline {
  display: grid;
  gap: 10px;
}

.ai-oral-timeline article {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 12px;
  padding: 12px;
  border-radius: 14px;
  background: #f7faff;
}

.ai-oral-timeline b {
  color: #156dff;
  font-size: 13px;
}

.ai-oral-timeline strong {
  display: block;
  color: #081631;
  font-size: 14px;
}

.ai-oral-timeline p {
  margin: 5px 0;
  color: #40577f;
  font-size: 13px;
  line-height: 1.65;
}

.ai-oral-timeline small {
  color: #7283a5;
  font-size: 12px;
  line-height: 1.55;
}

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

.ai-oral-result-grid .wide {
  grid-column: 1 / -1;
}

.ai-oral-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-oral-toast.show {
  opacity: 1;
  transform: translateY(0);
}

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

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

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

  .ai-oral-titlebar {
    display: grid;
  }

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

  .ai-oral-timeline article {
    grid-template-columns: 1fr;
  }
}
