/* Grape Tracks Studio (Studio S1a): the frame. Every color, corner, type size and font is a Zesty Design Kit
   token (Corporate skin, Navy & steel): grays and steel or navy blues only, no reds, greens or pinks.
   Flat, thin borders; a shadow only on the floating menu and focus. */
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--page); color: var(--ink); font: var(--fs)/var(--lh) var(--font-body); }
a { color: var(--accent); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

/* a computer only: a phone or a small tablet gets one line */
.st-phone { display: none; }
@media (max-width: 760px) {
  .st-app { display: none; }
  .st-phone { display: block; margin: 30vh 16px 0; text-align: center; font-size: 17px; }
}

.st-bar { display: flex; align-items: center; gap: 14px; height: 52px; padding: 0 18px; background: var(--surface); border-bottom: var(--border-w) solid var(--rule); }
.st-brand { color: var(--ink); text-decoration: none; font-family: var(--font-head); white-space: nowrap; }
.st-brand b { color: var(--accent); }
.st-team select { height: var(--row-h); border: var(--border-w) solid var(--rule); border-radius: var(--radius); background: var(--surface); color: var(--ink); font: inherit; padding: 0 8px; min-width: 200px; }
.st-search { flex: 1; display: flex; justify-content: center; }
.st-search input { width: min(420px, 100%); height: var(--row-h); border: var(--border-w) solid var(--rule); border-radius: var(--radius); background: var(--page); color: var(--muted); font: inherit; padding: 0 10px; }
.st-who { position: relative; margin-left: auto; }
.st-who-btn { width: 34px; height: 34px; border-radius: 50%; border: var(--border-w) solid var(--rule); background: var(--tint); color: var(--accent); font: inherit; font-weight: 700; cursor: pointer; }
.st-menu { position: absolute; right: 0; top: 42px; z-index: 5; min-width: 230px; background: var(--surface); border: var(--border-w) solid var(--rule); border-radius: var(--radius); box-shadow: var(--shadow-pop); padding: 6px 0; }
.st-menu > button, .st-menu > a { display: block; width: 100%; text-align: left; padding: 8px 14px; background: none; border: 0; color: var(--ink); font: inherit; text-decoration: none; cursor: pointer; }
.st-menu > button:hover, .st-menu > a:hover { background: var(--tint); }
.st-menu-email { margin: 4px 14px 8px; color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }

.st-body { display: grid; grid-template-columns: 220px 1fr; min-height: calc(100vh - 52px); }
.st-body.no-side { grid-template-columns: 1fr; }
.st-side { background: var(--surface); border-right: var(--border-w) solid var(--rule); padding: 12px 0; }
.st-side a { display: block; padding: 7px 18px; color: var(--ink); text-decoration: none; }
.st-side a:hover { background: var(--tint); }
.st-side a[aria-current="page"] { background: var(--tint); box-shadow: inset 3px 0 0 var(--accent); font-weight: 600; }
.st-side a.locked { color: var(--muted); }
.st-side hr { border: 0; border-top: var(--border-w) solid var(--line); margin: 10px 18px; }
.st-main { padding: 28px 32px; max-width: 980px; }
.st-main h1 { font: var(--head-weight) 24px var(--font-head); margin: 0 0 6px; }
.st-lede { color: var(--muted); margin: 0 0 18px; }
.st-card { background: var(--surface); border: var(--border-w) solid var(--rule); border-radius: var(--radius); padding: 18px 20px; margin: 0 0 16px; }
.st-card h2 { font: var(--head-weight) 17px var(--font-head); margin: 0 0 8px; }
.st-chip { display: inline-flex; gap: 6px; align-items: center; border: var(--border-w) solid var(--rule); border-radius: var(--radius); padding: 2px 8px; font-size: 13px; color: var(--muted); background: var(--page); }

/* sign-in */
.st-signin { max-width: 440px; margin: 9vh auto; padding: 0 16px; }
.st-signin h1 { font: var(--head-weight) 24px var(--font-head); margin: 0 0 6px; }
.st-f { display: grid; gap: 4px; margin: 14px 0; }
.st-f span { font-weight: 600; font-size: 13px; }
.st-f input { height: 36px; border: var(--border-w) solid var(--rule); border-radius: var(--radius); background: var(--surface); color: var(--ink); font: inherit; padding: 0 10px; }
.st-f input.code { letter-spacing: .3em; font-size: 20px; }
.st-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 14px; }
.st-btn { height: var(--row-h); padding: 0 14px; border: var(--border-w) solid var(--rule); border-radius: var(--radius); background: var(--surface); color: var(--ink); font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; }
.st-btn.primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.st-btn.quiet { border-color: transparent; background: none; color: var(--accent); }
.st-err { border: var(--border-w) solid var(--ink); border-radius: var(--radius); background: var(--tint); padding: 8px 12px; margin: 10px 0; }
.st-err::before { content: "! "; font-weight: 700; }
.st-note { border: var(--border-w) dashed var(--rule); border-radius: var(--radius); padding: 8px 12px; margin: 10px 0; color: var(--muted); }
.st-small { font-size: 13px; color: var(--muted); }
.st-toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink); color: var(--page); border-radius: var(--radius); padding: 10px 16px; box-shadow: var(--shadow-pop); }
.st-main:focus { outline: none; }
