:root{--bg:#f7f5ef;--paper:#fffefa;--text:#343330;--muted:#77746e;--line:#e5e0d5;--yellow:#ffd85a;--yellow2:#f5c927;--green:#e5f2df;--red:#f7e3df;--blue:#e5eff7}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--bg);color:var(--text);font:15px/1.55 Inter,"Segoe UI",Arial,sans-serif}a{color:inherit;text-decoration:none}button,input,textarea,select{font:inherit;color:inherit}.topbar{position:sticky;top:0;z-index:10;background:rgba(255,254,250,.94);border-bottom:1px solid var(--line);backdrop-filter:blur(14px)}.topbar-inner{max-width:1180px;height:66px;margin:auto;padding:0 24px;display:flex;align-items:center;justify-content:space-between}.brand{display:flex;align-items:center;gap:9px;font-size:18px}.brand span{width:34px;height:34px;display:grid;place-items:center;background:var(--yellow);border-radius:9px;font-weight:800}.topbar nav{display:flex;align-items:center;gap:18px;font-size:14px}.topbar nav form{margin:0}.link-button,.danger-link{padding:0;border:0;background:none;cursor:pointer}.link-button{color:var(--muted)}.danger-link{color:#a34e45}.container{max-width:1180px;margin:auto;padding:54px 24px 80px}h1{margin:8px 0 14px;font-size:clamp(38px,5vw,62px);line-height:1.03;letter-spacing:-.05em}h2{line-height:1.15;letter-spacing:-.025em}.eyebrow{margin:0;color:#8b6e09;font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.13em}.muted{color:var(--muted)}.hero{padding:90px 0 130px;max-width:850px}.hero h1{font-size:clamp(54px,8vw,92px)}.hero>p:not(.eyebrow){font-size:20px;max-width:620px;color:var(--muted)}.actions{display:flex;align-items:center;gap:16px;flex-wrap:wrap}.button{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:10px 18px;border:0;border-radius:10px;background:var(--yellow);font-weight:700;cursor:pointer}.button:hover{background:var(--yellow2)}.button.secondary{background:#ebe7de}.button.small{min-height:36px;padding:7px 12px;font-size:13px}.text-link{border:0;background:none;font-weight:650;cursor:pointer}.page-head{display:flex;align-items:flex-end;justify-content:space-between;gap:30px;margin-bottom:34px}.page-head p{max-width:700px;color:var(--muted)}.section-title{margin-top:42px}.simple-list{border-top:1px solid var(--line)}.list-row{min-height:130px;padding:25px 4px;display:flex;align-items:center;justify-content:space-between;gap:30px;border-bottom:1px solid var(--line)}.list-row h2{margin:8px 0;font-size:25px}.list-row p{margin:0;color:var(--muted)}.list-row.compact{min-height:98px}.list-row.compact h2{font-size:19px}.empty{padding:42px 0;color:var(--muted)}.review-callout{margin-bottom:30px;padding:18px 22px;display:flex;align-items:center;gap:16px;border-radius:13px;background:var(--yellow)}.review-callout b{font-size:30px}.review-callout strong{margin-left:auto}.status{display:inline-flex;padding:4px 9px;border-radius:999px;background:#ebe7de;color:#68645c;font-size:11px;font-weight:750;white-space:nowrap}.status.published,.status.reviewed{background:var(--green);color:#3c6a3b}.status.pending{background:var(--blue);color:#476477}.status.archived,.status.blocked{background:var(--red);color:#8c4f48}.status.new,.status.draft{background:#ece8df}.notice{margin-bottom:20px;padding:12px 15px;border-radius:10px;background:var(--blue)}.notice.success{background:var(--green)}.notice.error{background:var(--red)}.form-page{max-width:520px;margin:25px auto;padding:34px;border-radius:16px;background:var(--paper)}.form-page.wide{max-width:760px}.form-page h1{font-size:44px}.form-stack{display:flex;flex-direction:column;gap:18px}.form-stack>div{display:flex;flex-direction:column;gap:7px}.form-stack label{font-weight:650}.form-stack input,.form-stack textarea,.form-stack select,.search input,.filters input,.filters select,.inline-form input{width:100%;padding:11px 13px;border:1px solid #d7d1c5;border-radius:9px;background:#fff}.form-stack textarea{min-height:115px;resize:vertical}.form-stack input:focus,.form-stack textarea:focus,.form-stack select:focus,input:focus,select:focus{outline:3px solid rgba(255,216,90,.45);border-color:#b59a35}.errorlist{margin:0;padding:0;list-style:none;color:#a34e45;font-size:13px}.helptext{color:var(--muted);font-size:12px}.form-foot{margin:22px 0 0;color:var(--muted)}.form-foot a{text-decoration:underline}.search{display:flex;gap:10px;margin-bottom:25px}.filters{display:grid;grid-template-columns:2fr 1fr 1fr 1.4fr auto;gap:9px;margin-bottom:25px}.back{display:inline-block;margin-bottom:30px;color:var(--muted)}.course-head{align-items:flex-start}.tabs{display:flex;gap:22px;margin-bottom:42px;border-bottom:1px solid var(--line)}.tabs a{padding:11px 0;border-bottom:3px solid transparent}.tabs a:hover,.tabs a.active{border-color:var(--yellow2)}.section-head,.practice-head,.member-row{display:flex;align-items:center;justify-content:space-between;gap:22px}.practice{padding:28px 0;border-top:1px solid var(--line)}.practice-head{align-items:flex-start}.practice-head h2{margin:5px 0}.practice-head p{margin:0;color:var(--muted)}.task-list{margin-top:22px;padding-left:20px}.task-list>a,.task-list>div{min-height:56px;padding:11px 0;display:flex;align-items:center;justify-content:space-between;border-top:1px solid var(--line)}.task-list>div>a{flex:1;display:flex;justify-content:space-between}.task-list span{color:var(--muted);font-size:13px}.add-row{color:#7a620d}.manage-section{margin-top:50px;padding-top:30px;border-top:1px solid var(--line)}.inline-form{display:flex;gap:8px}.inline-form input{width:260px}.member-row{padding:15px 0;border-bottom:1px solid var(--line)}.member-row span{display:flex;flex-direction:column}.member-row small{color:var(--muted)}.member-row form{display:flex;align-items:center;gap:12px}.delete-course{margin-top:55px}.history>a{padding:14px 0;display:flex;justify-content:space-between;border-bottom:1px solid var(--line)}.profile-list{max-width:620px}.profile-list div{padding:18px 0;display:grid;grid-template-columns:180px 1fr;border-bottom:1px solid var(--line)}.profile-list dt{color:var(--muted)}.profile-list dd{margin:0;font-weight:650}.solve-layout{display:grid;grid-template-columns:minmax(280px,.8fr) minmax(500px,1.2fr);gap:36px;align-items:start}.statement{position:sticky;top:100px}.statement h1{font-size:48px}.prose p{line-height:1.75}.prose pre,.attempts pre{padding:15px;border-radius:10px;background:#eeeae1;white-space:pre-wrap}.workspace{overflow:hidden;border-radius:14px;background:var(--paper)}.runtime-line{padding:13px 16px;display:flex;justify-content:space-between;background:#45433f;color:#fff;font-size:12px}.CodeMirror{height:390px!important;background:#fdfcf8;font:14px/1.6 "Cascadia Code",Consolas,monospace}.workspace form>label{padding:16px;display:block}.workspace form>label textarea{width:100%;margin-top:7px;padding:10px;border:1px solid var(--line);border-radius:8px}.workspace .actions{padding:0 16px 16px}.workspace .actions .muted{font-size:12px;flex:1}.output{padding:16px;border-top:1px solid var(--line)}.output pre{min-height:70px;margin-bottom:0;padding:12px;border-radius:8px;background:#45433f;color:#faf9f5;white-space:pre-wrap}.attempts{margin-top:35px;padding:20px 0;border-top:1px solid var(--line)}.attempts>summary{font-weight:750;cursor:pointer}.attempts>article{padding:18px 0;border-bottom:1px solid var(--line)}.attempts article>div{display:flex;gap:15px}.review-layout{display:grid;grid-template-columns:1fr 360px;gap:30px}.code-view{min-height:420px;margin:0;padding:22px;overflow:auto;border-radius:12px;background:#45433f;color:#faf9f5;white-space:pre-wrap}.review-form{margin:0}.table-wrap{overflow:auto}table{width:100%;border-collapse:collapse;background:var(--paper)}th,td{padding:14px;text-align:left;border-bottom:1px solid var(--line)}th{font-size:12px;color:var(--muted)}td small{display:block;color:var(--muted)}
@media(max-width:850px){.topbar nav>a:not(:last-of-type){display:none}.container{padding:34px 18px 60px}.page-head{align-items:flex-start;flex-direction:column}.filters{grid-template-columns:1fr 1fr}.solve-layout,.review-layout{grid-template-columns:1fr}.statement{position:static}.practice-head{flex-direction:column}.task-list{padding-left:0}.hero{padding:55px 0}.inline-form{width:100%}.inline-form input{width:100%}}
@media(max-width:520px){.topbar-inner{padding:0 14px}.topbar nav{gap:10px}.container{padding-left:14px;padding-right:14px}.form-page{padding:24px 18px}.filters{grid-template-columns:1fr}.list-row,.section-head{align-items:flex-start;flex-direction:column}.review-callout{align-items:flex-start;flex-direction:column}.review-callout strong{margin-left:0}.task-list>div>a,.task-list>a,.history>a{align-items:flex-start;flex-direction:column}.workspace .actions{align-items:stretch;flex-direction:column}.profile-list div{grid-template-columns:1fr}.tabs{overflow:auto}}

/* v0.2: one calm vertical learning flow. */
.task-heading{max-width:820px;margin-bottom:36px}.task-heading>p:last-child{color:var(--muted)}
.learning-section{margin:28px 0;padding:28px 30px;border:1px solid var(--line);border-radius:14px;background:#fff}
.learning-section h2{margin:3px 0 20px;font-size:28px}.theory-section{background:#fffdf7}.examples-section{background:#faf8f2;border-left:4px solid var(--yellow)}.tasks-section{margin-top:36px}.statement-section{background:#fff}
.section-kicker{margin:0 0 4px;color:#8b6e09;font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.12em}.task-meta{color:var(--muted);font-size:13px}.prose{max-width:850px}.prose p,.prose li{line-height:1.75}.prose li+li{margin-top:6px}.prose a{text-decoration:underline;text-decoration-color:#d6ad17;text-underline-offset:3px}.prose code{padding:2px 5px;border-radius:5px;background:#eeeae1;font:13px/1.5 "Cascadia Code",Consolas,monospace}.prose pre,.statement-section pre,.attempts pre{padding:16px;overflow:auto;border-radius:9px;background:#eeeae1;white-space:pre-wrap}.prose pre code{padding:0;background:transparent}
.task-material>summary{cursor:pointer;font-size:25px;font-weight:750;letter-spacing:-.025em}.task-material[open]>summary{margin-bottom:18px}
.workspace{margin:36px 0 0;overflow:hidden;border:1px solid var(--line);border-radius:14px;background:#fff}.workspace-heading{padding:24px 26px 18px;display:flex;align-items:flex-end;justify-content:space-between;gap:20px}.workspace-heading h2{margin:3px 0 0}.runtime-line{padding:11px 16px;background:#4a4844}.CodeMirror{height:430px!important;border-bottom:1px solid var(--line)}
.run-actions{padding:16px 18px;display:flex;gap:10px}.console{max-height:390px;overflow:auto;margin:0 18px 18px;border-radius:11px;background:#45433f;color:#faf9f5}.console-head{position:sticky;top:0;padding:10px 13px;display:flex;justify-content:space-between;background:#3c3a37;color:#d9d5cd;font-size:12px}.console-output,.console pre{min-height:110px;margin:0;padding:15px;font:14px/1.55 "Cascadia Code",Consolas,monospace;white-space:pre-wrap;word-break:break-word}.console-stderr{color:#ffb5a9}.console-system{color:#ffd85a}.console-input{padding:0 13px 14px;display:flex;align-items:center;gap:9px}.console-input[hidden]{display:none}.console-input input{flex:1;padding:8px 0;border:0;border-bottom:1px solid #817d75;background:transparent;color:#fff;font-family:"Cascadia Code",Consolas,monospace}.console-input input:focus{outline:0;border-color:var(--yellow)}.console-input button{padding:7px 10px;border:0;border-radius:7px;background:var(--yellow);cursor:pointer}.console-input span,.console-input .console-input{color:var(--yellow)}
.runtime-help{margin:0 18px 18px;padding:13px 15px;border-radius:9px;background:#fff4c6;color:#5d501f}.submit-row{padding:18px 22px;display:flex;align-items:center;justify-content:space-between;gap:20px;border-top:1px solid var(--line);color:var(--muted)}.attempts{margin-top:45px;padding-top:30px;border-top:1px solid var(--line)}.attempts h2{margin:3px 0}.attempts>article{padding:20px 0;border-bottom:1px solid var(--line)}.attempts article>div{display:flex;gap:15px}.sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
@media(max-width:700px){.learning-section{padding:22px 18px}.workspace-heading,.submit-row{align-items:flex-start;flex-direction:column}.CodeMirror{height:360px!important}.console{margin-left:10px;margin-right:10px}.task-material>summary{font-size:21px}}
[hidden]{display:none!important}
.course-progress{display:inline-block;margin:-14px 0 34px;padding:9px 13px;border-radius:9px;background:#fff4c6;color:#66571e}

/* v0.3: separate theory materials, restrained account UI. */
.google-button{width:100%;background:#fff;border:1px solid var(--line)}.google-button:hover{background:#faf8f2}.google-button:disabled{cursor:not-allowed;opacity:.58}.form-divider{display:flex;align-items:center;gap:12px;margin:20px 0;color:var(--muted);font-size:12px}.form-divider:before,.form-divider:after{content:"";height:1px;flex:1;background:var(--line)}
.nav-profile{display:flex;align-items:center;gap:7px}.nav-profile img,.nav-profile>span:first-child{width:28px;height:28px;border-radius:50%;object-fit:cover;display:grid;place-items:center;background:var(--yellow);font-size:11px;font-weight:800}.avatar{display:grid;place-items:center;overflow:hidden;border-radius:50%;background:var(--yellow);font-weight:800}.avatar.large{width:92px;height:92px;font-size:26px}.avatar img{width:100%;height:100%;object-fit:cover}.profile-heading{display:flex;align-items:center;gap:24px;margin-bottom:32px}.profile-heading h1{margin-bottom:7px}.profile-heading p{margin:0;color:var(--muted)}.profile-form{max-width:620px;padding:28px 0}.profile-details{margin-top:35px}.profile-list dd small{display:block;margin-top:6px;color:var(--muted);font-weight:400}
.lesson-block{padding:30px 0;border-top:1px solid var(--line)}.lesson-block>header{display:flex;align-items:flex-start;justify-content:space-between;gap:20px}.lesson-block h2{margin:3px 0}.lesson-block p{margin:4px 0;color:var(--muted)}.lesson-columns{display:grid;grid-template-columns:1fr 1fr;gap:40px;margin:22px 0 0 28px}.lesson-columns h3{margin:0 0 8px;font-size:14px}.lesson-columns a{display:flex;justify-content:space-between;padding:8px 0;border-top:1px solid var(--line)}.lesson-columns small{color:var(--muted)}
.material-head{align-items:flex-start}.material-prose{max-width:860px;font-size:16px}.material-prose h1{font-size:38px}.material-prose h2{margin-top:36px}.material-prose blockquote{margin:22px 0;padding:12px 20px;border-left:4px solid var(--yellow);background:#fffaf0}.material-prose table{margin:22px 0}.material-prose img{max-width:100%;height:auto}.editor-page{max-width:900px}.preview{margin-top:45px;padding-top:30px;border-top:1px solid var(--line)}.inline{display:inline}
@media(max-width:700px){.lesson-columns{grid-template-columns:1fr;margin-left:0}.profile-heading{align-items:flex-start}.nav-profile{font-size:0}}
.lesson-flow{margin:22px 0 0 28px}.lesson-flow>div+div{margin-top:24px}.lesson-flow h3{margin:0 0 8px;font-size:14px}.lesson-flow a{display:flex;justify-content:space-between;padding:8px 0;border-top:1px solid var(--line)}.lesson-flow small{color:var(--muted)}.lesson-actions{margin:18px 0 0 28px}.archived-lessons{margin:38px 0;padding:20px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}.archived-lessons>summary{cursor:pointer;font-weight:700}.form-actions{display:flex;justify-content:flex-end;align-items:center;gap:10px;flex-wrap:wrap}.deadline{display:inline-block!important;padding:6px 10px;border-radius:7px;background:#fff4c6;color:#66571e!important}.review-runner{max-width:900px}.review-runner+.review-form{max-width:900px;margin:32px 0}.review-runner .CodeMirror{height:330px!important}
@media(max-width:700px){.lesson-flow,.lesson-actions{margin-left:0}.form-actions{justify-content:flex-start}}

/* Profile moderation, Markdown editor, lesson navigation */
.nav-profile{justify-content:center;min-width:30px}.nav-profile:hover{opacity:.75}.status.rejected,.status.cancelled{background:var(--red);color:#8c4f48}
.moderation-form{max-width:700px;margin:30px 0}.profile-review-table{width:100%;border-collapse:collapse;margin:26px 0}.profile-review-table td,.profile-review-table th{text-align:left;border-bottom:1px solid var(--line);padding:12px;vertical-align:top}.review-avatar{width:90px;height:90px;border-radius:12px;object-fit:cover}
.lecture-toolbar{display:flex!important;flex-direction:row!important;gap:6px!important;flex-wrap:wrap;align-items:center;padding:12px;background:var(--paper);border:1px solid var(--line);border-radius:10px}
.lecture-toolbar button{padding:6px 11px;border:1px solid #d9d2c4;border-radius:7px;background:#fff;cursor:pointer;font-size:13px}.lecture-toolbar button:hover{background:#fff4c6}.lecture-image-button{cursor:pointer}
.lecture-editor #id_content{min-height:360px;font:14px/1.65 "Cascadia Code",Consolas,monospace}.lecture-editor>p.muted{margin:0;font-size:13px}.lecture-editor #lecture-upload-status{margin:0;color:var(--muted);font-size:13px}
.learning-navigation{margin:40px 0 28px;padding-top:25px;border-top:1px solid var(--line)}.learning-navigation>p{text-align:center;font-size:13px}.learning-navigation-links{display:grid;grid-template-columns:1fr 1fr;gap:15px}.learning-nav-link{display:flex;flex-direction:column;gap:4px;border:1px solid var(--line);border-radius:11px;padding:17px;background:var(--paper)}.learning-nav-link span{color:var(--muted);font-size:12px}.learning-nav-link strong{font-size:16px}.learning-nav-link.next{text-align:right}.learning-nav-link:hover{border-color:#c4a632;background:#fffbea}
.zoomable-images img{cursor:zoom-in}.image-dialog{border:none;border-radius:12px;padding:20px;max-width:94vw;max-height:94vh;background:var(--paper)}.image-dialog::backdrop{background:rgba(20,20,20,.78)}.image-dialog img{display:block;max-width:88vw;max-height:82vh;object-fit:contain}.image-dialog-close{display:block;margin:0 0 10px auto;background:var(--yellow);padding:6px 12px;border:0;border-radius:7px;cursor:pointer}
@media(max-width:700px){.learning-navigation-links{grid-template-columns:1fr}.profile-review-table{font-size:13px}.review-avatar{width:70px;height:70px}.lecture-toolbar{gap:4px!important}.lecture-toolbar button{padding:6px 8px}}

/* Account page: read-only summary and an expandable editing form. */
.profile-page{max-width:900px}
.profile-page>h1{margin-bottom:26px}
.profile-summary{display:grid;grid-template-columns:96px minmax(0,1fr);align-items:start;gap:28px;padding:26px;background:var(--paper);border:1px solid var(--line);border-radius:15px}
.profile-summary .avatar.large{width:90px;height:90px;flex-shrink:0}
.profile-account-list{margin:0}
.profile-account-list>div{display:grid;grid-template-columns:130px minmax(0,1fr);gap:14px;padding:11px 0;border-bottom:1px solid var(--line)}
.profile-account-list>div:first-child{padding-top:0}
.profile-account-list>div:last-child{padding-bottom:0;border-bottom:0}
.profile-account-list dt{font-size:13px;color:var(--muted)}
.profile-account-list dd{margin:0;font-weight:600;overflow-wrap:anywhere}
.profile-account-list dd .status{margin-left:7px;vertical-align:middle}
.profile-edit{margin-top:22px}
.profile-edit-toggle{list-style:none;display:inline-flex;width:auto;user-select:none}
.profile-edit-toggle::-webkit-details-marker{display:none}
.profile-edit[open] .profile-edit-toggle{background:#ebe7de}
.profile-edit-panel{margin-top:16px;padding:26px;border:1px solid var(--line);border-radius:15px;background:var(--paper)}
.profile-edit-panel h2{margin:0 0 12px}
.profile-edit-panel>.muted{margin:0 0 24px}
.profile-edit-panel .profile-form{max-width:650px;padding:0}
.profile-edit-panel .profile-email-note{margin:0}
.profile-email-note a{text-decoration:underline}
.profile-upload-field{position:relative}
.profile-upload-control{display:flex;align-items:center;flex-wrap:wrap;gap:14px}
.profile-upload-button{font-weight:700;cursor:pointer}
.profile-file-input{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:0!important;opacity:0;overflow:hidden;clip-path:inset(50%);border:0!important}
.profile-file-input:focus-visible + .profile-upload-control .profile-upload-button{outline:3px solid rgba(255,216,90,.65);outline-offset:3px}
.profile-new-photo-preview img{width:100px;height:100px;border-radius:12px;object-fit:cover}
.profile-remove-photo{display:flex;align-items:center;flex-wrap:wrap;gap:13px;margin-top:16px}
.profile-remove-photo .text-link{color:#a34e45}
.profile-remove-photo>span{font-size:12px}
.profile-message{margin-top:24px}
.profile-message p{margin:0 0 12px}
.profile-history{margin-top:46px}
.profile-history h2{margin-bottom:15px}
.profile-connect-google{margin-top:28px}
@media(max-width:700px){
  .profile-summary{grid-template-columns:1fr;padding:20px;gap:16px}
  .profile-account-list>div{grid-template-columns:100px minmax(0,1fr);gap:8px}
  .profile-edit-panel{padding:18px}
}

/* Algorithmization assignments */
.algorithm-teacher-form,.algorithm-workspace{max-width:1080px}
.algorithm-teacher-form{padding:26px;background:var(--paper);border:1px solid var(--line);border-radius:15px}
.algorithm-teacher-form>.form-stack{gap:18px}
.algorithm-form-row{display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr));gap:15px!important}
.algorithm-form-row>div{display:flex;flex-direction:column;gap:6px}
.algorithm-teacher-form .algorithm-graph{margin:18px 0 10px}
.algorithm-teacher-form>.form-stack>div>label{font-weight:700}
.algorithm-workspace{margin:30px 0;border:1px solid var(--line);padding:26px;border-radius:15px;background:var(--paper)}
.algorithm-workspace h2{margin:10px 0 24px}
.algorithm-workspace>div>label{font-weight:700;display:block;margin:0 0 10px}
.algorithm-workspace textarea{width:100%;min-height:200px;padding:14px;border-radius:9px;border:1px solid #d7d1c5;background:#fff;font:14px/1.65 Consolas,monospace}
.algorithm-choice{display:flex;align-items:center;gap:12px;padding:15px 12px;border-bottom:1px solid var(--line);cursor:pointer}
.algorithm-choice input{width:18px;height:18px}
.algorithm-order-row{display:flex;align-items:center;gap:10px;padding:13px;border-bottom:1px solid var(--line);flex-wrap:wrap}
.algorithm-order-row>strong{width:25px}
.algorithm-order-row>span{flex:1;min-width:200px}
.gap-lines{white-space:pre-wrap;line-height:2.8;padding:20px;background:#fff;border:1px solid var(--line);border-radius:10px}
.gap-lines select,.gap-lines input{max-width:300px;min-width:135px;margin:4px 6px;padding:8px 10px;border:1px solid #c8b991;border-radius:7px;background:#fff}
.algorithm-graph-head h3{margin:20px 0 4px}
.algorithm-graph-head p{margin-top:0;font-size:13px}
.diagram-canvas{border:1px solid var(--line);background-color:#fffdf8;
background-image:radial-gradient(#e8e4da 1px,transparent 1px);background-size:18px 18px;border-radius:12px;overflow:auto}
.diagram-canvas svg{display:block;width:100%;min-width:650px;max-height:670px;touch-action:none}
.diagram-canvas svg g{cursor:pointer;outline-offset:3px}
.diagram-columns{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1fr);gap:22px;margin:20px 0}
.diagram-columns h4{margin:8px 0}
.diagram-node-row{display:flex;align-items:center;gap:10px;margin:7px 0}
.diagram-node-row>span{width:108px;flex-shrink:0;font-size:12px}
.diagram-node-row input,.diagram-node-row select{padding:9px 10px;min-width:0;flex:1;border:1px solid #d7d1c5;border-radius:7px;background:white}
.diagram-node-row input:disabled,.diagram-node-row select:disabled{opacity:.78;background:#f5f1e9}
.diagram-delete{padding:4px 10px;border:0;border-radius:6px;background:#f3e2de;color:#984d44;cursor:pointer}
.diagram-add{display:flex;gap:8px;flex-wrap:wrap;margin:10px 0}
.diagram-add select,.diagram-add input{min-width:0;max-width:260px;padding:9px;border:1px solid #d7d1c5;border-radius:7px;background:white}
.diagram-links>input{width:220px}
.diagram-edge-row{display:flex;justify-content:space-between;gap:8px;border-bottom:1px solid var(--line);padding:9px 0;font-size:13px;overflow-wrap:anywhere}
.algorithm-student-note{margin-top:28px}
.algorithm-student-note label{display:block;margin-bottom:8px;font-weight:650}
.algorithm-student-note textarea{min-height:75px;font-family:inherit}
.algorithm-actions{display:flex;align-items:center;justify-content:flex-end;gap:12px;flex-wrap:wrap;margin-top:18px}
.algorithm-actions #algorithm-status{margin-right:auto;font-size:13px}
.algorithm-history{max-width:1060px}
.algorithm-section-head{margin-top:40px}
.algorithm-history pre{overflow:auto;max-height:400px}
.algorithm-teacher-form input[type=number]{max-width:150px}
@media(max-width:780px){.algorithm-form-row{grid-template-columns:repeat(2,minmax(0,1fr))!important}
.diagram-columns{grid-template-columns:1fr}.algorithm-workspace,.algorithm-teacher-form{padding:16px}
.algorithm-actions{justify-content:flex-start}.algorithm-actions #algorithm-status{width:100%}}

/* Unified lesson sections and drag-and-drop material ordering */
.lesson-materials{max-width:1080px;margin:25px 0}
.lesson-section-add{display:flex;flex-wrap:wrap;gap:10px;align-items:center}
.lesson-section-add select{min-width:210px;max-width:300px;padding:11px;border:1px solid var(--line);border-radius:9px;background:var(--paper)}
.lesson-sections{display:flex;flex-direction:column;gap:20px;margin-top:26px}
.lesson-section{background:var(--paper);border:1px solid var(--line);border-radius:13px;padding:20px}
.lesson-section-heading{display:flex;align-items:center;flex-wrap:wrap;gap:10px;border-bottom:1px solid var(--line);padding-bottom:13px}
.lesson-section-heading h3{margin:0;font-size:19px;flex:1;min-width:140px}
.lesson-section-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.lesson-section-actions form{display:inline-flex;align-items:center;margin:0}
.lesson-section-actions .danger-link{font-size:12px}
.lesson-sort-list{display:flex;flex-direction:column}
.lesson-material-row{display:flex;align-items:center;gap:14px;padding:14px 2px;border-bottom:1px solid var(--line)}
.lesson-material-row:last-child{border-bottom:0}
.lesson-material-main{min-width:0;flex:1}
.lesson-material-main>a{display:block;font-weight:700;overflow-wrap:anywhere}
.lesson-material-main>a:hover{text-decoration:underline}
.lesson-material-main small{color:var(--muted);font-size:12px;display:block}
.lesson-order-tools,.lesson-section-order{display:flex;align-items:center;gap:3px}
.sort-handle{background:transparent;border:0;color:var(--muted);font-size:22px;line-height:1;cursor:grab;padding:5px 8px;user-select:none}
.sort-handle:active{cursor:grabbing}
.sort-move{background:var(--bg);border:1px solid var(--line);border-radius:6px;font-size:15px;padding:3px 7px;cursor:pointer}
.sort-move:hover,.sort-handle:hover{background:var(--yellow)}
.sorting-dragging{opacity:.42}
.lesson-empty{margin:14px 0}
.export-options{max-width:780px;background:var(--paper);padding:27px;border:1px solid var(--line);border-radius:14px}
.export-stats{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-bottom:22px}
.export-stats>div{border:1px solid var(--line);border-radius:10px;padding:18px;display:flex;flex-direction:column;gap:3px}
.export-stats strong{font-size:30px}
.export-stats span{color:var(--muted);font-size:13px}
.export-options fieldset{display:flex;flex-direction:column;gap:12px;border:1px solid var(--line);padding:16px;border-radius:10px}
.export-options legend{font-weight:750;padding:0 5px}
.export-options fieldset label,.export-checkbox{display:flex;gap:10px;align-items:flex-start;cursor:pointer}
.export-options input[type=radio],.export-options input[type=checkbox]{width:17px;height:17px;flex-shrink:0;margin-top:4px}
@media(max-width:750px){
.lesson-section{padding:14px}.lesson-section-heading{align-items:start}
.lesson-section-actions{width:100%;justify-content:flex-start}
.lesson-material-row{gap:8px}
.lesson-order-tools,.lesson-section-order{gap:1px}.sort-handle{font-size:19px;padding:3px}
.sort-move{font-size:13px;padding:2px 5px}
.export-options{padding:18px}
}

/* Flowchart connecting ports, snap guides and teacher bulk actions */
.diagram-smart-tools{display:flex;align-items:center;flex-wrap:wrap;gap:15px;margin:10px 0 14px}
.diagram-smart-tools label{display:flex;gap:9px;align-items:center;font-size:13px;cursor:pointer}
.diagram-smart-tools input{width:18px;height:18px}
.diagram-port{cursor:crosshair;transition:r .12s ease}
.diagram-port:hover{fill:#ecaa21;stroke:#352f20;stroke-width:4}
.diagram-edge-row input{border:1px solid var(--line);border-radius:6px;background:var(--paper);min-width:80px;max-width:160px;padding:6px 9px;flex:1}
.diagram-connection-preview,.diagram-guide-layer{pointer-events:none}
.diagram-canvas svg{touch-action:none}
.sort-handle{touch-action:none}
.bulk-toolbar{display:flex;align-items:center;gap:12px;flex-wrap:wrap;background:var(--paper);padding:14px 18px;border:1px solid var(--line);border-radius:11px;margin:14px 0 20px}
.bulk-toolbar button:disabled{opacity:.5;cursor:not-allowed}
.bulk-toolbar [data-bulk-counter]{font-size:13px;color:var(--muted);margin-right:auto}
.bulk-select-all{display:inline-flex;align-items:center;gap:8px;cursor:pointer;font-weight:650}
.bulk-select{display:inline-flex;align-items:center;justify-content:center;margin-right:2px}
.bulk-select input,.bulk-select-all input{width:17px;height:17px;cursor:pointer}
.export-options select,.export-options input[type=date],.export-options input[type=number]{width:100%;padding:9px 11px;border-radius:8px;border:1px solid var(--line);background:var(--paper);min-width:0}
.export-options fieldset>label:not(:has(input[type=radio])){font-weight:650;margin-top:4px}
.export-filter-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-top:8px}
.export-filter-grid>div label{display:block;font-weight:650;margin-bottom:5px}
@media(max-width:650px){.export-filter-grid{grid-template-columns:1fr}.bulk-toolbar{padding:12px}}

/* Flowchart canvas: compact shape library, direct connectors and inline inspectors. */
.diagram-workspace{
  display:grid;
  grid-template-columns:156px minmax(0,1fr);
  gap:14px;
  align-items:start;
  margin-top:16px;
}
.diagram-workspace [hidden],.diagram-inspector[hidden],.diagram-palette[hidden]{
  display:none!important;
}
.diagram-palette{
  background:var(--paper);
  border:1px solid var(--line);
  border-radius:11px;
  padding:11px;
  min-width:0;
}
.diagram-palette h4{margin:4px 4px 7px;font-size:14px}
.diagram-palette>.muted{margin:0 4px 12px;font-size:11px;line-height:1.5}
.diagram-palette-items{display:flex;flex-direction:column;gap:8px}
.diagram-palette-item{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  width:100%;
  min-height:83px;
  gap:4px;
  color:inherit;
  background:#fffdf8;
  border:1px solid var(--line);
  border-radius:9px;
  padding:7px 5px;
  cursor:grab;
  touch-action:manipulation;
  transition:background .13s,border-color .13s;
}
.diagram-palette-item:hover,.diagram-palette-item:focus-visible,.diagram-palette-active{
  background:#fff2c6;
  border-color:#ce9f38;
}
.diagram-palette-item:active{cursor:grabbing}
.diagram-palette-item svg{width:94px;height:48px;max-width:100%;flex-shrink:0;pointer-events:none}
.diagram-palette-item svg rect,.diagram-palette-item svg polygon{
  fill:#fffdf8;stroke:#776b56;stroke-width:2;
}
.diagram-palette-item span{font-weight:600;font-size:12px;text-align:center;line-height:1.3}
.diagram-stage{min-width:0}
.diagram-workspace .diagram-canvas{min-width:0;max-width:100%}
.diagram-workspace .diagram-canvas svg{min-width:640px;max-height:730px;cursor:default;touch-action:none}
.diagram-workspace .diagram-placement-mode{outline:2px dashed #c28d24;outline-offset:2px;cursor:crosshair}
.diagram-shape{cursor:move;outline:none}
.diagram-shape:focus-visible>rect,.diagram-shape:focus-visible>polygon{stroke:#d69a24;stroke-width:4}
.diagram-port{cursor:crosshair}
.diagram-edge-target{cursor:grab}
.diagram-bend-handle{cursor:col-resize}
.diagram-alignment-guide{stroke:#d79c29;stroke-width:2;stroke-dasharray:7 6}
.diagram-inspector{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
  padding:12px 13px;
  margin-top:12px;
  background:var(--paper);
  border:1px solid var(--line);
  border-radius:10px;
}
.diagram-selected-label{font-weight:700;font-size:13px;min-width:95px}
.diagram-inspector input,.diagram-inspector select{
  flex:1 1 165px;
  min-width:0;
  max-width:420px;
  padding:10px;
  border:1px solid var(--line);
  background:#fff;
  border-radius:8px;
}
.diagram-inspector input:disabled,.diagram-inspector select:disabled{
  background:#f4f0e8;
  opacity:.75;
}
.diagram-inspector .diagram-remove-node,.diagram-inspector .diagram-remove-edge{margin-left:auto}
@media(max-width:760px){
  .diagram-workspace{grid-template-columns:1fr;gap:10px}
  .diagram-palette{padding:10px}
  .diagram-palette>.muted{margin-bottom:8px}
  .diagram-palette-items{flex-direction:row;overflow-x:auto;padding-bottom:5px}
  .diagram-palette-item{flex:0 0 112px;min-height:80px}
  .diagram-workspace .diagram-canvas svg{min-width:610px}
}

.diagram-view-only .diagram-workspace{grid-template-columns:minmax(0,1fr)}

/* Teaching hub and course completion: wide desktop layout, touch-friendly mobile layout. */
.hub-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px;margin:24px 0 26px}
.hub-metric{display:flex;flex-direction:column;gap:7px;min-height:132px;padding:18px 20px;background:var(--paper);border:1px solid var(--line);border-radius:13px;text-decoration:none}
.hub-metric span{font-size:13px;color:var(--muted);font-weight:650}
.hub-metric b{font-size:clamp(27px,3vw,40px);line-height:1.15;font-weight:800}
.hub-metric small{color:var(--muted);font-size:12px}
a.hub-metric:hover{border-color:var(--yellow)}
.hub-layout{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(260px,1fr);gap:23px;align-items:start;margin-bottom:32px}
.hub-primary,.hub-secondary,.hub-courses{min-width:0}
.hub-primary .section-head{margin-bottom:12px}
.hub-primary .list-row h3{font-size:16px;margin:7px 0 6px}
.hub-primary .list-row p{font-size:13px;color:var(--muted);margin-bottom:6px}
.hub-secondary{display:grid;gap:16px}
.hub-card{background:var(--paper);border:1px solid var(--line);border-radius:13px;padding:17px}
.hub-card h2{font-size:17px;margin:0 0 14px}
.hub-deadline,.hub-action{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 0;text-decoration:none;border-bottom:1px solid var(--line)}
.hub-deadline:last-child,.hub-action:last-child{border-bottom:0}
.hub-deadline b{font-size:13px;display:block;line-height:1.35}
.hub-deadline small{font-size:12px;color:var(--muted);display:block}
.hub-deadline time{font-size:12px;font-weight:700;white-space:nowrap}
.hub-action{font-size:14px;font-weight:650}
.hub-course-grid,.student-learning-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px;margin:15px 0 28px}
.hub-course,.student-learning-card{min-width:0;border:1px solid var(--line);border-radius:14px;padding:20px;background:var(--paper)}
.hub-course{text-decoration:none;display:flex;flex-direction:column;gap:10px}
.hub-course:hover{border-color:var(--yellow)}
.hub-course h3{font-size:19px;margin:0}
.hub-course p{color:var(--muted);font-size:13px;flex:1;margin:0}
.hub-course-details{display:flex;gap:12px;flex-wrap:wrap;color:var(--muted);font-size:12px}
.hub-course-open{font-weight:700;font-size:13px}
.student-learning-card{display:flex;flex-direction:column;gap:14px}
.student-course-head{display:flex;align-items:start;justify-content:space-between;gap:16px}
.student-course-head h2{font-size:20px;margin:0 0 7px}
.student-course-head small{color:var(--muted)}
.progress-number{font-size:25px;font-weight:800;white-space:nowrap}
.student-learning-card progress,.course-learning-progress progress{display:block;width:100%;height:13px;accent-color:#c58f23;overflow:hidden;border-radius:12px}
.student-learning-card progress::-webkit-progress-bar,.course-learning-progress progress::-webkit-progress-bar{background:#ede8de;border-radius:12px}
.student-learning-card progress::-webkit-progress-value,.course-learning-progress progress::-webkit-progress-value{background:#cb982d;border-radius:12px}
.learning-summary,.student-learning-stats{display:flex;align-items:center;flex-wrap:wrap;gap:8px 20px;font-size:12px;color:var(--muted)}
.student-learning-stats{color:inherit}
.needs-revision{color:#a06b0e!important;font-weight:700}
.learning-next{border-radius:10px;background:var(--bg);border:1px solid var(--line);padding:14px;display:flex;flex-direction:column;gap:7px;font-size:13px}
.learning-next a{font-weight:750;overflow-wrap:anywhere}
.student-learning-card>.button{align-self:start;margin-top:auto}
.course-learning-progress{max-width:820px;margin:15px 0 25px;background:var(--paper);border:1px solid var(--line);border-radius:13px;padding:20px;display:grid;gap:10px}
.course-learning-progress .student-course-head{align-items:center}
.course-learning-progress .student-course-head strong{font-size:15px}
.material-completion{margin:22px 0;padding:14px;display:flex;align-items:center;flex-wrap:wrap;gap:12px;background:var(--paper);border:1px solid var(--line);border-radius:11px}
@media(max-width:1000px){.hub-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.hub-layout{grid-template-columns:1fr}}
@media(max-width:650px){
  .dashboard-heading{align-items:stretch;gap:16px}
  .dashboard-heading .button{width:100%;text-align:center}
  .hub-metrics{gap:9px;margin:17px 0}
  .hub-metric{padding:13px;min-height:114px}
  .hub-metric span{font-size:12px}.hub-metric small{font-size:11px}
  .hub-course-grid,.student-learning-grid{grid-template-columns:1fr;gap:12px}
  .hub-course,.student-learning-card{padding:16px}
  .hub-card{padding:14px}
  .hub-layout{gap:12px}
  .hub-primary .list-row{gap:10px;align-items:start}
  .student-course-head h2{font-size:18px}
  .progress-number{font-size:23px}
  .course-learning-progress{padding:14px}
}

/* Cohorts and TXT importer */
.group-header-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.group-check{display:flex;align-items:center;gap:11px;min-width:0;padding:11px 12px;background:var(--paper);border:1px solid var(--line);border-radius:9px;cursor:pointer}
.group-check input{width:19px;height:19px;flex-shrink:0;cursor:pointer}
.group-check span{min-width:0;display:grid;gap:4px}
.group-check span b{font-size:14px;overflow-wrap:anywhere}
.group-check span small{font-size:12px;color:var(--muted)}
.group-member-row,.group-candidate,.group-import-row{flex-wrap:wrap;min-width:0;gap:10px}
.group-member-row span,.group-candidate span,.group-import-row span{min-width:0;overflow-wrap:anywhere}
.group-pending{margin:23px 0}
.group-pending-row{padding:11px 0;border-bottom:1px solid var(--line)}
.group-pending-row small{display:block;font-size:12px}
.group-pending-row .group-check{width:100%}
.group-pending-remove{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px;padding:8px 0;border-bottom:1px solid var(--line);font-size:12px;color:var(--muted)}
.group-pending-remove span{overflow-wrap:anywhere}
.group-txt-example{background:var(--bg);border-radius:8px;border:1px solid var(--line);padding:14px;overflow:auto;font-size:13px;white-space:pre-wrap}
.hub-card input[type=file]{max-width:100%}
@media(max-width:650px){.group-header-actions{width:100%}.group-header-actions .button{flex:1;min-width:0;text-align:center}.group-member-row form{margin-left:auto}}

/* Lesson bulk JSON assignment import. */
.lesson-import-actions{display:flex;align-items:center;gap:15px;flex-wrap:wrap;justify-content:flex-end}
.task-import-layout{margin-top:16px}
.task-import-guide{display:grid;gap:10px}
.task-import-guide p{font-size:13px;line-height:1.55;margin:0}
.task-import-guide code{overflow-wrap:anywhere}
.task-json-example{white-space:pre;overflow-x:auto;font-size:12px;line-height:1.6;background:var(--bg);border:1px solid var(--line);border-radius:8px;padding:14px;max-width:100%}
.task-json-example code{overflow-wrap:normal}
.task-import-guide details{padding:11px;background:var(--bg);border-radius:8px}
.task-import-formats{margin-top:10px}
.task-import-formats p{margin:8px 0}
.task-import-item{display:flex;align-items:center;gap:12px;justify-content:space-between;flex-wrap:wrap}
.task-import-item span:first-child{min-width:0;overflow-wrap:anywhere}
.task-import-item span:first-child small{display:block;color:var(--muted);font-size:12px}
@media(max-width:650px){.lesson-import-actions{justify-content:flex-start;width:100%}.lesson-import-actions .button{width:100%;text-align:center}.task-import-layout .hub-card{min-width:0}.task-import-guide{overflow:hidden}}

/* Node geometry and inline flowchart editing. */
.diagram-node-inspector{display:flex;align-items:center;flex-wrap:wrap;gap:10px}
.diagram-size-label{display:inline-flex;align-items:center;gap:6px;font-size:12px;color:var(--muted)}
.diagram-size-label input{width:82px;padding:7px;border:1px solid var(--line);border-radius:7px;background:#fff}
.diagram-size-label select{max-width:145px;padding:7px;border:1px solid var(--line);border-radius:7px;background:#fff}
.diagram-inline-editor{overflow:visible}
.algorithm-auto-setting{padding:14px 16px;background:#faf7ec;border:1px solid var(--line);border-radius:10px}
.algorithm-auto-setting label{display:flex;align-items:center;gap:10px;font-weight:700}
.algorithm-auto-setting p{font-size:13px;margin:7px 0 0}
#algorithm-reference-zone{border-top:1px solid var(--line);padding-top:16px;margin-top:16px}

/* Flowchart diagnostics and reversible editing */
.diagram-tools{display:flex;flex-wrap:wrap;gap:8px;margin:11px 0 7px}
.diagram-tools button:disabled{opacity:.45;cursor:not-allowed}
.diagram-diagnostics{margin:10px 0;padding:14px 17px;border:1px solid #d6cfbc;background:#fffdf5;border-radius:10px}
.diagram-diagnostics>strong{display:block;font-size:14px}
.diagram-diagnostics>p{font-size:13px;color:#645d52;margin:7px 0 0}
.diagram-diagnostics ul{margin:10px 0 0;padding-left:22px;max-height:310px;overflow-y:auto}
.diagram-diagnostics li{padding:4px 0;line-height:1.4}
.diagram-diagnostics .text-link{margin-left:8px;font-size:12px;text-decoration:underline}
.diagram-check-error{color:#873c36}
.diagram-check-warning{color:#74601a}
.diagram-shape-error>rect,.diagram-shape-error>polygon{stroke:#b33f36!important;stroke-width:4px!important}
.diagram-shape-warning>rect,.diagram-shape-warning>polygon{stroke:#ad8625!important;stroke-width:3px!important}

/* Large flowcharts retain their full-size workspace and scroll in both directions. */
.diagram-workspace .diagram-canvas{overflow:auto;max-height:76vh;}
.diagram-workspace .diagram-canvas svg{width:2400px;min-width:2400px;height:1800px;max-height:none;max-width:none;}

/* Flowchart edge and viewport controls. */
.diagram-zoom-label,.diagram-port-select{display:inline-flex;align-items:center;gap:7px;font-size:13px;font-weight:600}
.diagram-zoom{padding:7px 9px;border:1px solid var(--line);border-radius:7px;background:var(--paper);font:inherit}
.diagram-port-select select{flex:0 0 auto;min-width:105px;max-width:135px;padding:8px}
.diagram-workspace .diagram-canvas svg{min-width:0}

/* Keep the full name visible beside the avatar on every screen size. */
.nav-profile .nav-profile-name{display:inline-block;width:auto;height:auto;border-radius:0;background:transparent;font-size:13px;font-weight:650;white-space:nowrap;max-width:220px;overflow:hidden;text-overflow:ellipsis}
@media(max-width:520px){.nav-profile .nav-profile-name{font-size:12px;max-width:145px}.topbar nav{gap:8px}}

.site-footer{padding:24px;text-align:center;border-top:1px solid var(--line);color:var(--muted)}.site-footer a{text-decoration:underline}


/* Teacher activity: recent submissions and the independently actionable manual queue. */
.hub-activity-grid{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,1fr);gap:18px;align-items:start;margin:24px 0 20px}
.hub-activity-panel{min-width:0;background:var(--paper);border:1px solid var(--line);border-radius:15px;padding:22px}
.hub-activity-title{display:flex;align-items:flex-start;justify-content:space-between;gap:15px}
.hub-activity-title h2{font-size:23px;margin:5px 0 8px}
.hub-activity-title .muted{font-size:12px;line-height:1.6;margin:0 0 12px}
.hub-activity-title .button{flex:0 0 auto}
.hub-activity-filters{display:flex;gap:7px;flex-wrap:wrap;margin:7px 0 12px}
.hub-activity-filters button{padding:6px 11px;border:1px solid var(--line);border-radius:100px;background:transparent;font-size:12px;font-weight:650;cursor:pointer}
.hub-activity-filters button[aria-pressed="true"]{background:var(--yellow);border-color:var(--yellow)}
.hub-activity-refresh-note{font-size:11px;color:var(--muted);margin:0 0 12px}
.hub-activity-list{border-top:1px solid var(--line)}
.hub-activity-row{display:flex;justify-content:space-between;gap:12px;padding:14px 0;border-bottom:1px solid var(--line);text-decoration:none}
.hub-activity-row:hover .hub-activity-task{color:#89620b;text-decoration:underline}
.hub-activity-row-main{min-width:0;display:flex;flex:1;flex-direction:column;gap:4px;overflow-wrap:anywhere}
.hub-activity-row-main strong{font-size:13px;font-weight:750}
.hub-activity-task{font-size:14px;line-height:1.35;font-weight:650}
.hub-activity-row-main small{font-size:11px}
.hub-activity-row-meta{display:flex;flex:0 0 142px;flex-direction:column;align-items:flex-end;gap:4px;text-align:right}
.hub-activity-row-meta .status{white-space:normal;text-align:center;line-height:1.35}
.hub-activity-row-meta small,.hub-activity-row-meta time{font-size:11px;color:var(--muted)}
.hub-activity-row .status.manual{background:var(--red);color:#8c4f48}
.hub-activity-row .status.auto{background:var(--blue);color:#476477}
.hub-activity-row .status.reviewed{background:var(--green);color:#3c6a3b}
.hub-manual-count{display:inline-block;vertical-align:middle;margin-left:5px;min-width:27px;padding:3px 7px;text-align:center;background:var(--red);color:#8c4f48;font-size:15px;border-radius:9px}
.hub-review-action{font-size:12px;font-weight:750}
.hub-activity-all-link{display:inline-block;margin-top:16px;font-weight:700;font-size:13px}
.hub-activity-filter-empty{padding:15px 0;color:var(--muted);font-size:13px}
.hub-activity-row[hidden],.hub-activity-filter-empty[hidden]{display:none!important}
.hub-activity-empty{padding:18px 0;font-size:13px}
.hub-support-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin:20px 0 26px}
.hub-support-grid>.hub-card{min-width:0}
@media(max-width:950px){.hub-activity-grid{grid-template-columns:1fr}.hub-activity-panel{padding:18px}}
@media(max-width:650px){.hub-activity-row-meta{flex-basis:110px}.hub-activity-row-meta small{font-size:10px}.hub-support-grid{grid-template-columns:1fr;gap:12px}.hub-activity-panel{padding:15px}}
