/* LTS Claims — dark navy glass, phone-first. Matches the LTS app family. */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background: linear-gradient(160deg, #081426 0%, #0b1f3a 55%, #12325e 100%);
    background-attachment: fixed;
    color: #e8eef6;
    min-height: 100vh;
}
a { color: #8fc1ff; }
.muted { color: #9db2c8; font-size: 12.5px; }
.center { text-align: center; }

.topbar {
    position: sticky; top: 0; z-index: 40;
    display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
    padding: 10px 14px;
    background: rgba(8, 20, 38, .88); backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, .12);
}
.brand { font-weight: 800; font-size: 18px; color: #fff; text-decoration: none; letter-spacing: .4px; }
.brand span { color: #ffd34d; }
.topnav { display: flex; gap: 6px; }
.topnav a {
    color: #cfe0f2; text-decoration: none; font-size: 13.5px; font-weight: 600;
    padding: 6px 10px; border-radius: 8px; border: 1px solid transparent;
}
.topnav a.on { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .18); color: #fff; }
.badge { background: #d43a2f; color: #fff; border-radius: 999px; padding: 0 7px; font-size: 11.5px; font-weight: 800; }
.who { margin-left: auto; font-size: 13px; color: #cfe0f2; }
.signout { color: #9db2c8; font-size: 13px; text-decoration: none; }

.wrap { max-width: 860px; margin: 0 auto; padding: 12px 12px 26px; }
.crumb { color: #9db2c8; font-size: 12.5px; margin: 2px 0 10px; }

.card {
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .13);
    border-radius: 14px; margin-bottom: 14px;
    backdrop-filter: blur(8px);
    overflow: hidden;
}
.card h3 {
    margin: 0; padding: 11px 14px; font-size: 15.5px; color: #fff;
    background: rgba(255, 255, 255, .05); border-bottom: 1px solid rgba(255, 255, 255, .09);
}
.card .body { padding: 12px 14px; }

.alert { border-radius: 10px; padding: 10px 12px; margin-bottom: 12px; font-size: 14px; }
.alert-ok { background: rgba(38, 145, 74, .25); border: 1px solid rgba(64, 199, 110, .55); color: #c9f4d8; }
.alert-err { background: rgba(190, 45, 35, .22); border: 1px solid rgba(255, 110, 95, .55); color: #ffd7d2; }

.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 14px; }
.stat {
    background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .13);
    border-radius: 12px; padding: 10px 6px; text-align: center;
}
.stat .n { font-size: 19px; font-weight: 800; color: #fff; }
.stat .l { font-size: 11px; color: #9db2c8; margin-top: 2px; }
@media (max-width: 560px) { .stat-row { grid-template-columns: repeat(2, 1fr); } }

.lane { border: 1px solid rgba(255, 255, 255, .14); border-radius: 12px; padding: 11px 12px; margin-bottom: 10px; background: rgba(4, 12, 24, .35); }
.lane.state-suspended { border-color: rgba(255, 179, 0, .65); background: rgba(84, 58, 0, .28); }
.lane-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.lane-name { font-size: 16px; color: #fff; }
.lane-meta { font-size: 13px; color: #cfe0f2; margin: 7px 0 4px; line-height: 1.55; }
.lane-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 9px; align-items: flex-start; }
.lane-actions form { display: inline; }

.pill { border-radius: 999px; padding: 2px 9px; font-size: 11px; font-weight: 800; letter-spacing: .4px; background: rgba(255, 255, 255, .14); color: #e8eef6; white-space: nowrap; }
.pill-txn { background: rgba(143, 193, 255, .2); color: #cfe6ff; }

.btn {
    display: inline-block; cursor: pointer; text-decoration: none;
    background: rgba(255, 255, 255, .1); color: #fff;
    border: 1px solid rgba(255, 255, 255, .28); border-radius: 9px;
    padding: 8px 13px; font-size: 13.5px; font-weight: 700;
}
.btn:hover { background: rgba(255, 255, 255, .18); }
.btn-green { background: #1e7d46; border-color: #2ea862; }
.btn-danger { background: #a02c20; border-color: #c0452f; }
.btn-warn { background: #8a5f08; border-color: #b97e10; }
.btn-big { width: 100%; padding: 12px; font-size: 15.5px; background: #1f5fb8; border-color: #3a7bd0; margin-top: 6px; }
.btn-green.btn-big { background: #1e7d46; border-color: #2ea862; }

.f { display: block; margin: 8px 0; }
.f .k { display: block; font-size: 11.5px; color: #9db2c8; margin-bottom: 4px; font-weight: 700; letter-spacing: .3px; }
.in {
    width: 100%; padding: 9px 10px; border-radius: 8px; font-size: 14.5px;
    background: rgba(6, 16, 30, .65); color: #fff; border: 1px solid rgba(255, 255, 255, .25);
}
.in:focus { outline: 2px solid #3a7bd0; }
select.in option { color: #111; }

.act {
    display: flex; justify-content: space-between; gap: 10px;
    padding: 9px 2px; border-bottom: 1px dotted rgba(255, 255, 255, .16);
}
.act:last-child { border-bottom: none; }
.act-main { font-size: 13.5px; line-height: 1.5; }
.act-details { color: #9db2c8; font-size: 12px; word-break: break-word; margin-top: 2px; }
.act-when { white-space: nowrap; font-size: 12px; }
.txn-side { text-align: right; font-size: 13px; white-space: nowrap; }

.login-wrap { max-width: 430px; padding-top: 34px; }
.login-card {
    background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 16px; padding: 22px 20px; backdrop-filter: blur(8px);
}
.login-brand { font-size: 26px; font-weight: 800; text-align: center; color: #fff; }
.login-brand span { color: #ffd34d; }
.aup {
    background: #fdf3c0; color: #5d4a00; border: 1px solid #e5cf6b; border-radius: 8px;
    font-size: 11px; line-height: 1.5; padding: 8px 10px; margin: 14px 0; font-weight: 600;
}
.session-data { margin-top: 16px; font-size: 11.5px; color: #9db2c8; line-height: 1.6; border-top: 1px dotted rgba(255, 255, 255, .2); padding-top: 10px; }

.err-card .stack {
    background: rgba(0, 0, 0, .4); border: 1px solid rgba(255, 255, 255, .15); border-radius: 8px;
    padding: 10px; font-size: 11.5px; white-space: pre-wrap; word-break: break-word; color: #ffd7d2;
}
.kv th { text-align: left; color: #9db2c8; padding-right: 12px; font-size: 13px; vertical-align: top; }
.kv td { font-size: 13.5px; }

.foot {
    max-width: 860px; margin: 0 auto; padding: 10px 14px 22px;
    display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap;
    color: #7e96b0; font-size: 11.5px;
}
.foot .ver { color: #7e96b0; text-decoration: none; }

/* ---- LTS Claims additions ---- */
.st-filed { background: #46617e; color: #fff; }
.st-review { background: #1f5fb8; color: #fff; }
.st-approved { background: #1e7d46; color: #fff; }
.st-denied { background: #a02c20; color: #fff; }
.st-linked { background: #6a3fb5; color: #fff; }
.st-repair { background: #b97e10; color: #fff; }
.st-repaired { background: #0f7a6d; color: #fff; }
.st-pickup { background: #2ea862; color: #fff; }
.st-done { background: rgba(255, 255, 255, .2); color: #dbe7f5; }

.pipe { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.pipe-step { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; padding: 5px 8px; border-radius: 9px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); }
.pipe-step .pipe-n { font-weight: 800; color: #fff; font-size: 14px; }
.pipe.mini .pipe-step { background: transparent; border-color: transparent; padding: 2px 0; opacity: .45; }
.pipe.mini .pipe-step.cur { opacity: 1; outline: 2px solid #ffd34d; border-radius: 999px; }
.pipe-arrow { color: #9db2c8; font-size: 12px; }

.sla-card { border-color: rgba(255, 179, 0, .55); }
.sla-badge { color: #ffcf5c; font-weight: 800; font-size: 12px; white-space: nowrap; }

.qform { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.qform .in { width: auto; flex: 1 1 200px; }
.qform .qsel { flex: 0 1 180px; }

.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; }
.gallery a { display: block; border-radius: 10px; overflow: hidden; border: 1px solid rgba(255,255,255,.18); }
.gallery img { width: 100%; height: 110px; object-fit: cover; display: block; }

.notes {
    background: rgba(0, 0, 0, .35); border: 1px solid rgba(255, 255, 255, .14); border-radius: 8px;
    padding: 10px; font-size: 12.5px; white-space: pre-wrap; word-break: break-word; color: #ffe9a8;
    font-family: inherit; margin: 0 0 6px;
}
.sep { border: none; border-top: 1px dotted rgba(255, 255, 255, .2); margin: 14px 0; }
