.line-tools{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap;margin:10px 0 14px}
.view-switch{display:inline-flex;background:#f6f2eb;border:1px solid #e3d8c9;border-radius:12px;padding:3px;gap:3px}
.view-switch button,.line-recipes{min-height:42px;padding:7px 15px;border-radius:9px;font:600 15px Sarabun,sans-serif}
.view-switch button[aria-pressed=true]{background:var(--brand);color:#fff}
.line-recipes{display:inline-flex;align-items:center;color:var(--brand);text-underline-offset:4px}
.cardMain.line-card{text-align:left;border:0;background:none;font:inherit;cursor:pointer}
.line-card .plate{width:100%;padding:9%;background:#f4efe5;border:1px solid #e5dacb}
.line-card .plate img{background:white;width:100%;height:100%;border:4px solid white;box-shadow:0 2px 6px #5a462723;filter:none;object-fit:contain}
.line-card .bookMeta{margin-top:3px}
.line-sheet{box-sizing:border-box;max-width:min(490px,calc(100% - 24px));width:490px;max-height:91dvh;overflow:auto;border:1px solid #dfd5c7;background:#fffdf8;border-radius:19px;color:var(--ink);padding:18px;box-shadow:0 18px 70px #30251e40}
.line-sheet::backdrop{background:#2c2a2885}
.line-sheet header,.sample-step,.sample-actions{display:flex;align-items:center;justify-content:space-between;gap:10px}
.line-sheet h3{font:600 23px/1.35 Mali,sans-serif;margin:0}
.line-sheet button,.sample-actions a{min-height:44px}
.line-sheet header button,.sample-step button{border-radius:10px;border:1px solid #dfd5c7;background:white;min-width:44px}
.line-sheet header button{font-size:22px}
.sample-page{margin:10px 0 0;padding:10px;text-align:center;background:#f1eadf;border-radius:13px}
.sample-page img{display:block;margin:auto;width:min(100%,330px);max-height:43dvh;object-fit:contain;aspect-ratio:1;background:white}
.sample-page figcaption{padding:5px 0 0;font-size:14px}
.sample-step{justify-content:center;margin:6px 0 10px;font-variant-numeric:tabular-nums}
.sample-step button:disabled{opacity:.35}
.sample-actions a{padding:9px 12px;border-radius:10px;display:grid;place-items:center;text-decoration:none;font-weight:600;text-align:center}
.sample-actions a:first-child{background:var(--brand);color:white;flex:1}
.sample-actions a:last-child{border:1px solid #d8cdbf;color:var(--brand)}
.studio-entry{display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:44px;padding:8px 14px;margin:5px 0;text-decoration:none;font:600 15px Sarabun,sans-serif;color:var(--brand);border:1px solid var(--brand-border);border-radius:10px;background:var(--brand-tint)}
@media(max-width:650px){
 .line-sheet{position:fixed;inset:auto 0 0;margin:0;width:100%;max-width:100%;padding:11px 16px max(16px,env(safe-area-inset-bottom));border-radius:19px 19px 0 0}
 .line-sheet:before{content:"";display:block;width:38px;height:4px;margin:0 auto 8px;background:#d1c7ba;border-radius:8px}
 .view-switch button,.line-recipes{padding:6px 10px;font-size:14px}
}

@media(min-width:900px){.grid.line-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
