:root {
  color-scheme: light;
  --bg: #f6f7f3;
  --surface: #ffffff;
  --ink: #17201f;
  --muted: #61706c;
  --line: #d8ded8;
  --primary: #17605a;
  --primary-dark: #0d413d;
  --blue: #315f9d;
  --gold: #b98213;
  --red: #ad3d31;
  --shadow: 0 12px 28px rgba(23, 32, 31, 0.1);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
}

[hidden] {
  display: none !important;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.app-shell {
  width: min(100%, 720px);
  min-height: 100vh;
  margin: 0 auto;
  display: grid;
  grid-template-rows: auto 1fr auto;
  background: var(--bg);
}

.topbar {
  min-height: 76px;
  padding: 16px 18px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

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

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  font-size: 1.45rem;
}

.brand-mark {
  width: 4.1rem;
  line-height: 0.82;
}

.brand-mark-logo {
  width: 3.9rem;
}

.brand-primary,
.brand-secondary {
  display: block;
  white-space: nowrap;
}

.brand-logo {
  display: block;
  width: 3.45rem;
  height: 3.45rem;
  margin: -1px 0 0 0.1rem;
  border-radius: 0.92rem;
  box-shadow: 0 6px 14px rgba(13, 65, 61, 0.15);
}

.brand-primary {
  color: var(--ink);
  font-size: 1.46rem;
  font-weight: 900;
  letter-spacing: 0.045rem;
  text-transform: lowercase;
}

.brand-secondary {
  transform: translateY(6px);
  color: #3e5550;
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.082rem;
}

h2 {
  margin: 0;
  font-size: 1.35rem;
}

h3 {
  margin: 0 0 4px;
  font-size: 1rem;
}

main {
  padding: 16px;
}

.view {
  display: none;
}

.view.is-active {
  display: block;
}

.section-heading {
  margin-bottom: 14px;
}

.section-heading.compact {
  margin: 22px 0 10px;
}

.sync-badge {
  min-width: 78px;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(23, 96, 90, 0.12);
  color: var(--primary-dark);
  text-align: center;
  font-size: 0.78rem;
  font-weight: 800;
}

.sync-badge.offline {
  background: rgba(173, 61, 49, 0.12);
  color: var(--red);
}

.entry-form,
.info-panel,
.recent-panel {
  display: grid;
  gap: 14px;
}

.form-panel,
.info-panel {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 4px 16px rgba(23, 32, 31, 0.05);
}

.form-panel {
  display: grid;
  gap: 18px;
}

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

.field span {
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 800;
}

.field small {
  min-height: 18px;
  color: var(--muted);
  font-size: 0.82rem;
}

input,
select {
  width: 100%;
  min-height: 54px;
  padding: 13px 12px;
  border: 2px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  font-size: 1.05rem;
}

.combo-input {
  position: relative;
  display: grid;
}

.combo-input input {
  padding-right: 52px;
}

.combo-button {
  position: absolute;
  top: 2px;
  right: 2px;
  bottom: 2px;
  width: 48px;
  border: 0;
  border-left: 1px solid var(--line);
  border-radius: 0 6px 6px 0;
  background: #eef3f0;
  color: var(--primary-dark);
  font-size: 1.4rem;
  font-weight: 900;
}

.map-choice-list {
  position: absolute;
  z-index: 20;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  max-height: 260px;
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.map-choice {
  min-height: 44px;
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  text-align: left;
  font-weight: 800;
}

.map-choice:last-child {
  border-bottom: 0;
}

.map-choice:focus,
.map-choice:hover {
  background: rgba(23, 96, 90, 0.08);
  outline: 0;
}

.street-suggest {
  display: grid;
  gap: 6px;
}

.street-suggest-list {
  max-height: 220px;
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 4px 12px rgba(23, 32, 31, 0.08);
}

.street-suggest-option {
  min-height: 46px;
  width: 100%;
  padding: 11px 12px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  font: inherit;
  text-align: left;
}

.street-suggest-option:last-child {
  border-bottom: 0;
}

.street-suggest-option:focus,
.street-suggest-option:hover {
  background: rgba(23, 96, 90, 0.08);
  outline: 0;
}

input:focus,
select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(23, 96, 90, 0.2);
  outline: 0;
}

.field-row {
  margin-top: -8px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.check-field {
  min-height: 54px;
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 2px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  font-size: 0.96rem;
  font-weight: 800;
}

.check-field input {
  width: 24px;
  height: 24px;
  min-height: 24px;
  flex: 0 0 auto;
  accent-color: var(--primary);
}

.check-field span {
  line-height: 1.25;
}

.check-field:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(23, 96, 90, 0.2);
}

.primary-button {
  min-height: 60px;
  margin-top: 2px;
  padding: 14px 16px;
  border: 0;
  border-radius: 8px;
  background: var(--primary);
  color: #ffffff;
  font-size: 1.02rem;
  font-weight: 800;
  box-shadow: var(--shadow);
}

.secondary-button {
  min-height: 52px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--primary-dark);
  font-weight: 900;
}

.danger-action {
  color: var(--red);
}

.access-qr-image {
  display: block;
  width: 220px;
  height: 220px;
  margin: 12px auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.access-page,
.auth-page {
  min-height: 100vh;
  padding: 20px;
  display: grid;
  place-items: center;
}

.access-card,
.auth-card {
  width: min(100%, 520px);
}

.auth-card {
  display: grid;
  justify-items: center;
  text-align: center;
}

.auth-card .primary-button,
.auth-card .secondary-button {
  width: min(100%, 320px);
}

body.access-mode {
  background: var(--surface);
}

.access-request-item {
  align-items: flex-start;
  flex-direction: column;
}

.admin-actions {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.release-button {
  width: 100%;
  margin: 0;
}

.helper-note {
  margin: 14px 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.form-message {
  margin: -4px 0 0;
  color: var(--red);
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.35;
}

#accessRequestMessage {
  margin-top: 8px;
}

.form-message.is-empty {
  display: none;
}

.form-message.is-empty + .primary-button {
  margin-top: -10px;
}

.followup-guidance {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.holding-note {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

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

.compact-list {
  margin-bottom: 8px;
}

.list-item,
.followup-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.list-item {
  min-height: 70px;
  padding: 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.list-item p,
.followup-card p,
.info-panel p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.followup-card .lock-expiry {
  margin-top: 3px;
  color: #8a9994;
  font-size: 0.78rem;
  font-weight: 700;
}

.followup-card .address-helper {
  margin-top: 3px;
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 900;
}

.list-item .address-helper {
  margin-top: 3px;
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 900;
}

.followup-card {
  padding: 14px;
  display: grid;
  gap: 12px;
}

.followup-card-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 10px;
}

.followup-card-details {
  width: 100%;
}

.maps-link {
  min-height: 38px;
  width: fit-content;
  padding: 9px 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--primary-dark);
  background: #ffffff;
  font-size: 0.86rem;
  font-weight: 900;
  text-decoration: none;
}

.card-actions {
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
  gap: 6px;
  flex-wrap: wrap;
}

.card-action {
  font-family: inherit;
  cursor: pointer;
}

.followup-group {
  display: grid;
  gap: 10px;
}

.group-heading {
  margin: 10px 0 0;
  width: 100%;
  padding: 9px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--primary-dark);
  background: #ffffff;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 900;
  text-align: left;
  cursor: pointer;
}

.group-heading span:last-child {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
}

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

.choice {
  min-height: 54px;
  border: 0;
  border-radius: 8px;
  color: #ffffff;
  font-weight: 900;
}

.choice.contact {
  background: var(--primary);
}

.choice.no-contact {
  background: var(--blue);
}

.delete-button {
  min-height: 46px;
  flex: 0 0 auto;
  padding: 10px 14px;
  border: 0;
  border-radius: 7px;
  background: var(--red);
  color: #ffffff;
  font-size: 0.86rem;
  font-weight: 900;
}

.delete-button.is-locked,
.delete-button:disabled {
  background: #8a9994;
  color: #ffffff;
  cursor: default;
  box-shadow: none;
}

.bottom-nav {
  min-height: 72px;
  padding: 8px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  position: sticky;
  bottom: 0;
}

.build-reference {
  display: block;
  margin: 0;
  color: #9aa5a1;
  font-size: 0.76rem;
  font-weight: 700;
  text-align: center;
  width: 100%;
}

.map-history-heading {
  margin-top: 18px;
}

.transfer-statuses {
  margin: 0;
  padding: 12px;
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.transfer-statuses legend {
  padding: 0 6px;
  color: var(--primary-dark);
  font-weight: 900;
}

.transfer-statuses label,
.transfer-confirmation {
  display: flex;
  align-items: flex-start;
  gap: 9px;
}

.panel-divider {
  width: 100%;
  margin: 6px 0;
  border: 0;
  border-top: 1px solid var(--line);
}

.transfer-summary {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
}

.transfer-summary p {
  margin: 4px 0;
}

.map-update-item,
.map-update-history-item {
  align-items: flex-start;
}

.map-update-status {
  color: var(--primary-dark);
  font-weight: 900;
}

.map-update-map-list {
  margin: 8px 0 0;
  padding-left: 20px;
  color: var(--muted);
}

.map-update-map-list li + li {
  margin-top: 4px;
}

.nav-item {
  min-height: 52px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.nav-item.is-active {
  background: rgba(23, 96, 90, 0.12);
  color: var(--primary-dark);
}

@media (max-width: 360px) {
  .field-row,
  .choice-row {
    grid-template-columns: 1fr;
  }

  .nav-item {
    font-size: 0.72rem;
  }
}

@media (min-width: 620px) {
  main {
    padding: 22px;
  }
}

/* Full Site workspace. Every selector is surface-scoped so the accepted Field
   layout keeps its mobile-first appearance and navigation. */
html[data-followup-surface="full"] body {
  background:
    radial-gradient(circle at 82% 6%, rgba(23, 96, 90, 0.08), transparent 26rem),
    #eef2ef;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

html[data-followup-surface="full"] .app-shell {
  width: 100%;
  max-width: none;
  grid-template-columns: 272px minmax(0, 1fr);
  grid-template-rows: 78px minmax(0, 1fr);
  background: transparent;
}

.full-sidebar {
  position: sticky;
  top: 0;
  grid-row: 1 / 3;
  min-height: 100vh;
  height: 100vh;
  padding: 22px 18px 18px;
  display: flex;
  flex-direction: column;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(178deg, #103f3b 0%, #0a302d 72%, #082522 100%);
  color: #ffffff;
  overflow-y: auto;
}

.full-brand {
  padding: 0 8px 22px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.full-brand img {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.2);
}

.full-brand strong,
.full-brand span {
  display: block;
}

.full-brand strong {
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.full-brand span {
  margin-top: 3px;
  color: #a9cbc5;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.full-navigation {
  display: grid;
  gap: 4px;
}

.full-nav-label {
  margin: 17px 11px 5px;
  color: #8fb8b1;
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.full-nav-item {
  min-height: 42px;
  padding: 9px 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #d8e9e5;
  font-size: 0.88rem;
  font-weight: 750;
  text-align: left;
  transition: background 140ms ease, color 140ms ease, transform 140ms ease;
}

.full-nav-item:hover,
.full-nav-item:focus-visible {
  background: rgba(255, 255, 255, 0.09);
  color: #ffffff;
  outline: none;
  transform: translateX(2px);
}

.full-nav-item.is-active {
  background: #ffffff;
  color: #0d413d;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.16);
}

.full-sidebar-footer {
  margin-top: auto;
  padding-top: 22px;
  display: grid;
  gap: 13px;
}

.full-field-link {
  min-height: 42px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 850;
  text-decoration: none;
}

.full-field-link:hover,
.full-field-link:focus-visible {
  border-color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  outline: none;
}

.full-user-summary {
  padding: 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.07);
}

.full-user-summary strong,
.full-user-summary span {
  display: block;
}

.full-user-summary strong {
  font-size: 0.82rem;
}

.full-user-summary span {
  margin-top: 4px;
  color: #a9cbc5;
  font-size: 0.7rem;
  line-height: 1.35;
}

html[data-followup-surface="full"] .topbar {
  position: sticky;
  z-index: 30;
  top: 0;
  grid-column: 2;
  padding: 12px 32px;
  border-bottom-color: rgba(23, 32, 31, 0.08);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(16px);
}

html[data-followup-surface="full"] .topbar > div:first-child {
  display: none;
}

.full-page-heading {
  display: block;
}

.full-page-heading .eyebrow {
  margin-bottom: 2px;
  color: #66807a;
  font-size: 0.66rem;
  letter-spacing: 0.1em;
}

.full-page-heading h1 {
  color: #14332f;
  font-size: 1.28rem;
  letter-spacing: -0.025em;
}

html[data-followup-surface="full"] .sync-badge {
  min-width: 88px;
  border: 1px solid rgba(23, 96, 90, 0.14);
  background: #ecf6f3;
}

html[data-followup-surface="full"] .workspace-main {
  width: 100%;
  max-width: 1540px;
  padding: 34px clamp(24px, 3.6vw, 58px) 60px;
  grid-column: 2;
  justify-self: center;
}

html[data-followup-surface="full"] .view.is-active {
  animation: full-view-enter 180ms ease-out;
}

@keyframes full-view-enter {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

.dashboard-welcome {
  padding: clamp(24px, 3vw, 38px);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  border-radius: 22px;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.07), transparent 55%),
    linear-gradient(135deg, #124f49, #0d3935);
  color: #ffffff;
  box-shadow: 0 22px 48px rgba(13, 65, 61, 0.18);
}

.dashboard-welcome .eyebrow {
  color: #b9ddd6;
}

.dashboard-welcome h2 {
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  letter-spacing: -0.045em;
}

.dashboard-welcome p:not(.eyebrow) {
  max-width: 760px;
  margin: 12px 0 0;
  color: #d6e8e4;
  line-height: 1.55;
}

.environment-chip {
  flex: 0 0 auto;
  padding: 8px 11px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 850;
}

.dashboard-metrics {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 15px;
}

.metric-card {
  min-height: 170px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  border: 1px solid rgba(23, 32, 31, 0.08);
  border-radius: 17px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 28px rgba(28, 48, 43, 0.06);
}

.metric-card > span {
  min-height: 38px;
  color: #62746f;
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.35;
}

.metric-card > strong {
  margin: 8px 0 14px;
  color: #173c37;
  font-size: 2.15rem;
  letter-spacing: -0.05em;
}

.metric-card > button {
  margin-top: auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: #17605a;
  font-size: 0.76rem;
  font-weight: 900;
  text-align: left;
}

.metric-card-primary {
  border-color: transparent;
  background: #dceee9;
}

.dashboard-grid {
  margin-top: 22px;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.75fr);
  gap: 18px;
}

.dashboard-panel {
  padding: 24px;
  border: 1px solid rgba(23, 32, 31, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 28px rgba(28, 48, 43, 0.055);
}

.dashboard-panel h3 {
  color: #173c37;
  font-size: 1.12rem;
}

.quick-action-grid {
  margin-top: 17px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.quick-action-grid button {
  min-height: 100px;
  padding: 17px;
  border: 1px solid #dbe5e1;
  border-radius: 13px;
  background: #f8faf9;
  color: #173c37;
  text-align: left;
  transition: border 140ms ease, background 140ms ease, transform 140ms ease;
}

.quick-action-grid button:hover,
.quick-action-grid button:focus-visible {
  border-color: #83afa6;
  background: #edf6f3;
  outline: none;
  transform: translateY(-2px);
}

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

.quick-action-grid strong {
  font-size: 0.9rem;
}

.quick-action-grid span {
  margin-top: 7px;
  color: #6a7b77;
  font-size: 0.75rem;
  line-height: 1.45;
}

.dashboard-roadmap > p {
  margin: 16px 0;
  color: #62746f;
  font-size: 0.88rem;
  line-height: 1.55;
}

.roadmap-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.roadmap-tags span {
  padding: 7px 9px;
  border-radius: 999px;
  background: #eef4f2;
  color: #365d56;
  font-size: 0.7rem;
  font-weight: 800;
}

.workspace-heading {
  margin-bottom: 22px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
}

.workspace-heading h2 {
  color: #173c37;
  font-size: clamp(1.55rem, 2.4vw, 2rem);
  letter-spacing: -0.04em;
}

.workspace-heading > p {
  max-width: 560px;
  margin: 0;
  color: #687a75;
  font-size: 0.86rem;
  line-height: 1.5;
  text-align: right;
}

.workspace-columns {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(420px, 1.28fr);
  align-items: start;
  gap: 18px;
}

html[data-followup-surface="full"] .info-panel,
html[data-followup-surface="full"] .form-panel,
html[data-followup-surface="full"] .recent-panel {
  padding: 22px;
  border-color: rgba(23, 32, 31, 0.09);
  border-radius: 16px;
  box-shadow: 0 12px 28px rgba(28, 48, 43, 0.055);
}

html[data-followup-surface="full"] .transfer-statuses {
  padding: 8px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  border-color: #d8e3df;
  border-radius: 14px;
  background: #f4f8f6;
}

html[data-followup-surface="full"] .transfer-statuses legend {
  margin-left: 4px;
  padding: 0 8px;
  color: #526963;
  background: #ffffff;
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.015em;
}

html[data-followup-surface="full"] .transfer-statuses label {
  min-width: 0;
  min-height: 54px;
  padding: 10px 12px;
  align-items: center;
  gap: 10px;
  border: 1px solid #d8e3df;
  border-radius: 11px;
  background: #ffffff;
  color: #274a44;
  font-size: 0.79rem;
  font-weight: 800;
  line-height: 1.25;
  cursor: pointer;
  transition: border-color 140ms ease, background 140ms ease, box-shadow 140ms ease;
}

html[data-followup-surface="full"] .transfer-statuses label:hover {
  border-color: #83afa6;
  background: #f8fcfa;
}

html[data-followup-surface="full"] .transfer-statuses label:focus-within {
  border-color: #17605a;
  box-shadow: 0 0 0 3px rgba(23, 96, 90, 0.14);
}

html[data-followup-surface="full"] .transfer-statuses label:has(input:checked) {
  border-color: #6fa297;
  background: #e9f5f1;
}

html[data-followup-surface="full"] .transfer-statuses input[type="checkbox"] {
  appearance: none;
  width: 22px;
  height: 22px;
  min-height: 22px;
  margin: 0;
  padding: 0;
  flex: 0 0 22px;
  display: grid;
  place-items: center;
  border: 2px solid #9cafaa;
  border-radius: 7px;
  background: #ffffff;
  box-shadow: none;
  cursor: pointer;
}

html[data-followup-surface="full"] .transfer-statuses input[type="checkbox"]::after {
  content: "";
  width: 5px;
  height: 10px;
  border: solid #ffffff;
  border-width: 0 2px 2px 0;
  opacity: 0;
  transform: translateY(-1px) rotate(45deg) scale(0.75);
  transition: opacity 100ms ease, transform 100ms ease;
}

html[data-followup-surface="full"] .transfer-statuses input[type="checkbox"]:checked {
  border-color: #17605a;
  background: #17605a;
}

html[data-followup-surface="full"] .transfer-statuses input[type="checkbox"]:checked::after {
  opacity: 1;
  transform: translateY(-1px) rotate(45deg) scale(1);
}

html[data-followup-surface="full"] .transfer-statuses input[type="checkbox"]:focus {
  outline: none;
}

html[data-followup-surface="full"] .transfer-confirmation {
  min-height: 58px;
  padding: 11px 13px;
  align-items: center;
  gap: 11px;
  border: 1px solid #d8e3df;
  border-radius: 11px;
  background: #ffffff;
  color: #274a44;
  font-size: 0.8rem;
  font-weight: 800;
  line-height: 1.35;
  cursor: pointer;
  transition: border-color 140ms ease, background 140ms ease, box-shadow 140ms ease;
}

html[data-followup-surface="full"] .transfer-confirmation:hover {
  border-color: #83afa6;
  background: #f8fcfa;
}

html[data-followup-surface="full"] .transfer-confirmation:focus-within {
  border-color: #17605a;
  box-shadow: 0 0 0 3px rgba(23, 96, 90, 0.14);
}

html[data-followup-surface="full"] .transfer-confirmation:has(input:checked) {
  border-color: #6fa297;
  background: #e9f5f1;
}

html[data-followup-surface="full"] .transfer-confirmation input[type="checkbox"] {
  appearance: none;
  width: 22px;
  height: 22px;
  min-height: 22px;
  margin: 0;
  padding: 0;
  flex: 0 0 22px;
  display: grid;
  place-items: center;
  border: 2px solid #9cafaa;
  border-radius: 7px;
  background: #ffffff;
  box-shadow: none;
  cursor: pointer;
}

html[data-followup-surface="full"] .transfer-confirmation input[type="checkbox"]::after {
  content: "";
  width: 5px;
  height: 10px;
  border: solid #ffffff;
  border-width: 0 2px 2px 0;
  opacity: 0;
  transform: translateY(-1px) rotate(45deg) scale(0.75);
  transition: opacity 100ms ease, transform 100ms ease;
}

html[data-followup-surface="full"] .transfer-confirmation input[type="checkbox"]:checked {
  border-color: #17605a;
  background: #17605a;
}

html[data-followup-surface="full"] .transfer-confirmation input[type="checkbox"]:checked::after {
  opacity: 1;
  transform: translateY(-1px) rotate(45deg) scale(1);
}

html[data-followup-surface="full"] .transfer-confirmation input[type="checkbox"]:focus {
  outline: none;
}

html[data-followup-surface="full"] #initial.is-active {
  display: grid;
  grid-template-columns: minmax(360px, 0.9fr) minmax(420px, 1.1fr);
  align-items: start;
  gap: 20px;
}

html[data-followup-surface="full"] #initial > .section-heading {
  grid-column: 1 / -1;
  margin-bottom: 0;
}

html[data-followup-surface="full"] #initial > .entry-form {
  padding: 24px;
  border: 1px solid rgba(23, 32, 31, 0.09);
  border-radius: 17px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 28px rgba(28, 48, 43, 0.055);
}

html[data-followup-surface="full"] #initial .form-panel {
  padding: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

html[data-followup-surface="full"] #followup,
html[data-followup-surface="full"] #history {
  max-width: 1040px;
}

html[data-followup-surface="full"] #followup.is-active {
  display: grid;
  grid-template-columns: minmax(320px, 0.68fr) minmax(420px, 1.32fr);
  align-items: start;
  gap: 16px 22px;
}

html[data-followup-surface="full"] #followup > .section-heading,
html[data-followup-surface="full"] #followup > .holding-note,
html[data-followup-surface="full"] #followup > .release-button,
html[data-followup-surface="full"] #followup > .followup-guidance {
  grid-column: 1;
}

html[data-followup-surface="full"] #followup > .entry-form {
  grid-column: 1;
  padding: 22px;
  border: 1px solid rgba(23, 32, 31, 0.09);
  border-radius: 16px;
  background: #ffffff;
}

html[data-followup-surface="full"] #followup > .followup-list {
  grid-column: 2;
  grid-row: 2 / span 5;
}

#mapAdminWorkspace,
#dataAdminWorkspace,
#settingsWorkspace {
  max-width: 980px;
}

.user-admin-foundation {
  max-width: 920px;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 18px;
}

.foundation-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  background: #dceee9;
  color: #13504a;
  font-size: 1.2rem;
  font-weight: 950;
}

.user-admin-foundation p:not(.eyebrow) {
  margin: 11px 0 0;
  color: #62746f;
  line-height: 1.55;
}

html[data-followup-surface="full"] .bottom-nav {
  display: none;
}

@media (max-width: 1120px) {
  .dashboard-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-grid,
  .workspace-columns,
  html[data-followup-surface="full"] #initial.is-active {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  html[data-followup-surface="full"] .app-shell {
    display: block;
  }

  .full-sidebar {
    position: static;
    width: 100%;
    min-height: auto;
    height: auto;
    padding: 14px 16px;
    display: block;
    overflow: visible;
  }

  .full-brand {
    padding: 0 2px 12px;
  }

  .full-brand img {
    width: 40px;
    height: 40px;
  }

  .full-navigation {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    scrollbar-width: thin;
  }

  .full-nav-label,
  .full-sidebar-footer {
    display: none;
  }

  .full-nav-item {
    flex: 0 0 auto;
    min-height: 40px;
    white-space: nowrap;
  }

  .full-nav-item:hover,
  .full-nav-item:focus-visible {
    transform: none;
  }

  html[data-followup-surface="full"] .topbar {
    position: sticky;
    padding: 11px 18px;
  }

  html[data-followup-surface="full"] .workspace-main {
    padding: 24px 18px 48px;
  }

  html[data-followup-surface="full"] #followup.is-active {
    display: block;
  }

  html[data-followup-surface="full"] #followup > * + * {
    margin-top: 14px;
  }
}

@media (max-width: 620px) {
  .dashboard-welcome,
  .workspace-heading {
    display: block;
  }

  .environment-chip {
    display: inline-flex;
    margin-top: 18px;
  }

  .dashboard-metrics,
  .dashboard-grid,
  .quick-action-grid {
    grid-template-columns: 1fr;
  }

  .metric-card {
    min-height: 145px;
  }

  .workspace-heading > p {
    margin-top: 10px;
    text-align: left;
  }

  .user-admin-foundation {
    grid-template-columns: 1fr;
  }

  html[data-followup-surface="full"] .transfer-statuses {
    grid-template-columns: 1fr;
  }
}
