:root{
  font-family:"Trebuchet MS","Segoe UI",Arial,sans-serif;
  color:#152542;
  background:#f5f7fa;
  --bmstu-blue:#065cab;
  --bmstu-dark:#003b78;
  --bmstu-light:#7ac6df;
  --bmstu-gray:#d1d1d1;
  --bmstu-yellow:#f8be29;
  --green:#079447;
  --red:#d92d20;
  --border:#dce4ee;
}
*{box-sizing:border-box}
body{margin:0;background:linear-gradient(180deg,#f7f9fb 0,#f4f7fa 100%);min-height:100vh}
a{color:var(--bmstu-blue)}
.topbar{height:92px;background:#fff;border-bottom:1px solid #e0e6ed;display:flex;align-items:stretch;box-shadow:0 1px 8px #002b5510}
.institution-brand{width:335px;min-width:335px;background:linear-gradient(135deg,var(--bmstu-dark),#075aa8);display:flex;align-items:center;justify-content:center;padding:9px 24px;text-decoration:none}
.institution-brand img{display:block;width:100%;max-width:285px;height:74px;object-fit:contain}
.product-head{flex:1;display:flex;align-items:center;justify-content:space-between;gap:24px;padding:0 36px}
.product-title{font-weight:800;font-size:30px;letter-spacing:.1px;color:#074f99;line-height:1.1}
.product-subtitle{margin-top:5px;color:#71809a;font-size:15px}
.top-actions{display:flex;gap:18px;align-items:center;flex-wrap:wrap;justify-content:flex-end}.top-actions>a{text-decoration:none;font-weight:700;font-size:14px}
.inline{display:inline;margin:0}
main{max-width:1540px;margin:20px auto;padding:0 28px 10px}
footer{max-width:1540px;margin:0 auto;padding:18px 30px 28px;color:#66758e;font-size:13px;line-height:1.5}
.training-alert{border:1px solid #f5b84b;background:#fffaf2;color:#ba5a00;border-radius:7px;padding:11px 20px;margin:8px 0 18px;font-size:14px}
.card{background:#fff;border:1px solid var(--border);border-radius:9px;padding:22px;box-shadow:0 3px 16px #003b7810}
.panel h2,.prompt-inline h2,.journal-card h2{color:#064a8f;margin:0 0 20px;font-size:20px}.section-no{color:#064a8f}
.workspace-grid{display:grid;grid-template-columns:1.05fr .95fr;gap:18px;align-items:stretch}
.connection-panel,.agent-panel{min-height:448px}.compact-form{display:flex;flex-direction:column;gap:9px}.field-row{display:grid;grid-template-columns:230px 1fr;align-items:center;gap:15px}.field-row label{font-weight:400;color:#425475;margin:0}.field-row input,.field-row select{margin:0}
.suffix-input{display:grid;grid-template-columns:1fr 44px;gap:8px;align-items:center}.suffix-input span{color:#5d6f89;font-size:13px}
input,select,textarea{width:100%;padding:10px 12px;border:1px solid #bdcbe0;border-radius:5px;background:#fff;color:#18304f;font:inherit;outline:none}input:focus,select:focus,textarea:focus{border-color:#3c82c8;box-shadow:0 0 0 3px #065cab14}textarea{resize:vertical;line-height:1.45}
button,.button{display:inline-flex;align-items:center;justify-content:center;gap:6px;border:1px solid var(--bmstu-blue);border-radius:5px;padding:10px 16px;background:var(--bmstu-blue);color:#fff;text-decoration:none;font-weight:700;cursor:pointer;font:inherit;line-height:1.1}.button{font-size:14px}.outline{background:#fff;color:var(--bmstu-blue);border-color:#7aa8d5}.small{padding:9px 16px}.danger{background:#b42318;border-color:#b42318}.danger-outline{color:#a8322b;border-color:#d7a19d}.stop{color:#e12626;background:#fff;border-color:#ef8787}.primary-strong{background:linear-gradient(90deg,#0756a4,#003f82);border-color:#034f97;color:#fff}.wide{width:100%}
.button-row{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin-top:12px}.lower-actions{border-top:1px solid #edf1f6;padding-top:12px}.prompt-extra-actions{margin-top:10px}
.agent-state{font-size:18px;font-weight:800;color:#6b7280;margin:8px 0 12px}.agent-state.on{color:var(--green)}.check-list{display:flex;flex-direction:column;gap:7px;color:#64748b;font-size:14px}.check-item.ready{color:#245c97}
.metrics{display:grid;grid-template-columns:repeat(4,1fr);gap:0;margin:24px 0 20px}.metrics div{text-align:center;padding:6px 12px;border-right:1px solid #dfe5ed}.metrics div:last-child{border-right:0}.metrics b{display:block;color:#003e84;font-size:28px;line-height:1.1}.metrics span{display:block;color:#66758e;font-size:12px;margin-top:7px}.agent-buttons{display:flex;flex-direction:column;gap:9px}.trial-line{margin:16px 0 0;color:#71809a;text-align:right;font-size:13px}
.prompt-inline{margin-top:18px}.prompt-head{display:flex;justify-content:space-between;align-items:flex-start;gap:20px;margin-bottom:8px}.prompt-head h2{margin-bottom:5px}.prompt-head p{margin:0;color:#66758e;font-size:13px}.version-badge{font-size:12px;background:#e3f5eb;color:#1c7b49;border-radius:14px;padding:4px 8px;vertical-align:2px}.prompt-inline textarea{font-family:Consolas,"Courier New",monospace;font-size:13px;background:#fbfdff}.prompt-inline>form>button{margin-top:10px}
.journal-card{margin-top:18px}.journal-head{display:flex;justify-content:space-between;align-items:center;gap:10px}.journal-head h2{margin:0 0 12px}.journal-head span{font-size:12px;color:#71809a}.journal-table{background:linear-gradient(135deg,#003b78,#0756a4);border-radius:6px;padding:10px}.journal-table table{color:#fff}.journal-table th{color:#b9d7f1;border-bottom-color:#ffffff38}.journal-table td{border-bottom-color:#ffffff1f}.journal-table a{color:#bfe3ff}.journal-table .pill{background:#ffffff20;color:#fff}.journal-table .pill.КРИТИЧНО{background:#e74c3c;color:#fff}.journal-table .pill.СЕГОДНЯ{background:#d69200;color:#fff}.journal-table .pill.НА_НЕДЕЛЕ{background:#3a76c8;color:#fff}.journal-table .pill.ИНФОРМАЦИЯ{background:#188b5a;color:#fff}.journal-empty{background:#053e77;color:#d8eaff;border-radius:6px;padding:18px}
.tablewrap{overflow:auto}table{width:100%;border-collapse:collapse}th,td{text-align:left;border-bottom:1px solid #edf0f4;padding:10px 8px;vertical-align:top;font-size:13px}.pill{display:inline-block;padding:4px 7px;border-radius:999px;background:#eef1f5;font-size:11px}.pill.КРИТИЧНО{background:#fee4e2;color:#b42318}.pill.СЕГОДНЯ{background:#fff0d5;color:#9b5c00}.pill.НА_НЕДЕЛЕ{background:#e8f0ff;color:#2858b8}.pill.ИНФОРМАЦИЯ{background:#eaf7ef;color:#237447}
.page-title,.hero{display:flex;justify-content:space-between;gap:20px;align-items:center;margin-bottom:16px}.page-title h1,.hero h1,h1{margin:0 0 8px;color:#064a8f}.muted{color:#66758e}.grid2{display:grid;grid-template-columns:1fr 1fr;gap:18px}.actions{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin:16px 0}label{display:block;font-weight:600;margin:13px 0}label.check{display:flex;gap:10px;align-items:flex-start;font-weight:400;font-size:14px}label.check input{width:auto;margin-top:3px}.alert{padding:13px 15px;border-radius:7px;background:#fff7d6;margin:14px 0}.alert.bad{background:#feeceb;color:#8b1e17}.toast{position:fixed;right:20px;bottom:20px;background:#053e77;color:#fff;padding:13px 16px;border-radius:7px;z-index:10;box-shadow:0 6px 24px #001d3d38}.state{padding:10px 14px;border-radius:999px;background:#eceff3;white-space:nowrap}.state.on{background:#e7f7ed;color:#176b3a}.executive{border-left:5px solid var(--bmstu-blue)}.compare-new{border-top:4px solid var(--bmstu-blue)}.security{display:inline-block;margin-left:8px;padding:5px 8px;border-radius:8px;background:#fff3cd;color:#725300;font-size:12px}.prose{line-height:1.6}.prose h2{margin-top:22px}.version-list{line-height:1.9}
.login{max-width:480px;margin:55px auto}.branded-login{border-top:5px solid var(--bmstu-blue)}.login-kicker{color:var(--bmstu-blue);font-weight:800;text-transform:uppercase;letter-spacing:.08em;font-size:12px;margin-bottom:8px}.branded-login h1{font-size:27px}
@media(max-width:1000px){.topbar{height:auto;flex-direction:column}.institution-brand{width:100%;min-width:0;height:86px}.institution-brand img{max-width:300px}.product-head{padding:18px 24px}.workspace-grid{grid-template-columns:1fr}.connection-panel,.agent-panel{min-height:0}.field-row{grid-template-columns:185px 1fr}}
@media(max-width:680px){main{padding:0 12px}.product-head,.page-title,.prompt-head{align-items:flex-start;flex-direction:column}.product-title{font-size:24px}.top-actions{justify-content:flex-start}.field-row{grid-template-columns:1fr;gap:4px}.metrics{grid-template-columns:1fr 1fr}.metrics div:nth-child(2){border-right:0}.metrics div{border-bottom:1px solid #dfe5ed}.grid2{grid-template-columns:1fr}.button-row>*{width:100%}.button-row form{width:100%}.button-row button,.button-row .button{width:100%}}
