@font-face {
  font-family: system;
  src: local("Avenir Next");
}
* {
  box-sizing: border-box;
}
:root {
  --paper: #f6f7f3;
  --white: #fff;
  --ink: #24392e;
  --muted: #7a847d;
  --green: #244d3f;
  --line: #e4e8df;
  --soft: #edf1e7;
  --accent: #ced9b4;
  font-family:
    system,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.55;
  cursor: wait;
}
button,
a {
  color: inherit;
}
a {
  text-decoration: none;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid #8aaf76;
  outline-offset: 3px;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: 32px;
  letter-spacing: -1.25px;
  font-weight: 650;
}
h2 {
  font-size: 19px;
  letter-spacing: -0.4px;
}
h3 {
  font-size: 16px;
}
p {
  line-height: 1.6;
}
svg.icon {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
.muted {
  color: var(--muted);
}
small {
  font-size: 12px;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 2.2px;
  font-size: 10px;
  font-weight: 750;
  color: var(--muted);
}
.boot {
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 24px;
  min-height: 100dvh;
}
.boot img {
  width: 76px;
}
.layout {
  display: grid;
  grid-template-columns: 232px 1fr;
  min-height: 100dvh;
}
.sidebar {
  position: fixed;
  width: 232px;
  inset: 0 auto 0 0;
  padding: 34px 22px 22px;
  border-right: 1px solid var(--line);
  background: #fafbf7;
  display: flex;
  flex-direction: column;
  z-index: 20;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
}
.brand img {
  width: 40px;
  height: 40px;
  border-radius: 12px;
}
.brand strong {
  font-size: 25px;
  letter-spacing: -1.3px;
}
.brand small {
  display: block;
  font-size: 9px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 1px;
}
.sidebar .eyebrow {
  margin: 40px 12px 14px;
}
.nav {
  display: grid;
  gap: 6px;
}
.nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 14px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 550;
  color: #68776c;
}
.nav a.active {
  background: #e7eddf;
  color: #244d3f;
  font-weight: 700;
}
.nav .count {
  margin-left: auto;
  font-size: 10px;
  background: #d9e3cb;
  padding: 2px 7px;
  border-radius: 5px;
}
.sidebar-bottom {
  margin-top: auto;
}
.sidebar-note {
  padding: 18px 14px;
  border: 1px solid var(--line);
  border-radius: 13px;
  margin: 28px 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
}
.profile {
  display: flex;
  gap: 10px;
  align-items: center;
  border-top: 1px solid var(--line);
  padding-top: 20px;
}
.avatar {
  display: grid;
  place-items: center;
  border-radius: 50%;
  width: 35px;
  height: 35px;
  background: #e7eadd;
  color: #526641;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}
.profile strong {
  font-size: 12px;
}
.profile small {
  display: block;
  font-size: 10px;
  color: var(--muted);
}
.main {
  grid-column: 2;
  min-width: 0;
}
.topbar {
  height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 44px;
  border-bottom: 1px solid var(--line);
  background: #fafbf780;
  font-size: 12px;
}
.topbar .crumb {
  color: var(--muted);
}
.topbar .crumb b {
  font-weight: 500;
  color: var(--ink);
}
.top-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}
.connection {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  color: var(--muted);
}
.dot {
  width: 6px;
  height: 6px;
  background: #6e9361;
  border-radius: 50%;
  display: inline-block;
}
.connection.offline .dot {
  background: #c18c3a;
}
.icon-btn {
  border: 0;
  background: transparent;
  padding: 8px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  min-height: 40px;
}
.icon-btn:hover {
  background: var(--soft);
}
.content {
  max-width: 1360px;
  margin: auto;
  padding: 38px 44px 70px;
}
.page-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 28px;
}
.page-head .eyebrow {
  margin-bottom: 10px;
}
.page-head p {
  font-size: 13px;
  color: var(--muted);
  margin-top: 8px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  padding: 12px 19px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: var(--green);
  color: white;
  font-size: 12px;
  font-weight: 650;
  white-space: nowrap;
}
.btn:hover {
  filter: brightness(0.96);
}
.btn.secondary {
  background: #fff;
  color: var(--ink);
  border-color: var(--line);
}
.btn.ghost {
  background: transparent;
  color: var(--green);
}
.btn.danger {
  background: #f9e9e6;
  color: #ad4747;
}
.btn.small {
  min-height: 35px;
  padding: 7px 12px;
  font-size: 11px;
}
.actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
  margin-bottom: 26px;
}
.stat {
  border: 1px solid var(--line);
  border-radius: 13px;
  background: white;
  padding: 20px;
  text-align: left;
  display: block;
}
.stat-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: #788074;
}
.stat-icon {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: #edf3e8;
  color: #56754f;
}
.stat:nth-child(2) .stat-icon {
  background: #edf0f7;
  color: #6e88a5;
}
.stat:nth-child(3) .stat-icon {
  background: #f9efe7;
  color: #c2895b;
}
.stat strong {
  font-size: 34px;
  letter-spacing: -1px;
  display: block;
  margin: 8px 0 2px;
  font-weight: 600;
}
.stat small {
  font-size: 10px;
  color: var(--muted);
}
.hero {
  border-radius: 14px;
  background: #e9efdf;
  min-height: 163px;
  padding: 28px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  position: relative;
  overflow: hidden;
  margin-bottom: 29px;
  border: 1px solid #dfe6d2;
}
.hero h2 {
  font-size: 24px;
  max-width: 420px;
  margin: 6px 0 8px;
  font-weight: 550;
}
.hero p {
  font-size: 12px;
  color: #71806a;
  max-width: 440px;
}
.hero .eyebrow {
  color: #718561;
}
.hero-art {
  position: absolute;
  right: 50px;
  top: 0;
  width: 225px;
  height: 180px;
  opacity: 0.13;
  pointer-events: none;
}
.hero .btn {
  position: relative;
  z-index: 1;
}
.columns {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 24px;
}
.panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: 13px;
  overflow: hidden;
}
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 23px 18px;
  gap: 12px;
}
.panel-head h2 {
  font-size: 15px;
}
.text-link {
  color: #688153;
  font-size: 11px;
  font-weight: 650;
}
.rows {
  padding: 0 22px;
}
.provider-row {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  min-width: 0;
}
.provider-row .row-body {
  flex: 1;
  min-width: 0;
}
.provider-row strong {
  font-size: 12px;
  display: block;
  overflow-wrap: anywhere;
}
.provider-row small {
  display: block;
  color: var(--muted);
  margin-top: 4px;
  font-size: 10px;
}
.provider-row .provider-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #f0f2ea;
  display: grid;
  place-items: center;
  color: #7f8f73;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 8px;
  border-radius: 5px;
  background: color-mix(in srgb, var(--status, #4e7ca9) 9%, white);
  color: var(--status, #4e7ca9);
  font-size: 9px;
  font-weight: 700;
  white-space: nowrap;
}
.badge .dot {
  background: var(--status);
  width: 5px;
  height: 5px;
}
.row-end {
  text-align: right;
  display: grid;
  justify-items: end;
  gap: 7px;
}
.panel-foot {
  padding: 16px;
  border-top: 1px solid var(--line);
  text-align: center;
  font-size: 11px;
  color: #73865f;
}
.timeline {
  padding: 0 24px 8px;
}
.event {
  position: relative;
  padding: 15px 0 17px 27px;
  border-top: 1px solid #eef0e9;
  font-size: 11px;
}
.event:before {
  content: "";
  position: absolute;
  left: 1px;
  top: 20px;
  width: 7px;
  height: 7px;
  border: 3px solid #e6ecdd;
  box-sizing: content-box;
  background: #879d6e;
  border-radius: 50%;
}
.event strong {
  font-size: 11px;
  font-weight: 650;
}
.event p {
  font-size: 11px;
  color: var(--muted);
  margin: 4px 0;
}
.event small {
  font-size: 9px;
  color: #a0a69c;
}
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 28px 0 14px;
}
.section-header h2 {
  font-size: 15px;
}
.empty {
  display: grid;
  justify-items: center;
  text-align: center;
  padding: 38px 22px;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
}
.empty .icon {
  width: 32px;
  height: 32px;
  color: #99aa8b;
}
.empty p {
  max-width: 320px;
}
.empty strong {
  color: #536848;
  font-size: 14px;
}
.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}
.search {
  flex: 1;
  min-width: 230px;
  position: relative;
}
.search .icon {
  position: absolute;
  left: 13px;
  top: 13px;
  color: var(--muted);
  width: 18px;
}
.search input {
  padding-left: 40px;
}
.toolbar select {
  width: auto;
  max-width: 190px;
  font-size: 11px;
  min-height: 45px;
}
.provider-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px;
}
.provider-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 21px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.provider-card h3 {
  font-size: 15px;
}
.provider-card p {
  font-size: 11px;
  color: var(--muted);
  margin-top: 4px;
}
.provider-card .card-top {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
}
.provider-card .card-bottom {
  border-top: 1px solid var(--line);
  padding-top: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 10px;
}
.provider-card .meta {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  color: var(--muted);
}
.provider-card:hover {
  border-color: #bfcbb2;
}
.filters-summary {
  font-size: 11px;
  color: var(--muted);
  margin: 10px 0 20px;
}
.detail-grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 22px;
}
.detail-card {
  padding: 25px;
}
.detail-card dl {
  font-size: 12px;
  display: grid;
  gap: 9px;
}
.detail-card dt {
  color: var(--muted);
  margin-top: 9px;
}
.detail-card dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.detail-card .badge {
  margin-top: 15px;
}
.visit-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
  margin-bottom: 15px;
}
.visit-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}
.visit-head strong {
  font-size: 13px;
}
.visit-card .visit-summary {
  display: flex;
  gap: 20px;
  margin: 17px 0;
  font-size: 12px;
}
.visit-card p {
  font-size: 12px;
  white-space: pre-wrap;
}
.visit-card small {
  font-size: 11px;
  color: var(--muted);
}
.photos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(95px, 1fr));
  gap: 9px;
  margin-top: 15px;
}
.photos img {
  width: 100%;
  height: 95px;
  object-fit: cover;
  border-radius: 8px;
}
.photo-item {
  position: relative;
}
.photo-item button {
  position: absolute;
  right: 4px;
  top: 4px;
  background: white;
  border: 0;
  border-radius: 50%;
  width: 25px;
  height: 25px;
}
.photo-item small {
  font-size: 9px;
}
.map {
  height: 530px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #e5ebdf;
}
.map-layout {
  display: grid;
  grid-template-columns: 1fr 270px;
  gap: 20px;
}
.map-legend {
  display: flex;
  gap: 13px;
  flex-wrap: wrap;
  margin: 16px 0;
}
.pin {
  width: 20px;
  height: 20px;
  background: var(--status);
  border: 3px solid white;
  border-radius: 50%;
  box-shadow: 0 2px 5px #0005;
}
.leaflet-popup-content {
  font: 12px system-ui;
  min-width: 160px;
}
.leaflet-popup-content a {
  color: #244d3f;
  text-decoration: underline;
  display: block;
  margin-top: 10px;
}
.near-list {
  max-height: 530px;
  overflow: auto;
}
.near-list h3 {
  font-size: 12px;
  padding: 18px 18px 0;
}
.near-list .rows {
  padding: 0 16px;
}
.near-list .provider-row {
  gap: 8px;
}
.pending-group {
  margin-bottom: 25px;
}
.pending-group h2 {
  font-size: 13px;
  margin-bottom: 13px;
  display: flex;
  align-items: center;
  gap: 9px;
}
.pending-group .provider-row {
  padding: 17px 20px;
}
.notice {
  padding: 14px 17px;
  border-radius: 10px;
  background: #fff2dc;
  color: #896430;
  font-size: 12px;
  line-height: 1.6;
  margin-bottom: 20px;
  display: flex;
  align-items: start;
  gap: 10px;
}
.notice.error {
  background: #fae8e6;
  color: #a2433e;
}
.notice.info {
  background: #eaf0e4;
  color: #557044;
}
.auth-wrap {
  min-height: 100dvh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.auth-aside {
  background: var(--green);
  padding: 55px 70px;
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}
.auth-aside .brand img {
  background: #ffffff0a;
}
.auth-aside .brand small {
  color: #afc1ac;
}
.auth-aside h1 {
  font-size: 48px;
  line-height: 1.14;
  max-width: 430px;
  letter-spacing: -2px;
  font-weight: 500;
  margin-bottom: 20px;
}
.auth-aside p {
  color: #b5c8b7;
  font-size: 14px;
  max-width: 360px;
}
.auth-aside .eyebrow {
  color: #a7be99;
  margin-bottom: 20px;
}
.auth-aside .auth-bottom {
  font-size: 10px;
  color: #a1b89d;
  border-top: 1px solid #ffffff20;
  padding-top: 22px;
  letter-spacing: 1px;
}
.cork-art {
  align-self: center;
  width: 280px;
  height: 180px;
  margin: 26px;
  opacity: 0.55;
}
.auth-main {
  display: grid;
  place-content: center;
  padding: 42px;
  min-width: 0;
}
.auth-card {
  width: min(380px, 100%);
}
.auth-card h2 {
  font-size: 29px;
  margin: 12px 0;
  letter-spacing: -1px;
}
.auth-card > p {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 28px;
}
.auth-card .btn {
  width: 100%;
  margin-top: 8px;
}
.auth-foot {
  font-size: 10px;
  color: var(--muted);
  text-align: center;
  margin-top: 24px;
  line-height: 1.7;
}
form {
  display: grid;
  gap: 17px;
}
label {
  display: grid;
  gap: 7px;
  color: #64745f;
  font-size: 11px;
  font-weight: 650;
}
input,
select,
textarea {
  width: 100%;
  border: 1px solid #dce2d6;
  border-radius: 8px;
  padding: 12px;
  background: #fff;
  color: var(--ink);
  outline: none;
  min-height: 44px;
  font-size: 13px;
}
input:focus,
select:focus,
textarea:focus {
  border-color: #88a579;
  box-shadow: 0 0 0 3px #849e7216;
}
textarea {
  min-height: 96px;
  resize: vertical;
}
input[type="checkbox"] {
  width: 19px;
  height: 19px;
  min-height: 0;
  accent-color: var(--green);
}
input[type="color"] {
  padding: 5px;
}
input[type="file"] {
  font-size: 12px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}
.form-grid .full {
  grid-column: 1/-1;
}
.form-section {
  border-top: 1px solid var(--line);
  padding-top: 20px;
  margin-top: 4px;
}
.form-section h3 {
  margin-bottom: 17px;
  font-size: 14px;
}
.segmented {
  display: flex;
  background: #eff2ea;
  border-radius: 9px;
  padding: 4px;
  gap: 5px;
}
.segmented button {
  flex: 1;
  min-height: 42px;
  background: transparent;
  border: 0;
  border-radius: 7px;
  color: #74836b;
  font-size: 12px;
}
.segmented button.active {
  background: white;
  box-shadow: 0 1px 4px #0001;
  color: var(--green);
  font-weight: 700;
}
.quick-dates {
  display: flex;
  gap: 7px;
  margin-top: 8px;
}
.quick-dates button {
  font-size: 11px;
  padding: 8px;
  border: 1px solid var(--line);
  background: white;
  border-radius: 6px;
  flex: 1;
}
.check-label {
  display: flex;
  align-items: center;
  gap: 8px;
}
.form-note {
  font-size: 10px;
  color: var(--muted);
  line-height: 1.7;
}
.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
  margin-top: 7px;
  position: sticky;
  bottom: 0;
  background: white;
  padding-bottom: 5px;
}
.settings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.settings-grid > .panel {
  padding: 24px;
}
.settings-grid h2 {
  margin-bottom: 20px;
}
.user-row {
  padding: 17px 0;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 12px;
}
.user-row .user-info {
  flex: 1;
}
.user-row small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  margin-top: 5px;
}
dialog {
  border: 0;
  border-radius: 17px;
  padding: 27px;
  width: min(660px, calc(100% - 28px));
  max-height: 90dvh;
  color: var(--ink);
  box-shadow: 0 30px 100px #17231530;
}
dialog::backdrop {
  background: #14271980;
  backdrop-filter: blur(3px);
}
.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}
.modal-head h2 {
  font-size: 22px;
}
.modal-photo {
  max-width: 100%;
  max-height: 70dvh;
  object-fit: contain;
}
.mobile-nav {
  display: none;
}
#toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translate(-50%, 25px);
  background: #203e32;
  color: white;
  padding: 13px 22px;
  border-radius: 10px;
  box-shadow: 0 5px 25px #0002;
  font-size: 12px;
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: 0.2s;
  max-width: calc(100% - 30px);
}
#toast.visible {
  transform: translate(-50%, 0);
  opacity: 1;
}
.back {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 20px;
}
.bottom-note {
  font-size: 10px;
  color: #9aa18f;
  margin-top: 28px;
  display: flex;
  justify-content: space-between;
}
.loading {
  padding: 40px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}
.queue-row {
  border-top: 1px solid var(--line);
  padding: 16px 0;
  font-size: 12px;
}
.queue-row p {
  margin: 8px 0;
  font-size: 11px;
}
.mobile-brand {
  display: none;
}
.nowrap {
  white-space: nowrap;
}
button.stat:hover {
  border-color: #b8c5a8;
}
.provider-grid .empty {
  grid-column: 1/-1;
}
@media (min-width: 1500px) {
  .content {
    padding-top: 50px;
  }
  .hero {
    min-height: 185px;
  }
}
@media (max-width: 1150px) {
  .sidebar {
    width: 200px;
    padding-inline: 15px;
  }
  .layout {
    grid-template-columns: 200px 1fr;
  }
  .content {
    padding: 30px 26px 60px;
  }
  .topbar {
    padding: 0 26px;
  }
  .provider-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .stat {
    padding: 16px;
  }
  .map-layout {
    grid-template-columns: 1fr;
  }
  .near-list {
    max-height: none;
  }
  .auth-aside {
    padding: 40px;
  }
  .auth-aside h1 {
    font-size: 39px;
  }
  .detail-grid {
    grid-template-columns: 260px 1fr;
  }
  .columns {
    gap: 16px;
  }
  .hero {
    padding: 23px;
  }
}
@media (max-width: 800px) {
  .layout {
    display: block;
  }
  .sidebar {
    display: none;
  }
  .main {
    display: block;
  }
  .topbar {
    height: 72px;
    padding: 0 22px;
    padding-top: env(safe-area-inset-top);
    height: calc(72px + env(safe-area-inset-top));
  }
  .topbar .crumb {
    display: none;
  }
  .mobile-brand {
    display: flex;
  }
  .mobile-brand strong {
    font-size: 23px;
  }
  .mobile-brand img {
    width: 34px;
    height: 34px;
  }
  .top-actions {
    gap: 4px;
  }
  .top-actions > .date {
    display: none;
  }
  .connection {
    font-size: 9px;
  }
  .content {
    padding: 26px 20px 105px;
  }
  .page-head {
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 23px;
  }
  h1 {
    font-size: 28px;
  }
  .page-head p {
    font-size: 12px;
    max-width: 240px;
  }
  .page-head .btn {
    padding: 12px;
  }
  .stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 11px;
    margin-bottom: 20px;
  }
  .stat {
    padding: 17px;
  }
  .stat strong {
    font-size: 31px;
  }
  .stat small {
    font-size: 9px;
  }
  .hero {
    margin-bottom: 22px;
    padding: 23px;
    flex-direction: column;
    align-items: start;
    gap: 16px;
  }
  .hero h2 {
    font-size: 23px;
    max-width: 300px;
  }
  .hero-art {
    right: 0;
  }
  .columns {
    grid-template-columns: 1fr;
    gap: 19px;
  }
  .provider-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .mobile-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fffffff5;
    backdrop-filter: blur(12px);
    border-top: 1px solid var(--line);
    justify-content: space-around;
    z-index: 900;
    padding: 7px 7px max(8px, env(safe-area-inset-bottom));
  }
  .mobile-nav a {
    font-size: 9px;
    display: grid;
    justify-items: center;
    gap: 5px;
    padding: 8px 9px;
    color: #939d8c;
  }
  .mobile-nav a.active {
    color: var(--green);
    font-weight: 750;
  }
  .mobile-nav a.add {
    background: var(--green);
    color: white;
    border-radius: 12px;
    padding: 9px 17px;
    margin-top: -18px;
    border: 5px solid var(--paper);
    font-size: 8px;
  }
  .mobile-nav .icon {
    width: 21px;
    height: 21px;
  }
  .toolbar {
    gap: 8px;
  }
  .toolbar select {
    flex: 1;
    max-width: none;
    min-width: 100px;
  }
  .search {
    flex-basis: 100%;
  }
  .detail-grid {
    grid-template-columns: 1fr;
  }
  .detail-card dl {
    grid-template-columns: 1fr 1fr;
  }
  .detail-card dt {
    margin-top: 3px;
  }
  .detail-card dd {
    margin-top: 3px;
  }
  .settings-grid {
    grid-template-columns: 1fr;
  }
  .auth-wrap {
    grid-template-columns: 1fr;
  }
  .auth-aside {
    padding: 25px 28px;
    min-height: 200px;
    gap: 20px;
  }
  .auth-aside h1 {
    font-size: 29px;
    max-width: 290px;
    margin: 0;
  }
  .auth-aside .eyebrow,
  .auth-aside p,
  .cork-art,
  .auth-bottom {
    display: none;
  }
  .auth-main {
    padding: 30px 25px 50px;
    display: flex;
    justify-content: center;
  }
  .auth-card h2 {
    font-size: 25px;
  }
  .auth-card > p {
    margin-bottom: 22px;
  }
  .auth-card .eyebrow {
    display: none;
  }
  .map {
    height: 440px;
  }
  .bottom-note {
    display: none;
  }
  #toast {
    bottom: 100px;
  }
  .form-actions {
    padding-bottom: max(7px, env(safe-area-inset-bottom));
  }
  .panel-head {
    padding: 20px;
  }
  .page-head .actions {
    justify-content: flex-end;
  }
  .map-legend {
    gap: 8px;
  }
  .map-legend .badge {
    font-size: 8px;
  }
}
@media (max-width: 460px) {
  .provider-grid {
    grid-template-columns: 1fr;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .form-grid .full {
    grid-column: auto;
  }
  .page-head > .btn .label-long {
    display: none;
  }
  .stat-top {
    font-size: 10px;
  }
  .stat-icon {
    width: 28px;
    height: 28px;
  }
  .content {
    padding-inline: 17px;
  }
  .topbar {
    padding-inline: 17px;
  }
  .connection {
    max-width: 105px;
  }
  .provider-row .badge {
    font-size: 8px;
  }
  .row-end {
    max-width: 140px;
  }
  .hero .btn {
    width: 100%;
  }
  dialog {
    padding: 21px 18px;
  }
  .visit-card .visit-summary {
    gap: 10px;
    flex-wrap: wrap;
  }
  .map {
    height: 380px;
  }
  .form-actions .btn {
    flex: 1;
  }
  .auth-aside {
    min-height: 185px;
  }
  .auth-aside h1 {
    font-size: 26px;
  }
}
.field-label {
  display: block;
  color: #64745f;
  font-size: 11px;
  font-weight: 650;
  margin-bottom: 7px;
}
.near-list .provider-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 9px;
}
.near-list .provider-icon {
  display: none;
}
.near-list .row-end {
  display: flex;
  justify-content: space-between;
  max-width: none;
  width: 100%;
  text-align: left;
}
@media (max-width: 800px) {
  input,
  select,
  textarea {
    font-size: 16px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
