:root{
  --orange:#FF9400; --coral:#E4453C; --coral-dark:#C9362D;
  --brown:#5D3A20; --ink:#2E1D10; --ink-soft:#6B5744;
  --cream:#FFFBF5; --white:#fff; --danger:#C9362D; --success:#2E7D32;
  --border:#E9DFCF;
}
*,*::before,*::after{ box-sizing:border-box; }
body{
  margin:0; font-family:'Plus Jakarta Sans', system-ui, sans-serif;
  background:var(--cream); color:var(--ink); line-height:1.5;
}
a{ color:var(--coral-dark); text-decoration:none; }
a:hover{ text-decoration:underline; }

/* ---- auth (login/setup) ---- */
.portal-auth{ display:flex; align-items:center; justify-content:center; min-height:100vh; padding:24px; }
.auth-card{
  background:var(--white); border-radius:16px; padding:36px 32px; max-width:380px; width:100%;
  box-shadow:0 20px 50px rgba(46,29,16,.12);
}
.auth-card h1{ font-size:1.3rem; margin:0 0 6px; }
.auth-sub{ color:var(--ink-soft); font-size:.9rem; margin:0 0 20px; }
.auth-error{ background:#FDECEA; color:var(--danger); padding:10px 14px; border-radius:8px; font-size:.9rem; margin-bottom:16px; }
.auth-form{ display:flex; flex-direction:column; gap:16px; }
.auth-card .auth-back{ display:block; width:fit-content; text-align:center; margin:16px auto 0; }
.auth-back:hover{ text-decoration:none; }

/* ---- shared form fields ---- */
label{ display:flex; flex-direction:column; gap:6px; font-size:.88rem; font-weight:600; color:var(--ink); }
input[type=text], input[type=password], input[type=number], input[type=file], textarea{
  font-family:inherit; font-size:.95rem; padding:10px 12px; border:1px solid var(--border);
  border-radius:8px; background:var(--cream); color:var(--ink);
}
textarea{ resize:vertical; }
input:focus, textarea:focus{ outline:2px solid var(--orange); outline-offset:1px; }

.btn-primary, .btn-secondary, .btn-danger{
  font-family:inherit; font-weight:700; font-size:.9rem; border:none; border-radius:999px;
  padding:11px 22px; cursor:pointer; display:inline-block; text-align:center;
}
.btn-primary{ background:var(--coral); color:#fff; }
.btn-primary:hover{ background:var(--coral-dark); text-decoration:none; }
.btn-secondary{ background:#F1E7D6; color:var(--ink); }
.btn-secondary:hover{ background:#e6d8bf; text-decoration:none; }
.btn-danger{ background:#FDECEA; color:var(--danger); }
.btn-danger:hover{ background:#f8d3ce; }

/* ---- app shell ---- */
.portal-app{ min-height:100vh; }
.portal-header{
  display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:12px;
  background:var(--white); padding:20px 28px; border-bottom:1px solid var(--border);
}
.portal-header h1{ font-size:1.2rem; margin:0 0 2px; }
.portal-header p{ margin:0; font-size:.85rem; color:var(--ink-soft); }
.portal-header__nav{ display:flex; gap:18px; font-size:.88rem; font-weight:600; }

.portal-main{ max-width:820px; margin:0 auto; padding:28px 20px 60px; display:flex; flex-direction:column; gap:24px; }
.portal-card{ background:var(--white); border-radius:14px; padding:24px; box-shadow:0 6px 20px rgba(46,29,16,.06); }
.portal-card--narrow{ max-width:420px; }
.portal-card h2{ font-size:1.05rem; margin:0 0 16px; }
.portal-card__hint{ font-size:.85rem; color:var(--ink-soft); margin:-10px 0 16px; }

.flash{ padding:12px 16px; border-radius:8px; font-size:.9rem; }
.flash--success{ background:#EAF6EB; color:var(--success); }
.flash--error{ background:#FDECEA; color:var(--danger); }

.menu-form{ display:flex; flex-direction:column; gap:16px; }
.menu-form__preview{ width:110px; height:80px; object-fit:cover; border-radius:8px; border:1px solid var(--border); }
.menu-form__preview--wide{ width:240px; height:150px; }
.menu-form__actions{ display:flex; gap:12px; }

.menu-list{ display:flex; flex-direction:column; gap:12px; }
.menu-list__row{
  display:flex; align-items:center; gap:14px; padding:12px; border:1px solid var(--border); border-radius:10px;
}
.menu-list__row img{ width:64px; height:64px; object-fit:cover; border-radius:8px; flex-shrink:0; }
.menu-list__info{ display:flex; flex-direction:column; gap:2px; flex:1; min-width:0; }
.menu-list__info span{ font-size:.85rem; color:var(--ink-soft); }
.menu-list__price{ font-weight:700; color:var(--coral-dark) !important; }
.menu-list__actions{ display:flex; gap:8px; flex-shrink:0; }
.menu-list__actions form{ display:inline; }

@media (max-width:600px){
  .menu-list__row{ flex-wrap:wrap; }
  .portal-header{ flex-direction:column; align-items:flex-start; }
}
