:root {
  --ink: #151719;
  --muted: #6b7076;
  --line: rgba(21, 23, 25, 0.14);
  --paper: #f7f8f7;
  --surface: #ffffff;
  --surface-soft: #fbfbfb;
  --field: #ffffff;
  --accent: #1fc7b1;
  --accent-deep: #138c9b;
  --accent-soft: #defaf5;
  --sky: #79caff;
  --sky-soft: #eaf6ff;
  --violet: #8b6cff;
  --violet-soft: #f1ecff;
  --orange: #ff7d38;
  --orange-soft: #fff0e6;
  --red: #ef2435;
  --red-soft: #ffe9ec;
  --olive: #7c9c3a;
  --olive-soft: #eef5dd;
  --charcoal: #3f393c;
  --charcoal-soft: #f1efef;
  --pin-red: #e60023;
  --pin-red-soft: #fff1f3;
  --pin-warm: #fff8f2;
  --pin-pink: #ffe7ec;
  --shadow: 0 22px 46px rgba(21, 23, 25, 0.08);
  --shadow-soft: 0 10px 24px rgba(21, 23, 25, 0.06);
  font-family:
    Inter, Pretendard, "Apple SD Gothic Neo", "Noto Sans KR", system-ui,
    sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  background-image:
    linear-gradient(rgba(21, 23, 25, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(21, 23, 25, 0.035) 1px, transparent 1px),
    linear-gradient(to bottom, #ffffff, #f7f8f7);
  background-size:
    44px 44px,
    44px 44px,
    auto;
}

.auth-gate {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    linear-gradient(135deg, rgba(234, 246, 255, 0.88), rgba(255, 248, 242, 0.9)),
    rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(14px);
}

.auth-gate.hidden {
  display: none;
}

.auth-card {
  width: min(520px, 100%);
  padding: 30px;
  border: 1px solid rgba(21, 23, 25, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
}

.auth-logo {
  display: block;
  width: min(320px, 100%);
  margin-bottom: 22px;
}

.auth-card h1 {
  margin: 0;
  font-size: 32px;
  line-height: 1.08;
  letter-spacing: 0;
}

.auth-card p {
  margin: 12px 0 20px;
  color: var(--muted);
  line-height: 1.6;
}

.auth-card label {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.auth-card .solid-button {
  width: 100%;
  margin-bottom: 14px;
}

.auth-card small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.local-login-panel,
.signup-panel,
.cloud-login-panel {
  display: none;
  margin: 16px 0 14px;
  padding: 16px;
  border: 1px solid rgba(121, 202, 255, 0.36);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(234, 246, 255, 0.86), rgba(255, 255, 255, 0.94));
}

.local-login-panel,
.signup-panel {
  display: grid;
  gap: 10px;
}

.signup-panel {
  margin-top: 10px;
  border-color: #d2d2d2;
  background: #ffffff;
}

.cloud-login-panel.open {
  display: block;
}

.cloud-login-grid,
.cloud-login-actions,
.cloud-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.cloud-login-actions {
  margin-top: 8px;
}

.cloud-login-actions button,
.cloud-actions button {
  width: 100%;
}

.cloud-login-status {
  min-height: 20px;
  margin: 12px 0 0 !important;
  color: var(--ink) !important;
  font-size: 13px;
  font-weight: 800;
}

.password-change-form,
.approval-board {
  display: grid;
  gap: 12px;
  margin-bottom: 14px;
  padding: 14px;
  border: 1px solid #d2d2d2;
  border-radius: 8px;
  background: #ffffff;
}

.password-change-form {
  grid-template-columns: minmax(180px, 0.8fr) repeat(2, minmax(160px, 1fr)) auto;
  align-items: end;
}

.password-change-form h3,
.approval-board h3 {
  margin: 2px 0 0;
  color: var(--ink);
  font-size: 18px;
  font-weight: 900;
  line-height: 1.1;
}

.password-change-form small {
  grid-column: 1 / -1;
  min-height: 18px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.approval-list {
  display: grid;
  gap: 8px;
}

.approval-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid #eeeeee;
  border-radius: 8px;
  background: #f5f5f5;
}

.approval-card strong,
.approval-card span {
  display: block;
}

.approval-card strong {
  color: var(--ink);
  font-size: 14px;
  font-weight: 900;
}

.approval-card span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

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

input[type="password"] {
  -webkit-text-security: disc;
  text-security: disc;
}

button {
  cursor: pointer;
}

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

.sidebar {
  position: sticky;
  top: 0;
  height: 100svh;
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 24px 22px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  border-right: 1px solid rgba(21, 23, 25, 0.12);
  backdrop-filter: blur(16px);
}

.brand {
  display: grid;
  gap: 0;
  padding: 10px 0 16px;
  border-bottom: 1px solid var(--line);
}

.brand-logo {
  display: block;
}

.brand-logo {
  width: 100%;
  max-width: 256px;
  height: auto;
  object-fit: contain;
}

.primary-action,
.solid-button,
.ghost-button {
  min-height: 42px;
  border-radius: 8px;
  border: 1px solid var(--line);
  padding: 0 14px;
  font-weight: 700;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease;
}

.primary-action {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  background: #151719;
  color: var(--ink);
  border-color: #151719;
  color: white;
  box-shadow: none;
}

.solid-button {
  background: #151719;
  color: white;
  border-color: #151719;
  box-shadow: none;
}

.ghost-button {
  background: rgba(255, 255, 255, 0.88);
  border-color: var(--line);
  color: var(--ink);
}

.sidebar .ghost-button {
  color: var(--ink);
  border-color: rgba(108, 153, 180, 0.2);
  background: rgba(255, 255, 255, 0.76);
}

.primary-action:hover,
.solid-button:hover,
.ghost-button:hover {
  transform: translateY(-1px);
  border-color: rgba(21, 23, 25, 0.34);
}

.issue-list {
  display: grid;
  gap: 8px;
}

.workspace-nav {
  display: grid;
  gap: 8px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.workspace-nav-button {
  width: 100%;
  min-height: 38px;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 12px;
  background: #ffffff;
  color: var(--ink);
  font-size: 0.84rem;
  font-weight: 900;
}

.workspace-nav-button.active {
  border-color: #333333;
  border-left: 3px solid var(--accent);
  background: #333333;
  color: #ffffff;
}

.page-hidden {
  display: none !important;
}

body[data-current-page="settings"] .cloud-panel {
  display: block;
}

.issue-link {
  width: 100%;
  text-align: left;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 14px 12px;
  background: transparent;
  color: var(--muted);
}

.issue-link.active {
  background: #ffffff;
  color: var(--ink);
  border-color: rgba(21, 23, 25, 0.14);
  border-left: 3px solid #151719;
}

.issue-link strong,
.issue-link span {
  display: block;
}

.issue-link span {
  margin-top: 4px;
  color: #7895a7;
  font-size: 12px;
}

.sidebar-note {
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  position: relative;
}

.sidebar-note::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 42px;
  height: 2px;
  background: var(--gold, #f1c76a);
}

.sidebar-note p {
  margin: 8px 0 0;
  font-size: 13px;
  line-height: 1.55;
}

.workspace {
  min-width: 0;
  padding: 34px;
}

.topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.topbar h1 {
  margin: 2px 0 0;
  font-size: 58px;
  letter-spacing: 0;
  line-height: 0.94;
  font-weight: 900;
}

.topbar-actions,
.output-actions,
.dialog-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.user-chip {
  display: grid;
  gap: 2px;
  min-width: 150px;
  padding: 8px 12px;
  border: 1px solid rgba(21, 23, 25, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
}

.user-chip strong,
.user-chip span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.user-chip strong {
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
}

.user-chip span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.save-status {
  min-width: 104px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
  text-align: right;
}

.hidden-file-input {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  opacity: 0;
  pointer-events: none;
}

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

.status-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 18px;
}

.status-step {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--muted);
  font-weight: 700;
  box-shadow: none;
}

.status-step.active {
  border-color: #151719;
  background: #151719;
  color: white;
}

.stage-guide {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.7fr) auto;
  gap: 14px;
  align-items: center;
  margin-bottom: 12px;
  padding: 16px;
  border: 1px solid #d2d2d2;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: none;
}

.stage-guide h2 {
  margin: 3px 0 0;
  font-size: 24px;
  line-height: 1;
  font-weight: 900;
}

.stage-guide p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.stage-guide-task {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 12px;
  border: 1px solid #eeeeee;
  border-left: 3px solid #f05b70;
  border-radius: 8px;
  background: #f5f5f5;
}

.stage-guide-task span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.stage-guide-task strong {
  color: var(--ink);
  font-size: 16px;
  font-weight: 900;
  line-height: 1.1;
}

.stage-guide-task p {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
}

.stage-guide .ghost-button {
  white-space: nowrap;
}

.publisher-command {
  display: grid;
  gap: 14px;
  margin-bottom: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.publisher-command-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.42fr);
  gap: 16px;
  align-items: start;
}

.publisher-command-main h2 {
  margin: 3px 0 0;
  color: var(--ink);
  font-size: 22px;
  line-height: 1.1;
  font-weight: 900;
}

.publisher-command-main p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
}

.publisher-next-action {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid #d2d2d2;
  border-left: 3px solid #f05b70;
  border-radius: 8px;
  background: #f5f5f5;
}

.publisher-next-action span,
.publisher-pattern-grid span,
.publisher-output-queue span,
.publisher-progress span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.publisher-next-action strong {
  color: var(--ink);
  font-size: 18px;
  line-height: 1.1;
}

.publisher-next-action p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.45;
}

.publisher-progress {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.publisher-progress strong {
  display: block;
  color: var(--ink);
  font-size: 20px;
  line-height: 1;
}

.progress-track {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #eeeeee;
}

.progress-track span {
  display: block;
  height: 100%;
  min-width: 8px;
  border-radius: inherit;
  background: #f05b70;
}

.publisher-pattern-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.publisher-step-roadmap {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.publisher-step-roadmap button {
  display: grid;
  gap: 6px;
  min-width: 0;
  min-height: 96px;
  padding: 12px;
  text-align: left;
  border-color: #d2d2d2;
  background: #ffffff;
}

.publisher-step-roadmap button.current {
  border-color: #333333;
  border-left: 3px solid #f05b70;
  background: #f5f5f5;
}

.publisher-step-roadmap button.done {
  background: #f5f5f5;
}

.publisher-step-roadmap span {
  color: #f05b70;
  font-size: 11px;
  font-weight: 900;
}

.publisher-step-roadmap button.done span {
  color: #666666;
}

.publisher-step-roadmap strong {
  color: var(--ink);
  font-size: 14px;
  font-weight: 900;
  line-height: 1.2;
}

.publisher-step-roadmap p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
}

.publisher-pattern-grid article {
  min-width: 0;
  padding: 12px;
  border: 1px solid #d2d2d2;
  border-radius: 8px;
  background: #ffffff;
}

.publisher-pattern-grid strong {
  display: block;
  margin-top: 4px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 900;
}

.publisher-pattern-grid p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
}

.publisher-output-queue {
  display: grid;
  grid-template-columns: auto repeat(5, minmax(0, 1fr));
  gap: 8px;
  align-items: stretch;
}

.publisher-output-label {
  display: grid;
  place-items: center start;
  min-width: 76px;
  color: #f05b70;
  font-size: 12px;
  font-weight: 900;
}

.publisher-output-queue button {
  display: grid;
  gap: 5px;
  min-width: 0;
  min-height: 54px;
  text-align: left;
  border-color: #d2d2d2;
  background: #ffffff;
}

.publisher-output-queue button.ready {
  border-color: #333333;
  background: #f5f5f5;
}

.publisher-output-queue strong {
  color: var(--ink);
  font-size: 13px;
  line-height: 1;
}

.publisher-reference-note {
  margin: -2px 0 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.45;
}

.collaboration-panel {
  display: grid;
  grid-template-columns: minmax(240px, 1.2fr) repeat(2, minmax(150px, 0.65fr)) minmax(260px, 1fr);
  gap: 12px;
  margin-bottom: 18px;
}

.my-work-panel {
  margin-bottom: 18px;
  padding: 18px;
  border: 1px solid rgba(31, 199, 177, 0.28);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(223, 250, 245, 0.68), rgba(234, 246, 255, 0.74)),
    rgba(255, 255, 255, 0.9);
}

.my-work-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.my-work-summary div {
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(21, 23, 25, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
}

.my-work-summary span,
.my-work-item span,
.empty-work {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.45;
}

.my-work-summary strong {
  display: block;
  margin-top: 4px;
  color: var(--ink);
  font-size: 24px;
  line-height: 1;
}

.my-work-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.my-work-item {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(31, 199, 177, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
}

.my-work-item strong {
  display: block;
  color: var(--ink);
  font-size: 15px;
  font-weight: 900;
}

.my-work-item p {
  margin: 0;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.55;
}

.empty-work {
  grid-column: 1 / -1;
  margin: 0;
  padding: 14px;
  border: 1px dashed rgba(21, 23, 25, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.solo-step-list {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.solo-step-list .my-work-item {
  align-content: start;
  border-color: #d2d2d2;
}

.solo-step-list .my-work-item.done {
  background: #f5f5f5;
}

.solo-step-list .my-work-item.done strong::after {
  content: "완료";
  color: #666666;
  font-size: 0.72rem;
  font-weight: 800;
}

.solo-step-list .my-work-item.todo {
  border-left: 3px solid #f05b70;
}

.solo-step-list .my-work-item.todo span {
  color: #f05b70;
}

.solo-step-list .my-work-item strong {
  display: flex;
  gap: 6px;
  align-items: baseline;
  flex-wrap: wrap;
}

.solo-step-list .my-work-item p {
  color: #666666;
}

@media (max-width: 1180px) {
  .publisher-step-roadmap {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .publisher-output-queue {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .publisher-output-label {
    grid-column: 1 / -1;
    min-width: 0;
  }

  .solo-step-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .publisher-step-roadmap,
  .publisher-output-queue {
    grid-template-columns: 1fr;
  }

  .solo-step-list {
    grid-template-columns: 1fr;
  }
}

.team-management-panel {
  margin-bottom: 18px;
  padding: 18px;
  border: 1px solid rgba(121, 202, 255, 0.26);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: none;
}

.team-management-panel .section-heading p:last-child {
  max-width: 360px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
}

.staff-operation-note {
  display: grid;
  gap: 5px;
  margin-bottom: 14px;
  padding: 14px;
  border: 1px solid #d2d2d2;
  border-left: 3px solid #f05b70;
  border-radius: 8px;
  background: #ffffff;
}

.staff-operation-note strong {
  color: var(--ink);
  font-size: 14px;
  font-weight: 900;
}

.staff-operation-note p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
}

.workload-board {
  display: grid;
  gap: 12px;
  margin-bottom: 14px;
  padding: 14px;
  border: 1px solid rgba(21, 23, 25, 0.08);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(239, 250, 255, 0.86)),
    rgba(255, 255, 255, 0.9);
}

.workload-board-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
}

.workload-board-head h3 {
  margin: 2px 0 0;
  color: var(--ink);
  font-size: 18px;
  font-weight: 900;
  line-height: 1.2;
}

.workload-board-head span {
  padding: 7px 10px;
  border: 1px solid rgba(31, 199, 177, 0.22);
  border-radius: 999px;
  color: var(--ink);
  background: rgba(223, 250, 245, 0.74);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

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

.workload-card {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 13px;
  border: 1px solid rgba(21, 23, 25, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
}

.workload-card strong {
  display: block;
  color: var(--ink);
  font-size: 14px;
  font-weight: 900;
  line-height: 1.25;
}

.workload-card span,
.workload-card small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.45;
}

.workload-card dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}

.workload-card dl div {
  min-width: 0;
  padding: 8px;
  border-radius: 8px;
  background: rgba(21, 23, 25, 0.04);
}

.workload-card dt {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  line-height: 1.2;
}

.workload-card dd {
  margin: 4px 0 0;
  color: var(--ink);
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
}

.team-management-grid {
  display: grid;
  grid-template-columns: minmax(240px, 0.72fr) minmax(0, 1.28fr);
  gap: 14px;
}

.team-add-form {
  display: grid;
  gap: 10px;
  align-content: start;
  padding: 14px;
  border: 1px solid rgba(21, 23, 25, 0.1);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(234, 246, 255, 0.72), rgba(255, 255, 255, 0.86));
}

.team-add-form h3 {
  margin: 2px 0 0;
  color: var(--ink);
  font-size: 18px;
  font-weight: 900;
  line-height: 1.1;
}

.team-add-form label,
.team-member-card label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.team-roster {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.team-member-card {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(21, 23, 25, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
}

.team-member-card strong,
.team-member-card span,
.team-member-card small {
  display: block;
}

.team-member-card strong {
  color: var(--ink);
  font-size: 14px;
  font-weight: 900;
}

.team-member-card span,
.team-member-card small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.45;
}

.cloud-panel {
  display: none;
  background:
    linear-gradient(135deg, rgba(241, 236, 255, 0.68), rgba(234, 246, 255, 0.68)),
    rgba(255, 255, 255, 0.94);
  border-color: rgba(139, 108, 255, 0.24);
}

.cloud-panel.open,
.cloud-panel:target {
  display: block;
}

.cloud-wizard {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(260px, 0.65fr);
  gap: 14px;
  margin: 16px 0;
  padding: 14px;
  border: 1px solid rgba(121, 202, 255, 0.32);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.cloud-wizard-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.cloud-wizard-steps li {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(21, 23, 25, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
}

.cloud-wizard-steps li > span {
  display: grid;
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  background: var(--charcoal-soft);
  color: var(--charcoal);
  font-size: 12px;
  font-weight: 900;
}

.cloud-wizard-steps strong,
.cloud-wizard-next strong {
  display: block;
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
  line-height: 1.25;
}

.cloud-wizard-steps small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.cloud-wizard-steps li.active {
  border-color: rgba(31, 199, 177, 0.52);
  background: linear-gradient(135deg, rgba(223, 250, 245, 0.9), rgba(255, 255, 255, 0.86));
}

.cloud-wizard-steps li.active > span {
  background: var(--accent);
  color: #ffffff;
}

.cloud-wizard-steps li.done {
  border-color: rgba(124, 156, 58, 0.36);
  background: rgba(238, 245, 221, 0.78);
}

.cloud-wizard-steps li.done > span {
  background: var(--olive);
  color: #ffffff;
}

.cloud-wizard-next {
  display: grid;
  align-content: center;
  gap: 10px;
  min-width: 0;
  padding: 14px;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(234, 246, 255, 0.86), rgba(255, 248, 242, 0.86));
}

.cloud-wizard-next p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.55;
}

.cloud-wizard-next button {
  width: 100%;
}

.cloud-status {
  margin-top: 14px;
  padding: 14px 16px;
  border: 1px solid rgba(139, 108, 255, 0.26);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.76);
}

.cloud-actions {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 12px;
}

.cloud-status strong {
  display: block;
  color: var(--ink);
  font-size: 14px;
  font-weight: 900;
}

.cloud-status p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.cloud-status.ready {
  border-color: rgba(0, 196, 154, 0.42);
  background: linear-gradient(135deg, rgba(223, 255, 249, 0.8), rgba(255, 255, 255, 0.78));
}

.collab-card {
  min-width: 0;
  padding: 16px;
  border: 1px solid rgba(121, 202, 255, 0.26);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: none;
}

.collab-card h2,
.collab-card strong {
  display: block;
  margin: 2px 0 0;
  color: var(--ink);
  font-size: 24px;
  line-height: 1.05;
  font-weight: 900;
}

.collab-card p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.permission-tags,
.team-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.permission-tags span,
.team-list span {
  min-width: 0;
  padding: 7px 9px;
  border: 1px solid rgba(21, 23, 25, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.team-list span {
  display: grid;
  border-radius: 8px;
}

.team-list strong {
  font-size: 12px;
}

.overview-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}

.metric {
  width: 100%;
  text-align: left;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: none;
  position: relative;
  overflow: hidden;
}

.metric-button {
  cursor: pointer;
}

.metric-button:hover {
  border-color: rgba(19, 140, 155, 0.45);
  transform: translateY(-1px);
}

.metric::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: #151719;
}

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

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

.metric strong {
  margin-top: 8px;
  font-size: 28px;
  line-height: 1;
  font-weight: 900;
}

.issue-editor,
.content-panel,
.inspector,
.outputs {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(12px);
}

.issue-editor {
  padding: 22px;
  margin-bottom: 18px;
}

.planning-panel {
  background:
    linear-gradient(135deg, rgba(222, 250, 245, 0.74), rgba(241, 236, 255, 0.62)),
    rgba(255, 255, 255, 0.94);
  border-color: rgba(31, 199, 177, 0.28);
}

.integration-panel {
  background:
    linear-gradient(135deg, rgba(234, 246, 255, 0.74), rgba(255, 248, 242, 0.68)),
    rgba(255, 255, 255, 0.94);
  border-color: rgba(121, 202, 255, 0.32);
}

.integration-panel .section-heading h2::after {
  background: var(--sky);
}

.canva-status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-top: 16px;
  padding: 14px 16px;
  border: 1px solid rgba(31, 199, 177, 0.28);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.canva-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.canva-advanced {
  margin-top: 12px;
  border: 1px solid rgba(21, 23, 25, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.68);
}

.canva-advanced summary {
  cursor: pointer;
  padding: 13px 14px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
  list-style-position: inside;
}

.canva-advanced[open] {
  border-color: rgba(121, 202, 255, 0.34);
  background: rgba(247, 252, 255, 0.88);
}

.canva-advanced > .ghost-button {
  margin: 0 0 12px 14px;
}

.canva-advanced .canva-actions {
  margin: 0;
  padding: 0 14px 10px;
}

.canva-advanced .canva-connect-guide,
.canva-advanced .canva-oauth-status {
  margin: 0 14px 14px;
}

.canva-connect-guide {
  display: grid;
  gap: 12px;
  margin-top: 12px;
  padding: 14px;
  border: 1px solid rgba(121, 202, 255, 0.28);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(239, 250, 255, 0.9), rgba(255, 255, 255, 0.84)),
    rgba(255, 255, 255, 0.9);
}

.canva-guide-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
}

.canva-guide-head h3 {
  margin: 2px 0 0;
  color: var(--ink);
  font-size: 17px;
  font-weight: 900;
  line-height: 1.2;
}

.canva-guide-head a {
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 3px;
  white-space: nowrap;
}

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

.canva-guide-grid div {
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(21, 23, 25, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
}

.canva-guide-grid strong {
  display: block;
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
}

.canva-guide-grid p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.55;
}

.canva-guide-grid code {
  display: inline-block;
  max-width: 100%;
  margin: 2px 2px 0 0;
  padding: 3px 5px;
  border-radius: 6px;
  color: var(--ink);
  background: rgba(21, 23, 25, 0.06);
  font-size: 11px;
  overflow-wrap: anywhere;
}

.research-board {
  margin-bottom: 18px;
  padding: 18px;
  border: 1px solid rgba(31, 199, 177, 0.24);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(223, 250, 245, 0.66), rgba(255, 255, 255, 0.92) 46%, rgba(255, 246, 229, 0.62)),
    rgba(255, 255, 255, 0.88);
}

.research-board .section-heading p:last-child {
  max-width: 520px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.55;
}

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

.research-card {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 15px;
  border: 1px solid rgba(21, 23, 25, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
}

.research-card.priority {
  border-color: rgba(31, 199, 177, 0.44);
  background: rgba(244, 255, 252, 0.94);
}

.research-card span {
  color: var(--green);
  font-size: 11px;
  font-weight: 900;
  line-height: 1.2;
}

.research-card h3 {
  margin: 0;
  color: var(--ink);
  font-size: 18px;
  font-weight: 900;
  line-height: 1.22;
}

.research-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.55;
}

.research-card a {
  justify-self: start;
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.canva-job-status {
  margin-top: 12px;
  padding: 14px 16px;
  border: 1px solid rgba(121, 202, 255, 0.34);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.canva-job-status strong {
  display: block;
  color: #151719;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.5;
}

.canva-job-status ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 6px 14px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.canva-job-status li {
  min-width: 0;
  overflow-wrap: anywhere;
}

.canva-job-status.working {
  border-color: rgba(121, 202, 255, 0.46);
  background: linear-gradient(135deg, rgba(234, 246, 255, 0.9), rgba(255, 255, 255, 0.74));
}

.canva-job-status.success {
  border-color: rgba(0, 196, 154, 0.42);
  background: linear-gradient(135deg, rgba(223, 255, 249, 0.8), rgba(255, 255, 255, 0.78));
}

.canva-job-status.warning {
  border-color: rgba(255, 181, 82, 0.5);
  background: linear-gradient(135deg, rgba(255, 247, 225, 0.92), rgba(255, 255, 255, 0.76));
}

.canva-job-status.error {
  border-color: rgba(239, 35, 60, 0.36);
  background: linear-gradient(135deg, rgba(255, 238, 241, 0.94), rgba(255, 255, 255, 0.76));
}

.canva-status strong {
  display: block;
  margin-bottom: 4px;
  color: #151719;
  font-size: 14px;
  font-weight: 900;
}

.canva-status p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.canva-status a {
  flex: 0 0 auto;
  padding: 10px 13px;
  border-radius: 8px;
  background: #151719;
  color: white;
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
}

.canva-status.connected {
  border-color: rgba(0, 196, 154, 0.42);
  background:
    linear-gradient(135deg, rgba(223, 255, 249, 0.8), rgba(255, 255, 255, 0.78));
}

.ai-request-status {
  margin: 14px 0 0;
  padding: 12px 14px;
  border: 1px solid rgba(121, 202, 255, 0.42);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.68);
  color: var(--muted);
  font-weight: 700;
}

.canva-oauth-status {
  margin-top: 16px;
  padding: 14px 16px;
  border: 1px solid rgba(121, 202, 255, 0.34);
  border-radius: 8px;
  background: rgba(244, 250, 255, 0.72);
}

.canva-oauth-status strong {
  display: block;
  margin-bottom: 4px;
  color: #151719;
  font-size: 14px;
  font-weight: 900;
}

.canva-oauth-status p,
.canva-oauth-status small {
  display: block;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.canva-oauth-status.connected {
  border-color: rgba(0, 196, 154, 0.42);
  background:
    linear-gradient(135deg, rgba(223, 255, 249, 0.8), rgba(255, 255, 255, 0.78));
}

.planning-panel .section-heading h2::after {
  background: var(--accent);
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}

.section-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.section-heading h2 {
  margin: 2px 0 0;
  font-size: 23px;
  line-height: 1;
  font-weight: 900;
}

.section-heading h2::after {
  content: "";
  display: block;
  width: 48px;
  height: 1px;
  margin-top: 8px;
  background: #151719;
}

.section-heading.compact {
  margin-bottom: 10px;
}

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

.planning-grid .wide {
  grid-column: span 2;
}

.field-grid .wide {
  grid-column: span 2;
}

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  outline: 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

input,
select {
  min-height: 42px;
  padding: 0 12px;
}

textarea {
  min-height: 90px;
  padding: 12px;
  resize: vertical;
  line-height: 1.6;
}

input:focus,
textarea:focus,
select:focus {
  border-color: #151719;
  box-shadow: 0 0 0 3px rgba(21, 23, 25, 0.08);
}

.content-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 18px;
  align-items: start;
  margin-bottom: 18px;
}

.content-panel,
.inspector,
.outputs {
  padding: 22px;
}

.outputs {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 248, 250, 0.94)),
    linear-gradient(135deg, rgba(230, 0, 35, 0.04), rgba(255, 248, 242, 0.48));
  border-color: rgba(230, 0, 35, 0.14);
}

.outputs .section-heading h2::after {
  background: var(--pin-red);
}

.outputs .eyebrow {
  color: var(--pin-red);
}

.outputs .solid-button {
  background: var(--pin-red);
  border-color: var(--pin-red);
  box-shadow: 0 12px 26px rgba(230, 0, 35, 0.18);
}

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

.story-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: none;
}

.story-header {
  display: grid;
  grid-template-columns: minmax(150px, 1.2fr) minmax(130px, 0.7fr) 40px;
  gap: 10px;
  padding: 12px;
  background: #ffffff;
  border-bottom: 1px solid var(--line);
}

.icon-button {
  width: 40px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff7fa;
  color: var(--rose);
  font-weight: 800;
}

.story-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 12px;
}

.story-body .wide {
  grid-column: 1 / -1;
}

.card-role {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
  font-weight: 700;
}

.card-production-note {
  display: grid;
  gap: 5px;
  margin: 0 14px 14px;
  padding: 12px;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(222, 250, 245, 0.68), rgba(234, 246, 255, 0.72));
  border: 1px solid rgba(19, 140, 155, 0.2);
}

.card-production-note strong {
  color: var(--ink);
  font-size: 12px;
}

.card-production-note span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.photo-uploader {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px dashed rgba(19, 140, 155, 0.38);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(222, 250, 245, 0.82), rgba(234, 246, 255, 0.7)),
    #ffffff;
}

.photo-uploader-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.photo-uploader-head strong,
.photo-uploader-head span {
  display: block;
}

.photo-uploader-head strong {
  color: var(--ink);
  font-size: 15px;
}

.photo-uploader-head span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.photo-count-badge {
  flex: 0 0 auto;
  min-width: 42px;
  padding: 6px 9px;
  border-radius: 999px;
  background: #151719;
  color: white !important;
  text-align: center;
  font-weight: 900;
}

.photo-drop {
  min-height: 64px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(21, 23, 25, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.8);
  color: var(--ink);
  cursor: pointer;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease;
}

.photo-drop:hover {
  transform: translateY(-1px);
  border-color: rgba(19, 140, 155, 0.55);
  background: #ffffff;
}

.photo-drop span {
  font-weight: 900;
}

.photo-input {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  opacity: 0;
  pointer-events: none;
}

.photo-file-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  min-height: 28px;
  align-items: center;
}

.photo-empty {
  color: var(--muted);
  font-size: 12px;
}

.photo-chip {
  max-width: 100%;
  padding: 6px 9px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid rgba(21, 23, 25, 0.12);
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.focus-pulse {
  animation: focusPulse 1300ms ease;
}

@keyframes focusPulse {
  0% {
    outline: 0 solid rgba(31, 199, 177, 0);
    box-shadow: var(--shadow-soft);
  }

  35% {
    outline: 4px solid rgba(31, 199, 177, 0.3);
    box-shadow: 0 18px 38px rgba(19, 140, 155, 0.18);
  }

  100% {
    outline: 0 solid rgba(31, 199, 177, 0);
    box-shadow: var(--shadow-soft);
  }
}

.checklist {
  display: grid;
  gap: 8px;
}

.check-item {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 9px;
  align-items: start;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.check-item input {
  width: 18px;
  min-height: 18px;
  margin-top: 2px;
  accent-color: var(--accent);
}

.check-item span {
  line-height: 1.45;
}

.output-tabs {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}

.tab-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding: 9px;
  border: 1px solid rgba(230, 0, 35, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.54);
}

.tab-group > span {
  min-width: 42px;
  color: var(--pin-red);
  font-size: 12px;
  font-weight: 900;
}

.outputs .tab {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(230, 0, 35, 0.12);
}

.outputs .tab.active {
  background: var(--pin-red);
  border-color: var(--pin-red);
  color: white;
}

.tab {
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--muted);
  font-weight: 800;
  backdrop-filter: blur(10px);
}

.tab.active {
  background: #151719;
  color: white;
  border-color: #151719;
  box-shadow: none;
}

.output-area {
  display: grid;
  gap: 10px;
}

.hidden {
  display: none !important;
}

.preview-purpose,
.canva-steps {
  margin-bottom: 12px;
  padding: 14px;
  border: 1px solid rgba(230, 0, 35, 0.12);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(255, 248, 242, 0.76)),
    rgba(255, 255, 255, 0.9);
}

.preview-purpose strong {
  display: block;
  color: var(--pin-red);
  font-size: 14px;
}

.preview-purpose p {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.canva-steps {
  display: grid;
  grid-template-columns: minmax(180px, 0.55fr) minmax(0, 1fr);
  gap: 14px;
  align-items: center;
}

.canva-steps h3 {
  margin: 3px 0 0;
  font-size: 18px;
}

.canva-steps ol {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: canva-step;
}

.canva-steps li {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(21, 23, 25, 0.08);
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.25;
}

.canva-steps li::before {
  counter-increment: canva-step;
  content: counter(canva-step);
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: var(--pin-red);
  color: white;
  font-size: 11px;
  font-weight: 900;
}

.preview-board {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin: 4px 0 14px;
  padding: 14px;
  border: 1px solid rgba(230, 0, 35, 0.1);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(255, 247, 249, 0.72)),
    radial-gradient(circle at top right, rgba(230, 0, 35, 0.07), transparent 28%);
}

.draft-board {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
  margin-bottom: 12px;
}

.draft-card {
  position: relative;
  min-height: 280px;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto auto;
  gap: 12px;
  padding: 18px;
  border: 1px solid rgba(230, 0, 35, 0.12);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 248, 250, 0.9)),
    radial-gradient(circle at top right, rgba(230, 0, 35, 0.08), transparent 34%);
  overflow: hidden;
}

.draft-card-index {
  position: absolute;
  top: 14px;
  right: 14px;
  color: rgba(21, 23, 25, 0.1);
  font-size: 46px;
  line-height: 1;
  font-weight: 900;
}

.draft-card-main {
  position: relative;
  z-index: 1;
}

.draft-card-main h3 {
  max-width: 82%;
  margin: 8px 0 12px;
  color: var(--ink);
  font-size: 24px;
  line-height: 1.14;
}

.draft-card-main p {
  margin: 0;
  color: #2d3033;
  line-height: 1.62;
  font-weight: 700;
}

.draft-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.draft-card-meta span {
  padding: 6px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(21, 23, 25, 0.08);
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.draft-card-photo {
  padding: 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(21, 23, 25, 0.08);
}

.draft-card-photo strong,
.draft-card-photo small {
  display: block;
}

.draft-card-photo strong {
  color: var(--pin-red);
  font-size: 12px;
}

.draft-card-photo p {
  margin: 5px 0;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.draft-card-photo small {
  color: var(--muted);
  line-height: 1.45;
}

.card-editor-board {
  display: grid;
  gap: 14px;
  margin-bottom: 12px;
}

.card-edit-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: none;
}

.card-edit-top,
.card-edit-actions,
.card-edit-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.card-edit-top {
  margin-bottom: 16px;
}

.card-edit-top h3 {
  margin: 4px 0 0;
  font-size: 22px;
}

.card-edit-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.card-edit-badge {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(121, 202, 255, 0.14);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.card-edit-badge.is-active {
  background: rgba(90, 137, 204, 0.14);
  color: var(--accent-deep);
}

.card-reset-button {
  min-height: 36px;
}

.card-edit-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.card-edit-grid .wide {
  grid-column: 1 / -1;
}

.card-edit-meta {
  margin-top: 12px;
  justify-content: flex-start;
  flex-wrap: wrap;
}

.card-edit-meta span {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(234, 241, 251, 0.9);
  color: var(--accent-deep);
  font-size: 12px;
  font-weight: 700;
}

.preview-card {
  position: relative;
  min-height: 390px;
  aspect-ratio: 4 / 5;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(230, 0, 35, 0.12);
  box-shadow:
    0 14px 34px rgba(230, 0, 35, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.42);
  transition:
    transform 220ms ease,
    box-shadow 220ms ease,
    border-color 220ms ease;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.36), rgba(255, 255, 255, 0.04)),
    linear-gradient(150deg, #ffffff 0%, #f3efff 24%, #e9f7ff 52%, #dffaf4 78%, #fff6dd 100%);
}

.preview-card:hover {
  transform: translateY(-6px);
  border-color: rgba(230, 0, 35, 0.28);
  box-shadow:
    0 26px 56px rgba(230, 0, 35, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.42);
}

.preview-card.is-cover {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.68), rgba(255, 255, 255, 0.18)),
    radial-gradient(circle at top left, rgba(121, 202, 255, 0.32), transparent 28%),
    linear-gradient(150deg, #ffffff 0%, #eaf6ff 34%, #defaf5 68%, #fff8f2 100%);
  color: var(--ink);
}

.preview-card.is-closing {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.16)),
    radial-gradient(circle at top right, rgba(187, 214, 122, 0.32), transparent 26%),
    linear-gradient(150deg, #ffffff 0%, #f7fbef 38%, #eaf6ff 72%, #fff8f2 100%);
  color: var(--ink);
}

.preview-card::before {
  content: "구성 검토용";
  position: absolute;
  top: 52px;
  right: 16px;
  z-index: 2;
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(21, 23, 25, 0.08);
  color: rgba(21, 23, 25, 0.5);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0;
  pointer-events: none;
}

.preview-card-inner::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.28), transparent 26%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 34%);
  pointer-events: none;
}

.preview-card::selection,
.preview-card *::selection {
  background: rgba(230, 0, 35, 0.18);
}

.preview-card::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 108px;
  height: 1px;
  background: rgba(230, 0, 35, 0.14);
}

.preview-card.is-cover::after,
.preview-card.is-closing::after {
  background: rgba(255, 255, 255, 0.2);
}

.preview-card-inner {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 18px 18px 18px;
}

.preview-index {
  position: absolute;
  right: 18px;
  top: 54px;
  font-size: 64px;
  line-height: 0.9;
  font-weight: 900;
  color: rgba(230, 0, 35, 0.08);
  letter-spacing: 0;
}

.preview-card.is-cover .preview-index,
.preview-card.is-closing .preview-index {
  color: rgba(21, 23, 25, 0.08);
}

.preview-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 11px;
  font-weight: 900;
  color: rgba(21, 23, 25, 0.56);
  text-transform: uppercase;
}

.preview-card.is-cover .preview-meta,
.preview-card.is-closing .preview-meta {
  color: rgba(21, 23, 25, 0.58);
}

.preview-tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.68);
  color: var(--ink);
  border: 1px solid rgba(230, 0, 35, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.preview-card.is-cover .preview-tag,
.preview-card.is-closing .preview-tag {
  background: rgba(255, 255, 255, 0.82);
  color: var(--ink);
  border-color: rgba(21, 23, 25, 0.1);
}

.preview-copy {
  display: grid;
  gap: 12px;
  max-width: 88%;
  padding: 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(21, 23, 25, 0.06);
  box-shadow: 0 12px 28px rgba(21, 23, 25, 0.06);
}

.preview-card.layout-cover .preview-copy,
.preview-card.layout-closing .preview-copy {
  max-width: 92%;
}

.preview-card.layout-feature .preview-copy {
  margin-top: auto;
  max-width: 78%;
}

.preview-card.layout-quote .preview-copy {
  max-width: 74%;
  padding-left: 12px;
  border-left: 3px solid rgba(139, 108, 255, 0.34);
}

.preview-card.layout-info .preview-copy {
  max-width: 72%;
  gap: 14px;
}

.preview-card.layout-note .preview-copy {
  max-width: 70%;
}

.preview-copy h3,
.preview-copy p {
  margin: 0;
}

.preview-copy h3 {
  font-size: 36px;
  line-height: 0.98;
  font-weight: 900;
  letter-spacing: 0;
  text-wrap: balance;
  max-width: 10ch;
}

.preview-copy p {
  font-size: 13px;
  line-height: 1.62;
  color: rgba(21, 23, 25, 0.78);
  max-width: 26ch;
}

.preview-card.layout-cover .preview-copy h3,
.preview-card.layout-closing .preview-copy h3 {
  max-width: 9ch;
  font-size: 40px;
}

.preview-card.layout-feature .preview-copy h3 {
  font-size: 38px;
  max-width: 8ch;
}

.preview-card.layout-quote .preview-copy h3 {
  font-size: 34px;
  max-width: 8ch;
}

.preview-card.layout-info .preview-copy h3 {
  font-size: 30px;
  max-width: 11ch;
}

.preview-card.layout-note .preview-copy h3 {
  font-size: 30px;
}

.preview-card.is-cover .preview-copy p,
.preview-card.is-closing .preview-copy p {
  color: rgba(21, 23, 25, 0.78);
}

.preview-card.layout-cover .preview-copy p,
.preview-card.layout-closing .preview-copy p {
  font-size: 14px;
  max-width: 28ch;
}

.preview-card.layout-quote .preview-copy p {
  font-size: 15px;
  line-height: 1.72;
}

.preview-card.layout-info .preview-copy p {
  font-size: 12px;
  line-height: 1.55;
  max-width: 24ch;
}

.preview-card.layout-note .preview-copy p {
  font-size: 14px;
  line-height: 1.7;
}

.preview-footer {
  display: grid;
  gap: 10px;
  padding-top: 16px;
}

.preview-card.layout-cover .preview-footer,
.preview-card.layout-closing .preview-footer {
  padding-top: 28px;
}

.preview-card.layout-feature .preview-footer {
  margin-top: 20px;
}

.preview-card.layout-info .preview-footer {
  margin-top: auto;
}

.preview-note {
  font-size: 11px;
  line-height: 1.55;
  color: var(--muted);
  max-width: 26ch;
}

.preview-foot-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: end;
}

.preview-photo-label {
  display: grid;
  gap: 5px;
}

.preview-photo-label strong {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(21, 23, 25, 0.48);
}

.preview-card.is-cover .preview-photo-label strong,
.preview-card.is-closing .preview-photo-label strong {
  color: rgba(255, 255, 255, 0.64);
}

.preview-accent {
  width: 78px;
  height: 78px;
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(230, 0, 35, 0.92), rgba(255, 125, 143, 0.78), rgba(255, 194, 132, 0.74));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.34),
    0 16px 28px rgba(230, 0, 35, 0.12);
}

.preview-card.is-cover .preview-accent,
.preview-card.is-closing .preview-accent {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0.06));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 10px 18px rgba(0, 0, 0, 0.12);
}

.canva-note {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 241, 243, 0.92), rgba(255, 248, 242, 0.72));
  padding: 14px 12px 0;
  border-radius: 8px;
}

.canva-note strong {
  display: block;
  margin-bottom: 6px;
}

.canva-note p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

#outputText {
  min-height: 360px;
  background: #151719;
  color: #f7f8f7;
  border-color: #151719;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.preview-card.tone-orange {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.26), rgba(255, 255, 255, 0.04)),
    linear-gradient(150deg, #ffffff 0%, #fff5ed 36%, #fff8f2 100%);
}

.preview-card.tone-orange .preview-tag {
  background: rgba(255, 125, 56, 0.12);
  color: var(--orange);
}

.preview-card.tone-orange .preview-accent {
  background: linear-gradient(145deg, rgba(255, 125, 56, 0.96), rgba(255, 194, 132, 0.9));
}

.preview-card.tone-blue {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0.04)),
    linear-gradient(150deg, #ffffff 0%, #f2f7ff 40%, #fff8fb 100%);
}

.preview-card.tone-blue .preview-tag {
  background: rgba(90, 137, 204, 0.12);
  color: var(--accent-deep);
}

.preview-card.tone-blue .preview-accent {
  background: linear-gradient(145deg, rgba(90, 137, 204, 0.96), rgba(121, 202, 255, 0.9));
}

.preview-card.tone-red {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0.04)),
    linear-gradient(150deg, #ffffff 0%, #fff1f3 40%, #ffe7ec 100%);
}

.preview-card.tone-red .preview-tag {
  background: rgba(239, 36, 53, 0.1);
  color: var(--red);
}

.preview-card.tone-red .preview-accent {
  background: linear-gradient(145deg, rgba(230, 0, 35, 0.96), rgba(255, 125, 143, 0.86));
}

.preview-card.tone-olive {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0.04)),
    linear-gradient(150deg, #ffffff 0%, #f3f7e8 42%, #fff8f2 100%);
}

.preview-card.tone-olive .preview-tag {
  background: rgba(124, 156, 58, 0.12);
  color: var(--olive);
}

.preview-card.tone-olive .preview-accent {
  background: linear-gradient(145deg, rgba(124, 156, 58, 0.92), rgba(187, 214, 122, 0.86));
}

.preview-card.tone-charcoal {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.04)),
    linear-gradient(150deg, #f5f3f3 0%, #ece9e9 46%, #f7f5f5 100%);
}

.preview-card.tone-charcoal .preview-tag {
  background: rgba(63, 57, 60, 0.08);
  color: var(--ink);
}

.preview-card.tone-charcoal .preview-accent {
  background: linear-gradient(145deg, rgba(63, 57, 60, 0.92), rgba(108, 153, 180, 0.72));
}

#newIssueDialog {
  border: 0;
  border-radius: 8px;
  padding: 0;
  box-shadow: var(--shadow);
}

#newIssueDialog::backdrop {
  background: rgba(24, 50, 69, 0.26);
}

.dialog-panel {
  width: min(460px, 92vw);
  display: grid;
  gap: 16px;
  padding: 24px;
  background: white;
  border-top: 4px solid var(--sky);
}

.dialog-panel h2 {
  margin: 0;
}

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

  .sidebar {
    position: static;
    height: auto;
  }

  .issue-list {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  }

  .sidebar-note {
    margin-top: 0;
  }

  .content-layout,
  .field-grid,
  .stage-guide,
  .collaboration-panel,
  .my-work-summary,
  .my-work-list,
  .workload-grid,
  .research-grid,
  .team-management-grid,
  .canva-guide-grid,
  .cloud-wizard,
  .overview-grid {
    grid-template-columns: 1fr 1fr;
  }

  .cloud-wizard-steps {
    grid-template-columns: 1fr 1fr;
  }

  .planning-grid .wide {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  .workspace {
    padding: 20px;
  }

  .topbar,
  .section-heading {
    display: grid;
  }

  .topbar-actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .status-strip,
  .overview-grid,
  .field-grid,
  .content-layout,
  .stage-guide,
  .collaboration-panel,
  .my-work-summary,
  .my-work-list,
  .workload-grid,
  .research-grid,
  .team-management-grid,
  .team-roster,
  .cloud-wizard,
  .canva-guide-grid,
  .cloud-wizard-steps,
  .canva-steps,
  .canva-steps ol,
  .story-body,
  .story-header,
  .card-edit-grid {
    grid-template-columns: 1fr;
  }

  .workload-board-head {
    display: grid;
  }

  .canva-guide-head {
    display: grid;
    align-items: start;
  }

  .planning-grid .wide {
    grid-column: auto;
  }

  .status-strip {
    display: flex;
    overflow-x: auto;
  }

  .status-step {
    min-width: 132px;
  }
}

/* SMCSC 업무형 UX 테마: 흰색/회색 + 진회색 선택 + 포인트 레드 */
:root {
  --ink: #222222;
  --muted: #666666;
  --line: #d2d2d2;
  --paper: #ffffff;
  --surface: #ffffff;
  --surface-soft: #f5f5f5;
  --field: #ffffff;
  --accent: #f05b70;
  --accent-deep: #d94a5f;
  --accent-soft: #fff0f2;
  --sky: #eeeeee;
  --sky-soft: #f5f5f5;
  --violet: #666666;
  --violet-soft: #f5f5f5;
  --orange: #f05b70;
  --orange-soft: #fff0f2;
  --red: #f05b70;
  --red-soft: #fff0f2;
  --olive: #666666;
  --olive-soft: #f5f5f5;
  --charcoal: #333333;
  --charcoal-soft: #eeeeee;
  --pin-red: #f05b70;
  --pin-red-soft: #fff0f2;
  --pin-warm: #f5f5f5;
  --pin-pink: #fff0f2;
  --green: #f05b70;
  --rose: #f05b70;
  --gold: #f05b70;
  --shadow: none;
  --shadow-soft: none;
  font-family:
    "SF Pro Text", "SF Pro Display", "SUIT Variable", Pretendard, "Noto Sans KR",
    sans-serif;
}

body {
  background: #ffffff;
  background-image: none;
  color: #222222;
  font-size: 14px;
  line-height: 1.45;
}

.auth-gate {
  background: #f3f3f3;
  backdrop-filter: none;
}

.auth-card,
.cloud-login-panel,
.sidebar,
.workspace,
.issue-editor,
.content-panel,
.checklist-panel,
.outputs,
.collab-card,
.my-work-panel,
.team-management-panel,
.research-board,
.canva-connect-guide,
.canva-job-status,
.canva-status,
.integration-panel,
.cloud-panel,
.stage-guide,
.preview-purpose,
.canva-steps,
.canva-note {
  border: 1px solid #d2d2d2;
  border-radius: 8px;
  background: #ffffff;
  background-image: none;
  box-shadow: none;
}

.auth-card {
  padding: 28px;
}

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

.sidebar {
  background: #f5f5f5;
  color: #222222;
  backdrop-filter: none;
}

.brand {
  border-bottom: 1px solid #d2d2d2;
}

.sidebar-note {
  border-top: 3px solid #f05b70;
}

.issue-card,
.my-work-summary div,
.my-work-item,
.team-member-card,
.workload-card,
.research-card,
.cloud-wizard,
.cloud-wizard-steps li,
.ai-panel,
.ai-request-panel,
.story-card,
.card-edit-card,
.manual-card,
.preview-card,
.draft-card,
.overview-card,
.workload-board,
.canva-advanced,
.canva-guide-grid div {
  border: 1px solid #d2d2d2;
  border-radius: 8px;
  background: #ffffff;
  background-image: none;
  box-shadow: none;
}

.section-heading,
.panel-header,
.output-tabs,
.tab-group,
.cloud-wizard-title,
.workload-board-head {
  border-color: #d2d2d2;
}

.section-heading h2,
.topbar h1,
.auth-card h1,
.issue-title,
.content-panel h2,
.checklist-panel h2,
.outputs h2,
.research-card h3,
.workload-board-head h3,
.canva-guide-head h3 {
  color: #222222;
  letter-spacing: 0;
}

.section-heading h2::after,
.content-panel h2::after,
.checklist-panel h2::after,
.outputs h2::after {
  background: #333333;
}

.eyebrow,
.research-card span,
.tab-group span {
  color: #f05b70;
}

.muted,
.auth-card p,
.auth-card label,
.auth-card small,
.section-heading p,
.issue-card span,
.story-card span,
.research-card p,
.workload-card span,
.workload-card small,
.canva-guide-grid p,
.canva-oauth-status p,
.canva-oauth-status small,
.canva-status p,
.canva-job-status li {
  color: #666666;
}

.primary-action,
.solid-button,
.ghost-button,
.tab,
.status-step,
button {
  min-height: 38px;
  border-radius: 8px;
  border: 1px solid #d2d2d2;
  padding: 8px 12px;
  font-size: 0.84rem;
  font-weight: 800;
  box-shadow: none;
  transform: none;
}

.primary-action,
.solid-button {
  background: #f05b70;
  border-color: #f05b70;
  color: #ffffff;
}

.primary-action:hover,
.solid-button:hover {
  background: #d94a5f;
  border-color: #d94a5f;
}

.ghost-button,
.tab,
.status-step {
  background: #eeeeee;
  color: #333333;
}

.ghost-button:hover,
.tab:hover,
.status-step:hover {
  background: #e2e2e2;
  border-color: #bdbdbd;
}

.tab.active,
.status-step.active,
.issue-card.active,
.cloud-wizard-steps li.active {
  background: #333333;
  border-color: #333333;
  color: #ffffff;
}

.issue-card.active {
  border-left: 3px solid #f05b70;
}

input,
textarea,
select,
.output-text {
  min-height: 38px;
  border: 1px solid #bdbdbd;
  border-radius: 8px;
  background: #ffffff;
  color: #222222;
  font-size: 0.84rem;
  box-shadow: none;
}

input:focus,
textarea:focus,
select:focus {
  border-color: #333333;
  box-shadow: 0 0 0 3px rgba(51, 51, 51, 0.08);
}

label,
.field-label {
  color: #666666;
  font-size: 0.82rem;
}

.status-strip {
  gap: 8px;
}

.stage-guide,
.cloud-wizard-title,
.workload-board,
.canva-advanced[open],
.research-card.priority,
.canva-oauth-status.connected,
.canva-job-status.success,
.canva-job-status.warning,
.canva-job-status.error,
.canva-status.connected {
  border-color: #d2d2d2;
  background: #f5f5f5;
  background-image: none;
}

.canva-job-status.error,
.canva-job-status.warning {
  border-left: 3px solid #f05b70;
}

.permission-tags span,
.team-list span,
.workload-board-head span,
.preview-card .pill,
.story-badge,
.slide-label,
.card-number,
.copy-pill {
  border: 1px solid #d2d2d2;
  border-radius: 8px;
  background: #eeeeee;
  color: #333333;
}

table,
.smcsc-table {
  border-collapse: collapse;
  width: 100%;
  background: #ffffff;
}

th {
  padding: 8px 10px;
  border: 1px solid #d2d2d2;
  background: #eeeeee;
  color: #333333;
  font-size: 0.84rem;
}

td {
  padding: 8px 10px;
  border: 1px solid #d2d2d2;
  color: #222222;
  font-size: 0.84rem;
}

tr:hover td {
  background: #f5f5f5;
}

.preview-card,
.draft-card {
  background: #ffffff !important;
  background-image: none !important;
  color: #222222;
}

.preview-card.cover,
.preview-card.closing,
.draft-card.cover,
.draft-card.closing {
  background: #333333 !important;
  color: #ffffff;
}

.preview-card.cover *,
.preview-card.closing *,
.draft-card.cover *,
.draft-card.closing * {
  color: inherit;
}

.photo-swatch,
.photo-chip,
.preview-card .photo-block {
  border-radius: 8px;
  background: #eeeeee;
  background-image: none;
  border: 1px solid #d2d2d2;
}

.focus-pulse {
  outline-color: rgba(240, 91, 112, 0.32) !important;
}

/* SMCSC 간소화 UX: 현재 단계에 필요한 것만 또렷하게 보이도록 밀도 조정 */
.app-shell {
  grid-template-columns: 264px minmax(0, 1fr);
}

.sidebar {
  gap: 14px;
  padding: 18px 16px;
}

.brand {
  padding: 2px 0 12px;
}

.brand-logo {
  max-width: 226px;
}

.primary-action {
  min-height: 40px;
}

.issue-list {
  gap: 6px;
}

.issue-card {
  padding: 10px 12px;
}

.issue-card span {
  font-size: 0.72rem;
}

.workspace-nav {
  gap: 6px;
  padding: 8px 0;
}

.workspace-nav-button {
  min-height: 36px;
  padding: 8px 10px;
  border-color: #d8d8d8;
  background: #ffffff;
}

.workspace-nav-button:not(.active):hover {
  background: #f5f5f5;
  border-color: #bdbdbd;
}

.sidebar-note {
  margin-top: 0;
  padding-top: 12px;
  border-top-width: 1px;
  font-size: 0.78rem;
}

.sidebar-note::before {
  display: none;
}

.workspace {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 20px 24px 40px;
  border: 0;
  background: transparent;
}

.topbar {
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid #d2d2d2;
}

.topbar h1 {
  font-size: 1.38rem;
}

.topbar-actions {
  gap: 6px;
}

.topbar-actions .ghost-button,
.topbar-actions .solid-button {
  min-height: 34px;
  padding: 6px 10px;
}

.section-heading {
  margin-bottom: 12px;
}

.section-heading h2::after,
.content-panel h2::after,
.checklist-panel h2::after,
.outputs h2::after {
  display: none;
}

.status-strip {
  gap: 6px;
  margin-bottom: 12px;
}

.status-step {
  min-height: 34px;
  padding: 6px 10px;
}

.stage-guide {
  grid-template-columns: minmax(0, 1fr) minmax(240px, 0.65fr) auto;
  gap: 14px;
  padding: 16px;
}

.overview-grid,
.my-work-summary,
.workload-grid,
.research-grid {
  gap: 8px;
}

.metric,
.my-work-summary div {
  padding: 12px;
}

.issue-editor,
.content-panel,
.checklist-panel,
.outputs,
.my-work-panel,
.team-management-panel,
.research-board,
.cloud-panel,
.integration-panel,
.canva-connect-guide,
.canva-job-status,
.canva-status {
  padding: 16px;
  margin-bottom: 14px;
}

.field-grid,
.cloud-login-grid,
.team-management-grid,
.card-edit-grid {
  gap: 12px;
}

.output-tabs {
  gap: 8px;
  padding: 10px;
}

.tab-group {
  gap: 6px;
  padding: 0;
  border: 0;
}

.tab-group > span {
  display: none;
}

.tab {
  min-height: 34px;
  padding: 6px 10px;
}

.story-list {
  gap: 12px;
}

.story-card,
.card-edit-card,
.manual-card,
.preview-card,
.draft-card,
.research-card,
.workload-card,
.team-member-card {
  padding: 14px;
}

.canva-note,
.canva-steps,
.preview-purpose {
  padding: 14px;
}

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

  .workspace {
    padding: 16px;
  }

  .publisher-command-main,
  .publisher-progress,
  .publisher-step-roadmap,
  .publisher-pattern-grid,
  .publisher-output-queue {
    grid-template-columns: 1fr;
  }
}
