.admin-toolbar-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 42px;
  padding: 0 13px;
  border: 1px solid #cbd7f5;
  border-radius: 8px;
  background: #eaf0ff;
  color: #2549b2;
  font: 700 13px Inter, "DM Sans", sans-serif;
  white-space: nowrap;
  cursor: pointer;
  transition: background .18s ease, transform .18s ease;
}
.admin-toolbar-button:hover { background: #dce7ff; transform: translateY(-1px); }
.admin-toolbar-button[hidden] { display: none; }
.admin-toolbar-button[hidden] + .toolbar-divider { display: none; }
.admin-workspace,
.admin-workspace * { box-sizing: border-box; }
.browser-frame { position: relative; container-type: inline-size; }
.admin-workspace {
  position: absolute;
  z-index: 2;
  inset: 0;
  overflow: hidden;
  background: #f4f7fc;
  color: #18253d;
  font: 14px/1.5 Inter, "DM Sans", system-ui, sans-serif;
}
.admin-workspace[hidden] { display: none; }
.showcase-app.has-open-admin .storefront,
.showcase-app.has-open-admin .store-widget-area { visibility: hidden; }
.admin-shell { display: grid; grid-template-columns: 280px minmax(0, 1fr); width: 100%; height: 100%; min-height: 0; }
.admin-sidebar { display: flex; flex-direction: column; min-height: 0; padding: 30px 17px 20px 78px; background: #111e34; color: #b8c8e1; }
.admin-brand { display: flex; align-items: center; gap: 11px; padding: 0 12px 38px; color: #fff; font-size: 17px; font-weight: 800; letter-spacing: -.035em; white-space: nowrap; }
.admin-brand b { color: #89a8ff; }
.admin-brand small { display: block; margin-top: 2px; color: #8ea1bf; font-size: 10px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.admin-brand-icon { display: grid; flex: 0 0 37px; place-items: center; width: 37px; height: 37px; border-radius: 10px; background: #315cf5; font-size: 18px; }
.admin-menu-trigger, .admin-menu-close, .admin-menu-backdrop { display: none; }
.admin-nav { display: grid; gap: 5px; }
.admin-nav button { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 43px; padding: 0 13px; border: 0; border-radius: 9px; background: transparent; color: #b3c2da; font: 600 13px Inter, "DM Sans", sans-serif; text-align: left; cursor: pointer; transition: background .16s ease, color .16s ease; }
.admin-nav button i { width: 18px; color: #8ca1c1; font-size: 15px; text-align: center; }
.admin-nav button:hover { background: #20324f; color: #fff; }
.admin-nav button.is-active { background: #294781; color: #fff; }
.admin-nav button.is-active i { color: #b9ccff; }
.admin-sidebar-foot { display: grid; gap: 11px; margin-top: auto; padding: 17px 12px 0; border-top: 1px solid #2b3c57; color: #9caeca; font-size: 11px; }
.admin-sidebar-foot > span { display: flex; align-items: center; gap: 8px; }
.admin-demo-dot { width: 7px; height: 7px; border-radius: 50%; background: #78d3b0; box-shadow: 0 0 0 3px #78d3b026; }
.admin-sidebar-foot button { display: inline-flex; align-items: center; gap: 6px; width: fit-content; padding: 0; border: 0; background: transparent; color: #c2d2ed; font-size: 11px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.admin-main { min-width: 0; min-height: 0; overflow: auto; overscroll-behavior: contain; }
.admin-topbar { position: sticky; z-index: 1; top: 0; display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 88px; padding: 17px clamp(24px, 4vw, 56px); border-bottom: 1px solid #e4eaf4; background: #fff; }
.admin-topbar > div > span { color: #8290a8; font-size: 10px; font-weight: 750; letter-spacing: .12em; }
.admin-topbar h1 { margin: 4px 0 0; color: #18253d; font-size: 23px; font-weight: 750; letter-spacing: -.04em; line-height: 1.2; }
.admin-content { width: 100%; padding: 38px clamp(24px, 4vw, 56px) 72px; }
.admin-section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 26px; }
.admin-overline { color: #4669c0; font-size: 10px; font-weight: 800; letter-spacing: .13em; }
.admin-section-heading h2 { margin: 5px 0 3px; color: #15233c; font-size: clamp(27px, 2.6vw, 34px); font-weight: 760; letter-spacing: -.05em; line-height: 1.2; }
.admin-section-heading p { margin: 0; color: #738199; font-size: 13px; }
.admin-period { align-self: center; padding: 7px 11px; border: 1px solid #dce6f4; border-radius: 20px; background: #fff; color: #60718d; font-size: 11px; font-weight: 650; white-space: nowrap; }
.admin-kpi-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.admin-kpi { display: flex; flex-direction: column; align-items: flex-start; min-height: 170px; padding: 20px; border: 1px solid #e2e9f3; border-radius: 15px; background: #fff; box-shadow: 0 7px 20px #172a4e08; }
.admin-kpi-icon { display: grid; place-items: center; width: 36px; height: 36px; margin-bottom: 13px; border-radius: 10px; font-size: 16px; }
.admin-kpi-icon.is-blue { background: #e9efff; color: #315cf5; }
.admin-kpi-icon.is-violet { background: #f0ecff; color: #7553db; }
.admin-kpi-icon.is-cyan { background: #e4f6f5; color: #148c8f; }
.admin-kpi > span:nth-child(2) { color: #6c7b91; font-size: 12px; font-weight: 650; }
.admin-kpi strong { margin: 4px 0 2px; color: #13213a; font-size: clamp(25px, 2.4vw, 34px); font-weight: 780; letter-spacing: -.055em; line-height: 1.18; }
.admin-kpi small { color: #8694a9; font-size: 11px; }
.admin-dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(260px, 1fr); align-items: start; gap: 16px; margin-top: 20px; }
.admin-card { min-width: 0; overflow: hidden; border: 1px solid #e2e9f3; border-radius: 15px; background: #fff; box-shadow: 0 7px 20px #172a4e08; }
.admin-card-heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; min-height: 62px; padding: 15px 19px; border-bottom: 1px solid #edf1f6; }
.admin-card-heading h3 { margin: 0; color: #24334e; font-size: 15px; font-weight: 750; }
.admin-card-heading h3 span { display: inline-grid; place-items: center; min-width: 22px; height: 22px; margin-left: 5px; padding: 0 5px; border-radius: 7px; background: #edf2fc; color: #47639b; font-size: 11px; }
.admin-card-heading button { border: 0; background: none; color: #3157c4; font-size: 11px; font-weight: 750; white-space: nowrap; cursor: pointer; }
.admin-card-heading button i { margin-left: 4px; }
.admin-table-wrap { width: 100%; overflow: auto; }
.admin-table { width: 100%; border-collapse: collapse; color: #34445d; font-size: 12px; white-space: nowrap; }
.admin-table th { padding: 13px 18px; background: #f8faff; color: #7887a0; font-size: 10px; font-weight: 800; letter-spacing: .06em; text-align: left; text-transform: uppercase; }
.admin-table td { padding: 15px 18px; border-top: 1px solid #edf1f6; font-weight: 570; }
.admin-table tbody tr:hover { background: #fbfcff; }
.admin-table.is-compact th { background: #fff; }
.admin-table.is-compact td { padding-block: 14px; }
.admin-status { display: inline-flex; padding: 4px 8px; border-radius: 20px; font-size: 10px; font-weight: 750; }
.admin-status--success { background: #e8f7ee; color: #237747; }
.admin-status--pending { background: #fff3df; color: #956315; }
.admin-status--muted { background: #eef1f5; color: #69778b; }
.admin-stock { color: #237747; font-weight: 720; }
.admin-stock.is-low { color: #bd6a22; }
.admin-row-actions { display: flex; gap: 7px; }
.admin-row-actions button { padding: 6px 8px; border: 1px solid #dce5f2; border-radius: 6px; background: #fff; color: #3658a2; font-size: 11px; font-weight: 700; cursor: pointer; }
.admin-row-actions button:hover { background: #f1f5ff; }
.admin-row-actions button.is-danger { color: #aa4d58; }
.admin-row-actions button.is-danger:hover { border-color: #efc7cd; background: #fff1f3; }
.admin-low-stock { display: flex; align-items: center; gap: 11px; min-height: 70px; padding: 11px 19px; border-bottom: 1px solid #edf1f6; }
.admin-low-stock:last-child { border-bottom: 0; }
.admin-low-stock > span { display: grid; flex: 0 0 32px; place-items: center; width: 32px; height: 32px; border-radius: 8px; background: #fff1df; color: #ad7125; }
.admin-low-stock > div { min-width: 0; flex: 1; }
.admin-low-stock strong, .admin-low-stock small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-low-stock strong { color: #34445d; font-size: 12px; }
.admin-low-stock small { margin-top: 2px; color: #8b97a8; font-size: 10px; }
.admin-low-stock b { color: #b46d2b; font-size: 11px; white-space: nowrap; }
.admin-empty { padding: 22px 18px; color: #8290a5; font-size: 12px; }
.admin-button-primary { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 0 15px; border: 1px solid #315cf5; border-radius: 8px; background: #315cf5; color: #fff; font: 700 12px Inter, "DM Sans", sans-serif; white-space: nowrap; cursor: pointer; }
.admin-button-primary:hover { background: #2449d0; }
.admin-button-quiet { min-height: 40px; padding: 0 14px; border: 1px solid #d9e2ef; border-radius: 8px; background: #fff; color: #435672; font: 700 12px Inter, "DM Sans", sans-serif; cursor: pointer; }
.admin-button-quiet:hover { background: #f4f7fb; }
.admin-editor { width: min(440px, calc(100vw - 24px)); max-height: calc(100dvh - 32px); padding: 0; border: 1px solid #dce5f2; border-radius: 16px; box-shadow: 0 25px 80px #06163066; color: #1a2942; font: 14px/1.5 Inter, "DM Sans", sans-serif; }
.admin-editor::backdrop { background: #0b1836ad; backdrop-filter: blur(4px); }
.admin-editor form { padding: 23px; }
.admin-editor-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 19px; }
.admin-editor-heading h2 { margin: 0; font-size: 21px; font-weight: 750; letter-spacing: -.035em; }
.admin-editor-heading button { width: 32px; height: 32px; border: 1px solid #dce5f2; border-radius: 50%; background: #fff; color: #65748e; cursor: pointer; }
.admin-editor-fields { display: grid; gap: 13px; }
.admin-editor-fields label { display: grid; gap: 6px; color: #465774; font-size: 12px; font-weight: 700; }
.admin-editor-fields input, .admin-editor-fields select { width: 100%; min-height: 42px; padding: 0 11px; border: 1px solid #d5dfed; border-radius: 8px; background: #fafcff; color: #1e2e49; font: 13px Inter, "DM Sans", sans-serif; }
.admin-editor-fields p { margin: 0; color: #50617a; font-size: 13px; }
.admin-editor-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 24px; }
.admin-editor.is-delete .admin-button-primary { border-color: #bb4c5a; background: #bb4c5a; }
.admin-workspace :is(button, input, select):focus-visible, .admin-toolbar-button:focus-visible { outline: 3px solid #8ba9ff; outline-offset: 2px; }
.showcase-app:has(.admin-workspace.is-menu-open) .preset-rail { opacity: 0; pointer-events: none; }
@container (max-width: 1120px) {
  .admin-shell { display: block; }
  .admin-main { width: 100%; height: 100%; }
  .admin-topbar { justify-content: flex-start; gap: 12px; }
  .admin-sidebar { position: absolute; z-index: 4; inset: 0 auto 0 0; width: min(300px, calc(100% - 52px)); padding: 24px 18px 20px; transform: translateX(-105%); opacity: 0; visibility: hidden; overflow-y: auto; box-shadow: 14px 0 36px #0b183640; transition: transform .3s cubic-bezier(.2,.8,.2,1), opacity .25s ease, visibility .3s; }
  .admin-workspace.is-menu-open .admin-sidebar { transform: translateX(0); opacity: 1; visibility: visible; }
  .admin-brand { gap: 9px; padding: 0 0 28px; font-size: 15px; }
  .admin-brand-icon { width: 34px; height: 34px; flex-basis: 34px; font-size: 16px; }
  .admin-menu-trigger, .admin-menu-close { display: grid; flex: none; place-items: center; width: 40px; height: 40px; padding: 0; border: 1px solid #dce5f2; border-radius: 9px; background: #f7f9fd; color: #294781; font-size: 17px; cursor: pointer; }
  .admin-menu-close { width: 34px; height: 34px; margin-left: auto; border-color: #ffffff35; background: #ffffff12; color: #fff; font-size: 15px; }
  .admin-menu-backdrop { position: absolute; z-index: 3; inset: 0; display: block; background: #0b183680; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .26s ease, visibility .26s; }
  .admin-workspace.is-menu-open .admin-menu-backdrop { opacity: 1; visibility: visible; pointer-events: auto; }
  .admin-dashboard-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .admin-toolbar-button { width: 38px; min-width: 38px; height: 38px; padding: 0; }
  .admin-toolbar-button span { display: none; }
  .floating-toolbar:has(.admin-toolbar-button) { gap: 4px; }
}
@container (max-width: 760px) {
  .admin-topbar { min-height: 72px; padding: 12px 17px; }
  .admin-topbar > div > span { font-size: 9px; }
  .admin-topbar h1 { font-size: 20px; }
  .admin-content { padding: 25px 16px 56px; }
  .admin-section-heading { align-items: flex-start; flex-wrap: wrap; gap: 13px; }
  .admin-section-heading h2 { font-size: 27px; }
  .admin-kpi-grid { grid-template-columns: 1fr; gap: 9px; }
  .admin-kpi { min-height: 118px; padding: 14px 16px; }
  .admin-kpi-icon { width: 30px; height: 30px; margin-bottom: 7px; font-size: 13px; }
  .admin-kpi strong { font-size: 27px; }
}
@media (max-width: 380px) {
  .admin-toolbar-button { width: 36px; min-width: 36px; }
  .floating-toolbar:has(.admin-toolbar-button) .toolbar-divider { display: none; }
  .floating-toolbar:has(.admin-toolbar-button) .device-button span { display: none; }
}
@media (max-width: 600px) {
  .admin-toolbar-button { width: auto; min-width: 0; padding-inline: 14px; }
  .admin-toolbar-button span { display: inline; }
}
@media (prefers-reduced-motion: reduce) {
  .admin-toolbar-button, .admin-nav button, .admin-sidebar, .admin-menu-backdrop { transition: none; }
}
