
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; display: grid; grid-template-columns: 230px 1fr; font-family: Inter, Arial, sans-serif; color: #172033; background: #f5f7fb; }
aside { position: sticky; top: 0; height: 100vh; padding: 22px 16px; background: #111827; color: #fff; }
.brand { font-size: 18px; font-weight: 800; margin-bottom: 24px; }
nav { display: grid; gap: 6px; }
nav a, .logout { display: block; color: #cbd5e1; text-decoration: none; padding: 10px 12px; border-radius: 8px; font-size: 14px; }
nav a.active, nav a:hover, .logout:hover { color: #fff; background: #263244; }
.logout { position: absolute; bottom: 18px; left: 16px; right: 16px; }
.userbox { position: absolute; left: 16px; right: 16px; bottom: 62px; padding: 10px 12px; border: 1px solid #334155; border-radius: 8px; color: #fff; font-size: 13px; }
.userbox span { display: block; margin-top: 3px; color: #94a3b8; font-size: 12px; }
main { padding: 28px; min-width: 0; }
.title { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 18px; }
h1 { margin: 0; font-size: 30px; letter-spacing: 0; }
h2 { margin: 0 0 14px; font-size: 17px; }
p { color: #64748b; margin: 8px 0 0; }
a { color: #1d4ed8; text-decoration: none; }
a:hover { text-decoration: underline; }
.cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.card, .panel, .lane { background: #fff; border: 1px solid #dfe5ef; border-radius: 8px; padding: 16px; box-shadow: 0 8px 24px rgba(20,35,60,.05); }
.card span { display: block; color: #64748b; font-size: 13px; margin-bottom: 10px; }
.card strong { font-size: 28px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.split.detail { align-items: start; }
.toolbar, .searchbar { display: flex; gap: 10px; margin-bottom: 16px; }
input, select { width: 100%; border: 1px solid #cbd5e1; border-radius: 8px; padding: 11px 12px; font: inherit; background: #fff; min-width: 0; }
.filters input { flex: 1.4; }
.filters select { flex: 1; }
button { border: 0; border-radius: 8px; padding: 11px 16px; background: #2563eb; color: #fff; font-weight: 700; cursor: pointer; }
button.danger { background: #dc2626; }
.button-link { display: inline-flex; align-items: center; justify-content: center; min-height: 38px; padding: 9px 12px; border-radius: 8px; background: #eef4ff; color: #1d4ed8; font-weight: 700; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th { text-align: left; color: #64748b; font-weight: 700; border-bottom: 1px solid #e2e8f0; padding: 10px 8px; }
td { border-bottom: 1px solid #eef2f7; padding: 10px 8px; vertical-align: top; max-width: 280px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
td small { display: block; color: #94a3b8; margin-top: 4px; overflow: hidden; text-overflow: ellipsis; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12px; }
.num { text-align: right; }
.pill { display: inline-block; background: #eef4ff; color: #1d4ed8; border-radius: 999px; padding: 3px 8px; }
.muted { color: #94a3b8; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.mini-actions { display: flex; gap: 8px; align-items: center; }
.inline-form { margin: 0; }
.inline-form button { padding: 7px 10px; font-size: 12px; }
.definition { display: grid; grid-template-columns: 160px 1fr; gap: 8px 14px; margin: 0; }
.definition dt { color: #64748b; }
.definition dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
pre { margin: 0; max-height: 520px; overflow: auto; padding: 12px; border: 1px solid #e2e8f0; border-radius: 8px; background: #0f172a; color: #dbeafe; font-size: 12px; line-height: 1.45; }
.stack-form { display: grid; gap: 12px; }
.stack-form label { display: grid; gap: 6px; color: #475569; font-size: 13px; }
.bar { position: relative; display: grid; grid-template-columns: 1fr auto; gap: 12px; padding: 9px 0; border-bottom: 1px solid #eef2f7; overflow: hidden; }
.bar i { position: absolute; left: 0; bottom: 0; height: 3px; background: #2563eb; border-radius: 3px; }
.status-row { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid #eef2f7; }
.kanban { display: grid; grid-template-columns: repeat(5, minmax(210px, 1fr)); gap: 12px; overflow-x: auto; padding-bottom: 8px; }
.lane h2 { display: flex; justify-content: space-between; align-items: center; }
.lane h2 span { background: #eef2ff; color: #3730a3; padding: 2px 8px; border-radius: 999px; font-size: 12px; }
.ticket, .result { display: grid; gap: 5px; border: 1px solid #e2e8f0; border-radius: 8px; padding: 11px; margin-bottom: 10px; background: #fbfcff; }
.ticket span, .result span { color: #475569; font-size: 13px; }
.ticket small, .result small { color: #94a3b8; }
.empty { color: #64748b; padding: 18px; border: 1px dashed #cbd5e1; border-radius: 8px; background: #fbfcff; }
.login-page { display: grid; grid-template-columns: 1fr; place-items: center; background: #f5f7fb; }
.login-card { width: min(420px, calc(100vw - 32px)); background: #fff; border: 1px solid #dfe5ef; border-radius: 8px; padding: 28px; box-shadow: 0 14px 40px rgba(20,35,60,.08); }
.login-card h1 { margin-bottom: 6px; }
.login-card label { display: grid; gap: 6px; margin: 14px 0; color: #475569; font-size: 13px; }
.login-card button { width: 100%; margin-top: 8px; }
.error { padding: 10px 12px; background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; border-radius: 8px; margin-top: 14px; }
@media (max-width: 980px) { body { grid-template-columns: 1fr; } aside { position: relative; height: auto; } .logout, .userbox { position: static; margin-top: 8px; } .cards, .split { grid-template-columns: 1fr; } .toolbar, .searchbar { flex-wrap: wrap; } .definition { grid-template-columns: 1fr; } }
