.workspace.wp-shell {
  --wp-surface: #f0f5fc;
  --wp-white: #fff;
  --wp-text: #162a4d;
  --wp-muted: #506179;
  --wp-line: #dfe6ef;
  --wp-blue: #135eb4;
  --wp-blue-deep: #001f50;
  --wp-blue-soft: #e3efff;
  --blue: var(--wp-blue);
  --blue-2: #0e509b;
  grid-template-columns: 208px minmax(0, 1fr);
  background: var(--wp-surface);
  color: var(--wp-text);
}

.wp-shell :is(.wp-nav-item, .wp-app, .wp-admin-entry, .wp-path button, .wp-logout):focus-visible {
  outline: 2px solid var(--wp-blue);
  outline-offset: 2px;
}

.wp-shell .wp-sidebar {
  position: sticky;
  top: 0;
  align-self: start;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  gap: 25px;
  padding: 21px 13px;
  border-inline-end: 1px solid var(--wp-line);
  background: var(--wp-white);
}

.wp-shell .wp-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 5px;
}

.wp-shell .wp-mark {
  display: grid;
  flex: none;
  width: 37px;
  height: 37px;
  place-items: center;
}

.wp-shell .wp-mark img { display: block; width: 100%; height: 100%; object-fit: contain; }
.wp-shell :is(.wp-brand, .wp-user-copy) :is(strong, small) { display: block; }
.wp-shell .wp-brand strong { color: var(--wp-blue-deep); font-size: 16px; line-height: 1.25; }
.wp-shell .wp-brand small { margin-top: 2px; color: var(--wp-muted); font-size: 12px; }
.wp-shell .wp-nav { display: grid; gap: 5px; }

.wp-shell .wp-nav-item {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 8px 10px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--wp-muted);
  text-align: start;
  white-space: nowrap;
  font: inherit;
}

.wp-shell .wp-nav-item svg { width: 18px; height: 18px; flex: none; }
.wp-shell .wp-nav-item:hover { background: #f2f5fa; }
.wp-shell .wp-nav-item[aria-current="page"] { background: var(--wp-blue-soft); color: var(--wp-blue); font-weight: 700; }
.wp-shell .wp-main { min-width: 0; }

.wp-shell .wp-top {
  position: sticky;
  z-index: 10;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 60px;
  gap: 12px;
  padding: 7px 28px;
  border-bottom: 1px solid var(--wp-line);
  background: var(--wp-white);
}

.wp-shell :is(.wp-path, .wp-user) { display: flex; align-items: center; gap: 8px; min-width: 0; }
.wp-shell .wp-path { flex-wrap: wrap; row-gap: 2px; color: var(--wp-muted); font-size: 13px; }
.wp-shell .wp-path strong { color: var(--wp-blue-deep); }
.wp-shell .wp-path svg { width: 13px; height: 13px; flex: none; }
.wp-shell .wp-path button { padding: 0; border: 0; background: none; color: var(--wp-blue); font: inherit; }
.wp-shell .wp-path button:hover { text-decoration: underline; }

.wp-shell .wp-avatar {
  display: grid;
  flex: none;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: var(--wp-blue-soft);
  color: var(--wp-blue);
}

.wp-shell .wp-avatar svg { width: 18px; height: 18px; }
.wp-shell .wp-user-copy { min-width: 0; }
.wp-shell .wp-user-copy strong { overflow: hidden; max-width: 19ch; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.wp-shell .wp-user-copy small { color: var(--wp-muted); white-space: nowrap; font-size: 11px; }
.wp-shell .wp-logout { display: grid; flex: none; width: 36px; height: 36px; place-items: center; padding: 0; border: 0; border-radius: 8px; background: transparent; color: var(--wp-muted); }
.wp-shell .wp-logout svg { width: 18px; height: 18px; }
.wp-shell .wp-logout:hover { background: var(--wp-blue-soft); color: var(--wp-blue); }
.wp-shell .wp-content { min-width: 0; padding: 26px 28px 36px; }
.wp-shell .wp-landing { display: grid; gap: 19px; }
.wp-shell .wp-heading h1 { margin: 0; font-size: clamp(23px, 3vw, 29px); font-weight: 720; line-height: 1.3; }
.wp-shell .wp-heading p { margin: 5px 0 0; color: var(--wp-muted); font-size: 14px; }

.wp-shell :is(.wp-desk, .wp-admin-list, .wp-overview-details) {
  min-width: 0;
  border: 1px solid var(--wp-line);
  border-radius: 13px;
  background: var(--wp-white);
}

.wp-shell .wp-desk { padding: 2px 19px; }
.wp-shell .wp-app-group { padding: 16px 0; }
.wp-shell .wp-app-group + .wp-app-group { border-top: 1px solid var(--wp-line); }
.wp-shell .wp-group-title { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.wp-shell .wp-group-title h2 { margin: 0; font-size: 15px; }
.wp-shell .wp-group-title > span { color: var(--wp-muted); font-size: 12px; white-space: nowrap; }

.wp-shell .wp-apps {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(106px, 1fr));
  gap: 5px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.wp-shell .wp-apps li { min-width: 0; }
.wp-shell .wp-app {
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 8px;
  width: 100%;
  height: 100%;
  min-height: 92px;
  padding: 8px 3px 5px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  color: var(--wp-text);
  text-align: center;
  font: inherit;
}

.wp-shell .wp-app:hover { border-color: #e8effc; background: #f3f7fe; }
.wp-shell .wp-app > span:last-child { max-width: 100%; overflow-wrap: anywhere; font-size: 13px; font-weight: 600; }
.wp-shell .wp-app-icon {
  --wp-tile-fill: #ecf1f9;
  --wp-tile-ink: #355582;
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border: 1px solid var(--wp-line);
  border-color: color-mix(in srgb, var(--wp-tile-fill) 83%, #293b58);
  border-radius: 14px;
  background: var(--wp-tile-fill);
  color: var(--wp-tile-ink);
}

.wp-shell .wp-app-icon svg { width: 25px; height: 25px; stroke-width: 1.75; }
.wp-shell .wp-tone-erp { --wp-tile-fill: var(--wp-blue); --wp-tile-ink: #fff; }
.wp-shell .wp-tone-teal { --wp-tile-fill: #a9d5cd; --wp-tile-ink: #1b5149; }
.wp-shell .wp-tone-violet { --wp-tile-fill: #c9bdeb; --wp-tile-ink: #513e7e; }
.wp-shell .wp-tone-green { --wp-tile-fill: #abd2e5; --wp-tile-ink: #234e66; }
.wp-shell .wp-tone-amber { --wp-tile-fill: #e9b6c8; --wp-tile-ink: #78394e; }
.wp-shell .wp-tone-plain { --wp-tile-fill: #c2d0e5; --wp-tile-ink: #344e6f; }
.wp-shell .wp-tone-wallet { --wp-tile-fill: #b8d9d3; --wp-tile-ink: #28554f; }

.wp-shell .wp-admin-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 22px;
  padding: 2px 18px;
}

.wp-shell .wp-admin-entry {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 71px;
  padding: 8px 0;
  border: 0;
  border-bottom: 1px solid var(--wp-line);
  background: transparent;
  color: var(--wp-text);
  text-align: start;
  font: inherit;
}

.wp-shell .wp-admin-entry:nth-last-child(-n+2) { border-bottom: 0; }
.wp-shell .wp-admin-entry:hover { color: var(--wp-blue); }
.wp-shell .wp-admin-icon {
  display: grid;
  flex: none;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 9px;
  background: var(--wp-blue-soft);
  color: var(--wp-blue);
}

.wp-shell .wp-admin-icon svg { width: 19px; height: 19px; }
.wp-shell .wp-admin-entry-text { flex: 1; min-width: 0; }
.wp-shell .wp-admin-entry-text :is(strong, small) { display: block; overflow-wrap: anywhere; }
.wp-shell .wp-admin-entry-text strong { font-size: 14px; }
.wp-shell .wp-admin-entry-text small { margin-top: 2px; color: var(--wp-muted); font-size: 12px; }
.wp-shell .wp-entry-arrow { width: 15px; height: 15px; flex: none; color: var(--wp-muted); }
.wp-shell .wp-overview-details { padding: 13px 18px; }
.wp-shell .wp-overview-details summary { cursor: pointer; color: var(--wp-muted); font-size: 13px; font-weight: 650; }
.wp-shell .wp-overview-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; margin-top: 13px; }
.wp-shell .wp-overview-stats > div { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 9px; border-radius: 7px; background: var(--wp-surface); font-size: 12px; }
.wp-shell .wp-overview-stats strong { margin-inline-start: auto; color: var(--wp-text); font-size: 15px; font-variant-numeric: tabular-nums; }
.wp-shell .wp-overview-stats svg { width: 15px; height: 15px; flex: none; color: var(--wp-blue); }
.wp-shell .wp-audit-summary { margin-top: 10px; }
.wp-shell .wp-permission-note { line-height: 1.6; }

@media (max-width: 880px) {
  .workspace.wp-shell { grid-template-columns: 163px minmax(0, 1fr); }
  .wp-shell :is(.wp-top, .wp-content) { padding-inline: 16px; }
}

@media (max-width: 680px) {
  .workspace.wp-shell { grid-template-columns: minmax(0, 1fr); }
  .wp-shell .wp-sidebar {
    position: static;
    min-height: 0;
    gap: 9px;
    padding: 10px 12px 7px;
    border-inline-end: 0;
    border-bottom: 1px solid var(--wp-line);
  }
  .wp-shell .wp-nav { display: flex; flex-wrap: wrap; gap: 3px; }
  .wp-shell .wp-nav-item { gap: 5px; min-height: 44px; padding: 5px 7px; font-size: 12px; }
  .wp-shell .wp-nav-item svg { width: 15px; height: 15px; }
  .wp-shell .wp-top { min-height: 48px; }
  .wp-shell .wp-content { padding: 16px 12px 30px; }
  .wp-shell .wp-landing { gap: 14px; }
  .wp-shell .wp-desk { padding-inline: 10px; }
  .wp-shell .wp-apps { grid-template-columns: repeat(auto-fill, minmax(74px, 1fr)); }
  .wp-shell .wp-app { min-height: 80px; }
  .wp-shell .wp-app > span:last-child { font-size: 12px; }
  .wp-shell .wp-app-icon { width: 47px; height: 47px; border-radius: 12px; }
  .wp-shell .wp-app-icon svg { width: 22px; height: 22px; }
  .wp-shell .wp-admin-list { grid-template-columns: minmax(0, 1fr); padding-inline: 12px; }
  .wp-shell .wp-admin-entry:nth-last-child(2) { border-bottom: 1px solid var(--wp-line); }
  .wp-shell .wp-overview-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wp-shell .wp-logout { width: 44px; height: 44px; }
}

@media (max-width: 390px) {
  .wp-shell .wp-user { gap: 4px; }
  .wp-shell .wp-user-copy strong { max-width: 8ch; }
  .wp-shell .wp-avatar { width: 28px; height: 28px; }
  .wp-shell .wp-apps { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
