/* Central layout: shared tokens, base components, then one responsive layer. */

:root {
  --accent: #ff6600;
  --ink: #1c2523;
  --muted: #65706b;
  --line: #e0e5e0;
  --bg: #f5f6f3;
  --green: #1c5141;
  --white: #fff;
  font-family: Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  color: var(--ink);
  background: var(--bg);
  font-synthesis: none;
  --content-public: 840px;
  --content-admin: 1250px;
  --page-gutter: clamp(16px,3vw,30px);
  --card-padding: 24px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
}

button,input,select,textarea {
  font: inherit;
}

button,.button {
  border: 0;
  border-radius: 10px;
  padding: 12px 18px;
  background: var(--accent);
  color: #171a17;
  cursor: pointer;
  font-weight: 650;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  min-height: 44px;
  transition: background .15s,transform .15s;
  max-width: 100%;
  min-width: 0;
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.4;
}

button:hover,.button:hover {
  filter: brightness(.96);
}

button:active {
  transform: translateY(1px);
}

button:disabled {
  opacity: .5;
  cursor: wait;
}

button.secondary,.button.secondary {
  background: #eaf0e9;
  color: var(--ink);
}

button.ghost {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--line);
}

button.danger {
  background: #fdece7;
  color: #a92f13;
}

input,select,textarea {
  width: 100%;
  border: 1px solid #cbd4cc;
  border-radius: 9px;
  padding: 11px 12px;
  background: #fff;
  color: var(--ink);
  min-height: 44px;
  max-width: 100%;
  min-width: 0;
}

input:focus,select:focus,textarea:focus {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}

textarea {
  min-height: 95px;
  resize: vertical;
}

label {
  display: block;
  font-size: 14px;
  font-weight: 550;
}

label input,label select,label textarea {
  margin-top: 7px;
}

input[type=checkbox] {
  width: 20px;
  height: 20px;
  min-height: 20px;
  accent-color: var(--accent);
  margin: 0 9px 0 0;
  vertical-align: middle;
}

input[type=color] {
  padding: 5px;
}

p {
  line-height: 1.65;
  margin: 8px 0 16px;
}

h1 {
  font-size: clamp(28px,4vw,42px);
  font-weight: 650;
  letter-spacing: -1.3px;
  line-height: 1.15;
  margin: 10px 0 18px;
}

h2 {
  font-size: 23px;
  letter-spacing: -.5px;
  margin: 0 0 18px;
}

h3 {
  font-size: 16px;
  margin: 0 0 14px;
}

a {
  color: var(--green);
}

.top {
  height: auto;
  border-bottom: 1px solid var(--line);
  background: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px max(var(--page-gutter),calc((100% - var(--content-public))/2 + var(--page-gutter)));
  gap: 20px;
  min-height: 78px;
  flex-wrap: wrap;
}

.brand {
  font-weight: 800;
  letter-spacing: -.7px;
  font-size: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1 1 180px;
  overflow-wrap: anywhere;
}

.brandmark {
  background: var(--accent);
  width: 32px;
  height: 32px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  font-size: 19px;
  flex-shrink: 0;
}

.brand img {
  max-width: min(180px,100%);
  max-height: 48px;
  height: auto;
  object-fit: contain;
}

.top .tools {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.language {
  width: 110px;
}

.shell {
  max-width: var(--content-admin);
  margin: auto;
  padding: 32px var(--page-gutter) 72px;
  width: 100%;
  margin-inline: auto;
}

.narrow {
  max-width: var(--content-public);
  margin: auto;
  padding: 32px var(--page-gutter) 72px;
  width: 100%;
  margin-inline: auto;
}

.eyebrow {
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--green);
  font-weight: 750;
  margin: 0 0 15px;
}

.muted,small {
  color: var(--muted);
}

.lead {
  font-size: 17px;
  max-width: 640px;
}

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 17px;
  padding: var(--card-padding);
  margin-bottom: 20px;
  min-width: 0;
  max-width: 100%;
}

.stack {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0,1fr);
  min-width: 0;
}

.grid {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 20px;
  min-width: 0;
}

.grid3 {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 16px;
  min-width: 0;
}

.wide {
  grid-column: 1/-1;
}

.row {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  min-width: 0;
}

.row.between {
  justify-content: space-between;
}

.row input {
  flex: 1 1 220px;
  min-width: 0;
}

.nav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 0 0 25px;
  min-width: 0;
}

.nav button {
  background: transparent;
  color: var(--muted);
  min-width: 0;
}

.nav button.active {
  background: var(--green);
  color: white;
}

.hero {
  padding: 28px 0 16px;
}

.step {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--muted);
}

.step b {
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  border: 1px solid var(--line);
  border-radius: 50%;
}

.steps {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  padding: 18px 0 28px;
}

.status {
  display: inline-block;
  padding: 6px 10px;
  background: #edf3ee;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 650;
  color: var(--green);
}

.stat strong {
  display: block;
  font-size: 34px;
  font-weight: 650;
  margin: 12px 0 6px;
}

.list {
  display: grid;
  gap: 0;
}

.listrow {
  display: flex;
  gap: 15px;
  align-items: center;
  justify-content: space-between;
  padding: 19px 0;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
  min-width: 0;
}

.listrow:last-child {
  border: 0;
}

.listrow .grow {
  flex: 1 1 220px;
  min-width: 0;
}

.listrow strong {
  display: block;
  font-size: 15px;
  margin-bottom: 5px;
}

.listrow small {
  font-size: 12px;
}

.notice {
  border-left: 3px solid var(--accent);
  background: #fff4e9;
  padding: 14px 18px;
  border-radius: 0 8px 8px 0;
  margin: 15px 0;
  font-size: 14px;
}

.success {
  background: #edf5ee;
  border-color: #337249;
}

.warning {
  background: #fff2e9;
}

.pill {
  border: 1px solid var(--line);
  padding: 8px 12px;
  border-radius: 30px;
  font-size: 13px;
}

.upload {
  display: block;
  background: #f8faf6;
  border: 1px dashed #b7c3b9;
  border-radius: 10px;
  padding: 16px;
  position: relative;
  min-width: 0;
  max-width: 100%;
}

.upload input {
  font-size: 12px;
  padding: 9px;
  margin-top: 12px;
}

.upload .count {
  color: var(--green);
  font-weight: 650;
}

.filelist {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.filelist a {
  font-size: 12px;
}

.check {
  font-weight: 400;
  line-height: 1.6;
}

.actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
  min-width: 0;
}

.divider {
  height: 1px;
  background: var(--line);
  margin: 22px 0;
}

.timeline {
  border-left: 2px solid var(--line);
  padding-left: 18px;
}

.timeline p {
  font-size: 14px;
  white-space: pre-wrap;
}

.note {
  background: #fff9e9;
  padding: 12px;
  border-radius: 9px;
}

.empty {
  text-align: center;
  padding: 35px 20px;
  color: var(--muted);
}

.rating {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.rating select {
  max-width: 220px;
}

.rating textarea {
  margin-top: 10px;
  min-height: 65px;
}

.loading {
  padding: 70px;
  text-align: center;
}

.barcode {
  max-width: 100%;
  height: 60px;
  background: white;
  margin: 15px 0;
}

.doclink {
  display: inline-flex;
  margin-right: 14px;
  margin-top: 8px;
  max-width: 100%;
  min-width: 0;
}

.error {
  color: #a92f13;
}

.savehint {
  font-size: 12px;
  color: var(--green);
}

.savehint.error {
  color: #a92f13;
}

#toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  color: white;
  border-radius: 12px;
  padding: 14px 22px;
  box-shadow: 0 5px 24px #0002;
  z-index: 100;
  display: none;
  max-width: 90vw;
}

#toast.show {
  display: block;
}

.footer {
  font-size: 12px;
  color: var(--muted);
  margin-top: 35px;
}

.privacy {
  white-space: pre-wrap;
  font-size: 13px;
  max-height: 200px;
  overflow: auto;
  min-width: 0;
}

.dangerzone {
  margin-top: 30px;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 18px;
  font-size: 14px;
  min-width: 0;
}

.info-grid dt {
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 6px;
}

.info-grid dd {
  margin: 0;
  white-space: pre-wrap;
}

.toggle {
  display: flex;
  gap: 10px;
  align-items: center;
}

.settingsarea {
  font-family: ui-monospace,monospace;
  font-size: 12px;
  min-height: 200px;
}

.hide {
  display: none!important;
}

details summary {
  cursor: pointer;
  font-weight: 600;
  padding: 10px 0;
}

.mobilelabel {
  display: none;
}

.identity {
  display: grid;
  gap: 3px;
  font-size: 12px;
  min-width: 0;
  max-width: 240px;
  overflow-wrap: anywhere;
}

.identity strong {
  font-size: 13px;
}

.identity small {
  font-size: 11px;
}

.openingday {
  display: grid;
  grid-template-columns: 140px minmax(0,1fr);
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.daylabel {
  padding-top: 7px;
  font-weight: 650;
}

.openingwindows {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 24px;
  min-width: 0;
}

.timewindow {
  min-width: 0;
}

.windowlabel {
  display: block;
  font-size: 12px;
  color: var(--muted);
  min-height: 25px;
  margin-bottom: 7px;
}

.timepair {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto minmax(0,1fr);
  align-items: center;
  gap: 10px;
}

.timepair input {
  min-width: 0;
}

.timepair input:disabled {
  background: #f5f6f3;
  color: #8c948f;
}

#systemTestArea {
  margin-top: 24px;
}

#systemTestArea details {
  margin-top: 12px;
}

#systemTestArea summary {
  cursor: pointer;
  padding: 12px 0;
}

.systemcheck {
  border-left: 4px solid #a0a4ac;
  padding: 12px 16px;
  margin: 8px 0;
  background: #f7f8fa;
  overflow-wrap: anywhere;
}

.systemcheck p {
  margin: 6px 0;
}

.systemcheck-pass {
  border-color: #20804a;
}

.systemcheck-fail {
  border-color: #c52e30;
}

.systemcheck-warn {
  border-color: #b47700;
}

.systemcheck-skip {
  border-color: #687080;
}

#systemTestArea .actions {
  flex-wrap: wrap;
}

body.image-preview-open {
  overflow: hidden;
}

.image-preview {
  width: min(1100px,calc(100vw - 32px));
  max-width: 1100px;
  max-height: calc(100dvh - 32px);
  padding: 0;
  border: 1px solid #ffffff30;
  border-radius: 18px;
  background: #17201e;
  color: #fff;
  box-shadow: 0 24px 100px #0007;
  overflow: auto;
}

.image-preview::backdrop {
  background: #08110edb;
  backdrop-filter: blur(5px);
}

.image-preview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 22px;
  border-bottom: 1px solid #ffffff24;
}

.image-preview-header h2 {
  font-size: 19px;
  line-height: 1.35;
  letter-spacing: 0;
  margin: 0 0 3px;
  color: #fff;
  overflow-wrap: anywhere;
}

.image-preview-count {
  font-size: 12px;
  color: #c5d3ce;
}

.image-preview button {
  background: #ffffff17;
  color: white;
  border: 1px solid #ffffff30;
  border-radius: 10px;
  min-width: 44px;
  min-height: 44px;
  padding: 4px 12px;
  font-size: 28px;
  flex-shrink: 0;
}

.image-preview button:focus-visible {
  outline: 2px solid white;
  outline-offset: 3px;
}

.image-preview button[hidden] {
  display: none;
}

.image-preview-stage {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
}

.image-preview figure {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  min-width: 0;
  min-height: 180px;
  margin: 0;
}

.image-preview img {
  display: block;
  max-width: 100%;
  max-height: calc(100dvh - 220px);
  object-fit: contain;
  border-radius: 5px;
}

.image-preview-status {
  margin: 0;
  padding: 0 22px 16px;
  text-align: center;
  font-size: 14px;
  color: #d4dfda;
}

.image-preview-status:empty {
  padding-bottom: 8px;
}

.request-deletion {
  border-color: #e5b9ac;
}

.request-deletion>form+form {
  margin-top: 18px;
}

.request-deletion-list {
  max-height: 420px;
  overflow: auto;
  margin-top: 12px;
  border-top: 1px solid var(--line);
}

.request-deletion-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 4px;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
}

.request-deletion-row input {
  flex-shrink: 0;
  margin-top: 2px;
}

.request-deletion-row span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.request-deletion-row strong,.request-deletion-row small {
  display: block;
}

.request-deletion-row small {
  font-weight: 400;
  margin-top: 5px;
  line-height: 1.5;
}

.vehicle-hint {
  display: block;
  margin-top: 6px;
  line-height: 1.45;
  font-weight: 400;
  font-size: 12px;
}

.inspection-progress {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 14px 16px;
  margin-bottom: 20px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f5f8f4;
}

.inspection-progress progress {
  flex-basis: 100%;
  width: 100%;
  height: 10px;
  accent-color: var(--green);
}

.inspection-state {
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 7px;
}

.inspection-done {
  color: #23623b;
  background: #e8f4eb;
}

.inspection-open,.inspection-pending {
  color: #825012;
  background: #fff2db;
}

.rating h3 {
  margin: 0;
}

.rating>.row:first-child {
  margin-bottom: 12px;
}

.upload-title {
  font-size: 14px;
  font-weight: 600;
}

.upload-previews {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 12px 0;
}

.upload-thumbnail,.upload-missing {
  width: 128px;
  height: 96px;
  border-radius: 9px;
  border: 1px solid #cbd4cc;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
  max-width: 100%;
}

.upload-thumbnail img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.upload-thumbnail img[hidden] {
  display: none;
}

.upload-thumbnail:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 3px;
}

.upload-missing,.upload-thumbnail-error {
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  text-align: center;
}

.upload-input-caption {
  font-size: 12px;
  color: var(--muted);
  font-weight: 400;
}

.upload-thumbnail-error[hidden] {
  display: none;
}

.upload-input-label input {
  margin-top: 6px;
}

.filelist>span {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  max-width: 100%;
  min-width: 0;
}

.status.status-submitted {
  background: #fee2e2;
  color: #b91c1c;
}

.request-list-item {
  padding: 8px 0 22px;
  border-bottom: 1px solid var(--line);
}

.request-list-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.request-list-item>.listrow {
  border: 0;
  flex-wrap: wrap;
}

.request-progress {
  display: grid;
  grid-template-columns: repeat(5,minmax(0,1fr));
  gap: 9px;
  margin: 8px 0 18px;
}

.progress-field {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  flex-direction: column;
  gap: 6px;
  text-align: left;
  padding: 12px;
  min-width: 0;
  border: 1px solid transparent;
  line-height: 1.4;
  white-space: normal;
  overflow-wrap: anywhere;
}

.progress-field strong {
  font-size: 12px;
  font-weight: 650;
}

.progress-title {
  font-size: 11px;
  font-weight: 550;
}

.progress-detail {
  font-size: 11px;
  font-weight: 400;
}

.progress-field:disabled {
  opacity: 1;
  cursor: default;
}

.progress-field.is-current {
  border-color: currentColor;
}

.progress-field:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

.progress-gray {
  background: #f1f3f5;
  color: #4b5563;
}

.progress-red {
  background: #fee2e2;
  color: #b91c1c;
}

.progress-orange {
  background: #fff1db;
  color: #92400e;
}

.progress-blue {
  background: #e6efff;
  color: #1e40af;
}

.progress-purple {
  background: #f1e9ff;
  color: #6b21a8;
}

.progress-green {
  background: #e5f3e9;
  color: #166534;
}

.case-navigation {
  margin: 24px 0 16px;
}

.case-tabs {
  display: grid;
  gap: 4px;
  padding: 5px;
  background: #eaf0ec;
  border-radius: 14px;
  overflow-x: auto;
  scrollbar-width: thin;
  grid-template-columns: repeat(5,minmax(0,1fr));
  overflow: visible;
  min-width: 0;
}

.case-tab {
  flex: 1 0 auto;
  gap: 8px;
  background: transparent;
  color: var(--muted);
  padding: 12px;
  font-size: 13px;
  white-space: normal;
  min-width: 0;
  overflow-wrap: anywhere;
  line-height: 1.35;
  justify-content: flex-start;
  text-align: left;
}

.case-tab.active {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 1px 5px #183d2820;
}

.step-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  flex: none;
}

.case-tools {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 8px;
}

.case-tools button {
  font-size: 12px;
  min-height: 36px;
  padding: 7px 12px;
}

.case-tools .active {
  background: var(--green);
  color: #fff;
}

.case-guidance {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  padding: 22px 24px;
  margin-bottom: 24px;
  flex-wrap: wrap;
  min-width: 0;
}

.case-guidance .eyebrow {
  margin-bottom: 7px;
  letter-spacing: 1px;
}

.case-guidance h2 {
  font-size: 23px;
  margin: 0 0 6px;
}

.case-guidance p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.case-guidance>button {
  flex: 0 1 auto;
  max-width: 100%;
}

.case-guidance button:focus-visible,.case-tab:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}

#caseSection:focus {
  outline: none;
}

.purchase-checklist {
  list-style: none;
  padding: 0;
  margin: 0 0 22px;
  display: grid;
  gap: 9px;
  font-size: 14px;
}

.purchase-checklist li {
  display: flex;
  gap: 10px;
  align-items: center;
}

.purchase-checklist li>span {
  color: var(--green);
  font-weight: 700;
}

.case-reference {
  margin-top: 16px;
  color: var(--muted);
  font-size: 13px;
}

.case-reference>summary {
  cursor: pointer;
}

.case-reference .card {
  color: var(--ink);
}

.icon-upload {
  display: grid;
  grid-template-columns: 64px minmax(0,1fr);
  gap: 10px 16px;
  align-items: center;
}

.brand-icon-preview {
  width: 64px;
  height: 64px;
  object-fit: contain;
  padding: 6px;
  background: #f1f3f5;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.icon-upload small {
  grid-column: 2;
}

.icon-upload input {
  font-size: 13px;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 100px;
}

.brand,.top .tools,.grid>*,.grid3>*,.info-grid>*,.row>*,.listrow .grow,.case-navigation,.case-guidance>div {
  min-width: 0;
}

.info-grid dd,.upload-title,.filelist,.listrow small,.notice,.case-guidance h2 {
  overflow-wrap: anywhere;
}

.account-toggle {
  display: none;
}

.nav .navigation-icon {
  display: none;
}

.request-search {
  display: grid;
  grid-template-columns: minmax(0,1fr) 44px;
  gap: 8px;
  align-items: center;
  margin-bottom: 10px;
}

.request-search input {
  min-width: 0;
}

.request-search button {
  width: 44px;
  min-width: 44px;
  padding: 10px;
}

.request-search svg {
  display: block;
  width: 20px;
  height: 20px;
}

.request-next {
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink);
  margin: 0 0 12px;
  overflow-wrap: anywhere;
}

.request-next span {
  color: var(--muted);
}

.search-state {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin: 10px 0 16px;
  padding: 12px;
  background: #f4f6f3;
  border-radius: 10px;
}

.search-state p {
  margin: 0;
  overflow-wrap: anywhere;
  min-width: 0;
  flex: 1 1 220px;
  font-size: 14px;
}

.search-state button {
  min-height: 44px;
  flex: none;
}

.access-help p {
  font-size: 14px;
  margin: 8px 0;
  overflow-wrap: anywhere;
}

.history-entry {
  border-bottom: 1px solid var(--line);
  padding: 0 0 14px;
  margin-bottom: 12px;
}

.history-entry:last-child {
  border-bottom: 0;
  margin-bottom: 0;
}

.history-entry .listrow {
  border: 0;
  padding: 14px 0 4px;
}

.history-entry small {
  display: block;
  overflow-wrap: anywhere;
  line-height: 1.6;
}

.history-entry summary {
  font-size: 13px;
  min-height: 44px;
}

.history-entry details p {
  font-size: 13px;
  border-left: 2px solid var(--line);
  padding-left: 12px;
  margin: 8px 0 14px;
}

.archive-entry {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.archive-entry summary {
  overflow-wrap: anywhere;
  min-height: 44px;
}

.archive-entry form {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

#ankaufReview details {
  margin: 10px 0;
}

#ankaufReview summary {
  min-height: 44px;
}

#ankaufReview .grid {
  margin: 12px 0;
}

#ankaufReview textarea {
  min-height: 80px;
}

.archive-entry .doclink {
  overflow-wrap: anywhere;
  max-width: 100%;
}

.purchase-calculation {
  margin-bottom: 20px;
}

.purchase-calculation summary {
  cursor: pointer;
  font-weight: 600;
}

.purchase-calculation form {
  margin-top: 16px;
}

.purchase-calculation [data-calculation-result] {
  font-variant-numeric: tabular-nums;
}

.purchase-calculation .grid>label {
  min-width: 0;
}

.purchase-calculation input {
  width: 100%;
  box-sizing: border-box;
}

.request-submit {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.request-submit>button {
  width: 100%;
  white-space: normal;
  line-height: 1.4;
}

.request-form .request-photos,.request-form .request-confirmations {
  border-top: 1px solid var(--line);
  padding-top: 24px;
  margin-top: 6px;
  min-width: 0;
}

.request-form .request-confirmations h2 {
  margin-bottom: 18px;
}

.request-form .request-submit {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.request-save-state {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  min-height: 28px;
}

.request-save-state button[hidden] {
  display: none;
}

.privacy-link {
  justify-self: start;
  width: fit-content;
  max-width: 100%;
  padding: 8px 0;
  background: transparent;
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-align: left;
  white-space: normal;
}

.privacy-dialog {
  width: calc(100% - 40px);
  max-width: 740px;
  max-height: 85dvh;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 20px 80px #0004;
  overflow: hidden;
}

.privacy-dialog[open] {
  display: flex;
  flex-direction: column;
}

.privacy-dialog::backdrop {
  background: rgba(15,25,22,.58);
}

.privacy-dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}

.privacy-dialog-header h2 {
  margin: 0;
  min-width: 0;
  font-size: 22px;
  overflow-wrap: anywhere;
}

.privacy-dialog-close {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  padding: 0;
  font-size: 30px;
  line-height: 1;
  background: #eaf0e9;
  color: var(--ink);
}

.privacy-dialog-content {
  padding: 24px;
  overflow: auto;
  overscroll-behavior: contain;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 1.65;
  min-height: 0;
  -webkit-overflow-scrolling: touch;
}

.privacy-link:focus-visible,.privacy-dialog-close:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}

.staff-view .top {
  padding-inline: max(var(--page-gutter),calc((100% - var(--content-admin))/2 + var(--page-gutter)));
}

.listrow>form {
  flex: 1 1 260px;
  min-width: 0;
  max-width: 100%;
}

.listrow>button,.listrow>.status {
  flex: 0 1 auto;
  max-width: 100%;
}

.listrow .grow>small {
  display: block;
}

.actions>button,.actions>.button {
  min-width: 0;
  flex: 0 1 auto;
}

p,small,summary,h1,h2,h3,label,strong,.privacy,.timeline,.filelist,.doclink,.identity,.footer,.lead {
  overflow-wrap: anywhere;
}

:where(form,fieldset,details,.grid>*,.grid3>*,.info-grid>*,.row>*,.listrow>*,.case-guidance>*,.openingday>*,.openingwindows>*) {
  min-width: 0;
}

.case-guidance>div {
  flex: 1 1 220px;
  min-width: 0;
}

.request-form {
  min-width: 0;
}

.image-preview-header>div {
  min-width: 0;
}

/* Tablet: readable fields and navigation within the shared page container. */
@media screen and (max-width:1024px) {
  .info-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .case-tabs { grid-template-columns:repeat(3,minmax(0,1fr)); }
  .openingday { grid-template-columns:110px minmax(0,1fr); }
  .openingwindows { grid-template-columns:minmax(0,1fr); gap:16px; }
  .request-progress { grid-template-columns:repeat(3,minmax(0,1fr)); }
}

/* Smartphone: one content column and a reserved space for the staff navigation. */
@media screen and (max-width:760px) {
  :root { --page-gutter:16px; --card-padding:18px; font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",system-ui,sans-serif; background:#f2f2f7; }
  .shell { padding-top:22px; padding-bottom:calc(110px + env(safe-area-inset-bottom)); }
  .narrow { padding-top:22px; padding-bottom:calc(32px + env(safe-area-inset-bottom)); }
  .shell,.narrow { padding-left:max(var(--page-gutter),env(safe-area-inset-left)); padding-right:max(var(--page-gutter),env(safe-area-inset-right)); }
  .top,.staff-view .top { position:sticky; top:0; z-index:40; display:flex; flex-wrap:nowrap; gap:12px; min-height:64px; padding:10px max(16px,env(safe-area-inset-right)) 10px max(16px,env(safe-area-inset-left)); background:rgba(255,255,255,.96); }
  .top .brand { flex:1 1 0; font-size:17px; }
  .brand img { max-height:40px; max-width:min(150px,100%); }
  .top .account-toggle { display:inline-flex; flex:none; width:44px; height:44px; padding:10px; border-radius:50%; background:#eaf0ec; color:var(--green); }
  .account-toggle .navigation-icon { display:block; width:23px; height:23px; }
  .top .tools { display:none; }
  .top.account-open .tools { display:grid; position:absolute; top:calc(100% + 8px); right:max(16px,env(safe-area-inset-right)); width:min(320px,calc(100% - 32px)); grid-template-columns:minmax(0,1fr) auto; gap:12px; padding:18px; background:white; border:1px solid var(--line); border-radius:18px; box-shadow:0 12px 40px #0002; }
  .top.account-open .identity { grid-column:1/-1; max-width:none; padding-bottom:8px; border-bottom:1px solid var(--line); }
  .top.account-open .identity strong { font-size:15px; }
  .top.account-open .identity small { font-size:12px; }
  .top.account-open .language,.top.account-open .tools button { min-width:0; width:100%; }
  .nav { position:fixed; left:0; right:0; bottom:0; z-index:35; display:flex; flex-wrap:nowrap; justify-content:space-around; align-items:stretch; gap:0; margin:0; border-radius:0; border-top:1px solid #d9dfe0; padding:6px max(6px,env(safe-area-inset-right)) calc(6px + env(safe-area-inset-bottom)) max(6px,env(safe-area-inset-left)); background:rgba(255,255,255,.97); box-shadow:0 -3px 18px #18252306; }
  .nav button { flex:1 1 0; flex-direction:column; gap:4px; min-height:54px; padding:5px 2px; border-radius:10px; font-size:10px; line-height:1.25; font-weight:550; color:#71777c; }
  .nav button span { max-width:100%; white-space:normal; overflow-wrap:anywhere; }
  .nav button.active { background:transparent; color:var(--green); font-weight:750; }
  .nav .navigation-icon { display:block; width:23px; height:23px; flex:none; }
  h1 { font-size:30px; line-height:1.15; letter-spacing:-.7px; overflow-wrap:anywhere; margin-bottom:16px; }
  h2 { font-size:21px; }
  .hero { padding:10px 0 12px; }
  .card { border:0; border-radius:16px; margin-bottom:16px; }
  .grid,.grid3,.info-grid { grid-template-columns:minmax(0,1fr); gap:16px; }
  input,select,textarea,.settingsarea,.upload input,.icon-upload input { font-size:16px; }
  .row input { flex-basis:100%; }
  input[type=checkbox] { max-width:20px; flex:none; }
  .actions { gap:10px; }
  .actions>button,.actions>.button { flex:1 1 100%; }
  .listrow { align-items:flex-start; gap:12px; }
  .listrow .grow { flex-basis:100%; }
  .listrow>form { flex-basis:100%; }
  .case-navigation { margin:18px 0 14px; }
  .case-tabs { grid-template-columns:repeat(2,minmax(0,1fr)); gap:6px; padding:6px; border-radius:14px; }
  .case-tab { padding:12px 10px; min-height:48px; font-size:13px; }
  .case-tab:first-child { grid-column:1/-1; }
  .case-tools { justify-content:stretch; gap:8px; }
  .case-tools button { flex:1; min-height:44px; }
  .case-guidance { padding:18px; gap:14px; margin-bottom:18px; align-items:stretch; flex-direction:column; }
  .case-guidance>div { flex-basis:auto; }
  .case-guidance>button { width:100%; }
  .case-guidance h2 { font-size:21px; }
  .openingday { grid-template-columns:minmax(0,1fr); gap:10px; }
  .openingwindows { padding-left:0; }
  .timepair { gap:8px; }
  .rating .row { gap:10px; align-items:stretch; }
  .rating select { max-width:none; flex-basis:100%; }
  .overview-heading { flex-wrap:wrap; gap:12px; margin-bottom:18px; }
  .overview-heading>div { flex:1 1 180px; }
  .overview-heading .eyebrow { display:none; }
  .overview-heading h1 { font-size:27px; letter-spacing:-.7px; margin:0; }
  .overview-heading>button { flex:0 1 auto; min-height:44px; padding:10px 12px; border-radius:12px; font-size:13px; }
  .overview-stats { grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; margin:0 0 20px; }
  .overview-stats .card { padding:12px 10px; margin:0; box-shadow:0 1px 2px #00000004; }
  .overview-stats span { display:block; font-size:11px; line-height:1.4; }
  .overview-stats strong { font-size:25px; margin-top:8px; }
  .request-search { gap:6px; margin-bottom:4px; padding:4px; background:#efeff4; border-radius:12px; }
  .request-search input { border:0; outline-offset:0; background:transparent; padding:10px; min-height:40px; box-shadow:none; }
  .request-search button { min-height:40px; width:40px; padding:10px; background:transparent; color:var(--muted); }
  .request-list-item { padding-bottom:16px; }
  .request-list-item>.listrow { padding:16px 0 12px; gap:8px; }
  .request-list-item>.listrow strong { font-size:16px; }
  .request-list-item>.listrow small { font-size:12px; line-height:1.5; }
  .request-list-item>.listrow>button { min-height:44px; padding:8px 12px; font-size:13px; border-radius:10px; }
  .request-progress { grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; margin:2px 0 12px; }
  .progress-field { min-height:78px; padding:10px; border-radius:12px; gap:4px; }
  .progress-title,.progress-detail { font-size:11px; }
  .progress-field strong { font-size:12px; }
  .request-next { font-size:13px; margin:0 0 8px; }
  .icon-upload { grid-template-columns:48px minmax(0,1fr); gap:10px; }
  .brand-icon-preview { width:48px; height:48px; }
  .icon-upload small { grid-column:1/-1; }
  .image-preview { width:calc(100vw - 16px); max-height:calc(100dvh - 16px); border-radius:14px; }
  .image-preview-header { gap:10px; padding:12px; }
  .image-preview-header h2 { font-size:16px; }
  .image-preview-stage { gap:6px; padding:10px 6px; }
  .image-preview-stage button { min-width:44px; min-height:44px; padding:4px 8px; }
  .image-preview figure { min-height:80px; }
  .image-preview img { max-height:calc(100dvh - 220px); }
  .privacy-dialog { width:calc(100% - 16px); max-height:calc(100vh - 24px); max-height:calc(100dvh - 24px); border-radius:16px; }
  .privacy-dialog-header { padding:14px 16px; }
  .privacy-dialog-header h2 { font-size:20px; }
  .privacy-dialog-content { padding:18px 16px; }
  .request-save-state { align-items:flex-start; }
  .request-form .request-photos,.request-form .request-confirmations { padding-top:20px; }
  .search-state { align-items:stretch; }
  .search-state button { width:100%; }
  .loading { padding:40px 16px; }
  .footer { margin-top:24px; text-align:center; }
  #toast { bottom:calc(16px + env(safe-area-inset-bottom)); overflow-wrap:anywhere; }
  .staff-view #toast { bottom:calc(90px + env(safe-area-inset-bottom)); }
}

@media screen and (max-width:360px) {
  .overview-stats { grid-template-columns:minmax(0,1fr); }
  .overview-stats .card { display:flex; align-items:center; justify-content:space-between; gap:12px; }
  .overview-stats strong { margin:0; }
  .overview-heading h1 { font-size:25px; }
  .overview-heading>button { flex-basis:100%; }
}

@media print {
  .top,.nav,button,#toast { display:none; }
  .card { border:0; box-shadow:none; }
  .shell,.narrow { max-width:none; padding:0; }
}

@media (prefers-reduced-motion:reduce) {
  button,.button { transition:none; }
}


/* App installation and device management share the existing content grid. */
.app-enroll{display:grid;grid-template-columns:224px minmax(0,1fr);gap:24px;align-items:center;margin-bottom:24px}.app-enroll [data-app-qr]{width:224px;max-width:100%;padding:8px;scroll-margin:90px 0 120px;background:#fff}.app-enroll svg{display:block;width:100%;height:auto;max-width:100%}.app-device-name,.app-push,.app-devices{border-top:1px solid var(--line);padding-top:20px;margin-top:24px;min-width:0}.app-device-name small{line-height:1.5}.app-push [data-push-preferences]{margin:16px 0}.app-devices .listrow{overflow-wrap:anywhere}.app-devices .row h3{margin:0}#appSettings{scroll-margin-top:90px}@media(max-width:760px){.app-enroll{grid-template-columns:minmax(0,1fr);gap:16px}.app-enroll [data-app-qr]{justify-self:center}.app-devices .listrow>button{width:100%}}

/* The installed app owns the vertical refresh gesture. */
.installed-app{overscroll-behavior-y:contain}.installed-app body{overscroll-behavior-y:contain}
.pull-refresh{position:fixed;z-index:10000;top:calc(env(safe-area-inset-top,0px) + 8px);left:50%;transform:translate(-50%,-140%);opacity:0;max-width:calc(100% - 32px);padding:12px 18px;border:1px solid var(--line,#ddd);border-radius:24px;background:#fff;color:#222;box-shadow:0 3px 16px #0002;text-align:center;font-size:14px;line-height:1.4;pointer-events:none;transition:transform .15s ease,opacity .15s ease;overflow-wrap:anywhere}
.pull-refresh.is-visible{transform:translate(-50%,min(var(--pull-distance,0px),40px));opacity:1}.pull-refresh.is-loading:before{content:'';display:inline-block;width:12px;height:12px;margin-right:8px;border:2px solid #ddd;border-top-color:var(--accent,#ff6600);border-radius:50%;vertical-align:-2px;animation:pull-refresh-spin .7s linear infinite}@keyframes pull-refresh-spin{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){.pull-refresh{transition:none}.pull-refresh.is-loading:before{animation:none}}@media print{.pull-refresh{display:none}}

/* Scan button and accessible camera dialog. */
.nav-slot{display:none}.nav .nav-scan{color:var(--green);background:#eaf0ec}.profile-settings{margin-bottom:20px}
.case-scanner{width:min(600px,calc(100% - 32px));max-height:calc(100vh - 32px);max-height:calc(100dvh - 32px);overflow:auto;padding:24px;border:0;border-radius:22px;color:var(--ink,#1c2c29);background:white;box-sizing:border-box;box-shadow:0 16px 64px #0004}.case-scanner::backdrop{background:#14211de0}.scan-heading{display:flex;align-items:center;justify-content:space-between;gap:16px}.scan-heading h2{margin:0}.scan-heading button{flex:none}.case-scanner>p{line-height:1.5}.scan-camera{position:relative;aspect-ratio:16/9;background:#14211d;border-radius:14px;overflow:hidden}.scan-camera video{position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:cover;object-position:50% 50%}.scan-guide{position:absolute;left:6%;right:6%;top:24%;bottom:24%;border:2px solid #ffffffb0;border-radius:8px;pointer-events:none}.scan-status{min-height:44px;overflow-wrap:anywhere}.scan-error{color:#9b331b}.case-scanner form{border-top:1px solid var(--line);margin-top:20px;padding-top:20px}.case-scanner label input{width:100%;min-width:0;box-sizing:border-box}.case-scanner input[name=reference]{text-transform:uppercase}.case-scanner .actions{flex-wrap:wrap}.case-scanner .actions button{min-height:44px}
@media(max-width:760px){.nav.nav-with-scan{display:grid;grid-template-columns:repeat(5,minmax(0,1fr))}.nav-with-scan .nav-slot{display:block}.nav .nav-scan{background:#eaf0ec;color:var(--green);border-radius:14px}.case-scanner{width:calc(100% - 20px);padding:18px;max-height:calc(100dvh - 24px)}.scan-heading h2{font-size:20px}.scan-heading{gap:8px}.scan-heading button{padding:10px}.case-scanner .actions button{flex:1}.case-scanner .scan-camera{aspect-ratio:16/9}}
@media print{.case-scanner{display:none}}

/* Installed tablet and desktop apps also keep their scanner at the bottom. */
.installed-app .staff-view .shell{padding-bottom:calc(110px + env(safe-area-inset-bottom))}
.installed-app .nav{position:fixed;left:0;right:0;bottom:0;z-index:35;display:flex;flex-wrap:nowrap;justify-content:space-around;align-items:stretch;gap:0;margin:0;border-radius:0;border-top:1px solid #d9dfe0;padding:6px max(6px,env(safe-area-inset-right)) calc(6px + env(safe-area-inset-bottom)) max(6px,env(safe-area-inset-left));background:rgba(255,255,255,.97);box-shadow:0 -3px 18px #18252306}.installed-app .nav.nav-with-scan{display:grid;grid-template-columns:repeat(5,minmax(0,1fr))}.installed-app .nav-slot{display:block}.installed-app .nav button{display:flex;flex:1 1 0;flex-direction:column;align-items:center;justify-content:center;gap:4px;min-height:54px;padding:5px 2px;border-radius:10px;font-size:10px;line-height:1.25;font-weight:550;color:#71777c}.installed-app .nav button span{max-width:100%;white-space:normal;overflow-wrap:anywhere}.installed-app .nav button.active{background:transparent;color:var(--green);font-weight:750}.installed-app .nav .navigation-icon{display:block;width:23px;height:23px;flex:none}.installed-app .nav .nav-scan{background:#eaf0ec;color:var(--green);border-radius:14px}

.case-scanner button[hidden]{display:none}.case-scanner input{font-family:inherit}

@media print{.installed-app .nav{display:none}.installed-app .staff-view .shell{padding-bottom:0}}

.case-scanner [hidden]{display:none!important}.scan-device-picker{display:grid;gap:8px;margin-top:20px}.scan-device-picker select{width:100%;min-width:0;box-sizing:border-box;font-family:inherit}

.scan-guide{box-shadow:0 0 0 1px #0009,inset 0 0 0 1px #0009}

.app-push-delivery{margin-top:20px}.app-push-delivery .listrow{align-items:flex-start;overflow-wrap:anywhere}.app-push-delivery small{display:block;line-height:1.6}

/* Keep the cash question beside payment confirmation. */
.cash-payment-dialog{width:min(560px,calc(100% - 24px));max-height:calc(100vh - 32px);max-height:calc(100dvh - 32px);overflow:auto;border:0;border-radius:20px;padding:24px;color:var(--ink);background:white;box-sizing:border-box}.cash-payment-dialog::backdrop{background:#14211dc9}.cash-payment-heading{display:flex;align-items:center;justify-content:space-between;gap:16px}.cash-payment-heading h2{margin:0}.cash-payment-dialog fieldset{border:0;padding:0;margin:20px 0;min-width:0}.cash-payment-dialog legend{font-weight:650;margin-bottom:12px}.cash-payment-dialog .cash-choice{display:flex;align-items:center;gap:10px;padding:12px;border:1px solid var(--line);border-radius:12px;margin:8px 0}.cash-payment-dialog .cash-choice input{width:auto;margin:0;flex:none}.cash-payment-dialog [hidden]{display:none!important}.cash-payment-dialog .cash-error{color:#9b331b;overflow-wrap:anywhere}.cash-payment-dialog input,.cash-payment-dialog textarea{width:100%;min-width:0}.cash-payment-dialog .actions{margin-top:20px;flex-wrap:wrap}.cash-payment-dialog .cash-extra{margin-top:16px}.cash-payment-dialog p{line-height:1.5}.cash-payment-dialog .check input{width:auto}@media(max-width:760px){.cash-payment-dialog{padding:18px}.cash-payment-heading h2{font-size:21px}.cash-payment-heading{gap:8px}.cash-payment-dialog .actions button{width:100%}}@media print{.cash-payment-dialog{display:none}}

.cash-payment-dialog .cash-choice input{width:18px;height:18px;min-height:0;padding:0;accent-color:var(--green)}

/* 0.1.57: one visible step, shared desktop/mobile flow. */
.guided-flow{display:grid;grid-template-columns:240px minmax(0,1fr);gap:24px;align-items:start;--guided-bottom:0px;--guided-footer-height:80px;margin:20px 0 28px}
.guided-main{min-width:0}.guided-main [hidden],.guided-flow [hidden]{display:none!important}
.guided-list{position:sticky;top:90px;display:grid;gap:6px;max-height:calc(100dvh - 190px);overflow:auto;padding:4px}
.guided-list-item{display:flex;gap:12px;align-items:flex-start;text-align:left;background:transparent;color:var(--ink);border:1px solid transparent;padding:12px;min-height:54px;width:100%;white-space:normal;line-height:1.4}
.guided-list-item[aria-current=step]{background:#fff;border-color:var(--green);box-shadow:0 2px 8px #0001}
.guided-list-item small{display:block;font-size:12px;margin-top:3px}.guided-number{flex:none;border-radius:50%;background:#eaf0ec;min-width:28px;height:28px;display:grid;place-items:center}
.guided-progress{font-weight:650;margin-bottom:14px;line-height:1.5;overflow-wrap:anywhere}.guided-flow h2{font-size:24px;line-height:1.3;margin:0 0 20px;scroll-margin-top:100px}.guided-flow h3{font-size:18px;line-height:1.4;margin:0}
.guided-flow h2:focus{outline:2px solid var(--green);outline-offset:5px;border-radius:4px}.guided-flow button:focus-visible{outline:3px solid var(--green);outline-offset:3px}
.guided-flow [data-guided-panel]{min-width:0;min-height:230px}.guided-flow label{margin-bottom:12px}.guided-flow textarea{min-height:120px}.guided-flow .upload{width:100%;box-sizing:border-box}.guided-flow .upload-input-label{border:2px dashed #a9bab1;border-radius:16px;min-height:120px;display:flex;flex-direction:column;justify-content:center;gap:12px;padding:20px;background:#f8faf8}.guided-flow .upload-input-label input{max-width:100%;min-width:0}.guided-flow .upload-previews{margin:12px 0}.guided-flow .upload progress{width:100%;margin:12px 0}.guided-flow .grid:has(>.upload:only-child){grid-template-columns:minmax(0,1fr)}
.guided-actions{position:sticky;bottom:var(--guided-bottom);z-index:34;display:flex;gap:10px;justify-content:space-between;padding:14px;background:#fff;border:1px solid var(--line);border-radius:16px;box-shadow:0 -4px 20px #17271f08;flex-wrap:wrap}.guided-actions button{min-height:48px;min-width:110px}.guided-actions [data-guided-return]{flex:1}.guided-flow[aria-busy=true] .guided-actions{opacity:.7}
.guided-error{background:#fff1ed;color:#8a2f1c;padding:18px;border-radius:12px;margin:16px 0;overflow-wrap:anywhere;line-height:1.6}.guided-open{color:#8a3e1d}.guided-done{color:#245b42}.guided-summary-item{border-top:1px solid var(--line);padding:18px 0}.guided-summary-item dl,.guided-flow [data-guided-panel]>dl{display:grid;gap:12px;margin:12px 0}.guided-summary-item dl>div{display:grid;grid-template-columns:minmax(110px,1fr) minmax(0,2fr);gap:12px}.guided-summary-item dt{color:var(--muted)}.guided-summary-item dd,.guided-flow dd{margin:0;overflow-wrap:anywhere}.guided-note{white-space:pre-wrap;overflow-wrap:anywhere}.guided-extra{margin:14px 0}.guided-extra>summary{font-weight:650;cursor:pointer;min-height:44px;display:list-item;align-content:center}.guided-extra-body{margin-top:18px}.guided-extra-body>.card{box-shadow:none;padding:12px 0;border:0}.has-guided-flow #toast{bottom:calc(170px + env(safe-area-inset-bottom))}
@media(max-width:1020px){.guided-flow{display:block;padding-bottom:calc(var(--guided-footer-height) + 24px)}.guided-list{display:none}.guided-actions{position:fixed;left:max(12px,env(safe-area-inset-left));right:max(12px,env(safe-area-inset-right));bottom:var(--guided-bottom);padding:12px 12px max(12px,env(safe-area-inset-bottom));border-radius:16px 16px 0 0}.guided-actions button{flex:1;min-width:90px}.guided-actions [data-guided-return]{order:-1;flex-basis:100%;min-height:44px}.guided-main>.card,.guided-main .request-form{padding:20px}.guided-flow h2{font-size:22px}.guided-summary-item dl>div{grid-template-columns:minmax(0,1fr)}.guided-summary-item .row{flex-wrap:wrap}.guided-main [data-guided-panel]{min-height:180px}.guided-flow .grid{grid-template-columns:minmax(0,1fr)}.guided-flow .upload-input-label{padding:16px}.guided-flow input,.guided-flow select,.guided-flow textarea{font-size:16px}.guided-flow .row{flex-wrap:wrap}.guided-flow~.guided-extra{position:relative}.has-guided-flow .footer{padding-bottom:120px}}
@media(prefers-reduced-motion:reduce){.guided-flow *{scroll-behavior:auto}}
@media print{.guided-list,.guided-actions{display:none}.guided-flow{display:block;padding:0}.guided-flow [data-guided-panel][hidden]{display:block!important}}
.guided-flow input,.guided-flow textarea,.guided-flow select,.guided-error,.guided-flow [data-upload-state]{scroll-margin-top:100px;scroll-margin-bottom:calc(var(--guided-footer-height) + var(--guided-bottom) + 20px)}
/* 0.1.58: dedicated viewport, no scrolling of the underlying request page. */
body.has-guided-flow{overflow:hidden;height:100dvh;overscroll-behavior:none}
.guided-flow[hidden],.guided-launch[hidden]{display:none!important}
.guided-flow{position:fixed;inset:var(--guided-top,0px) 0 auto;z-index:100;box-sizing:border-box;height:var(--guided-height,100dvh);margin:0;padding:max(14px,env(safe-area-inset-top)) max(18px,env(safe-area-inset-right)) max(14px,env(safe-area-inset-bottom)) max(18px,env(safe-area-inset-left));background:var(--bg);display:grid;grid-template-columns:230px minmax(0,1fr);gap:24px;align-items:stretch;overflow:hidden;max-width:none}
.guided-main{display:flex;flex-direction:column;min-height:0;width:100%;max-width:980px;margin-inline:auto;gap:10px;overflow:hidden}
.guided-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;flex:none;min-height:44px}
.guided-heading>div{min-width:0}.guided-heading small{font-size:11px}.guided-heading button{flex:none;gap:8px;min-height:44px;padding:8px 12px}.guided-progress{font-size:13px;line-height:1.35;margin:2px 0 0}
.guided-list{position:static;max-height:none;min-height:0;overflow-y:auto;overscroll-behavior:contain;margin:0;padding:0 4px 0 0;align-content:start}
.guided-list-item{padding:9px;gap:8px;font-size:13px;min-height:48px}.guided-list-item small{margin-top:1px}.guided-number{height:24px;min-width:24px}
.guided-main>.card,.guided-main .request-form{flex:1 1 0;display:block;min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable;margin:0;padding:20px;scroll-padding:12px;border-radius:14px}
.guided-main [data-guided-panel]{min-height:0}.guided-flow h2{font-size:23px;margin:0 0 14px}.guided-flow label{font-size:14px;margin:0 0 10px}.guided-flow .grid{gap:12px}.guided-flow p{line-height:1.45;margin:6px 0 12px}.guided-flow .stack{gap:10px}
.guided-flow input,.guided-flow select{min-height:44px;padding:9px 11px}.guided-flow textarea{min-height:72px;height:76px;padding:9px 11px;resize:vertical}.guided-flow .check{min-height:36px;display:flex;align-items:center;line-height:1.4}.guided-flow .check input{flex:none;width:20px;height:20px;min-height:20px;padding:0}
.guided-flow .vehicle-hint{font-size:11px;line-height:1.3}.guided-flow .request-save-state{padding:6px 0 0;margin:6px 0 0;border:0;min-height:24px;font-size:12px}.guided-flow .request-save-state button{min-height:36px;padding:6px 10px}
.guided-flow .upload-title,.guided-flow .upload-missing{display:none}.guided-flow .upload{padding:0;border:0;background:transparent}.guided-flow .upload-input-label{min-height:76px;padding:12px;gap:6px;margin:8px 0}.guided-flow .upload-input-caption{font-size:14px}.guided-flow .upload-input-label input{font-size:13px;padding:4px;min-height:32px}
.guided-flow .upload-previews{display:flex;gap:8px;overflow-x:auto;margin:8px 0;overscroll-behavior-x:contain}.guided-flow .upload-thumbnail{flex:0 0 76px;width:76px;height:68px;min-height:0;aspect-ratio:auto}.guided-flow .upload-thumbnail img{width:100%;height:100%;object-fit:cover}.guided-flow .upload-previews:empty{display:none}
.guided-formats,.guided-files{font-size:12px;margin:8px 0}.guided-formats summary,.guided-files summary{cursor:pointer;min-height:30px;align-content:center}.guided-flow .filelist{gap:6px;margin-top:8px}.guided-flow .filelist button{min-height:36px;padding:6px 10px}
.guided-flow .guided-actions{position:static;flex:none;margin:0;border-radius:12px;box-shadow:none;padding:10px;display:flex;gap:10px;flex-wrap:nowrap;background:#fff}
.guided-actions button{min-height:46px;min-width:100px}.guided-actions [data-guided-return]{order:0;flex:0 1 auto;font-size:12px;min-width:0}.guided-actions [data-guided-next],.guided-actions [data-guided-confirm]{margin-left:auto}
.guided-flow .guided-error{flex:none;max-height:20%;overflow:auto;padding:10px 12px;margin:0;font-size:13px}.guided-flow input,.guided-flow textarea,.guided-flow select,.guided-error,.guided-flow [data-upload-state]{scroll-margin:12px}
@media(max-width:1020px){.guided-flow{grid-template-columns:minmax(0,1fr);gap:0;padding:max(8px,env(safe-area-inset-top)) max(10px,env(safe-area-inset-right)) max(8px,env(safe-area-inset-bottom)) max(10px,env(safe-area-inset-left))}.guided-list{display:none}.guided-main{gap:8px}.guided-main>.card,.guided-main .request-form{padding:16px}.guided-flow .grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.guided-flow .grid>label:has([name=street]),.guided-flow .grid>label:has([name=country]),.guided-flow .grid>label:has([name=name]),.guided-flow .grid>label:has([name=phone]),.guided-flow .grid>label:has([name=brand]),.guided-flow .grid>label:has([name=model]),.guided-flow .grid>label:has([name=type]),.guided-flow .grid>label:has([name=frame]),.guided-flow .grid>label:has([name=year]),.guided-flow .grid>label:has([name=motor]),.guided-flow .grid>label:has([name=battery]),.guided-flow .grid>label:has([name=mileage]){grid-column:1/-1}.guided-flow h2{font-size:21px;margin-bottom:12px}.guided-flow .guided-actions{left:auto;right:auto;bottom:auto;padding:8px;flex-wrap:nowrap}.guided-actions button{flex:0 1 auto;min-width:84px;min-height:46px;padding:9px 12px}.guided-actions [data-guided-return]{flex:1;flex-basis:auto;order:0;font-size:11px;padding:6px;line-height:1.3}.guided-heading button{font-size:12px}.guided-flow .grid:has(>.upload:only-child){display:block}}
@media(max-height:500px){.guided-flow{padding-top:6px;padding-bottom:6px}.guided-heading{min-height:36px}.guided-heading small{display:none}.guided-heading button{min-height:36px}.guided-main{gap:6px}.guided-flow .guided-actions{padding:5px}.guided-actions button{min-height:40px}.guided-flow h2{font-size:19px;margin-bottom:10px}.guided-main>.card,.guided-main .request-form{padding:12px}.guided-flow .grid{grid-template-columns:repeat(2,minmax(0,1fr))}.guided-flow .grid>label{grid-column:auto!important}.guided-flow .vehicle-hint{display:none}}
@media print{body.has-guided-flow{height:auto;overflow:visible}.guided-flow{position:static;height:auto;display:block;overflow:visible}.guided-heading,.guided-actions{display:none}.guided-main>.card{overflow:visible}}

/* 0.1.59: shared number and label columns for every step. */
.guided-list .guided-list-item{display:grid;grid-template-columns:26px minmax(0,1fr);column-gap:10px;justify-content:stretch;justify-items:start;align-items:start;text-align:left}
.guided-list .guided-list-item>.guided-number{width:26px;min-width:26px;height:26px;margin:0;align-self:start}
.guided-list .guided-list-item>span:last-child{width:100%;min-width:0;text-align:left}

/* 0.1.60: compact steps start at the top of the form card. */
.guided-flow>.guided-list{align-self:start;height:auto;max-height:calc(100% - var(--guided-list-offset,54px));margin-top:var(--guided-list-offset,54px);padding:0 4px 0 0;grid-auto-rows:max-content;align-content:start;gap:4px}
.guided-list .guided-list-item{min-height:0;padding:7px 9px;line-height:1.3}
.guided-list .guided-list-item small{font-size:11px;line-height:1.25;margin-top:2px}
@media print{.guided-flow>.guided-list{display:none}}
