:root { --ink:#151515; --muted:#747474; --line:#e7e5df; --paper:#f6f5f1; --white:#fff; --orange:#f05a32; --green:#2e8b65; --blue:#315fdd; }
*{box-sizing:border-box} html,body{margin:0;min-height:100%;background:var(--paper);color:var(--ink);font-family:"Be Vietnam Pro",Arial,sans-serif} button,input,select,textarea{font:inherit} button{color:inherit} button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid rgba(49,95,221,.22);outline-offset:2px}
.app-shell{min-height:100vh}.sidebar{position:fixed;inset:0 auto 0 0;width:248px;padding:26px 18px 22px;background:#181818;color:#fff;display:flex;flex-direction:column;z-index:30}.brand{display:flex;align-items:center;gap:12px;padding:0 10px 28px;font-size:13px;line-height:1.25;letter-spacing:.08em}.brand b{font-size:16px;letter-spacing:.01em}.brand-mark{width:36px;height:36px;border-radius:10px;background:#fff;color:#151515;display:inline-grid;place-items:center;font-size:22px;font-weight:800;box-shadow:inset 0 0 0 1px #ddd}.brand-mark img{display:block;width:78%;height:78%;object-fit:contain;transform:translate(-4%,-2%)}.nav-list{display:grid;gap:5px}.nav-item{width:100%;border:0;background:transparent;color:#a9a9a9;border-radius:12px;padding:12px 14px;display:flex;align-items:center;gap:12px;cursor:pointer;text-align:left;font-size:14px;font-weight:600}.nav-item:hover{background:#242424;color:#fff}.nav-item.active{background:#fff;color:#151515}.nav-icon{width:22px;text-align:center;font-size:19px}.sidebar-spacer{flex:1}.import-card{display:flex;align-items:center;gap:10px;border:1px solid #343434;background:#212121;border-radius:12px;padding:12px;margin-bottom:12px}.import-card>span{display:grid;place-items:center;width:28px;height:28px;border-radius:8px;background:#234c39;color:#87e5b4}.import-card b,.import-card small{display:block}.import-card b{font-size:12px}.import-card small{font-size:10px;color:#a3a3a3;margin-top:2px}.role-card{border-top:1px solid #303030;padding:15px 4px 0}.role-card label{display:block;color:#8d8d8d;font-size:10px;text-transform:uppercase;letter-spacing:.12em;margin:0 6px 8px}.role-card select{width:100%;border:1px solid #3a3a3a;background:#242424;color:#fff;border-radius:10px;padding:10px 11px;font-size:12px}
.main-content{min-height:100vh;margin-left:248px}.topbar{height:76px;border-bottom:1px solid var(--line);background:rgba(255,255,255,.88);backdrop-filter:blur(14px);display:flex;align-items:center;justify-content:space-between;padding:0 34px;position:sticky;top:0;z-index:20}.mobile-brand{display:none}.global-search{width:min(390px,38vw);display:flex;align-items:center;gap:10px;background:#f3f2ee;border:1px solid #e9e7e1;border-radius:12px;padding:10px 14px}.global-search span,.filter-search span{font-size:20px;color:#777}.global-search input,.filter-search input{border:0;background:transparent;outline:0;width:100%;font-size:13px}.top-actions,.manager-chip{display:flex;align-items:center}.top-actions{gap:16px}.icon-button{position:relative;width:40px;height:40px;border:1px solid var(--line);border-radius:12px;background:#fff;font-size:20px;cursor:pointer}.icon-button i{position:absolute;top:-6px;right:-6px;background:var(--orange);color:#fff;border:2px solid #fff;border-radius:999px;min-width:19px;height:19px;font:700 10px/15px var(--font-be-vietnam);font-style:normal}.manager-chip{gap:9px}.manager-chip b,.manager-chip small{display:block}.manager-chip b{font-size:12px}.manager-chip small{font-size:10px;color:#888;margin-top:2px}.page-wrap{padding:34px;max-width:1530px;margin:0 auto}.page-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:30px;margin-bottom:24px}.page-heading.compact{align-items:center}.eyebrow,.section-kicker{font-size:10px;font-weight:800;letter-spacing:.14em;color:#8a8984;margin:0 0 9px;text-transform:uppercase}.page-heading h1{font-size:32px;line-height:1.15;letter-spacing:-.035em;margin:0 0 8px}.subheading{font-size:13px;color:var(--muted);margin:0}.primary-button,.secondary-button{border:0;border-radius:11px;padding:11px 16px;font-size:12px;font-weight:700;cursor:pointer;white-space:nowrap}.primary-button{background:#171717;color:#fff;box-shadow:0 3px 10px rgba(0,0,0,.12)}.primary-button:hover{background:#333;transform:translateY(-1px)}.primary-button.wide{width:100%;padding:13px}.secondary-button{background:#f0efeb;color:#444}.alert-strip{border:1px solid #f6c9bb;background:#fff6f2;width:100%;border-radius:14px;padding:13px 16px;display:flex;align-items:center;text-align:left;gap:12px;margin-bottom:18px;cursor:pointer}.alert-icon{width:30px;height:30px;display:grid;place-items:center;border-radius:9px;background:#f6d6ca;color:#b63d1d;font-weight:800}.alert-strip b,.alert-strip small{display:block}.alert-strip b{font-size:12px}.alert-strip small{font-size:10px;color:#8b6558;margin-top:2px}.alert-strip em{margin-left:auto;color:#b94425;font-style:normal;font-size:11px;font-weight:700}.kpi-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-bottom:18px}.kpi-card{background:#fff;border:1px solid var(--line);border-radius:16px;padding:18px;min-height:138px;box-shadow:0 4px 14px rgba(30,26,15,.025)}.kpi-label{display:flex;align-items:center;gap:8px;font-size:11px;font-weight:700;color:#555}.kpi-dot{width:25px;height:25px;border-radius:8px;display:grid;place-items:center;font-weight:800}.kpi-dot.black{background:#ededeb;color:#222}.kpi-dot.orange{background:#fff0e8;color:#c95630}.kpi-dot.green{background:#e6f5ed;color:#24724f}.kpi-dot.blue{background:#e9efff;color:#315fdd}.kpi-card>strong,.progress-kpi strong{display:block;font-size:32px;line-height:1;margin:18px 0 8px;letter-spacing:-.05em}.kpi-card>small,.progress-kpi small{color:#8a8984;font-size:10px}.kpi-card>small b{color:#2e8b65}.progress-kpi{display:flex;align-items:center;justify-content:space-between}.progress-ring{--progress:180deg;width:68px;height:68px;border-radius:50%;background:conic-gradient(#315fdd var(--progress),#ececf0 0);display:grid;place-items:center;position:relative}.progress-ring:before{content:"";position:absolute;inset:7px;border-radius:50%;background:#fff}.progress-ring span{position:relative;font-size:12px;font-weight:800}.dashboard-grid{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(300px,.75fr);gap:18px}.panel{background:#fff;border:1px solid var(--line);border-radius:17px;box-shadow:0 4px 16px rgba(33,30,20,.025)}.panel-heading{padding:19px 20px 14px;display:flex;align-items:center;justify-content:space-between}.panel-heading h2{font-size:17px;margin:3px 0 0;letter-spacing:-.02em}.panel-heading button{border:0;background:transparent;color:#555;font-size:10px;font-weight:700;cursor:pointer}.focus-list{border-top:1px solid #efeee9}.focus-row{border:0;border-bottom:1px solid #efeee9;background:#fff;width:100%;min-height:67px;padding:10px 15px 10px 0;display:grid;grid-template-columns:4px 30px minmax(190px,1fr) 90px 105px 16px;align-items:center;gap:10px;text-align:left;cursor:pointer}.focus-row:last-child{border-bottom:0;border-radius:0 0 17px 17px}.focus-row:hover,.task-table-row:hover{background:#fafaf8}.priority-bar{height:38px;border-radius:0 4px 4px 0}.priority-cao{background:#eb6846!important;color:#aa3c20!important}.priority-trung-bình{background:#e7b649!important;color:#815f0b!important}.priority-thấp{background:#76a8a0!important;color:#275e57!important}.check-circle{width:23px;height:23px;border:1.5px solid #d2d0c9;border-radius:50%;display:grid;place-items:center;font-size:11px;color:#fff;background:#fff}.focus-copy b,.focus-copy small{display:block}.focus-copy b{font-size:11px;line-height:1.45}.focus-copy small{color:#8a8984;font-size:9px;margin-top:4px;display:flex;align-items:center;gap:5px}.focus-progress>span{display:block;text-align:right;font-size:10px;font-weight:700;margin-bottom:5px}.focus-progress>i,.team-copy>i,.table-progress>i,.person-metric>i{display:block;height:4px;background:#ecebe7;border-radius:999px;overflow:hidden}.focus-progress>i em,.team-copy>i em,.table-progress>i em,.person-metric>i em{display:block;height:100%;background:#242424;border-radius:999px}.due-badge{justify-self:start;border-radius:7px;padding:6px 8px;font-size:9px;font-weight:700;background:#f1f0ec;color:#666;white-space:nowrap}.due-badge.danger{background:#ffede8;color:#b94225}.due-badge.warning{background:#fff2d9;color:#9a6412}.due-badge.done{background:#e8f5ed;color:#24724f}.due-badge small{display:block;font-size:8px;font-weight:500;margin-top:2px;opacity:.7}.row-arrow{font-size:22px;color:#bbb}.team-list{border-top:1px solid #efeee9}.team-row{border:0;border-bottom:1px solid #efeee9;background:#fff;width:100%;padding:14px 16px;display:grid;grid-template-columns:38px 1fr auto;gap:10px;align-items:center;text-align:left;cursor:pointer}.team-row:last-child{border-bottom:0;border-radius:0 0 17px 17px}.team-row:hover{background:#fafaf8}.avatar{width:37px;height:37px;border-radius:12px;display:inline-grid;place-items:center;font-size:10px;font-weight:800;flex:0 0 auto}.avatar-small{width:23px;height:23px;border-radius:7px;font-size:7px}.avatar-blue{background:#dfe8ff;color:#234cbe}.avatar-violet{background:#eee4ff;color:#6740b8}.avatar-amber{background:#fff0ce;color:#9a6500}.avatar-mint{background:#dff4ec;color:#247354}.avatar-dark{background:#ececec;color:#333}.team-copy b,.team-copy small{display:block}.team-copy b{font-size:11px}.team-copy small{font-size:8px;color:#888;margin:3px 0 8px}.team-stat{text-align:right}.team-stat b,.team-stat small{display:block}.team-stat b{font-size:13px}.team-stat small{font-size:8px;color:#888;margin-top:2px}
.tasks-page,.people-page{animation:fade .2s ease}.filter-bar{display:flex;gap:9px;margin-bottom:14px}.filter-search{flex:1;display:flex;align-items:center;gap:8px;border:1px solid var(--line);border-radius:11px;background:#fff;padding:9px 12px}.filter-bar select{border:1px solid var(--line);background:#fff;border-radius:11px;padding:0 12px;font-size:11px;min-width:165px}.clear-button{border:0;background:transparent;color:#777;font-size:10px;font-weight:700;cursor:pointer}.task-table{overflow:hidden}.task-table-head,.task-table-row{display:grid;grid-template-columns:minmax(310px,1.55fr) 100px 120px 120px 130px 18px;gap:14px;align-items:center}.task-table-head{padding:12px 18px;background:#f0efeb;border-bottom:1px solid var(--line);font-size:9px;font-weight:800;color:#777;text-transform:uppercase;letter-spacing:.06em}.task-table-row{width:100%;border:0;border-bottom:1px solid #efeee9;background:#fff;padding:12px 18px;text-align:left;cursor:pointer;min-height:70px}.task-table-row:last-child{border-bottom:0}.task-name-cell b,.task-name-cell small{display:block}.task-name-cell b{font-size:11px;line-height:1.4;margin:5px 0 3px}.task-name-cell small{font-size:8px;color:#888}.priority-pill{display:inline-block;width:max-content;border-radius:5px;padding:3px 6px;font-size:7px;font-weight:800;text-transform:uppercase;background:#eee!important;color:#555!important;font-style:normal}.priority-pill.priority-cao{background:#ffebe6!important;color:#b94529!important}.priority-pill.priority-trung-bình{background:#fff3d6!important;color:#926413!important}.priority-pill.priority-thấp{background:#e5f4f0!important;color:#36776e!important}.owner-cell{display:flex;align-items:center;gap:7px}.owner-cell b{font-size:10px}.table-progress b{display:block;font-size:10px;margin-bottom:6px}.status-badge{justify-self:start;border-radius:999px;padding:6px 8px;font-size:8px;font-weight:700;background:#eee;color:#555;white-space:nowrap}.status-hoàn-thành{background:#e5f4eb;color:#29704f}.status-đang-thực-hiện{background:#e8eeff;color:#3156b5}.status-chờ-phản-hồi{background:#fff0d6;color:#946114}.empty-state{padding:60px;display:grid;place-items:center;color:#888}.empty-state span{font-size:30px}.empty-state b{font-size:13px;margin:10px 0 4px}.empty-state small{font-size:10px}.people-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:15px}.person-card{padding:20px}.person-top{display:flex;align-items:center;gap:11px}.person-top h2{font-size:15px;margin:0}.person-top p{font-size:9px;color:#888;margin:3px 0 0}.health-dot{margin-left:auto;background:#e8f5ed;color:#29704f;padding:5px 8px;border-radius:999px;font-size:8px;font-weight:700}.health-dot.late{background:#ffebe6;color:#b94529}.person-metric{margin:25px 0 18px}.person-metric strong{font-size:27px}.person-metric span{font-size:9px;color:#888;margin-left:7px}.person-metric i{height:7px;margin-top:10px}.person-metric i em{background:#315fdd}.person-stats{border-top:1px solid #eee;border-bottom:1px solid #eee;display:grid;grid-template-columns:repeat(3,1fr);padding:14px 0}.person-stats span+span{border-left:1px solid #eee;padding-left:16px}.person-stats b,.person-stats small{display:block}.person-stats b{font-size:15px}.person-stats small{font-size:8px;color:#888;margin-top:3px}.person-card>button{border:0;background:transparent;padding:14px 0 0;color:#444;font-size:9px;font-weight:700;cursor:pointer}.service-card{grid-column:1/-1;margin-top:16px;padding:25px;display:flex;align-items:center;gap:25px;background:#191919;color:#fff;border-color:#191919}.service-number{font-size:43px;font-weight:800;color:#f0bd47;letter-spacing:-.08em}.service-card h2{font-size:18px;margin:4px 0 7px}.service-card p{font-size:10px;color:#aaa;margin:0;max-width:750px;line-height:1.6}
.modal-backdrop{position:fixed;inset:0;background:rgba(20,20,20,.45);backdrop-filter:blur(3px);z-index:80;display:flex;justify-content:flex-end;animation:fade .18s ease}.modal-backdrop.centered{justify-content:center;align-items:center;padding:22px}.task-drawer{width:min(470px,100vw);height:100%;background:#fff;padding:27px;overflow-y:auto;position:relative;animation:slide .25s ease}.drawer-close{position:absolute;right:20px;top:18px;width:32px;height:32px;border:0;border-radius:9px;background:#f1f0ec;font-size:20px;cursor:pointer}.drawer-head{padding:20px 35px 20px 0;border-bottom:1px solid #eee}.drawer-head h2{font-size:22px;line-height:1.25;letter-spacing:-.03em;margin:10px 0 6px}.drawer-head p{font-size:10px;color:#888;margin:0}.drawer-people{display:grid;grid-template-columns:1fr 1fr;border-bottom:1px solid #eee}.drawer-people>span{padding:15px 0}.drawer-people>span+span{border-left:1px solid #eee;padding-left:18px}.drawer-people small,.drawer-people b{display:block}.drawer-people small,.detail-block small,.detail-grid small,.activity>small{font-size:8px;color:#888;text-transform:uppercase;letter-spacing:.08em}.drawer-people b{font-size:11px;margin-top:7px;display:flex;align-items:center;gap:7px}.detail-block{padding:18px 0}.detail-block p{font-size:11px;line-height:1.65;color:#555;margin:7px 0 0}.detail-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-bottom:18px}.detail-grid>span{background:#f5f4f0;border-radius:10px;padding:12px}.detail-grid b{display:block;font-size:10px;margin-top:6px}.link-label{color:#315fdd}.progress-form{background:#f5f4f0;border-radius:14px;padding:17px}.form-title{display:flex;justify-content:space-between;align-items:center}.form-title small{font-size:8px;color:#777}.form-title h3{font-size:14px;margin:3px 0 0}.form-title>b{font-size:20px}.progress-form>label,.form-grid label{display:block;font-size:9px;font-weight:700;margin-top:15px}.progress-form input[type=range]{width:100%;accent-color:#171717;margin-top:8px}.progress-form select,.progress-form textarea,.form-grid input,.form-grid select,.form-grid textarea{width:100%;border:1px solid #dedcd5;border-radius:9px;background:#fff;padding:10px;margin-top:6px;font-size:10px}.progress-form textarea,.form-grid textarea{resize:vertical}.activity{padding:20px 4px}.activity p{font-size:10px}.activity-dot{display:inline-block;width:7px;height:7px;background:#2e8b65;border-radius:50%;margin-right:6px}.activity blockquote{margin:10px 0 0;background:#f5f4f0;border-left:3px solid #bbb;border-radius:0 8px 8px 0;padding:10px;font-size:10px;color:#666}.add-modal{width:min(620px,100%);max-height:92vh;overflow:auto;background:#fff;border-radius:18px;padding:26px;position:relative;animation:pop .2s ease}.add-modal h2{font-size:24px;margin:0 0 20px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 14px}.span-2{grid-column:1/-1}.modal-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:20px}.toast{position:fixed;right:28px;bottom:28px;z-index:100;background:#181818;color:#fff;border-radius:12px;padding:12px 16px;display:flex;align-items:center;gap:9px;font-size:11px;font-weight:700;box-shadow:0 12px 40px rgba(0,0,0,.22);animation:pop .2s ease}.toast span{color:#81e2b3}.mobile-nav{display:none}
.primary-button:disabled{opacity:.55;cursor:wait;transform:none}.activity-item{padding:2px 0 10px;border-bottom:1px solid #efeee9}.activity-item:last-child{border-bottom:0}.activity-item blockquote{margin-top:7px}
.account-card b,.account-card small{display:block;padding:0 6px}.account-card b{font-size:12px}.account-card small{font-size:9px;color:#999;margin-top:3px;overflow:hidden;text-overflow:ellipsis}.account-card span{display:inline-block;margin:10px 6px 0;padding:5px 7px;border-radius:6px;background:#273d31;color:#8ee0b2;font-size:8px;font-weight:700}.account-card a{display:block;margin:10px 6px 0;color:#aaa;font-size:9px;text-decoration:none}.account-card a:hover{color:#fff}.employee-dashboard{grid-template-columns:1fr}.access-panel{overflow:hidden;margin-bottom:14px}.secure-label{font-size:9px;color:#2e8b65;font-weight:700}.member-list{border-top:1px solid #efeee9}.member-row{display:grid;grid-template-columns:42px minmax(180px,1fr) 110px 82px 80px 160px;gap:12px;align-items:center;padding:13px 18px;border-bottom:1px solid #efeee9}.member-row:last-child{border-bottom:0}.member-row.disabled{opacity:.55;background:#fafaf8}.member-identity b,.member-identity small{display:block}.member-identity b{font-size:11px}.member-identity small{font-size:9px;color:#888;margin-top:3px}.permission-badge,.member-status{justify-self:start;border-radius:999px;padding:6px 8px;font-size:8px;font-weight:700}.permission-badge.admin{background:#e9efff;color:#3156b5}.permission-badge.employee{background:#f0efeb;color:#555}.member-task-count b,.member-task-count small{display:block}.member-task-count b{font-size:13px}.member-task-count small{font-size:8px;color:#888}.member-status{background:#f0efeb;color:#777}.member-status.active{background:#e5f4eb;color:#29704f}.member-actions{display:flex;justify-content:flex-end;gap:6px}.member-actions button{border:1px solid #dedcd5;background:#fff;border-radius:8px;padding:7px 8px;font-size:8px;font-weight:700;cursor:pointer}.member-actions button.lock{color:#b54429}.member-actions button.unlock{color:#29704f}.member-actions button:disabled{opacity:.5}.permission-note{display:flex;gap:12px;align-items:flex-start;background:#eef2ff;border:1px solid #dce4ff;border-radius:13px;padding:14px 16px;margin-bottom:16px}.permission-note>span{width:26px;height:26px;border-radius:8px;background:#315fdd;color:#fff;display:grid;place-items:center;font-size:11px;font-weight:800}.permission-note b{font-size:10px}.permission-note p{font-size:9px;line-height:1.55;color:#5e6680;margin:4px 0 0}.performance-grid{margin-top:0}.modal-help{font-size:10px;color:#777;margin:-12px 0 4px}.permission-fieldset{border:0;padding:0;margin:16px 0 0}.permission-fieldset legend{font-size:9px;font-weight:800;color:#222}.permission-fieldset>p{font-size:9px;color:#777;margin:5px 0 0}.permission-check-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:10px}.permission-check{display:flex!important;align-items:flex-start;gap:10px;border:1px solid #dedcd5;border-radius:11px;padding:12px;margin:0!important;background:#fff;cursor:pointer}.permission-check:hover{border-color:#9eb0e8}.permission-check:has(input:checked){border-color:#88a2ea;background:#f4f7ff;box-shadow:0 0 0 2px rgba(49,95,221,.08)}.permission-check input{width:18px!important;height:18px;margin:1px 0 0!important;accent-color:#315fdd;flex:0 0 auto}.permission-check span b,.permission-check span small{display:block}.permission-check span b{font-size:10px}.permission-check span small{font-size:8px;color:#777;line-height:1.45;margin-top:4px}.permission-preview{display:flex;align-items:center;gap:10px;background:#f4f6ff;border-radius:11px;padding:12px;margin-top:16px}.permission-preview>span{width:32px;height:32px;border-radius:9px;background:#dfe8ff;color:#3156b5;display:grid;place-items:center;font-size:9px;font-weight:800}.permission-preview b,.permission-preview small{display:block}.permission-preview b{font-size:10px}.permission-preview small{font-size:8px;color:#777;margin-top:3px}.access-denied{min-height:100vh;display:grid;place-items:center;padding:24px;background:#f6f5f1}.access-denied section{width:min(520px,100%);background:#fff;border:1px solid #e4e1d8;border-radius:22px;padding:38px;box-shadow:0 20px 60px rgba(25,25,25,.08)}.access-lock{width:48px;height:48px;border-radius:13px;background:#181818;color:#fff;display:grid;place-items:center;font-size:24px;font-weight:800;margin-bottom:24px}.access-denied h1{font-size:27px;letter-spacing:-.035em;margin:0 0 12px}.access-denied p{font-size:12px;line-height:1.7;color:#666}.access-denied a{display:inline-block;margin-top:10px;padding:11px 14px;border-radius:10px;background:#181818;color:#fff;text-decoration:none;font-size:10px;font-weight:700}
.attachment-chip{display:inline-block;margin-left:5px;border-radius:5px;padding:3px 6px;background:#e9efff;color:#3156b5;font-size:7px;font-weight:800;font-style:normal}.empty-link{color:#999}.attachment-link{display:inline-block;margin-top:6px;color:#315fdd;text-decoration:none;font-size:10px;font-weight:800}.attachment-link:hover{text-decoration:underline}.attachment-form{display:grid;grid-template-columns:1fr auto;gap:8px;align-items:end;background:#eef2ff;border:1px solid #dfe6ff;border-radius:12px;padding:12px;margin:-6px 0 14px}.attachment-form label{font-size:9px;font-weight:700}.attachment-form input{display:block;width:100%;border:1px solid #d4dcf8;border-radius:8px;background:#fff;padding:9px;margin-top:6px;font-size:9px}.attachment-form button{height:33px;border:0;border-radius:8px;background:#315fdd;color:#fff;padding:0 11px;font-size:9px;font-weight:800;cursor:pointer}.attachment-form button:disabled{opacity:.55;cursor:wait}
.deadline-form{display:grid;grid-template-columns:minmax(120px,.65fr) 1fr auto;gap:8px;align-items:end;background:#fff8e8;border:1px solid #f0dfb5;border-radius:12px;padding:12px;margin:-6px 0 12px}.deadline-form label{font-size:9px;font-weight:700}.deadline-form input{display:block;width:100%;border:1px solid #e8d5a7;border-radius:8px;background:#fff;padding:9px;margin-top:6px;font-size:9px}.deadline-form button{height:33px;border:0;border-radius:8px;background:#8b6518;color:#fff;padding:0 11px;font-size:9px;font-weight:800;cursor:pointer;white-space:nowrap}.deadline-form button:disabled{opacity:.55;cursor:wait}
.editor-page{animation:fade .2s ease}.editor-heading{align-items:center}.editor-actions{display:flex;gap:9px;flex-wrap:wrap;justify-content:flex-end}.editor-note{display:flex;gap:12px;align-items:flex-start;background:#fff8e8;border:1px solid #f0dfb5;border-radius:13px;padding:14px 16px;margin-bottom:16px}.editor-note>span{width:26px;height:26px;border-radius:8px;background:#8b6518;color:#fff;display:grid;place-items:center;font-size:11px;font-weight:800;flex:0 0 auto}.editor-note b{font-size:10px}.editor-note p{font-size:9px;line-height:1.55;color:#75643e;margin:4px 0 0}.bulk-editor-list{display:grid;gap:14px}.bulk-task-card{padding:0;overflow:hidden}.bulk-task-card.is-saving{opacity:.78}.bulk-card-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:13px 16px;background:#f0efeb;border-bottom:1px solid var(--line)}.bulk-card-head>span{display:flex;align-items:center;gap:8px}.bulk-card-head b{font-size:10px;text-transform:uppercase;letter-spacing:.08em}.bulk-card-head small{font-size:8px;color:#999}.editor-card-actions{display:flex;align-items:center;gap:8px}.save-task-button{padding:8px 11px;font-size:8px;min-width:105px}.delete-task-button{border:1px solid #f1c8be;background:#fff6f3;color:#ae4229;border-radius:8px;padding:7px 9px;font-size:8px;font-weight:800;cursor:pointer}.delete-task-button:hover{background:#ffebe6}.bulk-fields{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px 14px;padding:17px}.bulk-fields label{display:block;font-size:9px;font-weight:750;color:#555}.bulk-fields input,.bulk-fields select,.bulk-fields textarea{display:block;width:100%;border:1px solid #dedcd5;border-radius:9px;background:#fff;padding:10px;margin-top:6px;font-size:10px;color:#171717}.bulk-fields textarea{resize:vertical;line-height:1.55}.bulk-fields input:focus,.bulk-fields select:focus,.bulk-fields textarea:focus{border-color:#7895e7}.bulk-wide{grid-column:span 2}.bulk-full{grid-column:1/-1}.delete-confirm{width:min(440px,100%);background:#fff;border-radius:18px;padding:28px;position:relative;animation:pop .2s ease}.delete-confirm-icon{width:42px;height:42px;border-radius:12px;background:#ffebe6;color:#b94529;display:grid;place-items:center;font-size:20px;font-weight:900;margin-bottom:18px}.delete-confirm h2{font-size:23px;margin:0 0 10px}.delete-confirm>p:not(.eyebrow){font-size:11px;line-height:1.65;color:#666}.delete-confirm>p b{color:#222}.danger-button{border:0;border-radius:11px;padding:11px 16px;background:#b94529;color:#fff;font-size:10px;font-weight:800;cursor:pointer}.danger-button:disabled{opacity:.55;cursor:wait}
@keyframes fade{from{opacity:0}to{opacity:1}}@keyframes slide{from{transform:translateX(30px);opacity:0}to{transform:none;opacity:1}}@keyframes pop{from{transform:scale(.97);opacity:0}to{transform:scale(1);opacity:1}}
@media(max-width:1150px){.kpi-grid{grid-template-columns:repeat(2,1fr)}.dashboard-grid{grid-template-columns:1fr}.task-table-head,.task-table-row{grid-template-columns:minmax(250px,1.5fr) 90px 100px 110px 18px}.task-table-head span:nth-child(5),.task-table-row>span:nth-child(5){display:none}.member-row{grid-template-columns:42px minmax(180px,1fr) 110px 80px 160px}.member-task-count{display:none}}
@media(max-width:760px){.sidebar{display:none}.main-content{margin-left:0;padding-bottom:70px}.topbar{height:64px;padding:0 16px}.mobile-brand{display:flex;align-items:center;gap:7px;font-size:12px}.mobile-brand .brand-mark{width:30px;height:30px;font-size:18px;border:1px solid #ddd}.global-search{display:none}.manager-chip span{display:none}.page-wrap{padding:22px 14px}.page-heading{align-items:flex-start}.page-heading h1{font-size:25px}.subheading{font-size:11px;line-height:1.6}.primary-button{padding:10px 12px;font-size:10px}.alert-strip{align-items:flex-start}.alert-strip em{display:none}.kpi-grid{grid-template-columns:repeat(2,1fr);gap:9px}.kpi-card{padding:14px;min-height:125px}.kpi-card>strong,.progress-kpi strong{font-size:27px}.progress-ring{width:54px;height:54px}.dashboard-grid{display:block}.team-panel{margin-top:12px}.focus-row{grid-template-columns:4px 24px 1fr 68px 12px;padding-right:10px}.focus-progress{display:none}.focus-copy b{font-size:10px}.due-badge{font-size:8px}.filter-bar{display:grid;grid-template-columns:1fr 1fr}.filter-search{grid-column:1/-1}.filter-bar select{min-width:0;padding:9px 7px}.clear-button{display:none}.task-table-head{display:none}.task-table-row{display:grid;grid-template-columns:1fr auto;gap:8px;padding:14px}.task-table-row>.owner-cell,.task-table-row>.table-progress{display:none}.task-table-row>.due-badge{grid-column:1}.task-table-row>.status-badge{grid-column:2;grid-row:2}.task-table-row>.row-arrow{grid-column:2;grid-row:1}.people-grid{grid-template-columns:1fr}.service-card{margin-top:12px;align-items:flex-start}.service-number{font-size:34px}.form-grid{grid-template-columns:1fr}.span-2{grid-column:auto}.member-row{grid-template-columns:42px minmax(0,1fr) auto;gap:8px 10px;padding:14px}.member-row>.permission-badge{justify-self:end}.member-status{grid-column:2}.member-actions{grid-column:2/-1;justify-content:flex-start}.member-actions button{padding:8px 9px}.mobile-nav{position:fixed;display:grid;grid-template-columns:repeat(auto-fit,minmax(0,1fr));left:0;right:0;bottom:0;height:62px;background:rgba(255,255,255,.96);backdrop-filter:blur(12px);border-top:1px solid #ddd;z-index:50}.mobile-nav button{border:0;background:transparent;color:#999;display:grid;place-items:center;font-size:8px;padding:7px}.mobile-nav button span{font-size:17px}.mobile-nav button.active{color:#111;font-weight:800}.toast{left:16px;right:16px;bottom:76px;justify-content:center}.task-drawer{padding:22px}.drawer-head h2{font-size:20px}}
@media(max-width:480px){.attachment-form,.deadline-form{grid-template-columns:1fr}.attachment-form button,.deadline-form button{width:100%}}
@media(max-width:1150px){.bulk-fields{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.editor-heading{display:block}.editor-actions{justify-content:flex-start;margin-top:16px}.bulk-card-head{align-items:flex-start;flex-wrap:wrap}.editor-card-actions{width:100%}.save-task-button{flex:1}.bulk-fields{grid-template-columns:1fr}.bulk-wide,.bulk-full{grid-column:auto}.permission-check-grid{grid-template-columns:1fr}}
.bell-icon{width:20px;height:20px;display:block;margin:auto;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}.icon-button.has-unread{background:#171717;color:#fff;border-color:#171717;box-shadow:0 5px 16px rgba(23,23,23,.18)}.push-icon .bell-icon{width:22px;height:22px}.field .help{display:block;margin-top:6px;color:#777;font-size:8px;line-height:1.45;font-weight:500}

/* V11 — phân loại công việc, nhắc deadline và tổng quan điều hành */
body{font-size:14px}.page-heading h1{font-size:35px}.page-heading.compact h1{font-size:34px}.subheading{font-size:13px;line-height:1.65}.eyebrow,.section-kicker{font-size:10px}.panel-heading h2{font-size:17px}.panel-heading button,.panel-heading small{font-size:10px}.task-name-cell b{font-size:13px}.task-name-cell small{font-size:10px;line-height:1.55}.owner-cell b{font-size:11px}.status-badge,.due-badge{font-size:9px}.member-identity b{font-size:12px}.member-identity small{font-size:10px}.member-actions button{font-size:9px}.bulk-fields label,.progress-form>label,.form-grid label{font-size:10px}.bulk-fields input,.bulk-fields select,.bulk-fields textarea,.form-grid input,.form-grid select,.form-grid textarea{font-size:11px}.nav-item{font-size:15px}.account-card b{font-size:13px}.account-card small,.account-card a{font-size:10px}
.kind-pill{display:inline-flex;align-items:center;width:max-content;margin:0 6px 7px 0;padding:4px 7px;border-radius:6px;font-size:8px;font-weight:850;font-style:normal;text-transform:uppercase;letter-spacing:.035em}.kind-fixed{background:#eaf0ff;color:#3156b5}.kind-flexible{background:#fff3d7;color:#946414}.kind-urgent{background:#ffe7e1;color:#bd4329}.drawer-tags{display:flex;gap:6px;align-items:center;margin-bottom:9px}.drawer-tags .kind-pill,.drawer-tags .priority-pill{margin:0}
.urgent-button{border:1px solid #d74d31;border-radius:11px;padding:11px 15px;background:#fff0ec;color:#b43f27;font-size:10px;font-weight:850;cursor:pointer;white-space:nowrap}.urgent-button:hover{background:#ffe2da}.overview-actions{display:flex;gap:8px;justify-content:flex-end;flex-wrap:wrap}.overview-heading{align-items:flex-end}.executive-kpis{margin-bottom:16px}.urgent-kpi{border-color:#f0c4ba;background:linear-gradient(145deg,#fff 45%,#fff4f1)}.kpi-dot.red{color:#c34830}.overview-work-grid{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(300px,.8fr);gap:16px;margin-bottom:16px}.overview-work-grid .panel{min-width:0}.urgent-panel{overflow:hidden}.urgent-list{display:grid}.urgent-list>button{display:grid;grid-template-columns:30px minmax(0,1fr) auto;gap:10px;align-items:center;border:0;border-top:1px solid var(--line);background:#fff;padding:14px 16px;text-align:left;cursor:pointer}.urgent-list>button:hover{background:#fff8f5}.urgent-list>button>span{width:26px;height:26px;border-radius:8px;background:#ffe7e1;color:#c2472e;display:grid;place-items:center;font-weight:900}.urgent-list b,.urgent-list small{display:block}.urgent-list b{font-size:11px}.urgent-list small{font-size:9px;color:#888;margin-top:3px}.urgent-list em{font-size:11px;font-style:normal;font-weight:850}.overview-empty{padding:24px;color:#888;font-size:11px;text-align:center}.team-performance-panel{overflow:hidden}.team-performance-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));border-top:1px solid var(--line)}.team-performance-card{display:grid;grid-template-columns:38px minmax(0,1fr) auto;gap:10px;align-items:center;border:0;border-right:1px solid var(--line);background:#fff;padding:16px;text-align:left;cursor:pointer}.team-performance-card:hover{background:#fafaf8}.team-performance-card:nth-child(3n){border-right:0}.team-performance-card b,.team-performance-card small{display:block}.team-performance-card b{font-size:11px}.team-performance-card span>small{font-size:9px;color:#888;margin-top:3px}.team-performance-card>strong{font-size:18px;text-align:right}.team-performance-card>strong small{font-size:8px;margin-top:2px}.performance-good{color:#287653}.performance-warning{color:#a36b0d}.performance-danger{color:#bd4329}.performance-neutral{color:#777}
.scope-tabs{display:flex;gap:7px;margin-bottom:12px}.scope-tabs button{border:1px solid #dedcd5;background:#fff;border-radius:999px;padding:9px 13px;font-size:10px;font-weight:750;cursor:pointer}.scope-tabs button.active{background:#171717;border-color:#171717;color:#fff}.enhanced-filter{display:grid;grid-template-columns:minmax(220px,1fr) repeat(4,minmax(130px,auto)) auto}.urgent-task-section{margin:15px 0 18px}.urgent-task-section>div:first-child{display:flex;align-items:center;gap:10px;margin:0 2px 10px}.urgent-task-section>div:first-child>span{width:28px;height:28px;border-radius:8px;background:#c34830;color:#fff;display:grid;place-items:center;font-weight:900}.urgent-task-section b,.urgent-task-section small,.section-title-row b,.section-title-row small{display:block}.urgent-task-section b,.section-title-row b{font-size:13px}.urgent-task-section small,.section-title-row small{font-size:9px;color:#888;margin-top:2px}.urgent-task-section .task-table{border-color:#ecc4bb}.section-title-row{display:flex;align-items:center;justify-content:space-between;margin:0 2px 10px}.classification-help{border:1px dashed #d8d4c9;border-radius:9px;padding:10px}.classification-help span,.classification-help small{display:block}.classification-help span{font-size:9px;font-weight:800}.classification-help small{font-size:8px;line-height:1.5;color:#777;margin-top:4px}.bulk-card-head .kind-pill{margin:0 0 0 5px}.bulk-fields input:disabled{background:#f2f1ed;color:#aaa;cursor:not-allowed}
.create-task-modal{width:min(720px,100%)}.classification-preview{display:flex;align-items:flex-start;gap:10px;margin-top:15px;padding:12px 14px;border:1px solid #dce4ff;border-radius:11px;background:#f4f7ff}.classification-preview>span{width:28px;height:28px;border-radius:8px;background:#315fdd;color:#fff;display:grid;place-items:center;font-size:13px;font-weight:900;flex:0 0 auto}.classification-preview b,.classification-preview small{display:block}.classification-preview b{font-size:10px}.classification-preview small{font-size:9px;color:#68708a;line-height:1.5;margin-top:3px}.urgent-create-modal .classification-preview{background:#fff4f1;border-color:#f2d0c8}.urgent-create-modal .classification-preview>span{background:#c34830}.deadline-reminder-banner{margin:14px 0 0;padding:11px 12px;border:1px solid #efd9a1;border-radius:10px;background:#fff8e8;color:#805d18;font-size:10px;font-weight:750}.deadline-reminder{background:#fffaf0}.deadline-reminder .notification-dot{background:#d69921}
.performance-explainer{display:flex;gap:12px;align-items:flex-start;margin:0 0 14px;padding:14px 16px;border:1px solid #dce4ff;border-radius:13px;background:#f4f7ff}.performance-explainer>span{width:30px;height:30px;border-radius:9px;background:#315fdd;color:#fff;display:grid;place-items:center;font-weight:900;flex:0 0 auto}.performance-explainer b{font-size:11px}.performance-explainer p{font-size:9px;line-height:1.6;color:#626b85;margin:4px 0 0}.performance-card .timing-score strong{font-size:32px}.performance-card .timing-score>i em{background:#315fdd}.performance-card .health-dot.performance-good{background:#e5f4eb;color:#287653}.performance-card .health-dot.performance-warning{background:#fff3d7;color:#946414}.performance-card .health-dot.performance-danger{background:#ffe7e1;color:#bd4329}.performance-card .health-dot.performance-neutral{background:#f0efeb;color:#777}.performance-sample{font-size:8px;color:#888;margin:12px 0 0}
@media(max-width:1280px){.enhanced-filter{display:grid;grid-template-columns:1fr 1fr 1fr}.enhanced-filter .filter-search{grid-column:1/-1}.team-performance-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.team-performance-card:nth-child(3n){border-right:1px solid var(--line)}.team-performance-card:nth-child(2n){border-right:0}.overview-work-grid{grid-template-columns:1fr}}
@media(max-width:760px){body{font-size:14px}.page-heading h1,.page-heading.compact h1{font-size:28px}.subheading{font-size:12px}.nav-item{font-size:13px}.overview-heading{display:block}.overview-actions{justify-content:flex-start;margin-top:15px}.overview-actions button{flex:1}.overview-work-grid{display:block}.urgent-panel{margin-top:12px}.team-performance-grid{grid-template-columns:1fr}.team-performance-card,.team-performance-card:nth-child(2n),.team-performance-card:nth-child(3n){border-right:0;border-bottom:1px solid var(--line)}.enhanced-filter{grid-template-columns:1fr 1fr}.enhanced-filter .filter-search{grid-column:1/-1}.enhanced-filter .clear-button{display:block}.scope-tabs{overflow:auto;padding-bottom:2px}.scope-tabs button{white-space:nowrap}.editor-actions .urgent-button{width:100%}.urgent-task-section .task-table-head{display:none}.create-task-modal{padding:22px}.classification-preview{margin-bottom:4px}.performance-explainer p{font-size:10px}}

/* V67 — Tổng quan sống động, rõ trạng thái và thân thiện trên điện thoại. */
.overview-page{position:relative}.overview-heading{position:relative;overflow:hidden;margin-bottom:18px;border:1px solid #dfe8ff;border-radius:24px;background:linear-gradient(135deg,#f1f6ff 0%,#fff9ee 53%,#f1fbf6 100%);padding:28px;box-shadow:0 14px 36px rgba(52,73,120,.09)}.overview-heading:after{content:"";position:absolute;right:-52px;top:-72px;width:190px;height:190px;border-radius:50%;background:linear-gradient(145deg,rgba(49,95,221,.16),rgba(255,188,76,.12));pointer-events:none}.overview-heading>div{position:relative;z-index:1}.overview-heading .eyebrow{color:#315fdd}.overview-heading h1{font-size:38px;background:linear-gradient(90deg,#171717 10%,#315fdd 90%);-webkit-background-clip:text;background-clip:text;color:transparent}.overview-heading .subheading{max-width:720px;line-height:1.7}.overview-heading .secondary-button{border:1px solid #d9e2fb;background:rgba(255,255,255,.82);color:#234aaf}.overview-heading .primary-button{background:linear-gradient(135deg,#202020,#3c3c3c)}
.alert-strip{min-height:82px;border:1px solid #ffb5a1;background:linear-gradient(105deg,#fff0eb,#fff9f5);box-shadow:0 10px 24px rgba(212,79,43,.09);transition:.18s ease}.alert-strip:hover{transform:translateY(-2px);box-shadow:0 14px 28px rgba(212,79,43,.14)}.alert-icon{width:44px;height:44px;border-radius:14px;background:#fff;color:#bf4126;font-size:20px;box-shadow:0 5px 14px rgba(185,73,50,.13)}.alert-strip b{font-size:14px}.alert-strip small{margin-top:5px;font-size:11px}
.executive-kpis{gap:16px}.executive-kpis .kpi-card{position:relative;overflow:hidden;min-height:164px;border:0;padding:21px;box-shadow:0 12px 28px rgba(35,42,67,.09);transition:transform .18s ease,box-shadow .18s ease}.executive-kpis .kpi-card:after{content:"";position:absolute;right:-30px;bottom:-38px;width:105px;height:105px;border-radius:50%;background:rgba(255,255,255,.48)}.executive-kpis .kpi-card:nth-child(1){background:linear-gradient(145deg,#fff7ed,#ffe8d2);color:#773b13}.executive-kpis .kpi-card:nth-child(2){background:linear-gradient(145deg,#eff5ff,#dce8ff);color:#213f91}.executive-kpis .kpi-card:nth-child(3){background:linear-gradient(145deg,#fff1ed,#ffdcd3);color:#8d301f}.executive-kpis .kpi-card:nth-child(4){background:linear-gradient(145deg,#effaf5,#d9f2e7);color:#195b40}.executive-kpis .kpi-link:hover{transform:translateY(-4px);box-shadow:0 17px 34px rgba(35,42,67,.14)}.executive-kpis .kpi-label{position:relative;z-index:1;color:inherit;font-size:12px}.executive-kpis .kpi-dot{width:36px;height:36px;border-radius:12px;background:rgba(255,255,255,.72);font-size:17px;box-shadow:0 5px 12px rgba(31,45,76,.08)}.executive-kpis .kpi-card>strong,.executive-kpis .progress-kpi strong{position:relative;z-index:1;margin:21px 0 10px;font-size:43px}.executive-kpis .kpi-card>small,.executive-kpis .progress-kpi small{position:relative;z-index:1;color:inherit;opacity:.72;font-size:10px;line-height:1.55}.executive-kpis .progress-ring{z-index:1;width:78px;height:78px;background:conic-gradient(#24a36e var(--progress),rgba(255,255,255,.7) 0);box-shadow:0 7px 18px rgba(36,163,110,.15)}.executive-kpis .progress-ring:before{background:#eefaf4}
.overview-work-grid .panel,.team-performance-panel,.flexible-response-panel{border:1px solid #e5e8ef;box-shadow:0 12px 30px rgba(31,43,74,.07)}.overview-work-grid .panel-heading,.team-performance-panel .panel-heading,.flexible-response-panel .panel-heading{background:linear-gradient(90deg,#fafcff,#fff);border-radius:17px 17px 0 0}.focus-panel .section-kicker{color:#315fdd}.urgent-panel .section-kicker{color:#c4472e}.focus-row{transition:background .15s ease,transform .15s ease}.focus-row:hover{background:#f4f7ff;transform:translateX(2px)}.urgent-list>button:hover{background:#fff1ed}.performance-scope-strip{border:1px solid #cfe8dc;background:linear-gradient(90deg,#ecf8f2,#f8fcfa);box-shadow:0 8px 20px rgba(43,124,93,.07)}
@media(max-width:760px){.overview-heading{margin:-4px -4px 17px;padding:23px 20px;border-radius:22px}.overview-heading h1{font-size:31px}.overview-heading .subheading{font-size:11px}.overview-actions{display:grid;grid-template-columns:1fr;margin-top:18px}.overview-actions button{width:100%;min-height:45px}.alert-strip{min-height:90px;padding:15px}.alert-icon{width:42px;height:42px;flex:0 0 auto}.alert-strip b{font-size:13px}.executive-kpis{gap:10px}.executive-kpis .kpi-card{min-height:155px;padding:16px}.executive-kpis .kpi-card>strong,.executive-kpis .progress-kpi strong{font-size:38px}.executive-kpis .kpi-label{align-items:flex-start;font-size:11px;line-height:1.35}.executive-kpis .kpi-dot{width:34px;height:34px;flex:0 0 auto}.executive-kpis .progress-ring{width:58px;height:58px}.overview-work-grid .panel{border-radius:19px}.focus-row{min-height:76px}}

/* V68 — Số lượng ở 5 phạm vi Công việc lớn và dễ nhìn. */
.employee-scope-picker .employee-scope-tabs button>i{min-width:44px;width:44px;height:44px;border:2px solid rgba(255,255,255,.88);background:rgba(255,255,255,.94);color:var(--scope-accent,#333);font-size:18px;font-weight:900;line-height:1;box-shadow:0 7px 18px color-mix(in srgb,var(--scope-accent,#333) 18%,transparent)}.employee-scope-picker .employee-scope-tabs button.active>i{border-color:rgba(255,255,255,.9);background:var(--scope-accent,#315fdd);color:#fff;box-shadow:0 8px 20px color-mix(in srgb,var(--scope-accent,#315fdd) 32%,transparent)}.employee-scope-picker .employee-scope-tabs button>em{right:42px;top:7px}.employee-scope-picker .employee-scope-tabs button{min-height:84px}.employee-scope-picker .scope-copy b{font-size:12px}.employee-scope-picker .scope-copy small{font-size:9px}
@media(max-width:600px){.employee-scope-picker .employee-scope-tabs button{grid-template-columns:44px minmax(0,1fr) 46px;min-height:78px}.employee-scope-picker .employee-scope-tabs button>i{min-width:42px;width:42px;height:42px;font-size:18px}.employee-scope-picker .employee-scope-tabs button>em{right:39px;top:6px}}

/* v12 · protected owner account, status notifications and task chat */
.protected-admin-row{background:linear-gradient(90deg,#fffdf4,#fff)}.crown-badge{display:inline-flex;margin-left:6px;border-radius:999px;padding:3px 7px;background:#181818;color:#fff;font-size:7px;font-style:normal;vertical-align:middle}.protected-lock{display:inline-flex;align-items:center;color:#75643e;font-size:8px;font-weight:750;white-space:nowrap}.super-admin-note{margin:12px 0 2px;border:1px solid #ecd9a4;border-radius:10px;background:#fff8e8;color:#775719;padding:11px 13px;font-size:10px;font-weight:750}.permission-check input:disabled{cursor:not-allowed}.permission-check:has(input:disabled){background:#f4f3ef;cursor:not-allowed}.field input[readonly],.field select:disabled{background:#f1f0ec;color:#777;cursor:not-allowed}
.task-chat{margin:18px 0 4px;border:1px solid #dedcd5;border-radius:14px;overflow:hidden;background:#fff}.chat-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:14px 15px;background:#f4f7ff;border-bottom:1px solid #dfe5f5}.chat-heading small{font-size:8px;color:#66708b;letter-spacing:.08em;font-weight:800}.chat-heading h3{font-size:14px;margin:3px 0 0}.chat-heading p{font-size:8px;color:#777;margin:4px 0 0}.chat-heading>span{border-radius:999px;background:#e5f4eb;color:#287653;padding:6px 8px;font-size:8px;font-weight:800;white-space:nowrap}.task-chat-list{height:270px;overflow-y:auto;padding:14px;background:#fafaf8;scroll-behavior:smooth}.chat-message{max-width:86%;margin:0 0 12px}.chat-message>div{display:flex;align-items:center;gap:7px}.chat-message>div span b,.chat-message>div span small{display:block}.chat-message>div span b{font-size:9px}.chat-message>div span small{font-size:7px;color:#999;margin-top:2px}.chat-message p{margin:6px 0 0 31px;border:1px solid #e4e1d8;border-radius:4px 11px 11px 11px;background:#fff;padding:9px 11px;font-size:10px;line-height:1.55;white-space:pre-wrap;overflow-wrap:anywhere}.chat-message.own{margin-left:auto}.chat-message.own>div{justify-content:flex-end}.chat-message.own>div .avatar{order:2}.chat-message.own>div span{text-align:right}.chat-message.own p{margin:6px 31px 0 0;border-color:#ccd8fa;border-radius:11px 4px 11px 11px;background:#eaf0ff;color:#24448f}.chat-empty{height:100%;min-height:100px;display:grid;place-items:center;align-content:center;gap:5px;text-align:center;color:#888;padding:20px}.chat-empty>span{font-size:22px}.chat-empty b{font-size:11px;color:#555}.chat-empty small{font-size:9px;line-height:1.5}.task-chat-form{display:grid;grid-template-columns:1fr auto;gap:8px;padding:10px;border-top:1px solid #e5e2da;background:#fff}.task-chat-form textarea{width:100%;resize:none;border:1px solid #dedcd5;border-radius:10px;padding:10px;font-size:10px;line-height:1.5}.task-chat-form textarea:focus{border-color:#7895e7;outline:0;box-shadow:0 0 0 3px rgba(49,95,221,.08)}.task-chat-form button{align-self:stretch;border:0;border-radius:10px;background:#171717;color:#fff;padding:0 13px;font-size:9px;font-weight:800;cursor:pointer}.task-chat-form button:disabled{opacity:.55;cursor:wait}
@media(max-width:760px){.crown-badge{display:block;width:max-content;margin:4px 0 0}.protected-lock{font-size:8px}.task-chat-list{height:240px}.chat-message{max-width:94%}.task-chat-form{grid-template-columns:1fr}.task-chat-form button{min-height:38px}.chat-heading{padding:12px}.chat-heading>span{font-size:7px}}

/* v13 · âm chuông trong web và popup chat trực tuyến */
.live-chat-popup{position:fixed;z-index:240;top:92px;right:24px;width:min(390px,calc(100vw - 32px));display:grid;grid-template-columns:44px minmax(0,1fr) 30px;gap:11px;align-items:center;border:1px solid rgba(255,255,255,.14);border-radius:16px;background:#171717;color:#fff;padding:13px;box-shadow:0 18px 48px rgba(0,0,0,.28);animation:live-chat-popup-in .24s ease-out}.live-chat-popup-icon{width:44px;height:44px;display:grid;place-items:center;border-radius:12px;background:#315fdd;font-size:20px}.live-chat-popup-open{min-width:0;border:0;background:transparent;color:inherit;padding:0;text-align:left;cursor:pointer}.live-chat-popup-open b,.live-chat-popup-open small,.live-chat-popup-open em{display:block}.live-chat-popup-open b{font-size:12px}.live-chat-popup-open small{margin-top:4px;overflow:hidden;color:#f1f1ef;font-size:10px;line-height:1.45;text-overflow:ellipsis;white-space:nowrap}.live-chat-popup-open em{margin-top:4px;color:#aebef1;font-size:8px;font-style:normal;font-weight:750}.live-chat-popup-close{align-self:start;width:30px;height:30px;border:0;border-radius:9px;background:rgba(255,255,255,.1);color:#fff;font-size:19px;line-height:1;cursor:pointer}.live-chat-popup-close:hover{background:rgba(255,255,255,.18)}
@keyframes live-chat-popup-in{from{opacity:0;transform:translateY(-12px) scale(.97)}to{opacity:1;transform:translateY(0) scale(1)}}
@media(max-width:760px){.live-chat-popup{top:max(12px,env(safe-area-inset-top));right:12px;width:calc(100vw - 24px);grid-template-columns:42px minmax(0,1fr) 30px;padding:12px}.live-chat-popup-icon{width:42px;height:42px}.live-chat-popup-open b{font-size:13px}.live-chat-popup-open small{font-size:11px}}

/* v14 · cửa sổ chat nổi và kiểm tra âm báo trên máy tính */
.sound-test-button{width:100%;display:grid;grid-template-columns:36px minmax(0,1fr);gap:2px 10px;align-items:center;margin:-5px 0 18px;border:1px solid #dce4ff;border-radius:12px;background:#f4f7ff;color:#24448f;padding:11px 13px;text-align:left;cursor:pointer}.sound-test-button>span{grid-row:1/3;width:36px;height:36px;display:grid;place-items:center;border-radius:10px;background:#315fdd;color:#fff;font-size:16px}.sound-test-button b,.sound-test-button small{display:block}.sound-test-button b{font-size:10px}.sound-test-button small{color:#68708a;font-size:8px;line-height:1.45}.sound-test-button.ready{border-color:#cde5d6;background:#eff9f3;color:#246d4d}.sound-test-button.ready>span{background:#2e8b65}
.floating-chat-window{position:fixed;z-index:235;right:24px;bottom:24px;width:min(420px,calc(100vw - 32px));height:min(610px,calc(100vh - 105px));display:grid;grid-template-rows:auto auto minmax(0,1fr) auto;overflow:hidden;border:1px solid #d9d6cf;border-radius:18px;background:#fff;box-shadow:0 24px 70px rgba(20,20,20,.3);transform-origin:bottom right;animation:floating-chat-enter .25s ease-out}.floating-chat-window.attention{animation:floating-chat-attention .8s ease-out}.floating-chat-header{display:grid;grid-template-columns:42px minmax(0,1fr) 34px 34px 34px;gap:7px;align-items:center;background:#171717;color:#fff;padding:12px}.floating-chat-brand{width:42px;height:42px;display:grid;place-items:center;border-radius:11px;background:#fff}.floating-chat-brand img{display:block;width:78%;height:78%;object-fit:contain;transform:translate(-4%,-2%)}.floating-chat-header>span:nth-child(2) b,.floating-chat-header>span:nth-child(2) small{display:block}.floating-chat-header>span:nth-child(2) b{font-size:12px;letter-spacing:.01em}.floating-chat-header>span:nth-child(2) small{margin-top:3px;color:#bcbcbc;font-size:8px}.floating-chat-header button{width:34px;height:34px;border:1px solid rgba(255,255,255,.17);border-radius:9px;background:rgba(255,255,255,.08);color:#fff;font-size:17px;line-height:1;cursor:pointer}.floating-chat-header button:hover{background:rgba(255,255,255,.17)}.floating-sound-test{font-size:14px!important}.floating-chat-task{display:grid;grid-template-columns:34px minmax(0,1fr) auto;gap:10px;align-items:center;border-bottom:1px solid #e5e2da;background:#f4f7ff;padding:11px 13px}.floating-chat-task>span{width:34px;height:34px;display:grid;place-items:center;border-radius:10px;background:#dfe8ff;font-size:16px}.floating-chat-task b,.floating-chat-task small{display:block}.floating-chat-task b{overflow:hidden;font-size:10px;text-overflow:ellipsis;white-space:nowrap}.floating-chat-task small{margin-top:4px;overflow:hidden;color:#68708a;font-size:8px;line-height:1.35;text-overflow:ellipsis;white-space:nowrap}.floating-open-task{border:1px solid #cdd8f4;border-radius:9px;background:#fff;color:#3156b5;padding:8px 9px;font-size:8px;font-weight:800;cursor:pointer}.floating-chat-list.task-chat-list{height:auto;min-height:0;padding:15px;background:#fafaf8}.floating-chat-form.task-chat-form{margin:0;border-radius:0;padding:11px}.floating-chat-form.task-chat-form textarea{min-height:50px;font-size:11px}.floating-chat-form.task-chat-form button{min-width:76px;font-size:10px}.floating-chat-window.minimized{height:auto;grid-template-rows:auto}.floating-chat-window.minimized .floating-chat-task,.floating-chat-window.minimized .floating-chat-list,.floating-chat-window.minimized .floating-chat-form{display:none}
@keyframes floating-chat-enter{from{opacity:0;transform:translateY(24px) scale(.96)}to{opacity:1;transform:translateY(0) scale(1)}}@keyframes floating-chat-attention{0%,100%{box-shadow:0 24px 70px rgba(20,20,20,.3)}35%{box-shadow:0 0 0 5px rgba(49,95,221,.22),0 28px 75px rgba(20,20,20,.35)}}
@media(max-width:760px){.sound-test-button b{font-size:11px}.sound-test-button small{font-size:9px}.floating-chat-window{left:8px;right:8px;bottom:72px;width:auto;height:min(68dvh,610px);border-radius:17px}.floating-chat-header{grid-template-columns:40px minmax(0,1fr) 32px 32px 32px;padding:10px}.floating-chat-brand{width:40px;height:40px}.floating-chat-header button{width:32px;height:32px}.floating-chat-task{grid-template-columns:32px minmax(0,1fr) auto;padding:10px}.floating-chat-task>span{width:32px;height:32px}.floating-chat-task b{font-size:11px}.floating-chat-task small{font-size:9px}.floating-chat-list.task-chat-list{height:auto}.floating-chat-form.task-chat-form{grid-template-columns:1fr auto}.floating-chat-form.task-chat-form button{min-width:66px;min-height:auto}.floating-chat-window.minimized{left:auto;width:min(410px,calc(100vw - 16px))}}

/* v15 · quản lý toàn bộ task và lịch sử thao tác */
.admin-task-page,.audit-page{animation:fade .2s ease}.admin-task-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:14px}.admin-task-kpis button{min-height:92px;border:1px solid var(--line);border-radius:15px;background:#fff;padding:16px;text-align:left;cursor:pointer;box-shadow:0 4px 14px rgba(30,26,15,.025)}.admin-task-kpis button:hover,.admin-task-kpis button.active{border-color:#171717;box-shadow:0 0 0 1px #171717}.admin-task-kpis button.urgent{background:linear-gradient(145deg,#fff 45%,#fff1ed);border-color:#efc9c0}.admin-task-kpis small,.admin-task-kpis b{display:block}.admin-task-kpis small{color:#888;font-size:8px;font-weight:850;letter-spacing:.1em}.admin-task-kpis b{margin-top:12px;font-size:28px;line-height:1}.admin-task-kpis .urgent b{color:#bf432b}.admin-task-note,.audit-note{display:flex;align-items:flex-start;gap:12px;border:1px solid #ead7a2;border-radius:13px;background:#fff8e8;padding:13px 15px;margin-bottom:14px}.admin-task-note>span,.audit-note>span{width:28px;height:28px;display:grid;place-items:center;flex:0 0 auto;border-radius:8px;background:#171717;color:#fff;font-size:12px;font-weight:900}.admin-task-note b,.audit-note b{font-size:10px}.admin-task-note p,.audit-note p{margin:4px 0 0;color:#765e2d;font-size:9px;line-height:1.55}.admin-task-filter{display:grid;grid-template-columns:minmax(280px,1fr) 190px 190px auto}.admin-task-table{overflow:hidden}.admin-task-head,.admin-task-row{display:grid;grid-template-columns:minmax(320px,1.5fr) 145px 125px 130px 140px;gap:14px;align-items:center}.admin-task-head{padding:12px 17px;border-bottom:1px solid var(--line);background:#f0efeb;color:#777;font-size:8px;font-weight:850;letter-spacing:.07em;text-transform:uppercase}.admin-task-row{min-height:78px;padding:12px 17px;border-bottom:1px solid #efeee9}.admin-task-row:last-child{border-bottom:0}.admin-task-row:hover{background:#fafaf8}.admin-task-identity b,.admin-task-identity small,.admin-deadline b,.admin-deadline small{display:block}.admin-task-identity .kind-pill{margin-bottom:6px}.admin-task-identity b{font-size:11px;line-height:1.4}.admin-task-identity small,.admin-deadline small{margin-top:4px;color:#888;font-size:8px}.admin-deadline b{font-size:10px}.admin-task-actions{display:flex;justify-content:flex-end;gap:6px}.admin-task-actions button{border:1px solid #dedcd5;border-radius:8px;background:#fff;padding:8px 11px;font-size:9px;font-weight:800;cursor:pointer}.admin-task-actions .danger-outline{border-color:#efc3ba;background:#fff7f4;color:#b84229}.admin-task-actions .danger-outline:hover{background:#ffe8e1}.audit-filter{display:grid;grid-template-columns:minmax(280px,1fr) 220px}.audit-table{overflow:hidden}.audit-head,.audit-row{display:grid;grid-template-columns:220px 175px minmax(300px,1fr) 155px;gap:16px;align-items:center}.audit-head{padding:12px 17px;border-bottom:1px solid var(--line);background:#f0efeb;color:#777;font-size:8px;font-weight:850;letter-spacing:.07em;text-transform:uppercase}.audit-row{min-height:75px;padding:12px 17px;border-bottom:1px solid #efeee9}.audit-row:last-child{border-bottom:0}.audit-row:hover{background:#fafaf8}.audit-actor{display:flex;align-items:center;gap:9px;min-width:0}.audit-actor b,.audit-actor small,.audit-detail b,.audit-detail small{display:block}.audit-actor b,.audit-detail b{overflow:hidden;font-size:10px;text-overflow:ellipsis;white-space:nowrap}.audit-actor small,.audit-detail small{margin-top:4px;overflow:hidden;color:#888;font-size:8px;line-height:1.4;text-overflow:ellipsis;white-space:nowrap}.audit-action{display:inline-flex;width:max-content;max-width:100%;border-radius:999px;background:#ecebea;color:#555;padding:6px 8px;font-size:8px;font-style:normal;font-weight:800}.audit-task_created,.audit-staff_created{background:#e5f4eb;color:#287653}.audit-task_deleted{background:#ffe7e1;color:#bd4329}.audit-task_progress,.audit-task_updated,.audit-task_bulk_updated{background:#e8eeff;color:#3156b5}.audit-chat_message{background:#eee4ff;color:#6740b8}.audit-login,.audit-logout{background:#f0efeb;color:#555}.audit-row time{color:#777;font-size:8px;line-height:1.5}.audit-loading{min-height:260px;display:grid;place-items:center;align-content:center;gap:9px;color:#777}.audit-loading span{font-size:30px}.audit-loading b{font-size:11px}
@media(max-width:1150px){.admin-task-head,.admin-task-row{grid-template-columns:minmax(270px,1.4fr) 120px 110px 120px}.admin-task-head span:nth-child(4),.admin-task-row>.status-badge{display:none}.audit-head,.audit-row{grid-template-columns:190px 150px minmax(240px,1fr) 130px}}
@media(max-width:760px){.admin-task-kpis{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.admin-task-kpis button{min-height:78px;padding:13px}.admin-task-kpis b{font-size:24px}.admin-task-filter,.audit-filter{grid-template-columns:1fr 1fr}.admin-task-filter .filter-search,.audit-filter .filter-search{grid-column:1/-1}.admin-task-filter .clear-button{display:block}.admin-task-head,.audit-head{display:none}.admin-task-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;padding:14px}.admin-task-row>.owner-cell{grid-column:1}.admin-task-row>.admin-deadline{grid-column:2;grid-row:2;text-align:right}.admin-task-row>.status-badge{display:inline-flex;grid-column:1}.admin-task-actions{grid-column:2;grid-row:1;align-self:start}.admin-task-actions button{padding:7px 9px}.audit-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;padding:14px}.audit-row>.audit-actor{grid-column:1}.audit-row>span:nth-child(2){grid-column:2;grid-row:1}.audit-row>.audit-detail{grid-column:1/-1}.audit-row>time{grid-column:1/-1}.mobile-nav{display:flex;overflow-x:auto;overflow-y:hidden;height:64px;scrollbar-width:none}.mobile-nav::-webkit-scrollbar{display:none}.mobile-nav button{flex:1 0 74px;min-width:74px}}

/* V16 · trạng thái tự tính, tệp đính kèm, dọn thông báo và chat di động ổn định */
.auto-progress{margin-top:14px;border:1px solid #dedcd5;border-radius:11px;background:#fff;padding:11px}.auto-progress>span,.auto-progress>small{display:block}.auto-progress>span{font-size:10px;font-weight:800}.auto-progress>small{margin-top:7px;color:#777;font-size:9px}.auto-progress>i{display:block;height:7px;margin-top:9px;overflow:hidden;border-radius:99px;background:#e6e4df}.auto-progress>i>em{display:block;height:100%;border-radius:inherit;background:#315fdd;transition:width .25s ease}.task-attachments{margin:0 0 18px;border:1px solid #dedbd4;border-radius:14px;background:#faf9f6;padding:14px}.attachment-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.attachment-heading small,.attachment-heading h3{display:block}.attachment-heading small{color:#777;font-size:8px;letter-spacing:.09em}.attachment-heading h3{margin:4px 0 0;font-size:13px}.attachment-heading>span{border-radius:99px;background:#e9edfb;color:#3156b5;padding:5px 8px;font-size:8px;font-weight:850}.attachment-actions{display:flex;flex-wrap:wrap;gap:7px;margin-top:12px}.attachment-actions button,.draft-attachment-actions button{border:1px solid #d7d3ca;border-radius:9px;background:#fff;padding:8px 10px;font-size:9px;font-weight:800;cursor:pointer}.attachment-actions button:hover,.draft-attachment-actions button:hover{border-color:#315fdd;color:#315fdd}.attachment-link-form{display:grid;grid-template-columns:1fr 1.5fr auto;gap:7px;margin-top:10px}.attachment-link-form[hidden]{display:none}.attachment-link-form input{min-width:0;border:1px solid #d7d3ca;border-radius:8px;background:#fff;padding:9px;font-size:9px}.attachment-link-form button{border:0;border-radius:8px;background:#171717;color:#fff;padding:9px 11px;font-size:9px;font-weight:800}.attachment-list{display:grid;gap:7px;margin-top:11px}.attachment-card{display:grid;grid-template-columns:34px minmax(0,1fr) auto auto auto;gap:7px;align-items:center;border:1px solid #e4e1da;border-radius:10px;background:#fff;padding:8px}.attachment-card>span,.attachment-card>img{width:34px;height:34px;border-radius:8px;background:#eef2ff;display:grid;place-items:center;object-fit:cover}.attachment-card b,.attachment-card small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.attachment-card b{font-size:9px}.attachment-card small{margin-top:3px;color:#888;font-size:8px}.attachment-card>a,.attachment-card>button{border:0;background:transparent;color:#315fdd;font-size:8px;font-weight:850;text-decoration:none;cursor:pointer}.attachment-card>button{color:#bd3d2a}.attachment-empty{border:1px dashed #d9d5cd;border-radius:9px;color:#888;padding:12px;text-align:center;font-size:9px}.attachment-help{display:block;margin-top:9px;color:#888;font-size:8px}.task-attachments.is-busy{opacity:.58;pointer-events:none}.draft-attachments{grid-column:1/-1;margin:16px 0 2px;border:1px solid #dedbd4;border-radius:12px;background:#faf9f6;padding:13px}.draft-attachments>div:first-child b,.draft-attachments>div:first-child small{display:block}.draft-attachments>div:first-child b{font-size:10px}.draft-attachments>div:first-child small{margin-top:4px;color:#777;font-size:9px}.draft-attachment-actions{display:flex;gap:7px;margin-top:10px}.draft-attachment-list{display:grid;gap:6px;margin-top:10px}.draft-attachment-list>small{color:#888;font-size:9px}.draft-attachment-list>span{display:grid;grid-template-columns:24px minmax(0,1fr) auto 26px;gap:7px;align-items:center;border:1px solid #e4e1da;border-radius:9px;background:#fff;padding:7px}.draft-attachment-list i{font-style:normal}.draft-attachment-list b{overflow:hidden;font-size:9px;text-overflow:ellipsis;white-space:nowrap}.draft-attachment-list small{color:#888;font-size:8px}.draft-attachment-list button{border:0;background:transparent;color:#bd3d2a;font-size:17px;cursor:pointer}.notification-list-head>span{display:flex;align-items:center;gap:10px}.notification-list-head .danger-link{color:#bd3d2a}.notification-row{position:relative;border-bottom:1px solid #e5e2db}.notification-row .notification-item{border-bottom:0;padding-right:48px}.notification-delete{position:absolute;right:10px;top:50%;z-index:2;width:28px;height:28px;transform:translateY(-50%);border:1px solid #ead8d4;border-radius:8px;background:#fff;color:#bd3d2a;font-size:17px;cursor:pointer}.notification-delete:hover{background:#fff0ed}.floating-chat-window{contain:layout paint;overscroll-behavior:contain}.floating-chat-list,.floating-chat-form{min-height:0}.floating-chat-form textarea{font-size:16px!important}.floating-chat-window.minimized{contain:none}
@media(max-width:760px){.floating-chat-window{left:6px;right:6px;width:auto;max-height:none;overscroll-behavior:contain}.floating-chat-window.minimized{left:auto;right:8px;top:auto!important;bottom:72px!important;height:auto!important}.floating-chat-list.task-chat-list{overscroll-behavior:contain}.floating-chat-form.task-chat-form{padding-bottom:max(11px,env(safe-area-inset-bottom))}.task-chat-form textarea{font-size:16px!important}.attachment-link-form{grid-template-columns:1fr}.attachment-card{grid-template-columns:32px minmax(0,1fr) auto}.attachment-card>a:nth-of-type(2){display:none}.attachment-card>button{grid-column:3}.draft-attachment-actions{flex-direction:column}.notification-list-head{align-items:flex-start}.notification-list-head>span{align-items:flex-end;flex-direction:column;gap:5px}}

/* V17 · preview xác nhận tệp và phân quyền mở rộng */
.attachment-preview-backdrop{position:fixed;inset:0;z-index:320;display:grid;place-items:center;padding:20px;background:rgba(18,18,18,.62);backdrop-filter:blur(5px)}.attachment-preview-dialog{width:min(620px,100%);max-height:min(90vh,760px);overflow:auto;border:1px solid #ddd9d0;border-radius:20px;background:#fff;padding:22px;box-shadow:0 28px 90px rgba(0,0,0,.34);animation:pop .2s ease}.attachment-preview-head{display:flex;align-items:flex-start;justify-content:space-between;gap:15px}.attachment-preview-head small{display:block;color:#777;font-size:8px;font-weight:850;letter-spacing:.12em}.attachment-preview-head h3{margin:6px 0 0;font-size:22px;letter-spacing:-.03em}.attachment-preview-head button{width:36px;height:36px;flex:0 0 auto;border:0;border-radius:10px;background:#f0efeb;font-size:22px;cursor:pointer}.attachment-preview-visual{display:grid;place-items:center;min-height:220px;margin-top:17px;overflow:hidden;border:1px solid #e3e0d8;border-radius:15px;background:#f5f4f0}.attachment-preview-visual img{display:block;max-width:100%;max-height:430px;object-fit:contain}.attachment-preview-visual embed{display:block;width:100%;height:430px;border:0}.attachment-preview-file-icon{width:86px;height:86px;display:grid;place-items:center;border-radius:22px;background:#e9eeff;color:#3156b5;font-size:42px}.attachment-preview-meta{padding:15px 2px 4px}.attachment-preview-meta b,.attachment-preview-meta small{display:block;overflow-wrap:anywhere}.attachment-preview-meta b{font-size:13px}.attachment-preview-meta small{margin-top:5px;color:#777;font-size:9px}.attachment-preview-meta p{margin:10px 0 0;color:#555;font-size:10px;line-height:1.5}.attachment-preview-actions{display:flex;justify-content:flex-end;gap:9px;margin-top:16px}.draft-attachment-list>span.draft-attachment-item{grid-template-columns:44px minmax(0,1fr) 30px;padding:8px}.draft-attachment-item>img,.draft-attachment-item>i{width:44px;height:44px;display:grid;place-items:center;border-radius:9px;background:#eef2ff;object-fit:cover}.draft-attachment-item>span b,.draft-attachment-item>span small{display:block}.draft-attachment-item>span small{margin-top:4px}.draft-attachment-item>span strong{color:#287653;font-weight:850}.permission-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
@media(max-width:760px){.attachment-preview-backdrop{align-items:end;padding:0}.attachment-preview-dialog{width:100%;max-height:94dvh;border-radius:22px 22px 0 0;padding:20px 17px calc(18px + env(safe-area-inset-bottom))}.attachment-preview-visual{min-height:180px}.attachment-preview-visual img{max-height:42dvh}.attachment-preview-visual embed{height:42dvh}.attachment-preview-actions{position:sticky;bottom:calc(-18px - env(safe-area-inset-bottom));margin:16px -17px calc(-18px - env(safe-area-inset-bottom));border-top:1px solid #e4e1da;background:#fff;padding:12px 17px calc(12px + env(safe-area-inset-bottom))}.attachment-preview-actions button{flex:1}.permission-grid{grid-template-columns:1fr}}

/* V18 · giao task và tệp theo một giao dịch xác nhận */
.draft-storage-state{display:flex;align-items:center;gap:7px;margin-top:10px;border-radius:9px;padding:9px 10px;background:#eaf5ee;color:#287653}.draft-storage-state>span{width:20px;height:20px;display:grid;place-items:center;border-radius:6px;background:#287653;color:#fff;font-size:10px;font-weight:900}.draft-storage-state>b{font-size:9px}.draft-attachments.storage-missing{border-color:#efbcae;background:#fff5f2}.draft-attachments.storage-missing .draft-storage-state{background:#ffe6df;color:#b73f28}.draft-attachments.storage-missing .draft-storage-state>span{background:#c7482f}.attachment-storage-warning{display:flex;align-items:flex-start;gap:8px;margin-top:11px;border:1px solid #efc0b5;border-radius:9px;background:#fff1ed;padding:9px 10px;color:#a83b27}.attachment-storage-warning b,.attachment-storage-warning small{display:block}.attachment-storage-warning b{font-size:9px}.attachment-storage-warning small{margin-top:3px;font-size:8px;line-height:1.45}.attachment-actions button:disabled{cursor:not-allowed;opacity:.45}

/* V19 · preview đa thiết bị, nhiều người phụ trách và lịch sử hoàn thành */
.assignee-field,.bulk-assignee-field{min-width:0;border:0;padding:0;margin:15px 0 0}.assignee-field legend,.bulk-assignee-field legend{padding:0;color:#333;font-size:10px;font-weight:800}.bulk-assignee-field{grid-column:span 2;margin:0}.assignee-picker{margin-top:7px;border:1px solid #dedcd5;border-radius:11px;background:#faf9f6;padding:9px}.assignee-choice-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.assignee-choice{display:flex!important;align-items:center!important;min-width:0;margin:0!important;border:1px solid #e2dfd7;border-radius:9px;background:#fff;padding:8px!important;cursor:pointer}.assignee-choice:has(input:checked){border-color:#7895e7;background:#eef3ff;box-shadow:0 0 0 1px rgba(49,95,221,.08)}.assignee-choice.all:has(input:checked){border-color:#171717;background:#171717;color:#fff}.assignee-choice input{width:17px!important;height:17px!important;flex:0 0 auto;margin:0 8px 0 0!important;accent-color:#315fdd}.assignee-choice>span{display:flex;align-items:center;min-width:0;gap:6px}.assignee-choice b{overflow:hidden;font-size:9px;text-overflow:ellipsis;white-space:nowrap}.assignee-picker>[data-assignee-summary]{display:block;margin-top:8px;color:#8a8984;font-size:8px;line-height:1.45}.assignee-picker.has-selection>[data-assignee-summary]{color:#3156b5;font-weight:750}.scope-tabs button i{display:inline-grid;min-width:18px;height:18px;margin-left:5px;place-items:center;border-radius:999px;background:#ecebe7;color:#555;font-size:8px;font-style:normal}.scope-tabs button.active i{background:#fff;color:#171717}.preview-attachment-button{color:#315fdd!important}.preview-attachment-button:disabled{opacity:.55}.attachment-preview-visual iframe{display:block;width:100%;height:430px;border:0;background:#fff}.attachment-preview-visual pre{width:100%;max-height:430px;overflow:auto;margin:0;padding:16px;color:#333;font:11px/1.55 ui-monospace,SFMono-Regular,Menlo,monospace;text-align:left;white-space:pre-wrap;overflow-wrap:anywhere}.attachment-preview-generic{display:grid;place-items:center;gap:10px;padding:30px;text-align:center}.attachment-preview-generic b{font-size:12px}.attachment-preview-generic small{max-width:360px;color:#777;font-size:9px;line-height:1.55}.attachment-preview-actions>a{display:inline-flex;align-items:center;justify-content:center;border:1px solid #dedcd5;border-radius:11px;background:#fff;color:#3156b5;padding:11px 16px;font-size:10px;font-weight:750;text-decoration:none}.draft-attachment-list>span.draft-attachment-item{grid-template-columns:44px minmax(0,1fr) auto 30px}.draft-attachment-list .draft-preview-button{border:1px solid #cfd9f5;border-radius:8px;background:#f4f7ff;color:#3156b5;padding:7px 9px;font-size:8px;font-weight:800;white-space:nowrap}
@media(max-width:760px){.assignee-choice-grid{grid-template-columns:1fr 1fr}.bulk-assignee-field{grid-column:auto}.attachment-preview-visual iframe{height:42dvh}.attachment-preview-actions{flex-wrap:wrap}.attachment-preview-actions>a,.attachment-preview-actions button{flex:1 1 42%;min-height:42px}.draft-attachment-list>span.draft-attachment-item{grid-template-columns:42px minmax(0,1fr) auto 28px}.draft-attachment-list .draft-preview-button{padding:7px}.attachment-card{grid-template-columns:32px minmax(0,1fr) auto}.attachment-card .preview-attachment-button{grid-column:3}.attachment-card>a:nth-of-type(1){grid-column:3}}

/* V20 · phạm vi việc của tôi, tệp trong chat và màu sắc theo loại công việc */
:root{--task-fixed:#3769df;--task-fixed-soft:#edf3ff;--task-flex:#d88a16;--task-flex-soft:#fff5df;--task-urgent:#df5135;--task-urgent-soft:#fff0ec;--task-mint:#25936d;--task-violet:#7556c9}
.scope-tabs{padding:5px;border:1px solid #e6e2d9;border-radius:16px;background:linear-gradient(135deg,#fff,#f3f1ec)}.scope-tabs button{border-color:transparent;background:transparent}.scope-tabs button:hover{background:#fff;box-shadow:0 4px 14px rgba(25,25,25,.06)}.scope-tabs button.active{background:linear-gradient(135deg,#1d1d1d,#343434);box-shadow:0 7px 18px rgba(25,25,25,.16)}
.kind-pill{gap:5px;border:1px solid currentColor}.kind-pill>span{font-size:11px;line-height:1}.kind-fixed{background:var(--task-fixed-soft);color:#2857bf}.kind-flexible{background:var(--task-flex-soft);color:#9a620b}.kind-urgent{background:var(--task-urgent-soft);color:#b83e27}
.task-table-row,.admin-task-row,.bulk-task-card{position:relative;transition:background .16s ease,transform .16s ease,box-shadow .16s ease}.task-table-row:before,.admin-task-row:before,.bulk-task-card:before{content:"";position:absolute;inset:8px auto 8px 0;width:4px;border-radius:0 6px 6px 0}.task-tone-fixed:before{background:var(--task-fixed)}.task-tone-flexible:before{background:var(--task-flex)}.task-tone-urgent:before{background:var(--task-urgent)}.task-table-row.task-tone-fixed:hover,.admin-task-row.task-tone-fixed:hover{background:linear-gradient(90deg,var(--task-fixed-soft),#fff 24%)}.task-table-row.task-tone-flexible:hover,.admin-task-row.task-tone-flexible:hover{background:linear-gradient(90deg,var(--task-flex-soft),#fff 24%)}.task-table-row.task-tone-urgent:hover,.admin-task-row.task-tone-urgent:hover{background:linear-gradient(90deg,var(--task-urgent-soft),#fff 24%)}
.task-kind-icon{border:0;font-size:13px}.task-kind-icon.kind-fixed{background:var(--task-fixed-soft)}.task-kind-icon.kind-flexible{background:var(--task-flex-soft)}.task-kind-icon.kind-urgent{background:var(--task-urgent-soft)}
.task-drawer{border-top:6px solid var(--task-fixed)}.task-drawer-flexible{border-top-color:var(--task-flex)}.task-drawer-urgent{border-top-color:var(--task-urgent)}.task-drawer-fixed .detail-grid>span:nth-child(odd){background:var(--task-fixed-soft)}.task-drawer-flexible .detail-grid>span:nth-child(odd){background:var(--task-flex-soft)}.task-drawer-urgent .detail-grid>span:nth-child(odd){background:var(--task-urgent-soft)}
.urgent-task-section>div:first-child>span{background:linear-gradient(135deg,#ef6549,#b93321);box-shadow:0 7px 16px rgba(223,81,53,.22)}.regular-task-section .section-title-row:before{content:"📌";display:grid;place-items:center;width:30px;height:30px;margin-right:9px;border-radius:9px;background:var(--task-fixed-soft)}.regular-task-section .section-title-row{justify-content:flex-start}
.chat-compose-row{display:grid;grid-template-columns:42px minmax(0,1fr) auto;align-items:end;gap:8px}.task-chat-form textarea{min-width:0;width:100%}.chat-attach-button,.chat-send-button{height:42px;border:0;border-radius:11px;cursor:pointer;font-weight:800}.chat-attach-button{border:1px solid #cad7f7;background:#eef3ff;color:#2857bf;font-size:18px}.chat-send-button{padding:0 15px;background:linear-gradient(135deg,#315fdd,#244cb9);color:#fff;box-shadow:0 6px 15px rgba(49,95,221,.2)}.chat-selected-file{display:grid;grid-template-columns:38px minmax(0,1fr) 30px;align-items:center;gap:8px;margin-bottom:8px;border:1px solid #cdd8f4;border-radius:11px;background:#f2f6ff;padding:8px}.chat-selected-file[hidden]{display:none}.chat-selected-file>button{width:30px;height:30px;border:0;border-radius:8px;background:#fff;color:#3156b5;cursor:pointer;font-size:16px}.chat-selected-file>button:last-child{color:#ba3f2a}.chat-selected-file b,.chat-selected-file small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.chat-selected-file b{font-size:9px}.chat-selected-file small{margin-top:3px;color:#5671b8;font-size:8px}.chat-attachment{display:grid;grid-template-columns:34px minmax(0,1fr) auto auto;align-items:center;gap:7px;margin-top:8px;border:1px solid #d6def3;border-radius:11px;background:#f3f6ff;padding:8px}.chat-attachment-icon{display:grid;place-items:center;width:34px;height:34px;border-radius:9px;background:#dfe8ff;color:#2857bf;font-size:18px}.chat-attachment b,.chat-attachment small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.chat-attachment b{font-size:9px}.chat-attachment small{margin-top:3px;color:#6f7790;font-size:7px}.chat-attachment button,.chat-attachment a{border:0;border-radius:8px;background:#fff;color:#3156b5;padding:7px 8px;font-size:8px;font-weight:800;text-decoration:none;cursor:pointer}.chat-message.own .chat-attachment{border-color:#c3d1fa;background:#eaf0ff}.preview-close-button{border:1px solid #e1d9d2!important;background:#fff7f4!important;color:#a63b28!important}
.page-heading h1{background:linear-gradient(100deg,#151515 30%,#315fdd 105%);-webkit-background-clip:text;background-clip:text;color:transparent}.panel{box-shadow:0 8px 24px rgba(44,53,77,.045)}
@media(max-width:760px){.scope-tabs{border-radius:13px}.chat-compose-row{grid-template-columns:40px minmax(0,1fr) 68px}.chat-send-button{padding:0 9px;font-size:10px}.chat-attachment{grid-template-columns:32px minmax(0,1fr) auto}.chat-attachment a{display:none}.chat-attachment button{grid-column:3}.floating-chat-form .chat-compose-row{padding-bottom:max(2px,env(safe-area-inset-bottom))}.attachment-preview-head button{position:sticky;top:0;z-index:2;background:#171717;color:#fff;box-shadow:0 5px 14px rgba(0,0,0,.18)}}
.task-chat-form,.floating-chat-form.task-chat-form{display:block}.task-chat-form .chat-attach-button{min-width:42px;padding:0;border:1px solid #cad7f7;background:#eef3ff;color:#2857bf;font-size:18px}.task-chat-form .chat-send-button{padding:0 15px;background:linear-gradient(135deg,#315fdd,#244cb9);color:#fff;box-shadow:0 6px 15px rgba(49,95,221,.2)}.chat-message>.chat-attachment{display:grid;grid-template-columns:34px minmax(0,1fr) auto auto;justify-content:initial}.chat-message.own>.chat-attachment{justify-content:initial}.chat-message.own>.chat-attachment .chat-attachment-icon{order:initial}
@media(max-width:760px){.chat-message>.chat-attachment{grid-template-columns:32px minmax(0,1fr) auto}}

/* V21 · giao diện tùy chỉnh, modal mobile cố định và huy hiệu PWA */
:root{--app-bg-color:#f6f5f1;--sidebar-bg:#181818;--sidebar-fg:#fff;--sidebar-muted:rgba(255,255,255,.66);--sidebar-card:rgba(255,255,255,.08);--app-background-image:none;--app-background-size-desktop:100% auto;--app-background-position-desktop:50% 50%;--app-background-size-mobile:120% auto;--app-background-position-mobile:50% 50%;--editing-vh:100dvh;--editing-top:0px}
html,body{max-width:100%;background:var(--app-bg-color)}
.sidebar{background:var(--sidebar-bg);color:var(--sidebar-fg)}
.sidebar .nav-item{color:var(--sidebar-muted)}
.sidebar .nav-item:hover{background:var(--sidebar-card);color:var(--sidebar-fg)}
.sidebar .nav-item.active{background:#fff;color:#171717}
.sidebar .import-card{border-color:var(--sidebar-card);background:var(--sidebar-card);color:var(--sidebar-fg)}
.sidebar .import-card small,.sidebar .account-card small,.sidebar .account-card a,.sidebar .role-card label{color:var(--sidebar-muted)}
.sidebar .role-card{border-color:var(--sidebar-card)}
.sidebar .role-card select{border-color:var(--sidebar-card);background:var(--sidebar-card);color:var(--sidebar-fg)}
.main-content{background-color:var(--app-bg-color);background-image:var(--app-background-image);background-position:center,var(--app-background-position-desktop);background-size:auto,var(--app-background-size-desktop);background-repeat:repeat,no-repeat;background-attachment:fixed}
.page-wrap{min-height:calc(100vh - 76px);background:transparent}
.appearance-grid{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(360px,.95fr);gap:18px;align-items:start}
.appearance-controls,.appearance-preview-card{padding:22px}
.appearance-section{display:flex;align-items:flex-start;gap:12px}.appearance-section.divider{margin-top:24px;padding-top:23px;border-top:1px solid var(--line)}
.appearance-section h2{margin:0;font-size:16px;letter-spacing:-.02em}.appearance-section p{margin:5px 0 0;color:var(--muted);font-size:10px;line-height:1.55}
.appearance-icon{width:38px;height:38px;flex:0 0 auto;display:grid;place-items:center;border-radius:11px;background:#eaf0ff;color:#315fdd;font-size:19px;font-weight:850}
.color-preset-grid{display:grid;grid-template-columns:repeat(6,1fr);gap:8px;margin:15px 0 12px}.color-preset-grid button{height:39px;border:2px solid #fff;border-radius:11px;background:var(--swatch);box-shadow:0 0 0 1px #d7d4cc,0 3px 8px rgba(20,20,20,.08);cursor:pointer}.color-preset-grid button:hover,.color-preset-grid button:focus-visible{transform:translateY(-2px);box-shadow:0 0 0 2px #315fdd,0 6px 12px rgba(20,20,20,.12)}
.appearance-color-field{display:flex;align-items:center;justify-content:space-between;gap:14px;font-size:10px;font-weight:800}.appearance-color-field>span{display:flex;align-items:center;gap:8px}.appearance-color-field input{width:42px;height:34px;border:1px solid #d8d5cd;border-radius:9px;background:#fff;padding:3px;cursor:pointer}.appearance-color-field output{min-width:78px;border:1px solid #e1ded6;border-radius:8px;background:#faf9f6;padding:8px;color:#666;font:700 9px ui-monospace,monospace;text-transform:uppercase}
.background-picker{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:14px;border:1px dashed #bfcce9;border-radius:12px;background:#f5f8ff;padding:13px;cursor:pointer}.background-picker>span{border-radius:9px;background:#315fdd;color:#fff;padding:9px 12px;font-size:9px;font-weight:850}.background-picker>small{min-width:0;overflow:hidden;color:#65749b;font-size:8px;text-overflow:ellipsis;white-space:nowrap}
.appearance-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px;margin-top:20px}.appearance-actions button:disabled{opacity:.42;cursor:not-allowed}
.appearance-preview-title{display:flex;align-items:center;justify-content:space-between;margin-bottom:13px}.appearance-preview-title span{color:#888;font-size:8px;font-weight:850;letter-spacing:.12em}.appearance-preview-title b{font-size:11px}
.appearance-mockup{height:360px;display:grid;grid-template-columns:31% 69%;overflow:hidden;border:1px solid #dedbd3;border-radius:16px;background-color:var(--preview-paper);background-image:linear-gradient(rgba(255,255,255,.76),rgba(255,255,255,.76)),var(--preview-image,none);background-position:center,var(--preview-position,50% 50%);background-size:auto,var(--preview-size,100% auto);background-repeat:repeat,no-repeat;box-shadow:0 12px 35px rgba(33,30,20,.08)}
.appearance-mockup aside{display:flex;flex-direction:column;gap:7px;background:var(--preview-sidebar);padding:17px 11px;color:#fff}.appearance-mini-brand{display:flex;align-items:center;gap:8px;margin-bottom:14px;font-size:8px;line-height:1.4}.appearance-mini-brand>span{width:27px;height:27px;display:grid;place-items:center;border-radius:8px;background:#fff;color:#111;font-size:15px;font-weight:900}.appearance-mockup aside i{border-radius:8px;padding:9px;color:rgba(255,255,255,.68);font-size:7px;font-style:normal}.appearance-mockup aside i.active{background:#fff;color:#171717;font-weight:800}
.appearance-mockup main{min-width:0}.appearance-mockup main header{height:47px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid rgba(30,30,30,.09);background:rgba(255,255,255,.78);padding:0 14px}.appearance-mockup main header span:first-child{width:48%;height:13px;border-radius:5px;background:#e8e6df}.appearance-mockup main header span:last-child{width:23px;height:23px;border-radius:8px;background:#e6ecfc}.appearance-mockup main section{padding:22px 16px}.appearance-mockup main section>b{font-size:12px}.appearance-mockup main section>div{display:grid;grid-template-columns:repeat(3,1fr);gap:7px;margin-top:15px}.appearance-mockup main section>div i{height:48px;border-radius:9px;background:rgba(255,255,255,.82);box-shadow:0 3px 10px rgba(30,30,30,.05)}.appearance-mockup main article{height:126px;margin-top:9px;border-radius:11px;background:rgba(255,255,255,.86)}
.appearance-safety{display:flex;align-items:flex-start;gap:10px;margin-top:15px;border:1px solid #dce5fb;border-radius:12px;background:#f4f7ff;padding:12px}.appearance-safety>span{font-size:18px}.appearance-safety b,.appearance-safety p{display:block;margin:0}.appearance-safety b{font-size:10px}.appearance-safety p{margin-top:4px;color:#64708e;font-size:8px;line-height:1.5}
.background-device-editor{margin-top:12px;border:1px solid #d7dfea;border-radius:14px;background:#f7f9ff;padding:13px}.background-device-editor.mobile{border-color:#d9e6dc;background:#f4faf6}.background-device-title{display:flex;align-items:center;gap:9px;margin-bottom:11px}.background-device-title>span{display:grid;width:34px;height:34px;place-items:center;border-radius:10px;background:#e4ebff;font-size:17px}.background-device-editor.mobile .background-device-title>span{background:#dff1e5}.background-device-title b,.background-device-title small{display:block}.background-device-title b{font-size:11px}.background-device-title small{margin-top:2px;color:#7b7f89;font-size:8px}.background-device-editor>label,.background-position-grid label{display:grid;grid-template-columns:1fr auto;gap:6px;color:#595d67;font-size:9px;font-weight:800}.background-device-editor output{color:#315fdd;font-size:9px;font-weight:900}.background-device-editor input[type="range"]{grid-column:1/-1;width:100%;accent-color:#315fdd}.background-device-editor.mobile input[type="range"]{accent-color:#2f8159}.background-position-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:10px}.appearance-preview-tabs{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin-bottom:11px;padding:4px;border-radius:12px;background:#efeee9}.appearance-preview-tabs button{min-height:38px;border:0;border-radius:9px;background:transparent;color:#716d65;font-size:9px;font-weight:850;cursor:pointer}.appearance-preview-tabs button.active{background:#fff;color:#202020;box-shadow:0 3px 10px rgba(25,25,25,.09)}.appearance-preview-stage{display:grid;min-height:360px;place-items:center}.appearance-preview-stage>[hidden]{display:none!important}.appearance-phone-preview{position:relative;width:220px;height:410px;overflow:hidden;border:7px solid #242424;border-radius:29px;background-color:var(--preview-paper);background-image:linear-gradient(rgba(255,255,255,.76),rgba(255,255,255,.76)),var(--preview-image,none);background-position:center,var(--preview-position,50% 50%);background-size:auto,var(--preview-size,120% auto);background-repeat:repeat,no-repeat;box-shadow:0 14px 35px rgba(20,20,20,.18)}.appearance-phone-preview header{height:49px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid rgba(0,0,0,.08);background:rgba(255,255,255,.85);padding:0 12px;font-size:9px}.appearance-phone-preview header i{font-style:normal}.appearance-phone-preview main{padding:25px 12px 58px}.appearance-phone-preview main>b{font-size:13px}.appearance-phone-preview main>div{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin-top:14px}.appearance-phone-preview main>div i{height:62px;border-radius:11px;background:rgba(255,255,255,.86)}.appearance-phone-preview main article{height:170px;margin-top:8px;border-radius:12px;background:rgba(255,255,255,.88)}.appearance-phone-preview footer{position:absolute;inset:auto 0 0;display:flex;justify-content:space-around;border-top:1px solid rgba(0,0,0,.08);background:var(--preview-sidebar);padding:11px;color:#fff;font-size:14px}.appearance-preview-hint{margin-top:12px;border-radius:10px;background:#fff8e9;padding:10px;color:#755d25;font-size:8px;text-align:center}

@media(max-width:980px){.appearance-grid{grid-template-columns:1fr}.appearance-preview-card{order:-1}.appearance-mockup{height:320px}}
@media(max-width:760px){
  html,body{width:100%;max-width:100%;overflow-x:hidden;-webkit-text-size-adjust:100%;text-size-adjust:100%}
  .main-content{background-position:center,var(--app-background-position-mobile);background-size:auto,var(--app-background-size-mobile);background-attachment:scroll}
  .mobile-nav{background:var(--sidebar-bg);color:var(--sidebar-muted);border-color:var(--sidebar-card)}
  .mobile-nav button{color:var(--sidebar-muted)}.mobile-nav button.active{color:var(--sidebar-fg);background:var(--sidebar-card)}
  .appearance-controls,.appearance-preview-card{padding:16px}.appearance-mockup{height:260px}.appearance-preview-stage{min-height:300px}.appearance-phone-preview{width:190px;height:350px}.color-preset-grid{grid-template-columns:repeat(3,1fr)}.appearance-actions{flex-direction:column}.appearance-actions button{width:100%}
  html.task-editing-open,html.task-editing-open body{height:100%;overflow:hidden;overscroll-behavior:none}
  html.task-editing-open .modal-backdrop{top:var(--editing-top);right:0;bottom:auto;left:0;width:100%;max-width:100%;height:var(--editing-vh);max-height:var(--editing-vh);overflow:hidden;padding:0;align-items:stretch;overscroll-behavior:contain;box-sizing:border-box}
  html.task-editing-open .modal-backdrop.centered{justify-content:stretch}
  html.task-editing-open .task-drawer,html.task-editing-open .add-modal,html.task-editing-open .notification-drawer,html.task-editing-open .modal{width:100%;max-width:100%;height:100%;max-height:100%;margin:0;border-radius:0;overflow-x:clip;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;box-sizing:border-box}
  html.task-editing-open .add-modal,html.task-editing-open .notification-drawer,html.task-editing-open .modal{padding:calc(20px + env(safe-area-inset-top)) max(16px,env(safe-area-inset-right)) calc(20px + env(safe-area-inset-bottom)) max(16px,env(safe-area-inset-left))}
  html.task-editing-open .task-drawer{padding:calc(22px + env(safe-area-inset-top)) max(17px,env(safe-area-inset-right)) calc(18px + env(safe-area-inset-bottom)) max(17px,env(safe-area-inset-left))}
  html.task-editing-open .task-drawer>.drawer-close,html.task-editing-open .notification-drawer>.drawer-close,html.task-editing-open .add-modal>.close,html.task-editing-open .modal>.close{top:calc(10px + env(safe-area-inset-top));right:max(12px,env(safe-area-inset-right));width:46px;height:46px;display:grid;place-items:center;z-index:140;touch-action:manipulation;pointer-events:auto}
  html.task-editing-open .task-drawer>.drawer-close{position:absolute}
  html.task-editing-open .drawer-head,html.task-editing-open .notification-head,html.task-editing-open .add-modal>h2,html.task-editing-open .modal>h2{padding-right:58px}
  html.task-editing-open .task-drawer>*,html.task-editing-open .add-modal>*,html.task-editing-open .notification-drawer>*,html.task-editing-open .modal>*{min-width:0;max-width:100%;overflow-wrap:anywhere}
  html.task-editing-open input,html.task-editing-open select,html.task-editing-open textarea{max-width:100%;font-size:16px!important;transform:none!important}
  html.task-editing-open .form-grid,html.task-editing-open .detail-grid,html.task-editing-open .drawer-people{min-width:0}
  html.task-editing-open .form-grid>*{min-width:0}
}

/* V38 · Flexible recurring work and linked event groups */
.flex-mode-guide{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:18px 0}.flex-mode-guide article{display:flex;gap:14px;align-items:flex-start;padding:18px;border:1px solid #e6e1d7;border-radius:18px;background:rgba(255,255,255,.78)}.flex-mode-guide article>span{display:grid;place-items:center;width:40px;height:40px;border-radius:12px;background:#eee7d8;color:#6f5520;font-size:20px}.flex-mode-guide b{display:block;font-size:15px}.flex-mode-guide p{margin:5px 0 0;color:#6f6b64;line-height:1.45;font-size:13px}.flex-group-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.flex-group-card{padding:20px;border-radius:20px}.flex-group-head{display:flex;justify-content:space-between;gap:14px}.flex-group-head small{color:#97701e;font-weight:800;text-transform:uppercase;letter-spacing:.06em}.flex-group-head h2{margin:5px 0;font-size:20px}.flex-group-head p{margin:0;color:#6e6a62;font-size:13px;line-height:1.45}.flex-group-head>span{white-space:nowrap;padding:7px 10px;border-radius:999px;background:#f1ede5;font-size:12px;font-weight:800;height:max-content}.flex-step-timeline{display:grid;gap:0;margin:18px 0;border-left:2px solid #e8dfcd}.flex-step-timeline>div{display:flex;gap:11px;align-items:center;padding:8px 0 8px 13px;position:relative}.flex-step-timeline i{display:grid;place-items:center;width:25px;height:25px;margin-left:-27px;border-radius:50%;background:#fff7e7;border:1px solid #d9b664;color:#7d5a12;font-style:normal;font-weight:800;font-size:11px}.flex-step-timeline span{display:grid;gap:3px}.flex-step-timeline b{font-size:13px}.flex-step-timeline small{color:#777169;font-size:11px}.flex-run-list{display:grid;gap:7px;padding:12px;border-radius:13px;background:#f8f6f1}.flex-run-list>b{font-size:12px}.flex-run-list span{display:flex;justify-content:space-between;gap:8px;font-size:11px}.flex-run-list em{color:#777169;font-style:normal;text-align:right}.flex-run-empty{padding:12px;border-radius:13px;background:#f8f6f1;color:#817c73;font-size:12px}.flex-group-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:15px}.flex-group-actions button{min-height:38px}.flex-group-modal{width:min(920px,calc(100vw - 24px));max-height:92vh;overflow:auto}.flex-step-editor-list{display:grid;gap:14px;margin:18px 0}.flex-step-editor{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;padding:16px;border:1px solid #e3ded4;border-radius:16px;background:#faf9f6}.flex-step-editor-head{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between}.flex-step-editor-head button{border:0;background:#f4e7e3;color:#a04432;border-radius:10px;width:34px;height:34px;font-size:20px}.flex-step-editor label,.flex-step-editor fieldset{display:grid;gap:6px;font-size:12px;font-weight:750}.flex-step-editor .bulk-wide{grid-column:span 2}.flex-step-editor .bulk-full{grid-column:1/-1}.flex-step-editor fieldset{border:0;padding:0;margin:0}.flex-step-editor .assignee-choice-grid{grid-template-columns:repeat(4,minmax(0,1fr));max-height:190px;overflow:auto}.flex-trigger-modal{width:min(660px,calc(100vw - 24px))}.flex-trigger-modal>label{display:grid;gap:7px;margin:14px 0;font-weight:750}.flex-trigger-preview{display:grid;gap:8px;margin:16px 0;padding:12px;border-radius:14px;background:#f7f5ef}.flex-trigger-preview span{display:grid;grid-template-columns:28px 1fr;gap:2px 9px;align-items:center}.flex-trigger-preview i{grid-row:span 2;display:grid;place-items:center;width:26px;height:26px;border-radius:50%;background:#e8dfc8;font-style:normal;font-size:11px;font-weight:800}.flex-trigger-preview small{color:#716d65}.flexible-config-fields,.flexible-editor-fields{border:1px solid #dfd8c9;border-radius:14px;padding:14px;margin:0;background:#fbfaf7}.flexible-config-fields legend,.flexible-editor-fields legend{font-weight:850;font-size:12px;padding:0 6px}.flexible-editor-fields .bulk-fields{margin:0}.flex-schedule-banner{background:#eef8f3!important;border-color:#b8ddcb!important;color:#225d43!important}.flex-event-banner,.flex-waiting-banner{background:#fff8e9!important;border-color:#ebcf8c!important;color:#755616!important}.flex-waiting-banner{font-weight:800}

@media (max-width:900px){.flex-group-grid,.flex-mode-guide{grid-template-columns:1fr}.flex-step-editor{grid-template-columns:1fr}.flex-step-editor .bulk-wide,.flex-step-editor .bulk-full{grid-column:1}.flex-step-editor .assignee-choice-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:600px){.flex-group-actions{display:grid;grid-template-columns:1fr}.flex-group-actions button{width:100%}.flex-run-list span{display:grid}.flex-run-list em{text-align:left}.flex-step-editor{padding:12px}.flex-step-editor .assignee-choice-grid{grid-template-columns:1fr}}
.flex-run-actions{display:flex!important;gap:5px;font-style:normal}.flex-run-actions button{min-height:26px;padding:4px 8px;border:1px solid #d5d0c7;border-radius:7px;background:#fff;font-size:10px;font-weight:800}.flex-run-actions .danger-link{color:#a33b2d;border-color:#e7c2bb}

/* V22 · vùng chạm an toàn cho iPhone và popup không tràn ngang */

/* V25 · chat mobile, đồng bộ task mới và khu vực tài khoản */
.manager-chip{border:0;background:transparent;color:inherit;padding:0;text-align:left;font:inherit;cursor:pointer}
.manager-chip:focus-visible{outline:2px solid #315fdd;outline-offset:5px;border-radius:10px}
.chat-compose-row.without-attachment{grid-template-columns:minmax(0,1fr) auto}
.chat-compose-row>textarea{min-height:42px;max-height:128px;box-sizing:border-box}
.mobile-account-modal{width:min(520px,100%)}
.mobile-account-identity{display:flex;align-items:center;gap:14px;margin:22px 0;border:1px solid var(--line);border-radius:16px;background:#f7f6f2;padding:18px}
.mobile-account-identity>.avatar{width:54px;height:54px;border-radius:15px;font-size:15px}
.mobile-account-identity h2,.mobile-account-identity p{margin:0}.mobile-account-identity h2{font-size:23px}.mobile-account-identity p{margin-top:5px;color:var(--muted);font-size:12px;overflow-wrap:anywhere}
.mobile-account-identity b{display:inline-block;margin-top:10px;border-radius:8px;background:#284735;color:#8de0b0;padding:6px 9px;font-size:9px;text-transform:uppercase;letter-spacing:.05em}
.mobile-account-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.mobile-account-actions button{min-height:46px;border-radius:11px;font-size:12px;font-weight:800;cursor:pointer}
.account-logout-button{border:1px solid #efd1c9;background:#fff6f3;color:#ab412a}

@media(max-width:760px){
  .chat-compose-row.without-attachment{grid-template-columns:minmax(0,1fr) 78px}
  .chat-compose-row.without-attachment>textarea{grid-column:1;min-width:0;width:100%;min-height:46px}
  .chat-compose-row.without-attachment>.chat-send-button{grid-column:2;min-width:0;width:78px;min-height:46px;padding:0 8px}
  .chat-compose-row.with-attachment{grid-template-columns:42px minmax(0,1fr) 72px}
  .chat-compose-row.with-attachment>textarea{min-width:0;width:100%;min-height:46px}
  .chat-compose-row.with-attachment>.chat-attach-button{min-width:42px;width:42px;min-height:46px}
  .chat-compose-row.with-attachment>.chat-send-button{min-width:0;width:72px;min-height:46px;padding:0 7px}
  .task-chat-form{width:100%;max-width:100%;overflow:hidden;box-sizing:border-box}
  .mobile-account-actions{grid-template-columns:1fr}
  .mobile-account-actions button{min-height:52px;font-size:14px}
  .mobile-account-identity{margin-top:28px;padding:16px}
  .mobile-account-identity h2{font-size:24px}.mobile-account-identity p{font-size:13px}
}

/* V27 · công tắc thông báo riêng theo task */
.task-notification-toggle{display:flex!important;align-items:center;gap:13px;box-sizing:border-box;border:1px solid #d9e1f7!important;border-radius:13px;background:#f4f7ff!important;padding:13px 14px!important;cursor:pointer}
.task-notification-toggle>input{appearance:none!important;-webkit-appearance:none!important;position:relative;flex:0 0 48px;width:48px!important;min-width:48px!important;max-width:48px!important;height:27px!important;min-height:27px!important;margin:0!important;padding:0!important;border:0!important;border-radius:999px!important;background:#c9c8c3!important;box-shadow:inset 0 0 0 1px rgba(0,0,0,.08)!important;cursor:pointer;transition:background .18s ease}
.task-notification-toggle>input::after{content:"";position:absolute;top:3px;left:3px;width:21px;height:21px;border-radius:50%;background:#fff;box-shadow:0 2px 7px rgba(0,0,0,.22);transition:transform .18s ease}
.task-notification-toggle>input:checked{background:#315fdd!important}
.task-notification-toggle>input:checked::after{transform:translateX(21px)}
.task-notification-toggle>input:focus-visible{outline:3px solid rgba(49,95,221,.25)!important;outline-offset:3px}
.task-notification-toggle>span{min-width:0}.task-notification-toggle b,.task-notification-toggle small{display:block}.task-notification-toggle b{color:#1c1c1c;font-size:11px}.task-notification-toggle small{margin-top:4px;color:#68708a;font-size:9px;line-height:1.5}
.notification-muted-banner{border-color:#dedbd4;background:#f2f1ed;color:#696762}
@media(max-width:760px){.task-notification-toggle{align-items:flex-start;padding:14px 12px!important}.task-notification-toggle>input{margin-top:2px!important}.task-notification-toggle b{font-size:12px}.task-notification-toggle small{font-size:10px}}

/* V28 · tải/lưu tệp trong TaskFlow và luôn có nút thoát */
.attachment-preview-head{position:sticky;top:0;z-index:6;margin:-4px -4px 0;padding:4px 4px 10px;background:#fff}
.attachment-preview-head .attachment-preview-exit{display:inline-flex;width:auto!important;min-width:82px;height:40px!important;align-items:center;justify-content:center;gap:6px;padding:0 13px!important;border-radius:11px;background:#171717;color:#fff;font-size:10px!important;font-weight:850;line-height:1;box-shadow:0 5px 14px rgba(0,0,0,.16)}
.attachment-preview-head .attachment-preview-exit>span{font-size:20px;line-height:1}
.attachment-save-button{border:0!important;background:#171717!important;color:#fff!important}
.attachment-save-button:disabled{opacity:.55}
.attachment-card>.download-attachment-button{color:#3156b5!important}
.attachment-card>.download-attachment-button:disabled,.chat-download-button:disabled{opacity:.5}
@media(max-width:760px){
  .attachment-preview-dialog{padding-top:max(18px,env(safe-area-inset-top))}
  .attachment-preview-head{margin:-3px 0 0;padding:3px 0 11px}
  .attachment-preview-head .attachment-preview-exit{position:sticky;top:0;z-index:7;min-width:96px;height:46px!important;padding:0 15px!important;font-size:12px!important}
  .attachment-preview-actions{z-index:7}
  .attachment-preview-actions .attachment-save-button{flex:1 1 100%;min-height:46px}
  .chat-attachment .chat-download-button{grid-column:3}
}

/* V29 · nhắc việc cá nhân và phân quyền quản trị theo từng chức năng */
.delegated-permission-note{margin:15px 0;border:1px solid #d9e1f7;border-radius:13px;background:#f4f7ff;color:#3e527b;padding:12px 14px;font-size:9px;font-weight:750;line-height:1.55}
.permission-check.permission-locked{opacity:.58;background:#f3f2ef;cursor:not-allowed}.permission-check.permission-locked input{cursor:not-allowed}
.personal-reminders-page{display:flex;flex-direction:column;gap:20px}
.personal-reminder-summary{display:grid;grid-template-columns:repeat(3,minmax(120px,180px)) minmax(280px,1fr);align-items:stretch;gap:12px;border:1px solid #e1ded7;border-radius:20px;background:rgba(255,255,255,.88);padding:14px;box-shadow:0 10px 28px rgba(30,28,23,.05)}
.personal-reminder-summary>span{display:flex;flex-direction:column;justify-content:center;border-radius:14px;background:#f5f3ee;padding:13px 15px}.personal-reminder-summary b{font-size:24px}.personal-reminder-summary small{color:#77736c;font-size:9px}.personal-reminder-summary>p{display:flex;align-items:center;margin:0;border-radius:14px;background:#eef4ff;color:#36517d;padding:14px 16px;font-size:10px;line-height:1.6}
.personal-reminder-section{display:flex;flex-direction:column;gap:10px}.personal-reminder-section.shared{margin-top:5px}.personal-reminder-list{display:grid;gap:10px}
.personal-reminder-card{display:grid;grid-template-columns:92px minmax(0,1fr) auto;gap:16px;align-items:center;border:1px solid #dfdcd5;border-left:5px solid #315fdd;border-radius:18px;background:rgba(255,255,255,.94);padding:16px 18px;box-shadow:0 8px 24px rgba(30,28,23,.045)}
.personal-reminder-card.reminder-due{border-left-color:#d14a33;background:#fff8f5}.personal-reminder-card.reminder-soon{border-left-color:#e4a52f;background:#fffaf0}.personal-reminder-card.completed{border-left-color:#48a378;opacity:.7}.personal-reminder-card.completed h3{text-decoration:line-through}
.personal-reminder-clock{display:grid;place-items:center;border-radius:14px;background:#f1f5ff;padding:12px 8px;color:#315fdd}.personal-reminder-clock>span{font-size:26px}.personal-reminder-clock>small{margin-top:4px;font-size:13px;font-weight:900}
.personal-reminder-content{min-width:0}.personal-reminder-content h3{margin:7px 0 4px;font-size:17px}.personal-reminder-content p{margin:0 0 7px;color:#68645e;font-size:11px;line-height:1.55;white-space:pre-wrap}.personal-reminder-content time{color:#77736c;font-size:10px;font-weight:750}
.personal-reminder-badges{display:flex;flex-wrap:wrap;gap:6px}.personal-reminder-badges i,.personal-reminder-badges em{border-radius:999px;background:#f0eee9;color:#69655f;padding:5px 8px;font-size:8px;font-style:normal;font-weight:800}.personal-reminder-badges em{background:#e8efff;color:#3156b5}.reminder-due .personal-reminder-badges em{background:#ffe3dc;color:#b5412d}.reminder-soon .personal-reminder-badges em{background:#fff0c9;color:#94620b}
.personal-reminder-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:7px;max-width:230px}.personal-reminder-actions button{min-height:38px;border:1px solid #ddd8d0;border-radius:10px;background:#fff;padding:0 11px;color:#242321;font-size:9px;font-weight:850;cursor:pointer}.personal-reminder-actions button:first-child{border-color:#cdd9fa;background:#eef3ff;color:#3156b5}.personal-reminder-actions button:disabled{opacity:.42;cursor:not-allowed}
.personal-empty{border:1px dashed #d8d4cb;border-radius:18px;background:rgba(255,255,255,.65);padding:42px 20px}
.personal-reminder-modal{max-width:760px}.personal-privacy-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.personal-switch{display:flex;align-items:flex-start;gap:12px;border:1px solid #d9e1f7;border-radius:15px;background:#f5f8ff;padding:15px;cursor:pointer}.personal-switch>input{appearance:none;-webkit-appearance:none;position:relative;flex:0 0 48px;width:48px!important;min-width:48px!important;height:27px!important;margin:1px 0 0!important;border:0!important;border-radius:999px!important;background:#c9c8c3!important;padding:0!important}.personal-switch>input::after{content:"";position:absolute;top:3px;left:3px;width:21px;height:21px;border-radius:50%;background:#fff;box-shadow:0 2px 7px rgba(0,0,0,.22);transition:transform .18s ease}.personal-switch>input:checked{background:#315fdd!important}.personal-switch>input:checked::after{transform:translateX(21px)}.personal-switch>input:disabled{opacity:.72}.personal-switch b,.personal-switch small{display:block}.personal-switch b{font-size:11px}.personal-switch small{margin-top:5px;color:#68708a;font-size:9px;line-height:1.5}
.personal-privacy-note{display:flex;gap:11px;border:1px solid #d9e7da;border-radius:14px;background:#f2faf3;padding:13px 15px}.personal-privacy-note>span{font-size:20px}.personal-privacy-note p{margin:0;color:#476250;font-size:9px;line-height:1.65}.personal-privacy-note b{display:block;color:#274631;font-size:10px}
@media(max-width:900px){.personal-reminder-summary{grid-template-columns:repeat(3,1fr)}.personal-reminder-summary>p{grid-column:1/-1}.personal-reminder-card{grid-template-columns:76px minmax(0,1fr)}.personal-reminder-actions{grid-column:1/-1;max-width:none;justify-content:flex-start;padding-left:92px}}
@media(max-width:760px){
  .personal-reminders-page{gap:15px}.personal-reminders-page .page-heading{gap:15px}.personal-reminders-page .page-heading>.primary-button{width:100%;min-height:48px}
  .personal-reminder-summary{grid-template-columns:repeat(3,1fr);gap:7px;padding:9px;border-radius:16px}.personal-reminder-summary>span{padding:10px 8px;text-align:center}.personal-reminder-summary b{font-size:21px}.personal-reminder-summary small{font-size:8px}.personal-reminder-summary>p{font-size:9px;padding:12px}
  .personal-reminder-card{grid-template-columns:58px minmax(0,1fr);gap:11px;padding:13px 12px;border-radius:15px}.personal-reminder-clock{padding:9px 4px}.personal-reminder-clock>span{font-size:22px}.personal-reminder-clock>small{font-size:11px}.personal-reminder-content h3{font-size:15px}.personal-reminder-content p{font-size:10px}.personal-reminder-actions{padding-left:69px;display:grid;grid-template-columns:1fr 1fr}.personal-reminder-actions button{min-height:42px}.personal-reminder-actions .danger-link{grid-column:1/-1}
  .personal-privacy-grid{grid-template-columns:1fr}.personal-switch{padding:13px 12px}.personal-switch b{font-size:12px}.personal-switch small{font-size:10px}
}

/* V30 · quyền nhắc việc, phạm vi thông báo việc khẩn và tối ưu hiển thị */
.urgent-recipient-toggle[hidden]{display:none!important}
.personal-reminder-badges .personal-reminder-notified{display:inline-flex;align-items:center;border-radius:999px;background:#fff0b9;color:#774d00;padding:5px 9px;font-size:8px;font-style:normal;font-weight:900;box-shadow:inset 0 0 0 1px #f2d57a}
.urgent-recipient-toggle{border-color:#f0c6bb!important;background:#fff4f1!important}.urgent-recipient-toggle>input:checked{background:#d04d35!important}.urgent-recipient-toggle small{color:#7f5a52}
.urgent-wide-notice{border-color:#f1c7bc;background:#fff1ed;color:#a13e2c}
.personal-reminder-alarm{position:fixed;right:22px;top:92px;z-index:1200;display:grid;grid-template-columns:58px minmax(0,1fr);gap:14px;width:min(430px,calc(100vw - 32px));box-sizing:border-box;border:1px solid #f1d17b;border-left:6px solid #e0a31f;border-radius:18px;background:#fff9e9;padding:17px 44px 17px 16px;color:#282117;box-shadow:0 22px 70px rgba(52,39,12,.24);animation:personalAlarmEnter .28s ease-out,personalAlarmPulse 1.25s ease-in-out 2}
.personal-alarm-bell{display:grid;width:58px;height:58px;place-items:center;border-radius:17px;background:#171717;color:#fff}.personal-alarm-bell .bell-icon{width:29px;height:29px;fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:2}
.personal-reminder-alarm>div{min-width:0}.personal-reminder-alarm small,.personal-reminder-alarm b,.personal-reminder-alarm p{display:block}.personal-reminder-alarm small{color:#9b6810;font-size:9px;font-weight:900;letter-spacing:.1em}.personal-reminder-alarm b{margin-top:5px;font-size:16px;line-height:1.3}.personal-reminder-alarm p{margin:5px 0 11px;color:#665a45;font-size:11px;line-height:1.45;overflow-wrap:anywhere}.personal-alarm-open{border:0;border-radius:9px;background:#171717;color:#fff;padding:9px 12px;font-size:9px;font-weight:850;cursor:pointer}.personal-alarm-close{position:absolute;right:10px;top:10px;width:30px;height:30px;border:0;border-radius:9px;background:#f1e5c5;color:#5d4b24;font-size:20px;cursor:pointer}.personal-reminder-alarm.personal-alarm-resting{animation:none;opacity:.94}
@keyframes personalAlarmEnter{from{opacity:0;transform:translateY(-14px) scale(.96)}to{opacity:1;transform:none}}@keyframes personalAlarmPulse{50%{box-shadow:0 22px 80px rgba(224,163,31,.42);transform:scale(1.015)}}
.bulk-task-card,.personal-reminder-card,.person-card,.notification-row{content-visibility:auto;contain-intrinsic-size:auto 120px}
@media(max-width:760px){.personal-reminder-alarm{left:10px;right:10px;top:max(12px,env(safe-area-inset-top));width:auto;grid-template-columns:46px minmax(0,1fr);gap:11px;padding:14px 40px 14px 12px}.personal-alarm-bell{width:46px;height:46px;border-radius:13px}.personal-alarm-bell .bell-icon{width:24px;height:24px}.personal-reminder-alarm b{font-size:14px}.personal-reminder-alarm p{font-size:10px}.personal-alarm-open{min-height:38px;font-size:10px}}
@media(prefers-reduced-motion:reduce){.personal-reminder-alarm{animation:none}}

/* V31 · gắn tên nhân sự trong chat công việc */
.task-chat-form{position:relative}
.chat-mention-toolbar{display:flex;align-items:center;gap:9px;margin:8px 10px 0}.chat-mention-toolbar>button{min-height:31px;border:1px solid #cdd9fa;border-radius:9px;background:#eef3ff;color:#3156b5;padding:0 10px;font-size:9px;font-weight:900;cursor:pointer}.chat-mention-toolbar>small{color:#74716b;font-size:8px;line-height:1.4}
.chat-mentioned-users{display:flex;flex-wrap:wrap;gap:6px;margin:7px 10px 0}.chat-mentioned-users>span{display:inline-flex;align-items:center;gap:5px;border:1px solid #cdd9fa;border-radius:999px;background:#eef3ff;color:#3156b5;padding:5px 5px 5px 9px;font-size:8px}.chat-mentioned-users b{font-weight:850}.chat-mentioned-users button{display:grid;width:19px;height:19px;place-items:center;border:0;border-radius:50%;background:#d8e3ff;color:#3156b5;padding:0;font-size:13px;line-height:1;cursor:pointer}
.chat-mention-picker{position:absolute;left:10px;right:10px;bottom:calc(100% - 12px);z-index:30;max-height:238px;overflow:auto;border:1px solid #d9d6cf;border-radius:14px;background:#fff;padding:6px;box-shadow:0 18px 54px rgba(25,25,25,.2)}.chat-mention-picker>button{display:grid;width:100%;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:9px;border:0;border-radius:10px;background:transparent;padding:8px;text-align:left;cursor:pointer}.chat-mention-picker>button:hover,.chat-mention-picker>button.active{background:#eef3ff}.chat-mention-picker>button>span{min-width:0}.chat-mention-picker b,.chat-mention-picker small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.chat-mention-picker b{font-size:10px}.chat-mention-picker small{margin-top:2px;color:#77736c;font-size:8px}.chat-mention-picker i{display:grid;width:27px;height:27px;place-items:center;border-radius:8px;background:#315fdd;color:#fff;font-size:13px;font-style:normal;font-weight:900}.chat-mention-empty{display:block;padding:14px;color:#77736c;text-align:center;font-size:9px}
.chat-message mark.chat-mention{border-radius:6px;background:#dfe8ff;color:#244da8;padding:2px 4px;font-weight:850}
@media(max-width:760px){
  .chat-mention-toolbar{margin:7px 7px 0}.chat-mention-toolbar>button{min-height:38px;font-size:10px}.chat-mention-toolbar>small{font-size:9px}
  .chat-mentioned-users{margin:7px 7px 0}.chat-mentioned-users>span{min-height:30px;box-sizing:border-box;font-size:9px}.chat-mentioned-users button{width:22px;height:22px}
  .chat-mention-picker{left:6px;right:6px;bottom:calc(100% - 8px);max-height:min(40vh,300px);padding:6px;border-radius:13px}.chat-mention-picker>button{min-height:48px;padding:7px}.chat-mention-picker b{font-size:12px}.chat-mention-picker small{font-size:9px}.chat-mention-picker i{width:31px;height:31px}
}

/* V32 · dán ảnh chụp màn hình hoặc tệp trực tiếp vào chat */
.chat-paste-hint{display:flex;align-items:center;gap:6px;margin:6px 11px 2px;color:#77736c;font-size:8px;line-height:1.45}.chat-paste-hint::first-letter{color:#3156b5}.chat-selected-file{animation:chatPasteReady .2s ease-out}.chat-selected-file[hidden]{animation:none}@keyframes chatPasteReady{from{opacity:.2;transform:translateY(4px)}to{opacity:1;transform:none}}
@media(max-width:760px){.chat-paste-hint{margin:6px 8px 3px;font-size:9px;white-space:normal}.floating-chat-form .chat-paste-hint{padding-bottom:max(2px,env(safe-area-inset-bottom))}}
@media(prefers-reduced-motion:reduce){.chat-selected-file{animation:none}}

/* V34 · đánh giá toàn bộ người tham gia và mở rộng gắn tên trong chat */
.performance-scope-strip{display:flex;align-items:flex-start;gap:11px;margin:0 0 16px;border:1px solid #cfe4d7;border-radius:14px;background:linear-gradient(135deg,#effaf3,#f7fbff);padding:14px 16px;color:#315b41}
.performance-scope-strip>span{display:grid;flex:0 0 31px;width:31px;height:31px;place-items:center;border-radius:9px;background:#2f8159;color:#fff;font-size:14px;font-weight:900}
.performance-scope-strip b,.performance-scope-strip small{display:block}.performance-scope-strip b{font-size:11px}.performance-scope-strip small{margin-top:4px;color:#557060;font-size:9px;line-height:1.6}
.flexible-response-panel{margin-top:16px;overflow:hidden}.flexible-response-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));border-top:1px solid var(--line)}
.flexible-response-card{display:grid;grid-template-columns:38px minmax(0,1fr) auto;align-items:center;gap:10px;border:0;border-right:1px solid var(--line);background:#fff;padding:16px;text-align:left;cursor:pointer}.flexible-response-card:hover{background:#fffaf0}.flexible-response-card:nth-child(3n){border-right:0}.flexible-response-card b,.flexible-response-card small{display:block}.flexible-response-card b{font-size:11px}.flexible-response-card span>small{margin-top:3px;color:#888;font-size:9px}.flexible-response-card>strong{font-size:18px;text-align:right}.flexible-response-card>strong small{margin-top:2px;font-size:8px}
.flexible-response-panel>footer{display:flex;align-items:center;justify-content:space-between;gap:16px;border-top:1px solid #eadfc1;background:#fffaf0;padding:13px 16px;color:#6d5625;font-size:9px}.flexible-response-panel>footer strong{color:#9a6812;font-size:16px}
.performance-kind-counts{display:flex;flex-wrap:wrap;gap:6px;margin:15px 0 -8px}.performance-kind-counts span{border-radius:999px;background:#f0f3fb;color:#425677;padding:5px 8px;font-size:8px;font-weight:850}
.response-explainer{display:flex;align-items:flex-start;gap:12px;margin:20px 0 14px;border:1px solid #eddbab;border-radius:13px;background:#fff9e9;padding:14px 16px}.response-explainer>span{display:grid;flex:0 0 30px;width:30px;height:30px;place-items:center;border-radius:9px;background:#d59b2a;color:#fff;font-size:15px}.response-explainer b{font-size:11px}.response-explainer p{margin:4px 0 0;color:#75623c;font-size:9px;line-height:1.6}
.reception-grid{margin-top:0}.reception-card .health-dot.performance-good{background:#e5f4eb;color:#287653}.reception-card .health-dot.performance-warning{background:#fff3d7;color:#946414}.reception-card .health-dot.performance-danger{background:#ffe7e1;color:#bd4329}.reception-card .health-dot.performance-neutral{background:#f0efeb;color:#777}.reception-card .reception-score>i em{background:#d59b2a}
.reception-stats{display:grid;grid-template-columns:repeat(3,1fr);border-top:1px solid #eee;border-bottom:1px solid #eee;padding:14px 0}.reception-stats span+span{border-left:1px solid #eee;padding-left:16px}.reception-stats b,.reception-stats small{display:block}.reception-stats b{font-size:15px}.reception-stats small{margin-top:3px;color:#888;font-size:8px}
@media(max-width:1280px){.flexible-response-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.flexible-response-card:nth-child(3n){border-right:1px solid var(--line)}.flexible-response-card:nth-child(2n){border-right:0}}
@media(max-width:760px){.performance-scope-strip,.response-explainer{padding:13px}.performance-scope-strip b,.response-explainer b{font-size:12px}.performance-scope-strip small,.response-explainer p{font-size:10px}.flexible-response-grid{grid-template-columns:1fr}.flexible-response-card,.flexible-response-card:nth-child(2n),.flexible-response-card:nth-child(3n){border-right:0;border-bottom:1px solid var(--line)}.flexible-response-panel>footer{align-items:flex-start}.performance-kind-counts span{font-size:9px}.reception-stats small{font-size:9px}}

/* V35 · private SM workflow reminders */
.sm-work-page{padding-bottom:30px}.sm-private-chip{align-self:flex-start;border:1px solid #dbc996;border-radius:999px;background:#fff9e7;color:#765c18;padding:9px 13px;font-size:9px;font-weight:850;white-space:nowrap}.sm-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:20px 0 14px}.sm-summary button{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:78px;border:1px solid #e6e1d4;border-radius:14px;background:#fff;padding:15px 17px;text-align:left;cursor:pointer;box-shadow:0 5px 18px rgba(34,28,12,.03)}.sm-summary button:hover{border-color:#cdbb86;background:#fffdf7}.sm-summary b{font-size:26px;letter-spacing:-.04em}.sm-summary small{color:#807968;font-size:9px;font-weight:800;text-transform:uppercase;letter-spacing:.06em}.sm-toolbar{display:grid;grid-template-columns:minmax(260px,1fr) 210px 175px;gap:9px;margin-bottom:22px}.sm-toolbar label{display:flex;align-items:center;gap:8px;border:1px solid #dedbd2;border-radius:11px;background:#fff;padding:0 12px}.sm-toolbar input,.sm-toolbar select{width:100%;min-width:0;border:1px solid #dedbd2;border-radius:11px;background:#fff;padding:11px 12px;color:#292929;font-size:10px}.sm-toolbar label input{border:0;padding-left:0;outline:0}.sm-category-section{margin-top:20px}.sm-work-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.sm-work-card{position:relative;display:flex;flex-direction:column;min-width:0;border:1px solid #e5e1d8;border-radius:16px;background:#fff;padding:18px;box-shadow:0 8px 25px rgba(32,26,12,.035);overflow:hidden}.sm-work-card:before{content:"";position:absolute;inset:0 auto 0 0;width:4px;background:#bba45f}.sm-work-card.sm-due:before{background:#e35238}.sm-work-card.sm-soon:before{background:#e2a326}.sm-work-card.sm-upcoming:before{background:#4d7bc6}.sm-work-card.is-disabled{opacity:.7;background:#f6f5f1}.sm-card-top{display:flex;align-items:center;justify-content:space-between;gap:10px}.sm-category{border-radius:999px;background:#f0ede3;color:#665d42;padding:5px 8px;font-size:8px;font-weight:850}.sm-timing{font-style:normal;color:#6e6a61;font-size:8px;font-weight:850}.sm-due .sm-timing{color:#c4412b}.sm-soon .sm-timing{color:#986817}.sm-work-card h3{margin:13px 0 7px;font-size:15px;line-height:1.35}.sm-work-card>p{min-height:48px;margin:0;color:#6d6b66;font-size:9px;line-height:1.65}.sm-meta{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:15px 0}.sm-meta>span{display:grid;grid-template-columns:22px minmax(0,1fr);column-gap:7px;align-content:start;border-radius:10px;background:#f7f6f2;padding:10px}.sm-meta i{grid-row:1/3;display:grid;width:22px;height:22px;place-items:center;border-radius:7px;background:#ece8dc;color:#765f22;font-style:normal}.sm-meta b,.sm-meta small{display:block;min-width:0}.sm-meta b{font-size:8px;line-height:1.4}.sm-meta small{margin-top:3px;color:#888;font-size:8px;line-height:1.45}.sm-last-done{margin:-4px 0 12px;color:#347553;font-size:8px;font-weight:750}.sm-card-actions{display:flex;flex-wrap:wrap;gap:7px;margin-top:auto;padding-top:4px}.sm-card-actions a,.sm-card-actions button{border:1px solid #ddd8ca;border-radius:9px;background:#fff;color:#37342d;padding:8px 9px;font-size:8px;font-weight:800;text-decoration:none;cursor:pointer}.sm-card-actions a{color:#315f9d}.sm-card-actions button:hover,.sm-card-actions a:hover{border-color:#b9a665;background:#fffaf0}.sm-card-actions .sm-complete{border-color:#b9ddc9;background:#eef9f2;color:#26734d}.sm-card-actions .sm-toggle{margin-left:auto;color:#777}.sm-empty{min-height:230px}.sm-schedule-modal .sm-modal-note{display:flex;justify-content:space-between;gap:14px;border:1px solid #e8dfc6;border-radius:10px;background:#fffaf0;padding:12px}.sm-schedule-modal .sm-modal-note b,.sm-schedule-modal .sm-modal-note span{font-size:9px}.sm-schedule-modal .sm-modal-note span{color:#78653c;text-align:right}
.sm-heading-actions{display:grid;justify-items:end;gap:10px}.sm-heading-actions .primary-button,.sm-heading-actions .secondary-button{min-height:38px}.sm-card-actions .sm-edit{border-color:#cbd8ee;background:#f3f7ff;color:#315f9d}.sm-work-card.sm-done{opacity:1;border-color:#cde3d5;background:#f7fcf9}.sm-work-card.sm-done:before{background:#38a16d}.sm-done .sm-timing{color:#28754f}.sm-edit-modal .help{display:block;margin-top:4px;color:#8a877f;font-size:8px;font-weight:600;line-height:1.4}.sm-today-date{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:10px;border:1px solid #e1dac4;border-radius:13px;background:#fffaf0;padding:12px 15px;color:#6d5b2c}.sm-today-date span{border-radius:999px;background:#e9d995;padding:5px 8px;font-size:8px;font-weight:900;text-transform:uppercase}.sm-today-date b{font-size:11px;text-transform:capitalize}.sm-today-date small{color:#8a7d5d;font-size:8px}.sm-today-summary .sm-today-metric{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:78px;border:1px solid #e6e1d4;border-radius:14px;background:#fff;padding:15px 17px;box-shadow:0 5px 18px rgba(34,28,12,.03)}.sm-today-summary .sm-today-metric.warning{border-color:#efc5bb;background:#fff7f5}.sm-today-summary .sm-today-metric.done{border-color:#c8e3d2;background:#f5fbf7}.sm-today-section{margin-top:24px}.sm-today-empty{min-height:190px;margin-top:18px;border:1px dashed #cddfcf;border-radius:16px;background:#f7fcf8}.sm-today-empty>span{background:#dff3e6;color:#28754f}
@media(max-width:1050px){.sm-work-grid{grid-template-columns:1fr}.sm-toolbar{grid-template-columns:1fr 1fr}.sm-toolbar label{grid-column:1/-1}}
@media(max-width:760px){.sm-work-page .page-heading{display:block}.sm-heading-actions{justify-items:start;margin-top:12px}.sm-private-chip{display:inline-block}.sm-heading-actions .primary-button,.sm-heading-actions .secondary-button{width:100%}.sm-summary{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.sm-summary button,.sm-today-summary .sm-today-metric{min-height:67px;padding:12px}.sm-summary b{font-size:22px}.sm-summary small{font-size:8px;text-align:right}.sm-toolbar{grid-template-columns:1fr 1fr}.sm-work-card{padding:16px}.sm-work-card>p{min-height:0;font-size:10px}.sm-meta{grid-template-columns:1fr}.sm-meta b,.sm-meta small,.sm-last-done{font-size:9px}.sm-card-actions a,.sm-card-actions button{font-size:9px;padding:9px}.sm-card-actions .sm-toggle{margin-left:0}.sm-today-date{grid-template-columns:1fr}.sm-today-date small{font-size:9px}.sm-edit-modal .help{font-size:9px}}

/* V37 · tiến độ riêng cho từng người trong task nhiều nhân sự */
.participant-progress-panel{margin:0 0 18px;border:1px solid #d9e1f2;border-radius:15px;background:linear-gradient(180deg,#f7f9ff,#fff);padding:16px}
.participant-progress-heading{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:15px;align-items:start}.participant-progress-heading small,.participant-progress-heading h3,.participant-progress-heading p,.participant-progress-heading strong{display:block}.participant-progress-heading>div>small{color:#5e75aa;font-size:8px;font-weight:900;letter-spacing:.08em}.participant-progress-heading h3{margin:4px 0 5px;font-size:14px}.participant-progress-heading p{margin:0;color:#697186;font-size:9px;line-height:1.55}.participant-progress-heading>strong{color:#315fdd;font-size:23px;text-align:right}.participant-progress-heading>strong small{margin-top:2px;color:#68708a;font-size:8px;font-weight:750}
.participant-progress-list{display:grid;gap:10px;margin-top:14px}.participant-progress-row{display:block;border:1px solid #e1e5ee;border-radius:13px;background:#fff;padding:13px}.participant-progress-row.is-editable{border-color:#cdd9fa;box-shadow:0 5px 16px rgba(49,95,221,.05)}
.participant-progress-person{display:grid;grid-template-columns:30px minmax(0,1fr) auto;gap:9px;align-items:center}.participant-progress-person .avatar{width:30px;height:30px}.participant-progress-person b,.participant-progress-person small{display:block}.participant-progress-person b{font-size:10px}.participant-progress-person b em{display:inline-block;margin-left:4px;border-radius:999px;background:#e7efff;color:#3156b5;padding:3px 6px;font-size:7px;font-style:normal}.participant-progress-person small{margin-top:2px;color:#8a8990;font-size:8px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.participant-progress-person>strong{font-size:15px}
.participant-progress-bar{margin-top:10px}.participant-progress-bar>i{display:block;height:7px;overflow:hidden;border-radius:999px;background:#e9eaf0}.participant-progress-bar>i>em{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#315fdd,#5f83e6);transition:width .2s ease}.participant-progress-bar>small{display:block;margin-top:5px;color:#777b86;font-size:8px}
.participant-progress-row>label{display:block;margin-top:11px;color:#464b58;font-size:9px;font-weight:800}.participant-progress-row select,.participant-progress-row textarea{width:100%;box-sizing:border-box;margin-top:5px;border:1px solid #dcdfe8;border-radius:9px;background:#fff;padding:9px;color:#252831;font-size:10px}.participant-progress-row textarea{resize:vertical}.participant-save-button{width:100%;min-height:37px;margin-top:10px;border:0;border-radius:9px;background:#315fdd;color:#fff;font-size:9px;font-weight:900;cursor:pointer}.participant-note{margin:9px 0 0;border-radius:8px;background:#f5f5f3;color:#666;padding:9px;font-size:9px;line-height:1.5;white-space:pre-wrap}

/* V44 · Rich task descriptions */
.rich-description-toolbar{display:flex;align-items:center;gap:6px;margin-top:7px;padding:6px;border:1px solid #dedcd5;border-bottom:0;border-radius:9px 9px 0 0;background:#f7f6f2}.rich-description-toolbar button{min-width:34px;height:32px;border:1px solid #d9d6cf;border-radius:7px;background:#fff;color:#343434;padding:0 9px;font-size:12px;font-weight:800;cursor:pointer}.rich-description-toolbar button:first-child{display:flex;align-items:center;gap:5px;min-width:auto}.rich-description-toolbar button:first-child span{font-size:9px}.rich-description-toolbar button mark{border-radius:3px;background:#ffe082;padding:1px 4px}.rich-description-toolbar+textarea.rich-description-textarea{margin-top:0!important;border-radius:0 0 9px 9px!important;min-height:110px;line-height:1.55}.rich-description-output{overflow-wrap:anywhere}.rich-description-output strong{font-weight:850;color:#313131}.rich-description-output em{font-style:italic}.rich-description-output mark{border-radius:4px;background:#fff09d;color:#3d3520;padding:1px 3px;box-decoration-break:clone;-webkit-box-decoration-break:clone}
@media(max-width:760px){.rich-description-toolbar{position:sticky;top:0;z-index:2;overflow-x:auto}.rich-description-toolbar button{min-width:42px;height:38px;font-size:15px}.rich-description-toolbar button:first-child span{font-size:10px}.rich-description-toolbar+textarea.rich-description-textarea{min-height:145px!important;font-size:16px!important}}

/* V46 · Grouped personal tasks and quick completion */
.task-table-head,.task-table-row{grid-template-columns:minmax(310px,1.55fr) 100px 120px 120px 130px 108px 18px}.quick-complete-button{justify-self:end;min-height:34px;border:1px solid #a9d7bd;border-radius:9px;background:#edf8f2;color:#23704c;padding:7px 10px;font-size:9px;font-weight:850;white-space:nowrap;cursor:pointer}.quick-complete-button:hover{border-color:#6fbe91;background:#dff3e8}.quick-complete-button:disabled{opacity:.6;cursor:wait}.quick-complete-space{display:block}.personal-task-groups{display:grid;gap:22px}.personal-task-group>.section-title-row{margin-bottom:9px}.personal-task-group>.section-title-row>span{display:grid;place-items:center;min-width:30px;height:30px;border-radius:9px;background:#f0efeb;color:#555;font-size:10px;font-weight:850}.task-group-empty{padding:22px;color:#89857d;text-align:center;font-size:10px}.task-name-cell small{line-height:1.5}
@media(max-width:1150px){.task-table-head,.task-table-row{grid-template-columns:minmax(250px,1.5fr) 90px 100px 110px 105px 18px}}
@media(max-width:760px){.personal-task-groups{gap:20px}.personal-task-group>.section-title-row{align-items:flex-end}.task-table-row{grid-template-columns:minmax(0,1fr) auto;padding:15px 14px}.task-table-row>.quick-complete-button{grid-column:2;grid-row:1;align-self:start;min-height:36px;padding:8px 10px;font-size:9px}.task-table-row>.quick-complete-space{display:none}.task-table-row:has(.quick-complete-button)>.row-arrow{display:none}.task-table-row>.row-arrow{grid-column:2;grid-row:1}.task-table-row>.due-badge{grid-column:1;grid-row:2}.task-table-row>.status-badge{grid-column:2;grid-row:2}.task-name-cell b{padding-right:5px}.task-name-cell small{font-size:9px;line-height:1.55}}

/* V48 · Horizontal personal work categories */
.personal-task-group-tabs{display:flex;gap:9px;margin:0 0 16px;overflow-x:auto;padding:2px 2px 8px;scrollbar-width:thin}.personal-task-group-tabs button{display:flex;flex:1 0 190px;align-items:center;gap:8px;min-height:48px;border:1px solid #dedbd2;border-radius:13px;background:#fff;padding:10px 12px;color:#5d5951;text-align:left;white-space:nowrap;cursor:pointer}.personal-task-group-tabs button.active{border-color:#292929;background:#242424;color:#fff;box-shadow:0 7px 18px rgba(0,0,0,.13)}.personal-task-group-tabs button>span{font-size:15px}.personal-task-group-tabs button>b{font-size:9px}.personal-task-group-tabs button>i{display:grid;min-width:23px;height:23px;margin-left:auto;place-items:center;border-radius:999px;background:#eeece6;color:#65615a;font-size:8px;font-style:normal}.personal-task-group-tabs button.active>i{background:#fff;color:#222}.employee-filter{grid-template-columns:minmax(0,1fr) 190px auto}.employee-filter .filter-search{grid-column:auto}.employee-scope-tabs{overflow-x:auto;justify-content:flex-start}.employee-scope-tabs button{flex:0 0 auto}
@media(max-width:760px){.personal-task-group-tabs{margin-left:-14px;margin-right:-14px;padding:2px 14px 9px}.personal-task-group-tabs button{flex-basis:auto;min-width:max-content;min-height:43px}.personal-task-group-tabs button>b{font-size:9px}.employee-filter{display:grid;grid-template-columns:1fr 1fr}.employee-filter .filter-search{grid-column:1/-1}.employee-scope-tabs{margin-left:-14px;margin-right:-14px;padding-left:14px;padding-right:14px}.employee-scope-tabs button{min-height:44px}}

/* V49 · Show every selector without horizontal scrolling */
.employee-scope-tabs{display:flex;flex-wrap:wrap;overflow:visible}.employee-scope-tabs button{flex:1 1 180px;justify-content:center;white-space:normal;text-align:center}.personal-task-group-tabs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));overflow:visible;padding:2px}.personal-task-group-tabs button{min-width:0;flex:none;white-space:normal}.personal-task-group-tabs button>b{line-height:1.35}
@media(max-width:760px){.employee-scope-tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));margin-left:0;margin-right:0;padding:5px;overflow:visible}.employee-scope-tabs button{width:100%;min-width:0;min-height:48px;padding:8px 7px;white-space:normal;line-height:1.35}.employee-scope-tabs button:last-child{grid-column:1/-1}.personal-task-group-tabs{grid-template-columns:repeat(2,minmax(0,1fr));margin-left:0;margin-right:0;padding:2px;overflow:visible}.personal-task-group-tabs button{width:100%;min-width:0;min-height:48px;padding:8px}.personal-task-group-tabs button>b{white-space:normal}.employee-filter .filter-search{grid-column:1/-1;width:auto}}

/* V50 · Clickable overview metrics and event-task counting */
button.kpi-card{width:100%;color:inherit;font:inherit;text-align:left;cursor:pointer}.kpi-link{transition:transform .16s ease,border-color .16s ease,box-shadow .16s ease}.kpi-link:hover{transform:translateY(-2px);border-color:#bbb6ab;box-shadow:0 9px 22px rgba(30,26,15,.08)}.kpi-link:active{transform:none}.smart-task-filter-banner{display:grid;grid-template-columns:34px minmax(0,1fr) auto;align-items:center;gap:11px;margin:0 0 15px;border:1px solid #cbd8f5;border-radius:13px;background:#f1f5ff;padding:12px 14px;color:#34558c}.smart-task-filter-banner>span{display:grid;width:31px;height:31px;place-items:center;border-radius:9px;background:#315fdd;color:#fff;font-size:16px}.smart-task-filter-banner b,.smart-task-filter-banner small{display:block}.smart-task-filter-banner b{font-size:11px}.smart-task-filter-banner small{margin-top:3px;color:#687a9c;font-size:9px}.smart-task-filter-banner button{border:1px solid #c4d1ef;border-radius:9px;background:#fff;color:#3156b5;padding:8px 10px;font-size:9px;font-weight:850;cursor:pointer}
@media(max-width:760px){.kpi-link{min-height:125px}.smart-task-filter-banner{grid-template-columns:30px minmax(0,1fr);padding:11px}.smart-task-filter-banner button{grid-column:2;justify-self:start}.smart-task-filter-banner b{font-size:10px}.smart-task-filter-banner small{font-size:8px}}

/* V53 · Audit history cleanup */
.audit-heading-actions{display:flex;align-items:center;gap:8px}.audit-heading-actions .danger-outline{min-height:38px;border:1px solid #e3b6ad;border-radius:11px;background:#fff5f2;color:#b23f2b;padding:9px 13px;font-size:10px;font-weight:850;cursor:pointer}.audit-cleanup-modal{width:min(590px,calc(100vw - 24px))}.audit-cleanup-modal>p:not(.eyebrow){color:#68645e;font-size:11px;line-height:1.6}.audit-cleanup-warning{display:flex;align-items:flex-start;gap:10px;margin:14px 0;border:1px solid #efc6bc;border-radius:12px;background:#fff5f2;padding:12px;color:#8e3b2c}.audit-cleanup-warning>span{display:grid;flex:0 0 25px;width:25px;height:25px;place-items:center;border-radius:7px;background:#c94831;color:#fff;font-weight:900}.audit-cleanup-warning small{font-size:9px;line-height:1.55}.audit-cleanup-modal .danger-button{border:0;border-radius:10px;background:#c7442e;color:#fff;padding:11px 15px;font-size:10px;font-weight:850;cursor:pointer}.audit-cleanup-modal .danger-button:disabled{opacity:.6;cursor:wait}.audit-action.audit-audit_cleanup{background:#fff0d6;color:#946114}
@media(max-width:760px){.audit-page .page-heading{display:block}.audit-heading-actions{margin-top:13px}.audit-heading-actions button{flex:1}.audit-cleanup-modal>p:not(.eyebrow){font-size:10px}.audit-cleanup-warning small{font-size:9px}}

/* V54 · Linked run cleanup and progress reminder */
.flex-run-list>span>small{display:grid;gap:3px}.flex-run-list>span>small strong{width:max-content;border-radius:999px;background:#fff0e8;color:#b34931;padding:3px 7px;font-size:8px}.flex-run-list>span>small strong.complete{background:#e9f6ef;color:#28714e}.flex-run-actions{flex-wrap:wrap;justify-content:flex-end}.flex-run-actions .remind-link{border-color:#b9c9ef;background:#f1f5ff;color:#3158ad}.flex-delete-warning{display:grid;gap:5px;margin:14px 0;border:1px solid #efb7a9;border-radius:12px;background:#fff2ee;padding:12px;color:#913b2b}.flex-delete-warning small{line-height:1.5}
@media(max-width:600px){.flex-run-actions{justify-content:flex-start}.flex-run-actions button{min-height:34px}.flex-delete-warning{font-size:11px}}

/* V59 · Fixed NEW dd/mm : ITTO - 0000 entry */
.flex-trigger-modal .new-arrival-entry{display:grid;gap:8px;margin:18px 0}.new-arrival-input{display:grid;grid-template-columns:auto 52px auto 52px auto minmax(70px,1fr);align-items:center;min-height:58px;overflow:hidden;border:2px solid #d9d3c8;border-radius:14px;background:#fff}.new-arrival-input:focus-within{border-color:#181818;outline:3px solid rgba(24,24,24,.08)}.new-arrival-input>b{align-self:stretch;display:grid;place-items:center;background:#181818;color:#fff;padding:0 16px;font-size:17px;letter-spacing:.04em}.new-arrival-input>strong{white-space:nowrap;font-size:17px}.new-arrival-input>input{min-width:0;width:100%;height:100%;border:0;outline:0;background:#f7f6f2;padding:0 8px;text-align:center;font-size:18px;font-weight:850;letter-spacing:.06em}.new-arrival-input>input:focus{background:#fff4d8}.new-arrival-entry>small{color:#777169;font-size:10px;font-weight:500}.new-arrival-entry>small b{color:#2f2c28}
@media(max-width:600px){.flex-trigger-modal .new-arrival-entry{margin:16px 0}.new-arrival-input{grid-template-columns:auto 42px auto 42px auto minmax(62px,1fr);min-height:56px}.new-arrival-input>b{padding:0 10px}.new-arrival-input>b,.new-arrival-input>input,.new-arrival-input>strong{font-size:14px}.new-arrival-input>input{padding:0 4px}}

/* V58 · Colorful navigation emoji */
.nav-icon,.mobile-nav button>span{font-family:"Apple Color Emoji","Segoe UI Emoji","Noto Color Emoji",sans-serif;font-style:normal;filter:none}.nav-icon{display:inline-grid;flex:0 0 25px;width:25px;place-items:center;font-size:20px}.mobile-nav button>span{font-size:19px}

/* V60 · Expand full allocation history */
.flex-run-list .flex-run-older{display:none}.flex-run-list.is-expanded .flex-run-older{display:flex}.flex-run-list>b>small{color:#817c73;font-size:9px}.flex-runs-toggle{width:100%;min-height:42px;margin-top:5px;border:1px solid #d9d3c8;border-radius:11px;background:#fff;color:#3158ad;font-size:10px;font-weight:850;cursor:pointer}.flex-runs-toggle:hover{background:#f1f5ff}

/* V62 · Drill down from allocation to task progress */
.flex-run-status{display:flex;width:max-content;align-items:center;gap:5px;border:0;border-radius:999px;background:#fff0e8;color:#b34931;padding:4px 8px;font-size:8px;font-weight:850;cursor:pointer}.flex-run-status.complete{background:#e9f6ef;color:#28714e}.flex-run-status i{font-size:13px;font-style:normal;line-height:.7}.flex-run-status:hover{filter:brightness(.97);box-shadow:0 0 0 2px rgba(49,88,173,.12)}.flex-run-tasks-modal{width:min(680px,calc(100vw - 24px));max-height:90vh;overflow:auto}.flex-run-tasks-modal>p:not(.eyebrow){color:#706b63;font-size:11px;line-height:1.55}.flex-run-task-list{display:grid;gap:9px;margin:17px 0}.flex-run-task-list>button{display:grid;grid-template-columns:minmax(0,1fr) auto 16px;align-items:center;gap:11px;width:100%;border:1px solid #e2ddd4;border-radius:13px;background:#fff;padding:13px;text-align:left;cursor:pointer}.flex-run-task-list>button:hover{border-color:#a9bce9;background:#f5f8ff}.flex-run-task-list span b,.flex-run-task-list span small,.flex-run-task-list em strong,.flex-run-task-list em small{display:block}.flex-run-task-list span b{font-size:11px}.flex-run-task-list span small{margin-top:5px;color:#777169;font-size:9px;line-height:1.45}.flex-run-task-list em{font-style:normal;text-align:right}.flex-run-task-list em strong{font-size:14px}.flex-run-task-list em small{margin-top:3px;color:#777169;font-size:8px}.flex-run-task-list>button>i{color:#999;font-size:20px;font-style:normal}.flex-run-task-empty{border-radius:12px;background:#f6f4ef;padding:24px;text-align:center;color:#777169;font-size:10px}
@media(max-width:600px){.flex-run-task-list>button{padding:12px 10px}.flex-run-task-list span b{font-size:12px}.flex-run-task-list span small{font-size:9px}.flex-run-status{min-height:27px;font-size:9px}}

/* V63 · Clear employee scope cards */
.employee-scope-picker{margin:14px 0 18px;border:1px solid #e2ded5;border-radius:20px;background:#f8f7f3;padding:15px}.employee-scope-heading{display:flex;align-items:center;gap:10px;margin:0 2px 13px}.employee-scope-heading>span{display:grid;flex:0 0 34px;width:34px;height:34px;place-items:center;border-radius:11px;background:#fff;box-shadow:0 3px 10px rgba(30,30,30,.07);font-size:17px}.employee-scope-heading b,.employee-scope-heading small{display:block}.employee-scope-heading b{font-size:12px}.employee-scope-heading small{margin-top:3px;color:#777169;font-size:9px}.employee-scope-picker .employee-scope-tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:0;padding:0;border:0;border-radius:0;background:transparent}.employee-scope-picker .employee-scope-tabs button{position:relative;display:grid;grid-template-columns:42px minmax(0,1fr) auto;align-items:center;gap:10px;min-height:72px;width:100%;border:1px solid var(--scope-border,#ddd8cf);border-radius:15px;background:var(--scope-bg,#fff);padding:11px 12px;color:#262522;text-align:left;box-shadow:0 4px 12px rgba(34,31,24,.04);cursor:pointer}.employee-scope-picker .employee-scope-tabs button:hover{transform:translateY(-1px);box-shadow:0 7px 17px rgba(34,31,24,.08)}.employee-scope-picker .scope-icon{display:grid;width:42px;height:42px;place-items:center;border-radius:13px;background:var(--scope-icon-bg,#eee);font-size:20px}.employee-scope-picker .scope-copy b,.employee-scope-picker .scope-copy small{display:block}.employee-scope-picker .scope-copy b{font-size:11px;line-height:1.3}.employee-scope-picker .scope-copy small{margin-top:4px;color:#6f6a62;font-size:8px;line-height:1.35}.employee-scope-picker .employee-scope-tabs button>i{display:grid;min-width:27px;height:27px;margin:0;place-items:center;border-radius:999px;background:#fff;color:#3f3b35;font-size:9px;font-style:normal;box-shadow:0 2px 7px rgba(35,32,27,.08)}.employee-scope-picker .employee-scope-tabs button>em{display:none;position:absolute;right:8px;top:8px;width:19px;height:19px;place-items:center;border-radius:50%;background:var(--scope-accent,#315fdd);color:#fff;font-size:10px;font-style:normal}.employee-scope-picker .employee-scope-tabs button.active{border:2px solid var(--scope-accent,#315fdd);background:var(--scope-active,#f3f6ff);color:#171717;box-shadow:0 8px 20px color-mix(in srgb,var(--scope-accent,#315fdd) 18%,transparent)}.employee-scope-picker .employee-scope-tabs button.active>em{display:grid}.employee-scope-picker .employee-scope-tabs button.active>i{background:var(--scope-accent,#315fdd);color:#fff}.employee-scope-picker .scope-my-all{--scope-bg:#f3f7ff;--scope-active:#eaf1ff;--scope-border:#ccdaf6;--scope-icon-bg:#dce8ff;--scope-accent:#3569cc}.employee-scope-picker .scope-my-open{--scope-bg:#fff8ed;--scope-active:#fff2dc;--scope-border:#efd8af;--scope-icon-bg:#ffe7bd;--scope-accent:#c67b18}.employee-scope-picker .scope-my-today{--scope-bg:#fff3f1;--scope-active:#ffeae6;--scope-border:#edc5bd;--scope-icon-bg:#ffdcd5;--scope-accent:#c84d38}.employee-scope-picker .scope-my-done{--scope-bg:#eff9f3;--scope-active:#e4f6eb;--scope-border:#bfdfca;--scope-icon-bg:#d4efde;--scope-accent:#2d8256}.employee-scope-picker .scope-store{grid-column:1/-1;--scope-bg:#f3f0fb;--scope-active:#ece7fa;--scope-border:#d6cdea;--scope-icon-bg:#e1d9f4;--scope-accent:#7252aa}.employee-scope-picker .scope-store .scope-copy b{font-size:12px}
@media(max-width:600px){.employee-scope-picker{margin-left:0;margin-right:0;padding:12px;border-radius:17px}.employee-scope-heading{margin-bottom:11px}.employee-scope-heading b{font-size:12px}.employee-scope-heading small{font-size:9px}.employee-scope-picker .employee-scope-tabs{grid-template-columns:1fr;gap:8px}.employee-scope-picker .scope-store{grid-column:auto}.employee-scope-picker .employee-scope-tabs button{grid-template-columns:40px minmax(0,1fr) auto;min-height:66px;padding:9px 11px}.employee-scope-picker .scope-icon{width:40px;height:40px;font-size:19px}.employee-scope-picker .scope-copy b{font-size:12px}.employee-scope-picker .scope-copy small{font-size:9px}}

/* V64 · Linked two-step task navigation */
.personal-task-groups{position:relative;scroll-margin-top:90px}.task-category-connector{height:26px;display:grid;place-items:center}.task-category-connector>span{display:grid;width:26px;height:26px;place-items:center;border-radius:50%;background:#262626;color:#fff;font-size:14px;box-shadow:0 4px 11px rgba(0,0,0,.13)}.task-category-heading{display:flex;align-items:center;gap:10px;margin:0 2px 12px}.task-category-heading>span{display:grid;flex:0 0 34px;width:34px;height:34px;place-items:center;border-radius:11px;background:#262626;color:#fff;font-size:12px;font-weight:900}.task-category-heading b,.task-category-heading small{display:block}.task-category-heading b{font-size:12px}.task-category-heading small{margin-top:3px;color:#777169;font-size:9px}.personal-task-groups .personal-task-group-tabs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px;margin:0 0 18px;padding:0;overflow:visible}.personal-task-groups .personal-task-group-tabs button{position:relative;display:grid;grid-template-columns:38px minmax(0,1fr) auto;align-items:center;gap:8px;min-width:0;min-height:66px;border:1px solid var(--group-border,#ddd8cf);border-radius:14px;background:var(--group-bg,#fff);padding:10px;color:#292723;text-align:left;white-space:normal;box-shadow:0 4px 12px rgba(34,31,24,.04);cursor:pointer}.personal-task-groups .personal-task-group-tabs button:hover{transform:translateY(-1px);box-shadow:0 7px 16px rgba(34,31,24,.08)}.personal-task-groups .personal-task-group-tabs button>span:first-child{display:grid;width:38px;height:38px;place-items:center;border-radius:11px;background:var(--group-icon-bg,#eee);font-size:18px}.personal-task-groups .task-group-tab-copy{min-width:0;font-size:inherit!important}.personal-task-groups .task-group-tab-copy b,.personal-task-groups .task-group-tab-copy small{display:block}.personal-task-groups .task-group-tab-copy b{font-size:9px;line-height:1.3}.personal-task-groups .task-group-tab-copy small{margin-top:3px;color:#6e6961;font-size:7px;line-height:1.35}.personal-task-groups .personal-task-group-tabs button>i{display:grid;min-width:24px;height:24px;margin:0;place-items:center;border-radius:999px;background:#fff;color:#514c45;font-size:8px;font-style:normal}.personal-task-groups .personal-task-group-tabs button>em{display:none;position:absolute;right:6px;top:5px;width:17px;height:17px;place-items:center;border-radius:50%;background:var(--group-accent,#333);color:#fff;font-size:8px;font-style:normal}.personal-task-groups .personal-task-group-tabs button.active{border:2px solid var(--group-accent,#333);background:var(--group-active,#f5f5f5);color:#1d1d1d;box-shadow:0 7px 18px rgba(25,25,25,.1)}.personal-task-groups .personal-task-group-tabs button.active>i{background:var(--group-accent,#333);color:#fff}.personal-task-groups .personal-task-group-tabs button.active>em{display:grid}.personal-task-groups .task-group-fixed{--group-bg:#f2f6ff;--group-active:#e8f0ff;--group-border:#cbd8f2;--group-icon-bg:#dae7ff;--group-accent:#3569cc}.personal-task-groups .task-group-scheduled{--group-bg:#f3faf6;--group-active:#e6f6ed;--group-border:#c4e0cf;--group-icon-bg:#d8efe1;--group-accent:#2f8159}.personal-task-groups .task-group-event{--group-bg:#fff8ea;--group-active:#fff0d2;--group-border:#ecd5a8;--group-icon-bg:#ffe5b3;--group-accent:#b97717}.personal-task-groups .task-group-urgent{--group-bg:#fff2ef;--group-active:#ffe7e2;--group-border:#ebc2ba;--group-icon-bg:#ffd9d1;--group-accent:#c64b37}.personal-task-group{scroll-margin-top:90px}
@media(max-width:900px){.personal-task-groups .personal-task-group-tabs{grid-template-columns:repeat(2,minmax(0,1fr))}.personal-task-groups .task-group-tab-copy b{font-size:10px}.personal-task-groups .task-group-tab-copy small{font-size:8px}}
@media(max-width:600px){.task-category-connector{height:23px}.task-category-heading b{font-size:12px}.task-category-heading small{font-size:9px}.personal-task-groups .personal-task-group-tabs{gap:8px}.personal-task-groups .personal-task-group-tabs button{grid-template-columns:34px minmax(0,1fr) auto;min-height:68px;padding:8px}.personal-task-groups .personal-task-group-tabs button>span:first-child{width:34px;height:34px;font-size:17px}.personal-task-groups .task-group-tab-copy b{font-size:10px}.personal-task-groups .task-group-tab-copy small{font-size:8px}.personal-task-groups .personal-task-group-tabs button>i{min-width:22px;height:22px}}

/* V65 · Larger task count badges */
.personal-task-groups .personal-task-group-tabs button>i{min-width:36px;height:36px;padding:0 7px;font-size:14px;font-weight:900;line-height:1;box-shadow:0 3px 10px rgba(35,32,27,.11)}.personal-task-groups .personal-task-group-tabs button.active>i{box-shadow:0 4px 12px color-mix(in srgb,var(--group-accent,#333) 28%,transparent)}
@media(max-width:600px){.personal-task-groups .personal-task-group-tabs button{grid-template-columns:34px minmax(0,1fr) auto}.personal-task-groups .personal-task-group-tabs button>i{min-width:34px;height:34px;padding:0 6px;font-size:14px}}

/* V71 · SM workspace grouped navigation */
.sm-hero{margin-bottom:20px;border:1px solid #e6e0d5;border-radius:22px;background:linear-gradient(135deg,#fffdf8 0%,#f3f6ff 52%,#fff5eb 100%);padding:22px;box-shadow:0 10px 28px rgba(46,39,25,.05)}
.sm-flow-heading{display:flex;align-items:center;gap:11px;margin:22px 2px 12px}.sm-flow-heading>span{display:grid;flex:0 0 36px;width:36px;height:36px;place-items:center;border-radius:12px;background:#222;color:#fff;font-size:13px;font-weight:900;box-shadow:0 5px 12px rgba(0,0,0,.14)}.sm-flow-heading b,.sm-flow-heading small{display:block}.sm-flow-heading b{font-size:12px}.sm-flow-heading small{margin-top:3px;color:#777169;font-size:9px}.sm-list-heading{scroll-margin-top:90px;margin-top:26px}
.sm-scope-cards{gap:11px;margin:0 0 16px}.sm-scope-cards button,.sm-today-summary .sm-today-metric{--sm-accent:#52627c;--sm-bg:#f4f6fa;--sm-border:#d6dce6;--sm-icon:#e5eaf2;position:relative;display:grid;grid-template-columns:42px minmax(0,1fr) auto;align-items:center;gap:10px;min-height:82px;border:1px solid var(--sm-border);border-radius:17px;background:var(--sm-bg);padding:12px;color:#252525;text-align:left;box-shadow:0 5px 15px rgba(34,31,24,.045);cursor:pointer}.sm-scope-cards button:hover,.sm-today-summary .sm-today-metric:hover{transform:translateY(-1px);box-shadow:0 8px 19px rgba(34,31,24,.09)}.sm-scope-cards button>span:first-child,.sm-today-summary .sm-today-metric>span:first-child{display:grid;width:42px;height:42px;place-items:center;border-radius:13px;background:var(--sm-icon);font-size:21px}.sm-scope-cards button>span:nth-child(2) b,.sm-scope-cards button>span:nth-child(2) small,.sm-today-summary .sm-today-metric>span:nth-child(2) b,.sm-today-summary .sm-today-metric>span:nth-child(2) small{display:block}.sm-scope-cards button>span:nth-child(2) b,.sm-today-summary .sm-today-metric>span:nth-child(2) b{font-size:10px;line-height:1.3}.sm-scope-cards button>span:nth-child(2) small,.sm-today-summary .sm-today-metric>span:nth-child(2) small{margin-top:4px;color:#6f6b64;font-size:8px;line-height:1.3;text-transform:none;letter-spacing:0}.sm-scope-cards button>i,.sm-today-summary .sm-today-metric>i{display:grid;min-width:40px;height:40px;padding:0 7px;place-items:center;border-radius:999px;background:#fff;color:var(--sm-accent);font-size:17px;font-style:normal;font-weight:900;box-shadow:0 3px 11px rgba(30,28,23,.1)}.sm-scope-cards button>em{display:none;position:absolute;right:7px;top:6px;width:18px;height:18px;place-items:center;border-radius:50%;background:var(--sm-accent);color:#fff;font-size:8px;font-style:normal}.sm-scope-cards button.active{border:2px solid var(--sm-accent);box-shadow:0 8px 21px color-mix(in srgb,var(--sm-accent) 18%,transparent)}.sm-scope-cards button.active>em{display:grid}.sm-scope-danger,.sm-today-summary .warning{--sm-accent:#c64b37!important;--sm-bg:#fff2ef!important;--sm-border:#efc2b9!important;--sm-icon:#ffdcd5!important}.sm-scope-blue,.sm-today-summary .today{--sm-accent:#3569cc!important;--sm-bg:#f1f6ff!important;--sm-border:#c9d8f3!important;--sm-icon:#dce8ff!important}.sm-scope-green,.sm-today-summary .done{--sm-accent:#2f8159!important;--sm-bg:#eff9f3!important;--sm-border:#c4e2d0!important;--sm-icon:#d9f0e2!important}.sm-scope-amber{--sm-accent:#b97717!important;--sm-bg:#fff8e9!important;--sm-border:#ecd3a2!important;--sm-icon:#ffe4ae!important}.sm-today-summary .pending{--sm-accent:#7755b6!important;--sm-bg:#f6f1ff!important;--sm-border:#d9caef!important;--sm-icon:#e9ddfb!important}
.sm-section-heading{display:grid;grid-template-columns:38px minmax(0,1fr) auto;align-items:center;gap:10px;margin:0 2px 11px}.sm-section-heading>span{display:grid;width:38px;height:38px;place-items:center;border-radius:12px;background:#efe9dd;color:#6b5522;font-size:12px;font-weight:900}.sm-section-heading b,.sm-section-heading small{display:block}.sm-section-heading b{font-size:13px}.sm-section-heading small{margin-top:3px;color:#817b71;font-size:9px}.sm-section-heading>i{display:grid;min-width:34px;height:34px;padding:0 8px;place-items:center;border-radius:999px;background:#262626;color:#fff;font-size:13px;font-style:normal;font-weight:900}.sm-category-section,.sm-today-section{scroll-margin-top:90px;border:1px solid #e7e2d9;border-radius:20px;background:rgba(255,255,255,.48);padding:16px}.sm-category-section+.sm-category-section{margin-top:16px}.sm-today-section>.section-title-row{margin-bottom:11px}.sm-today-section>.section-title-row b{font-size:13px}.sm-today-section>.section-title-row small{font-size:9px}
.sm-today-date{margin-bottom:20px}.sm-today-summary{margin-top:0}.sm-today-summary .sm-today-metric{appearance:none;width:100%}.sm-toolbar{border:1px solid #e4dfd6;border-radius:17px;background:#f8f7f3;padding:11px;margin-bottom:0}.sm-toolbar label,.sm-toolbar input,.sm-toolbar select{min-height:45px}.sm-work-card{border-radius:18px}.sm-work-card h3{font-size:16px}.sm-card-top .sm-category,.sm-card-top .sm-timing{font-size:9px}.sm-card-actions a,.sm-card-actions button{min-height:36px}
@media(max-width:900px){.sm-scope-cards,.sm-today-summary{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.sm-hero{margin-left:-4px;margin-right:-4px;padding:18px 16px}.sm-flow-heading{margin-top:18px}.sm-flow-heading b{font-size:13px}.sm-flow-heading small{font-size:9px;line-height:1.4}.sm-scope-cards,.sm-today-summary{grid-template-columns:1fr 1fr;gap:8px}.sm-scope-cards button,.sm-today-summary .sm-today-metric{grid-template-columns:35px minmax(0,1fr);min-height:91px;padding:10px 9px}.sm-scope-cards button>span:first-child,.sm-today-summary .sm-today-metric>span:first-child{width:35px;height:35px;font-size:18px}.sm-scope-cards button>i,.sm-today-summary .sm-today-metric>i{grid-column:1/-1;grid-row:2;justify-self:stretch;width:100%;height:29px;border-radius:9px;font-size:16px}.sm-scope-cards button>span:nth-child(2) b,.sm-today-summary .sm-today-metric>span:nth-child(2) b{font-size:10px}.sm-scope-cards button>span:nth-child(2) small,.sm-today-summary .sm-today-metric>span:nth-child(2) small{font-size:8px}.sm-category-section,.sm-today-section{margin-left:-5px;margin-right:-5px;padding:12px 8px;border-radius:18px}.sm-section-heading{padding:0 4px}.sm-work-grid{gap:9px}.sm-toolbar{padding:8px}.sm-toolbar label,.sm-toolbar input,.sm-toolbar select{font-size:11px}.sm-work-card h3{font-size:16px}}
@media(max-width:760px){.participant-progress-panel{margin-left:-3px;margin-right:-3px;padding:13px;border-radius:14px}.participant-progress-heading{grid-template-columns:1fr}.participant-progress-heading>strong{text-align:left}.participant-progress-heading p{font-size:10px}.participant-progress-row{padding:12px}.participant-progress-person b{font-size:12px}.participant-progress-person small,.participant-progress-bar>small{font-size:9px}.participant-progress-row>label{font-size:10px}.participant-progress-row select,.participant-progress-row textarea{min-height:44px;font-size:16px}.participant-save-button{min-height:45px;font-size:10px}}

/* V39 · nhóm chỉnh sửa, bổ sung task mẫu và kích hoạt nhóm bằng tin nhắn */
.editor-group-tabs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:0 0 18px}.editor-group-tabs button{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:8px;min-height:54px;border:1px solid #dedbd2;border-radius:14px;background:#fff;padding:11px 13px;color:#4c4942;text-align:left}.editor-group-tabs button.active{border-color:#9e8542;background:#fff9e9;box-shadow:0 7px 20px rgba(91,69,18,.08)}.editor-group-tabs span{font-size:17px}.editor-group-tabs b{font-size:10px}.editor-group-tabs i{display:grid;min-width:25px;height:25px;place-items:center;border-radius:999px;background:#efede7;font-size:8px;font-style:normal}.editor-group-tabs button.active i{background:#dcc987;color:#5e4812}.editor-group-heading{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:0 0 11px}.editor-group-heading small,.editor-group-heading h2{display:block}.editor-group-heading small{color:#8b8476;font-size:8px;font-weight:850}.editor-group-heading h2{margin:4px 0 0;font-size:18px}.editor-group-heading>span{border-radius:999px;background:#ece9e1;padding:7px 10px;font-size:9px;font-weight:850}.editor-group-empty{display:grid;min-height:210px;place-items:center;align-content:center;gap:8px;text-align:center}.editor-group-empty>span{font-size:30px}.editor-group-empty b{font-size:13px}.editor-group-empty small{color:#817d75;font-size:9px}.add-task-group-button{border-color:#d7c582!important;background:#fffaf0!important;color:#745817!important}.task-group-picker-modal{width:min(640px,calc(100vw - 24px))}.task-group-picker-modal>p:not(.eyebrow){color:#6f6b64;font-size:11px;line-height:1.6}.task-group-picker-modal>label,.task-group-time-grid label{display:grid;gap:7px;margin:14px 0;font-size:10px;font-weight:800}.task-group-picker-modal select,.task-group-picker-modal input{width:100%;border:1px solid #dedbd2;border-radius:10px;background:#fff;padding:11px;font-size:11px}.task-group-time-grid{display:grid;grid-template-columns:1.4fr .7fr 1fr;gap:10px}.flex-step-editor-head small{margin-left:auto;color:#8b6d22;font-size:8px}.flex-step-editor-head small+button{margin-left:8px}.flex-group-head p{white-space:normal}.flex-group-card .flex-group-head small{display:block}.flex-group-card .flex-group-head small+small{margin-top:4px;color:#7f7a70;text-transform:none;letter-spacing:0}.field .help{display:block;margin-top:6px;color:#827c70;font-size:8px;font-weight:600;line-height:1.5}
.editor-member-filter{display:flex;align-items:center;gap:10px;margin:0 0 14px}.editor-member-filter>label{display:grid;grid-template-columns:auto minmax(150px,220px) minmax(220px,1fr);align-items:center;gap:12px;flex:1;padding:12px 14px;border:1px solid #d8e0f1;border-radius:15px;background:#f7f9ff}.editor-member-filter>label>span{display:grid;width:38px;height:38px;place-items:center;border-radius:12px;background:#e4ecff;font-size:19px}.editor-member-filter b,.editor-member-filter small{display:block}.editor-member-filter b{font-size:10px}.editor-member-filter small{margin-top:2px;color:#777;font-size:8px}.editor-member-filter input{width:100%;border:1px solid #d7dbe5;border-radius:10px;background:#fff;padding:11px 13px;font-size:10px}.editor-member-filter>button{border:1px solid #d7dbe5;border-radius:10px;background:#fff;padding:12px 14px;font-size:9px;font-weight:800}
@media(max-width:900px){.editor-group-tabs{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.editor-group-tabs{grid-template-columns:1fr}.editor-group-tabs button{min-height:48px}.task-group-time-grid{grid-template-columns:1fr}.task-group-picker-modal>p:not(.eyebrow){font-size:10px}.editor-member-filter{align-items:stretch;flex-direction:column}.editor-member-filter>label{grid-template-columns:auto 1fr}.editor-member-filter input{grid-column:1/-1;font-size:16px}.editor-member-filter>button{width:100%}}

/* V82: Link tài liệu nổi bật, dễ nhận biết và dễ bấm trên điện thoại. */
.attachment-card.link{grid-template-columns:48px minmax(0,1fr) auto;gap:12px;padding:12px 14px;border-color:#cbd9ff;background:linear-gradient(135deg,#fff 0%,#f4f7ff 100%)}
.attachment-card.link>.attachment-link-icon{width:48px;height:48px;border-radius:13px;background:#dfe8ff;font-size:23px}
.attachment-card.link b{font-size:13px}
.attachment-card.link small{margin-top:5px;font-size:10px}
.attachment-card>a.attachment-open-link{display:inline-flex;min-height:44px;align-items:center;justify-content:center;gap:7px;border:1px solid #315fdd;border-radius:11px;background:#315fdd;color:#fff;padding:10px 15px;font-size:12px;font-weight:850;white-space:nowrap;box-shadow:0 6px 16px rgba(49,95,221,.2)}
.attachment-card>a.attachment-open-link:hover{background:#234fbf}
.attachment-open-link>span{font-size:15px}
@media(max-width:760px){.attachment-card.link{grid-template-columns:46px minmax(0,1fr);padding:12px}.attachment-card.link>.attachment-link-icon{width:46px;height:46px}.attachment-card.link>a.attachment-open-link{grid-column:1/-1;width:100%;min-height:48px;font-size:14px}}


/* V84 · Readability pass: keep dense task text at 12px or larger. */
#app .page-wrap :is(p, small, label, .help, .eyebrow, .notice, .pill, .priority, .status, .task-head, .task-title b, .task-title small, .task-owner b, .task-owner small, .task-deadline small, .task-progress small, .task-status small, .focus-row b, .focus-row small, .team-row b, .team-row small, .metric small, .metric p, .panel-head small, .member-identity b, .member-identity small, .member-actions button, .editor-card-head b, .editor-card-head button, .save-bar b, .save-bar small, .permission-check b, .permission-check small, .detail-box b, .detail-box small, .detail-description, .history-item, .task-role-chip, .sm-flow-heading small, .sm-card-top .sm-category, .sm-card-top .sm-timing) { font-size: 12px !important; }
#app .page-wrap button:not(.close):not([aria-label]) { font-size: 12px !important; }
#app .task-drawer :is(p, small, label, .help, .eyebrow, .pill, .priority, .status, .detail-box b, .detail-box small, .detail-description, .history-item) { font-size: 12px !important; }
#app .task-drawer button:not(.close):not([aria-label]) { font-size: 12px !important; }
.modal :is(p, small, label, .help, .eyebrow, .permission-check b, .permission-check small, .member-identity b, .member-identity small) { font-size: 12px !important; }
.modal button:not(.close):not([aria-label]) { font-size: 12px !important; }

/* Attachment sections: distinct icons, readable filenames and easy-to-tap actions. */
.task-attachments { padding: 16px; }
.attachment-heading { align-items: center; gap: 12px; }
.attachment-heading small { font-size: 12px !important; line-height: 1.4; }
.attachment-heading h3 { display: flex; align-items: center; gap: 8px; margin-top: 5px; font-size: 16px !important; line-height: 1.35; }
.attachment-title-icon { display: inline-grid; width: 30px; height: 30px; flex: 0 0 auto; place-items: center; border-radius: 9px; background: #e8edff; font-size: 18px; }
.attachment-heading > span { padding: 6px 9px; font-size: 12px !important; white-space: nowrap; }
.attachment-actions { gap: 9px; margin-top: 14px; }
.attachment-actions button { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; gap: 8px; padding: 9px 13px; font-size: 12px !important; }
.attachment-action-icon { display: inline-grid; width: 24px; height: 24px; flex: 0 0 auto; place-items: center; border-radius: 7px; background: #f0f3ff; font-size: 17px; line-height: 1; }
.attachment-link-form input, .attachment-link-form button { min-height: 44px; font-size: 12px !important; }
.attachment-card { grid-template-columns: 42px minmax(0, 1fr) auto auto auto; gap: 9px; padding: 10px 12px; }
.attachment-card > span, .attachment-card > img { width: 42px; height: 42px; border-radius: 10px; font-size: 21px; }
.attachment-card > .attachment-file-icon { border: 1px solid #d8e2ff; background: #edf2ff; color: #3156b5; }
.attachment-card > .attachment-link-icon { border: 1px solid #d8e2ff; }
.attachment-card b { font-size: 12px !important; line-height: 1.45; white-space: normal; overflow-wrap: anywhere; }
.attachment-card small { margin-top: 4px; font-size: 12px !important; line-height: 1.4; white-space: normal; overflow-wrap: anywhere; }
.attachment-card > a, .attachment-card > button { min-height: 40px; padding: 8px 10px; font-size: 12px !important; }
.attachment-card > a.attachment-open-link { font-size: 12px !important; }
.attachment-empty { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 15px 12px; font-size: 12px !important; line-height: 1.5; }
.attachment-empty > span { font-size: 19px; }
.attachment-help { font-size: 12px !important; line-height: 1.5; }
.attachment-storage-warning b { font-size: 12px !important; }
.attachment-storage-warning small { font-size: 12px !important; line-height: 1.5; }
.draft-attachments > div:first-child b { font-size: 13px !important; line-height: 1.45; }
.draft-attachments > div:first-child small, .draft-attachment-list > small { font-size: 12px !important; line-height: 1.5; }
.draft-attachment-heading-icon { margin-right: 5px; font-size: 17px; }
.draft-attachment-actions { gap: 9px; }
.draft-attachment-actions button { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; gap: 8px; padding: 10px 12px; font-size: 12px !important; }
.draft-attachment-actions button > span { font-size: 18px; }
.draft-attachment-list > span { grid-template-columns: 42px minmax(0, 1fr) auto 30px; gap: 9px; padding: 9px; }
.draft-attachment-item > img, .draft-attachment-item > i { width: 42px; height: 42px; font-size: 20px; }
.draft-attachment-list b { font-size: 12px !important; line-height: 1.4; white-space: normal; overflow-wrap: anywhere; }
.draft-attachment-list small { font-size: 12px !important; line-height: 1.4; }
.draft-attachment-list .draft-preview-button { min-height: 40px; padding: 8px 10px; font-size: 12px !important; }
.draft-attachment-list button[data-remove-draft] { min-width: 30px; min-height: 36px; }
.attachment-preview-head small, .attachment-preview-meta small, .attachment-preview-meta p { font-size: 12px !important; line-height: 1.5; }
.attachment-preview-meta b { font-size: 14px !important; line-height: 1.45; }
.attachment-preview-generic small { font-size: 12px !important; line-height: 1.5; }
.attachment-preview-actions button, .attachment-preview-actions > a { font-size: 12px !important; }
.chat-attachment { grid-template-columns: 42px minmax(0, 1fr) auto auto; gap: 9px; padding: 10px; }
.chat-attachment-icon { width: 42px; height: 42px; border-radius: 10px; font-size: 20px; }
.chat-attachment b { font-size: 12px !important; line-height: 1.4; white-space: normal; overflow-wrap: anywhere; }
.chat-attachment small { font-size: 12px !important; line-height: 1.4; white-space: normal; overflow-wrap: anywhere; }
.chat-attachment button, .chat-attachment a { min-height: 40px; padding: 8px 10px; font-size: 12px !important; }
.chat-selected-file b { font-size: 12px !important; }
.chat-selected-file small, .chat-paste-hint { font-size: 12px !important; line-height: 1.45; }

@media (max-width: 760px) {
  .task-attachments { padding: 13px; }
  .attachment-heading { align-items: flex-start; }
  .attachment-heading h3 { font-size: 15px !important; }
  .attachment-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
  .attachment-actions button { min-width: 0; flex-direction: column; gap: 4px; padding: 8px 5px; white-space: nowrap; }
  .attachment-action-icon { width: 25px; height: 25px; font-size: 18px; }
  .attachment-card:not(.link) { grid-template-columns: 42px minmax(0, 1fr) 84px; gap: 8px; padding: 9px; }
  .attachment-card:not(.link) > span, .attachment-card:not(.link) > img { grid-column: 1; grid-row: 1; }
  .attachment-card:not(.link) > div { grid-column: 2; grid-row: 1; min-width: 0; }
  .attachment-card:not(.link) > button, .attachment-card:not(.link) > a { grid-column: 3; min-width: 0; justify-self: stretch; padding: 7px 5px; font-size: 12px !important; white-space: normal; }
  .attachment-card.link { grid-template-columns: 42px minmax(0, 1fr); gap: 10px; }
  .attachment-card.link > .attachment-link-icon { width: 42px; height: 42px; font-size: 21px; }
  .attachment-card.link > div { min-width: 0; }
  .attachment-card.link > a.attachment-open-link { grid-column: 1 / -1; width: 100%; min-height: 44px; font-size: 12px !important; }
  .draft-attachment-actions { flex-direction: row; }
  .draft-attachment-actions button { flex: 1; padding: 9px 7px; }
  .draft-attachment-list > span.draft-attachment-item { grid-template-columns: 38px minmax(0, 1fr) auto 28px; gap: 7px; }
  .draft-attachment-item > img, .draft-attachment-item > i { width: 38px; height: 38px; }
  .draft-attachment-list .draft-preview-button { padding: 7px; }
  .chat-attachment { grid-template-columns: 38px minmax(0, 1fr) auto; gap: 7px; }
  .chat-attachment-icon { width: 38px; height: 38px; }
  .chat-attachment a { display: none; }
  .chat-attachment button { grid-column: 3; }
}


/* V85 · Desktop typography pass: larger, clearer text while preserving mobile sizing. */
@media (min-width: 761px) {
  /* Main work screens: readable body copy, labels, status details and secondary text. */
  #app .page-wrap :is(p, small, label, .help, .eyebrow, .notice, .pill, .priority, .status, .task-head, .task-title b, .task-title small, .task-owner b, .task-owner small, .task-deadline small, .task-progress small, .task-status small, .focus-row b, .focus-row small, .team-row b, .team-row small, .metric small, .metric p, .panel-head small, .member-identity b, .member-identity small, .member-actions button, .editor-card-head b, .editor-card-head button, .save-bar b, .save-bar small, .permission-check b, .permission-check small, .detail-box b, .detail-box small, .detail-description, .history-item, .task-role-chip, .sm-flow-heading small, .sm-card-top .sm-category, .sm-card-top .sm-timing) {
    font-size: 14px !important;
    line-height: 1.45;
  }
  #app .page-wrap button:not(.close):not([aria-label]) { font-size: 14px !important; }
  #app .page-wrap input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),
  #app .page-wrap select,
  #app .page-wrap textarea { font-size: 14px !important; }
  #app .task-drawer :is(p, small, label, .help, .eyebrow, .pill, .priority, .status, .detail-box b, .detail-box small, .detail-description, .history-item) {
    font-size: 14px !important;
    line-height: 1.45;
  }
  #app .task-drawer button:not(.close):not([aria-label]) { font-size: 14px !important; }
  .modal :is(p, small, label, .help, .eyebrow, .permission-check b, .permission-check small, .member-identity b, .member-identity small) {
    font-size: 14px !important;
    line-height: 1.45;
  }
  .modal button:not(.close):not([aria-label]) { font-size: 14px !important; }

  /* Common dashboard/task-list text that previously used 8–12px styles. */
  #app .page-wrap :is(.kpi-label, .kpi-card > small, .progress-kpi small, .alert-strip b, .alert-strip small, .alert-strip em, .subheading, .task-name-cell small, .task-group-empty, .personal-task-group-tabs button > b, .employee-filter label, .sm-scope-cards button > span:nth-child(2) b, .sm-scope-cards button > span:nth-child(2) small, .sm-today-summary .sm-today-metric > span:nth-child(2) b, .sm-today-summary .sm-today-metric > span:nth-child(2) small, .sm-section-heading b, .sm-section-heading small, .sm-today-section > .section-title-row b, .sm-today-section > .section-title-row small, .sm-toolbar label, .sm-toolbar input, .sm-toolbar select, .sm-work-card h3, .sm-card-actions a, .sm-card-actions button) {
    font-size: 14px !important;
    line-height: 1.45;
  }
  #app .page-wrap .task-table-head, #app .page-wrap .task-table-row { font-size: 14px !important; }

  /* Attachment area: filenames 14px, metadata 13px, action text 14px. */
  .task-attachments { padding: 18px; }
  .attachment-heading { gap: 14px; }
  .attachment-heading small { font-size: 13px !important; line-height: 1.45; }
  .attachment-heading h3 { font-size: 18px !important; line-height: 1.35; }
  .attachment-title-icon { width: 34px; height: 34px; font-size: 20px; }
  .attachment-heading > span { font-size: 13px !important; }
  .attachment-actions { gap: 10px; }
  .attachment-actions button { min-height: 46px; padding: 10px 15px; font-size: 14px !important; }
  .attachment-action-icon { width: 27px; height: 27px; font-size: 18px; }
  .attachment-link-form input, .attachment-link-form button { min-height: 46px; font-size: 14px !important; }
  .attachment-card { grid-template-columns: 48px minmax(0, 1fr) auto auto auto; gap: 11px; padding: 12px 14px; }
  .attachment-card > span, .attachment-card > img { width: 48px; height: 48px; border-radius: 11px; font-size: 23px; }
  .attachment-card b { font-size: 14px !important; line-height: 1.45; }
  .attachment-card small { font-size: 13px !important; line-height: 1.45; }
  .attachment-card > a, .attachment-card > button,
  .attachment-card > a.attachment-open-link { min-height: 44px; padding: 9px 12px; font-size: 14px !important; }
  .attachment-empty { font-size: 14px !important; line-height: 1.5; }
  .attachment-help { font-size: 13px !important; line-height: 1.5; }
  .attachment-storage-warning b { font-size: 14px !important; }
  .attachment-storage-warning small { font-size: 13px !important; line-height: 1.5; }
  .draft-attachments > div:first-child b { font-size: 15px !important; line-height: 1.45; }
  .draft-attachments > div:first-child small, .draft-attachment-list > small { font-size: 13px !important; line-height: 1.5; }
  .draft-attachment-heading-icon { font-size: 19px; }
  .draft-attachment-actions button { min-height: 46px; padding: 10px 14px; font-size: 14px !important; }
  .draft-attachment-actions button > span { font-size: 19px; }
  .draft-attachment-list > span { grid-template-columns: 48px minmax(0, 1fr) auto 34px; gap: 11px; padding: 11px; }
  .draft-attachment-item > img, .draft-attachment-item > i { width: 48px; height: 48px; font-size: 22px; }
  .draft-attachment-list b { font-size: 14px !important; line-height: 1.45; }
  .draft-attachment-list small { font-size: 13px !important; line-height: 1.45; }
  .draft-attachment-list .draft-preview-button { min-height: 44px; padding: 9px 12px; font-size: 14px !important; }
  .draft-attachment-list button[data-remove-draft] { min-width: 34px; min-height: 40px; }
  .attachment-preview-head small, .attachment-preview-meta small, .attachment-preview-meta p { font-size: 13px !important; line-height: 1.5; }
  .attachment-preview-meta b { font-size: 15px !important; line-height: 1.45; }
  .attachment-preview-generic small { font-size: 13px !important; line-height: 1.5; }
  .attachment-preview-actions button, .attachment-preview-actions > a { min-height: 44px; font-size: 14px !important; }
  .chat-attachment { grid-template-columns: 48px minmax(0, 1fr) auto auto; gap: 11px; padding: 12px; }
  .chat-attachment-icon { width: 48px; height: 48px; font-size: 22px; }
  .chat-attachment b { font-size: 14px !important; line-height: 1.45; }
  .chat-attachment small { font-size: 13px !important; line-height: 1.45; }
  .chat-attachment button, .chat-attachment a { min-height: 44px; padding: 9px 12px; font-size: 14px !important; }
  .chat-selected-file b { font-size: 14px !important; }
  .chat-selected-file small, .chat-paste-hint { font-size: 13px !important; line-height: 1.45; }
}


/* V86 EXPERIMENT · link access tracking UI. */
.link-tracking-panel { display: grid; gap: 12px; margin: 16px 0; padding: 16px; border: 1px solid #c9d9ed; border-radius: 16px; background: linear-gradient(135deg, #f8fbff, #f5f8fd); color: #24344a; }
.link-tracking-heading { display: flex; align-items: flex-start; gap: 10px; }
.link-tracking-heading > span { display: grid; place-items: center; flex: 0 0 38px; width: 38px; height: 38px; border-radius: 12px; background: #e2edfc; font-size: 21px; }
.link-tracking-heading > div { display: grid; gap: 4px; min-width: 0; }
.link-tracking-heading b { font-size: 16px; }
.link-tracking-heading small, .link-tracking-note { color: #52647a; font-size: 13px; line-height: 1.5; }
.link-tracking-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.link-tracking-fields label { display: grid; gap: 5px; font-size: 13px; font-weight: 650; }
.link-tracking-fields select { width: 100%; min-width: 0; min-height: 42px; border: 1px solid #c9d4e2; border-radius: 9px; padding: 8px 10px; background: #fff; color: #24344a; font-size: 14px; }
.link-tracking-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.link-tracking-actions button { min-height: 42px; padding: 9px 12px; font-size: 14px; }
.link-tracking-output, .link-tracking-history { display: grid; gap: 9px; padding: 12px; border: 1px solid #d8e3f0; border-radius: 11px; background: #fff; overflow-wrap: anywhere; }
.link-tracking-output p, .tracked-link-empty { margin: 0; color: #52647a; font-size: 13px; }
.link-tracking-output > a { font-weight: 700; font-size: 14px; }
.tracked-link-copy-row { display: flex; gap: 7px; min-width: 0; }
.tracked-link-copy-row input { flex: 1; width: 100%; min-width: 0; min-height: 42px; padding: 8px; border: 1px solid #c9d4e2; border-radius: 8px; font-size: 12px; }
.tracked-link-copy-row button { min-height: 42px; padding: 8px 10px; white-space: nowrap; }
.tracked-link-history-content { display: grid; gap: 8px; }
.tracked-link-history-content h4 { margin: 7px 0 2px; font-size: 14px; }
.tracked-link-row, .tracked-link-event { display: flex; align-items: center; gap: 10px; justify-content: space-between; padding: 10px; border: 1px solid #e4eaf1; border-radius: 9px; background: #fbfcfe; }
.tracked-link-row > div, .tracked-link-event > div { display: grid; gap: 3px; min-width: 0; }
.tracked-link-row b, .tracked-link-event b { font-size: 13px; }
.tracked-link-row small, .tracked-link-event small { color: #617187; font-size: 12px; line-height: 1.4; }
.tracked-link-row button { flex: 0 0 auto; min-height: 34px; padding: 6px 9px; border: 1px solid #e4bcbc; border-radius: 8px; background: #fff6f6; color: #9f2727; font-size: 12px; }
.tracked-link-revoked { color: #9f2727; font-size: 12px; font-weight: 700; }
.tracked-link-event { justify-content: flex-start; }
.tracked-link-event > span { display: grid; place-items: center; flex: 0 0 30px; width: 30px; height: 30px; border-radius: 8px; background: #e2f3e8; color: #1e7844; font-size: 18px; }
@media (max-width: 760px) {
  .link-tracking-panel { padding: 12px; gap: 10px; }
  .link-tracking-fields { grid-template-columns: minmax(0, 1fr); }
  .link-tracking-actions { display: grid; grid-template-columns: minmax(0, 1fr); }
  .link-tracking-actions button { width: 100%; min-height: 44px; }
  .tracked-link-copy-row { flex-direction: column; }
  .tracked-link-copy-row button { width: 100%; }
  .tracked-link-row { align-items: flex-start; }
}


/* V87 EXPERIMENT · employee progress overview and quick overdue reminders. */
.employee-progress-overview-panel{overflow:hidden}.employee-progress-overview-panel .panel-heading{align-items:flex-start;gap:14px}.employee-progress-overview-panel .panel-heading>small{max-width:300px;color:#777;line-height:1.5;text-align:right}.employee-progress-overview-grid{grid-template-columns:repeat(2,minmax(0,1fr));border-top:1px solid var(--line)}
.employee-progress-card{display:grid;grid-template-columns:38px minmax(0,1fr) auto;align-items:start;gap:11px;width:100%;min-width:0;border:0;border-right:1px solid var(--line);border-bottom:1px solid var(--line);background:#fff;padding:15px;text-align:left;cursor:pointer}.employee-progress-card:nth-child(2n){border-right:0}.employee-progress-card:hover{background:#f7f9ff}.employee-progress-avatar{display:block}.employee-progress-card-copy{display:grid;gap:8px;min-width:0}.employee-progress-card-copy>b{font-size:14px;line-height:1.35}.employee-progress-counts,.employee-progress-statuses{display:flex;align-items:center;gap:6px;flex-wrap:wrap}.employee-progress-counts i,.employee-progress-statuses i{display:inline-flex;align-items:center;gap:4px;border-radius:7px;padding:4px 6px;background:#f1f4f8;color:#46546a;font-size:11px;font-style:normal;font-weight:650}.employee-progress-counts i strong{font-size:12px}.employee-progress-counts i:first-child{background:#edf2ff;color:#315fbd}.employee-progress-counts i:nth-child(2){background:#eef7f1;color:#287653}.employee-progress-statuses i.complete{background:#eaf7ef;color:#287653}.employee-progress-statuses i.overdue{background:#fff0ec;color:#b63f29}.employee-progress-card-copy>small{color:#7a7a7a;font-size:11px;line-height:1.4}.employee-progress-mini-bar{display:block;height:6px;border-radius:999px;overflow:hidden;background:#edf0f3}.employee-progress-mini-bar>i{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#3b7dd8,#39a477)}.employee-progress-average{display:block;min-width:54px;color:#2d7656;font-size:22px;font-weight:900;text-align:right}.employee-progress-average small{display:block;margin-top:2px;color:#777;font-size:10px;font-weight:650}.employee-progress-average.has-overdue{color:#bd4329}
.employee-progress-modal{width:min(900px,calc(100vw - 24px));max-height:91vh;overflow:auto}.employee-progress-title{display:grid;grid-template-columns:42px minmax(0,1fr) auto;align-items:center;gap:11px;margin:8px 0 17px}.employee-progress-title h2{margin:0;font-size:23px;line-height:1.25}.employee-progress-title p{margin:4px 0 0;color:#777;font-size:12px;line-height:1.45}.employee-progress-title>strong{color:#287653;font-size:23px;text-align:right}.employee-progress-title>strong small{display:block;margin-top:3px;color:#777;font-size:10px;font-weight:650}.employee-progress-metrics{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px;margin:14px 0 18px}.employee-progress-metric{display:grid;gap:4px;min-width:0;border:1px solid #e5e8ed;border-radius:11px;background:#fafbfc;padding:11px}.employee-progress-metric>b{font-size:22px;line-height:1.15}.employee-progress-metric>small{color:#747b84;font-size:11px;line-height:1.3}.employee-progress-metric.good{border-color:#cfe8d9;background:#f1faf4;color:#287653}.employee-progress-metric.danger{border-color:#f0c9c1;background:#fff4f1;color:#b63f29}.employee-progress-note{margin:0 0 14px;color:#777;font-size:12px;line-height:1.5}.employee-progress-section{margin-top:16px;border:1px solid #e5e8ed;border-radius:14px;overflow:hidden}.employee-progress-section>header{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:13px 15px;background:#f7f9fc;border-bottom:1px solid #e5e8ed}.employee-progress-section>header h3{margin:0;font-size:15px}.employee-progress-section>header>b{display:grid;place-items:center;min-width:27px;height:27px;border-radius:8px;background:#e8edf6;color:#364c6b;font-size:13px}.employee-progress-section.completed>header{background:#f2faf5}.employee-progress-section.completed>header>b{background:#e1f3e7;color:#287653}.employee-progress-task-list{display:grid;gap:0}.employee-progress-task{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:10px;padding:10px;border-bottom:1px solid #edf0f3}.employee-progress-task:last-child{border-bottom:0}.employee-progress-task.is-overdue{background:#fffaf9}.employee-progress-task-open{display:grid;grid-template-columns:32px minmax(0,1fr) auto 12px;align-items:center;gap:10px;min-width:0;border:0;background:transparent;padding:3px;text-align:left}.employee-progress-task-icon{display:grid;place-items:center;width:30px;height:30px;border-radius:9px;background:#edf1f7;color:#53647b;font-size:14px;font-weight:900}.employee-progress-task-icon.done{background:#e4f5eb;color:#287653}.employee-progress-task-icon.overdue{background:#ffe7e1;color:#b63f29}.employee-progress-task-copy{display:grid;gap:5px;min-width:0}.employee-progress-task-copy>b{font-size:13px;line-height:1.35;overflow-wrap:anywhere}.employee-progress-task-copy>small{color:#777;font-size:11px;line-height:1.35}.employee-progress-task-meta{display:flex;gap:6px;flex-wrap:wrap}.employee-progress-status,.employee-progress-due{display:inline-flex;border-radius:6px;background:#f0f2f5;color:#596270;padding:4px 6px;font-size:10px;font-style:normal;font-weight:750}.employee-progress-status.done{background:#e7f6ed;color:#287653}.employee-progress-status.overdue,.employee-progress-due.overdue{background:#ffebe6;color:#b63f29}.employee-progress-status.waiting{background:#fff5d9;color:#926710}.employee-progress-task-progress{display:grid;gap:5px;min-width:45px;text-align:right}.employee-progress-task-progress>b{font-size:12px}.employee-progress-task-progress>i{display:block;width:44px;height:5px;overflow:hidden;border-radius:999px;background:#e7eaf0}.employee-progress-task-progress>i>em{display:block;height:100%;background:#428b6b}.employee-progress-task-arrow{color:#9aa2ad;font-size:21px}.employee-quick-remind{min-height:36px;border:1px solid #efc7be;border-radius:9px;background:#fff1ed;color:#ae3d28;padding:7px 10px;font-size:12px;font-weight:800;white-space:nowrap}.employee-quick-remind:hover{background:#ffe5de}.employee-quick-remind:disabled{cursor:not-allowed;opacity:.65}.employee-quick-remind.is-sent{border-color:#cce5d5;background:#eff9f2;color:#287653}.employee-quick-remind.is-muted{border-color:#e4e6e9;background:#f6f6f6;color:#858585}.employee-progress-empty{padding:22px;text-align:center;color:#777;font-size:12px;line-height:1.5}
@media(max-width:1280px){.employee-progress-overview-grid{grid-template-columns:1fr}.employee-progress-card,.employee-progress-card:nth-child(2n){border-right:0}}
@media(max-width:760px){.employee-progress-overview-panel .panel-heading{display:block}.employee-progress-overview-panel .panel-heading>small{display:block;margin-top:7px;text-align:left;max-width:none}.employee-progress-card{grid-template-columns:34px minmax(0,1fr) auto;gap:8px;padding:12px 10px}.employee-progress-card-copy>b{font-size:13px}.employee-progress-counts i,.employee-progress-statuses i{font-size:10px;padding:4px 5px}.employee-progress-counts i strong{font-size:11px}.employee-progress-average{min-width:47px;font-size:19px}.employee-progress-average small{font-size:9px}.employee-progress-card-copy>small{font-size:10px}.employee-progress-modal{padding:18px 12px}.employee-progress-title{grid-template-columns:38px minmax(0,1fr) auto;gap:8px}.employee-progress-title h2{font-size:19px}.employee-progress-title p{font-size:10px}.employee-progress-title>strong{font-size:19px}.employee-progress-metrics{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.employee-progress-metric{padding:9px}.employee-progress-metric>b{font-size:19px}.employee-progress-metric>small{font-size:10px}.employee-progress-section>header{padding:11px}.employee-progress-section>header h3{font-size:13px}.employee-progress-task{grid-template-columns:minmax(0,1fr);gap:8px;padding:9px}.employee-progress-task-open{grid-template-columns:28px minmax(0,1fr) auto 8px;gap:7px}.employee-progress-task-icon{width:27px;height:27px}.employee-progress-task-copy>b{font-size:12px}.employee-progress-task-copy>small{font-size:10px}.employee-progress-task-progress>i{width:34px}.employee-quick-remind{width:100%;min-height:40px}.employee-progress-task-meta{gap:4px}}


/* V88 EXPERIMENT · milestone-based deadline scoring and event-based interaction assessment. */
.assessment-milestone-panel,.assessment-interaction-panel{margin:16px 0;border:1px solid #e1e6ed;border-radius:14px;background:#fff;overflow:hidden}.assessment-milestone-panel>header,.assessment-interaction-panel>header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:14px 15px;background:#f7f9fc;border-bottom:1px solid #e7ebf1}.assessment-milestone-panel>header small,.assessment-interaction-panel>header small{display:block;color:#6b7b8f;font-size:10px;font-weight:850;letter-spacing:.08em}.assessment-milestone-panel>header h3,.assessment-interaction-panel>header h3{margin:4px 0 5px;font-size:15px}.assessment-milestone-panel>header p,.assessment-interaction-panel>header p{margin:0;color:#777;font-size:11px;line-height:1.5}.assessment-milestone-panel>header>strong{font-size:21px;color:#2b7354}.assessment-milestone-list,.interaction-timeline-list{display:grid}.assessment-milestone{display:grid;grid-template-columns:30px minmax(0,1fr) auto;align-items:center;gap:10px;padding:12px;border-bottom:1px solid #edf0f4}.assessment-milestone:last-child{border-bottom:0}.assessment-milestone.is-overdue{background:#fffaf8}.assessment-milestone.is-complete{background:#f8fcf9}.assessment-milestone-state{display:grid;place-items:center;width:28px;height:28px;border-radius:9px;background:#edf1f6;color:#657185;font-weight:900}.assessment-milestone.is-overdue .assessment-milestone-state{background:#ffe9e2;color:#b53d26}.assessment-milestone.is-complete .assessment-milestone-state{background:#e5f6eb;color:#26764e}.assessment-milestone-copy{display:grid;gap:4px;min-width:0}.assessment-milestone-copy>b{font-size:13px;overflow-wrap:anywhere}.assessment-milestone-copy>small,.assessment-milestone-copy>span{color:#777;font-size:10px;line-height:1.4}.assessment-milestone-copy>span{font-weight:650}.assessment-milestone.is-overdue .assessment-milestone-copy>span{color:#b53d26}.assessment-milestone-actions{display:flex;align-items:center;justify-content:flex-end;gap:6px;flex-wrap:wrap}.assessment-milestone-actions button{border:1px solid #cfe2d5;border-radius:8px;background:#f0faf3;color:#28724e;padding:7px 9px;font-size:10px;font-weight:800;cursor:pointer}.assessment-milestone-actions button.quiet{border-color:#e1e4e9;background:#fff;color:#737b86}.assessment-milestone-actions button:disabled{opacity:.6;cursor:wait}.assessment-milestone-empty{padding:15px;color:#7b7f87;font-size:12px;line-height:1.5}.assessment-milestone-form{display:grid;gap:10px;border-top:1px solid #e7ebf1;background:#fbfcfe;padding:14px}.assessment-milestone-form>b{font-size:13px}.assessment-milestone-form label{display:grid;gap:5px;color:#5c6572;font-size:11px;font-weight:750}.assessment-milestone-form input,.assessment-milestone-form select{width:100%;min-width:0;min-height:39px;border:1px solid #d9dfe7;border-radius:8px;background:#fff;padding:8px 10px;color:#232832;font:inherit}.assessment-milestone-form small{color:#7b7f87;font-size:10px;line-height:1.45}.assessment-milestone-form-grid{display:grid;grid-template-columns:2fr 1fr;gap:10px}.assessment-milestone-form .primary-button{justify-self:start;min-height:38px}.assessment-archived{border-top:1px dashed #d8dde5;padding:10px 14px;color:#777;font-size:11px}.assessment-archived summary{cursor:pointer;font-weight:750}.assessment-archived p{margin:7px 0 0}.assessment-interaction-panel{background:#fbfcfd}.interaction-timeline-row{display:grid;grid-template-columns:minmax(100px,.6fr) minmax(160px,1fr);gap:6px 12px;padding:12px 14px;border-bottom:1px solid #edf0f4}.interaction-timeline-row:last-child{border-bottom:0}.interaction-timeline-row>b{font-size:12px}.interaction-state,.interaction-neutral{font-size:11px;font-weight:750;line-height:1.4}.interaction-state.good{color:#28764f}.interaction-state.warning{color:#a96b00}.interaction-state.danger{color:#b33c27}.interaction-state.neutral,.interaction-neutral{color:#77808b}.interaction-timeline-events{grid-column:1/-1;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px 10px}.interaction-timeline-events small{color:#737b86;font-size:10px;line-height:1.4}.deadline-form label small{display:block;margin-top:5px;color:#777;font-size:10px;line-height:1.4}.assessment-milestone-panel .assessment-milestone-copy>small{display:block}.assessment-milestone-panel .assessment-milestone-copy>span{display:block}
@media(max-width:760px){.assessment-milestone-panel>header,.assessment-interaction-panel>header{padding:12px}.assessment-milestone{grid-template-columns:27px minmax(0,1fr);align-items:start;gap:8px;padding:10px}.assessment-milestone-actions{grid-column:2;justify-content:flex-start}.assessment-milestone-actions button{min-height:34px}.assessment-milestone-form{padding:11px}.assessment-milestone-form-grid{grid-template-columns:1fr}.interaction-timeline-row{grid-template-columns:1fr;gap:5px}.interaction-timeline-events{grid-template-columns:1fr;gap:4px}.assessment-milestone-copy>b{font-size:12px}}

/* V92 · employee overview: isolated role styles and responsive cards. */
.employee-progress-overview-panel{overflow:hidden}
.employee-progress-overview-panel>.panel-heading{align-items:flex-start;flex-wrap:wrap;padding:20px;gap:12px}
.employee-progress-overview-panel>.panel-heading h2{font-size:21px;line-height:1.3}
.employee-progress-legend{max-width:760px;margin:8px 0 0;color:#5e6b7a;font-size:13px;line-height:1.55}
.employee-progress-overview-panel>.panel-heading>small{max-width:260px;color:#647184;font-size:12px;line-height:1.55;text-align:right}
.employee-progress-overview-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,360px),1fr));gap:16px;border-top:0;padding:0 20px 20px}
.employee-progress-card{display:flex;flex-direction:column;align-items:stretch;gap:14px;min-width:0;width:100%;padding:17px;border:1px solid #dfe5ed;border-radius:15px;background:#fff;box-shadow:0 3px 12px rgba(31,43,74,.045);text-align:left;color:#202938;cursor:pointer;transition:border-color .15s ease,box-shadow .15s ease,transform .15s ease}
.employee-progress-card:nth-child(2n){border-right:1px solid #dfe5ed}
.employee-progress-card:hover{background:#fff;border-color:#9db5d5;box-shadow:0 7px 20px rgba(31,43,74,.09);transform:translateY(-1px)}
.employee-progress-card:focus-visible{outline:3px solid #7ba7e8;outline-offset:2px}
.employee-progress-card-top{display:grid;grid-template-columns:42px minmax(0,1fr) auto;align-items:center;gap:11px;min-width:0}
.employee-progress-person{display:block;min-width:0}
.employee-progress-person>b{display:block;font-size:16px;line-height:1.35;overflow-wrap:anywhere}
.employee-progress-person>small{display:block;margin-top:4px;color:#758092;font-size:13px;line-height:1.45;overflow-wrap:anywhere}
.employee-progress-total{display:flex;flex-direction:column;align-items:center;justify-content:center;min-width:66px;padding:7px 10px;border-radius:11px;background:#f0f3f8;color:#25354c}
.employee-progress-total>strong{font-size:25px;line-height:1.05;font-weight:900;font-variant-numeric:tabular-nums}
.employee-progress-total>small{margin-top:4px;font-size:9px;letter-spacing:.08em;font-weight:850}
.employee-progress-role-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.employee-progress-role-tile{display:flex;align-items:center;justify-content:space-between;gap:10px;min-width:0;min-height:64px;padding:12px;border:1px solid #e3e9f0;border-radius:12px;background:#f8fafc}
.employee-progress-role-tile>small{font-size:14px;line-height:1.4;font-weight:750;overflow-wrap:anywhere}
.employee-progress-role-tile>strong{flex:0 0 auto;font-size:26px;line-height:1;font-weight:850;font-variant-numeric:tabular-nums}
.employee-progress-role-tile.is-primary{border-color:#d8e3fb;background:#f0f5ff;color:#264f9d}
.employee-progress-role-tile.support{border-color:#d4eadc;background:#eff9f2;color:#256c48}
.employee-progress-participation{display:block;margin-top:-7px;color:#59677a;font-size:11px;line-height:1.4}
.employee-progress-participation>b{color:#273b57;font-size:12px}
.employee-progress-progress-block{display:grid;gap:7px}
.employee-progress-progress-label{display:flex;align-items:center;justify-content:space-between;gap:10px;color:#4e5b6d;font-size:13px}
.employee-progress-progress-label>strong{color:#1f6c4b;font-size:19px;line-height:1;font-variant-numeric:tabular-nums}
.employee-progress-progress-track{display:block;height:9px;border-radius:999px;overflow:hidden;background:#e9edf2}
.employee-progress-progress-track>i{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#3c78cf,#2f9968);transition:width .2s ease}
.employee-progress-status-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.employee-progress-status-grid>span{display:flex;flex-direction:column;gap:4px;min-width:0;padding:10px;border-radius:10px;background:#f5f7fa;color:#4e5a6b}
.employee-progress-status-grid>span>strong{font-size:20px;line-height:1.1;font-weight:900;font-variant-numeric:tabular-nums}
.employee-progress-status-grid>span>small{font-size:13px;line-height:1.4;font-weight:650}
.employee-progress-status-grid>span.complete{background:#edf8f1;color:#28764f}
.employee-progress-status-grid>span.overdue{background:#fff0ec;color:#b63f29}
.employee-progress-status-grid>span.open{background:#f2f5f9;color:#4d5d72}
.employee-progress-card-foot{display:flex;align-items:center;justify-content:space-between;gap:10px;border-top:1px solid #edf0f4;padding-top:12px;margin-top:auto;flex-wrap:wrap}
.employee-progress-card-foot>small{color:#667386;font-size:12px;line-height:1.4}
.employee-progress-card-foot>b{flex:0 0 auto;color:#315fbd;font-size:12px;white-space:nowrap}
.employee-progress-card-foot>b>span{font-size:16px}
@media(max-width:900px){.employee-progress-overview-panel>.panel-heading>small{max-width:none;text-align:left}}
@media(max-width:600px){.employee-progress-overview-panel>.panel-heading{padding:15px 13px 12px}.employee-progress-overview-panel>.panel-heading h2{font-size:18px}.employee-progress-legend{font-size:12px}.employee-progress-overview-panel>.panel-heading>small{font-size:11px}.employee-progress-overview-grid{gap:10px;padding:0 10px 12px}.employee-progress-card{gap:12px;padding:13px;border-radius:13px}.employee-progress-card-top{grid-template-columns:36px minmax(0,1fr) auto;gap:8px}.employee-progress-person>b{font-size:14px}.employee-progress-person>small{font-size:12px}.employee-progress-total{min-width:56px;padding:7px}.employee-progress-total>strong{font-size:22px}.employee-progress-role-grid{gap:7px}.employee-progress-role-tile{padding:10px 9px;gap:6px}.employee-progress-role-tile>small{font-size:13px}.employee-progress-role-tile>strong{font-size:25px}.employee-progress-progress-label{font-size:11px}.employee-progress-progress-label>strong{font-size:18px}.employee-progress-status-grid{gap:6px}.employee-progress-status-grid>span{padding:8px 7px}.employee-progress-status-grid>span>strong{font-size:18px}.employee-progress-status-grid>span>small{font-size:12px}.employee-progress-card-foot>small{font-size:12px}.employee-progress-card-foot>b{font-size:11px}}


.employee-progress-overview-panel>.panel-heading>div{flex:1 1 420px;min-width:0}
.employee-progress-avatar{display:flex;align-items:center;justify-content:center;min-width:0}
.employee-progress-avatar>.avatar{max-width:100%}
.employee-progress-overview-grid>.overview-empty{grid-column:1/-1}
@media(prefers-reduced-motion:reduce){.employee-progress-card,.employee-progress-progress-track>i{transition:none}.employee-progress-card:hover{transform:none}}

@media(max-width:420px){.employee-progress-role-tile{flex-direction:column;align-items:flex-start;justify-content:space-between;gap:8px}.employee-progress-role-tile>small{min-width:0}.employee-progress-role-tile>strong{align-self:flex-start}.employee-progress-card-top{grid-template-columns:32px minmax(0,1fr) auto;gap:7px}.employee-progress-total>small{font-size:9px;letter-spacing:0}}

/* V90 EXPERIMENT · stabilize layout and clarify access-history display. */
*,*::before,*::after{box-sizing:border-box}
#app,.app-shell,.main-content,.page-wrap{min-width:0;max-width:100%}
.page-wrap{width:100%;overflow-x:clip}
.page-heading{display:flex;flex-wrap:wrap;gap:14px;min-width:0}
.page-heading>div{min-width:0;max-width:100%}
.page-heading h1,.page-heading p,.subheading{overflow-wrap:anywhere}
.panel,.panel-heading,.filter-bar,.filter-search{min-width:0;max-width:100%}
.filter-bar select,.filter-search input{min-width:0;max-width:100%}
.modal-backdrop{overflow:hidden}
.task-drawer{flex:0 1 560px;width:min(560px,100vw);max-width:100%;min-width:0;overscroll-behavior:contain}
.task-drawer>*{min-width:0;max-width:100%}
.link-tracking-panel,.link-tracking-history,.tracked-link-history-content{min-width:0;max-width:100%}
.tracked-link-history-title{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;flex-wrap:wrap}
.tracked-link-history-title h4{margin:0;font-size:17px;line-height:1.35}
.tracked-link-history-title p{margin:5px 0 0;color:#617187;font-size:13px;line-height:1.5}
.tracked-link-history-title>span{border-radius:999px;background:#edf3fb;color:#315d8b;padding:6px 10px;font-size:11px;font-weight:800;white-space:nowrap}
.tracked-link-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}
.tracked-link-summary>div{min-width:0;border:1px solid #e1e8f1;border-radius:11px;padding:12px;background:#f8faff}
.tracked-link-summary small,.tracked-link-summary strong{display:block}
.tracked-link-summary small{font-size:11px;color:#617187;line-height:1.4}
.tracked-link-summary strong{font-size:24px;line-height:1.2;margin-top:6px;color:#203650}
.tracked-link-history-section{display:grid;gap:9px;min-width:0}
.tracked-link-history-section h5{margin:8px 0 0;font-size:14px;color:#28394f}
.tracked-link-row{align-items:flex-start;gap:14px}
.tracked-link-row-main{flex:1;min-width:0}
.tracked-link-row-main>b{display:block;line-height:1.4;overflow-wrap:anywhere}
.tracked-link-row-main>small{white-space:normal;overflow-wrap:anywhere}
.tracked-link-stats{display:flex;flex-wrap:wrap;gap:6px 12px;margin-top:7px;color:#52647a;font-size:11px;line-height:1.5}
.tracked-link-stats strong{color:#24344a}
.tracked-link-row-actions{display:flex;align-items:flex-end;flex-direction:column;gap:7px;flex:0 0 auto}
.tracked-link-active{color:#23764d;font-size:11px;font-weight:800}
.tracked-link-row.is-revoked{background:#fffafa}
.tracked-link-row-actions button{min-height:36px}
.tracked-link-event{display:grid;grid-template-columns:30px minmax(0,1fr) auto;align-items:center;gap:10px}
.tracked-link-event>div{min-width:0}
.tracked-link-event b{overflow-wrap:anywhere;line-height:1.4}
.tracked-link-event small{white-space:normal;overflow-wrap:anywhere}
.tracked-link-event time{display:block;margin-top:4px;color:#52647a;font-size:11px;line-height:1.45}
.tracked-link-event-number{display:grid;place-items:center;width:30px;height:30px;border-radius:9px;background:#e9f0fc;color:#3156a8;font-size:12px;font-weight:800}
.tracked-link-event-status{border-radius:999px;background:#e5f5ec;color:#24724f;padding:5px 8px;font-size:10px;font-weight:800;white-space:nowrap}
.tracked-link-history-footnote{margin:0;color:#617187;font-size:11px;line-height:1.55}
.audit-page,.audit-table,.audit-list{min-width:0;max-width:100%}
.audit-table{overflow:hidden}
.audit-head,.audit-row{grid-template-columns:minmax(150px,1fr) minmax(110px,.8fr) minmax(180px,1.5fr) minmax(125px,.8fr);gap:12px}
.audit-row>span,.audit-row>time{min-width:0;overflow-wrap:anywhere}
.audit-detail small,.audit-actor small{white-space:normal;overflow-wrap:anywhere}
@media(max-width:760px){
 .task-drawer{width:100%;flex-basis:100%;padding:calc(18px + env(safe-area-inset-top)) max(14px,env(safe-area-inset-right)) calc(18px + env(safe-area-inset-bottom)) max(14px,env(safe-area-inset-left))}
 .page-heading{display:flex;flex-direction:column;align-items:stretch}
 .page-heading>.audit-heading-actions{display:flex;flex-wrap:wrap;width:100%}
 .tracked-link-summary{gap:6px}
 .tracked-link-summary>div{padding:9px}
 .tracked-link-summary small{font-size:10px}
 .tracked-link-summary strong{font-size:21px}
 .tracked-link-row{display:flex;flex-direction:column;align-items:stretch}
 .tracked-link-row-actions{flex-direction:row;align-items:center;justify-content:space-between;flex-wrap:wrap}
 .tracked-link-event{grid-template-columns:28px minmax(0,1fr);gap:8px;padding:9px}
 .tracked-link-event-status{grid-column:2;justify-self:start}
 .audit-head{display:none}
 .audit-row{grid-template-columns:minmax(0,1fr) auto;gap:9px;padding:13px}
 .audit-row>.audit-actor{grid-column:1/-1}
 .audit-row>span:nth-child(2){grid-column:1;grid-row:2}
 .audit-row>.audit-detail{grid-column:1/-1}
 .audit-row>time{grid-column:1/-1}
}

/* v91 — đối chiếu theo dõi link (chỉ quản lý) */
.tracked-link-recheck-row { display: grid; gap: 3px; padding: 10px; border: 1px solid #e4eaf1; border-radius: 9px; background: #fff; }
.tracked-link-recheck-row b { font-size: 13px; }
.tracked-link-recheck-row small { color: #617187; font-size: 12px; line-height: 1.4; }
.tracked-link-recheck-row em { color: #8a5a00; font-size: 12px; font-style: normal; line-height: 1.4; }

/* v93: neutralize shell styles even with a stale v91 card template. */
.employee-progress-overview-panel .employee-progress-role-grid {
  display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:100%;min-width:0;gap:10px;
}
.employee-progress-overview-panel .employee-progress-role-tile {
  position:static;float:none;inset:auto;margin:0;width:auto;max-width:none;min-width:0;
  height:auto;min-height:72px;padding:12px;transform:none;
  display:flex;align-items:center;justify-content:space-between;gap:10px;
}
.employee-progress-overview-panel .employee-progress-role-tile.main,
.employee-progress-overview-panel .employee-progress-role-tile.is-primary {
  margin:0;padding:12px;border-color:#d8e3fb;background:#f0f5ff;color:#264f9d;
}
.employee-progress-overview-panel .employee-progress-role-tile>small {
  min-width:0;white-space:normal;overflow-wrap:anywhere;font-size:14px;line-height:1.4;
}
.employee-progress-overview-panel .employee-progress-role-tile>strong {
  display:block;position:static;flex:0 0 auto;font-size:26px;line-height:1.2;
}
@media(max-width:420px){
  .employee-progress-overview-panel .employee-progress-role-tile {
    flex-direction:column;align-items:flex-start;justify-content:space-between;padding:10px;gap:8px;
  }
  .employee-progress-overview-panel .employee-progress-role-tile.main,
  .employee-progress-overview-panel .employee-progress-role-tile.is-primary {padding:10px}
  .employee-progress-overview-panel .employee-progress-role-tile>small{font-size:13px}
}
