.staff { background: var(--bg); min-height: 100vh; }
.staff-login { padding: 48px 0 80px; max-width: 480px; }
.staff-card {
  background: #fff;
  border-radius: 18px;
  padding: 28px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 12px;
}
.staff-card h1 { font-size: 28px; }
.staff-card p { color: var(--muted); }
.staff-app { padding: 28px 0 80px; }
.staff-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.staff-bar h1 { font-size: 28px; }
.staff-bar__actions { display: flex; gap: 8px; flex-wrap: wrap; }
.staff-hub {
  display: grid;
  gap: 16px;
  margin-top: 12px;
}
.staff-hub__btn {
  display: grid;
  grid-template-columns: 48px 1fr;
  grid-template-rows: auto auto;
  column-gap: 16px;
  row-gap: 4px;
  text-align: left;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px 24px;
  box-shadow: var(--shadow);
  cursor: pointer;
  font: inherit;
  color: inherit;
  text-decoration: none;
}
.staff-hub__btn span {
  grid-row: 1 / span 2;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--brand);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 20px;
  align-self: center;
}
.staff-hub__btn strong {
  font-size: 22px;
  font-weight: 800;
}
.staff-hub__btn em {
  font-style: normal;
  color: var(--muted);
  font-size: 15px;
}
.staff-hub__btn:hover { border-color: var(--brand); }
.staff-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.staff-tabs button {
  height: 40px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
  font-weight: 700;
  cursor: pointer;
}
.staff-tabs button.is-active {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}
.staff-hint { min-height: 22px; font-size: 14px; color: var(--muted); margin-bottom: 12px; }
.staff-hint.is-ok { color: var(--brand-deep); }
.staff-hint.is-err { color: #b42318; }
.staff-toolbar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.staff-editor, .staff-pkg {
  background: #fff;
  border-radius: 16px;
  padding: 18px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 12px;
  margin-bottom: 16px;
}
.staff-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.staff-item {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0;
  background: var(--bg);
}
.staff-item:not(.is-open) > .staff-fold {
  display: none;
}
.staff-item.is-open > .staff-fold {
  display: grid;
}
.staff-item__actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}
.staff-item__toggle {
  flex: 1;
  text-align: left;
  background: none;
  border: 0;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
}
.staff-savebar {
  position: sticky;
  top: 8px;
  z-index: 4;
  background: #fff;
  padding: 8px 0;
}
.staff-photo {
  display: grid;
  gap: 8px;
  justify-items: start;
}
.staff-photo small { color: var(--muted); }
.staff-photo__btn {
  width: 120px;
  height: 120px;
  border: 2px dashed var(--line);
  border-radius: 16px;
  background: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 42px;
  font-weight: 700;
  color: var(--brand);
  padding: 0;
  overflow: hidden;
}
.staff-photo__btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.staff-pkg details,
details.staff-item {
  overflow: hidden;
}
.staff-pkg summary.staff-item__head,
.staff-item summary.staff-item__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  gap: 8px;
  cursor: pointer;
  list-style: none;
  padding: 12px;
}
.staff-pkg summary.staff-item__head::-webkit-details-marker,
.staff-item summary.staff-item__head::-webkit-details-marker {
  display: none;
}
.staff-fold {
  gap: 8px;
  padding: 0 12px 12px;
}
.staff-pkg details:not([open]) > .staff-fold,
details.staff-item:not([open]) > .staff-fold {
  display: none;
}
.staff-pkg details[open] > .staff-fold,
details.staff-item[open] > .staff-fold {
  display: grid;
}
.staff-item__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  gap: 8px;
  padding: 12px;
  cursor: pointer;
}
.staff-flags {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}
.staff-flags label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}
.staff-ings { display: grid; gap: 8px; }
.staff-ing {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 8px;
  align-items: center;
}
.staff-ing input { width: 100%; }
.staff-ing__plus,
.staff-ing__minus {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  font-weight: 700;
}
.staff-ing__plus { background: var(--brand); color: #fff; border-color: var(--brand); }
.staff-dishes {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  background: var(--bg);
}
.staff-dishes summary {
  cursor: pointer;
  font-weight: 700;
  margin-bottom: 8px;
}
.staff-check {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin: 6px 0;
  font-weight: 500;
}
.staff-check small { color: var(--muted); font-weight: 400; }
textarea.staff-area {
  width: 100%;
  min-height: 90px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  font: inherit;
  resize: vertical;
}
@media (max-width: 700px) {
  .staff-grid { grid-template-columns: 1fr; }
  .staff-ing { grid-template-columns: 1fr auto auto; }
}
.staff-toast {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(17, 24, 39, 0.4);
}
.staff-toast[hidden] { display: none; }
.staff-toast__card {
  width: min(100%, 420px);
  background: #fff;
  border-radius: 18px;
  padding: 24px 22px 20px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 16px;
  text-align: center;
}
.staff-toast.is-ok .staff-toast__card {
  border: 2px solid var(--brand);
}
.staff-toast.is-err .staff-toast__card {
  border: 2px solid #c0392b;
}
.staff-toast__text {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
}
.staff-toast__phone {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--brand);
  font-weight: 800;
  font-size: 20px;
  text-decoration: none;
}
.staff-toast.is-err .staff-toast__phone { display: flex; }
.staff-toast__phone:hover { color: var(--brand-hover); }
.staff-toast [data-toast-ok] { display: none; }
.staff-toast.is-err [data-toast-ok] { display: inline-flex; justify-self: center; min-width: 120px; }
