/* Menu · price editor (MENU-V4). Same tokens as management.css. Each item is a one-line summary; one item at a time
   opens its edit area below the summary. */
.an-menu {display:grid;gap:12px;}
.an-menu-top {display:flex;align-items:baseline;justify-content:space-between;gap:8px 16px;flex-wrap:wrap;}
.an-menu-list {list-style:none;margin:0;padding:0;display:grid;gap:8px;}
.an-menu-item {border:1px solid var(--line);border-radius:14px;background:var(--surface);overflow:hidden;}
.an-menu-item.is-open {border-color:var(--accent);box-shadow:0 0 0 1px var(--accent) inset;}
.an-menu-item.has-problem {border-color:var(--bad);}
.an-menu-item[data-status=hidden] .an-menu-row-body {opacity:.6;}
.an-menu-row {display:grid;grid-template-columns:48px minmax(0,1fr) auto auto;align-items:center;gap:10px;padding:8px 10px;min-height:64px;}
.an-menu-row-body {display:grid;gap:2px;min-width:0;}
.an-menu-row-name {font-size:15px;line-height:1.35;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.an-menu-row-meta {font-size:13px;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.an-menu-row-chips {display:flex;gap:4px;flex-wrap:wrap;justify-content:flex-end;max-width:120px;}
.an-menu-chip {font-size:11px;font-weight:700;padding:2px 7px;border-radius:999px;background:var(--idle-soft);color:var(--idle);white-space:nowrap;}
.an-menu-chip.is-sold_out {background:var(--warn-soft);color:var(--warn);}
.an-menu-chip.is-translated {background:var(--ok-soft);color:var(--ok);}
.an-menu-chip.is-problem {background:var(--bad-soft);color:var(--bad);}
.an-menu-toggle {min-width:64px;}
.an-menu-thumb {display:grid;place-items:center;width:48px;height:48px;padding:0;border:1px solid var(--line);border-radius:10px;overflow:hidden;background:var(--bg);color:var(--muted);font-size:10px;line-height:1.2;text-align:center;cursor:zoom-in;}
.an-menu-thumb.is-large {width:96px;height:72px;font-size:12px;}
.an-menu-thumb img {width:100%;height:100%;object-fit:cover;display:block;}
.an-menu-thumb-empty {cursor:default;}
.an-menu-edit {display:grid;gap:12px;padding:12px;border-top:1px solid var(--line);background:color-mix(in srgb,var(--accent-soft) 35%,var(--surface));}
.an-menu-grid {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 12px;}
.an-menu-field {font-size:14px;}
.an-menu-field textarea {min-height:64px;}
.an-menu-wide {grid-column:1/-1;}
@media (min-width:900px){.an-menu-grid{grid-template-columns:2fr 1.3fr 1fr 1fr 1.2fr;}.an-menu-more .an-menu-grid{grid-template-columns:1fr 2fr;}}
.an-menu-more {border:1px solid var(--line);border-radius:12px;background:var(--surface);padding:0 12px;}
.an-menu-more > summary {min-height:44px;display:flex;align-items:center;cursor:pointer;font-size:14px;font-weight:600;color:var(--muted);}
.an-menu-more[open] {padding-bottom:12px;}
.an-menu-photo {display:flex;flex-wrap:wrap;align-items:flex-start;gap:10px;}
.an-menu-photo-actions {display:flex;flex-wrap:wrap;align-items:center;gap:6px;flex:1;min-width:0;}
.an-menu-picker {flex-basis:100%;display:grid;gap:8px;padding:10px;border:1px dashed var(--line);border-radius:12px;background:var(--surface);}
.an-menu-picker-grid {list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(72px,1fr));gap:8px;}
.an-menu-pick {display:block;width:100%;aspect-ratio:4/3;min-height:44px;padding:0;border:2px solid transparent;border-radius:10px;overflow:hidden;background:var(--surface);cursor:pointer;}
.an-menu-pick[aria-pressed=true] {border-color:var(--accent);}
.an-menu-pick img {width:100%;height:100%;object-fit:cover;display:block;}
.an-menu-translation {display:grid;gap:6px;}
.an-menu-translated {display:grid;grid-template-columns:max-content minmax(0,1fr);gap:4px 10px;margin:0;font-size:14px;}
.an-menu-translated dt {font-weight:700;color:var(--accent);}
.an-menu-translated dd {margin:0;overflow-wrap:anywhere;}
.an-menu-edit-actions {display:flex;flex-wrap:wrap;gap:6px;justify-content:flex-end;}
.an-menu-remove {color:var(--bad);}
.an-menu-error:empty {display:none;}
.an-menu-preview {margin:4px 0 8px;padding-left:20px;display:grid;gap:2px;}
/* Touch targets: the item's own small buttons keep the 44px minimum of the editor. */
.an-menu .an-button-small {min-height:44px;}
@media (max-width:420px){
  /* Phones keep one summary line per item: status chips stack beside the toggle instead of adding a line. */
  .an-menu-row {grid-template-columns:44px minmax(0,1fr) auto auto;gap:8px;padding:8px;}
  .an-menu-row .an-menu-thumb {width:44px;height:44px;}
  .an-menu-row-name {white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;}
  .an-menu-row-chips {flex-direction:column;align-items:flex-end;max-width:64px;}
  .an-menu-toggle {min-width:56px;}
  .an-menu-grid {grid-template-columns:repeat(2,minmax(0,1fr));}
  .an-menu-grid > .an-menu-field:first-child {grid-column:1/-1;}
}
