/*! © 2026 Cyber Affinity LLC. All rights reserved. Use is subject to https://www.cyber-affinity.com/terms — copying or redistributing this code is not permitted. */
/* SIEM Log Volume Estimator — tool-specific styles (shared classes live in /styles.css) */
.le-section { margin-top: 36px; }
.le-section h2 { font-size: 24px; margin: 0 0 8px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.le-section h3 { font-size: 18px; margin: 28px 0 10px; }
.le-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.le-num { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: rgba(45, 212, 191, 0.15); color: var(--accent); font-size: 16px; font-weight: 800; flex: none; }
.le-opt { font-size: 15px; font-weight: 400; }
.le-small { font-size: 14px; }
.le-sub { display: block; font-size: 12px; color: var(--muted); font-weight: 400; }
.le-warn { display: block; font-size: 12px; color: #fde047; }

/* Measure */
.le-dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; margin: 16px 0; }
.le-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; display: grid; gap: 8px; align-content: start; }
.le-card h3 { margin: 0; font-size: 17px; }
.le-card p { margin: 0; }
.le-card .btn { justify-self: start; }
.le-cmd { margin: 0; background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; overflow-x: auto; font-size: 13px; }
.le-hash { margin: 0; font-size: 11px; color: var(--muted); overflow-wrap: anywhere; }
.le-hash code { font-size: 11px; }
.le-which { background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 18px; }
.le-which h3 { margin: 0 0 6px; font-size: 16px; }
.le-which ul { margin: 0 0 8px; padding-left: 20px; }
.le-which li { margin: 4px 0; }
.le-drop { margin-top: 14px; display: grid; place-items: center; text-align: center; gap: 8px; border: 2px dashed var(--line); border-radius: var(--radius); padding: 22px; cursor: pointer; font-weight: 400; }
.le-drop:hover, .le-drop.over { border-color: var(--accent); background: rgba(45, 212, 191, 0.06); }
.le-drop input { width: auto; max-width: 100%; }
.le-x { font: inherit; font-size: 13px; background: none; border: 0; color: var(--accent-2); cursor: pointer; text-decoration: underline; padding: 0; }

/* Settings and sources */
.le-settings { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px 16px; margin: 12px 0 8px; }
.le-group h3 { margin: 22px 0 8px; font-size: 16px; color: var(--accent-2); }
.le-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.le-table th, .le-table td { padding: 6px 8px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.le-table thead th { font-size: 13px; color: var(--muted); font-weight: 600; white-space: nowrap; }
.le-table tbody tr:last-child th, .le-table tbody tr:last-child td { border-bottom: 0; }
.le-table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.le-src { min-width: 760px; }
.le-src tbody th { font-weight: 600; min-width: 220px; }
.le-src input { padding: 7px 9px; font-size: 14px; max-width: 120px; }
.le-tag { font-size: 12px; color: var(--muted); white-space: nowrap; }
.le-tag.ok { color: var(--accent); font-weight: 700; }

/* Results */
.le-stats { margin-top: 12px; }
.le-stats .stat small { font-size: 12px; color: var(--muted); }
.le-stats .le-key { border-color: var(--accent); }
.le-stats .le-key b { color: var(--accent); }
.le-periods { max-width: 640px; }
.le-periods .le-likely { font-weight: 700; color: var(--text); }
.le-periods td { color: var(--muted); }
.le-chart-wrap { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; }
.le-chart { width: 100%; height: auto; display: block; }
.le-chart .le-bar { fill: rgba(45, 212, 191, 0.55); }
.le-chart .le-bar.peak { fill: var(--accent); }
.le-chart .le-grid { stroke: var(--line); stroke-dasharray: 3 4; }
.le-chart .le-base { stroke: var(--muted); }
.le-chart .le-axis { fill: var(--muted); font-size: 11px; }
.le-break { min-width: 640px; }
.le-break tbody th { font-weight: 600; }
.le-bar-cell { width: 28%; }
.le-bar-track { display: block; height: 10px; border-radius: 5px; background: var(--bg-alt); overflow: hidden; }
.le-bar-fill { display: block; height: 100%; background: var(--accent); border-radius: 5px; }
.le-filters { display: grid; gap: 6px; }
.le-check { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; font-size: 15px; cursor: pointer; padding: 6px 0; }
.le-check input { width: 18px; height: 18px; margin-top: 3px; flex: none; accent-color: var(--accent); }
.le-saved { color: var(--accent); font-weight: 700; margin: 10px 0 0; }
.le-store { display: grid; grid-template-columns: 1.3fr 1fr; gap: 20px; align-items: start; }
.le-store-in { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 14px; }
.le-cost { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.print-only { display: none; }

@media (max-width: 760px) {
  .le-store { grid-template-columns: 1fr; }
  .le-store-in { grid-template-columns: 1fr; }
  .le-bar-cell { display: none; }
}

@media print {
  .print-only { display: block; color: #333; }
  .le-section { margin-top: 0; }
  .le-stats .stat, .le-chart-wrap, .le-cost { background: #fff !important; border-color: #ccc !important; color: #111; }
  .le-stats .le-key b, .le-saved { color: #0f766e !important; }
  .le-table th, .le-table td { color: #111 !important; border-color: #ccc !important; }
  .le-chart .le-bar { fill: #99f6e4; }
  .le-chart .le-bar.peak { fill: #0f766e; }
  .le-chart .le-axis { fill: #444; }
  .le-bar-track { background: #eee; }
  .le-bar-fill { background: #0f766e; }
  .le-chart-wrap, .le-stats { break-inside: avoid; }
  .le-break { min-width: 0; }
  .le-break th:last-child, .le-bar-cell { display: none; }
  .le-table .num { white-space: nowrap; }
  .le-break tr { break-inside: avoid; }
}

/* Copy-and-paste cards */
.le-steps { margin: 0; padding-left: 20px; font-size: 14px; color: var(--muted); }
.le-steps li { margin: 3px 0; }
.le-steps strong { color: var(--text); }
.le-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.le-copied { margin: 0; min-height: 1em; color: var(--accent); }
.le-view summary { cursor: pointer; font-size: 14px; color: var(--accent-2); }
.le-src-code { margin: 8px 0 0; max-height: 320px; overflow: auto; background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 10px; font-size: 12px; line-height: 1.45; white-space: pre; }
.le-inline { font-size: 13px; }
.le-inline select, .le-inline input { padding: 7px 9px; font-size: 14px; }
.le-grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 10px; }

/* Defense Stack Map pre-fill */
.le-ds-note { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; margin: 12px 0 4px; padding: 10px 12px; border-left: 3px solid var(--accent); background: var(--bg-alt); border-radius: 6px; }
.le-ds-note[hidden] { display: none; }
.le-ds-note p { margin: 0; flex: 1 1 260px; min-width: 0; font-size: 14px; overflow-wrap: anywhere; }
.le-sub.le-onmap { color: var(--accent); }
