@font-face {
  font-family: Geist;
  src: url('/vendor/geist/Geist-Variable.woff2') format('woff2');
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  font-family: Geist, "Segoe UI", system-ui, sans-serif;
  background: #f5f7f3;
  --canvas: #f5f7f3;
  --ink: #182720;
  --forest: #102b22;
  --green: #16643f;
  --green-hover: #104f33;
  --muted: #53665b;
  --line: #dce6de;
  --soft-line: #e8eee9;
  --radius: .84rem;
  --small-radius: .52rem;
}
body { color: var(--ink); }
[hidden] { display: none !important; }
:focus-visible { outline-color: #21764c; }
.shell { grid-template-columns: 14.25rem minmax(0,1fr); }
.sidebar { border-right: 1px solid #254638; }
.sidebar > .brand { margin: 0 .76rem .55rem; padding-inline: .48rem; min-height: 4.05rem; gap: .7rem; }
.brand-mark { background: #a9edbb; border-radius: .62rem; }
.sidebar nav { border-top: 1px solid #28483b; padding: .6rem .72rem .8rem; }
.nav-group { padding-bottom: .55rem; }
.nav-group > p { font-weight: 570; margin: .36rem .53rem .34rem; color: #a8c7b6; font-size: .76rem; }
.nav-link { gap: .64rem; padding: .38rem .59rem; min-height: 2.08rem; font-size: .86rem; }
.nav-link .icon { color: #b2cebf; }
.nav-link[aria-current] { color: #143d2a; background: #c5f2d0; font-weight: 650; }
.nav-link[aria-current] .icon { color: #1c5c39; }
.sidebar-foot { min-height: 3.8rem; background: #112f24; }
.topbar { position: sticky; top: 0; z-index: 6; min-height: 3.6rem; background: #fff; padding-inline: clamp(1rem,3vw,2.25rem); }
.top-end { display: flex; align-items: center; gap: .55rem; }
.topbar .top-command { min-height: 2.25rem; color: #465d4f; background: #f6f8f5; border-color: #e0e8e1; }
.topbar .top-command:hover { background: #edf5ef; border-color: #b8cfbe; }
.topbar .top-link { min-height: 2.25rem; }
kbd { display: inline-block; font: inherit; font-size: .71rem; font-weight: 550; white-space: nowrap; padding: .13rem .28rem; border: 1px solid #dbe6dd; border-radius: .31rem; color: #52665a; background: #fff; line-height: 1.3; }
.top-command kbd { margin-left: .45rem; }
.main { max-width: 91rem; padding: clamp(1rem,3vw,2.25rem); gap: 1rem; }
.page-heading { align-items: center; gap: .7rem 1rem; padding: .28rem 0 .68rem; }
.page-heading h1 { font-size: clamp(2rem,3.2vw,2.75rem); letter-spacing: -.052em; font-weight: 670; }
.page-heading h1:focus { outline: none; }
.page-heading p { max-width: 41rem; font-size: .96rem; line-height: 1.5; margin-top: .4rem; }
.button { font-weight: 570; min-height: 2.55rem; color: #254537; }
.button.primary { font-weight: 650; box-shadow: 0 1px 2px #12352426; }
.button.small { min-height: 2.1rem; }
.panel { box-shadow: none; border-radius: var(--radius); }
.panel-title { border-bottom-color: var(--line); }
.panel-title h2 { font-size: 1rem; font-weight: 680; }
.panel-title p { font-size: .84rem; }
.empty-icon { background: #eaf3eb; color: #286649; }
.empty { gap: .5rem; }
.results-panel .empty { min-height: 12rem; }
.empty > .button { margin-top: .22rem; }
.result-count { font-variant-numeric: tabular-nums; }

.operations-sheet { display: grid; grid-template-columns: minmax(0,1.1fr) minmax(0,1fr); background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.today-sheet { min-width: 0; position: relative; padding: 1.2rem 1.12rem .5rem; background: #e9f3eb; }
.today-sheet::before { content: ""; position: absolute; width: 3px; top: 1.2rem; bottom: 1rem; left: 0; background: #36835a; border-radius: 0 3px 3px 0; }
.today-sheet header { display: flex; align-items: baseline; flex-wrap: wrap; justify-content: space-between; gap: .4rem; padding: 0 .13rem .75rem; }
.today-sheet h2 { font-size: 1.47rem; font-weight: 680; }
.today-sheet time { color: #365845; font-size: .82rem; font-weight: 560; }
.today-row { display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: .65rem; padding: .78rem .1rem; border-top: 1px solid #cfe2d3; }
.today-icon { display: grid; place-items: center; width: 2rem; height: 2rem; background: #d7eadb; color: #245c40; border-radius: .5rem; }
.today-row strong { font-size: .91rem; font-weight: 670; }
.today-row p { color: #3f6050; font-size: .83rem; line-height: 1.42; margin-top: .22rem; overflow-wrap: anywhere; }
.today-row .button { white-space: nowrap; }
.pipeline-sheet { min-width: 0; padding: 1.2rem 1.16rem .7rem; border-left: 1px solid var(--line); }
.pipeline-sheet header { display: flex; justify-content: space-between; align-items: center; gap: .65rem; }
.pipeline-sheet header h2 { font-size: 1.11rem; font-weight: 675; }
.pipeline-sheet .bar-list { padding: .7rem .1rem .25rem; }
.pipeline-empty { display: grid; align-content: center; justify-items: start; min-height: 8.1rem; gap: .48rem; }
.pipeline-empty .icon { color: #468161; }
.pipeline-empty strong { font-size: .95rem; }
.pipeline-empty p { font-size: .85rem; color: var(--muted); }
.metrics { gap: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.metric { min-height: 6.45rem; border: 0; border-radius: 0; box-shadow: none; padding: .85rem 1rem; background: #fff; gap: .32rem; }
.metric + .metric { border-left: 1px solid var(--line); }
.metric-link { transition: background .15s var(--ease); }
.metric-link:hover { transform: none; box-shadow: none; background: #eff7f0; }
.metric-link:focus-visible { outline-offset: -4px; }
.metric-icon { background: none; width: 1.3rem; color: #4c795d; }
.metric > strong { font-variant-numeric: tabular-nums; font-size: clamp(1.3rem,2.4vw,1.94rem); }
.metric-top { font-weight: 590; gap: .35rem; }
.metric small { font-size: .79rem; }
.priority-sheet { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.priority-section { display: grid; grid-template-columns: minmax(11rem,.55fr) minmax(0,1fr); min-height: 4.6rem; gap: .6rem 1.25rem; align-items: start; padding: 1rem; }
.priority-section + .priority-section { border-top: 1px solid var(--line); }
.priority-section header { display: flex; align-items: center; gap: .55rem; }
.priority-section h2 { font-size: .95rem; }
.priority-section header span { background: #e8f3e9; color: #255840; min-width: 1.35rem; border-radius: .4rem; text-align: center; font-size: .77rem; padding: .13rem .23rem; }
.priority-section > p { font-size: .89rem; color: var(--muted); }
.priority-section .item-list { padding: 0; }
.priority-section .item-list li:first-child button { padding-top: 0; }

.inventory-summary { background: #fff; border-color: var(--line); }
.inventory-summary > div { padding-block: .6rem; gap: .5rem; }
.inventory-summary > div + div { border-color: var(--line); }
.inventory-summary strong { color: var(--ink); font-size: 1.2rem; }
.inventory-summary span { color: var(--muted); }
.register-tools .toolbar { padding-block: .65rem; }
.portfolio-map .panel-title { padding-block: .72rem; }
.portfolio-map .map-surface { height: clamp(11rem,26vw,16rem); }
.table-wrap { scrollbar-color: #a3b9aa #eef3ed; }
table { font-size: .875rem; }
thead th { background: #eff4ef; color: #445a4c; font-weight: 610; }
tbody td { vertical-align: middle; }
.numeric-cell { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.text-button { font-weight: 640; }
.board { gap: .72rem; }
.lane { background: #eaf0ea; border-color: #d9e5dc; }
.lane h2 { padding-bottom: .8rem; }
.lane-count { background: #dceae0; }
.lane-empty { border-color: #bfcec3; }
.lead-card { box-shadow: 0 1px 2px #132f1910; }
.dialog-title h2 { font-size: 1.17rem; }
.dialog-header { border-bottom-color: var(--line); }
.dialog-header p { font-size: .79rem; }
.dialog-actions { background: #fafcf9; }
.property-steps { background: #eff4ef; }
.map-popup { font-family: Geist, "Segoe UI", system-ui, sans-serif; }

.wa-view { gap: .72rem; }
.wa-banner { padding: .62rem .8rem; background: #fff; }
.wa-status { display: flex; align-items: baseline; gap: .53rem .7rem; flex-wrap: wrap; }
.wa-signal { flex: 0 0 auto; font-size: .77rem; font-weight: 670; color: #67511f; background: #f6eed8; border-radius: .4rem; padding: .22rem .42rem; }
.wa-signal:empty { display: none; }
.wa-signal[data-mode="ready"] { color: #255840; background: #e2f1e6; }
.wa-layout { gap: 0; grid-template-columns: minmax(14rem,.82fr) minmax(0,1.55fr); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: white; }
.wa-layout > .panel { border: 0; border-radius: 0; }
.wa-inbox { border-right: 1px solid var(--line) !important; }
.wa-conversation { min-width: 0; }
.wa-messages { background: #f6f8f4; padding: .85rem 1rem; }
.wa-thread[aria-current] { box-shadow: inset 3px 0 #3a7854; }
.wa-idle { margin: auto; align-self: center; text-align: center; color: var(--muted); display: grid; gap: .4rem; line-height: 1.45; }
.wa-idle strong { color: var(--ink); font-size: .97rem; font-weight: 640; }
.wa-idle p { font-size: .86rem; max-width: 23rem; }
.wa-back { display: none; min-height: 2.75rem; padding: .64rem .82rem; color: var(--green); font-size: .875rem; font-weight: 620; border-bottom: 1px solid var(--line); }
.wa-banner button { align-self: start; }
.wa-thread:focus-visible { outline-offset: -3px; }
.wa-empty .button { margin-top: .55rem; }
.wa-composer { background: #fff; }

.catalog { max-width: 72rem; gap: 1.25rem; padding-top: clamp(1.7rem,4vw,3.4rem); }
.catalog-top { background: #102b22; color: #fff; }
.catalog-top .brand, .catalog-top .brand small { color: #fff; }
.catalog .page-heading { border-bottom: 1px solid var(--line); padding-bottom: 1rem; }
.catalog .page-heading h1 { font-size: clamp(2rem,5vw,3.1rem); }
.property-info > strong { font-variant-numeric: tabular-nums; }

dialog.command-dialog { width: min(34rem,calc(100% - 1.4rem)); }
dialog.command-dialog[open] { grid-template-rows: auto auto auto minmax(0,1fr) auto; }
.command-header { display: flex; justify-content: space-between; align-items: center; gap: .6rem; padding: .78rem .9rem .52rem; }
.command-header h2 { font-weight: 680; }
.command-search { margin: 0 .88rem .65rem; width: auto; }
.command-empty { padding: .68rem .9rem; color: var(--muted); font-size: .9rem; }
.command-list { max-height: min(23rem,50dvh); padding: 0 .46rem .42rem; overflow-y: auto; }
.command-option { display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: .65rem; padding: .65rem .58rem; border-radius: .45rem; cursor: pointer; font-size: .89rem; }
.command-option[aria-selected="true"], .command-option:hover { background: #e7f3e8; color: #1b4a33; }
.command-option small { color: var(--muted); font-size: .75rem; }
.command-footer { display: flex; justify-content: end; gap: .65rem; border-top: 1px solid var(--line); color: var(--muted); background: #f7faf6; padding: .58rem .82rem; font-size: .78rem; }
.command-footer kbd + kbd { margin-left: .18rem; }

@media (max-width: 72rem) {
  .metric:nth-child(3) { border-left: 0; }
  .metric:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 56rem) {
  .shell { grid-template-columns: minmax(0,1fr); }
  .sidebar { top: 3.6rem; height: calc(100dvh - 3.6rem); }
  .show-nav .drawer-backdrop { top: 3.6rem; }
  .sidebar .nav-link { min-height: 2.75rem; }
}
@media (max-width: 47rem) {
  .wa-layout { display: block; }
  .wa-inbox { border-right: 0 !important; }
  .wa-view[data-conversation="closed"] .wa-conversation,
  .wa-view[data-conversation="open"] .wa-inbox { display: none; }
  .wa-threads { max-height: min(60dvh,32rem); }
  .wa-back { display: block; }
}
@media (max-width: 40rem) {
  .topbar { gap: .46rem; }
  .top-end { gap: .35rem; }
  .top-command span:not(.icon), .top-command kbd { display: none; }
  .topbar .top-command { width: 2.75rem; }
  .topbar .top-command, .topbar .top-link, .topbar .menu-toggle { min-height: 2.75rem; }
  .main { gap: .85rem; }
  .page-heading { align-items: start; }
  .page-heading .button { min-height: 2.75rem; }
  .operations-sheet { grid-template-columns: minmax(0,1fr); }
  .pipeline-sheet { border-left: 0; border-top: 1px solid var(--line); }
  .today-row { grid-template-columns: auto minmax(0,1fr); }
  .today-row .button { grid-column: 2; }
  .metric { min-height: 6.4rem; padding: .75rem; }
  .metric-top { font-size: .83rem; }
  .priority-section { grid-template-columns: minmax(0,1fr); padding: .8rem; }
  .register-tools select { flex: 1 1 9rem; }
  table, tbody { display: block; }
  thead { position: absolute; overflow: hidden; clip-path: inset(50%); width: 1px; height: 1px; }
  tbody tr { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .54rem .74rem; border-top: 1px solid var(--line); padding: .72rem .83rem; }
  tbody td { display: grid; gap: .25rem; min-width: 0; border: 0; padding: 0; }
  tbody td:first-child { grid-column: 1/-1; min-width: 0; }
  tbody td:not(:first-child)::before { content: attr(data-label); color: var(--muted); font-size: .77rem; white-space: normal; }
  tbody .numeric-cell { text-align: left; white-space: normal; }
  tbody tr:nth-child(even) { background: #fbfdfb; }
  tbody tr:nth-child(even) td, tbody tr:hover td { background: transparent; }
  .property-cell { min-width: 0; }
  .wa-thread { min-height: 3.3rem; }
  .wa-banner { align-items: start; }
}

.demand-form, .demand-list, .demand-result { padding: clamp(1rem, 3vw, 1.65rem); }
.demand-form { display: grid; gap: .8rem; }
.demand-filters:not([hidden]) { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 10rem), 1fr)); gap: .85rem; }
.demand-form .demand-filters label { display: grid; gap: .4rem; font-size: .9rem; }
.demand-filters :is(select,input) { width: 100%; min-width: 0; padding: .65rem; border: 1px solid var(--line); border-radius: .55rem; font: inherit; }
.demand-form label { font-size: 1.15rem; font-weight: 650; }
.demand-form textarea { width: 100%; resize: vertical; min-height: 5rem; padding: .8rem; line-height: 1.55; border: 1px solid var(--line); border-radius: .55rem; }
.demand-actions, .demand-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.demand-actions span, .demand-row small, .demand-history > p { color: var(--muted); font-size: .88rem; }
.demand-notice:empty { display: none; }
.demand-work { display: grid; grid-template-columns: minmax(15rem, 1fr) minmax(0, 1.8fr); align-items: start; gap: 1rem; margin-top: 1rem; }
.demand-work:has(.demand-result[hidden]) { grid-template-columns: 1fr; }
.demand-result[hidden] { display: none; }
.demand-history, .demand-result > * + * { margin-top: .9rem; }
.demand-row { width: 100%; align-items: start; flex-direction: column; gap: .3rem; padding: .8rem; text-align: left; color: var(--ink); background: white; border: 0; border-bottom: 1px solid var(--line); }
.demand-row span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.demand-row[aria-pressed=true] { background: var(--mint); border-radius: .45rem; }
.demand-result { line-height: 1.55; overflow-wrap: anywhere; }
.demand-result .demand-query { color: var(--muted); }
.demand-result ul, .demand-hits { padding-left: 1.35rem; }
.demand-hits li { padding: .7rem 0; border-top: 1px solid var(--line); }
.demand-hits strong, .demand-hits a { display: block; }
@media (max-width: 740px) {
  .demand-work { grid-template-columns: minmax(0, 1fr); }
  .demand-actions { align-items: stretch; flex-direction: column; }
  .demand-history { max-height: 14rem; overflow-y: auto; }
}

/* Login, convite e papéis */
.login-screen { min-height: 100dvh; display: grid; place-items: center; padding: 1.25rem; background: #f3f7f4; }
.login-card { width: min(100%, 24rem); background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem 1.35rem; display: grid; gap: .9rem; }
.login-brand { display: flex; align-items: center; gap: .7rem; font-weight: 700; color: #143d2a; }
.login-brand small { display: block; font-size: .66rem; letter-spacing: .14em; color: #52665a; }
.login-brand .brand-mark { background: #a9edbb; }
.login-card h1 { font-size: 1.6rem; }
.login-card h1:focus { outline: none; }
.login-lead { color: #52665a; font-size: .92rem; }
.login-form { display: grid; gap: .85rem; }
.login-field { display: grid; gap: .3rem; font-size: .88rem; font-weight: 600; }
.login-field input { width: 100%; }
.login-field small { color: #52665a; font-weight: 400; }
.login-form .form-error { margin: 0; }
.login-form .button.primary { min-height: 2.9rem; }
.sidebar-foot .sign-out { margin-left: auto; color: #254537; }
.read-only-note { align-self: center; color: #52665a; font-size: .88rem; }
.activity-author { display: block; color: #52665a; font-size: .78rem; }
fieldset.property-fields { border: 0; margin: 0; padding: 0; min-width: 0; }
.reserved-owner { margin: 0 0 .9rem; padding: .8rem .9rem; border-radius: var(--small-radius); background: #eaf3eb; color: #143d2a; }
.reserved-owner p { margin-top: .25rem; font-size: .9rem; }
.form-error .button { margin-left: .4rem; vertical-align: middle; }
