:root {
  --ink: #18212f;
  --muted: #8993a4;
  --line: #e9edf2;
  --soft: #f7f9fb;
  --blue: #303030;
  --purple: #666;
  --green: #777;
  --shadow: 0 16px 45px rgba(35, 53, 83, .07);
  --surface: #fff;
  --surface-soft: #fbfcfd;
  --text-soft: #4f5c6d;
}
* { box-sizing: border-box; }
html { scrollbar-width: thin; scrollbar-color: #b9b9b9 #eee; }
html::-webkit-scrollbar, body::-webkit-scrollbar { width: 12px; height: 12px; }
html::-webkit-scrollbar-track, body::-webkit-scrollbar-track { border-radius: 999px; background: #eee; }
html::-webkit-scrollbar-thumb, body::-webkit-scrollbar-thumb { min-height: 42px; border: 3px solid #eee; border-radius: 999px; background: #b9b9b9; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: #fff; font-family: "DM Sans", sans-serif; }
button, input { font: inherit; }
button { cursor: pointer; border: 0; color: inherit; }
a { color: inherit; text-decoration: none; }
.app-shell { display: flex; min-height: 100vh; }
.sidebar { position: fixed; inset: 0 auto 0 0; z-index: 12; width: 254px; flex: 0 0 254px; padding: 31px 18px 22px; border-right: 1px solid var(--line); display: flex; flex-direction: column; overflow-y: auto; background: var(--surface); }
.brand, .mobile-brand { display: flex; align-items: center; gap: 10px; font-family: Manrope, sans-serif; font-size: 26px; font-weight: 800; letter-spacing: -1px; }
.brand { margin: 0 17px 56px; }
.brand-logo { width: 31px; height: 31px; border-radius: 9px; object-fit: cover; }
.brand-name, .gate-brand-name { display: inline-flex; align-items: baseline; gap: 2px; letter-spacing: -1px; }
.brand-name strong, .gate-brand-name strong { font-family: "Penultimate", "Brush Script MT", "Segoe Script", cursive; font-weight: 400; letter-spacing: .3px; }
.brand-name > span, .gate-brand-name > span { font-family: Manrope, sans-serif; font-weight: 500; letter-spacing: -1px; }
.brand-mark { width: 31px; height: 31px; display: inline-grid; place-items: center; border-radius: 10px 10px 10px 3px; background: linear-gradient(140deg, var(--blue), var(--purple)); color: #fff; font-size: 21px; font-family: Georgia, serif; font-style: italic; }
.main-nav { display: grid; gap: 7px; }
.nav-item { height: 46px; display: flex; align-items: center; gap: 15px; padding: 0 16px; border-radius: 13px; color: #778293; font-size: 14px; font-weight: 600; transition: .2s ease; }
.nav-item:hover, .nav-item.active { color: var(--blue); background: #eee; }
.nav-icon { width: 17px; font-size: 22px; font-weight: 400; text-align: center; line-height: 1; }
.nav-badge { margin-left: auto; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: #e5e5e5; color: var(--blue); font-size: 11px; }
.nav-badge.dot { width: 6px; height: 6px; background: #ef7e72; }
.sidebar-divider { margin: 30px 16px 26px; border-top: 1px solid var(--line); }
.nav-label, .eyebrow { margin: 0 16px 12px; color: #b1b8c3; font-size: 10px; font-weight: 700; letter-spacing: 1.3px; }
.sidebar-bottom { margin-top: auto; }
.upgrade-card { padding: 18px 17px; border-radius: 15px; background: linear-gradient(145deg, #f1f1f1, #fafafa); }
.upgrade-card[hidden] { display: none; }
.upgrade-spark { color: var(--purple); font-size: 17px; }
.upgrade-card strong { display: block; margin: 10px 0 5px; font-size: 13px; }
.upgrade-card p { margin: 0 0 13px; color: #8590a4; font-size: 11px; line-height: 1.5; }
.text-button { padding: 0; color: var(--blue); background: none; font-size: 11px; font-weight: 700; }
.text-button span { padding-left: 7px; font-size: 15px; }
.mini-profile { display: flex; align-items: center; gap: 9px; margin-top: 22px; padding: 0 8px; }
.mini-profile strong, .mini-profile small { display: block; }
.mini-profile strong { font-size: 12px; }
.mini-profile small { margin-top: 3px; color: #a4adba; font-size: 10px; }
.avatar { width: 38px; height: 38px; border-radius: 50%; flex: 0 0 auto; display: grid; place-items: center; color: #fff; font-size: 11px; font-weight: 700; }
.avatar-user { background: linear-gradient(140deg, #ffc5ae, #a66c80); }
.avatar-derya { background: linear-gradient(140deg, #ccc, #666); }
.avatar-mert, .story-mert { background: linear-gradient(140deg, #f1ae87, #ba6657); }
.avatar-selin, .story-selin { background: linear-gradient(140deg, #8bc6bc, #4b8e8f); }
.avatar-can, .story-can { background: linear-gradient(140deg, #d4aeed, #715ba5); }
.avatar-aysu { background: linear-gradient(140deg, #f1c58d, #d68077); }
.more-button { margin-left: auto; padding: 8px; color: #aeb6c2; background: none; letter-spacing: 2px; }
.mini-profile { position: relative; }
.profile-menu { position: absolute; right: 0; bottom: 44px; z-index: 15; display: none; width: 180px; padding: 7px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); box-shadow: var(--shadow); }
.profile-menu.open { display: grid; gap: 2px; }
.profile-menu button { padding: 10px 11px; border-radius: 8px; color: var(--ink); background: transparent; text-align: left; font-size: 11px; }
.profile-menu button:hover { background: var(--surface-soft); }
.profile-menu .danger-menu-item { color: #c52f42; }
.main-content { min-width: 0; flex: 1; margin-left: 254px; }
.topbar { height: 88px; padding: 0 4.8%; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 16px; background: var(--surface); }
.mobile-brand { display: none; }
.search-box { width: min(620px, 58vw); max-width: none; height: 46px; display: flex; align-items: center; gap: 10px; margin: 0 auto; padding: 0 16px; border: 1px solid var(--line); border-radius: 12px; color: #b3bcc9; background: var(--surface-soft); }
.search-box input { width: 100%; border: 0; outline: 0; color: var(--ink); background: transparent; font-size: 12px; }
.search-box kbd { display: none; }
.theme-toggle { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; padding: 9px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); background: var(--surface); font-size: 11px; font-weight: 700; transition: .2s ease; }
.theme-toggle:hover { color: var(--blue); border-color: #999; transform: translateY(-1px); }
.login-button { margin-left: 0; }
.login-button { margin-left: 0; padding: 12px 8px; color: var(--muted); background: none; font-size: 12px; font-weight: 600; }
.primary-button { padding: 12px 18px; border-radius: 10px; color: #fff; background: var(--blue); box-shadow: 0 7px 16px rgba(0,0,0,.12); font-size: 12px; font-weight: 700; transition: .2s ease; }
.primary-button:hover { transform: translateY(-2px); box-shadow: 0 10px 20px rgba(0,0,0,.18); }
.primary-button span { margin-left: 9px; font-size: 16px; vertical-align: -1px; }
.page-grid { width: 100%; max-width: 1600px; margin: 0 auto; padding: 45px 4.8% 30px; display: grid; grid-template-columns: minmax(0, 1fr) 332px; gap: 64px; }
.welcome-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 34px; }
.welcome-row .eyebrow { margin-left: 0; margin-bottom: 12px; }
h1, h2, p { margin-top: 0; }
h1 { margin-bottom: 7px; font-family: Manrope, sans-serif; font-size: 25px; letter-spacing: -.8px; }
h1 span { color: #f2c16a; font-size: 21px; }
.welcome-row h1 #greeting-text, .welcome-row h1 #welcome-name { color: var(--ink); }
.welcome-row .eyebrow { color: var(--muted); }
h2 { margin-bottom: 0; font-family: Manrope, sans-serif; font-size: 14px; letter-spacing: -.2px; }
.muted { color: var(--muted); font-size: 12px; }
.welcome-row .muted { margin-bottom: 0; }
.round-action { width: 102px; min-width: 102px; height: 82px; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 3px; padding: 0; border: 0; border-radius: 0; color: var(--ink); background: transparent; box-shadow: none; transition: transform .2s ease; }
.round-action:hover { transform: translateY(-2px); background: transparent; }
.add-memory-mark { width: 42px; height: 47px; display: grid; place-items: center; color: var(--ink); background: transparent; }
.add-memory-mark svg { width: 100%; height: 100%; display: block; overflow: visible; fill: none; stroke: currentColor; stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; }
.add-memory-label { font-size: 10px; font-weight: 700; letter-spacing: .2px; }
.section-heading { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.section-heading a { color: var(--blue); font-size: 11px; font-weight: 600; }
.section-heading a span { margin-left: 5px; font-size: 15px; }
.stories { display: flex; gap: 18px; overflow-x: auto; padding: 3px 2px 13px; }
.stories::-webkit-scrollbar { display: none; }
.story { min-width: 53px; display: flex; align-items: center; flex-direction: column; gap: 7px; background: none; font-size: 10px; color: #758094; }
.story-avatar { width: 50px; height: 50px; display: grid; place-items: center; border-radius: 50%; color: #fff; font-size: 11px; font-weight: 700; }
.empty-stories { align-self: center; color: var(--muted); font-size: 11px; }
.has-story { border: 2px solid #fff; outline: 2px solid var(--blue); }
.add-avatar { border: 1px dashed #aaa; color: var(--blue); background: #f1f1f1; font-size: 22px; }
.story-deniz { background: linear-gradient(140deg, #c7c7c7, #666); }
.story-ece { background: linear-gradient(140deg, #f1c69a, #d88983); }
.composer-card { display: flex; align-items: center; gap: 12px; margin: 20px 0 30px; padding: 13px 15px; border: 1px solid var(--line); border-radius: 13px; box-shadow: 0 5px 20px rgba(33,55,84,.025); }
.composer-input { flex: 1; padding: 9px 0; color: #a6afbd; background: none; text-align: left; font-size: 12px; }
.composer-icon { padding: 8px; color: #9da8b8; background: none; font-size: 19px; }
.feed-filter { display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.filter-tabs { display: flex; gap: 20px; overflow-x: auto; scrollbar-width: none; }
.filter-tabs::-webkit-scrollbar { display: none; }
.filter-tab { position: relative; flex: 0 0 auto; padding: 0 0 13px; color: #a0a9b6; background: none; font-size: 11px; font-weight: 600; white-space: nowrap; }
.filter-tab.active { color: var(--ink); }
.filter-tab.active:after { content: ""; position: absolute; right: 0; bottom: -1px; left: 0; height: 2px; border-radius: 2px; background: var(--blue); }
.filter-button { padding: 7px 0 13px; color: #98a1af; background: none; font-size: 11px; }
.post-list { display: grid; gap: 4px; }
.post-card { padding: 23px 0 19px; border-bottom: 1px solid var(--line); }
.post-header { display: flex; align-items: center; gap: 11px; }
.post-menu-wrap { position: relative; margin-left: auto; }.post-more { padding: 4px 8px; color: #9ca7b6; background: none; }.post-menu { position: absolute; right: 0; top: 28px; z-index: 3; display: none; min-width: 110px; padding: 5px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); box-shadow: var(--shadow); }.post-menu.open { display: grid; }.post-menu button { padding: 8px; color: var(--ink); background: none; text-align: left; font-size: 11px; }.post-menu .danger-menu-item { color: #b42335; }
.post-author strong, .post-author small { display: block; }
.post-author strong { font-size: 12px; }
.post-author small { margin-top: 4px; color: #a0a9b6; font-size: 10px; }
.verified { color: #fff; background: var(--blue); display: inline-grid; place-items: center; width: 13px; height: 13px; border-radius: 50%; font-size: 8px; }
.post-text { margin: 14px 0 13px 49px; color: #4f5c6d; font-size: 12px; line-height: 1.65; }
.post-media { display: block; width: calc(100% - 49px); max-height: 680px; margin: 0 0 17px 49px; border-radius: 12px; object-fit: contain; background: #f3f6fa; }
.connection-note { margin: 0 0 18px 49px; padding: 9px 12px; border-radius: 8px; color: #8190a3; background: #f7faff; font-size: 10px; }
.connection-note span { margin-right: 6px; color: var(--blue); font-size: 17px; vertical-align: -2px; }
.connection-note b { color: var(--blue); }
.topic-tags { margin: 0 0 17px 49px; display: flex; gap: 7px; }
.topic-tags span { padding: 5px 8px; border-radius: 5px; color: #7484a0; background: #f2f5fb; font-size: 10px; }
.post-actions { margin-left: 49px; display: flex; align-items: center; gap: 28px; }
.post-date { display: block; margin: 10px 0 14px 49px; color: var(--muted); font-size: 10px; }
.post-actions button { padding: 0; color: #a6afbc; background: none; font-size: 17px; transition: .2s ease; }
.post-actions .reaction-button:hover, .post-actions .comment-button:hover, .post-actions .share-button:hover, .post-actions .reaction-button.liked { color: #ee7f87; }
.post-actions button span { margin-left: 5px; font-size: 10px; vertical-align: 2px; }
.post-actions .save-button { margin-left: auto; }
.post-actions .save-button.saved { width: 30px; height: 30px; justify-content: center; border-radius: 9px; color: #fff; background: #252525; }
.post-actions .save-button.saved .action-icon { fill: currentColor; stroke: currentColor; }
.comments { margin: 12px 0 0 49px; padding: 10px; border-radius: 9px; background: var(--surface-soft); }.comment-list { display: grid; gap: 8px; }.comment { display: grid; gap: 2px; font-size: 11px; }.comment strong { font-size: 10px; }.comment span { color: var(--muted); }.comment-form, .message-form, .new-message-form { display: flex; gap: 7px; margin-top: 10px; width: 100%; }.comment-form input, .message-form input, .new-message-form input { flex: 1; min-width: 0; padding: 8px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); color: var(--ink); }.comment-form button, .message-form button, .new-message-form button { padding: 7px 10px; border-radius: 7px; color: #fff; background: var(--blue); font-size: 10px; }
.messages-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 14px; min-height: 300px; }.conversation-list { min-width: 0; border-right: 1px solid var(--line); }.conversation-item { display: grid; width: 100%; gap: 4px; padding: 11px; border-bottom: 1px solid var(--line); color: var(--ink); background: none; text-align: left; }.conversation-item small { overflow: hidden; color: var(--muted); text-overflow: ellipsis; white-space: nowrap; font-size: 10px; }.message-thread { min-width: 0; }.message-list { display: grid; align-content: start; gap: 8px; max-height: 300px; overflow: auto; }.message { display: grid; gap: 2px; width: fit-content; max-width: 85%; padding: 8px 10px; border-radius: 9px; background: var(--surface-soft); font-size: 11px; }.message.mine { margin-left: auto; background: #e5e5e5; }.message strong { font-size: 9px; color: var(--blue); }
.right-column { position: static; display: grid; grid-auto-rows: max-content; align-content: start; gap: 25px; height: auto; min-height: 0; overflow: visible; padding-top: 13px; }
.network-card, .suggestions-card, .education-card { padding: 21px; border: 1px solid var(--line); border-radius: 15px; box-shadow: var(--shadow); }
.network-card { overflow: hidden; background: linear-gradient(145deg, #fbfdff, #fff); }
.network-card-heading { display: flex; justify-content: space-between; }
.network-card .eyebrow { margin: 0 0 8px; }
.network-icon { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 9px; color: var(--blue); background: #eee; font-size: 20px; }
.network-visual { position: relative; width: 240px; height: 155px; margin: 10px auto 5px; }
.orbit { position: absolute; border: 1px dashed #ccc; border-radius: 50%; transform: rotate(-20deg); }
.orbit-one { inset: 25px 15px; }.orbit-two { inset: 4px 39px; transform: rotate(55deg); }.orbit-three { inset: 40px 42px; transform: rotate(-55deg); }
.network-center, .network-node { position: absolute; display: grid; place-items: center; overflow: hidden; border-radius: 50%; color: #fff; font-size: 9px; font-weight: 700; box-shadow: 0 4px 12px rgba(0, 0, 0, .13); }
.network-center { top: 60px; left: 105px; width: 42px; height: 42px; z-index: 1; background: #333; border: 3px solid var(--surface); }
.network-node { width: 29px; height: 29px; border: 2px solid #fff; }
.network-node img { width: 100%; height: 100%; object-fit: cover; }
.network-node-list { position: absolute; inset: 0; }
.node-one { top: 12px; left: 99px; background: #686868; }.node-two { top: 64px; left: 25px; background: #777; }.node-three { top: 117px; left: 83px; background: #555; }.node-four { top: 73px; right: 19px; background: #888; }.node-five { top: 22px; right: 33px; color: #444; background: #ddd; font-size: 8px; }
.network-stats { display: flex; justify-content: space-between; padding: 10px 0 17px; border-top: 1px solid var(--line); }
.network-stats div { display: grid; gap: 4px; }.network-stats strong { font-family: Manrope, sans-serif; font-size: 17px; }.network-stats span { color: #a0a9b6; font-size: 9px; }
.outline-button { width: 100%; padding: 10px; border: 1px solid #ddd; border-radius: 8px; color: var(--blue); background: #f4f4f4; font-size: 11px; font-weight: 700; }.outline-button span { margin-left: 8px; font-size: 15px; }
.suggestions-card .section-heading { margin-bottom: 16px; }.suggestions-card .section-heading a { font-size: 10px; }
.suggestion { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid #f0f2f5; }.suggestion:last-child { border-bottom: 0; }
.suggestion-info { min-width: 0; flex: 1; }.suggestion-info strong, .suggestion-info small, .suggestion-info span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.suggestion-info strong { font-size: 11px; }.suggestion-info small { margin-top: 3px; color: #919baa; font-size: 9px; }.suggestion-info span { margin-top: 4px; color: var(--blue); font-size: 9px; }
.empty-card, .empty-feed { padding: 16px 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.empty-feed { padding: 28px 0; text-align: center; border-bottom: 1px solid var(--line); }
.follow-button { width: 27px; height: 27px; border: 1px solid #ddd; border-radius: 8px; color: #444; background: #f4f4f4; font-size: 17px; }
.education-card .section-heading button { padding: 0; color: #aeb7c5; background: none; }.timeline { position: relative; padding-left: 19px; }.timeline:before { content: ""; position: absolute; left: 4px; top: 6px; bottom: 5px; width: 1px; background: #ddd; }.timeline-item { position: relative; display: flex; gap: 12px; padding: 0 0 18px; }.timeline-item:last-child { padding-bottom: 4px; }.timeline-dot { position: absolute; left: -19px; top: 3px; width: 9px; height: 9px; border: 2px solid #ccc; border-radius: 50%; background: #fff; }.timeline-dot.current { border-color: var(--blue); background: var(--blue); box-shadow: 0 0 0 4px #e5e5e5; }.timeline-item strong, .timeline-school, .timeline-item small { display: block; }.timeline-item strong { font-size: 10px; }.timeline-school { margin-top: 3px; overflow-wrap: anywhere; color: var(--ink); font-size: 10px; font-weight: 600; }.timeline-item small { margin-top: 5px; color: #9aa4b3; font-size: 9px; line-height: 1.4; }.timeline-empty { padding: 0 0 4px; }.timeline-empty .empty-card { padding: 12px 0 4px; }.add-education { margin-top: 11px; }
.footer-links { max-width: 1190px; margin: 0 auto; padding: 10px 4.8% 28px; color: #b2bac5; font-size: 10px; }
.toast { position: fixed; top: 18px; right: auto; bottom: auto; left: 50%; z-index: 20; max-width: min(90vw, 520px); padding: 13px 18px; border-radius: 10px; color: #fff; background: #1d293b; box-shadow: var(--shadow); font-size: 12px; opacity: 0; transform: translate(-50%, -15px); pointer-events: none; transition: .25s ease; }.toast.visible { opacity: 1; transform: translate(-50%, 0); }
.modal-backdrop { position: fixed; inset: 0; z-index: 10; display: grid; place-items: center; padding: 20px; background: rgba(20,29,43,.45); opacity: 0; pointer-events: none; transition: .25s ease; }.modal-backdrop.open { opacity: 1; pointer-events: auto; }.auth-modal { position: relative; width: min(100%, 410px); padding: 32px; border-radius: 18px; background: #fff; box-shadow: 0 25px 80px rgba(19,38,70,.25); transform: translateY(15px) scale(.98); transition: .25s ease; }.profile-edit-modal { width: min(100%, 520px); padding: 36px; }.profile-edit-modal h2 { margin-bottom: 24px; }.profile-edit-modal form { grid-template-columns: 1fr 1fr; gap: 18px; }.profile-edit-modal > form > label:nth-of-type(3), .profile-edit-modal > form > label:nth-of-type(4), .profile-edit-modal > form > button { grid-column: 1 / -1; }.profile-edit-modal > form > label:has(#profile-bio) { grid-column: 1 / -1; }.profile-edit-modal textarea, .auth-modal select { width: 100%; min-height: 92px; padding: 12px; border: 1px solid #e3e8ef; border-radius: 8px; outline: 0; resize: vertical; color: var(--ink); font: inherit; font-size: 12px; }.auth-modal select { min-height: auto; }.open .auth-modal { transform: translateY(0) scale(1); }.modal-close { position: absolute; top: 14px; right: 16px; color: #9ca7b6; background: none; font-size: 25px; }.auth-brand { display: flex; align-items: center; gap: 8px; margin-bottom: 28px; font-family: Manrope, sans-serif; font-weight: 800; }.auth-brand .brand-mark { width: 27px; height: 27px; font-size: 18px; }.auth-modal .eyebrow { margin: 0 0 10px; }.auth-modal h2 { margin-bottom: 8px; font-size: 23px; }.auth-modal .muted { line-height: 1.5; }.auth-tabs { display: flex; gap: 20px; margin: 26px 0 20px; border-bottom: 1px solid var(--line); }.auth-tab { position: relative; padding: 0 0 12px; color: #a4aebb; background: none; font-size: 12px; font-weight: 700; }.auth-tab.active { color: var(--blue); }.auth-tab.active:after { content: ""; position: absolute; right: 0; bottom: -1px; left: 0; height: 2px; background: var(--blue); }.auth-modal form { display: grid; gap: 14px; }.auth-modal label { display: grid; gap: 7px; color: #5f6a7a; font-size: 11px; font-weight: 600; }.auth-modal input { width: 100%; padding: 12px; border: 1px solid #e3e8ef; border-radius: 8px; outline: 0; color: var(--ink); font-size: 12px; transition: .2s ease; }.auth-modal input:focus, .auth-modal textarea:focus, .auth-modal select:focus { border-color: #888; box-shadow: 0 0 0 3px rgba(0,0,0,.08); }.full-width { width: 100%; margin-top: 6px; }.terms { display: block; margin-top: 18px; color: #a7afbb; text-align: center; font-size: 10px; }
.profile-education-fields { display: grid; grid-column: 1 / -1; grid-template-columns: 1fr 1fr; gap: 12px; margin: 0; padding: 14px; border: 1px solid var(--line); border-radius: 10px; }
.profile-education-fields legend { grid-column: 1 / -1; padding: 0 5px; color: #5f6a7a; font-size: 11px; font-weight: 700; }
.education-level-group { display: grid; grid-column: 1 / -1; grid-template-columns: 1fr 1fr; gap: 10px; padding: 12px; border: 1px solid transparent; border-radius: 10px; }
.education-level-primary, .education-level-high { border-color: #ddd; background: #f2f2f2; }
.education-level-middle, .education-level-university { border-color: #555; background: #e5e5e5; }
.auth-modal .education-level-group label { color: #444; }
.auth-modal .education-level-middle label, .auth-modal .education-level-university label { color: #333; }
.auth-modal .education-level-group select { background-color: rgba(255, 255, 255, .84); }
.auth-modal .education-level-middle select, .auth-modal .education-level-university select { border-color: #aaa; color: #222; background-color: #f8f8f8; }
.auth-modal .education-level-middle select:disabled, .auth-modal .education-level-university select:disabled { color: #777; background-color: #eee; }
.education-years { display: grid; grid-column: 1 / -1; grid-template-columns: 1fr 1fr; gap: 10px; }
.education-years label { min-width: 0; }
.education-years select { min-width: 0; }
.suggestion-card { display: flex; width: 100%; align-items: center; gap: 10px; padding: 10px 0; border: 0; border-bottom: 1px solid var(--line); color: inherit; background: transparent; text-align: left; cursor: pointer; }
.suggestion-card:last-child { border-bottom: 0; }
.suggestion-avatar { display: grid; width: 34px; height: 34px; flex: 0 0 34px; place-items: center; overflow: hidden; border-radius: 50%; color: #555; background: #eee; font-size: 10px; font-weight: 700; }
.suggestion-avatar img { width: 100%; height: 100%; object-fit: cover; }
.suggestion-details { min-width: 0; flex: 1; }
.suggestion-details strong, .suggestion-details small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.suggestion-details strong { font-size: 11px; }
.suggestion-details small { margin-top: 3px; color: var(--muted); font-size: 9px; }
.suggestion-details span { display: block; margin-top: 4px; color: var(--blue); font-size: 9px; line-height: 1.35; }
.profile-photo-control { display: flex; grid-column: 1 / -1; align-items: center; gap: 14px; }
.profile-photo-control .avatar { width: 58px; height: 58px; background-size: cover; background-position: center; }
.secondary-button { padding: 10px 13px; border: 1px solid var(--line); border-radius: 9px; color: var(--ink); background: var(--surface-soft); font-size: 11px; font-weight: 700; }
.secondary-button:hover { border-color: #999; color: var(--blue); }
.crop-modal { width: min(100%, 430px); }
.crop-stage { width: min(100%, 320px); margin: 18px auto; overflow: hidden; border-radius: 50%; background: #101010; box-shadow: 0 0 0 5px #ddd; aspect-ratio: 1; }
.crop-stage canvas { display: block; width: 100%; height: 100%; }
.crop-zoom { display: grid; gap: 8px; color: #5f6a7a; font-size: 11px; }
.crop-zoom input { width: 100%; padding: 0; accent-color: var(--blue); }
.crop-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; }
.profile-edit-modal { width: min(100%, 900px); max-height: min(90vh, 1000px); overflow-y: auto; }
.profile-edit-modal::-webkit-scrollbar { width: 10px; }
.profile-edit-modal::-webkit-scrollbar-track { margin: 10px 0; border-radius: 999px; background: #eee; }
.profile-edit-modal::-webkit-scrollbar-thumb { border: 2px solid #eee; border-radius: 999px; background: #b9b9b9; }
.profile-page-header { display: flex; align-items: flex-start; gap: 24px; margin-bottom: 30px; }
.profile-page-avatar { width: 112px; height: 112px; flex: 0 0 112px; border-radius: 50%; object-fit: cover; }
.profile-page-info { min-width: 0; flex: 1; }
.profile-page-info .panel-kicker { margin-left: 0; }
.profile-page-username { margin: -2px 0 12px; color: var(--muted); font-size: 12px; }
.profile-stats { display: flex; gap: 28px; margin: 18px 0 20px; }
.profile-stats div { display: grid; gap: 4px; min-width: 58px; justify-items: center; text-align: center; }
.profile-stat-button { display: grid; gap: 4px; min-width: 58px; justify-items: center; padding: 0; border: 0; color: inherit; background: none; font: inherit; text-align: center; cursor: pointer; }
.profile-stat-button:hover strong, .profile-stat-button:hover span { color: var(--blue); }
.profile-stats strong { font-family: Manrope, sans-serif; font-size: 18px; }
.profile-stats span { color: var(--muted); font-size: 10px; }
.profile-page-bio { margin: 0 0 18px; }
.profile-public-actions { position: absolute; top: 24px; right: 30px; z-index: 2; }
.profile-public-more { color: var(--muted); background: none; }
.profile-public-menu { right: 0; top: 28px; }
.profile-public-buttons { display: flex; justify-content: center; gap: 9px; }
.profile-public-buttons .secondary-button { min-width: 112px; }
.profile-tabs { display: flex; justify-content: center; gap: 8px; margin: 0 auto 14px; border-bottom: 1px solid var(--line); }
.profile-tab { padding: 7px 14px; color: var(--muted); background: none; border-bottom: 2px solid transparent; font-size: 11px; font-weight: 700; }
.profile-tab.active { color: var(--blue); border-bottom-color: var(--blue); }
.profile-person { display: flex; width: 100%; align-items: center; gap: 11px; padding: 12px 0; border-bottom: 1px solid var(--line); color: inherit; background: none; text-align: left; }
.profile-person strong, .profile-person small { display: block; }
.profile-person small { margin-top: 3px; color: var(--muted); font-size: 10px; }
.profile-person .avatar { overflow: hidden; }
.profile-person .avatar img { width: 100%; height: 100%; object-fit: cover; }
.profile-people-modal { width: min(100%, 430px); max-height: min(560px, calc(100vh - 40px)); overflow-y: auto; }
.profile-people-list { max-height: 350px; overflow-y: auto; }
.profile-posts-title { margin: 0 0 10px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 14px; }
.profile-post-list { display: grid; }
.profile-post-list .post-card { padding-top: 14px; }
.profile-media-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 1fr; gap: 0; width: 100%; background: var(--surface); }
.profile-media-tile { display: block; min-width: 0; width: 100%; height: 100%; aspect-ratio: 1; overflow: hidden; border: 0; border-radius: 0; padding: 0; background: var(--surface); line-height: 0; appearance: none; }
.profile-media-tile img { display: block; width: 100%; height: 100%; object-fit: cover; }
.profile-media-tile:hover img { transform: scale(1.04); }
.profile-media-tile img { transition: transform .2s ease; }
.profile-media-grid > .empty-card { grid-column: 1 / -1; }
.profile-follow-button { width: auto; min-width: 72px; padding: 7px 9px; font-size: 10px; }
#post-crop-modal { z-index: 12; }
.post-detail-backdrop { z-index: 15; display: block; padding: 0; overflow: hidden; }
.post-detail-dialog { position: relative; width: min(100%, 720px); height: 100%; margin: 0 auto; overflow: hidden; background: var(--surface); }
.post-detail-close { position: fixed; top: 18px; right: 24px; z-index: 2; color: var(--ink); background: var(--surface-soft); border-radius: 50%; }
.post-detail-list { height: 100%; overflow-y: auto; padding: 54px 28px 40px; scroll-behavior: smooth; }
.post-detail-list .post-card { margin: 0 auto 28px; max-width: 620px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.post-detail-list .post-media { max-height: none; }
.comments-modal { width: min(100%, 560px); max-height: min(680px, calc(100vh - 40px)); overflow-y: auto; }
#comments-modal { z-index: 22; }
.comments-modal .comment-list { min-height: 220px; max-height: 420px; overflow-y: auto; }
.comments-modal .comment-form { position: sticky; bottom: 0; padding-top: 12px; background: var(--surface); }
.guest-mode .app-shell { visibility: hidden; }
.auth-checking .app-shell { visibility: hidden; }
.auth-gate { z-index: 30; display: flex; align-items: center; justify-content: center; overflow: auto; padding: 92px 20px 82px; background: linear-gradient(120deg, rgba(13,20,36,.72), rgba(27,39,67,.35)), url("/Giriş%20Ekranı.jpeg") center / cover no-repeat; }
.auth-gate.open { opacity: 1; }
.auth-gate .auth-modal { max-height: calc(100vh - 150px); overflow: auto; }
.auth-gate .auth-modal::-webkit-scrollbar { width: 9px; }
.auth-gate .auth-modal::-webkit-scrollbar-track { margin: 12px 0; border-radius: 999px; background: #f1f4f8; }
.auth-gate .auth-modal::-webkit-scrollbar-thumb { border: 2px solid #f1f4f8; border-radius: 999px; background: #c5cedc; }
.auth-gate .auth-modal { scrollbar-width: thin; scrollbar-color: #c5cedc #f1f4f8; }
.auth-gate::-webkit-scrollbar { width: 12px; }
.auth-gate::-webkit-scrollbar-track { margin: 8px 0; border-radius: 999px; background: rgba(238,242,247,.7); }
.auth-gate::-webkit-scrollbar-thumb { border: 3px solid rgba(238,242,247,.7); border-radius: 999px; background: rgba(185,196,212,.95); }
.auth-gate { scrollbar-width: thin; scrollbar-color: #b9c4d4 rgba(238,242,247,.7); }
.gate-header { position: absolute; top: 28px; left: 50%; display: flex; align-items: center; gap: 12px; color: #fff; font-family: Manrope, sans-serif; font-size: 25px; font-weight: 800; letter-spacing: .5px; transform: translateX(-50%); }
.gate-header img { width: 42px; height: 42px; border-radius: 12px; object-fit: cover; }
.gate-footer { position: absolute; bottom: 27px; left: 50%; display: flex; gap: 20px; transform: translateX(-50%); }
.gate-footer button, .auth-link { padding: 0; color: #fff; background: transparent; font-size: 11px; }
.auth-modal .auth-link { color: var(--blue); font-weight: 700; }
.auth-create-copy { margin: 18px 0 0; color: #8c97a8; text-align: center; font-size: 11px; }
.auth-login-prompt { display: none; }
body.dark-mode { --ink: #f2f2f2; --muted: #a3a3a3; --line: #303030; --soft: #111; --surface: #171717; --surface-soft: #202020; --text-soft: #d0d0d0; --shadow: 0 16px 45px rgba(0, 0, 0, .4); background: #0b0b0b; }
body.dark-mode, body.dark-mode .app-shell, body.dark-mode .main-content { background: #0b0b0b; }
body.dark-mode .nav-item { color: #b5b5b5; }
body.dark-mode .nav-item:hover, body.dark-mode .nav-item.active { color: #f2f2f2; background: #242424; }
body.dark-mode .welcome-row h1 #greeting-text, body.dark-mode .welcome-row h1 #welcome-name { color: #fff; }
body.dark-mode .welcome-row h1 > span:last-child { color: #f2c16a; }
body.dark-mode .round-action,
body.dark-mode .round-action:hover { border: 0; color: #fff; background: transparent; box-shadow: none; }
body.dark-mode .upgrade-card, body.dark-mode .network-card { background: linear-gradient(145deg, #222, #171717); }
body.dark-mode .post-text { color: var(--text-soft); }
body.dark-mode .connection-note { background: #242424; }
body.dark-mode .topic-tags span { color: #ccc; background: #292929; }
body.dark-mode .add-avatar { background: #242424; }
body.dark-mode .post-media { background: #1c1c1c; }
body.dark-mode .modal-backdrop:not(.auth-gate) { background: rgba(0, 0, 0, .78); }
body.dark-mode .auth-modal, body.dark-mode .section-panel { color: var(--ink); background: var(--surface); }
body.dark-mode .auth-modal input, body.dark-mode .auth-modal textarea, body.dark-mode .auth-modal select { color: var(--ink); border-color: var(--line); background: var(--surface-soft); }
body.dark-mode .auth-modal input::placeholder, body.dark-mode .search-box input::placeholder { color: #888; }
body.dark-mode .auth-modal.post-modal textarea { border-color: transparent; background: transparent; }
body.dark-mode .auth-modal.post-modal textarea:focus { border-color: transparent; box-shadow: none; }
body.dark-mode .post-actions .save-button.saved { color: #111; background: #f2f2f2; }
body.dark-mode .post-attach-button { color: var(--ink); border-color: var(--line); background: var(--surface); }
body.dark-mode .post-media-remove { color: #bbb; }
body.dark-mode .post-media-preview { border-color: var(--line); }
body.dark-mode .post-character-count { color: var(--muted); }
body.dark-mode .profile-edit-modal textarea, body.dark-mode .auth-modal select { color: var(--ink); background: var(--surface-soft); }
body.dark-mode .gate-footer button { color: #fff; }
body.dark-mode .profile-education-fields { border-color: var(--line); }
body.dark-mode .education-level-primary, body.dark-mode .education-level-high { border-color: #444; background: #242424; }
body.dark-mode .education-level-primary label, body.dark-mode .education-level-high label { color: #ddd; }
body.dark-mode .education-level-primary select, body.dark-mode .education-level-high select { border-color: #505050; color: #f2f2f2; background-color: #303030; }
body.dark-mode .education-level-middle, body.dark-mode .education-level-university { border-color: #555; background: #191919; }
body.dark-mode .education-level-middle label, body.dark-mode .education-level-university label { color: #ddd; }
body.dark-mode .education-level-middle select, body.dark-mode .education-level-university select { border-color: #505050; color: #f2f2f2; background-color: #252525; }
body.dark-mode .timeline-school { color: var(--ink); }
body.dark-mode .secondary-button { color: var(--ink); border-color: var(--line); background: var(--surface-soft); }
body.dark-mode .section-panel-inner,
body.dark-mode .panel-list-item { color: var(--ink); border-color: var(--line); background: #202020; }
body.dark-mode .section-panel-inner { background: #0b0b0b; }
body.dark-mode .panel-tile { color: var(--ink); border-color: var(--line); background: #202020; }
body.dark-mode .panel-tile small,
body.dark-mode .panel-list-item small { color: #b5b5b5; }
.registration-education { display: grid; gap: 10px; margin: 2px 0; padding: 12px; border: 1px solid #e3e8ef; border-radius: 8px; }.registration-education legend { padding: 0 5px; color: #5f6a7a; font-size: 11px; font-weight: 700; }.registration-education label { font-size: 10px; }.logout-button { width: 100%; margin-top: 18px; padding: 10px; border: 1px solid #f0c9cf; border-radius: 8px; color: #b42335; background: #fff7f8; font-size: 12px; font-weight: 700; }
.mobile-menu { display: none; }
.post-modal textarea { width: 100%; min-height: 130px; resize: vertical; padding: 13px; border: 1px solid var(--line); border-radius: 10px; outline: 0; color: var(--ink); font: inherit; font-size: 13px; line-height: 1.5; }
.post-modal textarea:focus { border-color: #888; box-shadow: 0 0 0 3px rgba(0,0,0,.08); }
.post-form-footer { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; color: #9ca7b6; font-size: 10px; }
.post-modal { width: min(560px, calc(100vw - 32px)); padding: 32px; }
.post-modal h2 { margin: 0 0 22px; font-family: Manrope, sans-serif; font-size: 22px; letter-spacing: -.5px; }
.post-compose-form { display: grid; gap: 14px; }
.post-compose-author { display: flex; align-items: center; gap: 10px; }
.post-compose-author strong, .post-compose-author small { display: block; }
.post-compose-author strong { font-size: 12px; }
.post-compose-author small { margin-top: 3px; color: var(--muted); font-size: 10px; }
.auth-modal.post-modal textarea { min-height: 150px; padding: 15px; border-color: transparent; background: transparent; }
.auth-modal.post-modal textarea:focus { border-color: transparent; box-shadow: none; }
.post-compose-toolbar { display: flex; align-items: center; gap: 10px; min-height: 38px; }
.post-attach-button { padding: 9px 11px; border: 1px solid var(--line); border-radius: 9px; color: var(--ink); background: var(--surface); font-size: 11px; font-weight: 600; }
.post-attach-button span { margin-right: 5px; font-size: 15px; }
.post-media-remove { padding: 7px; color: #777; background: transparent; font-size: 10px; }
.post-character-count { margin-left: auto; color: var(--muted); font-size: 10px; }
.post-media-preview { overflow: hidden; max-height: 260px; border: 1px solid var(--line); border-radius: 12px; background: #111; }
.post-media-preview img, .post-media-preview video { display: block; width: 100%; max-height: 260px; object-fit: contain; }
.post-submit-row { display: flex; align-items: center; justify-content: space-between; margin-top: 2px; padding-top: 14px; border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; }
.m-button { width: 52px; height: 52px; display: flex; align-items: center; justify-content: center; padding: 0; border: 0; border-radius: 0; color: var(--ink); background: transparent; box-shadow: none; transition: transform .1s ease, opacity .1s ease; }
.m-button svg { width: 42px; height: 42px; display: block; overflow: visible; fill: none; stroke: currentColor; stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; }
.m-button:hover { transform: translateY(-2px) scale(1.04); background: transparent; opacity: .75; box-shadow: none; }
.m-button:active { transform: translateY(1px); box-shadow: none; }
.m-button:disabled { opacity: .65; cursor: wait; }
.post-submit-button { flex: 0 0 52px; padding: 0; }
.post-submit-button:disabled { opacity: .6; cursor: wait; }
.saved-page-panel .section-panel-inner { width: min(820px, 100%); max-height: min(850px, 92vh); }
.saved-post-list { display: grid; }
.saved-post-list .post-card:first-child { padding-top: 4px; }
body.dark-mode .auth-modal.post-modal textarea { border-color: transparent !important; background: transparent !important; }
body.dark-mode .auth-modal.post-modal textarea:focus { border-color: transparent !important; box-shadow: none !important; }
.auth-modal textarea, .auth-modal select { width: 100%; padding: 12px; border: 1px solid #e3e8ef; border-radius: 8px; outline: 0; color: var(--ink); background: #fff; font-size: 12px; }
.auth-modal textarea { min-height: 80px; resize: vertical; }.form-two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.section-panel { position: fixed; inset: 0; z-index: 8; display: grid; place-items: center; padding: 22px; background: rgba(20,29,43,.38); opacity: 0; pointer-events: none; transition: .25s ease; }
.section-panel.open { opacity: 1; pointer-events: auto; }
.section-panel-inner { position: relative; width: min(720px, 100%); max-height: min(720px, 90vh); overflow: auto; padding: 34px; border-radius: 20px; background: #fff; box-shadow: 0 25px 80px rgba(19,38,70,.25); transform: translateY(12px); transition: .25s ease; }
.section-panel.open .section-panel-inner { transform: translateY(0); }
.profile-page-panel { padding: 0; background: var(--surface); }
.profile-page-panel .section-panel-inner { width: min(920px, 100%); max-height: 100vh; min-height: 100vh; padding: 52px 52px 52px; border-radius: 0; background: var(--surface); box-shadow: none; }
.profile-page-panel .panel-close { top: 24px; left: 30px; right: auto; }
.profile-page-panel .profile-page-header { display: flex; flex-direction: column; align-items: center; gap: 14px; margin: 0 auto 24px; text-align: center; }
.profile-page-panel #profile-page-edit { display: block; margin: 0 auto; }
.profile-page-panel .profile-page-info { width: min(100%, 650px); }
.profile-page-panel .profile-page-info .panel-kicker { margin-left: 0; }
.profile-page-panel .profile-page-username { margin-bottom: 14px; }
.profile-page-panel .profile-stats { justify-content: center; }
.profile-page-panel .profile-posts-title { width: min(100%, 650px); margin-right: auto; margin-left: auto; text-align: center; }
.profile-page-panel .profile-post-list { width: min(100%, 650px); margin: 0 auto; }
.profile-page-panel .profile-tabs { width: min(100%, 650px); }
.modal-backdrop, .modal-backdrop.open, .auth-modal, .open .auth-modal, .section-panel, .section-panel.open, .section-panel-inner, .section-panel.open .section-panel-inner { transition: none !important; transform: none !important; }
.panel-close { position: absolute; top: 15px; left: 18px; right: auto; padding: 4px 8px; color: #9ca7b6; background: none; font-size: 25px; }
.panel-kicker { margin: 0 0 8px; color: var(--blue); font-size: 10px; font-weight: 700; letter-spacing: 1.3px; }
.panel-title { margin: 0 0 8px; font-family: Manrope, sans-serif; font-size: 26px; letter-spacing: -.8px; }
.panel-subtitle { margin: 0 0 25px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.network-page-panel .section-panel-inner { width: min(980px, 100%); max-height: 100vh; min-height: 100vh; padding: 52px 6%; border-radius: 0; background: var(--surface); box-shadow: none; }
.network-level-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 0 0 18px; border-bottom: 1px solid var(--line); }
.network-level-tab { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 8px; border-bottom: 2px solid transparent; color: var(--muted); background: transparent; font-size: 12px; font-weight: 700; white-space: nowrap; }
.network-level-tab.active { border-color: var(--ink); color: var(--ink); }
.network-level-tab span { min-width: 20px; padding: 3px 6px; border-radius: 20px; color: var(--muted); background: var(--surface-soft); font-size: 10px; text-align: center; }
.network-cohort-list { display: grid; gap: 2px; }
.network-cohort-person { display: flex; min-width: 0; align-items: center; gap: 14px; padding: 0 8px; border-bottom: 1px solid var(--line); }
.network-cohort-list .suggestion-card { min-width: 0; flex: 1; padding: 14px 0; border-bottom: 0; }
.network-cohort-list .suggestion-details span { line-height: 1.5; }
.network-cohort-actions { display: flex; flex: 0 0 auto; gap: 8px; }
.network-cohort-actions button { min-height: 32px; padding: 0 12px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); background: transparent; font-size: 11px; font-weight: 700; transition: background .16s ease, border-color .16s ease; }
.network-cohort-actions button:hover:not(:disabled) { border-color: var(--blue); background: var(--surface-soft); }
.network-cohort-actions button:disabled { cursor: default; opacity: .65; }
.network-cohort-actions .network-cohort-follow { border-color: var(--blue); color: var(--blue); }
.account-privacy-settings { display: grid; gap: 18px; max-width: 680px; padding: 22px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.account-privacy-settings h3 { margin: 0; color: var(--ink); font-size: 15px; }
.account-privacy-description, .account-privacy-status { margin: 7px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.account-privacy-options { display: grid; gap: 10px; }
.account-privacy-option { display: grid; gap: 6px; padding: 15px 16px; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); background: transparent; text-align: left; transition: border-color .16s ease, background .16s ease; }
.account-privacy-option strong { font-size: 13px; }
.account-privacy-option span { color: var(--muted); font-size: 11px; line-height: 1.5; }
.account-privacy-option:hover:not(:disabled), .account-privacy-option.selected { border-color: var(--ink); background: var(--surface-soft); }
.account-privacy-option:disabled { cursor: wait; opacity: .65; }
.profile-private-notice { width: min(100%, 650px); margin: 22px auto; padding: 28px 18px; border: 1px solid var(--line); border-radius: 14px; color: var(--muted); font-size: 13px; line-height: 1.6; text-align: center; }
.yearbook-page-panel .section-panel-inner { width: min(1120px, 100%); padding: 34px 4.5% 56px; background: #f1ecdf; }
.yearbook-page-panel .panel-close { position: relative; top: auto; left: auto; right: auto; display: flex; width: max-content; margin: 0 0 16px; color: var(--ink); }
.yearbook-page-panel #section-panel-content { min-height: 100%; }
.yearbook-shell { position: relative; min-height: 580px; padding: clamp(30px, 5vw, 64px) clamp(22px, 6vw, 82px); overflow: hidden; border: 1px solid #777165; border-radius: clamp(24px, 5vw, 48px); color: #302d27; background-color: #f5f0e5; background-image: radial-gradient(circle, rgba(75, 68, 56, .13) .75px, transparent 1px); background-size: 18px 18px; }
.yearbook-heading { margin: 0 auto 40px; text-align: center; }
.yearbook-eyebrow { display: block; color: #847a67; font-size: 9px; font-weight: 800; letter-spacing: 1.8px; }
.yearbook-heading h2 { margin: 10px 0 0; color: #302d27; font-family: Manrope, sans-serif; font-size: clamp(25px, 4vw, 38px); font-weight: 600; letter-spacing: -1.1px; text-transform: none; }
.yearbook-heading p { margin: 10px 0 0; color: #766f63; font-size: 12px; }
.yearbook-loading, .yearbook-error { padding: 28px 0; color: #766f63; font-size: 12px; text-align: center; }
.yearbook-shelf { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: clamp(24px, 4vw, 46px); justify-items: center; align-items: center; padding: 8px 0; perspective: 1000px; }
.yearbook-book { position: relative; display: grid; width: min(100%, 226px); min-height: 292px; padding: 0 0 0 13px; overflow: hidden; border: 0; border-radius: 5px 12px 12px 5px; color: #f5efdf; background: #314237; box-shadow: 0 13px 26px rgba(50, 42, 29, .23), inset 3px 0 5px rgba(255, 255, 255, .12); text-align: center; transition: transform .24s ease, box-shadow .24s ease; transform-style: preserve-3d; }
.yearbook-book:hover { box-shadow: 0 20px 34px rgba(50, 42, 29, .3); transform: translateY(-7px) rotateY(-4deg); }
.yearbook-book:focus-visible { outline: 3px solid #74654c; outline-offset: 4px; }
.yearbook-book-1 { color: #f6eee3; background: #70463a; }
.yearbook-book-2 { color: #f6f0e2; background: #746846; }
.yearbook-book-3 { color: #f3ede1; background: #454440; }
.yearbook-book-spine { position: absolute; inset: 0 auto 0 0; width: 15px; border-right: 1px solid rgba(28, 23, 17, .45); background: linear-gradient(90deg, rgba(15, 14, 12, .36), rgba(255, 255, 255, .08) 48%, rgba(14, 14, 12, .22)); }
.yearbook-book-content { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 292px; padding: 24px 21px; border: 1px solid rgba(241, 229, 200, .42); }
.yearbook-book-mark { display: grid; width: 41px; height: 41px; margin-bottom: 22px; place-items: center; border: 1px solid rgba(241, 229, 200, .63); border-radius: 50%; font-family: Georgia, serif; font-size: 19px; font-weight: 700; }
.yearbook-book-school { display: -webkit-box; max-width: 100%; overflow: hidden; font-family: Georgia, "Times New Roman", serif; font-size: 17px; line-height: 1.3; text-overflow: ellipsis; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.yearbook-book-level { margin-top: 10px; font-size: 9px; font-weight: 700; letter-spacing: 1.35px; }
.yearbook-book-content > strong { margin-top: 8px; font-family: Georgia, "Times New Roman", serif; font-size: 29px; font-weight: 500; letter-spacing: 2px; }
.yearbook-book-count { margin-top: 14px; color: rgba(247, 240, 223, .78); font-size: 10px; }
.yearbook-book-corner { position: absolute; right: 0; bottom: 0; width: 22px; height: 22px; border-top: 1px solid rgba(241, 229, 200, .42); border-left: 1px solid rgba(241, 229, 200, .42); background: rgba(250, 243, 224, .11); }
.yearbook-empty { width: min(100%, 470px); margin: 0 auto; padding: 36px 24px; border: 1px solid rgba(118, 105, 82, .35); border-radius: 15px; background: rgba(255, 253, 247, .56); text-align: center; }
.yearbook-empty-mark { display: grid; width: 48px; height: 48px; margin: 0 auto 14px; place-items: center; border: 1px solid #83765e; border-radius: 50%; color: #4c493e; font-family: Georgia, serif; font-size: 22px; font-weight: 700; }
.yearbook-empty h3 { margin: 0; color: #302d27; font-family: Georgia, serif; font-size: 20px; font-weight: 500; }
.yearbook-empty p { margin: 9px 0 18px; color: #766f63; font-size: 12px; line-height: 1.6; }
.yearbook-edit-button, .yearbook-back { padding: 9px 14px; border: 1px solid #706750; border-radius: 8px; color: #3c382f; background: transparent; font-size: 11px; font-weight: 700; }
.yearbook-edit-button:hover, .yearbook-back:hover { background: rgba(90, 78, 55, .09); }
.yearbook-open-book { padding: clamp(20px, 4vw, 38px); border: 1px solid rgba(118, 105, 82, .4); border-radius: 16px; background: rgba(255, 253, 247, .7); box-shadow: 0 12px 28px rgba(56, 47, 32, .09); animation: yearbook-open .32s ease both; }
@keyframes yearbook-open { from { opacity: 0; transform: perspective(800px) rotateY(-8deg) translateY(8px); } to { opacity: 1; transform: perspective(800px) rotateY(0) translateY(0); } }
.yearbook-back { margin-bottom: 28px; }
.yearbook-open-heading { margin-bottom: 20px; padding-bottom: 19px; border-bottom: 1px solid rgba(118, 105, 82, .26); text-align: center; }
.yearbook-open-heading h2 { margin: 8px 0 5px; color: #302d27; font-family: Georgia, serif; font-size: clamp(24px, 3.5vw, 34px); font-weight: 500; }
.yearbook-open-heading p { margin: 0; color: #766f63; font-size: 11px; }
.yearbook-members { display: grid; gap: 0; }
.yearbook-person { display: flex; min-width: 0; align-items: center; gap: 12px; padding: 13px 2px; border-bottom: 1px solid rgba(118, 105, 82, .2); }
.yearbook-person:last-child { border-bottom: 0; }
.yearbook-person-profile { display: flex; min-width: 0; flex: 1; align-items: center; gap: 12px; padding: 0; color: #302d27; background: transparent; text-align: left; }
.yearbook-person-avatar { display: grid; width: 42px; height: 42px; flex: 0 0 42px; place-items: center; overflow: hidden; border: 1px solid rgba(118, 105, 82, .35); border-radius: 50%; color: #514b3e; background: #e6ddc9; font-size: 14px; font-weight: 700; }
.yearbook-person-avatar img { width: 100%; height: 100%; object-fit: cover; }
.yearbook-person-copy { display: grid; min-width: 0; gap: 4px; }
.yearbook-person-copy strong { overflow: hidden; color: #302d27; font-family: Georgia, serif; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.yearbook-person-copy small { overflow: hidden; color: #766f63; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.yearbook-person-actions { display: flex; flex: 0 0 auto; gap: 7px; }
.yearbook-person-actions button { min-height: 30px; padding: 0 10px; border: 1px solid rgba(95, 83, 61, .42); border-radius: 7px; color: #484234; background: transparent; font-size: 10px; font-weight: 700; }
.yearbook-person-actions button:hover:not(:disabled) { background: rgba(90, 78, 55, .09); }
.yearbook-person-actions button:disabled { cursor: default; opacity: .62; }
.yearbook-person-actions .yearbook-action-follow { border-color: #5b684e; color: #4b5a40; }
.yearbook-self { margin-bottom: 4px; padding: 13px 10px; border: 1px solid rgba(118, 105, 82, .3); border-radius: 10px; background: rgba(222, 213, 193, .38); }
.yearbook-self-mark { flex: 0 0 auto; color: #766f63; font-size: 9px; }
body.dark-mode .yearbook-page-panel .section-panel-inner { background: #171715; }
body.dark-mode .yearbook-shell { border-color: #514e45; color: #e5dfd1; background-color: #22221f; background-image: radial-gradient(circle, rgba(225, 216, 196, .1) .75px, transparent 1px); }
body.dark-mode .yearbook-heading h2, body.dark-mode .yearbook-empty h3, body.dark-mode .yearbook-open-heading h2 { color: #eee8da; }
body.dark-mode .yearbook-heading p, body.dark-mode .yearbook-loading, body.dark-mode .yearbook-error, body.dark-mode .yearbook-open-heading p, body.dark-mode .yearbook-empty p { color: #b5ad9d; }
body.dark-mode .yearbook-eyebrow { color: #b6aa91; }
body.dark-mode .yearbook-empty-mark { border-color: #a99b7e; color: #e5dfd1; }
body.dark-mode .yearbook-open-book, body.dark-mode .yearbook-empty { border-color: rgba(205, 192, 163, .24); background: rgba(34, 33, 29, .9); box-shadow: 0 12px 28px rgba(0, 0, 0, .24); }
body.dark-mode .yearbook-person, body.dark-mode .yearbook-open-heading { border-color: rgba(205, 192, 163, .2); }
body.dark-mode .yearbook-person-profile, body.dark-mode .yearbook-person-copy strong { color: #e9e1d1; }
body.dark-mode .yearbook-person-copy small, body.dark-mode .yearbook-self-mark { color: #b5ad9d; }
body.dark-mode .yearbook-person-avatar { border-color: rgba(205, 192, 163, .3); color: #e9e1d1; background: #3a3932; }
body.dark-mode .yearbook-person-actions button, body.dark-mode .yearbook-back, body.dark-mode .yearbook-edit-button { border-color: rgba(205, 192, 163, .35); color: #e9e1d1; }
body.dark-mode .yearbook-person-actions .yearbook-action-follow { border-color: #8d987a; color: #cbd3bd; }
body.dark-mode .yearbook-self { border-color: rgba(205, 192, 163, .22); background: rgba(205, 192, 163, .07); }
.album-page-panel { padding: 0; background: var(--surface); }
.album-page-panel .section-panel-inner { width: min(1160px, 100%); max-height: 100vh; min-height: 100vh; padding: 26px 4%; border-radius: 0; background: var(--surface); box-shadow: none; }
.album-page-panel .panel-close { position: relative; top: auto; left: auto; right: auto; display: flex; width: max-content; margin: 0 0 14px; padding: 5px 0; color: var(--ink); }
.album-page-panel #section-panel-content { min-height: calc(100vh - 90px); padding: clamp(24px, 5vw, 58px); border: 1px solid var(--line); border-radius: clamp(22px, 4vw, 42px); color: var(--ink); background-color: var(--surface); background-image: radial-gradient(circle, color-mix(in srgb, var(--muted) 18%, transparent) .7px, transparent 1px); background-size: 17px 17px; }
.album-heading { margin: 0 auto 34px; text-align: center; }
.album-heading .panel-kicker { margin-bottom: 7px; }
.album-heading .panel-title { margin-bottom: 7px; font-size: clamp(25px, 4vw, 38px); font-weight: 500; text-transform: none; }
.album-heading .panel-subtitle { margin-bottom: 0; }
.album-shell { min-height: max(580px, calc(100vh - 280px)); }
.album-cover { width: min(100%, 260px); }
.album-cover .yearbook-book-content > strong { font-family: Georgia, "Times New Roman", serif; font-size: 28px; letter-spacing: 2px; }
.album-photos-section { margin-top: 25px; }
.album-add-form { display: grid; grid-template-columns: minmax(180px, 1fr) minmax(180px, 1.2fr); align-items: end; gap: 12px; margin: 0 0 24px; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.album-add-form[hidden] { display: none; }
.album-add-form label { display: grid; gap: 7px; color: var(--muted); font-size: 11px; font-weight: 700; }
.album-add-form input, .album-add-form select { width: 100%; min-height: 40px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; outline: 0; color: var(--ink); background: var(--surface); font: inherit; font-size: 12px; }
.album-add-form input:focus, .album-add-form select:focus { border-color: var(--muted); }
.album-add-form .album-file-field input { padding: 6px; }
.album-upload-status { grid-column: 1 / -1; min-height: 16px; margin: 0; color: var(--muted); font-size: 11px; }
.album-form-actions { grid-column: 1 / -1; display: flex; justify-content: flex-end; gap: 8px; }
.album-cancel-button, .album-save-button { min-height: 38px; padding: 0 14px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); background: transparent; font-size: 11px; font-weight: 700; }
.album-save-button { border-color: var(--ink); color: var(--surface); background: var(--ink); }
.album-save-button:disabled { cursor: wait; opacity: .6; }
.album-year-group { margin-top: 28px; }
.album-year-group h3 { margin: 0 0 14px; color: var(--ink); font-family: Georgia, serif; font-size: 18px; font-weight: 500; }
.album-photo-grid, .yearbook-album-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 190px), 1fr)); gap: clamp(14px, 2.5vw, 27px); }
.album-photo-card { position: relative; min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); box-shadow: 0 8px 20px rgba(20, 20, 20, .08); animation: album-appear .28s ease both; }
@keyframes album-appear { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }
.album-photo-card > img { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.album-photo-card figcaption { overflow: hidden; padding: 7px 9px; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.album-empty, .album-loading, .album-error { color: var(--muted); font-size: 12px; line-height: 1.6; }
.album-empty { margin: 0; padding: 34px 0; text-align: center; }
.album-error { padding: 30px; text-align: center; }
.yearbook-album { margin: 0 0 25px; padding: 20px; border: 1px solid rgba(118, 105, 82, .3); border-radius: 13px; background: rgba(255, 253, 247, .45); }
.yearbook-album-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 16px; }
.yearbook-album-heading h3 { margin: 0; color: var(--ink); font-family: Georgia, serif; font-size: 18px; font-weight: 500; }
.yearbook-album-heading p { margin: 5px 0 0; color: var(--muted); font-size: 11px; }
.yearbook-album-add { min-height: 36px; padding: 0 12px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); background: var(--surface); font-size: 11px; font-weight: 700; }
.yearbook-album-add:disabled { cursor: wait; opacity: .6; }
.yearbook-album-status { flex-basis: 100%; margin: 0; color: var(--muted); font-size: 11px; }
.yearbook-album-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr)); gap: 12px; }
.yearbook-album-empty { grid-column: 1 / -1; margin: 0; color: var(--muted); font-size: 12px; }
.yearbook-album-remove { position: absolute; top: 7px; right: 7px; display: grid; width: 27px; height: 27px; place-items: center; border: 1px solid rgba(255,255,255,.55); border-radius: 50%; color: #fff; background: rgba(20,20,20,.62); font-size: 18px; line-height: 1; }
.yearbook-photo-save { display: block; width: calc(100% - 14px); min-height: 30px; margin: 0 7px 7px; padding: 5px 8px; border: 1px solid var(--line); border-radius: 7px; color: var(--ink); background: var(--surface); font-size: 10px; font-weight: 700; }
.yearbook-photo-save.saved { border-color: #727b68; color: #4c5940; background: #f2f3ee; }
.yearbook-photo-save:disabled { cursor: wait; opacity: .6; }
body.dark-mode .yearbook-album { border-color: rgba(205, 192, 163, .24); background: rgba(34, 33, 29, .9); }

.yearbook-view-switch { display: flex; width: max-content; gap: 4px; margin: 18px 0; padding: 4px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.yearbook-view-switch button { min-height: 34px; padding: 0 16px; border: 0; border-radius: 7px; color: var(--muted); background: transparent; font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; }
.yearbook-view-switch button.active { color: var(--surface); background: var(--ink); }
.yearbook-photo-upload { display: grid; grid-template-columns: minmax(180px, .75fr) minmax(220px, 1.25fr); gap: 12px; margin: 0 0 18px; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.yearbook-photo-upload[hidden] { display: none; }
.yearbook-photo-upload label, .album-caption-field { display: grid; gap: 7px; color: var(--muted); font-size: 11px; font-weight: 700; }
.yearbook-photo-upload input, .yearbook-photo-upload textarea, .album-caption-field textarea { width: 100%; min-height: 40px; padding: 9px 10px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); background: var(--surface); font: inherit; font-size: 12px; }
.yearbook-photo-upload textarea, .album-caption-field textarea { resize: vertical; }
.yearbook-photo-upload .yearbook-album-status, .yearbook-photo-upload > div { grid-column: 1 / -1; }
.yearbook-photo-upload > div { display: flex; justify-content: flex-end; gap: 8px; }
.yearbook-photo-upload button { min-height: 36px; padding: 0 13px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); background: var(--surface); font-size: 11px; font-weight: 700; cursor: pointer; }
.yearbook-photo-upload .yearbook-upload-submit { border-color: var(--ink); color: var(--surface); background: var(--ink); }
.yearbook-upload-submit:disabled { opacity: .6; }
.yearbook-photo-gallery { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.yearbook-photo-feed { display: grid; grid-template-columns: minmax(0, 650px); justify-content: center; gap: 22px; }
.yearbook-photo-card { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); box-shadow: 0 8px 22px rgba(20, 20, 20, .08); }
.yearbook-photo-card.feed { border-radius: 16px; }
.yearbook-photo-image { display: block; width: 100%; padding: 0; border: 0; background: #151515; cursor: zoom-in; }
.yearbook-photo-gallery .yearbook-photo-image { aspect-ratio: 1; }
.yearbook-photo-gallery .yearbook-photo-image img { display: block; width: 100%; height: 100%; object-fit: cover; image-rendering: auto; }
.yearbook-photo-gallery .yearbook-photo-card { position: relative; }
.yearbook-photo-gallery .yearbook-photo-meta { display: none; }
.yearbook-photo-gallery .yearbook-photo-actions { position: absolute; right: 8px; bottom: 8px; gap: 0; padding: 0; }
.yearbook-photo-gallery .yearbook-photo-actions > button:not([data-yearbook-photo-remove]) { display: none; }
.yearbook-photo-gallery .yearbook-photo-actions .yearbook-album-remove { width: 34px; height: 34px; margin: 0; border: 1px solid rgba(255,255,255,.35); color: #fff; background: rgba(20,20,20,.68); }
.yearbook-photo-feed .yearbook-photo-image { max-height: 72vh; }
.yearbook-photo-feed .yearbook-photo-image img { display: block; width: 100%; max-height: 72vh; object-fit: contain; }
.yearbook-photo-image img, .album-photo-card > img { image-rendering: auto; }
.yearbook-photo-meta { padding: 13px 14px 3px; color: var(--ink); }
.yearbook-photo-meta strong { font-size: 12px; }
.yearbook-photo-meta p { margin: 6px 0 8px; color: var(--ink); font-size: 13px; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; }
.yearbook-photo-actions, .album-photo-actions { display: flex; align-items: center; gap: 8px; padding: 9px 12px 12px; }
.yearbook-photo-actions button, .album-photo-actions button { min-height: 32px; padding: 0 9px; border: 0; border-radius: 7px; color: var(--ink); background: var(--surface-soft); font-size: 11px; font-weight: 700; cursor: pointer; }
.yearbook-photo-actions button.liked, .album-photo-actions button.liked { color: #c33b56; }
.yearbook-photo-actions button:disabled { opacity: .55; cursor: wait; }
.yearbook-photo-actions .yearbook-album-remove { margin-left: auto; }
.yearbook-photo-card .yearbook-album-remove { position: static; width: 32px; height: 32px; margin-left: auto; border-color: var(--line); color: var(--ink); background: var(--surface-soft); }
.yearbook-photo-save { margin-left: auto; }
.yearbook-photo-actions .yearbook-photo-save { width: auto; margin: 0 0 0 auto; }
.yearbook-photo-save.saved { color: #526442 !important; }
.yearbook-photo-gallery .yearbook-photo-actions [data-yearbook-like],
.yearbook-photo-gallery .yearbook-photo-actions [data-yearbook-comment] { display: none; }
.yearbook-feed-sentinel { padding: 24px; color: var(--muted); font-size: 12px; text-align: center; }
.yearbook-photo-viewer { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 24px; background: rgba(6, 9, 14, .78); animation: album-appear .18s ease both; }
.yearbook-photo-dialog { position: relative; display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(260px, .8fr); width: min(1100px, 100%); max-height: min(850px, 92vh); overflow: hidden; border-radius: 16px; background: var(--surface); box-shadow: 0 22px 80px rgba(0,0,0,.35); }
.yearbook-photo-dialog > img { width: 100%; height: 100%; max-height: 92vh; object-fit: contain; background: #111; }
.yearbook-photo-view-copy { display: flex; min-height: 0; flex-direction: column; padding: 25px 18px 16px; color: var(--ink); }
.yearbook-photo-view-copy > strong { font-size: 13px; }
.yearbook-photo-view-copy > p { margin: 8px 0 0; font-size: 13px; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; }
.yearbook-photo-view-copy .yearbook-photo-actions { padding: 12px 0; }
.yearbook-photo-comments { min-height: 100px; flex: 1; overflow-y: auto; border-top: 1px solid var(--line); }
.yearbook-photo-comments > p { margin: 0; padding: 10px 0; color: var(--ink); font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
.yearbook-photo-comments > p + p { border-top: 1px solid var(--line); }
.yearbook-photo-comments strong { margin-right: 5px; }
.yearbook-photo-comment-empty { color: var(--muted) !important; }
.yearbook-photo-comment-form { display: flex; gap: 7px; padding-top: 12px; border-top: 1px solid var(--line); }
.yearbook-photo-comment-form input { min-width: 0; min-height: 38px; flex: 1; padding: 0 10px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); background: var(--surface); font: inherit; font-size: 12px; }
.yearbook-photo-comment-form button { padding: 0 12px; border: 0; border-radius: 8px; color: #fff; background: var(--blue); font-size: 11px; font-weight: 700; }
.yearbook-photo-close { position: absolute; top: 10px; right: 10px; z-index: 1; display: grid; width: 34px; height: 34px; place-items: center; border: 0; border-radius: 50%; color: var(--ink); background: var(--surface); font-size: 24px; cursor: pointer; }
@media (max-width: 680px) {
  .yearbook-photo-gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
  .yearbook-photo-dialog { grid-template-columns: 1fr; max-height: 94vh; overflow-y: auto; }
  .yearbook-photo-dialog > img { max-height: 55vh; }
  .yearbook-photo-view-copy { min-height: 250px; padding: 16px; }
  .yearbook-photo-comments { max-height: 200px; flex: initial; }
  .yearbook-photo-upload { grid-template-columns: 1fr; }
}
@media (max-width: 420px) {
  .yearbook-photo-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
}
body.dark-mode .yearbook-album-add { border-color: rgba(205, 192, 163, .35); }
body.dark-mode .yearbook-photo-save { border-color: rgba(205, 192, 163, .3); color: #e9e1d1; background: #292824; }
body.dark-mode .yearbook-photo-save.saved { border-color: #747d68; color: #d1dac4; background: #30332d; }
body.dark-mode .album-add-form { border-color: #48463f; }
body.dark-mode .album-page-panel #section-panel-content { border-color: #48463f; background-color: #1c1c1a; }
body.dark-mode .album-photo-card { box-shadow: 0 8px 20px rgba(0, 0, 0, .24); }
.panel-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.panel-tile { padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: #fbfcfe; }
.panel-tile strong, .panel-tile small { display: block; }.panel-tile strong { font-size: 13px; }.panel-tile small { margin-top: 6px; color: var(--muted); font-size: 10px; line-height: 1.5; }
.panel-list { display: grid; gap: 8px; }.panel-list-item { display: flex; align-items: center; gap: 10px; min-height: 46px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }.panel-list-item > div:last-child { flex: 1; }.panel-list-item strong, .panel-list-item small { display: block; }.panel-list-item strong { font-size: 12px; }.panel-list-item small { margin-top: 3px; color: var(--muted); font-size: 10px; }.search-profile-avatar { width: 40px !important; height: 40px !important; min-width: 40px; flex: 0 0 40px; display: grid; place-items: center; overflow: hidden; border-radius: 50% !important; color: #fff; background: linear-gradient(140deg, #ffc5ae, #a66c80); font-size: 10px; font-weight: 700; }.search-profile-avatar img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }.search-profile-info { min-width: 0; flex: 1; }
.search-profile-trigger { display: flex; min-width: 0; flex: 1; align-items: center; gap: 9px; padding: 0; border: 0; color: inherit; background: transparent; text-align: left; }
.settings-row { display: flex; align-items: center; justify-content: space-between; padding: 16px 0; border-bottom: 1px solid var(--line); }.settings-row:last-child { border-bottom: 0; }.settings-row strong, .settings-row small { display: block; }.settings-row strong { font-size: 12px; }.settings-row small { margin-top: 4px; color: var(--muted); font-size: 10px; }.switch { width: 38px; height: 22px; padding: 3px; border-radius: 20px; background: #ddd; }.switch.on { background: var(--blue); }.switch:after { content: ""; display: block; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: .2s; }.switch.on:after { transform: translateX(16px); }
@media (max-width: 560px) { .section-panel-inner { padding: 28px 20px; }.profile-page-panel .section-panel-inner { padding: 56px 20px 32px; }.profile-page-panel .panel-close { top: 18px; left: 16px; right: auto; }.network-page-panel .section-panel-inner { padding: 56px 16px 30px; }.network-level-tabs { gap: 0; }.network-level-tab { flex-direction: column; gap: 4px; padding: 10px 3px; font-size: 10px; }.network-cohort-person { align-items: flex-start; flex-wrap: wrap; gap: 4px 10px; }.network-cohort-list .suggestion-card { flex-basis: 100%; }.network-cohort-actions { margin: 0 0 12px 44px; }.panel-grid { grid-template-columns: 1fr; }.panel-title { font-size: 22px; }.profile-page-header { display: block; }.profile-page-panel .profile-page-header { display: flex; }.profile-page-avatar { margin-bottom: 18px; }.profile-stats { gap: 18px; }.profile-edit-modal { max-height: calc(100vh - 20px); } }
@media (max-width: 1050px) { .page-grid { grid-template-columns: minmax(0, 1fr) minmax(280px, 332px); gap: clamp(20px, 3vw, 32px); padding-right: clamp(20px, 3vw, 42px); padding-left: clamp(20px, 3vw, 42px); }.sidebar { width: 220px; }.main-content { margin-left: 220px; }.network-visual { transform: scale(.9); margin: 0 auto -2px; } }
.mentorship-page-panel .section-panel-inner { width: min(1100px, 100%); max-height: 100vh; min-height: 100vh; padding: 56px 6%; border-radius: 0; background: var(--surface); box-shadow: none; }
.mentorship-shell { width: min(900px, 100%); min-height: 620px; margin: 0 auto; padding: clamp(30px, 6vw, 64px); border: 1px solid #e6e2dc; border-radius: 30px; background-color: #fcfbf9; background-image: radial-gradient(circle, rgba(72, 67, 59, .14) .8px, transparent 1px); background-size: 13px 13px; }
.mentorship-heading { max-width: 650px; margin: 0 auto 38px; text-align: center; }
.mentorship-eyebrow { display: inline-block; margin-bottom: 12px; color: #777168; font-size: 10px; font-weight: 800; letter-spacing: 1.6px; }
.mentorship-heading h2 { margin: 0 0 10px; color: #26231f; font-family: Manrope, sans-serif; font-size: clamp(27px, 4vw, 38px); letter-spacing: -1.2px; }
.mentorship-heading p, .mentorship-form-intro { margin: 0; color: #777168; font-size: 13px; line-height: 1.7; }
.mentorship-form-card { width: min(620px, 100%); margin: 0 auto; padding: 28px; border: 1px solid rgba(54, 49, 42, .1); border-radius: 20px; background: rgba(255, 255, 255, .94); box-shadow: 0 18px 45px rgba(39, 34, 27, .08); }
.mentorship-form-card h3 { margin: 0 0 5px; color: #26231f; font-size: 19px; letter-spacing: -.3px; }
.mentorship-form-intro { margin-bottom: 22px; font-size: 12px; }
.mentorship-form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.mentorship-form label { display: grid; gap: 8px; color: #49443d; font-size: 11px; font-weight: 700; }
.mentorship-form input { width: 100%; min-height: 45px; padding: 0 13px; border: 1px solid #e5e1da; border-radius: 10px; outline: 0; color: #26231f; background: #fff; font-size: 12px; transition: border-color .18s ease, box-shadow .18s ease; }
.mentorship-form input:focus { border-color: #8c8378; box-shadow: 0 0 0 3px rgba(110, 101, 89, .1); }
.mentorship-form input::placeholder { color: #aaa49c; font-weight: 400; }
.mentorship-form .mentorship-barcode-field, .mentorship-help, .mentorship-form-error, .mentorship-form-status, .mentorship-submit { grid-column: 1 / -1; }
.mentorship-barcode-field small { color: #8a837a; font-size: 10px; font-weight: 400; line-height: 1.5; }
.mentorship-help { padding: 13px 14px; border: 1px solid #ebe7e0; border-radius: 10px; color: #514b43; background: #fcfbf9; font-size: 11px; }
.mentorship-help summary { cursor: pointer; font-weight: 700; }
.mentorship-help p { margin: 11px 0 7px; color: #777168; line-height: 1.6; }
.mentorship-help a { color: #514b43; font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.mentorship-submit { display: flex; min-height: 48px; align-items: center; justify-content: center; gap: 9px; border-radius: 10px; color: #fff; background: #282520; font-size: 12px; font-weight: 700; transition: opacity .18s ease, transform .18s ease; }
.mentorship-submit:hover:not(:disabled) { transform: translateY(-1px); opacity: .88; }
.mentorship-submit:disabled { cursor: wait; opacity: .65; }
.mentorship-form-error { margin: 0; color: #a52c2c; font-size: 11px; line-height: 1.5; }
.mentorship-form-status { margin: 0; color: #777168; font-size: 11px; }
.mentorship-privacy-note { max-width: 620px; margin: 16px auto 0; color: #8a837a; font-size: 10px; line-height: 1.6; text-align: center; }
.mentorship-result { display: flex; width: min(620px, 100%); align-items: flex-start; gap: 16px; margin: 0 auto; padding: 24px; border: 1px solid rgba(54, 49, 42, .1); border-radius: 18px; background: rgba(255, 255, 255, .94); box-shadow: 0 18px 45px rgba(39, 34, 27, .08); }
.mentorship-result-mark { display: grid; width: 38px; height: 38px; flex: 0 0 38px; place-items: center; border-radius: 50%; color: #fff; background: #514b43; font-size: 20px; font-weight: 700; }
.mentorship-result h3 { margin: 0 0 6px; color: #26231f; font-size: 16px; }
.mentorship-result p, .mentorship-loading { margin: 0; color: #777168; font-size: 12px; line-height: 1.7; }
body.dark-mode .mentorship-shell { border-color: #41403d; background-color: #151514; background-image: radial-gradient(circle, rgba(220, 218, 213, .12) .8px, transparent 1px); }
body.dark-mode .mentorship-heading h2, body.dark-mode .mentorship-form-card h3, body.dark-mode .mentorship-result h3 { color: #f1efeb; }
body.dark-mode .mentorship-heading p, body.dark-mode .mentorship-form-intro, body.dark-mode .mentorship-result p, body.dark-mode .mentorship-loading { color: #b6b1a8; }
body.dark-mode .mentorship-eyebrow, body.dark-mode .mentorship-form label, body.dark-mode .mentorship-help, body.dark-mode .mentorship-help a { color: #d4d0c8; }
body.dark-mode .mentorship-form-card, body.dark-mode .mentorship-result { border-color: #41403d; background: rgba(32, 31, 29, .96); }
body.dark-mode .mentorship-form input { border-color: #4c4a46; color: #f1efeb; background: #171716; }
body.dark-mode .mentorship-form input::placeholder, body.dark-mode .mentorship-barcode-field small, body.dark-mode .mentorship-help p, body.dark-mode .mentorship-privacy-note { color: #a49f97; }
body.dark-mode .mentorship-help { border-color: #41403d; background: #191817; }
body.dark-mode .mentorship-submit { color: #242321; background: #eeeae2; }
@media (max-width: 840px) { .sidebar { position: fixed; inset: 0 auto 0 0; z-index: 12; display: flex; width: 254px; transform: translateX(-105%); transition: transform .25s ease; box-shadow: 12px 0 35px rgba(35,53,83,.12); }.sidebar.mobile-open { transform: translateX(0); }.main-content { width: 100%; margin-left: 0; }.mobile-brand { display: flex; margin-right: auto; font-size: 21px; }.topbar { height: 70px; padding: 0 20px; }.search-box { max-width: none; width: min(560px, 72vw); order: 3; }.login-button, .top-signup { display: none; }.mobile-menu { display: block; order: 2; padding: 5px; color: #748095; background: none; font-size: 20px; }.page-grid { display: block; width: 100%; max-width: 650px; padding: 35px 24px; }.feed-column, .right-column { min-width: 0; width: 100%; }.right-column { position: static; display: grid; grid-template-columns: minmax(0, 1fr); height: auto; overflow: visible; padding-top: 35px; }.right-column > section { min-width: 0; width: 100%; }.education-card { grid-column: auto; }.footer-links { padding: 10px 24px 28px; } }
@media (max-width: 560px) { .topbar { flex-wrap: wrap; height: auto; padding: 16px 18px; gap: 8px; }.mobile-brand { margin-right: 0; }.mobile-menu { margin-left: auto; }.search-box { max-width: none; width: 100%; order: 3; flex-basis: 100%; }.page-grid { padding: 28px 18px; }.welcome-row { align-items: flex-start; }.welcome-row h1 { font-size: 21px; }.round-action { width: 82px; min-width: 82px; height: 72px; }.add-memory-mark { width: 38px; height: 40px; }.add-memory-label { font-size: 9px; }.right-column { display: block; }.right-column > section { margin-bottom: 20px; }.education-card { margin-bottom: 0 !important; }.post-text, .connection-note, .topic-tags, .post-actions { margin-left: 0; }.post-actions { gap: 20px; }.filter-tabs { gap: 15px; }.filter-tab, .filter-button { font-size: 10px; }.auth-modal, .profile-edit-modal { padding: 26px 22px; }.post-modal { padding: 26px 20px; }.post-modal h2 { padding-right: 18px; font-size: 20px; }.post-compose-toolbar { flex-wrap: wrap; }.post-character-count { margin-left: auto; }.profile-edit-modal form, .profile-education-fields { grid-template-columns: 1fr; }.profile-edit-modal label, .profile-edit-modal button, .profile-education-fields legend { grid-column: auto; }.auth-gate { padding: 84px 14px 76px; }.gate-header { top: 20px; left: 50%; }.gate-footer { right: auto; bottom: 20px; left: 50%; gap: 12px; } }

/* Sidebar destinations are full views inside the main content, not overlays. */
.nav-icon svg { width: 18px; height: 18px; display: block; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.search-icon svg { width: 16px; height: 16px; display: block; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.main-content.show-section-page .page-grid, .main-content.show-section-page > .footer-links { display: none; }
.section-panel { position: static; display: none; min-height: calc(100vh - 88px); padding: 0; background: var(--surface); opacity: 1; pointer-events: auto; }
.section-panel.open { display: block; }
.section-panel-inner { width: min(980px, 100%); min-height: calc(100vh - 88px); max-height: none; margin: 0 auto; overflow: auto; padding: 54px 6%; border-radius: 0; background: var(--surface); box-shadow: none; }
.panel-close { top: 22px; left: 6%; right: auto; display: inline-flex; align-items: center; gap: 7px; padding: 7px 0; color: var(--blue); font-size: 13px; font-weight: 700; }
.panel-close span { font-size: 11px; }
.action-icon { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; vertical-align: -3px; }
.post-actions button { display: inline-flex; align-items: center; gap: 6px; }
.message-profile-button { display: inline-flex; align-items: center; justify-content: center; gap: 5px; width: auto; min-width: 72px; height: 30px; padding: 7px 10px; border-radius: 8px; color: #333; background: #eee; font-size: 10px; line-height: 1; white-space: nowrap; }
.message-profile-button .action-icon { width: 14px; height: 14px; }
body.dark-mode .follow-button { border-color: #444; color: #e5e5e5; background: #242424; }
body.dark-mode .panel-list-item .profile-follow-button,
body.dark-mode .panel-list-item .message-profile-button { border-color: #444 !important; color: #e5e5e5 !important; background: #242424 !important; }
.panel-list-item .profile-follow-button,
.panel-list-item .message-profile-button { border-color: #ddd !important; color: #444 !important; background: #f4f4f4 !important; }
.panel-list-item .message-profile-button span { color: inherit; }
.panel-list-item .profile-follow-button { width: auto; min-width: 72px; height: 30px; padding: 7px 10px; font-size: 10px; line-height: 1; white-space: nowrap; }
.panel-list-item .profile-follow-button,
.panel-list-item .message-profile-button { flex: 0 0 auto; }
@media (max-width: 560px) { .messages-layout { grid-template-columns: 1fr; }.conversation-list { border-right: 0; border-bottom: 1px solid var(--line); }.new-message-form { flex-wrap: wrap; }.new-message-form input { min-width: 100%; } }

.messages-page-panel .section-panel-inner { display: flex; width: min(1280px, 100%); height: calc(100vh - 88px); min-height: 500px; max-height: none; flex-direction: column; overflow: hidden; padding: 54px 3% 28px; }
.messages-page-panel #section-panel-content { display: flex; min-height: 0; flex: 1; flex-direction: column; overflow: hidden; }
.messages-page-panel .panel-close { top: 14px; left: 3%; }
.messages-page-header { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin: 0 0 20px; }
.messages-page-header .panel-kicker { margin-bottom: 5px; }
.messages-page-header .panel-title { margin: 0; }
.messages-header-actions { display: flex; align-items: center; gap: 8px; }
.new-message-trigger { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 15px; border: 1px solid var(--line); border-radius: 9px; color: var(--ink); background: var(--surface); font-size: 12px; font-weight: 700; }
.new-message-trigger:hover { border-color: #999; color: var(--blue); }
.new-message-trigger span { font-size: 17px; line-height: 1; }
.group-create-trigger { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 10px 13px; border: 1px solid #d6e3ff; border-radius: 9px; color: var(--blue); background: #f5f8ff; font-size: 12px; font-weight: 700; }
.group-create-trigger:hover { border-color: #999; background: #eee; }
.messages-layout { display: grid; min-height: 450px; flex: 1; grid-template-columns: minmax(260px, 350px) minmax(0, 1fr); gap: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 15px; background: var(--surface); }
.conversation-sidebar { display: flex; min-width: 0; flex-direction: column; overflow: hidden; border-right: 1px solid var(--line); }
.conversation-sidebar-heading { display: flex; align-items: center; justify-content: space-between; padding: 17px 18px 12px; }
.conversation-sidebar-heading strong { font-size: 13px; }
.conversation-sidebar-heading span { color: var(--muted); font-size: 10px; }
.conversation-search { display: flex; align-items: center; gap: 8px; margin: 0 14px 8px; padding: 0 11px; border: 1px solid var(--line); border-radius: 9px; color: var(--muted); background: var(--surface-soft); }
.conversation-search > span { font-size: 19px; }
.conversation-search input { width: 100%; min-width: 0; padding: 9px 0; border: 0; outline: 0; color: var(--ink); background: transparent; font: inherit; font-size: 11px; }
.conversation-search input::placeholder { color: var(--muted); }
.conversation-filters { display: flex; gap: 20px; padding: 7px 18px 0; border-bottom: 1px solid var(--line); }
.conversation-filter { position: relative; padding: 9px 0 11px; color: var(--muted); background: transparent; font-size: 11px; font-weight: 700; }
.conversation-filter.active { color: var(--blue); }
.conversation-filter.active::after { position: absolute; right: 0; bottom: -1px; left: 0; height: 2px; background: var(--blue); content: ""; }
.conversation-list { min-height: 0; flex: 1; overflow-y: auto; padding: 5px 7px 10px; border: 0; }
.conversation-item { display: flex; align-items: center; gap: 11px; padding: 11px; border: 0; border-radius: 10px; text-align: left; transition: background .16s ease; }
.conversation-item:hover, .conversation-item.active { background: var(--surface-soft); }
.conversation-avatar, .thread-avatar, .message-avatar { display: grid; flex: 0 0 auto; place-items: center; overflow: hidden; border-radius: 50%; color: #555; background: #eee; font-size: 11px; font-weight: 700; }
.conversation-avatar { width: 43px; height: 43px; }
.conversation-avatar img, .thread-avatar img, .message-avatar img { width: 100%; height: 100%; object-fit: cover; }
.conversation-item-copy { display: grid; min-width: 0; flex: 1; gap: 4px; }
.conversation-item-copy strong, .conversation-item-copy small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.conversation-item-copy strong { color: var(--ink); font-size: 11px; font-weight: 650; }
.conversation-item-copy small { color: var(--muted); font-size: 10px; }
.conversation-group-mark { color: var(--blue); font-size: 8px; letter-spacing: -3px; }
.conversation-empty { padding: 22px 16px; color: var(--muted); font-size: 11px; line-height: 1.6; text-align: center; }
.message-thread { position: relative; display: flex; min-width: 0; min-height: 0; flex-direction: column; overflow: hidden; }
.message-empty-state { display: flex; min-height: 100%; flex-direction: column; align-items: center; justify-content: center; padding: 32px; text-align: center; }
.message-empty-icon { display: grid; width: 64px; height: 64px; place-items: center; border: 2px solid var(--ink); border-radius: 50%; font-size: 27px; transform: rotate(-20deg); }
.message-empty-state h3 { margin: 17px 0 6px; font-size: 17px; }
.message-empty-state p { margin: 0 0 16px; color: var(--muted); font-size: 11px; }
.message-empty-compose { padding: 9px 13px; border-radius: 8px; font-size: 11px; }
.message-thread-header { display: flex; min-height: 67px; align-items: center; gap: 11px; padding: 10px 17px; border-bottom: 1px solid var(--line); }
.thread-avatar { width: 40px; height: 40px; }
.message-thread-header > div { display: grid; min-width: 0; flex: 1; gap: 4px; }
.message-thread-header strong { overflow: hidden; color: var(--ink); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.message-thread-header small { color: var(--muted); font-size: 10px; }
.thread-profile-trigger { display: flex; min-width: 0; flex: 1; align-items: center; gap: 11px; padding: 0; border-radius: 9px; background: transparent; text-align: left; }
.thread-profile-trigger > span:last-child { display: grid; min-width: 0; gap: 4px; }
.thread-profile-trigger:hover strong { text-decoration: underline; text-underline-offset: 3px; }
.thread-profile-trigger:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.thread-more-button { padding: 8px; color: var(--muted); background: transparent; letter-spacing: 2px; }
.group-management { position: absolute; z-index: 4; top: 72px; right: 14px; width: min(380px, calc(100% - 28px)); max-height: calc(100% - 145px); overflow: auto; padding: 17px; border: 1px solid var(--line); border-radius: 15px; background: var(--surface); box-shadow: 0 16px 45px rgba(20, 36, 56, .18); }
.group-management[hidden] { display: none; }
.group-management-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 13px; color: var(--ink); font-size: 13px; }
.group-management-close { padding: 2px 6px; color: var(--muted); background: transparent; font-size: 20px; }
.group-title-form, .group-add-member-form { display: flex; gap: 7px; margin: 0 0 12px; }
.group-title-form input, .group-add-member-form input { min-width: 0; flex: 1; padding: 9px 10px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); background: var(--surface); font: inherit; font-size: 11px; }
.group-title-form button, .group-add-member-form button { flex: 0 0 auto; padding: 8px 10px; border-radius: 8px; color: #fff; background: #3578d4; font-size: 10px; font-weight: 700; }
.group-cover-upload { display: block; margin-bottom: 14px; padding: 10px; border: 1px dashed #9bbde8; border-radius: 8px; color: #3578d4; cursor: pointer; font-size: 10px; font-weight: 700; text-align: center; }
.group-cover-upload input { display: none; }
.group-member-heading { margin: 12px 0 7px; color: var(--muted); font-size: 10px; font-weight: 700; }
.group-member-list { display: grid; gap: 4px; max-height: 270px; overflow-y: auto; margin-bottom: 12px; }
.group-member-item { display: flex; min-width: 0; align-items: center; gap: 8px; padding: 7px 5px; border-bottom: 1px solid var(--line); }
.group-member-avatar { display: grid; width: 32px; height: 32px; flex: 0 0 32px; place-items: center; overflow: hidden; border-radius: 50%; color: #555; background: #eee; font-size: 9px; font-weight: 700; }
.group-member-avatar img { width: 100%; height: 100%; object-fit: cover; }
.group-member-item > span:nth-child(2) { display: grid; min-width: 0; flex: 1; gap: 3px; }
.group-member-item strong { overflow: hidden; color: var(--ink); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.group-member-item small { color: #3578d4; font-size: 9px; }
.group-member-actions { display: flex; flex: 0 0 auto; gap: 4px; }
.group-member-actions button, .group-member-leave { padding: 6px 7px; border: 1px solid var(--line); border-radius: 7px; color: var(--ink); background: var(--surface); font-size: 9px; }
.group-member-actions .group-member-remove, .group-member-leave { color: #b33939; }
.group-admin-note { margin: 10px 0 0; color: var(--muted); font-size: 10px; line-height: 1.5; }
.message-list { display: flex; min-height: 0; flex: 1; flex-direction: column; gap: 9px; overflow-y: auto; padding: 18px; }
.message-row { display: flex; width: fit-content; max-width: min(85%, 640px); flex: 0 0 auto; align-items: flex-end; gap: 7px; }
.message-row.mine { align-self: flex-end; }
.message-avatar { width: 24px; height: 24px; font-size: 8px; }
.message-date-divider { align-self: center; margin: 7px 0 5px; padding: 5px 10px; border-radius: 20px; color: var(--muted); background: var(--surface-soft); font-size: 9px; font-weight: 700; }
.message-content { position: relative; display: grid; max-width: 100%; gap: 3px; }
.message { display: block; width: fit-content; max-width: 100%; padding: 10px 13px; border: 1px solid #d4e5fb; border-radius: 18px 18px 18px 5px; color: #243750; background: #eaf3ff; font-size: 12px; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; word-break: normal; }
.message-row.mine .message { border-color: transparent; border-radius: 18px 18px 5px 18px; color: #fff; background: linear-gradient(135deg, #4a8ce4, #3474cb); }
.message-media { display: block; width: min(280px, 100%); max-height: 320px; margin-top: 6px; border-radius: 11px; object-fit: cover; }
.message-media:first-child { margin-top: 0; }
.message-time { justify-self: end; color: var(--muted); font-size: 9px; }
.message-row:not(.mine) .message-time { justify-self: start; }
.message-reactions { position: relative; z-index: 1; order: 1; display: flex; flex-wrap: wrap; gap: 2px; margin: -11px 10px 0; justify-self: start; }
.message-row.mine .message-reactions { justify-self: end; }
.message-content > .message { order: 0; }
.message-content > .message-time { order: 2; }
.message-reactions[hidden] { display: none; }
.message-reaction { padding: 1px 5px; border: 2px solid var(--surface); border-radius: 20px; color: #355a88; background: #e3eefc; font-size: 11px; line-height: 1.3; box-shadow: 0 1px 3px rgba(20, 36, 56, .15); }
.message-reaction span { font-size: 9px; }
.message-reaction.reacted { background: #cfe3fb; }
.reaction-quick { display: flex; gap: 2px; align-items: center; }
.message-reaction-picker .reaction-more { font-size: 18px; font-weight: 700; color: #3578d4; background: var(--surface-soft); }
.reaction-all { display: grid; grid-template-columns: repeat(8, 1fr); gap: 2px; max-height: 150px; margin-top: 4px; overflow-y: auto; }
.reaction-all[hidden] { display: none; }
.message-reaction-picker { flex-direction: column; border-radius: 18px; }
.conversation-item[hidden] { display: none; }
.messages-layout { height: min(720px, calc(100vh - 230px)); min-height: 450px; }
.message-list { max-height: none; }
.message-form { margin: auto 15px 14px; }
.message-react-trigger { position: absolute; top: 0; right: -28px; width: 24px; height: 24px; padding: 0; border: 1px solid var(--line); border-radius: 50%; color: #66809f; background: var(--surface); opacity: 0; font-size: 14px; transition: opacity .15s ease; }
.message-row.mine .message-react-trigger { right: auto; left: -28px; }
.message-row:hover .message-react-trigger, .message-react-trigger:focus-visible { opacity: 1; }
.message-reaction-picker { position: absolute; z-index: 5; left: 0; right: auto; bottom: calc(100% + 6px); width: max-content; max-width: min(290px, 70vw); display: flex; gap: 2px; padding: 5px; border: 1px solid var(--line); border-radius: 22px; background: var(--surface); box-shadow: 0 7px 22px rgba(20, 36, 56, .14); }
.message-row.mine .message-reaction-picker { left: auto; right: 0; }
.composer-emoji-wrap { position: relative; display: flex; }
.message-form .composer-emoji-button { width: 29px; height: 29px; padding: 0; border-radius: 50%; color: #66809f; background: transparent; font-size: 18px; line-height: 1; }
.composer-emoji-panel { position: absolute; z-index: 6; right: -8px; bottom: calc(100% + 12px); display: grid; width: 288px; max-width: 80vw; max-height: 190px; grid-template-columns: repeat(8, 1fr); gap: 2px; overflow-y: auto; padding: 8px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); box-shadow: 0 7px 22px rgba(20, 36, 56, .18); }
.message-form .composer-emoji-panel button { width: auto; height: 32px; padding: 0; border-radius: 8px; background: transparent; font-size: 18px; }
.message-form .composer-emoji-panel button:hover { background: var(--surface-soft); }
.message-reaction-picker button { display: grid; width: 29px; height: 29px; place-items: center; border-radius: 50%; background: transparent; font-size: 17px; transition: background .15s ease, transform .15s ease; }
.message-reaction-picker button:hover { background: var(--surface-soft); transform: scale(1.15); }
.message-row.typing-row { max-width: min(85%, 640px); }
.typing-indicator { display: flex; min-height: 38px; align-items: center; gap: 9px; color: var(--muted); }
.typing-label { font-size: 10px; }
.typing-dots { display: inline-flex; align-items: center; gap: 3px; }
.typing-dots i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; animation: message-typing-bounce 1s infinite ease-in-out; }
.typing-dots i:nth-child(2) { animation-delay: .14s; }
.typing-dots i:nth-child(3) { animation-delay: .28s; }
@keyframes message-typing-bounce { 0%, 60%, 100% { opacity: .45; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-4px); } }
.message-form { align-items: center; margin: auto 15px 14px; padding: 5px 6px 5px 14px; width: auto; border: 1px solid var(--line); border-radius: 24px; background: var(--surface); }
.message-form input { padding: 8px 0; border: 0; outline: 0; color: var(--ink); background: transparent; font: inherit; font-size: 12px; }
.message-form input:focus { box-shadow: none; }
.message-form button { padding: 8px 13px; border-radius: 19px; color: #fff; background: #3578d4; font-size: 11px; font-weight: 700; }
.message-form button:disabled { cursor: wait; opacity: .6; }
.message-form .message-attach-button { width: 29px; height: 29px; flex: 0 0 29px; padding: 0; border-radius: 50%; color: #3578d4; background: #eaf3ff; font-size: 20px; line-height: 1; }
.message-form .message-text-input { flex: 1; }
@media (prefers-reduced-motion: reduce) { .typing-dots i { animation: none; } }
body.dark-mode .message { border-color: #294361; color: #e1edfb; background: #1c2d43; }
body.dark-mode .message-row.mine .message { color: #f6f9ff; background: linear-gradient(135deg, #396fae, #28568f); }
body.dark-mode .message-date-divider, body.dark-mode .message-reaction { border-color: #35465a; color: #c5d8ee; background: #202b39; }
body.dark-mode .message-reaction.reacted { border-color: #5487bd; background: #263f5a; }
body.dark-mode .message-react-trigger { border-color: #3a4756; color: #b6cce5; background: #20242a; }
body.dark-mode .message-reaction-picker, body.dark-mode .group-management { border-color: #3a414a; background: #20242a; }
body.dark-mode .group-title-form input, body.dark-mode .group-add-member-form input { border-color: #414955; color: var(--ink); background: #16191d; }
body.dark-mode .group-member-item strong, body.dark-mode .group-management-heading { color: var(--ink); }
body.dark-mode .group-member-actions button, body.dark-mode .group-member-leave { border-color: #414955; color: var(--ink); background: #24282e; }
body.dark-mode .group-member-actions .group-member-remove, body.dark-mode .group-member-leave { color: #f09b9b; }
body.dark-mode .message-form { border-color: #414955; background: #171a1f; }
body.dark-mode .message-form .message-attach-button { color: #b9d6f8; background: #25364b; }
.new-message-form { position: absolute; z-index: 2; top: 82px; right: 3%; display: grid; width: min(380px, 94%); gap: 13px; margin: 0; padding: 17px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); box-shadow: 0 18px 55px rgba(18, 33, 55, .2); }
.new-message-form[hidden] { display: none; }
.new-message-form-heading { display: flex; align-items: center; justify-content: space-between; padding-bottom: 9px; border-bottom: 1px solid var(--line); color: var(--ink); font-size: 13px; }
.new-message-cancel { color: var(--muted); background: transparent; font-size: 22px; line-height: 1; }
.new-message-form label { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 11px; }
.new-message-form label span { flex: 0 0 auto; }
.new-message-form input { min-width: 0; padding: 10px 2px; border: 0; border-bottom: 1px solid var(--line); outline: 0; color: var(--ink); background: transparent; font: inherit; font-size: 11px; }
.new-message-form input:focus { border-color: var(--blue); box-shadow: none; }
.new-message-form .first-message-input { width: 100%; }
.new-message-form .primary-button { justify-self: end; padding: 9px 14px; border-radius: 8px; font-size: 11px; }
.new-message-form .recipient-search-field { position: relative; }
.recipient-suggestions { position: absolute; z-index: 3; top: 126px; right: 17px; left: 17px; max-height: 220px; overflow-y: auto; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); box-shadow: 0 12px 32px rgba(18, 33, 55, .16); }
.recipient-suggestions[hidden] { display: none; }
.recipient-suggestion { display: flex; width: 100%; align-items: center; gap: 10px; padding: 9px 11px; background: transparent; text-align: left; }
.recipient-suggestion:hover { background: var(--surface-soft); }
.recipient-avatar { display: grid; width: 36px; height: 36px; flex: 0 0 auto; place-items: center; overflow: hidden; border-radius: 50%; color: #555; background: #eee; font-size: 10px; font-weight: 700; }
.recipient-avatar img { width: 100%; height: 100%; object-fit: cover; }
.recipient-suggestion > span:nth-child(2) { display: grid; min-width: 0; flex: 1; gap: 3px; }
.recipient-suggestion strong, .recipient-suggestion small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.recipient-suggestion strong { color: var(--ink); font-size: 11px; }
.recipient-suggestion small { color: var(--muted); font-size: 10px; }
.recipient-add-mark { color: var(--blue); font-size: 18px; }
.recipient-no-results { margin: 0; padding: 14px; color: var(--muted); font-size: 11px; text-align: center; }
.selected-recipients { display: flex; flex-wrap: wrap; gap: 6px; }
.recipient-chip { display: inline-flex; max-width: 100%; align-items: center; gap: 7px; padding: 5px 8px 5px 10px; border: 1px solid #d6e3ff; border-radius: 20px; color: #315eae; background: #f5f8ff; font-size: 10px; }
.recipient-chip button { padding: 0; color: inherit; background: transparent; font-size: 15px; line-height: 1; }
.group-title-field[hidden] { display: none; }
body.dark-mode .group-create-trigger { border-color: #444; color: #e5e5e5; background: #242424; }
body.dark-mode .group-create-trigger:hover, body.dark-mode .recipient-suggestion:hover { background: #303030; }
body.dark-mode .recipient-avatar { color: #e0e0e0; background: #303030; }
body.dark-mode .recipient-chip { border-color: #484848; color: #e5e5e5; background: #292929; }
body.dark-mode .conversation-avatar, body.dark-mode .thread-avatar, body.dark-mode .message-avatar { color: #e0e0e0; background: #303030; }
body.dark-mode { --blue: #c7c7c7; --purple: #aaa; --green: #999; scrollbar-color: #555 #171717; }
body.dark-mode .primary-button,
body.dark-mode .message-row.mine .message { color: #fff; background: #3c3c3c; box-shadow: 0 7px 16px rgba(0, 0, 0, .3); }
body.dark-mode .round-action,
body.dark-mode .round-action:hover { color: #fff; background: transparent; box-shadow: none; }
body.dark-mode .primary-button:hover { background: #505050; box-shadow: 0 10px 20px rgba(0, 0, 0, .38); }
body.dark-mode .nav-badge { color: #eee; background: #333; }
body.dark-mode .nav-badge.dot { background: #aaa; }
body.dark-mode .network-icon,
body.dark-mode .outline-button { border-color: #444; color: #ddd; background: #242424; }
body.dark-mode .orbit { border-color: #555; }
body.dark-mode .network-center,
body.dark-mode .network-node { border-color: #171717; filter: grayscale(1); }
body.dark-mode .timeline-dot.current { border-color: #aaa; background: #aaa; box-shadow: 0 0 0 4px #292929; }
body.dark-mode .timeline:before { background: #444; }
body.dark-mode .profile-edit-modal { width: min(900px, calc(100vw - 40px)); }
body.dark-mode .school-suggestions { border-color: var(--line); background: var(--surface); }
body.dark-mode .school-suggestion { color: var(--ink); }
body.dark-mode .school-suggestion:hover { background: #2b2b2b; }
body.dark-mode .school-search-wrap input { color: var(--ink); border-color: var(--line); background: var(--surface-soft); }
.education-level-primary, .education-level-high { border-color: #ddd; background: #f2f2f2; }
.education-level-middle, .education-level-university { border-color: #aaa; background: #e5e5e5; }
body.dark-mode .education-level-primary, body.dark-mode .education-level-high { border-color: #444; background: #242424; }
body.dark-mode .education-level-primary label, body.dark-mode .education-level-high label,
body.dark-mode .education-level-middle label, body.dark-mode .education-level-university label { color: #ddd; }
body.dark-mode .education-level-middle, body.dark-mode .education-level-university { border-color: #555; background: #191919; }
body.dark-mode .education-level-primary select, body.dark-mode .education-level-high select,
body.dark-mode .education-level-middle select, body.dark-mode .education-level-university select { border-color: #505050; color: #f2f2f2; background: #303030; }
body.dark-mode .education-level-middle select:disabled, body.dark-mode .education-level-university select:disabled { color: #aaa; background: #252525; }
body:not(.dark-mode) .nav-item:hover, body:not(.dark-mode) .nav-item.active { color: #222; background: #eee; }
body:not(.dark-mode) .nav-badge { color: #333; background: #e5e5e5; }
body:not(.dark-mode) .upgrade-card { background: linear-gradient(145deg, #f1f1f1, #fafafa); }
body:not(.dark-mode) .network-icon { color: #333; background: #eee; }
body:not(.dark-mode) .orbit { border-color: #ccc; }
body:not(.dark-mode) .network-center,
body:not(.dark-mode) .network-node { filter: grayscale(1); }
body:not(.dark-mode) .outline-button,
body:not(.dark-mode) .follow-button,
body:not(.dark-mode) .message-profile-button { border-color: #ddd; color: #333; background: #f4f4f4; }
body:not(.dark-mode) .connection-note { background: #f4f4f4; }
body:not(.dark-mode) .topic-tags span { color: #555; background: #eee; }
body:not(.dark-mode) .timeline-dot.current { border-color: #555; background: #555; box-shadow: 0 0 0 4px #eee; }
body:not(.dark-mode) .education-level-middle, body:not(.dark-mode) .education-level-university { border-color: #ddd; background: #e8e8e8; }
body:not(.dark-mode) .auth-modal .education-level-middle label, body:not(.dark-mode) .auth-modal .education-level-university label { color: #333; }
body:not(.dark-mode) .auth-modal .education-level-middle select, body:not(.dark-mode) .auth-modal .education-level-university select { border-color: #ccc; color: #222; background: #fff; }
.school-search-wrap { position: relative; min-width: 0; }
.school-search-wrap input { width: 100%; min-height: 39px; padding: 10px 12px; border: 1px solid #e3e8ef; border-radius: 8px; outline: 0; color: var(--ink); background: var(--surface); font: inherit; font-size: 12px; }
.school-search-wrap input:focus { border-color: #888; box-shadow: 0 0 0 3px rgba(0, 0, 0, .08); }
.school-search-wrap input:disabled { color: var(--muted); background: var(--surface-soft); cursor: not-allowed; }
.school-suggestions { position: absolute; z-index: 5; top: calc(100% + 4px); right: 0; left: 0; max-height: 220px; overflow-y: auto; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); box-shadow: var(--shadow); }
.school-suggestions[hidden] { display: none; }
.school-suggestion { display: block; width: 100%; padding: 10px 12px; color: var(--ink); background: transparent; text-align: left; font-size: 11px; line-height: 1.4; }
.school-suggestion:hover { background: #eee; }
.school-search-message { margin: 0; padding: 12px; color: var(--muted); font-size: 11px; }
.optional-field-note { color: var(--muted); font-size: 9px; font-weight: 400; }
.profile-edit-modal { width: min(900px, calc(100vw - 40px)); }
.profile-edit-modal .profile-education-fields { grid-template-columns: 1fr 1fr; gap: 16px; padding: 18px; }
.profile-edit-modal .education-level-group { padding: 15px; }
.profile-edit-modal .education-level-group > label { min-width: 0; }
.profile-edit-modal .school-search-wrap { min-width: 0; }
body.dark-mode .school-search-wrap input { border-color: var(--line); background: var(--surface-soft); }
body.dark-mode .school-suggestion:hover { background: #2b2b2b; }
body.dark-mode .school-search-wrap input:focus { border-color: #777; box-shadow: 0 0 0 3px rgba(255, 255, 255, .08); }
body.dark-mode .auth-modal .education-level-group label { color: #ddd; }
body.dark-mode .auth-modal .education-level-group select { border-color: #505050; color: #f2f2f2; background: #303030; }
body.dark-mode .theme-toggle:hover,
body.dark-mode .secondary-button:hover { color: #fff; border-color: #777; }
body.dark-mode .auth-modal input:focus,
body.dark-mode .auth-modal textarea:focus,
body.dark-mode .auth-modal select:focus { border-color: #777; box-shadow: 0 0 0 3px rgba(255, 255, 255, .08); }

.discover-page-panel .section-panel-inner { width: min(100%, 1040px); padding: 38px 4.5%; }
.discover-page-panel #section-panel-content { min-height: 100%; }
.discover-shell { width: min(100%, 900px); min-height: 430px; margin: 40px auto 0; padding: 35px 7% 48px; border: 1px solid #727272; border-radius: 44px; background-color: var(--surface); background-image: radial-gradient(circle, rgba(120, 120, 120, .18) .8px, transparent 1px); background-size: 18px 18px; }
.discover-heading { margin: 0 0 38px; padding-left: 5%; }
.discover-heading h2 { margin: 0; color: var(--ink); font-family: "DM Sans", sans-serif; font-size: 25px; font-weight: 500; letter-spacing: -.8px; }
.discover-heading p { margin: 10px 0 0; color: var(--text-soft); font-size: 12px; }
.discover-columns { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(24px, 6vw, 76px); padding: 0 5%; }
.discover-column { min-width: 0; }
.discover-column h3 { display: flex; align-items: center; gap: 9px; margin: 0 0 18px 44px; color: var(--ink); font-size: 12px; font-weight: 600; letter-spacing: .3px; }
.discover-count { color: var(--muted); font-size: 10px; font-weight: 500; }
.discover-tabs { display: flex; gap: 8px; margin: 0 0 13px 44px; padding-bottom: 7px; border-bottom: 1px solid rgba(120, 120, 120, .18); }
.discover-tab { position: relative; padding: 9px 14px 12px; border: 0; border-radius: 0; color: var(--muted); background: transparent; font-size: 12px; font-weight: 600; transition: color .16s ease; }
.discover-tab:hover { color: var(--ink); background: transparent; }
.discover-tab.active { color: var(--ink); background: transparent; }
.discover-tab.active::after { position: absolute; right: 14px; bottom: 4px; left: 14px; height: 2px; border-radius: 2px; background: #fff; content: ""; }
.discover-tab:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.discover-follow-button:focus-visible { outline: 2px solid #53bfe7; outline-offset: 2px; }
.discover-list { display: grid; gap: 18px; }
.discover-person-card { min-width: 0; padding: 0 0 14px; border-bottom: 1px solid rgba(120, 120, 120, .18); }
.discover-person-profile { display: flex; width: 100%; min-width: 0; align-items: center; gap: 10px; padding: 0; color: var(--ink); background: transparent; text-align: left; }
.discover-avatar { display: grid; width: 40px; height: 40px; flex: 0 0 40px; place-items: center; overflow: hidden; border-radius: 50%; color: #fff; background: #53bfe7; font-size: 14px; font-weight: 700; }
.discover-avatar img { width: 100%; height: 100%; object-fit: cover; }
.discover-person-copy { display: grid; min-width: 0; gap: 3px; }
.discover-person-copy strong { overflow: hidden; color: var(--ink); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.discover-person-copy small { display: -webkit-box; overflow: hidden; color: var(--muted); font-size: 10px; line-height: 1.35; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.discover-connection { margin: 9px 0 8px 50px; }
.discover-connection span { display: block; color: var(--muted); font-size: 9px; font-weight: 700; letter-spacing: .55px; }
.discover-connection p { margin: 3px 0 0; color: var(--text-soft); font-size: 10px; line-height: 1.4; }
.discover-actions { display: flex; gap: 9px; margin-left: 50px; }
.discover-follow-button { min-height: 28px; padding: 0 12px; border: 1px solid rgba(83, 191, 231, .42); border-radius: 8px; color: #1685ad; background: rgba(83, 191, 231, .1); font-size: 10px; font-weight: 700; transition: transform .16s ease, background .16s ease, opacity .16s ease; }
.discover-follow-button:hover:not(:disabled) { transform: translateY(-1px); background: rgba(83, 191, 231, .18); }
.discover-follow-button:disabled { cursor: default; opacity: .68; }
.discover-action { display: grid; width: 23px; height: 23px; place-items: center; padding: 0; border-radius: 5px; color: #fff; font-size: 17px; font-weight: 600; line-height: 1; transition: transform .16s ease, opacity .16s ease; }
.discover-action:hover:not(:disabled) { transform: translateY(-1px) scale(1.06); }
.discover-action:disabled { cursor: default; opacity: .75; }
.discover-action-accept { background: #59bd72; }
.discover-action-reject { background: #e9574e; }
.discover-empty { margin: 0; padding: 12px 0; color: var(--muted); font-size: 11px; line-height: 1.6; }
body.dark-mode .discover-shell { border-color: #555; background-color: #111; background-image: radial-gradient(circle, rgba(200, 200, 200, .12) .8px, transparent 1px); }
body.dark-mode .discover-heading p, body.dark-mode .discover-connection p { color: #b5b5b5; }
body.dark-mode .discover-person-card { border-color: rgba(200, 200, 200, .15); }
body.dark-mode .discover-tab.active { color: var(--ink); background: transparent; }
body.dark-mode .discover-follow-button { border-color: rgba(83, 191, 231, .4); color: #75d4f4; background: rgba(83, 191, 231, .14); }
@media (max-width: 640px) {
  .discover-page-panel .section-panel-inner { padding: 38px 14px 18px; }
  .discover-shell { min-height: calc(100vh - 150px); padding: 28px 20px; border-radius: 28px; }
  .discover-heading { margin-bottom: 30px; padding-left: 0; }
  .discover-heading h2 { font-size: 22px; }
  .discover-columns { grid-template-columns: 1fr; gap: 30px; padding: 0; }
  .discover-column h3 { margin-left: 0; }
  .discover-tabs { margin-left: 0; }
  .discover-list { gap: 14px; }
}

@media (max-width: 840px) {
  .messages-page-panel .section-panel-inner { height: calc(100vh - 70px); min-height: 500px; padding: 52px 20px 20px; }
  .messages-page-panel .panel-close { left: 20px; }
  .messages-layout { min-height: 420px; grid-template-columns: minmax(220px, 38%) minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .messages-page-panel .section-panel-inner { height: auto; min-height: max(600px, calc(100vh - 70px)); overflow: visible; padding: 50px 12px 12px; }
  .messages-page-panel #section-panel-content { overflow: visible; }
  .messages-page-panel .panel-close { left: 12px; }
  .messages-page-header { margin-bottom: 12px; }
  .messages-page-header .panel-title { font-size: 21px; }
  .messages-header-actions { gap: 5px; }
  .new-message-trigger, .group-create-trigger { gap: 4px; padding: 9px 8px; font-size: 9px; }
  .messages-layout { min-height: 0; grid-template-columns: 1fr; grid-template-rows: minmax(170px, 34vh) minmax(330px, 1fr); }
  .conversation-sidebar { border-right: 0; border-bottom: 1px solid var(--line); }
  .conversation-sidebar-heading { padding: 11px 13px 8px; }
  .conversation-search { margin: 0 11px 5px; }
  .conversation-filters { padding-left: 13px; }
  .conversation-list { display: flex; gap: 3px; overflow: auto; scrollbar-width: none; }
  .conversation-list::-webkit-scrollbar { display: none; }
  .conversation-item { width: 230px; min-width: 200px; }
  .message-empty-state { min-height: 330px; }
  .message-list { padding: 13px; }
  .message-form { margin: 0 9px 5px; }
  .message-react-trigger { opacity: .85; }
  .group-management { right: 7px; width: calc(100% - 14px); }
  .group-member-actions { flex-direction: column; }
  .new-message-form { top: 76px; right: 12px; }
  .profile-edit-modal { width: min(100%, calc(100vw - 28px)); max-height: calc(100vh - 28px); padding: 24px 18px; }
  .profile-edit-modal .profile-education-fields { grid-template-columns: 1fr; padding: 12px; }
  .profile-edit-modal .education-level-group { grid-template-columns: 1fr; padding: 12px; }
}

@media (max-width: 560px) {
  .yearbook-page-panel .section-panel-inner { padding: 18px 14px 30px; }
  .yearbook-page-panel .panel-close { margin-left: 4px; }
  .yearbook-shell { min-height: calc(100vh - 140px); padding: 30px 18px; }
  .yearbook-heading { margin-bottom: 28px; }
  .yearbook-shelf { grid-template-columns: 1fr; gap: 22px; }
  .yearbook-person { flex-wrap: wrap; }
  .yearbook-person-actions { margin-left: 54px; }
}
@media (max-width: 640px) {
  .mentorship-page-panel .section-panel-inner { padding: 24px 14px; }
  .mentorship-shell { min-height: calc(100vh - 140px); padding: 28px 18px; border-radius: 24px; }
  .mentorship-heading { margin-bottom: 28px; }
  .mentorship-form-card { padding: 22px 18px; }
  .mentorship-form { grid-template-columns: 1fr; }
  .mentorship-form > label, .mentorship-form .mentorship-barcode-field { grid-column: 1; }
  .album-page-panel .section-panel-inner { padding: 18px 12px; }
  .album-page-panel #section-panel-content { min-height: calc(100vh - 72px); padding: 24px 16px; border-radius: 22px; }
  .album-heading { margin-bottom: 24px; }
  .album-heading .panel-title { font-size: 24px; }
  .album-heading .panel-subtitle { font-size: 11px; }
  .album-photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .yearbook-album { padding: 13px; }
  .yearbook-album-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .album-shell { min-height: calc(100vh - 230px); padding: 28px 16px; }
  .album-add-form { grid-template-columns: 1fr; padding: 12px; }
  .album-form-actions { grid-column: 1; }
}
.picker-wrap { position: relative; display: block; }
.school-suggestion small { color: var(--muted); }
.school-search-message { margin: 0; padding: 10px 12px; color: var(--muted); font-size: 11px; }
.mentor-directory { width: min(620px, 100%); margin: 26px auto 0; }
.mentor-directory h3 { margin: 0 0 10px; font-size: 15px; }
.mentor-search { width: 100%; min-height: 42px; margin-bottom: 10px; padding: 0 13px; border: 1px solid var(--line); border-radius: 10px; outline: 0; color: var(--ink); background: var(--surface); font: inherit; font-size: 12px; }
.mentor-list { display: grid; gap: 8px; }
.mentor-card { display: flex; align-items: center; gap: 11px; padding: 11px 13px; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); background: var(--surface); text-align: left; transition: transform .15s ease, box-shadow .15s ease; }
.mentor-card:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(20, 36, 56, .08); }
.mentor-card span { display: grid; min-width: 0; flex: 1; gap: 3px; }
.mentor-card strong { font-size: 12px; }
.mentor-card small { overflow: hidden; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.mentor-card em { padding: 3px 8px; border-radius: 20px; color: #3578d4; background: #eaf3ff; font-size: 9px; font-style: normal; font-weight: 700; }
.mentor-avatar { width: 36px; height: 36px; }
.mentor-empty { margin: 0; padding: 14px; color: var(--muted); font-size: 12px; text-align: center; }
.mentor-badge { margin-left: 8px; padding: 3px 8px; border-radius: 20px; color: #3578d4; background: #eaf3ff; font-size: 10px; font-weight: 700; vertical-align: middle; }
.report-dialog-backdrop { position: fixed; z-index: 1000; inset: 0; display: grid; place-items: center; background: rgba(15, 23, 35, .45); }
.report-dialog { display: grid; width: min(320px, 90vw); gap: 7px; padding: 18px; border-radius: 16px; background: var(--surface); box-shadow: 0 20px 60px rgba(0, 0, 0, .25); }
.report-dialog h3 { margin: 0 0 6px; color: var(--ink); font-size: 14px; }
.report-dialog button { padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); background: var(--surface); font-size: 12px; text-align: left; }
.report-dialog button:hover { background: var(--surface-soft); }
.report-dialog .report-dialog-cancel { color: var(--muted); text-align: center; }
body.dark-mode .mentor-card em, body.dark-mode .mentor-badge { color: #8ebcff; background: #22364f; }
