/* Tenant Financial Review — Rexford brand: Brentwood Blue #063552, O.C. Orange #e4502e (accent), Cement Grey #d6d8d7 */
:root { --blue:#063552; --orange:#e4502e; --grey:#d6d8d7; --ink:#000; --muted:#4a5560; --bg:#f4f5f5; --line:#eceeed;
  --hi-bg:#fde8e3; --hi-fg:#a8331a; --mod-bg:#fef0e2; --mod-fg:#8a4a0c; --low-bg:#e3eef4; --low-fg:#063552; --ok:#1d6b3a; }
* { box-sizing: border-box; }
body { margin:0; background:var(--bg); color:var(--ink); font-family:"Graphik", Arial, Helvetica, sans-serif; font-size:15px; }
a { color:var(--blue); } a:hover { color:var(--orange); }
.h { font-family:"Gotham Ultra","Arial Black",Arial,sans-serif; color:var(--blue); }
h1.h { margin:0; font-size:40px; line-height:1.1; } h2.h { margin:0; font-size:22px; }
.muted { color:var(--muted); } .small { font-size:13px; } .tiny { font-size:12px; }
.hidden { display:none !important; }

/* Header */
header.top { background:var(--blue); color:#fff; }
header.top .bar { max-width:1280px; margin:0 auto; padding:12px 32px; display:flex; flex-wrap:wrap; align-items:center; gap:24px; }
header.top .brand { display:flex; align-items:center; gap:24px; color:#fff; text-decoration:none; }
header.top .brand img { height:34px; } header.top .brand .sep { width:1px; height:28px; background:rgba(255,255,255,.3); }
header.top .brand b { font-size:16px; }
header.top nav { display:flex; gap:20px; margin-left:24px; flex-wrap:wrap; font-size:14px; }
header.top nav a { color:#fff; text-decoration:none; padding-bottom:4px; border-bottom:3px solid transparent; opacity:.85; }
header.top nav a.on { border-bottom-color:var(--orange); opacity:1; font-weight:700; }
header.top .right { margin-left:auto; display:flex; align-items:center; gap:14px; font-size:13px; }
.btn-new { display:inline-flex; align-items:center; height:40px; padding:0 16px; border-radius:6px; font-weight:700; font-size:14px; text-decoration:none; background:#fff; color:var(--blue); border:2px solid #fff; }
.btn-new.on { background:transparent; color:#fff; }
.avatar { width:32px; height:32px; border-radius:50%; background:#fff; color:var(--blue); display:flex; align-items:center; justify-content:center; font-weight:700; }

main { max-width:1280px; margin:0 auto; padding:28px 32px 64px; display:flex; flex-direction:column; gap:24px; }
.card { background:#fff; border:1px solid var(--grey); border-radius:10px; padding:24px; }
.row { display:flex; flex-wrap:wrap; gap:24px; align-items:flex-start; }
.grow { flex:999 1 620px; min-width:0; } .side { flex:1 1 340px; min-width:0; }
.grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,200px),1fr)); gap:12px; }
.stack { display:flex; flex-direction:column; gap:12px; }

/* Buttons and inputs */
button, .btn { font:inherit; cursor:pointer; }
.btn { display:inline-flex; align-items:center; justify-content:center; height:44px; padding:0 18px; border-radius:6px; font-weight:700; font-size:14px; text-decoration:none; border:1px solid var(--blue); background:#fff; color:var(--blue); }
.btn.primary { background:var(--blue); color:#fff; } .btn.go { background:var(--orange); border-color:var(--orange); color:#fff; font-size:19px; height:52px; padding:0 28px; }
.btn:disabled { opacity:.5; cursor:not-allowed; }
label { font-size:13px; font-weight:700; display:flex; flex-direction:column; gap:6px; color:#1f2a33; }
input, select, textarea { font:inherit; font-weight:400; font-size:15px; min-height:46px; border:1px solid #b9bdbb; border-radius:8px; padding:0 14px; background:#fff; color:#000; width:100%; }
textarea { padding:10px 14px; min-height:90px; }
.pill { height:38px; padding:0 16px; border-radius:999px; font-size:13px; font-weight:700; border:1px solid #b9bdbb; background:#fff; color:var(--blue); }
.pill.on { background:var(--blue); color:#fff; border-color:var(--blue); }

/* Chips */
.chip { font-weight:700; font-size:12px; padding:4px 10px; border-radius:999px; white-space:nowrap; display:inline-block; }
.chip.High { background:var(--hi-bg); color:var(--hi-fg); } .chip.Moderate { background:var(--mod-bg); color:var(--mod-fg); }
.chip.Low { background:var(--low-bg); color:var(--low-fg); } .chip.none { background:var(--bg); color:var(--muted); }

/* Tables */
.tablebox { overflow-x:auto; }
table { width:100%; border-collapse:collapse; }
th { text-align:left; font-weight:700; font-size:12px; color:var(--muted); padding:10px 12px; border-bottom:1px solid var(--grey); background:#fafafa; white-space:nowrap; }
td { padding:12px; border-bottom:1px solid var(--line); font-size:13px; vertical-align:top; }

/* Steps */
.steps { display:flex; flex-wrap:wrap; gap:12px; }
.step { display:flex; align-items:center; gap:12px; padding:10px 20px 10px 10px; border-radius:999px; border:2px solid var(--grey); background:#fff; color:var(--blue); min-height:56px; }
.step .dot { width:34px; height:34px; border-radius:50%; display:flex; align-items:center; justify-content:center; font-weight:700; background:#eef0ef; }
.step.on { background:var(--blue); color:#fff; border-color:var(--blue); } .step.on .dot { background:var(--orange); color:#fff; }
.step.done .dot { background:var(--blue); color:#fff; }
.choice { display:flex; flex-direction:column; gap:6px; padding:18px 20px; border-radius:12px; border:1px solid var(--grey); background:#fff; color:var(--blue); text-align:left; }
.choice.on { background:var(--blue); color:#fff; border:2px solid var(--blue); }
.drop { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:12px; min-height:300px; padding:32px; border-radius:16px; border:3px dashed var(--orange); background:#fff7f4; text-align:center; cursor:pointer; }
.drop.over { background:#eef3f6; border-color:var(--blue); }
.path { background:#eef3f6; border-radius:10px; padding:14px 16px; font-size:14px; word-break:break-word; }
.rail { background:var(--blue); color:#fff; border-radius:12px; padding:24px; display:flex; flex-direction:column; gap:16px; }
.rail .k { font-size:12px; letter-spacing:.6px; opacity:.8; }

/* Results */
.kpi { background:#fff; border:1px solid var(--grey); border-radius:8px; padding:16px; } .kpi .v { font-size:26px; margin-top:6px; }
.risk { background:#fff; border:1px solid var(--grey); border-radius:8px; padding:18px 20px; display:flex; flex-direction:column; gap:8px; }
.banner { background:#fff; border:1px solid var(--grey); border-radius:8px; padding:12px 16px; font-size:13px; color:var(--muted); display:flex; flex-wrap:wrap; gap:12px; }
.dark { background:var(--blue); color:#fff; border:0; } .big { font-size:44px; line-height:1; }
.status-run { display:flex; align-items:center; gap:12px; }
.spinner { width:22px; height:22px; border-radius:50%; border:3px solid var(--grey); border-top-color:var(--orange); animation:spin 1s linear infinite; }
@keyframes spin { to { transform:rotate(360deg); } }
.compare { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,460px),1fr)); gap:16px; }

/* Chat */
.chat-fab { position:fixed; right:28px; bottom:28px; width:64px; height:64px; border-radius:50%; border:0; background:var(--blue); color:#fff; box-shadow:0 6px 20px rgba(6,53,82,.35); display:flex; align-items:center; justify-content:center; z-index:20; }
.chat { position:fixed; right:24px; bottom:24px; width:640px; max-width:calc(100% - 48px); height:600px; max-height:calc(100vh - 48px); background:#fff; border:1px solid var(--grey); border-radius:14px; box-shadow:0 12px 40px rgba(6,53,82,.28); display:flex; flex-direction:column; overflow:hidden; z-index:20; }
.chat .head { background:var(--blue); color:#fff; padding:14px 16px; display:flex; align-items:center; gap:10px; }
.chat .body { display:flex; flex:1; min-height:0; }
.chat .list { width:200px; border-right:1px solid var(--line); background:#fafafa; padding:12px; display:flex; flex-direction:column; gap:6px; overflow-y:auto; }
.chat .list .item { display:flex; gap:4px; padding:8px; border-radius:8px; color:var(--blue); font-size:13px; }
.chat .list .item.on { background:var(--low-bg); font-weight:700; }
.chat .list .item button { border:0; background:transparent; color:inherit; text-align:left; flex:1; padding:0; font-weight:inherit; }
.chat .msgs { flex:1; overflow-y:auto; padding:16px; display:flex; flex-direction:column; gap:12px; }
.msg { max-width:88%; padding:10px 14px; font-size:14px; line-height:1.45; white-space:pre-wrap; }
.msg.user { align-self:flex-end; background:var(--blue); color:#fff; border-radius:14px 14px 4px 14px; }
.msg.assistant { align-self:flex-start; background:var(--bg); border-radius:14px 14px 14px 4px; }
.msg.system { align-self:stretch; background:#fff7f4; border:1px dashed var(--orange); border-radius:10px; font-size:13px; }
.chat form { border-top:1px solid var(--line); padding:12px; display:flex; gap:8px; align-items:center; }

.toast { position:fixed; left:50%; bottom:24px; transform:translateX(-50%); background:#1f2a33; color:#fff; padding:12px 18px; border-radius:8px; z-index:50; font-size:14px; }

@media (max-width:700px) {
  header.top .bar { padding:10px 16px; gap:12px; } header.top nav { margin-left:0; }
  header.top .brand { gap:10px; } header.top .brand img { height:26px; } header.top .brand b { font-size:14px; }
  main { padding:20px 16px 48px; } h1.h { font-size:30px; } .card { padding:18px; }
  .chat .body { flex-direction:column; } .chat .list { width:auto; flex-direction:row; overflow-x:auto; border-right:0; border-bottom:1px solid var(--line); flex-shrink:0; }
  .chat .list > * { flex-shrink:0; max-width:220px; }
}

.errbar{background:#e4502e;color:#fff;padding:10px 16px;font-weight:600;font-size:14px}
html.auth-pending body{visibility:hidden}
.btn.danger{border-color:var(--hi-fg);color:var(--hi-fg)} .btn.danger.solid{background:var(--hi-fg);color:#fff}
