:root { --primary:#1A3C2E; --accent:#C8972A; --bg:#f5f5f5; --text:#1b1f1d; --muted:#6a726e; --line:#e3e6e4; --danger:#b3261e; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; background: var(--bg); color: var(--text); font-family: -apple-system, "Segoe UI", Roboto, Arial, sans-serif; font-size: 16px; line-height: 1.4; }
.muted { color: var(--muted); font-size: 14px; }
.error { color: var(--danger); font-size: 14px; margin: 8px 0; }
.card { background: #fff; border-radius: 16px; padding: 16px; margin: 0 0 12px; box-shadow: 0 1px 3px rgba(0,0,0,.08); overflow-wrap: anywhere; }
.login { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 16px; }
.login-card { width: 100%; max-width: 380px; padding: 24px; }
.login-card h1 { margin: 0 0 4px; color: var(--primary); font-size: 24px; }
label { display: block; margin: 14px 0 6px; font-size: 14px; font-weight: 600; }
input, select { width: 100%; height: 48px; padding: 0 12px; font-size: 16px; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--text); }
input:focus, select:focus, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.btn { width: 100%; height: 48px; margin-top: 18px; border: 0; border-radius: 12px; background: var(--primary); color: #fff; font-size: 16px; font-weight: 600; }
.btn:disabled { opacity: .6; }
.btn-inline { height: 48px; padding: 0 18px; border: 0; border-radius: 12px; background: var(--primary); color: #fff; font-size: 15px; font-weight: 600; }
.btn-small { height: 32px; padding: 0 12px; border: 1px solid rgba(255,255,255,.5); border-radius: 10px; background: transparent; color: #fff; font-size: 14px; }
.top { background: var(--primary); color: #fff; position: sticky; top: 0; z-index: 5; }
.top-row { display: flex; align-items: center; gap: 10px; padding: 12px 16px 6px; }
.who { flex: 1; text-align: right; font-size: 12px; opacity: .8; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tabs { display: flex; gap: 4px; overflow-x: auto; padding: 0 12px; }
.tab { flex: 0 0 auto; padding: 10px 12px; border: 0; border-bottom: 3px solid transparent; background: transparent; color: rgba(255,255,255,.75); font-size: 15px; }
.tab.active { color: #fff; border-bottom-color: var(--accent); font-weight: 600; }
.content { padding: 16px; max-width: 760px; margin: 0 auto; }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 12px; }
.tile { background: #fff; border-radius: 16px; padding: 12px; box-shadow: 0 1px 3px rgba(0,0,0,.08); text-align: center; }
.tile .num { font-size: 24px; font-weight: 700; color: var(--primary); }
.tile .lbl { font-size: 12px; color: var(--muted); }
h2 { font-size: 16px; margin: 0 0 8px; color: var(--primary); }
.row { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-top: 1px solid var(--line); font-size: 14px; }
.row:first-of-type { border-top: 0; }
.row .k { color: var(--muted); flex: 0 0 auto; }
.row .v { text-align: right; min-width: 0; }
.controls { display: flex; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.controls select, .controls input { flex: 1 1 120px; width: auto; }
.chip { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; background: #e8ece9; color: var(--primary); }
.chip.medium { background: #f6e8c6; color: #7a5a0c; }
.chip.high { background: #f7d9d6; color: var(--danger); }
.item-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 6px; font-size: 13px; color: var(--muted); }
.item-title { font-weight: 600; margin-bottom: 4px; }
.item-meta { font-size: 13px; color: var(--muted); }
.item-body { font-size: 14px; margin-top: 4px; white-space: pre-wrap; }
.state { text-align: center; color: var(--muted); padding: 24px 0; }
