:root {
  color-scheme: light;
  --ink: #172a25;
  --muted: #65736d;
  --line: #dce5df;
  --paper: #fff;
  --canvas: #f3f6f2;
  --green: #176b52;
  --green-dark: #10533f;
  --mint: #e9f3ec;
  --blue: #e8f1fa;
  --blue-ink: #315c7b;
  --coral: #f7ebe7;
  --danger: #a7463d;
  --shadow: 0 12px 34px rgba(24, 55, 42, 0.06);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    'PingFang SC',
    'Microsoft YaHei',
    sans-serif;
}
a {
  color: inherit;
}
button,
input,
select {
  font: inherit;
}
.wrap {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}
.topbar {
  min-height: 72px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 760;
  text-decoration: none;
}
.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: white;
  background: var(--green);
  font-size: 19px;
}
.brand-logo {
  display: block;
  width: auto;
  height: 46px;
  mix-blend-mode: multiply;
}
.nav {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-size: 13px;
}
.nav a {
  text-decoration: none;
}
.nav a:hover {
  color: var(--green);
}
.button {
  display: inline-flex;
  min-height: 40px;
  padding: 0 15px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--ink);
  background: white;
  text-decoration: none;
  cursor: pointer;
  font-size: 13px;
  font-weight: 650;
}
.button:hover {
  border-color: #98b7a5;
}
.button.primary {
  border-color: var(--green);
  background: var(--green);
  color: white;
}
.button.primary:hover {
  background: var(--green-dark);
}
.button.danger {
  color: var(--danger);
}
.button.small {
  min-height: 32px;
  padding: 0 10px;
  font-size: 12px;
}
.button:disabled {
  opacity: 0.55;
  cursor: wait;
}
.public-main {
  padding: 50px 0 48px;
}
.public-head {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  align-items: center;
  gap: 40px;
  padding: 16px 0 48px;
}
.eyebrow {
  color: var(--green);
  font-size: 11px;
  font-weight: 750;
  text-transform: uppercase;
}
h1 {
  margin: 12px 0;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.12;
}
.lead {
  max-width: 580px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.75;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 22px;
}
.route-preview {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow);
}
.route-preview h2 {
  margin: 0 0 19px;
  font-size: 15px;
}
.route-row {
  display: grid;
  grid-template-columns: 84px 1fr;
  align-items: center;
  gap: 13px;
  min-height: 58px;
  border-top: 1px solid #edf0ed;
  font-size: 13px;
}
.route-region {
  font-weight: 700;
}
.route-destination {
  min-width: 0;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.route-region.base {
  color: var(--green);
}
.route-region.rule {
  color: var(--blue-ink);
}
.section {
  padding: 25px 0 13px;
  border-top: 1px solid var(--line);
}
.section h2 {
  margin: 0 0 18px;
  font-size: 17px;
}
.section-intro {
  max-width: 760px;
  margin: -6px 0 20px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}
.security-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.security-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(330px, 0.9fr);
  align-items: center;
  gap: 38px;
  padding: 10px 0 12px;
}
.security-copy > h2 {
  margin: 9px 0 12px;
  font-size: 23px;
}
.security-copy .section-intro {
  margin: 0 0 21px;
}
.security-points {
  grid-template-columns: 1fr;
  gap: 0;
}
.security-points > div {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 10px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}
.security-index {
  color: var(--green);
  font-size: 11px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.security-points h3 {
  margin: 0 0 4px;
  font-size: 13px;
}
.security-points p {
  max-width: 330px;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}
.section-note {
  margin: 16px 0 0;
  color: #849089;
  font-size: 11px;
  line-height: 1.6;
}
.security-visual {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #edf4ef;
}
.security-visual img {
  display: block;
  width: 100%;
  height: auto;
}
.security-visual figcaption {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 15px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
}
.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #2e9b70;
  box-shadow: 0 0 0 3px #2e9b701a;
}
.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 15px;
}
.section-heading h2 {
  margin: 5px 0 0;
}
.section-heading .section-intro {
  max-width: 440px;
  margin: 0;
  text-align: right;
}
.platform-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}
.platform-item {
  display: flex;
  min-width: 0;
  min-height: 68px;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--paper);
}
.platform-item img {
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  object-fit: contain;
}
.platform-item span {
  min-width: 0;
  color: var(--ink);
  font-size: 13px;
  font-weight: 680;
  overflow-wrap: anywhere;
}
.footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 0 30px;
  color: #7a8780;
  font-size: 11px;
  border-top: 1px solid var(--line);
}
.page-main {
  padding: 32px 0 56px;
}
.page-title {
  margin: 0 0 6px;
  font-size: 25px;
}
.page-subtitle {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}
.member-workspace-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--line);
}
.member-status-actions {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  flex-wrap: nowrap;
  gap: 9px;
}
.member-status-actions > * {
  white-space: nowrap;
}
.member-status-actions #openPasswordDialog {
  min-height: 42px;
}
.georoute-tab-intro {
  margin: 0 0 16px;
}
.status-line {
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--muted);
  background: white;
  font-size: 12px;
}
.status-line.warning {
  border-color: #e6d6b8;
  color: #805c23;
  background: #fbf6e8;
}
.status-line.urgent {
  border-color: #efb4ae;
  color: #a32620;
  background: #fff1ef;
}
.panel {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow);
}
.panel + .panel {
  margin-top: 16px;
}
.panel h2 {
  margin: 0 0 15px;
  font-size: 16px;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.field {
  min-width: 0;
}
.field.full {
  grid-column: 1 / -1;
}
.field label {
  display: block;
  margin: 0 0 7px;
  font-size: 12px;
  font-weight: 700;
}
.field input,
.field select {
  width: 100%;
  height: 42px;
  padding: 0 11px;
  border: 1px solid #d6e0d9;
  border-radius: 6px;
  outline: 0;
  background: #fff;
  color: var(--ink);
  font-size: 13px;
}
.field input:focus,
.field select:focus {
  border-color: #78a38d;
  box-shadow: 0 0 0 3px #176b5215;
}
.field small {
  display: block;
  margin-top: 5px;
  color: #849089;
  font-size: 11px;
  line-height: 1.5;
}
.inline-form {
  display: flex;
  align-items: end;
  gap: 10px;
}
.inline-form .field {
  flex: 1;
}
.check-row {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 42px;
  color: var(--muted);
  font-size: 13px;
}
.check-row input {
  width: 16px;
  height: 16px;
  accent-color: var(--green);
}
.rule-entry {
  display: grid;
  grid-template-columns: minmax(140px, 0.5fr) 1.5fr auto;
  align-items: end;
  gap: 10px;
}
.create-rule-rows {
  display: grid;
  gap: 8px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  touch-action: pan-x;
}
.create-rule-row .button {
  min-width: 98px;
}
.create-rule-row > .button {
  min-height: 42px;
}
.rule-list {
  display: grid;
  gap: 8px;
  margin: 14px 0 0;
}
.rule-item {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border: 1px solid #e6ece7;
  border-radius: 6px;
  font-size: 12px;
}
.rule-country {
  padding: 5px 7px;
  border-radius: 5px;
  color: var(--blue-ink);
  background: var(--blue);
  font-weight: 700;
}
.rule-url {
  min-width: 0;
  color: var(--muted);
  overflow-wrap: anywhere;
  text-decoration: none;
}
.rule-url:hover,
.route-short-url:hover {
  color: var(--green);
  text-decoration: underline;
}
.route-short-url[aria-disabled='true'],
.rule-url[aria-disabled='true'] {
  cursor: not-allowed;
  text-decoration: none;
}
.route-card-body .rule-list {
  gap: 0;
}
.rule-list-scroll,
.rule-entry-scroll {
  min-width: 0;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  touch-action: pan-x;
}
.route-card-body .rule-entry-scroll {
  margin-top: 12px;
}
.route-card-body .rule-item {
  grid-template-columns: minmax(220px, 24%) minmax(0, 1fr) 132px;
  gap: 14px;
  min-height: 50px;
  padding: 7px 0;
  border: 0;
  border-bottom: 1px solid #edf0ed;
  border-radius: 0;
  font-size: 13px;
}
.route-card-body .rule-entry {
  grid-template-columns: minmax(220px, 24%) minmax(0, 1fr) 132px;
  gap: 14px;
  align-items: center;
}
.route-card-body .rule-item:last-child {
  border-bottom: 0;
}
.route-card-body .rule-country {
  display: inline-block;
  width: max-content;
  max-width: 100%;
  padding: 4px 7px;
}
.route-card-body .rule-entry .button,
.route-card-body .rule-item .button {
  width: 100%;
  min-height: 42px;
}
.route-list {
  display: grid;
  gap: 12px;
}
.route-list-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 14px;
}
.route-search-control {
  position: relative;
  display: block;
  flex: 0 0 30%;
  width: 30%;
  min-width: 0;
}
.route-search-icon {
  position: absolute;
  top: 50%;
  left: 14px;
  width: 14px;
  height: 14px;
  border: 1.5px solid #83928a;
  border-radius: 50%;
  transform: translateY(-58%);
  pointer-events: none;
}
.route-search-icon::after {
  position: absolute;
  right: -5px;
  bottom: -3px;
  width: 6px;
  height: 1.5px;
  border-radius: 1px;
  background: #83928a;
  content: '';
  transform: rotate(45deg);
}
.route-search-control input {
  display: block;
  width: 100%;
  height: 42px;
  padding: 0 13px 0 40px;
  border: 1px solid var(--line);
  border-radius: 7px;
  outline: 0;
  background: #fff;
  color: var(--ink);
  font-size: 13px;
  transition:
    border-color 0.16s,
    box-shadow 0.16s;
}
.route-search-control input::placeholder {
  color: #89958e;
}
.route-search-control input:focus {
  border-color: #78a38d;
  box-shadow: 0 0 0 3px #176b5215;
}
.route-search-control input::-webkit-search-cancel-button {
  cursor: pointer;
}
.route-count {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}
.route-list-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.route-list-footer[hidden] {
  display: none;
}
.route-pagination-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
}
.route-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  overflow: hidden;
}
.route-card-head {
  display: grid;
  grid-template-columns: minmax(140px, 0.7fr) minmax(220px, 1fr) max-content;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border-bottom: 1px solid #edf0ed;
}
.route-name-column,
.route-short-column {
  min-width: 0;
}
.route-card-head h3 {
  margin: 0;
  font-size: 14px;
}
.route-short-column {
  display: block;
}
.route-short-url {
  display: block;
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  text-overflow: ellipsis;
  text-decoration: none;
  white-space: nowrap;
}
.route-card-tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 7px;
}
.route-card-body {
  padding: 14px 16px;
}
.route-card-body .rule-list {
  margin-top: 0;
}
.route-link {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 13px;
  color: var(--green);
  font-size: 12px;
  font-weight: 700;
  overflow-wrap: anywhere;
}
.switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 11px;
  cursor: pointer;
}
.switch input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.switch-track {
  width: 36px;
  height: 21px;
  padding: 3px;
  border-radius: 20px;
  background: #c8d1cb;
  transition: 0.15s;
}
.switch-track::after {
  content: '';
  display: block;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: white;
  transition: 0.15s;
}
.switch input:checked + .switch-track {
  background: var(--green);
}
.switch input:checked + .switch-track::after {
  transform: translateX(15px);
}
.switch input:focus-visible + .switch-track {
  outline: 3px solid #176b5230;
}
.notice {
  display: none;
  margin: 12px 0 0;
  padding: 10px 12px;
  border-radius: 6px;
  color: var(--danger);
  background: #fbefec;
  font-size: 12px;
  line-height: 1.5;
}
.notice.show {
  display: block;
}
.notice.success {
  color: #276644;
  background: #eaf4ec;
}
.empty {
  padding: 25px 15px;
  color: var(--muted);
  text-align: center;
  font-size: 13px;
}
.auth-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}
.auth-box {
  width: min(420px, 100%);
  padding: 25px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: var(--shadow);
}
.auth-box .brand {
  margin-bottom: 24px;
  color: var(--green);
}
.auth-box .brand-logo {
  height: 58px;
}
.auth-box h1 {
  margin: 0 0 7px;
  font-size: 24px;
}
.auth-box > p {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}
.auth-box .field {
  margin-bottom: 14px;
}
.captcha-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 160px;
  gap: 8px;
}
.auth-box .captcha-refresh {
  width: 160px;
  height: 42px;
  margin: 0;
  padding: 0;
  overflow: hidden;
}
.captcha-refresh img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.auth-box .button {
  width: 100%;
  margin-top: 5px;
}
.auth-box .captcha-refresh {
  margin-top: 0;
}
.auth-footer {
  margin-top: 17px;
  color: var(--muted);
  text-align: center;
  font-size: 12px;
}
.auth-footer a {
  color: var(--green);
}
.table-wrap {
  overflow-x: auto;
}
.pagination {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 12px;
}
.pagination.pagination-split {
  justify-content: space-between;
}
.pagination-total {
  margin-right: auto;
  white-space: nowrap;
}
.pagination-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
}
.pagination[hidden] {
  display: none !important;
}
.member-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
}
.admin-member-table th:last-child {
  text-align: center;
}
.member-days {
  width: 100%;
  height: 42px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  background: #fff;
  font: inherit;
  font-size: 13px;
}
.member-days:focus {
  border-color: #78a38d;
  outline: 3px solid #176b5215;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  text-align: left;
}
.admin-tabs {
  display: flex;
  gap: 20px;
  margin: 0 0 20px;
  border-bottom: 1px solid var(--line);
}
.member-workspace-toolbar .admin-tabs {
  flex: 1 1 auto;
  min-width: max-content;
  margin: 0;
  border-bottom: 0;
}
.member-add-toolbar {
  display: flex;
  justify-content: flex-end;
  margin: 0 0 12px;
}
.admin-tab {
  min-height: 42px;
  padding: 0 4px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 14px;
  font-weight: 650;
  cursor: pointer;
}
.admin-tab[aria-selected='true'] {
  border-bottom-color: var(--green);
  color: var(--green);
}
.admin-tab:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}
.admin-tab-panel[hidden] {
  display: none;
}
.route-stats-table {
  min-width: 820px;
}
.stats-data-tabs {
  display: flex;
  gap: 4px;
  width: fit-content;
  margin: 0 0 12px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.stats-data-tabs button {
  min-height: 34px;
  padding: 0 14px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
}
.stats-data-tabs button.is-active {
  background: var(--mint);
  color: var(--green);
}
.stats-data-tabs button:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}
.landing-stats-view .landing-stats-date {
  width: 100%;
  height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 13px;
}
.stats-toolbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 14px;
}
.stats-toolbar .route-search-control {
  flex: 0 0 30%;
  width: 30%;
}
.stats-date-control {
  display: grid;
  gap: 5px;
  width: 230px;
  margin-left: auto;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}
.stats-date-picker {
  position: relative;
}
.stats-date-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  font-size: 13px;
  text-align: left;
  transition:
    border-color 0.16s,
    box-shadow 0.16s;
}
.stats-date-trigger:hover,
.stats-date-trigger:focus-visible {
  border-color: #78a38d;
  outline: 0;
  box-shadow: 0 0 0 3px #176b5215;
}
.stats-calendar-icon {
  position: relative;
  width: 16px;
  height: 15px;
  flex: 0 0 16px;
  border: 1.5px solid #718179;
  border-radius: 3px;
}
.stats-calendar-icon::before {
  position: absolute;
  top: 4px;
  right: 0;
  left: 0;
  border-top: 1px solid #718179;
  content: '';
}
.stats-calendar-icon::after {
  position: absolute;
  top: -3px;
  left: 3px;
  width: 2px;
  height: 5px;
  border-left: 1.5px solid #718179;
  box-shadow: 6px 0 #718179;
  content: '';
}
.stats-date-popover {
  position: absolute;
  z-index: 30;
  top: calc(100% + 8px);
  right: 0;
  width: 292px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 36px #1d30281c;
}
.stats-date-monthbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  color: var(--ink);
  font-size: 14px;
}
.stats-date-monthbar button {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
}
.stats-date-monthbar button:hover:not(:disabled) {
  border-color: var(--line);
  background: #f4f8f5;
  color: var(--green);
}
.stats-date-monthbar button:disabled {
  cursor: default;
  opacity: 0.35;
}
.stats-date-weekdays,
.stats-date-days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
  text-align: center;
}
.stats-date-weekdays {
  margin-bottom: 5px;
  color: #8a968f;
  font-size: 11px;
}
.stats-date-weekdays span {
  display: grid;
  height: 28px;
  place-items: center;
}
.stats-date-day,
.stats-date-empty-day {
  display: grid;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 12px;
}
.stats-date-day {
  cursor: pointer;
}
.stats-date-day:hover:not(:disabled) {
  background: #e9f4ef;
  color: var(--green);
}
.stats-date-day.is-today:not(.is-selected) {
  border-color: #a9c8b9;
}
.stats-date-day.is-selected {
  background: var(--green);
  color: #fff;
  font-weight: 700;
}
.stats-date-day:disabled {
  color: #c2cbc5;
  cursor: default;
}
.stats-member-name {
  min-width: 110px;
  white-space: nowrap;
}
.stats-route-name {
  min-width: 150px;
}
.stats-short-link a {
  display: block;
  max-width: 280px;
  overflow: hidden;
  color: var(--muted);
  text-overflow: ellipsis;
  text-decoration: none;
  white-space: nowrap;
}
.stats-short-link a:hover {
  color: var(--green);
  text-decoration: underline;
}
.stats-number {
  font-variant-numeric: tabular-nums;
}
.stats-number-button {
  padding: 3px 6px;
  border: 1px solid transparent;
  border-radius: 4px;
  color: var(--green);
  background: transparent;
  font: inherit;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
}
.stats-number-button:hover,
.stats-number-button:focus-visible {
  border-color: var(--line);
  background: #f3f8f4;
}
.b-rule-stats-summary {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 13px;
}
.b-rule-stats-wrap {
  max-height: 55vh;
  overflow: auto;
}
.b-rule-stats-table {
  min-width: 500px;
}
.b-rule-stats-table a {
  display: block;
  max-width: 340px;
  overflow: hidden;
  color: var(--muted);
  text-overflow: ellipsis;
  text-decoration: none;
  white-space: nowrap;
}
.b-rule-stats-table a:hover {
  color: var(--green);
  text-decoration: underline;
}
.b-rule-stats-empty {
  margin: 14px 0 0;
  white-space: normal;
}
.stats-footnote {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 11px;
}
th,
td {
  padding: 11px 9px;
  border-bottom: 1px solid #e9eeea;
  white-space: nowrap;
}
th {
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
}
.badge {
  display: inline-flex;
  padding: 4px 7px;
  border-radius: 4px;
  background: var(--mint);
  color: var(--green);
  font-size: 10px;
  font-weight: 700;
}
.badge.expired {
  color: #8a4c35;
  background: var(--coral);
}
.badge.disabled {
  color: #fff;
  background: #7d3933;
}
.password-dialog {
  width: min(460px, calc(100% - 28px));
  max-height: calc(100% - 32px);
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: var(--paper);
  box-shadow: 0 22px 70px rgba(24, 55, 42, 0.2);
}
.password-dialog::backdrop {
  background: rgba(17, 35, 28, 0.42);
}
.dialog-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.dialog-heading h2 {
  margin: 5px 0 0;
  font-size: 19px;
}
.dialog-description {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}
.password-dialog .field {
  margin-top: 14px;
}
.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 20px;
}
.dialog-actions .button {
  min-width: 86px;
}
.layer-mask {
  position: fixed;
  z-index: 10000;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(17, 35, 28, 0.42);
}
.layer-panel {
  width: min(520px, 100%);
  max-height: min(90vh, 760px);
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 22px 70px rgba(24, 55, 42, 0.2);
}
.layer-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 15px 18px;
  border-bottom: 1px solid var(--line);
}
.layer-heading h2 {
  margin: 0;
  font-size: 17px;
}
.layer-heading .button {
  min-width: 32px;
  padding: 0 8px;
  font-size: 18px;
}
.layer-body {
  padding: 18px;
}
.layer-body .form-grid {
  grid-template-columns: 1fr 1fr;
}
.layer-body .form-grid > .field:last-child {
  grid-column: 1 / -1;
}
.layer-member-form #memberForm .form-grid > .field:last-child {
  display: flex;
  justify-content: flex-end;
}
.layer-body .notice {
  display: none;
}
.layer-body .dialog-actions {
  margin-top: 16px;
}
.layer-confirm .layer-body {
  line-height: 1.6;
}
.layer-actions {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  margin-top: 20px;
}
.layer-toast {
  position: fixed;
  z-index: 10001;
  top: 22px;
  left: 50%;
  max-width: min(560px, calc(100% - 28px));
  padding: 12px 17px;
  transform: translate(-50%, -8px);
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--ink);
  background: white;
  box-shadow: var(--shadow);
  opacity: 0;
  transition:
    opacity 0.16s,
    transform 0.16s;
  font-size: 13px;
  line-height: 1.5;
}
.layer-toast.show {
  transform: translate(-50%, 0);
  opacity: 1;
}
.layer-toast.success {
  border-color: #b8d6c2;
  color: #276644;
  background: #eff7f0;
}
.layer-toast.error {
  border-color: #e5c5bd;
  color: #963f34;
  background: #fff6f3;
}
@media (max-width: 760px) {
  .wrap {
    width: min(100% - 28px, 600px);
  }
  .table-wrap {
    -webkit-overflow-scrolling: touch;
  }
  .member-actions {
    flex-wrap: nowrap;
    width: max-content;
  }
  .member-actions .button {
    flex: 0 0 auto;
  }
  .public-head {
    grid-template-columns: 1fr;
    gap: 25px;
    padding-bottom: 35px;
  }
  .public-main {
    padding-top: 32px;
  }
  .security-points {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .security-layout {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .security-points {
    gap: 0;
  }
  .security-points p {
    max-width: none;
  }
  .section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }
  .section-heading .section-intro {
    text-align: left;
  }
  .platform-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .member-workspace-toolbar {
    justify-content: space-between;
    flex-wrap: wrap;
    overflow: visible;
  }
  .member-status-actions {
    flex: 0 0 auto;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .field.full {
    grid-column: auto;
  }
  .rule-entry {
    grid-template-columns: 1fr;
  }
  .rule-item {
    grid-template-columns: 1fr auto;
  }
  .rule-url {
    grid-column: 1 / -1;
    grid-row: 2;
  }
  .create-rule-row {
    grid-template-columns: 220px minmax(280px, 1fr) auto;
    min-width: 640px;
    align-items: center;
  }
  .route-card-body .rule-entry,
  .route-card-body .rule-item {
    grid-template-columns: 220px minmax(280px, 1fr) 132px;
    min-width: 720px;
    gap: 14px;
  }
  .route-card-body .rule-country {
    max-width: none;
    white-space: nowrap;
  }
  .route-card-body .rule-url {
    grid-column: auto;
    grid-row: auto;
    white-space: nowrap;
  }
  .route-card-body .rule-item .button {
    grid-column: auto;
    grid-row: auto;
  }
  .footer {
    flex-direction: column;
    gap: 6px;
  }
}
@media (max-width: 760px) {
  .stats-toolbar {
    align-items: stretch;
    flex-direction: column;
  }
  .stats-date-control {
    width: min(280px, 100%);
    margin-left: auto;
  }
  .route-card-head {
    grid-template-columns: 140px 260px max-content;
    min-width: 790px;
    gap: 16px;
    padding: 12px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    touch-action: pan-x;
  }
  .member-georoute-view .route-card-head {
    grid-template-columns: 140px 260px max-content;
    min-width: 790px;
    gap: 16px;
    padding: 12px;
  }
  .route-card-tools {
    width: max-content;
    min-width: max-content;
    justify-content: flex-start;
    flex-wrap: nowrap;
    gap: 7px;
    overflow: visible;
  }
  .route-card-tools .switch,
  .route-card-tools .button {
    flex: 0 0 auto;
    white-space: nowrap;
  }
}
@media (max-width: 480px) {
  .nav {
    gap: 10px;
    font-size: 12px;
  }
  .nav .button {
    min-height: 35px;
    padding: 0 10px;
  }
  .topbar {
    min-height: 62px;
  }
  h1 {
    font-size: 34px;
  }
  .lead {
    font-size: 14px;
  }
  .platform-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
  }
  .platform-item {
    min-height: 60px;
    gap: 8px;
    padding: 9px;
  }
  .platform-item img {
    flex-basis: 25px;
    width: 25px;
    height: 25px;
  }
  .platform-item span {
    font-size: 11px;
  }
  .panel {
    padding: 15px;
  }
  .pagination {
    justify-content: center;
    gap: 9px;
  }
  .route-count {
    align-self: center;
  }
  .route-list-footer {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
  }
  .route-count {
    text-align: left;
  }
  .route-pagination-controls {
    justify-content: flex-end;
    margin-left: auto;
    gap: 6px;
  }
  .inline-form {
    align-items: stretch;
    flex-direction: column;
  }
}

.landing-editor-view[hidden],
.landing-list-view[hidden] {
  display: none;
}
.landing-editor-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(330px, 0.85fr);
  align-items: start;
  gap: 20px;
}
.landing-builder,
.landing-preview-panel {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow);
}
.landing-builder {
  display: grid;
  gap: 24px;
  padding: 22px;
}
.landing-builder-section {
  display: grid;
  gap: 15px;
}
.landing-section-heading {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--ink);
  font-size: 13px;
}
.landing-section-heading > span:first-child {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--green);
  background: var(--mint);
  font-size: 11px;
  font-weight: 700;
}
.landing-section-heading small {
  margin-left: auto;
  color: var(--muted);
  font-weight: 500;
}
.landing-builder .field {
  margin: 0;
}
.landing-builder .field label > span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 400;
}
.landing-builder textarea {
  width: 100%;
  min-height: 82px;
  resize: vertical;
}
.landing-builder input,
.landing-builder textarea {
  border-color: var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  font-family: inherit;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.5;
}
.landing-builder textarea {
  padding: 10px 11px;
}
.landing-builder input::placeholder,
.landing-builder textarea::placeholder {
  color: #849089;
  opacity: 1;
}
.landing-builder input:focus,
.landing-builder textarea:focus {
  border-color: #78a38d;
  box-shadow: 0 0 0 3px #176b5215;
  outline: 0;
}
.landing-logo-control {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.landing-logo-control input {
  height: 42px;
  min-width: 0;
  flex: 1;
  padding: 4px;
  font-size: 12px;
}
.landing-logo-control input::file-selector-button {
  min-height: 30px;
  margin-right: 8px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 5px;
  color: var(--ink);
  background: var(--canvas);
  font: inherit;
  cursor: pointer;
}
.landing-button-fields {
  display: grid;
  gap: 10px;
}
.landing-button-card {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f8faf8;
}
.landing-button-card-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 11px;
}
.landing-button-card-heading .button {
  min-height: 30px;
  padding: 3px 9px;
  font-size: 11px;
}
.landing-button-card input {
  width: 100%;
  min-width: 0;
  height: 42px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 6px;
  outline: 0;
  appearance: none;
  color: var(--ink);
  background: #fff;
  font-size: 13px;
}
.landing-add-button {
  min-height: 42px;
  border-style: dashed;
  border-color: #b9d3c4;
  color: var(--green);
  background: #f8fbf9;
}
.landing-add-button:hover {
  border-color: #78a38d;
  background: var(--mint);
}
.landing-form-actions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 9px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.landing-preview-panel {
  padding: 18px;
  background: var(--paper);
}
.landing-preview-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-size: 12px;
}
.landing-preview-heading strong {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.landing-preview-heading i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4da781;
}
.landing-preview-heading > span {
  color: var(--muted);
  font-size: 11px;
}
.landing-phone-wrap {
  display: grid;
  place-items: center;
  margin: 16px 0 12px;
  padding: 18px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--canvas);
}
.landing-phone-screen {
  width: min(100%, 330px);
  min-height: 480px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 26px 20px 18px;
  border: 1px solid #eceaf1;
  border-radius: 23px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(42, 36, 64, 0.08);
  text-align: center;
}
.landing-preview-content {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-block: auto;
}
.landing-theme-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.landing-theme-option {
  min-width: 0;
  min-height: 62px;
  padding: 8px 10px;
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
  text-align: left;
  cursor: pointer;
}
.landing-theme-option:hover {
  border-color: #90b9aa;
}
.landing-theme-option.is-selected {
  border-color: var(--green);
  box-shadow: 0 0 0 2px rgba(23, 107, 82, 0.12);
}
.landing-theme-swatch {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border: 1px solid rgba(31, 45, 40, 0.16);
  border-radius: 7px;
  background: linear-gradient(
    135deg,
    var(--theme-background) 0 38%,
    var(--theme-text) 38% 68%,
    var(--theme-button) 68% 100%
  );
}
.landing-theme-option > span:last-child {
  overflow: hidden;
  font-size: 13px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}
@media (max-width: 560px) {
  .landing-theme-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.landing-preview-logo,
.landing-preview-fallback {
  width: 62px;
  height: 62px;
  flex: 0 0 auto;
  border-radius: 19px;
  object-fit: cover;
}
.landing-preview-fallback {
  display: grid;
  place-items: center;
  color: #fff;
  background: #8063d1;
  font-size: 26px;
  font-weight: 700;
}
.landing-preview-logo[hidden],
.landing-preview-fallback[hidden] {
  display: none;
}
.landing-phone-screen h3 {
  max-width: 100%;
  margin: 14px 0 6px;
  color: #272431;
  font-size: 18px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.landing-preview-content > p {
  max-width: 100%;
  margin: 0 0 18px;
  color: #817d89;
  font-size: 11px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.landing-preview-content > p[hidden] {
  display: none;
}
.landing-preview-buttons {
  width: 100%;
  display: grid;
  justify-items: center;
  gap: 9px;
}
.landing-preview-button {
  position: relative;
  width: min(calc(13.2em + 2px), 100%);
  min-height: 46px;
  display: grid;
  place-items: center;
  padding: 10px 0;
  border: 1px solid var(--landing-button-color, var(--green));
  border-radius: 8px;
  color: var(--landing-button-text-color, #fff);
  background: var(--landing-button-color, var(--green));
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  overflow-wrap: anywhere;
  transition:
    background-color 0.18s ease,
    transform 0.18s ease;
}
.landing-preview-button:hover {
  filter: brightness(0.92);
  transform: translateY(-1px);
}
.landing-preview-empty {
  padding: 16px 10px;
  border: 1px dashed #e0dce9;
  border-radius: 10px;
  color: #aaa6b2;
  font-size: 10px;
  line-height: 1.6;
}
.landing-preview-brand {
  margin-top: 0;
  padding-top: 24px;
  color: #aaa6b2;
  font-size: 10px;
}
.landing-preview-caption {
  margin: 0;
  color: #898592;
  text-align: center;
  font-size: 11px;
}
.admin-landing-table {
  min-width: 780px;
}
.landing-list-title,
.landing-list-link,
.landing-list-actions {
  white-space: nowrap;
}
.landing-list-title > img {
  width: 32px;
  height: 32px;
  margin-right: 9px;
  border: 1px solid #eceaf1;
  border-radius: 8px;
  object-fit: cover;
  vertical-align: middle;
}
.landing-list-title > span {
  display: inline-block;
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: middle;
}
.landing-list-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}
@media (max-width: 980px) {
  .landing-editor-layout {
    grid-template-columns: 1fr;
  }
  .landing-preview-panel {
    order: 0;
  }
}
@media (max-width: 600px) {
  .landing-builder {
    padding: 16px;
  }
  .landing-preview-panel {
    padding: 12px;
  }
  .landing-phone-wrap {
    padding: 12px 8px;
  }
  .landing-phone-screen {
    min-height: 430px;
    padding: 24px 16px 16px;
  }
}

.admin-layout {
  display: grid;
  grid-template-columns: 276px minmax(0, 1fr);
  min-height: 100vh;
  background: #f4f6f4;
}
.admin-sidebar {
  position: sticky;
  top: 0;
  display: flex;
  height: 100vh;
  min-height: 560px;
  flex-direction: column;
  padding: 30px 20px 16px;
  border-right: 1px solid var(--line);
  background: #fbfcfb;
}
.admin-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
  margin: 0 8px 48px;
}
.admin-brand .brand-logo {
  display: block;
  height: 60px;
}
.admin-brand .brand-caption {
  color: #82918a;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1px;
}
.admin-sidebar-label {
  margin: 0 12px 14px;
  color: #84918b;
  font-size: 12px;
  font-weight: 700;
}
.admin-menu {
  display: grid;
  gap: 7px;
}
.admin-menu-item {
  position: relative;
  display: grid;
  min-height: 52px;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 0 12px;
  border: 0;
  border-radius: 7px;
  color: #586760;
  background: transparent;
  text-align: left;
  font: inherit;
  font-size: 14px;
  font-weight: 650;
  cursor: pointer;
  transition:
    background 140ms ease,
    color 140ms ease;
}
.admin-menu-item:hover {
  background: #f0f4f1;
  color: var(--green);
}
.admin-menu-item.is-active {
  color: var(--green);
  background: #e8f3ee;
}
.admin-menu-item.is-active::before {
  position: absolute;
  left: 7px;
  width: 3px;
  height: 24px;
  border-radius: 3px;
  background: var(--green);
  content: '';
}
.admin-menu-icon {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid #aebbb4;
  border-radius: 6px;
  color: #77857e;
  font-size: 16px;
}
.admin-menu-item.is-active .admin-menu-icon {
  border-color: #6b9e89;
  color: var(--green);
  background: #f6faf7;
}
.admin-sidebar-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding: 15px 4px 0;
  border-top: 1px solid var(--line);
}
.member-sidebar-bottom {
  justify-content: flex-end;
}
.admin-local-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #788780;
  font-size: 11px;
}
.admin-local-status i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #51a782;
}
.admin-logout {
  padding: 7px 10px;
  border: 1px solid #e7cbc7;
  border-radius: 5px;
  color: var(--danger);
  background: #fff;
  font: inherit;
  font-size: 12px;
  font-weight: 650;
  cursor: pointer;
}
.admin-logout:hover {
  color: var(--danger);
  background: #fff6f5;
}
.admin-main {
  display: flex;
  min-width: 0;
  flex-direction: column;
}
.admin-topbar {
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 clamp(24px, 4.5vw, 64px);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
}
.admin-breadcrumb {
  display: flex;
  align-items: center;
  gap: 13px;
  color: #8b9791;
  font-size: 13px;
}
.admin-breadcrumb strong {
  color: #44544c;
  font-weight: 680;
}
.admin-user {
  overflow: hidden;
  max-width: 220px;
  color: #42524a;
  font-size: 13px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.admin-content {
  width: min(1380px, 100%);
  flex: 1;
  margin: 0 auto;
  padding: 42px clamp(24px, 4.5vw, 64px) 58px;
}
.admin-view[hidden] {
  display: none;
}
.admin-page-heading {
  margin: 0 0 34px;
}
.admin-eyebrow {
  color: var(--green);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10px;
  font-weight: 700;
}
.admin-page-heading h1 {
  margin: 8px 0 7px;
  font-size: 30px;
  line-height: 1.2;
}
.admin-page-heading p,
.admin-panel-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}
.admin-data-panel {
  overflow: hidden;
  padding: 0;
}
.admin-panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
}
.admin-panel-heading h2 {
  margin: 0 0 5px;
  font-size: 16px;
}
.admin-panel-heading p {
  font-size: 12px;
}
.admin-data-panel > .route-list-toolbar,
.admin-data-panel > .table-wrap,
.admin-data-panel > .pagination,
.admin-data-panel > .notice,
.admin-data-panel > .admin-config-note {
  margin-right: 24px;
  margin-left: 24px;
}
.admin-data-panel > .route-list-toolbar {
  margin-top: 17px;
  margin-bottom: 13px;
}
.admin-route-table,
.admin-landing-table {
  min-width: 900px;
}
.admin-route-table th,
.admin-landing-table th {
  color: #77857e;
  background: #f8faf8;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}
.admin-route-table td,
.admin-landing-table td {
  max-width: 300px;
  vertical-align: middle;
}
.admin-landing-table th:last-child {
  text-align: center;
}
.admin-landing-table .landing-list-actions {
  justify-content: center;
}
.admin-route-name-cell {
  min-width: 120px;
  font-weight: 650;
}
.admin-address-link {
  display: block;
  max-width: 230px;
  overflow: hidden;
  color: #64736b;
  font-size: 11px;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.admin-address-link:hover {
  color: var(--green);
  text-decoration: underline;
}
.admin-route-actions {
  display: flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}
.admin-empty-cell {
  padding: 52px 18px;
  color: #87938d;
  text-align: center;
}
.admin-data-panel > .pagination {
  margin-top: 12px;
  margin-bottom: 12px;
}
.admin-data-panel > .notice {
  margin-top: 6px;
  margin-bottom: 14px;
}
.admin-config-note {
  padding: 16px 0 19px;
  border-top: 1px solid var(--line);
  color: #7c8982;
  font-size: 11px;
}
.admin-tab-panel .member-add-toolbar {
  margin: 0 0 14px;
}
.admin-tab-panel .member-add-toolbar .button {
  margin: 0 clamp(24px, 4.5vw, 64px);
}
.admin-tab-panel .route-list-toolbar {
  padding-top: 2px;
}
.admin-tab-panel .pagination {
  margin-bottom: 14px;
}
.admin-route-dialog {
  width: min(720px, calc(100% - 28px));
  overflow-y: auto;
}
.admin-route-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px;
  margin-top: 19px;
}
.admin-route-form-grid .field {
  min-width: 0;
}
.admin-route-url-field,
.admin-route-rules-field {
  grid-column: 1 / -1;
}
.admin-route-form-grid input,
.admin-route-form-grid select {
  width: 100%;
  min-width: 0;
  height: 42px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  background: #fff;
  font-size: 13px;
}
.admin-route-form-grid input:focus,
.admin-route-form-grid select:focus {
  border-color: #78a38d;
  outline: 3px solid #176b5215;
}
.admin-route-enabled {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  gap: 9px;
  align-self: end;
  color: #526159;
  font-size: 13px;
  font-weight: 650;
}
.admin-route-enabled input {
  width: 17px;
  height: 17px;
  accent-color: var(--green);
}
.admin-rule-rows {
  display: grid;
  gap: 9px;
  margin: 8px 0 11px;
}
.admin-rule-row {
  display: grid;
  grid-template-columns: minmax(130px, 0.7fr) minmax(0, 1.1fr) auto auto;
  gap: 9px;
}
.admin-rule-row .button {
  min-width: 58px;
}
.admin-route-dialog .notice {
  margin-top: 9px;
}
.admin-route-dialog .dialog-actions {
  margin-top: 13px;
}

select,
.field select,
.admin-route-form-grid select {
  appearance: none;
  -webkit-appearance: none;
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='m2.5 4.5 3.5 3 3.5-3' stroke='%2365736d' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}
.field select,
.admin-route-form-grid select {
  padding-right: 38px;
}

.member-profile-panel {
  padding: 24px;
}
.member-profile-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.member-profile-heading h2 {
  margin: 0;
}
.member-profile-account-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
  margin: 0;
}
.member-profile-account-row > span {
  overflow-wrap: anywhere;
}
.member-profile-account-row .button {
  flex: 0 0 auto;
}
.member-profile-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 28px;
  margin: 18px 0 0;
}
.member-profile-grid > div {
  min-width: 0;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}
.member-profile-grid dt {
  color: var(--muted);
  font-size: 12px;
}
.member-profile-grid dd {
  margin: 8px 0 0;
  color: var(--ink);
  font-size: 14px;
  font-weight: 650;
  overflow-wrap: anywhere;
}
.member-profile-grid .status-line {
  display: inline-block;
  max-width: 100%;
  font-size: 13px;
  font-weight: 500;
  white-space: normal;
}
.member-georoute-view .admin-data-panel > .route-list-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 15px 24px 12px;
}
.member-georoute-form-heading + #createRouteForm {
  padding-top: 18px;
}
.member-georoute-form-heading + #createRouteForm .route-submit-field {
  display: flex;
  justify-content: flex-end;
}
.member-georoute-view .route-list-toolbar .route-search-control {
  flex: 0 0 30%;
  width: 30%;
  min-width: 0;
}
.member-georoute-view .route-list-toolbar > .button {
  flex: 0 0 auto;
  white-space: nowrap;
}
.landing-list-view .admin-data-panel > .route-list-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 15px 24px 12px;
}
.landing-list-view .route-list-toolbar .route-search-control {
  flex: 0 0 30%;
  width: 30%;
  min-width: 0;
}
.landing-list-view .route-list-toolbar > .button {
  flex: 0 0 auto;
  white-space: nowrap;
}
.member-georoute-view .route-list {
  gap: 8px;
  margin: 0 24px;
}
.member-georoute-view .route-card {
  border-color: #dce5df;
  transition: border-color 140ms ease;
}
.member-georoute-view .route-card:hover {
  border-color: #adc8b8;
}
.member-georoute-view .route-card-head {
  grid-template-columns: minmax(150px, 0.58fr) minmax(220px, 1fr) max-content;
  gap: 18px;
  min-height: 62px;
  padding: 12px 16px;
}
.member-georoute-view .route-card-head h3 {
  font-size: 14px;
  line-height: 1.35;
}
.member-georoute-view .route-short-url {
  font-size: 12px;
}
.member-georoute-view .route-card-tools {
  flex-wrap: nowrap;
  gap: 8px;
}
.member-georoute-view .route-card-tools .switch,
.member-georoute-view .route-card-tools .button {
  flex: 0 0 auto;
  white-space: nowrap;
}
.member-georoute-view .route-list-footer {
  margin: 14px 24px 16px;
  padding-top: 13px;
}

@media (max-width: 900px) {
  .admin-layout {
    grid-template-columns: 220px minmax(0, 1fr);
  }
  .admin-sidebar {
    padding-right: 13px;
    padding-left: 13px;
  }
  .admin-content,
  .admin-topbar {
    padding-right: 24px;
    padding-left: 24px;
  }
}
@media (max-width: 680px) {
  .admin-layout {
    display: flex;
    flex-direction: column;
  }
  .admin-sidebar {
    position: static;
    height: auto;
    min-height: 0;
    padding: 13px 14px 10px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .admin-brand {
    margin: 0 0 14px;
  }
  .admin-brand .brand-logo {
    height: 48px;
  }
  .admin-sidebar-label,
  .admin-local-status {
    display: none;
  }
  .admin-menu {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 5px;
  }
  .admin-menu-item {
    min-height: 43px;
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 3px;
    padding: 5px 2px;
    font-size: 11px;
  }
  .admin-menu-icon {
    width: 23px;
    height: 23px;
    border: 0;
    font-size: 15px;
  }
  .admin-menu-item.is-active::before {
    top: auto;
    bottom: 0;
    left: 50%;
    width: 26px;
    height: 2px;
    transform: translateX(-50%);
  }
  .admin-sidebar-bottom {
    position: static;
    justify-content: flex-end;
    margin: 0;
    padding: 8px 0 0;
    border-top: 1px solid var(--line);
  }
  .admin-logout {
    font-size: 11px;
  }
  .admin-topbar {
    min-height: 54px;
    padding: 0 17px;
  }
  .admin-breadcrumb {
    gap: 8px;
    font-size: 11px;
  }
  .admin-user {
    max-width: 120px;
    font-size: 11px;
  }
  .admin-content {
    padding: 27px 15px 38px;
  }
  .admin-page-heading {
    margin-bottom: 22px;
  }
  .admin-page-heading h1 {
    font-size: 25px;
  }
  .member-profile-grid {
    grid-template-columns: 1fr;
  }
  .member-profile-heading {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .member-georoute-view .admin-panel-heading {
    align-items: center;
  }
  .member-georoute-view .route-list {
    margin-right: 15px;
    margin-left: 15px;
  }
  .member-georoute-view .admin-data-panel > .route-list-toolbar {
    margin: 13px 15px 11px;
  }
  .member-georoute-view .route-list-footer {
    margin: 12px 15px 14px;
  }
  .admin-panel-heading {
    align-items: flex-start;
    padding: 16px;
  }
  .admin-data-panel > .route-list-toolbar,
  .admin-data-panel > .table-wrap,
  .admin-data-panel > .pagination,
  .admin-data-panel > .notice,
  .admin-data-panel > .admin-config-note {
    margin-right: 15px;
    margin-left: 15px;
  }
  .admin-data-panel > .route-list-toolbar {
    margin-top: 13px;
  }
  .admin-tab-panel .member-add-toolbar .button {
    margin-right: 15px;
    margin-left: 15px;
  }
  .admin-route-form-grid {
    grid-template-columns: 1fr;
  }
  .admin-route-url-field,
  .admin-route-rules-field {
    grid-column: auto;
  }
  .admin-rule-row {
    grid-template-columns: minmax(0, 1fr) auto auto;
  }
  .admin-rule-row select {
    grid-column: 1 / -1;
  }
  .admin-rule-row input[type='url'] {
    grid-column: 1 / -1;
  }
}
