:root {
  --ink: #17212b;
  --brand-black: #080808;
  --brand-black-2: #17110e;
  --brand-black-3: #241811;
  --muted: #67727e;
  --line: #d8dee6;
  --panel: #ffffff;
  --soft: #f1f4f7;
  --orange: #ff6b1a;
  --orange-dark: #d9570d;
  --orange-soft: #ffb077;
  --green: #26864a;
  --red: #c84a3c;
  --blue: #2f67b1;
  --shadow: 0 14px 28px rgba(23, 33, 43, .11);
  --brand-shadow: 0 18px 32px rgba(8, 8, 8, .2);
  --brand-surface: linear-gradient(135deg, var(--brand-black) 0%, var(--brand-black-2) 62%, var(--brand-black-3) 100%);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  color: var(--ink);
  background: #e9edf2;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

button,
input,
select {
  font: inherit;
}

.mobile-shell {
  min-height: 100vh;
}

.login-view {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 22px;
  background:
    linear-gradient(145deg, rgba(8, 8, 8, .94), rgba(23, 17, 14, .78)),
    url("../Hageschade%20analyse/uploads/9ef9f39e5bab4358ac2f9cc8ef71b179.jpeg") center/cover;
}

.login-card {
  width: min(430px, 100%);
  padding: 24px;
  color: #fff;
  background: var(--brand-surface);
  border: 1px solid rgba(255, 107, 26, .3);
  border-bottom: 5px solid var(--orange);
  border-radius: 18px;
  box-shadow: var(--brand-shadow);
}

.brand-row {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 26px;
}

.brand-mark {
  flex: 0 0 54px;
  width: 54px;
  height: 54px;
  background: linear-gradient(135deg, var(--orange), var(--orange-dark));
  border-radius: 12px;
  box-shadow: inset 18px 0 0 rgba(8, 8, 8, .24), 0 10px 22px rgba(255, 107, 26, .28);
}

.brand-row p,
.section-heading p,
.card-title p {
  margin: 0;
  color: var(--orange);
  font-size: .74rem;
  font-weight: 850;
  letter-spacing: .05rem;
  text-transform: uppercase;
}

.brand-row h1,
.app-topbar h1,
.section-heading h2,
.card-title h3 {
  margin: 4px 0 0;
  font-weight: 850;
  letter-spacing: 0;
}

.brand-row h1 {
  font-size: 1.45rem;
}

.login-form {
  display: grid;
  gap: 14px;
}

.login-form label,
.work-card label {
  display: grid;
  gap: 7px;
}

.login-form span,
.field-label {
  color: rgba(255, 255, 255, .78);
  font-size: .82rem;
  font-weight: 800;
}

.field-label {
  margin-top: 14px;
  color: var(--muted);
}

.login-form input,
select {
  width: 100%;
  min-height: 46px;
  padding: 0 13px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.visually-hidden-select {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  border: 0;
  padding: 0;
}

.primary-action,
.secondary-action,
.icon-button {
  min-height: 46px;
  border: 0;
  border-radius: 10px;
  font-weight: 850;
}

.primary-action {
  color: #fff;
  background: var(--orange);
}

.primary-action:active {
  background: var(--orange-dark);
}

.secondary-action {
  color: var(--ink);
  background: #e7edf3;
  border: 1px solid #ccd6e0;
}

.primary-action:disabled,
.secondary-action:disabled {
  color: #8a96a3;
  background: #edf1f5;
  border-color: #d7dee7;
  cursor: not-allowed;
}

.wide {
  width: 100%;
}

.form-status {
  min-height: 20px;
  margin: 0;
  color: rgba(255, 255, 255, .76);
  font-size: .86rem;
}

.form-status.error {
  color: #ffb1a7;
}

.app-view {
  min-height: 100vh;
  padding: 16px 14px 88px;
}

.app-topbar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: -16px -14px 14px;
  padding: 16px 14px 13px;
  color: #fff;
  background: var(--brand-surface);
  border-bottom: 4px solid var(--orange);
  box-shadow: 0 10px 24px rgba(8, 8, 8, .18);
}

.app-loading-view {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: var(--brand-surface);
}

.loading-panel {
  width: min(420px, 100%);
  padding: 24px;
  color: #fff;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 107, 26, .28);
  border-bottom: 5px solid var(--orange);
  border-radius: 16px;
  text-align: center;
  box-shadow: var(--brand-shadow);
}

.loading-spinner {
  display: inline-block;
  width: 42px;
  height: 42px;
  margin-bottom: 14px;
  border: 4px solid rgba(255, 255, 255, .24);
  border-top-color: var(--orange);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}

.loading-panel p {
  margin: 0;
  color: var(--orange-soft);
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .05rem;
  text-transform: uppercase;
}

.loading-panel strong {
  display: block;
  margin-top: 8px;
  font-size: 1rem;
  line-height: 1.35;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.app-topbar p {
  margin: 0;
  color: var(--orange-soft);
  font-size: .78rem;
  font-weight: 850;
}

.app-topbar h1 {
  font-size: 1.26rem;
}

.icon-button {
  min-width: 48px;
  color: #fff;
  background: rgba(255, 255, 255, .14);
}

.icon-button.light {
  color: var(--ink);
  background: #e7edf3;
}

.status-strip,
.work-card,
.news-card,
.case-card,
.list-card,
.overview-grid article {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 10px 22px rgba(23, 33, 43, .07);
}

.status-strip {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  padding: 12px;
  font-size: .88rem;
}

.status-strip[hidden] {
  display: none;
}

.status-strip span {
  color: var(--muted);
  text-align: right;
}

.screen-panel {
  display: none;
}

.screen-panel.active {
  display: block;
}

.section-heading {
  margin: 18px 2px 12px;
}

.section-heading h2 {
  font-size: 1.3rem;
}

.news-list,
.case-list,
.planning-list {
  display: grid;
  gap: 11px;
}

.case-search-card {
  margin-bottom: 12px;
  padding: 12px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 10px 22px rgba(23, 33, 43, .07);
}

.case-search-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 9px;
  align-items: center;
}

.case-search-input {
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  color: var(--ink);
  background: #f8fafc;
  border: 1px solid #d8e1ea;
  border-radius: 10px;
  font: inherit;
  font-weight: 750;
  outline: none;
}

.case-search-input:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(255, 107, 26, .14);
}

.case-search-actions .compact-action {
  min-height: 44px;
}

.case-search-actions .is-loading {
  position: relative;
  padding-left: 34px;
}

.case-search-actions .is-loading::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 50%;
  width: 14px;
  height: 14px;
  margin-top: -7px;
  border: 2px solid rgba(23, 33, 43, .24);
  border-top-color: var(--orange);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}

.case-search-card p.refresh-state {
  color: var(--orange-dark);
}

.case-search-card p,
.empty-state {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: .82rem;
  font-weight: 800;
}

.empty-state {
  padding: 16px;
  background: #fff;
  border: 1px dashed #cbd6e2;
  border-radius: 14px;
  text-align: center;
}

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

.case-pagination span {
  color: var(--muted);
  font-size: .82rem;
  font-weight: 850;
  white-space: nowrap;
}

.case-pagination .secondary-action {
  min-height: 42px;
  padding: 0 12px;
}

.status-filter-list {
  display: grid;
  gap: 10px;
}

.status-filter-option {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 54px;
  padding: 10px 12px;
  background: #f8fafc;
  border: 1px solid #d8e1ea;
  border-radius: 12px;
}

.status-filter-option input {
  width: 20px;
  height: 20px;
  accent-color: var(--orange);
}

.status-filter-option span {
  display: grid;
  gap: 2px;
}

.status-filter-option strong {
  color: var(--ink);
  font-size: .94rem;
  font-weight: 900;
}

.status-filter-option small,
.settings-hint {
  color: var(--muted);
  font-size: .8rem;
  font-weight: 800;
}

.settings-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.create-progress {
  position: relative;
  width: 100%;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(96px, 1fr);
  gap: 10px;
  margin: 0 -4px 12px;
  padding: 4px 4px 10px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
}

.create-progress::before {
  content: "";
  position: absolute;
  top: 25px;
  right: 16px;
  left: 16px;
  height: 2px;
  background: #dde6ee;
}

.create-progress span {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  align-items: center;
  gap: 7px;
  min-width: 0;
  min-height: 44px;
  padding: 6px 8px;
  color: var(--muted);
  background: #fff;
  border: 1px solid #dde6ee;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 900;
  text-align: left;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  scroll-snap-align: start;
  box-shadow: 0 8px 20px rgba(24, 39, 54, .06);
}

.create-progress b {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  color: #647384;
  background: #edf2f6;
  border-radius: 50%;
  font-size: .78rem;
}

.create-progress span.done {
  color: #23643a;
  background: #e8f5ec;
  border-color: #c6e7d0;
}

.create-progress span.done b {
  color: #fff;
  background: #2f9a5b;
}

.create-progress span.active {
  color: var(--ink);
  background: #fff4ec;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(255, 107, 26, .16);
}

.create-progress span.active b {
  color: #fff;
  background: var(--orange);
}

.create-step-card[hidden] {
  display: none;
}

.create-step-card {
  width: 100%;
  min-height: 390px;
  margin: 0;
  border-radius: 12px;
}

.create-grid {
  display: grid;
  gap: 8px;
}

.create-inline-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(118px, auto);
  gap: 8px;
  align-items: center;
}

.create-inline-field .secondary-action {
  min-height: 46px;
  padding: 0 10px;
  font-size: .78rem;
}

.create-result-action-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(190px, auto);
  gap: 8px;
  align-items: center;
  padding: 9px 10px;
  background: #fff7ed;
  border: 1px solid #ffd2b8;
  border-radius: 10px;
}

.create-result-action-row[hidden] {
  display: none;
}

.create-result-action-row span {
  color: var(--ink);
  font-size: .82rem;
  font-weight: 850;
}

.create-result-action-row .secondary-action {
  min-height: 40px;
  padding: 0 12px;
  font-size: .78rem;
}

.create-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.create-next-button {
  margin-top: 12px;
}

.create-results,
.create-summary {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.create-result,
.create-summary div {
  padding: 10px 11px;
  background: #f8fafc;
  border: 1px solid #d8e1ea;
  border-radius: 10px;
}

.create-result {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  cursor: pointer;
  width: 100%;
  text-align: left;
  font: inherit;
  appearance: none;
}

.create-result.selected {
  background: #fff7ed;
  border-color: var(--orange);
  box-shadow: inset 4px 0 0 var(--orange);
}

.create-result strong,
.create-summary strong {
  display: block;
  color: var(--ink);
  font-size: .9rem;
}

.create-result small,
.create-summary span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: .78rem;
  font-weight: 800;
}

.settings-hint {
  margin: 12px 0 0;
}

.customer-detail-card {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  padding: 12px;
  background: #fff7ed;
  border: 1px solid rgba(255, 107, 26, .35);
  border-radius: 10px;
  box-shadow: inset 4px 0 0 var(--orange);
}

.customer-detail-card strong {
  color: var(--ink);
  font-size: .95rem;
}

.customer-detail-card div {
  display: grid;
  gap: 2px;
}

.customer-detail-card span {
  color: var(--muted);
  font-size: .74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.customer-detail-card p {
  margin: 0;
  color: var(--ink);
  font-weight: 800;
}

.news-card,
.case-card,
.list-card,
.work-card {
  padding: 14px;
}

.news-card.warning {
  border-left: 5px solid var(--orange);
}

.news-card.info {
  border-left: 5px solid var(--blue);
}

.news-card strong,
.case-card strong,
.list-card strong {
  display: block;
  margin-bottom: 5px;
}

.news-card p,
.case-card p,
.list-card p {
  margin: 0;
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.4;
}

.planning-dossier-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
}

.planning-card-main {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.planning-card-main strong {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
  margin: 0;
  color: var(--ink);
  font-size: 1rem;
}

.planning-dossier-number {
  color: var(--orange-dark);
  font-weight: 950;
}

.planning-card-main p {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.planning-card-main .license-plate {
  margin: 0;
}

.planning-card-main small {
  color: var(--muted);
  font-size: .82rem;
  font-weight: 800;
  line-height: 1.35;
}

.planning-day-header {
  margin: 4px 2px -2px;
}

.planning-day-header span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 11px;
  color: #fff;
  background: var(--brand-surface);
  border-left: 4px solid var(--orange);
  border-radius: 8px;
  box-shadow: 0 8px 16px rgba(8, 8, 8, .12);
  font-size: .82rem;
  font-weight: 900;
  text-transform: capitalize;
}

.license-plate {
  position: relative;
  display: inline-grid;
  grid-template-columns: 24px minmax(92px, auto);
  align-items: center;
  min-height: 30px;
  margin: 3px 0 6px;
  overflow: hidden;
  color: #121820;
  background: #f6c800;
  border: 2px solid #111827;
  border-radius: 5px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.45), 0 2px 6px rgba(23,33,43,.12);
  font-family: "Arial Narrow", "DIN Condensed", Arial, sans-serif;
  font-weight: 950;
  letter-spacing: 0;
  line-height: 1;
}

.plate-country {
  display: grid;
  align-self: stretch;
  place-items: center;
  min-width: 24px;
  color: #fff;
  background: #1546a0;
  font-size: .54rem;
  letter-spacing: 0;
}

.plate-country::before {
  content: "";
  display: block;
  width: 9px;
  height: 9px;
  margin-bottom: -2px;
  border: 1px solid rgba(255, 216, 0, .9);
  border-radius: 50%;
}

.plate-number {
  padding: 0 9px;
  font-size: 1rem;
  white-space: nowrap;
}

.plate-be,
.plate-de,
.plate-fr,
.plate-generic {
  background: #f8fafc;
}

.plate-be {
  color: #9b111e;
  background: #fff;
  border-color: #9b111e;
}

.plate-be .plate-number {
  color: #9b111e;
}

.plate-de {
  color: #111827;
  background: #fff;
  border-color: #111827;
}

.plate-de .plate-number {
  color: #111827;
}

.plate-be .plate-country,
.plate-de .plate-country,
.plate-fr .plate-country,
.plate-generic .plate-country {
  background: #1546a0;
}

.meta-line {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
  color: var(--muted);
  font-size: .78rem;
  font-weight: 800;
}

.overview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 11px;
  margin-top: 14px;
}

.overview-grid article {
  padding: 14px;
}

.overview-grid span,
.overview-grid small {
  display: block;
  color: var(--muted);
  font-size: .78rem;
  font-weight: 800;
}

.overview-grid strong {
  display: block;
  margin: 7px 0;
  font-size: 1.8rem;
}

.case-card {
  border-left: 5px solid #c8d2dd;
  cursor: pointer;
  padding-top: 10px;
}

.case-card.active {
  border-left-color: var(--orange);
}

.case-topline {
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content;
  align-items: start;
  column-gap: 12px;
  margin-top: -3px;
}

.case-identity {
  min-width: 0;
}

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

.case-title-row {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  align-items: start;
  column-gap: 9px;
  min-width: 0;
  line-height: 1;
}

.case-title-row strong,
.case-title-row span {
  display: block;
  margin: 0;
  padding: 0;
  color: #17212b;
  font-size: 1rem;
  font-weight: 900;
  line-height: 1;
}

.case-title-row span {
  overflow-wrap: anywhere;
}

.plate-row {
  flex-wrap: wrap;
  margin-top: 6px;
}

.vehicle-next-to-plate {
  color: #293746;
  font-size: .9rem;
  font-weight: 850;
  line-height: 1.25;
}

.replacement-car-badge {
  display: inline-grid;
  grid-template-columns: max-content minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  width: fit-content;
  max-width: 100%;
  margin-top: 8px;
  padding: 7px 9px;
  color: #0f3b2f;
  background: #e4f7ec;
  border: 1px solid #a9dfbd;
  border-radius: 10px;
  font-size: .8rem;
  line-height: 1.2;
}

.replacement-car-badge span {
  color: #21664f;
  font-weight: 850;
}

.replacement-car-badge strong {
  min-width: 0;
  margin: 0;
  color: #0f3b2f;
  font-size: .85rem;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.replacement-car-info {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.replacement-car-info .license-plate {
  transform: scale(.86);
  transform-origin: left center;
}

.status-pill {
  align-self: start;
  justify-self: end;
  margin-top: -1px;
  margin-right: -3px;
  padding: 5px 8px;
  color: #fff;
  background: var(--green);
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 850;
  white-space: nowrap;
}

.case-pill-stack {
  display: grid;
  justify-items: end;
  gap: 6px;
}

.case-pill-stack .status-pill {
  margin: 0 -3px 0 0;
}

.handling-pill {
  background: #293746;
}

.gtm-pill {
  background: #1f466f;
}

.gtm-mini-result {
  display: inline-flex;
  width: fit-content;
  margin-top: 9px;
  padding: 6px 8px;
  color: #1f466f;
  background: #e8f1fb;
  border: 1px solid #c6daef;
  border-radius: 8px;
  font-size: .78rem;
  font-weight: 850;
}

.gtm-vin-line {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: baseline;
  width: fit-content;
  max-width: 100%;
  margin-top: 9px;
  padding: 7px 10px;
  color: #243444;
  background: #f4f7fa;
  border: 1px solid #d6dee8;
  border-radius: 8px;
  font-size: .8rem;
  line-height: 1.15;
}

.gtm-vin-line span {
  color: var(--muted);
  font-weight: 850;
  line-height: 1;
}

.gtm-vin-line strong {
  overflow-wrap: anywhere;
  font-weight: 900;
  line-height: 1;
}

.gtm-local-line {
  width: fit-content;
  max-width: 100%;
  margin-top: 7px;
  padding: 6px 8px;
  color: #23643a;
  background: #e8f5ec;
  border: 1px solid #c6e7d0;
  border-radius: 8px;
  font-size: .76rem;
  font-weight: 850;
  line-height: 1.2;
}

.gtm-print-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 42px;
  margin-top: 10px;
  color: #1f466f;
  background: #e8f1fb;
  border: 1px solid #bcd3ea;
  border-radius: 10px;
  font-weight: 900;
}

.gtm-print-action span {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 26px;
  color: #fff;
  background: #d64032;
  border-radius: 5px;
  font-size: .72rem;
  letter-spacing: .02rem;
}

.progress-bar {
  height: 7px;
  margin-top: 12px;
  overflow: hidden;
  background: #dfe6ee;
  border-radius: 99px;
}

.progress-bar i {
  display: block;
  height: 100%;
  background: var(--orange);
}

.open-case-action {
  width: 100%;
  min-height: 42px;
  margin-top: 12px;
  color: #fff;
  background: var(--brand-surface);
  border: 1px solid rgba(255, 107, 26, .32);
  border-bottom: 3px solid var(--orange);
  border-radius: 10px;
  font-weight: 850;
}

.time-dossier-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.time-dossier-card {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 12px;
  align-items: stretch;
  padding: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-left: 5px solid var(--orange);
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(23, 33, 43, .08);
  cursor: pointer;
}

.time-dossier-photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #eef2f6;
  border: 1px solid #d6dee8;
  border-radius: 10px;
}

.time-dossier-photo img,
.time-photo-placeholder {
  width: 100%;
  height: 100%;
}

.time-dossier-photo img {
  display: block;
  object-fit: cover;
}

.time-photo-placeholder {
  display: grid;
  place-items: center;
  padding: 8px;
  color: var(--muted);
  font-size: .74rem;
  font-weight: 850;
  text-align: center;
}

.time-dossier-content {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 100%;
}

.time-damage-line {
  display: grid;
  gap: 3px;
  margin-top: 9px;
  padding: 8px 9px;
  color: #243444;
  background: #f4f7fa;
  border: 1px solid #d6dee8;
  border-radius: 9px;
}

.time-damage-line span {
  color: var(--muted);
  font-size: .74rem;
  font-weight: 850;
}

.time-damage-line strong {
  color: var(--ink);
  font-size: .86rem;
  font-weight: 900;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.time-register-action {
  margin-top: auto;
}

.time-activity-panel {
  grid-column: 1 / -1;
  margin-bottom: 12px;
}

.time-activity-case-summary {
  margin-bottom: 12px;
}

.time-activity-selected-case {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
  padding: 9px;
  background: #f4f7fa;
  border: 1px solid #d6dee8;
  border-radius: 10px;
}

.time-activity-selected-case strong {
  font-size: .95rem;
  font-weight: 900;
}

.time-activity-selected-case em {
  color: #293746;
  font-size: .84rem;
  font-style: normal;
  font-weight: 850;
}

.time-activity-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
}

.time-activity-tile {
  display: grid;
  grid-template-rows: 54px 2.4em;
  gap: 8px;
  justify-items: center;
  min-height: 118px;
  min-width: 0;
  padding: 12px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 8px 18px rgba(23, 33, 43, .07);
  text-align: center;
}

.time-activity-tile:active {
  transform: translateY(1px);
}

.time-activity-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
}

.time-activity-icon img {
  max-width: 54px;
  max-height: 54px;
  object-fit: contain;
}

.time-activity-fallback-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  color: #fff;
  background: var(--activity-color, var(--orange));
  border-radius: 12px;
  box-shadow: inset 0 -10px 0 rgba(8, 8, 8, .14);
}

.time-activity-fallback-icon span {
  font-size: 1.4rem;
  font-weight: 950;
}

.time-activity-tile strong {
  display: -webkit-box;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  font-size: .9rem;
  font-weight: 900;
  line-height: 1.2;
  overflow-wrap: anywhere;
  text-overflow: ellipsis;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

@media (max-width: 620px) {
  .time-dossier-list {
    grid-template-columns: 1fr;
  }
}

.media-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}

.compact-action {
  min-width: 86px;
  min-height: 40px;
  padding: 0 12px;
}

.selected-case-summary {
  grid-column: 1 / -1;
}

.dossier-action-summary {
  display: grid;
  gap: 7px;
  align-items: start;
}

.dossier-action-label {
  color: inherit;
  font-size: .78rem;
  font-weight: 900;
}

.dossier-action-main {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: baseline;
  color: #17212b;
}

.dossier-action-main strong,
.dossier-action-main span {
  font-size: .98rem;
  font-weight: 900;
  line-height: 1.05;
}

.dossier-action-plate {
  margin-top: 0;
}

.selected-case-card {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  padding: 14px;
  background: var(--brand-surface);
  border: 1px solid rgba(255, 107, 26, .24);
  border-bottom: 5px solid var(--orange);
  border-radius: 14px;
  box-shadow: var(--brand-shadow);
}

.selected-case-card div {
  min-height: 58px;
  padding: 10px;
  color: #fff;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 10px;
}

.selected-case-card span,
.selected-case-card strong {
  display: block;
}

.selected-case-card span {
  margin-bottom: 5px;
  color: var(--orange-soft);
  font-size: .7rem;
  font-weight: 850;
  text-transform: uppercase;
}

.selected-case-card strong {
  font-size: .88rem;
  line-height: 1.25;
}

.work-card {
  margin-top: 14px;
}

.media-mode-card {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  grid-column: 1 / -1;
  margin-top: 10px;
}

.media-mode-button {
  display: grid;
  gap: 3px;
  min-height: 64px;
  padding: 12px;
  color: var(--muted);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  text-align: left;
}

.media-mode-button span {
  font-size: .75rem;
  font-weight: 850;
  text-transform: uppercase;
}

.media-mode-button strong {
  color: var(--ink);
  font-size: 1rem;
}

.media-mode-button.active {
  color: #fff;
  background: var(--brand-surface);
  border-color: rgba(255, 107, 26, .45);
  box-shadow: var(--brand-shadow);
}

.media-mode-button.active strong {
  color: #fff;
}

.media-work-card[hidden] {
  display: none;
}

.media-work-card {
  grid-column: 1 / -1;
}

.photo-choice-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 10px;
}

.choice-column {
  position: relative;
  min-width: 0;
  padding: 0 0 2px;
}

.choice-column-dependent {
  padding-left: 14px;
  border-left: 2px solid #f3c6a0;
}

.choice-column-dependent::before {
  content: "";
  position: absolute;
  top: 57px;
  left: -9px;
  width: 16px;
  height: 16px;
  background: var(--paper);
  border-top: 2px solid #f3c6a0;
  border-right: 2px solid #f3c6a0;
  transform: rotate(45deg);
}

.choice-helper {
  min-height: 34px;
  margin: 5px 0 0;
  color: var(--muted);
  font-size: .78rem;
  font-weight: 700;
  line-height: 1.25;
}

.choice-helper-dependent {
  color: #8d3f00;
  font-weight: 850;
}

.photo-choice-row .visual-choice-grid {
  grid-auto-columns: minmax(104px, 88%);
  margin-right: 0;
  margin-left: 0;
}

.dossier-required {
  margin: 8px 0 0;
  padding: 10px 11px;
  color: #815017;
  background: #fff3df;
  border: 1px solid #ffd9a6;
  border-radius: 10px;
  font-size: .84rem;
  font-weight: 750;
}

.dossier-required.ready {
  color: #23643a;
  background: #e8f5ec;
  border-color: #c6e7d0;
}

.visual-choice-grid {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(112px, 38%);
  gap: 10px;
  margin: 9px -4px 2px;
  padding: 4px 4px 8px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
}

.document-grid {
  grid-auto-columns: minmax(124px, 42%);
}

.visual-choice {
  display: grid;
  gap: 7px;
  min-height: 132px;
  padding: 10px;
  color: var(--ink);
  background: #fff;
  border: 2px solid var(--line);
  border-radius: 12px;
  text-align: left;
  scroll-snap-align: start;
}

.visual-choice.active {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(255, 107, 26, .16);
}

.visual-choice.has-documents {
  background: #e8f5ec;
  border-color: #35a05f;
  box-shadow: 0 0 0 3px rgba(53, 160, 95, .15);
}

.visual-choice.has-documents.active {
  border-color: #1f7a43;
  box-shadow: 0 0 0 3px rgba(31, 122, 67, .24);
}

.visual-choice span {
  display: block;
  min-height: 34px;
  min-width: 0;
  color: var(--ink);
  font-size: .78rem;
  font-weight: 850;
  line-height: 1.18;
  overflow-wrap: anywhere;
}

.choice-drawing {
  width: 100%;
  height: 74px;
  display: block;
  background: #f5f7fa;
  border: 1px solid #e1e7ee;
  border-radius: 9px;
}

.source-modal {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 16px;
  background: rgba(23, 33, 43, .48);
}

.source-sheet {
  width: min(480px, 100%);
  padding: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 18px 44px rgba(23, 33, 43, .28);
}

.success-modal {
  align-items: center;
}

.camera-continue-modal {
  align-items: center;
}

.success-sheet {
  display: grid;
  gap: 18px;
  text-align: center;
}

.camera-continue-sheet {
  display: grid;
  gap: 14px;
}

.success-sheet .source-header {
  justify-content: center;
}

.vehicle-confirm-modal {
  align-items: center;
}

.vehicle-confirm-sheet {
  display: grid;
  gap: 14px;
}

.vehicle-confirm-details {
  display: grid;
  gap: 8px;
}

.vehicle-confirm-details div {
  display: grid;
  grid-template-columns: minmax(92px, auto) minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 10px;
  background: #f8fafc;
  border: 1px solid #dce5ee;
  border-radius: 10px;
}

.vehicle-confirm-details span {
  color: var(--muted);
  font-size: .76rem;
  font-weight: 850;
}

.vehicle-confirm-details strong {
  min-width: 0;
  color: var(--ink);
  font-size: .9rem;
  font-weight: 900;
}

.vehicle-confirm-details .license-plate {
  display: inline-flex;
}

.gtm-sheet {
  max-height: calc(100vh - 34px);
  overflow: auto;
}

.gtm-result-area {
  display: grid;
  gap: 8px;
}

.gtm-result-card {
  display: grid;
  gap: 5px;
  padding: 10px;
  color: #17212b;
  background: #f8fafc;
  border: 1px solid #dce5ee;
  border-radius: 10px;
}

.gtm-result-card span {
  color: var(--muted);
  font-size: .76rem;
  font-weight: 850;
}

.gtm-result-card strong {
  font-size: .95rem;
  font-weight: 900;
}

.gtm-result-card small {
  color: #23643a;
  font-size: .78rem;
  font-weight: 850;
}

.gtm-result-card a,
.gtm-pdf-chip {
  width: fit-content;
  padding: 7px 9px;
  color: #fff;
  background: #1f466f;
  border: 0;
  border-radius: 8px;
  font-size: .82rem;
  font-weight: 850;
  text-decoration: none;
}

.source-header {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
}

.source-header p {
  margin: 0;
  color: var(--orange);
  font-size: .74rem;
  font-weight: 850;
  letter-spacing: .05rem;
  text-transform: uppercase;
}

.source-header h2 {
  margin: 4px 0 0;
  font-size: 1.28rem;
  font-weight: 850;
}

.source-summary {
  margin: 12px 0 14px;
  padding: 10px;
  color: #23643a;
  background: #e8f5ec;
  border: 1px solid #c6e7d0;
  border-radius: 10px;
  font-size: .88rem;
  font-weight: 750;
}

.source-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.source-actions.three-actions {
  grid-template-columns: 1fr;
}

.source-action {
  min-height: 82px;
  padding: 13px;
  color: var(--ink);
  background: #f4f7fa;
  border: 1px solid #d6dee8;
  border-radius: 13px;
  text-align: left;
}

.source-action.primary {
  color: #fff;
  background: var(--orange);
  border-color: var(--orange);
}

.source-action span,
.source-action small {
  display: block;
}

.source-action span {
  font-weight: 900;
}

.source-action small {
  margin-top: 5px;
  opacity: .78;
  font-size: .78rem;
  line-height: 1.2;
}

.photo-set-hint {
  margin: 10px 0 0;
  padding: 10px 11px;
  color: #1f466f;
  background: #e8f1fb;
  border: 1px solid #c6daef;
  border-radius: 10px;
  font-size: .84rem;
  font-weight: 850;
}

.card-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.card-title h3 {
  font-size: 1.05rem;
}

.card-title > span {
  min-width: 34px;
  height: 30px;
  color: #fff;
  background: var(--brand-surface);
  border: 1px solid rgba(255, 107, 26, .34);
  border-radius: 99px;
  text-align: center;
  line-height: 30px;
  font-weight: 850;
}

.action-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin-top: 12px;
}

.action-grid .secondary-action:first-child:nth-last-child(3),
.action-grid .secondary-action:first-child:nth-last-child(3) ~ .secondary-action {
  min-height: 48px;
}

.media-preview {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
  gap: 9px;
  margin-top: 12px;
}

.media-tile {
  position: relative;
  min-height: 92px;
  overflow: hidden;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 10px;
}

.file-placeholder,
.media-tile img {
  width: 100%;
  height: 72px;
}

.file-placeholder {
  display: grid;
  place-items: center;
  padding: 8px;
  color: #293746;
  background: #e8edf3;
  font-size: .72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.file-extension-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 56px;
  color: #fff;
  background: #293746;
  border-radius: 7px;
  box-shadow: inset 0 -10px 0 rgba(255, 107, 26, .9);
}

.file-extension-icon span {
  max-width: 40px;
  overflow: hidden;
  font-size: .68rem;
  font-weight: 950;
  text-align: center;
  text-overflow: ellipsis;
}

.media-tile img {
  object-fit: cover;
}

.media-tile .media-category {
  display: block;
  padding: 6px 6px 2px;
  color: var(--muted);
  font-size: .7rem;
  font-weight: 800;
}

.media-tile strong {
  display: block;
  padding: 0 6px 4px;
  color: var(--ink);
  font-size: .72rem;
  font-weight: 850;
  line-height: 1.18;
  overflow-wrap: anywhere;
}

.media-download {
  display: inline-block;
  margin: 0 6px 7px;
  color: var(--orange);
  font-size: .72rem;
  font-weight: 900;
  text-decoration: none;
}

.remove-media {
  position: absolute;
  top: 6px;
  right: 6px;
  min-height: 28px;
  padding: 0 8px;
  color: #fff;
  background: rgba(200, 74, 60, .94);
  border: 0;
  border-radius: 999px;
  font-size: .68rem;
  font-weight: 900;
}

.checklist {
  display: grid;
  gap: 8px;
  margin: 12px 0;
}

.checklist label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 10px;
  font-weight: 750;
}

.checklist .checklist-text-answer {
  display: grid;
  align-items: stretch;
}

.checklist .checklist-text-answer span {
  color: var(--ink);
}

.checklist .checklist-text-answer input {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
}

.time-completion-sheet {
  max-width: 520px;
}

.time-completion-section {
  display: grid;
  gap: 4px;
  padding: 10px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 10px;
}

.time-completion-section span,
.completion-choice span {
  color: var(--muted);
  font-size: .78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.time-completion-section strong {
  color: var(--ink);
  font-size: 1rem;
}

.time-completion-section p {
  margin: 0;
  color: var(--muted);
  font-size: .9rem;
}

.completion-choice {
  display: grid;
  gap: 10px;
  margin: 12px 0;
}

.completion-choice-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.completion-choice-buttons .active {
  color: #fff;
  background: var(--orange);
  border-color: var(--orange);
}

.completion-checklist {
  margin-top: 10px;
}

.timer-row {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 10px;
  align-items: center;
  margin: 14px 0 10px;
}

.timer-row strong {
  padding: 12px 10px;
  background: var(--brand-surface);
  color: #fff;
  border: 1px solid rgba(255, 107, 26, .32);
  border-bottom: 4px solid var(--orange);
  border-radius: 10px;
  text-align: center;
  font-size: 1.08rem;
}

.angle-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.angle-card {
  overflow: hidden;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.angle-card img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.angle-card button {
  width: 100%;
  min-height: 42px;
  color: var(--ink);
  background: #fff;
  border: 0;
  border-top: 1px solid var(--line);
  font-weight: 850;
}

.bottom-nav {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 4px;
  padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, .96);
  border-top: 1px solid var(--line);
  box-shadow: 0 -10px 24px rgba(23, 33, 43, .12);
}

.bottom-nav button {
  min-height: 46px;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 10px;
  font-size: .58rem;
  font-weight: 850;
}

.bottom-nav button.active {
  color: #fff;
  background: var(--brand-surface);
  box-shadow: 0 8px 16px rgba(8, 8, 8, .18);
}

@media (min-width: 760px) {
  .app-view {
    max-width: 980px;
    margin: 0 auto;
    padding-bottom: 104px;
  }

  .screen-panel.active {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .section-heading,
  .case-list,
  .planning-list,
  .news-list,
  .time-dossier-list {
    grid-column: 1 / -1;
  }

  .create-progress,
  .create-step-card {
    grid-column: 1 / -1;
  }

  .media-heading {
    grid-column: 1 / -1;
  }

  .planning-dossier-card {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .planning-dossier-card .compact-action {
    flex: 0 0 auto;
  }

  .visual-choice-grid {
    grid-auto-flow: initial;
    grid-auto-columns: initial;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    overflow: visible;
  }

  .part-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .photo-choice-row .part-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .source-actions.three-actions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .bottom-nav {
    right: 50%;
    left: 50%;
    width: min(980px, 100%);
    transform: translateX(-50%);
    border-radius: 18px 18px 0 0;
  }
}
