/* The app frame: a quiet sidebar and one scrolling column of content. */

.gv-shell { display: grid; grid-template-columns: var(--sidebar) minmax(0, 1fr); height: 100dvh; background: var(--bg); }
.gv-side { display: flex; flex-direction: column; min-height: 0; min-width: 0; overflow: hidden; padding: 14px 12px 12px; border-right: 1px solid var(--line); background: var(--bg); }
.gv-main { min-width: 0; height: 100dvh; overflow-y: auto; scroll-behavior: smooth; }

/* workspace switcher */
.gv-wsbtn { display: flex; align-items: center; gap: 10px; width: 100%; padding: 7px 8px; border-radius: var(--r-10); text-align: left; transition: background-color var(--d-2) var(--ease); }
.gv-wsbtn:hover { background: var(--wash-2); }
.gv-wsbtn .gv-avatar { --size: 30px; border-radius: 9px; }
.gv-wsbtn-name { font-weight: 500; letter-spacing: -0.012em; line-height: 1.25; }
.gv-wsbtn-sub { font-size: var(--t-12); color: var(--ink-3); line-height: 1.25; }
.gv-wsbtn > svg { color: var(--ink-4); flex: none; }

/* nav */
.gv-nav { margin-top: 14px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 1px; align-content: start; overflow-y: auto; min-height: 0; padding-bottom: 8px; scrollbar-width: thin; }
.gv-nav-label { padding: 16px 10px 6px; font-size: var(--t-12); color: var(--ink-3); }
.gv-nav-item { display: flex; align-items: center; gap: 10px; height: 34px; padding: 0 10px; border-radius: var(--r-8); color: var(--ink-2); font-size: var(--t-14); transition: background-color var(--d-2) var(--ease), color var(--d-2) var(--ease); }
.gv-nav-item svg { color: var(--ink-3); flex: none; transition: color var(--d-2) var(--ease); }
.gv-nav-item:hover { background: var(--wash); color: var(--ink); }
.gv-nav-item.is-on { background: var(--wash-2); color: var(--ink); font-weight: 500; }
.gv-nav-item.is-on svg { color: var(--forest); }
.gv-nav-count { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: var(--r-pill); display: grid; place-items: center; font-size: 11.5px; font-weight: 500; font-variant-numeric: tabular-nums; background: var(--forest); color: var(--ink-inv); }
.gv-nav-count--quiet { background: var(--wash-2); color: var(--ink-2); }

/* bottom of the sidebar */
.gv-side-foot { margin-top: auto; display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; padding-top: 10px; }
.gv-setupcard { display: block; padding: 12px 12px 13px; border-radius: var(--r-12); background: var(--surface); border: 1px solid var(--line); transition: border-color var(--d-2) var(--ease); }
.gv-setupcard:hover { border-color: var(--line-3); }
.gv-setupcard b { display: block; font-size: var(--t-13); font-weight: 500; }
.gv-setupcard span { display: block; font-size: var(--t-12); color: var(--ink-3); margin: 1px 0 9px; }
.gv-planchip { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 10px 8px 12px; border-radius: var(--r-10); background: var(--wash); font-size: var(--t-13); color: var(--ink-2); }
.gv-planchip b { font-weight: 500; color: var(--ink); }
.gv-planchip a { font-weight: 500; color: var(--forest); }
.gv-mebtn { display: flex; align-items: center; gap: 10px; width: 100%; padding: 7px 8px; border-radius: var(--r-10); text-align: left; transition: background-color var(--d-2) var(--ease); }
.gv-mebtn:hover { background: var(--wash-2); }
.gv-mebtn .gv-avatar { --size: 28px; }
.gv-mebtn-name { font-size: var(--t-13); font-weight: 500; line-height: 1.25; }
.gv-mebtn-mail { font-size: var(--t-12); color: var(--ink-3); line-height: 1.25; }
.gv-mebtn > svg { color: var(--ink-4); flex: none; }

/* a paused workspace says so on every page */
.gv-pausedbar { display: flex; align-items: center; gap: 10px; padding: 10px 40px; background: var(--warn-bg); color: #5F4212; font-size: var(--t-13); border-bottom: 1px solid rgba(138, 90, 18, 0.16); }
.gv-pausedbar a { font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
.gv-linkbtn { all: unset; cursor: pointer; font-weight: 500; text-decoration: underline; text-underline-offset: 3px; color: var(--forest); }
.gv-linkbtn:disabled { opacity: 0.5; cursor: default; }
.gv-linkbtn:focus-visible { outline: 2px solid var(--forest); outline-offset: 2px; border-radius: 4px; }
.gv-pausedbar--quiet { background: var(--wash-sage); color: var(--ink-2); border-bottom-color: var(--line); }
.gv-pausedbar--quiet a { color: var(--forest); }

/* small screens: the sidebar becomes a drawer */
.gv-topbar { display: none; }
@media (max-width: 860px) {
  .gv-shell { grid-template-columns: 1fr; height: auto; min-height: 100dvh; }
  .gv-topbar { display: flex; align-items: center; justify-content: space-between; height: 54px; padding: 0 14px; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(10px); }
  .gv-topbar img { height: 19px; }
  .gv-side { position: fixed; z-index: 70; inset: 0 auto 0 0; width: min(300px, 86vw); transform: translateX(-102%); transition: transform var(--d-3) var(--ease); box-shadow: var(--float); }
  .gv-shell.is-open .gv-side { transform: none; }
  .gv-shell.is-open::after { content: ""; position: fixed; inset: 0; z-index: 65; background: rgba(17, 19, 18, 0.3); animation: gv-fade var(--d-2) var(--ease); }
  .gv-main { height: auto; overflow: visible; }
  .gv-pausedbar { padding: 10px 18px; }
}
