/* Dashboard as a work home (2026-09-30): 「무엇을 맡기시겠어요?」 → 맡긴 일 → 에이전트와 자원(접힘).
   Kept in its own file so it does not collide with other work on styles.css. Colours come from the shared tokens. */
.task-home{margin:0 0 var(--section-gap);padding:28px;background:var(--surface);border:1px solid var(--line);border-radius:16px;display:flex;flex-direction:column;gap:16px}
.task-home-head h2{margin:0 0 6px;font-size:22px;line-height:30px;letter-spacing:-.02em}
.task-home-head p{margin:0;color:var(--muted);font-size:14px;line-height:22px;word-break:keep-all}
.task-search{display:flex;align-items:center;gap:10px;height:52px;padding:0 16px;border:1px solid var(--line);border-radius:12px;background:var(--bg);max-width:720px}
.task-search:focus-within{border-color:var(--accent);box-shadow:0 0 0 3px var(--accent-soft);background:var(--surface)}
.task-search .icon{width:20px;height:20px;color:var(--muted);flex:none}
.task-search input{flex:1;min-width:0;height:100%;border:0;background:transparent;font-size:15px;outline:none;box-shadow:none;padding:0}
.task-chips{display:flex;flex-wrap:wrap;gap:8px}
.task-chip{min-height:0;height:34px;padding:0 14px;border-radius:999px;border:1px solid var(--line);background:var(--surface);color:var(--text);font-size:13px;font-weight:550;box-shadow:none}
.task-chip:hover{background:var(--oc-gray-0)}
.task-chip[aria-pressed="true"]{background:var(--ink);border-color:var(--ink);color:var(--surface)}
.task-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.task-grid[data-collapsed="true"] .task-card:nth-child(n+7){display:none}
.task-card{display:flex;flex-direction:column;gap:8px;padding:20px;border:1px solid var(--line-soft);border-radius:12px;background:var(--surface);min-width:0;transition:border-color .15s,box-shadow .15s}
.task-card:hover{border-color:var(--line);box-shadow:0 6px 18px rgba(16,18,40,.06)}
.task-card[hidden]{display:none!important}
.task-card-top{display:flex;align-items:center;justify-content:space-between;gap:8px}
.task-icon{display:inline-grid;place-items:center;width:40px;height:40px;border-radius:10px;background:var(--accent-soft);color:var(--accent)}
.task-icon .icon{width:20px;height:20px}
.task-roles{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:4px}
.task-roles span{padding:2px 8px;border-radius:999px;background:var(--oc-gray-1);color:var(--oc-gray-8);font-size:11px;line-height:18px}
.task-card h3{margin:4px 0 0;font-size:16px;line-height:24px}
.task-card>p{margin:0;color:var(--muted);font-size:13px;line-height:20px;word-break:keep-all;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:40px}
.task-card footer{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:auto;padding-top:12px;border-top:1px solid var(--line-soft)}
.task-who{display:flex;align-items:center;gap:6px;min-width:0;color:var(--muted);font-size:12px}
.task-who span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.task-who .icon{width:16px;height:16px;flex:none}
.task-card footer .ui-button{flex:none;min-height:36px;padding:6px 16px;text-decoration:none}
.task-card footer a.ui-button{display:inline-flex;align-items:center;border-radius:var(--radius)}
.task-card footer a.ui-button.primary{background:var(--accent);color:#fff;border:1px solid var(--accent)}
.task-card footer a.ui-button.primary:hover{background:var(--accent-hover,var(--accent))}
.task-more{align-self:center;min-height:36px}
.task-empty{display:flex;flex-direction:column;align-items:flex-start;gap:6px;padding:20px;border:1px dashed var(--line);border-radius:12px}
.task-empty[hidden]{display:none}
.task-empty p{margin:0;color:var(--muted)}
.handed-home{margin:0 0 var(--section-gap);padding:24px 28px;background:var(--surface);border:1px solid var(--line);border-radius:16px}
.handed-home>header h2{margin:0 0 4px;font-size:17px;line-height:26px}
.handed-home>header p{margin:0 0 12px;color:var(--muted);font-size:13px}
.handed-list{list-style:none;margin:0;padding:0}
.handed-row{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,1.4fr) minmax(0,1.2fr) auto;align-items:center;gap:16px;min-height:64px;border-top:1px solid var(--line-soft)}
.handed-name{display:flex;flex-direction:column;min-width:0}
.handed-name a{font-weight:600;color:var(--ink);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.handed-name small{color:var(--muted);font-size:12px}
.handed-last,.handed-next{display:flex;align-items:center;gap:8px;min-width:0;font-size:13px;color:var(--text);flex-wrap:wrap}
.handed-last .badge{margin:0}
.handed-next .icon{width:16px;height:16px;color:var(--muted)}
.handed-actions .ui-button{min-height:34px;padding:4px 14px}
.handed-empty{margin:0}
.dashboard-ops{margin:0 0 var(--section-gap);border:1px solid var(--line);border-radius:16px;background:var(--surface)}
.dashboard-ops>summary{display:flex;align-items:center;gap:12px;padding:18px 24px;margin:0;cursor:pointer;list-style:none}
.dashboard-ops>summary::-webkit-details-marker{display:none}
.dashboard-ops>summary::after{content:'';margin-left:auto;width:8px;height:8px;border-right:1.5px solid var(--muted);border-bottom:1.5px solid var(--muted);transform:rotate(45deg);transition:transform .15s}
.dashboard-ops[open]>summary::after{transform:rotate(-135deg)}
.ops-title{font-weight:650;font-size:15px}
.ops-line{color:var(--muted);font-size:13px}
.dashboard-ops-body{padding:0 24px 24px}
.dashboard-ops-actions{display:flex;justify-content:flex-end;gap:8px;margin-bottom:16px}
.dashboard-ops-actions a.ui-button{display:inline-flex;align-items:center;border:1px solid var(--line);border-radius:var(--radius);background:var(--surface);color:var(--text);text-decoration:none}
@media (max-width:1100px){.task-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.handed-row{grid-template-columns:minmax(0,1fr) auto;padding:12px 0}.handed-last,.handed-next{grid-column:1/-1}}
@media (max-width:720px){.task-grid{grid-template-columns:minmax(0,1fr)}.task-home,.handed-home{padding:20px}}
/* 권한별 대시보드(2026-10-01): 역할 표시, 처리할 일 목록, 매니저 화면의 접힌 「업무 맡기기」, 팀 운영 화면의 프로젝트 상태 칸 */
.dash-role{display:inline-flex;align-items:center;height:24px;padding:0 10px;border-radius:999px;background:var(--oc-gray-1);color:var(--oc-gray-8);font-size:12px;font-weight:600;white-space:nowrap}
.dash-todo{margin:0 0 var(--section-gap);padding:20px 24px;background:var(--surface);border:1px solid var(--line);border-radius:16px}
.dash-todo>header{display:flex;align-items:center;gap:8px;margin-bottom:8px}
.dash-todo>header h2{margin:0;font-size:17px;line-height:26px}
.dash-todo-count{padding:0 8px;border-radius:999px;background:var(--oc-orange-0);color:var(--oc-orange-9);font-size:12px;font-weight:600;line-height:22px}
.dash-todo ul{list-style:none;margin:0;padding:0}
.dash-todo li{display:grid;grid-template-columns:36px minmax(0,1fr) auto;align-items:center;gap:14px;min-height:64px;padding:10px 0;border-top:1px solid var(--line-soft)}
.dash-todo li>div{display:flex;flex-direction:column;gap:2px;min-width:0}
.dash-todo li strong{font-size:14px;line-height:20px}
.dash-todo li>div>span{color:var(--muted);font-size:13px;line-height:20px;word-break:keep-all}
.dash-todo li .ui-button{min-height:34px;padding:4px 14px;white-space:nowrap}
.dash-todo li a.ui-button{display:inline-flex;align-items:center;border:1px solid var(--line);border-radius:var(--radius);background:var(--surface);color:var(--text);text-decoration:none}
.dash-todo-icon{display:inline-grid;place-items:center;width:36px;height:36px;border-radius:10px;background:var(--oc-orange-0);color:var(--oc-orange-8)}
.dash-todo-icon .icon{width:18px;height:18px}
.dash-todo-icon.error{background:var(--oc-red-0);color:var(--oc-red-7)}
.dash-todo-icon.info{background:var(--accent-soft);color:var(--accent)}
.dash-todo-icon.muted{background:var(--oc-gray-1);color:var(--muted)}
.dash-todo-empty{display:flex;align-items:center;gap:8px;margin:0;padding:12px 0 4px;color:var(--muted);font-size:13px}
.dash-todo-empty .icon{width:18px;height:18px;color:var(--oc-green-7,var(--accent))}
.dashboard-work .dashboard-ops-body>.task-home,.dashboard-work .dashboard-ops-body>.handed-home{margin:0;padding:20px 0 0;border:0;border-radius:0}
.dashboard-work .dashboard-ops-body>.handed-home{margin-top:20px;border-top:1px solid var(--line-soft)}
.team-home-summary+.dash-todo{margin-top:0}
.team-recent-projects.with-health a{grid-template-columns:36px minmax(0,1fr) auto auto auto}
.project-health{font-size:13px;color:var(--muted);white-space:nowrap}
.project-health.warn{color:var(--oc-orange-8);font-weight:600}
@media (max-width:720px){.dash-todo{padding:16px}.dash-todo li{grid-template-columns:36px minmax(0,1fr)}.dash-todo li>.ui-button,.dash-todo li>.denied{grid-column:2;justify-self:start}.team-recent-projects.with-health a{grid-template-columns:36px minmax(0,1fr) auto}.team-recent-projects.with-health .project-services,.team-recent-projects.with-health .badge{display:none}}
/* LNB 아래 약관 링크는 가운데 정렬(2026-10-01 사용자 결정). styles.css 뒤에 불러와 그쪽 정렬을 덮는다 */
.sidebar .lnb-legal{justify-content:center;text-align:center}
@media(max-width:1279px){.sidebar .lnb-legal{flex-direction:column;gap:4px;padding:16px 4px 0}.sidebar .lnb-legal-sep{display:none}.sidebar .lnb-legal .ui-button.lnb-legal-link{white-space:normal;word-break:keep-all;overflow-wrap:anywhere;max-width:100%;font-size:11px;line-height:15px}}