/* Homework Mode (homework.js): the cover screens, made to look like the real thing, and its Config controls. */
#hw-cover { position: fixed; inset: 0; z-index: 2147483647; overflow: hidden; color: #202124; font-family: Arial, "Helvetica Neue", Helvetica, sans-serif; }
#hw-cover[hidden] { display: none !important; }
#hw-cover .material-symbols-outlined { font-family: "Material Symbols Outlined"; font-size: 20px; line-height: 1; font-variation-settings: "FILL" 0, "wght" 400; }

/* ---- Google Docs */
.hwd { position: absolute; inset: 0; display: flex; flex-direction: column; background: #f9fbfd; }
.hwd-top { display: flex; align-items: center; gap: 10px; padding: 8px 16px 0 14px; background: #f9fbfd; }
.hwd-logo { width: 28px; height: 38px; flex: none; margin-top: 2px; }
.hwd-tb { flex: 1; min-width: 0; }
.hwd-name { display: flex; align-items: center; gap: 8px; color: #444746; }
.hwd-title { font-size: 18px; color: #1f1f1f; padding: 2px 6px; border-radius: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 60vw; }
.hwd-name .material-symbols-outlined { font-size: 18px; }
.hwd-menu { display: flex; gap: 2px; font-size: 14px; color: #1f1f1f; margin: 1px 0 4px; overflow: hidden; white-space: nowrap; }
.hwd-menu span { padding: 3px 7px; border-radius: 4px; }
.hwd-menu span:hover { background: #e3e8ee; }
.hwd-right { display: flex; align-items: center; gap: 14px; color: #444746; }
.hwd-meet { display: flex; align-items: center; padding: 6px 4px 6px 10px; border-radius: 20px; }
.hwd-share { display: flex; align-items: center; gap: 6px; height: 40px; padding: 0 22px 0 18px; border: 0; border-radius: 20px; background: #c2e7ff; color: #001d35; font: 500 14px Arial, sans-serif; cursor: default; }
.hwd-share .material-symbols-outlined { font-size: 18px; }
.hwd-av { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: #1e8e3e; color: #fff; font-size: 15px; }
.hwd-toolbar { display: flex; align-items: center; gap: 2px; margin: 6px 16px 0; padding: 4px 10px; height: 40px; border-radius: 20px; background: #edf2fa; color: #444746; font-size: 14px; overflow: hidden; white-space: nowrap; }
.hwd-toolbar i { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 4px; font-style: normal; flex: none; }
.hwd-toolbar i:hover, .hwd-drop:hover { background: #dde3ea; }
.hwd-sep { width: 1px; height: 20px; background: #c7c7c7; margin: 0 6px; flex: none; }
.hwd-drop { display: flex; align-items: center; padding: 0 4px 0 8px; height: 28px; border-radius: 4px; flex: none; }
.hwd-size { border: 1px solid #747775; border-radius: 4px; padding: 2px 6px; margin: 0 2px; font-size: 13px; }
.hwd-mode { margin-left: auto; display: flex; align-items: center; padding-left: 10px; }
.hwd-ruler { height: 22px; margin: 6px 0 0; display: flex; justify-content: center; }
.hwd-ruler div { width: min(816px, calc(100vw - 32px)); height: 18px; background: repeating-linear-gradient(90deg, #c7c7c7 0 1px, transparent 1px 12px) bottom / 100% 5px no-repeat, #fff; border-bottom: 1px solid #e0e0e0; }
.hwd-canvas { flex: 1; overflow-y: auto; padding: 12px 16px 60px; background: #f9fbfd; }
.hwd-page { box-sizing: border-box; width: min(816px, 100%); min-height: 1056px; margin: 0 auto; padding: 96px 96px 120px; background: #fff; box-shadow: 0 1px 3px 1px rgba(60, 64, 67, 0.15); border: 1px solid #e0e0e0;
    font: 11pt/1.5 Arial, sans-serif; color: #000; outline: none; caret-color: #000; white-space: pre-wrap; }
.hwd-page p { margin: 0 0 1em; text-indent: 0.5in; }
.hwd-page p:first-child { text-align: center; text-indent: 0; font-weight: 700; }

/* ---- a PDF in the browser's viewer */
.hws { position: absolute; inset: 0; display: flex; flex-direction: column; background: #525659; }
.hws-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 56px; padding: 0 16px; background: #323639; color: #f1f1f1; font-size: 14px; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4); flex: none; }
.hws-bar .material-symbols-outlined { font-size: 22px; color: #f1f1f1; }
.hws-l, .hws-mid, .hws-r { display: flex; align-items: center; gap: 16px; min-width: 0; }
.hws-l b { font-weight: 400; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hws-pg input { width: 28px; padding: 3px 0; border: 0; border-radius: 2px; background: #191b1c; color: #f1f1f1; text-align: center; font: inherit; }
.hws-sep { width: 1px; height: 22px; background: #5f6368; }
.hws-zoom { padding: 3px 8px; background: #191b1c; border-radius: 2px; }
.hws-canvas { flex: 1; overflow-y: auto; padding: 16px 12px 40px; }
.hws-page { position: relative; box-sizing: border-box; width: min(816px, 100%); min-height: 1056px; margin: 0 auto 12px; padding: 64px 72px; background: #fff; color: #111; font: 14px/1.5 "Times New Roman", Times, serif; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35); }
.hws-head { display: flex; justify-content: space-between; gap: 18px; font-size: 14px; margin-bottom: 26px; }
.hws-head i { display: inline-block; width: 190px; border-bottom: 1px solid #111; }
.hws-head i.s { width: 100px; } .hws-head i.xs { width: 44px; }
.hws-course { font-size: 13px; color: #333; margin-bottom: 2px; }
.hws-page h1 { font: 700 22px/1.3 Arial, sans-serif; margin: 0 0 10px; color: #111; }
.hws-dir { margin: 0 0 18px; }
.hws-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; padding-left: 22px; margin: 0; }
.hws-list li { min-height: 190px; padding-left: 4px; }
.hws-no { position: absolute; bottom: 26px; left: 0; right: 0; text-align: center; font-size: 12px; color: #444; }

@media (max-width: 760px) {
    .hwd-menu, .hwd-right > .material-symbols-outlined, .hwd-meet, .hwd-toolbar i:nth-child(n+8), .hwd-drop:nth-of-type(n+3) { display: none; }
    .hwd-share { height: 34px; padding: 0 14px; }
    .hwd-page { padding: 40px 28px 80px; min-height: 100vh; }
    .hws-mid { display: none; }
    .hws-page { padding: 36px 26px; min-height: auto; font-size: 13px; }
    .hws-list { grid-template-columns: 1fr; }
    .hws-list li { min-height: 110px; }
    .hws-head { flex-wrap: wrap; gap: 8px 14px; }
    .hws-head i { width: 120px; }
}

/* ---- Config → Homework */
.hk-covers { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.hk-pick { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; padding: 10px; border-radius: calc(16px * var(--round, 1)); border: 1px solid var(--line-strong); background: rgba(var(--ink-rgb), 0.03); color: var(--text-main); font: 600 0.9rem var(--font-ui); cursor: pointer; text-align: left; transition: 0.2s; }
.hk-pick small { font-weight: 500; font-size: 0.72rem; color: var(--text-muted); }
.hk-pick:hover { border-color: rgba(var(--accent-rgb), 0.5); }
.hk-pick.on { border-color: var(--accent-cyan); box-shadow: 0 0 0 2px rgba(var(--accent-rgb), 0.35); }
.hk-mini { display: flex; flex-direction: column; gap: 4px; width: 100%; height: 62px; margin-bottom: 6px; padding: 9px 12px; border-radius: 8px; box-sizing: border-box; }
.hk-mini.docs { background: linear-gradient(#edf2fa 0 14px, #f9fbfd 14px); padding-top: 22px; }
.hk-mini.sheet { background: linear-gradient(#323639 0 12px, #525659 12px); padding-top: 18px; }
.hk-mini i { display: block; height: 4px; border-radius: 2px; background: #c6cdd6; }
.hk-mini.docs i { background: #c9d4e3; margin: 0 18%; }
.hk-mini.sheet i { background: #fff; margin: 0 22%; }
.hk-mini i:nth-child(2) { margin-right: 30%; } .hk-mini i:nth-child(4) { margin-right: 40%; }
.hk-field { display: block; margin: 0 0 10px; font-size: 0.78rem; color: var(--text-muted); }
.hk-field input { display: block; width: 100%; box-sizing: border-box; margin-top: 4px; padding: 10px 12px; border-radius: calc(12px * var(--round, 1)); border: 1px solid var(--line-strong); background: rgba(var(--shade-rgb, 0, 0, 0), 0.25); color: var(--text-main); font: 500 0.95rem var(--font-ui); }
.hk-field input:focus { outline: none; border-color: var(--accent-cyan); }
.hk-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.hk-chips button { padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line-strong); background: transparent; color: var(--text-muted); font: 600 0.8rem var(--font-ui); cursor: pointer; }
.hk-chips button.on { color: var(--on-accent); background: var(--grad-accent); border-color: transparent; }
.hk-small { padding: 8px 14px; font-size: 0.82rem; }
.hk-small.spun .material-symbols-outlined { transition: transform 0.4s; transform: rotate(360deg); }
.hk-note { margin-top: 2px; }
.hk-link { background: none; border: 0; padding: 0; color: var(--accent-cyan); font: inherit; font-size: 0.82rem; cursor: pointer; text-decoration: underline; }
.hk-try { width: 100%; justify-content: center; margin-top: 8px; }
.hk-keys { display: flex; flex-direction: column; gap: 8px; margin-bottom: 10px; }
.hk-key { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border-radius: calc(14px * var(--round, 1)); border: 1px solid var(--line); background: rgba(var(--ink-rgb), 0.03); }
.hk-key > span { display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: 10px; color: var(--text-main); font-size: 0.9rem; }
.hk-key > span .material-symbols-outlined { grid-row: span 2; color: var(--accent-cyan); }
.hk-key small { grid-column: 2; color: var(--text-muted); font-size: 0.72rem; }
.hk-cap { min-width: 70px; padding: 8px 12px; border-radius: 10px; border: 1px solid var(--line-strong); border-bottom-width: 3px; background: rgba(var(--ink-rgb), 0.06); color: var(--text-main); font: 600 0.85rem var(--font-mono); cursor: pointer; }
.hk-cap.rec { border-color: var(--accent-cyan); color: var(--accent-cyan); animation: hwBlink 1s infinite; }
@keyframes hwBlink { 50% { opacity: 0.55; } }

/* (Quasar's own heading look, a gradient with a glow, must not show through on a cover) */
#hw-cover h1, #hw-cover h2, #hw-cover p, #hw-cover li { background: none !important; -webkit-background-clip: border-box !important; background-clip: border-box !important; -webkit-text-fill-color: currentColor !important;
    text-shadow: none !important; filter: none !important; animation: none !important; text-transform: none !important; letter-spacing: normal !important; }
