/* Own styles for the custom pages: Filament's stylesheet only holds the classes Filament itself uses. */
.ls { --ls-line: rgba(127,127,127,.28); --ls-muted: rgba(127,127,127,1); --ls-ok: #2f855a; --ls-stale: #c77d11; --ls-miss: #9ca3af; --ls-run: #2b6cb0; --ls-bad: #c53030; font-size: 14px; display: grid; gap: 12px; }
.ls select, .ls input[type=text], .ls input[type=number], .ls textarea { width: 100%; border: 1px solid var(--ls-line); border-radius: 6px; padding: 6px 8px; background: transparent; color: inherit; font: inherit; }
.ls select option { color: #111; }
.ls-bar { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; }
.ls-bar label { display: flex; gap: 6px; align-items: center; font-weight: 600; }
.ls-bar select { min-width: 220px; }
.ls-muted { color: var(--ls-muted); font-size: 13px; }
.ls-dirty { color: var(--ls-stale); font-weight: 600; }
.ls-err { color: var(--ls-bad); }
.ls-btn { border: 1px solid var(--ls-line); border-radius: 6px; padding: 6px 12px; font-weight: 600; background: rgba(127,127,127,.12); cursor: pointer; display: inline-block; }
.ls-btn:disabled { opacity: .45; cursor: not-allowed; }
.ls-ghost { background: transparent; }
.ls-primary { background: #b7791f; border-color: #b7791f; color: #fff; }
.ls-progress { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; border: 1px solid var(--ls-run); border-radius: 8px; padding: 10px 14px; }
.ls-progress > div:first-child { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; }
.ls-meter { height: 8px; background: var(--ls-line); border-radius: 4px; overflow: hidden; }
.ls-meter i { display: block; height: 100%; background: var(--ls-run); transition: width .4s; }
.ls-deck { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 6px; }
.ls-tile { position: relative; display: flex; gap: 6px; align-items: baseline; text-align: left; border: 1px solid var(--ls-line); border-left: 4px solid var(--ls-miss); border-radius: 6px; padding: 5px 7px; cursor: pointer; overflow: hidden; }
.ls-tile .n { font-weight: 700; font-size: 12px; }
.ls-tile .t { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ls-tile[aria-current] { outline: 2px solid #b7791f; outline-offset: 1px; }
.ls-tile.ls-current { border-left-color: var(--ls-ok); }
.ls-tile.ls-stale { border-left-color: var(--ls-stale); }
.ls-tile.ls-running { border-left-color: var(--ls-run); }
.ls-dot { position: absolute; top: 3px; right: 4px; width: 7px; height: 7px; border-radius: 50%; background: var(--ls-stale); }
.ls-warn-mark { position: absolute; bottom: 1px; right: 4px; color: var(--ls-bad); font-weight: 700; font-size: 11px; }
.ls-legend { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; font-size: 12px; color: var(--ls-muted); }
.ls-legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-left: 6px; }
.ls-legend .ls-current { background: var(--ls-ok); } .ls-legend .ls-stale { background: var(--ls-stale); } .ls-legend .ls-missing { background: var(--ls-miss); } .ls-legend .ls-running { background: var(--ls-run); }
.ls-cols { display: grid; grid-template-columns: minmax(300px, 1fr) minmax(320px, 1.1fr) minmax(280px, 1fr); gap: 12px; align-items: start; }
@media (max-width: 1200px) { .ls-cols { grid-template-columns: 1fr; } }
.ls-panel { border: 1px solid var(--ls-line); border-radius: 8px; padding: 12px 14px; display: grid; gap: 10px; min-width: 0; }
.ls-panel h2 { font-size: 16px; font-weight: 700; }
.ls-panel h2 small { font-weight: 400; color: var(--ls-muted); font-size: 12px; }
.ls-facts { display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; font-size: 13px; }
.ls-facts dt { font-weight: 600; }
.ls-field { display: grid; gap: 3px; }
.ls-field > label { font-weight: 600; font-size: 13px; display: flex; gap: 8px; align-items: baseline; }
.ls-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.ls-check { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; }
.ls-check input { margin-top: 3px; }
.ls-inline-action { font-weight: 400; font-size: 13px; }
.ls-prompt { white-space: pre-wrap; word-break: break-word; font-size: 12.5px; line-height: 1.45; font-family: ui-monospace, Menlo, monospace; max-height: 62vh; overflow: auto; padding: 8px; border-radius: 6px; background: rgba(127,127,127,.08); }
.ls-prompt mark { background: rgba(214,158,46,.35); color: inherit; border-radius: 2px; }
.ls-warnbox { border-left: 4px solid var(--ls-stale); padding: 6px 10px; background: rgba(199,125,17,.1); font-size: 13px; }
.ls-gen { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: end; }
.ls-gen label { display: grid; gap: 3px; font-size: 13px; font-weight: 600; }
.ls-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; }
.ls-gallery figure { border: 1px solid var(--ls-line); border-radius: 6px; overflow: hidden; }
.ls-gallery figure.ls-selected { outline: 2px solid var(--ls-ok); }
.ls-gallery img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; display: block; }
.ls-gallery figcaption { padding: 5px; display: flex; flex-wrap: wrap; gap: 4px; }
.ls-pending { aspect-ratio: 2 / 3; display: grid; place-items: center; text-align: center; padding: 8px; font-size: 12px; overflow: auto; }
.ls-chip { font-size: 11px; font-weight: 600; padding: 0 6px; border-radius: 9px; border: 1px solid currentColor; }
.ls-chip.ls-current { color: var(--ls-ok); } .ls-chip.ls-stale { color: var(--ls-stale); } .ls-chip.ls-running { color: var(--ls-run); } .ls-chip.ls-missing { color: var(--ls-miss); }
.ls-actions { display: flex; flex-wrap: wrap; gap: 2px 8px; font-size: 11.5px; width: 100%; }
.ls-actions button, .ls-actions a { text-decoration: underline; cursor: pointer; }
.ls-sheet { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; }
.ls-sheet a.ls-card { display: block; border: 1px solid var(--ls-line); border-top: 4px solid var(--ls-miss); border-radius: 6px; overflow: hidden; }
.ls-sheet a.ls-card.ls-current { border-top-color: var(--ls-ok); } .ls-sheet a.ls-card.ls-stale { border-top-color: var(--ls-stale); } .ls-sheet a.ls-card.ls-running { border-top-color: var(--ls-run); }
.ls-sheet img, .ls-sheet .ls-empty { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; display: grid; place-items: center; color: var(--ls-muted); font-size: 12px; }
.ls-sheet p { padding: 4px 6px; font-size: 12px; font-weight: 600; }
.ls-table { width: 100%; font-size: 13px; border-collapse: collapse; }
.ls-table th, .ls-table td { text-align: left; padding: 4px 8px; border-bottom: 1px solid var(--ls-line); vertical-align: top; }
.ls-steps { display: grid; gap: 12px; }
.ls-diff del { background: rgba(197,48,48,.2); text-decoration: line-through; } .ls-diff ins { background: rgba(47,133,90,.2); text-decoration: none; }
.ls-palette { display: flex; flex-wrap: wrap; gap: 4px; } .ls-palette span { display: inline-block; font-size: 10px; padding: 12px 4px 2px; border-radius: 4px; min-width: 56px; text-align: center; background-clip: padding-box; }
