/* ファイルパス: public/css/wbs.css */
/* WBS Studio 編集画面：StratCanvasのWBS UIを踏襲し、左固定パネルを廃止 */
.editor-page {
  overflow: auto;
}

.app-shell {
  min-height: 100vh;
  background: var(--bg, #f6f8fb);
}

.wbs-app-header {
  gap: 14px;
}

.header-left,
.header-center,
.header-right {
  display: flex;
  align-items: center;
  min-width: 0;
}

.header-left {
  flex: 0 0 auto;
}

.header-center {
  flex: 1 1 auto;
  justify-content: center;
}

.header-right {
  flex: 0 0 auto;
  justify-content: flex-end;
}

.wbs-title-area {
  display: grid;
  gap: 2px;
  justify-items: start;
  max-width: min(420px, 32vw);
}

.project-title-input {
  width: min(420px, 32vw);
  min-width: 220px;
  border: 0;
  background: transparent;
  color: var(--text, #172033);
  font-size: 18px;
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.2;
  padding: 0;
  outline: none;
}

.project-title-input:focus {
  color: var(--primary, #2563eb);
}

.save-status {
  color: var(--muted, #667085);
  font-size: 12px;
  line-height: 1.2;
}

.wbs-header-actions {
  gap: 8px;
  flex-wrap: nowrap;
}

.wbs-header-actions .btn {
  min-height: 40px;
}

.wbs-header-actions .btn.share {
  background: var(--green-soft, #ecfdf3);
  border-color: #bbf7d0;
  color: #166534;
}

.card {
  background: var(--surface, #ffffff);
  border: 1px solid var(--border, #dbe3ee);
  border-radius: var(--radius-lg, 22px);
  box-shadow: var(--shadow-soft, 0 10px 30px rgba(15, 23, 42, 0.06));
}

.page-title {
  margin: 0 0 8px;
  color: var(--text, #172033);
  font-size: 30px;
  line-height: 1.2;
  letter-spacing: -0.05em;
}

.page-subtitle,
.meta-text {
  margin: 0;
  color: var(--muted, #667085);
  font-size: 13px;
}

.wbs-page {
  padding: 16px 18px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.wbs-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 22px;
}

.wbs-actions,
.wbs-filter-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.wbs-actions {
  flex: 0 0 auto;
}

.wbs-summary-panel {
  padding: 0;
  overflow: hidden;
}

.wbs-summary-toggle {
  width: 100%;
  border: 0;
  background: #ffffff;
  padding: 14px 18px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  text-align: left;
  color: #0f172a;
}

.wbs-summary-toggle span {
  font-size: 15px;
  font-weight: 900;
}

.wbs-summary-toggle small {
  font-size: 12px;
  color: #64748b;
  font-weight: 600;
}

.wbs-summary-toggle strong {
  font-size: 12px;
  color: #2563eb;
  background: #eff6ff;
  border-radius: 999px;
  padding: 5px 10px;
}

.wbs-summary-content {
  border-top: 1px solid #e5e7eb;
  padding: 16px 18px 18px;
  background: #f8fafc;
}

.wbs-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.metric-card {
  min-height: 118px;
  padding: 16px;
  border: 1px solid var(--border, #dbe3ee);
  border-radius: 16px;
  background: #ffffff;
}

.metric-label {
  color: var(--muted, #667085);
  font-size: 12px;
  font-weight: 800;
}

.metric-value {
  margin-top: 8px;
  color: var(--text, #172033);
  font-size: 28px;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.metric-value.danger {
  color: #dc2626;
}

.metric-sub {
  margin-top: 8px;
  color: var(--muted, #667085);
  font-size: 12px;
}

.progress-track {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: #e5e7eb;
  overflow: hidden;
  margin-top: 14px;
}

.progress-fill {
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: #2563eb;
  transition: width 0.2s ease;
}

.wbs-view-switch {
  display: inline-flex;
  align-items: center;
  padding: 4px;
  border: 1px solid #e5e7eb;
  background: #f8fafc;
  border-radius: 12px;
  margin-top: 14px;
}

.wbs-view-switch button {
  border: 0;
  background: transparent;
  color: #64748b;
  padding: 8px 14px;
  border-radius: 9px;
  font-weight: 800;
  cursor: pointer;
}

.wbs-view-switch button.active {
  background: #ffffff;
  color: #0f172a;
  box-shadow: 0 1px 6px rgba(15, 23, 42, 0.12);
}

.wbs-board {
  --wbs-row-height: 42px;
  --wbs-bar-top: 7px;
  padding: 0;
  overflow: hidden;
}

.wbs-board-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid #e5e7eb;
  background: #ffffff;
}

.wbs-board-toolbar h2 {
  margin: 0 0 6px;
  font-size: 18px;
}

.wbs-board-title {
  display: block;
  min-width: 0;
}

.wbs-filter-row {
  flex: 0 0 min(900px, 62vw);
  display: grid;
  grid-template-columns: minmax(150px, 210px) minmax(240px, 1fr) auto;
  gap: 8px;
  align-items: center;
  flex-wrap: nowrap;
}

.wbs-filter-row .input {
  width: 100%;
  min-width: 0;
  height: 40px;
}

.wbs-fullscreen-button {
  height: 40px;
  padding: 0 16px;
  white-space: nowrap;
  font-weight: 800;
  border-color: #c7d2fe;
  background: #eef2ff;
  color: #4f46e5;
}

.wbs-split {
  --wbs-table-width: 480px;
  display: grid;
  grid-template-columns: var(--wbs-table-width) 8px minmax(760px, 1fr);
  min-width: 1148px;
  min-height: 560px;
  overflow: hidden;
}

.wbs-table-panel {
  border-right: 0;
  overflow: auto;
  background: #ffffff;
}

.wbs-split-resizer {
  position: relative;
  z-index: 6;
  width: 8px;
  cursor: col-resize;
  background: linear-gradient(90deg, #e5e7eb 0, #e5e7eb 1px, #f8fafc 1px, #f8fafc 7px, #e5e7eb 7px);
  border-left: 1px solid #e5e7eb;
  border-right: 1px solid #e5e7eb;
}

.wbs-split-resizer::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 2px;
  width: 2px;
  height: 44px;
  transform: translateY(-50%);
  border-radius: 999px;
  background: #cbd5e1;
}

.wbs-split-resizer:hover,
body.wbs-resizing .wbs-split-resizer {
  background: #eff6ff;
}

body.wbs-resizing {
  cursor: col-resize;
  user-select: none;
}

.wbs-gantt-panel {
  overflow: auto;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.wbs-table {
  min-width: 460px;
}

.wbs-table-row {
  display: grid;
  grid-template-columns: 62px minmax(170px, 1.6fr) 90px 82px 58px;
  height: var(--wbs-row-height);
  min-height: var(--wbs-row-height);
  max-height: var(--wbs-row-height);
  border-bottom: 1px solid #edf2f7;
  align-items: stretch;
  cursor: pointer;
}

.wbs-table-row.header {
  position: sticky;
  top: 0;
  z-index: 3;
  height: 44px;
  min-height: 44px;
  max-height: 44px;
  background: #f8fafc;
  border-bottom: 1px solid #e5e7eb;
  font-size: 12px;
  font-weight: 800;
  color: #475569;
  cursor: default;
}

.wbs-table-row.parent {
  background: #ffffff;
  font-weight: 800;
}

.wbs-table-row.child {
  background: #ffffff;
}

.wbs-table-row.is-delayed {
  background: #fff7f7;
}

.wbs-table-row.is-selected {
  background: #eff6ff !important;
  box-shadow: inset 3px 0 0 #2563eb;
}

.wbs-table-row.is-focused-parent {
  background: #fefce8 !important;
  box-shadow: inset 3px 0 0 #eab308;
}

.wbs-table-row:not(.header):hover {
  background: #f8fafc;
}

.wbs-cell,
.wbs-table-row.header > div {
  display: flex;
  align-items: center;
  min-width: 0;
  padding: 8px 10px;
  border-right: 1px solid #f1f5f9;
  color: #0f172a;
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wbs-cell:last-child,
.wbs-table-row.header > div:last-child {
  border-right: 0;
}

.wbs-number {
  color: #475569;
  font-variant-numeric: tabular-nums;
}

.wbs-name {
  gap: 8px;
}

.wbs-inline-edit {
  border: 0;
  background: transparent;
  padding: 0;
  color: inherit;
  font: inherit;
  font-weight: inherit;
  text-align: left;
  cursor: pointer;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  user-select: none;
}

.wbs-inline-edit:hover {
  color: #2563eb;
}

.wbs-table-row.is-selected .wbs-inline-edit {
  color: #1d4ed8;
  font-weight: 900;
}

.wbs-table-row.is-focused-parent .wbs-inline-edit {
  color: #854d0e;
  font-weight: 900;
}

.wbs-delay-label {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  padding: 3px 7px;
  border-radius: 999px;
  background: #fee2e2;
  color: #b91c1c;
  font-size: 11px;
  font-weight: 800;
}

.wbs-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 62px;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.wbs-status.todo {
  background: #f1f5f9;
  color: #475569;
}

.wbs-status.progress {
  background: #ccfbf1;
  color: #0f766e;
}

.wbs-status.done {
  background: #dcfce7;
  color: #15803d;
}

.wbs-status.hold {
  background: #fef3c7;
  color: #b45309;
}

.wbs-table-empty,
.wbs-gantt-empty {
  padding: 36px;
  color: #64748b;
}

.wbs-gantt-canvas {
  position: relative;
  min-height: 100%;
}

.wbs-gantt-header {
  position: sticky;
  top: 0;
  z-index: 4;
  display: flex;
  height: 44px;
  background: #f8fafc;
  border-bottom: 1px solid #e5e7eb;
}

.wbs-gantt-unit {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  border-right: 1px solid #e5e7eb;
  font-size: 12px;
  font-weight: 800;
  color: #475569;
}

.wbs-gantt-body {
  position: relative;
  background-image: linear-gradient(to bottom, transparent 41px, #edf2f7 42px);
  background-size: 100% 42px;
}

.wbs-gantt-grid-line {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: #eef2f7;
}

.wbs-gantt-bar {
  position: absolute;
  height: 28px;
  border-radius: 8px;
  overflow: hidden;
  color: #ffffff;
  background: #2563eb;
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.18);
  display: flex;
  align-items: center;
  padding: 0 10px;
  font-size: 12px;
  white-space: nowrap;
  cursor: pointer;
}

.wbs-gantt-bar strong {
  position: relative;
  z-index: 2;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wbs-gantt-progress {
  position: absolute;
  inset: 0 auto 0 0;
  background: rgba(255, 255, 255, 0.22);
  z-index: 1;
}

.wbs-gantt-bar.todo {
  background: #94a3b8;
  box-shadow: 0 6px 16px rgba(100, 116, 139, 0.18);
}

.wbs-gantt-bar.progress {
  background: #2563eb;
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.18);
}

.wbs-gantt-bar.progress .wbs-gantt-progress {
  background: linear-gradient(90deg, rgba(16, 185, 129, 0.72) 0%, rgba(52, 211, 153, 0.58) 100%);
  border-right: 1px solid rgba(255, 255, 255, 0.38);
}

.wbs-gantt-bar.done {
  background: #16a34a;
  box-shadow: 0 6px 16px rgba(22, 163, 74, 0.18);
}

.wbs-gantt-bar.hold {
  background: #d97706;
  box-shadow: 0 6px 16px rgba(217, 119, 6, 0.18);
}

.wbs-gantt-bar.delayed {
  background: #dc2626;
  box-shadow: 0 6px 16px rgba(220, 38, 38, 0.2);
}

.wbs-gantt-bar.selected {
  outline: 3px solid rgba(37, 99, 235, 0.35);
  outline-offset: 2px;
}

.wbs-today-line {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #ef4444;
  z-index: 3;
}

.wbs-today-line span {
  position: sticky;
  top: 8px;
  display: inline-flex;
  transform: translateX(6px);
  padding: 3px 7px;
  border-radius: 999px;
  background: #ef4444;
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
}

.wbs-row-menu {
  position: fixed;
  z-index: 10000;
  width: 250px;
  padding: 8px;
  border: 1px solid #dbe3ef;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.22);
}

.wbs-row-menu[hidden] {
  display: none !important;
}

.wbs-row-menu-title {
  padding: 8px 10px 9px;
  color: #334155;
  font-size: 12px;
  font-weight: 900;
  border-bottom: 1px solid #eef2f7;
  margin-bottom: 6px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wbs-row-menu button {
  width: 100%;
  min-height: 34px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #0f172a;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 7px 10px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  text-align: left;
}

.wbs-row-menu button:hover:not(:disabled) {
  background: #eff6ff;
  color: #1d4ed8;
}

.wbs-row-menu button:disabled {
  opacity: 0.38;
  cursor: not-allowed;
}

.wbs-row-menu-separator {
  height: 1px;
  background: #eef2f7;
  margin: 6px 4px;
}

.wbs-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(15, 23, 42, 0.42);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.wbs-modal-backdrop[hidden] {
  display: none;
}

.wbs-modal {
  width: min(760px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 24px 80px rgba(15, 23, 42, 0.24);
}

.wbs-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid #e5e7eb;
}

.wbs-modal-head h2 {
  margin: 0;
  font-size: 18px;
}

.modal-close-button {
  min-width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid #dbe3ef;
  background: #ffffff;
  color: #64748b;
  font-size: 20px;
  cursor: pointer;
}

.wbs-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 20px;
}

.wbs-form .full {
  grid-column: 1 / -1;
}

.form-field {
  display: grid;
  gap: 6px;
}

.form-label {
  color: #344054;
  font-size: 12px;
  font-weight: 800;
}

.wbs-modal-actions {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 8px;
}

.wbs-modal-actions > div {
  display: flex;
  gap: 10px;
}

.btn.btn-soft.danger,
.btn-soft.danger {
  color: #b91c1c;
  background: #fee2e2;
  border-color: #fecaca;
}

body.wbs-fullscreen-active {
  overflow: hidden;
}

body.wbs-fullscreen-active::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 2999;
  background: rgba(15, 23, 42, 0.36);
}

.wbs-board.wbs-fullscreen {
  position: fixed;
  inset: 8px;
  z-index: 3000;
  width: auto;
  height: auto;
  max-width: none;
  max-height: none;
  margin: 0;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 24px 80px rgba(15, 23, 42, 0.32);
  overflow: hidden;
}

.wbs-board.wbs-fullscreen .wbs-board-toolbar {
  flex: 0 0 auto;
  padding: 12px 16px;
  border-bottom: 1px solid #e5e7eb;
}

.wbs-board.wbs-fullscreen .wbs-split {
  flex: 1 1 auto;
  height: calc(100vh - 112px);
  min-height: 0;
  max-height: none;
}

.wbs-board.wbs-fullscreen .wbs-table-panel,
.wbs-board.wbs-fullscreen .wbs-gantt-panel {
  height: 100%;
  max-height: none;
}

.wbs-board.wbs-fullscreen .wbs-fullscreen-button {
  background: #fee2e2;
  color: #b91c1c;
  border-color: #fecaca;
}

.share-page .page-shell {
  margin-top: 24px;
}

.wbs-share-content {
  display: grid;
  gap: 16px;
}

.share-summary-grid {
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

@media (max-width: 1180px) {
  .wbs-app-header {
    height: auto;
    min-height: var(--header-h, 68px);
    flex-wrap: wrap;
    padding: 12px 16px;
  }

  .wbs-title-area {
    order: 3;
    flex: 1 1 100%;
    max-width: 100%;
    justify-items: start;
  }

  .project-title-input {
    width: 100%;
    max-width: none;
  }

  .wbs-header-actions {
    flex-wrap: wrap;
  }

  .wbs-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .wbs-filter-row {
    flex: 0 0 760px;
    grid-template-columns: 190px 1fr auto;
  }
}

@media (max-width: 720px) {
  .wbs-page {
    padding: 14px;
  }

  .wbs-hero {
    flex-direction: column;
  }

  .wbs-actions .btn {
    flex: 1 1 auto;
  }

  .wbs-summary-grid {
    grid-template-columns: 1fr;
  }

  .wbs-summary-toggle {
    grid-template-columns: 1fr auto;
  }

  .wbs-summary-toggle small {
    display: none;
  }

  .wbs-board-toolbar {
    flex-direction: row;
    min-width: 980px;
  }

  .wbs-filter-row {
    flex: 0 0 700px;
    grid-template-columns: 170px 1fr auto;
  }

  .wbs-form {
    grid-template-columns: 1fr;
  }
}

/* WBS Studio visual polish overrides */
.editor-page {
  --bg: #f8fafc;
  --surface: #ffffff;
  --surface-soft: #f9fafb;
  --border: #e5e7eb;
  --border-strong: #d9def0;
  --text: #111827;
  --muted: #667085;
  --muted-2: #98a2b3;
  --primary: #4f46e5;
  --primary-strong: #4338ca;
  --primary-soft: #eef2ff;
  --green-soft: #dcfce7;
  --red-soft: #fee2e2;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.04);
  --shadow-md: 0 10px 30px rgba(15, 23, 42, 0.08);
  --radius-lg: 18px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --header-h: 72px;
  font-family: Inter, "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  font-size: 14px;
  line-height: 1.5;
  font-weight: 400;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.editor-page * {
  -webkit-font-smoothing: antialiased;
}

.editor-page .app-shell {
  background:
    radial-gradient(circle at 20% 0%, rgba(79, 70, 229, 0.05), transparent 34%),
    linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.editor-page .app-header {
  height: var(--header-h);
  padding: 0 24px;
  gap: 20px;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--border);
  box-shadow: none;
  backdrop-filter: blur(18px);
}

.editor-page .app-logo {
  gap: 12px;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.editor-page .brand-mark-sm {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  font-size: 18px;
  font-weight: 800;
}

.editor-page .header-left,
.editor-page .header-center,
.editor-page .header-right {
  gap: 14px;
}

.editor-page .header-center {
  justify-content: center;
}

.editor-page .wbs-title-area {
  gap: 2px;
  max-width: min(420px, 32vw);
}

.editor-page .project-title-input {
  color: var(--text);
  font-size: 18px;
  font-weight: 750;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.editor-page .save-status,
.editor-page .meta-text {
  color: var(--muted);
  font-size: 13px;
  font-weight: 400;
}

.editor-page .btn {
  height: 42px;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 11px;
  border: 1px solid var(--border);
  background: #ffffff;
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0;
  box-shadow: var(--shadow-sm);
  transition: background 0.14s ease, border-color 0.14s ease, box-shadow 0.14s ease;
}

.editor-page .btn:hover {
  transform: none;
  background: #fbfcff;
  border-color: var(--border-strong);
  box-shadow: var(--shadow-sm);
}

.editor-page .btn-primary {
  border-color: var(--primary);
  background: linear-gradient(135deg, #4f46e5 0%, #5b35f5 100%);
  color: #ffffff;
  box-shadow: 0 10px 22px rgba(79, 70, 229, 0.25);
}

.editor-page .btn-primary:hover {
  background: linear-gradient(135deg, #4338ca 0%, #4f2ddd 100%);
}

.editor-page .btn-soft {
  background: var(--primary-soft);
  border-color: #d9ddff;
  color: var(--primary);
}

.editor-page .wbs-header-actions .btn.share {
  background: #ecfdf3;
  border-color: #bbf7d0;
  color: #166534;
}

.editor-page .wbs-page {
  padding: 24px;
  gap: 18px;
}

.editor-page .card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.editor-page .wbs-hero {
  padding: 22px;
  border-radius: var(--radius-lg);
}

.editor-page .page-title {
  margin: 0;
  color: var(--text);
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1.1;
}

.editor-page .page-subtitle {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 15px;
  font-weight: 400;
}

.editor-page .wbs-summary-toggle {
  padding: 14px 18px;
}

.editor-page .wbs-summary-toggle span {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.editor-page .wbs-summary-toggle small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.editor-page .wbs-summary-toggle strong {
  color: var(--primary);
  background: var(--primary-soft);
  font-size: 12px;
  font-weight: 700;
}

.editor-page .wbs-summary-content {
  border-top: 1px solid var(--border);
  background: #ffffff;
  padding: 16px 18px 18px;
}

.editor-page .metric-card {
  min-height: 118px;
  padding: 20px;
  border-radius: var(--radius-lg);
  background: #ffffff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.editor-page .metric-label {
  color: var(--primary);
  font-size: 13px;
  font-weight: 750;
  letter-spacing: 0;
}

.editor-page .metric-value {
  color: var(--text);
  font-size: 34px;
  font-weight: 850;
  letter-spacing: -0.055em;
}

.editor-page .metric-value.danger {
  color: #dc2626;
}

.editor-page .metric-sub {
  color: var(--muted);
  font-size: 13px;
}

.editor-page .wbs-view-switch button {
  font-weight: 700;
}

.editor-page .wbs-board-toolbar {
  gap: 20px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
}

.editor-page .wbs-board-toolbar h2 {
  margin: 0 0 6px;
  color: var(--text);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.editor-page .wbs-filter-row .input,
.editor-page .input,
.editor-page .select,
.editor-page .textarea {
  border: 1px solid var(--border);
  border-radius: 11px;
  background: #ffffff;
  color: var(--text);
  font-size: 14px;
  font-weight: 400;
  outline: none;
}

.editor-page .wbs-filter-row .input,
.editor-page .input,
.editor-page .select {
  height: 44px;
  min-height: 44px;
  padding: 0 14px;
}

.editor-page .wbs-fullscreen-button {
  height: 44px;
  border-color: #d9ddff;
  background: var(--primary-soft);
  color: var(--primary);
  font-weight: 700;
}

.editor-page .wbs-split {
  --wbs-table-width: 620px;
  grid-template-columns: var(--wbs-table-width) 8px minmax(760px, 1fr);
  min-width: 1388px;
}

.editor-page .wbs-table-panel {
  background: #ffffff;
}

.editor-page .wbs-split-resizer {
  background: linear-gradient(90deg, #e5e7eb 0, #e5e7eb 1px, #ffffff 1px, #ffffff 7px, #e5e7eb 7px);
}

.editor-page .wbs-table {
  min-width: 600px;
}

.editor-page .wbs-table-row {
  height: var(--wbs-row-height);
  min-height: var(--wbs-row-height);
  max-height: var(--wbs-row-height);
  border-bottom: 1px solid #edf2f7;
  grid-template-columns: 70px minmax(230px, 1.8fr) 96px 96px 70px;
}

.editor-page .wbs-table-row.header {
  height: 44px;
  min-height: 44px;
  max-height: 44px;
  background: #f8fafc;
  color: #475569;
  font-size: 12px;
  font-weight: 800;
}

.editor-page .wbs-cell,
.editor-page .wbs-table-row.header > div {
  padding: 8px 10px;
  color: #0f172a;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: 0;
}

.editor-page .wbs-table-row.parent {
  background: #ffffff;
  font-weight: 700;
}

.editor-page .wbs-table-row.parent .wbs-cell,
.editor-page .wbs-table-row.parent .wbs-inline-edit {
  font-weight: 750;
}

.editor-page .wbs-table-row.is-selected {
  background: #eff6ff !important;
  box-shadow: inset 3px 0 0 #2563eb;
}

.editor-page .wbs-inline-edit {
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: 0;
}

.editor-page .wbs-table-row.is-selected .wbs-inline-edit {
  color: #1d4ed8;
  font-weight: 750;
}

.editor-page .wbs-status {
  min-width: 62px;
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 700;
}

.editor-page .wbs-gantt-panel {
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.editor-page .wbs-gantt-header {
  height: 44px;
  background: #f8fafc;
  border-bottom: 1px solid var(--border);
}

.editor-page .wbs-gantt-unit {
  color: #475569;
  font-size: 12px;
  font-weight: 800;
}

.editor-page .wbs-gantt-bar {
  height: 28px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.18);
}

.editor-page .wbs-gantt-bar strong {
  font-weight: 700;
}

.editor-page .wbs-row-menu-title,
.editor-page .wbs-row-menu button,
.editor-page .form-label {
  font-weight: 700;
}

.editor-page .wbs-modal-head h2 {
  font-size: 18px;
  font-weight: 800;
}

.editor-page .wbs-modal {
  border-radius: 20px;
}

@media (max-width: 1180px) {
  .editor-page .wbs-page {
    padding: 18px;
  }

  .editor-page .wbs-filter-row {
    flex: 1 1 100%;
    grid-template-columns: minmax(150px, 200px) minmax(220px, 1fr) auto;
  }

  .editor-page .page-title {
    font-size: 30px;
  }
}

