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

:root {
  --accent: #193f35;
  --ink: #193f35;
  --muted: #657168;
  --line: #dce1d7;
  --bg: #f5f6ef;
  --green: #234e41;
  --white: #fff;
  font-family: Arial,Helvetica,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: #fff;
  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-admin))/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: 9px;
  color: #fff;
  font-size: 19px;
  flex-shrink: 0;
}

.brandmark svg { width: 22px; height: 22px; }

.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: 12px;
  letter-spacing: .02em;
  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: #edf3df;
  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;
}



.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;
}

.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;
}

.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,.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; }
  
  #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,#193f35);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}}
@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}}

/* 0.1.61: Silbentrennung statt Umbruch mitten im Wort, Lesbarkeit, Navigation, Angebot. */
p,small,summary,h1,h2,h3,label,strong,.privacy,.timeline,.filelist,.doclink,.identity,.lead,.brand,.case-tab,.progress-field,.request-next,.info-grid dd,.upload-title,.listrow small,.notice,.case-guidance h2,.search-state p,.access-help p,.history-entry small,.guided-progress,.guided-error,.guided-note,.guided-summary-item dd,.guided-flow dd,.nav button span,.installed-app .nav button span{overflow-wrap:break-word;-webkit-hyphens:manual;hyphens:manual}
.overview-heading{flex-wrap:wrap;row-gap:12px}
.overview-stats span,.progress-title,.progress-detail,.guided-heading small,.guided-flow .vehicle-hint,.guided-list .guided-list-item small,.guided-actions [data-guided-return]{font-size:12px}
.nav .nav-scan,.installed-app .nav .nav-scan{background:transparent;color:var(--muted)}
@media screen and (max-width:760px){
  .nav{background:#fff}
  .nav button{font-size:11px;padding-left:1px;padding-right:1px}
  .nav button span{overflow-wrap:normal;hyphens:manual;white-space:nowrap}
  .overview-heading>div{flex:1 1 100%}
  .nav .nav-scan{color:#71777c}
  .nav button.active{background:#eaf0ec;color:var(--green)}
}
.installed-app .nav{background:#fff}
.installed-app .nav button{font-size:11px}
.installed-app .nav button span{overflow-wrap:normal;hyphens:manual;white-space:nowrap}
.installed-app .nav button.active{background:#eaf0ec;color:var(--green)}
.language{width:auto;min-width:118px}


.offer-price{display:grid;gap:2px;margin:2px 0 8px}
.offer-price span{font-size:14px;font-weight:650;color:var(--muted)}
.offer-price strong{font-size:34px;line-height:1.15;letter-spacing:-.6px;color:var(--ink)}
fieldset.plain{border:0;margin:0;padding:0;min-width:0}
fieldset.plain[disabled]{opacity:.55}
.backup-password{display:grid;gap:6px;margin:16px 0 14px;max-width:420px}
@media screen and (max-width:360px){
  .nav button,.installed-app .nav button{font-size:10px;letter-spacing:-.2px;padding-left:0;padding-right:0}
  .nav button span,.installed-app .nav button span{max-width:100%;overflow:hidden;text-overflow:ellipsis}
}

/* 0.1.64: VELOBUY UI Icons 1.0 */
.rs-icon{width:20px;height:20px;flex:none;display:inline-block;vertical-align:-4px;stroke-width:1.75}
.has-icon{display:inline-flex;align-items:center;justify-content:center;gap:8px}
a.doclink.has-icon{display:inline-flex;justify-content:flex-start;gap:6px}
a.doclink.has-icon .rs-icon{width:18px;height:18px}
.case-tab .tab-icon{width:18px;height:18px;margin:0}
.case-tab .tab-label{min-width:0;overflow-wrap:break-word;-webkit-hyphens:manual;hyphens:manual}
@media screen and (max-width:359px){.case-tab .tab-icon{display:none}}
.navigation-icon.rs-icon{width:24px;height:24px;vertical-align:middle}
summary .rs-icon{width:18px;height:18px;margin-right:8px;vertical-align:-3px}
.icon-heading{display:flex;align-items:center;gap:10px}
.icon-heading .rs-icon{width:22px;height:22px;color:var(--green)}
.upload-input-caption{display:inline-flex;align-items:center;gap:8px}
.upload-input-caption .rs-icon{width:20px;height:20px}
[data-guided-close] .rs-icon{width:18px;height:18px;margin-left:6px;vertical-align:-3px}
.image-preview-close .rs-icon,.privacy-dialog-close .rs-icon{width:22px;height:22px;vertical-align:middle}
.image-preview-prev .rs-icon,.image-preview-next .rs-icon{width:28px;height:28px;vertical-align:middle}
button[type=submit] > .rs-icon:only-child{width:20px;height:20px}

/* 0.1.65/0.1.67: Anmeldebereich – beide Karten Zeile für Zeile ausgerichtet */
.welcome-forms{align-items:stretch}
.welcome-forms>form.card.stack{display:flex;flex-direction:column;gap:18px}
.welcome-forms>form.card.stack>h2{margin:0}
.welcome-forms>form.card.stack>p{margin:0}
.welcome-forms>form.card.stack>button:last-child{margin-top:auto}
.welcome-field{display:grid;gap:12px;min-width:0}
@supports (grid-template-rows:subgrid){
  .welcome-forms{grid-template-rows:repeat(5,auto)}
  .welcome-forms>form.card.stack{display:grid;grid-row:span 5;grid-template-rows:subgrid;row-gap:18px;align-items:start}
  .welcome-forms>form.card.stack>button:last-child{margin-top:0;align-self:end}
}
.welcome-forms details{margin:0}
.privacy{font-size:14px;line-height:1.55;max-height:260px;padding:12px 14px;margin-top:6px;border:1px solid var(--line);border-radius:12px;background:#fafaf7;overscroll-behavior:contain}
.privacy:focus-visible{outline:2px solid var(--green);outline-offset:2px}
.access-help p{font-size:14px;line-height:1.55}
summary .rs-icon{margin-left:2px;margin-right:6px}

/* 0.1.71/0.1.72: customer messages */
.message-alert {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  padding: 12px 16px;
  border-radius: 12px;
  background: #fff4ec;
  border: 1px solid #f6c7a6;
  color: #8a3b0c;
  font-size: 14px;
  font-weight: 650;
}
.message-alert svg { flex: none; width: 20px; height: 20px; }
.status.status-message {
  background: var(--accent);
  color: #1f1f1f;
}
.request-message {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0 0 12px;
  padding: 10px 12px;
  border-left: 3px solid var(--accent);
  border-radius: 0 8px 8px 0;
  background: #fff8f3;
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink);
  overflow-wrap: anywhere;
}
.request-message>svg { flex: none; width: 18px; height: 18px; margin-top: 2px; color: #8a3b0c; }
.request-message-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin-bottom: 4px; color: var(--muted); font-size: 12px; }
.request-message .status-message { padding: 3px 8px; font-size: 11px; }
.request-message-text { display: block; }
.case-tools .has-unread { position: relative; }
.case-tools .has-unread::after {
  content: "";
  position: absolute;
  top: -3px;
  right: -3px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 2px #fff;
}
.message-done-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.message-done-row p { flex: 1 1 260px; margin: 0; font-size: 13px; }
.message-hint { margin: -4px 0 0; font-size: 12px; }

.device-retention { margin: 4px 0 12px; font-size: 12px; }
.calendar-pager-title { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 10px; text-align: center; }
.calendar-pager-title .calendar-today { min-height: 32px; padding: 5px 12px; font-size: 13px; }
.guided-intro { margin: -4px 0 18px; color: var(--muted); font-size: 15px; line-height: 1.55; max-width: 62ch; }

/* 0.1.78: label printing */
.print-label { display: none; }
@media print {
  body.printing-label > *:not(#printLabel) { display: none !important; }
  body.printing-label { margin: 0; padding: 0; background: #fff; }
  body.printing-label #printLabel { display: block; position: relative; width: 100%; color: #000; font-family: Arial, Helvetica, sans-serif; }
  #printLabel .label-box { position: absolute; box-sizing: border-box; padding: 3mm 4mm; display: flex; flex-direction: column; justify-content: center; gap: 1mm; overflow: hidden; }
  #printLabel .label-company { font-size: 7pt; text-transform: uppercase; letter-spacing: .04em; }
  #printLabel .label-number { font-size: 15pt; font-weight: 700; letter-spacing: .02em; }
  #printLabel .label-barcode svg { display: block; width: 100% !important; max-width: none !important; height: 15mm !important; }
  #printLabel .label-bike { font-size: 11pt; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  #printLabel .label-meta { font-size: 8pt; display: flex; flex-wrap: wrap; gap: 0 4mm; }
  #printLabel.label-dymo .label-barcode svg { height: 12mm !important; }
  #printLabel.label-a4_24 .label-box { padding: 2mm 3mm; gap: .5mm; }
  #printLabel.label-a4_24 .label-company { font-size: 6pt; }
  #printLabel.label-a4_24 .label-number { font-size: 10pt; }
  #printLabel.label-a4_24 .label-barcode svg { height: 9mm !important; }
  #printLabel.label-a4_24 .label-bike { font-size: 8pt; }
  #printLabel.label-a4_24 .label-meta { font-size: 6.5pt; }
  #printLabel.label-a4_tag .label-box { border: .3mm dashed #888; padding: 14mm 8mm 8mm; justify-content: flex-start; gap: 3mm; }
  #printLabel.label-a4_tag .label-hole { position: absolute; top: 4mm; left: 50%; width: 6mm; height: 6mm; margin-left: -3mm; border: .3mm solid #888; border-radius: 50%; }
  #printLabel.label-a4_tag .label-number { font-size: 20pt; }
  #printLabel.label-a4_tag .label-barcode svg { height: 22mm !important; }
  #printLabel.label-a4_tag .label-bike { font-size: 14pt; white-space: normal; }
  #printLabel.label-a4_tag .label-meta { font-size: 10pt; flex-direction: column; }
  #printLabel.label-a4_tag .label-notes { flex: 1; margin-top: 4mm; padding-top: 1mm; font-size: 9pt; color: #555; background: repeating-linear-gradient(to bottom, transparent 0, transparent 7.6mm, #999 7.6mm, #999 7.9mm); -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
.request-list-item .label-button { margin-left: auto; flex: none; display: inline-grid; place-items: center; width: 44px; min-width: 44px; height: 44px; min-height: 44px; padding: 0; }
.request-list-item .label-button svg { width: 20px; height: 20px; }

/* 0.1.80: settings sections */
.settings-layout { display: grid; grid-template-columns: 230px minmax(0,1fr); gap: 24px; align-items: start; }
.settings-nav { position: sticky; top: 16px; display: flex; flex-direction: column; gap: 4px; padding: 8px; background: #fff; border: 1px solid var(--line); border-radius: 16px; }
.settings-nav button { display: flex; align-items: center; justify-content: flex-start; gap: 10px; width: 100%; min-height: 42px; padding: 9px 12px; border: 0; border-radius: 10px; background: transparent; color: var(--ink); font-weight: 600; font-size: 14px; text-align: left; box-shadow: none; }
.settings-nav button svg { flex: none; width: 18px; height: 18px; color: var(--muted); }
.settings-nav button:hover { background: #f1f4f2; }
.settings-nav button.active { background: var(--green); color: #fff; }
.settings-nav button.active svg { color: #fff; }
.settings-content { min-width: 0; scroll-margin-top: 90px; }
.settings-content [data-settings-section] { display: grid; gap: 20px; }
.settings-content [data-settings-section][hidden] { display: none; }
.settings-savebar { position: sticky; bottom: 0; z-index: 5; display: flex; align-items: center; justify-content: flex-end; gap: 14px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.96); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 -4px 18px #0000000d; }
.settings-savebar[hidden] { display: none; }
.settings-savebar [data-settings-dirty] { color: #8a3b0c; font-weight: 600; font-size: 13px; }
@media (max-width: 860px) {
  .settings-layout { grid-template-columns: minmax(0,1fr); gap: 14px; }
  .settings-nav { position: static; flex-direction: row; overflow-x: auto; padding: 6px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .settings-nav::-webkit-scrollbar { display: none; }
  .settings-nav button { width: auto; flex: none; white-space: nowrap; min-height: 40px; padding: 8px 12px; font-size: 13px; }
  .staff-view .settings-savebar { bottom: calc(76px + env(safe-area-inset-bottom)); }
}

/* 0.1.83: statistic cards on small screens – one word and number, centred */
.overview-stats .stat-short { display: none; }
@media screen and (max-width:860px) {
  .overview-stats .card.stat { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 6px; padding: 14px 6px; }
  .overview-stats .card.stat .stat-long { display: none; }
  .overview-stats .card.stat .stat-short { display: block; font-size: 12px; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
  .overview-stats .card.stat strong { margin: 0; line-height: 1; }
}
@media screen and (max-width:360px) {
  .overview-stats { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 6px; }
  .overview-stats .card.stat { padding: 12px 4px; }
  .overview-stats .card.stat .stat-short { font-size: 11px; }
  .overview-stats .card.stat strong { font-size: 22px; }
}

/* 0.1.84: back link above the case header */
.case-backlink { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; margin: -10px 0 4px -8px; padding: 6px 10px 6px 4px; border: 0; border-radius: 10px; background: transparent; box-shadow: none; color: var(--green); font-size: 14px; font-weight: 650; }
.case-backlink svg { width: 18px; height: 18px; }
.case-backlink:hover { background: #e9efeb; }
.case-backlink:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.case-header h1 { overflow-wrap: anywhere; }

/* 0.1.85: case sections on phones – one compact row */
.case-tab .tab-short { display: none; }
@media screen and (max-width:760px) {
  .case-tabs { display: flex; gap: 4px; padding: 5px; border-radius: 14px; }
  .case-tab, .case-tab:first-child { grid-column: auto; flex: 1 1 0; position: relative; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-width: 0; min-height: 58px; padding: 8px 2px 7px; text-align: center; font-size: 11px; line-height: 1.15; border-radius: 10px; }
  .case-tab .tab-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .case-tab .tab-short { display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 650; }
  .case-tab .tab-icon { display: block; width: 20px; height: 20px; }
  .case-tab .step-dot { position: absolute; top: 7px; left: calc(50% + 8px); width: 7px; height: 7px; box-shadow: 0 0 0 2px #eaf0ec; }
  .case-tab.active .step-dot { box-shadow: 0 0 0 2px #fff; }
}
@media screen and (max-width:359px) {
  .case-tab .tab-icon { display: block; }
  .case-tab, .case-tab:first-child { font-size: 10px; padding-left: 1px; padding-right: 1px; }
}
@media screen and (max-width:760px) {
  .case-tools button { white-space: nowrap; overflow-wrap: normal; word-break: keep-all; hyphens: none; font-size: 12px; padding: 8px 6px; gap: 6px; min-width: 0; }
  .case-tools button svg { flex: none; width: 18px; height: 18px; }
}
@media screen and (max-width:400px) {
  .case-tools button svg { display: none; }
  .case-tools button.has-unread::after { top: -3px; right: -3px; }
}

/* 0.1.86: provenance & seller check */
.ankauf-pill { margin-left: 8px; vertical-align: middle; }
.ankauf-facts { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.ankauf-facts li { display: grid; grid-template-columns: minmax(120px, 34%) minmax(0,1fr); gap: 12px; padding: 9px 12px; font-size: 14px; border-top: 1px solid var(--line); }
.ankauf-facts li:first-child { border-top: 0; }
.ankauf-facts span { color: var(--muted); }
.ankauf-facts strong { font-weight: 600; overflow-wrap: anywhere; }
.ankauf-quick { padding: 16px; border-radius: 12px; background: #f4f8f5; border: 1px solid #d8e4dc; }
.ankauf-quick > p { margin: 0 0 10px; }
.ankauf-points { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 8px; }
.ankauf-points li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.45; }
.ankauf-points svg { flex: none; width: 18px; height: 18px; margin-top: 1px; color: var(--green); }
.ankauf-quick .actions { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 8px; }
.ankauf-detail { margin-top: 16px; }
@media screen and (max-width:760px) { .ankauf-facts li { grid-template-columns: minmax(0,1fr); gap: 2px; } }

/* 0.1.87: decision in "current status" */
.case-guidance { flex-wrap: wrap; }
.case-decision, .case-more { flex: 1 1 100%; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.decision-approve { display: grid; gap: 12px; }
.decision-buttons { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.decision-buttons .decline-link { margin-left: auto; background: transparent; border: 0; box-shadow: none; color: #b42318; font-weight: 650; padding: 10px 6px; min-height: 44px; text-decoration: underline; text-underline-offset: 3px; }
.decision-buttons .decline-link:hover { color: #8f1c13; }
.decision-panel { display: grid; gap: 10px; margin-top: 14px; padding: 14px; border-radius: 12px; background: #f7f8f7; border: 1px solid var(--line); }
.decision-panel[data-decision-panel="reject"] { background: #fff6f5; border-color: #f2c9c5; }
.decision-panel textarea { min-height: 96px; }
.decision-panel .muted { margin: 0; font-size: 13px; }
.case-more > summary { cursor: pointer; color: var(--muted); font-weight: 600; font-size: 14px; }
.case-more[open] > .decision-buttons { margin-top: 12px; }
.assign-line { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px; margin-top: 12px; }
.assign-line label { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.assign-line select { min-width: 180px; }
@media screen and (max-width:760px) {
  .decision-buttons > button:not(.decline-link) { flex: 1 1 100%; }
  .decision-buttons .decline-link { margin: 0 auto; }
}
.case-guidance > .case-decision, .case-guidance > .case-more { flex: 1 1 100%; width: 100%; }
.decision-panel[hidden] { display: none; }

/* 0.1.88: overview filters, clickable stats, dialogs */
.overview-stats .stat-link { display: block; width: 100%; text-align: left; font: inherit; color: var(--ink); background: #fff; border: 1px solid var(--line); cursor: pointer; box-shadow: none; transition: border-color .15s, box-shadow .15s; }
.overview-stats .stat-link:hover { border-color: #b9cdbf; box-shadow: 0 2px 10px #183d2814; }
.overview-stats .stat-link:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.list-filters { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 14px; scrollbar-width: none; }
.list-filters::-webkit-scrollbar { display: none; }
.list-filters .chip { flex: none; min-height: 36px; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink); font-size: 13px; font-weight: 600; box-shadow: none; white-space: nowrap; }
.list-filters .chip.active { background: var(--green); border-color: var(--green); color: #fff; }
.list-filters .chip-count { display: inline-block; min-width: 20px; margin-left: 4px; padding: 0 6px; border-radius: 999px; background: #ffffff33; font-size: 12px; }
.message-alert-link { display: flex; align-items: center; gap: 10px; width: 100%; padding: 0; border: 0; background: transparent; color: inherit; font: inherit; text-align: left; box-shadow: none; cursor: pointer; }
.message-alert-link span { text-decoration: underline; text-underline-offset: 3px; }
.rs-dialog { width: min(480px, calc(100vw - 32px)); max-height: calc(100vh - 48px); padding: 24px; border: 0; border-radius: 18px; box-shadow: 0 20px 60px #0004; }
.rs-dialog::backdrop { background: #0f1f1866; }
.rs-dialog h2 { margin: 0; font-size: 21px; }
.dialog-facts { display: grid; gap: 0; margin: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.dialog-facts div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 14px; border-top: 1px solid var(--line); }
.dialog-facts div:first-child { border-top: 0; }
.dialog-facts dt { color: var(--muted); }
.dialog-facts dd { margin: 0; font-weight: 700; text-align: right; }
.label-sheet { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 10px; background: #f2f4f3; border-radius: 10px; }
.label-sheet button { min-height: 38px; padding: 0; border: 1px dashed #b9c2bd; border-radius: 6px; background: #fff; color: var(--ink); font-weight: 600; box-shadow: none; }
.label-sheet button.suggested { border: 2px solid var(--green); background: #e8f2ec; }
.label-sheet button:hover { background: #eef5f0; }

/* 0.1.89: lock screen and password confirmation */
.rs-dialog.lock-dialog::backdrop { background: #1d2b25; }
.rs-dialog .error { margin: 0; color: #b42318; font-weight: 600; font-size: 14px; }
.rs-dialog .error[hidden] { display: none; }

/* 0.1.90: rating segments, desktop navigation icons, facts card, upload drop zone */
.rating-segments { border: 0; margin: 0 0 12px; padding: 0; min-width: 0; }
.rating-segments legend { font-weight: 600; font-size: 14px; margin-bottom: 8px; padding: 0; }
.segments { display: flex; flex-wrap: wrap; gap: 6px; }
.segment { position: relative; margin: 0; flex: 1 1 auto; }
.segment input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.segment span { display: flex; align-items: center; justify-content: center; min-height: 44px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); font-size: 14px; font-weight: 600; text-align: center; cursor: pointer; white-space: nowrap; }
.segment input:focus-visible + span { outline: 3px solid var(--green); outline-offset: 2px; }
.segment input:checked + span { color: #fff; border-color: transparent; }
.seg-very_good input:checked + span { background: #1f6b45; }
.seg-good input:checked + span { background: #2f8a5b; }
.seg-bad input:checked + span { background: #b42318; }
.seg-not_checked input:checked + span, .seg-not_applicable input:checked + span { background: #5c6670; }
.segment input:disabled + span { opacity: .55; cursor: default; }
@media screen and (min-width:761px) {
  .nav button { display: inline-flex; align-items: center; gap: 8px; }
  .nav .navigation-icon { display: inline-block; width: 18px; height: 18px; flex: none; }
}
.facts-card h2 { margin-bottom: 14px; }
.facts-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px 24px; }
.facts-col h3 { margin: 0 0 8px; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.facts-col dl { margin: 0; display: grid; gap: 6px; }
.facts-col .fact { display: grid; grid-template-columns: minmax(90px, 40%) minmax(0,1fr); gap: 8px; font-size: 14px; }
.facts-col dt { color: var(--muted); }
.facts-col dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.facts-col a { color: var(--green); }
.facts-photos { display: flex; gap: 8px; overflow-x: auto; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.facts-photos .upload-thumbnail { flex: 0 0 112px; width: 112px; height: 84px; }
@media screen and (max-width:900px) { .facts-grid { grid-template-columns: minmax(0,1fr); } }
.upload .upload-drop, .guided-flow .upload .upload-drop { position: relative; display: flex; align-items: center; gap: 14px; min-height: 84px; margin: 10px 0; padding: 14px 16px; border: 2px dashed #a9bab1; border-radius: 14px; background: #f6faf7; cursor: pointer; transition: background .15s, border-color .15s; }
.upload .upload-drop:hover, .upload .upload-drop:focus-within { background: #eaf3ed; border-color: var(--green); }
.upload .upload-drop:focus-within { outline: 3px solid var(--green); outline-offset: 2px; }
.upload-drop .upload-native { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; padding: 0; opacity: 0; cursor: pointer; font-size: 16px; }
.upload-drop-icon { flex: none; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: #fff; color: var(--green); box-shadow: 0 1px 4px #0000000f; }
.upload-drop-icon svg { width: 24px; height: 24px; }
.upload-drop-text { display: grid; gap: 3px; min-width: 0; }
.upload-drop-text strong { font-size: 15px; color: var(--ink); }
.upload-drop-text small { font-size: 12px; color: var(--muted); }
.upload-drop:has(.upload-native:disabled) { opacity: .6; cursor: progress; }

/* 0.1.91: frame check and automatic indications */
.frame-check, .review-signals { margin: 0 0 16px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.frame-check h3, .review-signals h3 { margin: 0 0 8px; font-size: 14px; }
.frame-check .muted { margin: 0 0 10px; font-size: 13px; }
.frame-result { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 10px; padding: 10px 12px; border-radius: 10px; font-size: 14px; }
.frame-result svg { flex: none; width: 20px; height: 20px; margin-top: 1px; }
.frame-result small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.frame-result.ok { background: #edf7f0; color: #1f5c3e; }
.frame-result.bad { background: #fdecea; color: #8f1c13; }
.frame-check-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; }
.frame-check-form label { flex: 1 1 220px; margin: 0; }
.frame-check-form input { text-transform: uppercase; letter-spacing: .04em; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.review-signals ul { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 8px; }
.review-signals li { display: flex; gap: 10px; align-items: flex-start; padding: 9px 12px; border-radius: 10px; font-size: 14px; line-height: 1.45; }
.review-signals li svg { flex: none; width: 18px; height: 18px; margin-top: 2px; }
.review-signals .signal-warn { background: #fff4e5; color: #7a3d00; }
.review-signals .signal-info { background: #f2f5f8; color: #34404a; }
.review-signals > .muted { margin: 0; font-size: 12px; }

/* 0.1.92: compact seller form */
.guided-subhead { margin: 18px 0 8px; font-size: 15px; }
.photo-progress { margin: 0 0 10px; font-weight: 600; }
.photo-slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; margin-top: 12px; }
.photo-slot { padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: #fff; min-width: 0; }
.photo-slot.done { border-color: #9cc9ad; background: #f6fbf8; }
.photo-slot h3 { display: flex; align-items: center; gap: 6px; margin: 0 0 6px; font-size: 15px; }
.photo-slot h3 svg { width: 18px; height: 18px; color: var(--green); flex: none; }
.photo-slot h3 small { font-weight: 500; color: var(--muted); }
.photo-slot > p { margin: 0 0 6px; font-size: 13px; color: var(--muted); }
.guided-flow .photo-slot .upload-drop { min-height: 64px; padding: 10px 12px; }
.guided-optional { margin-top: 14px; }
.guided-optional > summary { cursor: pointer; font-weight: 600; }
.summary-files { margin: 0 0 8px; padding-left: 18px; font-size: 14px; }
@media screen and (max-width:760px) { .photo-slots { grid-template-columns: minmax(0,1fr); } }

/* 0.1.93: two-factor sign-in */
.totp-steps { margin: 0; padding-left: 20px; display: grid; gap: 4px; font-size: 14px; }
.totp-qr { width: 200px; max-width: 70vw; margin: 4px auto; background: #fff; padding: 6px; border: 1px solid var(--line); border-radius: 12px; }
.totp-qr svg { display: block; width: 100%; height: auto; }
.totp-secret { margin: 0; text-align: center; font-size: 13px; overflow-wrap: anywhere; }
.totp-secret code, .recovery-codes code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 14px; letter-spacing: .04em; }
.recovery-codes { list-style: none; margin: 0; padding: 12px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; background: #f4f6f5; border-radius: 12px; }
.recovery-codes li { text-align: center; padding: 6px; background: #fff; border-radius: 8px; }
.two-factor-line { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; color: #1f5c3e; font-weight: 600; font-size: 14px; }
.two-factor-line svg { width: 18px; height: 18px; }
.recovery-hint summary { cursor: pointer; font-size: 13px; color: var(--muted); }
.rs-dialog { overflow-y: auto; }

/* 0.1.95: display fixes from the full layout check */
/* Überschriften im Schritt-Dialog: kein Eingabefeld-Rahmen beim programmatischen Fokus */
[data-guided-panel] > h2[tabindex="-1"]:focus { outline: none; }
#caseSection:focus { outline: none; }
/* Auf einen Blick: Beschriftung und Wert dürfen sich nicht überlappen */
.facts-col dt { overflow-wrap: anywhere; hyphens: auto; -webkit-hyphens: auto; }
.facts-col dd { overflow-wrap: break-word; word-break: normal; }
@media screen and (max-width:480px) {
  .facts-col .fact { grid-template-columns: minmax(0,1fr); gap: 0; margin-bottom: 4px; }
  .facts-col dt { font-size: 12px; }
}
.guided-email { overflow-wrap: break-word; word-break: normal; }
/* Übersicht auf schmalen Smartphones: Name oben, darunter Status links, Etikett und Öffnen rechts */
@media screen and (max-width:420px) {
  .request-list-item > .listrow { display: grid; grid-template-columns: minmax(0,1fr) auto auto; align-items: center; gap: 8px; }
  .request-list-item > .listrow > .grow { grid-column: 1 / -1; }
  .request-list-item > .listrow > .status { justify-self: start; }
  .request-list-item .label-button { margin-left: 0; }
}
/* Ausreichend große Tippflächen */

.doclink { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; }
/* Dateiauswahl in Einstellungen ohne nackte Browser-Schaltfläche */
input[type=file]:not(.upload-native) { width: 100%; max-width: 100%; padding: 8px; border: 1px dashed #a9bab1; border-radius: 10px; background: #f6faf7; font-size: 14px; color: var(--muted); cursor: pointer; }
input[type=file]:not(.upload-native)::file-selector-button { margin-right: 12px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); font: inherit; font-weight: 600; cursor: pointer; }
/* Tablet: Navigation ohne Umbruch, Symbole erst ab 1024 px */
@media screen and (min-width:761px) and (max-width:1023px) {
  .nav .navigation-icon { display: none; }
  .nav button { gap: 0; }
}
/* Tablet: Vorgangsabschnitte wie am Smartphone in einer Zeile */
@media screen and (min-width:761px) and (max-width:1000px) {
  .case-tabs { display: flex; gap: 4px; padding: 5px; border-radius: 14px; }
  .case-tab, .case-tab:first-child { grid-column: auto; flex: 1 1 0; position: relative; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-width: 0; min-height: 58px; padding: 8px 2px 7px; text-align: center; font-size: 12px; line-height: 1.15; border-radius: 10px; }
  .case-tab .tab-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .case-tab .tab-short { display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 650; }
  .case-tab .tab-icon { display: block; width: 20px; height: 20px; }
  .case-tab .step-dot { position: absolute; top: 7px; left: calc(50% + 8px); width: 7px; height: 7px; box-shadow: 0 0 0 2px #eaf0ec; }
}

/* 0.1.96: legal pages */
.rs-dialog.legal { width: min(720px, calc(100vw - 24px)); padding: 0; }
.legal-dialog { display: grid; grid-template-rows: auto minmax(0,1fr); max-height: calc(100vh - 48px); }
.legal-dialog .privacy-dialog-header { padding: 18px 20px 12px; border-bottom: 1px solid var(--line); }
.legal-text { padding: 16px 20px 22px; overflow-y: auto; white-space: pre-wrap; line-height: 1.6; font-size: 15px; overflow-wrap: break-word; }




/* 0.1.97: footer at the bottom edge on short pages */
#app { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
#app > .top { flex: none; }
#app > main { flex: 1 0 auto; display: flex; flex-direction: column; margin-block: 0; }
#app > main > .page-body { flex: 1 0 auto; min-width: 0; }

@media screen and (min-width:761px) { #app > main { padding-bottom: 20px; } }

/* 0.1.98: photo tiles – one photo per tile, large preview */
.photo-slots { align-items: stretch; }
.photo-slot { display: flex; flex-direction: column; gap: 10px; }
.photo-slot h3 { margin: 0; }
.photo-slot .photo-hint { margin: 0; font-size: 13px; color: var(--muted); }
.photo-slot .upload { margin: 0; padding: 0; border: 0; background: none; }
.photo-slot .upload-drop.photo-drop { flex-direction: column; justify-content: center; text-align: center; gap: 8px; min-height: 150px; margin: 0; }
.photo-slot .photo-drop .upload-drop-text { justify-items: center; }
.photo-shots { display: grid; gap: 8px; }
.photo-shots.multi { grid-template-columns: repeat(2, minmax(0,1fr)); }
.photo-shot { position: relative; margin: 0; display: grid; gap: 6px; }
.photo-shot .upload-thumbnail { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; }
.photo-shot .upload-thumbnail img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-done { position: absolute; top: 8px; left: 8px; display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px 4px 8px; border-radius: 999px; background: #1f6b45; color: #fff; font-size: 12px; font-weight: 700; box-shadow: 0 1px 4px #0003; }
.photo-done svg { width: 14px; height: 14px; color: #fff; }
.photo-shot figcaption { display: flex; justify-content: flex-end; }
.photo-shot .photo-remove { min-height: 36px; padding: 6px 12px; font-size: 13px; color: #b42318; }
.photo-slot.done { border-color: #9cc9ad; background: #f6fbf8; }
.photo-file { padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }

/* 0.1.99: photos in "At a glance" */
.facts-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px; overflow: visible; }
.facts-photo { margin: 0; display: grid; gap: 4px; min-width: 0; }
.facts-photo .upload-thumbnail, .facts-photos .facts-photo .upload-thumbnail { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; flex: none; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); background: #eef1ef; padding: 0; }
.facts-photo .upload-thumbnail img { width: 100%; height: 100%; object-fit: cover; display: block; }
.facts-photo figcaption { font-size: 12px; font-weight: 600; color: var(--muted); text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.facts-photo-missing { display: grid; place-items: center; align-content: center; gap: 2px; aspect-ratio: 4 / 3; border: 1px dashed #b9c2bd; border-radius: 10px; background: #f4f6f5; color: #8a958f; font-size: 12px; font-weight: 600; }
.facts-photo-missing svg { width: 20px; height: 20px; }
.facts-photo.missing figcaption { color: #8a958f; }
@media screen and (max-width:480px) { .facts-photos { grid-template-columns: repeat(3, minmax(0,1fr)); gap: 8px; } .facts-photo figcaption { font-size: 11px; } }

/* 0.1.100: header stays visible while scrolling (desktop and tablet; phones already) */
:root { --header-h: 76px; }
@media screen and (min-width:761px) {
  #app > .top { position: sticky; top: 0; z-index: 40; background: rgba(255,255,255,.96); -webkit-backdrop-filter: saturate(1.4) blur(8px); backdrop-filter: saturate(1.4) blur(8px); transition: box-shadow .2s; }
  .settings-nav { top: calc(var(--header-h) + 16px); }
  html { scroll-padding-top: calc(var(--header-h) + 12px); }
}
body.is-scrolled #app > .top { box-shadow: 0 2px 14px #17271f14; }
@media print { #app > .top { position: static; box-shadow: none; } }
#settingsForm[hidden] { display: none; }

/* 0.1.102: step list next to the content like the settings menu (desktop) */
@media screen and (min-width:1021px) {
  .guided-flow { grid-template-columns: 230px minmax(0, 980px); justify-content: center; column-gap: 24px; }
  .guided-flow > .guided-main { margin-inline: 0; max-width: none; }
  .guided-flow > .guided-list { align-self: start; margin-top: 54px; max-height: calc(100% - 54px); overflow-y: auto; gap: 4px; padding: 8px; background: #fff; border: 1px solid var(--line); border-radius: 16px; }
  .guided-flow .guided-list-item { border: 0; border-radius: 10px; min-height: 48px; padding: 9px 12px; box-shadow: none; }
  .guided-flow .guided-list-item:hover { background: #f1f4f2; }
  .guided-flow .guided-list-item[aria-current=step] { background: var(--green); color: #fff; border: 0; box-shadow: none; }
  .guided-flow .guided-list-item[aria-current=step] small, .guided-flow .guided-list-item[aria-current=step] small * { color: #d7ebde !important; }
  .guided-flow .guided-list-item[aria-current=step] .guided-number { background: #ffffff26; color: #fff; border-color: transparent; }
}

/* 0.1.103: no separate "Edit details" card for staff */
.guided-launch[data-launch-off] { display: none !important; }

/* 0.1.104: provenance check at the right time */
.frame-check.in-dialog { border: 0; padding: 0; background: none; margin: 8px 0 0; }
.review-result { margin: 16px 0 12px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; display: grid; gap: 10px; }
.review-result legend { padding: 0 6px; font-weight: 700; font-size: 14px; }

/* 0.1.105: overdue markers, snippets, all good */
.overdue-line { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; padding: 7px 10px; border-radius: 8px; background: #fff4e5; color: #7a3d00; font-size: 13px; font-weight: 600; }
.overdue-line svg { flex: none; width: 16px; height: 16px; }
.snippet-pick { display: grid; gap: 4px; font-size: 13px; color: var(--muted); }
.snippet-pick select { max-width: 360px; }
.all-good { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0 0 16px; padding: 12px; border-radius: 12px; background: #f4f8f5; border: 1px solid #d8e4dc; }
.all-good small { color: var(--muted); }

/* 0.1.106: comparables, key figures, calendar feed */
.comparables-summary { margin: 0 0 10px; font-size: 15px; }
.table-scroll { overflow-x: auto; }
.comparables-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.comparables-table th, .comparables-table td { padding: 8px 10px; border-top: 1px solid var(--line); text-align: left; white-space: nowrap; }
.comparables-table th { color: var(--muted); font-weight: 600; font-size: 12px; border-top: 0; }
.comparables-table .num { text-align: right; }
.comparables-table small { margin-left: 4px; padding: 1px 5px; border-radius: 6px; background: #e8f2ec; color: #1f5c3e; font-weight: 700; }
.insights { margin-bottom: 16px; }
.insights > summary { display: flex; align-items: center; gap: 8px; cursor: pointer; font-weight: 700; }
.insights > summary svg { width: 18px; height: 18px; color: var(--green); }
.insight-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 16px 0; }
.insight-kpis div { padding: 12px; border-radius: 12px; background: #f4f6f5; display: grid; gap: 4px; }
.insight-kpis span { font-size: 12px; color: var(--muted); }
.insight-kpis strong { font-size: 20px; }
.insight-chart { display: grid; grid-template-columns: repeat(12, minmax(0,1fr)); gap: 6px; align-items: end; height: 150px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.insight-col { display: grid; grid-template-rows: 1fr auto; height: 100%; gap: 4px; text-align: center; min-width: 0; }
.insight-col .bars { display: flex; align-items: flex-end; justify-content: center; gap: 2px; height: 100%; }
.insight-col i { display: block; width: 40%; max-width: 14px; min-height: 2px; border-radius: 3px 3px 0 0; }
.insight-col i.req, .insight-legend .req { background: #b9cdbf; }
.insight-col i.pur, .insight-legend .pur { background: var(--green); }
.insight-col small { font-size: 11px; color: var(--muted); }
.insight-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 12px; margin: 8px 0 0; }
.insight-legend span.req, .insight-legend span.pur { display: inline-block; width: 10px; height: 10px; border-radius: 2px; }
.feed-open { display: inline-flex; justify-content: center; text-decoration: none; }

/* 0.1.107: on-site contract */
.onsite-offer { margin-top: 10px; }
.rs-dialog.onsite-dialog { width: min(760px, calc(100vw - 16px)); max-height: calc(100dvh - 16px); overflow-y: auto; }
.rs-dialog.onsite-dialog::backdrop { background: #1d2b25e6; }
.onsite-step { display: grid; gap: 14px; }
.onsite-step h2 { margin: 0; }
.onsite-step .eyebrow { margin: 0; }
.onsite-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; margin: 0; }
.onsite-facts > div { padding: 12px; border-radius: 12px; background: #f4f6f5; }
.onsite-facts dt { font-size: 12px; color: var(--muted); }
.onsite-facts dd { margin: 4px 0 0; font-weight: 700; }
.onsite-facts small { font-weight: 500; color: var(--muted); }
.onsite-price dd { font-size: 26px; color: var(--green); }
.onsite-payment { border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; display: flex; flex-wrap: wrap; gap: 6px 24px; }
.onsite-payment legend { padding: 0 6px; font-weight: 700; font-size: 14px; }
.onsite-contract .privacy { max-height: 240px; }
.onsite-sign-label { margin: 4px 0 -6px; font-weight: 700; font-size: 14px; }
.sign-pad { display: block; width: 100%; height: auto; aspect-ratio: 3 / 1; border: 2px dashed #a9bab1; border-radius: 12px; background: #fff; touch-action: none; cursor: crosshair; }
.sign-tools { display: flex; justify-content: flex-end; margin-top: -6px; }
.sign-tools button { min-height: 34px; padding: 4px 10px; font-size: 13px; }
.onsite-step[hidden] { display: none; }
.onsite-payment .check { display: inline-flex; align-items: center; gap: 10px; margin: 0; font-weight: 600; min-height: 44px; }
.onsite-payment input[type=radio] { width: 22px; height: 22px; margin: 0; flex: none; accent-color: var(--green); }

/* 0.1.113: purchase steps after on-site signing */
.purchase-steps { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 0; }
.pstep { display: grid; grid-template-columns: 32px minmax(0,1fr); gap: 12px; padding: 16px 0; border-top: 1px solid var(--line); }
.pstep:first-child { border-top: 0; padding-top: 4px; }
.pstep-mark { width: 26px; height: 26px; border-radius: 50%; border: 2px solid #b9c2bd; display: grid; place-items: center; margin-top: 1px; }
.pstep.done .pstep-mark { background: var(--green); border-color: var(--green); color: #fff; }
.pstep-mark svg { width: 15px; height: 15px; }
.pstep-body { display: grid; gap: 6px; min-width: 0; }
.pstep-body > strong { font-size: 16px; }
.pstep-body .muted { margin: 0; }
.pstep-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.pstep-form { margin-top: 4px; }
.frame-ok { display: flex; align-items: center; gap: 8px; margin: 0; color: #1f5c3e; font-weight: 600; font-size: 14px; }
.frame-ok svg { width: 18px; height: 18px; }
.upload-pdf-tile { display: grid; place-items: center; width: 96px; height: 72px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: #b42318; font-weight: 800; text-decoration: none; }
.pstep-facts { margin: 0; font-size: 15px; }

/* 0.1.115: update banner */
.update-banner { position: fixed; left: 50%; bottom: calc(16px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 200; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; max-width: calc(100vw - 24px); padding: 12px 14px 12px 18px; border-radius: 14px; background: #1d2b25; color: #fff; box-shadow: 0 8px 28px #0004; font-weight: 600; }
.update-banner button { min-height: 40px; padding: 8px 14px; }
@media screen and (max-width:760px) { .update-banner { bottom: calc(84px + env(safe-area-inset-bottom)); } }

/* 0.1.117: settings areas */
.settings-readonly { margin-bottom: 12px; }
.owner-settings { margin-top: 8px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: #f8faf9; }
.owner-settings h3 { margin: 0; font-size: 15px; }
.owner-settings-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px 16px; }
[data-right-row][hidden] { display: none; }
.device-group-title { margin: 14px 0 4px; font-size: 14px; }
.device-person { margin: 6px 0 10px; padding-left: 10px; border-left: 3px solid #d8e4dc; }
.device-person-name { margin: 6px 0 2px; font-weight: 700; font-size: 14px; }
.device-row.current strong { color: var(--green); }
.device-actions { margin: 8px 0 4px; }
.devices-inactive { margin-top: 12px; }
.devices-inactive > summary { cursor: pointer; font-weight: 600; color: var(--muted); padding: 6px 0; }
.owner-settings[hidden] { display: none; }

/* 0.1.119: appearance on start, sign-in and customer case page */
html { background: var(--bg); }
body.appearance-on { background: transparent; }
body.appearance-on::before, body.appearance-on::after { content: ""; position: fixed; inset: 0; pointer-events: none; }
body.appearance-on::before { z-index: -2; background: var(--bg) var(--ap-image) center / cover no-repeat; }
body.appearance-on::after { z-index: -1; background: var(--ap-overlay); }
@media screen and (max-width:760px) {
  body.appearance-on[data-bg-mobile="lighter"]::after { background: var(--ap-overlay-mobile); }
  body.appearance-on[data-bg-mobile="none"]::before { background-image: none; }
}
body.appearance-on #app > .top { background: rgba(255,255,255,var(--header-alpha,1)); border-bottom-color: rgba(23,39,31,calc(var(--header-alpha,1) * .08)); }
body.appearance-on.header-glass #app > .top { -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2); }
body.appearance-on .card { box-shadow: 0 12px 34px rgba(120,80,30,.10), 0 1px 3px rgba(120,80,30,.06); }

.appearance-preview { position: relative; height: 190px; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: var(--bg); --prev-alpha: 1; }
.appearance-preview .ap-bg, .appearance-preview .ap-wash { position: absolute; inset: 0; background-size: cover; background-position: center; }
.appearance-preview .ap-head { position: absolute; left: 0; right: 0; top: 0; height: 30px; display: flex; align-items: center; justify-content: space-between; padding: 0 12px; background: rgba(255,255,255,var(--prev-alpha)); }
.appearance-preview.glass .ap-head { -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.appearance-preview .ap-logo { width: 46px; height: 12px; border-radius: 3px; background: #c9d3cd; }
.appearance-preview .ap-lang { width: 34px; height: 14px; border-radius: 4px; border: 1px solid #c9d3cd; background: #fff; }
.appearance-preview .ap-body { position: absolute; left: 22%; right: 22%; top: 44px; display: grid; gap: 7px; }
.appearance-preview .ap-title { height: 14px; width: 70%; border-radius: 3px; background: #23302a; opacity: .85; }
.appearance-preview .ap-text { height: 7px; width: 90%; border-radius: 3px; background: #6c7a72; opacity: .7; }
.appearance-preview .ap-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 6px; }
.appearance-preview .ap-cards span { height: 70px; border-radius: 8px; background: #fff; box-shadow: 0 6px 16px rgba(120,80,30,.12); }
.appearance-upload { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; }
.appearance-upload label { flex: 1 1 260px; margin: 0; }
.range-label output { font-weight: 600; color: var(--green); margin-left: 6px; }
.range-label input[type=range] { width: 100%; accent-color: var(--green); }
.appearance-pages { border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; display: grid; gap: 4px; }
.appearance-pages legend { padding: 0 6px; font-weight: 700; font-size: 14px; }
/* 0.1.120 */
body.appearance-on.has-guided-flow .guided-flow { background: transparent; }
.ap-area-label select { font-weight: 700; }
.ap-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; justify-content: space-between; }
.ap-copy { display: inline-flex; gap: 8px; align-items: center; flex-wrap: wrap; }

/* VELOBUY 0.1.122: shared design from the supplied website.
 * Original declarations are copied below; application layout adaptations follow. */
:root {--ink:#193f35;--green:#234e41;--lime:#d2ed98;--paper:#f5f6ef;--muted:#6b766e;--line:#dce1d7}
.brand {display:inline-flex;align-items:center;gap:9px;font-weight:850;font-size:24px;letter-spacing:-1px}
.brandmark {display:inline-flex;width:30px;height:31px;border-radius:8px;background:var(--ink);color:var(--lime);align-items:center;justify-content:center;font-size:30px;font-weight:900;line-height:1;padding-bottom:5px;transform:skew(-5deg)}
button, .button {display:inline-flex;justify-content:space-between;align-items:center;gap:32px;background:var(--ink);border:1px solid var(--ink);border-radius:7px;color:white;padding:18px 23px;font-size:14px;font-weight:600;transition:background .2s,transform .2s}
button:hover, .button:hover {background:#305f4b;transform:translateY(-2px)}
.eyebrow {font-size:10px;letter-spacing:1.9px;font-weight:700;display:flex;gap:10px;align-items:center}
em {font-family:Georgia,'Times New Roman',serif;font-weight:400}
.public-orbit {position:absolute;right:-42px;top:53px;width:470px;height:380px;border:1px solid #dce3d3;transform:rotate(-25deg);border-radius:50%;display:flex;align-items:center;justify-content:center}
.public-orbit:after, .public-orbit:before {content:'';position:absolute;inset:35px -30px;border:1px solid #dce3d3;border-radius:50%;transform:rotate(60deg)}
.public-orbit:before {content:'';position:absolute;inset:35px -30px;border:1px solid #dce3d3;border-radius:50%;transform:rotate(60deg)}
.public-orbit span {font-size:240px;color:#e5ebd9;font-weight:900;transform:rotate(25deg);font-style:italic}

/* Stable viewport width prevents the logo and orbit moving when a scrollbar appears. */
html { scrollbar-gutter: stable; }
body { -webkit-font-smoothing: antialiased; background: var(--paper); }
:root { font-synthesis: weight style; --bg: var(--paper); --content-public: 1280px; --content-admin: 1280px; }
.brand { flex: 1 1 auto; min-width: 0; }
.brandmark { flex: 0 0 auto; font-family: Arial,Helvetica,sans-serif; }
.top, .staff-view .top { min-height: 94px; padding: 18px 6%; background: var(--paper); border-color: #e2e6dc; }
body.appearance-on #app > .top { background: color-mix(in srgb, var(--paper) calc(var(--header-alpha,1) * 100%), transparent); }
main.narrow, main.shell { width: 100%; max-width: none; padding-left: 6%; padding-right: 6%; }
main.narrow { padding-top: 0; }
main.shell { padding-top: 30px; }
.hero { position: relative; isolation: isolate; padding: 68px 0 0; margin: 0; }
.hero > :not(.public-orbit) { position: relative; z-index: 1; }
.hero .eyebrow { display: flex; align-items: center; gap: 10px; }
.hero .eyebrow:before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #79a453; flex: none; }
.hero h1 { font-size: clamp(48px,5.8vw,82px); line-height: 1.04; letter-spacing: -4px; margin: 27px 0 22px; font-weight: 550; max-width: 950px; }
.hero h1 em { color: #658d4c; }
.hero .lead { font-size: 17px; line-height: 1.7; max-width: 570px; color: #637065; }
.public-orbit { pointer-events: none; right: -42px; top: 53px; z-index: 0; }
.public-orbit, .public-orbit span { animation: none; transition: none; }
.public-orbit span { display: block; line-height: normal; font-family: Arial,Helvetica,sans-serif; }
.steps { position: relative; margin: 32px 0 28px; }
.step b { background: var(--lime); border-color: #bccfa7; color: var(--ink); }
h1 { font-weight: 550; }
h2, h3 { font-weight: 500; }
.card { border: 1px solid #e0e6d7; border-radius: 10px; box-shadow: 0 4px 18px #24433006; }
body.appearance-on .card { box-shadow: 0 4px 18px #24433006; }
.welcome-forms { max-width: 1040px; gap: 24px; }
.welcome-forms > form.card { padding: 30px; }
.welcome-forms h2 { font-size: 26px; letter-spacing: -1px; }
.welcome-forms input { width: 100%; }
input, select, textarea { border-color: #d6dfcd; border-radius: 5px; background: #fafbf8; }
input:focus, select:focus, textarea:focus { outline: 2px solid #87a85c; outline-offset: 2px; }
button, .button { min-height: 44px; max-width: 100%; line-height: 1.4; }
button:hover, .button:hover { filter: none; }
button:disabled:hover, .button:disabled:hover { transform: none; }
button.secondary, .button.secondary { background: #e8efdf; border-color: #e8efdf; color: var(--ink); }
button.ghost { background: transparent; color: var(--muted); border: 1px solid var(--line); }
button.danger { background: #fdece7; color: #a92f13; border-color: #fdece7; }
button:focus-visible, .button:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid #7ea941; outline-offset: 5px; }


.eyebrow { text-transform: uppercase; }
.notice { background: #edf3df; border-left-color: var(--green); }
.notice.warning, .warning { background: #fff2e9; border-left-color: #b58129; }
.notice.success, .success { background: #edf5ee; border-color: #337249; }
.nav button.active, .settings-nav button.active, .case-tab.active, .installed-app .nav button.active { background: #e8efdf; color: var(--ink); }
.settings-nav button, .settings-nav button .rs-icon { color: var(--muted); }
.settings-nav button.active .rs-icon { color: var(--ink); }
.list-filters .chip.active { background: var(--lime); color: var(--ink); border-color: #bccfa7; }
.stat-link, .overview-stats button.card { color: var(--ink); background: #fff; }
.overview-stats strong { font-weight: 500; letter-spacing: -1px; }
.request-search { background: #eef1e8; }
.upload, .upload .upload-drop, .guided-flow .upload .upload-drop { background: #fbfcf9; }
.upload .upload-drop:hover, .upload .upload-drop:focus-within { background: #edf3df; }
/* Use the website's actual glyphs for functions represented there. New functions retain SVGs. */
.website-symbol.rs-icon { display: inline-flex; align-items: center; justify-content: center; font-family: Arial,Helvetica,sans-serif; font-size: 20px; font-weight: 400; line-height: 1; font-style: normal; text-decoration: none; }
.nav button:hover, .settings-nav button:hover, .case-tab:hover, button.chip:hover { transform: none; }
.welcome-forms summary, .access-help summary { list-style: none; display: flex; align-items: center; gap: 10px; cursor: pointer; }
.welcome-forms summary::-webkit-details-marker, .access-help summary::-webkit-details-marker { display: none; }
.welcome-forms summary:after, .access-help summary:after { content: '+'; margin-left: auto; color: #80976c; font-size: 20px; font-weight: 300; }
.welcome-forms details[open] > summary:after, .access-help[open] > summary:after { transform: rotate(45deg); }
.welcome-forms summary .rs-icon, .access-help summary .rs-icon { display: none; }

@media (min-width:1500px) {
 .top, .staff-view .top, main.narrow, main.shell { padding-left: max(6%,calc((100vw - 1280px)/2)); padding-right: max(6%,calc((100vw - 1280px)/2)); }
}
@media (max-width:1000px) {
 .top, .staff-view .top { min-height: 80px; }
 .hero { padding-top: 50px; }
 .public-orbit { right: -210px; }
}
@media (max-width:700px) {
 .top, .staff-view .top { min-height: 74px; padding-top: 14px; padding-bottom: 14px; }
 .brand { font-size: 21px; }
 .brandmark { width: 26px; height: 27px; font-size: 27px; }
 .hero { padding-top: 38px; }
 .eyebrow { font-size: 8px; letter-spacing: 1.4px; }
 .hero h1 { font-size: 49px; letter-spacing: -2.8px; line-height: 1.08; margin-top: 23px; overflow-wrap: anywhere; }
 .hero .lead { font-size: 14px; max-width: 420px; line-height: 1.8; }
 .public-orbit { width: 260px; height: 250px; right: -135px; top: 190px; opacity: .6; }
 .public-orbit span { font-size: 160px; }
 .hero { overflow: hidden; }
 .welcome-forms { grid-template-columns: minmax(0,1fr); }
 .welcome-forms > form.card { padding: 26px; }
 .welcome-forms input, .welcome-forms textarea { font-size: 16px; }
 .steps { flex-wrap: wrap; gap: 14px; }
}
@media (prefers-reduced-motion:reduce) { button, .button { transition: none; } }

/* Clip decorative orbit overflow at the viewport, including tablet widths. */
main.narrow { overflow-x: clip; }

/* 0.1.123: original website footer, copied with its media rules. */
footer.website-footer { flex: none; color: var(--ink); font-family: Arial,Helvetica,sans-serif; line-height: normal; }
.website-footer :where(button) { all: unset; cursor: pointer; }
.website-footer :where(a) { color: inherit; text-decoration: none; }
.website-footer :where(p) { margin: 1em 0; line-height: normal; }
footer.website-footer .brand { display: inline-flex; flex: initial; }
.website-footer :where(.brand-icon) { display: inline-flex; width: 30px; height: 31px; border-radius: 8px; background: var(--ink); color: var(--lime); align-items: center; justify-content: center; font-size: 30px; font-weight: 900; line-height: 1; padding-bottom: 5px; transform: skew(-5deg); flex: none; }
footer.website-footer{padding:40px 6% 22px;background:#f9faf6}
.footer-main,.footer-bottom{display:flex;justify-content:space-between;align-items:center;gap:25px}
.footer-main .brand{font-size:20px}
.footer-main .brand-icon{width:25px;height:26px;font-size:26px}
.footer-main>p{font-size:12px;color:#849078;margin-right:auto}
.footer-main>span{font-size:10px;color:#849078}
.footer-main>span a{font-weight:bold;color:var(--ink)}
.footer-bottom{border-top:1px solid #e1e7d9;margin-top:29px;padding-top:21px;font-size:9px;color:#95a087}
.footer-bottom>div{display:flex;gap:23px}
.footer-bottom button{border:none;padding:0;background:none;color:inherit;font-size:9px;cursor:pointer}
@media (min-width:1500px){footer.website-footer{padding-left:max(6%,calc((100vw - 1280px)/2));padding-right:max(6%,calc((100vw - 1280px)/2))}}
@media (max-width:700px){.footer-main{flex-wrap:wrap;gap:17px}}
@media (max-width:700px){.footer-main>p{font-size:10px;margin:0}}
@media (max-width:700px){.footer-main>span{width:100%;font-size:9px}}
@media (max-width:700px){.footer-bottom{align-items:flex-start;flex-direction:column;gap:17px;font-size:8px}}
@media (max-width:700px){.footer-bottom>div{gap:18px}}
@media (max-width:700px){.footer-bottom button{font-size:8px}}
.footer-bottom>div{flex-wrap:wrap}
/* Original website component declarations, scoped to the settings controls. */
.settings-nav{width:185px;flex-shrink:0;background:#fbfcf9;border-right:1px solid #e8ece3;padding:23px 14px 13px;display:flex;flex-direction:column;border-radius:0 0 0 12px}
.settings-nav button{display:flex;align-items:center;gap:10px;font-size:11px;padding:11px 10px;color:#74816b;margin-bottom:2px}
.settings-nav button.active{background:#e8efdf;border-radius:5px;color:#365037;font-weight:600}
.settings-content label:not(.check){font-size:11px;margin-top:6px;font-weight:600;color:#52664a}
.settings-content input:not([type=checkbox]):not([type=radio]):not([type=color]):not([type=range]),.settings-content textarea{width:100%;min-width:0;border:1px solid #d6dfcd;background:#fafbf8;padding:11px 12px;border-radius:5px;font:inherit;font-size:13px;color:var(--ink)}
.settings-content input:focus,.settings-content textarea:focus{outline:2px solid #87a85c;outline-offset:2px}
.settings-content textarea{resize:vertical;min-height:95px;line-height:1.5}
.settings-content .card{background:#fff;border-radius:10px;padding:30px;width:410px;flex-shrink:0}

/* Application integration: layout and access, without changing the source footer design. */
footer.website-footer button:focus-visible, footer.website-footer a:focus-visible { outline: 3px solid #7ea941; outline-offset: 5px; }
footer.website-footer button:hover { background: none; transform: none; filter: none; }
#app > main { padding-bottom: 30px; }
#app > footer.website-footer { margin-top: 0; }
.staff-entry { font-size: 12px; padding: 10px 14px; }
.settings-nav { width: auto; border: 1px solid #e8ece3; border-radius: 0 0 0 12px; }
.settings-nav button { width: 100%; border: 0; border-radius: 0; background: transparent; margin: 0 0 2px; text-align: left; justify-content: flex-start; min-height: 42px; line-height: 1.4; font-weight: 400; }
.settings-nav button.active { border-radius: 5px; }
.settings-nav button:hover { background: #e8efdf; transform: none; }
.settings-content .card { width: 100%; max-width: none; flex-shrink: 1; }
.settings-content label:not(.check) { display: grid; gap: 8px; }
.settings-content label.check { font-size: 13px; line-height: 1.6; }
.settings-content input[type=file] { background: transparent; }
.settings-savebar { background: var(--paper); border-radius: 7px; border-color: var(--line); box-shadow: none; }
.appearance-preview { height: 260px; background: var(--paper); }
/* 0.1.153: the preview header follows the opacity setting like the real header */
.appearance-preview .ap-head { background: color-mix(in srgb, var(--paper) calc(var(--prev-alpha,1) * 100%), transparent); }
.appearance-preview .ap-logo { width: auto; height: auto; background: none; display: inline-flex; gap: 4px; align-items: center; color: var(--ink); font: 850 9px Arial,Helvetica,sans-serif; }
.appearance-preview .ap-logo .brand-icon { display: inline-flex; align-items: center; justify-content: center; width: 12px; height: 13px; border-radius: 3px; background: var(--ink); color: var(--lime); font: 900 13px/1 Arial,Helvetica,sans-serif; padding-bottom: 2px; transform: skew(-5deg); }
.appearance-preview .ap-logo img { display: block; max-width: 90px; max-height: 18px; object-fit: contain; }
.appearance-preview .ap-body { bottom: 60px; }
.appearance-preview .ap-footer { position: absolute; bottom: 0; left: 0; width: 100%; height: 55px; overflow: hidden; pointer-events: none; }
.appearance-preview .ap-footer > footer.website-footer { width: 400%; transform: scale(.25); transform-origin: top left; padding-bottom: 22px; }
@media (max-width:860px) {
 .settings-nav { flex-direction: row; width: 100%; padding: 6px; border-radius: 7px; }
 .settings-nav button { width: auto; margin: 0; padding: 10px 12px; font-size: 12px; }
}
@media (max-width:700px) {
 .settings-content input:not([type=checkbox]):not([type=radio]), .settings-content textarea { font-size: 16px; }
 .settings-content .card { padding: 26px; }
}
@media (max-width:760px) {
 .staff-view > #app > footer.website-footer { padding-bottom: calc(100px + env(safe-area-inset-bottom)); }
}
.installed-app .staff-view > #app > footer.website-footer { padding-bottom: calc(110px + env(safe-area-inset-bottom)); }
@media print { #app > footer.website-footer { display: none; } }

/* 0.1.124: Diagonal arrows keep the desktop appearance on iOS/iPadOS. */
.desktop-arrow{display:inline-block;width:.9em;height:.9em;vertical-align:-.08em;flex-shrink:0;color:inherit}
.desktop-arrow.rs-icon{width:20px;height:20px;vertical-align:-4px}
.desktop-arrow.navigation-icon{width:24px;height:24px;vertical-align:middle}
.filelist .desktop-arrow{margin-right:.3em}

/* 0.1.125: Shared public entry layout and aligned form rows. */
body.public-entry #app > .top{background:var(--paper);border-bottom-color:#e2e6dc}
body.public-entry .welcome-forms{width:100%;max-width:none}
body.public-entry .welcome-forms > form.card{width:100%;min-width:0}
body.public-entry .welcome-forms .welcome-field{align-self:start}
body.public-entry .welcome-forms label{margin:0}
body.public-entry .auth-card{width:100%;max-width:520px;margin:48px auto;padding:30px;gap:24px}
body.public-entry .auth-card > .eyebrow,body.public-entry .auth-card h1{margin:0}
body.public-entry .auth-card h1{font-size:36px;line-height:1.15;letter-spacing:-1.2px;overflow-wrap:anywhere}
body.public-entry .auth-card form{gap:18px}
body.public-entry .auth-card label:not(.check){display:grid;gap:8px;margin:0;min-width:0}
body.public-entry .auth-card input:not([type=checkbox]){width:100%;min-width:0}
body.public-entry .auth-card .check{display:flex;align-items:flex-start;gap:10px;margin:0;line-height:1.5}
body.public-entry .auth-card .check input{flex:0 0 auto;margin:3px 0 0}
body.public-entry .auth-card button{width:100%;justify-content:center}
body.public-entry .auth-card details{margin:0}
@media(min-width:761px){
 body.public-entry .welcome-forms{grid-template-rows:repeat(5,auto)}
 body.public-entry .welcome-forms>form.card.stack{display:grid;grid-row:span 5;grid-template-rows:subgrid;align-items:start}
}
@media(max-width:760px){
 body.public-entry .welcome-forms{grid-template-columns:minmax(0,1fr);grid-template-rows:none}
 body.public-entry .welcome-forms>form.card.stack{display:flex;grid-row:auto;gap:18px;padding:24px}
 body.public-entry .welcome-forms>form.card.stack>button:last-child{margin-top:auto}
 body.public-entry .auth-card{margin:28px auto;padding:24px;gap:20px}
 body.public-entry .auth-card h1{font-size:30px}
}

/* 0.1.126: linked VELOBUY branding, preserving header dimensions. */
a.brand-home-link{color:inherit;text-decoration:none;align-self:center}
a.brand-home-link:focus-visible{outline:3px solid #7ea941;outline-offset:5px}

/* Market data */
.market-record{border-top:1px solid #ddd;padding:16px 0}.market-record summary{cursor:pointer;display:flex;gap:12px;justify-content:space-between;flex-wrap:wrap}.market-record>div{padding-top:16px}.market-record a{overflow-wrap:anywhere}.market-record li{margin:8px 0}

/* 0.1.132: market data connection check */
.market-test{border:1px solid #dce1d7;border-radius:8px;padding:14px 16px;background:#f5f6ef}
.market-test.ok{border-color:#9fbf8a}
.market-test.failed{border-color:#d9a08f;background:#fdf3ef}
.market-test ul{margin:8px 0 0;padding-left:0;list-style:none}
.market-test li{margin:8px 0}
.market-test blockquote{margin:6px 0 0;padding:10px 12px;border-left:3px solid #193f35;background:#fff;white-space:pre-wrap;overflow-wrap:anywhere}
.market-test a{overflow-wrap:anywhere}

/* 0.1.133: profile plausibility */
.market-record .notice ul{margin:6px 0 4px;padding-left:18px}
.market-mismatch{border-color:#d9a08f;background:#fdf3ef}
.market-mismatch a{overflow-wrap:anywhere}

/* 0.1.134: real models, model check and catalog */
.link-button{display:inline;gap:0;border-radius:0;background:none;border:0;padding:0;min-height:0;color:inherit;font:inherit;text-decoration:underline;cursor:pointer;box-shadow:none}
.link-button:hover{background:none;color:inherit}
.market-variants{border:1px solid #9fbf8a;border-radius:8px;padding:14px 16px;background:#f5f8f0}
.market-variant-list{list-style:none;margin:0;padding:0}
.market-variant-list li{margin:0;padding:10px 0;border-top:1px solid #dce1d7}
.market-variant-list li:first-child{border-top:0}
.market-variant-list .check{display:flex;align-items:flex-start;gap:10px;margin:0}
.market-variant-list .check input{margin:3px 0 0;flex:0 0 auto}
.market-variant-text{display:block;flex:1;min-width:0;overflow-wrap:anywhere}
.market-variant-text small{display:block;margin-top:2px}
.market-variant-source{display:block;padding-left:30px;overflow-wrap:anywhere}
.market-badge{display:inline-block;font-size:.78em;padding:1px 7px;border-radius:999px;background:#193f35;color:#fff;vertical-align:1px}
.market-unsourced{color:#9a4b2f;font-weight:600}
.market-uncertain{border-color:#e0c37a;background:#fdf8ea}
.market-uncertain ul{margin:6px 0 4px;padding-left:18px}
.market-lookup{border:1px solid #dce1d7;border-radius:8px;padding:14px 16px;background:#fff}
.market-lookup ul{padding-left:18px}
.market-catalog{list-style:none;padding:0;margin:8px 0 0}
.market-catalog li{padding:8px 0;border-top:1px solid #dce1d7;overflow-wrap:anywhere}
.market-edit>summary,.market-more>summary{cursor:pointer;font-weight:600}
.market-edit form{padding-top:12px}

/* 0.1.138: model series, CSV import, price suggestion */
.market-suggest-inline{display:block;min-height:0;margin-top:4px;font-size:13px;font-weight:400;color:#9a4b2f}
.market-suggest-inline:empty{display:none}
.market-suggest{border-color:#e0c37a;background:#fdf8ea}
.market-brand{border-top:1px solid #dce1d7;padding:8px 0}
.market-brand>summary{cursor:pointer;font-weight:600}
.market-brand[hidden]{display:none}
.market-catalog li[hidden]{display:none}
.market-import>summary{cursor:pointer;font-weight:600}
.market-import .stack{padding-top:12px}
.market-estimate{border:1px solid #9fbf8a;border-radius:8px;padding:12px 16px;background:#f5f8f0}
.market-estimate p{margin:0 0 6px}

/* 0.1.140: guide price tiers, market price in the purchase request */
.market-residual{border:1px solid #dce1d7;border-radius:8px;padding:12px 16px;margin:0;min-width:0}
.market-residual legend{font-weight:600;padding:0 6px}
.market-estimate.tier-2,.market-estimate.tier-3,.market-estimate.tier-4{border-color:#e0c37a;background:#fdf8ea}
.market-badge.conf-medium,.market-badge.conf-low{background:#9a6b1f}
.market-observations{padding-left:18px}
.market-observations li{margin:6px 0;overflow-wrap:anywhere}
.market-case .notice ul{margin:6px 0 4px;padding-left:18px}

/* 0.1.141: research log */
.market-log>summary{cursor:pointer}
.market-log ul{padding-left:18px}
.market-log li{margin:6px 0}
.market-log-url{overflow-wrap:anywhere;color:#657168}

/* 0.1.142: link check */
.market-link.ok{color:#2f6b3a;font-weight:600}

/* 0.1.144: profile list with search, pages and activity */
.market-activity{display:inline-block;font-size:.78em;padding:1px 7px;border-radius:999px;margin-right:6px;vertical-align:1px}
.market-activity.active{background:#2f6b3a;color:#fff}
.market-activity.dormant{background:#e5e2d8;color:#4b4b4b}
.market-profile-filter{align-items:flex-end;gap:10px}
.market-profile-filter label{margin:0}
.market-profile-filter .grow{flex:1 1 220px}
.market-pager{justify-content:center;align-items:center;gap:12px;padding-top:12px}
[data-market-profiles][aria-busy="true"]{opacity:.6}

/* 0.1.145: evidence of listed models */
.market-link.warn{color:#8a5a12;font-weight:600}
.market-old{border-left-color:#8a8a8a}
.market-old button{margin-top:8px}

/* 0.1.147: close the model check result */
.market-lookup-head{align-items:flex-start;gap:12px;flex-wrap:wrap}
.market-lookup-head p{margin:0;flex:1 1 260px}

/* 0.1.150: smartphone – account menu in one column, collapsible footer */
.footer-compact{display:none}
@media screen and (max-width:760px){
  .top.account-open .tools{grid-template-columns:minmax(0,1fr)}
  .top.account-open .tools button,.top.account-open .language{width:100%;min-height:48px;white-space:nowrap;overflow-wrap:normal;word-break:normal;hyphens:none;justify-content:center}
  .top.account-open .tools button span{white-space:nowrap;overflow-wrap:normal}
  footer.website-footer{padding-top:14px;padding-bottom:14px}
  /* The footer keeps the space for the bottom navigation, so the page itself needs no second gap. */
  .staff-view main.shell{padding-bottom:28px}
  body.staff-view > #app > footer.website-footer,.installed-app body.staff-view > #app > footer.website-footer,.installed-app .staff-view > #app > footer.website-footer{padding-bottom:calc(84px + env(safe-area-inset-bottom))}
}

/* 0.1.151: drawn marks instead of characters */
.rs-icon.inline-mark{width:1.05em;height:1.05em;vertical-align:-.15em;margin-right:.3em;stroke-width:2.2}
.rs-icon.inline-mark.ok{color:#2f6b3a}.rs-icon.inline-mark.bad{color:#9b331b}.rs-icon.inline-mark.open{color:#9aa39a}
.footer-more .rs-icon.inline-mark{margin:0 0 0 .3em}

/* 0.1.152: collapsible footer also on tablets – up to 1024 px, and on larger touch screens without a mouse (iPad Pro landscape).
   Computers with a mouse keep the full footer. The space for the bottom navigation stays a smartphone rule (see 0.1.150). */
@media screen and (max-width:1024px),screen and (hover:none) and (pointer:coarse) and (max-width:1400px){
  footer.website-footer{padding-top:14px;padding-bottom:14px}
  footer.website-footer:not(.footer-open) .footer-main,footer.website-footer:not(.footer-open) .footer-bottom{display:none}
  footer.website-footer .footer-compact{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
  .footer-compact .footer-legal{display:flex;gap:6px;flex-wrap:wrap}
  .footer-compact .footer-legal>*,.footer-compact .footer-more{display:inline-flex;align-items:center;min-height:44px;padding:0 8px;font-size:13px;color:#5f6b57;cursor:pointer}
  .footer-compact .footer-legal>*:first-child{padding-left:0}
  .footer-compact .footer-more{font-weight:600;color:var(--ink);padding-right:0}
  footer.website-footer.footer-open .footer-compact .footer-legal{visibility:hidden}
  footer.website-footer.footer-open .footer-main{margin-top:6px}
  footer.website-footer.footer-open .footer-bottom{font-size:12px}
  footer.website-footer.footer-open .footer-bottom button,footer.website-footer.footer-open .footer-bottom a{font-size:12px;min-height:36px;display:inline-flex;align-items:center}
}

/* 0.1.153: logo with preview and removal; background image library */
.logo-upload { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; }
.logo-upload-fields { flex: 1 1 260px; min-width: 0; display: grid; gap: 8px; }
.logo-preview { flex: 0 0 auto; max-width: 160px; max-height: 64px; object-fit: contain; padding: 6px; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.settings-content input[readonly]:not([type=checkbox]):not([type=radio]):not([type=color]):not([type=range]) { color: var(--muted); background: #f1f3ee; }
.ap-library { border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; background: #fafbf8; }
.ap-library > summary { cursor: pointer; font-weight: 600; }
.ap-library[open] > summary { margin-bottom: 10px; }
.ap-library-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin-bottom: 8px; }
.ap-library-item { margin: 0; display: grid; gap: 6px; }
.ap-library-item img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); background: var(--paper); }
.ap-library-item figcaption { display: grid; gap: 4px; font-size: 13px; }
.ap-library-item figcaption small { color: var(--muted); overflow-wrap: anywhere; }
.ap-library-item button { justify-self: start; }

/* 0.1.155: e-mail delivery problems in Einstellungen › System */
.mail-problems { border: 1px solid #e8c9a8; background: #fdf6ee; border-radius: 10px; padding: 10px 14px; margin: 8px 0; }
.mail-problems ul { margin: 6px 0 10px; padding-left: 18px; display: grid; gap: 6px; }
.mail-problems small { overflow-wrap: anywhere; }

/* 0.1.156: logo and browser icon in separate cards */
.icon-upload .icon-actions { grid-column: 2; display: flex; flex-wrap: wrap; gap: 8px; }
@media screen and (max-width:760px) { .icon-upload .icon-actions { grid-column: 1 / -1; } }
