/* Инфосервис: the coupon loader and the widget page (/info/widget.php), styled after 1X2.su/info */
.infoApp { --ia-primary: #324f76; --ia-orange: #ea7521; --ia-green: #28a745; --ia-red: #dc3545; --ia-light: #f8f9fa; --ia-border: #dee2e6; --ia-muted: #6c757d; --ia-text: #333; --ia-bg: #fff; font-size: 13px; color: var(--ia-text); }
:root[data-scheme="dark"] .infoApp, .infoWidgetPage[data-scheme="dark"] { --ia-light: #2a2d3a; --ia-border: #44485a; --ia-text: #e2e4ea; --ia-bg: #22242f; --ia-muted: #9aa0ad; }
@media (prefers-color-scheme: dark) { :root[data-scheme="system"] .infoApp { --ia-light: #2a2d3a; --ia-border: #44485a; --ia-text: #e2e4ea; --ia-bg: #22242f; --ia-muted: #9aa0ad; } }
.infoApp-header { margin-bottom: 12px; padding: 8px 12px; background: var(--ia-light); border: 1px solid var(--ia-border); border-radius: 6px; }
.infoApp-title { display: flex; align-items: center; gap: 6px; margin: 0; color: var(--ia-primary); font-size: 1.25rem; font-weight: 600; }
:root[data-scheme="dark"] .infoApp-title { color: #8fb3e3; }
.infoApp-sub { color: var(--ia-muted); }
.infoCard { margin-bottom: 12px; background: var(--ia-bg); border: 1px solid var(--ia-border); border-radius: 6px; }
.infoCard-header { padding: 8px 12px; border-bottom: 1px solid var(--ia-border); font-weight: 600; }
.infoCard-body { padding: 12px; }
.infoAlert { margin-bottom: 12px; padding: 8px 12px; border-radius: 6px; border: 1px solid transparent; line-height: 1.6; }
.infoAlert--info { background: #d1ecf1; border-color: #bee5eb; color: #0c5460; }
.infoAlert--warning { background: #fff3cd; border-color: #ffeeba; color: #856404; }
.infoAlert--success { background: #d4edda; border-color: #c3e6cb; color: #155724; }
.infoAlert code { font-size: 12px; }
.infoApp textarea, .infoApp .infoInput { width: 100%; padding: 6px 8px; border: 1px solid var(--ia-border); border-radius: 4px; background: var(--ia-bg); color: var(--ia-text); font: 12px/1.4 ui-monospace, Menlo, Consolas, monospace; }
.infoApp .infoInput { font-family: inherit; font-size: 13px; }
.infoRow { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 10px 0; }
.infoRow label { display: block; margin-bottom: 3px; font-weight: 600; }
.infoSetup { margin-top: 0; padding: 12px; background: var(--ia-light); border: 1px solid var(--ia-border); border-radius: 6px; }
.infoSetup-note { color: var(--ia-muted); font-size: 12px; line-height: 1.5; }
.infoNames-action { display: flex; align-items: flex-end; }
.infoRow > div { min-width: 0; }
.infoButtons { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.infoBtn { display: inline-flex; align-items: center; justify-content: center; gap: 5px; padding: 6px 12px; border: 1px solid var(--ia-muted); border-radius: 4px; background: none; color: var(--ia-text); font-size: 13px; cursor: pointer; }
.infoBtn:hover { background: var(--ia-light); }
.infoBtn--main { width: 100%; padding: 9px 12px; border: 0; background: var(--ia-orange); color: #fff; font-weight: 600; font-size: 14px; }
.infoBtn--main:hover { background: #d4661a; }
.infoResult { margin-top: 12px; }
.infoResult-box { margin-bottom: 8px; padding: 8px; background: var(--ia-light); border-radius: 4px; word-break: break-all; }
.infoCode { margin-top: 4px; padding: 6px 8px; background: #272b33; color: #e6e6e6; border-radius: 4px; font: 11px/1.4 ui-monospace, Menlo, Consolas, monospace; cursor: copy; }
.infoMine { margin: 0; padding: 0; list-style: none; }
.infoMine li { display: flex; flex-wrap: wrap; gap: 6px 12px; padding: 6px 0; border-bottom: 1px solid var(--ia-border); }
.infoMine li:last-child { border-bottom: 0; }
@media (max-width: 600px) { .infoRow { grid-template-columns: 1fr; } }

/* widget */
.infoWidgetPage { margin: 0; padding: 8px; background: #f5f7fa; font: 12px/1.4 -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif; color: #333; }
.infoWidgetPage[data-scheme="dark"] { background: #1b1d26; color: #e2e4ea; }
.totoWidget { --ia-primary: #324f76; --ia-green: #28a745; --ia-light: #f8f9fa; --ia-border: #dee2e6; background: #fff; border: 1px solid var(--ia-border); border-radius: 10px; padding: 12px; }
[data-scheme="dark"] .totoWidget { --ia-light: #2a2d3a; --ia-border: #44485a; background: #22242f; }
.totoWidget-panel { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 12px; padding: 8px 12px; background: var(--ia-light); border-radius: 8px; }
.totoWidget-left { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.totoWidget-count { cursor: pointer; text-decoration: underline dotted; }
.totoWidget-top { padding: 4px 10px; background: #e8f4f8; border-radius: 18px; font-size: 11px; color: #0c5460; }
.totoWidget-right { display: flex; flex-wrap: wrap; gap: 6px; }
.totoWidget-btn { padding: 4px 12px; border: 0; border-radius: 18px; background: var(--ia-primary); color: #fff !important; font-size: 11px; text-decoration: none !important; cursor: pointer; }
.totoWidget-btn:hover { opacity: .85; }
.totoWidget-btn--coupons { background: #17a2b8; }
.totoWidget-btn--copy { background: var(--ia-green); }
.totoWidget-cols { display: flex; gap: 12px; align-items: flex-start; }
.totoWidget-matches { flex: 2; min-width: 0; }
.totoWidget-prizes { flex: 1; min-width: 220px; }
.totoTable { width: 100%; border-collapse: collapse; }
.totoTable th, .totoTable td { padding: 6px 4px; border: 1px solid var(--ia-border); vertical-align: middle; }
.totoTable th { background: var(--ia-light); font-weight: 600; font-size: 12px; }
.totoTable .col-num { width: 36px; text-align: center; }
.totoTable .col-out { width: 46px; text-align: center; }
.totoTable .cell-event input { width: 100%; padding: 2px 4px; border: 0; background: none; color: inherit; font: inherit; }
.totoTable .cell-event input:focus { outline: 1px solid var(--ia-border); background: var(--ia-light); }
.totoTable .cell-out { text-align: center; font-weight: 700; cursor: pointer; user-select: none; }
.totoTable .cell-out.is-green, .totoTable .is-correct { background: var(--ia-green); color: #fff; }
.totoTable .cell-out.is-red, .totoTable .is-wrong { background: #f8d7da; color: #721c24; }
.totoTable--readonly .cell-out { cursor: default; }
.totoTable--prizes td { text-align: center; }
.totoTable .coeff { width: 65px; padding: 3px 5px; border: 1px solid var(--ia-border); border-radius: 3px; background: none; color: inherit; text-align: center; font-size: 12px; font-weight: 700; }
.totoWidget-total { margin-top: 8px; padding: 8px; border-radius: 6px; background: var(--ia-green); color: #fff; text-align: center; font-weight: 700; }
.totoWidget-note { margin-top: 8px; font-size: 11px; color: #6c757d; }
.totoTable--coupons td, .totoTable--coupons th { text-align: center; white-space: nowrap; }
.totoToast { position: fixed; right: 20px; bottom: 20px; z-index: 1050; max-width: 350px; padding: 10px 16px; border-left: 4px solid var(--ia-green, #28a745); border-radius: 4px; background: #d4edda; color: #155724; box-shadow: 0 2px 8px rgba(0,0,0,.2); opacity: 0; transform: translateY(10px); transition: .25s; pointer-events: none; }
.totoToast.is-shown { opacity: 1; transform: none; }
.totoToast--error { background: #f8d7da; border-color: #dc3545; color: #721c24; }
@media (max-width: 900px) { .totoWidget-cols { flex-direction: column; } .totoWidget-prizes { width: 100%; } }
@media (max-width: 600px) { .totoTable th, .totoTable td { padding: 4px 2px; font-size: 11px; } .totoTable .col-out { width: 38px; } }
.totoWidget-btn { display:inline-flex; align-items:center; justify-content:center; min-height:26px; box-sizing:border-box; line-height:1.3; vertical-align:middle; }
