/* A plate of contenders: same white, wine and editorial typography as the guide. */
.plate-card-action{margin:12px 0 8px}.add-to-plate{display:inline-flex;align-items:center;gap:7px;padding:7px 0;font-size:12px;color:var(--wine);text-underline-offset:4px;min-height:36px}.add-to-plate .icon{width:18px;height:18px}.add-to-plate:hover{text-decoration:underline}.add-to-plate[aria-pressed=true]{font-weight:600}
.photo-open[data-drag-id]{cursor:grab}.photo-open[data-drag-id]:active{cursor:grabbing}.photo-dragging{opacity:.5}
.plate-dock{position:fixed;right:24px;bottom:max(20px,env(safe-area-inset-bottom));width:206px;z-index:15}.plate-open{display:flex;flex-direction:column;align-items:center;width:100%;padding:8px 4px 0;color:var(--wine);border-radius:12px}.plate-open:disabled{opacity:1}.plate-scene{display:block;position:relative;width:200px;height:110px;transition:transform .22s cubic-bezier(.16,1,.3,1)}.plate-dish{position:absolute;left:0;bottom:0;width:100%;height:100%;object-fit:contain;pointer-events:none}.plate-photos{position:absolute;inset:0;pointer-events:none}.plate-mini{position:absolute;left:67px;top:18px;width:61px;height:68px;background:var(--page);padding:4px 4px 10px;border-radius:4px;box-shadow:0 6px 10px #27252724;transform:rotate(-10deg)}.plate-mini img{width:100%;height:100%;object-fit:cover;border-radius:4px}.plate-mini b{display:grid;place-items:center;height:100%}.plate-mini:nth-child(2){left:101px;top:14px;transform:rotate(13deg)}.plate-mini:nth-child(3){left:39px;top:9px;transform:rotate(-20deg)}
.plate-label{display:flex;align-items:center;gap:8px;margin-top:2px;padding:4px 10px;background:var(--page);border-radius:8px;font-size:13px}.plate-label #plate-count{font-size:11px;color:var(--muted);font-variant-numeric:tabular-nums}.plate-action{display:block;background:var(--wine);color:var(--page);padding:7px 13px;margin-top:4px;border-radius:8px;font-size:11px;line-height:1.5}.plate-open:hover .plate-scene{transform:translateY(-4px) rotate(-2deg)}
.plate-hint{position:absolute;bottom:calc(100% + 5px);right:0;width:294px;padding:17px 42px 17px 20px;background:var(--page);border:1px solid var(--line);border-radius:16px;color:var(--wine)}.plate-hint p{margin:0;font-size:14px;line-height:1.5}.plate-hint small{display:block;margin-top:5px;font-size:12px;color:var(--muted)}.plate-hint .icon-button{position:absolute;right:9px;top:11px;background:none;width:28px;height:28px}.plate-hint .icon{width:15px;height:15px}.tap-instruction{display:none}.is-dragging .plate-open{background:var(--rose);outline:2px dashed var(--wine);outline-offset:8px}.is-over .plate-scene{transform:scale(1.12)}.is-over .plate-action{background:var(--green)}.is-dragging .plate-hint{display:none}
.just-added .plate-mini:last-child{animation:plate-land .35s cubic-bezier(.16,1,.3,1)}@keyframes plate-land{from{translate:0 -15px;opacity:.4}to{translate:0 0;opacity:1}}
body:has(dialog[open]) .plate-dock{visibility:hidden}.toast{z-index:60}
.plate-dialog{max-width:1100px;width:calc(100% - 48px);max-height:90dvh}.plate-dialog .dialog-head{z-index:4}.plate-dialog-body{padding:28px 32px 32px}.plate-heading{display:flex;justify-content:space-between;align-items:center;gap:24px;margin-bottom:25px}.plate-heading h2{font-family:var(--display);font-size:38px;font-weight:400;letter-spacing:-.015em;line-height:1.1;color:var(--wine);margin:0 0 10px}.plate-heading h2 em{font-weight:400}.plate-heading p{font-size:13px;color:var(--muted);margin:0}.text-button{display:inline-flex;align-items:center;gap:6px;padding:6px 0;font-size:12px;text-decoration:underline;color:var(--wine);text-align:left}.text-button .icon{width:14px;height:14px}#clear-plate{white-space:nowrap}
.plate-table-scroll{overflow:auto;border-bottom:1px solid var(--line);scrollbar-width:thin;scrollbar-color:var(--wine) var(--rose)}.plate-table{table-layout:fixed;width:100%;min-width:calc(140px + var(--plate-columns)*235px);border-collapse:separate;border-spacing:0;text-align:left;font-size:13px;line-height:1.65}.plate-row-label{width:140px}.plate-table th,.plate-table td{padding:17px 20px;vertical-align:top;border-bottom:1px solid var(--line);font-weight:400}.plate-table thead th{padding-top:0;padding-bottom:24px}.plate-table tbody th{font-size:12px;font-weight:500;color:var(--wine);padding-left:0}.plate-table tbody tr:last-child>*{border-bottom:0}.plate-table strong{font-weight:600;font-variant-numeric:tabular-nums}.plate-table small{display:block;font-size:11px;line-height:1.6;color:var(--muted);margin-top:5px}.plate-table td>a{display:inline;line-height:1.7}.plate-table td>a>.icon{display:inline;width:12px;height:12px}.plate-table .unknown{color:var(--muted)}
.plate-restaurant-head{position:relative}.plate-restaurant-head>img{width:100%;height:150px;object-fit:cover;border-radius:10px;display:block;margin-bottom:16px}.plate-restaurant-head h3{font-family:var(--display);font-size:28px;font-weight:400;line-height:1.15;color:var(--wine);margin:0 0 5px;overflow-wrap:anywhere}.plate-remove{position:absolute;right:8px;top:8px;background:var(--page);width:32px;height:32px}.plate-remove .icon{width:16px;height:16px}.plate-tags{display:flex;flex-wrap:wrap;gap:6px}.plate-tags span{background:var(--rose);border-radius:4px;padding:2px 7px;font-size:11px;color:var(--wine)}.plate-sources{display:flex;flex-wrap:wrap;gap:5px 10px;margin-top:10px;font-size:11px}.plate-footnote{display:flex;align-items:center;gap:24px;margin-top:24px}.plate-footnote p{color:var(--muted);font-size:11px;line-height:1.7;max-width:75ch;margin:0}.plate-footnote .secondary{margin-left:auto;white-space:nowrap}.plate-scroll-note{display:none;font-size:11px;color:var(--muted)}
.plate-empty{text-align:center;padding:12px 20px 32px}.plate-empty img{display:block;object-fit:contain;margin:0 auto 20px}.plate-empty h3,.plate-add-another h3{font-family:var(--display);font-size:28px;font-weight:400;color:var(--wine);line-height:1.2;margin:0 0 12px}.plate-empty p{max-width:48ch;margin:0 auto 24px;color:var(--muted);font-size:13px}.plate-add-another{padding:25px 0;text-align:center}.plate-add-another>span>.icon{width:38px;height:38px;margin:0 auto 18px;color:var(--wine)}.plate-add-another .secondary{white-space:normal;font-size:12px}.plate-empty-cell{color:var(--line)}
@media(max-width:1100px){.plate-dialog-body{padding:24px}.plate-scroll-note{display:block}.plate-footnote{align-items:flex-start;flex-direction:column}.plate-footnote .secondary{margin-left:0}}
@media(max-width:700px){.plate-dock{right:10px;bottom:max(12px,env(safe-area-inset-bottom));width:146px}.plate-scene{width:140px;height:80px}.plate-mini{width:43px;height:49px;left:45px;top:11px;padding:3px 3px 7px}.plate-mini:nth-child(2){left:69px;top:10px}.plate-mini:nth-child(3){left:26px;top:7px}.plate-label{font-size:12px;gap:6px;padding:3px 6px}.plate-label #plate-count{font-size:11px}.plate-action{font-size:11px;padding:6px 9px}.plate-hint{width:252px;padding:14px 36px 14px 16px}.plate-hint p{font-size:13px}.plate-hint small{font-size:11px}.toast{bottom:230px;max-width:calc(100% - 32px)}.plate-dialog{width:calc(100% - 16px);max-height:94dvh}.plate-dialog-body{padding:22px 16px 24px}.plate-heading{gap:12px;align-items:flex-start;flex-direction:column;margin-bottom:15px}.plate-heading h2{font-size:32px}.plate-heading p{font-size:12px}.plate-table{min-width:calc(104px + var(--plate-columns)*210px);font-size:12px}.plate-row-label{width:104px}.plate-table th,.plate-table td{padding:14px 12px}.plate-table thead th:first-child,.plate-table tbody th{position:sticky;left:0;background:var(--page);z-index:1;padding-left:0;border-right:1px solid var(--line)}.plate-table tbody th{font-size:11px}.plate-restaurant-head>img{height:130px}.plate-restaurant-head h3{font-size:26px}.plate-remove{width:36px;height:36px}.plate-empty{padding:10px 4px 24px}.plate-empty h3{font-size:26px}.plate-footnote{gap:16px}.add-to-plate{min-height:44px}.plate-hint .icon-button{min-width:32px;min-height:32px}}
@media(hover:none),(pointer:coarse){.drag-instruction{display:none}.tap-instruction{display:inline}.plate-open:hover .plate-scene{transform:none}}
@media(prefers-reduced-motion:reduce){.plate-scene{transition:none}.just-added .plate-mini:last-child{animation:none}.plate-open:hover .plate-scene{transform:none}}

.plate-drag-ghost{position:fixed;width:88px;height:74px;padding:4px 4px 10px;background:var(--page);border-radius:4px;box-shadow:0 8px 20px #27252730;transform:translate(-50%,-65%) rotate(-8deg);pointer-events:none;z-index:80}.plate-drag-ghost img{width:100%;height:100%;object-fit:cover;border-radius:4px}.photo-open[data-drag-id]{user-select:none;-webkit-user-select:none}

/* Touch keeps page scrolling until a deliberate hold picks up a photo. */
.photo-open[data-drag-id],.photo-open[data-drag-id] img{-webkit-touch-callout:none}
.photo-open.photo-dragging{outline:2px solid var(--wine);outline-offset:-4px}
.plate-drag-ghost{font-size:12px;line-height:1.3;color:var(--wine)}
.plate-dock.is-dragging .plate-open{min-height:160px}
@media(any-pointer:coarse){.drag-instruction{display:none}.tap-instruction{display:inline}.plate-open{min-height:44px}.plate-remove,.plate-hint .icon-button{min-width:44px;min-height:44px}}

/* A real sliding drawer: front, edge and tray occupy separate 3D planes. */
.plate-dock{width:218px;right:20px}
.plate-open{padding-top:0}
.plate-scene.matchbox-scene{width:218px;height:242px;perspective:850px;transform:none!important}
.matchbox-object{--drawer-shift:0px;position:absolute;width:116px;height:158px;left:49px;top:73px;transform-style:preserve-3d;transform:rotateX(25deg) rotateY(-19deg) rotateZ(12deg)}
.matchbox-cover{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:space-between;background:#080808;color:#fffbd0;transform:translateZ(18px);border-radius:2px;padding:9px 5px 8px;box-shadow:inset 0 1px 1px #ffffff50,10px 14px 12px #30231e30;overflow:hidden}
.matchbox-cover>img{display:block;width:98px;height:113px;object-fit:contain;pointer-events:none}
.matchbox-edition{font-size:7px;line-height:1;letter-spacing:.11em;font-weight:500;white-space:nowrap}
.matchbox-imprint{font-size:5.5px;line-height:1;letter-spacing:.08em;white-space:nowrap}
.matchbox-side{position:absolute;left:116px;top:0;width:18px;height:158px;background:#481919;transform:translateZ(18px) rotateY(90deg);transform-origin:left center;border-block:4px solid #272020}
.matchbox-side::after{content:'';position:absolute;inset:8px 4px;background:#a5372d;border-radius:1px;box-shadow:inset 1px 0 2px #190d0d88}
.matchbox-end{position:absolute;left:0;top:158px;width:116px;height:18px;background:#292520;transform:translateZ(18px) rotateX(-90deg);transform-origin:center top;border:2px solid #111}
.matchbox-drawer{position:absolute;left:3px;top:2px;width:110px;height:153px;border:5px solid #ece0c8;background:#bba584;box-shadow:inset 0 4px 8px #4c382b35;transform:translateY(var(--drawer-shift)) translateZ(5px);transform-style:preserve-3d;transition:transform .42s cubic-bezier(.16,1,.3,1)}
.matchbox-drawer::before{content:'';position:absolute;left:-5px;top:-5px;width:110px;height:11px;background:#f3e8d4;transform:rotateX(-90deg);transform-origin:top}
.matchbox-drawer-lip{position:absolute;left:-5px;right:-5px;bottom:-5px;height:8px;background:#e4d4b9;transform:translateZ(3px)}
.matchbox-matches{position:absolute;inset:5px 7px;display:flex;justify-content:center;gap:7px;transform:translateZ(1px)}
.matchbox-matches i{display:block;width:5px;height:111px;background:#ead3a1;box-shadow:1px 1px 1px #6c4c3240;transform:rotate(-3deg);border-radius:3px}
.matchbox-matches i::before{content:'';display:block;width:7px;height:12px;margin-left:-1px;border-radius:5px;background:#a92a2a}
.matchbox-matches i:nth-child(even){transform:translateY(7px) rotate(4deg)}
.matchbox-scene .plate-photos{inset:0;transform:translateZ(6px)}
.matchbox-scene .plate-mini{left:9px;top:9px;width:59px;height:72px;padding:3px 3px 10px;border-radius:2px;transform:rotate(-9deg);box-shadow:2px 5px 6px #35231e40}
.matchbox-scene .plate-mini:nth-child(2){left:28px;top:6px;transform:rotate(10deg)}
.matchbox-scene .plate-mini:nth-child(3){left:21px;top:19px;transform:rotate(-3deg)}
.has-restaurants .matchbox-object{--drawer-shift:-45px}
.is-dragging .matchbox-object{--drawer-shift:-84px}
.is-over .matchbox-object{--drawer-shift:-92px}
.is-dragging .plate-open{background:transparent;outline:0;min-height:0}
.is-dragging .plate-action{background:#9c302a}
.is-over .plate-action{background:#633e29}
.plate-hint{bottom:calc(100% - 25px)}
.plate-label{margin-top:0}
.plate-empty .matchbox-empty-logo{width:96px;height:110px;border-radius:3px;background:#080808}
@media(hover:hover){.plate-open:hover .matchbox-object{--drawer-shift:-65px}}
@media(max-width:700px){.plate-dock{width:154px;right:8px}.plate-scene.matchbox-scene{width:154px;height:176px;perspective:650px}.matchbox-object{left:24px;top:54px;transform:scale(.74) rotateX(25deg) rotateY(-19deg) rotateZ(12deg);transform-origin:top left}.plate-label{font-size:11px}.plate-action{font-size:11px}.plate-hint{bottom:calc(100% - 12px)}.toast{bottom:270px}}
@media(prefers-reduced-motion:reduce){.matchbox-drawer{transition:none}.just-added .plate-mini:last-child{animation:none}}

.plate-dock.is-dragging .matchbox-object{--drawer-shift:-84px}.plate-dock.is-over .matchbox-object{--drawer-shift:-92px}
