/* Studio app frame (docs/studio-admin-design.md, part 1): the client app's frame with Today, Projects, (+), Messages,
   Website on a phone, and the same places as a left rail on a laptop. Tokens only, from portal.css; every rule is
   under body.studio so client pages never change. */
.studio [hidden] { display: none !important; }

/* the avatar opens a small menu: her name, Studio settings, Sign out last */
.studio .app-bar { position: relative; z-index: 35; }
.studio-me { position: relative; }
.studio-me > summary { list-style: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.studio-me > summary::-webkit-details-marker { display: none; }
.studio-me > summary::after { content: ""; position: absolute; inset: -6px; }
.studio-me[open] > summary { background: var(--paper); box-shadow: 0 0 0 2px var(--script); }
.studio-me > summary:focus-visible { outline: 3px solid var(--script); outline-offset: 3px; }
.studio-me-menu {
  position: absolute; right: 0; top: calc(100% + 10px); min-width: 220px; display: grid; gap: 4px; padding: 10px;
  background: var(--paper); border: 1px solid rgba(33, 31, 32, 0.12); border-radius: 18px;
  box-shadow: var(--glass-edge, inset 0 1px 0 rgba(255,255,255,.85)), 0 2px 4px rgba(33, 31, 32, 0.10), 0 14px 28px -12px rgba(33, 31, 32, 0.45);
}
.studio-me-menu form { margin: 0; }
.studio-me-name { margin: 4px 10px 6px; font: 600 14px var(--f-body); color: var(--muted); }
.studio-me-link {
  display: flex; align-items: center; width: 100%; min-height: 48px; padding: 0 12px; border: 0; border-radius: 12px;
  background: none; font: 600 17px var(--f-body); color: var(--charcoal); text-decoration: none; text-align: left; cursor: pointer;
}
@media (hover: hover) { .studio-me-link:hover { background: rgba(106, 85, 70, 0.08); } }

/* the green key in the + menu: "Post a photo update", the thing she does most */
.studio .compose-menu .compose-opt.is-go {
  color: var(--go-ink); border-color: var(--go-edge);
  background: linear-gradient(180deg, var(--go-tint-top), var(--go-tint-bottom));
}

/* + menu: round keys only (owner 2026-11-17: "remove words in pills"), one column straight above the + */
.studio .studio-plus .compose-menu { width: 56px; justify-items: center; }
.studio .studio-plus .compose-menu li { display: block; }

/* Today: one glass card per project, the most urgent first (owner 2026-11-17: "project glass cards and top
   priority at top"). The whole card is the link. */
.today-list { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 16px; }
.today-card {
  display: grid; gap: 6px; padding: 18px 20px; border-radius: 22px; text-decoration: none; color: var(--charcoal);
  border: 1px solid rgba(33, 31, 32, 0.12); background: rgba(255, 248, 241, 0.6);
  backdrop-filter: blur(10px) saturate(1.2); -webkit-backdrop-filter: blur(10px) saturate(1.2);
  box-shadow: var(--glass-edge, inset 0 1px 0 rgba(255,255,255,.85)), var(--lift-clear, 0 10px 20px -12px rgba(33,31,32,.35));
  transition: transform var(--t-release, .5s) var(--ease), box-shadow var(--t-release, .5s) var(--ease);
}
.today-card:active { transform: translateY(1px) scale(0.99); transition-duration: var(--t-press, .26s); }
.today-card:focus-visible { outline: 3px solid var(--script); outline-offset: 3px; }
.today-first { border-color: var(--red-edge, rgba(179, 38, 30, 0.35)); box-shadow: var(--glass-edge, inset 0 1px 0 rgba(255,255,255,.85)), 0 2px 4px rgba(33, 31, 32, 0.10), 0 16px 30px -14px rgba(33, 31, 32, 0.5); }
.today-name { font: 700 21px/1.25 var(--f-body); }
.today-sub { font: 500 16px/1.35 var(--f-body); color: var(--muted); }
.today-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
@media (hover: hover) { .today-card:hover { box-shadow: var(--glass-edge, inset 0 1px 0 rgba(255,255,255,.85)), 0 2px 4px rgba(33, 31, 32, 0.10), 0 16px 30px -14px rgba(33, 31, 32, 0.45); } }

/* tab labels: a short word under each icon on a phone (owner 2026-11-17: "yes" to small words under the bottom-bar
   icons; the client bar stays icons only). The client's old tab label style. The current tab's word takes the
   current tab's colour. 52px tabs already hold a 30px icon + 3px gap + this line, so the bar does not grow. */
.studio .tab-label { display: block; font: 600 11px/1.1 var(--f-body); letter-spacing: 0.04em; white-space: nowrap; }
.studio .studio-tabs > a[aria-current="page"] .tab-label { color: var(--go-ink, #1C5537); }
.studio .studio-tabs > a[aria-current="page"]::before { width: 60px; height: 52px; border-radius: 18px; } /* the pressed-in well holds the word too */

/* ---------- laptop: a left rail with the same five places; "+ New" at the top opens the same menu ---------- */
@media (min-width: 900px) {
  body.studio .app {
    max-width: none; height: 100vh; height: 100dvh; margin: 0; border: 0; border-radius: 0; box-shadow: none;
    display: grid; grid-template-columns: 232px minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr);
  }
  body.studio .app-bar { grid-column: 1 / -1; grid-row: 1; }
  body.studio .app-body { grid-column: 2; grid-row: 2; padding: 32px 40px 64px; }
  body.studio .app-body > * { max-width: 720px; }
  body.studio .studio-tabs {
    grid-column: 1; grid-row: 2; display: flex; flex-direction: column; align-items: stretch; gap: 6px;
    padding: 96px 14px 24px; border-top: 0; border-right: 1px solid rgba(185, 168, 155, 0.5);
  }
  body.studio .studio-tabs > a { flex-direction: row; justify-content: flex-start; gap: 14px; min-height: 52px; padding: 0 14px; border-radius: 16px; }
  body.studio .studio-tabs > a svg { width: 26px; height: 26px; }
  body.studio .studio-tabs .tab-label { font: 600 17px var(--f-body); letter-spacing: 0; color: var(--charcoal); }
  body.studio .studio-tabs > a[aria-current="page"] .tab-label { color: var(--charcoal); }
  body.studio .studio-tabs > a[aria-current="page"]::before { left: 0; top: 0; width: 100%; height: 100%; transform: none; }
  /* the + becomes a wide "+ New" key at the top of the rail */
  body.studio .studio-plus .compose-fab {
    left: 14px; top: calc(var(--bar-h, 62px) + 20px); bottom: auto; transform: none; width: 204px; height: 56px; border-radius: 18px;
    justify-content: center; gap: 10px; display: flex; align-items: center; font: 700 17px var(--f-body); color: var(--go-ink);
    border: 1px solid var(--go-edge); background: linear-gradient(180deg, var(--go-tint-top), var(--go-tint-bottom));
  }
  body.studio .studio-plus .compose-fab::after { content: "New"; }
  body.studio .studio-plus .compose-fab:active { transform: translateY(1px) scale(0.98); }
  /* its keys open in a column beside the rail */
  body.studio .studio-plus .compose-menu { left: 240px; right: auto; top: calc(var(--bar-h, 62px) + 20px); bottom: auto; transform: none; width: 56px; }
  body.studio .app.has-compose .app-body { padding-bottom: 64px; }
}

/* the avatar is a 44 px target (Fitts) */
.studio .app-avatar { width: 44px; height: 44px; font-size: 17px; }

/* whole-row links: Search everything, Projects, Messages inbox. The one <a> is the row, so the tap target is the
   whole row, not the 20 px title (Fitts). Same glass row as the client's .doc-link. */
.studio .row-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.studio .row-li { margin: 0; }
.studio .row-link {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px 12px; min-height: 64px;
  padding: 16px; border-radius: 18px; text-decoration: none; color: var(--charcoal); background: rgba(255, 248, 241, 0.6);
  transition: background-color .25s var(--ease, ease);
}
.studio .row-link > div { grid-column: 1; grid-row: 1; min-width: 0; }
.studio .row-link > .pill { grid-column: 1; grid-row: 2; justify-self: start; }
.studio .row-link::after { content: "\203A"; grid-column: 2; grid-row: 1 / span 2; font: 400 30px/1 var(--f-body); color: var(--script); }
.studio .row-link h3 { margin: 0; font: 600 17px/1.3 var(--f-body); color: var(--charcoal); }
.studio .row-link p { margin: 4px 0 0; font-size: 15px; line-height: 1.45; color: var(--muted); }
.studio .row-link:active { background: rgba(106, 85, 70, 0.12); }
.studio .row-link:focus-visible { outline: 3px solid var(--script); outline-offset: 2px; }
@media (hover: hover) { .studio .row-link:hover { background: rgba(106, 85, 70, 0.08); } }

/* Projects: air between the search pill and the "Start a new project" key */
.studio .proj-new { margin: 20px 0 16px; }
