@font-face {
  font-family: 'Space Grotesk';
  src: url('assets/SpaceGrotesk.ttf') format('truetype');
  font-weight: 300 700;
  font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Sans';
  src: url('assets/IBMPlexSans.ttf') format('truetype');
  font-weight: 100 700;
  font-display: swap;
}
:root {
  --font: 'IBM Plex Sans', Arial, sans-serif;
  --heading: 'Space Grotesk', Arial, sans-serif;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font: 14px var(--font);
  line-height: 1.5;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a,
input,
textarea,
select {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
  transition:
    background 0.15s,
    color 0.15s,
    transform 0.15s;
}
button:active {
  transform: translateY(1px);
}
button:disabled {
  cursor: default;
  opacity: 0.5;
}
a {
  color: inherit;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}
[hidden] {
  display: none !important;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3,
.brand {
  font-family: var(--heading);
}
h2 {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.6px;
  line-height: 1.3;
}
h3 {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.3px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip {
  position: fixed;
  top: -100px;
  left: 20px;
  z-index: 9999;
  padding: 12px 18px;
  border-radius: var(--radius-md);
  background: var(--surface);
  color: var(--fg);
}
.skip:focus {
  top: 10px;
}
.brand {
  display: block;
  text-decoration: none;
  flex-shrink: 0;
  width: 188px;
  line-height: 0;
}
.brand img {
  display: block;
  width: 100%;
  height: auto;
}
.eyebrow {
  font-size: 11px;
  letter-spacing: 1.2px;
  font-weight: 600;
  color: var(--muted);
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  padding: 10px 20px;
  font-weight: 500;
  white-space: nowrap;
  min-height: 44px;
  text-decoration: none;
}
.primary,
.secondary {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}
.primary:hover,
.secondary:hover {
  opacity: 0.86;
}
.subtle {
  color: var(--ink);
  background: transparent;
  border-color: var(--line);
  font-size: 13px;
}
.subtle:hover {
  background: var(--soft);
  border-color: var(--line-3);
}
.icon-button {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  font-size: 25px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.icon-button:hover {
  background: var(--soft);
}
.login-page {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
}
.login-story {
  background: var(--side-bg);
  color: var(--side-fg);
  position: relative;
  overflow: hidden;
  padding: 46px 64px;
  min-height: 760px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.login-story .brand {
  width: 225px;
  position: relative;
  z-index: 1;
}
.story-copy {
  position: relative;
  z-index: 1;
  margin-top: 60px;
}
.story-copy .eyebrow {
  color: var(--side-mute);
}
.story-copy h1 {
  font-size: clamp(44px, 4.6vw, 72px);
  line-height: 1.08;
  letter-spacing: -3px;
  font-weight: 500;
  margin: 22px 0;
}
.story-copy p {
  color: var(--side-mute);
  font-size: 16px;
  line-height: 1.8;
}
.story-line {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  margin-top: 32px;
  font-size: 12px;
  color: var(--side-mute);
}
.login-story > small {
  position: relative;
  z-index: 1;
  font-size: 10px;
  letter-spacing: 1.2px;
  margin-top: 210px;
  color: var(--side-mute);
}
.story-map {
  position: absolute;
  width: 600px;
  height: 350px;
  bottom: 32px;
  right: -60px;
  transform: rotate(-22deg);
  opacity: 0.72;
  background:
    repeating-linear-gradient(0deg, transparent, transparent 65px, #ffffff15 66px, #ffffff15 67px),
    repeating-linear-gradient(90deg, transparent, transparent 95px, #ffffff15 96px, #ffffff15 97px);
}
.map-block {
  position: absolute;
  background: #ffffff05;
  border: 1px solid #ffffff17;
  border-radius: var(--radius-lg);
}
.map-block.a {
  width: 180px;
  height: 100px;
  top: 20px;
  left: 30px;
}
.map-block.b {
  width: 140px;
  height: 160px;
  top: 160px;
  left: 230px;
}
.map-block.c {
  width: 140px;
  height: 110px;
  top: 20px;
  left: 300px;
}
.map-route {
  position: absolute;
  width: 280px;
  height: 160px;
  left: 95px;
  top: 65px;
  border: 2px dashed #bdbdb5;
  background: #ffffff05;
  clip-path: polygon(0 0, 100% 10%, 80% 100%, 0 80%);
}
.map-dot {
  width: 14px;
  height: 14px;
  background: var(--side-fg);
  border: 3px solid var(--side-bg);
  border-radius: 50%;
  position: absolute;
  box-shadow: 0 0 0 6px #ffffff14;
}
.map-dot.one {
  left: 95px;
  top: 62px;
}
.map-dot.two {
  left: 360px;
  top: 79px;
}
.map-dot.three {
  left: 305px;
  top: 215px;
}
.map-note {
  position: absolute;
  background: var(--side-fg);
  color: var(--side-bg);
  font-size: 12px;
  padding: 12px 18px;
  border-radius: var(--radius-md);
  left: 90px;
  top: 200px;
  transform: rotate(22deg);
}
.login-content {
  display: grid;
  place-items: center;
  padding: 48px;
}
.login-card {
  max-width: 390px;
  width: 100%;
}
.login-logo {
  display: block;
  width: 170px;
  height: auto;
  margin: 0 0 36px;
}
.tag {
  display: inline-block;
  font-size: 10px;
  letter-spacing: 1.2px;
  font-weight: 600;
  color: var(--muted);
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}
.login-card h2 {
  font-size: 38px;
  letter-spacing: -1.5px;
  line-height: 1.15;
  margin: 20px 0 12px;
}
.login-card > p {
  color: var(--muted);
  margin-bottom: 26px;
  font-size: 15px;
}
.login-card > .button {
  width: 100%;
  justify-content: space-between;
  margin-top: 10px;
}
.login-card > .table-link {
  display: block;
  width: max-content;
  margin: 15px auto 0;
}
.login-card > small {
  display: block;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
  margin-top: 25px;
}
.demo-note {
  display: flex;
  gap: 12px;
  font-size: 12px;
  background: var(--soft);
  border: 1px solid var(--line);
  padding: 14px;
  margin: 18px 0 10px;
  border-radius: var(--radius-lg);
  color: var(--muted);
}
.demo-note strong {
  font-weight: 600;
  color: var(--ink);
}
.login-profiles {
  display: flex;
  gap: 8px;
  margin-top: 24px;
}
.login-profiles .button {
  width: auto;
  flex: 1;
  font-size: 13px;
  justify-content: center;
  background: var(--surface);
}
.workspace {
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr);
  min-height: 100vh;
}
.sidebar {
  background: var(--side-bg);
  color: var(--side-mute);
  padding: 28px 16px;
  position: fixed;
  inset: 0 auto 0 0;
  width: 232px;
  display: flex;
  flex-direction: column;
  z-index: 10;
}
.sidebar .brand {
  margin: 0 6px 46px;
}
.workspace-label {
  font-size: 10px;
  letter-spacing: 1px;
  color: var(--side-mute);
  margin: 0 12px 16px;
}
.nav-item {
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--side-mute);
  display: flex;
  align-items: center;
  text-align: left;
  padding: 12px;
  gap: 12px;
  border-radius: var(--radius-md);
  margin-bottom: 5px;
  font-size: 14px;
  font-weight: 400;
  min-height: 46px;
}
.nav-item > span:first-child {
  font-size: 20px;
  line-height: 1;
}
.nav-item.active {
  background: var(--side-line);
  color: var(--side-fg);
  font-weight: 600;
}
.nav-item:hover:not(.active) {
  background: var(--side-hover);
  color: var(--side-fg);
}
.nav-count {
  margin-left: auto;
  font-size: 11px;
  background: #0e0e0e0c;
  border: 1px solid #0e0e0e0f;
  border-radius: var(--radius-sm);
  padding: 0 7px;
}
.sidebar-bottom {
  margin-top: auto;
}
.help-box {
  border-top: 1px solid var(--side-line);
  padding: 22px 12px 0;
  margin-top: 40px;
}
.help-box > span {
  font-size: 10px;
  letter-spacing: 1px;
  color: var(--side-mute);
}
.help-box p {
  font-size: 14px;
  color: var(--side-fg);
  margin: 12px 0 17px;
  line-height: 1.7;
}
.help-box button {
  background: transparent;
  border: 1px solid var(--side-line);
  border-radius: var(--radius-md);
  color: var(--side-fg);
  font-size: 12px;
  padding: 9px 13px;
}
.help-box button:hover {
  background: var(--side-hover);
}
.sidebar-foot {
  font-size: 10px;
  color: var(--side-mute);
  margin: 24px 12px 0;
  display: flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}
.online-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  display: inline-block;
  flex-shrink: 0;
}
.content {
  grid-column: 2;
  min-width: 0;
}
.topbar {
  min-height: 72px;
  border-bottom: 1px solid var(--line);
  padding: 12px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 12px;
  color: var(--muted);
  background: var(--bg);
}
.topbar strong {
  font-weight: 500;
  color: var(--ink);
}
.breadcrumb {
  margin: 0 10px;
  color: var(--faint);
}
.account {
  display: flex;
  align-items: center;
  gap: 12px;
}
.local-badge {
  font-size: 9px;
  letter-spacing: 0.7px;
  border: 1px solid var(--line);
  color: var(--muted);
  border-radius: var(--radius-sm);
  padding: 3px 8px;
}
.avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--bg);
  display: grid;
  place-items: center;
  font-weight: 500;
}
.account .button {
  min-height: 36px;
  font-size: 12px;
  padding: 6px 13px;
}
main {
  max-width: 1640px;
  padding: 32px 40px 0;
  margin: auto;
}
.page-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 26px;
}
.page-heading .eyebrow {
  display: none;
}
.page-heading h1 {
  font-size: 32px;
  letter-spacing: -1.1px;
  line-height: 1.25;
  font-weight: 600;
  margin-bottom: 8px;
}
.page-heading p {
  color: var(--muted);
  font-size: 14px;
}
.page-heading .button {
  font-size: 14px;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.metric {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 20px;
  min-width: 0;
}
.metric > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
}
.metric-icon {
  font-size: 16px;
  color: var(--ink);
}
.metric > strong {
  font: 600 32px var(--heading);
  display: block;
  letter-spacing: -1px;
  line-height: 1.2;
  margin: 13px 0 8px;
}
.metric > small {
  display: block;
  font-size: 11px;
  color: var(--muted);
}
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 23px 24px;
  gap: 16px;
}
.section-heading h2 {
  font-size: 20px;
}
.section-heading p {
  font-size: 13px;
  color: var(--muted);
  margin-top: 5px;
}
.section-heading .button {
  font-size: 12px;
  min-height: 40px;
  padding: 8px 15px;
}
.orders-panel {
  scroll-margin-top: 20px;
  margin-bottom: 24px;
}
.count-badge {
  font: 500 11px var(--font);
  background: var(--soft);
  border: 1px solid var(--line);
  color: var(--muted);
  padding: 2px 8px;
  vertical-align: middle;
  margin-left: 6px;
  border-radius: var(--radius-sm);
}
.table-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px 20px;
  gap: 14px;
  flex-wrap: wrap;
}
.tabs {
  display: flex;
  gap: 20px;
  padding: 0;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--line);
}
.tab {
  border: 0;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  padding: 8px 2px;
  border-radius: 0;
  white-space: nowrap;
  min-height: 36px;
}
.tab.active {
  border-bottom-color: var(--ink);
  color: var(--ink);
  font-weight: 600;
}
.tab:hover:not(.active) {
  color: var(--ink);
}
.search-box {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  padding: 0 13px;
  gap: 8px;
  color: var(--muted);
  margin: 0;
  background: var(--surface);
  min-height: 38px;
  font-size: 17px;
  min-width: 0;
}
.search-box:focus-within {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}
.search-box input {
  border: 0 !important;
  padding: 8px 0 !important;
  font-size: 12px;
  width: 180px;
  min-height: 0 !important;
  background: transparent;
  border-radius: 0;
}
.search-box input:focus {
  outline: none;
}
.table-scroll {
  position: relative;
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  white-space: nowrap;
}
th {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.8px;
  color: var(--muted);
  background: var(--surface);
  padding: 14px 16px;
  border-block: 1px solid var(--line-2);
}
th:first-child,
td:first-child {
  padding-left: 24px;
}
th:last-child,
td:last-child {
  padding-right: 24px;
}
td {
  padding: 18px 16px;
  border-bottom: 1px solid var(--line-2);
  font-size: 13px;
}
tbody tr:hover {
  background: var(--hover);
}
.order-name {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 350px;
}
.order-glyph {
  width: 36px;
  height: 36px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  display: grid;
  place-items: center;
  color: var(--ink);
  font-size: 22px;
  flex-shrink: 0;
}
.order-name strong {
  display: block;
  font-size: 13px;
  max-width: 245px;
  white-space: normal;
  font-weight: 500;
  line-height: 1.4;
}
.order-name small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  margin-top: 5px;
}
.status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  background: transparent;
  border: 1px solid var(--line-3);
  color: var(--muted);
  white-space: nowrap;
  line-height: 1.5;
}
.status:before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}
.status.in_progress,
.status.uploaded {
  border-color: var(--ink);
  color: var(--ink);
}
.status.delivered,
.status.needs_review {
  background: var(--soft);
  border-color: var(--ink);
  color: var(--ink);
}
.status.completed,
.status.approved {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}
.status.cancelled,
.status.rejected,
.status.contested {
  border-style: dashed;
  color: var(--muted);
}
.progress-info {
  font-size: 11px;
  color: var(--muted);
  display: flex;
  gap: 4px;
  margin-bottom: 7px;
}
.progress-info strong {
  color: var(--ink);
  font-weight: 600;
}
.progress {
  width: 100px;
  height: 5px;
  background: var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.progress > i {
  display: block;
  height: 100%;
  background: var(--ink);
  border-radius: var(--radius-sm);
}
.order-date {
  font-size: 12px;
  color: var(--muted);
}
.table-link {
  border: 0;
  background: transparent;
  color: var(--brand);
  font-size: 12px;
  padding: 6px 8px;
  border-radius: var(--radius-md);
  text-decoration: none;
  display: inline-block;
}
.table-link:hover {
  background: var(--soft);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.table-footer {
  display: flex;
  justify-content: space-between;
  padding: 16px 24px;
  gap: 10px;
  color: var(--muted);
  font-size: 11px;
}
.map-section {
  margin-bottom: 24px;
}
.map-wrap {
  position: relative;
}
#map {
  height: 380px;
  background: var(--map-bg);
  z-index: 0;
}
.map-hint {
  position: absolute;
  z-index: 450;
  top: 16px;
  left: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 10px 15px;
  font-size: 11px;
  box-shadow: 0 3px 12px #00000006;
  max-width: calc(100% - 32px);
}
.map-legend {
  position: absolute;
  z-index: 450;
  bottom: 26px;
  right: 16px;
  display: flex;
  gap: 14px;
  background: var(--bg);
  border: 1px solid var(--line);
  padding: 8px 13px;
  border-radius: var(--radius-md);
  font-size: 10px;
  color: var(--muted);
}
.map-legend > span {
  display: flex;
  align-items: center;
  gap: 6px;
}
.map-legend i {
  width: 9px;
  height: 9px;
  background: var(--ink);
  border-radius: 50%;
  display: inline-block;
}
.map-legend i.photo-dot {
  background: var(--surface);
  border: 1.5px solid var(--ink);
}
.leaflet-tile-pane {
  filter: grayscale(1) contrast(0.92);
}
.leaflet-container {
  font-family: var(--font);
  font-size: 12px;
  background: var(--map-bg);
}
.leaflet-control-zoom {
  border: 1px solid var(--line) !important;
  box-shadow: 0 2px 8px #00000008 !important;
  border-radius: var(--radius-md) !important;
  overflow: hidden;
}
.leaflet-control-zoom a {
  color: var(--ink) !important;
  background: var(--bg) !important;
}
.leaflet-tooltip {
  font-family: var(--font);
  font-size: 11px;
  border-radius: var(--radius-lg);
  border-color: var(--line);
  box-shadow: 0 2px 6px #0001;
}
.leaflet-control-attribution {
  font-size: 9px !important;
  background: #f5f5f2cc !important;
}
.leaflet-popup-content-wrapper {
  border-radius: var(--radius-lg);
}
.page-footer {
  display: flex;
  justify-content: space-between;
  padding: 8px 0 28px;
  color: var(--muted);
  font-size: 11px;
  gap: 16px;
}
.page-footer > span:first-child {
  font-family: var(--heading);
  font-weight: 600;
  color: var(--ink);
  font-size: 14px;
}
.page-footer > span > span {
  font-family: var(--font);
  font-weight: 400;
  font-size: 11px;
  margin-left: 10px;
  color: var(--muted);
}
.empty {
  text-align: center;
  padding: 46px 20px;
  background: var(--sunk);
}
.empty > span {
  font-size: 36px;
  color: var(--ink);
}
.empty h3 {
  font-size: 20px;
  margin: 12px 0 8px;
}
.empty p {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 23px;
}
.empty .button {
  font-size: 13px;
}
label {
  font-size: 13px;
  font-weight: 500;
  display: block;
  margin: 18px 0 7px;
}
input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--line-3);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  background: var(--surface);
  color: var(--ink);
  min-height: 44px;
  min-width: 0;
}
input::placeholder,
textarea::placeholder {
  color: var(--faint);
  font-size: 13px;
}
textarea {
  resize: vertical;
  min-height: 86px;
}
.password-input {
  position: relative;
}
.password-input input {
  padding-right: 54px;
}
.password-input #toggle-password {
  position: absolute;
  right: 2px;
  top: 2px;
  bottom: 2px;
  width: 46px;
  min-height: 40px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: var(--radius-lg);
  background: transparent;
  color: var(--muted);
}
.password-input #toggle-password:hover {
  background: var(--soft);
}
.error {
  color: var(--bad);
  font-size: 13px;
  white-space: pre-line;
  margin: 14px 0;
}
.error:empty {
  display: none;
}
.error-banner {
  background: var(--bad-soft);
  color: var(--bad);
  border: 1px solid var(--bad);
  border-radius: var(--radius-lg);
  padding: 15px 18px;
  margin-bottom: 24px;
  font-size: 13px;
}
.toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  color: var(--bg);
  z-index: 3000;
  padding: 14px 24px;
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 30px #0002;
  font-size: 13px;
  max-width: 90vw;
}
.toast.failure {
  background: var(--bad-soft);
  color: var(--bad);
  border: 1px solid var(--bad);
}
dialog {
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  color: var(--ink);
  background: var(--bg);
  box-shadow: var(--shadow-lg);
  max-height: 94vh;
  max-height: 94dvh;
  max-width: calc(100vw - 40px);
  overflow: auto;
}
dialog::backdrop {
  background: var(--scrim);
  backdrop-filter: blur(4px);
}
.dialog-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 26px 32px;
  border-bottom: 1px solid var(--line);
}
.dialog-heading h2 {
  font-size: 30px;
  margin-top: 5px;
  line-height: 1.2;
  letter-spacing: -1px;
}
.dialog-heading p {
  font-size: 13px;
  color: var(--muted);
  margin-top: 8px;
}
.create-dialog {
  width: 1180px;
}
.create-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.15fr);
  align-items: start;
}
.create-fields {
  padding: 26px 32px 32px;
  border-right: 1px solid var(--line);
}
.form-section {
  padding-bottom: 24px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--line);
}
.form-section:last-of-type {
  padding-bottom: 0;
  margin-bottom: 24px;
  border-bottom: 0;
}
.step-label {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-bottom: 16px;
}
.step-label > span {
  width: 22px;
  height: 22px;
  background: var(--ink);
  color: var(--bg);
  font-size: 11px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.step-label strong {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}
.step-label p {
  font-size: 12px;
  color: var(--muted);
  margin-top: 5px;
}
.selection-modes {
  border: 0;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.selection-modes label {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  font-size: 12px;
  cursor: pointer;
  border: 1px solid var(--line-3);
  border-radius: var(--radius-md);
  padding: 9px 12px;
  min-height: 40px;
  background: transparent;
  font-weight: 400;
}
.selection-modes label:has(input:checked) {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}
.selection-modes input {
  width: 14px;
  height: 14px;
  min-height: 0;
  margin: 0;
  accent-color: var(--ink);
}
.selection-modes label:has(input:checked) input {
  accent-color: var(--bg);
}
.shapefile-fields {
  background: var(--surface);
  border: 1px dashed var(--line-3);
  border-radius: var(--radius-lg);
  padding: 15px;
  margin-top: 16px;
}
.shapefile-fields label {
  margin-top: 0;
}
.shapefile-fields input {
  width: 100%;
  font-size: 12px;
  padding: 8px;
  border: 0;
  background: var(--soft);
}
.shapefile-fields input::file-selector-button {
  background: var(--surface);
  color: var(--fg);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 6px 8px;
  font: inherit;
  cursor: pointer;
  margin-right: 8px;
}
.shapefile-fields small,
#target-help {
  display: block;
  font-size: 11px;
  line-height: 1.7;
  color: var(--muted);
  margin: 10px 0 12px;
}
.shapefile-fields .button {
  font-size: 12px;
  max-width: 100%;
  white-space: normal;
  width: 100%;
}
.shapefile-fields .draw-status {
  margin-bottom: 0;
  overflow-wrap: anywhere;
}
.optional {
  font-size: 11px;
  font-weight: 400;
  color: var(--muted);
  float: right;
}
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.create-fields > .button {
  width: 100%;
  justify-content: space-between;
  font-size: 14px;
}
.form-note {
  font-size: 11px;
  display: block;
  text-align: center;
  color: var(--muted);
  margin-top: 12px;
}
.create-map-column {
  padding: 26px 28px 28px;
  position: sticky;
  top: 0;
  min-width: 0;
}
.map-column-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.map-column-heading h3 {
  font-size: 20px;
  margin-top: 5px;
}
.map-coordinate-icon {
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 24px;
  background: var(--surface);
}
#draw-map {
  height: 390px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  cursor: crosshair;
  z-index: 0;
}
.draw-toolbar {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.draw-toolbar button {
  font-size: 11px;
  padding: 7px 11px;
  min-height: 36px;
  background: var(--surface);
  color: var(--fg);
}
.draw-status {
  font-size: 12px;
  font-weight: 500;
  margin: 16px 0 8px;
  line-height: 1.6;
}
.create-map-column > small {
  font-size: 11px;
  line-height: 1.7;
  color: var(--muted);
  display: block;
}
.vertex-icon {
  background: white;
  color: var(--ink);
  border: 2px solid var(--ink);
  border-radius: 50%;
  text-align: center;
  font-size: 10px;
  line-height: 18px;
  box-shadow: 0 1px 4px #0002;
}
.estimate {
  padding: 22px;
  background: var(--ink);
  color: var(--bg);
  border-radius: var(--radius-lg);
  margin: 22px 0 0;
}
.estimate > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
}
.estimate strong {
  font: 500 25px var(--heading);
  letter-spacing: -0.5px;
  white-space: nowrap;
}
.estimate small {
  font-size: 11px;
  color: var(--inv-mute);
  display: block;
  margin-top: 12px;
  line-height: 1.7;
}
.detail-dialog {
  width: 960px;
}
#detail-content {
  padding: 26px 32px 32px;
}
.detail-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  padding: 24px 0;
}
.detail-meta small {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 5px;
}
.detail-meta strong {
  font-size: 14px;
  font-weight: 500;
}
.detail-instructions {
  font-size: 13px;
  padding: 17px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  white-space: pre-wrap;
  margin: 0 0 22px;
  line-height: 1.7;
}
.detail-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.detail-actions .button {
  font-size: 12px;
}
.photos-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin: 22px 0 16px;
  flex-wrap: wrap;
}
.photos-heading h3 {
  font-size: 20px;
}
.photos-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.photo-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
}
.photo-image {
  display: block;
  background: var(--map-bg);
  height: 230px;
  width: 100%;
  object-fit: cover;
}
.photo-info {
  padding: 17px;
}
.photo-info p {
  font-size: 12px;
  color: var(--muted);
  margin-top: 10px;
  white-space: pre-wrap;
  line-height: 1.7;
  overflow-wrap: anywhere;
}
.photo-info a {
  font-size: 12px;
  color: var(--brand);
  text-underline-offset: 3px;
}
.photo-tags {
  margin: 12px 0;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.photo-tags > span {
  background: var(--soft);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 10px;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
}
.photo-tags > span.high {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}
.photo-tags > span.low {
  background: var(--surface);
  color: var(--muted);
}
.photo-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
  flex-wrap: wrap;
}
.photo-actions button {
  font-size: 11px;
  border: 1px solid var(--line-3);
  background: var(--surface);
  border-radius: var(--radius-md);
  color: var(--ink);
  padding: 7px 12px;
  min-height: 34px;
}
.photo-actions button:hover {
  background: var(--soft);
}
.no-photos {
  padding: 32px 20px;
  text-align: center;
  background: var(--surface);
  border: 1px dashed var(--line);
  border-radius: var(--radius-lg);
  color: var(--muted);
  font-size: 13px;
}
.point-explorer {
  margin: 24px 0;
  border-top: 1px solid var(--line);
}
#detail-map {
  height: 380px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  z-index: 0;
}
.point-help {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 16px;
}
.point-legend {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin: 0 0 14px;
  font-size: 11px;
  color: var(--muted);
}
.point-legend > span {
  display: flex;
  align-items: center;
  gap: 7px;
}
.point-legend i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--ink);
  border: 1.5px solid var(--ink);
  display: inline-block;
}
.point-legend i.pending {
  background: var(--surface);
}
.point-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px;
}
.point-controls label {
  flex: 1;
  min-width: 180px;
  margin: 0;
}
.point-controls select {
  display: block;
  width: 100%;
  max-width: 100%;
  min-height: 44px;
  font-size: 12px;
  margin-top: 6px;
}
.point-pages {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.point-pages .button {
  font-size: 11px;
  padding: 9px 13px;
}
.point-coordinates {
  font-size: 12px;
  color: var(--muted);
  margin: 20px 0 12px;
}
.point-properties {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 15px 18px;
  font-size: 12px;
  background: var(--surface);
}
.point-properties summary {
  cursor: pointer;
  color: var(--ink);
  font-weight: 500;
}
.point-properties dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.point-properties dt {
  color: var(--muted);
  font-size: 10px;
}
.point-properties dd {
  margin: 4px 0 0;
  overflow-wrap: anywhere;
}
#gallery-title {
  overflow-wrap: anywhere;
}
.action-dialog {
  width: 460px;
  padding: 30px;
  background: var(--surface);
}
.action-dialog h2 {
  font-size: 25px;
}
.action-dialog p {
  font-size: 14px;
  color: var(--muted);
  margin: 16px 0;
  line-height: 1.7;
}
.action-dialog .error {
  color: var(--bad);
}
.action-buttons {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 24px;
}
.action-buttons .button {
  font-size: 13px;
}
.tenant-filter {
  margin: 0;
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 12px;
  color: var(--muted);
}
.tenant-filter select {
  font-size: 12px;
  min-height: 38px;
  padding: 7px 10px;
  max-width: 220px;
  border-radius: var(--radius-md);
}
.admin-panel {
  margin-top: 24px;
  margin-bottom: 24px;
  scroll-margin-top: 20px;
}
.admin-panel .error-banner {
  margin: 0 24px 20px;
}
.admin-tab-content {
  padding: 0 24px 24px;
}
.admin-tab-content .table-scroll {
  margin: 0 -24px;
}
.admin-search {
  max-width: 340px;
  margin-bottom: 20px;
}
.admin-search input {
  width: 100%;
}
.review-item {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 16px;
  background: var(--bg);
}
.review-heading {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 12px;
  align-items: center;
  margin-bottom: 14px;
}
.review-heading strong {
  font-family: var(--heading);
  font-size: 16px;
  font-weight: 500;
  width: 100%;
}
.review-heading small {
  font-size: 12px;
  color: var(--muted);
}
.review-heading .table-link {
  margin-left: auto;
}
.review-actions {
  display: flex;
  gap: 8px;
  margin: 14px 0 0;
}
.review-actions .button {
  font-size: 12px;
  flex: 1;
}
@media (min-width: 1600px) {
  #map {
    height: 440px;
  }
  .metric {
    padding: 22px 24px;
  }
}
@media (max-width: 1200px) {
  .workspace {
    grid-template-columns: 210px minmax(0, 1fr);
  }
  .sidebar {
    width: 210px;
    padding: 28px 14px;
  }
  .sidebar .brand {
    width: 173px;
  }
  .workspace-label {
    font-size: 9px;
  }
  .nav-item {
    font-size: 13px;
  }
  .sidebar-foot {
    font-size: 9px;
  }
  main {
    padding: 28px 28px 0;
  }
  .topbar {
    padding: 12px 28px;
  }
  .metric {
    padding: 16px;
  }
  .metric > div {
    font-size: 11px;
  }
  .metric > small {
    font-size: 10px;
  }
  .login-story {
    padding: 44px;
  }
  .story-line {
    gap: 12px;
  }
  .create-fields {
    padding: 24px;
  }
  .create-map-column {
    padding: 24px;
  }
  .selection-modes label {
    font-size: 11px;
  }
}
@media (max-width: 900px) {
  .workspace {
    grid-template-columns: minmax(0, 1fr);
  }
  .sidebar {
    position: static;
    width: auto;
    padding: 16px 24px;
    flex-direction: row;
    align-items: center;
    gap: 24px;
  }
  .sidebar .brand {
    margin: 0;
    width: 158px;
  }
  .workspace-label,
  .sidebar-bottom {
    display: none;
  }
  .sidebar nav {
    display: flex;
    gap: 4px;
    margin-left: auto;
    flex-wrap: wrap;
    justify-content: flex-end;
  }
  .nav-item {
    margin: 0;
    width: auto;
    font-size: 12px;
    white-space: nowrap;
    padding: 9px 12px;
    gap: 7px;
    min-height: 40px;
  }
  .nav-item > span:first-child {
    font-size: 17px;
  }
  .nav-count {
    display: none;
  }
  .content {
    grid-column: 1;
  }
  .topbar {
    min-height: 62px;
  }
  .account {
    gap: 8px;
  }
  .metrics {
    gap: 12px;
  }
  .login-story {
    padding: 35px;
    min-height: 760px;
  }
  .story-copy h1 {
    font-size: 50px;
  }
  .story-copy p {
    font-size: 14px;
  }
  .story-line {
    flex-direction: column;
  }
  .login-content {
    padding: 32px;
  }
  .login-card h2 {
    font-size: 34px;
  }
  .login-page {
    grid-template-columns: 0.9fr 1fr;
  }
  .create-layout {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  }
  .create-fields,
  .create-map-column {
    padding: 22px;
  }
  .create-fields {
    border-right: 1px solid var(--line);
  }
  #draw-map {
    height: 350px;
  }
  .estimate > div {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }
  .field-row {
    gap: 10px;
  }
  .dialog-heading {
    padding: 24px;
  }
  .selection-modes {
    flex-direction: column;
    align-items: stretch;
  }
  .selection-modes label {
    font-size: 12px;
  }
}
@media (max-width: 650px) {
  .sidebar {
    gap: 14px;
    padding: 16px;
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .sidebar .brand {
    width: 155px;
  }
  .sidebar nav {
    margin-left: 0;
    width: 100%;
    justify-content: flex-start;
    gap: 5px;
  }
  .nav-item {
    font-size: 12px;
    padding: 8px 12px;
    min-height: 38px;
  }
  .nav-item > span:first-child {
    display: none;
  }
  .topbar {
    padding: 10px 16px;
    font-size: 11px;
    min-height: 60px;
  }
  .topbar > span {
    max-width: 48%;
    line-height: 1.6;
  }
  .breadcrumb {
    margin: 0 5px;
  }
  .account #account-name {
    display: none;
  }
  .account {
    gap: 7px;
  }
  .local-badge {
    font-size: 8px;
    padding: 3px 6px;
  }
  .avatar {
    width: 28px;
    height: 28px;
    font-size: 12px;
  }
  .account .button {
    font-size: 11px;
    padding: 6px 10px;
    min-height: 34px;
  }
  main {
    padding: 26px 16px 0;
  }
  .page-heading {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 18px;
    margin-bottom: 22px;
  }
  .page-heading h1 {
    font-size: 30px;
  }
  .page-heading p {
    font-size: 13px;
    max-width: 320px;
    line-height: 1.7;
  }
  .page-heading .button {
    font-size: 13px;
    min-height: 42px;
  }
  .metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 20px;
  }
  .metric {
    padding: 16px;
    border-radius: var(--radius-lg);
  }
  .metric > div {
    font-size: 11px;
    gap: 4px;
    align-items: flex-start;
  }
  .metric-icon {
    font-size: 14px;
  }
  .metric > strong {
    font-size: 28px;
    margin: 12px 0 6px;
  }
  .metric > small {
    font-size: 10px;
    line-height: 1.5;
  }
  .panel {
    border-radius: var(--radius-lg);
  }
  .section-heading {
    padding: 20px 16px;
    flex-wrap: wrap;
    gap: 12px;
  }
  .section-heading h2 {
    font-size: 20px;
  }
  .section-heading p {
    font-size: 12px;
  }
  .section-heading .button {
    font-size: 11px;
    min-height: 36px;
    padding: 8px 12px;
  }
  #map {
    height: 330px;
  }
  .map-hint {
    top: 12px;
    left: 10px;
    font-size: 10px;
    padding: 9px 12px;
    max-width: calc(100% - 20px);
    border-radius: var(--radius-lg);
  }
  .map-legend {
    font-size: 9px;
    padding: 7px 10px;
    gap: 10px;
    right: 10px;
    bottom: 26px;
  }
  .table-tools {
    padding: 0 16px 16px;
    gap: 12px;
  }
  .tabs {
    width: 100%;
    gap: 14px;
    justify-content: flex-start;
  }
  .tab {
    padding: 7px 2px;
    font-size: 11px;
    min-height: 34px;
  }
  .search-box {
    width: 100%;
  }
  .search-box input {
    width: 100%;
  }
  th:first-child,
  td:first-child {
    padding-left: 16px;
  }
  th:last-child,
  td:last-child {
    padding-right: 16px;
  }
  .table-footer {
    padding: 14px 16px;
    flex-direction: column;
    gap: 5px;
    font-size: 10px;
  }
  .orders-panel,
  .map-section {
    margin-bottom: 20px;
  }
  .page-footer > span > span {
    display: none;
  }
  .page-footer {
    font-size: 10px;
    padding: 4px 0 24px;
  }
  .login-page {
    grid-template-columns: 1fr;
  }
  .login-story {
    min-height: 0;
    padding: 26px;
  }
  .login-story .brand {
    width: 176px;
  }
  .story-copy {
    margin-top: 44px;
  }
  .story-copy h1 {
    font-size: 44px;
    letter-spacing: -2px;
    margin: 16px 0;
  }
  .story-copy p {
    max-width: 340px;
    font-size: 13px;
    line-height: 1.7;
  }
  .story-line,
  .login-story > small,
  .story-map {
    display: none;
  }
  .login-content {
    padding: 34px 26px 40px;
  }
  .login-logo {
    display: none;
  }
  .login-card {
    max-width: 390px;
  }
  .login-card h2 {
    font-size: 32px;
    margin-top: 18px;
  }
  .login-card h2 br {
    display: none;
  }
  .login-card > p {
    font-size: 14px;
    margin-bottom: 20px;
  }
  .dialog-heading {
    padding: 22px 20px;
    gap: 12px;
  }
  .dialog-heading h2 {
    font-size: 26px;
  }
  .dialog-heading p {
    font-size: 12px;
  }
  .dialog-heading .eyebrow {
    font-size: 10px;
  }
  .dialog-heading .icon-button {
    width: 36px;
    height: 36px;
  }
  .create-dialog {
    width: 620px;
  }
  dialog {
    max-width: calc(100vw - 16px);
    max-height: 96vh;
    max-height: 96dvh;
    border-radius: var(--radius-lg);
  }
  .create-layout {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }
  .create-fields {
    display: contents;
  }
  .create-fields > .form-section {
    padding: 22px 20px;
    margin: 0;
    border: 0;
  }
  .create-fields > .form-section:first-child {
    order: 0;
  }
  .create-fields > .form-section:nth-child(2) {
    order: 2;
    border-top: 1px solid var(--line);
    padding-bottom: 0;
  }
  .create-fields > .form-section:nth-child(3) {
    order: 3;
    padding-top: 28px;
  }
  .create-map-column {
    order: 1;
    padding: 0 20px 22px;
    position: static;
    border-bottom: 0;
  }
  .create-fields > .error {
    order: 4;
    margin: 0 20px 16px;
  }
  .create-fields > .button {
    order: 5;
    margin: 0 20px;
    width: calc(100% - 40px);
  }
  .create-fields > .form-note {
    order: 6;
    margin: 14px 20px 26px;
  }
  .selection-modes {
    flex-direction: row;
  }
  .selection-modes label {
    font-size: 11px;
    padding: 9px 10px;
  }
  .map-column-heading {
    margin-bottom: 14px;
  }
  .map-column-heading h3 {
    font-size: 18px;
  }
  .map-column-heading .eyebrow {
    font-size: 10px;
  }
  .map-coordinate-icon {
    width: 34px;
    height: 34px;
    font-size: 21px;
  }
  #draw-map {
    height: 285px;
    border-radius: var(--radius-lg);
  }
  .draw-toolbar {
    gap: 6px;
  }
  .draw-toolbar button {
    font-size: 10px;
    padding: 7px 9px;
    min-height: 34px;
  }
  .draw-status {
    font-size: 11px;
  }
  .create-map-column > small {
    font-size: 10px;
  }
  .estimate {
    padding: 18px;
    margin-top: 18px;
  }
  .estimate > div {
    flex-direction: row;
    align-items: center;
  }
  .estimate strong {
    font-size: 23px;
  }
  .estimate small {
    font-size: 10px;
  }
  #detail-content {
    padding: 22px 20px;
  }
  .detail-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    padding: 22px 0;
  }
  .detail-meta strong {
    font-size: 13px;
  }
  .photos-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .photo-image {
    height: 235px;
  }
  .photos-heading h3 {
    font-size: 19px;
  }
  .action-dialog {
    padding: 26px 22px;
  }
  .action-buttons .button {
    flex: 1;
    padding: 10px 13px;
    font-size: 12px;
  }
  .point-explorer {
    margin: 22px 0;
  }
  #detail-map {
    height: 300px;
  }
  .point-controls label {
    min-width: 0;
    width: 100%;
    flex: auto;
  }
  .point-pages {
    width: 100%;
  }
  .point-pages .button {
    flex: 1;
  }
  .point-properties dl {
    grid-template-columns: minmax(0, 1fr);
  }
  .tenant-filter {
    width: 100%;
  }
  .tenant-filter select {
    flex: 1;
    max-width: none;
  }
  .admin-tab-content {
    padding: 0 16px 20px;
  }
  .admin-tab-content .table-scroll {
    margin: 0 -16px;
  }
  .admin-panel .error-banner {
    margin: 0 16px 16px;
  }
  .review-item {
    padding: 12px;
  }
  .review-actions .button {
    font-size: 11px;
    padding: 9px 12px;
  }
  .admin-panel {
    margin-top: 20px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

/* Condições de cobrança e formulários de cadastro. */
.billing-note {
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--sunk);
  line-height: 1.6;
}
.status.awaiting_payment {
  background: var(--warn-soft);
  color: var(--warn);
}
#company-form input,
#company-form select,
#company-register-form input {
  display: block;
  width: 100%;
  margin-bottom: 12px;
}
#new-company {
  margin: 12px 0;
}
#companies-body small {
  display: block;
  color: var(--mute);
  margin-top: 4px;
}

.simulation-panel {
  margin-top: 24px;
  padding: 24px;
}
.simulation-panel h3 {
  margin-top: 24px;
}
.simulation-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: end;
  margin: 20px 0;
}
.simulation-controls label {
  min-width: 180px;
  flex: 1;
}
.simulation-controls select,
.simulation-controls input:not([type='checkbox']) {
  display: block;
  width: 100%;
  margin-top: 8px;
}
.simulation-check input {
  width: auto;
}
.simulation-record {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 18px;
  margin: 12px 0;
  overflow-wrap: anywhere;
}
.simulation-record .detail-actions {
  margin: 12px 0 0;
  flex-wrap: wrap;
}
.simulation-record p {
  line-height: 1.6;
}
.simulation-record summary {
  cursor: pointer;
}
.simulation-record small {
  display: block;
  margin: 8px 0;
}
@media (max-width: 600px) {
  .simulation-panel {
    padding: 16px;
  }
  .simulation-controls {
    display: grid;
  }
  .simulation-controls label {
    min-width: 0;
  }
}

/* Aviso de tratamento automático de privacidade nos cartões de evidência. */
.photo-info .privacy-note {
  font-size: 0.78rem;
  color: var(--muted);
  margin: 0.35rem 0 0;
}

/* Login social (Google, Microsoft, Apple…) abaixo do login por e-mail e senha. */
.social-login-block {
  margin-top: 4px;
}
.social-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 0.8rem;
  margin: 14px 0 10px;
}
.social-divider::before,
.social-divider::after {
  content: '';
  flex: 1;
  border-top: 1px solid var(--line);
}
.social-login-list {
  display: grid;
  gap: 8px;
}
.button.social-login {
  width: 100%;
  justify-content: center;
  gap: 10px;
  background: #fff;
  color: #1f1f1f;
  border: 1px solid var(--line);
}
.button.social-login:hover:not(:disabled) {
  border-color: var(--ink);
}
.button.social-login svg {
  flex: none;
}
