/* AZLG Case Hub: shared styles (brand: navy #003370, gold #d0953d) */
:root { --navy: #003370; --navy-d: #00234d; --gold: #d0953d; --ink: #1c1f26; --text-2: #4a5160; --text-3: #7a8191; --line: #e2e6ee; --bg: #f5f7fb; --card: #fff; --ok: #1d7a46; --warn: #b7791f; --bad: #b42318; --radius: 10px; }
* { box-sizing: border-box; }
html, body { margin: 0; font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--ink); background: var(--bg); font-size: 15px; line-height: 1.5; }
a { color: var(--navy); }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.25; }
.topbar { background: var(--navy); color: #fff; display: flex; align-items: center; gap: 16px; padding: 10px 20px; position: sticky; top: 0; z-index: 20; }
.topbar .brand { font-weight: 800; letter-spacing: .02em; }
.topbar .brand small { display: block; font-weight: 500; color: #c9d6ea; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.topbar .sp { flex: 1; }
.topbar button { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.35); }
.wrap { max-width: 1180px; margin: 0 auto; padding: 20px; }
.narrow { max-width: 760px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; margin-bottom: 16px; }
.card h3 { font-size: 16px; }
.muted { color: var(--text-3); }
.small { font-size: 13px; }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end; }
.row > * { flex: 1 1 200px; }
label { display: block; font-size: 12px; font-weight: 700; color: var(--text-2); text-transform: uppercase; letter-spacing: .04em; margin: 10px 0 4px; }
label .hint { text-transform: none; letter-spacing: 0; font-weight: 400; color: var(--text-3); }
input, select, textarea { width: 100%; font: inherit; padding: 9px 11px; border: 1px solid #cfd5e0; border-radius: 8px; background: #fff; color: var(--ink); }
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid rgba(0,51,112,.25); border-color: var(--navy); }
input[type=checkbox], input[type=radio] { width: auto; margin-right: 6px; }
.btn, button { font: inherit; font-weight: 700; padding: 9px 16px; border-radius: 8px; border: 1px solid var(--navy); background: var(--navy); color: #fff; cursor: pointer; }
.btn.ghost, button.ghost { background: #fff; color: var(--navy); }
.btn.gold { background: var(--gold); border-color: var(--gold); color: #1c1f26; }
.btn.danger { background: var(--bad); border-color: var(--bad); }
.btn.sm, button.sm { padding: 5px 10px; font-size: 13px; }
button:disabled { opacity: .55; cursor: default; }
.pill { display: inline-block; padding: 2px 9px; border-radius: 99px; font-size: 12px; font-weight: 700; background: #e8eef7; color: var(--navy); }
.pill.warn { background: #fdf0d8; color: #8a5a00; } .pill.bad { background: #fde3e1; color: var(--bad); } .pill.ok { background: #dff3e7; color: var(--ok); }
table.list { width: 100%; border-collapse: collapse; }
table.list th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--text-3); border-bottom: 1px solid var(--line); padding: 8px; }
table.list td { border-bottom: 1px solid var(--line); padding: 9px 8px; vertical-align: top; }
table.list tr.click:hover { background: #f0f4fa; cursor: pointer; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 16px; flex-wrap: wrap; }
.tabs button { background: none; border: none; color: var(--text-2); border-bottom: 3px solid transparent; border-radius: 0; padding: 9px 12px; }
.tabs button.on { color: var(--navy); border-bottom-color: var(--gold); }
.toast { position: fixed; bottom: 20px; right: 20px; background: var(--ink); color: #fff; padding: 12px 16px; border-radius: 8px; z-index: 99; max-width: 420px; box-shadow: 0 6px 24px rgba(0,0,0,.2); }
.toast.err { background: var(--bad); }
.center-box { max-width: 420px; margin: 8vh auto; }
.alert { padding: 10px 14px; border-radius: 8px; background: #fdf0d8; border: 1px solid #f2d39a; color: #6b4600; margin-bottom: 12px; }
.alert.bad { background: #fde3e1; border-color: #f3b8b2; color: #7a1a12; }
.alert.info { background: #e8eef7; border-color: #c6d4ea; color: var(--navy-d); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; } .grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 860px) { .grid2, .grid3 { grid-template-columns: 1fr; } }
.stat { font-size: 26px; font-weight: 800; color: var(--navy); } .stat small { display: block; font-size: 12px; font-weight: 600; color: var(--text-3); text-transform: uppercase; }

/* stage pipeline */
.pipeline { display: flex; gap: 4px; overflow-x: auto; padding-bottom: 4px; }
.pipeline .st { flex: 1 0 auto; min-width: 74px; text-align: center; font-size: 11px; font-weight: 700; padding: 8px 6px; border-radius: 6px; background: #e8ecf3; color: var(--text-3); border: 0; }
.pipeline .st.done { background: #cfe0f5; color: var(--navy); } .pipeline .st.cur { background: var(--navy); color: #fff; }
.pipeline button.st { cursor: pointer; }

/* messages */
.thread { max-height: 460px; overflow-y: auto; padding: 6px; background: #f8fafc; border: 1px solid var(--line); border-radius: 8px; }
.msg { max-width: 80%; margin: 8px 0; padding: 9px 12px; border-radius: 10px; white-space: pre-wrap; font-size: 14px; }
.msg .meta { font-size: 11px; color: var(--text-3); margin-bottom: 2px; }
.msg.client { background: #fff; border: 1px solid var(--line); }
.msg.staff { background: #e3ecf8; margin-left: auto; }
.msg.system { background: #fff7e8; border: 1px dashed #e9c98c; max-width: 100%; }
.msg.internal { background: #f1f1f1; border: 1px dashed #bbb; margin-left: auto; }
.me-right .msg.client { background: #e3ecf8; margin-left: auto; border: 0; } .me-right .msg.staff { background: #fff; border: 1px solid var(--line); margin-left: 0; }

/* intake wizard */
.wiz-progress { height: 6px; background: #e2e6ee; border-radius: 3px; overflow: hidden; margin: 6px 0 18px; } .wiz-progress div { height: 100%; background: var(--gold); transition: width .3s; }
.why { background: #f0f4fa; border-left: 4px solid var(--navy); padding: 10px 14px; border-radius: 6px; font-size: 14px; color: var(--navy-d); margin: 4px 0 14px; }
.choices { display: flex; gap: 8px; flex-wrap: wrap; } .choices label { text-transform: none; letter-spacing: 0; font-weight: 600; font-size: 14px; color: var(--ink); border: 1px solid #cfd5e0; border-radius: 8px; padding: 8px 12px; margin: 0; cursor: pointer; background: #fff; } .choices input { margin: 0 6px 0 0; }
.choices label:has(input:checked) { border-color: var(--navy); background: #e8eef7; }

/* document preview (page look) */
.doc-page { background: #fff; border: 1px solid #d5dbe5; box-shadow: 0 2px 14px rgba(0,0,0,.06); padding: 56px 64px; font-family: "Times New Roman", Times, serif; font-size: 15px; line-height: 1.45; color: #111; }
.doc-page [contenteditable]:hover { background: #fffbe6; } .doc-page [contenteditable]:focus { outline: 1px dashed var(--gold); background: #fffdf2; }
.pv-firm { text-align: center; border-bottom: 2px solid var(--navy); padding-bottom: 8px; margin-bottom: 18px; font-size: 18px; }
.pv-lh { font-size: 13px; margin-bottom: 16px; } .pv-court { text-align: center; font-weight: 700; margin: 10px 0 14px; }
.pv-cap { width: 100%; border-collapse: collapse; margin-bottom: 16px; } .pv-cap td { width: 50%; vertical-align: top; padding: 6px 10px; } .pv-cap td:first-child { border-right: 1px solid #000; border-bottom: 1px solid #000; }
.pv-re td { padding: 0 8px 0 0; vertical-align: top; }
.pv-body p { margin: 0 0 10px; } .pv-body p.ind { text-indent: 3em; } .pv-body.pleading p { line-height: 2; }
.pv-h { text-align: center; font-weight: 700; margin: 16px 0 8px; } .pv-sub { font-weight: 700; margin: 12px 0 6px; font-size: 15px; }
.pv-num { display: flex; gap: 10px; } .pv-num span { min-width: 2em; padding-left: 2em; } .pv-num p { flex: 1; }
.pv-tbl { width: 100%; border-collapse: collapse; margin: 8px 0 14px; } .pv-tbl td, .pv-tbl th { border: 1px solid #999; padding: 4px 8px; font-size: 14px; } .pv-tbl th { background: #dce3ec; }
.pv-ai { border: 1px dashed var(--gold); background: #fffaf0; border-radius: 8px; padding: 10px 12px; margin: 10px 0; font-family: Inter, system-ui, sans-serif; }
.pv-ai-head { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; font-size: 13px; } .pv-ai-head span { color: var(--text-3); font-size: 12px; }
.pv-ai-row { display: flex; gap: 8px; margin: 6px 0; } .pv-ai-row textarea { font-size: 13px; }
.pv-ai-paras { font-family: "Times New Roman", serif; font-size: 15px; } .pv-ai-paras p.ind { text-indent: 3em; }
.pv-close, .pv-sig, .pv-cos { margin-top: 18px; } .pv-pb { border: 0; border-top: 2px dashed #ccc; margin: 20px 0; }
.doclib { display: grid; grid-template-columns: 290px 1fr; gap: 16px; } @media (max-width: 960px) { .doclib { grid-template-columns: 1fr; } }
.doclist button { display: block; width: 100%; text-align: left; background: #fff; color: var(--ink); border: 1px solid var(--line); margin-bottom: 4px; font-weight: 600; font-size: 13px; padding: 7px 10px; }
.doclist button.on { border-color: var(--navy); background: #e8eef7; } .doclist h5 { margin: 12px 0 4px; font-size: 11px; color: var(--text-3); text-transform: uppercase; letter-spacing: .06em; }
.rep { border: 1px solid var(--line); border-radius: 8px; padding: 10px; margin-bottom: 8px; background: #fafbfd; }
.rep .x { float: right; }
.checklist label { text-transform: none; letter-spacing: 0; font-weight: 500; font-size: 14px; color: var(--ink); display: flex; gap: 6px; align-items: flex-start; margin: 6px 0; }
.checklist label.done span { text-decoration: line-through; color: var(--text-3); }
