/* Marketing renders of the PlanWatch client workspace (the real product UI).
   Every metric below is taken from its workspace.css / stat-tile.css so the page shows the real product's look.
   Namespaced .wx-* so nothing collides with page styles. Product type stays 12 / 13 / 14 / 24. */

/* The client workspace tokens, verbatim values (public/assets/workspace.css :root --ws-*). Product UI only. */
.wx, .wx-scope {
  --ws-ink: #292929; --ws-ink-2: #5d5d5d; --ws-ink-3: #9e9e9e;
  --ws-surface: #ffffff; --ws-bg: #f7f7f7; --ws-hover: #f3f3f3; --ws-line: #e5e5e5; --ws-line-soft: #efefef;
  --ws-accent: #f59e0b; --ws-accent-strong: #d97706; --ws-accent-soft: #fef3c7; --ws-accent-ink: #92400e; --ws-accent-wash: #fffbeb;
  --ws-success: #22c55e; --ws-success-ink: #15803d; --ws-success-wash: #ecfdf3;
  --ws-stage-new: #c9c9c9; --ws-stage-letter: #fcd34d; --ws-stage-contacted: #f59e0b; --ws-stage-quoted: #b45309; --ws-stage-won: #22c55e; --ws-stage-closed: #e5e5e5;
  --ws-font: "SF Pro Text", "SF Pro Display", "SF Pro", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --ws-ease: cubic-bezier(0.22, 1, 0.36, 1);
}
:root[data-theme="dark"] .wx, .theme-dark .wx {
  --ws-ink: #ededed; --ws-ink-2: #a5a5a5; --ws-ink-3: #767676;
  --ws-surface: #1c1c1c; --ws-bg: #141414; --ws-hover: #262626; --ws-line: #2e2e2e; --ws-line-soft: #262626;
  --ws-accent-soft: rgba(245, 158, 11, .16); --ws-accent-ink: #fcd34d; --ws-accent-wash: rgba(245, 158, 11, .10); --ws-success-wash: rgba(34, 197, 94, .14); --ws-success-ink: #4ade80;
}

.wx {
  position: relative; display: grid; grid-template-columns: var(--wx-side, 216px) minmax(0, 1fr);
  background: var(--ws-bg); border-radius: 24px; overflow: hidden; isolation: isolate; text-align: left;
  font-family: var(--ws-font); font-size: 14px; line-height: 1.45; letter-spacing: -0.15px; color: var(--ws-ink);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .05), 0 30px 80px -30px rgba(0, 0, 0, .22);
}
.wx-host { container-type: inline-size; }
.wx-scope { font-family: var(--ws-font); letter-spacing: -0.15px; color: var(--ws-ink); }
.wx--noside { grid-template-columns: minmax(0, 1fr); }
.wx--noside .wx-side { display: none; }
.wx svg.wi { width: 14px; height: 14px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.wx svg.wi.l { width: 20px; height: 20px; }

/* sidebar */
.wx-side { padding: 14px 8px 14px 10px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.wx-brand { display: flex; align-items: center; gap: 8px; padding: 2px 8px; font-weight: 500; font-size: 14px; }
.wx-brand svg { width: 20px; height: 20px; flex: none; }
.wx-ws { display: flex; align-items: center; gap: 10px; padding: 9px; border-radius: 16px; background: var(--ws-surface); box-shadow: 0 1px 2px rgba(0, 0, 0, .04); min-width: 0; }
.wx-av { flex: none; width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: var(--ws-ink); color: #fff; font-size: 12px; font-weight: 500; }
.wx-ws b { display: block; font-size: 13px; font-weight: 500; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wx-ws small { display: block; font-size: 12px; color: var(--ws-ink-3); white-space: nowrap; }
.wx-navg { display: flex; flex-direction: column; gap: 2px; }
.wx-navl { color: var(--ws-ink-3); font-size: 12px; padding: 6px 10px 2px; }
.wx-nav { display: flex; align-items: center; gap: 8px; min-height: 30px; padding: 5px 10px; border-radius: 8px; color: var(--ws-ink-2); font-size: 13px; white-space: nowrap; transition: background-color 150ms var(--ws-ease), color 150ms var(--ws-ease); }
.wx-nav .wi { color: var(--ws-ink-3); }
.wx-nav.sub { padding-left: 24px; }
.wx-nav .t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.wx-nav .n { color: var(--ws-ink-3); font-size: 12px; font-variant-numeric: tabular-nums; }
.wx-nav.on { background: var(--ws-surface); color: var(--ws-ink); font-weight: 500; box-shadow: 0 1px 2px rgba(0, 0, 0, .05); }
.wx-nav.on .wi { color: var(--ws-ink); }
.wx-badge { color: var(--ws-accent-ink); background: var(--ws-accent-soft); border-radius: 999px; padding: 1px 8px; font-size: 12px; font-weight: 500; white-space: nowrap; }
.wx-badge.ok { color: var(--ws-success-ink); background: var(--ws-success-wash); }

/* main panel */
.wx-main { position: relative; margin: 8px 8px 8px 0; background: var(--ws-surface); border-radius: 18px; box-shadow: 0 8px 30px rgba(0, 0, 0, .06); min-width: 0; overflow: hidden; display: flex; flex-direction: column; }
.wx--noside .wx-main { margin: 8px; }
.wx-top { display: flex; align-items: center; gap: 8px; min-height: 46px; padding: 8px 22px; border-bottom: 1px solid var(--ws-line-soft); font-size: 13px; color: var(--ws-ink-3); white-space: nowrap; }
.wx-top b { color: var(--ws-ink); font-weight: 500; }
.wx-top .sp { flex: 1; }
.wx-top .help { display: inline-flex; align-items: center; gap: 6px; color: var(--ws-ink-2); }
.wx-content { position: relative; flex: 1; min-height: 0; overflow: hidden; }
.wx-page { position: absolute; inset: 0; padding: 20px 24px 0; opacity: 0; visibility: hidden; transition: opacity 260ms var(--ws-ease), visibility 0s linear 260ms; }
.wx-page.on { opacity: 1; visibility: visible; transition: opacity 340ms var(--ws-ease), visibility 0s; }
.wx-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 8px 20px; margin-bottom: 14px; }
.wx-eyebrow { color: var(--ws-ink-3); font-size: 12px; margin-bottom: 4px; }
.wx-h1 { margin: 0; font-size: 24px; font-weight: 500; line-height: 1.2; letter-spacing: -0.3px; color: var(--ws-ink); }
.wx-sub { margin-top: 4px; color: var(--ws-ink-2); font-size: 14px; max-width: 62ch; }
.wx-patch { display: flex; align-items: center; gap: 8px; color: var(--ws-ink-2); font-size: 13px; white-space: nowrap; }
.wx-patch b { color: var(--ws-ink); font-weight: 500; }
.wx-patch .upd { color: var(--ws-ink-3); }

/* stat tiles (stat-tile.css) */
.wx-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.wx-stat { padding: 14px 16px; border: 1px solid var(--ws-line); border-radius: 16px; background: var(--ws-surface); display: grid; gap: 4px; min-width: 0; }
.wx-stat p { margin: 0; }
.wx-stat .l { color: var(--ws-ink-3); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wx-stat .v { color: var(--ws-ink); font-size: 24px; font-weight: 500; line-height: 1.15; font-variant-numeric: tabular-nums; }
.wx-stat .f { color: var(--ws-ink-3); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* focus: what to do next / since you joined */
.wx-focus { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; margin-bottom: 14px; }
.wx-card { padding: 16px; border: 1px solid var(--ws-line); border-radius: 16px; background: var(--ws-surface); display: grid; gap: 12px; }
.wx-card-t { font-size: 14px; font-weight: 500; }
.wx-actions { display: grid; gap: 8px; }
.wx-action { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 16px; background: var(--ws-bg); }
.wx-action-i { width: 36px; height: 36px; border-radius: 8px; display: grid; place-items: center; background: var(--ws-surface); color: var(--ws-accent-strong); }
.wx-action b { display: block; font-weight: 500; font-size: 14px; }
.wx-action small { display: block; margin-top: 1px; color: var(--ws-ink-2); font-size: 12px; }
.wx-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 30px; padding: 5px 13px; border-radius: 999px; border: 1px solid var(--ws-line); background: var(--ws-surface); color: var(--ws-ink); font-size: 13px; font-weight: 500; white-space: nowrap; transition: background-color 150ms var(--ws-ease), transform 150ms; }
.wx-btn.dark { background: var(--ws-ink); border-color: var(--ws-ink); color: #fff; }
.wx-btn.sm { min-height: 26px; padding: 3px 11px; font-size: 12px; }
.wx-btn.press { transform: scale(.96); }
.wx-since { display: flex; flex-wrap: wrap; gap: 4px 20px; color: var(--ws-ink-2); font-size: 14px; }
.wx-since b { color: var(--ws-ink); font-size: 24px; font-weight: 500; font-variant-numeric: tabular-nums; margin-right: 4px; }
.wx-pipe { display: flex; gap: 2px; height: 6px; border-radius: 999px; overflow: hidden; background: var(--ws-line-soft); }
.wx-pipe span { display: block; height: 100%; min-width: 3px; transition: flex-grow 600ms var(--ws-ease); }
.wx-legend { display: flex; flex-wrap: wrap; gap: 4px 14px; color: var(--ws-ink-2); font-size: 12px; }
.wx-legend span { display: inline-flex; align-items: center; gap: 6px; }
.wx-legend b { color: var(--ws-ink); font-weight: 500; font-variant-numeric: tabular-nums; }

/* stage dots + status pill (the workspace's .ws-status / .ws-pill) */
.wx-dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; flex: none; background: var(--ws-stage-new); }
[data-st="letter_sent"] > .wx-dot, .wx-dot[data-st="letter_sent"] { background: var(--ws-stage-letter); }
[data-st="contacted"] > .wx-dot, .wx-dot[data-st="contacted"] { background: var(--ws-stage-contacted); }
[data-st="quoted"] > .wx-dot, .wx-dot[data-st="quoted"] { background: var(--ws-stage-quoted); }
[data-st="won"] > .wx-dot, .wx-dot[data-st="won"] { background: var(--ws-stage-won); }
.wx-pill { display: inline-flex; align-items: center; gap: 7px; min-height: 26px; padding: 3px 26px 3px 10px; border-radius: 999px; background: var(--ws-hover); color: var(--ws-ink); font-size: 13px; font-weight: 500; white-space: nowrap; position: relative; transition: background-color 260ms var(--ws-ease), color 260ms var(--ws-ease); }
.wx-pill::after { content: ""; position: absolute; right: 10px; top: 50%; width: 6px; height: 6px; margin-top: -5px; border-right: 1.6px solid var(--ws-ink-3); border-bottom: 1.6px solid var(--ws-ink-3); transform: rotate(45deg); }
.wx-pill[data-st="won"] { background: var(--ws-success-wash); color: var(--ws-success-ink); }
.wx-pill[data-st="not_interested"] { background: transparent; color: var(--ws-ink-3); box-shadow: inset 0 0 0 1px var(--ws-line); }
.wx-pill[data-st="not_interested"] > .wx-dot { background: transparent; box-shadow: inset 0 0 0 1.5px var(--ws-stage-new); }
.wx-pill.flip { animation: wxflip 420ms var(--ws-ease); }
@keyframes wxflip { 0% { transform: scale(1); } 40% { transform: scale(1.06); } 100% { transform: scale(1); } }

/* view tabs + toolbar */
.wx-viewbar { display: flex; align-items: center; gap: 10px; padding-bottom: 8px; }
.wx-tabs { flex: 1; min-width: 0; display: flex; gap: 2px; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); }
.wx-tab { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; color: var(--ws-ink-2); font-size: 13px; white-space: nowrap; }
.wx-tab .wi { color: var(--ws-ink-3); }
.wx-tab .c { color: var(--ws-ink-3); font-size: 12px; }
.wx-tab.on { background: var(--ws-hover); color: var(--ws-ink); font-weight: 500; }
.wx-tab.on .wi { color: var(--ws-ink); }
.wx-toolbar { display: flex; flex-wrap: nowrap; align-items: center; gap: 8px; padding-bottom: 8px; border-bottom: 1px solid var(--ws-line-soft); overflow: hidden; }
.wx-search { position: relative; flex: 1 1 180px; max-width: 260px; display: flex; align-items: center; gap: 8px; min-height: 32px; padding: 5px 10px; border: 1px solid var(--ws-line); border-radius: 8px; color: var(--ws-ink-3); font-size: 13px; white-space: nowrap; overflow: hidden; }
.wx-select { display: inline-flex; align-items: center; gap: 8px; min-height: 32px; padding: 5px 10px; border: 1px solid var(--ws-line); border-radius: 8px; font-size: 13px; color: var(--ws-ink); white-space: nowrap; }
.wx-select::after { content: ""; width: 6px; height: 6px; margin: -3px 0 0 6px; border-right: 1.5px solid var(--ws-ink-3); border-bottom: 1.5px solid var(--ws-ink-3); transform: rotate(45deg); }
.wx-select.set { border-color: #FCD34D; background: var(--ws-accent-wash); }
.wx-count { margin: 8px 0 4px; color: var(--ws-ink-3); font-size: 12px; }

/* table */
.wx-table { position: relative; }
.wx-tr { display: grid; grid-template-columns: 124px minmax(0, 1.05fr) minmax(0, 1.5fr) 96px 108px; gap: 0 12px; align-items: center; min-height: 58px; padding: 6px 8px; border-bottom: 1px solid var(--ws-line-soft); transition: background-color 150ms var(--ws-ease), box-shadow 150ms, opacity 340ms var(--ws-ease), transform calc(340ms * 1.4) var(--ws-ease); }
.wx-tr.th { min-height: 34px; color: var(--ws-ink-3); font-size: 12px; font-weight: 500; }
.wx-tr.th > div { display: flex; align-items: center; gap: 5px; white-space: nowrap; }
.wx-tr > div { min-width: 0; }
.wx-tr.sel { background: #FAFAFA; box-shadow: inset 2px 0 0 var(--ws-accent); }
.wx-tr.pre { opacity: 0; transform: translateY(8px); }
.wx-tr.skip { opacity: .55; }
.wx-addr { display: flex; align-items: center; gap: 8px; min-width: 0; }
.wx-new { flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--ws-accent); transition: opacity 260ms; }
.wx-addr .redact { display: block; height: 10px; border-radius: 4px; background: linear-gradient(90deg, #E9E9E9, #F2F2F2); margin: 3px 0 5px; }
.wx-addr b { display: block; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wx-addr small, .wx-meta { display: block; color: var(--ws-ink-3); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wx-meta.ink2 { color: var(--ws-ink-2); }
.wx-tag { display: inline-flex; align-items: center; max-width: 100%; padding: 2px 10px; border-radius: 999px; background: var(--ws-hover); color: var(--ws-ink); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wx-work .wx-meta { margin-top: 3px; color: var(--ws-ink-2); }
.wx-filed { white-space: nowrap; }
.wx-filed .wx-meta { color: var(--ws-ink-2); }

/* areas & rules page */
.wx-rules { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; height: calc(100% - 4px); grid-template-rows: auto auto minmax(0, 1fr); }
.wx-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.wx-field label { display: block; margin-bottom: 5px; color: var(--ws-ink-2); font-size: 12px; font-weight: 500; }
.wx-input { display: flex; align-items: center; min-height: 34px; padding: 6px 10px; border: 1px solid var(--ws-line); border-radius: 8px; font-size: 14px; background: var(--ws-surface); white-space: nowrap; overflow: hidden; }
.wx-input.focus { border-color: var(--ws-accent); box-shadow: 0 0 0 3px rgba(245, 158, 11, .18); }
.wx-input .ph { color: var(--ws-ink-3); }
.wx-caret { display: inline-block; width: 1.5px; height: 16px; margin-left: 1px; background: var(--ws-accent-strong); animation: wxcaret 1s steps(1) infinite; vertical-align: -3px; }
@keyframes wxcaret { 50% { opacity: 0; } }
.wx-rulechips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; color: var(--ws-ink-3); font-size: 12px; }
.wx-chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; background: var(--ws-bg); color: var(--ws-ink-2); font-size: 12px; }
.wx-chip b { color: var(--ws-ink); font-weight: 500; }
.wx-mapcard { position: relative; border: 1px solid var(--ws-line); border-radius: 16px; overflow: hidden; background: var(--ws-bg); min-height: 0; }
.wx-mapcard canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.wx-legend-card { position: absolute; left: 12px; bottom: 12px; display: grid; gap: 5px; padding: 9px 11px; border-radius: 12px; background: rgba(255, 255, 255, .94); box-shadow: 0 0 0 1px var(--ws-line); font-size: 12px; color: var(--ws-ink-2); }
.wx-legend-card i { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 7px; }
.wx-legend-card b { font-weight: 500; color: var(--ws-ink); margin-left: 4px; font-variant-numeric: tabular-nums; }
.wx-mapcard .scale { position: absolute; right: 12px; bottom: 12px; display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--ws-ink-3); }
.wx-mapcard .scale i { display: block; width: 50px; height: 5px; border: 1px solid var(--ws-ink-3); border-top: 0; }
.wx-mapcard .attrib { position: absolute; right: 12px; top: 10px; font-size: 10.5px; color: var(--ws-ink-3); }
.wx-pins { position: absolute; inset: 0; pointer-events: none; }
.wx-pin { position: absolute; display: inline-flex; align-items: center; gap: 7px; padding: 4px 9px 4px 7px; border-radius: 999px; background: rgba(255, 255, 255, .96); box-shadow: 0 0 0 1px var(--ws-line), 0 4px 12px rgba(0, 0, 0, .06); font-size: 12px; color: var(--ws-ink); white-space: nowrap;
  opacity: 0; transform: translateY(4px); filter: blur(2px); transition: opacity 300ms cubic-bezier(.16, 1, .3, 1), transform 300ms cubic-bezier(.16, 1, .3, 1), filter 300ms cubic-bezier(.16, 1, .3, 1); }
.wx-pin.on { opacity: 1; transform: none; filter: none; }
.wx-pin.dim { opacity: .4; }
.wx-pin i { width: 7px; height: 7px; border-radius: 50%; background: var(--ws-accent); flex: none; }
.wx-pin.done i { background: var(--ws-success); }

/* row panel (floating sheet) */
.wx-panel { position: absolute; z-index: 8; top: 8px; right: 8px; bottom: 8px; width: min(380px, 62%); background: var(--ws-surface); border-radius: 16px; box-shadow: 0 12px 40px rgba(0, 0, 0, .1), 0 0 0 1px rgba(0, 0, 0, .05);
  display: flex; flex-direction: column; overflow: hidden; transform: translateX(calc(100% + 20px)); opacity: 0; transition: transform 380ms var(--ws-ease), opacity 240ms var(--ws-ease); }
.wx-panel.on { transform: none; opacity: 1; }
.wx-panel-bar { display: flex; align-items: center; gap: 6px; padding: 9px 12px; border-bottom: 1px solid var(--ws-line-soft); color: var(--ws-ink-3); font-size: 12px; white-space: nowrap; }
.wx-panel-bar .sp { flex: 1; }
.wx-panel-body { padding: 16px 18px; overflow: hidden; display: grid; gap: 4px; align-content: start; }
.wx-panel h5 { margin: 0; font-size: 20px; font-weight: 500; line-height: 1.2; letter-spacing: -0.3px; }
.wx-panel .sub { color: var(--ws-ink-3); font-size: 13px; margin-bottom: 10px; }
.wx-props { display: grid; grid-template-columns: 128px minmax(0, 1fr); gap: 0 10px; font-size: 13px; }
.wx-props dt { display: flex; align-items: center; gap: 8px; min-height: 32px; color: var(--ws-ink-2); }
.wx-props dt .wi { color: var(--ws-ink-3); }
.wx-props dd { margin: 0; min-height: 32px; display: flex; align-items: center; flex-wrap: wrap; gap: 6px; color: var(--ws-ink); }
.wx-props dd.wx-why { line-height: 1.4; padding: 6px 0; }
.wx-sec { margin: 12px 0 6px; color: var(--ws-ink-3); font-size: 12px; font-weight: 500; }
.wx-desc { padding: 10px 12px; border-radius: 8px; background: var(--ws-bg); font-size: 13px; line-height: 1.5; }
.wx-notes { min-height: 54px; padding: 8px 10px; border: 1px solid var(--ws-line); border-radius: 8px; color: var(--ws-ink-3); font-size: 13px; }
.wx-tl { display: grid; gap: 8px; }
.wx-tl div { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 8px; font-size: 13px; }
.wx-tl i { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--ws-bg); color: var(--ws-ink-3); }
.wx-tl small { display: block; color: var(--ws-ink-3); font-size: 12px; }

/* toast (dark pill) + cursor */
.wx-toast { position: absolute; z-index: 9; left: 50%; bottom: 18px; transform: translate(-50%, 8px); opacity: 0; display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; background: #262626; color: #fff; font-size: 13px; white-space: nowrap; box-shadow: 0 12px 40px rgba(0, 0, 0, .14);
  transition: opacity 200ms var(--ws-ease), transform 300ms var(--ws-ease); pointer-events: none; }
.wx-toast.on { opacity: 1; transform: translate(-50%, 0); }
.wx-toast .wi { color: #FCD34D; }
.wx-cursor { position: absolute; z-index: 10; left: 0; top: 0; width: 18px; height: 22px; opacity: 0; pointer-events: none; transition: transform 560ms var(--ws-ease), opacity 200ms; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .25)); }
.wx-cursor.on { opacity: 1; }

/* narrow windows: the workspace's own mobile rules (sidebar away, table → cards) */
@container (max-width: 760px) {
  .wx { grid-template-columns: minmax(0, 1fr); }
  .wx-side { display: none; }
  .wx-main { margin: 6px; border-radius: 16px; }
  .wx-top { padding: 8px 14px; }
  .wx-page { padding: 14px 14px 0; }
  .wx-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .wx-stat { padding: 10px 12px; }
  .wx-stat .v { font-size: 20px; }
  .wx-stat .f { display: none; }
  .wx-sub, .wx-patch .upd { display: none; }
  .wx-toolbar .wx-select:nth-of-type(n+2) { display: none; }
  .wx-viewbar .wx-btn { display: none; }
  .wx-tr { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "addr status" "work work"; gap: 6px 10px; padding: 10px 4px; min-height: 0; }
  .wx-tr.th { display: none; }
  .wx-tr > [data-c="status"] { grid-area: status; }
  .wx-tr > [data-c="addr"] { grid-area: addr; }
  .wx-tr > [data-c="work"] { grid-area: work; }
  .wx-tr > [data-c="area"], .wx-tr > [data-c="filed"] { display: none; }
  .wx-panel { width: calc(100% - 16px); }
  .wx-fields { grid-template-columns: 1fr; }
  .wx-action { grid-template-columns: 36px minmax(0, 1fr); }
  .wx-action .wx-btn { grid-column: 2; justify-self: start; }
  .wx-props { grid-template-columns: 104px minmax(0, 1fr); }
}
@container (max-width: 1000px) {
  .wx-tr { grid-template-columns: 118px minmax(0, 1fr) minmax(0, 1.3fr) 96px; }
  .wx-tr > [data-c="area"] { display: none; }
}

/* maps inside the product: blueprint boundary, amber matches (the product's accent) */
.wx-mapcard { --map-line: #2E62F0; --map-hit: var(--ws-accent); --map-wash: rgba(46, 98, 240, .06); --map-dot: #8a8a8a; --map-faint: #cfcfcf; }
.wx-sincecard .waffle { display: grid; grid-template-columns: repeat(50, 1fr); gap: 3px; }
.wx-sincecard .waffle i { aspect-ratio: 1; border-radius: 2px; background: #f1e7c8; transition: background-color 380ms var(--ws-ease), transform 380ms var(--ws-ease); }
.wx-sincecard .waffle i.hit { background: var(--ws-stage-won); transform: scale(1.12); }

/* Product surfaces that aren't the full workspace shell (the alert email, homeowner results, radius and topics panels,
   the objection letter) read the workspace palette through this remap. */
.wx-scope {
  --ink: var(--ws-ink); --ink-2: var(--ws-ink-2); --ink-3: var(--ws-ink-3); --ink-4: #c9c9c9;
  --paper: var(--ws-bg); --paper-2: var(--ws-bg); --paper-3: var(--ws-hover); --sheet: var(--ws-surface);
  --rule: var(--ws-line); --rule-2: var(--ws-line); --rule-soft: var(--ws-line-soft);
  --amber: var(--ws-accent); --amber-deep: var(--ws-accent-strong); --amber-soft: var(--ws-accent-soft); --amber-ink: var(--ws-accent-ink);
  --red: var(--ws-accent); --red-ink: var(--ws-accent-ink); --red-wash: var(--ws-accent-soft);
  --green: var(--ws-success); --green-ink: var(--ws-success-ink); --green-wash: var(--ws-success-wash);
  --font-display: var(--ws-font); --font-sans: var(--ws-font);
  --r-sm: 8px; --r-md: 8px; --r-lg: 16px; --r-xl: 24px;
  --sh-1: 0 0 0 1px var(--ws-line); --sh-2: 0 0 0 1px var(--ws-line), 0 8px 30px rgba(0, 0, 0, .06); --sh-3: 0 0 0 1px rgba(0, 0, 0, .04), 0 12px 40px rgba(0, 0, 0, .08);
}
