:root {
    --primary-green: #8dc53e;
    --primary-blue: #00a3ff;
    --background: #f5f7fa;
    --white: #ffffff;
    --dark-text: #333333;
    --light-text: #666666;
    --danger: #d7263d;
    --success: #17803d;
    --border: #d9e0e7;
    --shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    background: var(--background);
}

body {
    min-height: 100vh;
    margin: 0;
    background: var(--background);
    color: var(--dark-text);
    font-family: Arial, "Helvetica Neue", sans-serif;
}

a {
    color: inherit;
    text-decoration: none;
}

.app-header {
    position: relative;
    display: flex;
    min-height: 90px;
    width: 100%;
    align-items: center;
    justify-content: center;
    background: var(--primary-green);
    padding: 18px 72px;
    text-align: center;
}

.app-header h1 {
    margin: 0;
    color: var(--white);
    font-size: 28px;
    font-weight: 700;
    line-height: 1.25;
}

.header-back {
    position: absolute;
    inset-inline-start: 24px;
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 999px;
    color: var(--white);
    font-size: 38px;
    line-height: 1;
    transition: background 160ms ease, transform 160ms ease;
}

.header-back:hover {
    background: rgba(255, 255, 255, 0.14);
    transform: translateX(2px);
}

.screen-shell {
    min-height: calc(100vh - 90px);
    display: grid;
    place-items: center;
    padding: 40px;
}

.center-stack {
    width: min(100%, 960px);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.landing-stack {
    gap: 50px;
}

.auth-stack {
    gap: 35px;
}

.logo-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.logo-mark {
    display: grid;
    width: 140px;
    height: 140px;
    place-items: center;
    color: var(--primary-green);
}

.logo-mark svg {
    width: 120px;
    height: 120px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 5;
}

.logo-section h2 {
    margin: 20px 0 0;
    color: var(--dark-text);
    font-size: 28px;
    font-weight: 700;
    line-height: 1.3;
}

.logo-section p {
    margin: 10px 0 0;
    color: var(--light-text);
    font-size: 16px;
    line-height: 1.7;
}

.access-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.access-card {
    display: flex;
    width: 220px;
    height: 220px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    border-radius: 20px;
    background: var(--primary-blue);
    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.12);
    color: var(--white);
    text-align: center;
    transition: transform 160ms ease, box-shadow 160ms ease;
}

.access-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.14);
}

.access-card span:last-child {
    padding-inline: 14px;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.35;
}

.access-icon {
    display: grid;
    width: 78px;
    height: 78px;
    place-items: center;
}

.access-icon svg {
    width: 72px;
    height: 72px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 5;
}

.login-card {
    width: min(100%, 460px);
    padding: 30px;
    border-radius: 24px;
    background: var(--white);
    box-shadow: var(--shadow);
}

.student-register-card {
    width: min(100%, 760px);
    padding: 30px;
    border-radius: 24px;
    background: var(--white);
    box-shadow: var(--shadow);
}

.set-password-card {
    width: min(100%, 520px);
    padding: 30px;
    border-radius: 24px;
    background: var(--white);
    box-shadow: var(--shadow);
}

.login-card h3 {
    margin: 0 0 30px;
    color: var(--dark-text);
    font-size: 28px;
    font-weight: 700;
    line-height: 1.3;
    text-align: center;
}

.instruction-text {
    margin: 0 0 25px;
    color: #222222;
    font-size: 16px;
    line-height: 1.8;
}

.field-group {
    display: grid;
    gap: 8px;
    margin-bottom: 20px;
    color: var(--dark-text);
    font-size: 14px;
    font-weight: 700;
}

.field-group input,
.field-group select,
.field-group textarea {
    width: 100%;
    min-height: 58px;
    border: 1px solid #6d7680;
    border-radius: 14px;
    background: var(--white);
    color: var(--dark-text);
    font: inherit;
    font-size: 16px;
    padding: 16px 18px;
    outline: none;
    resize: vertical;
    transition: border-color 160ms ease, box-shadow 160ms ease;
}

.field-group input:focus,
.field-group select:focus,
.field-group textarea:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 4px rgba(0, 163, 255, 0.14);
}

.field-group input:disabled {
    background: rgba(102, 102, 102, 0.08);
    color: var(--light-text);
    cursor: not-allowed;
}

.form-message {
    margin: 0 0 16px;
    border-radius: 16px;
    border: 1px solid rgba(215, 38, 61, 0.2);
    background: rgba(215, 38, 61, 0.08);
    color: var(--danger);
    padding: 14px 16px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.6;
}

.form-message.is-success {
    border-color: rgba(23, 128, 61, 0.2);
    background: rgba(23, 128, 61, 0.08);
    color: var(--success);
}

.primary-button {
    display: inline-flex;
    width: 100%;
    min-height: 55px;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 14px;
    background: var(--primary-blue);
    color: var(--white);
    cursor: pointer;
    font: inherit;
    font-size: 18px;
    font-weight: 700;
    transition: background 160ms ease, opacity 160ms ease;
}

.primary-button:hover {
    background: #008fe0;
}

.primary-button:disabled {
    cursor: progress;
    opacity: 0.72;
}

.button-spinner {
    width: 24px;
    height: 24px;
    border: 3px solid rgba(255, 255, 255, 0.45);
    border-top-color: var(--white);
    border-radius: 999px;
    animation: spin 800ms linear infinite;
}

.secondary-button {
    display: block;
    margin: 10px auto 0;
    border: 0;
    background: transparent;
    color: var(--primary-blue);
    cursor: pointer;
    font: inherit;
    font-size: 16px;
    font-weight: 700;
    padding: 10px 14px;
}

.secondary-button:hover {
    text-decoration: underline;
}

.outline-button {
    display: inline-flex;
    width: 100%;
    min-height: 55px;
    align-items: center;
    justify-content: center;
    margin-top: 12px;
    border: 1px solid #9aa4af;
    border-radius: 14px;
    background: var(--white);
    color: var(--dark-text);
    cursor: pointer;
    font: inherit;
    font-size: 16px;
    font-weight: 700;
}

.outline-button:hover {
    border-color: var(--primary-blue);
    color: var(--primary-blue);
}

.login-register-action.is-hidden {
    display: none;
}

.register-screen-shell {
    align-items: start;
}

.register-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 16px;
}

.register-check-list {
    display: grid;
    gap: 10px;
    margin-bottom: 20px;
}

.register-check-list-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.register-check-list-header > strong {
    color: var(--dark-text);
    font-size: 14px;
}

.register-check-list-header > span {
    color: var(--light-text);
    font-size: 13px;
    font-weight: 700;
}

.register-skills-grid {
    display: grid;
    max-height: 320px;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 10px;
    overflow-y: auto;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: #f8fafc;
    color: var(--dark-text);
    direction: ltr;
    font-size: 13px;
    padding: 12px;
}

.register-skill-option {
    display: flex;
    min-height: 48px;
    align-items: flex-start;
    gap: 9px;
    border: 1px solid #dde5ee;
    border-radius: 12px;
    background: var(--white);
    cursor: pointer;
    line-height: 1.45;
    padding: 10px 11px;
    text-align: left;
}

.register-skill-option:hover {
    border-color: var(--primary-blue);
}

.register-skill-option input {
    flex: 0 0 auto;
    margin-top: 2px;
    accent-color: var(--primary-blue);
}

.register-skill-option span {
    min-width: 0;
    overflow-wrap: anywhere;
}

.register-empty-text {
    color: var(--light-text);
    direction: rtl;
    font-size: 14px;
    line-height: 1.6;
    text-align: right;
}

.register-actions {
    display: grid;
    gap: 12px;
}

.dashboard-body {
    height: 100vh;
    min-height: 100vh;
    display: flex;
    overflow: hidden;
}

.dashboard-menu-toggle,
.dashboard-sidebar-backdrop {
    display: none;
}

.dashboard-sidebar {
    width: 280px;
    height: 100vh;
    min-height: 0;
    flex: 0 0 280px;
    display: flex;
    flex-direction: column;
    background: var(--sidebar-background, #333d46);
    overflow: hidden;
    padding: 38px 20px 20px;
}

.dashboard-sidebar h1 {
    margin: 0 0 40px;
    color: var(--white);
    font-size: 24px;
    font-weight: 700;
    text-align: center;
}

.dashboard-menu {
    min-height: 0;
    display: grid;
    gap: 10px;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding-inline-end: 4px;
    scrollbar-width: thin;
}

.dashboard-menu-item {
    display: flex;
    width: 100%;
    align-items: center;
    gap: 12px;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: var(--white);
    cursor: pointer;
    font: inherit;
    font-size: 16px;
    font-weight: 700;
    padding: 14px 16px;
    text-align: start;
}

.dashboard-menu-item.is-selected,
.dashboard-menu-item:hover {
    background: rgba(255, 255, 255, 0.15);
}

.menu-symbol {
    display: grid;
    width: 24px;
    height: 24px;
    place-items: center;
    font-size: 20px;
    line-height: 1;
}

.dashboard-main {
    min-width: 0;
    min-height: 0;
    height: 100vh;
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: var(--background);
}

.dashboard-topbar {
    flex: 0 0 auto;
    height: 75px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    background: var(--white);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
    padding: 0 30px;
}

.dashboard-topbar h2 {
    margin: 0;
    color: var(--dark-text);
    font-size: 22px;
    font-weight: 700;
}

.dashboard-topbar span {
    color: var(--dark-text);
    font-size: 18px;
    font-weight: 700;
}

.dashboard-content-shell {
    min-height: 0;
    flex: 1 1 auto;
    height: auto;
    overflow: auto;
    overscroll-behavior: contain;
    padding: 25px;
}

.dashboard-placeholder {
    width: min(100%, 900px);
    min-height: 260px;
    margin-inline: auto;
    border-radius: 24px;
    background: var(--white);
    box-shadow: var(--shadow);
    padding: 30px;
}

.dashboard-placeholder .kicker {
    margin: 0 0 12px;
    color: var(--primary-blue);
    font-size: 15px;
    font-weight: 700;
}

.dashboard-placeholder h3 {
    margin: 0 0 12px;
    color: var(--dark-text);
    font-size: 28px;
    font-weight: 700;
}

.dashboard-placeholder > p {
    max-width: 680px;
    margin: 0;
    color: var(--light-text);
    font-size: 16px;
    line-height: 1.8;
}

.profile-card {
    width: 100%;
}

.profile-logo-section {
    margin-bottom: 30px;
}

.profile-logo-section h3 {
    margin: 16px 0 0;
    font-size: 28px;
    line-height: 1.3;
}

.profile-logo-section p {
    margin-top: 8px;
}

.profile-avatar-wrap {
    display: grid;
    place-items: center;
}

.profile-avatar {
    position: relative;
    display: grid;
    width: 108px;
    height: 108px;
    place-items: center;
    overflow: visible;
    border: 0;
    border-radius: 999px;
    background: #e9edf2;
    color: var(--light-text);
    cursor: pointer;
}

.profile-avatar img {
    width: 108px;
    height: 108px;
    border-radius: 999px;
    object-fit: cover;
}

.profile-avatar > span:first-child {
    font-size: 50px;
    line-height: 1;
}

.profile-camera {
    position: absolute;
    inset-inline-start: 0;
    bottom: 0;
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border: 3px solid var(--white);
    border-radius: 999px;
    background: var(--primary-green);
    color: var(--white);
    font-size: 16px;
    line-height: 1;
}

.profile-photo-help {
    color: var(--dark-text);
    font-weight: 700;
}

.profile-form-section {
    margin-bottom: 30px;
}

.profile-form-section h4 {
    margin: 0 0 20px;
    color: var(--dark-text);
    font-size: 20px;
    font-weight: 700;
}

.profile-section-heading {
    display: grid;
    gap: 6px;
    margin-bottom: 18px;
}

.profile-section-heading h4 {
    margin: 0;
}

.profile-section-heading p,
.profile-muted {
    margin: 0;
    color: var(--light-text);
    font-size: 15px;
    line-height: 1.7;
}

.profile-grid {
    display: grid;
    gap: 15px;
}

.profile-grid.two-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.profile-grid.one-column {
    grid-template-columns: minmax(0, 1fr);
}

.mobile-row {
    display: grid;
    grid-template-columns: 130px minmax(0, 1fr);
    gap: 15px;
}

.skill-chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
}

.skill-chip {
    display: inline-flex;
    min-height: 38px;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(0, 163, 255, 0.24);
    border-radius: 999px;
    background: rgba(0, 163, 255, 0.08);
    color: var(--dark-text);
    font-size: 14px;
    font-weight: 700;
    padding: 6px 12px;
}

.skill-chip button {
    display: grid;
    width: 24px;
    height: 24px;
    place-items: center;
    border: 0;
    border-radius: 999px;
    background: rgba(215, 38, 61, 0.1);
    color: var(--danger);
    cursor: pointer;
    font: inherit;
    font-size: 18px;
    line-height: 1;
    padding: 0;
}

.skill-chip button:disabled {
    cursor: progress;
    opacity: 0.6;
}

.empty-inline {
    margin: 0;
    color: var(--light-text);
    font-size: 15px;
    line-height: 1.7;
}

.skill-add-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 160px;
    align-items: end;
    gap: 12px;
}

.skill-add-row .field-group {
    margin-bottom: 0;
}

.compact-button {
    width: auto;
    min-width: 150px;
    margin-top: 0;
    padding-inline: 18px;
}

.outline-button:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

.profile-actions {
    display: flex;
    justify-content: flex-start;
    margin-bottom: 20px;
}

.password-change-card {
    max-width: 560px;
    margin-inline: auto;
}

.password-change-card h3 {
    margin-bottom: 12px;
}

.password-change-card form {
    margin-top: 26px;
}

.students-section-surface {
    width: min(100%, 1600px);
    min-height: 0;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
    padding: 0;
}

.students-page {
    width: 100%;
}

.student-dashboard-page {
    width: 100%;
}

.students-page h3 {
    margin: 0;
    color: var(--dark-text);
    font-size: 32px;
    font-weight: 700;
    line-height: 1.25;
}

.students-page > p {
    margin-top: 10px;
    color: var(--light-text);
    font-size: 16px;
    line-height: 1.7;
}

.student-dashboard-page h3 {
    margin: 0;
    color: var(--dark-text);
    font-size: 32px;
    font-weight: 700;
    line-height: 1.25;
}

.student-dashboard-page > p {
    margin-top: 10px;
    color: var(--light-text);
    font-size: 16px;
    line-height: 1.7;
}

.dashboard-overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.admin-supervision-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.dashboard-stat-card,
.dashboard-panel,
.dashboard-notification-card {
    border-radius: 20px;
    background: var(--white);
    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.05);
}

.dashboard-stat-card {
    display: grid;
    gap: 10px;
    padding: 20px;
}

.dashboard-stat-card span {
    color: var(--light-text);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.5;
}

.dashboard-stat-card strong {
    color: var(--dark-text);
    font-size: 24px;
    line-height: 1.3;
}

.dashboard-panel {
    margin-bottom: 20px;
    padding: 22px;
}

.dashboard-notification-list {
    display: grid;
    gap: 14px;
}

.dashboard-notification-card {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    padding: 16px;
}

.dashboard-project-mark {
    display: grid;
    width: 64px;
    height: 64px;
    place-items: center;
    overflow: hidden;
    border-radius: 16px;
    background: rgba(102, 102, 102, 0.1);
    color: var(--light-text);
    font-size: 28px;
}

.dashboard-project-mark img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dashboard-notification-copy {
    min-width: 0;
    display: grid;
    gap: 5px;
}

.dashboard-notification-copy strong {
    overflow: hidden;
    color: var(--dark-text);
    font-size: 17px;
    line-height: 1.4;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dashboard-notification-copy p,
.dashboard-notification-copy small {
    margin: 0;
    color: var(--light-text);
    font-size: 14px;
    line-height: 1.6;
}

.dashboard-notification-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

.link-button {
    display: inline;
    border: 0;
    background: transparent;
    color: var(--primary-blue);
    cursor: pointer;
    font: inherit;
    font-weight: 700;
    padding: 0;
    text-align: inherit;
}

.link-button:hover {
    text-decoration: underline;
}

.students-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 25px;
}

.students-count {
    display: inline-flex;
    min-height: 38px;
    align-items: center;
    border-radius: 999px;
    background: rgba(141, 197, 62, 0.14);
    color: #46720f;
    font-size: 14px;
    font-weight: 700;
    padding: 8px 14px;
}

.students-toolbar {
    display: grid;
    gap: 20px;
    margin-bottom: 25px;
}

.students-search-field {
    display: flex;
    min-height: 58px;
    align-items: center;
    gap: 12px;
    border-radius: 14px;
    background: var(--white);
    color: var(--light-text);
    padding: 0 18px;
}

.students-search-field span {
    color: var(--primary-blue);
    font-size: 24px;
    line-height: 1;
}

.students-search-field input {
    min-width: 0;
    flex: 1;
    border: 0;
    background: transparent;
    color: var(--dark-text);
    font: inherit;
    font-size: 16px;
    outline: none;
}

.students-filter-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.students-filter-row select {
    width: 100%;
    min-height: 58px;
    border: 0;
    border-radius: 14px;
    background: var(--white);
    color: var(--dark-text);
    font: inherit;
    font-size: 16px;
    padding: 0 18px;
    outline: none;
}

.students-list,
.supervisors-list,
.available-projects-list {
    display: grid;
    overflow: hidden;
    border-radius: 18px;
    background: var(--white);
    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.05);
}

.student-list-row {
    display: grid;
    grid-template-columns: minmax(220px, 1.2fr) minmax(220px, 1.8fr) auto;
    align-items: center;
    gap: 16px;
    border-bottom: 1px solid rgba(102, 102, 102, 0.12);
    background: var(--white);
    padding: 14px 16px;
}

.student-list-row:last-child,
.supervisor-list-row:last-child,
.available-project-list-row:last-child {
    border-bottom: 0;
}

.student-list-person {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.student-avatar {
    display: grid;
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    place-items: center;
    overflow: hidden;
    border-radius: 999px;
    background: #e9edf2;
    color: var(--dark-text);
    font-size: 18px;
    font-weight: 700;
}

.student-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.student-card-title {
    min-width: 0;
}

.student-name-link {
    display: block;
    overflow: hidden;
    color: var(--dark-text);
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.student-name-link:hover {
    color: var(--primary-blue);
}

.student-card-title p {
    overflow: hidden;
    margin: 4px 0 0;
    color: #777777;
    font-size: 13px;
    line-height: 1.5;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.student-list-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.student-skill-tag {
    display: inline-flex;
    min-height: 30px;
    align-items: center;
    border-radius: 10px;
    background: rgba(0, 163, 255, 0.08);
    color: var(--dark-text);
    font-size: 12px;
    line-height: 1.4;
    padding: 6px 10px;
}

.student-skill-tag.is-more {
    background: rgba(102, 102, 102, 0.1);
    color: var(--light-text);
}

.student-list-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.student-card-action {
    min-width: 82px;
    min-height: 38px;
    margin-top: 0;
    font-size: 14px;
    padding: 0 12px;
}

.student-card-action:disabled {
    cursor: not-allowed;
}

.students-empty {
    grid-column: 1 / -1;
    padding: 30px;
    text-align: center;
}

.students-empty h4 {
    margin: 0 0 10px;
    color: var(--dark-text);
    font-size: 20px;
}

.students-empty p {
    margin: 0;
    color: var(--light-text);
}

.public-profile-body {
    min-height: 100vh;
}

.public-profile-shell {
    min-height: calc(100vh - 90px);
    display: grid;
    place-items: start center;
    padding: 40px 24px;
}

.public-profile-card {
    width: min(100%, 820px);
    border-radius: 20px;
    background: var(--white);
    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.05);
    padding: 24px;
}

.public-profile-card h2 {
    margin: 0;
    color: var(--dark-text);
    font-size: 24px;
    font-weight: 700;
    line-height: 1.35;
}

.public-profile-card > p,
.public-profile-header p {
    margin: 6px 0 0;
    color: var(--light-text);
    font-size: 16px;
    line-height: 1.7;
}

.public-profile-header {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 24px;
}

.public-profile-avatar {
    width: 76px;
    height: 76px;
    flex-basis: 76px;
    font-size: 26px;
}

.public-info-list {
    display: grid;
    gap: 12px;
}

.public-info-row {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 12px;
}

.public-info-row span {
    color: var(--dark-text);
    font-weight: 700;
}

.public-info-row p {
    margin: 0;
    color: var(--dark-text);
    line-height: 1.7;
}

.public-skills-section {
    margin-top: 24px;
}

.public-skills-section h3 {
    margin: 0 0 10px;
    color: var(--dark-text);
    font-size: 18px;
    font-weight: 700;
}

.public-profile-section {
    margin-top: 24px;
}

.public-profile-section h3 {
    margin: 0 0 10px;
    color: var(--dark-text);
    font-size: 18px;
    font-weight: 700;
}

.public-profile-section p {
    margin: 0;
    color: var(--dark-text);
    line-height: 1.8;
}

.public-profile-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.public-profile-action {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    border: 1px solid #9aa4af;
    border-radius: 12px;
    background: var(--white);
    color: var(--dark-text);
    font-size: 15px;
    font-weight: 700;
    padding: 0 18px;
    text-decoration: none;
}

.public-profile-action.primary {
    border-color: var(--primary-blue);
    background: var(--primary-blue);
    color: var(--white);
}

.public-profile-action:hover,
.public-profile-action:focus-visible {
    border-color: var(--primary-blue);
    color: var(--primary-blue);
}

.public-profile-action.primary:hover,
.public-profile-action.primary:focus-visible {
    background: #008fe0;
    color: var(--white);
}

.supervisors-page {
    width: 100%;
}

.supervisors-page h3 {
    margin: 0;
    color: var(--dark-text);
    font-size: 32px;
    font-weight: 700;
    line-height: 1.25;
}

.supervisors-page > p {
    margin-top: 10px;
    color: var(--light-text);
    font-size: 16px;
    line-height: 1.7;
}

.supervisor-list-row {
    display: grid;
    grid-template-columns: minmax(220px, 1.1fr) minmax(260px, 1.25fr) minmax(180px, 1fr) auto;
    align-items: center;
    gap: 16px;
    border-bottom: 1px solid rgba(102, 102, 102, 0.12);
    background: var(--white);
    padding: 14px 16px;
}

.supervisor-list-person {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.supervisor-avatar {
    width: 54px;
    height: 54px;
    flex-basis: 54px;
}

.supervisor-card-title {
    min-width: 0;
}

.supervisor-card-title h4 {
    overflow: hidden;
    margin: 0;
    color: var(--dark-text);
    font-size: 17px;
    font-weight: 700;
    line-height: 1.4;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.supervisor-card-title p {
    overflow: hidden;
    margin: 4px 0 0;
    color: #777777;
    font-size: 14px;
    line-height: 1.5;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.supervisor-info-list {
    display: grid;
    gap: 8px;
}

.supervisor-info-row {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.supervisor-info-row span {
    display: grid;
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    place-items: center;
    color: #777777;
    font-size: 15px;
    line-height: 1;
}

.supervisor-info-row p {
    overflow: hidden;
    margin: 0;
    color: var(--dark-text);
    font-size: 14px;
    line-height: 1.5;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.supervisor-bio {
    display: -webkit-box;
    overflow: hidden;
    margin: 0;
    color: var(--dark-text);
    font-size: 14px;
    line-height: 1.5;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.supervisor-bio.is-empty {
    color: var(--light-text);
}

.supervisor-request-button {
    min-width: 130px;
    min-height: 38px;
    margin-top: 0;
    font-size: 14px;
    padding: 0 12px;
}

.supervisor-request-button:disabled {
    cursor: not-allowed;
}

.projects-page {
    width: 100%;
}

.projects-page h3 {
    margin: 0;
    color: var(--dark-text);
    font-size: 32px;
    font-weight: 700;
    line-height: 1.25;
}

.projects-page > p {
    margin-top: 10px;
    color: var(--light-text);
    font-size: 16px;
    line-height: 1.7;
}

.projects-header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.create-project-button {
    width: auto;
    min-height: 46px;
    border-radius: 14px;
    background: var(--primary-green);
    font-size: 15px;
    padding: 0 18px;
}

.create-project-button:hover {
    background: #78ad31;
}

.students-filter-row.single-filter {
    grid-template-columns: minmax(0, 1fr);
}

.available-project-list-row {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    border-bottom: 1px solid rgba(102, 102, 102, 0.12);
    background: var(--white);
    padding: 14px 16px;
}

.available-project-image {
    display: grid;
    width: 96px;
    height: 72px;
    flex: 0 0 96px;
    place-items: center;
    overflow: hidden;
    border: 0;
    border-radius: 14px;
    background: rgba(102, 102, 102, 0.09);
    color: var(--light-text);
    cursor: pointer;
    font: inherit;
    font-size: 30px;
    padding: 0;
}

.available-project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.available-project-image:hover,
.available-project-title-button:hover {
    color: var(--primary-blue);
}

.available-project-list-main {
    min-width: 0;
    display: grid;
    gap: 8px;
}

.available-project-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.available-project-title-row h4 {
    min-width: 0;
    overflow: hidden;
    margin: 0;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.4;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.available-project-title-button {
    max-width: 100%;
    overflow: hidden;
    border: 0;
    background: transparent;
    color: var(--dark-text);
    cursor: pointer;
    font: inherit;
    text-align: inherit;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding: 0;
}

.available-project-status {
    display: inline-flex;
    min-height: 28px;
    flex: 0 0 auto;
    align-items: center;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 700;
    padding: 6px 10px;
}

.available-project-status.is-supervised {
    background: rgba(23, 128, 61, 0.1);
    color: var(--success);
}

.available-project-status.is-open {
    background: rgba(255, 166, 0, 0.13);
    color: #aa6800;
}

.available-project-description {
    display: -webkit-box;
    overflow: hidden;
    margin: 0;
    color: var(--dark-text);
    font-size: 14px;
    line-height: 1.5;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.available-project-list-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.available-project-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--dark-text);
}

.available-project-meta span {
    color: var(--light-text);
    font-size: 18px;
    line-height: 1;
}

.available-project-meta p {
    margin: 0;
    font-size: 15px;
    line-height: 1.4;
}

.available-project-supervisor {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 24px;
    color: var(--light-text);
    font-size: 14px;
    line-height: 1.5;
}

.available-project-supervisor a {
    overflow: hidden;
    color: var(--primary-blue);
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.available-project-skills {
    display: flex;
    flex-wrap: wrap;
    align-content: flex-start;
    gap: 8px;
}

.available-project-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    width: 136px;
    gap: 10px;
}

.available-project-request,
.available-project-details {
    min-height: 38px;
    margin-top: 0;
    font-size: 14px;
    padding: 0 12px;
}

.available-project-request.is-cancel-request {
    border: 1px solid rgba(215, 38, 61, 0.3);
    background: rgba(215, 38, 61, 0.08);
    color: var(--danger);
}

.available-project-request.is-cancel-request:hover {
    background: rgba(215, 38, 61, 0.14);
}

.supervisor-requests-list {
    display: grid;
    gap: 14px;
}

.supervisor-request-row {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    border-radius: 18px;
    background: var(--white);
    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.05);
    padding: 16px;
}

.supervisor-request-main {
    min-width: 0;
    display: grid;
    gap: 8px;
}

.supervisor-request-main > p {
    margin: 0;
    color: var(--light-text);
    font-size: 14px;
    line-height: 1.6;
}

.supervisor-request-message {
    color: var(--dark-text) !important;
}

.supervisor-request-actions {
    min-width: 300px;
}

.project-detail-member {
    border: 0;
    cursor: pointer;
    font: inherit;
    text-align: inherit;
}

.supervisor-member-management {
    margin: 18px 0;
}

.supervisor-add-student-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 150px;
    align-items: end;
    gap: 12px;
}

.supervisor-add-student-form .field-group {
    margin-bottom: 0;
}

.supervisor-project-member-row {
    display: grid;
    gap: 10px;
    border-radius: 16px;
    background: rgba(102, 102, 102, 0.06);
    padding: 10px;
}

.supervisor-project-member-row .my-project-member {
    background: transparent;
    padding: 0;
}

.supervisor-member-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.supervisor-member-actions .compact-button {
    min-width: 0;
    width: 100%;
    min-height: 36px;
    font-size: 13px;
    padding-inline: 10px;
}

.supervisor-add-student-dialog {
    width: min(100%, 520px);
}

.add-student-preview {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 18px 0;
    border-radius: 16px;
    background: rgba(0, 163, 255, 0.06);
    padding: 14px;
}

.add-student-preview .student-avatar {
    width: 58px;
    height: 58px;
    flex: 0 0 58px;
}

.add-student-preview div {
    min-width: 0;
    display: grid;
    gap: 4px;
}

.add-student-preview strong,
.add-student-preview p {
    overflow: hidden;
    margin: 0;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.add-student-preview strong {
    color: var(--dark-text);
    font-size: 17px;
}

.add-student-preview p {
    color: var(--light-text);
    font-size: 14px;
}

.discussion-page {
    display: grid;
    gap: 22px;
}

.discussion-panel {
    display: grid;
    gap: 14px;
}

.discussion-list {
    display: grid;
    gap: 14px;
}

.discussion-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
    border-radius: 18px;
    background: var(--white);
    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.05);
    padding: 16px;
}

.discussion-row-main {
    min-width: 0;
    display: grid;
    gap: 10px;
}

.discussion-row-main > p {
    margin: 0;
    color: var(--light-text);
    font-size: 14px;
    line-height: 1.7;
}

.discussion-row-actions {
    display: grid;
    min-width: 180px;
    gap: 8px;
}

.discussion-teacher-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.discussion-teacher-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: 999px;
    background: rgba(0, 163, 255, 0.09);
    color: #005c91;
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 700;
}

.discussion-teacher-chip small {
    color: inherit;
    font-size: 12px;
    font-weight: 400;
    opacity: 0.78;
}

.discussion-teacher-chip.is-accepted {
    background: rgba(23, 128, 61, 0.11);
    color: var(--success);
}

.discussion-teacher-chip.is-rejected,
.discussion-teacher-chip.is-cancelled {
    background: rgba(215, 38, 61, 0.1);
    color: var(--danger);
}

.discussion-missing-documents {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    color: var(--light-text);
    font-size: 13px;
}

.discussion-missing-documents strong {
    border-radius: 999px;
    background: rgba(215, 38, 61, 0.09);
    color: var(--danger);
    padding: 5px 10px;
}

.discussion-dialog {
    width: min(100%, 620px);
}

.discussion-teacher-picker {
    display: grid;
    gap: 10px;
    margin-bottom: 20px;
}

.discussion-teacher-picker strong,
.discussion-feedback-preview strong,
.discussion-feedback-preview h5 {
    color: var(--dark-text);
    font-size: 15px;
}

.discussion-teacher-picker p {
    margin: 0;
    color: var(--light-text);
    font-size: 13px;
}

.discussion-teacher-picker > div {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 8px;
}

.discussion-teacher-picker label {
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid #d9e0e7;
    border-radius: 12px;
    padding: 10px;
    font-size: 14px;
    font-weight: 700;
}

.discussion-feedback-preview {
    display: grid;
    gap: 8px;
    border-radius: 14px;
    background: rgba(0, 163, 255, 0.06);
    padding: 12px;
}

.discussion-feedback-preview h5,
.discussion-feedback-preview p,
.discussion-feedback-preview small {
    margin: 0;
}

.discussion-feedback-heading {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.discussion-feedback-text {
    color: var(--dark-text);
    font-size: 14px;
    line-height: 1.7;
}

.discussion-feedback-files {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.discussion-feedback-files a {
    border-radius: 999px;
    background: var(--white);
    color: var(--primary-blue);
    padding: 7px 11px;
    font-size: 13px;
    font-weight: 700;
}

.discussion-feedback-stack,
.discussion-final-form,
.discussion-mark-mode,
.discussion-student-mark-fields,
.discussion-mark-list {
    display: grid;
    gap: 10px;
}

.discussion-mark-mode {
    border-radius: 14px;
    background: rgba(102, 102, 102, 0.06);
    padding: 12px;
}

.discussion-mark-mode > strong {
    color: var(--dark-text);
    font-size: 14px;
}

.discussion-mark-mode > label,
.discussion-student-mark-fields label,
.discussion-mark-list div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.discussion-mark-mode input[type="number"],
.discussion-student-mark-fields input {
    width: 120px;
}

.discussion-student-mark-fields {
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    padding-top: 10px;
}

.discussion-mark-list div {
    border-radius: 10px;
    background: rgba(102, 102, 102, 0.06);
    padding: 8px 10px;
}

.discussion-final-submission .discussion-feedback-files {
    margin-top: 4px;
}

.discussion-status-card {
    display: grid;
    gap: 10px;
    border-radius: 18px;
    background: var(--white);
    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.05);
    padding: 18px;
}

.discussion-status-card h4,
.discussion-status-card p {
    margin: 0;
}

.discussion-status-card p {
    color: var(--light-text);
    line-height: 1.7;
}

.discussion-detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
}

.discussion-detail-grid article {
    display: grid;
    gap: 6px;
    border-radius: 14px;
    background: rgba(102, 102, 102, 0.06);
    padding: 14px;
}

.discussion-detail-grid span {
    color: var(--light-text);
    font-size: 13px;
}

.discussion-detail-grid strong {
    overflow-wrap: anywhere;
    color: var(--dark-text);
    font-size: 15px;
}

.discussion-teacher-list {
    display: grid;
    gap: 12px;
}

.discussion-teacher-card {
    display: grid;
    gap: 10px;
    border-radius: 16px;
    background: var(--white);
    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.05);
    padding: 14px;
}

.discussion-teacher-card > div:first-child {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.admin-profile-card,
.admin-editor-panel,
.admin-list-panel {
    display: grid;
    gap: 14px;
}

.admin-profile-card {
    width: 100%;
    border-radius: 18px;
    background: var(--white);
    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.05);
    padding: 20px;
}

.admin-crud-header {
    align-items: center;
}

.admin-header-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

.admin-profile-card p {
    display: grid;
    gap: 5px;
    margin: 0;
}

.admin-profile-card span {
    color: var(--light-text);
    font-size: 13px;
}

.admin-profile-card strong {
    color: var(--dark-text);
    font-size: 16px;
}

.admin-permission-card.is-enabled {
    border-color: rgba(23, 128, 61, 0.22);
}

.admin-permission-card.is-disabled {
    border-color: rgba(102, 102, 102, 0.2);
}

.admin-editor-form {
    display: grid;
    gap: 4px;
}

.admin-editor-page {
    display: grid;
    gap: 18px;
}

.admin-page-form {
    display: grid;
    gap: 16px;
}

.admin-form-section {
    display: grid;
    gap: 16px;
}

.admin-form-section .profile-grid {
    gap: 14px;
}

.admin-form-submit-panel {
    display: flex;
    justify-content: flex-end;
}

.admin-form-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

.admin-project-members-list {
    gap: 10px;
}

.admin-project-member-row {
    border: 1px solid var(--border);
    box-shadow: none;
    padding: 12px;
}

.admin-project-add-member-grid {
    align-items: end;
}

.admin-table-list {
    display: grid;
    gap: 12px;
}

.admin-table-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
    border-radius: 16px;
    background: var(--white);
    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.05);
    padding: 16px;
}

.admin-row-main {
    min-width: 0;
    display: grid;
    gap: 6px;
}

.admin-row-title {
    min-width: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.admin-row-main strong,
.admin-row-main p {
    overflow: hidden;
    margin: 0;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-row-main strong {
    color: var(--dark-text);
    font-size: 17px;
}

.admin-row-title-link {
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    color: var(--dark-text);
    font-size: 17px;
    font-weight: 700;
    text-decoration: none;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-row-title-link:hover,
.admin-row-title-link:focus-visible {
    color: var(--primary);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.admin-active-badge {
    border-radius: 999px;
    padding: 5px 9px;
    font-size: 12px;
    font-weight: 700;
}

.admin-active-badge.is-active {
    background: rgba(23, 128, 61, 0.1);
    color: #17803d;
}

.admin-active-badge.is-disabled {
    background: rgba(178, 45, 45, 0.1);
    color: #a62828;
}

.admin-row-main p {
    color: var(--light-text);
    font-size: 14px;
}

.admin-row-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.admin-row-meta span {
    border-radius: 999px;
    background: rgba(102, 102, 102, 0.08);
    color: var(--light-text);
    padding: 6px 10px;
    font-size: 12px;
}

.admin-row-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 120px));
    gap: 8px;
}

.admin-row-actions .compact-button {
    min-width: 0;
    width: 100%;
}

.admin-supervision-actions {
    display: flex;
    min-width: min(430px, 100%);
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.admin-supervision-assign-form {
    display: flex;
    flex: 1 1 300px;
    gap: 8px;
}

.admin-supervision-assign-form select {
    min-width: 170px;
    flex: 1;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    background: var(--white);
    color: var(--dark-text);
    font: inherit;
    padding: 10px 12px;
}

.admin-supervision-actions > .compact-button {
    min-width: 128px;
}

.admin-supervision-lock-note {
    flex-basis: 100%;
    margin: 0;
    color: #a62828;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.5;
    text-align: end;
}

.admin-check-list {
    display: grid;
    gap: 10px;
}

.admin-check-list > strong {
    color: var(--dark-text);
    font-size: 14px;
}

.admin-check-list > div {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.admin-check-list-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.admin-checkbox-field,
.admin-check-list label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--white);
    color: var(--dark-text);
    padding: 9px 11px;
    font-size: 13px;
}

.admin-check-list label.is-disabled-option {
    opacity: 0.62;
}

.supervisor-student-avatar {
    width: 100px;
    height: 100px;
    flex: 0 0 100px;
    font-size: 42px;
}

.supervisor-detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
    margin-top: 18px;
}

.supervisor-detail-grid p {
    display: grid;
    gap: 6px;
    margin: 0;
    border-radius: 14px;
    background: rgba(0, 163, 255, 0.06);
    padding: 14px 16px;
}

.supervisor-detail-grid span {
    color: var(--light-text);
    font-size: 13px;
    font-weight: 700;
}

.supervisor-detail-grid strong {
    overflow-wrap: anywhere;
    color: var(--dark-text);
    font-size: 15px;
    line-height: 1.5;
}

.create-project-card {
    width: 100%;
}

.create-project-heading {
    margin-bottom: 30px;
}

.create-project-heading h3 {
    margin-bottom: 0;
}

.choice-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px;
}

.choice-toggle {
    position: relative;
    display: flex;
    min-height: 44px;
    align-items: center;
    border: 1px solid rgba(0, 163, 255, 0.18);
    border-radius: 999px;
    background: rgba(0, 163, 255, 0.06);
    cursor: pointer;
    color: var(--dark-text);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
    padding: 8px 14px;
}

.choice-toggle input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.choice-toggle:has(input:checked) {
    border-color: rgba(0, 163, 255, 0.4);
    background: rgba(0, 163, 255, 0.14);
    color: var(--primary-blue);
}

.project-logo-editor {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 18px;
}

.project-logo-button {
    display: grid;
    width: 112px;
    height: 112px;
    flex: 0 0 112px;
    place-items: center;
    overflow: hidden;
    border: 0;
    border-radius: 20px;
    background: rgba(102, 102, 102, 0.1);
    color: var(--light-text);
    cursor: pointer;
    font-size: 42px;
}

.project-logo-button [data-project-logo-preview],
.project-logo-button img {
    width: 100%;
    height: 100%;
}

.project-logo-button [data-project-logo-preview] {
    display: grid;
    place-items: center;
}

.project-logo-button img {
    object-fit: cover;
}

.project-logo-edit-copy {
    display: grid;
    min-width: min(100%, 260px);
    gap: 8px;
}

.project-logo-edit-copy strong {
    color: var(--dark-text);
    font-size: 17px;
    line-height: 1.5;
}

.project-logo-edit-copy p {
    margin: 0;
    color: var(--light-text);
    font-size: 14px;
    line-height: 1.7;
}

.create-project-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.my-project-page {
    width: 100%;
}

.my-project-page h3 {
    margin: 0;
    color: var(--dark-text);
    font-size: 32px;
    font-weight: 700;
    line-height: 1.25;
}

.my-project-page > p {
    margin-top: 10px;
    color: var(--light-text);
    font-size: 16px;
    line-height: 1.7;
}

.project-status-badge,
.project-status-pill {
    display: inline-flex;
    min-height: 38px;
    align-items: center;
    border-radius: 999px;
    background: rgba(141, 197, 62, 0.14);
    color: #46720f;
    font-size: 14px;
    font-weight: 700;
    padding: 8px 14px;
}

.project-status-badge.is-accepted {
    background: rgba(23, 128, 61, 0.12);
    color: #137137;
}

.project-status-pill.is-accepted {
    background: rgba(23, 128, 61, 0.12);
    color: #137137;
}

.project-status-badge.is-rejected {
    background: rgba(215, 38, 61, 0.1);
    color: var(--danger);
}

.project-status-pill.is-rejected {
    background: rgba(215, 38, 61, 0.1);
    color: var(--danger);
}

.project-status-badge.is-cancelled {
    background: rgba(102, 102, 102, 0.12);
    color: var(--light-text);
}

.project-status-pill.is-cancelled {
    background: rgba(102, 102, 102, 0.12);
    color: var(--light-text);
}

.my-project-hero-card,
.my-project-info-card,
.my-project-document-card {
    border-radius: 20px;
    background: var(--white);
    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.05);
}

.my-project-hero-card {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 25px;
    padding: 24px;
}

.my-project-logo {
    display: grid;
    width: 100px;
    height: 100px;
    flex: 0 0 100px;
    place-items: center;
    overflow: hidden;
    border-radius: 20px;
    background: rgba(102, 102, 102, 0.1);
    color: var(--light-text);
    font-size: 40px;
}

.my-project-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.my-project-hero-copy {
    min-width: 0;
}

.my-project-hero-copy h4 {
    margin: 0;
    color: var(--dark-text);
    font-size: 24px;
    font-weight: 700;
    line-height: 1.35;
}

.my-project-hero-copy p {
    margin: 10px 0 14px;
    color: var(--light-text);
    font-size: 18px;
    line-height: 1.6;
}

.my-project-info-card {
    display: grid;
    gap: 30px;
    margin-bottom: 25px;
    padding: 24px;
}

.my-project-info-card h4,
.my-project-section-heading h4,
.my-project-document-title h4 {
    margin: 0;
    color: var(--dark-text);
    font-size: 22px;
    font-weight: 700;
    line-height: 1.35;
}

.my-project-info-card section > p {
    margin: 18px 0 0;
    color: var(--dark-text);
    font-size: 16px;
    line-height: 1.7;
}

.my-project-warning {
    color: #b16b00 !important;
}

.my-project-name-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin-top: 18px;
}

.my-project-name-grid p {
    min-height: 52px;
    display: flex;
    align-items: center;
    margin: 0;
    border-radius: 14px;
    background: rgba(0, 163, 255, 0.06);
    color: var(--dark-text);
    font-size: 16px;
    line-height: 1.5;
    padding: 14px 16px;
}

.my-project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.my-project-description {
    max-width: none !important;
}

.my-project-section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.my-project-section-heading span {
    display: inline-flex;
    min-height: 34px;
    align-items: center;
    border-radius: 999px;
    background: rgba(0, 163, 255, 0.08);
    color: var(--primary-blue);
    font-size: 13px;
    font-weight: 700;
    padding: 7px 12px;
}

.my-project-members {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
    margin-bottom: 18px;
}

.my-project-member {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 12px;
    border-radius: 16px;
    background: rgba(102, 102, 102, 0.06);
    padding: 12px;
}

.my-project-member:hover {
    background: rgba(0, 163, 255, 0.08);
}

.my-project-member-avatar {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
}

.my-project-member span:last-child {
    min-width: 0;
    display: grid;
    gap: 3px;
}

.my-project-member strong,
.my-project-member small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.my-project-member strong {
    color: var(--dark-text);
    font-size: 15px;
    line-height: 1.4;
}

.my-project-member small {
    color: var(--light-text);
    font-size: 12px;
    line-height: 1.4;
}

.my-project-members-button {
    margin-top: 0;
}

.my-project-header-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
}

.project-detail-profile-link a {
    color: var(--primary-blue);
    font-weight: 700;
}

.project-detail-back {
    min-width: 110px;
}

.project-detail-document-actions {
    grid-template-columns: minmax(0, 1fr);
}

.my-project-documents-section {
    margin-bottom: 20px;
}

.my-project-documents-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.my-project-document-card {
    min-height: 220px;
    display: flex;
    flex-direction: column;
    padding: 20px;
}

.my-project-document-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.my-project-document-title span {
    display: grid;
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    place-items: center;
    color: var(--dark-text);
    font-size: 26px;
    line-height: 1;
}

.my-project-document-title h4 {
    overflow: hidden;
    font-size: 18px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.my-project-document-card > p {
    overflow: hidden;
    margin: 18px 0 24px;
    color: var(--dark-text);
    font-size: 15px;
    line-height: 1.6;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.my-project-document-card > p.is-empty {
    color: var(--light-text);
}

.my-project-document-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: auto;
}

.my-project-document-action {
    min-height: 44px;
    margin-top: 0;
    font-size: 15px;
}

.project-members-page {
    width: 100%;
}

.project-members-page h3 {
    margin: 0;
    color: var(--dark-text);
    font-size: 32px;
    font-weight: 700;
    line-height: 1.25;
}

.project-members-page > p {
    margin-top: 10px;
    color: var(--light-text);
    font-size: 16px;
    line-height: 1.7;
}

.project-members-layout {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(360px, 4fr);
    align-items: start;
    gap: 25px;
}

.project-members-panel {
    border-radius: 20px;
    background: var(--white);
    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.05);
    padding: 24px;
}

.project-members-panel h4 {
    margin: 0 0 24px;
    color: var(--dark-text);
    font-size: 24px;
    font-weight: 700;
    line-height: 1.35;
}

.project-members-list,
.pending-list {
    display: grid;
    gap: 18px;
}

.pending-list[hidden] {
    display: none;
}

.project-member-row,
.pending-member-row {
    display: flex;
    align-items: center;
    gap: 18px;
    border-radius: 18px;
    background: var(--white);
    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.05);
    padding: 18px;
}

.project-member-profile {
    min-width: 0;
    display: flex;
    flex: 1;
    align-items: center;
    gap: 18px;
}

.project-member-profile:hover .project-member-copy strong {
    color: var(--primary-blue);
}

.project-member-avatar {
    width: 56px;
    height: 56px;
    flex-basis: 56px;
}

.project-member-copy {
    min-width: 0;
    display: grid;
    gap: 6px;
}

.project-member-copy strong,
.project-member-copy small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.project-member-copy strong {
    color: var(--dark-text);
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
}

.project-member-copy small {
    color: var(--light-text);
    font-size: 14px;
    line-height: 1.4;
}

.leader-badge {
    display: inline-flex;
    min-height: 36px;
    align-items: center;
    border-radius: 12px;
    background: rgba(141, 197, 62, 0.14);
    color: #46720f;
    font-size: 14px;
    font-weight: 700;
    padding: 8px 14px;
}

.project-member-actions,
.pending-member-actions {
    display: grid;
    width: 150px;
    flex: 0 0 150px;
    gap: 10px;
}

.pending-member-actions {
    width: 160px;
    flex-basis: 160px;
}

.member-action-button {
    min-height: 40px;
    margin-top: 0;
    border-radius: 10px;
    font-size: 14px;
}

.danger-action:hover {
    border-color: var(--danger);
    color: var(--danger);
}

.pending-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
}

.pending-tabs button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    border: 1px solid transparent;
    border-radius: 999px;
    background: rgba(102, 102, 102, 0.1);
    color: var(--dark-text);
    cursor: pointer;
    font: inherit;
    font-size: 15px;
    font-weight: 700;
    padding: 9px 16px;
}

.pending-tabs button span {
    display: inline-grid;
    min-width: 24px;
    height: 24px;
    place-items: center;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.85);
    color: var(--dark-text);
    font-size: 12px;
    line-height: 1;
    padding: 0 7px;
}

.pending-tabs button.is-selected,
.pending-tabs button:hover {
    border-color: rgba(0, 163, 255, 0.2);
    background: rgba(0, 163, 255, 0.1);
    color: var(--primary-blue);
}

.pending-tabs button.is-selected span {
    background: var(--primary-blue);
    color: var(--white);
}

.members-permission-note {
    margin-top: 6px;
}

.modal-backdrop {
    position: fixed;
    z-index: 30;
    inset: 0;
    display: grid;
    place-items: center;
    background: rgba(0, 0, 0, 0.42);
    padding: 20px;
}

.request-dialog {
    width: min(100%, 420px);
    border-radius: 18px;
    background: var(--white);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.22);
    padding: 24px;
}

.request-dialog h4 {
    margin: 0;
    color: var(--dark-text);
    font-size: 22px;
    font-weight: 700;
}

.request-dialog p {
    margin: 10px 0 20px;
    color: var(--light-text);
    font-size: 15px;
    line-height: 1.7;
}

.dialog-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 640px) {
    .app-header {
        min-height: 78px;
        padding: 16px 60px;
    }

    .app-header h1 {
        font-size: 22px;
    }

    .header-back {
        inset-inline-start: 16px;
        width: 38px;
        height: 38px;
        font-size: 32px;
    }

    .screen-shell {
        min-height: calc(100vh - 78px);
        padding: 30px 18px;
    }

    .logo-mark {
        width: 118px;
        height: 118px;
    }

    .logo-mark svg {
        width: 102px;
        height: 102px;
    }

    .logo-section h2,
    .login-card h3 {
        font-size: 24px;
    }

    .access-card {
        width: min(100%, 220px);
        height: 190px;
    }

    .login-card,
    .student-register-card {
        padding: 24px;
        border-radius: 22px;
    }

    .set-password-card {
        padding: 24px;
        border-radius: 22px;
    }

    .register-form-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 820px) {
    .dashboard-body {
        display: block;
        overflow: auto;
    }

    .dashboard-menu-toggle {
        position: fixed;
        z-index: 45;
        inset-block-start: 14px;
        inset-inline-start: 14px;
        display: grid;
        width: 46px;
        height: 46px;
        place-items: center;
        border: 0;
        border-radius: 14px;
        background: var(--primary-green);
        box-shadow: var(--shadow);
        color: var(--white);
        cursor: pointer;
        font: inherit;
        font-size: 24px;
        font-weight: 700;
        line-height: 1;
    }

    .dashboard-sidebar-backdrop {
        position: fixed;
        z-index: 35;
        inset: 0;
        display: block;
        background: rgba(0, 0, 0, 0.38);
        opacity: 0;
        pointer-events: none;
        transition: opacity 180ms ease;
    }

    .dashboard-sidebar {
        position: fixed;
        z-index: 40;
        inset-block: 0;
        inset-inline-start: 0;
        width: min(82vw, 310px);
        min-height: 100vh;
        overflow-y: auto;
        padding: 78px 18px 24px;
        transform: translateX(105%);
        transition: transform 200ms ease;
    }

    .dashboard-body.is-sidebar-open {
        overflow: hidden;
    }

    .dashboard-body.is-sidebar-open .dashboard-sidebar {
        transform: translateX(0);
    }

    .dashboard-body.is-sidebar-open .dashboard-sidebar-backdrop {
        opacity: 1;
        pointer-events: auto;
    }

    .dashboard-sidebar h1 {
        margin-bottom: 20px;
    }

    .dashboard-main {
        min-height: auto;
    }

    .dashboard-topbar {
        height: auto;
        min-height: 72px;
        padding: 18px 76px 18px 18px;
        align-items: flex-start;
        flex-direction: column;
    }

    .dashboard-content-shell {
        height: auto;
        padding: 18px;
    }

    .dashboard-placeholder {
        padding: 24px;
    }

    .admin-supervision-stats {
        grid-template-columns: minmax(0, 1fr);
    }

    .profile-grid.two-columns,
    .mobile-row,
    .skill-add-row,
    .supervisor-add-student-form,
    .students-filter-row,
    .public-info-row {
        grid-template-columns: minmax(0, 1fr);
    }

    .compact-button {
        width: 100%;
    }

    .students-header,
    .public-profile-header {
        align-items: stretch;
        flex-direction: column;
    }

    .my-project-header-actions {
        align-items: stretch;
        justify-content: flex-start;
    }

    .my-project-header-actions .compact-button,
    .my-project-header-actions .project-status-badge {
        width: 100%;
        justify-content: center;
    }

    .students-page h3 {
        font-size: 28px;
    }

    .student-list-row,
    .supervisor-list-row,
    .available-project-list-row,
    .dashboard-notification-card,
    .supervisor-request-row,
    .admin-table-row,
    .discussion-row {
        grid-template-columns: minmax(0, 1fr);
        align-items: stretch;
    }

    .dashboard-project-mark {
        width: 72px;
        height: 72px;
    }

    .student-list-actions,
    .dashboard-notification-actions,
    .supervisor-request-actions,
    .admin-row-actions,
    .discussion-row-actions {
        justify-content: stretch;
        min-width: 0;
    }

    .student-card-action,
    .supervisor-request-button,
    .supervisor-request-actions .compact-button,
    .supervisor-member-actions .compact-button,
    .admin-row-actions .compact-button,
    .discussion-row-actions .compact-button,
    .dashboard-notification-actions .compact-button {
        width: 100%;
    }

    .admin-row-actions {
        grid-template-columns: minmax(0, 1fr);
    }

    .admin-supervision-actions,
    .admin-supervision-assign-form {
        min-width: 0;
        flex-direction: column;
        justify-content: stretch;
    }

    .admin-supervision-actions > .compact-button,
    .admin-supervision-assign-form .compact-button,
    .admin-supervision-assign-form select {
        width: 100%;
        min-width: 0;
    }

    .admin-supervision-lock-note {
        text-align: start;
    }

    .supervisor-member-actions {
        grid-template-columns: minmax(0, 1fr);
    }

    .supervisor-info-list {
        gap: 6px;
    }

    .projects-header-actions,
    .create-project-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .create-project-button,
    .create-project-actions .compact-button {
        width: 100%;
    }

    .choice-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .available-project-image {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
    }

    .available-project-title-row {
        align-items: stretch;
        flex-direction: column;
    }

    .available-project-title-row h4 {
        white-space: normal;
    }

    .available-project-title-button {
        white-space: normal;
    }

    .available-project-actions {
        grid-template-columns: minmax(0, 1fr);
        width: 100%;
    }

    .my-project-hero-card,
    .my-project-header,
    .my-project-section-heading {
        align-items: stretch;
        flex-direction: column;
    }

    .my-project-name-grid,
    .my-project-document-actions,
    .discussion-detail-grid,
    .discussion-teacher-picker > div {
        grid-template-columns: minmax(0, 1fr);
    }

    .my-project-logo {
        width: 86px;
        height: 86px;
        flex-basis: 86px;
    }

    .my-project-hero-copy h4,
    .my-project-info-card h4,
    .my-project-section-heading h4 {
        font-size: 20px;
    }

    .project-members-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .project-member-row,
    .pending-member-row {
        align-items: stretch;
        flex-direction: column;
    }

    .project-member-profile {
        width: 100%;
    }

    .project-member-actions,
    .pending-member-actions {
        width: 100%;
        flex-basis: auto;
    }

    .project-members-panel {
        padding: 20px;
    }

    .dialog-actions {
        display: grid;
    }
}
