:root{
  --bm-bg:#0b0d11;
  --bm-bg-2:#11141a;
  --bm-panel:#171b22;
  --bm-panel-2:#1d222b;
  --bm-border:rgba(255,255,255,.08);
  --bm-text:#f5f7fb;
  --bm-muted:#9fa7b5;
  --bm-gold:#f9bd21;
  --bm-gold-2:#f9bd21;
  --bm-blue:#79baff;
  --bm-green:#93b74b;
  --bm-red:#d86a6a;
  --bm-shadow:0 12px 32px rgba(0,0,0,.35);
  --bm-radius:22px;
}

.bm-mt{
  font-family:ui-sans-serif,system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  max-width:1320px;
  margin:0 auto;
  padding:18px;
  color:var(--bm-text);
  background:
    radial-gradient(circle at top left, rgba(216,161,58,.08), transparent 20%),
    radial-gradient(circle at top right, rgba(121,186,255,.06), transparent 24%),
    linear-gradient(180deg,var(--bm-bg-2) 0%,var(--bm-bg) 100%);
  border:1px solid rgba(216,161,58,.18);
  border-radius:26px;
  box-shadow:var(--bm-shadow);
}

.bm-mt-header{
  display:grid;
  grid-template-columns:1fr auto;
  gap:16px;
  align-items:start;
  margin-bottom:18px;
}

.bm-mt-title{
  margin:0;
  font-size:30px;
  font-weight:800;
  line-height:#f9bd21;
}

.bm-mt-sub{
  margin:8px 0 0;
  font-size:14px;
  line-height:1.5;
  color:var(--bm-muted);
  max-width:760px;
}

.bm-mt-date span,
.bm-panel label span,
.bm-meal-row label span{
  display:block;
  margin-bottom:6px;
  font-size:12px;
  font-weight:700;
  color:#d6dae2;
}

.bm-mt input,
.bm-mt select,
.bm-mt textarea{
  width:100%;
  box-sizing:border-box;
  padding:11px 12px;
  border-radius:14px;
  border:1px solid #d8a13a;
  background:#f9bd21;
  color:#000000;
  outline:none;
  font-weight:700;
}

.bm-mt input::placeholder,
.bm-mt textarea::placeholder{
  color:#3a2d08;
}

.bm-mt input::placeholder,
.bm-mt textarea::placeholder{
  color:#3a2d08;
}

.bm-mt input:focus,
.bm-mt select:focus,
.bm-mt textarea:focus{
  border-color:rgba(216,161,58,.4);
  box-shadow:0 0 0 3px rgba(216,161,58,.12);
}

.bm-mt button{
  padding:11px 14px;
  border-radius:16px;
  border:1px solid rgba(216,161,58,.28);
  background:linear-gradient(180deg,var(--bm-gold-2) 0%, var(--bm-gold) 100%);
  color:#f9bd21;
  font-weight:800;
  cursor:pointer;
  box-shadow:0 8px 18px rgba(216,161,58,.16);
  transition:transform .18s ease, box-shadow .18s ease;
}

.bm-mt button:hover{
  transform:translateY(-1px);
  box-shadow:0 12px 24px rgba(216,161,58,.22);
}

.bm-mt-dashboard{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:14px;
  margin-bottom:16px;
}

.bm-metric-card,
.bm-panel{
  border:1px solid var(--bm-border);
  border-radius:var(--bm-radius);
  padding:16px;
  background:
    radial-gradient(circle at top center, rgba(255,255,255,.03), transparent 45%),
    linear-gradient(180deg,var(--bm-panel-2) 0%,var(--bm-panel) 100%);
  box-shadow:var(--bm-shadow);
}

.bm-metric-card .label{
  font-size:12px;
  font-weight:700;
  color:var(--bm-muted);
}

.bm-metric-card .value{
  margin-top:8px;
  font-size:26px;
  line-height:1.1;
  font-weight:800;
  color:#fff;
}

.bm-metric-card .bar{
  width:100%;
  height:12px;
  margin-top:12px;
  border-radius:999px;
  background:rgba(255,255,255,.08);
  overflow:hidden;
}

.bm-metric-card .fill{
  width:0%;
  height:100%;
  border-radius:999px;
  background:linear-gradient(90deg,var(--bm-gold) 0%, var(--bm-gold-2) 55%, var(--bm-blue) 100%);
  transition:width .25s ease, background .25s ease;
}

.bm-mt-layout{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:16px;
  margin-bottom:16px;
}

.bm-panel h3{
  margin:0 0 12px;
  font-size:22px;
  font-weight:800;
  color:#f6f2e8;
}

.bm-form-grid{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:10px;
}

.bm-note{
  color:var(--bm-muted);
  font-size:13px;
  margin:0 0 10px;
}

.bm-disclaimer{
  margin-top:14px;
  padding:14px;
  border-radius:16px;
  border:1px solid rgba(216,161,58,.22);
  background:linear-gradient(180deg, rgba(216,161,58,.10) 0%, rgba(216,161,58,.04) 100%);
  color:#dfd4b3;
  font-size:13px;
  line-height:1.55;
}

.bm-meal-sections{
  display:flex;
  flex-direction:column;
  gap:18px;
}

.bm-left-stack{
  display:flex;
  flex-direction:column;
  gap:18px;
}

.meal-panel{
  width:100%;
  border-radius:20px;
}

.meal-head{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
  margin-bottom:12px;
}
.bm-meal-title-wrap{
  display:flex;
  flex-direction:column;
  gap:4px;
}

.bm-meal-total{
  font-size:13px;
  font-weight:700;
  color:#f0c566;
}
.meal-head h3{
  margin:0;
}

.bm-lookup-row{
  display:grid;
  grid-template-columns:1fr auto;
  gap:8px;
  margin-bottom:8px;
}

.bm-lookup-row.barcode{
  margin-top:8px;
}

.bm-meal-rows{
  display:grid;
  gap:10px;
}

.bm-meal-row{
  display:grid;
  grid-template-columns:
  2fr
  .8fr
  .9fr
  .8fr
  .8fr
  .8fr
  .8fr
  auto;
  gap:10px;
  align-items:end;
  padding:12px;
  border:1px solid rgba(255,255,255,.06);
  border-radius:18px;
  background:rgba(255,255,255,.02);
}

.bm-remove{
  background:linear-gradient(180deg,#2a2f39 0%, #1b1f27 100%) !important;
  color:#fff !important;
  border:1px solid rgba(255,255,255,.08) !important;
  box-shadow:none !important;
}

.bm-actions{
  display:flex;
  justify-content:flex-end;
  gap:10px;
  flex-wrap:wrap;
  margin-top:14px;
}

.bm-actions.end{
  margin-top:18px;
}

.bm-message{
  margin-top:12px;
  min-height:20px;
  color:var(--bm-gold-2);
  font-weight:700;
}

.bm-plan-card{
  margin-top:10px;
  padding:14px;
  border-radius:18px;
  border:1px solid rgba(255,255,255,.08);
  background:linear-gradient(180deg,#161a21 0%, #11141a 100%);
}

.bm-plan-card strong{
  display:block;
  margin-bottom:6px;
  font-size:18px;
  color:#f7f2e7;
}

.bm-ring-wrap{
  display:grid;
  grid-template-columns:220px 1fr;
  gap:14px;
  align-items:center;
  margin-top:10px;
}

.bm-ring-box{
  display:flex;
  justify-content:center;
  align-items:center;
}

.bm-ring{
  width:200px;
  height:200px;
  border-radius:50%;
  position:relative;
  background:conic-gradient(
    var(--bm-gold) 0deg,
    #f0c566 120deg,
    var(--bm-blue) 220deg,
    #8ba94f 300deg,
    #d86a6a 360deg
  );
  box-shadow:0 10px 24px rgba(0,0,0,.28);
}

.bm-ring::after{
  content:'';
  position:absolute;
  inset:24px;
  border-radius:50%;
  background:linear-gradient(180deg,#171b22 0%, #101319 100%);
  border:1px solid rgba(255,255,255,.06);
}

.bm-ring-center{
  position:absolute;
  inset:0;
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:center;
  z-index:2;
}

.bm-ring-center .big{
  font-size:34px;
  font-weight:800;
  line-height:1;
}

.bm-ring-center .small{
  margin-top:6px;
  font-size:13px;
  color:var(--bm-muted);
}

.bm-summary-grid{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:12px;
}

.bm-summary-card{
  border:1px solid rgba(255,255,255,.08);
  border-radius:18px;
  padding:14px;
  background:rgba(255,255,255,.02);
}

.bm-summary-card .label{
  font-size:12px;
  font-weight:700;
  color:var(--bm-muted);
}

.bm-summary-card .value{
  margin-top:8px;
  font-size:28px;
  font-weight:800;
}

@media (max-width:1150px){
  .bm-mt-dashboard,
  .bm-mt-layout,
  .bm-meal-sections,
  .bm-ring-wrap{
    grid-template-columns:1fr;
  }

  .bm-form-grid{
    grid-template-columns:1fr;
  }
}

@media (max-width:900px){
  .bm-mt-header{
    grid-template-columns:1fr;
  }

  .bm-meal-row{
    grid-template-columns:1fr 1fr;
  }

  .bm-summary-grid{
    grid-template-columns:1fr;
  }
}