:root {
  color-scheme: light;
  --ink: #0f172a;
  --brand: #2563eb;
  --success: #16a34a;
  --warning: #f59e0b;
  --danger: #dc2626;
  --background: #f8fafc;
  --card: #ffffff;
  --muted: #64748b;
  --muted-surface: #f1f5f9;
  --border: #e2e8f0;
  --radius: 14px;
  --shadow-soft: 0 1px 2px rgb(15 23 42 / 4%), 0 8px 24px -12px rgb(15 23 42 / 12%);
  --shadow-lift: 0 2px 4px rgb(15 23 42 / 5%), 0 18px 40px -18px rgb(15 23 42 / 22%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--background);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

body {
  min-width: 360px;
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 100% 0%, rgb(37 99 235 / 6%), transparent 28rem),
    var(--background);
}

button,
input,
select {
  font: inherit;
}

button,
select,
input[type="checkbox"] {
  cursor: pointer;
}

select option {
  background: #ffffff;
  color: #0f172a;
}

button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid rgb(37 99 235 / 20%);
  outline-offset: 2px;
}

[hidden] {
  display: none !important;
}

.install-shell {
  width: min(100%, 720px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 20px 16px calc(108px + env(safe-area-inset-bottom));
}

.brand-header {
  display: flex;
  align-items: center;
  gap: 11px;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 13px;
  background: var(--ink);
  box-shadow: var(--shadow-soft);
  color: white;
}

.brand-name,
.brand-caption {
  margin: 0;
}

.brand-name {
  font-size: 15px;
  font-weight: 750;
  letter-spacing: -0.02em;
}

.brand-caption {
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 550;
}

.intro {
  margin: 36px 0 24px;
}

.eyebrow,
.section-kicker {
  color: var(--brand);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.intro h1,
.login-card h1 {
  margin: 8px 0 10px;
  font-size: clamp(29px, 8vw, 42px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.intro p,
.login-copy {
  max-width: 600px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.stepper {
  display: grid;
  grid-template-columns: auto 1fr auto 1fr auto 1fr auto;
  align-items: start;
  margin: 22px 2px;
}

.step {
  display: grid;
  min-width: 48px;
  min-height: 52px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  place-items: center;
}

.step span {
  display: grid;
  width: 34px;
  height: 34px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--card);
  font-size: 12px;
  font-weight: 800;
  place-items: center;
}

.step small {
  margin-top: 5px;
  font-size: 9px;
  font-weight: 700;
}

.step.is-active span {
  border-color: var(--ink);
  background: var(--ink);
  color: white;
  box-shadow: var(--shadow-soft);
}

.step.is-complete span {
  border-color: var(--success);
  background: rgb(22 163 74 / 10%);
  color: var(--success);
}

.step-line {
  height: 1px;
  margin: 17px 4px 0;
  background: var(--border);
}

.surface {
  border: 1px solid var(--border);
  border-radius: 22px;
  background: var(--card);
  box-shadow: var(--shadow-soft);
}

.install-step {
  padding: 20px;
  animation: enter 180ms ease-out;
}

@keyframes enter {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
}

.section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}

.section-heading h2 {
  margin: 5px 0 0;
  font-size: 20px;
  letter-spacing: -0.025em;
}

.status-pill {
  flex: 0 0 auto;
  padding: 6px 9px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
}

.status-pill.is-success {
  background: rgb(22 163 74 / 10%);
  color: var(--success);
}

.status-pill.is-danger {
  background: rgb(220 38 38 / 10%);
  color: var(--danger);
}

.status-pill.is-warning {
  background: rgb(245 158 11 / 12%);
  color: #b45309;
}

.report-menu {
  position: relative;
}

.report-menu > summary {
  list-style: none;
}

.report-menu > summary::-webkit-details-marker {
  display: none;
}

.report-menu-sheet {
  position: absolute;
  z-index: 20;
  top: 50px;
  right: 0;
  width: min(300px, calc(100vw - 32px));
  padding: 15px;
  border: 1px solid var(--border);
  border-radius: 15px;
  background: var(--card);
  box-shadow: var(--shadow-lift);
}

.report-menu-sheet strong {
  font-size: 13px;
}

.report-menu-sheet p {
  margin: 5px 0 12px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}

.report-menu-sheet button {
  width: 100%;
  min-height: 44px;
  border: 0;
  border-radius: 11px;
  background: var(--ink);
  color: white;
  font-size: 11px;
  font-weight: 750;
}

.workflow-note {
  display: grid;
  gap: 4px;
  margin-bottom: 14px;
  padding: 13px 15px;
  border-color: rgb(37 99 235 / 18%);
  background: rgb(37 99 235 / 5%);
}

.workflow-note strong {
  font-size: 12px;
}

.workflow-note span {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}

.final-note {
  border-color: rgb(22 163 74 / 18%);
  background: rgb(22 163 74 / 5%);
}

.check-list {
  display: grid;
  gap: 2px;
}

.check-row {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 11px;
  align-items: center;
  min-height: 58px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}

.check-row:last-child {
  border-bottom: 0;
}

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

.check-row strong {
  font-size: 13px;
}

.check-row small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
}

.check-icon {
  display: grid;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 900;
  place-items: center;
}

.check-icon.is-pass {
  background: rgb(22 163 74 / 10%);
  color: var(--success);
}

.check-icon.is-fail {
  background: rgb(220 38 38 / 10%);
  color: var(--danger);
}

.field,
.field-grid {
  margin-top: 16px;
}

.field {
  display: grid;
  gap: 7px;
}

.field > span:first-child {
  font-size: 13px;
  font-weight: 700;
}

.field small,
.helper {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.danger-text {
  color: var(--danger);
}

.field input,
.field select {
  width: 100%;
  height: 48px;
  min-width: 0;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: var(--card);
  color: var(--ink);
  font-size: 16px;
  transition: border-color 150ms, box-shadow 150ms;
}

.field input:focus,
.field select:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgb(37 99 235 / 10%);
  outline: 0;
}

.field-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 92px;
  gap: 10px;
}

.field-grid .field {
  margin-top: 0;
}

.input-secret {
  position: relative;
  display: block;
}

.input-secret input {
  padding-right: 68px;
}

.reveal {
  position: absolute;
  top: 4px;
  right: 4px;
  min-width: 54px;
  height: 40px;
  padding: 0 10px;
  border: 0;
  border-radius: 10px;
  background: var(--muted-surface);
  color: var(--ink);
  font-size: 11px;
  font-weight: 750;
}

.consent {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 10px;
  align-items: start;
  margin-top: 22px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.consent input {
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: var(--brand);
}

.sticky-actions {
  position: fixed;
  z-index: 10;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  gap: 10px;
  padding: 12px max(16px, calc((100vw - 688px) / 2)) calc(12px + env(safe-area-inset-bottom));
  border-top: 1px solid rgb(226 232 240 / 80%);
  background: rgb(248 250 252 / 88%);
  backdrop-filter: blur(18px);
}

.button {
  display: inline-grid;
  min-height: 50px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 750;
  place-items: center;
}

.button-primary {
  flex: 1;
  background: var(--ink);
  box-shadow: var(--shadow-lift);
  color: white;
}

.button-primary:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.button-secondary {
  min-width: 108px;
  border-color: var(--border);
  background: var(--card);
  color: var(--ink);
}

.alert {
  display: grid;
  gap: 4px;
  margin: 18px 0;
  padding: 14px 16px;
  border: 1px solid;
  border-radius: var(--radius);
  font-size: 12px;
  line-height: 1.5;
}

.alert-danger {
  border-color: rgb(220 38 38 / 20%);
  background: rgb(220 38 38 / 6%);
  color: #991b1b;
}

.alert-success {
  border-color: rgb(22 163 74 / 20%);
  background: rgb(22 163 74 / 6%);
  color: #166534;
}

.install-footer {
  display: flex;
  justify-content: center;
  gap: 7px;
  margin-top: 20px;
  color: var(--muted);
  font-size: 10px;
}

.login-shell {
  display: grid;
  min-height: 100vh;
  padding: 20px 16px;
  place-items: center;
}

.login-card {
  width: min(100%, 440px);
  padding: 26px 22px;
}

.login-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 30px;
}

.login-brand strong,
.login-brand small {
  display: block;
}

.login-brand strong {
  font-size: 14px;
}

.login-brand small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px;
}

.login-mark {
  font-size: 12px;
  font-weight: 850;
}

.login-copy {
  margin-bottom: 24px;
}

.login-card .button {
  width: 100%;
}

.login-form {
  margin-top: 20px;
}

.login-consent {
  margin: 16px 0;
}

.app-shell {
  width: min(100%, 1180px);
  min-height: 100vh;
  margin: 0 auto;
  padding-bottom: calc(94px + env(safe-area-inset-bottom));
}

.app-header {
  position: sticky;
  z-index: 8;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  padding: 15px 16px;
  border-bottom: 1px solid rgb(226 232 240 / 80%);
  background: rgb(248 250 252 / 86%);
  backdrop-filter: blur(18px);
}

.app-overline {
  margin: 0 0 4px;
  color: var(--brand);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.13em;
}

.app-header h1 {
  margin: 0;
  font-size: 19px;
  letter-spacing: -0.025em;
}

.avatar-button {
  display: grid;
  width: 44px;
  height: 44px;
  border: 1px solid rgb(37 99 235 / 12%);
  border-radius: 14px;
  background: rgb(37 99 235 / 10%);
  color: var(--brand);
  font-size: 12px;
  font-weight: 850;
  place-items: center;
}

.dashboard-main {
  display: grid;
  gap: 24px;
  padding: 20px 16px 30px;
}

.quick-create {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 21px;
  border-radius: 22px;
  background: var(--ink);
  box-shadow: var(--shadow-lift);
  color: white;
}

.quick-create .section-kicker {
  color: #93c5fd;
}

.quick-create h2 {
  margin: 7px 0 5px;
  font-size: 20px;
  letter-spacing: -0.025em;
}

.quick-create p {
  max-width: 260px;
  margin: 0;
  color: #cbd5e1;
  font-size: 12px;
  line-height: 1.5;
}

.round-action {
  display: grid;
  width: 50px;
  height: 50px;
  flex: 0 0 auto;
  border: 0;
  border-radius: 16px;
  background: white;
  color: var(--ink);
  font-size: 26px;
  text-decoration: none;
  place-items: center;
}

.attention-card {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 12px;
  align-items: center;
  padding: 15px;
}

.attention-icon {
  display: grid;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: rgb(22 163 74 / 9%);
  color: var(--success);
  font-weight: 850;
  place-items: center;
}

.attention-card strong {
  font-size: 13px;
}

.attention-card p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 11px;
}

.section-title-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.section-title-row h2 {
  margin: 4px 0 0;
  font-size: 19px;
  letter-spacing: -0.025em;
}

.subtle-label {
  color: var(--muted);
  font-size: 11px;
}

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

.stat-card {
  display: grid;
  min-height: 132px;
  padding: 15px;
}

.stat-icon {
  display: grid;
  width: 34px;
  height: 34px;
  border-radius: 11px;
  font-size: 14px;
  place-items: center;
}

.stat-icon.blue {
  background: rgb(37 99 235 / 9%);
  color: var(--brand);
}

.stat-icon.green {
  background: rgb(22 163 74 / 9%);
  color: var(--success);
}

.stat-icon.amber {
  background: rgb(245 158 11 / 12%);
  color: #b45309;
}

.stat-icon.slate {
  background: var(--muted-surface);
  color: var(--muted);
}

.stat-card strong {
  align-self: end;
  margin-top: 10px;
  font-size: 25px;
  letter-spacing: -0.04em;
}

.stat-card small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
}

.empty-state {
  display: grid;
  justify-items: center;
  padding: 28px 20px;
  text-align: center;
}

.empty-illustration {
  display: grid;
  width: 52px;
  height: 52px;
  margin-bottom: 14px;
  border-radius: 17px;
  background: var(--muted-surface);
  color: var(--muted);
  place-items: center;
}

.empty-state strong {
  font-size: 14px;
}

.empty-state p {
  margin: 5px 0 17px;
  color: var(--muted);
  font-size: 11px;
}

.empty-state .button {
  min-height: 44px;
}

.empty-action {
  color: var(--ink);
  text-decoration: none;
}

.bottom-nav {
  position: fixed;
  z-index: 12;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  grid-template-columns: 1fr 1fr 68px 1fr 1fr;
  align-items: center;
  min-height: 72px;
  padding: 7px max(8px, calc((100vw - 720px) / 2)) calc(7px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--border);
  background: rgb(255 255 255 / 92%);
  box-shadow: 0 -8px 24px -18px rgb(15 23 42 / 30%);
  backdrop-filter: blur(18px);
}

.bottom-nav a,
.bottom-nav > form > button,
.more-nav > summary {
  display: grid;
  min-width: 0;
  min-height: 52px;
  padding: 4px;
  border: 0;
  background: transparent;
  color: var(--muted);
  text-decoration: none;
  place-items: center;
}

.bottom-nav a span,
.bottom-nav > form > button span,
.more-nav > summary > span {
  font-size: 20px;
  line-height: 1;
}

.bottom-nav a small,
.bottom-nav > form > button small,
.more-nav > summary > small {
  margin-top: 4px;
  font-size: 9px;
  font-weight: 700;
}

.bottom-nav a.is-active {
  color: var(--brand);
}

.bottom-nav form {
  margin: 0;
}

.more-nav {
  position: relative;
  min-width: 0;
}

.more-nav > summary {
  cursor: pointer;
  list-style: none;
}

.more-nav > summary::-webkit-details-marker {
  display: none;
}

.more-nav[open] > summary {
  color: var(--brand);
}

.more-menu-sheet {
  position: fixed;
  z-index: 30;
  right: auto;
  bottom: calc(78px + env(safe-area-inset-bottom));
  left: 50%;
  display: grid;
  gap: 7px;
  width: min(calc(100vw - 20px), 460px);
  max-width: none;
  margin: 0;
  padding: 10px 12px 13px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: rgb(255 255 255 / 98%);
  box-shadow: 0 24px 70px -24px rgb(15 23 42 / 45%);
  transform: translateX(-50%);
}

.more-menu-handle {
  width: 38px;
  height: 4px;
  margin: 0 auto 3px;
  border-radius: 999px;
  background: var(--border);
}

.more-menu-sheet > strong {
  padding: 3px 6px 7px;
  font-size: 13px;
}

.more-menu-sheet > a,
.more-menu-sheet form > button {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 11px;
  align-items: center;
  min-height: 58px;
  padding: 8px 10px;
  border: 0;
  border-radius: 13px;
  background: var(--muted-surface);
  color: var(--ink);
  justify-items: stretch;
  text-align: left;
  text-decoration: none;
}

.more-menu-sheet > a > span,
.more-menu-sheet form > button > span {
  display: grid;
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: var(--card);
  color: var(--brand);
  font-size: 16px;
  place-items: center;
}

.more-menu-sheet b,
.more-menu-sheet small {
  display: block;
}

.more-menu-sheet b {
  font-size: 12px;
}

.more-menu-sheet small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 9px;
}

.more-menu-sheet form > button {
  width: 100%;
  background: rgb(220 38 38 / 6%);
  color: var(--danger);
}

.more-menu-sheet form > button > span {
  color: var(--danger);
}

.nav-fab {
  display: grid;
  width: 56px;
  height: 56px;
  margin: -24px auto 0;
  border: 5px solid var(--background);
  border-radius: 18px;
  background: var(--ink);
  box-shadow: var(--shadow-lift);
  color: white;
  font-size: 25px;
  text-decoration: none;
  place-items: center;
}

.page-header {
  position: sticky;
  z-index: 9;
  top: 0;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) 46px;
  gap: 10px;
  align-items: center;
  min-height: 76px;
  padding: 12px 16px;
  border-bottom: 1px solid rgb(226 232 240 / 85%);
  background: rgb(248 250 252 / 90%);
  backdrop-filter: blur(18px);
}

.page-header h1 {
  margin: 4px 0 0;
  font-size: 19px;
  letter-spacing: -0.025em;
}

.icon-button {
  display: grid;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: var(--card);
  box-shadow: var(--shadow-soft);
  color: var(--ink);
  font-size: 20px;
  text-decoration: none;
  place-items: center;
}

.primary-icon {
  border-color: var(--ink);
  background: var(--ink);
  color: white;
}

.content-page {
  padding: 20px 16px calc(94px + env(safe-area-inset-bottom));
}

.search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  margin-bottom: 18px;
}

.search-field {
  display: grid;
  grid-template-columns: 26px 1fr;
  align-items: center;
  min-height: 46px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: var(--card);
}

.search-field input {
  width: 100%;
  min-width: 0;
  border: 0;
  background: transparent;
  font-size: 16px;
  outline: 0;
}

.filter-button,
.small-action {
  min-height: 44px;
  padding: 0 13px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--card);
  color: var(--ink);
  font-size: 11px;
  font-weight: 750;
}

.report-list {
  display: grid;
  gap: 11px;
}

.report-card {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 13px;
  padding: 14px;
  color: var(--ink);
  text-decoration: none;
}

.report-card-icon {
  display: grid;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgb(37 99 235 / 9%);
  color: var(--brand);
  place-items: center;
}

.report-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.report-card-top small {
  color: var(--muted);
  font-size: 10px;
}

.report-card h2 {
  margin: 10px 0 3px;
  font-size: 14px;
}

.report-card p,
.photo-count {
  color: var(--muted);
  font-size: 10px;
}

.report-card p {
  margin: 0 0 8px;
}

.text-button {
  color: white;
  text-decoration: none;
}

.form-page {
  width: min(100%, 760px);
  margin: 0 auto;
}

.step-counter {
  justify-self: end;
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
}

.form-content {
  padding-bottom: calc(96px + env(safe-area-inset-bottom));
}

.form-section {
  margin-bottom: 14px;
  padding: 19px;
}

.form-section-title {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 11px;
  align-items: center;
  margin-bottom: 8px;
}

.form-section-title strong,
.form-section-title small {
  display: block;
}

.form-section-title strong {
  font-size: 14px;
}

.form-section-title small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
}

.category-heading {
  grid-template-columns: 36px 1fr auto;
}

.number-badge {
  display: grid;
  width: 34px;
  height: 34px;
  border-radius: 11px;
  background: var(--ink);
  color: white;
  font-size: 12px;
  font-weight: 850;
  place-items: center;
}

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

.category-form-list {
  display: grid;
  gap: 9px;
  margin-top: 17px;
}

.category-input-row {
  display: grid;
  grid-template-columns: 25px minmax(0, 1fr) 38px;
  gap: 7px;
  align-items: center;
  padding: 9px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--background);
}

.category-input-row > div {
  display: grid;
  gap: 6px;
}

.category-input-row input {
  width: 100%;
  min-width: 0;
  height: 38px;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--card);
  font-size: 14px;
}

.category-input-row input + input {
  color: var(--muted);
  font-size: 12px;
}

.drag-dot {
  color: var(--muted);
  font-size: 18px;
}

.remove-category {
  display: grid;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 10px;
  background: rgb(220 38 38 / 7%);
  color: var(--danger);
  font-size: 18px;
  place-items: center;
}

.form-submit-bar {
  position: fixed;
  z-index: 11;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  padding: 12px max(16px, calc((100vw - 728px) / 2)) calc(12px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--border);
  background: rgb(248 250 252 / 92%);
  backdrop-filter: blur(18px);
}

.form-submit-bar .button {
  width: 100%;
}

.min-width-zero {
  min-width: 0;
}

.truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.report-workspace {
  display: grid;
  gap: 22px;
}

.report-summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 17px;
}

.report-summary h2 {
  margin: 6px 0 5px;
  font-size: 16px;
}

.report-summary p {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}

.upload-panel {
  display: grid;
  justify-items: center;
  padding: 25px 19px;
  text-align: center;
}

.upload-icon {
  display: grid;
  width: 52px;
  height: 52px;
  border-radius: 17px;
  background: rgb(37 99 235 / 9%);
  color: var(--brand);
  font-size: 22px;
  place-items: center;
}

.upload-panel h2 {
  margin: 14px 0 6px;
  font-size: 17px;
}

.upload-panel p {
  max-width: 410px;
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
}

.upload-panel form {
  width: 100%;
}

.upload-category-field {
  display: grid;
  gap: 7px;
  margin-bottom: 10px;
  text-align: left;
}

.upload-category-field span {
  color: var(--ink);
  font-size: 11px;
  font-weight: 750;
}

.upload-category-field select {
  width: 100%;
  height: 48px;
  padding: 0 13px;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: var(--card);
  color: var(--ink);
  font-size: 16px;
}

.upload-panel .button {
  width: 100%;
}

.selected-count {
  display: block;
  margin-top: 9px;
  color: var(--brand);
  font-size: 10px;
  font-weight: 700;
}

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

.category-card {
  position: relative;
  display: grid;
  min-height: 118px;
  padding: 15px;
  overflow: hidden;
}

.category-color {
  width: 28px;
  height: 5px;
  margin-bottom: 13px;
  border-radius: 999px;
  background: var(--category-color);
}

.category-card strong {
  font-size: 12px;
}

.category-card small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
}

.review-label {
  align-self: end;
  margin-top: 10px;
  color: var(--category-color);
  font-size: 9px;
  font-weight: 750;
}

.category-upload-action {
  width: 100%;
  min-height: 38px;
  margin-top: 10px;
  border: 1px solid color-mix(in srgb, var(--category-color) 28%, white);
  border-radius: 10px;
  background: color-mix(in srgb, var(--category-color) 8%, white);
  color: var(--category-color);
  font-size: 9px;
  font-weight: 800;
}

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

.photo-tile {
  position: relative;
  overflow: hidden;
  border: 1px solid rgb(148 163 184 / 22%);
  border-radius: 15px;
  background: #fff;
  box-shadow:
    0 1px 2px rgb(15 23 42 / 4%),
    0 18px 44px -30px rgb(15 23 42 / 28%);
}

.photo-tile-image {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #fff;
}

.photo-tile img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 180ms ease;
}

.confidence-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 4px 6px;
  border-radius: 999px;
  background: rgb(15 23 42 / 78%);
  color: white;
  font-size: 9px;
  font-weight: 800;
  backdrop-filter: blur(8px);
}

.photo-meta {
  display: grid;
  gap: 3px;
  padding: 10px;
  border-top: 1px solid rgb(226 232 240 / 80%);
}

.photo-meta strong,
.photo-meta small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.photo-meta strong {
  font-size: 10px;
}

.photo-meta small {
  color: var(--muted);
  font-size: 9px;
}

.review-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 16px;
  padding: 15px;
}

.review-summary > div {
  display: grid;
  gap: 3px;
  justify-items: center;
  border-right: 1px solid var(--border);
}

.review-summary > div:last-child {
  border-right: 0;
}

.review-summary strong {
  font-size: 21px;
}

.review-summary small {
  color: var(--muted);
  font-size: 8px;
  text-align: center;
}

.review-list {
  display: grid;
  gap: 12px;
}

.review-photo {
  overflow: hidden;
  border-color: rgb(148 163 184 / 22%);
  background: #fff;
  box-shadow:
    0 1px 2px rgb(15 23 42 / 4%),
    0 18px 44px -30px rgb(15 23 42 / 28%);
}

.review-image-frame {
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: #fff;
}

.review-image-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.review-photo-body {
  border-top: 1px solid rgb(226 232 240 / 80%);
  padding: 14px;
}

.review-photo-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.review-photo-title strong {
  min-width: 0;
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.static-badge {
  position: static;
  flex: 0 0 auto;
}

.compact-field {
  display: grid;
  gap: 5px;
  margin: 13px 0 9px;
}

.compact-field span {
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
}

.compact-field select {
  width: 100%;
  height: 44px;
  padding: 0 11px;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: var(--card);
  color: var(--ink);
  font-size: 14px;
}

.compact-field input {
  width: 100%;
  min-height: 44px;
  padding: 0 11px;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: var(--card);
  color: var(--ink);
  font-size: 14px;
}

.compact-field em {
  font-style: normal;
  font-weight: 500;
}

.review-photo .button {
  width: 100%;
  min-height: 44px;
}

.photo-action-row {
  display: grid;
  grid-template-columns: 1fr 86px;
  gap: 8px;
  margin-top: 8px;
}

.edit-photo-button {
  border: 1px solid var(--border);
  background: var(--card);
  box-shadow: none;
  color: var(--ink);
  text-decoration: none;
}

.delete-photo-details {
  position: relative;
}

.delete-photo-details > summary {
  display: grid;
  min-height: 44px;
  border: 1px solid rgb(220 38 38 / 20%);
  border-radius: 14px;
  background: rgb(220 38 38 / 6%);
  color: var(--danger);
  cursor: pointer;
  font-size: 11px;
  font-weight: 750;
  list-style: none;
  place-items: center;
}

.delete-popover {
  position: absolute;
  z-index: 8;
  right: 0;
  bottom: 50px;
  width: 220px;
  padding: 13px;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: var(--card);
  box-shadow: var(--shadow-lift);
}

.delete-popover strong {
  font-size: 12px;
}

.delete-popover p {
  margin: 4px 0 10px;
  color: var(--muted);
  font-size: 10px;
}

.delete-popover button {
  width: 100%;
  min-height: 40px;
  border: 0;
  border-radius: 10px;
  background: var(--danger);
  color: white;
  font-size: 11px;
  font-weight: 750;
}

.preview-body {
  background: #e5e7eb;
}

.preview-header {
  background: rgb(248 250 252 / 94%);
}

.preview-stage {
  padding: 18px 0 190px;
  overflow: hidden;
}

.paper-track {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.paper-track::before,
.paper-track::after {
  flex: 0 0 16px;
  content: "";
}

.a4-paper {
  display: flex;
  width: calc(100vw - 32px);
  max-width: 720px;
  min-height: calc((100vw - 32px) * 1.414);
  flex: 0 0 calc(100vw - 32px);
  flex-direction: column;
  padding: 7% 7% 5%;
  scroll-snap-align: center;
  background: white;
  box-shadow: var(--shadow-paper, 0 22px 54px -24px rgb(15 23 42 / 35%));
  color: #111827;
}

.paper-header {
  padding-bottom: 10px;
  text-align: center;
}

.paper-header span {
  color: #6b7280;
  font-size: clamp(5px, 1.6vw, 10px);
  font-weight: 700;
  letter-spacing: 0.18em;
}

.paper-header h2 {
  margin: 0 0 10px;
  font-size: clamp(9px, 2.8vw, 17px);
  font-family: "Times New Roman", serif;
  font-weight: 400;
}

.paper-header p {
  margin: 2px;
  font-size: clamp(6px, 1.8vw, 11px);
}

.paper-category-title {
  margin: 14px 0 0;
  font-family: "Times New Roman", serif;
  font-size: clamp(8px, 2.2vw, 13px);
  font-weight: 400;
  text-align: center;
}

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

.admin-page {
  display: grid;
  gap: 14px;
}

.admin-card {
  padding: 18px;
}

.admin-card h2 {
  margin: 6px 0 4px;
  font-size: 20px;
}

.admin-card .button {
  width: 100%;
  margin-top: 18px;
}

.settings-fieldset {
  margin: 18px 0 2px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
}

.settings-fieldset legend {
  padding: 0 6px;
  font-size: 12px;
  font-weight: 750;
}

.settings-fieldset > small {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.5;
}

.settings-ratio-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

.settings-ratio-grid label {
  position: relative;
}

.settings-ratio-grid input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.settings-ratio-grid span {
  display: grid;
  min-height: 42px;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: var(--card);
  color: var(--muted);
  font-size: 10px;
  font-weight: 750;
  place-items: center;
}

.settings-ratio-grid input:checked + span {
  border-color: var(--brand);
  background: rgb(37 99 235 / 9%);
  box-shadow: 0 0 0 3px rgb(37 99 235 / 8%);
  color: var(--brand);
}

.settings-custom-ratio {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 8px;
  align-items: end;
  margin-top: 10px;
}

.settings-fieldset:not(:has(input[value="custom"]:checked)) .settings-custom-ratio {
  display: none;
}

.settings-custom-ratio label {
  display: grid;
  gap: 4px;
}

.settings-custom-ratio label span {
  color: var(--muted);
  font-size: 9px;
}

.settings-logo-preview {
  width: 72px;
  height: 72px;
  margin: 4px 0 8px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: white;
  object-fit: contain;
}

.app-logo {
  padding: 4px;
  object-fit: contain;
}

.settings-custom-ratio input {
  width: 100%;
  height: 42px;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: var(--card);
}

.switch-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 48px;
  gap: 12px;
  align-items: center;
  min-height: 66px;
  border-bottom: 1px solid var(--border);
}

.switch-row span,
.switch-row small {
  display: block;
}

.switch-row strong {
  font-size: 13px;
}

.switch-row small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
}

.switch-row input {
  width: 24px;
  height: 24px;
  justify-self: end;
  accent-color: var(--brand);
}

.admin-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
  padding: 15px 17px;
  color: var(--ink);
  text-decoration: none;
}

.admin-link span,
.admin-link small {
  display: block;
}

.admin-link small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
}

.add-user-panel summary {
  min-height: 48px;
  font-size: 14px;
  font-weight: 750;
  list-style: none;
}

.add-user-panel summary::-webkit-details-marker {
  display: none;
}

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

.user-card {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 11px;
  align-items: center;
  padding: 13px;
}

.user-avatar {
  display: grid;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  background: rgb(37 99 235 / 10%);
  color: var(--brand);
  font-weight: 800;
  place-items: center;
}

.user-card strong,
.user-card small,
.user-card span {
  display: block;
}

.user-card strong {
  font-size: 13px;
}

.user-card small {
  margin-top: 2px;
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  text-overflow: ellipsis;
}

.user-card span {
  margin-top: 5px;
  color: var(--brand);
  font-size: 9px;
  font-weight: 750;
}

.status-toggle {
  min-width: 68px;
  min-height: 40px;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: var(--muted-surface);
  color: var(--muted);
  font-size: 10px;
  font-weight: 750;
}

.status-toggle.is-active {
  border-color: rgb(22 163 74 / 20%);
  background: rgb(22 163 74 / 8%);
  color: var(--success);
}

.edit-report-page {
  display: grid;
  gap: 16px;
}

.edit-category-heading {
  display: grid;
  gap: 4px;
  margin-top: 24px;
}

.edit-category-heading small {
  color: var(--muted);
  font-size: 9px;
}

.edit-category-list {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

.edit-category-row {
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: var(--muted-surface);
}

.delete-category-choice {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 11px;
  border: 1px solid rgb(220 38 38 / 18%);
  border-radius: 12px;
  background: rgb(220 38 38 / 5%);
  color: var(--danger);
}

.delete-category-choice input {
  width: 20px;
  height: 20px;
  margin: 1px 0 0;
  accent-color: var(--danger);
}

.delete-category-choice span,
.delete-category-choice small {
  display: block;
}

.delete-category-choice small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.45;
}

.edit-category-row .field:first-of-type {
  margin-top: 0;
}

.new-category-row {
  border-style: dashed;
  background: rgb(37 99 235 / 4%);
}

.danger-zone {
  padding: 18px;
  border-color: rgb(220 38 38 / 20%);
}

.danger-zone h2 {
  margin: 6px 0;
  font-size: 18px;
}

.danger-zone p {
  margin: 0 0 13px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.55;
}

.danger-zone summary {
  display: grid;
  min-height: 44px;
  border: 1px solid rgb(220 38 38 / 20%);
  border-radius: 11px;
  color: var(--danger);
  font-size: 11px;
  font-weight: 750;
  list-style: none;
  place-items: center;
}

.danger-zone details form {
  display: grid;
  gap: 11px;
  margin-top: 10px;
  padding: 13px;
  border-radius: 12px;
  background: rgb(220 38 38 / 6%);
}

.danger-zone details strong {
  font-size: 11px;
}

.danger-zone details button {
  min-height: 44px;
  border: 0;
  border-radius: 11px;
  background: var(--danger);
  color: white;
  font-size: 11px;
  font-weight: 750;
}

.figure-label-fields {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

.update-version-card h2 {
  font-size: 32px;
}

.update-check-list {
  display: grid;
  margin-top: 12px;
}

.update-check-list > div {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 52px;
  border-bottom: 1px solid var(--border);
}

.update-check-list > div:last-child {
  border-bottom: 0;
}

.update-check-list span {
  display: grid;
  width: 28px;
  height: 28px;
  border-radius: 9px;
  font-weight: 800;
  place-items: center;
}

.update-check-list span.ready {
  background: rgb(22 163 74 / 9%);
  color: var(--success);
}

.update-check-list span.blocked {
  background: rgb(245 158 11 / 11%);
  color: #b45309;
}

.update-check-list strong {
  font-size: 12px;
}

.update-check-list small {
  color: var(--muted);
  font-size: 9px;
}

.paper-photo-grid figure {
  margin: 0;
}

.paper-image-frame {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 0;
  background: transparent;
}

.paper-photo-grid img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.paper-photo-grid figcaption {
  margin-top: 4px;
  font-size: clamp(5px, 1.4vw, 9px);
  text-align: center;
}

.paper-empty {
  grid-column: 1 / -1;
  padding: 70px 10px;
  color: var(--muted);
  font-size: 10px;
  text-align: center;
}

.paper-footer {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px solid #d1d5db;
  color: #6b7280;
  font-size: clamp(5px, 1.4vw, 9px);
}

.export-sheet {
  position: fixed;
  z-index: 12;
  right: 0;
  bottom: 0;
  left: 0;
  max-height: 45vh;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  overflow-y: auto;
  border-top: 1px solid var(--border);
  border-radius: 22px 22px 0 0;
  background: rgb(255 255 255 / 96%);
  box-shadow: 0 -18px 42px -26px rgb(15 23 42 / 45%);
  backdrop-filter: blur(18px);
}

.export-sheet .alert {
  margin: 0 0 9px;
}

.export-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}

.export-actions form,
.export-actions .button {
  width: 100%;
}

.export-history {
  display: grid;
  gap: 6px;
  margin-top: 9px;
}

.export-history-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px;
}

.export-history a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 11px;
  color: var(--ink);
  font-size: 10px;
  text-decoration: none;
}

.export-history a small {
  color: var(--muted);
  font-size: 8px;
}

.export-history-row form {
  display: grid;
}

.export-history-row button {
  min-width: 62px;
  border: 1px solid rgb(37 99 235 / 20%);
  border-radius: 11px;
  background: rgb(37 99 235 / 7%);
  color: var(--brand);
  font-size: 9px;
  font-weight: 750;
}

.export-history strong {
  color: var(--brand);
}

.editor-body {
  overflow: hidden;
  background: #080d19;
  color: white;
}

.photo-editor {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  min-height: 100dvh;
  background:
    radial-gradient(circle at 50% 34%, rgb(37 99 235 / 13%), transparent 40%),
    #080d19;
}

.editor-header {
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 58px;
  gap: 10px;
  align-items: center;
  min-height: 72px;
  padding: 10px 14px;
  border-bottom: 1px solid rgb(255 255 255 / 10%);
  background: rgb(8 13 25 / 82%);
  backdrop-filter: blur(16px);
}

.editor-header span {
  color: #93c5fd;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.13em;
}

.editor-header h1 {
  margin: 4px 0 0;
  overflow: hidden;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.editor-icon-button {
  display: grid;
  min-width: 44px;
  height: 44px;
  padding: 0 8px;
  border: 1px solid rgb(255 255 255 / 13%);
  border-radius: 13px;
  background: rgb(255 255 255 / 7%);
  color: white;
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
  place-items: center;
}

.editor-canvas-section {
  position: relative;
  display: grid;
  min-height: 0;
  padding: 12px 16px;
  place-items: center;
}

.editor-hint {
  position: absolute;
  z-index: 3;
  top: 12px;
  padding: 6px 9px;
  border-radius: 999px;
  background: rgb(0 0 0 / 48%);
  color: #cbd5e1;
  font-size: 9px;
  backdrop-filter: blur(10px);
}

.editor-frame {
  position: relative;
  width: 100%;
  max-width: 620px;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 1px solid rgb(255 255 255 / 24%);
  background:
    linear-gradient(45deg, #111827 25%, transparent 25%),
    linear-gradient(-45deg, #111827 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #111827 75%),
    linear-gradient(-45deg, transparent 75%, #111827 75%),
    #1f2937;
  background-position: 0 0, 0 10px, 10px -10px, -10px 0;
  background-size: 20px 20px;
  box-shadow: 0 28px 60px -26px #000;
  touch-action: none;
}

.editor-frame img {
  width: 100%;
  height: 100%;
  user-select: none;
  object-fit: cover;
  transform-origin: center;
  will-change: transform;
}

.editor-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(to right, transparent 33.2%, rgb(255 255 255 / 22%) 33.3%, rgb(255 255 255 / 22%) 33.6%, transparent 33.7%, transparent 66.2%, rgb(255 255 255 / 22%) 66.3%, rgb(255 255 255 / 22%) 66.6%, transparent 66.7%),
    linear-gradient(to bottom, transparent 33.2%, rgb(255 255 255 / 22%) 33.3%, rgb(255 255 255 / 22%) 33.6%, transparent 33.7%, transparent 66.2%, rgb(255 255 255 / 22%) 66.3%, rgb(255 255 255 / 22%) 66.6%, transparent 66.7%);
}

.zoom-readout {
  position: absolute;
  right: 18px;
  bottom: 15px;
  padding: 5px 8px;
  border-radius: 999px;
  background: rgb(0 0 0 / 55%);
  color: #dbeafe;
  font-size: 10px;
  font-weight: 750;
}

.editor-controls {
  position: relative;
  z-index: 4;
  padding: 12px 14px calc(12px + env(safe-area-inset-bottom));
  border-top: 1px solid rgb(255 255 255 / 10%);
  border-radius: 22px 22px 0 0;
  background: rgb(15 23 42 / 96%);
  box-shadow: 0 -18px 48px -26px #000;
}

.frame-ratio-control {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: end;
  margin-bottom: 8px;
}

.frame-ratio-control label {
  display: grid;
  gap: 5px;
}

.frame-ratio-control label > span {
  color: #94a3b8;
  font-size: 9px;
  font-weight: 700;
}

.frame-ratio-control select,
.custom-ratio-fields input {
  height: 42px;
  border: 1px solid rgb(255 255 255 / 12%);
  border-radius: 11px;
  background: rgb(255 255 255 / 7%);
  color: white;
}

.frame-ratio-control select {
  width: 100%;
  padding: 0 11px;
}

.custom-ratio-fields {
  display: grid;
  grid-template-columns: 54px auto 54px;
  gap: 5px;
  align-items: center;
}

.custom-ratio-fields input {
  width: 54px;
  padding: 0 6px;
  text-align: center;
}

.editor-slider-row {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  gap: 8px;
  align-items: end;
}

.zoom-slider {
  display: grid;
  gap: 7px;
}

.rotation-slider {
  display: grid;
  gap: 4px;
  margin-top: 7px;
}

.rotation-slider span {
  display: flex;
  justify-content: space-between;
  color: #94a3b8;
  font-size: 9px;
  font-weight: 700;
}

.rotation-slider input {
  width: 100%;
  min-height: 36px;
  margin: 0;
  accent-color: #3b82f6;
}

.zoom-slider span {
  color: #94a3b8;
  font-size: 9px;
  font-weight: 700;
  text-align: center;
}

.zoom-slider input {
  width: 100%;
  height: 44px;
  margin: 0;
  accent-color: #3b82f6;
}

.editor-tool {
  display: grid;
  min-height: 50px;
  padding: 5px;
  border: 1px solid rgb(255 255 255 / 11%);
  border-radius: 13px;
  background: rgb(255 255 255 / 6%);
  color: white;
  place-items: center;
}

.editor-tool span {
  font-size: 20px;
}

.editor-tool small {
  color: #cbd5e1;
  font-size: 8px;
}

.compact-tool {
  width: 44px;
  min-height: 44px;
  font-size: 20px;
}

.editor-toolbar {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
  margin: 9px 0;
}

.editor-save {
  width: 100%;
  min-height: 50px;
  border: 0;
  background: white;
  color: var(--ink);
}

@media (min-width: 577px) {
  .install-shell {
    padding-top: 32px;
  }

  .install-step {
    padding: 28px;
  }

  .step small {
    font-size: 10px;
  }

  .dashboard-main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 28px 24px 40px;
  }

  .quick-create,
  .attention-card {
    grid-column: 1 / -1;
  }

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

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

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

@media (min-width: 992px) {
  .app-shell {
    padding-bottom: 30px;
  }

  .bottom-nav {
    right: auto;
    top: 0;
    width: 88px;
    grid-template-columns: 1fr;
    grid-template-rows: repeat(5, auto);
    align-content: center;
    padding: 20px 8px;
    border-top: 0;
    border-right: 1px solid var(--border);
  }

  .nav-fab {
    grid-row: 3;
    margin: 0 auto;
  }

  .more-menu-sheet {
    right: auto;
    bottom: 16px;
    left: 98px;
    width: 380px;
    transform: none;
  }

  .app-header,
  .dashboard-main {
    margin-left: 88px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
