:root { --bg:#f6f7f9; --card:#fff; --line:#d7dbe0; --text:#1d2430; --muted:#5f6977; --accent:#234; --warn:#e0a800; --late:#d9534f; --ok:#2e8b57; }
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.4 -apple-system, "Segoe UI", Roboto, sans-serif; }
a { color: var(--accent); }
.top { display: flex; align-items: center; gap: 14px; padding: 10px 16px; background: var(--card); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 2; }
.top nav { display: flex; gap: 12px; flex-wrap: wrap; }
.top nav a { text-decoration: none; color: var(--muted); }
.top nav a.active { color: var(--accent); font-weight: 600; }
.brand { font-weight: 700; text-decoration: none; }
.top #logout { margin-left: auto; }
main { max-width: 760px; margin: 0 auto; padding: 12px 16px 60px; }
h1 { font-size: 20px; margin: 8px 0 12px; }
h2 { font-size: 17px; margin: 18px 0 8px; }
button, .btn { font: inherit; padding: 7px 12px; border-radius: 6px; border: 1px solid var(--accent); background: var(--accent); color: #fff; cursor: pointer; text-decoration: none; display: inline-block; }
button.secondary, .btn.secondary { background: var(--card); color: var(--accent); }
button.link { border: 0; background: none; color: var(--accent); padding: 0; text-decoration: underline; }
button:disabled { opacity: .5; cursor: default; }
input, select, textarea { font: inherit; padding: 7px 9px; border: 1px solid var(--line); border-radius: 6px; width: 100%; background: #fff; }
textarea { min-height: 90px; }
label { display: block; font-size: 13px; color: var(--muted); margin: 8px 0 3px; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.row > * { flex: 1 1 140px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 12px; }
.chip { font-size: 13px; padding: 4px 11px; border: 1px solid var(--line); border-radius: 14px; background: #fff; cursor: pointer; }
.chip.on { background: var(--accent); color: #fff; border-color: var(--accent); }
.req { border: 1px solid var(--line); border-left: 4px solid transparent; border-radius: 8px; padding: 10px 12px; margin-bottom: 8px; background: var(--card); display: block; color: inherit; text-decoration: none; }
.req .head { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.req .name { font-weight: 600; }
.req .days { font-size: 13px; color: var(--muted); white-space: nowrap; }
.req .meta { color: var(--muted); font-size: 13px; margin-top: 4px; }
.req .reason { margin-top: 4px; }
.req.l1 { border-left-color: var(--warn); } .req.l1 .days { color: #9a7200; font-weight: 700; }
.req.l2 { border-left-color: var(--late); } .req.l2 .days { color: #b52b27; font-weight: 700; }
.st.warn { background: #fff3cd; color: #7a5a00; }
.st { display: inline-block; padding: 1px 8px; border-radius: 10px; font-size: 12px; background: #e8eef7; color: var(--accent); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 12px; margin-bottom: 12px; }
.muted { color: var(--muted); }
.error { color: var(--late); min-height: 1.2em; }
.warn { color: #9a7200; }
.login { position: fixed; inset: 0; background: var(--bg); display: flex; align-items: center; justify-content: center; z-index: 5; }
.login form { background: var(--card); padding: 24px; border-radius: 10px; width: min(360px, 92vw); display: grid; gap: 10px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
td, th { padding: 6px 4px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
ul.plain { list-style: none; padding: 0; margin: 0; }
ul.plain li { padding: 6px 0; border-bottom: 1px solid var(--line); }
pre.msg { white-space: pre-wrap; background: #f1f3f6; padding: 10px; border-radius: 6px; font: inherit; }
[hidden] { display: none !important; }
label.inline { display: inline-block; margin: 2px 8px 2px 0; font-size: 14px; color: var(--text); }
label.inline input { width: auto; }
details summary { cursor: pointer; color: var(--accent); margin: 6px 0; }
