:root {
  color-scheme: light;
  --paper: #f7f5ef;
  --white: #fffefa;
  --ink: #19221c;
  --green: #113a2b;
  --lime: #d8f65b;
  --line: #deded2;
  --muted: #5a665f;
  font-family: "Instrument Sans", system-ui, sans-serif;
  background: var(--paper);
  color: var(--ink);
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 290px; }
a { color: inherit; }
p { line-height: 1.55; }
h1, h2, h3 { letter-spacing: -.035em; margin: 0 0 .6em; }
h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: 1.3rem; }
h3 { font-size: 1.1rem; }
small { color: var(--muted); display: block; }
svg { flex: none; vertical-align: middle; }
img { display: block; max-width: 100%; object-fit: cover; }
button, input, select, textarea { font: inherit; }
button, .primary {
  cursor: pointer; border: 1px solid var(--line); border-radius: .65rem;
  display: inline-flex; align-items: center; justify-content: center;
  padding: .68rem .92rem; background: var(--white); color: var(--ink);
  text-decoration: none; font-weight: 700;
}
.primary { background: var(--lime); border-color: transparent; }
button:hover, .primary:hover { filter: brightness(.94); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 3px solid #6d9d36; outline-offset: 3px; }
label { display: grid; gap: .35rem; font-size: .9rem; font-weight: 650; }
input, select, textarea {
  width: 100%; color: var(--ink); padding: .65rem .75rem; min-width: 0;
  background: var(--white); border: 1px solid #c7cdc4; border-radius: .5rem;
}
textarea { min-height: 6rem; }
input[type=checkbox] { width: auto; }
.check { display: flex; align-items: center; }
.brand { font-weight: 900; letter-spacing: -.04em; text-decoration: none; white-space: nowrap; }
.brand span { color: var(--lime); font-size: 1.5em; vertical-align: middle; }
.top { background: var(--green); color: white; }
.top-inner, .top nav { display: flex; align-items: center; gap: 1.2rem; }
.top-inner { min-height: 68px; justify-content: space-between; }
.top nav a { text-decoration: none; }
.wrap { width: min(1260px, 100% - 2rem); margin-inline: auto; }
.section { padding-block: 1.5rem; }
.hero { display: grid; grid-template-columns: 1.12fr 1fr; align-items: center; gap: 2rem; padding: 2.5rem 0; }
.hero h1 { max-width: 13ch; font-size: clamp(2.5rem, 6vw, 5rem); line-height: .98; color: var(--green); }
.hero p { max-width: 48ch; }
.hero img { width: 100%; aspect-ratio: 1.26; border-radius: 2rem; background: var(--green); }
.eyebrow { font-size: .74rem; font-weight: 800; text-transform: uppercase; letter-spacing: .09em; margin: 0 0 .3rem; }
.actions, .chips { display: flex; flex-wrap: wrap; align-items: center; gap: .7rem; }
.card { display: block; border: 1px solid var(--line); border-radius: .95rem; padding: 1.1rem; background: var(--white); text-decoration: none; overflow-wrap: anywhere; }
.auth { width: min(640px, 100% - 2rem); margin: 3rem auto; }
.auth .brand { color: var(--green); }
.form-grid, .stack { display: grid; gap: .75rem; align-items: end; }
.form-grid { grid-template-columns: repeat(auto-fit,minmax(min(100%,210px),1fr)); }
.form-grid button { justify-self: start; }
.inline { display: inline; }
.metrics { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,170px),1fr)); gap: .8rem; margin-bottom: 1rem; }
.metrics .card:first-child { background: #eff7cb; }
.metrics strong { display: block; font-size: clamp(1.3rem,2.5vw,2rem); margin-top: .35rem; }
.notice { padding: .85rem; background: #ffe9e0; border-radius: .55rem; }
.ok { background: #ebf7ce; }
.app { display: grid; grid-template-columns: 235px minmax(0,1fr); min-height: 100vh; }
.sidebar { background: var(--green); color: #fff; padding: 1rem; }
.sidebar .brand { display: block; font-size: 1.2rem; margin: .3rem 0 1.2rem; }
.scope { padding: .55rem; border: 1px solid #6b8577; border-radius: .5rem; }
.sidebar nav { display: grid; gap: .3rem; }
.sidebar nav a, .side-foot a { display: flex; align-items: center; gap: .65rem; text-decoration: none; padding: .55rem .65rem; border-radius: .5rem; font-size: .94rem; }
.sidebar nav a:hover { background: #22543e; }
.sidebar nav a[aria-current] { background: var(--lime); color: var(--ink); font-weight: 800; }
.side-foot { margin-top: 1.25rem; }
.side-foot button { margin-top: .5rem; background: transparent; color: #fff; }
.workspace { padding: clamp(.8rem,2.5vw,2rem); }
.workspace > section { margin-bottom: 1rem; }
.panel-top { display: flex; align-items: flex-start; justify-content: space-between; gap: .75rem; margin-bottom: .75rem; }
.profile { border: 1px solid var(--line); border-radius: 2rem; padding: .45rem .85rem; font-size: .85rem; }
.table-wrap { overflow: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; }
th, td { padding: .65rem .55rem; border-bottom: 1px solid var(--line); vertical-align: top; min-width: 5rem; }
th { background: #eeefe6; font-size: .85rem; }
td { font-size: .9rem; }
.filter { max-width: 22rem; margin-bottom: .6rem; }
.chart { display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); min-height: 185px; gap: .45rem; }
.chart div { display: grid; grid-template-rows: 1.5rem 1fr 1.5rem; text-align: center; }
.chart span { align-self: end; width: min(45px,85%); justify-self: center; height: var(--height); background: linear-gradient(var(--lime),#69963a); border-radius: .4rem .4rem 0 0; }
.chart small { font-size: clamp(.58rem,1vw,.84rem); }
.board { display: flex; gap: .8rem; overflow-x: auto; padding-bottom: 1rem; margin-bottom: 1rem; }
.lane { flex: 1 0 220px; background: #ecefe6; border-radius: .75rem; padding: .7rem; }
.lane h2 { font-size: 1.05rem; }
.ticket { margin-bottom: .6rem; }
.ticket h3 { margin-top: .45rem; }
.ticket .inline button { margin-top: .6rem; }
.ticket p, .ticket li { font-size: .85rem; }
.ticket ul { padding-left: 1rem; }
.pill { display: inline-block; background: #e8efd7; padding: .3rem .65rem; border-radius: 2rem; font-size: .8rem; text-decoration: none; }
.store-head { display: flex; min-height: 12rem; justify-content: space-between; background: var(--store,var(--green)); color: white; border-radius: 1rem; overflow: hidden; }
.store-head div { padding: 1.6rem; }
.store-head img { width: 42%; max-height: 240px; }
.chips { margin-block: 1rem; }
.store-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(240px,320px); gap: 1rem; align-items: start; }
.product-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,185px),1fr)); gap: .75rem; margin-bottom: 1.2rem; }
.product img { width: 100%; aspect-ratio: 1.65; border-radius: .65rem; margin-bottom: .5rem; }
.product form { margin-top: .6rem; }
.cart-row { display: flex; justify-content: space-between; align-items: center; padding: .5rem 0; border-bottom: 1px solid var(--line); }
.track { margin-top: 1rem; max-width: 38rem; }
.danger { color: #962b1f; }
@media(max-width: 760px) {
  .app, .hero, .store-grid { grid-template-columns: 1fr; }
  .sidebar nav { display: flex; overflow: auto; }
  .sidebar nav a { white-space: nowrap; }
  .sidebar .scope { display: inline-block; margin: .3rem 0; }
  .sidebar .brand { margin-bottom: .3rem; }
  .side-foot { margin-top: .3rem; display:flex; }
  .hero img { max-height: 270px; }
  .top nav { gap: .65rem; }
  .top nav a:first-child { display: none; }
}
.brand-mark { color: var(--lime); margin-right: .12rem; }
.hero { position: relative; }
.hero img { box-shadow: 0 18px 40px #113a2b27; }
.store-head img { object-position: 50% 55%; }

/* Interface de gestão e loja */
:root { --paper:#f5f2eb; --white:#fffdf8; --ink:#13231d; --green:#092c22; --line:#e2dfd6; --lime:#d5f655; }
body { font-family: "Instrument Sans", system-ui, sans-serif; }
h1,h2,h3 { font-weight: 780; }
.top { background:#09291f; }
.top .brand { font-size:1.12rem; }
.top nav { font-size:.9rem; font-weight:650; }
.top nav .primary { padding-inline:1rem; }
.landing .hero { isolation:isolate; display:grid; grid-template-columns: 1.05fr .95fr; align-items:start; padding:3.5rem 0 1.5rem; gap:0; }
.hero-copy { position:relative; z-index:1; padding:1.75rem 0 2rem; }
.landing .hero h1 { font-size:clamp(2.7rem,6vw,5.45rem); max-width:10.3ch; letter-spacing:-.065em; }
.hero-copy .actions { gap:1.3rem; }
.hero-copy .actions span { margin-left:.75rem; }
.landing .hero > img { position:absolute; right:0; top:2rem; width:51%; height:74%; aspect-ratio:auto; border-radius:50% 0 32% 50%; box-shadow:-15px 17px 0 var(--lime); object-position:center; z-index:-1; }
.dashboard-preview { grid-column:1/-1; width:min(790px,90%); display:grid; grid-template-columns:170px minmax(0,1fr); border:1px solid var(--line); border-radius:1rem; color:var(--ink); background:var(--paper); box-shadow:0 16px 38px #15262030; overflow:hidden; }
.dashboard-preview aside { background:var(--green); color:white; padding:1rem .75rem; font-size:.82rem; }
.dashboard-preview .brand { font-size:.88rem; }
.dashboard-preview ul { margin:1rem 0; padding:0; list-style:none; }
.dashboard-preview li { display:flex; gap:.55rem; align-items:center; padding:.45rem .5rem; }
.dashboard-preview li:first-child { background:#285541; border-radius:.45rem; }
.preview-content { min-width:0; padding:1rem; }
.preview-content .metrics { grid-template-columns:repeat(3,minmax(0,1fr)); }
.preview-content .metric { padding:.65rem; }
.preview-content .metric strong { font-size:clamp(.86rem,2.3vw,1.35rem); }
.preview-bottom { display:grid; grid-template-columns:1.25fr 1fr; gap:.75rem; }
.preview-bars { display:flex; height:80px; align-items:end; gap:5%; }
.preview-bars span { flex:1; background:#bde17d; border-radius:.2rem .2rem 0 0; }
.preview-bars span:last-child { background:var(--green); }
.benefits { display:grid; grid-template-columns:repeat(4,1fr); gap:1rem; border-bottom:1px solid var(--line); padding:1rem 0 1.5rem; }
.benefits > div { display:flex; align-items:center; gap:.7rem; font-size:.88rem; }
.app { grid-template-columns:235px minmax(0,1fr); }
.sidebar { position:sticky; top:0; align-self:start; min-height:100vh; height:100vh; overflow:auto; background:linear-gradient(155deg,#0d3a2d,#08291f 70%); display:flex; flex-direction:column; }
.sidebar .scope { display:flex; align-items:center; gap:.45rem; color:#f1f6ed; }
.sidebar nav a { min-height:42px; }
.side-foot { margin-top:auto; border-top:1px solid #ffffff38; padding-top:.6rem; }
.workspace { min-width:0; }
.panel-top { align-items:center; }
.panel-top h1 { margin:.1rem 0 .45rem; }
.panel-top p { margin:.2rem 0 .55rem; }
.profile { background:var(--white); min-width:8rem; }
.metric { display:flex; align-items:center; gap:.65rem; min-height:94px; }
.metric-icon { display:grid; place-items:center; background:#eaf4cf; color:#175139; border-radius:.68rem; width:2.65rem; height:2.65rem; flex:none; }
.metric strong { letter-spacing:-.035em; line-height:1.1; }
.section-head { display:flex; align-items:center; justify-content:space-between; gap:.7rem; margin-bottom:.75rem; }
.section-head h2 { margin:0; }
.secondary { padding:.5rem .7rem; border:1px solid var(--line); border-radius:.55rem; background:var(--white); text-decoration:none; font-size:.85rem; white-space:nowrap; }
.dashboard-grid { display:grid; grid-template-columns:minmax(0,2.6fr) minmax(185px,1fr); gap:1rem; margin-bottom:1rem; }
.performance { min-width:0; }
.line-chart { display:block; width:100%; height:auto; min-height:135px; }
.chart-grid { stroke:#dedfd2; fill:none; }
.chart-days { display:grid; grid-template-columns:repeat(7,1fr); text-align:center; }
.order-modes { display:grid; align-content:start; }
.donut { margin:.5rem auto 1rem; width:clamp(102px,17vw,158px); aspect-ratio:1; border-radius:50%; display:grid; place-items:center; background:conic-gradient(#0d4a31 var(--portion),#b4d869 0); }
.donut.empty { background:#e3e7d9; }
.donut > div { display:grid; place-content:center; text-align:center; border-radius:50%; width:72%; height:72%; background:var(--white); }
.donut strong { font-size:1.65rem; }
.legend { display:grid; grid-template-columns:1fr auto; gap:.4rem; font-size:.86rem; }
.legend span::before { content:""; display:inline-block; width:.62rem; height:.62rem; border-radius:50%; background:#0d4a31; margin-right:.4rem; }
.legend span:nth-of-type(2)::before { background:#b4d869; }
.registration-grid { display:grid; grid-template-columns:minmax(0,1.8fr) minmax(260px,1fr); gap:1rem; align-items:start; }
.registration-grid .form-grid { grid-template-columns:1fr; }
.form-card { overflow:hidden; }
.form-card > h2 { background:var(--green); color:white; margin:-1.1rem -1.1rem 1.2rem; padding:1rem 1.1rem; }
.badge { display:inline-flex; align-items:center; border-radius:1rem; padding:.25rem .57rem; white-space:nowrap; font-size:.78rem; font-weight:680; }
.badge.green { background:#e2f3bd; color:#24451f; }
.badge.blue { background:#dcecf9; color:#194969; }
.badge.amber { background:#fff0c2; color:#674700; }
.badge.violet { background:#eee0fb; color:#4d3073; }
.badge.red { background:#ffe4df; color:#792f23; }
.badge.neutral { background:#edece5; color:#4a514b; }
.board-toolbar { display:flex; align-items:center; gap:.55rem; margin-bottom:.65rem; }
.lane h2 { display:flex; justify-content:space-between; background:#e3e4dd; padding:.62rem .55rem; border-radius:.55rem; }
.lane h2 span { font-size:.86rem; }
.lane-novo h2 { background:#d8e8fb; }
.lane-preparo h2 { background:#faedb9; }
.lane-pronto h2 { background:#e6f3bd; }
.lane-rota h2 { background:#eae0f9; }
.store-head { position:relative; isolation:isolate; min-height:clamp(160px,24vw,295px); align-items:center; background:var(--store,var(--green)); }
.store-head.has-banner::after { content:""; position:absolute; inset:0; z-index:-1; background:linear-gradient(90deg,#081b14 4%,#0b2119eb 35%,transparent 80%); }
.store-head img { position:absolute; inset:0 0 0 auto; width:73%; height:100%; max-height:none; z-index:-2; }
.store-head .store-identity { display:flex; align-items:center; gap:1rem; position:relative; max-width:min(90%,690px); padding:clamp(1rem,3vw,2rem); }
.store-identity div { padding:0; }
.store-identity h1 { margin:0; }
.store-identity p { margin:.45rem 0 0; }
.store-emblem { width:clamp(50px,7vw,85px); aspect-ratio:1; border:1px solid #ffffff80; border-radius:1rem; display:grid; place-items:center; color:var(--lime); }
.store-emblem svg { width:50%; height:50%; }
.store-meta { display:flex; justify-content:space-between; flex-wrap:wrap; gap:.55rem; padding:.75rem 0; border-bottom:1px solid var(--line); }
.store-meta > div { display:flex; align-items:center; gap:.7rem; flex-wrap:wrap; font-size:.84rem; }
.fulfillment { display:inline-flex; gap:.35rem; align-items:center; }
.fulfillment:first-child { background:var(--lime); }
.fulfillment svg { width:16px; height:16px; }
.chips { flex-wrap:nowrap; overflow:auto; }
.chips a { white-space:nowrap; background:#ebe8df; }
.chips a:first-child { background:var(--green); color:white; }
.product-grid { grid-template-columns:repeat(auto-fit,minmax(min(100%,180px),1fr)); }
.product { padding:0; overflow:hidden; }
.product img { border-radius:0; margin:0; aspect-ratio:1.5; }
.product-body { padding:.75rem; }
.product-body p { margin:.3rem 0 .65rem; font-size:.84rem; }
.product-price { display:flex; align-items:flex-start; justify-content:space-between; gap:.45rem; }
.product-price details[open] { width:100%; }
summary { cursor:pointer; list-style:none; }
summary::-webkit-details-marker { display:none; }
.product-price summary { background:var(--lime); border-radius:.5rem; float:right; display:grid; place-items:center; width:1.9rem; height:1.9rem; font-size:1.25rem; font-weight:700; }
.product-price form { clear:both; padding-top:.5rem; }
.cart { position:sticky; top:1rem; }
.cart h2 { display:flex; gap:.5rem; align-items:center; }
.cart-row { gap:.45rem; }
.cart-row strong { white-space:nowrap; font-size:.86rem; }
.cart-total { display:flex; justify-content:space-between; margin-top:.6rem; gap:.5rem; font-size:.86rem; }
.checkout-details summary { display:flex; margin-top:1rem; }
.checkout-details form { margin-top:.8rem; }
@media(max-width:1050px) {
  .registration-grid { grid-template-columns:1fr; }
  .registration-grid .form-grid { grid-template-columns:repeat(auto-fit,minmax(min(100%,205px),1fr)); }
}
@media(max-width:760px) {
  .app,.dashboard-grid { grid-template-columns:1fr; }
  .sidebar { position:static; height:auto; min-height:0; overflow:visible; }
  .side-foot { margin-top:.4rem; }
  .landing .hero { display:flex; flex-direction:column; padding:0 0 1rem; }
  .landing .hero > img { position:relative; width:100%; height:auto; max-height:290px; top:auto; border-radius:1rem; box-shadow:none; }
  .dashboard-preview { width:100%; grid-template-columns:1fr; margin-top:1rem; }
  .dashboard-preview aside { display:none; }
  .benefits { grid-template-columns:repeat(2,1fr); }
  .top nav a:not(:last-child) { display:none; }
  .cart { position:static; }
}
@media(max-width:470px) {
  .preview-bottom { grid-template-columns:1fr; }
  .preview-content .metric-icon { display:none; }
  .preview-content .metric { min-height:63px; padding:.4rem; }
  .top .brand { font-size:.85rem; }
  .top .brand svg { width:22px; }
  .top nav .primary { padding:.55rem; font-size:.77rem; }
  .section-head { flex-wrap:wrap; }
}
.catalog-panel h3 { padding-top:.8rem; }
.catalog-row { display:grid; grid-template-columns:3rem minmax(0,1fr) auto auto; gap:.6rem; align-items:center; padding:.6rem 0; text-decoration:none; border-bottom:1px solid var(--line); }
.catalog-row:hover { background:#f4f5e9; }
.catalog-row img { width:3rem; height:3rem; border-radius:.5rem; }
.edit-product-photo { width:100%; max-height:190px; border-radius:.65rem; margin-bottom:.8rem; }
@media(max-width:760px) {
  .top nav a:not(:last-child) { display:inline-flex; }
  .top nav a.nav-section { display:none; }
}
.product-price:has(details[open]) { display:grid; }
.product-price details[open] summary { margin-bottom:.25rem; }
.storefront .product-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
@media(max-width:1050px) {
  .storefront .product-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media(max-width:345px) {
  .storefront .product-grid { grid-template-columns:1fr; }
}
