#app[hidden], #login[hidden], [hidden]{display:none !important}
[hidden]{display:none !important}
*{box-sizing:border-box}body{margin:0;font-family:Arial,'Noto Sans KR',sans-serif;background:#f5f7fb;color:#1f2937}.center{min-height:100vh;display:grid;place-items:center}.card{background:white;border:1px solid #e5e7eb;border-radius:14px;box-shadow:0 8px 30px #0000000c}.login{width:360px;padding:34px}.login input,.login button{width:100%;padding:12px;margin:7px 0}.login small{display:block;margin-top:14px;color:#6b7280}button{border:0;border-radius:8px;padding:9px 13px;cursor:pointer;background:#eef2f7}.primary{background:#2563eb;color:white}#app{min-height:100vh;display:grid;grid-template-columns:230px 1fr}aside{background:#111827;color:white;padding:24px 16px;display:flex;flex-direction:column}aside h2{font-size:18px;margin:0 8px 24px}nav{display:grid;gap:8px}nav button,.bottom button{background:transparent;color:#d1d5db;text-align:left}.bottom{margin-top:auto;display:grid;gap:8px;padding:8px}main{padding:30px}header{display:flex;justify-content:space-between;align-items:center;margin-bottom:22px}header h1{font-size:25px}.kpis{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}.kpi{padding:20px}.kpi b{font-size:30px;display:block;margin-top:8px}.muted{color:#6b7280}.panel{background:white;border:1px solid #e5e7eb;border-radius:12px;padding:18px;margin-top:18px;overflow:auto}table{width:100%;border-collapse:collapse}th,td{text-align:left;padding:12px;border-bottom:1px solid #edf0f4;font-size:14px}th{color:#6b7280;font-weight:600}tr.click:hover{background:#f8fafc;cursor:pointer}.badge{padding:4px 8px;border-radius:999px;background:#eef2ff;font-size:12px}.progress{height:7px;background:#e5e7eb;border-radius:9px;overflow:hidden;width:100px}.progress i{display:block;height:100%;background:#2563eb}dialog{border:0;border-radius:14px;padding:0;width:min(650px,92vw)}dialog form{padding:24px}.grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.field{display:grid;gap:5px}.field.full{grid-column:1/-1}input,select,textarea{border:1px solid #d1d5db;border-radius:7px;padding:9px;font:inherit}textarea{min-height:80px}.actions{display:flex;justify-content:flex-end;gap:8px;margin-top:20px}.detail-head{display:flex;justify-content:space-between;gap:20px}.detail-meta{display:flex;gap:18px;flex-wrap:wrap}.tabs{display:flex;gap:8px;margin-top:20px}@media(max-width:850px){#app{grid-template-columns:1fr}aside{display:none}main{padding:16px}.kpis{grid-template-columns:1fr 1fr}.grid{grid-template-columns:1fr}}
.filters{display:flex;gap:12px;align-items:end;flex-wrap:wrap;margin-bottom:18px}.filter{display:flex;flex-direction:column;gap:6px;min-width:150px}.filter span{font-size:12px;color:#667085}.table-wrap{overflow-x:auto}.memo-cell{max-width:260px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.deadline-orange td{background:#fff3e0!important}.deadline-red td{background:#ffe4e4!important}.deadline-orange:hover td{background:#ffe8c2!important}.deadline-red:hover td{background:#ffd2d2!important}.settings-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.setting-add{display:flex;gap:8px;margin:12px 0}.setting-add input{flex:1}.chips{display:flex;gap:8px;flex-wrap:wrap}.chip{display:inline-flex;align-items:center;gap:6px;padding:7px 10px;border-radius:999px;background:#f2f4f7}.chip button{border:0;background:transparent;padding:0;font-size:18px;cursor:pointer}@media(max-width:900px){.settings-grid{grid-template-columns:1fr}}
/* v0.4 전체 프로젝트 개선 */
.project-group{margin:0 0 22px}.group-title{font-weight:700;font-size:15px;padding:10px 12px;background:#f3f4f6;border-left:4px solid #64748b;border-radius:6px 6px 0 0}.group-title span,.section-title span{font-weight:500;color:#64748b;font-size:12px;margin-left:6px}.section-title{font-size:18px;font-weight:800;margin:22px 0 10px}.section-title:first-child{margin-top:4px}.completed-title{border-top:2px solid #e5e7eb;padding-top:22px;margin-top:30px}.empty{padding:20px;color:#94a3b8;text-align:center;background:#f8fafc;border-radius:8px}.project-table{table-layout:fixed;min-width:1180px}.project-table .c-top{width:7%}.project-table .c-cat{width:7%}.project-table .c-priority{width:6%}.project-table .c-project{width:17%}.project-table .c-code{width:7%}.project-table .c-manager{width:7%}.project-table .c-period{width:11%}.project-table .c-progress{width:9%}.project-table .c-status{width:6%}.project-table .c-memo{width:19%}.project-table .c-edit{width:4%}.project-table td,.project-table th{padding:10px 8px}.project-name,.memo-cell{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.memo-cell{max-width:none}.period-cell{font-size:12px;line-height:1.45;white-space:nowrap}.progress-text{font-size:12px}.edit-btn{padding:6px 9px;background:#fff;border:1px solid #cbd5e1}.edit-btn:hover{background:#f8fafc}.color-list{display:grid;gap:9px;margin-top:14px}.color-row{display:grid;grid-template-columns:70px 60px 1fr;align-items:center;gap:12px}.color-row input[type=color]{width:48px;height:34px;padding:2px}.status-color-panel{grid-column:1/-1}

/* v0.4.2 group readability / collapse / bulk color */
.project-group{border:1px solid #dbe3ee;border-radius:12px;overflow:hidden;background:#fff;box-shadow:0 2px 8px rgba(15,23,42,.04);margin-bottom:20px}
.group-title{width:100%;display:flex;align-items:center;gap:10px;border:0;border-radius:0;padding:13px 16px;background:linear-gradient(90deg,#eaf2ff,#f8fbff);border-left:5px solid #2563eb;color:#1e3a5f;text-align:left;cursor:pointer}
.group-title:hover{background:linear-gradient(90deg,#e1edff,#f4f8ff)}
.group-title .group-chevron{width:18px;font-size:16px;color:#2563eb}
.group-title .group-name{font-size:16px;font-weight:800;letter-spacing:-.2px}
.group-title .group-count{font-size:12px;font-weight:700;color:#475569;background:#fff;border:1px solid #dbeafe;border-radius:999px;padding:3px 8px}
.group-title .group-toggle-text{margin-left:auto;font-size:12px;font-weight:600;color:#64748b}
.group-title.collapsed{border-bottom:0}
.group-body .table-wrap{border-top:1px solid #e5e7eb}
.group-body .project-table tr:first-child{background:#f8fafc}
.color-actions{display:flex;justify-content:flex-end;margin-top:14px;padding-top:14px;border-top:1px solid #e5e7eb}
.color-actions .primary{min-width:140px}

/* v0.4.3 completed section + multi status filter */
.status-filter{display:flex;gap:6px 10px;flex-wrap:wrap;align-items:center;min-height:38px;padding:7px 10px;border:1px solid #d0d5dd;border-radius:7px;background:#fff;max-width:360px}
.status-filter label{display:inline-flex;align-items:center;gap:4px;font-size:13px;color:#344054;white-space:nowrap;cursor:pointer}
.status-filter input{margin:0}
.completed-toggle{width:100%;display:flex;align-items:center;gap:9px;border:1px solid #dbe3ee;border-radius:10px;background:#f8fafc;padding:12px 15px;cursor:pointer;text-align:left;color:#334155}
.completed-toggle:hover{background:#f1f5f9}
.completed-toggle .section-chevron{font-size:16px;width:18px;color:#64748b}
.completed-toggle strong{font-size:17px}
.completed-toggle .section-count{font-size:12px;font-weight:700;background:#e2e8f0;border-radius:999px;padding:3px 8px;color:#475569}
.completed-toggle .section-toggle-text{margin-left:auto;font-size:12px;color:#64748b;font-weight:600}
.completed-body{margin-top:12px}
.completed-body[hidden]{display:none!important}

.settings-toolbar{display:flex;justify-content:flex-end;margin-bottom:12px}

/* v0.5.0 Task / To-do tree */
.task-top-actions{display:flex;gap:8px}.task-help{font-size:12px;color:#64748b;background:#f8fafc;border:1px solid #e2e8f0;padding:9px 12px;border-radius:8px;margin:10px 0 12px}.task-list-head,.task-row{display:grid;grid-template-columns:minmax(360px,2.2fr) 90px 110px 190px 80px 180px;align-items:center;min-width:1050px}.task-list-head{padding:9px 10px;color:#64748b;font-size:12px;font-weight:700;border-bottom:1px solid #dbe3ee;background:#f8fafc}.task-node{min-width:1050px}.task-row{min-height:48px;padding:4px 10px;border-bottom:1px solid #edf0f4;font-size:13px}.task-row:hover{background:#f8fafc}.task-kind>.task-row{background:#fbfdff}.task-title-cell{display:flex;align-items:center;gap:7px;min-width:0}.task-title-cell b{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.tree-toggle{width:26px;height:26px;padding:0;border-radius:6px;background:transparent;font-size:15px;color:#475569}.tree-toggle:hover{background:#e2e8f0}.type-chip{font-size:11px;font-weight:800;border-radius:999px;padding:3px 7px;white-space:nowrap}.type-task{background:#dbeafe;color:#1d4ed8}.type-todo{background:#ecfdf5;color:#047857}.task-period{font-size:12px;color:#475569;white-space:nowrap}.task-child-actions{display:flex;gap:5px}.mini{padding:5px 7px;font-size:11px;border:1px solid #d1d5db;background:#fff}.task-mini{border-color:#bfdbfe;color:#1d4ed8}.todo-details{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px 18px;padding:12px 16px;margin-top:2px;margin-bottom:8px;margin-right:12px;background:#f8fafc;border:1px solid #e2e8f0;border-radius:8px;font-size:12px}.todo-details>div{display:grid;grid-template-columns:65px 1fr;gap:6px}.todo-details b{color:#64748b}.todo-memo{grid-column:1/-1}.todo-memo span{white-space:pre-wrap}.taskTree{overflow:auto}@media(max-width:850px){.task-list-head,.task-row,.task-node{min-width:900px}.todo-details{grid-template-columns:1fr 1fr}}

/* v0.6.0 Task/To-do 상세 구조 */
.task-list-head,.task-row{grid-template-columns:minmax(320px,2fr) 80px 105px 185px 75px minmax(150px,1fr) 230px;min-width:1250px}.task-node{min-width:1250px}.task-remark{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#475569}.auto-label{font-style:normal;font-size:11px;background:#dbeafe;color:#1d4ed8;border-radius:999px;padding:2px 6px}.auto-schedule>label{display:flex;align-items:center;gap:7px;font-size:13px}.auto-schedule input{width:auto}.auto-info{padding:10px 12px;background:#eff6ff;border:1px solid #bfdbfe;border-radius:8px;color:#1e40af;font-size:12px}.detail-editor{display:grid;gap:8px}.detail-edit-row{display:grid;grid-template-columns:1fr auto;gap:8px;align-items:start}.detail-edit-row textarea{height:74px;min-height:74px;max-height:74px;overflow-y:auto;resize:none}.detail-edit-row.image-row{padding:8px;background:#f8fafc;border:1px solid #e2e8f0;border-radius:8px}.detail-edit-row.image-row img{max-width:420px;max-height:220px;object-fit:contain;border-radius:6px}.detail-add{justify-self:start;margin-top:8px;border:1px dashed #94a3b8;background:#fff}.todo-details{display:block;padding:12px 16px}.todo-detail-title{font-weight:700;color:#475569;margin-bottom:8px}.detail-text{display:grid;grid-template-columns:28px 1fr;gap:8px;padding:8px 0;border-top:1px solid #e2e8f0}.detail-text span{white-space:pre-wrap}.detail-image{display:grid;grid-template-columns:28px 1fr;gap:8px;padding:8px 0;border-top:1px solid #e2e8f0}.detail-image img{max-width:min(700px,90%);max-height:420px;object-fit:contain;border-radius:8px;border:1px solid #e2e8f0}

/* v0.6.2 프로젝트 요약 / 작업 상태 가독성 */
.project-summary{border-left:6px solid #cbd5e1;padding:22px 24px}.project-summary-head{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;padding-bottom:16px;border-bottom:1px solid #e5e7eb}.project-summary-head h2{margin:3px 0 0;font-size:22px;color:#0f172a}.project-summary-kicker{font-size:12px;font-weight:700;color:#64748b}.project-status-pill{display:inline-flex;align-items:center;justify-content:center;min-width:64px;padding:7px 13px;border-radius:999px;font-size:13px;font-weight:800;color:#334155}.project-summary-grid{display:grid;grid-template-columns:1fr 1fr 1.5fr 1fr;gap:12px;margin-top:16px}.project-summary-grid>div{padding:12px 14px;background:#f8fafc;border:1px solid #eef2f7;border-radius:9px}.project-summary-grid span{display:block;font-size:11px;color:#64748b;margin-bottom:5px}.project-summary-grid b{font-size:13px;color:#1e293b}.project-progress{width:100%;margin-top:7px}.project-summary-memo{margin-top:14px;padding:12px 14px;background:#fff;border:1px solid #eef2f7;border-radius:9px}.project-summary-memo>span{font-size:11px;font-weight:700;color:#64748b}.project-summary-memo p{margin:7px 0 0;white-space:pre-wrap;line-height:1.55;color:#334155}.detail-entry{display:grid;grid-template-columns:28px 1fr;gap:8px;padding:10px 0;border-top:1px solid #e2e8f0}.detail-entry-body{display:grid;gap:9px}.detail-entry-body span{white-space:pre-wrap;line-height:1.5}.detail-entry-body img{max-width:min(700px,95%);max-height:420px;object-fit:contain;border-radius:8px;border:1px solid #e2e8f0}.detail-entry-editor{display:grid;gap:8px}.detail-image-preview{display:flex;align-items:flex-start;gap:8px}.detail-image-preview:empty{display:none}.detail-image-preview img{max-width:420px;max-height:220px;object-fit:contain;border-radius:7px;border:1px solid #e2e8f0}.detail-edit-row{padding:9px;border:1px solid #e2e8f0;border-radius:9px;background:#fafcff}.task-row .badge{font-weight:700;color:#334155}@media(max-width:900px){.project-summary-grid{grid-template-columns:1fr 1fr}}

.status-color-preview{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin:14px 0}.status-color-preview>div{padding:12px;border-radius:8px;border:1px solid #dbe3ee;display:flex;justify-content:space-between;gap:8px}.status-color-preview span{font-size:11px;color:#64748b}.schedule-color-note{display:flex;gap:10px;margin-top:14px}.schedule-color-note span{padding:8px 12px;border-radius:7px;border:1px solid #e5e7eb;font-size:12px}.task-row{transition:filter .12s ease}.task-row:hover{filter:brightness(.985)}

/* v0.7 회원가입 / 회원설정 */
.signup-open{margin-top:8px;width:100%}.secondary{background:#fff;color:#2563eb;border:1px solid #93c5fd}
.member-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:14px}.member-head h3{margin:0 0 5px}.member-count{background:#eef2ff;border-radius:999px;padding:6px 12px;font-weight:700;color:#3730a3;white-space:nowrap}.member-table th,.member-table td{vertical-align:middle}.member-table select{min-width:120px}.password-mask{letter-spacing:2px;color:#64748b}.approval-badge{display:inline-block;border-radius:999px;padding:5px 10px;font-size:12px;font-weight:700}.approval-badge.approved{background:#dcfce7;color:#166534}.approval-badge.pending{background:#fef3c7;color:#92400e}.dashboard-completed-toggle{width:100%;border:0;text-align:left}
.project-summary-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.task-child-actions .danger{margin-left:2px}

/* v0.7.6: 프로젝트 목록 관리 버튼을 한 줄로 나란히 표시 */
.project-table .c-edit{width:9%}
.project-table th:last-child,.project-table td:last-child{white-space:nowrap}
.project-table td:last-child .edit-btn,.project-table td:last-child .danger{display:inline-block;vertical-align:middle;margin:0}
.project-table td:last-child .danger{margin-left:4px}

/* v1.0.0 - database status readability */
.db-status-panel{overflow:visible}.db-status-header{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin-bottom:18px}.db-status-header h3{margin:0 0 6px;font-size:20px}.db-status-header p{margin:0;font-size:13px}.health-badge{display:inline-flex;align-items:center;justify-content:center;min-width:72px;padding:7px 12px;border-radius:999px;font-size:13px;font-weight:700;white-space:nowrap}.health-badge.healthy{background:#dcfce7;color:#166534}.health-badge.unhealthy{background:#fee2e2;color:#b91c1c}.db-path-card{display:grid;gap:8px;padding:14px 16px;margin-bottom:14px;background:#f8fafc;border:1px solid #e2e8f0;border-radius:10px}.db-path-card code{font-family:Consolas,'Courier New',monospace;font-size:14px;font-weight:600;color:#0f172a;overflow-wrap:anywhere}.db-status-grid{display:grid;grid-template-columns:repeat(4,minmax(150px,1fr));gap:12px}.db-status-item{min-height:84px;display:flex;flex-direction:column;justify-content:center;align-items:flex-start;gap:8px;padding:14px 16px;background:#fff;border:1px solid #e2e8f0;border-radius:10px}.db-status-item b{font-size:15px;color:#0f172a}.db-status-label{font-size:12px;font-weight:700;color:#64748b}.status-pill{display:inline-flex;align-items:center;padding:5px 9px;border-radius:999px;font-size:13px!important}.status-ok{background:#dcfce7;color:#166534!important}.status-error{background:#fee2e2;color:#b91c1c!important}.status-neutral{background:#eef2ff;color:#3730a3!important}.danger-text{color:#b91c1c}@media(max-width:1100px){.db-status-grid{grid-template-columns:repeat(2,minmax(150px,1fr))}}@media(max-width:650px){.db-status-header{align-items:center}.db-status-grid{grid-template-columns:1fr}}
.trash-actions{display:flex;gap:6px;align-items:center;white-space:nowrap}.danger{background:#b91c1c;color:#fff;border-color:#b91c1c}.danger:hover{background:#991b1b}.member-head>.danger{flex:0 0 auto}


/* v1.0.6 - 사용자 설명서 / 버전 정보 */
.bottom .manual-nav{font-weight:700;color:#e5e7eb;padding-left:0}.bottom-sep{height:1px;background:#374151;margin:2px 0 6px}.app-version{margin-top:8px;padding-top:10px;border-top:1px solid #374151;color:#94a3b8;font-size:11px;letter-spacing:.1px}.manual-layout{display:grid;grid-template-columns:210px minmax(0,1fr);gap:18px;align-items:start}.manual-toc{position:sticky;top:20px;display:grid;gap:4px;padding:14px}.manual-toc h3{margin:0 0 8px}.manual-toc a{display:block;padding:8px 9px;border-radius:7px;color:#475569;text-decoration:none;font-size:13px}.manual-toc a:hover{background:#eef2ff;color:#1d4ed8}.manual-content{min-width:0}.manual-section{scroll-margin-top:20px}.manual-section h2{margin:0 0 14px;font-size:19px;color:#0f172a}.manual-section h4{margin:16px 0 6px}.manual-section p{line-height:1.7;margin:7px 0;color:#334155}.manual-section code{background:#f1f5f9;padding:2px 5px;border-radius:5px;overflow-wrap:anywhere}.manual-note{margin-top:12px;padding:11px 13px;background:#eff6ff;border-left:4px solid #3b82f6;border-radius:6px;color:#1e40af;font-size:13px;line-height:1.55}.release-item{display:grid;grid-template-columns:75px 1fr;gap:12px;padding:11px 0;border-top:1px solid #e5e7eb}.release-item:first-of-type{border-top:0}.release-item b{color:#1d4ed8}.release-item span{line-height:1.55;color:#475569}@media(max-width:900px){.manual-layout{grid-template-columns:1fr}.manual-toc{position:static}}


/* v1.0.7 - fixed sidebar / account information at top */
#app{display:block;min-height:100vh}
aside{position:fixed;left:0;top:0;width:230px;height:100vh;z-index:100;overflow-y:auto;overflow-x:hidden;padding:18px 16px 22px}
aside h2{margin:0 0 18px 0;padding:0 0 0 0}
.account-panel{display:grid;gap:7px;padding:0 0 12px}
.account-panel #who{font-size:14px;font-weight:700;color:#f8fafc;line-height:1.45}
.account-panel button{background:transparent;color:#d1d5db;text-align:left;padding:5px 0;width:max-content}
.account-panel button:hover{color:#fff}
.account-panel .app-version{margin:2px 0 0;padding:0;border:0;color:#94a3b8;font-size:11px}
.top-sep{height:1px;background:#374151;margin:0 0 12px}
aside nav{display:grid;gap:8px}
aside nav button{background:transparent;color:#d1d5db;text-align:left}
aside nav .manual-nav{font-weight:700;color:#e5e7eb}
main{margin-left:230px;padding:30px;min-width:0}
@media(max-width:850px){#app{display:block}aside{display:none}main{margin-left:0;padding:16px}}


/* v1.0.8 - TESOLLO branded sidebar */
aside{width:250px;padding:16px 14px 22px;background:linear-gradient(180deg,#0f172a 0%,#111827 100%);box-shadow:4px 0 18px rgba(15,23,42,.08)}
main{margin-left:250px}
.brand-block{padding:0 2px 14px}
.brand-logo-wrap{height:44px;background:#fff;border-radius:10px;padding:9px 10px;display:flex;align-items:center;justify-content:center;box-shadow:0 4px 14px rgba(0,0,0,.12)}
.brand-logo-wrap img{display:block;width:100%;height:100%;object-fit:contain}
aside .brand-block h2{margin:13px 4px 0;font-size:18px;font-weight:750;letter-spacing:-.2px;color:#f8fafc}
.account-panel{margin:0 2px 14px;padding:12px;border:1px solid #273449;border-radius:10px;background:rgba(255,255,255,.045);gap:9px}
.account-title{display:flex;align-items:center;gap:8px;min-width:0}
.account-avatar{width:24px;height:24px;border-radius:50%;display:grid;place-items:center;background:#1d4ed8;color:#93c5fd;font-size:8px;box-shadow:inset 0 0 0 1px rgba(255,255,255,.14);flex:0 0 auto}
.account-panel #who{font-size:13px;font-weight:700;color:#f8fafc;line-height:1.35;overflow-wrap:anywhere}
.account-panel .logout-btn{width:100%;display:flex;align-items:center;justify-content:center;gap:7px;padding:8px 10px;border:1px solid #475569;border-radius:7px;background:#1e293b;color:#e2e8f0;font-weight:650;font-size:12px;transition:.15s ease}
.account-panel .logout-btn:hover{background:#334155;border-color:#64748b;color:#fff}
.account-panel .app-version{margin:0;padding:0;text-align:center;color:#94a3b8;font-size:10.5px;letter-spacing:.15px}
.top-sep{margin:0 4px 10px;background:#263449}
aside nav{gap:4px}
aside nav button{width:100%;display:flex;align-items:center;gap:11px;padding:10px 11px;border-radius:8px;color:#cbd5e1;font-size:13px;font-weight:550;transition:background .14s ease,color .14s ease,transform .14s ease}
aside nav button:hover{background:#1e293b;color:#fff;transform:translateX(2px)}
aside nav button:focus-visible{outline:2px solid #60a5fa;outline-offset:1px}
aside nav .manual-nav{font-weight:700;color:#e2e8f0;margin-top:3px}
.nav-icon{width:20px;height:20px;display:inline-grid;place-items:center;flex:0 0 20px;border-radius:5px;background:#1e293b;color:#93c5fd;font-size:14px;font-weight:700;line-height:1}
aside nav button:hover .nav-icon{background:#263b5d;color:#bfdbfe}
.logout-btn .nav-icon{width:17px;height:17px;flex-basis:17px;background:transparent;color:#cbd5e1;font-size:15px}
@media(max-width:850px){main{margin-left:0}}


/* Release v1.0.0 - clean TESOLLO wordmark + login branding */
.brand-logo-wrap{display:none!important}
.brand-block{padding:2px 6px 15px;border-bottom:1px solid #263449;margin-bottom:12px}
.brand-wordmark{font-size:22px;font-weight:800;letter-spacing:1.8px;color:#f8fafc;line-height:1.1}
aside .brand-block h2{margin:7px 0 0;font-size:14px;font-weight:600;color:#94a3b8;letter-spacing:.15px}
.top-sep{display:none}
.login{width:380px;padding:36px 36px 32px;text-align:center}
.login-logo{height:66px;margin:0 auto 22px;display:flex;align-items:center;justify-content:center}
.login-logo img{max-width:250px;max-height:62px;object-fit:contain;display:block}
.login h1{margin:0 0 7px;font-size:25px;color:#0f172a;letter-spacing:-.4px}
.login p{margin:0 0 22px;color:#64748b;font-size:13px}
.login input{text-align:left}
.login button{font-weight:650}

/* v1.0.2 - project people / drag & drop */
.member-picker{display:flex;gap:8px}.member-picker input{flex:1}.member-chips{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px;min-height:30px}.member-chip{display:inline-flex;align-items:center;gap:6px;padding:5px 9px;border-radius:999px;background:#eef2ff;color:#3730a3;font-size:12px;font-weight:700}.member-chip button{border:0;background:transparent;padding:0;color:#64748b;font-size:15px}.drag-handle{cursor:grab;color:#64748b;font-weight:800;letter-spacing:-3px;margin-right:6px;user-select:none}.task-row.dragging{opacity:.45}.drop-before{height:5px;margin:0 8px;border-radius:4px;transition:.12s}.drop-before.drag-over{height:14px;background:#bfdbfe;border:1px dashed #2563eb}.drop-inside{display:none;margin:4px 12px 5px 44px;padding:6px 10px;border:1px dashed #94a3b8;border-radius:6px;color:#64748b;font-size:11px;text-align:center}.task-node.task-kind:hover>.drop-inside{display:block}.drop-inside.drag-over{display:block;background:#dbeafe;border-color:#2563eb;color:#1d4ed8}.drop-root{margin:0 0 8px;padding:7px 10px;border:1px dashed #cbd5e1;border-radius:7px;color:#64748b;font-size:11px;text-align:center}.drop-root.drag-over{background:#dbeafe;border-color:#2563eb;color:#1d4ed8}
.drop-after{height:6px;margin:2px 8px;border-radius:4px;color:transparent;font-size:10px;text-align:center;overflow:hidden}.drop-after.drag-over{height:22px;padding:3px;background:#bfdbfe;border:1px dashed #2563eb;color:#1d4ed8}

/* v1.0.4 - easier drag/drop and project members */
.dnd-target{position:relative}.dnd-target.drop-before-active{box-shadow:inset 0 3px 0 #2563eb}.dnd-target.drop-after-active{box-shadow:inset 0 -3px 0 #2563eb}.dnd-target.drop-inside-active{outline:2px dashed #2563eb;outline-offset:-3px;filter:brightness(.97)}
.dnd-target.drop-inside-active .task-title-cell:after{content:'이 Task 안으로 이동';margin-left:10px;padding:3px 8px;border-radius:999px;background:#dbeafe;color:#1d4ed8;font-size:11px;font-weight:700}.project-summary-members{margin-top:14px;padding:12px 14px;background:#fff;border:1px solid #eef2f7;border-radius:9px}.project-summary-members>span{display:block;font-size:11px;font-weight:700;color:#64748b;margin-bottom:7px}.project-summary-members>div{display:flex;flex-wrap:wrap;gap:6px}.project-member-name{display:inline-flex;padding:5px 9px;border-radius:999px;background:#eef2ff;color:#3730a3;font-size:12px;font-weight:700}


/* v1.0.5 - To-do detail completion */
.detail-edit-row{display:grid;grid-template-columns:30px minmax(0,1fr) auto;gap:8px;align-items:start}.detail-check{width:24px;height:24px;min-width:24px;padding:0;margin-top:6px;border:2px solid #94a3b8;border-radius:50%;background:#fff;color:#fff;display:grid;place-items:center;font-size:14px;font-weight:800;line-height:1;cursor:pointer}.detail-check:hover{border-color:#2563eb;background:#eff6ff}.detail-check.checked{border-color:#16a34a;background:#16a34a;color:#fff}.detail-completed .detail-entry-editor{opacity:.72}.detail-completed textarea{text-decoration:line-through;color:#64748b}.completed-details{margin-top:14px;border:1px solid #e2e8f0;border-radius:9px;background:#f8fafc}.completed-details summary{cursor:pointer;padding:10px 12px;font-weight:700;color:#475569;user-select:none}.completed-details summary span{display:inline-flex;min-width:22px;height:20px;align-items:center;justify-content:center;margin-left:5px;padding:0 6px;border-radius:999px;background:#e2e8f0;color:#475569;font-size:11px}.completed-details>.detail-editor{padding:0 10px 10px}.completed-details:not([open])>.detail-editor{display:none}

/* v1.0.6 security / permission states */
button:disabled, select:disabled, input:disabled.permission-disabled { opacity:.45; cursor:not-allowed; filter:grayscale(.55); }
.locked-badge{display:inline-block;margin-left:6px;padding:3px 7px;border-radius:999px;background:#fee2e2;color:#991b1b;font-size:12px;font-weight:700}

/* v1.0.8 debug - form alignment / automatic values / info tooltip */
.grid{align-items:start}.field{align-self:start}.field>span:first-child{min-height:22px;display:flex;align-items:center;gap:6px}.info-tip{display:inline-flex!important;align-items:center;justify-content:center;width:17px;height:17px;min-height:17px!important;border-radius:50%;background:#64748b;color:white;font-size:11px;font-weight:700;cursor:help}.auto-value,.project-auto-field:disabled,.project-auto-field[readonly]{background:#eef2f7!important;color:#64748b!important}.credential-rule{padding:9px 11px;background:#f8fafc;border:1px solid #e2e8f0;border-radius:8px;font-size:12px}.click{cursor:pointer}.click:hover{filter:brightness(.98)}

/* v1.0.9 */
.info-tip{position:relative;overflow:visible;outline:none}
.info-tip::after{content:attr(data-tip);position:absolute;z-index:9999;left:50%;bottom:calc(100% + 9px);transform:translateX(-50%);width:max-content;max-width:320px;padding:8px 10px;border-radius:7px;background:#111827;color:#fff;font-size:12px;font-weight:500;line-height:1.45;white-space:normal;box-shadow:0 6px 18px rgba(15,23,42,.22);opacity:0;visibility:hidden;pointer-events:none;transition:opacity .12s ease}
.info-tip::before{content:"";position:absolute;z-index:10000;left:50%;bottom:calc(100% + 3px);transform:translateX(-50%);border:6px solid transparent;border-top-color:#111827;opacity:0;visibility:hidden;transition:opacity .12s ease}
.info-tip:hover::after,.info-tip:hover::before,.info-tip:focus::after,.info-tip:focus::before{opacity:1;visibility:visible}
.status-color-preview{grid-template-columns:repeat(auto-fit,minmax(150px,1fr))}
.risk-color-row{grid-template-columns:90px 60px minmax(180px,1fr)}
.risk-inline{display:flex;align-items:center;gap:8px}.risk-inline input{width:90px}.risk-inline span{font-size:12px;color:#64748b}
\n/* v1.0.10 - viewport-safe help / people autocomplete / color settings */
.info-tip::after,.info-tip::before{display:none!important}
.global-info-tooltip{position:fixed;z-index:2147483647;max-width:min(360px,calc(100vw - 20px));padding:9px 11px;border-radius:8px;background:#111827;color:#fff;font-size:12px;font-weight:500;line-height:1.45;box-shadow:0 8px 24px rgba(15,23,42,.28);opacity:0;visibility:hidden;pointer-events:none;white-space:normal}
.global-info-tooltip.show{opacity:1;visibility:visible}
.color-editor-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:10px;margin-top:14px}
.color-editor-card{display:grid;grid-template-columns:1fr auto;grid-template-rows:auto auto;gap:7px 10px;align-items:center;padding:12px 14px;border:1px solid #dbe3ee;border-radius:10px;background:#f8fafc;min-width:0}
.color-editor-name{font-weight:700}.color-editor-card input[type=color]{grid-column:2;grid-row:1 / span 2;width:48px;height:38px;padding:2px;border-radius:7px}.color-editor-hint{font-size:11px;color:#64748b}.schedule-editor{grid-template-columns:1fr auto}.schedule-editor .days-editor{grid-column:1;display:flex;align-items:center;gap:7px;color:#64748b;font-size:12px}.days-editor input{width:78px}.color-actions{display:flex;justify-content:flex-end;margin-top:14px}.color-actions .primary{min-width:220px}

/* v1.0.11 - tooltip stays inside top-layer dialogs */
dialog[open]{overflow:visible}
.global-info-tooltip{box-sizing:border-box;width:max-content;max-width:min(360px,calc(100vw - 32px));word-break:keep-all;overflow-wrap:break-word}
dialog[open] .global-info-tooltip{max-width:min(320px,calc(100% - 28px))}

/* v1.0.12 */


/* v1.0.14 - assignment hierarchy */
.assignment-intro{margin-bottom:18px}.assignment-group-title{cursor:default}.assignment-project-head,.assignment-project-main{display:grid;grid-template-columns:.8fr .9fr .7fr 1.7fr 1fr 1.15fr .7fr .7fr 1.4fr;gap:8px;align-items:center}.assignment-project-head{padding:9px 12px;font-size:12px;font-weight:700;color:#667085;background:#f8fafc;border:1px solid #e2e8f0;border-radius:8px 8px 0 0}.assignment-project{margin-bottom:12px;border-left:5px solid #dbe2ea;border-radius:8px;overflow:hidden;border-top:1px solid #e2e8f0;border-right:1px solid #e2e8f0;border-bottom:1px solid #e2e8f0}.assignment-project-main{padding:11px 12px;cursor:pointer}.assignment-project-main:hover{filter:brightness(.98)}.assignment-project-name{display:flex;flex-direction:column;gap:2px}.assignment-project-name small{color:#667085}.assignment-project-tasks{background:#fff;padding:8px 12px 12px}.assignment-task-head,.assignment-task-row{display:grid;grid-template-columns:2fr .7fr .9fr 1.3fr .6fr 1.3fr;gap:8px;align-items:center}.assignment-task-head{font-size:11px;font-weight:700;color:#667085;padding:7px 10px;border-bottom:1px solid #e2e8f0}.assignment-task-row{padding:8px 10px;margin-top:4px;border-radius:7px;cursor:pointer;border-left:4px solid transparent}.assignment-task-row:hover{filter:brightness(.98)}.assignment-task-name{display:flex;align-items:center;gap:7px;min-width:0}.assignment-task-name b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.assignment-task-name small{font-size:10px;color:#98a2b3;white-space:nowrap}.assignment-task-row.context-task{opacity:1}.assignment-empty{padding:10px;color:#98a2b3;font-size:12px}.assignment-completed-toggle{margin-top:18px}@media(max-width:1200px){.assignment-project-head,.assignment-project-main{grid-template-columns:.8fr .9fr .7fr 1.6fr 1fr 1.2fr .7fr .7fr}.assignment-project-head>span:last-child,.assignment-project-main>span:last-child{display:none}.assignment-task-head,.assignment-task-row{grid-template-columns:1.8fr .7fr .9fr 1.2fr .6fr}.assignment-task-head>span:last-child,.assignment-task-row>span:last-child{display:none}}

/* v1.0.15 - scrollable dialogs / assignment focus */
dialog{max-height:92vh}
dialog>form{max-height:92vh;overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable}
dialog>form>.actions{position:sticky;bottom:-24px;z-index:5;margin-left:-24px;margin-right:-24px;margin-bottom:-24px;padding:14px 24px 24px;background:linear-gradient(to bottom,rgba(255,255,255,.88),#fff 24%);border-top:1px solid #eef2f7}
.task-row.task-focus-flash{outline:3px solid rgba(37,99,235,.55);outline-offset:-2px;box-shadow:0 0 0 5px rgba(37,99,235,.12);animation:taskFocusPulse .8s ease-in-out 2}
@keyframes taskFocusPulse{0%,100%{filter:none}50%{filter:brightness(.92)}}

/* v1.1.0 - manual / release notes tabs and semantic version hierarchy */
.manual-page{display:flex;flex-direction:column;gap:14px}.manual-tabs{display:flex;gap:8px;padding:6px;background:#eef2f7;border:1px solid #dbe3ee;border-radius:10px;width:max-content}.manual-tab-btn{border:0;background:transparent;color:#64748b;padding:9px 18px;border-radius:7px;font-weight:700}.manual-tab-btn:hover{background:#fff;color:#334155}.manual-tab-btn.active{background:#fff;color:#1d4ed8;box-shadow:0 1px 4px rgba(15,23,42,.12)}.manual-tab-pane[hidden]{display:none!important}.release-panel{padding:22px}.release-header{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;padding-bottom:16px;border-bottom:1px solid #e2e8f0}.release-header h2{margin:0 0 5px}.release-header p{margin:0;color:#64748b}.release-current{padding:6px 10px;border-radius:999px;background:#dbeafe;color:#1d4ed8;font-size:12px;font-weight:800;white-space:nowrap}.release-major{margin-top:18px;border-left:3px solid #334155;padding-left:16px}.release-major-title{display:flex;align-items:center;gap:9px;margin-bottom:14px}.release-major-title span{font-size:11px;text-transform:uppercase;letter-spacing:.7px;color:#64748b}.release-major-title strong{font-size:20px;color:#0f172a}.release-minor{margin:0 0 14px 10px;padding:14px 16px;border:1px solid #e2e8f0;border-radius:10px;background:#fff}.release-minor.current{border-color:#93c5fd;background:#f8fbff}.release-minor-title{display:flex;align-items:center;gap:9px}.release-minor-title strong{font-size:16px;color:#1e293b}.release-minor-title span{font-size:11px;padding:3px 7px;border-radius:999px;background:#eef2f7;color:#64748b}.release-minor p{margin:8px 0 0;color:#475569;line-height:1.55}.release-patches{margin:13px 0 0 18px;padding-left:15px;border-left:2px solid #e2e8f0}.release-patch{display:grid;grid-template-columns:62px 1fr;gap:10px;padding:7px 0}.release-patch b{color:#475569}.release-patch span{color:#64748b;line-height:1.45}

/* v1.1.0 - 업무할당 프로젝트 접기/펼치기 */
.assignment-intro{display:flex;justify-content:space-between;align-items:flex-start;gap:16px}
.assignment-intro h3{margin-top:0}
.assignment-fold-actions{display:flex;gap:8px;flex:0 0 auto}
.assignment-fold-actions button{white-space:nowrap}
.assignment-project-title{display:flex;align-items:center;gap:6px;min-width:0}
.assignment-project-toggle{width:24px;height:24px;min-width:24px;padding:0;border:1px solid #cfd8e3;border-radius:6px;background:#fff;color:#475467;font-size:14px;line-height:1;cursor:pointer}
.assignment-project-toggle:hover{background:#f2f4f7}
.assignment-project-title b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
@media(max-width:900px){.assignment-intro{flex-direction:column}.assignment-fold-actions{align-self:flex-end}}
/* v1.1.0 - assignment filters / fixed priority */
.assignment-filter-bar{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:10px 12px;margin:0 0 16px;background:#f8fafc;border:1px solid #e2e8f0;border-radius:8px}
.assignment-filter-chip{display:inline-flex;align-items:center;gap:4px;cursor:pointer}.assignment-filter-chip input{margin:0}.assignment-filter-chip .badge{font-style:normal}
/* v1.1.0 maintenance - assignment filters, fold column, color contrast */
.assignment-project-head,.assignment-project-main{grid-template-columns:38px .8fr .9fr .7fr 1.7fr 1fr 1.15fr .7fr .7fr 1.4fr}
.assignment-fold-cell{display:flex;justify-content:center;align-items:center}.assignment-project-toggle{margin:0}
.assignment-filter-sep{width:1px;height:24px;background:#dbe3ee;margin:0 4px}.assignment-due-input{width:72px;padding:6px 8px}.assignment-dday{display:block;margin-top:3px;font-weight:700;color:inherit}
.color-pair{grid-column:2;grid-row:1 / span 2;display:flex;gap:8px;align-items:center}.color-pair label{font-size:10px;color:#64748b;display:flex;flex-direction:column;gap:3px;align-items:center}.color-pair input[type=color]{width:42px;height:32px;padding:2px;border-radius:6px}
.status-color-preview>div span{color:inherit;opacity:.72}
@media(max-width:1200px){.assignment-project-head,.assignment-project-main{grid-template-columns:34px .8fr .9fr .7fr 1.6fr 1fr 1.2fr .7fr .7fr}.assignment-project-head>span:last-child,.assignment-project-main>span:last-child{display:none}}

/* v1.1.0 UI refinement - compact assignment status columns */
.assignment-task-head,.assignment-task-row{
  grid-template-columns:minmax(260px,2.4fr) 76px minmax(110px,.9fr) minmax(220px,1.35fr) 86px minmax(160px,1.2fr);
  column-gap:12px;
}
.assignment-task-head>span:nth-child(2),.assignment-task-row>span:nth-child(2){
  justify-self:start;
  width:auto;
  min-width:0;
}
.assignment-task-row>span:nth-child(2).badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:auto;
  min-width:42px;
  max-width:68px;
  padding-left:9px;
  padding-right:9px;
  white-space:nowrap;
}
.assignment-project-head,.assignment-project-main{
  grid-template-columns:38px .72fr .82fr 72px minmax(190px,1.55fr) minmax(110px,.9fr) minmax(185px,1.05fr) 72px 76px minmax(150px,1.2fr);
  column-gap:10px;
}
.assignment-project-main>span:nth-child(9) .badge{
  display:inline-flex;
  min-width:42px;
  width:auto;
  justify-content:center;
  white-space:nowrap;
}
@media(max-width:1200px){
  .assignment-project-head,.assignment-project-main{grid-template-columns:34px .7fr .8fr 68px minmax(170px,1.45fr) minmax(100px,.85fr) minmax(175px,1.05fr) 68px 72px}
  .assignment-project-head>span:last-child,.assignment-project-main>span:last-child{display:none}
  .assignment-task-head,.assignment-task-row{grid-template-columns:minmax(220px,2fr) 72px minmax(100px,.85fr) minmax(190px,1.2fr) 78px}
  .assignment-task-head>span:last-child,.assignment-task-row>span:last-child{display:none}
}

/* v1.1.0 - superadmin member organization editing */
.member-inline-input{width:110px;min-width:90px;box-sizing:border-box;padding:7px 8px}

/* v1.1.0 hotfix - apply configured status text color to row contents as well as the status badge */
.task-row > div:not(.task-child-actions),
.task-row .task-title-cell b,
.task-row .task-period,
.task-row .task-remark,
.assignment-task-row > span:not(.badge),
.assignment-task-row .assignment-task-name b,
.assignment-task-row .task-remark,
.assignment-project-main > span:not(.assignment-fold-cell),
.project-table tr[style] > td { color:var(--row-text-color,inherit) !important; }

/* v1.1.0 patch - keep dialog tooltips fully inside the modal */
dialog[open] .global-info-tooltip.in-dialog{position:absolute;z-index:2147483647;max-width:min(320px,calc(100% - 28px))}
.workload-controls{flex-wrap:wrap;gap:12px;align-items:center}.workload-scroll{overflow:auto;max-height:65vh;border:1px solid #dbe3ef;border-radius:10px}.workload-table{border-collapse:separate;border-spacing:0;min-width:1500px;width:100%;table-layout:fixed}.workload-table th,.workload-table td{text-align:center;padding:4px;border-bottom:1px solid #e5eaf2;border-right:1px solid #eef1f6}.workload-table th:first-child{position:sticky;left:0;width:185px;min-width:185px;background:#fff;text-align:left;z-index:2;padding:12px}.workload-table thead th{position:sticky;top:0;background:#f6f8fc;z-index:3}.workload-table thead th:first-child{z-index:4}.workload-table small{display:block;font-size:11px;color:#64748b;font-weight:400;margin-top:4px}.workload-table .weekend{background:#f8fafc}.workload-table .workload-today{border-left:2px solid #2563eb;border-right:2px solid #2563eb}.workload-cell{display:block;width:100%;min-width:28px;height:35px;border:0;border-radius:5px;padding:0}.workload-cell.load-0{background:transparent;color:#94a3b8}.workload-cell.load-1{background:#dbeafe;color:#1e40af}.workload-cell.load-2{background:#93c5fd;color:#172554}.workload-cell.load-3{background:#2563eb;color:white}.workload-cell.selected{outline:3px solid #0f172a;outline-offset:-2px}#workloadSelection{margin-top:16px}

.project-bulk-toolbar{display:flex;flex-wrap:wrap;align-items:center;gap:8px;padding:12px;margin:12px 0;background:#f1f5f9;border-radius:8px}.project-bulk-toolbar small{flex-basis:100%;color:#64748b}.project-task-check{width:16px;height:16px;flex-shrink:0;cursor:pointer}#projectToolsDlg{width:min(850px,95vw);max-height:90vh}#projectToolsDlg form{display:flex;flex-direction:column;max-height:80vh}.project-tools-body{overflow:auto;padding:8px;min-height:0}#projectToolsDlg .actions{flex-shrink:0}.template-preview-row{padding:8px;border-bottom:1px solid #e2e8f0}.template-preview-row small{display:block;color:#64748b;margin-top:4px}
.project-bulk-toolbar{position:sticky;top:0;z-index:5;border:2px solid #bfdbfe;background:#eff6ff;box-shadow:0 3px 10px #1e3a8a14;padding:16px;gap:10px}.project-bulk-toolbar #projectSelectionCount{background:#1e40af;color:white;border-radius:8px;padding:10px 14px}.project-bulk-toolbar .bulk-action{font-weight:700;font-size:14px;min-height:42px;padding:10px 18px;border:2px solid transparent;border-radius:8px}.project-bulk-toolbar .bulk-assignee:enabled{background:#1d4ed8;color:white;border-color:#1e40af}.project-bulk-toolbar .bulk-status:enabled{background:#0f766e;color:white;border-color:#115e59}.project-bulk-toolbar .bulk-delete:enabled{background:#b91c1c;color:white;border-color:#991b1b}.project-bulk-toolbar .bulk-action:disabled{background:#e2e8f0;color:#64748b;border-color:#cbd5e1;opacity:1;cursor:not-allowed}.project-bulk-toolbar .bulk-action:enabled:hover{filter:brightness(.9);box-shadow:0 2px 6px #0f172a33}.project-task-check{accent-color:#1d4ed8;width:20px;height:20px}.task-node:has(.project-task-check:checked)>.task-row{outline:2px solid #3b82f6;outline-offset:-2px}.template-catalog{display:grid;grid-template-columns:repeat(auto-fit,minmax(270px,1fr));gap:16px}.template-card,.template-editor-item{padding:16px;border:1px solid #cbd5e1;border-radius:10px;background:#f8fafc;margin:12px 0}.template-card-actions,.template-editor-heading,.template-editor-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.template-editor-heading{justify-content:space-between;margin-bottom:12px}.template-editor-item .field{margin-bottom:10px}.template-editor-actions{padding:12px 0}

/* Bulk operations: visible action area and selection feedback */
.project-bulk-toolbar{top:8px;border:2px solid #2563eb;box-shadow:0 5px 18px #1e40af29}
.project-bulk-toolbar:has(.project-task-check:checked){border-color:#1d4ed8}
.project-bulk-toolbar .bulk-action:enabled{cursor:pointer;box-shadow:0 2px 5px #0f172a26}
.project-bulk-toolbar small{font-weight:600}

/* Bulk selection and action controls: visually separated, consistent dimensions. */
.project-bulk-toolbar{display:flex;flex-direction:column;align-items:stretch;gap:12px}
.bulk-selection-line,.bulk-action-line{display:flex;flex-wrap:wrap;align-items:center;gap:10px;width:100%}
.bulk-section-label{font-weight:800;color:#1e3a8a;min-width:85px}
.project-bulk-toolbar button{min-height:44px;padding:10px 14px;border-radius:8px;font-weight:700;font-size:13px}
.project-bulk-toolbar .bulk-select-btn{background:#dbeafe;color:#1e3a8a;border:2px solid #60a5fa}
.project-bulk-toolbar .bulk-descendants{background:#bfdbfe;border-color:#2563eb}
.project-bulk-toolbar .bulk-clear-btn{background:#fff;color:#334155;border:2px solid #94a3b8}
.project-bulk-toolbar .bulk-action{min-width:160px;min-height:44px}
.project-bulk-toolbar .bulk-action:disabled{opacity:.65}
.template-editor-item{margin-top:9px;margin-bottom:9px;padding:12px;border-left:5px solid #64748b}
.template-editor-item.template-task{border-left-color:#2563eb;background:#eff6ff}
.template-editor-item.template-todo{border-left-color:#0d9488;background:#f0fdfa}
.template-editor-heading{display:flex;flex-wrap:nowrap}
.template-editor-heading .template-title{flex:1;min-width:130px}
.template-kind{font-weight:800;min-width:52px}
.template-editor-meta{display:flex;gap:8px;flex-wrap:wrap;align-items:center;margin:8px 0}
.template-editor-meta select{max-width:280px}
.template-editor-item details{margin-top:8px}
#projectToolsDlg:has(#templateEditorRows){width:min(1100px,97vw)}

/* Compact single-line bulk toolbar. On narrow screens, scroll horizontally. */
.project-bulk-toolbar.compact-bulk{display:flex;flex-direction:row;flex-wrap:nowrap;align-items:center;gap:6px;width:100%;max-width:100%;box-sizing:border-box;padding:8px 10px;margin:10px 0;border:1px solid #cbd5e1;border-radius:8px;background:#f8fafc;box-shadow:none;overflow-x:auto;overflow-y:hidden;white-space:nowrap;top:8px;scrollbar-width:thin}
.project-bulk-toolbar.compact-bulk #projectSelectionCount{flex:0 0 auto;padding:6px 10px;border-radius:5px;font-size:12px;background:#1e40af;color:#fff}
.project-bulk-toolbar.compact-bulk .bulk-divider{flex:0 0 1px;height:20px;background:#cbd5e1;margin:0 5px}
.project-bulk-toolbar.compact-bulk button,.project-bulk-toolbar.compact-bulk .bulk-action{flex:0 0 auto;width:auto;min-width:0;min-height:30px;height:30px;padding:4px 10px;border-radius:5px;border-width:1px;font-size:12px;font-weight:600;line-height:18px;box-shadow:none}
.project-bulk-toolbar.compact-bulk .bulk-select-btn{background:#eff6ff;border-color:#bfdbfe;color:#1e40af}
.project-bulk-toolbar.compact-bulk .bulk-descendants{background:#eff6ff;border-color:#93c5fd}
.project-bulk-toolbar.compact-bulk .bulk-clear-btn{background:transparent;border-color:transparent;color:#64748b}
.project-bulk-toolbar.compact-bulk .bulk-action:enabled{box-shadow:none}
.project-bulk-toolbar.compact-bulk .bulk-action:disabled{background:#edf0f4;border-color:#e2e8f0;color:#94a3b8;opacity:1}
.project-bulk-toolbar.compact-bulk .bulk-delete:enabled{background:#fff1f2;color:#be123c;border-color:#fecdd3}
.project-bulk-toolbar.compact-bulk button:hover:not(:disabled){filter:brightness(.96)}

.account-title .profile-gear{margin-left:auto;flex:0 0 28px;width:28px;height:28px;padding:0;display:grid;place-items:center;border:1px solid #475569;border-radius:6px;background:#243247;color:#e2e8f0;font-size:16px;cursor:pointer}
.account-title .profile-gear:hover,.account-title .profile-gear:focus-visible{background:#334155;color:#fff;border-color:#94a3b8}

/* Account identity: dedicated name / department / level lines, no name truncation. */
.account-title{align-items:flex-start;gap:9px}
.account-title .account-avatar{margin-top:4px}
.account-panel #who.account-identity{display:flex;flex:1 1 auto;min-width:0;flex-direction:column;gap:3px;line-height:1.35;overflow-wrap:anywhere;word-break:keep-all}
.account-identity .account-name{font-size:13px;font-weight:750;color:#f8fafc}
.account-identity .account-department{font-size:12px;font-weight:500;color:#cbd5e1}
.account-identity .account-level{font-size:11px;font-weight:500;color:#94a3b8}
.account-title .profile-gear{margin-left:0;flex-shrink:0;margin-top:2px}

.workload-access-label{display:inline-flex;align-items:center;gap:8px;cursor:pointer;font-weight:600}.workload-access-label input{width:17px;height:17px;accent-color:#2563eb}

.report-private-form{grid-column:1/-1;padding:14px;border:1px solid #cbd5e1;border-radius:8px;background:#f8fafc;display:grid;gap:10px}
.report-private-form .field,.report-private-panel .field{display:flex;flex-direction:column;margin:10px 0}
.report-private-form textarea,.report-private-panel textarea{min-height:84px;width:100%;resize:vertical}

.report-private-panel{padding:0;overflow:hidden}
.report-private-summary{cursor:pointer;padding:16px 20px;font-weight:700;list-style:none;display:flex;align-items:center;justify-content:space-between}
.report-private-summary::-webkit-details-marker{display:none}
.report-private-summary:before{content:"▸";margin-right:10px;color:#2563eb}
.report-private-panel[open] .report-private-summary:before{content:"▾"}
.report-private-hint{font-size:12px;color:#64748b;font-weight:400;margin-left:auto}
.report-private-body{padding:0 20px 20px}

.shared-import-dialog{width:min(1080px,95vw);max-height:90vh;border:1px solid #cbd5e1;border-radius:12px;padding:24px}
.shared-import-dialog::backdrop{background:rgba(15,23,42,.55)}
.import-value{white-space:pre-wrap;min-width:180px;max-width:330px;overflow-wrap:anywhere}
.import-conflicts{border:1px solid #fca5a5;background:#fff1f2;border-radius:8px;padding:12px;margin:12px 0}
.import-conflicts ul{max-height:140px;overflow:auto}

.workload-status-badge{display:inline-block;min-width:48px;text-align:center;padding:5px 10px;border-radius:6px;font-weight:700;white-space:nowrap}

/* Member permission grid */
.permission-member-panel{overflow:hidden}
.permission-member-header{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:16px}
.permission-member-header h3{margin:0 0 7px}
.permission-member-header p{margin:0}
.permission-member-count{flex:none;border-radius:999px;padding:5px 11px;background:#edf2f8;color:#475569;font-size:12px;font-weight:700}
.permission-member-scroll{width:100%;overflow-x:auto;border:1px solid #e2e8f0;border-radius:10px}
.permission-member-table{width:100%;min-width:780px;border-collapse:collapse;table-layout:fixed}
.permission-member-table th{padding:13px 16px;background:#f5f8fc;color:#475569;font-size:12px;font-weight:700;border-bottom:1px solid #e2e8f0;text-align:left;white-space:nowrap}
.permission-member-table td{padding:11px 16px;border-bottom:1px solid #edf0f4;vertical-align:middle;font-size:13px}
.permission-member-table tbody tr:last-child td{border-bottom:0}
.permission-member-table tbody tr:hover{background:#f8fbff}
.permission-member-table .permission-center{text-align:center;padding-left:8px;padding-right:8px}
.permission-user-name{font-weight:650;color:#1e293b}
.permission-user-id{font-size:11px;color:#94a3b8;margin-top:3px}
.permission-level{display:inline-block;border:1px solid #e2e8f0;background:#f8fafc;border-radius:6px;padding:4px 8px;font-size:12px;color:#475569}
.permission-switch{position:relative;display:inline-flex;width:36px;height:21px;cursor:pointer;vertical-align:middle}
.permission-switch input{position:absolute;opacity:0;width:100%;height:100%;margin:0;cursor:pointer;z-index:2}
.permission-switch-track{width:36px;height:21px;border-radius:999px;background:#cbd5e1;transition:background .15s;position:relative}
.permission-switch-track:after{content:"";position:absolute;top:3px;left:3px;width:15px;height:15px;border-radius:50%;background:white;box-shadow:0 1px 3px #0002;transition:transform .15s}
.permission-switch input:checked+.permission-switch-track{background:#2563eb}
.permission-switch input:checked+.permission-switch-track:after{transform:translateX(15px)}
.permission-switch input:focus-visible+.permission-switch-track{outline:3px solid #93c5fd;outline-offset:2px}
.permission-switch input:disabled+.permission-switch-track{opacity:.5;cursor:wait}
.permission-footnote{font-size:12px;color:#64748b;margin:12px 2px 0}

/* Quick status editing for To-do rows */
.inline-todo-status{max-width:85px;width:100%;border:1px solid transparent;border-radius:999px;padding:5px 6px;font-size:12px;font-weight:700;cursor:pointer;text-align:center;appearance:auto}.inline-todo-status:hover,.inline-todo-status:focus{border-color:#94a3b8;outline-offset:2px}.inline-todo-status:disabled{opacity:.65;cursor:default}

/* Mobile navigation: fixed drawer, independent of desktop sidebar. */
.mobile-menu-button,.mobile-menu-backdrop{display:none}
@media(max-width:850px){
  #app{display:block}
  #mobileMenuButton{display:flex;position:sticky;top:0;z-index:101;align-items:center;gap:8px;width:100%;height:48px;padding:8px 16px;border:0;border-bottom:1px solid #dbe3ee;border-radius:0;background:#fff;color:#0f172a;font-size:17px;font-weight:700;text-align:left}
  #mobileMenuButton span{font-size:14px}
  #appSidebar{display:flex;position:fixed;top:0;left:0;bottom:0;width:min(280px,85vw);height:100dvh;z-index:105;transform:translateX(-105%);transition:transform .2s ease;visibility:hidden;overflow-y:auto;box-shadow:5px 0 20px #0003}
  #app.mobile-nav-open #appSidebar{transform:translateX(0);visibility:visible}
  #app.mobile-nav-open #mobileMenuBackdrop{display:block;position:fixed;inset:0;z-index:104;background:rgba(15,23,42,.52)}
  #app main{margin-left:0;padding:12px;min-width:0}
  body.mobile-nav-locked{overflow:hidden}
}
@media(min-width:851px){#mobileMenuButton,#mobileMenuBackdrop{display:none!important}}
@media(prefers-reduced-motion:reduce){#appSidebar{transition:none}}
