/* Lax Property — styles domaine + thème clair / sombre (tokens app-shell) */

/* Plein usage de l’espace shell (évite la colonne étroite Task à 860px) */
.ws-body .ws-content {
  max-width: none;
  width: 100%;
  box-sizing: border-box;
}

.ws-body .ws-main {
  min-width: 0;
}

@media (min-width: 1100px) {
  .ws-body .ws-content {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

.prop-section,
.dash,
.units-page {
  max-width: none;
  width: 100%;
}

.prop-section {
  display: grid;
  gap: 1rem;
}

.prop-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px 16px;
  margin-bottom: 1.35rem;
}

.prop-head h1 {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}

.prop-head .muted,
.prop-head > p.muted {
  width: 100%;
  margin: 0.15rem 0 0;
}

.prop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
  margin-bottom: 1.5rem;
}

.prop-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--ws-shadow, none);
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.15s ease, transform 0.15s ease, background 0.15s ease;
}

.prop-card:hover {
  border-color: color-mix(in srgb, var(--accent) 55%, var(--border));
  background: color-mix(in srgb, var(--accent) 6%, var(--surface));
}

.prop-card strong {
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.prop-stats {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
}

.prop-stat,
.prop-stat-wide {
  padding: 16px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--ws-shadow, none);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.prop-stat-wide { grid-column: 1 / -1; }

.prop-stat strong,
.prop-stat-wide strong {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
}

.prop-form {
  display: grid;
  gap: 14px;
  margin-top: 0.25rem;
  width: 100%;
  max-width: 720px;
  padding: 18px 18px 20px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--ws-shadow, none);
}

.prop-form h2 {
  margin: 0 0 2px;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.prop-form label {
  display: grid;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

.prop-form label > span.hint,
.prop-form .hint {
  font-weight: 500;
  font-size: 12px;
  color: var(--muted);
}

.prop-form input,
.prop-form select,
.prop-form textarea {
  font: inherit;
  font-weight: 500;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.prop-form select {
  appearance: none;
  padding-right: 2rem;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%236e6e73' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='m2.5 4.5 3.5 3.5 3.5-3.5'/></svg>");
  background-repeat: no-repeat;
  background-position: right 0.7rem center;
  cursor: pointer;
}

html[data-theme="dark"] .prop-form select {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%23a1a1a6' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='m2.5 4.5 3.5 3.5 3.5-3.5'/></svg>");
}

.prop-form input:hover,
.prop-form select:hover,
.prop-form textarea:hover {
  border-color: var(--border-strong);
}

.prop-form input:focus,
.prop-form select:focus,
.prop-form textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--blue-ring);
}

.prop-form input::placeholder,
.prop-form textarea::placeholder {
  color: var(--muted);
  opacity: 0.85;
}

.prop-form option {
  background: var(--surface);
  color: var(--text);
}

.prop-check {
  display: flex !important;
  align-items: center;
  gap: 10px;
  grid-template-columns: none !important;
  font-weight: 500 !important;
  cursor: pointer;
}

.prop-check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  padding: 0;
  accent-color: var(--accent);
  cursor: pointer;
}

.prop-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 980px;
  border: 0;
  cursor: pointer;
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-weight: 600;
  font-size: 13px;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s ease, transform 0.12s ease;
}
.prop-btn .ws-ico {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.prop-btn:hover {
  background: var(--blue-hover);
  color: #fff;
}

.prop-btn:active {
  transform: scale(0.98);
}

.prop-btn-ghost {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}

.prop-btn-ghost:hover {
  background: var(--nav-hover-bg);
  border-color: var(--border-strong);
  color: var(--text);
}

.prop-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}

.prop-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 4px;
  margin: 0 0 1rem;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
}

.prop-filters a {
  color: var(--muted);
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 980px;
  transition: background 0.15s ease, color 0.15s ease;
}

.prop-filters a:hover {
  color: var(--text);
  background: var(--nav-hover-bg);
}

.prop-filters a.is-on {
  background: var(--blue-soft);
  color: var(--accent);
  font-weight: 700;
}

.prop-table-wrap {
  overflow-x: auto;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--ws-shadow, none);
}

.prop-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.prop-table th,
.prop-table td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.prop-table th {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  background: color-mix(in srgb, var(--bg) 65%, var(--surface));
}

.prop-table tbody tr:last-child td {
  border-bottom: 0;
}

.prop-table tbody tr:hover td {
  background: var(--nav-hover-bg);
}

.prop-table a {
  color: var(--text);
  font-weight: 650;
  text-decoration: none;
}

.prop-table a:hover {
  color: var(--accent);
}

.prop-badge {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  background: var(--bg-muted);
  color: var(--text);
  border: 1px solid var(--border);
}

.prop-badge.is-ok {
  background: var(--ok-bg);
  color: color-mix(in srgb, var(--text) 20%, #248a3d);
  border-color: transparent;
}

html[data-theme="dark"] .prop-badge.is-ok {
  color: #7ddea0;
}

.prop-badge.is-warn {
  background: color-mix(in srgb, #ff9f0a 16%, transparent);
  color: #c97800;
  border-color: transparent;
}

html[data-theme="dark"] .prop-badge.is-warn {
  color: #ffcc66;
}

.prop-badge.is-bad {
  background: var(--danger-bg);
  color: var(--danger);
  border-color: transparent;
}

.prop-error {
  color: var(--danger);
  background: var(--danger-bg);
  border: 1px solid var(--danger-border);
  padding: 10px 12px;
  border-radius: 12px;
  margin-bottom: 12px;
  font-size: 13px;
  font-weight: 500;
}

.prop-success {
  color: var(--ok, #0d7a4e);
  background: color-mix(in srgb, var(--ok, #0d7a4e) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--ok, #0d7a4e) 28%, transparent);
  padding: 10px 12px;
  border-radius: 12px;
  margin-bottom: 12px;
  font-size: 13px;
  font-weight: 500;
}

.prop-ok {
  color: color-mix(in srgb, var(--text) 15%, #248a3d);
  background: var(--ok-bg);
  padding: 10px 12px;
  border-radius: 12px;
  margin-bottom: 12px;
  font-size: 13px;
  font-weight: 500;
}

html[data-theme="dark"] .prop-ok {
  color: #7ddea0;
}

.muted {
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}

/* Pages publiques — catalogue locatif (pc-*) */
.public-body,
.pc-body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
}

.portal-wrap,
.public-wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 24px 16px 48px;
  font-family: var(--font);
}

.pc-body {
  position: relative;
  overflow-x: hidden;
}

.pc-atmosphere {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 70% 45% at 50% -8%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 70%);
}

.pc-top,
.pc-shell,
.pc-foot,
.pc-sticky-cta {
  position: relative;
  z-index: 1;
}

.pc-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  max-width: 880px;
  margin: 0 auto;
  padding: 16px 20px 0;
}

.pc-top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pc-mark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
  text-decoration: none;
}

.pc-mark img {
  width: 22px;
  height: 22px;
  border-radius: 50%;
}

.pc-top-link,
.pc-back,
.pc-text-link {
  color: var(--accent);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
}

.pc-top-link:hover,
.pc-back:hover,
.pc-text-link:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.pc-shell {
  max-width: 880px;
  margin: 0 auto;
  padding: 20px 20px 72px;
}

.pc-shell-unit {
  padding-bottom: 120px;
}

.pc-shell-success,
.pc-shell-error {
  display: grid;
  place-items: center;
  min-height: calc(100vh - 120px);
  padding-top: 40px;
  padding-bottom: 48px;
}

.pc-error {
  max-width: 440px;
  text-align: center;
  animation: pc-rise 0.55s var(--ease) both;
}

.pc-error-code {
  margin: 0;
  font-size: clamp(4.5rem, 16vw, 7rem);
  font-weight: 800;
  letter-spacing: -0.08em;
  line-height: 0.9;
  color: color-mix(in srgb, var(--accent) 18%, transparent);
  user-select: none;
}

.pc-error .pc-lead {
  margin: 12px auto 0;
}

.pc-error-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 28px;
}

.pc-error-hint {
  margin: 22px 0 0;
  color: var(--muted-soft);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.45;
}

.pc-hero {
  padding: 28px 0 8px;
  animation: pc-rise 0.55s var(--ease) both;
}

.pc-hero-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.pc-logo,
.pc-avatar {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  flex-shrink: 0;
  object-fit: cover;
}

.pc-avatar {
  display: grid;
  place-items: center;
  background: var(--blue-soft);
  color: var(--blue-hint);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.pc-brand {
  margin: 0;
  font-size: clamp(1.7rem, 4.5vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1.08;
  color: var(--text);
}

.pc-brand-sm {
  font-size: clamp(1.45rem, 3.6vw, 1.9rem);
}

.pc-lead {
  margin: 0;
  max-width: 36rem;
  font-size: 1.02rem;
  font-weight: 500;
  line-height: 1.55;
  color: var(--muted);
}

.pc-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.pc-chip {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue-hint);
  font-size: 12px;
  font-weight: 700;
}

.pc-chip.is-soft {
  background: var(--bg-muted);
  color: var(--muted);
}

.pc-contact {
  display: grid;
  gap: 10px;
  margin: 28px 0 8px;
  padding: 16px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.pc-contact-item {
  display: grid;
  gap: 2px;
  font-size: 0.95rem;
  color: var(--text);
}

.pc-contact-item a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

.pc-contact-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-weight: 700;
}

.pc-units {
  margin-top: 28px;
}

.pc-units-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.pc-section-title {
  margin: 0;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-weight: 700;
}

.pc-filters {
  display: inline-flex;
  padding: 3px;
  border-radius: 999px;
  background: var(--bg-muted);
}

.pc-filter {
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
}

.pc-filter.is-on {
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

.pc-unit-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.pc-unit-item.is-off .pc-unit {
  opacity: 0.62;
}

.pc-unit {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, background 0.15s ease;
}

a.pc-unit:hover {
  border-color: color-mix(in srgb, var(--accent) 45%, var(--border));
  background: color-mix(in srgb, var(--accent) 5%, var(--surface));
}

.pc-unit-main {
  min-width: 0;
  flex: 1;
}

.pc-unit-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
}

.pc-unit-title-row strong {
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.pc-mini-avatar {
  width: 28px;
  height: 28px;
  border-radius: 9px;
  display: inline-grid;
  place-items: center;
  background: var(--blue-soft);
  color: var(--blue-hint);
  font-size: 12px;
  font-weight: 800;
}

.pc-status {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--bg-muted);
  padding: 4px 8px;
  border-radius: 999px;
}

.pc-status.is-ok {
  color: #0f7a43;
  background: var(--ok-bg);
}

html[data-theme="dark"] .pc-status.is-ok {
  color: #34c759;
}

.pc-unit-meta,
.pc-unit-desc {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
}

.pc-unit-desc {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pc-unit-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  flex-shrink: 0;
}

.pc-price {
  font-weight: 800;
  font-size: 0.98rem;
  letter-spacing: -0.03em;
  color: var(--text);
  white-space: nowrap;
}

.pc-unit-cta {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
}

.pc-empty,
.pc-filter-empty {
  padding: 28px 18px;
  text-align: center;
  color: var(--muted);
  border: 1px dashed var(--border);
  border-radius: 18px;
  background: var(--surface);
}

.pc-empty .prop-btn {
  margin-top: 12px;
}

.pc-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 22px;
}

.pc-step {
  font-size: 12px;
  font-weight: 650;
  color: var(--muted-soft);
}

.pc-step::after {
  content: "·";
  margin-left: 8px;
  color: var(--border-strong);
}

.pc-step:last-child::after {
  content: none;
}

.pc-step.is-done {
  color: var(--accent);
}

.pc-step.is-on {
  color: var(--text);
}

.pc-kicker {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--accent);
}

.pc-price-block {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 18px 0 22px;
}

.pc-price-lg {
  font-size: clamp(1.7rem, 4vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.05em;
}

.pc-price-period {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 500;
}

.pc-prose {
  margin: 0 0 22px;
  color: var(--text);
  line-height: 1.65;
  font-size: 1.02rem;
  font-weight: 500;
}

.pc-prose p {
  margin: 0;
  white-space: pre-wrap;
}

.pc-article h2 {
  margin: 1.4rem 0 0.4rem;
  font-size: 1.05rem;
  font-weight: 750;
  letter-spacing: -0.02em;
}

.pc-article a {
  color: var(--accent);
}

.pc-article-nav {
  margin-top: 28px;
}

.pc-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 16px 18px;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
}

.pc-facts > div {
  display: grid;
  gap: 4px;
}

.pc-facts dt {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-weight: 700;
}

.pc-facts dd {
  margin: 0;
  font-weight: 650;
  color: var(--text);
}

.pc-sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 20;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--bg) 92%, transparent) 28%, var(--bg));
}

.pc-sticky-inner {
  max-width: 880px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
}

.pc-sticky-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.pc-sticky-copy strong {
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.pc-sticky-copy span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}

.pc-sticky-inner .prop-btn {
  flex-shrink: 0;
}

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

.pc-summary {
  padding: 18px;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
}

.pc-summary-title {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.pc-summary-sub {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}

.pc-summary-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 14px;
}

.pc-summary-price strong {
  font-size: 1.15rem;
  letter-spacing: -0.03em;
}

.pc-summary-price span,
.pc-summary-note {
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}

.pc-summary-note {
  margin: 12px 0 0;
  line-height: 1.45;
}

.pc-form-panel {
  padding: 4px 0 0;
}

.pc-form-title {
  margin: 0;
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.pc-form-lead {
  margin: 6px 0 18px;
  color: var(--muted);
  font-weight: 500;
}

.pc-alert {
  margin: 0 0 16px;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--danger-bg);
  color: var(--danger);
  border: 1px solid var(--danger-border);
  font-size: 13px;
  font-weight: 600;
}

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

.pc-fieldset {
  margin: 0;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: var(--surface);
  display: grid;
  gap: 12px;
}

.pc-fieldset legend {
  padding: 0 4px;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.pc-field {
  display: grid;
  gap: 6px;
  font-size: 13px;
}

.pc-field > span {
  color: var(--muted);
  font-weight: 700;
}

.pc-field em {
  color: var(--accent);
  font-style: normal;
}

.pc-field input,
.pc-field select,
.pc-field textarea {
  width: 100%;
  box-sizing: border-box;
  min-height: 44px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.pc-field textarea {
  min-height: 92px;
  resize: vertical;
}

.pc-field input:focus,
.pc-field select:focus,
.pc-field textarea:focus {
  outline: none;
  border-color: color-mix(in srgb, var(--accent) 55%, var(--border));
  box-shadow: 0 0 0 3px var(--blue-ring);
}

.pc-field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.pc-field-narrow {
  max-width: 160px;
}

.pc-form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.pc-success {
  max-width: 460px;
  text-align: center;
  animation: pc-rise 0.55s var(--ease) both;
}

.pc-success-mark {
  width: 56px;
  height: 56px;
  margin: 0 auto 18px;
  color: var(--accent);
}

.pc-success-mark svg {
  width: 100%;
  height: 100%;
}

.pc-success .pc-lead {
  margin: 10px auto 0;
}

.pc-next {
  margin: 22px auto 0;
  padding: 0;
  list-style: none;
  text-align: left;
  display: grid;
  gap: 10px;
  max-width: 360px;
  counter-reset: pc-step;
}

.pc-next li {
  position: relative;
  padding-left: 28px;
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.4;
}

.pc-next li::before {
  content: counter(pc-step);
  counter-increment: pc-step;
  position: absolute;
  left: 0;
  top: 0;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue-hint);
  font-size: 11px;
  font-weight: 800;
  display: grid;
  place-items: center;
}

.pc-success-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 28px;
}

.pc-foot {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 20px 28px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted-soft);
  font-size: 12px;
  font-weight: 500;
}

.pc-foot a {
  color: var(--muted);
  text-decoration: none;
}

.pc-foot a:hover {
  color: var(--accent);
}

@keyframes pc-rise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (min-width: 860px) {
  .pc-form-layout {
    grid-template-columns: 280px minmax(0, 1fr);
    align-items: start;
    gap: 28px;
  }
  .pc-summary { position: sticky; top: 20px; }
}

@media (max-width: 640px) {
  .pc-field-row { grid-template-columns: 1fr; }
  .pc-facts { grid-template-columns: 1fr; }
  .pc-sticky-inner {
    flex-direction: column;
    align-items: stretch;
  }
  .pc-sticky-inner .prop-btn { width: 100%; }
  .pc-unit {
    flex-direction: column;
    gap: 12px;
  }
  .pc-unit-side {
    flex-direction: row;
    align-items: center;
    width: 100%;
  }
}

@media (max-width: 720px) {
  .prop-head h1 { font-size: 1.2rem; }
  .prop-form { padding: 14px; }
  .prop-table th,
  .prop-table td { padding: 10px 12px; }
}

/* -- Dashboard (company home) -- */
.dash { width: 100%; display: grid; gap: 1rem; }

.dash-live .dash-reveal {
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: calc(var(--i, 0) * 70ms);
}
.dash-live .dash-reveal.is-visible {
  opacity: 1;
  transform: none;
}

.dash-hero-hint {
  margin: 0.2rem 0 0;
  font-size: 0.78rem;
  font-weight: 500;
}
.dash-hero-hint strong {
  color: var(--text);
  font-weight: 750;
}

.dash-kpi-link {
  text-decoration: none;
  color: inherit;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}
.dash-kpi-link::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    120px circle at var(--mx, 50%) var(--my, 50%),
    color-mix(in srgb, var(--accent) 16%, transparent),
    transparent 65%
  );
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}
.dash-kpi-link:hover::before { opacity: 1; }
.dash-kpi-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px color-mix(in srgb, var(--accent) 10%, transparent);
}
.dash-kpi.has-pulse .dash-stat-ico.is-warn {
  animation: dash-pulse 2.2s ease-in-out infinite;
}
@keyframes dash-pulse {
  0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, #ff9f0a 35%, transparent); }
  50% { box-shadow: 0 0 0 6px transparent; }
}

.dash-kpi-ring {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: conic-gradient(var(--accent) calc(var(--pct, 0) * 1%), var(--bg-muted) 0);
  mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 3px));
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 3px));
  flex-shrink: 0;
  transition: background 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.dash-hero-compact {
  padding: 0.75rem 0.85rem;
  border-radius: 16px;
  background:
    radial-gradient(ellipse 70% 120% at 100% -20%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 50%),
    var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--ws-shadow, none);
  display: grid;
  gap: 0.65rem;
}
.dash-hero-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 0.75rem;
}
.dash-hero-compact .dash-hero-copy { min-width: 0; max-width: none; }
.dash-hero-compact .dash-kicker {
  margin: 0;
  font-size: 0.62rem;
  font-weight: 750;
  letter-spacing: 0.1em;
  line-height: 1.2;
}
.dash-hero-compact .dash-title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.2;
}
.dash-hero-compact .dash-hero-actions {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.dash-btn-compact {
  padding: 0.35rem 0.65rem !important;
  min-height: 32px !important;
  font-size: 0.8rem !important;
  border-radius: 10px !important;
  gap: 0.35rem;
}
.dash-btn-compact .ws-ico { width: 14px; height: 14px; }

.dash-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.45rem;
}
.dash-kpi {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.6rem;
  border-radius: 12px;
  background: color-mix(in srgb, var(--bg) 50%, var(--surface));
  border: 1px solid var(--border);
  min-width: 0;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.dash-kpi:hover {
  border-color: color-mix(in srgb, var(--accent) 35%, var(--border));
  background: color-mix(in srgb, var(--accent) 4%, var(--surface));
}
.dash-kpi.is-warn {
  background: color-mix(in srgb, #ff9f0a 8%, var(--surface));
  border-color: color-mix(in srgb, #ff9f0a 22%, var(--border));
}
.dash-kpi .dash-stat-ico {
  width: 28px;
  height: 28px;
  border-radius: 9px;
  flex-shrink: 0;
}
.dash-kpi .dash-stat-ico .ws-ico { width: 14px; height: 14px; }
.dash-kpi-body {
  min-width: 0;
  display: grid;
  gap: 0.05rem;
}
.dash-kpi-label {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dash-kpi-value {
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
  line-height: 1.15;
}
.dash-kpi-value.is-sm { font-size: 0.82rem; font-weight: 750; }
.dash-kpi-sub {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
}
.dash-kpi-tag {
  flex-shrink: 0;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0.15rem 0.35rem;
  border-radius: 6px;
  background: color-mix(in srgb, var(--text) 6%, transparent);
  max-width: 4.5rem;
  text-align: center;
  line-height: 1.2;
}
.dash-kpi-tag.is-warn {
  color: #c97800;
  background: color-mix(in srgb, #ff9f0a 14%, transparent);
}
.dash-kpi-tag.is-ok {
  color: #248a3d;
  background: var(--ok-bg);
}
html[data-theme="dark"] .dash-kpi-tag.is-warn { color: #ffcc66; }
html[data-theme="dark"] .dash-kpi-tag.is-ok { color: #7ddea0; }

.dash-hero {
  position: relative; overflow: hidden;
  padding: 1.35rem 1.35rem 1.2rem;
  border-radius: 20px;
  background:
    radial-gradient(ellipse 80% 70% at 100% 0%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 55%),
    var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--ws-shadow, none);
}
.dash-hero-copy { max-width: 40rem; }
.dash-kicker {
  margin: 0 0 0.45rem;
  font-size: 11px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent);
}
.dash-title {
  margin: 0; font-size: clamp(1.45rem, 3vw, 1.85rem); font-weight: 800;
  letter-spacing: -0.03em; color: var(--text);
}
.dash-lead { margin: 0.45rem 0 0; font-size: 0.95rem; color: var(--muted); font-weight: 500; max-width: 34em; }
.dash-hero-actions {
  margin-top: 1rem; display: flex; flex-wrap: wrap; gap: 0.55rem;
}
.dash-hero-actions .prop-btn .ws-ico { width: 14px; height: 14px; }
.dash-stats {
  margin-top: 1.35rem;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.75rem;
}
.dash-stat {
  padding: 1rem; border-radius: 16px;
  background: color-mix(in srgb, var(--bg) 55%, var(--surface));
  border: 1px solid var(--border);
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.dash-stat:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--accent) 40%, var(--border)); }
.dash-stat.is-warn {
  background: color-mix(in srgb, #ff9f0a 10%, var(--surface));
  border-color: color-mix(in srgb, #ff9f0a 28%, var(--border));
}
.dash-stat-top { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; }
.dash-stat-ico {
  width: 36px; height: 36px; border-radius: 12px;
  display: grid; place-items: center;
}
.dash-stat-ico .ws-ico { width: 16px; height: 16px; }
.dash-stat-ico.is-blue { background: var(--blue-soft); color: var(--accent); }
.dash-stat-ico.is-neutral { background: var(--bg-muted); color: var(--muted); }
.dash-stat-ico.is-warn { background: color-mix(in srgb, #ff9f0a 18%, transparent); color: #c97800; }
.dash-stat-ico.is-ok { background: var(--ok-bg); color: #248a3d; }
html[data-theme="dark"] .dash-stat-ico.is-warn { color: #ffcc66; }
html[data-theme="dark"] .dash-stat-ico.is-ok { color: #7ddea0; }
.dash-stat-label { margin: 0.85rem 0 0; font-size: 0.82rem; font-weight: 500; color: var(--muted); }
.dash-stat-value {
  margin: 0.2rem 0 0; font-size: 1.65rem; font-weight: 800; letter-spacing: -0.03em; color: var(--text);
}
.dash-stat-value span { font-size: 0.95rem; font-weight: 600; color: var(--muted); }

.dash-grid {
  display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 1rem;
}
.dash-card {
  padding: 1.15rem 1.15rem 1.2rem; border-radius: 18px;
  background: var(--surface); border: 1px solid var(--border);
  box-shadow: var(--ws-shadow, none);
}
.dash-card-wide { min-width: 0; }
.dash-card-full { grid-column: 1 / -1; }
.dash-card-head {
  display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between;
  gap: 0.75rem; margin-bottom: 1rem;
}
.dash-card-head h2 {
  margin: 0; font-size: 1.05rem; font-weight: 700; letter-spacing: -0.02em; color: var(--text);
}
.dash-card-head .muted { margin: 0.2rem 0 0; }
.dash-link {
  font-size: 0.85rem; font-weight: 650; color: var(--accent); text-decoration: none;
}
.dash-link:hover { text-decoration: underline; }
.dash-seg {
  display: inline-flex; padding: 3px; border-radius: 12px;
  border: 1px solid var(--border); background: var(--bg);
}
.dash-seg-btn {
  border: 0; background: transparent; color: var(--muted);
  font: inherit; font-size: 12px; font-weight: 650;
  padding: 0.4rem 0.7rem; border-radius: 9px; cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease;
}
.dash-seg-btn.is-on {
  background: var(--surface); color: var(--text);
  box-shadow: 0 1px 2px rgba(0,0,0,.08);
}
.dash-chart {
  position: relative;
  border-radius: 14px; border: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg) 70%, var(--surface));
  padding: 1rem;
  overflow: hidden;
}
.dash-chart-tooltip {
  position: absolute;
  z-index: 3;
  transform: translate(-50%, -100%);
  padding: 0.35rem 0.55rem;
  border-radius: 10px;
  background: var(--text);
  color: var(--bg);
  font-size: 0.72rem;
  font-weight: 650;
  line-height: 1.25;
  text-align: center;
  pointer-events: none;
  white-space: nowrap;
  box-shadow: 0 6px 18px rgba(0,0,0,.18);
}
.dash-chart-tooltip strong { display: block; font-size: 0.68rem; opacity: 0.85; }
.dash-chart-tooltip span { font-size: 0.8rem; font-weight: 800; }
.dash-bars {
  display: flex; align-items: flex-end; gap: 0.35rem;
  min-height: 180px; padding: 0.5rem 0.25rem 0.25rem;
}
.dash-bar {
  flex: 1;
  display: block;
  min-width: 0;
  height: var(--h, 40%);
  border: 0;
  border-radius: 8px 8px 4px 4px;
  cursor: crosshair;
  padding: 0;
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--accent) 92%, white),
    color-mix(in srgb, var(--accent) 42%, transparent)
  );
  opacity: 0.78;
  transform-origin: bottom center;
  transform: scaleY(0.08);
  transition:
    opacity 0.15s ease,
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.15s ease;
  transition-delay: calc(var(--i, 0) * 28ms);
}
.dash-bar.is-growing { transform: scaleY(1); }
.dash-bar:hover,
.dash-bar.is-active {
  opacity: 1;
  filter: brightness(1.06);
}
.dash-chart-labels {
  display: flex;
  gap: 0.35rem;
  padding: 0.35rem 0.25rem 0;
}
.dash-chart-labels span {
  flex: 1;
  min-width: 0;
  text-align: center;
  font-size: 0.62rem;
  font-weight: 650;
  color: var(--muted);
}
.dash-chart-foot {
  margin: 0.35rem 0 0;
  font-size: 0.75rem;
}
.dash-chart-stat strong { display: block; font-size: 1.1rem; letter-spacing: -0.02em; }
.dash-chart-meta { margin-top: 0.9rem; display: grid; gap: 0.45rem; }
.dash-meter span {
  display: block; height: 100%; border-radius: inherit; background: var(--accent);
  width: 0;
  transition: width 1s cubic-bezier(0.22, 1, 0.36, 1);
}
.dash-bars i {
  flex: 1; display: block; min-width: 0; height: var(--h, 40%);
  border-radius: 8px 8px 4px 4px;
  background: linear-gradient(180deg, var(--accent), color-mix(in srgb, var(--accent) 45%, transparent));
  opacity: 0.85;
}
.dash-donut {
  position: relative; width: 150px; height: 150px; margin: 0.4rem auto 1rem;
}
.dash-donut-ring {
  width: 100%; height: 100%; border-radius: 50%;
  background: conic-gradient(
    #248a3d 0 calc(var(--pct-anim, var(--pct, 0)) * 1%),
    #ff9f0a calc(var(--pct-anim, var(--pct, 0)) * 1%) calc((var(--pct-anim, var(--pct, 0)) + var(--warn-anim, var(--warn, 0))) * 1%),
    var(--bg-muted) 0
  );
  mask: radial-gradient(farthest-side, transparent calc(100% - 14px), #000 calc(100% - 13px));
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 14px), #000 calc(100% - 13px));
  transition: background 1s cubic-bezier(0.22, 1, 0.36, 1);
}
html[data-theme="dark"] .dash-donut-ring {
  background: conic-gradient(
    #7ddea0 0 calc(var(--pct-anim, var(--pct, 0)) * 1%),
    #ffcc66 calc(var(--pct-anim, var(--pct, 0)) * 1%) calc((var(--pct-anim, var(--pct, 0)) + var(--warn-anim, var(--warn, 0))) * 1%),
    var(--bg-muted) 0
  );
}
.dash-legend {
  list-style: none;
  margin: 0 0 0.75rem;
  padding: 0;
  display: grid;
  gap: 0.35rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
}
.dash-legend li {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}
.dash-legend i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.dash-legend i.is-ok { background: #248a3d; }
.dash-legend i.is-warn { background: #ff9f0a; }
.dash-pending-box.is-live {
  animation: dash-glow 2.8s ease-in-out infinite;
}
@keyframes dash-glow {
  0%, 100% { border-color: color-mix(in srgb, #ff9f0a 30%, var(--border)); }
  50% { border-color: color-mix(in srgb, #ff9f0a 55%, var(--border)); }
}
.dash-table tbody tr[data-dash-row] {
  opacity: 0;
  transform: translateX(-6px);
  animation: dash-row-in 0.45s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: calc(0.35s + var(--i, 0) * 55ms);
}
@keyframes dash-row-in {
  to { opacity: 1; transform: none; }
}
.dash-table tbody tr[data-dash-row]:hover {
  background: color-mix(in srgb, var(--accent) 5%, transparent);
}
.dash-empty-row { padding: 1.25rem !important; text-align: center; }
.dash-meter {
  height: 8px; border-radius: 999px; background: var(--bg-muted); overflow: hidden;
}
.dash-donut-center {
  position: absolute; inset: 0; display: grid; place-content: center; text-align: center;
}
.dash-donut-center strong { font-size: 1.5rem; letter-spacing: -0.03em; }
.dash-donut-center span { font-size: 0.75rem; color: var(--muted); font-weight: 600; }
.dash-pending-box {
  padding: 0.9rem 1rem; border-radius: 14px;
  border: 1px solid color-mix(in srgb, #ff9f0a 30%, var(--border));
  background: color-mix(in srgb, #ff9f0a 10%, var(--surface));
}
.dash-pending-label {
  margin: 0; font-size: 10px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase;
  color: #c97800;
}
html[data-theme="dark"] .dash-pending-label { color: #ffcc66; }
.dash-pending-value {
  margin: 0.25rem 0 0; font-size: 1.35rem; font-weight: 800; letter-spacing: -0.02em; color: var(--text);
}

.dash-modal[hidden] { display: none !important; }
.dash-modal {
  position: fixed; inset: 0; z-index: 80;
  display: grid; place-items: center; padding: 1rem;
}
.dash-modal.is-in { animation: prop-backdrop-in 0.2s ease; }
.dash-modal.is-out { animation: prop-backdrop-out 0.18s ease forwards; }
.dash-modal-backdrop {
  position: absolute; inset: 0; border: 0; padding: 0; cursor: pointer;
  background: rgba(15, 23, 42, 0.48); backdrop-filter: blur(6px);
}
html[data-theme="dark"] .dash-modal-backdrop { background: rgba(0,0,0,.68); }
.dash-modal-panel {
  position: relative; z-index: 1; width: min(640px, 100%);
  border-radius: 20px; background: var(--surface); border: 1px solid var(--border);
  box-shadow: 0 24px 80px rgba(0,0,0,.28), 0 0 0 1px color-mix(in srgb, var(--border) 40%, transparent);
  overflow: hidden;
  transform-origin: center bottom;
}
.dash-modal.is-in .dash-modal-panel { animation: prop-modal-in 0.24s cubic-bezier(0.22, 1, 0.36, 1); }
.dash-modal.is-out .dash-modal-panel { animation: prop-modal-out 0.18s ease forwards; }
@keyframes prop-backdrop-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes prop-backdrop-out { from { opacity: 1; } to { opacity: 0; } }
@keyframes prop-modal-in {
  from { opacity: 0; transform: translateY(12px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes prop-modal-out {
  from { opacity: 1; transform: translateY(0) scale(1); }
  to { opacity: 0; transform: translateY(8px) scale(0.98); }
}
body.prop-modal-open { overflow: hidden; }

.prop-modal-confirm { max-width: 26rem; padding: 1.2rem 1.2rem 1rem; text-align: left; }
.prop-modal-confirm.is-danger .prop-modal-mark { background: color-mix(in srgb, #ff3b30 14%, transparent); color: #d70015; }
html[data-theme="dark"] .prop-modal-confirm.is-danger .prop-modal-mark { color: #ff8a80; }
.prop-modal-mark {
  display: grid; place-items: center; width: 2.75rem; height: 2.75rem;
  margin-bottom: 0.75rem; border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent);
}
.prop-modal-mark .ws-ico { width: 1.25rem; height: 1.25rem; }
.prop-modal-body h3 {
  margin: 0; font-size: 1.12rem; font-weight: 750; letter-spacing: -0.02em;
}
.prop-modal-body .muted { margin: 0.45rem 0 0; font-size: 0.88rem; line-height: 1.5; }
.prop-modal-foot {
  display: flex; gap: 0.55rem; margin-top: 1.15rem;
}
.prop-modal-foot > * { flex: 1; }
.prop-modal-foot .prop-btn { width: 100%; justify-content: center; }

.dash-modal-panel.ud-close-panel,
.dash-modal-panel.id-pay-panel,
.dash-modal-panel.hub-modal-panel {
  padding: 1.2rem 1.2rem 1.05rem;
}
.dash-modal-panel.id-pay-panel .id-pay-form { margin-top: 0.65rem; }
.dash-modal-panel.id-pay-panel h3 { margin: 0; font-size: 1.12rem; font-weight: 750; }
.dash-modal-close {
  position: absolute; top: 0.65rem; right: 0.65rem; z-index: 2;
  display: grid; place-items: center; width: 2rem; height: 2rem;
  border: 0; border-radius: 999px; background: transparent; color: var(--muted);
  cursor: pointer; transition: background 0.15s, color 0.15s;
}
.dash-modal-close:hover { background: color-mix(in srgb, var(--text) 8%, transparent); color: var(--text); }
.dash-modal-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem;
  padding: 1.15rem 1.2rem; border-bottom: 1px solid var(--border);
}
.dash-modal-head h3 { margin: 0; font-size: 1.15rem; font-weight: 750; letter-spacing: -0.02em; }
.dash-modal-head .muted { margin: 0.25rem 0 0; }
.dash-actions-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0.7rem; padding: 1rem 1.1rem;
}
.dash-action {
  display: flex; flex-direction: column; gap: 0.35rem;
  padding: 1rem; border-radius: 14px; text-decoration: none; color: inherit;
  border: 1px solid var(--border); background: var(--surface);
  transition: border-color 0.15s ease, transform 0.15s ease, background 0.15s ease;
}
.dash-action:hover {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--accent) 45%, var(--border));
  background: color-mix(in srgb, var(--accent) 6%, var(--surface));
}
.dash-action.is-warn {
  background: color-mix(in srgb, #ff9f0a 8%, var(--surface));
  border-color: color-mix(in srgb, #ff9f0a 28%, var(--border));
}
.dash-action strong { font-size: 0.9rem; font-weight: 750; color: var(--text); }
.dash-action .muted { font-size: 0.75rem; line-height: 1.4; }
.dash-modal-foot {
  display: flex; justify-content: flex-end; padding: 0.85rem 1.1rem 1.05rem;
  border-top: 1px solid var(--border);
}

@media (max-width: 960px) {
  .dash-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dash-stats { grid-template-columns: 1fr 1fr; }
  .dash-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .dash-kpis { grid-template-columns: 1fr 1fr; gap: 0.4rem; }
  .dash-kpi { padding: 0.45rem 0.5rem; gap: 0.4rem; }
  .dash-kpi-tag { display: none; }
  .dash-hero-compact { padding: 0.65rem 0.7rem; }
  .dash-hero-compact .dash-title { font-size: 1.05rem; }
  .dash-btn-compact span { display: none; }
  .dash-btn-compact { padding: 0.35rem 0.5rem !important; }
  .dash-stats { grid-template-columns: 1fr; }
  .dash-actions-grid { grid-template-columns: 1fr; }
  .dash-hero { padding: 1.1rem; }
  .dash-hero-hint { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .dash-live .dash-reveal,
  .dash-kpi-link,
  .dash-bar,
  .dash-meter span,
  .dash-donut-ring,
  .dash-table tbody tr[data-dash-row],
  .dash-kpi.has-pulse .dash-stat-ico.is-warn,
  .dash-pending-box.is-live {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* -- Units list -- */
.units-page { width: 100%; display: grid; gap: 1rem; }
.units-hero {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
  gap: 1rem; padding: 1.2rem 1.25rem;
  border-radius: 18px; background: var(--surface); border: 1px solid var(--border);
  box-shadow: var(--ws-shadow, none);
}
.units-hero-copy { max-width: 36rem; }
.units-summary {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.75rem;
}
.units-summary-card {
  padding: 0.95rem 1rem; border-radius: 14px;
  background: var(--surface); border: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 0.25rem;
}
.units-summary-card strong { font-size: 1.45rem; letter-spacing: -0.03em; }
.units-summary-card.is-ok { background: color-mix(in srgb, var(--ok-bg) 70%, var(--surface)); }
.units-summary-card.is-warn { background: color-mix(in srgb, #ff9f0a 10%, var(--surface)); border-color: color-mix(in srgb, #ff9f0a 25%, var(--border)); }
.units-filters { margin: 0; }
.units-panel {
  border-radius: 18px; background: var(--surface); border: 1px solid var(--border);
  box-shadow: var(--ws-shadow, none); overflow: hidden;
}
.units-panel-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 1.15rem; border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg) 55%, var(--surface));
}
.units-panel-head h2 {
  margin: 0; display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 1rem; font-weight: 750; letter-spacing: -0.02em;
}
.units-list { display: grid; }
.units-row {
  display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 0.85rem 1rem; align-items: center;
  padding: 0.95rem 1.15rem; text-decoration: none; color: inherit;
  border-bottom: 1px solid var(--border);
  transition: background 0.15s ease;
}
.units-row:last-child { border-bottom: 0; }
.units-row:hover { background: var(--nav-hover-bg); }
.units-row-main { display: flex; align-items: center; gap: 0.8rem; min-width: 0; }
.units-row-copy { min-width: 0; display: grid; gap: 0.15rem; }
.units-row-copy strong {
  font-size: 0.95rem; font-weight: 750; letter-spacing: -0.02em; color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.units-row:hover .units-row-copy strong { color: var(--accent); }
.units-row-copy .muted {
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 0.78rem;
}
.units-row-meta {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end;
  gap: 0.55rem 0.85rem;
}
.units-dot {
  display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  background: currentColor; margin-right: 0.35rem; vertical-align: middle;
}
.units-occupant {
  min-width: 7rem; text-align: right; font-size: 0.82rem; font-weight: 600; color: var(--text);
}
.units-occupant.muted { color: var(--muted); font-weight: 500; }
.units-date { font-size: 0.78rem; min-width: 5.5rem; text-align: right; }
.units-empty {
  display: grid; place-items: center; text-align: center; gap: 0.55rem;
  padding: 3rem 1.25rem;
}
.units-empty h3 { margin: 0.35rem 0 0; font-size: 1.05rem; font-weight: 750; }
.units-empty .prop-btn { margin-top: 0.7rem; }

.units-toolbar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 0.75rem;
}
.units-search { flex: 1 1 14rem; max-width: 22rem; }
.units-cards {
  display: none; gap: 0.75rem; padding: 0.85rem;
}
.units-card {
  display: grid; gap: 0.7rem; padding: 0.95rem 1rem; border-radius: 14px;
  text-decoration: none; color: inherit;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg) 55%, var(--surface));
  transition: border-color 0.15s ease, background 0.15s ease;
}
.units-card:hover {
  border-color: color-mix(in srgb, var(--accent) 35%, var(--border));
  background: var(--nav-hover-bg);
}
.units-card-top {
  display: flex; align-items: flex-start; gap: 0.7rem;
}
.units-card-copy { min-width: 0; flex: 1; display: grid; gap: 0.12rem; }
.units-card-copy strong {
  font-size: 0.95rem; font-weight: 750; letter-spacing: -0.02em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.units-card-copy .muted { font-size: 0.78rem; }
.units-card-meta {
  display: flex; justify-content: space-between; gap: 0.75rem;
  font-size: 0.78rem; padding-top: 0.55rem; border-top: 1px solid var(--border);
}
.units-name-cell {
  display: inline-flex; align-items: center; gap: 0.7rem;
  text-decoration: none; color: inherit; font-weight: 750;
}
.units-name-cell:hover strong { color: var(--accent); }
.units-pricing { display: block; font-size: 0.72rem; margin-top: 0.15rem; }
.units-date-col { text-align: right; white-space: nowrap; }
.units-list { display: none; }

.ue { width: 100%; display: grid; gap: 1rem; max-width: 46rem; }
.ue-form { display: grid; gap: 1rem; margin: 0; }
.ue-avail {
  display: flex; align-items: flex-start; gap: 0.75rem;
  padding: 0.95rem 1rem; border-radius: 14px; cursor: pointer;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg) 60%, var(--surface));
}
.ue-avail input { margin-top: 0.2rem; }
.ue-avail span { display: grid; gap: 0.2rem; }
.ue-avail strong { font-size: 0.92rem; font-weight: 700; }
.ue-avail em { font-style: normal; font-size: 0.8rem; }

@media (max-width: 820px) {
  .units-table-wrap { display: none; }
  .units-cards { display: grid; }
  .units-row { grid-template-columns: 1fr; }
  .units-row-meta { justify-content: flex-start; }
  .units-occupant, .units-date { text-align: left; min-width: 0; }
}
@media (min-width: 821px) {
  .units-cards { display: none !important; }
  .units-table-wrap { display: block; }
}
@media (max-width: 560px) {
  .units-summary { grid-template-columns: 1fr; }
  .units-search { max-width: none; }
}

/* -- Unit detail -- */
.ud { width: 100%; display: grid; gap: 1rem; }
.ud-hero {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
  gap: 1rem; padding: 1.15rem 1.25rem;
  border-radius: 18px; background: var(--surface); border: 1px solid var(--border);
  box-shadow: var(--ws-shadow, none);
}
.ud-hero-copy { min-width: 0; max-width: 40rem; }
.ud-crumb {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem;
  margin: 0 0 0.55rem; font-size: 0.75rem; font-weight: 600; color: var(--muted);
}
.ud-crumb a {
  display: inline-flex; align-items: center; gap: 0.3rem;
  color: var(--muted); text-decoration: none;
}
.ud-crumb a:hover { color: var(--accent); }
.ud-crumb .ws-ico { width: 14px; height: 14px; }
.ud-crumb-sep { display: inline-flex; opacity: 0.45; }
.ud-crumb-current {
  color: var(--text); font-weight: 700;
  max-width: 14rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ud-title-row {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.55rem 0.75rem;
}
.ud-title-row .dash-title { margin: 0; }
.ud-hero-actions {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.45rem;
}
.ud-kpis {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.75rem;
}
.ud-kpi {
  padding: 0.95rem 1rem; border-radius: 14px;
  background: var(--surface); border: 1px solid var(--border);
  box-shadow: var(--ws-shadow, none);
  animation: ud-in 0.35s ease both;
}
.ud-kpi:nth-child(2) { animation-delay: 0.04s; }
.ud-kpi:nth-child(3) { animation-delay: 0.08s; }
.ud-kpi:nth-child(4) { animation-delay: 0.12s; }
@keyframes ud-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}
.ud-kpi-top {
  display: flex; align-items: center; justify-content: space-between; gap: 0.5rem;
}
.ud-kpi-label {
  margin: 0; font-size: 0.65rem; font-weight: 800;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted);
}
.ud-kpi-value {
  margin: 0.55rem 0 0; font-size: 1.45rem; font-weight: 800;
  letter-spacing: -0.03em; color: var(--text);
}
.ud-kpi-value.is-sm { font-size: 1.05rem; }
.ud-layout {
  display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(16rem, 0.85fr);
  gap: 1rem; align-items: start;
}
.ud-main, .ud-side { display: grid; gap: 1rem; min-width: 0; }
.ud-card {
  border-radius: 16px; background: var(--surface); border: 1px solid var(--border);
  box-shadow: var(--ws-shadow, none); overflow: hidden;
}
.ud-card-body { padding: 1.1rem 1.15rem; }
.ud-card-head {
  display: flex; align-items: center; justify-content: space-between; gap: 0.75rem;
  padding: 0.9rem 1.15rem; border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg) 55%, var(--surface));
}
.ud-card-head h3 {
  margin: 0; font-size: 0.98rem; font-weight: 750; letter-spacing: -0.02em;
}
.ud-details {
  display: flex; align-items: flex-start; gap: 0.95rem;
}
.ud-details h2 {
  margin: 0; font-size: 1.05rem; font-weight: 750; letter-spacing: -0.02em;
}
.ud-details p {
  margin: 0.45rem 0 0; font-size: 0.9rem; line-height: 1.55; color: color-mix(in srgb, var(--text) 82%, var(--muted));
}
.ud-details-copy { min-width: 0; flex: 1; }
.ud-details-meta {
  display: flex; flex-wrap: wrap; gap: 0.45rem 0.85rem;
  margin-top: 0.85rem; padding-top: 0.75rem; border-top: 1px solid var(--border);
}
.ud-details-meta span {
  font-size: 0.82rem; font-weight: 650; color: var(--text);
}
.ud-details-meta em {
  font-style: normal; font-size: 0.68rem; font-weight: 800;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted);
  margin-right: 0.35rem;
}
.ud-italic { font-style: italic; }
.ud-rental-banner {
  position: relative; overflow: hidden;
  padding: 1.15rem 1.25rem;
  color: #fff;
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 92%, #1a4d8c), color-mix(in srgb, var(--accent) 55%, #0b2a4a));
}
.ud-rental-banner::after {
  content: ""; position: absolute; right: -1.5rem; top: -1.5rem;
  width: 7rem; height: 7rem; border-radius: 50%;
  background: rgba(255,255,255,0.1);
}
.ud-rental-banner .ud-kpi-label { color: rgba(255,255,255,0.72); }
.ud-rental-banner h2 {
  position: relative; margin: 0.35rem 0 0; font-size: 1.25rem; font-weight: 800;
}
.ud-rental-banner p:last-child {
  position: relative; margin: 0.35rem 0 0; font-size: 0.86rem;
  color: rgba(255,255,255,0.78);
}
.ud-rental-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem; padding: 1.05rem 1.15rem;
}
.ud-rental-grid .ud-kpi-label { margin-bottom: 0.3rem; }
.ud-rental-grid strong {
  font-size: 0.98rem; font-weight: 750; letter-spacing: -0.02em; color: var(--text);
}
.ud-rental-actions {
  display: flex; flex-wrap: wrap; gap: 0.5rem;
  padding: 0.85rem 1.15rem 1.05rem; border-top: 1px solid var(--border);
}
.ud-empty {
  display: grid; place-items: center; text-align: center; gap: 0.4rem;
  padding: 2.4rem 1.25rem;
}
.ud-empty h3 { margin: 0.2rem 0 0; font-size: 1.05rem; font-weight: 750; }
.ud-empty .prop-btn { margin-top: 0.65rem; }
.ud-list { display: grid; }
.ud-list-row {
  display: flex; align-items: center; justify-content: space-between; gap: 0.75rem;
  padding: 0.9rem 1.15rem; text-decoration: none; color: inherit;
  border-bottom: 1px solid var(--border);
  transition: background 0.15s ease;
}
.ud-list-row:last-child { border-bottom: 0; }
.ud-list-row:hover { background: var(--nav-hover-bg); }
.ud-list-row > div { min-width: 0; display: grid; gap: 0.15rem; }
.ud-list-row strong {
  font-size: 0.9rem; font-weight: 700; color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ud-list-row:hover strong { color: var(--accent); }
.ud-list-empty { padding: 1.6rem 1.15rem; text-align: center; font-size: 0.88rem; }
.ud-side-client, .ud-side-actions { display: grid; gap: 0.7rem; }
.ud-side-client h3, .ud-side-actions h3 {
  margin: 0; font-size: 0.92rem; font-weight: 750;
}
.ud-side-btn {
  width: 100%; justify-content: flex-start;
}
.ud-btn-danger {
  background: color-mix(in srgb, #ff3b30 12%, var(--surface)) !important;
  color: #d70015 !important; border-color: transparent !important;
}
.ud-btn-danger:hover {
  background: color-mix(in srgb, #ff3b30 20%, var(--surface)) !important;
}
html[data-theme="dark"] .ud-btn-danger {
  color: #ff8a80 !important;
  background: color-mix(in srgb, #ff3b30 18%, transparent) !important;
}
.ud-btn-danger-ghost { color: var(--danger) !important; }
.ud-close-panel { max-width: 26rem; }
.ud-close-mark {
  display: grid; place-items: center; width: 2.75rem; height: 2.75rem;
  margin-bottom: 0.75rem; border-radius: 999px;
  background: color-mix(in srgb, #ff3b30 14%, transparent); color: #d70015;
}
html[data-theme="dark"] .ud-close-mark { color: #ff8a80; }
.ud-close-panel h3 {
  margin: 0; font-size: 1.15rem; font-weight: 750; letter-spacing: -0.02em;
}
.ud-close-panel .muted { margin: 0.45rem 0 0; }
.ud-close-actions {
  display: flex; gap: 0.55rem; margin-top: 1.15rem;
}
.ud-close-actions > * { flex: 1; }
.ud-close-actions .prop-btn,
.ud-close-actions form .prop-btn { width: 100%; justify-content: center; }
.ud-close-actions form { margin: 0; }

@media (max-width: 960px) {
  .ud-layout { grid-template-columns: 1fr; }
  .ud-kpis { grid-template-columns: 1fr 1fr; }
  .ud-rental-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .ud-kpis { grid-template-columns: 1fr; }
  .ud-hero { padding: 1rem; }
}

/* -- Rental edit -- */
.re { width: 100%; display: grid; gap: 1rem; max-width: 52rem; }
.re-hero {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
  gap: 1rem; padding: 1.15rem 1.25rem;
  border-radius: 18px; background: var(--surface); border: 1px solid var(--border);
  box-shadow: var(--ws-shadow, none);
}
.re-hero-copy { min-width: 0; max-width: 36rem; }
.re-unit-card {
  display: flex; align-items: flex-start; gap: 0.95rem;
  padding: 1.05rem 1.15rem; border-radius: 16px;
  background: var(--surface); border: 1px solid var(--border);
  box-shadow: var(--ws-shadow, none);
  animation: ud-in 0.35s ease both;
}
.re-unit-copy { min-width: 0; display: grid; gap: 0.2rem; }
.re-unit-copy h2 {
  margin: 0; font-size: 1.1rem; font-weight: 750; letter-spacing: -0.02em;
}
.re-kicker {
  margin: 0; font-size: 0.65rem; font-weight: 800;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent);
}
.re-form { display: grid; gap: 1rem; margin: 0; }
.re-card {
  padding: 1.15rem 1.2rem 1.25rem; border-radius: 16px;
  background: var(--surface); border: 1px solid var(--border);
  box-shadow: var(--ws-shadow, none);
  display: grid; gap: 1rem;
}
.re-card-intro { display: grid; gap: 0.2rem; }
.re-card-intro h3 {
  margin: 0; font-size: 1.02rem; font-weight: 750; letter-spacing: -0.02em;
}
.re-field {
  display: grid; gap: 0.4rem;
  font-size: 0.82rem; font-weight: 650; color: var(--text);
}
.re-field > span { color: var(--muted); font-weight: 650; font-size: 0.78rem; }
.re-field em { font-style: normal; font-weight: 700; color: var(--text); }
.re-field input,
.re-field select,
.re-field textarea {
  width: 100%; min-height: 42px; padding: 0.55rem 0.75rem;
  border-radius: 12px; border: 1px solid var(--border);
  background: var(--bg); color: var(--text); font: inherit; font-weight: 550;
}
.re-field textarea { min-height: 5.5rem; resize: vertical; }
.re-field input:focus,
.re-field select:focus,
.re-field textarea:focus {
  outline: none; border-color: color-mix(in srgb, var(--accent) 55%, var(--border));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent);
}
.re-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0.85rem 1rem;
}
.re-span-2 { grid-column: 1 / -1; }
.re-tabs {
  display: flex; flex-wrap: wrap; gap: 0.45rem;
  padding-bottom: 0.85rem; border-bottom: 1px solid var(--border);
}
.re-tab {
  display: inline-flex; align-items: center; gap: 0.4rem;
  min-height: 38px; padding: 0.45rem 0.9rem; border-radius: 12px;
  border: 1px solid var(--border); background: var(--bg); color: var(--text);
  font: inherit; font-size: 0.86rem; font-weight: 650; cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.re-tab .ws-ico { width: 16px; height: 16px; }
.re-tab:hover { background: var(--nav-hover-bg); }
.re-tab.is-on {
  background: var(--accent); border-color: transparent; color: #fff;
}
.re-clients {
  display: grid; gap: 0.55rem; max-height: 22rem; overflow: auto;
  padding-right: 0.15rem;
}
.re-client {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.75rem 0.85rem; border-radius: 14px;
  border: 1px solid var(--border); background: color-mix(in srgb, var(--bg) 70%, var(--surface));
  transition: border-color 0.15s ease, background 0.15s ease;
}
.re-client.is-selected {
  border-color: color-mix(in srgb, var(--accent) 55%, var(--border));
  background: color-mix(in srgb, var(--accent) 10%, var(--surface));
}
.re-client-copy { min-width: 0; flex: 1; display: grid; gap: 0.1rem; }
.re-client-copy strong {
  font-size: 0.9rem; font-weight: 700;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.re-client-copy .muted {
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 0.75rem;
}
.re-empty {
  margin: 0; padding: 1.5rem; text-align: center;
  border: 1px dashed var(--border); border-radius: 14px;
}
.re-subhead {
  margin: 0.25rem 0 0; font-size: 0.9rem; font-weight: 700;
}
.re-charges { display: grid; gap: 0.45rem; }
.re-charge {
  display: flex; align-items: flex-start; gap: 0.65rem;
  padding: 0.65rem 0.75rem; border-radius: 12px;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg) 65%, var(--surface));
  font-size: 0.86rem; font-weight: 550; cursor: pointer;
}
.re-charge input { margin-top: 0.2rem; }
.re-charge.is-on {
  border-color: color-mix(in srgb, var(--accent) 45%, var(--border));
  background: color-mix(in srgb, var(--accent) 8%, var(--surface));
}
.re-hint { margin: 0; font-size: 0.8rem; }
.re-hint.is-warn { color: #c97800; }
html[data-theme="dark"] .re-hint.is-warn { color: #ffcc66; }
.re-foot {
  display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0.5rem;
  padding-top: 0.35rem; border-top: 1px solid var(--border); margin-top: 0.25rem;
}
.re-blocked {
  place-items: center; text-align: center; padding: 2.4rem 1.25rem; gap: 0.45rem;
}
.re-blocked h3 { margin: 0.2rem 0 0; font-size: 1.05rem; font-weight: 750; }
.re-blocked-actions {
  display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center; margin-top: 0.75rem;
}

@media (max-width: 720px) {
  .re { max-width: none; }
  .re-grid { grid-template-columns: 1fr; }
  .re-span-2 { grid-column: auto; }
  .re-client { flex-wrap: wrap; }
}

/* -- Rentals list -- */
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.rl { width: 100%; display: grid; gap: 1rem; }
.rl-hero {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
  gap: 1rem; padding: 1.2rem 1.25rem;
  border-radius: 18px; background: var(--surface); border: 1px solid var(--border);
  box-shadow: var(--ws-shadow, none);
}
.rl-hero-copy { max-width: 36rem; }
.rl-summary {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.75rem;
}
.rl-toolbar {
  display: flex; flex-wrap: wrap; gap: 0.65rem; align-items: center;
}
.rl-search {
  position: relative; flex: 1 1 16rem; min-width: 0;
}
.rl-search-ico {
  position: absolute; left: 0.85rem; top: 50%; transform: translateY(-50%);
  display: grid; place-items: center; color: var(--muted); pointer-events: none;
}
.rl-search-ico .ws-ico { width: 16px; height: 16px; }
.rl-search input {
  width: 100%; min-height: 42px; padding: 0.55rem 0.85rem 0.55rem 2.4rem;
  border-radius: 12px; border: 1px solid var(--border);
  background: var(--surface); color: var(--text); font: inherit; font-weight: 550;
}
.rl-search input:focus {
  outline: none; border-color: color-mix(in srgb, var(--accent) 55%, var(--border));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent);
}
.rl-status {
  min-height: 42px; min-width: 11rem; padding: 0.5rem 0.85rem;
  border-radius: 12px; border: 1px solid var(--border);
  background: var(--surface); color: var(--text); font: inherit; font-weight: 600;
}
.rl-panel {
  border-radius: 18px; background: var(--surface); border: 1px solid var(--border);
  box-shadow: var(--ws-shadow, none); overflow: hidden;
}
.rl-panel-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 1.15rem; border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg) 55%, var(--surface));
}
.rl-panel-head h2 {
  margin: 0; display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 1rem; font-weight: 750; letter-spacing: -0.02em;
}
.rl-empty {
  display: grid; place-items: center; text-align: center; gap: 0.45rem;
  padding: 3rem 1.25rem;
}
.rl-empty h3 { margin: 0.25rem 0 0; font-size: 1.05rem; font-weight: 750; }
.rl-empty .prop-btn { margin-top: 0.7rem; }
.rl-cards {
  display: none; gap: 0.75rem; padding: 0.85rem;
}
.rl-pricing-mini { margin: 0.15rem 0 0; font-size: 0.7rem; }
.rl-table-wrap { display: block; }
.rl-card {
  padding: 1rem 1.05rem; border-radius: 16px;
  background: color-mix(in srgb, var(--bg) 55%, var(--surface));
  border: 1px solid var(--border);
  display: grid; gap: 0.85rem;
  animation: ud-in 0.3s ease both;
}
.rl-card-top {
  display: flex; align-items: flex-start; gap: 0.7rem;
}
.rl-card-copy { min-width: 0; flex: 1; display: grid; gap: 0.15rem; }
.rl-card-copy strong {
  font-size: 0.98rem; font-weight: 750; letter-spacing: -0.02em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.rl-card-copy .muted {
  font-size: 0.8rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.rl-card-meta {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem;
}
.rl-meta-label {
  margin: 0; font-size: 0.65rem; font-weight: 800;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted);
}
.rl-meta-value {
  margin: 0.25rem 0 0; font-size: 0.92rem; font-weight: 700; color: var(--text);
}
.rl-meta-value.is-money {
  color: color-mix(in srgb, var(--text) 25%, #1f7a3a);
}
html[data-theme="dark"] .rl-meta-value.is-money { color: #7ddea0; }
.rl-card-actions {
  display: flex; gap: 0.45rem; padding-top: 0.75rem; border-top: 1px solid var(--border);
}
.rl-card-actions .prop-btn { flex: 1; justify-content: center; }
.rl-card-main {
  display: grid; gap: 0.85rem;
  text-decoration: none; color: inherit; min-width: 0;
}
.rl-card-main:hover .rl-card-copy strong { color: var(--accent); }
.rl-contract-cell {
  display: flex; align-items: center; gap: 0.7rem;
  text-decoration: none; color: inherit; min-width: 0;
}
.rl-contract-cell > div { display: grid; gap: 0.1rem; min-width: 0; }
.rl-contract-cell:hover strong { color: var(--accent); }
.rl-contract-cell strong {
  font-size: 0.9rem; font-weight: 700;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.rl-contract-cell .muted {
  font-size: 0.75rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.rl-unit-plain { display: grid; gap: 0.1rem; }
.rl-unit-plain strong { font-size: 0.9rem; font-weight: 700; }
.rl-unit-plain .muted { font-size: 0.75rem; }
.rl-row { cursor: pointer; }
.rl-row:hover td { background: color-mix(in srgb, var(--accent) 6%, transparent); }
.rl-unit-cell, .rl-client-cell {
  display: flex; align-items: center; gap: 0.7rem; min-width: 0;
  text-decoration: none; color: inherit;
}
.rl-unit-cell:hover strong, .rl-client-cell:hover strong { color: var(--accent); }
.rl-unit-cell > div, .rl-client-cell {
  display: grid; gap: 0.1rem; min-width: 0;
}
.rl-client-cell { display: grid; }
.rl-unit-cell strong, .rl-client-cell strong {
  font-size: 0.9rem; font-weight: 700;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.rl-unit-cell .muted, .rl-client-cell .muted {
  font-size: 0.75rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.rl-money {
  font-weight: 750;
  color: color-mix(in srgb, var(--text) 25%, #1f7a3a);
}
html[data-theme="dark"] .rl-money { color: #7ddea0; }
.rl-actions-col { text-align: right; }
.rl-row-actions {
  display: inline-flex; align-items: center; justify-content: flex-end; gap: 0.35rem;
}
.rl-filter-empty {
  padding: 1.5rem 1.15rem; text-align: center; border-top: 1px solid var(--border);
}

@media (max-width: 820px) {
  .rl-table-wrap { display: none; }
  .rl-cards { display: grid; }
}
@media (min-width: 821px) {
  .rl-cards { display: none !important; }
  .rl-table-wrap { display: block; }
}
@media (max-width: 560px) {
  .rl-summary { grid-template-columns: 1fr; }
  .rl-status { width: 100%; }
  .rl-search { max-width: none; }
}

/* -- Hub (/app) -- */
.hub { width: 100%; display: grid; gap: 1rem; }
.hub-hero {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
  gap: 1rem; padding: 1.35rem 1.35rem 1.4rem;
  border-radius: 20px; background:
    radial-gradient(120% 80% at 100% 0%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 55%),
    var(--surface);
  border: 1px solid var(--border); box-shadow: var(--ws-shadow, none);
}
.hub-hero-copy { max-width: 40rem; }
.hub-summary {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.75rem;
}
.hub-inline-link { color: var(--accent); text-decoration: none; font-weight: 700; }
.hub-inline-link:hover { text-decoration: underline; }
.hub-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); gap: 0.85rem;
}
.hub-card {
  display: flex; align-items: center; gap: 0.85rem;
  padding: 1rem 1.05rem; border-radius: 16px; text-decoration: none; color: inherit;
  background: var(--surface); border: 1px solid var(--border);
  box-shadow: var(--ws-shadow, none);
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
  animation: ud-in 0.35s ease both;
}
.hub-card:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--accent) 35%, var(--border));
  background: color-mix(in srgb, var(--accent) 5%, var(--surface));
}
.hub-card-add {
  width: 100%; text-align: left; cursor: pointer; font: inherit;
  border-style: dashed; background: color-mix(in srgb, var(--bg) 70%, var(--surface));
}
.hub-avatar {
  flex-shrink: 0; width: 2.75rem; height: 2.75rem; border-radius: 14px;
  display: grid; place-items: center;
  background: color-mix(in srgb, var(--accent) 14%, var(--bg));
  color: var(--accent); font-weight: 800; font-size: 1.05rem;
}
.hub-avatar.is-add { background: var(--bg-muted); color: var(--muted); }
.hub-avatar.is-add .ws-ico { width: 18px; height: 18px; }
.hub-card-copy { min-width: 0; flex: 1; display: grid; gap: 0.15rem; }
.hub-card-copy strong {
  font-size: 0.98rem; font-weight: 750; letter-spacing: -0.02em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.hub-card-copy .muted { font-size: 0.78rem; }
.hub-card-meta { display: flex; align-items: center; gap: 0.45rem; }
.hub-go { display: grid; place-items: center; color: var(--muted); }
.hub-go .ws-ico { width: 16px; height: 16px; }
.hub-empty {
  display: grid; place-items: center; text-align: center; gap: 0.45rem;
  padding: 3.2rem 1.25rem; border-radius: 18px;
  background: var(--surface); border: 1px solid var(--border);
}
.hub-empty h2 { margin: 0.3rem 0 0; font-size: 1.15rem; font-weight: 750; }
.hub-empty .prop-btn { margin-top: 0.75rem; }
.hub-modal-panel { max-width: 26rem; }
.hub-create-form { display: grid; gap: 0.85rem; margin-top: 0.5rem; }
.hub-create-actions { display: flex; gap: 0.5rem; justify-content: flex-end; margin-top: 0.35rem; }

/* -- Shared list pages (models) -- */
.lp { width: 100%; display: grid; gap: 1rem; }
.lp-hero {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
  gap: 1rem; padding: 1.15rem 1.25rem;
  border-radius: 18px; background: var(--surface); border: 1px solid var(--border);
  box-shadow: var(--ws-shadow, none);
}
.lp-hero-copy { min-width: 0; max-width: 36rem; }
.lp-hero-links { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.lp-summary { display: grid; grid-template-columns: minmax(0, 12rem); gap: 0.75rem; }
.lp-summary-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.lp-panel {
  border-radius: 18px; background: var(--surface); border: 1px solid var(--border);
  box-shadow: var(--ws-shadow, none); overflow: hidden;
}
.lp-panel-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 1.15rem; border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg) 55%, var(--surface));
}
.lp-panel-head h2 {
  margin: 0; display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 1rem; font-weight: 750; letter-spacing: -0.02em;
}
.lp-list { display: grid; }
.lp-row {
  display: flex; align-items: center; justify-content: space-between; gap: 0.85rem;
  padding: 0.95rem 1.15rem; text-decoration: none; color: inherit;
  border-bottom: 1px solid var(--border); transition: background 0.15s ease;
}
.lp-row:last-child { border-bottom: 0; }
.lp-row:hover:not(.is-static) { background: var(--nav-hover-bg); }
.lp-row.is-static { cursor: default; }
.lp-row-main { display: flex; align-items: center; gap: 0.8rem; min-width: 0; }
.lp-row-copy { min-width: 0; display: grid; gap: 0.12rem; }
.lp-row-copy strong {
  font-size: 0.95rem; font-weight: 750; letter-spacing: -0.02em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.lp-row:hover:not(.is-static) .lp-row-copy strong { color: var(--accent); }
.lp-row-copy .muted {
  font-size: 0.78rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.lp-row-meta {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 0.55rem;
}
.lp-row-action { font-size: 0.78rem; font-weight: 650; }
.lp-empty {
  display: grid; place-items: center; text-align: center; gap: 0.45rem; padding: 3rem 1.25rem;
}
.lp-empty h3 { margin: 0.25rem 0 0; font-size: 1.05rem; font-weight: 750; }
.lp-empty .prop-btn { margin-top: 0.65rem; }
.lp-filter-empty { padding: 1.25rem; text-align: center; border-top: 1px solid var(--border); }
.lp-split {
  display: grid; grid-template-columns: minmax(16rem, 0.9fr) minmax(0, 1.3fr); gap: 1rem; align-items: start;
}
.re-form-narrow { max-width: 40rem; }
.lp-tickets { display: grid; gap: 0.85rem; }
.lp-ticket {
  padding: 1.1rem 1.15rem; border-radius: 16px;
  background: var(--surface); border: 1px solid var(--border);
  box-shadow: var(--ws-shadow, none); display: grid; gap: 0.75rem;
}
.lp-ticket-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 0.75rem;
}
.lp-ticket-head strong { font-size: 1rem; font-weight: 750; }
.lp-ticket-head .muted { margin: 0.2rem 0 0; font-size: 0.78rem; }
.lp-ticket-body {
  margin: 0; font-size: 0.9rem; line-height: 1.5;
  color: color-mix(in srgb, var(--text) 85%, var(--muted));
}
.lp-ticket-form {
  display: grid; grid-template-columns: 1fr 1fr auto; gap: 0.65rem; align-items: end;
  padding-top: 0.65rem; border-top: 1px solid var(--border);
}

@media (max-width: 960px) {
  .hub-summary, .lp-summary-3 { grid-template-columns: 1fr; }
  .lp-split { grid-template-columns: 1fr; }
  .lp-ticket-form { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .hub-hero, .lp-hero { padding: 1rem; }
  .lp-row { flex-direction: column; align-items: flex-start; }
  .lp-row-meta { justify-content: flex-start; }
}

/* -- Clients list / edit / detail -- */
.cl { width: 100%; display: grid; gap: 1rem; }
.cl-hero {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
  gap: 1rem; padding: 1.15rem 1.25rem;
  border-radius: 18px; background: var(--surface); border: 1px solid var(--border);
  box-shadow: var(--ws-shadow, none);
}
.cl-hero-copy { min-width: 0; max-width: 36rem; }
.cl-summary {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.75rem;
}
.cl-toolbar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 0.75rem;
}
.cl-search { flex: 1 1 14rem; max-width: 24rem; }
.cl-panel {
  border-radius: 18px; background: var(--surface); border: 1px solid var(--border);
  box-shadow: var(--ws-shadow, none); overflow: hidden;
}
.cl-panel-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 1.15rem; border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg) 55%, var(--surface));
}
.cl-panel-head h2 {
  margin: 0; display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 1rem; font-weight: 750; letter-spacing: -0.02em;
}
.cl-empty {
  display: grid; place-items: center; text-align: center; gap: 0.45rem; padding: 3rem 1.25rem;
}
.cl-empty h3 { margin: 0.25rem 0 0; font-size: 1.05rem; font-weight: 750; }
.cl-empty .prop-btn { margin-top: 0.65rem; }
.cl-cards { display: none; gap: 0.75rem; padding: 0.85rem; }
.cl-card {
  display: grid; gap: 0.7rem; padding: 0.95rem 1rem; border-radius: 14px;
  text-decoration: none; color: inherit;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg) 55%, var(--surface));
  transition: border-color 0.15s ease, background 0.15s ease;
}
.cl-card:hover {
  border-color: color-mix(in srgb, var(--accent) 35%, var(--border));
  background: var(--nav-hover-bg);
}
.cl-card-top { display: flex; align-items: flex-start; gap: 0.7rem; }
.cl-card-copy { min-width: 0; flex: 1; display: grid; gap: 0.12rem; }
.cl-card-copy strong {
  font-size: 0.95rem; font-weight: 750; letter-spacing: -0.02em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.cl-card-copy .muted { font-size: 0.78rem; }
.cl-card-meta {
  display: flex; justify-content: space-between; gap: 0.75rem;
  font-size: 0.78rem; padding-top: 0.55rem; border-top: 1px solid var(--border);
}
.cl-avatar {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.55rem; height: 2.55rem; border-radius: 12px; flex-shrink: 0;
  font-size: 0.92rem; font-weight: 800; letter-spacing: -0.02em;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 14%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--accent) 22%, var(--border));
}
.cl-avatar.is-sm { width: 2.15rem; height: 2.15rem; border-radius: 10px; font-size: 0.82rem; }
.cl-avatar.is-lg {
  width: 3.4rem; height: 3.4rem; border-radius: 16px; font-size: 1.2rem;
  color: #fff; background: var(--accent); border-color: transparent;
  box-shadow: 0 8px 20px color-mix(in srgb, var(--accent) 28%, transparent);
}
.cl-name-cell {
  display: inline-flex; align-items: center; gap: 0.7rem;
  text-decoration: none; color: inherit;
}
.cl-name-cell > span:last-child { display: grid; gap: 0.1rem; min-width: 0; }
.cl-name-cell strong { font-weight: 750; letter-spacing: -0.02em; }
.cl-name-cell:hover strong { color: var(--accent); }
.cl-sub {
  display: block; font-size: 0.75rem;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 16rem;
}
.cl-code { font-weight: 650; font-variant-numeric: tabular-nums; }
.cl-date-col { text-align: right; white-space: nowrap; }
.cl-italic { font-style: italic; }

.ce { width: 100%; display: grid; gap: 1rem; max-width: 46rem; }
.ce-form { display: grid; gap: 1rem; margin: 0; }
.ce-form .is-readonly {
  opacity: 0.85; background: color-mix(in srgb, var(--bg) 70%, var(--surface));
}

.cd { width: 100%; display: grid; gap: 1rem; }
.cd-hero {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
  gap: 1rem; padding: 1.15rem 1.25rem;
  border-radius: 18px; background: var(--surface); border: 1px solid var(--border);
  box-shadow: var(--ws-shadow, none);
}
.cd-hero-copy { min-width: 0; max-width: 42rem; }
.cd-title-row { display: flex; align-items: flex-start; gap: 0.9rem; }
.cd-title-copy { min-width: 0; }
.cd-hero-actions { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.cd-kpis {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.75rem;
}
.cd-kpi-sub { margin: 0.25rem 0 0; font-size: 0.75rem; }
.ud-kpi.is-paid .ud-kpi-value { color: #1f8a4c; }
html[data-theme="dark"] .ud-kpi.is-paid .ud-kpi-value { color: #7ddea0; }
.ud-kpi.is-due .ud-kpi-value { color: #b45309; }
html[data-theme="dark"] .ud-kpi.is-due .ud-kpi-value { color: #fbbf24; }
.cd-layout {
  display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(16rem, 0.85fr);
  gap: 1rem; align-items: start;
}
.cd-main, .cd-side { display: grid; gap: 1rem; min-width: 0; }
.cd-mini { display: block; font-size: 0.72rem; margin-top: 0.15rem; }
.cd-dl { margin: 0.85rem 0 0; display: grid; gap: 0.7rem; }
.cd-dl > div {
  display: grid; gap: 0.15rem;
  padding-bottom: 0.65rem; border-bottom: 1px solid var(--border);
}
.cd-dl > div:last-child { border-bottom: 0; padding-bottom: 0; }
.cd-dl dt {
  margin: 0; font-size: 0.65rem; font-weight: 800;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted);
}
.cd-dl dd { margin: 0; font-size: 0.92rem; font-weight: 650; color: var(--text); word-break: break-word; }
.cd-side h3, .cd-main .ud-card-body > h3 {
  margin: 0; font-size: 0.98rem; font-weight: 750; letter-spacing: -0.02em;
}

@media (max-width: 820px) {
  .cl-table-wrap { display: none; }
  .cl-cards { display: grid; }
  .cd-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cd-layout { grid-template-columns: 1fr; }
}
@media (min-width: 821px) {
  .cl-cards { display: none !important; }
  .cl-table-wrap { display: block; }
}
@media (max-width: 560px) {
  .cl-summary { grid-template-columns: 1fr; }
  .cl-search { max-width: none; }
  .cd-kpis { grid-template-columns: 1fr; }
  .cd-title-row { flex-direction: column; }
  .cd-hero-actions .prop-btn { flex: 1 1 auto; justify-content: center; }
}

/* -- Rental detail -- */
.rd { width: 100%; display: grid; gap: 1rem; }
.rd-hero {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
  gap: 1rem; padding: 1.15rem 1.25rem 1.2rem 1.4rem;
  border-radius: 18px; background:
    linear-gradient(165deg, color-mix(in srgb, var(--accent) 8%, var(--surface)) 0%, var(--surface) 42%);
  border: 1px solid var(--border);
  box-shadow: var(--ws-shadow, none);
  position: relative; overflow: hidden;
}
.rd-hero::before {
  content: "";
  position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
  background: var(--accent);
}
.rd-hero-copy { min-width: 0; max-width: 46rem; flex: 1 1 22rem; }
.rd-hero-actions { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.rd-kicker {
  margin: 0 0 0.45rem;
  font-size: 11px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent);
}
.rd-parties {
  display: flex; align-items: stretch; gap: 0.45rem; flex-wrap: wrap;
}
.rd-party {
  flex: 1 1 13rem; min-width: 0;
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.75rem 0.9rem; border-radius: 16px;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg) 45%, var(--surface));
  text-decoration: none; color: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.rd-party:hover {
  border-color: color-mix(in srgb, var(--accent) 45%, var(--border));
  box-shadow: 0 8px 20px color-mix(in srgb, var(--accent) 10%, transparent);
}
.rd-party-copy { min-width: 0; display: grid; gap: 0.12rem; }
.rd-party-role {
  font-size: 0.65rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted);
}
.rd-party-copy strong {
  font-size: 1.08rem; font-weight: 800; letter-spacing: -0.02em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.rd-party-copy .muted {
  font-size: 0.8rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.rd-parties-join {
  display: flex; align-items: center; gap: 0.3rem;
  color: var(--accent); flex: 0 0 auto; align-self: center; padding: 0 0.15rem;
}
.rd-parties-join .ws-ico { width: 18px; height: 18px; }
.rd-join-line {
  width: 1.1rem; height: 1px;
  background: color-mix(in srgb, var(--accent) 50%, var(--border));
}
.rd-unit-mark {
  flex-shrink: 0; width: 3.5rem; height: 3.5rem; border-radius: 16px;
  display: grid; place-items: center;
  background: color-mix(in srgb, var(--accent) 12%, var(--surface));
  color: var(--accent);
  border: 1px solid color-mix(in srgb, var(--accent) 22%, var(--border));
}
.rd-unit-mark .ws-ico { width: 22px; height: 22px; }
.rd-hero-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.55rem;
  margin-top: 0.85rem;
}
.rd-timeline {
  list-style: none; margin: 0; padding: 0.9rem 1.15rem;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr));
  gap: 0.35rem; border-radius: 16px;
  background: var(--surface); border: 1px solid var(--border);
  box-shadow: var(--ws-shadow, none);
}
.rd-timeline li {
  position: relative; padding: 0.4rem 0.55rem 0.4rem 1.15rem;
  display: grid; gap: 0.12rem;
}
.rd-timeline li::before {
  content: "";
  position: absolute; left: 0; top: 0.65rem;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--border);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--border) 55%, transparent);
}
.rd-timeline li.is-done::before {
  background: #34c759;
  box-shadow: 0 0 0 3px color-mix(in srgb, #34c759 22%, transparent);
}
.rd-timeline li.is-on::before {
  background: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent);
}
.rd-timeline li span {
  font-size: 0.65rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted);
}
.rd-timeline li strong { font-size: 0.92rem; font-weight: 750; letter-spacing: -0.02em; }
.rd-clauses {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0.65rem; margin: 0;
}
.rd-clauses div {
  margin: 0; padding: 0.8rem 0.9rem; border-radius: 12px;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg) 65%, var(--surface));
}
.rd-clauses dt {
  font-size: 0.65rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted);
}
.rd-clauses dd { margin: 0.3rem 0 0; font-size: 0.95rem; font-weight: 700; }
.rd-notes-block {
  margin: 0.95rem 0 0; padding: 0.9rem 1rem; border-radius: 12px;
  border: 1px dashed color-mix(in srgb, var(--accent) 30%, var(--border));
  background: color-mix(in srgb, var(--accent) 5%, var(--surface));
}
.rd-notes-block p { margin: 0.35rem 0 0; font-size: 0.9rem; line-height: 1.55; }
.rd-unit-link {
  display: flex; align-items: center; gap: 0.75rem;
  margin-top: 0.55rem; text-decoration: none; color: inherit;
}
.rd-unit-link:hover strong { color: var(--accent); }
.rd-unit-link > span:last-child { display: grid; gap: 0.1rem; min-width: 0; }
.rd-unit-link strong { display: block; font-size: 0.98rem; font-weight: 750; }
.rd-top-kpis {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.75rem;
}
.rd-layout {
  display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(16rem, 0.85fr);
  gap: 1rem; align-items: start;
}
.rd-main, .rd-side { display: grid; gap: 1rem; min-width: 0; }
.rd-section-title {
  margin: 0 0 0.95rem; display: inline-flex; align-items: center; gap: 0.45rem;
  font-size: 1rem; font-weight: 750; letter-spacing: -0.02em;
}
.rd-section-title .ws-ico { width: 18px; height: 18px; color: var(--accent); }
.rd-info-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0.65rem;
}
.rd-info {
  padding: 0.85rem 0.95rem; border-radius: 14px;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg) 65%, var(--surface));
}
.rd-info strong {
  display: block; margin-top: 0.3rem; font-size: 0.95rem; font-weight: 750;
  letter-spacing: -0.02em;
}
.rd-notes {
  margin: 0.95rem 0 0; font-size: 0.88rem; line-height: 1.5;
  padding-top: 0.85rem; border-top: 1px solid var(--border);
}
.rd-tenant {
  display: flex; align-items: center; gap: 0.95rem;
}
.rd-tenant-actions {
  display: flex; flex-wrap: wrap; gap: 0.35rem; margin-left: auto;
}
.rd-avatar {
  flex-shrink: 0; width: 3.5rem; height: 3.5rem; border-radius: 16px;
  display: grid; place-items: center;
  background: var(--accent); color: #fff; font-weight: 800; font-size: 1.25rem;
  box-shadow: 0 8px 20px color-mix(in srgb, var(--accent) 28%, transparent);
}
.rd-tenant-copy { min-width: 0; display: grid; gap: 0.15rem; }
.rd-tenant-copy a { color: inherit; text-decoration: none; }
.rd-tenant-copy a:hover strong { color: var(--accent); }
.rd-tenant-copy strong { font-size: 1.05rem; font-weight: 750; }
.rd-tenant-copy .muted { font-size: 0.84rem; }
.rd-unit-desc {
  margin: 0 0 0.75rem; font-size: 0.9rem; line-height: 1.55;
  color: color-mix(in srgb, var(--text) 85%, var(--muted));
}
.rd-inv-kpis {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.65rem;
}
.rd-inv-kpi {
  padding: 0.95rem 1rem; border-radius: 14px; text-align: center;
  background: var(--surface); border: 1px solid var(--border);
  box-shadow: var(--ws-shadow, none);
}
.rd-inv-kpi strong {
  display: block; font-size: 1.45rem; font-weight: 800; letter-spacing: -0.03em;
}
.rd-inv-kpi span {
  display: block; margin-top: 0.2rem; font-size: 0.75rem; font-weight: 650; color: var(--muted);
}
.rd-inv-kpi.is-ok {
  background: color-mix(in srgb, var(--ok-bg) 70%, var(--surface));
  border-color: color-mix(in srgb, #34c759 25%, var(--border));
}
.rd-inv-kpi.is-ok strong { color: color-mix(in srgb, var(--text) 20%, #248a3d); }
html[data-theme="dark"] .rd-inv-kpi.is-ok strong { color: #7ddea0; }
.rd-inv-kpi.is-warn {
  background: color-mix(in srgb, #ff9f0a 10%, var(--surface));
  border-color: color-mix(in srgb, #ff9f0a 25%, var(--border));
}
.rd-inv-kpi.is-warn strong { color: #c97800; }
html[data-theme="dark"] .rd-inv-kpi.is-warn strong { color: #ffcc66; }
.rd-inv-kpi.is-bad {
  background: color-mix(in srgb, var(--danger-bg) 80%, var(--surface));
  border-color: color-mix(in srgb, var(--danger) 22%, var(--border));
}
.rd-inv-kpi.is-bad strong { color: var(--danger); }
.rd-billing { display: grid; gap: 0.85rem; }
.rd-amount {
  padding: 0.9rem 1rem; border-radius: 14px;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg) 65%, var(--surface));
}
.rd-amount.is-rent {
  background: color-mix(in srgb, var(--ok-bg) 65%, var(--surface));
  border-color: color-mix(in srgb, #34c759 22%, var(--border));
}
.rd-amount strong {
  display: block; margin-top: 0.3rem; font-size: 1.25rem; font-weight: 800; letter-spacing: -0.03em;
}
.rd-amount.is-rent strong { color: color-mix(in srgb, var(--text) 20%, #248a3d); }
html[data-theme="dark"] .rd-amount.is-rent strong { color: #7ddea0; }
.rd-meta-pair {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0.65rem;
}
.rd-meta-pair strong { display: block; margin-top: 0.25rem; font-size: 0.88rem; font-weight: 700; }
.rd-charges { display: grid; gap: 0.4rem; }
.rd-charge-row {
  display: flex; justify-content: space-between; gap: 0.75rem;
  font-size: 0.86rem; padding: 0.35rem 0;
}
.rd-charge-row span { color: color-mix(in srgb, var(--text) 80%, var(--muted)); }
.rd-billing > div > strong { display: block; margin-top: 0.25rem; font-size: 0.9rem; font-weight: 700; }

@media (max-width: 960px) {
  .rd-layout { grid-template-columns: 1fr; }
  .rd-info-grid { grid-template-columns: 1fr; }
  .rd-top-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rd-clauses { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .rd-inv-kpis { grid-template-columns: 1fr; }
  .rd-meta-pair { grid-template-columns: 1fr; }
  .rd-top-kpis { grid-template-columns: 1fr; }
  .rd-tenant { flex-wrap: wrap; }
  .rd-tenant-actions { margin-left: 0; width: 100%; }
  .rd-parties-join { display: none; }
  .rd-hero { padding-left: 1.15rem; }
}

/* -- Bookings / Réservations -- */
.bk { width: 100%; display: grid; gap: 1rem; }
.bk-hero {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
  gap: 1rem; padding: 1.15rem 1.25rem;
  border-radius: 18px; background: var(--surface); border: 1px solid var(--border);
  box-shadow: var(--ws-shadow, none);
}
.bk-hero-copy { min-width: 0; max-width: 36rem; }
.bk-summary {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.75rem;
}
.bk-toolbar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.65rem;
}
.bk-search { flex: 1 1 14rem; max-width: 24rem; }
.bk-panel {
  border-radius: 18px; background: var(--surface); border: 1px solid var(--border);
  box-shadow: var(--ws-shadow, none); overflow: hidden;
}
.bk-panel-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 1.15rem; border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg) 55%, var(--surface));
}
.bk-panel-head h2 {
  margin: 0; display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 1rem; font-weight: 750; letter-spacing: -0.02em;
}
.bk-empty {
  display: grid; place-items: center; text-align: center; gap: 0.45rem; padding: 3rem 1.25rem;
}
.bk-empty h3 { margin: 0.25rem 0 0; font-size: 1.05rem; font-weight: 750; }
.bk-empty .prop-btn { margin-top: 0.65rem; }
.bk-cards { display: none; gap: 0.75rem; padding: 0.85rem; }
.bk-card {
  display: grid; gap: 0.75rem; padding: 0.95rem 1rem; border-radius: 14px;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg) 55%, var(--surface));
}
.bk-card-top { display: flex; align-items: flex-start; gap: 0.7rem; }
.bk-card-copy { min-width: 0; flex: 1; display: grid; gap: 0.12rem; }
.bk-card-copy strong {
  font-size: 0.95rem; font-weight: 750; letter-spacing: -0.02em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.bk-card-copy .muted { font-size: 0.78rem; }
.bk-card-meta {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0.65rem;
  padding-top: 0.55rem; border-top: 1px solid var(--border);
}
.bk-card-actions {
  display: flex; gap: 0.45rem; padding-top: 0.55rem; border-top: 1px solid var(--border);
}
.bk-card-actions .prop-btn { flex: 1; justify-content: center; }
.bk-name-cell {
  display: inline-flex; align-items: center; gap: 0.7rem;
  text-decoration: none; color: inherit;
}
.bk-name-cell > span:last-child { display: grid; gap: 0.1rem; min-width: 0; }
.bk-name-cell:hover strong { color: var(--accent); }
.bk-sub { display: block; font-size: 0.75rem; }
.bk-period { font-weight: 650; }

.be { width: 100%; display: grid; gap: 1rem; max-width: 46rem; }
.be-form { display: grid; gap: 1rem; margin: 0; }

.bd { width: 100%; display: grid; gap: 1rem; }
.bd-hero {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
  gap: 1rem; padding: 1.15rem 1.25rem;
  border-radius: 18px; background: var(--surface); border: 1px solid var(--border);
  box-shadow: var(--ws-shadow, none);
}
.bd-hero-copy { min-width: 0; max-width: 40rem; }
.bd-hero-actions {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.45rem;
}
.bd-hero-actions form { margin: 0; }
.bd-kpis {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.75rem;
}
.bd-layout {
  display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(16rem, 0.85fr);
  gap: 1rem; align-items: start;
}
.bd-main, .bd-side { display: grid; gap: 1rem; min-width: 0; }
.bd-nearby .ud-card-head h3 { margin: 0; }

@media (max-width: 820px) {
  .bk-table-wrap { display: none; }
  .bk-cards { display: grid; }
  .bd-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bd-layout { grid-template-columns: 1fr; }
}
@media (min-width: 821px) {
  .bk-cards { display: none !important; }
  .bk-table-wrap { display: block; }
}
@media (max-width: 560px) {
  .bk-summary { grid-template-columns: 1fr 1fr; }
  .bk-search { max-width: none; }
  .bd-kpis { grid-template-columns: 1fr; }
  .bd-hero-actions .prop-btn { flex: 1 1 auto; justify-content: center; }
}

/* -- Facturation / Invoices -- */
.inv { width: 100%; display: grid; gap: 1rem; }
.inv-hero {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
  gap: 1rem; padding: 1.15rem 1.25rem;
  border-radius: 18px; background: var(--surface); border: 1px solid var(--border);
  box-shadow: var(--ws-shadow, none);
}
.inv-hero-copy { min-width: 0; max-width: 36rem; }
.inv-hero-actions { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.inv-summary {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.75rem;
}
.inv-toolbar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem;
}
.inv-search { flex: 1 1 14rem; max-width: 22rem; }
.inv-panel {
  border-radius: 18px; background: var(--surface); border: 1px solid var(--border);
  box-shadow: var(--ws-shadow, none); overflow: hidden;
}
.inv-panel-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 1.15rem; border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg) 55%, var(--surface));
}
.inv-panel-head h2 {
  margin: 0; display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 1rem; font-weight: 750; letter-spacing: -0.02em;
}
.inv-empty {
  display: grid; place-items: center; text-align: center; gap: 0.45rem; padding: 3rem 1.25rem;
}
.inv-empty h3 { margin: 0.25rem 0 0; font-size: 1.05rem; font-weight: 750; }
.inv-empty .prop-btn { margin-top: 0.65rem; }
.inv-cards { display: none; gap: 0.75rem; padding: 0.85rem; }
.inv-card {
  display: grid; gap: 0.7rem; padding: 0.95rem 1rem; border-radius: 14px;
  text-decoration: none; color: inherit;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg) 55%, var(--surface));
}
.inv-card:hover {
  border-color: color-mix(in srgb, var(--accent) 35%, var(--border));
  background: var(--nav-hover-bg);
}
.inv-card-top { display: flex; align-items: flex-start; gap: 0.7rem; }
.inv-card-copy { min-width: 0; flex: 1; display: grid; gap: 0.12rem; }
.inv-card-copy strong { font-size: 0.95rem; font-weight: 750; }
.inv-card-copy .muted { font-size: 0.78rem; }
.inv-card-meta {
  display: flex; justify-content: space-between; gap: 0.75rem;
  font-size: 0.78rem; padding-top: 0.55rem; border-top: 1px solid var(--border);
}
.inv-num-cell {
  display: grid; gap: 0.1rem; text-decoration: none; color: inherit;
}
.inv-num-cell:hover strong { color: var(--accent); }
.inv-sub { display: block; font-size: 0.75rem; }

.ie { width: 100%; display: grid; gap: 1rem; max-width: 46rem; }
.ie-form { display: grid; gap: 1rem; margin: 0; }

.id { width: 100%; max-width: 40rem; margin: 0 auto; display: grid; gap: 1.6rem; }
.id-nav {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 0.75rem;
}
.id-nav > a {
  display: inline-flex; align-items: center; gap: 0.3rem;
  color: var(--muted); text-decoration: none; font-size: 0.88rem; font-weight: 600;
}
.id-nav > a:hover { color: var(--text); }
.id-nav-actions { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.id-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem;
}
.id-head-copy { min-width: 0; }
.id-kicker {
  margin: 0 0 0.35rem; font-size: 0.72rem; font-weight: 800;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted);
}
.id-head h1 {
  margin: 0; font-size: clamp(1.55rem, 3vw, 2rem); font-weight: 800;
  letter-spacing: -0.035em; line-height: 1.15;
}
.id-who { margin: 0.4rem 0 0; font-size: 0.98rem; }
.id-who a { color: inherit; text-decoration: none; font-weight: 650; }
.id-who a:hover { color: var(--accent); }
.id-balance {
  display: grid; gap: 1.1rem; padding: 1.15rem 1.2rem;
  border-radius: 16px; background: var(--surface); border: 1px solid var(--border);
}
.id-balance.is-due { border-color: color-mix(in srgb, #ff9f0a 35%, var(--border)); }
.id-balance.is-ok { border-color: color-mix(in srgb, #34c759 28%, var(--border)); }
.id-balance.is-off { opacity: 0.78; }
.id-balance-label {
  margin: 0; font-size: 0.72rem; font-weight: 800;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted);
}
.id-balance-value {
  margin: 0.25rem 0 0; font-size: clamp(1.7rem, 3.4vw, 2.15rem);
  font-weight: 800; letter-spacing: -0.04em; line-height: 1.1;
}
.id-balance.is-due .id-balance-value { color: #c97800; }
.id-balance.is-ok .id-balance-value { color: color-mix(in srgb, var(--text) 20%, #248a3d); }
html[data-theme="dark"] .id-balance.is-due .id-balance-value { color: #ffc46b; }
html[data-theme="dark"] .id-balance.is-ok .id-balance-value { color: #7ddea0; }
.id-facts {
  margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.75rem;
  padding-top: 0.95rem; border-top: 1px solid var(--border);
}
.id-facts dt {
  font-size: 0.68rem; font-weight: 750; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--muted);
}
.id-facts dd { margin: 0.2rem 0 0; font-size: 0.88rem; font-weight: 700; }
.id-block h2 {
  margin: 0 0 0.85rem; font-size: 0.78rem; font-weight: 800;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted);
}
.id-block-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 0.75rem;
}
.id-block-head h2 { margin-bottom: 0.85rem; }
.id-text-btn {
  display: inline-flex; align-items: center; gap: 0.25rem;
  border: 0; background: none; padding: 0; cursor: pointer;
  font: inherit; font-size: 0.86rem; font-weight: 650; color: var(--accent);
}
.id-text-btn:hover { text-decoration: underline; }
.id-lines, .id-pays { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.id-lines li, .id-pays li {
  display: flex; align-items: baseline; justify-content: space-between; gap: 1rem;
  padding: 0.7rem 0; border-bottom: 1px solid var(--border);
  font-size: 0.92rem;
}
.id-lines li:last-child, .id-pays li:last-child { border-bottom: 0; }
.id-lines li span { min-width: 0; overflow-wrap: anywhere; }
.id-lines li.is-total { padding-top: 0.9rem; font-size: 1rem; }
.id-lines strong, .id-pays strong { font-weight: 750; letter-spacing: -0.02em; white-space: nowrap; }
.id-pays li { align-items: center; }
.id-pays li > div { display: grid; gap: 0.12rem; min-width: 0; }
.id-pays li span { font-size: 0.8rem; color: var(--muted); }
.id-pays a { color: var(--accent); text-decoration: none; font-size: 0.84rem; font-weight: 650; }
.id-pays a:hover { text-decoration: underline; }
.id-empty { margin: 0; font-size: 0.9rem; color: var(--muted); }
.id-foot { display: grid; gap: 0.85rem; padding-top: 0.25rem; }
.id-links { display: flex; flex-wrap: wrap; gap: 0.35rem 1rem; }
.id-links a {
  display: inline-flex; align-items: center; gap: 0.35rem;
  color: var(--muted); text-decoration: none; font-size: 0.86rem; font-weight: 600;
}
.id-links a:hover { color: var(--text); }
.id-links .ws-ico { width: 14px; height: 14px; }
.id-more summary {
  cursor: pointer; color: var(--muted); font-size: 0.82rem; font-weight: 650;
  list-style: none;
}
.id-more summary::-webkit-details-marker { display: none; }
.id-more summary:hover { color: var(--text); }
.id-more-list {
  display: flex; flex-wrap: wrap; gap: 0.35rem 0.85rem; margin-top: 0.55rem;
}
.id-more-list button {
  border: 0; background: none; padding: 0; cursor: pointer;
  font: inherit; font-size: 0.84rem; font-weight: 600; color: var(--muted);
}
.id-more-list button:hover { color: var(--text); }
.id-more-list button.is-danger { color: var(--danger); }
.id-pay-panel { max-width: 28rem; text-align: left; }
.id-pay-form { display: grid; gap: 0.75rem; margin-top: 0.85rem; }
.rd-avatar.is-sm { width: 2.4rem; height: 2.4rem; border-radius: 12px; font-size: 0.9rem; }
.dash-stat-ico.is-warn {
  background: color-mix(in srgb, #ff9f0a 16%, var(--surface));
  color: #c97800;
}

@media (max-width: 820px) {
  .inv-table-wrap { display: none; }
  .inv-cards { display: grid; }
  .inv-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .id-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 821px) {
  .inv-cards { display: none !important; }
  .inv-table-wrap { display: block; }
}
@media (max-width: 560px) {
  .inv-summary { grid-template-columns: 1fr; }
  .inv-search { max-width: none; }
  .id { gap: 1.25rem; }
  .id-head { flex-wrap: wrap; }
  .id-nav-actions .prop-btn { flex: 1 1 auto; justify-content: center; }
  .id-facts { grid-template-columns: 1fr 1fr; }
}

/* ——— Charges ——— */
.ch-hero {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
  gap: 1rem; margin-bottom: 1.25rem;
}
.ch-hero-copy { min-width: 0; max-width: 36rem; }
.ch-summary {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.75rem; margin-bottom: 1rem;
}
.ch-toolbar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 0.75rem; margin-bottom: 0.85rem;
}
.ch-search { flex: 1 1 14rem; max-width: 22rem; }
.ch-panel {
  border: 1px solid var(--border); border-radius: 1rem; background: var(--surface);
  overflow: hidden;
}
.ch-panel-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.95rem 1.1rem; border-bottom: 1px solid var(--border);
}
.ch-panel-head h2 {
  margin: 0; font-size: 1rem; font-weight: 750; display: inline-flex; align-items: center; gap: 0.5rem;
}
.ch-empty {
  display: grid; place-items: center; text-align: center; gap: 0.35rem; padding: 2.5rem 1.25rem;
}
.ch-empty h3 { margin: 0.25rem 0 0; font-size: 1.05rem; font-weight: 750; }
.ch-empty .prop-btn { margin-top: 0.65rem; }
.ch-cards { display: none; gap: 0.75rem; padding: 0.85rem; }
.ch-card {
  display: grid; gap: 0.65rem; padding: 0.9rem 1rem; border-radius: 0.85rem;
  border: 1px solid var(--border); background: var(--bg); text-decoration: none; color: inherit;
}
.ch-card:hover {
  border-color: color-mix(in srgb, var(--accent) 35%, var(--border));
  background: color-mix(in srgb, var(--accent) 4%, var(--bg));
}
.ch-card-top { display: flex; align-items: flex-start; gap: 0.7rem; }
.ch-card-copy { min-width: 0; flex: 1; display: grid; gap: 0.12rem; }
.ch-card-copy strong { font-size: 0.95rem; font-weight: 750; }
.ch-card-copy .muted { font-size: 0.78rem; }
.ch-card-meta {
  display: flex; align-items: center; justify-content: space-between; gap: 0.75rem;
  padding-top: 0.15rem;
}
.ch-name-cell {
  display: inline-flex; align-items: flex-start; gap: 0.65rem; text-decoration: none; color: inherit;
}
.ch-name-cell:hover strong { color: var(--accent); }
.ch-name-cell .dash-stat-ico { flex-shrink: 0; }
.ch-name-cell > span { display: grid; gap: 0.1rem; min-width: 0; }
.ch-sub { display: block; font-size: 0.75rem; }
.ch-row-action { text-align: right; width: 1%; white-space: nowrap; }
.ch-filter-empty { padding: 1.25rem; text-align: center; }
.ch-table-wrap { display: block; }

.ce-form { display: grid; gap: 1rem; margin: 0; }
.ce-index-fields { margin-top: 0.85rem; padding-top: 0.85rem; border-top: 1px dashed var(--border); }

.cdet-hero {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
  gap: 1rem; margin-bottom: 1.15rem;
}
.cdet-hero-copy { min-width: 0; max-width: 40rem; }
.cdet-hero-actions { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.cdet-kpis {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.75rem; margin-bottom: 1rem;
}
.cdet-layout {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(15rem, 18rem); gap: 1rem; align-items: start;
}
.cdet-main, .cdet-side { display: grid; gap: 1rem; min-width: 0; }
.cdet-desc {
  margin: 0 0 1rem; font-size: 0.92rem; line-height: 1.55; color: var(--muted);
}
.cdet-empty-inline { padding: 1.5rem 0.5rem; }
.cdet-side h3 { margin: 0 0 0.75rem; font-size: 0.98rem; font-weight: 750; }

@media (max-width: 820px) {
  .ch-table-wrap { display: none; }
  .ch-cards { display: grid; }
  .ch-summary, .cdet-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cdet-layout { grid-template-columns: 1fr; }
}
@media (min-width: 821px) {
  .ch-cards { display: none !important; }
  .ch-table-wrap { display: block; }
}
@media (max-width: 560px) {
  .ch-summary, .cdet-kpis { grid-template-columns: 1fr; }
  .ch-search { max-width: none; }
  .cdet-hero-actions .prop-btn { flex: 1 1 auto; justify-content: center; }
}

/* -- List pages: en-tête compact (sidebar, hors accueil / paramètres) -- */
.list-page {
  gap: 0.5rem;
}
.list-page > :is(
  .units-hero, .cl-hero, .rl-hero, .bk-hero, .inv-hero, .ch-hero, .lp-hero, .sup-hero
) {
  align-items: center;
  padding: 0.55rem 0.75rem;
  border-radius: 12px;
  gap: 0.55rem;
  box-shadow: none;
}
.list-page :is(
  .units-hero-copy, .cl-hero-copy, .rl-hero-copy, .bk-hero-copy,
  .inv-hero-copy, .ch-hero-copy, .lp-hero-copy, .sup-hero-copy
) {
  max-width: none;
  flex: 1 1 12rem;
  min-width: 0;
  display: grid;
  gap: 0.05rem;
}
.list-page .dash-kicker {
  margin: 0;
  font-size: 0.62rem;
  font-weight: 750;
  letter-spacing: 0.1em;
  line-height: 1.2;
}
.list-page .dash-title {
  margin: 0;
  font-size: 1.12rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.list-page .dash-lead {
  display: none;
}
.list-page > :is(
  .units-hero, .cl-hero, .rl-hero, .bk-hero, .inv-hero, .ch-hero, .lp-hero, .sup-hero
) .prop-btn {
  padding: 0.35rem 0.7rem;
  min-height: 32px;
  font-size: 0.8rem;
  border-radius: 10px;
}
.list-page .inv-hero-actions,
.list-page .lp-hero-links {
  gap: 0.35rem;
}
.list-page > :is(
  .units-summary, .cl-summary, .rl-summary, .bk-summary, .inv-summary, .ch-summary, .sup-summary, .eq-summary
) {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  grid-template-columns: unset;
}
.list-page .units-summary-card {
  flex: 1 1 7rem;
  min-width: 0;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 0.45rem;
  padding: 0.4rem 0.65rem;
  border-radius: 10px;
  box-shadow: none;
}
.list-page .units-summary-card .muted {
  font-size: 0.68rem;
  font-weight: 650;
  line-height: 1.2;
}
.list-page .units-summary-card strong {
  font-size: 0.95rem;
  font-weight: 800;
  white-space: nowrap;
}
.list-page :is(.inv-summary, .ch-summary) .ud-kpi {
  flex: 1 1 9rem;
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: auto;
  align-items: center;
  gap: 0 0.5rem;
  padding: 0.4rem 0.65rem;
  border-radius: 10px;
  animation: none;
  box-shadow: none;
}
.list-page :is(.inv-summary, .ch-summary) .ud-kpi-top {
  grid-column: 1;
  grid-row: 1;
  justify-content: flex-start;
}
.list-page :is(.inv-summary, .ch-summary) .ud-kpi-top .dash-stat-ico {
  display: none;
}
.list-page :is(.inv-summary, .ch-summary) .ud-kpi-label {
  font-size: 0.68rem;
  letter-spacing: 0.06em;
}
.list-page :is(.inv-summary, .ch-summary) .ud-kpi-value {
  grid-column: 2;
  grid-row: 1;
  margin: 0;
  font-size: 0.92rem;
  text-align: right;
}
.list-page :is(.inv-summary, .ch-summary) .cd-kpi-sub {
  display: none;
}
.list-page > :is(
  .units-toolbar, .cl-toolbar, .rl-toolbar, .bk-toolbar, .inv-toolbar, .ch-toolbar, .sup-toolbar, .eq-toolbar
) {
  gap: 0.5rem;
}
.list-page :is(
  .units-panel-head, .cl-panel-head, .rl-panel-head, .bk-panel-head,
  .inv-panel-head, .ch-panel-head, .lp-panel-head, .sup-panel-head, .eq-panel-head
) {
  padding: 0.55rem 0.85rem;
}
.list-page :is(
  .units-panel-head h2, .cl-panel-head h2, .rl-panel-head h2, .bk-panel-head h2,
  .inv-panel-head h2, .ch-panel-head h2, .lp-panel-head h2, .sup-panel-head h2
) {
  font-size: 0.88rem;
}
@media (max-width: 640px) {
  .list-page > :is(
    .units-hero, .cl-hero, .rl-hero, .bk-hero, .inv-hero, .ch-hero, .lp-hero, .sup-hero
  ) {
    flex-direction: column;
    align-items: stretch;
  }
  .list-page > :is(
    .units-hero, .cl-hero, .rl-hero, .bk-hero, .inv-hero, .ch-hero, .lp-hero, .sup-hero
  ) > .prop-btn,
  .list-page .inv-hero-actions,
  .list-page .lp-hero-links {
    width: 100%;
    justify-content: center;
  }
  .list-page .units-summary-card,
  .list-page :is(.inv-summary, .ch-summary) .ud-kpi {
    flex: 1 1 calc(50% - 0.4rem);
  }
}

/* -- Support -- */
.sup { width: 100%; display: grid; gap: 0.65rem; }
.sup-tabs {
  display: flex; flex-wrap: wrap; gap: 0.35rem;
  padding: 0.2rem 0;
}
.sup-tab {
  padding: 0.35rem 0.75rem; border-radius: 999px;
  font-size: 0.78rem; font-weight: 700; text-decoration: none;
  color: var(--muted); border: 1px solid var(--border);
  background: var(--surface); transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.sup-tab:hover { color: var(--text); border-color: color-mix(in srgb, var(--accent) 35%, var(--border)); }
.sup-tab.is-on {
  color: var(--accent); border-color: color-mix(in srgb, var(--accent) 45%, var(--border));
  background: color-mix(in srgb, var(--accent) 10%, var(--surface));
}
.sup-hero {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
  gap: 1rem; padding: 1.15rem 1.25rem;
  border-radius: 18px; background: var(--surface); border: 1px solid var(--border);
  box-shadow: var(--ws-shadow, none);
}
.sup-hero-copy { min-width: 0; max-width: 36rem; }
.sup-summary {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.75rem;
}
.sup-toolbar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem;
}
.sup-search { flex: 1 1 14rem; max-width: 24rem; }
.sup-panel {
  border-radius: 18px; background: var(--surface); border: 1px solid var(--border);
  box-shadow: var(--ws-shadow, none); overflow: hidden;
}
.sup-panel-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 1.15rem; border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg) 55%, var(--surface));
}
.sup-panel-head h2 {
  margin: 0; display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 1rem; font-weight: 750; letter-spacing: -0.02em;
}
.sup-empty {
  display: grid; place-items: center; text-align: center; gap: 0.45rem; padding: 3rem 1.25rem;
}
.sup-empty h3 { margin: 0.25rem 0 0; font-size: 1.05rem; font-weight: 750; }
.sup-empty .prop-btn { margin-top: 0.65rem; }
.sup-cards { display: none; gap: 0.75rem; padding: 0.85rem; }
.sup-card {
  display: grid; gap: 0.55rem; padding: 0.95rem 1rem; border-radius: 14px;
  text-decoration: none; color: inherit;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg) 55%, var(--surface));
  transition: border-color 0.15s, background 0.15s;
}
.sup-card:hover {
  border-color: color-mix(in srgb, var(--accent) 35%, var(--border));
  background: var(--nav-hover-bg);
}
.sup-card-top { display: flex; align-items: flex-start; gap: 0.7rem; }
.sup-card-copy { min-width: 0; flex: 1; display: grid; gap: 0.12rem; }
.sup-card-copy strong { font-size: 0.95rem; font-weight: 750; }
.sup-card-copy .muted { font-size: 0.78rem; }
.sup-card-preview {
  margin: 0; font-size: 0.84rem; line-height: 1.45; color: color-mix(in srgb, var(--text) 82%, var(--muted));
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.sup-card-meta {
  display: flex; justify-content: space-between; gap: 0.75rem;
  font-size: 0.78rem; padding-top: 0.45rem; border-top: 1px solid var(--border);
}
.sup-name-cell {
  display: grid; gap: 0.1rem; text-decoration: none; color: inherit;
}
.sup-name-cell:hover strong { color: var(--accent); }
.sup-sub { display: block; font-size: 0.75rem; }
.sup-filter-empty { padding: 1.25rem; text-align: center; }
.sup-table-wrap { display: block; }

.sd { width: 100%; display: grid; gap: 1rem; }
.sd-hero {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
  gap: 1rem; padding: 1.15rem 1.25rem;
  border-radius: 18px; background: var(--surface); border: 1px solid var(--border);
  box-shadow: var(--ws-shadow, none);
}
.sd-hero-copy { min-width: 0; max-width: 40rem; }
.sd-hero-actions { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.sd-kpis {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.75rem;
}
.sd-layout {
  display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(16rem, 0.85fr);
  gap: 1rem; align-items: start;
}
.sd-main, .sd-side { display: grid; gap: 1rem; min-width: 0; }
.sd-body {
  margin: 0; font-size: 0.92rem; line-height: 1.6; white-space: pre-wrap; word-break: break-word;
}
.sd-side h3 { margin: 0 0 0.75rem; font-size: 0.98rem; font-weight: 750; }

.se { width: 100%; display: grid; gap: 1rem; max-width: 46rem; }
.se-form { display: grid; gap: 1rem; margin: 0; }

@media (max-width: 820px) {
  .sup-table-wrap { display: none; }
  .sup-cards { display: grid; }
  .sup-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sd-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sd-layout { grid-template-columns: 1fr; }
}
@media (min-width: 821px) {
  .sup-cards { display: none !important; }
  .sup-table-wrap { display: block; }
}
@media (max-width: 560px) {
  .sup-summary, .sd-kpis { grid-template-columns: 1fr; }
  .sup-search { max-width: none; }
  .sd-hero-actions .prop-btn { flex: 1 1 auto; justify-content: center; }
}

/* —— Équipe —— */
.eq { width: 100%; display: grid; gap: 1rem; }
.eq-hero {
  display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between;
  gap: 0.85rem;
}
.eq-hero-copy { min-width: 0; max-width: 36rem; }
.eq-summary {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.65rem;
}
.eq-toolbar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.65rem;
}
.eq-toolbar-note { font-size: 0.78rem; padding: 0.2rem 0; }
.eq-search { flex: 1 1 14rem; max-width: 22rem; }
.eq-panel {
  border-radius: 18px; background: var(--surface); border: 1px solid var(--border);
  box-shadow: var(--ws-shadow, none); overflow: hidden;
}
.eq-panel-head {
  display: flex; align-items: center; justify-content: space-between; gap: 0.75rem;
  padding: 0.75rem 1rem; border-bottom: 1px solid var(--border);
}
.eq-panel-head h2 { margin: 0; font-size: 0.98rem; font-weight: 750; }
.eq-owner {
  display: flex; align-items: center; gap: 0.75rem; padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border); background: color-mix(in srgb, var(--accent) 4%, transparent);
}
.eq-empty {
  display: grid; justify-items: center; text-align: center; gap: 0.35rem;
  padding: 2rem 1.25rem;
}
.eq-empty h3 { margin: 0.25rem 0 0; font-size: 1.05rem; font-weight: 750; }
.eq-cards { display: none; gap: 0.75rem; padding: 0.85rem; }
.eq-card {
  display: grid; gap: 0.55rem; padding: 0.85rem; border-radius: 14px;
  border: 1px solid var(--border); background: var(--surface-2, var(--surface));
  text-decoration: none; color: inherit; transition: border-color 0.15s, box-shadow 0.15s;
}
.eq-card:hover { border-color: color-mix(in srgb, var(--accent) 40%, var(--border)); box-shadow: 0 8px 24px rgba(0,0,0,0.04); }
.eq-card-top { display: flex; align-items: flex-start; gap: 0.7rem; }
.eq-card-copy { min-width: 0; flex: 1; display: grid; gap: 0.12rem; }
.eq-card-copy strong { font-size: 0.95rem; font-weight: 750; }
.eq-card-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.45rem 0.65rem; font-size: 0.78rem; }
.eq-avatar {
  display: inline-grid; place-items: center; width: 2.35rem; height: 2.35rem; border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 14%, var(--surface)); font-weight: 750; font-size: 0.92rem; flex-shrink: 0;
}
.eq-avatar-sm { width: 1.85rem; height: 1.85rem; font-size: 0.78rem; }
.eq-name-cell {
  display: inline-flex; align-items: center; gap: 0.55rem; color: inherit; text-decoration: none; min-width: 0;
}
.eq-name-cell:hover strong { color: var(--accent); }
.eq-name-cell > span { display: grid; gap: 0.1rem; min-width: 0; }
.eq-sub { display: block; font-size: 0.75rem; }
.eq-filter-empty { padding: 1.25rem; text-align: center; }
.eq-table-wrap { display: block; }

.ed, .ee { width: 100%; display: grid; gap: 1rem; }
.ed-hero {
  display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between;
  gap: 1rem; padding: 1.15rem 1.25rem; border-radius: 18px;
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--ws-shadow, none);
}
.ed-hero-copy { min-width: 0; max-width: 40rem; }
.ed-hero-actions { display: flex; flex-wrap: wrap; gap: 0.45rem; align-items: center; }
.ed-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.75rem; }
.ed-layout {
  display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(16rem, 0.85fr);
  gap: 1rem; align-items: start;
}
.ed-main, .ed-side { display: grid; gap: 1rem; min-width: 0; }
.ed-dl { display: grid; gap: 0.65rem; margin: 0; }
.ed-dl > div { display: grid; grid-template-columns: 8rem minmax(0, 1fr); gap: 0.5rem; font-size: 0.9rem; }
.ed-dl dt { margin: 0; color: var(--muted); font-weight: 600; }
.ed-dl dd { margin: 0; }
.ed-side-lead { margin: 0 0 0.85rem; font-size: 0.86rem; line-height: 1.55; }
.ed-side-warn { margin: 0.75rem 0 0; font-size: 0.82rem; }
.ee-form { display: grid; gap: 1rem; margin: 0; max-width: 46rem; }
.ee-hint { margin: 0; font-size: 0.82rem; }

.eq-lookup { position: relative; display: block; }
.eq-lookup input { width: 100%; padding-right: 2.25rem; }
.eq-lookup-mark {
  position: absolute; right: 0.65rem; top: 50%; transform: translateY(-50%);
  width: 0.55rem; height: 0.55rem; border-radius: 999px; background: var(--muted);
}
.eq-lookup-mark.is-spin {
  width: 0.9rem; height: 0.9rem; border-radius: 999px; border: 2px solid var(--border);
  border-top-color: var(--accent); background: transparent; animation: eq-spin 0.7s linear infinite;
}
.eq-lookup-mark.is-ok { background: var(--ok, #0d7a4e); }
.eq-lookup-mark.is-err { background: var(--danger); }
@keyframes eq-spin { to { transform: translateY(-50%) rotate(360deg); } }
.eq-lookup-result {
  padding: 0.75rem 0.85rem; border-radius: 12px; border: 1px solid var(--border); font-size: 0.86rem;
}
.eq-lookup-result.is-ok { border-color: color-mix(in srgb, var(--ok, #0d7a4e) 35%, var(--border)); background: color-mix(in srgb, var(--ok, #0d7a4e) 8%, transparent); }
.eq-lookup-result.is-err { border-color: var(--danger-border); background: var(--danger-bg); color: var(--danger); }
.eq-lookup-result.is-wait { border-color: var(--border); background: var(--surface-2, var(--surface)); }
.eq-found { display: flex; align-items: center; gap: 0.65rem; }
.eq-found .muted { display: block; font-size: 0.78rem; margin-top: 0.1rem; }

@media (max-width: 820px) {
  .eq-table-wrap { display: none; }
  .eq-cards { display: grid; }
  .eq-summary, .ed-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ed-layout { grid-template-columns: 1fr; }
}
@media (min-width: 821px) {
  .eq-cards { display: none !important; }
  .eq-table-wrap { display: block; }
}
@media (max-width: 560px) {
  .eq-summary, .ed-kpis { grid-template-columns: 1fr; }
  .eq-search { max-width: none; }
  .ed-hero-actions .prop-btn { flex: 1 1 auto; justify-content: center; }
  .ed-dl > div { grid-template-columns: 1fr; gap: 0.15rem; }
}

/* —— Paramètres —— */
.stg, .std, .ste { width: 100%; display: grid; gap: 1rem; }
.stg-hero, .std-hero {
  display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between;
  gap: 0.85rem; padding: 1.15rem 1.25rem; border-radius: 18px;
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--ws-shadow, none);
}
.stg-hero-copy, .std-hero-copy { min-width: 0; max-width: 40rem; }
.stg-hero-actions, .std-hero-actions { display: flex; flex-wrap: wrap; gap: 0.45rem; align-items: center; }
.stg-summary, .std-kpis {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.75rem;
}
.stg-panel {
  border-radius: 18px; background: var(--surface); border: 1px solid var(--border);
  box-shadow: var(--ws-shadow, none); overflow: hidden;
}
.stg-panel-head {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem;
  padding: 0.75rem 1rem; border-bottom: 1px solid var(--border);
}
.stg-panel-head h2 { margin: 0; font-size: 0.98rem; font-weight: 750; }
.stg-readonly { font-size: 0.78rem; }
.stg-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; padding: 0.85rem;
}
.stg-card {
  display: grid; gap: 0.55rem; padding: 0.9rem; border-radius: 14px;
  border: 1px solid var(--border); background: var(--surface-2, var(--surface));
}
.stg-card-top { display: flex; align-items: flex-start; gap: 0.7rem; }
.stg-card-copy { min-width: 0; flex: 1; display: grid; gap: 0.12rem; }
.stg-card-copy strong { font-size: 0.95rem; font-weight: 750; }
.stg-card-copy .muted { font-size: 0.78rem; line-height: 1.45; }
.stg-card-preview { margin: 0; font-size: 0.84rem; color: var(--muted); }
.stg-card-actions { display: flex; flex-wrap: wrap; gap: 0.4rem; }

.std-layout {
  display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(16rem, 0.85fr);
  gap: 1rem; align-items: start;
}
.std-main, .std-side { display: grid; gap: 1rem; min-width: 0; }
.std-dl { display: grid; gap: 0.65rem; margin: 0; }
.std-dl > div { display: grid; grid-template-columns: 8rem minmax(0, 1fr); gap: 0.5rem; font-size: 0.9rem; }
.std-dl dt { margin: 0; color: var(--muted); font-weight: 600; }
.std-dl dd { margin: 0; white-space: pre-wrap; word-break: break-word; }
.std-dl-compact > div { grid-template-columns: 6.5rem minmax(0, 1fr); }
.std-section-head {
  display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; margin-bottom: 0.75rem;
}
.std-section-head .rd-section-title { margin: 0; }
.std-side-lead { margin: 0 0 0.85rem; font-size: 0.86rem; line-height: 1.55; }
.std-logo-preview {
  margin: 0 0 0.75rem; padding: 0.65rem; border-radius: 12px;
  border: 1px dashed var(--border); background: var(--surface-2, var(--surface));
  max-height: 6rem; display: grid; place-items: center;
}
.std-logo-preview img { max-height: 5rem; max-width: 100%; object-fit: contain; }

.ste-form { display: grid; gap: 1rem; margin: 0; max-width: 46rem; }
.ste-tabs { margin: 0; }
.ste-foot { display: flex; flex-wrap: wrap; gap: 0.45rem; align-items: center; }
.ste-hint { margin: 0; font-size: 0.82rem; line-height: 1.55; }
.ste-hint a, .std-section-head a { color: var(--accent); text-decoration: none; font-weight: 600; }
.ste-hint a:hover, .std-section-head a:hover { text-decoration: underline; }

.pr-fmt-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.75rem;
}
.pr-fmt {
  position: relative; display: grid; justify-items: center; gap: 0.4rem;
  padding: 1rem 0.6rem 0.85rem; border-radius: 16px; text-align: center;
  border: 1px solid var(--border); background: var(--surface-2, var(--surface));
  cursor: pointer; transition: border-color 0.15s ease, background 0.15s ease;
}
.pr-fmt input {
  position: absolute; opacity: 0; width: 1px; height: 1px; overflow: hidden;
}
.pr-fmt:hover { border-color: color-mix(in srgb, var(--accent) 40%, var(--border)); }
.pr-fmt.is-on, .pr-fmt:has(input:checked) {
  border-color: color-mix(in srgb, var(--accent) 60%, var(--border));
  background: color-mix(in srgb, var(--accent) 8%, var(--surface));
}
.pr-fmt strong { font-size: 0.95rem; font-weight: 800; letter-spacing: -0.02em; }
.pr-fmt em { font-style: normal; font-size: 0.75rem; color: var(--muted); }
.pr-fmt-sheet {
  display: grid; align-content: start; gap: 3px;
  background: color-mix(in srgb, var(--text) 4%, var(--surface));
  border: 1px solid var(--border); box-shadow: 0 4px 10px -8px rgba(0,0,0,0.35);
}
.pr-fmt-sheet span {
  display: block; height: 3px; border-radius: 2px;
  background: color-mix(in srgb, var(--text) 16%, transparent);
}
.pr-fmt-sheet.is-a4 { width: 34px; height: 46px; padding: 6px 5px; border-radius: 3px; }
.pr-fmt-sheet.is-80 { width: 20px; height: 46px; padding: 5px 3px; border-radius: 2px; }
.pr-fmt-sheet.is-58 { width: 15px; height: 42px; padding: 4px 2px; border-radius: 2px; }

@media (max-width: 640px) {
  .pr-fmt-grid { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .stg-grid { grid-template-columns: 1fr; }
  .std-layout { grid-template-columns: 1fr; }
  .stg-summary, .std-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .stg-summary, .std-kpis { grid-template-columns: 1fr; }
  .std-dl > div { grid-template-columns: 1fr; gap: 0.15rem; }
  .stg-hero-actions .prop-btn, .std-hero-actions .prop-btn { flex: 1 1 auto; justify-content: center; }
}

/* —— Espace locataire (cs-*) —— */
.cs-body { padding-bottom: 5.5rem; }
.cs-top {
  position: relative; z-index: 2;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  max-width: 880px; margin: 0 auto; padding: 16px 20px 0;
}
.cs-brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.cs-logo, .cs-avatar {
  width: 40px; height: 40px; border-radius: 12px; object-fit: cover; flex-shrink: 0;
}
.cs-avatar {
  display: grid; place-items: center;
  background: var(--blue-soft); color: var(--accent);
  font-weight: 700; font-size: 0.95rem;
}
.cs-avatar.is-lg { width: 52px; height: 52px; border-radius: 16px; font-size: 1.15rem; }
.cs-brand-copy { min-width: 0; }
.cs-brand-copy strong { display: block; font-size: 0.95rem; }
.cs-brand-copy span, .cs-kicker {
  display: block; color: var(--muted); font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.02em; text-transform: uppercase;
}
.cs-kicker { margin: 0 0 0.2rem; }
.cs-nav {
  position: relative; z-index: 2;
  display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none;
  max-width: 880px; margin: 12px auto 0; padding: 0 20px;
}
.cs-nav::-webkit-scrollbar { display: none; }
.cs-nav a {
  flex: 0 0 auto; padding: 0.4rem 0.85rem; border-radius: 980px;
  color: var(--muted); text-decoration: none; font-size: 0.82rem; font-weight: 600;
  white-space: nowrap;
}
.cs-nav a:hover { background: var(--nav-hover-bg); color: var(--text); }
.cs-nav a.is-on { background: var(--blue-soft); color: var(--accent); }
.cs-main {
  position: relative; z-index: 1;
  max-width: 880px; margin: 0 auto; padding: 1.25rem 20px 2rem;
  display: grid; gap: 1rem;
}
.cs-hero h1 { margin: 0; font-size: 1.55rem; letter-spacing: -0.03em; }
.cs-who { display: flex; align-items: center; gap: 0.85rem; }
.cs-who-meta { margin: 0.65rem 0 0; font-size: 0.86rem; }
.cs-who-meta a { color: var(--accent); text-decoration: none; font-weight: 600; }
.cs-kpis {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.65rem;
}
.cs-kpi {
  display: grid; gap: 0.15rem; padding: 0.9rem 1rem; border-radius: 16px;
  background: var(--surface); border: 1px solid var(--border); text-decoration: none; color: inherit;
}
.cs-kpi strong { font-size: 1.15rem; letter-spacing: -0.03em; }
.cs-kpi span { color: var(--muted); font-size: 0.75rem; font-weight: 500; }
.cs-kpi.is-due { border-color: var(--danger-border); background: var(--danger-bg); }
.cs-card {
  padding: 1.05rem 1.15rem; border-radius: 18px;
  background: var(--surface); border: 1px solid var(--border);
}
.cs-card h2 { margin: 0 0 0.75rem; font-size: 1rem; }
.cs-card-head {
  display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; margin-bottom: 0.75rem;
}
.cs-card-head h2 { margin: 0; }
.cs-facts {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem 1rem; margin: 0;
}
.cs-facts div { display: grid; gap: 0.15rem; }
.cs-facts dt { color: var(--muted); font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.03em; }
.cs-facts dd { margin: 0; font-weight: 600; font-size: 0.92rem; }
.cs-desc { margin: 0.75rem 0 0; font-size: 0.9rem; line-height: 1.55; color: var(--muted); }
.cs-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.35rem; }
.cs-list > li > a, .cs-list.is-static > li {
  display: flex; align-items: center; justify-content: space-between; gap: 0.75rem;
  padding: 0.7rem 0.15rem; text-decoration: none; color: inherit; border-bottom: 1px solid var(--border);
}
.cs-list > li:last-child > a, .cs-list.is-static > li:last-child { border-bottom: 0; }
.cs-list > li > a > div, .cs-list.is-static > li > div { display: grid; gap: 0.15rem; min-width: 0; }
.cs-list .muted { font-size: 0.78rem; }
.cs-list-side { display: grid; justify-items: end; gap: 0.25rem; flex-shrink: 0; }
.cs-money { font-weight: 700; font-variant-numeric: tabular-nums; }
.cs-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.cs-note { margin: 0; }
.cs-page-head h1 { margin: 0.15rem 0 0.25rem; font-size: 1.45rem; letter-spacing: -0.03em; }
.cs-page-head .prop-badge { margin-top: 0.45rem; }
.cs-banner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem;
  padding: 1rem 1.1rem; border-radius: 16px; background: var(--danger-bg); border: 1px solid var(--danger-border);
}
.cs-banner strong { font-size: 1.2rem; }
.cs-filters { margin: 0; }
.cs-empty {
  padding: 1.5rem 1.15rem; border-radius: 18px; background: var(--surface); border: 1px dashed var(--border);
  text-align: center; display: grid; gap: 0.5rem; justify-items: center;
}
.cs-empty h2 { margin: 0; font-size: 1.05rem; }
.cs-back { margin: 0; }
.cs-back a { color: var(--accent); text-decoration: none; font-weight: 600; font-size: 0.86rem; }
.cs-pay .prop-btn { margin-top: 0.5rem; }
.cs-wire { margin: 0.85rem 0 0; font-size: 0.88rem; line-height: 1.5; }
.cs-form { padding: 0; background: transparent; border: 0; }
.cs-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.65rem; }
.cs-plain { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.45rem; }
.cs-plain li { display: flex; justify-content: space-between; gap: 0.75rem; font-size: 0.9rem; }
.cs-tickets { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.75rem; }
.cs-tickets li {
  padding: 0.75rem 0; border-bottom: 1px solid var(--border); display: grid; gap: 0.3rem;
}
.cs-tickets li:last-child { border-bottom: 0; padding-bottom: 0; }
.cs-ticket-top { display: flex; justify-content: space-between; gap: 0.65rem; align-items: flex-start; }
.cs-tickets p { margin: 0; font-size: 0.88rem; line-height: 1.5; }
.cs-reply {
  padding: 0.65rem 0.75rem; border-radius: 12px; background: var(--blue-soft);
  font-size: 0.86rem !important;
}
.cs-contact {
  position: relative; z-index: 1;
  max-width: 880px; margin: 0 auto 1.5rem; padding: 1rem 20px;
  color: var(--muted); font-size: 0.84rem; line-height: 1.5;
}
.cs-contact strong { color: var(--text); }
.cs-contact-links { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 0.35rem; }
.cs-contact-links a { color: var(--accent); text-decoration: none; font-weight: 600; }
.cs-dock {
  position: fixed; z-index: 20; left: 0; right: 0; bottom: 0;
  display: none; grid-template-columns: repeat(5, 1fr);
  padding: 0.35rem 0.4rem calc(0.35rem + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
}
.cs-dock a {
  display: grid; justify-items: center; gap: 0.1rem; padding: 0.35rem 0.15rem;
  color: var(--muted); text-decoration: none; font-size: 0.65rem; font-weight: 600;
}
.cs-dock a.is-on { color: var(--accent); }
.cs-dock .ws-ico { width: 18px; height: 18px; }
@media (max-width: 820px) {
  .cs-kpis { grid-template-columns: 1fr 1fr; }
  .cs-nav { display: none; }
  .cs-dock { display: grid; }
  .cs-facts, .cs-form-row { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .cs-actions .prop-btn { flex: 1 1 auto; justify-content: center; }
}

