/* Protection panel + history — rides on desert-ops-console.css tokens */
:root{ --amber:#B07E24; --amber-bg:rgba(176,126,36,.14); }
@media (prefers-color-scheme: dark){ :root:not([data-theme="light"]){ --amber:#D7A33F; } }
:root[data-theme="dark"]{ --amber:#D7A33F; }
.prot{ padding:20px 22px 18px; border-bottom:2px solid var(--ink); }
.acct-console > .prot:last-child{ border-bottom:0; }
.prot-head{ display:flex; align-items:center; gap:12px; flex-wrap:wrap; font-family:var(--mono); font-size:11px; letter-spacing:.14em; text-transform:uppercase; color:var(--muted); }
.prot-lamp{ width:10px; height:10px; background:var(--muted); flex-shrink:0; }
.prot-lamp.green{ background:var(--olive); animation:lampPulse 2.4s infinite; }
.prot-lamp.yellow{ background:var(--amber); }
.prot-lamp.red{ background:var(--rust); animation:lampPulse 1.2s infinite; }
.prot-title{ color:var(--ink); font-weight:700; }
.prot-state{ font-weight:700; padding:2px 8px; border:1px solid currentColor; }
.prot-state.green{ color:var(--olive); } .prot-state.yellow{ color:var(--amber); } .prot-state.red{ color:var(--rust); } .prot-state.unknown{ color:var(--muted); }
.prot-reason{ text-transform:none; letter-spacing:0; font-size:12px; color:var(--rust); }
.prot[data-status="yellow"] .prot-reason{ color:var(--amber); }
.prot-empty{ font-family:var(--body); font-size:13px; color:var(--muted); line-height:1.6; padding:16px 0 4px; }
.prot-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:0; margin-top:18px; border:1px solid var(--line); }
@media(max-width:720px){ .prot-grid{ grid-template-columns:1fr; } }
.prot-cell{ padding:14px 16px; border-left:1px solid var(--line); min-width:0; }
.prot-cell:first-child{ border-left:0; }
@media(max-width:720px){ .prot-cell{ border-left:0; border-top:1px solid var(--line); } .prot-cell:first-child{ border-top:0; } }
.prot-cell .dk{ font-family:var(--mono); font-size:10.5px; letter-spacing:.12em; text-transform:uppercase; color:var(--muted); }
.prot-cell .dv{ font-family:var(--display); font-weight:800; text-transform:uppercase; font-size:20px; line-height:1.1; color:var(--ink); margin:6px 0 4px; }
.prot-cell .ds, .prot-table .ds{ display:block; font-family:var(--mono); font-size:11.5px; color:var(--muted); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.prot-gauge{ height:6px; background:var(--panel-2); border:1px solid var(--line); margin-top:10px; }
.prot-gauge-fill{ height:100%; background:var(--accent); }
.prot-gauge-fill.yellow{ background:var(--amber); } .prot-gauge-fill.red{ background:var(--rust); }
.prot-hist{ display:flex; align-items:center; gap:3px; margin-top:16px; flex-wrap:wrap; }
.hist-cell{ width:12px; height:12px; background:var(--panel-2); border:1px solid var(--line-2); }
.hist-cell.green{ background:var(--olive); border-color:var(--olive); }
.hist-cell.yellow{ background:var(--amber); border-color:var(--amber); }
.hist-cell.red{ background:var(--rust); border-color:var(--rust); }
.hist-label{ margin-left:auto; font-family:var(--mono); font-size:11px; color:var(--muted); letter-spacing:.04em; }
.prot-foot{ margin-top:12px; font-family:var(--mono); font-size:11.5px; color:var(--muted); }
.prot-table{ width:100%; border-collapse:collapse; font-family:var(--mono); font-size:12.5px; }
.prot-table th{ text-align:left; font-size:10.5px; letter-spacing:.12em; text-transform:uppercase; color:var(--muted); padding:10px 14px; border-bottom:1px solid var(--line); }
.prot-table td{ padding:10px 14px; border-bottom:1px solid var(--line-2); vertical-align:top; color:var(--ink); }
.prot-row{ cursor:pointer; } .prot-row:hover td{ background:var(--panel-2); }
.pill{ display:inline-block; font-size:10.5px; font-weight:700; letter-spacing:.1em; text-transform:uppercase; padding:2px 7px; border:1px solid currentColor; }
.pill.green{ color:var(--olive); } .pill.yellow{ color:var(--amber); } .pill.red{ color:var(--rust); } .pill.none{ color:var(--muted); }
.prot-detail td{ background:var(--panel-2); }
.prot-files{ list-style:none; margin:0; padding:4px 0; font-size:12px; }
.prot-files li{ padding:3px 0; color:var(--ink); word-break:break-all; }
.prot-files li.ok::before{ color:var(--olive); } .prot-files li.bad{ color:var(--rust); }
