:root {
  color-scheme: light;
  --blue: #315f91;
  --blue-dark: #234c78;
  --blue-light: #e9f0f7;
  --ink: #253342;
  --muted: #758493;
  --line: #d9e0e7;
  --paper: #fff;
  --bg: #eef1f4;
  --accent: #e05a47;
  --font-sans: "Segoe UI Variable Text", "Segoe UI", Inter, Tahoma, Arial, sans-serif;
  --font-display: Georgia, "Times New Roman", serif;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --blue: #6f9fce;
  --blue-dark: #4f7fab;
  --blue-light: #15212c;
  --ink: #e8edf2;
  --muted: #909ba5;
  --line: #272e35;
  --paper: #101419;
  --bg: #07090c;
  --accent: #ed6a5a;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font-sans); color: var(--ink); background: var(--bg); font-size: 13px; line-height: 1.45; font-optical-sizing: auto; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; transition: color .18s ease, background-color .18s ease; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, a:focus-visible { outline: 2px solid #79a8d5; outline-offset: 2px; }
.hidden { display: none !important; }
.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ui-icon { width: 16px; height: 16px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; vertical-align: -3px; }
button .ui-icon, a .ui-icon { margin-right: 5px; }

.topbar { height: 54px; background: var(--blue); border-bottom: 1px solid #1e446d; color: #fff; }
.topbar-inner { width: min(1140px, calc(100% - 32px)); height: 100%; margin: auto; display: flex; align-items: center; }
.brand { color: white; font-family: var(--font-display); font-size: 27px; font-weight: 700; letter-spacing: -1.35px; text-decoration: none; }
.brand span { color: #9fc4e7; }
.topbar-note { margin-left: 18px; padding-left: 18px; border-left: 1px solid #7394b5; color: #dbe8f4; font-size: 11px; letter-spacing: .6px; text-transform: uppercase; }

.login-screen { min-height: 100vh; background: #f5f4f0; display: flex; flex-direction: column; }
.login-main { width: min(990px, calc(100% - 40px)); margin: auto; display: grid; grid-template-columns: 1.25fr .75fr; gap: 100px; align-items: center; padding: 70px 0; }
.eyebrow { color: var(--blue); font-size: 11px; font-weight: bold; letter-spacing: 2px; }
.intro h1 { font: 700 52px/1.06 var(--font-display); margin: 16px 0 22px; color: #24384b; letter-spacing: -1.7px; }
.intro-copy { max-width: 520px; font: 400 17px/1.65 var(--font-display); color: #65717d; }
.feature-list { margin-top: 42px; border-top: 1px solid #d8d6ce; }
.feature-list > div { display: flex; gap: 18px; align-items: center; border-bottom: 1px solid #d8d6ce; padding: 16px 2px; }
.feature-list span { font: bold 12px Georgia, serif; color: #98a0a6; }
.feature-list p { margin: 0; line-height: 1.6; color: #6c747a; }
.feature-list b { color: #344454; }
.login-card { background: #fff; border: 1px solid #d5d8da; box-shadow: 0 8px 30px rgba(35,55,75,.08); }
.card-title { background: #f6f7f8; border-bottom: 1px solid #d9dddf; padding: 15px 20px; font-size: 11px; font-weight: bold; letter-spacing: 1px; }
.status-dot, .live-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #67a467; margin-right: 8px; }
.login-card form { padding: 24px 24px 18px; }
.login-card label { display: block; margin: 0 0 7px; color: #435362; font-weight: bold; font-size: 12px; }
.login-card input, .login-card select { width: 100%; border: 1px solid #bcc7d0; padding: 11px 12px; outline: 0; background: #fbfcfd; margin-bottom: 16px; color: #435362; }
.login-card input:focus, .login-card select:focus { border-color: var(--blue); box-shadow: 0 0 0 2px #dfeaf4; }
.field-hint { color: #8c969e; font-size: 10px; margin: -10px 0 20px; }
.error { color: #b53b31; min-height: 15px; margin: -6px 0 8px; font-size: 11px; }
.primary-btn { width: 100%; border: 1px solid #244e78; background: linear-gradient(#4679aa, #315f91); color: white; font-weight: bold; padding: 11px; box-shadow: inset 0 1px rgba(255,255,255,.22); }
.primary-btn:hover { background: var(--blue-dark); }
.text-btn { display: block; margin: 16px auto 0; border: 0; background: none; color: var(--blue); font-size: 11px; }
.secure-note { border-top: 1px solid #e2e5e7; padding: 13px 20px; text-align: center; color: #8b949b; font-size: 10px; background: #fafbfb; }
.otp-form { padding-top: 20px !important; }
.back-btn { border: 0; background: none; color: #6684a0; padding: 0; margin-bottom: 19px; font-size: 10px; }
.otp-heading { color: #30485e; font: bold 22px Georgia, serif; margin-bottom: 7px; }
.otp-copy { color: #7a8791; font-size: 10px; line-height: 1.55; margin: 0 0 20px; }
.otp-copy strong { color: #465e72; overflow-wrap: anywhere; }
.login-card .otp-input { text-align: center; font: bold 24px/1 Georgia, serif; letter-spacing: 8px; padding-left: 20px; }
.otp-bottom { display: flex; justify-content: space-between; align-items: center; margin-top: 14px; }
.otp-bottom .text-btn { margin: 0; }
.otp-bottom span { color: #8a969f; font-size: 10px; }
.demo-code { margin-top: 17px; padding: 9px; border: 1px dashed #d3c9af; background: #fbf8ef; color: #8c7950; text-align: center; font-size: 9px; }
.registration-form { padding-top: 20px !important; }
.registration-name-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.registration-name-grid label { min-width: 0; }
.registration-name-grid label span { display: block; margin-bottom: 7px; }
.registration-note { margin: 12px 0 0; color: #8a959e; text-align: center; font-size: 9px; }
.corporate-mail-help { border-top: 1px solid #d8dfea; background: #f7f7f7; color: #555; }
.corporate-mail-help summary { position: relative; padding: 11px 36px 11px 20px; color: #3b5998; font-size: 11px; font-weight: bold; cursor: pointer; list-style: none; }
.corporate-mail-help summary::-webkit-details-marker { display: none; }
.corporate-mail-help summary::after { content: '+'; position: absolute; top: 8px; right: 20px; color: #627aad; font-size: 16px; line-height: 1; }
.corporate-mail-help[open] summary::after { content: '−'; }
.corporate-mail-help summary:hover { background: #eceff5; text-decoration: underline; }
.corporate-mail-help-content { padding: 0 20px 14px; border-top: 1px solid #d8dfea; font-size: 10px; line-height: 1.55; }
.corporate-mail-help-content ol { margin: 11px 0 9px; padding-left: 18px; }
.corporate-mail-help-content li + li { margin-top: 6px; }
.corporate-mail-help-content a { color: #3b5998; font-weight: bold; }
.corporate-mail-help-content p { margin: 9px 0 0; padding: 8px 9px; border: 1px solid #d8dfea; background: #fff; color: #666; }
.nickname-input { display: flex; align-items: center; border: 1px solid #bcc7d0; background: #fbfcfd; margin-bottom: 5px; }
.nickname-input:focus-within { border-color: var(--blue); box-shadow: 0 0 0 2px #dfeaf4; }
.nickname-input > span { padding-left: 11px; color: #6b7e8e; font-weight: bold; }
.login-card .nickname-input input { margin: 0; border: 0; box-shadow: none; background: transparent; }
.nickname-hint { margin: 0 0 16px; color: #8c969e; font-size: 9px; line-height: 1.45; }
.login-footer { width: min(990px, calc(100% - 40px)); margin: auto auto 0; padding: 22px 0; border-top: 1px solid #dddcd6; color: #999b9c; font-size: 10px; letter-spacing: 1px; }

.app-topbar { gap: 38px; }
.search-box { width: 310px; height: 30px; display: flex; align-items: center; background: #244d77; border: 1px solid #1e4369; }
.search-box button { width: 34px; height: 100%; display: grid; place-items: center; border: 0; background: transparent; color: #b6cbe0; padding: 0; }
.search-box button:hover { color: #fff; background: rgba(255,255,255,.08); }
.search-box button .ui-icon { width: 15px; height: 15px; margin: 0; }
.search-box input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: white; }
.search-box input::-webkit-search-cancel-button { filter: invert(1); opacity: .65; }
.search-box input::placeholder { color: #aac2da; }
.header-nav { position: relative; margin-left: auto; display: flex; align-items: center; gap: 5px; }
.header-nav button { position: relative; border: 0; background: transparent; color: #dce9f5; padding: 9px; }
.badge { position: absolute; right: 2px; top: 1px; color: white; background: var(--accent); border-radius: 8px; padding: 1px 4px; font-size: 9px; }
.header-nav .mini-avatar { width: 31px; height: 31px; padding: 0; margin-left: 9px; border-radius: 2px; background: #d8c3aa; color: #544536; font-weight: bold; font-size: 10px; }
.notification-panel { position: absolute; z-index: 30; top: 45px; right: 76px; width: 350px; overflow: hidden; border: 1px solid #bdc9d3; background: #fff; color: #354b5e; box-shadow: 0 14px 45px rgba(25,39,52,.24); }
.notification-panel > header { display: flex; justify-content: space-between; align-items: center; padding: 12px 13px; border-bottom: 1px solid #e1e6ea; background: #f7f9fa; }
.notification-panel > header b, .notification-panel > header span { display: block; }
.notification-panel > header b { font: 700 15px var(--font-display); color: #30485e; }
.notification-panel > header span { margin-top: 2px; color: #8a959e; font-size: 8px; }
.header-nav .notification-panel > header button { padding: 3px; color: #456f94; font-size: 8px; }
.notification-list { max-height: 390px; overflow-y: auto; }
.header-nav .notification-item { position: relative; width: 100%; display: grid; grid-template-columns: 34px 1fr; gap: 9px; border: 0; border-bottom: 1px solid #edf0f2; background: #fff; padding: 11px 13px; color: #43586a; text-align: left; }
.header-nav .notification-item:hover { background: #f5f8fa; }
.header-nav .notification-item.unread { background: #f0f6fb; }
.header-nav .notification-item.unread::after { content: ''; position: absolute; right: 10px; top: 14px; width: 6px; height: 6px; border-radius: 50%; background: var(--blue); }
.notification-kind { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: #e7eef4; color: #537da2; }
.notification-kind .ui-icon { width: 15px; height: 15px; margin: 0; }
.notification-lesson { background: #e9f1e3; color: #62824f; }
.notification-copy { min-width: 0; padding-right: 8px; }
.notification-copy b, .notification-copy span, .notification-copy small { display: block; }
.notification-copy b { color: #365b7c; font-size: 10px; line-height: 1.35; }
.notification-copy span { margin-top: 3px; color: #657583; font-size: 9px; line-height: 1.4; }
.notification-copy small { margin-top: 5px; color: #9aa3aa; font-size: 7px; }
.notification-settings-link { display: flex; align-items: center; justify-content: center; gap: 3px; padding: 10px; color: #527ba0; background: #fafbfc; text-decoration: none; font-size: 8px; }
.notification-settings-link .ui-icon { width: 13px; height: 13px; }
.notification-settings { border-top: 1px solid #e3e8ec; background: #fafbfc; }
.mention-notification-setting { display: flex; align-items: center; gap: 7px; padding: 10px 12px 7px; color: #536b7e; font-size: 8px; cursor: pointer; }
.mention-notification-setting input { margin: 0; accent-color: var(--blue); }
.notification-empty { display: grid; place-items: center; gap: 5px; padding: 34px 20px; color: #909ba4; text-align: center; }
.notification-empty .ui-icon { width: 23px; height: 23px; }
.notification-empty b { color: #53687a; font-size: 10px; }
.notification-empty span { font-size: 8px; }

.layout { width: min(1140px, calc(100% - 32px)); margin: 0 auto; display: grid; grid-template-columns: 205px minmax(420px, 1fr) 265px; gap: 18px; align-items: start; }
.left-sidebar { padding-top: 22px; }
.profile-summary { display: flex; align-items: center; gap: 11px; padding: 0 8px 18px; }
.avatar { width: 54px; height: 54px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 2px; background: #c6af91; color: #4e4236; font-weight: bold; font-family: Georgia, serif; font-size: 16px; border: 1px solid #b9a485; }
.profile-summary strong, .profile-summary small { display: block; }
.profile-summary strong { font-size: 12px; margin-bottom: 5px; }
.profile-summary small { font-size: 10px; color: var(--muted); }
.side-nav a { display: flex; align-items: center; gap: 10px; height: 33px; padding: 0 9px; color: #40556a; text-decoration: none; border-radius: 2px; }
.side-nav a:hover, .side-nav a.active { background: #dfe8f1; color: #274f79; }
.side-nav a.active { font-weight: bold; border-left: 3px solid var(--blue); padding-left: 6px; }
.side-nav a span { width: 17px; text-align: center; color: #527aa1; font-size: 15px; }
.side-nav a b { margin-left: auto; border-radius: 9px; background: #6f91b2; color: white; font-size: 9px; padding: 1px 5px; }
.side-nav a .side-nav-badge { width: auto; min-width: 14px; margin-left: auto; border-radius: 9px; background: #9a554d; color: #fff; padding: 1px 5px; font-size: 8px; line-height: 14px; }
.side-nav a .side-nav-badge:empty { display: none; }
.sidebar-divider { height: 1px; background: #d9dfe4; margin: 18px 9px; }
.side-label { padding: 0 9px; color: #8b959d; font-size: 9px; font-weight: bold; letter-spacing: .8px; }
.community-link { display: flex; gap: 9px; align-items: center; padding: 7px 9px; text-decoration: none; color: #40556a; font-size: 11px; }
.community-link small { display: block; color: #8a949d; font-size: 9px; margin-top: 3px; }
.community-icon { width: 29px; height: 29px; display: grid; place-items: center; color: white; border-radius: 2px; font-style: normal; font-weight: bold; }
.community-icon.code { background: #446b8e; }.community-icon.music { background: #9b6c5e; }

.feed { padding-top: 18px; min-width: 0; }
.panel { background: var(--paper); border: 1px solid #d5dce2; box-shadow: 0 1px 1px rgba(0,0,0,.025); }
.composer { padding: 14px; }
.composer-row { display: flex; gap: 11px; }
.avatar.small { width: 38px; height: 38px; font-size: 11px; }
.composer textarea { width: 100%; resize: none; border: 1px solid #c8d1d9; padding: 10px; outline: none; min-height: 54px; }
.composer textarea:focus { border-color: #7795b2; }
.composer-actions { display: flex; justify-content: space-between; align-items: center; margin: 10px 0 0 49px; }
.composer-actions button { border: 0; background: none; color: #66819a; font-size: 10px; margin-right: 7px; }
.composer-actions .publish-btn { color: white; background: var(--blue); border: 1px solid #28527c; padding: 7px 15px; font-weight: bold; margin: 0; }
.feed-tabs { display: flex; border-bottom: 1px solid #ced6dd; margin: 14px 0; }
.feed-tabs button { border: 0; border-bottom: 2px solid transparent; padding: 10px 14px; background: none; color: #758491; font-size: 11px; }
.feed-tabs button.active { color: #315f91; border-color: #315f91; font-weight: bold; }
.post { margin-bottom: 13px; padding: 15px; }
.post-header { display: flex; gap: 10px; align-items: center; }
.post-header .avatar { width: 42px; height: 42px; font-size: 11px; }
.post-author { display: block; color: #315f91; font-weight: bold; font-size: 12px; }
.post-author { border: 0; background: none; padding: 0; text-align: left; cursor: pointer; }
.post-meta { display: block; color: #929ca5; font-size: 9px; margin-top: 4px; }
.post-menu { margin-left: auto; color: #91a0ad; border: 0; background: none; }
.post-body { margin: 13px 0 14px 52px; font-size: 12px; line-height: 1.65; }
.mention-link { border: 0; background: none; color: var(--blue); padding: 0; font: inherit; font-weight: 650; }
.mention-link:hover { text-decoration: underline; }
.post-media { margin: 0 0 14px 52px; min-height: 150px; display: grid; place-items: center; color: white; background: linear-gradient(135deg,#294c6b,#6788a3); border: 1px solid #294a66; font: bold 25px Georgia,serif; text-align: center; padding: 30px; }
.post-actions { border-top: 1px solid #edf0f2; padding: 10px 0 0 52px; display: flex; gap: 20px; }
.post-actions button { border: 0; background: none; color: #718394; font-size: 10px; padding: 0; }
.post-actions button.liked { color: #b94c42; font-weight: bold; }
.post-actions button.upvoted { color: #315f91; font-weight: bold; }
.feed-intro { display: flex; justify-content: space-between; align-items: center; padding: 2px 2px 13px; }
.feed-intro b, .feed-intro span { display: block; }
.feed-intro b { color: #405b74; font-size: 10px; letter-spacing: .7px; }
.feed-intro div span { color: #89949c; font-size: 9px; margin-top: 4px; }
.feed-intro .recommendation-note { color: #6d8497; font-size: 8px; }
.public-feed-rule { margin: -4px 0 12px; padding: 9px 11px; border: 1px solid #d9e1e7; background: #f7f9fa; color: #7c8993; font-size: 9px; line-height: 1.5; }
.public-note { color: #8a959e; font-size: 9px; }
.wall-profile { margin-bottom: 12px; overflow: hidden; }
.wall-cover { height: 132px; background: linear-gradient(135deg, #446b8e, #88a2b8); border-bottom: 1px solid #3d627f; background-size: cover; background-position: center; }
.wall-cover.has-profile-banner { height: 170px; }
.wall-profile-main { display: flex; gap: 14px; align-items: flex-end; padding: 0 18px 17px; margin-top: -28px; }
.wall-profile-avatar { width: 88px; height: 88px; display: grid; place-items: center; flex: 0 0 auto; background: #c6af91; border: 4px solid #fff; box-shadow: 0 0 0 1px #c7d0d8; color: #4e4236; font: bold 20px Georgia, serif; background-size: cover; background-position: center; }
.has-profile-image { background-size: cover !important; background-position: center !important; color: transparent !important; }
.wall-profile-info { padding-bottom: 2px; }
.wall-profile-info h1 { margin: 0 0 5px; color: #2f465b; font: bold 21px Georgia, serif; }
.wall-profile-info p { margin: 0; color: #7e8b95; font-size: 9px; }
.wall-nickname { display: block; margin: -1px 0 5px; color: #5f7d98; font-size: 10px; }
.wall-profile-stats { margin-left: auto; display: flex; gap: 18px; padding-bottom: 3px; text-align: center; }
.wall-profile-stats b, .wall-profile-stats span { display: block; }
.wall-profile-stats b { color: #355f83; font: bold 16px Georgia, serif; }
.wall-profile-stats span { color: #8a959d; font-size: 8px; margin-top: 3px; }
.edit-profile-btn { align-self: flex-end; flex: 0 0 auto; border: 1px solid #9eb0bf; background: #f7f9fa; color: #3d668b; padding: 7px 10px; font-size: 9px; }
.profile-details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding: 0 18px 18px; }
.profile-detail-card { min-width: 0; padding: 12px; border: 1px solid #e0e5e9; background: #fafbfc; }
.profile-detail-card > span { display: block; color: #86929b; font-size: 8px; font-weight: bold; letter-spacing: .7px; margin-bottom: 8px; }
.profile-detail-card p { margin: 0; color: #4e6172; font-size: 10px; line-height: 1.55; white-space: pre-wrap; }
.profile-about { grid-column: 1 / -1; }
.profile-favorites { align-self: start; }
.favorite-items { display: flex; flex-direction: column; gap: 6px; }
.favorite-item { min-width: 0; display: flex; align-items: center; gap: 8px; border: 1px solid #e0e5e9; background: white; padding: 7px; color: #40586c; text-decoration: none; font-size: 9px; }
a.favorite-item:hover { border-color: #a9bac8; background: #f7fafc; }
.favorite-item strong { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.favorite-open { margin-left: auto; color: #7790a6; }
.integration-badge { flex: 0 0 auto; min-width: 54px; border-radius: 2px; padding: 4px 6px; color: white; text-align: center; font-size: 7px; font-weight: bold; }
.integration-imdb { color: #201f1b; background: #f5c518; }
.integration-kinopoisk { background: #f36f21; }
.integration-spotify { background: #1db954; }
.integration-yandex-music { background: linear-gradient(135deg, #ffcc00, #ff3767); }
.integration-metacritic { background: #315d8a; }
.hobby-badge { background: #7b8790; }
.profile-details-empty { margin: 0 18px 18px; padding: 13px; border: 1px dashed #cdd6dd; color: #89959e; background: #fafbfc; font-size: 9px; text-align: center; }
.wall-heading { display: flex; justify-content: space-between; padding: 12px 2px 8px; color: #6c7d8b; font-size: 9px; letter-spacing: .5px; }
.post-comments { margin: 10px 0 0 52px; border-top: 1px solid #edf0f2; padding-top: 3px; }
.comment { display: flex; gap: 8px; padding: 9px 0; border-bottom: 1px solid #f0f2f4; }
.comment-avatar { width: 27px; height: 27px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 2px; background: #dce4eb; color: #526e86; font-size: 8px; font-weight: bold; }
.comment-body { min-width: 0; font-size: 10px; line-height: 1.45; }
.comment-body b { color: #3f678b; font-size: 9px; margin-right: 5px; }
.comment-author i { color: #8296a7; font-size: 8px; font-style: normal; font-weight: 400; }
.comment-body span { color: #4e5f6e; overflow-wrap: anywhere; }
.comment-body small { display: block; color: #97a0a8; font-size: 7px; margin-top: 3px; }
.comment-form { display: flex; gap: 7px; padding-top: 9px; }
.comment-form input { flex: 1; min-width: 0; border: 1px solid #ccd4db; padding: 7px 8px; outline: 0; font-size: 9px; }
.comment-form input:focus { border-color: #7895ae; }
.comment-form button { border: 1px solid #b7c5d0; background: #f4f7f9; color: #3f678b; padding: 5px 9px; font-size: 9px; }
.reported-placeholder { padding: 18px; margin-bottom: 10px; border: 1px solid #dfd4cf; background: #f9f5f3; color: #8a6d62; font-size: 10px; text-align: center; }

.right-sidebar { padding-top: 18px; }
.right-sidebar .panel { margin-bottom: 12px; padding: 13px; }
.panel-heading { display: flex; justify-content: space-between; align-items: center; padding-bottom: 11px; border-bottom: 1px solid #e7eaed; font-size: 9px; letter-spacing: .5px; color: #657786; }
.panel-heading button { border: 0; background: none; color: var(--blue); font-size: 9px; }
.panel-heading .live-dot { margin: 0; }
.stat { display: flex; align-items: baseline; gap: 8px; margin-top: 11px; }
.stat strong { color: #385f83; font: bold 21px Georgia,serif; }
.stat span { color: #87929c; font-size: 9px; }
.event { display: flex; gap: 10px; padding: 12px 0; border-bottom: 1px solid #edf0f2; }
.event:last-child { border-bottom: 0; padding-bottom: 0; }
.event time { width: 38px; height: 42px; border: 1px solid #cbd4dc; text-align: center; background: #f8f9fa; }
.event time b, .event time span, .event strong, .event small, .event em { display: block; }
.event time b { color: #3d5d79; font: bold 17px Georgia,serif; padding-top: 3px; }
.event time span { font-size: 7px; color: #8b959d; }
.event strong { font-size: 10px; margin-bottom: 4px; }.event small { color:#89949d;font-size:8px;margin-bottom:4px }.event em { color:#5c85a9;font-size:8px;font-style:normal }
.event > div { min-width: 0; }
.event > div strong, .event > div small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-event { width: 100%; border: 0; background: none; color: inherit; padding-left: 0; padding-right: 0; text-align: left; }
.sidebar-event:hover strong { color: var(--blue); }
.upcoming-events-empty { margin: 12px 0 0; color: #8b959d; font-size: 8px; line-height: 1.5; }
.person { display: flex; gap: 10px; padding-top: 12px; }
.photo { width: 43px; height: 43px; flex: 0 0 auto; display:grid;place-items:center;border-radius:2px;color:#fff;font-weight:bold;font-size:10px }.p1{background:#ad776f}.p2{background:#687f6d}
.person strong,.person small{display:block}.person strong{font-size:10px;color:#416789;margin-bottom:3px}.person small{font-size:8px;color:#8b959d}.person button{border:0;background:none;color:#547da2;font-size:8px;padding:5px 0 0}
.suggested-person { align-items: flex-start; border-top: 1px solid #edf0f2; }
.suggested-person:first-child { border-top: 0; }
.suggested-person-avatar { overflow: hidden; border: 0; padding: 0 !important; color: #fff !important; cursor: pointer; }
.suggested-person-avatar img { width: 100%; height: 100%; object-fit: cover; }
.suggested-person-copy { min-width: 0; }
.person .suggested-person-name { display: block; overflow: hidden; max-width: 165px; padding: 0; color: #416789; font-size: 10px; font-weight: 700; text-align: left; text-overflow: ellipsis; white-space: nowrap; }
.suggested-person-copy small { margin-top: 3px; overflow: hidden; max-width: 165px; text-overflow: ellipsis; white-space: nowrap; }
.suggestion-reason { display: block; margin-top: 4px; color: #6d875d; font-size: 8px; line-height: 1.35; }
.people-suggestions-empty { margin: 11px 0 3px; color: #89949d; font-size: 8px; line-height: 1.5; }
.people-suggestions-all { display: block; margin-top: 12px; border-top: 1px solid #edf0f2; padding-top: 10px; color: #527ba0; font-size: 8px; text-align: center; text-decoration: none; }
.people-suggestions-all:hover { text-decoration: underline; }
.app-footer { color: #9aa3aa; font-size: 9px; line-height: 1.8; padding: 5px 3px 20px; }
.app-footer nav { display: flex; align-items: center; gap: 5px; }
.app-footer a { color: #8796a3; text-decoration: none; }
.app-footer a:hover, .app-footer a.active { color: #4f789b; text-decoration: underline; }
.app-footer > span { display: block; }

.content-page-view, .content-page { display: grid; gap: 12px; }
.content-page-hero { padding: 24px; }
.content-page-hero .eyebrow, .content-page-section .eyebrow { margin: 0 0 8px; font-size: 9px; }
.content-page-hero h1 { margin: 0 0 9px; color: #2c465d; font: 700 28px/1.15 var(--font-display); }
.content-page-hero > p:not(.eyebrow) { max-width: 680px; margin: 0; color: #72818e; font-size: 11px; line-height: 1.65; }
.content-page-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.content-page-card { position: relative; min-height: 145px; overflow: hidden; padding: 19px; }
.content-page-card > span { color: #8ca3b7; font: 700 10px var(--font-display); }
.content-page-card h2, .content-page-section h2, .rule-card h2 { margin: 9px 0 7px; color: #35536c; font: 700 16px/1.25 var(--font-display); }
.content-page-card p, .content-page-section p, .rule-card p { margin: 0; color: #76838d; font-size: 10px; line-height: 1.6; }
.content-page-card::after { content: ''; position: absolute; right: -24px; bottom: -24px; width: 70px; height: 70px; border: 1px solid #e2e8ed; border-radius: 50%; }
.content-page-section { padding: 21px; }
.content-page-list { display: grid; gap: 9px; margin: 14px 0 0; padding: 0; list-style: none; counter-reset: info-list; }
.content-page-list li { position: relative; border-top: 1px solid #edf0f2; padding: 10px 0 0 20px; color: #6e7e8b; font-size: 10px; line-height: 1.55; }
.content-page-list li::before { content: '•'; position: absolute; left: 2px; color: #668dae; }
.content-page-list li b { color: #46647d; }
.content-page-list.ordered { counter-reset: info-list; }
.content-page-list.ordered li::before { counter-increment: info-list; content: counter(info-list); top: 10px; color: #7694ae; font: 700 8px var(--font-display); }
.content-page-callout { border-left: 3px solid #6489aa; background: #eef4f8; padding: 16px 18px; color: #536c80; }
.content-page-callout b { display: block; margin-bottom: 5px; color: #395d79; font: 700 11px var(--font-display); }
.content-page-callout p { margin: 0; font-size: 9px; line-height: 1.6; }
.content-page-callout.warning { border-color: #a67961; background: #f8f1ed; color: #775f52; }
.content-page-callout.warning b { color: #815c49; }
.rules-list { display: grid; gap: 9px; }
.rule-card { display: grid; grid-template-columns: 42px 1fr; gap: 13px; padding: 17px 19px; }
.rule-card > span { display: grid; width: 38px; height: 38px; place-items: center; border: 1px solid #d7e0e7; border-radius: 50%; color: #6b8aa5; font: 700 9px var(--font-display); }
.rule-card h2 { margin-top: 0; }
.help-steps { padding: 6px 20px; }
.help-steps article { display: grid; grid-template-columns: 32px 1fr; gap: 12px; border-bottom: 1px solid #edf0f2; padding: 15px 0; }
.help-steps article:last-child { border-bottom: 0; }
.help-steps article > span { display: grid; width: 27px; height: 27px; place-items: center; border-radius: 50%; background: #eaf1f6; color: #52799a; font: 700 9px var(--font-display); }
.help-steps b { color: #3e607b; font: 700 11px var(--font-display); }
.help-steps p { margin: 4px 0 0; color: #788590; font-size: 9px; line-height: 1.55; }
.help-faq { display: grid; gap: 8px; }
.help-faq details { padding: 0 18px; }
.help-faq summary { cursor: pointer; padding: 15px 24px 15px 0; color: #405f78; font: 700 11px/1.4 var(--font-display); }
.help-faq details p { margin: 0; border-top: 1px solid #edf0f2; padding: 13px 0 16px; color: #75838e; font-size: 10px; line-height: 1.6; }
.content-page-section a { color: #4f7da3; }

.teachers-hero { padding: 20px; }
.teachers-hero .eyebrow { margin: 0 0 8px; font-size: 9px; }
.teachers-hero h1 { margin: 0 0 6px; font: bold 28px Georgia, serif; color: #2b445b; }
.teachers-hero > p:not(.eyebrow) { color: #768492; margin: 0 0 18px; }
.teacher-search-row { display: grid; grid-template-columns: 1.3fr 1fr; gap: 8px; }
.teacher-search-row input, .teacher-search-row select, .teachers-toolbar select { min-width: 0; border: 1px solid #c5cfd7; background: #fbfcfd; padding: 9px 10px; color: #425567; outline: 0; }
.teacher-search-row input:focus { border-color: var(--blue); }
.rating-rules { display: flex; gap: 12px; align-items: baseline; margin: 12px 0; padding: 10px 13px; border: 1px solid #d5dfc8; background: #f4f7ef; color: #6f7c62; font-size: 10px; line-height: 1.5; }
.rating-rules b { flex: 0 0 auto; color: #526348; }
.teachers-toolbar { display: flex; align-items: center; justify-content: space-between; padding: 6px 1px 10px; color: #7d8993; font-size: 10px; }
.teachers-toolbar select { padding: 6px 8px; }
.teacher-card { display: grid; grid-template-columns: 48px 1fr auto; gap: 12px; padding: 15px; margin-bottom: 9px; }
.teacher-avatar { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 2px; background: #d8e2eb; border: 1px solid #c1cdd8; color: #486986; font: bold 13px Georgia, serif; }
.teacher-name { margin: 1px 0 4px; color: #315f91; font-size: 13px; }
.teacher-meta { display: block; color: #758491; font-size: 9px; line-height: 1.45; }
.teacher-subjects { margin: 8px 0 0; color: #5d6c79; font-size: 10px; line-height: 1.5; }
.teacher-score { min-width: 78px; text-align: right; }
.score-number { display: block; color: #315f91; font: bold 23px Georgia, serif; }
.score-number.no-score { color: #9ca7af; font-size: 17px; }
.score-stars { display: block; color: #d19232; letter-spacing: 1px; font-size: 11px; margin: 2px 0 5px; }
.score-reviews { display: block; color: #8b969f; font-size: 8px; }
.rate-btn { margin-top: 9px; border: 1px solid #8ca5bb; background: #f5f8fa; color: #315f91; padding: 5px 9px; font-size: 9px; }
.load-more { width: 100%; border: 1px solid #c9d3dc; background: #fff; color: #416b91; padding: 10px; }
.catalog-source { color: #929ca4; font-size: 9px; line-height: 1.5; margin: 14px 2px 25px; }
.catalog-source a { color: #607f9d; }
.modal { position: fixed; inset: 0; z-index: 20; display: grid; place-items: center; padding: 20px; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(25,38,50,.62); }
.modal-card { position: relative; width: min(430px, 100%); background: #fff; border: 1px solid #aebac5; padding: 25px; box-shadow: 0 18px 70px rgba(0,0,0,.3); }
.modal-close { position: absolute; right: 10px; top: 7px; border: 0; background: none; color: #82909c; font-size: 22px; }
.modal-card h2 { margin: 5px 0; font: bold 22px Georgia, serif; color: #2c455c; }
.profile-editor-card { width: min(760px, 100%); max-height: calc(100vh - 40px); overflow-y: auto; }
.profile-editor-card h2 { margin-bottom: 20px; }
.profile-image-editor { display: grid; grid-template-columns: 1fr auto 1fr auto; gap: 8px; align-items: stretch; padding-bottom: 17px; border-bottom: 1px solid #e5e9ec; }
.image-upload-field { display: flex; flex-direction: column; justify-content: center; gap: 5px; min-width: 0; padding: 10px; border: 1px dashed #bfcbd5; background: #f8fafb; color: #455c70; font-size: 10px; }
.image-upload-field input { max-width: 190px; font-size: 8px; }
.image-upload-field small { color: #8c979f; font-size: 8px; }
.remove-image-btn { border: 1px solid #d5c7c3; background: #fbf7f5; color: #96675d; padding: 6px 8px; font-size: 8px; }
.profile-name-editor { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 15px; }
.profile-name-editor label > span { display: block; margin-bottom: 6px; color: #526779; font-size: 9px; font-weight: bold; }
.profile-name-editor input { width: 100%; min-width: 0; box-sizing: border-box; border: 1px solid #c7d1d9; background: #fff; padding: 9px; color: #425666; font-size: 10px; }
.profile-name-editor input:disabled { background: #f2f4f5; color: #7c8790; cursor: not-allowed; }
.profile-name-change-hint { margin: 7px 0 0; color: #71808c; font-size: 8px; line-height: 1.45; }
.profile-editor-field { display: block; margin: 15px 0 6px; color: #526779; font-size: 9px; font-weight: bold; }
.profile-editor-card textarea, .profile-editor-card > form > select { width: 100%; box-sizing: border-box; border: 1px solid #c7d1d9; background: white; padding: 9px; color: #425666; outline: none; font: inherit; font-size: 10px; }
.profile-editor-card textarea:focus, .profile-editor-card input:focus, .profile-editor-card select:focus { border-color: #6388a7; }
.profile-editor-lists { margin-top: 18px; border-top: 1px solid #e5e9ec; }
.profile-editor-list { padding: 14px 0; border-bottom: 1px solid #e8ecef; }
.profile-editor-list-heading { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; color: #465d70; font-size: 10px; }
.profile-editor-list-heading button { border: 0; background: none; color: #315f91; font-size: 9px; }
.profile-list-empty { margin: 0; color: #99a2a9; font-size: 8px; }
.profile-editor-row { display: grid; grid-template-columns: minmax(130px, 1fr) 120px minmax(160px, 1.25fr) 28px; gap: 6px; margin-top: 6px; }
.profile-editor-row > input, .profile-editor-row > select { min-width: 0; border: 1px solid #ccd4db; background: #fff; padding: 7px 8px; color: #455a6c; font-size: 9px; }
.profile-editor-row > .remove-profile-item { width: 28px; border: 1px solid #ddceca; background: #fbf7f5; color: #9a665b; font-size: 16px; }
.profile-editor-row:not(:has(select)) { grid-template-columns: 1fr 28px; }
.profile-editor-actions { display: flex; justify-content: flex-end; align-items: center; gap: 12px; margin-top: 18px; }
.profile-editor-actions .text-btn { margin: 0; }
.profile-editor-actions .primary-btn { width: auto; padding-left: 22px; padding-right: 22px; }
.profile-academic-editor { display: grid; grid-template-columns: 1.1fr .7fr 1.2fr; gap: 8px; margin-top: 15px; }
.profile-academic-editor label > span { display: block; margin-bottom: 6px; color: #526779; font-size: 9px; font-weight: bold; }
.profile-academic-editor input, .profile-academic-editor select { width: 100%; min-width: 0; border: 1px solid #c7d1d9; background: #fff; padding: 9px; color: #425666; font-size: 10px; }
.rating-teacher-name { margin: 0 0 20px; color: #6f7f8c; }
.rating-question { display: flex; justify-content: space-between; align-items: center; padding: 11px 0; border-top: 1px solid #e8ecef; }
.rating-question label { font-size: 11px; color: #4e6070; }
.score-buttons { display: flex; gap: 3px; }
.score-buttons button { width: 27px; height: 27px; border: 1px solid #c4ced6; background: #f7f9fa; color: #617587; font-size: 10px; }
.score-buttons button.selected { color: white; background: #47749d; border-color: #315f91; }
.rating-confirm { display: flex; gap: 8px; align-items: flex-start; margin: 15px 0 10px; color: #687785; font-size: 10px; line-height: 1.4; }
.rating-confirm input { margin: 1px 0 0; }

.schedule-hero { display: flex; justify-content: space-between; align-items: flex-start; padding: 20px; }
.schedule-hero .eyebrow { margin: 0 0 7px; font-size: 9px; }
.schedule-hero h1 { margin: 0 0 5px; font: bold 28px Georgia, serif; color: #2b445b; }
.schedule-hero p:not(.eyebrow) { color: #788692; margin: 0; }
.sync-btn { border: 1px solid #9aafc1; background: #f4f7f9; color: #315f91; padding: 7px 10px; font-size: 10px; }
.sync-btn:disabled { opacity: .6; cursor: wait; }
.schedule-settings { display: grid; grid-template-columns: 1fr 180px; gap: 20px; margin-top: 12px; padding: 15px; }
.group-setting > label { display: block; color: #4a5d6e; font-size: 10px; font-weight: bold; margin-bottom: 7px; }
.group-input-row { display: flex; }
.group-input-row input { flex: 1; min-width: 0; border: 1px solid #c4ced7; padding: 8px 10px; outline: 0; }
.group-input-row input:focus { border-color: var(--blue); }
.group-input-row .publish-btn { border: 1px solid #28527c; background: var(--blue); color: #fff; padding: 0 13px; font-size: 10px; }
.group-setting small, .reminder-setting small { display: block; color: #8b969f; font-size: 8px; margin-top: 6px; }
.reminder-setting { display: flex; justify-content: space-between; align-items: center; padding-left: 18px; border-left: 1px solid #e2e7eb; }
.reminder-setting b { display: block; color: #4a5d6e; font-size: 10px; }
.switch { position: relative; width: 38px; height: 20px; flex: 0 0 auto; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch span { position: absolute; inset: 0; cursor: pointer; border-radius: 10px; background: #b9c2ca; transition: .2s; }
.switch span::before { content: ''; position: absolute; width: 16px; height: 16px; left: 2px; top: 2px; border-radius: 50%; background: white; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: .2s; }
.switch input:checked + span { background: #4d7da7; }
.switch input:checked + span::before { transform: translateX(18px); }
.schedule-sync-line { display: flex; justify-content: space-between; padding: 10px 2px; color: #8a959e; font-size: 9px; }
.schedule-sync-line a { color: #567b9d; text-decoration: none; }
.schedule-empty { padding: 50px 30px; text-align: center; color: #7e8b96; }
.calendar-mark { display: grid; place-items: center; width: 48px; height: 48px; margin: 0 auto 14px; color: #52789a; background: #e6edf3; border: 1px solid #cad6df; font-size: 22px; }
.schedule-empty h2 { margin: 0 0 8px; color: #40586d; font: bold 18px Georgia, serif; }
.schedule-empty p { max-width: 420px; margin: auto; font-size: 10px; line-height: 1.6; }
.holiday-state { background: #fffdf7; border-color: #e2d8bf; }
.holiday-state .calendar-mark { color: #9b7842; background: #f5eddb; border-color: #dfcfaa; }
.schedule-day { margin-bottom: 12px; }
.schedule-day-title { display: flex; align-items: baseline; gap: 8px; padding: 10px 2px 8px; color: #304e69; }
.schedule-day-title b { font: bold 16px Georgia, serif; }
.schedule-day-title span { color: #89949d; font-size: 9px; }
.lesson { display: grid; grid-template-columns: 72px 1fr 115px 34px; align-items: center; gap: 12px; padding: 13px 14px; margin-bottom: 6px; }
.lesson-time strong, .lesson-time small { display: block; }
.lesson-time strong { color: #315f91; font: bold 15px Georgia, serif; }
.lesson-time small { color: #929ca4; font-size: 8px; margin-top: 3px; }
.lesson-main strong { display: block; color: #354b5f; font-size: 11px; line-height: 1.4; }
.lesson-main small { display: block; color: #84909a; font-size: 8px; margin-top: 4px; }
.lesson-place { color: #5f7181; font-size: 9px; line-height: 1.45; }
.lesson-reminder { width: 30px; height: 30px; border: 1px solid #cbd5dd; background: #f7f9fa; color: #52799b; }
.lesson-reminder.off { color: #9aa4ac; background: #f3f4f5; }
.schedule-error { padding: 12px 14px; border: 1px solid #e0c3bd; background: #fbf2f0; color: #9b5147; font-size: 10px; line-height: 1.5; }

/* Refined typography and one consistent icon system */
.theme-toggle, .sound-toggle { width: 34px; height: 34px; display: inline-grid; place-items: center; border: 1px solid rgba(255,255,255,.18) !important; border-radius: 50%; background: rgba(0,0,0,.1) !important; color: #e8f1f9 !important; padding: 0 !important; }
.theme-toggle:hover, .sound-toggle:hover { background: rgba(255,255,255,.1) !important; }
.theme-toggle .ui-icon, .sound-toggle .ui-icon, .header-icon-btn .ui-icon, .favorite-open .ui-icon, .lesson-reminder .ui-icon { margin: 0; }
.sound-toggle-login { margin-left: auto; }
.theme-toggle-login { margin-left: 0; }
.sound-off { display: none; }
:root[data-sound="off"] .sound-on { display: none; }
:root[data-sound="off"] .sound-off { display: block; }
.theme-sun { display: none; }
:root[data-theme="dark"] .theme-sun { display: block; }
:root[data-theme="dark"] .theme-moon { display: none; }
.header-icon-btn { width: 34px; height: 34px; display: grid; place-items: center; padding: 0 !important; }
.header-icon-btn .ui-icon { width: 18px; height: 18px; }
.search-box > .ui-icon { width: 17px; height: 17px; margin: 0 8px; color: #b6cbe0; }
.side-nav a > .ui-icon { width: 17px; height: 17px; color: #527aa1; }
.secure-note { display: flex; justify-content: center; align-items: center; gap: 6px; }
.secure-note .ui-icon { width: 13px; height: 13px; }
.sync-btn, .composer-actions button, .post-actions button { display: inline-flex; align-items: center; justify-content: center; gap: 2px; }
.sync-btn .ui-icon, .composer-actions button .ui-icon, .post-actions button .ui-icon { width: 14px; height: 14px; }
.calendar-mark .ui-icon { width: 23px; height: 23px; }
.favorite-open .ui-icon { width: 12px; height: 12px; }
.lesson-reminder .ui-icon { width: 16px; height: 16px; }
.post-menu .ui-icon { width: 15px; height: 15px; }
.profile-summary strong, .post-author, .teacher-name, .person strong { letter-spacing: -.08px; }
.post-author { font-size: 12.5px; }
.post-body { font-size: 13px; line-height: 1.65; letter-spacing: .02px; }
.post-meta, .wall-profile-info p, .teacher-meta, .lesson-main small { font-size: 9.5px; }
.comment-body { font-size: 10.5px; line-height: 1.52; }
.comment-body b { font-size: 10px; }
.panel-heading, .side-label, .wall-heading, .profile-detail-card > span { font-size: 8.5px; font-weight: 650; letter-spacing: .72px; }
.teachers-hero h1, .schedule-hero h1, .modal-card h2, .wall-profile-info h1, .otp-heading, .schedule-empty h2 { font-family: var(--font-display); letter-spacing: -.35px; }
.profile-detail-card p, .favorite-item, .teacher-subjects, .lesson-main strong { font-size: 10.5px; }
.composer-file-button { display: inline-flex; align-items: center; gap: 2px; color: #66819a; font-size: 10px; cursor: pointer; }
.composer-file-button input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.composer-tools { display: flex; align-items: center; gap: 10px; }
.composer-media-preview { margin: 10px 0 0 49px; display: flex; align-items: center; gap: 9px; border: 1px solid #ccd6de; background: #f7f9fa; padding: 9px 10px; color: #526a7e; }
.composer-media-preview > .ui-icon { width: 20px; height: 20px; }
.composer-media-preview span { min-width: 0; }
.composer-media-preview b, .composer-media-preview small { display: block; }
.composer-media-preview b { max-width: 360px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 10px; }
.composer-media-preview small { margin-top: 2px; color: #8a959e; font-size: 8px; }
.composer-media-preview > button { margin-left: auto; border: 0; background: none; color: #9a665b; font-size: 17px; }
.composer-media-preview .media-selection-error { color: #a14b42; font-size: 9px; }
.composer-public-note { display: block; margin: 6px 0 0 49px; }
.post-uploaded-media { margin: 0 0 14px 52px; min-height: 120px; display: grid; place-items: center; overflow: hidden; border: 1px solid #d2dae1; background: #f3f6f8; color: #85919a; font-size: 9px; }
.post-uploaded-media img, .post-uploaded-media video { display: block; width: 100%; max-height: 560px; object-fit: contain; background: #080a0c; }
.post-media-error { min-height: 70px; color: #a2655d; }
.post-actions { align-items: center; }
.post-votes { display: inline-flex; align-items: center; gap: 4px; padding: 2px 5px; border: 1px solid #d9e0e6; border-radius: 14px; background: #f8fafb; }
.post-votes b { min-width: 22px; color: #52677a; text-align: center; font-size: 10px; }
.post-actions .vote-arrow, .comment-actions .comment-vote { width: 23px; height: 23px; display: grid; place-items: center; color: #7c8d9b; }
.vote-arrow .ui-icon, .comment-vote .ui-icon { width: 14px; height: 14px; margin: 0; }
.vote-arrow.down .ui-icon, .comment-vote.down .ui-icon { transform: rotate(180deg); }
.vote-arrow.active-up, .comment-vote.active-up { color: #d65b42 !important; }
.vote-arrow.active-down, .comment-vote.active-down { color: #536fd0 !important; }
.comment-thread { position: relative; }
.comment-content { flex: 1; min-width: 0; }
.comment-author { border: 0; background: none; padding: 0; margin-right: 5px; color: #3f678b; font-size: 10px; font-weight: bold; }
.comment-actions { display: flex; align-items: center; gap: 2px; margin-top: 5px; }
.comment-actions button { border: 0; background: none; padding: 0; }
.comment-actions b { min-width: 18px; color: #657786; text-align: center; font-size: 8px; }
.comment-actions .reply-toggle { margin-left: 8px; color: #6e8497; font-size: 8px; }
.comment-actions .comment-delete { margin-left: 7px; color: #98685f; font-size: 8px; }
.comment-actions .comment-delete:hover { color: #b34e43; text-decoration: underline; }
.comment-deleted { padding: 5px 0; color: #8a969f; font-size: 9px; font-style: italic; }
.comment-replies { margin-left: 34px; padding-left: 8px; border-left: 1px solid #e2e7eb; }
.reply-form { display: flex; gap: 6px; margin-top: 7px; }
.reply-form input { flex: 1; min-width: 0; border: 1px solid #ccd4db; padding: 6px 7px; font-size: 9px; }
.reply-form button { border: 1px solid #b7c5d0; background: #f4f7f9; color: #3f678b; padding: 5px 8px; font-size: 8px; }

/* Black theme */
:root[data-theme="dark"] body,
:root[data-theme="dark"] .login-screen { background: var(--bg); color: var(--ink); }
:root[data-theme="dark"] .topbar { background: #090c10; border-color: #202832; box-shadow: 0 1px 0 rgba(255,255,255,.025); }
:root[data-theme="dark"] .brand { color: #f0f4f8; }
:root[data-theme="dark"] .brand span { color: #6f9fce; }
:root[data-theme="dark"] .topbar-note { border-color: #303942; color: #98a8b7; }
:root[data-theme="dark"] .search-box { background: #121820; border-color: #2b3743; }
:root[data-theme="dark"] .search-box input { color: #eaf0f5; }
:root[data-theme="dark"] .search-box input::placeholder { color: #71808d; }
:root[data-theme="dark"] .notification-panel { background: #101419; border-color: #313b44; color: #dbe4eb; box-shadow: 0 18px 55px rgba(0,0,0,.55); }
:root[data-theme="dark"] .notification-panel > header,
:root[data-theme="dark"] .notification-settings-link { background: #0c1014; border-color: #283039; }
:root[data-theme="dark"] .notification-settings { background: #0c1014; border-color: #283039; }
:root[data-theme="dark"] .mention-notification-setting { color: #9fb0be; }
:root[data-theme="dark"] .nickname-input { background: #0a0e12; border-color: #313b44; }
:root[data-theme="dark"] .nickname-input:focus-within { border-color: #5685af; box-shadow: 0 0 0 2px #152536; }
:root[data-theme="dark"] .notification-panel > header b { color: #e4ebf1; }
:root[data-theme="dark"] .header-nav .notification-item { background: #101419; border-color: #252c33; color: #d9e2e9; }
:root[data-theme="dark"] .header-nav .notification-item:hover { background: #171d23; }
:root[data-theme="dark"] .header-nav .notification-item.unread { background: #131d26; }
:root[data-theme="dark"] .notification-kind { background: #192630; color: #7ca8cc; }
:root[data-theme="dark"] .notification-lesson { background: #1c2918; color: #8fb878; }
:root[data-theme="dark"] .notification-copy b { color: #c6d9e9; }
:root[data-theme="dark"] .notification-copy span { color: #9daab4; }
:root[data-theme="dark"] .notification-copy small { color: #68757f; }
:root[data-theme="dark"] .notification-settings-link { color: #7da8cd; }
:root[data-theme="dark"] .suggested-person,
:root[data-theme="dark"] .people-suggestions-all { border-color: #29313a; }
:root[data-theme="dark"] .person .suggested-person-name { color: #8db6d9; }
:root[data-theme="dark"] .suggested-person-copy small,
:root[data-theme="dark"] .people-suggestions-empty { color: #7f8d98; }
:root[data-theme="dark"] .suggestion-reason { color: #8fa77f; }
:root[data-theme="dark"] .people-suggestions-all { color: #7da8cd; }
:root[data-theme="dark"] .app-footer a { color: #788894; }
:root[data-theme="dark"] .app-footer a:hover,
:root[data-theme="dark"] .app-footer a.active { color: #86afd1; }
:root[data-theme="dark"] .content-page-hero h1,
:root[data-theme="dark"] .content-page-card h2,
:root[data-theme="dark"] .content-page-section h2,
:root[data-theme="dark"] .rule-card h2 { color: #d9e5ee; }
:root[data-theme="dark"] .content-page-hero > p:not(.eyebrow),
:root[data-theme="dark"] .content-page-card p,
:root[data-theme="dark"] .content-page-section p,
:root[data-theme="dark"] .rule-card p,
:root[data-theme="dark"] .content-page-list li,
:root[data-theme="dark"] .help-steps p,
:root[data-theme="dark"] .help-faq details p { color: #95a3ae; }
:root[data-theme="dark"] .content-page-card::after,
:root[data-theme="dark"] .content-page-list li,
:root[data-theme="dark"] .rule-card > span,
:root[data-theme="dark"] .help-steps article,
:root[data-theme="dark"] .help-faq details p { border-color: #29323a; }
:root[data-theme="dark"] .content-page-list li b,
:root[data-theme="dark"] .help-steps b,
:root[data-theme="dark"] .help-faq summary { color: #b8cddd; }
:root[data-theme="dark"] .help-steps article > span { background: #18242d; color: #8db2d0; }
:root[data-theme="dark"] .content-page-callout { background: #15212a; color: #a5b7c5; }
:root[data-theme="dark"] .content-page-callout b { color: #c2d7e7; }
:root[data-theme="dark"] .content-page-callout.warning { background: #271d19; color: #c1a99a; }
:root[data-theme="dark"] .content-page-callout.warning b { color: #d4b5a2; }
:root[data-theme="dark"] .login-card,
:root[data-theme="dark"] .panel,
:root[data-theme="dark"] .modal-card { background: var(--paper); border-color: var(--line); box-shadow: 0 8px 34px rgba(0,0,0,.24); }
:root[data-theme="dark"] .card-title,
:root[data-theme="dark"] .secure-note { background: #0d1115; border-color: var(--line); }
:root[data-theme="dark"] .intro h1,
:root[data-theme="dark"] .feature-list b,
:root[data-theme="dark"] .login-card label,
:root[data-theme="dark"] .otp-heading,
:root[data-theme="dark"] .wall-profile-info h1,
:root[data-theme="dark"] .schedule-empty h2,
:root[data-theme="dark"] .teachers-hero h1,
:root[data-theme="dark"] .schedule-hero h1,
:root[data-theme="dark"] .modal-card h2,
:root[data-theme="dark"] .lesson-main strong,
:root[data-theme="dark"] .rating-question label { color: var(--ink); }
:root[data-theme="dark"] .intro-copy,
:root[data-theme="dark"] .feature-list p,
:root[data-theme="dark"] .otp-copy,
:root[data-theme="dark"] .profile-summary small,
:root[data-theme="dark"] .wall-profile-info p,
:root[data-theme="dark"] .profile-detail-card p,
:root[data-theme="dark"] .comment-body span,
:root[data-theme="dark"] .teacher-subjects,
:root[data-theme="dark"] .lesson-place,
:root[data-theme="dark"] .rating-confirm { color: #a9b4be; }
:root[data-theme="dark"] .feature-list,
:root[data-theme="dark"] .feature-list > div,
:root[data-theme="dark"] .login-footer,
:root[data-theme="dark"] .sidebar-divider,
:root[data-theme="dark"] .post-actions,
:root[data-theme="dark"] .post-comments,
:root[data-theme="dark"] .comment,
:root[data-theme="dark"] .panel-heading,
:root[data-theme="dark"] .event,
:root[data-theme="dark"] .profile-editor-list,
:root[data-theme="dark"] .profile-editor-lists,
:root[data-theme="dark"] .profile-image-editor,
:root[data-theme="dark"] .rating-question { border-color: var(--line); }
:root[data-theme="dark"] .side-nav a,
:root[data-theme="dark"] .community-link { color: #aebbc6; }
:root[data-theme="dark"] .side-nav a:hover,
:root[data-theme="dark"] .side-nav a.active { background: #151d25; color: #dce9f5; }
:root[data-theme="dark"] .side-nav a > .ui-icon { color: #78a3ca; }
:root[data-theme="dark"] .feed-tabs { border-color: #29323a; }
:root[data-theme="dark"] .feed-tabs button { color: #8997a3; }
:root[data-theme="dark"] .feed-tabs button.active,
:root[data-theme="dark"] .post-author,
:root[data-theme="dark"] .teacher-name,
:root[data-theme="dark"] .comment-body b,
:root[data-theme="dark"] .person strong,
:root[data-theme="dark"] .panel-heading button,
:root[data-theme="dark"] .text-btn { color: #79a7d3; }
:root[data-theme="dark"] .public-feed-rule,
:root[data-theme="dark"] .profile-detail-card,
:root[data-theme="dark"] .profile-details-empty,
:root[data-theme="dark"] .image-upload-field,
:root[data-theme="dark"] .schedule-empty,
:root[data-theme="dark"] .rating-rules { background: #0d1217; border-color: #28323b; color: #9ba8b3; }
:root[data-theme="dark"] .favorite-item { background: #0c1014; border-color: #252e36; color: #c7d2dc; }
:root[data-theme="dark"] a.favorite-item:hover { background: #141b22; border-color: #3d5265; }
:root[data-theme="dark"] .edit-profile-btn,
:root[data-theme="dark"] .sync-btn,
:root[data-theme="dark"] .rate-btn,
:root[data-theme="dark"] .comment-form button,
:root[data-theme="dark"] .reply-form button,
:root[data-theme="dark"] .lesson-reminder,
:root[data-theme="dark"] .score-buttons button,
:root[data-theme="dark"] .load-more { background: #151b21; border-color: #34414c; color: #84add1; }
:root[data-theme="dark"] .lesson-reminder.off { background: #0c1014; color: #64717c; }
:root[data-theme="dark"] input,
:root[data-theme="dark"] textarea,
:root[data-theme="dark"] select,
:root[data-theme="dark"] .login-card input,
:root[data-theme="dark"] .profile-editor-card textarea,
:root[data-theme="dark"] .profile-editor-row > input,
:root[data-theme="dark"] .profile-editor-row > select { background: #0a0e12; border-color: #313b44; color: #dde4ea; }
:root[data-theme="dark"] input::placeholder,
:root[data-theme="dark"] textarea::placeholder { color: #687580; }
:root[data-theme="dark"] .wall-cover {
  background-color: #172431;
  background-image: linear-gradient(135deg, #172431, #30475a);
  background-size: cover;
  background-position: center center;
  border-color: #34495a;
}
:root[data-theme="dark"] .wall-profile-avatar { border-color: var(--paper); box-shadow: 0 0 0 1px #39434c; }
:root[data-theme="dark"] .composer-media-preview,
:root[data-theme="dark"] .post-votes { background: #0c1116; border-color: #2b363f; color: #b6c2cc; }
:root[data-theme="dark"] .post-votes b,
:root[data-theme="dark"] .comment-actions b { color: #a7b4bf; }
:root[data-theme="dark"] .post-uploaded-media { background: #080b0e; border-color: #28323a; color: #7e8b96; }
:root[data-theme="dark"] .comment-replies { border-color: #293139; }
:root[data-theme="dark"] .comment-author { color: #79a7d3; }
:root[data-theme="dark"] .profile-academic-editor label > span,
:root[data-theme="dark"] .profile-name-editor label > span { color: #a9b4be; }
:root[data-theme="dark"] .profile-name-editor input:disabled { background: #11171c; color: #788590; border-color: #2b353e; }
:root[data-theme="dark"] .profile-name-change-hint { color: #87949f; }
:root[data-theme="dark"] .wall-profile-stats b,
:root[data-theme="dark"] .stat strong,
:root[data-theme="dark"] .lesson-time strong,
:root[data-theme="dark"] .schedule-day-title,
:root[data-theme="dark"] .feed-intro b { color: #82acd2; }
:root[data-theme="dark"] .event time { background: #0b1015; border-color: #2b3741; }
:root[data-theme="dark"] .comment-avatar,
:root[data-theme="dark"] .teacher-avatar,
:root[data-theme="dark"] .calendar-mark { background: #17222c; border-color: #293b4b; color: #84a9c9; }
:root[data-theme="dark"] .modal-backdrop { background: rgba(0,0,0,.76); }
:root[data-theme="dark"] .demo-code { background: #17140c; border-color: #4a3e24; color: #c4ad72; }
:root[data-theme="dark"] .reported-placeholder,
:root[data-theme="dark"] .schedule-error { background: #1b1110; border-color: #4f2925; color: #d98e84; }
:root[data-theme="dark"] .switch span { background: #3b444c; }
:root[data-theme="dark"] .switch input:checked + span { background: #5685af; }
:root[data-theme="dark"] ::selection { background: #315f91; color: #fff; }

@media (max-width: 950px) {
  .layout { grid-template-columns: 185px minmax(400px, 1fr); }
  .right-sidebar { display: none; }
  .login-main { gap: 45px; }
}
@media (max-width: 680px) {
  .topbar-note { display: none; }
  .app-topbar { gap: 7px; }
  .app-topbar .brand { font-size: 22px; }
  .search-box { width: auto; flex: 1 1 120px; }
  .search-box input { width: 60px; }
  .header-nav { gap: 0; }
  .header-nav .theme-toggle { display: none; }
  .login-main { display: block; padding: 40px 0; }
  .intro h1 { font-size: 40px; }
  .feature-list { margin-bottom: 35px; }
  .layout { display: block; width: min(100% - 20px, 560px); }
  .notification-panel { position: fixed; top: 54px; right: 10px; width: min(350px, calc(100vw - 20px)); }
  .left-sidebar { display: none; }
  .post-body, .post-media { margin-left: 0; }
  .post-uploaded-media, .composer-media-preview { margin-left: 0; }
  .post-actions { padding-left: 0; }
  .post-comments { margin-left: 0; }
  .wall-profile-main { align-items: center; flex-wrap: wrap; }
  .wall-profile-stats { width: 100%; margin-left: 88px; justify-content: flex-start; }
  .edit-profile-btn { margin-left: 88px; }
  .profile-details { grid-template-columns: 1fr; }
  .profile-about { grid-column: auto; }
  .profile-image-editor { grid-template-columns: 1fr; }
  .profile-name-editor { grid-template-columns: 1fr; }
  .profile-academic-editor { grid-template-columns: 1fr; }
  .profile-editor-row { grid-template-columns: 1fr 28px; }
  .profile-editor-row > select, .profile-editor-row > .profile-link-input { grid-column: 1 / -1; }
  .profile-editor-row > .remove-profile-item { grid-column: 2; grid-row: 1; }
  .teacher-search-row { grid-template-columns: 1fr; }
  .teacher-card { grid-template-columns: 43px 1fr; }
  .teacher-score { grid-column: 2; text-align: left; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
  .score-number, .score-stars, .score-reviews, .rate-btn { margin: 0; }
  .schedule-settings { grid-template-columns: 1fr; }
  .reminder-setting { padding: 12px 0 0; border-left: 0; border-top: 1px solid #e2e7eb; }
  .lesson { grid-template-columns: 62px 1fr 32px; }
  .lesson-place { grid-column: 2; }
  .lesson-reminder { grid-column: 3; grid-row: 1 / span 2; }
  .comment-replies { margin-left: 12px; }
  .registration-name-grid { grid-template-columns: 1fr; gap: 0; }
}

/* Friends, communities and owner controls */
.directory-hero { padding: 20px; }
.directory-hero .eyebrow { margin: 0 0 7px; font-size: 9px; }
.directory-hero h1, .community-profile h1 { margin: 0 0 6px; color: #2b445b; font: bold 28px var(--font-display); letter-spacing: -.35px; }
.directory-hero > p:not(.eyebrow), .directory-hero-heading p:not(.eyebrow) { margin: 0 0 16px; color: #768492; }
.directory-hero-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; }
.directory-hero-heading > div { min-width: 0; }
.directory-hero-heading > .publish-btn { flex: 0 0 auto; border: 1px solid #28527c; background: var(--blue); color: #fff; padding: 8px 11px; font-size: 9px; }
.directory-hero input { width: 100%; box-sizing: border-box; border: 1px solid #c5cfd7; background: #fbfcfd; padding: 9px 10px; color: #425567; outline: 0; }
.directory-hero input:focus { border-color: var(--blue); }
.directory-tabs { display: flex; gap: 3px; margin: 12px 0 9px; border-bottom: 1px solid #d8dfe5; }
.directory-tabs button { border: 0; border-bottom: 2px solid transparent; background: none; color: #7e8a94; padding: 8px 12px; font-size: 10px; }
.directory-tabs button.active { color: #315f91; border-bottom-color: #315f91; }
.directory-tabs button span { display: inline-block; min-width: 13px; margin-left: 3px; border-radius: 9px; background: #dce7f0; color: #416d93; font-size: 8px; }
.people-directory, .community-directory { display: grid; gap: 8px; }
.person-card { display: grid; grid-template-columns: 54px 1fr auto; gap: 12px; align-items: center; padding: 14px; }
.directory-avatar { width: 54px; height: 54px; display: grid; place-items: center; border: 0; border-radius: 2px; background-size: cover; background-position: center; font: bold 13px var(--font-display); }
.person-card-copy { min-width: 0; }
.directory-name { display: block; border: 0; background: none; color: #315f91; padding: 0; font-size: 12px; font-weight: bold; }
.directory-nickname { display: block; margin-top: 2px; color: #6485a0; font-size: 9px; }
.person-card-copy span, .person-card-copy small { display: block; }
.person-card-copy span { margin-top: 4px; color: #798692; font-size: 9px; }
.person-card-copy small { margin-top: 7px; color: #687887; font-size: 9px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.person-card-actions { min-width: 126px; text-align: right; }
.friend-action, .friend-secondary, .community-join { border: 1px solid #91a8bb; background: #f4f7f9; color: #315f91; padding: 7px 10px; font-size: 9px; }
.friend-action { display: inline-flex; align-items: center; gap: 5px; justify-content: center; }
.friend-action .ui-icon { width: 13px; height: 13px; }
.friend-status-friend, .friend-status-outgoing, .community-join.joined, .community-join.pending { border-color: #c7d0d7; background: #f0f2f3; color: #71808c; }
.community-join.owner { border-color: #8da2b4; background: #edf3f7; color: #355f83; }
.community-join.closed { border-color: #9b8b70; background: #f7f3ea; color: #715f43; }
.friend-status-incoming { border-color: #547da1; background: #416f98; color: #fff; }
.friend-secondary { display: block; margin: 5px 0 0 auto; border: 0; background: none; color: #8a6f69; padding: 2px; }
.directory-empty { padding: 30px; color: #88949e; text-align: center; }
.community-card { display: grid; grid-template-columns: 58px 1fr auto; gap: 13px; align-items: center; padding: 15px; }
.community-card-icon, .community-profile-icon { width: 58px; height: 58px; border-radius: 3px; font-size: 17px; text-decoration: none; }
.community-card-name { display: block; color: #315f91; font-size: 12px; font-weight: bold; text-decoration: none; }
.community-card span { display: block; margin-top: 4px; color: #84909a; font-size: 8px; }
.community-card p { margin: 7px 0 0; color: #5d6d7b; font-size: 9px; line-height: 1.5; }
.community-icon.science { background: #6d668d; }
.community-icon.sport { background: #5f8067; }
.community-link-empty { color: #788b9b; }
.directory-back { display: inline-block; margin: 2px 0 10px; color: #6082a0; text-decoration: none; font-size: 9px; }
.community-profile { display: block; padding: 0; overflow: hidden; }
.community-cover { height: 76px; background: linear-gradient(135deg, #334e66, #7894ab); background-size: cover; background-position: center; border-bottom: 1px solid #c1ccd5; }
.community-profile.has-community-banner .community-cover { height: 145px; }
.community-profile-main { display: grid; grid-template-columns: 76px 1fr auto; gap: 16px; align-items: center; padding: 0 19px 19px; }
.community-profile-icon { width: 76px; height: 76px; font-size: 21px; }
.community-profile-main > .community-profile-icon { margin-top: -28px; border: 4px solid #fff; box-shadow: 0 0 0 1px #c7d0d8; }
.community-profile .eyebrow { margin: 0 0 4px; }
.community-profile h1 { font-size: 24px; }
.community-profile span { color: #83909a; font-size: 9px; }
.community-profile p:not(.eyebrow) { margin: 8px 0 0; color: #596b7a; font-size: 10px; line-height: 1.5; }
.community-rules { display: flex; gap: 12px; margin-top: 9px; padding: 11px 13px; color: #697967; background: #f5f7f1; border-color: #d8e0ce; font-size: 9px; line-height: 1.5; }
.community-rules b { flex: 0 0 auto; color: #4f664e; }
.community-composer { display: flex; gap: 9px; margin-top: 9px; padding: 13px; }
.community-composer textarea { flex: 1; resize: vertical; border: 1px solid #c8d1d8; padding: 9px; outline: 0; }
.community-composer textarea:focus { border-color: var(--blue); }
.community-composer .publish-btn { align-self: flex-end; border: 1px solid #28527c; background: var(--blue); color: #fff; padding: 8px 12px; font-size: 9px; }
.community-join-note { margin-top: 9px; padding: 12px; border: 1px dashed #cad3da; color: #7e8b95; text-align: center; font-size: 9px; }
.community-moderation { margin-top: 9px; padding: 13px; }
.community-moderation > div { display: flex; align-items: baseline; justify-content: space-between; padding-bottom: 9px; border-bottom: 1px solid #e4e8eb; }
.community-moderation > div b { color: #435a6d; font-size: 10px; }
.community-moderation > div span { color: #89949d; font-size: 8px; }
.community-moderation article { display: grid; grid-template-columns: 30px 1fr auto auto; gap: 8px; align-items: center; padding-top: 10px; }
.community-moderation article > div:nth-child(2) b, .community-moderation article > div:nth-child(2) span { display: block; }
.community-moderation article > div:nth-child(2) b { color: #3d617f; font-size: 9px; }
.community-moderation article > div:nth-child(2) span { margin-top: 3px; color: #8b959d; font-size: 8px; }
.community-moderation article button { border: 1px solid #91a8bb; background: #f4f7f9; color: #315f91; padding: 5px 8px; font-size: 8px; }
.community-moderation article button.decline { border-color: #d5c6c1; background: #faf6f4; color: #93665e; }
.community-editor-card { width: min(690px, 100%); max-height: calc(100vh - 40px); overflow-y: auto; }
.community-image-editor { display: grid; grid-template-columns: 1fr auto 1fr auto; gap: 8px; padding: 14px 0 17px; border-bottom: 1px solid #e5e9ec; }
.community-editor-grid { display: grid; grid-template-columns: 1.4fr .8fr; gap: 9px; margin-top: 16px; }
.community-editor-grid label > span, .community-editor-field > span { display: block; margin-bottom: 6px; color: #526779; font-size: 9px; font-weight: bold; }
.community-editor-grid input, .community-editor-field textarea, .community-editor-field select { width: 100%; box-sizing: border-box; border: 1px solid #c7d1d9; background: #fff; color: #425666; padding: 9px; outline: 0; font: inherit; font-size: 10px; }
.community-editor-field { display: block; margin-top: 14px; }
.community-editor-field textarea { resize: vertical; }
.community-editor-grid input:focus, .community-editor-field textarea:focus, .community-editor-field select:focus { border-color: #6388a7; }
.community-editor-actions { display: grid; grid-template-columns: auto 1fr auto auto; }
.danger-btn { border: 1px solid #d7b9b3; background: #fff8f6; color: #a14f44; padding: 8px 11px; font: bold 9px var(--font-sans); }
.danger-btn:hover { border-color: #bd7469; background: #fff1ee; color: #923c32; }
.post-community { display: block; margin: 3px 0 0; border: 0; background: none; color: #6d88a0; padding: 0; font-size: 8px; }
.post-delete { color: #9a655d; }
.post-delete:hover { color: #b34e43; }
.post-menu.reported, .event-report-btn.reported { color: #9a7463; opacity: .72; cursor: default; }

/* Official news and lost & found */
.news-view, .lost-found-view, .proposals-view { display: grid; gap: 13px; }
.news-hero { background: linear-gradient(135deg, #fbfaf5, #f2f5f7); border-top: 3px solid #b8923f; }
.news-composer { padding: 16px; }
.news-composer-heading, .news-composer-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.news-composer-heading > div { display: flex; align-items: center; gap: 7px; color: #385671; font-size: 10px; }
.news-composer-heading .moderation-badge { margin-left: 0; }
.news-composer-heading select,
.news-composer input,
.news-composer textarea,
.lost-found-composer input,
.lost-found-composer textarea,
.lost-found-composer select,
.lost-found-toolbar select { box-sizing: border-box; border: 1px solid #c7d1d9; background: #fff; color: #425666; padding: 9px; outline: 0; font: 10px var(--font-sans); }
.news-composer-heading select { padding: 7px 9px; font-size: 9px; }
.news-composer input, .news-composer textarea { width: 100%; margin-top: 10px; }
.news-composer textarea, .lost-found-composer textarea { resize: vertical; line-height: 1.55; }
.news-composer input:focus, .news-composer textarea:focus, .news-composer select:focus,
.lost-found-composer input:focus, .lost-found-composer textarea:focus, .lost-found-composer select:focus,
.lost-found-toolbar select:focus { border-color: #6388a7; }
.news-composer-actions { margin-top: 9px; }
.news-composer-actions > span { color: #88959f; font-size: 8px; }
.news-composer-tools { display: flex; align-items: center; gap: 13px; margin-top: 10px; }
.news-composer-tools > button { display: inline-flex; align-items: center; gap: 4px; border: 0; background: none; color: #66819a; padding: 0; font: 10px var(--font-sans); }
.news-composer-tools > button.active { color: #294f72; font-weight: bold; }
.news-composer-tools .ui-icon, .news-file-card > .ui-icon { width: 15px; height: 15px; }
.news-composer-tools .composer-file-button input { width: 1px; height: 1px; margin: 0; border: 0; padding: 0; }
.news-file-preview { margin-left: 0; }
.news-composer .composer-poll-editor { margin-left: 0; }
.news-composer .composer-poll-editor input { margin-top: 0; }
.news-list { display: grid; gap: 10px; }
.news-card { padding: 0; overflow: hidden; }
.news-card > header { display: grid; grid-template-columns: 38px minmax(0,1fr) auto; gap: 10px; align-items: center; padding: 13px 15px; border-bottom: 1px solid #e5eaed; background: #fafcfd; }
.news-card > header .avatar { width: 38px; height: 38px; font-size: 10px; }
.news-card > header div:nth-child(2) { display: grid; gap: 2px; min-width: 0; }
.news-card > header span { color: #a17624; font-size: 7px; font-weight: bold; letter-spacing: .65px; }
.news-card > header b { color: #3f5c74; font-size: 9px; }
.news-card > header small { color: #919da5; font-size: 8px; }
.news-author-avatar { padding: 0; }
.news-author-name { border: 0; background: none; color: #3f5c74; padding: 0; text-align: left; font: bold 9px var(--font-sans); }
.news-author-name:hover { color: #294f72; text-decoration: underline; }
.news-card-body { padding: 19px 18px 21px; }
.news-card-body h2 { margin: 0 0 9px; color: #294f72; font: bold 21px/1.2 var(--font-display); }
.news-card-body p { margin: 0; color: #536574; font-size: 10px; line-height: 1.68; white-space: pre-wrap; overflow-wrap: anywhere; }
.news-file-card { display: flex; align-items: center; gap: 9px; margin-top: 13px; border: 1px solid #c8d3dc; background: #f6f8fa; color: #486b87; padding: 9px 10px; text-decoration: none; }
.news-file-card[aria-disabled="true"] { cursor: wait; }
.news-file-card > span { min-width: 0; }
.news-file-card b, .news-file-card small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.news-file-card b { font-size: 9px; }
.news-file-card small { margin-top: 2px; color: #87949e; font-size: 8px; }
.news-file-card em { margin-left: auto; color: #537595; font-size: 8px; font-style: normal; font-weight: bold; }
.news-poll { margin: 13px 0 0; }

.lost-found-composer { padding: 16px; }
.lost-found-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 11px; }
.lost-found-grid label > span { display: block; margin-bottom: 6px; color: #526779; font-size: 9px; font-weight: bold; }
.lost-found-grid input, .lost-found-grid textarea, .lost-found-grid select { width: 100%; }
.lost-found-grid .wide { grid-column: 1 / -1; }
.lost-found-photo-row { display: flex; align-items: center; gap: 11px; margin-top: 13px; }
.lost-found-image-preview { width: 76px; height: 54px; display: grid; place-items: center; border: 1px solid #bdc9d2; background: #eef3f6 center/cover no-repeat; color: transparent; font-size: 0; }
.lost-found-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 9px; }
.lost-found-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 2px; color: #7d8993; font-size: 9px; }
.lost-found-toolbar label { display: flex; align-items: center; gap: 7px; }
.lost-found-toolbar select { padding: 6px 8px; font-size: 9px; }
.lost-found-list { display: grid; gap: 10px; }
.lost-found-card { display: grid; grid-template-columns: 150px minmax(0,1fr); overflow: hidden; }
.lost-found-card-image, .lost-found-card-placeholder { min-height: 176px; background: #e9eff3 center/cover no-repeat; }
.lost-found-card-placeholder { display: grid; place-items: center; color: #7891a5; background: linear-gradient(145deg, #eef3f6, #dfe8ee); }
.lost-found-card-placeholder .ui-icon { width: 30px; height: 30px; }
.lost-found-card-copy { padding: 15px 17px 12px; }
.lost-found-card-labels { display: flex; flex-wrap: wrap; gap: 6px; }
.lost-found-kind, .lost-found-status { display: inline-block; border: 1px solid #a9c6b0; background: #eff7f1; color: #4f7958; padding: 3px 6px; font-size: 7px; font-weight: bold; letter-spacing: .5px; }
.lost-found-kind.lost { border-color: #d1b39c; background: #fbf3ec; color: #996443; }
.lost-found-status { border-color: #b9c3ca; background: #f1f4f6; color: #71808b; }
.lost-found-card-copy h2 { margin: 9px 0 6px; color: #315673; font: bold 17px var(--font-display); }
.lost-found-card-copy > p { margin: 0; color: #576976; font-size: 9px; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; }
.lost-found-card-copy dl { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 8px; margin: 13px 0 0; }
.lost-found-card-copy dl div { min-width: 0; }
.lost-found-card-copy dt { color: #929da5; font-size: 7px; text-transform: uppercase; letter-spacing: .45px; }
.lost-found-card-copy dd { margin: 3px 0 0; color: #556a79; font-size: 8px; overflow-wrap: anywhere; }
.lost-found-card > footer { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; border-top: 1px solid #e5eaed; background: #fafcfd; }
.lost-found-contact { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.lost-found-contact span { color: #8a969f; font-size: 7px; font-weight: bold; letter-spacing: .5px; }
.lost-found-contact a, .lost-found-contact b { color: #376a92; font-size: 9px; overflow-wrap: anywhere; }
.lost-found-owner-actions { display: flex; gap: 6px; }
.lost-found-footer-actions { display: flex; align-items: center; gap: 7px; }
.lost-found-owner-actions button { border: 1px solid #b9c8d2; background: #f5f8fa; color: #416d8f; padding: 6px 8px; font: bold 8px var(--font-sans); }
.lost-found-owner-actions button.danger { border-color: #d6bcb6; background: #fff7f5; color: #a45248; }
.lost-found-card.returned .lost-found-card-image,
.lost-found-card.returned .lost-found-card-placeholder,
.lost-found-card.returned .lost-found-card-copy { opacity: .58; }

.proposals-hero { background: linear-gradient(135deg, #f7fafc, #edf4f7); border-left: 3px solid #6287a5; }
.proposal-composer { padding: 16px; }
.proposal-composer label { display: block; margin-bottom: 11px; }
.proposal-composer label > span { display: block; margin-bottom: 6px; color: #526779; font-size: 9px; font-weight: bold; }
.proposal-composer input, .proposal-composer textarea { width: 100%; box-sizing: border-box; border: 1px solid #c7d1d9; background: #fff; color: #425666; padding: 9px; outline: 0; font: 10px var(--font-sans); }
.proposal-composer textarea { resize: vertical; line-height: 1.55; }
.proposal-composer input:focus, .proposal-composer textarea:focus { border-color: #6388a7; }
.proposal-composer-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.proposal-composer-actions > span, .proposals-toolbar { color: #84929d; font-size: 8px; }
.proposals-toolbar { display: flex; align-items: center; justify-content: space-between; padding: 2px; text-transform: uppercase; letter-spacing: .35px; }
.proposal-list { display: grid; gap: 9px; }
.proposal-card { display: grid; grid-template-columns: 34px minmax(0,1fr) auto; gap: 13px; align-items: start; padding: 15px; }
.proposal-rank { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: #e7eef3; color: #587590; font: bold 11px var(--font-display); }
.proposal-copy h2 { margin: 0 0 6px; color: #315673; font: bold 16px var(--font-display); }
.proposal-copy p { margin: 0; color: #576976; font-size: 9px; line-height: 1.58; white-space: pre-wrap; overflow-wrap: anywhere; }
.proposal-copy > span { display: block; margin-top: 10px; color: #929da5; font-size: 8px; }
.proposal-copy > span a { color: #507b9e; text-decoration: none; }
.proposal-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 4px; max-width: 190px; }
.proposal-upvote { min-width: 46px; display: inline-flex; align-items: center; justify-content: center; gap: 4px; border: 1px solid #b7c7d2; background: #f5f8fa; color: #527795; padding: 7px 8px; font: bold 9px var(--font-sans); }
.proposal-upvote .ui-icon { width: 13px; height: 13px; }
.proposal-upvote.active { border-color: #6f94b3; background: #e9f2f8; color: #2f638d; }
.proposal-owner-btn { border: 1px solid #b7c7d2; background: #f5f8fa; color: #527795; padding: 7px 8px; font: 8px var(--font-sans); }
.proposal-owner-btn:hover { border-color: #7898b2; color: #315f91; }
.proposal-owner-btn.delete { border-color: #d7b9b3; background: #fff8f6; color: #a14f44; }
.proposal-creator-reply { margin-top: 12px; border: 1px solid #c6d1dc; border-left: 3px solid #627aad; background: #f6f8fb; padding: 9px 10px; }
.proposal-creator-reply header { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; }
.proposal-creator-reply header b { color: #3b5998; font-size: 9px; }
.proposal-creator-reply header small { margin-left: auto; color: #929da5; font-size: 8px; }
.proposal-creator-reply p { color: #485966; }
.proposal-reply-form { margin-top: 11px; border-top: 1px solid #d8dfea; padding-top: 10px; }
.proposal-reply-form > label { display: block; margin-bottom: 5px; color: #526779; font-size: 8px; font-weight: bold; }
.proposal-reply-form textarea { box-sizing: border-box; width: 100%; resize: vertical; border: 1px solid #bdc7d8; background: #fff; color: #333; padding: 8px; font: 10px/1.5 var(--font-sans); }
.proposal-reply-form > div { display: flex; justify-content: flex-end; gap: 6px; margin-top: 6px; }

/* Global search */
.global-search-view { display: grid; gap: 12px; }
.global-search-hero { background: linear-gradient(135deg, #f8fbfd, #edf3f7); border-top: 3px solid #5d82a1; }
.global-search-category-summary { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 6px; }
.global-search-category-summary button { display: flex; align-items: center; justify-content: space-between; gap: 8px; border: 1px solid #cad4dc; background: #f8fafb; color: #547087; padding: 8px 9px; text-align: left; font: bold 8px var(--font-sans); }
.global-search-category-summary button:hover { border-color: #7898b2; background: #edf4f8; color: #315f91; }
.global-search-category-summary button span { display: flex; align-items: center; min-width: 0; }
.global-search-category-summary button .ui-icon { width: 13px; height: 13px; }
.global-search-category-summary button b { min-width: 20px; border-radius: 10px; background: #e5edf3; color: #476b88; padding: 2px 5px; text-align: center; font-size: 8px; }
.global-search-results { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; align-items: start; }
.global-search-section { padding: 0; overflow: hidden; scroll-margin-top: 68px; }
.global-search-section > header { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 11px 13px; border-bottom: 1px solid #e1e7eb; background: #f7f9fa; }
.global-search-section > header div { display: flex; align-items: center; gap: 7px; color: #476a86; }
.global-search-section > header .ui-icon { width: 14px; height: 14px; }
.global-search-section > header h2 { margin: 0; color: #35536d; font: bold 14px var(--font-display); }
.global-search-section > header > span { min-width: 22px; border-radius: 10px; background: #e4ecf2; color: #52728d; padding: 2px 6px; text-align: center; font-size: 8px; }
.global-search-section-list { display: grid; }
.global-search-result { display: grid; grid-template-columns: 31px minmax(0,1fr) auto; gap: 9px; align-items: center; min-height: 57px; padding: 9px 11px; border-bottom: 1px solid #edf0f2; color: inherit; text-decoration: none; }
.global-search-result:hover { background: #f3f7fa; }
.global-search-result-icon { width: 29px; height: 29px; display: grid; place-items: center; border-radius: 50%; background: #e7eef4; color: #547b9d; }
.global-search-result-icon .ui-icon { width: 14px; height: 14px; margin: 0; }
.global-search-result-copy { display: block; min-width: 0; }
.global-search-result-copy b, .global-search-result-copy small, .global-search-result-copy > span { display: block; }
.global-search-result-copy b { color: #355a79; font-size: 9px; line-height: 1.35; overflow-wrap: anywhere; }
.global-search-result-copy small { margin-top: 2px; color: #86939d; font-size: 7px; overflow-wrap: anywhere; }
.global-search-result-copy > span { margin-top: 3px; color: #667987; font-size: 8px; line-height: 1.35; overflow-wrap: anywhere; }
.global-search-result-arrow { color: #8fa0ad; font-size: 12px; }
.global-search-more { display: block; padding: 8px 11px; background: #fafbfc; color: #527b9f; text-align: center; text-decoration: none; font-size: 8px; }
.global-search-empty { margin: 0; padding: 18px 12px; color: #939da5; text-align: center; font-size: 8px; }
.global-search-start { padding: 30px; color: #758693; text-align: center; font-size: 10px; line-height: 1.65; }

/* Moderation */
.moderation-view { display: grid; gap: 13px; }
.moderation-hero { background: linear-gradient(135deg, #f9fbfc, #edf3f7); }
.moderation-stats { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.moderation-stats span { border: 1px solid #d1dbe2; background: rgba(255,255,255,.72); color: #647887; padding: 7px 10px; font-size: 9px; }
.moderation-stats b { color: #294f72; }
.moderation-section { display: grid; gap: 8px; }
.moderation-heading { display: flex; justify-content: space-between; align-items: end; gap: 12px; padding: 5px 2px 2px; }
.moderation-heading h2 { margin: 1px 0 0; color: #344f67; font: bold 18px var(--font-display); }
.moderation-heading .eyebrow { margin: 0; }
.moderation-heading input { width: min(310px, 48%); border: 1px solid #c6d0d7; background: #fbfcfd; color: #425567; padding: 8px 9px; outline: 0; }
.moderation-list { display: grid; gap: 8px; }
.moderation-card { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 13px; align-items: center; padding: 13px 15px; }
.moderation-card h3 { margin: 0 0 4px; color: #35536d; font-size: 11px; }
.moderation-card p { margin: 0; color: #687985; font-size: 9px; line-height: 1.5; overflow-wrap: anywhere; }
.moderation-card small { display: block; margin-top: 5px; color: #929da5; font-size: 8px; }
.moderation-card-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 5px; }
.moderation-card-actions button, .moderation-card-actions a { border: 1px solid #b8c7d2; background: #f7f9fa; color: #376488; padding: 6px 8px; text-decoration: none; font: bold 8px var(--font-sans); }
.moderation-card-actions .danger { border-color: #d5b5af; background: #fff7f5; color: #a64e43; }
.moderation-card-actions .success { border-color: #b6cdbb; background: #f4faf5; color: #4d7956; }
.moderation-empty { padding: 24px; color: #84929d; text-align: center; }
.moderation-user-banned { border-left: 3px solid #ae5b50; }
.moderation-badge { display: inline-block; margin-left: 6px; border-radius: 8px; background: #e9d4d0; color: #924e45; padding: 1px 6px; font-size: 7px; vertical-align: middle; }
.moderation-badge.creator-badge { border: 1px solid #c9a85f; background: #fff5d8; color: #7c5b16; letter-spacing: .35px; }
.moderation-badge.moderator-role-badge { border: 1px solid #abc3d6; background: #eaf3fa; color: #356584; }
.moderation-audit-section { margin-top: 3px; padding-top: 8px; border-top: 1px solid #dfe6eb; }
.moderation-audit-filter { display: flex; align-items: center; gap: 7px; color: #768692; font-size: 8px; }
.moderation-audit-filter select { border: 1px solid #c6d0d7; background: #fbfcfd; color: #425567; padding: 7px 9px; outline: 0; font: inherit; }
.moderation-audit-note { margin: -3px 2px 1px; color: #87949d; font-size: 8px; }
.moderation-audit-card { grid-template-columns: 34px minmax(0,1fr) auto; }
.moderation-audit-icon { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: #e5edf3; color: #426989; }
.moderation-audit-icon .ui-icon { width: 15px; height: 15px; }
.moderation-audit-card h3 { display: flex; align-items: baseline; flex-wrap: wrap; gap: 5px; }
.moderation-audit-card h3 b { color: #284f72; }
.moderation-audit-target { color: #3d698d; text-decoration: none; }
.moderation-audit-target:hover { text-decoration: underline; }
.moderation-audit-meta { min-width: 112px; color: #89959e; text-align: right; font-size: 8px; }
.moderation-audit-meta b { display: block; margin-bottom: 3px; color: #5d7180; font-weight: normal; }
.profile-editor-field small { display: block; margin-top: 3px; color: #8a98a3; font-weight: normal; }

/* Campus events */
.events-toolbar { display: flex; justify-content: space-between; align-items: center; padding: 12px 2px 9px; color: #7d8993; font-size: 9px; }
.events-toolbar label { display: flex; align-items: center; gap: 7px; }
.events-toolbar select { border: 1px solid #c5cfd7; background: #fbfcfd; color: #425567; padding: 6px 8px; outline: 0; font-size: 9px; }
.events-toolbar select:focus { border-color: var(--blue); }
.event-list { display: grid; gap: 10px; }
.campus-event-card { overflow: hidden; }
.campus-event-cover { position: relative; min-height: 174px; display: flex; align-items: flex-end; padding: 18px; background: linear-gradient(135deg, #294d6d, #7895ad); background-size: cover; background-position: center; color: #fff; }
.campus-event-cover::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 25%, rgba(12,25,37,.82)); }
.campus-event-date { position: relative; z-index: 1; width: 50px; padding: 7px 5px; border: 1px solid rgba(255,255,255,.65); background: rgba(18,40,57,.72); text-align: center; }
.campus-event-date b, .campus-event-date span { display: block; }
.campus-event-date b { font: bold 22px/1 var(--font-display); }
.campus-event-date span { margin-top: 4px; font-size: 8px; letter-spacing: .7px; }
.campus-event-cover-copy { position: relative; z-index: 1; min-width: 0; margin-left: 12px; }
.campus-event-cover-copy h2 { margin: 0 0 5px; color: #fff; font: bold 20px var(--font-display); }
.campus-event-cover-copy span { display: block; color: #d9e6ef; font-size: 9px; }
.campus-event-content { padding: 15px 17px 16px; }
.campus-event-description { margin: 0; color: #536574; font-size: 10px; line-height: 1.62; white-space: pre-wrap; overflow-wrap: anywhere; }
.campus-event-footer { display: flex; align-items: center; gap: 10px; margin-top: 14px; padding-top: 12px; border-top: 1px solid #e8ecef; }
.campus-event-author { min-width: 0; margin-right: auto; color: #87939c; font-size: 8px; }
.campus-event-author button { border: 0; background: none; color: #537595; padding: 0; font: bold 8px var(--font-sans); text-align: left; }
.campus-event-author button:hover { color: #294f72; text-decoration: underline; }
.campus-event-author button:focus-visible { outline: 1px dotted #537595; outline-offset: 2px; }
.event-owner-actions { display: flex; align-items: center; gap: 5px; }
.event-owner-btn { border: 1px solid #bac7d1; background: #f6f8fa; color: #557796; padding: 7px 9px; font-size: 8px; }
.event-owner-btn.delete { border-color: #d8c8c3; background: #fbf6f4; color: #9a6258; }
.event-owner-btn:hover { border-color: #819bb1; color: #315f91; }
.event-owner-btn.delete:hover { border-color: #bc8176; color: #b34e43; }
.event-going-btn { border: 1px solid #7899b6; background: #f3f7fa; color: #315f91; padding: 7px 11px; font-size: 9px; }
.event-going-btn.going { border-color: #577d58; background: #edf5eb; color: #4f754f; }
.event-report-btn { display: inline-flex; align-items: center; border: 0; background: none; color: #8996a0; padding: 6px; font-size: 8px; }
.event-report-btn .ui-icon { width: 14px; height: 14px; margin: 0; }
.event-report-btn:hover { color: #a65a50; }
.event-reported-note { padding: 16px; border: 1px solid #dfd4cf; background: #f9f5f3; color: #8a6d62; text-align: center; font-size: 9px; }
.event-editor-card { width: min(620px, 100%); max-height: calc(100vh - 40px); overflow-y: auto; }
.event-image-upload { display: block; margin-top: 16px; cursor: pointer; }
.event-image-upload input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.event-image-preview { min-height: 150px; display: grid; place-items: center; align-content: center; gap: 5px; border: 1px dashed #b9c7d2; background: #f5f8fa center/cover no-repeat; color: #63809a; text-align: center; }
.event-image-preview.has-image { min-height: 220px; border-style: solid; color: transparent; }
.event-image-preview .ui-icon { width: 25px; height: 25px; margin: 0; }
.event-image-preview b { font-size: 10px; }
.event-image-preview small { color: #8d99a3; font-size: 8px; }
.event-remove-image { margin-top: 7px; }
.event-editor-field { display: block; margin-top: 14px; }
.event-editor-field > span, .event-editor-grid label > span { display: block; margin-bottom: 6px; color: #526779; font-size: 9px; font-weight: bold; }
.event-editor-field input, .event-editor-field textarea, .event-editor-grid input { width: 100%; border: 1px solid #c7d1d9; background: #fff; color: #425666; padding: 9px; outline: 0; font: inherit; font-size: 10px; }
.event-editor-field textarea { resize: vertical; }
.event-editor-field input:focus, .event-editor-field textarea:focus, .event-editor-grid input:focus { border-color: #6388a7; }
.event-editor-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 9px; margin-top: 14px; }
.event-privacy-note { margin: 13px 0 10px; color: #87939c; font-size: 8px; line-height: 1.5; }

:root[data-theme="dark"] .directory-hero h1,
:root[data-theme="dark"] .community-profile h1,
:root[data-theme="dark"] .directory-name,
:root[data-theme="dark"] .community-card-name { color: #82acd2; }
:root[data-theme="dark"] .directory-hero > p:not(.eyebrow),
:root[data-theme="dark"] .directory-hero-heading p:not(.eyebrow),
:root[data-theme="dark"] .person-card-copy span,
:root[data-theme="dark"] .person-card-copy small,
:root[data-theme="dark"] .community-card p,
:root[data-theme="dark"] .community-profile p:not(.eyebrow) { color: #a4b0ba; }
:root[data-theme="dark"] .directory-tabs { border-color: #29323a; }
:root[data-theme="dark"] .directory-tabs button { color: #8997a3; }
:root[data-theme="dark"] .directory-tabs button.active { color: #82acd2; border-color: #5685af; }
:root[data-theme="dark"] .directory-tabs button span { background: #1b2a36; color: #82acd2; }
:root[data-theme="dark"] .friend-action,
:root[data-theme="dark"] .community-join { background: #151b21; border-color: #34414c; color: #84add1; }
:root[data-theme="dark"] .friend-status-friend,
:root[data-theme="dark"] .friend-status-outgoing,
:root[data-theme="dark"] .community-join.joined,
:root[data-theme="dark"] .community-join.pending { background: #0c1014; color: #7f8c97; }
:root[data-theme="dark"] .community-join.owner { background: #14202a; color: #8db5d8; }
:root[data-theme="dark"] .community-join.closed { background: #1c1810; border-color: #51462f; color: #c7ad78; }
:root[data-theme="dark"] .friend-status-incoming { background: #315f91; color: #fff; }
:root[data-theme="dark"] .community-cover {
  border-color: #34495a;
  background-color: #172431;
  background-image: linear-gradient(135deg, #172431, #30475a);
  background-size: cover;
  background-position: center center;
}
:root[data-theme="dark"] .community-profile-main > .community-profile-icon { border-color: var(--paper); box-shadow: 0 0 0 1px #39434c; }
:root[data-theme="dark"] .community-rules { background: #10150f; border-color: #2c392a; color: #a5b3a1; }
:root[data-theme="dark"] .community-rules b { color: #c1d0bd; }
:root[data-theme="dark"] .community-join-note { border-color: #313b44; color: #8e9aa4; }
:root[data-theme="dark"] .community-moderation > div { border-color: #29323a; }
:root[data-theme="dark"] .community-moderation > div b,
:root[data-theme="dark"] .community-moderation article > div:nth-child(2) b { color: #b7c8d7; }
:root[data-theme="dark"] .community-moderation article button { background: #151b21; border-color: #34414c; color: #84add1; }
:root[data-theme="dark"] .community-moderation article button.decline { background: #1b1110; border-color: #4f2925; color: #d98e84; }
:root[data-theme="dark"] .community-image-editor { border-color: var(--line); }
:root[data-theme="dark"] .community-editor-grid label > span,
:root[data-theme="dark"] .community-editor-field > span { color: #a9b4be; }
:root[data-theme="dark"] .danger-btn { border-color: #65443e; background: #271917; color: #d78c80; }
:root[data-theme="dark"] .moderation-hero { background: linear-gradient(135deg, #111820, #151f28); }
:root[data-theme="dark"] .moderation-stats span,
:root[data-theme="dark"] .moderation-card { border-color: #2b3741; background: #11171d; color: #b9c4cd; }
:root[data-theme="dark"] .moderation-stats b,
:root[data-theme="dark"] .moderation-heading h2,
:root[data-theme="dark"] .moderation-card h3 { color: #d9e5ef; }
:root[data-theme="dark"] .moderation-card p { color: #a1b0bb; }
:root[data-theme="dark"] .moderation-heading input { border-color: #34414b; background: #0c1116; color: #d8e2ea; }
:root[data-theme="dark"] .moderation-card-actions button,
:root[data-theme="dark"] .moderation-card-actions a { border-color: #3c4a55; background: #182129; color: #9bc0df; }
:root[data-theme="dark"] .moderation-card-actions .danger { border-color: #67423c; background: #2a1917; color: #df8f84; }
:root[data-theme="dark"] .moderation-audit-section { border-color: #28343e; }
:root[data-theme="dark"] .moderation-audit-filter { color: #9aaab5; }
:root[data-theme="dark"] .moderation-audit-filter select { border-color: #34414b; background: #0c1116; color: #d8e2ea; }
:root[data-theme="dark"] .moderation-audit-icon { background: #1d2b36; color: #82acd0; }
:root[data-theme="dark"] .moderation-audit-card h3 b,
:root[data-theme="dark"] .moderation-audit-target { color: #99c1e1; }
:root[data-theme="dark"] .moderation-audit-meta b { color: #acbbc5; }
:root[data-theme="dark"] .moderation-badge.creator-badge { border-color: #725f31; background: #2d2717; color: #e3c36f; }
:root[data-theme="dark"] .moderation-badge.moderator-role-badge { border-color: #385670; background: #172532; color: #91badb; }
:root[data-theme="dark"] .post-community { color: #7398b9; }
:root[data-theme="dark"] .campus-event-description { color: #aeb9c2; }
:root[data-theme="dark"] .campus-event-footer { border-color: var(--line); }
:root[data-theme="dark"] .campus-event-author { color: #8996a1; }
:root[data-theme="dark"] .campus-event-author button { color: #82acd2; }
:root[data-theme="dark"] .events-toolbar select,
:root[data-theme="dark"] .event-owner-btn { background: #151b21; border-color: #34414c; color: #84add1; }
:root[data-theme="dark"] .event-owner-btn.delete { background: #1b1110; border-color: #4f2925; color: #d98e84; }
:root[data-theme="dark"] .event-going-btn { background: #151b21; border-color: #34414c; color: #84add1; }
:root[data-theme="dark"] .event-going-btn.going { background: #111b11; border-color: #3d593e; color: #91bd91; }
:root[data-theme="dark"] .event-image-preview { background-color: #0d1217; border-color: #34414c; color: #88a9c5; }
:root[data-theme="dark"] .event-editor-field > span,
:root[data-theme="dark"] .event-editor-grid label > span { color: #a9b4be; }
:root[data-theme="dark"] .event-reported-note { background: #1b1110; border-color: #4f2925; color: #d98e84; }
:root[data-theme="dark"] .news-hero { background: linear-gradient(135deg, #171711, #121a21); border-top-color: #846b32; }
:root[data-theme="dark"] .news-composer-heading > div,
:root[data-theme="dark"] .news-card > header b,
:root[data-theme="dark"] .news-author-name,
:root[data-theme="dark"] .news-card-body h2,
:root[data-theme="dark"] .lost-found-card-copy h2 { color: #9bc0df; }
:root[data-theme="dark"] .news-composer-heading select,
:root[data-theme="dark"] .news-composer input,
:root[data-theme="dark"] .news-composer textarea,
:root[data-theme="dark"] .lost-found-composer input,
:root[data-theme="dark"] .lost-found-composer textarea,
:root[data-theme="dark"] .lost-found-composer select,
:root[data-theme="dark"] .lost-found-toolbar select { border-color: #34414b; background: #0c1116; color: #d8e2ea; }
:root[data-theme="dark"] .news-card > header,
:root[data-theme="dark"] .lost-found-card > footer { border-color: var(--line); background: #12191f; }
:root[data-theme="dark"] .news-card-body p,
:root[data-theme="dark"] .lost-found-card-copy > p,
:root[data-theme="dark"] .lost-found-card-copy dd { color: #aeb9c2; }
:root[data-theme="dark"] .news-composer-tools > button { color: #8fb3d0; }
:root[data-theme="dark"] .news-file-card { border-color: #3c4a55; background: #182129; color: #9bc0df; }
:root[data-theme="dark"] .news-file-card small { color: #8996a1; }
:root[data-theme="dark"] .news-file-card em { color: #91badb; }
:root[data-theme="dark"] .lost-found-grid label > span { color: #a9b4be; }
:root[data-theme="dark"] .lost-found-image-preview { border-color: #34414b; background-color: #111820; }
:root[data-theme="dark"] .lost-found-card-image,
:root[data-theme="dark"] .lost-found-card-placeholder { background-color: #17212a; }
:root[data-theme="dark"] .lost-found-card-placeholder { color: #6f91ad; background: linear-gradient(145deg, #17212a, #11181e); }
:root[data-theme="dark"] .lost-found-kind { border-color: #35563d; background: #142219; color: #8fbd98; }
:root[data-theme="dark"] .lost-found-kind.lost { border-color: #65452e; background: #261b13; color: #d5a27c; }
:root[data-theme="dark"] .lost-found-status { border-color: #3d4952; background: #1b2329; color: #9caab4; }
:root[data-theme="dark"] .lost-found-contact a,
:root[data-theme="dark"] .lost-found-contact b { color: #91badb; }
:root[data-theme="dark"] .lost-found-owner-actions button { border-color: #3c4a55; background: #182129; color: #9bc0df; }
:root[data-theme="dark"] .lost-found-owner-actions button.danger { border-color: #67423c; background: #2a1917; color: #df8f84; }
:root[data-theme="dark"] .proposals-hero { background: linear-gradient(135deg, #111820, #15212a); border-left-color: #527b9d; }
:root[data-theme="dark"] .proposal-composer label > span { color: #a9b4be; }
:root[data-theme="dark"] .proposal-composer input,
:root[data-theme="dark"] .proposal-composer textarea { border-color: #34414b; background: #0c1116; color: #d8e2ea; }
:root[data-theme="dark"] .proposal-rank { background: #1d2b36; color: #8fb3d0; }
:root[data-theme="dark"] .proposal-copy h2 { color: #9bc0df; }
:root[data-theme="dark"] .proposal-copy p { color: #aeb9c2; }
:root[data-theme="dark"] .proposal-copy > span a { color: #91badb; }
:root[data-theme="dark"] .proposal-upvote { border-color: #3c4a55; background: #182129; color: #9bc0df; }
:root[data-theme="dark"] .proposal-upvote.active { border-color: #496f8e; background: #172837; color: #a8d0ef; }
:root[data-theme="dark"] .proposal-owner-btn { border-color: #3c4a55; background: #182129; color: #9bc0df; }
:root[data-theme="dark"] .proposal-owner-btn.delete { border-color: #67423c; background: #2a1917; color: #df8f84; }
:root[data-theme="dark"] .proposal-creator-reply { border-color: #3c4a55; border-left-color: #7890c0; background: #171d25; }
:root[data-theme="dark"] .proposal-creator-reply header b { color: #b7c8e8; }
:root[data-theme="dark"] .proposal-creator-reply p { color: #c5cbd3; }
:root[data-theme="dark"] .proposal-reply-form { border-color: #343a46; }
:root[data-theme="dark"] .proposal-reply-form > label { color: #a9b4be; }
:root[data-theme="dark"] .proposal-reply-form textarea { border-color: #485161; background: #17191e; color: #e1e4ea; }
:root[data-theme="dark"] .global-search-hero { background: linear-gradient(135deg, #111820, #15212a); border-top-color: #527b9d; }
:root[data-theme="dark"] .global-search-category-summary button,
:root[data-theme="dark"] .global-search-section > header,
:root[data-theme="dark"] .global-search-more { border-color: #2d3943; background: #12191f; color: #91badb; }
:root[data-theme="dark"] .global-search-category-summary button:hover,
:root[data-theme="dark"] .global-search-result:hover { background: #17212a; }
:root[data-theme="dark"] .global-search-category-summary button b,
:root[data-theme="dark"] .global-search-section > header > span,
:root[data-theme="dark"] .global-search-result-icon { background: #1d2b36; color: #8fb5d4; }
:root[data-theme="dark"] .global-search-section > header { border-bottom-color: var(--line); }
:root[data-theme="dark"] .global-search-section > header h2,
:root[data-theme="dark"] .global-search-result-copy b { color: #a8cae5; }
:root[data-theme="dark"] .global-search-result { border-bottom-color: #222c34; }
:root[data-theme="dark"] .global-search-result-copy > span { color: #a3b0ba; }

@media (max-width: 680px) {
  .person-card, .community-card { grid-template-columns: 48px 1fr; }
  .directory-avatar, .community-card-icon { width: 48px; height: 48px; }
  .person-card-actions, .community-card > .community-join { grid-column: 2; text-align: left; justify-self: start; }
  .person-card-actions .friend-secondary { margin-left: 0; }
  .community-profile { grid-template-columns: 58px 1fr; }
  .community-profile-main { grid-template-columns: 58px 1fr; }
  .community-profile-icon { width: 58px; height: 58px; }
  .community-profile-main > .community-join { grid-column: 2; justify-self: start; }
  .community-rules, .community-composer { align-items: stretch; flex-direction: column; }
  .directory-hero-heading { display: block; }
  .directory-hero-heading > .publish-btn { margin-bottom: 14px; }
  .community-image-editor, .community-editor-grid { grid-template-columns: 1fr; }
  .event-editor-grid { grid-template-columns: 1fr; }
  .campus-event-cover { min-height: 150px; padding: 14px; }
  .campus-event-cover-copy h2 { font-size: 17px; }
  .campus-event-footer { align-items: flex-start; flex-wrap: wrap; }
  .campus-event-author { width: 100%; }
  .community-moderation article { grid-template-columns: 30px 1fr; }
  .community-moderation article button { grid-column: 2; justify-self: start; }
  .moderation-heading { align-items: stretch; flex-direction: column; }
  .moderation-heading input, .moderation-audit-filter { width: 100%; box-sizing: border-box; }
  .moderation-card { grid-template-columns: 1fr; }
  .moderation-card-actions { justify-content: flex-start; }
  .moderation-audit-card { grid-template-columns: 32px minmax(0,1fr); }
  .moderation-audit-meta { grid-column: 2; text-align: left; }
  .news-composer-heading, .news-composer-actions, .lost-found-toolbar, .lost-found-card > footer { align-items: stretch; flex-direction: column; }
  .news-composer-heading select { width: 100%; }
  .news-composer-actions .publish-btn { align-self: flex-end; }
  .news-composer-tools { flex-wrap: wrap; }
  .lost-found-grid, .lost-found-card { grid-template-columns: 1fr; }
  .lost-found-grid .wide { grid-column: auto; }
  .lost-found-card-image, .lost-found-card-placeholder { min-height: 190px; }
  .lost-found-card-copy dl { grid-template-columns: 1fr; }
  .lost-found-card > footer { grid-column: auto; }
  .lost-found-owner-actions { flex-wrap: wrap; }
  .lost-found-footer-actions { align-items: flex-start; }
  .proposal-composer-actions { align-items: stretch; flex-direction: column; }
  .proposal-composer-actions .publish-btn { align-self: flex-end; }
  .proposal-card { grid-template-columns: 30px minmax(0,1fr); }
  .proposal-actions { grid-column: 2; justify-content: flex-start; max-width: none; }
  .proposal-creator-reply header { flex-wrap: wrap; }
  .proposal-creator-reply header small { width: 100%; margin-left: 0; }
  .global-search-category-summary, .global-search-results { grid-template-columns: 1fr; }
  .content-page-grid { grid-template-columns: 1fr; }
  .content-page-hero { padding: 20px; }
  .content-page-hero h1 { font-size: 23px; }
  .rule-card { grid-template-columns: 34px 1fr; padding: 15px; }
  .rule-card > span { width: 31px; height: 31px; }
}

/* Responsive old Facebook / VK layout refresh */
img, video, canvas { max-width: 100%; }
button, input, textarea, select { min-width: 0; }
.layout > *, .feed > *, .panel > * { min-width: 0; }
.panel, .modal-card, button, input, textarea, select { border-radius: 1px; }

.topbar { position: sticky; top: 0; z-index: 40; }
.topbar-inner, .layout { width: min(1180px, calc(100% - 28px)); }
.layout { grid-template-columns: minmax(176px, 205px) minmax(0, 1fr) minmax(225px, 265px); gap: 16px; }
.app-topbar { gap: clamp(14px, 3vw, 38px); }
.search-box { flex: 0 1 330px; }
.header-nav { flex: 0 0 auto; }
.feed { overflow: clip; }

.wall-profile { isolation: isolate; }
.wall-cover,
.wall-cover.has-profile-banner {
  height: clamp(150px, 18vw, 190px);
  background-position: center center;
  transition: none;
}
.wall-profile-main {
  position: relative;
  display: grid;
  grid-template-columns: 92px minmax(120px, 1fr) auto auto;
  gap: 14px;
  align-items: end;
  margin-top: -38px;
  padding: 0 18px 17px;
}
.wall-profile-avatar {
  width: 92px;
  height: 92px;
  box-sizing: border-box;
  z-index: 1;
}
.wall-profile-info { min-width: 0; padding: 44px 0 2px; }
.wall-profile-info h1 { overflow-wrap: anywhere; line-height: 1.12; }
.wall-profile-info p { overflow-wrap: anywhere; }
.wall-profile-stats { margin: 0; padding: 0 0 3px; white-space: nowrap; }
.edit-profile-btn { margin: 0; white-space: nowrap; }

.community-cover,
.community-profile.has-community-banner .community-cover {
  height: clamp(135px, 16vw, 165px);
  background-position: center center;
  transition: none;
}
.community-profile-main { grid-template-columns: 78px minmax(0, 1fr) auto; }
.community-profile-main > .community-profile-icon { width: 78px; height: 78px; box-sizing: border-box; }

.campus-event-cover-copy h2,
.campus-event-cover-copy span { overflow-wrap: anywhere; }
.campus-event-footer,
.event-owner-actions,
.profile-editor-actions,
.community-editor-actions,
.lost-found-actions,
.lost-found-footer-actions,
.moderation-card-actions { flex-wrap: wrap; }
.event-owner-actions { justify-content: flex-end; }
.campus-event-author { flex: 1 1 130px; }
.event-going-btn, .event-owner-btn, .edit-profile-btn { min-height: 30px; }

:root:not([data-theme="dark"]) input[type="date"],
:root:not([data-theme="dark"]) input[type="datetime-local"],
:root:not([data-theme="dark"]) input[type="time"] {
  color-scheme: light;
  background-color: #fff;
  color: #425666;
}
:root[data-theme="dark"] input[type="date"],
:root[data-theme="dark"] input[type="datetime-local"],
:root[data-theme="dark"] input[type="time"] {
  color-scheme: dark;
  background-color: #0c1116;
  color: #d8e2ea;
}
input[type="date"]::-webkit-calendar-picker-indicator,
input[type="datetime-local"]::-webkit-calendar-picker-indicator,
input[type="time"]::-webkit-calendar-picker-indicator { opacity: .72; cursor: pointer; }

.modal { z-index: 50; }
.modal-card { max-height: calc(100dvh - 28px); overflow-y: auto; }
.image-crop-modal { z-index: 70; }
.image-crop-card { width: min(680px, 100%); overflow: auto; }
.image-crop-card h2 { margin-bottom: 6px; }
.image-crop-hint { margin: 0 26px 16px 0; color: var(--muted); font-size: 10px; line-height: 1.55; }
.image-crop-viewport {
  --crop-aspect: 1;
  position: relative;
  width: 100%;
  aspect-ratio: var(--crop-aspect);
  overflow: hidden;
  border: 1px solid #6f8599;
  background-color: #dfe5ea;
  background-image: linear-gradient(45deg, rgba(255,255,255,.4) 25%, transparent 25%), linear-gradient(-45deg, rgba(255,255,255,.4) 25%, transparent 25%), linear-gradient(45deg, transparent 75%, rgba(255,255,255,.4) 75%), linear-gradient(-45deg, transparent 75%, rgba(255,255,255,.4) 75%);
  background-size: 18px 18px;
  background-position: 0 0, 0 9px, 9px -9px, -9px 0;
  cursor: grab;
  touch-action: none;
  user-select: none;
  outline: 6px solid rgba(20, 42, 62, .12);
  outline-offset: -6px;
}
.image-crop-viewport:active { cursor: grabbing; }
.image-crop-viewport:focus-visible { outline: 2px solid #79a8d5; outline-offset: 2px; }
.image-crop-viewport img { position: absolute; left: 50%; top: 50%; max-width: none; pointer-events: none; user-select: none; transform: translate(-50%, -50%); }
.image-crop-grid { position: absolute; inset: 0; border: 1px solid rgba(255,255,255,.72); box-shadow: inset 0 0 0 1px rgba(25,43,59,.24); pointer-events: none; background-image: linear-gradient(to right, transparent 33.1%, rgba(255,255,255,.42) 33.1%, rgba(255,255,255,.42) 33.6%, transparent 33.6%, transparent 66.2%, rgba(255,255,255,.42) 66.2%, rgba(255,255,255,.42) 66.7%, transparent 66.7%), linear-gradient(to bottom, transparent 33.1%, rgba(255,255,255,.42) 33.1%, rgba(255,255,255,.42) 33.6%, transparent 33.6%, transparent 66.2%, rgba(255,255,255,.42) 66.2%, rgba(255,255,255,.42) 66.7%, transparent 66.7%); }
.image-crop-zoom { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 14px; margin-top: 15px; color: #536a7d; font-size: 9px; font-weight: bold; }
.image-crop-zoom input { width: 100%; accent-color: var(--blue); }
.image-crop-actions { display: flex; justify-content: flex-end; align-items: center; gap: 12px; margin-top: 16px; }
.image-crop-actions .text-btn { margin: 0; }
.image-crop-actions .primary-btn { width: auto; padding-left: 22px; padding-right: 22px; }
:root[data-theme="dark"] .image-crop-viewport { border-color: #445767; background-color: #11181e; outline-color: rgba(0,0,0,.28); }
:root[data-theme="dark"] .image-crop-hint,
:root[data-theme="dark"] .image-crop-zoom { color: #99a8b4; }

@media (max-width: 1040px) {
  .layout { grid-template-columns: minmax(176px, 200px) minmax(0, 1fr); }
  .right-sidebar { display: none; }
  .login-main { gap: 45px; }
}

@media (max-width: 760px) {
  body { font-size: 14px; }
  .topbar { height: auto; }
  .topbar-inner { width: min(100% - 18px, 620px); }
  .app-topbar { min-height: 54px; height: auto; flex-wrap: wrap; gap: 7px 10px; padding: 8px 0; }
  .app-topbar .brand { order: 1; font-size: 22px; }
  .header-nav { order: 2; margin-left: auto; }
  .search-box { order: 3; flex: 1 0 100%; width: 100%; height: 34px; }
  .search-box input { width: auto; font-size: 16px; }
  .header-nav .theme-toggle { display: inline-flex; }
  .notification-panel { top: 97px; }
  .layout { display: block; width: min(100% - 16px, 620px); }
  .left-sidebar, .right-sidebar { display: none; }
  .feed { padding-top: 10px; overflow: visible; }
  .panel { box-shadow: none; }

  .directory-hero, .teachers-hero, .schedule-hero, .content-page-hero { padding: 17px; }
  .directory-hero-heading { display: flex; flex-direction: column; gap: 10px; }
  .directory-hero-heading > .publish-btn { align-self: stretch; margin: 0; }
  .directory-tabs, .feed-tabs { overflow-x: auto; scrollbar-width: thin; }
  .directory-tabs button, .feed-tabs button { flex: 0 0 auto; }

  .wall-cover, .wall-cover.has-profile-banner { height: clamp(120px, 38vw, 150px); }
  .wall-profile-main {
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 11px;
    align-items: end;
    margin-top: -32px;
    padding: 0 12px 14px;
  }
  .wall-profile-avatar { width: 72px; height: 72px; border-width: 3px; font-size: 17px; }
  .wall-profile-info { padding: 37px 0 0; }
  .wall-profile-info h1 { font-size: 19px; }
  .wall-profile-info p { font-size: 9px; }
  .wall-profile-stats { grid-column: 1 / -1; width: 100%; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); padding: 11px 0 0; }
  .edit-profile-btn { grid-column: 1 / -1; width: 100%; margin: 0; }
  .profile-details { padding: 0 12px 12px; }
  .profile-details-empty { margin: 0 12px 12px; }

  .community-cover, .community-profile.has-community-banner .community-cover { height: clamp(115px, 36vw, 145px); }
  .community-profile-main { grid-template-columns: 62px minmax(0, 1fr); gap: 11px; padding: 0 13px 15px; }
  .community-profile-main > .community-profile-icon { width: 62px; height: 62px; margin-top: -25px; border-width: 3px; }
  .community-profile-main > .community-join { grid-column: 1 / -1; width: 100%; justify-self: stretch; }

  .campus-event-cover { min-height: 145px; padding: 13px; }
  .campus-event-date { width: 46px; flex: 0 0 auto; }
  .campus-event-cover-copy { margin-left: 10px; }
  .campus-event-cover-copy h2 { font-size: 17px; line-height: 1.15; }
  .campus-event-content { padding: 13px; }
  .campus-event-footer { align-items: stretch; gap: 7px; }
  .campus-event-author { flex: 1 0 100%; width: auto; }
  .event-owner-actions { flex: 1 1 auto; justify-content: flex-start; }
  .event-going-btn { flex: 1 1 auto; }
  .events-toolbar { align-items: flex-start; flex-direction: column; gap: 7px; }

  .modal { padding: 8px; }
  .modal-card, .profile-editor-card, .community-editor-card, .event-editor-card { width: 100%; max-height: calc(100dvh - 16px); padding: 18px 15px; }
  .modal-card h2 { padding-right: 20px; font-size: 20px; }
  .profile-editor-actions, .community-editor-actions, .image-crop-actions { align-items: stretch; gap: 8px; }
  .profile-editor-actions .primary-btn, .community-editor-actions .primary-btn, .image-crop-actions .primary-btn { flex: 1 1 auto; }
  .profile-image-editor, .community-image-editor { grid-template-columns: minmax(0, 1fr) auto; }
  .image-upload-field input { max-width: 100%; }
  .event-editor-field input, .event-editor-field textarea, .event-editor-grid input,
  .profile-name-editor input, .profile-academic-editor input, .profile-academic-editor select,
  .community-editor-field input, .community-editor-field textarea, .community-editor-field select { font-size: 16px; }
  .image-crop-card { width: min(100%, 620px); }
}

@media (max-width: 430px) {
  .layout { width: 100%; }
  .feed { padding-top: 8px; }
  .panel { border-left: 0; border-right: 0; }
  .post, .composer { padding-left: 12px; padding-right: 12px; }
  .header-nav button { padding: 7px; }
  .header-nav .mini-avatar { margin-left: 3px; }
  .notification-panel { left: 8px; right: 8px; width: auto; }
  .profile-image-editor, .community-image-editor { grid-template-columns: 1fr; }
  .profile-editor-actions, .community-editor-actions, .image-crop-actions { flex-direction: column-reverse; }
  .profile-editor-actions > *, .community-editor-actions > *, .image-crop-actions > * { width: 100% !important; }
  .event-owner-actions { width: 100%; }
  .event-owner-btn { flex: 1 1 auto; }
  .event-going-btn { width: 100%; }
  .person-card-actions { min-width: 0; }
}

/* footdiary classic social skin — Facebook / VK circa 2008 */
:root {
  --blue: #3b5998;
  --blue-dark: #29447e;
  --blue-light: #eceff5;
  --ink: #333;
  --muted: #777;
  --line: #d8dfea;
  --paper: #fff;
  --bg: #f2f2f2;
  --accent: #d83b32;
  --font-sans: Tahoma, Verdana, Arial, sans-serif;
  --font-display: Tahoma, Verdana, Arial, sans-serif;
}

:root[data-theme="dark"] {
  --blue: #8ca6d7;
  --blue-dark: #5873a8;
  --blue-light: #20283a;
  --ink: #e1e4ea;
  --muted: #9da3ad;
  --line: #343a46;
  --paper: #17191e;
  --bg: #101216;
  --accent: #e05a50;
}

html { background: var(--bg); }
body {
  font: 12px/1.45 Tahoma, Verdana, Arial, sans-serif;
  letter-spacing: 0;
  background: var(--bg);
  color: var(--ink);
  transition: none;
}
button, input, textarea, select { font-family: Tahoma, Verdana, Arial, sans-serif; }
button, input, textarea, select, .panel, .modal-card, .avatar, .comment-avatar,
.community-icon, .directory-avatar, .community-card-icon, .community-profile-icon,
.notification-panel, .notification-kind, .integration-badge, .badge { border-radius: 0 !important; }
button { line-height: 1.25; }
a, .post-author, .directory-name, .community-card-name, .mention-link { color: #3b5998; }
.panel { border: 1px solid #d8dfea; background: #fff; box-shadow: none; }

.topbar {
  height: 44px;
  min-height: 44px;
  background: linear-gradient(#4b67a1, #3b5998);
  border-bottom: 1px solid #1d2a4b;
  box-shadow: inset 0 -1px rgba(0,0,0,.12);
}
.topbar-inner, .layout { width: min(1100px, calc(100% - 24px)); }
.app-topbar { gap: 26px; }
.brand {
  color: #fff;
  font: 700 24px/1 "Trebuchet MS", Tahoma, Arial, sans-serif;
  letter-spacing: -1.2px;
  text-shadow: 0 1px #253b68;
}
.brand span { color: #c7d3ea; }
.topbar-note { color: #d8e0f0; border-color: #7187b5; font-size: 9px; }
.search-box {
  width: 310px;
  height: 26px;
  border: 1px solid #253c70;
  background: #fff;
  box-shadow: inset 0 1px 2px rgba(0,0,0,.12);
}
.search-box input { color: #333; font-size: 11px; }
.search-box input::placeholder { color: #777; }
.search-box input::-webkit-search-cancel-button { filter: none; }
.search-box button { width: 30px; color: #6d7f9f; border-right: 1px solid #d8dfea; }
.search-box button:hover { color: #3b5998; background: #eceff5; }
.header-nav { gap: 1px; }
.header-nav > button { height: 31px; min-width: 31px; padding: 6px; color: #d8e0f0; border: 1px solid transparent; }
.header-nav > button:hover { color: #fff; background: #314b82; border-color: #294173; }
.header-nav .mini-avatar { width: 28px; height: 28px; margin-left: 6px; border: 1px solid #263d70; background-color: #d8dfea; color: #3b5998; }
.badge { top: -2px; right: -1px; padding: 1px 4px; border: 1px solid #fff; background: #d83b32; font-size: 8px; }

.layout { grid-template-columns: 190px minmax(0, 1fr) 245px; gap: 14px; }
.left-sidebar { padding-top: 14px; }
.feed, .right-sidebar { padding-top: 14px; }
.profile-summary { gap: 9px; padding: 0 6px 12px; border-bottom: 1px solid #d8dfea; }
.profile-summary .avatar { width: 48px; height: 48px; border: 1px solid #9aa9c2; background-color: #d8dfea; color: #3b5998; }
.profile-summary strong { color: #333; font-size: 11px; }
.profile-summary small { color: #777; font-size: 9px; line-height: 1.45; }
.side-nav { padding-top: 7px; }
.side-nav a {
  height: 29px;
  gap: 8px;
  padding: 0 7px;
  border-left: 3px solid transparent;
  color: #3b5998;
  font-size: 11px;
}
.side-nav a:hover { background: #eceff5; color: #3b5998; }
.side-nav a.active { padding-left: 7px; border-left-color: #3b5998; background: #d8dfea; color: #1f3d70; }
.side-nav a span { width: 15px; color: #627aad; font-size: 13px; }
.sidebar-divider { margin: 13px 7px; background: #d8dfea; }
.side-label { padding: 0 7px; color: #777; font-size: 8px; letter-spacing: .5px; }
.community-link { padding: 6px 7px; color: #3b5998; font-size: 10px; }
.community-icon { width: 27px; height: 27px; }

.panel-heading, .card-title {
  min-height: 28px;
  padding: 7px 10px;
  border-bottom: 1px solid #d8dfea;
  background: #f7f7f7;
  color: #3b5998;
  font-size: 9px;
  font-weight: bold;
  letter-spacing: .4px;
}
.eyebrow { color: #627aad; font-size: 9px; letter-spacing: 1.2px; }
.feed-intro { padding: 0 1px 9px; }
.feed-intro b { color: #3b5998; font-size: 10px; }
.feed-intro div span, .feed-intro .recommendation-note { color: #777; }
.composer { padding: 11px; }
.composer-row { gap: 9px; }
.avatar.small { width: 36px; height: 36px; }
.composer textarea {
  min-height: 48px;
  border: 1px solid #bdc7d8;
  background: #fff;
  color: #333;
  padding: 8px;
  font-size: 11px;
}
.composer textarea:focus { border-color: #6d84b4; box-shadow: inset 0 0 0 1px #eceff5; }
.composer-actions { margin: 8px 0 0 45px; }
.composer-actions button { color: #627aad; font-size: 9px; }
.composer-actions .publish-btn, .publish-btn, .primary-btn {
  border: 1px solid #29447e;
  background: linear-gradient(#637bad, #4f67a1 45%, #3b5998);
  color: #fff;
  box-shadow: inset 0 1px rgba(255,255,255,.25);
  text-shadow: 0 -1px #29447e;
  font-weight: bold;
}
.composer-actions .publish-btn:hover, .publish-btn:hover, .primary-btn:hover { background: #3b5998; }
.feed-tabs { margin: 10px 0; border-bottom: 1px solid #d8dfea; }
.feed-tabs button { padding: 8px 12px; color: #777; font-size: 10px; }
.feed-tabs button.active { border-color: #3b5998; color: #3b5998; }
.public-feed-rule { border-color: #d8dfea; background: #f7f7f7; color: #777; }

.post { margin-bottom: 10px; padding: 12px; }
.post-header { align-items: flex-start; gap: 9px; }
.post-header .avatar { width: 40px; height: 40px; border: 1px solid #9aa9c2; }
.post-author { color: #3b5998; font-size: 11px; }
.post-meta { margin-top: 2px; color: #777; font-size: 8px; }
.post-body { margin: 10px 0 11px 49px; color: #333; font-size: 11px; line-height: 1.55; }
.post-media, .post-uploaded-media { margin-left: 49px; }
.post-actions { margin-left: 49px; padding: 8px 0 0; border-top: 1px solid #e9e9e9; gap: 16px; }
.post-actions button { color: #627aad; font-size: 9px; }
.post-comments { margin: 8px 0 0 49px; padding: 5px 8px 8px; border: 1px solid #d8dfea; background: #eceff5; }
.comment { border-bottom-color: #d8dfea; }
.comment-avatar { background: #d8dfea; color: #3b5998; border: 1px solid #bdc7d8; }
.comment-body { color: #333; font-size: 10px; }
.comment-body b { color: #3b5998; }
.comment-form input, .comment-reply-form input { border: 1px solid #bdc7d8; background: #fff; color: #333; }

.directory-hero, .teachers-hero, .schedule-hero, .content-page-hero {
  padding: 15px;
  border-top: 4px solid #3b5998;
  background: #fff;
}
.directory-hero h1, .teachers-hero h1, .schedule-hero h1, .content-page-hero h1,
.community-profile h1, .wall-profile-info h1, .modal-card h2, .otp-heading, .schedule-empty h2 {
  color: #1f3d70;
  font-family: Tahoma, Verdana, Arial, sans-serif;
  font-weight: bold;
  letter-spacing: 0;
  text-shadow: none;
}
.directory-hero h1, .teachers-hero h1, .schedule-hero h1, .content-page-hero h1 { font-size: 22px; }
.directory-hero > p:not(.eyebrow), .directory-hero-heading p:not(.eyebrow),
.teachers-hero > p:not(.eyebrow), .schedule-hero > p:not(.eyebrow), .content-page-hero > p:not(.eyebrow) { color: #777; font-size: 10px; }
.directory-hero input, .teacher-search-row input, .teacher-search-row select,
.schedule-settings input, .schedule-settings select, .events-toolbar select,
.lost-found-toolbar select, .news-composer input, .news-composer textarea,
.lost-found-composer input, .lost-found-composer textarea, .lost-found-composer select {
  border-color: #bdc7d8;
  background: #fff;
  color: #333;
}
.directory-tabs { border-bottom-color: #d8dfea; }
.directory-tabs button { color: #777; }
.directory-tabs button.active { color: #3b5998; border-color: #3b5998; }
.person-card, .community-card, .teacher-card, .lesson, .moderation-card,
.moderation-audit-card, .proposal-card { border-color: #d8dfea; box-shadow: none; }
.person-card, .community-card { padding: 11px; }
.directory-avatar, .community-card-icon { border: 1px solid #9aa9c2; background-color: #d8dfea; color: #3b5998; }
.friend-action, .friend-secondary, .community-join, .rate-btn, .event-going-btn,
.event-owner-btn, .load-more, .text-action-btn {
  border: 1px solid #999;
  background: linear-gradient(#fff, #e9e9e9);
  color: #333;
  box-shadow: none;
  text-shadow: none;
}
.friend-action:hover, .community-join:hover, .rate-btn:hover, .event-going-btn:hover,
.event-owner-btn:hover, .load-more:hover { border-color: #6d84b4; color: #3b5998; }
.friend-status-incoming, .event-going-btn.going {
  border-color: #29447e;
  background: linear-gradient(#637bad, #3b5998);
  color: #fff;
}

.wall-profile { border-color: #d8dfea; background: #fff; }
.wall-cover, .wall-cover.has-profile-banner { border-bottom-color: #9aa9c2; background-color: #6d84b4; }
.wall-profile-avatar { border-color: #fff; box-shadow: 0 0 0 1px #9aa9c2; background-color: #d8dfea; color: #3b5998; }
.wall-profile-info h1 { color: #1f3d70; font-size: 19px; }
.wall-nickname { color: #627aad; }
.wall-profile-info p, .wall-profile-stats span { color: #777; }
.wall-profile-stats b { color: #3b5998; font-family: Tahoma, Verdana, Arial, sans-serif; font-size: 14px; }
.edit-profile-btn { border: 1px solid #999; background: linear-gradient(#fff, #e9e9e9); color: #3b5998; }
.profile-detail-card, .profile-details-empty { border-color: #d8dfea; background: #f7f7f7; }
.profile-detail-card > span, .wall-heading { color: #777; }
.profile-detail-card p { color: #333; }
.favorite-item { border-color: #d8dfea; color: #3b5998; }

.community-profile { border-color: #d8dfea; }
.community-cover { border-color: #9aa9c2; }
.community-profile-main > .community-profile-icon { border-color: #fff; box-shadow: 0 0 0 1px #9aa9c2; }
.community-rules { border-color: #c4d2b4; background: #f4f7ef; }

.campus-event-card { border-color: #d8dfea; }
.campus-event-cover { min-height: 154px; }
.campus-event-cover::after { background: linear-gradient(180deg, transparent 30%, rgba(20,29,49,.84)); }
.campus-event-cover-copy h2 { font-family: Tahoma, Verdana, Arial, sans-serif; font-size: 17px; }
.campus-event-date { border-color: #d8dfea; background: rgba(42,61,99,.88); }
.campus-event-date b { font-family: Tahoma, Verdana, Arial, sans-serif; }
.campus-event-content { padding: 12px; }
.campus-event-description { color: #555; font-size: 10px; }
.campus-event-footer { border-top-color: #e9e9e9; }
.event-owner-btn.delete { border-color: #c8a7a3; background: #fff; color: #a13d35; }

.modal-backdrop { background: rgba(16,24,40,.68); }
.modal-card { border: 6px solid rgba(82,101,140,.45); background: #fff; padding: 18px; box-shadow: 0 0 0 1px #1f2d4d; }
.modal-card h2 { color: #1f3d70; font-size: 18px; }
.modal-close { color: #627aad; }
.profile-editor-card h2 { margin-bottom: 14px; }
.profile-image-editor, .profile-editor-lists, .profile-editor-list, .rating-question { border-color: #d8dfea; }
.image-upload-field { border-color: #9aa9c2; background: #f7f7f7; color: #333; }
.profile-name-editor label > span, .profile-academic-editor label > span,
.event-editor-field > span, .event-editor-grid label > span,
.community-editor-field > span, .community-editor-grid label > span,
.profile-editor-field { color: #333; }
.profile-name-editor input, .profile-academic-editor input, .profile-academic-editor select,
.event-editor-field input, .event-editor-field textarea, .event-editor-grid input,
.community-editor-field input, .community-editor-field textarea, .community-editor-field select,
.profile-editor-card textarea, .profile-editor-card select {
  border-color: #bdc7d8;
  background: #fff;
  color: #333;
}
.event-image-preview { border-color: #9aa9c2; background-color: #f7f7f7; color: #627aad; }
.image-crop-viewport { border-color: #3b5998; outline-color: rgba(59,89,152,.2); }

.notification-panel { top: 38px; border-color: #9aa9c2; box-shadow: 0 4px 12px rgba(0,0,0,.25); }
.notification-panel > header, .notification-settings, .notification-settings-link { border-color: #d8dfea; background: #f7f7f7; }
.header-nav .notification-item { border-color: #d8dfea; background: #fff; color: #333; }
.header-nav .notification-item:hover, .header-nav .notification-item.unread { background: #eceff5; }
.notification-kind { background: #d8dfea; color: #3b5998; }
.right-sidebar .panel { margin-bottom: 10px; }
.stat strong { color: #3b5998; font-family: Tahoma, Verdana, Arial, sans-serif; }
.app-footer { color: #777; }
.app-footer a { color: #3b5998; }

.login-screen { background: #f2f2f2; }
.login-main { width: min(980px, calc(100% - 36px)); gap: 70px; padding: 54px 0; }
.intro h1 { color: #1f3d70; font: bold 38px/1.12 Tahoma, Verdana, Arial, sans-serif; letter-spacing: -1px; }
.intro-copy { color: #555; font: 14px/1.6 Tahoma, Verdana, Arial, sans-serif; }
.feature-list { border-color: #d8dfea; }
.feature-list > div { border-color: #d8dfea; }
.feature-list span { color: #627aad; font-family: Tahoma, Verdana, Arial, sans-serif; }
.login-card { border-color: #9aa9c2; box-shadow: none; }
.login-card input, .login-card select, .nickname-input { border-color: #bdc7d8; background: #fff; color: #333; }
.secure-note { background: #f7f7f7; border-color: #d8dfea; }

:root[data-theme="dark"] body,
:root[data-theme="dark"] .login-screen { background: #101216; color: #e1e4ea; }
:root[data-theme="dark"] .topbar { background: linear-gradient(#273859, #1c2944); border-color: #0a0e17; }
:root[data-theme="dark"] .search-box { border-color: #0d1525; background: #fff; }
:root[data-theme="dark"] .search-box input { background: #fff; color: #222; }
:root[data-theme="dark"] .search-box button { background: #fff; color: #6d7f9f; }
:root[data-theme="dark"] .search-box button:hover { background: #eceff5; color: #3b5998; }
:root[data-theme="dark"] .search-box input::placeholder { color: #777; }
:root[data-theme="dark"] .panel,
:root[data-theme="dark"] .modal-card,
:root[data-theme="dark"] .wall-profile,
:root[data-theme="dark"] .community-profile { border-color: #343a46; background: #17191e; }
:root[data-theme="dark"] .panel-heading,
:root[data-theme="dark"] .card-title,
:root[data-theme="dark"] .public-feed-rule,
:root[data-theme="dark"] .profile-detail-card,
:root[data-theme="dark"] .profile-details-empty,
:root[data-theme="dark"] .image-upload-field,
:root[data-theme="dark"] .notification-panel > header,
:root[data-theme="dark"] .notification-settings,
:root[data-theme="dark"] .notification-settings-link { border-color: #343a46; background: #1d2026; color: #9eb4de; }
:root[data-theme="dark"] .side-nav a { color: #aebee0; }
:root[data-theme="dark"] a,
:root[data-theme="dark"] .post-author,
:root[data-theme="dark"] .directory-name,
:root[data-theme="dark"] .community-card-name,
:root[data-theme="dark"] .mention-link,
:root[data-theme="dark"] .wall-nickname { color: #9eb4de; }
:root[data-theme="dark"] .profile-summary strong { color: #e1e4ea; }
:root[data-theme="dark"] .profile-summary small,
:root[data-theme="dark"] .side-label { color: #9da3ad; }
:root[data-theme="dark"] .eyebrow { color: #9eb4de; }
:root[data-theme="dark"] .side-nav a:hover,
:root[data-theme="dark"] .side-nav a.active { border-left-color: #7890c0; background: #20283a; color: #d7e1f5; }
:root[data-theme="dark"] .profile-summary, :root[data-theme="dark"] .sidebar-divider,
:root[data-theme="dark"] .feed-tabs, :root[data-theme="dark"] .directory-tabs { border-color: #343a46; }
:root[data-theme="dark"] .post-body, :root[data-theme="dark"] .comment-body,
:root[data-theme="dark"] .profile-detail-card p, :root[data-theme="dark"] .campus-event-description { color: #d2d5dc; }
:root[data-theme="dark"] .post-comments { border-color: #343a46; background: #20242c; }
:root[data-theme="dark"] .comment, :root[data-theme="dark"] .post-actions,
:root[data-theme="dark"] .campus-event-footer { border-color: #343a46; }
:root[data-theme="dark"] .comment-form input, :root[data-theme="dark"] .comment-reply-form input,
:root[data-theme="dark"] .composer textarea,
:root[data-theme="dark"] .directory-hero input,
:root[data-theme="dark"] .teacher-search-row input, :root[data-theme="dark"] .teacher-search-row select,
:root[data-theme="dark"] .schedule-settings input, :root[data-theme="dark"] .schedule-settings select,
:root[data-theme="dark"] .event-editor-field input, :root[data-theme="dark"] .event-editor-field textarea,
:root[data-theme="dark"] .event-editor-grid input,
:root[data-theme="dark"] .profile-name-editor input, :root[data-theme="dark"] .profile-academic-editor input,
:root[data-theme="dark"] .profile-academic-editor select, :root[data-theme="dark"] .profile-editor-card textarea,
:root[data-theme="dark"] .profile-editor-card select,
:root[data-theme="dark"] .community-editor-field input, :root[data-theme="dark"] .community-editor-field textarea,
:root[data-theme="dark"] .community-editor-field select,
:root[data-theme="dark"] .community-editor-grid input {
  border-color: #4a5261;
  background: #111318;
  color: #e1e4ea;
}
:root[data-theme="dark"] .friend-action, :root[data-theme="dark"] .friend-secondary,
:root[data-theme="dark"] .community-join, :root[data-theme="dark"] .rate-btn,
:root[data-theme="dark"] .event-going-btn, :root[data-theme="dark"] .event-owner-btn,
:root[data-theme="dark"] .load-more, :root[data-theme="dark"] .edit-profile-btn {
  border-color: #4a5261;
  background: linear-gradient(#2a2e36, #202329);
  color: #b7c8e8;
}
:root[data-theme="dark"] .primary-btn, :root[data-theme="dark"] .publish-btn,
:root[data-theme="dark"] .composer-actions .publish-btn,
:root[data-theme="dark"] .friend-status-incoming, :root[data-theme="dark"] .event-going-btn.going {
  border-color: #516b9e;
  background: linear-gradient(#6e84b3, #40598e);
  color: #fff;
}
:root[data-theme="dark"] .directory-hero, :root[data-theme="dark"] .teachers-hero,
:root[data-theme="dark"] .schedule-hero, :root[data-theme="dark"] .content-page-hero { border-top-color: #7890c0; background: #17191e; }
:root[data-theme="dark"] .directory-hero h1, :root[data-theme="dark"] .teachers-hero h1,
:root[data-theme="dark"] .schedule-hero h1, :root[data-theme="dark"] .content-page-hero h1,
:root[data-theme="dark"] .community-profile h1, :root[data-theme="dark"] .wall-profile-info h1,
:root[data-theme="dark"] .modal-card h2 { color: #b9c9e8; }
:root[data-theme="dark"] .wall-profile-avatar,
:root[data-theme="dark"] .community-profile-main > .community-profile-icon { border-color: #17191e; }
:root[data-theme="dark"] .notification-panel { border-color: #4a5261; }
:root[data-theme="dark"] .header-nav .notification-item { border-color: #343a46; background: #17191e; color: #e1e4ea; }
:root[data-theme="dark"] .header-nav .notification-item:hover,
:root[data-theme="dark"] .header-nav .notification-item.unread { background: #20283a; }

@media (max-width: 1040px) {
  .layout { grid-template-columns: 180px minmax(0, 1fr); }
}

@media (max-width: 760px) {
  body { font-size: 12px; }
  .topbar { min-height: 44px; }
  .app-topbar { min-height: 44px; padding: 6px 0; }
  .app-topbar .brand { font-size: 21px; }
  .search-box { height: 29px; }
  .notification-panel { top: 83px; }
  .layout { width: min(100% - 12px, 620px); }
  .directory-hero, .teachers-hero, .schedule-hero, .content-page-hero { padding: 13px; }
  .directory-hero h1, .teachers-hero h1, .schedule-hero h1, .content-page-hero h1 { font-size: 19px; }
  .post-body, .post-media, .post-uploaded-media, .post-actions, .post-comments { margin-left: 0; }
  .post-actions { padding-left: 0; }
  .post-comments { padding-left: 7px; padding-right: 7px; }
  .wall-profile-info h1 { font-size: 17px; }
  .modal-card { border-width: 3px; }
}

@media (max-width: 430px) {
  .layout { width: 100%; }
  .panel { border-left: 0; border-right: 0; }
  .topbar-inner { width: calc(100% - 12px); }
  .composer-actions { margin-left: 0; }
}

/* Remove the last decorative serif remnants from legacy components. */
.feature-list span, .otp-heading, .login-card .otp-input, .avatar, .post-media,
.wall-profile-avatar, .wall-profile-info h1, .wall-profile-stats b, .stat strong,
.event time b, .teachers-hero h1, .teacher-avatar, .score-number, .modal-card h2,
.schedule-hero h1, .schedule-empty h2, .schedule-day-title b, .lesson-time strong {
  font-family: Tahoma, Verdana, Arial, sans-serif !important;
}

/* Classic wall reposts */
.post-repost-attachment {
  margin: 10px 0 12px 49px;
  padding: 8px 10px 9px;
  border-top: 1px solid #d8dfea;
  border-right: 1px solid #d8dfea;
  border-bottom: 1px solid #d8dfea;
  border-left: 3px solid #627aad;
  background: #f7f7f7;
  color: #333;
}
.repost-type-label { display: flex; align-items: center; gap: 4px; margin-bottom: 7px; color: #777; font-size: 8px; font-weight: bold; letter-spacing: .45px; }
.repost-type-label .ui-icon { width: 12px; height: 12px; margin: 0; color: #627aad; }
.repost-source-heading { display: flex; align-items: center; gap: 8px; }
.repost-source-heading .avatar { width: 32px; height: 32px; border: 1px solid #9aa9c2; font-size: 9px; }
.repost-source-heading > div:last-child { min-width: 0; }
.repost-source-heading .post-author { display: block; font-size: 10px; }
.repost-source-heading span { display: block; margin-top: 2px; color: #777; font-size: 8px; }
.repost-source-heading .post-community { margin-top: 3px; }
.repost-source-text { margin-top: 8px; color: #333; font-size: 10px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.repost-source-media.post-uploaded-media { margin: 8px 0 0; min-height: 90px; }
.repost-source-media.post-uploaded-media img,
.repost-source-media.post-uploaded-media video { max-height: 360px; }
.repost-source-footer { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 8px; padding-top: 6px; border-top: 1px solid #d8dfea; color: #777; font-size: 8px; }
.repost-source-footer button { border: 0; background: none; color: #3b5998; padding: 0; font-size: 9px; }
.repost-source-footer button:hover { text-decoration: underline; }
.repost-unavailable { color: #777; font-size: 9px; }
.repost-unavailable .ui-icon { width: 13px; height: 13px; margin-right: 5px; }
.post-repost-event { padding: 0; overflow: hidden; }
.post-repost-event .repost-type-label { margin: 0; padding: 7px 9px; border-bottom: 1px solid #d8dfea; }
.repost-event-cover { position: relative; min-height: 112px; display: flex; align-items: flex-end; gap: 9px; padding: 11px; background-position: center; background-size: cover; color: #fff; }
.repost-event-cover::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 20%, rgba(20,29,49,.82)); }
.repost-event-cover time, .repost-event-cover > div { position: relative; z-index: 1; }
.repost-event-cover time { width: 42px; flex: 0 0 auto; padding: 5px 3px; border: 1px solid #d8dfea; background: rgba(42,61,99,.88); text-align: center; }
.repost-event-cover time b, .repost-event-cover time span { display: block; }
.repost-event-cover time b { font-size: 17px; }
.repost-event-cover time span { margin-top: 2px; font-size: 7px; }
.repost-event-cover > div { min-width: 0; }
.repost-event-cover strong, .repost-event-cover span, .repost-event-cover small { display: block; }
.repost-event-cover strong { font-size: 13px; }
.repost-event-cover span, .repost-event-cover small { margin-top: 3px; color: #e8edf7; font-size: 8px; }
.post-repost-event > p { margin: 9px 10px 0; color: #555; font-size: 9px; line-height: 1.5; }
.post-repost-event .repost-source-footer { margin: 8px 10px 9px; }
.post-actions .post-repost-button, .post-repost-total { display: inline-flex; align-items: center; gap: 3px; color: #627aad; font-size: 9px; }
.post-actions .post-repost-button .ui-icon, .post-repost-total .ui-icon { width: 14px; height: 14px; margin: 0; }
.post-actions .post-repost-button.reposted { color: #777; }
.post-actions .post-repost-button:disabled { opacity: 1; cursor: default; }
.post-actions .post-repost-button span { min-width: 10px; text-align: center; }
.event-repost-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 30px;
  border: 1px solid #999;
  background: linear-gradient(#fff, #e9e9e9);
  color: #3b5998;
  padding: 7px 9px;
  font-size: 8px;
}
.event-repost-btn .ui-icon { width: 13px; height: 13px; margin: 0; }
.event-repost-btn:hover { border-color: #6d84b4; }
.event-repost-btn.reposted { border-color: #bdc7d8; background: #f2f2f2; color: #777; }
.event-repost-btn:disabled { opacity: 1; cursor: default; }

:root[data-theme="dark"] .post-repost-attachment { border-color: #3c4556; border-left-color: #7890c0; background: #1d2026; color: #e1e4ea; }
:root[data-theme="dark"] .repost-type-label,
:root[data-theme="dark"] .repost-source-heading span,
:root[data-theme="dark"] .repost-source-footer,
:root[data-theme="dark"] .repost-unavailable { color: #9da3ad; }
:root[data-theme="dark"] .repost-type-label .ui-icon,
:root[data-theme="dark"] .repost-source-footer button,
:root[data-theme="dark"] .post-actions .post-repost-button,
:root[data-theme="dark"] .post-repost-total { color: #9eb4de; }
:root[data-theme="dark"] .repost-source-text,
:root[data-theme="dark"] .post-repost-event > p { color: #d2d5dc; }
:root[data-theme="dark"] .repost-source-footer,
:root[data-theme="dark"] .post-repost-event .repost-type-label { border-color: #3c4556; }
:root[data-theme="dark"] .event-repost-btn { border-color: #4a5261; background: linear-gradient(#2a2e36, #202329); color: #b7c8e8; }
:root[data-theme="dark"] .event-repost-btn.reposted { border-color: #3c4556; background: #1d2026; color: #9da3ad; }
:root[data-theme="dark"] .corporate-mail-help { border-color: #343a46; background: #1d2026; color: #c7cad1; }
:root[data-theme="dark"] .corporate-mail-help summary { color: #9eb4de; }
:root[data-theme="dark"] .corporate-mail-help summary::after { color: #9eb4de; }
:root[data-theme="dark"] .corporate-mail-help summary:hover { background: #20283a; }
:root[data-theme="dark"] .corporate-mail-help-content { border-color: #343a46; }
:root[data-theme="dark"] .corporate-mail-help-content p { border-color: #343a46; background: #17191e; color: #b9bdc6; }

/* Classic post polls */
.composer .avatar.small { border: 1px solid #9aa9c2; }
.composer-tools > button.active { color: #1f3d70; font-weight: bold; }
.composer-poll-editor {
  margin: 9px 0 0 45px;
  border: 1px solid #bdc7d8;
  background: #f7f7f7;
  color: #333;
}
.composer-poll-heading { display: flex; align-items: center; justify-content: space-between; padding: 8px 9px; border-bottom: 1px solid #d8dfea; background: #eceff5; }
.composer-poll-heading > div { display: flex; align-items: center; gap: 7px; }
.composer-poll-heading .ui-icon { width: 15px; height: 15px; color: #627aad; }
.composer-poll-heading b, .composer-poll-heading small { display: block; }
.composer-poll-heading b { color: #3b5998; font-size: 9px; }
.composer-poll-heading small { margin-top: 1px; color: #777; font-size: 8px; }
.composer-poll-heading > button { border: 0; background: none; color: #777; padding: 1px 4px; font-size: 17px; line-height: 1; }
.composer-poll-question { display: block; padding: 9px 9px 5px; }
.composer-poll-question > span { display: block; margin-bottom: 4px; color: #555; font-size: 8px; font-weight: bold; }
.composer-poll-question input, .composer-poll-options input { width: 100%; min-width: 0; border: 1px solid #bdc7d8; background: #fff; color: #333; padding: 7px 8px; font-size: 10px; outline: 0; }
.composer-poll-question input:focus, .composer-poll-options input:focus { border-color: #6d84b4; box-shadow: inset 0 0 0 1px #eceff5; }
.composer-poll-options { padding: 0 9px 3px; }
.composer-poll-options label { display: grid; grid-template-columns: 20px minmax(0, 1fr) 22px; align-items: center; gap: 5px; margin-bottom: 5px; }
.composer-poll-options label > span { color: #777; font-size: 9px; text-align: center; }
.composer-poll-options label > button { border: 0; background: none; color: #98685f; padding: 2px; font-size: 14px; }
.composer-poll-footer { display: flex; justify-content: space-between; align-items: center; padding: 3px 9px 8px 34px; }
.composer-poll-footer button { border: 0; background: none; color: #3b5998; padding: 0; font-size: 9px; }
.composer-poll-footer button:disabled { color: #999; cursor: default; }
.composer-poll-footer span { color: #999; font-size: 8px; }
.composer-poll-error { min-height: 0; margin: 0; padding: 0 9px 8px 34px; color: #b53b31; font-size: 9px; }
.composer-poll-error:empty { display: none; }

.post-poll { margin: 10px 0 12px 49px; padding: 10px; border: 1px solid #bdc7d8; background: #f7f7f7; color: #333; }
.post-poll > header { display: flex; align-items: flex-start; gap: 7px; margin-bottom: 9px; }
.post-poll > header .ui-icon { width: 16px; height: 16px; margin-top: 1px; color: #627aad; }
.post-poll > header b, .post-poll > header span { display: block; }
.post-poll > header b { color: #1f3d70; font-size: 11px; line-height: 1.4; }
.post-poll > header span { margin-top: 2px; color: #777; font-size: 8px; }
.post-poll-options { display: grid; gap: 5px; }
.post-poll-option { position: relative; width: 100%; overflow: hidden; border: 1px solid #bdc7d8; background: #fff; color: #333; padding: 7px 8px; text-align: left; }
.post-poll-option:hover { border-color: #6d84b4; background: #eceff5; }
.post-poll-option.selected { border-color: #627aad; background: #eceff5; color: #1f3d70; }
.post-poll-option-line { position: relative; z-index: 1; display: flex; justify-content: space-between; gap: 10px; font-size: 10px; }
.post-poll-option-line > span { overflow-wrap: anywhere; }
.post-poll-option-line > b { color: #3b5998; font-size: 9px; }
.post-poll-bar { position: relative; z-index: 1; display: block; height: 3px; margin-top: 6px; background: #d8dfea; }
.post-poll-bar i { display: block; height: 100%; background: #627aad; transition: width .2s ease; }
.post-poll > footer { display: flex; justify-content: space-between; gap: 10px; margin-top: 8px; color: #777; font-size: 8px; }
.post-poll > footer span:last-child { text-align: right; }
.post-poll-compact { margin: 8px 0 0; background: #fff; }
.post-poll-compact > header b { font-size: 10px; }

.score-buttons button.selected,
:root[data-theme="dark"] .score-buttons button.selected { border-color: #29447e; background: #3b5998; color: #fff; box-shadow: inset 0 1px rgba(255,255,255,.25); }

:root[data-theme="dark"] .composer .avatar.small { border-color: #61739a; }
:root[data-theme="dark"] .composer-tools > button.active { color: #b7c8e8; }
:root[data-theme="dark"] .composer-poll-editor,
:root[data-theme="dark"] .post-poll { border-color: #3c4556; background: #1d2026; color: #e1e4ea; }
:root[data-theme="dark"] .composer-poll-heading { border-color: #3c4556; background: #20283a; }
:root[data-theme="dark"] .composer-poll-heading b,
:root[data-theme="dark"] .post-poll > header b { color: #b7c8e8; }
:root[data-theme="dark"] .composer-poll-heading small,
:root[data-theme="dark"] .composer-poll-question > span,
:root[data-theme="dark"] .composer-poll-options label > span,
:root[data-theme="dark"] .composer-poll-footer span,
:root[data-theme="dark"] .post-poll > header span,
:root[data-theme="dark"] .post-poll > footer { color: #9da3ad; }
:root[data-theme="dark"] .composer-poll-question input,
:root[data-theme="dark"] .composer-poll-options input,
:root[data-theme="dark"] .post-poll-option { border-color: #485161; background: #17191e; color: #e1e4ea; }
:root[data-theme="dark"] .post-poll-option:hover,
:root[data-theme="dark"] .post-poll-option.selected { border-color: #7890c0; background: #20283a; color: #d7e1f5; }
:root[data-theme="dark"] .post-poll-option-line > b { color: #b7c8e8; }
:root[data-theme="dark"] .post-poll-bar { background: #343a46; }
:root[data-theme="dark"] .post-poll-bar i { background: #7890c0; }
:root[data-theme="dark"] .post-poll-compact { background: #17191e; }

@media (max-width: 760px) {
  .post-repost-attachment { margin-left: 0; }
  .composer-poll-editor, .post-poll { margin-left: 0; }
  .post-poll > footer { flex-direction: column; gap: 3px; }
  .post-poll > footer span:last-child { text-align: left; }
  .repost-source-footer { align-items: flex-start; flex-direction: column; gap: 4px; }
  .event-repost-btn { flex: 1 1 auto; justify-content: center; }
}

/* Classic account menu, news media and compact community monograms */
.account-menu {
  position: absolute;
  z-index: 45;
  top: 39px;
  right: 0;
  width: 238px;
  border: 1px solid #29447e;
  background: #fff;
  color: #333;
  box-shadow: 0 3px 8px rgba(0, 0, 0, .22);
}
.account-menu::before {
  content: '';
  position: absolute;
  top: -5px;
  right: 13px;
  width: 8px;
  height: 8px;
  border-top: 1px solid #29447e;
  border-left: 1px solid #29447e;
  background: #fff;
  transform: rotate(45deg);
}
.account-menu > a,
.header-nav .account-menu > button {
  position: relative;
  box-sizing: border-box;
  width: 100%;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  border: 0;
  border-bottom: 1px solid #d8dfea;
  background: #fff;
  color: #333;
  padding: 9px 10px;
  text-align: left;
  text-decoration: none;
}
.account-menu > a:hover,
.header-nav .account-menu > button:hover { background: #eceff5; color: #1f3d70; }
.account-menu > :last-child { border-bottom: 0; }
.account-menu .ui-icon { width: 16px; height: 16px; color: #627aad; }
.account-menu b,
.account-menu small { display: block; }
.account-menu b { color: #1f3d70; font-size: 10px; }
.account-menu small { margin-top: 2px; color: #777; font-size: 8px; line-height: 1.35; }

.news-inline-media {
  margin: 13px 0 0;
  border: 1px solid #bdc7d8;
  background: #f7f7f7;
}
.news-inline-media img,
.news-inline-media video {
  display: block;
  width: 100%;
  max-height: 620px;
  object-fit: contain;
  background: #080808;
}
.news-inline-media-placeholder {
  min-height: 170px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 7px;
  color: #777;
  font-size: 9px;
}
.news-inline-media-placeholder .ui-icon { width: 25px; height: 25px; color: #627aad; }
.news-inline-media figcaption {
  border-top: 1px solid #d8dfea;
  background: #eceff5;
  color: #555;
  padding: 6px 8px;
  font-size: 8px;
  overflow-wrap: anywhere;
}

.community-icon:not(.has-profile-image) {
  font-family: Tahoma, Verdana, Arial, sans-serif !important;
  font-size: 8px;
  letter-spacing: 0;
}
.community-card-icon.community-icon:not(.has-profile-image) { font-size: 11px; }
.community-profile-icon.community-icon:not(.has-profile-image) { font-size: 13px; }

:root[data-theme="dark"] .account-menu {
  border-color: #56637a;
  background: #17191e;
  color: #e1e4ea;
  box-shadow: 0 5px 14px rgba(0, 0, 0, .55);
}
:root[data-theme="dark"] .account-menu::before {
  border-color: #56637a;
  background: #17191e;
}
:root[data-theme="dark"] .account-menu > a,
:root[data-theme="dark"] .header-nav .account-menu > button {
  border-color: #343a46;
  background: #17191e;
  color: #e1e4ea;
}
:root[data-theme="dark"] .account-menu > a:hover,
:root[data-theme="dark"] .header-nav .account-menu > button:hover { background: #20283a; }
:root[data-theme="dark"] .account-menu b { color: #b7c8e8; }
:root[data-theme="dark"] .account-menu small { color: #9da3ad; }
:root[data-theme="dark"] .news-inline-media { border-color: #3c4556; background: #17191e; }
:root[data-theme="dark"] .news-inline-media figcaption { border-color: #3c4556; background: #20283a; color: #c7cad1; }
:root[data-theme="dark"] .news-inline-media-placeholder { color: #9da3ad; }

/* Automatic phone layout: one codebase, selected by viewport width */
@media (max-width: 760px) {
  html { overflow-x: hidden; }
  body { min-width: 0; overflow-x: hidden; }
  .app-topbar { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 6px; }
  .app-topbar .brand { grid-column: 1; grid-row: 1; }
  .header-nav { grid-column: 3; grid-row: 1; }
  .search-box { grid-column: 1 / -1; grid-row: 2; width: 100%; }
  .header-nav .sound-toggle { display: none; }
  .header-nav .mini-avatar { margin-left: 2px; }
  .account-menu { position: fixed; top: 48px; right: 6px; width: min(260px, calc(100vw - 12px)); }
  .account-menu::before { right: 12px; }
  .notification-panel { position: fixed; top: 48px; right: 6px; left: 6px; width: auto; max-height: calc(100dvh - 54px); }
  .notification-list { max-height: min(390px, calc(100dvh - 210px)); }

  .layout { display: block; width: min(100% - 12px, 620px); }
  .left-sidebar {
    position: sticky;
    z-index: 25;
    top: 83px;
    display: block;
    margin: 0 0 8px;
    padding: 0;
    border: 1px solid #bdc7d8;
    background: #fff;
  }
  .profile-summary,
  .left-sidebar .sidebar-divider,
  .left-sidebar .side-label,
  #sidebarCommunities { display: none; }
  .side-nav {
    display: flex;
    gap: 0;
    overflow-x: auto;
    padding: 2px;
    scrollbar-width: thin;
    overscroll-behavior-x: contain;
  }
  .side-nav a {
    flex: 0 0 auto;
    height: 32px;
    gap: 5px;
    border: 0;
    border-right: 1px solid #eceff5;
    border-radius: 0;
    padding: 0 9px;
    white-space: nowrap;
    font-size: 9px;
  }
  .side-nav a.active {
    border: 0;
    border-bottom: 3px solid #3b5998;
    background: #eceff5;
    padding: 0 9px;
  }
  .side-nav a > .ui-icon { width: 13px; height: 13px; }
  .side-nav .side-nav-badge { position: static; }
  .feed { padding-top: 0; }
  .panel { border-left: 1px solid #d8dfea; border-right: 1px solid #d8dfea; }

  .news-card-body { padding: 13px 12px 15px; }
  .news-card-body h2 { font-size: 17px; }
  .news-composer input,
  .news-composer textarea,
  .news-composer select,
  .proposal-composer input,
  .proposal-composer textarea,
  .lost-found-composer input,
  .lost-found-composer textarea,
  .lost-found-composer select { font-size: 16px; }
  .news-inline-media img,
  .news-inline-media video { max-height: 70dvh; }
  .news-file-card { align-items: flex-start; }
  .news-file-card em { display: none; }
  .proposal-card { grid-template-columns: 28px minmax(0, 1fr); gap: 9px; padding: 12px; }
  .proposal-rank { width: 26px; height: 26px; }
  .proposal-actions { grid-column: 2; justify-content: flex-start; max-width: none; }
  .proposal-owner-btn { min-height: 30px; }
  .proposal-reply-form textarea { font-size: 16px; }
  .proposal-reply-form > div { flex-wrap: wrap; }

  .lost-found-grid,
  .global-search-category-summary,
  .global-search-results { grid-template-columns: 1fr; }
  .lost-found-grid .wide { grid-column: auto; }
  .lost-found-card { grid-template-columns: 1fr; }
  .lost-found-card-image,
  .lost-found-card-placeholder { min-height: 190px; }
  .lost-found-card > footer { grid-column: auto; }
  .lost-found-card-copy dl { grid-template-columns: 1fr; }

  .community-card { grid-template-columns: 48px minmax(0, 1fr); gap: 10px; padding: 11px; }
  .community-card-icon { width: 48px; height: 48px; }
  .community-card > .community-join { grid-column: 2; justify-self: start; }
  .community-profile-main > .community-profile-icon.community-icon:not(.has-profile-image) { font-size: 11px; }

  .campus-event-footer > button,
  .event-owner-actions { min-height: 32px; }
  .schedule-list,
  .moderation-list,
  .moderation-audit { min-width: 0; }
  input, textarea, select { max-width: 100%; }
}

@media (max-width: 430px) {
  .app-topbar { grid-template-columns: auto 1fr auto; }
  .app-topbar .brand { font-size: 19px; }
  .header-nav .sound-toggle { display: none; }
  .header-icon-btn { width: 31px; height: 31px; }
  .left-sidebar { top: 80px; margin-left: 6px; margin-right: 6px; }
  .layout { width: 100%; }
  .feed { padding-left: 0; padding-right: 0; }
  .panel { border-left: 0; border-right: 0; }
  .news-composer,
  .proposal-composer,
  .lost-found-composer { padding: 12px; }
  .news-composer-actions .publish-btn,
  .proposal-composer-actions .publish-btn { width: 100%; align-self: stretch; }
  .wall-profile-main { padding-left: 10px; padding-right: 10px; }
  .post-poll { padding: 8px; }
}

@media (max-width: 760px) {
  :root[data-theme="dark"] .left-sidebar {
    border-color: #3c4556;
    background: #17191e;
  }
  :root[data-theme="dark"] .side-nav {
    background: #17191e;
    color-scheme: dark;
  }
  :root[data-theme="dark"] .side-nav a {
    border-right-color: #343a46;
    background: #17191e;
    color: #aebee0;
  }
  :root[data-theme="dark"] .side-nav a:hover {
    background: #20283a;
    color: #d7e1f5;
  }
  :root[data-theme="dark"] .side-nav a.active {
    border-bottom-color: #7890c0;
    background: #20283a;
    color: #d7e1f5;
  }
  :root[data-theme="dark"] .side-nav a > .ui-icon { color: #91a9d6; }

  .header-nav > #notificationButton,
  .header-nav > .theme-toggle {
    position: relative;
    box-sizing: border-box;
    width: 31px;
    height: 31px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .34) !important;
    border-radius: 1px;
    background: rgba(0, 0, 0, .1) !important;
    color: #edf3fa !important;
    padding: 0 !important;
    line-height: 0;
  }
  .header-nav > #notificationButton:hover,
  .header-nav > .theme-toggle:hover { background: rgba(255, 255, 255, .1) !important; }
  .header-nav > #notificationButton > .ui-icon,
  .header-nav > .theme-toggle > .ui-icon {
    position: absolute;
    inset: 0;
    width: 17px;
    height: 17px;
    margin: auto;
    vertical-align: 0;
  }
  .header-nav > #notificationButton > .badge {
    right: -4px;
    top: -5px;
    line-height: 12px;
  }
}
