/* 事業部OS 共通スタイル */
* { box-sizing: border-box; }
body { margin: 0; font-family: "Hiragino Kaku Gothic ProN", "Noto Sans JP", Meiryo, system-ui, sans-serif;
  background: #f4f5f7; color: #1a202c; font-size: 14px; line-height: 1.6; }
a { color: #2563eb; text-decoration: none; }
a:hover { text-decoration: underline; }

/* ヘッダー */
.hdr { background: #101828; color: #fff; display: flex; align-items: center; gap: 20px; padding: 0 20px; height: 52px; }
.hdr .brand { font-weight: 700; font-size: 15px; letter-spacing: .02em; }
.hdr .brand small { color: #94a3b8; font-weight: 400; margin-left: 6px; }
.hdr nav { display: flex; gap: 4px; flex: 1; white-space: nowrap; }
.hdr nav a { color: #cbd5e1; padding: 6px 12px; border-radius: 6px; font-size: 13.5px; }
.header-help { border: 0; background: transparent; color: #94a3b8; padding: 6px 10px; font-size: 12px; cursor: pointer; }
.header-help:hover { color: #fff; }
.nav-badge { display: inline-block; min-width: 17px; margin-left: 5px; padding: 1px 5px; border-radius: 999px; background: #ef4444; color: #fff; font-size: 10.5px; font-weight: 700; text-align: center; }
.nav-badge[hidden] { display: none; }
.hdr nav a.active, .hdr nav a:hover { background: #1f2a44; color: #fff; text-decoration: none; }
.header-search { display: flex; align-items: center; }
.header-search input { width: 230px; padding: 6px 9px; border: 1px solid #334155; border-radius: 7px; background: #fff; color: #1a202c; font-size: 12.5px; }
.header-search-toggle { display: none; }
.header-add { width: 32px; height: 32px; border: 1px solid #475569; border-radius: 8px; background: #1f2a44; color: #fff; font-size: 20px; line-height: 1; cursor: pointer; }
.user-menu { position: relative; z-index: 100; color: #cbd5e1; font-size: 12.5px; }
.user-menu-toggle { border: 0; background: transparent; color: inherit; font: inherit; cursor: pointer; white-space: nowrap; }
.user-menu-icon { display: none; }
.user-menu-panel { display: none; position: absolute; z-index: 101; top: calc(100% + 10px); right: 0; min-width: 130px; padding: 8px;
  background: #101828; border: 1px solid #334155; border-radius: 8px; box-shadow: 0 8px 24px rgba(0,0,0,.25); }
.user-menu.open .user-menu-panel { display: block; }
.hdr button.logout { width: 100%; background: none; border: 1px solid #334155; color: #cbd5e1; border-radius: 6px;
  padding: 6px 10px; font-size: 12px; cursor: pointer; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 20px; }
h1.page { font-size: 18px; margin: 4px 0 2px; }
p.lead { color: #64748b; margin: 0 0 16px; font-size: 13px; }

/* ツールバー・フィルタ */
.toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 14px; }
.toolbar select, .toolbar input[type=text], .toolbar input[type=month] {
  padding: 7px 10px; border: 1px solid #d7dce3; border-radius: 8px; background: #fff; font-size: 13px; }
.toolbar .spacer { flex: 1; }
button.primary { background: #2563eb; color: #fff; border: none; border-radius: 8px; padding: 8px 16px;
  font-size: 13.5px; font-weight: 600; cursor: pointer; }
button.primary:hover { background: #1d4ed8; }
button.ghost { background: #fff; border: 1px solid #d7dce3; color: #334155; border-radius: 8px;
  padding: 7px 12px; font-size: 12.5px; cursor: pointer; }
button.ghost:hover { border-color: #94a3b8; }
button.danger { background: #fff; border: 1px solid #fca5a5; color: #dc2626; border-radius: 8px;
  padding: 7px 12px; font-size: 12.5px; cursor: pointer; }

/* サマリ帯 */
.stats { display: flex; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.stat { background: #fff; border: 1px solid #e5e9ef; border-radius: 10px; padding: 10px 16px; min-width: 130px; }
.stat .n { font-size: 22px; font-weight: 700; }
.stat .t { color: #64748b; font-size: 12px; }

/* カード */
.card { background: #fff; border: 1px solid #e5e9ef; border-radius: 12px; padding: 14px 16px; margin-bottom: 10px; }
.card .row1 { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.card .title { font-weight: 700; font-size: 14.5px; }
.card .body { color: #334155; margin: 6px 0; white-space: pre-wrap; }
.card .meta { color: #94a3b8; font-size: 12px; }
.card .evidence { background: #f8fafc; border-left: 3px solid #94a3b8; padding: 6px 10px; margin: 6px 0;
  font-size: 12.5px; color: #475569; }
.card .actions { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.card .detail { border-top: 1px dashed #e2e8f0; margin-top: 10px; padding-top: 8px; font-size: 12.5px; }
.card .detail .c { margin-bottom: 4px; }
.card .detail .c .u { color: #64748b; }

/* チップ */
.chip { display: inline-block; border-radius: 999px; padding: 2px 10px; font-size: 11.5px; font-weight: 600; white-space: nowrap; }
.chip.id { background: #eef2f7; color: #475569; font-family: ui-monospace, monospace; }
.chip.lane { background: #eef4ff; color: #1d4ed8; }
.chip.kind { background: #f1f5f9; color: #475569; }
.chip.src-ai { background: #f3e8ff; color: #7c3aed; }
.chip.src-human { background: #ecfdf5; color: #047857; }
.chip.lv-high { background: #fee2e2; color: #b91c1c; }
.chip.lv-mid { background: #fef3c7; color: #92400e; }
.chip.lv-low { background: #f1f5f9; color: #64748b; }
.chip.st-proposed { background: #fff7ed; color: #c2410c; border: 1px solid #fed7aa; }
.chip.st-approved { background: #eff6ff; color: #1d4ed8; border: 1px solid #bfdbfe; }
.chip.st-in_progress { background: #f5f3ff; color: #6d28d9; border: 1px solid #ddd6fe; }
.chip.st-hold { background: #fefce8; color: #a16207; border: 1px solid #fde68a; }
.chip.st-released { background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; }
.chip.st-measured { background: #f1f5f9; color: #475569; border: 1px solid #e2e8f0; }
.chip.st-rejected { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }

/* レーンボード */
.lanes { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 12px; }
.lane-card { background: #fff; border: 1px solid #e5e9ef; border-radius: 12px; padding: 14px 16px; }
.lane-card h3 { margin: 0 0 6px; font-size: 15px; display: flex; align-items: center; gap: 8px; }
.dot { width: 12px; height: 12px; border-radius: 50%; display: inline-block; flex: none; }
.dot.green { background: #22c55e; }
.dot.yellow { background: #f59e0b; }
.dot.red { background: #ef4444; box-shadow: 0 0 0 3px #fee2e2; }
.lane-card ul.reasons { margin: 4px 0 8px; padding-left: 18px; color: #b45309; font-size: 12.5px; }
.lane-card ul.reasons li.r { color: #dc2626; }
table.kpi { width: 100%; border-collapse: collapse; font-size: 12.5px; margin-top: 4px; table-layout: fixed; }
table.kpi th { text-align: left; color: #94a3b8; font-weight: 600; padding: 3px 6px; border-bottom: 1px solid #eef2f7; font-size: 11.5px; }
table.kpi th:nth-child(1) { width: 34%; }
table.kpi th:nth-child(2) { width: 26%; }
table.kpi th:nth-child(3) { width: 18%; }
table.kpi td { padding: 4px 6px; border-bottom: 1px solid #f4f6f9; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
table.kpi td:first-child { white-space: normal; }
table.kpi td.kv { text-align: right; font-weight: 700; font-size: 13px; }
.lane-card { min-width: 0; overflow: hidden; }
.bar { min-width: 0; width: 100%; }
.src-note { font-size: 11px; color: #a8b3c2; margin-top: 6px; }
.lane-foot { margin-top: 8px; display: flex; gap: 14px; font-size: 12.5px; }
.bar { background: #eef2f7; border-radius: 4px; height: 6px; overflow: hidden; min-width: 60px; }
.bar i { display: block; height: 100%; background: #2563eb; }
.bar i.warn { background: #f59e0b; }
.bar i.bad { background: #ef4444; }

button { white-space: nowrap; }

/* 一覧テーブル（案件・メンバー） */
table.list { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid #e5e9ef;
  border-radius: 12px; overflow: hidden; font-size: 13px; }
table.list th { background: #f8fafc; color: #64748b; font-weight: 600; padding: 8px 12px; text-align: left;
  border-bottom: 1px solid #e5e9ef; white-space: nowrap; }
table.list td { padding: 9px 12px; border-bottom: 1px solid #f1f5f9; text-align: left; vertical-align: middle; }
table.list td.nw { white-space: nowrap; }

/* 業績テーブル */
table.perf { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid #e5e9ef;
  border-radius: 12px; overflow: hidden; font-size: 13px; }
table.perf th { background: #f8fafc; color: #64748b; font-weight: 600; padding: 8px 10px; text-align: right;
  border-bottom: 1px solid #e5e9ef; }
table.perf th:first-child { text-align: left; }
table.perf td { padding: 8px 10px; text-align: right; border-bottom: 1px solid #f1f5f9; }
table.perf td:first-child { text-align: left; }
table.perf tr.subtotal td { font-weight: 700; background: #fbfcfe; }
table.perf tr.total td { font-weight: 700; background: #eef4ff; border-top: 2px solid #bfdbfe; }
.prov { color: #b45309; }
.ach-bad { color: #dc2626; font-weight: 700; }
.ach-warn { color: #b45309; font-weight: 700; }
.ach-ok { color: #047857; font-weight: 700; }

/* ダイアログ */
dialog { border: none; border-radius: 14px; box-shadow: 0 20px 60px rgba(15, 23, 42, .25);
  padding: 22px; width: min(560px, 92vw); }
dialog::backdrop { background: rgba(15, 23, 42, .45); }
dialog h3 { margin: 0 0 14px; font-size: 16px; }
dialog label { display: block; font-size: 12.5px; color: #475569; font-weight: 600; margin: 10px 0 4px; }
dialog input[type=text], dialog input[type=number], dialog input[type=date], dialog textarea, dialog select {
  width: 100%; padding: 8px 10px; border: 1px solid #d7dce3; border-radius: 8px; font-size: 13.5px; font-family: inherit; }
dialog textarea { min-height: 90px; resize: vertical; }
dialog .btns { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; }
dialog .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.quick-add-options { display: grid; gap: 8px; }
.quick-add-options button { width: 100%; }
.message-dialog p { white-space: pre-wrap; color: #475569; }
.usage-guide-steps { display: grid; gap: 10px; }
.usage-guide-steps > div { display: grid; gap: 2px; padding: 11px 12px; background: #f8fafc; border-radius: 10px; }
.usage-guide-steps span { color: #64748b; font-size: 12.5px; }
.note { font-size: 12px; color: #94a3b8; }

/* ホーム */
h2.sec { font-size: 14.5px; margin: 22px 0 10px; color: #334155; }
.todo { display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid #e5e9ef;
  border-radius: 10px; padding: 12px 16px; margin-bottom: 8px; color: #1a202c; }
.todo:hover { text-decoration: none; border-color: #94a3b8; }
.todo .n { font-size: 20px; font-weight: 700; min-width: 28px; text-align: center; }
.todo .go { margin-left: auto; color: #2563eb; font-weight: 600; white-space: nowrap; }
.todo.warn { border-left: 4px solid #f59e0b; }
.todo.bad { border-left: 4px solid #ef4444; }
.chip.sig-red { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }
.chip.sig-yellow { background: #fffbeb; color: #b45309; border: 1px solid #fde68a; }
.chip.sig-green { background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; }
.banner-dev { background: #fef3c7; color: #92400e; padding: 6px 12px; font-size: 12px; text-align: center; }
.empty { color: #94a3b8; text-align: center; padding: 40px 0; }

/* マイデイ・案件詳細・メンバー負荷 */
.myday-tools { background: #fff; border: 1px solid #dbe4f0; border-radius: 12px; padding: 10px 12px; }
.task-card { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.task-card > div:first-child { min-width: 0; }
.task-card .actions { margin-top: 0; flex: none; }
.task-overdue { border-left: 4px solid #ef4444; }
.returned { border-left: 4px solid #f59e0b; }
.sent-update { border-left: 4px solid #2563eb; background: #eff6ff; }
.case-task-link { font-weight: 600; }
.task-line { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px solid #f1f5f9; }
.task-line:last-child { border-bottom: 0; }
.task-line.bad { border-left: 3px solid #ef4444; padding-left: 10px; }
.done-count { color: #047857; background: #ecfdf5; border-radius: 9px; padding: 8px 12px; margin-bottom: 8px; }
.mini-load { width: 100%; border-collapse: collapse; }
.mini-load th, .mini-load td { padding: 7px 10px; border-bottom: 1px solid #f1f5f9; text-align: left; white-space: nowrap; }
.mini-load th { color: #64748b; font-size: 12px; }
.recent-cases { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 12px 0; color: #64748b; font-size: 12.5px; }
.recent-cases .chip { border: 1px solid #e2e8f0; }
.load-num { text-align: center !important; font-weight: 700; }
.load-bad { color: #dc2626; font-weight: 700; }
.member-focus { background: #eff6ff; }
.workload-card { margin-top: 12px; }
.workload-source { margin-top: 3px; }
.workload-line { margin: 10px 0; }
.workload-line > div:first-child { display: flex; justify-content: space-between; gap: 12px; font-size: 12.5px; }
.member-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.inactive-heading td { background: #f1f5f9; color: #475569; padding-top: 14px; padding-bottom: 8px; }
.inactive-member { background: #f8fafc; color: #64748b; }
.ghost.danger { color: #b91c1c; }
.workload-bar { height: 9px; margin-top: 4px; }
.estimate-btn { color: #2563eb !important; }
.member-row { cursor: pointer; }
.member-row:hover { background: #f8fafc; }
.member-detail-row > td { padding: 0 !important; background: #f8fafc; }
.member-tasks { padding: 14px 20px; }
.calendar-events { border-top: 1px solid #e5e9ef; margin-top: 12px; padding-top: 10px; }
.calendar-event { display: grid; grid-template-columns: 90px 1fr; gap: 10px; padding: 5px 0; font-size: 12.5px; }
.calendar-event > span:first-child { color: #64748b; }
.member-calendar { padding: 14px 20px 0; }
.connection-ok { color: #047857; }
.member-load { min-width: 130px; }
.member-load > b { margin-right: 6px; }
.member-load > span { color: #64748b; font-size: 11px; }
.member-load .bar { margin-top: 3px; }
.member-settings { margin-top: 5px; }
.case-click { cursor: pointer; }
.case-click:hover { background: #f8fafc; }
.case-detail-row > td { padding: 0 !important; background: #f8fafc; }
.case-detail { padding: 16px 20px; border-bottom: 1px solid #dbe4f0; }
.case-columns { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 18px; }
.case-columns h3 { margin: 0 0 8px; font-size: 13px; }
.detail-item { padding: 7px 0; border-bottom: 1px solid #e5e9ef; }

/* 案件ハブ */
.case-hub-back { margin-bottom: 8px; font-size: 12.5px; }
.case-hub-head { background: #fff; border: 1px solid #e5e9ef; border-radius: 12px; padding: 16px 18px; margin-bottom: 12px;
  display: grid; grid-template-columns: 1fr auto; gap: 12px 18px; align-items: start; }
.case-hub-head h1 { margin: 0 0 5px; }
.case-hub-meta { display: flex; align-items: center; gap: 10px; color: #64748b; font-size: 12.5px; }
.case-hub-status { grid-column: 1 / -1; display: grid; grid-template-columns: 90px 1fr; border-top: 1px solid #f1f5f9; padding-top: 9px; }
.case-hub-status b { color: #64748b; font-size: 12.5px; }
.case-hub-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.hub-section { padding: 16px 18px; }
.hub-title { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 8px; }
.hub-title h2 { font-size: 14.5px; margin: 0; }
.hub-link { display: flex; gap: 8px; align-items: center; padding: 8px 0; border-bottom: 1px solid #f1f5f9; }
.hub-link > a { min-width: 0; overflow-wrap: anywhere; }
.hub-actions { margin-left: auto; display: flex; gap: 5px; }
.hub-actions button { padding: 4px 8px; }
.meeting-row { border-bottom: 1px solid #eef2f7; padding: 8px 0; }
.meeting-row summary { cursor: pointer; display: grid; grid-template-columns: 100px 1fr; gap: 10px; }
.meeting-row summary span { color: #64748b; font-size: 12.5px; }
.meeting-summary { white-space: pre-wrap; color: #475569; margin: 8px 0; padding-left: 110px; }
.more { margin-top: 10px; }
.hub-foot { display: flex; justify-content: flex-end; align-items: center; gap: 10px; color: #94a3b8; font-size: 11.5px; }
.meeting-dialog { width: min(820px, 94vw); }
.task-title { border: 0; background: none; color: #1d4ed8; padding: 0; font: inherit; font-weight: 700; cursor: pointer; white-space: normal; text-align: left; }
.task-title:hover { text-decoration: underline; }
.task-comments, .task-unread { display: inline-block; margin-left: 6px; padding: 2px 7px; border-radius: 999px; font-size: 11px; }
.task-comments { background: #f1f5f9; color: #64748b; }
.task-unread { background: #dbeafe; color: #1d4ed8; font-weight: 700; }
.task-backlog { margin: 12px 0; }
.task-backlog > summary { cursor: pointer; color: #475569; font-weight: 700; padding: 9px 4px; }
.task-detail-dialog { width: min(720px, 94vw); }
.task-detail-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.task-detail-head h3 { margin-bottom: 8px; }
.task-detail-body { white-space: pre-wrap; padding: 10px 0; color: #334155; }
.task-detail-meta { display: grid; grid-template-columns: 100px 1fr; gap: 7px 12px; margin: 12px 0; padding: 12px; background: #f8fafc; border-radius: 10px; font-size: 13px; }
.task-detail-meta dt { color: #64748b; font-weight: 700; }
.task-detail-meta dd { margin: 0; }
.task-detail-actions { display: flex; justify-content: flex-end; gap: 8px; }
.task-conversation { border-top: 1px solid #e5e9ef; margin-top: 16px; padding-top: 14px; }
.task-conversation h4 { margin: 0 0 8px; }
.task-comment { padding: 9px 0; border-bottom: 1px solid #f1f5f9; font-size: 13px; }
.task-comment > span { color: #94a3b8; font-size: 11px; margin-left: 8px; }
.task-comment > div { white-space: pre-wrap; margin-top: 3px; }
.task-conversation textarea { min-height: 64px; }
.request-state-group { margin: 10px 0 14px; }
.meeting-body { white-space: pre-wrap; margin-top: 14px; max-height: 65vh; overflow: auto; line-height: 1.8; }
.chip.admin-only { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; margin-left: 6px; }
.chip.unclassified { background: #fff7ed; color: #c2410c; border: 1px solid #fed7aa; margin-left: 6px; }
.meeting-filters input { min-width: min(320px, 100%); }
.meeting-pager { display: flex; justify-content: center; align-items: center; gap: 12px; margin-top: 14px; color: #64748b; font-size: 13px; }
.meeting-pager button:disabled { opacity: .45; cursor: default; }
.meeting-case-links { display: inline; margin-left: 8px; color: #64748b; font-size: 11.5px; font-weight: 400; }
.search-row { display: block; padding: 10px 0; border-bottom: 1px solid #eef2f7; color: #1a202c; }
.search-row:last-child { border-bottom: 0; }
.search-row-link:hover { text-decoration: none; background: #f8fafc; }
.table-scroll { max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table-scroll > table { min-width: 700px; }
.table-scroll > table.perf { min-width: 1100px; }

@media (max-width: 1100px) {
  .header-search { margin-left: auto; }
  .header-search input { display: none; width: min(250px, 55vw); }
  .header-search.open input { display: block; }
  .header-search-toggle { display: block; width: 32px; height: 32px; border: 1px solid #475569; border-radius: 8px; background: #1f2a44; color: #fff; font-size: 20px; cursor: pointer; }
  .header-search.open .header-search-toggle { display: none; }
}

@media (max-width: 760px) {
  .hdr { height: auto; min-height: 52px; flex-wrap: wrap; padding: 8px 12px; gap: 8px; }
  .hdr nav { order: 3; width: 100%; overflow-x: auto; }
  .task-card { align-items: flex-start; flex-direction: column; }
  .case-columns { grid-template-columns: 1fr; }
  .case-hub-grid { grid-template-columns: 1fr; }
  .meeting-row summary { grid-template-columns: 1fr; gap: 2px; }
  .meeting-summary { padding-left: 0; }
  .wrap { padding: 14px; overflow-x: hidden; }
}

@media (max-width: 640px) {
  body { overflow-x: hidden; }
  .hdr { padding: 6px 10px; column-gap: 6px; }
  .hdr .brand { flex: none; }
  .hdr .brand small { display: none; }
  .hdr nav { order: 3; flex: 0 0 100%; width: 100%; overflow-x: auto; flex-wrap: nowrap; scrollbar-width: thin; }
  .hdr nav a, .header-help { display: flex; align-items: center; min-height: 44px; flex: none; }
  .header-search { margin-left: auto; }
  .header-search.open { order: 2; flex: 1 1 calc(100% - 110px); }
  .header-search.open input { width: 100%; min-height: 44px; }
  .header-search-toggle, .header-add { width: 44px; height: 44px; flex: none; }
  .user-menu-toggle { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; }
  .user-menu-toggle > span:first-child { display: none; }
  .user-menu-icon { display: inline; font-size: 18px; }
  .user-menu-panel { top: calc(100% + 4px); background: #101828; }
  .wrap { width: 100%; padding: 12px 16px 24px; }
  .card { width: 100%; padding: 13px 14px; }
  .toolbar { align-items: stretch; }
  .toolbar select, .toolbar input, .toolbar button { min-height: 44px; }
  .myday-tools > b { width: 100%; }
  .myday-tools .spacer { display: none; }
  .myday-tools button { flex: 1 1 calc(50% - 4px); }
  .task-card { width: 100%; gap: 10px; }
  .task-title { min-height: 44px; padding: 10px 0; }
  .task-card .actions { width: 100%; flex-wrap: wrap; }
  .task-card .actions button { min-height: 44px; flex: 1 1 auto; }
  .todo { flex-wrap: wrap; padding: 12px 14px; }
  .todo .go { width: 100%; margin-left: 40px; }
  .task-line { align-items: flex-start; flex-wrap: wrap; }
  .case-hub-head { grid-template-columns: 1fr; padding: 14px; }
  .case-hub-head .hub-actions { width: 100%; flex-wrap: wrap; }
  .case-hub-head .hub-actions button { min-height: 44px; flex: 1 1 auto; }
  .case-hub-status { grid-template-columns: 1fr; gap: 2px; }
  .hub-title { align-items: flex-start; flex-wrap: wrap; }
  .hub-title button { min-height: 44px; }
  .hub-link { align-items: flex-start; flex-wrap: wrap; }
  .hub-link .hub-actions { width: 100%; margin-left: 0; }
  .meeting-row .btns { display: flex; flex-wrap: wrap; gap: 8px; }
  .meeting-row .btns button { min-height: 44px; flex: 1 1 auto; }
  dialog { width: calc(100vw - 32px); max-width: calc(100vw - 32px); max-height: calc(100vh - 32px); padding: 18px; overflow-y: auto; }
  dialog .row2 { grid-template-columns: 1fr; }
  dialog .btns { flex-wrap: wrap; }
  dialog .btns button { min-height: 44px; flex: 1 1 auto; }
  .task-detail-meta { grid-template-columns: 82px minmax(0, 1fr); }
  .calendar-event { grid-template-columns: 72px minmax(0, 1fr); }
  .stats .stat { flex: 1 1 calc(50% - 5px); min-width: 0; }
}
