:root {
  --blue: #2563eb;
  --blue-dark: #1d4ed8;
  --ink-950: #0f172a;
  --ink-800: #1f2937;
  --ink-700: #344054;
  --ink-500: #667085;
  --line: #d9e0ea;
  --soft: #f6f8fb;
  --white: #ffffff;
  --green: #22c55e;
  --danger: #ef4444;
  --camera: #101114;
  font-family: Inter, Roboto, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

img,
svg,
video,
canvas {
  max-width: 100%;
}

html,
body {
  min-height: 100%;
}

#cityCount {
    width: 200px;
}

.actions button {
            flex: none !important;
}

html {
  overflow-x: hidden;
}

body {
  margin: 0;
  color: var(--ink-950);
  background: #f3f6fb;
  overflow-x: hidden;
}

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

button {
  border: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.app-shell {
  min-height: 100dvh;
  position: relative;
}

.screen {
  min-height: 100dvh;
  background: #f3f6fb;
}

.screen.camera {
  background: var(--camera);
  color: var(--white);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  min-height: 68px;
  display: grid;
  grid-template-columns: 48px 1fr 48px;
  align-items: center;
  gap: 12px;
  padding: 10px max(20px, calc((100vw - 1180px) / 2));
  border-bottom: 1px solid rgba(217, 224, 234, 0.8);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
}

.camera .topbar {
  border-bottom-color: rgba(255, 255, 255, 0.08);
  background: rgba(16, 17, 20, 0.9);
}

.title {
  margin: 0;
  font-size: clamp(20px, 2vw, 28px);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: 0;
}

.icon-button {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: var(--ink-700);
  background: transparent;
}

.camera .icon-button {
  color: var(--white);
}

.icon-button:hover,
.clear-button:hover {
  background: rgba(15, 23, 42, 0.06);
}

.camera .icon-button:hover {
  background: rgba(255, 255, 255, 0.1);
}

.page {
  width: min(calc(100% - 40px), 1180px);
  margin: 0 auto;
  padding: 28px 0 42px;
}

.form-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 24px;
  align-items: start;
  min-width: 0;
}

.panel {
  min-width: 0;
  border: 1px solid rgba(217, 224, 234, 0.9);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.05);
}

.panel-main,
.panel-side {
  padding: 24px;
}

.panel-side {
  position: sticky;
  top: 88px;
}

.section-head {
  margin-bottom: 22px;
}

.section-head h2 {
  margin: 0 0 6px;
  font-size: 20px;
  line-height: 1.2;
}

.section-head p {
  margin: 0;
  color: var(--ink-500);
  font-size: 14px;
  line-height: 1.45;
}

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

.form-span {
  grid-column: 1 / -1;
}

.field-label {
  display: block;
  margin: 0 0 8px;
  font-size: 14px;
  line-height: 1.2;
  font-weight: 800;
  color: var(--ink-700);
}

.helper {
  margin: 0;
  color: var(--ink-500);
  font-size: 13px;
  line-height: 1.45;
}

.field {
  min-width: 0;
  min-height: 50px;
  display: grid;
  grid-template-columns: 26px 1fr;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.field.with-action {
  grid-template-columns: 26px 1fr 28px;
}

.field:focus-within {
  border-color: rgba(37, 99, 235, 0.66);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.field svg,
.sheet-icon svg,
.status-icon svg,
.add-photo svg {
  width: 20px;
  height: 20px;
  stroke-width: 2;
}

.field input,
.field select,
.field textarea {
  min-width: 0;
  width: 100%;
  border: 0;
  outline: 0;
  color: var(--ink-800);
  background: transparent;
}

.field input,
.field select {
  height: 48px;
}

.field select {
  appearance: none;
}

.textarea-field {
  min-height: 126px;
  align-items: start;
  padding-top: 12px;
  padding-bottom: 10px;
}

.textarea-field textarea {
  height: 92px;
  resize: vertical;
}

.address-widget {
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.map-preview {
  position: relative;
  width: 100%;
  height: 170px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 8px;
  color: var(--blue);
  background:
    linear-gradient(90deg, rgba(37, 99, 235, 0.08) 1px, transparent 1px),
    linear-gradient(rgba(37, 99, 235, 0.08) 1px, transparent 1px),
    linear-gradient(135deg, #edf4ff, #f7fafc);
  background-size: 34px 34px, 34px 34px, auto;
}

.map-preview::before,
.map-preview::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.14);
}

.map-preview::before {
  width: 280px;
  height: 24px;
  left: -24px;
  top: 58px;
  transform: rotate(-14deg);
}

.map-preview::after {
  width: 240px;
  height: 20px;
  right: -30px;
  bottom: 44px;
  transform: rotate(18deg);
}

.map-pin {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  color: var(--blue);
  background: var(--white);
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.18);
}

.map-button {
  position: absolute;
  z-index: 1;
  bottom: 14px;
  left: 50%;
  min-width: 150px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transform: translateX(-50%);
  border: 1px solid var(--blue);
  border-radius: 8px;
  color: var(--blue);
  background: var(--white);
  font-size: 14px;
  font-weight: 800;
}

.location-button {
  width: 100%;
  margin-top: 10px;
}

.address-row {
  min-height: 44px;
  display: grid;
  grid-template-columns: 22px 1fr 28px;
  gap: 8px;
  align-items: center;
  margin-top: 10px;
  color: var(--ink-700);
  font-size: 13px;
}

.address-row svg {
  width: 20px;
  height: 20px;
}

.request-id {
  margin-top: 10px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.report-loading {
  padding: 16px;
  color: var(--ink-500);
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: #fbfdff;
}

.report-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 0 8px;
  scrollbar-width: thin;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}

.report-tab {
  min-width: 132px;
  height: 42px;
  flex: 0 0 auto;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink-700);
  background: var(--white);
  font-size: 13px;
  font-weight: 800;
  scroll-snap-align: start;
}

.report-tab.active {
  color: var(--blue);
  border-color: var(--blue);
  background: #eef6ff;
}

.report-editor {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.report-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.report-title-row h3 {
  margin: 0;
  font-size: 16px;
  line-height: 1.25;
}

.report-city-field {
  max-width: 260px;
}

.report-city-field input {
  height: 48px;
}

.report-block {
  display: grid;
  gap: 10px;
}

.report-card {
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.report-row-title {
  margin-bottom: 8px;
  color: var(--ink-950);
  font-size: 13px;
  font-weight: 800;
}

.report-input-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}

.report-value {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.report-value span,
.report-total-grid small {
  color: var(--ink-700);
  font-size: 10px;
  font-weight: 800;
  line-height: 1.1;
}

.report-value small {
  min-height: 24px;
  color: var(--ink-500);
  font-size: 9px;
  line-height: 1.2;
}

.report-value input {
  width: 100%;
  min-width: 0;
  height: 34px;
  padding: 0 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink-950);
  background: var(--white);
  text-align: center;
  font-size: 12px;
  font-weight: 800;
  outline: 0;
}

.report-value input:focus {
  border-color: rgba(37, 99, 235, 0.66);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.report-section-summary {
  width: 100%;
  min-height: 34px;
  display: grid;
  grid-template-columns: 1fr 24px;
  gap: 8px;
  align-items: center;
  padding: 0;
  color: var(--ink-950);
  background: transparent;
  text-align: left;
  font-size: 13px;
  font-weight: 800;
}

.section-arrow {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  color: var(--ink-500);
  font-size: 26px;
  line-height: 1;
}

.report-total-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px;
  margin-top: 8px;
}

.report-total-grid span {
  min-width: 0;
  padding: 6px 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff7d6;
  text-align: center;
}

.report-total-grid span:nth-child(3),
.report-total-grid span:nth-child(4) {
  background: #e9f0ff;
}

.report-total-grid strong {
  display: block;
  margin-top: 4px;
  color: var(--ink-950);
  font-size: 12px;
}

.report-table {
  margin-top: 10px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.report-table-head,
.report-data-row {
  display: grid;
  grid-template-columns: minmax(126px, 1.18fr) repeat(4, minmax(92px, 1fr));
  gap: 3px;
  min-width: 560px;
  align-items: stretch;
}

.report-table-head span {
  display: grid;
  place-items: center;
  min-height: 44px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink-950);
  background: #fff7d6;
  text-align: center;
  font-size: 9px;
  font-weight: 800;
  line-height: 1.1;
}

.report-table-head span:first-child {
  background: var(--white);
}

.report-table-head span:nth-child(4),
.report-table-head span:nth-child(5) {
  background: #e9f0ff;
}

.report-data-row {
  margin-top: 3px;
}

.report-brand {
  display: flex;
  align-items: center;
  min-height: 34px;
  color: var(--ink-950);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
}

.report-data-row .report-value span,
.report-data-row .report-value small {
  display: none;
}

.counter {
  grid-column: 2;
  justify-self: end;
  color: var(--ink-500);
  font-size: 12px;
}

.clear-button {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: var(--ink-500);
  background: transparent;
}

.side-block + .side-block {
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.side-title {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 800;
}

.photo-preview-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 12px;
}

.mini-photo {
  aspect-ratio: 1 / 0.78;
  border-radius: 8px;
  background: var(--soft);
  object-fit: cover;
  width: 100%;
  border: 1px solid rgba(217, 224, 234, 0.8);
}

.empty-media {
  min-height: 168px;
  display: grid;
  place-items: center;
  margin-top: 12px;
  color: var(--ink-500);
  text-align: center;
  border: 1px dashed #b9c9e3;
  border-radius: 8px;
  background: #fbfdff;
}

.add-photo {
  width: 100%;
  min-height: 50px;
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--blue);
  font-weight: 800;
  border: 1.5px dashed #9dc0ff;
  border-radius: 8px;
  background: #fbfdff;
}

.actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 24px;
}

.primary,
.secondary {
  min-width: 178px;
  height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 8px;
  font-weight: 800;
}

.primary {
  color: var(--white);
  background: var(--blue);
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.18);
}

.primary:hover {
  background: var(--blue-dark);
}

.primary:disabled {
  opacity: 0.55;
  box-shadow: none;
  cursor: not-allowed;
}

.secondary {
  color: var(--ink-700);
  border: 1px solid var(--line);
  background: var(--white);
}

.secondary:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.bottom-sheet-backdrop {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 20px;
  background: rgba(16, 24, 40, 0.5);
  animation: fadeIn 140ms ease-out;
  z-index: 20;
}

.bottom-sheet {
  width: min(100%, 480px);
  padding: 22px;
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.22);
  animation: sheetUp 180ms ease-out;
}

.sheet-title {
  margin: 0 0 14px;
  font-size: 18px;
  font-weight: 800;
}

.sheet-action,
.sheet-cancel {
  width: 100%;
  min-height: 68px;
  margin-bottom: 10px;
  display: grid;
  grid-template-columns: 48px 1fr;
  align-items: center;
  gap: 14px;
  padding: 10px 12px;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.sheet-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  color: var(--white);
  border-radius: 8px;
  background: var(--blue);
}

.sheet-action strong,
.sheet-action span span {
  display: block;
}

.sheet-action span span {
  margin-top: 3px;
  color: var(--ink-500);
  font-size: 13px;
}

.sheet-cancel {
  display: block;
  min-height: 50px;
  text-align: center;
  color: var(--blue);
  font-weight: 800;
}

.flash-on {
  color: #facc15 !important;
  background: rgba(250, 204, 21, 0.16);
}

.map-screen {
  width: min(100% - 40px, 1180px);
  min-height: calc(100dvh - 68px);
  margin: 0 auto;
  padding: 24px 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 24px;
}

.google-map {
  position: relative;
  min-height: 640px;
  overflow: hidden;
  border: 1px solid rgba(217, 224, 234, 0.9);
  border-radius: 8px;
  background: #e5e7eb;
}

.map-error {
  height: 100%;
  min-height: 640px;
  display: grid;
  place-items: center;
  color: var(--ink-500);
  font-weight: 800;
}

.map-panel {
  align-self: end;
  padding: 18px;
}

.coordinates {
  margin-top: 8px;
}

.map-search {
  height: 48px;
  display: grid;
  grid-template-columns: 1fr 78px;
  margin: 14px 0 10px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.map-search input {
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 0 12px;
  color: var(--ink-800);
}

.map-search button {
  color: var(--blue);
  background: var(--white);
  font-weight: 800;
}

.camera-page {
  width: min(100% - 40px, 1180px);
  margin: 0 auto;
  padding: 24px 0 42px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
}

.camera-preview {
  position: relative;
  min-height: min(68dvh, 680px);
  overflow: hidden;
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.04), rgba(0, 0, 0, 0.2)),
    url("../design.png") center / cover;
}

.camera-preview video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: transparent;
  transform-origin: center;
}

.zoom-pill {
  position: absolute;
  z-index: 1;
  right: 18px;
  top: 50%;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  color: var(--white);
  border-radius: 999px;
  background: rgba(27, 31, 37, 0.72);
  font-weight: 800;
}

.camera-panel {
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.camera-controls {
  display: grid;
  grid-template-columns: 54px 88px 54px;
  align-items: center;
  justify-content: center;
  gap: 28px;
  margin-bottom: 18px;
}

.camera-small {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.14);
}

.shutter {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: transparent;
  border: 4px solid rgba(255, 255, 255, 0.85);
  padding: 7px;
}

.shutter span {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--white);
}

.camera-thumbs {
  min-height: 82px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.camera-thumb,
.camera-add {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 8px;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.48);
}

.camera-add {
  display: grid;
  place-items: center;
  color: var(--white);
  border-style: dashed;
  font-size: 32px;
}

.camera-count {
  margin: 18px 0 4px;
  font-size: 16px;
  font-weight: 800;
}

.camera-note {
  margin: 0 0 18px;
  color: #c7ccd5;
  font-size: 13px;
}

.review-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 14px;
  margin: 20px 0 18px;
}

.review-card {
  position: relative;
  height: 160px;
  overflow: hidden;
  border-radius: 8px;
  background: var(--soft);
  border: 1px solid var(--line);
}

.review-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.number-badge,
.remove-badge {
  position: absolute;
  top: 8px;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 13px;
  font-weight: 800;
}

.number-badge {
  left: 8px;
  color: var(--white);
  background: var(--blue);
}

.remove-badge {
  right: 8px;
  color: var(--ink-950);
  background: var(--white);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.14);
}

.add-more {
  min-height: 160px;
  display: grid;
  place-items: center;
  gap: 8px;
  color: var(--blue);
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  border: 1.5px dashed #9dc0ff;
  border-radius: 8px;
  background: #fbfdff;
}

.upload-status {
  display: grid;
  grid-template-columns: 1fr 28px;
  gap: 12px;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.upload-status strong,
.upload-status span span {
  display: block;
}

.upload-status span span {
  margin-top: 3px;
  color: var(--ink-500);
  font-size: 13px;
}

.status-icon {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  color: var(--white);
  border-radius: 50%;
  background: var(--green);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  width: min(440px, calc(100% - 40px));
  transform: translateX(-50%);
  padding: 14px 16px;
  color: var(--white);
  background: rgba(16, 24, 40, 0.94);
  border-radius: 8px;
  text-align: center;
  font-weight: 700;
  z-index: 30;
  animation: toastIn 180ms ease-out;
}

.visually-hidden {
  position: fixed;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

@media (max-width: 1100px) {
  .page {
    width: min(calc(100% - 32px), 980px);
  }

  .form-layout {
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 18px;
  }

  .panel-main,
  .panel-side {
    padding: 20px;
  }
}

@media (max-width: 900px) {
  .form-layout,
  .camera-page,
  .map-screen {
    grid-template-columns: 1fr;
  }

  .panel-side {
    position: static;
    order: 2;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
  }

  .side-block + .side-block {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
  }

  .side-block {
    min-width: 0;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fbfdff;
  }

  .camera-preview {
    min-height: 56dvh;
  }

  .google-map {
    min-height: 52dvh;
  }

  .actions {
    justify-content: stretch;
  }

  .actions .primary,
  .actions .secondary {
    flex: 1 1 0;
  }
}

@media (max-width: 720px) {
  .page,
  .camera-page,
  .map-screen {
    width: min(calc(100% - 24px), 680px);
  }

  .panel-side {
    grid-template-columns: 1fr;
  }

  .side-block {
    padding: 0;
    border: 0;
    background: transparent;
  }

  .side-block + .side-block {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
  }

  .report-input-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .report-table-head,
  .report-data-row {
    grid-template-columns: minmax(132px, 1.1fr) repeat(4, minmax(104px, 1fr));
    min-width: 660px;
  }
}

@media (max-width: 640px) {
  body {
    background: var(--white);
  }

  .topbar {
    min-height: 60px;
    grid-template-columns: 42px minmax(0, 1fr) 42px;
    gap: 6px;
    padding: 8px 12px;
  }

  .title {
    font-size: 18px;
    text-align: center;
  }

  .icon-button {
    width: 40px;
    height: 40px;
  }

  .page,
  .camera-page,
  .map-screen {
    width: 100%;
    padding: 12px;
    gap: 12px;
  }

  .screen {
    background: var(--white);
  }

  .panel {
    border-left: 0;
    border-right: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .panel-main,
  .panel-side {
    padding: 16px 14px;
  }

  .form-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .section-head {
    margin-bottom: 16px;
  }

  .section-head h2 {
    font-size: 18px;
  }

  .field,
  .address-widget {
    border-radius: 10px;
  }

  .map-preview {
    height: 136px;
  }

  .address-row {
    align-items: start;
    line-height: 1.35;
  }

  .actions {
    flex-direction: column-reverse;
    gap: 10px;
    margin-top: 18px;
  }

  .report-input-grid,
  .report-total-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .report-tabs {
    margin-left: -14px;
    margin-right: -14px;
    padding: 2px 14px 10px;
  }

  .report-tab {
    min-width: auto;
    height: 40px;
    padding: 0 12px;
    font-size: 12px;
  }

  .report-title-row {
    align-items: flex-start;
  }

  .report-city-field {
    max-width: none;
  }

  .report-card {
    padding: 10px;
    border-radius: 10px;
  }

  .report-section-summary {
    min-height: 40px;
    font-size: 14px;
  }

  .report-total-grid {
    gap: 6px;
  }

  .report-total-grid span {
    padding: 8px 6px;
  }

  .report-table {
    overflow-x: visible;
  }

  .report-table-head {
    display: none;
  }

  .report-data-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    min-width: 0;
    gap: 8px;
    padding: 10px 0;
    border-top: 1px solid var(--line);
  }

  .report-brand {
    grid-column: 1 / -1;
    min-height: auto;
    font-size: 13px;
  }

  .report-data-row .report-value span,
  .report-data-row .report-value small {
    display: block;
  }

  .report-value small {
    min-height: auto;
  }

  .report-value input {
    height: 42px;
    font-size: 14px;
  }

  .photo-preview-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .empty-media {
    min-height: 120px;
  }

  .primary,
  .secondary {
    width: 100%;
    min-width: 0;
    height: 52px;
  }

  .bottom-sheet-backdrop {
    align-items: flex-end;
    padding: 0;
  }

  .bottom-sheet {
    border-radius: 16px 16px 0 0;
    padding: 18px 14px 14px;
  }

  .sheet-action {
    grid-template-columns: 44px 1fr;
    min-height: 64px;
  }

  .sheet-icon {
    width: 44px;
    height: 44px;
  }

  .camera-controls {
    gap: 18px;
  }

  .camera-page {
    padding-bottom: 16px;
  }

  .camera-preview {
    min-height: 48dvh;
  }

  .camera-panel {
    padding: 14px;
  }

  .camera-controls {
    grid-template-columns: 50px 78px 50px;
  }

  .camera-small {
    width: 50px;
    height: 50px;
  }

  .shutter {
    width: 78px;
    height: 78px;
  }

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

  .google-map {
    min-height: 46dvh;
  }

  .map-panel {
    padding: 14px;
  }

  .map-search {
    grid-template-columns: 1fr 72px;
  }

  .review-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .review-card,
  .add-more {
    min-height: 128px;
    height: 128px;
  }
}

@media (max-width: 520px) {
  .report-input-grid,
  .report-total-grid,
  .report-data-row {
    grid-template-columns: 1fr;
  }

  .report-value {
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fbfdff;
  }

  .report-top-row .report-value {
    padding: 0;
    border: 0;
    background: transparent;
  }

  .report-top-row .report-input-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .report-total-grid span {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 8px;
    text-align: left;
  }

  .report-total-grid strong {
    margin-top: 0;
    white-space: nowrap;
  }

  .review-grid {
    grid-template-columns: 1fr;
  }

  .review-card,
  .add-more {
    height: 190px;
  }
}

@media (max-width: 380px) {
  .report-input-grid,
  .report-total-grid,
  .report-data-row,
  .review-grid {
    grid-template-columns: 1fr;
  }

  .camera-controls {
    gap: 12px;
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes sheetUp {
  from { transform: translateY(18px); }
  to { transform: translateY(0); }
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translate(-50%, 10px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}
