/* The studio's mind map (3996, Spec_LearningAndHelpSystem_v4.md W1 and 7.1). Its own sheet, so shell.css and the learn look stay as they
   are. Each pane declares its own container (rule 8), so the learner's page drawn in a pane keys on the pane's width. Desktop only:
   under the floor, 1100 by 620 (4105, StudioFloor), the pink notice names the window's size and the floor in the studio's place. */

.studio-pane { container: learn / inline-size; }

.studio-narrow { margin: 1rem 0; }

.studio-top { gap: .5rem; align-items: center; }
.studio-find { width: 16rem; }
.studio-notice { margin: .25rem 0 .5rem; }

.studio-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem; margin: .5rem 0 .25rem; font-size: .85rem; }
.studio-crumb { background: none; border: none; padding: 0; color: #2f6db5; cursor: pointer; font: inherit; }
.studio-crumb:hover { text-decoration: underline; }
.studio-crumb-sep { color: #1f2733; }

.studio-heading { display: flex; align-items: center; gap: .6rem; padding: .4rem 0 .6rem; border-bottom: 1px solid #e3e7ec; margin-bottom: .4rem; }
.studio-heading-title { font-size: 1.35rem; font-weight: 600; color: #1f2733; }
.studio-filter { margin: .25rem 0; }
.studio-link { background: none; border: none; padding: 0; color: #2f6db5; cursor: pointer; font: inherit; text-decoration: underline; }

.studio-outline { outline: none; padding-bottom: 1rem; }
.studio-outline:focus-visible { box-shadow: inset 0 0 0 1px #c9d4e2; }

.studio-row { display: flex; align-items: center; gap: .4rem; min-height: 1.9rem; padding-right: .4rem; border-radius: 4px; cursor: default; user-select: none; }
.studio-row:hover { background: #f4f6f9; }
.studio-sel { background: #eaf1fb; }
.studio-current { background: #d7e5f8; }
.studio-sel:hover, .studio-current:hover { background: #cfe0f6; }
.studio-cut { font-style: italic; outline: 1px dashed #1f2733; outline-offset: -1px; }

.studio-chevron { width: 1.2rem; background: none; border: none; padding: 0; color: #1f2733; cursor: pointer; font-size: .8rem; }
.studio-chevron:disabled { cursor: default; }
.studio-bullet { width: 1.1rem; background: none; border: none; padding: 0; color: #1f2733; cursor: pointer; font-size: .6rem; line-height: 1; }
.studio-bullet:hover { color: #2f6db5; }
.studio-eyebrow { font-size: .62rem; letter-spacing: .06em; text-transform: uppercase; color: #1f2733; min-width: 3.6rem; }
.studio-tick { color: #3f8f5f; font-weight: 700; }
.studio-title { color: #1f2733; cursor: text; }
.studio-title-edit { min-width: 22rem; }
.studio-times { font-size: .75rem; color: #1f2733; }
.studio-key { font-size: .7rem; font-family: Consolas, monospace; color: #1f2733; background: #eef1f5; border-radius: 3px; padding: 0 .3rem; }
.studio-orphan { font-size: .7rem; color: #fff; background: #c0392b; border-radius: 3px; padding: 0 .35rem; }
.studio-status { font-size: .7rem; color: #1f2733; border: 1px solid #d0d6de; border-radius: 3px; padding: 0 .3rem; }
.studio-dots { background: none; border: none; color: #1f2733; cursor: pointer; font-size: 1rem; padding: 0 .2rem; visibility: hidden; }
.studio-row:hover .studio-dots, .studio-current .studio-dots { visibility: visible; }
.studio-new { background: #fbfcfd; }

/* Show status (7.1): Done green, New light gray, Needs update gold, Obsolete slate, Orphaned red, "41 of 64" at the end. */
.studio-bar { display: inline-flex; align-items: center; gap: .4rem; }
.studio-bar-track { display: inline-flex; width: 10rem; height: .6rem; border-radius: 3px; overflow: hidden; background: #f1f3f6; }
.studio-seg { display: block; height: 100%; cursor: pointer; }
.studio-seg-done { background: #3f8f5f; }
.studio-seg-new { background: #d9dee5; }
.studio-seg-needsupdate { background: #d4a33b; }
.studio-seg-obsolete { background: #9aa5b4; }
.studio-seg-orphaned { background: #c0392b; }
.studio-seg-on { box-shadow: inset 0 0 0 2px #1f2733; }
.studio-bar-line { font-size: .72rem; color: #1f2733; min-width: 4.2rem; text-align: right; }

.studio-orphans { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin-top: 1rem; padding-top: .6rem; border-top: 1px solid #e3e7ec; }
.studio-orphans-label { font-size: .7rem; letter-spacing: .06em; text-transform: uppercase; color: #1f2733; margin-right: .4rem; }
.studio-keys { margin-top: .4rem; }
.studio-key-free { cursor: grab; font-size: .78rem; padding: .05rem .4rem; }
.studio-orphan-page { font-size: .82rem; background: #fdf1ef; border: 1px solid #efc4bd; border-radius: 3px; padding: .05rem .45rem; cursor: grab; }

.studio-menu-back { position: fixed; inset: 0; z-index: 40; }
.studio-menu { position: fixed; z-index: 41; min-width: 12rem; background: #fff; border: 1px solid #d0d6de; border-radius: 6px; box-shadow: 0 6px 18px rgba(20, 30, 45, .16); padding: .3rem 0; display: flex; flex-direction: column; }
.studio-menu button { background: none; border: none; text-align: left; padding: .3rem .9rem; font: inherit; font-size: .88rem; cursor: pointer; color: #1f2733; }
.studio-menu button:hover:not(:disabled) { background: #eaf1fb; }
.studio-menu button:disabled { color: #a9b0ba; cursor: default; }
.studio-menu-sep { height: 1px; background: #e3e7ec; margin: .25rem 0; }

/* The page editor's Design Window (4017, W2 and 7.2): the title with its pill, Placed in, the notes, the template row, the blocks as
   editors with a thin Insert line between them, the foot's Previous and Next. */
.studio-editor { outline: none; }
.studio-editor-grid { display: grid; grid-template-columns: minmax(0, 45%) minmax(0, 1fr); gap: 1.2rem; align-items: start; }

/* The renders (W2, rule 8): the learner's sheet in boxes of the learner's sizes, scaled to fit; the box is the container, so the learn
   rules fire at 1100, 390 and 844 as they would on that screen. Desktop at half size, the phone's two at 0.38. */
.studio-renders { display: flex; flex-direction: column; gap: .4rem; position: sticky; top: 0; }
.studio-render-label { font-size: .62rem; letter-spacing: .06em; text-transform: uppercase; color: #1f2733; }
.studio-render { overflow: hidden; border: 1px solid #d0d6de; border-radius: 4px; background: #f4f5f7; }
.studio-render-desktop { width: 550px; height: 310px; }
.studio-render-row { display: flex; gap: .6rem; align-items: flex-start; }
.studio-render-portrait { width: 148px; height: 321px; }
.studio-render-landscape { width: 321px; height: 148px; }
/* 4144 (George): each frame scrolls up and down inside itself as the learner's page does in the shell's article, vertical only, never across. */
.studio-frame { transform-origin: top left; overflow-x: hidden; overflow-y: auto; background: #f4f5f7; font-family: "Segoe UI", sans-serif; }
.studio-frame-desktop { width: 1100px; height: 620px; transform: scale(.5); }
.studio-frame-portrait { width: 390px; height: 844px; transform: scale(.38); }
.studio-frame-landscape { width: 844px; height: 390px; transform: scale(.38); }
.studio-sheet { min-height: 100%; box-sizing: border-box; }
.studio-crumb-text { color: #1f2733; }
.studio-page-head { display: flex; align-items: center; gap: .5rem; margin: .4rem 0; }
.studio-page-title { flex: 1; font-size: 1.25rem; font-weight: 600; }
.studio-pill { width: auto; border-radius: 999px; padding: .1rem .6rem; font-size: .8rem; }
.studio-pill-done { border-color: #3f8f5f; }
.studio-pill-needsupdate { border-color: #d4a33b; }
.studio-pill-obsolete { border-color: #9aa5b4; }
.studio-pill-template { border-color: #2f6db5; }
.studio-dots-on { visibility: visible; }
.studio-title-menu { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; padding: .5rem; margin-bottom: .5rem; border: 1px solid #d0d6de; border-radius: 6px; background: #fbfcfd; }
.studio-menu-or { color: #1f2733; font-size: .85rem; }
.studio-placed { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; font-size: .85rem; margin-bottom: .4rem; }
.studio-placed-label, .studio-block-kind { font-size: .62rem; letter-spacing: .06em; text-transform: uppercase; color: #1f2733; }
.studio-notes { margin-bottom: .6rem; font-size: .88rem; }
.studio-notes textarea { width: 100%; margin-top: .3rem; }
.studio-template-row { display: flex; align-items: center; gap: .5rem; padding: .5rem 0; border-top: 1px solid #e3e7ec; border-bottom: 1px solid #e3e7ec; }
.studio-template-row select { width: auto; }
.studio-blocks { display: flex; flex-direction: column; }
.studio-insert { display: flex; align-items: center; gap: .3rem; min-height: 1.3rem; opacity: 1; }
.studio-insert-rule { flex: 1; height: 1px; background: #e3e7ec; }
.studio-insert-kind { background: none; border: none; padding: 0 .3rem; font: inherit; font-size: .72rem; color: #2f6db5; cursor: pointer; visibility: hidden; }
.studio-insert:hover .studio-insert-kind, .studio-insert:focus-within .studio-insert-kind { visibility: visible; }
.studio-block { display: flex; gap: .6rem; padding: .5rem; border: 1px solid #e3e7ec; border-radius: 6px; background: #fff; }
.studio-block-slot { border-left: 3px solid #2f6db5; }
/* 4131 (George): the quiet edge. The kind with its × at the line's far right, up and down two small squares on one line, then the
   layout and the picture's and template's words, compact and unboxed. */
.studio-block-edge { display: flex; flex-direction: column; align-items: stretch; gap: .15rem; width: 5.2rem; }
.studio-edge-head { display: flex; align-items: center; justify-content: space-between; }
.studio-edge-x { background: none; border: none; padding: 0 .1rem; font: inherit; font-size: .9rem; line-height: 1; color: #1f2733; cursor: pointer; }
.studio-edge-moves { display: flex; gap: .2rem; }
.studio-edge-sq { width: 1.1rem; height: 1.1rem; padding: 0; background: none; border: 1px solid #d0d6de; border-radius: 3px; font-size: .55rem; line-height: 1; color: #1f2733; cursor: pointer; }
.studio-edge-btn { background: none; border: none; text-align: left; font: inherit; font-size: .7rem; color: #2f6db5; cursor: pointer; padding: 0; }
.studio-edge-btn:hover:not(:disabled), .studio-edge-sq:hover:not(:disabled), .studio-edge-x:hover:not(:disabled) { background: #eaf1fb; }
.studio-block-body { flex: 1; display: flex; flex-direction: column; gap: .35rem; min-width: 0; }
.studio-box { width: 100%; font-family: inherit; resize: vertical; }
/* 4029: a picture pasted, dropped or chosen; the input is the Design Window's, opened by Picture on the Insert line or a block's Replace. */
.studio-picture-input { display: none; }
.studio-design.shell-drop-over { outline: 2px dashed #2f6db5; outline-offset: 4px; }
.studio-picture-thumb { display: block; max-width: 100%; max-height: 220px; border-radius: 4px; object-fit: contain; background: #f6f8fa; }
.studio-pending { border-color: #2f6db5; background: #fbfcfd; }
.studio-pending-foot { display: flex; align-items: center; gap: .4rem; }
.studio-pending-name { font-size: .8rem; color: #1f2733; flex: 1; min-width: 6rem; }
.studio-pending-size { font-size: .8rem; color: #1f2733; white-space: nowrap; }
/* 4143 (e): a picture block's head line, PICTURE · its name, the name edited in place. */
.studio-picture-name { display: flex; align-items: center; gap: .3rem; }
.studio-picture-name .si-input { flex: 1; font-size: .8rem; }
/* 4143: a block's picture box takes a dropped picture for that block; why Add picture waits is said beside it. */
.studio-picture-box.shell-drop-over, .studio-picture-box:hover { outline: 1px dashed #2f6db5; outline-offset: 2px; }
.studio-pending-wait { font-size: .8rem; color: #1f2733; }
/* 4137: a line the save needs, pink while blank, its words beside it in black. */
.si-input.studio-needed { background: #fdecea; border-color: #f5c6c2; }
.studio-picture-slot { border: 1px dashed #9aa5b4; border-radius: 4px; padding: 1.2rem .8rem; text-align: center; font-size: .82rem; color: #1f2733; background: #f6f8fa; }
.studio-field { display: flex; flex-direction: column; gap: .15rem; font-size: .75rem; color: #1f2733; }
.studio-answer { display: flex; align-items: center; gap: .8rem; font-size: .85rem; }
.studio-freetext-note { font-size: .82rem; color: #1f2733; padding: .4rem .5rem; border-left: 3px solid #2f6db5; background: #f6f8fa; }
.studio-choice { display: flex; align-items: center; gap: .4rem; }
.studio-choice-words { flex: 1; }
.studio-feedback { margin-left: 1.6rem; width: calc(100% - 1.6rem); font-size: .85rem; }
.studio-editor-foot { display: flex; justify-content: space-between; margin: 1rem 0; }

/* The grading panel and the grade test window (4044, W3 and W4). */
.studio-grading-late { border: 1px solid #c0392b; border-radius: 6px; background: #fdf1ef; padding: .5rem .7rem; margin-bottom: .6rem; }
.studio-grading-late-head { font-weight: 600; color: #1f2733; margin-bottom: .3rem; }
.studio-grading-late-row { display: flex; gap: 1rem; font-size: .85rem; color: #1f2733; }
.studio-grading-pills { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin: .4rem 0 .6rem; }
.studio-pill-btn { background: #fff; border: 1px solid #d0d6de; border-radius: 999px; padding: .1rem .7rem; font: inherit; font-size: .8rem; color: #1f2733; cursor: pointer; }
.studio-pill-btn:disabled { cursor: default; }
.studio-pill-on { background: #d7e5f8; border-color: #2f6db5; }
.studio-grading-select { width: auto; font-size: .8rem; }
.studio-grading-table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.studio-grading-table th { text-align: left; border-bottom: 1px solid #d0d6de; padding: .3rem .4rem; color: #1f2733; }
.studio-grading-table td { border-bottom: 1px solid #eef1f5; padding: .35rem .4rem; color: #1f2733; }
.studio-grading-row { cursor: pointer; }
.studio-grading-row:hover { background: #eaf1fb; }
.studio-sort { background: none; border: none; padding: 0; font: inherit; font-weight: 600; color: #1f2733; cursor: pointer; }
.studio-grading-state { font-size: .72rem; border: 1px solid #d0d6de; border-radius: 3px; padding: 0 .35rem; color: #1f2733; margin-left: .3rem; }
.studio-grading-new { border-color: #2f6db5; }
.studio-grading-returned { border-color: #d4a33b; }
.studio-grading-delivered { border-color: #3f8f5f; }
.studio-grade { max-width: 860px; }
.studio-grade-q { border: 1px solid #e3e7ec; border-radius: 6px; padding: .6rem .7rem; margin: .5rem 0; display: flex; flex-direction: column; gap: .3rem; }
.studio-grade-q-head { display: flex; align-items: center; gap: .5rem; }
.studio-grade-toggle { display: flex; gap: .3rem; }
.studio-pass-on { background: #3f8f5f; border-color: #3f8f5f; color: #fff; }
.studio-fail-on { background: #c0392b; border-color: #c0392b; color: #fff; }
.studio-grade-stem { font-weight: 600; color: #1f2733; }
.studio-grade-line { display: flex; gap: .6rem; font-size: .88rem; color: #1f2733; }
.studio-grade-label { flex: none; width: 11rem; font-size: .72rem; letter-spacing: .04em; text-transform: uppercase; color: #1f2733; padding-top: .1rem; }
.studio-grade-feedback span:last-child { font-style: italic; }
.studio-grade-foot { display: flex; flex-direction: column; gap: .5rem; margin-top: .8rem; padding-top: .6rem; border-top: 1px solid #e3e7ec; }
.studio-grade-score { display: flex; align-items: flex-end; gap: .6rem; color: #1f2733; }
.studio-grade-number { width: 5rem; }
.studio-grade-passed { display: flex; align-items: center; gap: .3rem; color: #1f2733; }
.studio-grade-return { border: 1px solid #2f6db5; border-radius: 6px; background: #f6f8fa; padding: .6rem .7rem; display: flex; flex-direction: column; gap: .4rem; color: #1f2733; }
.studio-grade-code { font-family: Consolas, monospace; font-size: .85rem; background: #fff; border: 1px solid #d0d6de; border-radius: 3px; padding: .3rem .5rem; color: #1f2733; }

.studio-place { width: 460px; }
.studio-place-list { display: flex; flex-direction: column; max-height: 50vh; overflow-y: auto; margin-top: .5rem; }
.studio-place-row { background: none; border: none; text-align: left; padding: .3rem .4rem; cursor: pointer; font: inherit; }
.studio-place-row:hover { background: #eaf1fb; }
