:root{--ink:#202444;--muted:#73758b;--line:#e5e7f3;--paper:#fff;--bg:#f6f6ff;--violet:#6759e8;--violet-dark:#5144cd;--mint:#e7f8f2;--pink:#f5eefa;--shadow:0 14px 40px #3931760d}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--bg);color:var(--ink);font:16px/1.55 Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}a{color:inherit;text-decoration:none}button,input,select,textarea{font:inherit}button{cursor:pointer}.topbar{height:74px;padding:0 max(24px,calc((100vw - 1320px)/2));display:flex;align-items:center;gap:42px;background:#fff;border-bottom:1px solid var(--line)}.brand{font-size:21px;font-weight:800;letter-spacing:-.5px;white-space:nowrap}.brand span{color:var(--violet);font-size:28px;vertical-align:-2px}.topbar nav{display:flex;gap:24px;color:var(--muted);font-weight:600}.topbar nav a.active{color:var(--violet)}.account{margin-left:auto;padding:10px 17px;border:1px solid var(--line);border-radius:24px;font-weight:650;font-size:14px}.account:hover,.button.ghost:hover{border-color:var(--violet);color:var(--violet)}main{width:min(1160px,calc(100% - 40px));margin:auto}.hero{padding:74px 20px 40px}.eyebrow{text-transform:uppercase;letter-spacing:2px;font-size:11px;font-weight:800;color:var(--violet)}h1{font-size:clamp(38px,5vw,62px);line-height:1.08;letter-spacing:-2.5px;margin:14px 0 12px;max-width:780px}h1 em{font-family:Georgia,serif;font-weight:400;color:var(--violet)}.hero>p{color:var(--muted);font-size:18px;max-width:640px;margin:0}.hero-actions{display:flex;gap:12px;align-items:center;margin-top:26px}.button{border:1px solid var(--line);border-radius:12px;padding:12px 17px;background:#fff;color:var(--ink);font-weight:700;display:inline-flex;align-items:center;justify-content:center;gap:7px;transition:.15s}.button.primary{background:var(--violet);border-color:var(--violet);color:#fff;box-shadow:0 7px 18px #6759e832}.button.primary:hover{background:var(--violet-dark)}.button.ghost{background:transparent}.trust{display:flex;flex-wrap:wrap;gap:10px 24px;margin-top:28px;color:#73758b;font-size:13px}.trust span:first-child{color:#438468}.search-panel,.section-head{display:flex;align-items:end;justify-content:space-between;gap:24px}.search-panel{padding:26px 28px;background:white;border:1px solid var(--line);border-radius:20px;box-shadow:var(--shadow)}h2{font-size:25px;letter-spacing:-.6px;margin:5px 0 0}.search{height:52px;width:min(480px,55%);display:flex;align-items:center;gap:10px;padding:0 16px;border:1px solid var(--line);border-radius:14px;background:#fbfbff;color:var(--muted)}.search span{font-size:24px}.search input{border:0;outline:0;background:transparent;flex:1;min-width:0;color:var(--ink)}.search button{font-size:22px;color:#9293a4;padding:4px}.catalog-note{display:flex;align-items:center;gap:12px;color:var(--muted);margin:18px 3px 20px;font-size:14px}.catalog-note p{margin:0}.note-icon{width:24px;height:24px;border:1px solid #c9c5f4;border-radius:50%;display:grid;place-items:center;color:var(--violet);font-weight:800;flex:none}.catalog-list{display:grid;gap:14px}.university{background:#fff;border:1px solid var(--line);border-radius:18px;overflow:hidden;box-shadow:var(--shadow)}.university-head{padding:19px 22px;display:flex;align-items:start;gap:15px}.uni-mark{width:42px;height:42px;border-radius:13px;background:var(--pink);display:grid;place-items:center;color:#6658dd;font-size:21px;flex:none}.uni-title{flex:1;min-width:0}.uni-title h3{font-size:17px;line-height:1.35;margin:0}.uni-title p{color:var(--muted);margin:5px 0 0;font-size:13px}.uni-site{color:var(--violet);font-size:13px;font-weight:650;white-space:nowrap}.unit-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;padding:0 22px 20px 79px}.unit{display:flex;align-items:center;gap:12px;min-width:0;padding:12px 14px;border:1px solid #eeeefa;border-radius:12px;background:#fcfcff;text-align:left;color:var(--ink)}.unit:hover{border-color:#c8c2fa;background:#f9f8ff}.unit-name{font-weight:650;font-size:14px;flex:1}.unit-meta{font-size:12px;color:var(--muted);white-space:nowrap}.rating{color:#d49727;font-weight:750}.loading,.empty{text-align:center;padding:36px;color:var(--muted)}.empty{border:1px dashed #cfcee9;border-radius:18px;background:#fff}.empty>div{font-size:36px;color:var(--violet)}.hidden{display:none!important}.rules{margin:56px 0 70px;padding:26px 28px;border-radius:20px;background:#eeeffb}.rules h2{margin:0 0 18px}.rules-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:22px}.rules-grid p{margin:0;color:#656981;font-size:14px}footer{min-height:76px;border-top:1px solid var(--line);background:#fff;padding:18px max(24px,calc((100vw - 1160px)/2));display:flex;justify-content:space-between;align-items:center;gap:18px;color:var(--muted);font-size:13px}footer nav{display:flex;gap:20px}.dialog{width:min(680px,calc(100vw - 28px));max-height:88vh;overflow:auto;border:1px solid var(--line);border-radius:22px;padding:30px;background:#fff;color:var(--ink);box-shadow:0 24px 80px #16133340}.dialog::backdrop{background:#17172d80;backdrop-filter:blur(4px)}.dialog.compact{width:min(480px,calc(100vw - 28px))}.close{float:right;border:0;background:transparent;color:#77798d;font-size:25px;line-height:1}.muted{color:var(--muted);font-size:14px}.dialog label{display:block;font-weight:650;font-size:14px;margin:14px 0 0}.dialog input,.dialog select,.dialog textarea{display:block;width:100%;margin-top:6px;padding:12px 13px;border:1px solid var(--line);border-radius:11px;background:#fcfcff;color:var(--ink);outline-color:var(--violet)}.dialog form>.button{margin-top:18px}.form-error{color:#b3284c;font-size:13px;margin-top:10px}.unit-detail h2{margin:8px 40px 8px 0}.unit-detail .breadcrumb{font-size:13px;color:var(--muted)}.unit-stats{display:flex;gap:14px;align-items:center;padding:16px 0;border-bottom:1px solid var(--line);color:var(--muted)}.unit-stats strong{font-size:23px;color:var(--ink)}.review-list{display:grid;gap:12px;margin:15px 0 22px}.review{border:1px solid var(--line);border-radius:14px;padding:15px;background:#fcfcff}.review-head{display:flex;justify-content:space-between;gap:10px;font-size:13px;color:var(--muted)}.review-stars{color:#d49727;font-weight:800}.review p{white-space:pre-wrap;margin:8px 0 0;font-size:14px}.review-form{padding:18px;border-radius:16px;background:#f5f5ff}.review-form h3{margin:0}.review-form label{margin-top:10px}.review-form textarea{min-height:112px;resize:vertical}.review-form .button{margin-top:12px}.queue-list{display:grid;gap:12px;margin-top:16px}.queue-item{background:#fff;border:1px solid var(--line);border-radius:14px;padding:17px}.queue-item h3{font-size:16px;margin:0 0 5px}.queue-item p{white-space:pre-wrap;color:#54576e;margin:10px 0}.queue-actions{display:flex;gap:9px;flex-wrap:wrap;margin-top:13px}.button.small{padding:8px 12px;font-size:13px}.button.reject{color:#b3284c;border-color:#f0cbd5}.section-head{align-items:center;margin-bottom:18px}.moderation{margin:0 0 54px;padding:26px;border:1px solid #d7d3ff;border-radius:20px;background:#f8f7ff}
@media(max-width:760px){.topbar{height:66px;padding:0 18px;gap:20px}.topbar nav{display:none}.account{padding:8px 12px}.hero{padding:48px 6px 28px}h1{letter-spacing:-1.6px}.wide{display:none}.hero>p{font-size:16px}.trust{display:grid;gap:7px}.search-panel{display:block;padding:20px}.search{width:100%;margin-top:16px}.unit-grid{grid-template-columns:1fr;padding:0 14px 16px}.university-head{padding:16px 14px}.unit{padding:12px}.unit-meta{font-size:11px}.rules{margin:38px 0 50px;padding:22px}.rules-grid{grid-template-columns:1fr;gap:12px}.rules-grid p{padding-left:12px;border-left:2px solid #cbc7fa}.catalog-note{align-items:start}footer{padding:17px 20px;align-items:flex-start;flex-direction:column}footer nav{gap:14px;flex-wrap:wrap}.dialog{padding:24px 18px}.section-head{align-items:flex-start;flex-direction:column}}
/* Consent controls stay readable and separate from ordinary fields. */
.consent{display:flex!important;align-items:flex-start;gap:10px;margin:14px 0!important;color:var(--muted);font-size:13px;line-height:1.45}.consent input{flex:0 0 auto;width:17px;height:17px;margin:2px 0 0;accent-color:var(--violet)}.consent a{text-decoration:underline;color:var(--ink)}
.search-panel{display:grid;grid-template-columns:minmax(230px,1fr) minmax(360px,620px);align-items:end;position:relative}.search-tools{display:grid;grid-template-columns:minmax(220px,1fr) 155px;gap:10px}.search{width:100%}.search-tools select,.search-tools #city-filter{height:52px;padding:0 12px;border:1px solid var(--line);border-radius:14px;background:#fbfbff;color:var(--ink);min-width:0}.search-suggestions{grid-column:2;display:grid;gap:4px;padding:8px;background:#fff;border:1px solid var(--line);border-radius:14px;box-shadow:var(--shadow);z-index:2}.suggestion{display:grid;gap:2px;text-align:left;padding:10px 12px;border:0;border-radius:9px;background:#fff;color:var(--ink)}.suggestion:hover,.suggestion:focus{background:#f4f3ff;outline:0}.suggestion strong{font-size:14px}.suggestion span{font-size:12px;color:var(--muted)}.result-count{min-height:22px;margin:0 4px 10px;color:var(--muted);font-size:13px}
@media(max-width:760px){.search-panel{display:block}.search-tools{grid-template-columns:minmax(0,1fr) 130px;gap:8px}.search-suggestions{margin-top:8px}.search-tools select,.search-tools #city-filter{height:48px;font-size:13px}.search{height:48px}}
.faculty-list{display:grid;gap:12px;padding:0 22px 20px 79px}.faculty-group{padding:13px;border:1px solid #eeeff8;border-radius:13px;background:#fcfcff}.faculty-heading{display:flex;align-items:center;gap:10px;justify-content:space-between;margin-bottom:8px}.faculty-kind{font-size:11px;color:var(--violet);background:#f0efff;padding:3px 8px;border-radius:20px;white-space:nowrap}.faculty-group .unit-grid{padding:0;gap:7px}.faculty-empty{margin:0;color:var(--muted);font-size:13px}.faculty-group .unit{background:#fff}
.external-feedback{margin-top:12px;padding:12px 14px;border:1px solid #e8e5fb;border-radius:11px;background:#f7f6ff}.external-title{font-size:12px;font-weight:750;color:#6257c8}.external-summary{margin:6px 0;color:#55566b;font-size:13px;line-height:1.5}.external-source{display:inline-block;color:#5d52c5;font-size:12px;font-weight:700;text-decoration:underline;text-underline-offset:2px}.external-disclaimer{display:block;margin-top:6px;color:#818197;font-size:11px;line-height:1.4}
@media(max-width:760px){.faculty-list{padding:0 12px 14px}.faculty-group{padding:10px}.faculty-group .unit-grid{grid-template-columns:1fr}}
.faculty-heading{flex-wrap:wrap}.faculty-source{margin-left:auto;white-space:nowrap}@media(max-width:700px){.faculty-source{margin-left:0;flex-basis:100%}}
/* Detailed student reviews and moderated image attachments */
.score-fieldset{border:0;border-top:1px solid #e4e3f2;padding:14px 0 0;margin:16px 0 4px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:2px 14px}.score-fieldset legend{padding:0 8px 0 0;font-size:14px;font-weight:750}.review-form .score-control{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:8px 0;border-bottom:1px solid #e8e7f2;font-size:13px}.review-form .score-control select{width:88px;flex:none;margin:0;padding:8px}.review-form .photo-upload input[type=file]{padding:10px;background:#fff}.photo-upload small{display:block;font-weight:400;line-height:1.45;margin-top:7px}.photo-preview,.review-photos{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}.review-thumb,.review-photo{width:105px;height:82px;object-fit:cover;border-radius:10px;border:1px solid var(--line);background:#fff}.review-photo{width:148px;height:112px}.review-scores{display:flex;flex-wrap:wrap;gap:6px;margin-top:10px}.review-score{padding:5px 8px;border-radius:8px;background:#f0efff;color:#555080;font-size:12px}.university-cover{width:100%;height:130px;display:block;object-fit:cover;background:#f2effa}.uni-cover-note{position:absolute;right:13px;top:12px;padding:4px 8px;border-radius:20px;background:#ffffffdf;color:#615d70;font-size:10px}.university{position:relative}.university-head{position:relative}.uni-mark{overflow:hidden;padding:0}.uni-mark img{width:100%;height:100%;object-fit:cover}.review-form .consent{display:flex;align-items:flex-start;gap:9px}.review-form .consent input{width:auto;margin:3px 0 0;flex:none}.review-form .consent span{font-weight:500;line-height:1.45}.queue-item .review-scores{margin:8px 0}.queue-item .review-photo{width:120px;height:90px}
@media(max-width:600px){.score-fieldset{grid-template-columns:1fr}.review-photo{width:calc(50% - 5px);height:105px}.university-cover{height:105px}}
.source-info{display:block;color:#77798d;font-size:11px;padding:0 22px 10px 79px}.catalog-more{grid-column:1/-1;justify-self:center;min-width:240px}.university-cover{height:150px;position:relative;display:grid;place-items:center;overflow:hidden;background:linear-gradient(115deg,#ece9ff,#fbeaf1 55%,#e3f2ed);object-fit:cover}.university-photo{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:0;transition:opacity .25s ease}.university-photo.loaded{opacity:1}.university-cover-placeholder{font-family:Georgia,serif;font-size:clamp(34px,6vw,68px);font-weight:700;letter-spacing:.08em;color:#6555b7aa;text-shadow:0 1px 0 #fff8}.uni-cover-note{position:absolute;z-index:1;right:12px;bottom:10px;top:auto;max-width:min(84%,620px);overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;white-space:normal;padding:5px 9px;border:1px solid #fff9;border-radius:20px;background:#ffffffec;color:#4e4c59;font-size:10px;line-height:1.35;text-decoration:none}.uni-cover-note[hidden]{display:none}.uni-cover-note:hover{text-decoration:underline;color:#5546c8}
.licensed-programs{margin:0 22px 20px 79px;border:1px solid var(--line);border-radius:12px;background:#fcfcff;color:var(--ink)}.licensed-programs>summary{padding:11px 14px;cursor:pointer;font-size:13px;font-weight:750;color:#5144cd}.licensed-program-content{padding:0 14px 14px}.program-items{list-style:none;padding:0;margin:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.program-item{display:flex;flex-direction:column;gap:3px;padding:9px 10px;border:1px solid #eeeff8;border-radius:9px;background:#fff;min-width:0}.program-title{font-size:13px;font-weight:650;overflow-wrap:anywhere}.program-meta{font-size:11px;color:var(--muted)}.program-source-note{display:block;color:var(--muted);font-size:11px;margin-top:12px;line-height:1.45}.program-source-note a{color:var(--violet);text-decoration:underline;text-underline-offset:2px}.program-more{margin-top:12px;padding:7px 10px;font-size:12px}
@media(max-width:760px){.source-info{padding:0 14px 12px}.catalog-more{min-width:0;width:100%}}
@media(max-width:760px){.licensed-programs{margin:0 12px 14px}.program-items{grid-template-columns:1fr}.licensed-programs>summary{font-size:12px}}
.personal-tools{display:flex;gap:10px;flex-wrap:wrap;margin:18px 0}.personal-panel{margin:14px 0 24px;padding:22px;border:1px solid var(--line);border-radius:18px;background:#fff;box-shadow:var(--shadow)}.personal-panel .section-head{margin:0 0 14px}.personal-panel h2{margin:0}.personal-list{display:grid;gap:10px}.personal-item{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:14px;border:1px solid var(--line);border-radius:13px;background:#fcfcff}.personal-copy{display:grid;gap:3px;flex:1;min-width:220px}.personal-review{align-items:flex-start}.personal-review p{flex-basis:100%;margin:0;white-space:pre-wrap}.personal-review .review-scores{flex-basis:100%;margin:0}.favorite-button{flex:none;width:38px;height:38px;border:1px solid var(--line);border-radius:12px;background:#fff;color:#8878e8;font-size:23px;line-height:1}.favorite-button:hover,.favorite-button[aria-pressed=true]{border-color:#b9aff7;background:#f2efff;color:#6253d5}.favorite-button:disabled{opacity:.55}.review-status{display:inline-flex;padding:5px 9px;border-radius:20px;font-size:12px;font-weight:700;background:#f3f1fa;color:#777}.status-pending{background:#fff5da;color:#8a6200}.status-approved{background:#e8f8ed;color:#278243}.status-rejected{background:#fff0f2;color:#a33b4c}
@media(max-width:600px){.personal-panel{padding:16px}.personal-item{gap:9px}.personal-copy{min-width:calc(100% - 60px)}.personal-review .review-status{order:2}}
.university-head{flex-wrap:wrap}.university-head .uni-title{flex-basis:min(55%,500px)}.university-head>.button.small{font-size:12px;padding:8px 10px}.faculty-heading>.button.small{margin-left:auto}
@media(max-width:760px){.university-head{align-items:center;gap:10px}.university-head .uni-title{flex:1 1 calc(100% - 60px)}.university-head>.button.small{margin-left:57px}.faculty-heading>.button.small{margin-left:0}}
.institution-rating{display:flex;align-items:center;gap:9px;margin:0 22px 12px 79px;padding:9px 12px;border:1px solid #eeeff8;border-radius:11px;background:#fcfcff;color:var(--muted);font-size:13px}.institution-rating .rating-stars{font-size:16px;color:#d49727;font-weight:800}.program-review{grid-column:1/-1;justify-self:start;margin-top:3px}.program-item{align-items:flex-start}
@media(max-width:760px){.institution-rating{margin:0 12px 12px}.program-review{white-space:normal;text-align:left}}

/* Telegram Mini App presentation */
body.telegram-app{--bg:#f6f6ff;--ink:#202444;--muted:#73758b;color-scheme:light;padding-bottom:calc(82px + env(safe-area-inset-bottom));background:var(--bg);color:var(--ink)}
body.telegram-app .topbar,body.telegram-app footer{display:none}
body.telegram-app main{width:min(900px,calc(100% - 24px));padding-top:10px}
body.telegram-app .campus-app-welcome{display:block;margin:4px 0 14px;padding:16px 18px;border:1px solid var(--line);border-radius:18px;background:linear-gradient(130deg,#fff,#f2f0ff);box-shadow:var(--shadow)}
.campus-app-greeting{display:flex;align-items:center;gap:12px}.campus-app-mark{display:grid;place-items:center;width:44px;height:44px;flex:none;border-radius:14px;background:#ece9ff;font-size:23px}.campus-app-greeting .eyebrow{font-size:10px}.campus-app-greeting h2{margin:1px 0 0;font-size:20px}.campus-app-welcome>p{margin:10px 0 7px;color:var(--muted);font-size:14px}.campus-app-account{font-size:12px;font-weight:650;color:#4f7e69}.campus-app-account.error{color:#b3284c}
body.telegram-app .hero{padding:18px 4px 18px}body.telegram-app .hero h1{font-size:clamp(30px,7vw,46px);margin:8px 0}body.telegram-app .hero>p{font-size:15px;max-width:740px}body.telegram-app .hero .trust{margin-top:14px;font-size:12px}body.telegram-app .hero-actions .button.ghost{display:none}
body.telegram-app .search-panel{grid-template-columns:1fr;gap:12px;padding:17px;border-radius:17px}body.telegram-app .search-panel h2{font-size:20px}body.telegram-app .search-tools{grid-template-columns:minmax(0,1fr) 135px}body.telegram-app .search{height:48px}body.telegram-app .search-tools select,.search-tools #city-filter{height:48px}body.telegram-app .search-suggestions{grid-column:1}
body.telegram-app .catalog-note{font-size:12px;margin:12px 2px 14px}body.telegram-app .university{border-radius:16px}body.telegram-app .university-cover{height:140px}body.telegram-app .university-head{padding:14px}body.telegram-app .faculty-list{padding:0 14px 14px}body.telegram-app .institution-rating{margin:0 14px 12px}body.telegram-app .source-info{padding:0 14px 10px}body.telegram-app .licensed-programs{margin:0 14px 14px}
body.telegram-app .campus-app-nav{position:fixed;z-index:20;left:0;right:0;bottom:0;display:grid;grid-template-columns:repeat(4,1fr);gap:4px;padding:8px 8px calc(8px + env(safe-area-inset-bottom));border-top:1px solid var(--line);background:rgba(255,255,255,.96);backdrop-filter:blur(16px)}
.campus-app-nav button{display:grid;justify-items:center;gap:2px;min-height:52px;padding:5px 2px;border:0;border-radius:13px;background:transparent;color:var(--muted);font-size:10px;font-weight:650}.campus-app-nav button span{font-size:21px;line-height:1}.campus-app-nav button.active{background:#eeecff;color:var(--violet)}
body.telegram-app .personal-panel{scroll-margin-top:12px}body.telegram-app .rules{margin-bottom:20px}
@media(min-width:761px){body.telegram-app .hero{padding-top:28px}body.telegram-app .hero h1{font-size:48px}.campus-app-nav{max-width:720px;left:50%!important;right:auto!important;width:100%;transform:translateX(-50%);border:1px solid var(--line);border-bottom:0;border-radius:18px 18px 0 0}}
@media(max-width:480px){body.telegram-app main{width:calc(100% - 18px)}body.telegram-app .search-tools{grid-template-columns:minmax(0,1fr) 112px;gap:6px}body.telegram-app .search-tools select,.search-tools #city-filter{font-size:12px;padding:0 8px}body.telegram-app .hero-actions .button{width:100%}body.telegram-app .hero h1{font-size:30px}}

/* A warmer, more deliberate Telegram Mini App shell */
body.telegram-app{--bg:#f4f3fc;--line:#e7e5f1;background:linear-gradient(180deg,#efedff 0,#f7f6fc 250px,#f7f6fc 100%);touch-action:pan-y}
body.telegram-app main{width:min(760px,calc(100% - 24px));padding-top:8px}
body.telegram-app .campus-app-welcome{position:relative;isolation:isolate;overflow:hidden;margin:5px 0 16px;padding:20px;border:0;border-radius:24px;background:linear-gradient(132deg,#5143c7 0%,#6b5ee1 54%,#9179eb 100%);box-shadow:0 16px 34px #5748cb30;color:#fff}
body.telegram-app .campus-app-welcome:before,body.telegram-app .campus-app-welcome:after{content:"";position:absolute;z-index:-1;border-radius:50%;pointer-events:none}
body.telegram-app .campus-app-welcome:before{width:205px;height:205px;right:-64px;top:-112px;background:#ffffff20}
body.telegram-app .campus-app-welcome:after{width:118px;height:118px;right:80px;bottom:-88px;background:#f9b9d51c}
body.telegram-app .campus-app-greeting{align-items:flex-start;gap:13px}
body.telegram-app .campus-app-mark{width:48px;height:48px;border:1px solid #ffffff45;border-radius:16px;background:#ffffff20;font-size:25px;box-shadow:inset 0 1px #ffffff38}
body.telegram-app .campus-app-greeting .eyebrow{color:#e4ddff;font-size:10px;letter-spacing:2.2px}
body.telegram-app .campus-app-greeting h2{color:#fff;font-size:clamp(20px,5vw,25px);line-height:1.2;letter-spacing:-.4px}
body.telegram-app .campus-app-welcome>p{max-width:560px;margin:15px 0 12px;color:#f4f1ff;font-size:14px;line-height:1.5}
body.telegram-app .campus-app-account{display:inline-flex;align-items:center;gap:6px;max-width:100%;padding:6px 10px;border:1px solid #ffffff36;border-radius:999px;background:#ffffff18;color:#f4f0ff;font-size:11px;line-height:1.35}
body.telegram-app .campus-app-account:not(.error):before{content:"✓";font-weight:800}
body.telegram-app .campus-app-account.error{color:#fff0f2}
body.telegram-app .campus-app-suggest{display:flex;align-items:center;justify-content:center;width:100%;min-height:45px;margin-top:15px;padding:10px 14px;border:1px solid #fff9;border-radius:14px;background:#fff;color:#5548c9;font-weight:750;font-size:14px;box-shadow:0 5px 15px #29207522;transition:transform .16s ease,box-shadow .16s ease}
body.telegram-app .campus-app-suggest:hover{transform:translateY(-1px);box-shadow:0 8px 20px #29207530}
body.telegram-app .hero{display:none}
body.telegram-app .search-panel{display:grid;grid-template-columns:1fr;gap:12px;padding:16px;border:1px solid #e8e5f5;border-radius:20px;background:#fff;box-shadow:0 8px 26px #30246b0b}
body.telegram-app .search-panel .eyebrow{font-size:10px;letter-spacing:1.8px}
body.telegram-app .search-panel h2{font-size:19px;letter-spacing:-.35px}
body.telegram-app .search-tools{display:grid;grid-template-columns:minmax(0,1fr) 120px;gap:8px;width:100%}
body.telegram-app .search{width:100%;height:48px;margin:0;padding:0 12px;border-color:#e7e5f2;border-radius:14px;background:#faf9fe}
body.telegram-app .search input{font-size:13px}
body.telegram-app .search-tools select,.search-tools #city-filter{height:48px;padding:0 10px;border-color:#e7e5f2;border-radius:14px;background:#faf9fe;font-size:12px}
body.telegram-app .catalog-note{margin:11px 3px 13px;font-size:11px}
body.telegram-app .university{border-color:#e8e6f2;border-radius:19px;box-shadow:0 7px 22px #30246b0a}
body.telegram-app .university-cover{height:150px}
body.telegram-app .university-head{padding:15px}
body.telegram-app .uni-title{font-size:15px;line-height:1.35}
body.telegram-app .institution-rating{border-radius:13px;background:#fcfbff}
body.telegram-app .campus-app-nav{gap:5px;padding:8px 10px calc(8px + env(safe-area-inset-bottom));border-top:1px solid #e8e6f1;background:#ffffffed;box-shadow:0 -8px 24px #2720440b}
body.telegram-app .campus-app-nav button{min-height:54px;border-radius:15px;font-size:10px;transition:background .16s ease,color .16s ease}
body.telegram-app .campus-app-nav button.active{background:#eeebff;color:#5e50d6}
@media(min-width:761px){body.telegram-app .campus-app-welcome{padding:23px 25px}body.telegram-app .campus-app-suggest{width:auto;min-width:220px}body.telegram-app .campus-app-nav{max-width:740px}}
@media(max-width:480px){body.telegram-app main{width:calc(100% - 20px)}body.telegram-app .campus-app-welcome{padding:17px;border-radius:21px}body.telegram-app .search-panel{padding:14px}body.telegram-app .search-tools{grid-template-columns:minmax(0,1fr) 106px;gap:6px}body.telegram-app .search-tools select,.search-tools #city-filter{font-size:11px;padding:0 7px}body.telegram-app .university-cover{height:132px}}
@media(prefers-reduced-motion:reduce){body.telegram-app .campus-app-suggest,body.telegram-app .campus-app-nav button{transition:none}}

/* Small-screen controls: a quiet clear action and readable rating labels */
.search input[type="search"]{-webkit-appearance:none;appearance:none}
.search input[type="search"]::-webkit-search-cancel-button,.search input[type="search"]::-webkit-search-decoration{-webkit-appearance:none;display:none}
.search button#clear-search{-webkit-appearance:none;appearance:none;display:grid;place-items:center;flex:0 0 34px;width:34px;height:34px;padding:0;border:0;border-radius:50%;background:#efedf8;color:#676384;font-size:20px;font-weight:500;line-height:1;box-shadow:none}
.search button#clear-search:hover{background:#e5e1f7;color:#5144cd}
.search button#clear-search:focus-visible{outline:2px solid #6759e8;outline-offset:2px}
.review-form .score-control select{box-sizing:border-box;flex:0 0 124px;width:124px;max-width:42vw;min-width:112px;padding:9px 26px 9px 11px;font-size:14px;line-height:1.2;white-space:nowrap}
@media(max-width:420px){.review-form .score-control{gap:8px;font-size:13px}.review-form .score-control select{flex-basis:116px;width:116px;min-width:108px;padding-left:9px;padding-right:24px;font-size:13px}}

.uni-mark-photo{position:relative;background:#e8e5fb;color:var(--violet)}.uni-mark-photo img{display:block;width:100%;height:100%;padding:4px;object-fit:contain;background:#fff}.uni-mark-photo img[data-kind="commons"]{padding:0;object-fit:cover}.uni-mark-initials{position:absolute;inset:0;display:grid;place-items:center;font-size:13px;font-weight:800;letter-spacing:.04em}.uni-mark-initials[hidden]{display:none}.review-form .anonymous-consent{margin-top:12px}
/* Published institution rating opens the review list. */
button.institution-rating{width:calc(100% - 101px);font:inherit;text-align:left;cursor:pointer;transition:border-color .15s,background .15s}
button.institution-rating:hover,button.institution-rating:focus-visible{border-color:#c8c2fa;background:#f8f7ff;outline-color:var(--violet)}
@media(max-width:760px){button.institution-rating{width:calc(100% - 24px)}}
/* Keep Mini App search controls inside narrow Telegram WebView widths. */
body.telegram-app .search-panel,body.telegram-app .search-tools{min-width:0;max-width:100%;width:100%}
body.telegram-app .search-tools #city-filter{width:100%;min-width:0}
@media(max-width:600px){body.telegram-app .search-tools{grid-template-columns:minmax(0,1fr)}}
@media(max-width:600px){body.telegram-app .search-tools #city-filter{font-size:16px}}

/* In the Mini App, personal sections are full screens reached from the tab bar. */
body.telegram-app #personal-tools{display:none!important}
body.telegram-app .personal-panel{min-height:calc(100dvh - 116px);margin:10px 0 24px;padding:22px;border-radius:22px}
body.telegram-app .personal-panel .section-head{position:sticky;top:0;z-index:2;padding:8px 0 14px;background:#fff}
body.telegram-app.keyboard-open .campus-app-nav{display:none!important}
body.telegram-app.keyboard-open{padding-bottom:max(12px,env(safe-area-inset-bottom))}
@media(max-width:600px){body.telegram-app .personal-panel{min-height:calc(100dvh - 36px);padding:17px}}
