:root {
  color-scheme: light;
  font-family: "Inter", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --ink: #172739;
  --muted: #465a70;
  --faint: #54677d;
  --primary: #225cc7;
  --primary-dark: #16479f;
  --accent-soft: #edf4ff;
  --accent-border: #c0d4f7;
  --line: #dce5ef;
  --control: #bacadd;
  --paper: #fff;
  --bg: #f5f8fb;
  --subtle: #f8fafc;
  --shadow: 0 6px 22px #182d4d0d;
  font-size: 16px;
}
* { box-sizing: border-box; }
body { background: var(--bg); color: var(--ink); margin: 0; min-width: 300px; }
button, input, select, textarea { font: inherit; color: inherit; }
button, select { cursor: pointer; }
button { border: 0; }
a { color: var(--primary); }
[hidden] { display: none !important; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid #3a72da; outline-offset: 3px;
}
button, a { -webkit-tap-highlight-color: transparent; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.33; }
p { line-height: 1.65; }
svg { width: 20px; height: 20px; flex: 0 0 auto; vertical-align: middle; }
:where(html:not([data-surface="admin"])) svg { width: 18px; height: 18px; }
.shell { width: min(100% - 64px, 1224px); margin-inline: auto; }
main { min-height: calc(100vh - 152px); }
html:not([data-surface="admin"]) {
  --header-height: 64px;
  --primary: #5a47c7;
  --primary-dark: #4936a9;
  --accent-soft: #f0ecff;
  --accent-border: #d7cef7;
  --bg: #f5f5fb;
  --line: #e6e5f0;
}
html:not([data-surface="admin"]) body { display: flex; flex-direction: column; min-height: 100dvh; }
html:not([data-surface="admin"]) main { flex: 1; min-height: 0; }
html:not([data-surface="admin"]) .site-header .shell { max-width: 1120px; min-height: var(--header-height); }
html[data-view="hall"] { scrollbar-width: none; }
html[data-view="hall"]::-webkit-scrollbar { display: none; }
.skip-link { position: fixed; top: -100px; z-index: 12; background: white; padding: 12px; }
.skip-link:focus { top: 12px; left: 12px; }
.site-header { position: sticky; top: 0; z-index: 8; background: #fff; border-bottom: 1px solid var(--line); }
.header-inner { min-height: 70px; display: flex; align-items: center; gap: 45px; }
.brand { background: none; display: inline-flex; align-items: center; gap: 10px; padding: 4px 0; text-align: left; flex-shrink: 0; }
.brand-mark { display: grid; place-items: center; background: var(--primary); color: #fff; width: 37px; height: 37px; border-radius: 10px; }
.brand-mark svg { width: 23px; height: 23px; }
:where(html:not([data-surface="admin"])) .brand-mark svg { width: 20px; height: 20px; }
.brand-name { display: block; font-size: 20px; font-weight: 790; line-height: 1.12; letter-spacing: .05em; }
.brand-sub { display: block; font-size: 12px; color: var(--muted); line-height: 1.4; margin-top: 3px; }
.nav { display: flex; align-self: stretch; flex: 1; gap: 27px; }
.nav button { background: none; border-bottom: 2px solid transparent; padding: 0 3px; color: var(--muted); font-size: 14px; font-weight: 650; white-space: nowrap; }
.nav button:hover, .nav button[aria-current=page] { color: var(--primary); border-color: var(--primary); }
.nav svg { display: none; }
.nav-label-mobile { display: none; }
html:not([data-surface="admin"]) .brand-mark { background: linear-gradient(145deg, #2b53c7, #5b61df); box-shadow: 0 4px 11px #3253ca2e; }
.nav .nav-publish { color: var(--primary-dark); }
.nav .nav-publish svg { display: inline-block; width: 13px; height: 13px; margin-right: 4px; }
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px;
  padding: 10px 16px; border: 1px solid transparent; border-radius: 9px; line-height: 1.3;
  font-size: 14px; font-weight: 680; text-decoration: none; white-space: nowrap;
  transition: background-color .16s, border-color .16s, color .16s;
}
.button svg { width: 17px; height: 17px; }
:where(html:not([data-surface="admin"])) .button svg { width: 15px; height: 15px; }
.primary { background: var(--primary); color: #fff; }
.primary:hover { background: var(--primary-dark); }
.secondary { background: #fff; border-color: var(--line); color: var(--ink); }
.secondary:hover { background: var(--accent-soft); border-color: var(--accent-border); }
.ghost { background: transparent; color: var(--primary); }
.ghost:hover { background: var(--accent-soft); }
.button:disabled { cursor: default; opacity: .52; }
.avatar { display: grid; place-items: center; width: 36px; height: 36px; flex: 0 0 auto; border-radius: 10px; color: var(--primary-dark); background: var(--accent-soft); font-size: 14px; font-weight: 740; }
.avatar.user { border-radius: 50%; width: 38px; height: 38px; }
.icon-button { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 10px; color: var(--muted); background: #fff; padding: 0; }
.icon-button:hover { background: var(--accent-soft); color: var(--primary); }
.icon-button[aria-pressed=true] { color: var(--primary); background: var(--accent-soft); }
.icon-button[aria-pressed=true] svg { fill: #bcd5ff; }
.hall-mobile-header { display: none; }
.hall-header-account { margin-left: auto; min-width: 0; }
.hall-overview, .hall-search-dock, .hall-list { max-width: 880px; }
.hall-overview { display: grid; gap: 12px; padding-top: 16px; }
.hall-feature { position: relative; min-width: 0; }
.hall-feature-slide {
  display: block; position: relative; width: 100%; height: clamp(150px, 42vw, 260px);
  padding: 0; border-radius: 13px; overflow: hidden; text-align: left; color: #fff;
  background: #494faa url("/assets/matching-cover.webp") center 50% / cover no-repeat;
}
.hall-feature-image { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; }
.hall-feature-caption {
  position: absolute; inset: auto 0 0; display: grid; gap: 3px;
  padding: 15px 16px 25px; background: linear-gradient(transparent, #0a223bbb 41%, #0a223bf0);
}
.hall-feature-kicker { font-size: 11px; font-weight: 700; color: #f3edff; }
.hall-feature-title {
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2;
  overflow: hidden; font-size: clamp(16px, 4.3vw, 23px); font-weight: 720;
  line-height: 1.35; overflow-wrap: anywhere;
}
.hall-feature-pages {
  position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
  display: flex; align-items: center; gap: 3px; max-width: calc(100% - 24px);
  overflow-x: auto; scrollbar-width: none;
}
.hall-feature-pages button { flex: 0 0 28px; height: 26px; padding: 0 5px; background: transparent; }
.hall-feature-pages button::after {
  content: ""; display: block; width: 18px; height: 3px; border-radius: 5px; background: #ffffff70;
}
.hall-feature-pages button[aria-pressed="true"]::after,
.hall-feature-pages button[aria-current="true"]::after { background: #fff; }
.hall-deadline { min-width: 0; }
.hall-deadline > button {
  display: flex; align-items: center; gap: 8px; width: 100%; min-width: 0; min-height: 43px;
  padding: 7px 10px; background: var(--paper); border: 1px solid var(--line);
  border-radius: 10px; text-align: left; color: var(--muted); font-size: 13px;
}
.hall-deadline > button:hover { border-color: var(--accent-border); }
.hall-deadline-label {
  flex-shrink: 0; padding: 4px 6px; border-radius: 5px;
  background: #fff1e6; color: #a7431d; font-size: 11px; font-weight: 720;
}
.hall-deadline-title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hall-deadline time { flex-shrink: 0; font-size: 11px; white-space: nowrap; }
.hall-deadline svg { width: 14px; height: 14px; color: var(--faint); }
.hall-actions {
  display: grid; grid-template-columns: minmax(0,1fr) auto minmax(0,1fr); align-items: center;
  gap: 6px; min-height: 86px; padding: 8px 6px; background: #fff;
  border: 1px solid var(--line); border-radius: 13px;
}
.hall-action-stat, .hall-action-workspace {
  display: grid; justify-items: center; align-content: center; gap: 5px;
  min-width: 0; min-height: 61px; border-radius: 9px; padding: 5px;
  background: transparent; color: var(--ink); font-size: 14px; font-weight: 715; line-height: 1.2;
}
.hall-action-stat:hover, .hall-action-workspace:hover { background: var(--accent-soft); }
.hall-actions :is(.hall-action-stat,.hall-action-workspace) > span { color: var(--muted); font-size: 12px; font-weight: 500; }
.hall-action-stat strong { color: var(--primary-dark); font-size: 24px; font-variant-numeric: tabular-nums; line-height: 1; }
.hall-publish {
  display: grid; justify-items: center; align-content: center; gap: 3px; width: 64px; aspect-ratio: 1;
  padding: 0; border-radius: 50%; background: linear-gradient(140deg,#705be5,#5140bd);
  color: #fff; box-shadow: 0 6px 15px #5745c54d; font-size: 16px; font-weight: 760;
}
.hall-publish:hover { background: var(--primary-dark); }
.hall-publish svg { width: 15px; height: 15px; }
.hall-industries {
  display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 8px;
}
.hall-industry {
  min-width: 0; min-height: 66px;
  display: grid; justify-items: center; align-content: center; gap: 5px; padding: 5px 3px;
  border: 1px solid var(--line); border-radius: 11px; background: #fff;
  color: var(--ink); text-align: center; font-size: 11.5px; font-weight: 630; white-space: nowrap;
}
.hall-industry > span:last-child { max-width: 100%; overflow-wrap: anywhere; white-space: normal; }
.hall-industry svg {
  width: 25px; height: 25px; padding: 3px; border-radius: 7px;
  color: var(--primary-dark); background: #f1eeff;
}
.hall-industry:nth-child(2n) svg { color: #117568; background: #e6f7f4; }
.hall-industry:nth-child(3n) svg { color: #99491f; background: #fff1e3; }
.hall-industry:hover, .hall-industry[aria-pressed="true"] { border-color: var(--accent-border); background: var(--accent-soft); }
.hall-search-dock {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-top: 7px; padding-block: 7px 3px;
}
.hall-desktop-title { font-size: 21px; font-weight: 770; }
.hall-search-dock .search-box { width: min(100%, 380px); }
.search-box {
  display: flex; align-items: center; gap: 9px; min-height: 49px;
  background: #fff; color: var(--ink); border: 1px solid #fff; border-radius: 11px;
  padding: 2px 2px 2px 13px; width: 100%;
}
.search-box > svg { width: 16px; height: 16px; color: var(--faint); }
.search-box input { min-width: 0; flex: 1; border: 0; padding: 8px 0; background: transparent; }
.search-box input::placeholder { color: var(--faint); }
.search-box .button { min-height: 43px; padding: 6px 18px; border-radius: 8px; }
.hall-list { padding-bottom: 34px; scroll-margin-top: calc(var(--header-height) + 8px + env(safe-area-inset-top)); }
.hall-tabs {
  position: sticky; top: calc(var(--header-height) + 1px + env(safe-area-inset-top)); z-index: 4;
  display: flex; align-items: center; justify-content: space-between; gap: 9px;
  min-height: 55px; padding-block: 5px; margin-bottom: 8px; background: var(--bg);
}
.hall-tabs .tabs { flex-wrap: wrap; overflow: visible; padding: 0; border: 0; gap: 4px; }
.hall-tabs .tab { min-height: 44px; padding: 7px 13px; border: 1px solid transparent; border-radius: 10px; font-size: 14px; }
.hall-tabs .tab[aria-pressed=true] { background: var(--accent-soft); border-color: var(--accent-border); color: var(--primary-dark); }
.hall-sort { order: -1; display: flex; flex-shrink: 0; gap: 2px; padding: 2px; border-radius: 999px; background: #fff; }
.hall-sort button { padding: 4px 10px; min-width: 44px; min-height: 40px; border-radius: 999px; background: transparent; color: var(--muted); font-size: 13px; font-weight: 600; white-space: nowrap; }
.hall-sort button:hover { color: var(--primary-dark); }
.hall-sort button[aria-pressed=true] { background: var(--primary); color: #fff; }
.listing-card, .workspace-panel, .empty { background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.tabs { display: flex; gap: 28px; padding: 0 20px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.tab { background: transparent; padding: 14px 0 12px; min-height: 48px; color: var(--muted); font-size: 15px; font-weight: 680; border-bottom: 2px solid transparent; white-space: nowrap; }
.tab[aria-pressed=true] { color: var(--primary); border-bottom-color: var(--primary); }
.tab:hover { color: var(--primary); }
.tab-count { margin-left: 4px; font-size: 12px; color: inherit; background: var(--bg); border-radius: 12px; padding: 2px 6px; }
.tab[aria-pressed=true] .tab-count { background: var(--accent-soft); }
.results-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 9px 2px; color: var(--muted); font-size: 13px; }
.results-bar > span { min-width: 0; overflow-wrap: anywhere; }
.cards { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.cards > .empty { grid-column: 1 / -1; }
.listing-card {
  position: relative; min-width: 0; padding: 14px 16px 12px; display: grid;
  grid-template-columns: minmax(0, 1fr); gap: 7px; border-radius: 14px;
  box-shadow: 0 2px 8px #24346007;
  transition: border-color .16s, box-shadow .16s;
}
.listing-card:hover, .listing-card:focus-within { border-color: var(--accent-border); box-shadow: var(--shadow); }
.listing-kicker .pill { width: 100%; justify-content: center; padding: 3px 2px; }
.listing-meta .listing-topic { min-width: 0; overflow-wrap: anywhere; border-radius: 999px; padding: 3px 8px; background: #fcf1e1; color: #8d471c; }
.listing-header { display: grid; grid-template-columns: 36px minmax(0,1fr); align-items: baseline; gap: 8px; }
.listing-header h2 { min-width: 0; }
.listing-context { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 8px; margin-top: 1px; }
.pill { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; padding: 4px 8px; border-radius: 6px; font-size: 12px; font-weight: 670; line-height: 1.28; background: #edf2f7; color: var(--muted); }
.pill.open, .pill.approved, .pill.settled, .pill.supply, .pill.verified { background: #e5f4e9; color: #00674e; }
.pill.task, .pill.accepted, .pill.delivered { background: var(--accent-soft); color: var(--primary-dark); }
.pill.opportunity { background: #f1edfc; color: #5a4091; }
.pill.pending, .pill.invited, .pill.revision, .pill.scheduled { background: #fff3da; color: #80540f; }
.pill.rejected, .pill.closed { background: #faeeea; color: #983c29; }
.pill svg { width: 13px; height: 13px; }
.listing-title { display: block; background: transparent; text-align: left; padding: 0; font-size: 18px; font-weight: 780; line-height: 1.42; color: var(--ink); overflow-wrap: anywhere; }
.listing-title::after { content: ""; position: absolute; inset: 0; border-radius: 14px; }
.listing-title > span { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.listing-title:hover { color: var(--primary); }
.listing-price { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: baseline; gap: 3px; max-width: min(44vw, 210px); text-align: right; color: var(--primary-dark); font-size: 17px; font-variant-numeric: tabular-nums; letter-spacing: -.04em; line-height: 1.25; }
.listing-price strong { min-width: 0; overflow-wrap: anywhere; }
.listing-price--opportunity { font-size: 15px; letter-spacing: -.015em; }
.listing-price small { color: var(--muted); font-size: 11px; letter-spacing: 0; white-space: nowrap; }
.listing-meta { min-width: 0; display: flex; align-items: center; gap: 7px; flex-wrap: wrap; color: var(--muted); font-size: 12px; }
.listing-meta > span { display: inline-flex; align-items: center; gap: 4px; }
.listing-meta > span:not(.listing-topic, .listing-region) { white-space: nowrap; }
.listing-meta svg { width: 12px; height: 12px; }
.listing-meta .listing-region { min-width: 0; overflow-wrap: anywhere; padding: 2px 6px; border-radius: 5px; background: #f0f3f8; }
.org-info { display: flex; align-items: center; min-width: 0; gap: 6px; font-size: 13px; color: var(--muted); }
.org-info .avatar { width: 23px; height: 23px; border-radius: 50%; font-size: 11px; }
.org-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.org-info .verified { flex-shrink: 0; }
.site-footer { border-top: 1px solid var(--line); background: #fff; color: var(--muted); font-size: 13px; }
.footer-inner { display: flex; justify-content: space-between; gap: 16px; align-items: center; min-height: 67px; }
.empty { padding: 40px 22px; text-align: center; }
.empty > svg { color: var(--primary); width: 31px; height: 31px; margin-bottom: 12px; }
.empty h3 { font-size: 17px; margin-bottom: 5px; }
.empty p { color: var(--muted); font-size: 14px; margin-bottom: 15px; }
.hall-list .empty { padding: 28px 16px 24px; }
.hall-list .empty > svg { width: 42px; height: 42px; padding: 11px; margin-bottom: 11px; border-radius: 13px; background: var(--accent-soft); }
.hall-list .empty h3 { font-size: 17px; }
.hall-list .empty p { margin: 5px 0 0; }
.hall-list .empty .button { margin-top: 9px; }
.hall-list .empty [data-action="publish-new"] { background: var(--primary); border-color: transparent; color: #fff; }
.hall-list .empty [data-action="publish-new"]:hover { background: var(--primary-dark); }
.workspace { padding-block: 32px 48px; }
.workspace-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.workspace-heading h1 { font-size: 29px; }
.workspace-panel { margin-bottom: 12px; }
.workspace-panel .tabs { margin-bottom: 0; }
.workspace-content { margin-top: 12px; }
.work-list { display: grid; gap: 9px; }
.work-row { display: flex; align-items: center; gap: 12px; justify-content: space-between; padding: 15px 18px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.work-row h3 { font-size: 16px; overflow-wrap: anywhere; }
.work-row p { font-size: 13px; margin-top: 4px; color: var(--muted); overflow-wrap: anywhere; }
.work-row > div:last-child { display: flex; align-items: center; gap: 8px; }
.overlay { border: 1px solid var(--line); border-radius: 17px; background: #fff; color: var(--ink); padding: 0; box-shadow: 0 24px 90px #1c335032; width: min(680px,100% - 28px); max-height: min(850px,100dvh - 52px); }
.overlay::backdrop { background: #172a4366; }
.dialog-content { display: flex; flex-direction: column; max-height: min(848px,100dvh - 54px); }
.dialog-head { padding: 21px 24px 15px; border-bottom: 1px solid var(--line); display: flex; align-items: start; justify-content: space-between; gap: 10px; }
.dialog-head h2 { font-size: 23px; margin: 5px 0 0; overflow-wrap: anywhere; }
.dialog-body { padding: 18px 24px; overflow-y: auto; display: grid; gap: 16px; }
.dialog-body p { white-space: pre-wrap; overflow-wrap: anywhere; color: var(--muted); font-size: 14px; }
.dialog-body h3 { font-size: 15px; margin-bottom: 4px; }
.dialog-foot { padding: 12px 24px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.summary-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; background: var(--subtle); padding: 12px; border-radius: 10px; }
.summary-grid strong { display: block; font-size: 15px; line-height: 1.4; margin-top: 2px; overflow-wrap: anywhere; }
.summary-grid small { font-size: 12px; color: var(--muted); }
.dialog-form { display: grid; gap: 12px; }
.dialog-form label { display: grid; gap: 5px; color: var(--ink); font-weight: 650; font-size: 14px; }
.dialog-form input, .dialog-form textarea { width: 100%; border: 1px solid var(--control); border-radius: 8px; padding: 10px 12px; min-height: 44px; background: #fff; font-size: 16px; font-weight: 400; }
.dialog-form textarea { min-height: 88px; resize: vertical; }
.dialog-note { background: var(--subtle); padding: 11px 13px; border-radius: 8px; }
.toast { position: fixed; z-index: 12; bottom: 20px; left: 50%; transform: translateX(-50%); background: #213b60; color: white; padding: 12px 17px; border-radius: 10px; box-shadow: var(--shadow); max-width: calc(100% - 28px); font-size: 14px; }
@media (max-width: 1050px) {
  .shell { width: calc(100% - 44px); }
  .header-inner { gap: 28px; }
  .nav { gap: 17px; }
}
@media (max-width: 820px) {
  .header-inner { gap: 14px; }
  .nav { gap: 12px; }
}
@media (max-width: 700px) {
  :root {
    --mobile-gutter-start: max(14px, env(safe-area-inset-left, 0px));
    --mobile-gutter-end: max(14px, env(safe-area-inset-right, 0px));
    --mobile-nav-height: 60px;
    --mobile-search-height: 62px;
    --mobile-bottom-inset: env(safe-area-inset-bottom, 0px);
  }
  html:not([data-surface="admin"]) { --header-height: 54px; }
  html[data-view="hall"] { scroll-padding-bottom: calc(var(--mobile-nav-height) + var(--mobile-search-height) + var(--mobile-bottom-inset)); }
  html:not([data-surface="admin"]) .site-header { padding-top: env(safe-area-inset-top); }
  .shell { width: calc(100% - var(--mobile-gutter-start) - var(--mobile-gutter-end)); margin-inline: var(--mobile-gutter-start) var(--mobile-gutter-end); }
  .header-inner { min-height: 54px; display: flex; flex-direction: column; align-items: stretch; gap: 0; padding-top: 6px; }
  .brand { padding: 2px 0; align-self: flex-start; }
  .brand-mark { width: 32px; height: 32px; border-radius: 9px; }
  .brand-name { font-size: 18px; }
  .brand-sub { font-size: 11px; }
  .header-inner--hall { flex-direction: row; align-items: center; justify-content: space-between; padding-top: 0; }
  .header-inner--hall .brand { display: none; }
  .hall-mobile-header { display: flex; align-items: center; }
  .hall-header-title { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); font-size: 19px; font-weight: 770; white-space: nowrap; }
  .hall-header-tools { display: flex; margin-left: -6px; }
  .hall-header-tools button {
    display: grid; place-items: center; width: 44px; min-height: 44px; padding: 0;
    background: transparent; color: var(--ink); border: 0; border-radius: 8px;
  }
  .hall-header-tools button:hover { background: var(--accent-soft); color: var(--primary-dark); }
  .hall-header-tools svg { width: 17px; height: 17px; }
  .header-inner--hall .hall-header-account .header-account { position: static; }
  .header-inner--hall .header-account .button { min-height: 44px; padding-inline: 8px; font-size: 12px; }
  .header-inner--hall .header-account > span { display: none; }
  .hall-overview { padding-top: 10px; gap: 10px; }
  .hall-feature-slide { height: auto; aspect-ratio: 2.35; border-radius: 11px; }
  .hall-feature-caption { padding-inline: 12px; padding-bottom: 23px; }
  .hall-feature-title { font-size: 15px; }
  .hall-deadline > button { min-height: 44px; font-size: 12px; }
  .hall-actions { min-height: 80px; }
  .hall-publish { width: 60px; font-size: 15px; }
  .hall-action-stat strong { font-size: 22px; }
  .hall-action-workspace { font-size: 13px; }
  .hall-industries { gap: 6px; }
  .hall-industry { min-height: 64px; padding-inline: 2px; font-size: 11px; }
  .hall-search-dock {
    position: fixed; z-index: 7;
    inset: auto 0 max(calc(var(--mobile-nav-height) + var(--mobile-bottom-inset)), var(--hall-keyboard-offset, 0px));
    width: auto; max-width: none; min-height: var(--mobile-search-height); margin: 0;
    padding: 5px var(--mobile-gutter-end) 5px var(--mobile-gutter-start);
    background: var(--bg); border-top: 1px solid var(--line);
  }
  .hall-search-dock .search-box {
    width: 100%; gap: 6px; padding-left: 12px; border-radius: 26px;
    border-color: var(--line);
  }
  .hall-search-dock .search-box:focus-within { border-color: var(--accent-border); }
  .hall-search-dock .search-box .button { min-height: 44px; padding-inline: 12px; font-size: 13px; border-radius: 22px; }
  .hall-desktop-title { display: none; }
  .search-box input { font-size: 16px; padding-block: 6px; }
  .hall-list { padding-bottom: calc(var(--mobile-search-height) + 12px); }
  .tabs { gap: 17px; padding-inline: 12px; }
  .tab { font-size: 14px; }
  .hall-tabs { gap: 5px; min-height: 52px; margin-bottom: 6px; }
  .hall-tabs .tabs { gap: 2px; }
  .hall-tabs .tab { font-size: 12px; padding-inline: 7px; }
  .hall-sort { gap: 1px; }
  .hall-sort button { padding-inline: 5px; font-size: 12px; }
  .listing-card { padding: 11px 12px 10px; gap: 6px; }
  .listing-header { grid-template-columns: 34px minmax(0,1fr); gap: 7px; }
  .listing-title { font-size: 15px; }
  .listing-price { font-size: 17px; max-width: min(43vw, 166px); }
  .listing-price--opportunity { font-size: 12px; }
  .org-info { font-size: 12px; }
  .listing-meta { gap: 6px; }
  .hall-list .empty { padding-block: 23px 20px; }
  .work-row { flex-wrap: wrap; padding: 12px; }
  .dialog-head, .dialog-body, .dialog-foot { padding-inline: 14px; }
  .summary-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .footer-inner { align-items: start; flex-direction: column; padding-block: 12px; gap: 6px; }
}
@media (max-width: 360px) {
  .hall-tabs .tab { padding-inline: 4px; }
  .hall-industries { gap: 4px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; } }
.owner-review { border-top: 1px solid var(--line); padding-top: 12px; }
.owner-application { background: var(--subtle); border: 1px solid var(--line); border-radius: 10px; margin-top: 8px; padding: 11px; display: grid; gap: 7px; }
.owner-application strong { font-size: 15px; }
.owner-controls { display: flex; flex-wrap: wrap; gap: 8px; }
.header-account {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  color: var(--muted);
  font-size: 14px;
}
.header-account span { max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.header-account button { white-space: nowrap; }
.header-auth { gap: 4px; }
.header-auth .button { padding-inline: 12px; }
.header-auth .secondary { color: var(--primary-dark); }
.header-auth .ghost { color: var(--muted); }
.login-wrap { width: min(100% - 28px, 360px); margin: 0 auto; padding: 28px 0 44px; }
.login-panel { padding: 18px 20px 14px; border: 1px solid var(--line); border-radius: 12px; background: white; box-shadow: var(--shadow); }
.login-panel h1 { font-size: 23px; margin-bottom: 12px; }
.login-panel form { display: grid; gap: 5px; }
.login-panel label { font-size: 14px; font-weight: 650; }
.login-panel input { min-height: 44px; min-width: 0; width: 100%; padding: 8px 10px; border: 1px solid var(--control); border-radius: 8px; }
.login-panel :is(input, small) + label { margin-top: 5px; }
.login-panel form button[type=submit] { margin-top: 7px; }
.register-password { display: flex; gap: 5px; }
.register-password input { flex: 1; }
.register-password button { flex: 0 0 auto; min-height: 44px; padding-inline: 9px; border-radius: 8px; background: var(--accent-soft); color: var(--primary-dark); font-size: 13px; }
.register-password button:hover { background: var(--accent-border); }
.login-panel small { color: var(--muted); font-size: 13px; }
.login-switch { display: flex; align-items: center; gap: 2px; margin-top: 4px; color: var(--muted); font-size: 14px; }
.login-switch .button { padding-inline: 7px; }
.login-error { color: #8e3026; background: #fff0ec; border-radius: 8px; padding: 8px 10px; margin-bottom: 10px; font-size: 14px; overflow-wrap: anywhere; }
.login-panel input[aria-invalid="true"] { border-color: #ab5140; }
@media (max-width: 820px) {
  .header-account span { max-width: 92px; }
}
@media (max-width: 700px) {
  .header-inner { position: relative; }
  .header-account { position: absolute; top: 3px; right: 0; }
  .header-account span { max-width: 78px; }
  .header-account .button { padding-inline: 9px; }
  .login-wrap { padding-block: 17px 34px; }
  .login-panel { padding-inline: 16px; }
}

.search-clear { display: grid; place-items: center; flex: 0 0 auto; min-width: 29px; min-height: 36px; padding: 0; border-radius: 7px; color: var(--muted); background: transparent; }
.search-clear:hover { color: var(--primary); background: var(--accent-soft); }
.search-clear svg { width: 14px; height: 14px; }
.dialog-head, .dialog-foot { flex-shrink: 0; }
.dialog-head .icon-button { flex: 0 0 44px; }
.dialog-body { min-height: 0; overscroll-behavior-y: contain; }
.dialog-actions { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: flex-end; margin-left: auto; }
.field-hint { font-size: 13px; color: var(--muted); }
.application-error { margin: 0; }
.application-questions { border-radius: 8px; background: var(--subtle); padding: 9px 11px; font-size: 14px; }
.application-questions p { margin-top: 3px; }
.pill.full, .pill.submitted { background: #fff3da; color: #80540f; }
.pill.declined { background: #faeeea; color: #983c29; }
.pill.withdrawn { background: #edf2f7; color: var(--muted); }
.ad-dialog .ad-error { margin: 0 20px 12px; }
@media (max-width: 700px) {
  html:not([data-surface="admin"]) body { padding-bottom: calc(var(--mobile-nav-height) + var(--mobile-bottom-inset)); }
  html:not([data-surface="admin"]) .site-footer { display: none; }
  .nav {
    position: fixed; inset: auto 0 0; z-index: 8;
    display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 0;
    border-top: 1px solid var(--line); background: var(--paper);
    padding: 0 var(--mobile-gutter-end) var(--mobile-bottom-inset) var(--mobile-gutter-start);
  }
  .nav button {
    min-height: calc(var(--mobile-nav-height) - 1px); padding: 4px 0; border: 0;
    display: grid; justify-items: center; align-content: center; gap: 2px;
    color: var(--muted); font-size: 12px; font-weight: 600; line-height: 1.2;
    touch-action: manipulation;
  }
  .nav button:focus-visible { outline-offset: -3px; }
  .nav .nav-publish { color: var(--muted); }
  .nav-label-desktop { display: none; }
  .nav-label-mobile { display: block; }
  .nav svg, .nav .nav-publish svg { display: block; width: 30px; height: 24px; margin: 0; padding: 4px 7px; border-radius: 999px; }
  .nav button[aria-current="page"] { color: var(--primary-dark); font-weight: 740; }
  .nav button[aria-current="page"] svg { background: var(--accent-soft); }
  .overlay { inset: auto 0 0; width: 100%; max-width: none; margin: 0; max-height: calc(100dvh - 18px); border-radius: 16px 16px 0 0; }
  .dialog-head h2 { font-size: 19px; }
  .dialog-content { max-height: calc(100dvh - 20px); }
  .dialog-foot { padding-bottom: calc(8px + env(safe-area-inset-bottom)); background: var(--paper); }
  .toast { bottom: calc(var(--mobile-nav-height) + 6px + var(--mobile-bottom-inset)); }
}
