.task-table { min-width: 1180px; }
.schedule-period { border-radius: 10px; box-shadow: 0 2px 0 rgba(42, 74, 96, .035); }
.schedule-period:nth-child(2) { border-top: 3px solid var(--accent); }
.schedule-period:nth-child(3) { border-top: 3px solid var(--blue); }
.schedule-period:nth-child(4) { border-top: 3px solid #e8b84a; }
.schedule-period .schedule-quick { border-radius: 9px; background: var(--surface-soft); }
.schedule-period .schedule-quick input { border-radius: 8px; }
.schedule-period .schedule-card.task-complete { border-radius: 7px; background: #edf6fc; box-shadow: inset 3px 0 var(--blue); }
.schedule-period .schedule-result.done { color: #2879b5; }
.schedule-period .schedule-ai-badge,
.schedule-period .schedule-ai-badge.is-running { color: #286fa8; background: #e4f2fc; }
.schedule-period .schedule-ai-status.is-running { color: #286fa8; background: #e4f2fc; }
.schedule-period .schedule-ai-toggle.is-running { border-color: #c5e0f2; background: #eaf4fb; color: #398bd0; }
.schedule-period .schedule-list.drag-over { background: rgba(57, 139, 208, .08); }
.schedule-period .schedule-card[draggable="true"]:hover { background: #f6fafd; }
.schedule-period .schedule-card[draggable="true"]::before { color: #8196a6; }
.schedule-summary-cards button { border-radius: 11px; box-shadow: 0 2px 0 rgba(42, 74, 96, .045); }
.schedule-summary-cards button:hover { transform: translateY(-1px); }
.schedule-dialog, .modal { border-radius: 12px; }
.schedule-overview-strip { display:flex; align-items:center; justify-content:space-between; gap:14px; min-width:0; overflow-x:auto; margin:12px 0 18px; padding:9px 12px; border:1px solid var(--line); border-radius:11px; background:var(--surface); box-shadow:0 2px 0 rgba(42,74,96,.035); scrollbar-width:thin; }
.schedule-overview-controls { display:flex; align-items:center; flex:0 0 auto; gap:9px; min-width:0; white-space:nowrap; }
.schedule-overview-controls .schedule-date { flex-wrap:nowrap; gap:5px; }
.schedule-overview-controls .schedule-date button, .schedule-overview-controls > button { padding:6px 9px; font-size:12px; }
.schedule-overview-controls .schedule-date input { width:132px; max-width:132px; padding:6px 8px; }
.schedule-overview-date { display:flex; align-items:center; gap:8px; color:var(--muted); font-size:12px; }
.schedule-overview-date strong { color:var(--text); font-size:13px; }
.schedule-overview-date span { white-space:nowrap; }
.schedule-capacity-warning { color:#9a7210; font-weight:700; }
.schedule-overview-controls #sc-sync { color:var(--muted); font-size:11px; }
.schedule-summary-cards { display:flex; flex:0 0 auto; gap:6px; margin:0; }
.schedule-summary-cards button { display:flex; align-items:center; gap:7px; min-width:94px; padding:7px 10px; border-radius:9px; box-shadow:none; }
.schedule-summary-cards span { font-size:11px; white-space:nowrap; }
.schedule-summary-cards strong { order:2; margin-left:auto; font-size:16px; }
.schedule-summary-cards small { display:none; }
.brand { gap:6px; }
.brand-home { width:32px; height:32px; flex-basis:32px; padding:7px; }
.brand-copy { min-width:0; }
.brand-copy > strong { font-size:14px; }
.brand .version-badge { color:inherit; opacity:.7; }
.brand-copy > span { max-width:102px; }
body[data-theme="green-yellow"] {
  --sidebar:#f1f7e9;
  --sidebar-text:#3e5668;
  --accent:#59a832;
  --accent-strong:#3d8122;
  --accent-soft:#edf7e6;
  --accent-sidebar:#5ba933;
  --blue:#e2b92c;
}
body[data-theme="green-yellow"] .sidebar { background:#f1f7e9; border-right-color:#dce9ce; }
body[data-theme="green-yellow"] .nav-item:hover { background:#e7f1db; }
body[data-theme="green-yellow"] .nav-item.active::before { background:#f0c63b; }
body[data-theme="green-yellow"] .schedule-period:nth-child(3) { border-top-color:#e2b92c; }
body[data-theme="green-yellow"] .schedule-period:nth-child(4) { border-top-color:#80bd4c; }
.sidebar-theme-picker { display:flex; align-items:center; gap:10px; margin-top:auto; padding:12px 9px 9px; }
.local-note { margin-top:0; }
.sidebar-theme-picker .theme-dot { display:block; box-sizing:border-box; width:24px; min-width:24px; height:24px; min-height:24px; aspect-ratio:1 / 1; flex:0 0 24px; padding:0; border:1px solid #aeb8c2; border-radius:50%; box-shadow:none; outline:0 solid transparent; outline-offset:2px; }
.sidebar-theme-picker .theme-dot:hover { transform:scale(1.08); }
.sidebar-theme-picker .theme-dot.active { outline:2px solid var(--accent); }
.theme-dot-orange { background:linear-gradient(90deg,#F97316 0 50%,#23211F 50%); }
.theme-dot-blue { background:linear-gradient(90deg,#85B7EB 0 50%,#FFFFFF 50%); }
.theme-dot-green-yellow { background:linear-gradient(90deg,#59a832 0 50%,#f0c63b 50%); }
.theme-dot-purple-white { background:linear-gradient(90deg,#554bb2 0 50%,#efedff 50%); }
body[data-theme="orange"] {
  --sidebar:#23211F;
  --sidebar-text:#f4f1ed;
  --accent:#F97316;
  --accent-strong:#c94e08;
  --accent-soft:#fff0e6;
  --accent-sidebar:#F97316;
}
body[data-theme="orange"] .sidebar { border-right-color:#3d3935; }
body[data-theme="orange"] .brand-copy > strong,
body[data-theme="orange"] .current-user-info strong { color:#fff; }
body[data-theme="orange"] .brand-copy > span,
body[data-theme="orange"] .current-user-info span,
body[data-theme="orange"] .auth-logout { color:#c8c2bc; }
body[data-theme="orange"] .local-note { border-top-color:#3d3935; }
body[data-theme="orange"] .nav-item { color:#f4f1ed; }
body[data-theme="orange"] .nav-item span { color:#F97316; }
body[data-theme="orange"] .nav-item:hover { color:#fff; background:#35312e; }
body[data-theme="orange"] .nav-item.active,
body[data-theme="orange"] .nav-item.active span { color:#23211F; }
body[data-theme="orange"] .nav-item.active::before { background:#F97316; }
body[data-theme="orange"] button.primary { color:#23211F; }
body[data-theme="blue"] {
  --sidebar:#FFFFFF;
  --sidebar-text:#304252;
  --accent:#85B7EB;
  --accent-strong:#4d7ea9;
  --accent-soft:#edf5fd;
  --accent-sidebar:#85B7EB;
}
body[data-theme="blue"] .sidebar { border-right-color:#e4edf6; }
body[data-theme="blue"] .brand-copy > strong,
body[data-theme="blue"] .current-user-info strong { color:#263846; }
body[data-theme="blue"] .brand-copy > span,
body[data-theme="blue"] .current-user-info span,
body[data-theme="blue"] .auth-logout { color:#71808b; }
body[data-theme="blue"] .local-note { border-top-color:#e4edf6; }
body[data-theme="blue"] .nav-item:hover { color:#263846; background:#f1f7fc; }
body[data-theme="blue"] .nav-item.active,
body[data-theme="blue"] .nav-item.active span { color:#23211F; }
body[data-theme="blue"] .nav-item.active::before { background:#85B7EB; }
body[data-theme="blue"] button.primary { color:#23211F; }
body[data-theme="purple-white"] {
  --sidebar:#FFFFFF;
  --sidebar-text:#37344f;
  --accent:#554bb2;
  --accent-strong:#40388f;
  --accent-soft:#efedff;
  --accent-sidebar:#554bb2;
}
body[data-theme="purple-white"] .sidebar { border-right-color:#e5e2f7; }
body[data-theme="purple-white"] .brand-copy > strong,
body[data-theme="purple-white"] .current-user-info strong { color:#302e40; }
body[data-theme="purple-white"] .brand-copy > span,
body[data-theme="purple-white"] .current-user-info span,
body[data-theme="purple-white"] .auth-logout { color:#77748c; }
body[data-theme="purple-white"] .local-note { border-top-color:#e5e2f7; }
body[data-theme="purple-white"] .nav-item:hover { color:#302e40; background:#f4f2ff; }
body[data-theme="purple-white"] .nav-item.active,
body[data-theme="purple-white"] .nav-item.active span { color:#fff; }
body[data-theme="purple-white"] .nav-item.active::before { background:#efedff; }

/* Local feature update: compact OKR order, project stages, and life records. */
.project-overview-card { position:relative; display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:stretch; border:1px solid var(--line); border-radius:10px; background:var(--surface); }
.project-overview-card > .project-overview { border:0; background:transparent; box-shadow:none; text-align:left; }
.project-overview-card > .project-overview:hover { transform:none; border-color:transparent; background:var(--accent-soft); }
.project-order-controls,.okr-order-controls { display:flex; align-items:center; gap:3px; padding:8px; }
.project-order-controls button,.okr-order-controls button { min-width:30px; min-height:30px; padding:3px 7px; color:var(--muted); }
#view-okr { max-width:1320px; }
#view-life { max-width:1480px; }
#view-okr > .page-head, #view-life > .page-head { min-height:42px; align-items:center; margin-bottom:20px; }
.objective-head { min-height:70px; padding:14px 20px; align-items:center; gap:14px; }
.objective-heading { flex:1; min-width:0; }
.objective-title-line { display:flex; align-items:center; flex-wrap:wrap; gap:9px; }
.objective-head h2 { font-size:17px; line-height:1.5; overflow-wrap:anywhere; }
.objective-context { margin:5px 0 0; font-size:12px; line-height:1.6; }
.objective-actions { flex:none; align-items:center; }
.objective-actions button { min-height:30px; }
.okr-stable-code { flex:none; padding:3px 7px; border-radius:6px; background:var(--accent-soft); color:var(--accent-strong); font-size:11px; line-height:1.4; font-weight:700; white-space:nowrap; }
.okr-row-order { display:flex; align-items:center; gap:4px; flex:none; width:120px; }
.order-grip { width:12px; color:var(--muted); cursor:grab; font-size:18px; }
.okr-row-order select { width:40px; height:29px; border:1px solid var(--line); border-radius:6px; background:var(--surface); color:var(--muted); font:inherit; font-size:12px; padding:0 3px; }
.order-arrows { display:flex; gap:2px; }
.order-arrows button { min-height:28px; width:27px; padding:0; border:0; color:var(--muted); }
.order-arrows button:disabled { opacity:.22; cursor:default; }
.order-arrows button:disabled:hover { transform:none; background:transparent; }
.project-detail-summary { padding:12px 16px; gap:14px; box-shadow:none; }
.project-detail-summary > div { gap:3px; }
.project-stage-section { box-shadow:none; }
.project-stage-section > .panel-head { padding:11px 16px; }
.project-stage-section > .panel-head p { display:none; }
.project-stage-list { padding:2px 16px 8px; display:block; }
.project-stage { display:block; padding:0; border:0; border-bottom:1px solid var(--line); border-radius:0; background:transparent; }
.project-stage.accepted { border-color:var(--line); background:transparent; }
.project-stage summary { display:grid; grid-template-columns:27px minmax(0,1fr) 48px; align-items:center; gap:9px; padding:8px 0; list-style:none; cursor:pointer; }
.project-stage summary::-webkit-details-marker { display:none; }
.project-stage summary::marker { content:""; }
.stage-number { display:grid; width:24px; height:24px; place-items:center; border-radius:50%; background:var(--surface-soft); color:var(--muted); font-size:10px; }
.stage-summary-main { min-width:0; }
.stage-summary-main > strong { display:block; font-size:13px; line-height:1.35; }
.stage-summary-links { display:flex; flex-wrap:wrap; align-items:center; gap:4px; margin-top:4px; }
.stage-summary-links .stage-okr-link { margin:0; padding:2px 6px; border-radius:99px; background:var(--accent-soft); color:var(--accent-strong); font-size:10px; }
.stage-summary-links .stage-okr-link.kr { background:var(--blue-soft); color:#3e6d9a; }
.stage-state { color:var(--muted); font-size:10px; }
.stage-percent { grid-column:3; grid-row:1; text-align:right; font-size:12px; font-variant-numeric:tabular-nums; }
.stage-progress { grid-column:2 / -1; height:4px; overflow:hidden; border-radius:99px; background:var(--surface-soft); }
.stage-progress > span { display:block; height:100%; border-radius:inherit; background:var(--accent); }
.stage-content { padding:0 0 10px 36px; color:var(--muted); font-size:12px; }
.stage-content p { margin:0 0 8px; }
.stage-expanded-meta { display:flex; flex-wrap:wrap; gap:8px; margin:8px 0; }
.stage-expanded-kr { display:flex; justify-content:space-between; align-items:center; gap:10px; padding:5px 0; border-top:1px solid var(--line); }
.stage-expanded-kr .progress { width:min(150px,35%); height:5px; }
.stage-actions { display:flex; flex-wrap:wrap; gap:6px; margin-top:8px; }
.life-layout { display:grid; grid-template-columns:244px minmax(0,1fr); gap:20px; align-items:start; }
.life-trackers,.life-workspace,.life-detail { min-width:0; }
.life-workspace:has(#life-tracker-form:not(.hidden)) #life-detail { display:none; }
.life-trackers.panel-flat { padding:14px 8px 8px; box-shadow:none; background:transparent; border:0; }
.life-section-head { display:flex; align-items:center; justify-content:space-between; gap:10px; margin:0 8px 14px; }
.life-section-head h2 { margin:0; color:var(--muted); font-size:12px; font-weight:600; }
#life-tracker-count { color:var(--muted); font-size:11px; }
.life-tracker-row { position:relative; padding:0; border:0; margin-bottom:4px; }
.life-tracker-row.is-branch { margin-left:24px; }
.life-tracker-row.is-branch::before { content:""; position:absolute; left:-12px; top:0; height:26px; width:9px; border-left:1px solid var(--line); border-bottom:1px solid var(--line); border-radius:0 0 0 5px; }
.life-tracker-open { display:flex; align-items:center; justify-content:flex-start; gap:10px; width:100%; min-height:58px; padding:9px 10px; border:1px solid transparent; border-radius:10px; background:transparent; text-align:left; box-shadow:none; }
.life-tracker-open:hover { transform:none; }
.life-tracker-row.active .life-tracker-open { border-color:var(--line); background:var(--surface); box-shadow:0 2px 5px rgba(42,74,96,.04); }
.life-tracker-row.active::after { content:""; position:absolute; top:16px; bottom:16px; left:0; width:3px; border-radius:3px; background:var(--accent); }
.life-tracker-open > span { min-width:0; }
.life-tracker-open strong { display:block; font-size:13px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.life-tracker-open small { display:block; margin-top:4px; color:var(--muted); font-size:10px; font-weight:400; }
.life-tracker-open .life-row-count { margin-left:auto; flex:none; color:var(--muted); font-size:11px; }
.life-list-cover,.life-list-symbol { width:34px; height:34px; flex:none; border-radius:8px; object-fit:cover; }
.life-list-symbol { display:grid; place-items:center; background:var(--accent-soft); color:var(--accent-strong); font-size:23px; }
.life-detail.panel-flat { padding:24px 28px; border-radius:14px; box-shadow:0 3px 14px rgba(42,74,96,.035); }
.life-detail-head { display:flex; justify-content:space-between; align-items:flex-start; gap:16px; margin-bottom:10px; }
.life-detail-head > div:first-child { min-width:0; }
.life-detail-head h2 { margin:0; font-size:20px; line-height:1.5; overflow-wrap:anywhere; }
.life-detail-head .life-description { margin:5px 0 0; max-width:72ch; color:var(--muted); font-size:12px; line-height:1.7; white-space:pre-wrap; }
.life-detail-actions { display:flex; flex:none; gap:8px; align-items:center; }
.life-detail-actions .primary { min-height:34px; padding:0 14px; font-size:12px; }
.life-parent-link { display:block; padding:0; margin:0 0 4px; min-height:22px; border:0; background:transparent; color:var(--muted); font-size:11px; }
.life-more { position:relative; }
.life-more summary { display:grid; place-items:center; width:34px; height:34px; border:1px solid var(--line); border-radius:8px; cursor:pointer; list-style:none; font-size:19px; }
.life-more summary::-webkit-details-marker { display:none; }
.life-more > div { position:absolute; top:40px; right:0; z-index:5; width:140px; padding:5px; border:1px solid var(--line); border-radius:10px; background:var(--surface); box-shadow:var(--shadow); }
.life-more button { justify-content:flex-start; width:100%; border:0; font-size:12px; }
.life-summary-line { display:flex; flex-wrap:wrap; align-items:center; gap:8px 18px; padding:0 0 18px; color:var(--muted); font-size:11px; border-bottom:1px solid var(--line); }
.life-summary-line strong { color:var(--text); font-weight:600; }
.life-document-link { margin-left:auto; color:var(--accent-strong); text-decoration:none; }
.life-trend { display:flex; align-items:end; justify-content:flex-start; gap:3px; width:86px; height:22px; margin:0; overflow:hidden; }
.life-trend span { flex:1; max-width:12px; min-width:2px; border-radius:2px 2px 0 0; background:var(--accent); opacity:.65; }
.life-branch-links { display:flex; flex-wrap:wrap; gap:6px; margin:14px 0 0; }
.life-branch-links button { min-height:28px; padding:0 9px; border:0; background:var(--accent-soft); color:var(--accent-strong); font-size:11px; }
.life-upload-controls { display:flex; gap:4px; margin:17px 0 5px; }
.life-upload-controls button { min-height:28px; padding:0 12px; border:0; background:transparent; color:var(--muted); font-size:11px; }
.life-upload-controls button[aria-pressed="true"] { color:var(--accent-strong); background:var(--accent-soft); font-weight:600; }
.life-timeline { margin-top:2px; }
.life-entry { display:grid; grid-template-columns:12px minmax(0,1fr); gap:14px; padding:17px 0; border:0; }
.life-entry-date { display:block; color:var(--muted); font-size:11px; text-align:left; font-variant-numeric:tabular-nums; }
.life-entry-dot { position:relative; display:flex; justify-content:center; }
.life-entry-dot::before { content:""; z-index:1; width:7px; height:7px; margin-top:8px; border-radius:50%; background:var(--accent); }
.life-entry-dot::after { content:""; position:absolute; top:18px; bottom:-25px; width:1px; background:var(--line); }
.life-entry:last-child .life-entry-dot::after { display:none; }
.life-entry-body { min-width:0; }
.life-entry-top { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:5px; }
.life-entry-actions { display:flex; align-items:center; gap:12px; }
.life-entry-actions button { min-height:24px; font-size:11px; color:var(--muted); }
.life-entry-body > p { max-width:78ch; margin:0 0 7px; font-size:13px; line-height:1.8; white-space:pre-wrap; overflow-wrap:anywhere; }
.life-entry-meta { margin:4px 0; color:var(--muted); font-size:11px; }
.life-attachments { display:flex; flex-wrap:wrap; gap:8px; margin:8px 0 0; }
.life-attachments:empty { display:none; }
.life-attachment { display:grid; align-content:start; gap:4px; width:140px; max-width:calc(50% - 4px); color:var(--muted); font-size:11px; overflow-wrap:anywhere; }
.life-attachment img { display:block; width:100%; aspect-ratio:4 / 3; height:auto; object-fit:cover; border-radius:9px; background:var(--surface-soft); }
.life-attachment a { color:var(--accent-strong); text-decoration:none; }
.life-attachment img:hover { filter:brightness(.96); }
.life-attachment .life-attachment-remove { display:none; justify-self:start; min-height:24px; padding:0; border:0; background:transparent; color:var(--muted); font-size:11px; }
.life-entry.is-editing .life-attachment-remove { display:inline-flex; }
.life-entry-edit { display:grid; gap:10px; margin-top:12px; padding:12px; border-radius:9px; background:var(--surface-soft); }
.life-entry-edit textarea,.life-entry-form textarea { width:100%; min-height:84px; padding:10px; border:1px solid var(--line); border-radius:8px; color:var(--text); background:var(--surface); font:inherit; line-height:1.7; }
.life-entry-form { display:grid; gap:12px; margin:18px 0; padding:16px; border:1px solid var(--line); border-radius:10px; background:var(--surface-soft); }
.life-entry-form-row { display:flex; flex-wrap:wrap; align-items:center; gap:10px; }
.life-entry-form-row label { display:flex; align-items:center; gap:6px; color:var(--muted); font-size:12px; }
.life-entry-form-row input[type="number"] { width:90px; padding:7px; border:1px solid var(--line); border-radius:7px; }
.life-entry-form-row input[type="date"] { max-width:100%; padding:7px; border:1px solid var(--line); border-radius:7px; background:var(--surface); color:var(--text); }
.life-file-picker input { max-width:200px; font-size:11px; }
.life-file-status { color:var(--muted); font-size:11px; }
.life-upload-item { display:flex; flex-wrap:wrap; align-items:center; gap:8px; margin:5px 0; overflow-wrap:anywhere; }
.life-upload-item button { font-size:11px; padding:3px 7px; }
.life-tracker-form { margin-bottom:20px; padding:20px; }
.life-form-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.life-form-grid label { display:grid; gap:6px; font-size:12px; color:var(--muted); }
.life-form-grid input,.life-form-grid select,.life-form-grid textarea { width:100%; min-width:0; padding:8px 10px; border:1px solid var(--line); border-radius:7px; color:var(--text); background:var(--surface); font:inherit; }
.life-form-wide { grid-column:1 / -1; }
.life-form-actions { display:flex; gap:8px; margin-top:16px; }
.relation-picker input[type="search"] { width:100%; }
.relation-options { display:grid; align-content:start; max-height:180px; overflow:auto; border:1px solid var(--line); border-radius:8px; padding:5px; }
.relation-option { display:flex!important; align-items:flex-start; gap:8px; padding:6px; cursor:pointer; }
.relation-option input[type="checkbox"] { width:16px; height:16px; min-height:0; flex:none; margin:1px 0 0; }
.relation-option span { min-width:0; overflow-wrap:anywhere; }
.relation-option.hidden { display:none!important; }
.order-dragging { opacity:.5; }
.okr-cycle-group { margin-bottom:22px; }
.okr-cycle-group > summary { display:flex; gap:10px; align-items:center; padding:8px 0 12px; cursor:pointer; font-size:13px; font-weight:700; }
.okr-cycle-group > summary::after { content:"⌃"; color:var(--muted); }
.okr-cycle-group:not([open]) > summary::after { content:"⌄"; }
.okr-cycle-group > summary span { color:var(--muted); font-size:11px; font-weight:400; }
.okr-cycle-group > .objective { margin-bottom:14px; overflow:visible; border-radius:12px; box-shadow:0 2px 8px rgba(42,74,96,.025); }
.kr-grid { display:block; padding:0 20px 4px; }
.kr-card { display:grid; grid-template-columns:120px minmax(0,1fr) auto; min-height:74px; gap:16px; align-items:center; padding:12px 0; border-right:0; border-bottom:1px solid var(--line); }
.kr-card:last-child { border-bottom:0; }
.kr-main { min-width:0; padding-left:10px; }
.kr-title-wrap { display:flex; align-items:center; flex-wrap:wrap; gap:8px; min-width:0; }
.kr-title-wrap strong { font-size:13px; line-height:1.6; overflow-wrap:anywhere; }
.kr-values { margin-top:0; color:var(--muted); font-size:11px; font-variant-numeric:tabular-nums; }
.kr-values b { color:var(--text); font-weight:500; }
.kr-detail-line { display:flex; align-items:center; flex-wrap:wrap; gap:6px 12px; margin-top:6px; color:var(--muted); font-size:11px; }
.kr-detail-line > b { font-size:11px; font-weight:500; font-variant-numeric:tabular-nums; }
.kr-detail-line .progress { width:150px; height:4px; margin:0; flex:none; }
.kr-detail-line .confidence { padding:0; background:transparent; color:var(--muted); font-size:10px; font-weight:400; }
.kr-detail-line .confidence::before { content:""; display:inline-block; width:5px; height:5px; margin-right:5px; border-radius:50%; background:var(--green); vertical-align:middle; }
.kr-detail-line .confidence.yellow::before { background:var(--amber); }
.kr-detail-line .confidence.red::before { background:var(--red); }
.kr-actions { display:flex; align-items:center; justify-content:flex-end; gap:8px; margin:0; }
.kr-actions button { min-height:28px; padding:0 2px; font-size:11px; }
.kr-actions button.primary { padding:0 8px; }
#okr-list:has(.order-dragging) button, #okr-list:has(.order-dragging) select { pointer-events:none; }
#project-cycle-view { max-width:200px; border:1px solid var(--line); border-radius:8px; padding:6px 9px; background:var(--surface); color:var(--text); }
[data-order-id] { cursor:grab; }
.project-overview-card { position:relative; }
.project-order-grip { position:absolute; top:12px; left:10px; z-index:1; color:var(--muted); cursor:grab; font-size:18px; line-height:1; }
#project-list:has(.order-dragging) .project-overview,
#project-list:has(.order-dragging) .project-order-controls { pointer-events:none; }
.stage-summary-links .stage-okr-link.kr { background:var(--accent-soft); color:var(--text); }
@media (max-width:760px) {
  .project-detail-head { display:flex; flex-direction:column; align-items:stretch; gap:12px; }
  .project-detail-head > div { width:100%; min-width:0; }
  .project-detail-head .head-actions { display:flex; flex-wrap:wrap; gap:6px; }
  .project-detail-head .head-actions button { flex:0 0 auto; }
  .project-detail-head h1 { overflow-wrap:anywhere; }
  .life-detail-head { align-items:flex-start; flex-wrap:wrap; }
  .life-detail-actions { gap:5px; }
  .life-detail-actions button { padding:7px 10px; }

  .objective-head { display:grid; grid-template-columns:1fr auto; padding:12px; gap:8px; }
  .objective-heading { grid-row:1; grid-column:1 / -1; }
  .objective-head .okr-row-order { grid-row:2; }
  .objective-actions { grid-row:2; }
  .objective-head h2 { font-size:15px; }
  .kr-grid { padding:0 12px; }
  .kr-card { grid-template-columns:120px 1fr; gap:9px 12px; padding:12px 0; }
  .kr-main { grid-column:1 / -1; grid-row:1; padding:0; }
  .kr-card .okr-row-order { grid-column:1; grid-row:2; }
  .kr-actions { grid-column:2; grid-row:2; justify-content:flex-end; }
  .kr-detail-line .progress { width:84px; }
}
@media (max-width:760px) {
  .life-layout { grid-template-columns:1fr; gap:12px; }
  .life-trackers.panel-flat { padding:0; }
  #life-tracker-list { max-height:210px; overflow:auto; }
  .life-section-head { margin-bottom:8px; }
  .life-detail.panel-flat { padding:18px 14px; }
  .life-detail-head { flex-wrap:nowrap; gap:8px; }
  .life-detail-head h2 { font-size:17px; }
  .life-detail-actions { gap:5px; }
  .life-document-link { margin-left:0; }
  .life-form-grid { grid-template-columns:1fr; }
  .life-form-wide { grid-column:auto; }
  .life-entry { grid-template-columns:9px minmax(0,1fr); gap:9px; }
  .life-attachment { width:140px; }
  .project-stage-list { padding-right:10px; padding-left:10px; }
}
@media (max-width: 760px) {
  .task-table { min-width: 1180px; }
  .schedule-period { border-radius: 10px; }
  .schedule-overview-strip { justify-content:flex-start; }
  .schedule-overview-controls { flex:0 0 auto; }
  .schedule-summary-cards { flex:0 0 auto; }
  .sidebar-theme-picker { padding-left:8px; }
}

@media (min-width:761px) and (max-width:1120px) {
  .life-layout { grid-template-columns:200px minmax(0,1fr); gap:14px; }
  .life-detail.panel-flat { padding:20px; }
  .kr-card { gap:10px; }
  .kr-detail-line .progress { width:100px; }
}
