/* Раскрытия виджетов: крупное число, столбики, рейтинги, плитки */
.wv{display:flex;flex-direction:column;gap:12px;color:var(--wv-ink,#172b39)}
.wv-hero{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 10px;padding:14px 16px;border-radius:18px;background:linear-gradient(120deg,#e7f1ef,#f1f6f4)}
.wv-hero.wv-blue{background:linear-gradient(120deg,#e3edf9,#f0f5fb)}.wv-hero.wv-amber{background:linear-gradient(120deg,#f8ecd6,#fbf4e6)}
.wv-hero.wv-green{background:linear-gradient(120deg,#e0f2e8,#eef7f1)}.wv-hero.wv-orange{background:linear-gradient(120deg,#fae3d6,#fcf0e8)}
.wv-hero.wv-teal{background:linear-gradient(120deg,#dff1f2,#eef7f7)}
.wv-big{font-size:34px;line-height:38px;font-weight:600;letter-spacing:-1px}
.wv-cap{font-size:14px;color:var(--wv-soft,#3d5260);flex:1 1 140px}
.wv-trust{font-size:11px;padding:2px 9px;border-radius:10px;font-weight:600}
.wv-trust-ok{background:#cfeadb;color:#1f6b45}.wv-trust-approx{background:#f5e2b8;color:#8a5a00}
.wv-why{flex-basis:100%;font-size:12px;color:var(--wv-soft,#5a6a75)}.wv-why summary{cursor:pointer;width:max-content;list-style:none;color:#2f6fb8}
.wv-why summary::-webkit-details-marker{display:none}.wv-why p{margin:6px 0 0;line-height:17px}
.wv-tiles{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:8px}
.wv-tile{display:flex;flex-direction:column;gap:2px;padding:10px 14px;border-radius:14px;background:var(--wv-card,#f3f2ee)}
.wv-tile strong{font-size:22px;line-height:26px;font-weight:600}.wv-tile small{font-size:11px;color:var(--wv-soft,#5a6a75)}.wv-tile-cap{font-size:12px;color:var(--wv-soft,#5a6a75)}
.wv-tile.blue{background:#e6eff9}.wv-tile.amber{background:#f9eed8}.wv-tile.green{background:#e3f3ea}.wv-tile.red{background:#f9e1de}
.wv-h{margin:6px 0 4px;font-size:12px;font-weight:600;color:var(--wv-soft,#5a6a75);text-transform:uppercase;letter-spacing:.4px}
.wv-chart{display:flex;flex-direction:column;gap:4px}
.wv-bars{display:flex;align-items:flex-end;gap:3px;height:96px;padding:6px 8px 0;border-radius:14px;background:var(--wv-card,#f3f2ee)}
.wv-bars i{flex:1;min-width:3px;border-radius:4px 4px 1px 1px;background:#9fcfc9;transition:filter .15s}.wv-bars i:hover{filter:brightness(.88)}
.wv-bars.wv-teal i{background:#a6d3cf}.wv-bars.wv-teal i.wv-last{background:#008d98}
.wv-bars.wv-blue i{background:#b5cdee}.wv-bars.wv-blue i.wv-last{background:#2f6fb8}
.wv-bars.wv-green i{background:#b4dfc6}.wv-bars.wv-green i.wv-last{background:#2ca570}
.wv-axis{display:flex;justify-content:space-between;font-size:11px;color:var(--wv-mute,#7a8893);padding:0 4px}
.wv-rank{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:7px}
.wv-row{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr) auto;align-items:center;gap:10px;font-size:13px}
.wv-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.wv-track{height:10px;border-radius:5px;background:var(--wv-track,#ebeae6);overflow:hidden}.wv-track i{display:block;height:100%;border-radius:5px;background:#33a9a2}
.wv-rank.wv-green .wv-track i{background:#2ca570}.wv-rank.wv-orange .wv-track i{background:#ef8a5c}.wv-rank.wv-teal .wv-track i{background:#33a9a2}
.wv-row.wv-bad .wv-track i{background:#d9534f}.wv-row.wv-bad .wv-val{color:#b3302c}
.wv-val{min-width:54px;text-align:right;font-variant-numeric:tabular-nums;font-weight:600}
.wv-more{align-self:flex-start;margin-top:6px;border:0;background:var(--wv-btn,#eceae4);border-radius:14px;height:28px;padding:0 12px;font-size:12px;cursor:pointer}
.wv-more:hover{background:var(--wv-btn-h,#e0ddd5)}
.wv-cards{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:6px}
.wv-card{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 14px;border-radius:14px;background:var(--wv-card,#f3f2ee);text-align:left}
.wv-card b{display:block;font-size:13px;font-weight:600}.wv-card small{display:block;margin-top:2px;font-size:12px;color:var(--wv-soft,#5a6a75);line-height:16px}
.wv-card-r{display:flex;flex-direction:column;align-items:flex-end;gap:4px;white-space:nowrap}.wv-card-r strong{font-size:15px}
.wv-card-btn{width:100%;border:0;cursor:pointer;font:inherit;color:inherit}.wv-card-btn:hover{background:var(--wv-card-h,#e8e6e0)}.wv-go{color:#2f6fb8;font-size:18px}
.wv-chip{display:inline-block;font-size:11px;font-weight:600;padding:2px 9px;border-radius:10px;background:#e3e8ea;color:#344655}
.wv-chip-blue{background:#d9e8fa;color:#1f5a9e}.wv-chip-amber{background:#f7e3b6;color:#8a5a00}.wv-chip-green{background:#cfeadb;color:#1f6b45}
.wv-chip-red{background:#f6d4d0;color:#a3302b}.wv-chip-teal{background:#cde9ea;color:#0b6a72}
.wv-orders{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:5px}
.wv-order{display:grid;grid-template-columns:90px auto 1fr;align-items:center;gap:10px;padding:8px 12px;border-radius:12px;background:var(--wv-card,#f3f2ee);font-size:13px}
.wv-order span:last-child{text-align:right;color:var(--wv-soft,#5a6a75)}
.wv-split{display:flex;height:16px;border-radius:8px;overflow:hidden;gap:2px;background:var(--wv-track,#ebeae6)}.wv-split i{display:block}
.wv-c0{background:#33a9a2}.wv-c1{background:#e9b44c}.wv-c2{background:#9fb4c4}
.wv-legend{list-style:none;margin:8px 0 0;padding:0;display:flex;flex-direction:column;gap:5px;font-size:13px}
.wv-legend li{display:grid;grid-template-columns:12px 1fr auto 42px;align-items:center;gap:8px}.wv-legend i{width:10px;height:10px;border-radius:50%}
.wv-legend small{color:var(--wv-mute,#7a8893);text-align:right}
.wv-note{margin:0;font-size:12px;color:var(--wv-mute,#7a8893);line-height:17px}.wv-empty{margin:6px 0;color:var(--wv-mute,#7a8893);font-size:13px}
.wv-group{display:flex;flex-direction:column;gap:6px}

/* Примеры в демо-кабинете: кошелёк, фотоотчёт, фулфилмент */
.ds-sample{margin:0;padding:8px 12px;border-radius:12px;background:#fdf1d6;color:#8a5a00;font-size:12px;line-height:17px}
.ds-plus{color:#1f8a5a}
.ds-gallery{display:grid;gap:8px;min-height:0}
.ds-gallery figure{margin:0;display:flex;flex-direction:column;gap:4px;min-width:0}
.ds-gallery .ds-photo-box{position:relative;aspect-ratio:1;border-radius:12px;overflow:hidden;box-shadow:0 1px 4px #10263722;cursor:pointer;border:0;padding:0;background:none;display:block;width:100%}
.ds-photo-box .ds-photo{position:absolute;inset:0;width:100%;height:100%;display:block}
.ds-gallery figcaption{font-size:12px;color:var(--wv-soft,#3d5260);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

/* Просмотр фото внутри «Фотоотчёта»: без затемнения, в той же рабочей области */
.ds-pv-inline{padding:12px 0}
.ds-fixed{flex:none}
.ds-scroll{flex:1 1 auto;min-height:60px;overflow-y:auto;overflow-x:hidden;padding-right:8px;margin-right:-2px;scrollbar-width:thin;scrollbar-gutter:stable}
.ds-scroll::-webkit-scrollbar{width:6px}
.ds-scroll::-webkit-scrollbar-track{background:transparent}
.ds-scroll::-webkit-scrollbar-thumb{background:#c7cac4;border-radius:3px}
.ds-scroll::-webkit-scrollbar-thumb:hover{background:#b3b6b0}
.ds-ycl-table{width:100%;border-collapse:collapse;font-size:12px}
.ds-ycl-table th{position:sticky;top:0;background:#ece9e2;padding:6px;font-weight:500;font-size:11px;text-align:left;color:#435464}
.ds-ycl-table td{padding:6px;border-bottom:1px solid #e6e5e1;vertical-align:middle;white-space:nowrap}
.ds-ycl-sum{font-weight:600;text-align:right}
.ds-ycl-badge{display:inline-block;font-size:11px;font-weight:600;padding:2px 9px;border-radius:10px}
.ds-ycl-green{background:#cfeadb;color:#1f6b45}
.ds-ycl-red{background:#f6d4d0;color:#a3302b}
.ds-ycl-total td{background:#fdf1b8;font-weight:600}
.ds-fixed+.ds-scroll{margin-top:12px}
.ds-pv-stage{display:flex;flex-direction:column;align-items:center;gap:10px;width:100%}
.ds-pv-photo{position:relative;cursor:pointer;width:100%;aspect-ratio:160/110;max-height:56vh;margin:0 auto;box-sizing:border-box}
.ds-pv-photo svg{width:100%;height:100%;display:block;border-radius:14px;box-shadow:0 6px 18px #10263733}
.ds-pv-prev,.ds-pv-next,.ds-pv-close{position:absolute;width:36px;height:36px;border-radius:50%;border:0;background:#ffffffd0;font-size:18px;cursor:pointer;box-shadow:0 2px 6px #10263733}
.ds-pv-prev:hover,.ds-pv-next:hover,.ds-pv-close:hover{background:#fff}
.ds-pv-prev{left:10px;top:50%;transform:translateY(-50%)}
.ds-pv-next{right:10px;top:50%;transform:translateY(-50%)}
.ds-pv-close{top:10px;right:10px;width:30px;height:30px;font-size:16px}
.ds-pv-caption{display:flex;gap:10px;align-items:center;color:var(--wv-soft,#3d5260);font-size:13px;white-space:nowrap}
.ds-pv-caption b{opacity:.75;font-weight:500}

/* ---- темы: панель раскрытия и её содержимое подстраиваются под выбранную тему ---- */
html[data-theme="cream"] #widget-panel{background:#fffaebf8;border-color:#e6dcc0;--wv-card:#f4eedb;--wv-track:#e8e0c8;--wv-btn:#efe7d0;--wv-btn-h:#e6dcc0;--wv-card-h:#ede5cd}
html[data-theme="blue"] #widget-panel{background:#eef4f9f8;border-color:#c7d6e3;--wv-card:#e3ecf4;--wv-track:#d3e0ea;--wv-btn:#dbe6ef;--wv-btn-h:#cddbe7;--wv-card-h:#d8e4ee}
html[data-theme="bw"] #widget-panel{background:#f4f4f2f8;border-color:#d4d4d1;--wv-card:#eaeae8;--wv-track:#dcdcd9;--wv-btn:#e2e2df;--wv-btn-h:#d6d6d3;--wv-card-h:#e0e0dd}

html[data-theme="graphite"] #widget-panel{background:#232a30f8;color:#e8eef3;border-color:#3d4852;box-shadow:0 16px 40px #00000066;
 --wv-ink:#eef3f6;--wv-soft:#b4c3ce;--wv-mute:#8fa1ae;--wv-card:#2f3841;--wv-track:#3b4650;--wv-btn:#35404a;--wv-btn-h:#415060;--wv-card-h:#38434d}
html[data-theme="graphite"] #widget-panel h2,html[data-theme="graphite"] #widget-panel h4,html[data-theme="graphite"] #widget-panel b,html[data-theme="graphite"] #widget-panel strong{color:var(--wv-ink)}
html[data-theme="graphite"] #widget-panel .soon-kicker,html[data-theme="graphite"] #widget-panel .widget-coverage,html[data-theme="graphite"] #widget-panel small{color:var(--wv-soft)}
html[data-theme="graphite"] #widget-panel .wv-hero{background:linear-gradient(120deg,#26424a,#2b3a41)}
html[data-theme="graphite"] #widget-panel .wv-hero.wv-blue{background:linear-gradient(120deg,#243a55,#2a3646)}
html[data-theme="graphite"] #widget-panel .wv-hero.wv-amber{background:linear-gradient(120deg,#4a3d22,#3a3629)}
html[data-theme="graphite"] #widget-panel .wv-hero.wv-green{background:linear-gradient(120deg,#23473a,#2a3d38)}
html[data-theme="graphite"] #widget-panel .wv-hero.wv-orange{background:linear-gradient(120deg,#52362a,#3d3430)}
html[data-theme="graphite"] #widget-panel .wv-tile.blue{background:#263a54}html[data-theme="graphite"] #widget-panel .wv-tile.amber{background:#473b22}
html[data-theme="graphite"] #widget-panel .wv-tile.green{background:#234337}html[data-theme="graphite"] #widget-panel .wv-tile.red{background:#4c2b29}
html[data-theme="graphite"] #widget-panel .wv-trust-ok{background:#1f4a35;color:#9be0bb}html[data-theme="graphite"] #widget-panel .wv-trust-approx{background:#5a4513;color:#f2cf80}
html[data-theme="graphite"] #widget-panel .wv-chip{background:#3b4650;color:#d5e0e8}
html[data-theme="graphite"] #widget-panel .wv-chip-blue{background:#27466e;color:#a9cdf5}html[data-theme="graphite"] #widget-panel .wv-chip-amber{background:#5a4513;color:#f2cf80}
html[data-theme="graphite"] #widget-panel .wv-chip-green{background:#1f4a35;color:#9be0bb}html[data-theme="graphite"] #widget-panel .wv-chip-red{background:#5c2a27;color:#f5aaa4}
html[data-theme="graphite"] #widget-panel .wv-chip-teal{background:#1d4a50;color:#9ad8de}
html[data-theme="graphite"] #widget-panel .wv-bars i{background:#4f6f73}html[data-theme="graphite"] #widget-panel .wv-bars.wv-teal i.wv-last{background:#4cc3cd}
html[data-theme="graphite"] #widget-panel .wv-bars.wv-blue i{background:#46618a}html[data-theme="graphite"] #widget-panel .wv-bars.wv-blue i.wv-last{background:#6aa6ee}
html[data-theme="graphite"] #widget-panel .wv-bars.wv-green i{background:#41705a}html[data-theme="graphite"] #widget-panel .wv-bars.wv-green i.wv-last{background:#4cd08e}
html[data-theme="graphite"] #widget-panel .ds-sample{background:#4a3d22;color:#f2cf80}
html[data-theme="graphite"] #widget-panel .wv-why summary,html[data-theme="graphite"] #widget-panel .wv-go{color:#8cc0ff}
html[data-theme="graphite"] #widget-panel .widget-tabs button{background:#35404a;color:#dbe5ec;border-color:#4a5864}
html[data-theme="graphite"] #widget-panel .widget-tabs button[aria-selected="true"]{background:#e8eef3;color:#1c2429;border-color:#e8eef3}
html[data-theme="graphite"] #widget-panel .tab-rows{background:#2c343bcc}html[data-theme="graphite"] #widget-panel .tab-row{color:#e0e8ee;border-color:#3d4852}
html[data-theme="graphite"] #widget-panel .widget-table th,html[data-theme="graphite"] #widget-panel .widget-table td{color:#dbe5ec;border-color:#3d4852}
html[data-theme="graphite"] #widget-panel .calc-trust{background:#2f3841;color:#c4d2dc}
html[data-theme="graphite"] #widget-panel .plan-timer-big{color:#eef3f6}html[data-theme="graphite"] #widget-panel .plan-timer-track{background:#3b4650}
html[data-theme="graphite"] #widget-panel .plan-item,html[data-theme="graphite"] #widget-panel .plan-steps li{color:#e0e8ee}

/* Конкуренты */
.cmp-form{display:flex;gap:8px}
.cmp-input{flex:1;min-width:0;height:38px;padding:0 14px;border:1px solid #d3dad8;border-radius:19px;background:#fff;font-size:14px;color:#172b39}
.cmp-input:focus{outline:2px solid #2f86e8;outline-offset:-1px}
.cmp-add{height:38px;padding:0 20px;border:0;border-radius:19px;background:#303639;color:#fff;font-size:14px;cursor:pointer}
.cmp-error{margin:0;color:#b3302c;font-size:13px}
.cmp-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:12px}
.cmp-card{display:flex;flex-direction:column;gap:10px;padding:14px;border-radius:16px;background:var(--wv-card,#f3f2ee)}
.cmp-head{display:flex;justify-content:space-between;align-items:center;gap:10px}.cmp-head b{display:block;font-size:15px}
.cmp-link{font-size:12px;color:#2f6fb8;text-decoration:none}.cmp-del{margin:0}
.cmp-suggest{display:flex;flex-wrap:wrap;gap:8px}.cmp-chip{border:0;cursor:pointer;font-size:12px;padding:5px 12px}
html[data-theme="graphite"] #widget-panel .cmp-input{background:#2f3841;border-color:#4a5864;color:#eef3f6}
html[data-theme="graphite"] #widget-panel .cmp-add{background:#e8eef3;color:#1c2429}
html[data-theme="graphite"] #widget-panel .cmp-link{color:#8cc0ff}
