/* СГЕНЕРИРОВАНО из style.css скриптом tools/scope_konstruktor_css.py — руками не править */
#tolkk {
  --bg: #F4F5F6; --card: #fff; --ink: #1C1D1E; --muted: #9E9FA0; --line: #E4E5E6;
  --brand: #3774B5; --brand-2: #6A98CB; --sel: #3774B5;
}
#tolkk, #tolkk * { box-sizing: border-box; }
#tolkk { margin: 0; height: 100%; background: var(--bg); color: var(--ink);
  font: 14px/1.45 -apple-system, "Segoe UI", Roboto, Arial, sans-serif; }
#tolkk button, #tolkk select { font: inherit; color: inherit; }
#tolkk button { cursor: pointer; }
#tolkk .top { height: 56px; display: flex; align-items: center; gap: 16px; padding: 0 16px;
  background: var(--card); border-bottom: 1px solid var(--line); }
#tolkk .brand { font-size: 17px; white-space: nowrap; }
#tolkk .brand b { color: var(--brand); }
#tolkk .badge { font-size: 11px; background: #E8F0F8; color: var(--brand); padding: 2px 8px; border-radius: 10px; margin-left: 6px; vertical-align: 2px; }
#tolkk .coll { margin-left: auto; display: flex; gap: 8px; align-items: center; color: var(--muted); }
#tolkk .coll select { padding: 6px 8px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); }
#tolkk .golatgl { display: flex; gap: 6px; align-items: center; color: var(--ink); cursor: pointer; white-space: nowrap; }
#tolkk .golatgl[hidden] { display: none; }
#tolkk .golatgl input { -webkit-appearance: checkbox; appearance: auto; width: 16px; height: 16px; margin: 0; accent-color: #3774B5; cursor: pointer; }
#tolkk .resetbtn { border: 1px solid var(--line); background: #fff; border-radius: 8px; padding: 6px 12px; color: #A33; }
#tolkk main { display: flex; height: calc(100% - 56px); }
#tolkk .view { position: relative; flex: 1; min-width: 0; background: #EEF0F2; }
#tolkk #c { width: 100%; height: 100%; display: block; touch-action: none; }
#tolkk .panel { width: 380px; flex-shrink: 0; background: var(--card); border-left: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0; }
#tolkk .tabs { display: flex; border-bottom: 1px solid var(--line); }
#tolkk .tabs button { flex: 1; border: 0; background: none; padding: 12px 4px; border-bottom: 3px solid transparent; color: var(--muted); font-weight: 600; }
#tolkk .tabs button.on { color: var(--brand); border-bottom-color: var(--brand); }
#tolkk .pane { overflow-y: auto; padding: 12px 14px 24px; flex: 1; min-height: 0; }
#tolkk .sub { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 12px; }
#tolkk .sub button { border: 1px solid var(--line); background: #fff; border-radius: 16px; padding: 4px 12px; font-size: 13px; }
#tolkk .sub button.on { background: var(--brand); border-color: var(--brand); color: #fff; }
#tolkk .est td.grp { font-weight: 700; padding-top: 14px; color: var(--brand); }
#tolkk .selbar .dh { display: block; font-weight: 400; font-size: 12px; color: var(--muted); }
#tolkk .plan .pi { display: inline-block; width: 14px; height: 10px; margin-right: 6px; vertical-align: -1px; border: 2px solid currentColor; border-top-width: 3px; }
#tolkk .plan .pi-line { border-left: 0; border-right: 0; border-bottom: 0; }
#tolkk .plan .pi-left { border-right: 0; border-bottom: 0; }
#tolkk .plan .pi-right { border-left: 0; border-bottom: 0; }
#tolkk .hint { color: var(--muted); font-size: 12.5px; margin: 0 0 10px; }
#tolkk h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin: 18px 0 8px; }
#tolkk h3:first-child { margin-top: 4px; }
#tolkk .grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
#tolkk .card { border: 1px solid var(--line); border-radius: 10px; background: #fff; padding: 6px; text-align: center; font-size: 12px; line-height: 1.25; transition: border-color .15s, box-shadow .15s; }
#tolkk .card:hover { border-color: var(--brand-2); box-shadow: 0 2px 8px rgba(55,116,181,.14); }
#tolkk .card img, #tolkk .card .ph { width: 100%; aspect-ratio: 1; object-fit: contain; display: block; margin-bottom: 4px; background: #F7F8F9; border-radius: 6px; }
#tolkk .card .pr { color: var(--brand); font-weight: 600; margin-top: 2px; }
#tolkk .sw { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
#tolkk .sw button { border: 2px solid #E4E5E6; padding: 0; border-radius: 8px; overflow: hidden; background: #fff; aspect-ratio: 1; cursor: pointer; }
#tolkk .sw button:hover { border-color: #C6C7C8; }
#tolkk .sw button img { width: 100%; height: 100%; object-fit: cover; display: block; }
#tolkk .sw button.on { border-color: var(--sel); box-shadow: 0 0 0 2px #fff inset; }
#tolkk .swname { font-size: 12.5px; color: var(--ink); margin: 6px 0 0; min-height: 1.3em; }
#tolkk table.est { width: 100%; border-collapse: collapse; font-size: 13px; }
#tolkk .est td { padding: 6px 4px; border-bottom: 1px solid var(--line); vertical-align: top; }
#tolkk .est td.n { text-align: right; white-space: nowrap; }
#tolkk .est tr.sel td { background: #EEF4FA; }
#tolkk .est .muted { color: var(--muted); font-size: 12px; }
#tolkk .sum { display: flex; justify-content: space-between; font-size: 17px; font-weight: 700; margin-top: 12px; color: var(--brand); }
#tolkk .btnline { border: 1px solid var(--line); background: #fff; border-radius: 8px; padding: 6px 12px; margin-top: 12px; }
#tolkk .selbar { position: absolute; left: 12px; right: 12px; top: 12px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  background: rgba(255,255,255,.95); border: 1px solid var(--line); border-radius: 12px; padding: 8px 10px; box-shadow: 0 4px 16px rgba(0,0,0,.08); max-width: 720px; }
#tolkk .selbar .nm { font-weight: 600; margin-right: auto; }
#tolkk .selbar select, #tolkk .selbar button { border: 1px solid var(--line); background: #fff; border-radius: 8px; padding: 5px 10px; }
#tolkk .selbar button.del { color: #A33; }
#tolkk .selbar input.ownw { width: 92px; border: 1px solid var(--line); background: #fff; border-radius: 8px; padding: 5px 8px; font: inherit; }
#tolkk .viewbtns { position: absolute; left: 12px; bottom: 12px; display: flex; gap: 6px; }
#tolkk .viewbtns button { border: 1px solid var(--line); background: rgba(255,255,255,.92); border-radius: 8px; padding: 6px 12px; }
#tolkk .totalchip { position: absolute; right: 12px; bottom: 12px; background: var(--brand); color: #fff; border-radius: 10px; padding: 8px 14px; font-weight: 700; font-size: 16px; }
#tolkk .loading { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(241,242,242,.85); color: var(--brand); font-weight: 600; }
#tolkk .toast { position: absolute; left: 50%; bottom: 64px; transform: translateX(-50%); background: #1C1D1E; color: #fff; padding: 9px 16px; border-radius: 10px; font-size: 13.5px; max-width: calc(100% - 32px); text-align: center; box-shadow: 0 4px 16px rgba(0,0,0,.2); }
#tolkk .loading[hidden], #tolkk .selbar[hidden], #tolkk .toast[hidden] { display: none; }
@media (max-width: 860px) {
#tolkk .top { gap: 8px; padding: 0 12px; }
#tolkk .badge, #tolkk .coll > span { display: none; }
#tolkk .brand { font-size: 14px; white-space: normal; line-height: 1.15; max-width: 110px; }
#tolkk .coll { min-width: 0; }
#tolkk .coll select { max-width: 150px; padding: 5px 6px; }
#tolkk .resetbtn { padding: 5px 8px; font-size: 13px; }
#tolkk main { flex-direction: column; height: auto; min-height: calc(100% - 56px); }
#tolkk .view { flex: none; height: 52vh; }
#tolkk .panel { width: auto; border-left: 0; border-top: 1px solid var(--line); }
#tolkk .pane { overflow: visible; }
#tolkk .grid { grid-template-columns: repeat(3, 1fr); }
#tolkk .selbar { left: 8px; right: 8px; top: 8px; padding: 6px 8px; gap: 6px; font-size: 13px; }
#tolkk .selbar .nm { flex-basis: 100%; }
}
#tolkk .savebtns { display: flex; gap: 6px; }
#tolkk .savebtns button { border: 1px solid var(--line); background: #fff; border-radius: 8px; padding: 6px 12px; }
#tolkk .savebtns #btnSave { background: var(--brand); border-color: var(--brand); color: #fff; }
#tolkk #dlg { border: 0; border-radius: 14px; padding: 22px 24px 18px; width: min(380px, calc(100% - 32px)); box-shadow: 0 12px 40px rgba(0,0,0,.25); color: var(--ink); }
#tolkk #dlg::backdrop { background: rgba(28,29,30,.45); }
#tolkk #dlg h2 { margin: 0 0 8px; font-size: 18px; color: var(--brand); }
#tolkk #dlg p { margin: 0 0 12px; color: var(--muted); }
#tolkk #dlg .code { font: 700 34px/1.2 ui-monospace, Menlo, Consolas, monospace; letter-spacing: .18em; text-align: center; color: var(--ink);
  background: var(--bg); border: 1px dashed var(--brand-2); border-radius: 10px; padding: 10px 0; margin: 4px 0 6px; user-select: all; }
#tolkk #dlg input.code { width: 100%; outline: none; }
#tolkk #dlg input.code:focus { border-style: solid; }
#tolkk #dlg .dlgerr { color: #A33; margin: 4px 0 0; }
#tolkk #dlg .dlgerr[hidden] { display: none; }
#tolkk .dlgbtns { display: flex; justify-content: flex-end; gap: 8px; margin-top: 14px; }
#tolkk .dlgbtns button { border: 1px solid var(--line); background: #fff; border-radius: 8px; padding: 7px 14px; }
#tolkk .dlgbtns button.pri { background: var(--brand); border-color: var(--brand); color: #fff; }
#tolkk .dlgbtns button:disabled { opacity: .6; cursor: default; }
@media (max-width: 860px) {
#tolkk .savebtns button { padding: 6px 8px; font-size: 13px; }
}
@media (max-width: 600px) {
#tolkk .top { height: auto; flex-wrap: wrap; padding: 8px 12px; row-gap: 8px; }
#tolkk .coll select { max-width: 130px; }
#tolkk .savebtns { order: 5; width: 100%; }
#tolkk .savebtns button { flex: 1; padding: 7px 8px; }
}
#tolkk .view { background: #f1f2f2; }
@media (max-width: 860px) {
#tolkk .view { height: 53vh; height: 53dvh; min-height: 320px; }
}
#tolkk .panel > .selbar { position: static; flex: 0 0 auto; margin: 10px; max-width: none; box-shadow: none; background: #f7f8f6; }
#tolkk .panel > .selbar .nm { flex-basis: 100%; }
