@font-face {
  font-family: Outfit;
  src: url("fonts/outfit-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: Outfit;
  src: url("fonts/outfit-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: Outfit;
  src: url("fonts/outfit-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: Outfit;
  src: url("fonts/outfit-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #f2f3fc;
  --white: #ffffff;
  --ink: #182040;
  --muted: #5e6682;
  --line: #dfe3f3;
  --cobalt: #5346db;
  --cobalt-soft: #ecebff;
  --coral: #e85264;
  --green: #168b68;
  --amber: #9a6210;
  --amber-soft: #fff0cb;
  --red: #c63149;
  --red-soft: #fff0f2;
  --radius: 19px;
  --shadow: 0 16px 38px rgb(39 35 96 / 15%);
  --shadow-soft: 0 8px 19px rgb(43 46 100 / 11%);
  font-family: "Outfit", "Noto Sans Devanagari", "Nirmala UI", system-ui, sans-serif;
  background: var(--paper);
}

body {
  color: var(--ink);
  background:
    radial-gradient(circle at 80% -10%, #dedbff 0, transparent 27rem),
    linear-gradient(135deg, #f8f8ff, #eef1fc);
}

button, input, select, textarea { font-family: inherit; }
h1, h2, h3 { letter-spacing: -.025em; }
h1 { font-size: clamp(1.55rem, 3vw, 2.25rem); }
h2 { font-size: clamp(1.2rem, 2vw, 1.55rem); }
:focus-visible { outline: 3px solid #ffb52e; outline-offset: 3px; box-shadow: 0 0 0 6px rgb(255 181 46 / 22%); }

.btn {
  min-height: 44px;
  border: 0;
  border-radius: 14px;
  color: #273055;
  background: #fff;
  box-shadow: inset 0 -3px 0 #d7daeb, 0 4px 9px rgb(47 51 106 / 10%);
  font-weight: 700;
  transition: transform 160ms cubic-bezier(.2,.9,.35,1.25), filter 160ms ease, box-shadow 160ms ease;
}
.btn:not(:disabled):hover { filter: brightness(.985); transform: translateY(-1px); }
.btn:not(:disabled):active { transform: translateY(3px); box-shadow: inset 0 -1px 0 #d7daeb, 0 1px 3px rgb(47 51 106 / 12%); }
.btn--primary {
  color: #fff;
  background: linear-gradient(135deg, #6558ef, #4032bc);
  box-shadow: inset 0 -4px 0 #30238e, 0 7px 15px rgb(70 53 193 / 28%);
}
.btn--danger { background: linear-gradient(135deg, #ef6770, #c6324d); box-shadow: inset 0 -4px 0 #98263d, 0 6px 13px rgb(173 37 62 / 20%); }
.btn--ghost { background: #eef0fb; box-shadow: inset 0 -3px 0 #d6d9ec; }
.btn--icon { border-radius: 13px; }

input, select, textarea {
  border: 1px solid #d9dced;
  border-radius: 13px;
  background: #fff;
  box-shadow: inset 0 1px 1px rgb(38 40 88 / 4%);
}
input:focus, select:focus, textarea:focus { border-color: #7165ee; outline: 0; box-shadow: 0 0 0 3px #e2dfff; }
.notice { border: 0; border-radius: 16px; background: #fff; box-shadow: var(--shadow-soft); }
.status { gap: 7px; font-weight: 700; }
.status--live::before {
  width: 8px; height: 8px; border-radius: 50%; content: ""; background: currentColor;
  box-shadow: 0 0 0 0 currentColor; animation: live-pulse 1.8s infinite;
}
.status--pending.status--live { color: #9a6210; }
@keyframes live-pulse { 70% { box-shadow: 0 0 0 6px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }

.app {
  grid-template-columns: 104px minmax(0, 1fr);
  grid-template-rows: 76px minmax(0, 1fr);
  background: transparent;
}
.rail {
  z-index: 30;
  grid-row: 1 / -1;
  display: flex;
  min-height: 0;
  flex-direction: column;
  align-items: center;
  padding: 17px 10px;
  color: #e8e7ff;
  background:
    radial-gradient(circle at 0 100%, #4c3bc1, transparent 42%),
    linear-gradient(160deg, #19154e, #302383 57%, #241664);
  box-shadow: 7px 0 26px rgb(20 17 70 / 17%);
}
.rail__logo {
  display: grid; width: 62px; height: 62px; place-items: center; border-radius: 19px;
  background: #fff; box-shadow: 0 7px 17px rgb(0 0 0 / 20%);
}
.rail__logo img { width: 46px; height: 46px; }
.rail__areas { display: grid; width: 100%; gap: 13px; margin-top: 28px; }
.navarea {
  display: grid; min-height: 67px; place-items: center; gap: 3px; padding: 8px 3px;
  border: 0; border-radius: 17px; color: #cbc8f8; background: transparent; font: inherit; font-size: 12px; font-weight: 600;
  transition: transform 180ms cubic-bezier(.2,.9,.35,1.25), background 180ms ease, color 180ms ease;
}
.navarea svg { width: 23px; height: 23px; }
.navarea:hover { color: #fff; background: rgb(255 255 255 / 12%); }
.navarea.is-active { color: #282061; background: linear-gradient(145deg, #fff, #dedbff); box-shadow: 0 8px 17px rgb(0 0 0 / 19%); transform: translateY(-2px); }

.topbar {
  grid-column: 2;
  display: grid;
  grid-template-columns: minmax(160px, 1fr) minmax(240px, 520px) minmax(300px, auto);
  min-height: 76px;
  padding: 12px 25px;
  border: 0;
  background: rgb(250 251 255 / 88%);
  box-shadow: 0 3px 16px rgb(52 51 111 / 7%);
  backdrop-filter: blur(16px);
}
.topbar__brand, .topbar__centre, .topbar__tools { display: flex; min-width: 0; align-items: center; gap: 10px; }
.topbar__brand img { display: none; }
.topbar__title { font-size: 1.2rem; color: #242052; }
.topbar__centre { justify-content: center; }
.topbar__tools { justify-content: flex-end; }
.topbar__language { min-width: 44px; padding-inline: 11px; }
.topbar__language span { font-size: 13px; }
.topbar__publish { min-width: 105px; }
.segmented { border: 0; border-radius: 13px; background: #e8eaf6; box-shadow: inset 0 1px 2px rgb(45 49 106 / 9%); }
.segmented__btn { min-height: 42px; color: #555d7d; font-weight: 700; }
.segmented__btn.is-selected { color: #322685; border-radius: 11px; background: #fff; box-shadow: 0 3px 8px rgb(46 42 111 / 12%); }
.search { max-width: 340px; }
.search input { min-height: 43px; background: #fff; }
.search__results, .menu__panel { border: 0; border-radius: 17px; box-shadow: var(--shadow); }
.search__item { background: transparent; }
.search__item[aria-selected="true"], .search__item:hover { background: #f0eeff; }
.menu__panel { width: min(310px, calc(100vw - 28px)); padding: 8px; }
.menu__item { border-radius: 12px; font-weight: 600; }
.menu__item:hover, .menu__item:focus-visible { background: #eeecff; }
.menu__auto { color: #1b745c; background: #e7fbf4; }

.workspace {
  grid-column: 2;
  grid-template-columns: minmax(0, 1fr) 400px;
  background: transparent;
}
.shell-loading { z-index: 3; }
.workspace > .editor {
  border: 0; background: #fff; box-shadow: -10px 0 28px rgb(37 34 92 / 8%);
}
.editor { padding: 23px 21px 35px; }
.editor__photo, .summary-list { border: 0; background: #f7f8ff; box-shadow: inset 0 0 0 1px #e8eafa; }
.editor__actions > .btn--danger:not(:disabled) { background: #fff2f4; color: #b52f48; }

.workspace > .map > .map {
  background:
    radial-gradient(circle at 1px 1px, rgb(82 70 185 / 14%) 1px, transparent 1.2px) 0 0 / 22px 22px,
    linear-gradient(135deg, #f8f8ff, #eef1fe);
}
.map__node { border: 0; border-radius: 15px; box-shadow: 0 7px 18px rgb(35 38 92 / 14%); }
.map__node--root { background: linear-gradient(135deg, #5d50e7, #35238d); box-shadow: 0 9px 22px rgb(53 35 142 / 33%); }
.map__node--category { border-left: 5px solid #f26861; background: linear-gradient(110deg, #fff, #fff5f0); }
.map__node--group { border-left: 5px solid #27bda9; background: linear-gradient(110deg, #fff, #f0fffb); }
.map__node--product { border-left: 5px solid #6254e7; background: linear-gradient(110deg, #fff, #f5f3ff); }
.map__node--option { border: 1px solid #e3e2f2; background: #fff; }
.map__node.is-selected, .list__row.is-selected { border-color: #6659e8; box-shadow: 0 0 0 3px #cbc6ff, 0 8px 18px rgb(53 47 136 / 18%); }
.thumb { border-radius: 10px; }
.map__expander { border: 0; color: #42358f; box-shadow: 0 4px 10px rgb(37 35 91 / 20%); }
.map__controls { border: 0; border-radius: 15px; box-shadow: var(--shadow); }

.workspace > .list { background: #f6f7ff; padding: 13px; }
.workspace > .list > .list { overflow: hidden; border-radius: 18px; box-shadow: var(--shadow-soft); }
.list__row { margin-bottom: 1px; border-bottom: 1px solid #ececf6; background: #fff; }
.list__row.is-selected { background: #efedff; }
.list__row.is-selected::before { background: linear-gradient(#7669f6, #4638bd); }

.dialog { border-radius: 22px; box-shadow: 0 23px 65px rgb(23 19 74 / 33%); }
.dialog__title { border: 0; background: linear-gradient(100deg, #f4f2ff, #fff); }
.dialog__body section { border: 0; background: #f7f8ff; }
.dialog__actions { border: 0; background: #fff; }
.toast { border: 0; border-radius: 17px; color: #252050; background: #fff; box-shadow: var(--shadow); }

.auth {
  position: relative;
  background:
    radial-gradient(circle at 18% 18%, #8d80ff 0, transparent 24rem),
    radial-gradient(circle at 80% 80%, #ff8f70 0, transparent 26rem),
    linear-gradient(135deg, #161046, #312483 56%, #6a3a91);
}
.auth::before {
  position: absolute; inset: 0; content: "";
  background-image: radial-gradient(rgb(255 255 255 / 18%) 1px, transparent 1px);
  background-size: 26px 26px;
}
.auth__card {
  position: relative; border: 0; border-radius: 27px; box-shadow: 0 25px 70px rgb(12 9 51 / 34%);
}
.auth__card h1 { color: #30257d; }

.area {
  grid-column: 1 / -1;
  min-width: 0;
  min-height: 0;
  overflow: auto;
  padding: clamp(15px, 2.6vw, 32px);
  background:
    radial-gradient(circle at 94% 2%, #e5e1ff 0, transparent 25rem),
    linear-gradient(135deg, #f7f8ff, #eef1fb);
}
.area-head {
  --c1: #4b3ed1; --c2: #786cf1;
  display: flex; min-height: 135px; align-items: end; justify-content: space-between; gap: 20px;
  padding: clamp(20px, 4vw, 36px); border-radius: 25px; color: #fff;
  background: linear-gradient(135deg, var(--c1), var(--c2)); box-shadow: 0 16px 32px color-mix(in srgb, var(--c1) 30%, transparent);
}
.area-head--indigo { --c1: #31238d; --c2: #7164ee; }
.area-head--teal { --c1: #087d78; --c2: #24c1b1; }
.area-head--coral { --c1: #c43e5b; --c2: #f67e67; }
.area-head--saffron { --c1: #b45a16; --c2: #f1a638; }
.card, .tile { border: 0; border-radius: 20px; background: #fff; box-shadow: var(--shadow-soft); }
.card { padding: clamp(16px, 2vw, 23px); }
.tile { padding: 15px; }
.chips { display: flex; gap: 9px; min-width: 0; }
.chip { min-height: 40px; padding: 8px 14px; border: 0; border-radius: 999px; color: #535b78; background: #e9ebf7; font: inherit; font-weight: 700; }
.chip[aria-pressed="true"] { color: #fff; background: #5143d7; box-shadow: 0 4px 10px rgb(81 67 215 / 28%); }
.pill { display: inline-flex; min-height: 27px; align-items: center; padding: 4px 9px; border-radius: 99px; font-size: 12px; font-weight: 700; }
.pill--ok { color: #087254; background: #dbf8ed; } .pill--warn { color: #8b5605; background: #fff0c9; }
.pill--bad { color: #a62543; background: #ffe4e9; } .pill--info { color: #3c31a8; background: #e8e5ff; }
.pill--muted { color: #5d6680; background: #eceef5; }
.bigbtn { min-height: 58px; border: 0; border-radius: 17px; color: #fff; font: inherit; font-weight: 700; box-shadow: inset 0 -4px rgb(0 0 0 / 18%), 0 7px 14px rgb(32 34 86 / 18%); }
.bigbtn--in { background: linear-gradient(135deg, #13a97e, #04745b); } .bigbtn--out { background: linear-gradient(135deg, #ef6973, #c43250); }
.bigbtn--count { background: linear-gradient(135deg, #6357ed, #3a2cac); } .bigbtn--move { background: linear-gradient(135deg, #ef9b37, #c66a11); }
.bar { display: block; height: 8px; overflow: hidden; border-radius: 99px; background: #e5e6f4; }
.bar > i { display: block; width: calc(var(--value) * 100%); height: 100%; border-radius: inherit; background: linear-gradient(90deg, #44d2ba, #6557e9); transition: width 250ms cubic-bezier(.2,.9,.35,1.2); }
.switch { appearance: none; position: relative; width: 48px; min-width: 48px; height: 28px; margin: 0; border: 0; border-radius: 20px; background: #c7cada; cursor: pointer; }
.switch::after { position: absolute; top: 4px; left: 4px; width: 20px; height: 20px; border-radius: 50%; content: ""; background: #fff; box-shadow: 0 2px 4px rgb(0 0 0 / 20%); transition: transform 160ms ease; }
.switch:checked { background: #32b991; } .switch:checked::after { transform: translateX(20px); }
.drawer { display: grid; grid-template-rows: auto minmax(0, 1fr); overflow: hidden; border-radius: 22px 0 0 22px; background: #fff; box-shadow: -15px 0 40px rgb(34 31 89 / 18%); }
.drawer__head { padding: 19px 21px; background: linear-gradient(110deg, #f2f0ff, #fff); } .drawer__body { overflow: auto; padding: 20px; }
.empty { display: grid; min-height: 220px; place-items: center; padding: 26px; border-radius: 20px; color: #5d6680; background: #fff; box-shadow: var(--shadow-soft); text-align: center; }

.eyebrow { margin: 0; color: inherit; font-size: .76rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; opacity: .8; }
@keyframes ring-in { from { transform: scale(.7) rotate(-20deg); opacity: .3; } }

.celebrate-canvas { position: fixed; z-index: 300; inset: 0; pointer-events: none; }
.celebrate-toast {
  position: fixed; z-index: 301; top: max(20px, env(safe-area-inset-top)); left: 50%; display: flex; width: max-content; max-width: calc(100vw - 28px);
  align-items: center; gap: 10px; padding: 10px 16px 10px 10px; border-radius: 18px; color: #26204f; background: #fff; box-shadow: 0 15px 35px rgb(29 24 83 / 25%);
  transform: translateX(-50%); animation: toast-pop 260ms cubic-bezier(.2,1.4,.4,1);
  pointer-events: none;
}
.celebrate-toast.is-leaving { opacity: 0; transform: translate(-50%, -12px); transition: opacity 220ms, transform 220ms; }
.celebrate-toast__medal { width: 44px; height: 44px; } .celebrate-toast__medal svg { width: 100%; height: 100%; }
.celebrate-toast strong, .celebrate-toast small { display: block; } .celebrate-toast small { color: #66708b; }
@keyframes toast-pop { from { opacity: 0; transform: translate(-50%, -18px) scale(.8); } }

@media (max-width: 1100px) and (min-width: 821px) {
  .topbar { grid-template-columns: minmax(100px, 1fr) minmax(190px, 360px) auto; padding-inline: 17px; }
  .topbar__tools .status { display: none; }
}

@media (max-width: 820px) {
  .app { display: grid; grid-template-columns: 1fr; grid-template-rows: 59px minmax(0, 1fr) calc(69px + var(--safe-bottom)); }
  .rail { display: none; }
  .topbar {
    grid-column: 1; grid-row: 1; grid-template-columns: minmax(0, 1fr) auto auto auto; grid-template-areas: "brand undo redo tools";
    min-height: 59px; padding: calc(7px + var(--safe-top)) 10px 7px; border: 0; background: linear-gradient(105deg, #27206c, #513bb8); box-shadow: 0 4px 14px rgb(35 25 103 / 24%);
  }
  .topbar__brand { grid-area: brand; color: #fff; } .topbar__brand img { display: block; width: 34px; height: 34px; padding: 3px; border-radius: 10px; background: #fff; }
  .topbar__title { color: #fff; font-size: .96rem; }
  .topbar__centre { display: none; }
  .topbar__tools { display: contents; }
  .topbar__tools > .btn--icon:nth-child(1) { grid-area: undo; } .topbar__tools > .btn--icon:nth-child(2) { grid-area: redo; }
  .topbar__tools > .status, .topbar__publish { display: none; }
  .topbar__tools > .topbar__language { grid-area: tools; justify-self: end; min-width: 42px; height: 42px; padding: 0; color: #fff; background: rgb(255 255 255 / 15%); box-shadow: none; }
  .topbar__language span { display: none; }
  .topbar__tools > .menu { grid-area: tools; justify-self: end; margin-right: 46px; }
  .topbar .btn--icon { width: 42px; min-width: 42px; height: 42px; min-height: 42px; color: #fff; background: rgb(255 255 255 / 15%); box-shadow: none; }
  .menu__panel { top: calc(100% + 9px); }
  .workspace { grid-column: 1; grid-row: 2; display: grid; grid-template-columns: minmax(0, 1fr); }
  .workspace > .home, .workspace > .stock, .workspace > .studio, .workspace > .map, .workspace > .list { grid-column: 1; grid-row: 1; }
  .area { padding: 13px 12px calc(18px + var(--safe-bottom)); }
  .workspace > .list { padding: 0; }
  .workspace > .editor { border-radius: 0; }
  .bottombar {
    z-index: 40; grid-column: 1; grid-row: 3; display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)) !important; gap: 4px;
    min-height: calc(69px + var(--safe-bottom)); padding: 7px 8px calc(7px + var(--safe-bottom)); border: 0; background: #fff; box-shadow: 0 -5px 20px rgb(42 43 100 / 13%);
  }
  .bottombar .navarea { min-height: 53px; border-radius: 14px; color: #636a85; font-size: 10px; }
  .bottombar .navarea.is-active { color: #40339b; background: linear-gradient(145deg, #f0eeff, #e1ddff); box-shadow: 0 5px 13px rgb(62 49 163 / 20%); transform: translateY(-9px); }
  .drawer { position: fixed; z-index: 90; inset: auto 0 0; height: min(91dvh, 760px); border-radius: 22px 22px 0 0; }
  .chips { overflow-x: auto; padding-bottom: 3px; scrollbar-width: none; } .chips::-webkit-scrollbar { display: none; } .chip { flex: 0 0 auto; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition-duration: .01ms !important; }
}

/* Map/List and the search belong to Products only */
.app:not([data-area="products"]) .topbar__centre { visibility: hidden; }
@media (max-width: 820px) {
  .app:not([data-area="products"]) .topbar__centre { display: none; }
}

/* Every area has its own colour: the same one in the menu, its page header and its buttons */
.navarea { --area: linear-gradient(145deg, #8a6bff, #5a35e0); }
.navarea--products { --area: linear-gradient(145deg, #ff8a6b, #e0385f); }
.navarea--stock { --area: linear-gradient(145deg, #2fdcb6, #08857f); }
.navarea--website { --area: linear-gradient(145deg, #ffc33d, #ef7a1a); }
.navarea svg { width: 46px; height: 46px; padding: 11px; border-radius: 16px; color: #fff; background: var(--area); box-shadow: inset 0 -4px rgb(0 0 0 / 16%), inset 0 2px rgb(255 255 255 / 34%), 0 6px 14px rgb(10 5 50 / 26%); stroke-width: 2.3; transition: transform .2s cubic-bezier(.2, 1.5, .4, 1); }
.navarea:hover svg { transform: translateY(-3px) rotate(-4deg); }
.navarea.is-active svg { transform: scale(1.08); }
.rail .navarea { min-height: 92px; gap: 8px; font-size: .88rem; }
.topbar .status { letter-spacing: 0; white-space: nowrap; }
@media (max-width: 820px) {
  .navarea svg { width: 38px; height: 38px; padding: 9px; border-radius: 13px; }
  .bottombar__area { gap: 4px; padding-block: 6px 4px; font-size: .78rem; }
}
