:root {
  /* Light theme with Catholic-inspired palette (Marian blue + gold) */
  --bg: #f8fafc;         /* slate-50 */
  --panel: #ffffff;      /* white */
  --muted: #f1f5f9;      /* slate-100 */
  --text: #0f172a;       /* slate-900 */
  --text-dim: #475569;   /* slate-600 */
  --brand: #1e40af;      /* indigo-800 */
  --accent: #eab308;     /* yellow-500 */
  --err: #dc2626;        /* red-600 */
}
* { box-sizing: border-box; }
body { margin:0; background:var(--bg); color:var(--text); font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif; }
a { color: #1d4ed8; text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: 1100px; margin: 0 auto; padding: 16px; }
.header { position: sticky; top: 0; z-index: 5; background: rgba(255,255,255,0.92); backdrop-filter: blur(8px); border-bottom: 1px solid #e2e8f0; }
.space { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.brand { font-weight: 700; color: var(--brand); letter-spacing: .2px; }
.crest { color: var(--accent); margin-right: 8px; }
.muted { color: var(--text-dim); }
.small { font-size: 12px; }
.panel { background: var(--panel); border: 1px solid #e2e8f0; border-radius: 12px; padding: 16px; }
.grid { display: grid; gap: 16px; }
.cards { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.kpi { font-size: 28px; font-weight: 700; color: #0f172a; margin: 6px 0 0; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 10px; border-bottom: 1px solid #e5e7eb; }
.button { background: var(--brand); color: #ffffff; padding: 8px 12px; border-radius: 8px; border: 0; cursor: pointer; font-weight: 600; }
.button.secondary { background: var(--muted); color: var(--text); border: 1px solid #cbd5e1; text-decoration: none; }
.list { display: flex; flex-direction: column; gap: 8px; }
.card { background: var(--panel); border: 1px solid #e5e7eb; border-radius: 10px; padding: 12px; }
.flex { display:flex; gap: 12px; align-items:center; }
.right { text-align: right; }
.pill { display:inline-block; padding: 2px 8px; border-radius: 999px; background: #e2e8f0; color:#0f172a; font-size: 12px; }
.status-open { background: #dcfce7; color: #14532d; }
.status-in_progress { background: #ede9fe; color: #5b21b6; }
.status-completed { background: #fef3c7; color: #92400e; }
.divider { height: 1px; background: #e5e7eb; margin: 16px 0; }
.field { margin-bottom: 12px; }
.field label { display:block; margin-bottom: 6px; color: var(--text-dim); font-size: 13px; }
.input, select, textarea { width: 100%; background: #ffffff; border: 1px solid #cbd5e1; color: var(--text); padding: 8px; border-radius: 8px; }
textarea { min-height: 90px; }
summary.button { cursor: pointer; display: inline-block; }
/* Inline tooltip for ⓘ hints */
.hint { position: relative; display: inline-block; margin-left: 4px; cursor: help; font-weight: 700; color: var(--text-dim); }
.hint:focus { outline: none; }
.hint[data-tip]::after {
  content: attr(data-tip);
  position: absolute;
  bottom: 125%;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(15,23,42,0.95);
  color: #fff;
  padding: 6px 8px;
  border-radius: 6px;
  font-size: 12px;
  line-height: 1.2;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .15s ease;
  box-shadow: 0 6px 18px rgba(0,0,0,.2);
  z-index: 10;
}
.hint[data-tip]::before {
  content: '';
  position: absolute;
  bottom: 115%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: rgba(15,23,42,0.95);
  opacity: 0;
  transition: opacity .15s ease;
}
.hint:hover[data-tip]::after,
.hint:focus[data-tip]::after,
.hint:hover[data-tip]::before,
.hint:focus[data-tip]::before { opacity: 1; }
