:root {
  color-scheme: dark;
  font-family: "Inter", "Pretendard", "Noto Sans KR", "Segoe UI", sans-serif;
  --bg: #0b1017;
  --bg-alt: #0f1622;
  --surface: #131c29;
  --surface-alt: #162131;
  --surface-soft: #1a2738;
  --border: #27374b;
  --text: #eef4fb;
  --text-muted: #9fb0c7;
  --primary: #4da2ff;
  --primary-strong: #2f8df2;
  --primary-soft: rgba(77, 162, 255, 0.18);
  --success: #2dcf9b;
  --warning: #f0b35d;
  --danger: #ff6b7d;
  --radius-sm: 8px;
  --radius-md: 12px;
}

/* Hero neural cosmos upgrade */
.mk-hero {
  isolation: isolate;
  background:
    radial-gradient(760px 420px at 50% 50%, rgba(0, 0, 0, 0.76), rgba(0, 0, 0, 0.28) 56%, transparent 78%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.32), rgba(0, 0, 0, 0.58)),
    url("/assets/hero_bg-D--qcYRt.png") center / cover no-repeat,
    #02040a;
}

.mk-hero::before {
  z-index: 1;
  background:
    radial-gradient(680px 360px at 50% 48%, rgba(0, 0, 0, 0.64), rgba(0, 0, 0, 0.18) 58%, transparent 78%),
    radial-gradient(540px 300px at 12% 32%, rgba(155, 102, 255, 0.16), transparent 70%),
    radial-gradient(520px 280px at 91% 39%, rgba(255, 98, 74, 0.13), transparent 72%);
  opacity: 1;
  mask-image: none;
  animation: mkHeroNebulaBreath 14s ease-in-out infinite alternate;
}

.mk-hero::after {
  left: 8%;
  right: 8%;
  bottom: -28%;
  z-index: 1;
  width: auto;
  height: 46%;
  border-radius: 50% 50% 0 0;
  background:
    radial-gradient(ellipse at 50% 100%, rgba(255, 126, 30, 0.24), rgba(151, 84, 255, 0.08) 44%, transparent 74%);
  filter: blur(0);
  opacity: 0.72;
  animation: mkDomeGlow 11s ease-in-out infinite alternate;
}

.mk-network-field {
  position: absolute;
  inset: 0;
  z-index: 2;
  overflow: hidden;
  pointer-events: none;
}

.mk-network-field::before {
  content: "";
  position: absolute;
  inset: -5%;
  background: url("/assets/hero_bg-D--qcYRt.png") center / cover no-repeat;
  opacity: 0.2;
  filter: saturate(1.18) contrast(1.08);
  mix-blend-mode: screen;
  transform: scale(1.03);
  animation: mkCosmosDrift 26s ease-in-out infinite alternate;
}

.mk-network-field::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 19% 23%, rgba(169, 118, 255, 0.7) 0 2px, transparent 3px),
    radial-gradient(circle at 34% 61%, rgba(72, 185, 255, 0.48) 0 2px, transparent 3px),
    radial-gradient(circle at 73% 30%, rgba(255, 113, 75, 0.52) 0 2px, transparent 3px),
    radial-gradient(circle at 88% 58%, rgba(255, 96, 154, 0.42) 0 2px, transparent 3px);
  opacity: 0.55;
  animation: mkSynapseTwinkle 3.8s ease-in-out infinite alternate;
}

.mk-network-line,
.mk-network-node,
.mk-network-glow,
.mk-dome {
  z-index: 3;
}

.mk-network-line {
  height: 1px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(150, 101, 255, 0.72), rgba(255, 121, 54, 0.28), transparent);
  box-shadow: 0 0 18px rgba(132, 89, 255, 0.34);
  opacity: 0.48;
  animation: mkAxonDrift 9s ease-in-out infinite alternate;
}

.mk-network-line-one {
  left: -8%;
  top: 22%;
  width: 54%;
  transform: rotate(13deg);
}

.mk-network-line-two {
  left: 2%;
  top: 56%;
  width: 48%;
  transform: rotate(-9deg);
}

.mk-network-line-three {
  right: -6%;
  top: 35%;
  width: 42%;
  transform: rotate(-14deg);
}

.mk-network-line-four {
  right: 6%;
  top: 64%;
  width: 34%;
  transform: rotate(20deg);
}

.mk-network-line-five {
  left: 45%;
  top: 18%;
  width: 28%;
  transform: rotate(31deg);
  opacity: 0.3;
}

.mk-network-line-six {
  left: 36%;
  bottom: 19%;
  width: 38%;
  transform: rotate(-21deg);
  opacity: 0.32;
}

.mk-network-node {
  width: 11px;
  height: 11px;
  border: 0;
  border-radius: 999px;
  background: #9b70ff;
  color: transparent;
  font-size: 0;
  box-shadow:
    0 0 18px currentColor,
    0 0 44px currentColor;
  animation: mkNodePulse 4.8s ease-in-out infinite;
}

.mk-network-node.is-purple,
.mk-network-node.is-violet {
  background: #9b70ff;
  color: rgba(155, 112, 255, 0.76);
}

.mk-network-node.is-orange {
  background: #ff8a35;
  color: rgba(255, 138, 53, 0.72);
}

.mk-network-node.is-cyan {
  background: #48b9ff;
  color: rgba(72, 185, 255, 0.64);
}

.mk-network-node.is-rose {
  background: #ff609a;
  color: rgba(255, 96, 154, 0.64);
}

.mk-network-node-1 {
  left: 22%;
  top: 27%;
}

.mk-network-node-2 {
  left: 37%;
  top: 16%;
}

.mk-network-node-3 {
  left: 53%;
  top: 18%;
}

.mk-network-node-4 {
  right: 23%;
  top: 27%;
}

.mk-network-node-5 {
  right: 9%;
  top: 55%;
}

.mk-network-node-6 {
  left: 16%;
  bottom: 26%;
}

.mk-network-node-7 {
  right: 18%;
  bottom: 21%;
}

.mk-network-node-8 {
  left: 44%;
  bottom: 18%;
}

.mk-network-glow {
  border-radius: 999px;
  background: radial-gradient(circle, rgba(153, 111, 255, 0.28), rgba(153, 111, 255, 0.08) 38%, transparent 70%);
  filter: blur(2px);
  opacity: 0.62;
  animation: mkGlowFloat 13s ease-in-out infinite alternate;
}

.mk-network-glow-one {
  left: 45%;
  top: 11%;
  width: 90px;
  height: 90px;
}

.mk-network-glow-two {
  right: 13%;
  top: 46%;
  width: 72px;
  height: 72px;
  background: radial-gradient(circle, rgba(255, 109, 64, 0.24), rgba(255, 109, 64, 0.07) 38%, transparent 70%);
}

.mk-network-glow-three {
  left: 51%;
  bottom: 23%;
  width: 86px;
  height: 86px;
  background: radial-gradient(circle, rgba(72, 185, 255, 0.18), rgba(72, 185, 255, 0.06) 38%, transparent 70%);
}

.mk-dome {
  left: 50%;
  bottom: -34%;
  width: min(1040px, 72vw);
  height: 54%;
  border-radius: 50% 50% 0 0;
  background:
    repeating-radial-gradient(ellipse at 50% 100%, transparent 0 22px, rgba(255, 130, 26, 0.34) 23px 24px, transparent 25px 42px),
    repeating-linear-gradient(74deg, transparent 0 32px, rgba(151, 85, 255, 0.24) 33px 34px, transparent 35px 64px);
  transform: translateX(-50%);
  opacity: 0.38;
  mix-blend-mode: screen;
  animation: mkDomeShift 16s ease-in-out infinite alternate;
}

.mk-hero-copy {
  z-index: 5;
}

@keyframes mkHeroNebulaBreath {
  from {
    opacity: 0.8;
    transform: scale(1);
  }
  to {
    opacity: 1;
    transform: scale(1.018);
  }
}

@keyframes mkCosmosDrift {
  from {
    transform: scale(1.03) translate3d(-10px, -6px, 0);
  }
  to {
    transform: scale(1.055) translate3d(12px, 8px, 0);
  }
}

@keyframes mkSynapseTwinkle {
  from {
    opacity: 0.36;
    filter: brightness(0.86);
  }
  to {
    opacity: 0.76;
    filter: brightness(1.18);
  }
}

@keyframes mkAxonDrift {
  from {
    opacity: 0.28;
    filter: brightness(0.84);
  }
  to {
    opacity: 0.62;
    filter: brightness(1.2);
  }
}

@keyframes mkGlowFloat {
  from {
    transform: translate3d(-8px, 4px, 0) scale(0.92);
  }
  to {
    transform: translate3d(10px, -10px, 0) scale(1.12);
  }
}

@keyframes mkDomeGlow {
  from {
    opacity: 0.46;
  }
  to {
    opacity: 0.76;
  }
}

@keyframes mkDomeShift {
  from {
    transform: translateX(-50%) translateY(0);
  }
  to {
    transform: translateX(-50%) translateY(-12px);
  }
}

@media (max-width: 860px) {
  .mk-hero {
    background-position: center top;
  }

  .mk-hero::before {
    background:
      radial-gradient(420px 320px at 42% 44%, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.24) 62%, transparent 82%),
      radial-gradient(360px 260px at 50% 14%, rgba(155, 102, 255, 0.16), transparent 72%);
  }

  .mk-network-field::before {
    inset: -12%;
    opacity: 0.25;
    background-position: center top;
  }

  .mk-network-line-three,
  .mk-network-line-four,
  .mk-network-node-4,
  .mk-network-node-5,
  .mk-network-node-7 {
    display: none;
  }

  .mk-dome {
    width: 760px;
    bottom: -25%;
    opacity: 0.28;
  }
}

* {
  box-sizing: border-box;
  scrollbar-width: none !important;
  -ms-overflow-style: none;
}

*::-webkit-scrollbar {
  width: 0 !important;
  height: 0 !important;
  display: none !important;
}

html,
body,
#root {
  min-height: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  line-height: 1.45;
  overflow-x: hidden;
}

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
  color: var(--text);
}

input,
select,
textarea {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  padding: 8px 10px;
}

input::placeholder,
textarea::placeholder {
  color: var(--text-muted);
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
a:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.app-shell {
  min-height: 100vh;
  padding: 16px;
}

.app-header {
  margin-bottom: 12px;
}

.app-header h1 {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
}

.app-header p {
  margin: 6px 0 0;
  color: var(--text-muted);
}

.app-content {
  position: relative;
}

.fb-board-shell {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-alt);
  padding: 14px;
}

.fb-topbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}

.fb-breadcrumb {
  margin: 0;
  color: var(--text-muted);
  font-size: 12px;
}

.fb-board-title {
  margin: 6px 0 0;
  font-size: 22px;
  font-weight: 700;
}

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

.fb-btn {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}

.fb-btn-primary {
  border-color: var(--primary);
  background: var(--primary);
  color: #061422;
  font-weight: 700;
}

.fb-btn-primary:hover {
  border-color: var(--primary-strong);
  background: var(--primary-strong);
}

.fb-btn-ghost {
  background: var(--surface);
  color: var(--text);
}

.fb-btn-ghost:hover {
  border-color: #375272;
  background: var(--surface-alt);
}

.fb-toolbar {
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.fb-search-wrap {
  flex: 1;
}

.fb-search-input {
  width: 100%;
  max-width: 480px;
}

.fb-toolbar-metrics {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.fb-metric-chip {
  font-size: 12px;
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 5px 10px;
  background: var(--surface);
}

.fb-filter-panel {
  margin-top: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 10px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  background: var(--surface);
}

.fb-filter-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.fb-filter-label {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 600;
}

.fb-filter-items {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.fb-filter-pill {
  border: 1px solid var(--border);
  background: var(--bg-alt);
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 12px;
  color: var(--text-muted);
  cursor: pointer;
}

.fb-filter-pill.is-active {
  border-color: var(--primary);
  background: var(--primary-soft);
  color: var(--text);
}

.fb-date-range {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.fb-date-input {
  min-width: 125px;
}

.fb-date-separator {
  color: var(--text-muted);
}

.fb-column-area {
  margin-top: 14px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  overflow-x: auto;
  padding-bottom: 8px;
}

.fb-column {
  width: 320px;
  min-width: 320px;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 10px;
}

.fb-column.is-dragging {
  opacity: 0.7;
}

.fb-column-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: grab;
  margin-bottom: 8px;
}

.fb-column-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.fb-column-color-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.fb-column-title {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
}

.fb-column-stats {
  font-size: 12px;
  color: var(--text-muted);
}

.fb-column-dropzone {
  min-height: 80px;
  border-radius: 10px;
  padding: 4px;
}

.fb-column-dropzone.is-over {
  background: var(--primary-soft);
}

.fb-column-task-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.fb-column-empty {
  border: 1px dashed var(--border);
  border-radius: 10px;
  text-align: center;
  padding: 12px;
  font-size: 12px;
  color: var(--text-muted);
  background: var(--bg-alt);
}

.fb-column-create {
  margin-top: 10px;
}

.fb-column-create-form {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-alt);
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.fb-column-input {
  width: 100%;
}

.fb-column-input-wrap {
  position: relative;
}

.fb-column-input-wrap .fb-column-input {
  padding-right: 28px;
}

.fb-column-input-clear {
  position: absolute;
  top: 50%;
  right: 6px;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  color: var(--text-muted);
  width: 18px;
  height: 18px;
  border-radius: 999px;
  font-size: 12px;
  line-height: 1;
  cursor: pointer;
}

.fb-column-input-clear:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
}

.fb-column-add-btn {
  width: 100%;
  border: 1px dashed var(--border);
  border-radius: 10px;
  padding: 10px;
  background: transparent;
  text-align: left;
  color: var(--text-muted);
  cursor: pointer;
}

.fb-column-add-btn:hover {
  border-color: var(--primary);
  color: var(--text);
}

.fb-task-card {
  border: 1px solid var(--border);
  border-left-width: 4px;
  border-radius: 10px;
  background: var(--bg-alt);
  padding: 10px;
  text-align: left;
  cursor: pointer;
}

.fb-task-card.is-dragging {
  opacity: 0.7;
}

.fb-task-card.is-normal {
  border-left-color: #4b5f7a;
}

.fb-task-card.is-due-soon {
  border-left-color: var(--warning);
}

.fb-task-card.is-overdue {
  border-left-color: var(--danger);
}

.fb-task-title-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}

.fb-task-title {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
}

.fb-task-delete-btn {
  border: 0;
  background: transparent;
  color: var(--text-muted);
  width: 18px;
  height: 18px;
  border-radius: 999px;
  font-size: 12px;
  line-height: 1;
  flex: 0 0 auto;
  cursor: pointer;
}

.fb-task-delete-btn:hover {
  color: #ffd5dc;
  background: rgba(255, 107, 125, 0.2);
}

.fb-task-meta-row {
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.fb-task-priority {
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 700;
}

.fb-task-priority.is-urgent {
  background: rgba(255, 107, 125, 0.2);
  color: #ff97a4;
}

.fb-task-priority.is-high {
  background: rgba(240, 179, 93, 0.22);
  color: #f5c47b;
}

.fb-task-priority.is-medium {
  background: rgba(77, 162, 255, 0.2);
  color: #9bc9ff;
}

.fb-task-priority.is-low {
  background: rgba(147, 161, 183, 0.2);
  color: #c3cedf;
}

.fb-task-due {
  font-size: 12px;
  color: var(--text-muted);
}

.fb-task-tags {
  margin-top: 8px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.fb-task-tag {
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.fb-task-bottom {
  margin-top: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.fb-task-assignees {
  display: flex;
  align-items: center;
  margin-left: 2px;
}

.fb-task-assignee {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  border: 2px solid var(--surface);
  background: #2a3d55;
  color: #b5d4ff;
  font-size: 11px;
  font-weight: 700;
  margin-left: -6px;
  overflow: hidden;
}

.fb-task-assignee:first-child {
  margin-left: 0;
}

.fb-task-assignee-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fb-task-hours {
  font-size: 12px;
  color: var(--text-muted);
}

.fb-task-checklist {
  margin-top: 8px;
}

.fb-task-checklist-top {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.fb-task-progress-track {
  height: 6px;
  border-radius: 999px;
  background: #253448;
  overflow: hidden;
}

.fb-task-progress-value {
  height: 100%;
  background: var(--primary);
}

.fb-overlay-card,
.fb-overlay-column {
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface-alt);
  color: var(--text);
}

.fb-overlay-card {
  width: 300px;
  padding: 10px;
}

.fb-overlay-column {
  width: 320px;
  padding: 12px;
  font-weight: 600;
}

.fb-detail-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: 380px;
  max-width: 95vw;
  height: 100vh;
  background: var(--bg-alt);
  border-left: 1px solid var(--border);
  transform: translateX(100%);
  transition: transform 0.2s ease;
  z-index: 60;
  padding: 16px;
  overflow-y: auto;
}

.fb-detail-panel.is-open {
  transform: translateX(0);
}

.fb-detail-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.fb-detail-header h3 {
  margin: 0;
  font-size: 18px;
}

.fb-detail-section {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 12px;
}

.fb-detail-section label {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 600;
}

.fb-detail-value {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  padding: 8px 10px;
  font-size: 14px;
}

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

.fb-detail-empty {
  color: var(--text-muted);
  font-size: 14px;
}

.fb-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(4, 6, 10, 0.62);
  z-index: 110;
  display: grid;
  place-items: center;
  padding: 16px;
}

.fb-modal {
  width: min(320px, 100%);
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg-alt);
  padding: 14px;
}

.fb-modal h4 {
  margin: 0;
  font-size: 16px;
}

.fb-modal p {
  margin: 8px 0 0;
  color: var(--text-muted);
  font-size: 13px;
}

.fb-modal-actions {
  margin-top: 12px;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.mk-page {
  min-height: 100vh;
  padding: 14px 20% 48px;
  background:
    radial-gradient(900px 420px at 72% 8%, rgba(126, 108, 230, 0.18), transparent 58%),
    radial-gradient(700px 360px at 26% 3%, rgba(77, 162, 255, 0.1), transparent 62%),
    linear-gradient(180deg, #070b12 0%, #091018 52%, #070b10 100%);
  overflow: hidden;
}

.mk-topbar {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid rgba(111, 136, 179, 0.28);
  background: rgba(10, 15, 24, 0.74);
  border-radius: 18px;
  padding: 13px 18px;
  box-shadow: 0 22px 80px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(18px);
}

.mk-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #f6f8ff;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.mk-logo-mark {
  position: relative;
  display: inline-grid;
  grid-template-columns: repeat(3, 9px);
  gap: 3px;
  transform: rotate(-28deg);
}

.mk-logo-mark span {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: linear-gradient(135deg, #80a8ff, #935cff 70%);
  box-shadow: 0 0 16px rgba(126, 108, 230, 0.72);
}

.mk-logo-mark span:nth-child(2) {
  transform: translateY(-3px);
}

.mk-logo-mark span:nth-child(3) {
  transform: translateY(-6px);
}

.mk-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.mk-nav a {
  color: #aab7cc;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.mk-nav a:hover {
  color: #ffffff;
}

.mk-actions {
  display: flex;
  gap: 10px;
}

.mk-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid rgba(134, 155, 195, 0.24);
  border-radius: 11px;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -0.025em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease, color 0.18s ease;
}

.mk-btn:hover {
  transform: translateY(-1px);
}

.mk-btn-primary {
  border-color: rgba(160, 126, 255, 0.78);
  background:
    radial-gradient(circle at 72% 18%, rgba(255, 255, 255, 0.4), transparent 22%),
    linear-gradient(135deg, #5b5ff7 0%, #9b58ff 78%);
  color: #ffffff;
  box-shadow: 0 14px 34px rgba(117, 82, 255, 0.38);
}

.mk-btn-primary:hover {
  border-color: rgba(210, 190, 255, 0.9);
  box-shadow: 0 18px 44px rgba(144, 83, 255, 0.5);
}

.mk-btn-ghost {
  background: rgba(9, 13, 22, 0.62);
  color: #dce6f7;
}

.mk-btn-ghost:hover {
  border-color: rgba(137, 158, 199, 0.48);
  background: rgba(19, 27, 42, 0.88);
}

.mk-login-link {
  display: none;
}

.mk-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(340px, 0.98fr);
  min-height: 330px;
  margin-top: 16px;
  border: 1px solid rgba(112, 139, 190, 0.24);
  background:
    linear-gradient(90deg, rgba(13, 19, 31, 0.96) 0%, rgba(10, 14, 23, 0.88) 48%, rgba(13, 15, 36, 0.92) 100%),
    radial-gradient(620px 300px at 76% 38%, rgba(92, 83, 255, 0.24), transparent 68%);
  border-radius: 20px;
  padding: 46px 42px;
  overflow: hidden;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 24px 90px rgba(0, 0, 0, 0.42);
}

.mk-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.04), transparent 38%),
    radial-gradient(circle at 58% 44%, rgba(77, 162, 255, 0.12), transparent 28%);
  pointer-events: none;
}

.mk-hero-copy {
  position: relative;
  z-index: 2;
  max-width: 650px;
}

.mk-eyebrow {
  display: inline-flex;
  align-items: center;
  margin: 0;
  border: 1px solid rgba(111, 132, 255, 0.24);
  border-radius: 999px;
  background: rgba(70, 86, 180, 0.18);
  box-shadow: 0 0 28px rgba(105, 93, 255, 0.2);
  padding: 6px 13px;
  color: #a9c7ff;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: -0.015em;
}

.mk-hero h1 {
  margin: 18px 0 0;
  max-width: 680px;
  font-size: clamp(42px, 4.2vw, 70px);
  line-height: 1.05;
  letter-spacing: -0.07em;
}

.mk-hero h1::first-line {
  color: #9e72ff;
}

.mk-sub {
  margin: 18px 0 0;
  max-width: 620px;
  color: #aeb9ca;
  font-size: 16px;
  line-height: 1.7;
}

.mk-hero-actions {
  margin-top: 26px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.mk-hero-visual {
  position: relative;
  z-index: 1;
  min-height: 280px;
}

.mk-orbit,
.mk-star {
  position: absolute;
  pointer-events: none;
}

.mk-orbit {
  border: 1px solid rgba(120, 117, 255, 0.34);
  border-radius: 50%;
  transform: rotate(-18deg);
}

.mk-orbit-one {
  width: 460px;
  height: 150px;
  right: -56px;
  top: 94px;
}

.mk-orbit-two {
  width: 570px;
  height: 210px;
  right: -88px;
  top: 62px;
  opacity: 0.68;
}

.mk-orbit-three {
  width: 690px;
  height: 290px;
  right: -130px;
  top: 20px;
  opacity: 0.44;
}

.mk-star {
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: #9c8cff;
  box-shadow: 0 0 18px #8f7cff;
}

.mk-star-one {
  right: 24%;
  top: 44px;
}

.mk-star-two {
  right: 8%;
  top: 108px;
}

.mk-star-three {
  right: 37%;
  top: 202px;
}

.mk-cube {
  position: absolute;
  right: 20%;
  top: 92px;
  width: 120px;
  height: 120px;
  transform: rotateX(58deg) rotateZ(45deg);
  transform-style: preserve-3d;
  filter: drop-shadow(0 0 36px rgba(100, 77, 255, 0.75));
}

.mk-cube::before {
  content: "";
  position: absolute;
  inset: -50px;
  background: radial-gradient(circle, rgba(89, 72, 255, 0.36), transparent 62%);
  transform: translateZ(-42px);
}

.mk-cube-face {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(147, 113, 255, 0.88);
  background: linear-gradient(135deg, rgba(58, 51, 145, 0.96), rgba(6, 10, 26, 0.98));
  box-shadow:
    inset 0 0 28px rgba(126, 93, 255, 0.32),
    0 0 42px rgba(100, 72, 255, 0.34);
}

.mk-cube-top {
  transform: rotateX(90deg) translateZ(60px);
  background: linear-gradient(135deg, rgba(117, 100, 255, 0.72), rgba(12, 18, 43, 0.96));
}

.mk-cube-side {
  transform: rotateY(90deg) translateZ(60px);
  background: linear-gradient(135deg, rgba(31, 45, 111, 0.92), rgba(5, 9, 23, 0.98));
}

.mk-cube-front {
  display: grid;
  place-items: center;
  transform: translateZ(60px);
}

.mk-cube-front i {
  position: absolute;
  width: 18px;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, #83a6ff, #8f55ff);
}

.mk-cube-front i:nth-child(1) {
  transform: translate(-14px, -12px) rotate(-20deg);
}

.mk-cube-front i:nth-child(2) {
  transform: translate(4px, 0) rotate(-20deg);
}

.mk-cube-front i:nth-child(3) {
  transform: translate(22px, 12px) rotate(-20deg);
}

.mk-section {
  position: relative;
  z-index: 2;
  margin-top: 30px;
}

.mk-section-head h2 {
  margin: 0;
  font-size: 26px;
  letter-spacing: -0.04em;
}

.mk-section-head p {
  margin: 8px 0 0;
  color: #99a7bb;
}

.mk-grid {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}

.mk-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.mk-card {
  position: relative;
  min-height: 118px;
  border: 1px solid rgba(99, 123, 166, 0.28);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(18, 27, 43, 0.78), rgba(9, 14, 24, 0.88)),
    radial-gradient(circle at 12% 10%, rgba(126, 108, 230, 0.16), transparent 36%);
  padding: 22px 22px 20px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  overflow: hidden;
}

.mk-card::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(126, 108, 230, 0.52), transparent);
  opacity: 0;
  transition: opacity 0.18s ease;
}

.mk-card:hover::after {
  opacity: 1;
}

.mk-card-icon {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
  border: 1px solid rgba(153, 113, 255, 0.32);
  border-radius: 13px;
  background: linear-gradient(135deg, rgba(132, 77, 255, 0.34), rgba(35, 70, 126, 0.24));
  color: #c69aff;
  font-size: 26px;
  font-weight: 900;
  box-shadow: 0 0 32px rgba(126, 108, 230, 0.18);
}

.mk-card h3 {
  margin: 0;
  color: #f8fbff;
  font-size: 17px;
  letter-spacing: -0.035em;
}

.mk-card strong {
  display: inline-block;
  margin-top: 13px;
  font-size: 26px;
  letter-spacing: -0.06em;
}

.mk-card strong span {
  color: #a7b3c5;
  font-size: 14px;
  letter-spacing: -0.02em;
}

.mk-card p {
  margin: 9px 0 0;
  color: #9daabe;
  line-height: 1.55;
}

.mk-plan-card {
  min-height: 150px;
}

.mk-plan-card::before {
  content: "";
  position: absolute;
  right: 22px;
  top: 22px;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  opacity: 0.9;
}

.mk-plan-card.is-violet {
  border-color: rgba(132, 96, 255, 0.48);
}

.mk-plan-card.is-violet::before {
  background: radial-gradient(circle, rgba(147, 95, 255, 0.55), rgba(40, 28, 92, 0.42));
}

.mk-plan-card.is-blue {
  border-color: rgba(68, 147, 255, 0.42);
}

.mk-plan-card.is-blue::before {
  background: radial-gradient(circle, rgba(77, 162, 255, 0.52), rgba(18, 45, 80, 0.42));
}

.mk-plan-card.is-gold {
  border-color: rgba(229, 169, 87, 0.52);
  background:
    linear-gradient(135deg, rgba(31, 25, 17, 0.74), rgba(11, 14, 22, 0.9)),
    radial-gradient(circle at 90% 20%, rgba(229, 169, 87, 0.16), transparent 34%);
}

.mk-plan-card.is-gold::before {
  background: radial-gradient(circle, rgba(229, 169, 87, 0.58), rgba(75, 49, 15, 0.42));
}

.mk-quick-card {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 16px;
  border: 1px solid rgba(99, 123, 166, 0.28);
  border-radius: 18px;
  background: rgba(10, 15, 24, 0.74);
  padding: 22px;
}

.mk-quick-step {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 14px;
}

.mk-quick-step span {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(122, 112, 255, 0.58);
  border-radius: 999px;
  background: rgba(72, 78, 201, 0.22);
  color: #ffffff;
  font-weight: 900;
  box-shadow: 0 0 26px rgba(95, 83, 255, 0.2);
}

.mk-quick-step p {
  margin: 0;
  color: #c0cad8;
  font-weight: 700;
  letter-spacing: -0.025em;
}

main.auth-page {
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(360px, 24vw, 460px);
  overflow: hidden;
  background: #ffffff;
  color: #101217;
}

main.auth-page .auth-visual {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
  background: #08090c;
}

main.auth-page .auth-visual img {
  width: 100%;
  height: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  display: block;
  object-fit: cover;
  object-position: center;
}

main.auth-page .auth-panel {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(28px, 4vw, 72px) clamp(28px, 3vw, 54px);
  background: #ffffff;
}

main.auth-page .auth-card {
  width: min(100%, 320px);
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0;
  color: #101217;
  box-shadow: none;
}

main.auth-page .auth-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 44px;
}

main.auth-page .auth-brand img {
  display: block;
  width: min(206px, 100%);
  max-width: 100%;
  height: auto;
  filter: brightness(0);
}

main.auth-page .auth-heading {
  margin-bottom: 24px;
  text-align: center;
}

main.auth-page .auth-heading h1 {
  margin: 0;
  color: #101217;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.2;
}

main.auth-page .auth-heading p {
  margin: 9px 0 0;
  color: #6b7280;
  font-size: 13px;
  line-height: 1.45;
}

main.auth-page .auth-google-button {
  width: 100%;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid #d8dde5;
  border-radius: 2px;
  background: #ffffff;
  color: #111827;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

main.auth-page .auth-google-button:hover {
  border-color: #aeb7c5;
  background: #f8fafc;
}

main.auth-page .auth-google-button img {
  width: 18px;
  height: 18px;
  display: block;
  object-fit: contain;
}

main.auth-page .auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 17px 0 15px;
  color: #8a94a3;
  font-size: 11px;
  font-weight: 700;
}

main.auth-page .auth-divider::before,
main.auth-page .auth-divider::after {
  flex: 1;
  height: 1px;
  content: "";
  background: #e1e6ee;
}

main.auth-page .auth-form {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-top: 0;
}

main.auth-page .auth-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: #2b3038;
  font-size: 12px;
  font-weight: 700;
}

main.auth-page .auth-form input {
  width: 100%;
  height: 42px;
  border: 1px solid #d8dde5;
  border-radius: 2px;
  background: #ffffff;
  color: #101217;
  padding: 0 12px;
  font: inherit;
  font-size: 13px;
  box-shadow: none;
}

main.auth-page .auth-form input::placeholder {
  color: #9aa3af;
}

main.auth-page .auth-form input:focus {
  border-color: #111827;
  outline: 2px solid rgba(17, 24, 39, 0.08);
  outline-offset: 0;
}

main.auth-page .auth-submit {
  width: 100%;
  height: 42px;
  margin-top: 6px;
  border: 1px solid #111827;
  border-radius: 2px;
  background: #111827;
  color: #ffffff;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

main.auth-page .auth-submit:hover:not(:disabled) {
  background: #000000;
}

main.auth-page .auth-submit:disabled {
  cursor: not-allowed;
  opacity: 0.62;
}

main.auth-page .auth-footer {
  margin-top: 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  color: #3d4450;
  font-size: 12px;
  line-height: 1.45;
  text-align: center;
}

main.auth-page .auth-footer a {
  color: #1648ff;
  text-decoration: none;
}

main.auth-page .auth-footer a:hover {
  text-decoration: underline;
}

main.auth-page .auth-error {
  margin: 0;
  color: #c81e1e;
  font-size: 12px;
  line-height: 1.4;
}

@media (max-width: 860px) {
  main.auth-page {
    grid-template-columns: 1fr;
  }

  main.auth-page .auth-visual {
    position: absolute;
    inset: 0;
  }

  main.auth-page .auth-visual::after {
    position: absolute;
    inset: 0;
    content: "";
    background: rgba(0, 0, 0, 0.48);
  }

  main.auth-page .auth-panel {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    padding: 28px 18px;
    background: rgba(255, 255, 255, 0.94);
  }

  main.auth-page .auth-card {
    width: min(100%, 340px);
  }
}

.saas-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  --saas-main-center-shift: 125px;
  background: var(--bg);
  isolation: isolate;
}

.saas-sidebar {
  border-right: 1px solid var(--border);
  background: var(--bg-alt);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  z-index: 320;
}

.saas-workspace {
  display: flex;
  flex-direction: column;
  gap: 0;
  align-items: center;
  justify-content: center;
  text-align: center;
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
}

.saas-brand-block {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.saas-brand-wordmark {
  display: block;
  font-family: "Space Grotesk", "Pretendard", "Noto Sans KR", "Segoe UI", sans-serif;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1;
  text-transform: none;
  color: #edf1f7;
}

.saas-brand-mark {
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background:
    radial-gradient(circle at 62% 32%, rgba(255, 255, 255, 0.92) 0 18%, transparent 20%),
    linear-gradient(135deg, #7ea1df 0%, #8f7cf8 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.26),
    0 0 0 1px rgba(122, 152, 210, 0.42);
}

.saas-workspace p {
  margin: 0;
  color: var(--text-muted);
  font-size: 12px;
}

.saas-workspace-quick-add {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.workspace-quick-add-btn {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  color: #aeb9cf;
  text-align: left;
  padding: 12px 14px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}

.workspace-quick-add-btn:hover {
  border-color: var(--primary);
  color: #c4d3ef;
  background: var(--surface-alt);
}

.workspace-quick-add-btn:disabled {
  cursor: wait;
  opacity: 0.62;
}

.workspace-quick-add-create {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.workspace-kind-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.workspace-kind-option {
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--surface);
  color: var(--text-muted);
  min-height: 30px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.workspace-kind-option.is-active {
  border-color: rgba(143, 124, 248, 0.86);
  background: rgba(143, 124, 248, 0.22);
  color: #e4dfff;
}

.workspace-quick-add-create input {
  width: 100%;
}

.workspace-quick-add-actions {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
}

.workspace-quick-add-actions .mk-btn {
  min-height: 30px;
  padding: 0 10px;
  border-radius: 8px;
  font-size: 12px;
}

.saas-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.saas-workspace-nav-list {
  margin-top: 4px;
  gap: 8px;
}

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

.workspace-nav-section + .workspace-nav-section {
  margin-top: 8px;
}

.workspace-nav-section-title {
  margin: 6px 4px 0;
  color: #7f8ca3;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
}

.saas-nav-title {
  margin: 2px 2px 6px;
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 700;
}

.workspace-nav-row {
  position: relative;
  display: flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  padding: 2px 8px;
  touch-action: none;
  transition:
    border-color 0.16s ease,
    background 0.16s ease,
    box-shadow 0.16s ease,
    opacity 0.16s ease,
    transform 0.16s ease;
}

.workspace-nav-row.is-active {
  border-color: #8f7cf8;
  box-shadow:
    0 0 0 1px rgba(143, 124, 248, 0.45),
    0 0 0 3px rgba(143, 124, 248, 0.18);
  background: rgba(143, 124, 248, 0.2);
}

.workspace-nav-row.is-dragging {
  opacity: 0.48;
  transform: scale(0.985);
}

.workspace-nav-row.is-drop-before::before,
.workspace-nav-row.is-drop-after::after {
  content: '';
  position: absolute;
  left: 10px;
  right: 10px;
  height: 2px;
  border-radius: 999px;
  background: #a794ff;
  box-shadow: 0 0 12px rgba(167, 148, 255, 0.7);
  pointer-events: none;
}

.workspace-nav-row.is-drop-before::before {
  top: -6px;
}

.workspace-nav-row.is-drop-after::after {
  bottom: -6px;
}

.workspace-nav-item {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 0;
  border: 0;
  background: transparent;
  min-height: 34px;
  padding: 4px 0;
  cursor: grab;
}

.workspace-nav-row.is-editing,
.workspace-nav-row.is-editing .workspace-nav-item {
  cursor: text;
}

.workspace-nav-row.is-dragging,
.workspace-nav-row.is-dragging .workspace-nav-item {
  cursor: grabbing;
}

.workspace-nav-title-line {
  display: flex;
  width: 100%;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.workspace-nav-name {
  flex: 1 1 auto;
  display: block;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 13px;
  font-weight: 600;
}

.workspace-nav-badge {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  border: 1px solid rgba(126, 148, 180, 0.28);
  border-radius: 999px;
  padding: 0 7px;
  color: #95a5bc;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
}

.workspace-nav-badge.is-team {
  border-color: rgba(89, 214, 196, 0.32);
  color: #98e3d8;
}

.workspace-nav-inline-edit {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 6px 0;
}

.workspace-nav-inline-edit input {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-alt);
  color: var(--text);
  padding: 8px 10px;
  font-size: 13px;
}

.workspace-context-menu {
  position: fixed;
  min-width: 120px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-alt);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.3);
  padding: 4px;
  z-index: 360;
}

.workspace-context-menu button {
  width: 100%;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  text-align: left;
  font-size: 12px;
  padding: 7px 8px;
  cursor: pointer;
}

.workspace-context-menu button:hover:not(:disabled) {
  background: var(--surface);
}

.workspace-context-menu button.is-danger {
  color: #ff97a6;
}

.workspace-context-menu button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.workspace-delete-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(6, 9, 14, 0.62);
  z-index: 420;
  display: grid;
  place-items: center;
  padding: 16px;
}

.workspace-delete-modal {
  width: min(360px, 100%);
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--bg-alt);
  box-shadow: 0 20px 42px rgba(0, 0, 0, 0.45);
  padding: 16px;
}

.workspace-delete-modal h3 {
  margin: 0;
  font-size: 18px;
}

.workspace-delete-modal p {
  margin: 8px 0 0;
  color: var(--text-muted);
  font-size: 13px;
}

.workspace-delete-modal-note {
  color: #ff9dac !important;
}

.workspace-delete-modal-actions {
  margin-top: 14px;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.workspace-delete-confirm-btn {
  border-color: #d8647e;
  background: #d8647e;
  color: #fff4f6;
}

.workspace-delete-confirm-btn:hover:not(:disabled) {
  border-color: #e0718a;
  background: #e0718a;
}

.saas-workspace-select {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.saas-workspace-select label {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 600;
}

.saas-workspace-select select {
  width: 100%;
}

.saas-workspace-create {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px;
}

.saas-workspace-create input {
  min-width: 0;
}

.saas-workspace-create .mk-btn {
  white-space: nowrap;
}

.workspace-switcher {
  position: relative;
}

.workspace-switcher-trigger {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  cursor: pointer;
}

.workspace-switcher-trigger.is-open {
  border-color: var(--primary);
  box-shadow: 0 0 0 1px rgba(108, 157, 255, 0.22);
}

.workspace-switcher-chevron {
  color: var(--text-muted);
  font-size: 12px;
}

.workspace-switcher-panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #2f3250;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.4);
  z-index: 410;
  overflow: hidden;
}

.workspace-switcher-search {
  padding: 10px 10px 8px;
}

.workspace-switcher-search input {
  width: 100%;
  border: 1px solid #4a69b2;
  border-radius: 8px;
  background: rgba(18, 24, 44, 0.44);
  color: #eaf1ff;
  padding: 9px 10px;
  font-size: 14px;
}

.workspace-switcher-search input::placeholder {
  color: #b8c4df;
}

.workspace-switcher-list-wrap {
  max-height: 320px;
  overflow: auto;
  padding: 0 8px 8px;
  scrollbar-width: thin;
}

.workspace-switcher-section h4 {
  margin: 8px 4px 6px;
  font-size: 12px;
  font-weight: 700;
  color: #c1cae2;
}

.workspace-switcher-item {
  width: 100%;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #e8eefc;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  text-align: left;
  cursor: pointer;
}

.workspace-switcher-item:hover {
  background: rgba(55, 94, 182, 0.22);
}

.workspace-switcher-item.is-active {
  background: rgba(18, 82, 190, 0.54);
}

.workspace-switcher-avatar {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: #2f8fff;
  color: #f7fbff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 800;
  flex: 0 0 auto;
}

.workspace-switcher-empty {
  margin: 2px 8px 8px;
  color: #b6c1da;
  font-size: 12px;
}

.workspace-switcher-footer {
  border-top: 1px solid rgba(160, 176, 211, 0.24);
  padding: 8px;
  background: rgba(40, 46, 76, 0.86);
}

.workspace-switcher-add {
  width: 100%;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #d6e1fb;
  text-align: left;
  padding: 9px 10px;
  font-size: 14px;
  cursor: pointer;
}

.workspace-switcher-add:hover {
  background: rgba(52, 88, 169, 0.24);
}

.workspace-switcher-create {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.workspace-switcher-create input {
  width: 100%;
}

.workspace-switcher-create-actions {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
}

.saas-nav-item {
  display: block;
  width: 100%;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  text-align: left;
  padding: 9px 10px;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  text-decoration: none;
}

.saas-nav-item:hover {
  border-color: var(--border);
  color: var(--text);
  background: var(--surface);
}

.saas-nav-item.is-active {
  border-color: var(--primary);
  background: var(--primary-soft);
  color: var(--text);
  font-weight: 600;
}

.workspace-nav-row .workspace-nav-item:hover,
.workspace-nav-row .workspace-nav-item.is-active {
  border-color: transparent;
  background: transparent;
}

.saas-sidebar-footer {
  margin-top: auto;
}

.saas-main {
  padding: 14px;
  position: relative;
  z-index: 1;
}

.saas-main-header {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
  border: 1px solid var(--border);
  background: var(--bg-alt);
  border-radius: var(--radius-md);
  padding: 12px 14px;
}

.saas-main-header p {
  margin: 0;
  color: var(--text-muted);
  font-size: 12px;
}

.saas-main-header h1 {
  margin: 6px 0 0;
  font-size: 24px;
}

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

.saas-main-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  min-width: 0;
}

.saas-category-tabs {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  flex-wrap: wrap;
  max-width: 100%;
}

.saas-category-tab {
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: var(--text-muted);
  padding: 8px 11px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.saas-category-tab:hover {
  border-color: var(--border);
  background: var(--surface);
  color: var(--text);
}

.saas-category-tab.is-active {
  border-color: rgba(240, 245, 255, 0.9);
  background: rgba(159, 173, 197, 0.22);
  color: #f6fbff;
}

.saas-main-content {
  position: relative;
  margin-top: 12px;
  z-index: 1;
  isolation: isolate;
  min-width: 0;
  max-width: 100%;
}

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

.page-error {
  margin: 8px 0;
  color: #ff98a5;
  font-size: 13px;
}

.page-info {
  margin: 8px 0;
  color: #c7cfdb;
  font-size: 13px;
}

.page-ok {
  margin: 8px 0;
  color: #9be2c8;
  font-size: 13px;
}

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

.placeholder-card {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-alt);
  padding: 12px;
  min-width: 0;
}

.placeholder-card h3 {
  margin: 0;
}

.placeholder-card p {
  margin: 8px 0 0;
  color: var(--text-muted);
}

.dash-list {
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.dash-check-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
}

.dash-check-row .is-done {
  color: #7d8fa8;
  text-decoration: line-through;
}

.calendar-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}

.calendar-head h3 {
  margin: 0;
}

.calendar-head p {
  margin: 6px 0 0;
  color: var(--text-muted);
}

.calendar-actions {
  display: flex;
  gap: 6px;
}

.calendar-status-legend {
  margin-top: 10px;
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--text-muted);
  font-size: 12px;
}

.calendar-status-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.calendar-status-legend i {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  display: inline-block;
  border: 1px solid rgba(255, 255, 255, 0.24);
}

.calendar-page-shell {
  min-height: calc(100dvh - 120px);
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 0;
  isolation: isolate;
  overflow: hidden;
}

.calendar-grid {
  --calendar-cell-padding: 8px;
  --calendar-grid-gap: 6px;
  --calendar-watermark-color: rgba(176, 188, 206, 0.12);
  margin-top: 12px;
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: var(--calendar-grid-gap);
}

.calendar-grid::before {
  content: attr(data-month-watermark);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(221px, 27.3vw, 442px);
  font-weight: 800;
  line-height: 1;
  color: var(--calendar-watermark-color);
  letter-spacing: -0.04em;
  transform: translateY(12px);
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

.calendar-page-shell .calendar-grid {
  flex: 1;
  min-height: 0;
}

.calendar-weekday {
  position: relative;
  z-index: 1;
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
}

.calendar-weekday.is-sunday {
  color: #ff7b8a;
}

.calendar-weekday.is-saturday {
  color: #7bc6ff;
}

.calendar-cell {
  position: relative;
  z-index: 1;
  min-height: 122px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(19, 28, 41, 0.74);
  color: var(--text);
  text-align: left;
  padding: var(--calendar-cell-padding);
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  overflow: visible;
}

.calendar-cell:hover {
  border-color: #46566d;
  box-shadow: inset 0 0 0 1px rgba(154, 173, 198, 0.26);
}

.calendar-cell.is-muted {
  opacity: 0.42;
  border-color: rgba(91, 107, 131, 0.42);
  background: rgba(11, 17, 26, 0.42);
}

.calendar-cell.is-muted:hover {
  border-color: rgba(102, 119, 144, 0.44);
  box-shadow: none;
}

.calendar-cell.is-today {
  border-color: var(--primary);
}

.calendar-cell.is-holiday {
  border-color: rgba(255, 107, 125, 0.48);
}

.calendar-date-number {
  font-weight: 600;
}

.calendar-date-number.is-sunday {
  color: #ff7b8a;
}

.calendar-date-number.is-saturday {
  color: #7bc6ff;
}

.calendar-date-number.is-holiday {
  color: #ff7b8a;
}

.calendar-date-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 4px;
}

.calendar-date-meta {
  display: inline-flex;
  align-items: baseline;
  gap: 3px;
  min-width: 0;
}

.calendar-lunar-date {
  font-size: 9px;
  line-height: 1;
  color: rgba(165, 176, 191, 0.52);
  letter-spacing: -0.01em;
}

.calendar-weather-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  border-radius: 999px;
  padding: 0 5px;
  font-size: 9px;
  font-weight: 500;
  line-height: 1.2;
  color: rgba(182, 193, 209, 0.58);
  opacity: 0.62;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.calendar-weather-badge.is-sunny {
  background: rgba(118, 126, 142, 0.14);
}

.calendar-weather-badge.is-rainy {
  background: rgba(113, 122, 139, 0.16);
}

.calendar-weather-badge.is-cloudy {
  background: rgba(110, 118, 134, 0.18);
}

.calendar-weather-source {
  margin-left: auto;
  font-size: 11px;
  color: rgba(160, 171, 188, 0.56);
}

.calendar-holiday-name {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  color: #ff7b8a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.calendar-event-list {
  margin-top: 6px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  overflow: visible;
}

.calendar-event-item {
  min-width: 0;
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 2px;
  border-radius: 2px;
  height: 12px;
  padding: 0 3px;
  background-color: var(--calendar-event-color, #5b8def);
  user-select: none;
}

.calendar-event-item.is-draggable {
  cursor: grab;
}

.calendar-event-item.is-moving {
  cursor: grabbing;
  box-shadow: 0 0 0 1px rgba(245, 249, 255, 0.42);
}

.calendar-event-placeholder {
  height: 12px;
  margin: 0;
  padding: 0;
  background: transparent !important;
  pointer-events: none;
}

.calendar-event-item:not(.is-start) {
  margin-left: calc(-1 * (var(--calendar-cell-padding) + var(--calendar-grid-gap)));
  padding-left: calc(var(--calendar-cell-padding) + var(--calendar-grid-gap) + 4px);
}

.calendar-event-item:not(.is-end) {
  margin-right: calc(-1 * (var(--calendar-cell-padding) + var(--calendar-grid-gap)));
  padding-right: calc(var(--calendar-cell-padding) + var(--calendar-grid-gap) + 4px);
}

.calendar-event-item.is-start {
  border-top-left-radius: 6px;
  border-bottom-left-radius: 6px;
}

.calendar-event-item.is-end {
  border-top-right-radius: 6px;
  border-bottom-right-radius: 6px;
}

.calendar-event-item.is-start.is-end {
  border-radius: 6px;
}

.calendar-event-placeholder:not(.is-start),
.calendar-event-placeholder:not(.is-end) {
  margin-left: 0;
  margin-right: 0;
  padding-left: 0;
  padding-right: 0;
}

.calendar-event-label {
  min-width: 0;
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 10px;
  line-height: 1;
  text-align: center;
}

.calendar-event-label.is-hidden {
  opacity: 0;
}

.calendar-event-inline-input {
  min-width: 0;
  flex: 1;
  border: 0;
  background: transparent;
  color: inherit;
  font-size: 10px;
  line-height: 1;
  text-align: center;
  padding: 0;
}

.calendar-event-inline-input:focus {
  outline: none;
}

.calendar-event-actions {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
  opacity: 0;
  transition: opacity 0.12s ease;
}

.calendar-event-item:hover .calendar-event-actions,
.calendar-event-item.is-resizing .calendar-event-actions {
  opacity: 1;
}

.calendar-event-item.is-editing .calendar-event-actions {
  opacity: 0.3;
  pointer-events: none;
}

.calendar-event-resize {
  border: 0;
  background: transparent;
  color: inherit;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: ew-resize;
  opacity: 0;
}

.calendar-event-item:hover .calendar-event-resize,
.calendar-event-item.is-resizing .calendar-event-resize {
  opacity: 0.85;
}

.calendar-event-resize span {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: currentColor;
  opacity: 0.75;
}

.calendar-event-resize:hover {
  background: rgba(255, 255, 255, 0.22);
}

.calendar-event-delete {
  border: 0;
  background: transparent;
  color: inherit;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  font-size: 10px;
  line-height: 1;
  cursor: pointer;
}

.calendar-event-delete:hover {
  background: rgba(255, 255, 255, 0.22);
}

.calendar-event-color {
  border: 0;
  background: transparent;
  color: inherit;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  font-size: 11px;
  line-height: 1;
  padding: 0;
  cursor: pointer;
}

.calendar-event-color:hover {
  background: rgba(255, 255, 255, 0.22);
}

.calendar-event-context-menu {
  position: fixed;
  z-index: 180;
  min-width: 156px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-alt);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.45);
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.calendar-event-context-item {
  min-height: 30px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: var(--text);
  font-size: 12px;
  font-weight: 600;
  text-align: left;
  padding: 0 10px;
  cursor: pointer;
}

.calendar-event-context-item:hover:not(:disabled) {
  border-color: #3a4a62;
  background: rgba(114, 134, 168, 0.18);
}

.calendar-event-context-item.is-danger {
  color: #ffd6de;
}

.calendar-event-context-item.is-danger:hover:not(:disabled) {
  border-color: #754155;
  background: rgba(118, 48, 70, 0.3);
}

.calendar-event-context-item:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.calendar-modal-backdrop {
  position: absolute;
  inset: 0;
  z-index: 32;
  background: rgba(4, 6, 10, 0.62);
  display: grid;
  place-items: center;
  padding: 16px;
}

.calendar-modal {
  width: min(320px, 100%);
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg-alt);
  padding: 14px;
}

.calendar-modal h4 {
  margin: 0;
  font-size: 16px;
}

.calendar-modal p {
  margin: 8px 0 0;
  color: var(--text-muted);
  font-size: 13px;
}

.calendar-modal-actions {
  margin-top: 12px;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.calendar-inline-form {
  margin-top: 6px;
  display: flex;
  gap: 4px;
  padding: 4px;
  border-radius: 8px;
  background: rgba(7, 11, 17, 0.56);
  border: 1px solid var(--border);
}

.calendar-inline-row {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
}

.calendar-inline-colors {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-left: auto;
  flex: 0 0 auto;
}

.calendar-color-chip {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  cursor: pointer;
  padding: 0;
}

.calendar-color-chip.is-active {
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.72);
}

.calendar-inline-form input {
  min-width: 0;
  flex: 1;
  padding: 6px 8px;
  font-size: 12px;
}

.calendar-hidden-submit {
  display: none;
}

.gantt-page-shell {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: calc(100vh - 220px);
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: hidden;
}

.gantt-topbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
}

.gantt-topbar h3 {
  margin: 0;
  font-size: 24px;
}

.gantt-topbar p {
  margin: 6px 0 0;
  color: var(--text-muted);
  font-size: 13px;
}

.gantt-topbar-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.gantt-topbar-meta span {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
}

.gantt-table-wrap {
  border: 0;
  border-radius: 12px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  background: transparent;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.gantt-table-wrap::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

.gantt-table-wrap.is-dragging {
  user-select: none;
}

.gantt-table {
  --gantt-col-group-width: 170px;
  --gantt-col-task-width: 280px;
  --gantt-col-period-width: 190px;
  width: calc(var(--gantt-col-group-width) + var(--gantt-col-task-width) + var(--gantt-col-period-width) + var(--gantt-timeline-width));
  min-width: calc(var(--gantt-col-group-width) + var(--gantt-col-task-width) + var(--gantt-col-period-width) + var(--gantt-timeline-width));
  max-width: none;
}

.gantt-header-row,
.gantt-add-row {
  display: grid;
  width: 100%;
  grid-template-columns: var(--gantt-col-group-width) var(--gantt-col-task-width) var(--gantt-col-period-width) minmax(
      var(--gantt-timeline-width),
      var(--gantt-timeline-width)
    );
  min-height: 46px;
}

.gantt-group-block {
  display: grid;
  width: 100%;
  grid-template-columns: var(--gantt-col-group-width) minmax(
      calc(var(--gantt-col-task-width) + var(--gantt-col-period-width) + var(--gantt-timeline-width)),
      calc(var(--gantt-col-task-width) + var(--gantt-col-period-width) + var(--gantt-timeline-width))
    );
}

.gantt-group-rows .gantt-data-row {
  display: grid;
  width: 100%;
  grid-template-columns: var(--gantt-col-task-width) var(--gantt-col-period-width) minmax(
      var(--gantt-timeline-width),
      var(--gantt-timeline-width)
    );
  min-height: 46px;
}

.gantt-header-row {
  position: sticky;
  top: 0;
  z-index: 22;
}

.gantt-cell {
  padding: 10px 12px;
  border-top: 1px solid rgba(145, 158, 184, 0.12);
  border-right: 1px solid rgba(145, 158, 184, 0.12);
  display: flex;
  align-items: center;
  color: var(--text);
  background: transparent;
}

.gantt-header-row .gantt-cell {
  background: transparent;
  border-top: 0;
  font-weight: 800;
  color: #dce6ff;
}

.gantt-header-row .gantt-cell.gantt-col-group,
.gantt-header-row .gantt-cell.gantt-col-task,
.gantt-header-row .gantt-cell.gantt-col-period {
  background: #090c12;
}

.gantt-cell.gantt-col-group {
  position: sticky;
  left: 0;
  z-index: 16;
  align-items: center;
}

.gantt-group-merged-cell {
  align-items: flex-start;
  justify-content: flex-start;
  padding-top: 10px;
}

.gantt-cell.gantt-col-task {
  position: sticky;
  left: var(--gantt-col-group-width);
  z-index: 15;
  gap: 8px;
}

.gantt-cell.gantt-col-period {
  position: sticky;
  left: calc(var(--gantt-col-group-width) + var(--gantt-col-task-width));
  z-index: 14;
}

.gantt-data-row .gantt-col-task {
  align-items: center;
  justify-content: flex-start;
}

.gantt-group-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  max-width: 100%;
  border-radius: 999px;
  border: 1px solid rgba(145, 158, 184, 0.34);
  border-left: 4px solid var(--gantt-group-color, #5b8def);
  background: rgba(10, 15, 24, 0.92);
  color: #dbe6ff;
  font-size: 14px;
  font-weight: 400;
  padding: 0 12px 0 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gantt-group-pill.is-calendar {
  --gantt-group-color: #8f9eb8;
}

.gantt-col-period {
  color: #d3daea;
  font-size: 12px;
  font-weight: 400;
}

.gantt-col-timeline {
  padding: 0;
  display: block;
  width: var(--gantt-timeline-width);
  min-width: var(--gantt-timeline-width);
  cursor: grab;
  touch-action: none;
  user-select: none;
}

.gantt-table-wrap.is-dragging .gantt-col-timeline {
  cursor: grabbing;
}

.gantt-col-group,
.gantt-col-task,
.gantt-col-period {
  background: #090c12;
}

.gantt-month-row,
.gantt-week-row,
.gantt-timeline-grid {
  width: var(--gantt-timeline-width);
}

.gantt-month-row {
  display: flex;
  min-height: 30px;
  border-bottom: 1px solid rgba(145, 158, 184, 0.12);
  background: transparent;
}

.gantt-month-cell {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-right: 1px solid rgba(145, 158, 184, 0.12);
  color: #cbd8f0;
  font-size: 12px;
  font-weight: 700;
}

.gantt-week-row {
  display: flex;
  min-height: 30px;
  background: transparent;
}

.gantt-week-cell {
  width: var(--gantt-week-width);
  flex: 0 0 var(--gantt-week-width);
  border-right: 1px solid rgba(145, 158, 184, 0.12);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #9db0cf;
  font-size: 11px;
  letter-spacing: 0.01em;
}

.gantt-timeline-grid {
  position: relative;
  height: 45px;
  background: repeating-linear-gradient(
    to right,
    rgba(114, 130, 158, 0.01),
    rgba(114, 130, 158, 0.01) calc(var(--gantt-week-width) - 1px),
    rgba(133, 149, 177, 0.12) calc(var(--gantt-week-width) - 1px),
    rgba(133, 149, 177, 0.12) var(--gantt-week-width)
  );
}

.gantt-bar {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  height: 7px;
  border-radius: 999px;
  border: 0;
  background: linear-gradient(135deg, #8f9eb8 0%, #73839c 100%);
  display: block;
  padding: 0;
  box-shadow: none;
  color: #f7fbff;
  overflow: hidden;
}

.gantt-bar span {
  display: none;
}

.gantt-bar em {
  display: none;
}

.gantt-bar.is-todo {
  background: linear-gradient(135deg, #79849a 0%, #67758c 100%);
}

.gantt-bar.is-in_progress {
  background: linear-gradient(135deg, #c8994d 0%, #aa803f 100%);
}

.gantt-bar.is-done {
  background: linear-gradient(135deg, #4ea77a 0%, #418e68 100%);
}

.gantt-bar.is-cancelled {
  background: linear-gradient(135deg, #ba5e70 0%, #944958 100%);
}

.gantt-bar.is-review {
  background: linear-gradient(135deg, #6f77a5 0%, #585f88 100%);
}

.gantt-bar.is-calendar {
  border-color: rgba(245, 249, 255, 0.32);
  color: #f6fbff;
}

.gantt-task-title {
  font-size: 12px;
  font-weight: 400;
  line-height: 1.3;
  color: var(--text);
}

.gantt-timeline-grid-add {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 8px;
}

.gantt-add-hint {
  color: #8ea2c2;
  font-size: 12px;
  pointer-events: none;
}

.gantt-inline-form {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(141, 159, 190, 0.28);
  background: rgba(10, 15, 24, 0.95);
  border-radius: 999px;
  padding: 4px 6px 4px 10px;
}

.gantt-inline-form input {
  width: 220px;
  border: 0;
  background: transparent;
  color: #edf4ff;
  font-size: 12px;
  line-height: 1;
  outline: none;
}

.gantt-inline-colors {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.gantt-color-chip {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  padding: 0;
  cursor: pointer;
}

.gantt-color-chip.is-active {
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.78);
}

.gantt-empty {
  padding: 14px;
  color: var(--text-muted);
  font-size: 13px;
}

.gantt-unscheduled {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px;
  background: rgba(11, 15, 23, 0.86);
}

.gantt-unscheduled h4 {
  margin: 0 0 10px;
  font-size: 14px;
}

.gantt-unscheduled ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 8px;
}

.gantt-unscheduled li {
  border: 1px solid rgba(145, 158, 184, 0.2);
  border-radius: 8px;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.gantt-unscheduled li span {
  color: var(--text);
  font-size: 14px;
  font-weight: 400;
}

.gantt-unscheduled li small {
  display: none;
}

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

.files-head h3 {
  margin: 0;
}

.files-upload-btn {
  position: relative;
  overflow: hidden;
}

.files-input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.files-table {
  margin-top: 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}

.files-row {
  display: grid;
  grid-template-columns: 1.5fr 0.8fr 1fr auto;
  gap: 8px;
  align-items: center;
  padding: 10px;
  border-top: 1px solid var(--border);
}

.files-row-actions {
  display: inline-flex;
  gap: 6px;
}

.files-row:first-child {
  border-top: 0;
}

.files-row-head {
  background: var(--surface);
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
}

.files-empty {
  padding: 12px;
  color: var(--text-muted);
}

.members-add {
  margin-top: 10px;
  display: grid;
  grid-template-columns: 1fr 1.2fr auto;
  gap: 8px;
}

.members-list {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.members-row {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  background: var(--surface);
}

.members-row strong {
  display: block;
}

.members-row p {
  margin: 3px 0 0;
  color: var(--text-muted);
  font-size: 13px;
}

.members-row-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

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

.billing-head h3 {
  margin: 0;
}

.billing-cycle {
  display: flex;
  gap: 6px;
}

.billing-cards {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.billing-card {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  text-align: left;
  padding: 12px;
  cursor: pointer;
  color: var(--text);
}

.billing-card.is-active {
  border-color: var(--primary);
  background: var(--primary-soft);
}

.billing-card h4 {
  margin: 0;
}

.billing-card strong {
  display: inline-block;
  margin-top: 8px;
}

.billing-card p {
  margin: 8px 0 0;
  color: var(--text-muted);
}

.billing-footer {
  margin-top: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.board-page-shell {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  max-width: 100%;
}

.board-page-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}

.board-page-header h3 {
  margin: 0;
}

.board-page-header p {
  margin: 6px 0 0;
  color: var(--text-muted);
}

.board-page-controls select {
  min-width: 220px;
}

.mb-board-shell {
  gap: 12px;
}

.mb-board-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  border-bottom: 1px solid var(--mono-border);
  padding-bottom: 8px;
}

.mb-tab {
  border: 0;
  background: transparent;
  color: var(--mono-muted);
  padding: 6px 10px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 15px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.mb-tab.is-active {
  color: var(--mono-text);
  background: rgba(255, 255, 255, 0.08);
}

.mb-board-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.mb-toolbar-search {
  min-width: 200px;
  flex: 1;
  max-width: 360px;
}

.mb-toolbar-search input {
  width: 100%;
}

.mb-toolbar-meta {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--mono-muted);
  font-size: 12px;
}

.mb-group-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mb-group {
  border: 1px solid var(--mono-border);
  border-radius: 12px;
  background: var(--mono-bg-alt);
  overflow: hidden;
}

.mb-group-head {
  width: 100%;
  border: 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.04), transparent);
  color: var(--mono-text);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  cursor: pointer;
}

.mb-group-caret {
  transition: transform 0.15s ease;
  color: var(--mono-muted);
}

.mb-group-caret.is-collapsed {
  transform: rotate(-90deg);
}

.mb-group-title {
  font-weight: 700;
}

.mb-group-meta {
  margin-left: auto;
  color: var(--mono-muted);
  font-size: 12px;
}

.mb-table-wrap {
  border-top: 1px solid var(--mono-border);
  overflow-x: auto;
  border-left: 4px solid var(--group-color);
}

.mb-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 1050px;
}

.mb-table th,
.mb-table td {
  border-right: 1px solid var(--mono-border);
  border-bottom: 1px solid var(--mono-border);
  padding: 8px 10px;
  font-size: 13px;
  vertical-align: middle;
  background: var(--mono-bg-alt);
}

.mb-table th:last-child,
.mb-table td:last-child {
  border-right: 0;
}

.mb-table thead th {
  color: var(--mono-muted);
  font-weight: 600;
}

.mb-table tfoot td {
  color: var(--mono-muted);
  font-size: 12px;
}

.mb-col-center,
.mb-cell-center {
  text-align: center;
}

.mb-task-title-cell {
  font-weight: 600;
}

.mb-task-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: space-between;
}

.mb-task-title-text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mb-task-title-input {
  width: 100%;
  min-width: 0;
  height: 28px;
  border: 1px solid var(--mono-border);
  border-radius: 7px;
  background: #121a28;
  color: var(--mono-text);
  font-size: 13px;
  font-weight: 600;
  padding: 0 10px;
}

.mb-task-title-input:focus {
  outline: none;
  border-color: #5e789f;
  box-shadow: 0 0 0 1px rgba(94, 120, 159, 0.28);
}

.mb-task-title-actions {
  display: inline-flex;
  align-items: center;
  gap: 0;
  margin-left: auto;
}

.mb-task-action {
  border: 1px solid rgba(132, 147, 179, 0.38);
  background: rgba(23, 31, 47, 0.9);
  color: #b8c6e6;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  font-size: 12px;
  line-height: 1;
}

.mb-task-action:hover {
  color: #ecf3ff;
  border-color: rgba(172, 191, 230, 0.7);
  background: rgba(41, 57, 87, 0.88);
}

.mb-task-action.is-feedback {
  position: relative;
  color: #6cb6ff;
}

.mb-task-action-bubble {
  font-size: 11px;
  line-height: 1;
}

.mb-task-action-count {
  position: absolute;
  right: -6px;
  top: -7px;
  min-width: 14px;
  height: 14px;
  border-radius: 999px;
  border: 1px solid rgba(223, 236, 255, 0.52);
  background: #2f9dff;
  color: #f7fbff;
  font-size: 9px;
  font-weight: 800;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.mb-feedback-cell {
  padding-left: 6px;
  padding-right: 6px;
}

.mb-feedback-cell .mb-task-action {
  margin-inline: auto;
}

.mb-period-button {
  border: 1px solid var(--mono-border);
  background: #131922;
  color: var(--mono-text);
  border-radius: 999px;
  min-height: 28px;
  width: 100%;
  max-width: 170px;
  padding: 0 10px;
  font-size: 12px;
  text-align: center;
  cursor: pointer;
}

.mb-period-button:hover,
.mb-period-button.is-open {
  border-color: #5b8def;
  box-shadow: 0 0 0 1px rgba(91, 141, 239, 0.28);
}

.mb-type-button {
  width: 100%;
  min-height: 30px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  text-align: left;
  cursor: pointer;
  padding: 2px 4px;
}

.mb-cell-center .mb-priority-pill,
.mb-cell-center .mb-priority-field,
.mb-cell-center .mb-type-button,
.mb-cell-center .mb-period-button {
  margin-inline: auto;
}

.mb-cell-center .mb-type-button {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  max-width: 120px;
}

.mb-cell-center .mb-tag-pill {
  margin-inline: auto;
}

.mb-type-button:hover,
.mb-type-button.is-open {
  border-color: #5b8def;
  background: rgba(91, 141, 239, 0.08);
}

.mb-type-placeholder {
  color: var(--mono-muted);
  font-size: 12px;
}

.mb-status-field {
  --mb-status-bg: #7f8797;
  --mb-status-fg: #f6f9ff;
  width: calc(100% - 6px);
  margin-inline: auto;
  min-height: 42px;
  border: 1px solid rgba(245, 249, 255, 0.24);
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  color: var(--mb-status-fg);
  background: var(--mb-status-bg);
  font-size: 15px;
  font-weight: 900;
  letter-spacing: -0.01em;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.36);
  cursor: pointer;
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.14);
  transition: filter 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease, transform 0.12s ease;
}

.mb-status-field > span {
  font-size: 15px;
  line-height: 1;
}

.mb-status-field::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 0;
  height: 0;
  border-top: 12px solid rgba(255, 255, 255, 0.2);
  border-left: 12px solid transparent;
  border-top-right-radius: 6px;
}

.mb-status-field.is-open::after {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: -10px;
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 10px solid var(--mb-status-bg);
}

.mb-status-field:hover,
.mb-status-field.is-open {
  filter: brightness(1.08);
  border-color: rgba(255, 255, 255, 0.46);
  box-shadow: 0 0 0 2px rgba(236, 244, 255, 0.24);
}

.mb-status-field.is-waiting,
.mb-status-option.is-waiting {
  --mb-status-bg: #7f879f;
  --mb-status-fg: #f3f6ff;
}

.mb-status-field.is-progress,
.mb-status-option.is-progress {
  --mb-status-bg: #efb45d;
  --mb-status-fg: #fbfdff;
}

.mb-status-field.is-progress.has-progress,
.mb-status-option.is-progress.has-progress {
  background:
    linear-gradient(
      90deg,
      var(--mb-status-bg) 0 var(--mb-status-progress, 50%),
      color-mix(in srgb, var(--mb-status-bg), #111927 68%) var(--mb-status-progress, 50%) 100%
    );
}

.mb-status-field.is-done,
.mb-status-option.is-done {
  --mb-status-bg: #3ecb8e;
  --mb-status-fg: #f4fffb;
}

.mb-status-field.is-issue,
.mb-status-option.is-issue {
  --mb-status-bg: #df677f;
  --mb-status-fg: #fff6f8;
}

.mb-status-field.is-review,
.mb-status-option.is-review {
  --mb-status-bg: #8a78c8;
  --mb-status-fg: #f6f2ff;
}

.mb-status-popover {
  position: fixed;
  z-index: 170;
  border: 1px solid rgba(146, 162, 196, 0.2);
  border-radius: 14px;
  background: rgba(35, 41, 73, 0.96);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.52);
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mb-status-popover::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-bottom: 8px solid rgba(35, 41, 73, 0.96);
}

.mb-status-popover-head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #d9e2f6;
  font-size: 16px;
  font-weight: 800;
}

.mb-status-popover-more {
  color: #a9b5d4;
  font-size: 15px;
  line-height: 1;
}

.mb-status-option-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mb-status-option {
  --mb-status-bg: #7f8797;
  --mb-status-fg: #f6f9ff;
  width: 100%;
  min-height: 44px;
  border: 1px solid rgba(247, 250, 255, 0.08);
  border-radius: 5px;
  color: var(--mb-status-fg);
  background: var(--mb-status-bg);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0;
  text-shadow: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 0 14px;
}

.mb-status-option > span {
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
}

.mb-status-option-check {
  position: absolute;
  right: 14px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  color: rgba(248, 253, 255, 0.98);
}

.mb-status-option:hover,
.mb-status-option.is-selected {
  filter: brightness(1.03);
  box-shadow: inset 0 0 0 2px rgba(244, 249, 255, 0.26);
}

.mb-status-manage {
  border: 0;
  border-top: 1px solid rgba(143, 160, 194, 0.18);
  background: transparent;
  color: #c1cde8;
  text-align: center;
  padding: 12px 8px 2px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
}

.mb-status-manage-icon {
  font-size: 15px;
  line-height: 1;
}

.mb-status-manage:hover {
  color: #eef3ff;
}

.mb-status-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0 8px;
  min-height: 28px;
}

.mb-status-pill select {
  border: 0;
  background: transparent;
  color: inherit;
  font-weight: 700;
  padding: 0;
  min-width: 90px;
  text-align: center;
  cursor: pointer;
}

.mb-status-pill.is-plan {
  background: rgba(127, 138, 154, 0.3);
  color: #d8dde8;
}

.mb-status-pill.is-progress {
  background: rgba(240, 179, 93, 0.28);
  color: #ffd69a;
}

.mb-status-pill.is-review {
  background: rgba(185, 140, 255, 0.28);
  color: #d6bbff;
}

.mb-status-pill.is-done {
  background: rgba(85, 187, 131, 0.3);
  color: #b7ebcb;
}

.mb-priority-field {
  min-height: 34px;
  min-width: 106px;
  border: 1px solid rgba(188, 210, 248, 0.34);
  border-radius: 10px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: filter 0.12s ease, box-shadow 0.12s ease;
}

.mb-priority-field.is-open,
.mb-priority-field:hover {
  filter: brightness(1.12);
  box-shadow: 0 0 0 1px rgba(236, 244, 255, 0.28);
}

.mb-priority-field.is-low {
  background: #25457b;
  color: #edf5ff;
}

.mb-priority-field.is-medium {
  background: #4a5568;
  color: #f3f6fc;
}

.mb-priority-field.is-high {
  background: #7a561c;
  color: #fff1d4;
}

.mb-priority-field.is-urgent {
  background: #7e2740;
  color: #ffe4ec;
}

.mb-priority-chevron {
  font-size: 11px;
  opacity: 0.9;
}

.mb-priority-popover {
  position: fixed;
  z-index: 170;
  border: 1px solid #2d3f5a;
  border-radius: 6px;
  background: #0d131d;
  box-shadow: 0 10px 24px rgba(6, 9, 15, 0.4);
  overflow: hidden;
}

.mb-priority-option {
  width: 100%;
  border: 0;
  border-bottom: 1px solid #243246;
  background: transparent;
  padding: 10px 8px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  cursor: pointer;
}

.mb-priority-option:last-child {
  border-bottom: 0;
}

.mb-priority-option:hover,
.mb-priority-option.is-selected {
  filter: brightness(1.16);
  box-shadow: inset 0 0 0 1px rgba(246, 251, 255, 0.26);
}

.mb-priority-option.is-low {
  background: #224172;
  color: #ebf4ff;
}

.mb-priority-option.is-medium {
  background: #455164;
  color: #f1f5fb;
}

.mb-priority-option.is-high {
  background: #71511a;
  color: #ffedc8;
}

.mb-priority-option.is-urgent {
  background: #74243c;
  color: #ffe0e8;
}

.mb-priority-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 72px;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
}

.mb-priority-pill select {
  border: 0;
  background: transparent;
  color: inherit;
  font-weight: 700;
  font-size: 12px;
  min-width: 62px;
  text-align: center;
  cursor: pointer;
  padding: 0;
}

.mb-priority-pill select:focus {
  outline: none;
}

.mb-priority-pill.is-low {
  background: rgba(91, 141, 239, 0.24);
  color: #aac8ff;
}

.mb-priority-pill.is-medium {
  background: rgba(127, 138, 154, 0.28);
  color: #d7deea;
}

.mb-priority-pill.is-high {
  background: rgba(240, 179, 93, 0.24);
  color: #ffd49a;
}

.mb-priority-pill.is-urgent {
  background: rgba(247, 118, 142, 0.28);
  color: #ffbbca;
}

.mb-tag-pill {
  display: inline-flex;
  align-items: center;
  border: 1px solid;
  border-radius: 6px;
  padding: 3px 7px;
  font-size: 12px;
  font-weight: 600;
}

.mb-assignee-field {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid rgba(165, 182, 215, 0.35);
  background: rgba(24, 31, 48, 0.9);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}

.mb-assignee-field.is-empty {
  border-color: rgba(142, 154, 178, 0.45);
  background: rgba(9, 13, 23, 0.56);
}

.mb-assignee-field:hover,
.mb-assignee-field.is-open {
  border-color: rgba(137, 170, 236, 0.78);
  box-shadow: 0 0 0 1px rgba(110, 155, 235, 0.32);
}

.mb-assignee-icon {
  width: 20px;
  height: 20px;
  border-radius: 999px;
  border: 1px solid rgba(216, 228, 255, 0.45);
  background: rgba(228, 238, 255, 0.95);
  position: relative;
  display: inline-block;
}

.mb-assignee-icon-head {
  position: absolute;
  left: 50%;
  top: 4px;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #314768;
  transform: translateX(-50%);
}

.mb-assignee-icon-body {
  position: absolute;
  left: 50%;
  bottom: 3px;
  width: 11px;
  height: 6px;
  border-radius: 6px 6px 4px 4px;
  background: #314768;
  transform: translateX(-50%);
}

.mb-assignee-icon.is-empty {
  border-color: rgba(157, 169, 194, 0.6);
  background: rgba(30, 37, 54, 0.2);
}

.mb-assignee-icon.is-empty .mb-assignee-icon-head,
.mb-assignee-icon.is-empty .mb-assignee-icon-body {
  background: rgba(154, 168, 195, 0.75);
}

.mb-assignee-popover {
  position: fixed;
  z-index: 170;
  border: 1px solid rgba(132, 150, 186, 0.3);
  border-radius: 10px;
  background: rgba(12, 18, 29, 0.98);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.44);
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mb-assignee-option {
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #dce7ff;
  min-height: 34px;
  padding: 0 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  text-align: left;
  font-size: 13px;
}

.mb-assignee-option:hover,
.mb-assignee-option.is-selected {
  background: rgba(86, 130, 213, 0.22);
}

.mb-cell-dash {
  color: var(--mono-muted);
}

.mb-memo-input {
  width: 100%;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: var(--mono-text);
  font-size: 13px;
  padding: 6px 8px;
}

.mb-memo-input:focus {
  outline: none;
  border-color: #5b8def;
  background: rgba(91, 141, 239, 0.08);
}

.mb-row-delete {
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--mono-muted);
  cursor: pointer;
}

.mb-row-delete:hover {
  background: rgba(255, 107, 125, 0.18);
  color: #ffd3da;
}

.mb-add-row td {
  background: rgba(255, 255, 255, 0.02);
}

.mb-add-row-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--mono-muted);
}

.mb-add-row-wrap input {
  border: 0;
  background: transparent;
  padding: 0;
  width: 100%;
  color: var(--mono-text);
}

.mb-add-row-wrap input:focus {
  outline: none;
}

.mb-group-create {
  --mb-floating-action-size: 52px;
  position: fixed;
  right: 28px;
  bottom: 28px;
  z-index: 130;
  pointer-events: none;
}

.mb-group-create-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  pointer-events: auto;
}

.mb-floating-image-btn {
  width: var(--mb-floating-action-size);
  height: var(--mb-floating-action-size);
  border: 0;
  border-radius: 999px;
  background: transparent;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.14s ease, filter 0.14s ease;
}

.mb-floating-image-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
}

.mb-floating-image-btn:active {
  transform: translateY(0) scale(0.98);
}

.mb-floating-image-btn img {
  width: var(--mb-floating-action-size);
  height: var(--mb-floating-action-size);
  display: block;
  pointer-events: none;
  user-select: none;
}

.mb-group-create-form-panel {
  position: absolute;
  right: 68px;
  bottom: 0;
  width: max-content;
  max-width: min(520px, calc(100vw - 120px));
  border: 1px solid rgba(76, 94, 126, 0.72);
  border-radius: 14px;
  background: rgba(12, 18, 29, 0.96);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.42);
  padding: 12px;
  pointer-events: auto;
}

.mb-group-create-notice {
  position: absolute;
  right: 68px;
  bottom: 68px;
  width: max-content;
  max-width: min(420px, calc(100vw - 120px));
  margin: 0;
  border: 1px solid rgba(76, 94, 126, 0.6);
  border-radius: 12px;
  background: rgba(12, 18, 29, 0.95);
  padding: 8px 10px;
  color: #c4d2ea;
  font-size: 12px;
  line-height: 1.35;
  pointer-events: auto;
}

.mb-group-create-form {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.mb-group-create-form input {
  min-width: 220px;
}

.mb-updates-backdrop {
  position: fixed;
  inset: 0 0 0 var(--saas-main-offset-left, 0px);
  z-index: 200;
  background: rgba(3, 6, 12, 0.72);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 18px;
}

.mb-updates-modal {
  width: 80%;
  max-width: calc(100% - 36px);
  height: 80%;
  max-height: calc(100% - 36px);
  border: 1px solid rgba(108, 123, 166, 0.28);
  border-radius: 14px;
  background: #1c2141;
  box-shadow: 0 22px 64px rgba(0, 0, 0, 0.56);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.mb-updates-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 18px 10px;
  border-bottom: 1px solid rgba(124, 140, 179, 0.2);
}

.mb-updates-title-wrap h3 {
  margin: 0;
  font-size: 32px;
  color: #eef3ff;
  letter-spacing: -0.02em;
}

.mb-updates-title-wrap p {
  margin: 4px 0 0;
  color: #a9b4d0;
  font-size: 13px;
}

.mb-updates-close {
  border: 0;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: transparent;
  color: #bac8e9;
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
}

.mb-updates-close:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #f2f7ff;
}

.mb-updates-tabs {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px 10px;
  border-bottom: 1px solid rgba(124, 140, 179, 0.2);
}

.mb-updates-tab {
  border: 0;
  background: transparent;
  color: #9fafcf;
  height: 30px;
  border-radius: 8px;
  padding: 0 10px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
}

.mb-updates-tab.is-active {
  color: #f1f6ff;
  background: rgba(76, 132, 222, 0.22);
}

.mb-updates-body {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 16px 18px 20px;
}

.mb-updates-composer-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #afbbd8;
  font-size: 12px;
  margin-bottom: 8px;
}

.mb-updates-composer-meta label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.mb-updates-composer-meta button {
  border: 0;
  background: transparent;
  color: #b7c6e8;
  cursor: pointer;
  font-size: 12px;
}

.mb-updates-composer-mode-tabs {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.mb-updates-composer-mode-tabs button {
  border: 1px solid rgba(128, 143, 178, 0.32);
  background: rgba(15, 22, 41, 0.72);
  color: #b7c6e8;
  border-radius: 999px;
  height: 28px;
  padding: 0 12px;
  cursor: pointer;
  font-size: 12px;
}

.mb-updates-composer-mode-tabs button.is-active {
  border-color: rgba(115, 137, 255, 0.48);
  background: rgba(88, 111, 236, 0.2);
  color: #f3f7ff;
}

.mb-updates-composer {
  border: 1px solid #1687ff;
  border-radius: 8px;
  background: #171c36;
  padding: 0;
  overflow: hidden;
}

.mb-updates-markdown-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 14px;
  background: #353a58;
  border-bottom: 1px solid rgba(128, 143, 178, 0.22);
}

.mb-updates-markdown-toolbar button,
.mb-updates-tool-chip,
.mb-updates-tool-icon {
  border: 0;
  background: transparent;
  color: #dce5f8;
  border-radius: 6px;
  min-height: 28px;
  min-width: 28px;
  padding: 0 6px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
}

.mb-updates-markdown-toolbar button:hover,
.mb-updates-tool-chip:hover,
.mb-updates-tool-icon:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.mb-rich-style-group {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 28px;
  border-left: 1px solid rgba(146, 161, 195, 0.18);
  padding-left: 8px;
  margin-left: 2px;
}

.mb-rich-style-label {
  color: #7f8da6;
  font-size: 10px;
  font-weight: 900;
}

.mb-updates-markdown-toolbar .mb-rich-color-swatch {
  min-width: 18px;
  width: 18px;
  height: 18px;
  min-height: 18px;
  border: 1px solid rgba(231, 238, 252, 0.34);
  border-radius: 999px;
  background: var(--swatch-color);
  padding: 0;
  box-shadow: 0 0 10px color-mix(in srgb, var(--swatch-color), transparent 62%);
}

.mb-updates-markdown-toolbar .mb-rich-color-swatch:hover {
  border-color: rgba(255, 255, 255, 0.78);
  background: var(--swatch-color);
}

.mb-updates-markdown-toolbar .mb-rich-font-size-trigger,
.mb-updates-markdown-toolbar .mb-rich-font-step-btn {
  min-width: 34px;
  min-height: 22px;
  border: 1px solid rgba(139, 155, 190, 0.26);
  border-radius: 999px;
  background: rgba(14, 22, 36, 0.62);
  padding: 0 8px;
  color: #c8d3e8;
  font-size: 10px;
  font-weight: 900;
}

.mb-updates-markdown-toolbar .mb-rich-font-size-trigger {
  width: 48px;
}

.mb-updates-markdown-toolbar .mb-rich-font-size-trigger:hover,
.mb-updates-markdown-toolbar .mb-rich-font-step-btn:hover {
  border-color: rgba(145, 126, 238, 0.62);
  background: rgba(126, 108, 230, 0.2);
  color: #f3f6ff;
}

.mb-rich-font-size-menu {
  position: absolute;
  top: 100%;
  left: 8px;
  z-index: 80;
  display: none;
  flex-direction: column;
  gap: 0;
  width: 48px;
  min-width: 48px;
  border: 1px solid rgba(134, 151, 190, 0.36);
  border-radius: 10px;
  background: rgba(9, 14, 24, 0.96);
  padding: 2px 0;
  overflow: hidden;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.34);
}

.mb-rich-style-group:hover .mb-rich-font-size-menu,
.mb-rich-style-group:focus-within .mb-rich-font-size-menu {
  display: flex;
}

.mb-updates-markdown-toolbar .mb-rich-font-size-btn {
  width: 100%;
  min-width: 0;
  min-height: 28px;
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0;
  color: #c8d3e8;
  font-size: 10px;
  text-align: center;
  justify-content: center;
}

.mb-updates-markdown-toolbar .mb-rich-font-size-btn:hover {
  background: rgba(126, 108, 230, 0.22);
}

.mb-updates-markdown-toolbar .mb-rich-font-size-btn + .mb-rich-font-size-btn {
  border-top: 1px solid rgba(139, 155, 190, 0.14);
}

.mb-updates-markdown-toolbar.is-compact {
  gap: 6px;
  min-height: 38px;
  padding: 0 8px;
  margin: -8px -8px 6px;
  border-radius: 8px 8px 0 0;
}

.mb-updates-markdown-toolbar.is-compact button {
  min-height: 24px;
  min-width: 26px;
  padding: 0 5px;
  font-size: 11px;
}

.mb-rich-editor {
  width: 100%;
  min-height: 190px;
  padding: 22px 32px;
  color: #f0f4ff;
  font-size: 20px;
  line-height: 1.55;
  outline: none;
  overflow-y: auto;
  white-space: pre-wrap;
  tab-size: 4;
}

.mb-rich-editor.is-reply {
  min-height: 92px;
  padding: 10px 4px;
  font-size: 13px;
}

.mb-rich-editor:empty::before {
  content: attr(data-placeholder);
  color: #9aa8c8;
  pointer-events: none;
}

.mb-rich-editor ol,
.mb-rich-editor ul {
  margin: 0 0 8px;
  padding-left: 26px;
}

.mb-rich-editor h1 {
  margin: 0 0 8px;
  font-size: 24px;
}

.mb-rich-editor blockquote {
  margin: 0 0 8px;
  border-left: 3px solid rgba(122, 144, 255, 0.58);
  padding-left: 10px;
  color: #c4d2ef;
}

.mb-rich-editor table {
  width: 100%;
  border-collapse: collapse;
  margin: 8px 0;
  font-size: 13px;
}

.mb-rich-editor th,
.mb-rich-editor td {
  border: 1px solid rgba(128, 143, 178, 0.36);
  padding: 6px 8px;
}

.mb-rich-editor figure,
.mb-rich-content figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 16px auto;
}

.mb-rich-editor img,
.mb-rich-content img,
.mb-markdown-inline-image {
  display: block;
  max-width: min(100%, 760px);
  max-height: 520px;
  border: 1px solid rgba(111, 128, 164, 0.36);
  border-radius: 12px;
  background: #070b12;
  object-fit: contain;
}

.mb-rich-editor figcaption,
.mb-rich-content figcaption {
  margin-top: 8px;
  color: #8f9cb1;
  font-size: 12px;
  text-align: center;
}

.mb-updates-confirm-backdrop {
  position: fixed;
  inset: 0;
  z-index: 720;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(4, 8, 14, 0.62);
  backdrop-filter: blur(8px);
}

.mb-updates-confirm-dialog {
  width: min(360px, calc(100vw - 48px));
  border: 1px solid rgba(142, 158, 190, 0.28);
  border-radius: 16px;
  background: #111827;
  color: #eaf0ff;
  padding: 20px;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.5);
}

.mb-updates-confirm-dialog h4 {
  margin: 0 0 8px;
  font-size: 16px;
}

.mb-updates-confirm-dialog p {
  margin: 0;
  color: #b6bfd5;
  font-size: 13px;
  line-height: 1.55;
}

.mb-updates-confirm-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 18px;
}

.mb-annotated-image {
  --mb-pencil-cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 28 28'%3E%3Cpath d='M5 22.7 6.2 17 18.9 4.3a2.1 2.1 0 0 1 3 0l1.8 1.8a2.1 2.1 0 0 1 0 3L11 21.8 5 22.7Z' fill='%23ff3b30' stroke='%23ffffff' stroke-width='1.6'/%3E%3Cpath d='m17.4 5.8 4.8 4.8' stroke='%23070b12' stroke-width='1.7' stroke-linecap='round'/%3E%3C/svg%3E") 4 16;
  display: block;
  width: fit-content;
  max-width: 100%;
  outline: none;
}

.mb-annotated-image:focus,
.mb-annotated-image:focus-visible,
.mb-annotated-image *:focus,
.mb-annotated-image *:focus-visible {
  outline: none;
  box-shadow: none;
}

.mb-annotated-image-stage {
  position: relative;
  z-index: 1;
  display: inline-block;
  width: fit-content;
  max-width: 100%;
  border-radius: 12px;
  overflow: hidden;
  line-height: 0;
  transition: box-shadow 0.14s ease;
}

.mb-annotated-image.is-editable:focus-within .mb-annotated-image-stage {
  box-shadow:
    inset 0 0 0 1px rgba(130, 109, 210, 0.48),
    0 0 0 2px rgba(126, 108, 230, 0.12);
}

.mb-annotated-image img {
  display: block;
  max-width: 100%;
  height: auto;
  cursor: zoom-in;
}

.mb-annotated-image.is-editable img {
  cursor: var(--mb-pencil-cursor), crosshair;
}

.mb-annotated-image-canvas {
  position: absolute;
  inset: 0;
  display: block;
  border-radius: 12px;
  touch-action: none;
}

.mb-annotated-image-canvas.is-draw {
  cursor: var(--mb-pencil-cursor), crosshair;
}

.mb-annotated-image-canvas.is-line {
  cursor: crosshair;
}

.mb-annotated-image-canvas.is-text {
  cursor: text;
}

.mb-annotated-image-line-preview {
  position: absolute;
  inset: 0;
  z-index: 2;
  overflow: visible;
  pointer-events: none;
}

.mb-annotated-image-text-input {
  appearance: none;
  -webkit-appearance: none;
  position: absolute;
  z-index: 3;
  min-width: 24px;
  width: 220px;
  max-width: 260px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: currentColor;
  -webkit-text-fill-color: currentColor;
  caret-color: currentColor;
  font: 700 18px/1.25 inherit;
  padding: 0;
  outline: none;
  box-shadow: none;
  text-decoration: none;
  text-shadow: none;
}

.mb-annotated-image-text-item {
  appearance: none;
  position: absolute;
  z-index: 3;
  border: 0;
  background: transparent;
  cursor: move;
  font: 700 18px/1.25 inherit;
  padding: 0 2px;
  text-align: left;
  text-shadow: none;
}

.mb-annotated-image-text-item.is-selected {
  outline: none;
}

.mb-annotated-image-text-input:focus,
.mb-annotated-image-text-input:focus-visible {
  border: 0;
  outline: none;
  box-shadow: none;
}

.mb-annotated-image-toolbar {
  position: relative;
  z-index: 8;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 7px;
  width: min(940px, calc(100vw - 180px));
  max-width: 100%;
  margin: 0 0 8px;
  margin-left: auto;
  margin-right: auto;
  padding: 9px 12px;
  border: 1px solid rgba(122, 137, 176, 0.24);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(15, 22, 36, 0.94), rgba(11, 18, 29, 0.9));
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(14px);
}

.mb-annotated-image-tool-group,
.mb-annotated-image-colors,
.mb-annotated-image-strokes,
.mb-annotated-image-actions {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.mb-annotated-image-shape-menu {
  position: relative;
  z-index: 9;
  display: inline-flex;
  align-items: center;
  width: fit-content;
}

.mb-annotated-image-shape-list {
  position: absolute;
  top: calc(100% + 7px);
  left: 0;
  z-index: 20;
  display: flex;
  width: 100%;
  flex-direction: column;
  gap: 3px;
  padding: 6px;
  border: 1px solid rgba(134, 149, 184, 0.28);
  border-radius: 12px;
  background: rgba(9, 14, 23, 0.96);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.38);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
  transition: opacity 0.12s ease, transform 0.12s ease;
}

.mb-annotated-image-shape-list::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: -8px;
  height: 8px;
}

.mb-annotated-image-shape-menu.is-open .mb-annotated-image-shape-list {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.mb-annotated-image-tool-group button,
.mb-annotated-image-reset,
.mb-annotated-image-request {
  border: 1px solid rgba(151, 165, 198, 0.22);
  border-radius: 999px;
  background: rgba(15, 23, 36, 0.86);
  color: #c7d2eb;
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  padding: 6px 9px;
}

.mb-annotated-image-tool-group button:hover,
.mb-annotated-image-tool-group button.is-active,
.mb-annotated-image-reset:hover {
  border-color: rgba(165, 178, 255, 0.44);
  background: rgba(126, 108, 230, 0.16);
  color: #f3f6ff;
}

.mb-annotated-image-shape-list button {
  width: 100%;
  justify-content: center;
  border-color: transparent;
  border-radius: 8px;
  background: transparent;
  padding: 7px 8px;
  text-align: center;
}

.mb-annotated-image-colors button {
  width: 11px;
  height: 11px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  cursor: pointer;
  padding: 0;
  box-shadow: 0 0 7px rgba(255, 255, 255, 0.12);
}

.mb-annotated-image-colors button.is-active {
  border-color: #ffffff;
  box-shadow: 0 0 0 2px rgba(126, 108, 230, 0.24), 0 0 10px currentColor;
}

.mb-annotated-image-strokes button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 20px;
  border: 1px solid rgba(151, 165, 198, 0.22);
  border-radius: 999px;
  background: rgba(15, 23, 36, 0.86);
  cursor: pointer;
  padding: 0;
}

.mb-annotated-image-strokes button span {
  display: block;
  width: 12px;
  border-radius: 999px;
  background: #dce6fb;
}

.mb-annotated-image-strokes button:hover,
.mb-annotated-image-strokes button.is-active {
  border-color: rgba(165, 178, 255, 0.44);
  background: rgba(126, 108, 230, 0.16);
}

.mb-annotated-image-strokes button.is-active span {
  background: #ffffff;
}

.mb-annotated-image-request {
  border-color: rgba(151, 133, 255, 0.58);
  background: #7e6ce6;
  color: #ffffff;
  padding-inline: 10px;
}

.mb-annotated-image-request:hover {
  background: #8f80f2;
}

.mb-annotated-image-request:disabled {
  opacity: 0.42;
  cursor: default;
  background: rgba(35, 42, 58, 0.72);
}

.mb-image-preview-backdrop {
  position: fixed;
  inset: 0;
  z-index: 620;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
  background: rgba(4, 8, 14, 0.78);
  backdrop-filter: blur(10px);
}

.mb-image-preview {
  position: relative;
  max-width: min(1120px, 94vw);
  max-height: 88vh;
}

.mb-image-preview img {
  display: block;
  max-width: 100%;
  max-height: 88vh;
  border: 1px solid rgba(155, 170, 205, 0.28);
  border-radius: 18px;
  background: #070b12;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
}

.mb-image-preview button {
  position: absolute;
  top: -14px;
  right: -14px;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(191, 202, 230, 0.3);
  border-radius: 999px;
  background: #111827;
  color: #eaf0ff;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
}

.mb-updates-composer textarea {
  width: 100%;
  min-height: 120px;
  border: 0;
  resize: vertical;
  background: transparent;
  color: #f0f4ff;
  font-size: 13px;
  line-height: 1.45;
  font-family: inherit;
}

.mb-updates-composer textarea:focus {
  outline: none;
}

.mb-updates-markdown-preview {
  min-height: 120px;
  border-radius: 10px;
  background: rgba(12, 18, 35, 0.42);
  border: 1px dashed rgba(133, 148, 186, 0.28);
  padding: 12px 14px;
  color: #e9f0ff;
}

.mb-updates-markdown-preview > p {
  margin: 0;
  color: #95a5c8;
}

.mb-updates-attachment-list {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mb-updates-attachment-chip {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(128, 143, 178, 0.28);
  border-radius: 10px;
  background: rgba(12, 18, 35, 0.54);
  padding: 8px;
}

.mb-updates-attachment-chip img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 8px;
}

.mb-updates-attachment-chip strong,
.mb-updates-attachment-chip span {
  display: block;
}

.mb-updates-attachment-chip strong {
  color: #eff4ff;
  font-size: 12px;
}

.mb-updates-attachment-chip span {
  margin-top: 3px;
  color: #99abd0;
  font-size: 11px;
}

.mb-updates-attachment-chip button {
  border: 0;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #ecf2ff;
  cursor: pointer;
  font-size: 16px;
}

.mb-updates-composer-error {
  margin: 10px 0 0;
  color: #ff9dac;
  font-size: 12px;
}

.mb-updates-composer-tools {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  border-top: 0;
  padding: 12px 14px;
  margin-top: 0;
  color: #b7c4e1;
  font-size: 12px;
}

.mb-updates-tool-hint {
  display: none;
  color: #91a5cc;
  font-size: 11px;
}

.mb-updates-composer-tools .mk-btn {
  margin-left: auto;
  min-height: 40px;
  padding: 0 16px;
  font-size: 15px;
  border-radius: 6px;
}

.mb-updates-submit-btn::after {
  content: '⌄';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 12px;
  padding-left: 12px;
  border-left: 1px solid rgba(255, 255, 255, 0.22);
}

.mb-updates-list {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mb-updates-empty {
  border: 1px dashed rgba(142, 157, 195, 0.4);
  border-radius: 10px;
  padding: 22px 16px;
  background: rgba(20, 26, 48, 0.56);
  color: #c2cee8;
}

.mb-updates-empty p {
  margin: 0;
}

.mb-updates-empty p + p {
  margin-top: 6px;
  color: #98a8cb;
  font-size: 13px;
}

.mb-updates-entry {
  border: 1px solid rgba(130, 146, 183, 0.34);
  border-radius: 10px;
  background: rgba(21, 27, 51, 0.92);
  overflow: hidden;
}

.mb-updates-entry-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 10px 12px 6px;
}

.mb-updates-entry-author {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #c8d3ef;
  font-size: 12px;
  flex-wrap: wrap;
}

.mb-updates-entry-author strong {
  color: #f1f6ff;
  font-size: 12px;
}

.mb-updates-kind-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 20px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(91, 141, 239, 0.18);
  border: 1px solid rgba(91, 141, 239, 0.42);
  color: #cfe0ff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0;
}

.mb-updates-kind-badge.is-feedback {
  background: rgba(120, 136, 173, 0.14);
  border-color: rgba(120, 136, 173, 0.36);
  color: #c6d1e6;
}

.mb-updates-avatar {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  border: 1px solid rgba(169, 184, 217, 0.5);
  background: rgba(11, 15, 28, 0.72);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: #dbe6ff;
  flex: 0 0 auto;
}

.mb-updates-entry-more {
  color: #8ea1cc;
  font-size: 14px;
}

.mb-updates-entry-content {
  margin: 0;
  padding: 0 12px 10px;
  color: #e8eefc;
  font-size: 14px;
  white-space: normal;
}

.mb-updates-entry-attachments {
  padding: 0 12px 12px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
}

.mb-updates-entry-attachment {
  display: flex;
  flex-direction: column;
  gap: 8px;
  border: 1px solid rgba(128, 143, 178, 0.28);
  border-radius: 10px;
  background: rgba(12, 18, 35, 0.48);
  padding: 8px;
  color: #dce6fb;
  text-decoration: none;
}

.mb-updates-entry-attachment img {
  width: 100%;
  height: 124px;
  border-radius: 8px;
  object-fit: cover;
}

.mb-updates-entry-attachment span {
  font-size: 12px;
}

.mb-updates-feedback-list {
  border-top: 1px solid rgba(120, 136, 173, 0.26);
  border-bottom: 1px solid rgba(120, 136, 173, 0.26);
  padding: 10px 12px 10px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mb-updates-feedback-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.mb-updates-feedback-rail {
  width: 16px;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 0 0 16px;
  padding-top: 3px;
}

.mb-updates-feedback-line {
  width: 2px;
  align-self: stretch;
  flex: 1;
  background: rgba(120, 136, 173, 0.34);
  border-radius: 999px;
  margin-bottom: 4px;
}

.mb-updates-feedback-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #7f93be;
  box-shadow: 0 0 0 3px rgba(127, 147, 190, 0.16);
}

.mb-updates-feedback-item strong {
  display: block;
  color: #edf3ff;
  font-size: 12px;
}

.mb-updates-feedback-item p {
  margin: 2px 0 0;
  color: #c2cee8;
  font-size: 13px;
}

.mb-updates-feedback-content {
  margin-top: 2px;
}

.mb-updates-feedback-content .mb-markdown p:last-child {
  margin-bottom: 0;
}

.mb-markdown {
  color: inherit;
  font-size: 13px;
  line-height: 1.6;
}

.mb-rich-content {
  color: inherit;
  font-size: 13px;
  line-height: 1.6;
  white-space: pre-wrap;
  tab-size: 4;
}

.mb-markdown > :first-child,
.mb-rich-content > :first-child {
  margin-top: 0;
}

.mb-markdown > :last-child,
.mb-rich-content > :last-child {
  margin-bottom: 0;
}

.mb-markdown h1,
.mb-markdown h2,
.mb-markdown h3,
.mb-markdown h4,
.mb-markdown h5,
.mb-markdown h6,
.mb-rich-content h1,
.mb-rich-content h2,
.mb-rich-content h3,
.mb-rich-content h4,
.mb-rich-content h5,
.mb-rich-content h6 {
  margin: 0 0 10px;
  color: #f2f7ff;
  line-height: 1.35;
}

.mb-markdown h1 {
  font-size: 24px;
}

.mb-markdown h2 {
  font-size: 20px;
}

.mb-markdown h3 {
  font-size: 17px;
}

.mb-markdown p,
.mb-markdown ul,
.mb-markdown ol,
.mb-markdown blockquote,
.mb-markdown pre,
.mb-rich-content p,
.mb-rich-content div,
.mb-rich-content ul,
.mb-rich-content ol,
.mb-rich-content blockquote,
.mb-rich-content pre {
  margin: 0 0 10px;
}

.mb-markdown ul,
.mb-markdown ol,
.mb-rich-content ul,
.mb-rich-content ol {
  padding-left: 18px;
}

.mb-markdown blockquote,
.mb-rich-content blockquote {
  border-left: 3px solid rgba(122, 144, 255, 0.42);
  padding-left: 12px;
  color: #b8c9eb;
}

.mb-markdown code,
.mb-rich-content code {
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  padding: 1px 6px;
  font-size: 12px;
}

.mb-markdown mark,
.mb-rich-content mark {
  border-radius: 4px;
  background: rgba(241, 203, 87, 0.26);
  color: #fff3c2;
  padding: 0 3px;
}

.mb-markdown pre,
.mb-rich-content pre {
  overflow: auto;
  border-radius: 10px;
  background: rgba(11, 16, 31, 0.88);
  padding: 12px;
}

.mb-markdown pre code,
.mb-rich-content pre code {
  background: transparent;
  padding: 0;
}

.mb-markdown a,
.mb-rich-content a {
  color: #8fb2ff;
}

.mb-markdown hr,
.mb-rich-content hr {
  border: 0;
  border-top: 1px solid rgba(128, 143, 178, 0.28);
}

.mb-markdown table,
.mb-rich-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 10px;
  overflow: hidden;
  border-radius: 8px;
}

.mb-markdown th,
.mb-markdown td,
.mb-rich-content th,
.mb-rich-content td {
  border: 1px solid rgba(128, 143, 178, 0.28);
  padding: 6px 8px;
  text-align: left;
  vertical-align: top;
}

.mb-markdown th,
.mb-rich-content th {
  background: rgba(255, 255, 255, 0.06);
  color: #f3f7ff;
  font-weight: 700;
}

.mb-markdown-inline-image {
  display: block;
  max-width: min(100%, 280px);
  margin-top: 8px;
  border-radius: 10px;
}

.mb-updates-entry-actions {
  padding: 8px 12px;
  display: inline-flex;
  gap: 10px;
}

.mb-updates-entry-actions button {
  border: 0;
  background: transparent;
  color: #b8c6e6;
  cursor: pointer;
  font-size: 12px;
}

.mb-updates-delete-btn {
  border: 0;
  background: transparent;
  color: #9fb0c7;
  cursor: pointer;
  font-size: 12px;
  padding: 0;
}

.mb-updates-delete-btn:hover {
  color: #ff8fa0;
}

.mb-updates-reply-row {
  border-top: 1px solid rgba(120, 136, 173, 0.26);
  padding: 8px 12px 10px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.mb-updates-reply-composer {
  flex: 1;
  min-width: 0;
  border: 1px solid rgba(132, 147, 183, 0.5);
  border-radius: 8px;
  background: rgba(11, 16, 31, 0.72);
  padding: 8px;
  overflow: hidden;
}

.mb-updates-reply-composer:focus-within {
  outline: none;
  border-color: #5b8def;
}

.mb-updates-reply-textarea {
  width: 100%;
  min-height: 72px;
  resize: vertical;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--text);
  font: inherit;
  line-height: 1.5;
  padding: 0;
}

.mb-updates-reply-textarea::placeholder {
  color: #8fa0bb;
}

.mb-updates-composer-tools.is-reply {
  gap: 6px;
  padding-top: 8px;
  margin-top: 6px;
  padding-left: 0;
  padding-right: 0;
  padding-bottom: 0;
}

.mb-updates-composer-tools.is-reply .mb-updates-tool-chip {
  min-height: 24px;
  padding: 0 8px;
  font-size: 11px;
}

.mb-updates-composer-tools.is-reply .mb-updates-tool-icon {
  min-height: 24px;
  min-width: 24px;
  font-size: 11px;
}

.mb-updates-composer-tools.is-reply .mk-btn {
  min-height: 26px;
}

.mb-updates-feedback-body {
  min-width: 0;
  flex: 1;
  border: 1px solid rgba(120, 136, 173, 0.24);
  border-radius: 10px;
  background: rgba(11, 16, 31, 0.38);
  padding: 10px 12px;
}

.mb-updates-feedback-head {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.mb-updates-feedback-head span {
  color: #8fa0bb;
  font-size: 12px;
}

.mb-date-popover {
  position: fixed;
  z-index: 160;
  width: 216px;
  border: 1px solid var(--mono-border);
  border-radius: 10px;
  background: #0b1118;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  padding: 7px;
}

.mb-date-popover h4 {
  margin: 0 0 6px;
  font-size: 11px;
}

.mb-date-input-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
}

.mb-date-input-btn {
  border: 1px solid var(--mono-border);
  background: #0f1620;
  color: var(--mono-text);
  border-radius: 5px;
  height: 24px;
  text-align: left;
  padding: 0 7px;
  cursor: pointer;
  font-size: 10px;
}

.mb-date-input-btn.is-active {
  border-color: #5b8def;
  box-shadow: 0 0 0 1px rgba(91, 141, 239, 0.32);
}

.mb-date-nav {
  margin-top: 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mb-date-nav strong {
  font-size: 10px;
}

.mb-date-nav-btn {
  width: 17px;
  height: 17px;
  border: 1px solid var(--mono-border);
  border-radius: 5px;
  background: #111a25;
  color: var(--mono-text);
  cursor: pointer;
  font-size: 10px;
  line-height: 1;
  padding: 0;
}

.mb-date-weekday-row {
  margin-top: 6px;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}

.mb-date-weekday-row span {
  text-align: center;
  color: var(--mono-muted);
  font-size: 8px;
}

.mb-date-grid {
  margin-top: 4px;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}

.mb-date-cell {
  border: 1px solid transparent;
  background: transparent;
  color: var(--mono-text);
  border-radius: 5px;
  height: 20px;
  cursor: pointer;
  font-size: 9px;
  padding: 0;
}

.mb-date-cell.is-outside {
  color: #657182;
}

.mb-date-cell.is-today {
  border-color: rgba(168, 182, 212, 0.72);
  box-shadow: inset 0 0 0 1px rgba(168, 182, 212, 0.24);
  color: #dbe4f6;
  font-weight: 700;
}

.mb-date-cell.is-range {
  background: rgba(91, 141, 239, 0.18);
}

.mb-date-cell.is-start,
.mb-date-cell.is-end {
  background: #5b8def;
  color: #061221;
  font-weight: 700;
}

.mb-date-cell.is-today.is-start,
.mb-date-cell.is-today.is-end {
  box-shadow: inset 0 0 0 1px rgba(227, 236, 255, 0.82);
}

.mb-date-cell:hover {
  border-color: rgba(91, 141, 239, 0.55);
}

.mb-type-popover {
  position: fixed;
  z-index: 170;
  width: var(--board-field-width);
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mb-type-list {
  max-height: 210px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mb-type-option {
  width: 100%;
  min-height: var(--board-chip-height);
  border: 0;
  border-radius: 10px;
  padding: 0 12px;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  box-sizing: border-box;
  transition: filter 0.14s ease, box-shadow 0.14s ease;
}

.mb-type-option:hover,
.mb-type-option.is-active {
  filter: brightness(1.03);
  box-shadow: inset 0 0 0 1px rgba(243, 248, 255, 0.4);
}

.mb-type-option-label {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mb-type-option-check {
  color: rgba(247, 252, 255, 0.98);
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
}

.mb-type-empty {
  margin: 8px 0 4px;
  color: var(--mono-muted);
  font-size: 10px;
  text-align: center;
}

.mb-type-add {
  border: 1px solid rgba(140, 154, 176, 0.32);
  border-radius: 10px;
  background: transparent;
  color: rgba(156, 169, 191, 0.74);
  text-align: center;
  padding: 0 10px;
  min-height: var(--board-chip-height);
  cursor: pointer;
  font-size: 18px;
  font-weight: 400;
  line-height: 1;
}

.mb-type-add-input {
  width: 100%;
  min-height: var(--board-chip-height);
  border: 1px solid rgba(140, 154, 176, 0.36);
  border-radius: 10px;
  background: transparent;
  color: #d7e2f4;
  padding: 0 12px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  outline: none;
}

.mb-type-add-input::placeholder {
  color: rgba(156, 169, 191, 0.68);
}

.mb-type-add-input:focus {
  border-color: rgba(163, 178, 201, 0.62);
}

.mb-type-popover .mb-tag-pill {
  min-height: 18px;
  min-width: 44px;
  border-radius: 5px;
  padding: 0 8px;
  font-size: 9px;
}

.mb-type-add:hover {
  border-color: rgba(158, 172, 194, 0.52);
  color: rgba(188, 200, 222, 0.9);
  background: transparent;
}

.mb-chart-view {
  margin-top: 4px;
}

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

.mb-chart-card {
  border: 1px solid var(--mono-border);
  border-radius: 12px;
  background: var(--mono-bg-alt);
  padding: 12px;
}

.mb-chart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.mb-chart-head h4 {
  margin: 0;
  font-size: 14px;
}

.mb-chart-head span {
  color: var(--mono-muted);
  font-size: 12px;
}

.mb-chart-hours {
  margin-top: 10px;
  font-size: 20px;
  font-weight: 700;
}

.mb-chart-bar-track {
  margin-top: 8px;
  height: 8px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
}

.mb-chart-bar-value {
  height: 100%;
  border-radius: inherit;
}

.mb-kanban-view {
  margin-top: 4px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.mb-kanban-column {
  border: 1px solid var(--mono-border);
  border-radius: 12px;
  background: var(--mono-bg-alt);
  min-height: 220px;
  padding: 10px;
  display: flex;
  flex-direction: column;
}

.mb-kanban-col-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.mb-kanban-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
}

.mb-kanban-col-head strong {
  font-size: 14px;
}

.mb-kanban-col-head small {
  margin-left: auto;
  color: var(--mono-muted);
}

.mb-kanban-cards {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mb-kanban-card {
  width: 100%;
  text-align: left;
  border: 1px solid var(--mono-border);
  border-radius: 10px;
  background: #0c1118;
  color: var(--mono-text);
  padding: 10px;
  cursor: pointer;
}

.mb-kanban-card h5 {
  margin: 0;
  font-size: 13px;
}

.mb-kanban-card p {
  margin: 6px 0 0;
  color: var(--mono-muted);
  font-size: 12px;
}

.mb-kanban-empty {
  margin: 4px 0 0;
  color: var(--mono-muted);
  font-size: 12px;
}

@media (max-width: 1200px) {
  .mk-page {
    padding-inline: 10%;
  }

  .mk-hero {
    grid-template-columns: 1fr;
  }

  .mk-hero-visual {
    min-height: 220px;
  }

  .mk-cube {
    right: 36%;
    top: 48px;
  }

  .fb-filter-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1100px) {
  .mk-quick-card,
  .mk-grid-3,
  .placeholder-grid,
  .billing-cards {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 860px) {
  .app-shell {
    padding: 12px;
  }

  .mk-page {
    padding: 12px 16px 34px;
  }

  .mk-topbar {
    border-radius: 16px;
  }

  .mk-actions {
    margin-left: auto;
  }

  .fb-topbar {
    flex-direction: column;
    align-items: stretch;
  }

  .fb-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .fb-filter-panel {
    grid-template-columns: 1fr;
  }

  .fb-column {
    width: 290px;
    min-width: 290px;
  }

  .fb-detail-grid {
    grid-template-columns: 1fr;
  }

  .mk-topbar {
    flex-wrap: wrap;
  }

  .mk-nav {
    width: 100%;
    order: 3;
    justify-content: center;
  }

  .mk-hero {
    padding: 30px 24px;
  }

  .mk-hero h1 {
    font-size: clamp(36px, 11vw, 52px);
  }

  .mk-hero-visual {
    display: none;
  }

  .saas-shell {
    --saas-main-offset-left: 0px;
    --saas-main-center-shift: 0px;
    grid-template-columns: 1fr;
  }

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

  .mk-quick-card,
  .mk-grid-3,
  .placeholder-grid,
  .billing-cards {
    grid-template-columns: 1fr;
  }

  .members-add,
  .saas-workspace-create {
    grid-template-columns: 1fr;
  }

  .saas-main-right {
    width: 100%;
    align-items: flex-start;
  }

  .saas-category-tabs {
    justify-content: flex-start;
  }

  .gantt-topbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .gantt-table {
    --gantt-col-group-width: 150px;
    --gantt-col-task-width: 220px;
    --gantt-col-period-width: 150px;
  }

  .gantt-header-row,
  .gantt-add-row {
    grid-template-columns: var(--gantt-col-group-width) var(--gantt-col-task-width) var(--gantt-col-period-width) minmax(
        var(--gantt-timeline-width),
        var(--gantt-timeline-width)
      );
  }

  .gantt-group-block {
    grid-template-columns: var(--gantt-col-group-width) minmax(
        calc(var(--gantt-col-task-width) + var(--gantt-col-period-width) + var(--gantt-timeline-width)),
        calc(var(--gantt-col-task-width) + var(--gantt-col-period-width) + var(--gantt-timeline-width))
      );
  }

  .gantt-group-rows .gantt-data-row {
    grid-template-columns: var(--gantt-col-task-width) var(--gantt-col-period-width) minmax(
        var(--gantt-timeline-width),
        var(--gantt-timeline-width)
      );
  }

  .files-row {
    grid-template-columns: 1fr;
  }

  .calendar-page-shell {
    min-height: auto;
  }

  .mb-toolbar-meta {
    margin-left: 0;
    width: 100%;
  }

  .mb-chart-grid,
  .mb-kanban-view {
    grid-template-columns: 1fr;
  }
}

/* Board.pen inspired full-app visual override */
:root {
  --mono-bg: #090c12;
  --mono-bg-alt: #0f1520;
  --mono-surface: #141a25;
  --mono-surface-alt: #1a2230;
  --mono-border: #2a3341;
  --mono-border-soft: #313b4d;
  --mono-text: #eef3fb;
  --mono-muted: #a7b1c2;
  --mono-accent: #7e6ce6;
  --mono-accent-soft: rgba(126, 108, 230, 0.2);
  --mono-success: #4fb98c;
  --mono-warning: #dca35f;
  --mono-info: #5c8ddb;
  --mono-danger: #d8647e;
  --mono-shadow: 0 14px 34px rgba(0, 0, 0, 0.42);

  --bg: var(--mono-bg);
  --bg-alt: var(--mono-bg-alt);
  --surface: var(--mono-surface);
  --surface-alt: var(--mono-surface-alt);
  --border: var(--mono-border);
  --text: var(--mono-text);
  --text-muted: var(--mono-muted);
  --primary: var(--mono-accent);
  --primary-strong: #9283ef;
  --primary-soft: var(--mono-accent-soft);
}

body {
  background:
    radial-gradient(1200px 520px at 12% -10%, rgba(126, 108, 230, 0.1), transparent 60%),
    radial-gradient(900px 420px at 88% 0%, rgba(92, 141, 219, 0.08), transparent 56%),
    var(--mono-bg);
  color: var(--mono-text);
  font-family: "Geist", "Inter", "Pretendard", "Noto Sans KR", "Segoe UI", sans-serif;
}

input,
select,
textarea {
  border-color: var(--mono-border);
  background: var(--mono-surface);
  color: var(--mono-text);
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
a:focus-visible {
  outline-color: var(--mono-accent);
}

.mk-page,
.auth-page,
.saas-shell {
  background: transparent;
}

.auth-card,
.saas-sidebar,
.saas-main-header,
.placeholder-card,
.members-row,
.calendar-cell,
.files-row-head,
.billing-card,
.files-table,
.fb-detail-panel:not(.is-open),
.mb-group,
.mb-status-popover,
.mb-priority-popover,
.mb-assignee-popover,
.mb-type-popover,
.mb-date-popover,
.mb-updates-modal {
  border-color: var(--mono-border);
  background: var(--mono-bg-alt);
  color: var(--mono-text);
  box-shadow: var(--mono-shadow);
}

.saas-shell {
  --saas-main-offset-left: 238px;
  --saas-main-center-shift: 119px;
  grid-template-columns: 220px minmax(0, 1fr);
  column-gap: 18px;
}

.saas-sidebar {
  border-right-color: var(--mono-border);
  background: rgba(10, 15, 23, 0.94);
  backdrop-filter: blur(8px);
}

.workspace-switcher-trigger,
.workspace-quick-add-btn,
.workspace-kind-option,
.workspace-nav-item,
.mk-btn-ghost,
.fb-btn-ghost {
  background: var(--mono-surface);
  border-color: var(--mono-border);
}

.workspace-kind-option.is-active {
  border-color: rgba(143, 124, 248, 0.9);
  background: rgba(143, 124, 248, 0.24);
}

.workspace-nav-row {
  border-color: #2a3341;
  background: #101825;
}

.workspace-nav-row.is-active {
  border-color: #8f7cf8;
  box-shadow:
    0 0 0 1px rgba(143, 124, 248, 0.58),
    0 0 0 3px rgba(143, 124, 248, 0.2);
  background: linear-gradient(135deg, rgba(143, 124, 248, 0.3), rgba(124, 109, 233, 0.24));
}

.workspace-nav-row .workspace-nav-item,
.workspace-nav-row .workspace-nav-item:hover,
.workspace-nav-row .workspace-nav-item.is-active {
  border-color: transparent;
  background: transparent;
}

.workspace-nav-name {
  color: #d7e0ef;
  font-size: 12px;
}

.workspace-nav-section-title {
  color: #718198;
}

.workspace-nav-inline-edit input {
  border-color: #3a4a63;
  background: #172335;
  color: #e8effd;
}

.workspace-context-menu {
  border-color: #2b3a52;
  background: #101928;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.5);
}

.workspace-context-menu button {
  color: #d6e1f3;
}

.workspace-context-menu button:hover:not(:disabled) {
  background: #182233;
}

.workspace-context-menu button.is-danger {
  color: #ff9dac;
}

.workspace-delete-modal {
  border-color: #30415c;
  background: #101928;
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.58);
}

.workspace-delete-modal p {
  color: #b8c6e3;
}

.workspace-delete-modal-note {
  color: #ff9dac !important;
}

.workspace-switcher-trigger.is-open {
  border-color: var(--mono-accent);
  box-shadow: 0 0 0 1px rgba(126, 108, 230, 0.25);
}

.workspace-switcher-panel {
  border-color: var(--mono-border-soft);
  background: #141c29;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5);
}

.workspace-switcher-search input,
.workspace-switcher-create input {
  border-color: var(--mono-border-soft);
  background: #111826;
  color: var(--mono-text);
}

.workspace-switcher-item:hover {
  background: rgba(126, 108, 230, 0.16);
}

.workspace-switcher-item.is-active {
  background: rgba(126, 108, 230, 0.28);
}

.workspace-switcher-avatar {
  border-radius: 999px;
  background: linear-gradient(135deg, #7e6ce6, #5c8ddb);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.15);
}

.workspace-switcher-footer {
  border-top-color: var(--mono-border);
  background: #111826;
}

.workspace-switcher-add:hover {
  background: rgba(126, 108, 230, 0.15);
}

.workspace-quick-add-btn:hover {
  border-color: var(--mono-border-soft);
  background: var(--mono-surface-alt);
}

.auth-card p,
.auth-form label,
.auth-footer,
.saas-main-header p,
.saas-workspace p,
.placeholder-card p,
.calendar-head p,
.calendar-weekday,
.gantt-range,
.files-row-head,
.files-empty,
.members-row p,
.billing-card p,
.workspace-switcher-section h4,
.workspace-switcher-empty,
.workspace-switcher-add,
.saas-nav-item,
.mb-group-meta,
.mb-table thead th,
.mb-table tfoot td {
  color: var(--mono-muted);
}

.mk-logo-dot {
  background: #cfd7ea;
}

.mk-eyebrow {
  color: #d5ddee;
}

.mk-nav a {
  color: var(--mono-muted);
}

.mk-nav a:hover {
  color: var(--mono-text);
}

.mk-btn-primary {
  border-color: var(--mono-accent);
  background: var(--mono-accent);
  color: #f9f8ff;
}

.mk-btn-primary:hover {
  border-color: #9283ef;
  background: #9283ef;
}

.mk-btn-ghost:hover,
.fb-btn-ghost:hover {
  border-color: var(--mono-border-soft);
  background: var(--mono-surface-alt);
}

.saas-nav-item:hover {
  border-color: var(--mono-border-soft);
  background: var(--mono-surface-alt);
  color: var(--mono-text);
}

.saas-nav-item.is-active {
  border-color: #4a5a72;
  background: rgba(126, 108, 230, 0.17);
  color: var(--mono-text);
}

.saas-category-tab.is-active,
.mb-tab.is-active {
  border-color: var(--mono-border-soft);
  background: rgba(126, 108, 230, 0.2);
  color: var(--mono-text);
}

.mb-board-tabs {
  border-bottom-color: var(--mono-border);
}

.mb-group {
  background: #0f1622;
}

.mb-group-head {
  background: linear-gradient(90deg, rgba(126, 108, 230, 0.14), rgba(92, 141, 219, 0.04) 55%, transparent);
}

.mb-table-wrap {
  border-top-color: var(--mono-border);
}

.mb-table th,
.mb-table td {
  border-right-color: var(--mono-border);
  border-bottom-color: var(--mono-border);
  background: #0f1520;
}

.mb-row-delete:hover {
  background: rgba(216, 100, 126, 0.18);
  color: #ffd7df;
}

.mb-task-action {
  border-color: var(--mono-border-soft);
  background: #141c29;
  color: #b5c0d5;
}

.mb-task-action:hover {
  border-color: #657a9c;
  background: #1d2738;
  color: #f0f4fc;
}

.mb-task-action.is-feedback {
  color: #b9cdee;
}

.mb-task-action-bubble {
  filter: grayscale(1) saturate(0) brightness(1.35);
}

.mb-task-action-count {
  border-color: rgba(223, 236, 255, 0.44);
  background: var(--mono-accent);
}

.mb-assignee-field {
  border-color: #3a4860;
  background: #151e2d;
}

.mb-assignee-field.is-empty {
  border-color: #39455a;
  background: #111826;
}

.mb-assignee-field:hover,
.mb-assignee-field.is-open {
  border-color: #6c89b9;
  box-shadow: 0 0 0 1px rgba(108, 137, 185, 0.3);
}

.mb-assignee-icon {
  border-color: #5f7394;
  background: #dbe5f7;
}

.mb-assignee-icon-head,
.mb-assignee-icon-body {
  background: #324667;
}

.mb-assignee-popover,
.mb-priority-popover,
.mb-status-popover,
.mb-type-popover,
.mb-date-popover {
  border-color: var(--mono-border-soft);
  background: #111a28;
}

.mb-updates-backdrop,
.calendar-modal-backdrop {
  background: rgba(4, 8, 14, 0.7);
}

.mb-updates-entry,
.mb-updates-empty {
  border-color: var(--mono-border-soft);
  background: #141c29;
}

.mb-updates-entry-author,
.mb-updates-feedback-item p,
.mb-updates-entry-actions button,
.mb-updates-title-wrap p {
  color: var(--mono-muted);
}

.mb-updates-entry-author strong,
.mb-updates-feedback-item strong,
.mb-updates-entry-content {
  color: var(--mono-text);
}

.calendar-cell {
  border-color: var(--mono-border);
  background: rgba(15, 21, 32, 0.72);
}

.calendar-cell:hover {
  border-color: #4a5e7d;
  box-shadow: inset 0 0 0 1px rgba(154, 173, 198, 0.24);
}

.calendar-cell.is-muted {
  opacity: 0.42;
  border-color: rgba(83, 98, 121, 0.44);
  background: rgba(9, 14, 22, 0.4);
}

.calendar-cell.is-muted:hover {
  border-color: rgba(98, 113, 136, 0.46);
  box-shadow: none;
}

.calendar-cell.is-today {
  border-color: var(--mono-accent);
}

.calendar-weekday.is-sunday,
.calendar-date-number.is-sunday,
.calendar-date-number.is-holiday,
.calendar-holiday-name {
  color: #ff7b8a;
}

.calendar-weekday.is-saturday,
.calendar-date-number.is-saturday {
  color: #7bc6ff;
}

.calendar-event-item {
  color: #e8eef8;
}

.calendar-grid {
  --calendar-watermark-color: rgba(178, 190, 208, 0.1);
}

.gantt-table-wrap {
  border: 0;
  background: transparent;
}

.gantt-cell {
  border-top-color: rgba(118, 135, 164, 0.14);
  border-right-color: rgba(118, 135, 164, 0.14);
  background: transparent;
}

.gantt-col-group,
.gantt-col-task,
.gantt-col-period {
  background: #090c12;
}

.gantt-header-row .gantt-cell,
.gantt-month-row,
.gantt-week-row {
  background: transparent;
}

.gantt-month-cell,
.gantt-week-cell {
  border-right-color: rgba(118, 135, 164, 0.14);
}

.files-row {
  border-top-color: var(--mono-border);
}

.billing-card.is-active {
  border-color: #5d6d86;
  background: rgba(126, 108, 230, 0.15);
}

/* Board table field style polish (reference-like) */
.mb-feedback-cell .mb-task-action {
  width: 34px;
  height: 30px;
  border-radius: 999px;
  border: 1px solid #3b4b66;
  background: #111a28;
  color: #aebbd1;
}

.mb-task-action-bubble {
  width: 14px;
  height: 14px;
  font-size: 0;
  line-height: 0;
}

.mb-task-action.is-feedback {
  color: #b3c0d6;
}

.mb-task-action-count {
  right: -5px;
  top: -6px;
  min-width: 15px;
  height: 15px;
  border-color: rgba(227, 237, 255, 0.58);
  background: #7e6ce6;
}

.mb-status-field {
  width: auto;
  min-width: 76px;
  min-height: 28px;
  border: 0;
  border-radius: 7px;
  padding: 0 12px;
  font-size: 13px;
  font-weight: 800;
  text-shadow: none;
  box-shadow: none;
}

.mb-status-field > span {
  font-size: 13px;
}

.mb-status-field::before,
.mb-status-field.is-open::after {
  display: none;
}

.mb-status-field:hover,
.mb-status-field.is-open {
  filter: brightness(1.04);
  box-shadow: 0 0 0 1px rgba(248, 251, 255, 0.2) inset;
}

.mb-status-field.is-waiting,
.mb-status-option.is-waiting {
  --mb-status-bg: #7f879f;
  --mb-status-fg: #f3f6ff;
}

.mb-status-field.is-progress,
.mb-status-option.is-progress {
  --mb-status-bg: #e5a957;
  --mb-status-fg: #fffaf0;
}

.mb-status-field.is-done,
.mb-status-option.is-done {
  --mb-status-bg: #3dc78f;
  --mb-status-fg: #f3fff9;
}

.mb-status-field.is-issue,
.mb-status-option.is-issue {
  --mb-status-bg: #d8647e;
  --mb-status-fg: #fff7fa;
}

.mb-status-field.is-review,
.mb-status-option.is-review {
  --mb-status-bg: #7e6ce6;
  --mb-status-fg: #f7f4ff;
}

.mb-status-popover {
  border: 1px solid #2b3a52;
  border-radius: 10px;
  background: #101928;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.5);
  padding: 10px;
  gap: 10px;
}

.mb-status-popover::before {
  border-bottom-color: #101928;
}

.mb-status-popover-head {
  font-size: 14px;
  font-weight: 700;
  color: #d6e0f3;
}

.mb-status-option-list {
  gap: 8px;
}

.mb-status-option {
  min-height: 42px;
  border-radius: 6px;
  border: 0;
  font-size: 14px;
  font-weight: 800;
}

.mb-status-option > span {
  font-size: 14px;
}

.mb-priority-field {
  min-height: 28px;
  min-width: 76px;
  border: 0;
  border-radius: 7px;
  padding: 0 12px;
  gap: 0;
  font-size: 13px;
  font-weight: 800;
}

.mb-priority-field.is-open,
.mb-priority-field:hover {
  filter: brightness(1.05);
  box-shadow: 0 0 0 1px rgba(248, 251, 255, 0.2) inset;
}

.mb-priority-field.is-low {
  background: #4f6fa8;
  color: #f4f8ff;
}

.mb-priority-field.is-medium {
  background: #39c68e;
  color: #f6fffb;
}

.mb-priority-field.is-high {
  background: #b9893d;
  color: #fff5e6;
}

.mb-priority-field.is-urgent {
  background: #d8647e;
  color: #fff6f9;
}

.mb-priority-chevron {
  display: none;
}

.mb-priority-popover {
  border: 1px solid #2b3a52;
  border-radius: 8px;
  background: #101928;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.48);
}

.mb-priority-option {
  padding: 10px 8px;
  font-size: 14px;
}

/* board.pen + captured layout fidelity override */
.board-page-shell.mb-board-shell {
  border: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
  gap: 14px;
}

.board-page-shell .board-page-header {
  align-items: center;
  padding: 0 2px;
}

.board-page-shell .board-page-header h3 {
  margin: 0;
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #f4f7ff;
}

.board-page-shell .board-page-header p {
  margin-top: 6px;
  font-size: 13px;
  color: #9aa6bd;
}

.board-page-shell .board-page-controls select {
  min-width: 172px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid #2a3341;
  background: #141a25;
  color: #dde5f5;
  font-size: 13px;
}

.board-page-shell .mb-board-tabs {
  position: relative;
  z-index: 60;
  gap: 14px;
  border-bottom: 1px solid #2a3341;
  padding-bottom: 10px;
  pointer-events: auto;
}

.board-page-shell .mb-tab {
  position: relative;
  z-index: 61;
  height: 30px;
  border-radius: 999px;
  padding: 0 12px;
  color: #9aa6bd;
  font-size: 15px;
  font-weight: 700;
  pointer-events: auto;
}

.board-page-shell .mb-tab.is-active {
  background: #7e6ce6;
  color: #f7f4ff;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08) inset;
}

.board-page-shell .mb-board-toolbar {
  gap: 6px;
  padding: 0;
  background: transparent;
  border: 0;
}

.board-page-shell .mb-toolbar-search {
  max-width: 240px;
}

.board-page-shell .mb-toolbar-search input {
  height: 18px;
  padding: 0 2px;
  border: 0 !important;
  border-radius: 0;
  background: transparent !important;
  box-shadow: none !important;
  color: #818b9b;
  font-size: 9px;
  font-weight: 400;
}

.board-page-shell .mb-toolbar-search input::placeholder {
  color: #768092;
}

.board-page-shell .mb-toolbar-search input:focus {
  outline: none;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.board-page-shell .mb-board-toolbar .mb-toolbar-btn {
  min-height: 18px;
  padding: 0 6px;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #818b9b;
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1;
  cursor: pointer;
}

.board-page-shell .mb-board-toolbar .mb-toolbar-btn:hover {
  color: #99a3b4;
  background: transparent !important;
}

.board-page-shell .mb-board-toolbar .mb-toolbar-btn.is-active,
.board-page-shell .mb-board-toolbar .mb-toolbar-btn[aria-pressed='true'] {
  color: #aeb6c5;
}

.board-page-shell .mb-toolbar-meta {
  gap: 8px;
  color: #6f798a;
  font-size: 9px;
  font-weight: 400;
}

.board-page-shell .mb-group-list {
  gap: 14px;
}

.board-page-shell {
  --board-field-width: 112px;
  --board-chip-height: 30px;
  --group-color: #5b8def;
  --group-color-rgb: 91, 141, 239;
}

.board-page-shell .mb-group {
  border: 0;
  border-radius: 12px;
  background: #0b0d11;
  box-shadow: none;
  overflow: hidden;
}

.board-page-shell .mb-group.is-dragging {
  opacity: 0.55;
}

.board-page-shell .mb-group.is-drag-over {
  outline: 1px dashed rgba(168, 184, 212, 0.65);
  outline-offset: -1px;
}

.board-page-shell .mb-group-head {
  min-height: 54px;
  padding: 0 14px;
  cursor: grab;
  background: linear-gradient(
      90deg,
      rgba(var(--group-color-rgb), 0.24),
      rgba(var(--group-color-rgb), 0.08) 18%,
      transparent 28%
    ),
    #0b0d11;
}

.board-page-shell .mb-group-head:active {
  cursor: grabbing;
}

.board-page-shell .mb-group-caret {
  color: #9aa6bd;
}

.board-page-shell .mb-group-title {
  font-size: 19px;
  font-weight: 800;
  color: #f4f7ff;
  letter-spacing: -0.01em;
  cursor: text;
}

.board-page-shell .mb-group-title-wrap {
  display: inline-flex;
  align-items: center;
}

.board-page-shell .mb-group-title-input {
  width: 170px;
  height: 28px;
  border: 1px solid #536786;
  border-radius: 7px;
  background: #121925;
  color: #f4f7ff;
  font-size: 15px;
  font-weight: 600;
  padding: 0 10px;
}

.board-page-shell .mb-group-title-input:focus {
  outline: none;
  border-color: #7b94ba;
  box-shadow: 0 0 0 1px rgba(123, 148, 186, 0.26);
}

.board-page-shell .mb-group-meta {
  font-size: 13px;
  font-weight: 700;
  color: #9aa6bd;
}

.board-page-shell .mb-table-wrap {
  border-top: 1px solid #21252c;
  border-left: 0;
  background: #0b0d11;
}

.board-page-shell .mb-table tbody td:first-child,
.board-page-shell .mb-table tfoot td:first-child {
  position: relative;
}

.board-page-shell .mb-table tbody td:first-child::before,
.board-page-shell .mb-table tfoot td:first-child::before {
  content: '';
  position: absolute;
  left: 0;
  top: -1px;
  bottom: -1px;
  width: 6px;
  background: var(--group-color);
  opacity: 0.95;
  pointer-events: none;
}

.board-page-shell .mb-table tbody tr:first-child td:first-child::before {
  border-top-left-radius: 6px;
}

.board-page-shell .mb-table tfoot tr:last-child td:first-child::before {
  border-bottom-left-radius: 6px;
  opacity: 0.45;
}

.board-page-shell .mb-table thead th {
  height: 38px;
  background: #11141a;
  color: #9097a5;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.board-page-shell .mb-table tbody tr {
  height: 46px;
}

.board-page-shell .mb-table tbody tr.mb-add-row {
  height: 28px;
}

.board-page-shell .mb-table tbody tr.mb-task-row.is-dragging td {
  opacity: 0.54;
}

.board-page-shell .mb-table tbody tr.mb-task-row.is-drag-over td {
  box-shadow: inset 0 1px 0 rgba(132, 161, 206, 0.76);
}

.board-page-shell .mb-table tbody td {
  font-size: 14px;
  font-weight: 400;
}

.board-page-shell .mb-table th,
.board-page-shell .mb-table td {
  border-right: 0;
  border-bottom: 1px solid #1d2128;
  background: #0e1117;
  padding: 6px 12px;
}

.board-page-shell .mb-table th:first-child,
.board-page-shell .mb-table td:first-child {
  padding-left: 2px;
  padding-right: 2px;
}

.board-page-shell .mb-table th:nth-child(4),
.board-page-shell .mb-table th:nth-child(5),
.board-page-shell .mb-table th:nth-child(6),
.board-page-shell .mb-table td:nth-child(4),
.board-page-shell .mb-table td:nth-child(5),
.board-page-shell .mb-table td:nth-child(6) {
  padding-left: 4px;
  padding-right: 4px;
}

.board-page-shell .mb-table tbody tr:hover td {
  background: #13171e;
}

.board-page-shell .mb-table tfoot td {
  background: #0d1016;
  color: #8f97a6;
  height: 28px;
  padding-top: 2px;
  padding-bottom: 2px;
  vertical-align: middle;
}

.board-page-shell .mb-table input[type='checkbox'] {
  appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 2px;
  border: 1px solid #2a3340;
  background: #0b0f16;
  display: inline-block;
  vertical-align: middle;
  cursor: pointer;
  margin: 0;
  position: relative;
}

.board-page-shell .mb-table input[type='checkbox']:hover {
  border-color: #374354;
  background: #0f141d;
}

.board-page-shell .mb-table input[type='checkbox']:checked {
  border-color: #55627a;
  background: #334055;
}

.board-page-shell .mb-table input[type='checkbox']:checked::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 4px;
  height: 7px;
  border: solid #f6f8fc;
  border-width: 0 1.5px 1.5px 0;
  transform: translate(-50%, -56%) rotate(45deg);
}

.board-page-shell .mb-task-title-text {
  font-size: 14px;
  font-weight: 400;
  color: #f1f5ff;
}

.board-page-shell .mb-task-title-cell {
  padding-left: 6px;
}

.board-page-shell .mb-task-title-wrap {
  cursor: grab;
}

.board-page-shell .mb-task-row.is-idea-child-task .mb-task-title-cell {
  padding-left: 12px;
}

.board-page-shell .mb-table tbody tr.mb-task-row.is-idea-child-task td {
  height: 38px;
  padding-top: 5px;
  padding-bottom: 5px;
  color: #8f99ad;
}

.board-page-shell .mb-task-row.is-idea-child-task .mb-task-title-wrap {
  justify-content: flex-start;
  gap: 7px;
}

.board-page-shell .mb-task-child-icon {
  display: inline-flex;
  width: 13px;
  height: 16px;
  flex: 0 0 13px;
  align-items: center;
  justify-content: center;
  color: #8d96a8;
  font-size: 12px;
  line-height: 1;
}

.board-page-shell .mb-task-row.is-idea-child-task .mb-task-title-text {
  color: #a7b0c1;
  font-size: 12px;
}

.board-page-shell .mb-task-title-wrap:active {
  cursor: grabbing;
}

.board-page-shell .mb-task-title-input {
  height: 26px;
  border-color: #3e4f69;
  background: #111826;
  color: #f1f5ff;
  font-size: 14px;
  font-weight: 500;
}

.board-page-shell .mb-task-title-input:focus {
  border-color: #6f86ab;
  box-shadow: 0 0 0 1px rgba(111, 134, 171, 0.24);
}

.board-page-shell .mb-feedback-cell .mb-task-action {
  width: 34px;
  height: 30px;
  border-radius: 999px;
  border: 1px solid #334666;
  background: #121b2b;
  color: #aebad0;
}

.board-page-shell .mb-task-action-bubble {
  width: 15px;
  height: 15px;
}

.board-page-shell .mb-task-action-count {
  background: #7e6ce6;
}

.board-page-shell .mb-status-field {
  width: var(--board-field-width);
  min-width: var(--board-field-width);
  max-width: var(--board-field-width);
  min-height: var(--board-chip-height);
  border-radius: 7px;
  border: 0;
  padding: 0 12px;
  box-shadow: none;
  justify-content: center;
  text-align: center;
}

.board-page-shell .mb-status-field > span {
  font-size: 12px;
  font-weight: 400;
}

.board-page-shell .mb-status-field::before,
.board-page-shell .mb-status-field.is-open::after {
  display: none;
}

.board-page-shell .mb-status-field.is-waiting,
.board-page-shell .mb-status-option.is-waiting {
  --mb-status-bg: #7f879f;
  --mb-status-fg: #f4f7ff;
}

.board-page-shell .mb-status-field.is-progress,
.board-page-shell .mb-status-option.is-progress {
  --mb-status-bg: #e5a957;
  --mb-status-fg: #fffaf0;
}

.board-page-shell .mb-status-field.is-progress.has-progress,
.board-page-shell .mb-status-option.is-progress.has-progress {
  background:
    linear-gradient(
      90deg,
      var(--mb-status-bg) 0 var(--mb-status-progress, 50%),
      rgba(229, 169, 87, 0.22) var(--mb-status-progress, 50%) 100%
    );
}

.board-page-shell .mb-status-field.is-done,
.board-page-shell .mb-status-option.is-done {
  --mb-status-bg: #3dc78f;
  --mb-status-fg: #f3fff9;
}

.board-page-shell .mb-status-field.is-issue,
.board-page-shell .mb-status-option.is-issue {
  --mb-status-bg: #d8647e;
  --mb-status-fg: #fff7fa;
}

.board-page-shell .mb-status-field.is-review,
.board-page-shell .mb-status-option.is-review {
  --mb-status-bg: #7e6ce6;
  --mb-status-fg: #f7f4ff;
}

.board-page-shell .mb-status-popover {
  border: 0;
  border-radius: 10px;
  padding: 8px 0;
}

.board-page-shell .mb-status-option-list {
  gap: 6px;
  padding: 0;
}

.board-page-shell .mb-status-option {
  width: 100%;
  min-height: var(--board-chip-height);
  border: 0;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 400;
  padding: 0 12px;
  box-sizing: border-box;
}

.board-page-shell .mb-status-option > span {
  font-size: 12px;
  font-weight: 400;
  line-height: 1;
}

.board-page-shell .mb-status-option-check {
  right: 12px;
  font-size: 12px;
  font-weight: 500;
}

.board-page-shell .mb-priority-field {
  min-height: var(--board-chip-height);
  width: var(--board-field-width);
  min-width: var(--board-field-width);
  max-width: var(--board-field-width);
  border: 0;
  border-radius: 7px;
  padding: 0 12px;
  gap: 0;
}

.board-page-shell .mb-priority-field span:first-child {
  font-size: 12px;
  font-weight: 400;
}

.board-page-shell .mb-priority-chevron {
  display: none;
}

.board-page-shell .mb-priority-field.is-low {
  background: #33558f;
  color: #eef4ff;
}

.board-page-shell .mb-priority-field.is-medium {
  background: #4d5d75;
  color: #f1f5fb;
}

.board-page-shell .mb-priority-field.is-high {
  background: #876623;
  color: #fff1d2;
}

.board-page-shell .mb-priority-field.is-urgent {
  background: #8a2f58;
  color: #ffe8f1;
}

.board-page-shell .mb-priority-popover {
  border: 0;
  border-radius: 0;
  background: #0e1117;
  box-shadow: none;
  overflow: visible;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 0;
}

.board-page-shell .mb-priority-option {
  width: 100%;
  min-height: var(--board-chip-height);
  padding: 0 12px;
  box-sizing: border-box;
  font-size: 12px;
  font-weight: 400;
  border: 0;
  border-radius: 7px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.board-page-shell .mb-priority-option > span {
  font-size: 12px;
  font-weight: 400;
  line-height: 1;
}

.board-page-shell .mb-priority-option.is-low {
  background: #2f4f87;
  color: #edf4ff;
}

.board-page-shell .mb-priority-option.is-medium {
  background: #4d5d75;
  color: #f2f5fb;
}

.board-page-shell .mb-priority-option.is-high {
  background: #825f1d;
  color: #ffefcc;
}

.board-page-shell .mb-priority-option.is-urgent {
  background: #8a2b57;
  color: #ffe8f2;
}

.board-page-shell .mb-priority-option:hover,
.board-page-shell .mb-priority-option.is-selected {
  filter: brightness(1.04);
  box-shadow: inset 0 0 0 1px rgba(244, 248, 255, 0.24);
}

.board-page-shell .mb-priority-option-check {
  position: absolute;
  right: 12px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  color: rgba(248, 253, 255, 0.98);
}

.board-page-shell .mb-type-button {
  width: var(--board-field-width);
  min-width: var(--board-field-width);
  max-width: var(--board-field-width);
  min-height: 30px;
  border: 0;
  border-radius: 7px;
  padding: 0;
}

.board-page-shell .mb-type-button:hover,
.board-page-shell .mb-type-button.is-open {
  border: 0;
  background: transparent;
}

.board-page-shell .mb-tag-pill {
  min-height: 30px;
  width: var(--board-field-width);
  min-width: var(--board-field-width);
  max-width: var(--board-field-width);
  justify-content: center;
  border: 0;
  border-radius: 7px;
  padding: 0 12px;
  background: #6f59c8;
  color: #f6f2ff;
  font-size: 12px;
  font-weight: 400;
}

.board-page-shell .mb-type-placeholder {
  font-size: 12px;
}

.board-page-shell .mb-period-button {
  width: 100%;
  max-width: 146px;
  min-height: 30px;
  border: 1px solid #29384f;
  border-radius: 8px;
  background: #0f1724;
  color: #d1dbed;
  font-size: 12px;
  font-weight: 400;
  padding: 0 10px;
  box-shadow: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.board-page-shell .mb-period-button > span {
  position: relative;
  z-index: 1;
}

.board-page-shell .mb-period-button.is-empty {
  border-style: dashed;
  border-color: #394760;
  background: rgba(15, 23, 36, 0.4);
  color: #95a2ba;
}

.board-page-shell .mb-period-button:hover,
.board-page-shell .mb-period-button.is-open {
  border-color: #6e8fbf;
  box-shadow: 0 0 0 1px rgba(110, 143, 191, 0.28);
}

.board-page-shell .mb-assignee-field {
  width: 74px;
  height: 30px;
  border-radius: 999px;
  border: 1px solid #334666;
  background: #121b2b;
  color: #c7d2e6;
}

.board-page-shell .mb-assignee-line-icon {
  width: 14px;
  height: 14px;
}

.board-page-shell .mb-memo-input {
  padding: 0;
  border: 0;
  background: transparent;
  color: #f1f5ff;
  font-size: 12px;
  font-weight: 400;
}

.board-page-shell .mb-cell-center {
  font-size: 12px;
}

.board-page-shell .mb-memo-input:focus {
  border: 0;
  background: transparent;
  box-shadow: none;
}

.board-page-shell .mb-row-delete {
  color: #7d8aa2;
}

.board-page-shell .mb-add-row td {
  background: #0e1117;
  height: 37px;
  padding-top: 6px;
  padding-bottom: 6px;
  vertical-align: middle;
}

.board-page-shell .mb-add-row-wrap {
  min-height: 24px;
  gap: 4px;
  color: #8f97a6;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.35;
}

.board-page-shell .mb-add-row-wrap input {
  color: #8f97a6;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.35;
  min-height: 24px;
  padding: 2px 0;
  caret-color: #8fb8e6;
}

.board-page-shell .mb-add-row-wrap input::placeholder {
  color: #8f97a6;
}

.board-page-shell .mb-add-row-wrap input:focus {
  text-shadow: 0 0 0 #8f97a6;
}

.board-page-shell .mb-add-row:hover td {
  background: #0e1117;
}

.board-page-shell .mb-table tbody tr.mb-add-row.is-drop-end td {
  box-shadow: inset 0 1px 0 rgba(132, 161, 206, 0.76);
}

.board-page-shell .mb-group-create > .mk-btn {
  min-height: 26px;
  font-size: 11px;
  font-weight: 500;
  padding: 0 10px;
}

.board-page-shell .mb-group-create-form {
  align-items: center;
  gap: 8px;
}

.board-page-shell .mb-group-color-picker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 4px;
}

.board-page-shell .mb-group-color-dot {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  border: 1px solid rgba(14, 18, 24, 0.82);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
  padding: 0;
  cursor: pointer;
}

.board-page-shell .mb-group-color-dot:hover {
  transform: translateY(-1px);
}

.board-page-shell .mb-group-color-dot.is-selected {
  box-shadow:
    0 0 0 2px #dfe7f6,
    0 0 0 3px rgba(13, 17, 24, 0.95),
    inset 0 0 0 1px rgba(255, 255, 255, 0.24);
}

.board-page-shell .mb-group-context-menu {
  position: fixed;
  z-index: 80;
  min-width: 152px;
  padding: 6px;
  border: 1px solid #273345;
  border-radius: 10px;
  background: #121926;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.44);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.board-page-shell .mb-group-context-colors {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: center;
  gap: 7px;
  padding: 2px 2px 8px;
  margin-bottom: 2px;
  border-bottom: 1px solid #223149;
}

.board-page-shell .mb-group-context-color-dot {
  width: 16px;
  height: 16px;
  border-radius: 999px;
  border: 1px solid rgba(16, 22, 32, 0.9);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
  padding: 0;
  cursor: pointer;
}

.board-page-shell .mb-group-context-color-dot:hover {
  transform: translateY(-1px);
}

.board-page-shell .mb-group-context-color-dot.is-selected {
  box-shadow:
    0 0 0 2px #dfe7f6,
    0 0 0 3px rgba(13, 17, 24, 0.95),
    inset 0 0 0 1px rgba(255, 255, 255, 0.24);
}

.board-page-shell .mb-group-context-item {
  min-height: 30px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: #d2dceb;
  font-size: 12px;
  font-weight: 600;
  text-align: left;
  padding: 0 10px;
  cursor: pointer;
}

.board-page-shell .mb-group-context-item:hover {
  border-color: #33445c;
  background: #1a2433;
}

.board-page-shell .mb-group-context-item.is-danger {
  color: #ffdbe3;
}

.board-page-shell .mb-group-context-item.is-danger:hover {
  border-color: #754155;
  background: #3b2530;
}

.board-page-shell .mb-type-context-menu {
  position: fixed;
  z-index: 80;
  min-width: 156px;
  padding: 6px;
  border: 1px solid #273345;
  border-radius: 10px;
  background: #121926;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.44);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.board-page-shell .mb-type-context-item {
  min-height: 30px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: #d2dceb;
  font-size: 12px;
  font-weight: 600;
  text-align: left;
  padding: 0 10px;
  cursor: pointer;
}

.board-page-shell .mb-type-context-item:hover {
  border-color: #33445c;
  background: #1a2433;
}

.board-page-shell .mb-type-context-item.is-danger {
  color: #ffdbe3;
}

.board-page-shell .mb-type-context-item.is-danger:hover {
  border-color: #754155;
  background: #3b2530;
}

.board-page-shell .mb-type-context-name-input {
  min-height: 30px;
  border: 1px solid #32435e;
  border-radius: 7px;
  background: #111a2a;
  color: #dce7fb;
  font-size: 12px;
  font-weight: 500;
  padding: 0 10px;
  outline: none;
}

.board-page-shell .mb-type-context-name-input:focus {
  border-color: #5a7fb6;
}

.board-page-shell .mb-period-context-menu {
  position: fixed;
  z-index: 80;
  min-width: 132px;
  padding: 6px;
  border: 1px solid #273345;
  border-radius: 10px;
  background: #121926;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.44);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.board-page-shell .mb-period-context-item {
  min-height: 30px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: #d2dceb;
  font-size: 12px;
  font-weight: 600;
  text-align: left;
  padding: 0 10px;
  cursor: pointer;
}

.board-page-shell .mb-period-context-item:hover {
  border-color: #33445c;
  background: #1a2433;
}

.board-page-shell .mb-period-context-item.is-danger {
  color: #ffdbe3;
}

.board-page-shell .mb-period-context-item.is-danger:hover {
  border-color: #754155;
  background: #3b2530;
}

.board-page-shell .mb-selection-actions {
  position: sticky;
  bottom: 12px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  padding: 10px 14px;
  border: 1px solid #1d2430;
  border-radius: 10px;
  background: #0d1118;
}

.board-page-shell .mb-selection-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 0 12px;
  border-radius: 999px;
  background: #7e6ce6;
  color: #f7f5ff;
  font-size: 12px;
  font-weight: 500;
}

.board-page-shell .mb-selection-buttons {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.board-page-shell .mb-selection-btn {
  min-height: 28px;
  border: 1px solid #273345;
  border-radius: 8px;
  background: #121924;
  color: #d2dceb;
  font-size: 12px;
  font-weight: 400;
  padding: 0 10px;
  cursor: pointer;
}

.board-page-shell .mb-selection-btn:hover {
  border-color: #3a4a62;
  background: #182132;
}

.board-page-shell .mb-selection-btn.is-danger {
  color: #ffdbe3;
  border-color: #553040;
  background: #341f2b;
}

.board-page-shell .mb-selection-btn.is-danger:hover {
  border-color: #754155;
  background: #452836;
}

.board-page-shell .mb-selection-move-select {
  min-height: 28px;
  border: 1px solid #273345;
  border-radius: 8px;
  background: #121924;
  color: #d2dceb;
  font-size: 12px;
  font-weight: 400;
  padding: 0 8px;
}

.mb-type-button {
  min-height: 28px;
  max-width: 82px;
  border: 0;
  border-radius: 7px;
  padding: 0;
  background: transparent;
}

.mb-type-button:hover,
.mb-type-button.is-open {
  background: transparent;
  border: 0;
}

.mb-tag-pill {
  min-height: 28px;
  min-width: 72px;
  justify-content: center;
  border: 0;
  border-radius: 7px;
  padding: 0 12px;
  background: #6f59c8;
  color: #f7f4ff;
  font-size: 13px;
  font-weight: 800;
}

.mb-assignee-field {
  width: 74px;
  height: 30px;
  border-radius: 999px;
  border: 1px solid #3b4b66;
  background: #111a28;
  color: #c7d2e6;
}

.mb-assignee-field:hover,
.mb-assignee-field.is-open {
  border-color: #5c7299;
  box-shadow: 0 0 0 1px rgba(92, 114, 153, 0.32);
}

.mb-assignee-line-icon {
  width: 14px;
  height: 14px;
  display: block;
}

.mb-assignee-popover .mb-assignee-option {
  color: #d8e3f7;
}

.mb-assignee-popover .mb-assignee-option .mb-assignee-line-icon {
  opacity: 0.9;
}

.thoughts-page-shell {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: hidden;
  isolation: isolate;
}

.thoughts-page-shell::before {
  content: "";
  position: absolute;
  inset: -2%;
  z-index: 0;
  background: url("/assets/mind_bg-Cf-m6IFJ.jpg") center / cover no-repeat;
  opacity: 0.9;
  filter: saturate(1.02) contrast(1.02) brightness(1);
  transform: scale(1.02);
  pointer-events: none;
}

.thoughts-page-shell > * {
  position: relative;
  z-index: 1;
}

.board-page-shell.mb-board-shell {
  position: relative;
  z-index: 0;
  min-height: calc(100vh - 40px);
  overflow: hidden;
  isolation: isolate;
}

.board-page-shell.mb-board-shell::before {
  content: "";
  position: absolute;
  inset: -2%;
  z-index: -1;
  border-radius: inherit;
  background: url("/assets/mind_bg-Cf-m6IFJ.jpg") center / cover no-repeat;
  opacity: 0.9;
  filter: saturate(1.02) contrast(1.02) brightness(1);
  transform: scale(1.02);
  pointer-events: none;
}

.board-page-shell > .board-page-header {
  position: relative;
  justify-content: center;
  align-items: center;
  padding: 18px 0 0;
  text-align: center;
}

.board-page-shell > .board-page-header > div {
  display: flex;
  width: min(980px, 100%);
  flex-direction: column;
  align-items: center;
}

.board-page-shell > .board-page-header p {
  width: 100%;
  margin-top: 10px;
  color: rgba(154, 166, 189, 0.8);
  font-size: 15px;
  font-weight: 500;
  text-align: center;
}

.board-page-shell > .board-page-header .board-page-controls,
.board-page-shell > .board-page-header .calendar-actions {
  position: absolute;
  top: 18px;
  right: 2px;
}

.calendar-page-shell.board-page-shell > .calendar-tabs-actions {
  position: relative;
  z-index: 80;
  display: flex;
  width: 100%;
  justify-content: center;
  margin: 10px auto 0;
  pointer-events: none;
}

.calendar-page-shell.board-page-shell > .calendar-tabs-actions > .calendar-actions {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 4px;
  width: auto;
  padding: 4px;
  border: 1px solid rgba(96, 119, 164, 0.34);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(12, 20, 35, 0.84), rgba(6, 11, 22, 0.9));
  box-shadow:
    0 16px 34px rgba(0, 0, 0, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(14px);
  pointer-events: auto;
}

.calendar-nav-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 30px;
  min-width: 54px;
  border: 0;
  border-radius: 999px;
  padding: 0 10px;
  background: transparent;
  color: rgba(219, 229, 247, 0.86);
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  transition: background-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.calendar-nav-button:hover {
  background: rgba(113, 133, 176, 0.18);
  color: #ffffff;
  transform: translateY(-1px);
}

.calendar-nav-button-today {
  background: rgba(121, 98, 232, 0.22);
  color: #f3f1ff;
}

.calendar-nav-icon {
  position: relative;
  display: inline-block;
  width: 13px;
  height: 13px;
  flex: 0 0 auto;
}

.calendar-nav-button-prev .calendar-nav-icon::before,
.calendar-nav-button-next .calendar-nav-icon::before {
  content: "";
  position: absolute;
  top: 3px;
  width: 7px;
  height: 7px;
  border-color: currentColor;
  border-style: solid;
  opacity: 0.84;
}

.calendar-nav-button-prev .calendar-nav-icon::before {
  left: 4px;
  border-width: 0 0 2px 2px;
  transform: rotate(45deg);
}

.calendar-nav-button-next .calendar-nav-icon::before {
  right: 4px;
  border-width: 2px 2px 0 0;
  transform: rotate(45deg);
}

.calendar-nav-button-today .calendar-nav-icon {
  border: 1.5px solid currentColor;
  border-radius: 5px;
  opacity: 0.86;
}

.calendar-nav-button-today .calendar-nav-icon::before {
  content: "";
  position: absolute;
  left: 3px;
  right: 3px;
  top: 3px;
  height: 1.5px;
  border-radius: 999px;
  background: currentColor;
  opacity: 0.72;
}

.calendar-nav-button-today .calendar-nav-icon::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 7px;
  width: 3px;
  height: 3px;
  border-radius: 999px;
  background: #f2c95f;
  box-shadow: 0 0 8px rgba(242, 201, 95, 0.42);
}

.board-page-shell > .mb-board-tabs {
  position: relative;
  z-index: 60;
  justify-content: center;
  border-bottom-color: rgba(42, 51, 65, 0.78);
  padding-bottom: 16px;
  pointer-events: auto;
}

.board-page-shell > .mb-board-tabs .mb-tab {
  position: relative;
  z-index: 61;
  pointer-events: auto;
}

.thoughts-canvas-wrap {
  position: relative;
  min-height: max(940px, calc(100vh - 180px));
}

.board-page-shell > .board-page-header .thoughts-page-header-title {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: 100%;
  margin: 0;
  color: #cdcdcd;
  font-family: "Pretendard", "Noto Sans KR", "Segoe UI", sans-serif;
  font-size: clamp(18px, 1.4vw, 29px);
  font-weight: 950;
  letter-spacing: 0;
  line-height: 1.04;
  text-align: center;
  text-shadow:
    -2px 0 0 rgba(31, 246, 255, 0.42),
    2px 0 0 rgba(255, 60, 206, 0.38),
    0 2px 0 rgba(3, 8, 17, 0.92),
    0 0 9px rgba(106, 236, 255, 0.12),
    0 0 10px rgba(255, 52, 212, 0.08);
  cursor: text;
}

.thoughts-page-header-star {
  display: inline-grid;
  width: clamp(13px, 1.15vw, 21px);
  height: clamp(13px, 1.15vw, 21px);
  flex: 0 0 auto;
  place-items: center;
  color: #ffffff;
  font-size: clamp(13px, 1.15vw, 21px);
  line-height: 1;
  text-shadow:
    0 0 10px rgba(255, 255, 255, 0.82),
    0 0 22px rgba(90, 238, 255, 0.24);
  transform: translateY(-1px);
}

.thoughts-page-header-title-text {
  position: relative;
  display: block;
  max-width: min(920px, calc(100vw - 420px));
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  animation: thoughtsTitleGlitchPulse 3s steps(1, end) infinite;
}

.thoughts-page-header-title-text::before,
.thoughts-page-header-title-text::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  pointer-events: none;
}

.thoughts-page-header-title-text::before {
  color: #25f6ff;
  transform: translate(-2px, 1px);
  clip-path: polygon(0 12%, 100% 12%, 100% 32%, 0 32%);
  opacity: 0.36;
  mix-blend-mode: screen;
  animation: thoughtsTitleGlitchCyan 3s steps(1, end) infinite;
}

.thoughts-page-header-title-text::after {
  color: #ff3bd2;
  transform: translate(2px, -1px);
  clip-path: polygon(0 66%, 100% 66%, 100% 86%, 0 86%);
  opacity: 0.32;
  mix-blend-mode: screen;
  animation: thoughtsTitleGlitchMagenta 3s steps(1, end) infinite;
}

.thoughts-topic-bubble {
  position: absolute;
  left: 50%;
  top: clamp(8px, 2.1vh, 24px);
  z-index: 9;
  display: flex;
  width: min(1100px, calc(100% - 430px));
  max-width: min(1100px, calc(100% - 430px));
  min-height: 112px;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 0 20px;
  color: #ffffff;
  line-height: 1;
  text-align: center;
  transform: translateX(-50%);
  pointer-events: none;
  filter: drop-shadow(0 18px 36px rgba(0, 0, 0, 0.42));
}

.thoughts-topic-ornament {
  width: clamp(28px, 2.4vw, 42px);
  height: auto;
  margin-bottom: 8px;
  object-fit: contain;
  filter:
    drop-shadow(0 0 10px rgba(255, 255, 255, 0.46))
    drop-shadow(0 0 18px rgba(90, 238, 255, 0.18));
  pointer-events: none;
}

.thoughts-topic-title {
  position: relative;
  display: block;
  width: 100%;
  margin-top: 0;
  overflow: hidden;
  color: #cdcdcd;
  font-family: "Pretendard", "Noto Sans KR", "Segoe UI", sans-serif;
  font-size: clamp(14px, 1.38vw, 24px);
  font-weight: 950;
  letter-spacing: -0.075em;
  line-height: 1.04;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-shadow:
    -2px 0 0 rgba(31, 246, 255, 0.42),
    2px 0 0 rgba(255, 60, 206, 0.38),
    0 2px 0 rgba(3, 8, 17, 0.92),
    0 0 9px rgba(106, 236, 255, 0.12),
    0 0 10px rgba(255, 52, 212, 0.08);
  pointer-events: none;
  animation: thoughtsTitleGlitchPulse 3s steps(1, end) infinite;
}

.thoughts-topic-title::before,
.thoughts-topic-title::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  pointer-events: none;
}

.thoughts-topic-title::before {
  color: #25f6ff;
  transform: translate(-2px, 1px);
  clip-path: polygon(0 12%, 100% 12%, 100% 32%, 0 32%);
  opacity: 0.36;
  mix-blend-mode: screen;
  animation: thoughtsTitleGlitchCyan 3s steps(1, end) infinite;
}

.thoughts-topic-title::after {
  color: #ff3bd2;
  transform: translate(2px, -1px);
  clip-path: polygon(0 66%, 100% 66%, 100% 86%, 0 86%);
  opacity: 0.32;
  mix-blend-mode: screen;
  animation: thoughtsTitleGlitchMagenta 3s steps(1, end) infinite;
}

@keyframes thoughtsTitleGlitchPulse {
  0%,
  89%,
  100% {
    transform: translateX(0);
    filter: none;
  }

  90% {
    transform: translateX(-1px);
    filter: brightness(1.08);
  }

  92% {
    transform: translateX(1px);
    filter: brightness(1);
  }

  94% {
    transform: translateX(0);
    filter: none;
  }
}

@keyframes thoughtsTitleGlitchCyan {
  0%,
  89%,
  100% {
    transform: translate(-2px, 1px);
    opacity: 0.36;
    clip-path: polygon(0 12%, 100% 12%, 100% 32%, 0 32%);
  }

  90% {
    transform: translate(-4px, 1px);
    opacity: 0.5;
    clip-path: polygon(0 18%, 100% 18%, 100% 28%, 0 28%);
  }

  92% {
    transform: translate(-1px, 0);
    opacity: 0.42;
    clip-path: polygon(0 42%, 100% 42%, 100% 53%, 0 53%);
  }

  94% {
    transform: translate(-2px, 1px);
    opacity: 0.36;
    clip-path: polygon(0 12%, 100% 12%, 100% 32%, 0 32%);
  }
}

@keyframes thoughtsTitleGlitchMagenta {
  0%,
  89%,
  100% {
    transform: translate(2px, -1px);
    opacity: 0.32;
    clip-path: polygon(0 66%, 100% 66%, 100% 86%, 0 86%);
  }

  90% {
    transform: translate(4px, -1px);
    opacity: 0.46;
    clip-path: polygon(0 62%, 100% 62%, 100% 76%, 0 76%);
  }

  92% {
    transform: translate(1px, 0);
    opacity: 0.38;
    clip-path: polygon(0 34%, 100% 34%, 100% 45%, 0 45%);
  }

  94% {
    transform: translate(2px, -1px);
    opacity: 0.32;
    clip-path: polygon(0 66%, 100% 66%, 100% 86%, 0 86%);
  }
}

.thoughts-page-arrow {
  position: absolute;
  top: 50%;
  z-index: 10;
  width: 92px;
  height: 148px;
  border: 0;
  background: transparent;
  color: rgba(206, 217, 234, 0.58);
  cursor: pointer;
  display: grid;
  grid-template-rows: 56px auto;
  place-items: center;
  align-content: center;
  gap: 20px;
  padding: 0;
  transform: translateY(-50%);
  transition:
    color 0.18s ease,
    opacity 0.18s ease,
    transform 0.18s ease;
}

.thoughts-page-arrow-left {
  left: clamp(10px, 3vw, 56px);
}

.thoughts-page-arrow-right {
  right: clamp(10px, 3vw, 56px);
}

.thoughts-page-arrow-icon {
  width: 52px;
  height: 52px;
  border-top: 2px solid currentColor;
  border-left: 2px solid currentColor;
  filter: drop-shadow(0 0 12px rgba(140, 180, 255, 0.12));
  transition: opacity 0.18s ease;
}

.thoughts-page-arrow-left .thoughts-page-arrow-icon {
  transform: rotate(-45deg);
}

.thoughts-page-arrow-right .thoughts-page-arrow-icon {
  transform: rotate(135deg);
}

.thoughts-page-arrow-count {
  width: 100%;
  color: rgba(124, 130, 143, 0.8);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: -0.08em;
  line-height: 1;
  text-align: center;
  text-shadow: 0 0 10px rgba(5, 9, 17, 0.52);
}

.thoughts-page-arrow:hover:not(:disabled) {
  color: rgba(235, 242, 255, 0.88);
  transform: translateY(-50%) scale(1.04);
}

.thoughts-page-arrow:disabled {
  cursor: default;
}

.thoughts-page-arrow:disabled .thoughts-page-arrow-icon {
  opacity: 0.22;
}

.thoughts-page-timeline {
  position: absolute;
  left: clamp(113px, calc(10.6vw + 27px), 187px);
  top: clamp(126px, 14vh, 190px);
  bottom: clamp(130px, 14vh, 176px);
  z-index: 11;
  width: min(230px, 18vw);
  overflow: hidden;
  pointer-events: auto;
  mask-image: linear-gradient(to bottom, #000 0%, #000 93%, transparent);
}

.thoughts-page-timeline-lines {
  position: absolute;
  inset: 0 auto auto 0;
  width: 220px;
  height: var(--timeline-height, 100%);
  overflow: visible;
  pointer-events: none;
}

.thoughts-page-timeline-lines polyline {
  fill: none;
  stroke: rgba(135, 145, 160, 0.3);
  stroke-width: 1;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.06));
}

.thoughts-page-timeline ol {
  position: relative;
  height: var(--timeline-height, 100%);
  margin: 0;
  padding: 0;
  list-style: none;
}

.thoughts-page-timeline-item {
  position: absolute;
  top: var(--timeline-y, 0);
  left: var(--timeline-x, 0);
  cursor: grab;
  touch-action: none;
}

.thoughts-page-timeline-item.is-dragging {
  opacity: 0.34;
}

.thoughts-page-timeline-item.is-dragging button {
  cursor: grabbing;
  transform: translateX(4px) scale(0.98);
}

.thoughts-page-timeline button {
  position: relative;
  display: grid;
  grid-template-columns: 6px minmax(0, 1fr);
  align-items: start;
  gap: 15px;
  width: min(188px, 100%);
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(180, 187, 199, 0.34);
  cursor: grab;
  font: inherit;
  text-align: left;
  transition:
    color 0.18s ease,
    opacity 0.18s ease,
    transform 0.18s ease;
}

.thoughts-page-timeline-item.is-drop-before button::after,
.thoughts-page-timeline-item.is-drop-after button::after {
  content: "";
  position: absolute;
  left: -2px;
  right: 22px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(246, 181, 47, 0), rgba(246, 181, 47, 0.95), rgba(132, 96, 232, 0.8));
  box-shadow:
    0 0 0 1px rgba(4, 8, 16, 0.74),
    0 0 14px rgba(246, 181, 47, 0.32);
}

.thoughts-page-timeline-item.is-drop-before button::after {
  top: -19px;
}

.thoughts-page-timeline-item.is-drop-after button::after {
  bottom: -25px;
}

.thoughts-page-timeline-dot {
  position: relative;
  z-index: 1;
  width: 6px;
  height: 6px;
  margin-top: 0;
  border-radius: 999px;
  background: rgba(230, 234, 243, 0.78);
  box-shadow:
    0 0 0 2px rgba(4, 8, 16, 0.82),
    0 0 12px rgba(219, 228, 242, 0.2);
}

.thoughts-page-timeline-title {
  display: block;
  max-width: 138px;
  margin-top: -5px;
  overflow: hidden;
  color: inherit;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: -0.055em;
  line-height: 1.42;
  text-overflow: ellipsis;
  text-shadow: 0 0 12px rgba(4, 8, 16, 0.82);
  white-space: nowrap;
}

.thoughts-page-timeline-edit {
  width: 138px;
  min-width: 0;
  margin-top: -10px;
  padding: 4px 8px 5px;
  border: 1px solid rgba(132, 96, 232, 0.58);
  border-radius: 999px;
  outline: 0;
  background: rgba(7, 12, 22, 0.72);
  color: rgba(245, 248, 255, 0.96);
  font: inherit;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: -0.055em;
  line-height: 1.42;
  text-shadow: 0 0 12px rgba(4, 8, 16, 0.82);
}

.thoughts-page-timeline-edit:focus,
.thoughts-page-timeline-edit:focus-visible {
  border-color: rgba(132, 96, 232, 0.72);
  outline: 0;
  outline-offset: 0;
  box-shadow: 0 0 0 1px rgba(132, 96, 232, 0.14);
}

.thoughts-page-timeline button:hover {
  color: rgba(228, 234, 246, 0.82);
  transform: translateX(2px);
}

.thoughts-page-timeline-item.is-active button {
  color: rgba(245, 248, 255, 0.96);
  cursor: grab;
}

.thoughts-page-timeline-item.is-dragging button {
  cursor: grabbing;
}

.thoughts-page-timeline-item.is-active .thoughts-page-timeline-title {
  font-weight: 400;
}

.thoughts-page-timeline-item.is-active .thoughts-page-timeline-dot {
  background: #f6b52f;
  box-shadow:
    0 0 0 2px rgba(4, 8, 16, 0.88),
    0 0 16px rgba(245, 181, 47, 0.58);
}

.thoughts-page-timeline-create {
  position: absolute;
  top: var(--timeline-create-y, 0);
  left: 0;
  z-index: 2;
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: center;
  gap: 7px;
  width: min(198px, 100%);
  height: 36px;
  padding: 0 13px 0 10px;
  border: 1px solid rgba(86, 106, 126, 0.18);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(10, 17, 27, 0.5), rgba(5, 10, 18, 0.68));
  box-shadow:
    0 10px 26px rgba(0, 0, 0, 0.2),
    0 0 22px rgba(65, 232, 205, 0.07),
    inset 0 1px 0 rgba(255, 255, 255, 0.025);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease,
    opacity 0.18s ease,
    transform 0.18s ease;
}

button.thoughts-page-timeline-create {
  color: rgba(228, 234, 244, 0.74);
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.thoughts-page-timeline-create.is-limit strong {
  overflow: hidden;
  color: rgba(228, 234, 244, 0.72);
  font-size: 12px;
  font-weight: 400;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.thoughts-page-timeline:hover .thoughts-page-timeline-create,
.thoughts-page-timeline:focus-within .thoughts-page-timeline-create {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.thoughts-page-timeline-create:focus-within {
  border-color: rgba(89, 214, 196, 0.32);
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.28),
    0 0 26px rgba(65, 232, 205, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  background:
    linear-gradient(180deg, rgba(12, 21, 32, 0.72), rgba(5, 10, 18, 0.76));
}

.thoughts-page-timeline-create span {
  color: rgba(130, 151, 166, 0.72);
  font-size: 20px;
  font-weight: 300;
  line-height: 1;
  text-align: center;
  transform: translateY(-1px);
}

.thoughts-page-timeline-create input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: rgba(228, 234, 244, 0.86);
  font: inherit;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: -0.04em;
}

.thoughts-page-timeline-create input::placeholder {
  color: rgba(130, 141, 154, 0.45);
}

.thought-page-list-menu {
  min-width: 132px;
  padding: 8px;
  border: 1px solid rgba(132, 96, 232, 0.42);
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(22, 27, 43, 0.96), rgba(9, 13, 24, 0.96)),
    radial-gradient(circle at 18% 0%, rgba(132, 96, 232, 0.26), transparent 42%);
  box-shadow:
    0 18px 44px rgba(0, 0, 0, 0.46),
    0 0 24px rgba(132, 96, 232, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.thought-page-list-menu button {
  min-height: 34px;
  border-radius: 8px;
  color: rgba(226, 232, 246, 0.86);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.thought-page-list-menu button:hover {
  background: rgba(132, 96, 232, 0.18);
  color: #ffffff;
}

.thought-page-list-menu button.is-danger {
  color: rgba(255, 137, 160, 0.9);
}

.thought-page-list-menu button.is-danger:hover {
  background: rgba(216, 100, 126, 0.14);
  color: #ffc9d4;
}

@media (max-width: 860px) {
  .thoughts-page-timeline {
    left: 48px;
    top: 112px;
    bottom: 116px;
    width: 170px;
  }

  .thoughts-page-timeline ol {
    height: var(--timeline-height, 100%);
  }

  .thoughts-page-timeline button {
    gap: 15px;
    width: 156px;
  }

  .thoughts-page-timeline-title {
    max-width: 96px;
    font-size: 11px;
  }

  .thoughts-page-timeline-edit {
    width: 96px;
    font-size: 11px;
  }

  .thoughts-page-timeline-create {
    width: 156px;
  }
}

.thoughts-keyword-panel {
  position: absolute;
  right: clamp(118px, 8vw, 190px);
  top: clamp(154px, 17vh, 210px);
  bottom: clamp(110px, 13vh, 170px);
  z-index: 9;
  width: min(230px, 16vw);
  overflow: hidden;
  padding: 18px 18px 20px;
  border-left: 1px solid rgba(72, 211, 188, 0.16);
  background:
    linear-gradient(180deg, rgba(5, 11, 20, 0.02), rgba(5, 11, 20, 0.08)),
    linear-gradient(90deg, rgba(40, 220, 194, 0.045), transparent 72%);
  color: rgba(84, 212, 178, 0.64);
  pointer-events: none;
  mask-image: linear-gradient(to bottom, transparent, #000 7%, #000 93%, transparent);
}

.thoughts-keyword-panel h4 {
  margin: 0 0 12px;
  color: rgba(84, 212, 178, 0.42);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.thoughts-keyword-panel section {
  margin-top: 20px;
}

.thoughts-keyword-panel h5 {
  margin: 0 0 14px;
  color: rgba(106, 222, 199, 0.46);
  font-size: 13px;
  font-weight: 800;
}

.thoughts-keyword-panel ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.thoughts-keyword-panel li {
  overflow: hidden;
  color: rgba(87, 205, 185, 0.34);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.thoughts-add-btn {
  position: absolute;
  right: 18px;
  bottom: 18px;
  width: 64px;
  height: 64px;
  border: 0;
  border-radius: 0;
  background: transparent;
  display: inline-block;
  padding: 0;
  cursor: pointer;
  z-index: 4;
}

.thoughts-add-btn:hover {
  filter: brightness(1.08);
}

.thoughts-add-btn img {
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
}

.thoughts-ai-prompt {
  position: absolute;
  left: 50%;
  bottom: clamp(24px, 5.8vh, 58px);
  z-index: 8;
  width: min(780px, calc(100% - 56px));
  min-height: 58px;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) 40px;
  align-items: center;
  gap: 12px;
  padding: 10px 18px;
  border: 1px solid rgba(112, 137, 190, 0.22);
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(20, 31, 49, 0.94), rgba(16, 25, 42, 0.9)),
    radial-gradient(circle at 100% 50%, rgba(118, 99, 240, 0.18), transparent 36%);
  box-shadow:
    0 18px 52px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transform: translateX(-50%);
  backdrop-filter: blur(18px);
  pointer-events: auto;
}

.thoughts-ai-prompt::before {
  content: '';
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(42, 202, 214, 0.08), rgba(129, 102, 246, 0.08));
  opacity: 0.9;
}

.thoughts-ai-prompt-plus,
.thoughts-ai-prompt-submit {
  position: relative;
  z-index: 1;
  border: 0;
  background: transparent;
  display: inline-grid;
  place-items: center;
  padding: 0;
  cursor: pointer;
  transition:
    transform 0.18s ease,
    filter 0.18s ease,
    opacity 0.18s ease;
}

.thoughts-ai-prompt-plus:hover,
.thoughts-ai-prompt-submit:hover:not(:disabled) {
  transform: translateY(-1px) scale(1.04);
  filter: brightness(1.12);
}

.thoughts-ai-prompt-plus img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  display: block;
}

.thoughts-ai-prompt-submit img {
  width: 34px;
  height: 34px;
  object-fit: contain;
  display: block;
}

.thoughts-ai-prompt-submit:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}

.thoughts-ai-prompt textarea {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: 32px;
  max-height: 224px;
  border: 0;
  outline: 0;
  resize: none;
  background: transparent;
  color: #dfe9ff;
  padding: 6px 0;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.45;
  letter-spacing: -0.02em;
  overflow-y: hidden;
  scrollbar-width: none;
}

.thoughts-ai-prompt textarea::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

.thoughts-ai-prompt textarea::placeholder {
  color: rgba(203, 213, 229, 0.55);
}

.thoughts-ai-prompt-message {
  position: absolute;
  left: 50%;
  bottom: clamp(118px, 16vh, 162px);
  z-index: 8;
  max-width: min(760px, calc(100% - 64px));
  margin: 0;
  padding: 8px 14px;
  border: 1px solid rgba(112, 137, 190, 0.18);
  border-radius: 999px;
  background: rgba(8, 13, 23, 0.7);
  color: rgba(205, 216, 237, 0.82);
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  transform: translateX(-50%);
  backdrop-filter: blur(12px);
}

.thoughts-ai-prompt-message.is-loading {
  color: #8ff4e4;
  border-color: rgba(64, 224, 208, 0.2);
}

.thoughts-canvas {
  position: relative;
  min-height: inherit;
  border: 0;
  border-radius: 10px;
  background: transparent;
  isolation: isolate;
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
}

.thoughts-canvas-stage {
  position: absolute;
  left: 50%;
  top: 56%;
  width: 1920px;
  height: 1440px;
  transform: translate(-50%, -50%) scale(var(--thoughts-stage-scale, 1));
  transform-origin: center center;
}

.thoughts-canvas-stage.is-slide-right {
  animation: thoughtsSlideFromRight 0.42s cubic-bezier(0.22, 0.8, 0.24, 1);
}

.thoughts-canvas-stage.is-slide-left {
  animation: thoughtsSlideFromLeft 0.42s cubic-bezier(0.22, 0.8, 0.24, 1);
}

@keyframes thoughtsSlideFromRight {
  0% {
    opacity: 0.08;
    transform: translate(calc(-50% + 170px), -50%) scale(var(--thoughts-stage-scale, 1));
  }
  100% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(var(--thoughts-stage-scale, 1));
  }
}

@keyframes thoughtsSlideFromLeft {
  0% {
    opacity: 0.08;
    transform: translate(calc(-50% - 170px), -50%) scale(var(--thoughts-stage-scale, 1));
  }
  100% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(var(--thoughts-stage-scale, 1));
  }
}

.thoughts-backdrop {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
  z-index: 1;
  transform: translateY(-80px);
  user-select: none;
  -webkit-user-select: none;
}

.thoughts-backdrop img {
  width: 98%;
  height: 98%;
  max-height: none;
  max-width: none;
  object-fit: contain;
  object-position: center 42%;
  transform: translateY(-20%);
  opacity: 0.94;
  mix-blend-mode: screen;
  filter: contrast(1.12) brightness(1.05);
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
}

@media (max-width: 760px) {
  .thoughts-ai-prompt {
    bottom: 18px;
    width: calc(100% - 28px);
    min-height: 54px;
    grid-template-columns: 32px minmax(0, 1fr) 34px;
    gap: 10px;
    padding: 10px 14px;
  }

  .thoughts-ai-prompt-plus img {
    width: 24px;
    height: 24px;
  }

  .thoughts-ai-prompt-submit img {
    width: 30px;
    height: 30px;
  }

  .thoughts-ai-prompt input {
    font-size: 13px;
  }
}

/* Marketing page: SK Networks inspired motion hero */
.mk-logo img {
  width: 182px;
  filter: none;
}

.mk-hero {
  justify-content: center;
  min-height: 100vh;
  padding: 160px clamp(28px, 8vw, 128px) 110px;
  background:
    radial-gradient(900px 520px at 50% 52%, rgba(8, 8, 12, 0.3), rgba(0, 0, 0, 0.86) 74%),
    linear-gradient(120deg, #030305 0%, #06060b 44%, #0a0503 100%);
}

.mk-hero::before {
  opacity: 0.15;
  background:
    linear-gradient(rgba(151, 98, 255, 0.18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(242, 112, 57, 0.12) 1px, transparent 1px);
  background-size: 96px 96px;
  mask-image: radial-gradient(circle at 50% 48%, transparent 0%, black 18%, transparent 76%);
}

.mk-hero::after {
  display: none;
}

.mk-network-field {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}

.mk-network-field::before,
.mk-network-field::after {
  content: "";
  position: absolute;
  inset: -18% -8% auto;
  height: 58%;
  background:
    linear-gradient(28deg, transparent 4%, rgba(207, 91, 58, 0.28) 4.2%, transparent 4.8%),
    linear-gradient(-18deg, transparent 9%, rgba(154, 91, 255, 0.38) 9.2%, transparent 9.7%),
    linear-gradient(11deg, transparent 18%, rgba(138, 87, 255, 0.28) 18.2%, transparent 18.8%),
    linear-gradient(-38deg, transparent 27%, rgba(208, 110, 78, 0.24) 27.2%, transparent 27.7%),
    linear-gradient(42deg, transparent 34%, rgba(151, 92, 255, 0.32) 34.2%, transparent 34.8%),
    linear-gradient(-52deg, transparent 48%, rgba(142, 88, 255, 0.28) 48.2%, transparent 48.8%);
  opacity: 0.8;
  transform-origin: 50% 0;
  animation: mkNetworkDrift 16s ease-in-out infinite;
}

.mk-network-field::after {
  inset: auto -10% 36% -10%;
  height: 34%;
  opacity: 0.38;
  transform: rotate(180deg);
  animation-duration: 22s;
  animation-direction: reverse;
}

.mk-network-line,
.mk-network-node,
.mk-network-glow,
.mk-dome {
  position: absolute;
}

.mk-network-line {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(161, 99, 255, 0.5), rgba(255, 126, 48, 0.28), transparent);
  transform-origin: left center;
  animation: mkLinePulse 5.6s ease-in-out infinite;
}

.mk-network-line-one {
  left: -3%;
  top: 18%;
  width: 42%;
  transform: rotate(14deg);
}

.mk-network-line-two {
  left: 14%;
  top: 7%;
  width: 34%;
  transform: rotate(-8deg);
  animation-delay: 0.6s;
}

.mk-network-line-three {
  right: -4%;
  top: 25%;
  width: 38%;
  transform: rotate(33deg);
  animation-delay: 1.2s;
}

.mk-network-line-four {
  right: 5%;
  top: 12%;
  width: 28%;
  transform: rotate(-28deg);
  animation-delay: 1.8s;
}

.mk-network-line-five {
  left: 0;
  top: 32%;
  width: 36%;
  transform: rotate(-21deg);
  animation-delay: 2.2s;
}

.mk-network-line-six {
  right: -2%;
  top: 45%;
  width: 34%;
  transform: rotate(-12deg);
  animation-delay: 2.8s;
}

.mk-network-node {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(174, 107, 255, 0.72);
  border-radius: 8px;
  background: rgba(78, 46, 130, 0.52);
  color: #b897ff;
  font-size: 20px;
  font-weight: 900;
  box-shadow:
    0 0 18px rgba(158, 96, 255, 0.5),
    inset 0 0 12px rgba(180, 129, 255, 0.24);
  animation: mkNodeFloat 8s ease-in-out infinite;
}

.mk-network-node.is-mail,
.mk-network-node.is-data {
  border-color: rgba(255, 126, 78, 0.72);
  background: rgba(131, 56, 28, 0.48);
  color: #ff986d;
  box-shadow:
    0 0 18px rgba(255, 112, 60, 0.44),
    inset 0 0 12px rgba(255, 152, 109, 0.24);
}

.mk-network-node-1 {
  left: 8%;
  top: 9%;
}

.mk-network-node-2 {
  left: 25%;
  top: 18%;
  border-radius: 50%;
}

.mk-network-node-3 {
  left: 32%;
  top: 15%;
  animation-delay: 0.9s;
}

.mk-network-node-4 {
  left: 42%;
  top: 18%;
  animation-delay: 1.6s;
}

.mk-network-node-5 {
  right: 10%;
  top: 32%;
  animation-delay: 2.2s;
}

.mk-network-node-6 {
  right: 13%;
  top: 36%;
  border-radius: 50%;
  animation-delay: 2.8s;
}

.mk-network-node-7 {
  right: 17%;
  top: 46%;
  animation-delay: 3.3s;
}

.mk-network-node-8 {
  right: 4%;
  top: 55%;
  animation-delay: 3.9s;
}

.mk-network-glow {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(158, 123, 255, 0.86);
  box-shadow: 0 0 36px rgba(158, 123, 255, 0.72);
  filter: blur(1px);
  animation: mkGlowPulse 4.8s ease-in-out infinite;
}

.mk-network-glow-one {
  left: 48%;
  top: 8%;
  width: 84px;
  height: 84px;
}

.mk-network-glow-two {
  right: 25%;
  top: 24%;
  width: 28px;
  height: 28px;
  animation-delay: 1.2s;
}

.mk-network-glow-three {
  right: 5%;
  top: 50%;
  background: rgba(255, 115, 54, 0.8);
  box-shadow: 0 0 36px rgba(255, 115, 54, 0.62);
  animation-delay: 2.2s;
}

.mk-dome {
  left: 50%;
  bottom: -42%;
  width: min(76vw, 1040px);
  aspect-ratio: 1 / 0.5;
  border-radius: 50% 50% 0 0;
  transform: translateX(-50%);
  background:
    repeating-radial-gradient(ellipse at 50% 100%, transparent 0 20px, rgba(255, 137, 20, 0.58) 21px 22px, transparent 23px 42px),
    repeating-linear-gradient(7deg, transparent 0 18px, rgba(160, 79, 255, 0.45) 19px 20px, transparent 21px 39px),
    repeating-linear-gradient(-7deg, transparent 0 18px, rgba(255, 126, 30, 0.52) 19px 20px, transparent 21px 39px);
  opacity: 0.82;
  mask-image: radial-gradient(ellipse at 50% 100%, black 0%, black 58%, transparent 72%);
  animation: mkDomeRise 12s ease-in-out infinite;
}

.mk-hero-copy {
  z-index: 3;
  max-width: 850px;
  text-align: center;
}

.mk-hero h1 {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 0;
  max-width: 850px;
  color: #ffffff;
  font-size: clamp(36px, 3.15vw, 58px);
  line-height: 1.18;
  letter-spacing: -0.035em;
  text-align: center;
}

.mk-hero h1 span {
  display: block;
  white-space: nowrap;
}

.mk-sub {
  margin: 44px auto 0;
  max-width: 560px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 17px;
  line-height: 1.8;
  text-align: center;
}

.mk-hero-actions {
  justify-content: center;
  margin-top: 32px;
}

.mk-hero-actions .mk-btn {
  min-width: 116px;
  min-height: 38px;
  border-radius: 999px;
  padding: 0 12px 0 22px;
  font-size: 12px;
}

.mk-hero-actions .mk-btn::after {
  content: ">";
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin-left: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
}

.mk-statement h2,
.mk-section-head h2,
.mk-media-copy h2 {
  font-size: clamp(27px, 2.35vw, 40px);
  line-height: 1.18;
  letter-spacing: -0.04em;
}

.mk-section-head {
  max-width: 1120px;
}

.mk-section-head h2 {
  white-space: nowrap;
}

@keyframes mkNetworkDrift {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(-24px, 12px, 0) scale(1.04);
  }
}

@keyframes mkLinePulse {
  0%,
  100% {
    opacity: 0.34;
  }
  50% {
    opacity: 0.86;
  }
}

@keyframes mkNodeFloat {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(0, -13px, 0);
  }
}

@keyframes mkGlowPulse {
  0%,
  100% {
    opacity: 0.36;
    transform: scale(0.92);
  }
  50% {
    opacity: 0.9;
    transform: scale(1.12);
  }
}

@keyframes mkDomeRise {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(-18px);
  }
}

@media (max-width: 1120px) {
  .mk-section-head h2 {
    white-space: normal;
  }
}

@media (max-width: 760px) {
  .mk-logo img {
    width: 142px;
  }

  .mk-hero {
    min-height: 700px;
    padding: 178px 22px 64px;
  }

  .mk-network-node {
    width: 28px;
    height: 28px;
    font-size: 15px;
  }

  .mk-network-node-3,
  .mk-network-node-4 {
    display: none;
  }

  .mk-network-node-1 {
    left: -3%;
    top: 18%;
  }

  .mk-network-node-2 {
    left: 10%;
    top: 26%;
  }

  .mk-network-node-5 {
    right: -5%;
    top: 28%;
  }

  .mk-network-node-6 {
    right: 12%;
    top: 37%;
  }

  .mk-network-node-7 {
    right: 2%;
    top: 52%;
  }

  .mk-network-node-8 {
    right: -7%;
    top: 60%;
  }

  .mk-network-glow-one {
    left: 46%;
    top: 18%;
    width: 56px;
    height: 56px;
  }

  .mk-dome {
    bottom: -22%;
    width: 760px;
  }

  .mk-hero-copy {
    max-width: min(300px, calc(100vw - 44px));
  }

  .mk-hero h1 {
    max-width: min(300px, calc(100vw - 44px));
    gap: 10px;
    font-size: clamp(21px, 5.3vw, 24px);
    overflow-wrap: anywhere;
  }

  .mk-hero h1 span {
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .mk-sub {
    margin-top: 30px;
    max-width: min(300px, calc(100vw - 44px));
    font-size: 13px;
    overflow-wrap: anywhere;
  }

  .mk-statement h2,
  .mk-section-head h2,
  .mk-media-copy h2 {
    font-size: clamp(27px, 7vw, 34px);
  }
}

.thoughts-backdrop-sparkles {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.thoughts-backdrop-spark {
  position: absolute;
  width: var(--spark-size, 4px);
  height: var(--spark-size, 4px);
  border-radius: 999px;
  background: rgba(198, 236, 255, var(--spark-alpha, 0.55));
  mix-blend-mode: screen;
  box-shadow:
    0 0 calc(var(--spark-size, 4px) * 2.2) rgba(168, 228, 255, 0.66),
    0 0 calc(var(--spark-size, 4px) * 5.4) rgba(111, 186, 255, 0.46);
  filter: brightness(var(--spark-brightness, 1.2));
  transform: translate(-50%, -50%) scale(var(--spark-start-scale, 0.42));
  opacity: 0;
  animation-name: thoughtBackdropSpark;
  animation-duration: var(--spark-duration, 1.5s);
  animation-delay: var(--spark-delay, 0s);
  animation-iteration-count: 1;
  animation-fill-mode: forwards;
  animation-timing-function: cubic-bezier(0.32, 0.06, 0.26, 1);
  will-change: opacity, transform;
}

@keyframes thoughtBackdropSpark {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(var(--spark-start-scale, 0.42));
  }
  26% {
    opacity: calc(var(--spark-alpha, 0.55) * 0.55);
    transform: translate(-50%, -50%) scale(calc(var(--spark-peak-scale, 1.4) * 0.72));
  }
  54% {
    opacity: var(--spark-alpha, 0.55);
    transform: translate(-50%, -50%) scale(var(--spark-peak-scale, 1.4));
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(calc(var(--spark-start-scale, 0.42) * 0.84));
  }
}

.thought-links {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
  pointer-events: none;
  overflow: visible;
}

.thought-zone-rings {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
  mix-blend-mode: screen;
}

.thought-zone-fill {
  stroke: none;
}

.thought-zone-fill-purple {
  fill: rgba(142, 110, 245, 0.08);
}

.thought-zone-fill-mint {
  fill: rgba(84, 212, 178, 0.06);
}

.thought-zone-fill-gold {
  fill: rgba(255, 216, 112, 0.1);
}

.thought-zone-fill-gray {
  fill: rgba(156, 166, 186, 0.05);
}

.thought-zone-ring {
  fill: none;
  stroke-width: 1px;
  shape-rendering: geometricPrecision;
}

.thought-zone-ring-purple {
  stroke: rgba(142, 110, 245, 0.5);
  filter: drop-shadow(0 0 2px rgba(142, 110, 245, 0.3));
}

.thought-zone-ring-mint {
  stroke: rgba(84, 212, 178, 0.5);
  filter: drop-shadow(0 0 2px rgba(84, 212, 178, 0.28));
}

.thought-zone-ring-gold {
  stroke: rgba(255, 216, 112, 0.5);
  filter: drop-shadow(0 0 2px rgba(255, 216, 112, 0.3));
}

.thought-zone-ring-gray {
  stroke: rgba(166, 176, 196, 0.5);
  filter: drop-shadow(0 0 2px rgba(166, 176, 196, 0.24));
}

.thought-zone-orbits {
  pointer-events: none;
}

.thought-zone-orbit-spark circle {
  stroke: none;
}

.thought-zone-orbit-spark-gold circle {
  fill: rgba(255, 216, 112, 0.82);
}

.thought-zone-orbit-spark-purple circle {
  fill: rgba(142, 110, 245, 0.82);
}

.thought-zone-orbit-spark-mint circle {
  fill: rgba(84, 212, 178, 0.82);
}

.thought-zone-orbit-spark-gray circle {
  fill: rgba(166, 176, 196, 0.82);
}

.thought-links .thought-link-curve {
  stroke: rgba(255, 255, 255, 0.5);
  stroke-width: 2;
  fill: none;
}

.thought-links .thought-link-draft {
  stroke: rgba(255, 255, 255, 0.5);
  stroke-width: 2;
  stroke-dasharray: 4 3;
  fill: none;
}

.thought-links circle {
  fill: rgba(170, 227, 255, 0.95);
}

.thoughts-marquee {
  position: absolute;
  z-index: 2;
  pointer-events: none;
  border: 1px solid rgba(122, 175, 255, 0.85);
  background: rgba(86, 136, 230, 0.14);
  border-radius: 6px;
  box-shadow: inset 0 0 0 1px rgba(165, 207, 255, 0.2);
}

.thought-item {
  position: absolute;
  z-index: 3;
  width: var(--thought-width, 72px);
  min-height: var(--thought-min-height, 24px);
  box-sizing: border-box;
  border: 1px solid rgba(112, 137, 185, 0.34);
  border-radius: 999px;
  background: transparent;
  box-shadow: inset 0 0 0 1px rgba(127, 153, 220, 0.08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--thought-pad-y, 4px) var(--thought-pad-x, 14px);
  cursor: grab;
  user-select: none;
  touch-action: none;
  transition: border-color 0.14s ease, box-shadow 0.14s ease, background-color 0.14s ease;
}

@keyframes thoughtParentTwinkle {
  0%,
  76%,
  100% {
    border-color: rgba(112, 137, 185, 0.34);
    box-shadow: inset 0 0 0 1px rgba(127, 153, 220, 0.08);
  }
  79% {
    border-color: rgba(146, 178, 238, 0.52);
    box-shadow:
      inset 0 0 0 1px rgba(162, 193, 247, 0.16),
      0 0 10px rgba(112, 165, 255, 0.16);
  }
  82% {
    border-color: rgba(126, 154, 208, 0.4);
    box-shadow:
      inset 0 0 0 1px rgba(140, 170, 229, 0.11),
      0 0 6px rgba(102, 148, 224, 0.12);
  }
  85% {
    border-color: rgba(150, 181, 242, 0.56);
    box-shadow:
      inset 0 0 0 1px rgba(172, 203, 255, 0.2),
      0 0 12px rgba(128, 184, 255, 0.2);
  }
}

.thought-item.is-parent-node:not(.is-dragging):not(.is-editing):not(.is-selected) {
  animation-name: thoughtParentTwinkle;
  animation-duration: var(--parent-twinkle-duration, 6s);
  animation-delay: var(--parent-twinkle-delay, 0s);
  animation-iteration-count: infinite;
  animation-timing-function: ease-in-out;
}

.thought-item:hover {
  border-color: rgba(126, 164, 241, 0.74);
  box-shadow:
    inset 0 0 0 1px rgba(139, 168, 235, 0.2),
    0 10px 22px rgba(4, 9, 18, 0.36);
}

.thought-item.is-selected {
  border-color: rgba(250, 253, 255, 0.98);
  box-shadow:
    inset 0 0 0 2px rgba(255, 255, 255, 0.42),
    0 0 0 4px rgba(126, 108, 230, 0.54),
    0 0 24px rgba(126, 108, 230, 0.46),
    0 14px 30px rgba(4, 9, 18, 0.5);
}

.thought-item .thought-item-label,
.thought-item .thought-item-title {
  color: #e9f0fd;
  font-size: var(--thought-font-size, 12px);
  font-weight: var(--thought-font-weight, 400);
  line-height: 1;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.thought-item .thought-item-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.thought-item.is-depth-three {
  transform: translateX(18px);
}

.thought-item-depth-icon {
  display: inline-flex;
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  align-items: center;
  justify-content: center;
  margin-left: -3px;
  border-radius: 5px;
  background: rgba(8, 14, 24, 0.32);
  color: rgba(230, 238, 255, 0.78);
  font-size: 11px;
  line-height: 1;
}

.thought-item .thought-item-status-dot {
  width: 12px;
  height: 12px;
  min-width: 12px;
  min-height: 12px;
  border-radius: 999px;
  display: inline-block;
  flex: 0 0 12px;
  margin-left: -10px;
  margin-right: 2px;
}

.thought-item.is-dark {
  background: rgba(6, 13, 25, 0.76);
  border-color: rgba(72, 92, 130, 0.42);
}

.thought-item.is-zone-none {
  background: transparent;
  border-color: rgba(112, 137, 185, 0.34);
}

.thought-item.is-zone-purple {
  background: linear-gradient(135deg, rgba(132, 96, 232, 0.72), rgba(98, 74, 210, 0.68));
  border-color: rgba(194, 180, 255, 0.48);
}

.thought-item.is-zone-mint {
  background: linear-gradient(135deg, rgba(84, 212, 178, 0.7), rgba(67, 187, 158, 0.68));
  border-color: rgba(154, 241, 220, 0.5);
}

.thought-item.is-zone-gold {
  background: linear-gradient(135deg, rgba(244, 202, 98, 0.78), rgba(206, 157, 61, 0.72));
  border-color: rgba(255, 223, 141, 0.58);
}

.thought-item.is-zone-gray {
  background: linear-gradient(135deg, rgba(119, 128, 148, 0.62), rgba(94, 104, 126, 0.6));
  border-color: rgba(170, 182, 208, 0.46);
}

.thought-item.is-editing {
  cursor: text;
}

.thought-item.is-dragging {
  cursor: grabbing;
  border-color: #6f95ea;
  box-shadow:
    inset 0 0 0 1px rgba(149, 188, 255, 0.26),
    0 14px 28px rgba(5, 9, 18, 0.54);
}

.thought-item input {
  width: 100%;
  border: 0;
  background: transparent;
  color: #f1f6ff;
  font-size: var(--thought-font-size, 12px);
  font-weight: var(--thought-font-weight, 400);
  text-align: center;
  padding: 0;
}

.thought-item input:focus {
  outline: none;
}

.page-loading {
  display: grid;
  place-items: center;
  min-height: 240px;
  padding: 32px 20px;
  color: rgba(15, 23, 42, 0.72);
  font-size: 14px;
  letter-spacing: 0.01em;
}

.thought-anchor {
  position: absolute;
  width: 8px;
  height: 8px;
  appearance: none;
  -webkit-appearance: none;
  border-radius: 999px;
  border: 0;
  background: #ffffff;
  box-shadow: none;
  opacity: 0.92;
  padding: 0;
  margin: 0;
  cursor: crosshair;
  z-index: 4;
  transition: opacity 0.12s ease;
}

.thought-anchor::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 20px;
  height: 20px;
  transform: translate(-50%, -50%);
}

.thought-anchor.is-active {
  background: #ffffff;
  box-shadow: none;
  opacity: 1;
}

.thought-anchor-top {
  left: 50%;
  top: 0;
  transform: translate(-50%, -50%);
}

.thought-anchor-right {
  right: 0;
  top: 50%;
  transform: translate(50%, -50%);
}

.thought-anchor-bottom {
  left: 50%;
  bottom: 0;
  transform: translate(-50%, 50%);
}

.thought-anchor-left {
  left: 0;
  top: 50%;
  transform: translate(-50%, -50%);
}

.thought-context-menu {
  position: fixed;
  z-index: 90;
  display: flex;
  min-width: 132px;
  flex-direction: column;
  gap: 4px;
  padding: 7px;
  border: 1px solid rgba(133, 150, 186, 0.32);
  border-radius: 12px;
  background: rgba(10, 15, 25, 0.96);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(14px);
}

.thought-context-menu button {
  min-height: 32px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #d6e0f4;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  padding: 0 10px;
  text-align: left;
}

.thought-context-menu button:hover {
  background: rgba(126, 108, 230, 0.18);
  color: #f5f2ff;
}

.thought-context-menu button.is-danger {
  color: #ffb2bd;
}

.thought-context-menu button.is-danger:hover {
  background: rgba(255, 96, 122, 0.13);
  color: #ffd6dd;
}

.thoughts-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 520;
  background: rgba(5, 9, 17, 0.66);
  display: grid;
  place-items: center;
  padding: 16px;
}

.thoughts-modal {
  width: min(360px, 100%);
  border: 1px solid #2e3d57;
  border-radius: 14px;
  background: #0f1726;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.48);
  padding: 16px;
}

.thoughts-modal h4 {
  margin: 0;
  color: #ecf3ff;
  font-size: 18px;
}

.thoughts-modal p {
  margin: 10px 0 0;
  color: #b9c7e3;
  font-size: 13px;
}

.thoughts-modal-actions {
  margin-top: 14px;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.thoughts-ai-confirm-backdrop {
  background:
    radial-gradient(circle at 50% 44%, rgba(126, 108, 230, 0.18), transparent 34%),
    rgba(5, 9, 17, 0.72);
  backdrop-filter: blur(10px);
}

.thoughts-ai-confirm-modal {
  width: min(460px, calc(100vw - 32px));
  border-color: rgba(126, 108, 230, 0.46);
  border-radius: 22px;
  background:
    linear-gradient(145deg, rgba(18, 27, 44, 0.98), rgba(10, 15, 26, 0.98)),
    radial-gradient(circle at 14% 8%, rgba(126, 108, 230, 0.2), transparent 34%);
  box-shadow:
    0 28px 76px rgba(0, 0, 0, 0.58),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  padding: 22px;
}

.thoughts-ai-confirm-modal h4 {
  font-size: 20px;
  letter-spacing: -0.03em;
}

.thoughts-ai-confirm-modal p {
  color: rgba(205, 216, 237, 0.84);
  font-size: 14px;
  line-height: 1.58;
}

.thoughts-ai-confirm-topic {
  max-height: 72px;
  overflow: hidden;
  border: 1px solid rgba(126, 108, 230, 0.22);
  border-radius: 14px;
  background: rgba(126, 108, 230, 0.08);
  padding: 10px 12px;
  color: #f4f0ff !important;
}

.thoughts-page-title-backdrop {
  background:
    radial-gradient(circle at 50% 43%, rgba(64, 224, 208, 0.16), transparent 32%),
    rgba(5, 9, 17, 0.72);
  backdrop-filter: blur(10px);
}

.thoughts-page-title-modal {
  width: min(440px, calc(100vw - 32px));
  border-color: rgba(101, 221, 214, 0.42);
  border-radius: 22px;
  background:
    linear-gradient(145deg, rgba(17, 28, 42, 0.98), rgba(10, 15, 26, 0.98)),
    radial-gradient(circle at 14% 8%, rgba(64, 224, 208, 0.16), transparent 34%);
  box-shadow:
    0 28px 76px rgba(0, 0, 0, 0.58),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  padding: 22px;
}

.thoughts-page-title-modal input {
  width: 100%;
  margin-top: 16px;
  border: 1px solid rgba(101, 221, 214, 0.28);
  border-radius: 14px;
  background: rgba(8, 14, 25, 0.86);
  color: #eef7ff;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.03em;
  outline: none;
  padding: 12px 14px;
}

.thoughts-page-title-modal input:focus {
  border-color: rgba(101, 221, 214, 0.72);
  box-shadow: 0 0 0 3px rgba(64, 224, 208, 0.12);
}

.thoughts-page-title-modal input::placeholder {
  color: rgba(203, 213, 229, 0.48);
}

/* Messenger-style feedback comments */
.mb-updates-feedback-list {
  margin: 6px 18px 14px;
  padding: 2px 0 0;
  border: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.mb-updates-feedback-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.mb-updates-feedback-item > .mb-updates-avatar,
.mb-updates-reply-row > .mb-updates-avatar {
  width: 32px;
  height: 32px;
  margin-top: 2px;
  border-color: rgba(159, 177, 213, 0.42);
  background: #070b12;
  color: #edf3ff;
  font-size: 12px;
}

.mb-updates-feedback-rail {
  display: none;
}

.mb-updates-feedback-body {
  width: fit-content;
  max-width: min(720px, calc(100% - 42px));
  border: 0;
  border-radius: 4px 14px 14px 14px;
  background: #323650;
  padding: 13px 16px;
  color: #e8eefb;
  box-shadow: none;
}

.mb-updates-feedback-head {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}

.mb-updates-feedback-head strong {
  color: #f2f6ff;
  font-size: 14px;
  line-height: 1.2;
}

.mb-updates-feedback-head span {
  color: #a7aec3;
  font-size: 13px;
}

.mb-updates-feedback-head .mb-updates-delete-btn {
  margin-left: auto;
}

.mb-updates-feedback-content {
  margin-top: 8px;
  color: #e4eaf7;
  font-size: 14px;
}

.mb-updates-feedback-content .mb-markdown,
.mb-updates-feedback-content .mb-rich-content {
  font-size: 14px;
  line-height: 1.55;
}

.mb-updates-feedback-actions {
  display: flex;
  gap: 16px;
  margin: 13px 0 -2px;
  transform: translateY(28px);
}

.mb-updates-feedback-actions button {
  border: 0;
  background: transparent;
  color: #a7aec3;
  cursor: pointer;
  font-size: 13px;
  padding: 0;
}

.mb-updates-feedback-actions button:hover {
  color: #edf3ff;
}

.mb-updates-entry-actions {
  padding-top: 8px;
  padding-bottom: 8px;
}

.mb-updates-reply-row {
  align-items: flex-start;
  gap: 10px;
  padding: 18px;
  background: #111927;
}

.mb-updates-reply-composer {
  flex: 1;
  min-width: 0;
  border: 1px solid rgba(151, 165, 198, 0.55);
  border-radius: 10px;
  background: transparent;
  padding: 12px 14px;
}

.mb-updates-reply-composer:focus-within {
  border-color: rgba(165, 178, 255, 0.72);
  box-shadow: 0 0 0 3px rgba(126, 108, 230, 0.12);
}

.mb-updates-reply-textarea {
  min-height: 54px;
  color: #e8eefb;
  font-size: 15px;
  line-height: 1.55;
}

.mb-updates-reply-textarea::placeholder {
  color: #a6afc5;
}

.mb-updates-composer-tools.is-reply {
  justify-content: flex-end;
  margin-top: 10px;
  padding-top: 0;
  border-top: 0;
}

.mb-updates-composer-tools.is-reply .mb-updates-tool-hint {
  margin-right: auto;
}

@media (max-width: 860px) {
  .mb-updates-feedback-body {
    max-width: calc(100% - 42px);
  }

  .mb-updates-feedback-actions {
    transform: none;
    margin-top: 10px;
  }
}

/* Refined feedback modal */
.mb-updates-backdrop {
  background: rgba(4, 7, 13, 0.78);
  backdrop-filter: blur(10px);
}

.thoughts-new-page-confirm-backdrop {
  background:
    radial-gradient(circle at 50% 48%, rgba(84, 212, 178, 0.13), transparent 30%),
    rgba(5, 9, 17, 0.72);
  backdrop-filter: blur(10px);
}

.thoughts-new-page-confirm-modal {
  width: min(360px, calc(100vw - 32px));
  border-color: rgba(124, 130, 143, 0.34);
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(18, 26, 42, 0.96), rgba(10, 16, 27, 0.98));
  text-align: center;
  box-shadow:
    0 26px 64px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.thoughts-new-page-confirm-modal h4 {
  color: #edf3ff;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.thoughts-new-page-confirm-modal .thoughts-modal-actions {
  justify-content: center;
}

.mb-updates-modal {
  width: min(1298px, calc(100% - 28px));
  height: calc(100vh - 28px);
  max-height: 1063px;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid rgba(97, 111, 143, 0.38);
  border-radius: 20px;
  background: #0d131e;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.62);
}

.mb-updates-header {
  align-items: center;
  padding: 22px 26px 18px;
  background: #0f1622;
  border-bottom: 1px solid rgba(106, 122, 158, 0.18);
}

.mb-updates-title-wrap h3 {
  font-size: 26px;
  line-height: 1.2;
  letter-spacing: 0;
}

.mb-updates-title-wrap p {
  margin-top: 6px;
  color: #9da9bd;
}

.mb-updates-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.mb-updates-summary span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border: 1px solid rgba(119, 137, 176, 0.28);
  border-radius: 999px;
  background: rgba(19, 27, 42, 0.82);
  color: #c9d4e8;
  font-size: 12px;
  font-weight: 700;
}

.mb-updates-close {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  color: #aebad1;
}

.mb-updates-tabs {
  gap: 4px;
  padding: 11px 26px;
  background: #0d131e;
}

.mb-updates-tab {
  height: 34px;
  padding: 0 12px;
  border: 1px solid transparent;
  color: #9da9bd;
}

.mb-updates-tab span {
  margin-left: 5px;
  color: inherit;
}

.mb-updates-tab.is-active {
  border-color: rgba(126, 108, 230, 0.38);
  background: rgba(126, 108, 230, 0.16);
}

.mb-updates-body {
  height: 100%;
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  padding: 20px 26px 0;
  background: #0b111b;
  overflow: hidden;
}

.mb-updates-body > * {
  width: min(1016px, calc(100% - 300px));
  margin-left: auto;
  margin-right: auto;
}

.mb-updates-composer {
  border: 1px solid rgba(111, 128, 164, 0.34);
  border-radius: 14px;
  background: #111927;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
}

.mb-updates-composer:focus-within {
  border-color: rgba(126, 108, 230, 0.6);
  box-shadow: 0 0 0 3px rgba(126, 108, 230, 0.12), 0 14px 32px rgba(0, 0, 0, 0.26);
}

.mb-updates-composer-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px 10px;
}

.mb-updates-composer-head strong,
.mb-updates-composer-head span {
  display: block;
}

.mb-updates-composer-head strong {
  color: #edf3ff;
  font-size: 13px;
}

.mb-updates-composer-head span {
  margin-top: 2px;
  color: #8f9cb1;
  font-size: 12px;
}

.mb-updates-markdown-toolbar {
  min-height: 36px;
  gap: 4px;
  padding: 0 12px;
  background: transparent;
  border-top: 1px solid rgba(111, 128, 164, 0.18);
  border-bottom: 1px solid rgba(111, 128, 164, 0.18);
}

.mb-updates-markdown-toolbar button,
.mb-updates-tool-chip,
.mb-updates-tool-icon {
  min-width: 28px;
  min-height: 28px;
  color: #b9c5d8;
  font-size: 12px;
}

.mb-rich-editor {
  min-height: 320px;
  padding: 22px 26px;
  color: #eef3fb;
  font-size: 15px;
  line-height: 1.65;
}

.mb-rich-editor:empty::before {
  color: #76859d;
  font-size: 15px;
}

.mb-updates-composer-tools {
  gap: 6px;
  padding: 10px 12px 12px;
  border-top: 1px solid rgba(111, 128, 164, 0.14);
}

.mb-updates-tool-hint {
  display: inline-flex;
  align-items: center;
}

.mb-updates-composer-tools .mk-btn {
  min-height: 34px;
  padding: 0 14px;
  font-size: 13px;
  border-radius: 9px;
}

.mb-updates-submit-btn::after {
  margin-left: 8px;
  padding-left: 8px;
}

.mb-updates-list {
  grid-row: 2;
  min-height: 0 !important;
  height: 100%;
  max-height: 100%;
  margin-top: 18px;
  padding-bottom: 22px;
  gap: 14px;
  overflow-y: auto !important;
  overflow-x: hidden;
  overscroll-behavior: contain;
}

.mb-updates-list-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 0 2px;
}

.mb-updates-list-head strong {
  color: #eef3fb;
  font-size: 14px;
}

.mb-updates-list-head span {
  color: #8492a8;
  font-size: 12px;
}

.mb-updates-entry {
  position: relative;
  border: 0;
  border-radius: 14px;
  background: transparent;
  box-shadow: none;
}

.mb-updates-entry::before {
  content: none;
}

.mb-updates-entry-head {
  padding: 14px 8px 8px;
}

.mb-updates-entry-author {
  gap: 8px;
}

.mb-updates-kind-badge {
  min-height: 22px;
  background: rgba(126, 108, 230, 0.16);
  border-color: rgba(126, 108, 230, 0.44);
  color: #d8d1ff;
}

.mb-updates-kind-badge.is-feedback {
  background: rgba(86, 102, 131, 0.22);
  border-color: rgba(132, 148, 181, 0.28);
  color: #c6d1e3;
}

.mb-updates-avatar {
  width: 24px;
  height: 24px;
  border-color: rgba(137, 153, 187, 0.46);
  background: #0b111b;
}

.mb-updates-entry-content {
  padding: 4px 0 18px;
  color: #dfe7f5;
}

.mb-updates-entry-content figure {
  align-items: center;
  margin-left: auto;
  margin-right: auto;
}

.mb-updates-entry-content .mb-rich-content {
  width: 100%;
  max-width: none;
  max-height: min(1000px, 72vh);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none !important;
  -ms-overflow-style: none;
}

.mb-updates-entry-content .mb-rich-content::-webkit-scrollbar {
  width: 0 !important;
  height: 0 !important;
  display: none !important;
}

.mb-updates-entry-content .mb-annotated-image {
  width: fit-content;
  max-width: min(100%, 961px);
  margin-left: auto;
  margin-right: auto;
}

.mb-updates-entry-content .mb-annotated-image-stage {
  width: fit-content;
  max-width: 100%;
}

.mb-updates-entry-content .mb-annotated-image img,
.mb-updates-entry-content .mb-rich-content img,
.mb-updates-entry-content .mb-markdown-inline-image {
  display: block;
  width: auto;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  border: 0;
  background: transparent;
}

.mb-updates-feedback-list {
  margin: 2px 18px 12px 30px;
  padding: 0;
  border: 0;
  gap: 8px;
}

.mb-updates-feedback-item {
  gap: 9px;
}

.mb-updates-feedback-rail {
  padding-top: 10px;
}

.mb-updates-feedback-line {
  min-height: 14px;
  background: rgba(126, 108, 230, 0.28);
}

.mb-updates-feedback-dot {
  background: #8b7bf0;
}

.mb-updates-feedback-body {
  border-color: rgba(111, 128, 164, 0.24);
  background: #0d141f;
  padding: 10px 12px;
}

.mb-updates-feedback-head {
  gap: 7px;
}

.mb-updates-feedback-content {
  margin-top: 8px;
  color: #cad5e7;
}

.mb-updates-entry-actions {
  width: 100%;
  align-items: center;
  padding: 10px 8px;
  border-top: 0;
  background: transparent;
}

.mb-updates-entry-actions span {
  color: #8492a8;
  font-size: 12px;
}

.mb-updates-entry-actions button {
  padding: 0;
}

.mb-updates-reply-row {
  padding: 12px 18px 16px;
  background: transparent;
}

.mb-updates-reply-composer {
  border-color: rgba(111, 128, 164, 0.32);
  background: #0a1019;
  padding: 10px 12px;
}

.mb-updates-reply-textarea {
  min-height: 56px;
  color: #e6edf8;
  font-size: 13px;
}

.mb-updates-composer-tools.is-reply {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(111, 128, 164, 0.14);
}

.mb-updates-empty {
  border-radius: 14px;
  background: #111927;
}

@media (max-width: 860px) {
  .mb-updates-modal {
    width: calc(100% - 20px);
    height: calc(100% - 20px);
    border-radius: 14px;
  }

  .mb-updates-header,
  .mb-updates-tabs,
  .mb-updates-body {
    padding-left: 14px;
    padding-right: 14px;
  }

  .mb-updates-title-wrap h3 {
    font-size: 22px;
  }

  .mb-updates-list-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .mb-updates-feedback-list {
    margin-left: 18px;
    margin-right: 12px;
  }
}

/* Final comment layout override: messenger-style bubbles */
.mb-updates-feedback-list {
  --mb-feedback-bubble-width: min(300px, calc(100% - 46px));
  margin: 8px 18px 18px;
  padding: 2px 0 0;
  border: 0;
  gap: 12px;
}

.mb-updates-feedback-thread {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.mb-updates-feedback-item {
  align-items: flex-start;
  gap: 12px;
  width: 100%;
}

.mb-updates-feedback-item.is-thread-reply {
  justify-content: flex-end;
  padding-left: 112px;
  margin-top: -2px;
}

.mb-updates-feedback-item.is-thread-reply .mb-updates-feedback-body {
  max-width: var(--mb-feedback-bubble-width);
  border-radius: 16px 5px 16px 16px;
  background: #43385f;
  border-color: rgba(153, 132, 210, 0.18);
  margin-bottom: 0;
}

.mb-updates-feedback-item.is-thread-reply .mb-updates-feedback-body:hover {
  background: #4b3f6b;
  border-color: rgba(170, 148, 228, 0.26);
}

.mb-updates-feedback-item.is-thread-reply .mb-updates-feedback-content,
.mb-updates-feedback-item.is-thread-reply .mb-updates-feedback-head span {
  color: #ddd6f3;
}

.mb-updates-feedback-item.is-thread-reply > .mb-updates-avatar {
  order: 0;
}

.mb-updates-feedback-rail,
.mb-updates-feedback-line,
.mb-updates-feedback-dot {
  display: none;
}

.mb-updates-feedback-item > .mb-updates-avatar,
.mb-updates-reply-row > .mb-updates-avatar {
  width: 34px;
  height: 34px;
  margin-top: 0;
  border-color: rgba(142, 158, 190, 0.46);
  background: linear-gradient(180deg, #0b111b, #070b12);
  color: #edf3ff;
  font-size: 12px;
  box-shadow: 0 0 0 3px rgba(17, 25, 39, 0.9);
}

.mb-updates-feedback-body {
  position: relative;
  display: inline-block;
  width: auto;
  min-width: 0;
  max-width: var(--mb-feedback-bubble-width);
  border: 1px solid rgba(150, 162, 194, 0.1);
  border-radius: 5px 16px 16px 16px;
  background: #2f344e;
  padding: 12px 14px 13px;
  color: #e8eefb;
  margin-bottom: 4px;
  overflow-wrap: anywhere;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.16);
  transition: border-color 0.14s ease, background 0.14s ease;
}

.mb-updates-feedback-body:hover {
  border-color: rgba(165, 178, 255, 0.22);
  background: #343955;
}

.mb-updates-feedback-head {
  align-items: center;
  gap: 7px;
  padding-right: 26px;
}

.mb-updates-feedback-head strong {
  color: #f2f6ff;
  font-size: 13px;
  line-height: 1.25;
}

.mb-updates-feedback-head span {
  color: #a9b1c8;
  font-size: 12px;
}

.mb-updates-feedback-head .mb-updates-delete-btn {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 22px;
  height: 22px;
  overflow: hidden;
  color: transparent;
  border-radius: 999px;
  opacity: 0;
}

.mb-updates-feedback-head .mb-updates-delete-btn::before {
  content: '×';
  color: #b6bfd5;
  font-size: 16px;
  line-height: 1;
}

.mb-updates-feedback-body:hover .mb-updates-delete-btn,
.mb-updates-delete-btn:focus-visible {
  opacity: 1;
}

.mb-updates-feedback-head .mb-updates-delete-btn:hover::before {
  color: #ff9aaa;
}

.mb-updates-feedback-content {
  margin-top: 7px;
  color: #dde5f3;
  font-size: 14px;
  width: max-content;
  max-width: 100%;
}

.mb-updates-feedback-content .mb-markdown,
.mb-updates-feedback-content .mb-rich-content {
  width: max-content;
  max-width: 100%;
}

.mb-updates-feedback-content .mb-markdown p,
.mb-updates-feedback-content .mb-rich-content p,
.mb-updates-feedback-content .mb-rich-content div {
  width: max-content;
  max-width: 100%;
}

.mb-updates-feedback-thumbnail {
  position: relative;
  display: inline-flex;
  width: min(220px, 100%);
  margin-top: 10px;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: transparent;
}

.mb-updates-feedback-thumbnail-view {
  display: flex;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: zoom-in;
}

.mb-updates-feedback-thumbnail img,
.mb-updates-feedback-thumbnail-view img {
  width: 100%;
  height: 124px;
  border-radius: 8px;
  object-fit: cover;
}

.mb-updates-feedback-thumbnail-remove {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 999px;
  background: rgba(7, 11, 18, 0.82);
  color: #eef4ff;
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
}

.mb-updates-feedback-thumbnail:hover,
.mb-updates-feedback-thumbnail-view:hover {
  cursor: zoom-in;
}

.mb-updates-feedback-reply-ref {
  margin: -2px 0 9px;
  padding-left: 9px;
  border-left: 2px solid rgba(221, 238, 199, 0.28);
  color: #c8ddb8;
  font-size: 12px;
}

.mb-updates-feedback-reply-ref strong,
.mb-updates-feedback-reply-ref span {
  display: block;
}

.mb-updates-feedback-reply-ref strong {
  color: #edf8e3;
  font-size: 12px;
}

.mb-updates-feedback-reply-ref span {
  margin-top: 2px;
  max-width: 28ch;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mb-updates-feedback-actions {
  position: absolute;
  right: 8px;
  bottom: -14px;
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  opacity: 0;
  transform: translateY(-2px);
  transition: opacity 0.14s ease, transform 0.14s ease;
}

.mb-updates-feedback-body:hover .mb-updates-feedback-actions,
.mb-updates-feedback-actions:focus-within {
  opacity: 1;
  transform: translateY(0);
}

.mb-updates-feedback-actions button {
  width: 26px;
  height: 26px;
  border: 1px solid rgba(151, 165, 198, 0.22);
  border-radius: 999px;
  background: rgba(9, 14, 22, 0.94);
  color: #b6bfd5;
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.mb-updates-feedback-actions button:hover {
  border-color: rgba(165, 178, 255, 0.48);
  background: rgba(126, 108, 230, 0.18);
  color: #edf3ff;
}

.mb-updates-feedback-actions button[aria-pressed='true'] {
  border-color: rgba(118, 203, 165, 0.48);
  background: rgba(64, 115, 92, 0.22);
  color: #a9dec9;
}

.mb-updates-feedback-item.is-completed .mb-updates-feedback-body,
.mb-updates-feedback-item.is-thread-reply.is-completed .mb-updates-feedback-body {
  border-color: rgba(105, 118, 148, 0.16);
  background: rgba(43, 49, 68, 0.58);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
}

.mb-updates-feedback-item.is-completed .mb-updates-feedback-body:hover,
.mb-updates-feedback-item.is-thread-reply.is-completed .mb-updates-feedback-body:hover {
  border-color: rgba(116, 130, 162, 0.22);
  background: rgba(48, 54, 74, 0.62);
}

.mb-updates-feedback-item.is-completed .mb-updates-feedback-head strong,
.mb-updates-feedback-item.is-completed .mb-updates-feedback-head span {
  color: #8994ad;
}

.mb-updates-feedback-item.is-completed .mb-updates-feedback-content {
  color: #8f9ab2;
  opacity: 0.78;
}

.mb-updates-feedback-item.is-completed .mb-updates-feedback-content,
.mb-updates-feedback-item.is-completed .mb-updates-feedback-content .mb-markdown,
.mb-updates-feedback-item.is-completed .mb-updates-feedback-content .mb-rich-content {
  text-decoration: line-through;
  text-decoration-color: rgba(183, 193, 215, 0.58);
  text-decoration-thickness: 1px;
}

.mb-updates-feedback-item.is-completed .mb-updates-feedback-thumbnail {
  opacity: 0.62;
  filter: saturate(0.5) brightness(0.82);
}

.mb-updates-reply-row {
  position: relative;
  grid-row: 3;
  z-index: 18;
  align-items: flex-start;
  gap: 14px;
  margin-top: 0;
  margin-left: -8px;
  margin-right: -8px;
  margin-bottom: 0;
  padding: 12px 22px 14px;
  border-top: 1px solid rgba(96, 112, 145, 0.28);
  border-left: 0;
  border-right: 0;
  border-bottom: 0;
  border-radius: 0 0 24px 24px;
  background:
    linear-gradient(180deg, rgba(16, 23, 37, 0.78) 0%, rgba(13, 19, 31, 0.94) 18%, rgba(10, 16, 27, 0.98) 100%);
  box-shadow: 0 -18px 36px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(12px);
}

.mb-updates-reply-composer {
  flex: 1;
  min-width: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 2px 0 0;
}

.mb-updates-reply-composer:focus-within {
  box-shadow: none;
}

.mb-updates-reply-target {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
  border-left: 2px solid rgba(126, 108, 230, 0.42);
  border-radius: 12px;
  background: rgba(126, 108, 230, 0.12);
  padding: 10px 12px;
}

.mb-updates-reply-target strong,
.mb-updates-reply-target span {
  display: block;
}

.mb-updates-reply-target strong {
  color: #d9d2ff;
  font-size: 12px;
}

.mb-updates-reply-target span {
  margin-top: 2px;
  color: #b8c2dc;
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mb-updates-reply-target button {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #b8c2dc;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
}

.mb-updates-reply-target button:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.mb-updates-reply-input-wrap {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  border: 1px solid rgba(131, 145, 177, 0.24);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(13, 19, 31, 0.98), rgba(10, 15, 25, 0.98));
  padding: 10px 12px;
  transition: border-color 0.14s ease, background 0.14s ease, box-shadow 0.14s ease;
}

.mb-updates-reply-input-wrap.is-empty {
  min-height: 86px;
}

.mb-updates-reply-toolbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 2px 2px 0;
}

.mb-updates-reply-input-row {
  display: flex;
  align-items: stretch;
  gap: 10px;
  min-height: 34px;
}

.mb-updates-reply-attach {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  align-self: flex-start;
  border: 1px solid rgba(151, 165, 198, 0.26);
  border-radius: 999px;
  background: rgba(18, 26, 41, 0.92);
  color: #d9e4ff;
  cursor: pointer;
  font-size: 20px;
  font-weight: 500;
  line-height: 1;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.mb-updates-reply-attach:hover {
  border-color: rgba(165, 178, 255, 0.44);
  background: rgba(126, 108, 230, 0.16);
  color: #f3f6ff;
}

.mb-updates-reply-input-wrap:focus-within {
  border-color: rgba(144, 132, 206, 0.4);
  background: linear-gradient(180deg, rgba(14, 20, 33, 1), rgba(11, 17, 28, 1));
  box-shadow: 0 0 0 3px rgba(126, 108, 230, 0.08);
}

.mb-updates-reply-textarea {
  flex: 1;
  min-height: 32px;
  max-height: 84px;
  resize: vertical;
  color: #e8eefb;
  font-size: 14px;
  line-height: 1.5;
  padding: 2px 4px 4px;
  background: transparent;
  border: 0;
  outline: none;
  box-shadow: none;
}

.mb-updates-reply-input-wrap:not(:focus-within) .mb-updates-reply-textarea {
  color: #dbe4f5;
}

.mb-updates-feedback-thumbnail.is-pending {
  width: 88px;
  margin-top: 0;
}

.mb-updates-feedback-thumbnail.is-pending img,
.mb-updates-feedback-thumbnail.is-pending .mb-updates-feedback-thumbnail-view img {
  height: 88px;
  border-radius: 14px;
}

.mb-updates-reply-textarea:focus,
.mb-updates-reply-textarea:focus-visible {
  outline: none;
  box-shadow: none;
}

.mb-updates-composer-tools.is-reply {
  justify-content: flex-end;
  margin-top: 10px;
  padding-top: 0;
  border-top: 0;
}

.mb-updates-composer-tools.is-reply .mb-updates-tool-hint {
  margin-right: auto;
}

.mb-updates-reply-submit {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border: 0;
  border-radius: 999px;
  align-self: flex-start;
  background: linear-gradient(135deg, #8f80f2, #6f59c8);
  color: #ffffff;
  cursor: pointer;
  font-size: 17px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 24px rgba(111, 89, 200, 0.34);
  transition: transform 0.12s ease, background 0.12s ease, opacity 0.12s ease, box-shadow 0.12s ease;
}

.mb-updates-reply-submit:hover {
  background: linear-gradient(135deg, #9a8bf8, #7b66d8);
  box-shadow: 0 12px 28px rgba(123, 102, 216, 0.4);
  transform: translateY(-1px);
}

.mb-updates-reply-submit:active {
  transform: translateY(0);
}

.mb-updates-reply-error {
  margin: 8px 2px 0;
  color: #ff9dac;
  font-size: 12px;
}

/* Fixed header/footer modal: only the update content area scrolls. */
.mb-updates-modal {
  height: calc(100vh - 28px);
  max-height: calc(100vh - 28px);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
}

.mb-updates-header {
  flex: 0 0 auto;
}

.mb-updates-body {
  position: relative;
  min-height: 0 !important;
  height: auto !important;
  display: flex !important;
  flex-direction: column;
  padding: 20px 0 0;
  overflow-y: auto !important;
  overflow-x: hidden;
  overscroll-behavior: contain;
}

.mb-updates-body::after {
  content: '';
  position: sticky;
  bottom: 116px;
  display: block;
  height: 34px;
  margin-top: -34px;
  background: linear-gradient(180deg, rgba(11, 17, 27, 0), rgba(11, 17, 27, 0.94));
  pointer-events: none;
  z-index: 24;
}

.mb-updates-composer,
.mb-updates-list {
  width: min(1016px, calc(100% - 300px));
  margin-left: auto;
  margin-right: auto;
}

.mb-updates-list {
  flex: 0 0 auto !important;
  min-height: auto !important;
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
  padding-bottom: 42px;
}

.mb-updates-reply-row {
  position: sticky !important;
  bottom: 0;
  flex: 0 0 auto !important;
  width: 100% !important;
  max-width: none !important;
  z-index: 30;
  margin: 20px 0 0 !important;
  padding: 16px max(28px, calc((100% - 1180px) / 2)) 18px;
  border-top: 1px solid rgba(125, 140, 174, 0.28);
  background:
    linear-gradient(180deg, rgba(11, 17, 27, 0.84), rgba(10, 15, 25, 0.98) 34%, rgba(10, 15, 25, 1));
  box-shadow: 0 -18px 42px rgba(0, 0, 0, 0.32);
}

.mb-updates-reply-row > .mb-updates-avatar {
  margin-top: 3px;
}

.mb-updates-reply-composer {
  flex: 0 1 min(100%, 1180px);
  width: min(100%, 1180px);
  max-width: min(100%, 1180px);
  margin: 0 auto;
}

.mb-updates-reply-input-wrap {
  min-height: 0;
  border-color: rgba(120, 136, 171, 0.3);
  background:
    linear-gradient(180deg, rgba(15, 21, 34, 0.96), rgba(10, 16, 27, 0.98));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.mb-updates-reply-input-wrap.is-empty {
  min-height: 78px;
}

.mb-updates-feedback-content .mb-updates-feedback-thumbnail,
.mb-updates-reply-box .mb-updates-feedback-thumbnail.is-pending {
  display: flex;
  margin-left: auto;
  margin-right: auto;
}

.mb-updates-feedback-content .mb-updates-feedback-thumbnail {
  margin-top: 12px;
}

.mb-updates-feedback-content .mb-updates-feedback-thumbnail-view,
.mb-updates-reply-box .mb-updates-feedback-thumbnail-view {
  justify-content: center;
  text-align: center;
}

.mb-updates-feedback-content .mb-updates-feedback-thumbnail img,
.mb-updates-reply-box .mb-updates-feedback-thumbnail-view img {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.mb-updates-entry-attachments {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.mb-updates-entry-attachment {
  width: min(220px, 100%);
}

.mb-updates-entry-attachment span {
  text-align: center;
}

.mb-updates-entry-controls {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.mb-updates-edit-btn {
  border: 0;
  background: transparent;
  color: #b7c7e4;
  cursor: pointer;
  font-size: 12px;
  padding: 0;
}

.mb-updates-edit-btn:hover {
  color: #d8d1ff;
}

.mb-updates-edit-btn:disabled {
  color: #64728d;
  cursor: default;
}

.mb-updates-entry-content .mb-annotated-image {
  text-align: center;
}

.mb-updates-entry-content .mb-annotated-image-stage {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.mb-updates-feedback-list {
  margin-left: clamp(28px, 8vw, 118px);
  margin-right: clamp(28px, 8vw, 118px);
}

.mb-updates-composer-tools {
  justify-content: space-between;
  gap: 14px;
}

.mb-updates-composer-tools .mb-updates-tool-hint {
  display: none;
}

.mb-updates-image-attach-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 38px;
  padding: 0 14px 0 11px;
  border: 1px solid rgba(132, 148, 181, 0.32);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(15, 22, 36, 0.92), rgba(9, 15, 25, 0.96));
  color: #d3dcef;
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.mb-updates-document-import-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 38px;
  padding: 0 14px 0 11px;
  border: 1px solid rgba(116, 142, 210, 0.34);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(12, 25, 45, 0.92), rgba(8, 14, 25, 0.96));
  color: #cfe2ff;
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.mb-updates-image-attach-btn:hover {
  border-color: rgba(145, 126, 238, 0.56);
  background:
    linear-gradient(180deg, rgba(25, 31, 50, 0.96), rgba(13, 20, 33, 0.98));
  color: #f1efff;
}

.mb-updates-document-import-btn:hover:not(:disabled) {
  border-color: rgba(97, 165, 255, 0.58);
  background:
    linear-gradient(180deg, rgba(20, 37, 64, 0.96), rgba(10, 19, 34, 0.98));
  color: #f0f7ff;
}

.mb-updates-document-import-btn:disabled {
  cursor: wait;
  opacity: 0.62;
}

.mb-updates-image-attach-icon {
  position: relative;
  display: inline-flex;
  width: 22px;
  height: 22px;
  border: 1px solid rgba(155, 169, 202, 0.62);
  border-radius: 7px;
  background:
    linear-gradient(135deg, rgba(126, 108, 230, 0.32), rgba(47, 198, 180, 0.18));
  overflow: hidden;
  flex: 0 0 auto;
}

.mb-updates-image-attach-icon::before {
  content: '';
  position: absolute;
  right: 4px;
  top: 4px;
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: #f6d26d;
  box-shadow: 0 0 8px rgba(246, 210, 109, 0.42);
}

.mb-updates-image-attach-icon span {
  position: absolute;
  left: 3px;
  right: 3px;
  bottom: 3px;
  height: 8px;
  border-radius: 3px 3px 5px 5px;
  background:
    linear-gradient(135deg, transparent 0 34%, rgba(229, 235, 249, 0.92) 35% 55%, transparent 56%),
    linear-gradient(45deg, rgba(229, 235, 249, 0.76) 0 46%, transparent 47%);
}

.mb-updates-document-import-icon {
  display: inline-grid;
  place-items: center;
  min-width: 30px;
  height: 22px;
  border: 1px solid rgba(122, 169, 255, 0.54);
  border-radius: 7px;
  background:
    linear-gradient(135deg, rgba(72, 127, 225, 0.32), rgba(126, 108, 230, 0.2));
  color: #dcebff;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.02em;
  box-shadow: 0 0 18px rgba(77, 162, 255, 0.14);
}

.mb-updates-composer-tools .mb-updates-submit-btn {
  margin-left: auto;
}

.mb-updates-composer-edit {
  width: min(1016px, 100%);
  margin: 10px auto 24px;
}

.mb-updates-composer .mb-rich-editor {
  height: min(750px, 54vh);
  min-height: min(750px, 54vh);
  max-height: min(750px, 54vh);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none !important;
  -ms-overflow-style: none;
}

.mb-updates-composer .mb-rich-editor::-webkit-scrollbar {
  width: 0 !important;
  height: 0 !important;
  display: none !important;
}

.mb-updates-composer-edit .mb-rich-editor {
  height: min(750px, 54vh);
  min-height: min(750px, 54vh);
  max-height: min(750px, 54vh);
}

.mb-updates-composer-edit .mb-updates-cancel-btn {
  margin-left: auto;
}

.mb-updates-composer-edit .mb-updates-submit-btn {
  margin-left: 0;
}

.mb-updates-cancel-btn {
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid rgba(128, 143, 178, 0.32);
  border-radius: 9px;
  background: rgba(13, 19, 31, 0.88);
  color: #b9c7df;
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
}

.mb-updates-cancel-btn:hover {
  border-color: rgba(164, 177, 208, 0.48);
  color: #eef4ff;
}

.mb-updates-submit-btn::after {
  content: none;
}

.mb-updates-list .mb-updates-entry {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

.mb-updates-list .mb-updates-entry-shell {
  border: 1px solid rgba(126, 108, 230, 0.62);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(18, 26, 42, 0.96), rgba(10, 16, 27, 0.98));
  box-shadow:
    0 18px 48px rgba(0, 0, 0, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.035);
  overflow: hidden;
}

.mb-updates-list .mb-updates-entry-shell .mb-updates-entry-head {
  padding: 16px 24px 10px;
}

.mb-updates-list .mb-updates-entry-shell .mb-updates-entry-content {
  padding: 8px 28px 24px;
  max-height: min(750px, 54vh);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none !important;
  -ms-overflow-style: none;
}

.mb-updates-list .mb-updates-entry.has-feedbacks .mb-updates-entry-shell .mb-updates-entry-content {
  padding-bottom: 18px;
}

.mb-updates-list .mb-updates-entry-shell .mb-updates-entry-content::-webkit-scrollbar {
  width: 0 !important;
  height: 0 !important;
  display: none !important;
}

.mb-updates-list .mb-updates-entry-shell .mb-updates-entry-content .mb-rich-content {
  max-height: none;
  overflow: visible;
}

.mb-updates-list .mb-updates-feedback-list {
  margin-top: 18px;
  margin-bottom: 24px;
}

.mb-updates-list .mb-updates-entry-shell .mb-updates-entry-content .mb-rich-content > :last-child {
  margin-bottom: 0;
}

.mb-updates-entry-content figcaption,
.mb-updates-feedback-content figcaption {
  display: none;
}

.research-page-shell {
  position: relative;
  min-height: calc(100vh - 40px);
  padding-bottom: 132px;
  overflow: hidden;
}

.research-search-wrap {
  width: min(780px, calc(100% - 48px));
  margin: 18px auto 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.research-search {
  width: 100%;
  min-height: 56px;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(132, 148, 181, 0.24);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(21, 24, 30, 0.94), rgba(15, 18, 24, 0.98));
  padding: 0 20px;
  box-shadow:
    0 18px 44px rgba(0, 0, 0, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.research-search span {
  color: #808a9c;
  font-size: 20px;
}

.research-search input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: #e6edf8;
  padding: 0;
  font-size: 14px;
}

.research-search-tags {
  display: none;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.research-search-tags span {
  border: 1px solid rgba(132, 148, 181, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  color: #8e98aa;
  padding: 4px 9px;
  font-size: 11px;
}

.research-grid {
  width: min(1848px, calc(100% - 88px));
  margin: 6px auto 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(292px, 1fr));
  align-items: start;
  gap: 18px;
}

.research-card {
  position: relative;
  display: block;
  width: auto;
  min-height: 100px;
  margin: 0;
  border: 1px solid rgba(132, 148, 181, 0.28);
  border-radius: 8px;
  background: rgba(8, 12, 18, 0.76);
  padding: 13px 15px 12px;
  color: #b8c2d2;
  text-align: left;
  cursor: pointer;
  transition:
    border-color 0.14s ease,
    background 0.14s ease,
    box-shadow 0.14s ease,
    transform 0.14s ease;
}

.research-card:hover,
.research-card:focus-visible,
.research-card.is-focused {
  border-color: rgba(183, 194, 218, 0.48);
  background: rgba(9, 14, 22, 0.98);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.28);
  transform: translateY(-1px);
}

.research-card-skeleton {
  min-height: 132px;
  cursor: default;
  pointer-events: none;
}

.research-skeleton-line {
  display: block;
  width: 100%;
  height: 12px;
  margin: 11px 0 0;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(132, 148, 181, 0.08), rgba(182, 195, 223, 0.18), rgba(132, 148, 181, 0.08));
  background-size: 220% 100%;
  animation: researchSkeletonPulse 1.05s ease-in-out infinite;
}

.research-skeleton-line.is-title {
  width: 68%;
  height: 17px;
  margin-top: 0;
}

.research-skeleton-line.is-short {
  width: 52%;
}

@keyframes researchSkeletonPulse {
  0% {
    background-position: 100% 0;
  }

  100% {
    background-position: -100% 0;
  }
}

.research-card h4 {
  margin: 0 0 8px;
  color: #dce4f0;
  font-size: 17px;
  line-height: 1.3;
  font-weight: 600;
  letter-spacing: 0;
}

.research-block-content {
  max-height: 26rem;
  color: #aeb8c9;
  font-size: 14px;
  line-height: 1.52;
  font-weight: 400;
  overflow: hidden;
  overflow-wrap: anywhere;
}

.research-block-content p,
.research-block-content div {
  margin: 0 0 5px;
}

.research-block-content strong {
  color: inherit;
  font-size: inherit;
  font-weight: 600;
}

.research-block-images {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(92px, 1fr));
  gap: 8px;
  margin: 8px 0 10px;
}

.research-block-images img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid rgba(132, 148, 181, 0.2);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.04);
}

.research-list-line {
  padding-left: 2px;
}

.research-line-gap {
  display: block;
  height: 8px;
}

.research-tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.research-tag {
  border: 1px solid rgba(137, 155, 194, 0.24);
  border-radius: 999px;
  background: rgba(24, 32, 48, 0.8);
  color: #aebbd3;
  padding: 4px 8px;
  font-size: 11px;
  cursor: pointer;
}

.research-tag:hover {
  border-color: rgba(163, 178, 214, 0.44);
  color: #edf3ff;
}

.research-card-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 14px -4px -5px;
  padding-top: 11px;
  border-top: 1px solid rgba(132, 148, 181, 0.16);
}

.research-card-toolbar > button,
.research-tag-editor button {
  min-width: 28px;
  height: 28px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #aeb8c9;
  cursor: pointer;
  padding: 0 8px;
}

.research-card-toolbar > button:hover,
.research-tag-editor button:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #f1f5ff;
}

.research-tag-editor {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 130px;
}

.research-tag-editor input {
  width: 92px;
  height: 28px;
  border-radius: 999px;
  padding: 0 10px;
  font-size: 12px;
}

.research-empty {
  width: min(520px, calc(100% - 48px));
  margin: 56px auto 0;
  border: 1px dashed rgba(132, 148, 181, 0.28);
  border-radius: 8px;
  background: rgba(9, 14, 22, 0.68);
  padding: 24px;
  text-align: center;
}

.research-empty strong,
.research-empty span {
  display: block;
}

.research-empty span {
  margin-top: 6px;
  color: #9eaabd;
  font-size: 13px;
}

.research-ai-prompt {
  position: fixed;
  left: calc(50% + var(--saas-main-center-shift, 0px));
  bottom: clamp(54px, 7vh, 78px);
  z-index: 15;
  width: min(780px, calc(100vw - var(--saas-main-offset-left, 0px) - 56px));
  min-height: 58px;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) 40px 40px;
  align-items: end;
  gap: 12px;
  padding: 10px 18px;
  border: 1px solid rgba(112, 137, 190, 0.22);
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(20, 31, 49, 0.96), rgba(17, 25, 43, 0.94)),
    radial-gradient(circle at 100% 50%, rgba(118, 99, 240, 0.2), transparent 36%);
  box-shadow:
    0 18px 52px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transform: translateX(-50%);
  backdrop-filter: blur(18px);
}

.research-image-input {
  display: none;
}

.research-ai-prompt button {
  position: relative;
  z-index: 1;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #26c8d8;
  cursor: pointer;
  font-size: 28px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.research-ai-prompt > button:last-child {
  color: #8d7dff;
  font-size: 24px;
}

.research-ai-prompt .research-prompt-search {
  color: #9ba6ba;
  font-size: 0;
}

.research-prompt-search span {
  position: relative;
  display: block;
  width: 18px;
  height: 18px;
  border: 2px solid currentColor;
  border-radius: 999px;
}

.research-prompt-search span::after {
  content: "";
  position: absolute;
  right: -6px;
  bottom: -4px;
  width: 8px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transform: rotate(45deg);
  transform-origin: center;
}

.research-ai-prompt button:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.08);
}

.research-ai-prompt button:disabled {
  opacity: 0.46;
  cursor: not-allowed;
}

.research-prompt-stack {
  position: relative;
  z-index: 1;
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 7px;
}

.research-prompt-images {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  max-width: 100%;
}

.research-prompt-images span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: min(210px, 100%);
  height: 34px;
  border: 1px solid rgba(132, 148, 181, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: #aeb8c9;
  padding: 3px 4px 3px 5px;
}

.research-prompt-images img {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  object-fit: cover;
}

.research-prompt-images b {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11px;
  font-weight: 600;
}

.research-prompt-images button {
  width: 24px;
  height: 24px;
  min-width: 24px;
  color: #aeb8c9;
  font-size: 16px;
}

.research-ai-prompt textarea {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: 32px;
  max-height: 224px;
  border: 0;
  outline: 0;
  resize: none;
  background: transparent;
  color: #dfe9ff;
  padding: 6px 0;
  font-size: 14px;
  line-height: 1.45;
  overflow-y: hidden;
  scrollbar-width: none;
}

.research-ai-prompt textarea::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

.research-ai-prompt textarea::placeholder {
  color: rgba(203, 213, 229, 0.55);
}

.research-status {
  position: fixed;
  left: calc(50% + var(--saas-main-center-shift, 0px));
  bottom: clamp(126px, 15vh, 158px);
  z-index: 14;
  max-width: min(760px, calc(100vw - var(--saas-main-offset-left, 0px) - 64px));
  margin: 0;
  padding: 8px 14px;
  border: 1px solid rgba(112, 137, 190, 0.18);
  border-radius: 999px;
  background: rgba(8, 13, 23, 0.72);
  color: rgba(205, 216, 237, 0.84);
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  transform: translateX(-50%);
  backdrop-filter: blur(12px);
}

.research-status.is-loading {
  color: #cfd7ff;
}

.research-delete-backdrop {
  position: fixed;
  inset: 0;
  z-index: 142;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(4, 7, 12, 0.58);
  backdrop-filter: blur(5px);
}

.research-delete-modal {
  width: min(360px, calc(100vw - 40px));
  border: 1px solid rgba(166, 177, 202, 0.28);
  border-radius: 8px;
  background: #171a20;
  box-shadow: 0 24px 84px rgba(0, 0, 0, 0.44);
  padding: 20px;
}

.research-delete-modal h4 {
  margin: 0;
  color: #e1e7f0;
  font-size: 17px;
  font-weight: 600;
}

.research-delete-modal p {
  margin: 10px 0 0;
  color: #aeb8c7;
  font-size: 13px;
  line-height: 1.55;
}

.research-delete-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 20px;
}

.research-delete-actions button {
  height: 34px;
  border: 0;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.06);
  color: #c7d0df;
  padding: 0 14px;
  cursor: pointer;
}

.research-delete-actions button:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #f1f5fb;
}

.research-delete-actions .is-danger {
  background: rgba(239, 68, 68, 0.18);
  color: #fecaca;
}

.research-delete-actions .is-danger:hover {
  background: rgba(239, 68, 68, 0.28);
  color: #fff1f2;
}

.research-editor-backdrop {
  position: fixed;
  inset: 0;
  z-index: 140;
  display: grid;
  place-items: center;
  background: rgba(18, 20, 24, 0.78);
  backdrop-filter: blur(2px);
  padding: 24px;
}

.research-editor {
  position: relative;
  width: min(660px, calc(100vw - 40px));
  height: min(912px, calc(100vh - 48px));
  max-height: min(912px, calc(100vh - 48px));
  display: grid;
  grid-template-rows: auto minmax(360px, 1fr) auto auto;
  border: 1px solid rgba(164, 174, 196, 0.34);
  border-radius: 7px;
  background: #202124;
  color: #f1f3f4;
  box-shadow: 0 26px 90px rgba(0, 0, 0, 0.42);
  overflow: hidden;
}

.research-editor-title {
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #e9edf3;
  padding: 18px 58px 8px 20px;
  font-size: 18px;
  font-weight: 600;
  outline: none;
}

.research-editor-body {
  min-height: 360px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #d7dde7;
  padding: 6px 20px 18px;
  outline: none;
  line-height: 1.6;
  font-size: 15px;
  font-weight: 400;
  overflow-y: auto;
  white-space: pre-wrap;
}

.research-editor-body div {
  margin: 0 0 4px;
}

.research-editor-body strong {
  font-weight: 700;
}

.research-editor-images {
  padding: 0 20px 8px;
}

.research-editor-images .research-block-images {
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  margin: 0;
}

.research-editor-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  padding: 0 20px 10px;
}

.research-editor-tags button {
  display: inline-flex;
  align-items: center;
  gap: 0;
  min-height: 28px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #c4cad3;
  padding: 4px 9px;
  font-size: 11px;
  cursor: pointer;
}

.research-editor-tags button:hover,
.research-editor-tags button:focus-visible {
  border-color: rgba(164, 174, 196, 0.34);
  background: rgba(255, 255, 255, 0.12);
  outline: none;
}

.research-editor-tags button i {
  display: inline-block;
  width: 0;
  margin-left: 0;
  font-style: normal;
  opacity: 0;
  overflow: hidden;
  transition:
    width 0.14s ease,
    margin-left 0.14s ease,
    opacity 0.14s ease;
}

.research-editor-tags button:hover i,
.research-editor-tags button:focus-visible i {
  width: 10px;
  margin-left: 5px;
  opacity: 1;
}

.research-editor-toolbar {
  min-height: 54px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 9px 18px 11px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: #202124;
}

.research-editor-toolbar button {
  height: 30px;
  min-width: 30px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #c4cad3;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.research-editor-toolbar button:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.research-editor-toolbar button:disabled {
  opacity: 0.36;
  cursor: default;
}

.research-editor-color {
  position: relative;
  width: 28px;
  min-width: 28px;
  padding: 0;
}

.research-editor-color::before {
  content: "";
  display: block;
  width: 18px;
  height: 18px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  background: var(--research-color);
  box-shadow:
    0 0 0 2px rgba(255, 255, 255, 0.04),
    0 0 13px color-mix(in srgb, var(--research-color) 72%, transparent);
}

.research-editor-color:hover::before {
  transform: scale(1.12);
}

.research-editor-size {
  width: 34px;
  min-width: 34px;
  color: #b8c2d2;
  font-size: 11px;
}

.research-toolbar-spacer {
  flex: 1 1 auto;
  min-width: 12px;
}

.research-editor-delete {
  width: 30px;
  min-width: 30px;
  color: #9aa5b5;
  font-size: 15px;
}

.research-editor-delete:hover {
  background: rgba(239, 68, 68, 0.14) !important;
  color: #fecaca !important;
}

.research-editor-save-icon {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: #d7dde7;
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
}

.research-editor-save-icon:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

/* Shared prompt bar geometry for project map and research */
.thoughts-ai-prompt,
.research-ai-prompt {
  --prompt-radius: 29px;
  bottom: clamp(54px, 7vh, 78px);
  min-height: 58px;
  align-items: end;
  border-radius: var(--prompt-radius);
}

.thoughts-ai-prompt {
  position: fixed;
  left: calc(50% + var(--saas-main-center-shift, 0px));
  width: min(780px, calc(100vw - var(--saas-main-offset-left, 0px) - 56px));
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) 40px;
}

.research-ai-prompt {
  left: calc(50% + var(--saas-main-center-shift, 0px));
  width: min(780px, calc(100vw - var(--saas-main-offset-left, 0px) - 56px));
}

.thoughts-ai-prompt textarea,
.research-ai-prompt textarea {
  min-height: 32px;
  max-height: 224px;
}

.thoughts-ai-prompt-message {
  position: fixed;
  left: calc(50% + var(--saas-main-center-shift, 0px));
  bottom: clamp(126px, 15vh, 158px);
  max-width: min(760px, calc(100vw - var(--saas-main-offset-left, 0px) - 64px));
}

@media (max-width: 900px) {
  .research-grid {
    width: calc(100% - 36px);
    grid-template-columns: repeat(auto-fill, minmax(224px, 1fr));
  }

  .research-search-wrap,
  .thoughts-ai-prompt,
  .research-ai-prompt {
    width: calc(100% - 32px);
  }

  .research-editor-toolbar {
    gap: 7px;
  }
}

@media (max-width: 620px) {
  .research-page-shell {
    padding-bottom: 154px;
  }

  .research-grid {
    grid-template-columns: 1fr;
  }

  .thoughts-ai-prompt {
    grid-template-columns: 32px minmax(0, 1fr) 34px;
    border-radius: 24px;
    align-items: end;
  }

  .research-ai-prompt {
    grid-template-columns: 32px minmax(0, 1fr) 34px 34px;
    border-radius: 24px;
    gap: 8px;
    align-items: end;
  }

  .research-editor {
    width: calc(100vw - 20px);
    height: calc(100vh - 20px);
  }

  .research-editor-toolbar {
    gap: 6px;
  }
}

/* Goldilocks Zone sidebar redesign */
.saas-shell {
  --saas-sidebar-width: 326px;
  --saas-main-offset-left: var(--saas-sidebar-width);
  --saas-main-center-shift: 163px;
  grid-template-columns: var(--saas-sidebar-width) minmax(0, 1fr);
  column-gap: 0;
  background:
    radial-gradient(720px 580px at 100% 100%, rgba(66, 42, 140, 0.2), transparent 62%),
    #030914;
}

.saas-sidebar {
  min-height: 100vh;
  gap: 26px;
  padding: 36px 18px 18px;
  border-right: 1px solid rgba(54, 70, 98, 0.76);
  background:
    radial-gradient(340px 320px at 98% 82%, rgba(75, 50, 170, 0.26), transparent 62%),
    radial-gradient(260px 230px at 14% 0%, rgba(23, 85, 150, 0.14), transparent 58%),
    linear-gradient(180deg, #020a15 0%, #040a13 100%);
  box-shadow: none;
  overflow: hidden;
}

.saas-workspace {
  min-height: 162px;
  justify-content: flex-start;
}

.saas-brand-block {
  width: 100%;
  min-height: 132px;
  align-items: flex-start;
}

.saas-brand-logo {
  display: block;
  width: min(260px, 90%);
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 22px 38px rgba(0, 0, 0, 0.38));
}

.saas-brand-mark,
.saas-brand-wordmark {
  display: none;
}

.saas-workspace-quick-add {
  margin-top: -8px;
}

.workspace-quick-add-btn {
  min-height: 104px;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) 24px;
  align-items: center;
  gap: 14px;
  padding: 0 24px;
  border: 1px solid rgba(73, 94, 137, 0.72);
  border-radius: 19px;
  background:
    linear-gradient(135deg, rgba(13, 25, 45, 0.92), rgba(7, 12, 26, 0.9)),
    radial-gradient(circle at 18% 50%, rgba(130, 76, 255, 0.18), transparent 36%);
  color: #f3f6ff;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 0;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.035),
    0 16px 34px rgba(0, 0, 0, 0.2);
}

.workspace-quick-add-btn:hover {
  border-color: rgba(130, 111, 244, 0.9);
  background:
    linear-gradient(135deg, rgba(15, 29, 54, 0.98), rgba(9, 14, 31, 0.98)),
    radial-gradient(circle at 18% 50%, rgba(130, 76, 255, 0.24), transparent 36%);
  color: #ffffff;
}

.workspace-quick-add-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border: 1px solid rgba(129, 95, 255, 0.5);
  border-radius: 999px;
  background:
    radial-gradient(circle at 50% 50%, rgba(129, 95, 255, 0.18), rgba(18, 23, 51, 0.86) 62%);
  color: #d8ccff;
  font-size: 42px;
  font-weight: 300;
  line-height: 1;
  box-shadow: 0 0 28px rgba(129, 95, 255, 0.24);
}

.workspace-quick-add-arrow,
.workspace-nav-arrow {
  color: #c3cee4;
  font-size: 42px;
  font-weight: 300;
  line-height: 1;
}

.workspace-quick-add-create {
  border: 1px solid rgba(73, 94, 137, 0.72);
  border-radius: 19px;
  background: rgba(10, 18, 33, 0.88);
  padding: 14px;
}

.saas-workspace-nav-list {
  margin-top: 0;
  gap: 54px;
}

.workspace-nav-section {
  gap: 24px;
}

.workspace-nav-section + .workspace-nav-section {
  margin-top: 0;
}

.workspace-nav-section-title {
  min-height: 28px;
  display: grid;
  grid-template-columns: 36px minmax(0, auto) 1fr;
  align-items: center;
  gap: 14px;
  margin: 0;
  color: #c6ccdc;
  font-size: 20px;
  font-weight: 900;
}

.workspace-nav-section-title::after {
  content: "";
  height: 1px;
  background: linear-gradient(90deg, rgba(91, 105, 139, 0.8), rgba(91, 105, 139, 0.12));
}

.workspace-section-icon {
  position: relative;
  width: 36px;
  height: 36px;
  color: #b45cff;
}

.workspace-section-icon::before,
.workspace-section-icon::after {
  content: "";
  position: absolute;
  border: 3px solid currentColor;
}

.workspace-section-icon.is-personal::before {
  left: 11px;
  top: 4px;
  width: 10px;
  height: 10px;
  border-radius: 999px;
}

.workspace-section-icon.is-personal::after {
  left: 4px;
  bottom: 4px;
  width: 24px;
  height: 14px;
  border-radius: 15px 15px 6px 6px;
  border-top-width: 3px;
}

.workspace-section-icon.is-team::before {
  left: 6px;
  top: 7px;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  box-shadow: 15px 0 0 -3px #b45cff;
}

.workspace-section-icon.is-team::after {
  left: 2px;
  bottom: 5px;
  width: 28px;
  height: 13px;
  border-radius: 15px 15px 6px 6px;
}

.workspace-nav-section-list {
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.workspace-nav-row {
  min-height: 0;
  padding: 0;
  border: 1px solid rgba(39, 65, 107, 0.86);
  border-radius: 18px;
  background:
    linear-gradient(105deg, rgba(13, 28, 53, 0.88), rgba(8, 13, 32, 0.94)),
    radial-gradient(circle at 96% 50%, rgba(111, 66, 212, 0.16), transparent 48%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.035),
    0 14px 34px rgba(0, 0, 0, 0.18);
}

.workspace-nav-row:hover {
  border-color: rgba(77, 102, 155, 0.96);
}

.workspace-nav-row.is-active {
  border-color: rgba(140, 117, 255, 0.98);
  background:
    linear-gradient(105deg, rgba(52, 48, 93, 0.96), rgba(32, 30, 68, 0.96)),
    radial-gradient(circle at 94% 80%, rgba(140, 58, 238, 0.38), transparent 48%);
  box-shadow:
    0 0 0 2px rgba(139, 119, 255, 0.36),
    0 0 28px rgba(93, 70, 216, 0.26),
    inset 0 0 0 1px rgba(220, 214, 255, 0.12);
}

.workspace-nav-item {
  min-height: 100px;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto 18px;
  gap: 14px;
  align-items: center;
  padding: 0 24px;
  border: 0;
  border-radius: 18px;
  color: #f2f6ff;
  background: transparent;
  cursor: grab;
}

.workspace-nav-row .workspace-nav-item:hover,
.workspace-nav-row .workspace-nav-item.is-active {
  border-color: transparent;
  background: transparent;
}

.workspace-nav-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border: 1px solid rgba(95, 79, 185, 0.46);
  border-radius: 13px;
  background: linear-gradient(135deg, rgba(60, 39, 133, 0.8), rgba(19, 17, 54, 0.92));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.workspace-nav-icon::before {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 2px solid currentColor;
  border-radius: 8px;
  color: currentColor;
  font-size: 13px;
  font-weight: 900;
}

.workspace-nav-icon.is-contest {
  color: #cdbaff;
}

.workspace-nav-icon.is-contest::before {
  content: "1";
  border-radius: 999px 999px 8px 8px;
}

.workspace-nav-icon.is-briefcase {
  color: #64a8ff;
  background: linear-gradient(135deg, rgba(28, 79, 156, 0.72), rgba(11, 31, 70, 0.94));
}

.workspace-nav-icon.is-briefcase::before {
  content: "";
  border-radius: 5px;
  box-shadow: inset 0 9px 0 -5px currentColor;
}

.workspace-nav-icon.is-shield {
  color: #42dec8;
  background: linear-gradient(135deg, rgba(0, 101, 113, 0.7), rgba(8, 46, 60, 0.94));
}

.workspace-nav-icon.is-shield::before {
  content: "";
  width: 25px;
  height: 29px;
  border-radius: 13px 13px 16px 16px;
  clip-path: polygon(50% 0, 92% 16%, 82% 78%, 50% 100%, 18% 78%, 8% 16%);
  background: currentColor;
  border: 0;
}

.workspace-nav-icon.is-team-work {
  color: #21d6e4;
  background: linear-gradient(135deg, rgba(0, 99, 119, 0.72), rgba(7, 44, 65, 0.94));
}

.workspace-nav-icon.is-team-work::before {
  content: "3";
  border-radius: 999px;
}

.workspace-nav-icon.is-personal-work::before {
  content: "";
}

.workspace-nav-title-line {
  display: block;
}

.workspace-nav-name {
  color: #f2f6ff;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 0;
}

.workspace-nav-badge {
  min-height: 38px;
  border: 1px solid rgba(105, 72, 186, 0.38);
  border-radius: 999px;
  padding: 0 15px;
  background: rgba(55, 31, 118, 0.58);
  color: #a766ff;
  font-size: 15px;
  font-weight: 900;
}

.workspace-nav-badge.is-team {
  border-color: rgba(13, 159, 177, 0.34);
  background: rgba(6, 89, 110, 0.62);
  color: #28e2ef;
}

.workspace-nav-inline-edit {
  padding: 18px;
}

.workspace-nav-inline-edit input {
  min-height: 58px;
  border-color: rgba(73, 94, 137, 0.72);
  border-radius: 14px;
  background: rgba(7, 14, 28, 0.92);
  font-size: 18px;
  font-weight: 800;
}

.saas-sidebar-footer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin: auto -1px -18px;
}

.saas-sidebar-footer .mk-btn {
  min-height: 64px;
  border-color: rgba(71, 86, 116, 0.8);
  border-radius: 14px 14px 0 0;
  background: rgba(18, 28, 45, 0.94);
  color: #e9eef8;
  font-size: 17px;
  font-weight: 900;
  text-decoration: none;
}

.saas-sidebar-footer .mk-btn:hover {
  background: rgba(24, 37, 59, 0.98);
  border-color: rgba(102, 121, 160, 0.9);
}

@media (max-width: 900px) {
  .saas-shell {
    --saas-sidebar-width: 100%;
    --saas-main-offset-left: 0px;
    --saas-main-center-shift: 0px;
    grid-template-columns: 1fr;
  }

  .saas-sidebar {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid rgba(54, 70, 98, 0.76);
  }
}

/* Compact pass: keep the mood, make the sidebar usable at desktop scale. */
.saas-shell {
  --saas-sidebar-width: 286px;
  --saas-main-center-shift: 143px;
}

.saas-sidebar {
  gap: 18px;
  padding: 22px 14px 14px;
}

.saas-workspace {
  min-height: 112px;
}

.saas-brand-block {
  min-height: 94px;
}

.saas-brand-logo {
  width: min(168px, 72%);
}

.saas-workspace-quick-add {
  margin-top: -4px;
}

.workspace-quick-add-btn {
  min-height: 70px;
  grid-template-columns: 38px minmax(0, 1fr) 16px;
  gap: 12px;
  padding: 0 18px;
  border-radius: 15px;
  font-size: 16px;
  font-weight: 800;
}

.workspace-quick-add-icon {
  width: 38px;
  height: 38px;
  font-size: 29px;
}

.workspace-quick-add-arrow,
.workspace-nav-arrow {
  font-size: 30px;
}

.saas-workspace-nav-list {
  gap: 30px;
}

.workspace-nav-section {
  gap: 14px;
}

.workspace-nav-section-title {
  min-height: 24px;
  grid-template-columns: 26px minmax(0, auto) 1fr;
  gap: 10px;
  font-size: 15px;
  font-weight: 800;
}

.workspace-section-icon {
  width: 26px;
  height: 26px;
}

.workspace-section-icon::before,
.workspace-section-icon::after {
  border-width: 2px;
}

.workspace-section-icon.is-personal::before {
  left: 8px;
  top: 3px;
  width: 8px;
  height: 8px;
}

.workspace-section-icon.is-personal::after {
  left: 3px;
  bottom: 3px;
  width: 18px;
  height: 10px;
  border-top-width: 2px;
}

.workspace-section-icon.is-team::before {
  left: 5px;
  top: 5px;
  width: 7px;
  height: 7px;
  box-shadow: 11px 0 0 -2px #b45cff;
}

.workspace-section-icon.is-team::after {
  left: 2px;
  bottom: 4px;
  width: 20px;
  height: 9px;
}

.workspace-nav-section-list {
  gap: 14px;
}

.workspace-nav-row,
.workspace-nav-item {
  border-radius: 14px;
}

.workspace-nav-item {
  min-height: 66px;
  grid-template-columns: 42px minmax(0, 1fr) auto 14px;
  gap: 10px;
  padding: 0 16px;
}

.workspace-nav-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
}

.workspace-nav-icon::before {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  font-size: 10px;
}

.workspace-nav-icon.is-shield::before {
  width: 19px;
  height: 22px;
}

.workspace-nav-name {
  font-size: 16px;
  font-weight: 800;
}

.workspace-nav-badge {
  min-height: 28px;
  padding: 0 11px;
  font-size: 12px;
  font-weight: 800;
}

.workspace-nav-inline-edit {
  padding: 10px;
}

.workspace-nav-inline-edit input {
  min-height: 42px;
  font-size: 14px;
}

.saas-sidebar-footer {
  margin: auto -1px -14px;
}

.saas-sidebar-footer .mk-btn {
  min-height: 50px;
  border-radius: 12px 12px 0 0;
  font-size: 14px;
  font-weight: 800;
}

/* Sidebar quiet scale-down */
.saas-shell {
  --saas-sidebar-width: 268px;
  --saas-main-center-shift: 134px;
}

.saas-sidebar {
  gap: 16px;
  padding: 18px 12px 12px;
  border-right-color: rgba(43, 52, 68, 0.72);
  background:
    radial-gradient(300px 300px at 100% 80%, rgba(34, 36, 54, 0.26), transparent 64%),
    linear-gradient(180deg, #050a11 0%, #050910 100%);
}

.saas-workspace {
  min-height: 88px;
}

.saas-brand-block {
  min-height: 76px;
}

.saas-brand-logo {
  width: min(138px, 64%);
  opacity: 0.88;
  filter: drop-shadow(0 16px 26px rgba(0, 0, 0, 0.28));
}

.saas-workspace-quick-add {
  margin-top: -19px;
}

.workspace-quick-add-btn {
  min-height: 54px;
  grid-template-columns: 24px minmax(0, 1fr) 12px;
  gap: 10px;
  padding: 0 14px;
  border-color: rgba(63, 75, 96, 0.58);
  border-radius: 12px;
  background: rgba(11, 17, 27, 0.76);
  color: #c9d1df;
  font-size: 14px;
  font-weight: 600;
  box-shadow: none;
}

.workspace-quick-add-btn:hover {
  border-color: rgba(93, 106, 132, 0.72);
  background: rgba(15, 22, 34, 0.82);
  color: #e1e7f0;
}

.workspace-quick-add-icon {
  width: 24px;
  height: 24px;
  border-color: rgba(125, 132, 150, 0.45);
  background: rgba(23, 28, 42, 0.74);
  color: #b8bfcb;
  font-size: 20px;
  box-shadow: none;
}

.workspace-quick-add-arrow,
.workspace-nav-arrow {
  color: #788294;
  font-size: 22px;
}

.saas-workspace-nav-list {
  gap: 25px;
  margin-top: 2px;
}

.workspace-nav-section {
  gap: 10px;
}

.workspace-nav-section-title {
  grid-template-columns: 20px minmax(0, auto) 1fr;
  gap: 9px;
  color: #a6afbf;
  font-size: 16px;
  font-weight: 600;
}

.workspace-nav-section-title::after {
  background: linear-gradient(90deg, rgba(70, 80, 100, 0.58), rgba(70, 80, 100, 0.08));
}

.workspace-section-icon {
  width: 20px;
  height: 20px;
  color: #8c94a3;
}

.workspace-section-icon::before,
.workspace-section-icon::after {
  content: none;
}

.workspace-section-icon svg {
  display: block;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.workspace-nav-section-list {
  gap: 2px;
}

.workspace-nav-row {
  border-color: transparent;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.workspace-nav-row:hover {
  border-color: transparent;
  background: rgba(255, 255, 255, 0.035);
}

.workspace-nav-row.is-active {
  border-color: rgba(34, 59, 92, 0.82);
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(13, 24, 40, 0.9), rgba(9, 15, 26, 0.86)),
    radial-gradient(circle at 100% 50%, rgba(31, 75, 124, 0.18), transparent 46%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.035),
    0 0 0 1px rgba(8, 17, 30, 0.42);
}

.workspace-nav-item {
  min-height: 42px;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 6px;
  padding: 0 10px;
  border-radius: 0;
}

.workspace-nav-row.is-active .workspace-nav-item {
  border-radius: 10px;
}

.workspace-nav-icon {
  width: auto;
  min-width: 10px;
  height: auto;
  border-color: transparent;
  border-radius: 0;
  background: transparent;
  color: #d7e5f8;
  box-shadow: none;
}

.workspace-nav-icon::before,
.workspace-nav-icon.is-contest::before,
.workspace-nav-icon.is-briefcase::before,
.workspace-nav-icon.is-shield::before,
.workspace-nav-icon.is-team-work::before,
.workspace-nav-icon.is-personal-work::before {
  content: "-";
  width: auto;
  height: auto;
  border: 0;
  border-radius: 0;
  background: transparent;
  clip-path: none;
  box-shadow: none;
  font-size: 13px;
  font-weight: 400;
  line-height: 1;
  color: currentColor;
}

.workspace-nav-icon.is-contest,
.workspace-nav-icon.is-briefcase,
.workspace-nav-icon.is-shield,
.workspace-nav-icon.is-team-work {
  color: #d7e5f8;
  background: transparent;
}

.workspace-nav-name {
  color: #d7e5f8;
  font-size: 13px;
  font-weight: 400;
}

.workspace-nav-row.is-active .workspace-nav-name {
  color: #ffffff;
  font-weight: 400;
}

.workspace-nav-row:not(.is-active) .workspace-nav-item {
  opacity: 0.9;
}

.workspace-nav-badge {
  display: none;
  min-height: 22px;
  border-color: rgba(90, 99, 118, 0.42);
  padding: 0 8px;
  background: rgba(30, 36, 50, 0.8);
  color: #a9b1c0;
  font-size: 11px;
  font-weight: 600;
}

.workspace-nav-badge.is-team {
  border-color: rgba(90, 99, 118, 0.42);
  background: rgba(30, 36, 50, 0.8);
  color: #a9b1c0;
}

.workspace-nav-row.is-active .workspace-nav-badge {
  border-color: rgba(126, 136, 158, 0.5);
  background: rgba(50, 56, 74, 0.86);
  color: #d4dae4;
  font-weight: 700;
}

.workspace-nav-row .workspace-nav-arrow {
  display: none;
}

.saas-sidebar-footer .mk-btn {
  min-height: 44px;
  border-color: rgba(50, 60, 78, 0.62);
  background: rgba(17, 23, 34, 0.78);
  color: #b9c2d0;
  font-size: 13px;
  font-weight: 600;
}

/* Match the compact SVG logo treatment in the latest sidebar reference. */
.saas-workspace {
  min-height: 150px;
}

.saas-brand-block {
  min-height: 132px;
  align-items: center;
}

.saas-brand-logo {
  width: 196px;
  max-width: 80%;
  opacity: 0.94;
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.32));
}

.workspace-quick-add-create {
  gap: 8px;
  padding: 10px;
  border-color: rgba(54, 65, 84, 0.58);
  border-radius: 13px;
  background: rgba(8, 13, 22, 0.72);
  box-shadow: none;
}

.workspace-kind-toggle {
  gap: 6px;
}

.workspace-kind-option {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-color: rgba(55, 65, 82, 0.62);
  border-radius: 10px;
  background: rgba(15, 21, 31, 0.7);
  color: #8f99aa;
  font-size: 12px;
  font-weight: 600;
  transition:
    border-color 0.14s ease,
    background-color 0.14s ease,
    color 0.14s ease;
}

.workspace-kind-option:hover {
  border-color: rgba(78, 90, 112, 0.72);
  background: rgba(19, 26, 38, 0.78);
  color: #b9c1ce;
}

.workspace-kind-option.is-active {
  border-color: rgba(105, 114, 135, 0.86);
  background: rgba(38, 44, 58, 0.88);
  color: #e1e5ec;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.workspace-kind-icon {
  width: 18px;
  height: 18px;
  color: currentColor;
  opacity: 0.92;
}

.workspace-kind-icon svg {
  display: block;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.workspace-quick-add-create input {
  min-height: 40px;
  border-color: rgba(58, 69, 88, 0.68);
  border-radius: 10px;
  background: rgba(14, 20, 30, 0.82);
  color: #d3d9e3;
  padding: 0 12px;
  font-size: 13px;
  font-weight: 500;
  box-shadow: none;
}

.workspace-quick-add-create input::placeholder {
  color: #7e8796;
}

.workspace-quick-add-create input:focus {
  border-color: rgba(116, 124, 144, 0.72);
  background: rgba(17, 23, 34, 0.92);
  outline: none;
  box-shadow: 0 0 0 2px rgba(116, 124, 144, 0.14);
}

/* Fixed sidebar account dock */
.saas-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  max-height: 100vh;
  overflow: hidden;
}

.saas-main {
  min-width: 0;
}

.saas-sidebar-footer.account-dock {
  position: relative;
  display: block;
  margin: auto 0 0;
}

.account-trigger {
  width: 100%;
  min-height: 52px;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 20px 12px;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(48, 58, 75, 0.58);
  border-radius: 13px;
  background: rgba(14, 18, 26, 0.9);
  color: #d4d9e2;
  padding: 6px 8px;
  cursor: pointer;
  text-align: left;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025);
}

.account-trigger:hover,
.account-trigger[aria-expanded='true'] {
  border-color: rgba(72, 84, 106, 0.72);
  background: rgba(18, 23, 33, 0.96);
}

.account-avatar {
  position: relative;
  width: 36px;
  height: 36px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, #66723f, #414a2e);
  color: #f3f7ec;
  font-size: 16px;
  font-weight: 800;
  line-height: 1;
}

.account-avatar i {
  position: absolute;
  right: 1px;
  bottom: 2px;
  width: 9px;
  height: 9px;
  border: 2px solid #10151f;
  border-radius: 999px;
  background: #55b26f;
}

.account-avatar.is-large {
  width: 48px;
  height: 48px;
  font-size: 20px;
}

.account-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.account-copy strong {
  min-width: 0;
  color: #eef1f6;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-copy span {
  min-width: 0;
  color: #8f98a7;
  font-size: 11px;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-control-icon {
  position: relative;
  width: 18px;
  height: 18px;
  border-radius: 6px;
  opacity: 0.78;
}

.account-control-icon::before,
.account-control-icon::after {
  content: "";
  position: absolute;
  left: 4px;
  right: 4px;
  height: 2px;
  border-radius: 999px;
  background: #a6afbf;
}

.account-control-icon::before {
  top: 7px;
  box-shadow: 0 7px 0 #a6afbf;
}

.account-control-icon::after {
  top: 5px;
  left: 12px;
  width: 4px;
  height: 4px;
  border: 2px solid #a6afbf;
  background: transparent;
  box-shadow: -8px 7px 0 -2px #10151f, -8px 7px 0 0 #a6afbf;
}

.account-chevron {
  color: #8d96a6;
  font-size: 24px;
  line-height: 1;
}

.account-menu {
  position: fixed;
  left: calc(var(--saas-sidebar-width, 268px) + 18px);
  bottom: 18px;
  z-index: 520;
  width: min(380px, calc(100vw - var(--saas-sidebar-width, 268px) - 36px));
  border: 1px solid rgba(52, 61, 77, 0.78);
  border-radius: 16px;
  background:
    radial-gradient(280px 180px at 100% 0%, rgba(65, 63, 96, 0.18), transparent 70%),
    #121318;
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.42);
  padding: 12px;
}

.account-menu-head {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 28px;
  gap: 12px;
  align-items: center;
  padding: 4px 4px 12px;
  border-bottom: 1px solid rgba(60, 68, 84, 0.52);
}

.account-menu-head div {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.account-menu-head strong {
  color: #f0f2f6;
  font-size: 15px;
  line-height: 1.2;
}

.account-menu-head div span {
  color: #929aa8;
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-menu-head button {
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #9ca4b1;
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
}

.account-menu-head button:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #d8dde6;
}

.account-menu-item {
  width: 100%;
  min-height: 62px;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  margin-top: 8px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  color: #d4d9e2;
  padding: 10px;
  cursor: pointer;
  text-align: left;
}

.account-menu-item:hover {
  border-color: rgba(70, 80, 98, 0.58);
  background: rgba(255, 255, 255, 0.035);
}

.account-menu-item > span:last-child {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.account-menu-item strong {
  color: #e8ecf3;
  font-size: 14px;
}

.account-menu-item small {
  color: #858e9d;
  font-size: 12px;
}

.account-menu-item.is-danger strong {
  color: #e6c7cc;
}

.account-menu-icon {
  position: relative;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(75, 84, 104, 0.5);
  border-radius: 10px;
  background: rgba(28, 32, 45, 0.86);
}

.account-menu-icon::before,
.account-menu-icon::after {
  content: "";
  position: absolute;
  border: 1.7px solid #aeb6c5;
}

.account-menu-icon.is-profile::before {
  left: 13px;
  top: 8px;
  width: 8px;
  height: 8px;
  border-radius: 999px;
}

.account-menu-icon.is-profile::after {
  left: 8px;
  bottom: 8px;
  width: 18px;
  height: 9px;
  border-radius: 12px 12px 4px 4px;
}

.account-menu-icon.is-plan::before {
  left: 9px;
  top: 8px;
  width: 16px;
  height: 20px;
  border-radius: 4px;
}

.account-menu-icon.is-plan::after {
  left: 13px;
  top: 13px;
  width: 8px;
  height: 2px;
  border: 0;
  border-radius: 999px;
  background: #aeb6c5;
  box-shadow: 0 6px 0 #aeb6c5;
}

.account-menu-icon.is-logout::before {
  left: 8px;
  top: 9px;
  width: 12px;
  height: 16px;
  border-radius: 4px;
}

.account-menu-icon.is-logout::after {
  right: 8px;
  top: 16px;
  width: 10px;
  height: 0;
  border-width: 1.7px 1.7px 0 0;
  transform: rotate(45deg);
}

@media (max-width: 900px) {
  .saas-sidebar {
    position: relative;
    height: auto;
    max-height: none;
  }

  .account-menu {
    left: 12px;
    right: 12px;
    bottom: 12px;
    width: auto;
  }
}

/* Settings screen refinement */
.saas-brand-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
}

.saas-brand-link:hover .saas-brand-logo {
  opacity: 1;
  transform: translateY(-1px);
}

.saas-brand-logo {
  transition: opacity 0.14s ease, transform 0.14s ease;
}

.account-trigger {
  grid-template-columns: minmax(0, 1fr) 28px;
  padding: 6px 8px;
}

.account-profile-button {
  min-width: 0;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  border: 0;
  background: transparent;
  color: inherit;
  padding: 0;
  text-align: left;
  cursor: pointer;
}

.account-settings-button {
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 10px;
  background: rgba(42, 48, 62, 0.78);
  color: #a8b0bd;
  cursor: pointer;
  padding: 0;
}

.account-settings-button {
  width: 28px;
  height: 28px;
}

.account-settings-button:hover {
  background: rgba(55, 63, 80, 0.92);
  color: #d5dbe5;
}

.account-control-icon {
  position: relative;
  width: 16px;
  height: 16px;
}

.account-control-icon::before {
  content: "";
  position: absolute;
  left: 2px;
  right: 2px;
  top: 4px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  box-shadow: 0 7px 0 currentColor;
}

.account-control-icon::after {
  content: "";
  position: absolute;
  left: 3px;
  top: 1px;
  width: 4px;
  height: 4px;
  border: 2px solid currentColor;
  border-radius: 999px;
  background: #2a303e;
  box-shadow:
    7px 7px 0 -2px #2a303e,
    7px 7px 0 0 currentColor;
}

.account-settings-backdrop {
  position: fixed;
  inset: 0;
  z-index: 700;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(4, 6, 10, 0.68);
  backdrop-filter: blur(7px);
}

.account-settings-modal {
  width: min(430px, calc(100vw - 40px));
  max-height: min(560px, calc(100vh - 40px));
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(69, 79, 101, 0.74);
  border-radius: 18px;
  background:
    radial-gradient(280px 170px at 100% 0%, rgba(61, 65, 85, 0.22), transparent 70%),
    #12151c;
  color: #dedfe4;
  box-shadow: 0 26px 90px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}

.account-settings-compact-head {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 34px;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border-bottom: 1px solid rgba(72, 82, 103, 0.5);
}

.account-settings-compact-head div {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.account-settings-compact-head strong {
  color: #f0f3f8;
  font-size: 16px;
  line-height: 1.2;
}

.account-settings-compact-head span:not(.account-avatar) {
  min-width: 0;
  color: #939baa;
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-settings-compact-head > button {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #a1a9b8;
  cursor: pointer;
  font-size: 26px;
  line-height: 1;
}

.account-settings-compact-head > button:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #eef2f7;
}

.account-settings-compact-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
}

.account-settings-compact-list > button {
  width: 100%;
  min-height: 62px;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  border: 1px solid transparent;
  border-radius: 13px;
  background: transparent;
  color: #d7dce5;
  padding: 10px;
  text-align: left;
  cursor: pointer;
}

.account-settings-compact-list > button:hover {
  border-color: rgba(75, 86, 108, 0.58);
  background: rgba(255, 255, 255, 0.04);
}

.account-settings-compact-list > button > span:last-child {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.account-settings-compact-list strong {
  color: #edf1f6;
  font-size: 14px;
}

.account-settings-compact-list small {
  color: #8992a1;
  font-size: 12px;
}

.account-settings-compact-list .is-danger strong {
  color: #e6cbd0;
}

.account-settings-sidebar {
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 24px;
  border-right: 1px solid rgba(55, 57, 64, 0.72);
  background: linear-gradient(180deg, #1a1a1d 0%, #151517 100%);
  padding: 22px 18px;
}

.account-settings-title {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #f0f0f3;
  font-size: 16px;
  font-weight: 700;
}

.account-settings-search {
  height: 42px;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.035);
  padding: 0 12px;
}

.account-settings-search span {
  position: relative;
  width: 17px;
  height: 17px;
  border: 2px solid #8e929b;
  border-radius: 999px;
}

.account-settings-search span::after {
  content: "";
  position: absolute;
  right: -5px;
  bottom: -4px;
  width: 7px;
  height: 2px;
  border-radius: 999px;
  background: #8e929b;
  transform: rotate(45deg);
}

.account-settings-search input {
  min-width: 0;
  border: 0;
  background: transparent;
  color: #9da1aa;
  padding: 0;
  font-size: 13px;
  outline: none;
}

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

.account-settings-nav button,
.account-settings-logout {
  min-height: 40px;
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: #c4c5cb;
  padding: 0 12px;
  text-align: left;
  cursor: pointer;
  font-size: 13px;
}

.account-settings-nav button:hover,
.account-settings-logout:hover {
  background: rgba(255, 255, 255, 0.04);
  color: #efeff2;
}

.account-settings-nav button.is-active {
  border-color: rgba(118, 113, 169, 0.38);
  background: rgba(84, 78, 132, 0.2);
  color: #c8c7ff;
}

.account-settings-logout {
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 0;
  padding-top: 18px;
  color: #cfcfd4;
}

.account-settings-content {
  display: flex;
  flex-direction: column;
  gap: 28px;
  overflow-y: auto;
  padding: 42px 28px 28px;
  background:
    radial-gradient(640px 240px at 100% 24%, rgba(70, 68, 110, 0.09), transparent 70%),
    #101012;
}

.account-settings-content-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.075);
  padding-bottom: 22px;
}

.account-settings-content-head h2 {
  margin: 0;
  color: #f0f0f3;
  font-size: 18px;
}

.account-settings-content-head button {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #a9abb2;
  cursor: pointer;
  font-size: 28px;
  line-height: 1;
}

.account-settings-content-head button:hover {
  background: rgba(255, 255, 255, 0.055);
  color: #efeff2;
}

.account-settings-card {
  min-height: 124px;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.025), rgba(87, 81, 130, 0.035)),
    rgba(15, 15, 18, 0.92);
  padding: 20px 22px;
}

.account-settings-card div {
  min-width: 0;
}

.account-settings-card strong {
  display: block;
  color: #e7e7ec;
  font-size: 16px;
}

.account-settings-card small {
  display: block;
  margin-top: 3px;
  color: #8d919b;
  font-size: 12px;
}

.account-settings-card p {
  margin: 14px 0 0;
  color: #c9c9cf;
  font-size: 14px;
}

.account-settings-card > button {
  min-height: 34px;
  border: 1px solid rgba(140, 143, 154, 0.28);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.07);
  color: #dedfe4;
  padding: 0 16px;
  cursor: pointer;
}

.account-settings-card > button:hover {
  border-color: rgba(172, 176, 188, 0.42);
  background: rgba(255, 255, 255, 0.1);
}

.account-menu-icon {
  overflow: hidden;
}

.account-menu-icon.is-settings::before {
  left: 9px;
  top: 9px;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  box-shadow: 0 -7px 0 -5px #aeb6c5, 0 7px 0 -5px #aeb6c5, 7px 0 0 -5px #aeb6c5, -7px 0 0 -5px #aeb6c5;
}

.account-menu-icon.is-settings::after {
  left: 15px;
  top: 15px;
  width: 2px;
  height: 2px;
  border-radius: 999px;
  background: #aeb6c5;
}

.account-menu-icon.is-team::before {
  left: 8px;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  box-shadow: 12px 0 0 -1px #aeb6c5;
}

.account-menu-icon.is-team::after {
  left: 6px;
  bottom: 9px;
  width: 22px;
  height: 8px;
  border-radius: 12px 12px 4px 4px;
}

@media (max-width: 900px) {
  .account-settings-modal {
    grid-template-columns: 1fr;
  }

  .account-settings-sidebar {
    display: none;
  }

  .account-settings-content {
    padding: 26px 16px;
  }

  .account-settings-card {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .account-settings-card > button {
    grid-column: 2;
    justify-self: start;
  }
}

/* Marketing page refresh: premium monotone landing */
.mk-page {
  min-height: 100vh;
  width: min(100%, 1600px);
  max-width: 1600px;
  margin: 0 auto;
  padding: 16px clamp(18px, 3vw, 56px) 0;
  background: transparent;
  color: #eef1f5;
  overflow-x: hidden;
}

.mk-page::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.34;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.026) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(180deg, black 0%, transparent 78%);
}

.mk-topbar {
  position: sticky;
  top: 14px;
  z-index: 20;
  border: 1px solid rgba(229, 233, 241, 0.12);
  border-radius: 22px;
  background: rgba(8, 10, 13, 0.72);
  padding: 11px 14px 11px 18px;
  box-shadow:
    0 28px 90px rgba(0, 0, 0, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.055);
  backdrop-filter: blur(22px);
}

.mk-logo {
  width: 214px;
  min-width: 170px;
}

.mk-logo img {
  display: block;
  width: 178px;
  max-width: 100%;
  height: auto;
  filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.46));
}

.mk-nav a {
  color: #a9b0bb;
  font-size: 13px;
  font-weight: 700;
}

.mk-nav a:hover {
  color: #ffffff;
}

.mk-btn {
  border-radius: 12px;
  border-color: rgba(225, 230, 240, 0.14);
  padding: 10px 16px;
  letter-spacing: -0.02em;
}

.mk-btn-primary {
  border-color: rgba(255, 255, 255, 0.82);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(204, 210, 220, 0.94));
  color: #080a0d;
  box-shadow: 0 18px 40px rgba(255, 255, 255, 0.11);
}

.mk-btn-primary:hover {
  border-color: #ffffff;
  box-shadow: 0 22px 54px rgba(255, 255, 255, 0.16);
}

.mk-btn-ghost {
  background: rgba(14, 17, 22, 0.66);
  color: #dce2eb;
}

.mk-btn-ghost:hover {
  border-color: rgba(231, 235, 244, 0.26);
  background: rgba(26, 30, 38, 0.84);
}

.mk-hero {
  display: block;
  min-height: min(560px, calc(100vh - 126px));
  margin-top: 18px;
  border: 1px solid rgba(226, 232, 242, 0.12);
  border-radius: 30px;
  padding: clamp(36px, 5vw, 72px);
  background: linear-gradient(116deg, rgba(13, 16, 21, 0.98) 0%, rgba(7, 9, 12, 0.84) 49%, rgba(11, 12, 16, 0.72) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    0 34px 110px rgba(0, 0, 0, 0.5);
}

.mk-hero::before {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.055), transparent 38%),
    radial-gradient(780px 420px at 74% 42%, rgba(255, 255, 255, 0.12), transparent 68%);
}

.mk-hero-copy {
  max-width: 680px;
}

.mk-eyebrow {
  border-color: rgba(231, 235, 244, 0.16);
  background: rgba(255, 255, 255, 0.045);
  box-shadow: none;
  color: #d9dee7;
}

.mk-hero h1 {
  margin-top: 24px;
  max-width: 720px;
  color: #f7f8fb;
  font-size: clamp(40px, 4.8vw, 78px);
  line-height: 1.02;
  letter-spacing: -0.065em;
}

.mk-hero h1::first-line {
  color: #f7f8fb;
}

.mk-sub {
  max-width: 610px;
  color: #aeb5c0;
  font-size: 15px;
  line-height: 1.72;
}

.mk-hero-visual {
  position: absolute;
  inset: 0;
  z-index: 1;
  min-height: 0;
  overflow: hidden;
  pointer-events: auto;
}

.mk-hero-system {
  position: absolute;
  right: clamp(-90px, -4vw, -30px);
  top: 50%;
  width: min(52vw, 680px);
  aspect-ratio: 1.16;
  transform: translateY(-50%);
  opacity: 0.92;
}

.mk-hero-system::before {
  content: "";
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 46%, rgba(255, 255, 255, 0.13), transparent 24%),
    radial-gradient(circle at 50% 50%, rgba(131, 137, 151, 0.16), transparent 54%);
  filter: blur(2px);
}

.mk-hero-brain {
  position: absolute;
  inset: 6% 7% auto auto;
  width: 78%;
  height: auto;
  opacity: 0.42;
  filter: grayscale(1) contrast(1.18) brightness(0.86);
  mix-blend-mode: screen;
  animation: mkBrainFloat 8s ease-in-out infinite;
}

.mk-system-ring {
  position: absolute;
  border: 1px solid rgba(227, 232, 242, 0.14);
  border-radius: 50%;
  transform: rotate(-17deg);
}

.mk-system-ring-one {
  inset: 20% 7% 24% 6%;
  animation: mkOrbitDrift 10s ease-in-out infinite;
}

.mk-system-ring-two {
  inset: 11% -2% 15% -4%;
  opacity: 0.62;
  animation: mkOrbitDrift 13s ease-in-out infinite reverse;
}

.mk-system-node {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #f3f5f8;
  box-shadow: 0 0 24px rgba(255, 255, 255, 0.7);
  animation: mkNodePulse 2.8s ease-in-out infinite;
}

.mk-system-node-one {
  right: 20%;
  top: 21%;
}

.mk-system-node-two {
  right: 46%;
  top: 62%;
  animation-delay: 0.55s;
}

.mk-system-node-three {
  right: 9%;
  top: 55%;
  animation-delay: 1.1s;
}

.mk-system-flow {
  position: absolute;
  right: 9%;
  bottom: 16%;
  display: grid;
  grid-template-columns: repeat(4, auto);
  gap: 8px;
  padding: 8px;
  border: 1px solid rgba(232, 236, 244, 0.12);
  border-radius: 999px;
  background: rgba(7, 9, 12, 0.58);
  backdrop-filter: blur(16px);
}

.mk-system-flow span {
  min-width: 50px;
  border-radius: 999px;
  padding: 7px 10px;
  background: rgba(255, 255, 255, 0.075);
  color: #d8dde6;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}

.mk-system-card {
  position: absolute;
  width: 190px;
  border: 1px solid rgba(232, 236, 244, 0.13);
  border-radius: 18px;
  background: rgba(9, 11, 15, 0.62);
  padding: 14px 16px;
  backdrop-filter: blur(18px);
  box-shadow: 0 22px 58px rgba(0, 0, 0, 0.34);
  animation: mkCardFloat 6.5s ease-in-out infinite;
}

.mk-system-card b,
.mk-system-card span {
  display: block;
}

.mk-system-card b {
  color: #ffffff;
  font-size: 13px;
}

.mk-system-card span {
  margin-top: 4px;
  color: #9ea6b2;
  font-size: 12px;
}

.mk-system-card-one {
  left: 10%;
  top: 24%;
}

.mk-system-card-two {
  right: 13%;
  top: 44%;
  animation-delay: 0.9s;
}

.mk-hero:hover .mk-hero-brain {
  opacity: 0.56;
  filter: grayscale(1) contrast(1.26) brightness(0.95);
}

.mk-section {
  margin-top: clamp(46px, 7vw, 88px);
}

.mk-section-head h2 {
  color: #f5f7fa;
  font-size: clamp(24px, 2.35vw, 34px);
}

.mk-section-head p {
  max-width: 720px;
  color: #939ba8;
  font-size: 15px;
  line-height: 1.7;
}

.mk-advantage-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 20px;
}

.mk-advantage-card,
.mk-card,
.mk-quick-card {
  border-color: rgba(231, 235, 244, 0.12);
  background: linear-gradient(180deg, rgba(16, 19, 25, 0.82), rgba(8, 10, 13, 0.9));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.045),
    0 24px 70px rgba(0, 0, 0, 0.28);
}

.mk-advantage-card {
  position: relative;
  min-height: 440px;
  border: 1px solid rgba(231, 235, 244, 0.12);
  border-radius: 24px;
  padding: 22px;
  overflow: hidden;
}

.mk-advantage-card::after {
  content: "";
  position: absolute;
  inset: auto 20px 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.48), transparent);
  opacity: 0.42;
}

.mk-advantage-card h3 {
  margin: 22px 0 0;
  color: #f3f5f8;
  font-size: 18px;
  letter-spacing: -0.04em;
}

.mk-advantage-card p {
  margin: 12px 0 0;
  color: #a1a9b4;
  font-size: 15px;
  line-height: 1.72;
}

.mk-advantage-visual {
  position: relative;
  height: 210px;
  border: 1px solid rgba(231, 235, 244, 0.1);
  border-radius: 18px;
  background:
    radial-gradient(360px 180px at 58% 18%, rgba(255, 255, 255, 0.1), transparent 68%),
    #07090d;
  overflow: hidden;
}

.mk-advantage-collect {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 16px;
}

.mk-advantage-collect span {
  border: 1px solid rgba(230, 234, 242, 0.12);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.02));
  transform: translateY(calc(var(--collect-offset, 0) * 1px));
}

.mk-advantage-collect span:nth-child(1) {
  --collect-offset: 0;
}

.mk-advantage-collect span:nth-child(2) {
  --collect-offset: 16;
}

.mk-advantage-collect span:nth-child(3) {
  --collect-offset: 34;
}

.mk-advantage-board {
  display: grid;
  align-content: center;
  gap: 10px;
  padding: 18px;
}

.mk-advantage-board span {
  display: grid;
  grid-template-columns: 92px repeat(3, 1fr);
  align-items: center;
  gap: 8px;
  min-height: 42px;
  border: 1px solid rgba(230, 234, 242, 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, calc(0.035 + var(--row-index) * 0.018));
}

.mk-advantage-board i {
  padding-left: 12px;
  color: #d5dae2;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.mk-advantage-board b {
  height: 12px;
  border-radius: 999px;
  background: rgba(225, 230, 240, 0.2);
}

.mk-advantage-map img {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 128%;
  transform: translate(-50%, -50%);
  opacity: 0.48;
  filter: grayscale(1) contrast(1.18) brightness(0.86);
}

.mk-advantage-map span {
  position: absolute;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 0 18px rgba(255, 255, 255, 0.72);
}

.mk-advantage-map span:nth-of-type(1) {
  left: 26%;
  top: 34%;
}

.mk-advantage-map span:nth-of-type(2) {
  left: 56%;
  top: 52%;
}

.mk-advantage-map span:nth-of-type(3) {
  right: 23%;
  top: 28%;
}

.mk-card {
  min-height: 142px;
  border-radius: 22px;
  padding: 24px;
}

.mk-card-icon {
  width: 42px;
  height: 42px;
  border-color: rgba(232, 236, 244, 0.13);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  color: #f2f4f7;
  font-size: 13px;
  box-shadow: none;
}

.mk-card h3 {
  color: #f4f6f9;
  font-size: 16px;
}

.mk-card p {
  color: #9aa3af;
}

.mk-plan-card.is-violet,
.mk-plan-card.is-blue,
.mk-plan-card.is-gold {
  border-color: rgba(231, 235, 244, 0.12);
  background: linear-gradient(180deg, rgba(16, 19, 25, 0.82), rgba(8, 10, 13, 0.9));
}

.mk-plan-card::before,
.mk-plan-card.is-violet::before,
.mk-plan-card.is-blue::before,
.mk-plan-card.is-gold::before {
  background: radial-gradient(circle, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0.04));
}

.mk-quick-card {
  border-radius: 24px;
}

.mk-quick-step span {
  border-color: rgba(231, 235, 244, 0.16);
  background: rgba(255, 255, 255, 0.055);
  color: #f5f7fa;
  box-shadow: none;
}

.mk-quick-step p {
  color: #c1c7d0;
}

.mk-footer {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 26px;
  margin-top: 72px;
  padding: 32px 0 36px;
  border-top: 1px solid rgba(231, 235, 244, 0.12);
}

.mk-footer-brand img {
  display: block;
  width: 170px;
  height: auto;
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.38));
}

.mk-footer-brand p {
  max-width: 420px;
  margin: 14px 0 0;
  color: #929aa6;
  line-height: 1.65;
}

.mk-footer nav {
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 18px;
  flex-wrap: wrap;
}

.mk-footer a {
  color: #c5cbd4;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.mk-footer a:hover {
  color: #ffffff;
}

.mk-footer small {
  grid-column: 1 / -1;
  color: #69717c;
}

@keyframes mkBrainFloat {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-14px) scale(1.018);
  }
}

@keyframes mkOrbitDrift {
  0%,
  100% {
    transform: rotate(-17deg) translate3d(0, 0, 0);
  }
  50% {
    transform: rotate(-13deg) translate3d(-8px, -6px, 0);
  }
}

@keyframes mkNodePulse {
  0%,
  100% {
    opacity: 0.44;
    transform: scale(0.82);
  }
  50% {
    opacity: 1;
    transform: scale(1.18);
  }
}

@keyframes mkCardFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@media (max-width: 1200px) {
  .mk-hero-system {
    right: -150px;
    width: min(72vw, 720px);
    opacity: 0.62;
  }

  .mk-advantage-grid {
    grid-template-columns: 1fr;
  }

  .mk-advantage-card {
    min-height: 0;
  }
}

@media (max-width: 860px) {
  .mk-page {
    padding: 12px 14px 0;
    overflow: hidden;
  }

  .mk-topbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    top: 10px;
    gap: 10px;
    padding: 10px 10px 12px;
    max-width: 100%;
  }

  .mk-logo {
    width: 138px;
    min-width: 138px;
  }

  .mk-logo img {
    width: 132px;
  }

  .mk-actions {
    display: none;
  }

  .mk-nav {
    grid-column: 1 / -1;
    width: 100%;
    order: 3;
    justify-content: flex-start;
    gap: 18px;
    overflow-x: auto;
  }

  .mk-hero {
    min-height: 620px;
    padding: 34px 22px;
    border-radius: 24px;
    max-width: 100%;
  }

  .mk-hero-copy {
    max-width: 100%;
  }

  .mk-hero h1 {
    max-width: 330px;
    font-size: clamp(34px, 9.8vw, 40px);
    line-height: 1.08;
    letter-spacing: -0.06em;
    overflow-wrap: break-word;
  }

  .mk-sub {
    max-width: 320px;
    font-size: 15px;
  }

  .mk-section-head p,
  .mk-advantage-card p,
  .mk-card p,
  .mk-footer-brand p {
    width: min(100%, 330px);
    max-width: 100%;
    overflow-wrap: break-word;
  }

  .mk-hero-visual {
    display: block;
  }

  .mk-hero-system {
    right: -190px;
    top: 67%;
    width: 720px;
    opacity: 0.48;
  }

  .mk-system-card,
  .mk-system-flow {
    display: none;
  }

  .mk-grid-3 {
    grid-template-columns: 1fr;
  }

  .mk-quick-card {
    grid-template-columns: 1fr;
  }

  .mk-footer {
    grid-template-columns: 1fr;
  }

  .mk-footer nav {
    justify-content: flex-start;
  }
}

/* Final marketing responsive overrides */
@media (max-width: 760px) {
  .mk-hero-copy {
    max-width: min(300px, calc(100vw - 44px));
  }

  .mk-hero h1 {
    max-width: min(300px, calc(100vw - 44px));
    gap: 10px;
    font-size: clamp(21px, 5.3vw, 24px);
    line-height: 1.18;
    overflow-wrap: anywhere;
  }

  .mk-hero h1 span {
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .mk-sub {
    max-width: min(300px, calc(100vw - 44px));
    font-size: 13px;
    overflow-wrap: anywhere;
  }
}

/* Earlier duplicated live hero lock. The final override is declared near the end of this file. */
/* Final hero copy alignment: true center, then lifted by roughly 3%. */
.mk-hero-copy {
  position: absolute !important;
  left: 50% !important;
  top: 47% !important;
  z-index: 8 !important;
  width: min(1180px, calc(100% - 48px)) !important;
  max-width: none !important;
  min-width: 0 !important;
  display: grid !important;
  justify-items: center !important;
  text-align: center !important;
  transform: translate(-50%, -50%) !important;
}

.mk-hero h1 {
  width: fit-content !important;
  max-width: min(1180px, calc(100vw - 48px)) !important;
  margin: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: clamp(14px, 1.2vw, 22px) !important;
  text-align: center !important;
  letter-spacing: 0 !important;
  text-wrap: balance !important;
}

.mk-hero h1 span {
  position: relative !important;
  display: block !important;
  width: fit-content !important;
  max-width: 100% !important;
  margin-inline: auto !important;
  color: #ffffff !important;
  text-align: center !important;
  text-wrap: balance !important;
  word-break: keep-all !important;
  overflow-wrap: break-word !important;
}

.mk-hero-glitch-line {
  isolation: isolate !important;
  text-shadow:
    -3px 0 0 rgba(31, 246, 255, 0.28),
    3px 0 0 rgba(255, 60, 206, 0.24),
    0 3px 0 rgba(3, 8, 17, 0.9),
    0 0 18px rgba(106, 236, 255, 0.1),
    0 0 22px rgba(255, 52, 212, 0.08) !important;
  animation: mkHeroTitleGlitchPulse 1.85s steps(1, end) infinite !important;
}

.mk-hero-glitch-line::before,
.mk-hero-glitch-line::after {
  content: attr(data-text) !important;
  position: absolute !important;
  inset: 0 !important;
  z-index: -1 !important;
  width: 100% !important;
  max-width: 100% !important;
  overflow: hidden !important;
  white-space: inherit !important;
  text-align: inherit !important;
  pointer-events: none !important;
}

.mk-hero-glitch-line::before {
  color: #25f6ff !important;
  clip-path: polygon(0 12%, 100% 12%, 100% 32%, 0 32%) !important;
  opacity: 0.34 !important;
  mix-blend-mode: screen !important;
  transform: translate(-3px, 1px) !important;
  animation: mkHeroTitleGlitchCyan 1.85s steps(1, end) infinite !important;
}

.mk-hero-glitch-line::after {
  color: #ff3bd2 !important;
  clip-path: polygon(0 66%, 100% 66%, 100% 86%, 0 86%) !important;
  opacity: 0.3 !important;
  mix-blend-mode: screen !important;
  transform: translate(3px, -1px) !important;
  animation: mkHeroTitleGlitchMagenta 1.85s steps(1, end) infinite !important;
}

@keyframes mkHeroTitleGlitchPulse {
  0%,
  64%,
  100% {
    transform: translate(0, 0) skewX(0);
    filter: none;
  }

  66% {
    transform: translate(-2px, 1px) skewX(-0.8deg);
    filter: brightness(1.12);
  }

  68% {
    transform: translate(2px, -1px) skewX(0.7deg);
    filter: brightness(1.05);
  }

  71% {
    transform: translate(-1px, 0) skewX(0);
    filter: brightness(1.1);
  }

  74% {
    transform: translate(0, 0);
    filter: none;
  }
}

@keyframes mkHeroTitleGlitchCyan {
  0%,
  64%,
  100% {
    transform: translate(-3px, 1px);
    opacity: 0.34;
    clip-path: polygon(0 12%, 100% 12%, 100% 32%, 0 32%);
  }

  66% {
    transform: translate(-8px, 2px);
    opacity: 0.48;
    clip-path: polygon(0 8%, 100% 8%, 100% 21%, 0 21%);
  }

  68% {
    transform: translate(-2px, -1px);
    opacity: 0.42;
    clip-path: polygon(0 38%, 100% 38%, 100% 54%, 0 54%);
  }

  71% {
    transform: translate(-6px, 1px);
    opacity: 0.44;
    clip-path: polygon(0 72%, 100% 72%, 100% 86%, 0 86%);
  }

  74% {
    transform: translate(-3px, 1px);
    opacity: 0.34;
    clip-path: polygon(0 12%, 100% 12%, 100% 32%, 0 32%);
  }
}

@keyframes mkHeroTitleGlitchMagenta {
  0%,
  64%,
  100% {
    transform: translate(3px, -1px);
    opacity: 0.3;
    clip-path: polygon(0 66%, 100% 66%, 100% 86%, 0 86%);
  }

  66% {
    transform: translate(8px, -2px);
    opacity: 0.44;
    clip-path: polygon(0 62%, 100% 62%, 100% 79%, 0 79%);
  }

  68% {
    transform: translate(2px, 1px);
    opacity: 0.4;
    clip-path: polygon(0 23%, 100% 23%, 100% 39%, 0 39%);
  }

  71% {
    transform: translate(6px, -1px);
    opacity: 0.42;
    clip-path: polygon(0 46%, 100% 46%, 100% 61%, 0 61%);
  }

  74% {
    transform: translate(3px, -1px);
    opacity: 0.3;
    clip-path: polygon(0 66%, 100% 66%, 100% 86%, 0 86%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .mk-hero-glitch-line,
  .mk-hero-glitch-line::before,
  .mk-hero-glitch-line::after {
    animation: none !important;
  }
}

.mk-sub {
  width: min(760px, 100%) !important;
  max-width: 760px !important;
  margin: clamp(28px, 3.2vw, 44px) auto 0 !important;
  text-align: center !important;
}

.mk-hero-actions {
  width: 100% !important;
  justify-content: center !important;
  margin-top: clamp(34px, 4vw, 56px) !important;
}

.mk-hero-test-cta {
  gap: 10px !important;
  padding-left: 18px !important;
}

.mk-hero-test-icon {
  position: relative !important;
  width: 22px !important;
  height: 22px !important;
  display: inline-grid !important;
  place-items: center !important;
  border-radius: 999px !important;
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.95) 0 2px, transparent 3px),
    radial-gradient(circle, rgba(143, 112, 255, 0.28), transparent 66%) !important;
  box-shadow:
    0 0 14px rgba(160, 116, 255, 0.54),
    inset 0 0 0 1px rgba(255, 255, 255, 0.28) !important;
}

.mk-hero-test-icon::before,
.mk-hero-test-icon::after {
  content: "" !important;
  position: absolute !important;
  border-radius: 999px !important;
  pointer-events: none !important;
}

.mk-hero-test-icon::before {
  inset: 3px !important;
  border: 1px solid rgba(255, 255, 255, 0.5) !important;
  border-left-color: rgba(255, 136, 76, 0.85) !important;
  transform: rotate(-22deg) !important;
}

.mk-hero-test-icon::after {
  right: 1px !important;
  top: 4px !important;
  width: 5px !important;
  height: 5px !important;
  background: #ff8a50 !important;
  box-shadow: 0 0 10px rgba(255, 138, 80, 0.8) !important;
}

.mk-hero-test-icon span {
  width: 4px !important;
  height: 4px !important;
  border-radius: 999px !important;
  background: #ffffff !important;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.86) !important;
}

@media (max-width: 760px) {
  .mk-hero-copy {
    top: 48% !important;
    width: min(360px, calc(100% - 44px)) !important;
  }

  .mk-hero h1,
  .mk-sub {
    max-width: 100% !important;
  }
}

.mk-hero {
  position: relative !important;
  isolation: isolate !important;
  overflow: hidden !important;
  min-height: 115vh !important;
  background: #02040a !important;
}

.mk-hero::before {
  content: "" !important;
  display: block !important;
  position: absolute !important;
  inset: -3% !important;
  z-index: 0 !important;
  background: url("/assets/hero_bg-D--qcYRt.png") center / cover no-repeat !important;
  opacity: 0.96 !important;
  transform: translate3d(0, 0, 0) scale(1.015);
  animation: mkHeroBgBreathFinal 18s ease-in-out infinite alternate !important;
  pointer-events: none !important;
}

.mk-hero::after {
  content: "" !important;
  display: block !important;
  position: absolute !important;
  inset: 0 !important;
  z-index: 3 !important;
  background:
    radial-gradient(720px 300px at 50% 43%, rgba(0, 0, 0, 0.54), rgba(0, 0, 0, 0.18) 58%, transparent 78%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.12), transparent 36%, rgba(0, 0, 0, 0.16)) !important;
  opacity: 0.72 !important;
  animation: mkHeroVeilBreathFinal 12s ease-in-out infinite alternate !important;
  pointer-events: none !important;
}

.mk-network-field {
  display: block !important;
  position: absolute !important;
  inset: 0 !important;
  z-index: 4 !important;
  overflow: hidden !important;
  pointer-events: none !important;
}

.mk-network-field::before {
  content: "" !important;
  display: block !important;
  position: absolute !important;
  inset: -8% !important;
  z-index: 1 !important;
  background:
    radial-gradient(circle at 9% 21%, rgba(164, 99, 255, 0.24) 0 1px, transparent 3px),
    radial-gradient(circle at 15% 39%, rgba(255, 125, 68, 0.18) 0 1px, transparent 3px),
    radial-gradient(circle at 34% 16%, rgba(111, 189, 255, 0.18) 0 1px, transparent 3px),
    radial-gradient(circle at 73% 18%, rgba(164, 99, 255, 0.2) 0 1px, transparent 3px),
    radial-gradient(circle at 89% 31%, rgba(180, 111, 255, 0.22) 0 1px, transparent 3px),
    radial-gradient(circle at 96% 47%, rgba(255, 125, 68, 0.24) 0 1px, transparent 3px) !important;
  opacity: 0.76 !important;
  mix-blend-mode: screen !important;
  animation: mkStarfieldDriftFinal 24s ease-in-out infinite alternate !important;
}

.mk-network-field::after {
  content: "" !important;
  display: block !important;
  position: absolute !important;
  inset: 0 !important;
  z-index: 2 !important;
  background:
    radial-gradient(circle at 4% 11%, rgba(176, 112, 255, 0.42) 0 1px, transparent 3px),
    radial-gradient(circle at 11% 31%, rgba(118, 76, 255, 0.34) 0 1px, transparent 3px),
    radial-gradient(circle at 28% 14%, rgba(99, 188, 255, 0.36) 0 1px, transparent 3px),
    radial-gradient(circle at 43% 20%, rgba(255, 137, 75, 0.34) 0 1px, transparent 3px),
    radial-gradient(circle at 68% 12%, rgba(160, 99, 255, 0.28) 0 1px, transparent 3px),
    radial-gradient(circle at 84% 26%, rgba(178, 110, 255, 0.4) 0 1px, transparent 3px),
    radial-gradient(circle at 94% 42%, rgba(255, 126, 70, 0.42) 0 1px, transparent 3px) !important;
  opacity: 0.72 !important;
  mix-blend-mode: screen !important;
  animation: mkConstellationBlinkFinal 4.4s ease-in-out infinite alternate !important;
}

.mk-network-line,
.mk-network-node,
.mk-network-glow,
.mk-dome {
  display: none !important;
}

.mk-synapse-spark,
.mk-synapse-current,
.mk-neuron-flare {
  display: block !important;
  position: absolute !important;
  z-index: 6 !important;
  pointer-events: none !important;
  mix-blend-mode: screen !important;
}

.mk-synapse-spark {
  width: var(--spark-size, 5px) !important;
  height: var(--spark-size, 5px) !important;
  border-radius: 999px !important;
  background: rgb(var(--spark-rgb, 176 116 255)) !important;
  box-shadow:
    0 0 8px rgb(var(--spark-rgb, 176 116 255) / 1),
    0 0 22px rgb(var(--spark-rgb, 176 116 255) / 0.86),
    0 0 52px rgb(var(--spark-rgb, 176 116 255) / 0.44) !important;
  opacity: 0;
  animation: mkSynapseSparkFinal var(--spark-duration, 6.5s) ease-in-out infinite !important;
  animation-delay: var(--spark-delay, 0s) !important;
}

.mk-synapse-spark::before,
.mk-synapse-spark::after {
  content: "" !important;
  position: absolute !important;
  left: 50% !important;
  top: 50% !important;
  height: 1px !important;
  border-radius: 999px !important;
  background: linear-gradient(90deg, transparent, rgb(var(--spark-rgb, 176 116 255) / 0.92), transparent) !important;
  opacity: 0;
  transform: translate(-50%, -50%) rotate(var(--spark-angle, 0deg));
  animation: mkSynapseSparkRayFinal var(--spark-duration, 6.5s) ease-in-out infinite !important;
  animation-delay: var(--spark-delay, 0s) !important;
}

.mk-synapse-spark::before {
  width: 36px !important;
}

.mk-synapse-spark::after {
  width: 24px !important;
  transform: translate(-50%, -50%) rotate(calc(var(--spark-angle, 0deg) + 90deg));
}

.mk-synapse-current {
  width: var(--current-width, 156px) !important;
  height: 2px !important;
  border-radius: 999px !important;
  background: linear-gradient(90deg, transparent, rgb(var(--current-rgb, 176 116 255) / 0.2), rgb(var(--current-rgb, 176 116 255) / 1), rgb(var(--current-rgb, 176 116 255) / 0.16), transparent) !important;
  box-shadow:
    0 0 14px rgb(var(--current-rgb, 176 116 255) / 0.72),
    0 0 34px rgb(var(--current-rgb, 176 116 255) / 0.28) !important;
  opacity: 0;
  transform-origin: left center !important;
  animation: mkSynapseCurrentFinal var(--current-duration, 7.4s) cubic-bezier(0.25, 0, 0.2, 1) infinite !important;
  animation-delay: var(--current-delay, 0s) !important;
}

.mk-neuron-flare {
  width: var(--flare-size, 64px) !important;
  height: var(--flare-size, 64px) !important;
  border-radius: 999px !important;
  background: radial-gradient(circle, rgb(var(--flare-rgb, 176 116 255) / 0.52) 0 8%, rgb(var(--flare-rgb, 176 116 255) / 0.2) 34%, transparent 72%) !important;
  filter: blur(1.2px) !important;
  opacity: 0;
  animation: mkNeuronFlareFinal 9s ease-in-out infinite !important;
  animation-delay: var(--flare-delay, 0s) !important;
}

@media (max-width: 760px) {
  .mk-hero {
    min-height: max(794px, 115vh) !important;
  }
}

/* True final hero copy lock: exact center, lifted by roughly 3%. */
.mk-hero-copy {
  position: absolute !important;
  left: 50% !important;
  top: 47% !important;
  z-index: 8 !important;
  width: min(1180px, calc(100% - 48px)) !important;
  max-width: none !important;
  min-width: 0 !important;
  display: grid !important;
  justify-items: center !important;
  text-align: center !important;
  transform: translate(-50%, -50%) !important;
}

.mk-hero h1 {
  width: 100% !important;
  max-width: 1180px !important;
  margin: 0 !important;
  display: grid !important;
  justify-items: center !important;
  gap: clamp(14px, 1.2vw, 22px) !important;
  text-align: center !important;
  letter-spacing: 0 !important;
}

.mk-hero h1 span {
  display: block !important;
  width: 100% !important;
  text-align: center !important;
}

.mk-sub {
  width: min(760px, 100%) !important;
  max-width: 760px !important;
  margin: clamp(28px, 3.2vw, 44px) auto 0 !important;
  text-align: center !important;
}

.mk-hero-actions {
  width: 100% !important;
  justify-content: center !important;
  margin-top: clamp(34px, 4vw, 56px) !important;
}

.mk-hero-test-cta {
  gap: 10px !important;
  padding-left: 18px !important;
}

.mk-hero-test-icon {
  position: relative !important;
  width: 22px !important;
  height: 22px !important;
  display: inline-grid !important;
  place-items: center !important;
  border-radius: 999px !important;
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.95) 0 2px, transparent 3px),
    radial-gradient(circle, rgba(143, 112, 255, 0.28), transparent 66%) !important;
  box-shadow:
    0 0 14px rgba(160, 116, 255, 0.54),
    inset 0 0 0 1px rgba(255, 255, 255, 0.28) !important;
}

.mk-hero-test-icon::before,
.mk-hero-test-icon::after {
  content: "" !important;
  position: absolute !important;
  border-radius: 999px !important;
  pointer-events: none !important;
}

.mk-hero-test-icon::before {
  inset: 3px !important;
  border: 1px solid rgba(255, 255, 255, 0.5) !important;
  border-left-color: rgba(255, 136, 76, 0.85) !important;
  transform: rotate(-22deg) !important;
}

.mk-hero-test-icon::after {
  right: 1px !important;
  top: 4px !important;
  width: 5px !important;
  height: 5px !important;
  background: #ff8a50 !important;
  box-shadow: 0 0 10px rgba(255, 138, 80, 0.8) !important;
}

.mk-hero-test-icon span {
  width: 4px !important;
  height: 4px !important;
  border-radius: 999px !important;
  background: #ffffff !important;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.86) !important;
}

@media (max-width: 760px) {
  .mk-hero-copy {
    top: 48% !important;
    width: min(360px, calc(100% - 44px)) !important;
  }

  .mk-hero h1,
  .mk-sub {
    max-width: 100% !important;
  }
}

/* Real final hero copy lock: exact center, lifted by roughly 3%. */
.mk-hero-copy {
  position: absolute !important;
  left: 50% !important;
  top: 47% !important;
  z-index: 8 !important;
  width: min(1180px, calc(100% - 48px)) !important;
  max-width: none !important;
  min-width: 0 !important;
  display: grid !important;
  justify-items: center !important;
  text-align: center !important;
  transform: translate(-50%, -50%) !important;
}

.mk-hero h1 {
  width: 100% !important;
  max-width: 1180px !important;
  margin: 0 !important;
  display: grid !important;
  justify-items: center !important;
  gap: clamp(14px, 1.2vw, 22px) !important;
  text-align: center !important;
  letter-spacing: 0 !important;
}

.mk-hero h1 span {
  display: block !important;
  width: 100% !important;
  text-align: center !important;
}

.mk-sub {
  width: min(760px, 100%) !important;
  max-width: 760px !important;
  margin: clamp(28px, 3.2vw, 44px) auto 0 !important;
  text-align: center !important;
}

.mk-hero-actions {
  width: 100% !important;
  justify-content: center !important;
  margin-top: clamp(34px, 4vw, 56px) !important;
}

.mk-hero-test-cta {
  gap: 10px !important;
  padding-left: 18px !important;
}

.mk-hero-test-icon {
  position: relative !important;
  width: 22px !important;
  height: 22px !important;
  display: inline-grid !important;
  place-items: center !important;
  border-radius: 999px !important;
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.95) 0 2px, transparent 3px),
    radial-gradient(circle, rgba(143, 112, 255, 0.28), transparent 66%) !important;
  box-shadow:
    0 0 14px rgba(160, 116, 255, 0.54),
    inset 0 0 0 1px rgba(255, 255, 255, 0.28) !important;
}

.mk-hero-test-icon::before,
.mk-hero-test-icon::after {
  content: "" !important;
  position: absolute !important;
  border-radius: 999px !important;
  pointer-events: none !important;
}

.mk-hero-test-icon::before {
  inset: 3px !important;
  border: 1px solid rgba(255, 255, 255, 0.5) !important;
  border-left-color: rgba(255, 136, 76, 0.85) !important;
  transform: rotate(-22deg) !important;
}

.mk-hero-test-icon::after {
  right: 1px !important;
  top: 4px !important;
  width: 5px !important;
  height: 5px !important;
  background: #ff8a50 !important;
  box-shadow: 0 0 10px rgba(255, 138, 80, 0.8) !important;
}

.mk-hero-test-icon span {
  width: 4px !important;
  height: 4px !important;
  border-radius: 999px !important;
  background: #ffffff !important;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.86) !important;
}

@media (max-width: 760px) {
  .mk-hero-copy {
    top: 48% !important;
    width: min(360px, calc(100% - 44px)) !important;
  }

  .mk-hero h1,
  .mk-sub {
    max-width: 100% !important;
  }
}

/* Absolute final hero copy alignment: center the group, then lift it slightly. */
.mk-hero-copy {
  position: absolute !important;
  left: 50% !important;
  top: 47% !important;
  z-index: 8 !important;
  width: min(1180px, calc(100% - 48px)) !important;
  max-width: none !important;
  min-width: 0 !important;
  display: grid !important;
  justify-items: center !important;
  text-align: center !important;
  transform: translate(-50%, -50%) !important;
}

.mk-hero h1 {
  width: 100% !important;
  max-width: 1180px !important;
  margin: 0 !important;
  display: grid !important;
  justify-items: center !important;
  gap: clamp(14px, 1.2vw, 22px) !important;
  text-align: center !important;
  letter-spacing: 0 !important;
}

.mk-hero h1 span {
  display: block !important;
  width: 100% !important;
  text-align: center !important;
}

.mk-sub {
  width: min(760px, 100%) !important;
  max-width: 760px !important;
  margin: clamp(28px, 3.2vw, 44px) auto 0 !important;
  text-align: center !important;
}

.mk-hero-actions {
  width: 100% !important;
  justify-content: center !important;
  margin-top: clamp(34px, 4vw, 56px) !important;
}

.mk-hero-test-cta {
  gap: 10px !important;
  padding-left: 18px !important;
}

.mk-hero-test-icon {
  position: relative !important;
  width: 22px !important;
  height: 22px !important;
  display: inline-grid !important;
  place-items: center !important;
  border-radius: 999px !important;
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.95) 0 2px, transparent 3px),
    radial-gradient(circle, rgba(143, 112, 255, 0.28), transparent 66%) !important;
  box-shadow:
    0 0 14px rgba(160, 116, 255, 0.54),
    inset 0 0 0 1px rgba(255, 255, 255, 0.28) !important;
}

.mk-hero-test-icon::before,
.mk-hero-test-icon::after {
  content: "" !important;
  position: absolute !important;
  border-radius: 999px !important;
  pointer-events: none !important;
}

.mk-hero-test-icon::before {
  inset: 3px !important;
  border: 1px solid rgba(255, 255, 255, 0.5) !important;
  border-left-color: rgba(255, 136, 76, 0.85) !important;
  transform: rotate(-22deg) !important;
}

.mk-hero-test-icon::after {
  right: 1px !important;
  top: 4px !important;
  width: 5px !important;
  height: 5px !important;
  background: #ff8a50 !important;
  box-shadow: 0 0 10px rgba(255, 138, 80, 0.8) !important;
}

.mk-hero-test-icon span {
  width: 4px !important;
  height: 4px !important;
  border-radius: 999px !important;
  background: #ffffff !important;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.86) !important;
}

@media (max-width: 760px) {
  .mk-hero-copy {
    top: 48% !important;
    width: min(360px, calc(100% - 44px)) !important;
  }

  .mk-hero h1,
  .mk-sub {
    max-width: 100% !important;
  }
}

/* Absolute final CTA lock: dark neural-space background above footer. */
.mk-experience {
  isolation: isolate !important;
  background:
    radial-gradient(760px 360px at 50% 48%, rgba(25, 30, 47, 0.34), rgba(5, 7, 14, 0.72) 58%, rgba(2, 4, 10, 0.98) 100%),
    linear-gradient(135deg, #050812, #080613 52%, #11070b) !important;
  color: #f6f8ff !important;
}

.mk-experience::before {
  content: "" !important;
  position: absolute !important;
  inset: -8% !important;
  z-index: 0 !important;
  background:
    linear-gradient(90deg, rgba(4, 7, 13, 0.62), rgba(2, 4, 10, 0.1) 42%, rgba(3, 5, 12, 0.66)),
    radial-gradient(620px 220px at 50% 47%, rgba(224, 232, 245, 0.16), transparent 64%),
    url("/assets/hero_bg-D--qcYRt.png") center / cover no-repeat !important;
  opacity: 0.82 !important;
  filter: saturate(1.1) contrast(1.08) brightness(0.72) !important;
  transform: scale(1.035);
  animation: mkExperienceCosmosDrift 18s ease-in-out infinite alternate !important;
  pointer-events: none !important;
}

.mk-experience::after {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  z-index: 1 !important;
  background:
    linear-gradient(18deg, transparent 8%, rgba(146, 96, 255, 0.18) 8.18%, transparent 8.42%),
    linear-gradient(156deg, transparent 16%, rgba(255, 126, 72, 0.14) 16.16%, transparent 16.42%),
    linear-gradient(29deg, transparent 73%, rgba(158, 93, 255, 0.22) 73.14%, transparent 73.46%),
    linear-gradient(146deg, transparent 78%, rgba(255, 130, 74, 0.18) 78.14%, transparent 78.44%),
    radial-gradient(circle at 13% 39%, rgba(188, 111, 255, 0.72) 0 2px, transparent 6px),
    radial-gradient(circle at 22% 31%, rgba(255, 120, 78, 0.58) 0 2px, transparent 7px),
    radial-gradient(circle at 37% 24%, rgba(123, 198, 255, 0.54) 0 2px, transparent 7px),
    radial-gradient(circle at 65% 29%, rgba(167, 111, 255, 0.66) 0 2px, transparent 7px),
    radial-gradient(circle at 78% 45%, rgba(255, 139, 83, 0.56) 0 2px, transparent 7px),
    radial-gradient(circle at 88% 31%, rgba(201, 121, 255, 0.72) 0 2px, transparent 8px),
    radial-gradient(circle at 50% 47%, rgba(255, 255, 255, 0.2), transparent 28%) !important;
  opacity: 0.82 !important;
  mix-blend-mode: screen !important;
  animation: mkExperienceSynapsePulse 7.6s ease-in-out infinite alternate !important;
  pointer-events: none !important;
}

.mk-experience-copy {
  z-index: 4 !important;
}

.mk-experience h2 {
  color: #f8fbff !important;
  text-shadow:
    0 2px 18px rgba(0, 0, 0, 0.62),
    0 0 28px rgba(154, 121, 255, 0.18) !important;
}

.mk-experience-orb {
  z-index: 2 !important;
  border-radius: 999px !important;
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.82) 0 5%, rgba(183, 129, 255, 0.58) 9%, rgba(117, 79, 255, 0.24) 30%, transparent 66%) !important;
  box-shadow:
    0 0 28px rgba(164, 110, 255, 0.7),
    0 0 86px rgba(116, 82, 255, 0.34),
    0 0 140px rgba(255, 117, 70, 0.14) !important;
  opacity: 0.82 !important;
  filter: blur(0.4px) !important;
  animation: mkExperienceNeuronFloat 10s ease-in-out infinite alternate !important;
  pointer-events: none !important;
}

.mk-experience-orb::before,
.mk-experience-orb::after {
  content: "" !important;
  position: absolute !important;
  border-radius: 999px !important;
  background:
    linear-gradient(90deg, transparent, rgba(186, 119, 255, 0.82), rgba(255, 130, 73, 0.34), transparent) !important;
  box-shadow: 0 0 22px rgba(184, 116, 255, 0.46) !important;
  opacity: 0.72 !important;
  transform-origin: left center !important;
}

.mk-experience-orb::before {
  left: 45% !important;
  top: 46% !important;
  width: clamp(190px, 18vw, 320px) !important;
  height: 1px !important;
  transform: rotate(-17deg) !important;
  animation: mkExperienceSignalRun 5.8s ease-in-out infinite !important;
}

.mk-experience-orb::after {
  left: 38% !important;
  top: 57% !important;
  width: clamp(140px, 14vw, 250px) !important;
  height: 1px !important;
  transform: rotate(28deg) !important;
  animation: mkExperienceSignalRun 6.8s ease-in-out infinite reverse !important;
}

.mk-experience-orb.is-left {
  left: -56px !important;
  bottom: -86px !important;
}

.mk-experience-orb.is-right {
  right: -38px !important;
  bottom: -74px !important;
  animation-delay: -2.4s !important;
}

/* Final marketing CTA neural-cosmos background. Keep content and sizing intact. */
.mk-experience {
  isolation: isolate !important;
  background:
    radial-gradient(760px 360px at 50% 48%, rgba(25, 30, 47, 0.34), rgba(5, 7, 14, 0.72) 58%, rgba(2, 4, 10, 0.98) 100%),
    linear-gradient(135deg, #050812, #080613 52%, #11070b) !important;
  color: #f6f8ff !important;
}

.mk-experience::before {
  content: "" !important;
  position: absolute !important;
  inset: -8% !important;
  z-index: 0 !important;
  background:
    linear-gradient(90deg, rgba(4, 7, 13, 0.62), rgba(2, 4, 10, 0.1) 42%, rgba(3, 5, 12, 0.66)),
    radial-gradient(620px 220px at 50% 47%, rgba(224, 232, 245, 0.16), transparent 64%),
    url("/assets/hero_bg-D--qcYRt.png") center / cover no-repeat !important;
  opacity: 0.82 !important;
  filter: saturate(1.1) contrast(1.08) brightness(0.72) !important;
  transform: scale(1.035);
  animation: mkExperienceCosmosDrift 18s ease-in-out infinite alternate !important;
  pointer-events: none !important;
}

.mk-experience::after {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  z-index: 1 !important;
  background:
    linear-gradient(18deg, transparent 8%, rgba(146, 96, 255, 0.18) 8.18%, transparent 8.42%),
    linear-gradient(156deg, transparent 16%, rgba(255, 126, 72, 0.14) 16.16%, transparent 16.42%),
    linear-gradient(29deg, transparent 73%, rgba(158, 93, 255, 0.22) 73.14%, transparent 73.46%),
    linear-gradient(146deg, transparent 78%, rgba(255, 130, 74, 0.18) 78.14%, transparent 78.44%),
    radial-gradient(circle at 13% 39%, rgba(188, 111, 255, 0.72) 0 2px, transparent 6px),
    radial-gradient(circle at 22% 31%, rgba(255, 120, 78, 0.58) 0 2px, transparent 7px),
    radial-gradient(circle at 37% 24%, rgba(123, 198, 255, 0.54) 0 2px, transparent 7px),
    radial-gradient(circle at 65% 29%, rgba(167, 111, 255, 0.66) 0 2px, transparent 7px),
    radial-gradient(circle at 78% 45%, rgba(255, 139, 83, 0.56) 0 2px, transparent 7px),
    radial-gradient(circle at 88% 31%, rgba(201, 121, 255, 0.72) 0 2px, transparent 8px),
    radial-gradient(circle at 50% 47%, rgba(255, 255, 255, 0.2), transparent 28%) !important;
  opacity: 0.82 !important;
  mix-blend-mode: screen !important;
  animation: mkExperienceSynapsePulse 7.6s ease-in-out infinite alternate !important;
  pointer-events: none !important;
}

.mk-experience-copy {
  z-index: 4 !important;
}

.mk-experience h2 {
  color: #f8fbff !important;
  text-shadow:
    0 2px 18px rgba(0, 0, 0, 0.62),
    0 0 28px rgba(154, 121, 255, 0.18) !important;
}

.mk-experience-orb {
  z-index: 2 !important;
  border-radius: 999px !important;
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.82) 0 5%, rgba(183, 129, 255, 0.58) 9%, rgba(117, 79, 255, 0.24) 30%, transparent 66%) !important;
  box-shadow:
    0 0 28px rgba(164, 110, 255, 0.7),
    0 0 86px rgba(116, 82, 255, 0.34),
    0 0 140px rgba(255, 117, 70, 0.14) !important;
  opacity: 0.82 !important;
  filter: blur(0.4px) !important;
  animation: mkExperienceNeuronFloat 10s ease-in-out infinite alternate !important;
  pointer-events: none !important;
}

.mk-experience-orb::before,
.mk-experience-orb::after {
  content: "" !important;
  position: absolute !important;
  border-radius: 999px !important;
  background:
    linear-gradient(90deg, transparent, rgba(186, 119, 255, 0.82), rgba(255, 130, 73, 0.34), transparent) !important;
  box-shadow: 0 0 22px rgba(184, 116, 255, 0.46) !important;
  opacity: 0.72 !important;
  transform-origin: left center !important;
}

.mk-experience-orb::before {
  left: 45% !important;
  top: 46% !important;
  width: clamp(190px, 18vw, 320px) !important;
  height: 1px !important;
  transform: rotate(-17deg) !important;
  animation: mkExperienceSignalRun 5.8s ease-in-out infinite !important;
}

.mk-experience-orb::after {
  left: 38% !important;
  top: 57% !important;
  width: clamp(140px, 14vw, 250px) !important;
  height: 1px !important;
  transform: rotate(28deg) !important;
  animation: mkExperienceSignalRun 6.8s ease-in-out infinite reverse !important;
}

.mk-experience-orb.is-left {
  left: -56px !important;
  bottom: -86px !important;
}

.mk-experience-orb.is-right {
  right: -38px !important;
  bottom: -74px !important;
  animation-delay: -2.4s !important;
}

@keyframes mkExperienceCosmosDrift {
  0% {
    transform: scale(1.03) translate3d(-0.6%, -0.4%, 0);
  }

  100% {
    transform: scale(1.065) translate3d(0.7%, 0.5%, 0);
  }
}

@keyframes mkExperienceSynapsePulse {
  0% {
    opacity: 0.48;
    filter: brightness(0.92) saturate(1);
  }

  52% {
    opacity: 0.9;
    filter: brightness(1.14) saturate(1.24);
  }

  100% {
    opacity: 0.66;
    filter: brightness(1.02) saturate(1.08);
  }
}

@keyframes mkExperienceNeuronFloat {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }

  100% {
    transform: translate3d(10px, -12px, 0) scale(1.04);
  }
}

@keyframes mkExperienceSignalRun {
  0%,
  100% {
    opacity: 0.16;
    filter: brightness(0.8);
  }

  45%,
  62% {
    opacity: 0.88;
    filter: brightness(1.42);
  }
}

@keyframes mkExperienceMicroDrift {
  0% {
    transform: translate3d(-0.35%, -0.28%, 0) scale(1.015);
  }

  50% {
    transform: translate3d(0.18%, 0.14%, 0) scale(1.024);
  }

  100% {
    transform: translate3d(0.42%, 0.32%, 0) scale(1.018);
  }
}

@keyframes mkExperienceSparkBreath {
  0% {
    opacity: 0.52;
    filter: brightness(0.92) saturate(1);
  }

  46% {
    opacity: 0.86;
    filter: brightness(1.22) saturate(1.22);
  }

  100% {
    opacity: 0.62;
    filter: brightness(1.04) saturate(1.08);
  }
}

/* Final live hero motion override: keep hero_bg.png intact and make synapses visibly alive. */
.mk-hero {
  position: relative !important;
  isolation: isolate !important;
  overflow: hidden !important;
  min-height: 115vh !important;
  background: #02040a !important;
}

.mk-hero::before {
  content: "" !important;
  display: block !important;
  position: absolute !important;
  inset: -3% !important;
  z-index: 0 !important;
  background: url("/assets/hero_bg-D--qcYRt.png") center / cover no-repeat !important;
  opacity: 0.96 !important;
  transform: translate3d(0, 0, 0) scale(1.015);
  transform-origin: center;
  animation: mkHeroBgBreathFinal 18s ease-in-out infinite alternate !important;
  pointer-events: none;
}

.mk-hero::after {
  content: "" !important;
  display: block !important;
  position: absolute !important;
  inset: 0 !important;
  z-index: 3 !important;
  background:
    radial-gradient(720px 300px at 50% 43%, rgba(0, 0, 0, 0.56), rgba(0, 0, 0, 0.22) 54%, transparent 78%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.16), transparent 35%, rgba(0, 0, 0, 0.18));
  opacity: 0.72 !important;
  animation: mkHeroVeilBreathFinal 12s ease-in-out infinite alternate !important;
  pointer-events: none;
}

.mk-network-field {
  display: block !important;
  position: absolute !important;
  inset: 0 !important;
  z-index: 4 !important;
  overflow: hidden !important;
  pointer-events: none !important;
}

.mk-network-field::before {
  content: "" !important;
  display: block !important;
  position: absolute !important;
  inset: -8% !important;
  z-index: 1 !important;
  background:
    radial-gradient(circle at 9% 21%, rgba(164, 99, 255, 0.24) 0 1px, transparent 3px),
    radial-gradient(circle at 15% 39%, rgba(255, 125, 68, 0.18) 0 1px, transparent 3px),
    radial-gradient(circle at 34% 16%, rgba(111, 189, 255, 0.18) 0 1px, transparent 3px),
    radial-gradient(circle at 73% 18%, rgba(164, 99, 255, 0.2) 0 1px, transparent 3px),
    radial-gradient(circle at 89% 31%, rgba(180, 111, 255, 0.22) 0 1px, transparent 3px),
    radial-gradient(circle at 96% 47%, rgba(255, 125, 68, 0.24) 0 1px, transparent 3px);
  filter: blur(0.2px);
  opacity: 0.72 !important;
  mix-blend-mode: screen;
  animation: mkStarfieldDriftFinal 24s ease-in-out infinite alternate !important;
}

.mk-network-field::after {
  content: "" !important;
  display: block !important;
  position: absolute !important;
  inset: 0 !important;
  z-index: 2 !important;
  background:
    radial-gradient(circle at 4% 11%, rgba(176, 112, 255, 0.42) 0 1px, transparent 3px),
    radial-gradient(circle at 11% 31%, rgba(118, 76, 255, 0.34) 0 1px, transparent 3px),
    radial-gradient(circle at 28% 14%, rgba(99, 188, 255, 0.36) 0 1px, transparent 3px),
    radial-gradient(circle at 43% 20%, rgba(255, 137, 75, 0.34) 0 1px, transparent 3px),
    radial-gradient(circle at 68% 12%, rgba(160, 99, 255, 0.28) 0 1px, transparent 3px),
    radial-gradient(circle at 84% 26%, rgba(178, 110, 255, 0.4) 0 1px, transparent 3px),
    radial-gradient(circle at 94% 42%, rgba(255, 126, 70, 0.42) 0 1px, transparent 3px);
  opacity: 0.72 !important;
  mix-blend-mode: screen;
  animation: mkConstellationBlinkFinal 4.4s ease-in-out infinite alternate !important;
}

.mk-network-line,
.mk-network-node,
.mk-network-glow,
.mk-dome {
  display: none !important;
}

.mk-synapse-spark,
.mk-synapse-current,
.mk-neuron-flare {
  display: block !important;
  position: absolute !important;
  z-index: 6 !important;
  pointer-events: none !important;
  mix-blend-mode: screen !important;
}

.mk-synapse-spark {
  width: var(--spark-size, 5px) !important;
  height: var(--spark-size, 5px) !important;
  border-radius: 999px !important;
  background: rgb(var(--spark-rgb, 176 116 255)) !important;
  box-shadow:
    0 0 8px rgb(var(--spark-rgb, 176 116 255) / 1),
    0 0 22px rgb(var(--spark-rgb, 176 116 255) / 0.86),
    0 0 52px rgb(var(--spark-rgb, 176 116 255) / 0.44) !important;
  opacity: 0;
  transform: scale(0.2);
  animation: mkSynapseSparkFinal var(--spark-duration, 6.5s) ease-in-out infinite !important;
  animation-delay: var(--spark-delay, 0s) !important;
}

.mk-synapse-spark::before,
.mk-synapse-spark::after {
  content: "" !important;
  position: absolute !important;
  left: 50% !important;
  top: 50% !important;
  height: 1px !important;
  border-radius: 999px !important;
  background: linear-gradient(90deg, transparent, rgb(var(--spark-rgb, 176 116 255) / 0.92), transparent) !important;
  opacity: 0;
  transform: translate(-50%, -50%) rotate(var(--spark-angle, 0deg));
  animation: mkSynapseSparkRayFinal var(--spark-duration, 6.5s) ease-in-out infinite !important;
  animation-delay: var(--spark-delay, 0s) !important;
}

.mk-synapse-spark::before {
  width: 36px !important;
}

.mk-synapse-spark::after {
  width: 24px !important;
  transform: translate(-50%, -50%) rotate(calc(var(--spark-angle, 0deg) + 90deg));
}

.mk-synapse-current {
  width: var(--current-width, 156px) !important;
  height: 2px !important;
  border-radius: 999px !important;
  background: linear-gradient(90deg, transparent, rgb(var(--current-rgb, 176 116 255) / 0.2), rgb(var(--current-rgb, 176 116 255) / 1), rgb(var(--current-rgb, 176 116 255) / 0.16), transparent) !important;
  box-shadow:
    0 0 14px rgb(var(--current-rgb, 176 116 255) / 0.72),
    0 0 34px rgb(var(--current-rgb, 176 116 255) / 0.28) !important;
  opacity: 0;
  transform-origin: left center !important;
  animation: mkSynapseCurrentFinal var(--current-duration, 7.4s) cubic-bezier(0.25, 0, 0.2, 1) infinite !important;
  animation-delay: var(--current-delay, 0s) !important;
}

.mk-neuron-flare {
  width: var(--flare-size, 64px) !important;
  height: var(--flare-size, 64px) !important;
  border-radius: 999px !important;
  background:
    radial-gradient(circle, rgb(var(--flare-rgb, 176 116 255) / 0.52) 0 8%, rgb(var(--flare-rgb, 176 116 255) / 0.2) 34%, transparent 72%) !important;
  filter: blur(1.2px) !important;
  opacity: 0;
  animation: mkNeuronFlareFinal 9s ease-in-out infinite !important;
  animation-delay: var(--flare-delay, 0s) !important;
}

.mk-synapse-spark-1 { left: 3.5%; top: 14%; --spark-delay: -0.4s; --spark-angle: 24deg; }
.mk-synapse-spark-2 { left: 8%; top: 32%; --spark-rgb: 132 82 255; --spark-delay: -4.8s; --spark-duration: 8.4s; --spark-angle: -21deg; }
.mk-synapse-spark-3 { left: 11.5%; top: 22%; --spark-delay: -2s; --spark-duration: 7.7s; --spark-angle: 49deg; }
.mk-synapse-spark-4 { left: 16%; top: 36%; --spark-rgb: 255 126 65; --spark-size: 6px; --spark-delay: -6.2s; --spark-duration: 9s; --spark-angle: -7deg; }
.mk-synapse-spark-5 { left: 22%; top: 18%; --spark-delay: -1.7s; --spark-duration: 6.9s; --spark-angle: 71deg; }
.mk-synapse-spark-6 { left: 28%; top: 14%; --spark-rgb: 105 185 255; --spark-delay: -5.2s; --spark-duration: 8.8s; --spark-angle: -31deg; }
.mk-synapse-spark-7 { left: 37%; top: 16%; --spark-rgb: 255 136 73; --spark-size: 6px; --spark-delay: -3.1s; --spark-duration: 7.3s; --spark-angle: 18deg; }
.mk-synapse-spark-8 { left: 44%; top: 24%; --spark-rgb: 100 190 255; --spark-delay: -7.4s; --spark-duration: 8.9s; --spark-angle: 8deg; }
.mk-synapse-spark-9 { left: 50%; top: 15%; --spark-delay: -6.5s; --spark-duration: 10s; --spark-angle: 58deg; }
.mk-synapse-spark-10 { left: 54%; top: 27%; --spark-rgb: 255 124 66; --spark-delay: -2.7s; --spark-duration: 9.4s; --spark-angle: -18deg; }
.mk-synapse-spark-11 { right: 37%; top: 18%; --spark-delay: -4.1s; --spark-duration: 8.2s; --spark-angle: -36deg; }
.mk-synapse-spark-12 { right: 30%; top: 13%; --spark-rgb: 134 84 255; --spark-delay: -7.2s; --spark-duration: 8.7s; --spark-angle: 34deg; }
.mk-synapse-spark-13 { right: 22%; top: 20%; --spark-delay: -2.4s; --spark-duration: 7.5s; --spark-angle: 11deg; }
.mk-synapse-spark-14 { right: 14%; top: 27%; --spark-rgb: 255 133 70; --spark-size: 6px; --spark-delay: -5.9s; --spark-duration: 9.3s; --spark-angle: -41deg; }
.mk-synapse-spark-15 { right: 7%; top: 36%; --spark-delay: -3.4s; --spark-duration: 7.8s; --spark-angle: 27deg; }
.mk-synapse-spark-16 { right: 2%; top: 47%; --spark-rgb: 255 119 66; --spark-delay: -8.1s; --spark-duration: 9s; --spark-angle: -52deg; }
.mk-synapse-spark-17 { left: 5%; top: 57%; --spark-rgb: 255 122 68; --spark-delay: -2.9s; --spark-duration: 8.6s; --spark-angle: 8deg; }
.mk-synapse-spark-18 { left: 13%; bottom: 32%; --spark-delay: -7.8s; --spark-duration: 9.1s; --spark-angle: -38deg; }
.mk-synapse-spark-19 { left: 27%; bottom: 24%; --spark-rgb: 105 185 255; --spark-delay: -4.6s; --spark-duration: 7.1s; --spark-angle: 18deg; }
.mk-synapse-spark-20 { left: 38%; bottom: 20%; --spark-rgb: 255 132 70; --spark-delay: -1.2s; --spark-duration: 8.4s; --spark-angle: -6deg; }
.mk-synapse-spark-21 { right: 42%; bottom: 22%; --spark-delay: -5.4s; --spark-duration: 9.7s; --spark-angle: 33deg; }
.mk-synapse-spark-22 { right: 31%; bottom: 27%; --spark-rgb: 255 127 68; --spark-delay: -0.9s; --spark-duration: 8.1s; --spark-angle: -14deg; }
.mk-synapse-spark-23 { right: 22%; bottom: 34%; --spark-delay: -3.9s; --spark-duration: 7.4s; --spark-angle: 70deg; }
.mk-synapse-spark-24 { right: 10%; bottom: 31%; --spark-rgb: 255 103 150; --spark-delay: -6.4s; --spark-duration: 9.5s; --spark-angle: -24deg; }
.mk-synapse-spark-25 { right: 5%; bottom: 21%; --spark-rgb: 255 125 66; --spark-size: 6px; --spark-delay: -4.3s; --spark-duration: 8.3s; --spark-angle: 39deg; }
.mk-synapse-spark-26 { left: 2%; top: 7%; --spark-delay: -6.9s; --spark-duration: 8.8s; --spark-angle: 63deg; }
.mk-synapse-spark-27 { left: 31%; top: 31%; --spark-rgb: 255 126 65; --spark-delay: -8.4s; --spark-duration: 10.2s; --spark-angle: -17deg; }
.mk-synapse-spark-28 { right: 18%; top: 12%; --spark-rgb: 101 184 255; --spark-delay: -1.5s; --spark-duration: 7.6s; --spark-angle: 14deg; }
.mk-synapse-spark-29 { right: 3.5%; top: 18%; --spark-delay: -5.1s; --spark-duration: 8.1s; --spark-angle: -28deg; }
.mk-synapse-spark-30 { right: 12%; top: 55%; --spark-rgb: 255 129 67; --spark-delay: -2.1s; --spark-duration: 7.9s; --spark-angle: 34deg; }
.mk-synapse-spark-31 { left: 45%; bottom: 12%; --spark-rgb: 255 132 70; --spark-delay: -6.2s; --spark-duration: 9.2s; --spark-angle: -12deg; }
.mk-synapse-spark-32 { right: 46%; top: 9%; --spark-delay: -4.7s; --spark-duration: 8.5s; --spark-angle: 51deg; }

.mk-synapse-current-1 { left: 2%; top: 24%; --current-width: 210px; --current-angle: 18deg; --current-delay: -1s; }
.mk-synapse-current-2 { left: 10%; top: 36%; --current-width: 170px; --current-angle: -15deg; --current-delay: -4s; --current-duration: 9s; }
.mk-synapse-current-3 { left: 20%; top: 17%; --current-rgb: 255 126 65; --current-width: 145px; --current-angle: 4deg; --current-delay: -6.3s; }
.mk-synapse-current-4 { left: 31%; top: 30%; --current-width: 155px; --current-angle: -23deg; --current-delay: -2.6s; --current-duration: 7.5s; }
.mk-synapse-current-5 { right: 32%; top: 16%; --current-width: 190px; --current-angle: -14deg; --current-delay: -5.5s; }
.mk-synapse-current-6 { right: 18%; top: 25%; --current-rgb: 255 129 68; --current-width: 160px; --current-angle: 27deg; --current-delay: -0.8s; --current-duration: 8.8s; }
.mk-synapse-current-7 { right: 3%; top: 43%; --current-rgb: 255 126 65; --current-width: 150px; --current-angle: -44deg; --current-delay: -7.2s; }
.mk-synapse-current-8 { right: 19%; bottom: 31%; --current-width: 165px; --current-angle: 16deg; --current-delay: -3.6s; --current-duration: 9.6s; }
.mk-synapse-current-9 { left: 4%; bottom: 35%; --current-rgb: 255 126 65; --current-width: 130px; --current-angle: 11deg; --current-delay: -8.6s; }
.mk-synapse-current-10 { left: 35%; bottom: 18%; --current-rgb: 255 132 70; --current-width: 170px; --current-angle: -8deg; --current-delay: -2.3s; }
.mk-synapse-current-11 { right: 41%; top: 11%; --current-width: 132px; --current-angle: 39deg; --current-delay: -6.7s; --current-duration: 10s; }
.mk-synapse-current-12 { right: 7%; bottom: 23%; --current-rgb: 255 126 65; --current-width: 150px; --current-angle: 28deg; --current-delay: -4.9s; --current-duration: 8.3s; }

.mk-neuron-flare-1 { left: 2%; top: 10%; --flare-size: 92px; --flare-delay: -2s; }
.mk-neuron-flare-2 { left: 10%; top: 33%; --flare-size: 56px; --flare-rgb: 132 82 255; --flare-delay: -6s; }
.mk-neuron-flare-3 { left: 28%; top: 18%; --flare-size: 48px; --flare-rgb: 102 185 255; --flare-delay: -4s; }
.mk-neuron-flare-4 { left: 45%; top: 12%; --flare-size: 82px; --flare-delay: -8s; }
.mk-neuron-flare-5 { right: 31%; top: 14%; --flare-size: 56px; --flare-rgb: 255 126 65; --flare-delay: -3s; }
.mk-neuron-flare-6 { right: 15%; top: 29%; --flare-size: 78px; --flare-delay: -9s; }
.mk-neuron-flare-7 { right: 3%; top: 41%; --flare-size: 98px; --flare-rgb: 255 126 65; --flare-delay: -5s; }
.mk-neuron-flare-8 { left: 39%; bottom: 14%; --flare-size: 88px; --flare-rgb: 255 132 70; --flare-delay: -7s; }
.mk-neuron-flare-9 { right: 24%; bottom: 28%; --flare-size: 58px; --flare-delay: -1.6s; }
.mk-neuron-flare-10 { right: 8%; bottom: 20%; --flare-size: 66px; --flare-rgb: 255 118 64; --flare-delay: -6.4s; }

@keyframes mkHeroBgBreathFinal {
  0% {
    transform: translate3d(-10px, -4px, 0) scale(1.015);
    filter: saturate(1) brightness(0.98);
  }
  100% {
    transform: translate3d(12px, 10px, 0) scale(1.04);
    filter: saturate(1.12) brightness(1.04);
  }
}

@keyframes mkHeroVeilBreathFinal {
  0% {
    opacity: 0.64;
  }
  100% {
    opacity: 0.78;
  }
}

@keyframes mkStarfieldDriftFinal {
  0% {
    transform: translate3d(-12px, -5px, 0);
    opacity: 0.46;
  }
  100% {
    transform: translate3d(14px, 8px, 0);
    opacity: 0.86;
  }
}

@keyframes mkConstellationBlinkFinal {
  0% {
    opacity: 0.28;
    filter: brightness(0.85);
  }
  48% {
    opacity: 0.88;
    filter: brightness(1.28);
  }
  100% {
    opacity: 0.44;
    filter: brightness(1);
  }
}

@keyframes mkSynapseSparkFinal {
  0%,
  9%,
  100% {
    opacity: 0;
    transform: translate3d(0, 0, 0) scale(0.2);
  }
  14% {
    opacity: 1;
    transform: translate3d(0, -2px, 0) scale(1.18);
  }
  20% {
    opacity: 0.32;
    transform: translate3d(0, 0, 0) scale(0.72);
  }
  28% {
    opacity: 0.96;
    transform: translate3d(0, -7px, 0) scale(1);
  }
  42% {
    opacity: 0;
    transform: translate3d(0, -16px, 0) scale(0.34);
  }
}

@keyframes mkSynapseSparkRayFinal {
  0%,
  10%,
  100% {
    opacity: 0;
    scale: 0.4 1;
  }
  14%,
  29% {
    opacity: 0.92;
    scale: 1 1;
  }
  42% {
    opacity: 0;
    scale: 1.35 1;
  }
}

@keyframes mkSynapseCurrentFinal {
  0%,
  12%,
  100% {
    opacity: 0;
    transform: rotate(var(--current-angle, 0deg)) translateX(-34px) scaleX(0.18);
  }
  23% {
    opacity: 0.98;
    transform: rotate(var(--current-angle, 0deg)) translateX(20px) scaleX(0.86);
  }
  42% {
    opacity: 0;
    transform: rotate(var(--current-angle, 0deg)) translateX(120px) scaleX(1.12);
  }
}

@keyframes mkNeuronFlareFinal {
  0%,
  100% {
    opacity: 0;
    transform: scale(0.66);
  }
  24% {
    opacity: 0.44;
    transform: scale(1.02);
  }
  42% {
    opacity: 0.12;
    transform: scale(0.88);
  }
  60% {
    opacity: 0.5;
    transform: scale(1.18);
  }
  76% {
    opacity: 0;
    transform: scale(0.82);
  }
}

@media (max-width: 760px) {
  .mk-hero {
    min-height: max(794px, 115vh) !important;
  }

  .mk-synapse-current-5,
  .mk-synapse-current-6,
  .mk-synapse-current-8,
  .mk-synapse-current-11,
  .mk-synapse-spark-11,
  .mk-synapse-spark-12,
  .mk-synapse-spark-13,
  .mk-synapse-spark-14,
  .mk-synapse-spark-21,
  .mk-synapse-spark-22,
  .mk-synapse-spark-23,
  .mk-synapse-spark-28,
  .mk-synapse-spark-32,
  .mk-neuron-flare-4,
  .mk-neuron-flare-5,
  .mk-neuron-flare-6,
  .mk-neuron-flare-9 {
    display: none !important;
  }
}

/* Final hero height adjustment: increase the current hero by 15%. */
.mk-hero {
  min-height: 115vh !important;
}

@media (max-width: 760px) {
  .mk-hero {
    min-height: max(794px, 115vh) !important;
  }
}

/* User-provided hero_bg.png is the source of truth; this layer only adds synapse light motion. */
.mk-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 100vh;
  background: url("/assets/hero_bg-D--qcYRt.png") center / cover no-repeat #02040a !important;
}

.mk-hero::before,
.mk-hero::after,
.mk-network-field::before,
.mk-dome,
.mk-network-line,
.mk-network-node,
.mk-network-glow {
  display: none !important;
}

.mk-network-field {
  position: absolute;
  inset: 0;
  z-index: 2;
  overflow: hidden;
  pointer-events: none;
}

.mk-network-field::after {
  content: "";
  display: block !important;
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(circle at 8% 18%, rgba(154, 92, 255, 0.52) 0 1px, transparent 3px),
    radial-gradient(circle at 16% 35%, rgba(118, 72, 255, 0.42) 0 1px, transparent 3px),
    radial-gradient(circle at 42% 16%, rgba(255, 138, 72, 0.45) 0 1px, transparent 3px),
    radial-gradient(circle at 72% 18%, rgba(171, 112, 255, 0.38) 0 1px, transparent 3px),
    radial-gradient(circle at 86% 30%, rgba(154, 92, 255, 0.46) 0 1px, transparent 3px),
    radial-gradient(circle at 94% 43%, rgba(255, 128, 68, 0.5) 0 1px, transparent 3px) !important;
  opacity: 0.5 !important;
  mix-blend-mode: screen;
  animation: mkSynapseAmbient 7.5s ease-in-out infinite alternate !important;
}

.mk-synapse-spark,
.mk-synapse-current,
.mk-neuron-flare {
  position: absolute;
  z-index: 3;
  pointer-events: none;
  mix-blend-mode: screen;
}

.mk-synapse-spark {
  --spark-rgb: 170 116 255;
  --spark-size: 3px;
  --spark-duration: 6.8s;
  width: var(--spark-size);
  height: var(--spark-size);
  border-radius: 999px;
  background: rgb(var(--spark-rgb));
  box-shadow:
    0 0 8px rgb(var(--spark-rgb) / 0.95),
    0 0 22px rgb(var(--spark-rgb) / 0.72),
    0 0 44px rgb(var(--spark-rgb) / 0.28);
  opacity: 0;
  transform: translate3d(0, 0, 0) scale(0.25);
  animation: mkSynapseSpark var(--spark-duration, 6.5s) ease-in-out infinite;
  animation-delay: var(--spark-delay, 0s);
}

.mk-synapse-spark::before,
.mk-synapse-spark::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgb(var(--spark-rgb) / 0.76), transparent);
  opacity: 0;
  transform: translate(-50%, -50%) rotate(var(--spark-angle, 0deg));
  animation: mkSynapseCross var(--spark-duration, 6.5s) ease-in-out infinite;
  animation-delay: var(--spark-delay, 0s);
}

.mk-synapse-spark::before {
  width: 24px;
  height: 1px;
}

.mk-synapse-spark::after {
  width: 15px;
  height: 1px;
  transform: translate(-50%, -50%) rotate(calc(var(--spark-angle, 0deg) + 86deg));
}

.mk-synapse-current {
  --current-rgb: 169 107 255;
  --current-duration: 8s;
  width: var(--current-width, 92px);
  height: 1px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgb(var(--current-rgb) / 0.12), rgb(var(--current-rgb) / 0.95), transparent);
  box-shadow: 0 0 16px rgb(var(--current-rgb) / 0.45);
  opacity: 0;
  transform: rotate(var(--current-angle, 0deg)) translateX(-22px);
  transform-origin: left center;
  animation: mkSynapseCurrent var(--current-duration, 7.4s) cubic-bezier(0.33, 0, 0.25, 1) infinite;
  animation-delay: var(--current-delay, 0s);
}

.mk-neuron-flare {
  --flare-rgb: 166 107 255;
  --flare-size: 54px;
  width: var(--flare-size);
  height: var(--flare-size);
  border-radius: 999px;
  background:
    radial-gradient(circle, rgb(var(--flare-rgb, 176 116 255) / 0.52) 0 8%, rgb(var(--flare-rgb) / 0.18) 34%, transparent 70%);
  filter: blur(1.4px);
  opacity: 0;
  animation: mkNeuronFlare 9.5s ease-in-out infinite;
  animation-delay: var(--flare-delay, 0s);
}

.mk-hero-copy {
  position: relative;
  z-index: 7;
}

.mk-hero h1 {
  letter-spacing: 0;
  text-shadow: 0 12px 42px rgba(0, 0, 0, 0.72);
}

.mk-sub,
.mk-hero-actions {
  text-shadow: 0 8px 26px rgba(0, 0, 0, 0.68);
}

.mk-synapse-spark-1 { left: 3.5%; top: 15%; --spark-delay: -0.4s; --spark-angle: 24deg; }
.mk-synapse-spark-2 { left: 8%; top: 33%; --spark-rgb: 123 74 255; --spark-delay: -4.8s; --spark-duration: 8.4s; --spark-angle: -21deg; }
.mk-synapse-spark-3 { left: 11.5%; top: 23%; --spark-delay: -2s; --spark-duration: 7.7s; --spark-angle: 49deg; }
.mk-synapse-spark-4 { left: 16%; top: 36%; --spark-rgb: 255 126 65; --spark-size: 4px; --spark-delay: -6.2s; --spark-duration: 9s; --spark-angle: -7deg; }
.mk-synapse-spark-5 { left: 22%; top: 18%; --spark-delay: -1.7s; --spark-duration: 6.9s; --spark-angle: 71deg; }
.mk-synapse-spark-6 { left: 28%; top: 14%; --spark-rgb: 105 185 255; --spark-delay: -5.2s; --spark-duration: 8.8s; --spark-angle: -31deg; }
.mk-synapse-spark-7 { left: 37%; top: 16%; --spark-rgb: 255 136 73; --spark-size: 4px; --spark-delay: -3.1s; --spark-duration: 7.3s; --spark-angle: 18deg; }
.mk-synapse-spark-8 { left: 44%; top: 24%; --spark-rgb: 100 190 255; --spark-delay: -7.4s; --spark-duration: 8.9s; --spark-angle: 8deg; }
.mk-synapse-spark-9 { left: 50%; top: 15%; --spark-delay: -6.5s; --spark-duration: 10s; --spark-angle: 58deg; }
.mk-synapse-spark-10 { left: 54%; top: 27%; --spark-rgb: 255 124 66; --spark-delay: -2.7s; --spark-duration: 9.4s; --spark-angle: -18deg; }
.mk-synapse-spark-11 { right: 37%; top: 18%; --spark-delay: -4.1s; --spark-duration: 8.2s; --spark-angle: -36deg; }
.mk-synapse-spark-12 { right: 30%; top: 13%; --spark-rgb: 124 76 255; --spark-delay: -7.2s; --spark-duration: 8.7s; --spark-angle: 34deg; }
.mk-synapse-spark-13 { right: 22%; top: 20%; --spark-delay: -2.4s; --spark-duration: 7.5s; --spark-angle: 11deg; }
.mk-synapse-spark-14 { right: 14%; top: 27%; --spark-rgb: 255 133 70; --spark-size: 4px; --spark-delay: -5.9s; --spark-duration: 9.3s; --spark-angle: -41deg; }
.mk-synapse-spark-15 { right: 7%; top: 36%; --spark-delay: -3.4s; --spark-duration: 7.8s; --spark-angle: 27deg; }
.mk-synapse-spark-16 { right: 2%; top: 47%; --spark-rgb: 255 119 66; --spark-delay: -8.1s; --spark-duration: 9s; --spark-angle: -52deg; }
.mk-synapse-spark-17 { left: 5%; top: 57%; --spark-rgb: 255 122 68; --spark-delay: -2.9s; --spark-duration: 8.6s; --spark-angle: 8deg; }
.mk-synapse-spark-18 { left: 13%; bottom: 32%; --spark-delay: -7.8s; --spark-duration: 9.1s; --spark-angle: -38deg; }
.mk-synapse-spark-19 { left: 27%; bottom: 24%; --spark-rgb: 105 185 255; --spark-delay: -4.6s; --spark-duration: 7.1s; --spark-angle: 18deg; }
.mk-synapse-spark-20 { left: 38%; bottom: 20%; --spark-rgb: 255 132 70; --spark-delay: -1.2s; --spark-duration: 8.4s; --spark-angle: -6deg; }
.mk-synapse-spark-21 { right: 42%; bottom: 22%; --spark-delay: -5.4s; --spark-duration: 9.7s; --spark-angle: 33deg; }
.mk-synapse-spark-22 { right: 31%; bottom: 27%; --spark-rgb: 255 127 68; --spark-delay: -0.9s; --spark-duration: 8.1s; --spark-angle: -14deg; }
.mk-synapse-spark-23 { right: 22%; bottom: 34%; --spark-delay: -3.9s; --spark-duration: 7.4s; --spark-angle: 70deg; }
.mk-synapse-spark-24 { right: 10%; bottom: 31%; --spark-rgb: 255 103 150; --spark-delay: -6.4s; --spark-duration: 9.5s; --spark-angle: -24deg; }
.mk-synapse-spark-25 { right: 5%; bottom: 21%; --spark-rgb: 255 125 66; --spark-size: 4px; --spark-delay: -4.3s; --spark-duration: 8.3s; --spark-angle: 39deg; }
.mk-synapse-spark-26 { left: 2%; top: 7%; --spark-delay: -6.9s; --spark-duration: 8.8s; --spark-angle: 63deg; }
.mk-synapse-spark-27 { left: 31%; top: 31%; --spark-rgb: 255 126 65; --spark-delay: -8.4s; --spark-duration: 10.2s; --spark-angle: -17deg; }
.mk-synapse-spark-28 { right: 18%; top: 12%; --spark-rgb: 101 184 255; --spark-delay: -1.5s; --spark-duration: 7.6s; --spark-angle: 14deg; }
.mk-synapse-spark-29 { right: 3.5%; top: 18%; --spark-delay: -5.1s; --spark-duration: 8.1s; --spark-angle: -28deg; }
.mk-synapse-spark-30 { right: 12%; top: 55%; --spark-rgb: 255 129 67; --spark-delay: -2.1s; --spark-duration: 7.9s; --spark-angle: 34deg; }
.mk-synapse-spark-31 { left: 45%; bottom: 12%; --spark-rgb: 255 132 70; --spark-delay: -6.2s; --spark-duration: 9.2s; --spark-angle: -12deg; }
.mk-synapse-spark-32 { right: 46%; top: 9%; --spark-delay: -4.7s; --spark-duration: 8.5s; --spark-angle: 51deg; }

.mk-synapse-current-1 { left: 2%; top: 24%; --current-width: 180px; --current-angle: 18deg; --current-delay: -1s; }
.mk-synapse-current-2 { left: 10%; top: 36%; --current-width: 150px; --current-angle: -15deg; --current-delay: -4s; --current-duration: 9s; }
.mk-synapse-current-3 { left: 20%; top: 17%; --current-rgb: 255 126 65; --current-width: 120px; --current-angle: 4deg; --current-delay: -6.3s; }
.mk-synapse-current-4 { left: 31%; top: 30%; --current-width: 135px; --current-angle: -23deg; --current-delay: -2.6s; --current-duration: 7.5s; }
.mk-synapse-current-5 { right: 32%; top: 16%; --current-width: 165px; --current-angle: -14deg; --current-delay: -5.5s; }
.mk-synapse-current-6 { right: 18%; top: 25%; --current-rgb: 255 129 68; --current-width: 138px; --current-angle: 27deg; --current-delay: -0.8s; --current-duration: 8.8s; }
.mk-synapse-current-7 { right: 3%; top: 43%; --current-rgb: 255 126 65; --current-width: 118px; --current-angle: -44deg; --current-delay: -7.2s; }
.mk-synapse-current-8 { right: 19%; bottom: 31%; --current-width: 142px; --current-angle: 16deg; --current-delay: -3.6s; --current-duration: 9.6s; }
.mk-synapse-current-9 { left: 4%; bottom: 35%; --current-rgb: 255 126 65; --current-width: 110px; --current-angle: 11deg; --current-delay: -8.6s; }
.mk-synapse-current-10 { left: 35%; bottom: 18%; --current-rgb: 255 132 70; --current-width: 148px; --current-angle: -8deg; --current-delay: -2.3s; }
.mk-synapse-current-11 { right: 41%; top: 11%; --current-width: 110px; --current-angle: 39deg; --current-delay: -6.7s; --current-duration: 10s; }
.mk-synapse-current-12 { right: 7%; bottom: 23%; --current-rgb: 255 126 65; --current-width: 130px; --current-angle: 28deg; --current-delay: -4.9s; --current-duration: 8.3s; }

.mk-neuron-flare-1 { left: 2%; top: 10%; --flare-size: 86px; --flare-delay: -2s; }
.mk-neuron-flare-2 { left: 10%; top: 33%; --flare-size: 46px; --flare-rgb: 113 74 255; --flare-delay: -6s; }
.mk-neuron-flare-3 { left: 28%; top: 18%; --flare-size: 38px; --flare-rgb: 102 185 255; --flare-delay: -4s; }
.mk-neuron-flare-4 { left: 45%; top: 12%; --flare-size: 72px; --flare-delay: -8s; }
.mk-neuron-flare-5 { right: 31%; top: 14%; --flare-size: 46px; --flare-rgb: 255 126 65; --flare-delay: -3s; }
.mk-neuron-flare-6 { right: 15%; top: 29%; --flare-size: 68px; --flare-delay: -9s; }
.mk-neuron-flare-7 { right: 3%; top: 41%; --flare-size: 90px; --flare-rgb: 255 126 65; --flare-delay: -5s; }
.mk-neuron-flare-8 { left: 39%; bottom: 14%; --flare-size: 78px; --flare-rgb: 255 132 70; --flare-delay: -7s; }
.mk-neuron-flare-9 { right: 24%; bottom: 28%; --flare-size: 48px; --flare-delay: -1.6s; }
.mk-neuron-flare-10 { right: 8%; bottom: 20%; --flare-size: 56px; --flare-rgb: 255 118 64; --flare-delay: -6.4s; }

@keyframes mkSynapseAmbient {
  0% {
    opacity: 0.32;
    filter: brightness(0.9);
  }
  100% {
    opacity: 0.64;
    filter: brightness(1.18);
  }
}

@keyframes mkSynapseSpark {
  0%,
  8%,
  100% {
    opacity: 0;
    transform: translate3d(0, 0, 0) scale(0.24);
  }
  13% {
    opacity: 0.88;
    transform: translate3d(0, -2px, 0) scale(1.08);
  }
  18% {
    opacity: 0.2;
    transform: translate3d(0, 0, 0) scale(0.62);
  }
  25% {
    opacity: 0.92;
    transform: translate3d(0, -6px, 0) scale(0.96);
  }
  36% {
    opacity: 0;
    transform: translate3d(0, -12px, 0) scale(0.38);
  }
}

@keyframes mkSynapseCross {
  0%,
  10%,
  100% {
    opacity: 0;
    width: 0;
  }
  14%,
  25% {
    opacity: 0.72;
  }
  34% {
    opacity: 0;
    width: 30px;
  }
}

@keyframes mkSynapseCurrent {
  0%,
  12%,
  100% {
    opacity: 0;
    transform: rotate(var(--current-angle, 0deg)) translateX(-28px) scaleX(0.2);
  }
  24% {
    opacity: 0.92;
    transform: rotate(var(--current-angle, 0deg)) translateX(18px) scaleX(0.82);
  }
  42% {
    opacity: 0;
    transform: rotate(var(--current-angle, 0deg)) translateX(96px) scaleX(1.08);
  }
}

@keyframes mkNeuronFlare {
  0%,
  100% {
    opacity: 0;
    transform: scale(0.72);
  }
  28% {
    opacity: 0.3;
    transform: scale(1.02);
  }
  42% {
    opacity: 0.08;
    transform: scale(0.9);
  }
  58% {
    opacity: 0.42;
    transform: scale(1.16);
  }
  76% {
    opacity: 0;
    transform: scale(0.84);
  }
}

@media (max-width: 860px) {
  .mk-hero {
    background-position: center top;
  }

  .mk-synapse-current-5,
  .mk-synapse-current-6,
  .mk-synapse-current-8,
  .mk-synapse-current-11,
  .mk-synapse-spark-11,
  .mk-synapse-spark-12,
  .mk-synapse-spark-13,
  .mk-synapse-spark-14,
  .mk-synapse-spark-21,
  .mk-synapse-spark-22,
  .mk-synapse-spark-23,
  .mk-synapse-spark-28,
  .mk-synapse-spark-32,
  .mk-neuron-flare-4,
  .mk-neuron-flare-5,
  .mk-neuron-flare-6,
  .mk-neuron-flare-9 {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mk-network-field::after,
  .mk-synapse-spark,
  .mk-synapse-current,
  .mk-neuron-flare {
    animation: none;
  }

  .mk-synapse-spark,
  .mk-neuron-flare {
    opacity: 0.24;
  }

  .mk-synapse-current {
    opacity: 0;
  }
}

/* Final hero neural raster rebuild: PNG carries the artwork, CSS only adds living synapse motion. */
.mk-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 100vh;
  background:
    radial-gradient(980px 520px at 50% 47%, rgba(0, 0, 0, 0.86), rgba(0, 0, 0, 0.5) 52%, transparent 78%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.58)),
    url("/assets/hero_bg-D--qcYRt.png") center / cover no-repeat,
    #020204;
}

.mk-hero::before,
.mk-hero::after {
  content: "";
  display: block;
  position: absolute;
  pointer-events: none;
}

.mk-hero::before {
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(640px 300px at 50% 44%, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.12) 66%, transparent 84%),
    radial-gradient(520px 260px at 9% 28%, rgba(146, 91, 255, 0.2), transparent 74%),
    radial-gradient(520px 290px at 91% 49%, rgba(255, 104, 55, 0.16), transparent 76%);
  opacity: 0.96;
  animation: mkReferenceBreath 14s ease-in-out infinite alternate;
}

.mk-hero::after {
  inset: 0;
  z-index: 4;
  background:
    radial-gradient(660px 260px at 50% 47%, rgba(0, 0, 0, 0.58), transparent 72%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.36), transparent 18%, transparent 72%, rgba(0, 0, 0, 0.3));
}

.mk-network-field {
  position: absolute;
  inset: 0;
  z-index: 2;
  overflow: hidden;
  pointer-events: none;
}

.mk-network-field::before {
  content: "";
  position: absolute;
  inset: -3%;
  z-index: 1;
  background: url("/assets/hero_bg-D--qcYRt.png") center / cover no-repeat;
  opacity: 0.13;
  filter: saturate(1.35) contrast(1.12);
  mix-blend-mode: screen;
  transform: scale(1.025);
  animation: mkRasterParallax 32s ease-in-out infinite alternate;
}

.mk-network-field::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    radial-gradient(circle at 26% 24%, rgba(171, 111, 255, 0.65) 0 1px, transparent 3px),
    radial-gradient(circle at 38% 18%, rgba(255, 121, 60, 0.5) 0 1px, transparent 3px),
    radial-gradient(circle at 74% 18%, rgba(169, 103, 255, 0.58) 0 1px, transparent 3px),
    radial-gradient(circle at 88% 48%, rgba(255, 105, 70, 0.5) 0 1px, transparent 3px);
  opacity: 0.62;
  animation: mkFieldBlink 5.2s steps(2, end) infinite;
}

.mk-network-line,
.mk-network-node,
.mk-network-glow,
.mk-dome,
.mk-synapse-spark,
.mk-neuron-flare {
  position: absolute;
}

.mk-network-line,
.mk-network-node,
.mk-network-glow,
.mk-synapse-spark,
.mk-neuron-flare {
  z-index: 3;
}

.mk-dome {
  display: none;
}

.mk-network-line {
  height: 1px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent 0%, rgba(160, 100, 255, 0.05) 12%, rgba(175, 112, 255, 0.44) 48%, rgba(255, 128, 58, 0.3) 62%, transparent 100%);
  box-shadow: 0 0 14px rgba(148, 92, 255, 0.22);
  opacity: 0.34;
  transform-origin: left center;
  animation: mkTraceFlow 8.5s ease-in-out infinite;
}

.mk-network-line-one {
  left: -4%;
  top: 24%;
  width: 40%;
  transform: rotate(14deg);
}

.mk-network-line-two {
  left: 11%;
  top: 15%;
  width: 34%;
  transform: rotate(-9deg);
  animation-delay: -1.4s;
}

.mk-network-line-three {
  right: -5%;
  top: 30%;
  width: 38%;
  transform: rotate(31deg);
  animation-delay: -2.1s;
}

.mk-network-line-four {
  right: 4%;
  top: 57%;
  width: 32%;
  transform: rotate(-18deg);
  animation-delay: -3.7s;
}

.mk-network-line-five {
  left: -2%;
  top: 52%;
  width: 36%;
  transform: rotate(-17deg);
  animation-delay: -4.4s;
}

.mk-network-line-six {
  right: 29%;
  bottom: 18%;
  width: 28%;
  transform: rotate(12deg);
  opacity: 0.2;
  animation-delay: -5s;
}

.mk-network-node {
  width: 8px;
  height: 8px;
  border: 0;
  border-radius: 999px;
  background: #aa78ff;
  color: rgba(170, 120, 255, 0.9);
  font-size: 0;
  box-shadow:
    0 0 12px currentColor,
    0 0 30px currentColor;
  animation: mkNodeFire 6.4s ease-in-out infinite;
}

.mk-network-node.is-purple,
.mk-network-node.is-violet {
  background: #a777ff;
  color: rgba(167, 119, 255, 0.86);
}

.mk-network-node.is-orange {
  background: #ff843c;
  color: rgba(255, 132, 60, 0.78);
}

.mk-network-node.is-cyan {
  background: #63c4ff;
  color: rgba(99, 196, 255, 0.7);
}

.mk-network-node.is-rose {
  background: #ff65a1;
  color: rgba(255, 101, 161, 0.7);
}

.mk-network-node-1 {
  left: 13%;
  top: 37%;
}

.mk-network-node-2 {
  left: 25%;
  top: 18%;
  animation-delay: -1.1s;
}

.mk-network-node-3 {
  left: 37%;
  top: 25%;
  animation-delay: -2.5s;
}

.mk-network-node-4 {
  right: 27%;
  top: 18%;
  animation-delay: -3.8s;
}

.mk-network-node-5 {
  right: 11%;
  top: 44%;
  animation-delay: -0.7s;
}

.mk-network-node-6 {
  left: 18%;
  bottom: 31%;
  animation-delay: -4.6s;
}

.mk-network-node-7 {
  right: 18%;
  bottom: 29%;
  animation-delay: -2.9s;
}

.mk-network-node-8 {
  left: 46%;
  bottom: 18%;
  opacity: 0.42;
  animation-delay: -5.5s;
}

.mk-network-glow {
  border-radius: 999px;
  background: radial-gradient(circle, rgba(161, 112, 255, 0.42), rgba(161, 112, 255, 0.12) 38%, transparent 70%);
  filter: blur(2px);
  opacity: 0.56;
  animation: mkNeuronWake 12s ease-in-out infinite alternate;
}

.mk-network-glow-one {
  left: 45%;
  top: 8%;
  width: 84px;
  height: 84px;
}

.mk-network-glow-two {
  right: 18%;
  top: 23%;
  width: 54px;
  height: 54px;
  background: radial-gradient(circle, rgba(172, 113, 255, 0.34), rgba(172, 113, 255, 0.09) 42%, transparent 72%);
  animation-delay: -3s;
}

.mk-network-glow-three {
  right: 5%;
  top: 50%;
  width: 64px;
  height: 64px;
  background: radial-gradient(circle, rgba(255, 117, 61, 0.36), rgba(255, 117, 61, 0.09) 42%, transparent 72%);
  animation-delay: -6s;
}

.mk-synapse-spark {
  --spark-rgb: 170 120 255;
  --spark-size: 4px;
  --spark-duration: 7s;
  width: var(--spark-size);
  height: var(--spark-size);
  border-radius: 999px;
  background: rgb(var(--spark-rgb));
  box-shadow:
    0 0 10px rgb(var(--spark-rgb) / 0.95),
    0 0 28px rgb(var(--spark-rgb) / 0.55);
  opacity: 0;
  transform: translate3d(0, 0, 0) scale(0.28);
  animation: mkSparkAppear var(--spark-duration, 6.5s) ease-in-out infinite;
  animation-delay: var(--spark-delay, 0s);
}

.mk-synapse-spark::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 22px;
  height: 1px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgb(var(--spark-rgb) / 0.65), transparent);
  transform: translate(-50%, -50%) rotate(var(--spark-angle, 0deg));
  opacity: 0.72;
}

.mk-synapse-spark-1 { left: 6%; top: 26%; --spark-delay: -0.3s; --spark-duration: 6.6s; --spark-angle: 17deg; }
.mk-synapse-spark-2 { left: 12%; top: 38%; --spark-rgb: 255 126 62; --spark-delay: -3.1s; --spark-duration: 8.2s; --spark-angle: -21deg; }
.mk-synapse-spark-3 { left: 23%; top: 15%; --spark-delay: -1.8s; --spark-duration: 7.8s; --spark-angle: 42deg; }
.mk-synapse-spark-4 { left: 31%; top: 26%; --spark-rgb: 204 103 255; --spark-delay: -5.2s; --spark-duration: 9s; --spark-angle: -8deg; }
.mk-synapse-spark-5 { left: 38%; top: 17%; --spark-rgb: 255 128 64; --spark-size: 5px; --spark-delay: -6.4s; --spark-duration: 8.8s; --spark-angle: 64deg; }
.mk-synapse-spark-6 { right: 32%; top: 15%; --spark-rgb: 172 112 255; --spark-delay: -2.7s; --spark-duration: 8s; --spark-angle: -32deg; }
.mk-synapse-spark-7 { right: 20%; top: 27%; --spark-delay: -4.4s; --spark-duration: 7.4s; --spark-angle: 13deg; }
.mk-synapse-spark-8 { right: 10%; top: 41%; --spark-rgb: 255 96 150; --spark-size: 5px; --spark-delay: -1.1s; --spark-duration: 7.9s; --spark-angle: 36deg; }
.mk-synapse-spark-9 { right: 4%; top: 53%; --spark-rgb: 255 126 62; --spark-delay: -5.9s; --spark-duration: 8.5s; --spark-angle: -24deg; }
.mk-synapse-spark-10 { right: 16%; top: 63%; --spark-delay: -2s; --spark-duration: 9.5s; --spark-angle: 70deg; }
.mk-synapse-spark-11 { left: 17%; bottom: 31%; --spark-delay: -6.8s; --spark-duration: 8.6s; --spark-angle: -38deg; }
.mk-synapse-spark-12 { left: 33%; bottom: 22%; --spark-rgb: 99 196 255; --spark-delay: -4.9s; --spark-duration: 7.1s; --spark-angle: 18deg; }
.mk-synapse-spark-13 { right: 28%; bottom: 27%; --spark-rgb: 255 132 60; --spark-size: 5px; --spark-delay: -0.9s; --spark-duration: 8.4s; --spark-angle: -14deg; }
.mk-synapse-spark-14 { right: 39%; bottom: 20%; --spark-rgb: 255 96 150; --spark-delay: -3.6s; --spark-duration: 9.2s; --spark-angle: 33deg; }
.mk-synapse-spark-15 { left: 4%; top: 57%; --spark-rgb: 255 132 60; --spark-delay: -7.4s; --spark-duration: 9.1s; --spark-angle: 8deg; }
.mk-synapse-spark-16 { right: 2%; top: 70%; --spark-rgb: 255 126 62; --spark-delay: -2.3s; --spark-duration: 8.1s; --spark-angle: -47deg; }
.mk-synapse-spark-17 { left: 48%; top: 14%; --spark-delay: -6.1s; --spark-duration: 10s; --spark-angle: 58deg; }
.mk-synapse-spark-18 { left: 46%; bottom: 17%; --spark-rgb: 255 126 62; --spark-delay: -4.1s; --spark-duration: 8.9s; --spark-angle: -6deg; }
.mk-synapse-spark-19 { right: 45%; top: 13%; --spark-rgb: 99 196 255; --spark-delay: -1.7s; --spark-duration: 7.7s; --spark-angle: 21deg; }
.mk-synapse-spark-20 { left: 58%; top: 24%; --spark-delay: -7.9s; --spark-duration: 9.8s; --spark-angle: -29deg; }

.mk-neuron-flare {
  --flare-rgb: 167 119 255;
  width: var(--flare-size, 58px);
  height: var(--flare-size, 58px);
  border-radius: 999px;
  background: radial-gradient(circle, rgb(var(--flare-rgb) / 0.42), rgb(var(--flare-rgb) / 0.12) 38%, transparent 70%);
  filter: blur(1.2px);
  opacity: 0.24;
  mix-blend-mode: screen;
  animation: mkNeuronFlare 11s ease-in-out infinite;
}

.mk-neuron-flare-1 { left: 9%; top: 34%; --flare-size: 72px; --flare-rgb: 255 118 62; animation-delay: -2s; }
.mk-neuron-flare-2 { left: 28%; top: 18%; --flare-size: 54px; animation-delay: -6s; }
.mk-neuron-flare-3 { left: 36%; top: 31%; --flare-size: 46px; --flare-rgb: 205 103 255; animation-delay: -4s; }
.mk-neuron-flare-4 { right: 30%; top: 13%; --flare-size: 82px; animation-delay: -8s; }
.mk-neuron-flare-5 { right: 13%; top: 46%; --flare-size: 62px; --flare-rgb: 255 118 62; animation-delay: -3s; }
.mk-neuron-flare-6 { right: 21%; bottom: 28%; --flare-size: 48px; animation-delay: -9s; }
.mk-neuron-flare-7 { left: 44%; bottom: 15%; --flare-size: 78px; --flare-rgb: 255 132 60; animation-delay: -5s; }

.mk-hero-copy {
  position: relative;
  z-index: 7;
}

.mk-hero h1 {
  letter-spacing: 0;
  text-shadow: 0 10px 42px rgba(0, 0, 0, 0.74);
}

.mk-sub,
.mk-hero-actions {
  text-shadow: 0 8px 28px rgba(0, 0, 0, 0.72);
}

@keyframes mkReferenceBreath {
  0% {
    opacity: 0.86;
    filter: saturate(1);
  }
  100% {
    opacity: 1;
    filter: saturate(1.12);
  }
}

@keyframes mkRasterParallax {
  0% {
    transform: translate3d(-10px, -4px, 0) scale(1.025);
  }
  100% {
    transform: translate3d(14px, 10px, 0) scale(1.045);
  }
}

@keyframes mkFieldBlink {
  0%,
  100% {
    opacity: 0.34;
  }
  50% {
    opacity: 0.68;
  }
}

@keyframes mkTraceFlow {
  0%,
  100% {
    opacity: 0.14;
    filter: blur(0.2px);
  }
  50% {
    opacity: 0.48;
    filter: blur(0);
  }
}

@keyframes mkNodeFire {
  0%,
  100% {
    opacity: 0.34;
    transform: translate3d(0, 0, 0) scale(0.72);
  }
  42% {
    opacity: 0.92;
    transform: translate3d(0, -6px, 0) scale(1.12);
  }
  56% {
    opacity: 0.44;
    transform: translate3d(0, 2px, 0) scale(0.84);
  }
}

@keyframes mkNeuronWake {
  0% {
    opacity: 0.24;
    transform: translate3d(0, 0, 0) scale(0.9);
  }
  100% {
    opacity: 0.72;
    transform: translate3d(8px, -10px, 0) scale(1.16);
  }
}

@keyframes mkSparkAppear {
  0%,
  13%,
  100% {
    opacity: 0;
    transform: translate3d(0, 0, 0) scale(0.24);
  }
  19% {
    opacity: 0.96;
    transform: translate3d(0, -4px, 0) scale(1.08);
  }
  28% {
    opacity: 0.28;
    transform: translate3d(0, -2px, 0) scale(0.7);
  }
  38% {
    opacity: 0.88;
    transform: translate3d(0, -8px, 0) scale(1);
  }
  52% {
    opacity: 0;
    transform: translate3d(0, -14px, 0) scale(0.42);
  }
}

@keyframes mkNeuronFlare {
  0%,
  100% {
    opacity: 0.12;
    transform: scale(0.84);
  }
  46% {
    opacity: 0.44;
    transform: scale(1.12);
  }
  64% {
    opacity: 0.2;
    transform: scale(0.94);
  }
}

@media (max-width: 860px) {
  .mk-hero {
    background-position: center top;
  }

  .mk-hero::before {
    background:
      radial-gradient(400px 310px at 50% 43%, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.18) 70%, transparent 86%),
      radial-gradient(300px 240px at 6% 32%, rgba(146, 91, 255, 0.18), transparent 74%),
      radial-gradient(320px 260px at 96% 49%, rgba(255, 104, 55, 0.13), transparent 78%);
  }

  .mk-network-field::before {
    inset: -10%;
    opacity: 0.12;
    background-position: center top;
  }

  .mk-network-line-three,
  .mk-network-line-four,
  .mk-network-node-4,
  .mk-network-node-5,
  .mk-network-node-7,
  .mk-synapse-spark-6,
  .mk-synapse-spark-8,
  .mk-synapse-spark-10,
  .mk-synapse-spark-13,
  .mk-synapse-spark-14,
  .mk-synapse-spark-17,
  .mk-synapse-spark-18,
  .mk-synapse-spark-19,
  .mk-synapse-spark-20,
  .mk-neuron-flare-4,
  .mk-neuron-flare-6,
  .mk-neuron-flare-7 {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mk-hero::before,
  .mk-network-field::before,
  .mk-network-field::after,
  .mk-network-line,
  .mk-network-node,
  .mk-network-glow,
  .mk-synapse-spark,
  .mk-neuron-flare {
    animation: none;
  }

  .mk-synapse-spark,
  .mk-neuron-flare {
    opacity: 0.28;
  }
}

/* Final hero neural cosmos layer: keep copy/nav intact, replace abstract SVG-like scenery. */
.mk-hero {
  isolation: isolate;
  background:
    radial-gradient(760px 420px at 50% 50%, rgba(0, 0, 0, 0.76), rgba(0, 0, 0, 0.28) 56%, transparent 78%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.32), rgba(0, 0, 0, 0.58)),
    url("/assets/hero_bg-D--qcYRt.png") center / cover no-repeat,
    #02040a;
}

.mk-hero::before {
  z-index: 1;
  background:
    radial-gradient(680px 360px at 50% 48%, rgba(0, 0, 0, 0.64), rgba(0, 0, 0, 0.18) 58%, transparent 78%),
    radial-gradient(540px 300px at 12% 32%, rgba(155, 102, 255, 0.16), transparent 70%),
    radial-gradient(520px 280px at 91% 39%, rgba(255, 98, 74, 0.13), transparent 72%);
  opacity: 1;
  mask-image: none;
  animation: mkHeroNebulaBreath 14s ease-in-out infinite alternate;
}

.mk-hero::after {
  left: 8%;
  right: 8%;
  bottom: -28%;
  z-index: 1;
  width: auto;
  height: 46%;
  border-radius: 50% 50% 0 0;
  background: radial-gradient(ellipse at 50% 100%, rgba(255, 126, 30, 0.24), rgba(151, 84, 255, 0.08) 44%, transparent 74%);
  filter: blur(0);
  opacity: 0.72;
  animation: mkDomeGlow 11s ease-in-out infinite alternate;
}

.mk-network-field {
  position: absolute;
  inset: 0;
  z-index: 2;
  overflow: hidden;
  pointer-events: none;
}

.mk-network-field::before {
  content: "";
  position: absolute;
  inset: -5%;
  background: url("/assets/hero_bg-D--qcYRt.png") center / cover no-repeat;
  opacity: 0.2;
  filter: saturate(1.18) contrast(1.08);
  mix-blend-mode: screen;
  transform: scale(1.03);
  animation: mkCosmosDrift 26s ease-in-out infinite alternate;
}

.mk-network-field::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 19% 23%, rgba(169, 118, 255, 0.7) 0 2px, transparent 3px),
    radial-gradient(circle at 34% 61%, rgba(72, 185, 255, 0.48) 0 2px, transparent 3px),
    radial-gradient(circle at 73% 30%, rgba(255, 113, 75, 0.52) 0 2px, transparent 3px),
    radial-gradient(circle at 88% 58%, rgba(255, 96, 154, 0.42) 0 2px, transparent 3px);
  opacity: 0.55;
  animation: mkSynapseTwinkle 3.8s ease-in-out infinite alternate;
}

.mk-network-line,
.mk-network-node,
.mk-network-glow,
.mk-dome {
  z-index: 3;
}

.mk-network-line {
  height: 1px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(150, 101, 255, 0.72), rgba(255, 121, 54, 0.28), transparent);
  box-shadow: 0 0 18px rgba(132, 89, 255, 0.34);
  opacity: 0.48;
  animation: mkAxonDrift 9s ease-in-out infinite alternate;
}

.mk-network-line-one {
  left: -8%;
  top: 22%;
  width: 54%;
  transform: rotate(13deg);
}

.mk-network-line-two {
  left: 2%;
  top: 56%;
  width: 48%;
  transform: rotate(-9deg);
}

.mk-network-line-three {
  right: -6%;
  top: 35%;
  width: 42%;
  transform: rotate(-14deg);
}

.mk-network-line-four {
  right: 6%;
  top: 64%;
  width: 34%;
  transform: rotate(20deg);
}

.mk-network-line-five {
  left: 45%;
  top: 18%;
  width: 28%;
  transform: rotate(31deg);
  opacity: 0.3;
}

.mk-network-line-six {
  left: 36%;
  bottom: 19%;
  width: 38%;
  transform: rotate(-21deg);
  opacity: 0.32;
}

.mk-network-node {
  width: 11px;
  height: 11px;
  border: 0;
  border-radius: 999px;
  background: #9b70ff;
  color: transparent;
  font-size: 0;
  box-shadow:
    0 0 18px currentColor,
    0 0 44px currentColor;
  animation: mkNodePulse 4.8s ease-in-out infinite;
}

.mk-network-node.is-purple,
.mk-network-node.is-violet {
  background: #9b70ff;
  color: rgba(155, 112, 255, 0.76);
}

.mk-network-node.is-orange {
  background: #ff8a35;
  color: rgba(255, 138, 53, 0.72);
}

.mk-network-node.is-cyan {
  background: #48b9ff;
  color: rgba(72, 185, 255, 0.64);
}

.mk-network-node.is-rose {
  background: #ff609a;
  color: rgba(255, 96, 154, 0.64);
}

.mk-network-node-1 {
  left: 22%;
  top: 27%;
}

.mk-network-node-2 {
  left: 37%;
  top: 16%;
}

.mk-network-node-3 {
  left: 53%;
  top: 18%;
}

.mk-network-node-4 {
  right: 23%;
  top: 27%;
}

.mk-network-node-5 {
  right: 9%;
  top: 55%;
}

.mk-network-node-6 {
  left: 16%;
  bottom: 26%;
}

.mk-network-node-7 {
  right: 18%;
  bottom: 21%;
}

.mk-network-node-8 {
  left: 44%;
  bottom: 18%;
}

.mk-network-glow {
  border-radius: 999px;
  background: radial-gradient(circle, rgba(153, 111, 255, 0.28), rgba(153, 111, 255, 0.08) 38%, transparent 70%);
  filter: blur(2px);
  opacity: 0.62;
  animation: mkGlowFloat 13s ease-in-out infinite alternate;
}

.mk-network-glow-one {
  left: 45%;
  top: 11%;
  width: 90px;
  height: 90px;
}

.mk-network-glow-two {
  right: 13%;
  top: 46%;
  width: 72px;
  height: 72px;
  background: radial-gradient(circle, rgba(255, 109, 64, 0.24), rgba(255, 109, 64, 0.07) 38%, transparent 70%);
}

.mk-network-glow-three {
  left: 51%;
  bottom: 23%;
  width: 86px;
  height: 86px;
  background: radial-gradient(circle, rgba(72, 185, 255, 0.18), rgba(72, 185, 255, 0.06) 38%, transparent 70%);
}

.mk-dome {
  left: 50%;
  bottom: -34%;
  width: min(1040px, 72vw);
  height: 54%;
  border-radius: 50% 50% 0 0;
  background:
    repeating-radial-gradient(ellipse at 50% 100%, transparent 0 22px, rgba(255, 130, 26, 0.34) 23px 24px, transparent 25px 42px),
    repeating-linear-gradient(74deg, transparent 0 32px, rgba(151, 85, 255, 0.24) 33px 34px, transparent 35px 64px);
  transform: translateX(-50%);
  opacity: 0.38;
  mix-blend-mode: screen;
  animation: mkDomeShift 16s ease-in-out infinite alternate;
}

.mk-hero-copy {
  z-index: 5;
}

@media (max-width: 860px) {
  .mk-hero {
    background-position: center top;
  }

  .mk-hero::before {
    background:
      radial-gradient(420px 320px at 42% 44%, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.24) 62%, transparent 82%),
      radial-gradient(360px 260px at 50% 14%, rgba(155, 102, 255, 0.16), transparent 72%);
  }

  .mk-network-field::before {
    inset: -12%;
    opacity: 0.25;
    background-position: center top;
  }

  .mk-network-line-three,
  .mk-network-line-four,
  .mk-network-node-4,
  .mk-network-node-5,
  .mk-network-node-7 {
    display: none;
  }

  .mk-dome {
    width: 760px;
    bottom: -25%;
    opacity: 0.28;
  }
}

/* Final business slider geometry: first panel is exactly one viewport of the section */
.mk-business,
.mk-business-slider {
  overflow-x: hidden;
}

.mk-business-track {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: 200%;
}

.mk-business-grid,
.mk-business-detail {
  width: 100%;
  min-width: 0;
}

.mk-business-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.mk-business-slider.is-detail .mk-business-track {
  transform: translate3d(-50%, 0, 0);
}

@media (max-width: 1120px) {
  .mk-business-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .mk-business-grid {
    grid-template-columns: 1fr;
  }
}

/* Marketing page: corporate AI homepage */
body {
  background: #f4f6f9;
}

.mk-page {
  width: 100%;
  max-width: 100vw;
  margin: 0;
  padding: 0;
  background: #f4f6f9;
  color: #101722;
  overflow-x: hidden;
}

.mk-page::before {
  display: none;
}

.mk-topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) auto;
  align-items: center;
  gap: 28px;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 0;
  background: rgba(5, 11, 20, 0.48);
  padding: 24px clamp(28px, 5vw, 88px);
  box-shadow: none;
  backdrop-filter: blur(14px);
}

.mk-logo {
  width: auto;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.mk-logo img {
  width: 178px;
  height: auto;
  filter: brightness(0) invert(1) drop-shadow(0 10px 24px rgba(0, 0, 0, 0.2));
}

.mk-nav {
  display: flex;
  justify-content: center;
  gap: clamp(22px, 4vw, 64px);
}

.mk-nav a {
  position: relative;
  color: rgba(255, 255, 255, 0.86);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0;
  text-decoration: none;
}

.mk-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -12px;
  height: 2px;
  background: #ffffff;
  opacity: 0;
  transform: scaleX(0.4);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.mk-nav a:hover {
  color: #ffffff;
}

.mk-nav a:hover::after {
  opacity: 1;
  transform: scaleX(1);
}

.mk-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mk-btn {
  min-height: 44px;
  border-radius: 999px;
  padding: 0 20px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0;
  text-decoration: none;
  transition: transform 0.18s ease, border-color 0.18s ease, background-color 0.18s ease, color 0.18s ease;
}

.mk-btn:hover {
  transform: translateY(-1px);
}

.mk-btn-primary {
  border-color: #ffffff;
  background: #ffffff;
  color: #07111f;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.16);
}

.mk-btn-primary:hover {
  border-color: #dbe8ff;
  background: #dbe8ff;
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.2);
}

.mk-btn-ghost {
  border-color: rgba(255, 255, 255, 0.38);
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
}

.mk-btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.14);
}

.mk-hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 760px;
  margin: 0;
  border: 0;
  border-radius: 0;
  padding: 150px clamp(28px, 8vw, 128px) 96px;
  background:
    linear-gradient(90deg, rgba(4, 12, 24, 0.9) 0%, rgba(5, 18, 36, 0.78) 46%, rgba(5, 25, 48, 0.36) 100%),
    radial-gradient(760px 460px at 78% 35%, rgba(73, 152, 255, 0.34), transparent 72%),
    linear-gradient(135deg, #07111f 0%, #12304f 48%, #d8e7f8 100%);
  box-shadow: none;
  overflow: hidden;
}

.mk-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 82px 82px;
  mask-image: linear-gradient(90deg, black 0%, transparent 82%);
  pointer-events: none;
}

.mk-hero::after {
  content: "";
  position: absolute;
  right: -14%;
  bottom: -30%;
  width: 68vw;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.48), rgba(91, 166, 255, 0.18) 42%, transparent 70%);
  filter: blur(2px);
}

.mk-hero-copy {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 760px;
  min-width: 0;
}

.mk-eyebrow {
  display: inline-flex;
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  padding: 8px 16px;
  box-shadow: none;
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
}

.mk-hero h1 {
  margin: 28px 0 0;
  max-width: 900px;
  color: #ffffff;
  font-size: clamp(44px, 4.6vw, 76px);
  line-height: 1.08;
  letter-spacing: -0.04em;
  overflow-wrap: normal;
}

.mk-hero h1::first-line {
  color: #ffffff;
}

.mk-sub {
  margin: 26px 0 0;
  max-width: 650px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 18px;
  line-height: 1.78;
}

.mk-hero-actions {
  margin-top: 38px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.mk-hero-visual {
  position: absolute;
  inset: 0;
  z-index: 2;
  min-height: 0;
  overflow: hidden;
  pointer-events: none;
}

.mk-hero-visual img {
  position: absolute;
  right: clamp(-120px, 2vw, 80px);
  top: 50%;
  width: min(58vw, 780px);
  height: auto;
  opacity: 0.48;
  filter: grayscale(1) contrast(1.15) brightness(1.1);
  mix-blend-mode: screen;
  transform: translateY(-42%);
}

.mk-hero-orbit {
  position: absolute;
  right: clamp(-80px, 6vw, 110px);
  top: 50%;
  width: min(58vw, 780px);
  aspect-ratio: 1.55;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  transform: translateY(-50%) rotate(-18deg);
}

.mk-hero-orbit-two {
  width: min(68vw, 940px);
  opacity: 0.54;
  transform: translateY(-50%) rotate(-11deg);
}

.mk-hero-node {
  position: absolute;
  width: 11px;
  height: 11px;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 0 28px rgba(255, 255, 255, 0.84);
}

.mk-hero-node-one {
  right: 20%;
  top: 26%;
}

.mk-hero-node-two {
  right: 9%;
  top: 52%;
}

.mk-hero-node-three {
  right: 34%;
  bottom: 22%;
}

.mk-statement {
  padding: clamp(76px, 10vw, 140px) clamp(28px, 8vw, 128px);
  background: #ffffff;
  text-align: center;
}

.mk-statement p {
  margin: 0;
  color: #4777b9;
  font-size: clamp(22px, 2.6vw, 42px);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.mk-statement h2 {
  margin: 18px auto 0;
  max-width: 1040px;
  color: #101722;
  font-size: clamp(30px, 4.2vw, 66px);
  line-height: 1.16;
  letter-spacing: -0.045em;
}

.mk-business {
  padding: clamp(72px, 9vw, 124px) clamp(28px, 8vw, 128px);
  background: #eef3f8;
  overflow: hidden;
}

.mk-section-head {
  max-width: 760px;
}

.mk-section-head span,
.mk-media-copy span {
  display: block;
  margin-bottom: 14px;
  color: #4777b9;
  font-size: 15px;
  font-weight: 900;
}

.mk-section-head h2,
.mk-media-copy h2 {
  margin: 0;
  color: #121a27;
  font-size: clamp(30px, 3.2vw, 52px);
  line-height: 1.18;
  letter-spacing: -0.045em;
}

.mk-section-head p,
.mk-media-copy p {
  max-width: 670px;
  margin: 18px 0 0;
  color: #5d6878;
  font-size: 17px;
  line-height: 1.72;
}

.mk-business-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: #d2dbe6;
  min-width: 0;
  width: 100%;
}

.mk-business-card {
  position: relative;
  overflow: hidden;
  display: block;
  min-height: 320px;
  border: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(248, 251, 255, 0.95)),
    radial-gradient(360px 180px at 100% 0%, rgba(74, 133, 210, 0.16), transparent 65%);
  padding: 30px;
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition: transform 0.18s ease, background-color 0.18s ease;
}

.mk-business-card::before {
  content: "";
  position: absolute;
  right: -8%;
  top: -18%;
  width: 55%;
  height: 78%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(78, 149, 255, 0.13), transparent 68%);
  pointer-events: none;
}

.mk-business-card:hover {
  transform: translateY(-4px);
  background: #ffffff;
}

.mk-business-card:focus-visible {
  position: relative;
  z-index: 2;
  outline: 3px solid rgba(71, 119, 185, 0.42);
  outline-offset: -3px;
}

.mk-business-card > span {
  position: relative;
  z-index: 2;
  color: #8ca1bb;
  font-size: 15px;
  font-weight: 900;
}

.mk-business-card h3 {
  position: relative;
  z-index: 2;
  max-width: 52%;
  margin: 86px 0 0;
  color: #111a28;
  font-size: 24px;
  letter-spacing: -0.035em;
}

.mk-business-card p {
  position: relative;
  z-index: 2;
  max-width: 54%;
  margin: 16px 0 0;
  color: #5a6676;
  font-size: 15px;
  line-height: 1.72;
}

.mk-business-card-art {
  position: absolute;
  z-index: 1;
  right: clamp(14px, 1.9vw, 30px);
  top: clamp(28px, 2.7vw, 42px);
  width: min(46%, 320px);
  height: 225px;
  object-fit: contain;
  object-position: center;
  pointer-events: none;
  opacity: 0.96;
  filter: drop-shadow(0 24px 28px rgba(75, 139, 220, 0.08));
  transition: transform 0.24s ease, opacity 0.24s ease;
}

.mk-business-card:hover .mk-business-card-art {
  transform: translateY(-5px) scale(1.025);
  opacity: 1;
}

.mk-business-slider {
  width: 100%;
  margin-top: 44px;
  overflow: hidden;
  overscroll-behavior-x: none;
}

.mk-business-track {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: 200%;
  transform: translate3d(0, 0, 0);
  transition: transform 0.78s cubic-bezier(0.18, 1.28, 0.28, 1);
  will-change: transform;
}

.mk-business-slider.is-detail .mk-business-track {
  transform: translate3d(-50%, 0, 0);
}

.mk-business-detail {
  min-width: 0;
  width: 100%;
  min-height: 561px;
  display: grid;
  grid-template-columns: minmax(280px, 0.86fr) minmax(0, 1.14fr);
  align-items: center;
  gap: clamp(34px, 6vw, 88px);
  border-left: 1px solid #d2dbe6;
  background:
    radial-gradient(620px 320px at 82% 18%, rgba(71, 119, 185, 0.14), transparent 64%),
    linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
  padding: clamp(34px, 6vw, 84px);
}

.mk-business-detail-copy {
  min-width: 0;
}

.mk-business-detail-copy > span {
  display: block;
  margin-top: 34px;
  color: #4777b9;
  font-size: 15px;
  font-weight: 900;
}

.mk-business-detail h3 {
  max-width: 900px;
  margin: 18px 0 0;
  color: #101722;
  font-size: clamp(32px, 3.35vw, 58px);
  line-height: 1.08;
  letter-spacing: -0.055em;
}

.mk-business-detail p {
  max-width: 760px;
  margin: 18px 0 0;
  color: #4f5e70;
  font-size: clamp(15px, 1.05vw, 18px);
  line-height: 1.78;
}

.mk-business-detail-visual {
  position: relative;
  min-height: 420px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(71, 119, 185, 0.16);
  background:
    radial-gradient(560px 300px at 50% 48%, rgba(71, 119, 185, 0.14), transparent 72%),
    linear-gradient(145deg, #f5faff 0%, #ffffff 58%, #ecf4ff 100%);
  overflow: hidden;
}

.mk-business-detail-art {
  position: relative;
  z-index: 1;
  display: block;
  width: min(96%, 640px);
  max-height: 390px;
  object-fit: contain;
  filter: drop-shadow(0 28px 36px rgba(75, 139, 220, 0.1));
}

.mk-business-back {
  align-self: flex-start;
  min-height: 40px;
  border: 1px solid rgba(71, 119, 185, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: #1a457b;
  padding: 0 18px;
  font-weight: 900;
  cursor: pointer;
  transition: transform 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
}

.mk-business-back::before {
  content: "<";
  margin-right: 10px;
}

.mk-business-back:hover {
  transform: translateX(-3px);
  border-color: rgba(71, 119, 185, 0.5);
  background: #ffffff;
}

.mk-business-detail-meta {
  display: grid;
  gap: 5px;
  max-width: 420px;
  margin-top: 56px;
  border-top: 1px solid #d7e0ea;
  padding-top: 22px;
}

.mk-business-detail-meta strong {
  color: #152033;
  font-size: 16px;
}

.mk-business-detail-meta small {
  color: #7a8798;
  font-size: 13px;
}

.mk-media {
  display: grid;
  grid-template-columns: minmax(300px, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(36px, 7vw, 96px);
  padding: clamp(72px, 9vw, 124px) clamp(28px, 8vw, 128px);
  background: #ffffff;
}

.mk-text-link {
  display: inline-flex;
  align-items: center;
  margin-top: 30px;
  color: #0d4c93;
  font-weight: 900;
  text-decoration: none;
}

.mk-text-link::after {
  content: "";
  width: 32px;
  height: 1px;
  margin-left: 12px;
  background: currentColor;
}

.mk-news-list {
  display: flex;
  flex-direction: column;
  border-top: 2px solid #111a28;
}

.mk-news-list a {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr) 118px;
  gap: 22px;
  align-items: center;
  border-bottom: 1px solid #dbe2ea;
  padding: 24px 0;
  color: inherit;
  text-decoration: none;
}

.mk-news-list span {
  color: #4777b9;
  font-size: 13px;
  font-weight: 900;
}

.mk-news-list strong {
  min-width: 0;
  color: #182232;
  font-size: 18px;
  line-height: 1.45;
}

.mk-news-list time {
  color: #778395;
  font-size: 14px;
  text-align: right;
}

.mk-testimonials {
  overflow-x: hidden;
  background: #f3f5f8;
  padding: clamp(72px, 9vw, 120px) clamp(28px, 8vw, 128px);
  color: #262a31;
}

.mk-testimonial-head {
  display: grid;
  gap: 22px;
  justify-items: start;
}

.mk-testimonial-head > span {
  color: #4777b9;
  font-size: 14px;
  font-weight: 900;
}

.mk-testimonial-head h2 {
  margin: 0;
  color: #2b2f35;
  font-size: clamp(34px, 4.2vw, 56px);
  line-height: 1.2;
  letter-spacing: -0.04em;
}

.mk-testimonial-head a {
  display: inline-flex;
  align-items: center;
  color: #6c7480;
  font-size: 16px;
  font-weight: 800;
  text-decoration: none;
}

.mk-testimonial-head a::after {
  content: ">";
  margin-left: 10px;
  color: #9aa3ae;
  font-size: 22px;
}

.mk-testimonial-marquee {
  --testimonial-gap: clamp(20px, 2.4vw, 32px);
  overflow: hidden;
  scroll-behavior: auto;
  width: calc(100% + clamp(28px, 8vw, 128px));
  margin-top: clamp(56px, 7vw, 86px);
  margin-right: calc(clamp(28px, 8vw, 128px) * -1);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.mk-testimonial-track {
  display: flex;
  width: max-content;
  gap: 0;
  min-width: max-content;
}

.mk-testimonial-set {
  display: flex;
  flex: 0 0 auto;
  gap: var(--testimonial-gap);
  padding-right: var(--testimonial-gap);
}

.mk-testimonial-card {
  position: relative;
  overflow: hidden;
  flex: 0 0 clamp(320px, 23vw, 470px);
  min-height: 360px;
  border: 1px solid rgba(214, 221, 232, 0.9);
  border-radius: 24px;
  background: #eef2f6;
  box-shadow: 0 22px 46px rgba(38, 42, 49, 0.07);
}

.mk-testimonial-card.is-slate {
  background: linear-gradient(135deg, #edf2f6, #dde5ec);
}

.mk-testimonial-card.is-mist {
  background: linear-gradient(135deg, #eff5ef, #dce9dc);
}

.mk-testimonial-card.is-graphite {
  background: linear-gradient(135deg, #e9eef2, #d4dce3);
}

.mk-testimonial-card.is-pearl {
  background: linear-gradient(135deg, #f5f5f6, #e3e5e9);
}

.mk-testimonial-logo {
  position: absolute;
  left: 30px;
  top: 26px;
  color: rgba(41, 46, 55, 0.42);
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.mk-testimonial-person {
  position: absolute;
  right: 3%;
  bottom: 0;
  width: 62%;
  max-width: 286px;
  height: 86%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 1;
  pointer-events: none;
}

.mk-testimonial-person img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
  filter:
    drop-shadow(0 20px 24px rgba(29, 36, 46, 0.2))
    saturate(0.98);
}

.mk-testimonial-copy {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 8px;
  row-gap: 3px;
  align-items: baseline;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.58) 32%, rgba(255, 255, 255, 0.78));
  padding: 112px 26px 18px;
}

.mk-testimonial-copy p {
  grid-column: 1 / -1;
  margin: 0 0 8px;
  color: #303741;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.58;
}

.mk-testimonial-copy strong {
  grid-column: 1;
  color: #1f2630;
  font-size: 14px;
  font-weight: 900;
}

.mk-testimonial-copy span {
  grid-column: 2;
  color: #6f7885;
  font-size: 12px;
  font-weight: 700;
}

.mk-subscription {
  overflow-x: hidden;
  background:
    radial-gradient(900px 460px at 50% 0%, rgba(71, 119, 185, 0.1), transparent 64%),
    #ffffff;
  padding: clamp(70px, 9vw, 120px) clamp(28px, 8vw, 128px);
  color: #111827;
}

.mk-subscription-head {
  display: grid;
  justify-items: start;
  text-align: left;
}

.mk-subscription-head > span {
  color: #4777b9;
  font-size: 14px;
  font-weight: 900;
}

.mk-subscription-head h2 {
  margin: 14px 0 12px;
  color: #111827;
  font-size: clamp(34px, 4.2vw, 56px);
  line-height: 1.06;
  letter-spacing: -0.03em;
}

.mk-subscription-head p {
  margin: 0;
  max-width: 860px;
  color: #687386;
  font-size: clamp(16px, 1.4vw, 20px);
  line-height: 1.65;
}

.mk-billing-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 28px;
  border: 1px solid #d5dde8;
  border-radius: 12px;
  background: #f5f7fb;
  padding: 5px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.84);
}

.mk-billing-toggle button {
  min-width: 104px;
  min-height: 46px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #667085;
  font-size: 16px;
  font-weight: 900;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.mk-billing-toggle button.is-active {
  background: #ffffff;
  color: #172033;
  box-shadow: 0 8px 22px rgba(23, 32, 51, 0.1);
}

.mk-billing-toggle span {
  display: inline-flex;
  margin-left: 4px;
  border-radius: 6px;
  background: #d9f7e7;
  padding: 4px 7px;
  color: #047857;
  font-size: 13px;
}

.mk-plan-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(22px, 2.6vw, 34px);
  margin-top: clamp(54px, 7vw, 86px);
  align-items: stretch;
}

.mk-plan-card {
  position: relative;
  display: flex;
  min-height: 690px;
  height: 100%;
  flex-direction: column;
  border: 1px solid #dce3ee;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 255, 0.96)),
    #ffffff;
  box-shadow: 0 24px 56px rgba(18, 32, 51, 0.08);
  padding: clamp(28px, 3.1vw, 44px);
}

.mk-plan-card.is-featured {
  border-color: rgba(72, 83, 210, 0.58);
  box-shadow: 0 30px 70px rgba(51, 75, 180, 0.18);
}

.mk-plan-badge {
  position: absolute;
  left: 50%;
  top: -22px;
  transform: translateX(-50%);
  border: 1px solid rgba(72, 83, 210, 0.34);
  border-radius: 9px;
  background: #eef2ff;
  padding: 12px 26px;
  color: #3047a8;
  font-size: 15px;
  white-space: nowrap;
}

.mk-plan-card header {
  min-height: 96px;
  border-bottom: 1px solid #e3e9f2;
  text-align: center;
}

.mk-plan-card h3 {
  margin: 0;
  color: #111827;
  font-size: 28px;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.mk-plan-card header p {
  margin: 12px 0 24px;
  color: #707b8e;
  font-size: 16px;
  line-height: 1.5;
}

.mk-plan-price {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-top: 32px;
}

.mk-plan-price del {
  color: #9aa3b2;
  font-size: 22px;
  font-weight: 900;
}

.mk-plan-price strong {
  color: #111827;
  font-size: clamp(32px, 3vw, 42px);
  letter-spacing: -0.03em;
}

.mk-plan-price span,
.mk-plan-billing {
  color: #697386;
  font-size: 16px;
}

.mk-plan-billing {
  margin: 12px 0 0;
}

.mk-plan-offer {
  margin: 24px 0 0;
  border: 1px solid #c9d2ff;
  border-radius: 9px;
  background: #eef2ff;
  padding: 12px 14px;
  color: #3047a8;
  font-size: 15px;
  font-weight: 900;
  line-height: 1.45;
}

.mk-plan-card ul {
  display: grid;
  gap: 16px;
  margin: 28px 0 30px;
  border-top: 1px solid #e3e9f2;
  padding: 28px 0 0;
  list-style: none;
}

.mk-plan-card li {
  position: relative;
  padding-left: 30px;
  color: #4f5b6d;
  font-size: 16px;
  line-height: 1.4;
}

.mk-plan-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.35em;
  width: 14px;
  height: 8px;
  border-left: 2px solid #6d7df2;
  border-bottom: 2px solid #6d7df2;
  transform: rotate(-45deg);
}

.mk-plan-card:not(.is-featured) li::before {
  border-color: #9aa3b2;
}

.mk-plan-card li.is-primary {
  color: #182232;
  font-weight: 900;
}

.mk-plan-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 56px;
  min-height: 56px;
  margin-top: auto;
  border-radius: 10px;
  border: 1px solid #d6dde8;
  background: #f6f8fb;
  color: #323943;
  font-size: 17px;
  font-weight: 900;
  text-decoration: none;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.mk-plan-card.is-featured .mk-plan-cta {
  border-color: #4f46e5;
  background: #4f46e5;
  color: #ffffff;
}

.mk-plan-cta::after {
  content: ">";
  margin-left: 14px;
  font-size: 20px;
}

.mk-plan-cta:hover {
  transform: translateY(-2px);
  border-color: #c2cad7;
  background: #eef1f6;
  box-shadow: 0 14px 30px rgba(31, 41, 55, 0.1);
}

.mk-plan-card.is-featured .mk-plan-cta:hover {
  border-color: #3f37c9;
  background: #3f37c9;
  box-shadow: 0 16px 32px rgba(79, 70, 229, 0.22);
}

.mk-plan-card small {
  margin-top: 14px;
  color: #8791a1;
  font-size: 14px;
  font-weight: 900;
  text-align: center;
}

.mk-investment {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background:
    radial-gradient(840px 300px at 50% -22%, rgba(91, 55, 162, 0.28), transparent 72%),
    radial-gradient(720px 280px at 12% 38%, rgba(255, 123, 72, 0.08), transparent 70%),
    radial-gradient(760px 320px at 86% 32%, rgba(138, 86, 255, 0.13), transparent 74%),
    linear-gradient(135deg, #030711, #070512 54%, #0d040a);
  padding: 1px;
}

.mk-investment::before {
  content: "";
  position: absolute;
  inset: -10% -6%;
  z-index: 0;
  background:
    linear-gradient(17deg, transparent 7%, rgba(157, 99, 255, 0.14) 7.12%, transparent 7.32%),
    linear-gradient(154deg, transparent 21%, rgba(255, 126, 75, 0.1) 21.12%, transparent 21.32%),
    linear-gradient(29deg, transparent 38%, rgba(117, 197, 255, 0.08) 38.1%, transparent 38.28%),
    linear-gradient(143deg, transparent 68%, rgba(173, 96, 255, 0.14) 68.1%, transparent 68.32%),
    radial-gradient(circle at 11% 24%, rgba(178, 104, 255, 0.52) 0 1px, transparent 4px),
    radial-gradient(circle at 28% 36%, rgba(255, 125, 77, 0.38) 0 1px, transparent 4px),
    radial-gradient(circle at 47% 28%, rgba(124, 205, 255, 0.36) 0 1px, transparent 4px),
    radial-gradient(circle at 68% 40%, rgba(255, 134, 82, 0.36) 0 1px, transparent 4px),
    radial-gradient(circle at 88% 30%, rgba(202, 122, 255, 0.48) 0 1px, transparent 4px);
  opacity: 0.68;
  filter: saturate(1.18) contrast(1.08);
  animation: mkExperienceMicroDrift 17s ease-in-out infinite alternate;
  pointer-events: none;
}

.mk-investment::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(3, 6, 14, 0.08), rgba(9, 4, 18, 0.42)),
    radial-gradient(720px 180px at 50% 0%, rgba(129, 77, 205, 0.14), transparent 74%);
  pointer-events: none;
}

.mk-investment div {
  position: relative;
  z-index: 2;
  min-height: 210px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background:
    linear-gradient(180deg, rgba(11, 17, 31, 0.44), rgba(7, 10, 21, 0.34)),
    radial-gradient(420px 220px at 100% 0%, rgba(130, 86, 255, 0.12), transparent 68%);
  padding: 30px clamp(24px, 4vw, 58px);
  box-shadow: inset 1px 0 rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(2px);
}

.mk-investment span {
  color: rgba(255, 255, 255, 0.64);
  font-size: 15px;
  font-weight: 800;
}

.mk-investment strong {
  margin-top: 12px;
  color: #ffffff;
  font-size: clamp(26px, 3vw, 46px);
  letter-spacing: -0.04em;
}

.mk-faq {
  background: #fafafa;
  padding: clamp(66px, 8vw, 108px) clamp(28px, 8vw, 128px);
  color: #25282d;
}

.mk-faq-head {
  margin-bottom: clamp(34px, 4.8vw, 56px);
}

.mk-faq-head span {
  color: #4777b9;
  font-size: 14px;
  font-weight: 900;
}

.mk-faq h2 {
  margin: 14px 0 14px;
  color: #2a2d31;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.mk-faq-head p {
  margin: 0;
  color: #687386;
  font-size: clamp(15px, 1.2vw, 18px);
  line-height: 1.65;
}

.mk-faq-list {
  border-top: 1px solid #3b3f45;
  border-bottom: 1px solid #3b3f45;
}

.mk-faq-item {
  border-bottom: 1px solid #e3e3e3;
}

.mk-faq-item:last-child {
  border-bottom: 0;
}

.mk-faq-question {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 28px;
  gap: 24px;
  align-items: center;
  width: 100%;
  min-height: 82px;
  border: 0;
  background: transparent;
  color: #1f242b;
  font-size: clamp(17px, 1.45vw, 22px);
  font-weight: 800;
  line-height: 1.35;
  padding: 0;
  text-align: left;
  cursor: pointer;
  transition: color 0.18s ease, transform 0.18s ease;
}

.mk-faq-question:hover {
  color: #4777b9;
}

.mk-faq-question::after {
  content: ">";
  color: #22262c;
  font-size: 26px;
  font-weight: 400;
  line-height: 1;
  text-align: right;
  transform-origin: center;
  transition: transform 0.26s cubic-bezier(0.22, 1, 0.36, 1), color 0.18s ease;
}

.mk-faq-item.is-open .mk-faq-question {
  color: #101722;
}

.mk-faq-item.is-open .mk-faq-question::after {
  color: #4777b9;
  transform: rotate(90deg) translateX(2px);
}

.mk-faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.34s cubic-bezier(0.22, 1, 0.36, 1);
}

.mk-faq-answer > div {
  min-height: 0;
  overflow: hidden;
}

.mk-faq-item.is-open .mk-faq-answer {
  grid-template-rows: 1fr;
}

.mk-faq-answer p {
  max-width: 1100px;
  margin: -2px 64px 28px 0;
  color: #85898f;
  font-size: clamp(15px, 1.12vw, 18px);
  line-height: 1.75;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.22s ease, transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.mk-faq-item.is-open .mk-faq-answer p {
  opacity: 1;
  transform: translateY(0);
}

.mk-experience {
  position: relative;
  overflow: hidden;
  min-height: 360px;
  display: grid;
  place-items: center;
  background:
    radial-gradient(900px 420px at 54% 42%, rgba(69, 52, 126, 0.2), transparent 72%),
    radial-gradient(740px 320px at 18% 24%, rgba(245, 112, 67, 0.08), transparent 72%),
    radial-gradient(760px 340px at 86% 32%, rgba(134, 83, 255, 0.14), transparent 74%),
    linear-gradient(135deg, #030711, #070512 54%, #10050b);
  padding: clamp(68px, 8vw, 106px) clamp(28px, 8vw, 128px);
  color: #f6f8ff;
  isolation: isolate;
}

.mk-experience::before {
  content: "";
  position: absolute;
  inset: -8%;
  z-index: 0;
  background:
    linear-gradient(17deg, transparent 8%, rgba(157, 99, 255, 0.18) 8.14%, transparent 8.34%),
    linear-gradient(154deg, transparent 15%, rgba(255, 126, 75, 0.12) 15.12%, transparent 15.32%),
    linear-gradient(29deg, transparent 31%, rgba(117, 197, 255, 0.1) 31.1%, transparent 31.28%),
    linear-gradient(143deg, transparent 62%, rgba(173, 96, 255, 0.16) 62.1%, transparent 62.32%),
    linear-gradient(22deg, transparent 78%, rgba(255, 125, 72, 0.1) 78.12%, transparent 78.32%),
    radial-gradient(circle at 9% 28%, rgba(178, 104, 255, 0.68) 0 1px, transparent 4px),
    radial-gradient(circle at 18% 38%, rgba(255, 125, 77, 0.5) 0 1px, transparent 4px),
    radial-gradient(circle at 29% 22%, rgba(124, 205, 255, 0.48) 0 1px, transparent 4px),
    radial-gradient(circle at 44% 57%, rgba(177, 116, 255, 0.42) 0 1px, transparent 4px),
    radial-gradient(circle at 61% 26%, rgba(255, 134, 82, 0.46) 0 1px, transparent 4px),
    radial-gradient(circle at 74% 49%, rgba(132, 202, 255, 0.42) 0 1px, transparent 4px),
    radial-gradient(circle at 89% 31%, rgba(202, 122, 255, 0.58) 0 1px, transparent 4px);
  opacity: 0.78;
  filter: saturate(1.16) contrast(1.08);
  transform: translate3d(0, 0, 0) scale(1.02);
  animation: mkExperienceMicroDrift 16s ease-in-out infinite alternate;
  pointer-events: none;
}

.mk-experience::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(circle at 12% 42%, rgba(255, 255, 255, 0.86) 0 1px, transparent 2px),
    radial-gradient(circle at 16% 34%, rgba(186, 118, 255, 0.92) 0 2px, transparent 6px),
    radial-gradient(circle at 24% 31%, rgba(255, 127, 77, 0.76) 0 2px, transparent 6px),
    radial-gradient(circle at 38% 27%, rgba(128, 206, 255, 0.66) 0 2px, transparent 6px),
    radial-gradient(circle at 51% 52%, rgba(179, 114, 255, 0.66) 0 2px, transparent 6px),
    radial-gradient(circle at 66% 35%, rgba(255, 138, 82, 0.64) 0 2px, transparent 6px),
    radial-gradient(circle at 78% 48%, rgba(122, 202, 255, 0.62) 0 2px, transparent 6px),
    radial-gradient(circle at 87% 36%, rgba(203, 122, 255, 0.72) 0 2px, transparent 6px),
    linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent),
    linear-gradient(180deg, rgba(2, 4, 10, 0.18), transparent 44%, rgba(2, 4, 10, 0.28));
  opacity: 0.74;
  mix-blend-mode: screen;
  animation: mkExperienceSparkBreath 5.8s ease-in-out infinite alternate;
  pointer-events: none;
}

.mk-experience-copy {
  position: relative;
  z-index: 4;
  display: grid;
  justify-items: center;
  text-align: center;
}

.mk-experience h2 {
  margin: 0;
  color: #f8fbff;
  font-size: clamp(30px, 3.5vw, 48px);
  line-height: 1.28;
  letter-spacing: -0.04em;
  font-weight: 800;
  text-shadow:
    0 2px 18px rgba(0, 0, 0, 0.62),
    0 0 28px rgba(154, 121, 255, 0.18);
}

.mk-experience-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
  margin-top: clamp(28px, 3.6vw, 44px);
}

.mk-experience-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 210px;
  min-height: 56px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 800;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.mk-experience-actions a::before {
  margin-right: 9px;
  font-weight: 900;
}

.mk-experience-primary {
  background: linear-gradient(135deg, #111827, #5c626b);
  color: #ffffff;
  box-shadow: 0 18px 42px rgba(17, 24, 39, 0.24);
}

.mk-experience-primary::before {
  content: "*";
}

.mk-hero-experience-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 221px;
  min-height: 57px;
  border-radius: 999px;
  color: #ffffff;
  font-size: 17px;
  font-weight: 900;
  letter-spacing: 0;
  text-decoration: none;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    background-color 0.18s ease;
}

.mk-hero-experience-cta::before {
  margin-right: 11px;
  font-size: 17px;
  font-weight: 900;
  line-height: 1;
}

.mk-hero-experience-cta:hover {
  transform: translateY(-3px);
}

.mk-experience-secondary {
  border: 2px solid #4f5560;
  background: rgba(255, 255, 255, 0.62);
  color: #333840;
}

.mk-experience-secondary::before {
  content: "↓";
}

.mk-experience-actions a:hover {
  transform: translateY(-3px);
}

.mk-experience-orb {
  display: none;
}

.mk-experience-orb::before,
.mk-experience-orb::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  background:
    linear-gradient(90deg, transparent, rgba(186, 119, 255, 0.82), rgba(255, 130, 73, 0.34), transparent);
  box-shadow: 0 0 22px rgba(184, 116, 255, 0.46);
  opacity: 0.72;
  transform-origin: left center;
}

.mk-experience-orb::before {
  left: 45%;
  top: 46%;
  width: clamp(190px, 18vw, 320px);
  height: 1px;
  transform: rotate(-17deg);
  animation: mkExperienceSignalRun 5.8s ease-in-out infinite;
}

.mk-experience-orb::after {
  left: 38%;
  top: 57%;
  width: clamp(140px, 14vw, 250px);
  height: 1px;
  transform: rotate(28deg);
  animation: mkExperienceSignalRun 6.8s ease-in-out infinite reverse;
}

.mk-experience-orb.is-left {
  left: -56px;
  bottom: -86px;
  width: clamp(210px, 22vw, 360px);
  height: clamp(210px, 22vw, 360px);
}

.mk-experience-orb.is-right {
  right: -38px;
  bottom: -74px;
  width: clamp(230px, 24vw, 390px);
  height: clamp(230px, 24vw, 390px);
  animation-delay: -2.4s;
}

.mk-footer {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  margin: 0;
  border-top: 0;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(920px 360px at 52% -12%, rgba(68, 36, 118, 0.28), transparent 72%),
    linear-gradient(135deg, #03050d, #07030f 58%, #0b0410);
  padding: 44px clamp(28px, 8vw, 128px);
}

.mk-footer::before {
  content: "";
  position: absolute;
  inset: -12% -6%;
  z-index: 0;
  background:
    linear-gradient(17deg, transparent 8%, rgba(157, 99, 255, 0.12) 8.14%, transparent 8.34%),
    linear-gradient(154deg, transparent 15%, rgba(255, 126, 75, 0.08) 15.12%, transparent 15.32%),
    linear-gradient(143deg, transparent 62%, rgba(173, 96, 255, 0.12) 62.1%, transparent 62.32%),
    radial-gradient(circle at 9% 28%, rgba(178, 104, 255, 0.42) 0 1px, transparent 4px),
    radial-gradient(circle at 29% 22%, rgba(124, 205, 255, 0.28) 0 1px, transparent 4px),
    radial-gradient(circle at 61% 26%, rgba(255, 134, 82, 0.3) 0 1px, transparent 4px),
    radial-gradient(circle at 89% 31%, rgba(202, 122, 255, 0.38) 0 1px, transparent 4px);
  opacity: 0.52;
  filter: hue-rotate(16deg) saturate(1.24) brightness(0.66);
  animation: mkExperienceMicroDrift 18s ease-in-out infinite alternate;
  pointer-events: none;
}

.mk-footer::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(23, 9, 38, 0.52), rgba(4, 4, 11, 0.82)),
    radial-gradient(640px 180px at 54% 0%, rgba(121, 69, 185, 0.18), transparent 74%);
  pointer-events: none;
}

.mk-footer > * {
  position: relative;
  z-index: 2;
}

.mk-footer-brand img {
  display: block;
  width: 178px;
  height: auto;
  filter: brightness(0) invert(1);
}

.mk-footer-brand p {
  max-width: 470px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.62);
  line-height: 1.7;
}

.mk-footer nav {
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 20px;
  flex-wrap: wrap;
}

.mk-footer a {
  color: rgba(255, 255, 255, 0.76);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.mk-footer a:hover {
  color: #ffffff;
}

.mk-footer small {
  grid-column: 1 / -1;
  color: rgba(255, 255, 255, 0.4);
}

@media (max-width: 1120px) {
  .mk-topbar {
    grid-template-columns: 180px minmax(0, 1fr);
  }

  .mk-actions {
    display: none;
  }

  .mk-nav {
    justify-content: flex-end;
    gap: 24px;
  }

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

  .mk-media {
    grid-template-columns: 1fr;
  }

  .mk-plan-grid {
    grid-template-columns: 1fr;
  }

  .mk-plan-card,
  .mk-plan-card.is-featured {
    min-height: 0;
    transform: none;
  }
}

@media (max-width: 760px) {
  .mk-topbar {
    position: absolute;
    grid-template-columns: 1fr;
    min-width: 0;
    gap: 14px;
    padding: 18px 20px;
    background: rgba(5, 11, 20, 0.62);
  }

  .mk-logo img {
    width: 150px;
  }

  .mk-nav {
    justify-content: flex-start;
    gap: 18px;
    min-width: 0;
    max-width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .mk-nav a {
    flex: 0 0 auto;
    font-size: 14px;
  }

  .mk-hero {
    width: 100%;
    min-height: 690px;
    padding: 144px 22px 56px;
    align-items: flex-start;
  }

  .mk-hero-copy {
    max-width: calc(100vw - 44px);
  }

  .mk-hero h1 {
    max-width: calc(100vw - 44px);
    font-size: clamp(29px, 7.8vw, 34px);
    line-height: 1.12;
    overflow-wrap: anywhere;
  }

  .mk-sub {
    max-width: calc(100vw - 44px);
    font-size: 16px;
    overflow-wrap: anywhere;
  }

  .mk-hero-visual img {
    right: -220px;
    top: 72%;
    width: 620px;
    opacity: 0.36;
  }

  .mk-hero-orbit {
    right: -260px;
    top: 74%;
    width: 660px;
  }

  .mk-statement,
  .mk-business,
  .mk-media,
  .mk-testimonials,
  .mk-subscription,
  .mk-faq,
  .mk-experience {
    padding: 62px 22px;
  }

  .mk-business-grid,
  .mk-investment {
    grid-template-columns: 1fr;
  }

  .mk-business-slider {
    margin-top: 32px;
  }

  .mk-business-card {
    min-height: 315px;
    padding: 24px;
  }

  .mk-business-card h3 {
    max-width: 58%;
    margin-top: 78px;
    font-size: 22px;
  }

  .mk-business-card p {
    max-width: 62%;
    font-size: 14px;
  }

  .mk-business-card-art {
    right: 14px;
    top: 34px;
    width: 42%;
    height: 188px;
    opacity: 0.82;
  }

  .mk-business-detail {
    min-height: 520px;
    grid-template-columns: 1fr;
    padding: 28px 22px;
  }

  .mk-business-detail-visual {
    min-height: 260px;
  }

  .mk-business-detail-art {
    width: min(100%, 420px);
    max-height: 245px;
  }

  .mk-business-detail h3 {
    font-size: clamp(30px, 9vw, 44px);
  }

  .mk-business-detail p {
    font-size: 16px;
  }

  .mk-news-list a {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .mk-news-list time {
    text-align: left;
  }

  .mk-testimonial-head h2 {
    font-size: clamp(31px, 8.6vw, 42px);
  }

  .mk-testimonial-marquee {
    margin-top: 42px;
    width: calc(100% + 22px);
    margin-right: -22px;
    mask-image: linear-gradient(90deg, #000 0%, #000 88%, transparent);
  }

  .mk-testimonial-track {
    animation-duration: 28s;
  }

  .mk-testimonial-card {
    flex-basis: min(310px, calc(100vw - 52px));
    min-height: 330px;
    border-radius: 18px;
  }

  .mk-subscription-head {
    justify-items: start;
    text-align: left;
  }

  .mk-subscription-head h2 {
    font-size: clamp(32px, 10vw, 42px);
  }

  .mk-billing-toggle {
    width: 100%;
  }

  .mk-billing-toggle button {
    flex: 1 1 0;
    min-width: 0;
  }

  .mk-plan-grid {
    margin-top: 44px;
  }

  .mk-plan-card {
    border-radius: 14px;
    padding: 28px 22px;
  }

  .mk-plan-card header {
    min-height: 0;
    text-align: left;
  }

  .mk-plan-price {
    flex-wrap: wrap;
  }

  .mk-faq h2 {
    margin-bottom: 12px;
    font-size: clamp(30px, 8vw, 40px);
  }

  .mk-faq-question {
    min-height: 72px;
    grid-template-columns: minmax(0, 1fr) 24px;
    gap: 14px;
    font-size: 17px;
  }

  .mk-faq-question::after {
    font-size: 26px;
  }

  .mk-faq-answer p {
    margin: -2px 0 26px;
    font-size: 15px;
  }

  .mk-experience {
    min-height: 380px;
  }

  .mk-experience-copy {
    justify-items: start;
    text-align: left;
  }

  .mk-experience h2 {
    font-size: clamp(27px, 7.4vw, 36px);
  }

  .mk-experience-actions {
    justify-content: flex-start;
    width: 100%;
  }

  .mk-experience-actions a {
    width: 100%;
    min-width: 0;
    min-height: 54px;
    font-size: 15px;
  }

  .mk-experience-orb.is-left {
    left: -120px;
    bottom: -120px;
  }

  .mk-experience-orb.is-right {
    right: -140px;
    bottom: -100px;
  }

  .mk-footer {
    grid-template-columns: 1fr;
    padding: 38px 22px;
  }

  .mk-footer nav {
    justify-content: flex-start;
  }
}
/* Final marketing responsive overrides */
@media (max-width: 760px) {
  .mk-hero-copy {
    max-width: min(300px, calc(100vw - 44px));
  }

  .mk-hero h1 {
    max-width: min(300px, calc(100vw - 44px));
    gap: 10px;
    font-size: clamp(21px, 5.3vw, 24px);
    line-height: 1.18;
    overflow-wrap: anywhere;
  }

  .mk-hero h1 span {
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .mk-sub {
    max-width: min(300px, calc(100vw - 44px));
    font-size: 13px;
    overflow-wrap: anywhere;
  }
}

/* Absolute final live hero lock. This must remain after all marketing hero rules. */
/* Final hero copy alignment: true center, then lifted by roughly 3%. */
.mk-hero-copy {
  position: absolute !important;
  left: 50% !important;
  top: 47% !important;
  z-index: 8 !important;
  width: min(1180px, calc(100% - 48px)) !important;
  max-width: none !important;
  min-width: 0 !important;
  display: grid !important;
  justify-items: center !important;
  text-align: center !important;
  transform: translate(-50%, -50%) !important;
}

.mk-hero h1 {
  width: fit-content !important;
  max-width: min(1180px, calc(100vw - 48px)) !important;
  margin: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: clamp(14px, 1.2vw, 22px) !important;
  text-align: center !important;
  letter-spacing: 0 !important;
  text-wrap: balance !important;
}

.mk-hero h1 span {
  display: block !important;
  width: fit-content !important;
  max-width: 100% !important;
  margin-inline: auto !important;
  text-align: center !important;
  text-wrap: balance !important;
  word-break: keep-all !important;
  overflow-wrap: break-word !important;
}

.mk-sub {
  width: min(760px, 100%) !important;
  max-width: 760px !important;
  margin: clamp(28px, 3.2vw, 44px) auto 0 !important;
  text-align: center !important;
}

.mk-hero-actions {
  width: 100% !important;
  justify-content: center !important;
  margin-top: clamp(34px, 4vw, 56px) !important;
}

.mk-hero-test-cta {
  gap: 10px !important;
  padding-left: 18px !important;
}

.mk-hero-test-icon {
  position: relative !important;
  width: 22px !important;
  height: 22px !important;
  display: inline-grid !important;
  place-items: center !important;
  border-radius: 999px !important;
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.95) 0 2px, transparent 3px),
    radial-gradient(circle, rgba(143, 112, 255, 0.28), transparent 66%) !important;
  box-shadow:
    0 0 14px rgba(160, 116, 255, 0.54),
    inset 0 0 0 1px rgba(255, 255, 255, 0.28) !important;
}

.mk-hero-test-icon::before,
.mk-hero-test-icon::after {
  content: "" !important;
  position: absolute !important;
  border-radius: 999px !important;
  pointer-events: none !important;
}

.mk-hero-test-icon::before {
  inset: 3px !important;
  border: 1px solid rgba(255, 255, 255, 0.5) !important;
  border-left-color: rgba(255, 136, 76, 0.85) !important;
  transform: rotate(-22deg) !important;
}

.mk-hero-test-icon::after {
  right: 1px !important;
  top: 4px !important;
  width: 5px !important;
  height: 5px !important;
  background: #ff8a50 !important;
  box-shadow: 0 0 10px rgba(255, 138, 80, 0.8) !important;
}

.mk-hero-test-icon span {
  width: 4px !important;
  height: 4px !important;
  border-radius: 999px !important;
  background: #ffffff !important;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.86) !important;
}

@media (max-width: 760px) {
  .mk-hero-copy {
    top: 48% !important;
    width: min(360px, calc(100% - 44px)) !important;
  }

  .mk-hero h1,
  .mk-sub {
    max-width: 100% !important;
  }
}

.mk-hero {
  position: relative !important;
  isolation: isolate !important;
  overflow: hidden !important;
  min-height: 115vh !important;
  background: #02040a !important;
}

.mk-hero::before {
  content: "" !important;
  display: block !important;
  position: absolute !important;
  inset: -3% !important;
  z-index: 0 !important;
  background: url("/assets/hero_bg-D--qcYRt.png") center / cover no-repeat !important;
  opacity: 0.96 !important;
  transform: translate3d(0, 0, 0) scale(1.015);
  animation: mkHeroBgBreathFinal 18s ease-in-out infinite alternate !important;
  pointer-events: none !important;
}

.mk-hero::after {
  content: "" !important;
  display: block !important;
  position: absolute !important;
  inset: 0 !important;
  z-index: 3 !important;
  background:
    radial-gradient(720px 300px at 50% 43%, rgba(0, 0, 0, 0.54), rgba(0, 0, 0, 0.18) 58%, transparent 78%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.12), transparent 36%, rgba(0, 0, 0, 0.16)) !important;
  opacity: 0.72 !important;
  animation: mkHeroVeilBreathFinal 12s ease-in-out infinite alternate !important;
  pointer-events: none !important;
}

.mk-network-field {
  display: block !important;
  position: absolute !important;
  inset: 0 !important;
  z-index: 4 !important;
  overflow: hidden !important;
  pointer-events: none !important;
}

.mk-network-field::before {
  content: "" !important;
  display: block !important;
  position: absolute !important;
  inset: -8% !important;
  z-index: 1 !important;
  background:
    radial-gradient(circle at 9% 21%, rgba(164, 99, 255, 0.24) 0 1px, transparent 3px),
    radial-gradient(circle at 15% 39%, rgba(255, 125, 68, 0.18) 0 1px, transparent 3px),
    radial-gradient(circle at 34% 16%, rgba(111, 189, 255, 0.18) 0 1px, transparent 3px),
    radial-gradient(circle at 73% 18%, rgba(164, 99, 255, 0.2) 0 1px, transparent 3px),
    radial-gradient(circle at 89% 31%, rgba(180, 111, 255, 0.22) 0 1px, transparent 3px),
    radial-gradient(circle at 96% 47%, rgba(255, 125, 68, 0.24) 0 1px, transparent 3px) !important;
  opacity: 0.76 !important;
  mix-blend-mode: screen !important;
  animation: mkStarfieldDriftFinal 24s ease-in-out infinite alternate !important;
}

.mk-network-field::after {
  content: "" !important;
  display: block !important;
  position: absolute !important;
  inset: 0 !important;
  z-index: 2 !important;
  background:
    radial-gradient(circle at 4% 11%, rgba(176, 112, 255, 0.42) 0 1px, transparent 3px),
    radial-gradient(circle at 11% 31%, rgba(118, 76, 255, 0.34) 0 1px, transparent 3px),
    radial-gradient(circle at 28% 14%, rgba(99, 188, 255, 0.36) 0 1px, transparent 3px),
    radial-gradient(circle at 43% 20%, rgba(255, 137, 75, 0.34) 0 1px, transparent 3px),
    radial-gradient(circle at 68% 12%, rgba(160, 99, 255, 0.28) 0 1px, transparent 3px),
    radial-gradient(circle at 84% 26%, rgba(178, 110, 255, 0.4) 0 1px, transparent 3px),
    radial-gradient(circle at 94% 42%, rgba(255, 126, 70, 0.42) 0 1px, transparent 3px) !important;
  opacity: 0.72 !important;
  mix-blend-mode: screen !important;
  animation: mkConstellationBlinkFinal 4.4s ease-in-out infinite alternate !important;
}

.mk-network-line,
.mk-network-node,
.mk-network-glow,
.mk-dome {
  display: none !important;
}

.mk-synapse-spark,
.mk-synapse-current,
.mk-neuron-flare {
  display: block !important;
  position: absolute !important;
  z-index: 6 !important;
  pointer-events: none !important;
  mix-blend-mode: screen !important;
}

.mk-synapse-spark {
  width: var(--spark-size, 5px) !important;
  height: var(--spark-size, 5px) !important;
  border-radius: 999px !important;
  background: rgb(var(--spark-rgb, 176 116 255)) !important;
  box-shadow:
    0 0 8px rgb(var(--spark-rgb, 176 116 255) / 1),
    0 0 22px rgb(var(--spark-rgb, 176 116 255) / 0.86),
    0 0 52px rgb(var(--spark-rgb, 176 116 255) / 0.44) !important;
  opacity: 0;
  animation: mkSynapseSparkFinal var(--spark-duration, 6.5s) ease-in-out infinite !important;
  animation-delay: var(--spark-delay, 0s) !important;
}

.mk-synapse-spark::before,
.mk-synapse-spark::after {
  content: "" !important;
  position: absolute !important;
  left: 50% !important;
  top: 50% !important;
  height: 1px !important;
  border-radius: 999px !important;
  background: linear-gradient(90deg, transparent, rgb(var(--spark-rgb, 176 116 255) / 0.92), transparent) !important;
  opacity: 0;
  transform: translate(-50%, -50%) rotate(var(--spark-angle, 0deg));
  animation: mkSynapseSparkRayFinal var(--spark-duration, 6.5s) ease-in-out infinite !important;
  animation-delay: var(--spark-delay, 0s) !important;
}

.mk-synapse-spark::before {
  width: 36px !important;
}

.mk-synapse-spark::after {
  width: 24px !important;
  transform: translate(-50%, -50%) rotate(calc(var(--spark-angle, 0deg) + 90deg));
}

.mk-synapse-current {
  width: var(--current-width, 156px) !important;
  height: 2px !important;
  border-radius: 999px !important;
  background: linear-gradient(90deg, transparent, rgb(var(--current-rgb, 176 116 255) / 0.2), rgb(var(--current-rgb, 176 116 255) / 1), rgb(var(--current-rgb, 176 116 255) / 0.16), transparent) !important;
  box-shadow:
    0 0 14px rgb(var(--current-rgb, 176 116 255) / 0.72),
    0 0 34px rgb(var(--current-rgb, 176 116 255) / 0.28) !important;
  opacity: 0;
  transform-origin: left center !important;
  animation: mkSynapseCurrentFinal var(--current-duration, 7.4s) cubic-bezier(0.25, 0, 0.2, 1) infinite !important;
  animation-delay: var(--current-delay, 0s) !important;
}

.mk-neuron-flare {
  width: var(--flare-size, 64px) !important;
  height: var(--flare-size, 64px) !important;
  border-radius: 999px !important;
  background: radial-gradient(circle, rgb(var(--flare-rgb, 176 116 255) / 0.52) 0 8%, rgb(var(--flare-rgb, 176 116 255) / 0.2) 34%, transparent 72%) !important;
  filter: blur(1.2px) !important;
  opacity: 0;
  animation: mkNeuronFlareFinal 9s ease-in-out infinite !important;
  animation-delay: var(--flare-delay, 0s) !important;
}

@media (max-width: 760px) {
  .mk-hero {
    min-height: max(794px, 115vh) !important;
  }
}
