/* The website's own additions to the Studio: the loading screen and the choose-a-tool page with its project list, in the
 * site's look. Their markup and styles.css are shared with the iOS app, which never loads this file; the editor's look
 * is in prototype/desktop-shell.css. Rules carry html.is-web-free[data-shell] to outweigh the sheets loaded after. */
/* The screen shown while Studio loads follows the theme about to be used. */
html.is-web-free.is-studio-booting[data-boot-theme="light"], html.is-web-free.is-studio-booting[data-boot-theme="light"] body, html.is-web-free.is-studio-booting[data-boot-theme="light"] .studio-boot-screen { background: #f4f3ee; color: #111110; }
html.is-web-free.is-studio-booting[data-boot-theme="light"] .boot-wordmark { content: url("/logo-wordmark-ink.png"); width: 53px; height: 18px; }

/* The page Studio shows from "Projects" (choose a tool). Its colours are written into the shared sheet, so each is
 * set again here. One typeface, sentence case, and without the lines of text that only repeated "Studio". */
html.is-web-free[data-shell="desktop"] #toolPickerView, html.is-web-free[data-shell="desktop"] #toolPickerView :is(h1, h2, h3, p, a, span, strong, small, button, input) { font-family: "Geist", system-ui, -apple-system, sans-serif; letter-spacing: normal; text-transform: none; }
html.is-web-free[data-shell="desktop"] #toolPickerView :is(h1, h2) { font-weight: 600; letter-spacing: -0.03em; }
html.is-web-free[data-shell="desktop"] #toolPickerView * { border-radius: 0 !important; }
html.is-web-free[data-shell="desktop"] #toolPickerView :is(.studio-catalog-kicker, .studio-sidebar-intro, .picker-context, .tool-card-meta) { display: none; }

html.is-web-free[data-shell="desktop"][data-theme="light"] #toolPickerView :is(.home-header, .tool-picker-content, .tool-list), html.is-web-free[data-shell="desktop"][data-theme="light"] #toolPickerView { background: #f4f3ee; color: #111110; }
html.is-web-free[data-shell="desktop"][data-theme="light"] #toolPickerView :is(.picker-topbar, .home-workspace-bar) { border-color: #dad8cf; background: #fbfaf6; color: #111110; }
html.is-web-free[data-shell="desktop"][data-theme="light"] #toolPickerView :is(h1, h2, h3, strong, .tool-card-body, .tool-card-body *) { color: #111110; }
html.is-web-free[data-shell="desktop"][data-theme="light"] #toolPickerView :is(p, small, .studio-section-index a, .studio-section-index span, .studio-site-exit, .editor-ios-link, .editor-ios-link span, .web-picker-search span, .web-picker-recent > span, .tool-category-heading span) { color: #5f5e57; }
html.is-web-free[data-shell="desktop"][data-theme="light"] #toolPickerView :is(.studio-catalog-header, .web-picker-discovery, .tool-category-heading, .studio-section-index a) { border-color: transparent; }
html.is-web-free[data-shell="desktop"][data-theme="light"] #toolPickerView .tool-category-section { border-top: 1px solid #dad8cf; }
html.is-web-free[data-shell="desktop"][data-theme="light"] #toolPickerView input { border-color: transparent; background: #fbfaf6; color: #111110; }
html.is-web-free[data-shell="desktop"][data-theme="light"] #toolPickerView input::placeholder { color: #5f5e57; }
html.is-web-free[data-shell="desktop"][data-theme="light"] #toolPickerView :is(.web-picker-recent button, .web-projects-button, .editor-ios-link) { border-color: transparent; background: #eeede7; color: #111110; }
html.is-web-free[data-shell="desktop"][data-theme="light"] #toolPickerView .editor-export-button { border-color: #111110; background: #111110; color: #fbfaf6; }
html.is-web-free[data-shell="desktop"][data-theme="light"] #toolPickerView .tool-card-face { border-color: transparent; background: #eeede7; }
html.is-web-free[data-shell="desktop"][data-theme="light"] #toolPickerView .tool-card-random-action { border-color: transparent; background: #fbfaf6; color: #111110; }
html.is-web-free[data-shell="desktop"][data-theme="light"] #toolPickerView .picker-topbar .brand-icon { content: url("/logo-wordmark-ink.png"); width: 53px; height: 18px; }

/* A card opens its tool; the row of extra buttons under it (one unreadable on a phone) goes. Randomize is in the editor. */
html.is-web-free[data-shell="desktop"] #toolPickerView .tool-card-actions { display: none; }

/* The choose-a-tool page and the project list, laid out like the site's tool directory: no column of its own, the
 * wordmark at the left of the bar and the actions at the right, categories beside the search, and the way back and
 * feedback at the foot of the page. */
html.is-web-free[data-shell="desktop"] #toolPickerView:not(.is-hidden) { display: flex; flex-direction: column; min-height: 100dvh; }
html.is-web-free[data-shell="desktop"] #toolPickerView > .home-header { display: contents; }
html.is-web-free[data-shell="desktop"] #toolPickerView .picker-topbar { position: sticky; z-index: 20; top: 0; display: flex; order: 0; min-height: 56px; align-items: center; justify-content: space-between; gap: 16px; padding: env(safe-area-inset-top) clamp(18px, 3.2vw, 46px) 0; }
html.is-web-free[data-shell="desktop"] #toolPickerView .picker-topbar .editor-actions { margin-left: auto; }
html.is-web-free[data-shell="desktop"] #toolPickerView :is(.tool-picker-content, .project-picker-content) { order: 1; width: 100%; max-width: 1240px; min-height: 0; margin: 0 auto; padding: 24px clamp(18px, 3.2vw, 46px) 56px; }
html.is-web-free[data-shell="desktop"] #toolPickerView .studio-catalog-header { display: block; margin: 0 0 12px; padding: 0; }
html.is-web-free[data-shell="desktop"] #toolPickerView .studio-catalog-header h1 { margin: 0 0 6px; font-size: clamp(30px, 3.4vw, 44px); line-height: 1.1; }
html.is-web-free[data-shell="desktop"] #toolPickerView .studio-catalog-header p { max-width: none; margin: 0; font-size: 15px; }
html.is-web-free[data-shell="desktop"] #toolPickerView .web-picker-discovery:not([hidden]) { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 32px; margin: 0 0 20px; padding: 8px 0; }
html.is-web-free[data-shell="desktop"] #toolPickerView .web-picker-search { width: min(100%, 280px); margin: 0; }
html.is-web-free[data-shell="desktop"] #toolPickerView .web-picker-search > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
html.is-web-free[data-shell="desktop"] #toolPickerView .web-picker-search input { width: 100%; min-height: 44px; }
html.is-web-free[data-shell="desktop"] #toolPickerView :is(.web-picker-recent:not([hidden]), .web-picker-empty:not([hidden])) { display: flex; flex-basis: 100%; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; }
html.is-web-free[data-shell="desktop"] #toolPickerView .studio-tabs { display: flex; gap: 0 22px; overflow-x: auto; scrollbar-width: none; }
html.is-web-free[data-shell="desktop"] #toolPickerView .studio-tabs button { flex: none; min-height: 44px; padding: 0; border: 0; background: none; color: inherit; font-size: 14px; opacity: 0.72; cursor: pointer; }
html.is-web-free[data-shell="desktop"] #toolPickerView .studio-tabs button[aria-pressed="true"] { box-shadow: inset 0 -3px currentColor; font-weight: 600; opacity: 1; }
html.is-web-free[data-shell="desktop"] #toolPickerView .tool-category-section.studio-off { display: none; }
html.is-web-free[data-shell="desktop"] #toolPickerView .studio-section-index { display: none; }
html.is-web-free[data-shell="desktop"] #toolPickerView .home-workspace-bar { position: static; display: flex; order: 2; flex-direction: row; width: 100%; height: auto; margin-top: auto; padding: 12px clamp(18px, 3.2vw, 46px) calc(12px + env(safe-area-inset-bottom)); border-width: 1px 0 0; border-style: solid; }
html.is-web-free[data-shell="desktop"] #toolPickerView .home-workspace-actions { display: flex; flex-direction: row-reverse; width: 100%; align-items: center; justify-content: space-between; gap: 16px; margin: 0; }
html.is-web-free[data-shell="desktop"] #toolPickerView .home-workspace-actions .web-projects-button { width: auto; gap: 8px; }
/* Nothing new joins the list of earlier projects. (The shared button rules outrank the hidden attribute.) */
html.is-web-free #toolPickerView #newProjectButton[hidden] { display: none; }
/* The shared phone rules drop the list's heading; the list says what it is, so it stays at every width. */
html.is-web-free[data-shell="desktop"] #toolPickerView .project-picker-content .section-heading { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px 24px; margin: 0 0 24px; padding: 0; border: 0; }
html.is-web-free[data-shell="desktop"] #toolPickerView .project-picker-content .section-heading > div { display: block; }
html.is-web-free[data-shell="desktop"] #toolPickerView .project-picker-content .section-heading h2 { display: block; margin: 0 0 6px; font-size: clamp(30px, 3.4vw, 44px); line-height: 1.1; }
html.is-web-free[data-shell="desktop"] #toolPickerView .project-picker-content .section-heading p { display: block; margin: 0; }
html.is-web-free[data-shell="desktop"] #toolPickerView .project-picker-content .section-heading .studio-catalog-kicker { display: none; }

/* The project list and the choose-a-tool page stand beside the shell's column (prototype/desktop-shell.css), which
 * carries the way to this list and the way home, so the page's own copies of those go; and, where the column shows, the page's
 * wordmark too. Narrower, the wordmark stays and the column's Menu button stands beside it. */
/* The column's card offers the iPhone app, so the page's own link goes too. */
html.is-web-free[data-shell="desktop"] #toolPickerView :is(#webProjectsButton, .studio-site-exit, #pickerIOSLink) { display: none; }
/* Narrower, this page's bar is the editor's: the same height, wordmark and place for Menu, so moving between the two
 * leaves both where they were. */
@media (max-width: 1099px) {
  /* The shared phone sheet pads the whole view; the bar and the foot run edge to edge, and the content has its own. */
  html.is-web-free[data-shell="desktop"] #toolPickerView { padding: 0; }
  html.is-web-free[data-shell="desktop"] #toolPickerView .picker-topbar { width: 100%; min-height: 48px; margin: 0; padding: env(safe-area-inset-top) 14px 0; }
  html.is-web-free[data-shell="desktop"] #toolPickerView .picker-topbar .web-picker-exit { margin: 0; padding: 0; }
  html.is-web-free[data-shell="desktop"][data-theme] #toolPickerView .picker-topbar .brand-icon { width: 49.6px; height: 17px; }
}
@media (max-width: 819px) {
  html.is-web-free[data-shell="desktop"] #toolPickerView .picker-topbar { padding-inline: 10px; }
}
@media (min-width: 1100px) {
  html.is-web-free[data-shell="desktop"] #toolPickerView { padding-left: var(--ds-side, 248px); }
  html.is-web-free[data-shell="desktop"] #toolPickerView .web-picker-exit { display: none; }
}

/* While Studio loads, what frames the editor is already there. From 1100 px that is the column: a picture of it stands
 * over the left edge and the boot screen covers only the rest, drawn with the editor's bar. Narrower, the column is a
 * closed drawer, and the picture is the top bar's wordmark and Menu button, where the editor puts them. */
.ds-root.ds-boot-side { display: none; }
html.is-web-free.is-studio-booting .ds-root.ds-boot-side { display: contents; }
html.is-web-free.is-studio-booting .ds-boot-side * { border-radius: 0 !important; }
html.is-web-free.is-studio-booting .studio-boot-screen .boot-wordmark { display: none; }
html.is-web-free.is-studio-booting .studio-boot-screen::before { position: absolute; top: 0; right: 0; left: 0; height: 48px; border-bottom: 1px solid var(--ds-rule); background: var(--ds-surface); content: ""; }
@media (min-width: 1100px) {
  .ds-boot-side .ds-boot-bar { display: none; }
  html.is-web-free.is-studio-booting .ds-boot-side .ds-index { z-index: 2001; }
  html.is-web-free.is-studio-booting .studio-boot-screen { left: var(--ds-side); }
}
@media (max-width: 1099px) {
  html.is-web-free.is-studio-booting .ds-boot-side .ds-index { display: none; }
  html.is-web-free.is-studio-booting .ds-boot-bar { position: fixed; z-index: 2001; top: env(safe-area-inset-top); right: 0; left: 0; height: 48px; border-bottom: 1px solid var(--ds-rule); background: var(--ds-surface); }
  html.is-web-free.is-studio-booting .ds-boot-bar .ds-brand { position: absolute; top: 15px; left: 14px; }
  html.is-web-free.is-studio-booting .ds-boot-bar .ds-brand img { display: block; width: 49.6px; height: 17px; }
  html.is-web-free.is-studio-booting .ds-boot-bar .ds-btn { position: absolute; top: 8.5px; left: 73.6px; display: inline-flex; width: 59.3px; align-items: center; justify-content: center; box-sizing: border-box; }
}
@media (max-width: 819px) {
  html.is-web-free.is-studio-booting .ds-boot-bar .ds-brand { top: 15.5px; left: 10px; }
  html.is-web-free.is-studio-booting .ds-boot-side[data-view="list"] .ds-boot-bar .ds-brand { top: 15px; }
  html.is-web-free.is-studio-booting .ds-boot-bar .ds-btn { top: 9px; left: 67.6px; }
  /* On a phone the editor's bar has a second row. */
  html.is-web-free.is-studio-booting .ds-boot-side:not([data-view="list"]) .ds-boot-bar { height: 85px; }
}
/* With a finger the button is 40px tall (desktop-shell.css), and sits where the real one will. */
@media (pointer: coarse) and (max-width: 1099px) {
  html.is-web-free.is-studio-booting .ds-boot-bar .ds-btn { top: 3.5px; }
}
@media (pointer: coarse) and (max-width: 819px) {
  html.is-web-free.is-studio-booting .ds-boot-side:not([data-view="list"]) .ds-boot-bar .ds-btn { top: 4px; }
}
