:root {
  color-scheme: light;
  --bg: #f5f7f8;
  --panel: #ffffff;
  --ink: #111111;
  --muted: #6b7280;
  --line: #e5e8eb;
  --line-strong: #cfd6dc;
  --primary: #03c75a;
  --primary-dark: #00a64a;
  --accent: #1f2937;
  --blue: #246beb;
  --green: #03c75a;
  --shadow: 0 16px 42px rgba(17, 17, 17, 0.06);
  /* 시스템 전체 폰트 스택: 나눔스퀘어 네오 우선, 폴백 한글/시스템 폰트 */
  --font-sans: "NanumSquareNeo", "NanumSquareNeoOTF", "Nanum Square Neo", "Apple SD Gothic Neo", "Noto Sans KR", "맑은 고딕", "Malgun Gothic", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body,
button,
input,
textarea,
select {
  font-family: var(--font-sans);
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(180deg, #ffffff 0, #f5f7f8 280px),
    var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

button:disabled,
input:disabled,
textarea:disabled,
select:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

body.locked {
  overflow: hidden;
}

[hidden] {
  display: none !important;
}

.login-view,
.admin-view,
.password-change-view {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    linear-gradient(135deg, rgba(3, 199, 90, 0.08), rgba(255, 255, 255, 0.92) 34%),
    #f5f7f8;
}

.login-panel,
.admin-panel {
  width: min(100%, 520px);
  background: #ffffff;
  border: 1px solid #111111;
  box-shadow: 0 24px 70px rgba(17, 17, 17, 0.14);
}

.login-panel {
  padding: 34px;
}

.naver-cloud-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
  color: #111111;
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
}

.naver-cloud-logo.compact {
  margin-bottom: 18px;
  font-size: 17px;
}

.logo-symbol {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  background: var(--primary);
  color: #ffffff;
  font-size: 18px;
  font-weight: 900;
}

.naver-cloud-logo.compact .logo-symbol {
  width: 28px;
  height: 28px;
  font-size: 15px;
}

.logo-wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  letter-spacing: 0;
}

.logo-wordmark strong {
  font-weight: 950;
}

.login-copy {
  color: #374151;
  line-height: 1.6;
  margin: 14px 0 24px;
}

.login-form,
.user-form {
  display: grid;
  gap: 12px;
}

.demo-account,
.readonly-notice {
  border-left: 4px solid var(--primary);
  background: #f2fbf6;
  padding: 13px;
}

.demo-account {
  margin-top: 18px;
}

.demo-account strong,
.demo-account span {
  display: block;
}

.demo-account span {
  color: var(--muted);
  font-size: 13px;
  margin-top: 4px;
}

.form-message {
  min-height: 18px;
  color: #d92d20;
  font-size: 13px;
  font-weight: 800;
  margin: 0;
}

.app-shell {
  display: grid;
  grid-template-columns: minmax(340px, 400px) 1fr;
  min-height: 100vh;
}

.sidebar {
  background: rgba(255, 255, 255, 0.92);
  border-right: 1px solid var(--line);
  padding: 34px 30px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  backdrop-filter: blur(16px);
}

.brand-row,
.topbar,
.section-title,
.detail-heading,
.task-row,
.comment-row,
.roadmap-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--primary);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: 36px;
  font-weight: 900;
  line-height: 1.05;
}

h2 {
  margin-bottom: 0;
  font-size: 32px;
  font-weight: 900;
  line-height: 1.08;
}

h3 {
  margin-bottom: 0;
  font-size: 18px;
  font-weight: 900;
}

.composer,
.filters,
.project-list,
.detail-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 0;
  box-shadow: var(--shadow);
}

.composer,
.filters {
  padding: 22px;
}

form,
.filters,
.detail-body,
.task-list,
.wbs-list,
.roadmap-list,
.comment-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: #1f2937;
  font-size: 13px;
  font-weight: 800;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 0;
  background: #ffffff;
  color: var(--ink);
  padding: 12px 13px;
  outline: none;
}

textarea {
  resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--primary);
  box-shadow: inset 0 -2px 0 var(--primary);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.primary-button,
.secondary-button,
.danger-button,
.icon-button,
.segmented button {
  border: 0;
  border-radius: 0;
  font-weight: 900;
  min-height: 42px;
}

.primary-button {
  background: #111111;
  color: #ffffff;
  padding: 12px 15px;
}

.primary-button:hover {
  background: var(--primary);
  color: #111111;
}

.secondary-button {
  background: #111111;
  color: #ffffff;
  padding: 11px 14px;
}

.danger-button {
  background: #ffffff;
  border: 1px solid #f4c7c3;
  color: #d92d20;
  padding: 11px 14px;
}

.icon-button {
  width: 44px;
  min-width: 44px;
  background: #ffffff;
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 18px;
}

.icon-button:hover,
.secondary-button:hover {
  border-color: var(--primary);
  background: var(--primary);
  color: #111111;
}

.segmented {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  background: #ffffff;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 0;
}

.segmented button {
  background: transparent;
  color: #4b5563;
  min-height: 40px;
  border-right: 1px solid var(--line);
}

.segmented button:last-child {
  border-right: 0;
}

.segmented button.active {
  background: #111111;
  color: #ffffff;
  box-shadow: none;
}

.workspace {
  padding: 38px;
  overflow: hidden;
}

.topbar {
  margin-bottom: 28px;
  padding-bottom: 26px;
  border-bottom: 1px solid #111111;
}

.topbar-right,
.user-menu {
  display: flex;
  align-items: center;
  gap: 12px;
}

.topbar-right {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.user-chip {
  min-width: 150px;
  border: 1px solid var(--line);
  background: #ffffff;
  padding: 10px 12px;
}

.user-chip strong,
.user-chip span {
  display: block;
}

.user-chip span {
  color: var(--muted);
  font-size: 12px;
  margin-top: 3px;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(3, 104px);
  gap: 0;
  border: 1px solid var(--line);
}

.metrics div {
  background: var(--panel);
  border: 0;
  border-right: 1px solid var(--line);
  border-radius: 0;
  padding: 14px;
}

.metrics div:last-child {
  border-right: 0;
}

.metrics strong,
.metrics span {
  display: block;
}

.metrics strong {
  font-size: 28px;
  line-height: 1;
}

.metrics span,
.section-title span,
.meta,
.comment-meta,
.empty-state p {
  color: var(--muted);
  font-size: 13px;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(280px, 430px) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.project-list,
.detail-panel {
  min-height: calc(100vh - 136px);
  overflow: hidden;
}

.section-title,
.detail-heading {
  padding: 20px;
  border-bottom: 1px solid var(--line);
}

.projects-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
  max-height: calc(100vh - 205px);
  overflow: auto;
}

.project-item {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 0;
  padding: 16px;
  text-align: left;
  transition: border-color 0.15s ease, background-color 0.15s ease, transform 0.15s ease;
}

.project-item:hover,
.project-item.active {
  border-color: #111111;
  background: #fbfffd;
  transform: translateY(-1px);
}

.project-item h4 {
  margin: 0 0 8px;
  font-size: 16px;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.pill {
  display: inline-flex;
  align-items: center;
  border-radius: 0;
  min-height: 26px;
  padding: 4px 10px;
  background: #eef2f4;
  color: #111111;
  font-size: 12px;
  font-weight: 900;
}

.status-계획 {
  background: #edf4ff;
  color: #1d4ed8;
}

.status-대기 {
  background: #eef2f4;
  color: #475569;
}

.status-진행 {
  background: #e2f8ec;
  color: #007a36;
}

.status-검토 {
  background: #fff4d7;
  color: #8a5a00;
}

.status-완료 {
  background: #e7f0ff;
  color: #1d4ed8;
}

.priority-높음 {
  background: #ffe8e5;
  color: #991b1b;
}

.priority-보통 {
  background: #e7f0ff;
  color: #1d4ed8;
}

.priority-낮음 {
  background: #f1f5f9;
  color: #475569;
}

.detail-panel {
  background: var(--panel);
}

.detail-body {
  padding: 20px;
  max-height: calc(100vh - 205px);
  overflow: auto;
}

.goal-text {
  color: #374151;
  line-height: 1.6;
}

.detail-controls {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.chart-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.chart-panel {
  min-width: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 16px;
  overflow: hidden;
}

.chart-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.chart-title strong,
.wbs-root strong,
.wbs-node strong,
.roadmap-card strong {
  display: block;
}

.chart-title span,
.wbs-root span,
.roadmap-card span {
  color: var(--muted);
  font-size: 13px;
}

.wbs-chart {
  display: grid;
  gap: 14px;
}

.wbs-root {
  position: relative;
  max-width: 280px;
  margin: 0 auto;
  border: 1px solid #111111;
  border-radius: 0;
  background: #111111;
  color: #ffffff;
  padding: 13px;
  text-align: center;
}

.wbs-root::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -15px;
  width: 1px;
  height: 14px;
  background: #111111;
}

.wbs-branches {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px;
  padding-top: 14px;
}

.wbs-branch {
  position: relative;
  display: grid;
  gap: 8px;
  min-width: 0;
}

.wbs-branch::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -14px;
  width: 1px;
  height: 14px;
  background: var(--line-strong);
}

.wbs-group {
  display: grid;
  place-items: center;
  min-height: 34px;
  border-radius: 0;
  background: #f6f8fa;
  border: 1px solid var(--line);
  color: #111111;
  font-size: 13px;
  font-weight: 900;
}

.wbs-nodes {
  display: grid;
  gap: 8px;
}

.wbs-node {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  min-height: 82px;
  border: 1px solid var(--line);
  border-left-width: 5px;
  border-radius: 0;
  padding: 11px;
  background: #ffffff;
}

.wbs-node strong {
  margin-top: 4px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.node-code {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.status-border-대기 {
  border-left-color: #94a3b8;
}

.status-border-진행 {
  border-left-color: #22c55e;
}

.status-border-검토 {
  border-left-color: #f59e0b;
}

.status-border-완료 {
  border-left-color: #0ea5e9;
}

.roadmap-chart {
  position: relative;
  overflow-x: auto;
  padding: 10px 2px 4px;
}

.roadmap-track {
  position: absolute;
  top: 30px;
  left: 28px;
  right: 28px;
  height: 4px;
  border-radius: 999px;
  background: #e5e8eb;
}

.roadmap-track::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--progress);
  border-radius: inherit;
  background: var(--primary);
}

.roadmap-steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(var(--step-count), minmax(190px, 1fr));
  gap: 14px;
  min-width: calc(var(--step-count) * 190px);
}

.roadmap-step {
  display: grid;
  grid-template-rows: 42px 1fr;
  gap: 10px;
  justify-items: center;
}

.roadmap-dot {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 4px solid #fff;
  border-radius: 999px;
  color: #fff;
  font-weight: 900;
  box-shadow: 0 0 0 1px var(--line);
  z-index: 1;
}

.status-dot-대기 {
  background: #94a3b8;
}

.status-dot-진행 {
  background: var(--green);
}

.status-dot-검토 {
  background: #d97706;
}

.status-dot-완료 {
  background: var(--blue);
}

.roadmap-card {
  width: 100%;
  min-height: 150px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: #ffffff;
  padding: 12px;
}

.roadmap-card strong {
  margin-top: 7px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.roadmap-card p {
  margin: 8px 0 10px;
  color: #344044;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.task-composer,
.wbs-composer,
.roadmap-composer,
.comment-composer {
  display: grid;
  gap: 10px;
}

.task-composer,
.comment-composer {
  grid-template-columns: 1fr auto;
}

.wbs-composer {
  grid-template-columns: 90px 1.2fr 0.8fr 1fr auto;
}

.roadmap-composer {
  grid-template-columns: 1fr 150px 150px 1.2fr auto;
}

.task-row,
.comment-row,
.wbs-row,
.roadmap-row {
  align-items: flex-start;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 12px;
}

.wbs-row,
.roadmap-row {
  display: grid;
  gap: 12px;
}

.wbs-row {
  grid-template-columns: 64px minmax(0, 1fr) 118px 42px;
  align-items: center;
}

.roadmap-row {
  grid-template-columns: 42px minmax(0, 1fr) 118px 42px;
  align-items: flex-start;
}

.wbs-code,
.roadmap-marker {
  display: grid;
  place-items: center;
  min-height: 38px;
  border-radius: 0;
  background: #111111;
  color: #ffffff;
  font-weight: 900;
}

.wbs-main,
.roadmap-main {
  min-width: 0;
}

.wbs-main strong,
.wbs-main span,
.roadmap-main strong,
.roadmap-main span {
  display: block;
}

.wbs-main strong,
.roadmap-main strong {
  overflow-wrap: anywhere;
}

.wbs-main span,
.roadmap-main span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  margin-top: 5px;
  overflow-wrap: anywhere;
}

.roadmap-main p {
  margin: 8px 0 0;
  color: #344044;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.wbs-row select,
.roadmap-row select {
  min-height: 40px;
}

.task-main {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
}

.task-main input {
  width: 18px;
  min-width: 18px;
  margin-top: 2px;
}

.task-main span {
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.task-main span.done {
  color: var(--muted);
  text-decoration: line-through;
}

.comment-content {
  min-width: 0;
}

.comment-content p {
  margin-bottom: 8px;
  overflow-wrap: anywhere;
  line-height: 1.5;
}

.comment-meta {
  margin: 0;
}

.empty-state {
  padding: 34px 20px;
  text-align: center;
}

.empty-state h3 {
  margin-bottom: 8px;
}

.admin-view {
  align-items: start;
  overflow: auto;
}

.admin-panel {
  width: min(100%, 980px);
  margin: 36px 0;
}

.admin-body {
  display: grid;
  gap: 20px;
  padding: 20px;
}

.user-form {
  grid-template-columns: 1fr 1.2fr 1fr 180px auto;
}

.users-container {
  display: grid;
  gap: 10px;
}

.user-row {
  display: grid;
  grid-template-columns: 44px minmax(180px, 1fr) 180px 120px 78px auto;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  background: #ffffff;
  padding: 12px;
}

.user-avatar {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  background: #111111;
  color: #ffffff;
  font-weight: 900;
}

.user-info {
  min-width: 0;
}

.user-info strong,
.user-info span {
  display: block;
  overflow-wrap: anywhere;
}

.user-info span {
  color: var(--muted);
  font-size: 13px;
  margin-top: 4px;
}

@media (max-width: 1040px) {
  .app-shell,
  .content-grid {
    grid-template-columns: 1fr;
  }

  .sidebar {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .project-list,
  .detail-panel {
    min-height: auto;
  }
}

@media (max-width: 680px) {
  .sidebar,
  .workspace {
    padding: 18px;
  }

  .topbar,
  .brand-row,
  .detail-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .topbar-right,
  .user-menu {
    align-items: stretch;
    flex-direction: column;
    width: 100%;
  }

  .metrics,
  .form-grid,
  .detail-controls,
  .chart-grid,
  .task-composer,
  .wbs-composer,
  .roadmap-composer,
  .wbs-row,
  .roadmap-row,
  .comment-composer {
    grid-template-columns: 1fr;
    width: 100%;
  }

  .segmented {
    grid-template-columns: repeat(2, 1fr);
  }

  .login-panel {
    padding: 24px;
  }

  .user-form,
  .user-row {
    grid-template-columns: 1fr;
  }

  .user-avatar {
    width: 40px;
    height: 40px;
  }

  .roadmap-chart {
    overflow-x: visible;
  }

  .roadmap-track {
    left: 21px;
    top: 24px;
    bottom: 0;
    right: auto;
    width: 4px;
    height: auto;
  }

  .roadmap-track::after {
    width: 100%;
    height: var(--progress);
  }

  .roadmap-steps {
    grid-template-columns: 1fr;
    min-width: 0;
  }

  .roadmap-step {
    grid-template-columns: 42px 1fr;
    grid-template-rows: 1fr;
    justify-items: stretch;
    align-items: start;
  }
}

.app-shell {
  grid-template-columns: 288px minmax(0, 1fr);
  transition: grid-template-columns 0.18s ease;
}

.app-shell.menu-collapsed {
  grid-template-columns: 88px minmax(0, 1fr);
}

.app-shell.menu-collapsed .sidebar {
  padding: 28px 18px;
}

.app-shell.menu-collapsed .brand-row {
  align-items: center;
}

.app-shell.menu-collapsed .brand-row > div,
.app-shell.menu-collapsed .nav-label,
.app-shell.menu-collapsed .sidebar-utility,
.app-shell.menu-collapsed .logo-wordmark {
  display: none;
}

.app-shell.menu-collapsed .side-nav {
  align-items: center;
}

.app-shell.menu-collapsed .nav-button {
  width: 48px;
  justify-content: center;
  padding: 0;
}

.sidebar {
  min-width: 0;
}

.side-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.nav-button {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  border: 1px solid var(--line);
  background: #ffffff;
  color: #111111;
  padding: 0 14px;
  text-align: left;
  font-weight: 900;
}

.nav-button:hover,
.nav-button.active {
  border-color: #111111;
  background: #111111;
  color: #ffffff;
}

.nav-icon {
  display: grid;
  place-items: center;
  width: 22px;
  min-width: 22px;
  font-weight: 900;
}

.sidebar-utility {
  margin-top: auto;
  display: grid;
  gap: 10px;
}

.top-search {
  width: min(100%, 310px);
}

.top-search span {
  color: var(--muted);
  font-size: 12px;
}

.main-content {
  min-height: calc(100vh - 178px);
}

.view-stack,
.dashboard-layout {
  display: grid;
  gap: 20px;
}

.panel {
  min-width: 0;
  background: #ffffff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.dashboard-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border: 1px solid #111111;
  background: #ffffff;
  padding: 28px;
}

.dashboard-hero h3 {
  font-size: 30px;
  line-height: 1.1;
}

.dashboard-copy {
  color: #374151;
  line-height: 1.6;
  margin: 12px 0 0;
}

.hero-progress {
  display: grid;
  place-items: center;
  min-width: 154px;
  min-height: 154px;
  border: 10px solid #e2f8ec;
  outline: 1px solid var(--primary);
  background: #f8fffb;
}

.hero-progress strong {
  font-size: 38px;
  line-height: 1;
}

.hero-progress span {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.dashboard-stats,
.project-health-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.stat-card {
  background: #ffffff;
  border: 1px solid var(--line);
  padding: 18px;
}

.stat-card span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.stat-card strong {
  display: block;
  margin-top: 10px;
  font-size: 30px;
  line-height: 1;
}

.workload-panel {
  overflow: hidden;
}

.workload-title {
  align-items: center;
}

.workload-title > div:first-child span {
  display: block;
  margin-top: 6px;
}

.workload-switch {
  display: grid;
  grid-template-columns: repeat(3, auto);
  border: 1px solid var(--line);
  background: #ffffff;
}

.workload-switch button {
  min-height: 36px;
  border: 0;
  border-right: 1px solid var(--line);
  background: #ffffff;
  color: #4b5563;
  padding: 0 13px;
  font-size: 13px;
  font-weight: 900;
}

.workload-switch button:last-child {
  border-right: 0;
}

.workload-switch button.active {
  background: #111111;
  color: #ffffff;
}

.workload-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border-bottom: 1px solid var(--line);
}

.workload-summary article {
  padding: 16px;
  border-right: 1px solid var(--line);
}

.workload-summary article:last-child {
  border-right: 0;
}

.workload-summary span,
.workload-month span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.workload-summary strong {
  display: block;
  margin-top: 8px;
  font-size: 24px;
  line-height: 1;
}

.workload-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  padding: 14px 20px 0;
}

.workload-legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #374151;
  font-size: 12px;
  font-weight: 900;
}

.workload-legend i {
  width: 10px;
  height: 10px;
}

.workload-chart {
  display: grid;
  grid-template-columns: repeat(12, minmax(56px, 1fr));
  gap: 10px;
  min-height: 260px;
  padding: 20px;
  overflow-x: auto;
}

.workload-month {
  display: grid;
  grid-template-rows: minmax(132px, 1fr) auto auto;
  gap: 8px;
  min-width: 56px;
  text-align: center;
}

.workload-bar-wrap {
  display: flex;
  align-items: end;
  min-height: 132px;
  border-bottom: 1px solid #111111;
}

.workload-bar {
  position: relative;
  display: grid;
  align-items: start;
  width: 100%;
  min-height: 8px;
  background: linear-gradient(180deg, var(--primary) 0%, #00a64a 100%);
}

.workload-bar.workload-stacked {
  display: flex;
  flex-direction: column-reverse;
  background: #e5e8eb;
}

.workload-segment {
  display: block;
  width: 100%;
  min-height: 4px;
}

.workload-bar span {
  position: absolute;
  top: -24px;
  left: 50%;
  transform: translateX(-50%);
  color: #111111;
  font-size: 13px;
  font-weight: 900;
}

.workload-month strong {
  font-size: 13px;
}

.dashboard-grid,
.split-layout,
.search-result-grid {
  display: grid;
  gap: 20px;
}

.dashboard-grid {
  grid-template-columns: minmax(0, 1.3fr) minmax(320px, 0.7fr);
}

.split-layout {
  grid-template-columns: minmax(300px, 420px) minmax(0, 1fr);
  align-items: start;
}

.assigned-projects,
.task-result-list,
.projects-container {
  display: grid;
  gap: 10px;
  padding: 14px;
}

.project-summary-card,
.mini-row,
.task-search-item {
  display: grid;
  gap: 10px;
  width: 100%;
  border: 1px solid var(--line);
  background: #ffffff;
  padding: 14px;
  text-align: left;
}

.project-summary-card:hover,
.mini-row:hover,
.task-search-item:hover {
  border-color: #111111;
  background: #fbfffd;
}

.summary-head,
.mini-row,
.task-search-item {
  align-items: start;
}

.summary-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.project-summary-card p {
  color: #374151;
  line-height: 1.5;
  margin: 0;
}

.progress-bar {
  width: 100%;
  height: 8px;
  background: #e5e8eb;
  overflow: hidden;
}

.progress-bar span {
  display: block;
  height: 100%;
  background: var(--primary);
}

.search-results-panel h4 {
  margin: 0 0 10px;
  font-size: 15px;
}

.search-result-grid {
  grid-template-columns: 1fr 1fr;
  padding: 14px;
}

.mini-row {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.mini-row span,
.task-search-item span {
  color: var(--muted);
  font-size: 13px;
}

.task-search-item {
  grid-template-columns: 64px minmax(0, 1fr);
}

.task-search-item span:last-child {
  grid-column: 2;
}

.task-state {
  display: grid;
  place-items: center;
  min-height: 28px;
  background: #e2f8ec;
  color: #007a36;
  font-weight: 900;
}

.task-state.done {
  background: #e7f0ff;
  color: #1d4ed8;
}

.project-form-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 160px 130px 130px 1.5fr auto;
  gap: 10px;
  padding: 14px;
}

.view-filter {
  margin: 14px;
}

.detail-panel {
  min-height: 0;
}

.detail-body {
  display: grid;
  gap: 18px;
}

.project-health-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.tasks-layout .panel:first-child {
  position: sticky;
  top: 20px;
}

@media (max-width: 1180px) {
  .dashboard-grid,
  .split-layout,
  .search-result-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 760px) {
  .app-shell,
  .app-shell.menu-collapsed {
    grid-template-columns: 1fr;
  }

  .app-shell.menu-collapsed .brand-row > div,
  .app-shell.menu-collapsed .nav-label,
  .app-shell.menu-collapsed .sidebar-utility,
  .app-shell.menu-collapsed .logo-wordmark {
    display: initial;
  }

  .app-shell.menu-collapsed .nav-button {
    width: 100%;
    justify-content: flex-start;
    padding: 0 14px;
  }

  .side-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-hero,
  .topbar,
  .workload-title {
    align-items: flex-start;
    flex-direction: column;
  }

  .dashboard-stats,
  .workload-summary,
  .project-health-grid,
  .project-form-grid {
    grid-template-columns: 1fr;
  }

  .workload-summary article {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .workload-summary article:last-child {
    border-bottom: 0;
  }

  .top-search {
    width: 100%;
  }

  .workload-switch {
    width: 100%;
    grid-template-columns: 1fr;
  }

  .workload-switch button {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .workload-switch button:last-child {
    border-bottom: 0;
  }
}

/* ────────────────────────────────────────────────────────── */
/*  v2 추가 스타일 — 알림 / 감사 / 토스트 / 담당자칩 / 링크 / 인라인 편집 */
/* ────────────────────────────────────────────────────────── */

/* 사이드바 알림 배지 */
.nav-button {
  position: relative;
}
.nav-badge {
  position: absolute;
  top: 8px;
  right: 12px;
  min-width: 18px;
  height: 18px;
  padding: 0 6px;
  border-radius: 999px;
  background: #dc2626;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
  box-shadow: 0 1px 4px rgba(220, 38, 38, 0.4);
}

/* 토스트 */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: rgba(17, 24, 39, 0.94);
  color: #fff;
  padding: 12px 20px;
  border-radius: 10px;
  font-size: 14px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.28);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 999;
}
.toast.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* 담당자 칩 + 다중 선택 */
.assignee-block {
  margin-top: 24px;
}
.assignee-row {
  display: grid;
  grid-template-columns: 1fr 240px;
  gap: 16px;
  align-items: start;
}
@media (max-width: 720px) {
  .assignee-row {
    grid-template-columns: 1fr;
  }
}
.assignee-display {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-height: 32px;
}
.assignee-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(3, 199, 90, 0.1);
  color: #065f46;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid rgba(3, 199, 90, 0.25);
}
.assignee-row select[multiple] {
  min-height: 96px;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid var(--line);
  font-size: 13px;
  background: #fff;
}
.muted {
  color: #6b7280;
}
.small {
  font-size: 12px;
}

/* 외부 링크 블록 */
.links-block {
  margin-top: 24px;
}
.link-composer {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) minmax(220px, 2fr) auto;
  gap: 8px;
  margin-bottom: 12px;
}
@media (max-width: 720px) {
  .link-composer {
    grid-template-columns: 1fr;
  }
}
.link-list {
  display: grid;
  gap: 8px;
}
.link-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}
.link-anchor {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-decoration: none;
  color: inherit;
  flex: 1;
  min-width: 0;
}
.link-anchor strong {
  font-size: 14px;
}
.link-anchor span {
  font-size: 12px;
  color: #6b7280;
  word-break: break-all;
}
.link-anchor:hover strong {
  color: #03c75a;
  text-decoration: underline;
}

/* 인라인 편집 폼 (코멘트 · WBS · 로드맵) */
.comment-row.editing,
.wbs-row.editing,
.roadmap-row.editing {
  display: grid;
  gap: 8px;
  background: rgba(3, 199, 90, 0.06);
  border: 1px dashed rgba(3, 199, 90, 0.4);
  padding: 12px;
  border-radius: 10px;
}
.comment-row.editing {
  grid-template-columns: 1fr auto auto;
  align-items: center;
}
.wbs-row.editing {
  grid-template-columns: 80px 1fr auto auto;
  align-items: center;
}
.wbs-edit-main {
  display: grid;
  grid-template-columns: 2fr 1fr 2fr;
  gap: 8px;
}
.roadmap-row.editing {
  grid-template-columns: 32px 1fr auto auto;
  align-items: center;
}
.roadmap-edit-main {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 2fr;
  gap: 8px;
}
@media (max-width: 720px) {
  .wbs-edit-main,
  .roadmap-edit-main {
    grid-template-columns: 1fr;
  }
}

.ghost-button {
  background: transparent;
  border: 1px solid var(--line);
  color: #4b5563;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 13px;
  cursor: pointer;
}
.ghost-button:hover {
  background: rgba(15, 23, 42, 0.05);
}

.comment-actions {
  display: flex;
  gap: 4px;
}
.edited-mark {
  color: #6b7280;
  font-size: 11px;
  margin-left: 4px;
}

/* 알림 뷰 */
.notification-actions {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 12px;
}
.notification-list {
  display: grid;
  gap: 10px;
}
.notification-row {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}
.notification-row.unread {
  border-color: rgba(3, 199, 90, 0.5);
  background: rgba(3, 199, 90, 0.04);
}
.notification-meta {
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 12px;
  color: #6b7280;
}
.notification-kind {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  background: #f3f4f6;
  color: #374151;
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.notification-kind.kind-assigned { background: rgba(36, 107, 235, 0.12); color: #1e3a8a; }
.notification-kind.kind-comment { background: rgba(3, 199, 90, 0.12); color: #065f46; }
.notification-kind.kind-status_changed { background: rgba(217, 119, 6, 0.12); color: #92400e; }
.notification-kind.kind-due_soon { background: rgba(220, 38, 38, 0.12); color: #991b1b; }
.notification-kind.kind-mentioned { background: rgba(124, 58, 237, 0.12); color: #5b21b6; }

.notification-row strong {
  font-size: 14px;
}
.notification-row p {
  margin: 0;
  color: #4b5563;
  font-size: 13px;
}
.notification-row .notification-actions {
  justify-content: flex-start;
  gap: 8px;
}

/* 활동 로그 */
.audit-list {
  display: grid;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
}
.audit-row {
  display: grid;
  grid-template-columns: 160px 140px 1fr 120px;
  gap: 12px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  align-items: center;
}
.audit-row:last-child {
  border-bottom: 0;
}
.audit-time {
  color: #6b7280;
  font-variant-numeric: tabular-nums;
}
.audit-actor {
  font-weight: 600;
}
.audit-action code {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 12px;
  background: rgba(15, 23, 42, 0.06);
  padding: 2px 6px;
  border-radius: 6px;
}
.audit-entity {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(36, 107, 235, 0.1);
  color: #1e40af;
  font-size: 11px;
  font-weight: 600;
}
@media (max-width: 720px) {
  .audit-row {
    grid-template-columns: 1fr;
  }
}
