:root {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #263c34; background: #f5f6f2; font-size: 14px;
  --ink: #263c34; --muted: #7b8981; --line: #e1e6dd; --green: #376550; --paper: #fff;
}
* { box-sizing: border-box; }
body { margin: 0; }
[hidden] { display: none !important; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button, a { touch-action: manipulation; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
button:disabled { opacity: .5; cursor: wait; }
:focus-visible { outline: 3px solid #a4c4b1; outline-offset: 3px; }
input, select, textarea { width: 100%; padding: 11px 12px; border: 1px solid #dce2d9; border-radius: 8px; background: #fff; color: var(--ink); min-width: 0; }
textarea { min-height: 90px; resize: vertical; }
label { display: grid; gap: 8px; font-size: 13px; font-weight: 600; min-width: 0; }
input::placeholder, textarea::placeholder { color: #a3ada6; font-weight: 400; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(25px, 2.6vw, 36px); font-weight: 650; letter-spacing: -.055em; margin-bottom: 9px; }
h2 { font-size: 18px; font-weight: 650; letter-spacing: -.025em; margin-bottom: 8px; }
h3 { font-size: 15px; font-weight: 650; margin-bottom: 9px; }
p { line-height: 1.75; }
.muted, .hint { color: var(--muted); }
.hint { font-size: 12px; line-height: 1.8; margin: 10px 0; }
.eyebrow { display: block; font: 10px ui-monospace, SFMono-Regular, monospace; letter-spacing: .17em; color: #7e9083; margin-bottom: 14px; }
.button { display: inline-flex; gap: 8px; align-items: center; justify-content: center; padding: 11px 17px; border: 1px solid transparent; border-radius: 8px; font-weight: 600; font-size: 12px; white-space: nowrap; }
.primary { background: var(--ink); color: #fff; }
.primary:hover { background: #3e5b4c; }
.secondary { border-color: #dce2d9; background: #fff; color: #506457; }
.secondary:hover { background: #f5f7f3; }
.small { padding: 7px 10px; font-size: 11px; }
.full { width: 100%; }
.text-button { border: 0; background: none; color: #547e62; font-size: 12px; padding: 7px; }
.icon-button { border: 0; background: none; color: #6b7e70; font-size: 22px; padding: 4px 8px; }
.login-page { min-height: 100vh; padding: 50px 7vw; display: grid; grid-template-columns: 1fr 400px; gap: 70px; align-content: center; background: radial-gradient(ellipse at 15% 85%, #dce6d2, transparent 55%), #f4f6f0; }
.login-brand { grid-column: 1 / -1; display: flex; align-items: center; gap: 12px; font-size: 12px; letter-spacing: .09em; }
.brand-symbol { background: #294739; color: #fff; width: 39px; height: 39px; border-radius: 11px; display: grid; place-items: center; font-size: 20px; }
.login-intro { align-self: center; }
.login-intro h1 { font-size: clamp(35px, 4.5vw, 66px); line-height: 1.3; margin-bottom: 24px; }
.login-intro p { color: #7c8a79; }
.login-card { background: #ffffffd9; padding: 34px; border: 1px solid #fff; border-radius: 18px; box-shadow: 0 20px 70px #283e3510; display: grid; gap: 17px; }
.login-card h2 { margin-bottom: 0; }
.login-card > p { font-size: 12px; color: var(--muted); margin: 0; }
.workspace { display: flex; min-height: 100vh; }
.sidebar { position: sticky; top: 0; width: 235px; flex: 0 0 235px; height: 100vh; padding: 28px 17px 16px; background: #fafbf7; border-right: 1px solid var(--line); display: flex; flex-direction: column; overflow-y: auto; }
.brand { display: flex; gap: 11px; align-items: center; padding: 0 9px 26px; }
.brand strong { display: block; font-size: 22px; font-weight: 650; }
.brand small { font: 8px ui-monospace, monospace; color: #8a978b; letter-spacing: .08em; }
.workspace-label { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); padding: 11px 10px; border-radius: 7px; font-size: 10px; margin-bottom: 20px; }
.workspace-label small { margin-left: auto; color: #8e9b8e; font-size: 9px; }
.live-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #74a580; flex: 0 0 6px; }
.nav-group + .nav-group { margin-top: 10px; }
.nav-caption { width: 100%; display: flex; align-items: center; justify-content: space-between; border: 0; background: transparent; color: #9aa697; font: inherit; font-size: 10px; text-align: left; margin: 0; padding: 10px 10px 5px; letter-spacing: .08em; cursor: pointer; }
.nav-caption b { color: #a5b0a1; font-size: 13px; font-weight: 500; line-height: 1; transition: transform .16s ease; }
.nav-group.collapsed .nav-caption b { transform: rotate(-90deg); }
.nav-group.collapsed > a { display: none; }
.nav-group.collapsed > .settings-nav-group { display: none; }
.settings-nav-group > summary { padding: 10px 14px; cursor: pointer; color: var(--muted); font-size: 12px; }
.settings-nav-group > a { padding-left: 30px; }
.knowledge-content { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.8; }
.grade-batch-dialog { width: min(960px, calc(100vw - 32px)); max-width: 960px; }
.grade-batch-dialog .table-scroll { max-height: 36vh; overflow: auto; }
.grade-batch-dialog thead { position: sticky; top: 0; z-index: 1; background: var(--surface, #f5f7f2); }
.grade-batch-dialog .dialog-actions { position: sticky; bottom: 0; background: white; padding: 14px 0; }
.grade-batch-table-field { padding: 0; border: 0; min-width: 0; }
.grade-batch-table-field legend { padding: 0; margin-bottom: 10px; font-size: 13px; font-weight: 650; color: var(--ink); }
.grade-batch-table { width: 100%; border-collapse: collapse; background: #fbfcf9; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.grade-batch-table th, .grade-batch-table td { padding: 9px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.grade-batch-table thead th { background: #f1f5ed; color: #738170; font-size: 11px; font-weight: 650; }
.grade-batch-table tbody tr:last-child th, .grade-batch-table tbody tr:last-child td { border-bottom: 0; }
.grade-batch-table tbody th { width: 28%; font-size: 12px; color: var(--ink); }
.grade-batch-table tbody th small { display: block; margin-top: 2px; color: var(--muted); font-size: 10px; font-weight: 400; }
.grade-rate-cell { display: flex; align-items: center; gap: 8px; max-width: 280px; }
.grade-rate-cell input { width: 100%; min-width: 0; }
.grade-rate-cell span, .grade-batch-state { color: var(--muted); font-size: 11px; white-space: nowrap; }
.grade-batch-state::before { content: '○'; margin-right: 5px; color: #a4b09f; }
@media (max-width: 600px) {
  .grade-batch-table th, .grade-batch-table td { padding: 8px; }
  .grade-batch-table tbody th { width: 35%; }
  .grade-batch-table thead th:last-child, .grade-batch-table td:last-child { display: none; }
}
nav a { display: flex; align-items: center; padding: 12px; gap: 11px; border-radius: 7px; color: #738170; font-size: 12px; margin: 3px 0; }
nav a span { width: 18px; font-size: 17px; line-height: 1; }
nav a:hover { background: #eff2e9; }
nav a.active { background: #e6eddf; color: #31543c; font-weight: 650; }
.sidebar-note { margin: auto 4px 20px; padding-top: 32px; }
.sidebar-note > span { color: #668756; font-size: 20px; }
.sidebar-note strong { display: block; font-size: 10px; margin: 9px 0; }
.sidebar-note p { font-size: 10px; color: #9ba596; }
.user-block { display: flex; align-items: center; gap: 9px; border-top: 1px solid var(--line); padding: 16px 2px 0; }
.user-avatar { display: grid; place-items: center; height: 31px; width: 31px; border-radius: 50%; background: #e0e7d6; font-size: 12px; }
.user-block strong, .user-block small { display: block; font-size: 11px; }
.user-block small { color: #9ba596; font-size: 9px; margin-top: 4px; }
.user-block .icon-button { margin-left: auto; }
main { flex: 1; min-width: 0; }
.topbar { height: 69px; border-bottom: 1px solid var(--line); background: #ffffffb0; padding: 0 35px; display: flex; align-items: center; justify-content: space-between; font-size: 11px; }
.breadcrumb-sep { margin: 0 13px; color: #c0c9bc; }
.topbar-route { display: flex; align-items: center; min-width: 0; }
.route-button { width: 28px; height: 28px; margin-right: 4px; border: 0; border-radius: 7px; background: transparent; color: var(--muted); font-size: 20px; line-height: 1; cursor: pointer; }
.route-button:hover:not(:disabled) { background: var(--surface-soft); color: var(--ink); }
.route-button:disabled { opacity: .3; cursor: default; }
.topbar-end { display: flex; align-items: center; gap: 8px; color: #82937e; font-size: 10px; }
.page { padding: 34px; max-width: 1500px; margin: auto; min-height: calc(100vh - 135px); }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 26px; gap: 16px; }
.page-head p { font-size: 12px; color: var(--muted); margin-bottom: 0; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 22px 0; }
.project-financial-metrics { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.metric { padding: 22px; border-radius: 12px; border: 1px solid var(--line); background: #fff; }
.metric.accent { background: #2d493c; border-color: #2d493c; color: #fff; }
.metric .label { color: #8b998a; font-size: 11px; display: block; margin-bottom: 15px; }
.metric.accent .label { color: #bbccbb; }
.metric .value { display: block; font: 500 clamp(19px, 2.3vw, 29px) ui-monospace, SFMono-Regular, monospace; letter-spacing: -.05em; overflow-wrap: anywhere; }
.metric .footnote { display: block; font-size: 10px; color: #9aa493; margin-top: 10px; }
.metric.accent .footnote { color: #adbfaa; }
.metric-editable { cursor: pointer; }
.metric-editable:hover, .metric-editable:focus-within { border-color: var(--green); box-shadow: 0 4px 15px #20352d14; }
.metric-edit-link { margin-top: 12px; padding: 0; font-size: 11px; }
.metric.accent .metric-edit-link { color: #d4e5cc; }
.quotation-guide .actions { margin-top: 10px; gap: 24px; }
#quotationItems, #quotationExecution, #quotationCalculation { scroll-margin-top: 24px; }
.quote-form input[readonly] { background: #f2f5ef; color: #5a705e; }
.panel { border: 1px solid var(--line); border-radius: 12px; background: #fff; margin-bottom: 20px; overflow: hidden; }
.panel-head { display: flex; align-items: center; justify-content: space-between; padding: 22px 24px 18px; gap: 16px; }
.panel-head p { font-size: 11px; color: var(--muted); margin: 0; }
.panel-head h2 { font-size: 15px; }
.panel-body { padding: 0 24px 24px; }
.grid-two { display: grid; grid-template-columns: 1.4fr 1fr; gap: 20px; }
.hero-strip { padding: 25px 28px; background: linear-gradient(105deg, #e8eedc, #f0f3e9); border-radius: 12px; border: 1px solid #dde6d0; display: flex; align-items: center; justify-content: space-between; gap: 25px; }
.hero-strip h2 { font-size: 20px; margin: 7px 0; }
.hero-strip p { margin: 0; font-size: 12px; color: #7a8c6f; }
.hero-mark { font-size: 52px; color: #8ca07a; }
.badge { display: inline-block; font-size: 10px; padding: 5px 8px; border-radius: 5px; background: #eef3e7; color: #60804e; white-space: nowrap; }
.badge.amber { background: #fcf0dd; color: #a98141; }
.badge.gray { background: #f0f2ef; color: #8b9589; }
.badge.red { background: #fbece6; color: #b77560; }
.table-scroll { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; text-align: left; }
th { background: #f8faf5; color: #8a9684; font-size: 10px; padding: 12px 23px; font-weight: 500; white-space: nowrap; }
td { padding: 17px 23px; border-top: 1px solid #edf0e8; font-size: 12px; line-height: 1.6; }
td strong { font-weight: 600; }
td small { display: block; font-size: 10px; color: #98a18f; margin-top: 4px; }
td .link { color: #39684d; font-weight: 650; }
.amount { font-family: ui-monospace, SFMono-Regular, monospace; font-variant-numeric: tabular-nums; white-space: nowrap; }
.empty { padding: 45px 24px; text-align: center; color: #879580; }
.empty .empty-icon { font-size: 28px; color: #a7b39a; display: block; margin-bottom: 15px; }
.empty h3 { color: #63775c; font-size: 14px; }
.empty p { font-size: 12px; max-width: 500px; margin: 8px auto 18px; }
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { border-top: 1px solid #edf0e8; padding: 15px 24px; display: flex; align-items: center; gap: 12px; }
.checklist .step { display: grid; place-items: center; background: #f2f5ed; color: #849674; width: 29px; height: 29px; border-radius: 8px; font-size: 11px; }
.checklist strong { font-size: 12px; }
.checklist p { color: #929d88; font-size: 10px; margin: 3px 0 0; }
.checklist .text-button { margin-left: auto; white-space: nowrap; }
.note { background: #f0f4e9; border: 1px solid #e2e9d9; color: #798b69; border-radius: 8px; padding: 13px 16px; font-size: 11px; line-height: 1.8; margin-bottom: 18px; }
.note.warning { background: #fff6e6; border-color: #f1e5cc; color: #9b814a; }
.project-center { container-type: inline-size; }
.project-center .page-head { align-items: center; margin-bottom: 28px; }
.project-center h1 { font-size: 28px; letter-spacing: 0; margin-bottom: 8px; }
.project-center .eyebrow { margin-bottom: 9px; }
.project-list-toolbar { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; }
.project-filters { display: flex; gap: 24px; align-items: stretch; flex-wrap: wrap; padding: 0 24px; border-bottom: 1px solid #edf0e8; }
.project-filter { border: 0; background: transparent; color: #7b8981; padding: 17px 0; border-bottom: 3px solid transparent; font-size: 12px; white-space: nowrap; }
.project-filter span { margin-left: 6px; color: #849181; font-size: 10px; background: #f1f4ed; border-radius: 5px; padding: 2px 6px; }
.project-filter:hover, .project-filter.active { color: #31543c; border-bottom-color: #4c7357; }
.project-filter.active { font-weight: 600; }
.project-filter.active span { background: #eaf1e4; color: #416947; }
.project-search-row { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(2, minmax(0, 1fr)) 112px 258px 68px; align-items: end; gap: 12px; padding: 22px 24px 24px; }
.project-search-row > label, .project-date-field { display: flex; flex-direction: column; gap: 9px; min-width: 0; color: var(--muted); font-size: 11px; font-weight: 400; }
.project-search-row input, .project-search-row select { height: 42px; min-width: 0; margin: 0; border-radius: 7px; background: #fdfefb; font-size: 12px; }
.project-search-control { position: relative; }
.project-search-control input { padding-left: 33px; }
.project-search-control::before { content: ''; position: absolute; left: 13px; top: 14px; width: 10px; height: 10px; border: 1.5px solid #93a091; border-radius: 50%; pointer-events: none; }
.project-search-control::after { content: ''; position: absolute; left: 23px; top: 25px; width: 5px; height: 1.5px; background: #93a091; transform: rotate(45deg); pointer-events: none; }
.project-time-filter { display: flex; align-items: center; gap: 4px; min-width: 0; height: 42px; background: #fdfefb; border: 1px solid #dce2d9; border-radius: 7px; padding: 0 5px; }
.project-time-filter input { flex: 1; width: 0; padding: 8px 3px; border: 0; height: 38px; background: transparent; }
.project-time-filter span { color: #a4afa1; font-size: 11px; }
.project-refresh { height: 42px; padding: 0 12px; background: #f3f6ef; font-weight: 500; }
.project-result-count { margin: 17px 2px 12px; color: var(--muted); font-size: 12px; }
.project-center td { overflow-wrap: anywhere; }
.project-center td:first-child { min-width: 145px; }
.project-center td:nth-child(2) { min-width: 110px; }
@container (max-width: 1050px) {
  .project-search-row { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px 12px; }
  .project-search-field, .project-customer-field, .project-category-field, .project-period-field { grid-column: span 2; }
  .project-date-field { grid-column: span 3; }
}
@container (max-width: 580px) {
  .project-filters { gap: 4px 16px; padding: 0 16px; }
  .project-filter { padding: 12px 0; }
  .project-search-row { padding: 18px 16px; }
  .project-search-field, .project-period-field, .project-date-field, .project-refresh { grid-column: span 6; }
  .project-customer-field, .project-category-field { grid-column: span 3; }
}
.project-lifecycle { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 18px; padding: 9px 0; margin: 12px 24px 0; border-top: 1px solid var(--line); }
.lifecycle-track { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; flex: 1; min-width: 0; }
.lifecycle-step { display: flex; align-items: center; gap: 8px; color: #899688; font-size: 11px; white-space: nowrap; }
.lifecycle-step:not(:last-child)::after { content: ''; height: 1px; width: 18px; background: #dce3d7; margin: 0 4px; }
.lifecycle-step:nth-last-child(2)::after { content: '/'; height: auto; width: auto; background: none; color: #899688; }
.lifecycle-step.completed { color: #6d8b67; }
.lifecycle-step.active { color: #4f7146; font-weight: 600; }
.lifecycle-step.active > span { padding: 5px 10px; background: #e3ecd9; border-radius: 6px; }
.lifecycle-step.terminal.active { color: #ad5d58; }
.lifecycle-step.terminal.active > span { background: #f6e9e4; }
.lifecycle-index { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #edf1eb; color: #849181; font-size: 10px; flex: 0 0 24px; }
.lifecycle-step.completed .lifecycle-index { background: #dfead8; color: #5e8158; }
.lifecycle-step.active .lifecycle-index { background: #fff0e5; color: #ef7425; }
.lifecycle-version { color: #8e998b; font-size: 10px; white-space: nowrap; }
.lifecycle-actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.lifecycle-actions .button { padding: 7px 12px; font-size: 11px; }
.project-info-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; padding: 0 24px 22px; margin: 0; }
.project-info-grid > div { padding: 4px 0; }
.project-info-grid dt { color: #7b8981; font-size: 11px; margin-bottom: 5px; }
.project-info-grid dd { margin: 0; font-size: 12px; color: var(--ink); overflow-wrap: anywhere; }
.project-info-grid dt { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.project-info-grid .text-button { padding: 2px 0; font-size: 11px; }
.project-info-editable { cursor: pointer; }
.project-info-editable:hover, .project-info-editable:focus-within { background: #f5f8f1; }
.project-workspace-header { margin-bottom: 0; background: transparent; border: 0; border-radius: 0; overflow: visible; }
.project-header-nav { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding: 0 24px; margin-bottom: 10px; color: var(--muted); font-size: 11px; }
.project-header-nav a:hover { color: var(--green); }
.project-title-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 24px; padding: 0 24px; position: relative; }
.project-title { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; min-width: 92px; max-width: 100%; }
.project-title h1 { margin: 0; font-size: 24px; letter-spacing: -.025em; overflow-wrap: anywhere; }
.project-title .badge { padding: 0; background: transparent; color: #4f7146; font-size: 11px; }
.project-title .badge::before { content: ''; display: inline-block; width: 6px; height: 6px; margin-right: 5px; border-radius: 50%; background: currentColor; }
.project-title-info { display: flex; align-items: baseline; flex-wrap: wrap; flex: 1 1 300px; gap: 6px 24px; margin: 0; min-width: 0; }
.project-title-info > div { display: flex; align-items: baseline; gap: 8px; min-width: 0; padding: 4px 0; border-radius: 4px; }
.project-title-info dt { color: #7b8981; font-size: 11px; margin: 0; white-space: nowrap; }
.project-title-info dd { margin: 0; font-size: 12px; color: var(--ink); overflow-wrap: anywhere; }
.project-info-secondary { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.project-workspace-header .project-info-grid { gap: 8px 20px; padding-bottom: 0; margin-top: 10px; }
.project-workspace-header .project-info-grid > div { min-width: 0; border-radius: 4px; }
.project-workspace-header .project-info-secondary { display: flex; flex-wrap: wrap; gap: 4px 24px; }
.project-info-secondary > div { display: flex; align-items: baseline; gap: 8px; max-width: 100%; }
.project-info-secondary dt { margin: 0; white-space: nowrap; }
.project-header-tools { display: flex; align-items: center; gap: 16px; padding: 0; margin-left: auto; flex-shrink: 0; }
.project-date-details { min-width: 0; }
.project-date-details summary, .project-management-menu summary { color: var(--muted); font-size: 12px; cursor: pointer; padding: 4px 0; }
.project-date-details .project-info-grid { padding: 0; }
.project-more-popover { position: absolute; right: 24px; top: 100%; z-index: 11; width: min(460px, calc(100% - 48px)); padding: 16px; background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 5px 18px #263c3410; }
.project-more-popover .project-info-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 0; }
.project-more-popover .project-description-info { grid-template-columns: 1fr; margin-top: 12px; }
.project-more-popover > .hint { margin: 12px 0 0; }
.project-management-menu { position: relative; flex-shrink: 0; }
.project-management-menu summary { color: var(--green); }
.project-management-actions { position: absolute; right: 0; top: 30px; z-index: 10; display: grid; width: 170px; padding: 6px; background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 5px 18px #263c3410; }
.project-management-actions .button { justify-content: flex-start; border: 0; font-weight: 400; padding: 9px; }
.project-lifecycle + .tabs { gap: 20px; padding: 0; margin-top: 8px; }
.project-lifecycle + .tabs button { border-bottom: 2px solid transparent; border-radius: 0; padding: 9px 0 11px; }
.project-lifecycle + .tabs button.active { background: transparent; border-bottom-color: var(--green); color: var(--green); }
.project-timeline .panel-head { padding-bottom: 13px; }
.timeline-list { padding: 0 24px 20px 30px; border-left: 1px solid #e2e8df; margin-left: 29px; }
.timeline-entry { position: relative; padding: 10px 0 10px 18px; }
.timeline-dot { position: absolute; left: -36px; top: 17px; width: 10px; height: 10px; border-radius: 50%; background: #8aa779; border: 3px solid #eef3e9; }
.timeline-entry strong { font-size: 12px; font-weight: 650; }
.timeline-entry p { margin: 4px 0 0; color: #96a092; font-size: 10px; }
.timeline-empty { padding: 0 24px 20px; }
.tabs { display: flex; gap: 5px; border-bottom: 1px solid var(--line); padding-bottom: 10px; margin: 23px 0; overflow-x: auto; }
.tabs button { white-space: nowrap; border: 0; padding: 9px 13px; font-size: 12px; border-radius: 6px; background: transparent; color: #91a087; }
.tabs button.active { background: #e4ecdc; color: #416237; font-weight: 650; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.communication-composer { padding: 24px; }
.task-description { white-space: pre-wrap; overflow-wrap: anywhere; }
.span-two { grid-column: 1 / -1; }
.form-toolbar { display: flex; justify-content: flex-end; gap: 9px; margin-top: 23px; }
.quote-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.quote-form { padding: 25px; }
.quote-result { background: #293f34; color: #fff; border-radius: 12px; padding: 26px; min-height: 300px; }
.quote-result h2 { color: #d6e1cc; }
.quote-result .hint { color: #a4b697; }
.quote-row { display: flex; justify-content: space-between; align-items: center; gap: 15px; border-bottom: 1px solid #ffffff18; padding: 13px 0; font-size: 12px; }
.quote-row span:first-child { color: #b6c6a9; }
.quote-row strong { font: 17px ui-monospace, monospace; }
.quote-row.total { padding-top: 22px; border-bottom: 0; }
.quote-row.total strong { font-size: 29px; color: #d4e5b7; }
.detail-meta { display: flex; flex-wrap: wrap; gap: 16px; font-size: 11px; color: #8b9783; margin-top: 15px; }
.detail-meta b { color: #637458; font-weight: 500; margin-left: 5px; }
.history-card { border-top: 1px solid var(--line); padding: 20px 24px; }
.history-card:first-child { border-top: 0; }
.history-card p { font-size: 12px; color: #839277; white-space: pre-wrap; overflow-wrap: anywhere; }
.history-top { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 13px; }
.history-top h3 { margin-bottom: 0; }
.history-card dl { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 0; }
.history-card dt { color: #95a086; font-size: 10px; margin-bottom: 5px; }
.history-card dd { margin: 0; font-size: 12px; }
.search-input { max-width: 300px; margin-bottom: 18px; }
dialog { border: 1px solid var(--line); border-radius: 15px; max-width: 620px; width: calc(100% - 32px); padding: 0; color: var(--ink); box-shadow: 0 25px 100px #23392730; }
dialog.bulk-editor { max-width: 1200px; }
dialog.project-information-editor { max-width: 960px; }
.project-information-editor input[readonly] { background: var(--bg); color: var(--muted); }
.project-information-editor fieldset:disabled { opacity: .8; }
.project-information-history, .project-information-approvals { padding: 12px 16px; border: 1px solid var(--line); border-radius: 10px; font-size: 12px; }
.project-information-approvals small { display: block; color: var(--muted); margin-top: 4px; }
.entity-metrics { margin: 20px 0; }
.entity-table-panel { overflow: hidden; }
.entity-toolbar { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.entity-toolbar input, .entity-toolbar select { min-height: 36px; border: 1px solid var(--line); border-radius: 8px; padding: 8px 11px; background: var(--paper); color: var(--ink); }
.entity-toolbar input { width: 250px; }
.entity-toolbar span { margin-left: auto; color: var(--muted); font-size: 12px; }
.entity-table-panel table td small, .entity-detail small, .entity-name-button small { display: block; color: var(--muted); font-size: 11px; margin-top: 3px; }
.entity-name-button { border: 0; background: transparent; padding: 0; text-align: left; color: var(--ink); cursor: pointer; }
.entity-name-button:hover strong { color: var(--green); }
.entity-detail { margin-top: 18px; padding: 22px 24px; }
.entity-detail-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.entity-detail-head h2 { margin: 0; font-size: 20px; }
.entity-detail-head p { color: var(--muted); margin: 5px 0 0; font-size: 12px; }
.entity-detail .tabs { display: flex; gap: 24px; border-bottom: 1px solid var(--line); margin: 20px -24px 0; padding: 0 24px; }
.entity-detail .tab { padding: 11px 0; color: var(--muted); font-size: 12px; }
.entity-detail .tab.active { color: var(--green); border-bottom: 2px solid var(--green); font-weight: 650; }
.entity-detail-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 20px 0 0; }
.entity-detail-grid dt { color: var(--muted); font-size: 11px; margin-bottom: 4px; }
.entity-detail-grid dd { margin: 0; font-size: 13px; font-weight: 550; overflow-wrap: anywhere; }
.entity-account-list { margin-top: 22px; border-top: 1px solid var(--line); padding-top: 16px; }
.entity-account-list h3 { font-size: 14px; margin: 0 0 10px; }
.entity-account-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.entity-account-row strong { font-size: 13px; }
.entity-detail-hint { margin-top: 17px; padding: 11px 13px; background: var(--wash); color: var(--muted); border-radius: 8px; font-size: 11px; }
.entity-history { margin-top: 20px; border-top: 1px solid var(--line); padding-top: 14px; }
.entity-history h3 { font-size: 13px; margin: 0 0 8px; }
.entity-history p { color: var(--muted); font-size: 11px; margin: 5px 0; }
@media (max-width: 760px) { .entity-toolbar { flex-wrap: wrap; } .entity-toolbar input { width: 100%; } .entity-toolbar span { margin-left: 0; width: 100%; } .entity-detail-grid { grid-template-columns: 1fr 1fr; } .entity-detail-head { flex-direction: column; } .entity-detail .tabs { gap: 14px; overflow-x: auto; white-space: nowrap; } }
.bulk-editor #dialogFields > .table-scroll { min-width: 0; }
#bulkItems { min-width: 960px; table-layout: fixed; }
#bulkItems th:first-child { width: 25%; }
#bulkItems th:last-child { width: 75px; }
#bulkItems td { vertical-align: top; padding: 10px 8px; }
#bulkItems input, #bulkItems textarea { width: 100%; min-width: 0; }
#bulkItems textarea { margin-top: 8px; min-height: 60px; }
#bulkItems [data-row-error] { color: var(--danger, #a53434); white-space: normal; }
dialog::backdrop { background: #1e322d66; backdrop-filter: blur(3px); }
.dialog-head { padding: 24px 26px 15px; display: flex; justify-content: space-between; align-items: center; }
.dialog-head h2 { margin: 0; }
#editorForm, #quickCreateForm { padding: 0 26px 24px; }
#dialogFields, #quickCreateFields { display: grid; grid-template-columns: 1fr 1fr; gap: 17px; }
.form-section { border: 1px solid var(--line); border-radius: 10px; padding: 16px; margin: 0; min-width: 0; }
.form-section legend { padding: 0 7px; color: #62755d; font-size: 11px; font-weight: 650; }
.form-section .form-grid { gap: 15px; }
.lookup-field { display: grid; align-content: start; gap: 8px; min-width: 0; }
.lookup-field-header { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.lookup-create { border: 0; background: transparent; color: #376550; font-size: 11px; padding: 0; white-space: nowrap; }
.lookup-create:hover { text-decoration: underline; }
.collaborator-picker { display: flex; align-items: center; gap: 8px; }
.collaborator-picker select { flex: 1; }
.collaborator-picker button { flex-shrink: 0; }
.collaborator-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.collaborator-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; }
.collaborator-list span { min-width: 0; overflow-wrap: anywhere; }
.collaborator-list button { flex-shrink: 0; }
.task-collaborators { display: flex; flex-wrap: wrap; gap: 12px; }
.task-collaborators label { display: flex; flex-direction: row; align-items: center; gap: 6px; }
.task-collaborators input { width: auto; }
.production-member { display: grid; grid-template-columns: 1fr 130px; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.production-member > label:first-child { display: flex; flex-direction: row; align-items: center; gap: 8px; }
.production-member input[type="checkbox"] { width: auto; }
.dialog-actions { margin-top: 24px; display: flex; justify-content: flex-end; gap: 8px; }
.error-text { color: #b15c47; font-size: 12px; margin-top: 12px; line-height: 1.7; }
.toast { position: fixed; bottom: 25px; left: 50%; transform: translateX(-50%); background: #263f33; color: #fff; padding: 14px 22px; border-radius: 9px; box-shadow: 0 8px 25px #263c3430; z-index: 10; font-size: 12px; max-width: 90vw; }
footer { font-size: 10px; color: #a1aa97; padding: 20px 34px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 15px; }
.mobile-only { display: none; }
.report-filters { display: flex; gap: 16px; padding: 20px; align-items: end; flex-wrap: wrap; }
.report-filters label { flex: 1; min-width: 150px; }
.custom-dates { display: flex; gap: 16px; flex-wrap: wrap; }
.custom-dates[hidden] { display: none; }
.metric-button { text-align: left; cursor: pointer; width: 100%; font: inherit; }
.metric-button:hover { border-color: var(--green); box-shadow: 0 4px 15px #20352d14; }
.report-secondary { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.report-quality { padding: 20px; }
.dashboard-page { container-type: inline-size; }
.dashboard-page .page-head { align-items: center; margin-bottom: 24px; }
.dashboard-page h1 { font-size: 28px; letter-spacing: 0; }
.dashboard-page .eyebrow { margin-bottom: 9px; }
.dashboard-filters { display: grid; grid-template-columns: 112px 258px repeat(3, minmax(0, 1fr)) 68px; gap: 14px; align-items: end; padding: 18px 22px; background: var(--paper); border: 1px solid var(--line); border-radius: 11px; position: relative; z-index: 2; }
.dashboard-filters > label, .dashboard-date-field, .dashboard-status-field { display: flex; flex-direction: column; gap: 8px; min-width: 0; font-size: 11px; font-weight: 400; color: var(--muted); }
.dashboard-status-field small { font-size: 10px; margin-left: 4px; color: #7e8f75; }
.dashboard-filters input, .dashboard-filters select { height: 40px; font-size: 12px; min-width: 0; border-radius: 6px; margin: 0; background: #fdfefb; }
.dashboard-filters > .button { height: 40px; padding: 0 12px; }
.dashboard-date-range { display: flex; align-items: center; gap: 4px; height: 40px; border: 1px solid #dce2d9; border-radius: 6px; padding: 0 5px; background: #fdfefb; }
.dashboard-date-range input { flex: 1; width: 0; padding: 8px 3px; border: 0; height: 36px; background: transparent; }
.dashboard-date-range > span { color: #93a18a; }
.dashboard-status { position: relative; min-width: 0; }
.dashboard-status summary { display: flex; gap: 8px; align-items: center; justify-content: space-between; list-style: none; height: 40px; padding: 0 12px; border: 1px solid #dce2d9; border-radius: 6px; background: #fdfefb; color: var(--ink); font-size: 12px; cursor: pointer; }
.dashboard-status summary::-webkit-details-marker { display: none; }
.dashboard-status summary [data-status-label] { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dashboard-status[open] summary { border-color: #829b72; box-shadow: 0 0 0 3px #edf2e7; }
.dashboard-status-menu { position: absolute; top: calc(100% + 7px); right: 0; width: max(100%, 210px); background: var(--paper); padding: 8px; border: 1px solid var(--line); border-radius: 9px; box-shadow: 0 8px 25px #263c3420; z-index: 3; }
.dashboard-status-menu label { display: flex; flex-direction: row; align-items: center; gap: 9px; padding: 8px 10px; font-size: 12px; font-weight: 400; border-radius: 5px; color: #536a47; }
.dashboard-status-menu label:hover { background: #f4f7ef; }
.dashboard-status-menu .dashboard-status-all { background: #eaf1e4; margin-bottom: 5px; }
.dashboard-status-menu input { width: 14px; height: 14px; flex: 0 0 auto; accent-color: #668556; }
.dashboard-status-menu p { border-top: 1px solid var(--line); padding: 10px 8px 2px; margin: 5px 0 0; font-size: 10px; color: var(--muted); }
.dashboard-range-summary { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 16px; color: #7e8f75; font-size: 11px; margin: 14px 2px 23px; }
.dashboard-section-title, .dashboard-group-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.dashboard-section-title h2, .dashboard-group-head h2 { font-size: 14px; margin: 0; }
.dashboard-section-title > span, .dashboard-group-head > span { font-size: 11px; color: var(--muted); }
.dashboard-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 15px; margin-bottom: 20px; }
.dashboard-metric { color: var(--ink); min-width: 0; text-align: left; }
.dashboard-metric-card { display: flex; flex-direction: column; padding: 20px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); }
.dashboard-metric:hover { box-shadow: 0 2px 12px #263c3410; }
.dashboard-metric-label { font-size: 12px; color: #75876b; }
.dashboard-metric-value { font: 550 29px -apple-system, BlinkMacSystemFont, 'PingFang SC', sans-serif; font-variant-numeric: tabular-nums; display: block; margin: 15px 0; overflow-wrap: anywhere; }
.dashboard-metric-value.pending { font-size: 23px; color: #96804e; }
.dashboard-metric-note { font-size: 10px; color: #819275; }
.dashboard-metric-card .dashboard-metric-note { margin-top: auto; }
.dashboard-metric-card.dashboard-accent { background: #eaf1e4; border-color: #d8e4ce; }
.dashboard-accent .dashboard-metric-label, .dashboard-accent .dashboard-metric-value { color: #466a39; }
.dashboard-groups { display: grid; grid-template-columns: 1.7fr 1fr; gap: 18px; }
.dashboard-group { padding: 20px 22px; margin-bottom: 18px; }
.dashboard-group-head { margin-bottom: 18px; }
.dashboard-inline-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.dashboard-metric-inline { padding: 0; border: 0; background: none; }
.dashboard-metric-inline .dashboard-metric-value { font-size: 24px; margin: 13px 0 8px; }
.dashboard-metric-row { border: 0; border-bottom: 1px solid #e9eee3; padding: 12px 0; background: none; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 7px 12px; align-items: center; width: 100%; }
.dashboard-metric-row .dashboard-metric-value { font-size: 23px; margin: 0; }
.dashboard-metric-row .dashboard-metric-note { grid-column: 1 / -1; }
.dashboard-group > .dashboard-metric-row:last-child { border-bottom: 0; }
.dashboard-formula { color: #7e9172; font-size: 11px; margin: 14px 2px 18px; line-height: 1.8; }
.dashboard-group .dashboard-formula { border-top: 1px solid #edf0e7; padding-top: 13px; margin: 18px 0 0; font-size: 10px; }
.dashboard-strip { display: grid; grid-template-columns: 150px 1fr 1fr; gap: 24px; align-items: center; background: var(--paper); border: 1px solid var(--line); border-radius: 9px; padding: 16px 22px; margin-bottom: 18px; }
.dashboard-strip h2 { font-size: 12px; margin: 0 0 6px; }
.dashboard-strip > div > span { font-size: 10px; color: var(--muted); }
.dashboard-strip .dashboard-metric-row { border: 0; padding: 0 0 0 22px; border-left: 1px solid var(--line); }
.dashboard-department-summary { grid-template-columns: 1fr 1fr; }
.dashboard-department-summary .dashboard-metric-row:first-child { border-left: 0; padding-left: 0; }
.dashboard-details { scroll-margin-top: 20px; }
.dashboard-detail-tabs { display: flex; flex-wrap: wrap; gap: 10px 26px; padding: 0 22px; border-bottom: 1px solid var(--line); }
.dashboard-detail-tabs button { border: 0; border-bottom: 2px solid transparent; padding: 16px 0; background: transparent; color: #819175; font-size: 12px; }
.dashboard-detail-tabs button[aria-selected="true"] { color: #416638; border-bottom-color: #66895a; font-weight: 600; }
.dashboard-detail-body th:not(:first-child), .dashboard-detail-body td:not(:first-child) { text-align: right; }
.dashboard-detail-body .panel-head { padding-top: 17px; padding-bottom: 14px; }
.dashboard-detail-body .panel-head h2 { font-size: 13px; }
.dashboard-archive { padding: 17px 22px; }
.dashboard-archive summary, .dashboard-page .note summary { cursor: pointer; }
.dashboard-labor-note > .note { margin: 14px 0 0; padding: 0; border: 0; }
.dashboard-page .note .table-scroll { margin-top: 10px; }
@container (max-width: 1100px) {
  .dashboard-filters { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .dashboard-filters > * { grid-column: span 2; }
  .dashboard-filters .dashboard-date-field { grid-column: span 4; }
  .dashboard-filters > :nth-last-child(2), .dashboard-filters > button { grid-column: span 1; }
  .dashboard-groups { grid-template-columns: 1fr; }
}
@container (max-width: 650px) {
  .dashboard-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 16px; }
  .dashboard-filters > *, .dashboard-filters > :nth-last-child(2), .dashboard-filters > button { grid-column: span 1; }
  .dashboard-filters > label:first-child, .dashboard-filters .dashboard-date-field { grid-column: span 2; }
  .dashboard-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dashboard-strip, .dashboard-department-summary { grid-template-columns: 1fr; gap: 14px; }
  .dashboard-strip .dashboard-metric-row { border-left: 0; padding: 12px 0 0; border-top: 1px solid var(--line); }
  .dashboard-inline-metrics { grid-template-columns: 1fr; gap: 14px; }
  .dashboard-metric-inline { padding-bottom: 12px; border-bottom: 1px solid var(--line); }
  .dashboard-metric-card { padding: 15px; }
  .dashboard-metric-value { font-size: 23px; }
  .dashboard-metric-value.pending { font-size: 20px; }
  .dashboard-section-title { align-items: flex-start; }
  .dashboard-status-menu { width: 210px; }
  .dashboard-status-field { position: relative; }
  .dashboard-filters > .dashboard-status-field { grid-column: span 2; }
  #departmentFilters.dashboard-filters > button { grid-column: span 2; }
}
@container (max-width: 420px) {
  .dashboard-kpis { grid-template-columns: 1fr; }
  .dashboard-kpis .dashboard-metric-value { white-space: nowrap; overflow-x: auto; }
}
summary { cursor: pointer; }
#drillDialog { width: min(1100px, 95vw); max-width: 95vw; }
#drillBody { padding: 0 24px 24px; }
.permission-check { display: flex; flex-direction: row; align-items: center; gap: 10px; }
.permission-check input { width: auto; }
.attribute-group { border: 1px solid var(--line); border-radius: 8px; padding: 14px; display: grid; gap: 10px; }
select[multiple] { min-height: 120px; }
.input-suffix { display: flex; align-items: center; gap: 8px; }
.input-suffix input { flex: 1; min-width: 0; }
.input-suffix span { color: var(--muted); font-weight: 700; }
.source-highlight { background: #e5f1d5; outline: 2px solid #8ba56c; outline-offset: -2px; }
.metrics .metric-button .value { font-size: clamp(16px, 1.65vw, 24px); white-space: nowrap; overflow-x: auto; }
@media (max-width: 1100px) {
  .sidebar { width: 210px; flex-basis: 210px; }
  .page { padding: 26px; }
  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-two, .quote-layout { grid-template-columns: 1fr; }
  .sidebar-note { display: none; }
  .user-block { margin-top: auto; }
}
@media (max-width: 760px) {
  .sidebar { position: fixed; left: -245px; z-index: 4; width: 235px; transition: left .2s; box-shadow: 10px 0 25px #20352d15; }
  .sidebar.open { left: 0; }
  .mobile-only { display: inline-block; }
  .topbar { padding: 0 16px; height: 60px; gap: 12px; }
  .topbar > div:first-of-type { margin-right: auto; }
  .topbar-end { gap: 5px; }
  #connectionStatus { display: none; }
  .page { padding: 22px 16px; }
  .page-head { align-items: flex-start; flex-direction: column; }
  .page-head .actions { width: 100%; }
  .project-info-grid { grid-template-columns: 1fr 1fr; padding: 0 16px 16px; }
  .project-info-grid > div { padding: 11px 9px; }
  .project-title-row { padding: 0 16px; align-items: flex-start; }
  .project-title h1 { font-size: 22px; }
  .project-title-info { flex-basis: 100%; gap: 10px 18px; }
  .project-header-nav { padding: 0 16px; }
  .project-more-popover { right: 16px; width: calc(100% - 32px); }
  .project-date-details .project-info-grid { grid-template-columns: 1fr; }
  .project-lifecycle { margin-left: 16px; margin-right: 16px; }
  .project-lifecycle { flex-wrap: wrap; }
  .lifecycle-actions { width: 100%; justify-content: space-between; }
  .metrics { gap: 10px; }
  .metric { padding: 17px; }
  .metric .value { font-size: 22px; }
  .hero-strip { padding: 22px; }
  .hero-mark { display: none; }
  .panel-head { padding: 19px; }
  .panel-body { padding: 0 19px 19px; }
  th, td { padding: 13px 16px; }
  td { min-width: 100px; }
  .quote-form { padding: 20px; }
  .form-grid, #dialogFields, #quickCreateFields { grid-template-columns: 1fr; }
  .span-two { grid-column: auto; }
  .login-page { display: flex; flex-direction: column; padding: 28px 22px; gap: 30px; }
  .login-intro { align-self: stretch; }
  .login-intro h1 { font-size: 34px; }
  .login-card { padding: 25px; }
  .login-intro p { margin: 0; }
  footer { padding: 18px; flex-direction: column; gap: 7px; }
}

.project-header-financials { gap: 0; margin: 12px 24px 0; border-top: 1px solid var(--line); padding-top: 10px; }
.project-header-financials .metric { background: transparent; border: 0; border-radius: 0; box-shadow: none; padding: 0 16px; min-width: 0; }
.project-header-financials .metric:first-child { padding-left: 0; }
.project-header-financials .metric + .metric { border-left: 1px solid var(--line); }
.project-header-financials .label { font-size: 11px; margin-bottom: 4px; }
.project-header-financials .value { font-size: clamp(18px, 1.5vw, 22px); margin: 0; overflow-wrap: anywhere; }
.project-header-financials .metric-value-button { display: block; width: 100%; padding: 0; border: 0; background: transparent; text-align: left; color: inherit; font-family: inherit; font-weight: 650; line-height: inherit; }
.project-header-financials .metric-value-button:hover { color: var(--green); }
.project-header-financials .metric-value-button:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 3px; }
.comm-board { margin: 28px 0 12px; }
.comm-board > .panel-head { padding: 0; border: 0; margin-bottom: 18px; gap: 18px; }
.comm-board > .page-head { margin-bottom: 20px; }
.comm-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.comm-stats button { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 20px; border: 1px solid var(--line); border-radius: 9px; background: white; color: var(--muted); font-size: 12px; }
.comm-stats strong { font-size: 25px; font-weight: 600; color: var(--ink); }
.comm-stats button[aria-pressed="true"] { background: #edf3e7; border-color: #cedfc1; }
.comm-project .comm-stats { display: flex; flex-wrap: wrap; }
.comm-project .comm-stats button { padding: 9px 14px; }
.comm-project .comm-stats strong { font-size: 18px; }
.comm-workspace { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 18px; align-items: start; }
.comm-workspace.expanded { grid-template-columns: minmax(0, 1fr); }
.comm-workspace.expanded .comm-list { display: none; }
.comm-list, .comm-detail { min-width: 0; background: white; border: 1px solid var(--line); border-radius: 11px; overflow: hidden; }
.comm-tabs { display: flex; gap: 18px; padding: 0 18px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.comm-tabs button { flex: none; border: 0; border-bottom: 2px solid transparent; background: none; color: var(--muted); padding: 17px 0 14px; font-size: 12px; }
.comm-tabs button[aria-pressed="true"] { border-bottom-color: #71925e; color: #466b37; font-weight: 600; }
.comm-filters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 18px; gap: 12px; }
.comm-filters label, .comm-composer label { min-width: 0; font-size: 11px; color: var(--muted); }
.comm-filters input, .comm-filters select { min-width: 0; width: 100%; height: 36px; font-size: 12px; padding: 7px 9px; }
.comm-filter-actions { grid-column: 1 / -1; display: flex; justify-content: flex-end; gap: 8px; }
.comm-scopes { display: flex; gap: 5px; flex-wrap: wrap; padding: 0 18px 14px; }
.comm-scopes button { background: transparent; border: 0; border-radius: 5px; padding: 6px 8px; font-size: 11px; color: #7c8b70; }
.comm-scopes button[aria-pressed="true"] { background: #edf3e7; color: #486f39; }
.comm-row { display: block; width: 100%; min-width: 0; text-align: left; padding: 19px 18px; border: 0; border-top: 1px solid #edf0e8; border-left: 3px solid transparent; background: white; color: var(--ink); }
.comm-row.selected { border-left-color: #7e9b67; background: #f1f6ec; }
.comm-row:hover { background: #f7f9f3; }
.comm-row-main strong { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 13px; line-height: 1.65; font-weight: 550; overflow-wrap: anywhere; }
.comm-row-main small { display: block; font-size: 11px; color: #839275; margin-top: 7px; overflow-wrap: anywhere; }
.comm-row-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; margin-top: 12px; color: #7d8d72; font-size: 11px; }
.comm-row-meta > .badge { margin-left: auto; }
.comm-late { color: #aa7354; margin-left: 7px; }
.comm-list-scroll { max-height: 650px; overflow-y: auto; }
.comm-list-footer { font-size: 10px; color: var(--muted); padding: 16px 18px; border-top: 1px solid var(--line); }
.comm-detail-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 17px 24px; border-bottom: 1px solid var(--line); font-size: 11px; color: var(--muted); }
.comm-detail-head .text-button { font-size: 11px; }
.comm-detail-body { padding: 20px 24px; }
.comm-context { font-size: 11px; color: #718961; margin-bottom: 12px; overflow-wrap: anywhere; }
.comm-context .button { font-size: 11px; padding: 3px 6px; white-space: normal; }
.comm-title { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.comm-title h3, .comm-detail-body > h3 { font-size: 20px; line-height: 1.6; margin-bottom: 16px; overflow-wrap: anywhere; }
.comm-metadata { display: grid; grid-template-columns: .8fr 1.1fr 1.2fr .7fr; gap: 12px; margin: 4px 0 20px; }
.comm-metadata small { display: block; color: var(--muted); font-size: 11px; margin-bottom: 6px; }
.comm-metadata span { display: block; color: #587448; font-size: 12px; overflow-wrap: anywhere; }
.comm-blocker { background: #fcf6ed; border: 1px solid #efdfca; color: #9a7851; border-radius: 7px; padding: 12px 14px; font-size: 12px; line-height: 1.8; margin-bottom: 14px; white-space: pre-wrap; overflow-wrap: anywhere; }
.comm-blocker strong { margin-right: 12px; }
.comm-requirements { border: 1px solid #e4ebdd; background: #f8faf5; border-radius: 7px; padding: 12px 14px; margin-bottom: 14px; font-size: 12px; color: #6f8660; }
.comm-requirements summary { cursor: pointer; }
.comm-requirements p { margin-top: 14px; white-space: pre-wrap; overflow-wrap: anywhere; }
.comm-detail-body > .comm-tabs { padding: 0; }
.comm-thread { min-height: 150px; max-height: 520px; overflow-y: auto; padding: 18px 0 4px; scrollbar-gutter: stable; }
.comm-comment { display: flex; gap: 12px; margin: 0 0 22px; }
.comm-avatar { width: 30px; height: 30px; background: #edf3e6; color: #779263; border-radius: 50%; display: grid; place-items: center; flex: none; font-size: 12px; }
.comm-comment > div { min-width: 0; flex: 1; }
.comm-comment-meta { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px; font-size: 11px; color: #778a68; }
.comm-comment-meta strong { font-weight: 500; }
.comm-comment-meta time { color: #96a28b; font-size: 10px; }
.comm-comment p, .comm-message-content, .comm-update p { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 13px; line-height: 1.85; color: #526b47; margin: 8px 0 0; }
.comm-message-content { padding: 15px 0; border-bottom: 1px solid var(--line); }
.comm-update { padding: 0 0 18px; font-size: 12px; }
.comm-update small { display: block; color: var(--muted); margin-top: 5px; }
.comm-composer { position: relative; border: 1px solid #dce5d3; border-radius: 8px; padding: 14px; margin-top: 14px; }
.comm-mention-picker { position: absolute; left: 14px; right: 14px; z-index: 8; max-height: 250px; overflow: auto; padding: 6px; background: white; border: 1px solid #d4dfcb; box-shadow: 0 10px 30px #233b3522; border-radius: 9px; }
.comm-mention-title { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding: 9px; font-size: 12px; color: var(--muted); }
.comm-mention-picker [role="option"] { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px; background: white; color: var(--ink); border: 0; border-radius: 5px; text-align: left; }
.comm-mention-picker [aria-selected="true"], .comm-mention-picker [role="option"]:hover { background: #edf3e7; }
.comm-mention-picker small { color: var(--muted); }
.comm-mention-chips { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 8px; }
.comm-mention-chips > span { display: flex; align-items: center; gap: 8px; border-radius: 5px; padding: 3px 7px; background: #edf3e7; color: var(--green); font-size: 12px; }
.comm-mention-chips button { border: 0; background: transparent; color: inherit; padding: 3px; }
.comm-composer .form-grid { padding: 0; margin-bottom: 12px; }
.comm-compose-options { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 12px; }
.comm-compose-options summary { color: var(--green); cursor: pointer; font-size: 12px; margin-bottom: 12px; }
.comm-compose-options select[multiple] { min-height: 80px; }
.comm-compose-options .permission-check { display: flex; align-items: center; gap: 8px; }
.comm-compose-options input[type="checkbox"] { width: 16px; height: 16px; flex: 0 0 auto; }
.comm-composer textarea { width: 100%; min-height: 110px; resize: vertical; margin-top: 8px; font-size: 13px; }
.comm-compose-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; }
.comm-compose-footer > span { font-size: 10px; color: #91a181; }
.comm-detail-footer { background: #fafbf7; border-top: 1px solid var(--line); padding: 15px 24px; }
.comm-detail-footer .actions { justify-content: flex-end; flex-wrap: wrap; }
.comm-detail-footer .button { font-size: 11px; padding: 8px 11px; }
.comm-loading { padding: 20px 24px; }
.comm-board button:focus-visible { outline: 2px solid #597944; outline-offset: -3px; }
@media (max-width: 1100px) {
  .comm-workspace { grid-template-columns: minmax(0, 1.8fr) minmax(0, 3fr); gap: 12px; }
  .comm-metadata { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .comm-detail-body { padding: 18px; }
  .comm-filters { padding: 14px; gap: 9px; }
  .comm-tabs { gap: 12px; padding: 0 14px; }
  .comm-project > .panel-head { flex-wrap: wrap; }
  .project-header-financials { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 0; }
}
@media (max-width: 760px) {
  .comm-workspace { grid-template-columns: minmax(0, 1fr); }
  .comm-list-scroll { max-height: 320px; }
  .comm-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .comm-stats button { padding: 12px; }
  .comm-project .comm-stats { display: grid; }
  .comm-detail-body { padding: 16px; }
  .comm-detail-head, .comm-detail-footer { padding: 14px 16px; }
  .comm-board .actions { flex-wrap: wrap; }
  .comm-thread { max-height: 440px; }
  .project-header-financials { margin: 12px 16px 0; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .project-header-financials .metric { padding: 0 10px; }
  .project-header-financials .metric:nth-child(odd) { padding-left: 0; border-left: 0; }
}

.project-execution-summary { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 24px; padding: 15px 18px; margin: 0 0 12px; background: #edf3e6; border: 1px solid #e0e8d7; border-radius: 8px; }
.project-execution-summary h2 { margin: 0; font-size: 12px; font-weight: 600; color: #527043; }
.project-summary-link { display: inline-flex; align-items: baseline; flex-wrap: wrap; gap: 8px; font-size: 11px; color: #798c6b; }
.project-summary-link strong { font-size: 12px; color: #506d42; font-weight: 550; }
.project-summary-link:hover strong { text-decoration: underline; }
.project-execution-summary > small { margin-left: auto; font-size: 10px; color: #8b9c7e; }
.project-attention { display: flex; align-items: baseline; gap: 12px 18px; padding: 12px 18px; margin: 0 0 20px; background: #fbf7ef; border: 1px solid #efe2cf; border-radius: 8px; font-size: 11px; color: #96754e; }
.project-attention > strong { flex-shrink: 0; font-weight: 600; }
.project-attention > div { display: flex; flex-wrap: wrap; gap: 10px 20px; min-width: 0; }
.project-attention .text-button, .project-attention a { color: #94714b; font-size: 11px; padding: 0; line-height: 1.7; text-align: left; }
.project-attention a:hover { text-decoration: underline; }
.project-execution-summary ~ .comm-board { margin-top: 22px; }
.project-workspace-header .project-description-info { display: block; }
.project-description-info dd { white-space: pre-wrap; overflow-wrap: anywhere; max-height: 220px; overflow-y: auto; line-height: 1.8; }
.project-output-cost { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 20px; padding: 16px 20px; border: 1px solid #e0e8d7; background: #edf3e6; border-radius: 8px; margin-bottom: 18px; font-size: 13px; }
.project-output-cost span { font-size: 11px; color: var(--muted); }
.project-management-heading, .project-filter-notice { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 16px; }
.project-management-heading h2 { margin: 0; font-size: 20px; }
.project-filter-notice { font-size: 12px; color: var(--muted); }
.contract-documents { margin-top: 14px; }
@media (max-width: 760px) {
  .project-execution-summary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 14px; }
  .project-execution-summary h2, .project-execution-summary > small { grid-column: 1 / -1; margin: 0; }
  .project-summary-link { gap: 5px; }
  .project-summary-link strong { overflow-wrap: anywhere; }
  .project-attention { flex-direction: column; padding: 12px 14px; gap: 8px; }
  .project-output-cost { padding: 14px; }
}

.qw-heading, .qw-card-heading, .qw-card-heading > div, .qw-pagination, .qw-selection { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.qw-heading { margin: 22px 0 18px; }
.qw-heading h2 { margin-bottom: 4px; }
.qw-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); background: white; border: 1px solid var(--line); border-radius: 12px; padding: 22px 4px; }
.qw-summary > div { padding: 0 22px; border-right: 1px solid var(--line); min-width: 0; }
.qw-summary > div:last-child { border: 0; }
.qw-summary span, .qw-summary small { display: block; color: var(--muted); font-size: 12px; }
.qw-summary strong { display: block; font-size: clamp(19px, 2vw, 28px); font-weight: 650; margin: 9px 0; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.qw-summary > div:nth-child(3) strong { color: var(--green); }
.qw-tabs { display: flex; gap: 26px; margin: 22px 0 18px; }
.qw-tabs a { padding: 10px 0; font-size: 13px; border-bottom: 2px solid transparent; color: var(--muted); }
.qw-tabs .active { border-color: var(--green); color: var(--green); font-weight: 650; }
.qw-items { overflow: hidden; }
.qw-card-heading { padding: 18px; border-bottom: 1px solid var(--line); }
.qw-switch { display: inline-flex; padding: 3px; background: #f1f4ed; border-radius: 6px; }
.qw-switch button { border: 0; border-radius: 4px; background: none; padding: 5px 10px; font-size: 12px; color: var(--muted); }
.qw-switch .active { background: white; color: var(--ink); box-shadow: 0 1px 4px #263c3410; }
.qw-table { min-width: 880px; }
.qw-table th { background: #f5f7f2; font-size: 11px; white-space: nowrap; }
.qw-table td { padding: 16px 12px; vertical-align: top; font-size: 12px; }
.qw-table td:nth-child(2) { min-width: 210px; max-width: 310px; }
.qw-table td:nth-child(7) { min-width: 130px; max-width: 200px; }
.qw-table small { margin-top: 5px; white-space: normal; }
.qw-table input[type="checkbox"], .qw-import-table input[type="checkbox"] { width: 15px; height: 15px; accent-color: var(--green); }
.qw-row-selected { background: #f4f7f0; }
.qw-group-row { background: #edf2e7; font-weight: 650; }
.qw-group-row td { padding: 10px 16px; }
.qw-pagination { padding: 16px 18px; color: var(--muted); font-size: 12px; }
.qw-selection { background: #edf2e7; padding: 14px 18px; border-top: 1px solid var(--line); font-size: 12px; }
.qw-dialog { width: min(720px, calc(100vw - 28px)); padding: 0; border: 1px solid var(--line); border-radius: 14px; max-height: 92vh; color: var(--ink); }
.qw-dialog.qw-wide { width: min(1100px, calc(100vw - 28px)); }
.qw-dialog.qw-production { margin: 0 0 0 auto; width: min(900px, 100vw); height: 100dvh; max-height: 100dvh; border-radius: 14px 0 0 14px; }
.qw-dialog::backdrop { background: #1d352755; }
.qw-dialog form { margin: 0; }
.qw-dialog header, .qw-dialog footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 24px; background: white; position: sticky; z-index: 2; }
.qw-dialog header { top: 0; border-bottom: 1px solid var(--line); }
.qw-dialog header p { margin: 0; }
.qw-dialog footer { bottom: 0; border-top: 1px solid var(--line); justify-content: flex-end; }
.qw-dialog-body { padding: 22px 24px; }
.qw-dialog-body > label { margin-bottom: 16px; }
.qw-dialog > form > .error-text { padding: 0 24px; }
.qw-package { padding: 20px; margin: 18px 0; border: 1px solid var(--line); border-radius: 10px; background: #f8faf5; }
.qw-package h4 { margin: 20px 0 10px; font-size: 12px; }
.qw-allocations, .qw-members, .qw-mapping { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.qw-mapping { margin: 14px 0; }
.qw-import-table { min-width: 950px; }
.qw-import-table td { padding: 8px; min-width: 100px; vertical-align: top; }
.qw-import-table td:first-child { min-width: 50px; }
.qw-import-table td:nth-child(2) { min-width: 220px; }
.qw-import-table input, .qw-import-table select, .qw-import-table textarea { padding: 8px; font-size: 12px; margin: 3px 0; }
.qw-import-table textarea { min-height: 60px; }
@media (max-width: 760px) {
  .qw-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 0; padding: 18px 0; }
  .qw-summary > div { padding: 0 16px; }
  .qw-summary > div:nth-child(2) { border: 0; }
  .qw-allocations, .qw-members, .qw-mapping { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .qw-dialog-body, .qw-dialog header, .qw-dialog footer { padding: 16px; }
  .qw-package { padding: 14px; }
  .qw-heading .actions { width: 100%; flex-wrap: wrap; }
  .qw-tabs { gap: 20px; }
}
@media (max-width: 400px) {
  .qw-allocations, .qw-members, .qw-mapping { grid-template-columns: 1fr; }
  .qw-summary strong { font-size: 18px; }
  .qw-selection .actions { flex-wrap: wrap; }
}
.knowledge-title{display:flex;flex-direction:column;gap:.25rem;text-align:left;background:none;border:0;padding:0;color:inherit;cursor:pointer}.knowledge-title strong{color:var(--ink)}.knowledge-title small{color:var(--muted);font-size:.78rem;max-width:34rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.knowledge-panel .badge{margin:.1rem .15rem .1rem 0}
 .ai-controls { display: flex; flex-wrap: wrap; align-items: end; gap: 12px; margin: 12px 0; }
 .ai-controls label { min-width: 160px; flex: 1; }
 .ai-controls [hidden] { display: none; }
 .ai-answer { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.8; }
 .ai-facts { white-space: pre-wrap; overflow-wrap: anywhere; max-height: 360px; overflow: auto; font-size: 12px; }
 #aiAskForm textarea { width: 100%; box-sizing: border-box; }
.ai-drawer { position: sticky; top: 0; flex: 0 0 clamp(340px, 32vw, 460px); min-width: 0; height: 100dvh; background: #f5f6f2; border-left: 1px solid var(--line); display: flex; flex-direction: column; }
.workspace.ai-expanded > main { container: ai-main / inline-size; }
.ai-drawer-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px; background: white; border-bottom: 1px solid var(--line); flex-shrink: 0; }
.ai-drawer-head h2 { margin: 0 0 5px; font-size: 18px; }
.ai-drawer-head p { margin: 0; color: var(--muted); font-size: 12px; }
.ai-drawer-body { display: flex; flex-direction: column; overflow: hidden; flex: 1; min-height: 0; }
.ai-drawer-body .page-head { display: block; margin-bottom: 14px; }
.ai-drawer-body .page-head p { font-size: 12px; }
.ai-drawer-body .note { font-size: 12px; line-height: 1.7; overflow-wrap: anywhere; }
.ai-drawer-body .panel-head, .ai-drawer-body .panel-body { padding: 16px; }
.ai-drawer-body .panel { margin-bottom: 16px; }
.ai-drawer-body .panel-head h2 { font-size: 15px; }
.ai-drawer-body .ai-controls { gap: 10px; }
.ai-drawer-body .ai-controls label { flex-basis: 140px; min-width: 0; }
.ai-drawer-body .ai-examples { gap: 6px; }
.ai-drawer-body .ai-examples .button { padding: 8px; font-size: 11px; }
.ai-drawer-body td, .ai-drawer-body th { padding: 10px; font-size: 12px; }
.ai-mini { position: fixed; right: 22px; bottom: 22px; display: flex; align-items: center; gap: 8px; padding: 7px 9px 7px 16px; background: var(--ink); color: white; border: 1px solid #ffffff30; border-radius: 12px; box-shadow: 0 8px 28px #263c3426; z-index: 34; }
.ai-mini > button { background: none; color: inherit; border: 0; padding: 7px 0; font-weight: 600; }
.ai-mini > button span { margin-left: 20px; font-size: 11px; font-weight: 400; opacity: .8; }
.ai-mini .icon-button { width: 30px; padding: 5px; }
@container ai-main (max-width: 760px) {
  .topbar { height: auto; min-height: 69px; padding: 12px 16px; gap: 12px; flex-wrap: wrap; }
  .topbar-end { margin-left: auto; flex-wrap: wrap; }
  .page { padding: 22px 16px; }
  .page-head { flex-wrap: wrap; }
  .grid-two, .quote-layout, .comm-workspace { grid-template-columns: minmax(0, 1fr); }
  .metrics, .project-info-grid, .project-header-financials { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1100px) {
  .workspace.ai-expanded { display: grid; grid-template-columns: 210px minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) minmax(0, 1fr); height: 100dvh; min-height: 0; }
  .workspace.ai-expanded > .sidebar { grid-column: 1; grid-row: 1 / -1; }
  .workspace.ai-expanded > main { grid-column: 2; grid-row: 1; min-height: 0; overflow: auto; }
  .workspace.ai-expanded > .ai-drawer { grid-column: 2; grid-row: 2; position: static; height: auto; min-height: 0; border-top: 1px solid var(--line); }
}
@media (max-width: 760px) {
  .workspace.ai-expanded { grid-template-columns: minmax(0, 1fr); }
  .workspace.ai-expanded > main, .workspace.ai-expanded > .ai-drawer { grid-column: 1; }
}
.ai-selection { position: fixed; right: 24px; bottom: 90px; z-index: 36; box-shadow: 0 6px 24px #263c3430; }
.ai-context { border-bottom: 1px solid var(--line); padding-bottom: 12px; margin-bottom: 12px; }
.ai-context strong { display: block; overflow-wrap: anywhere; margin-bottom: 10px; }
.ai-context textarea { font-size: 12px; background: #f5f6f2; }
.ai-task-draft { padding: 14px; margin: 16px 0; background: #f5f6f2; border: 1px solid var(--line); border-radius: 8px; overflow-wrap: anywhere; }
.ai-service-bar { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 18px; flex-shrink: 0; font-size: 11px; color: var(--muted); }
.ai-service-state { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ai-service-state::before { content: ''; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #bcaa80; margin-right: 7px; }
.ai-service-state.ready::before { background: #74a580; }
.ai-service-details > summary { list-style: none; font-size: 20px; line-height: 1; padding: 3px 6px; }
.ai-service-popover { position: absolute; z-index: 5; top: 100%; left: 12px; right: 12px; max-height: 35dvh; overflow: auto; background: white; border: 1px solid var(--line); border-radius: 12px; padding: 16px; box-shadow: 0 8px 24px #263c341a; }
.ai-service-popover > details { margin-top: 14px; }
.ai-conversation { flex: 1; min-height: 0; padding: 8px 18px 16px; overflow-y: auto; overscroll-behavior: contain; }
.ai-welcome { padding: 48px 4px 24px; }
.ai-welcome-mark { display: block; font-size: 28px; margin-bottom: 16px; }
.ai-welcome h3 { font-size: 20px; font-weight: 550; margin-bottom: 12px; }
.ai-welcome p { color: var(--muted); font-size: 12px; }
.ai-starters { display: grid; gap: 8px; margin-top: 24px; }
.ai-starters button { border: 1px solid var(--line); border-radius: 9px; background: #ffffff90; padding: 12px; color: #597063; font-size: 12px; text-align: left; }
.ai-starters button:hover { background: white; border-color: #b6c5b8; }
.ai-composer { position: relative; flex-shrink: 0; margin: 0 12px; padding: 10px 10px 8px; border: 1px solid #d6ddd2; border-radius: 18px; background: white; box-shadow: 0 3px 12px #263c3408; }
.ai-composer:focus-within { border-color: #92ab9a; box-shadow: 0 0 0 2px #a4c4b126; }
#aiAskForm > textarea { display: block; min-height: 66px; max-height: min(150px, 14dvh); padding: 6px 5px; border: 0; border-radius: 0; resize: none; outline: none; box-shadow: none; line-height: 1.6; font-size: 13px; overflow-y: auto; }
.ai-composer-toolbar { display: flex; align-items: center; gap: 5px; }
.ai-attach { flex: 0 0 30px; width: 30px; height: 30px; border: 0; border-radius: 50%; background: transparent; color: #607367; font-size: 22px; }
.ai-attach:hover, .ai-scope-details > summary:hover { background: #f1f4ee; }
.ai-intent { flex: 0 1 94px; }
.ai-intent select { border: 0; padding: 6px 2px; background: transparent; font-size: 11px; font-weight: 400; }
.ai-scope-details { min-width: 0; }
.ai-scope-details > summary { display: flex; align-items: center; gap: 4px; list-style: none; padding: 7px 5px; border-radius: 6px; font-size: 11px; color: #607367; white-space: nowrap; }
.ai-composer summary::-webkit-details-marker, .ai-service-details > summary::-webkit-details-marker { display: none; }
.ai-composer-popover { position: absolute; z-index: 4; bottom: calc(100% + 8px); left: 0; right: 0; max-height: min(360px, var(--ai-popover-height, 28dvh)); overflow: auto; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: white; box-shadow: 0 -6px 24px #263c3414; }
.ai-composer-popover h3 { font-size: 13px; }
.ai-send { margin-left: auto; flex: 0 0 32px; width: 32px; height: 32px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; color: white; background: var(--ink); font-size: 21px; line-height: 1; }
.ai-send:disabled { background: #dce2d9; color: white; opacity: 1; cursor: default; }
#aiCancel { font-size: 12px; }
.ai-composer .error-text { margin: 6px 4px 0; max-height: 48px; overflow: auto; font-size: 11px; }
.ai-composer .error-text:empty, .ai-progress:empty { display: none; }
.ai-progress { display: block; font-size: 11px; color: var(--muted); margin: 6px 4px 0; }
.ai-composer-footnote { flex-shrink: 0; margin: 7px 8px 10px; text-align: center; font-size: 9px; line-height: 1.5; color: #8b968e; }
.ai-quote-chip { display: flex; align-items: center; max-width: 100%; width: fit-content; gap: 6px; padding: 5px 8px; margin: 0 3px 6px; border-radius: 7px; background: #f0f4ed; border: 1px solid var(--line); }
.ai-quote-chip > details { min-width: 0; }
.ai-quote-chip summary { max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; list-style: none; font-size: 11px; color: #597063; }
.ai-quote-chip > button { border: 0; background: none; color: #7b8981; font-size: 16px; line-height: 1; padding: 0 2px; }
.ai-user-message { margin: 14px 0 18px 24px; padding: 12px 14px; background: #e9eee4; border-radius: 14px 14px 4px 14px; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 13px; line-height: 1.7; }
.ai-user-message details { font-size: 11px; color: #718073; margin-top: 8px; }
.ai-user-message details p { max-height: 140px; overflow: auto; margin: 8px 0 0; }
.ai-reply > .panel { background: transparent; border: 0; border-radius: 0; }
.ai-reply .panel-head, .ai-reply .panel-body { padding: 0; }
.ai-reply .panel-head { margin-bottom: 12px; }
.ai-reply .panel-head h2 { font-size: 13px; }
.ai-reply .panel-head p { font-size: 10px; }
.ai-reply .ai-answer { font-size: 13px; }
.ai-sources { font-size: 11px; margin: 12px 0; color: var(--muted); }
.ai-sources > summary { margin-bottom: 12px; }
.ai-turn-error { font-size: 12px; color: #a46345; line-height: 1.7; }
@media (max-width: 600px) {
  .ai-drawer { width: 100%; }
  .ai-conversation { padding: 4px 14px 12px; }
  .ai-welcome { padding: 16px 4px; }
  .ai-drawer-head { padding: 14px 16px; }
  .ai-mini { right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); }
  #aiToggle { padding: 7px 9px; }
}
.comm-context .comm-project-link { display: inline-block; font-size: 20px; font-weight: 700; line-height: 1.5; overflow-wrap: anywhere; text-decoration: none; }
.comm-context .comm-project-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.comm-context .comm-project-link:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; border-radius: 3px; }
.counterparty-filters { margin: 8px 0 20px; }
.counterparty-status { display: flex; gap: 28px; border-bottom: 1px solid var(--line); margin-bottom: 20px; }
.counterparty-status a { padding: 10px 0 12px; border-bottom: 2px solid transparent; color: #76857b; text-decoration: none; }
.counterparty-status a[aria-current="page"] { color: #263e34; border-bottom-color: #526e59; font-weight: 600; }
.counterparty-kind { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.counterparty-kind > .hint:first-child { margin-right: 8px; }
.counterparty-kind button { padding: 7px 18px; border: 1px solid transparent; border-radius: 6px; background: transparent; color: #627469; font: inherit; cursor: pointer; }
.counterparty-kind button[aria-pressed="true"] { background: #e8eee5; color: #36543e; font-weight: 600; }
.counterparty-kind button:hover { background: #eef2eb; }
.counterparty-kind button:focus-visible { outline: 2px solid #526e59; outline-offset: 2px; }
.counterparty-count { margin-left: auto; }
.counterparty-filter-note { margin: 12px 0 0; }
.counterparty-info-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px 32px; margin: 4px 0 0; }
.counterparty-info-grid > div { min-width: 0; }
.counterparty-info-grid dt { margin: 0 0 8px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.counterparty-info-grid dd { margin: 0; font-size: 15px; line-height: 1.6; overflow-wrap: anywhere; white-space: pre-wrap; }
.counterparty-info-dates { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.counterparty-info-dates dd { font-size: 13px; font-variant-numeric: tabular-nums; }
@media (max-width: 900px) {
  .counterparty-info-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 24px; }
}
@media (max-width: 560px) {
  .counterparty-info-grid { grid-template-columns: minmax(0, 1fr); gap: 18px; }
}
.release-workspace { max-width: 1100px; }
.release-versions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0 0 24px; gap: 16px; }
.release-versions > div { padding: 18px 22px; background: #eef1eb; border-radius: 10px; }
.release-versions dt { color: var(--muted); font-size: 12px; margin-bottom: 8px; }
.release-versions dd { margin: 0; font-size: 24px; font-weight: 600; line-height: 1.3; font-variant-numeric: tabular-nums; }
.release-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 22px; }
.release-filters > span { color: var(--muted); font-size: 12px; margin-right: 10px; }
.release-filters button { border: 0; background: transparent; border-radius: 6px; padding: 8px 16px; color: #627469; font: inherit; cursor: pointer; }
.release-filters button[aria-pressed="true"] { background: #e5eddf; color: #36543e; font-weight: 600; }
.release-filters button:hover { background: #eef2eb; }
.release-filters button:focus-visible { outline: 2px solid #526e59; outline-offset: 2px; }
.release-list { display: grid; gap: 20px; }
.release-list .release-card { margin: 0; }
.release-card-head { padding: 24px 28px 18px; border-bottom: 1px solid var(--line); }
.release-card-head > div { display: flex; align-items: baseline; flex-wrap: wrap; gap: 12px; }
.release-card-head h2 { margin: 0; font-size: 18px; line-height: 1.5; }
.release-version { color: #426448; background: #edf3e8; border-radius: 5px; padding: 3px 8px; font-size: 13px; font-weight: 600; }
.release-card-head > p { display: flex; gap: 16px; margin: 12px 0 0; color: var(--muted); font-size: 12px; }
.release-card-content { padding: 20px 28px 24px; }
.release-card-content ul { padding-left: 20px; margin: 0 0 22px; line-height: 1.8; }
.release-card-content li + li { margin-top: 6px; }
.release-guidance, .release-impact { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 12px; align-items: baseline; }
.release-card-content h3 { font-size: 12px; margin: 0; font-weight: 600; }
.release-card-content p { margin: 0; line-height: 1.8; overflow-wrap: anywhere; }
.release-guidance h3 { color: var(--muted); }
.release-impact { background: #f2f5ee; border-radius: 8px; padding: 14px 16px; margin-top: 18px; color: #637758; font-size: 12px; }
@media (max-width: 600px) {
  .release-versions { gap: 8px; }
  .release-versions > div { padding: 14px 10px; }
  .release-versions dd { font-size: 20px; }
  .release-card-head { padding: 20px 18px 16px; }
  .release-card-content { padding: 18px; }
  .release-guidance, .release-impact { grid-template-columns: minmax(0, 1fr); gap: 6px; }
}
.operation-time { white-space: nowrap; font-variant-numeric: tabular-nums; }
