:root{--ink:#111326;--muted:#70758b;--line:#e8e9f1;--bg:#f7f8fc;--violet:#6d4aff;--violet-soft:#f1edff;--green:#20a765;--red:#ef4f5f;--shadow:0 10px 40px rgba(34,35,58,.06);font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--ink);background:var(--bg)}*{box-sizing:border-box}body{margin:0}a{color:inherit;text-decoration:none}button,input,select,textarea{font:inherit}.app-shell{display:grid;grid-template-columns:216px 1fr;min-height:100vh}.sidebar{position:sticky;top:0;height:100vh;background:#fff;border-right:1px solid var(--line);padding:24px 18px;display:flex;flex-direction:column}.brand{display:flex;align-items:center;gap:10px;padding:8px 10px 34px}.brand-mark,.login-logo{display:grid;place-items:center;color:#fff;font-weight:900;background:linear-gradient(140deg,#8e6cff,#5836df);border-radius:12px;width:34px;height:34px;box-shadow:0 8px 18px #7454e944}.sidebar nav{display:grid;gap:8px}.sidebar nav a{display:flex;align-items:center;gap:14px;padding:12px 14px;color:#596074;border-radius:12px;font-size:14px}.sidebar nav a.active,.sidebar nav a:hover{background:var(--violet-soft);color:var(--violet)}.workspace-box{margin-top:auto;padding:14px;background:#f7f7fb;border-radius:14px;display:grid;gap:3px}.workspace-box small,.workspace-box span{font-size:11px;color:var(--muted)}main{min-width:0}.topbar{height:66px;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 28px}.top-actions{display:flex;align-items:center;gap:12px}.search{border:1px solid var(--line);border-radius:20px;padding:8px 18px;color:#9a9eb0;font-size:13px}.user-chip{font-size:13px}.icon-btn{border:0;background:none;cursor:pointer}.page{padding:28px;max-width:1500px;margin:auto}.page-head,.form-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:24px}.page-head h1,.form-head h1{font-size:27px;margin:4px 0}.page-head p,.form-head p{margin:0;color:var(--muted)}.btn{border:1px solid var(--line);background:white;padding:11px 16px;border-radius:12px;font-weight:650;cursor:pointer}.btn.primary{background:var(--ink);color:white;border-color:var(--ink)}.metric-grid,.mini-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-bottom:18px}.metric,.mini-grid article{background:white;border:1px solid var(--line);border-radius:16px;padding:20px;box-shadow:var(--shadow);display:grid;gap:8px}.metric strong{font-size:30px}.metric small,.metric span,.mini-grid span{color:var(--muted)}.metric.violet{background:linear-gradient(145deg,#fff,#f4f0ff)}.metric.blue{background:linear-gradient(145deg,#fff,#edf6ff)}.metric.green,.mini-grid .green{background:linear-gradient(145deg,#fff,#edfbf4)}.metric.red,.mini-grid .danger{background:linear-gradient(145deg,#fff,#fff0f1)}.panel,.form-card{background:white;border:1px solid var(--line);border-radius:16px;padding:20px;box-shadow:var(--shadow)}.panel-head{display:flex;align-items:center;justify-content:space-between}.panel h2{font-size:16px}.panel-head a{font-size:13px;color:var(--violet)}.empty{padding:36px;text-align:center;color:var(--muted)}.lesson-row{display:grid;grid-template-columns:110px 1fr auto;align-items:center;padding:14px 0;border-top:1px solid var(--line)}.lesson-row div{display:grid}.lesson-row span{color:var(--muted);font-size:13px}.pill{display:inline-flex;width:max-content;padding:5px 9px;background:var(--violet-soft);color:var(--violet)!important;border-radius:999px;font-size:11px!important}.pill.success{background:#eaf8f1;color:var(--green)!important}.student-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.student-card{background:white;border:1px solid var(--line);border-radius:16px;padding:18px;display:flex;align-items:center;gap:14px;box-shadow:var(--shadow)}.student-card h3{margin:0 0 5px}.student-card p{color:var(--muted);font-size:13px;margin:0 0 8px}.avatar,.profile-avatar{width:52px;height:52px;border-radius:15px;display:grid;place-items:center;background:linear-gradient(145deg,#d9d0ff,#f6f2ff);color:var(--violet);font-weight:800}.form-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}.form-grid label,.stack label{display:grid;gap:7px;font-size:13px;font-weight:650}.form-grid input,.form-grid select,.form-grid textarea,.stack input{width:100%;border:1px solid #dfe1eb;border-radius:10px;padding:11px;background:#fff}.form-grid textarea{min-height:86px;resize:vertical}.wide{grid-column:1/-1}.error,.flash{padding:12px 16px;border-radius:10px;margin-bottom:16px}.error{background:#fff0f1;color:#b22}.flash{background:#eaf8f1;color:#18784b}.profile-head{display:grid;grid-template-columns:150px 1fr 180px;gap:28px;background:white;border:1px solid var(--line);border-radius:18px;padding:24px;align-items:center}.profile-avatar{width:150px;height:160px;font-size:42px;border-radius:24px}.profile-title h1{margin:0 0 8px;font-size:28px}.profile-title p{color:var(--muted)}.profile-facts{display:grid;grid-template-columns:repeat(2,minmax(150px,1fr));gap:12px;color:#4f556a;font-size:13px}.progress-ring{width:150px;height:150px;border-radius:50%;display:grid;place-content:center;text-align:center;background:radial-gradient(circle at center,#fff 59%,transparent 60%),conic-gradient(var(--violet) 72%,#ebe9f6 0)}.progress-ring strong{font-size:32px}.progress-ring span{font-size:11px;color:var(--muted)}.mini-grid{margin-top:16px}.mini-grid strong{font-size:17px}.tabs{display:flex;gap:30px;padding:22px 14px 12px;border-bottom:1px solid var(--line);overflow:auto}.tabs span{white-space:nowrap;color:var(--muted);font-size:13px}.tabs .active{color:var(--violet);font-weight:700}.content-grid{display:grid;grid-template-columns:2fr 1fr;gap:16px;margin-top:16px}.piece{display:grid;grid-template-columns:1fr 140px 45px;align-items:center;gap:12px;padding:14px 0;border-top:1px solid var(--line)}.piece div:first-child{display:grid}.piece span{font-size:12px;color:var(--muted)}.bar{height:5px;background:#eee;border-radius:6px}.bar i{display:block;height:100%;background:var(--violet);border-radius:6px}.calendar{display:grid;grid-template-columns:72px repeat(var(--teachers,3),minmax(180px,1fr));background:white;border:1px solid var(--line);border-radius:16px;overflow:auto}.calendar-corner,.teacher-column-head{height:64px;border-bottom:1px solid var(--line);padding:12px;display:flex;align-items:center;gap:8px}.time-cell{padding:12px;color:var(--muted);font-size:12px;border-bottom:1px solid var(--line)}.slot{min-height:78px;padding:5px;border-left:1px solid var(--line);border-bottom:1px solid var(--line)}.calendar-lesson{background:var(--violet-soft);border-left:3px solid var(--violet);padding:8px;border-radius:8px;display:grid;font-size:12px}.calendar-lesson span{font-size:10px;color:var(--muted)}.auth-shell{min-height:100vh;background:radial-gradient(circle at 20% 20%,#eee9ff,transparent 35%),#f7f8fc}.auth-main{min-height:100vh;display:grid;place-items:center;padding:20px}.login-card{width:min(420px,100%);padding:38px;background:white;border:1px solid var(--line);border-radius:24px;box-shadow:0 30px 80px #4e44751c}.login-card h1{margin:18px 0 8px}.login-card p{color:var(--muted);line-height:1.5}.stack{display:grid;gap:16px;margin-top:24px}.stack .btn{width:100%}@media(max-width:900px){.app-shell{grid-template-columns:72px 1fr}.sidebar{padding:18px 10px}.sidebar .brand b,.sidebar nav span,.workspace-box{display:none}.sidebar nav a{justify-content:center;font-size:18px}.brand{padding:8px 8px 30px}.metric-grid,.mini-grid{grid-template-columns:repeat(2,1fr)}.student-grid{grid-template-columns:repeat(2,1fr)}.profile-head{grid-template-columns:100px 1fr}.profile-avatar{width:100px;height:115px}.progress-ring{display:none}.form-grid{grid-template-columns:repeat(2,1fr)}}@media(max-width:620px){.app-shell{display:block}.sidebar{position:fixed;z-index:10;top:auto;bottom:0;left:0;right:0;width:auto;height:66px;display:block;padding:7px;border-right:0;border-top:1px solid var(--line)}.sidebar .brand,.workspace-box{display:none}.sidebar nav{display:flex;justify-content:space-around}.sidebar nav a{padding:10px}.sidebar nav a:nth-child(n+6){display:none}.topbar{height:58px;padding:0 14px}.search,.user-chip{display:none}.page{padding:16px 14px 84px}.page-head{align-items:flex-start;gap:12px}.page-head h1{font-size:23px}.metric-grid,.mini-grid,.student-grid,.content-grid{grid-template-columns:1fr 1fr}.metric{padding:15px}.metric strong{font-size:22px}.student-card{grid-column:1/-1}.profile-head{grid-template-columns:78px 1fr;padding:16px;gap:15px}.profile-avatar{width:78px;height:94px;font-size:24px}.profile-title h1{font-size:21px}.profile-title .pill{display:none}.profile-facts{grid-template-columns:1fr}.profile-facts span:nth-child(n+4){display:none}.mini-grid article{padding:14px}.tabs{gap:22px}.content-grid{grid-template-columns:1fr}.form-grid{grid-template-columns:1fr}.wide{grid-column:auto}.form-head{align-items:flex-start;gap:10px}.piece{grid-template-columns:1fr 90px 35px}}
/* Interactive global search and student photos. */
.search{display:flex;align-items:center;gap:7px;padding:7px 14px}.search input{border:0;outline:0;background:transparent;width:190px;color:var(--ink)}
.avatar img,.profile-avatar img{width:100%;height:100%;object-fit:cover;border-radius:inherit;display:block}
.search-results{display:grid;gap:10px}.search-result{display:flex;align-items:center;justify-content:space-between;padding:15px;border:1px solid var(--line);border-radius:13px;background:#fff}.search-result small{color:var(--muted)}
.search-page-input{flex:1;border:1px solid var(--line);border-radius:12px;padding:12px}.photo-preview{width:180px;height:200px;margin:0 0 20px;border-radius:18px;overflow:hidden;background:var(--violet-soft)}.photo-preview img{width:100%;height:100%;object-fit:cover}
.editable-avatar{position:relative;overflow:hidden}.avatar-edit{position:absolute;inset:0;border:0;background:rgba(17,19,38,.66);color:#fff;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;cursor:pointer;opacity:0;transition:opacity .18s}.avatar-edit span{font-size:25px}.avatar-edit small{font-size:11px;font-weight:700}.editable-avatar:hover .avatar-edit,.avatar-edit:focus-visible{opacity:1}
.avatar-dialog{width:min(520px,calc(100% - 28px));border:0;border-radius:22px;padding:0;box-shadow:0 30px 90px rgba(17,19,38,.28)}.avatar-dialog::backdrop{background:rgba(17,19,38,.55);backdrop-filter:blur(3px)}.avatar-dialog form{padding:24px}.modal-head{display:flex;justify-content:space-between;gap:20px;align-items:flex-start}.modal-head h2{margin:0 0 5px}.modal-head p{margin:0;color:var(--muted)}.modal-close{border:0;background:#f1f1f6;border-radius:50%;width:34px;height:34px;font-size:24px;cursor:pointer}.file-picker{display:flex;margin:20px 0}.file-picker input{position:absolute;opacity:0;pointer-events:none}.file-picker span{display:inline-flex;border:1px solid var(--line);border-radius:12px;padding:11px 16px;font-weight:700;cursor:pointer}.crop-stage{display:grid;gap:14px}.crop-stage canvas{width:min(100%,380px);aspect-ratio:1;margin:auto;border-radius:18px;cursor:grab;touch-action:none;background:#ececf3}.crop-stage canvas:active{cursor:grabbing}.zoom-control{display:grid;grid-template-columns:auto 1fr;gap:12px;align-items:center;font-size:13px;font-weight:700}.modal-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:22px}@media(hover:none){.avatar-edit{opacity:1;background:linear-gradient(transparent 55%,rgba(17,19,38,.72))}.avatar-edit span{margin-top:auto;margin-bottom:12px}.avatar-edit small{display:none}}
.ui-icon{width:20px;height:20px;display:inline-block;vertical-align:middle;flex:0 0 auto;color:currentColor}.sidebar nav .ui-icon{width:19px;height:19px;stroke-width:1.7}.profile-facts .ui-icon{width:17px;height:17px;color:#73798f;margin-right:4px}.search .ui-icon{width:16px;height:16px}.avatar-edit .ui-icon{width:28px;height:28px}.tabs a{white-space:nowrap;color:var(--muted);font-size:13px;padding:4px 0 11px;border-bottom:2px solid transparent}.tabs a:hover{color:var(--violet)}.tabs a.active{color:var(--violet);font-weight:700;border-bottom-color:var(--violet)}
.tabs button{appearance:none;border:0;background:transparent;white-space:nowrap;color:var(--muted);font-size:13px;padding:4px 0 11px;border-bottom:2px solid transparent;cursor:pointer}.tabs button:hover{color:var(--violet)}.tabs button.active{color:var(--violet);font-weight:700;border-bottom-color:var(--violet)}#student-tab-content{min-height:260px}.tab-loading{min-height:250px;display:grid;place-content:center;text-align:center;color:var(--muted)}.tab-loading span{width:34px;height:34px;border:3px solid #e7e3fa;border-top-color:var(--violet);border-radius:50%;margin:auto;animation:tab-spin .7s linear infinite}@keyframes tab-spin{to{transform:rotate(360deg)}}
.crop-stage[hidden]{display:none!important}.upload-zone{margin:22px 0 8px;min-height:138px;border:1.5px dashed #cbc8dd;border-radius:18px;background:linear-gradient(145deg,#faf9ff,#f5f3ff);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;text-align:center;cursor:pointer;transition:.18s}.upload-zone:hover,.upload-zone.dragging{border-color:var(--violet);background:#f2eeff;transform:translateY(-1px)}.upload-zone input{position:absolute;width:1px;height:1px;opacity:0}.upload-zone .upload-icon{width:46px;height:46px;border-radius:14px;display:grid;place-items:center;background:#fff;color:var(--violet);box-shadow:0 8px 22px #6d4aff20}.upload-zone .upload-icon .ui-icon{width:23px;height:23px}.upload-zone strong{font-size:15px}.upload-zone small{color:var(--muted)}.avatar-status{min-height:18px;margin:7px 0 14px;text-align:center;color:var(--green);font-size:12px}.avatar-status.error-text{color:var(--red)}.crop-frame{position:relative;width:min(100%,380px);aspect-ratio:1;margin:auto;border-radius:22px;overflow:hidden;background:#ececf3;box-shadow:inset 0 0 0 1px #ffffff80}.crop-frame canvas{width:100%;height:100%;margin:0;border-radius:0}.crop-guide{position:absolute;inset:9%;border:1px solid #ffffffcc;border-radius:50%;box-shadow:0 0 0 999px rgba(17,19,38,.18);pointer-events:none}.modal-actions .btn.primary:disabled{opacity:.45;cursor:not-allowed}
.avatar{width:48px;height:64px;border-radius:14px}.profile-avatar{width:150px;height:200px;border-radius:22px}.crop-frame{width:min(100%,360px);aspect-ratio:3/4}.crop-guide{display:none}.action-dialog{width:min(820px,calc(100% - 28px));max-height:calc(100vh - 40px);overflow:auto;border:0;border-radius:22px;padding:0;box-shadow:0 30px 90px rgba(17,19,38,.3)}.action-dialog::backdrop{background:rgba(17,19,38,.55);backdrop-filter:blur(3px)}.action-dialog-body{position:relative;padding:24px}.action-dialog .action-close{position:sticky;float:right;top:0;z-index:3}.action-dialog .form-card{border:0;box-shadow:none;padding:4px;background:#fff}.action-dialog .form-head{padding-right:44px}.action-dialog .page-head{padding-right:44px}@media(max-width:900px){.profile-avatar{width:105px;height:140px}}@media(max-width:620px){.profile-avatar{width:78px;height:104px}.avatar{width:42px;height:56px}.action-dialog-body{padding:16px}}
.profile-more{margin:16px 0 8px auto;width:max-content;position:relative}.profile-more summary{list-style:none;width:42px;height:42px;border:1px solid var(--line);border-radius:12px;background:#fff;display:grid;place-items:center;cursor:pointer}.profile-more summary::-webkit-details-marker{display:none}.profile-more summary:hover{background:var(--violet-soft);color:var(--violet)}.profile-more-menu{position:absolute;right:0;top:48px;z-index:6;width:205px;padding:7px;background:#fff;border:1px solid var(--line);border-radius:14px;box-shadow:0 16px 50px rgba(17,19,38,.14);display:grid}.profile-more-menu a{display:flex;align-items:center;gap:10px;padding:11px;border-radius:9px;font-size:13px;font-weight:650}.profile-more-menu a:hover{background:var(--violet-soft);color:var(--violet)}.profile-more-menu .ui-icon{width:18px;height:18px}.action-modal-footer{display:flex;justify-content:flex-end;gap:10px;margin-top:24px;padding-top:18px;border-top:1px solid var(--line)}.action-dialog .form-head>button{display:none}.action-dialog .action-modal-footer>button{display:inline-flex}.action-dialog .form-head{margin-bottom:22px}.action-dialog .form-head h1{font-size:25px}.action-dialog .modal-close.action-close{margin:0}.action-dialog form>.action-modal-footer{position:sticky;bottom:-24px;background:#fff;padding-bottom:4px}
.profile-title{position:relative;padding-right:54px}.profile-title>.profile-more{position:absolute;right:0;top:-7px;margin:0}.profile-title>p{display:flex;align-items:center;gap:7px}.profile-title>p .ui-icon,.profile-facts .ui-icon{width:17px;height:17px;flex:0 0 auto}.profile-facts span{display:flex;align-items:center;gap:7px}.fact-separator{color:#b5b8c6}.teacher-column-head .avatar{width:42px;height:52px;min-width:42px;border-radius:11px;overflow:hidden}.teacher-column-head .avatar img,.teacher-profile-avatar img{width:100%;height:100%;object-fit:cover}.teacher-column-head{justify-content:flex-start}.schedule-date-control{display:flex;align-items:center;gap:9px;color:var(--muted);margin-top:4px}.schedule-date-control .ui-icon{width:18px;height:18px;color:var(--violet)}.schedule-date-control input{border:1px solid var(--line);background:#fff;border-radius:10px;padding:7px 9px;color:var(--ink)}.teacher-stat{display:grid;place-items:center;text-align:center;width:150px;height:150px;border-radius:50%;background:var(--violet-soft);color:var(--violet)}.teacher-stat strong{font-size:40px}.teacher-stat span{font-size:12px}.tabs button{border:0;background:transparent;color:var(--muted);padding:0 0 10px;white-space:nowrap;cursor:pointer;font-size:13px}.tabs button.active{color:var(--violet);font-weight:700;border-bottom:2px solid var(--violet)}
.profile-title{padding-right:0}.profile-name-row{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.profile-name-row h1{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:0}.profile-name-row h1 .pill{font-size:11px!important;font-weight:600;padding:5px 10px}.profile-name-row .profile-more{margin:0;display:inline-block;font-size:14px}.profile-name-row .profile-more summary{width:34px;height:34px;border:0;background:transparent;border-radius:10px}.profile-name-row .profile-more summary:hover,.profile-name-row .profile-more[open] summary{background:var(--violet-soft);color:var(--violet)}.profile-more-menu button{display:flex;align-items:center;gap:10px;padding:11px;border:0;background:transparent;border-radius:9px;font-size:13px;font-weight:650;text-align:left;cursor:pointer;color:var(--ink)}.profile-more-menu button:hover{background:var(--violet-soft);color:var(--violet)}.profile-title>p,.profile-facts,.profile-facts span{font-size:14px;line-height:1.45}.profile-title>p{margin:8px 0 15px}.profile-title>p .ui-icon,.profile-facts .ui-icon{width:18px;height:18px;stroke-width:1.7}.profile-facts{row-gap:11px}
.profile-name-row h1 .pill{font-size:13px!important;padding:6px 11px}.profile-title>p{width:50%;padding-right:18px}.profile-facts{grid-template-columns:repeat(2,minmax(190px,1fr));grid-template-rows:repeat(3,minmax(22px,auto));column-gap:42px;row-gap:10px}.profile-facts span:nth-child(1){grid-column:1;grid-row:2}.profile-facts span:nth-child(2){grid-column:1;grid-row:1}.profile-facts span:nth-child(3){grid-column:2;grid-row:1}.profile-facts span:nth-child(4){grid-column:2;grid-row:2}.profile-facts span:nth-child(5){grid-column:2;grid-row:3}.teacher-profile .profile-title>p{width:auto}.teacher-profile .profile-facts span:nth-child(1){grid-column:1;grid-row:3}.teacher-profile .profile-facts span:nth-child(2){grid-column:2;grid-row:1}.teacher-profile .profile-facts span:nth-child(3){grid-column:1;grid-row:2}.teacher-profile .profile-facts span:nth-child(4){grid-column:1;grid-row:1}.guardian-profile .profile-facts span:nth-child(1){grid-column:1;grid-row:1}.guardian-profile .profile-facts span:nth-child(2){grid-column:1;grid-row:2}.guardian-profile .profile-facts span:nth-child(3){grid-column:2;grid-row:1}.invite-copy-row{display:flex;gap:10px;margin-top:14px}.invite-copy-row input{flex:1;min-width:0;border:1px solid var(--line);border-radius:12px;padding:12px;background:#f8f8fc;color:#444a61}.invite-result>p{color:var(--muted);font-size:13px}
@media(max-width:700px){.profile-title>p{width:100%}.profile-facts{display:flex;flex-direction:column;gap:9px}.profile-facts span{order:initial!important}}
.profile-title{display:grid;grid-template-columns:minmax(220px,1fr) minmax(220px,1fr);grid-template-rows:auto repeat(3,minmax(24px,auto));column-gap:48px;row-gap:9px}.profile-name-row{grid-column:1/-1;grid-row:1}.profile-title>p{grid-column:1;grid-row:2;width:auto;margin:0;padding:0;color:#596074}.profile-facts{display:contents}.profile-facts span{color:#596074!important;font-weight:400}.profile-title .profile-facts span:nth-child(1){grid-column:1;grid-row:4}.profile-title .profile-facts span:nth-child(2){grid-column:1;grid-row:3}.profile-title .profile-facts span:nth-child(3){grid-column:2;grid-row:2}.profile-title .profile-facts span:nth-child(4){grid-column:2;grid-row:3}.profile-title .profile-facts span:nth-child(5){grid-column:2;grid-row:4}.teacher-profile .profile-title .profile-facts span:nth-child(1){grid-column:1;grid-row:4}.teacher-profile .profile-title .profile-facts span:nth-child(2){grid-column:2;grid-row:2}.teacher-profile .profile-title .profile-facts span:nth-child(3){grid-column:1;grid-row:3}.teacher-profile .profile-title .profile-facts span:nth-child(4){grid-column:1;grid-row:2}.guardian-profile .profile-title .profile-facts span:nth-child(1){grid-column:1;grid-row:2}.guardian-profile .profile-title .profile-facts span:nth-child(2){grid-column:1;grid-row:3}.guardian-profile .profile-title .profile-facts span:nth-child(3){grid-column:2;grid-row:2}.invite-flow .form-head{margin-bottom:18px}.invite-steps{margin:0 0 22px;padding:0;list-style:none;counter-reset:invite;display:grid;gap:10px}.invite-steps li{counter-increment:invite;display:grid;grid-template-columns:30px 1fr;align-items:center;color:#596074;font-size:13px}.invite-steps li:before{content:counter(invite);width:24px;height:24px;border-radius:50%;display:grid;place-items:center;background:var(--violet-soft);color:var(--violet);font-weight:800}.invite-steps b{color:var(--ink)}.invite-flow .stack label small{font-weight:400;color:var(--muted)}.invite-success{display:flex;gap:12px;align-items:flex-start;padding:14px;border-radius:14px;background:#eefaf4;color:#18784b}.invite-success-icon{width:28px;height:28px;border-radius:50%;display:grid;place-items:center;background:#20a765;color:white;font-weight:800}.invite-success p{margin:4px 0 0;color:#4f6d60;font-size:13px}.invite-note{color:var(--muted);font-size:13px}.relation-picker,.form-grid fieldset.wide{border:1px solid var(--line);border-radius:14px;padding:16px}.relation-picker>p{margin:0 0 12px;color:var(--muted);font-size:13px}.relation-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.relation-grid label{display:flex;align-items:center;gap:10px;border:1px solid var(--line);border-radius:12px;padding:12px;cursor:pointer}.relation-grid label:has(input:checked){border-color:#8a72ff;background:var(--violet-soft)}.relation-grid input{width:auto}.relation-grid span{display:grid}.relation-grid small{color:var(--muted);font-weight:400}.relation-picker-head{display:grid;grid-template-columns:minmax(260px,1fr) auto;gap:10px;align-items:start}.relation-combobox{position:relative}.relation-combobox>input{width:100%;border:1px solid #dfe1eb;border-radius:12px;padding:12px 14px;background:#fff}.relation-options{position:absolute;left:0;right:0;top:calc(100% + 6px);z-index:20;max-height:360px;overflow:auto;background:#fff;border:1px solid var(--line);border-radius:14px;padding:7px;box-shadow:0 18px 55px rgba(17,19,38,.16)}.relation-options[hidden]{display:none}.relation-options label{display:flex;align-items:center;gap:10px;padding:9px;border-radius:10px;cursor:pointer}.relation-options label:hover{background:var(--violet-soft)}.relation-options label[hidden]{display:none}.relation-options input{position:absolute;opacity:0;pointer-events:none}.relation-options label:has(input:checked){color:var(--violet);background:#f7f5ff}.relation-options label:has(input:checked):after{content:'✓';margin-left:auto;font-weight:900}.relation-avatar{position:relative;width:38px;height:46px;min-width:38px;border-radius:10px;overflow:hidden;display:grid;place-items:center;background:linear-gradient(145deg,#d9d0ff,#f6f2ff);color:var(--violet);font-size:11px;font-weight:800}.relation-avatar img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}.relation-selected{display:flex;flex-wrap:wrap;gap:9px;margin-top:14px}.relation-selected-card{display:flex;align-items:center;gap:9px;min-width:210px;padding:8px 9px;border:1px solid var(--line);border-radius:12px;background:#fff}.relation-selected-card strong{font-size:13px}.relation-selected-card button{margin-left:auto;width:28px;height:28px;border:0;border-radius:8px;background:#f1f1f6;color:#676b7d;font-size:20px;cursor:pointer}.relation-selected-card button:hover{background:#fff0f1;color:var(--red)}.relation-empty{margin:4px 0;color:var(--muted);font-size:13px}@media(max-width:700px){.profile-title{display:flex;flex-direction:column;gap:9px}.profile-title>p,.profile-facts span{display:flex!important}.relation-grid{grid-template-columns:1fr}.invite-copy-row{flex-direction:column}.relation-picker-head{grid-template-columns:1fr}.relation-picker-head>.btn{width:100%;text-align:center}.relation-selected-card{width:100%}}
