*{box-sizing:border-box}
body{margin:0;font-family:system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;background:#f1f5f9;color:#0f172a;line-height:1.5}
a{color:#0e7490}
.topbar{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;background:#fff;border-bottom:1px solid #e2e8f0;padding:10px 24px}
.brand img{height:36px;display:block}
.topbar nav{display:flex;align-items:center;gap:18px;flex-wrap:wrap}
.topbar nav a{text-decoration:none;font-weight:600;color:#334155}
.topbar nav a:hover{color:#0e7490}
.who{color:#64748b;font-size:.9rem}
.container{max-width:980px;margin:28px auto;padding:0 16px}
.foot{text-align:center;color:#94a3b8;font-size:.8rem;padding:24px}
h1{font-size:1.5rem;margin:0 0 16px}
h2{font-size:1.15rem;margin:24px 0 10px}
.card{background:#fff;border:1px solid #e2e8f0;border-radius:10px;padding:20px;margin-bottom:18px}
.row{display:flex;gap:12px;flex-wrap:wrap;align-items:center;justify-content:space-between;margin-bottom:14px}
label{display:block;font-weight:600;margin:14px 0 4px;font-size:.92rem}
input[type=text],input[type=email],input[type=password],select,textarea{width:100%;padding:10px 12px;border:1px solid #cbd5e1;border-radius:8px;font:inherit;background:#fff}
textarea{min-height:130px;resize:vertical}
input:focus,select:focus,textarea:focus{outline:2px solid #22a6c7;border-color:#22a6c7}
.btn{display:inline-block;background:#0e7490;color:#fff;border:0;border-radius:8px;padding:10px 18px;font:inherit;font-weight:600;cursor:pointer;text-decoration:none}
.btn:hover{background:#0b5f76}
.btn-ok{background:#15803d}.btn-ok:hover{background:#116c33}
.btn-sec{background:#e2e8f0;color:#0f172a}.btn-sec:hover{background:#cbd5e1}
.btn-sm{padding:5px 10px;font-size:.85rem}
.alert{padding:12px 16px;border-radius:8px;margin-bottom:16px}
.alert-ok{background:#dcfce7;color:#14532d}
.alert-err{background:#fee2e2;color:#7f1d1d}
.badge{display:inline-block;padding:2px 10px;border-radius:999px;font-size:.78rem;font-weight:700}
.prio-alta{background:#fee2e2;color:#b91c1c}
.prio-media{background:#fef3c7;color:#92400e}
.prio-baja{background:#dbeafe;color:#1e40af}
.st-abierta{background:#ffedd5;color:#9a3412}
.st-resuelta{background:#dcfce7;color:#166534}
.tabs{display:flex;gap:6px;margin-bottom:16px}
.tabs a{padding:8px 16px;border-radius:8px;text-decoration:none;font-weight:600;background:#e2e8f0;color:#334155}
.tabs a.on{background:#0e7490;color:#fff}
table{width:100%;border-collapse:collapse;background:#fff;border:1px solid #e2e8f0;border-radius:10px;overflow:hidden}
th,td{padding:11px 14px;text-align:left;border-bottom:1px solid #eef2f7;font-size:.93rem;vertical-align:middle}
th{background:#f8fafc;color:#475569;font-size:.8rem;text-transform:uppercase;letter-spacing:.03em}
tr:last-child td{border-bottom:0}
.stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:12px;margin-bottom:18px}
.stat{background:#fff;border:1px solid #e2e8f0;border-radius:10px;padding:14px 18px}
.stat b{display:block;font-size:1.8rem}
.muted{color:#64748b;font-size:.88rem}
.empty{text-align:center;color:#64748b;padding:32px}
.desc{white-space:pre-wrap}
.shot{max-width:100%;max-height:420px;border:1px solid #e2e8f0;border-radius:8px;margin-top:12px}
.comment{border-left:3px solid #cbd5e1;padding:8px 14px;margin:12px 0;background:#f8fafc;border-radius:0 8px 8px 0}
.comment.admin{border-color:#0e7490;background:#ecfeff}
.comment.resolved{border-color:#15803d;background:#f0fdf4}
.comment.reopened{border-color:#d97706;background:#fffbeb}
.comment .meta{font-size:.82rem;color:#64748b;margin-bottom:4px}
.comment .txt{white-space:pre-wrap}
.actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:12px}
.login-box{max-width:400px;margin:60px auto}
.login-box .logo{text-align:center;margin-bottom:24px}
.login-box .logo img{height:56px}
.inline{display:inline}
.filters{display:flex;gap:12px;flex-wrap:wrap;align-items:end;margin-bottom:16px}
.filters>div{min-width:200px}
@media(max-width:640px){th:nth-child(n+4),td:nth-child(n+4){display:none}}
