:root {
  --bg: #f6f7f9;
  --surface: #fff;
  --surface-2: #fbfcfe;
  --text: #151922;
  --muted: #667085;
  --line: #dde2ea;
  --nav: #111827;
  --nav-2: #253044;
  --primary: #2563eb;
  --primary-soft: #eaf1ff;
  --green: #087443;
  --green-soft: #e7f6ee;
  --amber: #a15c07;
  --amber-soft: #fff2d8;
  --red: #b42318;
  --red-soft: #feeceb;
  --shadow: 0 10px 28px rgba(30, 41, 59, .08);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans KR", sans-serif;
}

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

.login-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.login-panel {
  width: min(460px, 100%);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 24px;
}

.login-brand {
  margin: 0 0 22px;
}

.login-copy h1 {
  margin: 0 0 8px;
  font-size: 24px;
  letter-spacing: 0;
}

.login-copy p {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.login-form {
  display: grid;
  gap: 13px;
}

.login-form label {
  display: grid;
  gap: 6px;
  font-size: 12px;
  font-weight: 800;
  color: #475467;
}

.login-form input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 11px;
  background: #fff;
  color: var(--text);
}

.form-error {
  border: 1px solid #f3b8b3;
  background: var(--red-soft);
  color: var(--red);
  border-radius: 8px;
  padding: 10px 11px;
  font-size: 12px;
  margin-bottom: 14px;
}

.language-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 12px;
}

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

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  background: var(--nav);
  color: #fff;
  padding: 22px 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 6px 24px;
}

.brand-logo {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  object-fit: contain;
  background: #fff;
  border: 1px solid rgba(255,255,255,.2);
}

.login-brand .brand-logo {
  width: 48px;
  height: 48px;
  border: 1px solid var(--line);
}

.brand b { display: block; font-size: 16px; }
.brand span { display: block; color: #98a2b3; font-size: 11px; margin-top: 2px; }

.nav-label {
  margin: 18px 10px 7px;
  color: #667085;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.nav-button {
  width: 100%;
  border: 0;
  background: transparent;
  color: #cbd5e1;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  cursor: pointer;
  text-align: left;
}

.nav-button:hover,
.nav-button.active {
  background: var(--nav-2);
  color: #fff;
}

.nav-count {
  margin-left: auto;
  background: #344054;
  border-radius: 99px;
  padding: 2px 7px;
  font-size: 11px;
}

.security-note {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 18px;
  border: 1px solid #344054;
  border-radius: 8px;
  padding: 12px;
  background: #182235;
}

.security-note b { font-size: 12px; }
.security-note p { margin: 6px 0 0; color: #98a2b3; font-size: 11px; line-height: 1.45; }

.main { min-width: 0; }

.topbar {
  height: 64px;
  background: rgba(255,255,255,.94);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 26px;
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(10px);
}

.crumb { font-size: 13px; color: var(--muted); }
.crumb strong { color: var(--text); }

.search {
  margin-left: auto;
  position: relative;
  width: 320px;
}

.search input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f9fafb;
  padding: 9px 11px 9px 34px;
}

.search span {
  position: absolute;
  left: 12px;
  top: 8px;
  color: #98a2b3;
}

.avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #e9eefc;
  color: #1d4ed8;
  display: grid;
  place-items: center;
  font-weight: 850;
  font-size: 12px;
}

.content {
  max-width: 1380px;
  margin: 0 auto;
  padding: 26px;
}

.page-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 16px;
}

.page-head h1 {
  margin: 0 0 6px;
  font-size: 25px;
  letter-spacing: 0;
}

.page-head p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.actions { display: flex; gap: 8px; flex-wrap: wrap; }

.button {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
}

.button:hover { box-shadow: 0 4px 16px rgba(30,41,59,.09); }
.button.primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.button.danger { background: var(--red-soft); border-color: #f3b8b3; color: var(--red); }
.button.small { padding: 6px 9px; font-size: 12px; }

.workspace-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) 360px;
  gap: 18px;
}

.project-lower {
  margin-top: 18px;
}

.section-label {
  font-size: 14px;
  color: var(--muted);
  font-weight: 800;
  margin: 18px 0 10px;
}

.section-label:first-of-type {
  margin-top: 0;
}

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

.project-card {
  min-height: 280px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 16px;
  display: flex;
  flex-direction: column;
  cursor: pointer;
}

.project-card:hover {
  border-color: #b8c7f5;
}

.project-card-top,
.project-card-footer,
.project-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.project-card h2 {
  margin: 14px 0 7px;
  font-size: 18px;
  letter-spacing: 0;
}

.project-card.has-logo h2 {
  margin-top: 10px;
}

.project-logo-wrap {
  width: 64px;
  height: 64px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  display: grid;
  place-items: center;
  margin-top: 14px;
  overflow: hidden;
}

.project-logo-wrap img,
.project-logo-detail img,
.room-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.project-logo-detail {
  width: 96px;
  height: 96px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  display: grid;
  place-items: center;
  margin: 16px;
  overflow: hidden;
}

.project-card p {
  margin: 0;
  color: #475467;
  font-size: 13px;
  line-height: 1.55;
}

.progress-line {
  height: 7px;
  background: #edf0f4;
  border-radius: 999px;
  overflow: hidden;
  margin: 16px 0 9px;
}

.progress-line span {
  display: block;
  height: 100%;
  background: var(--primary);
  border-radius: inherit;
}

.stage-progress {
  margin: 14px 0 4px;
}

.stage-progress-line {
  height: 7px;
  background: #edf0f4;
  border-radius: 999px;
  overflow: hidden;
}

.stage-progress-line span {
  display: block;
  height: 100%;
  background: var(--green);
  border-radius: inherit;
}

.stage-progress-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 7px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.stage-track-detail {
  padding: 0 16px 12px;
}

.project-meta {
  color: var(--muted);
  font-size: 11px;
  justify-content: flex-start;
  flex-wrap: wrap;
}

.project-card-footer {
  margin-top: auto;
  padding-top: 14px;
}

.empty-state {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 34px;
  text-align: center;
}

.empty-state h2 {
  margin: 0 0 8px;
  font-size: 18px;
}

.empty-state p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.panel-empty {
  padding: 18px 16px;
  color: var(--muted);
  font-size: 13px;
}

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.panel + .panel { margin-top: 16px; }
.project-detail-layout > .panel + .panel,
.two-col > .panel + .panel { margin-top: 0; }

.panel-head {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.panel-head h2 { margin: 0; font-size: 15px; }

.focus-top {
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.focus-top h2 { margin: 7px 0 6px; font-size: 20px; }
.focus-top p, .card p, .row p { margin: 0; color: #475467; font-size: 13px; line-height: 1.55; }

.stagebar {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 5px;
  padding: 16px 20px 0;
}

.stage {
  height: 36px;
  border-radius: 6px;
  background: #eef1f5;
  color: #667085;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 800;
}

.stage.done { background: var(--green-soft); color: var(--green); }
.stage.current { background: var(--primary); color: #fff; }

.next-grid {
  padding: 18px 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.mini-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: var(--surface-2);
}

.mini-card b { display: block; font-size: 13px; margin-bottom: 6px; }

.row {
  display: grid;
  grid-template-columns: 30px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 13px 16px;
  border-bottom: 1px solid #edf0f4;
}

.row:last-child { border-bottom: 0; }
.row b { font-size: 13px; }
.row p { margin-top: 4px; font-size: 12px; color: var(--muted); }

.icon {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: var(--amber-soft);
  color: var(--amber);
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 12px;
}

.icon.blue { background: var(--primary-soft); color: var(--primary); }
.icon.green { background: var(--green-soft); color: var(--green); }
.icon.red { background: var(--red-soft); color: var(--red); }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: 99px;
  background: #f2f4f7;
  color: #475467;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.badge.blue { background: var(--primary-soft); color: var(--primary); }
.badge.green { background: var(--green-soft); color: var(--green); }
.badge.amber { background: var(--amber-soft); color: var(--amber); }
.badge.red { background: var(--red-soft); color: var(--red); }
.tiny { font-size: 11px; color: var(--muted); }

.deal-list {
  display: grid;
  gap: 10px;
  padding: 14px;
}

.deal-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 14px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  cursor: pointer;
}

.deal-card:hover { border-color: #b8c7f5; }
.deal-card h3 { margin: 7px 0 5px; font-size: 14px; }
.deal-card p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.5; }

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

.side-stack {
  display: grid;
  gap: 14px;
  align-content: start;
}

.metric {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 0;
  border-bottom: 1px solid #edf0f4;
  font-size: 12px;
}

.metric:last-child { border-bottom: 0; }
.metric b { font-size: 16px; }

.metric-list { padding: 4px 16px 10px; }

.back-button {
  display: none;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  flex: 0 0 auto;
}
.back-button:hover { background: rgba(255,255,255,.15); }

.room-head {
  background: #202733;
  color: #fff;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 14px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
}

.room-head h1 { margin: 7px 0 6px; font-size: 24px; }
.room-head p { margin: 0; color: #cbd5e1; font-size: 13px; }

.room-logo {
  width: 84px;
  height: 84px;
  flex: 0 0 auto;
  border-radius: 8px;
  background: #fff;
  border: 1px solid rgba(255,255,255,.22);
  padding: 6px;
}

.tabs {
  display: flex;
  gap: 5px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 5px;
  margin-bottom: 14px;
  overflow: auto;
}

.tab {
  border: 0;
  background: transparent;
  border-radius: 6px;
  padding: 8px 11px;
  font-size: 12px;
  font-weight: 800;
  color: var(--muted);
  cursor: pointer;
  white-space: nowrap;
}

.tab.active { background: var(--primary-soft); color: var(--primary); }

.room-tabs {
  padding: 6px;
  margin-bottom: 16px;
}

.room-tabs .tab {
  padding: 12px 20px;
  font-size: 14px;
}

.two-col {
  display: grid;
  grid-template-columns: 1.3fr .8fr;
  gap: 16px;
}

.project-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, .75fr);
  gap: 16px;
  align-items: start;
}

.roadmap-panel {
  margin-bottom: 16px;
}

.roadmap {
  display: grid;
  grid-template-columns: repeat(9, minmax(110px, 1fr));
  gap: 8px;
  padding: 16px;
  overflow-x: auto;
}

.roadmap-step {
  min-height: 94px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 10px;
}

.roadmap-step.done {
  background: var(--green-soft);
  border-color: #a8dcc2;
}

.roadmap-step.current {
  background: var(--primary-soft);
  border-color: #b8c7f5;
}

.roadmap-dot {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #edf0f4;
  color: #475467;
  font-size: 11px;
  font-weight: 900;
  margin-bottom: 8px;
}

.roadmap-step.done .roadmap-dot { background: var(--green); color: #fff; }
.roadmap-step.current .roadmap-dot { background: var(--primary); color: #fff; }
.roadmap-step b { display: block; font-size: 12px; }
.roadmap-step span { display: block; color: var(--muted); font-size: 11px; margin-top: 5px; }

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

.task-list {
  display: grid;
  gap: 14px;
  padding: 14px;
}

.task-stage-group {
  display: grid;
  gap: 8px;
}

.task-stage-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 4px 2px;
  color: var(--text);
}

.task-stage-head b {
  font-size: 13px;
}

.task-row {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 12px;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  gap: 11px;
  text-align: left;
}

.task-row:hover {
  border-color: #b8c7f5;
}

.task-row b {
  display: block;
  font-size: 13px;
}

.task-row small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
  margin-top: 4px;
}

.task-check {
  width: 24px;
  height: 24px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  background: #fff;
  cursor: pointer;
}

.task-check.done {
  border-color: var(--green);
  background: var(--green);
}

.task-side {
  display: grid;
  justify-items: end;
  gap: 7px;
}

.task-main {
  border: 0;
  background: transparent;
  padding: 0;
  text-align: left;
  cursor: pointer;
}

.board.padded {
  padding: 14px;
}

.column {
  background: #eef1f5;
  border-radius: 8px;
  padding: 10px;
  min-height: 260px;
}

.column h3 { margin: 2px 2px 10px; font-size: 13px; }

.task {
  background: #fff;
  border: 1px solid #dde2ea;
  border-radius: 8px;
  padding: 11px;
  margin-bottom: 9px;
}

.task b { font-size: 12px; }
.task p { margin: 7px 0 0; font-size: 11px; color: var(--muted); }

.form {
  display: grid;
  gap: 10px;
}

.form.padded {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}

.field label {
  display: block;
  margin-bottom: 5px;
  font-size: 11px;
  font-weight: 800;
  color: #475467;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 10px;
  background: #fff;
}

.field textarea { min-height: 86px; resize: vertical; }

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(17, 24, 39, .44);
}

.modal {
  width: min(640px, 100%);
  max-height: min(760px, calc(100vh - 36px));
  overflow: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(15, 23, 42, .28);
}

.modal-head,
.modal-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}

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

.modal-foot {
  border-top: 1px solid var(--line);
  border-bottom: 0;
  justify-content: flex-end;
}

.modal-body {
  display: grid;
  gap: 12px;
  padding: 16px;
}

.modal-body label {
  display: grid;
  gap: 6px;
  color: #475467;
  font-size: 12px;
  font-weight: 800;
}

.modal-body input,
.modal-body textarea,
.modal-body select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 11px;
  background: #fff;
  color: var(--text);
}

.field-help {
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.45;
}

.modal-body textarea {
  min-height: 112px;
  resize: vertical;
}

.feed {
  display: grid;
  gap: 14px;
}

.feed-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 16px;
}

.feed-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.feed-card h2 {
  margin: 12px 0 7px;
  font-size: 17px;
}

.feed-card p {
  margin: 0;
  color: #475467;
  font-size: 13px;
  line-height: 1.6;
}

.comment-list {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.comment-list.roomy {
  padding: 0 16px 16px;
}

.comment {
  border: 1px solid #edf0f4;
  border-radius: 8px;
  padding: 10px;
  background: var(--surface-2);
}

.comment span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 11px;
}

.inline-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  margin-top: 12px;
}

.inline-form input {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
}

.row-actions {
  display: flex;
  gap: 6px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.ai-task-list {
  display: grid;
  gap: 12px;
}

.ai-task-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
  padding: 12px;
  display: grid;
  gap: 10px;
}

.history-list {
  display: grid;
  gap: 10px;
  padding: 14px;
}

.history-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 12px;
}

.history-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.history-item b {
  display: block;
  margin: 9px 0 5px;
  font-size: 13px;
}

.history-item p {
  margin: 0;
  color: #475467;
  font-size: 12px;
  line-height: 1.55;
}

.history-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 8px;
  color: var(--muted);
  font-size: 11px;
}

.history-meta a {
  color: var(--primary);
  text-decoration: none;
  word-break: break-all;
}

.compact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.action-guide {
  margin-bottom: 16px;
}

.stage-dashboard {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  padding: 14px 16px;
}

.stat-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
  padding: 14px 12px;
  text-align: center;
}

.stat-card.primary {
  border-color: #b8c7f5;
  background: var(--primary-soft);
}

.stat-card.warn {
  border-color: #f5c28b;
  background: var(--amber-soft);
}

.stat-value {
  display: block;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 12px;
  color: var(--muted);
}

.overview-body {
  padding: 20px 24px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--text);
}

.overview-body h2 {
  font-size: 20px;
  margin: 24px 0 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--line);
}

.overview-body h2:first-child {
  margin-top: 0;
}

.overview-body h3 {
  font-size: 16px;
  margin: 20px 0 6px;
}

.overview-body h4 {
  font-size: 14px;
  margin: 16px 0 4px;
  color: #475467;
}

.overview-body p {
  margin: 0 0 12px;
}

.overview-body ul,
.overview-body ol {
  margin: 0 0 12px;
  padding-left: 24px;
}

.overview-body li {
  margin-bottom: 4px;
}

.overview-body hr {
  border: none;
  border-top: 1px solid var(--line);
  margin: 20px 0;
}

.overview-body code {
  background: #f2f4f7;
  border-radius: 4px;
  padding: 2px 5px;
  font-size: 13px;
  font-family: "SF Mono", "Fira Code", monospace;
}

.overview-body strong {
  font-weight: 700;
}

.overview-empty {
  color: var(--muted);
  font-style: italic;
}

.overview-edit-wrap {
  padding: 8px;
}

.overview-editor {
  width: 100%;
  min-height: 400px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px 20px;
  font-size: 14px;
  font-family: "SF Mono", "Fira Code", ui-monospace, monospace;
  line-height: 1.65;
  resize: vertical;
  background: #fafbfc;
  color: var(--text);
}

.overview-editor:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .12);
}

.toast {
  display: none;
  position: fixed;
  right: 22px;
  bottom: 22px;
  background: #202733;
  color: #fff;
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 12px;
  box-shadow: 0 12px 34px rgba(0,0,0,.22);
  z-index: 100;
}

.toast.show {
  display: block;
  animation: fade 2.4s both;
}

@keyframes fade {
  0% { opacity: 0; transform: translateY(8px); }
  10%, 80% { opacity: 1; transform: none; }
  100% { opacity: 0; }
}

@media (max-width: 1040px) {
  .workspace-layout, .two-col { grid-template-columns: 1fr; }
  .project-detail-layout { grid-template-columns: 1fr; }
  .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .side-stack { grid-template-columns: 1fr 1fr; }
  .board { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .topbar { padding: 0 16px; }
  .search { display: none; }
  .content { padding: 18px; }
  .page-head { display: block; }
  .actions { margin-top: 12px; }
  .next-grid { grid-template-columns: 1fr; }
  .project-grid { grid-template-columns: 1fr; }
  .side-stack { grid-template-columns: 1fr; }
  .deal-card, .row { grid-template-columns: 1fr; }
  .task-row { grid-template-columns: 24px minmax(0, 1fr); }
  .task-side { justify-items: start; grid-column: 2; }
  .back-button { display: inline-flex; }
  .room-head { align-items: flex-start; }
  .room-logo { width: 64px; height: 64px; }
  .compact-grid, .inline-form { grid-template-columns: 1fr; }
  .stage-dashboard { grid-template-columns: 1fr 1fr; }
}

/* Task detail view */
.task-detail-info { padding: 16px 20px; }
.task-detail-info h2 { margin: 0 0 6px; }
.task-detail-info p { margin: 0 0 10px; color: var(--muted); }
.task-meta { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.task-check.inline { width: 28px; height: 28px; border: 2px solid var(--line); border-radius: 50%; background: transparent; cursor: pointer; font-size: 14px; display: inline-flex; align-items: center; justify-content: center; }
.task-check.inline.done { background: var(--green-soft); border-color: var(--green); color: var(--green); }

/* Deliverable */
.deliverable-link { padding: 8px 20px 16px; }
.deliverable-link a { color: var(--primary); word-break: break-all; }

/* Meeting cards */
.meeting-card { padding: 14px 20px; border-bottom: 1px solid var(--line); }
.meeting-card:last-child { border-bottom: none; }
.meeting-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.meeting-head b { font-size: 14px; }
.meeting-participants { margin-top: 4px; color: var(--muted); }
.meeting-link { margin-top: 4px; }
.meeting-link a { color: var(--primary); font-size: 13px; word-break: break-all; }
.meeting-notes { font-size: 13px; color: var(--muted); margin: 6px 0 0; }
.meeting-actions { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }

/* Checkbox labels in meeting form */
.checkbox-label { display: flex; align-items: center; gap: 8px; padding: 4px 0; font-size: 14px; }
.checkbox-label input[type="checkbox"] { width: 16px; height: 16px; }
fieldset { border: 1px solid var(--line); border-radius: 8px; padding: 12px 16px; margin: 8px 0; }
fieldset legend { font-size: 13px; font-weight: 600; color: var(--muted); }
