* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #f9f9f8;
  --panel: #ffffff;
  --panel-soft: #fafafa;
  --border: #f0f0f0;
  --border-strong: #e2e2e2;
  --text: #111111;
  --muted: #b8b8b8;
  --muted-2: #8d8d8d;
  --radius: 0.5rem;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  min-height: 100vh;
  font-family: "Poppins", sans-serif;
  font-size: 14px;
  color: var(--text);
}

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

button {
  border: 0;
  background: none;
  cursor: pointer;
}

a,
.link {
  color: var(--text);
  text-decoration: none;
  transition: opacity 0.15s ease;
}

a:hover,
.link:hover {
  opacity: 0.5;
}

svg {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hidden {
  display: none !important;
}

.workspace {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.topbar {
  height: 54px;
  background: #fff;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 32px;
  flex-shrink: 0;
}

.logo {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.3px;
}

.logo span {
  font-weight: 300;
  color: var(--muted);
  margin-left: 2px;
}

.search {
  width: min(320px, 100%);
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f7f7f7;
  border: 1px solid #efefef;
  border-radius: 8px;
  padding: 7px 14px;
  color: var(--muted);
}

.search svg,
.topbar-icon svg,
.nav-icon svg,
.stat-icon svg,
.card-arrow svg,
.card-conn svg {
  stroke-width: 1.5;
}

.search svg {
  width: 13px;
  height: 13px;
  stroke: #ccc;
  flex-shrink: 0;
}

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

.topbar-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: grid;
  place-items: center;
}

.topbar-icon:hover {
  background: #f5f5f5;
}

.topbar-icon svg {
  width: 16px;
  height: 16px;
  stroke: #aaa;
}

.avatar {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: #111;
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 500;
}

.workspace-body {
  display: flex;
  flex: 1;
  min-height: 0;
}

.sidebar {
  width: 56px;
  background: #fff;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 0;
  gap: 2px;
  flex-shrink: 0;
}

.nav-icon {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  transition: background 0.15s ease;
}

.nav-icon:hover {
  background: #f5f5f5;
}

.nav-icon.is-active {
  background: #111;
}

.nav-icon svg {
  width: 16px;
  height: 16px;
  stroke: #ccc;
}

.nav-icon.is-active svg {
  stroke: #fff;
}

.nav-divider {
  width: 20px;
  height: 1px;
  background: var(--border);
  margin: 8px 0;
}

.main {
  flex: 1;
  padding: 28px 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  overflow: auto;
}

.rightbar {
  width: 220px;
  background: #fff;
  border-left: 1px solid var(--border);
  overflow-y: auto;
  flex-shrink: 0;
}

.screen {
  display: none;
  gap: 18px;
}

.screen.is-active {
  display: grid;
}

.dashboard-header,
.module-header,
.panel-row,
.row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}

.greeting,
.module-title {
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.2px;
}

.greeting-sub,
.module-sub,
.date-str,
.micro-note,
.status-text,
.card-sub,
.stat-label,
.card-count {
  font-weight: 300;
}

.greeting-sub,
.module-sub {
  font-size: 13px;
  color: var(--muted);
  margin-top: 3px;
}

.date-str,
.micro-note,
.status-text {
  font-size: 12px;
  color: #c4c4c4;
}

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

.stat-card,
.module-panel,
.app-card,
.task-column,
.task-card,
.record-card,
.slide-card,
.landing-card {
  background: #fff;
  border: 1px solid var(--border);
}

.stat-card {
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.stat-number {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -1px;
}

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

.stat-icon,
.card-icon {
  display: grid;
  place-items: center;
  background: #f7f7f7;
}

.stat-icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
}

.stat-icon svg {
  width: 14px;
  height: 14px;
  stroke: #ccc;
}

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

.app-card {
  border-radius: 16px;
  padding: 22px 20px 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: border-color 0.2s ease;
  text-align: left;
}

.app-card:hover {
  border-color: var(--border-strong);
}

.app-card.is-active {
  border-color: #111;
}

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

.card-icon {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  color: #aaa;
  font-size: 13px;
  font-weight: 500;
}

.card-icon svg {
  width: 15px;
  height: 15px;
  stroke: #aaa;
}

.app-card.is-active .card-icon {
  background: #111;
  color: #fff;
}

.app-card.is-active .card-icon svg {
  stroke: #fff;
}

.card-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #eee;
}

.app-card.is-active .card-dot {
  background: #111;
}

.card-label {
  font-size: 14px;
  font-weight: 500;
}

.card-sub {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}

.card-conn {
  display: flex;
  align-items: center;
  gap: 5px;
  width: fit-content;
  font-size: 11px;
  font-weight: 300;
  color: #ccc;
  background: #fafafa;
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 3px 8px;
}

.card-conn svg {
  width: 10px;
  height: 10px;
  stroke: #ccc;
}

.card-preview {
  flex: 1;
  min-height: 120px;
}

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

.card-count {
  font-size: 12px;
  color: #ccc;
}

.card-arrow {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  border: 1px solid #eee;
  display: grid;
  place-items: center;
}

.card-arrow svg {
  width: 11px;
  height: 11px;
  stroke: #bbb;
  stroke-width: 2;
}

.app-card.is-active .card-arrow {
  background: #111;
  border-color: #111;
}

.app-card.is-active .card-arrow svg {
  stroke: #fff;
}

.module-layout {
  display: grid;
  grid-template-columns: minmax(320px, 420px) minmax(0, 1fr);
  gap: 16px;
}

.row {
  align-items: center;
}

.module-panel,
.task-column {
  border-radius: 16px;
  padding: 18px;
}

.panel-title,
.right-title {
  font-size: 12px;
  font-weight: 500;
  color: #c6c6c6;
  margin-bottom: 12px;
}

.field-stack,
.list-stack,
.slides-stack,
.board,
.activity-list {
  display: grid;
  gap: 10px;
}

.space-md {
  margin-bottom: 14px;
}

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

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

.input,
.check-option {
  width: 100%;
  background: #fafafa;
  border: 1px solid #f0f0f0;
  border-radius: 8px;
  padding: 10px 12px;
  outline: none;
}

.input:focus {
  border-color: #d8d8d8;
  background: #fff;
}

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

.primary-button,
.secondary-button {
  min-height: 38px;
  padding: 0 14px;
  border-radius: 0.5rem;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.primary-button {
  background: #111;
  color: #fff;
  border: 1px solid #111;
}

.secondary-button {
  background: #fff;
  color: #111;
  border: 1px solid #ededed;
}

.secondary-button:hover,
.primary-button:hover {
  opacity: 0.92;
}

.flex-1 {
  flex: 1;
}

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

.palette-grid input {
  min-height: 42px;
  border-radius: 8px;
  border: 1px solid #ececec;
  background: #fff;
  padding: 3px;
}

.chip-wrap,
.record-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid #ededed;
  background: #fafafa;
  font-size: 12px;
}

.chip.is-active {
  background: #111;
  border-color: #111;
  color: #fff;
}

.record-card,
.slide-card,
.landing-card,
.task-card {
  border-radius: 10px;
  padding: 12px;
  background: #fafafa;
}

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

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

.task-column {
  min-height: 320px;
  display: grid;
  align-content: start;
  gap: 10px;
}

.right-panel {
  padding: 20px 16px;
  border-bottom: 1px solid #f5f5f5;
}

.activity-item {
  display: flex;
  gap: 9px;
}

.activity-line {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.activity-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #eee;
  flex-shrink: 0;
}

.activity-dot.is-current {
  background: #111;
}

.activity-stem {
  width: 1px;
  flex: 1;
  min-height: 12px;
  background: #f5f5f5;
  margin: 3px 0;
}

.activity-message {
  font-size: 12px;
  font-weight: 300;
  color: #999;
  line-height: 1.4;
}

.activity-message b {
  font-weight: 500;
  color: #555;
}

.activity-time {
  font-size: 11px;
  font-weight: 300;
  color: #ccc;
  margin-top: 1px;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  text-align: center;
}

.calendar-day-name {
  font-size: 10px;
  font-weight: 300;
  color: #ddd;
  padding-bottom: 4px;
}

.calendar-day {
  font-size: 11px;
  font-weight: 300;
  color: #ccc;
  padding: 4px 2px;
  border-radius: 5px;
}

.calendar-day.is-event {
  color: #aaa;
  font-weight: 500;
}

.calendar-day.is-today {
  background: #111;
  color: #fff;
  font-weight: 500;
}

.calendar-day.is-empty {
  color: transparent;
}

.statusbar {
  height: 30px;
  background: #fff;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 32px;
  flex-shrink: 0;
}

.status-dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: #111;
  margin-right: 6px;
  vertical-align: middle;
}

.crm-rows,
.slides-preview,
.todos-preview,
.landing-preview,
.ai-preview {
  display: grid;
  gap: 6px;
}

.crm-row,
.todo-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 9px;
  background: #fafafa;
  border-radius: 7px;
  border: 1px solid #f5f5f5;
}

.crm-avatar {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: #eee;
  display: grid;
  place-items: center;
  font-size: 8px;
  font-weight: 500;
  color: #999;
  flex-shrink: 0;
}

.crm-lines {
  flex: 1;
}

.line-1,
.line-2,
.slide-line,
.landing-line,
.todo-line {
  border-radius: 2px;
  background: #e8e8e8;
}

.line-1 {
  height: 4px;
  width: 55%;
}

.line-2 {
  height: 3px;
  width: 35%;
  margin-top: 3px;
  background: #f0f0f0;
}

.crm-tag,
.todo-priority {
  font-size: 8px;
  font-weight: 500;
  color: #bbb;
  background: #f0f0f0;
  border-radius: 4px;
  padding: 2px 6px;
}

.slides-preview {
  grid-template-columns: 1fr 1fr;
}

.slide-mini {
  aspect-ratio: 16 / 9;
  background: #f7f7f7;
  border: 1px solid #efefef;
  border-radius: 5px;
  padding: 6px 7px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.slide-line {
  height: 4px;
  width: 55%;
  background: #e0e0e0;
}

.slide-line.small {
  height: 3px;
  width: 75%;
  background: #ebebeb;
}

.slide-line.short {
  width: 45%;
}

.landing-hero,
.landing-columns > div {
  background: #f7f7f7;
  border: 1px solid #efefef;
}

.landing-hero {
  border-radius: 8px;
  padding: 10px 12px;
}

.landing-line {
  height: 5px;
  width: 70%;
  background: #e0e0e0;
  margin-bottom: 5px;
}

.landing-line.small {
  height: 3px;
  width: 90%;
  background: #ebebeb;
}

.landing-line.short {
  width: 60%;
}

.landing-button {
  height: 14px;
  width: 40%;
  border-radius: 4px;
  background: #e0e0e0;
}

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

.landing-columns > div {
  border-radius: 6px;
  padding: 7px 8px;
}

.landing-block {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  background: #e5e5e5;
  margin-bottom: 4px;
}

.todo-check {
  width: 13px;
  height: 13px;
  border-radius: 4px;
  border: 1.5px solid #e0e0e0;
  flex-shrink: 0;
}

.todo-check.is-done {
  background: #111;
  border-color: #111;
  position: relative;
}

.todo-check.is-done::after {
  content: "";
  width: 5px;
  height: 3px;
  border-left: 1.5px solid #fff;
  border-bottom: 1.5px solid #fff;
  position: absolute;
  left: 3px;
  top: 3px;
  transform: rotate(-45deg);
}

.todo-line {
  height: 4px;
  flex: 1;
}

.todo-line.is-done {
  background: #f0f0f0;
  opacity: 0.5;
}

.ai-bubble {
  padding: 7px 10px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 300;
  line-height: 1.4;
}

.ai-bubble.user {
  background: #111;
  color: #fff;
  align-self: end;
  border-radius: 8px 8px 2px 8px;
}

.ai-bubble.bot {
  background: #f5f5f5;
  color: #888;
  border-radius: 8px 8px 8px 2px;
}

.ai-typing {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 7px 10px;
  background: #f5f5f5;
  border-radius: 8px;
  width: fit-content;
}

.ai-typing span {
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: #ccc;
  animation: blink 1.2s infinite;
}

.ai-typing span:nth-child(2) {
  animation-delay: 0.2s;
}

.ai-typing span:nth-child(3) {
  animation-delay: 0.4s;
}

.presentation-preview {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(17, 17, 17, 0.72);
  backdrop-filter: blur(10px);
  padding: 28px;
}

.presentation-preview-shell {
  width: min(1200px, 100%);
  height: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 16px;
}

.presentation-preview-topbar,
.presentation-preview-controls,
.presentation-preview-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.presentation-preview-kicker,
.presentation-preview-count {
  color: rgba(255, 255, 255, 0.86);
  font-size: 12px;
  letter-spacing: 0.04em;
}

.presentation-stage {
  background: #fff;
  border-radius: 28px;
  padding: 24px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.18);
  display: grid;
  place-items: center;
}

.presentation-stage-inner {
  width: min(100%, 1180px);
  min-height: min(68vh, 760px);
  border-radius: 22px;
  padding: 56px;
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 28px;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.32), transparent 28%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.presentation-stage-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(250px, 0.72fr);
  gap: 28px;
  align-items: end;
}

.presentation-stage-copy,
.presentation-stage-side {
  display: grid;
  gap: 18px;
}

.presentation-stage-copy {
  align-content: end;
}

.presentation-stage-side {
  align-content: space-between;
}

.presentation-stage-kicker {
  width: fit-content;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.22);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.presentation-stage-title {
  font-family: var(--presentation-heading-font, "Poppins", sans-serif);
  font-size: clamp(2rem, 4.4vw, 4.8rem);
  line-height: 0.98;
  letter-spacing: -0.05em;
  max-width: 10ch;
  text-wrap: balance;
}

.presentation-stage-body {
  font-family: var(--presentation-body-font, "Poppins", sans-serif);
  font-size: clamp(1rem, 1.7vw, 1.45rem);
  line-height: 1.55;
  max-width: 54ch;
  color: inherit;
  opacity: 0.88;
}

.presentation-stage-card {
  padding: 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
}

.presentation-stage-card-label {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.68;
  margin-bottom: 12px;
}

.presentation-stage-interaction {
  display: inline-flex;
  width: fit-content;
  min-width: 180px;
  padding: 12px 16px;
  border-radius: 999px;
  border: 1px solid currentColor;
  background: rgba(255, 255, 255, 0.18);
  font-size: 13px;
  color: inherit;
}

.presentation-palette-chips,
.presentation-progress {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.presentation-palette-chip {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.36);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06);
}

.presentation-progress {
  gap: 8px;
  align-items: center;
}

.presentation-progress-dot {
  height: 6px;
  flex: 1;
  min-width: 28px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
}

.presentation-progress-dot.is-active {
  background: currentColor;
}

.presentation-preview-controls {
  justify-content: flex-end;
}

.presentation-preview-controls .secondary-button[disabled] {
  opacity: 0.45;
  cursor: default;
}

@keyframes blink {
  0%,
  80%,
  100% {
    opacity: 0.3;
  }
  40% {
    opacity: 1;
  }
}

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

  .module-layout {
    grid-template-columns: 1fr;
  }

  .rightbar {
    display: none;
  }
}

@media (max-width: 820px) {
  .topbar,
  .statusbar {
    padding: 0 16px;
  }

  .main {
    padding: 20px 16px;
  }

  .search {
    display: none;
  }

  .apps-grid,
  .stats,
  .board {
    grid-template-columns: 1fr;
  }

  .presentation-preview {
    padding: 14px;
  }

  .presentation-stage {
    padding: 14px;
    border-radius: 20px;
  }

  .presentation-stage-inner {
    min-height: 60vh;
    padding: 24px;
    gap: 18px;
  }

  .presentation-stage-grid {
    grid-template-columns: 1fr;
    align-items: start;
  }
}
