/* TeamGuide — меню / каталог: хаб-плитки, аккордеон категорий, карточка позиции.
   Повторяет Jerome: .home-tile (фото на всю плитку без затемнения, текст с тенью),
   .cat-toggle с градиентной подсветкой, .dish-card с вкладками. */
.tiles{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:16px;align-items:start;}
.tile{position:relative;overflow:hidden;display:flex;flex-direction:column;justify-content:flex-end;aspect-ratio:3/4;
  background:var(--paper);border-radius:var(--radius);padding:0;text-align:left;
  box-shadow:0 14px 30px rgba(41,43,45,.24),0 3px 8px rgba(41,43,45,.14);transition:transform .15s,box-shadow .15s;}
.tile:hover{transform:translateY(-4px);box-shadow:0 20px 40px rgba(41,43,45,.3),0 5px 12px rgba(41,43,45,.18);}
.tile-bg{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;}
.tile-bg-grad{position:absolute;inset:0;}
.tile-content{position:relative;z-index:2;padding:16px 16px 18px;}
.tile-icon{color:#fff;margin-bottom:10px;filter:drop-shadow(0 1px 3px rgba(0,0,0,.85)) drop-shadow(0 2px 9px rgba(0,0,0,.6));}
.tile-icon svg{width:30px;height:30px;}
.tile-title{font-family:var(--font-head);font-size:16px;letter-spacing:.03em;text-transform:uppercase;color:#fff;text-shadow:0 1px 3px rgba(0,0,0,.85),0 2px 10px rgba(0,0,0,.6);}
.tile-teaser{margin-top:6px;font-size:12.5px;color:#fff;text-shadow:0 1px 3px rgba(0,0,0,.85),0 2px 10px rgba(0,0,0,.6);}
.tile.plain{justify-content:center;background:var(--cream);border:1px solid var(--line);aspect-ratio:auto;min-height:140px;}
.tile.plain .tile-icon{color:var(--accent-dark);filter:none;}
.tile.plain .tile-title{color:var(--ink);text-shadow:none;}
.tile.plain .tile-teaser{color:var(--ink);opacity:.65;text-shadow:none;}
@media (max-width:520px){.tiles{grid-template-columns:1fr 1fr;gap:12px;}.tile-title{font-size:14px;}.tile-teaser{font-size:11.5px;}}

.menu-search{position:relative;margin:0 0 14px;}
.menu-search .input{padding-left:40px;height:44px;border-radius:22px;background:var(--paper);}
.menu-search svg{position:absolute;left:14px;top:50%;transform:translateY(-50%);width:18px;height:18px;color:var(--muted-label);}
.quicknav{display:flex;gap:8px;overflow-x:auto;padding:2px 0 12px;margin-bottom:6px;scrollbar-width:none;}
.quicknav::-webkit-scrollbar{display:none;}

.cat-block{border-bottom:1px solid var(--line);}
.cat-toggle{width:100%;display:flex;align-items:center;gap:12px;padding:18px 6px;text-align:left;border-radius:10px;
  background:linear-gradient(90deg, rgba(var(--accent-rgb),.07) 0%, rgba(var(--accent-rgb),.02) 50%, transparent 65%);transition:background .18s;}
.cat-toggle[aria-expanded="true"]{background:linear-gradient(90deg, rgba(var(--accent-rgb),.12) 0%, rgba(var(--accent-rgb),.04) 55%, transparent 70%);}
.cat-name{font-family:var(--font-head);font-weight:500;font-size:17px;letter-spacing:.03em;text-transform:uppercase;color:var(--black);}
.cat-toggle[aria-expanded="true"] .cat-name{color:var(--accent-dark);}
.cat-alt{font-size:12px;opacity:.5;font-style:italic;}
.cat-count{font-size:11px;color:var(--muted-label);margin-left:2px;}
.cat-chevron{margin-left:auto;flex:none;width:18px;height:18px;transition:transform .2s;color:var(--accent);}
.cat-toggle[aria-expanded="true"] .cat-chevron{transform:rotate(180deg);}
.cat-panel{display:grid;grid-template-rows:0fr;transition:grid-template-rows .25s ease;}
.cat-panel > div{overflow:hidden;}
.cat-block.open .cat-panel{grid-template-rows:1fr;}
.cat-note{padding:0 4px 10px;font-size:12.5px;font-style:italic;opacity:.65;}
.menu-list{padding-bottom:10px;}
.menu-item{display:flex;align-items:baseline;justify-content:space-between;gap:16px;padding:11px 6px;border-top:1px dashed var(--line);cursor:pointer;transition:background .15s;width:100%;text-align:left;border-radius:8px;}
.menu-item:first-child{border-top:none;}
.menu-item:hover{background:var(--cream-2);}
.menu-item-main{display:flex;flex-direction:column;gap:2px;min-width:0;}
.item-name{font-size:14.5px;color:var(--ink);}
.item-alt{font-size:11.5px;opacity:.5;font-style:italic;}
.item-note{font-size:11px;color:var(--accent-dark);}
.item-price{flex:none;font-size:14px;color:var(--black);white-space:nowrap;}
.menu-item.archived{opacity:.6;}
.arch-tag{display:inline-block;margin-left:6px;font-size:10px;padding:1px 7px;border-radius:8px;background:var(--tg-s2);color:var(--tg-muted);font-weight:600;letter-spacing:.04em;text-transform:uppercase;vertical-align:2px;}

/* Карточка позиции */
.item-card{position:relative;background:var(--paper);border-radius:calc(var(--radius) + 4px);border:1px solid var(--line);padding:24px 22px 28px;box-shadow:var(--shadow);}
.fav-toggle{position:absolute;top:20px;right:20px;width:40px;height:40px;border-radius:50%;display:flex;align-items:center;justify-content:center;color:var(--ink);opacity:.55;transition:opacity .15s,color .15s;}
.fav-toggle:hover{opacity:1;}
.fav-toggle.on{color:var(--accent);opacity:1;}
.fav-toggle.on svg path{fill:var(--accent);}
.fav-toggle svg{width:22px;height:22px;}
.item-cat{font-size:12px;letter-spacing:.08em;text-transform:uppercase;color:var(--accent-dark);margin-bottom:6px;padding-right:44px;}
.item-photo{width:100%;aspect-ratio:4/3;object-fit:cover;border-radius:10px;margin:10px 0 18px;background:var(--cream-2);cursor:zoom-in;}
.item-photo-ph{width:100%;aspect-ratio:16/7;border-radius:10px;margin:10px 0 18px;display:flex;align-items:center;justify-content:center;
  background:linear-gradient(135deg,var(--cream-2),var(--cream-3));color:var(--accent-dark);opacity:.9;}
.item-photo-ph svg{width:40px;height:40px;opacity:.6;}
.item-name-row{display:flex;align-items:center;justify-content:space-between;gap:14px;}
.item-title{font-family:var(--font-head);font-weight:500;font-size:24px;color:var(--black);line-height:1.25;letter-spacing:.02em;}
.info-tile{flex:0 0 84px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;background:var(--cream);border:1px solid var(--line);border-radius:12px;padding:8px 6px;box-shadow:0 6px 16px rgba(41,43,45,.08);}
.info-tile svg{width:20px;height:20px;color:var(--accent);margin-bottom:4px;}
.info-tile b{font-family:var(--font-head);font-weight:500;font-size:14px;color:var(--black);}
.info-tile span{font-size:9.5px;color:var(--ink);opacity:.6;margin-top:3px;line-height:1.25;}
.item-alt-name{font-size:13px;opacity:.55;font-style:italic;margin-top:4px;}
.item-note-line{font-size:12.5px;color:var(--accent-dark);margin-top:6px;}
.item-price-big{font-size:22px;font-weight:700;color:var(--black);margin:10px 0 6px;}
.chips{display:flex;flex-wrap:wrap;gap:6px;}
.chip{font-size:11.5px;padding:5px 10px;border-radius:20px;background:var(--cream-2);color:var(--ink);border:1px solid var(--line);}
.item-section{margin:16px 0;}
.tabs{margin:20px 0 6px;}
.tabs-nav{display:flex;gap:8px;overflow-x:auto;padding-bottom:10px;scrollbar-width:none;}
.tabs-nav::-webkit-scrollbar{display:none;}
.tab-btn{flex:none;height:32px;padding:0 14px;border-radius:16px;border:1.5px solid var(--line);font-size:12.5px;font-weight:600;color:var(--muted-2);background:var(--paper);}
.tab-btn.active{border-color:var(--accent);background:var(--accent);color:var(--on-accent);}
.tab-panel{display:none;font-size:14.5px;line-height:1.6;color:var(--ink);padding:4px 2px;}
.tab-panel.active{display:block;}
.tab-panel p{margin:0 0 10px;}
.tab-panel ul{list-style:none;padding:0;margin:0;}
.tab-panel ul li{padding:6px 0;border-bottom:1px dashed var(--soft-line);}
.notes{margin-top:18px;}
.notes textarea{width:100%;min-height:90px;border:1.5px solid var(--line);border-radius:10px;padding:10px 12px;background:var(--paper);color:var(--ink);font-size:14px;line-height:1.45;resize:vertical;outline:none;}
.notes textarea:focus{border-color:var(--accent);}
.notes-foot{display:flex;justify-content:space-between;gap:10px;font-size:11.5px;color:var(--muted-label);margin-top:4px;}
.stop-toggle{margin-top:16px;padding:12px 14px;border-radius:12px;border:1px dashed var(--field-line);background:var(--paper-2);display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:13.5px;}
.item-nav{display:flex;justify-content:space-between;gap:10px;margin-top:16px;}
.item-nav .btn{flex:1;font-size:12px;}

/* Редактор меню */
.ed-list,.ed-cat{display:flex;flex-direction:column;gap:6px;}
.ed-cat{margin-bottom:16px;padding:10px;border-radius:var(--radius);background:var(--paper-2);border:1px solid var(--field-line);}
.ed-row{display:flex;align-items:center;gap:8px;padding:6px 6px 6px 10px;border-radius:12px;background:var(--paper);border:1px solid var(--soft-line);}
.ed-cat-head{background:var(--field);}
.ed-item.archived{opacity:.6;}
.ed-name{flex:1;min-width:0;display:flex;align-items:center;gap:10px;text-align:left;background:none;border:0;padding:4px 0;font:inherit;color:var(--black);cursor:pointer;}
span.ed-name{cursor:default;}
.ed-name > svg{width:22px;height:22px;color:var(--accent-dark);flex:none;}
.ed-name span{display:flex;flex-direction:column;min-width:0;}
.ed-name b{font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.ed-name small{font-size:11.5px;color:var(--muted-2);}
.ed-btns{display:flex;gap:4px;flex:none;}
.ed-btn{width:34px;height:34px;border-radius:10px;border:1px solid var(--field-line);background:var(--paper);color:var(--ink);display:inline-flex;align-items:center;justify-content:center;cursor:pointer;flex:none;}
.ed-btn svg{width:17px;height:17px;}
.ed-btn:hover{border-color:var(--accent);color:var(--accent-dark);}
.ed-btn.danger:hover{border-color:var(--danger);color:var(--danger-text);background:var(--danger-bg);}
.ed-btn[disabled]{opacity:.35;cursor:default;pointer-events:none;}
.ed-add{align-self:flex-start;background:none;border:1.5px dashed var(--field-line);border-radius:12px;padding:8px 12px;color:var(--accent-dark);font:inherit;font-size:13px;font-weight:600;cursor:pointer;}
.ed-add:hover{border-color:var(--accent);}
.ed-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;}
.icon-pick{display:flex;flex-wrap:wrap;gap:6px;}
.icon-opt{margin:0 !important;cursor:pointer;}
.icon-opt input{position:absolute;opacity:0;pointer-events:none;}
.icon-opt span{display:inline-flex;width:42px;height:42px;align-items:center;justify-content:center;border-radius:12px;border:1.5px solid var(--field-line);background:var(--paper);color:var(--ink);}
.icon-opt span svg{width:22px;height:22px;}
.icon-opt input:checked + span{border-color:var(--accent);background:rgba(var(--accent-rgb),.1);color:var(--accent-dark);}
.icon-opt input:focus-visible + span{outline:2px solid var(--accent);outline-offset:2px;}
.tab-ed{padding:10px;border-radius:12px;background:var(--field);margin-bottom:8px;}
.tab-ed .inline-row{margin-bottom:6px;}
.tab-ed textarea{min-height:64px;}
@media (max-width:420px){ .ed-btns .ed-btn{width:30px;height:30px;} .ed-row{padding-left:8px;} }

/* 2.0.6: разделы меню — спокойный список (вариант B, решение владельца 30.10) */
.mh-list{display:flex;flex-direction:column;max-width:760px;background:var(--tg-s1,#fff);border-radius:var(--tg-r,22px);box-shadow:var(--tg-shadow);overflow:hidden;}
.mh-row{display:flex;align-items:center;gap:14px;width:100%;min-height:72px;padding:14px 16px;box-sizing:border-box;border:0;border-bottom:1px solid var(--tg-line,rgba(60,45,25,.09));background:none;font:inherit;color:var(--tg-fg,#1F1B17);text-align:left;cursor:pointer;transition:background .15s;}
.mh-row:last-child{border-bottom:0;}
.mh-row:hover{background:var(--tg-dep,#F6F2EC);}
.mh-ico{flex:none;width:44px;height:44px;border-radius:14px;background:var(--tg-s2,#F0ECE5);color:var(--tg-acc-strong,#6E4E1E);display:flex;align-items:center;justify-content:center;}
.mh-ico svg{width:22px;height:22px;}
.mh-main{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px;}
.mh-name{font-size:16.5px;font-weight:500;color:var(--tg-fg,#1F1B17);}
.mh-meta{font-size:13px;color:var(--tg-muted,#6F655B);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.mh-n{flex:none;font-family:var(--tg-f-num,inherit);font-weight:300;font-size:20px;color:var(--tg-acc,#8C6428);}
.mh-chev{flex:none;font-size:22px;line-height:1;color:var(--tg-acc,#8C6428);}
.mh-total{max-width:760px;margin:8px 4px 0;font-size:12.5px;color:var(--tg-muted,#6F655B);}
.mh-tools{display:flex;flex-direction:column;gap:10px;margin-top:20px;max-width:760px;}
.mh-tools-title{font-size:11px;letter-spacing:.14em;text-transform:uppercase;color:var(--tg-muted,#6F655B);font-weight:500;}
.mh-chips{display:flex;gap:8px;flex-wrap:wrap;}
.mh-chip{height:40px;padding:0 16px;border-radius:999px;border:1px solid color-mix(in srgb,var(--tg-acc,#8C6428) 35%,transparent);background:transparent;color:var(--tg-acc-strong,#6E4E1E);font:inherit;font-size:14px;cursor:pointer;}
.mh-chip:hover{background:var(--tg-acc-tint,rgba(140,100,40,.1));}

/* ===== 2.0.7 · карточка блюда (вариант F): токены --tg-*, светлая и тёмная тема ===== */
.dc{display:flex;flex-direction:column;gap:16px;color:var(--tg-fg);padding-bottom:8px;}
.dc-top{display:flex;align-items:center;justify-content:space-between;gap:10px;}
.dc-top-r{display:flex;gap:8px;}
.dc-back{display:inline-flex;align-items:center;gap:4px;height:44px;padding:0 16px 0 10px;border-radius:22px;border:1px solid var(--tg-line);background:transparent;color:var(--tg-fg-2);font:inherit;font-size:14px;cursor:pointer;max-width:70%;}
.dc-back span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.dc-back svg{width:18px;height:18px;flex:none;}
.dc-ibtn{width:44px;height:44px;border-radius:22px;border:1px solid var(--tg-line);background:transparent;color:var(--tg-acc);display:inline-flex;align-items:center;justify-content:center;cursor:pointer;padding:0;}
.dc-ibtn svg{width:20px;height:20px;}
.dc-ibtn.fav-toggle{position:static;opacity:1;}
.dc-ibtn.fav-toggle.on svg path{fill:var(--tg-acc);}
.dc-arch{padding:10px 14px;border-radius:var(--tg-r-md);background:var(--tg-s2);color:var(--tg-fg-2);font-size:13.5px;text-align:center;}
.dc.archived .dc-photo{filter:grayscale(.8);opacity:.75;}
.dc-layout{display:flex;flex-direction:column;gap:18px;}
.dc-media{min-width:0;}
.dc-photo{display:block;width:100%;aspect-ratio:4/3;object-fit:cover;border-radius:26px;background:var(--tg-s2);cursor:zoom-in;box-shadow:var(--tg-shadow-pop);}
.dc-photo-ph{width:100%;aspect-ratio:16/7;border-radius:26px;background:radial-gradient(120% 140% at 100% 0%,var(--tg-glow) 0%,transparent 60%),var(--tg-s2);display:flex;align-items:center;justify-content:center;color:var(--tg-acc);}
.dc-photo-ph svg{width:44px;height:44px;opacity:.55;}
.dc-body{display:flex;flex-direction:column;gap:16px;min-width:0;}
.dc-head{text-align:center;padding:0 8px;}
.dc-kick{font-size:11px;letter-spacing:.14em;text-transform:uppercase;font-weight:500;color:var(--tg-acc-strong);}
.dc .dc-title{margin:10px 0 0;font-family:var(--tg-f-num);font-weight:200;font-size:30px;line-height:1.12;letter-spacing:-.02em;color:var(--tg-fg);}
.dc-meta{display:flex;justify-content:center;align-items:baseline;flex-wrap:wrap;gap:10px;margin-top:12px;font-size:13.5px;color:var(--tg-muted);}
.dc-price{font-family:var(--tg-f-num);font-weight:300;font-size:22px;color:var(--tg-acc);}
.dc-note{margin-top:8px;font-size:13px;color:var(--tg-acc-strong);}
.dc-chips{display:flex;justify-content:center;flex-wrap:wrap;gap:6px;}
.dc-chips.left{justify-content:flex-start;}
.dc-al,.dc-diet,.dc-tag{display:inline-flex;align-items:center;padding:5px 12px;border-radius:999px;font-size:12.5px;line-height:1.2;border:1px solid;}
.dc-al{border-color:color-mix(in srgb,var(--tg-bad) 50%,transparent);color:var(--tg-bad);}
.dc-al.tr{border-style:dashed;}
.dc-al.sm{padding:2px 8px;font-size:11.5px;}
.dc-diet{border-color:color-mix(in srgb,var(--tg-ok) 45%,transparent);color:var(--tg-ok);}
.dc-tag{border-color:var(--tg-line);color:var(--tg-fg-2);}
.dc-seg{display:flex;gap:4px;padding:4px;background:var(--tg-s1);border-radius:14px;overflow-x:auto;scrollbar-width:none;box-shadow:var(--tg-shadow);}
.dc-seg::-webkit-scrollbar{display:none;}
.dc-segb{flex:1 0 auto;min-height:40px;padding:0 12px;border:0;border-radius:10px;background:transparent;color:var(--tg-muted);font:inherit;font-size:13.5px;cursor:pointer;white-space:nowrap;}
.dc-segb.on{background:var(--tg-acc);color:var(--tg-on-acc);font-weight:600;}
.dc-panel{font-size:15.5px;line-height:1.6;color:var(--tg-fg-2);}
.dc-text p{margin:0 0 10px;}
.dc-text p:last-child{margin-bottom:0;}
.dc-list{list-style:none;margin:0;padding:4px 16px;background:var(--tg-s1);border-radius:20px;box-shadow:var(--tg-shadow);}
.dc-list li{padding:12px 0;border-bottom:1px solid var(--tg-line);font-size:15px;color:var(--tg-fg);}
.dc-list li:last-child{border-bottom:0;}
.dc-comp{background:var(--tg-s1);border-radius:20px;padding:4px 16px;box-shadow:var(--tg-shadow);}
.dc-ing{width:100%;display:flex;align-items:center;gap:10px;min-height:52px;padding:6px 0;border:0;border-bottom:1px solid var(--tg-line);background:transparent;font:inherit;color:var(--tg-fg);text-align:left;cursor:pointer;}
.dc-ing:last-child{border-bottom:0;}
.dc-ing-main{flex:1;display:flex;align-items:center;flex-wrap:wrap;gap:6px 8px;min-width:0;}
.dc-ing-name{font-size:15px;border-bottom:1px dashed color-mix(in srgb,var(--tg-acc) 45%,transparent);}
.dc-ing-opt{font-size:12px;color:var(--tg-muted);}
.dc-ing-g{font-size:14px;color:var(--tg-muted);white-space:nowrap;}
.dc-chev{color:var(--tg-acc);display:inline-flex;}
.dc-chev svg,.dc-ig-used svg{width:16px;height:16px;transform:rotate(-90deg);}
.dc-hint{margin:8px 2px 0;font-size:12.5px;line-height:1.45;color:var(--tg-muted);}
.dc-hint.center{text-align:center;margin-top:6px;}
.dc-kseg{display:flex;gap:4px;padding:4px;background:var(--tg-s1);border-radius:12px;width:max-content;margin:0 auto 12px;}
.dc-kseg button{height:34px;padding:0 14px;border:0;border-radius:9px;background:transparent;color:var(--tg-muted);font:inherit;font-size:13px;cursor:pointer;}
.dc-kseg button.on{background:var(--tg-s2);color:var(--tg-fg);font-weight:500;}
.dc-kb{display:flex;align-items:center;gap:18px;background:var(--tg-s1);border-radius:20px;padding:18px;box-shadow:var(--tg-shadow);}
.dc-donut{width:108px;height:108px;flex:none;transform:none;}
.dc-d-tr{stroke:var(--tg-s3);}
.dc-d-p{stroke:var(--tg-ok);} .dc-d-f{stroke:var(--tg-acc);} .dc-d-c{stroke:var(--tg-info);}
.dc-d-n{font-family:var(--tg-f-num);font-weight:300;font-size:8px;fill:var(--tg-fg);}
.dc-d-u{font-size:3.6px;fill:var(--tg-muted);}
.dc-kb-rows{flex:1;display:flex;flex-direction:column;gap:10px;font-size:14px;color:var(--tg-fg);min-width:0;}
.dc-kb-rows div{display:flex;align-items:center;gap:8px;}
.dc-kb-rows i{width:10px;height:10px;border-radius:3px;flex:none;}
.dc-kb-rows i.p,.dc-ig-kb b.p{background:var(--tg-ok);} .dc-kb-rows i.f{background:var(--tg-acc);} .dc-kb-rows i.c{background:var(--tg-info);}
.dc-ig-kb b.p{background:none;color:var(--tg-ok);} .dc-ig-kb b.f{color:var(--tg-acc);} .dc-ig-kb b.c{color:var(--tg-info);}
.dc-kb-rows span{flex:1;}
.dc-kb-rows b{font-weight:500;white-space:nowrap;}
.dc-kb-rows small{width:34px;text-align:right;color:var(--tg-muted);font-size:12px;}
.dc-sec-h{display:flex;justify-content:space-between;align-items:baseline;gap:10px;}
.dc-sec-h h3{margin:0;font-family:var(--tg-f-num);font-weight:300;font-size:22px;color:var(--tg-fg);letter-spacing:0;text-transform:none;}
.dc-sec-h span{font-size:12.5px;color:var(--tg-muted);}
.dc-notes{display:flex;flex-direction:column;gap:8px;}
.dc-notes .dc-sec-h h3{font-size:18px;}
.dc-notes textarea{width:100%;min-height:84px;border:1px solid var(--tg-line);border-radius:var(--tg-r-md);padding:12px 14px;background:var(--tg-s1);color:var(--tg-fg);font:inherit;font-size:14.5px;line-height:1.5;resize:vertical;}
.dc-notes textarea:focus{outline:none;border-color:var(--tg-acc);}
.dc-notes .dc-hint{margin-top:0;}
.dc-pairing{display:flex;flex-direction:column;gap:12px;padding-top:18px;border-top:1px solid var(--tg-line);}
.dc-pair-row{display:flex;gap:10px;overflow-x:auto;scroll-snap-type:x mandatory;margin-right:-16px;padding:0 16px 4px 0;scrollbar-width:none;}
.dc-pair-row::-webkit-scrollbar{display:none;}
.dc-pair{flex:none;width:220px;scroll-snap-align:start;display:flex;flex-direction:column;gap:6px;text-align:left;border:1px solid var(--tg-line);background:var(--tg-s1);border-radius:18px;padding:14px;font:inherit;color:var(--tg-fg);}
button.dc-pair{cursor:pointer;}
.dc-pair-k{font-size:11px;letter-spacing:.14em;text-transform:uppercase;font-weight:500;color:var(--tg-acc-strong);}
.dc-pair-t{font-size:15.5px;font-weight:500;}
.dc-pair-s{font-size:12.5px;color:var(--tg-muted);}
.dc-pair-n{font-size:13px;line-height:1.4;color:var(--tg-fg-2);margin-top:4px;}
.dc-nav{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:4px;}
.dc-nb{display:flex;align-items:center;gap:6px;min-height:52px;padding:6px 12px;border:1px solid var(--tg-line);border-radius:16px;background:var(--tg-s1);color:var(--tg-fg);font:inherit;font-size:13.5px;text-align:left;cursor:pointer;min-width:0;}
.dc-nb.nx{justify-content:flex-end;text-align:right;}
.dc-nb span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.dc-nb small{display:block;font-size:11px;color:var(--tg-muted);}
.dc-nb svg{width:16px;height:16px;flex:none;color:var(--tg-acc);}
.dc-nb.nx svg{transform:rotate(-90deg);}
/* окно ингредиента и действия */
.dc-ig-k{font-size:11px;letter-spacing:.14em;text-transform:uppercase;font-weight:500;color:var(--tg-acc-strong);}
.dc-ig-sub{margin:4px 0 14px;font-size:13.5px;color:var(--tg-muted);}
.dc-ig-b{margin-top:14px;}
.dc-ig-h{font-size:11px;letter-spacing:.14em;text-transform:uppercase;font-weight:500;color:var(--tg-muted);margin-bottom:8px;}
.dc-ig-none{margin:0;font-size:14px;color:var(--tg-fg-2);}
.dc-part{padding:7px 12px;border-radius:999px;border:0;background:var(--tg-s2);color:var(--tg-fg);font:inherit;font-size:13px;cursor:pointer;}
.dc-ig-kb{display:grid;grid-template-columns:repeat(4,1fr);gap:6px;margin-top:16px;background:var(--tg-s1);border-radius:16px;padding:14px 8px;text-align:center;}
.dc-ig-kb b{display:block;font-family:var(--tg-f-num);font-weight:300;font-size:20px;color:var(--tg-fg);}
.dc-ig-kb small{font-size:11.5px;color:var(--tg-muted);}
.dc-ig-used{width:100%;display:flex;align-items:center;justify-content:space-between;min-height:44px;border:0;border-top:1px solid var(--tg-line);background:transparent;font:inherit;font-size:14.5px;color:var(--tg-fg);text-align:left;cursor:pointer;padding:0;}
.dc-ig-used svg{color:var(--tg-acc);}
.dc-acts{display:flex;flex-direction:column;gap:6px;}
.dc-act{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:56px;padding:0 16px;border:0;border-radius:16px;background:var(--tg-s1);color:var(--tg-fg);font:inherit;font-size:15.5px;text-align:left;cursor:pointer;}
.dc-act small{font-size:12.5px;color:var(--tg-muted);}
.pr-ed{display:flex;flex-direction:column;gap:6px;padding:10px;border:1px dashed var(--tg-line);border-radius:12px;margin-bottom:8px;}
.pr-ed .inline-row{display:flex;gap:6px;align-items:center;}
.pr-ed select,.pr-ed input{flex:1;min-width:0;}
@media (min-width:1024px){
  .dc-layout{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,6fr);gap:32px;align-items:start;}
  .dc-media{position:sticky;top:24px;}
  .dc-photo-ph{aspect-ratio:4/3;}
  .dc-head{text-align:left;padding:0;}
  .dc-meta,.dc-chips{justify-content:flex-start;}
  .dc .dc-title{font-size:36px;}
  .dc-pair-row{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));margin:0;padding:0;overflow:visible;}
  .dc-pair{width:auto;}
}
/* 2.0.7: фото в списках, пейринге, окне ингредиента; окно ингредиента — по центру экрана */
.mh-ico.ph{overflow:hidden;padding:0;}
.mh-ico.ph img{width:100%;height:100%;object-fit:cover;display:block;}
.menu-item.has-ph{align-items:center;}
.mi-ph{flex:none;width:56px;height:56px;border-radius:14px;object-fit:cover;background:var(--tg-s2);order:-1;}
.menu-item.has-ph .menu-item-main{flex:1;}
.dc-pair.ph{padding-top:0;overflow:hidden;}
.dc-pair-img{display:block;width:calc(100% + 28px);margin:0 -14px 8px;height:120px;object-fit:cover;background:var(--tg-s2);}
.dc-ig-used{gap:12px;}
.dc-ig-used img{width:40px;height:40px;border-radius:10px;object-fit:cover;flex:none;}
.dc-ig-used span{flex:1;}
.dc-ig-desc{margin:6px 0 4px;font-size:15px;line-height:1.55;color:var(--tg-fg-2);}
.sheet.dc-center{top:50%;bottom:auto;left:50%;right:auto;width:min(560px,calc(100vw - 32px));max-height:86vh;max-height:86svh;border-radius:var(--tg-r-sheet);
  transform:translate(-50%,-46%) scale(.97);opacity:0;transition:transform .32s cubic-bezier(.32,1.22,.5,1),opacity .2s ease;box-shadow:var(--tg-shadow-pop);}
.sheet.dc-center.open{transform:translate(-50%,-50%);opacity:1;}
.sheet.dc-center .sheet-grab{display:none;}
.sheet.dc-center .sheet-head{padding-top:18px;}
@media (prefers-reduced-motion:reduce){.sheet.dc-center{transition:none;}}
