:root {
  color-scheme: light;
  --ink: #172542;
  --muted: #53647f;
  --faint: #657693;
  --line: #e3eaf4;
  --paper: #fff;
  --ground: #f5f8fd;
  --blue: #2f59e6;
  --blue-dark: #2243c1;
  --blue-tint: #eaf0ff;
  --action-gradient: linear-gradient(118deg, #2344c8, #315bdd 52%, #1766c2);
  --surface-gradient: linear-gradient(145deg, #ffffff 38%, #eef4ff);
  --focus-ring: #3b60df;
  --radius: 15px;
  font-family: "Aptos", "Inter", system-ui, -apple-system, sans-serif;
  font-size: 16px;
  font-synthesis: none;
  color: var(--ink);
  background: var(--ground);
  -webkit-font-smoothing: antialiased;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-width: 320px; }
button, input, select, textarea { font: inherit; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .65; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 3px; }
svg { flex: 0 0 auto; display: block; }
img { display: block; }
[hidden] { display: none !important; }
h1, h2, h3, p { margin: 0; }
p { line-height: 1.55; }
button { color: inherit; }
.skip-link { position: fixed; top: 12px; left: 12px; padding: 12px 18px; background: white; z-index: 20; transform: translateY(-150%); }
.skip-link:focus { transform: none; }
.layout { display: grid; grid-template-columns: 238px minmax(0, 1fr); min-height: 100vh; }
.sidebar { position: sticky; top: 0; height: 100vh; padding: 26px 17px 18px; background: var(--paper); border-right: 1px solid var(--line); display: flex; flex-direction: column; z-index: 4; overflow-y: auto; }
.wordmark { display: flex; align-items: center; gap: 10px; margin: 0 0 38px 7px; width: fit-content; }
.wordmark > span { font-weight: 780; font-size: 1.31rem; letter-spacing: -.065em; }
.wordmark > span span { color: var(--blue); }
.nav-group + .nav-group { margin-top: 29px; }
.nav-label { padding: 0 12px; margin-bottom: 9px; color: var(--faint); font-size: .73rem; font-weight: 750; text-transform: uppercase; letter-spacing: .11em; }
.nav-link { display: flex; gap: 11px; align-items: center; border-radius: 8px; padding: 10px 11px; min-height: 43px; color: var(--muted); font-size: .88rem; font-weight: 560; margin: 3px 0; }
.nav-link:hover { background: #f3f6fc; color: var(--blue-dark); }
.nav-link.active { color: #284bcc; background: #eaf0ff; font-weight: 720; }
.nav-link.active::after { content: ""; width: 6px; height: 6px; margin-left: auto; border-radius: 50%; background: #4b70f0; }
.sidebar-bottom { margin-top: auto; padding-top: 18px; }
.account-card { width: 100%; border: 1px solid var(--line); background: #f8faff; border-radius: 10px; padding: 10px; display: flex; align-items: center; gap: 9px; text-align: left; }
.account-card:hover { border-color: #abbcfb; }
.account-card > span:nth-child(2) { flex: 1; min-width: 0; }
.account-card strong, .account-card small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-card strong { font-size: .83rem; }
.account-card small { margin-top: 2px; color: var(--muted); font-size: .75rem; }
.avatar { width: 34px; height: 34px; display: inline-grid; place-items: center; border-radius: 9px; flex: 0 0 auto; background: var(--blue-tint); color: #3156cc; font-weight: 800; font-size: .77rem; }
.workspace { min-width: 0; display: flex; flex-direction: column; }
.topbar { height: 72px; background: var(--paper); border-bottom: 1px solid var(--line); padding: 0 clamp(20px, 3vw, 44px); display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.breadcrumbs, #breadcrumb, .topbar-actions { display: flex; align-items: center; gap: 13px; }
#breadcrumb { color: var(--muted); gap: 9px; font-size: .87rem; white-space: nowrap; }
#breadcrumb strong { color: var(--ink); font-weight: 680; }
.topbar-actions { gap: 14px; }
.global-search { position: relative; display: flex; align-items: center; color: var(--faint); }
.global-search > svg { position: absolute; left: 12px; pointer-events: none; }
.global-search input { background: #f7f9fd; border: 1px solid var(--line); border-radius: 9px; width: clamp(180px, 21vw, 305px); height: 39px; padding: 0 39px 0 36px; color: var(--ink); font-size: .86rem; }
.global-search kbd { position: absolute; right: 9px; font: 600 .72rem system-ui; border: 1px solid #e1e8f2; padding: 2px 6px; border-radius: 5px; background: #fff; pointer-events: none; }
.mobile-toggle { display: none !important; }
#main { width: 100%; max-width: 1600px; margin-inline: auto; padding: 31px clamp(20px, 3vw, 44px) 31px; flex: 1; }
.footer { display: flex; justify-content: space-between; gap: 10px; color: var(--faint); font-size: .78rem; padding: 16px clamp(20px, 3vw, 44px); border-top: 1px solid var(--line); }
.footer span:first-child { font-weight: 750; color: var(--muted); }
.icon-button, .button { display: inline-flex; justify-content: center; align-items: center; gap: 8px; border: 1px solid transparent; border-radius: 9px; white-space: nowrap; font-weight: 700; }
.icon-button { padding: 8px; background: transparent; color: var(--muted); }
.icon-button:hover { background: var(--blue-tint); color: var(--blue-dark); }
.icon-button.selected { color: var(--blue); background: var(--blue-tint); }
.icon-button.selected svg { fill: #c3d0ff; }
.button { min-height: 41px; padding: 9px 14px; font-size: .86rem; background: var(--action-gradient); color: #fff; box-shadow: 0 3px 8px #2443b421; }
.button:hover { background: linear-gradient(118deg, #1935a9, #234fc8 60%, #1457a8); }
.button.secondary { color: var(--ink); background: var(--surface-gradient); border-color: #dce5f4; box-shadow: none; }
.button.secondary:hover { color: var(--blue-dark); border-color: #adbef5; background: #f8faff; }
.button.soft { background: linear-gradient(120deg, #e5eaff, #e6f3ff); color: var(--blue-dark); box-shadow: none; }
.button.soft:hover { background: #dce6ff; }
.button.text { min-height: 0; padding: 4px 0; color: var(--blue-dark); background: transparent; box-shadow: none; }
.button.text:hover, .text-link:hover { text-decoration: underline; }
.button.small { min-height: 36px; padding: 7px 12px; }
.text-link { color: var(--blue-dark); font-weight: 720; font-size: .86rem; }
.hero { position: relative; overflow: hidden; isolation: isolate; min-height: 292px; display: flex; align-items: center; padding: 29px 33px; border-radius: 17px; background: linear-gradient(90deg, #0c254cf5 0%, #112f5ce6 32%, #1638637a 57%, transparent 83%), #153864 url("/civic-waterfront.webp") center 57% / cover no-repeat; color: #fff; box-shadow: 0 10px 23px -17px #2244b6; }
.hero-content { position: relative; z-index: 2; max-width: 610px; }
.hero-kicker { display: flex; align-items: center; gap: 8px; width: fit-content; border: 1px solid #b7ccff63; border-radius: 999px; background: #b8ccff18; color: #f0f5ff; font-size: .76rem; font-weight: 650; padding: 5px 10px; margin-bottom: 13px; }
.hero h1 { font-size: clamp(2.15rem, 3.2vw, 3.28rem); letter-spacing: -.053em; line-height: 1.03; font-weight: 765; }
.hero p { max-width: 455px; color: #e5eeff; margin-top: 11px; font-size: .94rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 19px; }
.hero .button { background: #fff; color: #2446ba; border-color: #fff; }
.hero .button:hover { background: #e8f0ff; }
.hero .button.hero-secondary { background: #b4c7ff1f; color: #fff; border-color: #beceff82; }
.hero .hero-secondary:hover { background: #b4c7ff40; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; margin: 19px 0 26px; }
.stat { display: flex; align-items: center; gap: 11px; background: var(--surface-gradient); border: 1px solid var(--line); border-radius: 12px; min-height: 83px; padding: 13px 14px; }
.stat:hover { border-color: #93aaf0; box-shadow: 0 4px 13px #2443b415; }
.stat .tile { width: 39px; height: 39px; }
.stat strong, .stat span:not(.tile) { display: block; }
.stat strong { font-size: 1.48rem; line-height: 1.15; letter-spacing: -.045em; }
.stat span:not(.tile) { color: var(--muted); font-size: .79rem; margin-top: 3px; font-weight: 560; }
.tile { width: 43px; height: 43px; display: inline-grid; place-items: center; border-radius: 10px; flex: 0 0 auto; color: #3156d7; background: #eaf0ff; }
.tile.purple { color: #653cc4; background: #f0eafe; }
.tile.teal { color: #087968; background: #e5f7f2; }
.tile.sky { color: #1672ac; background: #e6f4fe; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 2.06fr) minmax(265px, 1fr); gap: 22px; align-items: start; }
.section-heading { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 13px; }
.section-heading h2 { font-size: 1.27rem; font-weight: 765; letter-spacing: -.035em; }
.section-heading p { color: var(--muted); font-size: .85rem; margin-top: 3px; }
.stack { display: grid; gap: 11px; }
.card { background: white; border: 1px solid var(--line); border-radius: var(--radius); }
.tender-card { padding: 14px 16px 12px; position: relative; transition: border-color .15s, box-shadow .15s; }
.tender-card:hover { border-color: #a9bdf2; box-shadow: 0 4px 15px #17387a0c; }
.tender-card-head { display: flex; align-items: flex-start; gap: 11px; }
.tender-card-main { flex: 1; min-width: 0; }
.tender-card h3 { font-size: .98rem; font-weight: 755; letter-spacing: -.026em; margin-top: 1px; line-height: 1.32; }
.tender-card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.tender-card h3 a:focus-visible { outline-offset: 2px; }
.tender-card .icon-button { position: relative; z-index: 1; margin: -1px -4px 0 0; }
.tender-card .agency { margin-top: 3px; font-size: .83rem; color: var(--muted); }
.tender-card-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 9px 14px; margin-top: 11px; color: var(--muted); font-size: .79rem; }
.meta-item { display: inline-flex; align-items: center; gap: 6px; }
.amount { color: #2b3b5b; font-weight: 740; }
.chip { display: inline-flex; align-items: center; gap: 5px; padding: 4px 8px; border-radius: 6px; color: #405374; background: #edf2fa; font-size: .75rem; font-weight: 700; line-height: 1.2; white-space: nowrap; }
.chip.green { color: #087558; background: #e3f7ed; }
.chip.blue { color: #3054cc; background: #e8efff; }
.chip.purple { color: #6544ba; background: #eee8ff; }
.chip.orange { color: #87530b; background: #fff2dd; }
.chip.red { color: #a33848; background: #fce9ed; }
.chip.dot::before { content: ""; border-radius: 50%; width: 6px; height: 6px; background: currentColor; }
.dot-divider { width: 3px; height: 3px; border-radius: 50%; background: #a1aec1; }
.group-panel { padding: 15px 16px 14px; }
.group-entry + .group-entry { border-top: 1px solid var(--line); margin-top: 13px; padding-top: 13px; }
.group-entry-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.group-entry h3 { font-size: .86rem; line-height: 1.35; letter-spacing: -.01em; }
.group-entry h3 a:hover { color: var(--blue-dark); }
.group-entry p { font-size: .76rem; color: var(--muted); margin-top: 3px; }
.progress { display: block; width: 100%; height: 6px; margin-top: 9px; overflow: hidden; appearance: none; border: 0; border-radius: 8px; background: #e9eef8; }
.progress::-webkit-progress-bar { background: #e9eef8; border-radius: 8px; }
.progress::-webkit-progress-value { background: #5174ed; border-radius: 8px; }
.progress::-moz-progress-bar { background: #5174ed; border-radius: 8px; }
.group-entry small { display: block; margin-top: 5px; color: var(--faint); font-size: .74rem; }
.group-panel .button { margin-top: 14px; width: 100%; }
.pool-callout { margin-top: 12px; padding: 14px; display: flex; align-items: center; gap: 11px; border: 1px solid #dfe8ff; border-radius: 13px; background: linear-gradient(120deg, #edf2ff, #f4f7ff); }
.pool-callout strong { display: block; font-size: .84rem; }
.pool-callout p { color: #435a89; font-size: .76rem; margin-top: 3px; }
.pool-callout .tile { width: 34px; height: 34px; }
.pool-callout:hover { border-color: #a8bcff; }
.page-head { margin-bottom: 23px; display: flex; justify-content: space-between; align-items: end; gap: 15px; }
.page-head h1 { font-size: clamp(1.9rem, 3.1vw, 2.7rem); letter-spacing: -.058em; line-height: 1.12; }
.page-head p { color: var(--muted); margin-top: 7px; max-width: 690px; }
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 17px; }
.filters label { display: flex; align-items: center; gap: 7px; }
.filters .search-filter { min-width: min(100%, 270px); flex: 1; }
.field-control, .filters input, .filters select { width: 100%; border: 1px solid #d5dfef; border-radius: 8px; background: white; color: var(--ink); padding: 10px 11px; min-height: 43px; }
select.field-control, .filters select { appearance: none; padding-right: 35px; background-image: linear-gradient(45deg, transparent 50%, #53647f 50%), linear-gradient(135deg, #53647f 50%, transparent 50%); background-position: calc(100% - 17px) 50%, calc(100% - 12px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
.result-count { color: var(--muted); font-size: .87rem; margin-bottom: 11px; }
.card-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%, 262px),1fr)); gap: 13px; }
.browse-card { display: flex; flex-direction: column; gap: 11px; padding: 17px; overflow-wrap: anywhere; }
.browse-card h3 { font-size: 1.03rem; letter-spacing: -.024em; }
.browse-card h3 a:hover { color: var(--blue-dark); text-decoration: underline; }
.browse-card p { color: var(--muted); font-size: .9rem; }
.browse-card .section-heading { margin: 0; }
.browse-card .button { align-self: flex-start; margin-top: auto; }
.browse-footer { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: auto; }
.browse-footer .button { margin-left: auto; }
.back-link { display: inline-block; margin-bottom: 15px; }
.detail-hero { padding: clamp(19px, 3vw, 32px); margin-bottom: 17px; background: linear-gradient(122deg, #fff, #edf3ff); }
.detail-hero h1 { font-size: clamp(1.65rem, 3.3vw, 2.65rem); line-height: 1.1; letter-spacing: -.052em; margin: 10px 0; overflow-wrap: anywhere; }
.detail-hero p { color: var(--muted); max-width: 745px; overflow-wrap: anywhere; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; margin-top: 15px; }
.content-card { padding: 18px 20px; overflow-wrap: anywhere; }
.content-card h2 { font-size: 1.12rem; letter-spacing: -.025em; margin-bottom: 11px; }
.content-card h3 { font-size: .95rem; margin: 14px 0 6px; }
.content-card p { color: var(--muted); }
.content-card ul { margin: 0; padding-left: 22px; color: var(--muted); line-height: 1.55; }
.content-card ul + p { margin-top: 9px; }
.content-card .document-list { display: grid; gap: 7px; padding: 0; list-style: none; }
.document-list a { display: flex; align-items: center; gap: 9px; border: 1px solid var(--line); border-radius: 9px; padding: 10px 11px; color: var(--blue-dark); }
.document-list a:hover { border-color: #adbef5; background: #f8faff; }
.document-list a > span:first-of-type { flex: 1; font-size: .9rem; font-weight: 700; }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(260px, 1fr); align-items: start; gap: 15px; }
.facts { margin: 0; display: grid; gap: 0; }
.facts > div { display: flex; justify-content: space-between; align-items: start; gap: 13px; padding: 9px 0; font-size: .88rem; }
.facts > div + div { border-top: 1px solid var(--line); }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; text-align: right; font-weight: 670; }
.notice { color: var(--muted); font-size: .86rem; margin-top: 11px; }
.purchase-offer { margin-top: 12px; padding: 13px; background: #f4f7ff; border: 1px solid #e0e8fa; border-radius: 10px; }
.purchase-offer > p { margin-top: 7px; font-size: .9rem; }
.purchase-offer .facts { margin-top: 7px; }
.purchase-offer .notice { margin-top: 3px; }
.window-order-note { margin-top: 4px; }
.thread-card .discount-applied, .browse-card .discount-applied { color: #087558; font-weight: 650; }
#purchase-settings-fields > label { margin-top: 10px; }
.metric-list { display: grid; gap: 10px; }
.metric { display: grid; grid-template-columns: minmax(0,1fr) 45px; gap: 3px 8px; align-items: center; font-size: .88rem; }
.metric strong { justify-self: end; }
.metric .progress { grid-column: 1 / -1; margin-top: 0; }
.empty { text-align: center; padding: 31px min(7vw, 40px); border-style: dashed; }
.empty .tile { margin-bottom: 9px; }
.empty h2 { font-size: 1.12rem; }
.empty p { color: var(--muted); margin: 5px auto 0; max-width: 430px; }
.empty .actions { justify-content: center; }
.thread-card { display: flex; align-items: center; gap: 13px; padding: 14px; }
.thread-card:hover { border-color: #b2c3f9; }
.thread-card strong { display: block; margin-bottom: 3px; }
.thread-card p { font-size: .85rem; color: var(--muted); overflow-wrap: anywhere; }
.thread-card .chip { margin-left: auto; }
.bubble { background: #f4f7fc; border: 1px solid var(--line); border-radius: 10px; padding: 12px; }
.bubble.mine { background: #eaf0ff; }
.bubble small { font-size: .79rem; color: var(--muted); }
.bubble p { white-space: pre-wrap; margin-top: 5px; overflow-wrap: anywhere; color: var(--ink); }
.form-grid { display: grid; gap: 12px; }
.form-grid label { display: grid; gap: 5px; font-size: .88rem; font-weight: 670; }
.field-control { font-weight: 450; }
textarea.field-control { resize: vertical; min-height: 92px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.form-grid label.check { display: flex; align-items: center; gap: 8px; }
.form-error { color: #a12740; font-weight: 650; font-size: .86rem; }
dialog { width: min(540px, calc(100% - 28px)); max-height: 90dvh; border: 1px solid var(--line); border-radius: 17px; padding: 0; color: var(--ink); box-shadow: 0 22px 80px #122c6845; }
dialog::backdrop { background: #11234e66; backdrop-filter: blur(3px); }
.modal-wrap { padding: 22px; }
.modal-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 9px; margin-bottom: 13px; }
.modal-heading h2 { font-size: 1.31rem; letter-spacing: -.035em; }
.modal-heading .icon-button { margin: -6px -7px 0 0; }
.modal-copy { color: var(--muted); margin-bottom: 14px; font-size: .91rem; }
.modal-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 11px; }
.toast { position: fixed; bottom: 18px; right: 18px; max-width: min(405px, calc(100vw - 36px)); padding: 11px 16px; z-index: 10; color: #fff; background: #20396f; border-radius: 9px; font-size: .89rem; box-shadow: 0 6px 24px #091b483c; }
.loading { color: var(--muted); padding: 20px 0; }
.nav-scrim { display: none; }
@media (max-width: 1120px) {
  .layout { grid-template-columns: 207px minmax(0, 1fr); }
  .sidebar { padding-inline: 13px; }
  .dashboard-grid { gap: 15px; }
}
@media (max-width: 930px) {
  .dashboard-grid { grid-template-columns: 1fr; }
  .dashboard-aside { display: grid; grid-template-columns: 1fr; }
  .stat { padding-inline: 9px; gap: 7px; }
  .stat .tile { width: 34px; height: 34px; }
}
@media (max-width: 760px) {
  .layout { display: block; }
  .sidebar { position: fixed; inset: 0 auto 0 0; width: 236px; height: 100dvh; visibility: hidden; transform: translateX(-105%); transition: transform .2s; }
  .sidebar.open { visibility: visible; transform: none; }
  .nav-scrim:not([hidden]) { display: block; position: fixed; inset: 0; width: 100%; z-index: 3; border: 0; background: #13224469; }
  .mobile-toggle { display: inline-flex !important; }
  .topbar { height: 62px; padding-inline: 14px; }
  .global-search input { width: clamp(140px, 25vw, 230px); }
  #main { padding-top: 20px; }
  .detail-grid { grid-template-columns: 1fr; }
}
@media (max-width: 490px) {
  #breadcrumb > span, #breadcrumb > svg { display: none; }
  .breadcrumbs, .topbar-actions { gap: 5px; }
  .global-search input { width: 122px; padding-right: 8px; }
  .global-search kbd { display: none; }
  .topbar .button { padding-inline: 9px; }
  .hero { padding: 23px 16px; }
  .hero p { max-width: 275px; }
  .stats { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px; }
  .stat { min-height: 68px; }
  .tender-card { padding-inline: 11px; }
  .page-head { align-items: flex-start; flex-direction: column; }
  .form-row { grid-template-columns: 1fr; }
  .footer { font-size: .72rem; }
}
@media (max-width: 365px) {
  #breadcrumb { display: none; }
  .global-search input { width: 141px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; }
}

.workspace { background: radial-gradient(ellipse at 100% 0%, #e0eaff, transparent 50%), linear-gradient(145deg, #eef3ff, #fafcff 60%, #ecf5ff); }
.nav-link.active { background: linear-gradient(100deg, #e0e9ff, #f0f5ff); box-shadow: inset 3px 0 #466be6; }
.tender-card { padding: 17px 18px 13px; background: var(--surface-gradient); box-shadow: 0 3px 12px #17387a08; }
.tender-card h3 { font-size: 1.04rem; }
.tender-card-bottom { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 11px; margin-top: 13px; border-top: 1px solid var(--line); }
.tender-card-bottom .tender-card-meta { margin: 0; }
.requirements-button { position: relative; z-index: 1; }
dialog:has(.requirements-layout) { width: min(900px, calc(100% - 28px)); }
.requirements-layout { display: grid; grid-template-columns: minmax(0,.9fr) minmax(0,1.1fr); gap: 22px; align-items: start; }
.requirements-list { border: 1px solid #dae4fa; border-radius: 12px; background: linear-gradient(145deg, #eff4ff, #fafcff); padding: 15px; }
.requirements-layout h3 { margin: 0; font-size: 1rem; }
.requirements-context, .requirements-description { color: var(--muted); font-size: .85rem; margin: 5px 0 12px; }
.requirements-description { margin: 12px 0 0; }
.requirements-list details { border-top: 1px solid #d9e3f6; }
.requirements-list summary { cursor: pointer; padding: 9px 0; font-weight: 650; font-size: .88rem; }
.requirements-list summary span { color: var(--muted); font-size: .76rem; margin-left: 4px; }
.requirements-list ul { margin: 0 0 12px; padding-left: 20px; font-size: .88rem; line-height: 1.55; }
.requirements-response label, .requirements-response input { min-width: 0; }
@media (max-width: 690px) {
  .requirements-layout { grid-template-columns: 1fr; }
  .requirements-response .form-row { grid-template-columns: 1fr; }
}
.filters { align-items: center; padding: 12px; border: 1px solid var(--line); border-radius: 13px; background: #ffffffed; box-shadow: 0 3px 12px #17387a06; }
.detail-hero { border-top: 3px solid #6386f0; background: linear-gradient(118deg, #fff 32%, #e8edff 70%, #deefff); }
.detail-grid .content-card h2 { padding-bottom: 10px; border-bottom: 1px solid var(--line); }
@media (max-width: 490px) {
  .filters .search-filter { flex-basis: 100%; min-width: 0; }
  .filters label { min-width: 0; max-width: 100%; }
  .filters select { max-width: 100%; }
  .tender-card { padding: 13px; }
  .tender-card-bottom .requirements-button { margin-left: auto; }
}

.filters .select-filter { display: grid; gap: 4px; }
.filters .select-filter > span { font-size: .8rem; font-weight: 650; color: var(--muted); }
.filters:has(.select-filter) { align-items: end; }
.response-switch { display: none; }
@media (max-width: 690px) {
  dialog:has(.requirements-layout) { width: calc(100% - 16px); max-height: 94dvh; }
  dialog:has(.requirements-layout) .modal-wrap { padding: 16px; }
  .response-switch { display: flex; position: sticky; top: 0; z-index: 1; gap: 4px; margin: 0 0 12px; padding: 4px; border-radius: 11px; background: #eaf0ff; }
  .response-switch button { flex: 1; min-height: 42px; border: 0; border-radius: 8px; background: transparent; color: #3c527e; font-weight: 650; }
  .response-switch button[aria-pressed="true"] { background: white; color: var(--blue-dark); box-shadow: 0 1px 5px #17387a22; }
  .requirements-layout[data-pane="notice"] .requirements-response, .requirements-layout[data-pane="response"] .requirements-list { display: none; }
  .filters .select-filter { flex: 1 1 110px; }
  .requirements-list summary, .requirements-button { min-height: 44px; }
}

.directory-header { display: grid; grid-template-columns: 1.25fr 1fr; align-items: stretch; overflow: hidden; margin-bottom: 20px; border: 1px solid #cfddf2; border-radius: 16px; background: linear-gradient(115deg, #fff, #e0edfc); }
.directory-header > div { padding: clamp(20px, 3vw, 40px); align-self: center; }
.directory-header h1 { font-size: clamp(2rem, 3.3vw, 3rem); line-height: 1.05; letter-spacing: -.055em; }
.directory-header p { max-width: 370px; margin-top: 10px; color: var(--muted); }
.directory-header img { width: 100%; height: 100%; max-height: 225px; min-height: 160px; object-fit: cover; object-position: 62% 46%; }
@media (max-width: 690px) {
  .hero { background-image: linear-gradient(90deg, #0a2450f2, #102e57cf 55%, #122c4d66), url("/civic-waterfront.webp"); background-position: 65% center; }
  .directory-header { grid-template-columns: 1fr; }
  .directory-header img { grid-row: 1; min-height: 0; height: clamp(105px, 25vw, 160px); object-position: 55% 38%; }
}

.group-panel, .browse-card { background: var(--surface-gradient); }
.response-switch button[aria-pressed="true"] { background: linear-gradient(120deg, #fff, #eaf2ff); }
.form-grid .form-error { overflow-wrap: anywhere; }
@media (forced-colors: active) {
  .button, .response-switch button { border-color: ButtonText; }
}
