﻿:root {
  color-scheme: light;
  --ink: #172026;
  --muted: #63707a;
  --line: #d9e0e4;
  --paper: #f5f7f8;
  --panel: #ffffff;
  --red: #d83b31;
  --amber: #c9860a;
  --teal: #0f7b72;
  --blue: #275f9f;
  --shadow: 0 14px 34px rgba(23, 32, 38, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  width: 100%;
  overflow-x: hidden;
  overscroll-behavior-x: none;
}

body {
  margin: 0;
  min-height: 100vh;
  width: 100%;
  overflow-x: hidden;
  overscroll-behavior-x: none;
  padding-top: calc(env(safe-area-inset-top) + 42px);
  padding-bottom: 22px;
  background: #ffffff;
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
}

.print-area {
  display: none;
}

.top-mini-links,
.shell,
.bottom-nav {
  transition: transform 220ms ease, filter 220ms ease;
}

@media print {
  @page {
    margin: 6mm;
  }

  html,
  body {
    width: auto !important;
    height: auto !important;
    min-height: 0 !important;
    overflow: visible !important;
  }

  body.printing {
    padding: 0 !important;
    margin: 0 !important;
    min-height: 0 !important;
    height: auto !important;
    background: #ffffff !important;
  }

  body.printing > :not(.print-area) {
    display: none !important;
  }

  body.printing .print-area {
    display: block !important;
    margin: 0;
    padding: 0;
    min-height: 0 !important;
    break-after: avoid;
    page-break-after: avoid;
    color: #1f2933;
    font-family: Arial, Helvetica, sans-serif;
  }

  .print-area h1 {
    margin: 0 0 9px;
    font-size: 17px;
    line-height: 1.15;
  }

  .print-area h2 {
    margin: 0 0 3px;
    font-size: 12px;
    line-height: 1.2;
  }

  .print-area img {
    display: block;
    max-width: 100%;
    max-height: 210px;
    margin: 0 0 10px;
    border-radius: 8px;
    object-fit: contain;
  }

  .print-area .note {
    font-size: 10px;
    line-height: 1.24;
    white-space: normal;
  }

  .print-area .task-item {
    break-inside: avoid;
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr);
    grid-template-areas:
      "image title"
      "image note";
    column-gap: 9px;
    row-gap: 1px;
    align-items: start;
    margin: 0 0 7px;
    padding: 0 0 7px;
    border-bottom: 1px solid #e5e7eb;
  }

  .print-area .task-item:last-of-type {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: 0;
    break-after: avoid;
    page-break-after: avoid;
  }

  .print-area .task-item h2 {
    grid-area: title;
  }

  .print-area .task-item img {
    grid-area: image;
    width: 76px;
    height: 56px;
    max-height: none;
    margin: 0;
    border-radius: 7px;
    object-fit: cover;
    background: #f4f6f7;
  }

  .print-area .task-item:not(:has(img)) {
    grid-template-columns: 1fr;
    grid-template-areas:
      "title"
      "note";
  }

  .print-area .task-item .note {
    grid-area: note;
  }

  .print-area .meta {
    display: none;
  }
}

body.task-drawer-open,
body.settings-drawer-open {
  overflow: hidden;
  touch-action: pan-y;
}

body.task-drawer-open .top-mini-links,
body.task-drawer-open .shell,
body.settings-drawer-open .top-mini-links,
body.settings-drawer-open .shell {
  transform: translateX(calc(-1 * min(76vw, 420px)));
}

body.task-drawer-open .bottom-nav,
body.settings-drawer-open .bottom-nav {
  transform: translateX(calc(-50% - min(76vw, 420px)));
}

body.task-drawer-open .shell,
body.task-drawer-open .bottom-nav,
body.settings-drawer-open .shell,
body.settings-drawer-open .bottom-nav {
  filter: saturate(0.92);
}

button,
select,
input {
  font: inherit;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 70px;
  padding: 10px 16px;
  background: #ffffff;
  border-bottom: 0;
}

.app-topbar {
  display: none;
}

.top-mini-links {
  position: fixed;
  top: max(6px, env(safe-area-inset-top));
  left: 8px;
  right: 8px;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0;
}

.top-icon-group {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 28px;
}

.top-icon {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 0;
  background: transparent;
  color: #7f8a94;
  cursor: pointer;
  text-decoration: none;
}

.top-icon::before {
  content: "";
  width: 20px;
  height: 20px;
  background: currentColor;
  -webkit-mask-position: center;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-size: 20px 20px;
  mask-position: center;
  mask-repeat: no-repeat;
  mask-size: 20px 20px;
}

.moon-icon::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20.5 14.5A8.5 8.5 0 0 1 9.5 3.5 7 7 0 1 0 20.5 14.5Z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20.5 14.5A8.5 8.5 0 0 1 9.5 3.5 7 7 0 1 0 20.5 14.5Z'/%3E%3C/svg%3E");
}

.admin-icon-button::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3Cpath d='M5.5 21a6.5 6.5 0 0 1 13 0'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3Cpath d='M5.5 21a6.5 6.5 0 0 1 13 0'/%3E%3C/svg%3E");
}

.menu-icon::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M4 7h16'/%3E%3Cpath d='M4 12h16'/%3E%3Cpath d='M4 17h16'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M4 7h16'/%3E%3Cpath d='M4 12h16'/%3E%3Cpath d='M4 17h16'/%3E%3C/svg%3E");
}

.download-icon {
  display: none;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-link {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  background: #f4f7f8;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--teal);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

.brand-title .subtitle {
  grid-column: 1 / -1;
}

.app-logo {
  width: 54px;
  height: 40px;
  object-fit: contain;
  object-position: left center;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  font-size: clamp(22px, 3vw, 32px);
  line-height: 1;
}

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

h2 {
  font-size: 16px;
}

.score-tile {
  width: 76px;
  min-width: 76px;
  padding: 8px 10px;
  border: 0;
  background: #edf7f5;
  border-radius: 999px;
}

.score-tile span {
  display: block;
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
}

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

.shell {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr) 330px;
  gap: 0;
  padding: 0 10px 10px;
}

.sidebar,
.fixlist {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.panel,
.fixlist {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.panel {
  padding: 12px 0;
  border-bottom: 1px solid #edf0f2;
}

.panel.compact {
  padding: 8px 0 10px;
}

.panel.compact h2 {
  margin-bottom: 6px;
  font-size: 17px;
  line-height: 1.1;
}

.setup-panel,
.photo-panel {
  border: 0;
  background: transparent;
}

.setup-panel summary,
.photo-panel summary {
  display: none;
}

.setup-panel .field {
  margin: 0 12px 10px;
}

.setup-panel .field span {
  display: none;
}

.setup-panel select {
  min-height: 52px;
  border: 1px solid #d8dcdf;
  border-radius: 999px;
  background: #eeeeef;
  color: #7c828a;
  font-size: 16px;
  font-weight: 800;
  text-align: center;
  text-align-last: center;
  box-shadow: inset 0 1px 2px rgba(23, 32, 38, 0.08);
}

.setup-panel .primary {
  display: none;
}

.sample-strip {
  display: block;
  padding-bottom: 10px;
  border-bottom: 0;
}

.sample-strip .sample-grid {
  margin: 0 0 8px;
}

.photo-strip-under {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 6px;
  width: auto;
  min-width: 0;
  max-width: none;
  margin: 0 10px 8px;
  padding: 4px;
  border-top: 0;
  border-radius: 18px;
  background: rgba(250, 251, 251, 0.86);
  box-shadow:
    inset 0 0 0 1px rgba(228, 233, 236, 0.58),
    0 8px 18px rgba(23, 32, 38, 0.045);
}

.photo-strip-under .sample-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 5px;
  margin: 0;
  min-width: 0;
  overflow: visible;
}

.photo-add-menu {
  position: relative;
}

.photo-add-button {
  display: grid;
  place-items: center;
  width: 34px;
  height: 38px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #1f2930;
  cursor: pointer;
  box-shadow: none;
}

.photo-add-button span {
  display: block;
  font-size: 30px;
  font-weight: 300;
  line-height: 1;
  transform: translateY(-1px);
}

.photo-add-menu summary {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid #dfe4e7;
  background: linear-gradient(180deg, #ffffff 0%, #f6f8f8 100%);
  color: #172026;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92), 0 8px 18px rgba(23, 32, 38, 0.08);
  list-style: none;
}

.photo-add-menu summary::-webkit-details-marker {
  display: none;
}

.photo-add-menu summary span {
  display: block;
  font-size: 28px;
  font-weight: 300;
  line-height: 1;
  transform: translateY(-1px);
}

.photo-add-sheet {
  position: absolute;
  right: 0;
  bottom: calc(100% + 8px);
  z-index: 20;
  display: grid;
  gap: 6px;
  min-width: 198px;
  padding: 10px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 48px rgba(23, 32, 38, 0.18);
  backdrop-filter: blur(18px);
}

.photo-strip-under .photo-add-sheet {
  right: auto;
  left: 0;
}

.header-photo-add-menu .photo-add-sheet {
  top: calc(100% + 8px);
  bottom: auto;
}

.photo-add-sheet label {
  display: grid;
  grid-template-columns: 34px 1fr;
  align-items: center;
  gap: 10px;
  min-height: 38px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 650;
  cursor: pointer;
}

.photo-add-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #f1f3f4;
}

.photo-add-icon::before {
  content: "";
  width: 19px;
  height: 19px;
  background: #172026;
  -webkit-mask-position: center;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-size: 19px 19px;
  mask-position: center;
  mask-repeat: no-repeat;
  mask-size: 19px 19px;
}

.camera-add-icon::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 8.5A2.5 2.5 0 0 1 6.5 6h1.7l1.2-2h5.2l1.2 2h1.7A2.5 2.5 0 0 1 20 8.5v8A2.5 2.5 0 0 1 17.5 19h-11A2.5 2.5 0 0 1 4 16.5v-8Z'/%3E%3Ccircle cx='12' cy='12.5' r='3.2'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 8.5A2.5 2.5 0 0 1 6.5 6h1.7l1.2-2h5.2l1.2 2h1.7A2.5 2.5 0 0 1 20 8.5v8A2.5 2.5 0 0 1 17.5 19h-11A2.5 2.5 0 0 1 4 16.5v-8Z'/%3E%3Ccircle cx='12' cy='12.5' r='3.2'/%3E%3C/svg%3E");
}

.library-add-icon::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='7' width='14' height='12' rx='2'/%3E%3Cpath d='M7 7V5a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2h-2'/%3E%3Cpath d='m6 16 3-3 2 2 2-3 3 4'/%3E%3Ccircle cx='8' cy='11' r='1'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='7' width='14' height='12' rx='2'/%3E%3Cpath d='M7 7V5a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2h-2'/%3E%3Cpath d='m6 16 3-3 2 2 2-3 3 4'/%3E%3Ccircle cx='8' cy='11' r='1'/%3E%3C/svg%3E");
}

.file-add-icon::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 20h16'/%3E%3Cpath d='M12 3v12'/%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 20h16'/%3E%3Cpath d='M12 3v12'/%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E");
}

.photo-strip-under .sample-button {
  flex: none;
  width: 100%;
  height: 42px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(23, 32, 38, 0.075);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.photo-strip-under .sample-button.active {
  outline: 0;
  box-shadow: 0 0 0 2px rgba(143, 152, 162, 0.68), 0 6px 14px rgba(23, 32, 38, 0.09);
  transform: translateY(-1px);
}

.photo-strip-under .sample-button span {
  display: none;
}

.scan-mode-toggle {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  width: min(264px, 42vw);
  min-width: 192px;
  margin: 0;
  padding: 2px;
  border: 0;
  border-radius: 999px;
  background: #eeeeef;
  box-shadow: inset 0 1px 2px rgba(23, 32, 38, 0.08);
}

.scan-mode-toggle button {
  min-height: 21px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #7b8188;
  font: inherit;
  font-size: 10px;
  font-weight: 800;
  cursor: pointer;
}

.scan-mode-toggle button.active {
  background: #ffffff;
  color: var(--ink);
  box-shadow: 0 3px 12px rgba(23, 32, 38, 0.12);
}

.compact-panel {
  padding: 0;
}

.compact-panel summary {
  min-height: 42px;
  padding: 11px 12px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 800;
  list-style: none;
}

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

.compact-panel summary::after {
  content: "+";
  float: right;
  color: var(--muted);
}

.compact-panel[open] summary::after {
  content: "-";
}

.compact-panel > :not(summary) {
  margin-left: 12px;
  margin-right: 12px;
}

.compact-panel > :last-child {
  margin-bottom: 12px;
}

.sample-grid {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  margin: 0 0 10px;
}

.sample-grid::-webkit-scrollbar {
  display: none;
}

.sample-button {
  position: relative;
  flex: 0 0 clamp(128px, 42vw, 220px);
  display: block;
  height: 82px;
  overflow: hidden;
  padding: 0;
  border: 0;
  background: #e8edf0;
  border-radius: 10px;
  cursor: pointer;
}

.sample-button.active {
  outline: 3px solid #8f98a2;
  outline-offset: 0;
}

.sample-button img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sample-button span {
  position: absolute;
  left: 6px;
  bottom: 6px;
  padding: 3px 6px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
}

.upload-zone {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  border: 1px dashed #b8c5cc;
  border-radius: 12px;
  color: var(--blue);
  cursor: pointer;
}

.photo-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.primary-upload {
  border-style: solid;
  border-color: var(--blue);
  background: #eef6ff;
  color: var(--ink);
  font-weight: 800;
}

.upload-icon {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--blue);
  color: #ffffff;
  font-weight: 800;
}

#photoInput,
#fileInput,
#cameraInput {
  display: none;
}

.field {
  display: grid;
  gap: 6px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
}

select {
  width: 100%;
  min-height: 38px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #ffffff;
  color: var(--ink);
}

.primary,
.ghost {
  min-height: 38px;
  border-radius: 10px;
  cursor: pointer;
}

.primary {
  width: 100%;
  margin-top: 12px;
  border: 0;
  background: var(--ink);
  color: #ffffff;
  font-weight: 800;
}

.ghost {
  padding: 0 13px;
  border: 0;
  background: #ffffff;
  color: var(--ink);
}

.fixlist .ghost {
  background: #f7f8f9;
  border-radius: 16px;
}

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

.compact-metrics {
  flex: 0 1 170px;
  min-width: 150px;
  max-width: 185px;
  gap: 0;
}

.metric-row {
  display: grid;
  gap: 1px;
  padding: 2px 6px;
  border: 0;
  border-right: 1px solid #edf0f2;
  border-radius: 0;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.1;
}

.compact-metrics .metric-row {
  padding: 2px 8px;
  font-size: 10px;
}

.compact-metrics .metric-row strong {
  font-size: 12px;
}

.metric-row:last-child {
  border-right: 0;
}

.metric-row strong {
  color: var(--ink);
  font-size: 12px;
}

.workspace {
  min-width: 0;
  padding-top: 10px;
  background: transparent;
  border: 0;
  border-radius: 0;
  overflow: hidden;
  box-shadow: none;
}

.scan-hero {
  display: grid;
  justify-items: center;
  gap: 4px;
  padding: 12px 12px 8px;
  text-align: center;
}

.scan-hero h2 {
  font-size: clamp(19px, 3vw, 28px);
  font-weight: 700;
  line-height: 1.08;
}

.scan-pill {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  width: min(620px, 100%);
  min-height: 58px;
  padding: 6px 8px;
  border: 1px solid #dfe5e8;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 8px 26px rgba(23, 32, 38, 0.08);
}

.scan-pill label {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 999px;
  color: var(--muted);
  cursor: pointer;
  font-weight: 800;
}

.attach-menu {
  position: relative;
}

.attach-menu summary {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 999px;
  color: var(--muted);
  cursor: pointer;
  font-weight: 800;
  list-style: none;
}

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

.attach-sheet {
  position: absolute;
  right: 0;
  top: calc(100% + 12px);
  z-index: 15;
  display: grid;
  gap: 12px;
  width: min(320px, calc(100vw - 34px));
  padding: 18px;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 48px rgba(23, 32, 38, 0.16);
  backdrop-filter: blur(18px);
}

.attach-sheet label {
  justify-content: flex-start;
  gap: 16px;
  min-height: 56px;
  padding: 0;
  color: var(--ink);
  font-size: 18px;
}

.attach-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #f1f3f4;
}

.attach-icon::before {
  content: "";
  width: 24px;
  height: 24px;
  background: #172026;
  -webkit-mask-position: center;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-size: 24px 24px;
  mask-position: center;
  mask-repeat: no-repeat;
  mask-size: 24px 24px;
}

.camera-icon::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 8.5A2.5 2.5 0 0 1 6.5 6h1.7l1.2-2h5.2l1.2 2h1.7A2.5 2.5 0 0 1 20 8.5v8A2.5 2.5 0 0 1 17.5 19h-11A2.5 2.5 0 0 1 4 16.5v-8Z'/%3E%3Ccircle cx='12' cy='12.5' r='3.2'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 8.5A2.5 2.5 0 0 1 6.5 6h1.7l1.2-2h5.2l1.2 2h1.7A2.5 2.5 0 0 1 20 8.5v8A2.5 2.5 0 0 1 17.5 19h-11A2.5 2.5 0 0 1 4 16.5v-8Z'/%3E%3Ccircle cx='12' cy='12.5' r='3.2'/%3E%3C/svg%3E");
}

.photos-icon::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='m7 15 3-3 2 2 3-4 3 5'/%3E%3Ccircle cx='8' cy='9' r='1.2'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='m7 15 3-3 2 2 3-4 3 5'/%3E%3Ccircle cx='8' cy='9' r='1.2'/%3E%3C/svg%3E");
}

.scan-pill label:first-child {
  justify-content: flex-start;
  color: var(--ink);
}

.pill-plus {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #f1f3f4;
  color: var(--ink);
  font-size: 22px;
}

.scan-hero {
  gap: 4px;
  padding: 8px 12px 2px;
}

.scan-hero p {
  color: var(--muted);
  font-size: 12px;
}

.task-entry-float {
  position: relative;
  z-index: 1;
  width: auto;
  margin: 0 10px 12px;
  padding: 2px 8px 5px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  transform: none;
  backdrop-filter: none;
}

.scan-helper {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.2;
  text-align: center;
}

.viewer-toolbar,
.fixlist-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 30px;
  padding: 5px 10px;
  border-bottom: 1px solid #edf0f2;
}

.viewer-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: 8px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.quick-task-bar {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto auto;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 39px;
  padding: 4px 4px 4px 14px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow:
    0 5px 14px rgba(23, 32, 38, 0.06),
    inset 0 0 0 1px rgba(223, 229, 232, 0.42);
  backdrop-filter: blur(18px);
}

.quick-task-icon::before,
.quick-task-media::before,
.quick-task-bar button[type="submit"]::before {
  content: "";
  display: block;
  width: 22px;
  height: 22px;
  background-color: #98a1aa;
  -webkit-mask-position: center;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-size: 22px 22px;
  mask-position: center;
  mask-repeat: no-repeat;
  mask-size: 22px 22px;
}

.quick-task-icon {
  display: grid;
  place-items: center;
  width: 25px;
  height: 33px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.quick-task-media {
  display: grid;
  place-items: center;
  width: 26px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
}

.quick-task-media::before {
  width: 18px;
  height: 18px;
  background-color: #98a1aa;
  -webkit-mask-size: 18px 18px;
  mask-size: 18px 18px;
}

.quick-camera::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 8.5A2.5 2.5 0 0 1 6.5 6h1.7l1.2-2h5.2l1.2 2h1.7A2.5 2.5 0 0 1 20 8.5v8A2.5 2.5 0 0 1 17.5 19h-11A2.5 2.5 0 0 1 4 16.5v-8Z'/%3E%3Ccircle cx='12' cy='12.5' r='3.2'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 8.5A2.5 2.5 0 0 1 6.5 6h1.7l1.2-2h5.2l1.2 2h1.7A2.5 2.5 0 0 1 20 8.5v8A2.5 2.5 0 0 1 17.5 19h-11A2.5 2.5 0 0 1 4 16.5v-8Z'/%3E%3Ccircle cx='12' cy='12.5' r='3.2'/%3E%3C/svg%3E");
}

.quick-photo::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='7' width='14' height='12' rx='2'/%3E%3Cpath d='M7 7V5a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2h-2'/%3E%3Cpath d='m6 16 3-3 2 2 2-3 3 4'/%3E%3Ccircle cx='8' cy='11' r='1'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='7' width='14' height='12' rx='2'/%3E%3Cpath d='M7 7V5a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2h-2'/%3E%3Cpath d='m6 16 3-3 2 2 2-3 3 4'/%3E%3Ccircle cx='8' cy='11' r='1'/%3E%3C/svg%3E");
}

.quick-task-icon::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 6h11'/%3E%3Cpath d='M8 12h8'/%3E%3Cpath d='M8 18h6'/%3E%3Cpath d='M3 6h.01'/%3E%3Cpath d='M3 12h.01'/%3E%3Cpath d='M3 18h.01'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 6h11'/%3E%3Cpath d='M8 12h8'/%3E%3Cpath d='M8 18h6'/%3E%3Cpath d='M3 6h.01'/%3E%3Cpath d='M3 12h.01'/%3E%3Cpath d='M3 18h.01'/%3E%3C/svg%3E");
}

.quick-task-icon.has-saved-tasks::before,
.task-list-plus-icon.has-saved-tasks::before,
.main-bottom-nav .bottom-nav-item.has-saved-tasks::before {
  background-color: var(--teal);
}

.quick-task-bar input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 17px;
}

.quick-task-bar input::placeholder {
  color: #a1a9b1;
}

.quick-task-bar button[type="submit"] {
  display: grid;
  place-items: center;
  width: 33px;
  height: 33px;
  border: 0;
  border-radius: 50%;
  background: #f2f6f5;
  cursor: pointer;
}

.quick-task-bar button[type="submit"]::before {
  width: 17px;
  height: 17px;
  background-color: #7d8790;
  -webkit-mask-size: 17px 17px;
  mask-size: 17px 17px;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 7v4a4 4 0 0 1-4 4H6'/%3E%3Cpath d='m10 11-4 4 4 4'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 7v4a4 4 0 0 1-4 4H6'/%3E%3Cpath d='m10 11-4 4 4 4'/%3E%3C/svg%3E");
}

.task-save-feedback {
  animation: task-save-feedback 520ms ease;
}

@keyframes task-save-feedback {
  0% {
    transform: translateX(0) scale(1);
  }
  18% {
    transform: translateX(-2px) scale(1.015);
  }
  36% {
    transform: translateX(2px) scale(1.018);
    box-shadow: 0 10px 26px rgba(15, 123, 114, 0.18), inset 0 0 0 2px rgba(15, 123, 114, 0.28);
  }
  56% {
    transform: translateX(-1px) scale(1.01);
  }
  100% {
    transform: translateX(0) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .task-save-feedback,
  .task-nav-just-saved,
  .has-saved-tasks {
    animation: none;
  }
}

.fixlist-head {
  min-height: 52px;
  padding: 8px 8px 6px;
  align-items: center;
}

.fixlist-summary {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.fixlist-head .eyebrow {
  margin: 0;
  font-size: 10px;
}

.task-list-topline {
  display: flex;
  align-items: baseline;
  gap: 5px;
  min-width: 0;
}

.fixlist-summary > .compact-metrics {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 0;
  white-space: nowrap;
}

.fixlist-summary > .compact-metrics .metric-row {
  padding: 0 10px 0 0;
  margin-right: 10px;
}

.fixlist-summary > .compact-metrics .metric-row span {
  font-size: 9px;
}

.fixlist-summary > .compact-metrics .metric-row strong {
  font-size: 12px;
}

.task-area-title {
  color: var(--ink);
  font-size: 10px;
  font-weight: 400;
  line-height: 1.05;
  text-transform: uppercase;
}

.task-title-separator {
  color: #98a1aa;
  font-size: 12px;
  font-weight: 700;
}

.fixlist-head h2 {
  font-size: 18px;
  line-height: 1.05;
}

.fixlist-head .ghost {
  min-height: 30px;
  padding: 0 11px;
  font-size: 13px;
}

.task-actions {
  display: flex;
  gap: 4px;
}

.task-actions .icon-action {
  display: inline-grid;
  place-items: center;
  width: 32px;
  min-height: 32px;
  padding: 0;
  border-radius: 50%;
}

.task-actions .icon-action::before {
  content: "";
  width: 18px;
  height: 18px;
  background: currentColor;
  -webkit-mask-position: center;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-size: 18px 18px;
  mask-position: center;
  mask-repeat: no-repeat;
  mask-size: 18px 18px;
}

.share-screen-icon::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 16V4'/%3E%3Cpath d='m7 9 5-5 5 5'/%3E%3Cpath d='M20 15v4a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2v-4'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 16V4'/%3E%3Cpath d='m7 9 5-5 5 5'/%3E%3Cpath d='M20 15v4a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2v-4'/%3E%3C/svg%3E");
}

.copy-task-icon::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='8' y='8' width='11' height='11' rx='2'/%3E%3Cpath d='M5 15H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v1'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='8' y='8' width='11' height='11' rx='2'/%3E%3Cpath d='M5 15H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v1'/%3E%3C/svg%3E");
}

.task-list-plus-icon::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 6h11'/%3E%3Cpath d='M8 12h11'/%3E%3Cpath d='M8 18h5'/%3E%3Cpath d='M3 6h.01'/%3E%3Cpath d='M3 12h.01'/%3E%3Cpath d='M3 18h.01'/%3E%3Cpath d='M18 15v6'/%3E%3Cpath d='M15 18h6'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 6h11'/%3E%3Cpath d='M8 12h11'/%3E%3Cpath d='M8 18h5'/%3E%3Cpath d='M3 6h.01'/%3E%3Cpath d='M3 12h.01'/%3E%3Cpath d='M3 18h.01'/%3E%3Cpath d='M18 15v6'/%3E%3Cpath d='M15 18h6'/%3E%3C/svg%3E");
}

.scan-title-block {
  min-width: 0;
  max-width: 150px;
  padding-left: 2px;
}

.viewer-toolbar p {
  color: var(--muted);
  font-size: 11px;
}

.viewer-toolbar strong {
  display: block;
  font-size: 14px;
  line-height: 1.15;
}

.scan-title-block strong {
  letter-spacing: -0.01em;
}

.scan-summary {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 8px;
  min-width: 0;
}

.fixlist-head .scan-summary {
  align-items: end;
}

.compact-metrics {
  display: grid;
  grid-template-columns: repeat(3, auto);
  flex: initial;
  gap: 0;
  min-width: 0;
  max-width: none;
  white-space: nowrap;
}

.metric-row {
  min-width: 0;
  padding: 4px 9px;
  border-left: 1px solid #e6ecef;
  border-right: 0;
  background: rgba(255, 255, 255, 0.58);
}

.metric-row:first-child {
  border-left: 0;
  border-radius: 12px 0 0 12px;
}

.metric-row:last-child {
  border-radius: 0 12px 12px 0;
}

.metric-row span {
  display: block;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.1;
}

.metric-row strong {
  font-size: 14px;
  line-height: 1.1;
}

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  color: var(--muted);
  font-size: 9px;
  white-space: nowrap;
}

.task-legend {
  margin-top: 3px;
}

.dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 3px;
  border-radius: 50%;
}

.critical {
  background: var(--red);
}

.warning {
  background: var(--amber);
}

.low {
  background: var(--teal);
}

.canvas-frame {
  position: relative;
  display: grid;
  place-items: center;
  height: clamp(295px, 41.8vw, 532px);
  min-height: 0;
  margin: 0 10px;
  padding: 0;
  background: #ffffff;
  overflow: hidden;
}

canvas {
  display: block;
  max-width: 100%;
  max-height: 100%;
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 10px 24px rgba(23, 32, 38, 0.09);
}

.fixlist {
  min-height: 0;
  margin: 0 10px;
  overflow: hidden;
  border-top: 1px solid #edf0f2;
}

#issueList {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  overflow: auto;
}

.issue-card {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: start;
  gap: 7px;
  padding: 7px 8px;
  border: 0;
  border-bottom: 1px solid #edf0f2;
  border-radius: 0;
  background: #ffffff;
}

.issue-card[data-level="critical"] {
  box-shadow: inset 4px 0 0 var(--red);
}

.issue-card[data-level="warning"] {
  box-shadow: inset 4px 0 0 var(--amber);
}

.issue-card[data-level="low"] {
  box-shadow: inset 4px 0 0 var(--teal);
}

.issue-badge {
  display: grid;
  justify-items: center;
  gap: 2px;
  margin-top: 1px;
}

.issue-number {
  display: grid;
  place-items: center;
  width: 23px;
  height: 23px;
  border-radius: 50%;
  background: #eef2f4;
  font-size: 11px;
  font-weight: 800;
}

.issue-badge small {
  color: #8d98a1;
  font-size: 7px;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
}

.issue-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 2px;
  font-weight: 800;
  font-size: 14px;
}

.issue-title-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
  flex: 0 0 auto;
}

.issue-feedback {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}

.issue-feedback-up {
  color: rgba(15, 123, 114, 0.58);
}

.issue-feedback-down {
  color: rgba(216, 59, 49, 0.58);
}

.issue-feedback::before {
  content: "";
  width: 14px;
  height: 14px;
  background: currentColor;
  -webkit-mask-position: center;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-size: 14px 14px;
  mask-position: center;
  mask-repeat: no-repeat;
  mask-size: 14px 14px;
}

.issue-feedback-up::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 10v11'/%3E%3Cpath d='M15 5.9 14 10h5.8a2 2 0 0 1 2 2.3l-1.4 7a2 2 0 0 1-2 1.7H7'/%3E%3Cpath d='M7 10H3v11h4'/%3E%3Cpath d='M15 5.9A2 2 0 0 0 11.2 5L7 10'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 10v11'/%3E%3Cpath d='M15 5.9 14 10h5.8a2 2 0 0 1 2 2.3l-1.4 7a2 2 0 0 1-2 1.7H7'/%3E%3Cpath d='M7 10H3v11h4'/%3E%3Cpath d='M15 5.9A2 2 0 0 0 11.2 5L7 10'/%3E%3C/svg%3E");
}

.issue-feedback-down::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M17 14V3'/%3E%3Cpath d='M9 18.1 10 14H4.2a2 2 0 0 1-2-2.3l1.4-7a2 2 0 0 1 2-1.7H17'/%3E%3Cpath d='M17 14h4V3h-4'/%3E%3Cpath d='M9 18.1A2 2 0 0 0 12.8 19L17 14'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M17 14V3'/%3E%3Cpath d='M9 18.1 10 14H4.2a2 2 0 0 1-2-2.3l1.4-7a2 2 0 0 1 2-1.7H17'/%3E%3Cpath d='M17 14h4V3h-4'/%3E%3Cpath d='M9 18.1A2 2 0 0 0 12.8 19L17 14'/%3E%3C/svg%3E");
}

.issue-feedback-up.selected,
.issue-feedback-up:hover {
  color: rgba(15, 123, 114, 0.86);
}

.issue-feedback-down:hover {
  color: rgba(216, 59, 49, 0.86);
}

.issue-photo-label {
  margin-bottom: 2px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}

.issue-card p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.25;
}

.fixlist-quick-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 10px 8px 12px;
}

.add-fix-button,
.save-to-task-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 10px 8px 12px;
  min-height: 38px;
  border: 1px dashed #cfd6da;
  border-radius: 999px;
  background: #f8fafb;
  color: #5d6872;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.fixlist-quick-actions .add-fix-button,
.fixlist-quick-actions .save-to-task-button {
  margin: 0;
}

.save-to-task-button {
  border-style: solid;
  border-color: #dbe5e3;
  background: #eef7f5;
  color: var(--teal);
}

.save-to-task-button.is-saved {
  background: var(--teal);
  color: #ffffff;
  border-color: var(--teal);
}

.add-fix-button::before,
.save-to-task-button::before {
  content: "+";
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  margin-right: 6px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #edf2f4;
  color: var(--teal);
}

.save-to-task-button::before {
  content: "";
  background: currentColor;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h11l5 5v11a2 2 0 0 1-2 2Z'/%3E%3Cpath d='M17 21v-8H7v8'/%3E%3Cpath d='M7 3v5h8'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h11l5 5v11a2 2 0 0 1-2 2Z'/%3E%3Cpath d='M17 21v-8H7v8'/%3E%3Cpath d='M7 3v5h8'/%3E%3C/svg%3E");
  -webkit-mask-position: center;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-size: 13px 13px;
  mask-position: center;
  mask-repeat: no-repeat;
  mask-size: 13px 13px;
}

.manual-issue-form {
  display: grid;
  gap: 7px;
  margin: 7px 6px 10px;
  padding: 9px;
  border: 1px solid #edf0f2;
  border-radius: 15px;
  background: #fbfcfc;
}

.manual-issue-form[hidden] {
  display: none;
}

.manual-issue-form label {
  display: grid;
  gap: 3px;
  color: var(--muted);
  font-size: 8px;
  font-weight: 760;
}

.manual-issue-form input,
.manual-issue-form textarea,
.manual-issue-form select {
  width: 100%;
  border: 1px solid #dfe4e7;
  border-radius: 11px;
  background: #ffffff;
  color: #303941;
  font: inherit;
  font-size: 16px;
  font-weight: 500;
  padding: 6px 8px;
  min-height: 31px;
  line-height: 1.2;
}

.manual-issue-form input::placeholder,
.manual-issue-form textarea::placeholder {
  color: #a8b0b7;
  font-weight: 560;
  font-size: 13px;
}

.manual-issue-form textarea {
  resize: vertical;
  min-height: 50px;
}

.manual-issue-actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 7px;
  align-items: center;
}

.manual-issue-actions .primary,
.manual-issue-actions .ghost {
  min-height: 31px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}

.manual-issue-actions .primary {
  margin-top: 0;
}

.manual-issue-actions .ghost {
  background: #f7f8f9;
  color: #55616b;
}

.task-modal,
.settings-modal {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(76vw, 420px);
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: #f7f7f8;
  color: #3b4650;
  box-shadow: -18px 0 38px rgba(23, 32, 38, 0.10);
  transform: translateX(100%);
  overscroll-behavior-x: contain;
  touch-action: pan-y;
  animation: task-drawer-in 220ms ease forwards;
}

.task-modal::backdrop,
.settings-modal::backdrop {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(1px);
}

@keyframes task-drawer-in {
  to {
    transform: translateX(0);
  }
}

.task-sheet {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: 14px;
  height: 100%;
  padding: 20px 12px 20px 16px;
  overflow: hidden;
  overscroll-behavior-x: contain;
  touch-action: pan-y;
  background: #f7f7f8;
}

.settings-sheet {
  display: grid;
  grid-template-rows: auto auto auto minmax(0, 1fr);
  gap: 20px;
  height: 100%;
  padding: 22px 14px 24px 18px;
  overflow: auto;
  background: #f7f7f8;
  overscroll-behavior-x: contain;
  touch-action: pan-y;
}

.settings-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.settings-title {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.settings-title h2 {
  margin: 0;
  color: #20272d;
  font-size: 25px;
  line-height: 1.05;
  font-weight: 760;
  letter-spacing: 0;
}

.settings-title-icon,
.settings-row-icon,
.settings-round::before,
.settings-chevron {
  display: inline-block;
  background: currentColor;
  -webkit-mask-position: center;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  mask-position: center;
  mask-repeat: no-repeat;
  mask-size: contain;
}

.settings-title-icon {
  width: 20px;
  height: 20px;
  color: #2f827a;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M12 12a5 5 0 1 0 0-10 5 5 0 0 0 0 10Zm-9 9a9 9 0 0 1 18 0H3Z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M12 12a5 5 0 1 0 0-10 5 5 0 0 0 0 10Zm-9 9a9 9 0 0 1 18 0H3Z'/%3E%3C/svg%3E");
}

.settings-head-actions {
  display: inline-flex;
  gap: 8px;
}

.settings-round {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: #f0f2f4;
  color: #7e8993;
  cursor: pointer;
}

.settings-round::before {
  content: "";
  width: 19px;
  height: 19px;
}

.settings-round.favorite {
  color: #e34d4d;
}

.settings-round.favorite::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='m12 21-1.45-1.32C5.4 15.01 2 11.92 2 8.15 2 5.06 4.42 2.75 7.5 2.75c1.74 0 3.41.81 4.5 2.07a6.03 6.03 0 0 1 4.5-2.07c3.08 0 5.5 2.31 5.5 5.4 0 3.77-3.4 6.86-8.55 11.53L12 21Z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='m12 21-1.45-1.32C5.4 15.01 2 11.92 2 8.15 2 5.06 4.42 2.75 7.5 2.75c1.74 0 3.41.81 4.5 2.07a6.03 6.03 0 0 1 4.5-2.07c3.08 0 5.5 2.31 5.5 5.4 0 3.77-3.4 6.86-8.55 11.53L12 21Z'/%3E%3C/svg%3E");
}

.settings-round.share::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='18' cy='5' r='3'/%3E%3Ccircle cx='6' cy='12' r='3'/%3E%3Ccircle cx='18' cy='19' r='3'/%3E%3Cpath d='m8.6 10.5 6.8-4M8.6 13.5l6.8 4'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='18' cy='5' r='3'/%3E%3Ccircle cx='6' cy='12' r='3'/%3E%3Ccircle cx='18' cy='19' r='3'/%3E%3Cpath d='m8.6 10.5 6.8-4M8.6 13.5l6.8 4'/%3E%3C/svg%3E");
}

.settings-round.close::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.3' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6 6 18'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.3' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6 6 18'/%3E%3C/svg%3E");
}

.settings-note {
  padding: 12px 13px;
  border: 1px solid #cfe8dc;
  border-radius: 18px;
  background: #f1fbf6;
  color: #2f7759;
  font-size: 13px;
  line-height: 1.38;
}

.settings-section-label {
  margin: 8px 0 -4px;
  color: #adb5bd;
  font-size: 16px;
  font-weight: 650;
}

.settings-list {
  display: grid;
}

.settings-row {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) 18px;
  gap: 14px;
  align-items: center;
  min-height: 72px;
  padding: 10px 0;
  border: 0;
  border-bottom: 1px solid #e8ecef;
  background: transparent;
  color: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.settings-row-icon {
  width: 24px;
  height: 24px;
  justify-self: center;
  color: #8a949e;
}

.settings-row strong {
  display: block;
  color: #4a5660;
  font-size: 19px;
  line-height: 1.15;
  font-weight: 730;
}

.settings-row small {
  display: block;
  margin-top: 3px;
  color: #a5adb4;
  font-size: 13px;
  line-height: 1.25;
}

.settings-chevron {
  width: 12px;
  height: 18px;
  color: #c9ced3;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 20' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m2 2 8 8-8 8'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 20' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m2 2 8 8-8 8'/%3E%3C/svg%3E");
}

.settings-row-icon.user {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3Cpath d='M5 21a7 7 0 0 1 14 0'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3Cpath d='M5 21a7 7 0 0 1 14 0'/%3E%3C/svg%3E");
}

.settings-row-icon.list {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M9 6h11M9 12h11M9 18h11'/%3E%3Cpath d='M4 6h.01M4 12h.01M4 18h.01'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M9 6h11M9 12h11M9 18h11'/%3E%3Cpath d='M4 6h.01M4 12h.01M4 18h.01'/%3E%3C/svg%3E");
}

.settings-row-icon.moon {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20.5 14.5A8.5 8.5 0 0 1 9.5 3.5 7 7 0 1 0 20.5 14.5Z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20.5 14.5A8.5 8.5 0 0 1 9.5 3.5 7 7 0 1 0 20.5 14.5Z'/%3E%3C/svg%3E");
}

.settings-row-icon.spark {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'%3E%3Cpath d='m12 2 1.8 5.2L19 9l-5.2 1.8L12 16l-1.8-5.2L5 9l5.2-1.8L12 2Z'/%3E%3Cpath d='m19 15 .9 2.6L22 18.5l-2.1.9L19 22l-.9-2.6-2.1-.9 2.1-.9.9-2.6Z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'%3E%3Cpath d='m12 2 1.8 5.2L19 9l-5.2 1.8L12 16l-1.8-5.2L5 9l5.2-1.8L12 2Z'/%3E%3Cpath d='m19 15 .9 2.6L22 18.5l-2.1.9L19 22l-.9-2.6-2.1-.9 2.1-.9.9-2.6Z'/%3E%3C/svg%3E");
}

.settings-row-icon.shield {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'%3E%3Cpath d='M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10Z'/%3E%3Cpath d='m9 12 2 2 4-5'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'%3E%3Cpath d='M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10Z'/%3E%3Cpath d='m9 12 2 2 4-5'/%3E%3C/svg%3E");
}

.task-sheet-head {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
}

.task-sheet-head h2 {
  font-size: 22px;
  line-height: 1.08;
  color: #20272d;
  font-weight: 700;
  letter-spacing: 0;
}

.task-sheet-head .eyebrow {
  color: #2f827a;
  font-weight: 760;
}

.icon-close {
  order: -1;
  width: auto;
  min-height: 32px;
  padding: 0 9px;
  border-radius: 999px;
  color: #68737d;
  font-size: 12px;
  font-weight: 650;
}

.task-draft {
  display: grid;
  gap: 10px;
  padding-bottom: 14px;
  border-bottom: 1px solid #edf0f2;
}

.task-draft[hidden] {
  display: none;
}

.task-draft img {
  width: 100%;
  max-height: 150px;
  object-fit: contain;
  border-radius: 14px;
  background: #ffffff;
}

.task-note-field {
  display: grid;
  gap: 5px;
  color: #78838d;
  font-size: 11px;
  font-weight: 680;
}

.task-note-field textarea {
  width: 100%;
  resize: vertical;
  padding: 10px;
  border: 0;
  border-bottom: 1px solid #edf0f2;
  border-radius: 0;
  background: #f7f7f8;
  color: #46515b;
  font: inherit;
  font-size: 16px;
  line-height: 1.3;
}

.task-note-field textarea[readonly] {
  color: #3f4a54;
  font-weight: 600;
  cursor: default;
}

.add-task-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  font-size: 15px;
}

.add-task-primary::before {
  content: "+";
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  font-size: 18px;
  line-height: 1;
}

.add-task-primary.is-editing::before {
  content: "";
  width: 8px;
  height: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.add-task-primary:disabled {
  opacity: 0.72;
  cursor: default;
}

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

.task-share-actions button {
  min-height: 34px;
  border: 1px solid #e1e6e9;
  border-radius: 999px;
  background: #ffffff;
  color: #66717b;
  font: inherit;
  font-size: 12px;
  font-weight: 760;
  cursor: pointer;
}

.saved-task-area {
  display: grid;
  gap: 8px;
  min-height: 0;
}

.saved-task-header {
  display: grid;
  gap: 7px;
}

.saved-task-area h3 {
  margin: 0;
  color: #7a858e;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.saved-share-actions {
  grid-template-columns: 1.25fr repeat(3, minmax(0, 0.82fr));
}

.saved-share-actions button {
  min-height: 30px;
  font-size: 11px;
}

#savedTaskList {
  display: grid;
  gap: 0;
  max-height: none;
  margin: 0;
  padding: 0;
  overflow: auto;
  list-style: none;
}

.saved-task-card {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 22px;
  gap: 7px;
  padding: 9px 0;
  border-bottom: 1px solid #edf0f2;
}

.saved-task-card.is-editing {
  grid-template-columns: 42px minmax(0, 1fr);
  padding: 10px 0;
}

.saved-task-card.is-editing .saved-task-actions {
  display: none;
}

.saved-task-card img {
  width: 42px;
  height: 38px;
  border-radius: 9px;
  object-fit: cover;
  background: #f3f5f6;
}

.saved-task-card strong {
  display: block;
  margin-bottom: 2px;
  color: #303941;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.15;
}

.saved-task-card p {
  color: #69747d;
  font-size: 11px;
  line-height: 1.32;
}

.saved-task-note-edit {
  width: 100%;
  min-height: 92px;
  resize: vertical;
  padding: 8px 9px;
  border: 1px solid #d9e3e8;
  border-radius: 12px;
  background: #ffffff;
  color: #4a5560;
  font: inherit;
  font-size: 16px;
  line-height: 1.3;
}

.saved-task-inline-actions {
  display: flex;
  gap: 6px;
  margin-top: 7px;
}

.saved-task-inline-actions button {
  min-height: 28px;
  padding: 0 12px;
  border: 1px solid #dde5e9;
  border-radius: 999px;
  background: #ffffff;
  color: #60707a;
  font: inherit;
  font-size: 11px;
  font-weight: 760;
  cursor: pointer;
}

.saved-task-inline-actions .saved-task-update {
  border-color: rgba(15, 123, 114, 0.20);
  background: #eef8f6;
  color: var(--teal);
}

.saved-task-actions {
  display: grid;
  gap: 3px;
  align-self: start;
}

.saved-task-actions button {
  display: grid;
  place-items: center;
  width: 22px;
  height: 24px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #98a1aa;
  cursor: pointer;
}

.saved-task-actions button::before {
  content: "";
  width: 14px;
  height: 14px;
  background: currentColor;
  -webkit-mask-position: center;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-size: 14px 14px;
  mask-position: center;
  mask-repeat: no-repeat;
  mask-size: 14px 14px;
}

.saved-task-share::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='18' cy='5' r='3'/%3E%3Ccircle cx='6' cy='12' r='3'/%3E%3Ccircle cx='18' cy='19' r='3'/%3E%3Cpath d='m8.6 10.5 6.8-4'/%3E%3Cpath d='m8.6 13.5 6.8 4'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='18' cy='5' r='3'/%3E%3Ccircle cx='6' cy='12' r='3'/%3E%3Ccircle cx='18' cy='19' r='3'/%3E%3Cpath d='m8.6 10.5 6.8-4'/%3E%3Cpath d='m8.6 13.5 6.8 4'/%3E%3C/svg%3E");
}

.saved-task-edit::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 20h9'/%3E%3Cpath d='M16.5 3.5a2.1 2.1 0 0 1 3 3L7 19l-4 1 1-4 12.5-12.5Z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 20h9'/%3E%3Cpath d='M16.5 3.5a2.1 2.1 0 0 1 3 3L7 19l-4 1 1-4 12.5-12.5Z'/%3E%3C/svg%3E");
}

.saved-task-delete::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 6h18'/%3E%3Cpath d='M8 6V4h8v2'/%3E%3Cpath d='M19 6l-1 14H6L5 6'/%3E%3Cpath d='M10 11v5'/%3E%3Cpath d='M14 11v5'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 6h18'/%3E%3Cpath d='M8 6V4h8v2'/%3E%3Cpath d='M19 6l-1 14H6L5 6'/%3E%3Cpath d='M10 11v5'/%3E%3Cpath d='M14 11v5'/%3E%3C/svg%3E");
}

.saved-task-delete {
  color: #b45a52;
}

.empty-state {
  padding: 16px;
  color: var(--muted);
  font-size: 14px;
}

.bottom-nav {
  position: fixed;
  left: 50%;
  bottom: max(10px, calc(env(safe-area-inset-bottom) + 4px));
  z-index: 20;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2px;
  width: min(430px, calc(100vw - 42px));
  min-height: 48px;
  padding: 4px 8px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 248, 250, 0.92));
  box-shadow:
    0 18px 38px rgba(23, 32, 38, 0.18),
    0 3px 8px rgba(23, 32, 38, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
  transform: translateX(-50%);
  backdrop-filter: blur(18px);
}

.legacy-nav {
  display: none !important;
}

.train-nav-item {
  display: none !important;
}

.bottom-nav-item {
  border: 0;
  background: transparent;
  font: inherit;
  display: grid;
  place-items: center;
  gap: 1px;
  min-height: 39px;
  border-radius: 999px;
  color: #a8aeb7;
  text-decoration: none;
  cursor: pointer;
}

.bottom-nav-item span {
  display: none;
}

.bottom-nav-item::before {
  content: "";
  display: block;
  width: 20px;
  height: 20px;
  background-color: #a8aeb7;
  -webkit-mask-position: center;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-size: 20px 20px;
  mask-position: center;
  mask-repeat: no-repeat;
  mask-size: 20px 20px;
}

.main-bottom-nav .bottom-nav-item:nth-child(1)::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 8.5A2.5 2.5 0 0 1 6.5 6h1.7l1.2-2h5.2l1.2 2h1.7A2.5 2.5 0 0 1 20 8.5v8A2.5 2.5 0 0 1 17.5 19h-11A2.5 2.5 0 0 1 4 16.5v-8Z'/%3E%3Ccircle cx='12' cy='12.5' r='3.2'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 8.5A2.5 2.5 0 0 1 6.5 6h1.7l1.2-2h5.2l1.2 2h1.7A2.5 2.5 0 0 1 20 8.5v8A2.5 2.5 0 0 1 17.5 19h-11A2.5 2.5 0 0 1 4 16.5v-8Z'/%3E%3Ccircle cx='12' cy='12.5' r='3.2'/%3E%3C/svg%3E");
}

.main-bottom-nav .bottom-nav-item:nth-child(2)::before,
.admin-bottom-nav .bottom-nav-item:nth-child(2)::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='7' width='14' height='12' rx='2'/%3E%3Cpath d='M7 7V5a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2h-2'/%3E%3Cpath d='m6 16 3-3 2 2 2-3 3 4'/%3E%3Ccircle cx='8' cy='11' r='1'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='7' width='14' height='12' rx='2'/%3E%3Cpath d='M7 7V5a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2h-2'/%3E%3Cpath d='m6 16 3-3 2 2 2-3 3 4'/%3E%3Ccircle cx='8' cy='11' r='1'/%3E%3C/svg%3E");
}

.main-bottom-nav .bottom-nav-item:nth-child(3)::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 6h11'/%3E%3Cpath d='M8 12h11'/%3E%3Cpath d='M8 18h5'/%3E%3Cpath d='M3 6h.01'/%3E%3Cpath d='M3 12h.01'/%3E%3Cpath d='M3 18h.01'/%3E%3Cpath d='M18 15v6'/%3E%3Cpath d='M15 18h6'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 6h11'/%3E%3Cpath d='M8 12h11'/%3E%3Cpath d='M8 18h5'/%3E%3Cpath d='M3 6h.01'/%3E%3Cpath d='M3 12h.01'/%3E%3Cpath d='M3 18h.01'/%3E%3Cpath d='M18 15v6'/%3E%3Cpath d='M15 18h6'/%3E%3C/svg%3E");
}

.task-nav-just-saved {
  animation: task-nav-just-saved 1200ms ease;
}

.has-saved-tasks {
  animation: task-nav-idle-pulse 8s ease-in-out infinite;
}

@keyframes task-nav-just-saved {
  0% {
    transform: scale(1);
    background: rgba(255, 255, 255, 0.78);
  }
  24% {
    transform: scale(1.16);
    background: rgba(15, 123, 114, 0.14);
    box-shadow: 0 0 0 7px rgba(15, 123, 114, 0.08);
  }
  48% {
    transform: scale(0.96);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes task-nav-idle-pulse {
  0%, 82%, 100% {
    transform: scale(1);
  }
  88% {
    transform: scale(1.06);
  }
  94% {
    transform: scale(1);
  }
}

.admin-bottom-nav .bottom-nav-item:nth-child(1)::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 10.5 12 3l9 7.5'/%3E%3Cpath d='M5 10v10h14V10'/%3E%3Cpath d='M9 20v-6h6v6'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 10.5 12 3l9 7.5'/%3E%3Cpath d='M5 10v10h14V10'/%3E%3Cpath d='M9 20v-6h6v6'/%3E%3C/svg%3E");
}

.admin-bottom-nav .bottom-nav-item:nth-child(3)::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l1.7 5.2L19 10l-5.3 1.8L12 17l-1.7-5.2L5 10l5.3-1.8L12 3Z'/%3E%3Cpath d='M19 15l.8 2.2L22 18l-2.2.8L19 21l-.8-2.2L16 18l2.2-.8L19 15Z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l1.7 5.2L19 10l-5.3 1.8L12 17l-1.7-5.2L5 10l5.3-1.8L12 3Z'/%3E%3Cpath d='M19 15l.8 2.2L22 18l-2.2.8L19 21l-.8-2.2L16 18l2.2-.8L19 15Z'/%3E%3C/svg%3E");
}

.bottom-nav-item small {
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
}

.bottom-nav-item.active {
  color: #7f8791;
  background: transparent;
}

@media (max-width: 1100px) {
  .shell {
    grid-template-columns: 250px minmax(0, 1fr);
  }

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

@media (max-width: 760px) {
  body {
    padding-top: calc(env(safe-area-inset-top) + 40px);
    padding-bottom: 72px;
  }

  .topbar {
    align-items: center;
    flex-direction: row;
    position: sticky;
    top: 0;
    z-index: 10;
    padding: 8px 10px;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(14px);
  }

  .app-topbar {
    display: none;
  }

  .brand-title {
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 8px;
  }

  .app-logo {
    width: 42px;
    height: 32px;
  }

  h1 {
    font-size: 20px;
  }

  .subtitle,
  .admin-link {
    display: none;
  }

  .top-actions {
    width: auto;
    justify-content: flex-end;
  }

  .score-tile {
    width: 66px;
    min-width: 66px;
    padding: 7px 9px;
  }

  .score-tile span {
    font-size: 19px;
  }

  .score-tile small {
    font-size: 10px;
  }

  .shell {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 0 4px;
  }

  .scan-mode-toggle {
    width: min(216px, 51vw);
    min-width: 165px;
  }

  .viewer-toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    gap: 8px;
  }

  .task-entry-float,
  .canvas-frame,
  .photo-strip-under,
  .fixlist {
    margin-left: 4px;
    margin-right: 4px;
  }

  .scan-title-block {
    max-width: none;
  }

  .scan-summary {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: flex-end;
    justify-content: flex-start;
    gap: 4px;
  }

  .metric-row {
    padding: 0 9px;
  }

  .sample-grid {
    margin-bottom: 8px;
  }

  .sample-button {
    flex-basis: 132px;
    height: 72px;
  }

  .photo-strip-under .sample-grid {
    gap: 4px;
  }

  .photo-tile-actions {
    grid-template-columns: repeat(3, 30px);
    gap: 3px;
  }

  .photo-tile-actions .bottom-nav-item {
    width: 30px;
    min-height: 30px;
  }

  .photo-strip-under .sample-button {
    flex-basis: auto;
    height: 36px;
    border-radius: 8px;
  }

  .photo-strip-under .sample-button span {
    font-size: 9px;
  }

  .panel {
    padding: 8px;
  }

  .panel.compact {
    padding: 6px;
  }

  .panel.compact h2 {
    margin-bottom: 5px;
    font-size: 15px;
  }

  .compact-panel {
    padding: 0;
  }

  .compact-panel summary {
    min-height: 38px;
    padding: 9px 10px;
  }

  .compact-panel > :not(summary) {
    margin-left: 10px;
    margin-right: 10px;
  }

  .setup-panel .field {
    margin: 0 0 8px;
  }

  .setup-panel select {
    min-height: 50px;
    font-size: 15px;
  }

  .fixlist-head {
    align-items: center;
    flex-direction: row;
    min-height: 48px;
    padding: 6px;
  }

  .viewer-toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    gap: 8px;
    min-height: 28px;
    padding: 0;
  }

  .compact-metrics {
    order: 0;
    flex: initial;
    max-width: none;
    min-width: 0;
  }

  .compact-metrics .metric-row {
    padding: 1px 4px;
    font-size: 8px;
  }

  .compact-metrics .metric-row strong {
    font-size: 10px;
  }

  .task-list-topline .compact-metrics .metric-row {
    padding: 0 7px;
    font-size: 9px;
  }

  .task-list-topline .compact-metrics .metric-row strong {
    font-size: 12px;
  }

  .fixlist-summary > .compact-metrics .metric-row {
    padding: 0 8px 0 0;
    margin-right: 8px;
  }

  .fixlist-summary > .compact-metrics .metric-row strong {
    font-size: 12px;
  }

  .viewer-toolbar p {
    font-size: 9px;
  }

  .viewer-toolbar strong {
    font-size: 15px;
  }

  .legend {
    gap: 4px;
    font-size: 8px;
  }

  .canvas-frame {
    height: clamp(266px, 68.4vw, 409px);
    min-height: 0;
    padding: 0;
    place-items: start center;
  }

  .scan-hero {
    gap: 3px;
    padding: 8px 10px 6px;
  }

  .scan-hero h2 {
    font-size: 20px;
  }

  .scan-hero p {
    font-size: 11px;
  }

  .issue-card {
    gap: 8px;
    padding: 9px;
  }

  #issueList {
    padding: 0;
  }

  .bottom-nav {
    left: 50%;
    width: min(430px, calc(100vw - 42px));
    min-height: 48px;
    padding: 4px 8px;
  }

  .bottom-nav-item {
    min-height: 39px;
  }

  .top-action-nav .bottom-nav-item {
    min-height: 34px;
  }

  .bottom-nav-item span {
    font-size: 25px;
  }

  .bottom-nav-item small {
    font-size: 10px;
  }

  .top-action-nav .bottom-nav-item small {
    font-size: 15px;
  }

}

