:root{color-scheme:light}
html[data-theme="dark"]{color-scheme:dark;--ink:#e8eef6;--muted:#9fb0c4;--bg:#0d1622;--card:#141f2d;--line:#273649;--green:#4ac58d;--green-soft:#18382d;--yellow:#f1bd47;--yellow-soft:#3d3218;--red:#ff6b6b;--red-soft:#3e2025;--shadow:0 14px 36px rgba(0,0,0,.28)}
html[data-theme="dark"] body{background:var(--bg);color:var(--ink)}
html[data-theme="dark"] .main-area{background:var(--bg)}
html[data-theme="dark"] .topbar{background:rgba(15,25,38,.96);border-color:var(--line)}
html[data-theme="dark"] .topbar h2,html[data-theme="dark"] .card-header h3,html[data-theme="dark"] .student-meta strong,html[data-theme="dark"] .summary-box strong,html[data-theme="dark"] .student-link,html[data-theme="dark"] .link-btn,html[data-theme="dark"] .field label,html[data-theme="dark"] .nature-item strong,html[data-theme="dark"] .managed-class-row strong,html[data-theme="dark"] .tracking-person strong,html[data-theme="dark"] .spotlight-name,html[data-theme="dark"] .provider-list strong,html[data-theme="dark"] .account-profile strong{color:#eaf2fb}
html[data-theme="dark"] .card,html[data-theme="dark"] .stat-card,html[data-theme="dark"] .student-card,html[data-theme="dark"] .summary-box,html[data-theme="dark"] .guardian-contact-card,html[data-theme="dark"] .student-message-card,html[data-theme="dark"] .selected-student-summary,html[data-theme="dark"] .managed-class-row,html[data-theme="dark"] .import-summary-grid>div,html[data-theme="dark"] .nature-item,html[data-theme="dark"] .form-section,html[data-theme="dark"] .tracking-person,html[data-theme="dark"] .class-detail-student,html[data-theme="dark"] .points-student-row{background:var(--card);border-color:var(--line)}
html[data-theme="dark"] .data-table th{background:#192636;color:#aebed0}
html[data-theme="dark"] .data-table td{border-color:var(--line)}
html[data-theme="dark"] .data-table tr:hover td{background:#172434}
html[data-theme="dark"] .field input,html[data-theme="dark"] .field select,html[data-theme="dark"] .field textarea,html[data-theme="dark"] .login-form input,html[data-theme="dark"] .team-chat-compose textarea,html[data-theme="dark"] .lia-compose textarea,html[data-theme="dark"] .student-message-card .editable-preview,html[data-theme="dark"] .multi-student-picker{background:#101b29;color:var(--ink);border-color:var(--line)}
html[data-theme="dark"] .field input::placeholder,html[data-theme="dark"] .field textarea::placeholder,html[data-theme="dark"] textarea::placeholder{color:#74879c}
html[data-theme="dark"] .btn.secondary{background:#1d3044;color:#dceaff}
html[data-theme="dark"] .btn.ghost,html[data-theme="dark"] .icon-btn,html[data-theme="dark"] .top-chat-btn,html[data-theme="dark"] .ai-action-btn{background:#101b29;color:#dceaff;border-color:var(--line)}
html[data-theme="dark"] .callout{background:#172637;border-color:#2b4056;color:#dbe6f2}
html[data-theme="dark"] .callout.warning{background:#382f19;border-color:#655126;color:#f1dfaf}
html[data-theme="dark"] .danger-callout{background:#3b2025!important;border-color:#6d3038!important;color:#ffd4d4!important}
html[data-theme="dark"] .login-card{background:#101b29;color:var(--ink)}
html[data-theme="dark"] .login-panel{background:#101b29}
html[data-theme="dark"] .auth-heading h2{color:#eef5fc}
html[data-theme="dark"] .student-picker-details{background:#101b29;border-color:var(--line)}
html[data-theme="dark"] .student-picker-details>summary,html[data-theme="dark"] .register-student-filters{background:#172434;color:#eaf2fb;border-color:var(--line)}
html[data-theme="dark"] .multi-student-option{border-color:#223145}
html[data-theme="dark"] .multi-student-option:hover{background:#172434}
html[data-theme="dark"] .compact-selection-chips>span{background:#193049;color:#dceaff;border-color:#2a435d}
html[data-theme="dark"] .send-message-choice{background:#16283b;border-color:#2c4560;color:#dceaff}
html[data-theme="dark"] .ai-settings-card{background:linear-gradient(180deg,#141f2d,#111c2a);border-color:#2a4056}
html[data-theme="dark"] code{background:#223145;color:#dceaff}
.brand-block img{width:64px;height:64px}.brand-block{gap:10px;padding-bottom:18px}
.nav-list button{position:relative}.nav-list button .nav-label{width:auto;text-align:left;font-size:inherit}.nav-alert-badge{margin-left:auto;min-width:21px;height:21px;padding:0 6px;border-radius:999px;background:#e54848;color:#fff;display:grid;place-items:center;font-size:.68rem;font-weight:900;box-shadow:0 0 0 2px rgba(255,255,255,.08)}
.top-chat-btn{height:42px;border-radius:12px;border:1px solid var(--line);background:#fff;color:var(--navy);font-weight:800;padding:0 12px;display:flex;align-items:center;gap:7px;position:relative}.top-chat-btn b{min-width:19px;height:19px;padding:0 5px;border-radius:999px;background:var(--red);color:#fff;display:grid;place-items:center;font-size:.66rem}.top-chat-label{font-size:.82rem}
.team-chat-panel{position:fixed;right:18px;top:94px;bottom:18px;width:min(390px,calc(100vw - 36px));z-index:80;background:var(--card);border:1px solid var(--line);border-radius:20px;box-shadow:0 22px 55px rgba(4,20,38,.25);display:grid;grid-template-rows:auto auto 1fr auto auto;overflow:hidden}.team-chat-head{display:flex;align-items:center;justify-content:space-between;padding:15px 16px;border-bottom:1px solid var(--line)}.team-chat-head strong,.team-chat-head span{display:block}.team-chat-head strong{color:var(--navy);font-family:Georgia,serif}.team-chat-head span{font-size:.72rem;color:var(--muted);margin-top:2px}html[data-theme="dark"] .team-chat-head strong{color:#eef5fc}.team-chat-messages{overflow:auto;padding:14px;display:flex;flex-direction:column;gap:10px;background:linear-gradient(180deg,rgba(248,250,252,.55),rgba(255,255,255,.15))}html[data-theme="dark"] .team-chat-messages{background:#0f1926}.team-msg{max-width:88%;border:1px solid var(--line);border-radius:15px;padding:10px 11px;background:var(--card);align-self:flex-start}.team-msg.mine{align-self:flex-end;background:#edf5ff;border-color:#cfe0f0}html[data-theme="dark"] .team-msg.mine{background:#193149;border-color:#2a4b69}.team-msg-head{display:flex;gap:6px;align-items:center;flex-wrap:wrap;margin-bottom:5px}.team-msg-head strong{font-size:.78rem;color:var(--navy)}html[data-theme="dark"] .team-msg-head strong{color:#e5eff9}.team-msg-head span{font-size:.66rem;color:var(--muted)}.team-msg p{margin:0;white-space:pre-wrap;font-size:.84rem;line-height:1.45}.team-msg-actions{display:flex;gap:8px;margin-top:6px}.team-msg-actions button{border:0;background:transparent;color:var(--muted);font-size:.68rem;font-weight:800;padding:0}.team-msg.deleted{opacity:.68;font-style:italic}.team-chat-compose{border-top:1px solid var(--line);padding:11px;display:grid;gap:8px;background:var(--card)}.team-chat-compose textarea{width:100%;resize:none;border:1px solid var(--line);border-radius:12px;padding:10px 11px}.team-chat-compose>div{display:flex;justify-content:space-between;gap:8px}.team-chat-reply,.team-chat-attachment-draft{padding:8px 12px;border-bottom:1px solid var(--line);background:#f7f9fc;font-size:.75rem;color:var(--muted)}html[data-theme="dark"] .team-chat-reply,html[data-theme="dark"] .team-chat-attachment-draft{background:#172434}.chat-attachment{margin-top:8px;border:1px solid var(--line);border-radius:12px;padding:9px;background:rgba(255,255,255,.45)}html[data-theme="dark"] .chat-attachment{background:#101b29}.chat-attachment strong,.chat-attachment span{display:block}.chat-attachment strong{font-size:.78rem}.chat-attachment span{font-size:.68rem;color:var(--muted);margin-top:2px}.chat-attachment button{margin-top:7px}
.lia-root{position:fixed;right:24px;bottom:24px;z-index:95;display:flex;flex-direction:column;align-items:flex-end;gap:12px}.lia-orb{width:64px;height:64px;padding:0;border:0;border-radius:50%;overflow:hidden;background:transparent;box-shadow:0 8px 28px rgba(27,106,128,.35);animation:liaBreathe 3.8s ease-in-out infinite;transition:transform .18s ease,box-shadow .18s ease}.lia-orb:hover{transform:scale(1.045);box-shadow:0 10px 34px rgba(27,124,148,.42)}.lia-orb img{width:100%;height:100%;object-fit:cover;display:block;border-radius:50%}.lia-root.thinking .lia-orb{animation-duration:1.6s;box-shadow:0 8px 34px rgba(31,155,169,.52)}@keyframes liaBreathe{0%,100%{transform:scale(1)}50%{transform:scale(1.028)}}
.lia-panel{width:min(365px,calc(100vw - 32px));height:min(510px,calc(100vh - 125px));background:var(--card);border:1px solid var(--line);border-radius:22px;box-shadow:0 24px 60px rgba(5,25,47,.26);overflow:hidden;display:grid;grid-template-rows:auto 1fr auto auto}.lia-head{display:flex;align-items:center;justify-content:space-between;padding:14px 15px;border-bottom:1px solid var(--line);background:linear-gradient(135deg,#f8fbff,#eef6fb)}html[data-theme="dark"] .lia-head{background:linear-gradient(135deg,#172434,#132235)}.lia-head strong,.lia-head span{display:block}.lia-head strong{font-family:Georgia,serif;color:var(--navy);font-size:1.05rem}html[data-theme="dark"] .lia-head strong{color:#eef6ff}.lia-head span{font-size:.69rem;color:var(--muted);margin-top:2px}.lia-close{width:34px;height:34px;border-radius:10px;border:1px solid var(--line);background:var(--card);color:var(--ink);font-size:1.1rem}.lia-messages{overflow:auto;padding:13px;display:flex;flex-direction:column;gap:9px}.lia-msg{max-width:90%;padding:9px 11px;border-radius:14px;font-size:.82rem;line-height:1.46;white-space:pre-wrap}.lia-msg.user{align-self:flex-end;background:#0e4c83;color:#fff;border-bottom-right-radius:5px}.lia-msg.assistant{align-self:flex-start;background:#f1f5f9;color:#24364b;border-bottom-left-radius:5px}html[data-theme="dark"] .lia-msg.assistant{background:#1a293a;color:#e5edf7}.lia-msg-actions{display:flex;gap:7px;flex-wrap:wrap;margin-top:7px}.lia-msg-actions button{border:1px solid var(--line);background:var(--card);color:var(--navy);border-radius:9px;padding:6px 8px;font-size:.7rem;font-weight:800}html[data-theme="dark"] .lia-msg-actions button{color:#dceaff}.lia-thinking{padding:0 13px 8px;color:var(--muted);font-size:.74rem;display:flex;align-items:center;gap:7px}.lia-thinking span{width:8px;height:8px;border-radius:50%;background:#36a7a5;box-shadow:0 0 0 5px rgba(54,167,165,.12)}.lia-compose{border-top:1px solid var(--line);padding:10px;display:grid;grid-template-columns:1fr auto;gap:8px;background:var(--card)}.lia-compose textarea{resize:none;border:1px solid var(--line);border-radius:12px;padding:9px 10px;min-height:42px;max-height:100px}.lia-compose .btn{align-self:end}
.register-shell-v068{display:grid;grid-template-columns:minmax(0,1fr) minmax(320px,.78fr);gap:18px}.register-shell-v068.collapsed{grid-template-columns:minmax(0,1fr) 48px}.register-side-v068{position:relative;min-width:0}.register-side-v068.collapsed .register-side-content{display:none}.register-side-toggle{position:absolute;left:-14px;top:18px;width:30px;height:30px;border-radius:50%;border:1px solid var(--line);background:var(--card);color:var(--navy);font-weight:900;z-index:2;box-shadow:0 4px 12px rgba(0,0,0,.08)}.register-side-v068.collapsed .register-side-toggle{left:8px;transform:rotate(180deg)}html[data-theme="dark"] .register-side-toggle{color:#dceaff}.sender-choice{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:10px}.sender-choice label{display:flex!important;align-items:center;gap:8px;padding:10px 11px;border:1px solid var(--line);border-radius:12px;background:#fbfcfe;cursor:pointer;font-size:.78rem}html[data-theme="dark"] .sender-choice label{background:#101b29}.sender-choice input{width:auto!important;accent-color:var(--navy-3)}
.tracking-tabs{display:flex;gap:8px;flex-wrap:wrap;margin:16px 0}.tracking-tab{border:1px solid var(--line);background:var(--card);color:var(--ink);border-radius:999px;padding:9px 13px;font-weight:800}.tracking-tab.active{background:var(--navy);color:#fff;border-color:var(--navy)}.phone-issue-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:center;border:1px solid var(--line);border-radius:14px;padding:12px;background:var(--card);margin-bottom:9px}.phone-issue-row strong,.phone-issue-row span{display:block}.phone-issue-row span{color:var(--muted);font-size:.76rem;margin-top:3px}
.points-toolbar{display:grid;grid-template-columns:1fr auto;gap:12px;align-items:center}.points-student-list{display:grid;gap:9px}.points-student-row{display:grid;grid-template-columns:minmax(0,1fr) auto auto auto;gap:12px;align-items:center;padding:12px;border:1px solid var(--line);border-radius:14px}.points-student-row strong,.points-student-row span{display:block}.points-student-row span{font-size:.74rem;color:var(--muted);margin-top:2px}.point-positive{color:var(--green);font-weight:900}.point-negative{color:var(--red);font-weight:900}.point-class-card{border:1px solid var(--line);border-radius:14px;padding:13px;background:var(--card);display:grid;gap:9px}.point-class-card-head{display:flex;align-items:center;justify-content:space-between;gap:10px}.point-natures-field{min-width:0}.point-nature-search{margin-bottom:8px}.nature-checkbox-grid{display:grid;grid-template-columns:1fr;gap:6px;max-height:260px;overflow:auto;padding:2px 6px 2px 2px;scrollbar-width:thin}.nature-checkbox-grid label{display:flex;align-items:center;gap:10px;border:1px solid var(--line);border-radius:10px;padding:9px 11px;font-size:.78rem;cursor:pointer;min-width:0}.nature-checkbox-grid label:hover{background:rgba(47,128,237,.05)}.nature-checkbox-grid input{margin:0;flex:0 0 auto}.nature-checkbox-grid span{min-width:0;overflow-wrap:anywhere}.launch-history{display:grid;gap:7px}.launch-row{border:1px solid var(--line);border-radius:12px;padding:10px;background:var(--card);font-size:.78rem}
.notification-card{border:1px solid var(--line);border-radius:14px;padding:12px;background:var(--card)}.notification-card+.notification-card{margin-top:8px}.notification-card strong,.notification-card span{display:block}.notification-card span{font-size:.74rem;color:var(--muted);margin-top:3px}
.report-row-clickable{cursor:pointer}.report-row-clickable:hover td{background:#f3f8fd!important}html[data-theme="dark"] .report-row-clickable:hover td{background:#1a2a3b!important}.class-detail-students{display:grid;gap:8px}.class-detail-student{display:grid;grid-template-columns:minmax(0,1fr) repeat(4,auto);gap:10px;align-items:center;border:1px solid var(--line);border-radius:12px;padding:10px}.class-detail-student span{font-size:.72rem;color:var(--muted)}.productivity-grid{display:grid;gap:8px}.productivity-row{display:grid;grid-template-columns:minmax(0,1fr) repeat(4,auto);gap:10px;align-items:center;padding:10px;border:1px solid var(--line);border-radius:12px;background:var(--card);cursor:pointer}
.update-card{border:1px solid #bdd8ef;background:linear-gradient(135deg,#f7fbff,#eef6fc);border-radius:18px;padding:18px;margin:18px 0}html[data-theme="dark"] .update-card{background:linear-gradient(135deg,#142235,#182c40);border-color:#2b4c68}.update-card h3{margin:0;color:var(--navy);font-family:Georgia,serif}html[data-theme="dark"] .update-card h3{color:#edf6ff}.update-card p{margin:8px 0 0;color:var(--muted);line-height:1.55}
.lia-highlight{animation:liaHighlight 1.15s ease 2}@keyframes liaHighlight{0%,100%{box-shadow:0 0 0 0 rgba(47,128,237,0)}50%{box-shadow:0 0 0 5px rgba(47,128,237,.18)}}
@media(max-width:900px){.top-chat-label{display:none}.register-shell-v068,.register-shell-v068.collapsed{grid-template-columns:1fr}.register-side-v068.collapsed{display:block;min-height:40px}.register-side-toggle{left:auto;right:12px;top:-14px}.class-detail-student,.points-student-row,.productivity-row{grid-template-columns:1fr 1fr}.class-detail-student>:first-child,.points-student-row>:first-child,.productivity-row>:first-child{grid-column:1/-1}}
@media(max-width:700px){.team-chat-panel{top:76px;right:8px;bottom:72px;width:calc(100vw - 16px);border-radius:18px}.lia-root{right:14px;bottom:82px}.lia-panel{width:calc(100vw - 28px);height:min(500px,calc(100vh - 160px))}.lia-orb{width:58px;height:58px}.sender-choice,.nature-checkbox-grid{grid-template-columns:1fr}.top-actions{gap:6px}.top-chat-btn{width:42px;padding:0;justify-content:center}.top-chat-btn b{position:absolute;right:-4px;top:-5px}.service-chip{display:none}}
@media(prefers-reduced-motion:reduce){.lia-orb,.lia-root.thinking .lia-orb{animation:none}.lia-highlight{animation:none}}

html[data-theme="dark"] .dark-surface-fix{display:none}
html[data-theme="dark"]{--ink:#f3f7fb;--muted:#b7c4d2;--bg:#111a25;--card:#192635;--line:#34465a;--green:#62d7a0;--green-soft:#173c2e;--yellow:#f5c85d;--yellow-soft:#40351b;--red:#ff7d7d;--red-soft:#47252b;--shadow:0 14px 34px rgba(0,0,0,.24)}
html[data-theme="dark"] body,html[data-theme="dark"] .main-area{background:#111a25;color:#f3f7fb}
html[data-theme="dark"] .topbar{background:rgba(20,31,44,.97);border-color:#34465a;box-shadow:0 1px 0 rgba(255,255,255,.025)}
html[data-theme="dark"] .topbar .eyebrow{color:#aebed0}
html[data-theme="dark"] .topbar h2{color:#ffffff}
html[data-theme="dark"] .card,html[data-theme="dark"] .stat-card,html[data-theme="dark"] .student-card,html[data-theme="dark"] .form-section,html[data-theme="dark"] .tracking-column,html[data-theme="dark"] .tracking-person,html[data-theme="dark"] .notification-card,html[data-theme="dark"] .point-class-card,html[data-theme="dark"] .launch-row,html[data-theme="dark"] .class-detail-student,html[data-theme="dark"] .productivity-row{background:#192635;border-color:#34465a;box-shadow:0 8px 24px rgba(0,0,0,.10)}
html[data-theme="dark"] .card-header h3,html[data-theme="dark"] .student-head h2,html[data-theme="dark"] .form-section h3,html[data-theme="dark"] .nature-item strong,html[data-theme="dark"] .student-meta strong,html[data-theme="dark"] .multi-student-meta strong,html[data-theme="dark"] .selected-student-summary strong,html[data-theme="dark"] .guardian-contact-title strong,html[data-theme="dark"] .student-message-head strong,html[data-theme="dark"] .managed-class-row strong,html[data-theme="dark"] .import-problem-title strong,html[data-theme="dark"] .provider-list strong,html[data-theme="dark"] .account-profile strong,html[data-theme="dark"] .pending-account strong,html[data-theme="dark"] .institution-card h4,html[data-theme="dark"] .manual-copy h3,html[data-theme="dark"] .developer-credit strong,html[data-theme="dark"] .system-meta strong{color:#f7faff}
html[data-theme="dark"] .card-header p,html[data-theme="dark"] .student-meta span,html[data-theme="dark"] .multi-student-meta small,html[data-theme="dark"] .selected-student-summary span,html[data-theme="dark"] .guardian-contact-title>div>span,html[data-theme="dark"] .student-message-head span,html[data-theme="dark"] .managed-class-row span,html[data-theme="dark"] .notification-card span,html[data-theme="dark"] .points-student-row span,html[data-theme="dark"] .class-detail-student span,html[data-theme="dark"] .account-profile span,html[data-theme="dark"] .account-profile small{color:#b7c4d2}
html[data-theme="dark"] .stat-card strong{color:#ffffff;text-shadow:0 1px 0 rgba(0,0,0,.12)}
html[data-theme="dark"] .stat-card span{color:#c3cfdb}
html[data-theme="dark"] .stat-icon.blue{background:#193654;color:#78b9ff}
html[data-theme="dark"] .stat-icon.green{background:#173c2e;color:#62d7a0}
html[data-theme="dark"] .stat-icon.yellow{background:#40351b;color:#f5c85d}
html[data-theme="dark"] .stat-icon.red{background:#47252b;color:#ff7d7d}
html[data-theme="dark"] .student-spotlight-card{background:linear-gradient(180deg,#1b2a3a 0%,#172433 100%);border-color:#395069}
html[data-theme="dark"] .section-kicker{background:#24364a;border:1px solid #3b526a;color:#dcecff}
html[data-theme="dark"] .spotlight-link{background:#22384f;border-color:#3b5873;color:#edf6ff}
html[data-theme="dark"] .spotlight-link:hover{background:#29445f}
html[data-theme="dark"] .spotlight-identity{background:linear-gradient(135deg,#213247 0%,#1c2c3d 100%);border-color:#3a5067}
html[data-theme="dark"] .spotlight-avatar,html[data-theme="dark"] .avatar-sm,html[data-theme="dark"] .student-head .avatar-lg{background:linear-gradient(135deg,#2b4560,#20374d)!important;border-color:#48647f;color:#eaf4ff;box-shadow:none}
html[data-theme="dark"] .spotlight-name{color:#ffffff}
html[data-theme="dark"] .spotlight-subtitle{color:#c5d3e2}
html[data-theme="dark"] .info-chip{background:#152231;border-color:#3b4f65;color:#dbe6f2}
html[data-theme="dark"] .spotlight-summary .summary-box,html[data-theme="dark"] .summary-box{background:#152231;border-color:#31465d;box-shadow:none}
html[data-theme="dark"] .summary-box strong{color:#ffffff}
html[data-theme="dark"] .summary-box span{color:#b7c4d2}
html[data-theme="dark"] .bar-chart{border-color:#3b4f65}
html[data-theme="dark"] .bar-label,html[data-theme="dark"] .chart-legend{color:#b7c4d2}
html[data-theme="dark"] .pie:after{background:#192635}
html[data-theme="dark"] .pie-center{color:#f7faff}
html[data-theme="dark"] .pie-list div{color:#dfe7f0}
html[data-theme="dark"] .empty{color:#b7c4d2}
html[data-theme="dark"] .table-wrap{border-color:#34465a;background:#192635}
html[data-theme="dark"] .data-table{color:#eaf0f7}
html[data-theme="dark"] .data-table th{background:#213043;color:#c2cfdd}
html[data-theme="dark"] .data-table td{border-color:#34465a}
html[data-theme="dark"] .data-table tr:hover td,html[data-theme="dark"] .report-row-clickable:hover td{background:#223247!important}
html[data-theme="dark"] .student-link,html[data-theme="dark"] .link-btn{color:#93c7ff}
html[data-theme="dark"] .field label{color:#c6d2df}
html[data-theme="dark"] .field input,html[data-theme="dark"] .field select,html[data-theme="dark"] .field textarea,html[data-theme="dark"] .login-form input,html[data-theme="dark"] .team-chat-compose textarea,html[data-theme="dark"] .lia-compose textarea,html[data-theme="dark"] .student-message-card .editable-preview,html[data-theme="dark"] .multi-student-picker{background:#111d2a;color:#f3f7fb;border-color:#3a4d62}
html[data-theme="dark"] .field input:focus,html[data-theme="dark"] .field select:focus,html[data-theme="dark"] .field textarea:focus,html[data-theme="dark"] .login-form input:focus{border-color:#699bd0;box-shadow:0 0 0 3px rgba(105,155,208,.16)}
html[data-theme="dark"] input::placeholder,html[data-theme="dark"] textarea::placeholder{color:#8194a8}
html[data-theme="dark"] .btn.secondary{background:#26394e;color:#eff6ff}
html[data-theme="dark"] .btn.secondary:hover{background:#2d435a}
html[data-theme="dark"] .btn.ghost,html[data-theme="dark"] .icon-btn,html[data-theme="dark"] .top-chat-btn,html[data-theme="dark"] .ai-action-btn{background:#172433;color:#eaf3fd;border-color:#3a4d62}
html[data-theme="dark"] .btn.ghost:hover,html[data-theme="dark"] .icon-btn:hover,html[data-theme="dark"] .top-chat-btn:hover,html[data-theme="dark"] .ai-action-btn:hover{background:#213247}
html[data-theme="dark"] .badge.gray{background:#29394a;color:#d9e3ed}
html[data-theme="dark"] .badge.blue{background:#183754;color:#8fc6ff}
html[data-theme="dark"] .fo-preview,html[data-theme="dark"] .message-saved{background:#142130;border-color:#42566b;color:#d8e3ee}
html[data-theme="dark"] .callout{background:#1d3042;border-color:#3a5269;color:#e2ebf4}
html[data-theme="dark"] .warning,html[data-theme="dark"] .callout.warning{background:#40351b;border-color:#6b5729;color:#ffe5a0}
html[data-theme="dark"] .danger-callout{background:#47252b!important;border-color:#74404a!important;color:#ffd9dc!important}
html[data-theme="dark"] .modal-card{background:#192635;color:#f3f7fb;border:1px solid #34465a}
html[data-theme="dark"] .modal-close{background:#26384b;color:#f4f8fc}
html[data-theme="dark"] .mobile-nav{background:#162331;border-color:#34465a;box-shadow:0 -8px 24px rgba(0,0,0,.18)}
html[data-theme="dark"] .mobile-nav button{color:#aebed0}
html[data-theme="dark"] .mobile-nav button.active{color:#ffffff}
html[data-theme="dark"] .onboarding{background:linear-gradient(135deg,#192635,#1e2f42);border-color:#49627d}
html[data-theme="dark"] .app-footer{color:#aebdcb;border-color:#2f4053}
html[data-theme="dark"] .app-footer strong{color:#eaf2fb}
html[data-theme="dark"] .about-hero{box-shadow:0 12px 28px rgba(0,0,0,.16)}
html[data-theme="dark"] .feature-chips span{background:#213348;border-color:#3b536c;color:#e0edfa}
html[data-theme="dark"] .system-meta div,html[data-theme="dark"] .backend-diagram>div{background:#152231;border-color:#3a5067;color:#e9f2fb}
html[data-theme="dark"] .google-btn,html[data-theme="dark"] .demo-logins button{background:#192635;border-color:#3a4d62;color:#eaf2fb}
html[data-theme="dark"] .google-btn:hover,html[data-theme="dark"] .demo-logins button:hover{background:#223247}
html[data-theme="dark"] .google-g{background:#f7f9fc;border-color:#d9e2eb}
html[data-theme="dark"] .pending-account,html[data-theme="dark"] .account-profile,html[data-theme="dark"] .pending-users-card{background:#192635;border-color:#3a4d62}
html[data-theme="dark"] .pending-users-card{background:linear-gradient(180deg,#2c291d,#25251f);border-color:#65572d}
html[data-theme="dark"] .student-picker-details{background:#152231;border-color:#3a4d62}
html[data-theme="dark"] .student-picker-details>summary,html[data-theme="dark"] .register-student-filters{background:#1d2d3f;color:#edf5fd;border-color:#3a4d62}
html[data-theme="dark"] .multi-student-option{border-color:#2e4053}
html[data-theme="dark"] .multi-student-option:hover{background:#203145}
html[data-theme="dark"] .student-picker-actions>strong{color:#e8f1fa}
html[data-theme="dark"] .compact-selection-chips>span{background:#20364b;color:#e5f0fb;border-color:#3a526b}
html[data-theme="dark"] .selected-student-summary,html[data-theme="dark"] .guardian-contact-card,html[data-theme="dark"] .student-message-card,html[data-theme="dark"] .managed-class-row,html[data-theme="dark"] .import-summary-grid>div{background:#172433;border-color:#34465a}
html[data-theme="dark"] .send-message-choice{background:#1d3145;border-color:#3f5b76;color:#e8f3ff}
html[data-theme="dark"] .import-problem-panel{background:#2e2b20;border-color:#66582d}
html[data-theme="dark"] .import-problem-card{background:#1f2b37;border-color:#66582d}
html[data-theme="dark"] .import-problem-card.resolved{background:#183126;border-color:#376548}
html[data-theme="dark"] .import-problem-reason{color:#e8d6a7}
html[data-theme="dark"] .informative-actions label{background:#172433;border-color:#34465a}
html[data-theme="dark"] .informative-actions strong{color:#eef5fc}
html[data-theme="dark"] .ai-settings-card{background:linear-gradient(180deg,#192635,#172332);border-color:#3a5269}
html[data-theme="dark"] .communication-error.inline{background:#42252a;border-color:#704048;color:#ffd8dc}
html[data-theme="dark"] .sender-choice label{background:#152231;border-color:#34465a;color:#e7eef6}
html[data-theme="dark"] .tracking-tab{background:#192635;border-color:#3a4d62;color:#e7eef6}
html[data-theme="dark"] .tracking-tab.active{background:#245b91;border-color:#3a7dbb;color:#ffffff}
html[data-theme="dark"] .update-card{background:linear-gradient(135deg,#19283a,#1d3246);border-color:#3a5974}
html[data-theme="dark"] .lia-panel,html[data-theme="dark"] .team-chat-panel{background:#192635;border-color:#34465a}
html[data-theme="dark"] .lia-head{background:linear-gradient(135deg,#203145,#192a3b);border-color:#34465a}
html[data-theme="dark"] .lia-msg.assistant{background:#223247;color:#edf4fb}
html[data-theme="dark"] .lia-msg-actions button{background:#172433;border-color:#3a4d62;color:#ddecfb}
html[data-theme="dark"] .team-chat-messages{background:#111d2a}
html[data-theme="dark"] .team-msg{background:#192635;border-color:#34465a;color:#edf3f9}
html[data-theme="dark"] .team-msg.mine{background:#203b54;border-color:#3a607f}
html[data-theme="dark"] .team-chat-reply,html[data-theme="dark"] .team-chat-attachment-draft{background:#1d2d3f;color:#c5d1dd}
html[data-theme="dark"] .chat-attachment{background:#142130;border-color:#34465a}
html[data-theme="dark"] .service-chip.offline{background:#263646;color:#c0ccd8}
html[data-theme="dark"] code{background:#26384a;color:#dcecff}
.nav-list{overflow-y:auto;overflow-x:hidden;padding-right:6px;scrollbar-width:thin;scrollbar-color:rgba(255,255,255,.28) transparent}
.nav-list::-webkit-scrollbar{width:7px;height:0}
.nav-list::-webkit-scrollbar-thumb{background:rgba(255,255,255,.28);border-radius:999px}
.nav-list button{width:100%;min-width:0;flex:0 0 auto}
.nav-list button .nav-label{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.nav-list button .nav-alert-badge{width:auto;min-width:21px;flex:0 0 auto;margin-left:4px;margin-right:2px}
html[data-theme="dark"] .report-bar{background:#26384b}
html[data-theme="dark"] .student-inactive{background:#182431}
html[data-theme="dark"] .institution-card p,html[data-theme="dark"] .developer-credit p{color:#c3cfdb}
html[data-theme="dark"] details summary{color:#dcecff}
html[data-theme="dark"] .link-auth,html[data-theme="dark"] .ai-undo{color:#93c7ff}
html[data-theme="dark"] .import-summary-grid b{color:#ffffff}
html[data-theme="dark"] .compact-selection-chips button{color:#b9c8d8}
html[data-theme="dark"] .communication-error{color:#ff9b9b}

.team-chat-panel{display:flex;flex-direction:column;min-height:0}
.team-chat-head,.team-chat-reply,.team-chat-attachment-draft,.team-chat-compose{flex:0 0 auto}
.team-chat-messages{flex:1 1 auto;min-height:0;overflow-y:auto}
.team-chat-compose{display:flex;flex-direction:column;gap:9px;padding:12px}
.team-chat-compose textarea{display:block;box-sizing:border-box;width:100%;height:88px;min-height:88px;max-height:150px;line-height:1.4;flex:none}
.team-chat-compose>div{display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%}
.team-chat-compose>div .btn{width:auto!important;height:38px!important;min-height:38px;display:inline-flex;align-items:center;justify-content:center;white-space:nowrap;padding:8px 13px!important;flex:0 0 auto}
.team-chat-compose>div .btn.primary{min-width:86px}
.team-chat-compose>div .btn.ghost{min-width:102px}
.communication-table{table-layout:auto;min-width:920px}
.communication-table th,.communication-table td{white-space:nowrap}
.communication-table td:nth-child(2){white-space:normal;min-width:170px}
.communication-table td:nth-child(3){white-space:normal;min-width:150px}
.communication-table td:nth-child(6){white-space:normal;min-width:135px}
.communication-table td:last-child{text-align:right;width:1%}
.communication-table .communication-error{display:block;max-width:220px;margin-top:5px;white-space:normal;line-height:1.25}
@media(max-width:700px){.team-chat-compose textarea{height:78px;min-height:78px}.communication-table{min-width:850px}}

/* Patch v0.6.8 - Classificação de Pontos */
.point-natures-field .nature-checkbox-grid{
  display:grid;
  grid-template-columns:1fr;
  gap:7px;
  max-height:280px;
  overflow-y:auto;
  overflow-x:hidden;
  padding:2px 6px 2px 2px;
  scrollbar-width:thin;
}
.point-natures-field .nature-checkbox-grid label{
  width:100%;
  min-width:0;
  display:flex!important;
  align-items:center!important;
  justify-content:flex-start!important;
  gap:10px;
  padding:10px 12px;
  box-sizing:border-box;
  cursor:pointer;
}
.point-natures-field .nature-checkbox-grid input[type="checkbox"]{
  width:16px!important;
  min-width:16px!important;
  max-width:16px!important;
  height:16px!important;
  min-height:16px!important;
  padding:0!important;
  margin:0!important;
  flex:0 0 16px!important;
  accent-color:var(--navy-3);
}
.point-natures-field .nature-checkbox-grid span{
  display:block;
  flex:1 1 auto;
  min-width:0;
  width:auto!important;
  white-space:normal;
  overflow-wrap:break-word;
  word-break:normal;
  line-height:1.35;
  text-align:left;
}
.point-natures-field .point-nature-search{
  box-sizing:border-box;
}
html[data-theme="dark"] .point-natures-field .nature-checkbox-grid label{
  background:#192635;
  border-color:#34465a;
  color:#eef4fb;
}
html[data-theme="dark"] .point-natures-field .nature-checkbox-grid label:hover{
  background:#213247;
}
.spotlight-identity .spotlight-avatar{
  width:48px;
  height:48px;
  min-width:48px;
  min-height:48px;
  flex:0 0 48px;
  display:grid;
  place-items:center;
  border-radius:14px;
  box-sizing:border-box;
  padding:0;
  color:var(--navy);
  font-size:15px;
  font-weight:900;
  line-height:1;
  letter-spacing:.03em;
  text-align:center;
  white-space:nowrap;
}
@media(max-width:520px){
  .spotlight-identity .spotlight-avatar{
    width:48px!important;
    height:48px!important;
    min-width:48px;
    min-height:48px;
    border-radius:14px!important;
  }
}

.public-about-link{position:fixed;bottom:22px;left:26px;z-index:8;border:1px solid rgba(255,255,255,.28);background:rgba(6,25,51,.28);color:#f0f6ff;border-radius:12px;padding:8px 14px;font-weight:700;font-size:.84rem;box-shadow:0 4px 14px rgba(0,0,0,.12);backdrop-filter:blur(8px)}
.public-about-link:hover,.public-about-link:focus-visible{background:rgba(255,255,255,.18);outline-offset:3px}
.public-about-dialog{width:min(480px,calc(100vw - 28px));max-height:min(90vh,640px);overflow-y:auto;border:1px solid var(--line);border-radius:20px;padding:24px;background:var(--card);color:var(--ink);box-shadow:0 24px 75px rgba(0,0,0,.35)}
.public-about-dialog::backdrop{background:rgba(4,13,28,.72);backdrop-filter:blur(3px)}
.public-about-head{display:flex;align-items:center;gap:12px;margin-bottom:16px}.public-about-head img{width:54px;height:54px;object-fit:contain}.public-about-head>div{flex:1;min-width:0}.public-about-head span{display:block;color:var(--muted);font-size:.76rem}.public-about-head h2{margin:4px 0 0;font-size:1.3rem;color:var(--ink)}.public-about-head button{align-self:flex-start;border:0;background:transparent;color:var(--muted);font-size:1.8rem;line-height:1;padding:0 5px}
.public-about-dialog p{line-height:1.62;margin:0 0 13px;font-size:.93rem}.public-about-dialog .public-about-disclaimer{font-size:.82rem;color:var(--muted)}.public-about-actions{display:flex;justify-content:flex-end;margin-top:18px}
@media(max-width:600px){.public-about-link{left:14px;bottom:14px}.public-about-dialog{padding:18px}}

.team-chat-status{font-size:.76rem;line-height:1.4;padding:8px 10px;border-radius:10px;color:var(--muted);background:var(--card);border:1px solid var(--line)}
.team-chat-status.error{color:#b42c37;background:#fff0f1;border-color:#e8a5aa}
html[data-theme="dark"] .team-chat-status.error{color:#ffc4c8;background:#3b232c;border-color:#91515d}
.lia-root{width:64px;height:64px;display:block}
.lia-orb{cursor:grab;touch-action:none;user-select:none;-webkit-user-select:none}
.lia-root.dragging .lia-orb{cursor:grabbing;animation-play-state:paused}
.lia-panel{position:fixed;right:auto;bottom:auto;max-height:calc(100dvh - 16px)}
@media(max-width:700px){.lia-root{width:58px;height:58px}}
