.public-lk-scope { font-family: -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; background: #121212; color: #e0e0e0; min-height: 100vh; margin: 0; padding: 12px; -webkit-tap-highlight-color: transparent; display: flex; flex-direction: column; align-items: center; justify-content: center; transition: background-color 0.2s, color 0.2s; }
.public-lk-scope .container { width: 100%; max-width: 600px; margin: 0 auto; }
.public-lk-scope .card { background: #1e1e1e; border: 1px solid #333; border-radius: 16px; padding: 30px 20px 20px 20px; box-shadow: 0 10px 25px rgba(0,0,0,0.4); position: relative; }
.public-lk-scope .hidden { display: none !important; }
.public-lk-scope h1, .public-lk-scope h2 { font-weight: 700; margin-top: 25px; margin-bottom: 12px; text-align: center; font-size: 20px; text-transform: uppercase; letter-spacing: 0.5px; color: #fff; }
.public-lk-scope .subtitle { color: #888; text-align: center; margin-top: 4px; margin-bottom: 25px; font-size: 14px; line-height: 1.4; padding: 0 10px; }
.public-lk-scope .search-box { position: relative; margin-bottom: 10px; display: flex; justify-content: center; }
.public-lk-scope .search-input { width: 100%; max-width: 320px; padding: 16px; background: #151515; border: 1px solid #2d2d2d; border-radius: 10px; color: #fff; font-size: 16px; outline: none; font-weight: 600; text-align: center; transition: border-color 0.2s; }
.public-lk-scope .search-input:focus { border-color: #2563eb; }
.public-lk-scope .suggestions { position: absolute; top: 100%; left: 50%; transform: translateX(-50%); width: 100%; max-width: 320px; background: #1e1e1e; border: 1px solid #333; border-radius: 0 0 10px 10px; z-index: 100; max-height: 220px; overflow-y: auto; box-shadow: 0 10px 20px rgba(0,0,0,0.3); margin-top: 2px; }
.public-lk-scope .suggestion-item { padding: 14px 20px; cursor: pointer; border-bottom: 1px solid #121212; font-size: 15px; color: #e0e0e0; text-align: center; }
.public-lk-scope .suggestion-item:active { background: #2563eb; color: #fff; }
.public-lk-scope .suggestion-item:last-child { border-bottom: none; }
.public-lk-scope .gsk-report-block, .public-lk-scope .lk-table-wrapper { background: #151515 !important; border: 1px solid #2d2d2d !important; border-radius: 12px; padding: 16px; margin-bottom: 16px; box-sizing: border-box; }
.public-lk-scope .debt-table { width: 100%; border-collapse: collapse; margin-top: 4px; background: transparent !important; }
.public-lk-scope .debt-table th { text-align: center; padding: 10px 4px; font-size: 10px; color: #888; text-transform: uppercase; border-bottom: 2px solid #2d2d2d; font-weight: 700; letter-spacing: 0.5px; }
.public-lk-scope .debt-table td { padding: 12px 4px; border-bottom: 1px solid rgba(37,99,235,0.06); font-size: 14px; color: #e0e0e0; text-align: center; font-weight: 600; }
.public-lk-scope .debt-table tr:last-child td { border-bottom: none; }
.public-lk-scope .font-mono { font-family: monospace; font-size: 16px; }
.public-lk-scope .total-banner { margin-top: 16px; padding: 16px; border-radius: 10px; display: flex; justify-content: space-between; align-items: center; font-weight: 700; font-size: 15px; letter-spacing: 0.5px; }
.public-lk-scope .banner-ok { background: rgba(22,163,74,0.1); color: #16a34a; border: 1px solid rgba(22,163,74,0.25); }
.public-lk-scope .banner-danger { background: rgba(220,38,38,0.1); color: #dc2626; border: 1px solid rgba(220,38,38,0.25); }
.public-lk-scope .theme-btn { position: absolute; top: 12px; right: 12px; background: #151515; border: 1px solid #2d2d2d; color: #e0e0e0; padding: 6px 10px; border-radius: 6px; cursor: pointer; font-size: 10px; font-weight: bold; text-transform: uppercase; height: 30px; display: flex; align-items: center; z-index: 10; }

.public-lk-scope .phone-block-list { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; width: 100%; margin-top: 4px; }
.public-lk-scope .phone-number-span { font-family: monospace; color: #2563eb; font-size: 14px; font-weight: 700; white-space: nowrap; word-break: keep-all; display: block; text-align: left; }
.public-lk-scope .flex-row-item { display: flex; flex-direction: column; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid rgba(37,99,235,0.06); font-size: 14px; gap: 4px; }
.public-lk-scope .flex-row-item:last-child { border-bottom: none; }
.public-lk-scope .flex-left { color: #888; text-align: left; }
.public-lk-scope .flex-right { font-weight: 600; color: #e0e0e0; text-align: left; width: 100%; }
.public-lk-scope #lk-msg-text { background: #121212; border: 1px solid #2d2d2d; color: #ffffff; width: 100%; padding: 10px; border-radius: 8px; box-sizing: border-box; resize: none; }
.public-lk-scope .cameras-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; width: 100%; margin-top: 15px; }
.public-lk-scope .cam-video-container { position: relative; width: 100%; aspect-ratio: 4/3; background-color: #000000; border-radius: 8px; overflow: hidden; border: 1px solid #2d2d2d; margin-top: 8px; cursor: pointer; }
.public-lk-scope .cam-video-container video { width: 100%; height: 100%; object-fit: fill; display: block; }
.public-lk-scope .cam-error-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: #121212; display: none; flex-direction: column; justify-content: center; align-items: center; color: #dc2626; font-size: 13px; font-weight: bold; letter-spacing: 0.5px; text-transform: uppercase; }
.public-lk-scope .cam-header-flex { display: flex; justify-content: space-between; align-items: center; }
.public-lk-scope .cam-title-text { font-weight: bold; font-size: 14px; text-transform: uppercase; }
.public-lk-scope .cam-badge-status { font-weight: bold; font-size: 12px; }
.tg-bot-big-btn { display: flex; align-items: center; justify-content: center; width: 100%; margin-bottom: 20px; padding: 15px; background: linear-gradient(135deg, #0088cc, #0077b5); color: #ffffff !important; text-decoration: none; font-size: 15px; font-weight: bold; border-radius: 10px; text-transform: uppercase; letter-spacing: 0.5px; box-shadow: 0 4px 15px rgba(0, 136, 204, 0.3); transition: transform 0.2s, box-shadow 0.2s; box-sizing: border-box; animation: tgPulse 2s infinite; }
.tg-bot-big-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0, 136, 204, 0.5); }
.max-small-icon { width: 24px; height: 24px; margin-right: 12px; flex-shrink: 0; display: block; }
@media (max-width: 1024px) { .public-lk-scope .cameras-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 680px) { .public-lk-scope .cameras-grid { grid-template-columns: 1fr; } }
@media (min-width: 768px) { .public-lk-scope .flex-row-item { flex-direction: row; justify-content: space-between; align-items: flex-start; gap: 0; } .public-lk-scope .flex-right { text-align: right; flex: 1; min-width: 0; } .public-lk-scope .phone-block-list { align-items: flex-end; margin-top: 0; } .public-lk-scope .phone-number-span { text-align: right; } }
@media (max-width: 600px) { .public-lk-scope .debt-table thead { display: none; } .public-lk-scope .debt-table tr { display: flex; flex-direction: column; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid rgba(37,99,235,0.08); gap: 6px; } .public-lk-scope .debt-table tr:last-child { border-bottom: none; } .public-lk-scope .debt-table td { display: inline-block; padding: 0 !important; border: none !important; text-align: left !important; font-size: 13px !important; } .public-lk-scope .debt-table td:first-child { font-size: 14px !important; width: 100%; color: var(--text-main) !important; margin-bottom: 2px; } .public-lk-scope .debt-table td:nth-child(2)::before { content: "Тариф: "; color: #888; font-weight: normal; } .public-lk-scope .debt-table td:nth-child(3)::before { content: " | Сдано: "; color: #888; font-weight: normal; } .public-lk-scope .debt-table td:nth-child(4)::before { content: " | Долг: "; color: #888; font-weight: normal; } .public-lk-scope .debt-table td:nth-child(2), .public-lk-scope .debt-table td:nth-child(3), .public-lk-scope .debt-table td:nth-child(4) { font-size: 12px !important; } }
html.light .public-lk-scope { background-color: #f8fafc; color: #020617; }
html.light .public-lk-scope .card { background: #ffffff; border-color: #cbd5e1; box-shadow: 0 10px 25px rgba(0,0,0,0.06); }
html.light .public-lk-scope h1, html.light .public-lk-scope h2 { color: #020617; }
html.light .public-lk-scope .subtitle { color: #64748b; }
html.light .public-lk-scope .search-input { background: #f0f4fc; border-color: #bfdbfe; color: #020617; }
html.light .public-lk-scope .suggestions { background: #ffffff; border-color: #cbd5e1; box-shadow: 0 10px 20px rgba(0,0,0,0.08); }
html.light .public-lk-scope .suggestion-item { color: #020617; border-bottom-color: #f8fafc; }
html.light .public-lk-scope .gsk-report-block, html.light .public-lk-scope .lk-table-wrapper { background: #f0f4fc !important; border-color: #bfdbfe !important; }
html.light .public-lk-scope .debt-table th { color: #64748b; border-bottom-color: #bfdbfe; }
html.light .public-lk-scope .debt-table td { color: #020617; }
html.light .public-lk-scope .theme-btn { background: #f0f4fc; border-color: #bfdbfe; color: #020617; }
html.light .public-lk-scope .flex-right { color: #020617; }
html.light .public-lk-scope .phone-number-span { color: #2563eb; }
html.light .public-lk-scope #lk-msg-text { background: #f0f4fc !important; border: 1px solid #bfdbfe !important; color: #020617 !important; }
html.light .public-lk-scope #lk-msg-text:focus { border-color: #2563eb !important; }
html.light .public-lk-scope .cam-video-container { border-color: #bfdbfe; }
html.light .public-lk-scope .cam-error-overlay { background: #f0f4fc; }
@keyframes tgPulse { 0% { box-shadow: 0 0 0 0 rgba(0, 136, 204, 0.4); } 70% { box-shadow: 0 0 0 10px rgba(0, 136, 204, 0); } 100% { box-shadow: 0 0 0 0 rgba(0, 136, 204, 0); } }
