:root{--blue:#275a83;--blue-dark:#204a6c;--gray:#e9ecef;--border:#cfd4da;--text:#1f2937;--muted:#6b7280;--accent:#ffb703;--success-bg:#e8f5e9;--success-border:#c8e6c9;--success-text:#1e4620;--error-bg:#fdecea;--error-border:#f5c6cb;--error-text:#611a15}
*{box-sizing:border-box}
html,body{height:100%}
body{margin:0;font-family:'Inter',system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,'Helvetica Neue',Arial,sans-serif;color:var(--text);background:#f5f7fa}

.topbar{background:var(--blue);color:#fff;padding:18px 24px;display:flex;align-items:center;gap:14px}
.logo{font-weight:700;font-size:28px;letter-spacing:.3px;text-decoration:none;color:#fff}
.logo span{color:var(--accent)}
.subtitle{opacity:.85;font-weight:600}
.user-menu{position:relative;max-width:760px;margin:0 auto;padding:8px 16px;font-size:14px;background:var(--lilac);color:#fff;display:flex;align-items:center;justify-content:center;gap:8px;border-bottom-left-radius:12px;border-bottom-right-radius:12px;z-index:1000}
.user-menu .menu-btn{display:none;background:transparent;border:none;color:#fff;border-radius:6px;padding:6px 10px;font-weight:600;display:none}
.user-menu .menu-btn{display:none}
.user-menu .menu-btn{display:none}
@media (max-width:520px){.user-menu .menu-btn{display:inline-flex;align-items:center;justify-content:center;flex-direction:column;gap:3px;width:36px;height:32px;padding:0}}
.user-menu .menu-btn .hamb{display:block;width:18px;height:2px;background:#fff;border-radius:2px}
.user-menu .menu-btn .hamb + .hamb{margin-top:3px}
.user-menu .menu-close{display:none;background:transparent;border:1px solid rgba(255,255,255,.6);color:#fff;border-radius:50%;width:28px;height:28px;line-height:26px;text-align:center;font-weight:700}
.user-menu .links{display:flex;align-items:center;gap:12px}
.user-menu a{color:#fff;text-decoration:none}
.user-menu a:hover{text-decoration:underline}
.user-menu .sep{color:rgba(255,255,255,.7)}
@media (max-width:520px){
  .user-menu{justify-content:space-between}
  .user-menu .menu-btn{display:inline-block}
  .user-menu .links{display:none;position:absolute;left:0;right:0;top:100%;background:var(--lilac);padding:10px 16px;border-bottom-left-radius:12px;border-bottom-right-radius:12px;z-index:1001;box-shadow:0 8px 16px rgba(0,0,0,.12)}
  .user-menu.open .links{display:grid;gap:10px}
  .user-menu.open .menu-close{display:inline-block}
  .user-menu .sep{display:none}
}
.breadcrumb{max-width:760px;margin:8px auto 0;padding:0 16px;font-size:13px;color:var(--muted)}
.breadcrumb a{color:var(--blue-dark);text-decoration:none}
.breadcrumb a:hover{text-decoration:underline}
.breadcrumb .sep{margin:0 6px;color:var(--muted)}
.breadcrumb .active{color:#111827;font-weight:600}

.page{max-width:760px;margin:32px auto;padding:0 16px}
.intro{display:flex;flex-direction:column;gap:12px}
.pill{background:#eef2f7;border:1px solid var(--border);border-radius:8px;padding:12px 14px;font-size:14px;color:var(--text)}
.pill.success{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}
.pill.error{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}
.links-row{display:flex;flex-direction:column;gap:6px}
.link-info{font-size:14px;color:var(--muted)}
.link-info a{color:var(--blue-dark);text-decoration:none;border-bottom:1px dotted var(--blue-dark)}

.login-panel{margin-top:24px;background:#fff;border:1px solid var(--border);border-radius:12px;box-shadow:0 2px 6px rgba(0,0,0,.04);padding:18px}
.panel-title{font-weight:700;font-size:18px;color:#374151;margin-bottom:8px}
.avatar{display:flex;flex-direction:column;align-items:center;gap:6px;margin-top:8px;margin-bottom:8px}
.avatar-circle{width:54px;height:54px;border-radius:50%;background:linear-gradient(135deg,var(--blue),var(--blue-dark));display:flex;align-items:center;justify-content:center;gap:2px;color:#fff;font-weight:700}
.avatar-circle .m{color:#fff;display:inline-block}
.avatar-circle .k{color:var(--accent);display:inline-block}
.avatar-img{width:54px;height:54px;border-radius:50%;object-fit:cover;border:1px solid var(--border)}
.avatar-box{width:300px;height:300px;border:1px solid var(--border);border-radius:12px;overflow:hidden;background:#fff;box-shadow:0 4px 12px rgba(0,0,0,.06)}
.avatar-box img{width:100%;height:100%;object-fit:cover;display:block}
.avatar-placeholder{width:100%;height:100%;display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,var(--blue),var(--blue-dark));gap:8px}
.avatar-placeholder .m{color:#fff;font-weight:700;font-size:64px}
.avatar-placeholder .k{color:var(--accent);font-weight:700;font-size:64px}
.lightbox{position:fixed;left:0;right:0;top:0;bottom:0;background:rgba(0,0,0,.7);z-index:2000;display:none;align-items:center;justify-content:center}
.lightbox.open{display:flex}
.lightbox img{max-width:90vw;max-height:90vh;border-radius:12px;box-shadow:0 8px 24px rgba(0,0,0,.4);background:#fff}
.lightbox .close{position:absolute;top:16px;right:16px;background:transparent;border:1px solid rgba(255,255,255,.7);color:#fff;border-radius:50%;width:36px;height:36px;line-height:34px;text-align:center;font-weight:700;cursor:pointer}
.modal{position:fixed;left:0;right:0;top:0;bottom:0;background:rgba(0,0,0,.6);z-index:2100;display:none;align-items:center;justify-content:center}
.modal.open{display:flex}
.modal .box{background:#fff;border-radius:12px;box-shadow:0 8px 24px rgba(0,0,0,.2);width:90%;max-width:360px;padding:16px}
.modal .title{font-weight:700;font-size:16px;margin-bottom:8px;color:#111827}
.modal .content{font-size:14px;color:#374151;margin-bottom:12px}
.secondary{background:#fff;border:1px solid var(--border);color:#1f2937}
.secondary:hover{background:#f9fafb}

.login-form{display:grid;grid-template-columns:1fr;gap:8px;margin-top:8px}
.login-form.space-after{margin-bottom:14px}
.contact-card{margin-top:18px;border:2px dashed var(--border);border-radius:12px;background:#fafbff;padding:16px}
.form-hint{font-size:12px;color:var(--muted);margin-top:6px}
.login-form label{font-size:13px;color:#374151}
.login-form input{height:40px;border:1px solid var(--border);border-radius:8px;padding:0 12px;font-size:15px;background:#fff}
.login-form select{height:40px;border:1px solid var(--border);border-radius:8px;padding:0 12px;font-size:15px;background:#fff}
.smart-select{position:relative}
.smart-select .ss-display{height:40px;border:1px solid var(--border);border-radius:8px;padding:0 12px;font-size:15px;background:#fff;width:100%;text-align:left;color:var(--text)}
.smart-select.disabled .ss-display{opacity:.6}
.smart-select .ss-dropdown{position:absolute;left:0;right:0;top:100%;background:#fff;border:1px solid var(--border);border-radius:8px;margin-top:6px;box-shadow:0 8px 16px rgba(0,0,0,.08);display:none;z-index:1002}
.smart-select.open .ss-dropdown{display:block}
.smart-select .ss-search{width:100%;height:36px;border:none;border-bottom:1px solid var(--border);padding:0 12px;font-size:14px;outline:none}
.smart-select .ss-options{max-height:220px;overflow:auto}
.smart-select .ss-option{padding:10px 12px;cursor:pointer}
.smart-select .ss-option:hover{background:#f3f4f6}
.request{margin-top:16px}
.request .toggle{color:var(--blue-dark);text-decoration:none;font-size:14px}
.request .toggle:hover{text-decoration:underline}
.request-box{display:none;margin-top:10px;border:1px solid var(--border);border-radius:8px;background:#fff;padding:12px}
.request-box.open{display:block}
.request-box textarea{width:100%;min-height:84px;border:1px solid var(--border);border-radius:8px;padding:8px 10px;font-size:14px}
.request-box .hint{font-size:12px;color:var(--muted);margin-top:6px}
.request-box .actions{margin-top:10px}
.login-form input:focus{outline:2px solid #9ac1e6;border-color:#9ac1e6}

.actions{display:flex;align-items:center;justify-content:space-between;margin-top:6px}
.remember{display:flex;align-items:center;gap:8px;color:#374151;font-size:14px}
.primary{background:var(--blue);border:none;color:#fff;height:40px;padding:0 18px;border-radius:8px;font-weight:600;cursor:pointer}
.primary:hover{background:var(--blue-dark)}
.primary:disabled{background:#9aa9b8;cursor:not-allowed;opacity:.7}
.btn-small{height:32px;padding:0 12px;font-size:13px}
.danger{background:#b91c1c}
.danger:hover{background:#991b1b}

.help-links{display:flex;justify-content:center;gap:8px;margin-top:16px;font-size:14px}
.help-links a{color:var(--blue-dark);text-decoration:none}
.help-links a:hover{text-decoration:underline}
.help-links .sep{color:var(--muted)}

.site-footer{max-width:760px;margin:32px auto 40px;padding:0 16px;display:flex;align-items:center;justify-content:space-between;color:var(--muted);font-size:13px}
.site-footer .copy{opacity:.9}
.social{display:flex;gap:8px}
.social .btn{width:32px;height:32px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;background:#fff;border:1px solid var(--border);color:var(--text);text-decoration:none}
.social .btn:hover{border-color:var(--blue);transform:translateY(-1px)}
.social .txt{font-weight:700;font-size:12px}
.notify{position:fixed;top:8px;left:50%;transform:translateX(-50%);z-index:1000;max-width:760px;width:calc(100% - 32px);border-radius:10px;padding:10px 14px;border:1px solid var(--border);background:#eef2f7;color:var(--text);box-shadow:0 6px 20px rgba(0,0,0,.08);display:flex;align-items:center;justify-content:space-between;gap:12px}
.notify.success{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}
.notify.error{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}
.notify.hidden{display:none}
.notify .msg{flex:1}
.notify .close{appearance:none;border:none;background:transparent;color:inherit;font-size:18px;font-weight:700;cursor:pointer;padding:0 6px}
.field-error{margin-top:4px;color:var(--error-text);font-size:12px}
.status{font-size:12px;margin-top:4px}
.status.ok{color:var(--success-text)}
.status.bad{color:var(--error-text)}
.criteria{list-style:none;margin:4px 0 0;padding:0;display:grid;gap:4px;font-size:12px;color:var(--muted)}
.criteria li{display:flex;align-items:center;gap:8px}
.criteria li.ok{color:var(--success-text)}
.criteria li.bad{color:var(--error-text)}
.criteria .sign{display:inline-block;width:16px;text-align:center;font-weight:700}