/* V2.48 (Change Request Batch 29): New / Edit project — buildings & floors section (A), Scope of Work editor (A2),
   compact sign-in card (B). */

/* ---- A: buildings first, then floors ---- */
.b29-sec { margin-top: 8px; }
.b29-step { display: flex; align-items: center; gap: 8px; margin: 10px 0 6px; font-size: .95rem; }
.b29-step span { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--primary, #1f6f8b); color: #fff; font-size: .78rem; font-weight: 700; }
/* item 4: every row uses the same column widths and the same button layout */
table.t.b29-tb { table-layout: fixed; width: 100%; }
table.t.b29-tb td, table.t.b29-tb th { vertical-align: middle; }
table.t.b29-tb input, table.t.b29-tb select { width: 100%; min-width: 0; box-sizing: border-box; }
table.t.b29-tb td.b29-act, table.t.b29-tb th:last-child { text-align: right; white-space: nowrap; }
table.t.b29-tb td.b29-act { display: table-cell; }
table.t.b29-tb td.b29-act .btn { margin-left: 4px; min-width: 34px; height: 32px; padding: 0 8px; }
table.t.b29-tb td.b29-act .btn:first-child { margin-left: 0; }
.b29-lvl output { display: block; padding: 6px 8px; border-radius: 6px; background: var(--surface-2, #eef3f5); color: var(--text, #13262b); font-variant-numeric: tabular-nums; text-align: right; border: 1px dashed var(--border, #cfdadd); cursor: default; }
.b29-lvl output:empty::before { content: '—'; color: var(--text-3, #6b7f85); }
select.b29-need { border-color: var(--danger, #c0392b) !important; }
[data-bsum] { font-variant-numeric: tabular-nums; }

/* ---- A2: Scope of Work editor (visible border, toolbar, at least 8 lines, resizable, readable) ---- */
.b28-rte { border: 1px solid var(--border-strong, #9fb3b9); border-radius: 10px; background: var(--surface, #fff); overflow: hidden; }
.b28-rte:focus-within { border-color: var(--primary, #1f6f8b); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary, #1f6f8b) 18%, transparent); }
.b28-rtebar { display: flex; flex-wrap: wrap; gap: 4px; padding: 6px 8px; background: var(--surface-2, #eef3f5); border-bottom: 1px solid var(--border, #cfdadd); }
.b28-rtebar .btn { min-width: 34px; }
.b28-rtebox { display: block; min-height: calc(8 * 1.55em + 20px); max-height: 70vh; padding: 10px 12px; resize: vertical; overflow: auto;
  background: var(--surface, #fff); color: var(--text, #13262b); font-size: .95rem; line-height: 1.55; outline: none; }
.b28-rtebox:empty::before { content: 'Describe the scope of work: trades, inclusions, exclusions, special conditions…'; color: var(--text-3, #6b7f85); }
.b28-rtebox ul, .b28-rtebox ol { padding-left: 1.4em; margin: .3em 0; }
.b28-rtebox p { margin: 0 0 .4em; }
table.t.b29-tb thead th { white-space: normal; line-height: 1.25; }
table.t.b29-tb td.b29-act .btn { display: inline-flex; align-items: center; justify-content: center; vertical-align: middle; }
table.t.b29-tb td.b29-act .btn svg { width: 14px; height: 14px; }

/* ---- B: compact sign-in card (still top-right, glass style; the firm's logo stays at the top of the card) ---- */
html[data-ui="3"] #kx-gate:not(.kx-gate-wide) .kx-gate-card { max-width: 336px; padding: 18px 20px 12px; border-radius: 16px; }
html[data-ui="3"] #kx-gate:not(.kx-gate-wide) .kx-gate-card .kx-gate-logo { display: block; width: 96px; height: auto; margin: 0 auto 4px; }
html[data-ui="3"] #kx-gate:not(.kx-gate-wide) .kx-gate-card .kx-gate-title { display: block; font-size: 14px; margin-bottom: 2px; }
html[data-ui="3"] #kx-gate:not(.kx-gate-wide) .kx-gate-card > p, html[data-ui="3"] #kx-gate:not(.kx-gate-wide) .kx-gate-card .kx-gate-sub { font-size: 12.5px; margin: 4px 0 8px; line-height: 1.35; }
html[data-ui="3"] #kx-gate:not(.kx-gate-wide) .kx-gate-card .f { margin-bottom: 8px; }
html[data-ui="3"] #kx-gate:not(.kx-gate-wide) .kx-gate-card .f > span { font-size: 12.5px; }
html[data-ui="3"] #kx-gate:not(.kx-gate-wide) .kx-gate-card .f input { min-height: 36px; padding-top: 6px; padding-bottom: 6px; font-size: 14px; }
html[data-ui="3"] #kx-gate:not(.kx-gate-wide) .kx-gate-card .kx-gate-btn { min-height: 38px; margin-top: 6px; }
html[data-ui="3"] #kx-gate:not(.kx-gate-wide) .kx-gate-card .kx-gate-foot { font-size: 11px; margin-top: 8px; }
html[data-ui="3"] #kx-gate:not(.kx-gate-wide) .kx-gate-card .kx-gate-rel { font-size: 11px; margin-top: 2px; }
html[data-ui="3"] #kx-gate:not(.kx-gate-wide) .kx-gate-card .kx-b29-pow { font-size: 10.5px; opacity: .7; margin-top: 2px; letter-spacing: .02em; }
@media (max-width: 980px) { html[data-ui="3"] #kx-gate:not(.kx-gate-wide) .kx-gate-card { max-width: 360px; } html[data-ui="3"] #kx-gate:not(.kx-gate-wide) .kx-gate-card .kx-gate-logo { width: 72px; } }

/* ---- C: client firm branding, support banner, Firm account page (js/core/tenant29.js) ---- */
.kx-t29-name { font-weight: 700; font-size: 1.05rem; line-height: 1.2; text-align: center; color: var(--kx-tenant, var(--primary, #1f6f8b)); padding: 6px 4px; word-break: break-word; }
.sidebar .brand .logo-box .kx-t29-name { text-align: left; padding: 2px 0; }
#kx-gate .kx-gate-card div.kx-gate-logo.kx-t29-name { width: auto; font-size: 18px; margin-bottom: 6px; }
.kx-b29-pow { font-size: 10.5px; opacity: .7; margin-top: 2px; letter-spacing: .02em; text-align: center; }
#kx-t29-sup { position: fixed; left: 0; right: 0; top: 0; z-index: 99998; background: #7a2e0e; color: #fff; font: 600 12.5px/1.7 system-ui, sans-serif; text-align: center; padding: 2px 10px; pointer-events: none; }
.t29-tiles { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.t29-tile b { font-size: 1.15rem; font-variant-numeric: tabular-nums; }
.t29-bar { height: 6px; border-radius: 4px; background: var(--surface-2, #eef3f5); overflow: hidden; margin-top: 6px; } .t29-bar i { display: block; height: 100%; background: var(--primary, #1f6f8b); } .t29-bar.hi i { background: var(--danger, #c0392b); }
.t29-steps { margin: 6px 0 0; padding-left: 1.3em; } .t29-steps li { display: flex; justify-content: space-between; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--border, #cfdadd); }
.t29-steps li.done b::after { content: ' ✓'; color: var(--ok, #067647); }
.t29-link { font-family: ui-monospace, Menlo, Consolas, monospace; word-break: break-all; background: var(--surface-2, #eef3f5); padding: 6px 8px; border-radius: 6px; margin-top: 6px; }
/* the firm's name is a name, not a wordmark: no spaced-out mono letters (sign-in card, sidebar); Firm account cards */
#kx-gate .kx-gate-card .kx-gate-title.t29, html[data-ui] #kx-gate .kx-gate-card .kx-gate-title.t29 { font-family: inherit; letter-spacing: .01em; font-size: 16px; font-weight: 700; text-transform: none; }
.sidebar .brand .product.t29, html[data-ui] .sidebar .brand .product.t29 { font-family: inherit; letter-spacing: 0; text-transform: none; font-size: 14px; line-height: 1.25; white-space: normal; }
.kx-show .kx-show-mark { max-width: 60vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.t29-acc .card { padding: 14px 16px; } .t29-acc .card h4 { margin: 0 0 6px; } .t29-acc .t29-tile { padding: 12px 14px; }
.t29-acc .tbl-wrap { border: 1px solid var(--border, #cfdadd); border-radius: 8px; }
