@font-face {
  font-family: "Wix Madefor Display";
  src: url("./fonts/wix-400.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Wix Madefor Display";
  src: url("./fonts/wix-600.woff2") format("woff2");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Wix Madefor Display";
  src: url("./fonts/wix-700.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}
:root {
  color-scheme: light;
  --ink: #222;
  --muted: #707695;
  --border: #d0d3e5;
  --divider: #e1e5ed;
  --paper: #fff;
  --bg: #f2f4f6;
  --primary: #222;
  --accent: #2bc359;
  --brand-gradient: linear-gradient(90deg, #26c756, #4ba2e4);
  font: 400 16px/1.5 "Wix Madefor Display", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--paper);
}
* { box-sizing: border-box; }
body { margin: 0; }
[hidden] { display: none !important; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; }
button:focus-visible, a:focus-visible {
  outline: 2px solid #3189bd;
  outline-offset: 3px;
}
h1, h2, p { margin: 0; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 10px 20px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: #fff;
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
}
.btn-primary { color: #fff; background: var(--primary); }
.btn-primary:hover:not(:disabled) { color: #fff; background: var(--brand-gradient); }
.btn-outline { border-color: var(--muted); }
.btn-outline:hover:not(:disabled) {
  color: #188c3c;
  border-color: transparent;
  background: linear-gradient(90deg, #e2ffeb, #e7f4ff) padding-box, var(--brand-gradient) border-box;
}
.btn:active:not(:disabled) { filter: brightness(.95); }
.btn:disabled { color: var(--muted); background: var(--bg); border-color: transparent; }
.txt-btn { padding: 4px 0; font-weight: 600; background: transparent; border: 0; }
.txt-btn:hover:not(:disabled) { color: #198e42; }
.muted { color: var(--muted); }
.ui-icon { display: inline-block; width: 24px; height: 24px; fill: none; flex: none; }
.shell { --sidebar-width: 256px; min-height: 100vh; }
.shell[data-collapsed=true] { --sidebar-width: 92px; }
.sidebar {
  position: fixed;
  z-index: 12;
  inset: 0 auto 0 0;
  width: var(--sidebar-width);
  padding-top: 28px;
  border-right: 1px solid var(--divider);
  background: var(--paper);
}
.brand-link, .menu, .icon-button, .collapse-nav, .account-button, .account-menu button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  background: transparent;
}
.brand-link { gap: 10px; white-space: nowrap; }
.brand-name { font-size: 23px; line-height: 36px; font-weight: 700; letter-spacing: -.035em; }
.sidebar > .brand-link { height: 36px; margin: 0 0 40px 24px; }
.collapse-nav {
  position: absolute;
  top: 32px;
  right: -12px;
  width: 24px;
  height: 24px;
  color: var(--muted);
  background: var(--paper);
  box-shadow: 0 2px 8px rgba(112,118,149,.24);
  border-radius: 8px;
}
.collapse-nav .ui-icon, .account-button .ui-icon:last-child { width: 16px; height: 16px; }
.collapse-nav:hover { color: var(--ink); }
.sidebar nav { padding: 4px 24px 32px 32px; display: grid; max-height: calc(100dvh - 104px); overflow-y: auto; }
.menu {
  justify-content: flex-start;
  gap: 12px;
  min-height: 54px;
  font-size: 16px;
  line-height: 24px;
  font-weight: 400;
  white-space: nowrap;
  color: #000;
}
.menu .ui-icon { color: #d9d9d9; }
.menu:hover .ui-icon, .menu:focus-visible .ui-icon { color: #888; }
.menu[aria-current=page] { font-weight: 700; }
.menu[aria-current=page] .ui-icon { color: #222; }
.menu .group-chevron { width: 16px; height: 16px; margin-left: auto; margin-right: 6px; color: var(--muted); }
#mini-settings-toggle[aria-expanded=true] .group-chevron { transform: rotate(180deg); }
#mini-settings-toggle.contains-current { font-weight: 600; }
#mini-settings-toggle.contains-current > .ui-icon:first-child { color: var(--ink); }
.submenu { display: grid; margin: 0 0 8px 11px; padding-left: 12px; border-left: 1px solid var(--divider); }
.submenu .menu { min-height: 40px; padding: 0 10px; border-radius: 7px; font-size: 14px; gap: 9px; color: #454b56; }
.submenu .ui-icon { width: 16px; height: 16px; color: #91959d; }
.submenu .menu:hover { background: var(--bg); }
.submenu .menu[aria-current=page] { background: #edf8f1; color: #187143; font-weight: 600; }
.submenu .menu[aria-current=page] .ui-icon { color: inherit; }
.workspace { margin-left: var(--sidebar-width); min-width: 0; }
.topbar {
  display: flex;
  justify-content: flex-end;
  max-width: 1600px;
  height: 84px;
  padding: 24px 40px 12px;
}
.context-bar, .organization, .account-button { display: flex; align-items: center; }
.context-bar { gap: 40px; }
.organization, .account-button { gap: 8px; font-weight: 600; }
.account-button { height: 40px; }
.account-button:hover { color: #51566f; }
.account-button[aria-expanded=true] .ui-icon:last-child { transform: rotate(180deg); }
.account-wrap { position: relative; }
.account-menu {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  min-width: 160px;
  padding: 4px;
  z-index: 9;
  background: var(--paper);
  border-radius: 12px;
  box-shadow: 0 4px 20px #2b31461f, 0 0 0 1px #e1e5ed;
}
.account-menu button { justify-content: flex-start; gap: 12px; width: 100%; padding: 10px 12px; border-radius: 8px; }
.account-menu .ui-icon { width: 20px; height: 20px; }
.account-menu button:hover { background: var(--bg); }
main { width: min(100%, 1600px); padding: 20px 40px 60px; }
.mobile-bar, .close-nav, .nav-shade { display: none; }
@media (min-width: 768px) {
  .shell[data-collapsed=true] .sidebar > .brand-link { margin-left: 28px; }
  .shell[data-collapsed=true] .sidebar :is(.brand-name, .menu span) { display: none; }
  .shell[data-collapsed=true] .menu .group-chevron { display: none; }
  .shell[data-collapsed=true] .collapse-nav svg { transform: rotate(180deg); }
  .shell[data-collapsed=true] .sidebar nav { padding-inline: 22px; }
  .shell[data-collapsed=true] .menu { justify-content: center; }
}
@media (max-width: 767px) {
  .workspace { margin: 0; }
  .topbar { height: auto; padding: 0; display: block; }
  .context-bar { justify-content: flex-end; height: 40px; gap: 24px; padding: 0 16px; background: var(--bg); }
  .context-bar .ui-icon { width: 18px; height: 18px; }
  .organization, .account-button { font-size: 14px; }
  .mobile-bar { display: grid; grid-template-columns: 40px minmax(0,1fr) 40px; align-items: center; height: 64px; padding: 8px 16px; border-bottom: 1px solid var(--divider); }
  .mobile-bar .brand-link { justify-self: center; }
  .mobile-bar .brand-link img { width: 30px; height: 30px; }
  .mobile-bar .brand-name { font-size: 19px; }
  .icon-button { width: 40px; height: 40px; border-radius: 8px; }
  .sidebar { display: none; width: min(300px, 84vw); padding-top: 24px; overflow-y: auto; }
  .shell[data-drawer=true] .sidebar { display: block; }
  .close-nav { display: flex; position: absolute; right: 12px; top: 22px; }
  .collapse-nav { display: none; }
  .nav-shade { display: block; z-index: 11; position: fixed; inset: 0; background: rgba(112,118,149,.5); }
  body:has(.shell[data-drawer=true]) { overflow: hidden; }
  main { padding: 24px 20px 40px; }
}
