:root {
  --ink: #20352f;
  --muted: #626f68;
  --green: #234e40;
  --sage: #eaf0e8;
  --lime: #dce7b5;
  --line: #e6e9e4;
  --bg: #f6f7f3;
  --white: #fff;
  --red: #a95443;
  --amber: #9d762f;
  --radius: 13px;
  --shadow: 0 8px 35px #20352f0c;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}
a {
  color: var(--green);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #7da78d;
  outline-offset: 3px;
}
svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  vertical-align: middle;
}
button {
  border: 0;
  background: none;
  color: inherit;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: 30px;
  letter-spacing: -1.15px;
  font-weight: 620;
  margin-bottom: 8px;
}
h2 {
  font-size: 19px;
  letter-spacing: -0.5px;
}
h3 {
  font-size: 14px;
  letter-spacing: -0.2px;
}
small,
.muted {
  color: var(--muted);
}
small {
  font-size: 13px;
}
.mono {
  font-variant-numeric: tabular-nums;
}
.boot {
  min-height: 100vh;
  display: grid;
  place-content: center;
  gap: 20px;
  text-align: center;
}
.brandmark {
  font-weight: 800;
  font-size: 25px;
  color: #e3ecc6;
  background: var(--green);
  border-radius: 11px;
  padding: 9px 12px;
  letter-spacing: -3px;
  display: inline-block;
}
.brandmark span {
  margin: 0 2px;
  color: #a3bf8c;
}
.layout {
  display: grid;
  grid-template-columns: 224px minmax(0, 1fr);
  min-height: 100vh;
}
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 224px;
  background: #fff;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  padding: 28px 17px;
  z-index: 20;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 10px 30px;
}
.brand-name {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -1px;
}
.brand .brandmark {
  font-size: 21px;
  padding: 7px 9px;
}
.workspace-switch {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 12px 10px;
  margin-bottom: 26px;
  font-weight: 550;
}
.workspace-switch > span:first-child {
  background: #f0f1eb;
  border-radius: 6px;
  padding: 6px;
}
.workspace-switch small {
  display: block;
  font-weight: 400;
  font-size: 13px;
  margin-top: 2px;
}
.nav-label {
  font-size: 13px;
  color: #9aa39c;
  font-weight: 650;
  letter-spacing: 1.5px;
  margin: 0 12px 10px;
}
.nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.nav-link {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 12px;
  border-radius: 8px;
  color: #707d75;
  font-size: 13px;
  text-align: left;
  font-weight: 500;
}
.nav-link:hover {
  background: #f7f9f4;
  text-decoration: none;
}
.nav-link.active {
  background: var(--sage);
  color: var(--green);
  font-weight: 650;
}
.nav-link .count {
  margin-left: auto;
  font-size: 13px;
  background: #e0e8d9;
  padding: 2px 6px;
  border-radius: 4px;
}
.sidebar-bottom {
  margin-top: auto;
  padding-top: 32px;
}
.feed-state {
  margin: 0 7px 18px;
  padding: 13px;
  background: #f7f8f4;
  border: 1px solid var(--line);
  border-radius: 9px;
  font-size: 13px;
}
.feed-state small {
  display: block;
  margin-top: 6px;
  line-height: 1.5;
}
.dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #6c9975;
  margin-right: 5px;
}
.dot.amber {
  background: #bd9146;
}
.user {
  border-top: 1px solid var(--line);
  padding: 18px 6px 0;
  display: flex;
  align-items: center;
  gap: 9px;
}
.avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #ebeede;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 650;
}
.user strong {
  font-size: 13px;
  display: block;
}
.user small {
  font-size: 13px;
  display: block;
  margin-top: 3px;
}
.main {
  grid-column: 2;
  min-width: 0;
}
.topbar {
  height: 72px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 36px;
  background: #ffffff85;
}
.breadcrumb {
  font-size: 13px;
  color: #8b948e;
  display: flex;
  align-items: center;
  gap: 12px;
}
.breadcrumb strong {
  color: #55675d;
  font-weight: 500;
}
.top-actions {
  display: flex;
  gap: 15px;
  align-items: center;
}
.key-hint {
  border: 1px solid var(--line);
  border-radius: 4px;
  font-size: 13px;
  padding: 2px 4px;
  margin-left: 15px;
}
.search-shortcut {
  color: #89938c;
  font-size: 13px;
}
.icon-button {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
}
.icon-button:hover {
  background: var(--sage);
}
.page {
  padding: 32px 36px 50px;
  max-width: 1800px;
  margin: 0 auto;
}
.page-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 27px;
}
.page-heading p {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 0;
  line-height: 1.6;
}
.eyebrow {
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 1.5px;
  color: #899484;
  margin-bottom: 10px;
}
.heading-actions {
  display: flex;
  gap: 9px;
  align-items: center;
  padding-top: 7px;
}
.btn {
  border: 1px solid #dfe4dc;
  background: #fff;
  padding: 9px 13px;
  border-radius: 7px;
  font-weight: 550;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  white-space: nowrap;
  min-height: 34px;
}
.btn:hover {
  background: #f3f6ed;
}
.btn.primary {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}
.btn.primary:hover {
  background: #163b2c;
}
.btn.quiet {
  background: transparent;
}
.btn.danger {
  color: var(--red);
}
.btn svg {
  width: 14px;
  height: 14px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 26px;
}
.stat {
  background: #fff;
  border: 1px solid var(--line);
  padding: 17px 20px;
  border-radius: 10px;
}
.stat-label {
  font-size: 13px;
  color: #758477;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.stat-label svg {
  width: 15px;
  height: 15px;
  color: #9aab97;
}
.stat-value {
  font-size: 28px;
  font-weight: 580;
  letter-spacing: -1px;
  line-height: 1.1;
  margin: 16px 0 9px;
}
.stat-foot {
  font-size: 13px;
  color: #899288;
  display: flex;
  align-items: center;
  gap: 4px;
}
.stat-foot b {
  font-weight: 500;
  color: #66875c;
}
.surface {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.surface-head {
  padding: 17px 21px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.surface-head h3 {
  margin: 0;
}
.surface-head small {
  margin-left: 8px;
  font-weight: 400;
}
.filters {
  display: flex;
  gap: 9px;
  align-items: center;
  padding: 16px 20px;
  flex-wrap: wrap;
}
.search {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 0 10px;
  height: 34px;
  min-width: 230px;
  color: #a1aaa2;
}
.search input {
  border: 0;
  outline: none !important;
  width: 100%;
  color: var(--ink);
  background: transparent;
  font-size: 13px;
}
.search svg {
  width: 14px;
  height: 14px;
}
.select {
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 8px 26px 8px 10px;
  font-size: 13px;
  background: #fff;
  color: #69786b;
  max-width: 180px;
}
.view-switch {
  display: flex;
  background: #f3f5ef;
  padding: 3px;
  border-radius: 7px;
  gap: 3px;
  margin-left: auto;
}
.view-switch button {
  padding: 6px 10px;
  display: flex;
  gap: 6px;
  align-items: center;
  border-radius: 5px;
  color: #85917f;
  font-size: 13px;
}
.view-switch button svg {
  width: 13px;
  height: 13px;
}
.view-switch button.active {
  background: #fff;
  box-shadow: 0 1px 4px #20352f10;
  color: var(--ink);
}
.data-note {
  padding: 10px 20px;
  border-top: 1px solid #eff1eb;
  border-bottom: 1px solid #eff1eb;
  background: #fbfcf7;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #7a866f;
  line-height: 1.6;
}
.data-note svg {
  width: 13px;
  height: 13px;
}
.table-wrap {
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  white-space: nowrap;
}
th {
  font-size: 13px;
  font-weight: 550;
  letter-spacing: 0.25px;
  color: #899386;
  padding: 12px 16px;
  background: #fafbf8;
  border-bottom: 1px solid var(--line);
}
td {
  padding: 13px 16px;
  border-bottom: 1px solid #eff1ec;
  font-size: 13px;
}
th:first-child,
td:first-child {
  padding-left: 20px;
}
tr:last-child td {
  border-bottom: 0;
}
.clickable {
  cursor: pointer;
}
.clickable:hover {
  background: #fbfcf8;
}
.property-cell {
  display: flex;
  gap: 11px;
  align-items: center;
  min-width: 230px;
}
.property-thumb {
  width: 52px;
  height: 43px;
  object-fit: cover;
  border-radius: 6px;
  background: #edf0e5;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9ba88c;
}
.property-thumb svg {
  width: 22px;
  height: 22px;
}
.property-cell strong {
  font-weight: 600;
  font-size: 13px;
  display: block;
  color: #3b4d3d;
  max-width: 240px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.property-cell small {
  display: block;
  margin-top: 5px;
  font-size: 13px;
  color: #9ba396;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  padding: 4px 7px;
  border-radius: 5px;
  line-height: 1;
  white-space: nowrap;
  background: #f1f3ee;
  color: #7a8774;
}
.badge.green {
  background: #edf4e6;
  color: #62854b;
}
.badge.amber {
  background: #fcf4e5;
  color: #a68440;
}
.badge.red {
  background: #f9ede8;
  color: #b16d59;
}
.badge.blue {
  background: #edf3f6;
  color: #7592a1;
}
.badge .dot {
  width: 4px;
  height: 4px;
  margin-right: 0;
  background: currentColor;
}
.host-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #7b8870;
}
.host-avatar {
  width: 20px;
  height: 20px;
  border-radius: 5px;
  background: #eaf0e1;
  color: #869b70;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 13px;
  font-weight: 650;
}
.group-row td {
  background: #f5f7f0;
  font-weight: 600;
  color: #69795b;
  font-size: 13px;
  padding-top: 10px;
  padding-bottom: 10px;
}
.group-row .group-count {
  margin-left: 8px;
  font-weight: 400;
  color: #95a08c;
}
.channel {
  font-size: 13px;
  color: #8a9683;
  display: flex;
  gap: 5px;
  align-items: center;
}
.channel svg {
  width: 12px;
  height: 12px;
}
.channel.live {
  color: #608845;
}
.cell-sub {
  font-size: 13px;
  color: #9aa391;
  display: block;
  margin-top: 4px;
}
.price {
  font-variant-numeric: tabular-nums;
  font-weight: 550;
}
.table-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-top: 1px solid var(--line);
  color: #909a88;
  font-size: 13px;
}
.pagination {
  display: flex;
  align-items: center;
  gap: 9px;
}
.pagination .btn {
  min-height: 26px;
  padding: 5px 8px;
  font-size: 13px;
}
.empty {
  padding: 65px 30px;
  text-align: center;
  max-width: 550px;
  margin: 0 auto;
}
.empty-icon {
  background: #f0f3e8;
  color: #9bad83;
  border-radius: 15px;
  width: 54px;
  height: 54px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.empty-icon svg {
  width: 25px;
  height: 25px;
}
.empty h2 {
  font-size: 18px;
}
.empty p {
  font-size: 13px;
  color: #8b9681;
  line-height: 1.8;
  margin: 12px 0 20px;
}
.loading {
  padding: 90px;
  text-align: center;
  color: #8b9681;
}
.spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid #dce6d0;
  border-top-color: #58794a;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
#map {
  height: 530px;
  z-index: 1;
}
.leaflet-popup-content {
  font:
    12px -apple-system,
    sans-serif;
  line-height: 1.7;
}
.leaflet-popup-content strong {
  font-size: 14px;
}
.map-caption {
  padding: 12px 20px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
}
.login {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.login-art {
  background: var(--green);
  color: #e5eccd;
  padding: 65px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}
.login-art:after {
  content: "";
  position: absolute;
  border: 1px solid #f0ffc020;
  width: 600px;
  height: 600px;
  right: -200px;
  bottom: -350px;
  border-radius: 50%;
  box-shadow:
    0 0 0 90px #ffffff04,
    0 0 0 180px #ffffff04;
}
.login-art h1 {
  font-size: 58px;
  font-weight: 450;
  line-height: 1.1;
  letter-spacing: -3px;
  max-width: 470px;
}
.login-art p {
  color: #adc0aa;
  line-height: 1.8;
  max-width: 350px;
}
.login-main {
  display: grid;
  place-content: center;
  padding: 40px;
}
.login-card {
  max-width: 340px;
}
.login-card h1 {
  font-size: 28px;
}
.login-card p {
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 25px;
}
.login-card .btn {
  width: 100%;
  margin-bottom: 12px;
  padding: 13px;
}
.preview-note {
  font-size: 13px;
  color: #9b957a;
  background: #f6f4e9;
  border: 1px solid #eee9d6;
  border-radius: 7px;
  padding: 13px;
  line-height: 1.7;
}
.login-footer {
  font-size: 13px;
  color: #97a18f;
  margin-top: 30px;
}
.detail-overlay {
  position: fixed;
  inset: 0;
  background: #20352f35;
  backdrop-filter: blur(3px);
  z-index: 50;
  display: flex;
  justify-content: flex-end;
}
.drawer {
  width: min(700px, 94vw);
  background: #f9faf6;
  height: 100vh;
  overflow: auto;
  box-shadow: -20px 0 60px #20352f20;
  animation: slide 0.2s ease-out;
}
.drawer-header {
  position: sticky;
  top: 0;
  z-index: 3;
  background: #ffffffed;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  padding: 18px 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.drawer-header h2 {
  font-size: 16px;
  margin: 0;
}
.drawer-body {
  padding: 25px;
}
.detail-cover {
  width: 100%;
  height: 230px;
  object-fit: cover;
  border-radius: 11px;
  background: #ebeee2;
  margin-bottom: 20px;
}
.detail-meta {
  display: flex;
  gap: 8px;
  margin: 12px 0 23px;
  flex-wrap: wrap;
}
.detail-section {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 16px;
}
.detail-section h3 {
  margin-bottom: 17px;
}
.facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.facts dt {
  color: #95a08c;
  font-size: 13px;
  margin-bottom: 6px;
}
.facts dd {
  margin: 0;
  font-size: 13px;
}
.detail-description {
  font-size: 13px;
  color: #7f8b75;
  line-height: 1.85;
  white-space: pre-line;
  max-height: 210px;
  overflow: auto;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}
.field {
  display: block;
  margin-bottom: 15px;
}
.field label {
  display: block;
  font-size: 13px;
  color: #79876e;
  margin-bottom: 7px;
  font-weight: 550;
}
.field input,
.field textarea,
.field select {
  width: 100%;
  border: 1px solid #dfe5d8;
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
  padding: 10px 11px;
  font-size: 13px;
}
.field textarea {
  resize: vertical;
  line-height: 1.7;
  min-height: 120px;
}
.form-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 12px;
}
.helper {
  font-size: 13px;
  color: #98a18e;
  line-height: 1.7;
}
.tabs {
  display: flex;
  gap: 18px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 18px;
}
.tabs button {
  padding: 8px 0 12px;
  color: #9aa58e;
  font-size: 13px;
  border-bottom: 2px solid transparent;
}
.tabs button.active {
  color: var(--green);
  border-color: var(--green);
}
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 17px;
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 22px;
}
.card .card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.card h3 {
  font-size: 17px;
}
.card p {
  color: #8d9981;
  font-size: 13px;
  line-height: 1.8;
}
.card-footer {
  border-top: 1px solid var(--line);
  padding-top: 14px;
  margin-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.attention-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 20px;
}
.attention-item {
  padding: 19px 22px;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 13px;
  align-items: flex-start;
}
.attention-item:last-child {
  border-bottom: 0;
}
.attention-item > span {
  padding: 8px;
  border-radius: 7px;
  background: #f7f0df;
  color: #ba9859;
}
.attention-item p {
  font-size: 13px;
  color: #8a967e;
  line-height: 1.7;
  margin: 6px 0 0;
}
.attention-item h3 {
  font-size: 13px;
  margin: 0;
}
.attention-item time {
  font-size: 13px;
  color: #a8af9f;
  margin-left: auto;
  white-space: nowrap;
}
.timeline {
  border-left: 1px solid var(--line);
  margin: 15px 5px 0;
  padding-left: 22px;
}
.timeline-item {
  position: relative;
  padding-bottom: 20px;
  font-size: 13px;
  color: #7b8a6d;
}
.timeline-item:before {
  content: "";
  position: absolute;
  left: -26px;
  top: 3px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #bacba6;
}
.timeline-item small {
  display: block;
  margin-top: 5px;
}
.message {
  padding: 13px 15px;
  background: #eef3e7;
  border-radius: 10px 10px 10px 2px;
  max-width: 88%;
  margin: 12px 0;
  font-size: 13px;
  line-height: 1.7;
  white-space: pre-wrap;
}
.message.outgoing {
  margin-left: auto;
  background: #f0f2ed;
  border-radius: 10px 10px 2px 10px;
}
.message small {
  display: block;
  margin-top: 7px;
}
.payment-total {
  font-size: 40px;
  letter-spacing: -1px;
  margin: 12px 0 20px;
}
.source-example {
  background: #f6f8f1;
  border-radius: 7px;
  padding: 14px;
  font-size: 13px;
  line-height: 1.8;
  color: #88977a;
  margin: 12px 0;
}
.source-example a {
  display: block;
  margin-top: 7px;
  font-size: 13px;
}
.chip-list {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.chip {
  border: 1px solid var(--line);
  border-radius: 20px;
  font-size: 13px;
  padding: 5px 9px;
  color: #859474;
}
.divider {
  border-top: 1px solid var(--line);
  margin: 20px 0;
}
.notice {
  padding: 13px 15px;
  border: 1px solid #e9e5d4;
  border-radius: 8px;
  background: #fcf9ef;
  color: #a18d5b;
  font-size: 13px;
  line-height: 1.7;
  margin-bottom: 17px;
}
.mobile-menu {
  display: none;
}
#toast {
  position: fixed;
  left: 50%;
  bottom: 25px;
  transform: translate(-50%, 25px);
  opacity: 0;
  pointer-events: none;
  background: #234e40;
  color: #fff;
  border-radius: 9px;
  padding: 13px 22px;
  z-index: 100;
  font-size: 13px;
  box-shadow: 0 10px 35px #20352f20;
  transition: 0.2s;
  max-width: 90vw;
}
#toast.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}
#toast.error {
  background: #8b4d3e;
}
.filter-result {
  padding: 0 20px 12px;
  font-size: 13px;
  color: #97a18f;
}
.inline-link {
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.inline-link svg {
  width: 12px;
  height: 12px;
}
.check-row {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  color: #839275;
  font-size: 13px;
  line-height: 1.7;
  margin: 17px 0;
}
.error-state {
  margin: 25px 0;
  border: 1px solid #eac9bd;
  background: #fbf0eb;
  border-radius: 10px;
  padding: 20px;
  color: #9f6853;
}
.sidebar-scrim {
  display: none;
}
@keyframes slide {
  from {
    transform: translateX(30px);
    opacity: 0.6;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}
@media (min-width: 1600px) {
  .page {
    padding: 40px 50px;
  }
  .topbar {
    padding: 0 50px;
  }
  td {
    padding-top: 15px;
    padding-bottom: 15px;
  }
}
@media (max-width: 1150px) {
  .layout {
    grid-template-columns: 195px minmax(0, 1fr);
  }
  .sidebar {
    width: 195px;
    padding: 25px 12px;
  }
  .page {
    padding: 26px 23px;
  }
  .topbar {
    padding: 0 23px;
  }
  .stats {
    gap: 9px;
  }
  .stat {
    padding: 15px;
  }
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .search-shortcut {
    display: none;
  }
  .attention-grid {
    grid-template-columns: 1fr;
  }
  .page-heading {
    gap: 12px;
  }
  .heading-actions .btn {
    padding: 8px 10px;
  }
}
@media (max-width: 760px) {
  .layout {
    display: block;
  }
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.2s;
    width: 224px;
  }
  .sidebar.open {
    transform: translateX(0);
  }
  .sidebar-scrim.open {
    display: block;
    position: fixed;
    inset: 0;
    background: #20352f45;
    z-index: 19;
  }
  .mobile-menu {
    display: flex;
  }
  .main {
    width: 100%;
  }
  .topbar {
    height: 60px;
    padding: 0 16px;
  }
  .breadcrumb {
    gap: 7px;
  }
  .top-actions .muted {
    display: none;
  }
  .page {
    padding: 24px 16px;
  }
  .page-heading {
    display: block;
    margin-bottom: 22px;
  }
  .heading-actions {
    margin-top: 15px;
  }
  h1 {
    font-size: 27px;
  }
  .stats {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .stat {
    padding: 15px;
  }
  .stat-value {
    font-size: 25px;
    margin-top: 12px;
  }
  .filters {
    padding: 13px;
    gap: 8px;
  }
  .search {
    min-width: 0;
    flex: 1 0 100%;
  }
  .select {
    flex: 1;
    min-width: 0;
  }
  .view-switch {
    margin-left: 0;
  }
  .table-footer {
    padding: 13px;
    font-size: 13px;
    gap: 10px;
  }
  .card-grid {
    grid-template-columns: 1fr;
  }
  .login {
    grid-template-columns: 1fr;
  }
  .login-art {
    display: none;
  }
  .login-main {
    min-height: 100vh;
    padding: 35px;
  }
  .drawer-body {
    padding: 17px;
  }
  .drawer-header {
    padding: 17px;
  }
  .detail-cover {
    height: 190px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .data-note {
    font-size: 13px;
    padding: 11px 13px;
  }
  #map {
    height: 440px;
  }
  .top-actions {
    gap: 5px;
  }
  .surface-head {
    padding: 16px;
  }
  .surface-head small {
    display: none;
  }
}

.allocation-row {
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
  margin-bottom: 18px;
}
.sidebar {
  overflow-y: auto;
}
tr.clickable:focus-visible {
  outline: 3px solid #7da78d;
  outline-offset: -3px;
}
@media (max-width: 760px) {
  .filters > .select { flex: 1 1 calc(50% - 4px); }
  .view-switch { flex: 1 0 100%; width: 100%; }
  .view-switch button { flex: 1; }
}

/* Comfortable operational type scale, with dense metadata kept secondary. */
body { font-size: 15px; line-height: 1.5; }
h3 { font-size: 16px; }
.btn, .select, .nav-link, .tabs button { font-size: 14px; }
.btn { padding: 10px 16px; min-height: 40px; }
a.btn { text-decoration: none; }
.field input, .field textarea, .field select { font-size: 16px; line-height: 1.5; }
.field label { font-size: 14px; color: #56675b; }
.helper, .notice, .detail-description { line-height: 1.65; }
select, .select, .field select {
  appearance: none;
  background-color: white;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%234b6255' stroke-width='1.8'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
  padding-right: 44px;
}
.attention-item .btn { padding: 10px 16px; margin-top: 10px; }
.attention-item p { color: #62725f; }
.drawer-breadcrumb { display:flex; align-items:center; gap:12px; }
.drawer:has(#channel-content) { width: min(1160px, 96vw); }
.draft-workspace { display:grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap:24px; align-items:start; }
.channel-preview { position:sticky; top:84px; min-width:0; }
.preview-label { display:block; font-size:13px; color:var(--muted); margin-bottom:12px; }
.fb-preview, .cl-preview { background:white; border:1px solid #d8ded9; border-radius:10px; overflow:hidden; }
.fb-preview header { display:flex; align-items:center; gap:10px; background:#f4f6f9; padding:14px; color:#1877f2; font-weight:700; }
.fb-preview header span { margin-left:auto; color:#657085; font-size:13px; font-weight:400; }
.fb-preview img, .cl-preview img { width:100%; height:220px; object-fit:cover; display:block; }
.ad-copy { padding:20px; overflow-wrap:anywhere; }
.ad-copy h2 { font-size:21px; line-height:1.3; }
.ad-copy h3 { margin-top:22px; }
.preview-message { padding:10px; text-align:center; border-radius:6px; background:#e5efff; color:#1764bd; font-weight:600; }
.cl-preview { font-family:Georgia,serif; border-radius:0; }
.cl-preview header { background:#eee; border-bottom:1px solid #ccc; padding:12px; color:#551a8b; font-size:20px; }
.cl-preview header span { display:block; font-size:13px; }
.cl-preview h2 { font-family:Arial,sans-serif; font-size:21px; }
.cl-actions { color:#551a8b; display:block; margin-bottom:16px; }
.cl-tags { background:#eee; display:inline-block; padding:6px; }
.preview-no-photo { height:180px; display:grid; place-content:center; background:var(--sage); }
.source-room-list { border:1px solid var(--line); border-radius:8px; padding:16px; margin:16px 0; }
.source-room-list>div { display:flex; gap:16px; justify-content:space-between; border-top:1px solid var(--line); padding:8px 0; }
.filters { flex-wrap:wrap; }
.search { min-width:260px; }
.inventory-filter-panel { position:relative; }
.inventory-filter-panel summary { list-style:none; cursor:pointer; }
.filter-fields { position:absolute; z-index:5; right:0; width:330px; max-width:85vw; padding:20px; border:1px solid var(--line); background:white; border-radius:10px; box-shadow:var(--shadow); }
.filter-fields .field { margin-bottom:14px; }
.page-jump { display:flex; align-items:center; gap:8px; white-space:nowrap; }
.page-jump input { width:65px; padding:6px; border:1px solid var(--line); border-radius:6px; font-size:14px; }
.pagination[hidden] { display:none; }
.text-button { color:var(--green); text-decoration:underline; padding:0 4px; }
.map-carousel { position:relative; width:290px; margin:-1px -1px 12px; }
.map-carousel img { width:100%; height:190px; object-fit:cover; border-radius:7px; display:block; }
.carousel-controls { position:absolute; bottom:10px; left:10px; right:10px; display:flex; align-items:center; justify-content:space-between; }
.carousel-controls button { width:34px; height:34px; border-radius:50%; color:#20352f; background:white; font-size:24px; box-shadow:0 2px 8px #0003; }
.carousel-count { background:#0008; color:white; border-radius:12px; padding:3px 9px; font-size:13px; }
.portfolio-property-list { max-height:360px; overflow:auto; padding:12px; border:1px solid var(--line); border-radius:8px; margin:16px 0; }
.portfolio-property-list label { display:flex; align-items:start; gap:12px; padding:12px 0; border-bottom:1px solid var(--line); }
.portfolio-property-list input { width:18px; height:18px; margin-top:4px; flex-shrink:0; }
@media(max-width:800px) {
  .draft-workspace { grid-template-columns:1fr; }
  .channel-preview { position:static; }
  .table-footer { align-items:start; flex-wrap:wrap; gap:12px; }
  .filter-fields { position:fixed; right:16px; top:170px; max-height:65vh; overflow:auto; }
  .form-actions { flex-wrap:wrap; }
}
small, .cell-sub, .helper, .stat-foot, .map-caption, .data-note, .table-footer { color: #5f6e64; }
.field select { padding-right:44px; }
.property-cell strong { font-size:15px; }
.property-cell small, .cell-sub, .group-count { font-size:13px; }
@media(min-width:1100px) { .filters .search { flex:1 1 290px; } }

/* Hosts and listing communications share the inventory table rhythm. */
.compact-table th, .compact-table td { padding:14px 16px; }
.thread-list { display:grid; gap:10px; margin-top:16px; }
.thread-row { display:block; width:100%; text-align:left; padding:16px; border:1px solid var(--line); border-radius:10px; background:var(--surface,#fff); color:inherit; line-height:1.55; }
.thread-row:hover { background:#f3f6f0; border-color:#b6c6b3; }
.thread-heading { display:flex; flex-wrap:wrap; gap:8px; align-items:center; }
.thread-excerpt { display:block; margin-top:8px; font-size:14px; white-space:pre-wrap; overflow-wrap:anywhere; }
.communications details { margin-top:20px; }
.communications summary, .detail-section>summary { cursor:pointer; padding:12px 0; font-weight:600; }
.thread-toolbar { display:flex; flex-wrap:wrap; gap:10px; margin-top:18px; }
.association-options { display:grid; gap:14px; margin:16px 0; }
.association-options label { display:flex; align-items:start; gap:12px; }
.association-options input { width:18px; height:18px; flex-shrink:0; margin-top:4px; }
.message { overflow-wrap:anywhere; }
.filter-count { display:inline-flex; align-items:center; justify-content:center; min-width:22px; height:22px; border-radius:11px; padding:0 5px; background:#345b3d; color:#fff; font-size:13px; font-weight:700; }
.filter-count[hidden], .applied-filters[hidden] { display:none; }
.applied-filters { display:flex; flex-wrap:wrap; align-items:center; gap:8px; padding:0 24px 16px; }
.filter-chip { display:inline-flex; align-items:center; gap:7px; border:1px solid #cad7c5; padding:7px 10px; background:#f0f5ec; border-radius:20px; font-size:13px; color:#314d36; }
.filter-chip svg { width:14px; height:14px; }
.leaflet-popup-content { font:14px/1.5 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; margin:16px; }
.map-property-card { width:290px; max-width:calc(100vw - 80px); }
.map-card-copy { display:grid; gap:5px; }
.map-card-copy>strong { font-size:18px; line-height:1.4; }
.map-card-cta.btn { display:inline-flex; align-items:center; justify-content:center; gap:10px; padding:11px 16px; min-height:44px; margin-top:10px; width:100%; box-sizing:border-box; }
.map-carousel { width:100%; height:190px; margin:0 0 14px; border-radius:8px; overflow:hidden; background:#e9ede6; }
.map-carousel .map-photo { display:block; width:100%; height:190px; object-fit:cover; border-radius:0; }
.map-carousel .map-photo[hidden], .map-photo-placeholder[hidden], .map-photo-status[hidden] { display:none; }
.map-photo-placeholder { position:absolute; inset:0; display:flex; flex-direction:column; gap:8px; align-items:center; justify-content:center; color:#62705e; }
.map-photo-status { position:absolute; top:9px; left:9px; right:9px; padding:6px 9px; border-radius:6px; background:#fffE; font-size:13px; }
.map-photo-status button { padding:3px; color:#245737; text-decoration:underline; }
.carousel-controls { bottom:10px; left:10px; right:10px; }
.carousel-controls button { display:flex; flex-shrink:0; align-items:center; justify-content:center; width:38px; height:38px; min-height:0; padding:0; border:0; line-height:1; }
.carousel-controls button svg { display:block; width:20px; height:20px; }
.carousel-controls button:disabled { opacity:.45; cursor:default; }
.carousel-count { display:flex; align-items:center; justify-content:center; min-width:52px; height:28px; box-sizing:border-box; padding:3px 9px; font-size:13px; line-height:1; }
@media(max-width:600px) {
  .applied-filters { padding:0 16px 16px; }
  .compact-table th, .compact-table td { padding:12px; }
  .thread-toolbar .btn { flex:1 1 auto; }
}

/* Shared queue: explicit response need, separate from draft and resolution state. */
.inbox-tabs { padding:0 22px 14px; margin:0; display:flex; flex-wrap:wrap; gap:6px; }
.inbox-tabs button { display:inline-flex; align-items:center; gap:8px; padding:11px 12px; white-space:nowrap; border-radius:7px; }
.inbox-tabs [data-inbox-view-count] { min-width:20px; padding:1px 5px; border-radius:10px; background:#edf1e8; color:#43573b; font-size:12px; }
.inbox-tabs button.active { background:#edf3e9; }
.inbox-sort-note { padding:12px 22px; margin:0; font-size:13px; color:#5f6e64; border-bottom:1px solid var(--line); }
.inbox-table td { vertical-align:top; padding:18px 20px; }
.inbox-table th:first-child { min-width:270px; }
.inbox-table td:first-child { max-width:420px; }
.inbox-excerpt { margin:8px 0 0; max-width:400px; font-size:14px; line-height:1.55; color:#566353; overflow-wrap:anywhere; white-space:pre-wrap; }
.inbox-needs-response td:first-child { border-left:3px solid #bc8b3c; }
.inbox-listing { display:block; margin-bottom:8px; }
.inbox-table .badge { white-space:normal; }
#inbox-pagination[hidden], [data-inbox-count][hidden] { display:none; }
.reply-needed { margin:14px 0; }
@media(max-width:600px) {
  .inbox-tabs { padding:0 12px 12px; gap:3px; }
  .inbox-tabs button { padding:10px; font-size:13px; }
  .inbox-table td { padding:14px; }
  .inbox-table th:first-child { min-width:230px; }
}
:root { --proposal-gap: 18px; }
.proposal-guide { padding:18px 24px; margin-bottom:24px; }
.proposal-guide>summary { cursor:pointer; font-weight:600; }
.proposal-steps { margin:16px 0; padding-left:24px; line-height:1.65; }
.proposal-steps li { padding:6px 0 6px 4px; }
.proposal-compare-toolbar { display:flex; justify-content:space-between; align-items:center; gap:16px; padding:16px 24px; border-bottom:1px solid var(--line); }
.proposal-table { min-width:1080px; }
.proposal-table td { vertical-align:middle; }
.proposal-table input[type=checkbox],.proposal-checks input { width:18px; height:18px; accent-color:#304b43; }
.proposal-table .proposal-name { font-weight:650; font-size:15px; text-align:left; padding:4px 0; }
.proposal-table .cell-sub { max-width:290px; white-space:normal; }
.proposal-comparison { display:grid; grid-template-columns:repeat(auto-fit,minmax(230px,1fr)); gap:var(--proposal-gap); padding:24px; background:#f5f7f1; }
.proposal-comparison article { padding:20px; border:1px solid var(--line); border-radius:10px; background:white; }
.proposal-comparison h3 { margin:8px 0; }
.proposal-comparison p { line-height:1.5; margin-bottom:14px; }
.proposal-comparison .facts { grid-template-columns:1fr; }
.proposal-drawer { width:min(1060px,96vw); }
.proposal-drawer h1 { font-size:26px; margin-bottom:8px; }
.proposal-checks { border:1px solid var(--line); border-radius:8px; padding:16px; margin:18px 0; }
.proposal-checks legend { padding:0 6px; font-size:14px; color:var(--muted); }
.proposal-checks label { display:flex; align-items:flex-start; gap:12px; padding:10px 0; line-height:1.5; }
.proposal-checks input { flex-shrink:0; margin-top:3px; }
.proposal-rooms { min-width:760px; }
.proposal-rooms td { vertical-align:top; }
.proposal-rooms .inline-link { display:block; margin-top:10px; }
#proposal-batch { max-width:380px; }
.proposal-surface .surface-head { flex-wrap:wrap; gap:12px; }
.proposal-surface .surface-head h3 { min-width:0; }
.proposal-surface .tabs { padding:0 24px; gap:18px; flex-wrap:wrap; }
@media(max-width:700px) {
 .proposal-compare-toolbar { align-items:stretch; flex-direction:column; padding:16px; }
 .proposal-comparison { grid-template-columns:1fr; padding:16px; }
 .proposal-guide { padding:16px; }
 #proposal-pagination { align-items:flex-start; gap:14px; flex-direction:column; }
 #proposal-pagination .pagination { flex-wrap:wrap; }
 #proposal-batch { max-width:100%; }
 .proposal-surface .surface-head { align-items:stretch; flex-direction:column; }
 .proposal-surface .surface-head small { display:block; margin:6px 0 0; }
 .proposal-surface .tabs { padding:0 16px; gap:14px; }
}

.team-access-grid { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); }
.team-access-grid .card { min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 800px) { .team-access-grid { grid-template-columns: minmax(0, 1fr); } }
