/* ---------- FORMS, SCHEDULING, AUTOMATIONS, PORTAL, INBOX · continued ---------- */
/* student: the shared page head (serif title, dotted subtitle, actions on the end), a glass list toolbar, and records as glass panels with Linear rows */
html body.workspace-framed.rt-route:not(#_):not(._) #panel-student #student-root { display: grid !important; gap: 16px !important; align-content: start; }
html body.workspace-framed.rt-route:not(#_):not(._) #panel-student #student-root > header.rt-page-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "title actions" "sub actions"; align-items: end; gap: 0 20px; margin: 4px 0 0; }
html body.workspace-framed.rt-route:not(#_):not(._) #panel-student #student-root > header.rt-page-head > h1 { grid-area: title; margin: 0; }
html body.workspace-framed.rt-route:not(#_):not(._) #panel-student #student-root > header.rt-page-head > p { grid-area: sub; display: flex; align-items: center; gap: 10px; margin: 10px 0 0; font-size: 15px; font-weight: 500; color: var(--at-ink); }
html body.workspace-framed.rt-route:not(#_):not(._) #panel-student #student-root > header.rt-page-head > p::before { content: ""; flex: none; inline-size: 8px; block-size: 8px; border-radius: 50%; background: var(--at-amber); box-shadow: 0 0 0 3px var(--at-amber-soft); }
html body.workspace-framed.rt-route:not(#_):not(._) #panel-student #student-root > header.rt-page-head > .student-actions { grid-area: actions; justify-content: flex-end; }
html body.workspace-framed.rt-route:not(#_):not(._) #panel-student #student-root > header.rt-page-head > .student-actions > button:not(:disabled) { background: var(--at-glass-2) !important; border-color: var(--at-line) !important; box-shadow: var(--at-sheen) !important; color: var(--at-ink) !important; }
html body.workspace-framed.rt-route:not(#_):not(._) #panel-student #student-root > header.rt-page-head > .student-actions > button[data-student-action="new-assignment"]:not(:disabled) { background: var(--at-green) !important; border-color: var(--at-green-edge) !important; color: var(--at-green-ink) !important; font-weight: 600; box-shadow: var(--at-green-glow) !important; }
html body.workspace-framed.rt-route:not(#_):not(._) #panel-student #student-root > .tool-guidance { margin: -6px 0 0 !important; }
html body.workspace-framed.rt-route:not(#_):not(._) #panel-student #student-root > #student-status { margin: -4px 0 0; font-size: 13px; line-height: 1.55; color: var(--at-ink-2); text-shadow: var(--at-text-shadow); }
html body.workspace-framed.rt-route:not(#_):not(._) #panel-student #student-root > div:has(> label) { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.4fr); gap: 12px; align-items: end; padding: 12px 14px; border: 1px solid var(--at-line); border-radius: var(--at-r-lg); background: var(--at-pane); box-shadow: var(--at-sheen), var(--at-shadow); }
html body.workspace-framed.rt-route:not(#_):not(._) #panel-student #student-root > div:has(> label) > label { display: flex !important; flex-direction: column; gap: 6px; min-width: 0; font-size: 13px; color: var(--at-ink-3); }
html body.workspace-framed.rt-route:not(#_):not(._) #panel-student #student-root > div:has(> label) :is(input, select):not(:disabled) { background: var(--at-fill-1) !important; box-shadow: none !important; }
html body.workspace-framed.rt-route:not(#_):not(._) #panel-student #student-root > section#student-editor:not(:empty) { padding: 20px !important; display: grid; gap: 12px; }
html body.workspace-framed.rt-route:not(#_):not(._) #panel-student #student-root > section#student-editor > form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; }
html body.workspace-framed.rt-route:not(#_):not(._) #panel-student #student-root > section#student-editor > form > :is(label, div, p) { min-width: 0; }
html body.workspace-framed.rt-route:not(#_):not(._) #panel-student #student-root > section#student-editor > form > :is(p, .student-actions, [role="alert"]) { grid-column: 1 / -1; }
html body.workspace-framed.rt-route:not(#_):not(._) #panel-student #student-root > section#student-editor > form label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--at-ink-3); }
html body.workspace-framed.rt-route:not(#_):not(._) #panel-student #student-root > section:empty { display: none; }
/* saved work: a grid of records; each record is one glass panel, never a panel inside a panel */
html body.workspace-framed.rt-route:not(#_):not(._) #panel-student #student-root > #student-saved-work { display: grid !important; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 16px !important; align-items: start; padding: 0 !important; border: 0 !important; background: none !important; box-shadow: none !important; }
html body.workspace-framed.rt-route:not(#_):not(._) #panel-student #student-saved-work > :is(article.rt-card, #student-notes) { box-sizing: border-box; display: grid; gap: 8px; min-width: 0; margin: 0; padding: 18px 20px !important; border: 1px solid var(--at-line) !important; border-radius: var(--at-r-lg) !important; background: var(--at-pane) !important; box-shadow: var(--at-sheen), var(--at-shadow) !important; color: var(--at-ink); }
html body.workspace-framed.rt-route:not(#_):not(._) #panel-student #student-saved-work > :is(#student-notes, p) { grid-column: 1 / -1; }
html body.workspace-framed.rt-route:not(#_):not(._) #panel-student #student-saved-work > p { margin: 0; padding: 22px 20px; border-radius: var(--at-r-lg); background: var(--at-glass-2); box-shadow: inset 0 0 0 1px var(--at-line); font-size: 14px; line-height: 1.55; color: var(--at-ink-2); }
html body.workspace-framed.rt-route:not(#_):not(._) #panel-student #student-saved-work > article.rt-card > h2 { margin: 0; font-family: var(--at-serif) !important; font-size: 24px !important; font-weight: 400 !important; line-height: 1.15 !important; letter-spacing: -.01em; color: var(--at-ink); }
html[lang="ar"] body.workspace-framed.rt-route:not(#_):not(._) #panel-student #student-saved-work > article.rt-card > h2 { font-family: var(--at-sans) !important; font-size: 18px !important; font-weight: 600 !important; line-height: 1.4 !important; letter-spacing: 0; }
html body.workspace-framed.rt-route:not(#_):not(._) #panel-student #student-saved-work > article.rt-card > :is(p, bdi) { margin: 0; font-size: 13px; line-height: 1.55; color: var(--at-ink-3); }
html body.workspace-framed.rt-route:not(#_):not(._) #panel-student #student-saved-work > article.rt-card > p[data-student-copy="overdue"] { justify-self: start; padding: 2px 9px; border-radius: 8px; background: var(--at-rose-soft); color: var(--at-rose); font-weight: 500; }
html body.workspace-framed.rt-route:not(#_):not(._) #panel-student #student-saved-work > article.rt-card > h3, html body.workspace-framed.rt-route:not(#_):not(._) #panel-student #student-notes > h2 { margin: 8px 0 0; font-family: var(--at-sans) !important; font-size: 12px !important; font-weight: 600 !important; letter-spacing: .08em !important; text-transform: uppercase; color: var(--at-ink-3) !important; }
html[lang="ar"] body.workspace-framed.rt-route:not(#_):not(._) #panel-student #student-saved-work > article.rt-card > h3, html[lang="ar"] body.workspace-framed.rt-route:not(#_):not(._) #panel-student #student-notes > h2 { font-size: 13px !important; letter-spacing: 0 !important; text-transform: none; }
html body.workspace-framed.rt-route:not(#_):not(._) #panel-student #student-saved-work > article.rt-card > ul { display: grid; margin: 0; padding: 0; list-style: none; }
html body.workspace-framed.rt-route:not(#_):not(._) #panel-student #student-saved-work > article.rt-card > ul > li { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; min-height: 48px; padding: 6px 10px !important; }
html body.workspace-framed.rt-route:not(#_):not(._) #panel-student #student-saved-work > article.rt-card > ul > li > bdi { flex: 1 1 auto; min-width: 0; font-size: 14px; color: var(--at-ink); }
html body.workspace-framed.rt-route:not(#_):not(._) #panel-student #student-saved-work > article.rt-card > ul > li > span { font-size: 12px; color: var(--at-ink-3); }
html body.workspace-framed.rt-route:not(#_):not(._) #panel-student #student-saved-work > article.rt-card > [data-student-block] { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; min-height: 44px; padding: 4px 10px; border-radius: 10px; background: var(--at-fill-1); font-size: 13px; color: var(--at-ink-2); }
html body.workspace-framed.rt-route:not(#_):not(._) #panel-student #student-saved-work > article.rt-card > .student-actions { margin-top: 4px; gap: 6px !important; }
html body.workspace-framed.rt-route:not(#_):not(._) #panel-student #student-saved-work > article.rt-card .student-actions > button:not(:disabled), html body.workspace-framed.rt-route:not(#_):not(._) #panel-student #student-saved-work > :is(article.rt-card, #student-notes) li > button:not(:disabled) { min-height: 40px !important; padding: 0 12px !important; font-size: 13px; }
html body.workspace-framed.rt-route:not(#_):not(._) #panel-student #student-saved-work > #student-notes > article.rt-card { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin: 0; padding: 12px 10px !important; border: 0 !important; border-radius: 12px !important; background: transparent !important; box-shadow: none !important; }
html body.workspace-framed.rt-route:not(#_):not(._) #panel-student #student-saved-work > #student-notes > article.rt-card + article.rt-card { border-top: 1px solid var(--at-line-2) !important; border-radius: 0 !important; }
html body.workspace-framed.rt-route:not(#_):not(._) #panel-student #student-saved-work > #student-notes > article.rt-card > :is(h3, p) { flex: 1 1 100%; }
html body.workspace-framed.rt-route:not(#_):not(._) #panel-student #student-saved-work > #student-notes > article.rt-card > button:not(:disabled) { min-height: 40px !important; padding: 0 12px !important; font-size: 13px; }
html body.workspace-framed.rt-route:not(#_):not(._) #panel-student #student-notes > article.rt-card > h3 { margin: 0; font-size: 14px; font-weight: 600; color: var(--at-ink); }
html body.workspace-framed.rt-route:not(#_):not(._) #panel-student #student-notes > article.rt-card > p { margin: 0; font-size: 13px; line-height: 1.55; color: var(--at-ink-2); }
html body.workspace-framed.rt-route:not(#_):not(._) #panel-student #student-notes > p { margin: 0; font-size: 13px; color: var(--at-ink-3); }
@media (max-width: 800px) {
  html body.workspace-framed.rt-route:not(#_):not(._) #panel-student #student-root > header.rt-page-head { grid-template-columns: minmax(0, 1fr); grid-template-areas: "title" "sub" "actions"; gap: 0; }
  html body.workspace-framed.rt-route:not(#_):not(._) #panel-student #student-root > header.rt-page-head > .student-actions { justify-content: flex-start; margin-top: 14px; }
  html body.workspace-framed.rt-route:not(#_):not(._) #panel-student #student-root > div:has(> label) { grid-template-columns: minmax(0, 1fr); }
  html body.workspace-framed.rt-route:not(#_):not(._) #panel-student #student-root > section#student-editor > form { grid-template-columns: minmax(0, 1fr); }
}
/* ---------- STUDENT · bento r2 (work pages) ---------- */
/* No courses yet: the start sentence and Linked notes become two strips side by side instead of two full-width bands. */
html body.workspace-framed.rt-route:not(#_):not(._) #panel-student #student-saved-work > p:not(#_) { display: flex; align-items: center; min-height: 52px; padding: 4px 20px; }
html body.workspace-framed.rt-route:not(#_):not(._) #panel-student #student-saved-work > #student-notes:not(:has(> article.rt-card)):not(#_) { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; min-height: 52px; padding: 10px 20px !important; }
html body.workspace-framed.rt-route:not(#_):not(._) #panel-student #student-notes:not(:has(> article.rt-card)) > h2:not(#_) { margin: 0; }
@media (min-width: 801px) {
  html body.workspace-framed.rt-route:not(#_):not(._) #panel-student #student-root > #student-saved-work:not(:has(> article.rt-card)):has(> #student-notes):has(> p):not(#_) { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; }
  html body.workspace-framed.rt-route:not(#_):not(._) #panel-student #student-saved-work:not(:has(> article.rt-card)):has(> #student-notes):has(> p) > :is(#student-notes, p):not(#_) { grid-column: auto; }
}
