:root {
  --bg: #edf0f4;
  --panel: #ffffff;
  --panel-2: #f5f7fa;
  --stat: #eef1f5;
  --text: #2b3445;
  --muted: #6c7787;
  --faint: #a3adba;
  --heading: #26306b;
  --navy: #26306b;
  --accent: #4b9a5d;
  --accent-2: #3d8550;
  --accent-soft: #e5f2e8;
  --orange: #d69f3e;
  --orange-2: #c28a2b;
  --orange-soft: #fbf1dc;
  --red: #d2524c;
  --red-soft: #fbe7e5;
  --green: #3f9a57;
  --green-soft: #e3f3e7;
  --blue: #2f6bd1;
  --blue-soft: #e5eefc;
  --slot: #3b4a8c;
  --heart: #e05561;
  --border: #dfe4eb;
  --shadow: 0 1px 2px rgba(25, 35, 60, 0.05), 0 1px 6px rgba(25, 35, 60, 0.05);
  --radius: 6px;
  --sidebar: 290px;
  --bottom: 62px;
  --mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Open Sans', 'Helvetica Neue', Arial, sans-serif;
  color: var(--text);
  font-size: 14px;
  line-height: 1.45;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); min-height: 100%; }
body { -webkit-font-smoothing: antialiased; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { color: var(--heading); margin: 0 0 12px; line-height: 1.2; }
h1 { font-size: 26px; font-weight: 700; }
h2 { font-size: 20px; font-weight: 700; }
h3 { font-size: 15px; font-weight: 700; }
h4 { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); }
p { margin: 0 0 10px; }
small, .muted { color: var(--muted); }
.num, td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.neg { color: var(--red); }
.pos { color: var(--green); }
.boot { display: grid; place-items: center; height: 100vh; color: var(--muted); font-size: 16px; }
.hidden { display: none !important; }

/* ---------- каркас ---------- */
.app { display: grid; grid-template-columns: var(--sidebar) 1fr; min-height: 100vh; padding-bottom: var(--bottom); }
/* z-index выше нижней панели: модальные окна из боковой панели должны её перекрывать */
.sidebar { background: var(--panel); border-right: 1px solid var(--border); height: calc(100vh - var(--bottom)); position: sticky; top: 0; overflow-y: auto; display: flex; flex-direction: column; z-index: 45; }
.main { padding: 22px 32px 40px; min-width: 0; }
.main-inner { max-width: 1240px; }
.bottombar { position: fixed; left: 0; right: 0; bottom: 0; height: var(--bottom); background: var(--panel); border-top: 1px solid var(--border); display: flex; align-items: stretch; z-index: 40; box-shadow: 0 -1px 8px rgba(25, 35, 60, 0.05); }
.bottombar .quarter { width: var(--sidebar); padding: 10px 18px; display: flex; flex-direction: column; justify-content: center; }
.bottombar .quarter small { font-size: 11px; }
.bottombar .quarter b { font-size: 14px; color: var(--heading); }
.bottombar nav { flex: 1; display: flex; justify-content: center; }
.navitem { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; padding: 0 14px; min-width: 76px; color: #4e5868; font-size: 12px; cursor: pointer; border: none; background: none; text-decoration: none; }
.navitem svg { width: 21px; height: 21px; color: var(--heading); }
.navitem:hover { background: var(--panel-2); text-decoration: none; }
.navitem.active { background: #e7ebf1; color: var(--heading); font-weight: 700; }
.navitem.unread { background: var(--orange); color: #fff; }
.navitem.unread svg { color: #fff; }
.bottombar .brand { display: flex; align-items: center; gap: 9px; padding: 0 18px; color: var(--heading); font-weight: 700; font-size: 12.5px; line-height: 1.15; }
.brand-logo { width: 30px; height: 30px; border-radius: 8px; background: var(--accent); display: grid; place-items: center; color: #fff; flex: none; }
.brand-logo svg { width: 19px; height: 19px; }

/* ---------- боковая панель ---------- */
.side-tools { display: flex; border-bottom: 1px solid var(--border); position: sticky; top: 0; background: var(--panel); z-index: 2; }
.side-tool { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 10px 4px 8px; font: inherit; font-size: 12px; color: #4e5868; background: none; border: none; cursor: pointer; }
.side-tool svg { width: 20px; height: 20px; color: var(--heading); }
.side-tool:hover { background: var(--panel-2); }
.side-tool.done svg { color: var(--green); }
.side-tool[disabled] { opacity: 0.45; cursor: default; }
.side-section { padding: 14px 16px; border-bottom: 1px solid var(--border); }
.side-section:last-child { border-bottom: none; }
.side-title { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 15px; font-weight: 700; color: var(--heading); margin-bottom: 10px; }
.side-sub { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--heading); margin: 4px 0 8px; }
.side-sub svg { width: 14px; height: 14px; }
.tasklist { list-style: none; margin: 0 -16px; padding: 0; }
.taskitem { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--border); cursor: pointer; }
.taskitem:first-child { border-top: 1px solid var(--border); }
.taskitem:hover { background: var(--panel-2); }
.taskitem .tname { font-weight: 700; color: var(--heading); font-size: 13.5px; }
.taskitem .twarn { display: flex; gap: 5px; align-items: flex-start; font-size: 11.5px; color: #4e5868; margin-top: 4px; line-height: 1.35; }
.taskitem .twarn svg { width: 12px; height: 12px; color: var(--red); flex: none; margin-top: 1px; }
.taskitem.locked { cursor: not-allowed; }
.taskitem.locked .tname { color: var(--faint); }
.taskitem.locked:hover { background: transparent; }

/* ---------- элементы ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 8px 14px; border-radius: 4px; border: 1px solid var(--border); background: var(--panel); color: var(--heading); font: inherit; font-weight: 600; cursor: pointer; transition: background 0.12s, border-color 0.12s; white-space: nowrap; text-decoration: none; }
.btn svg { width: 16px; height: 16px; }
.btn:hover { background: var(--panel-2); text-decoration: none; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:hover { background: var(--accent-2); }
.btn.orange { background: var(--orange); border-color: var(--orange); color: #fff; }
.btn.orange:hover { background: var(--orange-2); }
.btn.danger { background: var(--red); border-color: var(--red); color: #fff; }
.btn.navy { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn.ghost { background: transparent; border-color: transparent; }
.btn.small { padding: 5px 10px; font-size: 12.5px; }
.btn.tiny { padding: 3px 8px; font-size: 11.5px; gap: 4px; }
.btn.tiny svg { width: 12px; height: 12px; }
.btn.block { width: 100%; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }
.icon-btn { display: inline-grid; place-items: center; width: 28px; height: 28px; border: 1px solid var(--border); border-radius: 4px; background: var(--panel); cursor: pointer; color: var(--heading); font: inherit; }
.icon-btn svg { width: 15px; height: 15px; }
.icon-btn:hover { background: var(--panel-2); }
.icon-btn[disabled] { opacity: 0.35; cursor: default; }

input[type='text'], input[type='number'], input[type='password'], select, textarea { font: inherit; color: var(--text); background: #fff; border: 1px solid var(--border); border-radius: 4px; padding: 8px 10px; width: 100%; outline: none; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
textarea { min-height: 80px; resize: vertical; }
input[type='range'] { width: 100%; accent-color: var(--accent); }
input[type='checkbox'], input[type='radio'] { accent-color: var(--navy); }
label.field { display: block; margin-bottom: 12px; }
label.field > span { display: block; font-size: 12.5px; color: var(--muted); margin-bottom: 4px; font-weight: 600; }
.check { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.stack { display: flex; flex-direction: column; gap: 10px; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.grid4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.spacer { flex: 1; }
.mt { margin-top: 16px; }
.mt2 { margin-top: 28px; }
.mb { margin-bottom: 16px; }

.card { background: var(--panel); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px 20px; }
.card.flat { box-shadow: none; border: 1px solid var(--border); }
.card + .card { margin-top: 16px; }
.card-title { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.card-title h2, .card-title h3 { margin: 0; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; border-bottom: 1px solid var(--border); padding-bottom: 10px; }
.page-head h1 { margin: 0; }
.section-title { font-size: 20px; font-weight: 700; color: var(--heading); margin: 22px 0 12px; }
.lead { color: var(--muted); max-width: 760px; }

.chip { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 4px; font-size: 11.5px; font-weight: 700; white-space: nowrap; background: #eceff3; color: #5b6573; }
.chip svg { width: 12px; height: 12px; }
.chip.done { background: var(--green-soft); color: var(--green); }
.chip.todo { background: #eceff3; color: #5b6573; }
.chip.new { background: var(--blue-soft); color: var(--blue); }
.chip.warn { background: var(--red-soft); color: var(--red); }
.chip.locked { background: #f1f3f6; color: #9aa4b1; }
.chip.ongoing { background: var(--orange-soft); color: #9b6a12; }
.badge { display: inline-grid; place-items: center; min-width: 17px; height: 17px; padding: 0 5px; border-radius: 9px; background: var(--red); color: #fff; font-size: 10.5px; font-weight: 700; }

/* серые плашки с цифрами, как «Себестоимость $40» */
.stat { background: var(--stat); border-radius: 4px; padding: 10px 14px; min-width: 0; }
.stat .s-label { font-size: 12px; color: var(--muted); }
.stat .s-value { font-size: 24px; font-weight: 700; color: var(--heading); font-variant-numeric: tabular-nums; white-space: nowrap; }
.stat .s-value.neg { color: var(--red); }
.stat .s-sub { font-size: 11.5px; color: var(--muted); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }
.kpi { background: var(--panel); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px 16px; }
.kpi .k-label { font-size: 12px; color: var(--muted); font-weight: 600; }
.kpi .k-value { font-size: 23px; font-weight: 700; color: var(--heading); margin-top: 3px; font-variant-numeric: tabular-nums; }
.kpi .k-sub { font-size: 12px; color: var(--muted); margin-top: 2px; }
.kpi.flat { box-shadow: none; background: var(--stat); border-radius: 4px; }
.big-number { font-size: 34px; font-weight: 700; color: var(--heading); font-variant-numeric: tabular-nums; }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 16px; flex-wrap: wrap; }
.tab { padding: 9px 14px; border: none; background: none; cursor: pointer; font: inherit; font-weight: 600; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; display: inline-flex; gap: 6px; align-items: center; }
.tab svg { width: 15px; height: 15px; }
.tab:hover { color: var(--heading); }
.tab.active { color: var(--heading); border-bottom-color: var(--heading); }
.pillbar { display: inline-flex; background: var(--panel-2); border: 1px solid var(--border); border-radius: 6px; padding: 3px; gap: 2px; flex-wrap: wrap; }
.pill { border: none; background: none; padding: 6px 12px; border-radius: 4px; cursor: pointer; font: inherit; font-size: 13px; color: var(--muted); font-weight: 600; }
.pill.active { background: #fff; color: var(--heading); box-shadow: var(--shadow); }

/* вкладки отчётов */
.rtabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.rtab { display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; border-radius: 4px; background: #e3e7ed; color: #4e5868; font-weight: 600; font-size: 13px; border: none; cursor: pointer; text-decoration: none; }
.rtab svg { width: 15px; height: 15px; }
.rtab:hover { background: #d8dde5; text-decoration: none; }
.rtab.active { background: #fff; color: var(--heading); box-shadow: var(--shadow); }
.qpicker { display: inline-flex; align-items: center; gap: 4px; }
.qpicker select { width: 110px; padding: 6px 8px; }

table.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.tbl th { text-align: left; font-size: 12px; color: var(--muted); font-weight: 700; padding: 9px 10px; background: var(--panel-2); border-bottom: 1px solid var(--border); white-space: nowrap; }
.tbl td { padding: 8px 10px; border-bottom: 1px solid var(--border); vertical-align: top; }
.tbl tr:last-child td { border-bottom: none; }
.tbl tr.total td { font-weight: 700; color: var(--heading); background: #fafbfd; }
.tbl tr.sub td:first-child { padding-left: 26px; color: var(--muted); }
.tbl tr.me td { background: var(--accent-soft); }
.tbl.compact td, .tbl.compact th { padding: 6px 8px; }
.tbl.striped tr:nth-child(even) td { background: #f7f9fb; }
.tbl-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; }

.notice { display: flex; gap: 10px; align-items: flex-start; padding: 11px 14px; border-radius: 4px; background: var(--blue-soft); color: #2f4f8f; font-size: 13.5px; }
.notice svg { width: 18px; height: 18px; flex: none; margin-top: 1px; }
.notice.warn { background: var(--red-soft); color: #9c2f2c; }
.notice.ok { background: var(--green-soft); color: #2d6f40; }
.notice.orange { background: var(--orange-soft); color: #8a5a12; }
.notice + .notice { margin-top: 8px; }

.progress { height: 9px; border-radius: 6px; background: #e6ebf1; overflow: hidden; }
.progress > div { height: 100%; background: var(--green); border-radius: 6px; }
.progress.big { height: 16px; }

/* продукты в боковой панели */
.fcard { border: 1px solid var(--border); border-radius: 4px; padding: 10px 12px; margin-bottom: 8px; background: #fff; }
.fcard.active-route { border-color: var(--navy); box-shadow: 0 0 0 2px #e3e6f3; }
.fhead { display: flex; align-items: center; gap: 10px; }
.slider-row { display: grid; grid-template-columns: 1fr 86px; gap: 10px; align-items: center; }

/* R&D */
.proj { border: 1px solid var(--border); border-radius: 4px; padding: 10px; margin-bottom: 8px; background: #fff; }
.proj .pname { font-weight: 700; color: var(--heading); display: flex; gap: 6px; align-items: center; }
.proj .pmeta { font-size: 12px; color: var(--muted); margin: 3px 0 8px; }

/* модальные окна */
.modal-back { position: fixed; inset: 0; background: rgba(20, 28, 48, 0.45); display: grid; place-items: center; z-index: 100; padding: 20px; }
.modal { background: #fff; border-radius: 8px; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25); width: min(980px, 100%); max-height: 92vh; display: flex; flex-direction: column; }
.modal.narrow { width: min(560px, 100%); }
.modal-head { padding: 14px 20px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.modal-head h2 { margin: 0; display: flex; gap: 8px; align-items: center; font-size: 18px; }
.modal-body { padding: 18px 20px; overflow-y: auto; }
.modal-foot { padding: 12px 20px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; gap: 10px; background: var(--panel-2); border-radius: 0 0 8px 8px; }

/* тосты */
.toasts { position: fixed; top: 14px; left: 50%; transform: translateX(-50%); z-index: 200; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.toast { background: #fff; border-radius: 6px; box-shadow: 0 6px 24px rgba(0, 0, 0, 0.16); padding: 10px 16px; font-weight: 600; display: flex; gap: 8px; align-items: center; border-left: 4px solid var(--green); max-width: 520px; }
.toast.error { border-left-color: var(--red); }
.toast svg { width: 16px; height: 16px; }

/* лобби */
.lobby { min-height: 100vh; display: grid; place-items: center; padding: 30px 16px; background: var(--bg); }
.lobby-card { width: min(720px, 100%); background: #fff; border-radius: 8px; box-shadow: 0 10px 40px rgba(25, 35, 60, 0.1); padding: 30px 32px; }
.lobby-hero { display: flex; gap: 18px; align-items: center; margin-bottom: 18px; }
.lobby-hero .brand-logo { width: 58px; height: 58px; border-radius: 14px; }
.lobby-hero .brand-logo svg { width: 34px; height: 34px; }
.lobby-hero h1 { margin: 0 0 4px; font-size: 28px; }
.teamgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.teamopt { border: 2px solid var(--border); border-radius: 6px; padding: 12px; cursor: pointer; background: #fff; text-align: left; font: inherit; }
.teamopt.selected { border-color: var(--accent); background: var(--accent-soft); }
.teamopt .tn { font-weight: 700; color: var(--heading); display: flex; align-items: center; gap: 8px; }
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; flex: none; }
.roleopt { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; }
.roleopt button { border: 2px solid var(--border); border-radius: 6px; padding: 9px 10px; cursor: pointer; background: #fff; text-align: left; font: inherit; }
.roleopt button.selected { border-color: var(--accent); background: var(--accent-soft); }
.roleopt b { color: var(--heading); display: block; }
.roleopt small { display: block; font-size: 11.5px; }

/* команда и онлайн */
.member { display: flex; align-items: center; gap: 8px; padding: 4px 0; font-size: 13px; }
.member .online { width: 8px; height: 8px; border-radius: 50%; background: #c3ccd6; flex: none; }
.member .online.on { background: #3fbf6a; }
.rolebadge { font-size: 10.5px; font-weight: 800; color: var(--navy); background: #e6e9f4; padding: 1px 6px; border-radius: 4px; }

/* чат */
.chat { display: flex; flex-direction: column; height: calc(100vh - var(--bottom) - 190px); min-height: 320px; }
.chat-log { flex: 1; overflow-y: auto; padding: 12px; background: var(--panel-2); border-radius: 6px; border: 1px solid var(--border); }
.msg { margin-bottom: 10px; max-width: 80%; }
.msg .mhead { font-size: 11.5px; color: var(--muted); margin-bottom: 2px; }
.msg .mtext { background: #fff; border: 1px solid var(--border); padding: 7px 11px; border-radius: 8px; white-space: pre-wrap; word-wrap: break-word; }
.msg.mine { margin-left: auto; }
.msg.mine .mtext { background: var(--accent-soft); border-color: #c4e2cb; }
.msg.host .mtext { background: var(--orange-soft); border-color: #f2d7a8; }
.chat-input { display: flex; gap: 8px; margin-top: 10px; }

/* почта */
.inbox { display: grid; grid-template-columns: 320px 1fr; gap: 16px; }
.mail-item { display: flex; gap: 10px; padding: 10px 12px; border-bottom: 1px solid var(--border); cursor: pointer; }
.mail-item:hover { background: var(--panel-2); }
.mail-item.active { background: #e9ecf4; }
.mail-item.unread .mtitle { font-weight: 800; }
.mail-item .mtitle { color: var(--heading); font-weight: 600; }
.mail-body { white-space: pre-wrap; line-height: 1.6; }

/* новости */
.news-item { padding: 14px 0; border-bottom: 1px solid var(--border); display: grid; grid-template-columns: 44px 1fr; gap: 14px; }
.news-item:last-child { border-bottom: none; }
.news-icon { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: #e6e9f4; color: var(--navy); }
.news-icon svg { width: 20px; height: 20px; }
.news-icon.host { background: var(--orange-soft); color: #9b6a12; }
.news-icon.event { background: var(--red-soft); color: var(--red); }
.news-icon.results { background: var(--green-soft); color: var(--green); }
.news-q { font-weight: 700; color: var(--muted); font-size: 12px; }
.news-title { font-weight: 700; color: var(--heading); margin-bottom: 3px; }

/* рейтинг */
.medal { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; font-weight: 800; font-size: 12.5px; background: #eef0f3; color: var(--muted); }
.medal.m1 { background: #f2cf5b; color: #5d4600; }
.medal.m2 { background: #d4dae2; color: #46505c; }
.medal.m3 { background: #e2b086; color: #643810; }
.winner { text-align: center; padding: 24px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); border-top: 4px solid var(--orange); margin-bottom: 18px; }
.winner .wname { font-size: 28px; font-weight: 800; color: var(--heading); display: inline-flex; gap: 10px; align-items: center; }
.winner .wname svg { width: 28px; height: 28px; color: var(--orange); }

/* обучение */
.tut-step { display: grid; grid-template-columns: 64px 1fr; gap: 16px; align-items: start; }
.tut-icon { width: 64px; height: 64px; border-radius: 50%; background: #e6e9f4; color: var(--navy); display: grid; place-items: center; }
.tut-icon svg { width: 32px; height: 32px; }
.tut-dots { display: flex; gap: 6px; }
.tut-dots span { width: 8px; height: 8px; border-radius: 50%; background: var(--border); }
.tut-dots span.on { background: var(--navy); }

/* вопросы */
.question { margin-bottom: 14px; }
.question .qtext { font-weight: 700; color: var(--heading); font-size: 13px; margin-bottom: 6px; }
.options { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.options label { display: flex; gap: 6px; align-items: center; padding: 6px 8px; border: 1px solid var(--border); border-radius: 4px; font-size: 12.5px; cursor: pointer; background: #fff; }
.sidebar .options { grid-template-columns: 1fr !important; }
.options label.right { border-color: var(--green); background: var(--green-soft); }
.options label.wrong { border-color: var(--red); background: var(--red-soft); }

.timer { font-variant-numeric: tabular-nums; font-weight: 800; }
.timer.low { color: var(--red); }
.ready-box { padding: 12px; border-radius: 4px; background: var(--panel-2); border: 1px dashed var(--border); }
.ready-box.on { background: var(--green-soft); border: 1px solid #c4e2cb; }
.ready-box b { display: inline-flex; gap: 6px; align-items: center; color: var(--heading); }
.ready-box b svg { width: 15px; height: 15px; color: var(--green); }
.statement td:first-child { width: 55%; }
.statement .exp { cursor: pointer; }
.empty { padding: 26px; text-align: center; color: var(--muted); }
.copy { font-family: var(--mono); font-size: 13px; background: var(--panel-2); padding: 6px 10px; border-radius: 4px; border: 1px solid var(--border); word-break: break-all; }
.info-doc h2 { margin-top: 24px; }
.info-doc li { margin-bottom: 5px; }
.formula { font-family: var(--mono); background: var(--panel-2); border: 1px solid var(--border); border-radius: 4px; padding: 8px 12px; margin: 6px 0 12px; font-size: 13px; white-space: pre-wrap; }
.lbl-icon { display: inline-flex; gap: 6px; align-items: center; }
.lbl-icon svg { width: 15px; height: 15px; }
ul.plain { list-style: none; padding: 0; margin: 0; }
ul.plain li { display: flex; gap: 8px; align-items: flex-start; padding: 6px 0; border-bottom: 1px dashed var(--border); font-size: 13.5px; }
ul.plain li svg { width: 15px; height: 15px; flex: none; margin-top: 2px; color: var(--navy); }
ul.plain li:last-child { border-bottom: none; }

/* ---------- сегменты и аватары ---------- */
.avatar { display: block; flex: none; border-radius: 50%; }
.segtabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.segtab { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 92px; padding: 8px 12px 6px; border: none; border-bottom: 3px solid transparent; border-radius: 4px 4px 0 0; background: #e4e8ee; cursor: pointer; font: inherit; font-size: 12.5px; font-weight: 600; color: #4e5868; }
.segtab:hover { background: #d9dee6; }
.segtab.active { background: #fff; color: var(--heading); border-bottom-color: var(--navy); box-shadow: var(--shadow); }
.segtab small { font-size: 10.5px; color: var(--muted); font-weight: 400; }
.seghead { display: flex; gap: 14px; align-items: center; margin-bottom: 12px; }
.seghead h2 { margin: 0 0 6px; }
.segcheck { display: inline-flex; align-items: center; gap: 6px; padding: 5px 9px; border: 1px solid var(--border); border-radius: 4px; background: #fff; cursor: pointer; font: inherit; font-size: 12.5px; color: var(--heading); }
.segcheck.active { border-color: var(--navy); box-shadow: 0 0 0 2px #e3e6f3; }
.detailgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; }
.detailgrid .stat { padding: 8px 12px; }
.detailgrid .s-value { font-size: 17px; }

/* предпочтения с сердечками */
.prefs { width: 100%; border-collapse: collapse; font-size: 13px; }
.prefs td { padding: 6px 4px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.prefs tr:last-child td { border-bottom: none; }
.prefs .pname { display: flex; gap: 7px; align-items: center; color: var(--text); }
.prefs .pmatch { font-size: 11px; color: var(--muted); }
.prefs-title { font-size: 11.5px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); margin: 14px 0 4px; }

/* ---------- мастер продукта ---------- */
.radiolist { display: flex; flex-wrap: wrap; gap: 6px 10px; }
.radiolist label { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border: 1px solid var(--border); border-radius: 4px; cursor: pointer; font-size: 13px; background: #fff; }
.radiolist label.on { border-color: var(--navy); box-shadow: 0 0 0 2px #e3e6f3; }
.techgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px 10px; margin-bottom: 10px; }
.techopt { display: flex; flex-direction: column; gap: 3px; padding: 6px 8px; border-radius: 4px; cursor: pointer; font-size: 12.5px; }
.techopt .tline { display: flex; gap: 6px; align-items: center; color: var(--heading); font-weight: 600; }
.techopt.off { cursor: not-allowed; }
.techopt.off .tline { color: var(--faint); font-weight: 400; }
.techopt.on { background: #f1f3f9; }
.attrchip { display: inline-flex; align-items: center; gap: 4px; padding: 1px 7px; border-radius: 3px; font-size: 11px; font-weight: 700; color: #fff; align-self: flex-start; }
.attrchip svg { width: 11px; height: 11px; }
.segcard { display: flex; gap: 12px; align-items: center; padding: 12px; border: 1px solid var(--border); border-radius: 4px; }
.colorgrid { display: flex; flex-wrap: wrap; gap: 6px; }
.colorgrid label { display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px; border: 2px solid var(--border); border-radius: 4px; cursor: pointer; font-size: 12.5px; background: #fff; }
.stylegrid { display: flex; flex-wrap: wrap; gap: 8px; }
.stylegrid button { position: relative; width: 92px; border: 2px solid var(--border); border-radius: 6px; background: #fff; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 4px 4px 6px; font-size: 11.5px; color: var(--heading); line-height: 1.2; }
.stylegrid button.on { border-color: var(--navy); box-shadow: 0 0 0 2px #e3e6f3; }
.steps { display: flex; gap: 6px; margin-bottom: 14px; }

/* ---------- каналы: места для людей ---------- */
.chslot { padding: 8px 0; }
.chslot .chname { display: flex; gap: 6px; align-items: center; font-size: 13px; font-weight: 700; color: var(--heading); margin-bottom: 5px; }
.chslot .chname svg { width: 13px; height: 13px; color: var(--muted); }
.chslot .chcost { display: block; font-weight: 400; font-size: 11px; color: var(--muted); }
.slot { width: 24px; height: 24px; border-radius: 3px; display: grid; place-items: center; background: #e9ecf1; color: #b6bfcb; flex: none; }
.slot svg { width: 15px; height: 15px; }
.slot.on { background: var(--slot); color: #fff; cursor: pointer; }
.slot.on:hover { background: var(--red); }
.missing { font-size: 11px; color: var(--faint); white-space: nowrap; }
.freebox { display: flex; gap: 10px; align-items: center; padding: 8px 12px; border-radius: 4px; background: #e9ecf1; font-weight: 600; color: var(--heading); margin-bottom: 4px; font-size: 13px; }
.collapse-head { display: flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; color: var(--heading); cursor: pointer; margin-bottom: 4px; background: none; border: none; padding: 0; font-family: inherit; }
.collapse-head svg { width: 14px; height: 14px; }
.total-line .s-label { font-size: 12px; color: var(--muted); }
.total-line .s-value { font-size: 22px; font-weight: 700; color: var(--heading); }

/* ---------- продукт ---------- */
.product-hero { text-align: center; }
.product-hero h2 { font-size: 24px; margin-bottom: 4px; }
.awaretiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 8px; }
.awaretile { background: var(--stat); border-radius: 4px; padding: 8px 10px; display: flex; flex-direction: column; gap: 2px; }
.awaretile .aw-name { display: flex; gap: 6px; align-items: center; font-size: 12px; color: var(--muted); }
.awaretile .aw-val { font-size: 24px; font-weight: 700; color: var(--green); font-variant-numeric: tabular-nums; }
.awaretile .aw-val.low { color: var(--orange); }
.awaretile .aw-val.zero { color: var(--faint); }
.techchips { display: flex; flex-wrap: wrap; gap: 6px; }
.techchip { display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px; border-radius: 3px; font-size: 12px; font-weight: 600; background: #f1f3f7; }
.techchip svg { width: 12px; height: 12px; }
.block-title { display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 700; color: var(--heading); margin: 0 0 10px; }
.block-title svg { width: 22px; height: 22px; }

/* ---------- панель ---------- */
.dash-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 8px; }
.complogo { display: flex; align-items: center; gap: 10px; text-align: right; }
.complogo .cl-name { font-weight: 800; color: var(--heading); font-size: 15px; }
.complogo .cl-slogan { font-size: 12px; color: var(--muted); font-style: italic; }
.logo-mark { display: grid; place-items: center; border-radius: 10px; color: #fff; flex: none; }
.cashgrid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 16px; }
.advgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.advcard { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px 16px; display: flex; flex-direction: column; }
.advcard .adv-head { display: flex; gap: 10px; align-items: center; margin-bottom: 10px; }
.advcard .adv-head b { color: var(--heading); font-size: 15px; }
.advitem { margin-bottom: 10px; font-size: 13px; }
.advitem .adv-kind { display: flex; gap: 6px; align-items: center; font-weight: 700; color: var(--heading); font-size: 12.5px; margin-bottom: 2px; }
.advitem .adv-kind svg { width: 14px; height: 14px; }
.advitem .adv-kind.warn svg { color: var(--red, #e53935); }
.advitem .adv-kind.ok svg { color: var(--green); }
.advitem .adv-kind.info svg { color: var(--orange); }
.advcard .adv-link { margin-top: auto; text-align: right; font-size: 12.5px; font-weight: 600; }
.goal { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--border); }
.goal:last-child { border-bottom: none; }

/* ---------- отчёт о продажах ---------- */
.prodtabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.prodtab { display: flex; align-items: center; gap: 8px; padding: 6px 12px; border: none; border-bottom: 3px solid transparent; border-radius: 4px 4px 0 0; background: #e4e8ee; cursor: pointer; font: inherit; font-weight: 700; color: #4e5868; }
.prodtab.active { background: #fff; color: var(--heading); border-bottom-color: var(--navy); box-shadow: var(--shadow); }
.assign-row { display: flex; justify-content: space-between; align-items: center; padding: 7px 0; border-bottom: 1px solid var(--border); font-size: 13px; }
.assign-row:last-child { border-bottom: none; }
.people { display: inline-flex; gap: 3px; }
.people .slot { width: 18px; height: 18px; }
.people .slot svg { width: 12px; height: 12px; }
.segsum { display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: center; }
.segsum .ss-name { display: flex; gap: 8px; align-items: center; font-size: 22px; font-weight: 800; color: var(--heading); }
.segsum .ss-val { font-size: 20px; font-weight: 700; color: var(--heading); text-align: center; }
.segsum .ss-lbl { font-size: 11.5px; color: var(--muted); text-align: center; }
.mixline { display: grid; grid-template-columns: 30px 64px minmax(0, 1fr); gap: 10px; align-items: center; margin-bottom: 12px; }
.mixline .mx-icon svg { width: 26px; height: 26px; }
.mixline .mx-icon.good { color: var(--green); }
.mixline .mx-icon.bad { color: var(--orange); }
.mixline .mx-val { font-weight: 700; color: var(--heading); line-height: 1.1; }
.mixline .mx-val small { display: block; font-weight: 400; font-size: 11px; }
.mixtrack { height: 18px; background: #e6e9ee; border-radius: 3px; overflow: hidden; }
.mixtrack > div { height: 100%; border-radius: 3px; }
.awline { display: flex; gap: 10px; align-items: center; margin-bottom: 8px; font-size: 13px; }
.awline svg { width: 22px; height: 22px; flex: none; }
.awline .up { color: var(--green); }
.awline .down { color: var(--red); }
.awline b { color: var(--heading); font-size: 15px; display: block; line-height: 1.1; }
.awline small { font-size: 11px; }
.mixbar { position: relative; height: 18px; min-width: 86px; border-radius: 3px; background: #e6e9ee; overflow: hidden; }
.mixbar > div { position: absolute; inset: 0 auto 0 0; border-radius: 3px; opacity: 0.85; }
.mixbar > span { position: relative; display: block; padding-left: 6px; font-size: 11.5px; font-weight: 700; line-height: 18px; color: var(--heading); }

/* ---------- поставщики, решения, разное ---------- */
.supplier { border: 2px solid var(--border); border-radius: 4px; padding: 12px; margin-bottom: 8px; cursor: pointer; background: #fff; }
.supplier.on { border-color: var(--accent); background: var(--accent-soft); }
.optcard { display: flex; flex-direction: column; margin-bottom: 0; }
.optcard h2 { font-size: 17px; margin-top: 0; overflow-wrap: anywhere; hyphens: auto; }
.optcard p { flex: 1; }
.optcard .btn { align-self: flex-start; }
.optcard.chosen { box-shadow: 0 0 0 3px var(--accent-soft); border: 1px solid var(--accent); }
.logopick { display: grid; grid-template-columns: repeat(auto-fill, minmax(48px, 1fr)); gap: 6px; }
.logopick button { aspect-ratio: 1; border: 2px solid var(--border); border-radius: 8px; background: #fff; cursor: pointer; display: grid; place-items: center; padding: 0; }
.logopick button.on { border-color: var(--navy); box-shadow: 0 0 0 2px #e3e6f3; }
.thumb { display: inline-grid; place-items: center; }
.thumb.up { color: var(--green); }
.thumb.down { color: var(--orange); }

@media (max-width: 1280px) {
  .bottombar .brand { display: none; }
  .navitem { min-width: 64px; padding: 0 10px; }
}
@media (max-width: 1100px) {
  :root { --sidebar: 260px; }
  .grid4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid3, .advgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid2, .inbox, .cashgrid { grid-template-columns: minmax(0, 1fr); }
  .techgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .main { padding: 20px 20px 36px; }
  .navitem { min-width: 54px; padding: 0 6px; font-size: 11px; }
  .bottombar .quarter { padding: 8px 12px; }
}
@media (max-width: 820px) {
  :root { --sidebar: 100%; }
  .app { grid-template-columns: 1fr; }
  .sidebar { position: static; height: auto; max-height: none; border-right: none; border-bottom: 1px solid var(--border); }
  .main { padding: 18px 16px 30px; }
  .bottombar .quarter, .bottombar .brand { display: none; }
  .bottombar nav { justify-content: space-between; overflow-x: auto; }
  .navitem { min-width: 56px; padding: 0 6px; font-size: 10.5px; }
  .grid2, .grid3, .grid4, .inbox, .advgrid, .cashgrid { grid-template-columns: 1fr; }
  .options, .techgrid { grid-template-columns: 1fr; }
  .segsum { grid-template-columns: 1fr 1fr; }
}

/* Анализ рынка: точные данные исследования (звезда), профиль сегмента */
.segav { position: relative; display: inline-block; }
.segav .segstar { position: absolute; left: 50%; bottom: -8px; transform: translateX(-50%); }
.segstar { display: inline-flex; color: #f5b800; }
.segstar svg, .accurate > svg { fill: #f5b800; stroke: #f5b800; }
.accurate { display: flex; gap: 12px; align-items: center; color: #f5b800; margin-bottom: 8px; }
.accurate h2 { color: var(--heading); }
.prefpair { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 2px 0; font-size: 12.5px; }
.segprofile p { line-height: 1.6; }
.segprofile h4 { margin: 14px 0 4px; }
.seglist { margin: 0 0 6px; padding-left: 20px; }
.seglist li { margin-bottom: 3px; }

/* Панель: устойчивое развитие в четыре колонки */
.esgcols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--border); border-radius: 6px; overflow: hidden; margin-top: 12px; }
.esgcols > div { padding: 0 0 10px; border-right: 1px solid var(--border); }
.esgcols > div:last-child { border-right: none; }
.esgcols .ec-h { background: #eef1f5; padding: 10px 12px; font-weight: 700; color: var(--heading); font-size: 13px; }
.esgcols .ec-v { padding: 10px 12px; font-size: 28px; font-weight: 400; color: var(--heading); border-bottom: 1px solid var(--border); }
.esgcols p { margin: 8px 12px 0; font-size: 12.5px; line-height: 1.35; color: var(--text); }
.esgcols .ec-bad .ec-v { color: #c62828; background: #fdecec; }
.esgcols .ec-good .ec-v { color: #2e7d32; background: #eaf6ea; }
.ec-pill { display: inline-flex; align-items: center; gap: 6px; background: #e4e8ee; border-radius: 12px; padding: 2px 10px; font-size: 13px; }
@media (max-width: 900px) { .esgcols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Рейтинг: пьедестал и «Ваши результаты» */
.center { text-align: center; }
.score-top { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: end; gap: 20px; }
.podium { display: flex; align-items: flex-end; justify-content: center; gap: 22px; padding-top: 10px; }
.pod { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 130px; }
.pod-name { font-weight: 700; color: var(--heading); text-align: center; font-size: 15px; }
.pod-score { font-size: 24px; font-weight: 700; color: var(--heading); }
.pod-block { width: 92px; display: grid; place-items: center; color: #fff; font-size: 64px; font-weight: 800; background: linear-gradient(135deg, var(--pc1) 50%, var(--pc2) 50%); }
.pod1 .pod-block { height: 190px; --pc1: #ffcb4c; --pc2: #f2b52b; }
.pod2 .pod-block { height: 120px; --pc1: #dcdcdc; --pc2: #c4c4c4; }
.pod3 .pod-block { height: 92px; --pc1: #9b8aa8; --pc2: #8a7896; }
.rankbox { text-align: center; padding-bottom: 60px; }
.rankbox .rk { font-size: 46px; font-weight: 800; color: var(--heading); }
.scoretbl th, .scoretbl td { text-align: left; }
.scoretbl .wrow td { background: #f4f6f9; font-weight: 600; }
.warnc { color: var(--orange); }
@media (max-width: 800px) { .score-top { grid-template-columns: 1fr; } .pod { width: 96px; } .pod-block { width: 70px; font-size: 44px; } }

/* Конец игры: тёмная полоса сверху и карточка в боковой панели */
.overbar { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; background: #2c3e50; color: #fff; padding: 12px 20px; font-size: 18px; }
.overbar .btn { font-size: 14px; }
.overcard { display: flex; flex-direction: column; align-items: center; gap: 10px; background: #e4e8ee; border-radius: 6px; padding: 22px 12px; color: var(--heading); font-size: 16px; }
.overcheck { width: 56px; height: 56px; border-radius: 50%; background: #4caf50; color: #fff; display: grid; place-items: center; }

/* Отчёт о рынке: цена × объём, таблицы по сегментам с полосами долей, стратегии конкурентов */
.pvchart { display: grid; grid-template-columns: 18px 36px minmax(0, 1fr); height: 300px; }
.pv-ylabel { writing-mode: vertical-rl; transform: rotate(180deg); text-align: center; font-size: 11px; color: var(--muted); }
.pv-axis { display: flex; flex-direction: column; justify-content: space-between; height: 250px; font-size: 10.5px; color: var(--muted); text-align: right; padding-right: 6px; margin-top: -6px; }
.pv-plot { position: relative; height: 250px; }
.pv-grid { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-between; }
.pv-grid i { border-top: 1px solid #e6e9ee; display: block; }
.pv-bars { position: absolute; inset: 0; display: flex; align-items: flex-end; }
.pv-col { position: relative; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; min-width: 3px; flex-basis: 0; }
.pv-bar { border-right: 1px solid rgba(255,255,255,.6); }
.pv-name { position: absolute; top: 100%; left: 0; right: 0; text-align: center; font-size: 10.5px; color: var(--text); margin-top: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pv-xlabel { position: absolute; top: calc(100% + 24px); left: 0; right: 0; text-align: center; font-size: 11px; font-weight: 600; color: var(--muted); }
.segtbl th.segth { text-align: left; font-size: 12.5px; vertical-align: bottom; }
.sharecell { position: relative; }
.sharecell .sc-bar { position: absolute; left: 0; top: 4px; bottom: 4px; background: #d6eed9; max-width: 100%; }
.sharecell span { position: relative; white-space: nowrap; }
.sharecell small { font-size: 10.5px; color: var(--muted); }
.strat-head { display: flex; gap: 14px; align-items: center; }
.strat-title { color: var(--heading); font-size: 15px; }
.kchip { display: inline-flex; flex-direction: column; background: #e8ecf1; border-radius: 4px; padding: 4px 12px; color: var(--heading); font-size: 13px; }
.kchip small { color: #5d6878; font-size: 12px; }
.strat-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 14px; }
.strat-row { display: flex; justify-content: space-between; align-items: center; padding: 5px 10px; border-bottom: 1px solid #edf0f3; font-size: 13.5px; }
@media (max-width: 800px) { .strat-cols { grid-template-columns: 1fr; } }
.esgnote { margin-top: 12px; padding: 12px 14px; border-radius: 4px; font-size: 13px; line-height: 1.45; }
.esgnote b:first-child { display: block; font-size: 15px; margin-bottom: 2px; }
.esgnote.bad { background: #fde7e7; color: #b3261e; }
.esgnote.good { background: #e6f4e7; color: #2e7d32; }

/* Джетпак: анимация эффектов (на маленьких картинках выключена) */
.jetpack svg { overflow: visible; }
.jetpack .jpfl { transform-box: fill-box; transform-origin: 50% 0; animation: jpflick .14s ease-in-out infinite alternate; }
.jetpack .jpfl.b { animation-duration: .19s; animation-delay: -.07s; }
@keyframes jpflick { from { transform: scale(1, 1); } to { transform: scale(.9, 1.14); } }
.jetpack .jpeco { transform-box: fill-box; transform-origin: 50% 0; animation: jpeco 1.6s ease-in-out infinite alternate; }
@keyframes jpeco { from { transform: scale(1, .94); opacity: .85; } to { transform: scale(1.06, 1.05); opacity: 1; } }
.jetpack .jpleaf { animation: jpleaf 2.4s linear infinite; }
@keyframes jpleaf { from { transform: translate(0, 0); opacity: 1; } to { transform: translate(1.5px, 12px); opacity: 0; } }
.jetpack .jpblink { animation: jpblink 1.6s steps(1) infinite; }
.jetpack .jpblink.w { animation-duration: .9s; }
@keyframes jpblink { 0%, 55% { opacity: 1; } 56%, 100% { opacity: .15; } }
.jetpack .jpspark { transform-box: fill-box; transform-origin: center; animation: jpspark 2.2s ease-in-out infinite; }
@keyframes jpspark { 0%, 100% { transform: scale(.25); opacity: .15; } 50% { transform: scale(1); opacity: 1; } }
.jetpack .jpsteam { animation: jpsteam 2s ease-in-out infinite; }
@keyframes jpsteam { 0% { transform: translate(0, 1px); opacity: 0; } 40% { opacity: .9; } 100% { transform: translate(0, -2px); opacity: 0; } }
.jetpack svg.still * { animation: none !important; }
@media (prefers-reduced-motion: reduce) { .jetpack svg * { animation: none !important; } }

/* Редактор внешнего вида джетпака */
.lookedit { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 20px; align-items: start; text-align: left; }
.lookprev { position: sticky; top: 0; display: grid; justify-items: center; gap: 6px; background: radial-gradient(circle at 50% 42%, #eef1f8, #fff 72%); border-radius: 10px; padding: 8px 6px 12px; }
/* Технологический уровень продукта: звёзды */
.techstars { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); }
.ts-stars { display: inline-flex; gap: 1px; }
.ts-stars i { font-style: normal; color: #d5d9e0; font-size: 15px; line-height: 1; }
.ts-stars i.on { color: #ffb300; }
.lookprog { width: 100%; display: grid; gap: 5px; font-size: 12.5px; padding: 0 6px; }
.lookprog small { line-height: 1.35; }
.lookgroup { margin-bottom: 14px; }
.lookgroup h4 { margin: 0 0 6px; text-align: left; }
.lookbadge { position: absolute; top: 3px; right: 4px; font-style: normal; display: inline-flex; }
.lookhint { display: flex; align-items: center; gap: 6px; font-size: 12.5px; margin: -4px 0 12px; }
.lookhint svg { width: 15px; height: 15px; flex: none; }
.paintrow { display: grid; grid-template-columns: 78px minmax(0, 1fr); gap: 8px; align-items: center; margin-bottom: 6px; }
.paintrow .pz { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.swatches { display: flex; flex-wrap: wrap; gap: 5px; }
.sw { position: relative; width: 22px; height: 22px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px #cfd5dd; cursor: pointer; padding: 0; }
.sw.on { box-shadow: 0 0 0 2px var(--navy); }
.sw.taken::after { content: ''; position: absolute; inset: 5px; border-radius: 50%; border: 2px solid rgba(255,255,255,.9); background: rgba(0,0,0,.35); }
.sw.custom { display: inline-block; overflow: hidden; background: conic-gradient(#f44336, #ffeb3b, #4caf50, #00bcd4, #3f51b5, #e91e63, #f44336); }
.sw.custom input { opacity: 0; width: 100%; height: 100%; border: 0; padding: 0; cursor: pointer; }
.lookunlock { color: #b26a00; }
@media (max-width: 760px) { .lookedit { grid-template-columns: 1fr; } .lookprev { position: static; } }
.keyinput { font-family: var(--mono); letter-spacing: 0.08em; text-transform: uppercase; font-size: 17px; font-weight: 700; }
