/* app-v2.css — design-template app shell (logged-in chrome), from design-src
 * mvp.css. Uses the design's OWN class names (.app-shell/.app-side/.app-main)
 * which don't collide with the older .shell/.sidebar/.work, so the inner screen
 * content keeps its screens.css styling while sitting in the new chrome. */

.app-shell {
  min-height: 100vh;
  display: grid; grid-template-columns: 240px 1fr;
  background: var(--bg-2);
}
.app-side {
  background: #fff;
  border-right: 1px solid var(--border-1);
  padding: 16px 12px;
  display: flex; flex-direction: column; gap: 4px;
  position: sticky; top: 0; height: 100vh;
}
.app-side .app-brand {
  display: flex; align-items: center; gap: 9px;
  padding: 6px 10px 16px;
  border-bottom: 1px solid var(--border-1);
  margin-bottom: 8px; cursor: pointer;
}
.app-side .app-brand .wm { font-weight: 600; font-size: 15px; letter-spacing: -0.02em; color: var(--fg-1); }
.app-side .app-brand .wm .dot { color: var(--accent); }
.app-side .side-section {
  font: 600 10px var(--font-sans);
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--fg-3); padding: 12px 12px 6px;
}
.app-side a {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 12px; border-radius: var(--r-md);
  font: 500 13px var(--font-sans); color: var(--fg-2);
  cursor: pointer; text-decoration: none;
}
.app-side a:hover { background: var(--bg-2); color: var(--fg-1); }
.app-side a.active { background: var(--accent-bg); color: var(--accent); }
.app-side a .ico { display: inline-flex; width: 16px; height: 16px; align-items: center; justify-content: center; }
.app-side a .ico svg { width: 16px; height: 16px; }
.app-side a .count {
  margin-left: auto; font: 600 10px var(--font-mono);
  background: var(--bg-3); color: var(--fg-2);
  padding: 1px 6px; border-radius: var(--r-pill);
}

.app-side .side-foot {
  margin-top: auto; padding-top: 12px;
  border-top: 1px solid var(--border-1);
}
.app-side .side-user {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 6px;
}
.app-side .side-user .who { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.app-side .side-user .who .nm { font: 600 12px var(--font-sans); color: var(--fg-1); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-side .side-user .who .em { font: 500 10px var(--font-mono); color: var(--fg-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-side .side-user .signout {
  background: transparent; border: 1px solid var(--border-2); border-radius: var(--r-sm);
  width: 26px; height: 26px; display: inline-flex; align-items: center; justify-content: center;
  color: var(--fg-3); cursor: pointer; flex-shrink: 0;
}
.app-side .side-user .signout:hover { background: var(--bg-2); color: var(--fg-1); }
.app-side .side-user .signout svg { width: 14px; height: 14px; }

.app-side .side-avatar {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--accent-bg); color: var(--accent);
  display: inline-flex; align-items: center; justify-content: center;
  font: 600 11px var(--font-sans); flex-shrink: 0;
}

.app-main { padding: 32px 40px 64px; min-width: 0; }

@media (max-width: 760px) {
  .app-shell { grid-template-columns: 1fr; }
  .app-side { position: static; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; }
  .app-side .side-foot { margin: 0 0 0 auto; padding: 0; border: 0; }
}
