/* order-intake landing page. Loads after design-system.css and home.css and reuses their tokens. */
.oi-page .ts-hero { padding: 64px 0 72px; }
/* Long German compounds ("Kundenbestellungen") must wrap instead of widening the grid on phones. */
.oi-page .ts-hero h1 { font-size: clamp(34px, 5.4vw, 64px); hyphens: auto; overflow-wrap: break-word; }
.oi-page .ts-res-grid > * { min-width: 0; }
.oi-intro { max-width: 62ch; }
.oi-mono { font-family: var(--font-mono); }

/* Example order: what the customer wrote, what order-intake matched, and the line left for a person. */
.oi-order { margin: 0; color: #fff; }
.oi-order-card { padding: 22px; border-radius: var(--radius-card); background: #fff; color: var(--ink); box-shadow: 0 24px 60px #00000040; }
.oi-order-head { display: flex; justify-content: space-between; gap: 12px; margin: 0 0 14px; font-size: 14px; font-weight: 600; color: #5b6478; }
/* Lines are rows separated by hairlines, not boxes inside the card. */
.oi-lines { display: grid; margin: 0; padding: 0; list-style: none; border-top: 1px solid #e1e3e8; }
.oi-line { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 4px 12px; padding: 14px 0; border-bottom: 1px solid #e1e3e8; animation: oi-line-in 1s var(--ease-out) .55s both; }
/* Lines focus in one by one after the card has landed. */
.oi-line:nth-child(2) { animation-delay: .8s; }
.oi-line:nth-child(3) { animation-delay: 1.05s; }
.oi-from { font-size: 13px; color: #5b6478; }
.oi-to { font-size: 13px; font-weight: 600; text-align: right; }
.oi-status { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; }
/* Check mark for matched lines, exclamation mark for the line a person must decide. */
.oi-icon { position: relative; flex: none; width: 18px; height: 18px; border-radius: 50%; background: #2457ff; }
.oi-icon::after { content: ''; position: absolute; left: 6.5px; top: 3.5px; width: 4px; height: 8px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.oi-line.is-open .oi-icon { background: var(--ink); }
.oi-line.is-open .oi-icon::after { content: '!'; left: 0; top: 0; width: 100%; height: 100%; border: 0; transform: none; font: 700 12px/18px var(--font-display); text-align: center; color: #fff; }
.oi-order-foot { margin: 14px 0 0; font-size: 14px; font-weight: 600; color: #5b6478; }
@keyframes oi-line-in { from { opacity: 0; filter: blur(6px); transform: translateY(12px); } }

.oi-offer { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.oi-page .ts-res-author { grid-template-columns: 96px minmax(0, 1fr); }
.oi-page .ts-res-author p { margin: 0; }

@media (max-width: 900px) {
  .oi-offer { grid-template-columns: 1fr; }
  .oi-order { max-width: 520px; }
}
@media (max-width: 640px) {
  .oi-order-card { padding: 16px; }
  .oi-line { grid-template-columns: 1fr; }
  .oi-to { text-align: left; }
  .oi-page .ts-res-author { grid-template-columns: 72px minmax(0, 1fr); }
}
