/* J2 Tenant Fit-Out — additions on top of ../permits/app.css (same tokens, header, cards, pills, buttons) */
.facts { display: flex; flex-wrap: wrap; gap: 6px 24px; margin-top: 8px; }
.facts div { display: grid; }
.facts span { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.facts b { font: 500 14px var(--f-mono); }
.phead { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px; align-items: end; padding: 16px 18px; }
.phead h2 { margin: 2px 0 0; font-size: clamp(20px, 3vw, 26px); }
.eyebrow { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; }
.rings { display: flex; gap: 22px; flex-wrap: wrap; }
.ring { display: grid; text-align: center; }
.ring b { font: 700 24px var(--f-mono); }
.ring span { font-size: 12px; color: var(--muted); }
@media (max-width: 700px) { .phead { grid-template-columns: 1fr; } }

/* gate rail */
.rail { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.gate { appearance: none; border: 0; border-right: 1px solid var(--line-2); background: transparent; text-align: left; padding: 11px 12px 14px; cursor: pointer; position: relative; min-width: 0; color: inherit; text-decoration: none; display: block; }
.gate:last-child { border-right: 0; }
.gate .n { font: 600 11px var(--f-mono); color: var(--faint); }
.gate .t { font-weight: 700; font-size: 13px; display: block; margin-top: 2px; line-height: 1.25; }
.gate .s { font-size: 11.5px; color: var(--muted); display: block; }
.gate::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--line-2); }
.gate.done::after { background: var(--ok); }
.gate.cur::after { background: var(--warn); }
.gate.sel { background: var(--panel-2); }
.gate.locked { opacity: .55; }
.gate .st { position: absolute; top: 9px; right: 9px; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 700; color: #fff; }
.gate.done .st { background: var(--ok); }
.gate.cur .st { background: var(--warn); }
@media (max-width: 900px) { .rail { grid-template-columns: repeat(7, 150px); overflow-x: auto; } }

.pgrid { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 14px; align-items: start; margin-top: 14px; }
.pgrid > * { min-width: 0; }
@media (max-width: 1000px) { .pgrid { grid-template-columns: minmax(0, 1fr); } }
.panel-hd { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 13px 16px; border-bottom: 1px solid var(--line); }
.panel-hd h3 { margin: 0; font-size: 16px; margin-right: auto; }
.stack { display: grid; gap: 12px; }
.callout { border-left: 3px solid var(--warn); background: var(--warn-soft); padding: 9px 12px; border-radius: 0 10px 10px 0; font-size: 13.5px; }
.callout.info { border-color: var(--info); background: var(--info-soft); }
.callout.ok { border-color: var(--ok); background: var(--ok-soft); }
.callout.bad { border-color: var(--bad); background: var(--bad-soft); }
.item { display: flex; gap: 12px; align-items: flex-start; padding: 11px 0; border-bottom: 1px solid var(--line-2); flex-wrap: wrap; }
.item:last-child { border-bottom: 0; }
.item .grow { flex: 1; min-width: 200px; }
.item .t { font-weight: 600; }
.ficon { width: 34px; height: 40px; border-radius: 5px; background: var(--panel-2); display: grid; place-items: center; font: 600 9.5px var(--f-mono); color: var(--muted); flex: none; border: 1px solid var(--line); }
.code { font: 700 12px var(--f-mono); padding: 1px 7px; border-radius: 5px; border: 1.5px solid currentColor; white-space: nowrap; }
.code.A, .code.B { color: var(--ok); } .code.BR { color: var(--warn); } .code.C { color: var(--bad); }
.tiers { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.tier { border: 1px solid var(--line); border-radius: 10px; padding: 9px 10px; display: grid; gap: 2px; }
.tier span { font-size: 11.5px; color: var(--muted); }
.tier b { font: 600 16px var(--f-mono); }
.tier.on { border-color: var(--accent); background: var(--accent-soft); }
@media (max-width: 700px) { .tiers { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.cl > div { display: flex; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px dashed var(--line); flex-wrap: wrap; }
.cl > div:last-child { border-bottom: 0; }
.tick { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; flex: none; background: var(--panel-2); color: var(--muted); border: 1px solid var(--line); }
.tick.y { background: var(--ok); color: #fff; border-color: var(--ok); }
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 14px; padding: 14px; background: var(--panel-2); border: 1px solid var(--line); border-radius: 12px; }
.form .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form { grid-template-columns: 1fr; } }
.board { display: grid; grid-template-columns: repeat(7, minmax(170px, 1fr)); gap: 10px; overflow-x: auto; padding-bottom: 6px; }
.lane { background: var(--panel-2); border: 1px solid var(--line-2); border-radius: 12px; padding: 10px; display: grid; gap: 8px; align-content: start; min-height: 110px; }
.lane h4 { margin: 0; font-size: 12px; display: flex; justify-content: space-between; gap: 6px; }
.pc { background: var(--panel); border: 1px solid var(--line); border-left: 3px solid var(--line); border-radius: 9px; padding: 8px 10px; display: grid; gap: 3px; font-size: 12.5px; text-decoration: none; color: inherit; }
.pc:hover { border-color: var(--accent); }
.pc.late { border-left-color: var(--bad); } .pc.warn { border-left-color: var(--warn); }
.pc b { font-size: 13px; }
.task { display: flex; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line-2); text-decoration: none; color: inherit; }
.task:last-child { border-bottom: 0; }
.task .grow { flex: 1; min-width: 0; }
.evt { font: 12px var(--f-mono); background: var(--panel-2); border: 1px solid var(--line-2); border-radius: 5px; padding: 1px 6px; white-space: nowrap; }
.secret { font: 700 18px var(--f-mono); background: var(--panel-2); border: 1px dashed var(--accent); padding: 10px 12px; border-radius: 10px; user-select: all; letter-spacing: .04em; }
.flist { margin: 4px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.flist a { font-size: 12.5px; border: 1px solid var(--line); border-radius: 8px; padding: 2px 8px; text-decoration: none; background: var(--panel); }
details.hist summary { cursor: pointer; font-weight: 600; font-size: 13px; padding: 6px 0; }
