/* Rheinlogistik — Inter typography, neutral surfaces, cobalt accents. */
@font-face {
  font-family: "Inter";
  src: url("/fonts/InterVariable.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}
:root {
  --bg: #f6f7fb;
  --surface: #eceef5;
  --paper: #ffffff;
  --text: #171b26;
  --muted: #626b7c;
  --border: #dfe3ec;
  --line: #dfe3ec;
  --accent: #315bea;
  --button: #315bea;
  --button-text: #ffffff;
  --soft: #edf1ff;
  --warn: #8b5713;
  --warn-bg: #fff4df;
  --success: #22734b;
  --success-bg: #e9f6ee;
  --shadow: 0 20px 60px #1722440c;
  --panel: #e8edfb;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #111318;
  --surface: #20232c;
  --paper: #1a1d25;
  --text: #f5f6fb;
  --muted: #a2aabb;
  --border: #303542;
  --line: #303542;
  --accent: #9ab1ff;
  --button: #c7d3ff;
  --button-text: #17234b;
  --soft: #222b43;
  --warn: #f4cc8a;
  --warn-bg: #372c1e;
  --success: #9cd5b4;
  --success-bg: #1e3329;
  --panel: #252e47;
  --shadow: 0 20px 60px #0003;
  color-scheme: dark;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-optical-sizing: auto;
  font-feature-settings: "cv11", "ss01";
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a,
input,
textarea,
select,
summary {
  touch-action: manipulation;
}
button,
summary {
  cursor: pointer;
}
button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
button,
a,
summary {
  -webkit-tap-highlight-color: transparent;
}
a {
  color: var(--accent);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: 44px;
  line-height: 1.1;
  font-weight: 500;
  letter-spacing: -1.8px;
}
h2 {
  font-size: 26px;
  line-height: 1.25;
  font-weight: 500;
  letter-spacing: -0.8px;
}
h3 {
  font-size: 17px;
  font-weight: 600;
}
p {
  margin-bottom: 16px;
}
svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 1.65;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
small,
.small {
  font-size: 13px;
  color: var(--muted);
}
.muted {
  color: var(--muted);
}
.skip {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 99;
  padding: 16px;
  background: var(--paper);
}
.skip:focus {
  top: 8px;
}
.workspace {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
.header {
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 clamp(24px, 5vw, 80px);
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--text);
  font-weight: 650;
  font-size: 23px;
  letter-spacing: -1px;
  text-decoration: none !important;
}
.brand-mark {
  width: 33px;
  height: 33px;
  stroke-width: 2.5;
  color: var(--accent);
}
.brand-period {
  color: var(--accent);
}
.top-nav {
  display: flex;
  gap: 8px;
  padding: 5px;
  border-radius: 99px;
  background: var(--surface);
}
.top-nav a {
  color: var(--muted);
  font-size: 13px;
  font-weight: 550;
  padding: 8px 22px;
  border-radius: 99px;
  text-decoration: none;
}
.top-nav a[aria-current] {
  background: var(--paper);
  color: var(--text);
  box-shadow: 0 2px 5px #26346110;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}
.test-badge {
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.test-dot,
.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  display: inline-block;
  flex-shrink: 0;
}
.icon-button {
  min-width: 44px;
  min-height: 44px;
  border: 0;
  background: transparent;
  color: var(--muted);
  display: grid;
  place-items: center;
  border-radius: 50%;
}
.icon-button:hover {
  background: var(--surface);
  color: var(--text);
}
.button {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 20px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--paper);
  color: var(--text);
  font-weight: 500;
  font-size: 14px;
  text-decoration: none !important;
}
.button:hover {
  background: var(--surface);
}
.button.primary {
  background: var(--button);
  color: var(--button-text);
  border-color: transparent;
}
.button.primary:hover {
  opacity: 0.9;
}
.button.link {
  border: 0;
  background: transparent;
  color: var(--accent);
  padding: 10px 12px;
}
.button.danger {
  color: #bd3c36;
}
.button.full {
  width: 100%;
}
.utility-menu {
  position: relative;
}
summary {
  list-style: none;
}
summary::-webkit-details-marker {
  display: none;
}
.menu-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  width: 244px;
  max-width: calc(100vw - 32px);
  padding: 8px;
  z-index: 45;
  border: 1px solid var(--border);
  background: var(--paper);
  border-radius: 16px;
  box-shadow: var(--shadow);
}
.menu-caption {
  display: block;
  padding: 12px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.3px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 6px;
  overflow-wrap: anywhere;
}
.menu-panel button,
.menu-panel a {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  border: 0;
  border-radius: 8px;
  padding: 12px;
  min-height: 44px;
  background: transparent;
  color: var(--text);
  font-size: 13px;
  text-align: left;
  text-decoration: none;
}
.menu-panel button:hover,
.menu-panel a:hover {
  background: var(--surface);
}
.menu-panel svg {
  width: 17px;
  height: 17px;
  color: var(--muted);
}
#main {
  flex: 1;
  outline: none;
  min-width: 0;
}
.welcome {
  max-width: 816px;
  padding: clamp(48px, 9vh, 110px) 32px 64px;
  margin: auto;
}
.welcome-heading {
  text-align: center;
  margin-bottom: 38px;
}
.eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-size: 11px;
  letter-spacing: 1.4px;
  font-weight: 550;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 26px;
}
.welcome h1 {
  font-size: clamp(52px, 6vw, 82px);
  letter-spacing: -4px;
  line-height: 1.04;
  margin: 0 0 26px;
  font-weight: 500;
}
.welcome h1 span,
.orders-intro h1 span {
  color: var(--accent);
}
.welcome-heading p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--muted);
  margin-bottom: 0;
}
.composer {
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 24px 22px 16px;
  background: var(--paper);
  box-shadow:
    0 8px 32px #26346109,
    0 1px 2px #26346104;
}
.composer:focus-within {
  border-color: var(--accent);
  box-shadow: 0 8px 32px #26346110;
}
.composer textarea {
  width: 100%;
  min-height: 76px;
  max-height: 180px;
  resize: none;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--text);
  padding: 0;
  font-size: 17px;
  line-height: 1.6;
}
.composer textarea::placeholder {
  color: var(--muted);
  opacity: 0.9;
}
.composer-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.composer-tools .left {
  display: flex;
  gap: 8px;
  align-items: center;
  min-width: 0;
}
.file-button {
  display: grid;
  place-items: center;
  width: 36px;
  height: 44px;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 50%;
  color: var(--muted);
  flex-shrink: 0;
}
.file-button:hover {
  background: var(--surface);
  color: var(--text);
}
.composer-hint {
  font-size: 11px;
  color: var(--muted);
}
.send {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: var(--button);
  color: var(--button-text);
  border: 0;
  border-radius: 50%;
}
.send:disabled {
  opacity: 1;
  background: var(--surface);
  color: var(--muted);
}
.composer-caption {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  color: var(--muted);
  font-size: 11px;
  margin: 10px 8px 0;
}
.example-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 0;
  min-height: 44px;
  border: 0;
  color: var(--accent);
  background: transparent;
  font-size: 11px;
  white-space: nowrap;
}
.example-link:hover {
  text-decoration: underline;
}
.service-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 52px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}
.service-rule {
  width: 28px;
  height: 1px;
  background: var(--border);
}
.ai-note {
  font-size: 11px;
  color: var(--muted);
  text-align: center;
  margin: 16px 0 0;
}
footer {
  padding: 24px clamp(24px, 5vw, 80px) 28px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  font-size: 10px;
  color: var(--muted);
}
.footer-brand {
  white-space: nowrap;
}
.footer-brand span {
  margin: 0 6px;
}
.footer-links {
  display: flex;
  gap: 20px;
  align-items: center;
}
footer a {
  color: var(--muted);
}
.footer-more {
  position: relative;
}
.footer-more summary {
  display: flex;
  align-items: center;
  gap: 4px;
  min-height: 44px;
}
.footer-more svg {
  width: 12px;
  height: 12px;
}
.footer-more > div {
  position: absolute;
  right: 0;
  bottom: 100%;
  background: var(--paper);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  min-width: 140px;
  z-index: 10;
}
.footer-more a {
  display: block;
  padding: 8px;
}
.mobile-nav {
  display: none;
}
.sidebar {
  display: none;
  position: fixed;
  inset: 0 auto 0 0;
  width: min(340px, calc(100vw - 32px));
  background: var(--paper);
  padding: 24px;
  z-index: 60;
  box-shadow: var(--shadow);
  overflow-y: auto;
}
.sidebar.open {
  display: flex;
  flex-direction: column;
}
.history-backdrop {
  position: fixed;
  inset: 0;
  z-index: 59;
  background: #10172b55;
  backdrop-filter: blur(4px);
}
.history-backdrop[hidden] {
  display: none;
}
.drawer-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 24px;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 12px;
  color: var(--text);
  border-radius: 10px;
  font-size: 14px;
}
.nav-item.new {
  background: var(--surface);
}
.sidebar-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
  margin: 36px 12px 12px;
}
.recent {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 14px 12px;
  color: var(--text);
  font-size: 14px;
  border-bottom: 1px solid var(--border);
}
.recent span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.recent svg {
  width: 14px;
  height: 14px;
  color: var(--muted);
}
.drawer-empty {
  padding: 12px;
  font-size: 13px;
  color: var(--muted);
}
.orders-welcome {
  max-width: 1160px;
  padding: clamp(60px, 12vh, 140px) 32px 80px;
  margin: auto;
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  align-items: center;
  gap: 80px;
}
.orders-intro .eyebrow {
  justify-content: flex-start;
}
.orders-intro h1 {
  font-size: clamp(52px, 5.5vw, 76px);
  line-height: 1.05;
  letter-spacing: -3.5px;
  margin-bottom: 28px;
}
.orders-intro > p {
  font-size: 16px;
  line-height: 1.75;
  color: var(--muted);
  max-width: 330px;
  margin-bottom: 32px;
}
.orders-intro .primary {
  padding: 15px 22px;
  border-radius: 14px;
}
.orders-intro .primary svg {
  margin-left: 16px;
  width: 17px;
}
.login-hint {
  display: block;
  margin-top: 15px;
  color: var(--muted);
  font-size: 11px;
}
.journey-panel {
  background: var(--panel);
  border-radius: 28px;
  padding: 32px;
  color: var(--text);
}
.journey-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.journey-label {
  font-size: 11px;
  color: var(--muted);
}
.journey-top .brand-mark {
  width: 26px;
  height: 26px;
}
.journey-route {
  display: flex;
  align-items: center;
  gap: 0;
  margin-top: 64px;
}
.route-start,
.route-end {
  width: 14px;
  height: 14px;
  border: 2px solid var(--accent);
  border-radius: 50%;
}
.route-end {
  background: var(--accent);
  box-shadow: 0 0 0 7px color-mix(in srgb, var(--accent) 10%, transparent);
}
.route-line {
  flex: 1;
  height: 1px;
  background: var(--accent);
  margin: 0 8px;
  opacity: 0.5;
}
.route-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 14px;
  font-size: 16px;
  letter-spacing: -0.3px;
}
.journey-stages {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 56px;
  border-top: 1px solid color-mix(in srgb, var(--accent) 18%, transparent);
  padding-top: 24px;
}
.journey-stages span {
  display: block;
  font-size: 10px;
  color: var(--muted);
  margin-bottom: 14px;
}
.journey-stages strong {
  display: block;
  font-size: 12px;
  font-weight: 550;
}
.journey-stages p {
  font-size: 11px;
  color: var(--muted);
  margin: 8px 0 0;
  line-height: 1.6;
}
.journey-note {
  color: var(--muted);
  font-size: 10px;
  margin: 32px 0 0;
}
.order-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  margin: 24px 0 16px;
}
.page {
  max-width: 1040px;
  margin: 0 auto;
  padding: 32px 40px 64px;
}
.page.narrow {
  max-width: 960px;
}
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 32px;
}
.page-heading h1 {
  font-size: 32px;
  margin-bottom: 8px;
}
.page-heading p {
  color: var(--muted);
  margin-bottom: 0;
}
.chat {
  max-width: 824px;
  padding: 16px 32px 32px;
  margin: auto;
}
.chat-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}
.chat-title h2 {
  font-size: 20px;
  margin: 0;
}
.bubble {
  margin: 16px 0 24px;
  max-width: 85%;
  padding: 16px 20px;
  border-radius: 20px;
  background: var(--surface);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.bubble.user {
  margin-left: auto;
  border-bottom-right-radius: 4px;
}
.assistant {
  display: flex;
  gap: 12px;
  margin: 24px 0;
  align-items: flex-start;
}
.assistant-icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.assistant-content {
  flex: 1;
}
.assistant-content .label {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
}
.assistant-content .label span {
  font-size: 12px;
  font-weight: 400;
  color: var(--muted);
  padding-left: 8px;
}
.assistant-content p {
  margin: 0;
  white-space: pre-wrap;
}
.chat-composer {
  position: sticky;
  bottom: 16px;
  padding-top: 16px;
  background: var(--bg);
  z-index: 4;
}
.card {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 24px;
  margin-bottom: 20px;
}
.card.soft {
  background: var(--surface);
}
.card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}
.card-top h3 {
  margin: 0;
}
.stepper {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
}
.step {
  height: 4px;
  background: var(--border);
  border-radius: 99px;
  flex: 1;
}
.step.done {
  background: var(--accent);
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-grid.three {
  grid-template-columns: repeat(3, 1fr);
}
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  font-size: 14px;
}
.field.full {
  grid-column: 1/-1;
}
.field label {
  font-weight: 500;
}
.field input,
.field select,
.field textarea,
.search-input {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg);
  color: var(--text);
  padding: 11px 12px;
  max-width: 100%;
  font-size: 16px;
}
.field textarea {
  min-height: 96px;
  resize: vertical;
}
.field .hint {
  font-size: 12px;
  color: var(--muted);
}
.field .field-error {
  font-size: 13px;
  color: #bd3c36;
}
.field input[aria-invalid="true"] {
  border-color: #bd3c36;
}
.fieldset {
  border: 0;
  padding: 0;
  margin: 0 0 24px;
}
.fieldset legend {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 16px;
}
.row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.row.between {
  justify-content: space-between;
}
.form-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
}
.checkbox {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 14px;
  margin: 16px 0;
}
.checkbox input {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin: 2px 0;
  accent-color: var(--accent);
}
.notice {
  padding: 16px;
  border-radius: 12px;
  background: var(--warn-bg);
  color: var(--warn);
  font-size: 14px;
  margin: 16px 0;
  overflow-wrap: anywhere;
}
.notice.info {
  background: var(--soft);
  color: var(--accent);
}
.notice.success {
  background: var(--success-bg);
  color: var(--success);
}
.error-notice {
  background: var(--warn-bg);
  color: var(--warn);
  border-left: 3px solid var(--warn);
  padding: 16px;
  border-radius: 8px;
  margin: 16px 0;
}
.quote-route {
  font-size: 24px;
  letter-spacing: -0.5px;
  font-weight: 600;
  margin-bottom: 8px;
}
.quote-meta {
  font-size: 14px;
  color: var(--muted);
}
.divider {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 24px 0;
}
.price-row {
  display: flex;
  justify-content: space-between;
  font-size: 15px;
  margin-bottom: 8px;
}
.price-row.total {
  font-size: 21px;
  font-weight: 600;
  margin-top: 16px;
}
.price-main {
  font-size: 38px;
  font-weight: 600;
  letter-spacing: -1px;
}
.price-main span {
  font-size: 15px;
  color: var(--muted);
  letter-spacing: 0;
  font-weight: 400;
}
.summary-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  font-size: 14px;
}
.summary-grid h4 {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--muted);
  margin: 0 0 8px;
}
.summary-grid p {
  margin: 0;
  overflow-wrap: anywhere;
}
.summary-wide {
  grid-column: 1/-1;
}
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--surface);
  color: var(--muted);
  font-size: 12px;
  padding: 5px 10px;
  border-radius: 999px;
  line-height: 1.5;
}
.tag.success {
  background: var(--success-bg);
  color: var(--success);
}
.tag.warning {
  background: var(--warn-bg);
  color: var(--warn);
}
.order-list {
  display: grid;
  gap: 16px;
}
.order-card {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  text-align: left;
  color: var(--text);
  background: var(--bg);
  display: block;
}
.order-card:hover {
  background: var(--surface);
  text-decoration: none;
}
.order-card h3 {
  font-size: 20px;
  letter-spacing: -0.4px;
  margin-bottom: 8px;
}
.order-card .row {
  margin-top: 20px;
}
.empty {
  padding: 48px 24px;
  text-align: center;
  color: var(--muted);
  background: var(--surface);
  border-radius: 16px;
}
.empty svg {
  width: 32px;
  height: 32px;
  margin-bottom: 16px;
}
.empty h2 {
  font-size: 22px;
  color: var(--text);
}
.filters {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.filters input {
  flex: 1;
  min-width: 160px;
}
.filters select {
  min-height: 48px;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
}
.timeline {
  list-style: none;
  padding: 0;
  margin: 0;
}
.timeline li {
  position: relative;
  margin-left: 8px;
  padding: 0 0 24px 28px;
  border-left: 1px solid var(--border);
}
.timeline li:last-child {
  padding-bottom: 0;
  border: 0;
}
.timeline li::before {
  content: "";
  position: absolute;
  top: 5px;
  left: -5px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--bg);
}
.timeline strong {
  display: block;
  font-size: 14px;
}
.timeline time {
  font-size: 12px;
  color: var(--muted);
}
.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}
.stat {
  background: var(--surface);
  border-radius: 16px;
  padding: 24px;
}
.stat span {
  font-size: 13px;
  color: var(--muted);
}
.stat strong {
  display: block;
  font-size: 32px;
  letter-spacing: -1px;
  margin-top: 8px;
}
.resource {
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.resource:last-child {
  border-bottom: 0;
}
.resource h3 {
  margin-bottom: 6px;
}
.resource p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}
.inbox-message {
  margin-bottom: 16px;
}
.inbox-message h3 {
  margin-bottom: 8px;
}
.inbox-message pre {
  font-family: inherit;
  font-size: 14px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 1.6;
}
.code {
  letter-spacing: 6px;
  font-size: 28px;
  font-weight: 600;
}
.offline {
  background: var(--warn-bg);
  color: var(--warn);
  padding: 12px 24px;
  text-align: center;
  font-size: 14px;
}
#toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  max-width: 600px;
  width: max-content;
  background: var(--button);
  color: var(--button-text);
  padding: 14px 20px;
  border-radius: 12px;
  box-shadow: var(--shadow);
  z-index: 100;
  font-size: 14px;
}
dialog {
  color: var(--text);
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 32px;
  width: min(520px, calc(100% - 32px));
  max-height: 90dvh;
  box-shadow: var(--shadow);
}
dialog::backdrop {
  background: #10192370;
  backdrop-filter: blur(3px);
}
dialog .close {
  float: right;
}
dialog h2 {
  margin-right: 44px;
}
.loading {
  padding: 80px 24px;
  text-align: center;
  color: var(--muted);
}
.loading svg {
  display: block;
  margin: 0 auto 16px;
}
.two-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.mobile-brand,
.menu-toggle {
  display: none;
}
.address-select {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px;
  background: var(--surface);
  color: var(--text);
  margin-bottom: 16px;
}
.cargo-item {
  padding: 20px;
  background: var(--surface);
  border-radius: 12px;
  margin-bottom: 16px;
}
.cargo-item .field input,
.cargo-item .field select {
  background: var(--bg);
}
.cargo-head {
  display: flex;
  justify-content: space-between;
  margin-bottom: 16px;
}
.view-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.legal {
  font-size: 15px;
  line-height: 1.8;
}
.legal h2 {
  margin-top: 32px;
}
.legal li {
  margin-bottom: 8px;
}
.hidden {
  display: none !important;
}
body.history-open,
body.modal-open {
  overflow: hidden;
}

@media (max-width: 1000px) {
  .orders-welcome {
    gap: 40px;
    padding-top: 80px;
  }
  .journey-panel {
    padding: 26px;
  }
  .header {
    padding: 0 28px;
  }
  .wordmark {
    font-size: 21px;
  }
  .header-actions {
    gap: 10px;
  }
}
@media (max-width: 767px) {
  .header {
    height: auto;
    min-height: 112px;
    padding: 14px 20px 0;
    flex-wrap: wrap;
    gap: 0;
    align-content: center;
  }
  .wordmark {
    font-size: 20px;
  }
  .brand-mark {
    width: 28px;
    height: 28px;
  }
  .header-actions {
    margin-left: auto;
  }
  .header .test-badge {
    font-size: 9px;
    gap: 5px;
  }
  .top-nav {
    order: 3;
    width: 100%;
    background: transparent;
    padding: 0;
    margin-top: 12px;
    gap: 24px;
    border-radius: 0;
    border-bottom: 1px solid var(--border);
  }
  .top-nav a {
    padding: 10px 0 13px;
    border-radius: 0;
    font-size: 12px;
    border-bottom: 2px solid transparent;
  }
  .top-nav a[aria-current] {
    background: transparent;
    box-shadow: none;
    border-color: var(--accent);
  }
  .welcome {
    padding: 52px 20px 42px;
  }
  .eyebrow {
    font-size: 9px;
    letter-spacing: 1px;
    margin-bottom: 24px;
  }
  .welcome h1 {
    font-size: clamp(46px, 8.5vw, 64px);
    letter-spacing: -2.4px;
    margin-bottom: 22px;
  }
  .welcome-heading {
    margin-bottom: 30px;
  }
  .welcome-heading p {
    font-size: 14px;
  }
  .composer {
    padding: 20px 16px 12px;
    border-radius: 20px;
  }
  .composer textarea {
    min-height: 100px;
    font-size: 16px;
  }
  .composer-hint {
    font-size: 10px;
  }
  .composer-caption {
    font-size: 9px;
    gap: 10px;
    margin: 8px 2px 0;
    align-items: flex-start;
  }
  .composer-caption > span {
    padding-top: 12px;
    max-width: 170px;
  }
  .example-link {
    font-size: 10px;
  }
  .service-line {
    margin-top: 32px;
    font-size: 8px;
    gap: 10px;
    letter-spacing: 0.8px;
  }
  .service-rule {
    width: 20px;
  }
  footer {
    padding: 16px 20px 24px;
    flex-direction: column;
    gap: 6px;
    font-size: 9px;
  }
  .footer-links {
    gap: 20px;
  }
  footer a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }
  .orders-welcome {
    padding: 44px 24px 40px;
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .orders-intro h1 {
    font-size: 56px;
    letter-spacing: -2.5px;
    margin-bottom: 22px;
  }
  .orders-intro > p {
    font-size: 14px;
    margin-bottom: 24px;
    max-width: 340px;
  }
  .orders-intro .eyebrow {
    margin-bottom: 20px;
  }
  .journey-panel {
    padding: 24px;
    border-radius: 22px;
  }
  .journey-route {
    margin-top: 36px;
  }
  .journey-stages {
    margin-top: 36px;
    gap: 14px;
  }
  .journey-stages strong {
    font-size: 11px;
  }
  .journey-stages p {
    font-size: 10px;
  }
  .page {
    padding: 32px 20px 40px;
  }
  .page-heading {
    gap: 12px;
    margin-bottom: 24px;
    align-items: flex-start;
  }
  .page-heading h1 {
    font-size: 30px;
  }
  .page-heading .button {
    padding: 10px;
    font-size: 12px;
  }
  .chat {
    padding: 28px 16px;
  }
  .chat-composer {
    bottom: 12px;
  }
  .chat-composer .composer-hint {
    display: none;
  }
  .card {
    padding: 20px;
  }
  .form-grid {
    gap: 12px;
  }
  .form-grid.three {
    grid-template-columns: 1fr 1fr;
  }
  .field {
    font-size: 13px;
  }
  .field input,
  .field select {
    padding: 10px 8px;
  }
  .field.full-mobile {
    grid-column: 1/-1;
  }
  .two-columns,
  .summary-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .summary-wide {
    grid-column: auto;
  }
  .stat-grid {
    grid-template-columns: 1fr 1fr;
  }
  .stat {
    padding: 16px;
  }
  .stat-grid .stat:last-child {
    grid-column: 1/-1;
  }
  .quote-route {
    font-size: 22px;
  }
  .price-main {
    font-size: 34px;
  }
  .order-card {
    padding: 20px;
  }
  .order-card .tag {
    font-size: 11px;
  }
  .bubble {
    max-width: 92%;
  }
  .assistant-content .label span {
    display: block;
    padding: 0;
    margin-top: 2px;
  }
  .form-actions {
    flex-wrap: wrap;
  }
  .form-actions .primary {
    margin-left: auto;
  }
  .order-actions {
    gap: 4px;
  }
  .order-actions .button {
    font-size: 12px;
    padding: 12px;
  }
  #toast {
    bottom: 20px;
    width: calc(100% - 32px);
    text-align: center;
  }
  dialog {
    padding: 24px;
  }
  .row .button {
    font-size: 14px;
  }
}
@media (max-width: 360px) {
  .header {
    padding-right: 14px;
    padding-left: 14px;
  }
  .wordmark {
    font-size: 19px;
    gap: 4px;
  }
  .header-actions {
    gap: 4px;
  }
  .header .test-badge {
    font-size: 8px;
  }
  .journey-panel {
    padding: 20px;
  }
  .journey-stages {
    gap: 10px;
  }
  .orders-welcome {
    padding-right: 20px;
    padding-left: 20px;
  }
  .orders-intro h1 {
    font-size: 50px;
  }
}
@media (prefers-reduced-motion: no-preference) {
  button,
  a,
  input,
  summary {
    transition:
      background-color 0.18s,
      border-color 0.18s,
      opacity 0.18s;
  }
  dialog[open],
  .menu-panel {
    animation: appear 0.15s ease-out;
  }
  @keyframes appear {
    from {
      opacity: 0;
      transform: translateY(6px);
    }
    to {
      opacity: 1;
      transform: none;
    }
  }
}

/* The transport flow is a conversation; only the final summary is a document. */
.chat-kicker {
  display: block;
  font-size: 10px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 6px;
}
.chat-title {
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 32px;
}
.chat .assistant-icon {
  border: 0;
  background: var(--surface);
}
.chat .assistant-icon .brand-mark {
  width: 24px;
  height: 24px;
}
.chat-composer .composer textarea {
  min-height: 56px;
}
.request-review {
  margin-top: 32px;
  padding: 32px;
}
.request-review .eyebrow {
  justify-content: flex-start;
  margin-bottom: 12px;
}
.request-review h2 {
  margin-bottom: 28px;
}
.request-review .summary-grid {
  gap: 28px;
}
.request-review .summary-grid h4 {
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}
.request-review p {
  overflow-wrap: anywhere;
}
.review-email {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  margin: 20px 0;
  font-size: 13px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  overflow-wrap: anywhere;
}
.review-email > span {
  color: var(--muted);
  font-size: 11px;
}
.review-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
}
.review-actions .primary {
  min-width: 0;
  max-width: 100%;
}
.request-receipt {
  text-align: center;
  padding: 40px 24px;
  margin-top: 32px;
}
.request-receipt .eyebrow {
  margin: 20px 0 16px;
}
.request-receipt p {
  color: var(--muted);
  overflow-wrap: anywhere;
}
.receipt-icon {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--success-bg);
  color: var(--success);
}
.edit-prompt {
  background: var(--soft);
  padding: 16px;
  border-radius: 12px;
  font-size: 14px;
}
@media (max-width: 767px) {
  .request-review {
    padding: 20px;
  }
  .review-actions {
    align-items: stretch;
    flex-direction: column;
    gap: 4px;
  }
  .review-actions .primary {
    width: 100%;
    font-size: 13px;
    text-align: left;
    justify-content: space-between;
  }
  .chat-composer .composer textarea {
    min-height: 64px;
  }
}

/* Customer locations: a quiet list with a local, approximate map. */
.locations-page {
  max-width: 1180px;
}
.locations-layout {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(300px, 1fr);
  gap: 48px;
  align-items: start;
}
.location-card {
  margin-bottom: 16px;
  padding: 28px;
  scroll-margin-top: 110px;
}
.location-card h2 {
  font-size: 24px;
  margin: 6px 0;
}
.location-card p {
  line-height: 1.7;
}
.location-card:focus {
  outline: 2px solid var(--accent, #315bea);
  outline-offset: 4px;
}
.location-map {
  position: sticky;
  top: 105px;
  border-radius: 28px;
  background: var(--surface, #fff);
  overflow: hidden;
  min-height: 470px;
}
.location-map svg {
  height: auto;
  aspect-ratio: 600 / 760;
  display: block;
  width: 100%;
  max-height: 580px;
}
.map-caption {
  position: absolute;
  top: 28px;
  left: 28px;
  z-index: 1;
  pointer-events: none;
}
.map-caption h2 {
  font-size: 27px;
  margin: 6px 0;
}
.map-caption p {
  font-size: 13px;
  color: var(--muted);
}
.map-country {
  fill: #eceff6;
  stroke: var(--surface, #fff);
  stroke-width: 2;
}
.map-germany {
  fill: #dce4f7;
}
.map-marker-halo {
  fill: #315bea1a;
}
.map-marker {
  fill: #315bea;
  stroke: white;
  stroke-width: 2.5;
}
.location-map a:hover .map-marker,
.location-map a:focus .map-marker {
  fill: #182b65;
  stroke-width: 4;
}
.map-count {
  fill: #fff;
  text-anchor: middle;
  font: 600 12px system-ui;
  pointer-events: none;
}
.map-note {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.6;
  padding: 0 24px 20px;
  margin: 0;
}
.map-note a {
  text-decoration: underline;
}
.location-city-output {
  display: block;
  padding: 14px 0;
  font-weight: 500;
}
.location-details {
  margin: 20px 0;
}
.location-details summary {
  cursor: pointer;
  color: var(--muted);
  padding: 8px 0;
}
.location-details .form-grid {
  margin-top: 12px;
}
.location-suggestions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 0 0 18px 48px;
}
.location-suggestion {
  border: 1px solid var(--line, #d9dfd5);
  border-radius: 24px;
  background: transparent;
  color: inherit;
  padding: 9px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}
.location-suggestion svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
}
.location-suggestion:hover {
  background: var(--surface, #fff);
}
[data-theme="dark"] .map-country {
  fill: #252c3a;
  stroke: #1b2334;
}
[data-theme="dark"] .map-germany {
  fill: #445478;
}
@media (max-width: 760px) {
  .locations-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .location-map {
    position: relative;
    top: 0;
    order: -1;
    min-height: 0;
  }
  .location-map svg {
    max-height: 350px;
  }
  .map-caption {
    top: 20px;
    left: 20px;
  }
  .map-caption h2 {
    font-size: 23px;
  }
  .map-caption p {
    max-width: 120px;
  }
  .locations-page .page-heading {
    align-items: flex-start;
    gap: 18px;
    flex-direction: column;
  }
  .location-card {
    padding: 22px;
  }
  .location-suggestions {
    padding-left: 0;
  }
}

.request-trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.public-content {
  width: min(880px, calc(100% - 48px));
  margin: 12px auto 64px;
}
.public-region {
  border-top: 1px solid var(--line, #dbe0d7);
  padding-top: 36px;
}
.public-region h2 {
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.2;
  letter-spacing: -0.03em;
  margin: 16px 0;
}
.public-region p,
.public-page p,
.public-page li {
  line-height: 1.75;
}
.public-region p {
  color: var(--muted);
}
.public-page h2 {
  margin-top: 36px;
}
.public-faq {
  margin-top: 44px;
}
.public-faq details {
  border-bottom: 1px solid var(--line, #dbe0d7);
  padding: 18px 0;
}
.public-faq summary {
  cursor: pointer;
  font-weight: 600;
}
@media (max-width: 600px) {
  .public-content {
    width: calc(100% - 40px);
    margin-bottom: 40px;
  }
  .footer-links {
    flex-wrap: wrap;
  }
}

/* Public identity: the same visual language continues through the customer conversation. */
.header {
  height: 92px;
  border-bottom: 1px solid var(--border);
}
.wordmark {
  font-size: 25px;
  font-weight: 720;
  letter-spacing: -0.065em;
  gap: 11px;
}
.brand-mark {
  width: 42px;
  height: 34px;
  stroke-width: 2;
}
h1,
h2 {
  font-weight: 620;
}
.welcome {
  max-width: 900px;
  padding: clamp(64px, 10vh, 116px) 48px 64px;
}
.welcome-heading {
  margin-bottom: 36px;
}
.welcome .eyebrow {
  font-size: 11px;
  font-weight: 620;
  letter-spacing: 0.14em;
  margin-bottom: 30px;
}
.welcome h1 {
  font-size: clamp(58px, 6.7vw, 88px);
  line-height: 1.01;
  letter-spacing: -0.065em;
  font-weight: 640;
  margin-bottom: 27px;
}
.welcome-heading p {
  font-size: 16px;
  line-height: 1.7;
  letter-spacing: -0.015em;
}
.composer {
  border-radius: 18px;
  padding: 24px 24px 18px;
  box-shadow:
    0 12px 40px #17224408,
    0 1px 4px #17224405;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}
.composer:focus-within {
  border-color: var(--accent);
  box-shadow:
    0 0 0 3px color-mix(in srgb, var(--accent) 9%, transparent),
    0 12px 40px #1722440a;
}
.composer textarea {
  min-height: 84px;
  font-size: 17px;
  line-height: 1.7;
  letter-spacing: -0.018em;
}
.composer textarea::placeholder {
  opacity: 0.75;
}
.composer-hint {
  font-size: 12px;
}
.composer-caption {
  justify-content: center;
  font-size: 12px;
  margin-top: 14px;
}
.composer-caption > span {
  max-width: none;
  padding-top: 0;
}
.send {
  border-radius: 12px;
  width: 46px;
  height: 46px;
  transition:
    transform 0.15s,
    background 0.15s;
}
.send:not(:disabled):hover {
  transform: translateY(-2px);
}
.service-line {
  margin-top: 38px;
  font-size: 11px;
  letter-spacing: 0.02em;
  text-transform: none;
}
.button {
  border-radius: 10px;
  font-size: 14px;
  font-weight: 550;
}
.card {
  border-radius: 18px;
}
.bubble.user {
  border-radius: 18px 18px 5px 18px;
}
footer {
  font-size: 11px;
}
.public-content {
  max-width: 804px;
}
.public-content:empty {
  display: none;
}
.public-region {
  padding-top: 32px;
}
.public-region .eyebrow {
  justify-content: flex-start;
  margin-bottom: 16px;
}
.public-region h2 {
  font-weight: 600;
  font-size: 29px;
  letter-spacing: -0.045em;
  max-width: 650px;
}
.public-region p {
  font-size: 14px;
  line-height: 1.8;
}
.public-page h1 {
  font-size: clamp(36px, 5vw, 58px);
  letter-spacing: -0.055em;
}
.public-page h2 {
  font-weight: 590;
}
.public-page p,
.public-page li {
  color: var(--muted);
}
@media (max-width: 600px) {
  .header {
    height: 78px;
    padding: 0 22px;
  }
  .wordmark {
    font-size: 23px;
  }
  .welcome {
    padding: 60px 22px 44px;
  }
  .welcome h1 {
    font-size: clamp(43px, 10.9vw, 62px);
    letter-spacing: -0.065em;
  }
  .welcome .eyebrow {
    font-size: 9px;
    letter-spacing: 0.1em;
  }
  .welcome-heading p {
    font-size: 14px;
  }
  .composer {
    padding: 20px 18px 14px;
    border-radius: 16px;
  }
  .composer textarea {
    font-size: 16px;
    min-height: 100px;
  }
  .composer-caption,
  .composer-hint {
    font-size: 11px;
  }
  .service-line {
    font-size: 10px;
    gap: 12px;
    margin-top: 30px;
  }
  .public-region h2 {
    font-size: 26px;
  }
  .footer-brand {
    white-space: normal;
  }
}
@media (prefers-reduced-motion: reduce) {
  .composer,
  .send {
    transition: none;
  }
  .send:not(:disabled):hover {
    transform: none;
  }
}
