/* Soft surfaces and consistent interaction styles for Research Hub. */
/* Rose palette; status colors remain distinct for legibility. */
:root {
  --green: #69252b;
  --dark: #401317;
  --ink: #3d2325;
  --muted: #7d686a;
  --line: #eae2e2;
  --bg: #f7f3f3;
  --mint: #f2e5e7;
  --shadow-soft: 0 4px 8px #4d222603, 0 12px 32px #4d222606;
  --shadow-hover: 0 8px 16px #4d222606, 0 18px 44px #4d222610;
  --ease: cubic-bezier(.2,.7,.2,1);
}

html { scroll-behavior: smooth; scrollbar-gutter: stable; }
body {
  background: radial-gradient(ellipse at 90% 0, #f0e3e55c, transparent 45%), var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
::selection { background: #e8cdcf; color: #401519; }
* { scrollbar-width: thin; scrollbar-color: #d4c4c6 transparent; }
button, a, select {
  transition: background .22s var(--ease), border-color .22s var(--ease),
    color .22s var(--ease), box-shadow .22s var(--ease), transform .22s var(--ease);
}
button:focus-visible, a:focus-visible, select:focus-visible {
  outline: 3px solid #a16d71;
  outline-offset: 4px;
}

/* Navigation */
.sidebar {
  background: linear-gradient(180deg, #fffffff5, #fefafbf5);
  box-shadow: 8px 0 35px #53292d03;
  overflow-y: auto;
}
.brand-icon {
  border-radius: 14px;
  background: linear-gradient(145deg, #753137, #401317);
  box-shadow: 0 6px 14px #53222622, inset 0 1px 0 #ffffff25;
}
.workspace {
  border-radius: 15px;
  background: linear-gradient(120deg, #f5ecec, #fbf6f6);
  padding-top: 17px;
  padding-bottom: 17px;
}
.workspace-icon { border-radius: 10px; }
.online { box-shadow: 0 0 0 4px #a9707515; }
.nav-item { border-radius: 13px; min-height: 45px; color: #7a6264; }
.nav-item.active {
  background: linear-gradient(110deg, #efdee0, #f6e8ea);
  box-shadow: inset 0 0 0 1px #e8d7d9, 0 3px 8px #69323605;
}
.nav-item small { border-radius: 7px; }
.sidebar-note {
  border-radius: 18px;
  background: radial-gradient(ellipse at top right, #f1d5d7, transparent 75%), #f9edee;
  padding: 20px 16px;
}
.profile { border-radius: 0 0 12px 12px; }
.logout { border-radius: 9px; }
.logout:hover { color: var(--green); background: var(--mint); }
.avatar {
  background: linear-gradient(140deg, #efdadc, #e4ccce);
  color: #6d4448;
  box-shadow: inset 0 0 0 1px #89494f10;
}
.topbar {
  background: #ffffffb8;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom-color: #e7dcddaa;
}
.role, .count { border-radius: 20px; padding: 6px 10px; }
.content { padding-top: 40px; }
.page-heading { margin-bottom: 30px; }
.page-heading h1 { font-weight: 700; letter-spacing: -1.1px; }
.page-heading p { font-size: 23.4px; line-height: 1.8; }
.eyebrow { color: #89666a; letter-spacing: 2px; }

/* Buttons and forms */
.primary, .secondary, .hero-button, .danger {
  border-radius: 12px;
  min-height: 42px;
  padding: 12px 18px;
}
.primary {
  background: linear-gradient(140deg, #783238, #552125);
  border-color: #65282e;
  box-shadow: 0 4px 10px #61252b20, inset 0 1px 0 #ffffff18;
}
.primary:hover { background: linear-gradient(140deg, #86383f, #5c2127); box-shadow: 0 6px 18px #61252b30; }
.secondary { background: #ffffffd9; box-shadow: 0 2px 4px #4e272b04; }
.secondary:hover { background: #f7eaec; border-color: #d5bcbe; }
.hero-button {
  background: linear-gradient(120deg, #efcacd, #e6aab0);
  box-shadow: 0 5px 15px #2d0d1030, inset 0 1px 0 #ffffff60;
  font-size: 21.6px;
}
.text-button { min-height: 32px; }
.text-button svg { transition: transform .22s var(--ease); }
.text-button:hover svg { transform: translateX(3px); }
.danger:hover { background: #fff1ed; border-color: #d8ada2; }
.primary:active, .secondary:active, .hero-button:active, .student-card:active { transform: scale(.985); }
.search, .filters>select { border-radius: 13px; min-height: 46px; box-shadow: 0 3px 9px #49232704; }
.search { transition: box-shadow .2s, border-color .2s; }
.search:focus-within { border-color: #b18286; box-shadow: 0 0 0 4px #ac737815; }
.field input, .field select, .field textarea { border-radius: 12px; background: #faf6f6; padding: 13px 14px; transition: border-color .2s, box-shadow .2s; }
.field input:focus, .field select:focus, .field textarea:focus { background: white; box-shadow: 0 0 0 4px #ac737815; }

/* Intro and content cards */
.hero {
  border-radius: 26px;
  background: radial-gradient(ellipse at 85% 15%, #7b4a4e58, transparent 55%),
    linear-gradient(120deg, #3d1216, #5b2127);
  box-shadow: 0 14px 30px #501e2215, inset 0 1px 0 #ffffff18;
  padding: 40px;
}
.hero::after {
  content: '';
  position: absolute;
  width: 380px;
  height: 380px;
  border: 1px solid #daa1a612;
  border-radius: 50%;
  right: -160px;
  bottom: -240px;
  box-shadow: 0 0 0 40px #daa1a605, 0 0 0 80px #daa1a605;
  pointer-events: none;
}
.hero p { color: #dac7c9; font-size: 23.4px; }
.hero h2 { font-weight: 600; max-width: 510px; }
.orbit-core { box-shadow: 0 0 70px #e4a2a818, inset 0 1px 0 #ffffff20; backdrop-filter: blur(4px); }
.orb { box-shadow: 0 8px 22px #2a0c0f25; }
.stats { gap: 18px; margin-top: 25px; }
.stat, .topic-card, .group-card, .student-card, .task-card, .group-detail, .table-wrap, .public-note {
  border-radius: 20px;
  border-color: #e8dfdfe6;
  box-shadow: var(--shadow-soft);
}
.stat, .topic-card, .group-card, .student-card {
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease), background .25s var(--ease);
}
.stat { padding: 22px 18px; background: linear-gradient(145deg, #fff, #fefafb); }
.stat-icon { border-radius: 14px; width: 45px; height: 45px; }
.stat strong { font-size: 52.2px; }
.stat span { color: #7d696b; line-height: 1.5; }
.topic-grid, .group-grid, .student-grid { gap: 22px; }
.topic-visual { height: 165px; padding: 20px 22px; }
.visual-0 { background: radial-gradient(ellipse at top left, #f6e6e8, transparent 70%), #edd9db; }
.visual-1 { background: radial-gradient(ellipse at top left, #f7efef, transparent 70%), #ecdbdd; }
.visual-2 { background: radial-gradient(ellipse at top left, #f4f1f7, transparent 70%), #e6e1ee; }
.topic-body { padding: 25px 24px 19px; }
.topic-body p { font-size: 21.6px; color: #7d6c6e; line-height: 1.85; }
.topic-body h3 { font-size: 32.4px; }
.topic-footer { margin-top: 20px; }
.group-card { padding: 25px; }
.group-icon { width: 42px; height: 42px; border-radius: 13px; background: #f3e2e4; }
.group-desc, .group-mentor { font-size: 21.6px; }
.progress { height: 7px; background: #f2e9e9; box-shadow: inset 0 1px 2px #5b303405; }
.progress span { background: linear-gradient(90deg, #b26f75, #8e4c52); transition: width .5s var(--ease); }
.group-detail { padding: 28px; background: linear-gradient(120deg, #fff, #fdf7f8); }
.resource { padding: 15px; border-radius: 12px; background: #f7eaec; border-color: #eedcde; }
.resource.disabled:hover { background: #f7eaec; }
.section-heading { margin-top: 38px; margin-bottom: 21px; }
.section-heading h2 { font-size: 36px; }
.section-heading p { font-size: 21.6px; }

/* Student overview: compact, readable progress summaries. */
.student-card { padding: 25px; position: relative; background: linear-gradient(155deg, #fff 55%, #fbf5f5); }
.student-card .avatar { width: 46px; height: 46px; border-radius: 16px; font-size: 23.4px; }
.student-card:nth-child(3n+2) .avatar { background: linear-gradient(140deg, #e9e6f3, #dad4e9); color: #716385; }
.student-card:nth-child(3n+3) .avatar { background: linear-gradient(140deg, #e4eff4, #d0e2e8); color: #517689; }
.student-card .person strong { font-size: 27px; }
.student-card .person small { font-size: 19.8px; }
.student-card .progress-label { margin-top: 24px; font-size: 19.8px; }
.student-statuses { gap: 5px; padding: 15px 9px; background: #f5ededb3; border-radius: 12px; text-align: center; font-size: 18px; }
.student-statuses span+span { border-left: 1px solid #e7d8da; }
.student-statuses b { font-size: 39.6px; }
.student-statuses span:nth-child(2) b { color: #a98038; }
.student-statuses span:nth-child(3) b { color: #8d4a50; }
.student-card-footer { margin-top: 16px; border: 0; padding-top: 2px; align-items: center; }
.student-card-footer small { font-size: 18px; line-height: 1.6; }
.student-card-footer>span { font-size: 19.8px; font-weight: 600; }

/* Tables, task details and dialogs */
th { padding-top: 19px; padding-bottom: 19px; background: #f5e8ea; }
td { padding-top: 21px; padding-bottom: 21px; }
tbody tr { transition: background .2s; }
tbody tr:hover { background: #fbf4f4; }
.task-card { padding: 25px; }
.task-description { color: #4c3335; line-height: 1.9; }
.status { border-radius: 20px; padding: 9px 13px; font-weight: 550; }
.status.doing { color: #89621f; background: #fbf0d9; }
.status.done { color: #773c42; background: #f3e2e4; }
.status.todo { color: #745c5e; background: #f2e9e9; }
details { padding: 10px 13px; border-radius: 10px; background: #f8f0f0; }
.empty { border-radius: 20px; padding: 50px 24px; }
dialog {
  border-radius: 24px;
  border: 1px solid #ffffffc9;
  box-shadow: 0 24px 80px #3a161a30, 0 4px 14px #3a161a12;
  width: 650px;
  background: #fefbfb;
}
dialog[open] { animation: modal-in .24s var(--ease) both; }
dialog::backdrop { background: #3b131766; backdrop-filter: blur(7px); }
.modal-heading { padding: 28px 30px 23px; background: linear-gradient(110deg, #f7eced, #fefbfb); }
.modal-heading h2 { font-weight: 650; }
.modal-heading .close { width: 32px; height: 32px; border-radius: 50%; background: #f0dee0; font-size: 41.4px; color: #825d61; }
.modal-heading .close:hover { background: #e8d1d3; }
.modal-body { padding: 27px 30px; gap: 20px; }
.modal-body .task-card { border-radius: 15px; padding: 20px; }
.modal-body .task-meta { font-size: 16.2px; }
.modal-footer { padding: 20px 30px; background: #f8efef; }
#toast { border-radius: 14px; box-shadow: 0 10px 35px #3e161a26; padding: 15px 24px; }
footer { border-top-color: #e8d9db; color: #81686a; }

@keyframes modal-in { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: translateY(0) scale(1); } }
@media (hover: hover) {
  .student-card:hover, .group-card:hover, .topic-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); border-color: #dabdbf; }
  .stat:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }
  .primary:hover, .secondary:hover, .hero-button:hover { transform: translateY(-1px); }
}
@media (max-width: 1200px) {
  .stat { padding: 19px 14px; }
  .stat-icon { width: 36px; height: 36px; border-radius: 11px; }
  .topic-grid, .group-grid, .student-grid { gap: 17px; }
  .student-card { padding: 22px; }
}
@media (max-width: 960px) {
  .hero { padding: 32px; }
  .topic-body { padding: 22px; }
  .sidebar-note { padding: 16px 13px; }
  .nav-item { min-height: 42px; }
}
@media (max-width: 640px) {
  html { scrollbar-gutter: auto; }
  .sidebar { overflow: visible; background: #ffffffeb; }
  .sidebar nav { gap: 4px; }
  .nav-item { border-radius: 11px; min-height: 41px; }
  .content { padding: 28px 18px 38px; }
  .page-heading { margin-bottom: 24px; }
  .page-heading h1 { font-size: 48.6px; }
  .page-heading p { font-size: 21.6px; }
  .hero { border-radius: 23px; padding: 29px 24px; }
  .hero p { font-size: 21.6px; }
  .stats { gap: 12px; margin-top: 20px; }
  .stat { border-radius: 17px; padding: 18px 13px; }
  .stat strong { font-size: 45px; }
  .stat span { font-size: 18px; }
  .stat-icon { width: 33px; height: 33px; }
  .topic-visual { height: 155px; }
  .topic-body { padding: 24px; }
  .group-detail, .group-card, .student-card { padding: 23px; }
  .student-statuses { padding: 16px 10px; }
  .student-statuses b { font-size: 43.2px; }
  .student-card .person strong { font-size: 28.8px; }
  .section-heading { margin-top: 29px; }
  .section-heading p { font-size: 19.8px; }
  .task-card { padding: 20px; }
  dialog { border-radius: 21px; max-height: 88dvh; }
  .modal-heading, .modal-body, .modal-footer { padding: 22px; }
  .modal-heading h2 { font-size: 36px; }
  .modal-footer .primary, .modal-footer .secondary, .modal-footer .danger { padding: 11px 13px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Light red identity */
/* Layout allowance for enlarged text; decorative glyphs keep their size. */
.topic-pattern { font-size: 170px; }
.pattern-1 { font-size: 154px; }
.pattern-2 { font-size: 175px; }
.nav-item { white-space: normal; }
.nav-item small { flex-shrink: 0; }
.workspace { flex-wrap: wrap; }
.profile { overflow-wrap: anywhere; }
.page-heading { flex-wrap: wrap; }
.page-heading>div { min-width: 0; }
.hero-copy { max-width: 72%; }
.hero h2 { max-width: 650px; }
.hero p { max-width: 600px; }
.orbit-art { opacity: .55; }
.stat { min-width: 0; }
.stat span { overflow-wrap: anywhere; }
.topic-grid, .group-grid, .student-grid { grid-template-columns: repeat(auto-fit,minmax(min(100%,280px),1fr)); }
.topic-body h3, .group-card h3, .student-card .person strong { overflow-wrap: anywhere; }
.topic-footer, .section-heading, .public-note { flex-wrap: wrap; }
.topic-footer { gap: 10px; }
.student-statuses { gap: 3px; }
.student-statuses span { padding: 0 3px; line-height: 1.5; }
.student-card-footer { align-items: flex-start; }
.task-card { gap: 18px; }
.task-side { min-width: 185px; }
.modal-heading .close { width: 42px; height: 42px; flex-shrink: 0; line-height: 1; }
.filters { flex-wrap: wrap; }
.filters select { min-width: 0; }
.modal-footer { flex-wrap: wrap; }
.resource { flex-wrap: wrap; }
@media (min-width: 961px) {
  .sidebar { width: 280px; }
  main { margin-left: 280px; }
}
@media (min-width: 641px) and (max-width: 960px) {
  .sidebar { width: 220px; }
  main { margin-left: 220px; }
  .topbar { gap: 12px; }
  .breadcrumb, .slash { display: none; }
}
@media (max-width: 1300px) {
  .stats { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .date { display: none; }
}
@media (max-width: 960px) {
  .hero-copy { max-width: 100%; }
  .orbit-art { opacity: .17; }
  .group-detail { grid-template-columns: 1fr; }
  .task-side { min-width: 0; flex-wrap: wrap; }
}
@media (max-width: 640px) {
  .sidebar nav { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 6px; }
  .nav-item { justify-content: flex-start; padding: 12px; gap: 8px; }
  .sidebar-bottom { max-width: calc(100% - 196px); }
  .sidebar-bottom .primary { white-space: normal; padding: 9px; }
  .topbar { min-height: 60px; height: auto; padding-top: 10px; padding-bottom: 10px; gap: 12px; }
  .hero h2 { max-width: 100%; overflow-wrap: anywhere; }
  .hero-copy { max-width: 100%; }
  .stat { align-items: flex-start; flex-direction: column; }
  .filters>select { flex-basis: 100%; }
  .search { min-width: 0; width: 100%; flex-basis: 100%; }
  .group-detail { padding: 20px; }
  .task-meta { overflow-wrap: anywhere; }
  .modal-heading, .modal-body, .modal-footer { padding: 18px; }
  .modal-heading h2 { overflow-wrap: anywhere; }
  .resource small { width: 100%; }
  footer { flex-wrap: wrap; gap: 10px; }
}
.brand { justify-content: center; }
.brand-logo { display: block; width: 100%; max-width: 202px; height: auto; object-fit: contain; }
:root {
  --green: #a44752;
  --dark: #76333f;
  --ink: #49363b;
  --muted: #887378;
  --line: #efdddf;
  --bg: #fcf7f7;
  --mint: #f9e8e9;
}
.brand-icon {
  width: 40px;
  height: 42px;
  border-radius: 14px 14px 14px 5px;
  background: linear-gradient(145deg, #df8c92, #b85666);
  color: #fff8f7;
  box-shadow: 0 6px 16px #bd65752b, inset 0 1px 0 #ffffff50;
}
.brand-icon svg { width: 26px; height: 26px; }
.hero {
  color: #793d48;
  background: radial-gradient(ellipse at 90% 5%, #fff2ecb0, transparent 55%),
    linear-gradient(115deg, #f9e4e3, #efc7cd);
  border: 1px solid #edcdd1;
  box-shadow: 0 14px 32px #a6546410, inset 0 1px 0 #fff8;
}
.hero p { color: #94616b; }
.hero-label { color: #a65d6b; }
.hero-label span { background: #c36c7b; }
.hero-button {
  background: linear-gradient(120deg, #b65c6b, #a24b5c);
  color: #fff;
  box-shadow: 0 6px 15px #ad566325, inset 0 1px 0 #ffffff35;
}
.hero-button:hover { background: #994656; }
.primary { background: linear-gradient(140deg, #c2747e, #ac5363); border-color: #b46370; }
.primary:hover { background: linear-gradient(140deg, #b96975, #994958); }
.orbit { border-color: #b366792f; }
.orbit-core {
  color: #b96c7c;
  background: #fff4f133;
  border-color: #cd919b66;
  box-shadow: 0 0 70px #ffffff4d, inset 0 1px 0 #ffffff80;
}
.orb { color: #a65d6b; background: #f8e3e4; border-color: #dfb0b9; box-shadow: 0 8px 22px #a3526420; }
.orb3 { background: #c47d88; }
.art-caption { color: #a7737f; }
.visual-0 { background: radial-gradient(ellipse at top left, #fff5f0, transparent 70%), #f3dbde; color: #bd7e89; }
.visual-1 { background: radial-gradient(ellipse at top left, #fff2f1, transparent 70%), #eed3d9; color: #b47789; }
.visual-2 { background: radial-gradient(ellipse at top left, #fff5f1, transparent 70%), #f1dce3; color: #b58293; }
.mint { background: #f8e6e7; color: #b26976; }
.online { background: #cb8793; box-shadow: 0 0 0 4px #cb879315; }
.student-card:nth-child(3n+2) .avatar { background: linear-gradient(140deg, #f5e4ea, #eacfd9); color: #a36c81; }
.student-card:nth-child(3n+3) .avatar { background: linear-gradient(140deg, #fae9e1, #efd9d0); color: #ad7669; }
.status.done { color: #477753; background: #eaf3e9; }
.student-statuses span:nth-child(3) b { color: #568364; }
.status.doing { color: #89621f; background: #fbf0d9; }
.status.todo { color: #87717a; background: #f5edef; }
.progress span { background: linear-gradient(90deg, #dfa0a8, #b76679); }
@media (max-width: 640px) {
  .brand { justify-content: flex-start; width: 164px; }
  .brand-logo { max-width: 164px; }
  .brand-icon { width: 35px; height: 37px; }
  .brand-icon svg { width: 24px; height: 24px; }
}

/* Additional room for the larger reading size. */
.task-filters { display:grid; grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); gap:16px; padding:22px; background:#fff8f8; border:1px solid var(--line); border-radius:18px; margin-bottom:22px; align-items:end; }
.task-filter-field { display:flex; flex-direction:column; gap:8px; font-size:18px; min-width:0; }
.task-filter-field input,.task-filter-field select { width:100%; min-width:0; padding:12px; border:1px solid var(--line); background:white; border-radius:10px; color:var(--ink); font:inherit; }
.task-filter-field input:focus,.task-filter-field select:focus { outline:2px solid #cd929c; outline-offset:2px; }
.mentor-choices { border:1px solid var(--line); border-radius:12px; padding:18px; }
.mentor-choices legend { font-size:20px; }
.mentor-choices label { display:flex; align-items:center; gap:12px; margin:12px 0; font-size:20px; }
.mentor-choices input { width:22px; height:22px; accent-color:var(--green); flex-shrink:0; }
.mentor-choices small { color:var(--muted); }
.staff-groups { white-space:normal; min-width:200px; }
.publication-admin-card { gap:12px; }
.publication-admin-card h3 { margin:0; line-height:1.5; overflow-wrap:anywhere; }
.publication-admin-card p { margin:0; }
.publication-admin-meta { display:flex; align-items:center; flex-wrap:wrap; gap:14px; }
.publication-admin-authors { color:var(--muted); font-size:19px; }
.publication-admin-venue { color:var(--green); font-size:18px; }
.publication-featured { display:flex; align-items:center; gap:12px; font-size:20px; }
.publication-featured input { width:22px; height:22px; accent-color:var(--green); flex-shrink:0; }
.group-member-wrapper { display:flex; flex-direction:column; min-width:0; }
.group-member-wrapper .student-card { flex:1; width:100%; }
.membership-edit { align-self:flex-start; margin:8px 12px; }
@media(max-width:640px){.task-filters{grid-template-columns:1fr;padding:15px;}.mentor-choices label{overflow-wrap:anywhere;}}
dialog.student-task-modal { width: 1120px; max-width: calc(100% - 40px); }
@media (max-width: 640px) {
 dialog.student-task-modal { max-width: calc(100% - 24px); }
}
.sidebar>.brand { margin-bottom: 30px; }
@media (max-width: 640px) {
 .sidebar>.brand { margin-bottom: 0; }
}
h1, h2, h3 { overflow-wrap: anywhere; }
.primary, .secondary, .hero-button, .danger { white-space: normal; }
.topic-grid, .group-grid, .student-grid { grid-template-columns: repeat(auto-fit,minmax(min(100%,360px),1fr)); }
.hero-copy { max-width: 100%; }
.hero h2, .hero p { max-width: 850px; }
.orbit-art { opacity: .14; }
.topbar { height: auto; min-height: 80px; padding-top: 14px; padding-bottom: 14px; gap: 15px; flex-wrap: wrap; }
.topbar-right { flex-wrap: wrap; }
.avatar { min-width: 46px; height: 46px; }
.avatar.small { min-width: 40px; width: 40px; height: 40px; }
.avatar.tiny { min-width: 34px; width: 34px; height: 34px; }
.student-card .person { align-items: flex-start; }
.student-card .avatar { min-width: 55px; width: 55px; height: 55px; }
.task-card { flex-direction: column; }
.task-side { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; }
.modal-heading .close { width: 58px; height: 58px; }
.workspace-icon { min-width: 40px; height: 42px; }
.topic-footer { align-items: flex-start; }
@media (min-width: 961px) {
 .sidebar { width: 320px; }
 main { margin-left: 320px; }
}
@media (min-width: 641px) and (max-width: 960px) {
 .sidebar { width: 255px; }
 main { margin-left: 255px; }
 .stats { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
 .sidebar nav { grid-template-columns: 1fr 1fr; }
 .nav-item { overflow-wrap: anywhere; }
 .nav-item svg { flex-shrink: 0; }
 .sidebar-bottom { position: static; max-width: 100%; }
 .sidebar-bottom .wide { margin-top: 14px; }
 .student-card { padding: 18px; }
 .student-statuses { grid-template-columns: 1fr; gap: 10px; text-align: left; }
 .student-statuses span { display: flex; align-items: center; gap: 12px; padding: 5px 10px; }
 .student-statuses span+span { border-left: 0; border-top: 1px solid var(--line); padding-top: 12px; }
 .student-statuses b { min-width: 35px; margin: 0; }
 .task-meta { gap: 8px; }
 .modal-footer { justify-content: flex-end; }
 .modal-footer>div { display: none; }
 .modal-footer button { max-width: 100%; }
 .section-heading { align-items: flex-start; }
}

.profile-editor{display:grid;grid-template-columns:260px minmax(0,1fr);gap:36px;padding:28px;background:white;border:1px solid var(--line);border-radius:18px;margin-bottom:32px}.profile-editor h2{overflow-wrap:anywhere}.profile-editor p{margin:8px 0 14px}.profile-photo-panel img,.profile-photo-empty{width:100%;aspect-ratio:3/4;object-fit:cover;border-radius:6px;background:#f4f4f4}.profile-photo-empty{display:grid;place-items:center;text-align:center}.profile-photo-panel input{max-width:100%;font-size:14px}.profile-awards article{display:flex;justify-content:space-between;gap:20px;align-items:center;padding:22px;background:white;border-radius:12px;margin-bottom:12px}.profile-awards p{margin:8px 0}.profile-awards button{flex-shrink:0}@media(max-width:700px){.profile-editor{grid-template-columns:1fr;padding:20px}.profile-photo-panel{max-width:260px}.profile-awards article{display:block}.profile-awards button{margin-top:12px}}

.workspace-login{max-width:560px;margin:12vh auto;padding:36px;text-align:center;background:white;border:1px solid #eadedf;border-radius:20px;box-shadow:0 12px 40px #342e3008}.workspace-login img{width:160px;margin:0 auto 24px}.workspace-login h1{margin:0 0 16px}.workspace-login p{line-height:1.6;margin-bottom:24px}.workspace-login-back{display:block;margin-top:24px;font-size:16px}@media(max-width:640px){.workspace-login{margin:40px 18px;padding:28px 20px}}
