:root {
  color-scheme: light;
  --bg: #f7f7f1;
  --paper: #fff;
  --ink: #1c3027;
  --muted: #52625a;
  --line: #e2e7dc;
  --green: #195742;
  --dark: #143e32;
  --lime: #dce8a5;
  --sans: "Segoe UI", system-ui, sans-serif;
  --heading-font: "Segoe UI Variable Display", var(--sans);
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--bg); color: var(--ink); font: 1rem/1.55 var(--sans); }
main { flex: 1; min-width: 0; }
main:focus { outline: none; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
h1, h2, h3, p { margin: 0; }
h1, h2 { font: 700 2rem/1.16 var(--heading-font); letter-spacing: -.03em; }
h3 { font-size: 1.22rem; line-height: 1.25; letter-spacing: -.02em; }
:focus-visible { outline: 3px solid #9a591e; outline-offset: 3px; }
[hidden] { display: none !important; }
.wrap { width: min(1200px, calc(100% - 72px)); margin-inline: auto; }
.icon { width: 1.125rem; height: 1.125rem; flex: none; vertical-align: middle; }
.skip { position: fixed; top: .5rem; left: .5rem; z-index: 9; padding: .6rem 1rem; transform: translateY(-160%); background: var(--paper); border-radius: .5rem; }
.skip:focus { transform: translateY(0); }
.site-header { background: var(--paper); border-bottom: 1px solid var(--line); }
.header-inner { min-height: 78px; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 1.25rem; }
.brand, .footer-brand { display: inline-flex; gap: .72rem; align-items: center; width: fit-content; line-height: 1.2; }
.brand { max-width: 100%; overflow-wrap: anywhere; }
.brand-icon { display: block; width: 52px; height: 52px; border-radius: 10px; object-fit: contain; flex: none; }
.brand strong, .footer-brand strong { display: block; font: 700 1.22rem/1.2 var(--heading-font); letter-spacing: -.022em; }
.brand small, .footer-brand small { display: block; margin-top: .18rem; color: var(--muted); font-size: .76rem; }
.site-nav { display: flex; align-items: center; gap: .35rem; }
.site-nav a { display: inline-flex; align-items: center; gap: .42rem; min-height: 42px; padding: .5rem .68rem; border-radius: 8px; color: var(--muted); font-size: .9rem; font-weight: 650; white-space: nowrap; }
.site-nav a:hover, .site-nav a[aria-current] { color: var(--green); background: #edf4ed; }
.header-apply { justify-self: end; white-space: nowrap; }
.mobile-menu { display: none !important; }
.button, .icon-button { display: inline-flex; justify-content: center; align-items: center; gap: .45rem; border: 1px solid transparent; border-radius: 9px; font-weight: 700; transition: background-color .15s, border-color .15s; }
.button { min-height: 44px; padding: .58rem .93rem; text-align: center; font-size: .9rem; line-height: 1.2; }
.icon-button { width: 44px; height: 44px; background: #f2f6f0; color: var(--ink); }
.primary { color: #fff; background: var(--green); }
.primary:hover { background: var(--dark); }
.secondary { background: #fff; color: var(--ink); border-color: var(--line); }
.secondary:hover { background: #f1f6ef; border-color: #a6b8aa; }
.whatsapp { color: #176043; background: #e9f5ec; }
.whatsapp:hover { background: #d8efdf; }
.danger { background: #a33a37; color: #fff; }
.danger:hover { background: #812724; }
.reject { color: #923330; }
.home { padding-block: 24px 54px; }
.hero { display: grid; gap: 16px; padding: 20px; border: 1px solid #e2e7d5; border-radius: 22px; background: #edf0e3; }
.hero-copy { padding: 14px clamp(.6rem, 3vw, 2.3rem); }
.hero p.hero-kicker { display: flex; align-items: center; gap: .45rem; margin-bottom: .65rem; color: var(--green); font-size: .875rem; font-weight: 700; }
.hero-kicker .icon { width: 1rem; height: 1rem; }
.hero h1 { margin: 0 0 12px; font-size: clamp(2.1rem, 4.4vw, 4rem); line-height: 1.08; letter-spacing: -.045em; }
.hero h1 span { display: block; color: var(--green); }
.hero p { max-width: 392px; color: var(--muted); }
.hero-stats { display: flex; flex-wrap: wrap; gap: .42rem 1rem; margin-top: 17px; color: var(--muted); font-size: .9rem; }
.hero-stats strong { color: var(--ink); }
.search-form { display: grid; grid-template-columns: 1.5fr 1fr 1fr auto; align-items: stretch; gap: .65rem; border: 1px solid var(--line); border-radius: 14px; padding: 10px; background: var(--paper); box-shadow: 0 3px 14px #193d2710; }
.search-field { display: flex; align-items: center; gap: .7rem; min-width: 0; padding: .38rem .68rem; background: #f7f9f5; border: 1px solid #e9eee7; border-radius: 9px; }
.search-field > .icon { color: var(--green); }
.search-field > span { flex: 1; min-width: 0; }
.field-caption { display: block; font-size: .78rem; font-weight: 700; line-height: 1.3; }
.search-field input, .search-field select { display: block; width: 100%; min-height: 30px; padding: 0; border: 0; border-radius: 0; color: var(--muted); background-color: transparent; font-size: .91rem; }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='m2 4 4 4 4-4' fill='none' stroke='%2352625a' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .85rem center; }
.search-field select { padding-right: 1rem; background-position: right center; }
.search-form .button { padding-inline: 1.24rem; }
.home-section { margin-top: 29px; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: .75rem; margin-bottom: 13px; }
.section-head p, .join-panel p { color: var(--muted); margin-top: .3rem; }
.text-link, .back-link { color: var(--green); font-size: .9rem; font-weight: 700; }
.text-link { text-underline-offset: 4px; }
.text-link:hover, .back-link:hover { text-decoration: underline; }
button.text-link { border: 0; background: none; min-height: 42px; padding: 0 .15rem; }
.category-grid { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 10px; }
.category-card { display: flex; min-height: 101px; flex-direction: column; justify-content: center; align-items: center; gap: .45rem; border: 1px solid var(--line); background: var(--paper); border-radius: 12px; padding: .45rem .3rem; text-align: center; overflow-wrap: anywhere; font-size: .88rem; font-weight: 700; line-height: 1.2; }
.category-card:hover { border-color: #9dae9d; background: #fcfdfa; }
.category-icon { display: grid; place-items: center; width: 41px; height: 41px; border-radius: 10px; }
.category-icon .icon { width: 22px; height: 22px; }
.peach { background: #f6e9df; color: #8b502c; }
.blue { background: #e6eef4; color: #315a73; }
.mint { background: #e4efdf; color: #365d39; }
.lilac { background: #efe8f2; color: #6d5076; }
.yellow { background: #f6efd7; color: #755924; }
.firm-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; }
.card { min-width: 0; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; }
.firm-card { display: flex; flex-direction: column; padding: 17px; }
.firm-top { display: flex; align-items: start; justify-content: space-between; gap: .5rem; margin-bottom: .68rem; }
.monogram { display: grid; place-items: center; flex: none; width: 47px; height: 47px; border-radius: 12px; font: 700 1.16rem/1 var(--heading-font); }
.monogram.large { width: 70px; height: 70px; font-size: 1.85rem; }
.badge { display: inline-flex; align-items: center; gap: .3rem; padding: .32rem .53rem; border-radius: 999px; font-size: .76rem; font-weight: 750; line-height: 1.3; white-space: nowrap; }
.badge .icon { width: .9rem; height: .9rem; }
.green { background: #e7f2e5; color: #225c40; }
.neutral { background: #eef1ed; color: #52625a; }
.amber { background: #fff1d4; color: #734c0e; }
.red { background: #fbe8e6; color: #8e3532; }
.firm-category { color: var(--green); font-size: .78rem; font-weight: 750; letter-spacing: .055em; text-transform: uppercase; }
.firm-card h3 { margin: .22rem 0 .34rem; overflow-wrap: anywhere; }
.firm-card h3 a:hover { text-decoration: underline; }
.location { display: flex; align-items: center; gap: .3rem; color: var(--muted); font-size: .88rem; }
.location .icon { width: 1rem; height: 1rem; }
.firm-description { margin: .62rem 0 .85rem; color: var(--muted); overflow-wrap: anywhere; }
.preview-catalog { display: flex; flex-wrap: wrap; gap: .32rem; margin: 0 0 .85rem; padding: 0; list-style: none; }
.preview-catalog li { max-width: 100%; padding: .2rem .48rem; border-radius: 6px; background: #f2f4eb; color: #3b5146; font-size: .81rem; overflow-wrap: anywhere; }
.queue-copy .preview-catalog { margin: .45rem 0 0; }
.card-actions { display: grid; grid-template-columns: 1fr auto; gap: .5rem; margin-top: auto; }
.join-panel { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 30px; background: #e9f0df; padding: 24px; border-radius: 14px; }
.join-panel p { max-width: 59ch; }
.join-panel .button { flex: none; }
.community-invite { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 12px; padding: 22px 24px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); }
.community-invite p { color: var(--muted); margin-top: .35rem; }
.community-invite .button { flex: none; }
.community-invite-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.faq { padding-inline: 16px; }
.faq details + details { border-top: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: .8rem 0; min-height: 44px; font-weight: 700; color: var(--ink); }
.faq details[open] { padding-bottom: .8rem; }
.faq :is(ul, p) { margin: 0 0 .55rem; color: var(--muted); }
.faq ul { padding-inline-start: 1.25rem; }
.about-panel + .about-panel { margin-top: 14px; }
.about-panel .contact-options { margin-bottom: 0; }
.community-hero { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin: 4px 0 17px; padding: clamp(16px, 3vw, 30px); border-radius: 16px; background: #e9f0df; }
.community-hero p { max-width: 60ch; margin-top: .5rem; color: var(--muted); }
.community-hero .button { flex-shrink: 0; }
.community-layout { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 14px; align-items: start; }
.community-content { min-width: 0; }
.community-tabs { display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); gap: 6px; padding: 5px; margin-bottom: 17px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); }
.community-tabs a { display: flex; justify-content: center; align-items: center; gap: .38rem; min-height: 44px; padding: .3rem; border-radius: 6px; color: var(--muted); font-size: .88rem; text-align: center; font-weight: 700; }
.community-tabs a:hover, .community-tabs a[aria-current] { background: #e6eee3; color: var(--green); }
.boycott-search { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; max-width: 540px; margin-bottom: 16px; }
.boycott-results { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin-bottom: 12px; color: var(--muted); }
.boycott-lists { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 14px; }
.boycott-list.boycott { border-top: 3px solid #a44536; }
.boycott-list.alternative { border-top: 3px solid var(--green); }
.boycott-list h2 { font-size: 1.25rem; }
.boycott-list ul { display: flex; flex-wrap: wrap; gap: 8px; margin: .9rem 0 0; padding: 0; list-style: none; }
.boycott-list li { padding: .35rem .7rem; border-radius: 6px; background: #f4f6f1; }
.boycott-list > p, .boycott-source { margin-top: .7rem; color: var(--muted); }
.boycott-source { font-size: .9rem; }
.merchant-advice-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 430px), 1fr)); gap: 14px; align-items: start; }
.merchant-advice { border-top: 3px solid var(--green); }
.merchant-advice h2 { font-size: 1.25rem; }
.merchant-advice footer { margin-top: 1rem; padding-top: .65rem; border-top: 1px solid var(--line); color: var(--green); font-size: .9rem; font-weight: 650; }
.community-area-head .button { flex: none; }
.community-post { padding: 16px; overflow-wrap: anywhere; }
.community-byline { display: flex; align-items: start; gap: .6rem; margin-bottom: .75rem; }
.community-byline .monogram { width: 40px; height: 40px; border-radius: 8px; font-size: 1rem; }
.community-byline > div { flex: 1; min-width: 0; }
.community-byline a { color: var(--green); font-weight: 750; }
.community-byline a:hover { text-decoration: underline; }
.community-byline span:not(.monogram):not(.badge), .community-byline time { display: block; color: var(--muted); font-size: .82rem; }
.community-post > p { margin-top: .35rem; color: var(--muted); }
.offer-details { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .8rem; margin-top: .75rem; color: var(--muted); font-size: .875rem; }
.offer-details strong { color: var(--ink); }
.community-actions > div { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.community-actions > div p { color: var(--muted); margin: .35rem 0 .55rem; }
.community-actions .text-link { display: inline-flex; align-items: center; min-height: 44px; }
.community-rule-list { margin-top: 1rem; }
.community-rule-list > section { padding-block: .8rem; border-top: 1px solid var(--line); }
.community-rule-list p { margin-top: .35rem; color: var(--muted); }
.membership-rules { margin: .55rem 0 0; padding-inline-start: 1.35rem; color: var(--muted); }
.membership-rules li + li { margin-top: .45rem; }
#uyelik-sartlari { scroll-margin-top: 1rem; }
.community-quote { margin: .7rem 0 0; padding: .8rem 1rem; border-inline-start: 3px solid var(--green); background: #edf3e8; }
.community-quote blockquote { margin: 0; font-size: 1.1rem; font-weight: 700; color: var(--dark); }
.community-quote figcaption { margin-top: .3rem; }
.hadith-sources { display: flex; flex-wrap: wrap; gap: .2rem .75rem; }
.hadith-sources span { color: var(--muted); font-size: .9rem; }
.whatsapp-group h2 { display: flex; align-items: center; gap: .45rem; font-size: 1.5rem; }
.whatsapp-group h2 .icon { color: var(--green); }
.whatsapp-group ul { color: var(--muted); padding-inline-start: 1.2rem; margin-block: .9rem; }
.whatsapp-group li + li { margin-top: .5rem; }
.whatsapp-group .community-motto { border-top: 1px solid var(--line); margin-top: .9rem; padding-top: .75rem; color: var(--dark); }
.site-footer { background: #f0f3eb; border-top: 1px solid var(--line); }
.footer-inner { min-height: 105px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; color: var(--muted); font-size: .88rem; padding-block: 20px; }
.footer-brand strong { color: var(--ink); }
.footer-links { display: flex; flex-wrap: wrap; align-items: center; gap: 0 1rem; }
.footer-links :is(a, button) { display: inline-flex; align-items: center; gap: .35rem; min-height: 44px; color: var(--green); font-weight: 700; }
.footer-links :is(a, button):hover { text-decoration: underline; }
.page { padding-block: 32px 54px; }
.page.narrow { max-width: 720px; }
.page.admin { max-width: 940px; }
.page-heading { margin-bottom: 22px; }
.back-link { display: inline-flex; align-items: center; gap: .25rem; min-height: 38px; }
.back-link .icon { width: .9rem; height: .9rem; }
.page h1 { font-size: clamp(2.45rem, 5vw, 3.55rem); overflow-wrap: anywhere; }
.page-heading p { margin-top: .35rem; color: var(--muted); }
.results-bar { display: flex; justify-content: space-between; align-items: center; gap: .7rem; margin: 20px 0 10px; flex-wrap: wrap; }
.results-bar span { margin-left: .55rem; color: var(--muted); font-size: .88rem; }
.results-actions { display: flex; align-items: center; flex-wrap: wrap; gap: .65rem; }
.pagination { display: grid; grid-template-columns: 1fr auto 1fr; place-items: center; gap: .75rem; margin: 24px auto 0; max-width: 360px; }
.empty { padding: 30px 18px; text-align: center; }
.empty p, .empty .button { margin-top: .6rem; }
.empty p { color: var(--muted); }
.firm-profile { max-width: 1090px; }
.detail-head { display: flex; align-items: center; gap: 1rem; margin: 5px 0 17px; }
.detail-intro { flex: 1; min-width: 0; }
.profile-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .8rem; margin-top: .5rem; }
.detail-grid { display: grid; grid-template-columns: minmax(0, 2.15fr) minmax(0, 1fr); grid-template-areas: "offerings contact"; align-items: start; gap: 14px; margin-bottom: 14px; }
.profile-main { grid-area: offerings; display: grid; gap: 14px; min-width: 0; }
.profile-side { grid-area: contact; display: grid; gap: 11px; min-width: 0; }
.contact-panel .button { width: 100%; }
.contact-panel > p { font-size: .85rem; }
.plain-links { margin: .4rem 0 0; padding: 0; list-style: none; }
.plain-links a { display: inline-flex; align-items: center; min-height: 38px; }
.contact-options { display: flex; flex-wrap: wrap; gap: .5rem; margin: .65rem 0 .9rem; }
.panel { padding: 23px; }
.panel > p, .panel .section-head p { margin-top: .5rem; color: var(--muted); overflow-wrap: anywhere; }
.panel > .button { margin-top: .85rem; }
.reference-list { list-style: none; margin: 0; padding: 0; }
.reference-list li { display: flex; gap: .75rem; padding: 12px 0; border-top: 1px solid var(--line); overflow-wrap: anywhere; }
.reference-list a { color: var(--green); }
.reference-list a:hover { text-decoration: underline; }
.reference-list small, .queue-meta small { color: var(--muted); font-size: .82rem; }
.reference-icon { display: grid; place-items: center; width: 37px; height: 37px; border-radius: 9px; background: #edf4ed; color: var(--green); flex: none; }
.more-references summary { min-height: 44px; padding-block: .65rem; cursor: pointer; color: var(--green); font-weight: 700; }
.catalog-group { margin-top: 16px; }
.share-prices table { width: 100%; margin-top: .65rem; border-collapse: collapse; text-align: start; font-variant-numeric: tabular-nums; }
.share-prices th, .share-prices td { padding: .5rem .25rem; border-bottom: 1px solid var(--line); text-align: start; }
.share-prices th:last-child, .share-prices td:last-child { text-align: end; }
.share-prices tbody th { font-weight: 500; }
.catalog-group h3 { font-size: 1rem; letter-spacing: normal; margin-bottom: 7px; color: var(--muted); }
.catalog-list { display: grid; gap: 8px; padding: 0; margin: 0; list-style: none; }
.catalog-item { display: flex; align-items: start; gap: 12px; padding: 9px; border: 1px solid var(--line); border-radius: 10px; }
.catalog-icon { flex: none; display: grid; place-items: center; width: 43px; height: 43px; border-radius: 7px; }
.catalog-copy { min-width: 0; overflow-wrap: anywhere; padding-top: 2px; }
.catalog-copy p { color: var(--muted); margin-top: .12rem; }
.catalog-copy .text-link { display: inline-flex; align-items: center; gap: .32rem; }
.catalog-copy .text-link .icon { width: 1rem; height: 1rem; }
.entry-form { display: grid; gap: 1rem; }
.entry-form label, .admin-toolbar label, .message-label { display: grid; gap: .32rem; font-size: .93rem; font-weight: 700; }
.entry-form :is(input,select,textarea), .admin-toolbar select, .message-label textarea { width: 100%; min-height: 44px; padding: .53rem .75rem; border: 1px solid #cdd8ce; border-radius: 8px; background-color: #fff; color: var(--ink); font-size: 1rem; font-weight: 400; }
.entry-form select, .admin-toolbar select { padding-right: 2rem; }
.entry-form select:disabled { background-color: #f2f4f0; }
textarea { resize: vertical; }
.form-note { display: flex; justify-content: space-between; align-items: center; gap: .5rem; background: #eef4e7; padding: .34rem .72rem; min-height: 48px; border-radius: 8px; color: #365339; font-size: .88rem; }
.form-note span { display: inline-flex; align-items: center; gap: .5rem; }
.form-note button { flex: none; }
.reference-target { display: grid; gap: .15rem; padding: 14px 16px; border: 1px solid #d4e2d4; border-radius: 10px; background: #eef4e7; color: var(--dark); }
.reference-target strong { font-size: 1.16rem; overflow-wrap: anywhere; }
.reference-target span { font-size: .88rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: .85rem; }
.form-catalog { min-width: 0; border: 1px solid var(--line); border-radius: 10px; padding: 12px; margin: 0; }
.form-catalog legend { padding-inline: .3rem; font-weight: 700; }
.form-catalog legend span, .form-catalog p { color: var(--muted); font-size: .875rem; font-weight: 400; }
.form-catalog p { margin-bottom: .65rem; }
.form-catalog > label + label { margin-top: .75rem; }
.form-actions { display: flex; justify-content: end; flex-wrap: wrap; gap: .55rem; }
.form-error { color: #963b32 !important; font-weight: 650; }
.form-hint { color: var(--muted); font-size: .875rem; }
.admin-toolbar { display: flex; justify-content: space-between; align-items: end; gap: .85rem; margin: 3px 0 22px; }
.admin-toolbar label { flex: none; min-width: 180px; }
.admin-toolbar p { margin-top: .38rem; color: var(--muted); }
.review-filters { padding: 12px 14px 0; margin-bottom: 14px; }
.admin-tabs, .status-tabs { display: flex; flex-wrap: wrap; gap: .5rem; }
.admin-tabs a[aria-current] { background: #e4eee4; border-color: #a6b8aa; color: var(--green); }
.admin-tabs span { border-radius: 999px; background: #f3f7ef; padding: .13rem .42rem; }
.status-tabs { margin-top: 7px; }
.status-tabs a { padding: .58rem .5rem; color: var(--muted); font-size: .9rem; font-weight: 650; border-bottom: 2px solid transparent; }
.status-tabs a[aria-current] { color: var(--green); border-color: var(--green); }
.queue { display: grid; gap: .7rem; }
.queue-item { padding: 18px; }
.queue-main, .linked-references li { display: flex; justify-content: space-between; align-items: start; gap: 1rem; }
.queue-meta, .queue-actions { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem; }
.queue-copy { min-width: 0; overflow-wrap: anywhere; }
.queue-copy h2 { margin: .46rem 0 .15rem; font-size: 1.5rem; }
.queue-copy p + p { margin-top: .32rem; }
.muted { color: var(--muted); }
.queue-actions { flex: none; justify-content: end; }
.linked-references { margin-top: 15px; padding: 13px; background: #f2f6ef; border-radius: 10px; }
.linked-references h3 { display: flex; align-items: center; gap: .48rem; letter-spacing: normal; font-size: .97rem; color: var(--dark); }
.linked-references h3 span { padding: .08rem .48rem; border-radius: 99px; background: #dfeade; }
.linked-references > p { color: var(--muted); font-size: .9rem; margin-top: .5rem; }
.linked-references ul { margin: 0; padding: 0; list-style: none; }
.linked-references li { padding-top: 12px; }
.linked-references li + li { margin-top: 12px; border-top: 1px solid var(--line); }
.linked-references li p { margin-top: .35rem; }
.decision-note { color: var(--muted); font-size: .875rem; }
.firm-status-nav { margin-bottom: .85rem; }
.firm-history { margin-top: .7rem; color: var(--muted); font-size: .9rem; }
.firm-history summary { cursor: pointer; color: var(--green); font-weight: 650; }
.firm-history > ul { margin: .5rem 0 0; padding-inline-start: 1rem; }
dialog { width: min(500px, calc(100% - 32px)); max-height: calc(100% - 28px); overflow: auto; padding: 20px; border: 1px solid var(--line); border-radius: 14px; color: var(--ink); box-shadow: 0 16px 70px #192d2570; }
dialog::backdrop { background: #12261fc0; }
.dialog-head { display: flex; justify-content: space-between; align-items: center; gap: .5rem; }
.dialog-head .icon-button { flex: none; }
.dialog-copy { color: var(--muted); margin: .65rem 0 .95rem; overflow-wrap: anywhere; }
.dialog-status:empty { display: none; }
.dialog-status { margin-top: .5rem; color: var(--green); }
.message-label + .form-actions { margin-top: .8rem; }
.toast { display: none; position: fixed; z-index: 8; right: 18px; bottom: 18px; max-width: calc(100% - 36px); padding: .7rem 1rem; color: #fff; background: var(--dark); border-radius: 10px; box-shadow: 0 6px 20px #142a2333; }
.toast.visible { display: flex; align-items: center; gap: .5rem; }
@media (max-width: 960px) {
  .wrap { width: calc(100% - 40px); }
  .header-inner { gap: .6rem; }
  .site-nav a { padding-inline: .49rem; }
  .category-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .category-card { min-height: 85px; }
  .firm-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 870px) {
  .queue-main, .linked-references li { flex-direction: column; gap: .65rem; }
  .header-inner { grid-template-columns: minmax(0, 1fr) auto auto; min-height: 66px; position: relative; }
  .mobile-menu { display: inline-flex !important; grid-column: 3; grid-row: 1; }
  .header-apply { grid-column: 2; grid-row: 1; }
  .site-nav { display: none; grid-column: 1 / -1; grid-row: 2; padding-bottom: .65rem; gap: .25rem; }
  .site-nav.open { display: grid; }
}
@media (max-width: 730px) {
  .hero { gap: 11px; padding: 12px; }
  .hero-copy { padding: 11px 6px 2px; }
  .search-form { grid-template-columns: 1fr 1fr; }
  .search-field:first-child { grid-column: 1 / -1; }
  .search-form .button { grid-column: 1 / -1; }
  .detail-grid { grid-template-columns: 1fr; grid-template-areas: "contact" "offerings"; }
  .community-layout { grid-template-columns: 1fr; }
  .footer-inner { flex-wrap: wrap; }
}
@media (max-width: 500px) {
  .wrap { width: calc(100% - 30px); }
  .brand { gap: .43rem; }
  .brand-icon { width: 44px; height: 44px; }
  .brand strong { font-size: 1.04rem; }
  .brand small { font-size: .72rem; }
  .header-apply { font-size: .79rem; padding-inline: .51rem; }
  .header-apply .icon { width: .85rem; }
  .header-inner { gap: .35rem; }
  .home { padding-top: 13px; }
  .hero { border-radius: 15px; }
  .hero h1 { font-size: clamp(1.7rem, 8.2vw, 2.55rem); }
  .hero-stats { gap: .4rem .7rem; }
  .search-field:has(select) > .icon { display: none; }
  h2 { font-size: 1.7rem; }
  .category-grid { gap: 7px; }
  .category-card { min-height: 88px; font-size: .77rem; }
  .category-icon { height: 35px; width: 35px; }
  .category-icon .icon { width: 18px; height: 18px; }
  .firm-grid, .form-catalog .form-row { grid-template-columns: 1fr; }
  .card-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card-actions .button { padding-inline: .32rem; }
  .join-panel, .community-invite, .community-hero, .admin-toolbar { align-items: stretch; flex-direction: column; }
  .community-area-head { flex-wrap: wrap; }
  .community-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section-head { align-items: start; }
  .section-head .button { flex: none; }
  .footer-inner { align-items: start; flex-direction: column; gap: .6rem; }
  .page { padding-block: 17px 36px; }
  .panel { padding: 15px; }
  .detail-head { gap: .65rem; }
  .detail-head .large { width: 53px; height: 53px; font-size: 1.45rem; }
  .detail-intro h1 { font-size: 2rem; }
  .contact-panel h2 { display: none; }
  .contact-panel > .button { margin-top: 0; }
  .contact-panel > p { text-align: center; }
  .firm-profile > .panel .section-head { flex-wrap: wrap; }
  .admin-tabs { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: .38rem; }
  .admin-tabs .button { padding-inline: .38rem; font-size: .83rem; }
  .admin-tabs .icon { display: none; }
  .queue-item { padding: 12px; }
  .queue-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; }
  .queue-actions .button { padding-inline: .25rem; font-size: .83rem; }
  .queue-actions .button:only-child { grid-column: 1 / -1; justify-self: start; padding-inline: .7rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
@media (max-width: 360px) {
  .brand .brand-icon { width: 34px; height: 34px; border-radius: 8px; }
  .header-apply .icon { display: none; }
  .search-field:has(select) { padding-inline: .45rem; }
  .search-field select { font-size: .83rem; }
  .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
