body {
  margin: 0;
  background: light-dark(#f7f5ee, #121310);
  color: light-dark(#282922, #f4f1e8);
  font-family: Arial, Helvetica, sans-serif;
}

.shell {
  position: relative;
  display: grid;
  grid-template-columns: 208px minmax(0, 1fr);
  align-items: stretch;
  gap: 0;
  min-height: 100vh;
  padding: 0;
  box-sizing: border-box;
}

.shell[data-menu="closed"] { grid-template-columns: minmax(0, 1fr); }

.editor-top + .shell { min-height: calc(100vh - 66px); }

.page {
  background: light-dark(#f7f5ee, #141512);
  color: light-dark(#282922, #f4f1e8);
  border-radius: 0;
  min-width: 0;
  min-height: 100vh;
  box-shadow: none;
}

.sidebar {
  position: sticky;
  top: 0;
  align-self: start;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  height: 100vh;
  max-height: 100vh;
  overflow: hidden;
  background: light-dark(#fbf9f3, #1c1e19);
  color: light-dark(#25291e, #f4f1e8);
  border-right: 1px solid light-dark(#e6e1d5, #34362f);
  border-radius: 0;
  padding: 24px 16px 16px;
  box-shadow: none;
}

.editor-top + .shell .sidebar {
  top: 66px;
  height: calc(100vh - 66px);
  max-height: calc(100vh - 66px);
}

.side-top,
.brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 8px 30px;
}

.sidebar .brand {
  font-weight: 850;
  letter-spacing: -0.1em;
  font-size: 36px;
  line-height: 1;
  color: light-dark(#25291e, #f4f1e8);
  text-decoration: none;
}

.sidebar .dot,
.sidebar .brand span { color: light-dark(#72813d, #c5d48a); }

.sidebar .hide-menu,
.preview-icon {
  width: 30px;
  height: 30px;
  padding: 0;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  border: 1px solid light-dark(#e6e1d5, #34362f);
  background: light-dark(#fbf9f3, #1c1e19);
  color: light-dark(#25291e, #f4f1e8);
  cursor: pointer;
}

.sidebar-section-label {
  margin: 0 0 9px;
  padding: 0 9px;
  color: light-dark(#595c50, #b7b3a6);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.rail-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
}

.side-nav,
.rec-list,
.primary-nav,
.secondary-nav { display: grid; gap: 3px; }

.side-nav { margin-top: 0; }

.sidebar .side-link,
.sidebar .nav-item {
  text-align: left;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  min-height: 38px;
  padding: 0 10px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: light-dark(#25291e, #f4f1e8);
  font: 650 14px/1.2 system-ui, sans-serif;
  cursor: pointer;
}

.sidebar .side-link svg,
.sidebar .nav-item svg { color: inherit; flex: 0 0 auto; }

.sidebar .side-link:hover,
.sidebar .nav-item:hover {
  background: light-dark(#ecefdc, #2c2e27);
  color: light-dark(#25291e, #f4f1e8);
}

.sidebar .side-link.current,
.sidebar .nav-item.active,
.sidebar .side-link[aria-current="page"] {
  background: light-dark(#d7e1b0, #3e4a2c);
  color: light-dark(#25291e, #f4f1e8);
  box-shadow: inset 3px 0 0 light-dark(#72813d, #c5d48a);
}

.sidebar .side-link.current svg,
.sidebar .nav-item.active svg,
.sidebar .side-link[aria-current="page"] svg { color: inherit; }

.recs {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.sidebar-rule {
  height: 1px;
  margin: 20px 3px;
  background: light-dark(#e6e1d5, #34362f);
}

.recs h2 {
  margin: 0 0 9px;
  padding: 0 9px;
  color: light-dark(#595c50, #b7b3a6);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.sidebar .rec-list button,
.sidebar .rec-list a,
.secondary-nav button {
  text-align: left;
  text-decoration: none;
  display: block;
  width: 100%;
  padding: 9px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: light-dark(#25291e, #f4f1e8);
  font: 650 14px/1.3 system-ui, sans-serif;
  cursor: pointer;
}

.sidebar .rec-list button:hover,
.sidebar .rec-list a:hover,
.secondary-nav button:hover,
.settings-link:hover {
  background: light-dark(#ecefdc, #2c2e27);
  color: light-dark(#25291e, #f4f1e8);
}

.sidebar .rec-list a.current,
.sidebar .rec-list button.current,
.sidebar .rec-list a[aria-current="page"] {
  background: light-dark(#d7e1b0, #3e4a2c);
  color: light-dark(#25291e, #f4f1e8);
  font-weight: 650;
  box-shadow: inset 3px 0 0 light-dark(#72813d, #c5d48a);
}

.sidebar .rec-list button.soon {
  display: grid;
  justify-items: start;
  gap: 2px;
  color: light-dark(#595c50, #b7b3a6);
  cursor: default;
  opacity: 1;
}

.sidebar .rec-list button.soon:hover {
  background: transparent;
  color: light-dark(#595c50, #b7b3a6);
}

.sidebar .soon-tag {
  flex: 0 0 auto;
  color: light-dark(#595c50, #b7b3a6);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.legacy-tab { position: relative; }

.sidebar .new-tag {
  margin-left: auto;
  color: light-dark(#72813d, #c5d48a);
  letter-spacing: 0.08em;
  font-size: 8px;
  font-weight: 800;
}

.sidebar .side-link.current .new-tag { color: light-dark(#72813d, #c5d48a); }

.sidebar .legacy-i {
  position: absolute;
  top: 11px;
  left: 96px;
  z-index: 2;
  width: 16px;
  height: 16px;
  padding: 0;
  border: 1px solid currentColor;
  border-radius: 50%;
  background: light-dark(#fbf9f3, #1c1e19);
  color: light-dark(#25291e, #f4f1e8);
  font: 700 10px/14px Georgia, serif;
  cursor: pointer;
}

.sidebar .side-link.current ~ .legacy-i,
.legacy-tab:has(.side-link.current) .legacy-i {
  background: light-dark(#d7e1b0, #3e4a2c);
  color: light-dark(#25291e, #f4f1e8);
  border-color: light-dark(#25291e, #c5d48a);
}

.sidebar .legacy-tip {
  position: absolute;
  z-index: 6;
  left: 8px;
  top: calc(100% + 6px);
  width: min(220px, 70vw);
  margin: 0;
  padding: 8px 10px;
  border-radius: 10px;
  background: light-dark(#ecefdc, #2c2e27);
  color: light-dark(#25291e, #f4f1e8);
  font-size: 13px;
  line-height: 1.35;
}

.sidebar .legacy-tip[hidden] { display: none; }

.sidebar .legacy-i:hover + .legacy-tip,
.sidebar .legacy-i:focus-visible + .legacy-tip { display: block !important; }

.sidebar-bottom { margin-top: auto; padding-top: 16px; }

.help-card {
  color: #e2e3d8;
  background: #30362b;
  border: 1px solid #41483a;
  border-radius: 10px;
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 5px 6px;
  padding: 12px;
  font-size: 11px;
  font-weight: 600;
}

.help-card svg { color: #dff17b; }

.help-card button {
  color: #aeb3a1;
  background: none;
  border: 0;
  grid-column: 2;
  justify-self: start;
  padding: 0;
  font-size: 10px;
  cursor: pointer;
}

.help-card button span { color: #e3fa74; padding-left: 3px; }

.settings-link {
  color: #c8cabe;
  text-align: left;
  text-decoration: none;
  background: none;
  border: 0;
  border-radius: 7px;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin-top: 13px;
  padding: 10px 9px;
  font-size: 11px;
  display: flex;
  cursor: pointer;
}

.identity {
  flex-shrink: 0;
  margin-top: 0;
  padding: 14px 7px 0;
  border-top: 1px solid light-dark(#e6e1d5, #34362f);
}

.identity .who-open {
  display: flex;
  gap: 8px;
  align-items: center;
  width: 100%;
  padding: 4px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: inherit;
  text-align: left;
  font: inherit;
  cursor: pointer;
}

.identity .who-open:hover,
.identity .who-open[aria-expanded="true"] { background: light-dark(#ecefdc, #2c2e27); }

.who-open[aria-haspopup="menu"]::after {
  content: "";
  margin-left: auto;
  width: 6px;
  height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(-135deg);
}

.who-menu {
  position: fixed;
  z-index: 80;
  display: grid;
  gap: 2px;
  padding: 6px;
  border: 1px solid light-dark(#e6e1d5, #34362f);
  border-radius: 10px;
  background: light-dark(#fffefa, #1c1e19);
  box-shadow: 0 10px 28px rgba(37, 41, 30, 0.12);
}

.who-menu[hidden] { display: none !important; }

.who-menu a,
.who-menu button {
  display: block;
  width: 100%;
  padding: 8px 10px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: light-dark(#25291e, #f4f1e8);
  font: 650 14px/1.2 system-ui, sans-serif;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.who-menu a:hover,
.who-menu button:hover { background: light-dark(#ecefdc, #2c2e27); }

.identity .avatar {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #e6e9ce;
  color: #25291e;
  font-weight: 750;
  flex-shrink: 0;
}

.identity small { color: light-dark(#595c50, #b7b3a6); }

.who-bar {
  display: none;
  margin-left: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.who-bar .avatar {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #e6e9ce;
  color: #25291e;
  font-weight: 750;
}

.shell[data-menu="closed"] .bar .who-bar,
#portfolio-preview-2[data-view="public"] .page-toolbar .who-bar { display: inline-flex; }

.who-bar[hidden] { display: none !important; }

.sidebar-profile {
  border-top: 1px solid light-dark(#e6e1d5, #34362f);
  align-items: center;
  gap: 9px;
  margin-top: 10px;
  padding: 14px 3px 2px;
  display: flex;
}

.sidebar-avatar,
.avatar-mini {
  color: #fff;
  background: #a94c42;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 700;
}

.sidebar-avatar { width: 31px; height: 31px; font-size: 9px; flex: 0 0 auto; }

.sidebar-profile div:nth-child(2) { display: grid; gap: 3px; min-width: 0; }

.sidebar-profile strong { color: #f3f2e9; font-size: 10px; }

.sidebar-profile span { color: #aeb1a4; font-size: 9px; }

.editor-top {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 20px;
  height: 66px;
  padding: 0 30px;
  background: light-dark(rgba(255, 254, 250, 0.94), rgba(22, 23, 18, 0.94));
  border-bottom: 1px solid light-dark(#e9e6dc, #34362f);
  backdrop-filter: blur(14px);
}

.workspace-name {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.topbar-right,
.bar-end {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
}

.share-button,
.edit-page,
.add-work {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 8px;
  background: #34392d;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 10px 14px;
  cursor: pointer;
}

.share-button:hover,
.edit-page:hover,
.add-work:hover { background: #4b5340; }

.avatar-mini { width: 30px; height: 30px; font-size: 10px; }

.bar {
  min-height: 55px;
  height: 55px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 clamp(22px, 5vw, 72px);
  border-bottom: 1px solid light-dark(#ece9df, #34362f);
  background: light-dark(#fffefa, #1c1e19);
}

.page > header.bar {
  height: auto;
  min-height: 0;
  gap: 10px;
  padding: 22px clamp(18px, 4vw, 36px) 8px;
  border-bottom: 0;
  background: transparent;
}

.page > header.bar > .brand { display: none; }

.shell[data-menu="closed"] .page > header.bar {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr) auto auto;
  align-items: center;
  column-gap: 10px;
  row-gap: 2px;
}

.shell[data-menu="closed"] .page > header.bar > .menu-show {
  grid-column: 1;
  grid-row: 1 / span 2;
}

.shell[data-menu="closed"] .page > header.bar > .brand {
  display: block;
  grid-column: 2;
  grid-row: 1;
  justify-self: start;
  font-size: 24px;
  font-weight: 850;
  letter-spacing: -0.09em;
  line-height: 0.9;
  color: light-dark(#25291e, #f4f1e8);
}

.shell[data-menu="closed"] .page > header.bar > .quiet {
  grid-column: 2;
  grid-row: 2;
  justify-self: start;
}

.shell[data-menu="closed"] .page > header.bar > .artsee-theme {
  grid-column: 4;
  grid-row: 1 / span 2;
  margin-left: 0;
}

.shell[data-menu="closed"] .page > header.bar > .who-bar {
  grid-column: 5;
  grid-row: 1 / span 2;
}

.page > header.bar .quiet {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: light-dark(#25291e, #f4f1e8);
}

.page > header.bar .who-bar { display: inline-flex; }

.page > header.bar .who-bar .avatar {
  width: 32px;
  height: 32px;
  font-size: 11px;
}

.editor-top.bar {
  height: 66px;
  min-height: 66px;
  padding: 0 30px;
  background: light-dark(rgba(255, 254, 250, 0.94), rgba(22, 23, 18, 0.94));
}

.page .brand,
.bar .brand,
.crumb-brand {
  font-weight: 800;
  letter-spacing: -0.05em;
  font-size: 12px;
  color: light-dark(#35392f, #f4f1e8);
  text-decoration: none;
}

.page .dot,
.bar .dot { color: light-dark(#67771c, #e0fa6a); }

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 9px;
  color: light-dark(#8a8a80, #b7b3a6);
  font-size: 11px;
}

.crumb-slash { color: light-dark(#c7c5bb, #5c5e56); }

.menu-show {
  width: 36px;
  height: 36px;
  padding: 0;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 9px;
  border: 0;
  background: transparent;
  color: light-dark(#5f6259, #d7d2c4);
  cursor: pointer;
}

.menu-show:hover { background: light-dark(#f0efe8, #2a2c26); }

.quiet { color: light-dark(#77776f, #c8c0ae); font-size: 11px; }

.phone-links { display: none; }

@media (max-width: 720px) {
  .phone-links {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scrollbar-width: none;
    padding: 4px 17px 10px;
    border-bottom: 1px solid light-dark(#ded8ca, #3c3d36);
  }

  .phone-links::-webkit-scrollbar { display: none; }

  .phone-links a {
    flex: 0 0 auto;
    padding: 4px 0;
    color: inherit;
    font-size: 13px;
    font-weight: 650;
    text-decoration: none;
    white-space: nowrap;
    border-bottom: 2px solid transparent;
  }

  .phone-links a[aria-current="page"] {
    border-bottom-color: light-dark(#67771c, #dfff69);
  }

  .shell,
  .shell[data-menu="closed"] {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    padding: 0;
  }

  .page {
    border-radius: 0;
    min-height: 100vh;
    box-shadow: none;
  }

  .sidebar {
    position: fixed;
    z-index: 40;
    top: 0;
    left: 0;
    width: 250px;
    height: 100vh;
    max-height: none;
    border-radius: 0;
    box-shadow: 12px 0 32px rgba(22, 24, 17, 0.28);
  }

  .editor-top + .shell .sidebar {
    top: 58px;
    height: calc(100vh - 58px);
  }

  .shell[data-menu="open"]::before {
    content: "";
    position: fixed;
    z-index: 35;
    inset: 0;
    background: rgba(16, 17, 14, 0.48);
  }

  .editor-top,
  .editor-top.bar {
    height: 58px;
    min-height: 58px;
    gap: 12px;
    padding: 0 15px;
  }

  .bar { min-height: 48px; height: 48px; padding: 0 17px; }

  .share-button { width: 34px; height: 34px; padding: 9px 10px; font-size: 0; gap: 0; }
}
