:root {
  color-scheme: light;
  --ink: #171612;
  --muted: #716d62;
  --line: #ded8ca;
  --surface: #ffffff;
  --soft: #f3f0e8;
  --navy: #0a0a09;
  --navy-2: #1b1914;
  --accent: #d4b15f;
  --accent-dark: #9d782d;
  --green: #2a7f62;
  --shadow: 0 18px 48px rgba(23, 20, 13, 0.1);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* Etap 50 — centrum SaaS, bezpieczeństwo i wyjaśnialny Copilot. */
.score-ring {
  display: grid;
  place-items: center;
  min-width: 128px;
  min-height: 128px;
  padding: 1rem;
  border: 1px solid rgba(201, 164, 92, .48);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 164, 92, .18), rgba(10, 10, 10, .35) 68%);
  text-align: center;
}
.score-ring strong { color: var(--gold, #d8b66a); font-size: 1.75rem; line-height: 1; }
.score-ring span { color: #aaa18f; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; }
.list-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .85rem 0; border-bottom: 1px solid rgba(255,255,255,.09); }
.list-row div { display: grid; gap: .25rem; }
.assistant-recommendation { margin: 1rem 0; padding: 1.25rem; border: 1px solid rgba(201,164,92,.25); border-radius: 14px; background: linear-gradient(145deg, rgba(201,164,92,.08), rgba(255,255,255,.025)); }
.inline-form { display: inline-flex; align-items: center; flex-wrap: wrap; gap: .45rem; }
.inline-form input, .inline-form select { min-width: 9rem; }
.auth-card-wide { max-width: 760px; }
.auth-card code, .auth-card pre { display: block; overflow-wrap: anywhere; white-space: pre-wrap; padding: .8rem; border: 1px solid rgba(201,164,92,.25); border-radius: 8px; background: #080808; color: #e0c98e; }

/* Etap 27 — mobilny obchód nieruchomości */
.capture-advantage-strip,
.capture-privacy-notice {
  display: flex;
  gap: .65rem 1.25rem;
  align-items: center;
  flex-wrap: wrap;
  margin: 0 0 1.5rem;
  padding: 1rem 1.25rem;
  border: 1px solid #d8a36f;
  border-radius: 16px;
  background: #fff8ed;
  color: #5a3517;
}

.capture-privacy-notice {
  display: block;
  border-color: #9bb8d4;
  background: #eef6fc;
  color: #173753;
}

.capture-privacy-notice p { margin: .35rem 0 0; }

.compact-filter { grid-template-columns: minmax(220px, 360px) auto; }

.capture-list-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}

.capture-list-card {
  display: block;
  padding: 1.25rem;
  border: 1px solid #d8e0ea;
  border-radius: 18px;
  background: #fff;
  color: #152033;
  box-shadow: 0 12px 28px rgba(23, 43, 69, .06);
  text-decoration: none;
}

.capture-list-card > div:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.capture-list-card h2 { margin: 1rem 0 .35rem; font-size: 1.2rem; }
.capture-list-card p { margin: 0; color: #667085; }
.capture-list-card dl { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; margin: 1rem 0; }
.capture-list-card dl div { padding: .65rem; border-radius: 10px; background: #f5f7fa; }
.capture-list-card dt { font-size: .68rem; color: #667085; text-transform: uppercase; }
.capture-list-card dd { margin: .2rem 0 0; font-weight: 700; overflow-wrap: anywhere; }

.capture-form,
.capture-photo-step { display: grid; gap: 1.25rem; }
.capture-step { padding: 1.35rem; }
.capture-step > header { display: flex; gap: 1rem; align-items: flex-start; margin-bottom: 1.25rem; }
.capture-step > header > span {
  display: grid;
  flex: 0 0 2.35rem;
  width: 2.35rem;
  height: 2.35rem;
  place-items: center;
  border-radius: 50%;
  background: #d77c43;
  color: #fff;
  font-weight: 800;
}
.capture-step header h2 { margin: 0; }
.capture-step header p { margin: .25rem 0 0; color: #667085; }

.capture-fields { display: grid; gap: 1rem; }
.capture-fields.two-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.capture-fields label,
.capture-notes,
.audio-file-field,
.capture-photo-description label { display: grid; gap: .35rem; }
.capture-fields label > span,
.capture-notes > span,
.audio-file-field > span,
.capture-photo-description label > span { font-weight: 700; color: #526174; }
.capture-fields .wide { grid-column: 1 / -1; }

.capture-location-button,
.capture-camera-button {
  display: block;
  width: 100%;
  padding: 1.15rem;
  border: 1px solid #1b4f72;
  border-radius: 14px;
  background: #edf6fc;
  color: #153c58;
  font: inherit;
  font-weight: 800;
  text-align: center;
  cursor: pointer;
}
.capture-live-status { color: #526174; }
.capture-ios-help {
  padding: .8rem 1rem;
  border: 1px solid #d9e2ea;
  border-radius: 12px;
  background: #fff;
  color: #4d5d6d;
  line-height: 1.55;
}
.capture-ios-help summary { color: #1b4f72; font-weight: 800; cursor: pointer; }
.capture-ios-help p { margin: .7rem 0 0; }

.capture-recorder {
  display: grid;
  gap: 1rem;
  margin-bottom: 1rem;
  padding: 1rem;
  border-radius: 16px;
  background: #f6f7fa;
}
.capture-agent-confirm { display: flex; gap: .65rem; align-items: flex-start; font-weight: 700; }
.capture-agent-confirm input { margin-top: .2rem; width: 1.1rem; height: 1.1rem; }
.capture-recorder-actions { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
.capture-recorder-actions button {
  min-height: 48px;
  padding: .7rem 1rem;
  border: 0;
  border-radius: 12px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}
.capture-recorder-actions .record-start { background: #b42318; color: #fff; }
.capture-recorder-actions .record-stop { background: #152033; color: #fff; }
.capture-recorder-actions button:disabled { opacity: .45; cursor: not-allowed; }
.capture-recorder audio { width: 100%; }
.capture-suggestion { margin-top: 1rem; padding: 1rem; border: 1px solid #d8e0ea; border-radius: 12px; }
.capture-suggestion summary { font-weight: 800; cursor: pointer; }

.capture-sticky-save { position: sticky; bottom: .75rem; z-index: 5; text-align: right; pointer-events: none; }
.capture-sticky-save .button { pointer-events: auto; box-shadow: 0 8px 24px rgba(21, 32, 51, .2); }
.capture-photo-upload { display: grid; gap: .75rem; }
.capture-photo-upload input[type=file] { position: absolute; width: 1px; height: 1px; opacity: 0; }
.capture-intelligence {
  display: grid;
  gap: 1rem;
  padding: 1.15rem;
  border: 1px solid #bfd5e3;
  border-radius: 18px;
  background: linear-gradient(135deg, #f4f9fc, #fff);
}
.capture-intelligence-heading { display: flex; justify-content: space-between; gap: 1rem; align-items: end; }
.capture-intelligence-heading h3 { margin: .25rem 0; font-size: 1.35rem; }
.capture-intelligence-heading p { max-width: 780px; margin: 0; color: #526174; line-height: 1.55; }
.capture-analysis-stale { padding: .8rem 1rem; border: 1px solid #e9c66f; border-radius: 11px; background: #fff8df; color: #6d5010; }
.capture-analysis-summary { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 1rem; align-items: stretch; }
.capture-readiness { display: grid; place-items: center; align-content: center; padding: 1rem; border-radius: 14px; text-align: center; }
.capture-readiness strong { font-family: Georgia, serif; font-size: 2.4rem; line-height: 1; }
.capture-readiness span { margin-top: .45rem; font-size: .78rem; font-weight: 800; }
.capture-readiness-incomplete { background: #f9e5e3; color: #963b35; }
.capture-readiness-review { background: #fff0cf; color: #805b10; }
.capture-readiness-ready { background: #dff4e7; color: #17663a; }
.capture-analysis-summary dl { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .65rem; margin: 0; }
.capture-analysis-summary dl div { padding: .85rem; border: 1px solid #dce5eb; border-radius: 12px; background: #fff; }
.capture-analysis-summary dt { color: #667085; font-size: .72rem; font-weight: 800; }
.capture-analysis-summary dd { margin: .35rem 0 0; color: #172b45; font-weight: 900; }
.capture-coverage { display: flex; flex-wrap: wrap; gap: .45rem; }
.capture-coverage span,
.capture-recommended-position { padding: .28rem .6rem; border-radius: 999px; font-size: .76rem; font-weight: 800; }
.capture-coverage .is-present { background: #dff4e7; color: #17663a; }
.capture-coverage .is-missing { background: #fff0cf; color: #805b10; }
.capture-recommended-position { background: #f0e8fb; color: #5a3580; }
.capture-analysis-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
.capture-analysis-columns > div { padding: .85rem 1rem; border: 1px solid #dce5eb; border-radius: 12px; background: #fff; }
.capture-analysis-columns h4 { margin: 0 0 .55rem; }
.capture-analysis-columns ul { margin: 0; padding-left: 1.15rem; color: #526174; }
.capture-analysis-columns li + li { margin-top: .35rem; }
.capture-analysis-columns .is-positive { color: #17663a; }
.capture-description-draft { padding: .9rem 1rem; border: 1px solid #cfdce5; border-radius: 12px; background: #fff; }
.capture-description-draft summary { color: #173753; font-weight: 900; cursor: pointer; }
.capture-description-draft > div { margin: .8rem 0; color: #293c4d; line-height: 1.6; }
.capture-description-draft > p { color: #667085; font-size: .78rem; }
.capture-description-draft form { margin: .8rem 0; }
.capture-description-draft small { display: block; color: #526174; }
.capture-analysis-empty { padding: 1rem; border: 1px dashed #afc4d2; border-radius: 12px; color: #526174; text-align: center; }
.capture-analysis-meta { margin: 0; color: #718096; font-size: .75rem; }
.capture-photo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1rem; }
.capture-photo-card { overflow: hidden; border: 1px solid #d8e0ea; border-radius: 16px; background: #fff; }
.capture-photo-card > img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: #e9edf2; }
.capture-photo-metrics,
.capture-photo-description,
.capture-photo-links { padding: .8rem 1rem; }
.capture-photo-metrics { display: flex; flex-wrap: wrap; gap: .4rem; }
.capture-quality-warning,
.capture-quality-ok { padding: .22rem .55rem; border-radius: 999px; font-size: .78rem; }
.capture-quality-warning { background: #fff2d6; color: #7a4b00; }
.capture-quality-ok { background: #e5f7ed; color: #17663a; }
.capture-photo-profile,
.capture-review-approved,
.capture-review-pending {
  padding: .22rem .55rem;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 700;
}
.capture-photo-profile { background: #eaf1f7; color: #264c68; }
.capture-review-approved { background: #dff5e8; color: #17663a; }
.capture-review-pending { background: #fff0d9; color: #805000; }
.capture-photo-compare { padding: .8rem 1rem; border-top: 1px solid #e4e8ef; }
.capture-photo-compare summary { color: #244c65; font-weight: 800; cursor: pointer; }
.capture-photo-compare > div { display: grid; grid-template-columns: 1fr 1fr; gap: .65rem; margin-top: .8rem; }
.capture-photo-compare figure { margin: 0; }
.capture-photo-compare img { display: block; width: 100%; aspect-ratio: 4 / 3; border-radius: 9px; object-fit: cover; }
.capture-photo-compare figcaption { margin-top: .3rem; color: #667085; font-size: .75rem; text-align: center; }
.capture-photo-studio { display: grid; gap: .65rem; padding: .8rem 1rem; border-top: 1px solid #e4e8ef; background: #f7fafc; }
.capture-photo-studio label { display: grid; gap: .35rem; }
.capture-photo-studio label span { color: #526174; font-weight: 700; }
.capture-photo-studio select { width: 100%; }
.capture-photo-studio button,
.capture-photo-review button {
  min-height: 42px;
  border: 1px solid #244c65;
  border-radius: 10px;
  background: #fff;
  color: #244c65;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}
.capture-photo-studio small { color: #667085; line-height: 1.45; }
.capture-photo-review { padding: .8rem 1rem; border-top: 1px solid #e4e8ef; }
.capture-photo-review button { width: 100%; background: #e9f6ee; border-color: #2a7f62; color: #17663a; }
.capture-photo-description { display: grid; gap: .65rem; border-top: 1px solid #e4e8ef; }
.capture-photo-description button,
.capture-photo-links button { border: 0; background: none; color: #b42318; font: inherit; font-weight: 700; cursor: pointer; }
.capture-photo-description > button { justify-self: start; color: #1b4f72; }
.capture-photo-links { display: flex; justify-content: space-between; gap: 1rem; border-top: 1px solid #e4e8ef; }
.capture-photo-links form { margin: 0; }

.capture-convert-card {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  align-items: center;
  margin-top: 1.5rem;
  padding: 1.5rem;
  border-radius: 18px;
  background: #172b45;
  color: #fff;
}
.capture-convert-card h2 { margin: .25rem 0; color: #fff; }
.capture-convert-card p { margin: 0; color: #d9e2ec; }

@media (max-width: 720px) {
  .capture-heading h1 { font-size: clamp(2rem, 12vw, 3.2rem); }
  .capture-fields.two-columns { grid-template-columns: 1fr; }
  .capture-fields .wide { grid-column: auto; }
  .capture-step { padding: 1rem; }
  .capture-convert-card { align-items: stretch; flex-direction: column; }
  .capture-convert-card .button { width: 100%; text-align: center; }
  .compact-filter { grid-template-columns: 1fr; }
  .capture-list-card dl { grid-template-columns: 1fr 1fr; }
  .capture-photo-compare > div { grid-template-columns: 1fr; }
  .capture-intelligence-heading { align-items: stretch; flex-direction: column; }
  .capture-intelligence-heading .button { width: 100%; }
  .capture-analysis-summary,
  .capture-analysis-columns { grid-template-columns: 1fr; }
  .capture-analysis-summary dl { grid-template-columns: 1fr 1fr; }
}

/* Etap 20 — bezpieczna skrzynka odbiorcza */
.mail-settings-group {
  border: 0;
  border-top: 1px solid var(--line, #d8dee8);
  margin: 0 0 1.4rem;
  padding: 1.3rem 0 0;
}

.mail-settings-group:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.mail-settings-group legend {
  color: var(--ink, #132033);
  font-family: var(--font-display, Georgia, serif);
  font-size: 1.35rem;
  font-weight: 800;
  padding: 0 .7rem 0 0;
}

.field-help {
  color: #667085;
  font-size: .92rem;
  line-height: 1.55;
}

.button-block {
  display: block;
  margin-top: .75rem;
  width: 100%;
}

.email-inbox-summary {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin: 0 0 1rem;
}

.email-inbox-summary span {
  background: #fff;
  border: 1px solid #d8dee8;
  border-radius: 999px;
  color: #526077;
  padding: .65rem 1rem;
}

.inbound-email-table tr.is-unread td {
  background: #fff9ed;
}

.inbound-email-table td small {
  color: #667085;
  display: block;
  margin-top: .25rem;
}

.inbound-detail-sidebar {
  display: grid;
  gap: 1rem;
}

.inbound-relations-form p {
  margin: 0 0 .8rem;
}

.inbound-relations-form label {
  display: block;
  font-size: .82rem;
  font-weight: 800;
  margin-bottom: .3rem;
}

.inbound-relations-form select {
  width: 100%;
}

@media (max-width: 760px) {
  .email-inbox-summary { display: grid; }
}

/* Etap 39 — publiczny asystent klientów 24/7 */
.concierge-page,
.concierge-receipt-page { min-height: 75vh; color: #211d16; background: #f1eee7; }
.concierge-hero {
  padding: 88px 0 70px;
  color: #f4ecdd;
  border-bottom: 1px solid #4b3c20;
  background:
    radial-gradient(circle at 78% 22%, rgba(216, 177, 84, .18), transparent 28%),
    radial-gradient(circle at 8% 90%, rgba(160, 121, 40, .1), transparent 32%),
    linear-gradient(135deg, #070706, #17140e 62%, #090806);
}
.concierge-hero-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(290px, .65fr); gap: 70px; align-items: center; }
.concierge-hero h1 { max-width: 880px; margin: 14px 0 22px; color: #f7efdf; font-family: Georgia, "Times New Roman", serif; font-size: clamp(3rem, 7vw, 6.25rem); font-weight: 500; letter-spacing: -.06em; line-height: .91; }
.concierge-hero h1 em { color: #d6b35f; font-weight: 500; }
.concierge-hero-grid > div > p { max-width: 700px; color: #bdb4a3; font-size: 1.08rem; line-height: 1.75; }
.concierge-assurances { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 30px; }
.concierge-assurances span { padding: 8px 12px; color: #dac170; border: 1px solid #584722; border-radius: 99px; background: rgba(0, 0, 0, .28); font-size: .71rem; font-weight: 850; }
.concierge-trust-card { position: relative; min-height: 330px; padding: 35px; display: grid; align-content: end; overflow: hidden; border: 1px solid #554526; border-radius: 22px; background: linear-gradient(155deg, #211d14, #0c0b08 68%); box-shadow: 0 32px 80px rgba(0, 0, 0, .33); }
.concierge-trust-card::before { position: absolute; width: 220px; height: 220px; top: -90px; right: -70px; border: 1px solid rgba(215, 180, 95, .25); border-radius: 50%; content: ""; }
.concierge-orbit { position: absolute; top: 35px; left: 35px; width: 68px; height: 68px; display: grid; place-items: center; color: #d5b159; border: 1px solid #735b2c; border-radius: 50%; font-family: Georgia, serif; font-size: 2.1rem; }
.concierge-trust-card strong { color: #f2e8d5; font-family: Georgia, serif; font-size: 1.7rem; }
.concierge-trust-card p { margin: 12px 0; color: #c5bbab; line-height: 1.6; }
.concierge-trust-card small { color: #8f887a; line-height: 1.55; }
.concierge-form-section { padding-block: 64px 92px; }
.concierge-layout { display: grid; grid-template-columns: minmax(0, 850px) minmax(270px, 340px); gap: 30px; align-items: start; justify-content: center; }
.concierge-form { padding: 34px; border: 1px solid #d7cebc; border-radius: 20px; background: #fcfaf6; box-shadow: 0 24px 70px rgba(32, 24, 11, .08); }
.concierge-progress { margin-bottom: 35px; display: grid; grid-template-columns: repeat(4, 1fr); }
.concierge-progress span { position: relative; padding-top: 19px; color: #988f7e; border-top: 2px solid #ded6c7; font-size: .78rem; font-weight: 900; }
.concierge-progress span::before { position: absolute; width: 12px; height: 12px; top: -7px; left: 0; border: 2px solid #d9d0c0; border-radius: 50%; background: #fcfaf6; content: ""; }
.concierge-progress span.active,
.concierge-progress span.complete { color: #72551d; border-color: #bd923a; }
.concierge-progress span.active::before,
.concierge-progress span.complete::before { border-color: #b98d35; background: #d5b25e; }
.concierge-progress small { display: block; margin-top: 2px; color: inherit; font-size: .69rem; }
.concierge-step { padding: 4px 0; }
.concierge-form.is-enhanced .concierge-step[hidden] { display: none; }
.concierge-step > header { margin-bottom: 24px; display: flex; gap: 16px; align-items: flex-start; }
.concierge-step > header > span { width: 40px; height: 40px; flex: 0 0 40px; display: grid; place-items: center; color: #2b2417; border-radius: 50%; background: #d4b15f; font-size: .72rem; font-weight: 900; }
.concierge-step h2 { margin: 0; color: #1a1610; font-family: Georgia, serif; font-size: 1.8rem; }
.concierge-step header p { margin: 5px 0 0; color: #756d5f; line-height: 1.5; }
.concierge-intent-grid ul { padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; list-style: none; }
.concierge-intent-grid label { min-height: 64px; padding: 14px; display: flex; gap: 10px; align-items: center; color: #332c20; border: 1px solid #d9d0c0; border-radius: 12px; background: #fff; font-weight: 800; cursor: pointer; }
.concierge-intent-grid input { width: 18px; height: 18px; accent-color: #a87e29; }
.concierge-form .form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px; }
.concierge-form .form-grid label { display: grid; gap: 6px; color: #625a4d; font-size: .75rem; font-weight: 850; }
.concierge-form .field-full { grid-column: 1 / -1; }
.concierge-form input:not([type="checkbox"]):not([type="radio"]),
.concierge-form select,
.concierge-form textarea { width: 100%; min-height: 49px; padding: 11px 13px; color: #211d16; border: 1px solid #cec5b5; border-radius: 10px; background: #fff; font: inherit; }
.concierge-form textarea { min-height: 120px; resize: vertical; }
.concierge-form input:focus,
.concierge-form select:focus,
.concierge-form textarea:focus { outline: 3px solid rgba(196, 153, 62, .22); border-color: #a77d2b; }
.concierge-actions { margin-top: 27px; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }
.consent-field { margin-top: 22px; display: flex; gap: 11px; align-items: flex-start; color: #4c4437; font-size: .82rem; line-height: 1.55; }
.consent-field input { width: 19px; height: 19px; flex: 0 0 19px; margin-top: 2px; accent-color: #9f7727; }
.consent-field a { color: #7f5d1d; font-weight: 850; }
.concierge-submit-note { color: #847b6b; font-size: .72rem; line-height: 1.5; text-align: right; }
.honeypot-wrap { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
.form-errors,
.field-errors,
.concierge-form .errorlist { color: #873b30; }
.form-errors { margin-bottom: 24px; padding: 16px; border: 1px solid #d9a89d; border-radius: 11px; background: #fff0ed; }
.concierge-form .errorlist { padding-left: 18px; margin: 3px 0; font-size: .74rem; }
.concierge-side { position: sticky; top: 24px; padding: 28px; border: 1px solid #d5ccba; border-radius: 18px; background: #e9e3d8; }
.concierge-side ol { padding: 0; margin: 24px 0; display: grid; gap: 18px; list-style: none; counter-reset: concierge-benefit; }
.concierge-side li { position: relative; padding-left: 36px; counter-increment: concierge-benefit; }
.concierge-side li::before { position: absolute; left: 0; top: 0; color: #997128; content: counter(concierge-benefit, decimal-leading-zero); font-size: .7rem; font-weight: 900; }
.concierge-side li strong,
.concierge-side li span { display: block; }
.concierge-side li span { margin-top: 4px; color: #665e50; font-size: .8rem; line-height: 1.5; }
.concierge-data-note { padding: 17px; color: #cfc3ae; border: 1px solid #44391f; border-radius: 12px; background: #17140e; }
.concierge-data-note p { margin: 6px 0 0; color: #a89f90; font-size: .76rem; line-height: 1.55; }
.concierge-receipt-page { padding: 80px 0 100px; }
.concierge-receipt { max-width: 1040px; text-align: center; }
.concierge-success-mark { width: 70px; height: 70px; margin: 0 auto 22px; display: grid; place-items: center; color: #1b180f; border-radius: 50%; background: #d4b15f; font-size: 2rem; }
.concierge-receipt h1 { max-width: 850px; margin: 14px auto; font-family: Georgia, serif; font-size: clamp(2.2rem, 5vw, 4.4rem); line-height: 1; }
.concierge-receipt > p { color: #6f6758; }
.concierge-receipt-metrics { margin: 38px 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.concierge-receipt-metrics article { padding: 22px; display: grid; gap: 7px; border: 1px solid #d8cfbe; border-radius: 14px; background: #fbf9f5; }
.concierge-receipt-metrics span { color: #817868; font-size: .72rem; font-weight: 850; text-transform: uppercase; }
.concierge-receipt-metrics strong { font-family: Georgia, serif; font-size: 1.45rem; }
.concierge-preliminary-matches { margin-top: 60px; text-align: left; }
.concierge-match-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.concierge-match-card { padding: 20px; display: grid; gap: 8px; color: #211d16; border: 1px solid #d8ceba; border-radius: 14px; background: #fff; text-decoration: none; }
.concierge-match-card.external { border-style: dashed; }
.concierge-match-card .match-source { color: #8a6724; font-size: .68rem; font-weight: 900; text-transform: uppercase; }
.concierge-match-card small { color: #71695b; }
.concierge-match-card div { display: flex; justify-content: space-between; gap: 10px; margin-top: 8px; }
.concierge-match-card b { color: #8c6824; }
.concierge-disclaimer { padding: 15px; color: #756d5f; border-radius: 10px; background: #e6e0d5; font-size: .72rem; line-height: 1.5; }
.hero-concierge-cta { margin-top: 24px; }
.home-concierge-banner { margin-top: 55px; padding: 36px; display: flex; justify-content: space-between; align-items: center; gap: 35px; color: #eee4d2; border: 1px solid #554624; border-radius: 20px; background: linear-gradient(135deg, #0d0c09, #211c12); }
.home-concierge-banner h2 { max-width: 720px; margin: 10px 0; color: #f4ead8; font-family: Georgia, serif; font-size: clamp(1.8rem, 4vw, 3rem); }
.home-concierge-banner p { max-width: 740px; margin: 0; color: #aaa191; line-height: 1.65; }

/* Panel asystenta klientów */
.crm-body .concierge-panel-alert { margin-bottom: 22px; padding: 17px 20px; display: flex; gap: 8px 16px; flex-wrap: wrap; color: #d8c58e; border: 1px solid #685626; border-radius: 7px; background: #211c11; }
.crm-body .concierge-panel-alert.is-danger { color: #f0b0a5; border-color: #754238; background: #281512; }
.crm-body .concierge-kpi-grid { margin-bottom: 22px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.crm-body .concierge-kpi-grid article { padding: 18px; display: grid; gap: 5px; border: 1px solid #302b22; border-radius: 7px; background: #13120f; }
.crm-body .concierge-kpi-grid span { color: #938b7c; font-size: .69rem; font-weight: 850; text-transform: uppercase; }
.crm-body .concierge-kpi-grid strong { color: #eee5d5; font-family: Georgia, serif; font-size: 2rem; }
.crm-body .concierge-kpi-grid small { color: #786f61; font-size: .65rem; }
.crm-body .concierge-kpi-grid .is-hot { border-color: #685425; box-shadow: inset 3px 0 #d0aa50; }
.crm-body .concierge-kpi-grid .is-overdue { border-color: #6d3831; box-shadow: inset 3px 0 #d26f61; }
.crm-body .concierge-filter { grid-template-columns: minmax(220px, 1fr) 220px 220px auto; }
.crm-body .concierge-score { padding: 5px 8px; display: inline-block; color: #16130d; border-radius: 99px; background: #b7ac95; font-size: .72rem; font-weight: 900; }
.crm-body .concierge-score.score-warm,
.crm-body .concierge-detail-score.score-warm { background: #d2ad55; }
.crm-body .concierge-score.score-hot,
.crm-body .concierge-detail-score.score-hot { background: #e18572; }
.crm-body .concierge-table tr.is-overdue td { background: rgba(124, 54, 44, .16); }
.crm-body .concierge-overdue-text { color: #e99788; }
.crm-body .concierge-safety-strip { display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.crm-body .concierge-safety-strip p { max-width: 820px; margin: 6px 0 0; color: #938b7c; }
.crm-body .concierge-safety-strip > span { padding: 7px 10px; color: #d6b35e; border: 1px solid #5e4d24; border-radius: 99px; font-size: .68rem; font-weight: 900; white-space: nowrap; }
.crm-body .concierge-settings-layout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(300px, .75fr); gap: 18px; align-items: start; }
.crm-body .concierge-settings-sidebar { display: grid; gap: 18px; }
.crm-body .concierge-feature-list { padding-left: 19px; color: #aaa294; line-height: 1.8; }
.crm-body .concierge-guardrail-card { color: #d7c482; border-color: #554622; background: linear-gradient(135deg, #17140e, #211c12); }
.crm-body .concierge-guardrail-card p { color: #999182; line-height: 1.65; }
.crm-body .concierge-detail-score { min-width: 150px; padding: 17px; display: grid; color: #1c170d; border-radius: 7px; background: #aaa08d; }
.crm-body .concierge-detail-score span { font-size: .65rem; font-weight: 900; text-transform: uppercase; }
.crm-body .concierge-detail-score strong { font-family: Georgia, serif; font-size: 2.5rem; line-height: 1; }
.crm-body .concierge-detail-score small { color: inherit; }
.crm-body .concierge-detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: start; }
.crm-body .concierge-record-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.crm-body .concierge-record-links a { padding: 7px 10px; color: #d3b35f; border: 1px solid #4b4028; border-radius: 5px; text-decoration: none; font-size: .72rem; font-weight: 850; }
.crm-body .concierge-decision-actions { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 8px; }
.crm-body .concierge-spam-button { padding: 9px 12px; color: #d99083; border: 1px solid #613c35; border-radius: 5px; background: transparent; font: inherit; font-size: .72rem; font-weight: 800; cursor: pointer; }
.crm-body .concierge-reason-list,
.crm-body .concierge-missing-list { padding: 0; display: grid; gap: 8px; list-style: none; }
.crm-body .concierge-reason-list li,
.crm-body .concierge-missing-list li { position: relative; padding: 10px 12px 10px 35px; color: #bcb4a6; border: 1px solid #2e2a22; border-radius: 6px; background: #171612; }
.crm-body .concierge-reason-list li::before { position: absolute; left: 12px; color: #82c89b; content: "✓"; }
.crm-body .concierge-missing-list li::before { position: absolute; left: 12px; color: #d2ad55; content: "?"; font-weight: 900; }
.crm-body .concierge-criteria-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
.crm-body .concierge-criteria-grid div { padding: 14px; display: grid; gap: 5px; border: 1px solid #2e2a22; border-radius: 6px; background: #171612; }
.crm-body .concierge-criteria-grid span { color: #80786b; font-size: .65rem; font-weight: 850; text-transform: uppercase; }
.crm-body .concierge-criteria-grid strong { color: #ddd5c6; overflow-wrap: anywhere; }
.crm-body .concierge-details-note { margin-top: 12px; padding: 16px; color: #aaa294; border-left: 3px solid #b98c35; background: #171612; line-height: 1.65; }
.crm-body .concierge-dashboard-match-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
.crm-body .concierge-dashboard-match-grid a { padding: 15px; display: grid; gap: 7px; color: #ded6c7; border: 1px solid #332e24; border-radius: 6px; background: #171612; text-decoration: none; }
.crm-body .concierge-dashboard-match-grid span { color: #c6a650; font-size: .66rem; font-weight: 900; text-transform: uppercase; }
.crm-body .concierge-dashboard-match-grid small { color: #898174; }
.crm-body .concierge-reply-draft { width: 100%; margin-bottom: 14px; padding: 15px; color: #cfc7b9; border: 1px solid #342f26; border-radius: 6px; background: #11100d; font: inherit; line-height: 1.6; resize: vertical; }
.crm-body .concierge-transcript { display: grid; gap: 10px; }
.crm-body .concierge-transcript article { padding: 13px; border: 1px solid #302c23; border-radius: 7px; background: #171612; }
.crm-body .concierge-transcript article.role-assistant { border-color: #514421; background: #1f1b12; }
.crm-body .concierge-transcript span { color: #ae8a39; font-size: .66rem; font-weight: 900; text-transform: uppercase; }
.crm-body .concierge-transcript p { margin: 7px 0 0; color: #aaa294; line-height: 1.6; }

@media (max-width: 1050px) {
  .concierge-hero-grid,
  .concierge-layout,
  .crm-body .concierge-settings-layout { grid-template-columns: 1fr; }
  .concierge-side { position: static; }
  .crm-body .concierge-kpi-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .concierge-hero { padding-block: 58px 48px; }
  .concierge-hero-grid { gap: 34px; }
  .concierge-trust-card { min-height: 280px; padding: 26px; }
  .concierge-form { padding: 20px 16px; }
  .concierge-progress small { display: none; }
  .concierge-intent-grid ul,
  .concierge-form .form-grid,
  .concierge-receipt-metrics,
  .concierge-match-grid,
  .crm-body .concierge-kpi-grid,
  .crm-body .concierge-detail-grid,
  .crm-body .concierge-criteria-grid,
  .crm-body .concierge-dashboard-match-grid { grid-template-columns: 1fr; }
  .concierge-actions .button { width: 100%; }
  .home-concierge-banner,
  .crm-body .concierge-safety-strip { display: grid; }
  .crm-body .concierge-filter { grid-template-columns: 1fr; }
  .crm-body .concierge-detail-score { margin-top: 18px; }
}

/* Etap 37 — bezpieczny portal transakcji klienta */
.crm-body .panel-form-group {
  margin: 0;
  padding: 16px;
  border: 1px solid #3b352a;
  border-radius: 14px;
  background: #0f0f0d;
}

.crm-body .panel-form-group legend {
  padding: 0 8px;
  color: #d4b15f;
  font-weight: 800;
}

.crm-body .panel-form-group ul {
  display: grid;
  gap: 8px;
  margin: 8px 0;
  padding: 0;
  list-style: none;
}

.crm-body .panel-form-group li label,
.crm-body .checkbox-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.crm-body .panel-form-group input,
.crm-body .checkbox-row input { width: 18px; min-height: 18px; }
.client-portal-link-card input[readonly] { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }

.client-portal-body {
  min-height: 100vh;
  margin: 0;
  color: #eee8dc;
  background:
    radial-gradient(circle at 92% 0, rgba(199, 156, 70, .16), transparent 32rem),
    linear-gradient(150deg, #080908, #11120f 48%, #080908);
}

.client-portal-header {
  padding: 24px clamp(20px, 5vw, 72px);
  border-bottom: 1px solid rgba(212, 177, 95, .22);
  background: rgba(8, 9, 8, .88);
}

.client-portal-brand {
  display: grid;
  grid-template-columns: 46px 1fr;
  grid-template-rows: auto auto;
  width: fit-content;
  color: #f7f1e7;
  text-decoration: none;
}

.client-portal-brand > span {
  grid-row: 1 / 3;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid #d4b15f;
  border-radius: 50%;
  color: #d4b15f;
  font-family: Georgia, serif;
  font-size: 1.15rem;
}

.client-portal-brand strong { letter-spacing: .025em; }
.client-portal-brand small { color: #a8a296; font-size: .72rem; letter-spacing: .09em; text-transform: uppercase; }
.client-portal-shell { width: min(1120px, calc(100% - 32px)); margin: 0 auto; padding: 46px 0 70px; }

.client-portal-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, .6fr);
  gap: 40px;
  align-items: end;
  padding: 34px 0 42px;
}

.client-portal-body .eyebrow { color: #d4b15f; font-size: .76rem; font-weight: 850; letter-spacing: .16em; }
.client-portal-hero h1 { max-width: 760px; margin: 12px 0; color: #fffaf1; font-family: Georgia, serif; font-size: clamp(2.6rem, 7vw, 5.4rem); line-height: .98; }
.client-portal-hero p { max-width: 670px; color: #bbb4a8; font-size: 1.05rem; }
.client-portal-hero dl { margin: 0; padding: 20px; border: 1px solid #3b352a; border-radius: 16px; background: rgba(24, 23, 19, .76); }
.client-portal-hero dl div { display: grid; grid-template-columns: 1fr auto; gap: 12px; padding: 10px 0; border-bottom: 1px solid #302b22; }
.client-portal-hero dl div:last-child { border: 0; }
.client-portal-hero dt { color: #999286; }
.client-portal-hero dd { margin: 0; color: #f7f1e7; font-weight: 750; text-align: right; }

.client-portal-security,
.client-portal-card,
.client-portal-state {
  border: 1px solid #3b352a;
  border-radius: 18px;
  background: rgba(21, 21, 18, .9);
  box-shadow: 0 24px 70px rgba(0, 0, 0, .25);
}

.client-portal-security { display: grid; grid-template-columns: 200px 1fr; gap: 24px; margin-bottom: 22px; padding: 22px 26px; border-color: rgba(212, 177, 95, .48); }
.client-portal-security strong { color: #d4b15f; }
.client-portal-security p { margin: 0; color: #c7c0b4; }
.client-portal-card { margin-top: 22px; padding: clamp(20px, 4vw, 38px); }
.client-portal-section-title { display: flex; justify-content: space-between; gap: 24px; align-items: center; padding-bottom: 22px; border-bottom: 1px solid #302b22; }
.client-portal-section-title > div { display: flex; align-items: center; gap: 14px; }
.client-portal-section-title span { color: #d4b15f; font-size: .74rem; font-weight: 850; letter-spacing: .12em; }
.client-portal-section-title h2 { margin: 0; color: #fffaf1; font-family: Georgia, serif; font-size: clamp(1.5rem, 4vw, 2.2rem); }
.client-portal-section-title > strong { color: #9e978b; font-size: .8rem; text-transform: uppercase; }
.client-portal-items { display: grid; gap: 14px; margin-top: 20px; }
.client-portal-item { padding: 22px; border: 1px solid #302b22; border-radius: 14px; background: #11110f; }
.client-portal-item.status-accepted,
.client-portal-item.status-uploaded { border-color: rgba(130, 200, 155, .46); }
.client-portal-item.status-needs_changes { border-color: rgba(225, 139, 128, .58); }
.client-portal-item-head { display: grid; grid-template-columns: 42px 1fr auto; gap: 16px; align-items: start; }
.client-portal-step { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid #4a402d; border-radius: 50%; color: #d4b15f; font-weight: 800; }
.client-portal-item h3 { margin: 4px 0 6px; color: #fffaf1; font-size: 1.08rem; }
.client-portal-item p { margin: 0; color: #a9a296; }
.client-portal-item small { color: #8e877c; }
.client-portal-actions { margin: 18px 0 0 58px; }
.client-portal-response,
.client-portal-upload,
.client-portal-final-form { display: grid; gap: 14px; margin: 18px 0 0 58px; padding-top: 18px; border-top: 1px solid #302b22; }
.client-portal-response fieldset { display: flex; flex-wrap: wrap; gap: 14px; margin: 0; padding: 0; border: 0; }
.client-portal-response legend { width: 100%; margin-bottom: 8px; color: #d4b15f; font-weight: 750; }
.client-portal-response fieldset label { display: flex; gap: 8px; align-items: center; }
.client-portal-response input[type="radio"] { width: 17px; min-height: 17px; }
.client-portal-response > label,
.client-portal-upload > label,
.client-portal-final-form > label { display: grid; gap: 7px; color: #d7d0c4; }
.client-portal-response textarea,
.client-portal-upload textarea,
.client-portal-upload input[type="file"],
.client-portal-final-form input,
.client-portal-final-form textarea { box-sizing: border-box; width: 100%; padding: 12px 14px; color: #f6f0e5; border: 1px solid #454033; border-radius: 10px; background: #0a0b09; font: inherit; }
.client-portal-upload input[type="file"] { cursor: pointer; }
.client-portal-response .button,
.client-portal-upload .button,
.client-portal-final-form .button { justify-self: start; }
.client-portal-uploads { margin: 16px 0 0 58px; padding: 12px 14px; border-left: 2px solid #82c89b; background: rgba(130, 200, 155, .06); }
.client-portal-uploads p + p { margin-top: 8px; }
.client-portal-uploads small { display: block; }
.client-portal-note { margin: 18px 0 0 58px !important; padding: 12px 14px; border-left: 2px solid #d4b15f; background: rgba(212, 177, 95, .06); }
.client-portal-final-form { margin-left: 0; }
.client-portal-declaration { grid-template-columns: 20px 1fr !important; align-items: start; }
.client-portal-declaration input { width: 18px; min-height: 18px; padding: 0; }
.client-portal-confirmed { margin-top: 24px; padding: 20px; border: 1px solid rgba(130, 200, 155, .46); border-radius: 12px; background: rgba(130, 200, 155, .07); }
.client-portal-confirmed strong { color: #9be0b4; }
.client-portal-waiting { margin: 24px 0; color: #c1baae; }
.client-portal-legal { margin-top: 22px; padding-top: 18px; color: #938c80; border-top: 1px solid #302b22; font-size: .88rem; }
.client-portal-messages { display: grid; gap: 8px; margin-bottom: 18px; }
.client-portal-messages .message { padding: 13px 16px; border: 1px solid #4a402d; border-radius: 10px; background: #171612; }
.client-portal-messages .success { border-color: #456e53; }
.client-portal-messages .error { border-color: #8d514a; }
.client-portal-leave { margin-top: 24px; text-align: center; }
.client-portal-leave button { color: #9f988c; border: 0; background: none; text-decoration: underline; cursor: pointer; }
.client-portal-state { max-width: 720px; margin: 10vh auto; padding: clamp(30px, 7vw, 70px); text-align: center; }
.client-portal-state > span { display: grid; place-items: center; width: 58px; height: 58px; margin: 0 auto 24px; color: #d4b15f; border: 1px solid #d4b15f; border-radius: 50%; font-size: 1.6rem; }
.client-portal-state h1 { color: #fffaf1; font-family: Georgia, serif; font-size: clamp(2rem, 6vw, 3.5rem); }
.client-portal-state p { color: #c1baae; }
.client-portal-state small { display: block; margin-top: 24px; color: #8e877c; }

@media (max-width: 760px) {
  .client-portal-shell { width: min(100% - 20px, 1120px); padding-top: 22px; }
  .client-portal-hero { grid-template-columns: 1fr; gap: 20px; padding-top: 18px; }
  .client-portal-security { grid-template-columns: 1fr; gap: 6px; }
  .client-portal-section-title { align-items: flex-start; }
  .client-portal-section-title > strong { display: none; }
  .client-portal-item-head { grid-template-columns: 36px 1fr; }
  .client-portal-item-head > .status-pill { grid-column: 2; justify-self: start; }
  .client-portal-actions,
  .client-portal-response,
  .client-portal-upload,
  .client-portal-uploads,
  .client-portal-note { margin-left: 0 !important; }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  line-height: 1.55;
}

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

.wrap {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  position: relative;
  z-index: 20;
  background: var(--navy);
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.header-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  text-decoration: none;
  font-size: 1.18rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.brand span { color: #f4a77d; }

.main-nav { display: flex; align-items: center; gap: 26px; }
.main-nav a { color: #edf5fa; text-decoration: none; font-weight: 650; }
.main-nav a:hover { color: #f4a77d; }

.hero {
  position: relative;
  overflow: hidden;
  color: white;
  background:
    radial-gradient(circle at 82% 18%, rgba(230, 116, 59, 0.35), transparent 28%),
    linear-gradient(125deg, #0b2238 0%, #164665 100%);
}

.hero::after {
  content: "";
  position: absolute;
  width: 480px;
  height: 480px;
  right: -180px;
  bottom: -330px;
  border: 90px solid rgba(255, 255, 255, 0.06);
  border-radius: 50%;
}

.hero-content { position: relative; z-index: 1; padding: 92px 0 96px; }

.eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  color: #f4b28e;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.eyebrow.dark { color: var(--accent-dark); }

.hero h1,
.page-heading h1,
.detail-header h1 {
  letter-spacing: -0.05em;
  line-height: 1.02;
}

.hero h1 {
  max-width: 800px;
  margin: 0;
  font-size: clamp(3rem, 7vw, 5.7rem);
}

.hero-content > p {
  max-width: 650px;
  margin: 22px 0 34px;
  color: #d9e8f1;
  font-size: 1.15rem;
}

.hero-search {
  max-width: 950px;
  padding: 15px;
  display: grid;
  grid-template-columns: minmax(260px, 1.8fr) minmax(180px, 0.8fr) auto;
  gap: 12px;
  align-items: end;
  background: white;
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.24);
}

.hero-search label { display: grid; gap: 6px; color: var(--ink); }
.hero-search label > span { padding-left: 3px; font-size: 0.74rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; }

input,
select,
textarea {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid #cfd8e1;
  border-radius: 9px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

textarea { resize: vertical; }
input:focus,
select:focus,
textarea:focus {
  outline: 3px solid rgba(229, 116, 59, 0.18);
  border-color: var(--accent);
}

.button {
  min-height: 46px;
  padding: 11px 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 9px;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.button.primary { background: var(--accent); color: #fff; }
.button.primary:hover { background: var(--accent-dark); }
.button.secondary { border-color: var(--navy); color: var(--navy); background: white; }
.button.ghost { border-color: var(--line); background: transparent; color: var(--ink); }
.button.full { width: 100%; }

.section { padding: 82px 0; }
.soft-section { background: var(--soft); }

.section-heading {
  margin-bottom: 28px;
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
}

.section-heading h2,
.description-section h2,
.contact-card h2 {
  margin: 0;
  letter-spacing: -0.035em;
  line-height: 1.15;
}

.section-heading h2 { font-size: clamp(2rem, 4vw, 3rem); }
.text-link { color: var(--accent-dark); font-weight: 800; text-decoration: none; }

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

.listing-card {
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.listing-card:hover { transform: translateY(-3px); box-shadow: 0 22px 54px rgba(16, 37, 57, 0.14); }
.public-heading-row { display: flex; justify-content: space-between; align-items: center; gap: 18px; }
.offer-language-switch { width: fit-content; padding: 3px; display: inline-flex; gap: 3px; border: 1px solid var(--line); border-radius: 999px; background: #fff; }
.offer-language-switch a { min-width: 38px; padding: 6px 9px; color: var(--muted); text-align: center; text-decoration: none; border-radius: 999px; font-size: 0.72rem; font-weight: 900; }
.offer-language-switch a.active { color: #fff; background: var(--navy-2); }
.header-language-switch { border-color: rgba(255, 255, 255, 0.24); background: rgba(255, 255, 255, 0.1); }
.main-nav .header-language-switch a { min-width: 34px; padding: 5px 8px; color: #d9e8f1; }
.main-nav .header-language-switch a:hover { color: #fff; background: rgba(255, 255, 255, 0.12); }
.main-nav .header-language-switch a.active { color: var(--navy); background: #fff; }
.detail-language-switch { margin: 9px 0 10px; }

.listing-image {
  position: relative;
  min-height: 235px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #e8edf1;
  text-decoration: none;
}

.listing-image img { width: 100%; height: 235px; object-fit: cover; transition: transform 300ms ease; }
.listing-card:hover .listing-image img { transform: scale(1.025); }
.image-placeholder { color: #82909e; font-weight: 700; }

.transaction-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 6px 10px;
  border-radius: 6px;
  background: rgba(14, 38, 63, 0.91);
  color: white;
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.listing-body { padding: 19px 20px 21px; }
.listing-location { margin: 0 0 7px; color: var(--muted); font-size: 0.88rem; }
.listing-body h3 { min-height: 2.7em; margin: 0; font-size: 1.12rem; line-height: 1.35; }
.listing-body h3 a { text-decoration: none; }
.listing-body h3 a:hover { color: var(--accent-dark); }

.listing-facts {
  margin: 15px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 13px;
  color: #536174;
  font-size: 0.86rem;
}

.listing-price { font-size: 1.28rem; font-weight: 850; letter-spacing: -0.02em; }
.listing-price small { color: var(--muted); font-size: 0.72rem; font-weight: 600; }

.benefit-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.benefit-grid article { padding: 8px 18px 8px 0; }
.benefit-grid article > span { color: var(--accent); font-weight: 900; }
.benefit-grid h3 { margin: 10px 0 6px; font-size: 1.25rem; }
.benefit-grid p { margin: 0; color: var(--muted); }

.empty-state {
  padding: 54px 28px;
  text-align: center;
  background: var(--soft);
  border: 1px dashed #c8d1da;
  border-radius: 14px;
}
.empty-state h2,
.empty-state h3 { margin-top: 0; }
.empty-state p { color: var(--muted); }

.page-main { padding: 58px 0 82px; background: #f8fafb; min-height: 70vh; }
.page-heading { margin-bottom: 28px; }
.page-heading h1 { margin: 0; font-size: clamp(2.5rem, 5vw, 4.2rem); }
.page-heading p { margin: 10px 0 0; color: var(--muted); }

.filter-panel {
  margin-bottom: 32px;
  padding: 22px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(16, 37, 57, 0.06);
}

.filter-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.field { display: grid; align-content: start; gap: 6px; }
.field > span { font-size: 0.78rem; font-weight: 800; color: #4b596a; }
.field-wide { grid-column: span 2; }
.field-error { color: #b42318; font-size: 0.78rem; }
.filter-actions { margin-top: 18px; display: flex; gap: 10px; }
.listing-results { margin-top: 16px; }

.pagination {
  margin-top: 38px;
  padding: 18px;
  display: flex;
  justify-content: center;
  gap: 22px;
  border-top: 1px solid var(--line);
}
.pagination a { color: var(--accent-dark); font-weight: 800; text-decoration: none; }

.breadcrumbs { margin-bottom: 24px; display: flex; flex-wrap: wrap; gap: 8px; color: var(--muted); font-size: 0.88rem; }
.breadcrumbs a { text-decoration: none; }

.gallery {
  min-height: 440px;
  max-height: 570px;
  margin-bottom: 34px;
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-auto-rows: minmax(180px, 1fr);
  gap: 8px;
  overflow: hidden;
  background: #e6ebef;
  border-radius: 16px;
}

.gallery img { width: 100%; height: 100%; object-fit: cover; }
.gallery-main { grid-row: span 2; }
.gallery-empty { grid-column: 1 / -1; display: grid; place-items: center; color: var(--muted); font-weight: 700; }

.detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 34px; align-items: start; }
.detail-content { padding: 32px; background: white; border: 1px solid var(--line); border-radius: 14px; }
.detail-header { display: flex; justify-content: space-between; gap: 28px; }
.detail-header h1 { max-width: 700px; margin: 0; font-size: clamp(2rem, 4vw, 3.35rem); }
.detail-location { color: var(--muted); }
.detail-price { flex: 0 0 auto; text-align: right; font-size: 1.65rem; font-weight: 900; }
.detail-price small { display: block; color: var(--muted); font-size: 0.8rem; font-weight: 650; }

.fact-grid {
  margin: 30px 0;
  padding: 20px 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  border-block: 1px solid var(--line);
}
.fact-grid div { display: grid; gap: 3px; }
.fact-grid span { color: var(--muted); font-size: 0.78rem; }
.fact-grid strong { font-size: 1.05rem; }

.description-section + .description-section { margin-top: 34px; }
.description-section h2 { margin-bottom: 14px; font-size: 1.45rem; }
.prose { color: #344255; }
.prose p { margin-top: 0; }
.privacy-note { color: var(--muted); font-size: 0.9rem; }

.contact-card {
  position: sticky;
  top: 22px;
  padding: 26px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
}
.contact-card h2 { font-size: 1.45rem; }
.contact-card form { margin-top: 20px; display: grid; gap: 13px; }
.checkbox-field { grid-template-columns: auto 1fr; align-items: start; }
.checkbox-field input { width: 18px; min-height: 18px; margin-top: 3px; }
.checkbox-field .field-error { grid-column: 1 / -1; }
.form-note { margin-bottom: 0; color: var(--muted); text-align: center; font-size: 0.78rem; }
.honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.messages { padding-top: 16px; }
.message { padding: 13px 16px; border-radius: 9px; background: #dff3e8; color: #176044; border: 1px solid #b9dfca; }
.message.warning { background: #fff4d8; color: #795300; border-color: #eed69a; }
.message.info { background: #e7f1fb; color: #17547c; border-color: #bdd8ed; }

.panel-page { min-height: 75vh; padding: 34px 0 72px; background: #f4f7f9; }
.panel-shell { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 30px; align-items: start; }
.panel-sidebar {
  position: sticky;
  top: 20px;
  overflow: hidden;
  background: var(--navy);
  color: white;
  border-radius: 14px;
  box-shadow: var(--shadow);
}
.panel-organization { position: relative; padding: 22px 58px 22px 22px; border-bottom: 1px solid rgba(255, 255, 255, 0.12); }
.panel-notification-bell { position: absolute; top: 19px; right: 17px; width: 34px; height: 34px; display: grid; place-items: center; color: white; text-decoration: none; border: 1px solid rgba(255, 255, 255, 0.17); border-radius: 50%; background: rgba(255, 255, 255, 0.08); }
.panel-notification-bell > span { margin: 0; color: inherit; font-size: 1rem; }
.panel-notification-bell > strong { position: absolute; top: -6px; right: -6px; min-width: 19px; height: 19px; padding: 0 5px; display: grid; place-items: center; border: 2px solid var(--navy); border-radius: 99px; color: white; background: #d74b3f; font-size: 0.61rem; }
.panel-organization span,
.panel-organization small { display: block; color: #aebfcd; font-size: 0.74rem; }
.panel-organization span { margin-bottom: 5px; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 800; }
.panel-organization strong { display: block; line-height: 1.3; }
.panel-organization small { margin-top: 5px; }
.organization-switcher { padding: 14px 16px; border-bottom: 1px solid rgba(255, 255, 255, 0.12); }
.organization-switcher label { display: block; margin-bottom: 6px; color: #aebfcd; font-size: 0.72rem; }
.organization-switcher select { min-height: 38px; padding: 7px 8px; font-size: 0.83rem; }
.panel-nav { padding: 12px; display: grid; gap: 3px; }
.panel-nav a { padding: 10px 11px; color: #dce7ed; text-decoration: none; border-radius: 8px; font-weight: 700; font-size: 0.9rem; }
.panel-nav a:hover { background: rgba(255, 255, 255, 0.1); color: white; }
.panel-logout { padding: 0 12px 14px; }
.panel-logout button { width: 100%; padding: 9px; border: 1px solid rgba(255, 255, 255, 0.18); border-radius: 8px; color: #dce7ed; background: transparent; cursor: pointer; }
.panel-content { min-width: 0; }
.panel-heading { min-height: 100px; margin-bottom: 24px; display: flex; justify-content: space-between; gap: 24px; align-items: end; }
.panel-heading h1 { margin: 0; font-size: clamp(2.1rem, 4vw, 3.4rem); letter-spacing: -0.05em; line-height: 1; }
.panel-heading p { margin: 9px 0 0; color: var(--muted); }
.panel-back { display: block; margin-bottom: 12px; color: var(--accent-dark); text-decoration: none; font-weight: 750; font-size: 0.86rem; }
.metric-grid { margin-bottom: 24px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; }
.metric-grid article { padding: 21px; background: white; border: 1px solid var(--line); border-radius: 12px; }
.metric-grid span { display: block; color: var(--muted); font-size: 0.78rem; font-weight: 750; }
.metric-grid strong { display: block; margin-top: 5px; font-size: 2.05rem; line-height: 1; letter-spacing: -0.04em; }
.panel-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.panel-card { padding: 23px; background: white; border: 1px solid var(--line); border-radius: 13px; box-shadow: 0 8px 24px rgba(16, 37, 57, 0.05); }
.panel-card h2 { margin: 0 0 14px; font-size: 1.25rem; }
.panel-card h3 { margin: 24px 0 10px; }
.panel-card-spaced { margin-top: 22px; }
.panel-card-heading { margin-bottom: 14px; display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.panel-card-heading h2 { margin: 0; }
.panel-card-heading a { color: var(--accent-dark); text-decoration: none; font-weight: 750; font-size: 0.86rem; }
.panel-muted { color: var(--muted); }
.compact-list { display: grid; }
.compact-list > a { padding: 12px 0; display: flex; justify-content: space-between; gap: 18px; align-items: center; text-decoration: none; border-top: 1px solid var(--line); }
.compact-list > a:first-child { border-top: 0; }
.compact-list span:first-child { min-width: 0; }
.compact-list strong,
.compact-list small,
.panel-table strong,
.panel-table small { display: block; }
.compact-list small,
.panel-table small { margin-top: 3px; color: var(--muted); font-size: 0.76rem; }
.status-pill { display: inline-flex; width: fit-content; padding: 4px 8px; border-radius: 999px; color: #536174; background: #e9edf1; font-size: 0.69rem; font-weight: 850; white-space: nowrap; }
.status-published,
.status-succeeded,
.status-active,
.status-won,
.status-signed,
.status-valid { color: #176044; background: #dff3e8; }
.status-new,
.status-queued,
.status-update_queued,
.status-running { color: #17547c; background: #e2f0fa; }
.status-waiting_configuration,
.status-access_requested,
.status-reserved,
.status-reservation,
.status-contacted,
.status-awaiting_signature { color: #795300; background: #fff0c9; }
.status-negotiation { color: #17547c; background: #e2f0fa; }
.status-preliminary { color: #5b3d88; background: #eee7f8; }
.status-financing { color: #8a4d16; background: #ffead7; }
.status-finalization { color: #263f5d; background: #e1e9f2; }
.status-failed,
.status-error,
.status-lost,
.status-spam,
.status-expired { color: #9a2b20; background: #fde6e3; }
.status-draft,
.status-disabled,
.status-inactive,
.status-paused,
.status-completed,
.status-archived,
.status-cancelled { color: #596579; background: #e8ecf0; }
.panel-filter { margin-bottom: 20px; padding: 15px; display: grid; grid-template-columns: minmax(220px, 1fr) 220px auto; gap: 12px; align-items: end; background: white; border: 1px solid var(--line); border-radius: 12px; }
.panel-filter-short { grid-template-columns: 260px auto; justify-content: start; }
.panel-filter-contacts { grid-template-columns: minmax(240px, 1fr) 190px 190px auto; }
.panel-filter label { display: grid; gap: 5px; }
.panel-filter label span { color: var(--muted); font-size: 0.75rem; font-weight: 800; }
.panel-table-wrap { overflow-x: auto; background: white; border: 1px solid var(--line); border-radius: 12px; }
.panel-table-wrap.borderless { border: 0; border-radius: 0; }
.panel-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.panel-table th { padding: 12px 14px; text-align: left; color: var(--muted); background: #f7f9fa; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.05em; }
.panel-table td { padding: 14px; vertical-align: top; border-top: 1px solid var(--line); }
.panel-table a { text-decoration: none; }
.table-actions { display: flex; flex-wrap: wrap; gap: 9px; }
.table-actions a { color: var(--accent-dark); font-weight: 800; }
.table-empty { padding: 36px !important; text-align: center; color: var(--muted); }
.panel-pagination { margin-top: 20px; display: flex; justify-content: center; align-items: center; gap: 24px; color: var(--muted); }
.panel-pagination a { color: var(--accent-dark); font-weight: 800; text-decoration: none; }
.publication-layout { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(260px, 0.7fr); gap: 20px; align-items: start; }
.publication-form { margin-top: 20px; }
.channel-checklist ul { margin: 0 0 20px; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 9px; list-style: none; }
.channel-checklist label { padding: 11px 12px; display: flex; gap: 9px; align-items: center; border: 1px solid var(--line); border-radius: 9px; cursor: pointer; }
.channel-checklist input { width: 18px; min-height: 18px; }
.readiness-card dl,
.detail-list { margin: 0; }
.readiness-card dl div,
.detail-list div { padding: 11px 0; display: grid; grid-template-columns: 120px 1fr; gap: 12px; border-top: 1px solid var(--line); }
.readiness-card dl div:first-child,
.detail-list div:first-child { border-top: 0; }
.readiness-card dt,
.detail-list dt { color: var(--muted); font-size: 0.78rem; }
.readiness-card dd,
.detail-list dd { margin: 0; font-weight: 700; }
.portal-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px; }
.portal-card { padding: 15px; border: 1px solid var(--line); border-radius: 10px; background: #fbfcfd; }
.portal-card-top { display: flex; justify-content: space-between; gap: 10px; align-items: start; }
.portal-card p { margin: 11px 0 0; color: var(--muted); font-size: 0.78rem; }
.portal-card > a { display: inline-block; margin-top: 9px; color: var(--accent-dark); font-size: 0.78rem; font-weight: 800; }
.issue-list { margin: 10px 0 0; padding-left: 17px; color: #9a2b20; font-size: 0.75rem; }
.integration-note { margin-bottom: 20px; padding: 17px 20px; color: #17547c; background: #e7f1fb; border: 1px solid #bdd8ed; border-radius: 11px; }
.integration-note p { margin: 5px 0 0; }
.integration-error { color: #9a2b20 !important; }
.lead-columns { grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr); }
.contact-columns { grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr); align-items: start; }
.lead-message { padding: 16px; background: var(--soft); border-radius: 9px; }
.lead-convert-form { margin-bottom: 20px; }
.heading-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }
.tag-list { display: flex; flex-wrap: wrap; gap: 5px; }
.tag-list span { padding: 4px 7px; color: #17547c; background: #e7f1fb; border-radius: 999px; font-size: 0.69rem; font-weight: 800; white-space: nowrap; }
.panel-form { display: grid; gap: 14px; }
.panel-form label { display: grid; gap: 5px; }
.panel-form label > span { grid-row: 1; color: var(--muted); font-size: 0.78rem; font-weight: 800; }
.panel-form label > input,
.panel-form label > select,
.panel-form label > textarea { grid-row: 2; }
.panel-form .checkbox-row { grid-template-columns: auto 1fr; align-items: center; }
.panel-form .checkbox-row input { grid-row: 1; width: 18px; min-height: 18px; }
.panel-form .checkbox-row span { grid-row: 1; }
.form-errors,
.errorlist { margin: 0 0 15px; padding: 12px 14px; color: #9a2b20; background: #fde6e3; border-radius: 8px; list-style-position: inside; }
.form-error-summary { padding: 15px 17px; color: #7f251d; border: 1px solid #efb4ad; border-left: 5px solid #c74638; border-radius: 9px; background: #fff2f0; }
.form-error-summary strong { display: block; font-size: 0.94rem; }
.form-error-summary p { margin: 4px 0 7px; font-size: 0.8rem; }
.form-error-summary ul { margin: 0; padding-left: 20px; }
.form-error-summary a { color: inherit; font-size: 0.8rem; font-weight: 750; }
.permission-note { color: #795300; }
.login-page { min-height: 72vh; padding: 70px 20px; display: grid; place-items: start center; background: #f4f7f9; }
.login-card { width: min(440px, 100%); padding: 34px; background: white; border: 1px solid var(--line); border-radius: 15px; box-shadow: var(--shadow); }
.login-card h1 { margin: 0; font-size: 2.3rem; letter-spacing: -0.04em; }
.login-card > p { color: var(--muted); }
.listing-edit-form { display: grid; gap: 22px; }
.translation-status-card { margin-bottom: 18px; padding: 18px; display: flex; justify-content: space-between; align-items: start; gap: 20px; border: 1px solid #cbd5df; border-left: 5px solid #65778b; border-radius: 11px; background: #fff; }
.translation-status-card.translation-translated { border-left-color: #2a7f62; }
.translation-status-card.translation-failed { border-left-color: #b9463a; }
.translation-status-card.translation-not_configured { border-left-color: #d49a2d; }
.translation-status-card h2 { margin: 2px 0 5px; font-size: 1.05rem; }
.translation-status-card p { margin: 0; color: var(--muted); font-size: 0.78rem; }
.translation-status-card > div > small { display: block; margin-top: 5px; color: #9a2b20; }
.translation-status-card .translation-review-warning { margin-top: 8px; padding: 9px 11px; border-radius: 7px; color: #6c4700; background: #fff3cf; }
.translation-status-card .translation-review-approved { margin-top: 8px; color: #176044; }
.translation-kicker { color: var(--accent-dark); font-size: 0.67rem; font-weight: 900; letter-spacing: 0.07em; text-transform: uppercase; }
.translation-status-card details { margin-top: 12px; }
.translation-status-card summary { color: var(--accent-dark); cursor: pointer; font-size: 0.76rem; font-weight: 850; }
.translation-preview-grid { margin-top: 10px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.translation-preview-grid article { padding: 12px; border-radius: 8px; background: var(--soft); }
.translation-preview-grid article > span { color: var(--accent-dark); font-size: 0.65rem; font-weight: 900; }
.translation-preview-grid article > strong { margin-top: 3px; display: block; font-size: 0.82rem; }
.translation-preview-grid article > p { margin-top: 5px; font-size: 0.72rem; line-height: 1.5; }
.translation-review-form { margin-top: 10px; }
.translation-review-form label { display: block; margin-top: 8px; }
.translation-review-form label strong { display: block; margin-bottom: 4px; color: #273646; font-size: 0.7rem; }
.translation-review-form input,
.translation-review-form textarea { width: 100%; padding: 9px 10px; border: 1px solid #cbd5df; border-radius: 7px; color: var(--ink); background: #fff; font: inherit; font-size: 0.75rem; line-height: 1.45; }
.translation-review-form textarea { min-height: 150px; resize: vertical; }
.translation-review-form > .button { margin-top: 10px; }
.translation-pill { display: inline-flex; padding: 4px 8px; border-radius: 999px; color: #536376; background: #e8edf1; font-size: 0.67rem; font-weight: 850; white-space: nowrap; }
.translation-pill.translation-translated { color: #176044; background: #dff3e8; }
.translation-pill.translation-failed { color: #9a2b20; background: #fde6e3; }
.translation-pill.translation-not_configured { color: #795300; background: #fff0c9; }
.listing-form-sections { display: grid; gap: 18px; }
.listing-form-section { margin: 0; padding: 19px; border: 1px solid var(--line); border-radius: 11px; background: #fbfcfd; }
.listing-form-section legend { padding: 0 8px; color: var(--navy); font-size: 1rem; font-weight: 900; }
.listing-form-section > p { margin: -3px 0 16px; color: var(--muted); font-size: 0.76rem; line-height: 1.5; }
.listing-form-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; }
.listing-form-grid > label { display: grid; align-content: start; gap: 6px; }
.listing-form-grid > label > span,
.image-upload-form label > span { color: var(--muted); font-size: 0.76rem; font-weight: 800; }
.listing-form-grid > label > small { color: var(--muted); font-size: 0.72rem; }
.listing-form-grid .form-field-wide { grid-column: 1 / -1; }
.listing-map-panel { grid-column: 1 / -1; padding: 18px; border: 1px solid var(--line); border-radius: 11px; background: #f8fafb; }
.listing-map-heading { margin-bottom: 14px; display: flex; justify-content: space-between; align-items: start; gap: 20px; }
.listing-map-heading h2 { margin: 0 0 4px; font-size: 1.15rem; }
.listing-map-heading p { margin: 0; color: var(--muted); font-size: 0.82rem; }
.listing-map-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.listing-map-actions .button { min-height: 40px; padding: 8px 13px; font-size: 0.82rem; }
.listing-location-map,
.public-listing-map { min-height: 380px; overflow: hidden; border: 1px solid #cbd5df; border-radius: 10px; background: #e8edf1; }
.public-listing-map { margin-top: 16px; }
.map-status { margin: 11px 0 0; color: #176044; font-size: 0.82rem; font-weight: 700; }
.map-status-error { color: #9a2b20; }
.map-provider-note { margin: 5px 0 0; color: var(--muted); font-size: 0.72rem; }
.estate-map-marker-icon { background: transparent; border: 0; overflow: visible; }
.estate-map-pin { position: relative; width: 48px; height: 58px; display: block; }
.estate-map-pin-head {
  position: absolute;
  z-index: 2;
  top: 3px;
  left: 7px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 3px solid #fff;
  border-radius: 50% 50% 50% 0;
  background: linear-gradient(135deg, #ef8b54 0%, var(--accent) 48%, #be4f21 100%);
  box-shadow: 0 8px 18px rgba(14, 38, 63, 0.34);
  transform: rotate(-45deg);
}
.estate-map-pin-dot {
  width: 11px;
  height: 11px;
  display: block;
  border: 3px solid rgba(255, 255, 255, 0.72);
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(14, 38, 63, 0.16);
}
.estate-map-pin-shadow {
  position: absolute;
  z-index: 1;
  left: 13px;
  bottom: 1px;
  width: 22px;
  height: 8px;
  border-radius: 50%;
  background: rgba(14, 38, 63, 0.3);
  filter: blur(2px);
}
.estate-map-marker-editor .estate-map-pin::before {
  content: "";
  position: absolute;
  z-index: 0;
  left: 12px;
  bottom: -2px;
  width: 24px;
  height: 12px;
  border: 2px solid rgba(229, 116, 59, 0.58);
  border-radius: 50%;
  animation: estate-map-marker-pulse 1.8s ease-out infinite;
}
.estate-map-marker-editor:active .estate-map-pin-head { cursor: grabbing; }
@keyframes estate-map-marker-pulse {
  0% { opacity: 0.9; transform: scale(0.7); }
  75%, 100% { opacity: 0; transform: scale(1.65); }
}
@media (prefers-reduced-motion: reduce) {
  .estate-map-marker-editor .estate-map-pin::before { animation: none; opacity: 0.45; }
}
.contact-role-field { display: grid; gap: 7px; }
.contact-role-field > span { color: var(--muted); font-size: 0.76rem; font-weight: 800; }
.contact-role-field > div { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.contact-role-field > div > div > label { padding: 10px 12px; display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 8px; background: #fbfcfd; }
.contact-role-field input { width: 17px; min-height: 17px; }
.listing-form-grid .checkbox-row { grid-template-columns: auto 1fr; align-items: center; }
.listing-form-grid .checkbox-row > span { grid-column: 2; grid-row: 1; }
.listing-form-grid .checkbox-row > input { grid-column: 1; grid-row: 1; width: 18px; min-height: 18px; }
.form-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.image-upload-form { margin-bottom: 22px; padding: 15px; display: grid; grid-template-columns: minmax(220px, 1fr) minmax(220px, 1fr) auto; align-items: end; gap: 12px; background: var(--soft); border-radius: 10px; }
.image-upload-form label { display: grid; gap: 6px; }
.panel-image-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; }
.panel-image-card { overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: #fbfcfd; }
.panel-image-card > img { width: 100%; height: 175px; object-fit: cover; background: #e8edf1; }
.panel-image-card > div { padding: 12px; }
.panel-image-card strong,
.panel-image-card small { display: block; }
.panel-image-card small { margin-top: 3px; color: var(--muted); }
.image-actions { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 10px; }
.image-actions button { padding: 0; border: 0; color: var(--accent-dark); background: transparent; font: inherit; font-size: 0.75rem; font-weight: 800; cursor: pointer; }
.image-actions .danger-link { color: #9a2b20; }
.listing-record-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.listing-record-card .panel-card-heading > div small { display: block; margin-top: 3px; color: var(--muted); font-size: 0.68rem; }
.listing-record-list { display: grid; }
.listing-record-list article { padding: 14px 0; display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; border-top: 1px solid var(--line); }
.listing-record-list article:first-child { border-top: 0; }
.listing-record-list strong,
.listing-record-list small { display: block; }
.listing-record-list small { margin-top: 4px; color: var(--muted); font-size: 0.72rem; }
.listing-record-list p { margin: 5px 0 0; color: #45576a; font-size: 0.74rem; }
.listing-record-list a { color: var(--accent-dark); font-size: 0.72rem; font-weight: 800; text-decoration: none; }
.listing-record-actions { display: flex; flex: 0 0 auto; gap: 10px; }
.listing-record-actions form { margin: 0; }
.listing-record-actions button { padding: 0; border: 0; color: #9a2b20; background: transparent; font: inherit; font-size: 0.72rem; font-weight: 800; cursor: pointer; }
.listing-document-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.listing-document-list > a { padding: 11px; display: grid; grid-template-columns: 38px minmax(0, 1fr); align-items: center; gap: 10px; color: var(--ink); border: 1px solid var(--line); border-radius: 9px; background: #fbfcfd; text-decoration: none; }
.listing-document-list > a:hover { border-color: #9cb6c8; background: #f2f7fa; }
.listing-document-list strong,
.listing-document-list small { display: block; }
.listing-document-list small { margin-top: 3px; color: var(--muted); font-size: 0.68rem; }
.listing-relation-editor { max-width: 960px; }
.listing-relation-editor .document-security-note { margin-bottom: 18px; }
.listing-relation-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
.listing-relation-grid > label { display: grid; align-content: start; gap: 6px; }
.listing-relation-grid > label > span { color: var(--muted); font-size: 0.76rem; font-weight: 800; }
.listing-relation-grid > label > small { color: var(--muted); font-size: 0.7rem; }
.listing-relation-grid .form-field-wide { grid-column: 1 / -1; }
.listing-relation-grid .checkbox-row { grid-template-columns: auto 1fr; align-items: center; }
.listing-relation-grid .checkbox-row > input { grid-column: 1; grid-row: 1; width: 18px; min-height: 18px; }
.listing-relation-grid .checkbox-row > span { grid-column: 2; grid-row: 1; }
.activity-timeline { display: grid; }
.activity-timeline article { padding: 16px 0; display: grid; grid-template-columns: 100px minmax(0, 1fr); gap: 18px; border-top: 1px solid var(--line); }
.activity-timeline article:first-child { border-top: 0; }
.activity-kind { width: fit-content; height: fit-content; padding: 5px 8px; color: #17547c; background: #e7f1fb; border-radius: 999px; font-size: 0.7rem; font-weight: 850; }
.activity-timeline p { margin: 6px 0; }
.activity-timeline small { color: var(--muted); }
.search-summary .lead-message { margin-top: 18px; }

.deal-metric-grid { margin-bottom: 18px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.deal-metric-grid article { padding: 16px 18px; background: #fff; border: 1px solid var(--line); border-radius: 11px; }
.deal-metric-grid span { display: block; color: var(--muted); font-size: 0.72rem; font-weight: 800; }
.deal-metric-grid strong { display: block; margin-top: 5px; font-size: 1.28rem; letter-spacing: -0.03em; }
.deal-metric-grid strong + strong { margin-top: 2px; padding-top: 5px; border-top: 1px solid var(--line); }
.deal-metric-grid strong small { color: var(--muted); font-size: 0.64em; letter-spacing: 0; }
.deal-filter { grid-template-columns: minmax(220px, 1fr) 190px 210px auto; }
.deal-view-switch { margin: -6px 0 16px; padding: 4px; width: fit-content; display: flex; flex-wrap: wrap; gap: 2px; background: #e8edf1; border-radius: 9px; }
.deal-view-switch a { padding: 7px 11px; color: var(--muted); text-decoration: none; border-radius: 7px; font-size: 0.76rem; font-weight: 850; }
.deal-view-switch a.active { color: #fff; background: var(--navy-2); }
.deal-board-shell { overflow-x: auto; padding-bottom: 8px; }
.deal-board { min-width: 1540px; display: grid; grid-template-columns: repeat(6, minmax(240px, 1fr)); gap: 12px; align-items: start; }
.deal-column { --stage-color: #647386; overflow: hidden; border: 1px solid var(--line); border-top: 4px solid var(--stage-color); border-radius: 11px; background: #eef2f5; }
.deal-stage-new { --stage-color: #3d88ba; }
.deal-stage-negotiation { --stage-color: #2d7bb3; }
.deal-stage-reservation { --stage-color: #d59a2d; }
.deal-stage-preliminary { --stage-color: #7658a8; }
.deal-stage-financing { --stage-color: #d47a2f; }
.deal-stage-finalization { --stage-color: #344c6b; }
.deal-stage-completed { --stage-color: #2a7f62; }
.deal-stage-cancelled { --stage-color: #9a5960; }
.deal-column > header { padding: 11px 12px; display: flex; justify-content: space-between; align-items: center; background: #fff; border-bottom: 1px solid var(--line); }
.deal-column > header h2 { margin: 0; font-size: 0.86rem; }
.deal-column > header span { width: 24px; height: 24px; display: grid; place-items: center; color: #fff; border-radius: 50%; background: var(--stage-color); font-size: 0.67rem; font-weight: 900; }
.deal-column-body { min-height: 180px; padding: 9px; display: grid; align-content: start; gap: 9px; }
.deal-card { padding: 12px; display: block; color: var(--ink); text-decoration: none; border: 1px solid #dbe2e8; border-radius: 9px; background: #fff; box-shadow: 0 4px 12px rgba(14, 38, 63, 0.06); }
.deal-card:hover { border-color: var(--stage-color); box-shadow: 0 7px 18px rgba(14, 38, 63, 0.11); }
.deal-card-reference { display: block; margin-bottom: 5px; color: var(--stage-color); font-size: 0.65rem; font-weight: 900; letter-spacing: 0.05em; }
.deal-card > strong { display: block; font-size: 0.8rem; line-height: 1.35; }
.deal-card > small { display: block; margin-top: 5px; color: var(--muted); font-size: 0.7rem; }
.deal-card dl { margin: 10px 0 0; padding-top: 8px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; border-top: 1px solid var(--line); }
.deal-card dl div { min-width: 0; }
.deal-card dt { color: var(--muted); font-size: 0.61rem; }
.deal-card dd { margin: 2px 0 0; overflow: hidden; font-size: 0.7rem; font-weight: 850; white-space: nowrap; text-overflow: ellipsis; }
.deal-card footer { margin-top: 9px; display: flex; justify-content: space-between; gap: 8px; color: var(--muted); font-size: 0.62rem; }
.deal-card footer span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.deal-card footer time { color: var(--stage-color); font-weight: 900; }
.deal-column-empty { padding: 30px 8px; color: var(--muted); text-align: center; font-size: 0.73rem; }
.deal-table { min-width: 1180px; }
.deal-form { display: grid; gap: 22px; }
.deal-form-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; }
.deal-form-grid > label { display: grid; align-content: start; gap: 6px; }
.deal-form-grid > label > span { color: var(--muted); font-size: 0.76rem; font-weight: 800; }
.deal-form-grid > label > small { color: var(--muted); font-size: 0.72rem; }
.deal-form-grid input[readonly] { color: #26415a; background: #edf3f7; font-weight: 850; }
.commission-calculation-note strong { color: #176044; }
.deal-form-grid .form-field-wide { grid-column: 1 / -1; }
.deal-form-grid .checkbox-row { grid-template-columns: auto 1fr; align-items: center; }
.deal-form-grid .checkbox-row > input { grid-column: 1; grid-row: 1; width: 18px; min-height: 18px; }
.deal-form-grid .checkbox-row > span { grid-column: 2; grid-row: 1; }
.deal-stage-banner { --stage-color: #647386; margin-bottom: 20px; padding: 14px 18px; display: flex; align-items: center; gap: 12px; border-left: 5px solid var(--stage-color); border-radius: 10px; background: #fff; box-shadow: 0 5px 16px rgba(14, 38, 63, 0.06); }
.deal-stage-banner span { color: var(--muted); font-size: 0.72rem; font-weight: 800; text-transform: uppercase; }
.deal-stage-banner strong { color: var(--stage-color); }
.deal-stage-banner small { margin-left: auto; color: var(--muted); }
.deal-detail-columns { align-items: start; }
.deal-detail-columns a { color: var(--accent-dark); text-decoration: none; }
.commission-pill { display: inline-flex; padding: 4px 8px; border-radius: 999px; font-size: 0.7rem; font-weight: 850; }
.commission-none { color: #596579; background: #e8ecf0; }
.commission-unpaid { color: #9a2b20; background: #fde6e3; }
.commission-partial { color: #795300; background: #fff0c9; }
.commission-paid { color: #176044; background: #dff3e8; }
.deal-history { display: grid; }
.deal-history article { position: relative; padding: 0 0 21px 30px; display: grid; grid-template-columns: minmax(0, 1fr); }
.deal-history article::before { content: ""; position: absolute; top: 13px; bottom: 0; left: 8px; width: 2px; background: var(--line); }
.deal-history article:last-child { padding-bottom: 0; }
.deal-history article:last-child::before { display: none; }
.deal-history-dot { --stage-color: #647386; position: absolute; z-index: 2; top: 3px; left: 2px; width: 14px; height: 14px; border: 3px solid #fff; border-radius: 50%; background: var(--stage-color); box-shadow: 0 0 0 1px var(--stage-color); }
.deal-history strong { font-size: 0.86rem; }
.deal-history p { margin: 5px 0; font-size: 0.82rem; }
.deal-history small { color: var(--muted); font-size: 0.7rem; }

.calendar-heading { align-items: end; }
.calendar-toolbar {
  margin-bottom: 18px;
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.calendar-navigation { display: flex; gap: 7px; }
.calendar-navigation .button { min-width: 42px; padding: 8px 11px; }
.calendar-agent-filter { margin-left: auto; display: flex; align-items: center; gap: 9px; }
.calendar-agent-filter label { color: var(--muted); font-size: 0.76rem; font-weight: 800; }
.calendar-agent-filter select { min-height: 39px; min-width: 190px; padding: 7px 9px; }
.calendar-view-switch { padding: 3px; display: flex; border-radius: 9px; background: var(--soft); }
.calendar-view-switch a { padding: 7px 11px; color: var(--muted); text-decoration: none; border-radius: 7px; font-size: 0.78rem; font-weight: 850; }
.calendar-view-switch a.active { color: #fff; background: var(--navy-2); }
.calendar-week-shell,
.calendar-month-shell { overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: 13px; box-shadow: 0 8px 24px rgba(16, 37, 57, 0.05); }
.calendar-week-content { min-width: 1080px; }
.calendar-week-header,
.calendar-all-day-row,
.calendar-timeline { display: grid; grid-template-columns: 66px repeat(7, minmax(140px, 1fr)); }
.calendar-week-header { position: sticky; top: 0; z-index: 8; background: #fff; border-bottom: 1px solid var(--line); }
.calendar-corner { padding: 10px 7px; display: flex; align-items: end; color: var(--muted); font-size: 0.66rem; }
.calendar-day-heading { position: relative; min-height: 62px; padding: 8px 10px; text-align: center; border-left: 1px solid var(--line); }
.calendar-day-heading span { display: block; color: var(--muted); font-size: 0.7rem; font-weight: 800; text-transform: uppercase; }
.calendar-day-heading strong { display: block; margin-top: 2px; font-size: 1.25rem; }
.calendar-day-heading a { position: absolute; top: 8px; right: 8px; width: 22px; height: 22px; display: grid; place-items: center; color: var(--accent-dark); text-decoration: none; border-radius: 50%; background: #fff2ea; font-weight: 900; }
.calendar-day-heading.is-today strong { width: 32px; height: 32px; margin: 2px auto 0; display: grid; place-items: center; color: #fff; border-radius: 50%; background: var(--accent); }
.calendar-all-day-row { min-height: 44px; border-bottom: 1px solid var(--line); }
.calendar-all-day-label { padding: 9px 6px; color: var(--muted); font-size: 0.66rem; text-align: right; }
.calendar-all-day-cell { min-width: 0; padding: 5px; display: grid; align-content: start; gap: 4px; border-left: 1px solid var(--line); }
.calendar-all-day-cell.is-today { background: rgba(229, 116, 59, 0.045); }
.calendar-all-day-event { padding: 4px 6px; overflow: hidden; color: #fff; text-decoration: none; border-radius: 5px; font-size: 0.67rem; font-weight: 800; white-space: nowrap; text-overflow: ellipsis; }
.calendar-time-axis { position: relative; background: #fbfcfd; }
.calendar-time-axis > span { position: absolute; right: 7px; color: #7b8798; font-size: 0.65rem; transform: translateY(-50%); }
.calendar-day-track { position: relative; overflow: hidden; border-left: 1px solid var(--line); background: #fff; }
.calendar-day-track.is-today { background: rgba(229, 116, 59, 0.045); }
.calendar-hour-line { position: absolute; right: 0; left: 0; height: 1px; background: #e9edf1; }
.calendar-event-card { position: absolute; z-index: 3; min-height: 30px; padding: 4px 6px; overflow: hidden; color: #fff; text-decoration: none; border-left: 3px solid rgba(255, 255, 255, 0.68); border-radius: 6px; box-shadow: 0 3px 9px rgba(14, 38, 63, 0.16); }
.calendar-event-card:hover { z-index: 5; filter: brightness(0.94); }
.calendar-event-card strong,
.calendar-event-card small { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.calendar-event-card strong { font-size: 0.67rem; line-height: 1.25; }
.calendar-event-card small { margin-top: 2px; color: rgba(255, 255, 255, 0.86); font-size: 0.61rem; }
.calendar-kind-presentation { background: #2d7bb3; }
.calendar-kind-call { background: #2a7f62; }
.calendar-kind-meeting { background: #7658a8; }
.calendar-kind-task { background: #d47a2f; }
.calendar-kind-contract { background: #b5505c; }
.calendar-kind-notary { background: #344c6b; }
.calendar-kind-other { background: #647386; }
.calendar-event-card.status-completed,
.calendar-all-day-event.status-completed,
.calendar-month-event.status-completed { opacity: 0.55; }
.calendar-event-card.status-cancelled,
.calendar-all-day-event.status-cancelled,
.calendar-month-event.status-cancelled { opacity: 0.42; text-decoration: line-through; }
.calendar-month-shell { min-width: 0; }
.calendar-month-grid { min-width: 900px; display: grid; grid-template-columns: repeat(7, minmax(125px, 1fr)); }
.calendar-month-weekday { padding: 10px; color: var(--muted); text-align: center; background: #f7f9fa; border-bottom: 1px solid var(--line); font-size: 0.7rem; font-weight: 850; text-transform: uppercase; }
.calendar-month-day { min-height: 142px; padding: 8px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; }
.calendar-month-day:nth-child(7n) { border-right: 0; }
.calendar-month-day.is-outside { background: #f7f9fa; opacity: 0.62; }
.calendar-month-day.is-today { background: #fff8f3; box-shadow: inset 0 0 0 2px rgba(229, 116, 59, 0.42); }
.calendar-month-day header { min-height: 28px; display: flex; justify-content: space-between; align-items: start; }
.calendar-month-day header strong { font-size: 0.8rem; }
.calendar-month-day header a { width: 22px; height: 22px; display: grid; place-items: center; color: var(--accent-dark); text-decoration: none; border-radius: 50%; background: #fff2ea; font-weight: 900; }
.calendar-month-day > div { display: grid; gap: 4px; }
.calendar-month-event { padding: 4px 5px; overflow: hidden; color: #fff; text-decoration: none; border-radius: 5px; font-size: 0.65rem; font-weight: 750; white-space: nowrap; text-overflow: ellipsis; }
.calendar-month-event span { margin-right: 4px; opacity: 0.8; }
.calendar-more { color: var(--muted); font-size: 0.66rem; font-weight: 800; }
.calendar-event-form { display: grid; gap: 22px; }
.calendar-event-form-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; }
.calendar-event-form-grid > label { display: grid; align-content: start; gap: 6px; }
.calendar-event-form-grid > label > span { color: var(--muted); font-size: 0.76rem; font-weight: 800; }
.calendar-event-form-grid > label > small { color: var(--muted); font-size: 0.72rem; }
.calendar-event-form-grid .form-field-wide { grid-column: 1 / -1; }
.calendar-event-form-grid .checkbox-row { grid-template-columns: auto 1fr; align-items: center; }
.calendar-event-form-grid .checkbox-row > input { grid-column: 1; grid-row: 1; width: 18px; min-height: 18px; }
.calendar-event-form-grid .checkbox-row > span { grid-column: 2; grid-row: 1; }
.calendar-detail-columns { grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr); align-items: start; }
.calendar-related-list { display: grid; }
.calendar-related-list > a { padding: 12px 0; display: grid; gap: 2px; color: var(--ink); text-decoration: none; border-top: 1px solid var(--line); }
.calendar-related-list > a:first-child { border-top: 0; }
.calendar-related-list > a span { color: var(--muted); font-size: 0.7rem; font-weight: 800; text-transform: uppercase; }
.calendar-related-list > a strong { color: var(--accent-dark); font-size: 0.86rem; }
.calendar-status-actions { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 9px; }
.calendar-status-actions form { margin: 0; }
.dashboard-today-card .panel-card-heading > div:first-child { display: grid; gap: 3px; }
.dashboard-today-card .panel-card-heading h2 { margin: 0; }
.dashboard-today-card .panel-card-heading small { color: var(--muted); }
.today-event-list { display: grid; gap: 8px; }
.today-event-list > a {
  min-height: 64px;
  padding: 10px 13px;
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr) minmax(130px, auto);
  align-items: center;
  gap: 13px;
  color: #fff;
  text-decoration: none;
  border-radius: 9px;
  box-shadow: 0 4px 12px rgba(14, 38, 63, 0.11);
}
.today-event-list time { font-size: 0.86rem; font-weight: 900; }
.today-event-list time small,
.today-event-list span small { display: block; margin-top: 2px; color: rgba(255, 255, 255, 0.82); font-size: 0.7rem; }
.today-event-list span strong { display: block; font-size: 0.88rem; }
.today-event-list em { font-size: 0.7rem; font-style: normal; font-weight: 750; text-align: right; opacity: 0.84; }
.today-event-list > a.status-completed { opacity: 0.58; }

.document-metric-grid { margin-bottom: 18px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.document-metric-grid article { padding: 17px 19px; border: 1px solid var(--line); border-left: 4px solid #5b86a4; border-radius: 11px; background: #fff; }
.document-metric-grid article.is-alert { border-left-color: #b9463a; background: #fff8f7; }
.document-metric-grid span { display: block; color: var(--muted); font-size: 0.72rem; font-weight: 800; }
.document-metric-grid strong { display: block; margin-top: 5px; font-size: 1.55rem; line-height: 1; }
.document-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 18px; align-items: start; }
.document-folder-panel { padding: 16px; }
.document-folder-list { display: grid; }
.document-folder-list > a { padding: 9px 10px; display: flex; justify-content: space-between; gap: 10px; color: var(--ink); text-decoration: none; border-radius: 7px; font-size: 0.78rem; }
.document-folder-list > a:hover,
.document-folder-list > a.active { color: #17547c; background: #e7f1fb; }
.document-folder-list > a strong { min-width: 24px; color: var(--muted); text-align: right; }
.document-folder-form { margin-top: 15px; padding-top: 15px; display: grid; gap: 8px; border-top: 1px solid var(--line); }
.document-folder-form label { display: grid; gap: 5px; }
.document-folder-form label span { color: var(--muted); font-size: 0.7rem; font-weight: 800; }
.document-folder-form input { min-width: 0; width: 100%; }
.document-folder-form .button { width: 100%; padding: 8px 10px; }
.document-main { min-width: 0; }
.document-filter { grid-template-columns: minmax(220px, 1fr) 205px 190px auto; }
.document-table { min-width: 1080px; }
.document-name { display: flex; gap: 10px; align-items: center; color: var(--ink); }
.document-extension { width: 38px; height: 38px; flex: 0 0 auto; display: grid; place-items: center; color: #fff; border-radius: 8px; background: linear-gradient(135deg, var(--navy-2), #4b7a9d); font-size: 0.59rem; font-weight: 900; text-transform: uppercase; }
.document-extension.large { width: 54px; height: 54px; border-radius: 11px; font-size: 0.7rem; }
.document-form { display: grid; gap: 18px; }
.document-form-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; }
.document-form-grid > label { display: grid; align-content: start; gap: 6px; }
.document-form-grid > label > span { color: var(--muted); font-size: 0.76rem; font-weight: 800; }
.document-form-grid > label > small { color: var(--muted); font-size: 0.7rem; }
.document-form-grid .form-field-wide { grid-column: 1 / -1; }
.document-file-field { padding: 15px; border: 1px dashed #aabac7; border-radius: 9px; background: #f7fafb; }
.document-security-note { margin: 0; padding: 13px 15px; color: #365168; border: 1px solid #c8d9e5; border-radius: 9px; background: #edf5fa; font-size: 0.76rem; line-height: 1.5; }
.document-detail-banner { margin-bottom: 20px; padding: 16px 18px; display: flex; align-items: center; gap: 18px; border-left: 5px solid #41799f; border-radius: 11px; background: #fff; box-shadow: 0 5px 16px rgba(14, 38, 63, 0.06); }
.document-detail-banner > div { display: grid; gap: 2px; }
.document-detail-banner > div:last-child { margin-left: auto; }
.document-detail-banner span:not(.document-extension) { color: var(--muted); font-size: 0.68rem; font-weight: 800; text-transform: uppercase; }
.document-detail-banner small { color: var(--muted); font-size: 0.68rem; }
.document-detail-columns { align-items: start; }
.document-detail-columns a { color: var(--accent-dark); text-decoration: none; }
.document-checksum { overflow-wrap: anywhere; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.7rem; }
.document-history { display: grid; }
.document-history article { padding: 13px 0; display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 17px; border-top: 1px solid var(--line); }
.document-history article:first-child { border-top: 0; }
.document-history-action { width: fit-content; height: fit-content; padding: 5px 8px; border-radius: 999px; color: #17547c; background: #e7f1fb; font-size: 0.68rem; font-weight: 850; }
.document-history-action.action-downloaded { color: #5b3d88; background: #eee7f8; }
.document-history-action.action-updated { color: #795300; background: #fff0c9; }
.document-history-action.action-generated { color: #176341; background: #ddf4e9; }
.document-history p { margin: 4px 0; font-size: 0.8rem; }
.document-history small { color: var(--muted); font-size: 0.7rem; }
.template-card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.template-card { display: grid; gap: 15px; }
.template-card.is-inactive { opacity: 0.65; }
.template-card header { display: flex; align-items: center; gap: 12px; }
.template-card h2 { margin: 0; font-size: 1rem; }
.template-card h2 a { color: var(--ink); text-decoration: none; }
.template-card header p { margin: 3px 0 0; color: var(--muted); font-size: 0.73rem; }
.template-card footer { margin-top: auto; padding-top: 13px; display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); }
.template-card footer > a:not(.button) { color: var(--accent-dark); font-size: 0.76rem; font-weight: 800; text-decoration: none; }
.template-empty { grid-column: 1 / -1; padding: 34px; text-align: center; }
.template-editor-layout { display: grid; grid-template-columns: minmax(0, 1fr) 350px; align-items: start; gap: 18px; }
.template-editor-form textarea { min-height: 440px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; line-height: 1.55; }
.placeholder-reference { position: sticky; top: 18px; max-height: calc(100vh - 36px); overflow-y: auto; }
.placeholder-reference > p { color: var(--muted); font-size: 0.75rem; }
.placeholder-reference section { margin-top: 17px; }
.placeholder-reference section h3 { margin: 0 0 7px; color: var(--muted); font-size: 0.7rem; text-transform: uppercase; }
.placeholder-reference section > div { padding: 7px 0; display: grid; gap: 2px; border-top: 1px solid var(--line); }
.placeholder-reference code { color: #17547c; font-size: 0.72rem; font-weight: 800; }
.placeholder-reference small { color: var(--muted); font-size: 0.68rem; }
.template-source-summary { margin: 18px 0 12px; padding: 16px; display: flex; align-items: center; gap: 13px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.template-source-summary > div { min-width: 0; display: grid; gap: 4px; }
.template-source-summary strong { overflow-wrap: anywhere; }
.template-source-summary small { color: var(--muted); }
.template-placeholder-list { display: flex; flex-wrap: wrap; gap: 8px; }
.template-placeholder-list code { padding: 7px 9px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); color: var(--accent-dark); font-size: 0.72rem; font-weight: 800; }
.template-body-preview { min-height: 220px; padding: 18px; border: 1px solid var(--line); border-radius: 9px; background: #fbfcfd; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.78rem; line-height: 1.6; white-space: normal; }

.management-heading { align-items: center; }
.analytics-filter { margin-bottom: 22px; padding: 15px; display: flex; align-items: end; gap: 12px; border: 1px solid #d6e0e7; border-radius: 12px; background: #eaf1f5; }
.analytics-filter label { min-width: 210px; display: grid; gap: 5px; }
.analytics-filter label span { color: #536174; font-size: 0.72rem; font-weight: 850; text-transform: uppercase; letter-spacing: 0.04em; }
.analytics-filter select { min-height: 42px; }
.analytics-filter .button { min-height: 42px; }
.management-kpi-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.management-kpi { position: relative; overflow: hidden; padding: 20px; border: 1px solid var(--line); border-left: 5px solid #738293; border-radius: 12px; background: #fff; }
.management-kpi::after { content: ""; position: absolute; right: -28px; top: -38px; width: 100px; height: 100px; border-radius: 50%; background: rgba(115, 130, 147, 0.08); }
.management-kpi.is-blue { border-left-color: #3478a6; }
.management-kpi.is-green { border-left-color: #2a7f62; }
.management-kpi.is-orange { border-left-color: var(--accent); }
.management-kpi.is-violet { border-left-color: #6d5aa0; }
.management-kpi span { display: block; color: var(--muted); font-size: 0.76rem; font-weight: 800; }
.management-kpi strong { position: relative; z-index: 1; display: block; margin: 7px 0 5px; font-size: 2rem; line-height: 1; letter-spacing: -0.045em; }
.management-kpi small { color: #536174; font-size: 0.73rem; }
.finance-card { border-top: 4px solid var(--navy-2); }
.panel-card-heading > div small { display: block; margin-top: 4px; color: var(--muted); font-size: 0.73rem; }
.finance-currency-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.finance-currency-grid > article { overflow: hidden; border: 1px solid var(--line); border-radius: 10px; }
.finance-currency-grid header { padding: 11px 14px; display: flex; justify-content: space-between; color: #fff; background: var(--navy-2); }
.finance-currency-grid header span { color: #dce8ef; font-size: 0.72rem; }
.finance-currency-grid dl { margin: 0; padding: 4px 14px 10px; }
.finance-currency-grid dl div { padding: 9px 0; display: flex; justify-content: space-between; gap: 20px; border-top: 1px solid var(--line); }
.finance-currency-grid dl div:first-child { border-top: 0; }
.finance-currency-grid dt { color: var(--muted); font-size: 0.76rem; }
.finance-currency-grid dd { margin: 0; font-size: 0.87rem; font-weight: 850; }
.finance-currency-grid .is-outstanding dd { color: #a64235; }
.pipeline-summary { margin-top: 14px; padding: 11px 13px; border-radius: 8px; color: #29465f; background: #e8f2f8; font-size: 0.78rem; }
.management-columns { margin-top: 22px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; }
.stage-chart { display: grid; gap: 14px; }
.stage-chart-row > div:first-child { margin-bottom: 5px; display: flex; justify-content: space-between; gap: 14px; font-size: 0.78rem; }
.stage-chart-track { height: 9px; overflow: hidden; border-radius: 99px; background: #e7edf1; }
.stage-chart-track span { height: 100%; display: block; border-radius: inherit; background: linear-gradient(90deg, #3d789f, #63a7c9); }
.management-subheading { margin: 22px 0 5px !important; padding-top: 16px; border-top: 1px solid var(--line); font-size: 0.86rem !important; }
.attention-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.attention-grid a { padding: 13px; display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; border: 1px solid #ebd6d2; border-radius: 9px; background: #fff9f8; }
.attention-grid a:hover { border-color: #d79b92; }
.attention-grid strong { min-width: 27px; color: #a64235; font-size: 1.3rem; line-height: 1; text-align: center; }
.attention-grid span { color: #5b6573; font-size: 0.73rem; line-height: 1.3; }
.leaderboard-list { display: grid; }
.leaderboard-list article { padding: 12px 0; display: grid; grid-template-columns: 40px minmax(160px, 1fr) minmax(280px, 1.4fr) 80px; align-items: center; gap: 13px; border-top: 1px solid var(--line); }
.leaderboard-list article:first-child { border-top: 0; }
.leaderboard-rank { width: 31px; height: 31px; display: inline-grid; place-items: center; border-radius: 50%; color: #fff; background: var(--navy-2); font-size: 0.78rem; font-weight: 900; }
.leaderboard-list article:nth-child(1) .leaderboard-rank { color: #604600; background: #f6d56d; }
.leaderboard-list article:nth-child(2) .leaderboard-rank { color: #3f4b55; background: #dce2e7; }
.leaderboard-list article:nth-child(3) .leaderboard-rank { color: #693e1c; background: #ddb07f; }
.leaderboard-person strong,
.leaderboard-person small { display: block; }
.leaderboard-person small { color: var(--muted); font-size: 0.7rem; }
.leaderboard-stats { display: flex; flex-wrap: wrap; gap: 6px; }
.leaderboard-stats span { padding: 4px 8px; border-radius: 99px; color: #4b5b6c; background: #edf2f5; font-size: 0.67rem; font-weight: 750; }
.leaderboard-score { color: var(--accent-dark); white-space: nowrap; }
.score-explanation { display: flex; justify-content: space-between; align-items: center; gap: 24px; border-left: 5px solid #6d5aa0; }
.score-explanation p { margin: 4px 0 0; color: var(--muted); font-size: 0.78rem; }
.score-explanation ul { margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; list-style: none; }
.score-explanation li { padding: 6px 9px; border-radius: 7px; background: #f0edf7; color: #58477e; font-size: 0.7rem; }
.leaderboard-table { min-width: 1080px; }
.leaderboard-table td { vertical-align: middle; }
.leaderboard-table tr.is-current-user td { background: #f0f7fb; }
.leaderboard-table td:nth-child(n+3):not(:nth-child(8)) { text-align: center; }
.leaderboard-table td:nth-child(8) strong,
.leaderboard-table td:nth-child(8) small { white-space: nowrap; }

.task-filter { grid-template-columns: minmax(180px, 1.5fr) repeat(3, minmax(145px, 0.8fr)) auto; }
.task-form-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; }
.task-form-grid label { display: grid; gap: 6px; align-content: start; }
.task-form-grid label > span { color: var(--muted); font-size: 0.76rem; font-weight: 800; }
.task-form-grid .form-field-wide { grid-column: 1 / -1; }
.task-list-card { padding: 8px 20px; }
.task-list { display: grid; }
.task-row { padding: 14px 3px; display: grid; grid-template-columns: 72px minmax(220px, 1fr) minmax(130px, 0.65fr) 120px 110px; align-items: center; gap: 13px; color: inherit; text-decoration: none; border-top: 1px solid var(--line); }
.task-row:first-child { border-top: 0; }
.task-row:hover { background: #f7fafc; }
.task-row.is-overdue { margin: 0 -20px; padding-left: 23px; padding-right: 23px; background: #fff7f6; }
.task-main strong,
.task-main small { display: block; }
.task-main small { margin-top: 3px; color: var(--muted); font-size: 0.72rem; }
.task-owner,
.task-row time { color: #536174; font-size: 0.75rem; }
.task-priority { width: fit-content; padding: 4px 8px; border-radius: 99px; color: #536174; background: #e9edf1; font-size: 0.66rem; font-weight: 850; white-space: nowrap; }
.task-priority.priority-high { color: #8a4d16; background: #ffead7; }
.task-priority.priority-urgent { color: #9a2b20; background: #fde6e3; }
.task-priority.priority-low { color: #176044; background: #dff3e8; }
.status-open { color: #17547c; background: #e2f0fa; }
.status-in_progress { color: #795300; background: #fff0c9; }

.calendar-task-strip { margin-bottom: 18px; padding: 13px 16px; border: 1px solid #d5e2ea; border-left: 5px solid #3478a6; border-radius: 11px; background: #f7fbfd; }
.calendar-task-strip > header { margin-bottom: 8px; display: flex; justify-content: space-between; gap: 15px; font-size: 0.78rem; }
.calendar-task-strip > header a { color: var(--accent-dark); text-decoration: none; font-weight: 800; }
.calendar-task-strip > div { display: flex; gap: 9px; overflow-x: auto; }
.calendar-task-strip > div > a { min-width: 245px; padding: 9px 11px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 9px; color: inherit; text-decoration: none; border: 1px solid var(--line); border-radius: 8px; background: white; }
.calendar-task-strip > div > a.is-overdue { border-color: #e3aaa3; background: #fff6f5; }
.calendar-task-strip time { color: #3478a6; font-size: 0.7rem; font-weight: 850; }
.calendar-task-strip span strong,
.calendar-task-strip span small { display: block; }
.calendar-task-strip span strong { font-size: 0.75rem; }
.calendar-task-strip span small { margin-top: 2px; color: var(--muted); font-size: 0.64rem; }
.calendar-task-strip em { color: var(--muted); font-size: 0.62rem; font-style: normal; }

.dashboard-task-list { display: grid; }
.dashboard-task-list > a { padding: 11px 0; display: grid; grid-template-columns: 70px minmax(180px, 1fr) 125px; align-items: center; gap: 12px; color: inherit; text-decoration: none; border-top: 1px solid var(--line); }
.dashboard-task-list > a:first-child { border-top: 0; }
.dashboard-task-list > a.is-overdue time { color: #a64235; font-weight: 850; }
.dashboard-task-list span:nth-child(2) strong,
.dashboard-task-list span:nth-child(2) small { display: block; }
.dashboard-task-list span:nth-child(2) small { margin-top: 3px; color: var(--muted); font-size: 0.7rem; }
.dashboard-task-list time { color: #536174; font-size: 0.72rem; text-align: right; }

.notification-list-card { padding: 8px 20px; }
.notification-list { display: grid; }
.notification-row { position: relative; padding: 15px 3px; display: grid; grid-template-columns: 40px minmax(0, 1fr) 12px auto; align-items: center; gap: 14px; border-top: 1px solid var(--line); }
.notification-row:first-child { border-top: 0; }
.notification-row.is-unread { margin: 0 -20px; padding-left: 23px; padding-right: 23px; background: #f3f9fd; }
.notification-row.severity-critical { border-left: 3px solid #cf5146; }
.notification-row.severity-warning { border-left: 3px solid #e3a53e; }
.notification-icon { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; color: #245b7c; background: #e5f1f7; font-size: 1rem; font-weight: 900; }
.notification-row > div strong { display: block; }
.notification-row > div p { margin: 4px 0; color: #536174; font-size: 0.8rem; }
.notification-row > div small { color: var(--muted); font-size: 0.68rem; }
.unread-dot { width: 8px; height: 8px; border-radius: 50%; background: #2e80b3; }

.board-heading { align-items: center; }
.board-filter { margin: -8px 0 20px; padding: 5px; width: fit-content; display: flex; flex-wrap: wrap; gap: 4px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.board-filter a { padding: 8px 12px; color: #536174; border-radius: 7px; font-size: 0.74rem; font-weight: 800; text-decoration: none; }
.board-filter a:hover,
.board-filter a.active { color: #fff; background: var(--navy-2); }
.board-feed { width: min(100%, 840px); margin-inline: auto; display: grid; gap: 18px; }
.board-post { overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: 0 8px 28px rgba(14, 35, 52, 0.06); }
.board-post.is-pinned { border-color: #e6c774; box-shadow: 0 10px 30px rgba(128, 93, 15, 0.1); }
.board-pin-banner { padding: 8px 20px; color: #70520d; background: linear-gradient(90deg, #fff5cf, #fffaf0); border-bottom: 1px solid #ecd999; font-size: 0.7rem; font-weight: 900; text-transform: uppercase; letter-spacing: 0.04em; }
.board-post-header { padding: 17px 20px 12px; display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; gap: 12px; }
.board-avatar,
.board-comment-avatar { display: grid; place-items: center; flex: 0 0 auto; color: #fff; background: linear-gradient(145deg, #316f96, #173c58); font-weight: 900; }
.board-avatar { width: 44px; height: 44px; border-radius: 50%; font-size: 1rem; }
.board-comment-avatar { width: 34px; height: 34px; border-radius: 50%; font-size: 0.75rem; }
.board-author strong,
.board-author span { display: block; }
.board-author strong { font-size: 0.83rem; }
.board-author span { margin-top: 3px; color: var(--muted); font-size: 0.67rem; }
.board-post-menu { display: flex; align-items: center; gap: 6px; }
.board-post-menu a,
.board-post-menu button,
.board-post-footer button { padding: 5px 7px; color: #647282; background: none; border: 0; font: inherit; font-size: 0.68rem; font-weight: 800; text-decoration: none; cursor: pointer; }
.board-post-menu a:hover,
.board-post-menu button:hover { color: var(--accent-dark); }
.board-post-body { padding: 4px 20px 15px; }
.board-post-body h2 { margin: 3px 0 9px; font-size: 1.12rem; line-height: 1.25; }
.board-post-copy { color: #2f3c4a; font-size: 0.88rem; line-height: 1.65; overflow-wrap: anywhere; }
.board-post-image { margin: 16px -20px 0; display: block; overflow: hidden; background: #edf1f3; }
.board-post-image img { width: 100%; max-height: 620px; display: block; object-fit: contain; }
.board-listing-card { margin-top: 16px; padding: 13px; display: grid; grid-template-columns: 46px minmax(0, 1fr) auto; align-items: center; gap: 13px; color: inherit; text-decoration: none; border: 1px solid #cfe0ea; border-radius: 10px; background: #f4f9fc; }
.board-listing-card:hover { border-color: #83b2cf; }
.board-listing-icon { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 9px; color: #fff; background: #3478a6; font-size: 1.35rem; }
.board-listing-card small,
.board-listing-card strong,
.board-listing-card em { display: block; }
.board-listing-card small { color: #3478a6; font-size: 0.65rem; font-weight: 850; text-transform: uppercase; }
.board-listing-card strong { margin: 3px 0; font-size: 0.82rem; }
.board-listing-card em { color: var(--muted); font-size: 0.7rem; font-style: normal; }
.board-listing-card b { color: var(--accent-dark); font-size: 0.72rem; }
.board-mentions { margin-top: 13px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; color: var(--muted); font-size: 0.68rem; }
.board-mentions strong { padding: 4px 7px; color: #5a4784; border-radius: 99px; background: #f0edf8; font-size: 0.66rem; }
.board-post-stats { margin: 0 20px; padding: 9px 0; display: flex; justify-content: space-between; color: var(--muted); border-top: 1px solid var(--line); font-size: 0.68rem; }
.board-reactions { margin: 0 20px; padding: 6px 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; border-top: 1px solid var(--line); }
.board-reactions form { margin: 0; }
.board-reactions button { width: 100%; padding: 8px 5px; color: #526272; background: transparent; border: 0; border-radius: 7px; font: inherit; font-size: 0.7rem; font-weight: 800; cursor: pointer; }
.board-reactions button:hover { background: #f0f5f8; }
.board-reactions button.active { color: #17547c; background: #e4f1f8; }
.board-comments { padding: 8px 20px 2px; border-top: 1px solid var(--line); background: #f8fafb; }
.board-comments > article { padding: 8px 0; display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 9px; }
.board-comments > article > div:last-child { padding: 9px 11px; border-radius: 10px; background: #fff; border: 1px solid #e3e9ed; }
.board-comments header { display: flex; justify-content: space-between; gap: 12px; }
.board-comments header strong { font-size: 0.73rem; }
.board-comments header time { color: var(--muted); font-size: 0.62rem; }
.board-comments p { margin: 5px 0 0; color: #3d4a57; font-size: 0.76rem; line-height: 1.5; }
.board-comments small { margin-top: 5px; display: block; color: #65538d; font-size: 0.63rem; }
.board-comment-form { padding: 13px 20px; display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: start; gap: 9px; border-top: 1px solid var(--line); background: #f8fafb; }
.board-comment-form textarea { min-height: 72px; resize: vertical; }
.board-comment-form details { margin-top: 6px; }
.board-comment-form summary { width: fit-content; color: #5a4784; font-size: 0.65rem; font-weight: 800; cursor: pointer; }
.board-comment-form select { margin-top: 6px; min-height: 88px; font-size: 0.7rem; }
.board-comment-form .button { min-height: 40px; }
.board-post-footer { padding: 0 20px 10px; display: flex; justify-content: flex-end; background: #f8fafb; }
.board-post-footer button { color: #a04b42; }
.board-empty { text-align: center; }
.board-empty .button { margin-top: 12px; }
.board-editor { width: min(100%, 850px); margin-inline: auto; }
.board-editor-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
.board-editor-grid label { display: grid; gap: 6px; align-content: start; }
.board-editor-grid label > span { color: var(--muted); font-size: 0.76rem; font-weight: 800; }
.board-editor-grid .form-field-wide { grid-column: 1 / -1; }
.board-editor-grid textarea { resize: vertical; }
.board-editor-grid select[multiple] { min-height: 128px; }
.board-editor-note { margin-top: 16px; padding: 12px 14px; display: grid; grid-template-columns: auto 1fr; gap: 11px; color: #4b5a69; border: 1px solid #d6e5ee; border-radius: 9px; background: #f4f9fc; font-size: 0.72rem; }

.site-footer { padding: 42px 0; background: #0a1c2e; color: #d5e1e8; }
.footer-inner { display: flex; justify-content: space-between; gap: 30px; }
.footer-inner p { margin: 6px 0 0; color: #9fb0be; }
.footer-note { color: #9fb0be; }

@media (max-width: 960px) {
  .listing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .filter-grid { grid-template-columns: repeat(2, 1fr); }
  .detail-layout { grid-template-columns: 1fr; }
  .contact-card { position: static; }
  .panel-shell { grid-template-columns: 190px minmax(0, 1fr); gap: 20px; }
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
  .portal-grid { grid-template-columns: repeat(2, 1fr); }
  .deal-metric-grid { grid-template-columns: repeat(2, 1fr); }
  .document-metric-grid { grid-template-columns: repeat(2, 1fr); }
  .document-layout { grid-template-columns: 190px minmax(0, 1fr); }
  .document-form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .template-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .template-editor-layout { grid-template-columns: minmax(0, 1fr) 300px; }
  .management-kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .task-filter { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .task-form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .task-row { grid-template-columns: 65px minmax(180px, 1fr) 110px; }
  .task-row .task-owner,
  .task-row time { grid-row: 2; }
  .leaderboard-list article { grid-template-columns: 36px minmax(150px, 1fr) 80px; }
  .board-feed { width: 100%; }
  .leaderboard-stats { grid-column: 2 / -1; }
  .deal-form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .publication-layout { grid-template-columns: 1fr; }
  .listing-form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .listing-record-grid { grid-template-columns: 1fr; }
  .panel-image-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .calendar-event-form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .calendar-toolbar { flex-wrap: wrap; }
  .calendar-agent-filter { margin-left: 0; }
}

@media (max-width: 680px) {
  .wrap { width: min(100% - 24px, 1180px); }
  .header-inner { min-height: 64px; }
  .main-nav { gap: 14px; font-size: 0.9rem; }
  .main-nav .header-language-switch a { min-width: 31px; padding-inline: 6px; }
  .hero-content { padding: 68px 0 72px; }
  .hero-search { grid-template-columns: 1fr; }
  .section { padding: 58px 0; }
  .section-heading { display: block; }
  .section-heading .text-link { display: inline-block; margin-top: 14px; }
  .listing-grid,
  .benefit-grid,
  .filter-grid { grid-template-columns: 1fr; }
  .field-wide { grid-column: auto; }
  .gallery { min-height: 320px; grid-template-columns: 1fr; }
  .gallery img:not(.gallery-main) { display: none; }
  .gallery-main { grid-row: auto; }
  .detail-content { padding: 22px; }
  .detail-header { display: block; }
  .public-heading-row { align-items: flex-start; }
  .detail-price { margin-top: 20px; text-align: left; }
  .fact-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { display: block; }
  .footer-note { margin-top: 18px; }
  .panel-page { padding-top: 14px; }
  .panel-shell { grid-template-columns: 1fr; }
  .panel-sidebar { position: static; }
  .panel-nav { grid-template-columns: repeat(2, 1fr); }
  .panel-logout { padding-top: 4px; }
  .panel-heading { display: block; }
  .panel-heading .button { margin-top: 16px; }
  .metric-grid,
  .panel-columns,
  .portal-grid,
  .deal-metric-grid,
  .channel-checklist ul { grid-template-columns: 1fr; }
  .panel-filter,
  .panel-filter-short,
  .panel-filter-contacts { grid-template-columns: 1fr; }
  .deal-filter { grid-template-columns: 1fr; }
  .document-filter,
  .document-layout,
  .document-metric-grid,
  .document-form-grid { grid-template-columns: 1fr; }
  .template-card-grid,
  .template-editor-layout { grid-template-columns: 1fr; }
  .placeholder-reference { position: static; max-height: none; }
  .analytics-filter { display: grid; grid-template-columns: 1fr; }
  .analytics-filter label { min-width: 0; }
  .management-kpi-grid,
  .finance-currency-grid,
  .management-columns,
  .attention-grid { grid-template-columns: 1fr; }
  .task-filter,
  .task-form-grid { grid-template-columns: 1fr; }
  .task-row { grid-template-columns: 1fr auto; }
  .task-row .task-priority { grid-column: 1; }
  .task-row .task-main { grid-column: 1 / -1; }
  .notification-row { grid-template-columns: 36px minmax(0, 1fr); }
  .board-editor-grid { grid-template-columns: 1fr; }
  .board-editor-grid .form-field-wide { grid-column: auto; }
  .board-post-header { grid-template-columns: 40px minmax(0, 1fr); }
  .board-post-menu { grid-column: 2; }
  .board-listing-card { grid-template-columns: 42px minmax(0, 1fr); }
  .board-listing-card b { grid-column: 2; }
  .board-comment-form { grid-template-columns: 30px minmax(0, 1fr); }
  .board-comment-form .button { grid-column: 2; width: fit-content; }
  .notification-row .unread-dot { position: absolute; top: 16px; right: 12px; }
  .notification-row form { grid-column: 2; }
  .dashboard-task-list > a { grid-template-columns: 1fr auto; }
  .dashboard-task-list > a > span:nth-child(2) { grid-column: 1 / -1; grid-row: 2; }
  .leaderboard-list article { grid-template-columns: 34px minmax(0, 1fr) auto; }
  .score-explanation { display: block; }
  .score-explanation ul { margin-top: 14px; justify-content: flex-start; }
  .document-form-grid .form-field-wide { grid-column: auto; }
  .document-history article { grid-template-columns: 1fr; gap: 7px; }
  .panel-table { min-width: 720px; }
  .login-page { padding-top: 35px; }
  .listing-form-grid,
  .panel-image-grid,
  .image-upload-form,
  .calendar-event-form-grid,
  .listing-document-list,
  .listing-relation-grid { grid-template-columns: 1fr; }
  .listing-relation-grid .form-field-wide { grid-column: auto; }
  .listing-record-list article { display: grid; }
  .deal-form-grid { grid-template-columns: 1fr; }
  .deal-form-grid .form-field-wide { grid-column: auto; }
  .calendar-event-form-grid .form-field-wide { grid-column: auto; }
  .calendar-toolbar { align-items: stretch; }
  .calendar-agent-filter { width: 100%; display: grid; }
  .calendar-agent-filter select { width: 100%; }
  .calendar-view-switch { width: 100%; }
  .calendar-view-switch a { flex: 1; text-align: center; }
  .listing-map-heading { display: block; }
  .listing-map-actions { margin-top: 12px; }
  .listing-location-map,
  .public-listing-map { min-height: 300px; }
  .contact-role-field > div { grid-template-columns: 1fr; }
  .heading-actions { justify-content: flex-start; }
  .activity-timeline article { grid-template-columns: 1fr; gap: 8px; }
  .today-event-list > a { grid-template-columns: 62px minmax(0, 1fr); }
  .today-event-list em { grid-column: 2; text-align: left; }
}

/* Etap 26: spersonalizowane pakiety ofertowe. */
.package-explainer {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  margin: 0 0 22px;
  padding: 18px 21px;
  border: 1px solid #d9e3e8;
  border-radius: 14px;
  background: linear-gradient(135deg, #f8fbfc, #fff8f3);
  color: #536570;
  line-height: 1.55;
}
.package-explainer strong { color: #172b48; white-space: nowrap; }
.package-copy-card { display: grid; gap: 20px; }
.package-copy-card label > span,
.package-copy-card label > small { display: block; }
.package-copy-card label > span { margin-bottom: 7px; color: #172b48; font-weight: 800; }
.package-copy-card label > small { margin-top: 6px; color: var(--muted); }
.package-copy-card input,
.package-copy-card textarea { width: 100%; }
.package-selection { padding: 0 24px 24px; }
.package-choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
.package-choice { position: relative; display: grid; grid-template-columns: auto 23px 1fr; gap: 11px; align-items: center; min-height: 72px; padding: 14px 16px; border: 1px solid #dce4e8; border-radius: 13px; background: #fbfcfd; cursor: pointer; }
.package-choice:hover { border-color: #d77b43; background: #fff9f5; }
.package-choice input { width: 18px; height: 18px; accent-color: #d77b43; }
.package-choice-mark { display: grid; place-items: center; width: 23px; height: 23px; border-radius: 50%; background: #e7edf1; color: transparent; font-weight: 900; }
.package-choice:has(input:checked) { border-color: #d77b43; box-shadow: 0 0 0 2px rgba(215,123,67,.12); background: #fff8f3; }
.package-choice:has(input:checked) .package-choice-mark { background: #d77b43; color: #fff; }
.package-choice strong { color: #172b48; line-height: 1.45; }
.package-result-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 0; overflow: hidden; }
.package-result-summary > div { padding: 21px 23px; border-left: 1px solid #e1e8ec; }
.package-result-summary > div:first-child { border-left: 0; }
.package-result-summary span,
.package-result-summary strong,
.package-result-summary small { display: block; }
.package-result-summary span { color: var(--muted); font-size: .74rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
.package-result-summary strong { margin-top: 8px; color: #172b48; font-family: Georgia, serif; font-size: 1.08rem; }
.package-result-summary small { margin-top: 5px; color: #66757e; }
.package-introduction p { margin-bottom: 0; color: #536570; line-height: 1.65; }
.package-snapshot-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; padding: 0 24px 24px; }
.package-snapshot-grid article { padding: 18px; border: 1px solid #dfe6ea; border-radius: 13px; background: #fbfcfd; }
.package-snapshot-grid header { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.package-snapshot-grid h3 { margin: 14px 0 7px; color: #172b48; font-family: Georgia, serif; }
.package-snapshot-grid p { min-height: 38px; color: var(--muted); }
.package-snapshot-grid dl { display: grid; gap: 7px; margin: 16px 0; }
.package-snapshot-grid dl div { display: flex; justify-content: space-between; gap: 12px; padding-top: 7px; border-top: 1px solid #e5ebee; }
.package-snapshot-grid dt { color: var(--muted); }
.package-snapshot-grid dd { margin: 0; color: #172b48; font-weight: 800; text-align: right; }
.package-snapshot-grid a { color: #b75e2c; font-weight: 800; text-decoration: none; }

@media (max-width: 980px) {
  .package-result-summary,
  .package-snapshot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
  .package-explainer,
  .package-choice-grid,
  .package-result-summary,
  .package-snapshot-grid { grid-template-columns: 1fr; }
  .package-explainer strong { white-space: normal; }
  .package-result-summary > div { border-left: 0; border-top: 1px solid #e1e8ec; }
  .package-result-summary > div:first-child { border-top: 0; }
}

/* Etap 25: lokalna analiza dokumentów. */
.analysis-heading form { align-self: end; }
.analysis-local-note,
.analysis-format-warning,
.analysis-disclaimer {
  margin: 0 0 20px;
  padding: 17px 20px;
  border: 1px solid #cfe0e9;
  border-radius: 12px;
  background: #f3f8fb;
  color: #415967;
  line-height: 1.55;
}
.analysis-format-warning { border-color: #ead19a; background: #fff9e9; color: #745719; }
.analysis-disclaimer { margin-top: 22px; margin-bottom: 0; border-color: #ead9ae; background: #fffaf0; color: #675526; }
.analysis-overview {
  display: grid;
  grid-template-columns: 190px minmax(320px, 1fr) 190px;
  gap: 28px;
  align-items: center;
}
.analysis-risk { min-height: 155px; display: grid; place-content: center; text-align: center; border: 1px solid #dde5e9; border-radius: 16px; background: #f8fafb; }
.analysis-risk span,
.analysis-risk b,
.analysis-integrity span,
.analysis-integrity strong,
.analysis-integrity small { display: block; }
.analysis-risk span,
.analysis-integrity span { color: var(--muted); font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.analysis-risk strong { margin: 5px 0; color: #172439; font-family: Georgia, serif; font-size: 2.8rem; line-height: 1; }
.analysis-risk strong small { font-size: .36em; }
.analysis-risk b { font-size: .8rem; }
.analysis-risk.risk-low { border-color: #b9dec8; background: #f0faf4; color: #26704a; }
.analysis-risk.risk-medium { border-color: #ead19a; background: #fff9e9; color: #866113; }
.analysis-risk.risk-high { border-color: #e9b8ae; background: #fff5f2; color: #a14439; }
.analysis-risk.risk-critical { border-color: #d89090; background: #fff0f0; color: #861f1f; }
.analysis-summary h2 { margin: 8px 0 10px; }
.analysis-summary p { color: #536772; line-height: 1.55; }
.analysis-summary small { color: var(--muted); }
.analysis-integrity { padding: 17px; border: 1px solid #e0e7eb; border-radius: 13px; background: #f9fbfc; }
.analysis-integrity strong { margin: 8px 0 4px; font-family: Georgia, serif; font-size: 1.35rem; }
.analysis-integrity .is-ok { color: #26704a; }
.analysis-integrity .is-error { color: #a13b36; }
.analysis-integrity small { color: var(--muted); }
.analysis-metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 18px 0; }
.analysis-metric-grid article { padding: 18px; border: 1px solid #dfe7eb; border-radius: 13px; background: #fff; }
.analysis-metric-grid span,
.analysis-metric-grid strong,
.analysis-metric-grid small { display: block; }
.analysis-metric-grid span { color: var(--muted); font-size: .75rem; font-weight: 800; }
.analysis-metric-grid strong { margin-top: 7px; color: #172439; font-family: Georgia, serif; font-size: 1.7rem; }
.analysis-metric-grid small { color: var(--muted); }
.analysis-columns { display: grid; grid-template-columns: minmax(320px, .8fr) minmax(420px, 1.2fr); gap: 18px; }
.analysis-fields,
.analysis-checklist,
.analysis-findings { padding: 0 24px 24px; }
.analysis-fields article { padding: 14px 0; border-top: 1px solid #e5eaed; }
.analysis-fields article:first-child { border-top: 0; }
.analysis-fields strong { display: block; margin-bottom: 8px; }
.analysis-fields article div { display: flex; flex-wrap: wrap; gap: 6px; }
.analysis-fields article span { padding: 5px 8px; border-radius: 7px; background: #edf3f6; color: #3d5665; font-size: .78rem; }
.analysis-checklist article,
.analysis-findings article { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 11px; padding: 13px 0; border-top: 1px solid #e5eaed; }
.analysis-checklist article:first-child,
.analysis-findings article:first-child { border-top: 0; }
.analysis-checklist article > span { width: 29px; height: 29px; display: grid; place-items: center; border-radius: 50%; font-weight: 900; }
.analysis-checklist .check-present > span { background: #dff3e6; color: #277048; }
.analysis-checklist .check-missing > span { background: #f8e4df; color: #a34139; }
.analysis-checklist .check-manual > span { background: #fff0cf; color: #8a620e; }
.analysis-checklist strong,
.analysis-findings strong { color: #172439; }
.analysis-checklist p,
.analysis-findings p { margin: 4px 0 0; color: #61717a; font-size: .8rem; line-height: 1.45; }
.analysis-findings article > span { align-self: start; padding: 5px 6px; border-radius: 6px; text-align: center; font-size: .62rem; font-weight: 900; }
.analysis-findings .severity-medium > span { background: #fff0cf; color: #805c0d; }
.analysis-findings .severity-high > span { background: #f8e4df; color: #983c35; }
.analysis-findings .severity-critical > span { background: #8c2424; color: #fff; }
.analysis-warnings ul { margin-bottom: 0; color: #76571a; line-height: 1.6; }
.analysis-history-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; padding: 0 24px 24px; }
.analysis-history-grid article { padding: 15px; border: 1px solid #e0e7eb; border-radius: 12px; background: #f9fbfc; }
.analysis-history-grid article.is-current { border-color: #d6a07d; background: #fff8f3; }
.analysis-history-grid span,
.analysis-history-grid strong,
.analysis-history-grid small { display: block; }
.analysis-history-grid span,
.analysis-history-grid small { color: var(--muted); font-size: .74rem; }
.analysis-history-grid strong { margin: 7px 0 5px; color: #172439; font-family: Georgia, serif; }
.analysis-history-grid small + small { margin-top: 3px; }
.analysis-empty { padding: 50px 28px; text-align: center; }
.analysis-empty h2 { margin: 8px 0 12px; }
.analysis-empty p { max-width: 740px; margin: 0 auto; color: var(--muted); line-height: 1.6; }
.document-analysis-preview { display: grid; grid-template-columns: minmax(320px, 1fr) auto auto; gap: 24px; align-items: center; }
.document-analysis-preview h2 { margin: 7px 0 8px; }
.document-analysis-preview p { margin: 0; color: var(--muted); line-height: 1.5; }
.analysis-preview-score { min-width: 120px; padding: 13px 16px; border: 1px solid #dfe6e9; border-radius: 11px; text-align: center; }
.analysis-preview-score span,
.analysis-preview-score strong,
.analysis-preview-score small { display: block; }
.analysis-preview-score span,
.analysis-preview-score small { color: var(--muted); font-size: .72rem; }
.analysis-preview-score strong { margin: 3px 0; font-family: Georgia, serif; font-size: 1.35rem; }

@media (max-width: 980px) {
  .analysis-overview,
  .analysis-columns { grid-template-columns: 1fr; }
  .analysis-metric-grid,
  .analysis-history-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
  .analysis-metric-grid,
  .analysis-history-grid,
  .document-analysis-preview { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .header-inner { padding: 10px 0; flex-wrap: wrap; }
  .main-nav { width: 100%; justify-content: space-between; }
}

/* Etap 32 — wyjaśnialny asystent operacyjny 24/7 */
.panel-nav-count { min-width: 22px; margin-left: auto; padding: 2px 7px; border-radius: 99px; color: #090806; background: #d4b15f; font-size: .66rem; text-align: center; }
.assistant-heading { align-items: flex-end; }
.assistant-safety { max-width: 330px; padding: 15px 18px; border: 1px solid #564820; background: #1c180e; }
.assistant-safety strong, .assistant-safety span { display: block; }
.assistant-safety strong { color: #e5c774; }
.assistant-safety span { margin-top: 4px; color: #b7ad9a; font-size: .78rem; line-height: 1.45; }
.assistant-summary-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.assistant-summary-grid article { min-height: 132px; padding: 20px; border: 1px solid #393329; background: linear-gradient(145deg, #171714, #10100e); }
.assistant-summary-grid span, .assistant-summary-grid small { display: block; color: #a69e8e; }
.assistant-summary-grid strong { display: block; margin: 8px 0 4px; color: #e8ce83; font: 700 2.25rem/1 Georgia, serif; }
.assistant-summary-grid .is-critical { border-color: #70382f; background: linear-gradient(145deg, #211411, #130f0d); }
.assistant-summary-grid .is-critical strong { color: #ed9c86; }
.assistant-filters { display: grid; grid-template-columns: repeat(3, minmax(160px, 1fr)) auto; align-items: end; gap: 14px; margin-bottom: 18px; padding: 18px; }
.assistant-filters label { display: grid; gap: 7px; color: #b9ae9b; font-size: .74rem; font-weight: 800; }
.assistant-recommendation-list { display: grid; gap: 10px; }
.assistant-recommendation { display: grid; grid-template-columns: 74px minmax(0, 1fr) 190px; gap: 18px; align-items: center; padding: 20px; border: 1px solid #393329; border-left: 3px solid #927532; background: #121210; }
.assistant-recommendation.severity-critical { border-left-color: #e6795f; background: linear-gradient(90deg, #211411, #121210 24%); }
.assistant-recommendation.severity-high { border-left-color: #dfb44e; }
.assistant-score { display: flex; align-items: baseline; color: #d8bd72; }
.assistant-score strong { font: 700 2.15rem/1 Georgia, serif; }
.assistant-score span { color: #786f60; font-size: .72rem; }
.assistant-recommendation-copy header, .assistant-recommendation-copy footer { display: flex; flex-wrap: wrap; gap: 8px 16px; color: #918979; font-size: .72rem; }
.assistant-recommendation-copy header span { color: #dfc578; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.assistant-recommendation-copy header em { font-style: normal; }
.assistant-recommendation-copy h3 { margin: 7px 0 5px; color: #f0e8da; }
.assistant-recommendation-copy p { margin: 0 0 9px; color: #bbb2a1; line-height: 1.5; }
.assistant-actions { display: grid; gap: 7px; }
.assistant-actions form { display: grid; gap: 6px; margin: 0; }
.assistant-actions button { width: 100%; padding: 9px 10px; color: #d7cbaF; border: 1px solid #4b4231; background: #191713; font: inherit; font-size: .75rem; font-weight: 800; cursor: pointer; }
.assistant-actions .muted-action { color: #8e8679; border-color: transparent; background: transparent; }
.assistant-agent-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.assistant-agent-grid article { padding: 18px; border: 1px solid #393329; background: #121210; }
.assistant-agent-grid > article > span { color: #a69d8d; font-size: .72rem; }
.assistant-agent-grid > article > strong { display: block; margin: 5px 0 14px; color: #eee5d6; }
.assistant-agent-grid dl { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 0; }
.assistant-agent-grid dl div { padding: 8px; background: #0c0c0a; }
.assistant-agent-grid dt { color: #7e7669; font-size: .64rem; }
.assistant-agent-grid dd { margin: 4px 0 0; color: #e4c778; font-weight: 800; }
.assistant-empty { padding: 40px 20px; text-align: center; }
.assistant-empty strong { color: #e8cf85; font: 700 1.5rem Georgia, serif; }
.assistant-empty p { color: #9e9687; }
.assistant-history .compact-list article { display: flex; justify-content: space-between; gap: 18px; padding: 12px; border-bottom: 1px solid #302b23; }
.assistant-history time { color: #8d8578; font-size: .75rem; }
.assistant-live-mark { display: inline-block; margin-bottom: 5px; color: #d5b45c; font-size: .68rem; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.assistant-critical-banner { display: flex; gap: 8px; margin-bottom: 10px; padding: 11px 14px; color: #d9a08e; border: 1px solid #62372f; background: #201411; }
.assistant-preview-list { display: grid; gap: 8px; }
.assistant-preview-list > a { display: grid; grid-template-columns: 46px minmax(0, 1fr) auto; gap: 13px; align-items: center; padding: 13px; color: #e8dfd1; border: 1px solid #373128; background: #11110f; text-decoration: none; }
.assistant-preview-list > a:hover { border-color: #876f34; transform: translateX(2px); }
.assistant-mini-score { display: grid; place-items: center; width: 42px; height: 42px; color: #0a0907; border-radius: 50%; background: #d4b15f; font-weight: 900; }
.assistant-preview-list small { display: block; margin-top: 3px; color: #9f9789; }
.assistant-preview-list em { color: #d6b75f; font-size: .76rem; font-style: normal; font-weight: 800; }
@media (max-width: 1180px) { .assistant-summary-grid { grid-template-columns: repeat(3, 1fr); } .assistant-recommendation { grid-template-columns: 64px minmax(0, 1fr); } .assistant-actions { grid-column: 2; grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) { .assistant-summary-grid, .assistant-agent-grid { grid-template-columns: 1fr 1fr; } .assistant-filters { grid-template-columns: 1fr; } .assistant-recommendation { grid-template-columns: 1fr; } .assistant-actions { grid-column: auto; grid-template-columns: 1fr; } .assistant-preview-list > a { grid-template-columns: 42px 1fr; } .assistant-preview-list em { grid-column: 2; } }
@media (max-width: 520px) { .assistant-summary-grid, .assistant-agent-grid { grid-template-columns: 1fr; } .assistant-safety { max-width: none; } }

/* Etap 18: bezpieczna korespondencja wychodząca CRM. */
.email-configuration-warning,
.email-error-box {
  margin: 0 0 20px;
  padding: 14px 17px;
  border: 1px solid #f1d28d;
  border-radius: 12px;
  background: #fff8e7;
  color: #684a07;
}
.email-error-box { border-color: #f0b4b4; background: #fff1f1; color: #8a2020; }
.email-error-box p { margin: 6px 0 0; }
.email-filter { grid-template-columns: minmax(240px, 1fr) 220px auto; }
.email-table th:first-child { width: 145px; }
.email-table th:nth-child(2) { width: 150px; }
.email-table td { vertical-align: middle; }
.email-error-inline { display: block; color: #b33a3a; margin-top: 4px; }
.email-template-picker { display: flex; justify-content: space-between; gap: 24px; align-items: center; margin-bottom: 20px; }
.email-template-picker h2,
.email-template-picker p { margin: 0; }
.email-template-picker p { margin-top: 5px; }
.email-template-picker > div:last-child { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.email-editor-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.email-editor-grid .form-field-wide { grid-column: 1 / -1; }
.email-editor-grid label > span { display: block; font-weight: 700; margin-bottom: 7px; }
.email-editor-grid label > ul { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.email-editor-grid label > ul label { display: flex; align-items: center; gap: 8px; padding: 10px; border: 1px solid #dfe6ec; border-radius: 9px; background: #fafcfd; font-weight: 500; }
.email-editor-actions { display: flex; align-items: center; gap: 16px; margin-top: 20px; }
.email-editor-actions span { color: #6c7881; font-size: .9rem; }
.placeholder-help summary { cursor: pointer; font-weight: 800; }
.placeholder-help div,
.placeholder-reference div { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 14px; }
.placeholder-help code,
.placeholder-reference code { padding: 6px 8px; border-radius: 6px; background: #edf3f7; color: #284456; }
.email-detail-columns { grid-template-columns: minmax(0, 1.7fr) minmax(280px, .7fr); }
.email-preview { overflow: hidden; }
.email-preview-meta { display: grid; grid-template-columns: 68px minmax(0, 1fr); gap: 8px 12px; padding-bottom: 18px; border-bottom: 1px solid #e4e9ed; }
.email-preview-meta span { color: #78858d; }
.email-preview-body { min-height: 240px; padding: 26px 4px; line-height: 1.65; color: #25333b; }
.email-attachments { border-top: 1px solid #e4e9ed; padding-top: 16px; }
.email-attachments a { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; align-items: center; gap: 9px; padding: 10px 0; border-top: 1px solid #edf0f2; }
.email-history article { display: grid; grid-template-columns: 145px 180px minmax(0, 1fr) 180px; gap: 14px; padding: 13px 0; border-top: 1px solid #e5e9ec; align-items: start; }
.email-history article:first-child { border-top: 0; }
.email-history p { margin: 0; }
.email-template-card { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.email-template-card h2 { margin: 12px 0 7px; }
.email-template-card p { margin: 0 0 7px; }

/* Etap 19: panel kont SMTP i widoczna polityka antyspamowa. */
.email-quota-strip {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 0 0 20px;
}
.email-quota-strip span {
  padding: 8px 11px;
  border: 1px solid #dce5eb;
  border-radius: 999px;
  background: #f8fbfc;
  color: #53636d;
  font-size: .83rem;
}
.smtp-settings-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, .65fr);
  gap: 22px;
  align-items: start;
}
.smtp-settings-sidebar { display: grid; gap: 18px; }
.smtp-account-form .button { justify-self: start; }
.smtp-status-card h2,
.smtp-policy-card h2 { margin-top: 0; }
.smtp-status-card form { margin-top: 18px; }
.smtp-status-card .panel-muted { margin-bottom: 0; }
.smtp-policy-card ul { margin: 0; padding-left: 20px; display: grid; gap: 8px; }
.smtp-policy-card p { color: #5e6d76; line-height: 1.55; margin-bottom: 0; }
.contact-optout-field {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 10px;
  align-content: center;
}
.contact-optout-field input { width: 18px; min-height: 18px; }
.contact-optout-field small { grid-column: 1 / -1; }
.button:disabled,
button:disabled { cursor: not-allowed; opacity: .55; }

@media (max-width: 820px) {
  .email-filter,
  .email-editor-grid,
  .email-detail-columns { grid-template-columns: 1fr; }
  .email-editor-grid .form-field-wide { grid-column: auto; }
  .email-template-picker { display: block; }
  .email-template-picker > div:last-child { justify-content: flex-start; margin-top: 14px; }
  .email-history article { grid-template-columns: 1fr; gap: 5px; }
  .email-editor-grid label > ul { grid-template-columns: 1fr; }
  .email-editor-actions { align-items: flex-start; flex-direction: column; }
  .smtp-settings-layout { grid-template-columns: 1fr; }
}

/* Etap 21: zespół, agenci i bezpieczny cykl dostępu. */
.team-filter { grid-template-columns: minmax(260px, 1fr) auto; }
.team-section { padding: 0; overflow: hidden; }
.team-section-heading { display: flex; justify-content: space-between; gap: 18px; align-items: flex-start; padding: 22px 24px 18px; }
.team-section-heading h2 { margin: 0; }
.team-section-heading p { margin: 5px 0 0; color: var(--muted); }
.team-table { min-width: 940px; }
.team-person { display: flex; gap: 11px; align-items: center; color: inherit; }
.team-person > span:last-child { min-width: 0; }
.team-person strong,
.team-person small { display: block; }
.team-person small { margin-top: 3px; color: var(--muted); font-size: .76rem; }
.team-avatar { width: 38px; height: 38px; flex: 0 0 38px; display: grid; place-items: center; border-radius: 13px; background: #e9f0f5; color: #17324d; font-family: Georgia, serif; font-weight: 900; }
.team-avatar.large { width: 68px; height: 68px; flex-basis: 68px; border-radius: 20px; font-size: 1.3rem; background: #17324d; color: #fff; }
.team-role { display: inline-flex; width: fit-content; padding: 5px 9px; border-radius: 999px; background: #edf2f5; color: #52616b; font-size: .72rem; font-weight: 800; }
.team-role.role-owner { background: #f8e8dd; color: #9b4e22; }
.team-role.role-manager { background: #e9e6f5; color: #59428b; }
.team-role.role-agent { background: #e2f2e8; color: #287044; }
.team-role.role-viewer { background: #edf2f5; color: #66727a; }
.team-invitation-link { margin-bottom: 20px; padding: 16px 18px; display: grid; grid-template-columns: minmax(250px, .7fr) minmax(300px, 1.3fr); gap: 16px; align-items: center; border: 1px solid #e8c66c; border-radius: 12px; background: #fff8e4; color: #62470b; }
.team-invitation-link p { margin: 4px 0 0; }
.team-invitation-link input { background: #fff; }
.team-management-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; margin-top: 22px; align-items: start; }
.team-invitation-list { padding: 0 24px 22px; }
.team-invitation-list article { display: grid; grid-template-columns: minmax(150px, 1fr) auto minmax(145px, .8fr) auto; gap: 12px; align-items: center; padding: 14px 0; border-top: 1px solid #e6ebee; }
.team-invitation-list article:first-child { border-top: 0; }
.team-invitation-list strong,
.team-invitation-list small { display: block; }
.team-invitation-list small { margin-top: 3px; color: var(--muted); }
.text-action { border: 0; padding: 0; background: transparent; color: #31556c; font: inherit; font-weight: 800; cursor: pointer; }
.text-action.danger { color: #a83b3b; }
.team-audit-list { padding: 0 24px 22px; }
.team-audit-list article { display: grid; grid-template-columns: 105px minmax(0, 1fr) 130px; gap: 12px; align-items: start; padding: 13px 0; border-top: 1px solid #e6ebee; }
.team-audit-list article:first-child { border-top: 0; }
.team-audit-list time,
.team-audit-list small { color: var(--muted); font-size: .78rem; }
.team-audit-list p { margin: 4px 0 0; color: #53636d; font-size: .84rem; line-height: 1.45; }
.team-form-card { max-width: 900px; }
.team-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.team-form-grid label { display: grid; gap: 7px; align-content: start; }
.team-form-grid label > span { color: var(--muted); font-size: .78rem; font-weight: 800; }
.team-form-grid .form-field-wide { grid-column: 1 / -1; }
.team-form-grid .checkbox-row { grid-template-columns: auto 1fr; align-items: center; }
.team-form-grid .checkbox-row input { width: 18px; min-height: 18px; }
.team-form-grid .checkbox-row small { grid-column: 1 / -1; }
.team-security-note { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; padding: 14px 16px; margin: 18px 0; border: 1px solid #d7e4ec; border-radius: 10px; background: #f5f9fb; color: #475a67; }
.team-security-note p { margin: 0; line-height: 1.5; }
.team-profile-layout { display: grid; grid-template-columns: minmax(300px, .72fr) minmax(420px, 1.28fr); gap: 22px; align-items: start; }
.team-profile-identity { display: flex; gap: 15px; align-items: center; padding-bottom: 20px; }
.team-profile-identity h2 { margin: 7px 0 2px; }
.team-profile-identity p { margin: 0; color: var(--muted); }
.team-owner-notes { margin-top: 20px; padding: 15px; border-radius: 10px; background: #fff8e8; color: #654b12; }
.team-owner-notes p { margin: 7px 0 0; }
.team-workload-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; padding: 0 24px 24px; }
.team-workload-grid div { padding: 15px; border: 1px solid #e1e8ec; border-radius: 11px; background: #f8fafb; }
.team-workload-grid strong,
.team-workload-grid span { display: block; }
.team-workload-grid strong { font-family: Georgia, serif; font-size: 1.5rem; color: #172439; }
.team-workload-grid span { margin-top: 4px; color: var(--muted); font-size: .76rem; }
.team-danger-zone { margin: 0 24px 24px; padding: 17px; border: 1px solid #f0c6c6; border-radius: 11px; background: #fff7f7; }
.team-danger-zone.safe { border-color: #d5e4ec; background: #f6fafc; }
.team-danger-zone h3 { margin: 0; }
.team-danger-zone p { color: var(--muted); }
.team-danger-zone form { display: grid; grid-template-columns: minmax(200px, 1fr) auto; gap: 10px; }
.team-access-card { margin-top: 22px; display: grid; grid-template-columns: minmax(260px, 1fr) minmax(300px, 1fr); gap: 25px; align-items: center; border-color: #efd1d1; }
.team-access-card h2 { margin-top: 0; }
.team-access-card p { margin-bottom: 0; color: var(--muted); }
.team-access-card form { display: grid; gap: 10px; justify-items: start; }
.team-access-card label { width: 100%; display: grid; gap: 7px; }
.team-access-card label span { color: var(--muted); font-size: .78rem; font-weight: 800; }
.danger-button { border-color: #a83b3b; background: #a83b3b; color: #fff; }
.team-accept-page { min-height: 70vh; padding: 70px 20px; display: grid; place-items: start center; background: #f3f6f8; }
.team-accept-card { width: min(100%, 560px); padding: 34px; border: 1px solid #dfe6eb; border-radius: 18px; background: #fff; box-shadow: 0 18px 45px rgba(25, 45, 62, .1); }
.team-accept-card h1 { margin: 10px 0 20px; }
.team-accept-organization { margin-bottom: 20px; padding: 18px; border-radius: 12px; background: #f5f8fa; }
.team-accept-organization > strong { display: inline-block; margin-right: 8px; font-size: 1.15rem; }
.team-accept-organization p { margin: 11px 0 4px; }
.team-accept-form { margin-top: 20px; }
.team-accept-expiry { margin: 20px 0 0; color: var(--muted); font-size: .82rem; text-align: center; }

@media (max-width: 980px) {
  .team-management-columns,
  .team-profile-layout { grid-template-columns: 1fr; }
  .team-invitation-list article { grid-template-columns: minmax(150px, 1fr) auto; }
  .team-invitation-list article > div:nth-child(3) { grid-column: 1; }
  .team-invitation-list article form { grid-column: 2; grid-row: 2; }
}

@media (max-width: 680px) {
  .team-filter,
  .team-invitation-link,
  .team-form-grid,
  .team-access-card { grid-template-columns: 1fr; }
  .team-form-grid .form-field-wide { grid-column: auto; }
  .team-workload-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .team-danger-zone form { grid-template-columns: 1fr; }
  .team-audit-list article { grid-template-columns: 1fr; gap: 5px; }
  .team-accept-card { padding: 24px; }
}

/* Etap 23: scoring dopasowań i historia prezentacji nieruchomości. */
.matching-explainer {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  margin: 18px 0 0;
  padding: 15px 18px;
  border: 1px solid #d7e4ec;
  border-radius: 12px;
  background: #f5f9fb;
  color: #475a67;
}
.matching-explainer strong { color: #183149; white-space: nowrap; }
.match-table { min-width: 1120px; }
.match-score {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #edf2f5;
  color: #596872;
  font-family: Georgia, serif;
  font-weight: 900;
}
.match-score.match-high { background: #def3e5; color: #247044; }
.match-score.match-medium { background: #fff0cf; color: #8a620e; }
.match-score.match-low { background: #f8e4e2; color: #9a3e39; }
.match-reasons { min-width: 210px; display: grid; gap: 4px; }
.match-reasons span { font-size: .75rem; line-height: 1.35; }
.match-positive { color: #287044; }
.match-caution { color: #9a6818; }
.viewing-filter { grid-template-columns: minmax(260px, 1fr) 230px auto; }
.viewing-table { min-width: 980px; }
.viewing-form-card { max-width: 960px; }
.viewing-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.viewing-form-grid label { display: grid; gap: 7px; align-content: start; }
.viewing-form-grid label > span { color: var(--muted); font-size: .78rem; font-weight: 800; }
.viewing-form-grid .form-field-wide { grid-column: 1 / -1; }
.viewing-history article {
  display: grid;
  grid-template-columns: 125px minmax(260px, 1fr) 170px auto;
  gap: 16px;
  align-items: start;
  padding: 15px 0;
  border-top: 1px solid #e4eaee;
}
.viewing-history article:first-child { border-top: 0; }
.viewing-history time,
.viewing-history small { color: var(--muted); font-size: .78rem; }
.viewing-history strong,
.viewing-history small { display: block; }
.viewing-history p { margin: 7px 0 0; color: #53636d; }
.viewing-history article > div:nth-child(3) { display: grid; gap: 7px; }

@media (max-width: 780px) {
  .matching-explainer,
  .viewing-filter,
  .viewing-form-grid,
  .viewing-history article { grid-template-columns: 1fr; }
  .matching-explainer strong { white-space: normal; }
  .viewing-form-grid .form-field-wide { grid-column: auto; }
}

/* Etap 24: automatyczna analiza ofert porównawczych. */
.valuation-heading form { align-self: end; }
.valuation-subject {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  padding: 0;
  overflow: hidden;
}
.valuation-subject > div { padding: 22px 24px; border-left: 1px solid #e2e8ec; }
.valuation-subject > div:first-child { border-left: 0; }
.valuation-subject span,
.valuation-subject strong,
.valuation-subject small { display: block; }
.valuation-subject span { color: var(--muted); font-size: .76rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.valuation-subject strong { margin-top: 8px; color: #172439; font-family: Georgia, serif; font-size: 1.12rem; }
.valuation-subject small { margin-top: 5px; color: #66747c; }
.valuation-result {
  display: grid;
  grid-template-columns: minmax(320px, 1.05fr) minmax(420px, .95fr);
  gap: 32px;
  margin-top: 22px;
  background: linear-gradient(135deg, #fff 0%, #f7fafb 100%);
}
.valuation-result-main { align-self: center; }
.valuation-result-main > p:last-child { max-width: 680px; color: #596a75; line-height: 1.55; }
.valuation-total { margin: 12px 0 5px; color: #172439; font-family: Georgia, serif; font-size: clamp(2.3rem, 5vw, 4.6rem); font-weight: 900; line-height: 1; }
.valuation-total small { font-size: .34em; }
.valuation-range { margin: 12px 0 20px; color: #63717a; }
.valuation-metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.valuation-metrics article { min-height: 112px; padding: 17px; border: 1px solid #dde5e9; border-radius: 13px; background: #fff; }
.valuation-metrics span,
.valuation-metrics strong,
.valuation-metrics small { display: block; }
.valuation-metrics span { min-height: 32px; color: var(--muted); font-size: .75rem; font-weight: 800; }
.valuation-metrics strong { margin-top: 9px; color: #172439; font-family: Georgia, serif; font-size: 1.25rem; }
.valuation-metrics small { margin-top: 4px; color: #69777f; }
.valuation-confidence.confidence-low { color: #a33f39; }
.valuation-confidence.confidence-medium { color: #9a6b12; }
.valuation-confidence.confidence-high { color: #26734a; }
.valuation-table-wrap { padding: 0 24px 24px; }
.valuation-table { min-width: 980px; }
.valuation-table a { color: #244c65; text-decoration: none; }
.valuation-table small { max-width: 310px; }
.valuation-empty { margin-top: 22px; text-align: center; padding: 50px 28px; }
.valuation-empty h2 { margin: 8px 0 12px; }
.valuation-empty p { max-width: 760px; margin: 0 auto; color: var(--muted); line-height: 1.6; }
.valuation-history { margin-top: 22px; }
.valuation-history-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; padding: 0 24px 24px; }
.valuation-history-grid article { padding: 16px; border: 1px solid #e0e7eb; border-radius: 12px; background: #f9fbfc; }
.valuation-history-grid article.is-current { border-color: #d6a07d; background: #fff8f3; }
.valuation-history-grid span,
.valuation-history-grid strong,
.valuation-history-grid small { display: block; }
.valuation-history-grid span,
.valuation-history-grid small { color: var(--muted); font-size: .75rem; }
.valuation-history-grid strong { margin: 7px 0 6px; color: #172439; font-family: Georgia, serif; }
.valuation-history-grid small + small { margin-top: 3px; }
.valuation-disclaimer { margin-top: 22px; padding: 17px 20px; border: 1px solid #ead9ae; border-radius: 12px; background: #fffaf0; color: #675526; line-height: 1.55; }

@media (max-width: 980px) {
  .valuation-result { grid-template-columns: 1fr; }
  .valuation-history-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
  .valuation-subject,
  .valuation-metrics,
  .valuation-history-grid { grid-template-columns: 1fr; }
  .valuation-subject > div { border-left: 0; border-top: 1px solid #e2e8ec; }
  .valuation-subject > div:first-child { border-top: 0; }
}
.capture-voice-intelligence {
  border-color: #b8cbe2;
}

.capture-voice-safety {
  padding: 1rem 1.15rem;
  margin-bottom: 1rem;
  border-radius: 14px;
  background: #edf5ff;
  color: #172944;
}

.capture-voice-safety ol {
  margin: .65rem 0;
  padding-left: 1.4rem;
}

.capture-voice-action {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 1rem 0;
}

.capture-voice-meta {
  display: flex;
  gap: .55rem;
  flex-wrap: wrap;
  margin: 1rem 0;
}

.capture-voice-meta span {
  padding: .45rem .7rem;
  border: 1px solid #d6dee8;
  border-radius: 999px;
  background: #f8fafc;
  font-size: .86rem;
}

.capture-transcript-review textarea {
  width: 100%;
  margin-top: .4rem;
}

.capture-review-actions {
  display: flex;
  gap: .7rem;
  flex-wrap: wrap;
}

.capture-voice-facts {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid #dce3eb;
}

.capture-fact-list {
  display: grid;
  gap: .75rem;
  margin: 1rem 0;
}

.capture-fact-card {
  display: flex;
  gap: .8rem;
  align-items: flex-start;
  padding: .9rem;
  border: 1px solid #d9e1ea;
  border-radius: 12px;
  background: #fff;
}

.capture-fact-card span {
  display: grid;
  gap: .18rem;
}

.capture-fact-card small,
.capture-fact-card em {
  color: #64748b;
  font-style: normal;
}

.capture-applied-audit {
  margin-top: 1rem;
  padding: .9rem 1rem;
  border-radius: 12px;
  background: #f2f8f4;
}

/* Etap 31 — identyfikacja premium Miejsce dla Ciebie */
body {
  background: #f6f3ec;
}

h1,
h2,
h3,
.brand-copy strong {
  font-family: Georgia, "Times New Roman", serif;
}

.site-header {
  background: rgba(9, 9, 8, .98);
  border-bottom-color: rgba(212, 177, 95, .28);
  box-shadow: 0 10px 34px rgba(0, 0, 0, .16);
}

.header-inner { min-height: 84px; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  letter-spacing: 0;
}

.brand .brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid #d4b15f;
  border-radius: 50% 50% 50% 12px;
  color: #f0d68d;
  background: linear-gradient(145deg, #242015, #0c0b09);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.25rem;
  box-shadow: inset 0 0 0 4px #0a0a09, 0 6px 18px rgba(0, 0, 0, .32);
}

.brand .brand-copy {
  display: grid;
  gap: 1px;
  color: #f7f1e4;
}

.brand .brand-copy strong {
  color: #f7f1e4;
  font-size: 1.08rem;
  line-height: 1.1;
  letter-spacing: .01em;
}

.brand .brand-copy small {
  color: #b9aa84;
  font-size: .58rem;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.main-nav > a {
  padding: 8px 0;
  color: #eee6d5;
  border-bottom: 1px solid transparent;
  font-size: .88rem;
  letter-spacing: .02em;
}

.main-nav > a:hover {
  color: #e8cb82;
  border-bottom-color: #d4b15f;
}

.main-nav .header-language-switch a.active {
  color: #0a0a09;
  background: #d4b15f;
}

.hero {
  background:
    radial-gradient(circle at 74% 30%, rgba(212, 177, 95, .15), transparent 24%),
    radial-gradient(circle at 8% 82%, rgba(212, 177, 95, .08), transparent 28%),
    linear-gradient(125deg, #080807 0%, #17150f 58%, #090908 100%);
  border-bottom: 1px solid #302919;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .14;
  background-image:
    linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to right, transparent, black 45%, black);
}

.hero::after {
  width: 620px;
  height: 620px;
  right: -250px;
  bottom: -410px;
  border-color: rgba(212, 177, 95, .08);
}

.hero-content { padding: 84px 0 72px; }

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(260px, .55fr);
  gap: 70px;
  align-items: center;
}

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

.hero h1 {
  max-width: 860px;
  color: #fbf7ed;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.2rem, 6.8vw, 6.25rem);
  font-weight: 500;
  letter-spacing: -.055em;
}

.hero h1 em {
  color: #d9b968;
  font-style: italic;
  font-weight: 400;
}

.hero-copy > p {
  max-width: 620px;
  margin: 24px 0 26px;
  color: #c9c1af;
  font-size: 1.12rem;
}

.eyebrow {
  color: #d9b968;
  letter-spacing: .18em;
}

.eyebrow.dark { color: #9d782d; }

.hero-assurances {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  color: #dcd3c0;
  font-size: .76rem;
  font-weight: 750;
  letter-spacing: .035em;
}

.hero-assurances span::before {
  content: "◆";
  margin-right: 8px;
  color: #d4b15f;
  font-size: .58rem;
}

.hero-signature {
  position: relative;
  min-height: 330px;
  display: grid;
  place-items: center;
}

.hero-signature-ring {
  position: absolute;
  width: 285px;
  height: 285px;
  border: 1px solid rgba(212, 177, 95, .35);
  border-radius: 50%;
  box-shadow:
    0 0 0 22px rgba(212, 177, 95, .035),
    0 0 0 66px rgba(212, 177, 95, .018);
}

.hero-signature-key {
  position: relative;
  z-index: 1;
  display: grid;
  width: 126px;
  height: 126px;
  place-items: center;
  border: 1px solid #d4b15f;
  border-radius: 50% 50% 50% 28px;
  color: #e7ca7f;
  background: #0c0b09;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 3.9rem;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .48);
  transform: rotate(-5deg);
}

.hero-signature small {
  position: absolute;
  right: -4px;
  bottom: 24px;
  color: #9f9275;
  font-size: .66rem;
  font-weight: 800;
  letter-spacing: .14em;
  line-height: 1.5;
  text-align: right;
  text-transform: uppercase;
}

.hero-search {
  max-width: 1040px;
  margin-top: 46px;
  padding: 10px;
  border: 1px solid rgba(212, 177, 95, .42);
  border-radius: 7px;
  background: #f5f0e4;
  box-shadow: 0 26px 70px rgba(0, 0, 0, .38);
}

.hero-search input,
.hero-search select {
  border-color: #d7cebc;
  border-radius: 4px;
  background: #fffdf8;
}

.button { border-radius: 5px; }
.button.primary { color: #0b0a08; background: #d4b15f; }
.button.primary:hover { color: #080706; background: #e2c77e; }
.button.secondary { color: #15130f; border-color: #9d782d; background: transparent; }

.section { padding: 92px 0; }
.section-heading h2,
.service-intro h2 { font-weight: 500; }

.listing-grid { gap: 26px; }
.listing-card {
  position: relative;
  border-radius: 4px;
  border-color: #d8d0c1;
  box-shadow: 0 18px 50px rgba(24, 21, 14, .09);
}
.listing-card::before {
  content: "";
  position: absolute;
  z-index: 3;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, #9d782d, #e0c271, #9d782d);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 240ms ease;
}
.listing-card:hover::before { transform: scaleX(1); }
.listing-card:hover { transform: translateY(-7px); box-shadow: 0 28px 64px rgba(24, 21, 14, .16); }
.listing-image { min-height: 248px; background: #e9e4d9; }
.listing-image img { height: 248px; }
.transaction-badge {
  top: 16px;
  left: 16px;
  border: 1px solid rgba(212, 177, 95, .5);
  border-radius: 2px;
  color: #f8efd9;
  background: rgba(9, 9, 8, .88);
  backdrop-filter: blur(8px);
}
.listing-body { position: relative; padding: 24px 24px 25px; }
.listing-body h3 { padding-right: 32px; font-family: Georgia, "Times New Roman", serif; font-size: 1.22rem; }
.listing-facts { color: #6d685c; }
.listing-card-action {
  position: absolute;
  right: 22px;
  bottom: 24px;
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid #c8a653;
  border-radius: 50%;
  color: #9d782d;
  font-weight: 900;
}

.service-intro { max-width: 760px; margin-bottom: 34px; }
.service-intro h2 { margin: 0; font-size: clamp(2rem, 4vw, 3.3rem); line-height: 1.1; letter-spacing: -.035em; }
.benefit-grid { gap: 1px; border-block: 1px solid #d8cfbc; }
.benefit-grid article { min-height: 210px; padding: 34px 32px; border-right: 1px solid #d8cfbc; }
.benefit-grid article:last-child { border-right: 0; }
.benefit-grid article > span { color: #9d782d; font-family: Georgia, "Times New Roman", serif; font-size: 1.35rem; }
.benefit-grid h3 { margin-top: 24px; font-size: 1.35rem; }

.page-main { background: #f6f3ec; }
.filter-panel,
.detail-content,
.contact-card { border-radius: 5px; border-color: #d9d1c2; box-shadow: 0 14px 44px rgba(23, 20, 13, .07); }

.site-footer {
  color: #d8cfbd;
  background: #0a0a09;
  border-top: 1px solid #3e3420;
}
.site-footer strong { color: #e3c474; font-family: Georgia, "Times New Roman", serif; }

.crm-login-body {
  color-scheme: dark;
  background: #0c0c0a;
}
.crm-login-body .login-page {
  min-height: calc(100vh - 84px);
  background:
    radial-gradient(circle at 78% 18%, rgba(212, 177, 95, .11), transparent 25%),
    linear-gradient(140deg, #0b0b09, #15130e 58%, #090908);
}
.crm-login-body .login-card {
  color: #eee6d7;
  border-color: #4a3d25;
  border-radius: 7px;
  background: #151512;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .42);
}
.crm-login-body .login-card h1 { color: #f5eddf; font-weight: 500; }
.crm-login-body .login-card p { color: #aaa18f; }
.crm-login-body input {
  color: #f1eadc;
  border-color: #443d2f;
  border-radius: 5px;
  background: #0e0e0c;
}
.crm-login-body input:focus { border-color: #c6a34e; outline-color: rgba(212, 177, 95, .2); }

/* Aplikacja CRM */
.crm-body {
  color-scheme: dark;
  --ink: #f2ecdf;
  --muted: #a49c8a;
  --line: #373227;
  --surface: #11110f;
  --soft: #171612;
  --navy: #080807;
  --navy-2: #17140e;
  --accent: #d4b15f;
  --accent-dark: #d8b967;
  --shadow: 0 20px 55px rgba(0, 0, 0, .32);
  background: #0e0e0c;
  color: var(--ink);
}

.crm-body .site-header,
.crm-body .site-footer { display: none; }

.crm-body .messages { width: min(1640px, calc(100% - 36px)); }
.crm-body .message { color: #d9f3e4; border-color: #315d47; background: #14291e; }
.crm-body .message.warning { color: #f2dfa8; border-color: #6b5725; background: #292210; }
.crm-body .message.info { color: #d8e6f4; border-color: #36556b; background: #15232e; }

.crm-body .panel-page {
  min-height: 100vh;
  padding: 18px 0 52px;
  background:
    radial-gradient(circle at 88% 0%, rgba(212, 177, 95, .075), transparent 24%),
    linear-gradient(140deg, #0c0c0a, #12110e 55%, #0b0b09);
}

.crm-body .panel-shell {
  width: min(1640px, calc(100% - 36px));
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 28px;
}

.crm-body .panel-sidebar {
  top: 18px;
  max-height: calc(100vh - 36px);
  overflow-y: auto;
  border: 1px solid #3c321e;
  border-radius: 9px;
  background:
    linear-gradient(rgba(212, 177, 95, .03), rgba(212, 177, 95, 0) 25%),
    #080807;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .45);
  scrollbar-color: #6e5828 #11100d;
  scrollbar-width: thin;
}

.panel-sidebar-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 20px 18px 17px;
  border-bottom: 1px solid #2e291e;
}

.panel-sidebar-mark {
  display: grid;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid #d4b15f;
  border-radius: 50% 50% 50% 10px;
  color: #e8cc83;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.2rem;
}

.panel-sidebar-brand > span:last-child { display: grid; gap: 1px; min-width: 0; }
.panel-sidebar-brand strong { overflow: hidden; color: #f5efe2; font-family: Georgia, "Times New Roman", serif; font-size: .95rem; line-height: 1.15; text-overflow: ellipsis; white-space: nowrap; }
.panel-sidebar-brand small { color: #8f8060; font-size: .54rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }

.crm-body .panel-organization {
  padding: 18px 58px 18px 18px;
  border-bottom-color: #2e291e;
  background: rgba(212, 177, 95, .035);
}
.crm-body .panel-organization span,
.crm-body .panel-organization small { color: #998e76; }
.crm-body .panel-organization strong { color: #f1e8d5; }
.crm-body .panel-notification-bell { color: #d8b967; border-color: #4a3d25; background: #16130e; }
.crm-body .panel-notification-bell > strong { border-color: #080807; }
.crm-body .organization-switcher { border-color: #2e291e; }
.crm-body .organization-switcher label { color: #978b73; }

.panel-menu-toggle { display: none; }

.crm-body .panel-nav {
  gap: 2px;
  padding: 9px 10px 14px;
}

.panel-nav-label {
  padding: 16px 10px 6px;
  color: #776a50;
  font-size: .58rem;
  font-weight: 900;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.crm-body .panel-nav a {
  position: relative;
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 9px;
  align-items: center;
  padding: 8px 10px;
  border: 1px solid transparent;
  border-radius: 5px;
  color: #c9c0ad;
  font-size: .83rem;
  font-weight: 680;
}

.crm-body .panel-nav a i {
  color: #6f644e;
  font-size: .58rem;
  font-style: normal;
  font-weight: 900;
  letter-spacing: .05em;
}

.crm-body .panel-nav a:hover {
  color: #f5eddd;
  border-color: #332c1d;
  background: #15130e;
}

.crm-body .panel-nav a.active {
  color: #0a0907;
  border-color: #e0c16f;
  background: linear-gradient(100deg, #c9a24b, #e1c574);
  box-shadow: 0 7px 24px rgba(212, 177, 95, .14);
}
.crm-body .panel-nav a.active i { color: #493612; }
.crm-body .panel-logout { padding: 4px 12px 16px; }
.crm-body .panel-logout button { color: #a99d85; border-color: #3b3426; border-radius: 5px; }
.crm-body .panel-logout button:hover { color: #e5c879; border-color: #9d782d; background: #15130e; }

.crm-body .panel-content { padding-top: 6px; }
.crm-body .panel-heading { min-height: 112px; margin-bottom: 25px; border-bottom: 1px solid #302b21; }
.crm-body .panel-heading h1 { color: #f7f0e2; font-family: Georgia, "Times New Roman", serif; font-weight: 500; letter-spacing: -.045em; }
.crm-body .panel-heading p { color: #9d9584; }
.crm-body .panel-back,
.crm-body .panel-card-heading a,
.crm-body .heading-actions a { color: #d8b967; }

.crm-body input,
.crm-body select,
.crm-body textarea {
  color: #f1eadc;
  border-color: #443d2f;
  border-radius: 5px;
  background: #0e0e0c;
}
.crm-body input::placeholder,
.crm-body textarea::placeholder { color: #776f61; }
.crm-body input:focus,
.crm-body select:focus,
.crm-body textarea:focus {
  outline-color: rgba(212, 177, 95, .2);
  border-color: #c6a34e;
}
.crm-body input[type="checkbox"],
.crm-body input[type="radio"] { accent-color: #d4b15f; }

.crm-body .button.primary { color: #0a0907; border-color: #d4b15f; background: linear-gradient(100deg, #c9a24b, #e1c574); }
.crm-body .button.primary:hover { background: #e7cd87; }
.crm-body .button.secondary,
.crm-body .button.ghost { color: #e3c474; border-color: #806727; background: transparent; }
.crm-body .button.secondary:hover,
.crm-body .button.ghost:hover { color: #0a0907; background: #d4b15f; }

.crm-body .panel-content article,
.crm-body .panel-card,
.crm-body .panel-filter,
.crm-body .panel-table-wrap,
.crm-body .metric-grid article,
.crm-body .deal-metric-grid article,
.crm-body .calendar-month-shell,
.crm-body .capture-list-card,
.crm-body .capture-photo-card,
.crm-body .capture-analysis-summary dl div,
.crm-body .capture-analysis-columns > div,
.crm-body .capture-description-draft,
.crm-body .analysis-metric-grid article,
.crm-body .valuation-metrics article,
.crm-body .team-accept-card,
.crm-body .board-filter,
.crm-body .board-post {
  color: #ede5d6;
  border-color: #383329;
  background: #151512;
  box-shadow: 0 15px 42px rgba(0, 0, 0, .18);
}

.crm-body .panel-card { border-radius: 7px; }
.crm-body .panel-filter,
.crm-body .panel-table-wrap { border-radius: 6px; }
.crm-body .panel-content h1,
.crm-body .panel-content h2,
.crm-body .panel-content h3,
.crm-body .panel-content strong { color: #f3ecde; }
.crm-body .panel-muted,
.crm-body .panel-content small,
.crm-body .panel-content p,
.crm-body .capture-list-card p,
.crm-body .capture-step header p,
.crm-body .capture-live-status,
.crm-body .capture-fact-card small,
.crm-body .capture-fact-card em { color: #a49c8a; }
.crm-body .panel-content a:hover { color: #e4c87e; }
.crm-body .field > span,
.crm-body .capture-fields label > span,
.crm-body .capture-notes > span,
.crm-body .audio-file-field > span,
.crm-body .capture-photo-description label > span { color: #b7ad99; }

.crm-body .panel-table th {
  color: #b2a78f;
  border-bottom: 1px solid #463d2d;
  background: #1c1a15;
}
.crm-body .panel-table td { border-color: #302c24; }
.crm-body .panel-table tbody tr { transition: background 140ms ease; }
.crm-body .panel-table tbody tr:hover { background: rgba(212, 177, 95, .035); }
.crm-body .compact-list > a { border-color: #302c24; }

.crm-body .management-kpi {
  min-height: 145px;
  padding: 22px;
  border: 1px solid #3a3429;
  border-top: 3px solid #8e7231;
  border-left-width: 1px;
  border-radius: 6px;
  background:
    linear-gradient(145deg, rgba(212, 177, 95, .065), transparent 42%),
    #151512;
}
.crm-body .management-kpi::after {
  background: rgba(212, 177, 95, .055);
}
.crm-body .management-kpi span { color: #aaa18e; }
.crm-body .management-kpi strong { color: #f0d68d; font-family: Georgia, "Times New Roman", serif; font-weight: 500; }
.crm-body .management-kpi small { color: #8f8778; }

.dashboard-quick-actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: -5px 0 24px;
}
.dashboard-quick-actions a {
  min-height: 82px;
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 13px 15px;
  color: #dcd3c1;
  border: 1px solid #363126;
  border-radius: 6px;
  background: #12110e;
  text-decoration: none;
  transition: border-color 150ms ease, transform 150ms ease, background 150ms ease;
}
.dashboard-quick-actions a:hover { color: #f5eddd; border-color: #9d782d; background: #19160f; transform: translateY(-2px); }
.dashboard-quick-actions i { display: grid; flex: 0 0 32px; width: 32px; height: 32px; place-items: center; color: #d8b967; border: 1px solid #675328; border-radius: 50%; font-size: .6rem; font-style: normal; }
.dashboard-quick-actions span { display: grid; gap: 2px; min-width: 0; }
.dashboard-quick-actions strong { color: #eee6d6; font-size: .82rem; }
.dashboard-quick-actions small { color: #837b6c; font-size: .66rem; }

.crm-body .stage-chart-track,
.crm-body .leaderboard-progress { background: #29261f; }
.crm-body .stage-chart-track span { background: linear-gradient(90deg, #a88335, #ddbd68); }
.crm-body .finance-currency-grid article header,
.crm-body .deal-column > header,
.crm-body .calendar-week-header,
.crm-body .calendar-day-track,
.crm-body .calendar-month-day,
.crm-body .board-comments > article > div:last-child,
.crm-body .capture-fact-card { color: #e9e1d2; border-color: #373127; background: #11110f; }
.crm-body .board-comments,
.crm-body .board-comment-form,
.crm-body .board-post-footer { color: #ddd4c2; border-color: #312c23; background: #10100e; }
.crm-body .board-comments p,
.crm-body .board-editor-note { color: #b2a995; }
.crm-body .board-reactions button { color: #a69d8b; }
.crm-body .board-reactions button:hover,
.crm-body .board-reactions button.active { color: #e3c474; background: #211c10; }
.crm-body .valuation-subject,
.crm-body .valuation-result,
.crm-body .valuation-history-grid article,
.crm-body .analysis-history-grid article {
  color: #e9e1d2;
  border-color: #383329;
  background: linear-gradient(135deg, #151512, #11110f);
}
.crm-body .valuation-subject > div { border-color: #383329; }
.crm-body .valuation-total,
.crm-body .valuation-subject strong,
.crm-body .valuation-metrics strong,
.crm-body .valuation-history-grid strong { color: #eed487; }
.crm-body .valuation-result-main > p:last-child,
.crm-body .valuation-range { color: #a69e8e; }
.crm-body .calendar-month-day.is-today { background: #211c10; box-shadow: inset 0 0 0 2px rgba(212, 177, 95, .5); }
.crm-body .deal-card,
.crm-body .deal-stage-banner,
.crm-body .document-detail-banner,
.crm-body .calendar-task-strip > div > a { color: #e9e1d2; border-color: #373127; background: #151512; box-shadow: none; }
.crm-body .deal-board { background: #0e0e0c; }

.crm-body .capture-advantage-strip,
.crm-body .capture-privacy-notice,
.crm-body .analysis-disclaimer,
.crm-body .valuation-disclaimer,
.crm-body .team-invitation-link,
.crm-body .capture-ios-help,
.crm-body .capture-recorder,
.crm-body .capture-voice-safety,
.crm-body .capture-applied-audit {
  color: #d8c89d;
  border-color: #5d4c25;
  background: #211c11;
}
.crm-body .capture-location-button,
.crm-body .capture-camera-button {
  color: #e3c474;
  border-color: #806727;
  background: #14120d;
}
.crm-body .capture-list-card dl div,
.crm-body .capture-voice-meta span { color: #d8cfbd; border-color: #3b352a; background: #0f0f0d; }
.crm-body .capture-step > header > span { color: #0a0907; background: #d4b15f; }

.crm-body .status-pill { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); }
.crm-body .attention-grid a { color: #e9dfcf; border-color: #49342e; background: #1c1412; }
.crm-body .task-row.is-overdue { background: #211411; }

.crm-body .login-card { color: #eee6d7; border-color: #3b3427; background: #151512; }

@media (max-width: 1180px) {
  .crm-body .panel-shell { grid-template-columns: 244px minmax(0, 1fr); gap: 20px; }
  .dashboard-quick-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 960px) {
  .hero-layout { grid-template-columns: 1fr minmax(220px, .42fr); gap: 30px; }
  .hero-signature-ring { width: 220px; height: 220px; }
  .hero-signature-key { width: 104px; height: 104px; font-size: 3.1rem; }

  .crm-body .panel-shell { display: block; }
  .crm-body .panel-sidebar {
    position: relative;
    top: 0;
    max-height: none;
    margin-bottom: 22px;
  }
  .panel-sidebar-brand { padding: 15px 18px; }
  .crm-body .panel-organization { padding-block: 14px; }
  .panel-menu-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 13px 18px;
    color: #e6dbc6;
    border: 0;
    border-bottom: 1px solid #302a20;
    background: #10100d;
    font: inherit;
    font-size: .8rem;
    font-weight: 800;
    cursor: pointer;
  }
  .panel-menu-toggle i,
  .panel-menu-toggle i::after { display: block; width: 18px; height: 1px; background: #d4b15f; content: ""; }
  .panel-menu-toggle i::after { transform: translateY(5px); }
  .crm-body .panel-sidebar.panel-menu-ready .panel-nav { display: none; }
  .crm-body .panel-sidebar.panel-menu-ready .panel-nav.is-open { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 8px; }
  .crm-body .panel-nav-label { grid-column: 1 / -1; }
  .crm-body .panel-content { padding-top: 0; }
}

@media (max-width: 760px) {
  .header-inner { min-height: 76px; }
  .brand .brand-mark { width: 38px; height: 38px; }
  .brand .brand-copy strong { font-size: .92rem; }
  .brand .brand-copy small { display: none; }
  .main-nav { gap: 12px; }
  .main-nav > a { font-size: .76rem; }
  .hero-content { padding: 62px 0 54px; }
  .hero-layout { display: block; }
  .hero h1 { font-size: clamp(3rem, 15vw, 4.8rem); }
  .hero-signature { display: none; }
  .hero-search { margin-top: 34px; }
  .benefit-grid { display: block; }
  .benefit-grid article { min-height: 0; border-right: 0; border-bottom: 1px solid #d8cfbc; }
  .benefit-grid article:last-child { border-bottom: 0; }
  .listing-card-action { display: none; }

  .crm-body .panel-shell { width: min(100% - 20px, 1640px); }
  .crm-body .panel-heading { min-height: 0; padding-bottom: 20px; }
  .crm-body .panel-sidebar.panel-menu-ready .panel-nav.is-open { grid-template-columns: 1fr; }
  .dashboard-quick-actions { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 520px) {
  .wrap { width: min(100% - 24px, 1180px); }
  .main-nav > a:first-child { display: none; }
  .main-nav .header-language-switch a { min-width: 29px; padding-inline: 6px; }
  .hero-assurances { display: grid; }
  .section { padding: 62px 0; }
  .dashboard-quick-actions { grid-template-columns: 1fr; }
}
/* Etap 33 — globalna hierarchia i Market Intelligence Hub */
.platform-hierarchy-grid {
  display: grid;
  gap: 1.25rem;
}

.platform-organization-card h3 {
  margin: 1.4rem 0 .7rem;
  color: var(--gold, #d2a64d);
  font-size: .82rem;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.organization-stat-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .65rem;
  margin: 1rem 0;
}

.organization-stat-row span {
  padding: .8rem;
  border: 1px solid rgba(210, 166, 77, .2);
  border-radius: .8rem;
  background: rgba(255, 255, 255, .025);
}

.organization-stat-row strong { color: var(--gold, #d2a64d); }
.platform-organization-card.is-muted { opacity: .65; }
.market-error { white-space: pre-wrap; color: #ffb4a8; }
.compact-form { margin-top: 1.25rem; }

@media (max-width: 760px) {
  .organization-stat-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Etap 36 — fabryka dokumentów i audytowany obieg pakietów */
.crm-body .document-form-grid ul[id^="id_required_templates"],
.crm-body .document-form-grid ul[id^="id_optional_templates"] {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  padding: 10px;
  list-style: none;
  border: 1px solid #3b352a;
  border-radius: 12px;
  background: #0f0f0d;
}

.crm-body .document-form-grid ul[id^="id_required_templates"] label,
.crm-body .document-form-grid ul[id^="id_optional_templates"] label {
  display: grid;
  grid-template-columns: 20px 1fr;
  align-items: start;
  gap: 8px;
  min-height: 44px;
  padding: 9px;
  color: #e8dfcf;
  border: 1px solid #302b22;
  border-radius: 9px;
  background: #171612;
  font-weight: 650;
}

.crm-body .document-form-grid ul[id^="id_required_templates"] input,
.crm-body .document-form-grid ul[id^="id_optional_templates"] input {
  width: 17px;
  min-height: 17px;
  margin-top: 2px;
}

.crm-body .document-history-action.action-approved,
.crm-body .document-history-action.action-signed,
.crm-body .document-history-action.action-refreshed {
  color: #122016;
  background: #82c89b;
}

.crm-body .document-history-action.action-rejected {
  color: #2b1110;
  background: #e18b80;
}

.crm-body .document-history-action.action-submitted,
.crm-body .document-history-action.action-reviewed {
  color: #211a08;
  background: #d4b15f;
}

.crm-body .deal-stage-banner.deal-stage-preflight,
.crm-body .deal-stage-banner.deal-stage-draft,
.crm-body .deal-stage-banner.deal-stage-rejected,
.crm-body .deal-stage-banner.deal-stage-awaiting_review,
.crm-body .deal-stage-banner.deal-stage-approved,
.crm-body .deal-stage-banner.deal-stage-signed {
  border-color: #4a402d;
  background: linear-gradient(115deg, #15140f, #211c12);
}

.crm-body .deal-stage-banner.deal-stage-approved,
.crm-body .deal-stage-banner.deal-stage-signed {
  box-shadow: inset 4px 0 #82c89b;
}

.crm-body .deal-stage-banner.deal-stage-rejected {
  box-shadow: inset 4px 0 #e18b80;
}

@media (max-width: 760px) {
  .crm-body .document-form-grid ul[id^="id_required_templates"],
  .crm-body .document-form-grid ul[id^="id_optional_templates"] {
    grid-template-columns: 1fr;
  }
}

/* Etap 38 — centrum dokumentacji, prywatności i kontakt IOD */
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
}
.footer-legal a { color: #d8c17d; font-size: .82rem; text-decoration: none; }
.footer-legal a:hover { color: #fff2c4; text-decoration: underline; }

.legal-page { min-height: 70vh; color: #241f17; background: #f1eee7; }
.legal-hero {
  padding: 96px 0 74px;
  color: #f3ecde;
  border-bottom: 1px solid #4a3d22;
  background:
    radial-gradient(circle at 82% 20%, rgba(218, 183, 99, .16), transparent 34%),
    linear-gradient(135deg, #080806, #16140f 62%, #0a0907);
}
.legal-hero-compact { padding-block: 72px 58px; }
.legal-hero h1 { max-width: 950px; margin: 13px 0 18px; color: #f5eddd; font-size: clamp(2.7rem, 7vw, 5.6rem); line-height: .98; }
.legal-hero p { max-width: 780px; margin: 0; color: #bdb4a3; font-size: 1.08rem; line-height: 1.75; }
.legal-status-strip { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 8px; }
.legal-status-strip span { padding: 8px 12px; color: #dfc77d; border: 1px solid #5f4d25; border-radius: 99px; background: rgba(0, 0, 0, .28); font-size: .73rem; font-weight: 800; }

.legal-layout { padding-block: 62px 86px; display: grid; grid-template-columns: 240px minmax(0, 820px); align-items: start; justify-content: center; gap: 58px; }
.legal-toc { position: sticky; top: 28px; padding: 22px; display: grid; gap: 5px; border: 1px solid #d6cebc; border-radius: 16px; background: #faf8f3; box-shadow: 0 18px 50px rgba(30, 23, 12, .07); }
.legal-toc strong { margin-bottom: 9px; color: #8a6827; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; }
.legal-toc a { padding: 8px 9px; color: #544b3d; border-radius: 8px; font-size: .79rem; font-weight: 700; text-decoration: none; }
.legal-toc a:hover { color: #1d1810; background: #eee7d8; }
.legal-document { min-width: 0; }
.legal-document > section { padding: 0 0 48px; margin-bottom: 48px; border-bottom: 1px solid #d9d1c1; scroll-margin-top: 28px; }
.legal-document > section:last-of-type { margin-bottom: 0; }
.legal-document h2 { margin: 5px 0 19px; color: #19150f; font-size: clamp(1.65rem, 3vw, 2.35rem); }
.legal-document h3 { margin: 0 0 8px; font-size: 1rem; }
.legal-document p, .legal-document li { color: #51483a; line-height: 1.78; }
.legal-document a { color: #7d5d1f; font-weight: 750; }
.legal-section-number { color: #a67f31; font-size: .73rem; font-weight: 900; letter-spacing: .15em; }
.legal-role-grid, .legal-feature-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.legal-role-grid div, .legal-feature-grid div { padding: 22px; border: 1px solid #d8cfbd; border-radius: 14px; background: #fbf9f5; }
.legal-role-grid strong { color: #8a6827; }
.legal-role-grid p, .legal-feature-grid p { margin: 8px 0 0; font-size: .89rem; }
.legal-steps { padding: 0; list-style: none; counter-reset: legal-step; }
.legal-steps li { position: relative; padding: 17px 18px 17px 58px; counter-increment: legal-step; border-bottom: 1px solid #ddd5c6; }
.legal-steps li::before { position: absolute; left: 12px; top: 17px; color: #9a742b; content: counter(legal-step, decimal-leading-zero); font-size: .72rem; font-weight: 900; }
.legal-callout, .legal-warning, .legal-review-note { padding: 20px 22px; color: #44381f; border: 1px solid #d1b66f; border-radius: 14px; background: #fff8e5; }
.legal-callout p, .legal-warning p, .legal-review-note p { margin: 7px 0 0; }
.legal-warning { margin-bottom: 40px; color: #5c351d; border-color: #d6a477; background: #fff3e8; }
.legal-checklist { padding: 0; display: grid; gap: 10px; list-style: none; }
.legal-checklist li { position: relative; padding-left: 27px; }
.legal-checklist li::before { position: absolute; left: 0; top: 1px; color: #a27b2e; content: "◆"; font-size: .72rem; }
.legal-contact-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 11px; }
.legal-contact-grid div, .legal-contact-card { padding: 18px; display: grid; gap: 7px; border: 1px solid #d8cfbd; border-radius: 13px; background: #fbf9f5; }
.legal-contact-grid span, .legal-contact-card span { color: #8a806e; font-size: .72rem; font-weight: 800; text-transform: uppercase; }
.legal-contact-grid a, .legal-contact-grid strong { overflow-wrap: anywhere; }
.legal-table-wrap { overflow-x: auto; border: 1px solid #d6cebc; border-radius: 14px; background: #fbf9f5; }
.legal-table { width: 100%; border-collapse: collapse; font-size: .86rem; }
.legal-table th, .legal-table td { padding: 15px 17px; text-align: left; vertical-align: top; border-bottom: 1px solid #e2dbcD; }
.legal-table th { color: #7d5d1f; background: #f2ecdf; }
.legal-table tr:last-child td { border-bottom: 0; }
.legal-source-note { padding: 22px; color: #716857; border-radius: 14px; background: #e9e4da; font-size: .78rem; line-height: 1.6; }
.legal-single-column { width: min(100% - 36px, 870px); padding-block: 62px 86px; }
.legal-contact-hero { padding: 38px; display: grid; gap: 9px; color: #f1e8d8; border: 1px solid #4d4029; border-radius: 20px; background: linear-gradient(135deg, #12110d, #211c12); box-shadow: 0 24px 70px rgba(26, 20, 10, .16); }
.legal-contact-hero > span { color: #cba750; font-size: .75rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.legal-contact-hero h2 { margin: 5px 0; color: #f4ebda; font-size: 2rem; }
.legal-contact-hero a { width: fit-content; color: #dcc271; font-weight: 800; overflow-wrap: anywhere; }
.legal-contact-hero p { max-width: 650px; color: #b9b09f; line-height: 1.7; }
.legal-contact-email { font-size: clamp(1.15rem, 3vw, 1.7rem); }
.legal-contact-guidance { margin-top: 28px; padding: 32px; border: 1px solid #d6cebc; border-radius: 18px; background: #fbf9f5; }
.legal-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.form-privacy-link { margin: -5px 0 14px; color: #746b5d; font-size: .72rem; line-height: 1.5; }
.form-privacy-link a { color: #896824; }

.panel-legal-links { padding: 0 18px 18px; display: flex; gap: 15px; }
.panel-legal-links a { color: #8f826a; font-size: .65rem; font-weight: 750; text-decoration: none; }
.panel-legal-links a:hover { color: #dabb6d; }
.client-portal-footer { width: min(100% - 32px, 1100px); margin: 0 auto; padding: 0 0 34px; display: flex; justify-content: center; gap: 20px; }
.client-portal-footer a { color: #938c80; font-size: .75rem; text-decoration: none; }
.client-portal-footer a:hover { color: #d6b965; }
.legal-settings-layout { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(280px, .7fr); gap: 18px; align-items: start; }
.legal-settings-form .legal-review-note { margin: 20px 0; color: #d8c89d; border-color: #5d4c25; background: #211c11; }
.legal-settings-form .legal-review-note p { color: #b8aa89; }
.legal-settings-audit { position: sticky; top: 25px; }

@media (max-width: 900px) {
  .legal-layout { grid-template-columns: 1fr; gap: 26px; }
  .legal-toc { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .legal-toc strong { grid-column: 1 / -1; }
  .legal-settings-layout { grid-template-columns: 1fr; }
  .legal-settings-audit { position: static; }
}

@media (max-width: 680px) {
  .footer-legal { margin-top: 20px; }
  .legal-hero { padding-block: 58px 46px; }
  .legal-layout, .legal-single-column { padding-block: 36px 58px; }
  .legal-toc, .legal-role-grid, .legal-feature-grid, .legal-contact-grid { grid-template-columns: 1fr; }
  .legal-contact-hero, .legal-contact-guidance { padding: 24px; }
  .legal-table th, .legal-table td { padding: 12px; }
}
/* Etap 40 — centrum umowy przedwstępnej */
.agreement-heading form,
.inline-form { margin: 0; }
.agreement-readiness {
  display: grid;
  grid-template-columns: minmax(220px, .55fr) 1fr;
  gap: 28px;
  align-items: center;
  margin: 22px 0;
  padding: 24px 28px;
  border: 1px solid rgba(198, 157, 77, .42);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(198, 157, 77, .16), rgba(12, 12, 14, .94));
}
.agreement-readiness span { display: block; color: #c9b98f; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; }
.agreement-readiness strong { display: block; margin-top: 5px; color: #f4dfaa; font-size: 1.45rem; }
.agreement-readiness p { margin: 0; color: #ded8ca; }
.agreement-readiness.is-ready { border-color: rgba(91, 190, 132, .55); }
.agreement-gap-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; }
.agreement-gap-grid article { padding: 16px; border: 1px solid rgba(198, 157, 77, .24); border-radius: 12px; background: rgba(255,255,255,.025); }
.agreement-gap-grid strong { color: #f1d796; }
.agreement-gap-grid ul { margin: 10px 0 0; padding-left: 19px; color: #d8d3c7; }
.agreement-workspace-form { display: grid; gap: 22px; }
.agreement-section { padding: 26px; }
.agreement-section .panel-card-heading > div { display: flex; align-items: center; gap: 12px; }
.agreement-step { display: inline-grid; place-items: center; width: 36px; height: 36px; border: 1px solid #c69d4d; border-radius: 50%; color: #f2d694; font-weight: 800; }
.agreement-party-list { display: grid; gap: 16px; margin-top: 18px; }
.agreement-party-card { padding: 20px; border: 1px solid rgba(198,157,77,.25); border-radius: 14px; background: rgba(255,255,255,.025); }
.agreement-party-title { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 16px; color: #f2d694; }
.agreement-party-title span { color: #9d978a; font-size: .82rem; }
.agreement-sticky-actions { position: sticky; bottom: 16px; z-index: 8; display: flex; gap: 10px; width: fit-content; padding: 12px; border: 1px solid rgba(198,157,77,.35); border-radius: 14px; background: rgba(8,8,10,.94); box-shadow: 0 16px 40px rgba(0,0,0,.35); }
@media (max-width: 760px) {
  .agreement-readiness { grid-template-columns: 1fr; padding: 20px; }
  .agreement-section { padding: 18px; }
  .agreement-sticky-actions { width: 100%; }
}

/* Etap 45 — inteligentne centrum finalizacji transakcji */
.transaction-centre-heading form { margin: 0; }
.transaction-hero { display: grid; grid-template-columns: auto minmax(260px, 1fr) auto; gap: 28px; align-items: center; border-color: rgba(198,157,77,.4); background: radial-gradient(circle at 12% 20%, rgba(198,157,77,.14), transparent 34%), linear-gradient(135deg, #151411, #09090b); }
.transaction-readiness { display: grid; place-items: center; align-content: center; width: 138px; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at center, #121215 61%, transparent 63%), conic-gradient(#d8b65f var(--readiness), #302b22 0); box-shadow: 0 0 0 1px rgba(216,182,95,.25), 0 20px 40px rgba(0,0,0,.28); }
.transaction-readiness strong { color: #f4d88e; font-size: 2rem; }
.transaction-readiness span { color: #9f9788; font-size: .68rem; text-transform: uppercase; letter-spacing: .1em; }
.transaction-hero h2 { margin: 12px 0 6px; color: #f4e6c3; }
.transaction-hero p { margin: 0 0 7px; color: #d4cdbc; }
.transaction-hero small { color: #8f887b; }
.transaction-hero-metrics { display: grid; gap: 10px; min-width: 150px; }
.transaction-hero-metrics span { padding: 10px 13px; border: 1px solid rgba(198,157,77,.2); border-radius: 10px; color: #a9a192; background: rgba(255,255,255,.025); font-size: .74rem; }
.transaction-hero-metrics strong { display: block; color: #e6cc89; font-size: 1.05rem; }
.transaction-blocker-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; }
.transaction-blocker-grid article { padding: 17px; border: 1px solid rgba(216,182,95,.22); border-radius: 12px; background: rgba(255,255,255,.022); }
.transaction-blocker-grid article.critical { border-color: rgba(204,90,73,.5); background: rgba(139,52,41,.09); }
.transaction-blocker-grid strong { color: #f1d998; }
.transaction-blocker-grid p { margin: 7px 0; color: #c3bcad; line-height: 1.5; }
.transaction-blocker-grid small { color: #938a78; }
.transaction-checklist { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 18px; }
.transaction-checklist-group { display: grid; gap: 9px; align-content: start; }
.transaction-checklist-group h3 { margin: 0 0 4px; color: #d8b965; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; }
.transaction-check { display: grid; grid-template-columns: 32px 1fr auto; gap: 11px; align-items: center; padding: 13px; border: 1px solid rgba(255,255,255,.08); border-radius: 11px; background: rgba(255,255,255,.018); }
.transaction-check > span { display: grid; place-items: center; width: 28px; height: 28px; border: 1px solid #5a5140; border-radius: 50%; color: #c0ae7d; font-size: .76rem; }
.transaction-check-completed > span { border-color: #4f9d72; color: #8ed3aa; background: rgba(79,157,114,.12); }
.transaction-check strong { color: #e7e1d5; font-size: .83rem; }
.transaction-check p { margin: 3px 0 0; color: #999285; font-size: .72rem; line-height: 1.4; }
.transaction-check > small { color: #a69d8c; font-size: .65rem; text-align: right; }
.transaction-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.compact-row { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.08); }
.compact-row > span { display: grid; gap: 5px; align-content: start; }
.compact-row strong { color: #e8e1d3; }
.compact-row small { color: #9f9789; }
.inline-decision-form { display: grid; grid-template-columns: 1fr auto auto; gap: 8px; margin: 0 0 14px; }
.inline-decision-form textarea { min-height: 44px; }
.transaction-form-disclosure { margin-top: 16px; border-top: 1px solid rgba(255,255,255,.08); padding-top: 14px; }
.transaction-form-disclosure summary { color: #d9bb6d; cursor: pointer; font-weight: 750; }
.transaction-module-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(290px, .7fr); gap: 22px; align-items: start; }
.transaction-record { display: flex; justify-content: space-between; gap: 18px; padding: 17px 0; border-bottom: 1px solid rgba(255,255,255,.08); }
.transaction-record > div { display: grid; gap: 5px; align-content: start; }
.transaction-record p { margin: 0; color: #aba394; }
.transaction-record small { color: #8e877b; }
.transaction-side-form { padding: 19px; border: 1px solid rgba(198,157,77,.24); border-radius: 14px; background: rgba(255,255,255,.02); }
.transaction-side-form h3 { margin-top: 0; color: #e5c879; }
.trust-warning { margin: 0 0 18px; padding: 15px 17px; border: 1px solid rgba(198,157,77,.34); border-radius: 12px; color: #c7bfae; background: rgba(198,157,77,.07); line-height: 1.55; }
.trust-warning strong { color: #efd48e; }
.narrow-panel-card { max-width: 820px; }
@media (max-width: 980px) {
  .transaction-hero { grid-template-columns: auto 1fr; }
  .transaction-hero-metrics { grid-column: 1 / -1; grid-template-columns: repeat(3, 1fr); }
  .transaction-columns, .transaction-module-grid { grid-template-columns: 1fr; }
}
@media (max-width: 650px) {
  .transaction-hero { grid-template-columns: 1fr; }
  .transaction-readiness { width: 118px; }
  .transaction-hero-metrics { grid-template-columns: 1fr; }
  .transaction-check { grid-template-columns: 32px 1fr; }
  .transaction-check > small { grid-column: 2; text-align: left; }
  .inline-decision-form { grid-template-columns: 1fr 1fr; }
  .inline-decision-form textarea { grid-column: 1 / -1; }
  .compact-row, .transaction-record { display: grid; }
}

/* Etap 51 — aktualne centrum wiedzy platformy */
.documentation-hero { padding-bottom: 58px; }
.documentation-search {
  display: grid;
  grid-template-columns: minmax(240px, .72fr) minmax(340px, 1.28fr);
  gap: 36px;
  align-items: center;
  margin-top: -28px;
  margin-bottom: 34px;
  padding: 26px 30px;
  border: 1px solid rgba(198, 157, 77, .4);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(30, 27, 21, .98), rgba(9, 9, 11, .98));
  box-shadow: 0 22px 55px rgba(0, 0, 0, .28);
}
.documentation-search h2 { margin: 7px 0 5px; color: #f4dfaa; }
.documentation-search p { margin: 0; color: #bcb4a4; line-height: 1.55; }
.documentation-badge {
  color: #dabc70;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.documentation-search-controls { display: grid; gap: 8px; }
.documentation-search-controls label { color: #e1d8c5; font-size: .8rem; font-weight: 750; }
.documentation-search-controls > div { display: grid; grid-template-columns: 1fr auto; gap: 9px; }
.documentation-search-controls input {
  width: 100%;
  min-height: 48px;
  padding: 11px 15px;
  border: 1px solid rgba(198, 157, 77, .34);
  border-radius: 11px;
  color: #f3ede0;
  background: rgba(0, 0, 0, .28);
}
.documentation-search-controls input:focus { border-color: #d8b65f; outline: 2px solid rgba(216, 182, 95, .2); outline-offset: 1px; }
.documentation-results { min-height: 1.2em; color: #a99f8d !important; font-size: .72rem; }
.documentation-layout { grid-template-columns: minmax(210px, 260px) minmax(0, 1fr); }
.documentation-toc { max-height: calc(100vh - 36px); overflow-y: auto; scrollbar-width: thin; }
.documentation-toc a[hidden] { display: none; }
.documentation-document { max-width: 980px; }
.documentation-document > section[hidden] { display: none; }
.documentation-role-grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.documentation-module-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
  margin-top: 16px;
}
.documentation-module-grid > div {
  padding: 17px;
  border: 1px solid rgba(198, 157, 77, .2);
  border-radius: 12px;
  background: rgba(255, 255, 255, .022);
}
.documentation-module-grid strong { color: #ecd18a; }
.documentation-module-grid p { margin: 7px 0 0; font-size: .87rem; }
.documentation-flow {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin: 18px 0;
}
.documentation-flow span {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 58px;
  padding: 10px;
  border: 1px solid rgba(198, 157, 77, .28);
  border-radius: 10px;
  color: #dac797;
  background: rgba(198, 157, 77, .055);
  font-size: .76rem;
  font-weight: 750;
  text-align: center;
}
.documentation-flow span:not(:last-child)::after {
  content: "→";
  position: absolute;
  z-index: 2;
  right: -13px;
  color: #8f7845;
}
.documentation-document code { color: #f0cf79; }
@media (max-width: 900px) {
  .documentation-search { grid-template-columns: 1fr; gap: 18px; }
  .documentation-flow { grid-template-columns: 1fr; }
  .documentation-flow span:not(:last-child)::after { content: "↓"; right: auto; bottom: -14px; }
  .documentation-module-grid { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .documentation-search { margin-inline: 14px; padding: 21px; }
  .documentation-search-controls > div { grid-template-columns: 1fr; }
  .documentation-search-controls button { width: 100%; }
}

/* Etapy 52–55 — sprzedaż SaaS, oferta mobilna i niezawodność */
.saas-public-page { min-height: 70vh; padding-bottom: 72px; background: #0b0b0d; color: #eee7d8; }
.saas-public-hero { padding: 82px 0 64px; border-bottom: 1px solid rgba(198,157,77,.24); background: radial-gradient(circle at 78% 15%, rgba(198,157,77,.14), transparent 31%), linear-gradient(145deg, #171511, #08080a 62%); }
.saas-public-hero h1 { max-width: 850px; margin: 10px 0 14px; color: #f2d98d; font-size: clamp(2.1rem, 5vw, 4.4rem); line-height: 1.02; }
.saas-public-hero p { max-width: 760px; color: #bcb3a1; line-height: 1.7; }
.saas-plan-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: -28px; }
.saas-plan-card { display: grid; gap: 17px; padding: 27px; border: 1px solid rgba(198,157,77,.22); border-radius: 18px; background: linear-gradient(160deg, rgba(30,28,23,.98), rgba(13,13,15,.98)); box-shadow: 0 22px 50px rgba(0,0,0,.24); }
.saas-plan-card.featured { border-color: #c69d4d; transform: translateY(-9px); }
.saas-plan-card > span { color: #ddc57f; font-size: .76rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.saas-plan-card > strong { color: #fff5d6; font-size: 2rem; }
.saas-plan-card > strong small { display: block; margin-top: 5px; color: #9f9788; font-size: .72rem; font-weight: 500; }
.saas-plan-card ul { display: grid; gap: 9px; margin: 0; padding: 0; list-style: none; color: #c9c1b2; }
.saas-plan-card li::before { content: "✓"; margin-right: 8px; color: #d8b45f; }
.saas-plan-disabled { color: #8f8778; font-size: .78rem; }
.saas-form-shell { display: grid; grid-template-columns: .9fr 1.1fr; gap: 38px; align-items: start; padding-top: 70px; }
.saas-form-shell > div, .saas-public-form, .saas-message { padding: 28px; border: 1px solid rgba(198,157,77,.25); border-radius: 18px; background: rgba(255,255,255,.025); }
.saas-public-form p { display: grid; gap: 7px; margin: 0 0 15px; }
.saas-public-form input, .saas-public-form select { width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid rgba(198,157,77,.28); border-radius: 10px; color: #f2ecdf; background: #131315; }
.saas-message { margin-top: 70px; }
.service-status-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 15px; padding-top: 32px; }
.service-status-grid article { display: grid; gap: 6px; padding: 21px; border: 1px solid rgba(198,157,77,.2); border-radius: 14px; background: #151416; }
.service-status-grid span { color: #a89f8e; text-transform: capitalize; }
.service-status-operational strong { color: #8bd5a9; }
.service-status-degraded strong { color: #e6bd68; }
.service-status-outage strong { color: #ed8b85; }
.capture-offer-review dl { display: grid; gap: 7px; }
.capture-offer-review dl div { display: grid; grid-template-columns: minmax(100px,.45fr) 1fr; gap: 10px; padding-bottom: 7px; border-bottom: 1px solid rgba(198,157,77,.13); }
.capture-offer-review dt { color: #9f9687; }
.capture-offer-review dd { margin: 0; color: #eee1bd; overflow-wrap: anywhere; }
.capture-offer-review pre { max-height: 260px; overflow: auto; padding: 13px; border-radius: 10px; color: #cfc5b2; background: #08080a; white-space: pre-wrap; }
@media (max-width: 850px) {
  .saas-plan-grid, .saas-form-shell { grid-template-columns: 1fr; }
  .saas-plan-card.featured { transform: none; }
}

/* Wydanie 56 — rejestr mienia publicznego */
.public-asset-metrics { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.public-asset-metrics article { border-top: 3px solid #b99142; }
.public-asset-dashboard-grid { align-items: start; }
.public-asset-action-list { display: grid; gap: 0; }
.public-asset-action-list article { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.public-asset-action-list article:last-child { border-bottom: 0; }
.public-asset-action-list article > div { display: grid; gap: 4px; }
.public-asset-action-list article > a { color: var(--accent-dark); font-weight: 750; text-decoration: none; }
.public-asset-filter { grid-template-columns: minmax(230px, 1.5fr) repeat(2, minmax(150px, .7fr)) auto; }
.public-asset-summary-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px; margin-bottom: 18px; }
.public-asset-summary-grid article { padding: 18px; border: 1px solid var(--line); border-left: 4px solid #b99142; border-radius: 10px; background: #fff; }
.public-asset-summary-grid span { display: block; color: var(--muted); font-size: .73rem; font-weight: 800; }
.public-asset-summary-grid strong { display: block; margin-top: 6px; font-size: 1.15rem; }
.public-asset-identity { margin-bottom: 18px; }
.public-asset-identity dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin: 0; }
.public-asset-identity dl div { padding: 12px 0; border-bottom: 1px solid var(--line); }
.public-asset-identity dt { color: var(--muted); font-size: .72rem; font-weight: 800; }
.public-asset-identity dd { margin: 4px 0 0; font-weight: 700; }
.public-asset-description { padding-top: 15px; }
.public-asset-description h3 { margin: 0 0 7px; }
.public-asset-description p { margin: 0; color: var(--muted); line-height: 1.65; }
.public-asset-record-grid { margin-bottom: 18px; }
.public-asset-alert, .risk-critical, .risk-high { color: #a6382f !important; font-weight: 800; }
.status-critical { border-color: #e7b3ae; color: #9e2e27; background: #fff0ee; }
.status-high { border-color: #e9c28f; color: #88550d; background: #fff7e9; }
.status-medium { border-color: #d7c985; color: #685a10; background: #fffbed; }
.status-low { border-color: #b8dbc4; color: #25633a; background: #eefaf2; }
.public-asset-issues { margin-bottom: 18px; }
.public-asset-history ol { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.public-asset-history li { display: grid; grid-template-columns: 125px 1fr; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.public-asset-history li:last-child { border-bottom: 0; }
.public-asset-history time { color: var(--muted); font-size: .78rem; }
.public-asset-history li div { display: grid; gap: 3px; }
.public-asset-history small { color: var(--muted); }
@media (max-width: 1180px) {
  .public-asset-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 800px) {
  .public-asset-summary-grid, .public-asset-identity dl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .public-asset-filter { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .public-asset-metrics, .public-asset-summary-grid, .public-asset-identity dl, .public-asset-filter { grid-template-columns: 1fr; }
  .public-asset-history li { grid-template-columns: 1fr; gap: 4px; }
}

/* Wydanie 56.1 — zwarty edytor karty mienia */
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
.crm-body .public-asset-form-heading { min-height: 118px; align-items: end; }
.crm-body .public-asset-form-heading > div { max-width: 880px; }
.public-asset-form-state {
  margin-bottom: 14px;
  padding: 7px 11px;
  color: #d8bd75;
  border: 1px solid #5a4926;
  border-radius: 99px;
  background: #1b180f;
  font-size: .66rem;
  font-weight: 850;
  letter-spacing: .1em;
  text-transform: uppercase;
  white-space: nowrap;
}
.public-asset-editor {
  display: grid;
  grid-template-columns: minmax(210px, 240px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}
.public-asset-editor-guide {
  position: sticky;
  top: 24px;
  padding: 21px;
  border: 1px solid #453a24;
  border-top: 3px solid #c7a24f;
  border-radius: 7px;
  background:
    linear-gradient(145deg, rgba(212, 177, 95, .07), transparent 42%),
    #13120f;
  box-shadow: 0 15px 42px rgba(0, 0, 0, .2);
}
.public-asset-guide-kicker {
  color: #a88b48;
  font-size: .61rem;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.crm-body .public-asset-editor-guide h2 { margin: 7px 0 8px; font-family: Georgia, "Times New Roman", serif; font-size: 1.22rem; font-weight: 500; }
.crm-body .public-asset-editor-guide > p { margin: 0; color: #948b7b; font-size: .75rem; line-height: 1.55; }
.public-asset-editor-guide ol { display: grid; gap: 4px; margin: 18px 0; padding: 0; list-style: none; }
.public-asset-editor-guide li { display: grid; grid-template-columns: 32px 1fr; gap: 10px; align-items: center; padding: 9px 0; border-bottom: 1px solid #2f2a21; }
.public-asset-editor-guide li:last-child { border-bottom: 0; }
.public-asset-editor-guide li > span {
  display: grid;
  width: 29px;
  height: 29px;
  place-items: center;
  color: #d6b65f;
  border: 1px solid #5b4a28;
  border-radius: 50%;
  background: #0e0e0c;
  font-size: .61rem;
  font-weight: 900;
}
.crm-body .public-asset-editor-guide li strong { color: #d9d0bf; font-size: .76rem; }
.public-asset-guide-note { display: grid; gap: 5px; padding: 13px; border: 1px solid #332d22; border-radius: 5px; background: #0d0d0b; }
.crm-body .public-asset-guide-note strong { color: #d8b967; font-size: .69rem; }
.public-asset-guide-note span { color: #857c6e; font-size: .67rem; line-height: 1.5; }
.crm-body .public-asset-editor-guide > small { display: block; margin-top: 14px; color: #827a6c; font-size: .64rem; }
.crm-body .public-asset-editor-guide > small span { color: #d6b35e; }
.public-asset-editor-main { min-width: 0; }
.crm-body .public-asset-editor-main > .form-error-summary { margin-bottom: 14px; color: #f0b0a5; border-color: #754238; background: #281512; }
.public-asset-form-sections { display: grid; gap: 14px; }
.crm-body .public-asset-form-section {
  min-width: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid #39342a;
  border-radius: 7px;
  background: #151512;
  box-shadow: 0 15px 42px rgba(0, 0, 0, .18);
}
.public-asset-section-heading {
  display: grid;
  grid-template-columns: 37px minmax(0, 1fr);
  gap: 13px;
  align-items: center;
  padding: 16px 18px;
  border-bottom: 1px solid #393329;
  background: linear-gradient(100deg, rgba(212, 177, 95, .08), rgba(212, 177, 95, .015) 55%, transparent);
}
.public-asset-section-heading > span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: #e4c570;
  border: 1px solid #69562d;
  border-radius: 5px;
  background: #0d0d0b;
  font-size: .65rem;
  font-weight: 900;
}
.crm-body .public-asset-section-heading h2 { margin: 0; font-size: .94rem; font-weight: 800; letter-spacing: -.01em; }
.crm-body .public-asset-section-heading p { margin: 3px 0 0; color: #8e8677; font-size: .7rem; line-height: 1.45; }
.public-asset-form-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 14px;
  padding: 18px;
}
.public-asset-field { display: grid; grid-column: span 3; gap: 7px; min-width: 0; align-content: start; }
.crm-body .public-asset-field > span { color: #aaa08d; font-size: .69rem; font-weight: 800; }
.crm-body .public-asset-field > span b { margin-left: 3px; color: #d8b967; font-weight: 900; }
.crm-body .public-asset-field input,
.crm-body .public-asset-field select,
.crm-body .public-asset-field textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  color: #f1eadc;
  border: 1px solid #484135;
  border-radius: 5px;
  background: #0c0c0a;
  font: inherit;
  font-size: .82rem;
  transition: border-color 130ms ease, box-shadow 130ms ease, background 130ms ease;
}
.crm-body .public-asset-field input:hover,
.crm-body .public-asset-field select:hover,
.crm-body .public-asset-field textarea:hover { border-color: #65583d; }
.crm-body .public-asset-field input:focus,
.crm-body .public-asset-field select:focus,
.crm-body .public-asset-field textarea:focus {
  border-color: #c6a34e;
  outline: none;
  background: #10100d;
  box-shadow: 0 0 0 3px rgba(212, 177, 95, .12);
}
.crm-body .public-asset-field textarea { min-height: 105px; resize: vertical; line-height: 1.55; }
.crm-body .public-asset-field.has-error input,
.crm-body .public-asset-field.has-error select,
.crm-body .public-asset-field.has-error textarea { border-color: #a95448; }
.crm-body .public-asset-field .field-error { color: #e4978c; font-size: .65rem; }
.public-asset-field.field-reference,
.public-asset-field.field-inventory_number { grid-column: span 6; }
.public-asset-field.field-name,
.public-asset-field.field-description { grid-column: 1 / -1; }
.public-asset-field.field-country { grid-column: span 2; }
.public-asset-field.field-voivodeship,
.public-asset-field.field-county { grid-column: span 5; }
.public-asset-field.field-municipality,
.public-asset-field.field-city,
.public-asset-field.field-postal_code { grid-column: span 4; }
.public-asset-field.field-street { grid-column: span 8; }
.public-asset-field.field-building_number { grid-column: span 4; }
.public-asset-field.field-estimated_value,
.public-asset-field.field-valuation_date { grid-column: span 6; }
.public-asset-form-actions {
  position: sticky;
  z-index: 8;
  bottom: 12px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  margin-top: 14px;
  padding: 12px 14px;
  border: 1px solid #4c4029;
  border-radius: 7px;
  background: rgba(13, 13, 11, .95);
  box-shadow: 0 18px 42px rgba(0, 0, 0, .42);
  backdrop-filter: blur(8px);
}
.crm-body .public-asset-form-actions p { margin: 0; color: #827a6c; font-size: .68rem; }
.public-asset-form-actions > div { display: flex; gap: 8px; flex: 0 0 auto; }

@media (max-width: 1100px) {
  .public-asset-editor { grid-template-columns: 205px minmax(0, 1fr); }
  .public-asset-field { grid-column: span 6; }
  .public-asset-field.field-kind,
  .public-asset-field.field-status,
  .public-asset-field.field-risk_level,
  .public-asset-field.field-assigned_to,
  .public-asset-field.field-municipality,
  .public-asset-field.field-city,
  .public-asset-field.field-street,
  .public-asset-field.field-building_number { grid-column: span 6; }
  .public-asset-field.field-country,
  .public-asset-field.field-postal_code { grid-column: span 4; }
  .public-asset-field.field-voivodeship,
  .public-asset-field.field-county { grid-column: span 4; }
}
@media (max-width: 760px) {
  .public-asset-editor { grid-template-columns: 1fr; }
  .public-asset-editor-guide { position: static; }
  .public-asset-editor-guide ol { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .public-asset-editor-guide li { display: flex; border-bottom: 0; }
  .public-asset-guide-note { display: none; }
  .public-asset-form-actions { position: static; }
}
@media (max-width: 560px) {
  .crm-body .public-asset-form-heading { min-height: 0; padding-bottom: 18px; }
  .public-asset-form-state { margin-top: 14px; margin-bottom: 0; display: inline-block; }
  .public-asset-editor-guide ol { grid-template-columns: 1fr; }
  .public-asset-editor-guide li { border-bottom: 1px solid #2f2a21; }
  .public-asset-form-grid { padding: 15px; }
  .public-asset-field,
  .public-asset-field.field-reference,
  .public-asset-field.field-inventory_number,
  .public-asset-field.field-name,
  .public-asset-field.field-kind,
  .public-asset-field.field-status,
  .public-asset-field.field-risk_level,
  .public-asset-field.field-assigned_to,
  .public-asset-field.field-country,
  .public-asset-field.field-voivodeship,
  .public-asset-field.field-county,
  .public-asset-field.field-municipality,
  .public-asset-field.field-city,
  .public-asset-field.field-postal_code,
  .public-asset-field.field-street,
  .public-asset-field.field-building_number,
  .public-asset-field.field-estimated_value,
  .public-asset-field.field-valuation_date,
  .public-asset-field.field-description { grid-column: 1 / -1; }
  .public-asset-form-actions { display: grid; }
  .public-asset-form-actions > div { display: grid; grid-template-columns: 1fr 1fr; }
  .public-asset-form-actions .button { justify-content: center; }
}

/* Wydanie 59 — odrębny produkt MDC Mienie */
.asset-product-body .panel-sidebar-brand strong { color: #e6cc79; }
.asset-product-body .panel-sidebar { border-color: #4c4025; }
.asset-quick-actions { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 0 0 18px; }
.asset-quick-actions a { display: flex; gap: 12px; align-items: center; min-height: 92px; padding: 16px; color: inherit; border: 1px solid #d7c79c; border-radius: 10px; background: linear-gradient(145deg, #fff, #f7f3e8); text-decoration: none; }
.asset-quick-actions b { display: grid; place-items: center; width: 37px; height: 37px; flex: 0 0 auto; color: #111; border-radius: 50%; background: #dfc875; font-size: .7rem; }
.asset-quick-actions span { display: grid; gap: 4px; }
.asset-quick-actions small { color: var(--muted); line-height: 1.35; }
.asset-module-form { max-width: 980px; }
.asset-module-form .form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.asset-module-form .field { display: grid; gap: 6px; }
.asset-module-form .field:has(textarea), .asset-module-form .field:has(input[type="checkbox"]) { grid-column: 1 / -1; }
.asset-report-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.asset-report-grid article { padding: 17px; }
.asset-report-grid article > strong { display: block; margin-bottom: 10px; color: #7b5f1d; font-size: .72rem; letter-spacing: .08em; }
.asset-report-grid dl { display: flex; justify-content: space-between; gap: 8px; margin: 0; padding: 5px 0; border-bottom: 1px solid var(--line); font-size: .72rem; }
.asset-report-grid dd { margin: 0; font-weight: 800; }
.inline-actions { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 8px; }
.inline-actions form { margin: 0; }
.inline-actions button { padding: 5px 8px; color: #72581c; border: 1px solid #d8cda9; border-radius: 5px; background: #fff; cursor: pointer; }
.asset-landing-body { background: #0c0e0d; color: #eee9dc; }
.asset-landing { min-height: 100vh; background: radial-gradient(circle at 80% 12%, rgba(197,165,75,.17), transparent 30%), #0c0e0d; }
.asset-landing-nav { display: flex; align-items: center; justify-content: space-between; padding-top: 24px; padding-bottom: 24px; border-bottom: 1px solid #302b20; }
.asset-wordmark { display: flex; align-items: center; gap: 12px; color: #f4eddc; text-decoration: none; }
.asset-wordmark > span { display: grid; place-items: center; width: 42px; height: 42px; color: #d8bd67; border: 1px solid #8f7634; border-radius: 50%; font-family: Georgia, serif; font-size: 1.25rem; }
.asset-wordmark strong { display: grid; font-family: Georgia, serif; font-size: 1.05rem; }
.asset-wordmark small { color: #948a73; font: 700 .55rem/1.4 sans-serif; letter-spacing: .12em; text-transform: uppercase; }
.asset-landing-nav > div { display: flex; align-items: center; gap: 22px; }
.asset-landing-nav > div > a:not(.button) { color: #bcb39f; text-decoration: none; }
.asset-hero { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(320px, .55fr); gap: 70px; align-items: center; min-height: 660px; padding-top: 90px; padding-bottom: 90px; }
.asset-hero h1 { max-width: 850px; margin: 18px 0; color: #f6f0e4; font: 500 clamp(3rem, 6vw, 5.9rem)/.96 Georgia, serif; letter-spacing: -.055em; }
.asset-hero h1 em { color: #d8bd67; font-style: normal; }
.asset-hero > div > p { max-width: 720px; color: #aaa18f; font-size: 1.08rem; line-height: 1.75; }
.asset-hero .heading-actions { margin: 28px 0 20px; }
.asset-hero > div > small { color: #777060; }
.asset-hero aside { padding: 30px; border: 1px solid #4a3e22; border-radius: 6px; background: rgba(19,20,17,.9); box-shadow: 0 30px 80px rgba(0,0,0,.35); }
.asset-hero aside > span { color: #897746; font-size: .68rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.asset-hero aside > strong { display: block; margin: 9px 0 22px; font: 500 1.8rem Georgia, serif; }
.asset-hero aside dl { margin: 0; }
.asset-hero aside dl div { padding: 15px 0; border-top: 1px solid #302b20; }
.asset-hero aside dt { color: #d8bd67; font-weight: 800; }
.asset-hero aside dd { margin: 4px 0 0; color: #8f8777; }
.asset-capabilities { padding-top: 90px; padding-bottom: 90px; border-top: 1px solid #302b20; }
.asset-capabilities header { max-width: 760px; }
.asset-capabilities h2, .asset-deployment h2 { margin: 12px 0 32px; color: #eee9dc; font: 500 clamp(2rem, 4vw, 3.4rem)/1.05 Georgia, serif; }
.asset-capabilities > div { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.asset-capabilities article { padding: 24px; border: 1px solid #302b20; border-radius: 5px; background: #111310; }
.asset-capabilities article b { color: #d8bd67; font-size: .7rem; }
.asset-capabilities article h3 { margin: 32px 0 10px; }
.asset-capabilities article p, .asset-deployment p { color: #948c7b; line-height: 1.65; }
.asset-deployment { display: flex; align-items: center; justify-content: space-between; gap: 50px; padding-top: 80px; padding-bottom: 100px; border-top: 1px solid #302b20; }
.asset-deployment > div { max-width: 800px; }
.asset-deployment h2 { margin-bottom: 14px; }
@media (max-width: 1100px) {
  .asset-quick-actions, .asset-capabilities > div, .asset-report-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .asset-hero { grid-template-columns: 1fr; gap: 35px; }
}
@media (max-width: 700px) {
  .asset-quick-actions, .asset-capabilities > div, .asset-report-grid, .asset-module-form .form-grid { grid-template-columns: 1fr; }
  .asset-landing-nav > div > a:not(.button) { display: none; }
  .asset-hero { min-height: auto; padding-top: 60px; }
  .asset-hero h1 { font-size: 3rem; }
  .asset-deployment { align-items: flex-start; flex-direction: column; }
}
