/* ДИЗАЙН: файл-заглушка с минимально читаемыми стилями. Замените или удалите — страницы работают и без него.
   Классы .card--placeholder, .card__cover и т.п. — места, где ожидается ваша вёрстка карточек. */
:root { --fg: #1d2329; --muted: #6b7682; --line: #d9dee3; --bg: #f6f7f9; --panel: #fff; --accent: #2a6df4; --ok: #1a8d4b; --bad: #c43b3b; --warn: #b7791f; }
* { box-sizing: border-box; }
body { margin: 0; font: 15px/1.5 system-ui, sans-serif; color: var(--fg); background: var(--bg); }
a { color: var(--accent); }
.muted { color: var(--muted); }
.container { max-width: 960px; margin: 0 auto; padding: 24px 16px; }
.container--narrow { max-width: 480px; }
.container--wide { max-width: 1280px; }
.site-header { display: flex; justify-content: space-between; align-items: center; padding: 12px 24px; background: var(--panel); border-bottom: 1px solid var(--line); }
.site-header nav { display: flex; gap: 8px; }
.site-logo { font-weight: 700; text-decoration: none; color: var(--fg); }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 16px; margin: 16px 0; }
.button { display: inline-block; padding: 8px 14px; border: 1px solid var(--accent); border-radius: 6px; background: var(--accent); color: #fff; font: inherit; text-decoration: none; cursor: pointer; }
.button--ghost { background: transparent; color: var(--accent); }
.button--danger { background: var(--bad); border-color: var(--bad); }
.button--small { padding: 3px 9px; font-size: 13px; }
.button[disabled] { opacity: .45; cursor: default; }
input, select { padding: 6px 8px; border: 1px solid var(--line); border-radius: 6px; font: inherit; }
.notice { padding: 10px 12px; border-radius: 6px; background: #eef3ff; }
.notice--error { background: #fdeaea; color: var(--bad); }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 4px 16px; margin: 0; }
.facts dt { color: var(--muted); } .facts dd { margin: 0; }
.key { padding: 8px; border: 1px dashed var(--line); border-radius: 6px; }
.key__value { display: block; word-break: break-all; margin: 4px 0; font-size: 12px; }
.avatar { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; }

/* карточки продуктов (ПЛЕЙСХОЛДЕР) */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.card { display: flex; flex-direction: column; gap: 8px; padding: 12px; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; }
.card--placeholder { border-style: dashed; background: #fbfbfc; }
.card__cover { height: 120px; display: flex; align-items: center; justify-content: center; border-radius: 6px; background: repeating-linear-gradient(45deg, #eceff2, #eceff2 10px, #e4e8ec 10px, #e4e8ec 20px); color: var(--muted); font-size: 12px; }
.card__title { margin: 0; font-size: 17px; }
.card__term { font-size: 13px; }
.card--expired { opacity: .65; }

.badge { display: inline-block; padding: 1px 8px; border-radius: 10px; font-size: 12px; background: #e8ebee; }
.badge--running, .badge--active { background: #dff3e6; color: var(--ok); }
.badge--failed, .badge--expired { background: #fbe3e3; color: var(--bad); }
.badge--restarting { background: #fdf1d6; color: var(--warn); }

.table { width: 100%; border-collapse: collapse; }
.table th, .table td { padding: 6px 8px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.table--clickable tbody tr { cursor: pointer; } .table--clickable tbody tr:hover { background: #f1f4f8; }
.toolbar { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; flex-wrap: wrap; }
.toolbar input[type=search] { flex: 1; min-width: 220px; }
.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.stat { padding: 10px; border: 1px solid var(--line); border-radius: 6px; } .stat__value { font-size: 20px; font-weight: 600; }
.editor { margin-top: 16px; padding-top: 12px; border-top: 2px solid var(--line); }
.editor h3 { margin: 16px 0 6px; }
.form-grid { display: grid; grid-template-columns: max-content 1fr; gap: 6px 12px; align-items: center; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.chip { display: inline-flex; gap: 6px; align-items: center; padding: 2px 4px 2px 10px; border-radius: 12px; background: #e8ebee; }
.chip button { border: 0; background: none; cursor: pointer; color: var(--bad); font-size: 15px; }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 6px 0; }
.log-panel { margin-top: 12px; border: 1px solid var(--line); border-radius: 6px; }
.log-panel__head { display: flex; gap: 8px; align-items: center; padding: 6px 10px; background: #f1f4f8; }
.log-panel pre { margin: 0; padding: 10px; max-height: 360px; overflow: auto; font: 12px/1.4 ui-monospace, monospace; background: #101418; color: #d7dde3; }
.toast { position: fixed; right: 16px; bottom: 16px; max-width: 420px; padding: 10px 14px; border-radius: 6px; background: #1d2329; color: #fff; z-index: 10; white-space: pre-wrap; }
.toast--error { background: var(--bad); }

/* дашборд: вкладки, прокручиваемые таблицы */
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 8px 0; }
.tab { padding: 6px 14px; border: 1px solid var(--line); border-radius: 6px; background: var(--panel); font: inherit; cursor: pointer; }
.tab--active { background: var(--accent); border-color: var(--accent); color: #fff; }
.scroll { overflow-x: auto; }
[hidden] { display: none !important; }
.cell-null { color: var(--muted); font-style: italic; }
.cell-secret { color: var(--muted); }
.table td.cell { max-width: 320px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.editor textarea { width: 100%; min-height: 64px; font: 13px ui-monospace, monospace; }
