:root {
  --ink: #152a30;
  --ink-soft: #4f6368;
  --ink-faint: #7b8b8f;
  --paper: #f4f5f1;
  --surface: #ffffff;
  --surface-2: #edf1ed;
  --surface-3: #e4ebe7;
  --line: #d9e0dc;
  --brand: #1c555c;
  --brand-strong: #123c42;
  --brand-soft: #dcebe8;
  --accent: #e78462;
  --accent-soft: #fae8df;
  --success: #2e7658;
  --success-soft: #e1f1e8;
  --warning: #a66f1f;
  --warning-soft: #f8edd8;
  --danger: #a94747;
  --danger-soft: #f7e5e5;
  --info: #426c9b;
  --info-soft: #e3ebf5;
  --shadow-sm: 0 4px 16px rgba(19, 42, 48, .07);
  --shadow-md: 0 16px 42px rgba(19, 42, 48, .12);
  --shadow-lg: 0 28px 72px rgba(19, 42, 48, .18);
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --content-max: 1420px;
  --sidebar: 248px;
  --topbar: 76px;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--paper);
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 10% -10%, rgba(220, 235, 232, .85), transparent 30rem),
    radial-gradient(circle at 100% 0%, rgba(250, 232, 223, .65), transparent 24rem),
    var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}

h1,
h2,
h3,
h4 {
  letter-spacing: -.025em;
}

.noscript {
  margin: 20px;
  padding: 18px;
  border: 1px solid var(--danger);
  border-radius: var(--radius);
  background: var(--danger-soft);
}

.app-shell {
  min-height: 100vh;
}

.topbar {
  position: sticky;
  z-index: 50;
  top: 0;
  display: grid;
  grid-template-columns: minmax(210px, var(--sidebar)) minmax(0, 1fr) auto;
  align-items: center;
  height: var(--topbar);
  padding: 0 22px;
  border-bottom: 1px solid rgba(217, 224, 220, .9);
  background: rgba(250, 251, 248, .9);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .85) inset;
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -.04em;
}

.brand-mark {
  position: relative;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  overflow: hidden;
  border-radius: 12px;
  background: var(--brand);
  box-shadow: 0 8px 22px rgba(28, 85, 92, .24);
}

.brand-mark::before {
  width: 15px;
  height: 14px;
  border-radius: 3px 3px 5px 5px;
  background: white;
  content: "";
}

.brand-mark::after {
  position: absolute;
  top: 8px;
  width: 19px;
  height: 19px;
  border-top: 4px solid white;
  border-left: 4px solid white;
  content: "";
  transform: rotate(45deg);
}

.brand small {
  display: block;
  margin-top: 1px;
  color: var(--ink-faint);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.role-switcher {
  justify-self: center;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, .78);
  box-shadow: var(--shadow-sm);
}

.role-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  padding: 7px 13px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--ink-soft);
  cursor: pointer;
  font-size: 13px;
  font-weight: 750;
  transition: background .18s ease, color .18s ease, transform .18s ease;
}

.role-button:hover {
  background: var(--surface-2);
  color: var(--ink);
}

.role-button.active {
  background: var(--brand);
  color: white;
  box-shadow: 0 7px 18px rgba(28, 85, 92, .2);
}

.role-button:active,
.button:active,
.icon-button:active,
.nav-item:active {
  transform: translateY(1px);
}

.topbar-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
}

.icon-button {
  position: relative;
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(255, 255, 255, .82);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}

.icon-button:hover {
  border-color: #b9c7c2;
  background: white;
}

.icon-button .count {
  position: absolute;
  top: -5px;
  right: -4px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border: 2px solid var(--paper);
  border-radius: 999px;
  background: var(--accent);
  color: white;
  font-size: 10px;
  font-weight: 850;
  line-height: 16px;
  text-align: center;
}

.demo-user {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 5px 9px 5px 5px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(255, 255, 255, .78);
}

.avatar {
  display: inline-grid;
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 12px;
  background: var(--brand-soft);
  color: var(--brand-strong);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.avatar.lg {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  font-size: 15px;
}

.avatar.xl {
  width: 72px;
  height: 72px;
  border-radius: 22px;
  font-size: 20px;
}

.avatar.accent {
  background: var(--accent-soft);
  color: #7d402c;
}

.avatar.blue {
  background: var(--info-soft);
  color: #2b5584;
}

.demo-user-copy {
  min-width: 0;
}

.demo-user-copy strong,
.demo-user-copy span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.demo-user-copy strong {
  max-width: 150px;
  font-size: 12px;
}

.demo-user-copy span {
  margin-top: 2px;
  color: var(--ink-faint);
  font-size: 10px;
}

.workspace {
  display: grid;
  grid-template-columns: var(--sidebar) minmax(0, 1fr);
  min-height: calc(100vh - var(--topbar));
}

.sidebar {
  position: sticky;
  top: var(--topbar);
  align-self: start;
  height: calc(100vh - var(--topbar));
  padding: 22px 16px 20px;
  border-right: 1px solid var(--line);
  background: rgba(248, 249, 246, .64);
  overflow-y: auto;
}

.sidebar-label {
  margin: 8px 10px 10px;
  color: var(--ink-faint);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.nav-list {
  display: grid;
  gap: 5px;
}

.nav-item {
  display: flex;
  width: 100%;
  min-height: 44px;
  align-items: center;
  gap: 11px;
  padding: 10px 12px;
  border: 0;
  border-radius: 13px;
  background: transparent;
  color: var(--ink-soft);
  cursor: pointer;
  font-size: 13px;
  font-weight: 720;
  text-align: left;
  transition: background .18s ease, color .18s ease, transform .18s ease;
}

.nav-item:hover {
  background: rgba(220, 235, 232, .64);
  color: var(--brand-strong);
}

.nav-item.active {
  background: var(--brand-soft);
  color: var(--brand-strong);
}

.nav-item .nav-icon {
  display: grid;
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 8px;
  background: rgba(255, 255, 255, .7);
  font-size: 13px;
}

.nav-item.active .nav-icon {
  background: white;
  box-shadow: 0 3px 10px rgba(18, 60, 66, .08);
}

.nav-item .nav-count {
  min-width: 22px;
  margin-left: auto;
  padding: 2px 6px;
  border-radius: 999px;
  background: white;
  color: var(--brand-strong);
  font-size: 10px;
  font-weight: 850;
  text-align: center;
}

.sidebar-card {
  margin-top: 22px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .76);
  box-shadow: var(--shadow-sm);
}

.sidebar-card strong {
  display: block;
  margin-bottom: 5px;
  font-size: 12px;
}

.sidebar-card p {
  margin-bottom: 12px;
  color: var(--ink-soft);
  font-size: 11px;
  line-height: 1.55;
}

.content {
  width: 100%;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 30px 34px 70px;
  overflow: hidden;
}

.page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.page-kicker {
  margin-bottom: 7px;
  color: var(--brand);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.page-title {
  margin-bottom: 7px;
  font-size: clamp(27px, 3vw, 40px);
  line-height: 1.08;
}

.page-description {
  max-width: 700px;
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.65;
}

.page-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 9px;
}

.button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 15px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: background .18s ease, border-color .18s ease, color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.button:hover {
  border-color: #bac9c4;
  box-shadow: var(--shadow-sm);
}

.button.primary {
  background: var(--brand);
  color: white;
}

.button.primary:hover {
  border-color: var(--brand);
  background: var(--brand-strong);
}

.button.accent {
  background: var(--accent);
  color: white;
}

.button.accent:hover {
  border-color: var(--accent);
  background: #cf6c4d;
}

.button.secondary {
  border-color: var(--line);
  background: white;
}

.button.ghost {
  background: transparent;
  color: var(--ink-soft);
}

.button.danger {
  border-color: #e9c1c1;
  background: var(--danger-soft);
  color: var(--danger);
}

.button.success {
  border-color: #b9d9c7;
  background: var(--success-soft);
  color: var(--success);
}

.button.warning {
  border-color: #ead4a8;
  background: var(--warning-soft);
  color: var(--warning);
}

.button.small {
  min-height: 34px;
  padding: 7px 10px;
  border-radius: 10px;
  font-size: 11px;
}

.button.large {
  min-height: 50px;
  padding: 12px 19px;
  border-radius: 14px;
  font-size: 14px;
}

.button.full {
  width: 100%;
}

.button[disabled],
.button.disabled {
  cursor: not-allowed;
  opacity: .48;
  box-shadow: none;
}

.text-button {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--brand);
  cursor: pointer;
  font-size: inherit;
  font-weight: 800;
}

.grid {
  display: grid;
  gap: 18px;
}

.grid.stats {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 22px;
}

.grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.grid.main-aside {
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, .75fr);
  align-items: start;
}

.grid.aside-main {
  grid-template-columns: minmax(280px, .75fr) minmax(0, 1.55fr);
  align-items: start;
}

.card,
.panel {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .9);
  box-shadow: var(--shadow-sm);
}

.card {
  border-radius: var(--radius);
}

.panel {
  border-radius: var(--radius-lg);
}

.card-pad {
  padding: 18px;
}

.panel-pad {
  padding: 22px;
}

.stat-card {
  position: relative;
  min-height: 126px;
  padding: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .88);
  box-shadow: var(--shadow-sm);
}

.stat-card::after {
  position: absolute;
  right: -22px;
  bottom: -28px;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: var(--brand-soft);
  content: "";
  opacity: .7;
}

.stat-card.accent::after {
  background: var(--accent-soft);
}

.stat-card.blue::after {
  background: var(--info-soft);
}

.stat-card.warning::after {
  background: var(--warning-soft);
}

.stat-label {
  position: relative;
  z-index: 1;
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 750;
}

.stat-value {
  position: relative;
  z-index: 1;
  display: block;
  margin: 13px 0 4px;
  font-size: 31px;
  font-weight: 900;
  letter-spacing: -.055em;
}

.stat-meta {
  position: relative;
  z-index: 1;
  color: var(--ink-faint);
  font-size: 10px;
  font-weight: 650;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.section-header h2,
.section-header h3 {
  margin-bottom: 0;
}

.section-header h2 {
  font-size: 20px;
}

.section-header h3 {
  font-size: 16px;
}

.section-copy {
  margin-top: -8px;
  margin-bottom: 16px;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.6;
}

.muted {
  color: var(--ink-soft);
}

.faint {
  color: var(--ink-faint);
}

.small-copy {
  font-size: 11px;
  line-height: 1.55;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px 13px;
  color: var(--ink-soft);
  font-size: 11px;
}

.meta-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.badge {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  gap: 5px;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--ink-soft);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: .02em;
  line-height: 1.1;
  white-space: nowrap;
}

.badge.success {
  background: var(--success-soft);
  color: var(--success);
}

.badge.warning {
  background: var(--warning-soft);
  color: var(--warning);
}

.badge.danger {
  background: var(--danger-soft);
  color: var(--danger);
}

.badge.info {
  background: var(--info-soft);
  color: var(--info);
}

.badge.brand {
  background: var(--brand-soft);
  color: var(--brand-strong);
}

.badge.accent {
  background: var(--accent-soft);
  color: #84442f;
}

.badge.dark {
  background: var(--ink);
  color: white;
}

.progress {
  width: 100%;
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--surface-2);
}

.progress > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--brand);
  transition: width .3s ease;
}

.profile-summary {
  display: flex;
  align-items: center;
  gap: 15px;
}

.profile-summary h3 {
  margin-bottom: 3px;
  font-size: 17px;
}

.profile-summary p {
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: 11px;
}

.profile-completion {
  margin-top: 17px;
}

.profile-completion-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 7px;
  font-size: 10px;
  font-weight: 800;
}

.quick-list,
.list-stack {
  display: grid;
  gap: 10px;
}

.quick-item,
.list-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(255, 255, 255, .8);
}

.quick-item-icon {
  display: grid;
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 12px;
  background: var(--brand-soft);
  color: var(--brand-strong);
  font-size: 15px;
  font-weight: 900;
}

.quick-item-copy {
  min-width: 0;
  flex: 1;
}

.quick-item-copy strong,
.quick-item-copy span {
  display: block;
}

.quick-item-copy strong {
  overflow: hidden;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.quick-item-copy span {
  margin-top: 3px;
  color: var(--ink-faint);
  font-size: 9px;
}

.empty-state {
  display: grid;
  min-height: 250px;
  place-items: center;
  padding: 28px;
  border: 1px dashed #bcc9c4;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .48);
  text-align: center;
}

.empty-state.compact {
  min-height: 150px;
  padding: 18px;
}

.empty-icon {
  display: grid;
  width: 62px;
  height: 62px;
  margin: 0 auto 14px;
  place-items: center;
  border-radius: 20px;
  background: var(--brand-soft);
  color: var(--brand-strong);
  font-size: 26px;
}

.empty-state h3 {
  margin-bottom: 7px;
  font-size: 17px;
}

.empty-state p {
  max-width: 430px;
  margin: 0 auto 17px;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.6;
}

/* Browse / swipe */
.browse-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 22px;
  align-items: start;
}

.swipe-stage {
  position: relative;
  min-height: 660px;
}

.swipe-card {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: white;
  box-shadow: var(--shadow-md);
}

.swipe-image {
  position: relative;
  height: 350px;
  overflow: hidden;
  background: var(--surface-2);
}

.swipe-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 48%, rgba(12, 31, 35, .76));
}

.image-topline {
  position: absolute;
  top: 18px;
  right: 18px;
  left: 18px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.match-ring {
  display: grid;
  width: 64px;
  height: 64px;
  place-items: center;
  border: 5px solid rgba(255, 255, 255, .65);
  border-top-color: white;
  border-radius: 50%;
  background: rgba(18, 60, 66, .8);
  color: white;
  box-shadow: 0 8px 26px rgba(12, 31, 35, .2);
  font-size: 13px;
  font-weight: 900;
}

.image-title {
  position: absolute;
  right: 22px;
  bottom: 20px;
  left: 22px;
  color: white;
}

.image-title h2 {
  margin-bottom: 5px;
  font-size: clamp(26px, 4vw, 40px);
}

.image-title p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, .85);
  font-size: 13px;
}

.swipe-body {
  padding: 22px 24px 20px;
}

.price-line {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 15px;
}

.price-line strong {
  font-size: 25px;
  letter-spacing: -.045em;
}

.price-line span {
  color: var(--ink-faint);
  font-size: 11px;
}

.feature-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 14px 0;
}

.feature-pill {
  padding: 7px 9px;
  border-radius: 10px;
  background: var(--surface-2);
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 750;
}

.match-explainer {
  display: grid;
  gap: 7px;
  margin-top: 15px;
  padding: 13px;
  border-radius: 13px;
  background: var(--brand-soft);
}

.match-explainer.warning {
  background: var(--warning-soft);
}

.match-explainer strong {
  font-size: 11px;
}

.match-explainer span {
  color: var(--ink-soft);
  font-size: 10px;
  line-height: 1.5;
}

.swipe-actions {
  display: grid;
  grid-template-columns: 1fr 1fr 1.5fr;
  gap: 10px;
  padding: 0 24px 24px;
}

.swipe-action {
  display: flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: white;
  cursor: pointer;
  font-size: 12px;
  font-weight: 850;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease, transform .18s ease;
}

.swipe-action:hover {
  border-color: #b4c4be;
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}

.swipe-action.dismiss {
  color: var(--danger);
}

.swipe-action.save {
  color: var(--warning);
}

.swipe-action.like {
  border-color: var(--brand);
  background: var(--brand);
  color: white;
}

.swipe-action.like:hover {
  background: var(--brand-strong);
}

.swipe-counter {
  margin-top: 13px;
  color: var(--ink-faint);
  font-size: 10px;
  font-weight: 750;
  text-align: center;
}

.browse-aside {
  position: sticky;
  top: calc(var(--topbar) + 24px);
}

.filter-summary {
  display: grid;
  gap: 10px;
}

.filter-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 9px;
  border-bottom: 1px solid var(--line);
  font-size: 11px;
}

.filter-row:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.filter-row span:first-child {
  color: var(--ink-soft);
}

.filter-row strong {
  text-align: right;
}

/* Property lists */
.tabs {
  display: flex;
  gap: 5px;
  margin-bottom: 18px;
  padding: 4px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, .65);
}

.tab {
  display: inline-flex;
  min-height: 38px;
  flex: 0 0 auto;
  align-items: center;
  gap: 7px;
  padding: 8px 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--ink-soft);
  cursor: pointer;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.tab.active {
  background: white;
  color: var(--brand-strong);
  box-shadow: var(--shadow-sm);
}

.tab-count {
  min-width: 20px;
  padding: 2px 6px;
  border-radius: 999px;
  background: var(--surface-2);
  font-size: 9px;
  text-align: center;
}

.property-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.property-tile {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .18s ease, transform .18s ease;
}

.property-tile:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.property-tile.inactive {
  opacity: .78;
}

.property-tile-image {
  position: relative;
  height: 170px;
  overflow: hidden;
  background: var(--surface-2);
}

.property-tile-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.property-tile-image::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 55%, rgba(12, 31, 35, .5));
  content: "";
}

.property-tile-badges {
  position: absolute;
  z-index: 2;
  top: 10px;
  right: 10px;
  left: 10px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.property-tile-match {
  padding: 7px 9px;
  border-radius: 10px;
  background: rgba(18, 60, 66, .88);
  color: white;
  font-size: 10px;
  font-weight: 900;
}

.property-tile-body {
  padding: 15px;
}

.property-tile h3 {
  margin-bottom: 5px;
  overflow: hidden;
  font-size: 15px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.property-address {
  margin-bottom: 12px;
  overflow: hidden;
  color: var(--ink-soft);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.property-price {
  margin-bottom: 9px;
  font-size: 16px;
  font-weight: 900;
}

.property-price small {
  color: var(--ink-faint);
  font-size: 9px;
  font-weight: 650;
}

.property-tile-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.property-tile-actions {
  display: flex;
  gap: 6px;
}

.change-note {
  margin-top: 10px;
  padding: 9px 10px;
  border-radius: 10px;
  background: var(--warning-soft);
  color: #76511d;
  font-size: 9px;
  font-weight: 750;
  line-height: 1.45;
}

.change-note.success {
  background: var(--success-soft);
  color: var(--success);
}

/* Tables */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  box-shadow: var(--shadow-sm);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
}

th,
td {
  padding: 13px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}

th {
  background: #f8faf7;
  color: var(--ink-faint);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
}

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

tbody tr:hover {
  background: #fbfcfa;
}

.table-user {
  display: flex;
  align-items: center;
  gap: 9px;
}

.table-user strong,
.table-user span {
  display: block;
}

.table-user strong {
  font-size: 11px;
}

.table-user span {
  margin-top: 2px;
  color: var(--ink-faint);
  font-size: 9px;
}

.table-actions {
  display: flex;
  gap: 5px;
  justify-content: flex-end;
}

/* Candidates */
.property-selector {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  padding: 12px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .7);
}

.property-selector-card {
  display: flex;
  min-width: 220px;
  align-items: center;
  gap: 10px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
  cursor: pointer;
  text-align: left;
}

.property-selector-card.active {
  border-color: var(--brand);
  box-shadow: 0 0 0 2px rgba(28, 85, 92, .12);
}

.property-selector-card img {
  width: 52px;
  height: 46px;
  flex: 0 0 auto;
  border-radius: 9px;
  object-fit: cover;
}

.property-selector-card strong,
.property-selector-card span {
  display: block;
}

.property-selector-card strong {
  overflow: hidden;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.property-selector-card span {
  margin-top: 3px;
  color: var(--ink-faint);
  font-size: 9px;
}

.candidate-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 15px;
}

.search-field {
  position: relative;
  width: min(320px, 100%);
}

.search-field input {
  width: 100%;
  height: 42px;
  padding: 10px 13px 10px 36px;
  border: 1px solid var(--line);
  border-radius: 12px;
  outline: none;
  background: white;
  font-size: 11px;
}

.search-field::before {
  position: absolute;
  top: 12px;
  left: 13px;
  content: "\2315";
  color: var(--ink-faint);
  font-size: 14px;
}

.candidate-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.candidate-card {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  box-shadow: var(--shadow-sm);
}

.candidate-card.favorite {
  border-color: #e3c27b;
  box-shadow: 0 0 0 2px rgba(227, 194, 123, .15), var(--shadow-sm);
}

.candidate-head {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 13px;
}

.candidate-name {
  min-width: 0;
  flex: 1;
}

.candidate-name h3 {
  margin-bottom: 3px;
  font-size: 14px;
}

.candidate-name p {
  margin-bottom: 0;
  color: var(--ink-faint);
  font-size: 9px;
}

.candidate-score {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 4px solid var(--brand-soft);
  border-top-color: var(--brand);
  border-radius: 50%;
  color: var(--brand-strong);
  font-size: 10px;
  font-weight: 900;
}

.candidate-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 13px;
}

.fact {
  min-width: 0;
  padding: 8px;
  border-radius: 10px;
  background: var(--surface-2);
}

.fact span,
.fact strong {
  display: block;
}

.fact span {
  margin-bottom: 3px;
  color: var(--ink-faint);
  font-size: 8px;
  font-weight: 750;
  text-transform: uppercase;
}

.fact strong {
  overflow: hidden;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.candidate-intro {
  min-height: 48px;
  margin-bottom: 13px;
  color: var(--ink-soft);
  font-size: 10px;
  line-height: 1.55;
}

.candidate-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

/* Notifications and timeline */
.notification-list {
  display: grid;
  gap: 10px;
}

.notification-item {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: white;
  box-shadow: var(--shadow-sm);
}

.notification-item.unread {
  border-color: #b9d2cc;
  background: #fbfefd;
}

.notification-icon {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 13px;
  background: var(--brand-soft);
  color: var(--brand-strong);
  font-size: 17px;
}

.notification-icon.warning {
  background: var(--warning-soft);
  color: var(--warning);
}

.notification-icon.danger {
  background: var(--danger-soft);
  color: var(--danger);
}

.notification-icon.info {
  background: var(--info-soft);
  color: var(--info);
}

.notification-copy h3 {
  margin-bottom: 5px;
  font-size: 12px;
}

.notification-copy p {
  margin-bottom: 8px;
  color: var(--ink-soft);
  font-size: 10px;
  line-height: 1.55;
}

.notification-copy time {
  color: var(--ink-faint);
  font-size: 8px;
  font-weight: 700;
}

.notification-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.timeline {
  position: relative;
  display: grid;
  gap: 0;
}

.timeline::before {
  position: absolute;
  top: 9px;
  bottom: 9px;
  left: 14px;
  width: 2px;
  background: var(--line);
  content: "";
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 10px;
  padding: 0 0 16px;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-dot {
  z-index: 1;
  width: 14px;
  height: 14px;
  margin-top: 3px;
  margin-left: 8px;
  border: 3px solid white;
  border-radius: 50%;
  background: var(--line);
  box-shadow: 0 0 0 1px var(--line);
}

.timeline-dot.active {
  background: var(--brand);
  box-shadow: 0 0 0 1px var(--brand);
}

.timeline-dot.done {
  background: var(--success);
  box-shadow: 0 0 0 1px var(--success);
}

.timeline-copy strong,
.timeline-copy span {
  display: block;
}

.timeline-copy strong {
  font-size: 10px;
}

.timeline-copy span {
  margin-top: 3px;
  color: var(--ink-faint);
  font-size: 8px;
}

/* Forms */
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.form-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.field {
  display: grid;
  gap: 6px;
}

.field.full {
  grid-column: 1 / -1;
}

.field label,
.field-label {
  color: var(--ink-soft);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 11px;
  outline: none;
  background: white;
  color: var(--ink);
  font-size: 11px;
  transition: border-color .18s ease, box-shadow .18s ease;
}

.field input,
.field select {
  height: 42px;
  padding: 9px 11px;
}

.field textarea {
  min-height: 105px;
  padding: 10px 11px;
  line-height: 1.55;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(28, 85, 92, .11);
}

.field-hint {
  color: var(--ink-faint);
  font-size: 8px;
  line-height: 1.45;
}

.check-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.check-card {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: white;
  cursor: pointer;
  font-size: 10px;
  font-weight: 750;
}

.check-card input {
  accent-color: var(--brand);
}

.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}

.toggle-row:last-child {
  border-bottom: 0;
}

.toggle-copy strong,
.toggle-copy span {
  display: block;
}

.toggle-copy strong {
  font-size: 11px;
}

.toggle-copy span {
  margin-top: 3px;
  color: var(--ink-faint);
  font-size: 9px;
  line-height: 1.45;
}

.switch {
  position: relative;
  display: inline-block;
  width: 42px;
  height: 24px;
  flex: 0 0 auto;
}

.switch input {
  width: 0;
  height: 0;
  opacity: 0;
}

.slider {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: #cbd5d1;
  cursor: pointer;
  transition: background .2s ease;
}

.slider::before {
  position: absolute;
  bottom: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 2px 8px rgba(21, 42, 48, .2);
  content: "";
  transition: transform .2s ease;
}

.switch input:checked + .slider {
  background: var(--brand);
}

.switch input:checked + .slider::before {
  transform: translateX(18px);
}

/* Admin and analytics */
.bar-chart {
  display: grid;
  gap: 11px;
}

.bar-row {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr) 55px;
  gap: 10px;
  align-items: center;
  font-size: 9px;
}

.bar-label {
  overflow: hidden;
  color: var(--ink-soft);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bar-track {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--surface-2);
}

.bar-fill {
  height: 100%;
  border-radius: inherit;
  background: var(--brand);
}

.bar-value {
  font-weight: 850;
  text-align: right;
}

.funnel {
  display: grid;
  gap: 8px;
}

.funnel-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 11px 13px;
  border-radius: 12px;
  background: var(--surface-2);
}

.funnel-row:nth-child(2) {
  margin-inline: 4%;
}

.funnel-row:nth-child(3) {
  margin-inline: 8%;
}

.funnel-row:nth-child(4) {
  margin-inline: 12%;
}

.funnel-row strong {
  font-size: 10px;
}

.funnel-row span {
  color: var(--ink-soft);
  font-size: 9px;
  font-weight: 800;
}

.moderation-preview {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-2);
}

.moderation-preview .original {
  color: var(--danger);
  text-decoration: line-through;
}

.moderation-preview .clean {
  margin-top: 8px;
  color: var(--success);
}

.code-panel {
  max-height: 480px;
  padding: 16px;
  overflow: auto;
  border-radius: 14px;
  background: #14282d;
  color: #d7e7e2;
  font: 10px/1.6 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  white-space: pre-wrap;
  word-break: break-word;
}

.pricing-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.pricing-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
}

.pricing-card.featured {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(28, 85, 92, .1), var(--shadow-md);
}

.pricing-card h3 {
  margin-bottom: 4px;
  font-size: 15px;
}

.pricing-card p {
  min-height: 38px;
  color: var(--ink-soft);
  font-size: 9px;
  line-height: 1.5;
}

.pricing-value {
  display: flex;
  align-items: baseline;
  gap: 5px;
  margin: 14px 0;
}

.pricing-value strong {
  font-size: 27px;
  letter-spacing: -.05em;
}

.pricing-value span {
  color: var(--ink-faint);
  font-size: 9px;
}

/* Invitations */
.invitation-card {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  box-shadow: var(--shadow-sm);
}

.invitation-card img {
  width: 160px;
  height: 110px;
  border-radius: 13px;
  object-fit: cover;
}

.invitation-copy h3 {
  margin-bottom: 5px;
  font-size: 15px;
}

.invitation-copy p {
  margin-bottom: 8px;
  color: var(--ink-soft);
  font-size: 10px;
  line-height: 1.55;
}

.invitation-actions {
  display: grid;
  min-width: 150px;
  gap: 7px;
}

/* Modal */
.modal-backdrop {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(11, 27, 31, .56);
  backdrop-filter: blur(8px);
  animation: fadeIn .16s ease;
}

.modal {
  width: min(760px, 100%);
  max-height: min(88vh, 900px);
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, .45);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  animation: modalIn .2s ease;
}

.modal.wide {
  width: min(1020px, 100%);
}

.modal.narrow {
  width: min(510px, 100%);
}

.modal-header {
  position: sticky;
  z-index: 2;
  top: 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 22px 15px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(12px);
}

.modal-header h2 {
  margin-bottom: 5px;
  font-size: 21px;
}

.modal-header p {
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: 10px;
  line-height: 1.5;
}

.modal-close {
  display: grid;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: white;
  cursor: pointer;
  font-size: 18px;
}

.modal-body {
  padding: 22px;
}

.modal-footer {
  position: sticky;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  padding: 14px 22px;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(12px);
}

.property-detail-hero {
  position: relative;
  height: 300px;
  margin: -22px -22px 22px;
  overflow: hidden;
}

.property-detail-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.property-detail-hero::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 45%, rgba(12, 31, 35, .7));
  content: "";
}

.property-detail-title {
  position: absolute;
  z-index: 1;
  right: 22px;
  bottom: 18px;
  left: 22px;
  color: white;
}

.property-detail-title h2 {
  margin-bottom: 4px;
  font-size: 29px;
}

.property-detail-title p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, .84);
  font-size: 11px;
}

.detail-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
  margin-bottom: 18px;
}

.detail-fact {
  padding: 11px;
  border-radius: 12px;
  background: var(--surface-2);
}

.detail-fact span,
.detail-fact strong {
  display: block;
}

.detail-fact span {
  margin-bottom: 4px;
  color: var(--ink-faint);
  font-size: 8px;
  font-weight: 800;
  text-transform: uppercase;
}

.detail-fact strong {
  font-size: 10px;
}

.payment-box {
  padding: 18px;
  border: 1px solid #bdd8d1;
  border-radius: var(--radius);
  background: linear-gradient(140deg, #f9fdfb, var(--brand-soft));
}

.payment-box h3 {
  margin-bottom: 7px;
  font-size: 16px;
}

.payment-box p {
  color: var(--ink-soft);
  font-size: 10px;
  line-height: 1.55;
}

.payment-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-top: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
}

.payment-option strong,
.payment-option span {
  display: block;
}

.payment-option strong {
  font-size: 11px;
}

.payment-option span {
  margin-top: 3px;
  color: var(--ink-faint);
  font-size: 8px;
}

/* Toast */
.toast-root {
  position: fixed;
  z-index: 200;
  right: 18px;
  bottom: 18px;
  display: grid;
  width: min(390px, calc(100vw - 36px));
  gap: 9px;
  pointer-events: none;
}

.toast {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 14px;
  background: rgba(20, 40, 45, .95);
  box-shadow: var(--shadow-lg);
  color: white;
  pointer-events: auto;
  animation: toastIn .22s ease;
}

.toast-icon {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 11px;
  background: rgba(255, 255, 255, .12);
}

.toast strong,
.toast span {
  display: block;
}

.toast strong {
  margin-bottom: 3px;
  font-size: 11px;
}

.toast span {
  color: rgba(255, 255, 255, .74);
  font-size: 9px;
  line-height: 1.4;
}

/* Misc */
.divider {
  height: 1px;
  margin: 18px 0;
  background: var(--line);
}

.notice {
  display: flex;
  gap: 10px;
  padding: 12px 13px;
  border: 1px solid #bed7d0;
  border-radius: 12px;
  background: var(--brand-soft);
  color: var(--brand-strong);
  font-size: 10px;
  line-height: 1.55;
}

.notice.warning {
  border-color: #ead4a8;
  background: var(--warning-soft);
  color: #6e4b17;
}

.notice.danger {
  border-color: #e8bebe;
  background: var(--danger-soft);
  color: #7d3333;
}

.notice.info {
  border-color: #c3d3e5;
  background: var(--info-soft);
  color: #315b88;
}

.kpi-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: white;
  color: var(--ink-soft);
  font-size: 9px;
  font-weight: 750;
}

.split-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.mobile-role-label,
.mobile-nav {
  display: none;
}

.skeleton {
  overflow: hidden;
  border-radius: 10px;
  background: linear-gradient(90deg, #eef1ee 25%, #f8faf8 45%, #eef1ee 65%);
  background-size: 250% 100%;
  animation: shimmer 1.4s infinite linear;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes modalIn {
  from { opacity: 0; transform: translateY(12px) scale(.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

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

@keyframes shimmer {
  from { background-position: 100% 0; }
  to { background-position: -100% 0; }
}

@media (max-width: 1180px) {
  .grid.stats,
  .grid.four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .property-grid,
  .candidate-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .browse-layout {
    grid-template-columns: minmax(0, 1fr) 280px;
  }
}

@media (max-width: 980px) {
  :root {
    --sidebar: 210px;
  }

  .topbar {
    grid-template-columns: 190px minmax(0, 1fr) auto;
  }

  .role-button span:last-child {
    display: none;
  }

  .grid.main-aside,
  .grid.aside-main,
  .browse-layout {
    grid-template-columns: 1fr;
  }

  .browse-aside {
    position: static;
  }

  .grid.three,
  .pricing-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .invitation-card {
    grid-template-columns: 130px minmax(0, 1fr);
  }

  .invitation-card img {
    width: 130px;
  }

  .invitation-actions {
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  :root {
    --topbar: 64px;
  }

  body {
    padding-bottom: 72px;
  }

  .topbar {
    grid-template-columns: minmax(0, 1fr) auto;
    height: var(--topbar);
    padding: 0 13px;
  }

  .brand {
    font-size: 17px;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
  }

  .brand small,
  .role-switcher,
  .demo-user {
    display: none;
  }

  .mobile-role-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
    padding: 7px 9px;
    border-radius: 10px;
    background: var(--brand-soft);
    color: var(--brand-strong);
    font-size: 10px;
    font-weight: 850;
  }

  .workspace {
    display: block;
  }

  .sidebar {
    display: none;
  }

  .content {
    padding: 22px 14px 34px;
  }

  .page-header {
    display: block;
    margin-bottom: 20px;
  }

  .page-title {
    font-size: 29px;
  }

  .page-actions {
    justify-content: flex-start;
    margin-top: 15px;
  }

  .grid.stats,
  .grid.two,
  .grid.three,
  .grid.four,
  .property-grid,
  .candidate-grid,
  .pricing-cards,
  .form-grid,
  .form-grid.three,
  .detail-facts {
    grid-template-columns: 1fr;
  }

  .grid.stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .stat-card {
    min-height: 112px;
    padding: 14px;
  }

  .stat-value {
    font-size: 25px;
  }

  .panel-pad,
  .card-pad {
    padding: 15px;
  }

  .swipe-stage {
    min-height: 0;
  }

  .swipe-card {
    border-radius: 21px;
  }

  .swipe-image {
    height: 270px;
  }

  .swipe-body {
    padding: 17px;
  }

  .swipe-actions {
    grid-template-columns: 1fr 1fr;
    padding: 0 17px 17px;
  }

  .swipe-action.like {
    grid-column: 1 / -1;
  }

  .property-grid,
  .candidate-grid {
    grid-template-columns: 1fr;
  }

  .property-tile-image {
    height: 205px;
  }

  .notification-item {
    grid-template-columns: 38px minmax(0, 1fr);
  }

  .notification-icon {
    width: 38px;
    height: 38px;
  }

  .notification-actions {
    grid-column: 2;
  }

  .invitation-card {
    grid-template-columns: 1fr;
  }

  .invitation-card img {
    width: 100%;
    height: 190px;
  }

  .invitation-actions {
    grid-column: auto;
  }

  .modal-backdrop {
    padding: 0;
    place-items: end center;
  }

  .modal,
  .modal.wide,
  .modal.narrow {
    width: 100%;
    max-height: 94vh;
    border-radius: 24px 24px 0 0;
  }

  .modal-header,
  .modal-body,
  .modal-footer {
    padding-right: 16px;
    padding-left: 16px;
  }

  .property-detail-hero {
    height: 240px;
    margin-right: -16px;
    margin-left: -16px;
  }

  .check-grid {
    grid-template-columns: 1fr;
  }

  .mobile-nav {
    position: fixed;
    z-index: 75;
    right: 9px;
    bottom: max(9px, env(safe-area-inset-bottom));
    left: 9px;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 3px;
    padding: 5px;
    border: 1px solid rgba(217, 224, 220, .9);
    border-radius: 17px;
    background: rgba(250, 251, 248, .94);
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(18px);
  }

  .mobile-nav .nav-item {
    display: grid;
    min-height: 50px;
    place-items: center;
    gap: 2px;
    padding: 5px 3px;
    border-radius: 12px;
    font-size: 8px;
    text-align: center;
  }

  .mobile-nav .nav-icon {
    width: 22px;
    height: 22px;
  }

  .mobile-nav .nav-count {
    position: absolute;
    top: 2px;
    right: 4px;
  }

  .bar-row {
    grid-template-columns: 82px minmax(0, 1fr) 45px;
  }
}

@media (max-width: 430px) {
  .grid.stats {
    grid-template-columns: 1fr 1fr;
  }

  .topbar-actions .icon-button:nth-child(2) {
    display: none;
  }

  .image-title h2 {
    font-size: 25px;
  }

  .swipe-image {
    height: 235px;
  }

  .swipe-actions {
    gap: 7px;
  }

  .swipe-action {
    min-height: 50px;
    font-size: 10px;
  }

  .property-detail-title h2 {
    font-size: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* Expanded domain model: icons, shared property tags and pet details */
.ui-icon {
  display: inline-block;
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  vertical-align: -0.18em;
}

.button .ui-icon,
.text-button .ui-icon,
.badge .ui-icon,
.meta-item .ui-icon,
.filter-row .ui-icon,
.notice > .ui-icon {
  width: 15px;
  height: 15px;
}

.nav-icon .ui-icon,
.role-button .ui-icon {
  width: 16px;
  height: 16px;
}

.icon-button .ui-icon,
.quick-item-icon .ui-icon,
.notification-icon .ui-icon {
  width: 19px;
  height: 19px;
}

.brand small {
  letter-spacing: .02em;
  text-transform: none;
}

.active-user {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 5px 9px 5px 5px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(255, 255, 255, .78);
}

.active-user-copy {
  display: grid;
  gap: 1px;
  min-width: 0;
}

.active-user-copy strong {
  max-width: 160px;
  overflow: hidden;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.active-user-copy span {
  color: var(--ink-faint);
  font-size: 9px;
}

.sidebar-card-icon {
  display: grid;
  width: 34px;
  height: 34px;
  margin-bottom: 10px;
  place-items: center;
  border-radius: 11px;
  background: var(--brand-soft);
  color: var(--brand-strong);
}

.page-kicker {
  font-size: 12px;
  letter-spacing: .015em;
  text-transform: none;
}

.field label,
.field-label {
  font-size: 11px;
  letter-spacing: 0;
  text-transform: none;
}

.field-hint {
  font-size: 10px;
}

.section-subtitle {
  margin: 4px 0 0;
  color: var(--ink-faint);
  font-size: 10px;
  line-height: 1.45;
}

.section-header > div > h2,
.section-header > div > h3 {
  margin-bottom: 0;
}

.stat-card {
  padding-right: 58px;
}

.stat-icon {
  position: absolute;
  z-index: 1;
  top: 17px;
  right: 17px;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 11px;
  background: var(--surface-2);
  color: var(--brand);
}

.stat-card.accent .stat-icon,
.stat-card.blue .stat-icon,
.stat-card.warning .stat-icon {
  background: rgba(255, 255, 255, .72);
}

.feature-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  font-size: 10px;
}

.feature-pill .ui-icon {
  width: 14px;
  height: 14px;
  color: var(--brand);
}

.meta-row .ui-icon,
.filter-row .ui-icon,
.detail-fact .ui-icon {
  color: var(--brand);
}

.filter-row > span:first-child,
.detail-fact > span:first-child {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.icon-facts .detail-fact span {
  text-transform: none;
  letter-spacing: 0;
  font-size: 10px;
}

.icon-facts .detail-fact strong {
  font-size: 11px;
}

.match-explainer {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 10px;
}

.match-explainer-icon {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 10px;
  background: rgba(255, 255, 255, .7);
  color: var(--brand);
}

.match-explainer.warning .match-explainer-icon {
  color: var(--warning);
}

.match-explainer div > strong,
.match-explainer div > span {
  display: block;
}

.swipe-action {
  flex-direction: row;
}

.swipe-action .ui-icon {
  width: 19px;
  height: 19px;
}

.image-title p {
  display: flex;
  align-items: center;
  gap: 6px;
}

.image-title p .ui-icon {
  width: 15px;
  height: 15px;
}

.quick-item-icon.success {
  background: var(--success-soft);
  color: var(--success);
}

.quick-item-icon.warning {
  background: var(--warning-soft);
  color: var(--warning);
}

.badge.muted {
  background: var(--surface-2);
  color: var(--ink-faint);
}

.row-leading-icon {
  display: grid;
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 10px;
  background: var(--surface-2);
  color: var(--brand);
}

.toggle-row .row-leading-icon + .toggle-copy {
  flex: 1;
}

.selected-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 16px;
}

.selected-tag {
  display: inline-grid;
  grid-template-columns: auto auto;
  align-items: center;
  gap: 2px 7px;
  min-height: 46px;
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
  color: var(--ink);
}

.selected-tag .ui-icon {
  grid-row: 1 / 3;
  width: 18px;
  height: 18px;
  color: var(--brand);
}

.selected-tag span {
  font-size: 10px;
  font-weight: 800;
}

.selected-tag small {
  color: var(--ink-faint);
  font-size: 8px;
}

.selected-tag.must {
  border-color: #9fc4ba;
  background: var(--brand-soft);
}

.selected-tag.nice {
  background: var(--surface-2);
}

.compact-preferences .selected-tags {
  margin-top: 14px;
  gap: 6px;
}

.compact-preferences .selected-tag {
  min-height: 38px;
  padding: 6px 8px;
}

.form-section {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}

.form-section + .form-section {
  margin-top: 15px;
}

.form-section.flush {
  padding: 0 0 20px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
}

.form-section.flush + .form-section.flush {
  margin-top: 22px;
}

.form-section-heading {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin-bottom: 16px;
}

.form-section-heading > span {
  display: grid;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 11px;
  background: var(--brand-soft);
  color: var(--brand-strong);
}

.form-section-heading h2,
.form-section-heading h3,
.form-section-heading p {
  margin: 0;
}

.form-section-heading h2,
.form-section-heading h3 {
  font-size: 16px;
}

.form-section-heading p {
  margin-top: 4px;
  color: var(--ink-faint);
  font-size: 10px;
  line-height: 1.45;
}

.form-grid.four {
  grid-template-columns: 1.1fr 1.4fr 1.2fr .55fr;
}

.choice-row {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface-2);
  cursor: pointer;
}

.choice-row > input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.choice-control {
  position: relative;
  width: 38px;
  height: 22px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: #bdc8c4;
  transition: background .18s ease;
}

.choice-control::after {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .18);
  content: '';
  transition: transform .18s ease;
}

.choice-row > input:checked + .choice-control {
  background: var(--brand);
}

.choice-row > input:checked + .choice-control::after {
  transform: translateX(16px);
}

.choice-row strong,
.choice-row small {
  display: block;
}

.choice-row strong {
  font-size: 11px;
}

.choice-row small {
  margin-top: 3px;
  color: var(--ink-faint);
  font-size: 9px;
}

.pet-editor {
  display: grid;
  gap: 11px;
  margin-top: 12px;
}

.pet-editor-row {
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fbfcfa;
}

.pet-editor-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.pet-editor-number {
  font-size: 11px;
  font-weight: 850;
}

.icon-button.subtle {
  width: 32px;
  height: 32px;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: var(--ink-faint);
}

.icon-button.subtle:hover {
  background: var(--danger-soft);
  color: var(--danger);
}

.pet-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.pet-list.compact {
  grid-template-columns: 1fr;
}

.pet-card {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface-2);
}

.pet-card-icon {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 12px;
  background: white;
  color: var(--brand);
}

.pet-card strong,
.pet-card span {
  display: block;
}

.pet-card strong {
  font-size: 11px;
}

.pet-card div > span {
  margin-top: 3px;
  color: var(--ink-faint);
  font-size: 9px;
}

.pet-empty {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-soft);
  font-size: 11px;
}

.tag-group + .tag-group {
  margin-top: 16px;
}

.tag-group h4 {
  margin: 0 0 8px;
  color: var(--ink-soft);
  font-size: 11px;
}

.preference-grid,
.select-tag-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.select-tag-grid.compact {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.preference-option {
  min-width: 0;
}

.preference-tag {
  display: grid;
  width: 100%;
  min-height: 88px;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  align-items: center;
  gap: 3px 8px;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: white;
  color: var(--ink-soft);
  cursor: pointer;
  text-align: left;
  transition: border-color .16s ease, background .16s ease, color .16s ease, transform .16s ease;
}

.preference-tag:hover {
  border-color: #adc2bb;
  transform: translateY(-1px);
}

.preference-tag > .ui-icon {
  grid-row: 1 / 3;
  width: 21px;
  height: 21px;
}

.preference-label {
  overflow: hidden;
  font-size: 10px;
  font-weight: 800;
  text-overflow: ellipsis;
}

.preference-state {
  color: var(--ink-faint);
  font-size: 8px;
}

.preference-tag.state-nice {
  border-color: #c1d5cf;
  background: var(--surface-2);
  color: var(--brand-strong);
}

.preference-tag.state-must {
  border-color: var(--brand);
  background: var(--brand-soft);
  color: var(--brand-strong);
  box-shadow: 0 0 0 1px rgba(28, 85, 92, .06);
}

.preference-tag.state-nice .preference-state,
.preference-tag.state-must .preference-state {
  color: var(--brand);
  font-weight: 800;
}

.select-tag {
  min-width: 0;
  cursor: pointer;
}

.select-tag > input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.select-tag-content {
  position: relative;
  display: flex;
  min-height: 48px;
  align-items: center;
  gap: 8px;
  padding: 9px 31px 9px 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 760;
  transition: border-color .16s ease, background .16s ease, color .16s ease;
}

.select-tag-content > .ui-icon {
  width: 17px;
  height: 17px;
}

.select-tag-content i {
  position: absolute;
  top: 50%;
  right: 8px;
  display: none;
  width: 18px;
  height: 18px;
  place-items: center;
  border-radius: 50%;
  background: var(--brand);
  color: white;
  transform: translateY(-50%);
}

.select-tag-content i .ui-icon {
  width: 12px;
  height: 12px;
}

.select-tag > input:checked + .select-tag-content {
  border-color: var(--brand);
  background: var(--brand-soft);
  color: var(--brand-strong);
}

.select-tag > input:checked + .select-tag-content i {
  display: grid;
}

.pet-policy-details {
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid var(--line);
}

.pet-policy-summary {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  padding: 11px;
  border-radius: 12px;
  background: var(--surface-2);
}

.pet-policy-summary > .ui-icon {
  color: var(--brand);
}

.pet-policy-summary strong,
.pet-policy-summary span {
  display: block;
}

.pet-policy-summary strong {
  font-size: 11px;
}

.pet-policy-summary span {
  margin-top: 2px;
  color: var(--ink-faint);
  font-size: 9px;
}

.is-hidden {
  display: none !important;
}

@media (max-width: 900px) {
  .preference-grid,
  .select-tag-grid,
  .select-tag-grid.compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .form-grid.four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .preference-grid,
  .select-tag-grid,
  .select-tag-grid.compact,
  .pet-list,
  .form-grid.four {
    grid-template-columns: 1fr;
  }

  .preference-tag {
    min-height: 66px;
  }

  .active-user {
    display: none;
  }
}


/* Icon-led refinements */
.icon-meta span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.icon-meta .ui-icon {
  width: 14px;
  height: 14px;
  color: var(--brand);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.role-card {
  position: relative;
  overflow: hidden;
}

.role-card-icon {
  display: grid;
  width: 42px;
  height: 42px;
  margin-bottom: 14px;
  place-items: center;
  border-radius: 14px;
  background: var(--brand-soft);
  color: var(--brand);
}

.role-card-icon .ui-icon {
  width: 23px;
  height: 23px;
}

.payment-option > span:first-child::before {
  content: '';
}


/* Calendar and shared appointments */
.calendar-stats {
  margin-bottom: 18px;
}

.calendar-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.calendar-month-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.calendar-month-controls h2 {
  min-width: 190px;
  margin: 0;
  font-size: 19px;
  text-align: center;
  text-transform: capitalize;
}

.calendar-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.calendar-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(330px, .72fr);
  gap: 18px;
  align-items: start;
}

.calendar-panel {
  overflow: hidden;
}

.month-calendar {
  min-width: 0;
}

.calendar-weekdays,
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.calendar-weekdays {
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
}

.calendar-weekdays span {
  padding: 10px 8px;
  color: var(--ink-faint);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: .08em;
  text-align: center;
  text-transform: uppercase;
}

.calendar-day {
  min-width: 0;
  min-height: 126px;
  padding: 8px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: white;
}

.calendar-day:nth-child(7n) {
  border-right: 0;
}

.calendar-day.outside {
  background: #fafbf9;
  color: var(--ink-faint);
}

.calendar-day.today {
  background: #f7fbfa;
  box-shadow: inset 0 0 0 2px var(--brand);
}

.calendar-day-number {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 7px;
}

.calendar-day-number span {
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  border-radius: 9px;
  font-size: 10px;
  font-weight: 850;
}

.calendar-day.today .calendar-day-number span {
  background: var(--brand);
  color: white;
}

.calendar-day-number small {
  color: var(--ink-faint);
  font-size: 8px;
  font-weight: 800;
}

.calendar-day-events {
  display: grid;
  gap: 4px;
}

.calendar-event {
  display: grid;
  width: 100%;
  min-width: 0;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 5px;
  align-items: center;
  padding: 5px 6px;
  overflow: hidden;
  border: 0;
  border-radius: 7px;
  background: var(--brand-soft);
  color: var(--brand-strong);
  cursor: pointer;
  font-size: 8px;
  font-weight: 760;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.calendar-event span {
  font-size: 7px;
  font-weight: 900;
}

.calendar-event.warning {
  background: var(--warning-soft);
  color: #6e4b17;
}

.calendar-event.danger,
.calendar-event.status-cancelled,
.calendar-event.status-no_show {
  background: var(--danger-soft);
  color: var(--danger);
  text-decoration: line-through;
}

.calendar-event.info {
  background: var(--info-soft);
  color: var(--info);
}

.calendar-event.success {
  background: var(--success-soft);
  color: var(--success);
}

.calendar-event.accent {
  background: var(--accent-soft);
  color: #8d4b34;
}

.calendar-more {
  padding-left: 4px;
  color: var(--ink-faint);
  font-size: 8px;
  font-weight: 750;
}

.calendar-agenda {
  position: sticky;
  top: calc(var(--topbar) + 16px);
  max-height: calc(100vh - var(--topbar) - 32px);
  overflow: auto;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, .92);
  box-shadow: var(--shadow-sm);
}

.appointment-list {
  display: grid;
  gap: 10px;
}

.appointment-card {
  display: grid;
  grid-template-columns: 52px 40px minmax(0, 1fr) auto;
  gap: 11px;
  align-items: start;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: white;
  box-shadow: var(--shadow-sm);
}

.appointment-card.status-cancelled,
.appointment-card.status-no_show {
  opacity: .72;
}

.appointment-date {
  display: grid;
  min-height: 61px;
  place-items: center;
  align-content: center;
  border-radius: 13px;
  background: var(--surface-2);
  text-align: center;
}

.appointment-date strong,
.appointment-date span,
.appointment-date small {
  display: block;
}

.appointment-date strong {
  font-size: 19px;
  line-height: 1;
}

.appointment-date span {
  margin-top: 3px;
  color: var(--ink-soft);
  font-size: 8px;
  font-weight: 850;
  text-transform: uppercase;
}

.appointment-date small {
  margin-top: 4px;
  color: var(--brand);
  font-size: 8px;
  font-weight: 850;
}

.appointment-type-icon {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 12px;
  background: var(--brand-soft);
  color: var(--brand);
}

.appointment-type-icon.warning {
  background: var(--warning-soft);
  color: var(--warning);
}

.appointment-type-icon.danger {
  background: var(--danger-soft);
  color: var(--danger);
}

.appointment-type-icon.info {
  background: var(--info-soft);
  color: var(--info);
}

.appointment-type-icon.success {
  background: var(--success-soft);
  color: var(--success);
}

.appointment-type-icon.accent {
  background: var(--accent-soft);
  color: var(--accent);
}

.appointment-copy {
  min-width: 0;
}

.appointment-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.appointment-type-label,
.drawer-kicker {
  color: var(--brand);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.appointment-copy h3 {
  margin: 3px 0 7px;
  font-size: 12px;
}

.appointment-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 11px;
  color: var(--ink-soft);
  font-size: 9px;
}

.appointment-meta span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.appointment-meta .ui-icon {
  width: 13px;
  height: 13px;
  color: var(--brand);
}

.appointment-copy p {
  margin: 8px 0 0;
  color: var(--ink-soft);
  font-size: 9px;
  line-height: 1.5;
}

.appointment-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 5px;
}

.next-appointment-card .appointment-card {
  grid-template-columns: 48px 36px minmax(0, 1fr);
  padding: 10px;
  box-shadow: none;
}

.next-appointment-card .appointment-actions {
  grid-column: 1 / -1;
  justify-content: flex-start;
}

.appointment-modal-hero {
  display: flex;
  gap: 13px;
  align-items: center;
  margin-bottom: 18px;
}

.appointment-modal-hero h2 {
  margin: 3px 0 7px;
}

.appointment-note {
  margin-top: 14px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface-2);
}

.appointment-note strong {
  font-size: 10px;
}

.appointment-note p {
  margin: 5px 0 0;
  color: var(--ink-soft);
  font-size: 10px;
  line-height: 1.55;
}

/* Notification center */
.notification-layer {
  position: fixed;
  z-index: 160;
  inset: 0;
}

.notification-scrim {
  position: absolute;
  inset: 0;
  width: 100%;
  border: 0;
  background: rgba(16, 31, 35, .32);
  cursor: default;
  backdrop-filter: blur(3px);
  animation: notificationFade .16s ease;
}

.notification-drawer {
  position: absolute;
  top: 0;
  right: 0;
  display: grid;
  width: min(440px, 100vw);
  height: 100%;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  border-left: 1px solid var(--line);
  background: #fbfcfa;
  box-shadow: -24px 0 62px rgba(19, 42, 48, .18);
  animation: notificationSlide .2s ease;
}

.notification-drawer-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 22px 20px 16px;
  border-bottom: 1px solid var(--line);
}

.notification-drawer-header h2 {
  margin: 3px 0 3px;
  font-size: 21px;
}

.notification-drawer-header p {
  margin: 0;
  color: var(--ink-faint);
  font-size: 10px;
}

.notification-drawer-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  gap: 10px;
  padding: 8px 20px;
  border-bottom: 1px solid var(--line);
  background: white;
  color: var(--ink-faint);
  font-size: 9px;
  font-weight: 750;
}

.notification-drawer-list {
  overflow: auto;
  padding: 10px;
}

.drawer-notification {
  position: relative;
  display: grid;
  width: 100%;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
  padding: 12px;
  border: 1px solid transparent;
  border-radius: 13px;
  background: transparent;
  cursor: pointer;
  text-align: left;
  transition: background .16s ease, border-color .16s ease;
}

.drawer-notification:hover {
  border-color: var(--line);
  background: white;
}

.drawer-notification.unread {
  background: #f0f7f4;
}

.drawer-notification .notification-icon {
  width: 42px;
  height: 42px;
}

.drawer-notification-copy {
  min-width: 0;
}

.drawer-notification-copy strong,
.drawer-notification-copy span,
.drawer-notification-copy time {
  display: block;
}

.drawer-notification-copy strong {
  margin-bottom: 4px;
  font-size: 10px;
}

.drawer-notification-copy span {
  color: var(--ink-soft);
  font-size: 9px;
  line-height: 1.45;
}

.drawer-notification-copy time {
  margin-top: 6px;
  color: var(--ink-faint);
  font-size: 8px;
}

.unread-dot {
  width: 8px;
  height: 8px;
  margin-top: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.drawer-arrow {
  display: grid;
  margin-top: 5px;
  color: var(--ink-faint);
}

.drawer-arrow .ui-icon {
  width: 15px;
  height: 15px;
}

.notification-drawer-footer {
  padding: 14px 20px 18px;
  border-top: 1px solid var(--line);
  background: white;
}

.notification-trigger.active {
  border-color: var(--brand);
  background: var(--brand-soft);
  color: var(--brand-strong);
}

.notification-trigger.has-unread .count {
  animation: badgePop .28s ease;
}

@keyframes notificationSlide {
  from { opacity: 0; transform: translateX(30px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes notificationFade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes badgePop {
  0% { transform: scale(.72); }
  70% { transform: scale(1.12); }
  100% { transform: scale(1); }
}

@media (max-width: 1100px) {
  .calendar-layout {
    grid-template-columns: 1fr;
  }

  .calendar-agenda {
    position: static;
    max-height: none;
  }
}

@media (max-width: 760px) {
  .calendar-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .calendar-month-controls {
    justify-content: space-between;
  }

  .calendar-month-controls h2 {
    min-width: 0;
  }

  .month-calendar {
    overflow-x: auto;
  }

  .calendar-weekdays,
  .calendar-grid {
    min-width: 700px;
  }

  .appointment-card {
    grid-template-columns: 48px 36px minmax(0, 1fr);
  }

  .appointment-actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }
}

@media (max-width: 520px) {
  .notification-drawer {
    width: 100vw;
  }

  .calendar-agenda {
    padding: 13px;
  }

  .appointment-card {
    grid-template-columns: 44px minmax(0, 1fr);
  }

  .appointment-type-icon {
    display: none;
  }

  .appointment-copy,
  .appointment-actions {
    grid-column: 2;
  }
}


/* ========================================================================== 
   HJEMMATCH V4 — editorial product system
   ========================================================================== */
:root {
  --ink: #1e2421;
  --ink-soft: #626963;
  --ink-faint: #8b908b;
  --paper: #f5f3ee;
  --surface: #fffefa;
  --surface-2: #eeece6;
  --surface-3: #e4e5df;
  --line: #d8d6cf;
  --line-strong: #bbbcb5;
  --brand: #17372f;
  --brand-strong: #0d2821;
  --brand-soft: #e2e9e4;
  --accent: #b85f42;
  --accent-soft: #f2e3dc;
  --success: #315f4c;
  --success-soft: #e3ece7;
  --warning: #946126;
  --warning-soft: #f2eadb;
  --danger: #9b4b45;
  --danger-soft: #f2e3e1;
  --info: #456477;
  --info-soft: #e5eaed;
  --shadow-sm: 0 1px 2px rgba(27, 34, 30, .04);
  --shadow-md: 0 18px 48px rgba(27, 34, 30, .10);
  --shadow-lg: 0 32px 90px rgba(27, 34, 30, .16);
  --radius-sm: 5px;
  --radius: 9px;
  --radius-lg: 14px;
  --content-max: 1460px;
  --sidebar: 226px;
  --topbar: 68px;
}

::selection { background: #cad8d0; color: var(--brand-strong); }
html { background: var(--paper); }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 14px;
  letter-spacing: -.006em;
}
body::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  background-image: radial-gradient(rgba(23, 55, 47, .055) .55px, transparent .55px);
  background-size: 5px 5px;
  content: "";
  opacity: .22;
  pointer-events: none;
}
h1, h2, h3, h4 { color: var(--ink); letter-spacing: -.035em; }
.page-title,
.image-title h2,
.property-detail-title h2,
.modal-header h2,
.notification-drawer-header h2 {
  font-family: ui-serif, Georgia, Cambria, "Times New Roman", serif;
  font-weight: 500;
}
.ui-icon { width: 18px; height: 18px; stroke-width: 1.65; }

/* Shell */
.topbar {
  height: var(--topbar);
  grid-template-columns: minmax(210px, var(--sidebar)) minmax(0, 1fr) minmax(210px, auto);
  padding: 0 24px;
  border-bottom: 1px solid var(--line);
  background: rgba(245, 243, 238, .97);
  box-shadow: none;
  backdrop-filter: none;
}
.brand { gap: 12px; font-size: inherit; }
.brand-mark {
  width: 34px;
  height: 34px;
  border: 1px solid var(--brand);
  border-radius: 4px;
  background: var(--brand);
  box-shadow: none;
}
.brand-mark::before {
  width: 13px;
  height: 15px;
  border-radius: 0;
  background: transparent;
  border-right: 3px solid #f5f3ee;
  border-left: 3px solid #f5f3ee;
}
.brand-mark::after {
  top: 9px;
  width: 13px;
  height: 13px;
  border-width: 3px 0 0 3px;
  border-color: #f5f3ee;
}
.brand-copy { display: grid; gap: 1px; }
.brand-copy strong {
  color: var(--ink);
  font-size: 18px;
  font-weight: 790;
  letter-spacing: -.055em;
  line-height: 1;
}
.brand small {
  margin: 0;
  color: var(--ink-faint);
  font-size: 9px;
  font-weight: 620;
  letter-spacing: .055em;
  text-transform: none;
}
.role-switcher {
  gap: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.role-button {
  position: relative;
  min-height: 42px;
  padding: 7px 16px;
  border-radius: 0;
  color: var(--ink-faint);
  font-size: 12px;
  font-weight: 700;
}
.role-button .ui-icon { width: 15px; height: 15px; }
.role-button:hover { background: transparent; color: var(--ink); }
.role-button.active { background: transparent; color: var(--brand); box-shadow: none; }
.role-button.active::after {
  position: absolute;
  right: 16px;
  bottom: -13px;
  left: 16px;
  height: 2px;
  background: var(--brand);
  content: "";
}
.topbar-actions { gap: 8px; }
.icon-button {
  width: 38px;
  height: 38px;
  border-color: transparent;
  border-radius: 50%;
  background: transparent;
  box-shadow: none;
}
.icon-button:hover { border-color: var(--line); background: var(--surface); }
.icon-button.active { border-color: var(--brand); color: var(--brand); }
.icon-button .count {
  top: -1px;
  right: -2px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border: 2px solid var(--paper);
  background: var(--accent);
  font-size: 9px;
  line-height: 14px;
}
.active-user, .demo-user {
  gap: 9px;
  padding: 3px 8px 3px 3px;
  border: 0;
  border-left: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
}
.active-user .avatar, .demo-user .avatar { width: 34px; height: 34px; border-radius: 50%; }
.active-user-copy strong { font-size: 11px; }
.active-user-copy span { font-size: 9px; }
.avatar {
  border: 1px solid rgba(23,55,47,.10);
  border-radius: 50%;
  background: #e3e8e3;
  color: var(--brand);
  font-size: 11px;
  font-weight: 780;
}
.avatar.lg { border-radius: 50%; }
.avatar.xl { border-radius: 50%; }

.workspace { grid-template-columns: var(--sidebar) minmax(0, 1fr); }
.sidebar {
  padding: 26px 15px 22px;
  border-right: 1px solid var(--line);
  background: rgba(245,243,238,.9);
}
.sidebar-label {
  margin: 2px 12px 13px;
  color: var(--ink-faint);
  font-size: 9px;
  font-weight: 760;
  letter-spacing: .16em;
}
.nav-list { gap: 2px; }
.nav-item {
  position: relative;
  min-height: 42px;
  gap: 10px;
  padding: 9px 11px;
  border-radius: 6px;
  color: #68706a;
  font-size: 12px;
  font-weight: 650;
}
.nav-item:hover { background: #ebece7; color: var(--ink); }
.nav-item.active { background: #e5e9e4; color: var(--brand); }
.nav-item.active::before {
  position: absolute;
  top: 9px;
  bottom: 9px;
  left: -15px;
  width: 3px;
  background: var(--brand);
  content: "";
}
.nav-item .nav-icon,
.nav-item.active .nav-icon {
  width: 24px;
  height: 24px;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.nav-item .nav-icon .ui-icon { width: 17px; height: 17px; }
.nav-item .nav-count {
  min-width: 20px;
  padding: 2px 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--ink-soft);
  font-size: 9px;
}
.sidebar-card {
  margin: 26px 4px 0;
  padding: 16px 12px 0;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.sidebar-card-icon {
  width: 30px;
  height: 30px;
  margin-bottom: 10px;
  border-radius: 50%;
  background: var(--brand);
  color: white;
}
.sidebar-card strong { font-size: 11px; }
.sidebar-card p { font-size: 10px; line-height: 1.55; }
.sidebar-card .button { justify-content: flex-start; padding-inline: 0; border: 0; background: transparent; color: var(--brand); }

.content { max-width: var(--content-max); padding: 42px 44px 84px; }
.page-header { margin-bottom: 30px; gap: 32px; }
.page-kicker {
  margin-bottom: 10px;
  color: var(--accent);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .18em;
}
.page-title {
  max-width: 880px;
  margin-bottom: 10px;
  font-size: clamp(38px, 4.2vw, 58px);
  line-height: .98;
}
.page-description {
  max-width: 640px;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.6;
}
.page-actions { gap: 8px; padding-top: 3px; }

/* Controls */
.button {
  min-height: 40px;
  gap: 7px;
  padding: 9px 14px;
  border-radius: 6px;
  box-shadow: none;
  font-size: 11px;
  font-weight: 720;
}
.button:hover { border-color: var(--line-strong); box-shadow: none; transform: translateY(-1px); }
.button.primary { background: var(--brand); }
.button.primary:hover { background: var(--brand-strong); }
.button.accent { background: var(--accent); }
.button.secondary { border-color: var(--line-strong); background: var(--surface); }
.button.ghost { color: var(--ink-soft); }
.button.small { min-height: 32px; padding: 6px 10px; border-radius: 5px; font-size: 10px; }
.button.large { min-height: 48px; padding: 12px 18px; border-radius: 7px; font-size: 13px; }
.text-button { color: var(--brand); font-size: 11px; font-weight: 720; }
.text-button .ui-icon { width: 15px; height: 15px; }
input, select, textarea {
  border-radius: 6px !important;
  border-color: var(--line-strong) !important;
  background: var(--surface) !important;
}
input:focus, select:focus, textarea:focus { border-color: var(--brand) !important; box-shadow: 0 0 0 3px rgba(23,55,47,.09) !important; }

/* Surfaces and hierarchy */
.grid { gap: 18px; }
.grid.stats {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin-bottom: 26px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255,254,250,.72);
}
.stat-card {
  min-height: 114px;
  padding: 20px 22px;
  border: 0;
  border-right: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.stat-card:last-child { border-right: 0; }
.stat-card::after { display: none; }
.stat-icon {
  position: absolute;
  top: 18px;
  right: 18px;
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--ink-faint);
}
.stat-icon .ui-icon { width: 14px; height: 14px; }
.stat-label { color: var(--ink-faint); font-size: 9px; font-weight: 760; letter-spacing: .06em; text-transform: uppercase; }
.stat-value { margin: 14px 0 5px; font-size: 29px; font-weight: 630; letter-spacing: -.055em; }
.stat-meta { max-width: 75%; color: var(--ink-soft); font-size: 9px; font-weight: 560; line-height: 1.4; }
.card, .panel {
  border-color: var(--line);
  background: rgba(255,254,250,.9);
  box-shadow: none;
}
.card { border-radius: var(--radius); }
.panel { border-radius: var(--radius-lg); }
.card-pad { padding: 19px; }
.panel-pad { padding: 24px; }
.section-header { margin-bottom: 18px; }
.section-header h2 { font-size: 19px; font-weight: 680; }
.section-header h3 { font-size: 14px; font-weight: 720; }
.divider { background: var(--line); }

.badge {
  min-height: 24px;
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--ink-soft);
  font-size: 8px;
  font-weight: 720;
  letter-spacing: .015em;
}
.badge .ui-icon { width: 12px; height: 12px; }
.badge.success { border-color: #c3d2c9; background: #edf3ef; color: var(--success); }
.badge.info { border-color: #cad6dc; background: #edf1f3; color: var(--info); }
.badge.warning { border-color: #ded0b8; background: #f5f0e6; color: var(--warning); }
.badge.danger { border-color: #dec5c2; background: #f6ecea; color: var(--danger); }
.badge.brand { border-color: #becdc5; background: #eaf0ec; color: var(--brand); }
.badge.accent { border-color: #dec0b5; background: #f6eae5; color: var(--accent); }
.feature-pills { gap: 6px; margin: 13px 0; }
.feature-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 8px;
  border: 1px solid #dfddd5;
  border-radius: 4px;
  background: #f5f3ed;
  color: var(--ink-soft);
  font-size: 9px;
  font-weight: 620;
}
.feature-pill .ui-icon { width: 13px; height: 13px; }

/* Main dashboard */
.grid.main-aside { grid-template-columns: minmax(0, 1.75fr) minmax(300px, .7fr); gap: 22px; }
.grid.aside-main { grid-template-columns: minmax(280px, .65fr) minmax(0, 1.7fr); gap: 22px; }
.profile-summary { gap: 12px; }
.profile-summary h3 { font-size: 14px; }
.profile-summary p { font-size: 10px; }
.profile-completion { margin: 17px 0; }
.progress { height: 4px; border-radius: 0; background: var(--surface-2); }
.progress span { border-radius: 0; background: var(--brand); }
.quick-list { gap: 0; }
.quick-item {
  padding: 12px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
}
.quick-item:last-child { border-bottom: 0; }
.quick-item-icon { width: 32px; height: 32px; border-radius: 50%; }
.quick-item-copy strong { font-size: 10px; }
.quick-item-copy span { font-size: 9px; }

/* Browse experience */
.browse-layout { grid-template-columns: minmax(0, 1.65fr) 330px; gap: 28px; }
.swipe-stage { min-height: 680px; }
.swipe-card {
  max-width: 880px;
  border-color: var(--line-strong);
  border-radius: 14px;
  box-shadow: 0 24px 68px rgba(29,35,31,.11);
}
.swipe-image { height: 430px; background: #deddd6; }
.swipe-image img { filter: saturate(.82) contrast(1.02); }
.image-overlay { background: linear-gradient(to bottom, rgba(18,28,24,.04) 40%, rgba(13,29,24,.84)); }
.image-topline { top: 20px; right: 20px; left: 20px; }
.image-topline .badge { border-color: rgba(255,255,255,.38); background: rgba(24,39,33,.72); color: white; backdrop-filter: blur(5px); }
.match-ring {
  width: auto;
  height: auto;
  padding: 9px 11px;
  border: 1px solid rgba(255,255,255,.46);
  border-radius: 999px;
  background: rgba(20,46,38,.78);
  box-shadow: none;
  font-size: 11px;
  backdrop-filter: blur(6px);
}
.image-title { right: 26px; bottom: 24px; left: 26px; }
.image-title h2 { margin-bottom: 7px; font-size: clamp(34px, 4.5vw, 54px); line-height: .96; }
.image-title p { display: flex; align-items: center; gap: 6px; font-size: 12px; }
.swipe-body { padding: 24px 26px 20px; }
.price-line { margin-bottom: 15px; }
.price-line strong { font-size: 25px; font-weight: 670; }
.price-line span { font-size: 10px; }
.meta-row { gap: 12px; }
.meta-item { color: var(--ink-soft); font-size: 10px; }
.match-explainer {
  grid-template-columns: 30px minmax(0,1fr);
  align-items: center;
  gap: 10px;
  margin-top: 17px;
  padding: 12px 13px;
  border: 1px solid #c8d4cd;
  border-radius: 6px;
  background: #edf2ee;
}
.match-explainer.warning { border-color: #ddceb4; background: #f4eee3; }
.match-explainer-icon { width: 28px; height: 28px; border-radius: 50%; }
.match-explainer strong { font-size: 10px; }
.match-explainer span { font-size: 9px; }
.swipe-actions {
  grid-template-columns: .8fr .8fr 1.8fr;
  gap: 8px;
  padding: 0 26px 26px;
}
.swipe-action {
  min-height: 50px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 720;
}
.swipe-action:hover { box-shadow: none; }
.swipe-action.dismiss, .swipe-action.save { background: #faf9f5; }
.swipe-action.like { border-color: var(--brand); }
.swipe-counter { margin-top: 14px; font-size: 9px; font-weight: 560; }
.browse-aside { top: calc(var(--topbar) + 28px); gap: 14px; }
.filter-row { padding: 10px 0; font-size: 10px; }
.filter-row:first-child { padding-top: 0; }
.compact-preferences { margin-top: 14px; }

/* Property tiles */
.tabs {
  gap: 0;
  padding: 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
}
.tab {
  min-height: 42px;
  padding: 9px 15px;
  border-radius: 0;
  font-size: 10px;
}
.tab.active { border-bottom: 2px solid var(--brand); background: transparent; box-shadow: none; color: var(--brand); }
.tab-count { border: 1px solid var(--line); background: transparent; }
.property-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.property-tile {
  border-radius: 9px;
  box-shadow: none;
  transition: border-color .18s ease, transform .18s ease;
}
.property-tile:hover { border-color: var(--line-strong); box-shadow: none; transform: translateY(-2px); }
.property-tile-image { height: 190px; }
.property-tile-image img { filter: saturate(.82) contrast(1.02); }
.property-tile-image::after { background: linear-gradient(to bottom, transparent 62%, rgba(12,28,23,.58)); }
.property-tile-badges { top: 12px; right: 12px; left: 12px; }
.property-tile-match { padding: 6px 8px; border-radius: 999px; background: rgba(18,44,36,.82); font-size: 9px; }
.property-tile-body { padding: 16px; }
.property-tile h3 { margin-bottom: 6px; font-family: ui-serif, Georgia, serif; font-size: 18px; font-weight: 520; }
.property-address { margin-bottom: 14px; font-size: 9px; }
.property-price { font-size: 17px; font-weight: 680; }
.property-price small { font-size: 9px; }
.property-tile-footer { margin-top: 12px; padding-top: 13px; }
.change-note { border: 1px solid #ded0b8; border-radius: 5px; background: #f5f0e6; }
.change-note.success { border-color: #c4d4cb; background: #edf3ef; }

/* Candidate workspace */
.property-selector { gap: 8px; }
.property-selector-card {
  border-radius: 7px;
  box-shadow: none;
}
.property-selector-card.active { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand); }
.candidate-toolbar { padding: 12px 0 2px; }
.search-field input { height: 40px; border-radius: 6px; }
.search-field::before { content: "⌕"; }
.candidate-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.candidate-card {
  position: relative;
  padding: 17px;
  border-radius: 8px;
  box-shadow: none;
}
.candidate-card::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  border-radius: 8px 8px 0 0;
  background: var(--brand-soft);
  content: "";
}
.candidate-card.favorite { border-color: #c9a565; box-shadow: none; }
.candidate-card.favorite::before { background: #c9a565; }
.candidate-head { margin-bottom: 15px; }
.candidate-name h3 { font-size: 14px; }
.candidate-score {
  width: 45px;
  height: 45px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--brand);
}
.candidate-facts { gap: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.fact { padding: 10px 8px; border-radius: 0; background: transparent; }
.fact:nth-child(odd) { border-right: 1px solid var(--line); }
.fact span { font-size: 7px; letter-spacing: .08em; }
.fact strong { font-size: 9px; }
.candidate-intro { min-height: 52px; font-size: 9px; }
.candidate-actions { padding-top: 13px; }

/* Tables */
.table-wrap { border-radius: 8px; box-shadow: none; }
table { font-size: 10px; }
th { background: #efeee8; color: #737a74; font-size: 8px; letter-spacing: .11em; }
th, td { padding: 14px 15px; }
tbody tr:hover { background: #f8f7f2; }

/* Notifications */
.notification-item {
  grid-template-columns: 38px minmax(0,1fr) auto;
  padding: 15px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.notification-item.unread { background: transparent; }
.notification-icon {
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
}
.notification-copy h3 { font-size: 11px; }
.notification-copy p { font-size: 9px; }
.notification-drawer {
  width: min(440px, 100vw);
  border-left: 1px solid var(--line-strong);
  background: var(--surface);
  box-shadow: -25px 0 70px rgba(24,31,27,.14);
}
.notification-drawer-header { padding: 28px 26px 22px; border-bottom: 1px solid var(--line); }
.notification-drawer-header h2 { font-size: 32px; }
.notification-drawer-toolbar { padding: 12px 26px; background: #f4f2ed; }
.notification-drawer-list { padding: 0 26px; }
.drawer-notification {
  grid-template-columns: 36px minmax(0,1fr) 14px;
  gap: 11px;
  padding: 17px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
}
.drawer-notification:hover { background: transparent; }
.drawer-notification.unread { background: transparent; }
.drawer-notification-copy strong { font-size: 10px; }
.drawer-notification-copy span { font-size: 9px; }
.drawer-notification-copy time { font-size: 8px; }
.notification-drawer-footer { padding: 16px 26px; }

/* Calendar */
.calendar-stats { margin-bottom: 20px; }
.calendar-toolbar {
  padding: 0 0 18px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
}
.calendar-month-controls h2 { font-family: ui-serif, Georgia, serif; font-size: 22px; font-weight: 520; }
.calendar-layout { gap: 22px; }
.calendar-panel { border-radius: 9px; box-shadow: none; }
.calendar-weekdays { background: #efeee8; }
.calendar-weekdays span { font-size: 8px; letter-spacing: .1em; }
.calendar-day { min-height: 112px; background: #fffefa; }
.calendar-day.today { box-shadow: inset 0 0 0 2px var(--brand); }
.calendar-day-number span { font-size: 11px; }
.calendar-event { border-radius: 3px; font-size: 8px; }
.appointment-card { border-radius: 7px; box-shadow: none; }

/* Forms, tags and profile */
.form-section { border-radius: 8px; box-shadow: none; }
.form-section-heading span:first-child { border-radius: 50%; }
.preference-group { border-top: 1px solid var(--line); }
.preference-tag, .select-tag {
  border-radius: 5px;
  box-shadow: none;
}
.preference-tag:hover, .select-tag:hover { transform: none; }
.pet-card, .pet-editor-row, .pet-policy-summary { border-radius: 7px; box-shadow: none; }
.toggle { border-radius: 999px; }

/* Modals */
.modal-backdrop { background: rgba(22,28,24,.56); backdrop-filter: blur(3px); }
.modal { border-radius: 12px; box-shadow: var(--shadow-lg); }
.modal-header { padding: 24px 26px 18px; }
.modal-header h2 { font-size: 31px; }
.modal-body { padding: 22px 26px 26px; }
.modal-footer { padding: 16px 26px; background: #f2f0ea; }
.property-detail-hero { border-radius: 8px; }
.property-detail-hero img { filter: saturate(.82); }
.property-detail-title h2 { font-size: 38px; }
.detail-facts { border-radius: 7px; }
.detail-fact { background: #f4f2ed; }

/* Empty states and toast */
.empty-state { border: 1px dashed var(--line-strong); border-radius: 9px; background: rgba(255,254,250,.55); }
.empty-icon { width: 52px; height: 52px; border-radius: 50%; }
.toast { border-radius: 7px; background: var(--brand-strong); box-shadow: var(--shadow-md); }

/* Responsive */
@media (max-width: 1180px) {
  :root { --sidebar: 205px; }
  .content { padding-inline: 28px; }
  .browse-layout { grid-template-columns: minmax(0,1fr) 290px; }
  .candidate-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 980px) {
  .topbar { grid-template-columns: 1fr auto; }
  .topbar > .role-switcher { display: none; }
  .workspace { display: block; }
  .sidebar { display: none; }
  .content { padding: 30px 24px 96px; }
  .page-title { font-size: 44px; }
  .grid.stats { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .stat-card:nth-child(2) { border-right: 0; }
  .stat-card:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .browse-layout, .grid.main-aside, .grid.aside-main, .calendar-layout { grid-template-columns: 1fr; }
  .browse-aside { position: static; }
  .swipe-card { max-width: none; }
  .property-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .mobile-nav { border-top: 1px solid var(--line); background: rgba(250,249,245,.97); box-shadow: none; backdrop-filter: none; }
  .mobile-nav .nav-item { border-radius: 0; }
  .mobile-nav .nav-item.active::before { display: none; }
  .mobile-nav .nav-item.active { background: transparent; color: var(--brand); }
}
@media (max-width: 760px) {
  :root { --topbar: 58px; }
  .topbar { padding: 0 14px; }
  .brand-mark { width: 30px; height: 30px; }
  .brand-copy strong { font-size: 16px; }
  .brand small, .active-user { display: none; }
  .content { padding: 24px 15px 92px; }
  .page-header { display: grid; gap: 16px; margin-bottom: 23px; }
  .page-title { font-size: 38px; }
  .page-description { font-size: 13px; }
  .page-actions { justify-content: flex-start; }
  .grid.stats { border-radius: 9px; }
  .stat-card { min-height: 102px; padding: 17px; }
  .stat-value { font-size: 25px; }
  .grid.two, .grid.three, .grid.four, .property-grid, .candidate-grid { grid-template-columns: 1fr; }
  .swipe-image { height: 330px; }
  .image-title h2 { font-size: 36px; }
  .swipe-body { padding: 19px 17px 17px; }
  .swipe-actions { grid-template-columns: 1fr 1fr; padding: 0 17px 18px; }
  .swipe-action.like { grid-column: 1 / -1; order: -1; }
  .property-tile-image { height: 220px; }
  .notification-drawer-header { padding: 22px 18px 17px; }
  .notification-drawer-toolbar, .notification-drawer-list, .notification-drawer-footer { padding-inline: 18px; }
  .calendar-day { min-height: 84px; }
  .modal { border-radius: 12px 12px 0 0; }
}
@media (max-width: 430px) {
  .topbar-actions { gap: 3px; }
  .icon-button { width: 36px; height: 36px; }
  .page-title { font-size: 34px; }
  .grid.stats { grid-template-columns: 1fr 1fr; }
  .stat-card { min-height: 96px; padding: 15px; }
  .stat-icon { display: none; }
  .stat-meta { max-width: 100%; }
  .swipe-image { height: 285px; }
  .image-title { right: 18px; bottom: 18px; left: 18px; }
  .image-title h2 { font-size: 31px; }
  .price-line { align-items: flex-start; flex-direction: column; gap: 2px; }
  .meta-row { align-items: flex-start; }
  .swipe-action span { display: inline; }
  .property-tile-footer { align-items: flex-start; flex-direction: column; }
  .property-tile-actions { width: 100%; }
  .property-tile-actions .button { flex: 1; }
}


/* V4 finishing details */
.image-title h2,
.property-detail-title h2 {
  color: #fff;
  text-shadow: 0 2px 18px rgba(8, 20, 16, .28);
}
.image-title p,
.property-detail-title p { color: rgba(255,255,255,.86); }
.grid.main-aside > .panel .property-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.property-tile-actions { flex-wrap: wrap; justify-content: flex-end; }
.grid.main-aside > aside .notification-list { gap: 0; }
.grid.main-aside > aside .notification-item {
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 10px;
  padding: 13px 0;
}
.grid.main-aside > aside .notification-icon {
  width: 32px;
  height: 32px;
}
.grid.main-aside > aside .notification-copy .badge,
.grid.main-aside > aside .notification-copy p { display: none; }
.grid.main-aside > aside .notification-copy h3 {
  margin: 1px 0 4px;
  font-size: 10px;
  line-height: 1.35;
}
.grid.main-aside > aside .notification-actions {
  grid-column: 2;
  flex-wrap: wrap;
  justify-content: flex-start;
  margin-top: 4px;
}
.grid.main-aside > aside .notification-actions .button {
  min-height: 28px;
  padding: 5px 8px;
  font-size: 9px;
}
@media (max-width: 760px) {
  .grid.main-aside > .panel .property-grid { grid-template-columns: 1fr; }
}


/* ========================================================================== 
   HJEMMATCH — polished Scandinavian product interface
   ========================================================================== */
:root {
  --hm-pine-950: #0b271f;
  --hm-pine-900: #10362b;
  --hm-pine-800: #16483a;
  --hm-pine-700: #205b49;
  --hm-sage-100: #e5ece7;
  --hm-ivory: #f6f3ec;
  --hm-paper: #fffdf8;
  --hm-warm: #ede9df;
  --hm-line: #ddd9cf;
  --hm-line-dark: rgba(255,255,255,.13);
  --hm-ink: #18211d;
  --hm-muted: #687069;
  --hm-rust: #c66547;
  --hm-gold: #b17a34;
  --sidebar: 248px;
  --topbar: 74px;
  --content-max: 1320px;
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 2px rgba(16,35,28,.04), 0 8px 24px rgba(16,35,28,.035);
  --shadow-md: 0 18px 50px rgba(16,35,28,.11);
  --shadow-lg: 0 34px 90px rgba(16,35,28,.18);
}

html { background: var(--hm-ivory); }
body {
  background: var(--hm-ivory);
  color: var(--hm-ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 14px;
  letter-spacing: -.008em;
}
body::before { display: none; }
button, input, select, textarea { font: inherit; }
button { letter-spacing: inherit; }
svg { stroke-linecap: round; stroke-linejoin: round; }

/* Shell */
.topbar {
  position: sticky;
  z-index: 50;
  top: 0;
  display: grid;
  grid-template-columns: var(--sidebar) minmax(0, 1fr);
  height: var(--topbar);
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}
.brand {
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: 0;
  height: var(--topbar);
  padding: 0 24px;
  border: 0;
  background: var(--hm-pine-950);
  color: #fff;
}
.brand-mark {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 11px;
  background: rgba(255,255,255,.06);
  color: #fff;
  overflow: hidden;
  font-family: ui-serif, "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  font-weight: 700;
  letter-spacing: -.15em;
}
.brand-mark::before, .brand-mark::after { display: none !important; }
.brand-mark i { display: inline; font-style: normal; font-size: 18px; line-height: 34px; }
.brand-mark i:first-child { transform: translateY(-1px); }
.brand-mark i:last-child { color: #d6b69e; transform: translate(-1px, 2px); }
.brand-copy { display: grid; min-width: 0; line-height: 1; }
.brand-copy strong { color: #fff; font-size: 18px; font-weight: 680; letter-spacing: -.04em; }
.brand-copy small { margin-top: 6px; color: rgba(255,255,255,.56); font-size: 10px; font-weight: 560; letter-spacing: .04em; }
.topbar-main {
  display: grid;
  grid-template-columns: minmax(110px, 1fr) auto minmax(240px, 1fr);
  align-items: center;
  min-width: 0;
  height: var(--topbar);
  padding: 0 30px;
  border-bottom: 1px solid var(--hm-line);
  background: rgba(255,253,248,.94);
  backdrop-filter: blur(18px);
}
.topbar-context { display: grid; gap: 2px; justify-self: start; }
.topbar-context span { color: #8a8f8b; font-size: 9px; font-weight: 720; letter-spacing: .13em; text-transform: uppercase; }
.topbar-context strong { color: var(--hm-ink); font-size: 13px; font-weight: 650; }
.role-switcher {
  display: inline-flex;
  align-items: center;
  justify-self: center;
  gap: 2px;
  width: auto;
  padding: 4px;
  border: 1px solid #e3dfd6;
  border-radius: 12px;
  background: #efede6;
}
.role-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 0 13px;
  border: 0;
  border-radius: 8px;
  color: #747b75;
  background: transparent;
  font-size: 12px;
  font-weight: 630;
  box-shadow: none;
}
.role-button svg { width: 15px; height: 15px; }
.role-button:hover { color: var(--hm-ink); background: rgba(255,255,255,.55); }
.role-button.active { color: var(--hm-pine-950); background: var(--hm-paper); box-shadow: 0 1px 2px rgba(20,36,30,.08), 0 6px 18px rgba(20,36,30,.06); }
.role-button.active::after { display: none; }
.topbar-actions { justify-self: end; display: flex; align-items: center; gap: 9px; min-width: 0; }
.mobile-role-trigger { display: none; }
.icon-button {
  width: 39px;
  height: 39px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: var(--hm-ink);
}
.icon-button:hover, .icon-button.active { border-color: var(--hm-line); background: #f2efe8; }
.notification-trigger .count {
  top: 1px;
  right: -2px;
  display: grid;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  place-items: center;
  border: 2px solid var(--hm-paper);
  border-radius: 999px;
  background: var(--hm-rust);
  color: #fff;
  font-size: 9px;
  font-weight: 800;
}
.active-user {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding-left: 12px;
  border-left: 1px solid var(--hm-line);
}
.active-user .avatar { width: 34px; height: 34px; border: 1px solid #d5d9d4; background: var(--hm-sage-100); color: var(--hm-pine-900); }
.active-user-copy { display: grid; min-width: 0; line-height: 1.12; }
.active-user-copy strong { max-width: 180px; color: var(--hm-ink); font-size: 12px; font-weight: 680; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.active-user-copy span { margin-top: 4px; color: #8a8f8b; font-size: 10px; }

.workspace { display: grid; grid-template-columns: var(--sidebar) minmax(0, 1fr); min-height: calc(100vh - var(--topbar)); }
.sidebar {
  position: sticky;
  top: var(--topbar);
  display: flex;
  flex-direction: column;
  align-self: start;
  width: auto;
  height: calc(100vh - var(--topbar));
  min-height: 630px;
  padding: 25px 18px 18px;
  border: 0;
  background: var(--hm-pine-950);
  color: #fff;
  overflow: hidden auto;
}
.sidebar-main { flex: 1 1 auto; min-height: 0; }
.sidebar-label {
  margin: 0 11px 14px;
  color: rgba(255,255,255,.42);
  font-size: 9px;
  font-weight: 760;
  letter-spacing: .15em;
  text-transform: uppercase;
}
.nav-list { display: grid; gap: 4px; }
.nav-item {
  position: relative;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  align-items: center;
  width: 100%;
  min-height: 43px;
  padding: 0 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: rgba(255,255,255,.66);
  font-size: 12px;
  font-weight: 600;
  text-align: left;
}
.nav-item::before { display: none; }
.nav-item:hover { background: rgba(255,255,255,.06); color: #fff; }
.nav-item.active { background: var(--hm-paper); color: var(--hm-pine-950); box-shadow: 0 8px 26px rgba(0,0,0,.16); }
.nav-icon { display: grid; place-items: center; width: 20px; height: 20px; }
.nav-icon svg { width: 17px; height: 17px; }
.nav-count {
  display: grid;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  place-items: center;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.76);
  font-size: 9px;
  font-weight: 740;
}
.nav-item.active .nav-count { border-color: #d9ddd8; background: var(--hm-sage-100); color: var(--hm-pine-900); }
.sidebar-summary {
  flex: 0 0 auto;
  margin-top: 24px;
  padding: 16px;
  border: 1px solid var(--hm-line-dark);
  border-radius: 14px;
  background: rgba(255,255,255,.055);
}
.sidebar-summary-head { display: grid; grid-template-columns: 38px minmax(0,1fr); align-items: center; gap: 11px; }
.sidebar-avatar { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 11px; background: rgba(255,255,255,.12); color: #fff; font-weight: 720; }
.sidebar-avatar svg { width: 18px; height: 18px; }
.sidebar-summary-head div { display: grid; gap: 3px; }
.sidebar-summary-head strong { color: #fff; font-size: 12px; font-weight: 670; }
.sidebar-summary-head span { color: rgba(255,255,255,.55); font-size: 10px; }
.sidebar-progress { height: 3px; margin: 14px 0 12px; border-radius: 4px; background: rgba(255,255,255,.12); overflow: hidden; }
.sidebar-progress span { display: block; height: 100%; border-radius: inherit; background: #d6b69e; }
.sidebar-summary-meta { display: flex; flex-wrap: wrap; gap: 10px 14px; margin: 13px 0; color: rgba(255,255,255,.64); font-size: 10px; }
.sidebar-summary-meta span { display: inline-flex; align-items: center; gap: 5px; }
.sidebar-summary-meta svg { width: 13px; height: 13px; }
.sidebar-link { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 10px 0 0; border: 0; border-top: 1px solid var(--hm-line-dark); background: transparent; color: #fff; font-size: 10px; font-weight: 650; text-align: left; }
.sidebar-link svg { width: 13px; height: 13px; }
.sidebar-foot { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; margin: 14px 4px 0; color: rgba(255,255,255,.42); font-size: 9px; }
.status-dot { width: 6px; height: 6px; border-radius: 50%; background: #7fb296; box-shadow: 0 0 0 4px rgba(127,178,150,.11); }

.content {
  min-width: 0;
  padding: 40px 44px 84px;
  background:
    radial-gradient(circle at 92% 0%, rgba(204,193,169,.14), transparent 28%),
    var(--hm-ivory);
}
.content > * { width: min(100%, var(--content-max)); margin-right: auto; margin-left: auto; }

/* Editorial page hierarchy */
.page-header {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  align-items: end;
  gap: 28px;
  margin-bottom: 28px;
}
.page-heading { max-width: 780px; }
.page-kicker {
  margin: 0 0 9px;
  color: var(--hm-rust);
  font-size: 9px;
  font-weight: 780;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.page-title {
  margin: 0;
  color: var(--hm-ink);
  font-family: ui-serif, "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  font-size: clamp(42px, 4vw, 58px);
  font-weight: 500;
  line-height: .98;
  letter-spacing: -.045em;
}
.page-description { max-width: 690px; margin: 13px 0 0; color: var(--hm-muted); font-size: 14px; line-height: 1.55; }
.page-actions { display: flex; align-items: center; justify-content: flex-end; gap: 9px; flex-wrap: wrap; }

/* Buttons and controls */
.button {
  min-height: 41px;
  padding: 0 16px;
  border-radius: 9px;
  font-size: 11px;
  font-weight: 690;
  box-shadow: none;
}
.button svg { width: 15px; height: 15px; }
.button.primary { border-color: var(--hm-pine-900); background: var(--hm-pine-900); color: #fff; }
.button.primary:hover { border-color: var(--hm-pine-800); background: var(--hm-pine-800); transform: translateY(-1px); }
.button.secondary { border-color: #cbc8bf; background: var(--hm-paper); color: var(--hm-ink); }
.button.secondary:hover { border-color: #aeb2ac; background: #fff; }
.button.ghost { color: var(--hm-muted); }
.button.light { border-color: rgba(255,255,255,.22); background: #fff; color: var(--hm-pine-950); }
.button.small { min-height: 34px; padding: 0 12px; border-radius: 8px; font-size: 10px; }
.text-button { gap: 6px; color: var(--hm-pine-800); font-size: 10px; font-weight: 680; }
.text-button svg { width: 13px; height: 13px; }

/* Stats as a single information strip */
.grid.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 0;
  margin-bottom: 24px;
  border: 1px solid var(--hm-line);
  border-radius: 15px;
  background: var(--hm-paper);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.stat-card {
  position: relative;
  min-height: 124px;
  padding: 20px 22px 18px;
  border: 0;
  border-right: 1px solid var(--hm-line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.stat-card:last-child { border-right: 0; }
.stat-card::before { display: none; }
.stat-card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.stat-label { color: #7d837e; font-size: 9px; font-weight: 760; letter-spacing: .085em; text-transform: uppercase; }
.stat-icon { display: grid; width: 28px; height: 28px; place-items: center; border: 1px solid #e1ded6; border-radius: 9px; background: #f7f5ef; color: var(--hm-pine-700); }
.stat-icon svg { width: 14px; height: 14px; }
.stat-value { display: block; margin-top: 10px; color: var(--hm-ink); font-size: 27px; font-weight: 690; line-height: 1; letter-spacing: -.04em; }
.stat-meta { display: block; max-width: 210px; margin-top: 8px; color: var(--hm-muted); font-size: 10px; line-height: 1.35; }

/* Surfaces */
.panel, .card, .table-wrap, .calendar-shell, .calendar-sidebar, .message-composer, .candidate-card, .invitation-card {
  border: 1px solid var(--hm-line);
  border-radius: var(--radius);
  background: var(--hm-paper);
  box-shadow: var(--shadow-sm);
}
.panel-pad, .card-pad { padding: 22px; }
.section-header { align-items: flex-start; gap: 18px; margin-bottom: 18px; }
.section-header h2, .section-header h3 { margin: 0; color: var(--hm-ink); letter-spacing: -.025em; }
.section-header h2 { font-size: 19px; font-weight: 690; }
.section-header h3 { font-size: 15px; font-weight: 690; }
.section-eyebrow { display: block; margin-bottom: 5px; color: #8b908c; font-size: 8px; font-weight: 780; letter-spacing: .14em; text-transform: uppercase; }
.section-subtitle { margin-top: 4px; color: var(--hm-muted); }
.divider { border-color: var(--hm-line); }
.badge { min-height: 23px; padding: 0 8px; border-radius: 999px; font-size: 8px; font-weight: 720; letter-spacing: .015em; }
.badge svg { width: 11px; height: 11px; }
.badge.success { border-color: #c5d8ce; background: #eaf1ed; color: #2e624c; }
.badge.warning { border-color: #e4cfaa; background: #f7efe0; color: #8b5d20; }
.badge.danger { border-color: #e7c9c5; background: #f8e9e6; color: #984d45; }
.badge.info { border-color: #ccd9df; background: #edf2f4; color: #48697a; }
.badge.brand { border-color: #c8d9d1; background: #e8efeb; color: var(--hm-pine-700); }
.notice { border-radius: 10px; font-size: 10px; }

/* Dashboard */
.dashboard-layout { display: grid; grid-template-columns: minmax(0,1fr) 340px; align-items: start; gap: 24px; }
.dashboard-main, .dashboard-rail { display: grid; align-content: start; gap: 24px; min-width: 0; }
.dashboard-properties { overflow: hidden; }
.dashboard-properties .property-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; }
.dashboard-activity { padding-bottom: 10px; }
.activity-list { border-top: 1px solid var(--hm-line); }
.activity-row {
  display: grid;
  grid-template-columns: 36px minmax(0,1fr) auto 18px;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 14px 2px;
  border: 0;
  border-bottom: 1px solid var(--hm-line);
  background: transparent;
  color: var(--hm-ink);
  text-align: left;
}
.activity-row:hover { background: #faf8f2; }
.activity-row.unread .activity-copy strong::after { display: inline-block; width: 6px; height: 6px; margin-left: 7px; border-radius: 50%; background: var(--hm-rust); content: ""; vertical-align: 1px; }
.activity-icon { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 10px; background: var(--hm-sage-100); color: var(--hm-pine-800); }
.activity-icon.warning { background: #f5ead8; color: #93601f; }
.activity-icon.danger { background: #f4e4e1; color: #994b43; }
.activity-icon.info { background: #e7eef1; color: #486a7b; }
.activity-icon svg { width: 16px; height: 16px; }
.activity-copy { display: grid; min-width: 0; gap: 3px; }
.activity-copy strong { overflow: hidden; color: var(--hm-ink); font-size: 11px; font-weight: 680; text-overflow: ellipsis; white-space: nowrap; }
.activity-copy span { overflow: hidden; color: var(--hm-muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.activity-row time { color: #969b97; font-size: 9px; white-space: nowrap; }
.activity-arrow { color: #a2a7a3; }
.activity-arrow svg { width: 14px; height: 14px; }
.profile-hero-card {
  position: relative;
  display: grid;
  gap: 20px;
  padding: 24px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 17px;
  background:
    radial-gradient(circle at 92% 8%, rgba(214,182,158,.25), transparent 31%),
    linear-gradient(145deg, var(--hm-pine-800), var(--hm-pine-950));
  color: #fff;
  box-shadow: 0 18px 44px rgba(9,35,27,.18);
  overflow: hidden;
}
.profile-hero-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.profile-hero-card .avatar { border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.11); color: #fff; }
.profile-status { display: inline-flex; align-items: center; gap: 5px; color: #dfece5; font-size: 9px; font-weight: 650; }
.profile-status svg { width: 12px; height: 12px; }
.profile-hero-card .section-eyebrow { color: rgba(255,255,255,.5); }
.profile-hero-card h2 { margin: 3px 0 4px; color: #fff; font-family: ui-serif, "Iowan Old Style", Georgia, serif; font-size: 29px; font-weight: 500; letter-spacing: -.035em; }
.profile-hero-card p { margin: 0; color: rgba(255,255,255,.64); font-size: 11px; line-height: 1.45; }
.profile-hero-card .profile-completion { margin: 0; }
.profile-hero-card .profile-completion-row { color: rgba(255,255,255,.72); }
.profile-hero-card .profile-completion-row strong { color: #fff; }
.profile-hero-card .progress { background: rgba(255,255,255,.13); }
.profile-hero-card .progress span { background: #d7b99f; }
.preference-card .preference-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 1px solid var(--hm-line); }
.preference-card .preference-row:first-of-type { border-top: 0; }
.preference-row span { display: inline-flex; align-items: center; gap: 9px; color: var(--hm-muted); font-size: 10px; }
.preference-row span svg { width: 15px; height: 15px; color: var(--hm-pine-700); }
.preference-row strong { color: var(--hm-ink); font-size: 10px; font-weight: 680; }

/* Property cards */
.property-grid { gap: 17px; }
.property-tile {
  border: 1px solid var(--hm-line);
  border-radius: 13px;
  background: var(--hm-paper);
  box-shadow: none;
  overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.property-tile:hover { border-color: #c3c1b8; box-shadow: 0 14px 34px rgba(18,39,31,.09); transform: translateY(-2px); }
.property-tile-image { height: 204px; background: #dad7cf; }
.property-tile-image::after { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(9,22,17,.16), transparent 35%, rgba(9,22,17,.03)); content: ""; pointer-events: none; }
.property-tile-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.2,.8,.2,1); }
.property-tile:hover .property-tile-image img { transform: scale(1.025); }
.property-tile-badges { z-index: 1; top: 12px; right: 12px; left: 12px; align-items: center; }
.property-tile-match { min-height: 25px; padding: 0 9px; border: 1px solid rgba(255,255,255,.25); border-radius: 999px; background: rgba(11,39,31,.86); color: #fff; font-size: 8px; font-weight: 760; backdrop-filter: blur(7px); }
.property-tile-body { padding: 18px; }
.property-tile-body h3 { margin: 0 0 5px; color: var(--hm-ink); font-family: ui-serif, "Iowan Old Style", Georgia, serif; font-size: 21px; font-weight: 500; line-height: 1.1; letter-spacing: -.025em; }
.property-address { color: #858b86; font-size: 9px; }
.property-price { margin-top: 15px; color: var(--hm-ink); font-size: 17px; font-weight: 730; letter-spacing: -.025em; }
.property-price small { color: #838984; font-size: 9px; font-weight: 520; }
.property-tile .meta-row { gap: 12px; margin-top: 11px; color: #707770; font-size: 9px; }
.property-tile .meta-row svg { width: 13px; height: 13px; color: var(--hm-pine-700); }
.change-note { margin-top: 13px; padding: 10px 11px; border-radius: 8px; font-size: 9px; }
.property-tile-footer { align-items: center; gap: 10px; margin-top: 15px; padding-top: 14px; border-top: 1px solid var(--hm-line); }
.property-tile-actions { gap: 6px; }

/* Browse experience */
.browse-layout { grid-template-columns: minmax(0, 1fr) 330px; align-items: start; gap: 24px; }
.swipe-stage { min-width: 0; }
.swipe-card {
  max-width: none;
  border: 1px solid #d0cdc4;
  border-radius: 18px;
  background: var(--hm-paper);
  box-shadow: 0 24px 70px rgba(18,39,31,.13);
  overflow: hidden;
}
.swipe-image { height: clamp(420px, 47vw, 540px); background: #d9d6cf; }
.swipe-image img { width: 100%; height: 100%; object-fit: cover; }
.image-overlay { background: linear-gradient(180deg, rgba(5,17,13,.28) 0%, rgba(5,17,13,0) 40%, rgba(5,17,13,.72) 100%); }
.image-topline { top: 20px; right: 20px; left: 20px; }
.image-topline .badge { border-color: rgba(255,255,255,.2); background: rgba(13,39,31,.78); color: #fff; backdrop-filter: blur(9px); }
.match-ring { display: inline-flex; width: auto; height: 34px; padding: 0 12px; border: 1px solid rgba(255,255,255,.2); border-radius: 999px; background: rgba(13,39,31,.82); color: #fff; font-size: 11px; font-weight: 760; backdrop-filter: blur(9px); }
.image-title { right: 28px; bottom: 27px; left: 28px; color: #fff; }
.image-title h2 { max-width: 760px; margin: 0 0 9px; color: #fff; font-family: ui-serif, "Iowan Old Style", "Palatino Linotype", Georgia, serif; font-size: clamp(38px, 4vw, 53px); font-weight: 500; line-height: .97; letter-spacing: -.045em; text-shadow: 0 2px 18px rgba(0,0,0,.2); }
.image-title p { display: flex; align-items: center; gap: 7px; margin: 0; color: rgba(255,255,255,.8); font-size: 11px; }
.image-title p svg { width: 15px; height: 15px; }
.swipe-body { padding: 26px 29px 22px; }
.price-line { align-items: baseline; }
.price-line strong { color: var(--hm-ink); font-size: 27px; font-weight: 740; letter-spacing: -.04em; }
.price-line span { color: #828882; font-size: 10px; }
.swipe-body > .meta-row { gap: 17px; margin: 13px 0 16px; color: #687069; font-size: 10px; }
.meta-item { gap: 6px; }
.meta-item svg { width: 14px; height: 14px; color: var(--hm-pine-700); }
.feature-pills { gap: 6px; }
.feature-pill { min-height: 27px; padding: 0 9px; border: 1px solid #ddd9d0; border-radius: 7px; background: #f3f0e9; color: #59615b; font-size: 9px; font-weight: 600; }
.feature-pill svg { width: 12px; height: 12px; color: var(--hm-pine-700); }
.match-explainer { margin-top: 17px; padding: 13px 15px; border-radius: 10px; }
.swipe-actions { display: grid; grid-template-columns: minmax(120px,.75fr) minmax(120px,.75fr) minmax(250px,1.55fr); gap: 9px; padding: 0 29px 28px; }
.swipe-action { min-height: 50px; border-radius: 10px; font-size: 11px; font-weight: 690; }
.swipe-action svg { width: 18px; height: 18px; }
.swipe-action.dismiss { border-color: #dbcec8; background: var(--hm-paper); color: #a15043; }
.swipe-action.save { border-color: #d8cfbe; background: #fbf8f0; color: #8d632a; }
.swipe-action.like { border-color: var(--hm-pine-900); background: var(--hm-pine-900); color: #fff; }
.swipe-counter { margin-top: 12px; color: #8b918c; font-size: 9px; }
.browse-aside { position: sticky; top: calc(var(--topbar) + 22px); gap: 16px; }
.browse-aside .card { border-radius: 14px; }
.filter-row { min-height: 45px; border-color: var(--hm-line); }
.filter-row span { color: #777e78; font-size: 10px; }
.filter-row strong { max-width: 165px; color: var(--hm-ink); font-size: 10px; }
.quick-item { padding: 13px 0; border-color: var(--hm-line); }
.quick-item-icon { width: 34px; height: 34px; border-radius: 10px; background: var(--hm-sage-100); color: var(--hm-pine-700); }
.quick-item-copy strong { font-size: 10px; }
.quick-item-copy span { color: var(--hm-muted); font-size: 9px; line-height: 1.4; }

/* Profile and settings */
.grid.main-aside { grid-template-columns: minmax(0,1fr) 340px; gap: 24px; }
.profile-summary { gap: 14px; }
.avatar { border: 1px solid #d5dbd6; background: var(--hm-sage-100); color: var(--hm-pine-900); }
.profile-summary h2 { font-size: 22px; }
.detail-facts { gap: 8px; }
.detail-fact { padding: 13px; border: 1px solid #ebe7df; border-radius: 10px; background: #f5f2eb; }
.detail-fact span { color: #7c837d; font-size: 9px; }
.detail-fact strong { margin-top: 4px; color: var(--hm-ink); font-size: 10px; }
.toggle-row { min-height: 58px; border-color: var(--hm-line); }
.row-leading-icon { background: #f0eee8; color: var(--hm-pine-700); }
.toggle-copy strong { font-size: 10px; }
.toggle-copy span { font-size: 9px; }
.switch .slider { background: #d5d9d5; }
.switch input:checked + .slider { background: var(--hm-pine-800); }

/* Appointments and calendar */
.appointment-card { border-color: #e2ded5; border-radius: 11px; background: #fbfaf6; }
.appointment-date { border-radius: 10px; background: #eeeae1; color: var(--hm-ink); }
.appointment-type-icon { border-radius: 10px; background: var(--hm-sage-100); color: var(--hm-pine-700); }
.calendar-layout { gap: 22px; }
.calendar-shell { overflow: hidden; }
.calendar-toolbar { padding: 18px 20px; border-bottom: 1px solid var(--hm-line); }
.calendar-toolbar h2 { font-family: ui-serif, "Iowan Old Style", Georgia, serif; font-size: 24px; font-weight: 500; }
.calendar-weekday { background: #f0ede6; color: #797f7a; font-size: 9px; }
.calendar-day { min-height: 112px; border-color: #e3e0d8; background: var(--hm-paper); }
.calendar-day:hover { background: #faf8f2; }
.calendar-day.today { background: #edf2ee; }
.calendar-day-number { font-size: 10px; }
.calendar-event { border-radius: 7px; background: var(--hm-pine-900); color: #fff; }
.calendar-event.warning { background: #97652b; }
.calendar-event.danger { background: #994d45; }

/* Candidates, lists and tables */
.candidate-card { border-radius: 13px; }
.candidate-card:hover { border-color: #c7c4bb; box-shadow: 0 12px 32px rgba(18,39,31,.08); }
.table-wrap { overflow: hidden auto; }
thead { background: #efede6; }
th { color: #757c76; font-size: 8px; letter-spacing: .08em; }
td { border-color: #e5e1d9; }
.tabs { gap: 2px; padding: 4px; border: 1px solid var(--hm-line); border-radius: 11px; background: #efede6; }
.tab { min-height: 35px; border-radius: 7px; font-size: 10px; }
.tab.active { background: var(--hm-paper); color: var(--hm-pine-900); box-shadow: 0 1px 3px rgba(18,39,31,.08); }

/* Notifications */
.notification-layer { z-index: 90; }
.notification-scrim { background: rgba(11,27,21,.42); backdrop-filter: blur(2px); }
.notification-drawer { width: min(430px, 100vw); border-left: 1px solid rgba(255,255,255,.1); background: var(--hm-paper); box-shadow: -24px 0 70px rgba(10,30,23,.18); }
.notification-drawer-header { padding: 28px 26px 20px; border-color: var(--hm-line); background: var(--hm-pine-950); color: #fff; }
.notification-drawer-header h2 { color: #fff; font-family: ui-serif, "Iowan Old Style", Georgia, serif; font-size: 29px; font-weight: 500; }
.notification-drawer-header p, .drawer-kicker { color: rgba(255,255,255,.55); }
.notification-drawer-header .icon-button { color: #fff; }
.notification-drawer-toolbar { padding: 14px 24px; border-color: var(--hm-line); background: #f2efe8; }
.notification-drawer-list { padding: 4px 14px 18px; }
.drawer-notification { grid-template-columns: 38px minmax(0,1fr) 18px; gap: 12px; padding: 15px 10px; border-color: var(--hm-line); border-radius: 9px; }
.drawer-notification:hover { background: #f7f4ee; }
.drawer-notification.unread { background: #edf2ee; }
.drawer-notification-copy strong { font-size: 11px; }
.drawer-notification-copy span { color: var(--hm-muted); font-size: 10px; line-height: 1.45; }
.drawer-notification-copy time { font-size: 8px; }
.notification-drawer-footer { padding: 16px 24px 22px; border-color: var(--hm-line); }
.notification-item { grid-template-columns: 40px minmax(0,1fr) auto; padding: 18px; border-color: var(--hm-line); border-radius: 12px; }
.notification-copy h3 { font-size: 12px; }
.notification-copy p { color: var(--hm-muted); font-size: 10px; }

/* Dialogs and forms */
.modal { border: 1px solid rgba(255,255,255,.24); border-radius: 17px; background: var(--hm-paper); box-shadow: var(--shadow-lg); }
.modal-header { padding: 22px 24px 18px; border-color: var(--hm-line); }
.modal-header h2 { font-family: ui-serif, "Iowan Old Style", Georgia, serif; font-size: 27px; font-weight: 500; }
.modal-body { padding: 24px; }
.modal-footer { padding: 16px 24px 22px; border-color: var(--hm-line); background: #faf8f3; }
.field input, .field select, .field textarea { border-color: #ccc9c1; border-radius: 9px; background: #fffefa; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--hm-pine-700); box-shadow: 0 0 0 3px rgba(32,91,73,.12); }
.form-section { border-color: var(--hm-line); }

/* Toasts */
.toast-root { right: 24px; bottom: 24px; }
.toast { max-width: 390px; border: 1px solid rgba(255,255,255,.12); border-radius: 12px; background: var(--hm-pine-950); box-shadow: var(--shadow-md); }

/* Responsive */
@media (max-width: 1180px) {
  :root { --sidebar: 218px; }
  .content { padding-inline: 30px; }
  .dashboard-layout { grid-template-columns: minmax(0,1fr) 310px; }
  .browse-layout { grid-template-columns: minmax(0,1fr) 300px; }
  .topbar-main { padding-inline: 22px; }
  .role-button { padding-inline: 10px; }
}
@media (max-width: 1020px) {
  .topbar { grid-template-columns: 210px minmax(0,1fr); }
  .brand { padding-inline: 18px; }
  .topbar-main { grid-template-columns: minmax(0,1fr) auto; }
  .topbar-context, .topbar-main > .role-switcher { display: none; }
  .mobile-role-trigger { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 10px; border: 1px solid var(--hm-line); border-radius: 9px; background: #f4f1ea; color: var(--hm-ink); font-size: 10px; font-weight: 650; }
  .mobile-role-trigger svg { width: 13px; height: 13px; }
  .workspace { display: block; }
  .sidebar { display: none; }
  .content { padding: 34px 24px 100px; }
  .dashboard-layout, .grid.main-aside, .grid.aside-main, .browse-layout, .calendar-layout { grid-template-columns: 1fr; }
  .dashboard-rail { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .profile-hero-card { grid-row: span 2; }
  .browse-aside { position: static; grid-template-columns: repeat(2,minmax(0,1fr)); }
  .mobile-nav { border-top: 1px solid var(--hm-line); background: rgba(255,253,248,.96); box-shadow: 0 -10px 32px rgba(18,39,31,.08); backdrop-filter: blur(16px); }
  .mobile-nav .nav-item { color: #727973; }
  .mobile-nav .nav-item.active { color: var(--hm-pine-800); }
}
@media (max-width: 760px) {
  :root { --topbar: 64px; }
  .topbar { grid-template-columns: 156px minmax(0,1fr); }
  .brand { height: var(--topbar); gap: 9px; padding: 0 12px; }
  .brand-mark { width: 32px; height: 32px; border-radius: 9px; }
  .brand-mark i { font-size: 15px; line-height: 29px; }
  .brand-copy strong { font-size: 15px; }
  .brand-copy small { display: none; }
  .topbar-main { height: var(--topbar); padding: 0 12px; }
  .active-user { display: none; }
  .mobile-role-trigger span { display: none; }
  .content { padding: 26px 15px 92px; }
  .page-header { grid-template-columns: 1fr; align-items: start; gap: 18px; margin-bottom: 23px; }
  .page-title { font-size: 40px; }
  .page-description { font-size: 12px; }
  .page-actions { justify-content: flex-start; }
  .grid.stats { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .stat-card { min-height: 108px; padding: 16px; }
  .stat-card:nth-child(2) { border-right: 0; }
  .stat-card:nth-child(-n+2) { border-bottom: 1px solid var(--hm-line); }
  .stat-value { font-size: 24px; }
  .dashboard-properties .property-grid, .property-grid, .candidate-grid, .grid.two, .grid.three, .grid.four { grid-template-columns: 1fr; }
  .dashboard-rail, .browse-aside { grid-template-columns: 1fr; }
  .profile-hero-card { grid-row: auto; }
  .swipe-image { height: 390px; }
  .image-title { right: 20px; bottom: 20px; left: 20px; }
  .image-title h2 { font-size: 37px; }
  .swipe-body { padding: 21px 18px 18px; }
  .swipe-actions { grid-template-columns: 1fr 1fr; padding: 0 18px 20px; }
  .swipe-action.like { grid-column: 1 / -1; order: -1; }
  .property-tile-image { height: 230px; }
  .activity-row { grid-template-columns: 34px minmax(0,1fr) 14px; }
  .activity-row time { display: none; }
  .notification-drawer { width: 100vw; }
}
@media (max-width: 430px) {
  .topbar { grid-template-columns: 128px minmax(0,1fr); }
  .brand-copy strong { font-size: 14px; }
  .brand-mark { width: 29px; height: 29px; }
  .topbar-actions { gap: 3px; }
  .icon-button { width: 36px; height: 36px; }
  .page-title { font-size: 35px; }
  .grid.stats { border-radius: 12px; }
  .stat-icon { display: none; }
  .stat-card { min-height: 100px; padding: 14px; }
  .stat-meta { font-size: 9px; }
  .swipe-image { height: 330px; }
  .image-title h2 { font-size: 31px; }
  .price-line { align-items: flex-start; flex-direction: column; gap: 3px; }
  .swipe-body > .meta-row { align-items: flex-start; flex-wrap: wrap; }
  .swipe-action { min-height: 47px; }
  .property-tile-footer { align-items: flex-start; flex-direction: column; }
  .property-tile-actions { width: 100%; }
  .property-tile-actions .button { flex: 1; }
}

/* Actionable dashboard metrics */
button.stat-card {
  width: 100%;
  margin: 0;
  border: 0;
  border-right: 1px solid var(--hm-line);
  border-radius: 0;
  appearance: none;
  color: inherit;
  font: inherit;
  text-align: left;
}
button.stat-card:last-child { border-right: 0; }
.stat-card.is-actionable {
  position: relative;
  cursor: pointer;
  overflow: hidden;
  transition: background-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.stat-card.is-actionable::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: block;
  height: 3px;
  background: var(--hm-pine-700);
  content: '';
  opacity: 0;
  transform: scaleX(.35);
  transform-origin: left;
  transition: opacity .18s ease, transform .18s ease;
}
.stat-card.is-actionable:hover {
  z-index: 1;
  background: #f8f6ef;
  box-shadow: inset 0 0 0 1px rgba(25, 61, 49, .08), 0 10px 28px rgba(22, 45, 37, .06);
}
.stat-card.is-actionable:hover::after,
.stat-card.is-actionable:focus-visible::after {
  opacity: 1;
  transform: scaleX(1);
}
.stat-card.is-actionable:active { transform: translateY(1px); }
.stat-card.is-actionable:focus-visible {
  z-index: 2;
  outline: 3px solid rgba(46, 100, 81, .28);
  outline-offset: -3px;
}
.stat-card.is-actionable .stat-icon,
.stat-card.is-actionable .stat-card-cue {
  transition: color .18s ease, background-color .18s ease, border-color .18s ease, transform .18s ease, opacity .18s ease;
}
.stat-card.is-actionable:hover .stat-icon,
.stat-card.is-actionable:focus-visible .stat-icon {
  border-color: rgba(25, 61, 49, .2);
  background: #fffdfa;
  transform: translateY(-1px);
}
.stat-card-cue {
  position: absolute;
  right: 20px;
  bottom: 17px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--hm-pine-700);
  font-size: 9px;
  font-weight: 720;
  letter-spacing: .015em;
  opacity: .62;
}
.stat-card-cue .ui-icon { width: 12px; height: 12px; }
.stat-card.is-actionable:hover .stat-card-cue,
.stat-card.is-actionable:focus-visible .stat-card-cue {
  opacity: 1;
  transform: translateX(2px);
}
.dashboard-stats .stat-meta { max-width: calc(100% - 72px); }

@media (max-width: 760px) {
  button.stat-card:nth-child(2) { border-right: 0; }
  button.stat-card:nth-child(-n+2) { border-bottom: 1px solid var(--hm-line); }
  .stat-card-cue { right: 14px; bottom: 13px; }
  .stat-card-cue span { display: none; }
  .dashboard-stats .stat-meta { max-width: calc(100% - 28px); }
}


/* V6: drill-down views and role-wide KPI interactions */
.property-filter-tabs,
.user-filter-tabs {
  margin-top: 2px;
}

.table-property-thumb {
  width: 46px;
  height: 38px;
  flex: 0 0 auto;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: inset 0 0 0 1px rgba(20, 60, 49, 0.08);
}

.moderation-resolution {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 13px;
  padding: 11px 12px;
  border: 1px solid rgba(31, 111, 84, 0.16);
  border-radius: 12px;
  background: rgba(31, 111, 84, 0.06);
}

.moderation-resolution > span {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  background: var(--success);
  color: #fff;
}

.moderation-resolution .ui-icon {
  width: 15px;
  height: 15px;
}

.moderation-resolution strong,
.moderation-resolution p {
  display: block;
  margin: 0;
}

.moderation-resolution p {
  margin-top: 2px;
  color: var(--ink-faint);
  font-size: 10px;
}

.plan-overview {
  display: grid;
  gap: 16px;
}

.plan-hero {
  padding: 20px;
  border-radius: 18px;
  background: linear-gradient(145deg, #183f34, #0f2e27);
  color: #fff;
}

.plan-hero h2 {
  margin: 13px 0 6px;
  color: #fff;
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 500;
}

.plan-hero p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.55;
}

.compact-plan-stats {
  gap: 8px;
}

.compact-plan-stats .detail-fact {
  min-height: 82px;
  padding: 13px;
}

.compact-plan-stats .detail-fact strong {
  margin-top: 7px;
  font-size: 20px;
}

@media (max-width: 760px) {
  .table-property-thumb {
    width: 40px;
    height: 34px;
  }

  .compact-plan-stats {
    grid-template-columns: 1fr;
  }
}
/* GoLeje V7 · Portefølje, drift og kontrakter */
.v7-command-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-bottom: 28px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255,255,255,.92);
  box-shadow: var(--shadow-sm);
}

.v7-command-strip button {
  position: relative;
  display: grid;
  min-height: 126px;
  padding: 24px 24px 22px;
  border: 0;
  border-right: 1px solid var(--line);
  background: transparent;
  text-align: left;
  cursor: pointer;
  transition: background .18s ease, transform .18s ease;
}

.v7-command-strip button:last-child { border-right: 0; }
.v7-command-strip button:hover { background: var(--brand-soft); }
.v7-command-strip button:focus-visible { outline: 3px solid rgba(28,85,92,.22); outline-offset: -3px; }
.v7-command-strip button > span { position: absolute; top: 18px; right: 18px; display: grid; width: 38px; height: 38px; place-items: center; border: 1px solid var(--line); border-radius: 12px; color: var(--brand); }
.v7-command-strip button > span svg { width: 19px; height: 19px; }
.v7-command-strip strong { align-self: end; font-size: clamp(1.45rem, 2.1vw, 2rem); letter-spacing: -.055em; }
.v7-command-strip small { margin-top: 6px; color: var(--ink-soft); font-size: .78rem; font-weight: 650; }

.v7-dashboard-grid { align-items: start; }
.v7-property-list { display: grid; gap: 0; }
.v7-property-record {
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr) 32px;
  align-items: stretch;
  width: 100%;
  min-height: 112px;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  text-align: left;
  cursor: pointer;
  transition: background .16s ease;
}
.v7-property-record:first-child { border-top: 1px solid var(--line); }
.v7-property-record:hover { background: #f8faf8; }
.v7-property-record:focus-visible { position: relative; z-index: 2; outline: 3px solid rgba(28,85,92,.22); }
.v7-property-image { position: relative; min-height: 112px; background-position: center; background-size: cover; }
.v7-property-image::after { position: absolute; inset: 0; background: linear-gradient(90deg, transparent 55%, rgba(255,255,255,.22)); content: ""; }
.v7-property-image > span { position: absolute; z-index: 2; top: 10px; left: 10px; }
.v7-property-copy { display: grid; grid-template-columns: minmax(180px, .8fr) minmax(0, 1.8fr); gap: 24px; align-items: center; padding: 17px 20px; }
.v7-property-title { display: grid; gap: 5px; }
.v7-property-title strong { font-family: Georgia, "Times New Roman", serif; font-size: 1.12rem; letter-spacing: -.02em; }
.v7-property-title small { color: var(--ink-soft); line-height: 1.35; }
.v7-record-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 22px; }
.v7-record-grid > span { display: grid; gap: 3px; min-width: 0; }
.v7-record-grid small { color: var(--ink-faint); font-size: .67rem; font-weight: 750; letter-spacing: .055em; text-transform: uppercase; }
.v7-record-grid strong { display: flex; min-width: 0; align-items: center; gap: 5px; overflow: hidden; font-size: .79rem; text-overflow: ellipsis; white-space: nowrap; }
.v7-record-grid svg { width: 14px; height: 14px; color: var(--brand); }
.v7-record-arrow { display: grid; place-items: center; color: var(--brand); }
.v7-record-arrow svg { width: 18px; }

.v7-finance-card { overflow: hidden; }
.v7-finance-total { display: grid; margin: 8px 0 16px; }
.v7-finance-total strong { font-family: Georgia, "Times New Roman", serif; font-size: 2.6rem; letter-spacing: -.06em; }
.v7-finance-total span { color: var(--ink-soft); }
.v7-finance-foot { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.v7-finance-foot span { display: grid; gap: 3px; }
.v7-finance-foot small { color: var(--ink-faint); font-size: .7rem; text-transform: uppercase; }
.v7-finance-foot strong { font-size: 1rem; }

.v7-chart { display: grid; grid-template-columns: repeat(9, minmax(18px, 1fr)); align-items: end; height: 176px; gap: 8px; padding: 16px 2px 2px; border-bottom: 1px solid var(--line); background: repeating-linear-gradient(to top, transparent 0 43px, rgba(217,224,220,.55) 44px 45px); }
.v7-chart-col { display: grid; grid-template-rows: 1fr 22px; height: 100%; gap: 5px; align-items: end; }
.v7-chart-col small { color: var(--ink-faint); font-size: .62rem; text-align: center; }
.v7-chart-bars { display: flex; height: 100%; align-items: end; justify-content: center; gap: 3px; }
.v7-chart-bars span { width: min(13px, 42%); min-height: 2px; border-radius: 4px 4px 1px 1px; }
.v7-bar-income { background: var(--brand); }
.v7-bar-expense { background: var(--accent); }
.v7-chart-legend { display: flex; gap: 18px; margin-top: 10px; color: var(--ink-soft); font-size: .72rem; }
.v7-chart-legend span { display: inline-flex; align-items: center; gap: 6px; }
.v7-chart-legend i { width: 9px; height: 9px; border-radius: 3px; }
.v7-chart-legend i.income { background: var(--brand); }
.v7-chart-legend i.expense { background: var(--accent); }

.v7-attention-list { display: grid; gap: 8px; }
.v7-attention-card { display: grid; grid-template-columns: 38px minmax(0, 1fr) 18px; gap: 11px; align-items: center; width: 100%; padding: 11px; border: 1px solid transparent; border-radius: 13px; background: var(--surface-2); text-align: left; cursor: pointer; }
.v7-attention-card:hover { border-color: var(--line); background: #fff; }
.v7-attention-icon { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 11px; background: #fff; color: var(--brand); box-shadow: 0 2px 8px rgba(20,60,49,.06); }
.v7-attention-icon svg { width: 18px; }
.v7-attention-card > span:nth-child(2) { display: grid; gap: 3px; min-width: 0; }
.v7-attention-card strong { overflow: hidden; font-size: .82rem; text-overflow: ellipsis; white-space: nowrap; }
.v7-attention-card small { overflow: hidden; color: var(--ink-soft); font-size: .7rem; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.v7-attention-card > svg { width: 15px; color: var(--ink-faint); }

.v7-funnel-compact { display: grid; grid-template-columns: repeat(7, auto); align-items: center; justify-content: space-between; gap: 16px; padding: 18px 0 4px; }
.v7-funnel-compact span { display: grid; gap: 3px; text-align: center; }
.v7-funnel-compact strong { font-family: Georgia, "Times New Roman", serif; font-size: 1.9rem; }
.v7-funnel-compact small { color: var(--ink-soft); font-size: .7rem; }
.v7-funnel-compact i { width: 34px; height: 1px; background: var(--line); }
.v7-retention-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.v7-retention-grid button { display: flex; min-height: 96px; align-items: center; gap: 14px; padding: 16px; border: 1px solid var(--line); border-radius: 16px; background: #fff; text-align: left; cursor: pointer; }
.v7-retention-grid button:hover { border-color: var(--brand); }
.v7-retention-grid svg { width: 24px; color: var(--brand); }
.v7-retention-grid span { display: grid; gap: 4px; }
.v7-retention-grid small { color: var(--ink-soft); font-size: .72rem; }

.v7-filterbar { display: flex; gap: 8px; margin-bottom: 18px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
.v7-filterbar::-webkit-scrollbar { display: none; }
.v7-filterbar button { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 10px; padding: 10px 13px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.78); color: var(--ink-soft); cursor: pointer; }
.v7-filterbar button.active { border-color: var(--brand); background: var(--brand); color: #fff; }
.v7-filterbar button strong { display: grid; min-width: 22px; height: 22px; place-items: center; border-radius: 999px; background: rgba(255,255,255,.18); font-size: .7rem; }
.v7-filterbar button:not(.active) strong { background: var(--surface-2); color: var(--ink); }
.v7-portfolio-panel { overflow: hidden; }
.v7-portfolio-head { display: grid; grid-template-columns: 116px minmax(0,1fr) 32px; min-height: 0; padding: 13px 20px 13px 136px; border-bottom: 1px solid var(--line); color: var(--ink-faint); font-size: .67rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.v7-portfolio-head span:nth-child(1) { grid-column: 1; }
.v7-portfolio-head span:nth-child(2) { grid-column: 2; }
.v7-portfolio-head span:nth-child(3) { display: none; }
.v7-portfolio-head span:nth-child(4) { display: none; }

.v7-workspace-hero { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 24px; margin-bottom: 18px; }
.v7-back { display: inline-flex; grid-column: 1 / -1; width: fit-content; align-items: center; gap: 7px; padding: 0; border: 0; background: transparent; color: var(--brand); font-weight: 760; cursor: pointer; }
.v7-back svg { width: 17px; }
.v7-workspace-title { display: flex; align-items: center; gap: 18px; }
.v7-workspace-photo { width: 94px; height: 94px; flex: 0 0 auto; border-radius: 20px; background-position: center; background-size: cover; box-shadow: var(--shadow-sm); }
.v7-workspace-title h1 { margin: 7px 0 4px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2rem,4vw,3.25rem); font-weight: 500; letter-spacing: -.05em; }
.v7-workspace-title p { margin: 0; color: var(--ink-soft); }
.v7-workspace-tabs { display: flex; gap: 3px; margin: 0 0 22px; overflow-x: auto; padding: 5px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.74); scrollbar-width: none; }
.v7-workspace-tabs::-webkit-scrollbar { display: none; }
.v7-workspace-tabs button { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 7px; padding: 10px 12px; border: 0; border-radius: 11px; background: transparent; color: var(--ink-soft); font-size: .76rem; font-weight: 700; cursor: pointer; }
.v7-workspace-tabs button.active { background: var(--brand); color: #fff; box-shadow: 0 5px 14px rgba(28,85,92,.16); }
.v7-workspace-tabs svg { width: 16px; }
.v7-workspace-tabs em { display: grid; min-width: 19px; height: 19px; place-items: center; border-radius: 999px; background: rgba(255,255,255,.17); font-size: .65rem; font-style: normal; }
.v7-workspace-tabs button:not(.active) em { background: var(--surface-2); color: var(--ink); }
.v7-workspace-body { animation: v7Fade .2s ease; }
@keyframes v7Fade { from { opacity: .25; transform: translateY(4px); } }
.v7-property-stats { margin-bottom: 18px; }

.v7-lifecycle { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 0; margin-top: 16px; }
.v7-lifecycle > div { position: relative; display: grid; gap: 5px; padding: 0 12px 14px 0; }
.v7-lifecycle > div::before { position: absolute; top: 16px; right: 0; left: 30px; height: 2px; background: var(--line); content: ""; }
.v7-lifecycle > div:last-child::before { display: none; }
.v7-lifecycle > div > span { position: relative; z-index: 1; display: grid; width: 32px; height: 32px; place-items: center; border: 2px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink-faint); }
.v7-lifecycle > div.done > span { border-color: var(--brand); background: var(--brand); color: #fff; }
.v7-lifecycle > div.done::before { background: var(--brand); }
.v7-lifecycle svg { width: 15px; }
.v7-lifecycle strong { margin-top: 4px; font-size: .76rem; }
.v7-lifecycle small { color: var(--ink-soft); font-size: .68rem; }
.v7-vacancy-callout { display: flex; align-items: center; gap: 13px; margin-top: 15px; padding: 14px; border-radius: 14px; background: var(--warning-soft); color: #6e4b16; }
.v7-vacancy-callout > svg { width: 23px; }
.v7-vacancy-callout span { display: grid; gap: 3px; }
.v7-vacancy-callout small { line-height: 1.4; }

.v7-fact-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; margin: 15px 0; }
.v7-fact-grid.compact { grid-template-columns: repeat(2,minmax(0,1fr)); }
.v7-fact-grid > div { display: grid; gap: 8px; min-height: 78px; padding: 13px; border: 1px solid var(--line); border-radius: 13px; background: #fbfcfa; }
.v7-fact-grid span { display: flex; align-items: center; gap: 6px; color: var(--ink-soft); font-size: .68rem; font-weight: 700; }
.v7-fact-grid svg { width: 15px; color: var(--brand); }
.v7-fact-grid strong { font-size: .83rem; line-height: 1.35; overflow-wrap: anywhere; }
.v7-custom-fields { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.v7-custom-fields span { display: grid; gap: 2px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface-2); }
.v7-custom-fields small { color: var(--ink-soft); font-size: .64rem; }
.v7-custom-fields strong { font-size: .77rem; }
.v7-folder-summary { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; margin: 12px 0; }
.v7-folder-summary > span { display: grid; min-height: 88px; place-items: center; padding: 10px; border: 1px solid var(--line); border-radius: 13px; text-align: center; }
.v7-folder-summary svg { width: 20px; color: var(--brand); }
.v7-folder-summary strong { font-size: 1.35rem; }
.v7-folder-summary small { color: var(--ink-soft); font-size: .65rem; }
.v7-doc-feature { display: grid; grid-template-columns: 34px minmax(0,1fr) 18px; gap: 10px; align-items: center; width: 100%; margin-top: 8px; padding: 12px; border: 1px solid var(--line); border-radius: 13px; background: #fff; text-align: left; cursor: pointer; }
.v7-doc-feature:hover { border-color: var(--brand); }
.v7-doc-feature > svg:first-child { width: 20px; color: var(--brand); }
.v7-doc-feature > svg:last-child { width: 15px; }
.v7-doc-feature span { display: grid; gap: 3px; }
.v7-doc-feature small { color: var(--ink-soft); font-size: .68rem; }

.v7-tenancy-list { display: grid; gap: 14px; }
.v7-tenancy-card { padding: 20px; border: 1px solid var(--line); border-radius: 17px; background: #fff; }
.v7-tenancy-card.current { border-color: rgba(46,118,88,.32); box-shadow: inset 4px 0 var(--success); }
.v7-tenancy-top { display: flex; justify-content: space-between; gap: 20px; }
.v7-tenancy-top h3 { margin: 8px 0 4px; font-family: Georgia, "Times New Roman", serif; font-size: 1.45rem; }
.v7-tenancy-top p { color: var(--ink-soft); }
.v7-tenancy-facts { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; margin: 16px 0; }
.v7-tenancy-facts span { display: grid; gap: 3px; padding: 10px; border-radius: 11px; background: var(--surface-2); }
.v7-tenancy-facts small { color: var(--ink-soft); font-size: .66rem; }
.v7-tenancy-facts strong { font-size: .8rem; }
.v7-tenancy-actions { display: flex; flex-wrap: wrap; gap: 7px; padding-top: 14px; border-top: 1px solid var(--line); }
.v7-notice-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; margin: 14px 0; }
.v7-notice-grid div { display: grid; gap: 5px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; }
.v7-notice-grid span { color: var(--ink-soft); font-size: .65rem; }
.v7-notice-grid strong { font-size: .8rem; }
.v7-check-list { display: grid; gap: 10px; padding: 0; list-style: none; color: var(--ink-soft); font-size: .79rem; }
.v7-check-list li { display: flex; align-items: center; gap: 8px; }
.v7-check-list svg { width: 16px; color: var(--success); }

.v7-toolbar { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 18px; }
.v7-toolbar.compact { align-items: center; }
.v7-toolbar h2 { margin: 3px 0 0; font-family: Georgia, "Times New Roman", serif; font-size: 2rem; font-weight: 500; }
.v7-period { display: inline-flex; }
.v7-period button { cursor: pointer; }
.v7-kpi { display: grid; min-height: 112px; align-content: end; gap: 4px; padding: 16px; border: 1px solid var(--line); border-radius: 15px; background: #fff; }
.v7-kpi-label { color: var(--ink-faint); font-size: .68rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.v7-kpi strong { font-family: Georgia, "Times New Roman", serif; font-size: 1.55rem; font-weight: 500; }
.v7-kpi span { color: var(--ink-soft); font-size: .68rem; }
.v7-kpi.positive { background: var(--success-soft); }
.v7-kpi.negative { background: var(--accent-soft); }
.v7-table-heading { margin-top: 28px; }
.v7-table-wrap { overflow-x: auto; }
.v7-table { width: 100%; border-collapse: collapse; }
.v7-table th { padding: 10px 12px; border-bottom: 1px solid var(--line); color: var(--ink-faint); font-size: .65rem; letter-spacing: .06em; text-align: left; text-transform: uppercase; }
.v7-table td { padding: 12px; border-bottom: 1px solid var(--line); font-size: .75rem; vertical-align: middle; }
.v7-table td strong,.v7-table td small { display: block; }
.v7-table td small { margin-top: 3px; color: var(--ink-soft); font-size: .66rem; }
.v7-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.v7-table .income { color: var(--success); font-weight: 800; }
.v7-table .expense { color: var(--danger); font-weight: 800; }
.v7-category-list { display: grid; gap: 14px; margin-top: 14px; }
.v7-category-list > div { display: grid; grid-template-columns: minmax(0,1fr) 56px; gap: 7px 10px; align-items: center; }
.v7-category-list span { display: flex; justify-content: space-between; gap: 10px; }
.v7-category-list small { color: var(--ink-soft); }
.v7-category-list i { height: 6px; overflow: hidden; border-radius: 999px; background: var(--surface-2); }
.v7-category-list b { display: block; height: 100%; border-radius: inherit; background: var(--accent); }
.v7-category-list em { grid-column: 2; grid-row: 1 / 3; color: var(--ink-soft); font-size: .68rem; font-style: normal; text-align: right; }
.v7-ranking { display: grid; gap: 5px; }
.v7-ranking button { display: grid; grid-template-columns: minmax(0,1fr) 60px; gap: 8px; padding: 10px 0; border: 0; border-bottom: 1px solid var(--line); background: transparent; text-align: left; cursor: pointer; }
.v7-ranking button > span { display: grid; grid-template-columns: 22px 1fr; gap: 2px 8px; }
.v7-ranking em { display: grid; grid-row: 1 / 3; width: 22px; height: 22px; place-items: center; border-radius: 999px; background: var(--surface-2); font-size: .65rem; font-style: normal; }
.v7-ranking small { color: var(--ink-soft); font-size: .65rem; }
.v7-ranking i { grid-column: 1 / -1; height: 4px; border-radius: 999px; background: var(--surface-2); }
.v7-ranking b { display: block; height: 100%; border-radius: inherit; background: var(--brand); }
.v7-ranking > button > strong { grid-column: 2; grid-row: 1; text-align: right; }

.v7-task-list { display: grid; gap: 12px; }
.v7-task-card { display: grid; grid-template-columns: 48px minmax(0,1fr) 130px; gap: 16px; align-items: start; padding: 18px; border: 1px solid var(--line); border-radius: 17px; background: #fff; }
.v7-task-card.blocking { border-left: 4px solid var(--warning); }
.v7-task-icon { display: grid; width: 48px; height: 48px; place-items: center; border-radius: 14px; background: var(--brand-soft); color: var(--brand); }
.v7-task-icon svg { width: 22px; }
.v7-task-main h3 { margin: 8px 0 5px; }
.v7-task-main p { margin-bottom: 10px; color: var(--ink-soft); font-size: .78rem; line-height: 1.5; }
.v7-task-meta { display: flex; flex-wrap: wrap; gap: 7px 14px; color: var(--ink-soft); font-size: .67rem; }
.v7-task-meta span { display: inline-flex; align-items: center; gap: 5px; }
.v7-task-meta svg { width: 14px; color: var(--brand); }
.v7-task-cost { display: grid; justify-items: end; gap: 4px; text-align: right; }
.v7-task-cost small { color: var(--ink-soft); font-size: .65rem; }
.v7-task-cost strong { font-size: 1rem; }
.v7-task-cost .icon-button { margin-top: 8px; }

.v7-document-list { display: grid; }
.v7-document-row { display: grid; grid-template-columns: 46px minmax(0,1fr) minmax(120px,.5fr) 18px; gap: 13px; align-items: center; width: 100%; padding: 13px 0; border: 0; border-bottom: 1px solid var(--line); background: transparent; text-align: left; cursor: pointer; }
.v7-document-row:hover .v7-doc-copy strong { color: var(--brand); }
.v7-doc-icon { display: grid; width: 46px; height: 46px; place-items: center; border-radius: 13px; background: var(--brand-soft); color: var(--brand); }
.v7-doc-icon svg { width: 21px; }
.v7-doc-copy,.v7-doc-status { display: grid; gap: 4px; min-width: 0; }
.v7-doc-copy strong,.v7-doc-copy small,.v7-doc-status small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.v7-doc-copy small,.v7-doc-status small { color: var(--ink-soft); font-size: .67rem; }
.v7-doc-status { justify-items: start; }
.v7-document-row > svg { width: 16px; color: var(--ink-faint); }
.v7-contract-callout { position: relative; overflow: hidden; background: linear-gradient(145deg,var(--brand-strong),#173f34); color: #fff; }
.v7-contract-callout::after { position: absolute; right: -60px; bottom: -90px; width: 190px; height: 190px; border: 1px solid rgba(255,255,255,.12); border-radius: 999px; content: ""; }
.v7-contract-callout .v7-callout-icon { display: grid; width: 48px; height: 48px; place-items: center; margin-bottom: 28px; border: 1px solid rgba(255,255,255,.24); border-radius: 15px; }
.v7-contract-callout .v7-callout-icon svg { width: 23px; }
.v7-contract-callout p { color: rgba(255,255,255,.74); line-height: 1.55; }
.v7-contract-callout small { display: block; margin-top: 12px; color: rgba(255,255,255,.58); }
.v7-contract-callout .button { position: relative; z-index: 2; background: #fff; color: var(--brand-strong); }
.v7-document-preview { display: grid; justify-items: center; padding: 10px 0; text-align: center; }
.v7-document-preview > svg { width: 54px; height: 54px; margin-bottom: 14px; color: var(--brand); }
.v7-document-preview > p { color: var(--ink-soft); }
.v7-document-preview .v7-fact-grid { width: 100%; text-align: left; }

.v7-report-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.v7-report-card { display: grid; grid-template-columns: 150px minmax(0,1fr); overflow: hidden; border: 1px solid var(--line); border-radius: 19px; background: #fff; box-shadow: var(--shadow-sm); }
.v7-report-cover { display: grid; align-content: space-between; justify-items: start; padding: 20px; background: linear-gradient(145deg,var(--brand-strong),#1f6054); color: #fff; }
.v7-report-cover > svg { width: 44px; height: 44px; }
.v7-report-copy { padding: 20px; }
.v7-report-copy h3 { margin: 4px 0 7px; font-family: Georgia, "Times New Roman", serif; font-size: 1.45rem; }
.v7-report-copy p { color: var(--ink-soft); font-size: .76rem; line-height: 1.5; }
.v7-report-facts { display: grid; grid-template-columns: repeat(4,1fr); gap: 6px; margin: 14px 0; }
.v7-report-facts span { display: grid; gap: 3px; padding: 8px; border-radius: 10px; background: var(--surface-2); }
.v7-report-facts small { color: var(--ink-soft); font-size: .6rem; }
.v7-report-facts strong { font-size: .76rem; }

.v7-editor-header { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 18px; align-items: end; margin-bottom: 18px; }
.v7-editor-header .v7-back { grid-column: 1 / -1; }
.v7-editor-header h1 { margin: 4px 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2rem,4vw,3rem); font-weight: 500; }
.v7-editor-header p { margin: 0; color: var(--ink-soft); }
.v7-inspection-meta { margin-bottom: 16px; }
.v7-inspection-meta .grid + .grid,.v7-inspection-meta .grid + .field { margin-top: 12px; }
.v7-comparison-panel { overflow: hidden; }
.v7-comparison-toolbar { display: flex; align-items: end; justify-content: space-between; gap: 16px; padding: 22px; border-bottom: 1px solid var(--line); }
.v7-comparison-toolbar h2 { margin: 3px 0 0; }
.v7-comparison-table { width: 100%; min-width: 980px; border-collapse: collapse; }
.v7-comparison-table th { padding: 12px; border-bottom: 1px solid var(--line); background: var(--surface-2); color: var(--ink-faint); font-size: .66rem; text-align: left; text-transform: uppercase; }
.v7-comparison-table td { width: 27%; padding: 11px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); vertical-align: top; }
.v7-comparison-table td:first-child { width: 19%; }
.v7-comparison-table td:last-child { border-right: 0; }
.v7-comparison-table tr.changed { background: #fffaf1; }
.v7-comparison-table td > strong,.v7-comparison-table td > small { display: block; }
.v7-comparison-table td > small { margin-top: 3px; color: var(--ink-soft); }
.v7-comparison-table select,.v7-comparison-table textarea,.v7-comparison-table input { width: 100%; margin-bottom: 6px; padding: 8px 9px; border: 1px solid var(--line); border-radius: 9px; background: #fff; font-size: .71rem; }
.v7-comparison-table .text-button { font-size: .68rem; }
.v7-comparison-footer { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; padding: 16px 22px; }

.v7-key-handover-list { display: grid; gap: 8px; margin: 14px 0; }
.v7-key-handover-list > div { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 11px 13px; border: 1px solid var(--line); border-radius: 12px; }
.v7-key-handover-list span { display: grid; gap: 2px; }
.v7-key-handover-list small { color: var(--ink-soft); }
.v7-key-handover-list label { display: flex; align-items: center; gap: 7px; font-size: .72rem; }
.v7-key-handover-list input { width: 76px; }

.v7-funnel-detailed { display: grid; gap: 8px; margin: 18px 0; }
.v7-funnel-detailed > div { position: relative; display: grid; grid-template-columns: minmax(100px,1fr) 55px 48px; gap: 10px; align-items: center; min-height: 31px; overflow: hidden; padding: 0 9px; border-radius: 8px; background: var(--surface-2); }
.v7-funnel-detailed > div > span { position: absolute; inset: 0 auto 0 0; min-width: 8%; background: linear-gradient(90deg,rgba(28,85,92,.16),rgba(28,85,92,.03)); }
.v7-funnel-detailed strong,.v7-funnel-detailed em,.v7-funnel-detailed small { position: relative; z-index: 1; }
.v7-funnel-detailed strong { font-size: .72rem; }
.v7-funnel-detailed em { font-style: normal; font-weight: 800; text-align: right; }
.v7-funnel-detailed small { color: var(--ink-soft); text-align: right; }
.v7-history-timeline { position: relative; display: grid; gap: 0; }
.v7-history-timeline::before { position: absolute; top: 15px; bottom: 15px; left: 21px; width: 1px; background: var(--line); content: ""; }
.v7-history-timeline article { position: relative; display: grid; grid-template-columns: 44px minmax(0,1fr); gap: 14px; padding: 12px 0; }
.v7-history-timeline article > span { z-index: 1; display: grid; width: 44px; height: 44px; place-items: center; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--brand); }
.v7-history-timeline article > span svg { width: 18px; }
.v7-history-timeline time { color: var(--ink-faint); font-size: .66rem; }
.v7-history-timeline h3 { margin: 4px 0; font-size: .87rem; }
.v7-history-timeline p { margin: 0; color: var(--ink-soft); font-size: .72rem; }

.v7-tenant-hero { display: grid; grid-template-columns: 37% minmax(0,1fr); overflow: hidden; margin-bottom: 18px; border-radius: 24px; background: linear-gradient(145deg,var(--brand-strong),#173f34); color: #fff; box-shadow: var(--shadow-md); }
.v7-tenant-hero > span { min-height: 330px; background-position: center; background-size: cover; }
.v7-tenant-hero > div { align-self: center; padding: 34px; }
.v7-tenant-hero h2 { margin: 12px 0 5px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2rem,4vw,3rem); font-weight: 500; }
.v7-tenant-hero p { color: rgba(255,255,255,.72); }
.v7-tenant-quick { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 8px; margin-top: 26px; }
.v7-tenant-quick span { display: grid; gap: 5px; padding: 12px; border: 1px solid rgba(255,255,255,.15); border-radius: 13px; background: rgba(255,255,255,.05); }
.v7-tenant-quick small { color: rgba(255,255,255,.63); font-size: .65rem; }
.v7-tenant-quick strong { font-size: .8rem; }
.v7-tenant-task { display: grid; grid-template-columns: 35px 1fr; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.v7-tenant-task > span { display: grid; width: 35px; height: 35px; place-items: center; border-radius: 10px; background: var(--brand-soft); color: var(--brand); }
.v7-tenant-task svg { width: 16px; }
.v7-tenant-task div { display: grid; gap: 3px; }
.v7-tenant-task small { color: var(--ink-soft); font-size: .67rem; }

.v7-ops-timeline { display: grid; }
.v7-ops-timeline article { display: grid; grid-template-columns: 92px 36px minmax(0,1fr) auto; gap: 12px; align-items: center; padding: 13px 0; border-bottom: 1px solid var(--line); }
.v7-ops-timeline time { color: var(--ink-soft); font-size: .7rem; }
.v7-ops-timeline article > span:nth-child(2) { display: grid; width: 36px; height: 36px; place-items: center; border-radius: 11px; background: var(--surface-2); color: var(--brand); }
.v7-ops-timeline svg { width: 17px; }
.v7-ops-timeline article > div { display: grid; gap: 3px; }
.v7-ops-timeline small { color: var(--ink-soft); font-size: .68rem; }

.v7-editor-header.contract { position: relative; }
.v7-contract-progress { height: 5px; margin: -5px 0 18px; overflow: hidden; border-radius: 999px; background: var(--surface-3); }
.v7-contract-progress span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg,var(--brand),var(--success)); transition: width .25s ease; }
.v7-contract-layout { display: grid; grid-template-columns: 228px minmax(0,1fr) 286px; gap: 18px; align-items: start; }
.v7-contract-steps { position: sticky; top: calc(var(--topbar) + 18px); display: grid; gap: 4px; padding: 7px; border: 1px solid var(--line); border-radius: 17px; background: rgba(255,255,255,.9); box-shadow: var(--shadow-sm); }
.v7-contract-steps button { display: grid; grid-template-columns: 30px minmax(0,1fr) 15px; gap: 9px; align-items: center; padding: 10px; border: 0; border-radius: 11px; background: transparent; color: var(--ink-soft); text-align: left; cursor: pointer; }
.v7-contract-steps button.active { background: var(--brand); color: #fff; }
.v7-contract-steps button > span { display: grid; width: 30px; height: 30px; place-items: center; border: 1px solid currentColor; border-radius: 999px; font-size: .7rem; }
.v7-contract-steps strong { font-size: .73rem; }
.v7-contract-steps svg { width: 14px; }
.v7-contract-layout > main { min-width: 0; }
.v7-contract-layout > aside { position: sticky; top: calc(var(--topbar) + 18px); display: grid; gap: 14px; }
.v7-contract-section { padding: 26px; border: 1px solid var(--line); border-radius: 20px; background: rgba(255,255,255,.96); box-shadow: var(--shadow-sm); }
.v7-contract-section-title { display: flex; gap: 14px; align-items: center; margin-bottom: 22px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.v7-contract-section-title > span { display: grid; min-width: 52px; height: 52px; place-items: center; border-radius: 15px; background: var(--brand); color: #fff; font-family: Georgia,serif; font-size: 1rem; }
.v7-contract-section-title h2 { margin: 0 0 3px; font-family: Georgia,"Times New Roman",serif; font-size: 1.8rem; font-weight: 500; }
.v7-contract-section-title p { margin: 0; color: var(--ink-soft); font-size: .75rem; }
.v7-contract-section .grid { margin-bottom: 13px; }
.v7-contract-section .grid.four { grid-template-columns: repeat(4,minmax(0,1fr)); }
.v7-contract-section .field label em { color: var(--danger); font-style: normal; }
.v7-contract-subhead { display: flex; align-items: center; gap: 10px; margin: 24px 0 12px; }
.v7-contract-subhead > span { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 10px; background: var(--brand-soft); color: var(--brand); }
.v7-contract-subhead svg { width: 17px; }
.v7-contract-subhead div { display: grid; gap: 2px; }
.v7-contract-subhead small { color: var(--ink-soft); font-size: .66rem; }
.v7-check-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; margin-bottom: 13px; }
.v7-check-field { position: relative; display: grid; grid-template-columns: 28px minmax(0,1fr); gap: 2px 9px; align-items: center; min-height: 62px; padding: 10px; border: 1px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer; }
.v7-check-field input { position: absolute; opacity: 0; }
.v7-check-field > span { display: grid; grid-row: 1 / 3; width: 28px; height: 28px; place-items: center; border: 1px solid var(--line); border-radius: 8px; color: transparent; }
.v7-check-field input:checked + span { border-color: var(--brand); background: var(--brand); color: #fff; }
.v7-check-field svg { width: 15px; }
.v7-check-field strong { font-size: .72rem; }
.v7-check-field small { color: var(--ink-soft); font-size: .61rem; line-height: 1.3; }
.v7-contract-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; }
.v7-contract-nav > span { color: var(--ink-soft); font-size: .68rem; text-align: center; }
.v7-contract-summary h3 { margin: 6px 0 3px; font-family: Georgia,serif; font-size: 1.35rem; }
.v7-contract-summary p { color: var(--ink-soft); font-size: .72rem; }
.v7-signature-cards { margin: 16px 0; }
.v7-signature-cards article { display: grid; grid-template-columns: 48px minmax(0,1fr); gap: 12px; padding: 16px; border: 1px solid var(--line); border-radius: 16px; }
.v7-signature-cards article.signed { border-color: rgba(46,118,88,.35); background: var(--success-soft); }
.v7-signature-cards article > span { display: grid; width: 48px; height: 48px; place-items: center; border-radius: 14px; background: var(--surface-2); color: var(--brand); }
.v7-signature-cards article > span svg { width: 22px; }
.v7-signature-cards h3 { margin: 3px 0; }
.v7-signature-cards p { margin: 0; color: var(--ink-soft); font-size: .7rem; }
.v7-signature-cards .button { grid-column: 1 / -1; }
.v7-pdf-card { display: grid; grid-template-columns: 92px minmax(0,1fr) auto; gap: 18px; align-items: center; margin-top: 22px; padding: 20px; border: 1px solid var(--line); border-radius: 18px; background: linear-gradient(135deg,#f9faf7,#eef3ef); }
.v7-pdf-cover { display: grid; width: 78px; height: 104px; place-items: center; border-radius: 8px; background: #fff; color: var(--danger); font-family: Georgia,serif; font-size: 1.4rem; box-shadow: 0 8px 22px rgba(20,42,48,.12); }
.v7-pdf-cover small { display: block; color: var(--ink-soft); font-family: Inter,sans-serif; font-size: .58rem; }
.v7-pdf-card h3 { margin: 3px 0 5px; }
.v7-pdf-card p { color: var(--ink-soft); font-size: .73rem; line-height: 1.5; }
.v7-pdf-actions { display: grid; gap: 8px; }

.v7-signature-box { display: grid; gap: 14px; }
.v7-consent { display: flex; gap: 9px; align-items: flex-start; padding: 11px; border-radius: 12px; background: var(--surface-2); color: var(--ink-soft); font-size: .72rem; }
.v7-canvas-wrap { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.v7-canvas-wrap canvas { display: block; width: 100%; height: 210px; touch-action: none; cursor: crosshair; }
.v7-canvas-wrap > span { position: absolute; right: 14px; bottom: 10px; color: var(--ink-faint); font-size: .64rem; pointer-events: none; }
.v7-custom-edit-row { display: grid; grid-template-columns: 1fr 1fr 40px; gap: 8px; margin-bottom: 8px; }

.v7-empty-inline,.empty-inline { padding: 14px; border: 1px dashed var(--line); border-radius: 12px; color: var(--ink-soft); font-size: .75rem; text-align: center; }

@media (max-width: 1240px) {
  .v7-command-strip { grid-template-columns: repeat(3,1fr); }
  .v7-command-strip button:nth-child(3) { border-right: 0; }
  .v7-command-strip button:nth-child(n+4) { border-top: 1px solid var(--line); }
  .v7-contract-layout { grid-template-columns: 205px minmax(0,1fr); }
  .v7-contract-layout > aside { position: static; grid-column: 1 / -1; grid-template-columns: 1fr 1fr; }
  .v7-property-copy { grid-template-columns: minmax(150px,.8fr) minmax(0,1.5fr); }
  .v7-report-grid { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .v7-command-strip { grid-template-columns: repeat(2,1fr); }
  .v7-command-strip button:nth-child(2n) { border-right: 0; }
  .v7-command-strip button:nth-child(3) { border-right: 1px solid var(--line); }
  .v7-command-strip button:nth-child(n+3) { border-top: 1px solid var(--line); }
  .v7-property-record { grid-template-columns: 94px minmax(0,1fr) 28px; }
  .v7-property-copy { grid-template-columns: 1fr; gap: 10px; padding: 14px; }
  .v7-record-grid { grid-template-columns: 1fr 1fr; }
  .v7-workspace-hero { grid-template-columns: 1fr; align-items: start; }
  .v7-workspace-title { align-items: flex-start; }
  .v7-workspace-photo { width: 76px; height: 76px; }
  .v7-workspace-hero .page-actions { justify-self: start; }
  .v7-fact-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .v7-lifecycle { grid-template-columns: 1fr; gap: 7px; }
  .v7-lifecycle > div { grid-template-columns: 32px 1fr; padding: 0; }
  .v7-lifecycle > div::before { top: 31px; bottom: -8px; left: 15px; width: 2px; height: auto; }
  .v7-lifecycle > div strong { grid-column: 2; grid-row: 1; margin: 4px 0 0; }
  .v7-lifecycle > div small { grid-column: 2; }
  .v7-notice-grid { grid-template-columns: repeat(2,1fr); }
  .v7-tenancy-facts { grid-template-columns: repeat(2,1fr); }
  .v7-task-card { grid-template-columns: 42px minmax(0,1fr); }
  .v7-task-cost { grid-column: 2; grid-template-columns: repeat(3,auto); justify-content: start; justify-items: start; align-items: center; gap: 10px; text-align: left; }
  .v7-document-row { grid-template-columns: 42px minmax(0,1fr) 18px; }
  .v7-doc-status { grid-column: 2; }
  .v7-document-row > svg { grid-column: 3; grid-row: 1 / 3; }
  .v7-report-card { grid-template-columns: 110px minmax(0,1fr); }
  .v7-editor-header { grid-template-columns: 1fr; align-items: start; }
  .v7-contract-layout { grid-template-columns: 1fr; }
  .v7-contract-steps { position: static; display: flex; overflow-x: auto; }
  .v7-contract-steps button { flex: 0 0 auto; min-width: 150px; }
  .v7-contract-layout > aside { grid-template-columns: 1fr; }
  .v7-contract-section .grid.four { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .v7-check-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .v7-pdf-card { grid-template-columns: 78px minmax(0,1fr); }
  .v7-pdf-actions { grid-column: 1 / -1; grid-template-columns: 1fr 1fr; }
  .v7-tenant-hero { grid-template-columns: 1fr; }
  .v7-tenant-hero > span { min-height: 220px; }
  .v7-tenant-quick { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 620px) {
  .v7-command-strip { grid-template-columns: 1fr 1fr; border-radius: 17px; }
  .v7-command-strip button { min-height: 105px; padding: 17px; }
  .v7-command-strip button > span { top: 12px; right: 12px; width: 32px; height: 32px; }
  .v7-command-strip strong { font-size: 1.35rem; }
  .v7-property-record { grid-template-columns: 82px minmax(0,1fr) 24px; }
  .v7-property-image { min-height: 134px; }
  .v7-record-grid { grid-template-columns: 1fr; gap: 5px; }
  .v7-record-grid > span:nth-child(n+3) { display: none; }
  .v7-workspace-title { flex-direction: column; }
  .v7-workspace-title h1 { font-size: 2rem; }
  .v7-workspace-tabs button span { display: none; }
  .v7-workspace-tabs button { padding: 10px; }
  .v7-workspace-tabs em { position: absolute; transform: translate(10px,-10px); }
  .v7-fact-grid,.v7-fact-grid.compact { grid-template-columns: 1fr 1fr; }
  .v7-notice-grid { grid-template-columns: 1fr 1fr; }
  .v7-toolbar { align-items: stretch; flex-direction: column; }
  .v7-toolbar .page-actions { justify-content: flex-start; }
  .v7-period { width: 100%; overflow-x: auto; }
  .v7-chart { gap: 4px; }
  .v7-chart-col small { font-size: .55rem; }
  .v7-tenancy-facts { grid-template-columns: 1fr 1fr; }
  .v7-report-card { grid-template-columns: 1fr; }
  .v7-report-cover { min-height: 92px; grid-template-columns: 1fr auto; align-items: center; }
  .v7-report-facts { grid-template-columns: 1fr 1fr; }
  .v7-task-card { grid-template-columns: 36px minmax(0,1fr); padding: 13px; }
  .v7-task-icon { width: 36px; height: 36px; }
  .v7-task-cost { grid-template-columns: 1fr 1fr; }
  .v7-ops-timeline article { grid-template-columns: 72px 32px minmax(0,1fr); }
  .v7-ops-timeline article > .badge { grid-column: 3; justify-self: start; }
  .v7-contract-section { padding: 18px; }
  .v7-contract-section-title { align-items: flex-start; }
  .v7-contract-section-title > span { min-width: 44px; height: 44px; }
  .v7-contract-section .grid.four,.v7-check-grid { grid-template-columns: 1fr; }
  .v7-contract-nav > span { display: none; }
  .v7-pdf-card { grid-template-columns: 1fr; }
  .v7-pdf-actions { grid-template-columns: 1fr; }
  .v7-tenant-hero > div { padding: 22px; }
  .v7-tenant-quick { grid-template-columns: 1fr 1fr; }
  .v7-custom-edit-row { grid-template-columns: 1fr 40px; }
  .v7-custom-edit-row input:nth-child(2) { grid-column: 1; }
  .v7-custom-edit-row button { grid-column: 2; grid-row: 1 / 3; }
}

@media print {
  .topbar,.sidebar,.mobile-nav,.v7-editor-header .page-actions,.v7-back,.v7-workspace-tabs,.v7-comparison-footer,.toast-root { display: none !important; }
  .main-content { margin: 0 !important; padding: 0 !important; }
  .v7-comparison-panel,.v7-inspection-meta { border: 0 !important; box-shadow: none !important; }
  .v7-comparison-table { min-width: 0; font-size: 8pt; }
  .v7-comparison-table select,.v7-comparison-table textarea,.v7-comparison-table input { border: 0; padding: 0; appearance: none; }
  body { background: #fff; }
}

.v7-signature-divider { display:flex; align-items:center; gap:14px; color:var(--muted); font-size:12px; font-weight:700; text-transform:uppercase; letter-spacing:.12em; margin:2px 0; }
.v7-signature-divider::before,.v7-signature-divider::after { content:""; height:1px; flex:1; background:var(--line); }

.v7-fact-list { display:grid; gap:0; margin-top:14px; }
.v7-fact-list > div { display:grid; grid-template-columns:minmax(0,1fr) minmax(92px,auto); gap:16px; align-items:start; padding:10px 0; border-bottom:1px solid var(--line); }
.v7-fact-list > div:last-child { border-bottom:0; padding-bottom:0; }
.v7-fact-list span { color:var(--ink-soft); font-size:.75rem; line-height:1.35; }
.v7-fact-list strong { color:var(--ink); font-size:.78rem; line-height:1.35; text-align:right; overflow-wrap:anywhere; }

/* GoLeje V8 · underskrift, kommunikation og serviceøkosystem */
.role-switcher-four .role-button { padding-inline: 10px; }
.role-switcher-four .role-button span { max-width: 92px; white-space: nowrap; }

.v8-lifecycle-rail {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: var(--content-max);
  margin: 0 auto 18px;
}
.v8-lifecycle-rail > button,
.v8-tenant-command > button {
  display: grid;
  grid-template-columns: 42px minmax(0,1fr) 20px;
  gap: 12px;
  align-items: center;
  min-height: 78px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,.9);
  box-shadow: var(--shadow-sm);
  text-align: left;
  cursor: pointer;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.v8-lifecycle-rail > button:hover,
.v8-tenant-command > button:hover { transform: translateY(-2px); border-color: rgba(28,85,92,.42); box-shadow: var(--shadow-md); }
.v8-lifecycle-rail > button > span:first-child,
.v8-tenant-command > button > svg:first-child {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 13px;
  background: var(--brand-soft);
  color: var(--brand);
}
.v8-lifecycle-rail strong,.v8-lifecycle-rail small,.v8-tenant-command strong,.v8-tenant-command small { display:block; }
.v8-lifecycle-rail strong,.v8-tenant-command strong { font-size:.9rem; }
.v8-lifecycle-rail small,.v8-tenant-command small { margin-top:3px; color:var(--ink-faint); font-size:.72rem; }
.v8-lifecycle-rail > button > svg:last-child,.v8-tenant-command > button > svg:last-child { color:var(--ink-faint); }
.v8-tenant-command { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; margin-bottom:18px; }

.v8-signature-stats { margin-bottom: 16px; }
.v8-filter-tabs {
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  margin: 0 0 14px;
  padding: 5px;
  width:max-content;
  max-width:100%;
  border:1px solid var(--line);
  border-radius:14px;
  background:rgba(255,255,255,.72);
}
.v8-filter-tabs button { border:0; border-radius:10px; background:transparent; padding:8px 12px; color:var(--ink-soft); font-size:.76rem; font-weight:750; cursor:pointer; }
.v8-filter-tabs button.active { background:var(--brand); color:#fff; box-shadow:0 6px 16px rgba(28,85,92,.18); }
.v8-signature-list,.v8-card-list { display:grid; gap:10px; }
.v8-signature-card {
  display:grid;
  grid-template-columns:46px minmax(0,1fr) auto;
  gap:14px;
  align-items:center;
  width:100%;
  padding:14px;
  border:1px solid var(--line);
  border-radius:15px;
  background:#fff;
  text-align:left;
  cursor:pointer;
  transition:.18s ease;
}
.v8-signature-card:hover { border-color:rgba(28,85,92,.42); box-shadow:var(--shadow-sm); transform:translateY(-1px); }
.v8-signature-card.needs-action { border-left:4px solid var(--accent); }
.v8-signature-card-icon,.v8-stream-icon {
  display:grid;
  width:44px;
  height:44px;
  place-items:center;
  border-radius:13px;
  background:var(--surface-2);
  color:var(--brand);
}
.v8-signature-card-icon.warning,.v8-stream-icon.warning { background:var(--warning-soft); color:var(--warning); }
.v8-signature-card-icon.success,.v8-stream-icon.success { background:var(--success-soft); color:var(--success); }
.v8-signature-card-icon.danger,.v8-stream-icon.danger { background:var(--danger-soft); color:var(--danger); }
.v8-signature-card-icon.blue,.v8-stream-icon.blue { background:var(--info-soft); color:var(--info); }
.v8-signature-card-copy { min-width:0; }
.v8-signature-card-copy > strong,.v8-signature-card-copy > small { display:block; }
.v8-signature-card-copy > strong { margin-top:7px; font-size:.93rem; }
.v8-signature-card-copy > small { margin-top:4px; color:var(--ink-faint); }
.v8-card-topline { display:flex; gap:10px; align-items:center; justify-content:space-between; }
.v8-card-topline time { color:var(--ink-faint); font-size:.7rem; }
.v8-signature-card-action { display:flex; gap:6px; align-items:center; color:var(--brand); font-size:.75rem; font-weight:800; }
.v8-signature-detail-grid { align-items:start; }
.v8-document-hero,.v8-sign-document-summary { display:flex; gap:14px; align-items:flex-start; }
.v8-document-icon,.v8-sign-document-summary > span {
  display:grid;
  flex:0 0 auto;
  width:48px;
  height:48px;
  place-items:center;
  border-radius:15px;
  background:var(--brand-soft);
  color:var(--brand);
}
.v8-document-hero h2,.v8-sign-document-summary h2 { margin:8px 0 4px; }
.v8-document-hero p,.v8-sign-document-summary p { margin:0; color:var(--ink-soft); }
.v8-document-facts { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:1px; overflow:hidden; margin:18px 0; border:1px solid var(--line); border-radius:14px; background:var(--line); }
.v8-document-facts > div { padding:12px; background:#fff; }
.v8-document-facts span,.v8-document-facts strong { display:block; }
.v8-document-facts span { color:var(--ink-faint); font-size:.68rem; text-transform:uppercase; letter-spacing:.08em; }
.v8-document-facts strong { margin-top:5px; font-size:.8rem; overflow-wrap:anywhere; }
.v8-document-facts.compact { grid-template-columns:repeat(2,minmax(0,1fr)); }
.v8-section-gap { margin-top:22px; }
.v8-signature-progress { display:grid; gap:8px; }
.v8-signer-step { display:flex; gap:12px; align-items:center; padding:12px; border:1px solid var(--line); border-radius:13px; background:var(--surface); }
.v8-step-index { display:grid; width:30px; height:30px; place-items:center; border-radius:50%; background:var(--surface-3); color:var(--ink-soft); font-weight:800; }
.v8-signer-step.signed .v8-step-index { background:var(--success); color:#fff; }
.v8-signer-step.rejected .v8-step-index { background:var(--danger); color:#fff; }
.v8-signer-step strong,.v8-signer-step small { display:block; }
.v8-signer-step small { margin-top:2px; color:var(--ink-faint); font-size:.7rem; }
.v8-sign-callout { display:grid; grid-template-columns:42px minmax(0,1fr) auto; gap:14px; align-items:center; margin-top:18px; padding:14px; border:1px solid rgba(231,132,98,.45); border-radius:15px; background:var(--accent-soft); }
.v8-sign-callout > span { display:grid; width:42px; height:42px; place-items:center; border-radius:12px; background:#fff; color:var(--accent); }
.v8-sign-callout p { margin:3px 0 0; color:var(--ink-soft); font-size:.78rem; }
.v8-identity-card { display:flex; gap:12px; align-items:center; padding:13px; margin:12px 0; border:1px solid var(--line); border-radius:14px; background:var(--surface-2); }
.v8-identity-card > span { display:grid; width:40px; height:40px; place-items:center; border-radius:12px; background:#fff; color:var(--brand); }
.v8-identity-card strong,.v8-identity-card small { display:block; }
.v8-identity-card small { margin-top:2px; color:var(--ink-faint); font-size:.7rem; }
.v8-audit-list,.v8-timeline { display:grid; gap:10px; }
.v8-audit-list > div,.v8-timeline > div { display:grid; grid-template-columns:34px minmax(0,1fr); gap:10px; }
.v8-audit-list > div > span,.v8-timeline > div > span { display:grid; width:32px; height:32px; place-items:center; border-radius:10px; background:var(--surface-2); color:var(--brand); }
.v8-audit-list strong,.v8-audit-list small,.v8-audit-list p,.v8-timeline strong,.v8-timeline small,.v8-timeline p { display:block; margin:0; }
.v8-audit-list small,.v8-timeline small { margin-top:2px; color:var(--ink-faint); font-size:.68rem; }
.v8-audit-list p,.v8-timeline p { margin-top:4px; color:var(--ink-soft); font-size:.76rem; }

.v8-sign-modal { display:grid; gap:16px; }
.v8-sign-methods { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
.v8-method-option input { position:absolute; opacity:0; pointer-events:none; }
.v8-method-option > span { display:flex; gap:10px; align-items:center; padding:13px; border:1px solid var(--line); border-radius:14px; background:#fff; cursor:pointer; }
.v8-method-option:has(input:checked) > span { border-color:var(--brand); background:var(--brand-soft); color:var(--brand); }
.v8-method-option strong,.v8-method-option small { display:block; }
.v8-method-option small { color:var(--ink-faint); font-size:.68rem; }
.v8-canvas-wrap { position:relative; padding:10px; border:1px dashed #9eb4ad; border-radius:15px; background:#fff; }
.v8-canvas-wrap canvas { display:block; width:100%; height:180px; border-radius:10px; background:#fff; touch-action:none; cursor:crosshair; }
.v8-canvas-wrap > span { position:absolute; right:18px; bottom:14px; color:var(--ink-faint); font-size:.67rem; pointer-events:none; }
.v8-secure-confirm { display:grid; grid-template-columns:42px minmax(0,1fr) auto; gap:12px; align-items:center; padding:13px; border:1px solid var(--line); border-radius:14px; background:var(--surface-2); }
.v8-secure-confirm > span:first-child { display:grid; width:40px; height:40px; place-items:center; border-radius:12px; background:#fff; color:var(--brand); }
.v8-secure-confirm.confirmed { border-color:rgba(46,118,88,.35); background:var(--success-soft); }
.v8-secure-confirm strong,.v8-secure-confirm small { display:block; }
.v8-secure-confirm small { margin-top:2px; color:var(--ink-soft); font-size:.7rem; }
.split-actions { display:flex; gap:12px; align-items:center; justify-content:space-between; }

.v8-messages-layout { display:grid; grid-template-columns:minmax(250px,330px) minmax(0,1fr); gap:14px; min-height:620px; }
.v8-conversation-list { overflow:hidden; }
.v8-conversation-head { padding:18px 18px 12px; border-bottom:1px solid var(--line); }
.v8-conversation-head h2 { margin:5px 0 0; }
.v8-conversation-row { display:grid; grid-template-columns:38px minmax(0,1fr) auto; gap:10px; width:100%; padding:13px 16px; border:0; border-bottom:1px solid var(--line); background:#fff; text-align:left; cursor:pointer; }
.v8-conversation-row:hover,.v8-conversation-row.active { background:var(--surface-2); }
.v8-conversation-row.active { box-shadow:inset 3px 0 var(--brand); }
.v8-conversation-icon { display:grid; width:36px; height:36px; place-items:center; border-radius:11px; background:var(--brand-soft); color:var(--brand); }
.v8-conversation-row strong,.v8-conversation-row small,.v8-conversation-row p { display:block; margin:0; }
.v8-conversation-row small,.v8-conversation-row p,.v8-conversation-row time { color:var(--ink-faint); font-size:.68rem; }
.v8-conversation-row p { margin-top:4px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.v8-thread-panel { display:grid; grid-template-rows:auto minmax(0,1fr) auto; overflow:hidden; }
.v8-thread-header { display:flex; justify-content:space-between; gap:16px; align-items:flex-start; padding:18px; border-bottom:1px solid var(--line); }
.v8-thread-header h2 { margin:4px 0; }
.v8-thread-header p { margin:0; color:var(--ink-faint); }
.v8-thread-actions { display:flex; gap:8px; }
.v8-thread-body { display:grid; align-content:start; gap:12px; padding:20px; overflow:auto; background:linear-gradient(180deg,#f9faf8,#f4f6f3); }
.v8-thread-message { display:grid; grid-template-columns:34px minmax(0,680px); gap:10px; max-width:85%; }
.v8-thread-message.own { justify-self:end; grid-template-columns:minmax(0,680px) 34px; }
.v8-thread-message.own .v8-message-avatar { grid-column:2; }
.v8-thread-message.own .v8-message-content { grid-column:1; grid-row:1; background:var(--brand); color:#fff; }
.v8-message-avatar { display:grid; width:32px; height:32px; place-items:center; border-radius:10px; background:var(--surface-3); color:var(--brand); font-size:.7rem; font-weight:800; }
.v8-message-content { padding:11px 13px; border:1px solid var(--line); border-radius:14px; background:#fff; box-shadow:0 3px 10px rgba(19,42,48,.04); }
.v8-message-content header { display:flex; gap:9px; align-items:center; flex-wrap:wrap; }
.v8-message-content header span,.v8-message-content header time { font-size:.65rem; opacity:.72; }
.v8-message-content p { margin:7px 0 0; white-space:pre-wrap; line-height:1.5; }
.v8-message-composer { padding:14px; border-top:1px solid var(--line); background:#fff; }
.v8-message-composer textarea { width:100%; }
.v8-message-composer > div { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-top:8px; }

.v8-maintenance-toolbar { display:flex; justify-content:space-between; gap:12px; align-items:center; margin-bottom:14px; }
.v8-maintenance-tabs { display:flex; gap:6px; flex-wrap:wrap; }
.v8-maintenance-tabs button { display:flex; gap:7px; align-items:center; padding:9px 12px; border:1px solid var(--line); border-radius:11px; background:#fff; color:var(--ink-soft); cursor:pointer; font-weight:750; font-size:.76rem; }
.v8-maintenance-tabs button.active { background:var(--brand); border-color:var(--brand); color:#fff; }
.v8-issue-card,.v8-workorder-card,.v8-partner-card,.v8-service-card {
  display:grid;
  grid-template-columns:44px minmax(0,1fr) auto;
  gap:13px;
  align-items:center;
  padding:14px;
  border:1px solid var(--line);
  border-radius:15px;
  background:#fff;
}
.v8-issue-card > span:first-child,.v8-workorder-card > span:first-child { display:grid; width:42px; height:42px; place-items:center; border-radius:12px; background:var(--surface-2); color:var(--brand); }
.v8-issue-card h3,.v8-workorder-card h3,.v8-partner-card h3,.v8-service-card h3 { margin:5px 0 3px; font-size:.9rem; }
.v8-issue-card p,.v8-workorder-card p,.v8-partner-card p,.v8-service-card p { margin:0; color:var(--ink-soft); font-size:.75rem; }
.v8-card-actions { display:flex; gap:7px; align-items:center; flex-wrap:wrap; justify-content:flex-end; }
.v8-partner-grid,.v8-temporary-grid,.v8-customer-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; }
.v8-partner-card { grid-template-columns:54px minmax(0,1fr); align-items:start; }
.v8-partner-logo { display:grid; width:48px; height:48px; place-items:center; border-radius:14px; background:var(--brand); color:#fff; font-size:.72rem; font-weight:850; letter-spacing:.03em; }
.v8-partner-logo.large { width:64px; height:64px; border-radius:18px; }
.v8-partner-metrics { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; margin:13px 0; }
.v8-partner-metrics > div { padding:9px; border-radius:11px; background:var(--surface-2); }
.v8-partner-metrics strong,.v8-partner-metrics span { display:block; }
.v8-partner-metrics span { margin-top:2px; color:var(--ink-faint); font-size:.63rem; }
.v8-check-list { display:grid; gap:8px; margin-top:12px; }
.v8-check-list span { display:flex; gap:8px; align-items:flex-start; color:var(--ink-soft); font-size:.76rem; }
.v8-check-list svg { flex:0 0 auto; color:var(--success); }
.v8-customer-card { overflow:hidden; }
.v8-customer-image { height:150px; background-size:cover; background-position:center; }
.v8-customer-copy { padding:16px; }
.v8-customer-copy h3 { margin:9px 0 5px; }

.v8-period-summary { display:flex; justify-content:space-between; align-items:center; gap:22px; padding:18px 20px; margin-bottom:15px; }
.v8-period-summary h2 { margin:5px 0; }
.v8-period-summary p { margin:0; color:var(--ink-soft); }
.v8-period-line { position:relative; display:block; width:min(360px,42%); height:8px; border-radius:99px; background:var(--surface-3); }
.v8-period-line::before,.v8-period-line::after { content:""; position:absolute; top:50%; width:16px; height:16px; border:4px solid #fff; border-radius:50%; background:var(--brand); box-shadow:0 0 0 1px var(--line); transform:translateY(-50%); }
.v8-period-line::before { left:0; }.v8-period-line::after { right:0; }
.v8-temporary-card { overflow:hidden; border:1px solid var(--line); border-radius:var(--radius-lg); background:#fff; box-shadow:var(--shadow-sm); }
.v8-temporary-image { display:flex; align-items:flex-start; justify-content:flex-end; min-height:220px; padding:14px; background-size:cover; background-position:center; }
.v8-temporary-copy { padding:18px; }
.v8-temporary-copy h2 { margin:6px 0; }
.v8-temporary-copy > p { color:var(--ink-soft); }
.v8-period-bars { height:6px; margin:12px 0 16px; border-radius:99px; background:var(--surface-3); overflow:hidden; }
.v8-period-bars span { display:block; height:100%; border-radius:inherit; background:linear-gradient(90deg,var(--brand),#4b8b7f); }
.v8-option-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
.v8-option-grid label { display:flex; gap:10px; align-items:flex-start; padding:12px; border:1px solid var(--line); border-radius:13px; background:var(--surface-2); }
.v8-option-grid strong,.v8-option-grid small { display:block; }
.v8-option-grid small { margin-top:3px; color:var(--ink-faint); font-size:.68rem; }
.v8-period-card { margin-bottom:16px; }
.v8-period-card-body { padding:16px; border-radius:14px; background:linear-gradient(135deg,var(--surface-2),#fff); }
.v8-period-card-body h3 { margin:10px 0 5px; }
.v8-period-card-body p { margin:0; color:var(--ink-soft); }

.v8-admin-stream,.v8-partner-rank { display:grid; }
.v8-admin-stream > button,.v8-partner-rank > button { display:grid; grid-template-columns:44px minmax(0,1fr) auto 18px; gap:12px; align-items:center; width:100%; padding:12px 0; border:0; border-bottom:1px solid var(--line); background:transparent; text-align:left; cursor:pointer; }
.v8-admin-stream > button:last-child,.v8-partner-rank > button:last-child { border-bottom:0; }
.v8-admin-stream strong,.v8-admin-stream small,.v8-partner-rank strong,.v8-partner-rank small { display:block; }
.v8-admin-stream small,.v8-partner-rank small { margin-top:3px; color:var(--ink-faint); font-size:.7rem; }
.v8-admin-stream em,.v8-partner-rank em { font-style:normal; color:var(--brand); font-size:.72rem; font-weight:800; }
.v8-partner-rank > button { grid-template-columns:44px minmax(0,1fr) auto; }
.v8-empty-inline { display:flex; gap:12px; align-items:center; padding:22px 0; color:var(--ink-soft); }
.v8-empty-inline svg { color:var(--success); }
.v8-empty-inline strong,.v8-empty-inline small { display:block; }
.v8-empty-inline small { margin-top:3px; color:var(--ink-faint); }
.v8-contract-sign-panel { margin-top:18px; }
.v8-contract-sign-layout { display:flex; justify-content:space-between; gap:16px; align-items:center; padding:14px; border:1px solid var(--line); border-radius:14px; background:var(--surface-2); }
.v8-contract-sign-layout > div:first-child { display:flex; gap:12px; align-items:center; }
.v8-contract-sign-layout p { margin:3px 0 0; color:var(--ink-faint); font-size:.75rem; }

@media (max-width: 1180px) {
  .role-switcher-four .role-button span { display:none; }
  .v8-document-facts { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .v8-lifecycle-rail,.v8-tenant-command { grid-template-columns:1fr; }
}
@media (max-width: 860px) {
  .v8-messages-layout { grid-template-columns:1fr; min-height:0; }
  .v8-conversation-list { max-height:290px; }
  .v8-thread-panel { min-height:520px; }
  .v8-partner-grid,.v8-temporary-grid,.v8-customer-grid { grid-template-columns:1fr; }
  .v8-sign-callout,.v8-secure-confirm { grid-template-columns:42px minmax(0,1fr); }
  .v8-sign-callout .button,.v8-secure-confirm .button,.v8-secure-confirm .badge { grid-column:1 / -1; }
  .v8-period-summary { align-items:flex-start; flex-direction:column; }
  .v8-period-line { width:100%; }
  .v8-option-grid { grid-template-columns:1fr; }
}
@media (max-width: 620px) {
  .v8-signature-card { grid-template-columns:40px minmax(0,1fr); }
  .v8-signature-card-action { grid-column:2; }
  .v8-document-facts,.v8-document-facts.compact { grid-template-columns:1fr; }
  .v8-sign-methods { grid-template-columns:1fr; }
  .v8-canvas-wrap canvas { height:145px; }
  .v8-thread-message { max-width:96%; }
  .v8-message-composer > div,.v8-contract-sign-layout { align-items:stretch; flex-direction:column; }
  .v8-card-actions { justify-content:flex-start; }
}

/* V8 component alignment fixes */
.v8-lifecycle-rail > button,
.v8-tenant-command > button {
  grid-template-columns: 42px minmax(0,1fr) 18px;
  grid-template-rows: auto auto;
}
.v8-lifecycle-rail > button > :first-child,
.v8-tenant-command > button > :first-child { grid-column:1; grid-row:1 / 3; }
.v8-lifecycle-rail > button > strong,
.v8-tenant-command > button > span > strong { grid-column:2; grid-row:1; align-self:end; }
.v8-lifecycle-rail > button > small { grid-column:2; grid-row:2; align-self:start; }
.v8-lifecycle-rail > button > :last-child,
.v8-tenant-command > button > :last-child { grid-column:3; grid-row:1 / 3; align-self:center; }
.v8-tenant-command > button > span { grid-column:2; grid-row:1 / 3; }

button.stat-card.interactive {
  display:grid;
  grid-template-columns:44px minmax(0,1fr) 22px;
  grid-template-rows:auto;
  gap:12px;
  align-items:center;
  width:100%;
  min-height:112px;
  padding:18px;
  border:0;
  border-right:1px solid var(--line);
  border-radius:0;
  background:#fff;
  text-align:left;
  cursor:pointer;
}
.grid.stats > button.stat-card.interactive:first-child { border-radius:var(--radius) 0 0 var(--radius); }
.grid.stats > button.stat-card.interactive:last-child { border-right:0; border-radius:0 var(--radius) var(--radius) 0; }
button.stat-card.interactive .stat-icon { display:grid; width:42px; height:42px; place-items:center; border-radius:13px; background:var(--surface-2); color:var(--brand); }
button.stat-card.interactive .stat-icon.accent { background:var(--accent-soft); color:var(--accent); }
button.stat-card.interactive .stat-icon.blue { background:var(--info-soft); color:var(--info); }
button.stat-card.interactive .stat-icon.warning { background:var(--warning-soft); color:var(--warning); }
button.stat-card.interactive .stat-copy { min-width:0; }
button.stat-card.interactive .stat-copy > span,
button.stat-card.interactive .stat-copy > strong,
button.stat-card.interactive .stat-copy > small { display:block; }
button.stat-card.interactive .stat-copy > span { color:var(--ink-faint); font-size:.67rem; font-weight:800; letter-spacing:.08em; text-transform:uppercase; }
button.stat-card.interactive .stat-copy > strong { margin-top:5px; font-size:1.45rem; line-height:1; }
button.stat-card.interactive .stat-copy > small { margin-top:7px; color:var(--ink-soft); font-size:.7rem; }
button.stat-card.interactive .stat-cue { display:flex; align-items:center; justify-content:flex-end; color:var(--brand); font-size:0; }
button.stat-card.interactive .stat-cue svg { width:16px; height:16px; }
button.stat-card.interactive:hover { background:var(--surface-2); }

.v8-hub-tabs { display:flex; flex-wrap:wrap; gap:6px; margin:16px 0 12px; }
.v8-hub-tabs button { display:flex; gap:8px; align-items:center; padding:9px 12px; border:1px solid var(--line); border-radius:12px; background:#fff; color:var(--ink-soft); font-size:.75rem; font-weight:800; cursor:pointer; }
.v8-hub-tabs button b { display:grid; min-width:20px; height:20px; place-items:center; padding:0 5px; border-radius:999px; background:var(--surface-2); color:var(--ink); font-size:.65rem; }
.v8-hub-tabs button.active { background:var(--brand); border-color:var(--brand); color:#fff; }
.v8-hub-tabs button.active b { background:rgba(255,255,255,.18); color:#fff; }
.v8-hub-content { min-height:320px; }

.v8-issue-card,.v8-workorder-card { display:block; padding:16px; }
.v8-issue-card.urgent { border-left:4px solid var(--danger); }
.v8-issue-card > header,.v8-workorder-card > header,
.v8-issue-card > footer,.v8-workorder-card > footer { display:flex; justify-content:space-between; gap:14px; align-items:center; }
.v8-issue-card > header > div,.v8-workorder-card > header > div { display:flex; gap:6px; align-items:center; flex-wrap:wrap; }
.v8-issue-card > header time,.v8-workorder-card > header > strong { color:var(--ink-faint); font-size:.7rem; }
.v8-issue-card h3,.v8-workorder-card h3 { margin:14px 0 6px; font-size:1rem; }
.v8-issue-card > p,.v8-workorder-card > p { margin:0; color:var(--ink-soft); line-height:1.55; }
.v8-issue-facts,.v8-workorder-route { display:flex; flex-wrap:wrap; gap:8px 16px; margin:14px 0; padding:11px 0; border-top:1px solid var(--line); border-bottom:1px solid var(--line); }
.v8-issue-facts span,.v8-workorder-route span { display:inline-flex; align-items:center; gap:5px; color:var(--ink-soft); font-size:.7rem; }
.v8-issue-card > footer > span strong,.v8-issue-card > footer > span small,
.v8-workorder-card > footer > span strong,.v8-workorder-card > footer > span small { display:block; }
.v8-issue-card > footer > span small,.v8-workorder-card > footer > span small { margin-top:2px; color:var(--ink-faint); font-size:.68rem; }
.v8-issue-card > footer > div,.v8-workorder-card > footer > div { display:flex; gap:7px; flex-wrap:wrap; justify-content:flex-end; }
.v8-workorder-progress { display:grid; grid-template-columns:repeat(4,1fr); gap:5px; margin:13px 0; }
.v8-workorder-progress span { height:5px; border-radius:99px; background:var(--surface-3); }
.v8-workorder-progress span.active { background:var(--brand); }

.v8-partner-card { display:block; padding:16px; }
.v8-partner-card > header { display:grid; grid-template-columns:50px minmax(0,1fr) 38px; gap:12px; align-items:start; }
.v8-partner-card > header h3 { margin:7px 0 3px; }
.v8-partner-tags { display:flex; flex-wrap:wrap; gap:6px; }
.v8-partner-tags span { display:inline-flex; gap:5px; align-items:center; padding:6px 8px; border-radius:9px; background:var(--surface-2); color:var(--ink-soft); font-size:.66rem; }
.v15-partner-taxonomy { margin-top: 14px; }
.v15-partner-taxonomy > small { display: block; margin-bottom: 7px; color: var(--hm-muted); font-weight: 680; }
.v15-partner-trades { display: flex; flex-wrap: wrap; gap: 7px; }
.v15-partner-trade {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border: 1px solid #b8cec1;
  border-radius: 999px;
  background: #e3f0e8;
  color: #24533f;
  font-size: 13px;
  font-weight: 700;
}
.v15-partner-trade svg { width: 14px; height: 14px; }
.v15-partner-trade.muted { border-color: var(--hm-line); background: var(--hm-canvas); color: var(--hm-muted); }
.v8-partner-card > footer { display:flex; justify-content:space-between; gap:10px; align-items:center; margin-top:13px; padding-top:13px; border-top:1px solid var(--line); }
.v8-partner-card > footer > span { display:flex; gap:6px; align-items:center; color:var(--ink-soft); font-size:.72rem; }
.v8-service-list { display:grid; gap:10px; }
.v8-service-card { grid-template-columns:44px minmax(0,1fr) auto; }
.v8-service-icon { display:grid; width:42px; height:42px; place-items:center; border-radius:12px; background:var(--brand-soft); color:var(--brand); }
.v8-service-card > div:last-child { text-align:right; }
.v8-service-card > div:last-child small,.v8-service-card > div:last-child strong,.v8-service-card > div:last-child span { display:block; }
.v8-service-card > div:last-child small { color:var(--ink-faint); }

@media (max-width:900px) {
  .grid.stats > button.stat-card.interactive { border-right:0; border-bottom:1px solid var(--line); border-radius:0; }
  .grid.stats > button.stat-card.interactive:first-child { border-radius:var(--radius) var(--radius) 0 0; }
  .grid.stats > button.stat-card.interactive:last-child { border-bottom:0; border-radius:0 0 var(--radius) var(--radius); }
}
@media (max-width:620px) {
  .v8-issue-card > footer,.v8-workorder-card > footer,.v8-partner-card > footer { align-items:flex-start; flex-direction:column; }
  .v8-issue-card > footer > div,.v8-workorder-card > footer > div { justify-content:flex-start; }
}

.goleje-brand { gap: 0; }
.goleje-brand img {
  width: 100%;
  max-width: 200px;
  max-height: calc(var(--topbar) - 14px);
  object-fit: contain;
  object-position: left center;
}
.goleje-brand .brand-copy { display: none; }

/* GoLeje V10 · platform- og kundeadministration */
.role-switcher-five .role-button { padding-inline: 9px; }

.v10-section { margin-top: 22px; }

.v10-platform-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid var(--hm-line);
  border-radius: 18px;
  background: var(--hm-surface);
  box-shadow: var(--shadow-sm);
}
.v10-platform-kpis > button {
  position: relative;
  min-height: 142px;
  padding: 24px;
  border: 0;
  border-right: 1px solid var(--hm-line);
  background: transparent;
  color: var(--hm-ink);
  text-align: left;
  cursor: pointer;
  transition: background .18s ease, color .18s ease;
}
.v10-platform-kpis > button:last-child { border-right: 0; }
.v10-platform-kpis > button:hover { background: var(--hm-pine-950); color: #fff; }
.v10-platform-kpis > button:focus-visible,
.v10-role-distribution button:focus-visible,
.v10-partner-card button:focus-visible { outline: 3px solid #d6b69e; outline-offset: -3px; }
.v10-platform-kpis span,
.v10-platform-kpis small { display: block; color: inherit; opacity: .68; font-size: 11px; }
.v10-platform-kpis strong { display: block; margin: 10px 0 8px; font-family: ui-serif, "Iowan Old Style", Georgia, serif; font-size: clamp(30px, 4vw, 48px); font-weight: 620; letter-spacing: -.05em; line-height: .95; }

.v10-role-distribution { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.v10-role-distribution button {
  display: flex;
  min-height: 92px;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--hm-line);
  border-radius: 12px;
  background: var(--hm-canvas);
  color: var(--hm-ink);
  text-align: left;
  cursor: pointer;
}
.v10-role-distribution button:hover { border-color: var(--hm-pine-700); background: #eef3ef; }
.v10-role-icon { display: grid; width: 36px; height: 36px; flex: 0 0 auto; place-items: center; border-radius: 10px; background: #e4ebe6; color: var(--hm-pine-800); }
.v10-role-icon svg { width: 17px; }
.v10-role-distribution strong,
.v10-role-distribution small { display: block; }
.v10-role-distribution strong { font-size: 22px; }
.v10-role-distribution small { margin-top: 2px; color: var(--hm-muted); font-size: 10px; }

.v10-client-cell { display: flex; min-width: 220px; align-items: center; gap: 11px; }
.v10-client-cell > span:last-child { display: grid; gap: 3px; }
.v10-client-cell small,
.v10-table-note { display: block; color: var(--hm-muted); font-size: 10px; font-weight: 500; }
.v10-client-table td:last-child { min-width: 330px; }
.v10-actions { display: flex; flex-wrap: wrap; gap: 7px; }
.v10-actions .button,
.v10-partner-card footer .button { min-height: 44px; }
.v10-overdue { color: var(--danger); }

.v10-impersonation {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
  padding: 14px 16px;
  border: 1px solid #d6b69e;
  border-radius: 14px;
  background: #fff5eb;
  color: #3d2a1e;
  box-shadow: 0 8px 24px rgba(64, 40, 20, .08);
}
.v10-impersonation > span { display: grid; width: 44px; height: 44px; place-items: center; border-radius: 11px; background: #3d2a1e; color: #fff; }
.v10-impersonation > span svg { width: 19px; }
.v10-impersonation strong,
.v10-impersonation small { display: block; }
.v10-impersonation small { margin-top: 4px; color: #765d49; font-size: 11px; line-height: 1.45; }

.v10-audit-list { display: grid; }
.v10-audit-row {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  min-height: 68px;
  padding: 11px 0;
  border-bottom: 1px solid var(--hm-line);
}
.v10-audit-row:last-child { border-bottom: 0; }
.v10-audit-row.compact { grid-template-columns: 34px minmax(0, 1fr); min-height: 58px; }
.v10-audit-icon { display: grid; width: 36px; height: 36px; place-items: center; border-radius: 10px; background: #e9efeb; color: var(--hm-pine-800); }
.v10-audit-icon svg { width: 16px; }
.v10-audit-row strong,
.v10-audit-row small { display: block; }
.v10-audit-row small { margin-top: 4px; color: var(--hm-muted); font-size: 10px; line-height: 1.4; }
.v10-audit-row time { color: var(--hm-muted); font-size: 10px; white-space: nowrap; }

.v10-partner-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.v10-partner-card { overflow: hidden; border: 1px solid var(--hm-line); border-radius: 16px; background: var(--hm-surface); box-shadow: var(--shadow-sm); }
.v10-partner-card > header { display: flex; align-items: flex-start; gap: 14px; padding: 20px; }
.v10-partner-card > header > div { min-width: 0; }
.v10-partner-card h2 { margin: 9px 0 4px; font-size: 20px; }
.v10-partner-card p { margin: 0; color: var(--hm-muted); font-size: 11px; }
.v10-partner-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-block: 1px solid var(--hm-line); background: var(--hm-canvas); }
.v10-partner-facts span { min-width: 0; padding: 13px; border-right: 1px solid var(--hm-line); }
.v10-partner-facts span:last-child { border-right: 0; }
.v10-partner-facts small,
.v10-partner-facts strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.v10-partner-facts small { margin-bottom: 5px; color: var(--hm-muted); font-size: 9px; text-transform: uppercase; letter-spacing: .08em; }
.v10-partner-facts strong { font-size: 11px; }
.v10-partner-card > footer { display: flex; min-height: 70px; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 20px; color: var(--hm-muted); font-size: 11px; }
.v10-partner-statusline,
.v10-partner-actions,
.v10-partner-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.v10-partner-tags { padding: 0 20px 17px; }
.v10-partner-tags > span {
  padding: 5px 9px;
  border: 1px solid #d8e1dc;
  border-radius: 999px;
  background: #f3f7f4;
  color: var(--hm-pine-800);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .02em;
}
.v10-partner-profile { display: grid; grid-template-columns: 1.15fr .85fr; border-block: 1px solid var(--hm-line); background: var(--hm-canvas); }
.v10-partner-profile section { min-width: 0; padding: 17px 20px; }
.v10-partner-profile section + section { border-left: 1px solid var(--hm-line); }
.v10-partner-profile section > small,
.v10-partner-commercial small {
  display: block;
  margin-bottom: 8px;
  color: var(--hm-muted);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.v10-partner-profile ul { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.v10-partner-profile li,
.v10-partner-profile section > span { display: flex; align-items: center; gap: 7px; color: var(--hm-muted); font-size: 10px; }
.v10-partner-profile li svg { width: 13px; color: var(--hm-success); }
.v10-partner-profile section > strong { display: block; margin-bottom: 9px; font-size: 11px; line-height: 1.5; }
.v10-partner-profile section > span svg { width: 13px; }
.v10-partner-commercial { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-bottom: 1px solid var(--hm-line); }
.v10-partner-commercial > div { min-width: 0; padding: 15px 20px; border-right: 1px solid var(--hm-line); }
.v10-partner-commercial > div:last-child { border-right: 0; }
.v10-partner-commercial .discount { background: #edf5ef; }
.v10-partner-commercial strong,
.v10-partner-commercial span { display: block; }
.v10-partner-commercial strong { font-size: 11px; line-height: 1.4; }
.v10-partner-commercial span { margin-top: 4px; overflow: hidden; color: var(--hm-muted); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.v10-partner-actions { justify-content: flex-end; }

.v10-form-section { margin-bottom: 24px; padding-bottom: 24px; border-bottom: 1px solid var(--hm-line); }
.v10-form-section:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: 0; }
.v10-form-heading { display: grid; grid-template-columns: 40px minmax(0, 1fr); align-items: center; gap: 12px; margin-bottom: 18px; }
.v10-form-heading > span { display: grid; width: 40px; height: 40px; place-items: center; border-radius: 12px; background: #e8efea; color: var(--hm-pine-800); }
.v10-form-heading > span svg { width: 18px; }
.v10-form-heading h3 { margin: 0 0 3px; font-size: 15px; }
.v10-form-heading p { margin: 0; color: var(--hm-muted); font-size: 10px; line-height: 1.5; }
.v10-form-section .field > small { margin-top: 6px; color: var(--hm-muted); font-size: 9px; line-height: 1.45; }
.v10-form-section .field-span-two { grid-column: 1 / -1; }
.v10-input-suffix { display: grid; grid-template-columns: minmax(0, 1fr) auto; overflow: hidden; border: 1px solid var(--hm-line); border-radius: 10px; background: var(--hm-surface); }
.v10-input-suffix:focus-within { border-color: var(--hm-pine-700); box-shadow: 0 0 0 3px rgba(32, 91, 70, .12); }
.v10-input-suffix input { min-width: 0; border: 0; border-radius: 0; box-shadow: none; }
.v10-input-suffix input:focus { box-shadow: none; }
.v10-input-suffix span { display: flex; align-items: center; padding: 0 12px; border-left: 1px solid var(--hm-line); background: var(--hm-canvas); color: var(--hm-muted); font-size: 10px; font-weight: 700; }

@media (max-width: 1280px) {
  .role-switcher-five .role-button span { display: none; }
  .role-switcher-five .role-button { width: 38px; padding: 0; }
  .v10-role-distribution { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1020px) {
  .v10-platform-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .v10-platform-kpis > button:nth-child(2) { border-right: 0; }
  .v10-platform-kpis > button:nth-child(-n+2) { border-bottom: 1px solid var(--hm-line); }
  .v10-partner-grid { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .v10-platform-kpis { grid-template-columns: 1fr; }
  .v10-platform-kpis > button { min-height: 112px; border-right: 0; border-bottom: 1px solid var(--hm-line); }
  .v10-platform-kpis > button:last-child { border-bottom: 0; }
  .v10-role-distribution { grid-template-columns: 1fr 1fr; }
  .v10-impersonation { grid-template-columns: 40px minmax(0, 1fr); }
  .v10-impersonation .button { grid-column: 1 / -1; width: 100%; min-height: 44px; }
  .v10-audit-row { grid-template-columns: 36px minmax(0, 1fr); }
  .v10-audit-row time,
  .v10-audit-row > .badge { grid-column: 2; justify-self: start; }
  .v10-partner-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .v10-partner-facts span:nth-child(2) { border-right: 0; }
  .v10-partner-facts span:nth-child(-n+2) { border-bottom: 1px solid var(--hm-line); }
  .v10-partner-card > footer { align-items: flex-start; flex-direction: column; }
  .v10-partner-profile,
  .v10-partner-commercial { grid-template-columns: 1fr; }
  .v10-partner-profile section + section { border-top: 1px solid var(--hm-line); border-left: 0; }
  .v10-partner-commercial > div { border-right: 0; border-bottom: 1px solid var(--hm-line); }
  .v10-partner-commercial > div:last-child { border-bottom: 0; }
  .v10-partner-actions { width: 100%; justify-content: stretch; }
  .v10-partner-actions .button { flex: 1 1 150px; }
  .v10-form-section .field-span-two { grid-column: auto; }
}

/* GoLeje V11 · genbrugelige arbejdsområder */
.v11-area-picker {
  grid-column: 1 / -1;
  min-width: 0;
  margin: 2px 0 4px;
  padding: 18px;
  border: 1px solid var(--hm-line);
  border-radius: 14px;
  background: var(--hm-canvas);
}
.v11-area-picker legend { padding: 0 7px; color: var(--hm-ink); font-size: 14px; font-weight: 720; }
.v11-area-picker-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; color: var(--hm-muted); font-size: 13px; }
.v11-area-picker-head strong { display: grid; min-width: 28px; height: 28px; padding: 0 8px; place-items: center; border-radius: 999px; background: var(--hm-pine-900); color: #fff; font-size: 12px; }
.v11-area-selected-list,
.v11-card-area-tags,
.v11-market-areas { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.v11-area-selected-list { min-height: 48px; margin-bottom: 15px; }
.v11-area-empty { color: var(--hm-muted); font-size: 13px; }
.v11-area-selected,
.v11-area-filter-list button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 8px 12px;
  border: 1px solid #cfd9d3;
  border-radius: 999px;
  background: #fff;
  color: var(--hm-pine-900);
  cursor: pointer;
  font-weight: 680;
  transition: border-color .16s ease, background .16s ease, color .16s ease, transform .16s ease;
}
.v11-area-selected { border-color: var(--hm-pine-800); background: var(--hm-pine-900); color: #fff; }
.v11-area-selected svg { width: 15px; height: 15px; }
.v11-area-selected:hover { background: #7a3f38; border-color: #7a3f38; }
.v11-area-selected:focus-visible,
.v11-area-filter-list button:focus-visible { outline: 3px solid #d6b69e; outline-offset: 2px; }
.v11-area-picker > label { display: block; margin-bottom: 7px; color: var(--hm-ink); font-size: 13px; font-weight: 680; }
.v12-area-combobox { position: relative; }
.v12-area-combobox > input { width: 100%; padding-right: 190px; }
.v12-area-keyhint {
  position: absolute;
  top: 50%;
  right: 12px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--hm-muted);
  font-size: 13px;
  pointer-events: none;
  transform: translateY(-50%);
}
.v12-area-keyhint kbd {
  min-width: 25px;
  padding: 2px 5px;
  border: 1px solid #cbd5cf;
  border-bottom-width: 2px;
  border-radius: 5px;
  background: #f7f9f7;
  color: var(--hm-pine-900);
  font: 650 12px/1.2 inherit;
  text-align: center;
}
.v12-area-autocomplete {
  position: absolute;
  z-index: 80;
  top: calc(100% + 6px);
  right: 0;
  left: 0;
  max-height: 286px;
  padding: 6px;
  overflow-y: auto;
  border: 1px solid #c9d5ce;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 16px 38px rgba(22, 53, 42, .16);
}
.v12-area-autocomplete[hidden],
.v12-area-confirm[hidden] { display: none; }
.v12-area-suggestion {
  display: flex;
  width: 100%;
  min-height: 46px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 11px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--hm-ink);
  cursor: pointer;
  font-weight: 680;
  text-align: left;
}
.v12-area-suggestion small { color: var(--hm-muted); font-size: 13px; font-weight: 540; white-space: nowrap; }
.v12-area-suggestion:hover,
.v12-area-suggestion.active { background: #e7f0ea; color: var(--hm-pine-950); }
.v12-area-suggestion:focus-visible { outline: 3px solid #d6b69e; outline-offset: -2px; }
.v12-area-confirm {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 10px;
  padding: 13px 14px;
  border: 1px solid #dfc79d;
  border-radius: 12px;
  background: #fff8e9;
}
.v12-area-confirm > div:first-child { display: grid; gap: 3px; min-width: 0; }
.v12-area-confirm strong { color: #60491f; font-size: 14px; }
.v12-area-confirm span { color: #715c34; font-size: 14px; line-height: 1.45; overflow-wrap: anywhere; }
.v12-area-confirm-actions { display: flex; flex: 0 0 auto; gap: 7px; }
.v12-area-confirm-actions .button { min-height: 40px; white-space: nowrap; }
.v11-area-picker > small { display: block; margin-top: 9px; color: var(--hm-muted); line-height: 1.45; }
.v11-area-error { display: block; margin-top: 9px; color: var(--danger); font-size: 13px; font-weight: 680; }
.v11-area-error[hidden] { display: none; }
.v11-area-picker.invalid { border-color: var(--danger); box-shadow: 0 0 0 3px rgba(169, 71, 71, .1); }

.v11-partner-finder { margin-bottom: 18px; padding: 18px; border: 1px solid var(--hm-line); border-radius: 14px; background: #f4f7f4; }
.v11-partner-finder-head { display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; align-items: center; gap: 12px; margin-bottom: 15px; }
.v11-partner-finder-head > span { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 12px; background: var(--hm-pine-900); color: #fff; }
.v11-partner-finder-head > span svg { width: 18px; }
.v11-partner-finder-head h3 { margin: 0 0 3px; font-size: 17px; }
.v11-partner-finder-head p { margin: 0; color: var(--hm-muted); }
.v11-partner-finder-head > strong { color: var(--hm-pine-800); font-size: 14px; white-space: nowrap; }
.v11-area-filter-list { display: flex; flex-wrap: wrap; gap: 8px; }
.v11-area-filter-list button { background: var(--hm-surface); }
.v11-area-filter-list button:hover,
.v11-area-filter-list button.active { border-color: var(--hm-pine-900); background: var(--hm-pine-900); color: #fff; }
.v11-area-filter-list button span { display: grid; min-width: 23px; height: 23px; padding: 0 6px; place-items: center; border-radius: 999px; background: rgba(24, 62, 49, .1); font-size: 12px; }
.v11-area-filter-list button.active span,
.v11-area-filter-list button:hover span { background: rgba(255, 255, 255, .18); }
.v11-card-area-tags { margin: 14px 0 2px; }
.v11-partner-area,
.v11-market-areas span,
.v11-market-areas strong { display: inline-flex; min-height: 30px; align-items: center; gap: 6px; padding: 5px 9px; border: 1px solid #d4ddd7; border-radius: 999px; background: #eef4ef; color: var(--hm-pine-800); font-size: 12px; font-weight: 680; }
.v11-partner-area svg,
.v11-market-areas svg { width: 13px; }
.v11-partner-area.muted { color: var(--hm-muted); }
.v11-market-areas { margin: 13px 0; }
.v11-market-areas strong { border-color: #bfd5c8; background: #e4f1e8; color: #2e624c; }

@media (max-width: 620px) {
  .v11-area-picker { padding: 15px; }
  .v12-area-combobox > input { padding-right: 12px; }
  .v12-area-keyhint { position: static; display: flex; margin-top: 7px; transform: none; }
  .v12-area-autocomplete { top: 49px; }
  .v12-area-confirm { align-items: stretch; flex-direction: column; }
  .v12-area-confirm-actions { flex-wrap: wrap; }
  .v12-area-confirm-actions .button { flex: 1 1 145px; }
  .v11-partner-finder-head { grid-template-columns: 42px minmax(0, 1fr); }
  .v11-partner-finder-head > strong { grid-column: 2; }
  .v11-area-filter-list { flex-wrap: nowrap; margin-right: -15px; padding-right: 15px; overflow-x: auto; scrollbar-width: thin; }
  .v11-area-filter-list button { flex: 0 0 auto; }
}

/* GoLeje V16 · inline chip-input */
.v16-inline-tag-picker {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}
.v16-inline-tag-picker legend {
  margin-bottom: 7px;
  padding: 0;
  color: var(--hm-ink);
  font-size: 14px;
  font-weight: 720;
}
.v16-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.v16-tag-control {
  display: flex;
  width: 100%;
  min-height: 52px;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  padding: 6px 9px;
  border: 1px solid #c8d2cc;
  border-radius: 10px;
  background: #fff;
  cursor: text;
  transition: border-color .16s ease, box-shadow .16s ease;
}
.v16-tag-control:hover { border-color: #94aa9e; }
.v16-tag-control:focus-within {
  border-color: #bb8c58;
  box-shadow: 0 0 0 3px rgba(187, 140, 88, .16);
}
.v16-inline-tag-picker .v11-area-selected-list {
  display: contents;
  min-height: 0;
  margin: 0;
}
.v16-inline-tag-picker .v11-area-selected {
  min-height: 44px;
  flex: 0 0 auto;
  padding: 6px 10px;
}
body :is(.app-shell, #modal-root) .v16-tag-control > input {
  width: auto;
  min-width: 170px;
  min-height: 38px;
  flex: 1 1 190px;
  padding: 5px 3px;
  border: 0 !important;
  border-radius: 0 !important;
  outline: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
.v16-tag-control > input:hover,
.v16-tag-control > input:focus {
  border: 0 !important;
  outline: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
.v16-inline-tag-picker .v12-area-confirm {
  position: absolute;
  z-index: 81;
  top: calc(100% + 6px);
  right: 0;
  left: 0;
  margin-top: 0;
  box-shadow: 0 16px 38px rgba(22, 53, 42, .16);
}
.v16-inline-tag-picker.invalid { box-shadow: none; }
.v16-inline-tag-picker.invalid .v16-tag-control {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(169, 71, 71, .1);
}

@media (max-width: 620px) {
  .v16-inline-tag-picker { padding: 0; }
  .v16-tag-control > input { min-width: 135px; padding-right: 3px; }
  .v16-inline-tag-picker .v12-area-autocomplete,
  .v16-inline-tag-picker .v12-area-confirm { top: calc(100% + 6px); }
}

/* GoLeje V11 · fælles læsbar typografi */
:root {
  --ui-text-compact: 12px;
  --ui-text-meta: 13px;
  --ui-text-control: 14px;
  --ui-text-body: 15px;
  --ui-text-comfortable: 16px;
}

body { font-size: var(--ui-text-body); line-height: 1.5; }

body :is(.app-shell, #modal-root, #toast-root) p {
  font-size: var(--ui-text-body);
  line-height: 1.55;
}

body :is(.app-shell, #modal-root, #toast-root) small,
body :is(.app-shell, #modal-root, #toast-root) time {
  font-size: var(--ui-text-meta);
  line-height: 1.45;
}

body :is(.app-shell, #modal-root, #toast-root) :is(button, .button, .text-button, .tab) {
  font-size: var(--ui-text-control);
  line-height: 1.35;
}

body :is(.app-shell, #modal-root, #toast-root) :is(input, select, textarea) {
  font-size: var(--ui-text-body);
  line-height: 1.45;
}

body :is(.app-shell, #modal-root, #toast-root) .field label,
body :is(.app-shell, #modal-root, #toast-root) .form-label {
  font-size: var(--ui-text-control);
  line-height: 1.4;
}

body :is(.app-shell, #modal-root, #toast-root) :is(.badge, .property-tile-match, .feature-pill, .nav-count, .notification-trigger .count) {
  font-size: var(--ui-text-compact);
  line-height: 1.2;
}

body :is(.app-shell, #modal-root, #toast-root) :is(.page-kicker, .eyebrow, .section-eyebrow, .stat-label) {
  font-size: var(--ui-text-compact);
  line-height: 1.35;
}

body :is(.app-shell, #modal-root, #toast-root) :is(.page-description, .section-subtitle, .notice, .modal-header p) {
  font-size: var(--ui-text-body);
  line-height: 1.6;
}

body :is(.app-shell, #modal-root, #toast-root) :is(.nav-item, .role-button, .mobile-role-trigger) {
  font-size: var(--ui-text-control);
}

body :is(.app-shell, #modal-root, #toast-root) .stat-meta {
  font-size: var(--ui-text-meta);
  line-height: 1.5;
}

body :is(.app-shell, #modal-root, #toast-root) table { font-size: var(--ui-text-control); }
body :is(.app-shell, #modal-root, #toast-root) th { font-size: var(--ui-text-compact); line-height: 1.35; }
body :is(.app-shell, #modal-root, #toast-root) td { font-size: var(--ui-text-control); line-height: 1.45; }

body :is(.app-shell, #modal-root, #toast-root) :is(.activity-copy strong, .quick-item-copy strong, .notification-copy h3, .drawer-notification-copy strong, .preference-row strong, .detail-fact strong, .toggle-copy strong) {
  font-size: var(--ui-text-control);
  line-height: 1.4;
}

body :is(.app-shell, #modal-root, #toast-root) :is(.activity-copy span, .quick-item-copy span, .notification-copy p, .drawer-notification-copy span, .profile-summary p, .preference-row span, .detail-fact span, .toggle-copy span) {
  font-size: var(--ui-text-meta);
  line-height: 1.5;
}

body :is(.app-shell, #modal-root, #toast-root) :is(.v7-command-strip, .v7-record-grid, .v7-chart-legend, .v7-attention-card, .v7-funnel-compact, .v7-retention-grid, .v8-hub-tabs, .v8-issue-card, .v8-workorder-card, .v8-partner-card, .v8-service-card, .v8-thread-message) small {
  font-size: var(--ui-text-meta);
}

body :is(.app-shell, #modal-root, #toast-root) :is(.v8-issue-card, .v8-workorder-card, .v8-partner-card, .v8-service-card, .v8-thread-message) p {
  font-size: var(--ui-text-control);
}

body :is(.app-shell, #modal-root, #toast-root) :is(.v8-hub-tabs button, .v8-maintenance-tabs button, .v7-filterbar button) {
  font-size: var(--ui-text-control);
}

body :is(.app-shell, #modal-root, #toast-root) :is(.v8-partner-tags span, .v8-issue-facts span, .v8-workorder-route span, .v8-check-list span, .v8-partner-card > footer > span) {
  font-size: var(--ui-text-meta);
  line-height: 1.45;
}

body :is(.app-shell, #modal-root, #toast-root) .v10-platform-kpis :is(span, small) { font-size: var(--ui-text-control); }
body :is(.app-shell, #modal-root, #toast-root) .v10-role-distribution small { font-size: var(--ui-text-meta); }
body :is(.app-shell, #modal-root, #toast-root) :is(.v10-client-cell small, .v10-table-note, .v10-impersonation small, .v10-audit-row small, .v10-audit-row time) { font-size: var(--ui-text-meta); }
body :is(.app-shell, #modal-root, #toast-root) .v10-audit-row strong { font-size: var(--ui-text-control); line-height: 1.4; }
body :is(.app-shell, #modal-root, #toast-root) .v10-partner-card p,
body :is(.app-shell, #modal-root, #toast-root) .v10-partner-card > footer { font-size: var(--ui-text-control); }
body :is(.app-shell, #modal-root, #toast-root) .v10-partner-tags > span { font-size: var(--ui-text-meta); }
body :is(.app-shell, #modal-root, #toast-root) .v10-partner-profile :is(li, section > span, section > strong) { font-size: var(--ui-text-control); }
body :is(.app-shell, #modal-root, #toast-root) .v10-partner-commercial strong { font-size: var(--ui-text-body); }
body :is(.app-shell, #modal-root, #toast-root) .v10-partner-commercial span { font-size: var(--ui-text-meta); line-height: 1.45; white-space: normal; }
body :is(.app-shell, #modal-root, #toast-root) .v10-form-heading p { font-size: var(--ui-text-control); }
body :is(.app-shell, #modal-root, #toast-root) .v10-form-section .field > small { font-size: var(--ui-text-meta); }
body :is(.app-shell, #modal-root, #toast-root) .v10-input-suffix span { font-size: var(--ui-text-control); }

@media (max-width: 760px) {
  body :is(.app-shell, #modal-root, #toast-root) :is(input, select, textarea) { font-size: 16px; }
  body :is(.app-shell, #modal-root, #toast-root) .page-description { font-size: var(--ui-text-body); }
  body :is(.app-shell, #modal-root, #toast-root) .stat-meta { font-size: var(--ui-text-meta); }
}

/* GoLeje V17 · optimeret billedupload til boliger */
.v17-image-section { min-width: 0; }
.v17-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.v17-image-dropzone {
  display: flex;
  min-height: 104px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 20px;
  border: 1.5px dashed #9baea4;
  border-radius: 12px;
  background: #f7f8f4;
  transition: border-color .16s ease, background .16s ease, box-shadow .16s ease;
}
.v17-image-dropzone:hover,
.v17-image-dropzone.is-dragging {
  border-color: var(--hm-pine-700, #205b49);
  background: #eef4ef;
  box-shadow: inset 0 0 0 1px rgba(32, 91, 73, .12);
}
.v17-image-dropzone > div { display: grid; gap: 4px; }
.v17-image-dropzone strong { color: var(--hm-pine-950, #17372f); font-size: 15px; }
.v17-image-dropzone span { color: var(--hm-muted, #596a64); font-size: 13px; }
.v17-image-dropzone .button { flex: 0 0 auto; min-height: 44px; }
.v17-image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
  margin-top: 14px;
}
.v17-image-empty {
  display: grid;
  min-height: 122px;
  grid-column: 1 / -1;
  place-items: center;
  align-content: center;
  gap: 5px;
  padding: 18px;
  border: 1px solid #d8dfda;
  border-radius: 10px;
  color: #5e7068;
  text-align: center;
}
.v17-image-empty .ui-icon { width: 24px; height: 24px; color: #205b49; }
.v17-image-empty strong { color: #17372f; font-size: 14px; }
.v17-image-empty span { max-width: 340px; font-size: 13px; }
.v17-image-preview {
  position: relative;
  min-width: 0;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 1px solid #d2dbd5;
  border-radius: 10px;
  background: #e7ebe8;
}
.v17-image-preview > img { width: 100%; height: 100%; object-fit: cover; }
.v17-image-preview::after {
  content: '';
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 54%;
  background: linear-gradient(transparent, rgba(11, 26, 22, .78));
  pointer-events: none;
}
.v17-image-preview-top {
  position: absolute;
  z-index: 2;
  top: 8px;
  right: 8px;
  left: 8px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}
.v17-image-preview-top > button {
  min-height: 44px;
  padding: 7px 10px;
  border: 1px solid rgba(255,255,255,.72);
  border-radius: 8px;
  background: rgba(255,255,255,.94);
  color: #17372f;
  font-size: 12px;
  font-weight: 750;
  box-shadow: 0 5px 16px rgba(12, 32, 26, .14);
}
.v17-image-preview-top > button:hover { background: #fff; border-color: #fff; }
.v17-image-preview-top > button:focus-visible { outline: 3px solid #d69b5b; outline-offset: 2px; }
.v17-image-preview-top .v17-image-remove {
  width: 44px;
  padding: 0;
  display: grid;
  flex: 0 0 44px;
  place-items: center;
}
.v17-image-preview-top .v17-image-remove .ui-icon { width: 18px; height: 18px; }
.v17-image-preview-meta {
  position: absolute;
  z-index: 2;
  right: 10px;
  bottom: 9px;
  left: 10px;
  display: grid;
  min-width: 0;
  gap: 1px;
  color: #fff;
}
.v17-image-preview-meta strong,
.v17-image-preview-meta span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.v17-image-preview-meta strong { font-size: 13px; }
.v17-image-preview-meta span { color: rgba(255,255,255,.82); font-size: 12px; }
.v17-image-status { margin: 9px 0 0; color: #5a6c64; font-size: 13px; }
.v17-image-status.error { color: var(--danger, #a94747); font-weight: 650; }
.v17-image-section.is-processing .v17-image-grid { opacity: .62; }
.v17-property-gallery { display: grid; gap: 8px; margin-bottom: 18px; }
.v17-property-gallery .property-detail-hero { margin-bottom: 0; }
.v17-property-gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}
.v17-property-gallery-thumbs img,
.v17-property-gallery-thumbs > span {
  width: 100%;
  height: 82px;
  border-radius: 8px;
}
.v17-property-gallery-thumbs img { border: 1px solid #d4dcd7; object-fit: cover; }
.v17-property-gallery-thumbs > span {
  display: grid;
  place-items: center;
  background: #17372f;
  color: #fff;
  font-size: 13px;
  font-weight: 750;
}
@media (max-width: 620px) {
  .v17-image-dropzone { min-height: 0; align-items: stretch; flex-direction: column; padding: 16px; }
  .v17-image-dropzone .button { width: 100%; justify-content: center; }
  .v17-image-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .v17-image-preview-top { top: 6px; right: 6px; left: 6px; }
  .v17-image-preview-top > button:not(.v17-image-remove) { max-width: calc(100% - 50px); padding-inline: 8px; }
  .v17-property-gallery-thumbs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .v17-property-gallery-thumbs img,
  .v17-property-gallery-thumbs > span { height: 74px; }
}

.boot-screen{min-height:100vh;display:grid;place-items:center;padding:32px;background:#f4f5f1;color:#152a30;font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}.boot-card{width:min(520px,100%);padding:28px;border:1px solid #d9e0dc;border-radius:20px;background:#fff;box-shadow:0 16px 42px rgba(19,42,48,.12);text-align:center}.boot-card img{width:min(310px,85%);height:auto;margin:0 auto 18px}.boot-card p{margin:0;color:#4f6368}.fatal-error{position:fixed;inset:18px;z-index:999999;overflow:auto;padding:24px;border:2px solid #a94747;border-radius:18px;background:#fff;color:#152a30;box-shadow:0 28px 72px rgba(19,42,48,.25)}.fatal-error h1{font-size:1.35rem}.fatal-error pre{white-space:pre-wrap;word-break:break-word;padding:14px;border-radius:12px;background:#f7e5e5;color:#722}
