/* Tenant portal additions on top of Portfolio's site.css (same tokens, same fonts) */
html { font-size: 14px; }
.mock-bar { background: var(--warning-bg); color: var(--warning-text); font-size: .8rem; padding: 4px 12px; text-align: center; }
.mock-bar button { font: inherit; border: 1px solid currentColor; background: none; color: inherit; border-radius: 999px; padding: 0 8px; margin: 0 2px; cursor: pointer; }
.mock-bar button.on { background: var(--warning-text); color: var(--warning-bg); }
.mock-bar a { color: inherit; }

.topbar .brand { width: auto; }
.topbar .who { display: flex; align-items: center; gap: 8px; font-size: .9rem; }
.avatar { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-strong); font-weight: 650; font-size: .8rem; }

.wrap { max-width: 980px; margin: 0 auto; padding: 18px 16px 40px; }
.cols { display: grid; grid-template-columns: 2fr 1fr; gap: 16px; align-items: start; }
@media (max-width: 800px) { .cols { grid-template-columns: 1fr; } }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 16px; }
@media (max-width: 700px) { .stats { grid-template-columns: repeat(2, 1fr); } }

.hero { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.hero h1 { font-size: 1.5rem; }
.property-line { display: flex; gap: 10px; align-items: center; }
.property-line svg { width: 36px; height: 36px; flex: none; }

.req { display: flex; gap: 12px; align-items: center; padding: 10px 4px; border-bottom: 1px solid var(--border); color: var(--text); text-decoration: none; }
.req:last-child { border-bottom: 0; }
.req:hover { background: var(--surface-2); }
.req .ref { font-variant-numeric: tabular-nums; color: var(--muted); font-size: .85rem; width: 60px; flex: none; }
.req .title { font-weight: 600; }
.req .meta { font-size: .85rem; color: var(--muted); }
.req .grow { flex: 1; min-width: 0; }

.cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; }
.cat { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); padding: 12px 8px; text-align: center; cursor: pointer; font: inherit; color: var(--text); }
.cat .ic { font-size: 1.6rem; display: block; margin-bottom: 4px; }
.cat:hover { border-color: var(--accent); }
.cat.on { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-strong); font-weight: 650; }
.urg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
@media (max-width: 600px) { .urg { grid-template-columns: 1fr; } }
.urg label { border: 1px solid var(--border); border-radius: var(--radius); padding: 10px; cursor: pointer; display: block; }
.urg label:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.urg small { display: block; color: var(--muted); }
.callout { background: var(--danger-bg); color: var(--negative); border-radius: var(--radius); padding: 10px 12px; margin: 8px 0; font-weight: 550; }
.field input, .field select, .field textarea { font: inherit; padding: 7px 9px; border: 1px solid var(--border); border-radius: 7px; background: var(--surface); color: var(--text); }
.field textarea { min-height: 90px; resize: vertical; }
.drop { border: 2px dashed var(--border); border-radius: var(--radius); padding: 18px; text-align: center; color: var(--muted); }
.thumbs { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.thumb { width: 84px; height: 64px; border-radius: 8px; background: linear-gradient(135deg, var(--surface-2), var(--border)); display: grid; place-items: center; font-size: 1.5rem; }
.step-title { font-weight: 650; margin: 18px 0 8px; display: flex; gap: 8px; align-items: center; }
.step-title .n { width: 22px; height: 22px; border-radius: 50%; background: var(--accent); color: var(--on-accent); display: grid; place-items: center; font-size: .8rem; }

.stepper { display: flex; gap: 0; margin: 10px 0 4px; }
.stepper div { flex: 1; text-align: center; font-size: .8rem; color: var(--muted); position: relative; padding-top: 22px; }
.stepper div::before { content: ""; position: absolute; top: 6px; left: 50%; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: var(--border); z-index: 1; }
.stepper div::after { content: ""; position: absolute; top: 11px; left: -50%; width: 100%; height: 2px; background: var(--border); }
.stepper div:first-child::after { display: none; }
.stepper div.done { color: var(--text); }
.stepper div.done::before, .stepper div.done::after { background: var(--accent); }
.stepper div.now { color: var(--accent-strong); font-weight: 650; }
.stepper div.now::before { box-shadow: 0 0 0 4px var(--accent-soft); background: var(--accent); }

.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.timeline li:last-child { border-bottom: 0; }
.timeline .body { flex: 1; }
.timeline .when { font-size: .8rem; color: var(--muted); }
.timeline li.internal { background: var(--warning-bg); margin: 0 -12px; padding: 10px 12px; }
.timeline li.sys .body { color: var(--muted); font-size: .9rem; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; font-size: .92rem; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; }

table.grid { width: 100%; border-collapse: collapse; }
table.grid th, table.grid td { text-align: left; padding: 7px 8px; border-bottom: 1px solid var(--border); font-size: .92rem; }
table.grid th { color: var(--muted); font-weight: 600; font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; }
table.grid tbody tr { cursor: pointer; }
table.grid tbody tr:hover { background: var(--surface-2); }
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.filters select, .filters input { font: inherit; padding: 5px 8px; border: 1px solid var(--border); border-radius: 7px; background: var(--surface); color: var(--text); }
.sla-bad { color: var(--negative); font-weight: 600; }
.reply-tabs { display: flex; gap: 6px; margin-bottom: 6px; }
.toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); background: var(--text); color: var(--bg); padding: 10px 16px; border-radius: 8px; box-shadow: var(--shadow); }

/* ===== v2: address bar, tabs, admin, approvals */
.mock-bar .addr { font-family: ui-monospace, Consolas, monospace; background: rgba(0,0,0,.08); padding: 0 6px; border-radius: 4px; }
.mock-bar select { font: inherit; color: inherit; background: none; border: 1px solid currentColor; border-radius: 999px; padding: 0 6px; }
.layout2 { display: flex; min-height: calc(100vh - var(--topbar-h) - 24px); }
.side { width: 210px; flex: none; background: var(--surface); border-right: 1px solid var(--border); padding: 10px 6px; }
.side a { display: flex; gap: 8px; align-items: center; padding: 6px 10px; border-radius: 6px; color: var(--text); text-decoration: none; font-weight: 500; }
.side a:hover { background: var(--surface-2); }
.side a.active { background: var(--accent-soft); color: var(--accent-strong); }
.side .section { margin: 14px 10px 4px; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.side .count { margin-left: auto; background: var(--negative); color: #fff; border-radius: 999px; font-size: .72rem; padding: 0 7px; }
.content { flex: 1; min-width: 0; padding: 18px 22px 40px; max-width: 1250px; }
@media (max-width: 800px) { .layout2 { flex-direction: column; } .side { width: auto; display: flex; flex-wrap: wrap; border-right: 0; border-bottom: 1px solid var(--border); } .side .section { display: none; } }
.form2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
@media (max-width: 700px) { .form2 { grid-template-columns: 1fr; } }
.row-actions { display: flex; gap: 6px; justify-content: flex-end; flex-wrap: wrap; }
.note { background: var(--accent-soft); color: var(--accent-strong); border-radius: var(--radius); padding: 10px 12px; margin: 0 0 12px; }
.warnbox { background: var(--warning-bg); color: var(--warning-text); border-radius: var(--radius); padding: 10px 12px; margin: 0 0 12px; }
.code { font-family: ui-monospace, Consolas, monospace; font-size: 1.2rem; letter-spacing: .12em; background: var(--surface-2); padding: 6px 12px; border-radius: 7px; display: inline-block; }
.diff del { color: var(--negative); } .diff ins { color: var(--positive); text-decoration: none; font-weight: 600; }
.tree { list-style: none; padding-left: 0; margin: 0; }
.tree ul { list-style: none; padding-left: 20px; margin: 4px 0; border-left: 1px dashed var(--border); }
.tree li { padding: 3px 0; }
.synced { font-size: .75rem; color: var(--muted); }
.pf .topbar { border-top-color: #0f766e; }
.switch { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.big-icon { font-size: 2.5rem; text-align: center; }
.plan-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.plan-cards .card .price { font-size: 1.5rem; font-weight: 700; }
.money { font-variant-numeric: tabular-nums; text-align: right; }
table.grid td.money, table.grid th.money { text-align: right; }

/* ===== The real portal's additions to the mock-up's styles (phase 1) */
.brand img.ws-logo { width: 32px; height: 32px; object-fit: contain; border-radius: 7px; flex: none; }
.signin-card .brand img.ws-logo { width: 34px; height: 34px; }
.topbar .who-link { display: flex; align-items: center; gap: 8px; color: var(--text); text-decoration: none; }
.topbar .who-link:hover { text-decoration: underline; }
.logo-preview { width: 64px; height: 64px; object-fit: contain; border: 1px solid var(--border); border-radius: 10px; background: var(--surface-2); display: grid; place-items: center; }
.logo-preview svg { width: 48px; height: 48px; }
.logo-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.palette-swatches { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
.empty { color: var(--muted); padding: 12px 4px; }
table.grid.plain tbody tr { cursor: default; }
table.grid.plain tbody tr:hover { background: none; }
.grid .row-actions { justify-content: flex-end; }
.mono { font-family: ui-monospace, Consolas, monospace; }
dialog textarea { width: 100%; min-height: 180px; font: inherit; padding: 8px; border: 1px solid var(--border); border-radius: 7px; background: var(--surface); color: var(--text); box-sizing: border-box; }
dialog .field input, dialog .field select { font: inherit; padding: 7px 9px; border: 1px solid var(--border); border-radius: 7px; background: var(--surface); color: var(--text); }
.placeholders code { background: var(--surface-2); padding: 0 4px; border-radius: 4px; margin-right: 4px; font-size: .85rem; }

/* ===== Requests (phase 4) */
.thumb-img { width: 84px; height: 64px; object-fit: cover; border-radius: 8px; border: 1px solid var(--border); display: block; background: var(--surface-2); }
.file-list { display: flex; gap: 6px; flex-wrap: wrap; margin: 6px 0; }
.file-chip { display: inline-flex; gap: 6px; align-items: center; border: 1px solid var(--border); border-radius: 999px; padding: 2px 10px; font-size: .85rem; color: var(--text); text-decoration: none; background: var(--surface-2); }
.msg-text { white-space: pre-wrap; overflow-wrap: anywhere; }
.reply-box { width: 100%; min-height: 70px; font: inherit; padding: 8px; border: 1px solid var(--border); border-radius: 7px; background: var(--surface); color: var(--text); box-sizing: border-box; }
.suspended-banner { margin: 0; border-radius: 0; text-align: center; }
a.row-link { color: inherit; text-decoration: none; }
a.row-link:hover { text-decoration: underline; }
table.grid tr[data-href] { cursor: pointer; }
