:root {
  color-scheme: light;
  --ink:#18251e;
  --green:#174536;
  --deep:#0d3025;
  --pale:#f1f5ee;
  --line:#d3ded3;
  --muted:#52675c;
  --gold:#dcc37c;
  font-family: "Segoe UI", system-ui, sans-serif;
  color:var(--ink);
  background:var(--pale);
}
* { box-sizing:border-box }
body { margin:0; line-height:1.55 }
h1,h2,h3,p { margin:0 0 .75rem }
h1,h2 { font-family:Georgia,serif; font-weight:500; line-height:1.08 }
h1 { font-size:clamp(2.65rem,6vw,4.8rem); letter-spacing:-.055em }
h2 { font-size:clamp(1.6rem,3vw,2.1rem) }
a { color:var(--green); text-underline-offset:.22em }
button,.button { font:inherit; font-weight:650; border:1px solid var(--green); padding:.68rem 1rem; border-radius:.55rem; background:var(--green); color:white; cursor:pointer; text-decoration:none; text-align:center; display:inline-block }
button:hover,.button:hover { filter:brightness(1.12) }
button:disabled { opacity:.55; cursor:default }
button[hidden],a[hidden] { display:none }
:focus-visible { outline:3px solid #a76c26; outline-offset:3px }
.secondary { background:#edf4ed; color:var(--deep); border-color:var(--line) }
.quiet { background:transparent; color:var(--green); border-color:transparent; padding-inline:.4rem }
.top { display:flex; align-items:center; justify-content:space-between; padding:.85rem max(1rem,calc((100vw - 1120px)/2)); background:#fff; border-bottom:1px solid var(--line) }
.brand { font-family:Georgia,serif; color:var(--deep); font-size:1.85rem; letter-spacing:-.06em; text-decoration:none }
.brand span { color:#677e47 }
.workspace { width:min(1120px,calc(100% - 2rem)); margin:2rem auto 4rem }
.paper { background:#fff; border:1px solid var(--line); border-radius:1rem; padding:clamp(1.05rem,3.5vw,2rem) }
.welcome { min-height:65vh; display:grid; grid-template-columns:1.34fr 1fr; gap:1.2rem; align-items:center }
.welcome-copy { padding:clamp(1.4rem,5vw,4.5rem); border-radius:1rem; color:#fff; background:radial-gradient(ellipse at top right,#2d6148,var(--deep) 68%) }
.welcome-copy p:last-child { max-width:36ch; color:#e3ece1; font-size:1.1rem }
.eyebrow { font-size:.875rem; letter-spacing:.12em; text-transform:uppercase; font-weight:700; color:var(--muted) }
.welcome-copy .eyebrow,.menu-hero .eyebrow { color:var(--gold) }
.stack,.new-menu,#editor { display:grid; gap:1rem }
.stack { margin-bottom:1rem }
label { display:grid; gap:.32rem; font-weight:600; margin-bottom:.8rem }
input,textarea,select { width:100%; min-width:0; font:inherit; font-weight:400; color:var(--ink); background:#fcfdfb; border:1px solid #a5b6a9; border-radius:.5rem; padding:.55rem .68rem }
select { appearance:none; padding-right:2rem; background-image:linear-gradient(45deg,transparent 50%,#52675c 50%),linear-gradient(135deg,#52675c 50%,transparent 50%); background-position:calc(100% - 16px) 55%,calc(100% - 11px) 55%; background-size:5px 5px; background-repeat:no-repeat }
textarea { resize:vertical; min-height:5.2rem }
.stack label,.new-menu label { margin:0 }
.new-menu { grid-template-columns:minmax(0,1fr) auto; align-items:end }
.page-head,.row,.actions { display:flex; gap:.75rem; align-items:center; flex-wrap:wrap }
.page-head,.row { justify-content:space-between }
.page-head { margin:1rem 0 }
.cards { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(17rem,100%),1fr)); gap:1rem; margin-top:1rem }
.editor-grid { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,19rem); gap:1rem; align-items:start }
#categories { display:grid; gap:1rem }
#categories:empty { display:none }
#add-category { justify-self:start }
fieldset { min-width:0; margin:1rem 0; padding:1rem; border:1px solid var(--line); border-radius:.7rem; background:#f8faf6 }
legend { font-weight:700; padding:0 .35rem }
.dish-fields { display:grid; grid-template-columns:minmax(0,1fr) minmax(5rem,8rem); gap:.75rem }
.check { display:flex; align-items:center; gap:.45rem; margin:0 }
.check input { width:1.1rem; height:1.1rem; accent-color:var(--green) }
.hint { color:var(--muted); font-size:.9rem; overflow-wrap:anywhere }
.qr-card canvas { display:block; width:min(100%,15rem); height:auto; margin:0 auto }
.qr-card .actions { gap:.45rem }
.unpublish { margin-top:1rem }
.message { background:#e0eee3; border:1px solid #a0bca6; padding:.7rem 1rem; border-radius:.55rem }
.message.error { background:#ffebe2; border-color:#c08c7b; color:#792818 }
.public { background:#fcfcf7 }
.menu-hero { background:var(--deep); color:#fff; padding:1rem 0 3rem }
.menu-inner { width:min(720px,calc(100% - 2rem)); margin:auto }
.languages,.category-nav { display:flex; flex-wrap:wrap; gap:.45rem; margin-bottom:2rem }
.languages a,.category-nav a { padding:.35rem .65rem; text-decoration:none; border-radius:.35rem; font-size:.9rem }
.languages a { color:#fff }
.languages a[aria-current] { background:var(--gold); color:var(--deep); font-weight:700 }
.intro { white-space:pre-line; color:#e7efe7; max-width:55ch }
.intro:empty { display:none }
.menu-content { padding-top:1.4rem }
.category-nav a { background:#e7eee4 }
.menu-category { padding:1rem 0 1.6rem; scroll-margin-top:1rem }
.menu-category h2 { color:var(--green); font-size:2.1rem }
.dish { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:.75rem; border-top:1px solid var(--line); padding:1rem 0 }
.dish h3 { margin:0 0 .2rem; font-size:1.12rem }
.dish p { color:var(--muted); white-space:pre-line; overflow-wrap:anywhere }
.dish p:empty { display:none }
.dish details { color:var(--green); font-size:.9rem }
.dish summary { cursor:pointer }
.price { white-space:nowrap; color:var(--green); font-variant-numeric:tabular-nums }
.menu-footer { text-align:center; padding:2rem; color:var(--muted) }
@media (max-width:730px) {
  .welcome,.editor-grid { grid-template-columns:1fr }
  .new-menu { grid-template-columns:1fr }
  .workspace { margin-top:1rem }
}
@media print {
  body { background:#fff }
  body:has(.qr-card canvas) .top,body:has(.qr-card canvas) .workspace > :not(.editor-grid),#editor,.qr-card .actions,.qr-card .unpublish { display:none }
  .editor-grid { display:block }
  .qr-card { border:0; text-align:center; color:#000; break-inside:avoid }
  .qr-card canvas { width:65mm }
}
/* MenuQR uses the same blue family as ContactoQR. */
:root { --ink:#142b40; --green:#095986; --deep:#0b243a; --pale:#f0f6fa; --line:#d8e4ec; --muted:#4b667a; --gold:#bce6ed }
h1,h2 { font-family:inherit; font-weight:750; letter-spacing:-.045em }
.top { padding:.62rem max(1rem,calc((100vw - 1152px)/2)) }
.brand { display:inline-flex; align-items:center; gap:.6rem; font:750 1.15rem/1.2 "Segoe UI",system-ui,sans-serif; letter-spacing:-.025em }
.brand .brand-icon { display:grid; place-items:center; width:2.15rem; height:2.15rem; border-radius:.63rem; color:#eaf9fc; background:linear-gradient(145deg,#0b2339,#166181); font-size:1.35rem }
.workspace { width:min(1152px,calc(100% - 2rem)); margin-top:1rem }
.paper { border-radius:1.5rem; box-shadow:0 7px 25px #173c5410 }
.welcome { min-height:0; grid-template-columns:1.17fr 1fr; gap:1rem; align-items:stretch }
.welcome-copy { padding:clamp(1.6rem,3.6vw,3rem); border-radius:1.55rem; background:radial-gradient(ellipse at 95% 90%,#226f74 0%,transparent 62%),radial-gradient(ellipse at 80% 35%,#134768,transparent 62%),#0a2037; overflow:hidden }
.welcome-copy h1 { font-size:clamp(2.3rem,4.3vw,3.6rem); line-height:1.02 }
.welcome-copy > p { max-width:35ch; color:#d9eaf5; font-size:1.05rem }
.hero-link { background:#e0f5fd; color:#102f48; border-color:#e0f5fd; margin-top:.35rem }
.hero-art { display:grid; place-items:center; min-height:10rem; padding:1.4rem 1rem .15rem }
.sample-card { width:min(100%,19rem); display:flex; align-items:center; justify-content:space-between; gap:1rem; padding:1rem 1.35rem; transform:rotate(-7deg); background:linear-gradient(140deg,#f7fcff,#d4edf2); color:#11354c; border:1px solid #fff9; border-radius:1rem; box-shadow:0 18px 32px #00132254 }
.sample-menu { flex:1; display:grid; gap:.4rem }
.sample-menu b { font-size:1.15rem }
.sample-menu i { height:.24rem; background:#6998ae; border-radius:99px }
.sample-menu i:nth-child(3) { width:80% }
.sample-menu i:last-child { width:65% }
.sample-qr { display:grid; place-items:center; background:#fff; border-radius:.6rem; width:3.8rem; min-height:3.8rem; font-size:2.4rem; line-height:1 }
.account { padding:clamp(1.35rem,3.2vw,2.25rem) }
.account-nav { display:grid; grid-template-columns:1fr 1fr; gap:.25rem; padding:.22rem; margin-bottom:1rem; border-radius:.85rem; background:#e9f2f8 }
.account-nav a { text-align:center; text-decoration:none; font-weight:700; padding:.65rem .25rem; border-radius:.65rem; color:#304c61 }
.account-nav a[aria-current] { background:#fff; color:var(--green); box-shadow:0 2px 6px #16385020 }
.account h2 { margin-bottom:.55rem }
.account > p { color:var(--muted); margin-bottom:1.35rem }
.account input { background:#f9fcfe; border-color:#b8cad7; border-radius:.68rem }
.account .stack { gap:.75rem; margin-bottom:0 }
.account button { margin-top:.2rem }
.how { margin-top:1rem; scroll-margin-top:1rem }
.steps { display:grid; grid-template-columns:repeat(3,1fr); gap:.75rem }
.steps article { background:#f1f7fb; border:1px solid var(--line); border-radius:.8rem; padding:1rem }
.steps h3 { margin-bottom:.35rem; font-size:1rem }
.steps p { color:var(--muted); margin-bottom:0 }
.home-footer { padding:1.2rem 0; color:var(--muted); font-size:.9rem }
.secondary,.category-nav a { background:#eaf3f9 }
fieldset { background:#f6fafe }
.menu-hero { background:linear-gradient(135deg,#0b243a,#104563) }
.public { background:#f7fbfe }
@media(max-width:730px) { .welcome,.steps { grid-template-columns:1fr } .hero-art { min-height:8rem } }
.header-actions { display:flex; align-items:center; gap:.8rem }
.home-plan-link { color:#e2f6ff; display:inline-block; margin:.5rem 0 .5rem .5rem; font-weight:650 }
.plan-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:.9rem }
.plan-card { border:1px solid var(--line); background:#f6fafe; border-radius:1rem; padding:1.2rem; display:flex; flex-direction:column; align-items:flex-start }
.plan-premium { background:#e8f4fa; border-color:#a8d0e1 }
.plan-price { font-size:2rem; font-weight:750; line-height:1.2 }
.plan-price span { font-size:1rem; color:var(--muted) }
.plan-card ul { padding-left:1.2rem; flex:1; margin:.35rem 0 1rem }
.billing-portal { margin-top:1rem }
.photo-field { display:grid; justify-items:start; margin:.55rem 0 }
.photo-field label { width:100%; margin-bottom:.1rem }
.photo-field img,.restaurant-logo { width:90px; height:90px; object-fit:contain; background:#fff; border-radius:.75rem }
.photo-field [hidden] { display:none }
#restaurant-editor summary { margin:.65rem 0; cursor:pointer; font-weight:700 }
.restaurant-cover,.dish-photo { width:100%; max-height:22rem; object-fit:cover; border-radius:.9rem }
.dish-photo { display:block; max-height:12rem; margin-bottom:.7rem }
.restaurant-logo { margin:0 0 .75rem }
.restaurant-details { margin:1rem 0 2rem; gap:1rem }
.restaurant-details h2 { font-size:1.25rem }
.restaurant-details p { white-space:pre-line; overflow-wrap:anywhere }
.restaurant-gallery { display:grid; grid-template-columns:repeat(2,1fr); gap:.8rem }
.restaurant-gallery img { width:100%; aspect-ratio:4/3; object-fit:cover; border-radius:.7rem }
@media(max-width:600px) { .plan-grid { grid-template-columns:1fr } }
.guide-hero h1 { font-size:clamp(2rem,4vw,3.5rem) }
.guide-hero p:not(.eyebrow) { max-width:67ch; color:var(--muted) }
.guide-section { margin-top:1rem; scroll-margin-top:1rem }
.guide-steps { padding-left:1.5rem; margin-bottom:0 }
.guide-steps li { margin:.6rem 0; padding:.6rem .45rem 1rem; border-bottom:1px solid var(--line) }
.guide-steps li:last-child { border:0; padding-bottom:0 }
.guide-steps h3 { margin:0 0 .35rem }
.guide-steps p { max-width:77ch; margin:0 0 .5rem }
.guide-print { margin:1rem 0; max-width:56rem }
.guide-print img { width:100%; display:block; border:1px solid var(--line); border-radius:.85rem }
.guide-print figcaption { margin-top:.45rem; color:var(--muted); font-size:.92rem }
.guide-print img { width:auto; max-width:100% }
.plan-grid { grid-template-columns:repeat(3,minmax(0,1fr)) }
.location-title { font-size:1.5rem; margin:1.4rem 0 .25rem }
#csv-tools label { margin-top:.75rem }
#csv-preview { margin-top:.8rem }
@media(max-width:780px) { .plan-grid { grid-template-columns:1fr } }
.admin-metrics { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:.8rem }
.admin-metrics strong,.admin-metrics span { display:block }
.admin-metrics strong { font-size:1.8rem; color:var(--deep) }
.admin-section { margin:1rem 0 }
.admin-filters { display:flex; flex-wrap:wrap; gap:.7rem; align-items:end; margin-bottom:1rem }
.admin-filters label { flex:1 1 9rem; margin:0 }
.admin-table { overflow:auto; margin:.6rem 0 }
.admin-table table { border-collapse:collapse; width:100%; text-align:left }
.admin-table th,.admin-table td { padding:.65rem .5rem; border-bottom:1px solid var(--line); vertical-align:top }
.admin-table th { white-space:nowrap }
.admin-data { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:1rem }
.admin-data dt { color:var(--muted); font-weight:600 }
.admin-data dd { margin:0; overflow-wrap:anywhere }
@media(max-width:760px) { .admin-metrics,.admin-data { grid-template-columns:repeat(2,minmax(0,1fr)) } }
