@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap');
:root{--navy:#15395f;--blue:#2675d8;--sky:#eaf4ff;--ink:#172b43;--muted:#748399;--line:#e5ebf2;--bg:#f5f8fc;--white:#fff;--green:#16845b;--amber:#b87800;--red:#c43f4b;--shadow:0 12px 35px #17395f0a}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font-family:'DM Sans',sans-serif;font-size:14px}a{color:inherit;text-decoration:none}button,input,textarea,select{font:inherit}.topbar{height:76px;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;padding:0 30px;gap:16px;position:sticky;top:0;z-index:20}.brand{display:flex;align-items:center;gap:12px;font:800 20px Manrope;color:var(--navy)}.brand small{display:block;font:500 10px 'DM Sans';color:#8290a2;letter-spacing:.2px;margin-top:2px}.brand-mark,.auth-logo{width:40px;height:40px;display:grid;place-items:center;border-radius:13px;background:linear-gradient(140deg,#246fc8,#15395f);color:white;font:800 22px Manrope;box-shadow:0 7px 16px #2675d833}.top-right{margin-left:auto;display:flex;align-items:center;gap:18px}.user-chip{font-size:12px;color:#61738a}.user-chip b{display:block;color:var(--navy);font-size:13px}.logout{color:#64768b;font-weight:700;font-size:12px}.menu-toggle{display:none;border:0;background:#eef5fc;border-radius:10px;padding:9px 11px;color:var(--navy);font-size:20px}.app-shell{display:flex;min-height:calc(100vh - 76px)}.sidebar{width:244px;flex-shrink:0;background:#fff;border-right:1px solid var(--line);padding:28px 16px;position:relative;display:flex;flex-direction:column}.side-label,.eyebrow{font-size:10px;letter-spacing:1.6px;color:#8c9aab;font-weight:800}.side-label{padding:0 14px 14px}.nav-link{display:flex;align-items:center;gap:12px;padding:13px 14px;border-radius:11px;color:#61738a;font-weight:600;margin-bottom:5px;transition:.2s}.nav-link span{font-size:20px;width:23px;text-align:center}.nav-link:hover,.nav-link.active{background:#edf5ff;color:#1e69bb}.live-dot{width:7px;height:7px;background:#31b780;border-radius:50%;margin-left:auto}.side-footer{margin-top:auto;padding:20px 7px 0;border-top:1px solid var(--line);display:flex;gap:10px;align-items:center}.side-footer strong,.side-footer small{display:block}.side-footer strong{font-size:12px}.side-footer small{font-size:11px;color:var(--muted);margin-top:4px}.avatar{width:38px;height:38px;flex-shrink:0;display:grid;place-items:center;border-radius:12px;background:linear-gradient(145deg,#e2efff,#c9e0ff);color:#225c9e;font-weight:800}.avatar.mini{width:32px;height:32px;font-size:12px;border-radius:10px}.main-content{min-width:0;flex:1;padding:34px 38px 18px;max-width:1600px;margin:0 auto;width:100%}.page-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:28px}.page-heading h1{font:800 clamp(23px,2vw,30px) Manrope;margin:9px 0 7px;letter-spacing:-.8px}.page-heading p,.subtext{color:var(--muted);margin:0;line-height:1.6}.btn{border:0;border-radius:10px;display:inline-flex;align-items:center;justify-content:center;gap:12px;padding:12px 17px;font-weight:700;cursor:pointer;transition:transform .15s,box-shadow .15s;font-size:13px}.btn:hover{transform:translateY(-1px)}.btn.primary{color:#fff;background:linear-gradient(120deg,#287bdc,#1b5ca9);box-shadow:0 6px 15px #2675d82c}.btn.secondary{background:#fff;border:1px solid var(--line);color:#42617f}.btn.success{background:#e2f7ed;color:#147b52}.btn.danger{background:#ffeaec;color:#ba3542}.btn.small{padding:9px 12px;font-size:11px;border-radius:8px}.btn.full{width:100%;margin-top:18px}.stats-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-bottom:34px}.stat-card{background:white;border:1px solid var(--line);border-radius:15px;padding:19px 21px;display:flex;gap:14px;align-items:center;box-shadow:var(--shadow)}.stat-icon{width:43px;height:43px;display:grid;place-items:center;border-radius:13px;font-size:22px}.stat-icon.blue{background:#eaf3ff;color:#2877d1}.stat-icon.amber{background:#fff5dc;color:#bd8309}.stat-icon.green{background:#e4f8ee;color:#18855c}.stat-card small,.stat-card strong{display:block}.stat-card small{color:var(--muted);font-size:11px}.stat-card strong{font:800 25px Manrope;margin-top:4px}.section-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px}.section-head h2,.panel h2{font:800 18px Manrope;margin:0 0 6px}.section-head p{margin:0;color:var(--muted);font-size:12px}.count-pill{padding:7px 11px;border-radius:8px;background:#e9f3ff;color:#2871c5;font-size:11px;font-weight:800}.task-list{display:grid;gap:13px}.task-card{background:white;border:1px solid var(--line);border-radius:14px;display:flex;overflow:hidden;box-shadow:var(--shadow);transition:.2s}.task-card:hover{transform:translateY(-1px);box-shadow:0 15px 35px #17395f12}.task-accent{width:5px;flex-shrink:0;background:#65aaf3}.status-soon .task-accent{background:#f3bc38}.status-overdue .task-accent,.status-rejected .task-accent{background:#e35d67}.status-approved .task-accent{background:#26ad7b}.task-main{padding:19px 21px;width:100%;min-width:0}.task-meta{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:9px}.status-tag{font-size:10px;font-weight:800;color:#2b73c2;background:#eaf4ff;padding:6px 9px;border-radius:6px}.status-soon .status-tag{color:#9c6a00;background:#fff3d3}.status-overdue .status-tag,.status-rejected .status-tag{color:#b83240;background:#ffeaec}.status-approved .status-tag{color:#147b52;background:#e3f8ed}.task-date{font-size:11px;color:#7c8ca0}.task-card h3{font:800 16px Manrope;margin:0 0 8px}.task-card p{color:#66778c;line-height:1.65;margin:0;font-size:13px}.attachments{display:flex;gap:9px;flex-wrap:wrap;margin-top:10px}.attachments a,.file-row{font-size:11px;color:#276ebc;background:#f0f6ff;padding:6px 9px;border-radius:7px}.task-actions{display:flex;align-items:center;gap:13px;margin-top:16px}.task-created{font-size:10px;color:#98a4b2}.review-note{margin-top:12px;background:#fff4e4;border-radius:8px;padding:10px;color:#885d10;font-size:12px}.empty-state{background:#fff;border:1px dashed #cbd8e7;border-radius:16px;padding:55px 20px;text-align:center;color:var(--muted)}.empty-state>div{font-size:30px;color:#5594db}.empty-state h3{color:var(--ink);margin:12px 0 6px;font:800 17px Manrope}.empty-state p{margin:0}.table-wrap{background:#fff;border:1px solid var(--line);border-radius:14px;overflow:auto;box-shadow:var(--shadow)}table{border-collapse:collapse;width:100%;min-width:920px}th{text-align:left;font-size:10px;letter-spacing:.8px;text-transform:uppercase;color:#8190a3;background:#f9fbfe;padding:15px 16px;border-bottom:1px solid var(--line)}td{padding:16px;border-bottom:1px solid #edf1f6;vertical-align:top;font-size:12px}tr:last-child td{border-bottom:0}.table-sub{display:block;color:#8a98a9;font-size:10px;margin-top:5px}.pill{display:inline-block;border-radius:6px;padding:6px 8px;font-size:10px;font-weight:800;white-space:nowrap}.pill-green{background:#e4f8ed;color:#16845b}.pill-red{background:#ffeaec;color:#bf3542}.pill-amber{background:#fff3d5;color:#a16d00}.pill-blue{background:#eaf4ff;color:#2875ca}.review-form{display:grid;gap:6px;min-width:145px}.reject-input{width:150px;border:1px solid var(--line);border-radius:7px;padding:7px;font-size:10px}.empty-cell{text-align:center;color:var(--muted);padding:40px}.muted{color:var(--muted);font-size:12px}.flash{padding:12px 15px;border-radius:10px;margin-bottom:17px;background:#e7f5ed;color:#14774f}.flash.error{background:#ffebed;color:#b32f3c}.flash.warning{background:#fff3d9;color:#946300}.create-layout{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(280px,.8fr);gap:20px;align-items:start}.panel{background:#fff;border:1px solid var(--line);border-radius:15px;padding:24px;box-shadow:var(--shadow)}.panel .subtext{font-size:12px;margin-bottom:20px}.form-panel label,.auth-form label,.submit-grid label{display:block;font-size:12px;font-weight:700;color:#435b75;margin:17px 0 8px}.form-panel input:not([type=file]),.form-panel textarea,.form-panel select,.auth-form input,.submit-grid textarea,.submit-grid input:not([type=file]){width:100%;border:1px solid #dce5ef;border-radius:9px;padding:12px 13px;background:#fbfdff;color:var(--ink);outline:0;transition:.2s}.form-panel input:focus,.form-panel textarea:focus,.auth-form input:focus,.submit-grid textarea:focus{border-color:#6da9eb;box-shadow:0 0 0 3px #dcecff}.upload-box{position:relative;border:1px dashed #aac6e7;background:#f7fbff;border-radius:12px;padding:23px;text-align:center;margin-top:5px;color:#5c7591}.upload-box input{max-width:100%;margin-bottom:10px}.upload-icon{font-size:24px;color:#327cc9}.upload-box strong,.upload-box small{display:block}.upload-box strong{font-size:12px;margin:8px 0}.upload-box small{font-size:10px;color:#8796a8}.teacher-picker{max-height:340px;overflow:auto;margin-top:12px}.check-all{display:flex!important;align-items:center;gap:9px;padding:12px;background:#eef6ff;border-radius:9px;margin-top:20px!important}.teacher-option{display:flex!important;align-items:center;gap:10px;padding:10px 4px;border-bottom:1px solid #f0f3f7;cursor:pointer}.teacher-option input,.check-all input{accent-color:#2675d8}.teacher-option strong,.teacher-option small{display:block}.teacher-option strong{font-size:12px}.teacher-option small{font-size:10px;color:var(--muted);margin-top:3px}.tip-box{display:flex;gap:9px;background:#fff8e7;border-radius:9px;padding:12px;margin-top:20px;color:#9b741d;font-size:11px;line-height:1.6}.submit-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}.submit-grid p{line-height:1.7;color:#5e7188}.submit-grid textarea{width:100%;margin-bottom:12px}.file-row{display:block;margin:8px 0}.auth-wrap{max-width:1050px;min-height:610px;margin:12px auto 40px;background:#fff;border-radius:22px;box-shadow:0 25px 80px #183c620f;overflow:hidden;display:grid;grid-template-columns:1fr 1fr;border:1px solid var(--line)}.auth-art{background:linear-gradient(150deg,#194a7d,#102c4a);padding:46px 44px;color:white;position:relative;overflow:hidden;display:flex;flex-direction:column;justify-content:center}.auth-art:after{content:"";position:absolute;width:350px;height:350px;border:1px solid #ffffff19;border-radius:50%;right:-170px;bottom:-130px;box-shadow:0 0 0 40px #ffffff08,0 0 0 80px #ffffff06}.auth-logo{background:#ffffff1b;border:1px solid #ffffff40;box-shadow:none;margin-bottom:40px}.auth-art .eyebrow{color:#a8c8e8}.auth-art h1{font:800 38px/1.25 Manrope;letter-spacing:-1.4px;margin:14px 0}.auth-art h1 em{font-style:normal;color:#78b9ff}.muted-light{color:#c1d2e4;line-height:1.7;max-width:340px}.auth-points{display:grid;gap:13px;margin-top:28px;color:#d5e5f6;font-size:12px}.auth-points span:first-letter{color:#7ce2b5}.orb{position:absolute;border-radius:50%;filter:blur(1px)}.orb1{width:160px;height:160px;background:#428dd32a;right:-40px;top:20px}.orb2{width:100px;height:100px;background:#6ac3ff18;left:-40px;bottom:30px}.auth-form{padding:55px 48px;display:flex;flex-direction:column;justify-content:center}.form-kicker{color:#2675d8;font-weight:800;font-size:11px;letter-spacing:1px;text-transform:uppercase}.auth-form h2{font:800 26px Manrope;margin:9px 0}.auth-form .subtext{font-size:12px;margin-bottom:16px}.auth-form label{margin-top:14px}.auth-form input{padding:13px}.auth-bottom{text-align:center;color:var(--muted);font-size:12px;margin-top:22px}.auth-bottom a{color:#2675d8;font-weight:800}.field-error{color:#bd3541;display:block;margin-top:5px}.chat-layout{height:min(650px,calc(100vh - 240px));min-height:440px;background:#fff;border:1px solid var(--line);border-radius:16px;overflow:hidden;display:grid;grid-template-columns:280px minmax(0,1fr);box-shadow:var(--shadow)}.chat-contacts{border-right:1px solid var(--line);min-height:0;display:flex;flex-direction:column}.contact-search{padding:15px;border-bottom:1px solid var(--line)}.contact-search input{width:100%;padding:11px;border:1px solid var(--line);border-radius:9px;background:#f9fbfe;outline:0}.contact-list{overflow:auto}.contact{display:flex;align-items:center;gap:10px;padding:14px;border-bottom:1px solid #f0f3f7}.contact.active,.contact:hover{background:#eef6ff}.contact strong,.contact small,.chat-header strong,.chat-header small{display:block}.contact strong{font-size:12px}.contact small,.chat-header small{font-size:10px;color:var(--muted);margin-top:4px}.online-dot{width:7px;height:7px;border-radius:50%;background:#32b67d;margin-left:auto}.chat-window{display:flex;flex-direction:column;min-width:0;min-height:0}.chat-header{padding:14px 20px;border-bottom:1px solid var(--line);display:flex;align-items:center;gap:11px}.chat-body{flex:1;overflow:auto;padding:20px;background:linear-gradient(#f9fbfe,#f4f8fc);display:flex;flex-direction:column;gap:10px}.message-row{display:flex;justify-content:flex-start}.message-row.mine{justify-content:flex-end}.message-bubble{max-width:min(78%,520px);background:#fff;border:1px solid #e7edf4;border-radius:13px 13px 13px 4px;padding:10px 12px;box-shadow:0 4px 12px #1c3b5e08;overflow-wrap:anywhere;line-height:1.6}.mine .message-bubble{background:#e4f1ff;border-color:#d3e6fc;border-radius:13px 13px 4px 13px}.message-bubble small{display:block;text-align:right;color:#92a0b0;font-size:9px;margin-top:5px}.chat-file{display:block;color:#216fc1;padding:6px 0}.chat-empty{margin:auto;color:#8a9aae;font-size:12px}.chat-compose{display:flex;align-items:center;gap:10px;padding:13px;border-top:1px solid var(--line)}.chat-compose input[name=text]{flex:1;min-width:0;border:1px solid var(--line);border-radius:24px;padding:12px 15px;outline:0}.attach-btn,.send-btn{width:39px;height:39px;border:0;border-radius:50%;display:grid;place-items:center;cursor:pointer}.attach-btn{background:#edf5ff;color:#2a70b9;font-size:23px}.send-btn{background:#236fc2;color:white;font-size:18px}.compose-file{font-size:10px;color:#2675d8;padding:0 16px}.live-label{color:#269568;font-size:11px}.live-label i{display:inline-block;width:7px;height:7px;border-radius:50%;background:#27b67b;margin-right:5px}footer{font-size:10px;color:#9aa7b6;padding:35px 0 8px}footer span{margin:0 6px}.pad{padding:15px}
@media(max-width:1050px){.main-content{padding:28px 22px}.sidebar{width:215px}.create-layout{grid-template-columns:1fr}.auth-wrap{margin:0 auto 30px}.auth-form{padding:42px 30px}.auth-art{padding:35px 30px}}
@media(max-width:760px){.topbar{height:65px;padding:0 15px}.menu-toggle{display:block}.brand{font-size:17px;gap:9px}.brand-mark{width:35px;height:35px}.brand small{display:none}.user-chip{display:none}.app-shell{min-height:calc(100vh - 65px)}.sidebar{position:fixed;top:65px;bottom:0;left:0;z-index:30;width:260px;transform:translateX(-105%);transition:transform .22s;box-shadow:10px 0 30px #112f5012}.sidebar.open{transform:translateX(0)}.main-content{padding:23px 14px 12px}.page-heading{align-items:flex-start;flex-direction:column;margin-bottom:22px;gap:14px}.page-heading h1{font-size:24px}.page-heading .btn{align-self:stretch}.stats-grid{grid-template-columns:1fr;gap:9px;margin-bottom:25px}.stat-card{padding:13px 15px}.stat-icon{width:38px;height:38px}.stat-card strong{font-size:21px}.task-main{padding:15px}.task-meta{align-items:flex-start;flex-direction:column;gap:8px}.task-actions{align-items:flex-start;flex-direction:column}.create-layout{gap:14px}.panel{padding:18px}.submit-grid{grid-template-columns:1fr}.auth-wrap{grid-template-columns:1fr;min-height:auto;margin:0 0 20px;border-radius:15px}.auth-art{padding:25px;min-height:240px}.auth-logo{margin-bottom:18px}.auth-art h1{font-size:28px;margin:8px 0}.auth-art .muted-light,.auth-points{display:none}.auth-form{padding:28px 23px}.chat-layout{height:calc(100vh - 205px);min-height:420px;grid-template-columns:95px minmax(0,1fr)}.contact-search{padding:7px}.contact-search input{font-size:10px;padding:8px 5px}.contact{padding:11px 6px;flex-direction:column;text-align:center;gap:5px}.contact .avatar{width:33px;height:33px}.contact strong{font-size:10px;max-width:82px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.contact small{font-size:9px}.online-dot{display:none}.chat-header{padding:10px}.chat-header .avatar{width:32px;height:32px}.chat-header strong{font-size:11px}.chat-body{padding:12px 8px}.message-bubble{max-width:92%;font-size:12px;padding:8px}.chat-compose{padding:9px 6px;gap:5px}.attach-btn,.send-btn{width:32px;height:32px;flex-shrink:0}.chat-compose input[name=text]{padding:10px 11px;font-size:12px}table{min-width:900px}.section-head h2{font-size:16px}}

/* UniTask responsive messenger refresh: restrained icons, touch-friendly mobile layout. */
.chat-page-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:0 0 20px}.chat-page-heading h1{font:800 clamp(23px,2vw,30px) Manrope;margin:8px 0 5px;letter-spacing:-.7px}.chat-page-heading p{margin:0;color:var(--muted)}.chat-secure-label{display:inline-flex;align-items:center;gap:7px;color:#59718b;font-size:11px;font-weight:700;background:#fff;border:1px solid var(--line);border-radius:999px;padding:9px 12px}.chat-secure-label svg,.contact-search svg,.chat-back svg,.chat-file svg,.attach-btn svg,.send-btn svg,.chat-list-empty svg,.chat-empty-icon svg,.chat-no-selection>span svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.chat-layout{height:min(720px,calc(100vh - 230px));min-height:500px;grid-template-columns:minmax(280px,340px) minmax(0,1fr);border-radius:16px}.chat-list-heading{display:flex;align-items:center;justify-content:space-between;padding:17px 18px 12px}.chat-list-heading h2{font:800 16px Manrope;margin:0}.chat-list-heading>span{font-size:11px;color:#6c7f94;background:#f0f4f8;padding:4px 8px;border-radius:999px}.contact-search{display:flex;align-items:center;gap:9px;margin:0 12px 10px;padding:0 12px;border:1px solid var(--line);border-radius:10px;background:#f8fafc}.contact-search svg{color:#8393a5;flex-shrink:0}.contact-search input{width:100%;min-width:0;padding:11px 0;border:0;background:transparent;outline:0;font-size:12px}.contact-list{padding:0 7px 8px}.contact{position:relative;display:flex;align-items:center;gap:11px;padding:12px 10px;border:0;border-radius:11px;margin:2px 0;min-width:0;transition:background .15s}.contact.active,.contact:hover{background:#edf5ff}.contact-avatar,.chat-header-avatar{width:43px;height:43px;border-radius:50%;background:#e5edf7;color:#315c88;font-size:14px}.contact-copy{flex:1;min-width:0}.contact-copy strong{font-size:12px;font-weight:750;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.contact-copy small{display:block;max-width:100%;font-size:11px;color:#7d8ca0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-top:5px}.contact-meta{align-self:stretch;display:flex;flex-direction:column;align-items:flex-end;justify-content:center;gap:6px;flex-shrink:0}.contact-meta time{font-size:10px;color:#8795a6}.unread-count{display:grid;place-items:center;min-width:19px;height:19px;padding:0 5px;border-radius:999px;background:#2675d8;color:white;font-size:10px}.chat-list-empty{display:flex;flex-direction:column;align-items:center;text-align:center;gap:10px;padding:45px 20px;color:#8190a3}.chat-list-empty svg{width:28px;height:28px;color:#7d9cbd}.chat-list-empty strong{font-size:12px;color:#4a6078}.chat-list-empty span{font-size:11px;line-height:1.6}.chat-window{background:#fbfcfe}.chat-header{min-height:72px;padding:12px 19px;background:#fff;gap:12px}.chat-back{display:none;width:36px;height:36px;align-items:center;justify-content:center;border-radius:10px;color:#526a84}.chat-back:hover{background:#eef4fa}.chat-header-avatar{width:42px;height:42px}.chat-header-copy{min-width:0}.chat-header-copy strong{font-size:13px;font-weight:800}.chat-header-copy small{font-size:11px}.chat-header-status{margin-left:auto;display:flex;align-items:center;gap:7px;font-size:10px;color:#6c8096}.chat-header-status i{width:7px;height:7px;border-radius:50%;background:#2eaf7b}.chat-body{padding:22px clamp(12px,3vw,34px);gap:12px;background-color:#f4f7fb;background-image:radial-gradient(#d8e2ee 0.65px,transparent .65px);background-size:17px 17px}.message-bubble{max-width:min(78%,560px);font-size:13px;padding:11px 13px;border-radius:14px 14px 14px 4px}.mine .message-bubble{border-radius:14px 14px 4px 14px;background:#e6f1ff;border-color:#d5e5f8}.message-text{white-space:normal;overflow-wrap:anywhere}.message-text br{line-height:1.8}.message-bubble small{font-size:10px}.chat-file{display:flex;align-items:center;gap:8px;max-width:100%;font-size:12px;overflow-wrap:anywhere}.chat-file svg{flex-shrink:0;color:#3477b8}.chat-empty,.chat-no-selection{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:9px;margin:auto;padding:25px;color:#7d8da0}.chat-empty-icon,.chat-no-selection>span{width:54px;height:54px;border-radius:16px;background:#eaf2fb;display:grid;place-items:center;color:#447db7;margin-bottom:5px}.chat-empty-icon svg,.chat-no-selection>span svg{width:25px;height:25px}.chat-empty strong,.chat-no-selection h2{font:800 16px Manrope;color:#344d68;margin:0}.chat-empty>span:last-child,.chat-no-selection p{max-width:290px;font-size:12px;line-height:1.7;margin:0;color:#8190a3}.chat-no-selection{height:100%}.chat-compose{gap:10px;padding:13px 15px;background:#fff}.attach-btn,.send-btn{width:42px;height:42px;flex-shrink:0}.attach-btn{background:#f0f5fb;color:#54718e}.attach-btn svg{width:20px;height:20px}.send-btn{background:#236fc2;color:#fff;box-shadow:0 5px 12px #236fc225}.send-btn svg{width:18px;height:18px}.compose-input-wrap{flex:1;min-width:0}.chat-compose input[name=text]{width:100%;border:1px solid #e0e7ef;border-radius:12px;padding:12px 14px;background:#f9fbfd;font-size:13px}.chat-compose input[name=text]:focus{border-color:#8cb7e4;outline:3px solid #e3effc}.compose-file{padding:4px 8px 0;font-size:10px;overflow-wrap:anywhere}.chat-layout.list-only .chat-window{display:none}.chat-layout.list-only{grid-template-columns:1fr}.chat-layout.list-only .chat-contacts{border-right:0}.chat-layout.list-only .contact{padding:14px 12px}.chat-layout.list-only .contact-copy strong{font-size:13px}.chat-layout.list-only .contact-copy small{font-size:12px}.chat-layout.list-only .contact-avatar{width:48px;height:48px}
@media(max-width:760px){.chat-page-heading{margin-bottom:14px}.chat-page-heading h1{font-size:23px}.chat-page-heading p{font-size:12px}.chat-secure-label{font-size:0;padding:9px}.chat-secure-label svg{width:17px;height:17px}.chat-layout{height:calc(100dvh - 190px);min-height:400px;grid-template-columns:minmax(0,1fr);border-radius:13px}.chat-layout.has-selected{grid-template-columns:minmax(0,1fr)}.chat-layout.has-selected .chat-contacts{display:none}.chat-layout.has-selected .chat-window{display:flex}.chat-layout.has-selected .chat-back{display:flex}.chat-layout.list-only .chat-contacts{display:flex}.chat-list-heading{padding:15px 15px 12px}.contact-search{margin:0 10px 8px}.contact-list{padding:0 6px 7px}.contact{padding:12px 9px}.contact-avatar{width:44px;height:44px}.chat-header{min-height:64px;padding:9px 10px;gap:8px}.chat-header-avatar{width:39px;height:39px}.chat-header-status{font-size:0}.chat-body{padding:14px 9px;gap:9px}.message-bubble{max-width:88%;font-size:13px;padding:10px 11px}.chat-compose{padding:9px;gap:7px}.attach-btn,.send-btn{width:39px;height:39px}.chat-compose input[name=text]{padding:11px 12px;font-size:13px}.chat-no-selection{display:none}.chat-layout.list-only .chat-no-selection{display:flex}}
@media(max-width:380px){.chat-page-heading p{max-width:230px}.contact-meta time{font-size:9px}.contact{gap:8px}.contact-avatar{width:40px;height:40px}.chat-header-copy strong{font-size:12px}}

/* UniTask chat polish: explicit SVG sizing prevents browser-default giant black icons. */
.chat-page-heading svg,
.chat-secure-label svg,
.contact-search svg,
.chat-back svg,
.chat-file svg,
.attach-btn svg,
.send-btn svg,
.chat-list-empty svg,
.chat-empty-icon svg,
.chat-no-selection>span svg {
  display:block !important;
  width:18px !important;
  height:18px !important;
  max-width:18px !important;
  max-height:18px !important;
  fill:none !important;
  stroke:currentColor !important;
  stroke-width:1.7 !important;
  stroke-linecap:round !important;
  stroke-linejoin:round !important;
  flex:0 0 18px;
}
.chat-contacts .avatar,
.chat-header .avatar,
.chat-layout .contact-avatar,
.chat-layout .chat-header-avatar { display:none !important; }
.chat-file.compact-file {
  display:inline-flex;
  align-items:center;
  gap:8px;
  max-width:min(100%, 280px);
  width:fit-content;
  padding:7px 10px;
  margin-top:5px;
  border:1px solid #dce7f3;
  border-radius:9px;
  background:#fff;
  color:#315f8d;
  text-decoration:none;
  font-size:11px;
  line-height:1.35;
  overflow:hidden;
}
.mine .chat-file.compact-file { background:#f7fbff; }
.chat-file.compact-file svg { width:16px !important;height:16px !important;max-width:16px !important;max-height:16px !important;flex-basis:16px; }
.chat-file.compact-file span { display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0; }
.chat-compose .send-btn:disabled { opacity:.55;cursor:wait; }
.chat-layout { min-height:0; }
@media(max-width:760px) {
  .chat-layout { height:calc(100dvh - 190px);min-height:360px; }
  .chat-file.compact-file { max-width:min(78vw,260px); }
}

/* Chat list rows: visually separated, consistent with a professional messaging inbox. */
.chat-list-heading { border-bottom:1px solid var(--line); }
.contact-list { padding:4px 10px 10px; }
.contact-list .contact {
  display:flex;
  width:100%;
  min-height:68px;
  padding:13px 12px;
  margin:0;
  border:0;
  border-bottom:1px solid #edf1f6;
  border-radius:0;
  background:transparent;
  text-align:left;
}
.contact-list .contact:last-child { border-bottom:0; }
.contact-list .contact:hover { background:#f5f9fe; }
.contact-list .contact.active { background:#edf5ff; box-shadow:inset 3px 0 0 #2675d8; }
.contact-list .contact-copy strong { display:block; color:#203b58; line-height:1.4; }
.contact-list .contact-copy small { line-height:1.45; }
.contact-list .contact-meta time { white-space:nowrap; }
.contact-list .contact[hidden] { display:none !important; }
@media(max-width:760px) {
  .contact-list { padding:2px 8px 8px; }
  .contact-list .contact { min-height:66px; padding:12px 10px; }
}

/* UniTask improvements: active navigation, receipts, and push prompt */
.nav-link:first-of-type{background:transparent;color:#61738a}.nav-link.active{background:#edf5ff;color:#1e69bb}.message-status{display:inline-block;margin-left:6px;font-size:11px;font-weight:800;letter-spacing:-2px;color:#8194a8}.message-status.read{color:#2385dc}.push-prompt{font-weight:700;font-size:13px}.task-section{margin:26px 0}.task-section-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 13px}.task-section-heading h2{font:800 17px Manrope;margin:0}.task-section-heading span{font-size:11px;color:#647a92;background:#eaf2fb;border-radius:999px;padding:6px 10px}.task-section.completed .task-card{opacity:.9}

.brand-logo{display:block;width:164px;height:54px;object-fit:contain;object-position:left center}.brand>span:last-child{display:none}
@media(max-width:640px){.brand-logo{width:125px;height:45px}}
