:root{--brand:#DC3F20;--brand-dark:#bd3218;--brand-soft:#FCE9E4;--page:#E3E2DE;--surface:#fff;--text:#343434;--muted:#817d77;--border:#D6D3CD;--green:#23845e;--green-bg:#e7f4ed;--yellow:#a66d0b;--yellow-bg:#fff4d9;--red:#c83b2c;--red-bg:#fdebe8;--shadow:0 10px 30px rgba(55,45,35,.06);--radius:17px}
*{box-sizing:border-box}body{margin:0;background:var(--page);color:var(--text);font-family:'Be Vietnam Pro',Arial,sans-serif;font-size:13px}button,input,select,textarea{font:inherit}button{cursor:pointer}.app-shell{min-height:100vh;display:flex}.sidebar{width:254px;background:#fff;border-right:1px solid var(--border);padding:22px 15px 14px;display:flex;flex-direction:column;position:fixed;inset:0 auto 0 0;z-index:20;overflow-y:auto}.brand-lockup{display:flex;align-items:center;gap:10px;padding:0 8px 20px;border-bottom:1px solid #efede9}.brand-logo{width:57px;height:57px;object-fit:contain;border-radius:13px}.brand-caption{display:flex;flex-direction:column;gap:4px}.brand-caption span{font-size:15px;font-weight:800;letter-spacing:.2px}.brand-caption small{font-size:9px;color:#9a7469;letter-spacing:1.1px}.workspace-label,.nav-section-label{font-size:9px;font-weight:800;letter-spacing:1.3px;color:#aaa39b;margin:22px 10px 9px}.main-nav{display:flex;flex-direction:column;gap:4px}.nav-item{border:0;background:transparent;color:#625e59;text-align:left;padding:11px 12px;border-radius:11px;display:flex;align-items:center;gap:12px;font-size:12px;font-weight:600;transition:.18s}.nav-item:hover{background:#f8f5f2;color:var(--brand)}.nav-item.active{background:var(--brand-soft);color:var(--brand);font-weight:700}.nav-icon{width:19px;text-align:center;font-size:17px;line-height:1}.nav-count,.nav-alert{margin-left:auto;border-radius:99px;padding:3px 7px;font-size:10px;background:#f1efec;color:#777}.nav-alert{background:#fdebe8;color:var(--brand)}.nav-section-label{margin-top:21px;margin-bottom:6px}.sidebar-bottom{margin-top:auto}.support-card{background:#faf4f1;border:1px solid #f3e4df;border-radius:14px;padding:14px;margin:17px 2px}.support-symbol{width:25px;height:25px;border-radius:8px;background:var(--brand);color:white;display:grid;place-items:center;font-size:15px;margin-bottom:10px}.support-card strong{font-size:11px}.support-card p{color:#85776f;font-size:10px;line-height:1.6;margin:5px 0 0}.profile-mini{border-top:1px solid #efede9;padding:15px 5px 2px;display:flex;align-items:center;gap:9px}.avatar,.top-avatar{width:34px;height:34px;border-radius:50%;display:grid;place-items:center;font-size:10px;font-weight:800}.admin-avatar,.top-avatar{background:#f8d6cc;color:var(--brand)}.profile-text{display:flex;flex-direction:column;gap:3px}.profile-text strong{font-size:10px}.profile-text small{font-size:9px;color:var(--muted)}.online-dot{margin-left:auto;width:7px;height:7px;border-radius:50%;background:#36a66f}
.main-area{margin-left:254px;width:calc(100% - 254px);min-height:100vh}.topbar{height:67px;background:rgba(255,255,255,.82);backdrop-filter:blur(12px);border-bottom:1px solid rgba(214,211,205,.8);display:flex;align-items:center;justify-content:space-between;padding:0 34px;position:sticky;top:0;z-index:10}.topbar-left,.topbar-right{display:flex;align-items:center;gap:16px}.breadcrumb{font-size:11px;color:#8b857e}.breadcrumb span{margin:0 8px;color:#c2bdb7}.breadcrumb strong{color:var(--text);font-weight:700}.topbar-right{gap:19px}.today-chip{display:flex;align-items:center;gap:7px;color:#77716a;font-size:10px}.today-dot{width:6px;height:6px;background:#38a66c;border-radius:50%}.icon-button{border:0;background:transparent;color:#625d57;font-size:20px;width:32px;height:32px;border-radius:9px}.icon-button:hover{background:#f5f1ed}.notification-button{position:relative;font-size:20px}#notificationDot{position:absolute;right:5px;top:5px;width:6px;height:6px;background:var(--brand);border:1px solid white;border-radius:50%;display:none}.top-avatar{width:32px;height:32px}.mobile-menu{display:none}.page-wrap{max-width:1500px;margin:0 auto;padding:24px 34px 18px}.demo-banner{background:#fff8e9;border:1px solid #f1dfb7;border-radius:12px;display:flex;align-items:center;gap:10px;padding:10px 13px;margin-bottom:22px;color:#806324}.demo-icon{width:19px;height:19px;border:1px solid #d6ae55;border-radius:50%;display:grid;place-items:center;font-size:11px;font-weight:700;flex:none}.demo-banner div{display:flex;flex-direction:column;gap:2px;flex:1}.demo-banner strong{font-size:10px}.demo-banner span{font-size:10px;color:#937b4b}.demo-banner button{border:0;background:none;color:#937b4b;font-size:19px}.page-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:15px;margin:2px 0 21px}.page-heading h1{margin:0 0 5px;font-size:23px;letter-spacing:-.7px}.page-heading p{margin:0;color:var(--muted);font-size:11px}.eyebrow{font-size:9px;text-transform:uppercase;letter-spacing:1.3px;color:var(--brand);font-weight:800;margin-bottom:7px;display:block}.heading-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.btn{border:1px solid var(--border);background:#fff;color:#514c47;padding:9px 13px;border-radius:9px;font-size:10px;font-weight:700;display:inline-flex;align-items:center;gap:7px;transition:.15s}.btn:hover{transform:translateY(-1px);box-shadow:0 5px 12px #3434340c}.btn-primary{background:var(--brand);border-color:var(--brand);color:white}.btn-primary:hover{background:var(--brand-dark)}.btn-soft{background:var(--brand-soft);color:var(--brand);border-color:#f4d3ca}.btn-danger{background:#fff;border-color:#f0c4bd;color:var(--red)}.btn-sm{padding:6px 9px;font-size:9px}.stats-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px;margin-bottom:17px}.stat-card,.panel,.content-card{background:var(--surface);border:1px solid #eeece8;border-radius:var(--radius);box-shadow:var(--shadow)}.stat-card{padding:16px 17px;position:relative;overflow:hidden}.stat-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:13px}.stat-label{font-size:10px;color:#8b857e;font-weight:600}.stat-icon{width:32px;height:32px;display:grid;place-items:center;border-radius:10px;background:#faf0ed;color:var(--brand);font-size:16px}.stat-value{font-size:25px;letter-spacing:-1px;font-weight:800;margin-bottom:4px}.stat-foot{font-size:9px;color:#969089}.stat-foot strong{color:var(--green);font-weight:700}.dashboard-grid{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(270px,.9fr);gap:15px;margin-bottom:15px}.panel{padding:17px}.panel-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;margin-bottom:15px}.panel-title{font-weight:800;font-size:12px}.panel-subtitle{font-size:9px;color:#99928b;margin-top:4px}.text-link{font-size:10px;color:var(--brand);font-weight:700;text-decoration:none;border:0;background:none}.chart-area{height:205px;display:flex;gap:9px;align-items:flex-end;padding:8px 8px 0;border-bottom:1px solid #eeeae5;position:relative}.chart-ylabels{position:absolute;left:0;top:8px;bottom:25px;display:flex;flex-direction:column;justify-content:space-between;color:#aaa39b;font-size:8px}.chart-bars{margin-left:26px;display:flex;align-items:flex-end;justify-content:space-around;gap:12px;width:calc(100% - 26px);height:100%}.chart-col{height:100%;display:flex;align-items:center;justify-content:flex-end;flex-direction:column;gap:7px;flex:1}.bar-stack{height:165px;width:min(34px,70%);display:flex;align-items:flex-end;justify-content:flex-end;flex-direction:column-reverse;border-radius:7px 7px 0 0;overflow:hidden;background:#f5f1ed}.bar-present{width:100%;background:#e9a08d;min-height:2px}.bar-absent{width:100%;background:#dc3f20;min-height:1px}.chart-col small{font-size:8px;color:#99928b}.chart-legend{display:flex;justify-content:flex-end;gap:14px;margin-top:11px;color:#8b857e;font-size:9px}.legend-dot{display:inline-block;width:7px;height:7px;border-radius:2px;margin-right:5px}.legend-present{background:#e9a08d}.legend-absent{background:var(--brand)}.attendance-summary{display:flex;align-items:center;gap:19px;padding:8px 2px 13px}.donut{width:112px;height:112px;border-radius:50%;background:conic-gradient(#23845e 0 75%,#DC3F20 75% 83%,#e5b54d 83% 91%,#e7e4df 91% 100%);display:grid;place-items:center;position:relative;flex:none}.donut:after{content:"";position:absolute;width:76px;height:76px;border-radius:50%;background:#fff}.donut-inner{position:relative;z-index:1;text-align:center}.donut-inner strong{font-size:22px;display:block}.donut-inner small{font-size:8px;color:#999}.summary-legend{display:flex;flex-direction:column;gap:10px;flex:1}.summary-row{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:9px;color:#817b74}.summary-row strong{font-size:10px;color:#403d39}.summary-label{display:flex;align-items:center;gap:7px}.summary-label i{width:7px;height:7px;border-radius:50%;display:inline-block}.alert-list{display:flex;flex-direction:column;gap:9px}.alert-item{display:flex;align-items:center;gap:9px;padding:9px;border:1px solid #f0eeea;border-radius:11px}.alert-avatar{width:31px;height:31px;background:#f9e7e2;color:var(--brand);border-radius:9px;display:grid;place-items:center;font-weight:800;font-size:9px;flex:none}.alert-detail{min-width:0;flex:1}.alert-detail strong{font-size:10px;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.alert-detail small{font-size:8px;color:#938c84;display:block;margin-top:3px}.severity{font-size:8px;padding:4px 6px;border-radius:99px;font-weight:700;white-space:nowrap}.severity.high{color:var(--red);background:var(--red-bg)}.severity.medium{color:var(--yellow);background:var(--yellow-bg)}.section-grid{display:grid;grid-template-columns:1fr 1fr;gap:15px}.table-wrap{overflow:auto;width:100%}table{border-collapse:collapse;width:100%;min-width:560px}th{text-align:left;padding:10px 11px;background:#faf9f7;color:#938d85;font-size:9px;font-weight:700;white-space:nowrap;border-bottom:1px solid #eeeae5}td{padding:11px;border-bottom:1px solid #f1efeb;font-size:10px;vertical-align:middle}tbody tr:last-child td{border-bottom:0}.student-cell{display:flex;align-items:center;gap:9px;min-width:145px}.student-avatar{width:30px;height:30px;border-radius:9px;display:grid;place-items:center;font-size:9px;font-weight:800;color:#92533f;background:#f8e4dc;flex:none}.student-name{font-weight:700;font-size:10px}.student-id{color:#99918a;font-size:8px;margin-top:3px}.muted{color:#968f87}.status-pill{display:inline-flex;align-items:center;gap:5px;border-radius:99px;padding:5px 8px;font-size:8px;font-weight:700;white-space:nowrap}.status-pill:before{content:"";width:5px;height:5px;border-radius:50%;background:currentColor}.status-present{background:var(--green-bg);color:var(--green)}.status-absent_excused{background:#fff4d9;color:#9c6a10}.status-absent_unexcused{background:var(--red-bg);color:var(--red)}.status-late{background:#fff4d9;color:#9c6a10}.status-makeup{background:#eeeafa;color:#7561a7}.status-pending{background:#f1efec;color:#857f78}.status-active{background:var(--green-bg);color:var(--green)}.status-paused{background:#fff4d9;color:#9c6a10}.status-inactive{background:#f1efec;color:#857f78}.toolbar{display:flex;align-items:center;gap:9px;flex-wrap:wrap;margin-bottom:14px}.search-box{position:relative;flex:1;min-width:180px}.search-box span{position:absolute;left:11px;top:50%;transform:translateY(-50%);color:#aaa;font-size:14px}.field-control,.search-input,.filter-select{width:100%;border:1px solid var(--border);border-radius:9px;background:#fff;color:var(--text);padding:9px 11px;font-size:10px;outline:none}.search-input{padding-left:32px}.field-control:focus,.search-input:focus,.filter-select:focus{border-color:#e28a76;box-shadow:0 0 0 3px #dc3f2012}.filter-select{width:auto;min-width:130px}.empty-state{text-align:center;padding:35px 15px;color:#999}.empty-state strong{display:block;font-size:11px;color:#514c47;margin:8px 0 4px}.empty-state span{font-size:9px}.attendance-tools{display:flex;align-items:end;gap:10px;flex-wrap:wrap;margin-bottom:15px}.form-field{display:flex;flex-direction:column;gap:6px;flex:1;min-width:150px}.form-field label{font-size:9px;color:#77716a;font-weight:700}.attendance-roster{background:#fff;border:1px solid #eeece8;border-radius:15px;overflow:hidden}.attendance-roster-head{display:flex;align-items:center;justify-content:space-between;padding:14px 16px;border-bottom:1px solid #eeeae5;gap:10px}.attendance-roster-head strong{font-size:11px}.attendance-roster-head span{font-size:9px;color:#928b83}.attendance-row{display:grid;grid-template-columns:minmax(160px,1.3fr) minmax(260px,1fr) minmax(110px,.6fr);align-items:center;gap:12px;padding:10px 16px;border-bottom:1px solid #f1efeb}.attendance-row:last-child{border-bottom:0}.attendance-student{display:flex;align-items:center;gap:9px}.attendance-options{display:flex;gap:5px;flex-wrap:wrap}.attendance-option{border:1px solid #e9e6e1;background:#fff;color:#77716a;padding:6px 8px;border-radius:7px;font-size:8px;font-weight:600}.attendance-option.selected{background:var(--brand-soft);color:var(--brand);border-color:#f0bdb0}.attendance-option.selected.present{background:var(--green-bg);color:var(--green);border-color:#b9dfca}.attendance-option.selected.absent_unexcused{background:var(--red-bg);color:var(--red);border-color:#f0c2bb}.attendance-option.selected.late,.attendance-option.selected.absent_excused{background:var(--yellow-bg);color:var(--yellow);border-color:#ead69e}.attendance-option.selected.makeup{background:#eeeafa;color:#7561a7;border-color:#d7cfee}.row-note{border:0;border-bottom:1px solid #e6e2dc;padding:6px 2px;width:100%;outline:none;font-size:9px;color:#625d57}.attendance-footer{display:flex;align-items:center;justify-content:space-between;padding:13px 16px;background:#faf9f7;border-top:1px solid #eeeae5;gap:10px}.attendance-footer small{font-size:9px;color:#8b857e}.class-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px}.class-card{background:#fff;border:1px solid #eeece8;border-radius:15px;padding:16px;box-shadow:var(--shadow)}.class-card-top{display:flex;justify-content:space-between;align-items:flex-start}.class-code{font-size:9px;color:var(--brand);font-weight:800;letter-spacing:.7px}.class-card h3{font-size:14px;margin:7px 0 4px}.class-meta{font-size:9px;color:#928b83}.class-card-stats{display:flex;gap:18px;border-top:1px solid #f0eeea;margin-top:14px;padding-top:12px}.class-card-stats div{display:flex;flex-direction:column;gap:3px}.class-card-stats strong{font-size:15px}.class-card-stats small{color:#999;font-size:8px}.class-card-actions{display:flex;gap:7px;margin-top:13px}.grade-score{font-weight:800;color:#393532}.score-high{color:var(--green)}.score-low{color:var(--red)}.report-grid{display:grid;grid-template-columns:1fr 1fr;gap:15px}.report-card{padding:18px;background:#fff;border:1px solid #eeece8;border-radius:15px}.report-card h3{font-size:12px;margin:0 0 5px}.report-card p{font-size:9px;color:#918a82;margin:0 0 15px}.report-actions{display:flex;gap:7px;flex-wrap:wrap}.settings-grid{display:grid;grid-template-columns:1fr 1fr;gap:15px}.settings-card{padding:18px;background:#fff;border:1px solid #eeece8;border-radius:15px}.settings-card h3{margin:0 0 5px;font-size:12px}.settings-card p{font-size:9px;line-height:1.6;color:#8d867e;margin:0 0 14px}.brand-preview{display:flex;align-items:center;gap:12px;padding:12px;border:1px solid #eeeae5;border-radius:12px}.brand-preview img{width:65px;height:65px;object-fit:contain}.brand-preview strong{font-size:13px;display:block}.brand-preview small{font-size:9px;color:#a06c5e}.swatches{display:flex;gap:7px;margin-top:14px}.swatch{width:29px;height:29px;border-radius:8px;border:1px solid #ddd}.footer{display:flex;justify-content:space-between;color:#a19a92;font-size:8px;padding:21px 2px 5px}.modal-backdrop{position:fixed;inset:0;background:rgba(39,34,30,.42);z-index:50;display:grid;place-items:center;padding:18px}.modal-backdrop[hidden]{display:none}.modal{width:min(560px,100%);max-height:90vh;overflow:auto;background:#fff;border-radius:18px;padding:21px;box-shadow:0 24px 80px #21150f30}.modal-head{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:18px}.modal-head h2{font-size:19px;margin:0}.modal-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.modal-grid .span-2{grid-column:1/-1}.modal-actions{display:flex;justify-content:flex-end;gap:8px;padding-top:17px;margin-top:17px;border-top:1px solid #eeeae5}.helper-text{font-size:9px;color:#938c84;line-height:1.5}.toast-region{position:fixed;right:20px;bottom:20px;z-index:80;display:flex;flex-direction:column;gap:8px}.toast{background:#343434;color:white;padding:11px 15px;border-radius:10px;box-shadow:0 10px 30px #0002;font-size:10px;animation:toastIn .2s ease}.toast.success{background:#246c50}.toast.error{background:#a63227}@keyframes toastIn{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}.mobile-only{display:none}
@media(max-width:1100px){.stats-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.dashboard-grid{grid-template-columns:1fr}.class-cards{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.sidebar{transform:translateX(-100%);transition:transform .22s ease;box-shadow:15px 0 40px #00000012}.sidebar.open{transform:translateX(0)}.main-area{margin-left:0;width:100%}.topbar{padding:0 16px;height:58px}.mobile-menu{display:block}.page-wrap{padding:17px 14px}.today-chip{display:none}.topbar-right{gap:9px}.page-heading{align-items:flex-start;flex-direction:column}.page-heading h1{font-size:21px}.heading-actions{width:100%}.heading-actions .btn{flex:1;justify-content:center}.section-grid,.report-grid,.settings-grid{grid-template-columns:1fr}.class-cards{grid-template-columns:1fr}.stats-grid{gap:9px}.stat-card{padding:13px}.stat-value{font-size:22px}.dashboard-grid{gap:11px}.panel{padding:14px}.attendance-row{grid-template-columns:1fr;gap:8px;padding:12px}.attendance-options{gap:5px}.attendance-footer{align-items:flex-start;flex-direction:column}.demo-banner{align-items:flex-start}.demo-banner span{line-height:1.5}.footer{gap:10px;line-height:1.5}.modal-grid{grid-template-columns:1fr}.modal-grid .span-2{grid-column:auto}.modal{padding:17px}.breadcrumb{font-size:9px}.attendance-tools .form-field{min-width:calc(50% - 8px)}.chart-area{height:180px}.donut{width:95px;height:95px}.donut:after{width:64px;height:64px}.attendance-summary{gap:12px}}
@media(max-width:390px){.stats-grid{grid-template-columns:1fr 1fr}.stat-label{font-size:9px}.stat-value{font-size:20px}.stat-icon{width:28px;height:28px}.top-avatar{display:none}.attendance-tools .form-field{min-width:100%}}

/* ===== LANA ENGLISH learning analytics, communications and mobile app ===== */
.cloud-chip{display:inline-flex;align-items:center;gap:7px;padding:7px 10px;border:1px solid var(--border);border-radius:999px;background:#fff;color:#776f69;font-size:10px;font-weight:700;white-space:nowrap}
.cloud-chip i{width:7px;height:7px;border-radius:50%;background:#d5a33a;display:inline-block}
.cloud-chip.online i{background:#23845e}.cloud-chip.error i{background:#c83b2c}.cloud-chip.loading i{background:#2875b9}
.btn-logout{border:1px solid var(--border);background:#fff;color:#655e56}
.login-overlay{position:fixed;inset:0;z-index:1000;background:rgba(35,31,28,.55);display:grid;place-items:center;padding:18px;backdrop-filter:blur(7px)}
.login-overlay[hidden]{display:none}
.login-card{width:min(100%,420px);background:#fff;border-radius:24px;padding:30px;box-shadow:0 30px 80px #1f171033;text-align:center}
.login-logo{width:112px;height:112px;object-fit:contain;border-radius:20px;margin-bottom:10px}
.login-card h1{font-size:24px;margin:8px 0;color:var(--text)}.login-card>p{color:var(--muted);margin:0 0 22px}.login-card form{text-align:left;display:grid;gap:13px}.login-submit{width:100%;justify-content:center;margin-top:4px}.login-card>small{display:block;color:var(--muted);font-size:10px;line-height:1.6;margin-top:17px}.login-error{font-size:11px;color:var(--red);line-height:1.5;min-height:0}
.progress-filterbar{display:flex;align-items:end;justify-content:space-between;gap:18px;margin:2px 0 15px}.progress-filterbar .form-field{width:min(100%,330px)}.progress-note{display:flex;align-items:center;gap:8px;color:var(--muted);font-size:10px;line-height:1.55;max-width:520px;padding:8px 0}.mini-dot{display:inline-block;width:8px;height:8px;border-radius:50%;flex:none}.dot-green{background:#68b82e}
.progress-stats{margin-bottom:15px}.progress-stats .stat-card{min-height:106px}.progress-stats .stat-value small{font-size:12px;color:var(--muted);font-weight:600}.progress-panel{margin-bottom:15px;padding:20px 22px}.panel-tag{font-size:10px;color:#817b74;background:#f5f2ee;border:1px solid #eeeae4;padding:6px 9px;border-radius:999px;white-space:nowrap}
.progress-chart-wrap{width:100%;overflow-x:auto;overflow-y:hidden}.progress-svg,.topic-svg{display:block;width:100%;min-width:620px;height:auto}.progress-svg{max-height:315px}.topic-svg{max-height:280px}.chart-legend{display:flex;align-items:center;justify-content:center;gap:22px;margin-top:8px;flex-wrap:wrap}.chart-legend span{display:flex;align-items:center;gap:7px;color:#827b73;font-size:11px}.chart-legend .legend-dot{width:10px;height:10px;border-radius:3px;display:inline-block}
.schedule-mobile-tip{display:flex;flex-direction:column;gap:4px;background:#fff8f5;border:1px solid #f3d4ca;border-radius:14px;padding:13px 15px;margin-bottom:14px}.schedule-mobile-tip strong{font-size:12px;color:var(--brand-dark)}.schedule-mobile-tip span{font-size:10px;color:#82746e;line-height:1.55}.schedule-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-bottom:15px}.schedule-list{display:grid;gap:10px}.schedule-card{display:grid;grid-template-columns:62px minmax(0,1fr) 155px;align-items:center;gap:15px;border:1px solid var(--border);border-radius:14px;padding:13px 14px;background:#fff}.schedule-date{display:flex;flex-direction:column;align-items:center;justify-content:center;background:#fff1ec;border-radius:12px;padding:8px 4px;color:var(--brand)}.schedule-date strong{font-size:22px;line-height:1.2}.schedule-date span{font-size:9px;text-transform:uppercase;font-weight:700}.schedule-info{display:flex;flex-direction:column;gap:4px;min-width:0}.schedule-info strong{font-size:12px}.schedule-info span,.schedule-info small{font-size:10px;color:var(--muted)}.schedule-time{display:flex;flex-direction:column;gap:4px;text-align:right}.schedule-time strong{font-size:11px}.schedule-time span{font-size:10px;color:var(--muted)}
.diary-panel{padding:20px}.diary-timeline-list{display:flex;flex-direction:column}.diary-item{display:grid;grid-template-columns:22px 1fr;gap:12px;min-height:94px}.diary-timeline{position:relative;display:flex;justify-content:center}.diary-timeline:after{content:"";position:absolute;top:13px;bottom:-4px;width:1px;background:#e8e2db}.diary-item:last-child .diary-timeline:after{display:none}.diary-timeline span{position:relative;z-index:1;width:10px;height:10px;border:3px solid #f4c8ba;background:var(--brand);border-radius:50%;margin-top:5px}.diary-body{padding-bottom:18px}.diary-meta{display:flex;flex-wrap:wrap;gap:10px;color:#928b83;font-size:9px;margin-bottom:5px}.diary-body>strong{font-size:12px}.diary-body p{font-size:10px;line-height:1.6;color:#7f7972;margin:5px 0}.diary-type{font-size:9px;display:inline-block;color:#a44831;background:#fff0ea;border-radius:999px;padding:4px 8px}
.messaging-layout{display:grid;grid-template-columns:260px minmax(0,1fr);gap:13px;margin-bottom:15px;min-height:455px}.thread-list,.chat-panel{background:#fff;border:1px solid var(--border);border-radius:16px;overflow:hidden}.thread-list-head{display:flex;justify-content:space-between;padding:15px;border-bottom:1px solid #eee9e3;font-size:11px}.thread-list-head span{color:var(--muted)}.thread-item{width:100%;padding:12px;display:grid;grid-template-columns:36px minmax(0,1fr);gap:9px;align-items:center;text-align:left;border:0;border-bottom:1px solid #f1eeea;background:#fff}.thread-item.active{background:#fff3ee;box-shadow:inset 3px 0 var(--brand)}.thread-avatar{width:34px;height:34px;border-radius:50%;display:grid;place-items:center;background:#f7ded5;color:#a33c24;font-size:10px;font-weight:800}.thread-preview{display:flex;flex-direction:column;gap:4px;min-width:0}.thread-preview strong{font-size:10px}.thread-preview small{font-size:9px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.thread-class{grid-column:2;font-size:8px;color:#a39b92}.chat-panel{display:flex;flex-direction:column;min-width:0}.chat-head{padding:13px 16px;border-bottom:1px solid #eee9e3;display:flex;align-items:center;justify-content:space-between;gap:12px}.chat-head>div{display:flex;flex-direction:column;gap:4px}.chat-head strong{font-size:12px}.chat-head small{font-size:9px;color:var(--muted)}.online-pill{font-size:9px;color:#32805b;background:#edf7f0;padding:6px 8px;border-radius:999px}.chat-messages{padding:15px;display:flex;flex-direction:column;gap:12px;min-height:240px;max-height:390px;overflow:auto;background:#fbfaf8}.message-row{display:flex;justify-content:flex-start}.message-row.mine{justify-content:flex-end}.message-bubble{max-width:min(86%,500px);padding:10px 12px;border-radius:13px 13px 13px 4px;background:#fff;border:1px solid #eee8e1;box-shadow:0 2px 7px #3c2d1c08}.message-row.mine .message-bubble{background:#fff0ea;border-color:#f3d5ca;border-radius:13px 13px 4px 13px}.message-bubble small{font-size:8px;color:#91877d}.message-bubble p{font-size:10px;line-height:1.6;margin:5px 0 0;white-space:pre-wrap;overflow-wrap:anywhere}.message-bubble audio{display:block;max-width:100%;margin-top:7px;height:32px}.message-attachment{font-size:10px;background:#fff;border:1px solid #eee4dc;border-radius:9px;padding:8px;margin-top:7px;overflow-wrap:anywhere}.message-attachment a{color:var(--brand);margin-left:8px}.chat-composer{padding:12px;border-top:1px solid #eee9e3;display:grid;gap:9px}.chat-composer textarea{resize:vertical;min-height:53px}.composer-tools{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap}.attach-button{font-size:9px;color:#71685f;border:1px solid var(--border);background:#fff;padding:8px 10px;border-radius:9px;cursor:pointer}.recording-status{font-size:10px;color:#c33d2c}.recording-status button{margin-left:8px}.sms-panel{padding:17px}.sms-form{display:grid;grid-template-columns:minmax(170px,1fr) minmax(230px,2fr) auto;align-items:end;gap:10px}.sms-content textarea{min-height:40px}.sms-panel>.helper-text{margin-top:10px;line-height:1.6}
@media(max-width:960px){.progress-filterbar{align-items:flex-start;flex-direction:column;gap:6px}.progress-filterbar .form-field{width:100%}.messaging-layout{grid-template-columns:220px minmax(0,1fr)}.sms-form{grid-template-columns:1fr 1.5fr}.sms-form>button{grid-column:1/-1;justify-self:end}}
@media(max-width:760px){.cloud-chip{font-size:9px;padding:6px 8px}.topbar-right{gap:7px}.btn-logout{font-size:9px;padding:7px}.progress-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.progress-panel{padding:14px 12px}.progress-panel .panel-head{align-items:flex-start}.progress-panel .panel-title{font-size:12px}.progress-chart-wrap{margin:0 -3px}.schedule-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.schedule-card{grid-template-columns:52px minmax(0,1fr);gap:10px;padding:11px}.schedule-date strong{font-size:19px}.schedule-time{grid-column:2;text-align:left;flex-direction:row;align-items:center;gap:10px}.schedule-time strong{font-size:10px}.messaging-layout{grid-template-columns:1fr;min-height:0}.thread-list{display:flex;overflow:auto;border-radius:13px}.thread-list-head{display:none}.thread-item{min-width:175px;grid-template-columns:31px minmax(0,1fr);border-bottom:0;border-right:1px solid #f1eeea}.thread-avatar{width:30px;height:30px}.thread-class{display:none}.chat-messages{min-height:220px;max-height:340px}.chat-composer{padding:10px}.composer-tools{justify-content:space-between}.composer-tools .btn{flex:1;justify-content:center}.sms-form{grid-template-columns:1fr}.sms-form>button{grid-column:auto;width:100%}.sms-panel{padding:13px}.login-card{padding:23px}.login-card h1{font-size:21px}.schedule-card{align-items:start}.footer{font-size:9px}}
@media(max-width:390px){.cloud-chip span{max-width:90px;overflow:hidden;text-overflow:ellipsis}.topbar-left{gap:7px}.breadcrumb{font-size:9px}.schedule-summary{grid-template-columns:1fr 1fr}.progress-stats .stat-value{font-size:20px}.composer-tools .attach-button{order:3;width:100%;text-align:center}.composer-tools{gap:6px}}
@media print{.sidebar,.topbar,.demo-banner,.heading-actions,.footer,.schedule-mobile-tip{display:none!important}.main-area{margin:0!important;width:100%!important}.page-wrap{padding:0!important}.schedule-card{break-inside:avoid}}

.repeat-label{display:inline-flex;vertical-align:middle;margin-left:6px;padding:3px 6px;border-radius:999px;background:#fce9e4;color:#a9442b;font-size:8px;font-weight:700;white-space:nowrap}
[hidden]{display:none!important}
