:root {
  --pine-950: #082a25;
  --pine-900: #123d36;
  --pine-800: #1b5148;
  --pine-700: #23665a;
  --sage-100: #e8f1ed;
  --sage-50: #f3f8f5;
  --brick: #d65343;
  --brick-dark: #b83d31;
  --brick-soft: #faeae6;
  --ivory: #fffaf1;
  --paper: #ffffff;
  --ink: #17201e;
  --muted: #63716d;
  --line: #d9e4df;
  --success: #177455;
  --warning: #b86b12;
  --danger: #b9312b;
  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 30px;
  --shadow-sm: 0 10px 30px rgba(8, 42, 37, .07);
  --shadow: 0 24px 70px rgba(8, 42, 37, .13);
  --container: 1180px;
  --control-height: 50px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--ivory);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }
a { color: inherit; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; }
select:not([multiple]) {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 50px !important;
  background-color: #fff;
  background-image: linear-gradient(45deg,transparent 50%,var(--pine-800) 50%),linear-gradient(135deg,var(--pine-800) 50%,transparent 50%);
  background-position: calc(100% - 20px) calc(50% - 1px),calc(100% - 15px) calc(50% - 1px);
  background-size: 5px 5px,5px 5px;
  background-repeat: no-repeat;
}
button, a { -webkit-tap-highlight-color: transparent; }
.container { width: min(var(--container), calc(100% - 40px)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 2000; left: 16px; top: -80px; background: #fff; color: var(--pine-950); padding: 10px 16px; border-radius: 10px; }
.skip-link:focus { top: 16px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(18,61,54,.09);
  background: rgba(255,250,241,.92);
  backdrop-filter: blur(18px);
}
.header-inner { min-height: 76px; display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; flex: 0 0 auto; text-decoration: none; }
.brand img { width: 178px; height: auto; }
.main-nav { margin-left: auto; display: flex; align-items: center; gap: 5px; }
.main-nav > a {
  text-decoration: none;
  color: #30413d;
  font-weight: 720;
  font-size: .92rem;
  padding: 10px 12px;
  border-radius: 10px;
  transition: background .2s, color .2s;
}
.main-nav > a:hover, .main-nav > a[aria-current="page"] { color: var(--pine-900); background: var(--sage-100); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.mobile-auth { display: none; }
.menu-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line); background: #fff; border-radius: 13px; color: var(--pine-900); align-items: center; justify-content: center; cursor: pointer; }
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after { display: block; width: 20px; height: 2px; background: currentColor; border-radius: 2px; transition: .2s; content: ""; }
.menu-toggle span::before { transform: translateY(-6px); }
.menu-toggle span::after { transform: translateY(4px); }
.menu-toggle[aria-expanded="true"] span { background: transparent; }
.menu-toggle[aria-expanded="true"] span::before { transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] span::after { transform: translateY(-2px) rotate(-45deg); }

.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--pine-900);
  border-radius: 13px;
  padding: 11px 18px;
  color: #fff;
  background: var(--pine-900);
  font-weight: 780;
  font-size: .93rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s, background .2s;
}
.button:hover { transform: translateY(-1px); box-shadow: 0 10px 26px rgba(18,61,54,.18); background: var(--pine-800); }
.button:disabled { opacity: .55; cursor: wait; transform: none; }
.button-secondary { color: var(--pine-900); background: transparent; border-color: var(--line); }
.button-secondary:hover { background: #fff; }
.button-accent { background: var(--brick); border-color: var(--brick); }
.button-accent:hover { background: var(--brick-dark); }
.button-soft { color: var(--pine-900); background: var(--sage-100); border-color: transparent; }
.button-small { min-height: 38px; padding: 8px 13px; border-radius: 10px; font-size: .86rem; }
.button-link { min-height: auto; padding: 0; border: 0; color: var(--pine-800); background: transparent; }

.eyebrow { color: var(--brick); font-size: .78rem; font-weight: 850; letter-spacing: .13em; text-transform: uppercase; }
h1, h2, h3 { margin: 0; line-height: 1.08; letter-spacing: -.035em; color: var(--pine-950); }
h1 { font-size: clamp(2.25rem, 4.5vw, 4.25rem); }
h2 { font-size: clamp(1.65rem, 3vw, 2.85rem); }
h3 { font-size: 1.25rem; }
.lead { color: var(--muted); font-size: clamp(1.05rem, 1.8vw, 1.22rem); line-height: 1.65; }
.section { padding: 92px 0; }
.section-soft { background: var(--sage-50); border-block: 1px solid var(--line); }
.section-dark { background: var(--pine-950); color: #fff; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 28px; margin-bottom: 36px; }
.section-heading p { max-width: 520px; margin: 0; color: var(--muted); }

.hero { position: relative; overflow: hidden; padding: 54px 0 74px; }
.hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 12% 18%, rgba(214,83,67,.11), transparent 30%), linear-gradient(180deg,#fffaf1 0%,#f3f8f5 100%); }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 44px; align-items: center; }
.hero-copy { padding: 22px 0; }
.hero-copy h1 { max-width: 760px; margin: 14px 0 22px; }
.hero-copy h1 span { color: var(--brick); }
.hero-copy .lead { max-width: 630px; margin: 0 0 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.trust-row { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 30px; color: #465651; font-size: .9rem; }
.trust-row span::before { content: "✓"; margin-right: 7px; color: var(--success); font-weight: 900; }
.hero-visual { min-height: 580px; position: relative; border-radius: 34px; overflow: hidden; box-shadow: var(--shadow); background: var(--pine-900); }
.hero-visual > img { width: 100%; height: 100%; min-height: 580px; object-fit: cover; }
.hero-visual::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 48%, rgba(8,42,37,.68)); pointer-events: none; }
.hero-calculator { position: absolute; z-index: 2; left: 22px; right: 22px; bottom: 22px; padding: 21px; border: 1px solid rgba(255,255,255,.28); border-radius: 22px; color: #fff; background: rgba(8,42,37,.89); backdrop-filter: blur(14px); }
.hero-calculator h2 { font-size: 1.1rem; color: #fff; letter-spacing: -.01em; margin-bottom: 14px; }
.mini-form { display: grid; grid-template-columns: 1.15fr .85fr .85fr; gap: 10px; align-items: end; }
.mini-form label { display: grid; gap: 5px; font-size: .74rem; font-weight: 760; color: #d8e7e2; }
.mini-form input { min-width: 0; width: 100%; height: 44px; border: 1px solid rgba(255,255,255,.22); border-radius: 11px; padding: 0 12px; color: #fff; background: rgba(255,255,255,.1); outline: 0; }
.mini-form input:focus { border-color: #fff; }
.quick-result { display: flex; align-items: end; justify-content: space-between; gap: 10px; margin-top: 15px; border-top: 1px solid rgba(255,255,255,.17); padding-top: 13px; }
.quick-result small { display: block; color: #c8d9d4; }
.quick-result strong { font-size: 1.42rem; }

.stat-strip { background: var(--pine-900); color: #fff; }
.stat-grid { display: grid; grid-template-columns: repeat(4,1fr); }
.stat-item { padding: 28px 24px; border-left: 1px solid rgba(255,255,255,.12); }
.stat-item:last-child { border-right: 1px solid rgba(255,255,255,.12); }
.stat-item strong { display: block; font-size: 1.35rem; }
.stat-item span { color: #bdd1cb; font-size: .86rem; }

.card-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.tool-card, .content-card {
  position: relative;
  min-height: 250px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,.8);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.tool-card { display: flex; flex-direction: column; }
.tool-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--brick); }
.tool-icon { width: 49px; height: 49px; display: grid; place-items: center; border-radius: 15px; color: var(--pine-900); background: var(--sage-100); font-size: 1.25rem; font-weight: 850; margin-bottom: 22px; }
.tool-card h3 { margin-bottom: 10px; }
.tool-card p { margin: 0 0 24px; color: var(--muted); }
.tool-card a { margin-top: auto; color: var(--pine-800); font-weight: 800; text-decoration: none; }
.tool-card a:hover { color: var(--brick); }
.prose-page { width: min(860px,100%); }
.prose-page h2 { margin: 42px 0 14px; font-size: clamp(1.55rem,3vw,2.25rem); }
.prose-page h3 { margin: 28px 0 10px; }
.prose-page p, .prose-page li { color: #53635e; }
.prose-page a { color: var(--pine-700); font-weight: 750; }
.prose-page .content-card { margin-bottom: 18px; min-height: 0; }
.legal-hero .legal-updated { margin-top: 18px; color: var(--pine-700); font-size: .84rem; font-weight: 750; }
.legal-page { width: min(1100px,100%); }
.legal-party-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; align-items: start; }
.legal-party-card { border-top: 5px solid var(--pine-700); }
.legal-party-card:nth-child(2) { border-top-color: var(--brick); }
.legal-card-label { display: inline-flex; margin-bottom: 12px; color: var(--brick); font-size: .72rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.legal-party-card h2, .legal-section-card h2 { margin: 0 0 12px; }
.legal-facts { display: grid; margin: 16px 0 0; border-top: 1px solid var(--line); }
.legal-facts > div { display: grid; grid-template-columns: minmax(125px,.7fr) minmax(0,1.3fr); gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.legal-facts dt { color: #74817d; font-size: .78rem; font-weight: 750; }
.legal-facts dd { min-width: 0; margin: 0; color: var(--pine-950); font-size: .86rem; font-weight: 720; overflow-wrap: anywhere; }
.legal-source-link { margin: 20px 0 0; font-size: .84rem; }
.legal-section-card { padding: clamp(24px,4vw,38px); }
.legal-section-card p:last-child { margin-bottom: 0; }
.site-map-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.site-map-grid .content-card { min-height: 0; }
.site-map-grid a { display: block; margin: 9px 0; color: var(--pine-800); text-decoration: none; }
.faq-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 14px; }
.faq-item { padding: 22px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.faq-item h3 { margin-bottom: 9px; font-size: 1.06rem; letter-spacing: -.015em; }
.faq-item p { margin: 0; color: var(--muted); }
.feature-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 58px; align-items: center; }
.feature-list { display: grid; gap: 14px; }
.feature-item { display: grid; grid-template-columns: 48px 1fr; gap: 16px; padding: 20px; border: 1px solid rgba(255,255,255,.14); border-radius: 16px; background: rgba(255,255,255,.05); }
.feature-item b { display: block; margin-bottom: 4px; }
.feature-item p { margin: 0; color: #bed0cb; }
.feature-number { width: 45px; height: 45px; display: grid; place-items: center; border-radius: 14px; color: #fff; background: var(--brick); font-weight: 900; }

.page-hero { padding: 65px 0 52px; border-bottom: 1px solid var(--line); background: linear-gradient(135deg,#f3f8f5,#fffaf1 55%,#faeae6); }
.page-hero h1 { max-width: 900px; margin: 12px 0 16px; font-size: clamp(2.2rem,3.8vw,3.75rem); }
.page-hero p { max-width: 720px; margin: 0; }
.contact-hero .contact-page-title { max-width: none; font-size: clamp(2.15rem,3.6vw,3.4rem); }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; color: var(--muted); font-size: .86rem; }
.breadcrumb a { color: var(--pine-800); text-decoration: none; }

.workspace { padding: 58px 0 92px; }
.workspace-grid { display: grid; grid-template-columns: minmax(0,1.25fr) minmax(310px,.75fr); gap: 24px; align-items: start; }
.panel { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-sm); }
.panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; padding: 24px 26px; border-bottom: 1px solid var(--line); }
.panel-head p { margin: 5px 0 0; color: var(--muted); font-size: .92rem; }
.panel-body { padding: 26px; }
.form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; }
.field { display: grid; align-content: start; gap: 7px; }
.field-full { grid-column: 1 / -1; }
.field label { font-weight: 750; color: #263632; font-size: .9rem; }
.field label .required { color: var(--brick); }
.field input, .field select, .field textarea {
  width: 100%;
  border: 1px solid #cbdad4;
  border-radius: 12px;
  padding: 12px 14px;
  color: var(--ink);
  background-color: #fff;
  outline: 0;
  transition: border-color .2s, box-shadow .2s;
}
.field input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="hidden"]),
.field select:not([multiple]) {
  height: var(--control-height);
  min-height: var(--control-height);
  line-height: 1.2;
}
.field select:not([multiple]) { padding: 0 50px 0 14px; }
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--pine-700); box-shadow: 0 0 0 4px rgba(35,102,90,.12); }
.field input:user-invalid, .field textarea:user-invalid, .field select:user-invalid { border-color: var(--danger); }
.field-help { color: var(--muted); font-size: .8rem; }
.field-error { min-height: 18px; color: var(--danger); font-size: .8rem; }
.form-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.contact-layout { display: grid; grid-template-columns: minmax(0,1.35fr) minmax(280px,.65fr); gap: 24px; align-items: start; }
.contact-form-card .panel-head h2 { margin-top: 9px; font-size: clamp(1.55rem,2.7vw,2.35rem); }
.contact-form-card .field textarea { min-height: 180px; }
.contact-side-card { position: sticky; top: 100px; padding: 30px; border-radius: var(--radius); color: #d6e4e0; background: var(--pine-950); box-shadow: var(--shadow); }
.contact-side-card .eyebrow { color: #f49788; }
.contact-email { display: block; margin: 12px 0 20px; color: #fff; font-size: clamp(1.35rem,2.25vw,2rem); font-weight: 850; letter-spacing: -.035em; overflow-wrap: anywhere; text-decoration: none; }
.contact-side-card p { margin: 0; color: #bed0cb; }
.contact-reassurance { display: grid; gap: 4px; margin-top: 26px; padding: 18px; border: 1px solid rgba(255,255,255,.13); border-radius: 14px; background: rgba(255,255,255,.06); }
.contact-reassurance strong { color: #fff; }
.contact-reassurance span { color: #bed0cb; font-size: .86rem; }
.contact-honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.form-status { margin: 20px 0 0; padding: 13px 15px; border-radius: 12px; font-weight: 700; }
.form-status.success { color: #0d5e43; background: #e1f4eb; }
.form-status.error { color: #8c241f; background: #fde8e5; }
.result-card { position: sticky; top: 100px; padding: 28px; border-radius: var(--radius); color: #fff; background: var(--pine-950); box-shadow: var(--shadow); }
.result-card h2 { color: #fff; font-size: 1.25rem; }
.result-line { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; padding: 15px 0; border-bottom: 1px solid rgba(255,255,255,.14); }
.result-line strong { font-size: 1.2rem; }
.result-total { margin-top: 18px; padding: 20px; border-radius: 15px; background: var(--brick); }
.result-total span { display: block; font-size: .84rem; opacity: .9; }
.result-total strong { display: block; margin-top: 3px; font-size: 2rem; }
.legal-note { margin-top: 18px; padding: 15px; border-radius: 13px; color: #d6e4e0; background: rgba(255,255,255,.07); font-size: .8rem; }
.document-preview { padding: 42px; border: 1px solid var(--line); border-radius: 3px; color: #202624; background: #fff; box-shadow: var(--shadow-sm); }
.document-preview h2 { margin-bottom: 25px; text-align: center; font-size: 1.7rem; }
.document-preview h3 { margin: 25px 0 10px; font-size: 1.05rem; letter-spacing: 0; }
.document-preview p { margin: 8px 0; }
.document-preview .document-meta { display: flex; justify-content: space-between; gap: 25px; margin-bottom: 30px; }
.document-preview .document-signatures { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; margin-top: 55px; }
.room-list { display: grid; gap: 14px; }
.room-row { display: grid; grid-template-columns: 1fr 150px 1.3fr; gap: 12px; align-items: center; padding: 12px; border: 1px solid var(--line); border-radius: 12px; }
.room-row input, .room-row select { width: 100%; min-height: 42px; border: 1px solid #cbdad4; border-radius: 9px; padding: 8px 10px; }

.filter-bar { display: flex; gap: 12px; margin-bottom: 28px; }
.filter-bar input, .filter-bar select { height: var(--control-height); min-height: var(--control-height); border: 1px solid var(--line); border-radius: 13px; padding: 0 14px; background-color: #fff; line-height: 1.2; }
.filter-bar select:not([multiple]) { padding-right: 50px; }
.filter-bar input { flex: 1; }
.category-block { margin-top: 50px; }
.category-title { display: flex; align-items: center; gap: 15px; margin-bottom: 22px; }
.category-title::after { content: ""; height: 1px; flex: 1; background: var(--line); }
.category-title span { color: var(--brick); font-size: .78rem; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }

.auth-layout { min-height: calc(100vh - 76px); display: grid; grid-template-columns: .9fr 1.1fr; }
.auth-aside { position: relative; min-height: 650px; overflow: hidden; background: var(--pine-950); }
.auth-aside img { width: 100%; height: 100%; object-fit: cover; opacity: .7; }
.auth-aside::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg,rgba(8,42,37,.1),rgba(8,42,37,.92)); }
.auth-quote { position: absolute; z-index: 2; left: 9%; right: 9%; bottom: 8%; color: #fff; }
.auth-quote h1 { color: #fff; font-size: clamp(2.2rem,3.5vw,3.4rem); }
.auth-card-wrap { display: grid; place-items: center; padding: 50px 26px; background: #fff; }
.auth-card { width: min(470px,100%); }
.auth-card h1 { font-size: 2.25rem; margin-bottom: 12px; }
.auth-card > p { color: var(--muted); margin: 0 0 28px; }
.auth-switch { margin-top: 22px; color: var(--muted); }
.auth-switch a { color: var(--pine-800); font-weight: 800; }

.dashboard-shell { display: grid; grid-template-columns: 252px minmax(0,1fr); min-height: calc(100vh - 76px); background: var(--sage-50); }
.account-page .header-inner { width: 100%; max-width: none; padding-inline: 28px; }
.account-gate { min-height: calc(100vh - 76px); display: grid; place-items: center; padding: 28px; background: var(--sage-50); }
.account-gate-card { width: min(420px,100%); display: grid; justify-items: center; gap: 13px; padding: 32px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-sm); text-align: center; }
.account-gate-card p { margin: 0; color: var(--muted); }
.sidebar { position: sticky; top: 76px; height: calc(100vh - 76px); display: flex; flex-direction: column; padding: 25px 17px; color: #fff; background: var(--pine-950); }
.sidebar-title { padding: 0 11px 12px; color: #91aaa3; font-size: .72rem; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.sidebar-nav { display: grid; gap: 5px; }
.sidebar-nav button, .sidebar-nav a { width: 100%; display: flex; align-items: center; gap: 11px; border: 0; border-radius: 12px; padding: 12px 13px; color: #c8d9d4; background: transparent; font: inherit; font-size: .9rem; font-weight: 720; text-align: left; text-decoration: none; cursor: pointer; }
.sidebar-nav button:hover, .sidebar-nav button.active, .sidebar-nav a:hover { color: #fff; background: rgba(255,255,255,.1); }
.sidebar-nav .admin-link { margin-top: 8px; color: #fff; background: var(--brick); }
.sidebar-user { margin-top: auto; padding: 15px 11px 0; border-top: 1px solid rgba(255,255,255,.1); }
.sidebar-user strong, .sidebar-user small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar-user small { color: #91aaa3; }
.dashboard-main { min-width: 0; padding: 38px; }
.dashboard-top { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.dashboard-top h1 { font-size: clamp(1.9rem,3vw,2.7rem); }
.dashboard-top p { margin: 7px 0 0; color: var(--muted); }
.metric-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; }
.metric { padding: 21px; border: 1px solid var(--line); border-radius: 17px; background: #fff; }
.metric span { color: var(--muted); font-size: .82rem; }
.metric strong { display: block; margin-top: 8px; color: var(--pine-950); font-size: 1.75rem; }
.metric em { display: inline-block; margin-top: 8px; color: var(--success); font-size: .75rem; font-style: normal; font-weight: 760; }
.dashboard-grid { display: grid; grid-template-columns: 1.35fr .65fr; gap: 18px; margin-top: 18px; }
.chart-wrap { min-height: 300px; padding: 24px; }
.chart { width: 100%; height: 220px; overflow: visible; }
.chart-grid-line { stroke: #dce7e2; stroke-width: 1; }
.chart-bar { fill: var(--pine-700); rx: 7; }
.chart-bar-current { fill: var(--brick); }
.chart-label { fill: #697773; font-size: 11px; text-anchor: middle; }
.donut-wrap { display: grid; place-items: center; min-height: 255px; }
.donut { width: 170px; height: 170px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--pine-700) var(--donut,0%), #e6efeb 0); }
.donut::after { content: ""; width: 115px; height: 115px; border-radius: 50%; background: #fff; }
.donut-label { position: absolute; text-align: center; }
.donut-label strong { display: block; font-size: 1.6rem; }
.data-table { width: 100%; border-collapse: collapse; }
.data-table th, .data-table td { padding: 14px 12px; border-bottom: 1px solid var(--line); text-align: left; font-size: .88rem; }
.data-table th { color: var(--muted); font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; }
.status { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 5px 9px; font-size: .75rem; font-weight: 780; background: var(--sage-100); color: var(--success); }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status-warning { color: var(--warning); background: #fff3df; }
.status-danger { color: var(--danger); background: var(--brick-soft); }
.empty-state { padding: 50px 20px; text-align: center; color: var(--muted); }
.empty-state strong { display: block; color: var(--pine-950); font-size: 1.1rem; }
.view[hidden] { display: none !important; }
.list-card-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; }
.property-card { padding: 20px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.property-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.property-card h3 { font-size: 1.08rem; letter-spacing: -.015em; }
.property-card p { margin: 5px 0 16px; color: var(--muted); font-size: .84rem; }
.property-card-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding-top: 14px; border-top: 1px solid var(--line); }
.property-card-stats span { color: var(--muted); font-size: .72rem; }
.property-card-stats strong { display: block; font-size: .95rem; }
.inline-actions { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 16px; }
.icon-button { width: 37px; height: 37px; border: 1px solid var(--line); border-radius: 10px; color: var(--pine-900); background: #fff; cursor: pointer; }
.danger-button { color: var(--danger); }
.section-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 18px; }
.section-toolbar h2 { font-size: 1.7rem; }
.section-toolbar p { margin: 5px 0 0; color: var(--muted); }

.modal { position: fixed; inset: 0; z-index: 1500; display: grid; place-items: center; padding: 22px; background: rgba(5,28,24,.72); }
.modal[hidden] { display: none; }
.modal-card { width: min(720px,100%); max-height: calc(100vh - 44px); overflow: auto; border-radius: 24px; background: #fff; box-shadow: var(--shadow); }
.modal-head { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 22px 25px; border-bottom: 1px solid var(--line); background: #fff; }
.modal-close { width: 40px; height: 40px; border: 0; border-radius: 11px; color: var(--pine-900); background: var(--sage-100); cursor: pointer; }
.modal-body { padding: 25px; }

.news-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.news-card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; box-shadow: var(--shadow-sm); }
.news-card-media { aspect-ratio: 16/9; overflow: hidden; background: var(--sage-100); }
.news-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.news-card:hover img { transform: scale(1.03); }
.news-card-body { display: flex; flex: 1; flex-direction: column; padding: 23px; }
.news-card-meta { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); font-size: .75rem; }
.news-card h2 { margin: 13px 0 10px; font-size: 1.35rem; }
.news-card p { margin: 0 0 20px; color: var(--muted); }
.news-card a { margin-top: auto; color: var(--pine-800); font-weight: 800; text-decoration: none; }
.loader-state { display: grid; place-items: center; gap: 12px; min-height: 180px; color: var(--muted); }
.spinner { width: 28px; height: 28px; border: 3px solid #d5e2dc; border-top-color: var(--brick); border-radius: 50%; animation: spin .8s linear infinite; }
.button .spinner { width: 17px; height: 17px; border-width: 2px; border-color: rgba(255,255,255,.38); border-top-color: #fff; }
@keyframes spin { to { transform: rotate(360deg); } }
.skeleton { position: relative; overflow: hidden; background: #e8efec; }
.skeleton::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg,transparent,rgba(255,255,255,.7),transparent); animation: shimmer 1.2s infinite; }
@keyframes shimmer { to { transform: translateX(100%); } }

.toast-region { position: fixed; z-index: 2500; right: 18px; bottom: 18px; display: grid; gap: 10px; width: min(390px,calc(100% - 36px)); }
.toast { padding: 14px 16px; border-radius: 13px; color: #fff; background: var(--pine-950); box-shadow: var(--shadow); animation: toast-in .25s ease-out; }
.toast.error { background: var(--danger); }
.toast.success { background: var(--success); }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }

.site-footer { padding: 58px 0 22px; color: #c8d9d4; background: var(--pine-950); }
.footer-top { display: grid; grid-template-columns: 1.5fr repeat(3,1fr); gap: 50px; }
.footer-brand img { width: 180px; margin-bottom: 18px; }
.footer-brand p { max-width: 350px; color: #9fb7b0; }
.footer-column strong { display: block; margin-bottom: 15px; color: #fff; }
.footer-column a { display: block; margin: 8px 0; color: #afc2bd; text-decoration: none; font-size: .9rem; }
.footer-column a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 45px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.11); color: #89a39c; font-size: .78rem; }

@media (max-width: 1040px) {
  .main-nav > a { padding-inline: 8px; font-size: .84rem; }
  .header-actions .button { padding-inline: 12px; font-size: .84rem; }
  .hero-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .card-grid { grid-template-columns: repeat(2,1fr); }
  .metric-grid { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 860px) {
  .header-inner { min-height: 70px; }
  .brand img { width: 158px; }
  .menu-toggle { display: inline-flex; margin-left: auto; }
  .main-nav { position: fixed; inset: 70px 0 auto 0; max-height: calc(100vh - 70px); overflow: auto; display: none; margin: 0; padding: 18px 20px 26px; border-bottom: 1px solid var(--line); background: var(--ivory); box-shadow: var(--shadow); }
  .main-nav.open { display: grid; }
  .main-nav > a { padding: 13px; font-size: 1rem; }
  .header-actions { display: none; }
  .mobile-auth { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; padding-top: 18px; border-top: 1px solid var(--line); }
  .hero { padding-top: 32px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { text-align: center; }
  .hero-copy .lead { margin-inline: auto; }
  .hero-actions, .trust-row { justify-content: center; }
  .hero-visual { min-height: 520px; }
  .hero-visual > img { min-height: 520px; }
  .stat-grid { grid-template-columns: repeat(2,1fr); }
  .feature-grid, .workspace-grid, .auth-layout, .contact-layout { grid-template-columns: 1fr; }
  .contact-side-card { position: static; }
  .result-card { position: static; }
  .auth-aside { display: none; }
  .dashboard-shell { grid-template-columns: 1fr; }
  .account-page .header-inner { padding-inline: 20px; }
  .sidebar { position: static; height: auto; padding: 14px; flex-direction: row; overflow-x: auto; }
  .sidebar-title, .sidebar-user { display: none; }
  .sidebar-nav { display: flex; min-width: max-content; }
  .sidebar-nav .admin-link { margin-top: 0; }
  .dashboard-main { padding: 25px 20px 70px; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .legal-party-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 620px) {
  .container { width: min(100% - 28px,var(--container)); }
  .account-page .header-inner { padding-inline: 14px; }
  h1 { font-size: 2.25rem; }
  h2 { font-size: 1.85rem; }
  .contact-hero .contact-page-title { font-size: 2.1rem; }
  .section { padding: 68px 0; }
  .section-heading { display: block; }
  .section-heading p { margin-top: 14px; }
  .hero-visual, .hero-visual > img { min-height: 560px; }
  .hero-calculator { left: 12px; right: 12px; bottom: 12px; }
  .mini-form { grid-template-columns: 1fr 1fr; }
  .mini-form label:first-child { grid-column: 1 / -1; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .stat-item { padding: 20px 14px; }
  .card-grid, .news-grid, .form-grid, .metric-grid { grid-template-columns: 1fr; }
  .site-map-grid, .faq-grid { grid-template-columns: 1fr; }
  .legal-facts > div { grid-template-columns: 1fr; gap: 4px; }
  .list-card-grid { grid-template-columns: 1fr; }
  .field-full { grid-column: auto; }
  .tool-card { min-height: 225px; }
  .filter-bar { display: grid; }
  .dashboard-top { align-items: flex-start; flex-direction: column; }
  .dashboard-top .button { width: 100%; }
  .panel-head { padding: 20px; }
  .panel-body { padding: 20px; }
  .data-table-wrap { overflow-x: auto; }
  .data-table { min-width: 620px; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 35px 24px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; }
}

@media print {
  .site-header, .site-footer, .no-print, .toast-region { display: none !important; }
  body { background: #fff; }
  main { margin: 0; }
  body.print-document-active * { visibility: hidden !important; }
  body.print-document-active .print-document, body.print-document-active .print-document * { visibility: visible !important; }
  body.print-document-active .print-document { position: absolute; inset: 0; width: 100%; padding: 18mm; border: 0; box-shadow: none; }
}
