:root {
  color-scheme: light;
  --ink: #18202b;
  --text: #303846;
  --muted: #6d7480;
  --line: #dfe3e8;
  --line-strong: #cbd1d8;
  --surface: #ffffff;
  --canvas: #f7f8fa;
  --accent: #c84424;
  --accent-dark: #a9361b;
  --accent-soft: #fff3ef;
  --green: #277253;
  --green-soft: #edf7f2;
  --blue: #245f8f;
  --radius: 6px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { min-width: 320px; margin: 0; background: var(--canvas); color: var(--text); }
button, input, textarea, select { font: inherit; letter-spacing: 0; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; }
h1, h2, h3, p { margin-top: 0; }
.hidden { display: none !important; }
.mobile-only, .mobile-nav, .mobile-menu-button, .mobile-drawer { display: none; }

.app-shell { min-height: 100vh; }
.site-header { position: sticky; top: 0; z-index: 40; background: #fff; border-bottom: 1px solid var(--line); }
.site-header-inner { width: min(1240px, calc(100% - 40px)); height: 66px; margin: 0 auto; display: flex; align-items: center; gap: 26px; }
.brand { flex: 0 0 auto; display: flex; align-items: center; gap: 10px; }
.brand strong { display: block; color: var(--ink); font-size: 18px; line-height: 1.2; }
.brand small { display: block; margin-top: 3px; color: var(--muted); font-size: 10px; }
.brand-mark { position: relative; width: 34px; height: 34px; flex: 0 0 34px; border: 1px solid var(--ink); border-radius: 4px; overflow: hidden; background: #fff; }
.brand-mark b { position: absolute; top: 7px; bottom: 7px; width: 5px; border-radius: 1px; background: var(--ink); }
.brand-mark b:first-child { left: 8px; }
.brand-mark b:nth-child(2) { right: 8px; }
.brand-mark i { position: absolute; left: 5px; right: 5px; top: 14px; height: 5px; background: var(--accent); }
.main-nav { align-self: stretch; display: flex; align-items: stretch; gap: 2px; }
.main-nav a { position: relative; display: flex; align-items: center; padding: 0 11px; color: #4f5865; font-size: 14px; white-space: nowrap; }
.main-nav a::after { content: ""; position: absolute; right: 11px; bottom: -1px; left: 11px; height: 2px; background: transparent; }
.main-nav a:hover { color: var(--ink); }
.main-nav a.active { color: var(--accent); font-weight: 700; }
.main-nav a.active::after { background: var(--accent); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.notice-button, .account-button, .icon-button { border: 0; background: transparent; color: var(--text); }
.notice-button { position: relative; width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 4px; }
.notice-button:hover { background: var(--canvas); }
.notice-button svg { width: 18px; }
.notice-button span { position: absolute; right: -4px; top: -5px; display: none; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: var(--accent); color: #fff; font-size: 10px; line-height: 17px; }
.account-button { display: flex; align-items: center; gap: 8px; padding: 3px 7px 3px 3px; border-radius: 4px; font-size: 13px; font-weight: 650; white-space: nowrap; }
.account-button:hover { background: var(--canvas); }
.avatar { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 50%; background: var(--ink); color: #fff; font-size: 12px; }

.page-frame { min-height: calc(100vh - 66px); }
.topbar { height: 50px; display: flex; align-items: center; gap: 20px; padding: 0 max(20px, calc((100vw - 1240px) / 2)); background: #fff; border-bottom: 1px solid #edf0f2; }
.top-search { width: min(430px, 48vw); height: 34px; display: flex; align-items: center; gap: 8px; padding: 0 10px; border: 1px solid var(--line); border-radius: 4px; background: var(--canvas); }
.top-search:focus-within { border-color: #8c96a2; background: #fff; }
.top-search svg { width: 16px; color: var(--muted); }
.top-search input { width: 100%; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 13px; }
.top-search > span { color: #969da6; font-size: 11px; white-space: nowrap; }
.topbar-links { margin-left: auto; display: flex; gap: 20px; color: var(--muted); font-size: 12px; }
.topbar-links a:hover { color: var(--ink); }

main { width: min(1240px, calc(100% - 40px)); margin: 0 auto; padding: 30px 0 84px; }
.page-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 22px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.page-heading h1 { margin-bottom: 7px; color: var(--ink); font-size: 30px; line-height: 1.2; }
.page-heading p { margin: 0; color: var(--muted); font-size: 14px; }
.inline-actions, .button-row { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.eyebrow { display: block; color: var(--accent); font-size: 11px; font-weight: 800; }

.primary-button, .secondary-button, .danger-button, .text-button { min-height: 40px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 0 15px; border: 1px solid transparent; border-radius: 4px; font-size: 13px; font-weight: 700; }
.primary-button { background: var(--accent); color: #fff; }
.primary-button:hover { background: var(--accent-dark); }
.secondary-button { background: #fff; color: var(--ink); border-color: var(--line-strong); }
.secondary-button:hover { border-color: #8f98a4; }
.danger-button { background: #fff; color: #b42d2d; border-color: #e7b8b8; }
.text-button { padding-inline: 4px; background: transparent; color: var(--accent); }
.primary-button:disabled, .secondary-button:disabled { opacity: .5; cursor: not-allowed; }
.primary-button svg, .secondary-button svg, .danger-button svg { width: 16px; height: 16px; }
.header-publish { min-height: 38px; }

.home-intro { min-height: 300px; display: grid; grid-template-columns: minmax(0, 1fr) 390px; border: 1px solid var(--line); background: #fff; }
.home-intro-copy { padding: 48px 54px 42px; }
.home-kicker { display: block; margin-bottom: 15px; color: var(--accent); font-size: 13px; font-weight: 700; }
.home-intro h1 { margin-bottom: 14px; color: var(--ink); font-size: 42px; line-height: 1.16; }
.home-intro-copy > p { max-width: 650px; margin-bottom: 26px; color: #56606d; font-size: 16px; line-height: 1.75; }
.home-search { width: min(670px, 100%); height: 52px; display: flex; align-items: center; gap: 10px; padding-left: 15px; border: 1px solid #aeb6c0; border-radius: 4px; background: #fff; }
.home-search:focus-within { border-color: var(--ink); }
.home-search svg { width: 19px; color: var(--muted); }
.home-search input { min-width: 0; flex: 1; height: 100%; border: 0; outline: 0; color: var(--ink); }
.home-search .primary-button { align-self: stretch; min-width: 106px; border-radius: 0 3px 3px 0; }
.home-links { display: flex; align-items: center; gap: 18px; margin-top: 15px; color: var(--muted); font-size: 12px; }
.home-links span { color: #9aa1aa; }
.home-links a { color: var(--blue); }
.home-figures { display: grid; grid-template-columns: 1fr 1fr; border-left: 1px solid var(--line); background: #fafbfc; }
.home-figures div { display: grid; place-content: center; justify-items: center; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.home-figures div:nth-child(even) { border-right: 0; }
.home-figures div:nth-child(n+3) { border-bottom: 0; }
.home-figures strong { color: var(--ink); font-size: 30px; font-variant-numeric: tabular-nums; }
.home-figures span { margin-top: 5px; color: var(--muted); font-size: 12px; }
.service-strip { display: grid; grid-template-columns: repeat(3, 1fr); margin: 18px 0 34px; border: 1px solid var(--line); background: #fff; }
.service-strip a { min-width: 0; min-height: 78px; display: flex; align-items: center; gap: 12px; padding: 15px 20px; border-right: 1px solid var(--line); }
.service-strip a:last-child { border-right: 0; }
.service-strip a:hover { background: #fafbfc; }
.service-strip a > svg:first-child { width: 21px; color: var(--accent); }
.service-strip a > svg:last-child { width: 16px; margin-left: auto; color: #a1a8b0; }
.service-strip span { min-width: 0; display: grid; gap: 4px; }
.service-strip strong { color: var(--ink); font-size: 14px; }
.service-strip small { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.section-title { display: flex; align-items: end; justify-content: space-between; gap: 15px; margin: 28px 0 13px; }
.section-title h2 { margin: 0; color: var(--ink); font-size: 20px; }
.section-title p { margin: 5px 0 0; color: var(--muted); font-size: 12px; }
.section-title a, .section-title button { color: var(--accent); font-size: 13px; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(340px, .85fr); gap: 24px; align-items: start; }
.cluster-list, .data-panel, .enterprise-directory { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.cluster-list { display: grid; grid-template-columns: 1fr 1fr; }
.cluster-row { min-width: 0; min-height: 130px; display: grid; grid-template-columns: minmax(0, 1fr) auto 18px; align-items: center; gap: 14px; padding: 18px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); cursor: pointer; }
.cluster-row:nth-child(even) { border-right: 0; }
.cluster-row:nth-last-child(-n+2) { border-bottom: 0; }
.cluster-row:hover { background: #fafbfc; }
.cluster-row > div { min-width: 0; }
.cluster-row > div > span { color: var(--muted); font-size: 11px; }
.cluster-row h3 { margin: 5px 0 6px; color: var(--ink); font-size: 15px; }
.cluster-row p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.55; display: -webkit-box; overflow: hidden; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.cluster-row > strong { color: var(--ink); font-size: 20px; text-align: right; }
.cluster-row > strong small { display: block; color: var(--muted); font-size: 10px; font-weight: 400; }
.cluster-row > svg { width: 16px; color: #a2a9b1; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 15px 18px; border-bottom: 1px solid var(--line); }
.panel-head h2, .panel-head h3 { margin: 0; color: var(--ink); font-size: 16px; }
.panel-body { padding: 20px; }
.list-row { min-height: 66px; display: flex; align-items: center; gap: 11px; padding: 12px 16px; border-bottom: 1px solid var(--line); cursor: pointer; }
.list-row:last-child { border-bottom: 0; }
.list-row:hover { background: #fafbfc; }
.list-row-main { min-width: 0; flex: 1; }
.list-row strong { display: block; overflow: hidden; color: var(--ink); text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.list-row small { display: block; margin-top: 5px; overflow: hidden; color: var(--muted); text-overflow: ellipsis; white-space: nowrap; font-size: 11px; }
.list-row > svg { flex: 0 0 auto; width: 17px; color: #a1a8b0; }

.toolbar { display: flex; align-items: center; gap: 10px; margin-bottom: 15px; }
.toolbar .search-field { min-width: 240px; flex: 1; }
.search-field { height: 42px; display: flex; align-items: center; gap: 8px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: 4px; background: #fff; }
.search-field svg { width: 17px; color: var(--muted); }
.search-field input { width: 100%; border: 0; outline: 0; background: transparent; }
select, input, textarea { border: 1px solid var(--line-strong); border-radius: 4px; background: #fff; color: var(--ink); outline: 0; }
.toolbar select { height: 42px; padding: 0 34px 0 12px; }
input:focus, textarea:focus, select:focus { border-color: #778391; box-shadow: 0 0 0 3px rgba(36,95,143,.09); }
.entity-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.entity-card { min-height: 176px; display: flex; flex-direction: column; padding: 17px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; cursor: pointer; }
.entity-card:hover { border-color: #aab2bc; }
.entity-card .tag-row { margin-bottom: 12px; }
.entity-card h3 { margin: 0 0 8px; color: var(--ink); font-size: 15px; line-height: 1.45; }
.entity-card p { color: var(--muted); font-size: 12px; line-height: 1.65; }
.entity-card footer { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; color: var(--muted); font-size: 11px; }
.tag-row { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { min-height: 23px; display: inline-flex; align-items: center; padding: 2px 7px; border-radius: 3px; background: #f0f2f4; color: #596270; font-size: 10px; font-weight: 700; }
.tag.orange { background: var(--accent-soft); color: var(--accent-dark); }
.tag.green { background: var(--green-soft); color: var(--green); }
.pagination { display: flex; align-items: center; justify-content: center; gap: 11px; margin-top: 22px; color: var(--muted); font-size: 12px; }
.pagination button { width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 4px; background: #fff; }
.pagination button:disabled { opacity: .4; }

.enterprise-table-head, .enterprise-row { display: grid; grid-template-columns: minmax(0, 1.9fr) minmax(130px, .65fr) 100px 60px; gap: 18px; align-items: center; }
.enterprise-table-head { min-height: 42px; padding: 0 18px; border-bottom: 1px solid var(--line); background: #f4f6f8; color: var(--muted); font-size: 11px; }
.enterprise-row { min-height: 86px; padding: 15px 18px; border-bottom: 1px solid var(--line); cursor: pointer; }
.enterprise-row:last-child { border-bottom: 0; }
.enterprise-row:hover { background: #fafbfc; }
.enterprise-main { min-width: 0; }
.enterprise-main h3 { margin: 0 0 7px; overflow: hidden; color: var(--ink); font-size: 15px; text-overflow: ellipsis; white-space: nowrap; }
.enterprise-main p { margin: 0; overflow: hidden; color: var(--muted); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.enterprise-location { display: grid; gap: 5px; font-size: 13px; }
.enterprise-location small { color: var(--muted); }
.record-status { color: #5f6975; font-size: 12px; }
.record-status::before { content: ""; width: 6px; height: 6px; display: inline-block; margin-right: 6px; border-radius: 50%; background: #8c96a2; vertical-align: 1px; }
.record-status.self { color: var(--green); }
.record-status.self::before { background: var(--green); }
.row-action { display: inline-flex; align-items: center; justify-content: flex-end; gap: 2px; color: var(--blue); font-size: 12px; }

.city-tabs { display: flex; gap: 7px; overflow-x: auto; padding-bottom: 12px; }
.city-tabs button { flex: 0 0 auto; min-height: 35px; padding: 0 13px; border: 1px solid var(--line-strong); border-radius: 4px; background: #fff; }
.city-tabs button.active { border-color: var(--ink); background: var(--ink); color: #fff; }
.region-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.region-tile { min-height: 112px; padding: 16px; border: 0; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; text-align: left; }
.region-tile:hover { background: var(--accent-soft); }
.region-tile strong { display: block; color: var(--ink); }
.region-tile span { display: block; margin-top: 8px; color: var(--muted); font-size: 12px; line-height: 1.5; }

.hall-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 18px; align-items: start; }
.demand-list { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.demand-card { border-bottom: 1px solid var(--line); background: #fff; }
.demand-card:last-child { border-bottom: 0; }
.demand-card:hover { background: #fafbfc; }
.demand-card-inner { display: grid; grid-template-columns: 116px minmax(0, 1fr); gap: 16px; padding: 16px; cursor: pointer; }
.demand-media { width: 116px; height: 90px; border-radius: 4px; object-fit: cover; background: #eef1f4; }
.demand-media.placeholder { display: grid; place-items: center; color: #a3acb8; }
.demand-media.placeholder svg { width: 28px; }
.demand-card h3 { margin: 7px 0; color: var(--ink); font-size: 16px; }
.demand-meta { display: flex; flex-wrap: wrap; gap: 8px 15px; color: var(--muted); font-size: 11px; }
.demand-meta span { display: inline-flex; align-items: center; gap: 4px; }
.demand-card p { margin: 9px 0 0; color: #56606d; font-size: 12px; line-height: 1.55; }
.demand-foot { display: flex; align-items: center; gap: 16px; padding: 9px 16px; border-top: 1px solid #edf0f2; color: var(--muted); font-size: 11px; }
.demand-foot span { display: inline-flex; align-items: center; gap: 4px; }
.demand-foot .status { margin-left: auto; color: var(--blue); }
.side-note { position: sticky; top: 86px; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.side-note h3 { margin-bottom: 12px; color: var(--ink); font-size: 16px; }
.side-note p, .side-note li { color: var(--muted); font-size: 12px; line-height: 1.7; }
.side-note ul { margin-bottom: 0; padding-left: 18px; }

.form-layout { display: grid; grid-template-columns: minmax(0, 820px) minmax(260px, 1fr); gap: 24px; align-items: start; }
.form-panel { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.form-section { padding: 24px 26px; border-bottom: 1px solid var(--line); }
.form-section:last-child { border-bottom: 0; }
.form-section > h3 { margin: 0 0 17px; color: var(--ink); font-size: 16px; }
.form-section-head { display: grid; grid-template-columns: 35px minmax(0, 1fr); gap: 12px; margin-bottom: 20px; }
.form-section-head > span { width: 35px; height: 25px; display: grid; place-items: center; border: 1px solid var(--line-strong); border-radius: 3px; color: var(--accent); font-size: 11px; font-weight: 800; }
.form-section-head h3 { margin: 1px 0 4px; color: var(--ink); font-size: 16px; }
.form-section-head p { margin: 0; color: var(--muted); font-size: 12px; }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.form-stack { display: grid; gap: 15px; }
.form-stack label, .form-grid label { display: grid; gap: 7px; color: #414b58; font-size: 13px; font-weight: 650; }
.form-stack input, .form-grid input, .form-stack textarea, .form-grid textarea, .form-stack select, .form-grid select { width: 100%; min-height: 44px; padding: 10px 11px; }
.form-stack textarea, .form-grid textarea { min-height: 116px; resize: vertical; }
.full { grid-column: 1 / -1; }
.field-note { margin: 8px 0 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.privacy-note { display: flex; align-items: center; gap: 7px; margin: 12px 0 0; color: var(--green); font-size: 12px; }
.choice-row { display: flex; flex-wrap: wrap; gap: 9px; }
.choice-row label, .check-row { min-height: 39px; display: flex !important; align-items: center; gap: 8px; padding: 0 11px; border: 1px solid var(--line); border-radius: 4px; background: #fff; font-size: 13px; }
.choice-row input, .check-row input { width: auto; min-height: auto; }
.check-row a { color: var(--accent); }
.upload-zone { min-height: 146px; border: 1px dashed #aeb7c2; border-radius: 4px; background: #fafbfc; }
.upload-zone > input { display: none; }
.upload-trigger { min-height: 144px; display: grid; place-content: center; justify-items: center; gap: 7px; padding: 20px; cursor: pointer; color: var(--text); text-align: center; }
.upload-trigger svg { width: 26px; height: 26px; color: var(--accent); }
.upload-trigger strong { color: var(--ink); font-size: 14px; }
.upload-trigger small { color: var(--muted); font-size: 11px; font-weight: 400; }
.media-preview { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; padding: 0 14px 14px; }
.media-thumb { position: relative; aspect-ratio: 1; overflow: hidden; border-radius: 4px; background: #1b2431; }
.media-thumb img, .media-thumb video { width: 100%; height: 100%; object-fit: cover; }
.media-thumb button { position: absolute; right: 4px; top: 4px; width: 27px; height: 27px; border: 0; border-radius: 50%; background: #b92d2d; color: #fff; }
#uploadProgress { margin-top: 14px; }
.upload-progress-copy { display: flex; justify-content: space-between; margin-bottom: 7px; color: var(--muted); font-size: 11px; }
.progress-track { height: 6px; overflow: hidden; border-radius: 3px; background: #e7eaee; }
.progress-track i { width: 0; height: 100%; display: block; background: var(--accent); transition: width .2s; }
.submit-section { display: flex; align-items: center; justify-content: space-between; gap: 20px; background: #fafbfc; }
.submit-section > div > strong { color: var(--ink); font-size: 13px; }
.submit-section p { margin: 4px 0 0; color: var(--muted); font-size: 11px; }
.publish-guide ol { margin: 0; padding: 0; list-style: none; }
.publish-guide li { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 10px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.publish-guide li > span { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; background: #eef1f4; color: var(--ink); font-size: 10px; font-weight: 700; }
.publish-guide li strong { color: var(--ink); font-size: 12px; }
.publish-guide li p { margin: 4px 0 0; }
.publish-guide > a { display: flex; align-items: center; gap: 5px; margin-top: 17px; color: var(--blue); font-size: 12px; }

.account-summary { display: grid; grid-template-columns: 1fr auto; gap: 20px; padding: 21px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.identity { display: flex; align-items: center; gap: 13px; }
.identity .avatar { width: 48px; height: 48px; font-size: 18px; }
.identity h2 { margin: 0 0 4px; color: var(--ink); }
.identity p { margin: 0; color: var(--muted); font-size: 12px; }
.account-tabs { display: flex; gap: 3px; margin: 18px 0 12px; overflow-x: auto; border-bottom: 1px solid var(--line); }
.account-tabs button { flex: 0 0 auto; min-height: 42px; padding: 0 13px; border: 0; border-bottom: 2px solid transparent; background: transparent; color: var(--muted); font-size: 13px; font-weight: 650; }
.account-tabs button.active { border-bottom-color: var(--accent); color: var(--ink); }
.metric-strip { display: grid; grid-template-columns: repeat(4, 1fr); margin: 18px 0; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.metric { padding: 18px 20px; border-right: 1px solid var(--line); }
.metric:last-child { border-right: 0; }
.metric strong { display: block; color: var(--ink); font-size: 24px; }
.metric span { color: var(--muted); font-size: 11px; }
.empty-state { padding: 50px 22px; color: var(--muted); text-align: center; }
.empty-state svg { width: 36px; height: 36px; margin-bottom: 9px; color: #a6afbb; }

.modal { width: min(560px, calc(100vw - 28px)); max-height: min(90vh, 820px); padding: 0; border: 0; border-radius: 6px; box-shadow: 0 24px 70px rgba(17,24,39,.25); }
.modal::backdrop, .media-modal::backdrop { background: rgba(9,14,22,.58); backdrop-filter: blur(3px); }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 20px 22px 12px; }
.modal-head h2 { margin: 3px 0 0; }
.modal-head small { color: var(--accent); font-weight: 800; }
.icon-button { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 4px; }
.icon-button:hover { background: #eef1f4; }
.icon-button svg { width: 20px; }
.segmented { display: grid; grid-template-columns: 1fr 1fr; margin: 5px 22px 18px; padding: 3px; border-radius: 4px; background: #edf0f3; }
.segmented button { height: 36px; border: 0; border-radius: 3px; background: transparent; }
.segmented button.active { background: #fff; box-shadow: 0 1px 3px rgba(17,24,39,.12); font-weight: 700; }
.auth-modal .form-stack { padding: 0 22px 24px; }
.form-message { min-height: 18px; margin: 0; color: #bd3030; font-size: 12px; }
.detail-modal { width: min(880px, calc(100vw - 28px)); }
.detail-scroll { max-height: 86vh; overflow-y: auto; }
.detail-hero { padding: 24px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #f7f8fa; }
.detail-hero h2 { margin: 5px 0 10px; color: var(--ink); }
.detail-hero p { color: var(--muted); }
.detail-body { padding: 22px; }
.detail-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; border: 1px solid var(--line); background: var(--line); }
.detail-field { padding: 13px 14px; background: #fff; }
.detail-field small { display: block; margin-bottom: 5px; color: var(--muted); }
.detail-field strong { color: var(--ink); }
.media-gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 16px 0; }
.media-gallery button { padding: 0; overflow: hidden; aspect-ratio: 4 / 3; border: 0; border-radius: 4px; background: #111827; }
.media-gallery img { width: 100%; height: 100%; object-fit: cover; }
.quote-item { padding: 14px 0; border-bottom: 1px solid var(--line); }
.quote-item:last-child { border: 0; }
.quote-head { display: flex; justify-content: space-between; gap: 12px; }
.quote-head strong:last-child { color: var(--accent); }
.media-modal { width: 100vw; height: 100vh; max-width: none; max-height: none; padding: 0; border: 0; background: #05070a; }
.media-close { position: fixed; z-index: 2; right: 18px; top: 18px; width: 42px; height: 42px; border: 0; border-radius: 50%; background: rgba(255,255,255,.15); color: #fff; }
.media-modal #mediaContent { width: 100%; height: 100%; display: grid; place-items: center; }
.media-modal img, .media-modal video { max-width: 100%; max-height: 100%; object-fit: contain; }
.toast { position: fixed; z-index: 100; left: 50%; bottom: 30px; max-width: calc(100vw - 30px); padding: 11px 16px; transform: translate(-50%, 30px); border-radius: 4px; background: var(--ink); box-shadow: 0 10px 30px rgba(0,0,0,.18); color: #fff; opacity: 0; pointer-events: none; transition: .2s; }
.toast.show { transform: translate(-50%, 0); opacity: 1; }
.loading-page { min-height: 55vh; display: grid; place-content: center; justify-items: center; color: var(--muted); }
.spinner { width: 28px; height: 28px; border: 3px solid #dfe4e9; border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.legal { max-width: 860px; margin: 0 auto; }
.legal-hero { overflow: hidden; margin-bottom: 20px; border-radius: var(--radius); }
.legal-hero img { width: 100%; display: block; aspect-ratio: 8 / 3; object-fit: cover; }
.legal article { padding: 32px 38px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.legal article h2 { margin-top: 30px; font-size: 18px; }
.legal article p, .legal article li { color: #4d5969; line-height: 1.85; }
.legal article li + li { margin-top: 7px; }

@media (max-width: 1100px) {
  .site-header-inner { gap: 14px; }
  .main-nav a { padding-inline: 8px; }
  .main-nav a::after { right: 8px; left: 8px; }
  .account-button span:last-child { display: none; }
  .home-intro { grid-template-columns: minmax(0, 1fr) 330px; }
  .home-intro-copy { padding-inline: 38px; }
  .entity-grid { grid-template-columns: repeat(2, 1fr); }
  .region-grid { grid-template-columns: repeat(3, 1fr); }
  .hall-layout, .form-layout { grid-template-columns: 1fr; }
  .side-note { position: static; }
}

@media (max-width: 900px) {
  .site-header-inner { width: calc(100% - 24px); height: 58px; }
  .main-nav, .header-publish { display: none; }
  .header-actions { margin-left: auto; }
  .mobile-menu-button { display: grid; }
  .page-frame { min-height: calc(100vh - 58px); }
  .topbar { height: 48px; padding: 0 12px; }
  .top-search { width: 100%; }
  .top-search > span, .topbar-links { display: none; }
  .mobile-drawer { position: fixed; z-index: 60; inset: 0 auto 0 0; width: min(310px, 86vw); display: flex; flex-direction: column; padding: 18px 14px; transform: translateX(-102%); background: #fff; box-shadow: 14px 0 40px rgba(17,24,39,.18); transition: transform .22s; }
  .mobile-drawer.open { transform: translateX(0); }
  .drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 0 7px 13px; border-bottom: 1px solid var(--line); color: var(--ink); }
  .drawer-nav { display: grid; gap: 2px; padding-top: 10px; }
  .drawer-nav a { position: relative; min-height: 46px; display: flex; align-items: center; gap: 11px; padding: 0 11px; border-radius: 4px; color: #4f5865; font-size: 14px; }
  .drawer-nav a.active { background: var(--accent-soft); color: var(--accent); font-weight: 700; }
  .drawer-nav svg { width: 18px; }
  .drawer-nav em { display: none; margin-left: auto; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--accent); color: #fff; font-size: 10px; line-height: 18px; text-align: center; font-style: normal; }
  .drawer-foot { margin-top: auto; display: flex; flex-wrap: wrap; gap: 10px 15px; padding: 16px 8px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }
  .drawer-mask { position: fixed; z-index: 55; inset: 0; display: none; background: rgba(17,24,39,.45); }
  .drawer-mask.show { display: block; }
  .mobile-nav { position: fixed; z-index: 45; right: 8px; bottom: max(8px, env(safe-area-inset-bottom)); left: 8px; height: 62px; display: grid; grid-template-columns: repeat(5, 1fr); border: 1px solid var(--line); border-radius: 6px; background: rgba(255,255,255,.97); box-shadow: 0 7px 28px rgba(17,24,39,.14); backdrop-filter: blur(12px); }
  .mobile-nav a { display: grid; place-content: center; justify-items: center; gap: 3px; color: #626b77; font-size: 10px; }
  .mobile-nav a.active { color: var(--accent); }
  .mobile-nav svg { width: 20px; height: 20px; }
  main { width: calc(100% - 28px); padding: 22px 0 92px; }
  .page-heading { align-items: start; flex-direction: column; gap: 13px; }
  .home-intro { grid-template-columns: 1fr; }
  .home-figures { min-height: 190px; border-top: 1px solid var(--line); border-left: 0; }
  .dashboard-grid { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .brand small { display: none; }
  .header-actions { gap: 5px; }
  .notice-button { border: 0; }
  .account-button { padding: 3px; }
  main { width: calc(100% - 24px); }
  .page-heading h1 { font-size: 25px; }
  .home-intro-copy { padding: 30px 20px 26px; }
  .home-intro h1 { font-size: 32px; }
  .home-intro-copy > p { font-size: 14px; }
  .home-search { height: auto; display: grid; grid-template-columns: 20px minmax(0, 1fr); padding: 10px 10px 10px 13px; }
  .home-search input { height: 38px; }
  .home-search .primary-button { grid-column: 1 / -1; width: 100%; min-height: 42px; border-radius: 3px; }
  .home-links { gap: 12px; overflow-x: auto; white-space: nowrap; }
  .service-strip { grid-template-columns: 1fr; }
  .service-strip a { min-height: 68px; border-right: 0; border-bottom: 1px solid var(--line); }
  .service-strip a:last-child { border-bottom: 0; }
  .cluster-list { grid-template-columns: 1fr; }
  .cluster-row, .cluster-row:nth-child(even), .cluster-row:nth-last-child(-n+2) { border-right: 0; border-bottom: 1px solid var(--line); }
  .cluster-row:last-child { border-bottom: 0; }
  .toolbar { align-items: stretch; flex-direction: column; }
  .toolbar select { width: 100%; }
  .entity-grid { grid-template-columns: 1fr; }
  .enterprise-table-head { display: none; }
  .enterprise-row { grid-template-columns: minmax(0, 1fr) auto; gap: 11px; padding: 15px; }
  .enterprise-location { display: flex; gap: 6px; grid-column: 1; grid-row: 2; color: var(--muted); font-size: 11px; }
  .record-status { grid-column: 1; grid-row: 3; }
  .row-action { grid-column: 2; grid-row: 1 / 4; }
  .region-grid { grid-template-columns: repeat(2, 1fr); }
  .demand-card-inner { grid-template-columns: 88px minmax(0, 1fr); gap: 12px; padding: 13px; }
  .demand-media { width: 88px; height: 82px; }
  .demand-card:has(.demand-media.placeholder) .demand-card-inner { grid-template-columns: 1fr; }
  .demand-card:has(.demand-media.placeholder) .demand-media.placeholder { display: none; }
  .demand-card p { display: none; }
  .demand-foot { flex-wrap: wrap; gap: 8px 12px; }
  .demand-foot .status { width: 100%; margin-left: 0; justify-content: flex-end; }
  .form-section { padding: 21px 17px; }
  .form-grid { grid-template-columns: 1fr; }
  .full { grid-column: auto; }
  .submit-section { align-items: stretch; flex-direction: column; }
  .submit-section .primary-button { width: 100%; }
  .media-preview { grid-template-columns: repeat(3, 1fr); }
  .account-summary { grid-template-columns: 1fr; }
  .metric-strip { grid-template-columns: repeat(2, 1fr); }
  .metric:nth-child(2) { border-right: 0; }
  .metric:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .detail-grid { grid-template-columns: 1fr; }
  .media-gallery { grid-template-columns: repeat(2, 1fr); }
  .legal article { padding: 24px 20px; }
}

@media (max-width: 390px) {
  .brand strong { font-size: 16px; }
  .brand-mark { width: 31px; height: 31px; flex-basis: 31px; }
  .region-tile { min-height: 98px; padding: 12px; }
  .modal { width: calc(100vw - 18px); }
  .detail-body { padding: 15px; }
}
