.app-shell,
.app-shell *,
.app-shell *::before,
.app-shell *::after {
  box-sizing: border-box;
}


.app-shell {
  min-height: 100vh;
  background: #f5f7f7;
}

.app-main {
  min-height: 100vh;
}

.auth-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  background: #ffffff;
  color: #062730;
}

.auth-brand-pane {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background: #f4f6f6;
}

.auth-brand-content {
  width: min(560px, calc(100% - 80px));
  margin: 0 auto;
  padding-top: clamp(120px, 19vh, 230px);
}

.auth-brand-content p {
  width: min(440px, 100%);
  margin: 44px 0 0;
  color: rgba(6, 39, 48, 0.78);
  font-size: 19px;
  line-height: 1.45;
}

.auth-wave {
  position: absolute;
  left: -8%;
  right: -8%;
  bottom: -18%;
  height: 34%;
  background: #4dafaa;
  border-radius: 50% 50% 0 0 / 34% 34% 0 0;
}

.auth-brand img,
.dashboard-top img {
  width: 200px;
  height: auto;
}

.auth-form-pane {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 48px clamp(28px, 6vw, 96px);
  background: #ffffff;
}

.auth-form-wrap {
  width: min(760px, 100%);
}

.auth-panel h1,
.auth-form-wrap h1 {
  margin: 0 0 16px;
  color: #666666;
  font-size: clamp(42px, 4vw, 58px);
  font-weight: 400;
  line-height: 1.05;
  text-align: center;
}

.auth-form {
  display: grid;
  gap: 28px;
  margin-top: clamp(54px, 8vh, 86px);
}

.auth-form label {
  display: grid;
  gap: 9px;
  color: #424242;
  font-size: 20px;
  font-weight: 500;
}

.auth-form input {
  width: 100%;
  min-height: 62px;
  padding: 12px 24px;
  border: 1px solid #dedede;
  border-radius: 999px;
  background: #ffffff;
  color: #333333;
  font: inherit;
  font-size: 20px;
}

.auth-form input:focus {
  border-color: #4dafaa;
  outline: 4px solid rgba(77, 175, 170, 0.18);
}

.auth-form input::placeholder {
  color: #aaaaaa;
}

.auth-alert {
  margin: 28px 0 -20px;
  padding: 14px 16px;
  border-radius: 8px;
  background: #fff0e3;
  color: #8a3d00;
  font-weight: 700;
}

.auth-notice {
  margin: 28px 0 -20px;
  padding: 14px 16px;
  border-radius: 8px;
  background: #e8faf5;
  color: #17675f;
  font-weight: 700;
}

.auth-forgot {
  justify-self: end;
  margin-top: -18px;
  color: #8c8c8c;
  font-size: 18px;
  text-decoration: underline;
}

.auth-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 28px;
}

.auth-actions-admin {
  grid-template-columns: 1fr;
}

.auth-primary,
.auth-secondary {
  min-height: 62px;
  border: 0;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 22px;
  font-weight: 600;
  text-decoration: none;
}

.auth-primary {
  background: #f1b36f;
}

.auth-secondary {
  background: #6b6b6b;
}

.auth-secondary-muted {
  opacity: 0.74;
}

.auth-form-register {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 28px;
  row-gap: 22px;
  margin-top: 46px;
}

.auth-field-full,
.auth-form-register .auth-actions {
  grid-column: 1 / -1;
}

.auth-field-hint {
  color: #404040;
  font-size: 16px;
  line-height: 1.35;
}

.auth-field-error {
  color: #b43718;
  font-size: 15px;
  font-style: normal;
  line-height: 1.3;
}

.auth-password-control,
.auth-phone-control {
  width: 100%;
  min-height: 62px;
  border: 1px solid #dedede;
  border-radius: 999px;
  background: #ffffff;
  display: flex;
  align-items: center;
}

.auth-password-control:focus-within,
.auth-phone-control:focus-within {
  border-color: #4dafaa;
  outline: 4px solid rgba(77, 175, 170, 0.18);
}

.auth-password-control input,
.auth-phone-control input {
  min-height: 60px;
  border: 0;
  outline: 0;
  background: transparent;
}

.auth-password-control input:focus,
.auth-phone-control input:focus {
  border-color: transparent;
  outline: 0;
}

.auth-password-control input {
  padding-right: 8px;
}

.auth-password-toggle {
  width: 58px;
  min-width: 58px;
  height: 58px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #252525;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.auth-password-toggle svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.auth-confirm-wrap {
  width: min(760px, 100%);
  text-align: center;
}

.auth-confirm-wrap h1 {
  margin: 0 0 46px;
  color: #666666;
  font-size: clamp(42px, 4vw, 58px);
  font-weight: 400;
  line-height: 1.05;
}

.auth-confirm-wrap p {
  width: min(620px, 100%);
  margin: 0 auto;
  color: #444444;
  font-size: 18px;
  line-height: 1.45;
}

.auth-confirm-email {
  margin-top: 18px;
  color: #4dafaa;
  font-weight: 700;
}

.auth-confirm-note {
  margin-top: 14px;
  color: #777777;
  font-size: 16px;
}

.auth-confirm-link {
  margin-top: 34px;
  min-height: 52px;
  padding: 0 28px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #6b6b6b;
  color: #ffffff;
  font-size: 18px;
  font-weight: 600;
  text-decoration: none;
}

.auth-social {
  margin-top: 24px;
  display: grid;
  justify-items: center;
  gap: 14px;
  color: #555555;
  font-size: 17px;
}

.auth-social > div {
  display: flex;
  align-items: center;
  gap: 18px;
}

.auth-social a {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #ffffff;
  font-weight: 800;
  text-decoration: none;
}

.auth-social-vk {
  background: #327cf6;
  font-family: Arial, sans-serif;
}

.auth-social-g {
  background: conic-gradient(#4285f4, #34a853, #fbbc05, #ea4335, #4285f4);
  font-family: Arial, sans-serif;
}

.dashboard-page {
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(6, 39, 48, 0.82), rgba(6, 39, 48, 0.62)),
    url("/img/hero-desktop.jpg") center/cover no-repeat;
  color: #ffffff;
}

.dashboard-page {
  padding: 32px;
}

.dashboard-top {
  width: min(1180px, 100%);
  margin: 0 auto 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.dashboard-hero,
.dashboard-grid {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.dashboard-hero {
  margin-bottom: 38px;
}

.dashboard-hero h1 {
  margin: 0 0 18px;
  color: #ffffff;
  font-size: clamp(42px, 4vw, 58px);
  font-weight: 700;
  line-height: 1.05;
  text-align: left;
}

.dashboard-hero p:last-child {
  margin: 0;
  font-size: 20px;
  color: rgba(255, 255, 255, 0.82);
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.dashboard-grid article {
  min-height: 220px;
  padding: 26px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  color: #062730;
}

.dashboard-grid span {
  display: block;
  margin-bottom: 22px;
  color: #f18a2a;
  font-weight: 800;
}

.dashboard-grid h2 {
  margin-bottom: 14px;
  font-size: 28px;
}

.dashboard-grid p {
  margin: 0;
  color: rgba(6, 39, 48, 0.72);
}

.cabinet-shell {
  --cabinet-ink: #243238;
  --cabinet-muted: rgba(36, 50, 56, 0.62);
  --cabinet-line: #dfe9e8;
  --cabinet-panel: #ffffff;
  --cabinet-page: #f2f5f4;
  --cabinet-sidebar: #2f3f4b;
  --cabinet-sidebar-dark: #24333e;
  --cabinet-teal: #033e55;
  --cabinet-teal-dark: #02374b;
  --cabinet-amber: #f1b36f;
  --cabinet-red: #ee625f;
  --cabinet-blue: #4d92d8;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 268px minmax(0, 1fr);
  background: var(--cabinet-page);
  color: var(--cabinet-ink);
  font-family: "Nunito", Arial, sans-serif;
  transition: grid-template-columns 0.28s ease;
}

.cabinet-sidebar {
  min-height: 100vh;
  background: linear-gradient(180deg, var(--cabinet-sidebar), var(--cabinet-sidebar-dark));
  color: #ffffff;
  overflow-y: auto;
  overflow-x: hidden;
  transform: translateX(0);
  transition: opacity 0.22s ease, max-height 0.28s ease, transform 0.28s ease, box-shadow 0.28s ease;
}

.cabinet-brand {
  min-height: 86px;
  padding: 18px 22px;
  background: #02374b;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: padding 0.28s ease;
}

.cabinet-brand img {
  width: 160px;
  max-width: 100%;
  height: auto;
  filter: brightness(0) invert(1);
  transition: width 0.28s ease, height 0.28s ease, opacity 0.22s ease;
}

.cabinet-nav {
  padding: 14px 0 28px;
}

.cabinet-nav a,
.cabinet-nav summary {
  min-height: 54px;
  padding: 13px 20px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 17px;
  font-weight: 800;
  line-height: 1.25;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: background-color 0.18s ease, color 0.18s ease, gap 0.28s ease, padding 0.28s ease;
}

.cabinet-nav a > span:last-child,
.cabinet-nav summary > span:last-child {
  min-width: 0;
  max-width: 190px;
  overflow: hidden;
  white-space: nowrap;
  transition: opacity 0.18s ease, max-width 0.28s ease;
}

.cabinet-nav summary > span.cabinet-branch-title:last-child {
  overflow: visible;
  white-space: normal;
  overflow-wrap: anywhere;
}

.cabinet-nav summary {
  cursor: pointer;
  list-style: none;
}

.cabinet-nav summary::-webkit-details-marker {
  display: none;
}

.cabinet-nav summary::after {
  width: 9px;
  height: 9px;
  margin-left: auto;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  content: "";
  transform: rotate(45deg);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.cabinet-nav details[open] summary::after {
  transform: rotate(225deg);
}

.cabinet-nav a:hover,
.cabinet-nav a:focus,
.cabinet-nav summary:hover,
.cabinet-nav summary:focus,
.cabinet-nav-link.is-active,
.cabinet-nav-group.is-active > summary {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.cabinet-nav-mark {
  width: 22px;
  height: 22px;
  opacity: 0.82;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.18s ease;
}

.cabinet-nav-mark svg {
  width: 22px;
  height: 22px;
  display: block;
}

.cabinet-nav a:hover .cabinet-nav-mark,
.cabinet-nav a:focus .cabinet-nav-mark,
.cabinet-nav summary:hover .cabinet-nav-mark,
.cabinet-nav summary:focus .cabinet-nav-mark,
.cabinet-nav-link.is-active .cabinet-nav-mark {
  opacity: 1;
}

.cabinet-nav-children {
  max-height: 960px;
  padding: 4px 0 8px;
  background: rgba(0, 0, 0, 0.16);
  overflow: hidden;
  transition: max-height 0.28s ease, opacity 0.2s ease, padding 0.28s ease;
}

.cabinet-nav-children a {
  min-height: 44px;
  padding-left: 52px;
  font-size: 16px;
  font-weight: 700;
}

.cabinet-nav-children a.is-active {
  background: rgba(77, 175, 170, 0.34);
  color: #ffffff;
}

.cabinet-workspace {
  min-width: 0;
  display: grid;
  grid-template-rows: auto auto;
  align-content: start;
}

.cabinet-topbar {
  min-height: 86px;
  padding: 14px 28px;
  background: var(--cabinet-teal);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.cabinet-icon-button {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  display: grid;
  place-content: center;
  gap: 4px;
  transition: background-color 0.18s ease, transform 0.18s ease;
}

.cabinet-icon-button span {
  width: 19px;
  height: 2px;
  border-radius: 999px;
  background: #ffffff;
  display: block;
  transition: transform 0.22s ease, opacity 0.18s ease;
}

.cabinet-icon-button:hover,
.cabinet-icon-button:focus {
  background: rgba(255, 255, 255, 0.24);
}

.cabinet-shell.is-sidebar-collapsed {
  grid-template-columns: 86px minmax(0, 1fr);
}

.cabinet-shell.is-sidebar-collapsed .cabinet-brand {
  min-height: 86px;
  height: 86px;
  padding-right: 12px;
  padding-left: 12px;
  overflow: hidden;
}

.cabinet-shell.is-sidebar-collapsed .cabinet-brand img {
  width: 54px;
  height: 54px;
  max-width: 54px;
  max-height: 54px;
  object-fit: contain;
}

.cabinet-shell.is-sidebar-collapsed .cabinet-nav a,
.cabinet-shell.is-sidebar-collapsed .cabinet-nav summary {
  padding-right: 0;
  padding-left: 0;
  justify-content: center;
  gap: 0;
}

.cabinet-shell.is-sidebar-collapsed .cabinet-nav-mark {
  margin-right: auto;
  margin-left: auto;
}

.cabinet-shell.is-sidebar-collapsed .cabinet-nav a > span:last-child,
.cabinet-shell.is-sidebar-collapsed .cabinet-nav summary > span:last-child {
  max-width: 0;
  opacity: 0;
}

.cabinet-shell.is-sidebar-collapsed .cabinet-nav summary::after {
  width: 0;
  height: 0;
  margin-left: 0;
  border: 0;
  opacity: 0;
  content: none;
}

.cabinet-shell.is-sidebar-collapsed .cabinet-nav-children {
  max-height: 0;
  padding-top: 0;
  padding-bottom: 0;
  opacity: 0;
}

.cabinet-top-actions {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
}

.cabinet-notifications {
  position: relative;
}

.cabinet-bell {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  transition: background 0.18s ease, box-shadow 0.18s ease;
}

.cabinet-bell:hover,
.cabinet-bell:focus {
  background: rgba(255, 255, 255, 0.24);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.14);
}

.cabinet-bell svg {
  width: 21px;
  height: 21px;
}

.cabinet-bell-count {
  min-width: 19px;
  height: 19px;
  border: 2px solid var(--cabinet-teal);
  border-radius: 999px;
  background: #ee625f;
  color: #ffffff;
  font-size: 10px;
  font-weight: 950;
  line-height: 15px;
  text-align: center;
  position: absolute;
  top: -3px;
  right: -3px;
}

.cabinet-notifications-panel {
  width: min(380px, calc(100vw - 28px));
  max-height: 460px;
  border: 1px solid var(--cabinet-line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--cabinet-ink);
  box-shadow: 0 26px 70px rgba(18, 31, 38, 0.22);
  padding: 14px;
  display: grid;
  gap: 10px;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  transform: translateY(-6px);
  transition: opacity 0.18s ease, transform 0.18s ease;
  z-index: 30;
}

.cabinet-notifications:hover .cabinet-notifications-panel,
.cabinet-notifications:focus-within .cabinet-notifications-panel,
.cabinet-notifications.is-open .cabinet-notifications-panel {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.cabinet-notifications-head,
.cabinet-notification-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.cabinet-notifications-head strong {
  font-size: 17px;
  font-weight: 950;
}

.cabinet-notifications-head a,
.cabinet-notification-card a {
  color: var(--cabinet-teal-dark);
  font-weight: 900;
  text-decoration: none;
}

.cabinet-notification-list {
  max-height: 330px;
  overflow: auto;
  display: grid;
  gap: 8px;
}

.cabinet-notification-card {
  border: 1px solid var(--cabinet-line);
  border-radius: 8px;
  background: #f8fbfb;
  padding: 10px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.cabinet-notification-card.is-danger {
  border-color: rgba(238, 98, 95, 0.38);
  background: #fff8f8;
}

.cabinet-notification-card.is-warning {
  border-color: rgba(229, 123, 25, 0.46);
  background: #fff9f1;
}

.cabinet-notification-card p {
  margin: 4px 0 0;
  color: var(--cabinet-muted);
  font-size: 13px;
  font-weight: 800;
}

.cabinet-notification-card small {
  color: var(--cabinet-muted);
  font-size: 12px;
  font-weight: 800;
}

.cabinet-notification-actions,
.cabinet-notification-page-actions {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
}

.cabinet-notification-action {
  min-height: 30px;
  border: 1px solid var(--cabinet-line);
  border-radius: 999px;
  padding: 5px 9px;
  background: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

.cabinet-notification-accept {
  min-height: 30px;
  border: 0;
  border-radius: 999px;
  padding: 5px 12px;
  background: var(--cabinet-teal-dark);
  color: #ffffff;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.cabinet-notification-page-actions .cabinet-secondary-button {
  white-space: nowrap;
}

.cabinet-notification-delete {
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 999px;
  background: rgba(238, 98, 95, 0.12);
  color: #c54040;
  font-size: 18px;
  font-weight: 950;
  line-height: 1;
  cursor: pointer;
}

.cabinet-notifications-empty {
  margin: 0;
  color: var(--cabinet-muted);
  font-weight: 850;
}

.cabinet-notifications-page {
  padding: clamp(18px, 2.4vw, 28px);
}

.cabinet-notification-page-list {
  display: grid;
  gap: 12px;
}

.cabinet-notification-page-card {
  border: 1px solid var(--cabinet-line);
  border-radius: 8px;
  background: #ffffff;
  padding: 16px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
}

.cabinet-notification-page-card.is-danger,
.cabinet-notification-detail.is-danger {
  border-color: rgba(238, 98, 95, 0.4);
}

.cabinet-notification-page-card.is-warning {
  border-color: rgba(229, 123, 25, 0.5);
  background: #fffaf4;
}

.cabinet-notification-page-card a {
  color: var(--cabinet-ink);
  text-decoration: none;
  display: grid;
  gap: 6px;
}

.cabinet-notification-page-card span,
.cabinet-notification-detail span {
  color: var(--cabinet-muted);
  font-size: 13px;
  font-weight: 850;
}

.cabinet-notification-page-card strong {
  font-size: 18px;
  font-weight: 950;
}

.cabinet-notification-page-card p,
.cabinet-notification-detail p {
  margin: 0;
  color: var(--cabinet-muted);
  font-weight: 800;
}

.cabinet-notification-detail {
  border: 1px solid var(--cabinet-line);
  display: grid;
  gap: 16px;
}

.cabinet-notification-detail h2 {
  margin: 0;
  color: var(--cabinet-ink);
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 950;
}

.cabinet-notification-detail dl {
  margin: 0;
  display: grid;
  gap: 10px;
}

.cabinet-notification-detail dl div {
  border-bottom: 1px solid var(--cabinet-line);
  padding-bottom: 10px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.cabinet-notification-detail dt {
  color: var(--cabinet-muted);
  font-weight: 850;
}

.cabinet-notification-detail dd {
  margin: 0;
  color: var(--cabinet-ink);
  font-weight: 950;
}

.cabinet-notification-accept,
.cabinet-notification-page-card form {
  margin: 0;
}

.cabinet-notification-page-card small {
  color: var(--cabinet-teal-dark);
  font-size: 13px;
  font-weight: 900;
}

.secretary-form {
  display: grid;
  gap: 18px;
}

.secretary-assignee-picker {
  gap: 12px;
}

.secretary-assignee-search input {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--cabinet-line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--cabinet-ink);
  padding: 10px 14px;
  font: inherit;
  font-weight: 850;
}

.secretary-assignee-list {
  max-height: 260px;
  overflow: auto;
  border: 1px solid var(--cabinet-line);
  border-radius: 8px;
  background: #f8fbfb;
  padding: 10px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 10px;
}

.secretary-assignee-list label {
  min-height: 58px;
  border: 1px solid rgba(3, 62, 85, 0.12);
  border-radius: 8px;
  background: #ffffff;
  padding: 10px 12px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.secretary-assignee-list input {
  width: 18px;
  height: 18px;
  accent-color: var(--cabinet-teal);
}

.secretary-assignee-list span {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.secretary-assignee-list strong {
  color: var(--cabinet-ink);
  font-size: 15px;
  font-weight: 950;
}

.secretary-assignee-list small {
  color: var(--cabinet-muted);
  font-size: 12px;
  font-weight: 800;
}

.secretary-remind-field {
  display: none;
}

.secretary-remind-field.is-visible {
  display: grid;
}

.secretary-checklist-editor {
  gap: 12px;
}

.secretary-checklist-items,
.secretary-checklist-run {
  display: grid;
  gap: 10px;
}

.secretary-checklist-edit-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.secretary-checklist-edit-row input {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--cabinet-line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--cabinet-ink);
  padding: 10px 14px;
  font: inherit;
  font-weight: 850;
}

.secretary-checklist-edit-row button {
  min-height: 48px;
  border: 1px solid rgba(238, 98, 95, 0.45);
  border-radius: 8px;
  background: #fff8f8;
  color: #c54040;
  padding: 0 14px;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.secretary-checklist-edit-row button:disabled {
  opacity: 0.45;
  cursor: default;
}

.secretary-checklist-run-row {
  border: 1px solid var(--cabinet-line);
  border-radius: 8px;
  background: #ffffff;
  padding: 14px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
}

.secretary-checklist-run-row input {
  width: 22px;
  height: 22px;
  accent-color: var(--cabinet-teal);
}

.secretary-checklist-run-row span {
  color: var(--cabinet-ink);
  font-size: 16px;
  font-weight: 900;
}

.secretary-checklist-run-row small {
  color: var(--cabinet-muted);
  font-size: 12px;
  font-weight: 850;
  text-align: right;
}

.secretary-attachment-current,
.secretary-attachment-link {
  color: var(--cabinet-teal-dark);
  font-weight: 900;
}

.secretary-attachment-current a,
.secretary-attachment-link {
  width: max-content;
  max-width: 100%;
  text-decoration: none;
  border-bottom: 1px solid rgba(3, 62, 85, 0.35);
}

.employee-secretary-tabs a {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.employee-secretary-tabs a span {
  min-width: 25px;
  height: 25px;
  border-radius: 999px;
  background: rgba(3, 62, 85, 0.09);
  display: inline-grid;
  place-items: center;
  padding: 0 7px;
  font-size: 12px;
  font-weight: 950;
}

.employee-secretary-tabs a.is-active span {
  background: rgba(255, 255, 255, 0.22);
}

.employee-secretary-section {
  margin-top: 18px;
}

.employee-secretary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.employee-secretary-card {
  min-width: 0;
  border: 1px solid var(--cabinet-line);
  border-left: 5px solid #1aa4b6;
  border-radius: 12px;
  background: #ffffff;
  padding: 18px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 13px;
}

.employee-secretary-card.is-assigned {
  border-left-color: #ef665f;
  background: #fffafa;
}

.employee-secretary-card.is-completed {
  border-left-color: #23a878;
  background: #f7fffb;
}

.employee-secretary-card.is-personal {
  border-left-color: #80939b;
}

.employee-secretary-card-head,
.employee-secretary-entry-meta {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 14px;
}

.employee-secretary-card-head time,
.employee-secretary-entry-meta > span:not(.employee-secretary-status) {
  color: var(--cabinet-muted);
  font-size: 12px;
  font-weight: 850;
}

.employee-secretary-status {
  width: max-content;
  max-width: 100%;
  border-radius: 999px;
  background: #e7f5f6;
  color: var(--cabinet-teal-dark);
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 950;
}

.employee-secretary-card.is-assigned .employee-secretary-status,
.employee-secretary-status.is-assigned {
  background: #fff0ef;
  color: #c64641;
}

.employee-secretary-card.is-completed .employee-secretary-status,
.employee-secretary-status.is-completed {
  background: #e9f8f0;
  color: #137b54;
}

.employee-secretary-card h3 {
  margin: 0;
  color: var(--cabinet-ink);
  font-size: clamp(18px, 2vw, 23px);
  line-height: 1.18;
}

.employee-secretary-card p {
  margin: 0;
  color: var(--cabinet-muted);
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.employee-secretary-card > .cabinet-primary-button,
.employee-secretary-card > form {
  margin-top: auto;
}

.employee-secretary-progress {
  width: 100%;
  display: grid;
  gap: 7px;
}

.employee-secretary-progress span,
.employee-secretary-progress strong {
  color: var(--cabinet-ink);
  font-size: 13px;
  font-weight: 900;
}

.employee-secretary-progress progress {
  width: 100%;
  height: 9px;
  border: 0;
  border-radius: 999px;
  overflow: hidden;
}

.employee-secretary-progress progress::-webkit-progress-bar {
  background: #e8eff0;
}

.employee-secretary-progress progress::-webkit-progress-value {
  background: var(--cabinet-teal);
}

.employee-secretary-progress progress::-moz-progress-bar {
  background: var(--cabinet-teal);
}

.employee-secretary-entry {
  display: grid;
  gap: 24px;
}

.employee-secretary-description {
  max-width: 900px;
  color: var(--cabinet-ink);
  font-size: 17px;
  line-height: 1.65;
}

.employee-secretary-callout {
  border: 1px solid rgba(26, 164, 182, 0.25);
  border-radius: 12px;
  background: #f2fbfc;
  padding: 18px;
  display: grid;
  justify-items: start;
  gap: 10px;
}

.employee-secretary-callout.is-complete {
  border-color: rgba(35, 168, 120, 0.28);
  background: #f1fbf6;
}

.employee-secretary-callout strong {
  color: var(--cabinet-ink);
  font-size: 18px;
}

.employee-secretary-callout p {
  margin: 0;
  color: var(--cabinet-muted);
  line-height: 1.5;
}

.secretary-checklist-run-row.is-checked {
  background: #f2fbf6;
}

.secretary-checklist-run-row.is-checked > span {
  color: #617277;
  text-decoration: line-through;
}

.employee-checklist-toggle {
  width: 28px;
  height: 28px;
  border: 2px solid #9dafb5;
  border-radius: 7px;
  background: #ffffff;
  color: #ffffff;
  padding: 0;
  display: grid;
  place-items: center;
  font: inherit;
  font-weight: 950;
  cursor: pointer;
}

.secretary-checklist-run-row.is-checked .employee-checklist-toggle {
  border-color: #23a878;
  background: #23a878;
}

@media (max-width: 1080px) {
  .employee-secretary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .employee-secretary-grid {
    grid-template-columns: 1fr;
  }

  .employee-secretary-entry-head {
    align-items: flex-start;
    gap: 14px;
  }

  .employee-secretary-entry-head .cabinet-secondary-button {
    width: 100%;
  }

  .secretary-checklist-run-row {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .secretary-checklist-run-row small {
    grid-column: 2;
    text-align: left;
  }
}

.cabinet-shift-control {
  margin: 0;
}

.cabinet-create,
.cabinet-logout {
  min-height: 40px;
  padding: 9px 18px;
  border: 0;
  border-radius: 999px;
  background: var(--cabinet-amber);
  color: #ffffff;
  font-size: 16px;
  font-weight: 800;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.cabinet-create {
  background: #0d98a8;
}

.cabinet-create.is-shift-finish {
  background: #ee625f;
}

.cabinet-shift-timer {
  min-height: 42px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.cabinet-shift-timer span {
  color: rgba(255, 255, 255, 0.82);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.cabinet-shift-timer strong {
  min-width: 76px;
  font-size: 16px;
  font-weight: 950;
  font-variant-numeric: tabular-nums;
  text-align: center;
}

.cabinet-logout {
  background: rgba(255, 255, 255, 0.18);
}

.cabinet-create:hover,
.cabinet-create:focus,
.cabinet-logout:hover,
.cabinet-logout:focus {
  color: #ffffff;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.18);
}

.cabinet-user {
  min-height: 42px;
  padding: 5px 12px 5px 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  display: flex;
  align-items: center;
  gap: 9px;
  color: #ffffff;
  text-decoration: none;
  transition: background 0.18s ease, box-shadow 0.18s ease;
}

.cabinet-user:hover,
.cabinet-user:focus {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.22);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.14);
}

.cabinet-user span {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #ffffff;
  color: var(--cabinet-teal-dark);
  display: grid;
  place-items: center;
  font-weight: 900;
}

.cabinet-user strong {
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 15px;
}

.cabinet-user-role {
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.cabinet-content {
  min-width: 0;
  padding: 28px;
  display: grid;
  gap: 22px;
  align-self: start;
  align-content: start;
  grid-auto-rows: max-content;
}

.cabinet-filters {
  display: grid;
  grid-template-columns: repeat(3, minmax(180px, 1fr)) minmax(320px, 1.5fr);
  gap: 18px;
  align-items: center;
}

.cabinet-filters label {
  min-width: 0;
  display: grid;
  gap: 7px;
  color: var(--cabinet-muted);
  font-size: 13px;
  font-weight: 900;
}

.cabinet-filters input,
.cabinet-filters select {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid var(--cabinet-line);
  border-radius: 999px;
  background: #ffffff;
  color: var(--cabinet-ink);
  font-size: 15px;
  font-weight: 800;
}

.cabinet-filter-control,
.cabinet-segments {
  min-height: 52px;
  border: 1px solid var(--cabinet-line);
  border-radius: 999px;
  background: #ffffff;
  color: var(--cabinet-muted);
  box-shadow: 0 12px 24px rgba(36, 50, 56, 0.06);
}

.cabinet-filter-control {
  min-width: 0;
  padding: 0 18px;
  display: flex;
  align-items: center;
}

.cabinet-filter-control select,
.cabinet-filter-control input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--cabinet-muted);
  font-size: 16px;
  font-weight: 800;
}

.cabinet-filter-control select {
  cursor: pointer;
}

.cabinet-filter-control input[type="date"] {
  color-scheme: light;
}

.cabinet-filter-range {
  padding-right: 8px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  gap: 8px;
}

.cabinet-filter-range label {
  min-width: 0;
}

.cabinet-filter-apply {
  min-height: 38px;
  border: 0;
  border-radius: 999px;
  padding: 0 14px;
  background: var(--cabinet-teal);
  color: #ffffff;
  font-size: 13px;
  font-weight: 900;
}

.cabinet-segments {
  padding: 5px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px;
}

.cabinet-segments button {
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--cabinet-muted);
  font-size: 15px;
  font-weight: 800;
}

.cabinet-segments button.is-active {
  background: var(--cabinet-teal);
  color: #ffffff;
}

.cabinet-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.cabinet-metric,
.cabinet-panel,
.cabinet-mini-card {
  border-radius: 8px;
  background: var(--cabinet-panel);
  box-shadow: 0 18px 36px rgba(36, 50, 56, 0.08);
}

.cabinet-metric {
  min-height: 172px;
  padding: 28px 28px 24px;
  border-left: 8px solid var(--cabinet-teal);
  display: grid;
  gap: 14px;
  align-content: start;
}

.cabinet-metric-red {
  border-left-color: var(--cabinet-red);
}

.cabinet-metric-amber {
  border-left-color: var(--cabinet-amber);
}

.cabinet-metric-blue {
  border-left-color: var(--cabinet-blue);
}

.cabinet-metric span,
.cabinet-mini-card span,
.cabinet-panel h2 {
  color: rgba(36, 50, 56, 0.74);
  font-size: 18px;
  font-weight: 900;
}

.cabinet-metric strong {
  font-size: 28px;
  font-weight: 900;
}

.cabinet-metric small {
  color: var(--cabinet-muted);
  font-size: 13px;
  font-weight: 800;
}

.cabinet-dashboard-grid {
  display: grid;
  grid-template-columns: 410px minmax(0, 1fr);
  gap: 22px;
}

.cabinet-stack {
  display: grid;
  gap: 14px;
}

.cabinet-mini-card {
  min-height: 78px;
  padding: 20px 24px;
  border-left: 8px solid var(--cabinet-teal);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.cabinet-mini-card strong {
  font-size: 22px;
  font-weight: 900;
}

.cabinet-panel {
  padding: 26px 28px;
}

.cabinet-panel h2 {
  margin: 0 0 18px;
  color: var(--cabinet-ink);
  text-align: center;
}

.cabinet-panel p {
  margin: 0;
  color: var(--cabinet-muted);
  font-weight: 800;
  text-align: center;
}

.cabinet-panel-limits {
  display: grid;
  gap: 14px;
}

.cabinet-panel-limits h2 {
  text-align: left;
}

.cabinet-panel-limits div {
  padding-bottom: 12px;
  border-bottom: 1px solid var(--cabinet-line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.cabinet-panel-limits strong {
  font-weight: 900;
}

.cabinet-tariff-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
  align-items: stretch;
}

.cabinet-tariff-card {
  min-height: 330px;
  border-top: 6px solid var(--cabinet-teal);
  display: grid;
  gap: 16px;
  align-content: start;
}

.cabinet-tariff-card:nth-child(2) {
  border-top-color: var(--cabinet-amber);
}

.cabinet-tariff-card:nth-child(3) {
  border-top-color: var(--cabinet-blue);
}

.cabinet-tariff-head {
  min-height: 84px;
  display: grid;
  gap: 8px;
  justify-items: center;
  text-align: center;
}

.cabinet-tariff-head h2 {
  margin: 0;
  color: var(--cabinet-ink);
  font-size: 30px;
  text-align: center;
}

.cabinet-tariff-head span {
  width: fit-content;
  min-height: 30px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(77, 175, 170, 0.14);
  color: var(--cabinet-teal-dark);
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.cabinet-tariff-card strong {
  color: var(--cabinet-ink);
  font-size: 34px;
  font-weight: 900;
  line-height: 1;
}

.cabinet-tariff-card p,
.cabinet-tariff-details {
  margin: 0;
  color: var(--cabinet-muted);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.45;
  text-align: left;
}

.cabinet-tariff-details {
  padding-top: 16px;
  border-top: 1px solid var(--cabinet-line);
}

.cabinet-tariff-actions {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cabinet-tariff-current {
  cursor: default;
}

.cabinet-tariff-active {
  margin-bottom: 18px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  border-left: 6px solid var(--cabinet-teal);
}

.cabinet-tariff-active div {
  min-width: 0;
  display: grid;
  gap: 8px;
}

.cabinet-tariff-active span {
  color: var(--cabinet-muted);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.cabinet-tariff-active strong {
  color: var(--cabinet-ink);
  font-size: clamp(22px, 2vw, 30px);
  font-weight: 900;
  line-height: 1.05;
}

.cabinet-chart {
  min-height: 450px;
  display: grid;
  grid-template-rows: auto minmax(280px, 1fr) auto auto;
  gap: 14px;
}

.cabinet-chart-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 20px;
}

.cabinet-chart-header h2 {
  margin-bottom: 6px;
}

.cabinet-chart-header p {
  margin: 0;
  color: var(--cabinet-muted);
  font-size: 14px;
  font-weight: 800;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
}

.cabinet-chart-summary {
  margin: 0;
  display: flex;
  align-items: stretch;
  gap: 10px;
}

.cabinet-chart-summary div {
  min-width: 130px;
  border: 1px solid rgba(3, 62, 85, 0.1);
  border-radius: 16px;
  background: #f8fbfb;
  padding: 10px 12px;
}

.cabinet-chart-summary dt {
  margin: 0 0 4px;
  color: var(--cabinet-muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.cabinet-chart-summary dd {
  margin: 0;
  color: var(--cabinet-ink);
  font-size: 18px;
  font-weight: 900;
}

.cabinet-chart-frame {
  min-width: 0;
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  gap: 12px;
  align-items: stretch;
}

.cabinet-chart-y-scale {
  min-height: 280px;
  padding: 2px 0 4px;
  color: var(--cabinet-muted);
  font-size: 12px;
  font-weight: 800;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: right;
}

.cabinet-chart-grid {
  position: relative;
  min-height: 280px;
  overflow: visible;
  border: 1px solid rgba(3, 62, 85, 0.1);
  border-radius: 18px;
  background:
    linear-gradient(rgba(36, 50, 56, 0.08) 1px, transparent 1px) 0 0 / 100% 20%,
    linear-gradient(90deg, rgba(36, 50, 56, 0.07) 1px, transparent 1px) 0 0 / 8.333% 100%,
    linear-gradient(180deg, rgba(13, 152, 168, 0.1), rgba(255, 255, 255, 0));
}

.cabinet-chart-grid::after {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  border-radius: 999px;
  background: rgba(3, 62, 85, 0.16);
  content: "";
}

.cabinet-chart-svg {
  position: absolute;
  z-index: 1;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.cabinet-chart-area {
  fill: rgba(13, 152, 168, 0.18);
}

.cabinet-chart-line {
  fill: none;
  stroke: #0d98a8;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.cabinet-chart-point {
  position: absolute;
  z-index: 3;
  width: 18px;
  height: 18px;
  border: 3px solid #0d98a8;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 8px 18px rgba(13, 152, 168, 0.22);
  cursor: pointer;
  display: grid;
  place-items: center;
  margin: 0;
  padding: 0;
  transform: translate(-50%, -50%);
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.cabinet-chart-point:hover,
.cabinet-chart-point:focus-visible {
  border-color: #033e55;
  box-shadow: 0 10px 22px rgba(3, 62, 85, 0.22);
  outline: none;
  transform: translate(-50%, -50%) scale(1.24);
}

.cabinet-chart-tooltip {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 12px);
  min-width: 112px;
  border-radius: 14px;
  background: #02374b;
  color: #ffffff;
  padding: 9px 11px;
  box-shadow: 0 14px 32px rgba(3, 62, 85, 0.24);
  font-size: 13px;
  line-height: 1.2;
  opacity: 0;
  pointer-events: none;
  text-align: center;
  transform: translate(-50%, 8px);
  transition: opacity 0.16s ease, transform 0.16s ease;
  white-space: nowrap;
}

.cabinet-chart-tooltip::after {
  position: absolute;
  left: 50%;
  bottom: -6px;
  width: 12px;
  height: 12px;
  background: #02374b;
  content: "";
  transform: translateX(-50%) rotate(45deg);
}

.cabinet-chart-tooltip strong,
.cabinet-chart-tooltip span {
  display: block;
}

.cabinet-chart-tooltip strong {
  margin-bottom: 3px;
}

.cabinet-chart-point:first-of-type .cabinet-chart-tooltip {
  left: -6px;
  transform: translate(0, 8px);
}

.cabinet-chart-point:last-of-type .cabinet-chart-tooltip {
  right: -6px;
  left: auto;
  transform: translate(0, 8px);
}

.cabinet-chart-point:hover .cabinet-chart-tooltip,
.cabinet-chart-point:focus-visible .cabinet-chart-tooltip {
  opacity: 1;
  transform: translate(-50%, 0);
}

.cabinet-chart-point:first-of-type:hover .cabinet-chart-tooltip,
.cabinet-chart-point:first-of-type:focus-visible .cabinet-chart-tooltip,
.cabinet-chart-point:last-of-type:hover .cabinet-chart-tooltip,
.cabinet-chart-point:last-of-type:focus-visible .cabinet-chart-tooltip {
  transform: translate(0, 0);
}

.cabinet-chart-x-scale {
  padding-left: 90px;
  color: var(--cabinet-muted);
  font-size: 13px;
  font-weight: 800;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  align-items: center;
}

.cabinet-chart-x-scale strong {
  color: var(--cabinet-ink);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.cabinet-chart-x-scale span:last-child {
  text-align: right;
}

.cabinet-dashboard-list {
  display: grid;
  gap: 12px;
}

.cabinet-dashboard-list div {
  border-bottom: 1px solid rgba(36, 50, 56, 0.1);
  padding-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.cabinet-dashboard-list div:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.cabinet-dashboard-list span,
.cabinet-dashboard-list strong {
  color: var(--cabinet-ink);
  font-size: 15px;
  font-weight: 900;
}

.cabinet-dashboard-list span {
  display: grid;
  gap: 4px;
}

.cabinet-dashboard-list small {
  color: var(--cabinet-muted);
  font-size: 12px;
  font-weight: 800;
}

.cabinet-forecast-filters {
  grid-template-columns: minmax(190px, 280px) minmax(410px, 1fr) minmax(150px, 220px);
}

.cabinet-forecast-alerts {
  margin: 0 0 22px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}

.cabinet-forecast-alert {
  border: 1px solid rgba(3, 62, 85, 0.08);
  border-left: 6px solid var(--cabinet-teal);
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 16px 36px rgba(3, 62, 85, 0.08);
  padding: 16px 18px;
  display: grid;
  gap: 6px;
}

.cabinet-forecast-alert.is-warning {
  border-left-color: #f2b86f;
}

.cabinet-forecast-alert.is-danger {
  border-left-color: #ef6763;
}

.cabinet-forecast-alert strong {
  color: var(--cabinet-ink);
  font-size: 16px;
  font-weight: 950;
}

.cabinet-forecast-alert span {
  color: var(--cabinet-muted);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.35;
}

.cabinet-forecast-grid {
  align-items: start;
}

.cabinet-forecast-resources {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
}

.cabinet-forecast-resources article {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(3, 62, 85, 0.09);
  border-radius: 16px;
  background: #f8fbfb;
  padding: 16px;
  display: grid;
  gap: 9px;
}

.cabinet-forecast-resources span,
.cabinet-forecast-resources small {
  color: var(--cabinet-muted);
  font-weight: 850;
  overflow-wrap: anywhere;
}

.cabinet-forecast-resources span {
  font-size: 17px;
  line-height: 1.2;
}

.cabinet-forecast-resources strong {
  color: var(--cabinet-ink);
  font-size: 30px;
  font-weight: 950;
  line-height: 1;
  overflow-wrap: anywhere;
}

.cabinet-forecast-resources small {
  min-height: 0;
  font-size: 13px;
  line-height: 1.35;
}

.cabinet-forecast-resources .cabinet-status {
  width: 100%;
  max-width: 100%;
  justify-content: center;
  text-align: center;
  white-space: normal;
}

.cabinet-forecast-hours,
.cabinet-forecast-dishes {
  display: grid;
  gap: 11px;
}

.cabinet-forecast-hours div,
.cabinet-forecast-dishes div {
  min-width: 0;
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr) 54px;
  gap: 10px;
  align-items: center;
}

.cabinet-forecast-dishes div {
  grid-template-columns: minmax(130px, 1fr) 56px;
  position: relative;
  min-height: 34px;
}

.cabinet-forecast-hours span,
.cabinet-forecast-hours strong,
.cabinet-forecast-dishes span,
.cabinet-forecast-dishes strong {
  position: relative;
  z-index: 1;
  color: var(--cabinet-ink);
  font-size: 14px;
  font-weight: 900;
}

.cabinet-forecast-hours i,
.cabinet-forecast-dishes i {
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, #0d98a8, #61b7b2);
  box-shadow: 0 8px 18px rgba(13, 152, 168, 0.16);
  display: block;
}

.cabinet-forecast-dishes i {
  position: absolute;
  z-index: 0;
  left: 0;
  bottom: 0;
  max-width: 100%;
  opacity: 0.25;
}

.cabinet-forecast-days {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px;
}

.cabinet-forecast-days article {
  min-width: 0;
  border: 1px solid rgba(3, 62, 85, 0.09);
  border-radius: 18px;
  background: #ffffff;
  padding: 16px;
  display: grid;
  gap: 14px;
}

.cabinet-forecast-days article > div:first-child {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.cabinet-forecast-days strong,
.cabinet-forecast-days dd {
  color: var(--cabinet-ink);
  font-weight: 950;
}

.cabinet-forecast-days span,
.cabinet-forecast-days dt {
  color: var(--cabinet-muted);
  font-size: 13px;
  font-weight: 850;
}

.cabinet-forecast-day-bar {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(3, 62, 85, 0.08);
}

.cabinet-forecast-day-bar span {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #033e55, #0d98a8);
  display: block;
}

.cabinet-forecast-days dl {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.cabinet-forecast-days dt,
.cabinet-forecast-days dd {
  margin: 0;
}

.cabinet-forecast-days dd {
  font-size: 15px;
}

.cabinet-forecast-stock-panel {
  grid-column: 1 / -1;
}

.cabinet-forecast-stock-panel .cabinet-menu-table-wrap,
.cabinet-forecast-stock-panel .cabinet-menu-table {
  width: 100%;
}

.cabinet-bottom-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.cabinet-bottom-grid .cabinet-panel {
  min-height: 170px;
}

.cabinet-welcome-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  padding: 28px;
  background: rgba(19, 27, 31, 0.72);
  display: grid;
  place-items: center;
}

.cabinet-welcome-form {
  position: relative;
  width: min(980px, 100%);
  min-height: 500px;
  padding: clamp(32px, 5vw, 58px);
  border: 0;
  border-radius: 8px;
  background: #ffffff;
  color: var(--cabinet-ink);
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.32);
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(260px, 0.75fr);
  gap: 36px;
  align-items: center;
}

.cabinet-welcome-close {
  position: absolute;
  top: 22px;
  right: 22px;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: #e8e8e8;
  color: #4f4f4f;
  font-size: 31px;
  font-weight: 800;
  line-height: 1;
  display: grid;
  place-items: center;
}

.cabinet-welcome-copy img {
  width: 170px;
  height: auto;
  margin-bottom: 34px;
}

.cabinet-welcome-copy h1 {
  max-width: 540px;
  margin: 0 0 22px;
  color: var(--cabinet-teal);
  font-size: clamp(36px, 4.4vw, 56px);
  font-weight: 900;
  line-height: 1.03;
  text-transform: uppercase;
}

.cabinet-welcome-copy p {
  max-width: 560px;
  margin: 0 0 20px;
  color: rgba(36, 50, 56, 0.78);
  font-size: 19px;
  line-height: 1.45;
}

.cabinet-welcome-actions {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.cabinet-welcome-muted,
.cabinet-welcome-primary {
  min-height: 50px;
  padding: 0 34px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  font-size: 18px;
  font-weight: 800;
}

.cabinet-welcome-muted {
  background: #d9d9d9;
  color: #4b4b4b;
}

.cabinet-welcome-primary {
  background: var(--cabinet-teal);
}

.cabinet-welcome-device {
  width: min(260px, 100%);
  aspect-ratio: 0.52;
  justify-self: center;
  padding: 12px;
  border: 8px solid #17222a;
  border-radius: 38px;
  background: #17222a;
  box-shadow: 0 34px 44px rgba(36, 50, 56, 0.24);
  transform: rotate(9deg);
}

.cabinet-welcome-device > span {
  width: 78px;
  height: 8px;
  margin: 0 auto 12px;
  border-radius: 999px;
  background: #0c1115;
  display: block;
}

.cabinet-welcome-device div {
  height: calc(100% - 20px);
  padding: 22px 18px;
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(77, 175, 170, 0.18), rgba(255, 255, 255, 0) 42%),
    #ffffff;
}

.cabinet-welcome-device strong,
.cabinet-welcome-device em {
  color: var(--cabinet-teal-dark);
  font-style: normal;
  font-weight: 900;
}

.cabinet-welcome-device p {
  margin: 18px 0 0;
  padding: 12px;
  border-radius: 8px;
  background: #f1f6f5;
  color: var(--cabinet-muted);
  font-weight: 800;
}

.cabinet-welcome-device em {
  margin-top: 26px;
  display: block;
  text-align: center;
}

.cabinet-page-head {
  margin-bottom: 24px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}

.cabinet-page-head p {
  margin: 0 0 8px;
  color: var(--cabinet-teal-dark);
  font-size: 16px;
  font-weight: 900;
  text-transform: uppercase;
}

.cabinet-page-head h1 {
  margin: 0;
  color: var(--cabinet-ink);
  font-size: clamp(30px, 3vw, 44px);
  font-weight: 900;
  line-height: 1.05;
}

.cabinet-page-subtitle {
  display: block;
  margin-top: 10px;
  color: var(--cabinet-muted);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.45;
}

.cabinet-back-link {
  min-height: 42px;
  padding: 10px 18px;
  border: 1px solid var(--cabinet-line);
  border-radius: 999px;
  background: #ffffff;
  color: var(--cabinet-teal-dark);
  font-weight: 900;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.cabinet-back-link:hover,
.cabinet-back-link:focus {
  color: var(--cabinet-teal-dark);
  box-shadow: 0 10px 24px rgba(36, 50, 56, 0.12);
}

.cabinet-video-panel {
  padding: 20px;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 18px 36px rgba(36, 50, 56, 0.08);
}

.cabinet-video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 8px;
  background: #101820;
}

.cabinet-video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.cabinet-section-tabs {
  margin-top: -8px;
  margin-bottom: 4px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.cabinet-section-tabs a {
  min-height: 44px;
  padding: 10px 22px;
  border: 1px solid var(--cabinet-line);
  border-radius: 999px;
  background: #ffffff;
  color: var(--cabinet-ink);
  font-size: 16px;
  font-weight: 900;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 24px rgba(36, 50, 56, 0.06);
}

.cabinet-section-tabs a:hover,
.cabinet-section-tabs a:focus,
.cabinet-section-tabs a.is-active {
  border-color: var(--cabinet-teal);
  background: var(--cabinet-teal);
  color: #ffffff;
}

.cabinet-report-primary-tabs {
  margin-bottom: 14px;
}

.cabinet-report-primary-tabs a {
  min-width: 150px;
  min-height: 48px;
  font-size: 18px;
}

.cabinet-report-secondary-tabs {
  margin-top: 0;
  margin-bottom: 16px;
  gap: 8px;
}

.cabinet-report-secondary-tabs a {
  min-height: 40px;
  padding: 9px 18px;
  font-size: 15px;
}

.cabinet-alert {
  padding: 14px 18px;
  border: 1px solid rgba(238, 98, 95, 0.36);
  border-radius: 8px;
  background: rgba(238, 98, 95, 0.09);
  color: #8c2c2a;
  font-weight: 800;
}

.cabinet-alert p {
  margin: 0;
}

.cabinet-alert-success {
  border-color: rgba(77, 175, 170, 0.36);
  background: rgba(77, 175, 170, 0.12);
  color: var(--cabinet-teal-dark);
}

.cabinet-report-request-panel {
  margin-top: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.cabinet-report-request-panel h2 {
  margin: 0 0 8px;
  font-size: 24px;
}

.cabinet-report-request-panel p {
  max-width: 760px;
  margin: 0;
  color: var(--cabinet-muted);
  font-weight: 700;
}

.cabinet-report-request-panel .cabinet-alert {
  margin-top: 14px;
}

.cabinet-report-request-modal {
  width: min(92vw, 640px);
  padding: 32px;
  border: 0;
  border-radius: 18px;
  color: var(--cabinet-ink);
  background: #ffffff;
  box-shadow: 0 24px 80px rgba(3, 62, 85, 0.22);
}

.cabinet-report-request-modal::backdrop {
  background: rgba(17, 31, 40, 0.58);
  backdrop-filter: blur(4px);
}

.cabinet-report-request-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: rgba(3, 62, 85, 0.08);
  color: var(--cabinet-ink);
  font-size: 26px;
  line-height: 1;
  display: grid;
  place-items: center;
}

.cabinet-report-request-form {
  display: grid;
  gap: 18px;
}

.cabinet-report-request-form h2 {
  margin: 0;
  padding-right: 42px;
  font-size: 28px;
}

.cabinet-report-request-form textarea {
  min-height: 180px;
  resize: vertical;
}

@media (max-width: 760px) {
  .cabinet-report-request-panel {
    align-items: stretch;
    flex-direction: column;
  }

  .cabinet-report-request-panel .cabinet-primary-button {
    width: 100%;
  }

  .cabinet-report-request-modal {
    padding: 24px;
  }
}

/* Subscription checkout and entitlement lock */
.cabinet-tariff-checkout,
.cabinet-tariff-configurator,
.cabinet-active-subscriptions {
  display: grid;
  gap: 18px;
}

.cabinet-addon-grid,
.cabinet-active-subscription-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.cabinet-tablet-equipment-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.cabinet-addon-card,
.cabinet-active-subscription-grid article {
  border: 1px solid #d9e3e6;
  border-radius: 14px;
  background: #fff;
  padding: 16px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
}

.cabinet-addon-card.is-selected {
  border-color: #0d98a8;
  box-shadow: 0 0 0 2px rgba(13, 152, 168, 0.12);
  background: #f5fdfe;
}

.cabinet-addon-checkbox {
  width: 16px;
  height: 16px;
  margin: 3px 0 0;
}

.cabinet-addon-card span,
.cabinet-active-subscription-grid article {
  display: grid;
  gap: 5px;
}

.cabinet-addon-card small,
.cabinet-active-subscription-grid small,
.cabinet-active-subscription-grid span {
  color: #6b777c;
}

.cabinet-addon-card b {
  color: #0d7582;
  white-space: nowrap;
}

.cabinet-tablet-equipment-card {
  grid-template-columns: auto minmax(0, 1fr);
}

.cabinet-tablet-equipment-card b {
  grid-column: 2;
}

.cabinet-tablet-trial-note {
  max-width: 260px;
  color: #8a5a00;
  font-size: 13px;
  font-weight: 800;
}

.cabinet-tariff-pay-button {
  gap: 6px;
  white-space: nowrap;
}

.cabinet-tariff-total-panel {
  display: grid;
  grid-template-columns: minmax(180px, .8fr) repeat(2, minmax(180px, 1fr));
  gap: 18px;
  align-items: end;
}

.cabinet-tariff-total-panel.has-tablet-equipment {
  grid-template-columns: minmax(160px, .8fr) repeat(3, minmax(160px, 1fr));
}

.cabinet-tariff-total-panel > div {
  display: grid;
  gap: 4px;
  padding: 12px 16px;
  border-radius: 12px;
  background: #f4f8f9;
}

.cabinet-tariff-total-panel > div:last-child {
  background: #e7f8fa;
}

.cabinet-tariff-total-panel strong {
  color: #033e55;
  font-size: 24px;
}

.cabinet-active-subscription-grid article {
  grid-template-columns: 1fr auto;
  align-items: center;
}

.cabinet-active-subscription-grid article > *:not(b):not(small):not(a) {
  grid-column: 1;
}

.cabinet-active-subscription-grid article b,
.cabinet-active-subscription-grid article small,
.cabinet-active-subscription-grid article a {
  grid-column: 2;
}

.cabinet-active-subscription-grid ul {
  margin: 4px 0;
  padding-left: 18px;
}

.cabinet-subscription-lock {
  min-height: min(690px, calc(100vh - 120px));
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background: #f4f8f9;
  display: grid;
  place-items: center;
  padding: 28px;
}

.cabinet-subscription-preview {
  position: absolute;
  inset: 22px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  filter: blur(9px);
  opacity: .62;
  pointer-events: none;
}

.cabinet-subscription-preview > span,
.cabinet-subscription-preview > div {
  min-height: 180px;
  border-radius: 18px;
  background: linear-gradient(145deg, #d6e6e9, #edf4f5);
}

.cabinet-subscription-preview > div {
  grid-column: 1 / -1;
  display: grid;
  gap: 14px;
  padding: 22px;
}

.cabinet-subscription-preview i {
  display: block;
  height: 26px;
  border-radius: 8px;
  background: #c8dcdf;
}

.cabinet-subscription-lock-card {
  position: relative;
  z-index: 1;
  width: min(560px, 100%);
  padding: 34px;
  border: 1px solid rgba(13, 152, 168, .25);
  border-radius: 18px;
  background: rgba(255,255,255,.96);
  box-shadow: 0 22px 60px rgba(3,62,85,.18);
  text-align: center;
  display: grid;
  justify-items: center;
  gap: 14px;
}

.cabinet-subscription-lock-card > span {
  color: #0d7582;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 12px;
}

.cabinet-subscription-lock-card h1,
.cabinet-subscription-lock-card p { margin: 0; }

@media (max-width: 900px) {
  .cabinet-addon-grid,
  .cabinet-tablet-equipment-grid,
  .cabinet-active-subscription-grid,
  .cabinet-tariff-total-panel { grid-template-columns: 1fr; }
  .cabinet-tariff-total-panel.has-tablet-equipment { grid-template-columns: 1fr; }
  .cabinet-active-subscription-grid article { grid-template-columns: 1fr; }
  .cabinet-active-subscription-grid article > * { grid-column: 1 !important; }
}

@media (max-width: 600px) {
  .cabinet-addon-card { grid-template-columns: auto 1fr; }
  .cabinet-addon-card b { grid-column: 2; }
  .cabinet-subscription-lock { padding: 14px; }
  .cabinet-subscription-lock-card { padding: 24px 18px; }
}

.cabinet-shift-gate {
  min-height: calc(100vh - 180px);
  display: grid;
  place-items: center;
}

.cabinet-shift-gate .cabinet-panel {
  width: min(100%, 620px);
  padding: 34px;
  text-align: center;
  display: grid;
  gap: 18px;
  justify-items: center;
}

.cabinet-shift-gate span {
  color: var(--cabinet-teal-dark);
  font-size: 13px;
  font-weight: 950;
  text-transform: uppercase;
}

.cabinet-shift-gate h1 {
  margin: 0;
  color: var(--cabinet-ink);
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 950;
  line-height: 1.05;
}

.cabinet-shift-gate p,
.cabinet-shift-gate small {
  max-width: 430px;
  margin: 0;
  color: var(--cabinet-muted);
  font-weight: 800;
  line-height: 1.5;
}

.cabinet-shift-gate form {
  margin: 0;
  width: min(100%, 430px);
  display: grid;
  gap: 14px;
}

.cabinet-shift-branch-field {
  text-align: left;
}

.cabinet-shift-branch-name {
  width: 100%;
  border-radius: 8px;
  background: #f5fbfa;
  padding: 10px 12px;
  color: var(--cabinet-ink) !important;
}

.cabinet-kpi-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.cabinet-kpi-card {
  min-height: 110px;
  padding: 22px;
  border: 1px solid var(--cabinet-line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 16px 32px rgba(36, 50, 56, 0.07);
  display: grid;
  align-content: center;
  gap: 8px;
}

.cabinet-kpi-card span {
  color: var(--cabinet-muted);
  font-size: 14px;
  font-weight: 900;
}

.cabinet-kpi-card strong {
  color: var(--cabinet-ink);
  font-size: clamp(22px, 6vw, 28px);
  font-weight: 900;
  line-height: 1.1;
  white-space: nowrap;
}

.cabinet-status {
  min-height: 26px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(123, 132, 139, 0.15);
  color: #57646b;
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
}

.cabinet-status.is-active {
  background: rgba(77, 175, 170, 0.16);
  color: var(--cabinet-teal-dark);
}

.cabinet-status.is-pending {
  background: rgba(242, 184, 111, 0.2);
  color: #8a5709;
}

.cabinet-status.is-danger {
  background: rgba(239, 103, 99, 0.16);
  color: #b93633;
}

.cabinet-integration-info {
  display: grid;
  gap: 18px;
}

.cabinet-integration-info h3 {
  margin: 0;
  color: var(--cabinet-ink);
  font-size: 18px;
  font-weight: 900;
}

.cabinet-integration-info ul {
  margin: 0;
  padding-left: 20px;
  color: var(--cabinet-muted);
  font-weight: 800;
  line-height: 1.55;
}

.cabinet-integration-info p {
  text-align: left;
}

.cabinet-menu-layout {
  display: grid;
  grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.cabinet-menu-layout-categories {
  grid-template-columns: minmax(320px, 1.1fr) minmax(280px, 0.9fr);
}

.cabinet-menu-panel-head {
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.cabinet-menu-panel-head h2 {
  margin: 0;
  text-align: left;
}

.cabinet-menu-panel-head span {
  color: var(--cabinet-muted);
  font-size: 14px;
  font-weight: 900;
}

.cabinet-menu-panel-actions {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
}

.cabinet-action-link,
.cabinet-primary-button,
.cabinet-secondary-button {
  min-height: 42px;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 900;
  line-height: 1.15;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.cabinet-action-link,
.cabinet-primary-button {
  border: 1px solid var(--cabinet-teal);
  background: var(--cabinet-teal);
  color: #ffffff;
}

.cabinet-action-link:hover,
.cabinet-action-link:focus,
.cabinet-primary-button:hover,
.cabinet-primary-button:focus {
  color: #ffffff;
  box-shadow: 0 0 0 4px rgba(77, 175, 170, 0.16);
}

.cabinet-secondary-button {
  border: 1px solid var(--cabinet-line);
  background: #ffffff;
  color: var(--cabinet-teal-dark);
}

.cabinet-secondary-button:hover,
.cabinet-secondary-button:focus {
  color: var(--cabinet-teal-dark);
  box-shadow: 0 0 0 4px rgba(77, 175, 170, 0.12);
}

.cabinet-table-tools {
  margin: 0 0 18px;
  display: grid;
  grid-template-columns: minmax(260px, 420px) max-content;
  gap: 12px;
  align-items: end;
}

.cabinet-table-search {
  gap: 6px;
}

.cabinet-menu-category-list {
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.cabinet-menu-category-row {
  min-height: 58px;
  padding: 10px 14px 10px calc(14px + (var(--category-depth, 0) * 34px));
  border: 1px solid var(--cabinet-line);
  border-radius: 8px;
  background: #ffffff;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  box-shadow: 0 10px 24px rgba(36, 50, 56, 0.06);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease, transform 0.18s ease, padding 0.18s ease;
}

.cabinet-menu-category-row.is-dragging {
  opacity: 0.56;
  transform: scale(0.99);
}

.cabinet-menu-category-row.is-drop-target {
  border-color: var(--cabinet-teal);
  box-shadow: 0 0 0 4px rgba(77, 175, 170, 0.14), 0 10px 24px rgba(36, 50, 56, 0.06);
}

.cabinet-menu-drag {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: #f1f6f5;
  color: var(--cabinet-muted);
  display: grid;
  place-items: center;
  font-size: 18px;
  cursor: grab;
}

.cabinet-menu-category-row strong {
  min-width: 0;
  overflow: hidden;
  color: var(--cabinet-ink);
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 16px;
  font-weight: 900;
}

.cabinet-store-menu-builder-head,
.cabinet-store-menu-builder-panel {
  align-self: start;
}

.cabinet-store-menu-builder-panel form {
  margin: 0;
  display: grid;
  gap: 18px;
}

.cabinet-menu-builder-row {
  grid-template-columns: 34px minmax(180px, 0.9fr) minmax(220px, 1.1fr) auto;
}

.cabinet-menu-builder-row small {
  min-width: 0;
  overflow: hidden;
  color: var(--cabinet-muted);
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 900;
}

.cabinet-menu-category-row div {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.cabinet-menu-category-row a,
.cabinet-menu-category-row button,
.cabinet-menu-position-row a,
.cabinet-menu-position-row button {
  min-height: 34px;
  padding: 7px 11px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
  text-decoration: none;
}

.cabinet-menu-category-row a,
.cabinet-menu-position-row a {
  border: 1px solid rgba(77, 175, 170, 0.42);
  background: rgba(77, 175, 170, 0.1);
  color: var(--cabinet-teal-dark);
}

.cabinet-menu-category-row button,
.cabinet-menu-position-row button {
  border: 1px solid rgba(238, 98, 95, 0.42);
  background: #ffffff;
  color: #c53f3b;
  cursor: pointer;
}

.cabinet-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.cabinet-form-grid > label,
.cabinet-form-fieldset {
  min-width: 0;
  display: grid;
  gap: 8px;
}

.cabinet-form-grid > label span,
.cabinet-form-fieldset legend,
.cabinet-reservation-tables > legend {
  color: var(--cabinet-ink);
  font-size: 15px;
  font-weight: 900;
}

.cabinet-form-grid > label input,
.cabinet-form-grid > label select,
.cabinet-form-grid > label textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--cabinet-line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--cabinet-ink);
  padding: 12px 15px;
  font: inherit;
  font-weight: 800;
}

.cabinet-form-grid > label textarea {
  min-height: 104px;
  resize: vertical;
}

.cabinet-form-grid > label input:focus,
.cabinet-form-grid > label select:focus,
.cabinet-form-grid > label textarea:focus {
  border-color: var(--cabinet-teal);
  outline: none;
  box-shadow: 0 0 0 4px rgba(77, 175, 170, 0.14);
}

.cabinet-form-grid > label.cabinet-checkbox-field {
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: center;
  justify-content: start;
}

.cabinet-form-grid > label.cabinet-checkbox-field input[type="checkbox"] {
  width: 20px;
  min-height: 20px;
  height: 20px;
  margin: 0;
  padding: 0;
  accent-color: var(--cabinet-teal);
}

.cabinet-form-wide,
.cabinet-form-actions,
.cabinet-form-fieldset {
  grid-column: 1 / -1;
}

.staff-schedule-kpis {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.staff-schedule-form-panel,
.staff-schedule-panel {
  display: grid;
  gap: 20px;
}

.staff-schedule-filters {
  position: relative;
  z-index: 8;
  padding: 16px;
  border: 1px solid var(--cabinet-line);
  border-radius: 12px;
  background: #f8fbfb;
  display: grid;
  grid-template-columns: minmax(150px, 0.75fr) minmax(150px, 0.75fr) minmax(180px, 0.9fr) minmax(220px, 1.2fr) auto;
  align-items: end;
  gap: 12px;
}

.staff-schedule-filters > label,
.staff-schedule-filter-field {
  min-width: 0;
  display: grid;
  gap: 7px;
}

.staff-schedule-filters > label > span,
.staff-schedule-filter-field > span {
  color: var(--cabinet-ink);
  font-size: 13px;
  font-weight: 900;
}

.staff-schedule-filters input[type="date"],
.staff-schedule-filters select {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--cabinet-line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--cabinet-ink);
  padding: 10px 12px;
  font: inherit;
  font-weight: 800;
}

.staff-schedule-filters input:focus,
.staff-schedule-filters select:focus,
.staff-schedule-employee-filter summary:focus-visible {
  border-color: var(--cabinet-teal);
  outline: none;
  box-shadow: 0 0 0 4px rgba(77, 175, 170, 0.14);
}

.staff-schedule-employee-filter {
  position: relative;
}

.staff-schedule-employee-filter summary {
  min-height: 44px;
  border: 1px solid var(--cabinet-line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--cabinet-ink);
  padding: 10px 12px;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-weight: 800;
}

.staff-schedule-employee-filter summary::-webkit-details-marker {
  display: none;
}

.staff-schedule-employee-filter[open] summary {
  border-color: var(--cabinet-teal);
}

.staff-schedule-employee-popover {
  width: min(360px, calc(100vw - 48px));
  max-height: 360px;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 20;
  padding: 12px;
  border: 1px solid var(--cabinet-line);
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 18px 48px rgba(25, 46, 55, 0.18);
  overflow: auto;
}

.staff-schedule-employee-search {
  display: grid;
  gap: 6px;
}

.staff-schedule-employee-search span {
  color: var(--cabinet-muted);
  font-size: 12px;
  font-weight: 800;
}

.staff-schedule-employee-search input {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--cabinet-line);
  border-radius: 8px;
  padding: 9px 11px;
  font: inherit;
}

.staff-schedule-employee-options {
  margin-top: 10px;
  display: grid;
  gap: 6px;
}

.staff-schedule-employee-options > label {
  min-width: 0;
  padding: 9px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: flex-start;
  gap: 9px;
}

.staff-schedule-employee-options > label:hover {
  background: rgba(77, 175, 170, 0.09);
}

.staff-schedule-employee-options input {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  flex: 0 0 auto;
  accent-color: var(--cabinet-teal);
}

.staff-schedule-employee-options span,
.staff-schedule-employee-options strong,
.staff-schedule-employee-options small {
  min-width: 0;
  display: block;
}

.staff-schedule-employee-options strong {
  overflow-wrap: anywhere;
  font-size: 13px;
}

.staff-schedule-employee-options small {
  margin-top: 2px;
  color: var(--cabinet-muted);
  font-size: 11px;
  font-weight: 700;
}

.staff-schedule-employee-empty {
  margin: 12px 0 2px;
  color: var(--cabinet-muted);
  font-size: 13px;
  font-weight: 800;
}

.staff-schedule-filter-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.staff-schedule-filter-actions .cabinet-primary-button,
.staff-schedule-filter-actions .cabinet-secondary-button {
  min-height: 44px;
  padding-inline: 14px;
  white-space: nowrap;
}

.staff-schedule-timezone {
  min-height: 34px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(77, 175, 170, 0.12);
  color: var(--cabinet-teal-dark);
  font-size: 13px;
  font-weight: 900;
}

.staff-schedule-form label small {
  color: var(--cabinet-muted);
  font-size: 12px;
  font-weight: 700;
}

.staff-schedule-weekdays {
  border: 0;
  padding: 0;
  margin: 0;
}

.staff-schedule-weekdays > div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.staff-schedule-weekdays label {
  position: relative;
  cursor: pointer;
}

.staff-schedule-weekdays input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.staff-schedule-weekdays span {
  width: 46px;
  min-height: 42px;
  border: 1px solid var(--cabinet-line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--cabinet-muted);
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 900;
}

.staff-schedule-weekdays input:focus-visible + span {
  outline: 3px solid rgba(77, 175, 170, 0.28);
  outline-offset: 2px;
}

.staff-schedule-weekdays input:checked + span {
  border-color: var(--cabinet-teal);
  background: var(--cabinet-teal);
  color: #ffffff;
}

.staff-schedule-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.staff-schedule-toolbar h2,
.staff-schedule-toolbar p {
  margin: 0;
  text-align: left;
}

.staff-schedule-toolbar p {
  margin-top: 4px;
  color: var(--cabinet-muted);
  font-weight: 700;
}

.staff-schedule-month-nav {
  min-height: 46px;
  border: 1px solid var(--cabinet-line);
  border-radius: 999px;
  background: #ffffff;
  display: inline-flex;
  align-items: center;
  overflow: hidden;
}

.staff-schedule-month-nav a {
  width: 44px;
  min-height: 44px;
  color: var(--cabinet-teal-dark);
  text-decoration: none;
  display: grid;
  place-items: center;
  font-size: 21px;
  font-weight: 900;
}

.staff-schedule-month-nav a:hover,
.staff-schedule-month-nav a:focus-visible {
  background: rgba(77, 175, 170, 0.12);
}

.staff-schedule-month-nav strong {
  min-width: 150px;
  padding-inline: 12px;
  text-align: center;
  text-transform: capitalize;
  white-space: nowrap;
}

.staff-schedule-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.staff-schedule-legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--cabinet-muted);
  font-size: 13px;
  font-weight: 800;
}

.staff-schedule-legend i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #dce8ec;
}

.staff-schedule-legend i.is-planned {
  background: #2e91c9;
}

.staff-schedule-legend i.is-active {
  background: #f2a53b;
}

.staff-schedule-legend i.is-completed {
  background: var(--cabinet-teal);
}

.staff-schedule-table-wrap {
  max-width: 100%;
  border: 1px solid var(--cabinet-line);
  border-radius: 8px;
  background: #ffffff;
  overflow: auto;
  overscroll-behavior-inline: contain;
  scrollbar-color: var(--cabinet-teal) #eef4f4;
}

.staff-schedule-table {
  width: max-content;
  min-width: 100%;
  border-spacing: 0;
  border-collapse: separate;
  color: var(--cabinet-ink);
}

.staff-schedule-table th,
.staff-schedule-table td {
  box-sizing: border-box;
  border-right: 1px solid #e2ebed;
  border-bottom: 1px solid #e2ebed;
  background: #ffffff;
}

.staff-schedule-table thead th {
  position: sticky;
  top: 0;
  z-index: 4;
  min-width: 104px;
  height: 62px;
  padding: 8px;
  background: #f5f8f8;
  text-align: center;
}

.staff-schedule-table thead th span,
.staff-schedule-table thead th strong {
  display: block;
}

.staff-schedule-table thead th span {
  color: var(--cabinet-muted);
  font-size: 11px;
  text-transform: uppercase;
}

.staff-schedule-table thead th strong {
  margin-top: 3px;
  font-size: 17px;
}

.staff-schedule-table td {
  width: 104px;
  min-width: 104px;
  height: 104px;
  padding: 6px;
  vertical-align: top;
}

.staff-schedule-table .is-weekend {
  background: #fcf8f3;
}

.staff-schedule-table .is-today {
  box-shadow: inset 0 3px 0 var(--cabinet-teal);
}

.staff-schedule-person-head,
.staff-schedule-person {
  position: sticky !important;
  left: 0;
  z-index: 5 !important;
  width: 230px;
  min-width: 230px !important;
  max-width: 230px;
  padding: 12px 14px !important;
  background: #f8fbfb !important;
  text-align: left !important;
  box-shadow: 8px 0 18px rgba(36, 50, 56, 0.06);
}

.staff-schedule-person-head {
  z-index: 7 !important;
  vertical-align: middle;
}

.staff-schedule-person strong,
.staff-schedule-person span,
.staff-schedule-person small {
  display: block;
}

.staff-schedule-person strong {
  font-size: 14px;
  line-height: 1.3;
}

.staff-schedule-person span {
  margin-top: 5px;
  color: var(--cabinet-muted);
  font-size: 12px;
}

.staff-schedule-person small {
  margin-top: 7px;
  color: #c54040;
  font-size: 11px;
}

.staff-schedule-table tr.is-blocked td {
  opacity: 0.6;
}

.staff-schedule-total-head,
.staff-schedule-total {
  position: sticky !important;
  right: 0;
  z-index: 5 !important;
  width: 96px;
  min-width: 96px !important;
  background: #f8fbfb !important;
  text-align: center;
  box-shadow: -8px 0 18px rgba(36, 50, 56, 0.06);
}

.staff-schedule-total-head {
  z-index: 6 !important;
}

.staff-schedule-total {
  padding: 14px 8px !important;
  vertical-align: middle !important;
}

.staff-schedule-total strong,
.staff-schedule-total span {
  display: block;
}

.staff-schedule-total strong {
  font-size: 20px;
}

.staff-schedule-total span {
  margin-top: 5px;
  color: var(--cabinet-muted);
  font-size: 11px;
}

.staff-schedule-shift {
  position: relative;
  min-height: 84px;
  border: 1px solid rgba(46, 145, 201, 0.28);
  border-left: 4px solid #2e91c9;
  border-radius: 7px;
  background: rgba(46, 145, 201, 0.09);
  padding: 8px 19px 7px 8px;
  display: grid;
  align-content: start;
  gap: 3px;
}

.staff-schedule-shift + .staff-schedule-shift {
  margin-top: 5px;
}

.staff-schedule-shift.is-active {
  border-color: rgba(242, 165, 59, 0.34);
  border-left-color: #f2a53b;
  background: rgba(242, 165, 59, 0.12);
}

.staff-schedule-shift.is-completed {
  border-color: rgba(77, 175, 170, 0.3);
  border-left-color: var(--cabinet-teal);
  background: rgba(77, 175, 170, 0.1);
}

.staff-schedule-shift strong {
  font-size: 12px;
  white-space: nowrap;
}

.staff-schedule-shift span,
.staff-schedule-shift small {
  color: var(--cabinet-muted);
  font-size: 10px;
  font-weight: 800;
}

.staff-schedule-shift form {
  position: absolute;
  top: 3px;
  right: 3px;
}

.staff-schedule-shift button {
  width: 20px;
  height: 20px;
  border: 0;
  border-radius: 50%;
  background: rgba(197, 64, 64, 0.12);
  color: #c54040;
  padding: 0;
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 16px;
  line-height: 1;
}

.staff-schedule-add {
  width: 100%;
  min-height: 88px;
  border: 1px dashed #c9dadd;
  border-radius: 7px;
  background: transparent;
  color: #90a1a6;
  display: grid;
  place-items: center;
  font-size: 24px;
  font-weight: 700;
  cursor: pointer;
}

.staff-schedule-add:hover,
.staff-schedule-add:focus-visible {
  border-color: var(--cabinet-teal);
  background: rgba(77, 175, 170, 0.08);
  color: var(--cabinet-teal-dark);
}

.staff-schedule-scroll-hint {
  margin: -8px 0 0;
  color: var(--cabinet-muted);
  font-size: 12px;
  font-weight: 700;
}

.staff-schedule-dialog {
  width: min(860px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  border: 0;
  border-radius: 18px;
  padding: 28px;
  color: var(--cabinet-ink);
  box-shadow: 0 24px 80px rgba(25, 46, 55, 0.24);
  overflow: auto;
}

.staff-schedule-dialog::backdrop {
  background: rgba(18, 32, 40, 0.52);
  backdrop-filter: blur(6px);
}

.staff-schedule-dialog-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: #eef4f3;
  color: var(--cabinet-ink);
  cursor: pointer;
  font-size: 26px;
  line-height: 1;
}

.staff-schedule-dialog-head {
  padding-right: 42px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.staff-schedule-dialog-head > div > span {
  display: block;
  margin-bottom: 5px;
  color: var(--cabinet-teal);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.staff-schedule-dialog-head h2,
.staff-schedule-dialog-head p {
  margin: 0;
}

.staff-schedule-dialog-head h2 {
  font-size: 28px;
}

.staff-schedule-dialog-head p {
  margin-top: 6px;
  color: var(--cabinet-muted);
  font-size: 14px;
  font-weight: 700;
}

.staff-schedule-dialog .staff-schedule-form {
  margin-top: 22px;
}

.staff-schedule-dialog-actions {
  align-items: center;
}

.staff-schedule-dialog-actions > span {
  color: var(--cabinet-muted);
  font-size: 12px;
  font-weight: 700;
}

.cabinet-alert.is-success {
  border-color: rgba(77, 175, 170, 0.36);
  background: rgba(77, 175, 170, 0.12);
  color: var(--cabinet-teal-dark);
}

.cabinet-danger-button {
  min-height: 42px;
  border: 1px solid rgba(238, 98, 95, 0.5);
  border-radius: 999px;
  background: #ffffff;
  color: #c54040;
  padding: 10px 16px;
  font: inherit;
  font-size: 15px;
  font-weight: 900;
  cursor: pointer;
}

.cabinet-danger-button:hover,
.cabinet-danger-button:focus {
  box-shadow: 0 0 0 4px rgba(238, 98, 95, 0.12);
}

.training-block-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 18px;
  align-items: start;
}

.training-employee-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.training-block-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  min-width: 0;
  min-height: 100%;
}

.training-block-card > *,
.training-card-head > div,
.training-meta-list,
.training-meta-list > div,
.training-lecture-list,
.training-lecture-list a,
.training-lecture-list a span {
  min-width: 0;
}

.training-block-card.is-fixtech {
  border-color: rgba(13, 152, 168, 0.36);
  box-shadow: 0 18px 44px rgba(3, 62, 85, 0.08);
}

.training-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.training-card-head h2 {
  margin: 4px 0 0;
  color: var(--cabinet-ink);
  font-size: clamp(22px, 2.1vw, 32px);
  line-height: 1.08;
  text-align: left;
  overflow-wrap: anywhere;
}

.training-card-kicker {
  color: var(--cabinet-teal);
  font-size: 13px;
  font-weight: 950;
  text-transform: uppercase;
}

.training-source-badge {
  border-radius: 999px;
  background: rgba(13, 152, 168, 0.12);
  color: var(--cabinet-teal-dark);
  padding: 7px 11px;
  font-size: 13px;
  font-weight: 950;
  white-space: nowrap;
}

.training-meta-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.training-meta-list div {
  border: 1px solid var(--cabinet-line);
  border-radius: 8px;
  background: #f8fbfb;
  padding: 10px;
}

.training-meta-list dt {
  margin: 0 0 4px;
  color: var(--cabinet-muted);
  font-size: 12px;
  font-weight: 900;
}

.training-meta-list dd {
  margin: 0;
  color: var(--cabinet-ink);
  font-size: 18px;
  font-weight: 950;
}

.training-lecture-list {
  display: grid;
  gap: 8px;
}

.training-lecture-list a,
.training-empty-line {
  min-height: 48px;
  border: 1px solid var(--cabinet-line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--cabinet-ink);
  padding: 10px 12px;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-weight: 900;
}

.training-lecture-list a:hover,
.training-lecture-list a:focus {
  border-color: rgba(13, 152, 168, 0.55);
  box-shadow: 0 0 0 4px rgba(13, 152, 168, 0.12);
}

.training-lecture-list small {
  color: var(--cabinet-muted);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.training-lecture-list a span {
  overflow-wrap: anywhere;
}

.training-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.training-card-actions form,
.training-delete-lecture-form {
  margin: 0;
}

.training-form,
.training-answer-form {
  display: grid;
  gap: 18px;
}

.training-question-editor {
  display: grid;
  gap: 16px;
}

.training-question-list {
  display: grid;
  gap: 14px;
}

.training-question-row,
.admin-training-question {
  border: 1px solid var(--cabinet-line);
  border-radius: 8px;
  background: #ffffff;
  padding: 14px;
  display: grid;
  grid-template-columns: minmax(180px, 0.65fr) minmax(220px, 1fr);
  gap: 12px;
}

.training-question-row label,
.training-answer-row {
  min-width: 0;
}

.training-question-row label:not(.cabinet-check-field),
.training-answer-row {
  display: grid;
  gap: 8px;
}

.training-question-row label span,
.training-answer-row legend {
  color: var(--cabinet-ink);
  font-size: 14px;
  font-weight: 900;
}

.training-question-row input,
.training-question-row select,
.training-question-row textarea,
.training-grade-form input,
.training-grade-form select,
.training-answer-row input,
.training-answer-row textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--cabinet-line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--cabinet-ink);
  padding: 10px 12px;
  font: inherit;
  font-weight: 800;
}

.training-question-options,
.training-question-row .cabinet-check-field,
.training-question-row .cabinet-danger-button,
.training-question-row textarea {
  grid-column: 1 / -1;
}

.training-readonly-note {
  border-color: rgba(13, 152, 168, 0.3);
  background: rgba(13, 152, 168, 0.08);
}

.training-lecture-reader,
.training-history-panel {
  display: grid;
  gap: 18px;
}

.training-lecture-content {
  color: var(--cabinet-ink);
  font-size: 17px;
  font-weight: 760;
  line-height: 1.68;
}

.training-lecture-content h2 {
  margin: 24px 0 10px;
  color: var(--cabinet-teal-dark);
  font-size: 24px;
  text-align: left;
}

.training-lecture-content h2:first-child {
  margin-top: 0;
}

.training-answer-row {
  border: 1px solid var(--cabinet-line);
  border-radius: 8px;
  padding: 14px;
}

.training-answer-row legend {
  padding: 0 6px;
}

.training-answers-cell p {
  margin: 0 0 8px;
}

.training-grade-form {
  display: grid;
  grid-template-columns: 84px minmax(160px, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.training-grade-form button {
  min-height: 40px;
  border: 1px solid var(--cabinet-teal);
  border-radius: 999px;
  background: var(--cabinet-teal);
  color: #ffffff;
  padding: 8px 14px;
  font: inherit;
  font-weight: 900;
}

.training-kpi-grid {
  margin-bottom: 18px;
}

.training-review-intro {
  margin-bottom: 18px;
  border-color: rgba(13, 152, 168, 0.3);
  background: rgba(13, 152, 168, 0.08);
}

.training-review-intro h2,
.training-review-intro p,
.training-review-card h2,
.training-review-card p {
  margin: 0;
}

.training-review-intro p {
  margin-top: 8px;
  color: var(--cabinet-muted);
  font-weight: 800;
  line-height: 1.55;
}

.training-review-list {
  display: grid;
  gap: 16px;
}

.training-review-card {
  display: grid;
  gap: 18px;
}

.training-review-card.is-pending {
  border-color: rgba(217, 70, 70, 0.38);
  box-shadow: inset 5px 0 0 rgba(217, 70, 70, 0.85);
}

.training-review-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.training-review-card-head > div {
  min-width: 0;
}

.training-review-card-head h2 {
  margin-top: 4px;
  overflow-wrap: anywhere;
}

.training-review-card-head p {
  margin-top: 6px;
  color: var(--cabinet-muted);
  font-weight: 800;
}

.training-review-status {
  flex: 0 1 auto;
  max-width: 340px;
  border-radius: 999px;
  padding: 8px 12px;
  text-align: center;
  font-size: 13px;
  font-weight: 950;
  line-height: 1.25;
}

.training-review-status.is-pending {
  background: rgba(217, 70, 70, 0.12);
  color: #a42323;
}

.training-review-status.is-graded {
  background: rgba(21, 162, 139, 0.14);
  color: #08745f;
}

.training-review-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.training-review-meta div {
  min-width: 0;
  border: 1px solid var(--cabinet-line);
  border-radius: 8px;
  background: #f8fbfb;
  padding: 10px 12px;
}

.training-review-meta dt {
  color: var(--cabinet-muted);
  font-size: 12px;
  font-weight: 900;
}

.training-review-meta dd {
  margin: 4px 0 0;
  color: var(--cabinet-ink);
  font-weight: 900;
  overflow-wrap: anywhere;
}

.training-review-answers {
  display: grid;
  gap: 10px;
}

.training-review-answers h3 {
  margin: 0;
  color: var(--cabinet-ink);
}

.training-review-answers p {
  display: grid;
  gap: 4px;
  border-left: 3px solid rgba(13, 152, 168, 0.38);
  padding-left: 12px;
  color: var(--cabinet-muted);
  line-height: 1.45;
}

.training-review-answers strong {
  color: var(--cabinet-ink);
}

.training-review-grade-form label {
  display: grid;
  gap: 6px;
}

.training-review-grade-form label > span {
  color: var(--cabinet-muted);
  font-size: 12px;
  font-weight: 900;
}

@media (max-width: 760px) {
  .training-block-grid,
  .training-question-row,
  .admin-training-question,
  .training-grade-form {
    grid-template-columns: 1fr;
  }

  .training-meta-list {
    grid-template-columns: 1fr;
  }

  .training-card-head,
  .training-lecture-list a,
  .training-review-card-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .training-review-status {
    max-width: none;
    width: 100%;
  }

  .training-review-meta {
    grid-template-columns: 1fr;
  }

  .training-card-actions,
  .training-card-actions a,
  .training-card-actions form,
  .training-card-actions button {
    width: 100%;
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.cabinet-inline-form {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) minmax(170px, 1fr) auto;
  align-items: center;
  gap: 8px;
}

.cabinet-inline-form label {
  min-width: 0;
}

.cabinet-inline-form input {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--cabinet-line);
  border-radius: 8px;
  background: #ffffff;
  padding: 9px 12px;
  color: var(--cabinet-ink);
  font: inherit;
  font-weight: 800;
}

.cabinet-checkbox-grid {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.cabinet-checkbox-grid legend {
  grid-column: 1 / -1;
  margin: 0 0 2px;
  color: var(--cabinet-muted);
  font-size: 14px;
  font-weight: 950;
}

.cabinet-checkbox-grid label {
  min-height: 46px;
  border: 1px solid var(--cabinet-line);
  border-radius: 8px;
  background: #ffffff;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--cabinet-ink);
  font-weight: 900;
}

.cabinet-checkbox-grid input {
  width: 18px;
  height: 18px;
  accent-color: var(--cabinet-teal);
}

.cabinet-reservations-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.85fr) minmax(0, 1.35fr);
  gap: 18px;
  align-items: start;
}

.cabinet-reservation-calendar {
  display: grid;
  gap: 14px;
}

.cabinet-reservation-calendar-head {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 42px;
  align-items: center;
  gap: 10px;
}

.cabinet-reservation-calendar-head h2 {
  margin: 0;
  color: var(--cabinet-ink);
  font-size: 24px;
  font-weight: 950;
  text-align: center;
}

.cabinet-reservation-calendar-head a {
  width: 42px;
  height: 42px;
  border: 1px solid var(--cabinet-line);
  border-radius: 999px;
  background: #ffffff;
  color: var(--cabinet-teal-dark);
  display: grid;
  place-items: center;
  font-size: 28px;
  font-weight: 900;
  line-height: 1;
  text-decoration: none;
}

.cabinet-reservation-weekdays,
.cabinet-reservation-days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
}

.cabinet-reservation-weekdays span {
  color: var(--cabinet-muted);
  font-size: 12px;
  font-weight: 950;
  text-align: center;
  text-transform: uppercase;
}

.cabinet-reservation-day {
  min-height: 68px;
  border: 1px solid var(--cabinet-line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--cabinet-ink);
  padding: 8px;
  text-decoration: none;
  display: grid;
  align-content: space-between;
  gap: 6px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.cabinet-reservation-day strong {
  font-size: 16px;
  font-weight: 950;
}

.cabinet-reservation-day span {
  width: max-content;
  min-width: 24px;
  height: 24px;
  border-radius: 999px;
  background: rgba(13, 152, 168, 0.12);
  color: var(--cabinet-teal-dark);
  display: inline-grid;
  place-items: center;
  padding: 0 7px;
  font-size: 12px;
  font-weight: 950;
}

.cabinet-reservation-day.is-muted {
  opacity: 0.48;
}

.cabinet-reservation-day.is-today {
  border-color: rgba(13, 152, 168, 0.42);
}

.cabinet-reservation-day.is-selected,
.cabinet-reservation-day:hover,
.cabinet-reservation-day:focus {
  border-color: var(--cabinet-teal);
  background: #eef9f8;
  box-shadow: 0 0 0 4px rgba(13, 152, 168, 0.12);
}

.cabinet-reservation-day.has-reservations {
  border-color: rgba(13, 152, 168, 0.34);
}

.cabinet-reservation-form {
  align-items: start;
}

.cabinet-reservation-tables {
  margin: 0;
  padding: 0;
  border: 0;
}

.staff-table-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.staff-table-action-row form {
  margin: 0;
}

.cabinet-field,
.cabinet-check-field {
  min-width: 0;
  display: grid;
  gap: 8px;
}

.cabinet-field-full {
  grid-column: 1 / -1;
}

.cabinet-field.secretary-remind-field {
  display: none;
}

.cabinet-field.secretary-remind-field.is-visible {
  display: grid;
}

.cabinet-field span,
.cabinet-check-field span,
.cabinet-menu-upload-state {
  color: var(--cabinet-ink);
  font-size: 15px;
  font-weight: 900;
}

.cabinet-menu-upload-state {
  color: var(--cabinet-muted);
  font-size: 13px;
  line-height: 1.35;
}

.cabinet-menu-image-preview {
  width: min(320px, 100%);
  padding: 8px;
  border: 1px solid var(--cabinet-line);
  border-radius: 8px;
  background: #f8fbfa;
}

.cabinet-menu-image-preview img {
  width: 100%;
  aspect-ratio: 4 / 3;
  height: auto;
  border-radius: 7px;
  object-fit: cover;
  display: block;
}

.cabinet-menu-current-image {
  grid-column: 1 / -1;
}

.cabinet-menu-thumb {
  width: 76px;
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  object-fit: cover;
  display: block;
  box-shadow: 0 8px 20px rgba(26, 45, 58, 0.12);
}

.cabinet-menu-thumb-empty {
  display: grid;
  place-items: center;
  background: #f1f5f5;
  color: var(--cabinet-muted);
  font-weight: 900;
  box-shadow: none;
}

.cabinet-branch-logo-thumb,
.cabinet-techcard-thumb {
  width: 64px;
  height: 48px;
  border-radius: 8px;
  object-fit: cover;
  background: #f1f5f5;
  display: block;
}

.cabinet-image-preview-row {
  grid-column: 1 / -1;
  border: 1px solid var(--cabinet-line);
  border-radius: 8px;
  background: #f8fbfa;
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.cabinet-image-preview-copy {
  min-width: 0;
  display: grid;
  gap: 10px;
}

.cabinet-image-preview-copy > span {
  color: var(--cabinet-muted);
  font-weight: 850;
  line-height: 1.4;
}

.cabinet-image-remove-check {
  justify-self: start;
}

.cabinet-branch-logo-preview,
.cabinet-techcard-image-preview {
  width: min(240px, 42vw);
  max-height: 160px;
  border-radius: 8px;
  object-fit: contain;
  background: #ffffff;
}

.cabinet-inline-delete-panel {
  margin-top: 18px;
  padding: 18px;
  display: grid;
  gap: 12px;
}

.cabinet-inline-hint {
  margin-top: 6px;
  color: var(--cabinet-muted);
  font-size: 12px;
  font-weight: 850;
  display: block;
}

.cabinet-field input,
.cabinet-field select,
.cabinet-field textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 15px;
  border: 1px solid var(--cabinet-line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--cabinet-ink);
  font: inherit;
  font-weight: 800;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.cabinet-field textarea {
  min-height: 96px;
  resize: vertical;
}

.cabinet-field .ck.ck-editor {
  min-width: 0;
  color: var(--cabinet-ink);
}

.cabinet-field .ck.ck-toolbar {
  border-color: var(--cabinet-line);
  border-radius: 8px 8px 0 0;
  background: #ffffff;
}

.cabinet-field .ck.ck-editor__main > .ck-editor__editable {
  min-height: 180px;
  border-color: var(--cabinet-line);
  border-radius: 0 0 8px 8px;
  color: var(--cabinet-ink);
  font: inherit;
  font-weight: 700;
  line-height: 1.5;
}

.cabinet-field .ck.ck-editor__main > .ck-editor__editable:focus {
  border-color: var(--cabinet-teal);
  box-shadow: 0 0 0 4px rgba(77, 175, 170, 0.14);
}

.training-form .ck.ck-editor {
  width: 100%;
  min-width: 0;
}

.training-form .ck.ck-toolbar {
  max-width: 100%;
  overflow: hidden;
}

.training-form .ck.ck-toolbar > .ck-toolbar__items {
  flex-wrap: wrap;
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

.training-form .ck.ck-editor__main > .ck-editor__editable {
  min-height: 320px;
  overflow-wrap: anywhere;
}

.training-form .ck-content {
  font-weight: 500;
}

.training-form .ck-content h2,
.training-form .ck-content h3,
.training-form .ck-content h4 {
  color: var(--cabinet-ink);
  font-weight: 800;
  line-height: 1.25;
}

.training-form .ck-content p,
.training-form .ck-content li,
.training-form .ck-content blockquote,
.training-form .ck-content td,
.training-form .ck-content th {
  line-height: 1.6;
}

.fixtech-rich-editor {
  overflow: hidden;
  width: 100%;
  border: 1px solid #d7e2e4;
  border-radius: 14px;
  background: #fff;
}

.fixtech-rich-editor__toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 9px;
  border-bottom: 1px solid #d7e2e4;
  background: #f7fafb;
}

.fixtech-rich-editor__toolbar button {
  min-height: 34px;
  padding: 6px 10px;
  border: 1px solid #cbdadd;
  border-radius: 8px;
  background: #fff;
  color: #16363e;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.fixtech-rich-editor__toolbar button:hover,
.fixtech-rich-editor__toolbar button:focus-visible {
  border-color: #159aae;
  outline: none;
}

.fixtech-rich-editor__toolbar button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.fixtech-rich-editor__surface {
  min-height: 220px;
  padding: 16px;
  color: #18343b;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.fixtech-rich-editor__surface:focus {
  outline: 2px solid rgba(21, 154, 174, 0.2);
  outline-offset: -2px;
}

.cabinet-field input:focus,
.cabinet-field select:focus,
.cabinet-field textarea:focus {
  border-color: var(--cabinet-teal);
  box-shadow: 0 0 0 4px rgba(77, 175, 170, 0.14);
}

.cabinet-field input[readonly] {
  background: #f6fbfa;
  color: var(--cabinet-muted);
}

.cabinet-profile-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  align-items: start;
}

.cabinet-profile-panel {
  display: grid;
  gap: 18px;
}

.cabinet-profile-actions {
  display: flex;
  justify-content: flex-start;
  gap: 10px;
}

.cabinet-check-field {
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--cabinet-line);
  border-radius: 8px;
  background: #ffffff;
  display: flex;
  align-items: center;
  gap: 10px;
  align-self: end;
}

.cabinet-check-field input {
  width: 20px;
  height: 20px;
  margin: 0;
  flex: 0 0 auto;
  accent-color: var(--cabinet-teal);
}

.cabinet-form-actions {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.cabinet-menu-position-list {
  display: grid;
  gap: 12px;
}

.cabinet-menu-position-row {
  padding: 14px;
  border: 1px solid var(--cabinet-line);
  border-radius: 8px;
  background: #ffffff;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.cabinet-menu-position-row.is-active {
  border-color: var(--cabinet-teal);
  box-shadow: 0 0 0 4px rgba(77, 175, 170, 0.12);
}

.cabinet-menu-position-row strong,
.cabinet-menu-position-row span {
  display: block;
}

.cabinet-menu-position-row strong {
  margin-bottom: 5px;
  color: var(--cabinet-ink);
  font-weight: 900;
}

.cabinet-menu-position-row span {
  color: var(--cabinet-muted);
  font-size: 14px;
  font-weight: 800;
}

.cabinet-menu-position-row form {
  margin: 0;
}

.cabinet-menu-position-form {
  display: grid;
  gap: 20px;
}

.cabinet-menu-form-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.cabinet-menu-form-tabs button {
  min-height: 42px;
  padding: 10px 16px;
  border: 1px solid var(--cabinet-line);
  border-radius: 999px;
  background: #ffffff;
  color: var(--cabinet-ink);
  font-size: 15px;
  font-weight: 900;
  cursor: pointer;
}

.cabinet-menu-form-tabs button:hover,
.cabinet-menu-form-tabs button:focus,
.cabinet-menu-form-tabs button.is-active {
  border-color: var(--cabinet-teal);
  background: var(--cabinet-teal);
  color: #ffffff;
}

.cabinet-menu-form-panel-tab {
  min-width: 0;
  display: grid;
  gap: 18px;
}

.cabinet-menu-form-panel-tab[hidden] {
  display: none;
}

.cabinet-menu-form-panel-tab h3 {
  margin: 10px 0 -4px;
  color: var(--cabinet-ink);
  font-size: 20px;
  font-weight: 900;
}

.cabinet-menu-link-panels {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.cabinet-menu-link-panels div,
.cabinet-menu-security-note {
  padding: 16px;
  border: 1px solid var(--cabinet-line);
  border-radius: 8px;
  background: #f8fbfa;
}

.cabinet-menu-link-panels strong {
  display: block;
  margin-bottom: 8px;
  color: var(--cabinet-teal-dark);
  font-weight: 900;
}

.cabinet-menu-link-panels p,
.cabinet-menu-security-note,
.cabinet-menu-form-panel p {
  margin: 0;
  color: var(--cabinet-muted);
  font-weight: 800;
  line-height: 1.45;
  text-align: left;
}

.cabinet-menu-table-wrap {
  position: relative;
  max-width: 100%;
  overflow-x: auto;
  border: 1px solid var(--cabinet-line);
  border-radius: 8px;
  background: #ffffff;
}

.cabinet-menu-table-wrap.is-loading {
  opacity: 0.58;
  pointer-events: none;
}

.cabinet-menu-table-wrap.is-loading::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.42);
}

.cabinet-menu-table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  font-size: 14px;
}

.cabinet-menu-table th,
.cabinet-menu-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--cabinet-line);
  text-align: left;
  vertical-align: top;
}

.cabinet-menu-table th {
  background: #f1f6f5;
  color: rgba(36, 50, 56, 0.72);
  font-weight: 900;
  white-space: nowrap;
}

.cabinet-menu-table td {
  color: var(--cabinet-ink);
  font-weight: 800;
}

.cabinet-menu-table tbody tr:last-child td {
  border-bottom: 0;
}

.cabinet-menu-security-note {
  color: var(--cabinet-teal-dark);
}

.cabinet-timesheet-panel {
  display: grid;
  gap: 18px;
}

.cabinet-timesheet-summary {
  margin: 0;
}

.cabinet-timesheet-totals {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}

.cabinet-timesheet-totals div {
  min-height: 64px;
  padding: 14px 16px;
  border: 1px solid var(--cabinet-line);
  border-radius: 8px;
  background: #f8fbfb;
  display: grid;
  gap: 4px;
}

.cabinet-timesheet-totals strong {
  color: var(--cabinet-ink);
  font-size: 15px;
  font-weight: 950;
}

.cabinet-timesheet-totals span {
  color: var(--cabinet-muted);
  font-size: 13px;
  font-weight: 900;
}

.cabinet-data-panel,
.cabinet-form-card,
.cabinet-techcard-editor,
.cabinet-stock-history {
  min-width: 0;
}

.cabinet-form-card {
  max-width: 980px;
}

.cabinet-menu-form-page {
  max-width: 1280px;
}

.cabinet-data-table td strong,
.cabinet-data-table td span {
  display: block;
}

.cabinet-data-table td strong {
  color: var(--cabinet-ink);
  font-weight: 900;
}

.cabinet-data-table td span {
  margin-top: 4px;
  color: var(--cabinet-muted);
  font-size: 13px;
  font-weight: 800;
}

.cabinet-data-table tr.is-selected td {
  background: rgba(77, 175, 170, 0.08);
}

.cabinet-sort-button {
  width: 100%;
  min-height: 36px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: inherit;
  text-align: left;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.cabinet-sort-button span:first-child {
  min-width: 0;
}

.cabinet-sort-icon {
  width: 16px;
  height: 16px;
  border-radius: 999px;
  color: var(--cabinet-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  opacity: 0.48;
  transition: color 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
}

.cabinet-sort-icon::before {
  content: "↕";
  font-size: 13px;
  line-height: 1;
}

.cabinet-sort-button:hover .cabinet-sort-icon,
.cabinet-sort-button:focus-visible .cabinet-sort-icon,
.cabinet-sort-button.is-active .cabinet-sort-icon {
  color: var(--cabinet-teal);
  opacity: 1;
}

th.is-sort-asc .cabinet-sort-icon::before {
  content: "↑";
}

th.is-sort-desc .cabinet-sort-icon::before {
  content: "↓";
}

.cabinet-sort-button:focus-visible {
  outline: 2px solid rgba(13, 152, 168, 0.42);
  outline-offset: 4px;
  border-radius: 6px;
}

.cabinet-table-qr-button {
  border: 1px solid rgba(77, 146, 216, 0.55);
  border-radius: 8px;
  background: rgba(77, 146, 216, 0.12);
  color: #4d92d8;
  font: inherit;
  font-weight: 800;
  padding: 8px 12px;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.cabinet-table-qr-button:hover,
.cabinet-table-qr-button:focus {
  background: rgba(77, 146, 216, 0.2);
  border-color: rgba(77, 146, 216, 0.9);
  transform: translateY(-1px);
}

.cabinet-qr-dialog {
  width: min(460px, calc(100vw - 32px));
  border: 0;
  border-radius: 18px;
  padding: 28px;
  color: #1f2d34;
  box-shadow: 0 24px 80px rgba(25, 46, 55, 0.24);
}

.cabinet-qr-dialog::backdrop {
  background: rgba(18, 32, 40, 0.52);
  backdrop-filter: blur(6px);
}

.cabinet-qr-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: #eef4f3;
  color: #1f2d34;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

.cabinet-qr-dialog-head {
  padding-right: 42px;
}

.cabinet-qr-dialog-head span {
  display: block;
  margin-bottom: 6px;
  color: #4fa9a2;
  font-weight: 800;
  text-transform: uppercase;
  font-size: 12px;
}

.cabinet-qr-dialog-head h2 {
  margin: 0;
  font-size: 28px;
}

.cabinet-qr-canvas-wrap {
  display: grid;
  place-items: center;
  margin: 22px 0;
  padding: 18px;
  border: 1px solid #e3ecea;
  border-radius: 16px;
  background: #ffffff;
}

.cabinet-qr-canvas-wrap canvas {
  display: block;
  width: min(100%, 320px);
  height: auto;
}

.cabinet-qr-download {
  width: 100%;
  justify-content: center;
}

.cabinet-qr-dialog p {
  margin: 14px 0 0;
  overflow-wrap: anywhere;
  color: #65757d;
  font-size: 13px;
  line-height: 1.45;
}

.cabinet-actions-cell {
  min-width: 210px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cabinet-actions-cell form {
  margin: 0;
}

.cabinet-actions-cell a,
.cabinet-actions-cell button,
.cabinet-inline-link {
  min-height: 34px;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.cabinet-actions-cell a,
.cabinet-inline-link {
  border: 1px solid rgba(77, 175, 170, 0.42);
  background: rgba(77, 175, 170, 0.1);
  color: var(--cabinet-teal-dark);
}

.cabinet-actions-cell button {
  border: 1px solid rgba(238, 98, 95, 0.42);
  background: #ffffff;
  color: #c53f3b;
  cursor: pointer;
}

.cabinet-actions-cell button.cabinet-table-qr-button {
  border-color: rgba(77, 146, 216, 0.55);
  background: rgba(77, 146, 216, 0.12);
  color: #4d92d8;
}

.cabinet-actions-cell button.cabinet-table-qr-button:hover,
.cabinet-actions-cell button.cabinet-table-qr-button:focus {
  background: rgba(77, 146, 216, 0.2);
  border-color: rgba(77, 146, 216, 0.9);
}

.cabinet-stop-list-summary {
  width: fit-content;
  margin-top: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  background: #edf5f5;
  color: var(--cabinet-muted);
  font-size: 12px;
  font-weight: 900;
}

.cabinet-stop-list-summary.is-active {
  background: #ffdddd;
  color: #a72f35;
}

.cabinet-stop-list-cell {
  min-width: 280px;
}

.cabinet-stop-list-cell > small {
  display: block;
  max-width: 280px;
  margin-top: 6px;
  color: #a72f35;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.cabinet-stop-list-form {
  margin-top: 10px;
  display: grid;
  gap: 7px;
}

.cabinet-stop-list-form label {
  display: grid;
  gap: 4px;
}

.cabinet-stop-list-form label span {
  color: var(--cabinet-muted);
  font-size: 11px;
  font-weight: 900;
}

.cabinet-stop-list-form input {
  width: 100%;
  min-height: 36px;
  border: 1px solid var(--cabinet-line);
  border-radius: 8px;
  background: #ffffff;
  padding: 7px 10px;
  color: var(--cabinet-ink);
  font: inherit;
}

.cabinet-stop-list-form button {
  width: fit-content;
  min-height: 36px;
  border: 1px solid #d84b51;
  border-radius: 999px;
  background: #d84b51;
  padding: 7px 12px;
  color: #ffffff;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}

.cabinet-stop-list-form button.is-restore {
  border-color: var(--cabinet-teal-dark);
  background: var(--cabinet-teal-dark);
}

.cabinet-permission-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.cabinet-permission-group {
  min-width: 0;
  margin: 0;
  padding: 16px;
  border: 1px solid var(--cabinet-line);
  border-radius: 8px;
  background: #ffffff;
  display: grid;
  gap: 10px;
}

.cabinet-permission-group legend {
  padding: 0 8px;
  color: var(--cabinet-ink);
  font-size: 16px;
  font-weight: 900;
}

.cabinet-permission-check {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--cabinet-muted);
  font-size: 14px;
  font-weight: 850;
}

.cabinet-permission-check input {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  accent-color: var(--cabinet-teal);
}

.cabinet-pagination {
  margin-top: 18px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.cabinet-pagination a,
.cabinet-pagination span {
  min-width: 38px;
  min-height: 38px;
  padding: 9px 12px;
  border: 1px solid var(--cabinet-line);
  border-radius: 999px;
  background: #ffffff;
  color: var(--cabinet-ink);
  font-size: 14px;
  font-weight: 900;
  line-height: 1;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.cabinet-pagination a.is-active {
  border-color: var(--cabinet-teal);
  background: var(--cabinet-teal);
  color: #ffffff;
}

.cabinet-pagination a.is-disabled {
  opacity: 0.42;
  pointer-events: none;
}

.cabinet-stock-layout {
  grid-template-columns: minmax(420px, 0.95fr) minmax(0, 1.05fr);
}

.cabinet-stock-layout-single {
  grid-template-columns: minmax(0, 1fr);
}

.cabinet-stock-history-page {
  display: grid;
  gap: 18px;
}

.cabinet-stock-summary {
  margin: 0 0 18px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.cabinet-stock-summary div {
  padding: 14px;
  border: 1px solid var(--cabinet-line);
  border-radius: 8px;
  background: #f8fbfa;
}

.cabinet-stock-summary dt {
  margin: 0 0 6px;
  color: var(--cabinet-muted);
  font-size: 13px;
  font-weight: 900;
}

.cabinet-stock-summary dd {
  margin: 0;
  color: var(--cabinet-ink);
  font-size: 20px;
  font-weight: 900;
}

.cabinet-techcard-editor {
  display: grid;
  gap: 16px;
}

.cabinet-techcard-editor h2 {
  margin: 0;
  color: var(--cabinet-ink);
  text-align: left;
}

.cabinet-techcard-subhead {
  margin-top: 10px;
}

.cabinet-techcard-table input,
.cabinet-techcard-table select,
.cabinet-techcard-table textarea {
  width: 100%;
  min-height: 42px;
  padding: 9px 11px;
  border: 1px solid var(--cabinet-line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--cabinet-ink);
  font: inherit;
  font-size: 14px;
  font-weight: 800;
}

.cabinet-techcard-table textarea {
  min-height: 58px;
  resize: vertical;
}

.cabinet-sticky-actions {
  position: sticky;
  bottom: 12px;
  z-index: 5;
  width: fit-content;
  padding: 10px;
  border: 1px solid var(--cabinet-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 36px rgba(36, 50, 56, 0.14);
}

.admin-shell {
  --admin-ink: #062730;
  --admin-muted: rgba(6, 39, 48, 0.64);
  --admin-line: #dce8e7;
  --admin-soft: #eff6f5;
  --admin-teal: #4dafaa;
  --admin-teal-dark: #15706f;
  --admin-amber: #f1b36f;
  min-height: 100vh;
  background:
    linear-gradient(135deg, rgba(77, 175, 170, 0.14), rgba(241, 179, 111, 0.1) 42%, rgba(255, 255, 255, 0.88)),
    #eef5f3;
  color: var(--admin-ink);
  display: grid;
  grid-template-columns: 284px minmax(0, 1fr);
  font-family: "Nunito", Arial, sans-serif;
}

.admin-sidebar {
  min-height: 100vh;
  padding: 42px 22px;
  background:
    linear-gradient(180deg, rgba(6, 39, 48, 0.96), rgba(21, 112, 111, 0.94)),
    #062730;
  display: flex;
  flex-direction: column;
  gap: 42px;
}

.admin-brand {
  width: 178px;
  display: block;
  margin: 0 auto;
}

.admin-brand img {
  width: 100%;
  height: auto;
}

.admin-nav {
  display: grid;
  gap: 8px;
}

.admin-nav a {
  min-height: 50px;
  padding: 14px 18px;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 18px;
  font-weight: 800;
  text-decoration: none;
  display: flex;
  align-items: center;
}

.admin-nav a:hover,
.admin-nav a:focus,
.admin-nav a.is-active {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
}

.admin-workspace {
  min-width: 0;
  padding: 42px;
}

.admin-header {
  min-height: 86px;
  margin-bottom: 28px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.admin-header h1 {
  margin: 0;
  color: var(--admin-ink);
  font-size: 40px;
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: 0;
}

.admin-header p {
  margin: 10px 0 0;
  color: var(--admin-muted);
  font-size: 18px;
  font-weight: 700;
}

.admin-account {
  display: flex;
  align-items: center;
  gap: 14px;
}

.admin-account-card {
  min-width: 128px;
  padding: 12px 16px;
  border: 1px solid var(--admin-line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 40px rgba(6, 39, 48, 0.08);
}

.admin-account-card strong,
.admin-account-card span {
  display: block;
}

.admin-account-card strong {
  font-size: 16px;
  font-weight: 800;
}

.admin-account-card span {
  color: var(--admin-muted);
  font-size: 14px;
  font-weight: 800;
}

.admin-tabs {
  margin-bottom: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.admin-tabs a {
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid var(--admin-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  color: var(--admin-ink);
  font-size: 17px;
  font-weight: 800;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.admin-tabs a:hover,
.admin-tabs a:focus,
.admin-tabs a.is-active {
  border-color: var(--admin-teal);
  background: var(--admin-teal);
  color: #ffffff;
}

.admin-button {
  min-height: 40px;
  padding: 9px 15px;
  border: 1px solid var(--admin-teal);
  border-radius: 8px;
  background: #ffffff;
  color: var(--admin-teal-dark);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
}

.admin-button:hover,
.admin-button:focus {
  color: var(--admin-teal-dark);
  box-shadow: 0 0 0 4px rgba(77, 175, 170, 0.18);
}

.admin-button-primary {
  border-color: var(--admin-teal);
  background: var(--admin-teal);
  color: #ffffff;
}

.admin-button-primary:hover,
.admin-button-primary:focus {
  color: #ffffff;
}

.admin-button-outline {
  background: #ffffff;
}

.admin-button-ghost {
  border-color: rgba(6, 39, 48, 0.18);
  background: rgba(255, 255, 255, 0.66);
}

.admin-button-danger {
  border-color: #d9554f;
  color: #c4403c;
}

.admin-metrics {
  margin-bottom: 22px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.admin-metric,
.admin-panel {
  border: 1px solid var(--admin-line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 24px 60px rgba(6, 39, 48, 0.08);
}

.admin-metric {
  min-height: 130px;
  padding: 22px;
  display: grid;
  align-content: center;
  gap: 8px;
}

.admin-metric span,
.admin-metric small {
  color: var(--admin-muted);
  font-size: 15px;
  font-weight: 800;
}

.admin-metric strong {
  color: var(--admin-ink);
  font-size: 36px;
  font-weight: 800;
  line-height: 1;
}

.admin-dashboard-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(340px, 1fr) minmax(300px, 0.9fr);
  gap: 16px;
}

.admin-panel {
  min-width: 0;
  padding: 22px;
}

.admin-panel h2 {
  margin: 0 0 18px;
  color: var(--admin-ink);
  font-size: 26px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: 0;
}

.admin-panel p {
  margin: 0 0 14px;
  color: var(--admin-muted);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.45;
}

.admin-panel-head {
  margin-bottom: 18px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.admin-panel-actions,
.admin-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.admin-inline-form {
  display: inline-flex;
  margin: 0 0 0 6px;
  vertical-align: middle;
}

.admin-inline-control {
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-inline-control input {
  flex: 1;
  min-width: 0;
}

.admin-action-stack {
  display: grid;
  gap: 10px;
}

.admin-feed {
  display: grid;
  gap: 14px;
}

.admin-feed div {
  display: grid;
  gap: 3px;
}

.admin-feed strong,
.admin-table strong {
  color: var(--admin-ink);
  font-size: 16px;
  font-weight: 800;
}

.admin-feed span,
.admin-table span {
  color: rgba(6, 39, 48, 0.6);
  font-size: 15px;
  font-weight: 700;
}

.admin-filters {
  margin-bottom: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.admin-filters input,
.admin-filters select,
.admin-form input,
.admin-form select,
.admin-form textarea {
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid var(--admin-line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--admin-ink);
  font-size: 16px;
  font-weight: 700;
  outline: 0;
}

.admin-filters input:focus,
.admin-filters select:focus,
.admin-form input:focus,
.admin-form select:focus,
.admin-form textarea:focus {
  border-color: var(--admin-teal);
  box-shadow: 0 0 0 4px rgba(77, 175, 170, 0.18);
}

.admin-filters input[type="search"] {
  width: min(340px, 100%);
}

.admin-filters-wide input,
.admin-filters-wide select {
  min-width: 190px;
}

.admin-table-wrap {
  width: 100%;
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  min-width: 920px;
  border-collapse: collapse;
}

.admin-table th,
.admin-table td {
  padding: 14px 10px;
  border-bottom: 1px solid rgba(6, 39, 48, 0.12);
  color: var(--admin-ink);
  font-size: 16px;
  font-weight: 800;
  vertical-align: middle;
}

.admin-table th {
  color: rgba(6, 39, 48, 0.58);
  font-size: 14px;
  text-align: left;
  text-transform: uppercase;
}

.admin-actions-cell {
  min-width: 250px;
  text-align: right;
  white-space: nowrap;
}

.admin-actions-cell .admin-button {
  margin-left: 6px;
}

.admin-subscriptions-table {
  min-width: 1120px;
  table-layout: fixed;
}

.admin-subscriptions-table th,
.admin-subscriptions-table td {
  white-space: normal;
}

.admin-subscriptions-table .admin-subscription-client {
  width: 24%;
}

.admin-subscriptions-table .admin-subscription-product {
  width: 12%;
}

.admin-subscriptions-table .admin-subscription-status {
  width: 8%;
}

.admin-subscriptions-table .admin-subscription-period {
  width: 15%;
}

.admin-subscriptions-table .admin-subscription-next {
  width: 15%;
}

.admin-subscriptions-table .admin-subscription-card {
  width: 10%;
}

.admin-subscriptions-table .admin-actions-cell {
  width: 16%;
  min-width: 250px;
}

.admin-subscription-client strong,
.admin-subscription-product strong,
.admin-subscription-client span,
.admin-subscription-product span {
  display: block;
}

.admin-subscription-client strong,
.admin-subscription-product strong {
  line-height: 1.25;
}

.admin-subscription-client span,
.admin-subscription-product span {
  margin-top: 6px;
  color: var(--admin-muted);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.25;
}

.admin-subscription-period,
.admin-subscription-next,
.admin-subscription-card {
  line-height: 1.35;
}

.admin-status {
  padding: 4px 9px;
  border-radius: 7px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  text-transform: lowercase;
}

.admin-status-active,
.admin-status-confirmed {
  background: #3f9465;
}

.admin-status-pending {
  background: var(--admin-amber);
  color: #2c1a00;
}

.admin-status-cancelled,
.admin-status-blocked {
  background: #777f87;
}

.admin-form-panel {
  max-width: 980px;
}

.admin-tariff-matrix {
  min-width: 860px;
}

.admin-tariff-matrix td:first-child {
  width: 46%;
}

.admin-tariff-matrix select {
  min-width: 230px;
}

.admin-tariff-matrix input[type="number"] {
  min-width: 170px;
}

.admin-tariff-matrix input[readonly] {
  background: #eef2f3;
  color: rgba(6, 39, 48, 0.58);
}

.admin-tariff-matrix .admin-tariff-matrix-group th {
  padding-top: 22px;
  background: rgba(16, 192, 136, 0.07);
  color: var(--admin-ink);
}

.admin-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.admin-form label {
  min-width: 0;
  display: grid;
  gap: 8px;
  color: var(--admin-ink);
  font-size: 16px;
  font-weight: 800;
}

.admin-form input,
.admin-form select,
.admin-form textarea {
  width: 100%;
  min-width: 0;
}

.admin-form .admin-check-field {
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid var(--admin-line);
  border-radius: 8px;
  background: #ffffff;
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-check-field input {
  width: 18px;
  min-height: 18px;
  padding: 0;
}

.admin-checkbox-list {
  margin: 0;
  padding: 0;
  border: 0;
  display: grid;
  gap: 10px;
}

.admin-checkbox-list legend {
  margin-bottom: 2px;
  color: var(--admin-ink);
  font-size: 16px;
  font-weight: 900;
}

.admin-checkbox-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.admin-form .admin-checkbox-card {
  min-height: 72px;
  padding: 12px 14px;
  border: 1px solid var(--admin-line);
  border-radius: 8px;
  background: #ffffff;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  font-size: 15px;
}

.admin-checkbox-card input {
  width: 18px;
  min-height: 18px;
  padding: 0;
}

.admin-checkbox-card span {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.admin-checkbox-card small {
  color: var(--admin-muted);
  font-size: 13px;
  font-weight: 800;
}

.admin-notice {
  margin-bottom: 18px;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid rgba(6, 39, 48, 0.14);
  background: #ffffff;
}

.admin-notice p {
  margin: 0;
}

.admin-notice-success {
  border-color: rgba(63, 148, 101, 0.32);
  background: rgba(63, 148, 101, 0.1);
}

.admin-notice-error {
  border-color: rgba(232, 79, 79, 0.32);
  background: rgba(232, 79, 79, 0.1);
}

.admin-form textarea {
  min-height: 132px;
  resize: vertical;
}

.admin-blog-editor-panel {
  max-width: 1120px;
}

.admin-blog-editor-panel .ck-editor {
  grid-column: 1 / -1;
  min-width: 0;
}

.admin-blog-editor-panel .ck-editor__editable {
  min-height: 360px;
  color: var(--admin-ink);
  font-family: "Nunito", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
}

.admin-form-full,
.admin-form-actions {
  grid-column: 1 / -1;
}

.admin-form-single {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  margin-bottom: 14px;
}

.cabinet-import-form {
  margin: 16px 0 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 12px;
}

.cabinet-import-form .cabinet-field {
  flex: 1 1 280px;
  margin: 0;
}

.cabinet-import-form .cabinet-secondary-button {
  min-height: 44px;
}

.cabinet-inline-import-form {
  margin: 0;
  display: inline-flex;
}

.cabinet-inline-import-form .cabinet-secondary-button {
  width: 100%;
}

.cabinet-file-button {
  position: relative;
  overflow: hidden;
}

.cabinet-file-button input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.admin-tariff-grid,
.admin-settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.admin-tariff strong {
  margin-bottom: 14px;
  color: var(--admin-teal-dark);
  font-size: 30px;
  font-weight: 900;
  display: block;
}

.admin-table-wrap-compact .admin-table {
  min-width: 420px;
}

@media (max-width: 760px) {
  .auth-page {
    grid-template-columns: 1fr;
  }

  .auth-brand-pane {
    min-height: 340px;
  }

  .auth-brand-content {
    width: min(420px, calc(100% - 48px));
    padding-top: 42px;
    text-align: center;
  }

  .auth-brand-content p {
    margin-right: auto;
    margin-left: auto;
    margin-top: 18px;
    font-size: 16px;
  }

  .auth-wave {
    bottom: -30%;
    height: 36%;
  }

  .auth-form-pane {
    min-height: auto;
    padding: 44px 24px 56px;
  }

  .auth-form {
    margin-top: 38px;
    gap: 20px;
  }

  .auth-actions {
    grid-template-columns: 1fr;
    gap: 14px;
  }

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

  .auth-field-full,
  .auth-form-register .auth-actions {
    grid-column: auto;
  }

  .auth-field-hint {
    font-size: 14px;
  }

  .dashboard-page {
    padding: 24px 16px;
  }

  .dashboard-top {
    flex-direction: column;
    justify-content: center;
    margin-bottom: 42px;
    text-align: center;
  }

  .dashboard-top > a:first-child {
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .admin-shell {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    min-width: 0;
    min-height: auto;
    padding: 22px 16px;
    gap: 22px;
    overflow: hidden;
    position: sticky;
    top: 0;
    z-index: 10;
  }

  .admin-brand {
    width: 150px;
  }

  .admin-nav {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .admin-nav a {
    min-width: max-content;
    min-height: 42px;
    padding: 10px 14px;
    font-size: 15px;
  }

  .admin-workspace {
    min-width: 0;
    padding: 24px 14px 44px;
  }

  .admin-header {
    min-height: auto;
    flex-direction: column;
    margin-bottom: 20px;
  }

  .admin-header h1 {
    font-size: 30px;
  }

  .admin-account {
    width: 100%;
    align-items: stretch;
  }

  .admin-account-card {
    flex: 1;
  }

  .admin-tabs {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    flex-wrap: nowrap;
    overflow-x: auto;
  }

  .admin-tabs a {
    min-width: max-content;
    font-size: 15px;
  }

  .admin-metrics,
  .admin-dashboard-grid,
  .admin-tariff-grid,
  .admin-settings-grid,
  .admin-form {
    grid-template-columns: 1fr;
  }

  .admin-panel {
    padding: 18px;
  }

  .admin-panel h2 {
    font-size: 22px;
  }

  .admin-panel-head {
    flex-direction: column;
  }

  .admin-filters,
  .admin-filters-wide {
    display: grid;
    grid-template-columns: 1fr;
  }

  .admin-filters input,
  .admin-filters select,
  .admin-filters .admin-button {
    width: 100%;
  }

  .admin-actions-cell {
    min-width: 220px;
  }

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

  .admin-inline-control,
  .cabinet-import-form {
    display: grid;
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1180px) {
  .cabinet-shell {
    grid-template-columns: 228px minmax(0, 1fr);
  }

  .cabinet-filters,
  .cabinet-metrics,
  .cabinet-dashboard-grid,
  .cabinet-bottom-grid,
  .cabinet-tariff-grid,
  .cabinet-kpi-grid,
  .cabinet-menu-layout,
  .cabinet-menu-layout-categories {
    grid-template-columns: 1fr 1fr;
  }

  .cabinet-dashboard-grid .cabinet-chart,
  .cabinet-filters .cabinet-segments,
  .cabinet-menu-form-panel {
    grid-column: 1 / -1;
  }

  .staff-schedule-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .staff-schedule-filter-actions {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .cabinet-shell {
    grid-template-columns: 1fr;
    display: block;
  }

  .cabinet-shell::before {
    position: fixed;
    inset: 0;
    z-index: 38;
    background: rgba(18, 31, 38, 0.42);
    opacity: 1;
    pointer-events: auto;
    content: "";
    transition: opacity 0.24s ease;
  }

  .cabinet-shell.is-sidebar-collapsed {
    grid-template-columns: 1fr;
  }

  .cabinet-shell.is-sidebar-collapsed::before {
    opacity: 0;
    pointer-events: none;
  }

  .cabinet-sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 40;
    width: min(82vw, 320px);
    max-width: 320px;
    min-height: 100vh;
    height: 100vh;
    max-height: none;
    opacity: 1;
    transform: translateX(0);
    box-shadow: 18px 0 36px rgba(20, 35, 42, 0.22);
  }

  .cabinet-shell.is-sidebar-collapsed .cabinet-sidebar {
    max-height: none;
    min-height: 100vh;
    opacity: 0;
    pointer-events: none;
    transform: translateX(-100%);
    box-shadow: none;
  }

  .cabinet-brand {
    justify-content: center;
  }

  .cabinet-topbar {
    padding: 12px 16px;
  }

  .cabinet-top-actions {
    gap: 8px;
    flex-wrap: wrap;
  }

  .cabinet-notifications-panel {
    width: auto;
    max-height: calc(100vh - 90px);
    position: fixed;
    top: 76px;
    right: 14px;
    left: 14px;
  }

  .cabinet-create,
  .cabinet-logout {
    min-height: 36px;
    padding: 7px 12px;
    font-size: 14px;
  }

  .cabinet-shift-timer {
    min-height: 36px;
    padding: 6px 10px;
  }

  .cabinet-shift-timer span {
    display: none;
  }

  .cabinet-shift-timer strong {
    min-width: 64px;
    font-size: 13px;
  }

  .cabinet-user strong {
    display: none;
  }

  .cabinet-notification-page-card {
    grid-template-columns: 1fr;
  }

  .secretary-assignee-list,
  .secretary-checklist-edit-row,
  .secretary-checklist-run-row {
    grid-template-columns: 1fr;
  }

  .secretary-checklist-run-row input {
    justify-self: start;
  }

  .secretary-checklist-run-row small {
    text-align: left;
  }

  .cabinet-content {
    padding: 18px 14px 34px;
  }

  .cabinet-filters,
  .cabinet-metrics,
  .cabinet-dashboard-grid,
  .cabinet-bottom-grid,
  .cabinet-tariff-grid,
  .cabinet-reservations-layout,
  .cabinet-menu-layout,
  .cabinet-menu-layout-categories,
  .cabinet-profile-grid,
  .cabinet-form-grid,
  .cabinet-inline-form,
  .cabinet-checkbox-grid,
  .cabinet-permission-grid,
  .cabinet-table-tools,
  .cabinet-menu-link-panels {
    grid-template-columns: 1fr;
  }

  .cabinet-tariff-active {
    grid-template-columns: 1fr;
  }

  .cabinet-chart {
    min-height: 380px;
  }

  .cabinet-chart-header {
    align-items: stretch;
    flex-direction: column;
  }

  .cabinet-chart-summary {
    display: grid;
    grid-template-columns: 1fr;
  }

  .cabinet-chart-frame {
    grid-template-columns: 1fr;
  }

  .cabinet-chart-y-scale {
    display: none;
  }

  .cabinet-chart-grid {
    min-height: 240px;
  }

  .cabinet-chart-x-scale {
    padding-left: 0;
  }

  .cabinet-segments {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cabinet-section-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .cabinet-section-tabs a {
    min-width: max-content;
  }

  .cabinet-menu-form-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cabinet-menu-form-tabs button {
    min-width: 0;
    padding-inline: 10px;
    white-space: normal;
  }

  .cabinet-field-full,
  .cabinet-menu-form-panel {
    grid-column: auto;
  }

  .cabinet-menu-panel-head,
  .cabinet-menu-category-row {
    align-items: stretch;
  }

  .cabinet-menu-panel-head {
    flex-direction: column;
  }

  .staff-schedule-kpis {
    grid-template-columns: 1fr;
  }

  .staff-schedule-filters {
    padding: 12px;
    grid-template-columns: 1fr;
  }

  .staff-schedule-filter-actions {
    grid-column: auto;
  }

  .staff-schedule-filter-actions > * {
    flex: 1;
  }

  .staff-schedule-employee-popover {
    width: 100%;
    right: auto;
    left: 0;
  }

  .staff-schedule-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .staff-schedule-month-nav {
    align-self: stretch;
    justify-content: space-between;
  }

  .staff-schedule-month-nav strong {
    min-width: 0;
    flex: 1;
  }

  .staff-schedule-person-head,
  .staff-schedule-person {
    width: 180px;
    min-width: 180px !important;
    max-width: 180px;
  }

  .staff-schedule-total-head,
  .staff-schedule-total {
    position: static !important;
    box-shadow: none;
  }

  .staff-schedule-dialog {
    width: calc(100vw - 20px);
    max-height: calc(100vh - 20px);
    padding: 22px 16px;
  }

  .staff-schedule-dialog-head {
    padding-right: 36px;
    flex-direction: column;
  }

  .staff-schedule-dialog-head h2 {
    font-size: 24px;
  }

  .staff-schedule-dialog-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .cabinet-menu-panel-actions,
  .cabinet-table-tools .cabinet-secondary-button {
    width: 100%;
    justify-content: flex-start;
  }

  .cabinet-menu-panel-actions > *,
  .cabinet-table-tools .cabinet-secondary-button {
    width: 100%;
  }

  .cabinet-menu-category-row {
    grid-template-columns: 30px minmax(0, 1fr);
    padding-left: calc(12px + (var(--category-depth, 0) * 22px));
  }

  .cabinet-menu-builder-row {
    grid-template-columns: 30px minmax(0, 1fr);
  }

  .cabinet-menu-builder-row small {
    grid-column: 2;
  }

  .cabinet-menu-category-row div {
    grid-column: 2;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .cabinet-filters .cabinet-segments {
    grid-column: auto;
    min-width: 0;
    overflow-x: auto;
  }

  .cabinet-filter-range {
    border-radius: 26px;
    padding: 10px 14px;
    grid-template-columns: 1fr;
  }

  .cabinet-filter-apply {
    width: 100%;
  }

  .cabinet-segments {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cabinet-metric {
    min-height: 140px;
  }

  .cabinet-chart {
    min-height: 340px;
  }

  .cabinet-welcome-backdrop {
    padding: 14px;
    align-items: start;
    overflow-y: auto;
  }

  .cabinet-welcome-form {
    min-height: auto;
    padding: 30px 22px;
    grid-template-columns: 1fr;
  }

  .cabinet-welcome-copy img {
    width: 170px;
    max-width: 100%;
    height: auto;
    margin-bottom: 34px;
  }

  .cabinet-welcome-copy h1 {
    font-size: 34px;
  }

  .cabinet-welcome-copy p {
    font-size: 17px;
  }

  .cabinet-welcome-device {
    display: none;
  }

  .cabinet-page-head {
    flex-direction: column;
    align-items: stretch;
  }

  .cabinet-back-link {
    justify-content: center;
  }

  .cabinet-video-panel {
    padding: 10px;
  }
}

.cabinet-info-block {
  padding: 18px;
  border: 1px solid var(--cabinet-line);
  border-radius: 8px;
  background: #f8fbfa;
  display: grid;
  gap: 12px;
}

.cabinet-info-block h3,
.cabinet-info-block h4 {
  margin: 0;
  color: var(--cabinet-ink);
  font-weight: 900;
}

.cabinet-info-block p,
.cabinet-info-block li,
.cabinet-info-block dd {
  color: var(--cabinet-muted);
  font-weight: 800;
  line-height: 1.45;
}

.cabinet-info-block p,
.cabinet-info-block dl {
  margin: 0;
}

.cabinet-info-block dt {
  margin-top: 10px;
  color: var(--cabinet-ink);
  font-weight: 900;
}

.cabinet-info-block ul,
.cabinet-info-block ol {
  margin: 0;
  padding-left: 22px;
}

.cabinet-status-badge {
  min-height: 28px;
  width: fit-content;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(77, 175, 170, 0.16);
  color: var(--cabinet-teal-dark);
  font-size: 13px;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
}

.cabinet-techcard-title {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.cabinet-techcard-title strong {
  display: inline-flex;
}

.cabinet-techcard-origin-badge {
  min-height: 24px;
  padding: 4px 9px;
  border: 1px solid rgba(3, 62, 85, 0.18);
  border-radius: 999px;
  background: rgba(3, 62, 85, 0.12);
  color: var(--cabinet-teal);
  font-size: 11px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}

.storefront-shell,
.storefront-shell *,
.storefront-shell *::before,
.storefront-shell *::after {
  box-sizing: border-box;
}

.storefront-shell {
  --store-ink: #243238;
  --store-muted: rgba(36, 50, 56, 0.66);
  --store-line: #dfe9e8;
  --store-teal: #4dafaa;
  --store-teal-dark: #2f7f7a;
  --store-amber: #f1b36f;
  min-height: 100vh;
  background: #f4f7f6;
  color: var(--store-ink);
  font-family: "Nunito", Arial, sans-serif;
}

.storefront-header {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 78px;
  padding: 14px clamp(18px, 4vw, 64px);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--store-line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.storefront-logo {
  min-width: 0;
  color: var(--store-ink);
  font-size: 22px;
  font-weight: 950;
  line-height: 1.05;
  text-decoration: none;
  display: grid;
}

.storefront-logo span {
  color: var(--store-muted);
  font-size: 13px;
  font-weight: 900;
}

.storefront-nav {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
}

.storefront-nav a,
.storefront-cart {
  min-height: 40px;
  padding: 9px 16px;
  border-radius: 999px;
  color: var(--store-ink);
  font-size: 14px;
  font-weight: 900;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.storefront-nav a {
  background: #ffffff;
  border: 1px solid var(--store-line);
}

.storefront-nav a:hover,
.storefront-nav a:focus {
  border-color: var(--store-teal);
  color: var(--store-teal-dark);
}

.storefront-cart {
  flex: 0 0 auto;
  background: var(--store-teal);
  color: #ffffff;
}

.storefront-hero {
  width: min(1180px, calc(100% - 32px));
  margin: 28px auto 24px;
  min-height: 420px;
  border-radius: 8px;
  overflow: hidden;
  background:
    linear-gradient(115deg, rgba(36, 50, 56, 0.86), rgba(36, 50, 56, 0.26)),
    var(--hero-image, linear-gradient(135deg, #4dafaa, #f1b36f));
  background-position: center;
  background-size: cover;
  color: #ffffff;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.6fr);
  align-items: end;
}

.storefront-hero-copy {
  padding: clamp(30px, 6vw, 62px);
  display: grid;
  gap: 18px;
  align-content: end;
}

.storefront-hero-copy h1 {
  width: min(660px, 100%);
  margin: 0;
  color: #ffffff;
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 950;
  line-height: 1.02;
  letter-spacing: 0;
}

.storefront-hero-copy p {
  width: min(560px, 100%);
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 19px;
  font-weight: 800;
  line-height: 1.45;
}

.storefront-hero-copy a,
.storefront-product-actions a {
  width: fit-content;
  min-height: 46px;
  padding: 12px 20px;
  border-radius: 999px;
  background: var(--store-amber);
  color: #ffffff;
  font-weight: 950;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.storefront-hero-visual {
  min-height: 100%;
}

.storefront-category-bar {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 26px;
  display: flex;
  align-items: center;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.storefront-category-bar a {
  min-height: 42px;
  padding: 10px 18px;
  border: 1px solid var(--store-line);
  border-radius: 999px;
  background: #ffffff;
  color: var(--store-ink);
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
}

.storefront-products,
.storefront-news,
.storefront-delivery,
.storefront-content-page {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.storefront-product-section,
.storefront-news,
.storefront-delivery,
.storefront-content-page {
  margin-bottom: 28px;
  padding: clamp(18px, 3vw, 28px);
  border: 1px solid var(--store-line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 18px 42px rgba(36, 50, 56, 0.07);
}

.storefront-section-head {
  margin-bottom: 18px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}

.storefront-section-head h2,
.storefront-news h2,
.storefront-delivery h2,
.storefront-content-page h1 {
  margin: 0;
  color: var(--store-ink);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 950;
  line-height: 1.08;
  letter-spacing: 0;
}

.storefront-section-head span,
.storefront-product-copy p,
.storefront-news-card p,
.storefront-delivery p,
.storefront-content-page p {
  color: var(--store-muted);
  font-weight: 800;
  line-height: 1.45;
}

.storefront-product-grid,
.storefront-news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.storefront-product-card,
.storefront-news-card {
  min-width: 0;
  border: 1px solid var(--store-line);
  border-radius: 8px;
  background: #ffffff;
  overflow: hidden;
  display: grid;
  box-shadow: 0 14px 32px rgba(36, 50, 56, 0.06);
}

.storefront-product-media,
.storefront-news-card img,
.storefront-content-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  background:
    linear-gradient(135deg, rgba(77, 175, 170, 0.22), rgba(241, 179, 111, 0.24)),
    #edf4f3;
  object-fit: cover;
  display: block;
}

.storefront-product-copy,
.storefront-news-card {
  padding: 18px;
}

.storefront-product-copy {
  display: grid;
  gap: 10px;
}

.storefront-product-copy h3,
.storefront-news-card h3 {
  margin: 0;
  color: var(--store-ink);
  font-size: 22px;
  font-weight: 950;
  line-height: 1.16;
}

.storefront-product-copy p,
.storefront-news-card p {
  margin: 0;
}

.storefront-product-actions {
  margin-top: 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.storefront-product-actions strong {
  color: var(--store-teal-dark);
  font-size: 22px;
  font-weight: 950;
  white-space: nowrap;
}

.storefront-news-card {
  gap: 10px;
  text-decoration: none;
}

.storefront-news-card:hover h3,
.storefront-news-card:focus h3,
.storefront-back:hover,
.storefront-back:focus {
  color: var(--store-teal-dark);
}

.storefront-delivery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.storefront-delivery-card {
  padding: 18px;
  border: 1px solid var(--store-line);
  border-radius: 8px;
  background: #f8fbfa;
  display: grid;
  gap: 8px;
}

.storefront-delivery-card strong {
  color: var(--store-ink);
  font-size: 19px;
  font-weight: 950;
}

.storefront-order {
  width: min(100% - 40px, 1180px);
  margin: 28px auto 0;
  padding: clamp(18px, 3vw, 30px);
  border: 1px solid var(--store-line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 14px 32px rgba(36, 50, 56, 0.06);
}

.storefront-order-success,
.storefront-order-errors {
  margin: 0 0 16px;
  padding: 12px 14px;
  border-radius: 8px;
  font-weight: 900;
}

.storefront-order-success {
  color: #1f6f58;
  background: #e8f7f1;
}

.storefront-table-status-live {
  margin: 0 0 16px;
}

.storefront-table-status-chain {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.storefront-table-status-chain span {
  min-height: 44px;
  border: 1px solid var(--store-line);
  border-radius: 8px;
  background: #ffffff;
  color: #7b858a;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-weight: 950;
}

.storefront-table-status-chain span.is-active {
  border-color: #3f986d;
  background: #e8f7f1;
  color: #1f6f58;
}

.storefront-table-status-chain span.is-current {
  box-shadow: 0 0 0 2px rgba(63, 152, 109, 0.18);
}

.storefront-table-status-message {
  margin: 10px 0 0;
  color: #526268;
  font-size: 14px;
  font-weight: 850;
  line-height: 1.4;
}

.storefront-table-status-live.is-cancelled {
  border: 1px solid #e6a1a1;
  border-radius: 8px;
  background: #fff0f0;
  padding: 12px;
}

.storefront-table-status-live.is-cancelled .storefront-table-status-chain {
  opacity: 0.52;
}

.storefront-table-status-live.is-cancelled .storefront-table-status-message {
  margin-top: 0;
  color: #a93333;
}

.storefront-order-errors {
  color: #a93333;
  background: #fff0f0;
  display: grid;
  gap: 4px;
}

.storefront-order-form {
  display: grid;
  gap: 18px;
}

.storefront-cart-list {
  display: grid;
  gap: 10px;
}

.storefront-cart-list p {
  margin: 0;
  color: var(--store-muted);
  font-weight: 850;
}

.storefront-cart-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto auto;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--store-line);
  border-radius: 8px;
  background: #f8fbfa;
}

.storefront-cart-row span,
.storefront-cart-row b {
  color: var(--store-ink);
  font-weight: 950;
}

.storefront-cart-row div {
  display: inline-grid;
  grid-template-columns: 34px 34px 34px;
  align-items: center;
  justify-items: center;
  border: 1px solid var(--store-line);
  border-radius: 999px;
  background: #ffffff;
}

.storefront-cart-row button,
.storefront-order-submit {
  border: 0;
  cursor: pointer;
  font-weight: 950;
}

.storefront-cart-row button {
  min-width: 34px;
  min-height: 34px;
  color: var(--store-ink);
  background: transparent;
}

.storefront-cart-row > button {
  color: #a93333;
}

.storefront-order-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.storefront-order-grid label {
  display: grid;
  gap: 7px;
  color: var(--store-ink);
  font-weight: 950;
}

.storefront-order-grid input,
.storefront-order-grid select,
.storefront-order-grid textarea {
  width: 100%;
  border: 1px solid var(--store-line);
  border-radius: 8px;
  padding: 13px 14px;
  color: var(--store-ink);
  background: #ffffff;
  font: inherit;
  font-weight: 850;
}

.storefront-order-comment {
  grid-column: 1 / -1;
}

.storefront-order-submit {
  justify-self: start;
  min-height: 48px;
  border-radius: 999px;
  padding: 0 28px;
  color: #ffffff;
  background: var(--store-teal);
}

.storefront-order-submit:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.storefront-footer {
  margin-top: 42px;
  padding: 32px clamp(18px, 4vw, 64px);
  background: #243238;
  color: rgba(255, 255, 255, 0.82);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.storefront-footer strong {
  color: #ffffff;
  font-weight: 950;
}

.storefront-back {
  margin-bottom: 18px;
  color: var(--store-muted);
  font-weight: 900;
  text-decoration: none;
  display: inline-flex;
}

.storefront-rich-content {
  margin-top: 18px;
  color: var(--store-ink);
  font-weight: 800;
  line-height: 1.58;
}

.storefront-rich-content p:first-child {
  margin-top: 0;
}

.storefront-empty {
  min-height: 300px;
  display: grid;
  place-items: center;
  text-align: center;
}

.storefront-empty h1 {
  margin: 0 0 12px;
  color: var(--store-ink);
  font-size: clamp(32px, 5vw, 54px);
  font-weight: 950;
}

.storefront-empty p {
  width: min(520px, 100%);
  margin: 0;
  color: var(--store-muted);
  font-weight: 800;
}

@media (max-width: 980px) {
  .storefront-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .storefront-nav {
    justify-content: flex-start;
  }

  .storefront-cart {
    align-self: flex-start;
  }

  .storefront-hero {
    min-height: 360px;
    grid-template-columns: 1fr;
  }

  .storefront-hero-visual {
    display: none;
  }

  .storefront-product-grid,
  .storefront-news-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .storefront-header {
    position: static;
    padding: 14px 16px;
  }

  .storefront-nav {
    width: 100%;
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .storefront-hero,
  .storefront-category-bar,
  .storefront-products,
  .storefront-news,
  .storefront-delivery,
  .storefront-order,
  .storefront-content-page {
    width: min(100% - 24px, 1180px);
  }

  .storefront-hero {
    min-height: 340px;
    margin-top: 16px;
  }

  .storefront-product-grid,
  .storefront-news-grid,
  .storefront-delivery-grid,
  .storefront-order-grid {
    grid-template-columns: 1fr;
  }

  .storefront-cart-row {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .storefront-section-head,
  .storefront-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .storefront-product-actions {
    align-items: flex-start;
    flex-direction: column;
  }
}

.modifier-constructor {
  display: grid;
  gap: 16px;
  margin: 0;
  min-width: 0;
}

.modifier-constructor-head,
.modifier-constructor-group-head,
.modifier-constructor-options-head {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.modifier-constructor-head {
  gap: 20px;
}

.modifier-constructor-head > div {
  display: grid;
  gap: 5px;
}

.modifier-constructor-head > div > span {
  color: var(--cabinet-text);
  font-weight: 900;
}

.modifier-constructor-head small,
.modifier-constructor-empty span {
  color: var(--cabinet-muted);
  line-height: 1.45;
}

.modifier-constructor-groups {
  display: grid;
  gap: 14px;
}

.modifier-constructor-group {
  background: #f8fbfc;
  border: 1px solid var(--cabinet-line);
  border-radius: 16px;
  display: grid;
  gap: 16px;
  padding: 18px;
}

.modifier-constructor-group-head {
  border-bottom: 1px solid var(--cabinet-line);
  gap: 16px;
  padding-bottom: 12px;
}

.modifier-constructor-group-head strong {
  color: var(--cabinet-heading);
  font-size: 18px;
}

.modifier-constructor-remove,
.modifier-constructor-remove-option {
  background: transparent;
  border: 0;
  color: #c83d3d;
  cursor: pointer;
  font: inherit;
  font-weight: 900;
}

.modifier-constructor-remove-option {
  align-items: center;
  border: 1px solid #f0c5c5;
  border-radius: 10px;
  display: inline-flex;
  font-size: 24px;
  height: 44px;
  justify-content: center;
  width: 44px;
}

.modifier-constructor-remove-option:disabled {
  cursor: not-allowed;
  opacity: 0.35;
}

.modifier-constructor-group-fields {
  align-items: end;
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(0, 1fr) auto;
}

.modifier-constructor-required {
  align-items: center;
  background: #fff;
  border: 1px solid var(--cabinet-line);
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  gap: 10px;
  min-height: 48px;
  padding: 10px 14px;
}

.modifier-constructor-required input {
  height: 20px;
  margin: 0;
  width: 20px;
}

.modifier-constructor-required span {
  color: var(--cabinet-text);
  font-weight: 800;
}

.modifier-constructor-options {
  display: grid;
  gap: 10px;
}

.modifier-constructor-options-head,
.modifier-constructor-option {
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) minmax(130px, 0.28fr) 44px;
}

.modifier-constructor-options-head {
  color: var(--cabinet-muted);
  font-size: 13px;
  font-weight: 800;
  padding: 0 2px;
}

.modifier-constructor-options > [data-modifier-options] {
  display: grid;
  gap: 8px;
}

.modifier-constructor-option {
  align-items: center;
}

.modifier-constructor-option label {
  margin: 0;
}

.modifier-constructor-option input {
  background: #fff;
  border: 1px solid var(--cabinet-line);
  border-radius: 10px;
  color: var(--cabinet-text);
  font: inherit;
  min-height: 44px;
  padding: 9px 12px;
  width: 100%;
}

.modifier-constructor-add-option {
  justify-self: start;
}

.modifier-constructor-empty {
  background: #f7fafb;
  border: 1px dashed var(--cabinet-line);
  border-radius: 14px;
  display: grid;
  gap: 4px;
  padding: 18px;
}

.modifier-constructor-empty[hidden] {
  display: none;
}

@media (max-width: 700px) {
  .modifier-constructor-head {
    align-items: stretch;
    flex-direction: column;
  }

  .modifier-constructor-head .cabinet-secondary-button {
    width: 100%;
  }

  .modifier-constructor-group-fields {
    grid-template-columns: 1fr;
  }

  .modifier-constructor-options-head {
    display: none;
  }

  .modifier-constructor-option {
    grid-template-columns: minmax(0, 1fr) 108px 44px;
  }
}

@media (max-width: 470px) {
  .modifier-constructor-group {
    padding: 14px;
  }

  .modifier-constructor-option {
    align-items: stretch;
    grid-template-columns: 1fr 44px;
  }

  .modifier-constructor-option label:first-child {
    grid-column: 1 / -1;
  }
}

.cabinet-store-logo-preview {
  width: 156px;
  max-width: 100%;
  height: auto;
  padding: 10px;
  border: 1px solid rgba(77, 175, 170, 0.22);
  border-radius: 8px;
  background: #ffffff;
  object-fit: contain;
}

.cabinet-store-logo-tools {
  margin-top: 12px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.cabinet-danger-outline-button {
  min-height: 42px;
  padding: 10px 18px;
  border: 1px solid rgba(238, 98, 95, 0.42);
  border-radius: 999px;
  background: #ffffff;
  color: #c53f3b;
  font: inherit;
  font-size: 15px;
  font-weight: 900;
  line-height: 1.15;
  cursor: pointer;
}

.cabinet-danger-outline-button:hover,
.cabinet-danger-outline-button:focus {
  box-shadow: 0 0 0 4px rgba(238, 98, 95, 0.12);
}

.tasty-storefront {
  --store-bg: #fbf6ef;
  --store-card: #ffffff;
  --store-ink: #2b201b;
  --store-muted: #8b756b;
  --store-line: rgba(64, 43, 32, 0.14);
  --store-primary: #c75032;
  --store-primary-dark: #9e351e;
  --store-secondary: #f3b24d;
  --store-green: #4dafaa;
  --store-shadow: 0 24px 70px rgba(95, 53, 27, 0.14);
  background:
    radial-gradient(circle at 12% 8%, rgba(243, 178, 77, 0.18), transparent 32%),
    radial-gradient(circle at 84% 18%, rgba(199, 80, 50, 0.13), transparent 36%),
    var(--store-bg);
  color: var(--store-ink);
  font-family: "Nunito", Arial, sans-serif;
}

.tasty-store-header {
  min-height: auto;
  padding: 0;
  border: 0;
  background: rgba(251, 246, 239, 0.94);
  display: block;
  box-shadow: 0 10px 40px rgba(95, 53, 27, 0.08);
}

.tasty-store-topline,
.tasty-store-header-main {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
}

.tasty-store-topline {
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--store-muted);
  font-size: 13px;
  font-weight: 900;
}

.tasty-store-topline a {
  color: var(--store-primary-dark);
  text-decoration: none;
}

.tasty-store-header-main {
  min-height: 92px;
  display: grid;
  grid-template-columns: minmax(190px, auto) minmax(220px, 1fr) auto auto;
  align-items: center;
  gap: 18px;
}

.tasty-store-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--store-ink);
  font-size: 18px;
  font-weight: 950;
}

.tasty-store-logo-img {
  width: 52px;
  height: 52px;
  border-radius: 8px;
  object-fit: contain;
}

.tasty-store-logo-mark {
  width: 52px;
  height: 52px;
  border-radius: 8px;
  background: var(--store-primary);
  color: #ffffff;
  display: grid;
  place-items: center;
  font-size: 20px;
  font-weight: 950;
  letter-spacing: 0;
}

.tasty-store-search {
  min-width: 0;
  height: 48px;
  padding: 0 16px;
  border: 1px solid var(--store-line);
  border-radius: 999px;
  background: #ffffff;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
}

.tasty-store-search span {
  color: var(--store-primary);
  font-size: 13px;
  font-weight: 950;
}

.tasty-store-search input {
  width: 100%;
  border: 0;
  outline: 0;
  color: var(--store-ink);
  font: inherit;
  font-weight: 850;
}

.tasty-store-nav {
  flex-wrap: nowrap;
  justify-content: flex-end;
}

.tasty-store-nav a {
  border-color: transparent;
  background: transparent;
  color: var(--store-muted);
  white-space: nowrap;
}

.tasty-store-nav a:hover,
.tasty-store-nav a:focus {
  color: var(--store-primary-dark);
  border-color: rgba(199, 80, 50, 0.24);
  background: rgba(255, 255, 255, 0.7);
}

.tasty-store-header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.tasty-store-account,
.tasty-store-cart-trigger,
.storefront-mobile-cart,
.storefront-product-actions button,
.storefront-product-modal button[data-storefront-modal-add] {
  min-height: 46px;
  border: 0;
  border-radius: 999px;
  padding: 0 18px;
  color: #ffffff;
  background: var(--store-primary);
  font: inherit;
  font-weight: 950;
  text-decoration: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.tasty-store-account {
  background: #ffffff;
  color: var(--store-primary-dark);
  border: 1px solid rgba(199, 80, 50, 0.22);
}

.tasty-store-cart-trigger {
  background: var(--store-secondary);
  color: var(--store-ink);
}

.tasty-store-hero {
  width: min(1240px, calc(100% - 32px));
  min-height: 470px;
  margin: 28px auto;
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(43, 32, 27, 0.78), rgba(43, 32, 27, 0.08) 64%),
    var(--hero-image);
  background-size: cover;
  background-position: center;
  box-shadow: var(--store-shadow);
  grid-template-columns: 1fr;
}

.tasty-store-hero .storefront-hero-copy {
  width: min(660px, 100%);
  padding: clamp(32px, 7vw, 76px);
  align-content: center;
}

.tasty-store-hero .storefront-hero-copy h1 {
  font-size: clamp(42px, 6vw, 76px);
}

.tasty-store-hero .storefront-hero-copy a {
  background: var(--store-secondary);
  color: var(--store-ink);
}

.tasty-store-category-bar {
  width: min(1240px, calc(100% - 32px));
  margin-bottom: 24px;
  padding: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 16px 36px rgba(95, 53, 27, 0.08);
}

.tasty-store-category-bar a {
  border: 0;
  background: transparent;
  color: var(--store-muted);
}

.tasty-store-category-bar a.is-active,
.tasty-store-category-bar a:hover,
.tasty-store-category-bar a:focus {
  background: var(--store-primary);
  color: #ffffff;
}

.tasty-store-products,
.tasty-store-news,
.tasty-store-delivery,
.tasty-store-content-page,
.tasty-store-auth-page {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
}

.tasty-store-product-section,
.tasty-store-news,
.tasty-store-delivery,
.tasty-store-content-page {
  border: 0;
  border-radius: 8px;
  background: transparent;
  box-shadow: none;
  padding: 0;
}

.tasty-store-eyebrow {
  color: var(--store-primary);
  font-size: 13px;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: 0;
}

.tasty-store-product-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.tasty-product-card {
  border: 1px solid var(--store-line);
  border-radius: 8px;
  background: var(--store-card);
  box-shadow: 0 18px 42px rgba(95, 53, 27, 0.1);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.tasty-product-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--store-shadow);
}

.tasty-product-media {
  border: 0;
  padding: 0;
  cursor: pointer;
}

.tasty-product-media img,
.storefront-product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.tasty-product-card .storefront-product-copy {
  min-height: 150px;
}

.tasty-product-card .storefront-product-copy h3 {
  color: var(--store-ink);
  font-size: 20px;
}

.tasty-product-card .storefront-product-copy small {
  color: var(--store-primary);
  font-weight: 950;
}

.tasty-product-card .storefront-product-actions {
  padding: 0 18px 18px;
}

.tasty-product-card .storefront-product-actions strong {
  color: var(--store-ink);
}

.tasty-store-news,
.tasty-store-delivery {
  margin-top: 34px;
  margin-bottom: 34px;
}

.tasty-store-news h2,
.tasty-store-delivery h2 {
  margin-bottom: 18px;
}

.tasty-store-news .storefront-news-card,
.tasty-store-delivery .storefront-delivery-card,
.tasty-store-auth-card,
.tasty-store-account-orders {
  border: 1px solid var(--store-line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 18px 42px rgba(95, 53, 27, 0.09);
}

.tasty-store-news .storefront-news-card {
  color: var(--store-ink);
  display: grid;
  gap: 10px;
}

.tasty-store-auth-page {
  padding: 36px 0 60px;
}

.tasty-store-auth-card {
  width: min(760px, 100%);
  padding: clamp(22px, 4vw, 36px);
  display: grid;
  gap: 20px;
}

.tasty-store-auth-card h1,
.tasty-store-account-orders h2 {
  margin: 0;
  color: var(--store-ink);
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 950;
  line-height: 1.06;
}

.tasty-store-auth-card p,
.tasty-store-account-orders p {
  margin: 0;
  color: var(--store-muted);
  font-weight: 850;
}

.storefront-auth-field {
  display: grid;
  gap: 8px;
  color: var(--store-ink);
  font-weight: 950;
}

.storefront-auth-field input {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--store-line);
  border-radius: 8px;
  padding: 12px 14px;
  color: var(--store-ink);
  font: inherit;
  font-weight: 850;
}

.tasty-store-account-page {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 20px;
}

.tasty-store-account-orders {
  padding: clamp(22px, 4vw, 36px);
}

.tasty-store-account-orders article {
  padding: 14px 0;
  border-bottom: 1px solid var(--store-line);
  display: grid;
  gap: 4px;
}

.tasty-store-account-orders article:last-child {
  border-bottom: 0;
}

.tasty-store-account-orders strong,
.tasty-store-account-orders span,
.tasty-store-account-orders em {
  color: var(--store-ink);
  font-style: normal;
  font-weight: 900;
}

.storefront-cart-drawer {
  position: fixed;
  inset: 0;
  z-index: 80;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.22s ease;
}

.storefront-cart-drawer.is-open {
  pointer-events: auto;
  opacity: 1;
}

.storefront-cart-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(43, 32, 27, 0.48);
}

.tasty-store-cart-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(520px, 100%);
  height: 100%;
  margin: 0;
  border: 0;
  border-radius: 8px 0 0 8px;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.26s ease;
}

.storefront-cart-drawer.is-open .tasty-store-cart-panel {
  transform: translateX(0);
}

.storefront-cart-close,
.storefront-modal-close {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  background: rgba(199, 80, 50, 0.12);
  color: var(--store-primary-dark);
  font-size: 26px;
  font-weight: 950;
  cursor: pointer;
}

.storefront-cart-summary {
  padding: 14px;
  border: 1px solid var(--store-line);
  border-radius: 8px;
  background: rgba(251, 246, 239, 0.78);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.storefront-cart-summary span,
.storefront-cart-summary strong {
  color: var(--store-ink);
  font-weight: 950;
}

.storefront-cart-promotions {
  margin: 10px 0 0;
  padding: 10px 12px;
  border-radius: 12px;
  background: #e8f7f4;
  color: #17685f;
  font-size: 13px;
  font-weight: 700;
}

.tasty-store-cart-panel .storefront-cart-row {
  grid-template-columns: 56px minmax(0, 1fr) auto auto auto;
  background: #ffffff;
}

.tasty-store-cart-panel .storefront-cart-row img {
  width: 56px;
  height: 56px;
  border-radius: 8px;
  object-fit: cover;
}

.storefront-mobile-cart {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 60;
  display: none;
  box-shadow: var(--store-shadow);
}

.storefront-product-modal {
  width: min(860px, calc(100% - 28px));
  border: 0;
  border-radius: 8px;
  padding: 0;
  background: #ffffff;
  color: var(--store-ink);
  box-shadow: var(--store-shadow);
  overflow: hidden;
}

.storefront-product-modal::backdrop {
  background: rgba(43, 32, 27, 0.55);
}

.storefront-product-modal[open] {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(0, 1fr);
}

.storefront-product-modal img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
}

.storefront-product-modal > div {
  padding: clamp(22px, 4vw, 36px);
  display: grid;
  align-content: center;
  gap: 14px;
}

.storefront-product-modal h2,
.storefront-product-modal p {
  margin: 0;
}

.storefront-product-modal h2 {
  color: var(--store-ink);
  font-size: clamp(30px, 5vw, 48px);
  font-weight: 950;
  line-height: 1.08;
}

.storefront-product-modal p {
  color: var(--store-muted);
  font-weight: 850;
  line-height: 1.5;
}

.storefront-product-modal strong {
  color: var(--store-primary-dark);
  font-size: 28px;
  font-weight: 950;
}

.storefront-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
}

.tasty-store-footer {
  background: var(--store-ink);
}

body.is-storefront-cart-open {
  overflow: hidden;
}

@media (max-width: 1120px) {
  .tasty-store-header-main {
    grid-template-columns: minmax(170px, auto) minmax(220px, 1fr) auto;
  }

  .tasty-store-nav {
    grid-column: 1 / -1;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 8px;
  }

  .tasty-store-product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .tasty-store-header-main {
    grid-template-columns: 1fr;
    padding: 12px 0 18px;
  }

  .tasty-store-header-actions {
    justify-content: flex-start;
  }

  .tasty-store-hero {
    min-height: 380px;
  }

  .tasty-store-product-grid,
  .storefront-news-grid,
  .storefront-delivery-grid,
  .tasty-store-account-page {
    grid-template-columns: 1fr;
  }

  .storefront-product-modal[open] {
    grid-template-columns: 1fr;
  }

  .storefront-product-modal img {
    min-height: 240px;
    max-height: 320px;
  }
}

@media (max-width: 640px) {
  .tasty-storefront {
    padding-bottom: 72px;
    overflow-x: hidden;
  }

  .tasty-store-topline,
  .tasty-store-header-main,
  .tasty-store-hero,
  .tasty-store-category-bar,
  .tasty-store-products,
  .tasty-store-news,
  .tasty-store-delivery,
  .tasty-store-content-page,
  .tasty-store-auth-page {
    width: min(1240px, calc(100% - 24px));
  }

  .tasty-store-topline {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    padding: 8px 0;
  }

  .tasty-store-logo {
    font-size: 16px;
  }

  .tasty-store-nav {
    flex-wrap: wrap;
    gap: 6px;
    overflow: visible;
    padding-bottom: 0;
  }

  .tasty-store-nav a {
    min-height: 36px;
    padding: 8px 10px;
    font-size: 13px;
  }

  .tasty-store-header-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .tasty-store-cart-trigger {
    display: inline-flex;
  }

  .storefront-mobile-cart {
    display: none;
  }

  .tasty-store-hero .storefront-hero-copy {
    padding: 28px;
  }

  .tasty-store-category-bar {
    border-radius: 8px;
    max-width: calc(100% - 24px);
    overflow-x: auto;
    scroll-snap-type: x proximity;
  }

  .tasty-store-category-bar a {
    flex: 0 0 auto;
    scroll-snap-align: start;
  }

  .tasty-store-product-grid {
    grid-template-columns: 1fr;
  }

  .tasty-store-cart-panel {
    width: min(100%, 520px);
    border-radius: 0;
  }

  .tasty-store-cart-panel .storefront-cart-row {
    grid-template-columns: 52px 1fr;
  }

  .tasty-store-cart-panel .storefront-cart-row div,
  .tasty-store-cart-panel .storefront-cart-row b,
  .tasty-store-cart-panel .storefront-cart-row > button {
    grid-column: 2;
    justify-self: start;
  }
}

/* Stage 1.57 final storefront overrides: keep this after legacy storefront CSS. */
.tasty-storefront[data-template="tasty-grid-catalog-main"] {
  --store-bg: #fbfaf7;
  --store-card: #ffffff;
  --store-ink: #2b201b;
  --store-muted: #6f625c;
  --store-soft: #f6efe6;
  --store-line: rgba(43, 32, 27, 0.12);
  --store-primary: #c75a36;
  --store-primary-soft: rgba(199, 90, 54, 0.14);
  --store-accent: #f2bd69;
  --store-danger: #d9534f;
  --store-shadow: 0 18px 48px rgba(54, 38, 28, 0.12);
  min-height: 100vh;
  padding: 0 0 48px;
  background: var(--store-bg);
  color: var(--store-ink);
  font-family: "Manrope", "Nunito", Arial, sans-serif;
}

.tasty-storefront[data-template="tasty-grid-catalog-main"] .tasty-store-header {
  position: sticky;
  top: 0;
  z-index: 40;
  min-height: 0;
  border: 0;
  border-bottom: 1px solid var(--store-line);
  background: rgba(251, 250, 247, 0.88);
  box-shadow: none;
  backdrop-filter: blur(18px);
}

.tasty-storefront[data-template="tasty-grid-catalog-main"] .tasty-store-topline,
.tasty-storefront[data-template="tasty-grid-catalog-main"] .tasty-store-header-main {
  width: min(1280px, calc(100% - 48px));
  margin: 0 auto;
}

.tasty-storefront[data-template="tasty-grid-catalog-main"] .tasty-store-topline {
  min-height: 34px;
  border-bottom: 1px solid rgba(43, 32, 27, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: var(--store-muted);
  font-size: 12px;
  font-weight: 700;
}

.tasty-storefront[data-template="tasty-grid-catalog-main"] .tasty-store-header-main {
  min-height: 64px;
  padding: 12px 0;
  display: flex;
  align-items: center;
  gap: 14px;
}

.tasty-storefront[data-template="tasty-grid-catalog-main"] .tasty-store-logo {
  min-width: 178px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--store-ink);
  text-decoration: none;
}

.tasty-storefront[data-template="tasty-grid-catalog-main"] .tasty-store-logo-img,
.tasty-storefront[data-template="tasty-grid-catalog-main"] .tasty-store-logo-mark {
  height: 40px;
  border-radius: 12px;
}

.tasty-storefront[data-template="tasty-grid-catalog-main"] .tasty-store-logo-mark {
  background: var(--store-primary);
  color: #ffffff;
  display: grid;
  place-items: center;
  font-size: 18px;
  font-weight: 950;
}

.tasty-storefront[data-template="tasty-grid-catalog-main"] .tasty-store-logo-img {
  width: auto;
  min-width: 40px;
  max-width: 112px;
  flex: 0 1 auto;
  object-fit: contain;
  background: #ffffff;
}

.tasty-storefront[data-template="tasty-grid-catalog-main"] .tasty-store-logo-text {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.tasty-storefront[data-template="tasty-grid-catalog-main"] .tasty-store-logo-text strong {
  overflow: hidden;
  color: var(--store-ink);
  font-size: 18px;
  font-weight: 950;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tasty-storefront[data-template="tasty-grid-catalog-main"] .tasty-store-logo-text em {
  color: var(--store-muted);
  font-size: 11px;
  font-style: normal;
  font-weight: 700;
}

.tasty-storefront[data-template="tasty-grid-catalog-main"] .tasty-store-search {
  height: 44px;
  min-width: 180px;
  flex: 1 1 360px;
  border: 1px solid var(--store-line);
  border-radius: 999px;
  background: rgba(246, 239, 230, 0.72);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 16px;
}

.tasty-storefront[data-template="tasty-grid-catalog-main"] .tasty-store-search:focus-within {
  border-color: var(--store-primary);
  background: #ffffff;
  box-shadow: 0 0 0 3px var(--store-primary-soft);
}

.tasty-storefront[data-template="tasty-grid-catalog-main"] .tasty-store-search span {
  color: var(--store-muted);
  font-size: 13px;
  font-weight: 850;
}

.tasty-storefront[data-template="tasty-grid-catalog-main"] .tasty-store-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--store-ink);
  font: inherit;
  font-size: 14px;
  font-weight: 700;
}

.tasty-storefront[data-template="tasty-grid-catalog-main"] .tasty-store-nav {
  display: none;
}

.tasty-storefront[data-template="tasty-grid-catalog-main"] .tasty-store-nav::-webkit-scrollbar {
  display: none;
}

.tasty-storefront[data-template="tasty-grid-catalog-main"] .tasty-store-nav a {
  min-height: 34px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--store-muted);
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.tasty-storefront[data-template="tasty-grid-catalog-main"] .tasty-store-nav a:hover,
.tasty-storefront[data-template="tasty-grid-catalog-main"] .tasty-store-nav a:focus {
  border-color: var(--store-line);
  background: #ffffff;
  color: var(--store-primary);
}

.tasty-storefront[data-template="tasty-grid-catalog-main"] .tasty-store-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.tasty-storefront[data-template="tasty-grid-catalog-main"] .tasty-store-account,
.tasty-storefront[data-template="tasty-grid-catalog-main"] .tasty-store-cart-trigger {
  min-height: 42px;
  border: 0;
  border-radius: 999px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
}

.tasty-storefront[data-template="tasty-grid-catalog-main"] .tasty-store-account {
  border: 1px solid var(--store-line);
  background: var(--store-soft);
  color: var(--store-ink);
}

.tasty-storefront[data-template="tasty-grid-catalog-main"] .tasty-store-cart-trigger {
  min-height: 48px;
  background: var(--store-primary);
  color: #ffffff;
  padding-inline: 20px;
  cursor: pointer;
}

.tasty-storefront[data-template="tasty-grid-catalog-main"] .tasty-store-cart-trigger strong {
  min-width: 25px;
  min-height: 25px;
  border-radius: 999px;
  background: #ffffff;
  color: var(--store-primary);
  display: grid;
  place-items: center;
  padding: 3px 7px;
  font-size: 13px;
  line-height: 1;
}

.tasty-storefront[data-template="tasty-grid-catalog-main"] .tasty-store-category-bar {
  position: sticky;
  top: 99px;
  z-index: 30;
  width: 100%;
  max-width: none;
  margin: 0;
  border: 0;
  border-bottom: 1px solid var(--store-line);
  border-radius: 0;
  background: rgba(251, 250, 247, 0.92);
  box-shadow: none;
  backdrop-filter: blur(16px);
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 12px max(16px, calc((100vw - 1280px) / 2 + 24px));
  scrollbar-width: none;
}

.tasty-storefront[data-template="tasty-grid-catalog-main"] .tasty-store-category-bar::-webkit-scrollbar {
  display: none;
}

.tasty-storefront[data-template="tasty-grid-catalog-main"] .tasty-store-category-bar a {
  min-height: 40px;
  border: 1px solid var(--store-line);
  border-radius: 999px;
  background: rgba(246, 239, 230, 0.72);
  color: var(--store-ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  padding: 0 16px;
  font-size: 14px;
  font-weight: 850;
}

.tasty-storefront[data-template="tasty-grid-catalog-main"] .tasty-store-category-bar a.is-active,
.tasty-storefront[data-template="tasty-grid-catalog-main"] .tasty-store-category-bar a:hover,
.tasty-storefront[data-template="tasty-grid-catalog-main"] .tasty-store-category-bar a:focus {
  border-color: var(--store-primary);
  background: var(--store-primary);
  color: #ffffff;
}

.tasty-storefront[data-template="tasty-grid-catalog-main"] .tasty-store-products,
.tasty-storefront[data-template="tasty-grid-catalog-main"] .tasty-store-news,
.tasty-storefront[data-template="tasty-grid-catalog-main"] .tasty-store-delivery,
.tasty-storefront[data-template="tasty-grid-catalog-main"] .tasty-store-content-page,
.tasty-storefront[data-template="tasty-grid-catalog-main"] .tasty-store-auth-page,
.tasty-storefront[data-template="tasty-grid-catalog-main"] .tasty-store-footer {
  width: min(1280px, calc(100% - 48px));
  margin-left: auto;
  margin-right: auto;
}

.tasty-storefront[data-template="tasty-grid-catalog-main"] .tasty-store-products {
  scroll-margin-top: 160px;
  padding: 28px 0 56px;
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.tasty-storefront[data-template="tasty-grid-catalog-main"] .tasty-store-hero {
  width: 100%;
  min-height: 0;
  margin: 0;
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(199, 90, 54, 0.15), rgba(242, 189, 105, 0.58));
  box-shadow: none;
  display: block;
  overflow: hidden;
}

.tasty-storefront[data-template="tasty-grid-catalog-main"] .tasty-store-hero[hidden] {
  display: none;
}

.tasty-storefront[data-template="tasty-grid-catalog-main"] .tasty-store-hero .storefront-hero-copy {
  width: min(680px, 100%);
  min-height: 300px;
  padding: clamp(28px, 4.8vw, 48px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}

.tasty-storefront[data-template="tasty-grid-catalog-main"] .tasty-store-hero .storefront-hero-copy p {
  width: fit-content;
  margin: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--store-primary);
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 900;
}

.tasty-storefront[data-template="tasty-grid-catalog-main"] .tasty-store-hero .storefront-hero-copy h1 {
  margin: 0;
  color: var(--store-ink);
  font-size: clamp(34px, 5vw, 56px);
  font-weight: 950;
  line-height: 1.08;
}

.tasty-storefront[data-template="tasty-grid-catalog-main"] .tasty-store-hero .storefront-hero-copy span {
  max-width: 540px;
  color: rgba(43, 32, 27, 0.72);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
}

.tasty-storefront[data-template="tasty-grid-catalog-main"] .tasty-store-hero .storefront-hero-copy a {
  width: fit-content;
  min-height: 46px;
  border-radius: 999px;
  background: var(--store-primary);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  padding: 0 20px;
  font-weight: 900;
  text-decoration: none;
}

.tasty-storefront[data-template="tasty-grid-catalog-main"] .tasty-store-product-section {
  scroll-margin-top: 160px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
}

.tasty-storefront[data-template="tasty-grid-catalog-main"] .storefront-section-head {
  margin: 0 0 20px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}

.tasty-storefront[data-template="tasty-grid-catalog-main"] .storefront-section-head h2 {
  margin: 0;
  color: var(--store-ink);
  font-size: clamp(26px, 3.2vw, 34px);
  font-weight: 950;
  line-height: 1.08;
}

.tasty-storefront[data-template="tasty-grid-catalog-main"] .storefront-section-head > span,
.tasty-storefront[data-template="tasty-grid-catalog-main"] .tasty-store-eyebrow {
  color: var(--store-muted);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: none;
}

.tasty-storefront[data-template="tasty-grid-catalog-main"] .tasty-store-product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.tasty-storefront[data-template="tasty-grid-catalog-main"] .tasty-product-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(43, 32, 27, 0.11);
  border-radius: 18px;
  background: var(--store-card);
  box-shadow: none;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.tasty-storefront[data-template="tasty-grid-catalog-main"] .tasty-product-card:hover {
  border-color: rgba(199, 90, 54, 0.34);
  box-shadow: var(--store-shadow);
  transform: translateY(-2px);
}

.tasty-storefront[data-template="tasty-grid-catalog-main"] .tasty-product-media,
.tasty-storefront[data-template="tasty-grid-catalog-main"] .storefront-product-media {
  width: 100%;
  aspect-ratio: 1;
  border: 0;
  border-radius: 0;
  background: var(--store-soft);
  display: block;
  overflow: hidden;
  padding: 0;
  position: relative;
  cursor: pointer;
}

.tasty-storefront[data-template="tasty-grid-catalog-main"] .tasty-product-media img,
.tasty-storefront[data-template="tasty-grid-catalog-main"] .storefront-product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease;
}

.tasty-storefront[data-template="tasty-grid-catalog-main"] .tasty-product-card:hover .storefront-product-media img {
  transform: scale(1.045);
}

.tasty-storefront[data-template="tasty-grid-catalog-main"] .tasty-product-card .storefront-product-copy {
  min-height: 0;
  padding: 16px 16px 8px;
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 8px;
}

.tasty-storefront[data-template="tasty-grid-catalog-main"] .tasty-product-card .storefront-product-copy h3 {
  margin: 0;
  color: var(--store-ink);
  font-size: 16px;
  font-weight: 900;
  line-height: 1.22;
}

.tasty-storefront[data-template="tasty-grid-catalog-main"] .tasty-product-card .storefront-product-copy p {
  margin: 0;
  color: var(--store-muted);
  display: -webkit-box;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.38;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.tasty-storefront[data-template="tasty-grid-catalog-main"] .tasty-product-card .storefront-product-copy small {
  color: var(--store-muted);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.tasty-storefront[data-template="tasty-grid-catalog-main"] .storefront-product-rating {
  width: fit-content;
  color: #7a654f;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 850;
}

.tasty-storefront[data-template="tasty-grid-catalog-main"] .storefront-product-rating img {
  width: 15px;
  height: 15px;
  filter: invert(61%) sepia(92%) saturate(1032%) hue-rotate(351deg) brightness(101%) contrast(102%);
}

.tasty-storefront[data-template="tasty-grid-catalog-main"] .storefront-combo-discount-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .94);
  color: var(--store-primary);
  box-shadow: 0 6px 18px rgba(43, 32, 27, .12);
  padding: 7px 10px;
  font-size: 13px;
  font-weight: 950;
  line-height: 1;
}

.tasty-storefront[data-template="tasty-grid-catalog-main"] .storefront-combo-offer {
  color: var(--store-primary);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.35;
}

.tasty-storefront[data-template="tasty-grid-catalog-main"] .tasty-product-card .storefront-product-actions {
  margin-top: auto;
  padding: 8px 16px 16px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}

.tasty-storefront[data-template="tasty-grid-catalog-main"] .tasty-product-card .storefront-product-actions strong {
  color: var(--store-ink);
  font-size: 19px;
  font-weight: 950;
  line-height: 1;
  white-space: nowrap;
}

.tasty-storefront[data-template="tasty-grid-catalog-main"] .storefront-product-actions button,
.tasty-storefront[data-template="tasty-grid-catalog-main"] .storefront-product-modal button[data-storefront-modal-add] {
  min-height: 40px;
  border: 0;
  border-radius: 999px;
  background: var(--store-primary);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
}

.tasty-storefront[data-template="tasty-grid-catalog-main"] .tasty-product-card.is-stopped {
  border-color: rgba(216, 75, 81, .38);
  background: #fff7f7;
}

.tasty-storefront[data-template="tasty-grid-catalog-main"] .tasty-product-card.is-stopped .tasty-product-media img {
  filter: grayscale(.7);
  opacity: .68;
}

.storefront-stop-list-badge {
  width: fit-content;
  border-radius: 999px;
  background: #d84b51;
  padding: 5px 9px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.25;
}

.storefront-modal-availability {
  border-radius: 8px;
  background: #fff0f0;
  padding: 9px 11px;
  color: #a72f35;
  font-weight: 900;
}

.tasty-storefront[data-template="tasty-grid-catalog-main"] .storefront-product-actions button:disabled,
.tasty-storefront[data-template="tasty-grid-catalog-main"] .storefront-product-modal button[data-storefront-modal-add]:disabled {
  background: #b9c1c5;
  cursor: not-allowed;
}

.tasty-storefront[data-template="tasty-grid-catalog-main"] .storefront-cart-drawer {
  position: fixed;
  inset: 0;
  z-index: 80;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.tasty-storefront[data-template="tasty-grid-catalog-main"] .storefront-cart-drawer.is-open {
  opacity: 1;
  pointer-events: auto;
}

.tasty-storefront[data-template="tasty-grid-catalog-main"] .storefront-cart-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}

.tasty-storefront[data-template="tasty-grid-catalog-main"] .tasty-store-cart-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(448px, 100%);
  height: 100%;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: var(--store-card);
  box-shadow: -24px 0 60px rgba(43, 32, 27, 0.18);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  padding: 0;
  transform: translateX(100%);
  transition: transform 0.25s ease;
}

.tasty-storefront[data-template="tasty-grid-catalog-main"] .storefront-cart-drawer.is-open .tasty-store-cart-panel {
  transform: translateX(0);
}

.tasty-storefront[data-template="tasty-grid-catalog-main"] .tasty-store-cart-panel > .storefront-section-head {
  margin: 0;
  border-bottom: 1px solid var(--store-line);
  padding: 18px 20px;
}

.tasty-storefront[data-template="tasty-grid-catalog-main"] .storefront-cart-close,
.tasty-storefront[data-template="tasty-grid-catalog-main"] .storefront-modal-close {
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 999px;
  background: var(--store-soft);
  color: var(--store-ink);
  font-size: 22px;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
}

.tasty-storefront[data-template="tasty-grid-catalog-main"] .storefront-order-form {
  padding: 18px 20px 22px;
  display: grid;
  gap: 16px;
}

.tasty-storefront[data-template="tasty-grid-catalog-main"] .storefront-cart-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tasty-storefront[data-template="tasty-grid-catalog-main"] .storefront-cart-list p {
  margin: 42px 0;
  color: var(--store-muted);
  text-align: center;
  font-weight: 750;
}

.tasty-storefront[data-template="tasty-grid-catalog-main"] .tasty-store-cart-panel .storefront-cart-row {
  border: 1px solid var(--store-line);
  border-radius: 16px;
  background: #ffffff;
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr) auto;
  gap: 10px 12px;
  padding: 12px;
}

.tasty-storefront[data-template="tasty-grid-catalog-main"] .tasty-store-cart-panel .storefront-cart-row img {
  width: 74px;
  height: 74px;
  border-radius: 12px;
  grid-row: 1 / span 3;
  object-fit: cover;
}

.tasty-storefront[data-template="tasty-grid-catalog-main"] .tasty-store-cart-panel .storefront-cart-row span {
  color: var(--store-ink);
  font-size: 14px;
  font-weight: 850;
  line-height: 1.25;
}

.tasty-storefront[data-template="tasty-grid-catalog-main"] .tasty-store-cart-panel .storefront-cart-row div {
  width: fit-content;
  border-radius: 999px;
  background: var(--store-soft);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px;
}

.tasty-storefront[data-template="tasty-grid-catalog-main"] .storefront-cart-row div button {
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 999px;
  background: #ffffff;
  color: var(--store-ink);
  font-size: 17px;
  font-weight: 900;
  cursor: pointer;
}

.tasty-storefront[data-template="tasty-grid-catalog-main"] .storefront-cart-row div button:last-child {
  background: var(--store-primary);
  color: #ffffff;
}

.tasty-storefront[data-template="tasty-grid-catalog-main"] .tasty-store-cart-panel .storefront-cart-row b {
  color: var(--store-ink);
  font-weight: 950;
  white-space: nowrap;
}

.tasty-storefront[data-template="tasty-grid-catalog-main"] .tasty-store-cart-panel .storefront-cart-row > button {
  border: 0;
  background: transparent;
  color: var(--store-danger);
  font-size: 12px;
  font-weight: 800;
  justify-self: end;
  cursor: pointer;
}

.tasty-storefront[data-template="tasty-grid-catalog-main"] .storefront-cart-summary {
  border: 0;
  border-radius: 16px;
  background: var(--store-soft);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  padding: 14px;
}

.tasty-storefront[data-template="tasty-grid-catalog-main"] .storefront-cart-summary span,
.tasty-storefront[data-template="tasty-grid-catalog-main"] .storefront-cart-summary strong {
  color: var(--store-ink);
  font-weight: 900;
}

.tasty-storefront[data-template="tasty-grid-catalog-main"] .storefront-order-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.tasty-storefront[data-template="tasty-grid-catalog-main"] .storefront-order-grid label,
.tasty-storefront[data-template="tasty-grid-catalog-main"] .storefront-payment-choice,
.tasty-storefront[data-template="tasty-grid-catalog-main"] .storefront-auth-field {
  display: grid;
  gap: 7px;
  color: var(--store-ink);
  font-size: 13px;
  font-weight: 850;
}

.tasty-storefront[data-template="tasty-grid-catalog-main"] .storefront-order-grid input,
.tasty-storefront[data-template="tasty-grid-catalog-main"] .storefront-order-grid select,
.tasty-storefront[data-template="tasty-grid-catalog-main"] .storefront-order-grid textarea,
.tasty-storefront[data-template="tasty-grid-catalog-main"] .storefront-auth-field input {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--store-line);
  border-radius: 14px;
  background: #ffffff;
  color: var(--store-ink);
  padding: 10px 12px;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
}

.tasty-storefront[data-template="tasty-grid-catalog-main"] .storefront-payment-choice {
  grid-column: 1 / -1;
  border: 0;
  margin: 0;
  padding: 0;
}

.tasty-storefront[data-template="tasty-grid-catalog-main"] .storefront-payment-choice legend {
  margin-bottom: 8px;
  color: var(--store-ink);
  font-size: 13px;
  font-weight: 850;
}

.tasty-storefront[data-template="tasty-grid-catalog-main"] .storefront-payment-choice label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-right: 10px;
  margin-bottom: 10px;
  padding: 12px 16px;
  border: 1px solid rgba(79, 169, 162, 0.26);
  border-radius: 14px;
  background: rgba(79, 169, 162, 0.08);
  cursor: pointer;
}

.tasty-storefront[data-template="tasty-grid-catalog-main"] .storefront-payment-choice input {
  width: 18px;
  height: 18px;
  min-height: 18px;
  margin: 0;
  padding: 0;
  accent-color: var(--store-primary);
}

.tasty-storefront[data-template="tasty-grid-catalog-main"] .storefront-order-comment {
  grid-column: 1 / -1;
}

.tasty-storefront[data-template="tasty-grid-catalog-main"] .storefront-order-submit {
  min-height: 48px;
  border: 0;
  border-radius: 999px;
  background: var(--store-primary);
  color: #ffffff;
  font: inherit;
  font-weight: 950;
  cursor: pointer;
}

.tasty-storefront[data-template="tasty-grid-catalog-main"] .storefront-order-submit:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.tasty-storefront[data-template="tasty-grid-catalog-main"] .storefront-mobile-cart {
  position: fixed;
  inset: auto 12px 12px;
  z-index: 60;
  min-height: 60px;
  border: 0;
  border-radius: 999px;
  background: var(--store-primary);
  color: #ffffff;
  box-shadow: 0 12px 28px rgba(199, 90, 54, 0.28);
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 0 24px;
  font: inherit;
  font-size: 16px;
  font-weight: 950;
  cursor: pointer;
}

.tasty-storefront[data-template="tasty-grid-catalog-main"] .storefront-product-modal {
  width: min(936px, calc(100vw - 96px));
  height: min(772px, calc(100dvh - 64px));
  min-height: min(620px, calc(100dvh - 64px));
  max-height: 772px;
  border: 0;
  border-radius: 24px;
  background: var(--store-card);
  color: var(--store-ink);
  box-shadow: 0 28px 80px rgba(43, 32, 27, 0.22);
  overflow: visible;
  padding: 0;
}

.tasty-storefront[data-template="tasty-grid-catalog-main"] .storefront-product-modal::backdrop {
  background: rgba(13, 20, 24, 0.56);
  backdrop-filter: blur(5px);
}

.tasty-storefront[data-template="tasty-grid-catalog-main"] .storefront-product-modal[open] {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: minmax(0, 1fr) 80px;
}

.tasty-storefront[data-template="tasty-grid-catalog-main"] .storefront-product-modal img {
  min-height: 0;
}

.tasty-storefront[data-template="tasty-grid-catalog-main"] .storefront-product-modal > .storefront-modal-media {
  position: relative;
  grid-column: 1;
  grid-row: 1 / -1;
  min-height: 0;
  border-radius: 24px 0 0 24px;
  background: var(--store-card);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  padding: 16px 0 16px 16px;
}

.tasty-storefront[data-template="tasty-grid-catalog-main"] .storefront-modal-media > img {
  width: 100%;
  height: auto;
  min-height: 0;
  aspect-ratio: 452 / 434;
  border-radius: 16px;
  object-fit: cover;
}

.tasty-storefront[data-template="tasty-grid-catalog-main"] .storefront-modal-media > span {
  position: absolute;
  top: 32px;
  right: 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .94);
  color: var(--store-ink);
  padding: 9px 13px;
  font-size: 14px;
  font-weight: 900;
}

.tasty-storefront[data-template="tasty-grid-catalog-main"] .storefront-modal-media > span:empty {
  display: none;
}

.tasty-storefront[data-template="tasty-grid-catalog-main"] .storefront-modal-media > .storefront-modal-rating {
  position: static;
  margin: 14px 8px 0;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: transparent;
  padding: 0;
}

.tasty-storefront[data-template="tasty-grid-catalog-main"] .storefront-modal-media > .storefront-modal-combo-offer {
  top: 32px;
  right: auto;
  left: 32px;
  max-width: calc(100% - 112px);
  border-radius: 12px;
  color: var(--store-ink);
  line-height: 1.3;
}

.storefront-modal-rating img {
  width: 16px;
  height: 16px;
  filter: invert(61%) sepia(92%) saturate(1032%) hue-rotate(351deg) brightness(101%) contrast(102%);
}

.tasty-storefront[data-template="tasty-grid-catalog-main"] .storefront-product-modal > .storefront-modal-copy {
  grid-column: 2;
  grid-row: 1;
  min-height: 0;
  max-height: none;
  border-radius: 0 24px 0 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  padding: 18px 24px 22px 32px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 16px;
}

.tasty-storefront[data-template="tasty-grid-catalog-main"] .storefront-product-modal h2,
.tasty-storefront[data-template="tasty-grid-catalog-main"] .storefront-product-modal p {
  margin: 0;
}

.tasty-storefront[data-template="tasty-grid-catalog-main"] .storefront-product-modal h2 {
  color: var(--store-ink);
  font-size: clamp(25px, 3vw, 30px);
  font-weight: 950;
  line-height: 1.12;
}

.tasty-storefront[data-template="tasty-grid-catalog-main"] .storefront-product-modal h2:focus {
  outline: 0;
}

.tasty-storefront[data-template="tasty-grid-catalog-main"] .storefront-product-modal p {
  color: var(--store-muted);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.42;
}

.tasty-storefront[data-template="tasty-grid-catalog-main"] .storefront-modal-description {
  font-weight: 600;
}

.tasty-storefront[data-template="tasty-grid-catalog-main"] .storefront-product-modal .storefront-combo-discount-summary {
  border-radius: 14px;
  background: #fff3ed;
  color: var(--store-primary);
  padding: 12px 14px;
  font-weight: 900;
}

.tasty-storefront[data-template="tasty-grid-catalog-main"] .storefront-product-modal strong {
  color: var(--store-ink);
  font-size: 24px;
  font-weight: 950;
}

.tasty-storefront[data-template="tasty-grid-catalog-main"] .storefront-modal-close {
  position: absolute;
  top: 0;
  right: -48px;
  z-index: 4;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #eef2f6;
}

.tasty-storefront[data-template="tasty-grid-catalog-main"] .storefront-modal-close img,
.storefront-rating-head button img {
  width: 18px;
  height: 18px;
}

.storefront-product-details {
  border: 0;
  padding: 4px 0 0;
}

.storefront-product-details summary {
  color: var(--store-ink);
  cursor: pointer;
  font-size: 18px;
  font-weight: 950;
  list-style-position: inside;
}

.storefront-product-details[data-storefront-exclusions] summary {
  display: flex;
  align-items: center;
  gap: 8px;
}

.storefront-product-details [data-storefront-exclusion-counter] {
  border-radius: 999px;
  background: #8c98a6;
  color: #ffffff !important;
  padding: 4px 8px;
  font-size: 12px !important;
  line-height: 1;
}

.storefront-nutrition-grid {
  margin-top: 14px;
  display: grid;
  grid-template-columns: 72px repeat(4, minmax(0, 1fr));
  gap: 10px 8px;
  align-items: center;
}

.storefront-nutrition-grid > span {
  min-width: 0;
  color: var(--store-muted);
  display: grid;
  gap: 2px;
  font-size: 12px;
  text-align: center;
}

.storefront-nutrition-grid > span strong {
  font-size: 16px !important;
}

.storefront-nutrition-grid .storefront-nutrition-label {
  text-align: left;
}

.storefront-exclusion-list {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.storefront-exclusion-list label {
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: var(--store-soft);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  cursor: pointer;
  font-weight: 800;
}

.storefront-exclusion-list label.is-selected {
  border-color: var(--store-primary);
  background: #fff3ed;
}

.storefront-exclusion-list input {
  width: 21px;
  height: 21px;
  accent-color: var(--store-primary);
}

.storefront-combo-builder {
  min-height: 0;
  flex: 0 0 auto;
}

.storefront-combo-builder > div:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.storefront-combo-builder h3 {
  margin: 0;
  font-size: 20px;
}

.storefront-combo-builder [data-storefront-combo-counter] {
  border-radius: 999px;
  background: #8c98a6;
  color: #fff !important;
  padding: 5px 9px;
  font-size: 13px !important;
}

.storefront-combo-grid {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.storefront-combo-grid button {
  min-width: 0;
  border: 2px solid transparent;
  border-radius: 12px;
  background: var(--store-soft);
  color: var(--store-ink);
  overflow: hidden;
  padding: 0;
  text-align: left;
  cursor: pointer;
}

.storefront-combo-grid button.is-selected {
  border-color: var(--store-primary);
  box-shadow: 0 0 0 2px rgba(199, 90, 54, .14);
}

.storefront-combo-grid button.is-selected > img,
.storefront-upsell-grid article.is-selected > img {
  filter: brightness(.7);
}

.storefront-combo-grid button > em {
  position: absolute;
  top: 24%;
  left: 50%;
  display: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, .94);
  color: var(--store-ink);
  padding: 5px 8px;
  font-size: 10px;
  font-style: normal;
  font-weight: 950;
  transform: translate(-50%, -50%);
}

.storefront-combo-grid button.is-selected > em {
  display: block;
}

.storefront-combo-grid button.is-selected > b {
  display: none;
}

.storefront-combo-grid button > img {
  width: 100%;
  height: auto;
  min-height: 0;
  aspect-ratio: 1.4;
  display: block;
  object-fit: cover;
}

.storefront-combo-grid button > span {
  min-height: 64px;
  display: grid;
  gap: 5px;
  padding: 9px 32px 9px 9px;
}

.storefront-combo-grid button > span strong {
  font-size: 13px !important;
  line-height: 1.22;
}

.storefront-combo-grid button > span small {
  color: var(--store-muted);
  font-weight: 800;
}

.storefront-combo-grid button > b {
  position: absolute;
  right: 9px;
  bottom: 10px;
  width: 20px;
  height: 20px;
}

.storefront-combo-grid button {
  position: relative;
}

.storefront-combo-grid button > b img {
  width: 100%;
  height: 100%;
}

.storefront-upsell-builder {
  min-height: 0;
  flex: 0 0 auto;
}

.storefront-upsell-builder > div:first-child {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
}

.storefront-upsell-builder h3 {
  margin: 0;
  font-size: 20px;
}

.storefront-upsell-builder [data-storefront-upsell-counter] {
  border-radius: 999px;
  background: #8c98a6;
  color: #fff !important;
  padding: 5px 9px;
  font-size: 13px !important;
}

.storefront-upsell-grid {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.storefront-upsell-grid article {
  position: relative;
  min-width: 0;
  border: 2px solid transparent;
  border-radius: 12px;
  background: var(--store-soft);
  color: var(--store-ink);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.storefront-upsell-grid article.is-selected {
  border-color: var(--store-primary);
  box-shadow: 0 0 0 2px rgba(199, 90, 54, .14);
}

.storefront-upsell-grid article > img {
  width: 100%;
  height: auto;
  min-height: 0;
  aspect-ratio: 1.4;
  display: block;
  object-fit: cover;
}

.storefront-upsell-grid article > strong {
  min-height: 48px;
  padding: 9px;
  font-size: 13px !important;
  line-height: 1.22;
}

.storefront-upsell-grid article > footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 7px 7px 9px;
}

.storefront-upsell-grid article > footer small {
  color: var(--store-ink);
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

.storefront-upsell-grid article > footer div {
  min-height: 34px;
  display: flex;
  align-items: center;
  gap: 3px;
}

.storefront-upsell-grid article > footer button {
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 999px;
  background: #ffffff;
  color: var(--store-ink);
  font: inherit;
  font-size: 20px;
  font-weight: 900;
  cursor: pointer;
}

.storefront-upsell-grid article > footer button:disabled {
  cursor: not-allowed;
  opacity: .35;
}

.storefront-upsell-grid article:not(.is-selected) [data-storefront-upsell-minus],
.storefront-upsell-grid article:not(.is-selected) [data-storefront-upsell-quantity] {
  display: none;
}

.storefront-upsell-grid article > footer b {
  min-width: 22px;
  color: var(--store-ink);
  text-align: center;
}

.storefront-upsell-grid article.is-selected [data-storefront-upsell-quantity] {
  position: absolute;
  top: 25%;
  left: 50%;
  min-width: 32px;
  min-height: 32px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .94);
  display: grid;
  place-items: center;
  font-size: 15px;
  transform: translate(-50%, -50%);
}

.storefront-cart-upsell {
  border-radius: 18px;
  background: var(--store-soft);
  display: grid;
  gap: 12px;
  padding: 16px;
}

.storefront-cart-upsell h3 {
  margin: 0;
  color: var(--store-ink);
  font-size: 18px;
  font-weight: 950;
}

.storefront-cart-upsell > div {
  display: grid;
  gap: 8px;
}

.storefront-cart-upsell article {
  min-width: 0;
  border-radius: 14px;
  background: #ffffff;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 8px;
}

.storefront-cart-upsell article > img {
  width: 54px;
  height: 54px;
  border-radius: 10px;
  object-fit: cover;
}

.storefront-cart-upsell article > span {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.storefront-cart-upsell article > span strong {
  overflow: hidden;
  font-size: 13px;
  text-overflow: ellipsis;
}

.storefront-cart-upsell article > span small {
  color: var(--store-muted);
  font-weight: 850;
}

.storefront-cart-upsell article > div {
  display: flex;
  align-items: center;
  gap: 5px;
}

.storefront-cart-upsell article button {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 999px;
  background: var(--store-primary);
  color: #ffffff;
  font: inherit;
  font-size: 18px;
  font-weight: 900;
  cursor: pointer;
}

.storefront-cart-upsell article button:disabled {
  background: #dce2e8;
  color: var(--store-muted);
  cursor: not-allowed;
}

.storefront-cart-upsell article b {
  min-width: 18px;
  color: var(--store-ink);
  text-align: center;
}

.storefront-modal-purchase {
  position: static;
  flex: 0 0 auto;
  z-index: 1;
  margin: auto -34px -34px;
  border-top: 1px solid rgba(43, 32, 27, .12);
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(8px);
  display: grid;
  gap: 10px;
  padding: 18px 34px 24px;
}

.tasty-storefront[data-template="tasty-grid-catalog-main"] .storefront-product-modal > .storefront-modal-purchase {
  position: relative;
  grid-column: 2;
  grid-row: 2;
  z-index: 3;
  min-width: 0;
  margin: 0;
  border-top: 1px solid rgba(43, 32, 27, .12);
  border-radius: 0 0 24px 0;
  background: rgba(255, 255, 255, .98);
  display: block;
  padding: 14px 24px 14px 32px;
}

.tasty-storefront[data-template="tasty-grid-catalog-main"] .storefront-product-modal .storefront-modal-price-summary {
  display: none;
}

.storefront-modal-price-summary {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 7px 12px;
}

.storefront-modal-price-summary del {
  color: var(--store-muted);
  font-size: 16px;
  font-weight: 800;
}

.storefront-modal-price-summary small {
  width: 100%;
  color: var(--store-primary);
  font-size: 13px;
  font-weight: 900;
}

.tasty-storefront[data-template="tasty-grid-catalog-main"] .storefront-modal-purchase button[data-storefront-modal-add] {
  width: 100%;
  min-height: 52px;
  border-radius: 14px;
}

.storefront-cart-row > span {
  display: grid;
  gap: 4px;
}

.storefront-cart-row > span small {
  color: var(--store-muted);
  font-size: 12px;
}

.storefront-cart-row > span .storefront-cart-combo-discount {
  color: var(--store-primary);
  font-weight: 900;
}

.storefront-cart-row > span .storefront-cart-combo-discount del {
  color: var(--store-muted);
}

.storefront-rating-modal {
  width: min(620px, calc(100% - 28px));
  max-height: min(90vh, 760px);
  border: 0;
  border-radius: 24px;
  background: #fff;
  color: var(--store-ink);
  box-shadow: 0 28px 80px rgba(43, 32, 27, .24);
  overflow: auto;
  padding: 0;
}

.storefront-rating-modal::backdrop {
  background: rgba(13, 20, 24, .62);
  backdrop-filter: blur(5px);
}

.storefront-rating-modal form {
  padding: 28px;
}

.storefront-rating-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.storefront-rating-head span {
  color: var(--store-primary);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.storefront-rating-head h2 {
  margin: 5px 0;
  font-size: 30px;
}

.storefront-rating-head p {
  margin: 0;
  color: var(--store-muted);
}

.storefront-rating-head button {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border: 0;
  border-radius: 14px;
  background: var(--store-soft);
  display: grid;
  place-items: center;
  cursor: pointer;
}

.storefront-rating-items {
  margin-top: 22px;
  display: grid;
  gap: 12px;
}

.storefront-rating-items fieldset {
  min-width: 0;
  border: 1px solid rgba(43, 32, 27, .12);
  border-radius: 16px;
  padding: 16px;
}

.storefront-rating-items legend {
  padding: 0 6px;
  font-weight: 900;
}

.storefront-star-rating {
  display: grid;
  grid-template-columns: repeat(5, 44px);
  gap: 6px;
}

.storefront-star-rating label {
  width: 44px;
  height: 44px;
  position: relative;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.storefront-star-rating input {
  position: absolute;
  opacity: 0;
}

.storefront-star-rating img {
  width: 28px;
  height: 28px;
  opacity: .28;
  transition: opacity .15s ease, transform .15s ease;
}

.storefront-star-rating input:checked + img,
.storefront-star-rating label:has(input:checked) img {
  opacity: 1;
  transform: scale(1.08);
  filter: invert(61%) sepia(92%) saturate(1032%) hue-rotate(351deg) brightness(101%) contrast(102%);
}

.storefront-rating-submit {
  width: 100%;
  min-height: 52px;
  margin-top: 20px;
  border: 0;
  border-radius: 14px;
  background: var(--store-primary);
  color: #fff;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.tasty-storefront[data-template="tasty-grid-catalog-main"] .tasty-store-footer {
  margin-top: 20px;
  border: 0;
  border-radius: 18px;
  background: var(--store-soft);
  color: var(--store-muted);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 24px;
}

.tasty-storefront[data-template="tasty-grid-catalog-main"] .tasty-store-footer strong {
  color: var(--store-ink);
}

@media (max-width: 1120px) {
  .tasty-storefront[data-template="tasty-grid-catalog-main"] .tasty-store-nav {
    display: none;
  }

  .tasty-storefront[data-template="tasty-grid-catalog-main"] .tasty-store-product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1366px) {
  .tasty-storefront[data-template="tasty-grid-catalog-main"][data-table-order-mode="1"] {
    padding-bottom: 94px;
  }

  .tasty-storefront[data-template="tasty-grid-catalog-main"][data-table-order-mode="1"] .storefront-mobile-cart.is-visible {
    display: flex;
  }
}

@media (max-width: 820px) {
  .tasty-storefront[data-template="tasty-grid-catalog-main"] .tasty-store-topline {
    display: none;
  }

  .tasty-storefront[data-template="tasty-grid-catalog-main"] .tasty-store-header-main {
    width: min(100% - 24px, 1280px);
    min-height: 58px;
    padding: 9px 0;
  }

  .tasty-storefront[data-template="tasty-grid-catalog-main"] .tasty-store-logo {
    min-width: 0;
  }

  .tasty-storefront[data-template="tasty-grid-catalog-main"] .tasty-store-logo-img {
    min-width: 36px;
    max-width: 64px;
    height: 40px;
  }

  .tasty-storefront[data-template="tasty-grid-catalog-main"] .tasty-store-logo-text,
  .tasty-storefront[data-template="tasty-grid-catalog-main"] .tasty-store-account {
    display: none;
  }

  .tasty-storefront[data-template="tasty-grid-catalog-main"] .tasty-store-search {
    flex-basis: auto;
    min-width: 0;
  }

  .tasty-storefront[data-template="tasty-grid-catalog-main"] .tasty-store-category-bar {
    top: 59px;
    padding-inline: 12px;
  }

  .tasty-storefront[data-template="tasty-grid-catalog-main"] .tasty-store-products,
  .tasty-storefront[data-template="tasty-grid-catalog-main"] .tasty-store-news,
  .tasty-storefront[data-template="tasty-grid-catalog-main"] .tasty-store-delivery,
  .tasty-storefront[data-template="tasty-grid-catalog-main"] .tasty-store-content-page,
  .tasty-storefront[data-template="tasty-grid-catalog-main"] .tasty-store-auth-page,
  .tasty-storefront[data-template="tasty-grid-catalog-main"] .tasty-store-footer {
    width: min(100% - 24px, 1280px);
  }

  .tasty-storefront[data-template="tasty-grid-catalog-main"] .tasty-store-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .tasty-storefront[data-template="tasty-grid-catalog-main"] .storefront-order-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .tasty-storefront[data-template="tasty-grid-catalog-main"] .storefront-product-modal {
    inset: 0;
    width: 100vw;
    height: 100dvh;
    min-height: 100dvh;
    max-width: none;
    max-height: none;
    margin: 0;
    border-radius: 0;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: none;
  }

  .tasty-storefront[data-template="tasty-grid-catalog-main"] .storefront-product-modal::-webkit-scrollbar {
    display: none;
  }

  .tasty-storefront[data-template="tasty-grid-catalog-main"] .storefront-product-modal[open] {
    display: block;
  }

  .tasty-storefront[data-template="tasty-grid-catalog-main"] .storefront-product-modal > .storefront-modal-media {
    min-height: 0;
    border-radius: 0;
    display: flex;
    padding: 0 0 14px;
  }

  .tasty-storefront[data-template="tasty-grid-catalog-main"] .storefront-modal-media > img {
    width: 100%;
    min-height: 0;
    max-height: none;
    aspect-ratio: 1.22;
    border-radius: 0 0 18px 18px;
  }

  .tasty-storefront[data-template="tasty-grid-catalog-main"] .storefront-modal-media > span {
    top: 16px;
    right: 68px;
  }

  .tasty-storefront[data-template="tasty-grid-catalog-main"] .storefront-modal-media > .storefront-modal-rating {
    margin: 14px 16px 0;
  }

  .tasty-storefront[data-template="tasty-grid-catalog-main"] .storefront-modal-media > [data-storefront-modal-portion] {
    top: auto;
    right: auto;
    bottom: 32px;
    left: 16px;
  }

  .tasty-storefront[data-template="tasty-grid-catalog-main"] .storefront-modal-media > .storefront-modal-combo-offer {
    top: auto;
    right: auto;
    bottom: 66px;
    left: 16px;
    max-width: calc(100% - 88px);
  }

  .tasty-storefront[data-template="tasty-grid-catalog-main"] .storefront-product-modal > .storefront-modal-copy {
    max-height: none;
    border-radius: 0;
    overflow: visible;
    padding: 4px 16px 116px;
    gap: 16px;
  }

  .tasty-storefront[data-template="tasty-grid-catalog-main"] .storefront-product-modal h2 {
    font-size: 26px;
  }

  .tasty-storefront[data-template="tasty-grid-catalog-main"] .storefront-modal-close {
    position: fixed;
    top: max(12px, env(safe-area-inset-top));
    right: 12px;
    width: 40px;
    height: 40px;
    border-radius: 12px;
  }

  .tasty-storefront[data-template="tasty-grid-catalog-main"] .storefront-product-modal > .storefront-modal-purchase {
    position: fixed;
    inset: auto 0 0;
    margin: 0;
    border-radius: 0;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 -10px 30px rgba(13, 20, 24, .1);
    backdrop-filter: blur(10px);
    padding: 12px 16px max(12px, env(safe-area-inset-bottom));
  }

  .tasty-storefront[data-template="tasty-grid-catalog-main"] .storefront-modal-purchase button[data-storefront-modal-add] {
    min-height: 54px;
  }

  .storefront-combo-grid,
  .storefront-upsell-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }

  .storefront-combo-grid button > span,
  .storefront-upsell-grid article > strong {
    min-height: 56px;
    padding: 7px;
  }

  .storefront-combo-grid button > span strong,
  .storefront-upsell-grid article > strong {
    font-size: 11px !important;
  }

  .storefront-combo-grid button > span small,
  .storefront-upsell-grid article > footer small {
    font-size: 11px;
  }

  .storefront-upsell-grid article > footer {
    padding: 0 4px 5px 6px;
  }

  .storefront-upsell-grid article > footer button {
    width: 28px;
    height: 28px;
  }
}

@media (max-width: 640px) {
  .tasty-storefront[data-template="tasty-grid-catalog-main"] {
    padding-bottom: 84px;
    overflow-x: visible;
  }

  .tasty-storefront[data-template="tasty-grid-catalog-main"] .tasty-store-product-grid {
    grid-template-columns: 1fr;
  }

  .tasty-storefront[data-template="tasty-grid-catalog-main"] .tasty-store-cart-trigger {
    min-width: 48px;
    min-height: 48px;
    padding: 0 10px;
  }

  .tasty-storefront[data-template="tasty-grid-catalog-main"] .tasty-store-search span {
    display: none;
  }

  .tasty-storefront[data-template="tasty-grid-catalog-main"] .tasty-store-cart-trigger > span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .tasty-storefront[data-template="tasty-grid-catalog-main"] .tasty-store-hero {
    border-radius: 22px;
  }

  .tasty-storefront[data-template="tasty-grid-catalog-main"] .tasty-store-hero .storefront-hero-copy {
    min-height: 245px;
    padding: 24px;
  }

  .tasty-storefront[data-template="tasty-grid-catalog-main"] .storefront-section-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    text-align: left;
  }

  .tasty-storefront[data-template="tasty-grid-catalog-main"] .storefront-section-head > div,
  .tasty-storefront[data-template="tasty-grid-catalog-main"] .storefront-section-head h2,
  .tasty-storefront[data-template="tasty-grid-catalog-main"] .storefront-section-head .tasty-store-eyebrow {
    width: 100%;
    text-align: left;
  }

  .tasty-storefront[data-template="tasty-grid-catalog-main"] .storefront-section-head > span {
    align-self: flex-start;
    text-align: left;
  }

  .tasty-storefront[data-template="tasty-grid-catalog-main"] .tasty-product-card {
    border-radius: 16px;
  }

  .tasty-storefront[data-template="tasty-grid-catalog-main"] .tasty-product-card .storefront-product-copy {
    padding: 12px 12px 6px;
  }

  .tasty-storefront[data-template="tasty-grid-catalog-main"] .tasty-product-card .storefront-product-copy h3 {
    font-size: 14px;
  }

  .tasty-storefront[data-template="tasty-grid-catalog-main"] .tasty-product-card .storefront-product-copy p {
    font-size: 12px;
  }

  .tasty-storefront[data-template="tasty-grid-catalog-main"] .tasty-product-card .storefront-product-actions {
    align-items: stretch;
    flex-direction: column;
    padding: 6px 12px 12px;
  }

  .tasty-storefront[data-template="tasty-grid-catalog-main"] .tasty-product-card .storefront-product-actions button {
    width: 100%;
  }

  .tasty-storefront[data-template="tasty-grid-catalog-main"] .storefront-mobile-cart.is-visible {
    display: flex;
  }

  .tasty-storefront[data-template="tasty-grid-catalog-main"] .tasty-store-cart-panel {
    width: 100%;
  }

  .tasty-storefront[data-template="tasty-grid-catalog-main"] .tasty-store-cart-panel .storefront-cart-row {
    grid-template-columns: 64px minmax(0, 1fr);
  }

  .tasty-storefront[data-template="tasty-grid-catalog-main"] .tasty-store-cart-panel .storefront-cart-row img {
    width: 64px;
    height: 64px;
  }

  .tasty-storefront[data-template="tasty-grid-catalog-main"] .tasty-store-cart-panel .storefront-cart-row b,
  .tasty-storefront[data-template="tasty-grid-catalog-main"] .tasty-store-cart-panel .storefront-cart-row > button {
    grid-column: 2;
    justify-self: start;
  }

  .tasty-storefront[data-template="tasty-grid-catalog-main"] .tasty-store-footer {
    flex-direction: column;
  }

  .storefront-nutrition-grid {
    grid-template-columns: 54px repeat(4, minmax(0, 1fr));
    gap: 10px 4px;
  }

  .storefront-nutrition-grid > span {
    font-size: 10px;
  }

  .storefront-nutrition-grid > span strong {
    font-size: 13px !important;
  }

  .storefront-modal-purchase {
    bottom: -24px;
    margin: auto -24px -24px;
    padding: 14px 24px 18px;
  }

  .storefront-upsell-grid article > strong {
    min-height: 46px;
    padding: 8px;
  }

  .storefront-cart-upsell article {
    grid-template-columns: 48px minmax(0, 1fr);
  }

  .storefront-cart-upsell article > img {
    width: 48px;
    height: 48px;
  }

  .storefront-cart-upsell article > div {
    grid-column: 2;
    justify-self: start;
  }

  .storefront-rating-modal form {
    padding: 20px;
  }

  .storefront-star-rating {
    grid-template-columns: repeat(5, minmax(40px, 1fr));
  }
}

.cabinet-filter-row {
  margin: 18px 0 22px;
  display: grid;
  grid-template-columns: repeat(4, minmax(160px, 1fr)) auto;
  align-items: end;
  gap: 12px;
}

.cabinet-filter-row.is-order-filters {
  grid-template-columns: repeat(5, minmax(140px, 1fr)) auto;
}

.cabinet-filter-row label {
  min-width: 0;
  display: grid;
  gap: 7px;
}

.cabinet-filter-row span {
  color: var(--cabinet-muted);
  font-size: 13px;
  font-weight: 900;
}

.cabinet-filter-row input,
.cabinet-filter-row select {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--cabinet-line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--cabinet-ink);
  font: inherit;
  font-weight: 800;
  padding: 10px 12px;
}

.cabinet-status.is-muted {
  background: rgba(123, 132, 139, 0.14);
  color: #617078;
}

.staff-tables-panel {
  overflow: visible;
}

.staff-table-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.staff-table-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px 14px;
  color: var(--cabinet-muted);
  font-size: 13px;
  font-weight: 900;
}

.staff-table-legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}

.staff-table-legend i {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
}

.staff-table-legend i.is-free {
  background: #36a66a;
}

.staff-table-legend i.is-busy {
  background: #4d92d8;
}

.staff-table-legend i.is-pickup {
  background: #cf263b;
}

.staff-table-legend i.is-kitchen-delay {
  background: #e57b19;
}

.staff-table-legend i.is-reserved {
  background: #f2c94c;
}

.staff-pickup-alert {
  margin-bottom: 18px;
  border: 2px solid #a91027;
  border-radius: 8px;
  background: #cf263b;
  color: #ffffff;
  padding: 15px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  box-shadow: 0 16px 34px rgba(174, 18, 43, 0.28);
}

.staff-pickup-alert strong {
  font-size: 18px;
  font-weight: 950;
}

.staff-pickup-alert span {
  font-weight: 850;
}

.staff-kitchen-delay-alert {
  margin-bottom: 18px;
  border: 2px solid #b9550d;
  border-radius: 8px;
  background: #e57b19;
  color: #ffffff;
  padding: 15px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  box-shadow: 0 16px 34px rgba(190, 87, 15, 0.26);
}

.staff-kitchen-delay-alert strong {
  font-size: 18px;
  font-weight: 950;
}

.staff-kitchen-delay-alert span {
  font-weight: 850;
}

.staff-table-card {
  min-height: 128px;
  border: 1px solid var(--cabinet-line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--cabinet-ink);
  text-decoration: none;
  padding: 18px;
  display: grid;
  align-content: start;
  gap: 8px;
  box-shadow: inset 6px 0 transparent, 0 14px 30px rgba(36, 50, 56, 0.06);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease;
}

.staff-table-card:hover,
.staff-table-card:focus {
  color: var(--cabinet-ink);
  transform: translateY(-2px);
  box-shadow: 0 18px 38px rgba(36, 50, 56, 0.12);
}

.staff-table-card strong {
  font-size: 22px;
  font-weight: 950;
  line-height: 1.15;
}

.staff-table-card span,
.staff-table-card small {
  color: var(--cabinet-muted);
  font-weight: 800;
}

.staff-table-card .staff-table-waiter {
  color: var(--cabinet-ink);
  font-weight: 900;
}

.staff-table-card em {
  color: var(--cabinet-teal-dark);
  font-style: normal;
  font-weight: 900;
}

.staff-table-card.is-free {
  border-color: rgba(54, 166, 106, 0.55);
  background: linear-gradient(135deg, rgba(54, 166, 106, 0.20), #ffffff 74%);
  box-shadow: inset 6px 0 #36a66a, 0 14px 30px rgba(54, 166, 106, 0.12);
}

.staff-table-card.is-free em {
  color: #23794a;
}

.staff-table-card.is-busy {
  border-color: rgba(77, 146, 216, 0.58);
  background: linear-gradient(135deg, rgba(77, 146, 216, 0.22), #ffffff 74%);
  box-shadow: inset 6px 0 #4d92d8, 0 14px 30px rgba(77, 146, 216, 0.14);
}

.staff-table-card.is-busy em {
  color: #286aa9;
}

.staff-table-card.is-locked {
  cursor: not-allowed;
}

.staff-table-card.is-locked:hover,
.staff-table-card.is-locked:focus {
  transform: none;
  box-shadow: inset 6px 0 #4d92d8, 0 14px 30px rgba(77, 146, 216, 0.14);
}

.staff-table-card .staff-table-lock-note {
  color: #9d3232;
}

.staff-table-card.is-reserved {
  border-color: rgba(242, 201, 76, 0.70);
  background: linear-gradient(135deg, rgba(242, 201, 76, 0.28), #ffffff 74%);
  box-shadow: inset 6px 0 #f2c94c, 0 14px 30px rgba(185, 139, 25, 0.12);
}

.staff-table-card.is-reserved em {
  color: #987116;
}

.staff-table-card.is-awaiting-pickup {
  border-color: #a91027;
  background: #cf263b;
  color: #ffffff;
  box-shadow: inset 7px 0 #8e0c20, 0 18px 38px rgba(174, 18, 43, 0.34);
}

.staff-table-card.is-awaiting-pickup:hover,
.staff-table-card.is-awaiting-pickup:focus,
.staff-table-card.is-awaiting-pickup.is-locked:hover,
.staff-table-card.is-awaiting-pickup.is-locked:focus {
  color: #ffffff;
  border-color: #870b1d;
  background: #bd1d32;
  box-shadow: inset 7px 0 #780718, 0 20px 42px rgba(174, 18, 43, 0.42);
}

.staff-table-card.is-awaiting-pickup strong,
.staff-table-card.is-awaiting-pickup span,
.staff-table-card.is-awaiting-pickup small,
.staff-table-card.is-awaiting-pickup em,
.staff-table-card.is-awaiting-pickup .staff-table-waiter,
.staff-table-card.is-awaiting-pickup .staff-table-lock-note,
.staff-table-card.is-awaiting-pickup .staff-table-pickup-note {
  color: #ffffff;
}

.staff-table-card.is-awaiting-pickup em {
  font-size: 17px;
  text-transform: uppercase;
}

.staff-table-card.is-awaiting-pickup .staff-table-pickup-note,
.staff-table-card.is-awaiting-pickup .staff-table-lock-note {
  border-top: 1px solid rgba(255, 255, 255, 0.42);
  padding-top: 8px;
}

.staff-table-card.is-kitchen-delayed {
  border-color: #b9550d;
  background: linear-gradient(135deg, rgba(229, 123, 25, 0.32), #ffffff 76%);
  box-shadow: inset 7px 0 #e57b19, 0 18px 38px rgba(190, 87, 15, 0.22);
}

.staff-table-card.is-kitchen-delayed:hover,
.staff-table-card.is-kitchen-delayed:focus {
  border-color: #944108;
  box-shadow: inset 7px 0 #c96012, 0 20px 42px rgba(190, 87, 15, 0.3);
}

.staff-table-card.is-kitchen-delayed em,
.staff-table-card.is-kitchen-delayed .staff-table-kitchen-delay-note {
  color: #9c4108;
}

.staff-table-card.is-kitchen-delayed em {
  font-size: 16px;
  text-transform: uppercase;
}

.staff-table-card.is-kitchen-delayed .staff-table-kitchen-delay-note {
  border-top: 1px solid rgba(185, 85, 13, 0.3);
  padding-top: 8px;
  font-weight: 950;
}

.staff-pos-layout {
  display: grid;
  grid-template-columns: minmax(280px, 420px) minmax(0, 1fr);
  gap: 22px;
}

.staff-pos-sidebar,
.staff-pos-menu {
  border-radius: 8px;
  display: grid;
  align-content: start;
  gap: 18px;
}

.staff-pos-back {
  color: var(--cabinet-teal-dark);
  font-weight: 900;
  text-decoration: none;
}

.staff-pos-table-head {
  border-bottom: 1px solid var(--cabinet-line);
  padding-bottom: 16px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.staff-pos-table-head strong {
  color: var(--cabinet-ink);
  font-size: 26px;
  font-weight: 950;
}

.staff-pos-table-head span,
.staff-pos-order-summary p {
  color: var(--cabinet-muted);
  font-weight: 800;
}

.staff-pos-order-summary {
  display: grid;
  gap: 12px;
}

.staff-pos-order-summary h2,
.staff-pos-menu h2,
.staff-pos-category h3 {
  margin: 0;
  color: var(--cabinet-ink);
  font-weight: 950;
}

.staff-pos-order-summary dl {
  margin: 0;
  display: grid;
  gap: 8px;
}

.staff-pos-order-summary dl div,
.staff-pos-items .staff-pos-item-row {
  min-height: 36px;
  border-bottom: 1px solid var(--cabinet-line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.staff-pos-item-row span {
  min-width: 0;
  color: var(--cabinet-ink);
  font-weight: 850;
}

.staff-pos-item-row strong {
  margin-left: auto;
  white-space: nowrap;
}

.staff-pos-item-row form {
  margin: 0;
}

.staff-pos-item-row button {
  min-height: 34px;
  border: 1px solid rgba(220, 77, 85, 0.35);
  border-radius: 8px;
  background: #fff5f5;
  color: #c83f47;
  padding: 6px 10px;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}

.staff-pos-item-row button:hover,
.staff-pos-item-row button:focus {
  border-color: #dc4d55;
  background: #ffe8e8;
}

.staff-pos-order-summary dt {
  color: var(--cabinet-muted);
  font-weight: 800;
}

.staff-pos-order-summary dd {
  margin: 0;
  color: var(--cabinet-ink);
  font-weight: 900;
}

.staff-pos-items {
  display: grid;
  gap: 6px;
}

.staff-pos-items .staff-pos-item-row {
  padding: 0 0 14px;
  display: grid;
  align-items: stretch;
  justify-content: stretch;
  gap: 10px;
}

.staff-pos-item-main {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.staff-order-item-note-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 10px;
}

.staff-order-item-note-form label {
  min-width: 0;
  display: grid;
  gap: 6px;
}

.staff-order-item-note-form label > span {
  color: var(--cabinet-muted);
  font-size: 13px;
  font-weight: 900;
}

.staff-order-item-note-form textarea {
  width: 100%;
  min-height: 58px;
  border: 1px solid var(--cabinet-line);
  border-radius: 8px;
  background: #fffaf3;
  padding: 9px 12px;
  color: var(--cabinet-ink);
  font: inherit;
  font-weight: 800;
  resize: vertical;
}

.staff-order-item-note-form textarea:focus {
  border-color: #f0a25b;
  outline: 2px solid rgba(240, 162, 91, 0.2);
}

.staff-pos-item-row .staff-order-item-note-form button {
  min-height: 42px;
  border-color: transparent;
  background: var(--cabinet-teal);
  color: #ffffff;
  padding: 9px 16px;
}

.staff-pos-item-row .staff-order-item-note-form button:hover,
.staff-pos-item-row .staff-order-item-note-form button:focus {
  border-color: transparent;
  background: var(--cabinet-teal-dark);
}

.staff-pos-items p {
  margin: 0;
  color: var(--cabinet-muted);
  font-weight: 800;
}

.staff-pos-guest-form,
.staff-pos-promocode-form {
  border: 1px solid var(--cabinet-line);
  border-radius: 8px;
  background: #f7fbfa;
  padding: 12px;
  display: grid;
  gap: 10px;
}

.staff-pos-guest-form label,
.staff-pos-promocode-form label {
  display: grid;
  gap: 6px;
}

.staff-pos-guest-form span,
.staff-pos-promocode-form span {
  color: var(--cabinet-muted);
  font-size: 13px;
  font-weight: 900;
}

.staff-pos-guest-form input,
.staff-pos-guest-form select,
.staff-pos-promocode-form input {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--cabinet-line);
  border-radius: 8px;
  background: #ffffff;
  padding: 9px 12px;
  color: var(--cabinet-ink);
  font-weight: 850;
}

.staff-pos-guest-form select {
  appearance: auto;
}

.staff-pos-guest-form button,
.staff-pos-promocode-form button {
  min-height: 42px;
  border: 0;
  border-radius: 8px;
  background: var(--cabinet-teal);
  color: #ffffff;
  font-weight: 950;
  cursor: pointer;
}

.staff-guest-search {
  position: relative;
  display: grid;
  gap: 6px;
}

.staff-guest-search > label {
  margin: 0;
}

.staff-guest-search-control {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.staff-pos-guest-form .staff-guest-search-clear {
  min-height: 42px;
  border: 1px solid rgba(3, 62, 85, 0.18);
  background: #ffffff;
  color: var(--cabinet-teal-dark);
  padding: 0 12px;
  white-space: nowrap;
}

.staff-pos-guest-form .staff-guest-search-clear:hover,
.staff-pos-guest-form .staff-guest-search-clear:focus {
  border-color: var(--cabinet-teal);
  box-shadow: 0 0 0 3px rgba(13, 152, 168, 0.12);
}

.staff-guest-search-results {
  position: absolute;
  z-index: 24;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  max-height: 280px;
  overflow: auto;
  border: 1px solid rgba(3, 62, 85, 0.14);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 18px 40px rgba(36, 50, 56, 0.18);
  padding: 6px;
  display: grid;
  gap: 4px;
}

.staff-guest-search-results[hidden] {
  display: none;
}

.staff-pos-guest-form .staff-guest-option {
  min-height: 0;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--cabinet-ink);
  padding: 9px 10px;
  display: grid;
  gap: 2px;
  text-align: left;
}

.staff-pos-guest-form .staff-guest-option:hover,
.staff-pos-guest-form .staff-guest-option:focus,
.staff-pos-guest-form .staff-guest-option.is-selected {
  border-color: rgba(13, 152, 168, 0.28);
  background: #eef9f8;
  color: var(--cabinet-teal-dark);
}

.staff-guest-option strong {
  font-weight: 950;
}

.staff-guest-option small,
.staff-guest-option em {
  color: var(--cabinet-muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.staff-guest-search-empty {
  margin: 0;
  padding: 10px;
  color: var(--cabinet-muted);
  font-size: 13px;
  font-weight: 850;
}

.staff-pickup-timer {
  border-radius: 8px;
  background: #eef9f5;
  color: #1f6f58;
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.staff-pickup-timer span {
  font-weight: 900;
}

.staff-pickup-timer strong {
  font-size: 24px;
  font-weight: 950;
  font-variant-numeric: tabular-nums;
}

.staff-pickup-timer.is-overdue {
  background: #fff1f1;
  color: #c54040;
}

.staff-guest-history {
  border: 1px solid var(--cabinet-line);
  border-radius: 8px;
  padding: 12px;
  display: grid;
  gap: 8px;
}

.staff-guest-history h3,
.staff-guest-history p {
  margin: 0;
}

.staff-guest-history h3 {
  color: var(--cabinet-ink);
  font-size: 16px;
  font-weight: 950;
}

.staff-guest-history p {
  color: var(--cabinet-muted);
  display: grid;
  gap: 2px;
}

.staff-payment-form {
  display: grid;
  gap: 12px;
}

.staff-payment-methods {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.staff-payment-methods label {
  min-height: 42px;
  border: 1px solid var(--cabinet-line);
  border-radius: 8px;
  background: #ffffff;
  padding: 8px 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.staff-payment-methods span {
  color: var(--cabinet-ink);
  font-weight: 900;
}

.staff-danger-button {
  width: 100%;
  min-height: 42px;
  border: 1px solid #dc4d55;
  border-radius: 8px;
  background: #dc4d55;
  color: #ffffff;
  font-weight: 900;
}

.staff-pos-category {
  display: grid;
  gap: 10px;
}

.staff-position-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.staff-position-grid form {
  margin: 0;
}

.staff-position-grid button {
  width: 100%;
  min-height: 72px;
  border: 1px solid var(--cabinet-line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--cabinet-ink);
  padding: 12px;
  text-align: left;
  display: grid;
  align-content: center;
  gap: 5px;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.staff-position-grid button:not(:disabled):hover,
.staff-position-grid button:not(:disabled):focus {
  border-color: var(--cabinet-teal);
  box-shadow: 0 0 0 4px rgba(77, 175, 170, 0.13);
  transform: translateY(-1px);
}

.staff-position-grid button:disabled {
  opacity: .52;
  cursor: not-allowed;
}

.staff-position-grid form.is-stopped button {
  border-color: rgba(216, 75, 81, .45);
  background: #fff1f1;
  opacity: 1;
}

.staff-position-grid form.is-stopped button > em {
  width: fit-content;
  border-radius: 999px;
  background: #d84b51;
  padding: 4px 8px;
  color: #ffffff;
  font-size: 11px;
  font-style: normal;
  font-weight: 950;
}

.staff-position-grid form.is-stopped button > small {
  color: #a72f35;
  font-size: 12px;
  font-weight: 850;
  overflow-wrap: anywhere;
}

.staff-position-grid strong {
  font-weight: 950;
}

.staff-position-grid span {
  color: var(--cabinet-muted);
  font-weight: 900;
}

.kitchen-shell .cabinet-content {
  padding-bottom: 36px;
}

.kitchen-dashboard-orders {
  display: grid;
  gap: 10px;
}

.kitchen-dashboard-orders div {
  min-height: 58px;
  border: 1px solid var(--cabinet-line);
  border-radius: 8px;
  background: #ffffff;
  padding: 12px;
  display: grid;
  grid-template-columns: minmax(90px, .4fr) minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
}

.kitchen-dashboard-orders strong,
.kitchen-dashboard-orders em {
  color: var(--cabinet-ink);
  font-weight: 950;
  font-style: normal;
}

.kitchen-dashboard-orders span {
  color: var(--cabinet-muted);
  font-weight: 800;
}

.kitchen-order-view-toggle {
  border: 1px solid rgba(3, 62, 85, 0.12);
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 14px 28px rgba(36, 50, 56, 0.08);
  padding: 5px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.kitchen-order-view-toggle button {
  min-height: 42px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--cabinet-muted);
  padding: 0 18px;
  font: inherit;
  font-weight: 950;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.kitchen-order-view-toggle button[aria-pressed="true"] {
  background: var(--cabinet-teal);
  color: #ffffff;
  box-shadow: 0 10px 20px rgba(3, 62, 85, 0.16);
}

.kitchen-order-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.kitchen-order-grid.is-list {
  grid-template-columns: 1fr;
  gap: 10px;
}

.kitchen-order-card {
  border: 1px solid var(--cabinet-line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 18px 36px rgba(36, 50, 56, 0.08);
  padding: clamp(16px, 2.4vw, 24px);
  display: grid;
  gap: 18px;
  overflow: hidden;
  position: relative;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.kitchen-order-grid.is-list .kitchen-order-card {
  grid-template-columns: minmax(145px, 0.65fr) minmax(165px, 0.72fr) minmax(280px, 1.35fr) minmax(142px, 0.48fr) minmax(150px, 0.52fr);
  grid-template-areas:
    "head meta items timer action"
    "station station consumables consumables consumables";
  align-items: start;
  gap: 8px;
  padding: 12px;
}

.kitchen-order-card.is-cooking {
  border-color: rgba(77, 175, 170, 0.55);
  box-shadow: 0 18px 38px rgba(77, 175, 170, 0.16);
}

.kitchen-order-card.is-warning {
  border-color: rgba(247, 183, 112, 0.74);
  box-shadow: 0 18px 38px rgba(247, 183, 112, 0.16);
}

.kitchen-order-card.is-overdue {
  border-color: #ee625f;
  box-shadow: 0 20px 42px rgba(238, 98, 95, 0.22);
}

.kitchen-order-progress {
  height: 7px;
  background: #e8f7f1;
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
}

.kitchen-order-progress span {
  width: 0;
  height: 100%;
  border-radius: 0 999px 999px 0;
  background: #3f986d;
  display: block;
  transition: width 0.35s ease, background-color 0.18s ease;
}

.kitchen-order-card.is-warning .kitchen-order-progress span {
  background: #f0a648;
}

.kitchen-order-card.is-overdue .kitchen-order-progress span {
  background: #ee625f;
}

.kitchen-order-card header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
}

.kitchen-order-grid.is-list .kitchen-order-card header {
  grid-area: head;
  min-width: 0;
  display: grid;
  gap: 6px;
  align-content: start;
}

.kitchen-order-card header span,
.kitchen-order-meta dt,
.kitchen-order-item span,
.kitchen-techcard-modal-head span {
  color: var(--cabinet-muted);
  font-weight: 850;
}

.kitchen-order-card h2,
.kitchen-techcard-modal h3,
.kitchen-techcard-modal h4 {
  margin: 0;
  color: var(--cabinet-ink);
  font-weight: 950;
  line-height: 1.15;
}

.kitchen-order-compact-meta,
.kitchen-action-label-compact {
  display: none;
}

.kitchen-order-card header > strong {
  min-height: 34px;
  border-radius: 999px;
  background: rgba(77, 175, 170, 0.16);
  color: var(--cabinet-teal-dark);
  padding: 7px 12px;
  display: inline-flex;
  align-items: center;
  font-size: 13px;
  font-weight: 950;
}

.kitchen-order-grid.is-list .kitchen-order-card h2 {
  font-size: clamp(20px, 1.55vw, 24px);
}

.kitchen-order-grid.is-list .kitchen-order-card header > strong {
  min-height: 28px;
  padding: 4px 9px;
  font-size: 12px;
}

.kitchen-order-meta {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.kitchen-order-grid.is-list .kitchen-order-meta {
  grid-area: meta;
  grid-template-columns: 1fr;
  gap: 4px;
}

.kitchen-order-meta div {
  border-radius: 8px;
  background: #f6faf9;
  padding: 10px;
}

.kitchen-order-grid.is-list .kitchen-order-meta div {
  padding: 5px 7px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: baseline;
  column-gap: 6px;
}

.kitchen-order-grid.is-list .kitchen-order-meta dt {
  font-size: 12px;
  line-height: 1.2;
}

.kitchen-order-grid.is-list .kitchen-order-meta dd {
  margin-top: 0;
  font-size: 13px;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.kitchen-order-meta dd {
  margin: 4px 0 0;
  color: var(--cabinet-ink);
  font-weight: 950;
}

.kitchen-order-items {
  display: grid;
  gap: 10px;
}

.kitchen-order-grid.is-list .kitchen-order-items {
  grid-area: items;
  align-content: start;
  max-height: 132px;
  overflow: auto;
  gap: 5px;
  padding-right: 2px;
}

.kitchen-order-item {
  min-height: 70px;
  border: 1px solid var(--cabinet-line);
  border-radius: 8px;
  background: #fbfdfc;
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.kitchen-order-grid.is-list .kitchen-order-item {
  min-height: 38px;
  padding: 6px 8px;
}

.kitchen-order-item strong {
  color: var(--cabinet-ink);
  font-size: 18px;
  font-weight: 950;
}

.kitchen-order-grid.is-list .kitchen-order-item strong {
  font-size: 14px;
}

.kitchen-order-grid.is-list .kitchen-order-item span {
  font-size: 12px;
}

.kitchen-order-item div {
  display: grid;
  gap: 4px;
}

.kitchen-order-item-note {
  margin: 6px 0 0;
  border-left: 5px solid #f08c32;
  border-radius: 6px;
  background: #fff1dc;
  padding: 9px 11px;
  color: #632f0d;
  display: grid;
  gap: 3px;
}

.kitchen-order-item .kitchen-order-item-note > span {
  color: #9d4e17;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.kitchen-order-item .kitchen-order-item-note > strong {
  color: #632f0d;
  font-size: 16px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.kitchen-order-compact-meta span {
  margin-top: 3px;
  display: block;
  color: var(--cabinet-ink);
}

.kitchen-techcard-info {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  background: #4d92d8;
  color: #ffffff;
  font-size: 19px;
  font-weight: 950;
  cursor: pointer;
  flex: 0 0 auto;
}

.kitchen-order-grid.is-list .kitchen-techcard-info {
  width: 32px;
  height: 32px;
  font-size: 15px;
}

.kitchen-order-timer {
  border-radius: 8px;
  background: #e8f7f1;
  color: #1f6f58;
  padding: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.kitchen-order-timer span {
  font-weight: 900;
}

.kitchen-order-timer strong {
  font-size: 28px;
  font-weight: 950;
  line-height: 1;
}

.kitchen-order-timer.is-overdue {
  background: #fff1f1;
  color: #c54040;
}

.kitchen-order-timer.is-warning {
  background: #fff7e8;
  color: #9b641a;
}

.kitchen-action-button {
  width: 100%;
  min-height: 58px;
  border: 0;
  border-radius: 8px;
  color: #ffffff;
  font-size: 17px;
  font-weight: 950;
  cursor: pointer;
}

.kitchen-order-grid.is-list .kitchen-order-card header,
.kitchen-order-grid.is-list .kitchen-order-meta,
.kitchen-order-grid.is-list .kitchen-order-items,
.kitchen-order-grid.is-list .kitchen-order-timer,
.kitchen-order-grid.is-list .kitchen-order-card > form {
  align-self: start;
}

.kitchen-order-grid.is-list .kitchen-order-timer {
  grid-area: timer;
  min-width: 0;
  min-height: 0;
  width: 100%;
  padding: 8px;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  gap: 5px;
}

.kitchen-order-grid.is-list .kitchen-order-timer span {
  font-size: 12px;
}

.kitchen-order-grid.is-list .kitchen-order-timer strong {
  max-width: 100%;
  font-size: clamp(18px, 1.7vw, 24px);
  line-height: 1.08;
  overflow-wrap: anywhere;
  white-space: normal;
}

.kitchen-order-grid.is-list .kitchen-order-card > form {
  grid-area: action;
  width: 100%;
}

.kitchen-order-grid.is-list .kitchen-action-button {
  height: auto;
  min-height: 42px;
  padding: 7px 10px;
  font-size: 13px;
}

.kitchen-action-button.is-start {
  background: #3f986d;
}

.kitchen-action-button.is-finish {
  background: var(--cabinet-teal);
}

.kitchen-techcard-modal {
  width: min(920px, calc(100vw - 28px));
  max-height: min(760px, calc(100vh - 28px));
  border: 0;
  border-radius: 8px;
  padding: 0;
  position: relative;
  box-shadow: 0 28px 80px rgba(18, 31, 36, 0.28);
}

.kitchen-techcard-modal::backdrop {
  background: rgba(18, 31, 36, 0.58);
}

.kitchen-techcard-modal-head {
  border-bottom: 1px solid var(--cabinet-line);
  padding: 18px 76px 18px 18px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.kitchen-techcard-modal-head button {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  background: #eef5f4;
  color: var(--cabinet-ink);
  font-size: 24px;
  font-weight: 900;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.kitchen-techcard-modal-body {
  padding: 18px;
  overflow: auto;
  display: grid;
  gap: 16px;
}

.kitchen-techcard-photo {
  width: 100%;
  max-height: 320px;
  border-radius: 8px;
  object-fit: cover;
  background: #f1f6f5;
}

.kitchen-techcard-modal-body p,
.kitchen-techcard-modal-body ul,
.kitchen-techcard-modal-body ol {
  margin: 0;
  color: var(--cabinet-ink);
}

.kitchen-techcard-modal-body table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.kitchen-techcard-modal-body th,
.kitchen-techcard-modal-body td {
  border-bottom: 1px solid var(--cabinet-line);
  padding: 8px;
  text-align: left;
}

.kitchen-techcard-modal-body th {
  color: var(--cabinet-muted);
  font-weight: 950;
}

@media (max-width: 1180px) {
  .cabinet-filter-row.is-order-filters {
    grid-template-columns: repeat(3, minmax(160px, 1fr));
  }

  .staff-table-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .staff-pos-layout {
    grid-template-columns: 1fr;
  }

  .kitchen-order-grid {
    grid-template-columns: 1fr;
  }

  .kitchen-order-grid.is-list .kitchen-order-card {
    grid-template-columns: 1fr;
    grid-template-areas:
      "head"
      "station"
      "meta"
      "items"
      "consumables"
      "timer"
      "action";
  }
}

@media (max-width: 820px) {
  .cabinet-forecast-filters,
  .cabinet-forecast-resources,
  .cabinet-forecast-days,
  .cabinet-forecast-grid {
    grid-template-columns: 1fr;
  }

  .cabinet-forecast-days dl {
    grid-template-columns: 1fr;
  }

  .cabinet-forecast-hours div {
    grid-template-columns: 58px minmax(0, 1fr) 42px;
  }

  .cabinet-filter-row,
  .cabinet-filter-row.is-order-filters {
    grid-template-columns: 1fr;
  }

  .staff-table-grid,
  .staff-position-grid,
  .staff-payment-methods {
    grid-template-columns: 1fr;
  }

  .staff-pos-items .staff-pos-item-row {
    align-items: stretch;
  }

  .staff-pos-item-main {
    display: grid;
  }

  .staff-order-item-note-form {
    grid-template-columns: 1fr;
  }

  .staff-pos-item-row strong {
    margin-left: 0;
  }

  .staff-pos-item-row button {
    width: 100%;
  }

  .staff-table-legend {
    justify-content: flex-start;
  }

  .staff-pickup-alert,
  .staff-kitchen-delay-alert {
    align-items: flex-start;
    flex-direction: column;
  }

  .storefront-table-status-chain,
  .kitchen-order-meta,
  .kitchen-dashboard-orders div {
    grid-template-columns: 1fr;
  }

  .kitchen-order-card header,
  .kitchen-order-item,
  .kitchen-order-timer {
    align-items: stretch;
    flex-direction: column;
  }

  .kitchen-techcard-info {
    width: 100%;
    border-radius: 8px;
  }

  .kitchen-order-view-toggle {
    width: 100%;
    justify-content: stretch;
  }

  .kitchen-order-view-toggle button {
    flex: 1 1 0;
    padding: 0 10px;
  }

  .kitchen-order-grid.is-list .kitchen-order-card {
    grid-template-columns: minmax(0, 1fr) 92px;
    grid-template-areas:
      "head action"
      "station station"
      "items items"
      "consumables consumables"
      "timer timer";
    align-items: start;
    gap: 7px 8px;
    padding: 10px;
  }

  .kitchen-order-grid.is-list {
    gap: 8px;
  }

  .kitchen-order-grid.is-list .kitchen-order-card header {
    min-width: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 5px 7px;
  }

  .kitchen-order-grid.is-list .kitchen-order-card header > div {
    min-width: 0;
  }

  .kitchen-order-grid.is-list .kitchen-order-card header span {
    font-size: 11px;
    line-height: 1.1;
  }

  .kitchen-order-grid.is-list .kitchen-order-card h2 {
    margin-top: 2px;
    font-size: 16px;
    line-height: 1.12;
    overflow-wrap: anywhere;
  }

  .kitchen-order-grid.is-list .kitchen-order-card header > strong {
    min-height: 24px;
    padding: 3px 7px;
    font-size: 10px;
    line-height: 1.1;
    text-align: center;
  }

  .kitchen-order-grid.is-list .kitchen-order-compact-meta {
    margin-top: 3px;
    display: block;
    color: var(--cabinet-muted);
    font-size: 11px;
    font-weight: 850;
    line-height: 1.2;
    overflow-wrap: anywhere;
  }

  .kitchen-order-grid.is-list .kitchen-order-meta {
    display: none;
  }

  .kitchen-order-grid.is-list .kitchen-order-items {
    max-height: 128px;
    gap: 4px;
    padding-right: 1px;
  }

  .kitchen-order-grid.is-list .kitchen-order-item {
    min-height: 34px;
    padding: 5px 7px;
    align-items: center;
    flex-direction: row;
    gap: 7px;
  }

  .kitchen-order-grid.is-list .kitchen-order-item > div {
    min-width: 0;
    gap: 1px;
  }

  .kitchen-order-grid.is-list .kitchen-order-item strong {
    font-size: 13px;
    line-height: 1.15;
  }

  .kitchen-order-grid.is-list .kitchen-order-item span {
    font-size: 10px;
    line-height: 1.15;
  }

  .kitchen-order-grid.is-list .kitchen-order-item-note {
    margin-top: 4px;
    padding: 5px 7px;
  }

  .kitchen-order-grid.is-list .kitchen-order-item .kitchen-order-item-note > span {
    font-size: 9px;
  }

  .kitchen-order-grid.is-list .kitchen-order-item .kitchen-order-item-note > strong {
    font-size: 12px;
  }

  .kitchen-order-grid.is-list .kitchen-techcard-info {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    font-size: 13px;
  }

  .kitchen-order-grid.is-list .kitchen-order-timer {
    min-height: 34px;
    padding: 6px 8px;
    align-items: center;
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
    gap: 8px;
  }

  .kitchen-order-grid.is-list .kitchen-order-timer span {
    font-size: 11px;
  }

  .kitchen-order-grid.is-list .kitchen-order-timer strong {
    font-size: 18px;
    white-space: nowrap;
  }

  .kitchen-order-grid.is-list .kitchen-order-card > form {
    align-self: start;
  }

  .kitchen-order-grid.is-list .kitchen-action-button {
    min-height: 38px;
    padding: 6px 8px;
    font-size: 12px;
  }

  .kitchen-order-grid.is-list .kitchen-action-label-full {
    display: none;
  }

  .kitchen-order-grid.is-list .kitchen-action-label-compact {
    display: inline;
  }
}

.kitchen-station-toolbar {
  margin-bottom: 18px;
  padding: 16px 18px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
}

.kitchen-station-toolbar form {
  display: flex;
  align-items: end;
  gap: 10px;
}

.kitchen-station-toolbar label {
  display: grid;
  gap: 6px;
  color: var(--cabinet-ink);
  font-weight: 900;
}

.kitchen-station-toolbar select,
.kitchen-consumable-form select,
.kitchen-consumable-form input,
.staff-order-consumables select,
.staff-order-consumables input {
  min-height: 44px;
  border: 1px solid var(--cabinet-line);
  border-radius: 8px;
  background: #fff;
  color: var(--cabinet-ink);
  padding: 0 12px;
  font: inherit;
}

.kitchen-station-toolbar p {
  max-width: 580px;
  margin: 0;
  color: var(--cabinet-muted);
}

.kitchen-station-progress {
  border-radius: 8px;
  background: #f2f8f7;
  padding: 10px 12px;
  color: var(--cabinet-ink);
}

.kitchen-station-progress ol,
.restaurant-station-chain {
  margin: 9px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  list-style: none;
}

.kitchen-station-progress li,
.restaurant-station-chain li {
  border-radius: 999px;
  background: #e5ecec;
  padding: 5px 10px;
  color: var(--cabinet-muted);
  font-size: 12px;
  font-weight: 900;
}

.kitchen-station-progress li.is-current {
  background: var(--cabinet-teal);
  color: #fff;
}

.kitchen-station-progress li.is-complete {
  background: #dff3e7;
  color: #28734f;
}

.kitchen-order-grid.is-list .kitchen-station-progress {
  grid-area: station;
  padding: 7px 9px;
  font-size: 12px;
}

.kitchen-order-grid.is-list .kitchen-station-progress ol {
  display: none;
}

.kitchen-order-consumables {
  border: 1px solid var(--cabinet-line);
  border-radius: 8px;
  padding: 10px 12px;
}

.order-consumables-button {
  min-height: 44px;
  border-radius: 10px;
  background: #e6f4f5;
  color: var(--cabinet-accent, #006274);
  padding: 10px 12px;
  font-weight: 950;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  list-style: none;
}

.order-consumables-button::-webkit-details-marker {
  display: none;
}

.order-consumables-button::after {
  content: "+";
  font-size: 24px;
  line-height: 1;
}

details[open] > .order-consumables-button::after {
  content: "−";
}

.order-consumables-button strong {
  min-width: 25px;
  min-height: 25px;
  border-radius: 999px;
  background: var(--cabinet-accent, #006274);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 7px;
  margin-left: auto;
  font-size: 12px;
}

.kitchen-order-consumables ul,
.staff-order-consumables ul {
  margin: 10px 0;
  padding: 0;
  display: grid;
  gap: 6px;
  list-style: none;
}

.kitchen-order-consumables li,
.staff-order-consumables li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.kitchen-order-consumables p,
.staff-order-consumables > p {
  margin: 10px 0;
  color: var(--cabinet-muted);
}

.order-consumables-empty {
  border: 1px solid #e6c16d;
  border-radius: 8px;
  background: #fff8e6;
  color: #72520a !important;
  padding: 10px 12px;
  font-weight: 800;
}

.kitchen-consumable-form,
.staff-order-consumables form {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) 110px auto;
  align-items: end;
  gap: 8px;
}

.kitchen-consumable-form label,
.staff-order-consumables label {
  display: grid;
  gap: 5px;
  color: var(--cabinet-muted);
  font-size: 12px;
  font-weight: 900;
}

.kitchen-order-grid.is-list .kitchen-order-consumables {
  grid-area: consumables;
  align-self: start;
  padding: 7px 9px;
  font-size: 12px;
}

.staff-order-consumables {
  border: 1px solid var(--cabinet-line);
  border-radius: 8px;
  background: #f8fbfa;
  padding: 14px;
  display: grid;
  gap: 10px;
}

.staff-order-consumables p {
  margin: 0;
}

.staff-order-consumables p {
  color: var(--cabinet-muted);
  font-size: 13px;
}

.restaurant-companion-grid,
.menu-companion-material-grid {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.restaurant-companion-row,
.menu-companion-material-grid article {
  border: 1px solid var(--cabinet-line);
  border-radius: 10px;
  background: #f9fbfb;
  padding: 12px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 110px auto;
  align-items: end;
  gap: 10px;
}

.restaurant-companion-row > span,
.menu-companion-material-grid article > div,
.menu-companion-material-grid article > label {
  display: grid;
  gap: 4px;
}

.restaurant-companion-row input[type="number"],
.menu-companion-material-grid input[type="number"] {
  min-height: 42px;
  border: 1px solid var(--cabinet-line);
  border-radius: 8px;
  background: #fff;
  padding: 0 10px;
  font: inherit;
}

.restaurant-companion-row em {
  min-height: 42px;
  display: flex;
  align-items: center;
  color: var(--cabinet-muted);
  font-style: normal;
}

.restaurant-kitchen-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.restaurant-kitchen-card {
  border: 1px solid var(--cabinet-line);
  border-radius: 14px;
  background: #fff;
  padding: 18px;
  display: grid;
  gap: 16px;
}

.restaurant-kitchen-card h3,
.restaurant-kitchen-card p {
  margin: 8px 0 0;
}

.restaurant-kitchen-card p {
  color: var(--cabinet-muted);
}

.restaurant-station-chain li {
  background: #e5f4f4;
  color: var(--cabinet-teal-dark);
}

.restaurant-station-editor {
  display: grid;
  gap: 16px;
}

.restaurant-station-row {
  border: 1px solid var(--cabinet-line);
  border-radius: 12px 12px 0 0;
  background: #f9fbfb;
  padding: 14px;
  display: grid;
  grid-template-columns: 38px minmax(150px, .7fr) minmax(220px, 1.3fr) auto auto;
  align-items: end;
  gap: 10px;
}

.restaurant-station-row > strong {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: var(--cabinet-teal);
  color: #fff;
  display: grid;
  place-items: center;
}

.restaurant-station-row label,
.restaurant-station-new label {
  display: grid;
  gap: 5px;
  color: var(--cabinet-muted);
  font-size: 12px;
  font-weight: 900;
}

.restaurant-station-row input,
.restaurant-station-new input {
  min-height: 42px;
  border: 1px solid var(--cabinet-line);
  border-radius: 8px;
  background: #fff;
  padding: 0 10px;
  font: inherit;
}

.restaurant-station-active {
  display: flex !important;
  align-items: center;
  min-height: 42px;
}

.restaurant-station-active input {
  min-height: 0;
}

.restaurant-station-row button,
.restaurant-station-actions button {
  min-height: 40px;
  border: 1px solid var(--cabinet-line);
  border-radius: 8px;
  background: #fff;
  padding: 0 12px;
  color: var(--cabinet-ink);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.restaurant-station-actions {
  margin: -16px 0 0;
  border: 1px solid var(--cabinet-line);
  border-top: 0;
  border-radius: 0 0 12px 12px;
  background: #f9fbfb;
  padding: 0 14px 12px 62px;
  display: flex;
  gap: 8px;
}

.restaurant-station-actions form {
  margin: 0;
}

.restaurant-station-actions .is-danger {
  color: #c94040;
}

.restaurant-station-new {
  margin-top: 20px;
  border-top: 1px solid var(--cabinet-line);
  padding-top: 18px;
  display: grid;
  grid-template-columns: minmax(180px, .8fr) minmax(240px, 1.2fr) 100px auto;
  align-items: end;
  gap: 10px;
}

@media (max-width: 900px) {
  .kitchen-station-toolbar,
  .kitchen-station-toolbar form {
    align-items: stretch;
    flex-direction: column;
  }

  .kitchen-consumable-form,
  .staff-order-consumables form,
  .restaurant-station-new {
    grid-template-columns: 1fr;
  }

  .restaurant-kitchen-grid {
    grid-template-columns: 1fr;
  }

  .restaurant-companion-grid,
  .menu-companion-material-grid {
    grid-template-columns: 1fr;
  }

  .restaurant-companion-row,
  .menu-companion-material-grid article {
    grid-template-columns: minmax(0, 1fr) 100px auto;
  }

  .restaurant-station-row {
    grid-template-columns: 38px 1fr;
  }

  .restaurant-station-row .is-description,
  .restaurant-station-row .restaurant-station-active,
  .restaurant-station-row > button {
    grid-column: 2;
  }
}

.restaurant-links-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.restaurant-link-card {
  border: 1px solid var(--cabinet-line);
  border-radius: 8px;
  background: #f8fbfb;
  padding: 18px;
  display: grid;
  gap: 10px;
  min-width: 0;
}

.restaurant-link-card span {
  color: var(--cabinet-muted);
  font-size: 14px;
  font-weight: 900;
}

.restaurant-link-card a {
  color: var(--cabinet-teal);
  font-weight: 900;
  overflow-wrap: anywhere;
  text-decoration: none;
}

.restaurant-link-card a:hover {
  text-decoration: underline;
}

body:has(.tv-status-page) {
  background: #101214;
}

.tv-status-page {
  min-height: 100vh;
  background: #151719;
  color: #f8f7f3;
  padding: clamp(24px, 3vw, 56px);
  font-family: "Nunito", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow: hidden;
}

.tv-status-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin-bottom: clamp(28px, 4vw, 58px);
}

.tv-status-brand {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 30px);
}

.tv-status-brand > div {
  min-width: 0;
}

.tv-status-logo {
  width: auto;
  height: auto;
  max-width: clamp(88px, 12vw, 220px);
  max-height: clamp(56px, 8vw, 126px);
  flex: 0 1 auto;
  border-radius: 10px;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22);
}

.tv-status-topbar span {
  color: #adb6bc;
  font-size: clamp(18px, 1.5vw, 28px);
  font-weight: 900;
}

.tv-status-topbar h1 {
  margin: 4px 0 0;
  color: #ffffff;
  font-size: clamp(30px, 3.2vw, 64px);
  font-weight: 950;
  line-height: 1.02;
}

.tv-status-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.tv-status-actions > span {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: #202427;
  padding: 12px 18px;
}

.tv-status-actions strong {
  color: #ffffff;
}

.tv-status-actions button {
  border: 0;
  border-radius: 8px;
  background: #ff6b13;
  color: #ffffff;
  min-height: 52px;
  padding: 0 24px;
  font-size: clamp(16px, 1.2vw, 22px);
  font-weight: 950;
}

.tv-status-board {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(22px, 2.8vw, 48px);
}

.tv-status-column {
  min-width: 0;
}

.tv-status-column-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: clamp(18px, 2vw, 32px);
}

.tv-status-column-head h2 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(36px, 4vw, 76px);
  font-weight: 950;
  line-height: 1;
}

.tv-status-column-head span {
  min-width: 56px;
  min-height: 56px;
  border-radius: 8px;
  background: #262b2f;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(22px, 2vw, 36px);
  font-weight: 950;
}

.tv-status-slide {
  display: none;
}

.tv-status-slide.is-active {
  display: block;
}

.tv-status-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: clamp(10px, 1.1vw, 18px);
}

.tv-status-order {
  display: grid;
  grid-template-columns: clamp(96px, 8vw, 160px) minmax(0, 1fr);
  align-items: center;
  gap: clamp(18px, 2vw, 32px);
  min-height: clamp(72px, 7vw, 112px);
}

.tv-status-number {
  height: clamp(62px, 6vw, 98px);
  border-radius: 8px;
  background: #3c4348;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.tv-status-number-progress {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 0;
  background: #ff6b13;
  transition: width 0.45s ease, background-color 0.2s ease;
}

.tv-status-order.is-ready .tv-status-number-progress {
  background: #19a489;
}

.tv-status-order.is-overdue .tv-status-number-progress {
  background: #e64a45;
}

.tv-status-number strong {
  position: relative;
  z-index: 1;
  color: #ffffff;
  font-size: clamp(30px, 3.3vw, 62px);
  font-weight: 950;
  line-height: 1;
}

.tv-status-order-body {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.tv-status-order-body strong {
  color: #ffffff;
  font-size: clamp(28px, 2.8vw, 56px);
  font-weight: 950;
  line-height: 1.08;
  overflow-wrap: anywhere;
}

.tv-status-order-body span {
  color: #aeb8bd;
  font-size: clamp(16px, 1.2vw, 24px);
  font-weight: 850;
}

.tv-status-empty {
  min-height: clamp(260px, 35vw, 540px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.025);
  display: grid;
  place-content: center;
  gap: 10px;
  text-align: center;
  color: #8f9ca3;
}

.tv-status-empty strong {
  color: #ffffff;
  font-size: clamp(24px, 2.4vw, 44px);
  font-weight: 950;
}

.tv-status-empty span {
  font-size: clamp(16px, 1.2vw, 24px);
  font-weight: 800;
}

.tv-status-dots {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: clamp(20px, 2vw, 36px);
}

.tv-status-dots button {
  width: clamp(18px, 1.5vw, 30px);
  height: clamp(18px, 1.5vw, 30px);
  border: 0;
  border-radius: 8px;
  background: #cfd8dc;
  opacity: 1;
  transition: background-color 0.18s ease, box-shadow 0.18s ease;
}

.tv-status-dots button.is-active {
  background: #16a2ad;
  box-shadow: 0 0 0 5px #d5dee2;
}

@media (max-width: 1100px) {
  .restaurant-links-grid,
  .tv-status-board {
    grid-template-columns: 1fr;
  }

  .tv-status-page {
    overflow: auto;
  }
}

@media (max-width: 760px) {
  .tv-status-topbar,
  .tv-status-actions {
    align-items: flex-start;
    justify-content: flex-start;
  }

  .tv-status-topbar {
    flex-direction: column;
  }

  .tv-status-brand {
    width: 100%;
  }

  .tv-status-logo {
    max-width: min(34vw, 132px);
    max-height: 82px;
  }

  .tv-status-actions button,
  .tv-status-actions > span {
    width: 100%;
  }

  .tv-status-order {
    grid-template-columns: 78px minmax(0, 1fr);
  }
}

.restaurant-device-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 22px;
}

.restaurant-device-kpi-grid article,
.restaurant-device-code-panel,
.restaurant-device-type-card {
  border: 1px solid rgba(3, 62, 85, 0.13);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 42px rgba(3, 62, 85, 0.08);
}

.restaurant-device-kpi-grid article {
  min-height: 118px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.restaurant-device-kpi-grid span,
.restaurant-device-type-card span,
.restaurant-device-code-panel span,
.restaurant-device-help p,
.restaurant-device-pin + small {
  color: #717d82;
  font-weight: 800;
}

.restaurant-device-kpi-grid strong {
  color: #223238;
  font-size: clamp(30px, 4vw, 50px);
  line-height: 1;
}

.restaurant-device-type-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}

.restaurant-device-type-card {
  min-height: 154px;
  padding: 20px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.restaurant-device-type-card:hover,
.restaurant-device-type-card:focus-within {
  border-color: rgba(13, 152, 168, 0.7);
  transform: translateY(-2px);
}

.restaurant-device-type-card input {
  width: 22px;
  height: 22px;
  accent-color: var(--cabinet-teal);
}

.restaurant-device-type-card strong {
  color: #223238;
  font-size: 22px;
}

.restaurant-device-type-card:has(input:checked) {
  border-color: var(--cabinet-teal);
  box-shadow: 0 20px 48px rgba(13, 152, 168, 0.16);
}

.restaurant-device-table-field.is-hidden {
  display: none;
}

.restaurant-device-help {
  border-radius: 18px;
  padding: 18px 20px;
  background: rgba(13, 152, 168, 0.08);
}

.restaurant-device-help span {
  display: block;
  color: #033e55;
  font-weight: 900;
  margin-bottom: 8px;
}

.restaurant-device-code-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
  padding: 24px;
}

.restaurant-device-code-panel > div {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 8px;
}

.restaurant-device-code-panel .restaurant-device-code-actions {
  flex: 0 0 220px;
  align-items: stretch;
}

.restaurant-device-code-actions > a,
.restaurant-device-code-actions > button,
.restaurant-device-code-actions > form,
.restaurant-device-code-actions > form > button {
  width: 100%;
}

.restaurant-device-code-actions > form {
  margin: 0;
}

.restaurant-device-apk-qr-note {
  margin-top: 14px !important;
  font-size: 15px !important;
}

.restaurant-device-code-panel strong,
.restaurant-device-pin {
  color: #033e55;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-weight: 950;
  letter-spacing: 0.16em;
}

.restaurant-device-code-panel strong {
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1;
}

.restaurant-device-pin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 106px;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(3, 62, 85, 0.08);
  font-size: 18px;
}

@media (max-width: 1180px) {
  .restaurant-device-kpi-grid,
  .restaurant-device-type-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .restaurant-device-kpi-grid,
  .restaurant-device-type-grid {
    grid-template-columns: 1fr;
  }

  .restaurant-device-code-panel {
    align-items: stretch;
    flex-direction: column;
  }

  .restaurant-device-code-panel .cabinet-secondary-button {
    width: 100%;
  }

  .restaurant-device-code-panel .restaurant-device-code-actions {
    flex-basis: auto;
    width: 100%;
  }
}

.gamification-kpi-grid,
.gamification-dashboard-grid,
.gamification-challenge-grid,
.gamification-reward-grid,
.gamification-employee-hero {
  display: grid;
  gap: 18px;
}

.gamification-kpi-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 22px;
}

.gamification-kpi {
  min-height: 132px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.gamification-kpi span,
.gamification-employee-hero span,
.gamification-reward-card > div span,
.gamification-leader-row span {
  color: #717d82;
  font-weight: 850;
}

.gamification-kpi strong {
  color: #223238;
  font-size: clamp(32px, 4vw, 54px);
  line-height: 1;
}

.gamification-dashboard-grid {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  margin-bottom: 22px;
}

.gamification-challenge-grid,
.gamification-reward-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.gamification-card-list {
  display: grid;
  gap: 14px;
}

.gamification-challenge-card,
.gamification-reward-card {
  border: 1px solid rgba(3, 62, 85, 0.12);
  border-radius: 8px;
  background: #ffffff;
  padding: 18px;
  display: grid;
  gap: 12px;
  min-width: 0;
}

.gamification-challenge-card.is-completed {
  background: linear-gradient(180deg, rgba(13, 152, 168, 0.12), #ffffff);
}

.gamification-challenge-card > div,
.gamification-reward-card > div,
.gamification-leader-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.gamification-challenge-card strong,
.gamification-reward-card h2,
.gamification-leader-row b {
  color: #223238;
  font-size: 20px;
  font-weight: 950;
  line-height: 1.2;
}

.gamification-challenge-card p,
.gamification-reward-card p {
  margin: 0;
  color: #5f6b70;
  font-weight: 760;
  line-height: 1.45;
}

.gamification-challenge-card small,
.gamification-reward-card small {
  color: #68757a;
  font-weight: 850;
}

.gamification-progress {
  height: 12px;
  border-radius: 999px;
  background: rgba(3, 62, 85, 0.1);
  overflow: hidden;
}

.gamification-progress span {
  display: block;
  height: 100%;
  max-width: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #0d98a8, #69b7ad);
  transition: width 0.25s ease;
}

.gamification-leaderboard {
  display: grid;
  gap: 10px;
}

.gamification-leader-row {
  border: 1px solid rgba(3, 62, 85, 0.1);
  border-radius: 8px;
  background: #f8fbfb;
  padding: 12px 14px;
}

.gamification-leader-row > strong {
  min-width: 34px;
  min-height: 34px;
  border-radius: 999px;
  background: #0d98a8;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.gamification-leader-row div {
  min-width: 0;
  flex: 1;
  display: grid;
  gap: 2px;
}

.gamification-leader-row em {
  color: #033e55;
  font-style: normal;
  font-weight: 950;
  white-space: nowrap;
}

.gamification-employee-hero {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 22px;
}

.gamification-employee-hero > div {
  min-height: 168px;
  border: 1px solid rgba(3, 62, 85, 0.12);
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff, #f5fbfb);
  padding: 22px;
  display: grid;
  align-content: space-between;
  gap: 12px;
}

.gamification-employee-hero strong {
  color: #223238;
  font-size: clamp(34px, 4.2vw, 56px);
  line-height: 1;
}

.gamification-employee-hero p {
  margin: 0;
  color: #5f6b70;
  font-weight: 850;
}

.gamification-badge-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.gamification-badge {
  border: 1px solid rgba(13, 152, 168, 0.22);
  border-radius: 8px;
  background: rgba(13, 152, 168, 0.1);
  padding: 14px;
  display: grid;
  gap: 6px;
}

.gamification-badge strong {
  color: #033e55;
  font-size: 18px;
  font-weight: 950;
}

.gamification-badge span {
  color: #5f6b70;
  font-weight: 760;
  line-height: 1.35;
}

.gamification-badge.is-muted {
  opacity: 0.58;
  filter: grayscale(0.6);
}

.gamification-reward-card form {
  margin-top: 4px;
}

.gamification-reward-card .cabinet-primary-button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

@media (max-width: 1180px) {
  .gamification-kpi-grid,
  .gamification-challenge-grid,
  .gamification-reward-grid,
  .gamification-employee-hero {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gamification-dashboard-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .gamification-kpi-grid,
  .gamification-challenge-grid,
  .gamification-reward-grid,
  .gamification-employee-hero,
  .gamification-badge-list {
    grid-template-columns: 1fr;
  }

  .gamification-challenge-card > div,
  .gamification-reward-card > div,
  .gamification-leader-row {
    align-items: flex-start;
  }

  .gamification-leader-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
  }

  .gamification-leader-row em {
    grid-column: 2;
  }
}

@media (max-width: 680px) {
  .cabinet-section-tabs.employee-secretary-tabs {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    overflow: visible;
    gap: 7px;
  }

  .cabinet-section-tabs.employee-secretary-tabs a {
    min-width: 0;
    padding: 9px 7px;
    gap: 5px;
    font-size: 13px;
    white-space: nowrap;
  }

  .employee-secretary-tabs a span {
    min-width: 22px;
    height: 22px;
    padding-inline: 5px;
  }
}

/* Stage 1.193: product popup fidelity based on the approved restaurant-menu reference. */
@font-face {
  font-family: "Raleway FixTech";
  src: url("/fonts/raleway.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Raleway FixTech";
  src: url("/fonts/raleway-bold.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

.tasty-storefront[data-template="tasty-grid-catalog-main"] .storefront-product-modal {
  --product-popup-primary: #ff6900;
  --product-popup-primary-push: #d74100;
  --product-popup-white: #ffffff;
  --product-popup-soft: #f5f7f9;
  --product-popup-border: #e4e9ef;
  --product-popup-control: #d6dde3;
  --product-popup-muted: #7e8b99;
  --product-popup-ink: #1b242c;
  --product-popup-overlay: rgba(40, 47, 58, 0.5);
  inset: 0;
  width: 936px;
  height: min(772px, calc(100dvh - 128px));
  min-height: 0;
  max-width: 936px;
  max-height: 772px;
  margin: auto;
  border: 0;
  border-radius: 24px;
  background: var(--product-popup-white);
  color: var(--product-popup-ink);
  box-shadow: none;
  overflow: visible;
  padding: 0;
  font-family: "Raleway FixTech", Raleway, Arial, sans-serif;
}

.tasty-storefront[data-template="tasty-grid-catalog-main"] .storefront-product-modal::backdrop {
  background: var(--product-popup-overlay);
  backdrop-filter: blur(10px);
}

.tasty-storefront[data-template="tasty-grid-catalog-main"] .storefront-product-modal[open] {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: minmax(0, 1fr) 80px;
}

.tasty-storefront[data-template="tasty-grid-catalog-main"] .storefront-product-modal button,
.tasty-storefront[data-template="tasty-grid-catalog-main"] .storefront-product-modal summary {
  font-family: inherit;
}

.tasty-storefront[data-template="tasty-grid-catalog-main"] .storefront-product-modal > .storefront-modal-media {
  position: relative;
  grid-column: 1;
  grid-row: 1 / -1;
  min-width: 0;
  min-height: 0;
  border-radius: 24px 0 0 24px;
  background: var(--product-popup-white);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 16px 0 16px 16px;
}

.tasty-storefront[data-template="tasty-grid-catalog-main"] .storefront-modal-media > img {
  width: 452px;
  height: 434px;
  min-height: 0;
  aspect-ratio: auto;
  border-radius: 16px;
  display: block;
  object-fit: cover;
}

.tasty-storefront[data-template="tasty-grid-catalog-main"] .storefront-modal-media > span {
  position: absolute;
  top: 28px;
  right: 12px;
  border-radius: 8px;
  background: var(--product-popup-white);
  color: var(--product-popup-ink);
  padding: 6px 12px;
  font-size: 14px;
  font-weight: 700;
  line-height: 18px;
}

.tasty-storefront[data-template="tasty-grid-catalog-main"] .storefront-modal-media > .storefront-modal-rating {
  position: static;
  min-height: 22px;
  margin: 12px 0 0;
  background: transparent;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0;
  font-size: 16px;
  line-height: 22px;
}

.tasty-storefront[data-template="tasty-grid-catalog-main"] .storefront-modal-rating img {
  width: 24px;
  height: 24px;
  filter: none;
}

.tasty-storefront[data-template="tasty-grid-catalog-main"] .storefront-modal-rating strong {
  margin-right: 8px;
  color: var(--product-popup-ink);
  font-size: 16px;
  font-weight: 700;
  line-height: 22px;
}

.tasty-storefront[data-template="tasty-grid-catalog-main"] .storefront-modal-rating span {
  color: var(--product-popup-muted);
  font-size: 16px;
  font-weight: 400;
  line-height: 22px;
}

.tasty-storefront[data-template="tasty-grid-catalog-main"] .storefront-modal-media > .storefront-modal-combo-offer {
  top: 28px;
  right: auto;
  left: 28px;
  max-width: calc(100% - 56px);
  color: var(--product-popup-ink);
  line-height: 18px;
}

.tasty-storefront[data-template="tasty-grid-catalog-main"] .storefront-product-modal > .storefront-modal-copy {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
  min-height: 0;
  max-height: none;
  border-radius: 0 24px 0 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-color: var(--product-popup-control) transparent;
  scrollbar-width: thin;
  padding: 16px 24px 16px 32px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 0;
}

.tasty-storefront[data-template="tasty-grid-catalog-main"] .storefront-product-modal h2 {
  margin: 0 0 16px;
  color: var(--product-popup-ink);
  font-size: 22px;
  font-weight: 700;
  line-height: 24px;
}

.tasty-storefront[data-template="tasty-grid-catalog-main"] .storefront-product-modal h2:focus {
  outline: 0;
}

.tasty-storefront[data-template="tasty-grid-catalog-main"] .storefront-product-modal p,
.tasty-storefront[data-template="tasty-grid-catalog-main"] .storefront-modal-description {
  margin: 0;
  color: var(--product-popup-ink);
  font-size: 16px;
  font-weight: 400;
  line-height: 22px;
}

.tasty-storefront[data-template="tasty-grid-catalog-main"] .storefront-modal-description {
  margin-bottom: 16px;
}

.tasty-storefront[data-template="tasty-grid-catalog-main"] .storefront-combo-discount-summary {
  display: none;
}

.tasty-storefront[data-template="tasty-grid-catalog-main"] .storefront-modal-close {
  position: absolute;
  top: 0;
  right: -48px;
  z-index: 20;
  width: 40px;
  height: 40px;
  min-width: 40px;
  border: 0;
  border-radius: 12px;
  background: var(--product-popup-border);
  display: grid;
  place-items: center;
  padding: 0;
  cursor: pointer;
}

.tasty-storefront[data-template="tasty-grid-catalog-main"] .storefront-modal-close img {
  width: 16px;
  height: 16px;
  transform: rotate(45deg);
}

.tasty-storefront[data-template="tasty-grid-catalog-main"] .storefront-modal-nav {
  position: fixed;
  top: 0;
  bottom: 0;
  z-index: 10;
  width: 140px;
  border: 0;
  background: transparent;
  display: flex;
  align-items: center;
  padding: 0;
  cursor: pointer;
}

.tasty-storefront[data-template="tasty-grid-catalog-main"] .storefront-modal-nav-prev {
  left: 0;
  justify-content: flex-start;
  padding-left: 50px;
}

.tasty-storefront[data-template="tasty-grid-catalog-main"] .storefront-modal-nav-next {
  right: 0;
  justify-content: flex-end;
  padding-right: 50px;
}

.tasty-storefront[data-template="tasty-grid-catalog-main"] .storefront-modal-nav-prev:hover {
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.2), transparent 90%);
}

.tasty-storefront[data-template="tasty-grid-catalog-main"] .storefront-modal-nav-next:hover {
  background: linear-gradient(270deg, rgba(0, 0, 0, 0.2), transparent 90%);
}

.tasty-storefront[data-template="tasty-grid-catalog-main"] .storefront-modal-nav > span {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: var(--product-popup-control);
  display: grid;
  place-items: center;
}

.tasty-storefront[data-template="tasty-grid-catalog-main"] .storefront-modal-nav img {
  width: 16px;
  height: 16px;
}

.tasty-storefront[data-template="tasty-grid-catalog-main"] .storefront-modal-nav-next img {
  transform: rotate(180deg);
}

.tasty-storefront[data-template="tasty-grid-catalog-main"] .storefront-product-details {
  margin: 0 0 16px;
  border: 0;
  padding: 0;
}

.tasty-storefront[data-template="tasty-grid-catalog-main"] .storefront-product-details summary {
  width: 100%;
  min-height: 40px;
  color: var(--product-popup-ink);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  list-style: none;
  padding: 8px 0;
  font-size: 18px;
  font-weight: 700;
  line-height: 22px;
  outline: none;
}

.tasty-storefront[data-template="tasty-grid-catalog-main"] .storefront-product-details summary::-webkit-details-marker {
  display: none;
}

.tasty-storefront[data-template="tasty-grid-catalog-main"] .storefront-product-details summary::after {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  background: url("/img/icons/product-popup-chevron.svg") center / 16px 16px no-repeat;
  content: "";
  transform: rotate(-90deg);
  transition: transform 0.15s ease;
}

.tasty-storefront[data-template="tasty-grid-catalog-main"] .storefront-product-details[open] summary::after {
  transform: rotate(90deg);
}

.tasty-storefront[data-template="tasty-grid-catalog-main"] .storefront-product-details[data-storefront-exclusions] summary {
  justify-content: flex-start;
  gap: 8px;
}

.tasty-storefront[data-template="tasty-grid-catalog-main"] .storefront-product-details[data-storefront-exclusions] summary::after {
  margin-left: auto;
}

.tasty-storefront[data-template="tasty-grid-catalog-main"] .storefront-product-details [data-storefront-exclusion-counter] {
  border-radius: 6px;
  background: var(--product-popup-soft);
  color: var(--product-popup-ink) !important;
  padding: 6px 10px;
  font-size: 12px !important;
  font-weight: 700;
  line-height: 14px;
}

.tasty-storefront[data-template="tasty-grid-catalog-main"] .storefront-nutrition-grid {
  width: 100%;
  margin: 0;
  display: grid;
  grid-template-columns: minmax(44px, 80px) repeat(4, minmax(0, 80px));
  justify-content: space-between;
  gap: 16px 0;
  align-items: center;
  padding: 8px 0 16px;
}

.tasty-storefront[data-template="tasty-grid-catalog-main"] .storefront-nutrition-grid > span {
  min-width: 0;
  color: var(--product-popup-ink);
  display: flex;
  flex-direction: column;
  gap: 0;
  font-size: 14px;
  font-weight: 400;
  line-height: 18px;
  text-align: center;
}

.tasty-storefront[data-template="tasty-grid-catalog-main"] .storefront-nutrition-grid > span strong {
  height: 22px;
  color: var(--product-popup-ink);
  font-size: 14px !important;
  font-weight: 700;
  line-height: 22px;
}

.tasty-storefront[data-template="tasty-grid-catalog-main"] .storefront-nutrition-grid .storefront-nutrition-label {
  display: block;
  font-size: 14px;
  line-height: 18px;
  text-align: left;
}

.tasty-storefront[data-template="tasty-grid-catalog-main"] .storefront-product-details [data-storefront-modal-composition] {
  margin: 0;
  color: var(--product-popup-ink);
  font-size: 16px;
  font-weight: 400;
  line-height: 22px;
}

.tasty-storefront[data-template="tasty-grid-catalog-main"] .storefront-exclusion-list {
  margin-top: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tasty-storefront[data-template="tasty-grid-catalog-main"] .storefront-exclusion-list label {
  min-height: 48px;
  width: max-content;
  border: 0;
  border-radius: 12px;
  background: var(--product-popup-soft);
  color: var(--product-popup-ink);
  display: inline-flex;
  align-items: center;
  gap: 0;
  padding: 12px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 400;
  line-height: 22px;
}

.tasty-storefront[data-template="tasty-grid-catalog-main"] .storefront-exclusion-list label:hover {
  background: var(--product-popup-border);
}

.tasty-storefront[data-template="tasty-grid-catalog-main"] .storefront-exclusion-list label.is-selected {
  border: 0;
  background: var(--product-popup-soft);
}

.tasty-storefront[data-template="tasty-grid-catalog-main"] .storefront-exclusion-list input {
  appearance: none;
  width: 24px;
  height: 24px;
  min-width: 24px;
  margin: 0 12px 0 0;
  border: 2px solid var(--product-popup-muted);
  border-radius: 6px;
  background: var(--product-popup-white);
  display: grid;
  place-items: center;
}

.tasty-storefront[data-template="tasty-grid-catalog-main"] .storefront-exclusion-list input:checked {
  border-color: var(--product-popup-primary);
  background: var(--product-popup-primary) url("/img/icons/product-popup-check-white.svg") center / 16px 16px no-repeat;
}

.tasty-storefront[data-template="tasty-grid-catalog-main"] .storefront-combo-builder,
.tasty-storefront[data-template="tasty-grid-catalog-main"] .storefront-upsell-builder {
  min-height: 0;
  margin: 0 0 16px;
  flex: 0 0 auto;
}

.tasty-storefront[data-template="tasty-grid-catalog-main"] .storefront-combo-builder > div:first-child,
.tasty-storefront[data-template="tasty-grid-catalog-main"] .storefront-upsell-builder > div:first-child {
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  padding: 8px 0;
}

.tasty-storefront[data-template="tasty-grid-catalog-main"] .storefront-combo-builder h3,
.tasty-storefront[data-template="tasty-grid-catalog-main"] .storefront-upsell-builder h3 {
  margin: 0;
  color: var(--product-popup-ink);
  font-size: 18px;
  font-weight: 700;
  line-height: 22px;
}

.tasty-storefront[data-template="tasty-grid-catalog-main"] .storefront-combo-builder [data-storefront-combo-counter],
.tasty-storefront[data-template="tasty-grid-catalog-main"] .storefront-upsell-builder [data-storefront-upsell-counter] {
  border-radius: 6px;
  background: var(--product-popup-muted);
  color: var(--product-popup-white) !important;
  padding: 0 8px;
  font-size: 14px !important;
  font-weight: 700;
  line-height: 18px;
}

.tasty-storefront[data-template="tasty-grid-catalog-main"] .storefront-combo-grid,
.tasty-storefront[data-template="tasty-grid-catalog-main"] .storefront-upsell-grid {
  margin-top: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(100px, 1fr));
  gap: 8px;
}

.tasty-storefront[data-template="tasty-grid-catalog-main"] .storefront-combo-grid button,
.tasty-storefront[data-template="tasty-grid-catalog-main"] .storefront-upsell-grid article {
  position: relative;
  min-width: 0;
  min-height: 204px;
  border: 0;
  border-radius: 13px;
  background: var(--product-popup-soft);
  color: var(--product-popup-ink);
  box-shadow: none;
  overflow: hidden;
  padding: 0;
  text-align: left;
}

.tasty-storefront[data-template="tasty-grid-catalog-main"] .storefront-upsell-grid article {
  display: flex;
  flex-direction: column;
}

.tasty-storefront[data-template="tasty-grid-catalog-main"] .storefront-combo-grid button.is-selected,
.tasty-storefront[data-template="tasty-grid-catalog-main"] .storefront-upsell-grid article.is-selected {
  border: 0;
  box-shadow: none;
  outline: 1px solid #ffad0d;
  outline-offset: -1px;
}

.tasty-storefront[data-template="tasty-grid-catalog-main"] .storefront-combo-grid button > img,
.tasty-storefront[data-template="tasty-grid-catalog-main"] .storefront-upsell-grid article > img {
  width: 100%;
  height: 104px;
  min-height: 104px;
  aspect-ratio: auto;
  border-radius: 12px;
  display: block;
  filter: none;
  object-fit: cover;
}

.tasty-storefront[data-template="tasty-grid-catalog-main"] .storefront-combo-grid button.is-selected::after,
.tasty-storefront[data-template="tasty-grid-catalog-main"] .storefront-upsell-grid article.is-selected::after {
  position: absolute;
  inset: 0 0 auto;
  z-index: 1;
  height: 104px;
  background: rgba(13, 20, 28, 0.4);
  content: "";
}

.tasty-storefront[data-template="tasty-grid-catalog-main"] .storefront-combo-grid button > em,
.tasty-storefront[data-template="tasty-grid-catalog-main"] .storefront-upsell-grid article [data-storefront-upsell-quantity] {
  position: absolute;
  top: 40px;
  left: 50%;
  z-index: 2;
  min-width: 0;
  min-height: 24px;
  border-radius: 0;
  background: transparent;
  color: var(--product-popup-white);
  display: none;
  place-items: center;
  padding: 0;
  font-size: 20px;
  font-style: normal;
  font-weight: 700;
  line-height: 24px;
  transform: translateX(-50%);
}

.tasty-storefront[data-template="tasty-grid-catalog-main"] .storefront-combo-grid button.is-selected > em,
.tasty-storefront[data-template="tasty-grid-catalog-main"] .storefront-upsell-grid article.is-selected [data-storefront-upsell-quantity] {
  display: grid;
}

.tasty-storefront[data-template="tasty-grid-catalog-main"] .storefront-combo-grid button > span {
  min-height: 100px;
  border-radius: 12px;
  background: var(--product-popup-soft);
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 8px;
}

.tasty-storefront[data-template="tasty-grid-catalog-main"] .storefront-combo-grid button > span strong,
.tasty-storefront[data-template="tasty-grid-catalog-main"] .storefront-upsell-grid article > strong {
  min-height: 36px;
  margin: 0 0 16px;
  color: var(--product-popup-ink);
  display: -webkit-box;
  overflow: hidden;
  padding: 0;
  font-size: 14px !important;
  font-weight: 700;
  line-height: 18px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.tasty-storefront[data-template="tasty-grid-catalog-main"] .storefront-combo-grid button > span small {
  margin-top: auto;
  color: var(--product-popup-ink);
  padding-block: 4px;
  font-size: 14px;
  font-weight: 700;
  line-height: 18px;
}

.tasty-storefront[data-template="tasty-grid-catalog-main"] .storefront-combo-grid button > b {
  position: absolute;
  right: 8px;
  bottom: 12px;
  z-index: 3;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
}

.tasty-storefront[data-template="tasty-grid-catalog-main"] .storefront-combo-grid button > b img {
  width: 16px;
  height: 16px;
}

.tasty-storefront[data-template="tasty-grid-catalog-main"] .storefront-combo-grid button.is-selected > b {
  display: grid;
}

.tasty-storefront[data-template="tasty-grid-catalog-main"] .storefront-combo-grid button.is-selected > b img {
  content: url("/img/icons/product-popup-check.svg");
}

.tasty-storefront[data-template="tasty-grid-catalog-main"] .storefront-upsell-grid article > strong {
  margin: 0 8px 16px;
  padding-top: 8px;
}

.tasty-storefront[data-template="tasty-grid-catalog-main"] .storefront-upsell-grid article > footer {
  min-height: 34px;
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 4px 8px 8px;
}

.tasty-storefront[data-template="tasty-grid-catalog-main"] .storefront-upsell-grid article > footer small {
  color: var(--product-popup-ink);
  font-size: 14px;
  font-weight: 700;
  line-height: 18px;
  white-space: nowrap;
}

.tasty-storefront[data-template="tasty-grid-catalog-main"] .storefront-upsell-grid article > footer div {
  min-height: 24px;
  display: flex;
  align-items: center;
}

.tasty-storefront[data-template="tasty-grid-catalog-main"] .storefront-upsell-grid article > footer button {
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 0;
  background: transparent;
  display: grid;
  place-items: center;
  padding: 4px;
  cursor: pointer;
  outline: none;
}

.tasty-storefront[data-template="tasty-grid-catalog-main"] .storefront-upsell-grid article > footer button img {
  width: 16px;
  height: 16px;
}

.tasty-storefront[data-template="tasty-grid-catalog-main"] .storefront-upsell-grid article > footer button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.tasty-storefront[data-template="tasty-grid-catalog-main"] .storefront-modal-availability {
  margin: 0 0 16px !important;
  border-radius: 12px;
  background: #ffe7e5;
  color: #a12d27 !important;
  padding: 12px;
  font-size: 14px !important;
  font-weight: 700 !important;
  line-height: 18px !important;
}

.tasty-storefront[data-template="tasty-grid-catalog-main"] .storefront-product-modal > .storefront-modal-purchase {
  position: relative;
  grid-column: 2;
  grid-row: 2;
  z-index: 3;
  min-width: 0;
  margin: 0;
  border: 0;
  border-radius: 0 0 24px 0;
  background: var(--product-popup-white);
  display: block;
  padding: 16px;
}

.tasty-storefront[data-template="tasty-grid-catalog-main"] .storefront-product-modal .storefront-modal-price-summary {
  display: none;
}

.tasty-storefront[data-template="tasty-grid-catalog-main"] .storefront-modal-purchase button[data-storefront-modal-add] {
  width: 100%;
  min-height: 48px;
  height: 48px;
  border: 0;
  border-radius: 14px;
  background: var(--product-popup-primary);
  color: var(--product-popup-white);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  font-size: 16px;
  font-weight: 700;
  line-height: 22px;
  cursor: pointer;
}

.tasty-storefront[data-template="tasty-grid-catalog-main"] .storefront-modal-purchase button[data-storefront-modal-add]:hover:not(:disabled) {
  background: var(--product-popup-primary-push);
}

.tasty-storefront[data-template="tasty-grid-catalog-main"] .storefront-modal-purchase button[data-storefront-modal-add]:disabled {
  background: var(--product-popup-soft);
  color: var(--product-popup-control);
  cursor: not-allowed;
}

.tasty-storefront[data-template="tasty-grid-catalog-main"] .storefront-modal-purchase button[data-storefront-modal-add][data-state="incomplete"] {
  background: var(--product-popup-primary);
  color: var(--product-popup-white);
}

@media (max-width: 1024px) and (min-width: 641px) {
  .tasty-storefront[data-template="tasty-grid-catalog-main"] .storefront-product-modal {
    width: 464px;
    height: min(772px, calc(100dvh - 128px));
    max-width: 464px;
    overflow-y: auto;
  }

  .tasty-storefront[data-template="tasty-grid-catalog-main"] .storefront-product-modal[open] {
    display: block;
  }

  .tasty-storefront[data-template="tasty-grid-catalog-main"] .storefront-product-modal > .storefront-modal-media {
    border-radius: 24px 24px 0 0;
    padding: 16px 16px 0;
  }

  .tasty-storefront[data-template="tasty-grid-catalog-main"] .storefront-modal-media > img {
    width: 432px;
    height: 392px;
  }

  .tasty-storefront[data-template="tasty-grid-catalog-main"] .storefront-modal-media > span {
    top: 28px;
    right: 28px;
  }

  .tasty-storefront[data-template="tasty-grid-catalog-main"] .storefront-modal-media > .storefront-modal-rating {
    margin: 16px 0 0;
  }

  .tasty-storefront[data-template="tasty-grid-catalog-main"] .storefront-modal-media > .storefront-modal-combo-offer {
    right: auto;
    left: 28px;
  }

  .tasty-storefront[data-template="tasty-grid-catalog-main"] .storefront-product-modal > .storefront-modal-copy {
    overflow: visible;
    padding: 16px;
  }

  .tasty-storefront[data-template="tasty-grid-catalog-main"] .storefront-product-modal > .storefront-modal-purchase {
    position: sticky;
    bottom: 0;
    border-radius: 0 0 24px 24px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  }
}

@media (max-width: 720px) {
  .tasty-storefront[data-template="tasty-grid-catalog-main"] .storefront-modal-nav {
    display: none;
  }
}

@media (max-width: 640px) {
  .tasty-storefront[data-template="tasty-grid-catalog-main"] .storefront-product-modal {
    inset: 0;
    width: 100vw;
    height: 100dvh;
    min-height: 100dvh;
    max-width: none;
    max-height: none;
    margin: 0;
    border-radius: 0;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: none;
  }

  .tasty-storefront[data-template="tasty-grid-catalog-main"] .storefront-product-modal::-webkit-scrollbar {
    display: none;
  }

  .tasty-storefront[data-template="tasty-grid-catalog-main"] .storefront-product-modal[open] {
    display: block;
  }

  .tasty-storefront[data-template="tasty-grid-catalog-main"] .storefront-product-modal > .storefront-modal-media {
    min-height: 0;
    border-radius: 0;
    padding: 0;
  }

  .tasty-storefront[data-template="tasty-grid-catalog-main"] .storefront-modal-media > img {
    width: 100%;
    height: 320px;
    border-radius: 0;
  }

  .tasty-storefront[data-template="tasty-grid-catalog-main"] .storefront-modal-media > span {
    top: 12px;
    right: 12px;
  }

  .tasty-storefront[data-template="tasty-grid-catalog-main"] .storefront-modal-media > [data-storefront-modal-portion] {
    inset: 282px auto auto 8px;
  }

  .tasty-storefront[data-template="tasty-grid-catalog-main"] .storefront-modal-media > .storefront-modal-rating {
    min-height: 22px;
    margin: 16px 16px 0;
  }

  .tasty-storefront[data-template="tasty-grid-catalog-main"] .storefront-modal-media > .storefront-modal-combo-offer {
    top: 264px;
    right: 8px;
    bottom: auto;
    left: 8px;
    max-width: none;
  }

  .tasty-storefront[data-template="tasty-grid-catalog-main"] .storefront-product-modal > .storefront-modal-copy {
    max-height: none;
    border-radius: 0;
    overflow: visible;
    padding: 16px 16px 112px;
  }

  .tasty-storefront[data-template="tasty-grid-catalog-main"] .storefront-product-modal h2 {
    font-size: 22px;
    line-height: 24px;
  }

  .tasty-storefront[data-template="tasty-grid-catalog-main"] .storefront-modal-close {
    position: fixed;
    top: max(8px, env(safe-area-inset-top));
    right: 8px;
  }

  .tasty-storefront[data-template="tasty-grid-catalog-main"] .storefront-product-modal > .storefront-modal-purchase {
    position: fixed;
    inset: auto 0 0;
    min-height: 80px;
    margin: 0;
    border-radius: 0;
    background: var(--product-popup-white);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    padding: 16px;
  }

  .tasty-storefront[data-template="tasty-grid-catalog-main"] .storefront-modal-purchase button[data-storefront-modal-add] {
    min-height: 48px;
    height: 48px;
  }

  .tasty-storefront[data-template="tasty-grid-catalog-main"] .storefront-combo-grid,
  .tasty-storefront[data-template="tasty-grid-catalog-main"] .storefront-upsell-grid {
    grid-template-columns: repeat(3, minmax(100px, 1fr));
    gap: 8px;
  }
}

@media (max-width: 374px) {
  .tasty-storefront[data-template="tasty-grid-catalog-main"] .storefront-combo-grid,
  .tasty-storefront[data-template="tasty-grid-catalog-main"] .storefront-upsell-grid {
    grid-template-columns: repeat(2, minmax(100px, 1fr));
  }
}

.storefront-modifier-builder {
  margin-top: 24px;
}

.storefront-modifier-builder > h3,
.storefront-modifier-groups legend {
  color: #17202a;
  font-weight: 800;
}

.storefront-modifier-groups {
  display: grid;
  gap: 16px;
}

.storefront-modifier-groups fieldset {
  margin: 0;
  border: 0;
  padding: 0;
}

.storefront-modifier-groups fieldset > div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.storefront-modifier-groups label {
  cursor: pointer;
}

.storefront-modifier-groups input {
  position: absolute;
  opacity: 0;
}

.storefront-modifier-groups label span {
  display: block;
  border: 2px solid #e4e9ef;
  border-radius: 14px;
  background: #f6f7f9;
  padding: 12px 16px;
}

.storefront-modifier-groups label.is-selected span,
.storefront-modifier-groups input:focus-visible + span {
  border-color: #ff6500;
  background: #fff4ec;
}

.catalog-card {
  display: grid;
  gap: 24px;
  max-width: 920px;
}

.catalog-card > header {
  display: flex;
  align-items: center;
  gap: 20px;
}

.catalog-card > header img {
  width: 160px;
  height: 120px;
  border-radius: 18px;
  object-fit: cover;
}

.catalog-card > header h2 {
  margin: 4px 0;
}

.catalog-card > header strong {
  color: #087b87;
  letter-spacing: .04em;
}

.catalog-card dl {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
}

.catalog-card dl > div {
  border: 1px solid #dce5e7;
  border-radius: 14px;
  padding: 14px;
}

.catalog-card dt {
  color: #748087;
  font-size: 13px;
}

.catalog-card dd {
  margin: 5px 0 0;
  font-weight: 700;
}

.catalog-card > footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.catalog-card > footer small {
  flex-basis: 100%;
}

@media (max-width: 640px) {
  .catalog-card > header {
    align-items: flex-start;
    flex-direction: column;
  }

  .catalog-card > header img {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
  }

  .catalog-card dl {
    grid-template-columns: 1fr 1fr;
  }
}

@media print {
  body * {
    visibility: hidden;
  }

  [data-catalog-print-card],
  [data-catalog-print-card] * {
    visibility: visible;
  }

  [data-catalog-print-card] {
    position: absolute;
    inset: 0;
    box-shadow: none;
  }

  [data-catalog-print-card] > footer {
    display: none;
  }
}

.accounting-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
  margin-bottom: 22px;
}

.accounting-split > .cabinet-panel {
  margin: 0;
}

.accounting-filter-form {
  grid-template-columns: minmax(180px, 1fr) minmax(180px, 1fr) auto;
  align-items: end;
}

.accounting-filter-form .cabinet-form-actions {
  grid-column: auto;
  margin: 0;
}

.accounting-amount-income {
  color: #087b62;
  font-weight: 900;
  white-space: nowrap;
}

.accounting-amount-expense {
  color: #c83d3d;
  font-weight: 900;
  white-space: nowrap;
}

.accounting-reversal summary {
  color: var(--cabinet-teal-dark);
  cursor: pointer;
  font-weight: 900;
}

.accounting-reversal form {
  display: grid;
  gap: 8px;
  min-width: 210px;
  margin-top: 8px;
}

.accounting-reversal input {
  min-height: 38px;
  border: 1px solid var(--cabinet-line);
  border-radius: 8px;
  padding: 8px 10px;
  font: inherit;
}

.accounting-reversal button {
  min-height: 36px;
  border: 0;
  border-radius: 8px;
  background: #c83d3d;
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-weight: 900;
}

.accounting-adjustment-list {
  display: grid;
  gap: 10px;
}

.accounting-adjustment-list article {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid var(--cabinet-line);
  border-radius: 10px;
  padding: 14px;
}

.accounting-adjustment-list article span,
.accounting-adjustment-list article p,
.cabinet-data-table td small {
  display: block;
  margin: 4px 0 0;
  color: var(--cabinet-muted);
}

@media (max-width: 900px) {
  .accounting-split {
    grid-template-columns: 1fr;
  }

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

  .accounting-filter-form .cabinet-form-actions {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .cabinet-section-tabs.accounting-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    overflow: visible;
  }

  .cabinet-section-tabs.accounting-tabs a {
    justify-content: center;
    white-space: normal;
    text-align: center;
  }

  .cabinet-section-tabs.accounting-tabs a:last-child {
    grid-column: 1 / -1;
  }
}

/* Stock product warehouse transfer dialog — stage 1.206 */
.cabinet-link-button{appearance:none;border:0;background:transparent;color:#004b63;cursor:pointer;font:inherit;font-weight:700;padding:0}.cabinet-dialog{width:min(720px,calc(100vw - 32px));max-height:calc(100dvh - 32px);overflow:auto;border:0;border-radius:24px;box-shadow:0 24px 80px rgb(4 37 48 / 28%);padding:28px}.cabinet-dialog::backdrop{background:rgb(4 37 48 / 58%);backdrop-filter:blur(4px)}.cabinet-dialog-head{align-items:flex-start;display:flex;gap:20px;justify-content:space-between;margin-bottom:24px}.cabinet-dialog-head p,.cabinet-dialog-head h2{margin:0}.cabinet-dialog-head p{color:#004b63;font-size:13px;font-weight:800;text-transform:uppercase}.cabinet-dialog-head span{color:#718087;display:block;margin-top:6px}.cabinet-dialog-close{align-items:center;background:#edf3f4;border:0;border-radius:50%;cursor:pointer;display:inline-flex;flex:0 0 42px;font-size:26px;height:42px;justify-content:center;line-height:1;width:42px}@media(max-width:600px){.cabinet-dialog{border-radius:18px;padding:20px}}
