.professor-page { overflow:auto; min-height:100svh; display:flex; flex-direction:column; }
.professor-page .site-header { position:relative; }
.professor-main { width:min(1060px,100%); margin:36px auto 80px; padding:0 30px; flex:1; }
.back-link { color:var(--muted); font-size:.82rem; }
.back-link:hover { color:var(--ink); }
.eyebrow { margin:42px 0 16px; color:var(--accent); font-size:.7rem; font-weight:750; letter-spacing:.16em; }
.professor-main h1 { margin:0; font-size:clamp(2rem,4vw,3.35rem); font-weight:570; line-height:1.12; letter-spacing:-.045em; }
.page-intro { max-width:610px; color:var(--muted); line-height:1.7; margin:22px 0 32px; }
.professor-main:has(#login-screen:not([hidden])) { display:flex; flex-direction:column; justify-content:center; margin-block:0; padding-block:48px; }
.login-section { text-align:center; }
.login-section h1 { margin:28px 0 10px; font-size:1.2rem; line-height:1.4; font-weight:650; letter-spacing:0; }
.login-gag { margin:0; color:var(--muted); font-size:1rem; line-height:1.6; text-wrap:balance; }
.professor-main:has(#login-screen:not([hidden])) .operation-status { margin:20px 0 0; text-align:center; }
.professor-main:has(#login-screen:not([hidden])) .operation-status:empty { margin:0; min-height:0; }
.professor-main:has(#login-screen:not([hidden])) .error-message { align-self:center; max-width:440px; margin:20px 0 0; }
.primary-button { display:inline-flex; align-items:center; justify-content:center; gap:13px; min-height:46px; padding:12px 20px; border:1px solid var(--line); border-radius:6px; background:var(--ink); color:var(--bg); cursor:pointer; font:inherit; font-size:.9rem; font-weight:600; line-height:1.3; }
.google-login-button { width:240px; max-width:100%; min-height:48px; border-color:#d8dee8; background:#f8fafc; color:#111827; }
.primary-button:hover { filter:brightness(.91); }
.muted { color:var(--muted); font-size:.82rem; line-height:1.6; }
button:disabled { cursor:wait; opacity:.5; }
.operation-status { min-height:24px; color:var(--muted); font-size:.85rem; line-height:1.6; }
.error-message { border-left:2px solid #e59b7c; padding:8px 16px; color:var(--ink); font-size:.88rem; line-height:1.6; }
.session-line { display:flex; justify-content:space-between; gap:20px; align-items:center; padding:20px 0; border-block:1px solid var(--line); color:var(--muted); font-size:.8rem; overflow-wrap:anywhere; }
.text-button { border:0; padding:8px 0; background:none; color:var(--accent); cursor:pointer; font:inherit; white-space:nowrap; }
.text-button:hover { text-decoration:underline; }
.filter-line { display:grid; grid-template-columns:1fr 1fr; gap:28px; margin:32px 0 36px; }
.filter-line label,.schedule-form label { display:flex; flex-direction:column; gap:9px; color:var(--muted); font-size:.8rem; }
.filter-line select,.filter-line input,.schedule-form input { width:100%; min-height:44px; border:1px solid var(--line); border-radius:5px; padding:10px 12px; background:var(--bg); color:var(--ink); font:inherit; }
.list-heading { display:flex; justify-content:space-between; align-items:baseline; gap:16px; padding-bottom:12px; }
.list-heading :is(h1,h2) { font-size:1.12rem; font-weight:600; letter-spacing:0; margin:0; }
.list-heading p { margin:0; }
.solution-row { padding:24px 0; border-top:1px solid var(--line); }
.row-main { display:flex; align-items:center; justify-content:space-between; gap:24px; }
.task-title { font-size:1rem; line-height:1.5; font-weight:550; margin:0 0 7px; }
.task-title a:hover { color:var(--accent); }
.task-meta { display:flex; align-items:center; flex-wrap:wrap; gap:12px; }
.visibility-label { display:inline-flex; align-items:center; gap:7px; color:var(--muted); font-size:.75rem; }
.visibility-label::before { content:''; width:5px; height:5px; border-radius:50%; background:currentColor; }
.visibility-label[data-mode="public"] { color:#63bda6; }
.visibility-label[data-mode="scheduled"] { color:var(--accent); }
.reference-link { font-size:.75rem; color:var(--muted); text-decoration:underline; text-underline-offset:3px; }
.preview-link { font-size:.75rem; color:var(--accent); text-decoration:underline; text-underline-offset:3px; }
.teacher-session { padding:16px 0; border-block:1px solid var(--line); }
.teacher-session p { margin:0 0 8px; }
.teacher-tools { display:flex; align-items:center; flex-wrap:wrap; gap:8px 20px; }
.teacher-tools .text-button { font-size:.75rem; }
.row-actions { display:flex; align-items:center; gap:22px; flex-shrink:0; }
.row-actions .text-button { font-size:.8rem; }
.publish-switch { display:inline-flex; align-items:center; gap:11px; min-width:128px; padding:10px 0; border:0; background:none; color:var(--ink); font:inherit; font-weight:500; font-size:.82rem; line-height:1.4; cursor:pointer; text-align:left; }
.switch-track { display:inline-block; position:relative; width:34px; height:20px; border:1px solid var(--muted); border-radius:12px; background:transparent; }
.switch-track::after { content:''; position:absolute; top:3px; left:3px; width:12px; height:12px; background:var(--muted); border-radius:50%; transition:transform .16s; }
.publish-switch[aria-checked="true"] .switch-track { border-color:var(--accent); background:var(--accent); }
.publish-switch[aria-checked="true"] .switch-track::after { background:var(--bg); transform:translateX(14px); }
.schedule-form { margin-top:20px; padding:20px 0 0; border-top:1px solid var(--line-soft); }
.schedule-fields { display:flex; align-items:end; gap:16px; flex-wrap:wrap; }
.schedule-fields label { min-width:240px; }
.schedule-form .primary-button { min-height:43px; font-size:.8rem; }
.schedule-form .muted { margin-bottom:0; }
.panel-note { margin:30px 0 0; max-width:720px; color:var(--muted); font-size:.77rem; line-height:1.8; }
.professor-footer { padding:24px 30px; text-align:center; color:var(--footer); font-size:.75rem; }
.download-actions { display:flex; gap:16px; flex-wrap:wrap; margin:26px 0; }
.pdf-preview { display:block; width:100%; min-height:70vh; border:1px solid var(--line); border-radius:4px; background:white; }
.download-actions a { color:var(--accent); padding:12px 0; }
:is(button,a,input,select):focus-visible { outline:2px solid var(--accent); outline-offset:4px; }
@media(max-width:700px) {
  .professor-main { margin-top:22px; padding-inline:22px; }
  .eyebrow { margin-top:32px; }
  .filter-line { grid-template-columns:1fr; gap:18px; }
  .row-main { align-items:stretch; flex-direction:column; gap:14px; }
  .row-actions { justify-content:space-between; flex-direction:row-reverse; }
  .session-line { flex-wrap:wrap; gap:4px; }
  .list-heading { align-items:start; flex-direction:column; gap:5px; }
  .schedule-fields { align-items:stretch; flex-direction:column; }
  .schedule-fields label { min-width:0; }
  .schedule-fields .text-button { text-align:left; }
}
@media(prefers-reduced-motion:reduce) { .switch-track::after { transition:none; } }
@media print { .professor-page .site-header,.professor-footer,.download-actions { display:none; } }
