:root {
    --bg: #f2fbfa;
    --surface: #f9fffe;
    --surface-strong: #fff;
    --line: #cfe8e4;
    --text: #184046;
    --muted: #49676d;
    --primary: #2b9c92;
    --primary-strong: #1d726b;
    --accent: #f19a4f;
    --accent-strong: #db7b2f;
    --shadow: 0 24px 48px rgba(24, 64, 70, 0.08);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background:
        radial-gradient(circle at top left, rgba(241, 154, 79, 0.16), transparent 30%),
        radial-gradient(circle at top right, rgba(43, 156, 146, 0.15), transparent 32%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.45), rgba(242, 251, 250, 0.65)),
        var(--bg);
    color: var(--text);
    font-family: "Trebuchet MS", "Segoe UI", sans-serif;
    line-height: 1.68;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.narrow {
    width: min(960px, calc(100% - 32px));
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(10px);
    background: rgba(242, 251, 250, 0.9);
    border-bottom: 1px solid rgba(207, 232, 228, 0.82);
}

.header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 18px 0;
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.brand strong,
.site-footer h3,
h1,
h2,
h3 {
    font-family: Cambria, Georgia, serif;
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 16px;
    background: linear-gradient(135deg, #3eb5a8, #ffb06d);
    color: white;
    font-weight: 700;
    box-shadow: 0 16px 30px rgba(43, 156, 146, 0.22);
}

.brand small {
    display: block;
    color: var(--muted);
}

.site-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
}

.site-nav a {
    color: var(--muted);
    font-weight: 600;
}

.site-nav a:hover {
    color: var(--primary-strong);
}

.button,
.search-panel button {
    border: 0;
    border-radius: 16px;
    padding: 12px 18px;
    background: linear-gradient(135deg, var(--primary), var(--primary-strong));
    color: white;
    font-weight: 700;
    cursor: pointer;
    box-shadow: var(--shadow);
}

.button-muted {
    background: rgba(24, 64, 70, 0.08);
    color: var(--text);
    box-shadow: none;
    border: 1px solid rgba(207, 232, 228, 0.95);
}

.hero,
.section {
    padding: 64px 0;
}

.flash-stack {
    padding-top: 20px;
}

.flash {
    margin-top: 16px;
    padding: 16px 18px;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.72);
}

.flash ul {
    margin: 8px 0 0;
    padding-left: 18px;
}

.flash-success {
    border-color: rgba(43, 156, 146, 0.26);
    background: rgba(43, 156, 146, 0.09);
}

.flash-error {
    border-color: rgba(241, 154, 79, 0.28);
    background: rgba(241, 154, 79, 0.12);
}

.section-alt {
    background: rgba(255, 255, 255, 0.5);
    border-top: 1px solid rgba(207, 232, 228, 0.9);
    border-bottom: 1px solid rgba(207, 232, 228, 0.9);
}

.hero-grid,
.highlight-panel,
.footer-grid {
    display: grid;
    gap: 24px;
    grid-template-columns: 1.3fr 0.9fr;
}

.hero-grid-single {
    grid-template-columns: 1fr;
}

.eyebrow {
    display: inline-block;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(43, 156, 146, 0.12);
    color: var(--primary-strong);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 12px;
}

h1 {
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.08;
    margin: 18px 0 18px;
}

h2 {
    font-size: clamp(24px, 3vw, 36px);
    margin: 0 0 12px;
}

h3 {
    font-size: 24px;
    margin: 0 0 10px;
}

.lead {
    font-size: 20px;
    color: var(--muted);
    line-height: 1.65;
}

.hero p,
.district-card p,
.info-card p,
.province-card p,
.result-block p {
    color: var(--muted);
}

.hero-card,
.info-card,
.district-card,
.province-card,
.result-block,
.highlight-panel > div,
.search-panel,
.site-footer {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(207, 232, 228, 0.95);
    border-radius: 28px;
    box-shadow: var(--shadow);
}

.hero-card,
.highlight-panel > div,
.result-block,
.province-card,
.info-card,
.district-card {
    padding: 26px;
}

.search-panel {
    display: grid;
    gap: 16px;
    padding: 18px;
    margin-top: 28px;
}

.auth-panel {
    max-width: 520px;
}

.search-panel-wide {
    grid-template-columns: repeat(5, 1fr);
}

.firm-filter-panel {
    grid-template-columns: repeat(6, 1fr);
}

.search-panel label {
    display: grid;
    gap: 8px;
    color: var(--muted);
    font-weight: 700;
}

.search-panel input,
.search-panel select,
.admin-form input,
.admin-form select,
.admin-form textarea,
.inline-form select {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 14px 15px;
    background: var(--surface-strong);
    font: inherit;
    font-size: 17px;
    color: var(--text);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.admin-form,
.inline-form {
    display: grid;
    gap: 18px;
}

.form-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.admin-form label,
.admin-form fieldset,
.admin-form legend {
    display: grid;
    gap: 8px;
    color: var(--muted);
    font-weight: 700;
}

.admin-form textarea {
    min-height: 120px;
    resize: vertical;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.tag-list a,
.tag-list span,
.meta-row span,
.province-head span {
    display: inline-flex;
    align-items: center;
    padding: 9px 13px;
    border-radius: 999px;
    background: rgba(241, 154, 79, 0.14);
    color: #a45a1f;
    font-weight: 700;
    font-size: 14px;
}

.card-topline {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.section-head,
.province-head,
.meta-row {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
}

.card-grid,
.district-grid,
.guide-grid,
.result-stack,
.province-stack,
.admin-grid {
    display: grid;
    gap: 18px;
}

.admin-grid {
    grid-template-columns: minmax(0, 1.3fr) minmax(320px, 0.9fr);
    align-items: start;
}

.card-grid {
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.district-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.guide-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.icon-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: rgba(43, 156, 146, 0.12);
    color: var(--primary-strong);
    font-weight: 800;
    margin-bottom: 14px;
}

.mini-list,
.feature-list {
    margin: 0;
    padding-left: 18px;
}

.cover-media {
    overflow: hidden;
    margin: -26px -26px 18px;
    border-radius: 28px 28px 18px 18px;
    border-bottom: 1px solid rgba(207, 232, 228, 0.95);
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, rgba(43, 156, 146, 0.18), rgba(241, 154, 79, 0.18));
}

.cover-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cover-media-safe {
    margin: 0 0 18px;
    padding: 18px;
    border-radius: 22px;
    border: 1px solid rgba(207, 232, 228, 0.95);
    background: linear-gradient(180deg, rgba(255, 251, 244, 0.98), rgba(245, 251, 250, 0.96));
    aspect-ratio: auto;
}

.cover-media-safe img {
    width: 100%;
    height: auto;
    max-height: 320px;
    object-fit: contain;
    border-radius: 18px;
}

.cover-media-large {
    margin: 0;
    border-radius: 24px;
}

.firm-hero-card {
    padding: 18px;
    margin-bottom: 24px;
}

.text-link,
.district-card a,
.info-card a,
.province-card a {
    color: var(--primary-strong);
    font-weight: 700;
}

.text-link:hover,
.district-card a:hover,
.info-card a:hover,
.province-card a:hover {
    color: var(--accent-strong);
}

.subheading {
    margin-top: 32px;
}

.hero-metrics {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 24px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 18px;
}

.metric-card {
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(207, 232, 228, 0.95);
    border-radius: 22px;
    box-shadow: var(--shadow);
    padding: 20px 22px;
}

.metric-card strong {
    display: block;
    font-size: 28px;
    line-height: 1;
    margin-bottom: 10px;
    color: var(--primary-strong);
    font-family: Cambria, Georgia, serif;
}

.metric-card span {
    display: block;
    color: var(--muted);
    font-weight: 600;
}

.site-footer {
    margin: 40px auto 24px;
    padding: 28px;
}

.footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
}

.footer-grid-wide {
    grid-template-columns: 1.4fr repeat(4, minmax(0, 1fr));
    align-items: start;
}

.footer-column {
    min-width: 0;
}

.footer-column h4 {
    margin: 0 0 10px;
    font-size: 16px;
    color: var(--text);
}

.site-footer a,
.site-footer p {
    display: block;
    color: var(--muted);
    margin: 8px 0 0;
}

.site-footer a:hover {
    color: var(--primary-strong);
}

.footer-note {
    max-width: 320px;
}

.page-hero {
    margin-bottom: 26px;
}

.legal-stack {
    gap: 18px;
}

.legal-card h2 {
    margin-bottom: 14px;
}

.legal-card p {
    margin: 0 0 14px;
}

.legal-list {
    margin: 0;
    padding-left: 20px;
    color: var(--muted);
}

.legal-list li + li {
    margin-top: 8px;
}

.legal-action-grid {
    margin-top: 24px;
}

.legal-action-card {
    min-height: 100%;
}

.prose-block {
    white-space: pre-line;
}

.empty-state {
    color: var(--muted);
    font-style: italic;
}

.search-section {
    padding-top: 52px;
}

.search-hero-block {
    position: relative;
    margin-bottom: 30px;
}

.search-hero-block::before {
    content: "";
    position: absolute;
    inset: -18px -18px auto;
    height: 210px;
    border-radius: 36px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.28)),
        radial-gradient(circle at top left, rgba(241, 154, 79, 0.14), transparent 55%),
        radial-gradient(circle at top right, rgba(43, 156, 146, 0.14), transparent 55%);
    z-index: -1;
    filter: blur(0.2px);
}

.search-lead {
    max-width: 760px;
}

.search-panel-premium {
    padding: 22px;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 26px 60px rgba(24, 64, 70, 0.08);
}

.search-tag-list {
    margin-top: 20px;
}

.search-summary {
    margin-bottom: 26px;
}

.search-summary-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 16px;
}

.search-summary-head h2 {
    margin-bottom: 6px;
}

.search-summary-head p {
    margin: 0;
    color: var(--muted);
}

.search-active-filters {
    margin-top: 0;
}

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

.search-metric-card {
    position: relative;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.94);
}

.search-metric-card::after {
    content: "";
    position: absolute;
    left: 22px;
    right: 22px;
    top: 0;
    height: 4px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(43, 156, 146, 0.9), rgba(241, 154, 79, 0.9));
}

.result-block-premium {
    padding: 28px;
    border-radius: 32px;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 28px 64px rgba(24, 64, 70, 0.08);
}

.result-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
}

.result-head h2 {
    margin-bottom: 6px;
}

.result-head p {
    margin: 0;
    color: var(--muted);
}

.result-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(24, 64, 70, 0.06);
    color: var(--text);
    font-weight: 700;
    white-space: nowrap;
}

.search-card {
    min-height: 100%;
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(249, 255, 254, 0.94));
    box-shadow: 0 18px 40px rgba(24, 64, 70, 0.06);
}

.search-card h3 {
    font-size: 22px;
    line-height: 1.24;
    margin-bottom: 12px;
}

.search-card .mini-list {
    margin-top: 14px;
}

.process-card {
    min-height: 100%;
}

.premium-panel {
    margin-top: 28px;
}

.strong-link {
    display: inline-flex;
    margin-top: 14px;
    letter-spacing: 0.01em;
}

.card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.firm-card {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.firm-card h3 {
    margin-bottom: 10px;
}

.firm-card p {
    margin-top: 0;
}

.firm-card-meta {
    display: grid;
    gap: 10px;
    margin-top: 6px;
}

.firm-card-meta span {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 10px 12px;
    border-radius: 14px;
    background: rgba(24, 64, 70, 0.06);
    color: var(--text);
    font-weight: 700;
    line-height: 1.4;
}

.firm-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.firm-card-tags span {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(43, 156, 146, 0.12);
    color: var(--primary-strong);
    font-size: 14px;
    font-weight: 700;
}

.detail-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    align-items: stretch;
}

.firm-detail-grid {
    margin-top: 22px;
}

.firm-detail-media {
    margin-bottom: 24px;
}

.location-card ul {
    margin-bottom: 0;
}

.location-action {
    margin-top: 18px;
}

.firm-card-featured {
    border-width: 1px;
    border-color: rgba(43, 156, 146, 0.28);
    box-shadow: 0 24px 52px rgba(24, 64, 70, 0.1);
}

.home-recommendation-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
    align-items: start;
}

.home-next-steps {
    min-height: 100%;
}

.home-next-steps h3,
.home-guide-callout h4 {
    margin-bottom: 10px;
}

.home-guide-callout {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid rgba(207, 232, 228, 0.95);
}

.home-guide-callout p {
    margin-bottom: 10px;
}

.form-section {
    display: grid;
    gap: 18px;
    padding: 24px;
    border: 1px solid rgba(207, 232, 228, 0.95);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 18px 40px rgba(24, 64, 70, 0.05);
}

.quick-fill-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.quick-fill-chip {
    border: 0;
    border-radius: 999px;
    padding: 8px 12px;
    background: rgba(43, 156, 146, 0.12);
    color: var(--primary-strong);
    font-weight: 700;
    cursor: pointer;
}

.quick-fill-chip:hover {
    background: rgba(241, 154, 79, 0.18);
    color: #9b5b21;
}

.action-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 12px 16px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--primary), var(--primary-strong));
    color: white !important;
    font-weight: 800 !important;
    letter-spacing: 0.01em;
    box-shadow: 0 14px 28px rgba(43, 156, 146, 0.16);
}

.action-button:hover,
.sticky-action-button:hover {
    background: linear-gradient(135deg, var(--accent), var(--accent-strong));
    color: white !important;
}

.action-button-secondary {
    background: rgba(255, 255, 255, 0.98);
    color: var(--primary-strong) !important;
    border: 1px solid rgba(207, 232, 228, 0.95);
    box-shadow: none;
}

.action-button-muted {
    background: rgba(24, 64, 70, 0.08);
    color: var(--text) !important;
    border: 1px solid rgba(207, 232, 228, 0.95);
    box-shadow: none;
}

.action-button-muted:hover {
    color: white !important;
}

.action-button-ghost {
    background: rgba(255, 255, 255, 0.98);
    color: var(--primary-strong) !important;
    border: 1px solid rgba(207, 232, 228, 0.95);
    box-shadow: none;
}

.action-button-ghost:hover {
    color: white !important;
}

.detail-action-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 24px 0 20px;
}

.detail-action-button {
    min-height: 52px;
    padding-inline: 18px;
}

.trust-strip {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-bottom: 24px;
}

.trust-tile {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(207, 232, 228, 0.95);
    border-radius: 22px;
    box-shadow: var(--shadow);
    padding: 20px 22px;
}

.trust-label {
    display: block;
    color: var(--muted);
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 10px;
}

.trust-value {
    display: block;
    color: var(--text);
    font-family: Cambria, Georgia, serif;
    font-size: 22px;
    line-height: 1.25;
}

.trust-value-small {
    font-family: "Trebuchet MS", "Segoe UI", sans-serif;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.5;
}

.checkbox-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    padding: 0;
    border: 0;
}

.checkbox-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.checkbox-inline {
    align-self: end;
}

.checkbox-pill {
    display: inline-flex !important;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.82);
    color: var(--text);
    font-weight: 600 !important;
}

.checkbox-pill input {
    width: auto;
}

.hp-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

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

.admin-hub {
    margin-bottom: 24px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(207, 232, 228, 0.95);
    border-radius: 22px;
    box-shadow: var(--shadow);
    padding: 22px;
}

.stat-card small {
    display: block;
    color: var(--muted);
}

.stat-card strong {
    display: block;
    font-size: 34px;
    margin-top: 8px;
}

.table-wrap {
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th,
.admin-table td {
    padding: 14px 10px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}

.admin-table small {
    display: block;
    color: var(--muted);
    margin-top: 4px;
}

.admin-links {
    margin-bottom: 18px;
}

.admin-section-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 24px 0 28px;
}

.admin-section-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(207, 232, 228, 0.95);
    color: var(--muted);
    font-weight: 700;
    box-shadow: 0 12px 24px rgba(24, 64, 70, 0.05);
}

.admin-section-link:hover {
    color: var(--primary-strong);
    border-color: rgba(43, 156, 146, 0.28);
}

.admin-section-link-active {
    background: linear-gradient(135deg, rgba(43, 156, 146, 0.16), rgba(241, 154, 79, 0.14));
    color: var(--text);
    border-color: rgba(43, 156, 146, 0.32);
}

.button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin: 18px 0;
}

.button-row form {
    margin: 0;
}

.status-pill {
    display: inline-flex;
    padding: 7px 11px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
}

.status-pending,
.status-new {
    background: rgba(241, 154, 79, 0.18);
    color: #9b5b21;
}

.status-approved,
.status-contacted {
    background: rgba(43, 156, 146, 0.16);
    color: var(--primary-strong);
}

.status-rejected,
.status-closed {
    background: rgba(24, 64, 70, 0.1);
    color: var(--text);
}

.inline-form {
    grid-template-columns: 1fr auto;
    align-items: center;
}

.quick-actions {
    display: grid;
    gap: 8px;
}

.quick-actions form {
    display: inline;
}

.quick-actions button,
.quick-actions a {
    border: 0;
    border-radius: 12px;
    padding: 10px 12px;
    background: rgba(24, 64, 70, 0.08);
    color: var(--text);
    font-weight: 700;
    text-align: center;
}

.inline-form button {
    border: 0;
    padding: 10px 12px;
    border-radius: 12px;
    background: var(--primary);
    color: white;
    font-weight: 700;
}

.sponsor-card {
    background: rgba(255, 255, 255, 0.92);
}

.info-card-plain {
    min-height: 100%;
}

.media-preview {
    padding: 20px;
}

.media-preview .lead {
    margin: 0;
    font-size: 15px;
}

.sticky-action-bar {
    position: sticky;
    bottom: 14px;
    z-index: 25;
    display: none;
    gap: 10px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 26px;
    padding: 10px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(207, 232, 228, 0.95);
    box-shadow: 0 26px 48px rgba(24, 64, 70, 0.14);
    backdrop-filter: blur(10px);
}

.sticky-action-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 14px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--primary), var(--primary-strong));
    color: white !important;
    font-weight: 800 !important;
}

.sticky-action-button-muted {
    background: rgba(24, 64, 70, 0.08);
    color: var(--text) !important;
    border: 1px solid rgba(207, 232, 228, 0.95);
}

.sticky-action-button-ghost {
    background: rgba(255, 255, 255, 0.98);
    color: var(--primary-strong) !important;
    border: 1px solid rgba(207, 232, 228, 0.95);
}

.assistant-hero-block {
    margin-bottom: 26px;
}

.assistant-summary-card {
    margin-bottom: 24px;
}

.assistant-local-note {
    margin: 22px 0 24px;
}

.assistant-local-note .eyebrow {
    margin-bottom: 8px;
}

.assistant-steps {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    margin-top: 18px;
}

.assistant-knowledge-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 18px;
}

.assistant-option-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    margin-top: 20px;
}

.assistant-option-card {
    display: grid;
    gap: 8px;
    min-height: 100%;
    padding: 18px 20px;
    border-radius: 22px;
    border: 1px solid rgba(207, 232, 228, 0.95);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 16px 34px rgba(24, 64, 70, 0.06);
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.assistant-option-card strong {
    font-size: 18px;
    color: var(--text);
}

.assistant-option-card span {
    color: var(--muted);
    font-size: 15px;
}

.assistant-option-card:hover {
    transform: translateY(-2px);
    border-color: rgba(43, 156, 146, 0.42);
    box-shadow: 0 22px 40px rgba(24, 64, 70, 0.1);
}

.assistant-knowledge-card {
    min-height: 100%;
}

.assistant-message-box {
    margin: 0;
    padding: 18px 20px;
    border-radius: 20px;
    border: 1px solid rgba(207, 232, 228, 0.95);
    background: rgba(255, 255, 255, 0.92);
    color: var(--text);
}

.assistant-message-variants {
    margin-top: 6px;
}

.assistant-recommendation-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 18px;
}

.assistant-referral-card {
    margin: 20px 0 24px;
}

.assistant-empty {
    margin-top: 24px;
}

.region-summary-grid {
    margin: 26px 0 28px;
}

.search-panel button:hover,
.button:hover {
    background: linear-gradient(135deg, var(--accent), var(--accent-strong));
}

input:focus,
select:focus,
textarea:focus {
    outline: 2px solid rgba(43, 156, 146, 0.22);
    border-color: rgba(43, 156, 146, 0.48);
}

@media (max-width: 900px) {
    .hero-grid,
    .highlight-panel,
    .footer-grid,
    .search-panel-wide,
    .firm-filter-panel {
        grid-template-columns: 1fr;
    }

    .header-row,
    .section-head,
    .province-head,
    .search-summary-head,
    .result-head {
        align-items: flex-start;
        flex-direction: column;
    }

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

    .hero-metrics,
    .search-summary-grid,
    .trust-strip {
        grid-template-columns: 1fr;
    }

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

    .hero-actions,
    .quick-fill-group {
        flex-direction: column;
    }

    .detail-action-row {
        flex-direction: column;
    }

    .detail-action-button,
    .action-button,
    .button {
        width: 100%;
        justify-content: center;
    }

    .card-actions {
        flex-direction: column;
    }

    .sticky-action-bar {
        display: grid;
    }

    .form-section {
        padding: 20px;
    }

    .assistant-knowledge-grid {
        grid-template-columns: 1fr;
    }

    .home-recommendation-grid {
        grid-template-columns: 1fr;
    }

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