/* Local prepared example: a message, one clear AI connection, and a German invoice draft. */
.ai-section.ai-invoice-section {
  --ai-demo-ink: var(--studio-text-strong);
  --ai-demo-muted: var(--studio-text-muted);
  --ai-demo-paper: var(--studio-paper);
  --ai-demo-border: var(--studio-border);
  padding: 48px 35px;
  background: var(--studio-surface-blue);
  color: var(--ai-demo-ink);
}
.ai-invoice-section > .section-intro {
  max-width: 880px;
  margin-bottom: 40px;
}
.ai-invoice-section > .section-intro > p {
  max-width: none;
}
.ai-invoice-demo {
  display: grid;
  grid-template-columns: minmax(0, .8fr) 64px minmax(0, 1.2fr);
  align-items: start;
  gap: 18px;
}
.ai-request-panel,
.ai-document-panel {
  min-width: 0;
}
.ai-demo-panel-label,
.ai-document-heading {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 43px;
  margin-bottom: 21px;
  color: var(--studio-text-accent);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.6;
}
.ai-step-number {
  display: inline-grid;
  flex: 0 0 35px;
  width: 35px;
  height: 35px;
  place-items: center;
  border: 1px solid var(--studio-border);
  border-radius: 10px;
  background: var(--studio-surface);
  color: var(--studio-text-accent);
  font-size: 13px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}
.ai-invoice-section .ai-request-panel > h3 {
  max-width: 390px;
  margin: 0 0 13px;
  color: var(--ai-demo-ink);
  font-size: 27px;
  font-weight: 650;
  line-height: 1.25;
  letter-spacing: -.04em;
}
.ai-demo-explainer {
  max-width: 400px;
  margin: 0 0 25px;
  color: var(--ai-demo-muted);
  font-size: 14px;
  line-height: 1.85;
}
.ai-invoice-section .language-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  margin: 0 0 20px;
}
.ai-invoice-section .language-tabs button {
  min-width: 0;
  min-height: 48px;
  padding: 10px 8px;
  gap: 8px;
  border: 1px solid var(--studio-border);
  border-radius: 12px;
  background: var(--studio-surface);
  color: var(--ai-demo-muted);
  font-size: 13px;
  font-weight: 550;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.ai-invoice-section .language-tabs button:hover {
  border-color: #94c9db;
  background: var(--studio-surface-blue);
}
.ai-invoice-section .language-tabs button.active,
.ai-invoice-section .language-tabs button[aria-pressed='true'] {
  border-color: #8cc5d8;
  background: var(--studio-surface-blue-strong);
  color: var(--studio-text-accent);
  box-shadow: 0 2px 5px #326c880a;
}
.ai-invoice-section .language-tabs button > span {
  font-size: 18px;
}
.ai-invoice-section .language-tabs button > img {
  flex: 0 0 30px;
  width: 30px;
  height: 18px;
  object-fit: contain;
}
.ai-message {
  position: relative;
  margin: 0;
  padding: 24px;
  border: 1px solid var(--studio-border);
  border-left: 3px solid #7fbcd0;
  border-radius: 0 16px 16px 16px;
  background: var(--studio-paper);
  color: var(--ai-demo-ink);
  box-shadow: 0 10px 22px #326c8806;
}
.ai-message-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 17px;
  color: var(--ai-demo-muted);
  font-size: 12px;
  font-weight: 550;
  line-height: 1.6;
}
.ai-message-avatar {
  display: inline-grid;
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid var(--studio-border);
  border-radius: 10px;
  background: var(--studio-surface-blue-strong);
  color: var(--studio-text);
  font-size: 12px;
  font-weight: 650;
}
.ai-message-text {
  font-size: 16px;
  line-height: 1.85;
  overflow-wrap: anywhere;
}
.ai-message-text[hidden] {
  display: none;
}
.ai-message-text p {
  margin: 0 0 15px;
  color: var(--studio-text);
  font-size: inherit;
  line-height: inherit;
}
.ai-message-text p:last-child {
  margin-bottom: 0;
}
.ai-message-text ul {
  display: grid;
  gap: 13px;
  padding-inline-start: 21px;
  margin: 0;
  list-style: disc;
}
.ai-message-text li {
  padding-inline-start: 3px;
  color: var(--studio-text);
  line-height: 1.85;
}
.ai-message-text li::marker {
  color: #63814b;
}
.ai-message-text[dir='rtl'] {
  direction: rtl;
  text-align: start;
  font-size: 17px;
  line-height: 1.95;
}
.ai-fixed-example {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  margin: 14px 0 20px;
  color: var(--ai-demo-muted);
  font-size: 12px;
  line-height: 1.8;
}
.ai-fixed-example svg {
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  margin-top: 3px;
}
.ai-invoice-section #ai-generate.button.primary {
  display: flex;
  width: 100%;
  min-height: 54px;
  justify-content: center;
  gap: 10px;
  padding: 14px 15px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: #3dbad7;
  color: var(--studio-text-strong);
  font-size: 14px;
  font-weight: 650;
  line-height: 1.5;
  white-space: normal;
}
.ai-invoice-section #ai-generate.button.primary:hover {
  background: #66cbe0;
}
.ai-invoice-section #ai-generate.button.primary:disabled {
  background: #99dce8;
  color: var(--studio-text-strong);
  cursor: progress;
  opacity: 1;
  transform: none;
}
.ai-invoice-section #ai-generate > svg:last-child {
  margin-left: auto;
}
.ai-button-icon {
  display: inline-flex;
  flex: 0 0 21px;
  align-items: center;
  justify-content: center;
}
.ai-invoice-section #ai-generate svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}
.ai-demo-status {
  min-height: 43px;
  margin: 15px 0 0;
  color: var(--ai-demo-muted);
  font-size: 12px;
  line-height: 1.8;
}

/* One connector, rather than another information card. */
.ai-demo-connector {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding-top: 250px;
  color: var(--studio-text-accent);
}
.ai-connector-icon {
  display: grid;
  place-items: center;
  width: 47px;
  height: 47px;
  border: 1px solid #b9d2b2;
  border-radius: 14px;
  background: #dce9c9;
  color: #57783c;
}
.ai-connector-icon svg {
  width: 25px;
  height: 25px;
}
.ai-demo-connector > span {
  color: var(--studio-text-accent);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: .08em;
  line-height: 1.5;
}
.ai-demo-connector .ai-connector-arrow {
  width: 64px;
  height: 38px;
  overflow: visible;
  fill: none;
  stroke: #3b8e89;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* The draft stays German and left-to-right, regardless of the chosen input language. */
.ai-document-panel {
  direction: ltr;
  text-align: left;
  scroll-margin-top: 115px;
}
.ai-document-heading {
  margin-bottom: 21px;
}
.ai-invoice-section .ai-document-heading > h3 {
  min-width: 0;
  margin: 0;
  color: var(--studio-text-accent);
  font-size: 14px;
  font-weight: 650;
  letter-spacing: -.015em;
  line-height: 1.6;
}
.ai-document-language {
  display: inline-grid;
  flex: 0 0 auto;
  min-width: 35px;
  min-height: 27px;
  margin-left: auto;
  padding: 3px 7px;
  place-items: center;
  border: 1px solid var(--studio-border);
  border-radius: 7px;
  background: var(--studio-surface);
  color: var(--studio-text-accent);
  font-size: 12px;
  font-weight: 550;
  line-height: 1.5;
}
.ai-invoice-paper {
  position: relative;
  display: flex;
  flex-direction: column;
  /* Let the complete document grow; a fixed paper ratio can clip its footer. */
  aspect-ratio: auto;
  min-width: 0;
  min-height: 790px;
  padding: 33px 30px 27px;
  border: 1px solid var(--studio-border);
  border-radius: 3px;
  background: var(--ai-demo-paper);
  color: var(--ai-demo-ink);
  box-shadow: 0 18px 38px #2b638212;
  font-size: 13px;
  line-height: 1.7;
}
.ai-invoice-branding {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding-bottom: 20px;
  border-bottom: 2px solid #80bdd1;
}
.ai-invoice-branding strong {
  color: var(--studio-text-strong);
  font-size: 25px;
  font-weight: 650;
  letter-spacing: -.055em;
  line-height: 1.2;
}
.ai-invoice-branding strong > span {
  color: var(--studio-text-accent);
}
.ai-invoice-branding strong > small {
  display: block;
  margin-top: 9px;
  color: var(--ai-demo-muted);
  font-size: 10px;
  font-weight: 450;
  letter-spacing: .1em;
  line-height: 1.5;
}
.ai-invoice-branding > span {
  color: var(--ai-demo-muted);
  font-size: 12px;
  font-weight: 550;
  letter-spacing: .09em;
  line-height: 1.5;
}
.ai-invoice-caption {
  margin: 12px 0 30px;
  color: var(--ai-demo-muted);
  font-size: 12px;
  line-height: 1.7;
}
.ai-invoice-address-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 24px;
  align-items: start;
  margin-bottom: 28px;
}
.ai-invoice-recipient {
  color: var(--studio-text);
  font-size: 14px;
  font-style: normal;
  line-height: 1.8;
  overflow-wrap: anywhere;
}
.ai-invoice-recipient strong {
  display: block;
  margin-bottom: 4px;
  font-weight: 650;
}
.ai-invoice-recipient > span {
  display: block;
}
.ai-invoice-meta {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: baseline;
  gap: 6px;
  margin: 0;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  line-height: 1.7;
}
.ai-invoice-meta > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 10px;
}
.ai-invoice-meta dt {
  min-width: 0;
  color: var(--ai-demo-muted);
}
.ai-invoice-meta dd {
  margin: 0;
  color: var(--studio-text);
  text-align: right;
  white-space: nowrap;
}
.ai-invoice-intro {
  margin: 0 0 23px;
  color: var(--studio-text);
  font-size: 13px;
  line-height: 1.8;
}
.ai-invoice-table {
  width: 100%;
  max-width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  line-height: 1.7;
}
.ai-invoice-table thead {
  background: var(--studio-surface);
}
.ai-invoice-table thead th {
  padding: 11px 7px;
  border-bottom: 1px solid var(--studio-border);
  color: var(--studio-text-accent);
  font-size: 12px;
  font-weight: 550;
  text-align: right;
  vertical-align: top;
}
.ai-invoice-table thead th:first-child {
  width: 44%;
  text-align: left;
}
.ai-invoice-table thead th:nth-child(2) {
  width: 16%;
}
.ai-invoice-table thead th:nth-child(3),
.ai-invoice-table thead th:nth-child(4) {
  width: 20%;
}
.ai-invoice-table tbody tr {
  border-bottom: 1px solid var(--studio-border);
}
.ai-invoice-table tbody th,
.ai-invoice-table tbody td {
  padding: 15px 7px;
  vertical-align: top;
  color: var(--studio-text);
}
.ai-invoice-table tbody th {
  font-weight: 400;
  text-align: left;
  overflow-wrap: anywhere;
}
.ai-invoice-table tbody th strong {
  display: block;
  margin-bottom: 5px;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.6;
}
.ai-invoice-table tbody th small {
  display: block;
  color: var(--ai-demo-muted);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.8;
}
.ai-invoice-table tbody td {
  text-align: right;
  overflow-wrap: anywhere;
}
.ai-invoice-table tbody td:last-child {
  font-weight: 650;
  white-space: nowrap;
}
.ai-invoice-totals {
  width: min(100%, 295px);
  margin: 25px 0 0 auto;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  line-height: 1.8;
}
.ai-invoice-totals > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 10px;
  padding-block: 4px;
}
.ai-invoice-totals dt {
  min-width: 0;
  color: var(--ai-demo-muted);
}
.ai-invoice-totals dd {
  margin: 0;
  color: var(--studio-text);
  font-weight: 550;
  text-align: right;
  white-space: nowrap;
}
.ai-invoice-totals > .is-total {
  margin-top: 8px;
  padding-top: 13px;
  border-top: 2px solid #80bdd1;
}
.ai-invoice-totals .is-total dt {
  color: var(--studio-text-strong);
  font-size: 14px;
  font-weight: 650;
}
.ai-invoice-totals .is-total dd {
  color: var(--studio-text-strong);
  font-size: 24px;
  font-weight: 650;
  letter-spacing: -.04em;
}
.ai-invoice-payment {
  margin: 28px 0 34px;
  color: var(--ai-demo-muted);
  font-size: 12px;
  line-height: 1.8;
}
.ai-invoice-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: auto;
  padding-top: 15px;
  border-top: 1px solid var(--studio-border);
  color: var(--ai-demo-muted);
  font-size: 12px;
  line-height: 1.8;
}
.ai-invoice-footer > span {
  min-width: 0;
  max-width: 52%;
  overflow-wrap: anywhere;
}
.ai-translation-note {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin: 18px 0 0;
  color: var(--ai-demo-muted);
  font-size: 12px;
  line-height: 1.85;
}
.ai-translation-note svg {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  margin-top: 3px;
}
.ai-demo-disclosure {
  max-width: 1030px;
  margin: 28px 0 0;
  padding-top: 22px;
  border-top: 1px solid var(--studio-border);
  color: var(--ai-demo-muted);
  font-size: 12px;
  line-height: 1.9;
}
.ai-demo-disclosure > svg {
  width: 16px;
  height: 16px;
  margin-right: 5px;
  vertical-align: -.2em;
}

/* One scroll-triggered demonstration, with a decorative cursor and a reserved
   result area. Without JS the complete invoice remains visible. */
.ai-generate-wrap { position: relative; }
.ai-demo-cursor { display: none; position: absolute; z-index: 2; top: 46%; left: 64%; width: 32px; height: 38px; pointer-events: none; }
.ai-demo-cursor > svg { display: block; width: 32px; height: 38px; filter: drop-shadow(0 3px 4px #17384b30); }
.ai-demo-click-ring { position: absolute; top: -13px; left: -13px; width: 32px; height: 32px; border: 2px solid #17384b; border-radius: 50%; opacity: 0; }
.ai-invoice-demo.is-pointer-active .ai-demo-cursor { display: block; animation: ai-cursor-arrive .9s cubic-bezier(.2,.7,.3,1) both; }
.ai-invoice-demo.is-demo-click .ai-demo-click-ring { animation: ai-cursor-click .35s ease-out both; }
.ai-invoice-demo.is-demo-click #ai-generate.button.primary { background: #66cbe0; box-shadow: 0 0 0 5px #3dbad725; }
.ai-invoice-demo.has-scroll-intro .ai-document-panel { opacity: 0; visibility: hidden; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
.ai-invoice-demo.has-scroll-intro .ai-demo-connector { opacity: 0; visibility: hidden; transition: opacity .35s ease; }
.ai-invoice-demo.has-scroll-intro:is(.is-generating, .is-ready) .ai-demo-connector { opacity: 1; visibility: visible; }
.ai-invoice-demo.has-scroll-intro.is-ready .ai-document-panel { opacity: 1; visibility: visible; transform: none; }
@keyframes ai-cursor-arrive {
  from { opacity: 0; transform: translate(28px, -48px) rotate(-10deg); }
  25% { opacity: 1; }
  to { opacity: 1; transform: translate(0, 0) rotate(0); }
}
@keyframes ai-cursor-click {
  from { opacity: .7; transform: scale(.35); }
  to { opacity: 0; transform: scale(1.6); }
}

/* During preparation only the explanatory graphics move. */
.ai-invoice-demo.is-generating .ai-button-icon svg,
.ai-invoice-demo.is-generating .ai-connector-icon svg {
  animation: ai-invoice-turn 1.7s linear infinite;
}
.ai-invoice-demo.is-generating .ai-connector-arrow {
  animation: ai-invoice-flow 1s ease-in-out infinite;
}
.ai-invoice-demo.is-generating .ai-invoice-paper,
.ai-document-panel[aria-busy='true'] .ai-invoice-paper {
  border-color: #66afc7;
  box-shadow: 0 0 0 2px #3dbad726, 0 18px 38px #2b638212;
}
.ai-invoice-demo.is-ready .ai-invoice-paper {
  animation: ai-invoice-reveal .3s ease-out;
}
.ai-invoice-section :is(button, a):focus-visible {
  outline: 3px solid #087d97;
  outline-offset: 5px;
}
@keyframes ai-invoice-turn {
  to { transform: rotate(360deg); }
}
@keyframes ai-invoice-flow {
  0%, 100% { translate: -3px 0; }
  50% { translate: 3px 0; }
}
@keyframes ai-invoice-reveal {
  from { transform: translateY(4px); }
  to { transform: translateY(0); }
}

@media (max-width: 1100px) {
  .ai-section.ai-invoice-section { padding: 38px 27px; }
  .ai-invoice-demo { grid-template-columns: minmax(0, .85fr) 43px minmax(0, 1.15fr); gap: 13px; }
  .ai-invoice-section .ai-request-panel > h3 { font-size: 25px; }
  .ai-message { padding: 21px; }
  .ai-message-text { font-size: 15px; }
  .ai-connector-icon { width: 41px; height: 41px; }
  .ai-demo-connector .ai-connector-arrow { width: 43px; }
  .ai-invoice-paper { aspect-ratio: auto; min-height: 760px; padding: 28px 23px 24px; }
  .ai-invoice-branding strong { font-size: 23px; }
  .ai-invoice-address-row { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .ai-invoice-meta { max-width: 300px; margin-left: auto; width: 100%; }
  .ai-invoice-table thead th, .ai-invoice-table tbody th, .ai-invoice-table tbody td { padding-inline: 5px; }
  .ai-invoice-table thead th:first-child { width: 42%; }
  .ai-invoice-table thead th:nth-child(2) { width: 16%; }
  .ai-invoice-table thead th:nth-child(3), .ai-invoice-table thead th:nth-child(4) { width: 21%; }
}

@media (max-width: 850px) {
  .ai-section.ai-invoice-section { padding: 35px; }
  .ai-invoice-section > .section-intro { margin-bottom: 33px; }
  .ai-invoice-demo { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .ai-request-panel { width: 100%; max-width: 650px; margin-inline: auto; }
  .ai-invoice-section .ai-request-panel > h3 { max-width: none; font-size: 27px; }
  .ai-demo-explainer { max-width: 570px; }
  .ai-invoice-section .language-tabs { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .ai-message { padding: 25px; }
  .ai-message-text { font-size: 16px; }
  .ai-message-text[dir='rtl'] { font-size: 17px; }
  .ai-invoice-section #ai-generate.button.primary { max-width: 420px; }
  .ai-generate-wrap { max-width: 420px; }
  .ai-demo-status { min-height: 0; margin-top: 13px; }
  .ai-demo-connector { min-height: 112px; flex-direction: row; padding: 17px 0 20px; gap: 13px; }
  .ai-connector-icon { width: 44px; height: 44px; }
  .ai-demo-connector .ai-connector-arrow { width: 61px; height: 39px; transform: rotate(90deg); }
  .ai-document-panel { width: 100%; max-width: 650px; margin-inline: auto; }
  .ai-invoice-paper { min-height: 820px; padding: 33px 31px 28px; }
  .ai-invoice-address-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 25px; }
  .ai-invoice-table thead th:first-child { width: 44%; }
  .ai-invoice-table thead th:nth-child(2) { width: 16%; }
  .ai-invoice-table thead th:nth-child(3), .ai-invoice-table thead th:nth-child(4) { width: 20%; }
  .ai-invoice-table thead th, .ai-invoice-table tbody th, .ai-invoice-table tbody td { padding-inline: 7px; }
  .ai-demo-disclosure { margin-top: 25px; }
  .ai-invoice-demo.is-generating .ai-connector-arrow { animation-name: ai-invoice-flow-down; }
}

@media (max-width: 640px) {
  .ai-section.ai-invoice-section { padding: 29px 21px; }
  .ai-invoice-section > .section-intro { margin-bottom: 31px; }
  .ai-demo-panel-label, .ai-document-heading { gap: 10px; margin-bottom: 18px; font-size: 12px; }
  .ai-step-number { flex-basis: 33px; width: 33px; height: 33px; font-size: 12px; }
  .ai-invoice-section .ai-request-panel > h3 { font-size: 25px; line-height: 1.3; }
  .ai-demo-explainer { margin-bottom: 23px; font-size: 14px; }
  .ai-invoice-section .language-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; margin-bottom: 19px; }
  .ai-invoice-section .language-tabs button { min-height: 48px; font-size: 13px; }
  .ai-message { padding: 22px 19px; border-radius: 0 13px 13px 13px; }
  .ai-message-heading { gap: 9px; margin-bottom: 16px; font-size: 12px; }
  .ai-message-avatar { flex-basis: 31px; width: 31px; height: 31px; }
  .ai-message-text { font-size: 16px; line-height: 1.85; }
  .ai-message-text ul { gap: 13px; padding-inline-start: 18px; }
  .ai-message-text li { padding-inline-start: 1px; }
  .ai-message-text[dir='rtl'] { font-size: 17px; }
  .ai-fixed-example { margin-top: 13px; font-size: 12px; line-height: 1.85; }
  .ai-invoice-section #ai-generate.button.primary { max-width: none; min-height: 54px; padding-inline: 13px; gap: 9px; font-size: 14px; }
  .ai-generate-wrap { max-width: none; }
  .ai-demo-status { font-size: 12px; line-height: 1.85; }
  .ai-demo-connector { min-height: 108px; padding-block: 18px 21px; }
  .ai-invoice-section .ai-document-heading > h3 { font-size: 13px; }
  .ai-document-language { min-width: 32px; font-size: 12px; }
  .ai-invoice-paper { min-height: 0; aspect-ratio: auto; padding: 26px 20px 22px; border-radius: 2px; }
  .ai-invoice-branding { flex-wrap: wrap; gap: 12px; padding-bottom: 18px; }
  .ai-invoice-branding strong { font-size: 25px; }
  .ai-invoice-branding > span { font-size: 12px; }
  .ai-invoice-caption { margin-block: 12px 27px; font-size: 12px; line-height: 1.8; }
  .ai-invoice-address-row { grid-template-columns: minmax(0, 1fr); gap: 23px; margin-bottom: 27px; }
  .ai-invoice-recipient { font-size: 14px; line-height: 1.8; }
  .ai-invoice-meta { max-width: none; width: 100%; margin: 0; gap: 7px 12px; font-size: 12px; }
  .ai-invoice-intro { margin-bottom: 20px; font-size: 13px; line-height: 1.85; }
  .ai-invoice-table { display: block; width: 100%; }
  .ai-invoice-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
  .ai-invoice-table tbody { display: grid; width: 100%; }
  .ai-invoice-table tbody tr { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 9px; padding: 18px 0; }
  .ai-invoice-table tbody tr:first-child { border-top: 1px solid var(--studio-border); }
  .ai-invoice-table tbody th { grid-column: 1 / -1; padding: 0 0 14px; }
  .ai-invoice-table tbody th strong { font-size: 14px; margin-bottom: 5px; }
  .ai-invoice-table tbody th small { font-size: 12px; line-height: 1.8; }
  .ai-invoice-table tbody td { display: block; padding: 0; text-align: left; font-size: 12px; line-height: 1.8; }
  .ai-invoice-table tbody td::before { content: attr(data-label); display: block; margin-bottom: 4px; color: var(--ai-demo-muted); font-size: 12px; font-weight: 400; line-height: 1.5; }
  .ai-invoice-table tbody td:last-child { text-align: right; white-space: normal; }
  .ai-invoice-table tbody td:last-child::before { text-align: right; }
  .ai-invoice-totals { width: 100%; margin-top: 22px; font-size: 13px; }
  .ai-invoice-totals > div { gap: 10px; }
  .ai-invoice-totals .is-total dt { font-size: 14px; }
  .ai-invoice-totals .is-total dd { font-size: 25px; }
  .ai-invoice-payment { margin: 27px 0 28px; font-size: 12px; line-height: 1.85; }
  .ai-invoice-footer { flex-direction: column; gap: 8px; font-size: 12px; line-height: 1.85; }
  .ai-invoice-footer > span { max-width: none; }
  .ai-translation-note { gap: 8px; font-size: 12px; line-height: 1.85; }
  .ai-demo-disclosure { margin-top: 24px; padding-top: 21px; font-size: 12px; line-height: 1.9; }
}

@media (max-width: 380px) {
  .ai-section.ai-invoice-section { padding: 26px 16px; }
  .ai-message { padding-inline: 16px; }
  .ai-invoice-section #ai-generate.button.primary { padding-inline: 10px; gap: 7px; font-size: 13px; }
  .ai-invoice-section #ai-generate svg { width: 18px; height: 18px; }
  .ai-button-icon { flex-basis: 18px; }
  .ai-invoice-section .ai-document-heading > h3 { font-size: 12px; }
  .ai-invoice-paper { padding: 24px 15px 21px; }
  .ai-invoice-branding strong { font-size: 24px; }
  .ai-invoice-meta { gap: 7px 10px; }
  .ai-invoice-table tbody tr { gap: 0 7px; }
  .ai-invoice-table tbody td { font-size: 12px; }
  .ai-invoice-totals .is-total dd { font-size: 23px; }
}

@keyframes ai-invoice-flow-down {
  0%, 100% { translate: 0 -3px; }
  50% { translate: 0 3px; }
}
@media (prefers-reduced-motion: reduce) {
  .ai-invoice-demo .ai-button-icon svg,
  .ai-invoice-demo .ai-connector-icon svg,
  .ai-invoice-demo .ai-connector-arrow,
  .ai-invoice-demo .ai-invoice-paper,
  .ai-invoice-demo.has-scroll-intro .ai-document-panel,
  .ai-invoice-demo.has-scroll-intro .ai-demo-connector,
  .ai-invoice-section .language-tabs button,
  .ai-invoice-section #ai-generate {
    animation: none !important;
    transition: none !important;
    translate: none;
  }
  .ai-invoice-demo.is-ready .ai-invoice-paper { transform: none; }
  .ai-invoice-demo .ai-demo-cursor { display: none !important; }
  .ai-invoice-demo.has-scroll-intro .ai-document-panel,
  .ai-invoice-demo.has-scroll-intro .ai-demo-connector { opacity: 1; visibility: visible; transform: none; }
}
.ai-fixed-example > svg,
.ai-translation-note > svg,
.ai-demo-disclosure > svg { color: #59684e; }
.ai-demo-connector > .ai-connector-icon { color: #526b3d; }
