.message-button i { display: none; }
.student-layout { grid-template-columns: 276px minmax(0, 1fr); gap: 42px; }
.student-filter { padding-bottom: 16px; }
.student-filter .filter-title-row { padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.student-filter .filter-section { margin-bottom: 18px; }
.student-filter .filter-section h3 { font-size:16px; }
.student-filter .placeholder { color: #8b95a7; }

.radio-stack { display: grid; gap: 10px; }
.elementary-grades { margin: -2px 0 2px 21px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px 13px; }
.elementary-grades[hidden] { display: none; }
.student-filter input[type="radio"] { border-radius: 50%; }
.add-subject { margin-top: 7px; justify-content: flex-start; gap: 5px; padding: 0 12px; color: #56647c; }
.add-subject span { color: var(--blue); font-size:20px; font-weight: 300; }
.method-grid { display: grid; grid-template-columns: repeat(3, auto); gap: 10px 12px; }
.method-grid label:first-child { grid-column: 1 / -1; }
.method-grid label:last-child { grid-column: 2 / 4; }
.three-option-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.teacher-gender { grid-template-columns: 1.25fr 1.25fr 1fr; }

.head-actions { display: flex; align-items: center; gap: 14px; }
.saved-search { height: 40px; padding: 0 17px; display: inline-flex; align-items: center; gap: 8px; border: 1px solid #dce2eb; border-radius: 7px; background: #fff; color: #334057; font-size:16px; }
.saved-search svg { width: 16px; height: 16px; }
.student-results .sort-button { width: 145px; }
.student-results .active-filters { min-height: 58px; }

.student-list { display: grid; gap: 9px; }
.student-card {
    min-height: 174px;
    display: grid;
    grid-template-columns: minmax(335px, 1.25fr) minmax(200px, .78fr) minmax(275px, 1fr) 158px;
    align-items: stretch;
    padding: 12px 11px;
    border: 1px solid #e0e5ed;
    border-radius: 13px;
    background: #fff;
    box-shadow: 0 5px 17px rgba(29,45,78,.045);
    transition: border-color .2s, box-shadow .2s, transform .2s;
}
.student-card:hover { border-color: #cdd8f8; box-shadow: 0 10px 25px rgba(36,58,111,.08); transform: translateY(-1px); }

.student-profile { position: relative; min-width: 0; display: grid; grid-template-columns: 130px minmax(0, 1fr); align-items: center; gap: 18px; padding: 4px 20px 4px 8px; }
.student-avatar { position: relative; width: 128px; height: 128px; overflow: hidden; display: grid; place-items: center; border-radius: 24px; border: 1px solid #dce4f2; background: #f4f7fc; box-shadow: 0 7px 18px rgba(43,62,103,.08); }
.student-avatar img { width: 100%; height: 100%; display: block; object-fit: cover; }
.student-avatar-neutral { width: 100%; height: 100%; display: grid; place-items: center; background: linear-gradient(145deg,#eef3fa,#fafcff); color: #718098; font-size: 18px; font-weight: 800; }
.grade-badge { position: absolute; z-index: 3; left: 1px; bottom: 6px; min-width: 42px; padding: 8px 9px; border-radius: 99px; background: #eef3ff; color: #3157ee; font-size:15px; font-weight: 750; text-align: center; }
.badge-pink { background: #fff0f6; color: #ef4d91; }
.badge-mint { background: #eaf9f2; color: #238565; }
.badge-purple { background: #f1edff; color: #7258d5; }
.student-summary { min-width: 0; }
.student-name { display: flex; align-items: center; gap: 9px; }
.student-name h2 { margin: 0; color: #111a30; font-size:24px; font-weight: 830; letter-spacing: -.04em; }
.student-name > span { padding: 4px 7px; border: 1px solid #a8ddbb; border-radius: 5px; background: #f1fbf4; color: #208247; font-size:13px; font-weight: 650; white-space: nowrap; }
.student-favorite { border: 0; background: transparent; }
.student-name .student-favorite { width: 27px; height: 27px; margin-left: 1px; padding: 4px; color: #8290a8; }
.student-favorite svg { width: 17px; height: 17px; }
.student-favorite.selected svg { fill: #ffbe3f; stroke: #e8a317; }
.student-location { margin: 9px 0 13px; color: #5e6a7f; font-size:15px; white-space: nowrap; }
.student-location i { margin: 0 3px; color: #a2aab8; font-style: normal; }
.student-intro { max-width: 210px; margin: 0; color: #4b586d; font-size:16px; line-height: 1.7; word-break: keep-all; }

.wanted-info, .preference-info { margin: 5px 0; padding: 7px 17px 4px 23px; display: flex; flex-direction: column; justify-content: space-between; border-left: 1px solid #e8ebf1; }
.wanted-info > div, .preference-info > div { display: flex; align-items: flex-start; gap: 10px; }
.wanted-info svg, .preference-info svg { flex: 0 0 auto; width: 14px; height: 14px; margin-top: 1px; color: #4869e6; stroke-width: 1.7; }
.wanted-info p, .preference-info p { min-width: 0; margin: 0; }
.wanted-info span, .wanted-info strong, .preference-info span, .preference-info strong { display: block; }
.wanted-info span, .preference-info span { margin-bottom: 2px; color: #7b869b; font-size:13px; }
.wanted-info strong, .preference-info strong { color: #445169; font-size:14px; font-weight: 550; line-height: 1.42; }
.preference-info { gap: 9px; justify-content: center; }
.preference-info .parent-note strong { max-width: 220px; color: #667186; font-size:13px; word-break: keep-all; }

.matching-actions { margin-left: 3px; padding: 3px 7px 2px 15px; display: flex; flex-direction: column; justify-content: center; gap: 7px; border-left: 1px solid #e8ebf1; }
.match-rate { align-self: center; margin-bottom: 2px; padding: 7px 19px; border-radius: 99px; background: linear-gradient(105deg, #f0f3ff, #e9efff); color: #3659e5; font-size:14px; font-weight: 800; white-space: nowrap; }
.matching-actions > a, .matching-actions > button:not(.save-text) { height: 35px; display: flex; align-items: center; justify-content: center; border: 1px solid #5875ed; border-radius: 6px; background: #fff; color: #3157e9; font-size:15px; font-weight: 700; text-decoration: none; }
.matching-actions > button:not(.save-text) { background: linear-gradient(135deg, #315df2, #4053e7); box-shadow: 0 5px 12px rgba(49,87,238,.17); color: #fff; }
.matching-actions > a.proposal-button { background: linear-gradient(135deg, #315df2, #4053e7); box-shadow: 0 5px 12px rgba(49,87,238,.17); color: #fff; }
.matching-actions .save-text { height: 23px; display: flex; align-items: center; justify-content: center; gap: 5px; color: #6f7b91; font-size:13px; }
.matching-actions .save-text svg { width: 14px; height: 14px; }

.student-trust .trust-icon { color: #5b78ed; }

@media (max-width: 1320px) {
    .student-layout { grid-template-columns: 245px minmax(0, 1fr); gap: 22px; }
    .student-card { grid-template-columns: minmax(300px, 1.15fr) minmax(185px, .75fr) minmax(235px, .9fr) 140px; }
    .student-profile { grid-template-columns: 110px minmax(0, 1fr); gap: 13px; padding-right: 14px; }
    .student-avatar { width: 108px; height: 108px; }
    .grade-badge { left: -2px; }
    .wanted-info, .preference-info { padding-inline: 15px; }
}

@media (max-width: 1050px) {
    .student-card { grid-template-columns: minmax(320px, 1fr) minmax(220px, .8fr) 145px; }
    .preference-info { grid-column: 1 / 3; margin: 6px 10px 0; padding: 12px 0 0; display: grid; grid-template-columns: .8fr 1fr 1.5fr; border-top: 1px solid #e8ebf1; border-left: 0; }
    .matching-actions { grid-column: 3; grid-row: 1 / 3; }
    .method-grid, .three-option-grid { grid-template-columns: 1fr 1fr; }
    .method-grid label:last-child { grid-column: 1 / -1; }
}

@media (max-width: 780px) {
    .student-results .results-head { min-height: 96px; align-items: flex-start; padding-top: 19px; }
    .head-actions { gap: 7px; }
    .saved-search { width: 40px; padding: 0; justify-content: center; font-size: 0; }
    .student-results .sort-button { width: 105px; }
    .student-card { display: grid; grid-template-columns: 1fr; padding: 12px; }
    .student-profile { grid-template-columns: 96px minmax(0, 1fr); padding: 0 0 12px; }
    .student-avatar { width: 94px; height: 94px; }
    .student-intro { max-width: none; }
    .wanted-info, .preference-info { grid-column: auto; margin: 0; padding: 12px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; border-top: 1px solid #e8ebf1; border-left: 0; }
    .preference-info .parent-note { grid-column: 1 / -1; }
    .matching-actions { grid-column: auto; grid-row: auto; margin: 0; padding: 12px 0 0; display: grid; grid-template-columns: auto 1fr 1fr; border-top: 1px solid #e8ebf1; border-left: 0; }
    .match-rate { margin: 0; }
    .matching-actions .save-text { grid-column: 1 / -1; }
}

/* Readable supporting copy for student search results. */
.student-filter .field,.student-filter label{font-size:16px}
.student-filter .range-label{font-size:15px}
.student-name>span{font-size:15px}
.student-location{font-size:16px}
.wanted-info span,.preference-info span{color:#657287;font-size:15px}
.wanted-info strong,.preference-info strong{font-size:16px;line-height:1.5}
.preference-info .parent-note strong{color:#59677c;font-size:15px;line-height:1.55}
.match-rate{font-size:16px}
.matching-actions>a,.matching-actions>button:not(.save-text){font-size:17px}
.matching-actions .save-text{color:#5f6c81;font-size:15px}

@media(max-width:780px){.student-card{padding:16px}.wanted-info,.preference-info{gap:16px}}

.student-filter select.field{padding:0 11px;appearance:auto}.student-card[hidden]{display:none}

.student-alerts{width:min(1440px,calc(100% - 64px));margin:8px auto 14px}.student-alert{margin:0;padding:12px 16px;border:1px solid #cbd8ff;border-radius:9px;background:#f1f5ff;color:#3152bc;font-size:15px}.student-alert.error{border-color:#f2c7ce;background:#fff3f5;color:#b5374b}.student-card-locked{background:linear-gradient(120deg,#fff 0%,#fbfcff 100%)}.badge-locked{background:#eef1f6;color:#6f7b90}.locked-summary p{max-width:220px;margin:10px 0 0;color:#748197;font-size:15px;line-height:1.6}.locked-summary .student-name>span{border-color:#dce2ec;background:#f5f7fa;color:#758196}.locked-value{color:#8a94a5!important;font-size:14px!important;font-weight:650!important;white-space:nowrap}.public-subject{color:#3158e7!important;font-weight:750!important}.access-balance{align-self:center;color:#66748a;font-size:14px;font-weight:700}.matching-actions form{width:100%;margin:0}.unlock-student{width:100%;min-height:40px;padding:8px 10px;border:0;border-radius:7px;background:linear-gradient(135deg,#315df2,#4053e7);box-shadow:0 5px 12px rgba(49,87,238,.17);color:#fff;font:inherit;font-size:15px;font-weight:750;cursor:pointer}.unlock-student:hover{filter:brightness(.96)}.matching-actions .product-link{height:auto;border:0;background:transparent;color:#3158e7;font-size:13px}.matching-actions .unlock-login{background:linear-gradient(135deg,#315df2,#4053e7);color:#fff}.access-complete{background:#eaf8f0;color:#23835f}.student-list-empty{padding:48px 20px;display:grid;gap:7px;border:1px solid #e2e7ef;border-radius:13px;background:#fff;text-align:center}.student-list-empty strong{color:#334057;font-size:18px}.student-list-empty span{color:#7b8799;font-size:15px}
@media(max-width:780px){.student-alerts{width:calc(100% - 28px)}.locked-value{white-space:normal}}

/* Commercial student card: clear hierarchy, compact scanning, decisive CTA. */
.student-avatar-wrap{position:relative;flex:0 0 auto}.card-info-list{width:100%;margin:0;display:grid;gap:8px}.card-info-list>div{min-width:0;display:grid;grid-template-columns:minmax(74px,.8fr) minmax(0,1.2fr);align-items:start;gap:10px}.card-info-list dt{color:#7b879a;font-size:14px;line-height:1.45}.card-info-list dd{min-width:0;margin:0;color:#334158;font-size:15px;font-weight:650;line-height:1.45;word-break:keep-all}.student-card-unlocked{min-height:204px;grid-template-columns:minmax(315px,1.18fr) minmax(225px,.82fr) minmax(275px,1fr) 186px;padding:18px;border-color:#dce3ef;border-radius:16px;box-shadow:0 8px 26px rgba(31,48,86,.055)}.student-card-unlocked:hover{border-color:#bfcdf3;box-shadow:0 14px 32px rgba(35,56,105,.095);transform:translateY(-2px)}.student-card-unlocked .student-profile{grid-template-columns:122px minmax(0,1fr);gap:20px;padding:2px 25px 2px 2px}.student-card-unlocked .student-avatar{width:118px;height:118px;border-radius:22px;box-shadow:0 9px 22px rgba(43,62,103,.11)}.student-card-unlocked .grade-badge{left:50%;bottom:-9px;min-width:max-content;padding:6px 10px;transform:translateX(-50%);border:3px solid #fff;box-shadow:0 5px 12px rgba(38,63,128,.12);font-size:13px}.profile-eyebrow{display:block;margin-bottom:7px;color:#7f8ba0;font-size:11px;font-weight:800;letter-spacing:.1em}.student-card-unlocked .student-name{gap:8px}.student-card-unlocked .student-name h2{font-size:24px}.student-card-unlocked .student-name>span{padding:4px 8px;border-radius:99px;font-size:12px}.student-card-unlocked .student-location{margin:10px 0 9px;display:flex;align-items:center;gap:5px;color:#667389;font-size:14px}.student-card-unlocked .student-location svg{width:15px;height:15px;fill:none;stroke:#7185c9;stroke-width:1.8}.member-type-chip{display:inline-flex;padding:5px 8px;border-radius:7px;background:#f2f5fa;color:#5f6d82;font-size:12px;font-weight:700}.student-card-unlocked .wanted-info,.student-card-unlocked .preference-info{margin:0;padding:3px 22px;display:flex;flex-direction:column;justify-content:center;gap:13px;border-left:1px solid #e7ebf2}.card-panel-title{margin:0;color:#26344d;font-size:14px;font-weight:800;letter-spacing:-.02em}.student-card-unlocked .card-info-list{gap:7px}.student-card-unlocked .card-info-list>div{grid-template-columns:78px minmax(0,1fr);gap:8px}.student-card-unlocked .card-info-list dt{font-size:13px}.student-card-unlocked .card-info-list dd{font-size:14px}.student-card-unlocked .public-subject{color:#3158e7!important;font-size:16px!important}.student-card-unlocked .preference-list{gap:9px}.student-card-unlocked .goal-row{display:block}.student-card-unlocked .goal-row dt{margin-bottom:4px}.student-card-unlocked .goal-row dd{display:-webkit-box;overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:2;color:#47556b;font-size:13px;line-height:1.55}.student-card-unlocked .matching-actions{margin:0;padding:4px 0 4px 20px;gap:8px;border-left:1px solid #e7ebf2}.student-card-unlocked .access-complete{align-self:flex-start;margin:0;padding:6px 9px;display:inline-flex;align-items:center;gap:4px;background:#eaf8f0;color:#21835e;font-size:12px}.student-card-unlocked .access-complete svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:2.4}.action-helper{margin:1px 0 3px;color:#748095;font-size:12px;line-height:1.55}.student-card-unlocked .matching-actions>a{height:39px;border-radius:8px;font-size:14px}.student-card-unlocked .detail-action{justify-content:space-between;padding:0 12px;border-color:#c9d4fa;background:#fff;color:#3158e7}.student-card-unlocked .detail-action:hover{border-color:#7f99f1;background:#f7f9ff}.student-card-unlocked .message-action{gap:7px;border-color:#3158ed;background:linear-gradient(135deg,#315df2,#4053e7);box-shadow:0 7px 16px rgba(49,87,238,.2);color:#fff}.student-card-unlocked .message-action:hover{box-shadow:0 10px 22px rgba(49,87,238,.28);filter:brightness(.98)}.student-card-unlocked .message-action svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.9}

@media(max-width:1320px){.student-card-unlocked{grid-template-columns:minmax(285px,1.08fr) minmax(205px,.78fr) minmax(235px,.9fr) 165px;padding:15px}.student-card-unlocked .student-profile{grid-template-columns:105px minmax(0,1fr);gap:15px;padding-right:17px}.student-card-unlocked .student-avatar{width:102px;height:102px}.student-card-unlocked .wanted-info,.student-card-unlocked .preference-info{padding-inline:16px}.student-card-unlocked .matching-actions{padding-left:15px}.action-helper{display:none}}
@media(max-width:1050px){.student-card-unlocked{grid-template-columns:minmax(300px,1fr) minmax(230px,.85fr) 165px}.student-card-unlocked .preference-info{grid-column:1/3;margin-top:10px;padding:15px 0 0;display:grid;grid-template-columns:140px 1fr;gap:8px 18px;border-top:1px solid #e7ebf2;border-left:0}.student-card-unlocked .preference-info .card-panel-title{align-self:start}.student-card-unlocked .preference-list{grid-template-columns:1fr 1fr;gap:10px 20px}.student-card-unlocked .preference-list .goal-row{grid-column:1/-1}.student-card-unlocked .matching-actions{grid-column:3;grid-row:1/3}}
@media(max-width:780px){.student-card-unlocked{display:grid;grid-template-columns:1fr;padding:16px;border-radius:14px}.student-card-unlocked .student-profile{grid-template-columns:96px minmax(0,1fr);padding:0 0 16px}.student-card-unlocked .student-avatar{width:92px;height:92px;border-radius:18px}.student-card-unlocked .wanted-info,.student-card-unlocked .preference-info{grid-column:auto;margin:0;padding:16px 0;display:flex;gap:12px;border-top:1px solid #e7ebf2;border-left:0}.student-card-unlocked .preference-list{display:grid;grid-template-columns:1fr}.student-card-unlocked .preference-list .goal-row{grid-column:auto}.student-card-unlocked .matching-actions{grid-column:auto;grid-row:auto;padding:16px 0 0;display:grid;grid-template-columns:1fr 1fr;gap:9px;border-top:1px solid #e7ebf2;border-left:0}.student-card-unlocked .access-complete{grid-column:1/-1}.student-card-unlocked .action-helper{grid-column:1/-1;display:block}.student-card-unlocked .matching-actions>a{height:43px}.student-card-unlocked .grade-badge{bottom:-7px}}
@media(max-width:460px){.student-card-unlocked .matching-actions{grid-template-columns:1fr}.student-card-unlocked .access-complete,.student-card-unlocked .action-helper{grid-column:auto}.student-card-unlocked .student-name{align-items:flex-start;flex-direction:column}.student-card-unlocked .student-name h2{font-size:22px}}
