@font-face{font-family:Golos Text;src:url(/fonts/golos-cyr.woff2) format("woff2");font-weight:400 700;font-display:swap;unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:Golos Text;src:url(/fonts/golos.woff2) format("woff2");font-weight:400 700;font-display:swap}
@font-face{font-family:Prata;src:url(/fonts/prata.woff2) format("woff2");font-weight:400;font-display:swap}
:root{--paper:#FAF8F3;--ink:#22263A;--muted:#626477;--edge:#e9e5df;--surface:#fffefa;--violet:#4d3b85;--lilac:#eeebf9;--focus:#6351a2;--red:#a53541;--red-bg:#fae6e6;--yellow:#775009;--yellow-bg:#fff0c9;--green:#246246;--green-bg:#e6f3e8;font-family:Golos Text,system-ui,sans-serif;color:var(--ink);background:var(--paper);font-size:16px;font-synthesis:none}
*{box-sizing:border-box}
body{margin:0;line-height:1.45}
h1,h2,h3,p,ul,dl{margin:0}
h1{font-size:2rem;line-height:1.12;font-weight:650;letter-spacing:-.05em}
h2{font-size:1.14rem;font-weight:650;letter-spacing:-.026em;line-height:1.25}
h3{font-size:1rem;line-height:1.3;font-weight:650}
[data-hidden], [hidden]{display:none!important}
button,input,select,textarea{font:inherit;color:inherit}
button,select{cursor:pointer}
button:disabled{cursor:wait;opacity:.58}
a{color:var(--violet);text-decoration-thickness:1px;text-underline-offset:3px}
:focus-visible{outline:2px solid var(--focus);outline-offset:3px}
.symbols{position:absolute;width:0;height:0;overflow:hidden}
.icon{width:1.12rem;height:1.12rem;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round;flex:0 0 auto}
.top-line{height:5px;background:linear-gradient(95deg,#b9d6f0 0%,#cbdaf5 26%,#d9c9f3 55%,#f4d2db 83%,#f6dbbb 100%)}
.shell{width:min(100% - 64px,1224px);margin-inline:auto}
.site-header{background:#fffdf9;border-bottom:1px solid var(--edge)}
.header-inner,.brand,.header-tools,.section-heading,.page-heading,.title-count,.filters,.mode,.dialog-head,.drawer-head,.agent-heading{display:flex;align-items:center}
.header-inner{height:65px;justify-content:space-between;gap:16px}
.brand{gap:11px;white-space:nowrap}
.wordmark{font-family:Prata,Georgia,serif;font-size:1.38rem;line-height:1.2;letter-spacing:-.048em;color:#2c2943;font-weight:400}
.wordmark span{letter-spacing:-.073em;margin-left:.045em}
.header-tools{gap:12px}
.mode{background:#f1eee9;padding:3px;border-radius:9px;gap:1px}
.mode a{padding:5px 10px;font-size:.81rem;text-decoration:none;color:var(--muted);border-radius:6px;white-space:nowrap}
.mode a[aria-current=page]{color:var(--violet);background:#fffefa;box-shadow:0 1px 3px #3126521d;font-weight:600}
.button,.icon-button,.text-button,.prompt{border:0;background:none}
.button{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:1px solid var(--edge);background:var(--surface);border-radius:9px;padding:8px 12px;font-size:.875rem;font-weight:600;min-height:38px;text-decoration:none;white-space:nowrap}
.button:hover,.icon-button:hover,.prompt:hover{background:#f0edf7}
.button.primary{background:#41356d;color:white;border-color:#41356d}
.button.primary:hover{background:#504180}
.icon-button{display:inline-grid;place-items:center;min-width:36px;min-height:36px;border-radius:9px;color:var(--muted);flex:0 0 auto}
.text-button{font-size:.84rem;font-weight:600;padding:6px 0;color:var(--violet);text-align:left}
.text-button:hover{text-decoration:underline;text-underline-offset:3px}
.page{padding-top:23px;padding-bottom:36px}
.page-heading{justify-content:space-between;gap:12px;margin-bottom:15px}
.today,.quiet{color:var(--muted);font-size:.82rem}
.today{white-space:nowrap}
.demo-banner{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:6px 12px;background:#f0ecf8;border:1px solid #e8e0f4;border-radius:10px;margin-bottom:15px;font-size:.83rem;color:#544866}
.dashboard{display:grid;grid-template-columns:minmax(0,1fr) 282px;grid-template-areas:"upcoming universities" "tasks universities" "tasks inbox";gap:15px 18px;align-items:start;grid-template-rows:auto auto 1fr}
.upcoming{grid-area:upcoming}
.tasks-section{grid-area:tasks}
.university-section{grid-area:universities}
.inbox-section{grid-area:inbox}
.section-heading{justify-content:space-between;gap:12px;min-height:33px;margin-bottom:7px}
.upcoming-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.upcoming-card{background:linear-gradient(116deg,#eae8fa,#f5eef6 70%,#faeee7);border:1px solid #eae2f0;border-radius:12px;text-align:left;padding:11px 13px;min-width:0}
.upcoming-card:nth-child(2){background:linear-gradient(116deg,#edf1fb,#f5eff9 69%,#f7eef2)}
.upcoming-card:hover{border-color:#b8a7d5}
.card-top{display:flex;align-items:center;justify-content:space-between;gap:7px;margin-bottom:5px}
.card-date{color:#483c70;display:flex;align-items:center;gap:6px;font-size:.86rem;font-weight:600}
.upcoming-card h3{overflow-wrap:anywhere}
.card-university{font-size:.82rem;color:var(--muted);margin-top:3px;overflow-wrap:anywhere}
.badge{display:inline-flex;align-items:center;gap:5px;justify-self:start;white-space:nowrap;border-radius:20px;padding:3px 8px;font-size:.78rem;font-weight:600;background:#f0efec;color:#53576c}
.badge::before{content:"";width:5px;height:5px;border-radius:50%;background:currentColor}
.badge.urgent{background:var(--red-bg);color:var(--red)}
.badge.waiting,.badge.reviewing{background:var(--yellow-bg);color:var(--yellow)}
.badge.done,.badge.admitted{background:var(--green-bg);color:var(--green)}
.badge.clarify{background:#efedf2;color:#575569}
.title-count{gap:8px;white-space:nowrap}
.count{color:#666478;background:#efebe7;padding:2px 7px;border-radius:15px;font-size:.75rem;font-weight:600}
.filters{gap:8px}
.searchbox,.filterbox{display:flex;align-items:center;gap:5px;padding:0 8px;background:#fffefa;border:1px solid var(--edge);border-radius:8px;min-height:34px;color:var(--muted)}
.searchbox:focus-within,.filterbox:focus-within{outline:2px solid var(--focus);outline-offset:1px}
.searchbox input,.filterbox select{background:transparent;border:0;font-size:.82rem;padding:6px 0;outline:none;color:var(--ink);min-width:0}
.searchbox input{width:119px}
.filterbox select{appearance:none;padding-right:9px}
.filterbox{position:relative}
.filterbox::after{content:"";width:5px;height:5px;border-right:1px solid currentColor;border-bottom:1px solid currentColor;transform:rotate(45deg);pointer-events:none;position:absolute;right:7px;top:12px}
.table-wrap,.university-list,.inbox-card{border:1px solid var(--edge);background:#fffefa;border-radius:12px;overflow:hidden}
.task-grid{display:grid;grid-template-columns:minmax(0,1.18fr) minmax(0,1.2fr) minmax(102px,.69fr) minmax(99px,.48fr) 15px;align-items:center;column-gap:11px}
.table-head{background:#f5f2ed;border-bottom:1px solid var(--edge);color:#636478;padding:8px 12px;font-size:.76rem;font-weight:600}
.task-row{border:0;background:transparent;min-height:58px;padding:8px 12px;width:100%;text-align:left;line-height:1.32;font-size:.86rem}
.task-rows [role=listitem]+[role=listitem]{border-top:1px solid #efebe5}
.task-row:hover,.uni-button:hover{background:#f7f4fc}
.uni-name,.row-action{font-weight:600;overflow-wrap:anywhere}
.uni-program,.date-zone{display:block;color:var(--muted);font-size:.75rem;margin-top:3px;overflow-wrap:anywhere}
.row-deadline{font-size:.84rem;font-weight:600;min-width:0}
.deadline-dates{display:flex;flex-wrap:wrap;align-items:baseline;column-gap:4px}
.deadline-dates s{color:#737286;font-weight:400}
.date-move{color:var(--violet)}
.row-caret{color:#888398;width:.9rem;height:.9rem}
.university-list:empty{display:none}
.uni-button{display:flex;gap:9px;min-height:45px;align-items:center;text-align:left;width:100%;background:transparent;border:0;padding:6px 9px}
.uni-button+.uni-button{border-top:1px solid #efebe5}
.uni-button[aria-pressed=true]{background:#f0ebfa;box-shadow:inset 2px 0 #685598}
.uni-monogram{display:grid;place-items:center;border-radius:7px;background:#eae6f8;color:#574580;min-width:29px;height:29px;font-size:.71rem;font-weight:700;letter-spacing:.02em}
.uni-button:nth-child(3n+2) .uni-monogram{background:#e7edf9;color:#3e527b}
.uni-button:nth-child(3n+3) .uni-monogram{background:#f7e8df;color:#734d3e}
.uni-label{font-size:.83rem;font-weight:550;flex:1;overflow-wrap:anywhere}
.uni-total{font-size:.76rem;color:var(--muted);font-variant-numeric:tabular-nums}
.inbox-card{padding:11px}
.mail-state{display:flex;gap:8px;align-items:center;font-size:.88rem;font-weight:600}
.mail-state .icon{color:var(--violet)}
.inbox-card p{margin-top:5px}
.inbox-actions{display:flex;flex-wrap:wrap;gap:7px;margin-top:9px}
.inbox-actions .button{min-height:34px;padding:6px 8px;font-size:.8rem}
.empty{padding:17px 13px;color:var(--muted);background:#fffefa;border-radius:10px;font-size:.86rem}
.upcoming-grid .empty{grid-column:1/-1;border:1px solid var(--edge)}
.notice{padding:9px 11px;border:1px solid #edd6d6;border-radius:8px;background:#fbebeb;color:#822c38;font-size:.85rem;margin-bottom:12px}
.inbox-card .notice{margin:7px 0 0}
dialog{border:1px solid #e8e2ee;color:var(--ink);box-shadow:0 10px 50px #25213625}
dialog::backdrop{background:#29224035}
.drawer{position:fixed;inset:0 0 0 auto;margin:0;width:min(480px,100%);height:100dvh;max-height:none;max-width:none;padding:0;border-radius:15px 0 0 15px;background:#fdfbfa}
.details-drawer{background:linear-gradient(140deg,#fcf9f5f2,#f1ecfaf0);backdrop-filter:blur(22px)}
.drawer-inner{height:100%;overflow:auto;padding:17px;display:flex;flex-direction:column;gap:13px}
.drawer-head,.dialog-head{justify-content:space-between;gap:12px}
.drawer-title{font-size:1.48rem}
.detail-block{border-top:1px solid #e5dfec;padding-top:11px;display:grid;gap:6px}
.detail-block p,.detail-block li,.source-card,.edit-form{font-size:.9rem}
.detail-block ul{padding-left:18px}
.detail-block li + li{margin-top:4px}
.detail-meta,.detail-actions{display:flex;gap:8px;flex-wrap:wrap;align-items:center}
.source-card{background:#fffdfcc9;border:1px solid #ece5ef;display:grid;gap:5px;border-radius:9px;padding:8px 10px}
.source-card q{margin:0;color:#57536a;white-space:pre-wrap;overflow-wrap:anywhere}
.source-card a,.chat-sources a{display:inline-flex;align-items:center;gap:4px}
.edit-form,.stack{display:grid;gap:10px}
.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.form-grid.triple{grid-template-columns:1.15fr 1fr 1fr}
label:has(>input),label:has(>textarea){min-width:0}
.stack label,.edit-form label{display:grid;gap:3px;font-size:.82rem;color:#55546a}
.stack input,.edit-form input,.edit-form textarea,.chat-form textarea{background:#fffefa;border:1px solid #ded7e6;border-radius:8px;padding:7px 8px;width:100%;outline-offset:1px;min-height:35px}
textarea{resize:vertical}
.settings-dialog{border-radius:13px;padding:14px;width:min(440px,calc(100% - 24px));background:#fffdf9}
.dialog-head{margin-bottom:10px}
.agent-heading{gap:9px}
.agent-symbol{width:34px;height:34px;display:grid;place-items:center;background:#eeebf8;color:var(--violet);border-radius:9px}
.chat-inner{overflow:hidden}
.chat-log{min-height:0;flex:1;overflow:auto;display:flex;flex-direction:column;gap:11px}
.bubble{border:1px solid var(--edge);background:#f5f2ee;padding:9px 11px;border-radius:10px;max-width:94%;align-self:flex-start;white-space:pre-wrap;overflow-wrap:anywhere;font-size:.94rem}
.bubble.user{background:#eeebf8;border-color:#e6e1f3;align-self:flex-end}
.bubble.waiting{color:var(--muted)}
.chat-sources{display:grid;gap:4px;margin-top:7px;font-size:.81rem}
.prompts{display:flex;gap:6px;flex-wrap:wrap}
.prompt{border:1px solid var(--edge);background:#fffefa;border-radius:16px;font-size:.8rem;color:var(--violet);padding:6px 9px}
.chat-form{display:flex;align-items:end;gap:7px;border-top:1px solid var(--edge);padding-top:10px}
.chat-form textarea{resize:none;max-height:110px}
.send{min-width:42px;min-height:42px}
.toast{position:fixed;bottom:16px;left:50%;transform:translateX(-50%);padding:8px 12px;border-radius:9px;background:#28213e;color:white;z-index:2;font-size:.86rem;max-width:calc(100% - 24px);box-shadow:0 5px 25px #27213d35}
.login-page{min-height:100dvh}
.login-card,.mail-view{background:#fffefa;border:1px solid var(--edge);border-radius:13px;padding:16px;width:min(390px,calc(100% - 24px));margin:13vh auto 20px;display:grid;gap:13px}
.mail-view{width:min(640px,calc(100% - 24px));margin:18px auto}
.mail-body{white-space:pre-wrap;overflow-wrap:anywhere}
@media(max-width:1020px){.shell{width:calc(100% - 40px)}.dashboard{grid-template-columns:minmax(0,1fr) 232px;gap:14px}.task-grid{grid-template-columns:minmax(0,1.02fr) minmax(0,1fr) minmax(90px,.62fr) minmax(85px,.55fr) 11px;column-gap:7px}.task-row,.table-head{padding-inline:9px}}
@media(max-width:790px){
  .shell{width:calc(100% - 26px)}
  .dashboard{grid-template-columns:minmax(0,1fr);grid-template-areas:"upcoming" "universities" "tasks" "inbox";grid-template-rows:none;gap:14px}
  .university-list{display:flex;overflow:auto;background:transparent;gap:6px;border:0;padding:3px 2px;scrollbar-width:thin}
  .uni-button,.uni-button+.uni-button{width:auto;min-width:max-content;border:1px solid var(--edge);background:#fffefa;border-radius:9px;padding:4px 7px;min-height:40px;gap:5px}
  .uni-button[aria-pressed=true]{box-shadow:none;border-color:#bfb1db}
  .uni-monogram{min-width:24px;height:24px}
  .university-section .section-heading{margin-bottom:3px}
}
@media(max-width:540px){
  .shell{width:calc(100% - 22px)}
  .header-inner{height:auto;min-height:72px;align-items:flex-start;padding:9px 0;gap:6px;flex-wrap:wrap}
  .brand{gap:7px}
  .brand img{width:30px;height:30px}
  .wordmark{font-size:1.17rem}
  .header-tools{gap:6px;flex:1;justify-content:space-between}
  .header-tools .button{font-size:.79rem;min-height:34px;padding:6px 8px}
  .header-tools .icon{width:15px;height:15px}
  .mode a{padding:5px 7px}
  .logout{min-width:30px;min-height:34px}
  .page{padding-top:13px}
  h1{font-size:1.63rem}
  .page-heading{margin-bottom:10px}
  .demo-banner{padding:5px 8px;gap:5px;margin-bottom:9px;font-size:.76rem}
  .demo-banner .text-button{font-size:.75rem;white-space:nowrap}
  .section-heading{min-height:30px;gap:5px}
  .upcoming-grid{gap:7px}
  .upcoming-card{padding:7px 8px;min-height:78px}
  .card-top{gap:3px;flex-wrap:wrap}
  .card-university,.card-date{font-size:.75rem}
  .upcoming-card .badge{display:none}
  .tasks-head{align-items:flex-start;flex-wrap:wrap}
  .title-count{min-height:34px}
  .filters{gap:5px}
  .searchbox,.filterbox{padding-left:5px}
  .searchbox input{width:78px}
  .searchbox input,.filterbox select{font-size:.75rem}
  .filterbox .icon{display:none}
  .table-head{display:none}
  .task-row{grid-template-columns:minmax(0,1.05fr) minmax(0,1.05fr) minmax(69px,.66fr);column-gap:7px;row-gap:3px;padding:8px;min-height:58px}
  .task-row .row-caret{display:none}
  .row-uni{grid-column:1;grid-row:1 / 3}
  .row-action{grid-row:1/3;grid-column:2}
  .row-deadline{grid-row:1;grid-column:3;font-size:.78rem;align-self:end}
  .task-row .badge{grid-row:2;grid-column:3;font-size:.7rem;padding:1px 4px;align-self:start}
  .uni-program,.date-zone{font-size:.73rem}
  .drawer{border-radius:0;border:0}
  .drawer-inner{padding:12px}
}

#settings-mail:not(:empty){margin-bottom:12px}

.badge.reviewing{white-space:normal;line-height:1.18}
