/* blocks.css v0.1.9 — 08.09.2026 — свободные Real IP: белым по зелёному (.skb-free), светло-зелёная колонка и шапка
   08.09.2026: v0.1.8 — зелёный акцент таблицы свободных (.skb-accent)
   06.09.2026: v0.1.7 — сводка плитками (skk): крупная цифра, подпись, цвет по смыслу; v0.1.6 — узкие таблицы */
.msg .bubble, .msg.user .bubble, .msg.assistant .bubble { user-select: text; -webkit-user-select: text; cursor: text; }
.via-voice{display:inline-block;font-size:13px;opacity:.85;cursor:default}
.meta button.listen{border:1px solid #d1d5db;background:#fff;color:#374151;border-radius:999px;padding:2px 10px;font-size:12px;line-height:18px;cursor:pointer;font-family:inherit;margin-left:4px}
.meta button.listen:hover{background:#f3f4f6}
.meta button.listen:disabled{opacity:.6;cursor:default}
.meta button.listen.playing{background:#e0f2fe;border-color:#7dd3fc;color:#0c4a6e}
.bubble pre.skynet{font-size:12px;opacity:.9}
.skb{margin:12px 0 4px;border:1px solid #e3e8ee;border-radius:12px;background:#fff;overflow:hidden}
.skb-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 14px;border-bottom:1px solid #eef2f6;background:#f7f9fb}
.skb-headtext{display:flex;align-items:baseline;gap:10px;min-width:0}
.skb-title{font-weight:600;font-size:14px;color:#111827;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.skb-count{font-size:12px;color:#6b7280;white-space:nowrap}
.skb-copy{border:1px solid #d1d5db;background:#fff;color:#374151;border-radius:8px;padding:4px 10px;font-size:12px;cursor:pointer;font-family:inherit}
.skb-copy:hover{background:#f3f4f6}
.skb-tablewrap{overflow-x:auto}
.skb.skb-narrow{display:inline-block;min-width:min(100%,560px);max-width:100%;vertical-align:top}
.skb.skb-narrow .skb-table{width:auto;min-width:min(100%,560px)}
.skb.skb-narrow .skb-table th,.skb.skb-narrow .skb-table td{padding-right:28px}
.skb.skb-narrow .skb-c-num{min-width:160px}
.skb-table{width:100%;border-collapse:collapse;font-size:13px}
.skb-table th{position:sticky;top:0;text-align:left;font-weight:600;font-size:12px;color:#4b5563;background:#fafbfc;padding:8px 10px;border-bottom:1px solid #e5e7eb;white-space:nowrap}
.skb-table td{padding:7px 10px;border-bottom:1px solid #f1f4f7;vertical-align:top;color:#1f2937}
.skb-table tbody tr:nth-child(even) td{background:#fbfcfd}
.skb-table tfoot td{font-weight:600;background:#f7f9fb;border-top:1px solid #e5e7eb}
.skb-c-id{color:#6b7280;white-space:nowrap}
.skb-c-mono,.skb-c-phone{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;white-space:nowrap}
.skb-c-name{font-weight:500}
.skb-c-date{white-space:nowrap;color:#4b5563}
.skb-c-text{min-width:220px;color:#374151}
.skb-c-num{text-align:right;white-space:nowrap;position:relative}
.skb-num{position:relative;z-index:1}
.skb-bar{position:absolute;left:4px;bottom:3px;height:3px;border-radius:2px;background:#93c5fd;max-width:calc(100% - 8px)}
.skb-bar.is-warm{background:#fbbf24}
.skb-bar.is-hot{background:#f87171}
.skb-tel{color:#1d4ed8;text-decoration:none}
.skb-badge{display:inline-block;padding:2px 8px;border-radius:999px;font-size:12px;line-height:16px;background:#eef2f6;color:#374151;white-space:nowrap}
.skb-badge.is-new{background:#dbeafe;color:#1e40af}
.skb-badge.is-sent{background:#ede9fe;color:#5b21b6}
.skb-badge.is-work{background:#fef3c7;color:#92400e}
.skb-badge.is-delayed{background:#fee2e2;color:#991b1b}
.skb-badge.is-done{background:#dcfce7;color:#166534}
.skb-badge.is-rejected{background:#f3f4f6;color:#6b7280;text-decoration:line-through}
.skb-badge.is-on{background:#dcfce7;color:#166534}
.skb-badge.is-off{background:#fee2e2;color:#991b1b}
/* свободный адрес — итог ответа: белым по зелёному, колонка и шапка светло-зелёные */
.skb-free{display:inline-block;background:#16a34a;color:#fff;padding:3px 10px;border-radius:8px;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-weight:700;font-size:14px;letter-spacing:.02em;white-space:nowrap}
.skb-table td.skb-c-free{background:#f0fdf4}
.skb-table tbody tr:nth-child(even) td.skb-c-free{background:#e9fbef}
.skb-table th.skb-c-free{background:#dcfce7;color:#14532d}
.skb.skb-accent{border-color:#86efac;box-shadow:0 0 0 1px #bbf7d0 inset}
.skb.skb-accent .skb-head{background:#f0fdf4;border-bottom-color:#bbf7d0}
.skb.skb-accent .skb-title{color:#14532d}
.skb-sig{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace}
.skb-cards{display:none;padding:8px}
.skb-card{border:1px solid #e5e7eb;border-radius:10px;padding:10px 12px;margin-bottom:8px;background:#fff}
.skb-card-top{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin-bottom:4px}
.skb-id{color:#6b7280;font-size:12px}
.skb-card-date{color:#6b7280;font-size:12px;margin-left:auto}
.skb-card-name{font-weight:600;font-size:14px}
.skb-card-phone{display:block;color:#1d4ed8;text-decoration:none;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;margin:2px 0}
.skb-card-text{color:#374151;font-size:13px;margin:4px 0}
.skb-card-kv{display:grid;grid-template-columns:auto 1fr;gap:2px 10px;font-size:12px;margin-top:6px}
.skb-kv{display:contents}
.skb-kv-k{color:#6b7280}
.skb-kv-v{color:#1f2937;word-break:break-word}
@media (max-width:720px){
  .skb-tablewrap{display:none}
  .skb-cards{display:block}
}
/* витрина фильмов */
.skf{margin:12px 0 4px;border:1px solid #e3e8ee;border-radius:12px;background:#fff;overflow:hidden}
.skf-head{display:flex;align-items:baseline;gap:10px;padding:10px 14px;border-bottom:1px solid #eef2f6;background:#f7f9fb}
.skf-title{font-weight:600;font-size:14px;color:#111827}
.skf-count{font-size:12px;color:#6b7280}
.skf-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(132px,1fr));gap:12px;padding:12px}
.skf-card{min-width:0}
.skf-poster{position:relative;aspect-ratio:2/3;border-radius:8px;overflow:hidden;background:#eef2f6}
.skf-poster img{width:100%;height:100%;object-fit:cover;display:block}
.skf-poster.is-empty::after{content:'🎬';position:absolute;inset:0;display:flex;align-items:center;justify-content:center;font-size:28px;opacity:.5}
.skf-rating{position:absolute;right:6px;top:6px;padding:2px 7px;border-radius:999px;font-size:12px;font-weight:600;background:rgba(17,24,39,.75);color:#fff}
.skf-rating.is-good{background:#16a34a}
.skf-rating.is-mid{background:#d97706}
.skf-rating.is-weak{background:#6b7280}
.skf-name{font-size:13px;font-weight:600;margin-top:6px;line-height:1.25;color:#111827}
.skf-orig{font-size:12px;color:#6b7280;line-height:1.2}
.skf-meta{font-size:12px;color:#6b7280;margin-top:2px}
/* ---------- карточка подтверждения (skynet-confirm) ---------- */
.skc{margin:12px 0 4px;border:1px solid #e3e8ee;border-radius:16px;background:#fff;box-shadow:0 8px 24px rgba(15,23,42,.07);overflow:hidden;transition:opacity .2s ease}
.skc-head{display:flex;align-items:center;gap:12px;padding:14px 18px 12px;border-bottom:1px solid #eef2f6}
.skc-icon{flex:0 0 36px;width:36px;height:36px;border-radius:10px;display:flex;align-items:center;justify-content:center}
.skc-icon svg{width:19px;height:19px}
.skc-title{flex:1;min-width:0;font-weight:600;font-size:14.5px;color:#111827;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.skc-badge{font-size:11px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;border-radius:999px;padding:4px 11px;white-space:nowrap}
.skc-body{padding:12px 18px 6px}
.skc-line{margin:6px 0;padding:10px 13px;border-radius:10px;background:#111827;color:#e5e7eb;font:12.5px/1.5 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;white-space:pre-wrap;word-break:break-word}
.skc-reason{font-size:13px;margin:8px 0 4px}
.skc-foot{display:flex;justify-content:flex-end;gap:10px;padding:8px 18px 14px}
/* SMS: тёплая карточка, текст — пузырём как в мессенджере */
.skc.is-sms .skc-icon{background:#e0f2f1;color:#0f766e}
.skc.is-sms .skc-badge{color:#92400e;background:#fef3c7}
.skc-to{display:flex;align-items:baseline;gap:10px;margin:2px 0 10px;font-size:14px}
.skc-who{font-weight:600;color:#111827}
.skc-phone{font:13px ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;color:#374151;background:#f3f4f6;border-radius:6px;padding:2px 8px}
.skc-msg{display:flex;flex-direction:column;align-items:flex-start;gap:4px;margin-bottom:6px}
.skc-bubble{max-width:min(560px,100%);background:#0f766e;color:#fff;border-radius:16px 16px 16px 4px;padding:10px 14px;font-size:14.5px;line-height:1.45;white-space:pre-wrap;word-break:break-word}
.skc-meta{font-size:12px;color:#6b7280;padding-left:4px}
/* SSH и прочее опасное: красный акцент */
.skc.is-danger{border-color:#fecaca}
.skc.is-danger .skc-head{background:#fff7f7}
.skc.is-danger .skc-icon{background:#fee2e2;color:#b91c1c}
.skc.is-danger .skc-badge{color:#b91c1c;background:#fee2e2}
.skc.is-danger .skc-reason{color:#7f1d1d}
/* состояния */
.skc.is-busy{opacity:.85}
.skc-spin{display:inline-block;width:12px;height:12px;margin-right:7px;border:2px solid rgba(255,255,255,.45);border-top-color:#fff;border-radius:50%;vertical-align:-2px;animation:skc-spin .7s linear infinite}
@keyframes skc-spin{to{transform:rotate(360deg)}}
.skc.is-done .skc-head{background:#f0fdf4;border-bottom-color:#dcfce7}
.skc.is-done .skc-badge{color:#15803d;background:#dcfce7}
.skc.is-done .skc-icon{background:#dcfce7;color:#15803d}
.skc.is-failed .skc-badge{color:#b91c1c;background:#fee2e2}
.skc.is-cancelled{opacity:.55}
.skc.is-cancelled .skc-badge{color:#6b7280;background:#f3f4f6}
/* ---------- сводка плитками (skynet-kpi) ---------- */
.skk{margin:12px 0 4px}
.skk-title{font-weight:600;font-size:14px;color:#111827;margin:0 2px 8px}
.skk-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:10px}
.skk-item{border:1px solid #e3e8ee;border-left:4px solid #cbd5e1;border-radius:12px;background:#fff;padding:12px 14px 11px;min-width:0}
.skk-item.is-good{border-left-color:#15803d}
.skk-item.is-warn{border-left-color:#d97706}
.skk-item.is-bad{border-left-color:#dc2626}
.skk-label{font-size:11.5px;font-weight:600;color:#6b7280;text-transform:uppercase;letter-spacing:.05em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.skk-value{font-size:26px;font-weight:700;color:#111827;line-height:1.15;margin-top:4px;font-variant-numeric:tabular-nums;letter-spacing:-.01em}
.skk-item.is-good .skk-value{color:#15803d}
.skk-item.is-warn .skk-value{color:#b45309}
.skk-item.is-bad .skk-value{color:#b91c1c}
.skk-sub{font-size:12px;color:#6b7280;margin-top:3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
@media (max-width:720px){.skk-grid{grid-template-columns:repeat(2,1fr)}.skk-value{font-size:22px}}
/* ---------- схема линии абонента (skynet-path) ---------- */
.spath{margin:12px 0 8px;border:1px solid #e3e8ee;border-radius:12px;background:#fff;overflow:hidden}
.spath-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 14px;border-bottom:1px solid #eef2f6;background:#f7f9fb}
.spath-headtext{display:flex;align-items:baseline;gap:12px;min-width:0}
.spath-title{font-weight:600;font-size:14px;color:#111827;white-space:nowrap}
.spath-dir{font-size:12px;color:#0e7490;white-space:nowrap}
.spath-legend{display:flex;gap:14px;font-size:11px;color:#6b7280;white-space:nowrap}
.spath-lg{display:inline-flex;align-items:center;gap:5px}
.spath-lg i{width:9px;height:9px;border-radius:50%;background:#15803d;display:inline-block}
.spath-lg.is-bad i{background:#dc2626}
.spath-lg.is-guess i{background:#fff;border:1px dashed #94a3b8}
.spath-flow{display:flex;align-items:flex-start;justify-content:center;gap:0;padding:18px 12px 16px;overflow-x:auto;min-width:min-content}
.spath-node{position:relative;flex:0 0 auto;width:236px;padding:12px 10px 10px;border:1px solid #e3e8ee;border-radius:12px;background:linear-gradient(180deg,#ffffff,#f8fafc);display:flex;flex-direction:column;align-items:center;text-align:center;gap:6px;box-shadow:0 1px 2px rgba(15,23,42,.05)}
.spath-node.is-bad{border-color:#dc2626;background:linear-gradient(180deg,#fff,#fef2f2)}
.spath-node.is-dead{opacity:.42}
.spath-node.is-faded{border-style:dashed}
.spath-num{position:absolute;left:9px;top:8px;width:18px;height:18px;border-radius:50%;background:#eef2f6;color:#475569;font-size:10.5px;font-weight:700;line-height:18px;text-align:center}
.spath-dot{position:absolute;right:9px;top:11px;width:9px;height:9px;border-radius:50%;background:#15803d;box-shadow:0 0 0 3px rgba(21,128,61,.15)}
.spath-node.is-bad .spath-dot{background:#dc2626;box-shadow:0 0 0 3px rgba(220,38,38,.2);animation:spathAlarm 1.5s ease-in-out infinite}
.spath-node.is-dead .spath-dot{background:#9ca3af;box-shadow:none}
.spath-ic{width:58px;height:58px;display:flex;align-items:center;justify-content:center;border-radius:14px;border:1px solid #cfe6ec;background:#ecf7fa;color:#0e7490;box-shadow:0 0 12px rgba(14,116,144,.14)}
.spath-ic svg{width:38px;height:38px}
.spath-node.is-bad .spath-ic{color:#b91c1c;border-color:#fca5a5;background:#fee2e2;box-shadow:0 0 16px rgba(220,38,38,.3)}
.spath-node.is-dead .spath-ic{color:#6b7280;border-color:#d7dde3;background:#f3f4f6;box-shadow:none}
@keyframes spathAlarm{0%,100%{box-shadow:0 0 0 3px rgba(220,38,38,.15)}50%{box-shadow:0 0 0 6px rgba(220,38,38,.35)}}
.spath-txt{min-width:0;width:100%}
.spath-tag{font-size:12.5px;font-weight:700;letter-spacing:.04em;color:#0e7490;text-transform:uppercase;line-height:1.2}
.spath-node.is-bad .spath-tag{color:#b91c1c}
.spath-name{margin-top:2px;font-size:14.5px;font-weight:600;color:#111827;line-height:1.3;overflow-wrap:anywhere;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.spath-sub{margin-top:2px;font-size:11.5px;color:#6b7280;overflow-wrap:anywhere}
.spath-port{display:inline-block;margin-top:5px;padding:2px 8px;border-radius:6px;border:1px solid #a5d4df;background:#ecf7fa;color:#0e7490;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:11px;overflow-wrap:anywhere}
.spath-note{margin-top:5px;font-size:11.5px;color:#1f4f8f;font-weight:600;line-height:1.35;overflow-wrap:anywhere}
.spath-node.is-bad .spath-note{color:#b91c1c}
.spath-state{margin-top:4px;font-size:11px;font-weight:700;color:#b91c1c;letter-spacing:.04em}
.spath-dl{margin-top:7px;padding-top:6px;border-top:1px solid #eef2f6;text-align:left;width:100%}
.spath-dl-row{display:flex;gap:6px;padding:1.5px 0;align-items:baseline;justify-content:space-between}
.spath-dt{flex:0 0 auto;font-size:11px;line-height:1.4;color:#6b7280;white-space:nowrap}
.spath-dd{flex:1 1 auto;min-width:0;text-align:right;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:11px;line-height:1.4;color:#374151;overflow-wrap:anywhere}
.spath-dd.is-bad{color:#b91c1c;font-weight:600}
.spath-dd.is-warn{color:#b45309}
.spath-dd.is-good{color:#0e7490}
/* связь: подпись, дорожка, импульс, стрелка */
.spath-link{position:relative;flex:1 1 56px;min-width:56px;margin-top:34px;display:flex;flex-direction:column;align-items:center;gap:3px;padding:0 3px}
.spath-lbl{font-size:10px;color:#6b7280;white-space:nowrap;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace}
.spath-track{position:relative;width:100%;height:3px;border-radius:2px;background:#a5d4df}
.spath-arrow{position:absolute;right:-2px;top:50%;transform:translateY(-50%);width:0;height:0;border-left:8px solid #0891b2;border-top:5px solid transparent;border-bottom:5px solid transparent}
.spath-link.is-fiber .spath-track{background:linear-gradient(90deg,#a5d4df,#0891b2 50%,#a5d4df)}
.spath-pulse{position:absolute;top:-3px;left:0;width:9px;height:9px;border-radius:50%;background:#67e8f9;box-shadow:0 0 10px 3px rgba(34,211,238,.75);animation:spathPulse 1.7s linear infinite}
@keyframes spathPulse{from{left:-4px;opacity:0}12%{opacity:1}88%{opacity:1}to{left:calc(100% - 6px);opacity:0}}
.spath-link.is-copper .spath-track{height:4px;background:repeating-linear-gradient(90deg,#94a3b8 0 6px,transparent 6px 10px)}
.spath-link.is-copper .spath-arrow{border-left-color:#64748b}
.spath-link.is-copper .spath-pulse{background:#cbd5e1;box-shadow:0 0 8px 2px rgba(148,163,184,.6);animation-duration:2.6s}
.spath-link.is-break .spath-track{background:linear-gradient(90deg,#0891b2 0 40%,transparent 40% 60%,#d1d5db 60% 100%)}
.spath-break{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:16px;height:16px;border-radius:50%;background:#dc2626;box-shadow:0 0 14px rgba(220,38,38,.65);animation:spathAlarm 1.5s ease-in-out infinite}
.spath-link.is-break .spath-arrow,.spath-link.is-dead .spath-arrow{border-left-color:#d1d5db}
.spath-link.is-dead .spath-track{background:#e5e7eb}
@media (prefers-reduced-motion:reduce){.spath-pulse,.spath-node.is-bad .spath-dot,.spath-break{animation:none}}
@media (max-width:720px){
  .spath-flow{flex-direction:column;align-items:stretch;padding:12px 8px}
  .spath-node{width:auto;flex-direction:row;align-items:flex-start;text-align:left;gap:12px;padding:10px 12px 10px 30px}
  .spath-ic{width:44px;height:44px;flex-shrink:0}
  .spath-ic svg{width:24px;height:24px}
  .spath-link{width:auto;min-width:0;height:34px;flex:0 0 34px;margin:0 0 0 46px;flex-direction:row;align-items:center;gap:8px}
  .spath-track{width:3px;height:100%}
  .spath-link.is-fiber .spath-track{background:linear-gradient(180deg,#a5d4df,#0891b2 50%,#a5d4df)}
  .spath-link.is-copper .spath-track{width:4px;height:100%;background:repeating-linear-gradient(180deg,#94a3b8 0 6px,transparent 6px 10px)}
  .spath-arrow{right:auto;left:50%;top:auto;bottom:-2px;transform:translateX(-50%);border-left:5px solid transparent;border-right:5px solid transparent;border-top:8px solid #0891b2;border-bottom:0}
  .spath-pulse{left:-3px;top:0;animation:spathPulseV 1.7s linear infinite}
  @keyframes spathPulseV{from{top:-4px;opacity:0}12%{opacity:1}88%{opacity:1}to{top:calc(100% - 6px);opacity:0}}
  .spath-link.is-break .spath-track{background:linear-gradient(180deg,#0891b2 0 40%,transparent 40% 60%,#d1d5db 60% 100%)}
  .spath-dt{font-size:10.5px}
  .spath-dd{font-size:10.5px}
}