/* «Моё меню» (Д-2194, подзадача 4, D-478): полоса над меню, конструктор, экран «Сборки».
   Вид - по макету docs/mockups/d2194-moyo-menyu/ (источник istochnik/moyo.js), да владельца 29.10.
   Зелёная «+» своя: в портале токен --ok перекрашен в оранжевый, D-700 требует зелёную. Белых полос нет. */
.mm-strip, .mm-root, .gl-root {
  --mm-g: var(--ok-fix); --mm-g-text: var(--ok-fix-text); --mm-g-wash: var(--ok-fix-wash); --mm-g-edge: var(--ok-fix-edge);
}
.mm-strip { margin: 6px 0 0; }
.mm-zag { display: flex; align-items: center; justify-content: space-between; height: 20px; margin: 0 2px 2px; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.mm-zag .mm-all { position: relative; border: 0; background: none; padding: 0; font: inherit; letter-spacing: 0; text-transform: none; font-weight: 600; font-size: 14px; color: var(--baner-akcent, var(--accent)); }
.mm-zag .mm-all::before { content: ""; position: absolute; inset: -12px -10px; }
.mm-zag .mm-cl { display: flex; align-items: center; gap: 8px; letter-spacing: 0; text-transform: none; font-size: 13px; font-weight: 700; color: var(--warn-text); }
.mm-zag .mm-cl button { position: relative; display: grid; place-items: center; border: 1px solid var(--warn-edge); background: var(--warn-wash); color: var(--warn-text); border-radius: 999px; padding: 0; width: 32px; height: 20px; font-size: 13px; }
.mm-zag .mm-cl button::before { content: ""; position: absolute; inset: -12px -6px; }
.mm-ryadt { display: flex; gap: 8px; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; margin: 0 -12px; padding: 0 12px; scroll-snap-type: x proximity; scroll-padding-left: 12px; }
.mm-ryadt::-webkit-scrollbar { display: none; }
.mm-t { flex: 0 0 180px; box-sizing: border-box; height: 68px; display: grid; grid-template-columns: 52px minmax(0, 1fr); column-gap: 8px; align-items: center; padding: 8px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); color: var(--text); text-align: left; scroll-snap-align: start; font: inherit; cursor: pointer; }
.mm-t.wide { flex-basis: 244px; }
.mm-tph, .mm-ph, .mm-pimg { width: 52px; height: 52px; border-radius: 10px; object-fit: cover; background: var(--panel-2); }
.mm-noph { display: block; }
.mm-t .tx { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.mm-t .nm { font-size: 13px; line-height: 15px; font-weight: 700; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.mm-t .pr { display: flex; align-items: center; justify-content: space-between; gap: 6px; font-size: 14px; font-weight: 800; color: var(--mm-g-text); font-variant-numeric: tabular-nums; }
.mm-t .pl { flex: 0 0 auto; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; border: 1px solid var(--mm-g-edge); background: var(--mm-g-wash); color: var(--mm-g-text); font-size: 18px; font-weight: 700; line-height: 1; }
.mm-t.rep { flex-basis: 188px; border-color: var(--accent); background: var(--accent-wash-soft, var(--panel)); }
.mm-t.rep .ic { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 10px; background: var(--accent-wash, var(--panel-2)); color: var(--baner-akcent, var(--accent)); font-size: 28px; }
.mm-t.rep .sub { font-size: 12px; line-height: 14px; color: var(--muted); font-weight: 600; }
.mm-t.add { flex-basis: 132px; grid-template-columns: 34px minmax(0, 1fr); border-style: dashed; }
.mm-t.add .ic { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; border: 1px solid var(--mm-g-edge); background: var(--mm-g-wash); color: var(--mm-g-text); font-size: 22px; font-weight: 700; }
.mm-t.warn { border-color: var(--warn-edge); background: color-mix(in srgb, var(--warn) 10%, var(--panel)); }
.mm-t .st { font-size: 12px; line-height: 14px; font-weight: 700; color: var(--warn-text); }
.mm-t .st s { color: var(--muted); font-weight: 600; }
.mm-t .st b { color: var(--mm-g-text); }
.mm-t.off { background: var(--panel-2); color: var(--muted); }
.mm-t.off .tph, .mm-t.off img { filter: grayscale(1); opacity: .5; }
.mm-t.off .nm, .mm-t.off .st { color: var(--muted); }
.mm-one { display: flex; align-items: center; gap: 12px; width: 100%; box-sizing: border-box; min-height: 56px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); color: var(--text); font: inherit; text-align: left; }
.mm-one .ic { flex: 0 0 auto; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--mm-g-edge); background: var(--mm-g-wash); color: var(--mm-g-text); font-size: 24px; font-weight: 700; }
.mm-one .tx { flex: 1 1 auto; min-width: 0; font-size: 15px; font-weight: 700; line-height: 1.25; }
.mm-one .ar { flex: 0 0 auto; color: var(--muted); font-size: 22px; }
.mm-btn { flex: 0 0 auto; min-height: 44px; padding: 0 16px; border: 1px solid var(--accent); border-radius: 10px; background: var(--accent); color: var(--on-solid); font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; }
.mm-btn.ok { border-color: var(--mm-g); background: var(--mm-g); color: var(--on-solid); }
.mm-btn.ghost { border-color: var(--line); background: var(--panel-2); color: var(--text); }
.mm-btn.bad { border-color: var(--bad); background: var(--bad); color: var(--on-solid); }
.mm-btn[disabled] { border-color: var(--line); background: var(--panel-2); color: var(--muted); }

/* слои поверх портала */
.mm-root { position: fixed; inset: 0; z-index: 60; pointer-events: none; }
.mm-root > * { pointer-events: auto; }
.mm-screen { position: absolute; inset: 0; display: flex; flex-direction: column; background: var(--bg); color: var(--text); }
/* Шапка экрана - общая шапка портала (Д-2321, `guest-shapka.js`): первая в слое, не сжимается. */
.mm-screen > .head { flex: 0 0 auto; }
.mm-sc { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 8px 12px 16px; }
.mm-bar { flex: 0 0 auto; padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); background: var(--panel); display: flex; flex-direction: column; gap: 8px; }
@media (max-width: 360px) { .mm-sc, .mm-bar { padding-left: 8px; padding-right: 8px; } }
.mm-seg { display: flex; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); margin: 2px 0 10px; }
.mm-seg button { flex: 1 1 0; min-height: 44px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); font: inherit; font-size: 15px; font-weight: 700; }
.mm-seg button.on { background: var(--accent); color: var(--on-solid); }
.mm-cnt { margin: 0 2px 8px; font-size: 14px; color: var(--muted); font-weight: 600; }
.mm-gz { margin: 12px 2px 6px; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.mm-empty { padding: 24px 8px; text-align: center; color: var(--muted); font-size: 15px; line-height: 1.35; }
.mm-search { width: 100%; box-sizing: border-box; min-height: 48px; margin: 2px 0 6px; padding: 0 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel-2); color: var(--text); font: inherit; font-size: 16px; }
.mm-pickrow, .mm-row { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; column-gap: 10px; align-items: center; padding: 8px; margin-bottom: 8px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.mm-pickrow .mm-ph, .mm-row .mm-ph { width: 72px; height: 72px; }
.mm-main { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.mm-name { margin: 0; font-size: 16px; line-height: 1.2; font-weight: 700; overflow-wrap: anywhere; }
.mm-cat { font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
.mm-pz { font-size: 16px; font-weight: 700; font-variant-numeric: tabular-nums; }
.mm-pz s { margin-right: 6px; font-size: 14px; font-weight: 600; color: var(--muted); }
.mm-pz .nw { color: var(--mm-g-text); }
.mm-pickbtn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 14px; border: 1px solid var(--mm-g-edge); border-radius: 12px; background: var(--mm-g-wash); color: var(--mm-g-text); font: inherit; font-size: 15px; font-weight: 700; }
.mm-pos { display: grid; grid-template-columns: 96px minmax(0, 1fr); column-gap: 12px; align-items: center; padding: 8px; margin-bottom: 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.mm-pos .mm-pimg { width: 96px; height: 96px; }
.mm-pos h2 { margin: 0 0 4px; font-size: 18px; line-height: 1.2; overflow-wrap: anywhere; }
.mm-pos .pp { font-size: 17px; font-weight: 700; }
.mm-grp { margin-bottom: 8px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.mm-grp.set { border-color: var(--mm-g-edge); }
.mm-gh { display: flex; align-items: center; min-height: 48px; padding: 0 14px; font-size: 16px; font-weight: 700; overflow-wrap: anywhere; }
.mm-opts { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 12px 12px; }
.mm-o { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--panel-2); color: var(--text); font: inherit; font-size: 15px; text-align: left; overflow-wrap: anywhere; }
.mm-o small { color: var(--muted); font-size: 13px; font-weight: 600; }
.mm-o.on { border-color: var(--mm-g); background: var(--mm-g-wash); color: var(--mm-g-text); font-weight: 700; }
.mm-o.on small { color: var(--mm-g-text); }
.mm-o[disabled] { opacity: .45; }
.mm-sum { display: flex; justify-content: space-between; align-items: baseline; font-size: 17px; font-weight: 700; }
.mm-sum span:last-child { font-size: 22px; font-weight: 800; font-variant-numeric: tabular-nums; }
.mm-lim { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; margin-bottom: 8px; border: 1px solid var(--warn-edge); border-radius: 12px; background: var(--warn-wash); color: var(--warn-text); font-size: 15px; font-weight: 700; }
.mm-lim button { flex: 0 0 auto; min-height: 44px; border: 1px solid var(--warn-edge); border-radius: 10px; background: transparent; color: var(--warn-text); font: inherit; font-size: 14px; font-weight: 700; padding: 0 12px; }
.mm-row { grid-template-columns: 72px minmax(0, 1fr) 44px; }
.mm-row.off { background: var(--panel-2); }
.mm-row.off .mm-ph { filter: grayscale(1); opacity: .5; }
.mm-row.off .mm-name, .mm-row.off .mm-pz { color: var(--muted); }
.mm-row.warn { border-color: var(--warn-edge); }
.mm-warn { font-size: 13px; line-height: 1.25; font-weight: 700; color: var(--warn-text); }
.mm-dob { margin: 4px 0 0; padding: 0; list-style: none; font-size: 14px; line-height: 1.3; }
.mm-dob li { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; padding: 2px 0; color: var(--mm-g-text); }
.mm-dob li span:first-child { min-width: 0; overflow-wrap: anywhere; }
.mm-dob li span:last-child { flex: 0 0 auto; font-variant-numeric: tabular-nums; }
.mm-acts { display: flex; flex-direction: column; gap: 6px; }
.mm-cb { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border-radius: 12px; border: 1px solid var(--line); background: var(--panel-2); color: var(--text); font-size: 20px; line-height: 1; }
.mm-cb.x { border-color: var(--bad-edge); background: var(--bad-wash); color: var(--bad-text); }
.mm-cb.p { border-color: var(--mm-g-edge); background: var(--mm-g-wash); color: var(--mm-g-text); font-size: 22px; font-weight: 700; }
.mm-ord { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 10px; row-gap: 2px; align-items: center; padding: 12px; margin-bottom: 8px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.mm-ord .d { font-size: 15px; font-weight: 700; }
.mm-ord .t { grid-column: 1; font-size: 14px; color: var(--muted); }
.mm-ord .s { font-size: 16px; font-weight: 800; font-variant-numeric: tabular-nums; }
.mm-ord .mm-btn { grid-column: 2; grid-row: 1 / span 3; align-self: center; }
.mm-shade { position: absolute; inset: 0; background: var(--gde-skrim); }
.mm-sheet { position: absolute; left: 8px; right: 8px; bottom: calc(8px + env(safe-area-inset-bottom, 0px)); padding: 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--panel); box-shadow: 0 10px 30px var(--shadow-plashka); }
.mm-sheet h3 { margin: 0 0 6px; font-size: 18px; line-height: 1.2; overflow-wrap: anywhere; }
.mm-sheet p { margin: 0 0 6px; font-size: 15px; line-height: 1.35; color: var(--muted); }
.mm-sheet .pz { margin: 0 0 12px; font-size: 16px; font-weight: 700; color: var(--text); }
.mm-sheet .btns { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.mm-sheet .btns .mm-btn { width: 100%; }
.mm-sheet .row2 { display: flex; gap: 8px; margin-top: 10px; }
.mm-sheet .row2 .mm-btn { flex: 1 1 0; min-width: 0; }
.mm-flash { position: absolute; left: 12px; right: 12px; top: calc(12px + env(safe-area-inset-top, 0px)); padding: 10px 12px; border: 1px solid var(--mm-g-edge); border-radius: 12px; background: var(--panel); color: var(--mm-g-text); font-size: 15px; font-weight: 700; text-align: center; overflow-wrap: anywhere; }

/* Общий счёт ♡ (подзадача 7, модуль guest-golosa.js): сердце с числом, окно «Войдите, чтобы оценивать». */
.gl-root { position: fixed; inset: 0; z-index: 70; pointer-events: none; }
.gl-root > * { pointer-events: auto; }
.fav .gl-z { display: flex; flex-direction: column; align-items: center; line-height: 1; font-variant-numeric: tabular-nums; }
.fav .gl-z i { font-style: normal; font-size: 19px; line-height: 19px; }
.fav .gl-z b { font-size: 11px; font-weight: 800; line-height: 11px; }
.fav.on .gl-z { color: var(--bad-text); }
