:root {
  --ink: #1c2430;
  --muted: #5b6675;
  --paper: #f3efe6;
  --card: #fffdf8;
  --accent: #0f5c4c;
  --accent-2: #c45c26;
  --line: #d9d2c4;
  --shadow: 0 18px 40px rgba(28, 36, 48, 0.08);
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Source Sans 3", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(15, 92, 76, 0.12), transparent 35%),
    radial-gradient(circle at 80% 10%, rgba(196, 92, 38, 0.12), transparent 30%),
    linear-gradient(180deg, #efe8da 0%, var(--paper) 40%, #ebe4d7 100%);
  min-height: 100vh;
  line-height: 1.45;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { width: min(1100px, calc(100% - 1.5rem)); margin: 0 auto; }
.site-header {
  position: sticky; top: 0; z-index: 10;
  backdrop-filter: blur(10px);
  background: rgba(243, 239, 230, 0.92);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  padding: 0.85rem 0;
  flex-wrap: wrap;
}
.brand {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  line-height: 1.2;
}
.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.85rem;
  align-items: center;
}
.nav a {
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  padding: 0.35rem 0.15rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.nav-portal {
  position: relative;
  flex: 0 0 auto;
}
.nav-portal-toggle {
  list-style: none;
  cursor: pointer;
  gap: 0.35rem;
}
.nav-portal-toggle::-webkit-details-marker { display: none; }
.nav-portal-toggle::after {
  content: "";
  width: 0.4rem;
  height: 0.4rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
  opacity: 0.85;
}
.nav-portal[open] .nav-portal-toggle::after {
  transform: rotate(225deg) translateY(-1px);
}
.nav-portal-menu {
  position: absolute;
  top: calc(100% + 0.4rem);
  right: 0;
  min-width: 11.5rem;
  padding: 0.4rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 0.85rem;
  box-shadow: var(--shadow);
  display: grid;
  gap: 0.15rem;
  z-index: 20;
}
.nav-portal-identity {
  margin: 0;
  padding: 0.45rem 0.75rem 0.55rem;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.35;
  border-bottom: 1px solid var(--line);
}
.nav-portal-menu a {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 0.45rem 0.75rem;
  border-radius: 0.6rem;
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.nav-portal-menu a:hover {
  background: rgba(15, 92, 76, 0.08);
  text-decoration: none;
}
.nav-portal-logout {
  margin-top: 0.2rem;
  border-top: 1px solid var(--line);
  border-radius: 0 0 0.6rem 0.6rem !important;
  color: var(--muted) !important;
}
.hero {
  padding: 4.5rem 0 3rem;
  display: grid;
  gap: 1rem;
}
.hero-intro {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-start;
}
.hero-copy { min-width: 0; }
.hero-logo {
  display: block;
  width: min(220px, 55vw);
  height: auto;
  margin-bottom: 0.25rem;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  line-height: 1.05;
  margin: 0.35rem 0 0;
  max-width: 14ch;
}
.hero p { font-size: 1.15rem; color: var(--muted); max-width: 42ch; }
@media (max-width: 799px) {
  .hero-logo { order: -1; }
}
@media (min-width: 800px) {
  .hero-intro {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 2.5rem;
    padding-right: 2rem;
  }
  .hero-logo {
    margin-bottom: 0;
    width: min(280px, 32vw);
    flex-shrink: 0;
  }
}
.cta-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 0.5rem; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--accent); color: white; border: 0; border-radius: 999px;
  padding: 0.85rem 1.25rem; font-weight: 700; cursor: pointer; text-decoration: none;
  min-height: 48px; font-size: 1rem; touch-action: manipulation;
}
.btn:hover { filter: brightness(1.05); text-decoration: none; }
.btn:disabled,
.btn.is-submitting,
button.is-submitting,
input[type="submit"].is-submitting {
  opacity: 0.65;
  cursor: wait;
  filter: none;
  pointer-events: none;
}
.btn.is-submitting::before,
button.is-submitting::before {
  content: "";
  width: 0.9rem;
  height: 0.9rem;
  margin-right: 0.5rem;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: rgba(255, 255, 255, 0.95);
  border-radius: 9999px;
  animation: form-submit-spin 0.7s linear infinite;
  flex-shrink: 0;
}
.btn-secondary.is-submitting::before,
button.btn-secondary.is-submitting::before {
  border-color: rgba(15, 92, 76, 0.25);
  border-top-color: rgba(15, 92, 76, 0.9);
}
@keyframes form-submit-spin {
  to { transform: rotate(360deg); }
}
.btn-secondary { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); }
.btn-small { padding: 0.5rem 0.95rem; font-size: 0.95rem; min-height: 40px; }
.btn-block { width: 100%; }
.section { padding: 2rem 0; }
.section h2 { font-family: var(--font-display); font-size: clamp(1.65rem, 5vw, 2rem); margin: 0 0 0.75rem; }
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}
.card {
  position: relative;
  display: block;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: var(--shadow);
  color: inherit;
  text-decoration: none;
}
.card:hover { text-decoration: none; }
.card-photos {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  background: #e8e2d6;
}
.card-photos::-webkit-scrollbar { display: none; }
.card-photos img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  scroll-snap-align: start;
  background: #e8e2d6;
}
.card-photos-empty {
  min-height: 200px;
  place-items: center;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.95rem;
}
.card-photo-count {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  z-index: 1;
  background: rgba(28, 36, 48, 0.72);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.3rem 0.55rem;
  border-radius: 999px;
  pointer-events: none;
}
.card-body { padding: 1rem 1.1rem 1.2rem; }
.card-body h3 { margin: 0 0 0.35rem; font-family: var(--font-display); font-size: 1.25rem; }
.card-body .badge { margin: 0 0 0.45rem; }
.card-static { cursor: default; }
.card-desc {
  margin: 0.55rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.45;
}
.portfolio-vacancies-callout {
  margin: 0 0 1.5rem;
}
.portfolio-vacancies-callout h3 { margin-top: 0; }
.portfolio-vacancies-callout p:last-child { margin-bottom: 0; }

.listing-page h2 { margin-bottom: 0.25rem; }
.listing-facts { margin: 0.35rem 0 1rem; }
.listing-gallery { margin: 0 0 1.5rem; }
.listing-gallery-main {
  position: relative;
  margin: 0;
  border-radius: 1rem;
  overflow: hidden;
  background: #e8e2d6;
  border: 1px solid var(--line);
}
.listing-gallery-main img {
  display: block;
  width: 100%;
  height: min(62vw, 420px);
  object-fit: cover;
  background: #e8e2d6;
}
.listing-gallery-nav {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 0.5rem;
  pointer-events: none;
}
.gallery-nav-btn {
  pointer-events: auto;
  appearance: none;
  border: 0;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.92);
  color: var(--ink);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(28, 36, 48, 0.18);
}
.gallery-nav-btn:hover { background: #fff; }
.listing-gallery-count {
  position: absolute;
  right: 0.75rem;
  bottom: 0.75rem;
  margin: 0;
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
  background: rgba(28, 36, 48, 0.72);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
}
.listing-gallery-thumbs {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.65rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.listing-gallery-thumb {
  flex: 0 0 auto;
  width: 4.75rem;
  height: 3.5rem;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 0.55rem;
  overflow: hidden;
  background: #e8e2d6;
  cursor: pointer;
}
.listing-gallery-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.listing-gallery-thumb.is-active {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}
.listing-gallery-empty {
  display: grid;
  place-items: center;
  min-height: 12rem;
  border: 1px dashed var(--line);
  border-radius: 1rem;
  background: rgba(255, 253, 248, 0.65);
}
.listing-map-section {
  margin: 0 0 1.5rem;
}
.listings-map-section {
  margin: 0 0 1.75rem;
}
.listing-map-section h3 { margin-top: 0; }
.listing-map-lead { margin: 0 0 0.75rem; }
/* Frame owns radius/clip so Leaflet tiles are not clipped oddly on Windows browsers. */
.listing-map-frame {
  border-radius: 1rem;
  border: 1px solid var(--line);
  overflow: hidden;
  background: #e8e2d6;
}
.listing-map {
  width: 100%;
  height: 320px;
  z-index: 0;
  background: #e8e2d6;
}
.listing-map .leaflet-container {
  width: 100%;
  height: 100%;
  font: inherit;
}
.listing-map-overview {
  height: 380px;
}
.listing-map-link,
.listing-map-error {
  margin: 0.65rem 0 0;
}
.listing-map .leaflet-control-attribution {
  font-size: 0.7rem;
  background: rgba(255, 253, 248, 0.9);
}
.map-pin-landmark {
  background: transparent;
  border: none;
}
.map-pin-landmark-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  color: #fffdf8;
  line-height: 1;
  box-shadow: 0 2px 8px rgba(28, 36, 48, 0.28);
  border: 2px solid #fffdf8;
}
.map-pin-landmark-badge svg {
  display: block;
  flex-shrink: 0;
}
/* School: teal rounded square + mortarboard (shape differs from entertainment). */
.map-pin-school {
  border-radius: 0.45rem;
  background: var(--accent);
}
/* School logos (Creighton / UNO): white circular badge with trademark mark. */
.map-pin-landmark-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: #fffdf8;
  border: 2px solid #fffdf8;
  box-shadow: 0 2px 8px rgba(28, 36, 48, 0.28);
  overflow: hidden;
}
.map-pin-landmark-logo img {
  display: block;
  width: 28px;
  height: 28px;
  object-fit: contain;
}
/* Entertainment: orange circle + star. */
.map-pin-entertainment {
  border-radius: 999px;
  background: var(--accent-2);
}
/* Available home: brand-teal pin with house glyph — larger than landmark badges. */
.map-pin-listing {
  background: transparent;
  border: none;
}
.map-pin-listing-badge {
  display: block;
  width: 40px;
  height: 48px;
  line-height: 0;
  filter: drop-shadow(0 3px 6px rgba(28, 36, 48, 0.38));
}
.map-pin-listing-badge svg {
  display: block;
  overflow: visible;
}
.map-pin-listing-shape {
  fill: var(--accent);
  stroke: #fffdf8;
  stroke-width: 2.25;
  paint-order: stroke fill;
}
.map-pin-listing-house {
  fill: #fffdf8;
}
.map-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.15rem;
  list-style: none;
  margin: 0.85rem 0 0;
  padding: 0;
  color: var(--muted);
  font-size: 0.9rem;
}
.map-legend li {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}
.map-legend-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 1.35rem;
  height: 1.35rem;
  color: #fffdf8;
  border: 1.5px solid #fffdf8;
  box-shadow: 0 1px 4px rgba(28, 36, 48, 0.22);
}
.map-legend-listing {
  width: 1.15rem;
  height: 1.35rem;
  border: 0;
  box-shadow: none;
  background: transparent;
  filter: drop-shadow(0 1px 2px rgba(28, 36, 48, 0.28));
}
.map-legend-listing svg {
  display: block;
}
.map-legend-school {
  border-radius: 0.3rem;
  background: var(--accent);
}
.map-legend-entertainment {
  border-radius: 999px;
  background: var(--accent-2);
}
.map-landmark-popup {
  display: grid;
  gap: 0.15rem;
  font-family: var(--font-body);
  color: var(--ink);
  min-width: 8rem;
}
.map-landmark-popup strong {
  font-family: var(--font-display);
  font-size: 0.95rem;
}
.map-landmark-popup-label {
  color: var(--muted);
  font-size: 0.8rem;
}
.listing-map .leaflet-popup-content-wrapper {
  border-radius: 0.65rem;
  box-shadow: var(--shadow);
  background: var(--card);
}
.listing-map .leaflet-popup-tip {
  background: var(--card);
}
.meta { color: var(--muted); font-size: 0.95rem; }
.site-footer { border-top: 1px solid var(--line); margin-top: 3rem; padding: 2rem 0; color: var(--muted); }
.form { display: grid; gap: 0.85rem; max-width: 520px; }
.form label { display: grid; gap: 0.35rem; font-weight: 600; }
.form input:not([type="radio"]):not([type="checkbox"]):not([type="file"]),
.form textarea,
.form select {
  font: inherit;
  padding: 0.75rem 0.85rem;
  border-radius: 0.65rem;
  border: 1px solid var(--line);
  background: white;
  width: 100%;
  /* 16px+ avoids iOS zoom-on-focus */
  font-size: 1rem;
  min-height: 48px;
}
.form textarea { min-height: 6.5rem; resize: vertical; }
.form input:not([type="radio"]):not([type="checkbox"]):not([type="file"]):focus,
.form textarea:focus,
.form select:focus {
  outline: 2px solid rgba(15, 92, 76, 0.35);
  outline-offset: 1px;
  border-color: var(--accent);
}
.form .file-field input[type="file"] {
  font: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink);
  width: 100%;
  padding: 0.55rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: 0.65rem;
  background: white;
  min-height: 0;
}
.form .choice-group {
  margin: 0;
  padding: 0.85rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 0.65rem;
  background: rgba(15, 92, 76, 0.03);
  min-width: 0;
}
.form .choice-group legend {
  /* Keep the title inside the box instead of straddling the border. */
  float: left;
  width: 100%;
  padding: 0;
  margin: 0 0 0.45rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink);
}
.form .choice-group::after {
  content: "";
  display: table;
  clear: both;
}
.form .choice-group .field-hint {
  margin: 0 0 0.55rem;
}
.form .choice-group ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.25rem;
}
.form .choice-group li {
  margin: 0;
}
.form .choice-group label {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
}
.form .choice-group input[type="radio"] {
  width: 1.1rem;
  height: 1.1rem;
  min-height: 0;
  margin: 0;
  flex-shrink: 0;
  accent-color: #0f5c4c;
}

.form-page { max-width: 34rem; }
.form-page-wide { max-width: 44rem; }
.form-page-header { margin-bottom: 1.25rem; }
.form-page-lead { margin: 0.5rem 0 0; font-size: 1rem; }
.form-actions .form-switch {
  margin: 0;
  text-align: center;
  font-size: 0.95rem;
  color: var(--muted);
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.25rem 0.4rem;
}
.form-switch a {
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.12em;
}
.back-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 0.35rem;
}
.form-card {
  max-width: none;
  width: 100%;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 1.1rem;
  padding: 1.25rem;
  box-shadow: var(--shadow);
}
.done-card { text-align: left; }
.done-card h2 { margin-top: 0.5rem; }
.form-actions {
  display: grid;
  gap: 0.65rem;
  margin-top: 0.35rem;
}
.field-hint {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--muted);
  line-height: 1.35;
}
.property-cta-note { margin: 1.25rem 0 0.85rem; }
.property-cta { margin-top: 0; }

.form-compact { max-width: 720px; gap: 1rem; }
.form-compact .form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem 0.85rem;
}
.form-compact label {
  gap: 0.35rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted);
}
.form-compact input:not([type="radio"]):not([type="checkbox"]),
.form-compact textarea,
.form-compact select {
  padding: 0.75rem 0.85rem;
  font-size: 1rem;
  border-radius: 0.65rem;
  width: 100%;
  min-height: 48px;
  color: var(--ink);
}
.form-compact .choice-group {
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}
.form-compact .choice-group legend {
  padding: 0;
  margin-bottom: 0.45rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted);
}
.form-compact .choice-group ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.1rem;
}
.form-compact .choice-group li {
  margin: 0;
}
.form-compact .choice-group label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
}
.form-compact .choice-group input[type="radio"] {
  width: 1.05rem;
  height: 1.05rem;
  min-height: 0;
  margin: 0;
  accent-color: #0f5c4c;
}
.sms-opt-in {
  margin: 0.1rem 0;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 0.65rem;
  background: rgba(15, 92, 76, 0.04);
  display: grid;
  gap: 0.5rem;
}
.sms-opt-in-prompt {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.3;
}
.sms-opt-in-label {
  display: flex !important;
  align-items: flex-start;
  gap: 0.55rem;
  margin: 0 !important;
  font-weight: 500 !important;
  color: var(--ink);
  cursor: pointer;
}
.sms-opt-in-input {
  width: 1.1rem !important;
  height: 1.1rem !important;
  min-height: 0 !important;
  margin: 0.15rem 0 0 !important;
  flex-shrink: 0;
  accent-color: #0f5c4c;
}
.sms-opt-in-copy {
  display: grid;
  gap: 0.35rem;
  min-width: 0;
}
.sms-opt-in-main {
  font-size: 0.92rem;
  line-height: 1.35;
  font-weight: 600;
  color: var(--ink);
}
.sms-opt-in-fine {
  font-size: 0.78rem;
  line-height: 1.4;
  font-weight: 500;
  color: var(--muted);
}
.sms-opt-in-fine a {
  font-weight: 600;
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.12em;
}
.sms-opt-in .field-error {
  margin: 0;
}
.field-hint {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--muted);
  margin-top: 0.2rem;
}
.form-compact textarea { resize: vertical; min-height: 6rem; }
.form-compact input[type="file"] {
  min-height: auto;
  padding: 0.55rem 0;
  border: 0;
  background: transparent;
}
.form-compact input[type="datetime-local"],
.form-compact input[type="date"] {
  min-height: 48px;
}
.form-compact .span-2 { grid-column: 1 / -1; }
.form-compact .field-error { color: #a33; font-weight: 600; font-size: 0.85rem; }
.coapplicant-block {
  display: grid;
  gap: 0.55rem;
}
.coapplicant-heading {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted);
}
.coapplicant-list {
  display: grid;
  gap: 0.65rem;
}
.coapplicant-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
  align-items: end;
  margin-bottom: 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--line);
}
.coapplicant-row:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: 0;
}
.coapplicant-label {
  display: grid;
  gap: 0.35rem;
  min-width: 0;
}
.coapplicant-label-text {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
}
.coapplicant-remove {
  grid-column: 1 / -1;
  justify-self: start;
}
.btn-text {
  appearance: none;
  border: 0;
  background: transparent;
  color: #0f5c4c;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.55rem 0.15rem;
  min-height: 48px;
  cursor: pointer;
  text-align: left;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}
.btn-text:hover,
.btn-text:focus-visible {
  color: var(--ink);
}
.coapplicant-add {
  justify-self: start;
  min-height: 40px;
  padding: 0.25rem 0;
}
.coapplicant-remove[hidden] {
  display: none;
}
.captcha-block {
  margin-top: 0.15rem;
  padding: 0.85rem 0.95rem;
  border: 1px dashed var(--line);
  border-radius: 0.75rem;
  background: rgba(15, 92, 76, 0.04);
}
.captcha-label {
  margin: 0 0 0.55rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted);
}
.captcha-math {
  display: grid;
  gap: 0.35rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
}
.captcha-block .cf-turnstile {
  width: 100%;
  min-height: 65px;
}
.contact-reveal-intro {
  margin: 0 0 0.85rem;
  color: var(--muted);
}
.contact-reveal-form {
  display: grid;
  gap: 0.85rem;
  max-width: 26rem;
}
.contact-reveal-form .captcha-block {
  margin-top: 0;
}
.contact-reveal-form .btn {
  justify-self: start;
}
.table { width: 100%; border-collapse: collapse; background: var(--card); border-radius: 0.75rem; overflow: hidden; }
.table th, .table td { padding: 0.75rem; border-bottom: 1px solid var(--line); text-align: left; }
.panel {
  background: var(--card); border: 1px solid var(--line); border-radius: 1rem;
  padding: 1.25rem; box-shadow: var(--shadow); margin-bottom: 1rem;
}
.pay-methods {
  border: 0;
  margin: 1rem 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}
.pay-methods legend { margin-bottom: 0.35rem; }
.pay-method {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  margin: 0;
  cursor: pointer;
}
.pay-method input { margin-top: 0.25rem; }
.auth-text {
  white-space: pre-wrap;
  font-size: 0.9rem;
  background: var(--bg, #f6f7f9);
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  border: 1px solid var(--line);
  max-width: 65ch;
}
.ach-auth-form { margin-top: 1rem; display: grid; gap: 0.75rem; }
.portal-nav { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 1rem 0 1.5rem; }
.portal-page-actions { margin: -0.5rem 0 1.5rem; }
.portal-insurance-details {
  display: grid;
  gap: 0.65rem 1.25rem;
  margin: 0.85rem 0 0;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
}
.portal-insurance-details dt {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 600;
}
.portal-insurance-details dd {
  margin: 0.15rem 0 0;
  font-weight: 600;
}
.portal-balance-panel {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
}
.portal-balance-copy {
  flex: 1 1 14rem;
  min-width: 0;
}
.portal-balance-panel .meta {
  margin: 0.65rem 0 1rem;
  max-width: 28rem;
}
.portal-balance-panel .rent-cal {
  flex: 0 0 auto;
  margin: 0;
  margin-left: auto;
}
.autopay-panel {
  padding-top: 1rem;
  padding-bottom: 1rem;
}
.autopay-disclosure {
  margin: 0;
}
.autopay-summary {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem 1.25rem;
  cursor: pointer;
}
.autopay-summary::-webkit-details-marker,
.autopay-summary::marker {
  display: none;
  content: "";
}
.autopay-summary-main {
  flex: 1 1 14rem;
  min-width: 0;
}
.autopay-summary-title {
  margin: 0 0 0.35rem;
}
.autopay-summary-status {
  margin: 0;
  font-size: 0.98rem;
}
.autopay-summary-settings {
  margin: 0.4rem 0 0;
}
.autopay-summary-action {
  flex: 0 0 auto;
  align-self: center;
  pointer-events: none;
}
.autopay-disclosure[open] .autopay-summary-action {
  font-size: 0;
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--ink);
}
.autopay-disclosure[open] .autopay-summary-action::before {
  content: "Close";
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink);
}
.autopay-disclosure-body {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}
.autopay-auth-box {
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  padding: 0.85rem 1rem;
  margin: 0.75rem 0 1rem;
  background: rgba(243, 239, 230, 0.45);
}
.autopay-prefs-form select,
.autopay-prefs-form input[type="date"] {
  display: block;
  width: 100%;
  max-width: 16rem;
  min-height: 48px;
  margin: 0.35rem 0 0.85rem;
  padding: 0.7rem 2.4rem 0.7rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: 0.65rem;
  background-color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
  font: inherit;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  -webkit-appearance: none;
  appearance: none;
}
.autopay-prefs-form select {
  background-image:
    linear-gradient(45deg, transparent 50%, var(--accent) 50%),
    linear-gradient(135deg, var(--accent) 50%, transparent 50%);
  background-position:
    calc(100% - 1.15rem) 55%,
    calc(100% - 0.75rem) 55%;
  background-size: 0.4rem 0.4rem, 0.4rem 0.4rem;
  background-repeat: no-repeat;
  cursor: pointer;
}
.autopay-prefs-form input[type="date"] {
  padding-right: 0.95rem;
  color-scheme: light;
}
.autopay-prefs-form input[type="date"]::-webkit-calendar-picker-indicator {
  opacity: 0.65;
  cursor: pointer;
  padding: 0.15rem;
  border-radius: 0.35rem;
}
.autopay-prefs-form input[type="date"]::-webkit-calendar-picker-indicator:hover {
  opacity: 1;
  background: rgba(15, 92, 76, 0.08);
}
.autopay-prefs-form select:focus,
.autopay-prefs-form input[type="date"]:focus {
  outline: 2px solid rgba(15, 92, 76, 0.35);
  outline-offset: 1px;
  border-color: var(--accent);
}
.autopay-prefs-form .js-autopay-fixed-wrap {
  margin-top: 0.5rem;
  max-width: 14rem;
}
.portal-aging-table {
  margin: 0 0 1rem;
  max-width: 28rem;
}
.portal-aging-table th.num,
.portal-aging-table td.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.portal-past-due {
  margin: 0.35rem 0 0;
  color: var(--accent-2);
  font-weight: 600;
}
.portal-aging-past-due td {
  color: var(--accent-2);
  font-weight: 600;
}
.portal-aging-total td {
  border-bottom: 0;
}
.portal-statement-scroll {
  max-height: calc(8 * 2.85rem + 2.6rem);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  margin: 0 0 1.25rem;
  background: var(--card);
}
.portal-statement-table {
  margin: 0;
  border-radius: 0;
  border: 0;
}
.portal-statement-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--card);
  box-shadow: 0 1px 0 var(--line);
}
.portal-statement-table th.num,
.portal-statement-table td.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.portal-statement-row.is-payment td.num:nth-last-child(2) {
  color: var(--accent);
}
.portal-statement-row.is-pending {
  opacity: 0.72;
}
.pay-amount-label {
  display: block;
  margin: 1rem 0 0.4rem;
  font-weight: 600;
  color: var(--ink);
  font-size: 0.95rem;
}
.pay-amount-field {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  max-width: 14rem;
  padding: 0 0.85rem 0 0.95rem;
  border: 1px solid var(--line);
  border-radius: 0.65rem;
  background: #fff;
  min-height: 48px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.pay-amount-field[hidden] {
  display: none;
}
.pay-amount-field:focus-within {
  border-color: var(--accent);
  outline: 2px solid rgba(15, 92, 76, 0.35);
  outline-offset: 1px;
}
.pay-amount-prefix {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--accent);
  line-height: 1;
}
.pay-amount-field input {
  flex: 1;
  width: 100%;
  min-width: 0;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--ink);
  padding: 0.7rem 0.35rem 0.7rem 0.15rem;
  min-height: 46px;
  -moz-appearance: textfield;
}
.pay-amount-field input:focus {
  outline: none;
}
.pay-amount-field input::-webkit-outer-spin-button,
.pay-amount-field input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.badge {
  display: inline-block; padding: 0.15rem 0.55rem; border-radius: 999px;
  background: rgba(15, 92, 76, 0.12); color: var(--accent); font-size: 0.85rem; font-weight: 700;
}
.messages { padding-top: 1rem; }
.message { background: #e7f3ef; border: 1px solid #b7d9cf; padding: 0.75rem 1rem; border-radius: 0.5rem; }
.lead { font-size: 1.1rem; color: var(--muted); max-width: 65ch; line-height: 1.5; }
.amenities, .criteria { margin: 0; padding-left: 1.2rem; }
.amenities li, .criteria li { margin: 0.4rem 0; line-height: 1.4; }
.criteria-lead { margin: 0 0 0.85rem; font-size: 1rem; }
/* Native dialog (listing → applicant criteria) */
.site-dialog {
  width: min(32rem, calc(100vw - 1.5rem));
  max-height: min(85vh, 40rem);
  margin: auto;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 1.1rem;
  background: var(--card);
  color: var(--ink);
  box-shadow: var(--shadow);
}
.site-dialog::backdrop {
  background: rgba(28, 36, 48, 0.45);
  backdrop-filter: blur(2px);
}
.site-dialog-panel {
  display: flex;
  flex-direction: column;
  max-height: inherit;
}
.site-dialog-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1.1rem 1.15rem 0.65rem;
  border-bottom: 1px solid var(--line);
}
.site-dialog-header h2 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  line-height: 1.15;
  margin: 0.15rem 0 0;
}
.dialog-close {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-weight: 700;
  font-size: 0.95rem;
  min-height: 44px;
  min-width: 44px;
  padding: 0.35rem 0.55rem;
  cursor: pointer;
  border-radius: 0.5rem;
}
.dialog-close:hover { color: var(--ink); background: rgba(28, 36, 48, 0.06); }
.site-dialog-body {
  padding: 1rem 1.15rem;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.site-dialog-actions {
  padding: 0.85rem 1.15rem 1.15rem;
  border-top: 1px solid var(--line);
}
/* Forms that own the dialog panel (e.g. portal work order) */
.site-dialog .form.site-dialog-panel {
  max-width: none;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.work-order-form .site-dialog-body {
  display: grid;
  gap: 0.85rem;
}

@media (max-width: 700px) {
  .wrap { width: min(1100px, calc(100% - 1.25rem)); }
  .header-inner {
    flex-direction: column;
    align-items: stretch;
    padding: 0.75rem 0;
  }
  .brand { font-size: 1.25rem; }
  .nav {
    width: 100%;
    gap: 0.15rem 0.65rem;
    padding-bottom: 0.15rem;
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .nav:has(.nav-portal[open]) {
    overflow: visible;
  }
  .nav::-webkit-scrollbar { display: none; }
  .nav a {
    flex: 0 0 auto;
    white-space: nowrap;
    font-size: 0.95rem;
  }
  .nav-portal {
    margin-left: auto;
  }
  .nav-portal-menu {
    right: 0;
    left: auto;
  }
  .hero { padding: 2.5rem 0 2rem; }
  .hero p { font-size: 1.05rem; }
  .cta-row { flex-direction: column; }
  .cta-row .btn { width: 100%; }
  .section { padding: 1.5rem 0; }
  .grid { grid-template-columns: 1fr; gap: 1rem; }
  .card-photos img,
  .card-photos-empty { height: 210px; min-height: 210px; }
  .listing-gallery-main img { height: min(70vw, 320px); }
  .listing-gallery-thumb { width: 4.25rem; height: 3.15rem; }
  .listing-map { height: 240px; }
  .listing-map-overview { height: 280px; }
  .gallery-nav-btn { width: 2.5rem; height: 2.5rem; }
  .form-card { padding: 1.1rem; border-radius: 0.95rem; }
  .form-compact .form-grid { grid-template-columns: 1fr; }
  .form-compact .span-2 { grid-column: auto; }
  .coapplicant-row { grid-template-columns: 1fr; }
  .table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .portal-statement-table { display: table; overflow: visible; }
  .site-footer { padding: 1.5rem 0 2.25rem; font-size: 0.95rem; }
  .portal-nav {
    display: flex;
    gap: 0.5rem;
    font-size: 0.92rem;
  }
  .site-dialog {
    width: calc(100vw - 1rem);
    max-height: min(90vh, 100%);
    border-radius: 1rem;
  }
  .site-dialog-header h2 { font-size: 1.3rem; }
  .site-dialog-body { padding: 0.9rem 1rem; }
  .site-dialog-actions { padding: 0.75rem 1rem 1rem; }
}

.rent-cal {
  margin: 1rem 0 1.25rem;
  max-width: 17rem;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 0.65rem;
  padding: 0.55rem 0.55rem 0.45rem;
  background: rgba(243, 239, 230, 0.45);
}
.rent-cal-header {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 0.35rem;
}
.rent-cal-weekdays,
.rent-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.15rem;
  width: 100%;
}
.rent-cal-weekdays {
  margin-bottom: 0.2rem;
}
.rent-cal-weekdays span {
  display: block;
  text-align: center;
  font-size: 0.58rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.01em;
}
.rent-cal-day {
  min-height: 1.7rem;
  border-radius: 0.3rem;
  border: 1px solid transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.1rem 0.05rem;
  background: var(--card);
  box-sizing: border-box;
}
.rent-cal-day.is-empty {
  background: transparent;
  border: 0;
}
.rent-cal-day.is-other-month {
  opacity: 0.55;
}
.rent-cal-day.is-other-month .rent-cal-num {
  font-weight: 500;
}
.rent-cal-num {
  font-size: 0.7rem;
  font-weight: 600;
  line-height: 1.1;
}
.rent-cal-mark {
  font-size: 0.45rem;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0;
  color: var(--muted);
}
.rent-cal-day.is-today {
  border-color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--ink);
}
.rent-cal-day.is-today .rent-cal-mark { color: var(--ink); }
.rent-cal-day.is-due {
  background: rgba(15, 92, 76, 0.12);
  border-color: var(--accent);
}
.rent-cal-day.is-due .rent-cal-mark { color: var(--accent); }
.rent-cal-day.is-late {
  background: rgba(196, 92, 38, 0.14);
  border-color: var(--accent-2);
}
.rent-cal-day.is-late .rent-cal-mark { color: var(--accent-2); }
.rent-cal-day.is-today.is-due,
.rent-cal-day.is-today.is-late {
  box-shadow: inset 0 0 0 1px var(--ink);
}
.rent-cal-legend {
  list-style: none;
  margin: 0.45rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.65rem;
  font-size: 0.68rem;
  color: var(--muted);
}
.rent-cal-legend li {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.rent-cal-swatch {
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 0.2rem;
  border: 1px solid var(--line);
  display: inline-block;
}
.rent-cal-swatch.is-today {
  border-color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--ink);
  background: var(--card);
}
.rent-cal-swatch.is-due {
  background: rgba(15, 92, 76, 0.12);
  border-color: var(--accent);
}
.rent-cal-swatch.is-late {
  background: rgba(196, 92, 38, 0.14);
  border-color: var(--accent-2);
}

@media (max-width: 380px) {
  .card-photos img,
  .card-photos-empty { height: 190px; min-height: 190px; }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.portal-chat {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-height: 28rem;
  overflow-y: auto;
  padding: 0.5rem 0 1rem;
  margin-bottom: 0.75rem;
  border-bottom: 1px solid var(--line);
}
.portal-chat-empty { margin: 0.5rem 0; }
.portal-chat-row { display: flex; }
.portal-chat-row.is-tenant { justify-content: flex-end; }
.portal-chat-row.is-staff { justify-content: flex-start; }
.portal-chat-bubble {
  max-width: min(36rem, 92%);
  padding: 0.7rem 0.9rem;
  border-radius: 0.85rem;
  border: 1px solid var(--line);
  background: var(--bg, #f6f7f9);
}
.portal-chat-row.is-tenant .portal-chat-bubble {
  background: rgba(15, 92, 76, 0.1);
  border-color: rgba(15, 92, 76, 0.22);
}
.portal-chat-body { margin: 0; white-space: pre-wrap; }
.portal-chat-attachments {
  display: grid;
  gap: 0.4rem;
  margin-top: 0.45rem;
}
.portal-chat-attachment-thumb {
  display: inline-block;
  width: fit-content;
  max-width: 11rem;
  line-height: 0;
  vertical-align: top;
}
.portal-chat-attachment-img {
  display: block;
  width: auto !important;
  height: auto !important;
  max-width: 11rem !important;
  max-height: 8rem !important;
  border-radius: 0.5rem;
  object-fit: contain;
  cursor: zoom-in;
}
.portal-chat-attachment-link {
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.12em;
}
.chat-image-lightbox {
  border: 0;
  padding: 0;
  margin: 0;
  max-width: none;
  width: 100%;
  height: 100%;
  background: transparent;
}
.chat-image-lightbox::backdrop {
  background: rgba(10, 18, 16, 0.72);
}
.chat-image-lightbox__panel {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: min(92vw, 56rem);
  max-height: 92vh;
  margin: 4vh auto;
  padding: 0.85rem;
  border-radius: 0.75rem;
  background: #fff;
  color: #1a1a1a;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
}
.chat-image-lightbox__toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 0.75rem;
}
.chat-image-lightbox__name {
  margin: 0;
  min-width: 0;
  flex: 1 1 10rem;
  font-size: 0.95rem;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.chat-image-lightbox__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.chat-image-lightbox__img-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  flex: 1 1 auto;
  overflow: auto;
  background: #f3f5f4;
  border-radius: 0.5rem;
}
.chat-image-lightbox__img {
  display: block;
  max-width: 100%;
  max-height: min(72vh, 40rem);
  width: auto;
  height: auto;
  object-fit: contain;
}
.portal-chat-meta {
  margin: 0.4rem 0 0;
  font-size: 0.8rem;
  color: var(--muted, #667);
}
.portal-chat-compose {
  display: grid;
  gap: 0.75rem;
}
.portal-chat-compose textarea {
  width: 100%;
  min-height: 4.5rem;
  resize: vertical;
  font-size: 1.125rem;
  line-height: 1.45;
}
.portal-chat-compose.is-dragover {
  outline: 2px dashed rgba(15, 92, 76, 0.55);
  outline-offset: 4px;
  border-radius: 0.5rem;
}
.portal-attach-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.65rem;
}
.portal-attach-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.15rem 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  opacity: 0.85;
}
/* Don't inherit .form label { display: grid } — keep icon + text on one line. */
.form label.portal-attach-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin: 0;
}
.portal-attach-btn:hover { opacity: 1; }
.portal-attach-btn.is-disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}
.portal-attach-btn__icon {
  width: 1.05rem;
  height: 1.05rem;
  flex: 0 0 auto;
  display: block;
}
.portal-attach-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  flex: 1 1 12rem;
  min-width: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}
.portal-attach-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  max-width: 100%;
  padding: 0.15rem 0.2rem 0.15rem 0.45rem;
  border-radius: 0.375rem;
  background: rgba(15, 92, 76, 0.08);
  font-size: 0.85rem;
  line-height: 1.3;
}
.portal-attach-chip__name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.portal-attach-chip__remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 1.35rem;
  height: 1.35rem;
  padding: 0;
  border: 0;
  border-radius: 9999px;
  background: transparent;
  color: inherit;
  font-size: 1.05rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0.7;
}
.portal-attach-chip__remove:hover { opacity: 1; }
.portal-attach-hint {
  margin: 0;
}
.portal-wo-attach {
  display: grid;
  gap: 0.35rem;
}
.portal-wo-attach-label {
  font-weight: 600;
}
.work-order-form.is-dragover,
.portal-chat-compose.is-dragover {
  outline: 2px dashed var(--accent, #2a6f5f);
  outline-offset: 4px;
}
.portal-chat-pending {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0.4rem 0 0;
  font-size: 0.8rem;
  color: var(--muted, #667);
}
.portal-chat-spinner {
  width: 0.7rem;
  height: 0.7rem;
  border: 2px solid rgba(15, 92, 76, 0.2);
  border-top-color: rgba(15, 92, 76, 0.85);
  border-radius: 9999px;
  animation: portal-chat-spin 0.7s linear infinite;
}
@keyframes portal-chat-spin {
  to { transform: rotate(360deg); }
}
