@import url("https://fonts.googleapis.com/css2?family=Inter:wght@200;300;400;500;600;700&family=Noto+Sans+SC:wght@200;300;400;500;600;700&display=swap");

:root {
  --ink: #23486e;
  --ink-2: #315f8a;
  --paper: #eeece6;
  --paper-2: #f7f5ef;
  --white: #fff;
  --line: rgba(35, 72, 110, 0.15);
  --line-dark: rgba(255, 255, 255, 0.2);
  --muted: #5f6b76;
  --muted-dark: #b8c8d7;
  --blue: #3971d5;
  --blue-soft: #e8edff;
  --green: #2d8f69;
  --green-soft: #e6f2ec;
  --amber: #b77a19;
  --amber-soft: #f7ecd6;
  --red: #c44b4b;
  --red-soft: #fae7e4;
  --sidebar-width: 260px;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 18px 50px rgba(15, 18, 20, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

button {
  cursor: pointer;
}

input,
select,
textarea {
  outline: none;
}

.noise {
  position: fixed;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  opacity: 0.22;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.11'/%3E%3C/svg%3E");
}

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

.sidebar {
  position: fixed;
  z-index: 30;
  inset: 0 auto 0 0;
  width: var(--sidebar-width);
  display: flex;
  flex-direction: column;
  padding: 30px 18px 20px;
  color: #f8fbff;
  background:
    radial-gradient(circle at 28% 0%, rgba(151, 196, 255, 0.25), transparent 36%),
    linear-gradient(180deg, #2d5b86 0%, #23486e 58%, #1d3e61 100%);
  border-right: 1px solid rgba(255, 255, 255, 0.14);
}

.brand {
  display: flex;
  align-items: center;
  gap: 13px;
  min-height: 44px;
  padding: 0 8px;
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  position: relative;
  width: 33px;
  height: 33px;
  flex: 0 0 33px;
}

.brand-mark i {
  position: absolute;
  display: block;
  background: #eef0f3;
}

.brand-mark i:first-child {
  top: 3px;
  left: 0;
  width: 25px;
  height: 6px;
  transform: rotate(-44deg);
  transform-origin: right center;
}

.brand-mark i:nth-child(2) {
  bottom: 4px;
  left: 1px;
  width: 26px;
  height: 6px;
  transform: rotate(44deg);
  transform-origin: right center;
}

.brand-mark i:last-child {
  right: 0;
  top: 13px;
  width: 7px;
  height: 7px;
  background: #5b86ff;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 12px;
  line-height: 1.4;
  letter-spacing: 0.105em;
}

.brand small {
  margin-top: 2px;
  color: var(--muted-dark);
  font-size: 8px;
  letter-spacing: 0.19em;
}

.edition-card {
  position: relative;
  margin: 35px 8px 25px;
  padding: 19px 16px 15px;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.045);
}

.edition-kicker {
  display: block;
  margin-bottom: 11px;
  color: #b6c8d9;
  font-size: 9px;
  letter-spacing: 0.18em;
}

.edition-card > strong {
  display: inline-block;
  margin-right: 8px;
  font-size: 24px;
  line-height: 1;
  letter-spacing: -0.04em;
}

.edition-card > span:not(.edition-kicker) {
  color: #d6e2ee;
  font-size: 11px;
}

.edition-switch {
  width: 100%;
  display: flex;
  justify-content: space-between;
  margin-top: 14px;
  padding: 9px 0 0;
  color: #e2ebf3;
  background: transparent;
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 10px;
}

.edition-menu {
  position: absolute;
  z-index: 10;
  top: calc(100% + 7px);
  left: 0;
  width: 100%;
  overflow: hidden;
  padding: 5px;
  background: #315f8a;
  border: 1px solid var(--line-dark);
  border-radius: 9px;
  box-shadow: 0 18px 35px rgba(0, 0, 0, 0.35);
}

.edition-menu button {
  width: 100%;
  padding: 9px 10px;
  color: #eef5fb;
  background: transparent;
  border: 0;
  border-radius: 6px;
  text-align: left;
  font-size: 11px;
}

.edition-menu button:hover,
.edition-menu button.active {
  color: white;
  background: rgba(255, 255, 255, 0.07);
}

.nav {
  display: grid;
  gap: 4px;
}

.nav-item {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 45px;
  padding: 0 12px;
  color: #c0d0de;
  background: transparent;
  border: 0;
  border-radius: 8px;
  font-size: 12px;
  text-align: left;
  transition: 160ms ease;
}

.nav-item:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.035);
}

.nav-item.active {
  color: white;
  background: rgba(255, 255, 255, 0.08);
}

.nav-item.active::before {
  position: absolute;
  left: -18px;
  width: 3px;
  height: 22px;
  content: "";
  background: #5b86ff;
}

.nav-index {
  color: #93acc2;
  font: 600 9px/1 Inter, sans-serif;
  letter-spacing: 0.08em;
}

.nav-item.active .nav-index {
  color: #6e91f3;
}

.nav-item em {
  margin-left: auto;
  min-width: 20px;
  padding: 3px 6px;
  color: #bfc5c9;
  background: rgba(255, 255, 255, 0.09);
  border-radius: 20px;
  font-size: 8px;
  font-style: normal;
  text-align: center;
}

.sidebar-footer {
  margin-top: auto;
  padding: 0 7px;
}

.storage-state {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 14px;
  color: #d6e4ef;
}

.storage-state .pulse {
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  background: #57be90;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(87, 190, 144, 0.1);
}

.storage-state strong,
.storage-state small {
  display: block;
}

.storage-state strong {
  font-size: 9px;
  font-weight: 500;
}

.storage-state small {
  margin-top: 3px;
  color: #9eb6c9;
  font-size: 8px;
}

.main {
  min-height: 100vh;
  margin-left: var(--sidebar-width);
}

.topbar {
  position: sticky;
  z-index: 20;
  top: 0;
  min-height: 74px;
  display: flex;
  align-items: center;
  padding: 0 clamp(22px, 4vw, 58px);
  background: rgba(238, 236, 230, 0.88);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(17px);
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #8b8e91;
  font-size: 10px;
  letter-spacing: 0.04em;
}

.breadcrumb i {
  color: #c1c2c2;
  font-style: normal;
}

.breadcrumb strong {
  color: #303336;
  font-weight: 600;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.ghost-button,
.primary-button,
.secondary-button,
.danger-button {
  min-height: 36px;
  padding: 0 14px;
  border-radius: 7px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: 150ms ease;
}

.link-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.ghost-button {
  color: #555a5e;
  background: transparent;
  border: 1px solid var(--line);
}

.ghost-button:hover {
  background: rgba(255, 255, 255, 0.5);
  border-color: rgba(17, 19, 21, 0.23);
}

.sidebar .ghost-button {
  color: #f1f6fa;
  border-color: var(--line-dark);
}

.wide {
  width: 100%;
}

.icon-only {
  width: 36px;
  padding: 0;
  font-size: 17px;
}

.primary-button {
  color: white;
  background: var(--ink);
  border: 1px solid var(--ink);
}

.primary-button:hover {
  background: #315f8a;
  transform: translateY(-1px);
}

.primary-button span {
  margin-right: 4px;
  color: #84a2ff;
}

.secondary-button {
  color: var(--blue);
  background: var(--blue-soft);
  border: 1px solid rgba(45, 98, 240, 0.1);
}

.danger-button {
  color: var(--red);
  background: var(--red-soft);
  border: 1px solid rgba(196, 75, 75, 0.12);
}

.menu-button {
  display: none;
  width: 36px;
  height: 36px;
  margin-right: 10px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 7px;
}

.menu-button span {
  display: block;
  width: 14px;
  height: 1px;
  margin: 4px auto;
  background: var(--ink);
}

.view {
  display: none;
  padding: clamp(32px, 5vw, 64px) clamp(22px, 4vw, 58px) 80px;
}

.view.active {
  display: block;
  animation: fade-in 240ms ease both;
}

@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
}

.page-head {
  display: flex;
  align-items: flex-end;
  gap: 30px;
  margin-bottom: 34px;
}

.page-eyebrow {
  display: block;
  margin-bottom: 12px;
  color: var(--blue);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.page-head h1,
.hero h1 {
  margin: 0;
  font-size: clamp(30px, 3.8vw, 54px);
  line-height: 1.05;
  letter-spacing: -0.055em;
}

.page-head p {
  max-width: 500px;
  margin: 0 0 5px auto;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
}

.hero {
  position: relative;
  min-height: 360px;
  overflow: hidden;
  padding: clamp(30px, 5vw, 58px);
  color: white;
  background:
    linear-gradient(118deg, rgba(37, 79, 118, 0.98) 0 50%, rgba(45, 93, 139, 0.72)),
    radial-gradient(circle at 83% 22%, rgba(143, 193, 255, 0.42), transparent 31%),
    linear-gradient(135deg, #356a99, #244c75);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero::after {
  position: absolute;
  z-index: 0;
  right: -80px;
  bottom: -160px;
  width: 560px;
  height: 400px;
  content: "";
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  box-shadow:
    0 0 0 45px rgba(255, 255, 255, 0.018),
    0 0 0 95px rgba(255, 255, 255, 0.015);
  transform: rotate(-12deg);
}

.hero-grid {
  position: absolute;
  z-index: 0;
  inset: 0 0 0 50%;
  opacity: 0.13;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.18) 1px, transparent 1px);
  background-size: 42px 42px;
  transform: perspective(500px) rotateY(-8deg);
  transform-origin: right;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 930px;
}

.hero .page-eyebrow {
  color: #b9d4ff;
}

.hero h1 {
  max-width: 930px;
  font-family: Inter, "Helvetica Neue", Helvetica, "Noto Sans SC", "Microsoft YaHei UI", sans-serif;
  font-size: inherit;
  font-weight: 200;
  line-height: 1;
  letter-spacing: 0;
  font-feature-settings: "ss01", "cv11";
  text-wrap: balance;
}

.hero-title-primary,
.hero-title-promise {
  display: block;
  width: fit-content;
  max-width: 100%;
}

.hero-title-primary {
  color: rgba(255, 255, 255, 0.92);
  font-size: min(3.35vw, 6.1vh);
  font-weight: 300;
  line-height: 1.04;
  letter-spacing: -0.035em;
}

.hero-title-promise {
  position: relative;
  margin-top: 18px;
  color: #ffffff;
  font-size: min(4.05vw, 7.3vh);
  font-weight: 200;
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.hero-title-promise::before {
  position: absolute;
  top: -9px;
  left: 0;
  width: 100%;
  height: 1px;
  content: "";
  background: rgba(255, 255, 255, 0.32);
}

.hero-title-promise em {
  font-style: italic;
  font-weight: 300;
}

.hero-subtitle {
  margin: 18px 0 0;
  color: #f5f9fc;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.7;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin-top: 38px;
  color: #f0f6fb;
  font-size: 10px;
}

.hero-meta span::before {
  display: inline-block;
  width: 4px;
  height: 4px;
  margin: 0 8px 2px 0;
  content: "";
  background: #b9d4ff;
  border-radius: 50%;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 12px 22px 34px;
  position: relative;
  z-index: 4;
}

.decision-strip {
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  overflow: hidden;
  margin: -32px 22px 0;
  background: rgba(247, 245, 239, 0.98);
  border: 1px solid rgba(35, 72, 110, 0.13);
  border-radius: 10px;
  box-shadow: 0 16px 34px rgba(20, 49, 74, 0.1);
}

.decision-strip article {
  min-height: 128px;
  padding: 20px;
  border-right: 1px solid var(--line);
}

.decision-strip article:last-child {
  border-right: 0;
}

.decision-strip span,
.course-overview-copy > span,
.section-heading > span,
.course-modules article > span {
  color: var(--blue);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.decision-strip strong {
  display: block;
  margin-top: 14px;
  font-size: 16px;
  letter-spacing: -0.035em;
}

.decision-strip p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.65;
}

.metric-card,
.panel,
.guest-card,
.material-card,
.review-card {
  background: rgba(247, 245, 239, 0.96);
  border: 1px solid rgba(17, 19, 21, 0.09);
  border-radius: var(--radius-sm);
  box-shadow: 0 10px 30px rgba(18, 21, 23, 0.04);
}

.metric-card {
  min-height: 135px;
  padding: 18px 20px;
}

.metric-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 24px;
  color: #777b7e;
  font-size: 9px;
  letter-spacing: 0.08em;
}

.metric-label i {
  width: 8px;
  height: 8px;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 0 4px var(--green-soft);
}

.metric-value {
  display: flex;
  align-items: baseline;
  gap: 5px;
  margin: 15px 0 13px;
}

.metric-value strong {
  font-size: 36px;
  line-height: 1;
  letter-spacing: -0.065em;
}

.metric-value span {
  color: #898d90;
  font-size: 10px;
}

.progress {
  height: 3px;
  overflow: hidden;
  background: #dfded8;
  border-radius: 10px;
}

.progress span {
  display: block;
  height: 100%;
  background: var(--blue);
  border-radius: inherit;
  transition: width 300ms ease;
}

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

.panel {
  padding: 25px;
}

.panel-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
}

.panel-head h2 {
  margin: 0;
  font-size: 14px;
  letter-spacing: -0.025em;
}

.panel-head p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 9px;
}

.panel-head .panel-action {
  margin-left: auto;
}

.score-ring {
  --value: 0;
  position: relative;
  width: 160px;
  height: 160px;
  flex: 0 0 160px;
  display: grid;
  place-items: center;
  background: conic-gradient(var(--blue) calc(var(--value) * 1%), #deddd7 0);
  border-radius: 50%;
}

.score-ring::after {
  position: absolute;
  width: 126px;
  height: 126px;
  content: "";
  background: var(--paper-2);
  border-radius: 50%;
}

.score-ring > div {
  position: relative;
  z-index: 2;
  text-align: center;
}

.score-ring strong {
  display: block;
  font-size: 38px;
  letter-spacing: -0.07em;
}

.score-ring span {
  color: var(--muted);
  font-size: 9px;
}

.score-layout {
  display: flex;
  align-items: center;
  gap: 38px;
}

.score-breakdown {
  flex: 1;
}

.score-row {
  display: grid;
  grid-template-columns: 1fr 80px 34px;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  font-size: 9px;
}

.score-row:last-child {
  border-bottom: 0;
}

.score-row .progress {
  height: 2px;
}

.score-row strong {
  text-align: right;
}

.next-list {
  display: grid;
}

.next-item {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}

.next-item:last-child {
  border-bottom: 0;
}

.priority {
  display: inline-grid;
  width: 32px;
  height: 22px;
  place-items: center;
  color: var(--blue);
  background: var(--blue-soft);
  border-radius: 4px;
  font: 700 8px/1 Inter, sans-serif;
}

.priority.p0 {
  color: var(--red);
  background: var(--red-soft);
}

.priority.p2 {
  color: #707579;
  background: #e6e5df;
}

.next-item strong {
  display: block;
  overflow: hidden;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.next-item small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 8px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 8px;
  color: #64696c;
  background: #e8e6e0;
  border-radius: 30px;
  font-size: 8px;
  font-weight: 600;
  white-space: nowrap;
}

.tag.done,
.tag.confirmed,
.tag.approved {
  color: var(--green);
  background: var(--green-soft);
}

.tag.blocked,
.tag.absent {
  color: var(--red);
  background: var(--red-soft);
}

.tag.progressing,
.tag.interested,
.tag.printed {
  color: var(--blue);
  background: var(--blue-soft);
}

.tag.pending,
.tag.contacted {
  color: var(--amber);
  background: var(--amber-soft);
}

.filterbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding: 9px;
  background: rgba(255, 255, 255, 0.43);
  border: 1px solid var(--line);
  border-radius: 10px;
}

.filterbar button {
  min-height: 30px;
  padding: 0 12px;
  color: #717579;
  background: transparent;
  border: 0;
  border-radius: 6px;
  font-size: 9px;
}

.filterbar button.active {
  color: white;
  background: var(--ink);
}

.filterbar .filter-meta {
  margin-left: auto;
  padding: 0 7px;
  color: var(--muted);
  font-size: 9px;
}

.task-day {
  overflow: hidden;
  margin-bottom: 10px;
  background: rgba(247, 245, 239, 0.92);
  border: 1px solid var(--line);
  border-radius: 10px;
}

.task-day.today {
  border-color: rgba(45, 98, 240, 0.42);
  box-shadow: inset 3px 0 0 var(--blue);
}

.day-head {
  width: 100%;
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr) auto 20px;
  align-items: center;
  gap: 15px;
  min-height: 64px;
  padding: 0 18px;
  background: transparent;
  border: 0;
  text-align: left;
}

.day-date {
  font-weight: 700;
}

.day-date strong {
  display: block;
  font-size: 17px;
  letter-spacing: -0.04em;
}

.day-date small {
  color: var(--muted);
  font-size: 8px;
  font-weight: 500;
}

.day-head h3 {
  margin: 0;
  font-size: 11px;
}

.day-head p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 8px;
}

.day-stat {
  min-width: 82px;
}

.day-stat span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 8px;
  text-align: right;
}

.day-stat .progress {
  width: 82px;
}

.chevron {
  color: #8b8e90;
  transition: transform 160ms ease;
}

.task-day.open .chevron {
  transform: rotate(180deg);
}

.task-list {
  display: none;
  border-top: 1px solid var(--line);
}

.task-day.open .task-list {
  display: block;
}

.task-row {
  display: grid;
  grid-template-columns: 26px 35px minmax(190px, 1.6fr) minmax(130px, 1fr) 120px 95px;
  align-items: center;
  gap: 10px;
  min-height: 62px;
  padding: 9px 18px;
  border-bottom: 1px solid var(--line);
}

.task-row:last-child {
  border-bottom: 0;
}

.task-row.completed {
  opacity: 0.57;
}

.task-check {
  width: 18px;
  height: 18px;
  display: grid;
  padding: 0;
  place-items: center;
  color: white;
  background: transparent;
  border: 1px solid #b7b9b8;
  border-radius: 4px;
  font-size: 11px;
}

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

.task-title strong {
  display: block;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.45;
}

.task-title small,
.task-standard {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 8px;
  line-height: 1.5;
}

.inline-select,
.inline-input {
  width: 100%;
  min-height: 32px;
  padding: 0 9px;
  background: #efede7;
  border: 1px solid transparent;
  border-radius: 5px;
  font-size: 8px;
}

.inline-input:focus,
.inline-select:focus {
  background: white;
  border-color: rgba(45, 98, 240, 0.45);
}

.add-task {
  width: calc(100% - 30px);
  min-height: 38px;
  margin: 10px 15px 13px;
  color: var(--blue);
  background: var(--blue-soft);
  border: 1px dashed rgba(45, 98, 240, 0.28);
  border-radius: 6px;
  font-size: 9px;
}

.crm-funnel {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  overflow: hidden;
  margin-bottom: 18px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 10px;
}

.cloud-sync-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 12px;
  padding: 15px 17px;
  background: #e3e8ea;
  border: 1px solid rgba(35, 72, 110, 0.15);
  border-radius: 10px;
}

.cloud-sync-panel.connected {
  background: #e4eee9;
  border-color: rgba(45, 143, 105, 0.2);
}

.cloud-sync-copy,
.cloud-sync-actions {
  display: flex;
  align-items: center;
}

.cloud-sync-copy {
  gap: 11px;
}

.cloud-sync-copy strong,
.cloud-sync-copy small {
  display: block;
}

.cloud-sync-copy strong {
  font-size: 11px;
}

.cloud-sync-copy small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 8px;
  line-height: 1.45;
}

.cloud-dot {
  width: 9px;
  height: 9px;
  flex: 0 0 9px;
  background: #92a0aa;
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(146, 160, 170, 0.13);
}

.connected .cloud-dot {
  background: var(--green);
  box-shadow: 0 0 0 5px rgba(45, 143, 105, 0.12);
}

.cloud-sync-actions {
  gap: 7px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.funnel-step {
  position: relative;
  min-height: 76px;
  padding: 16px 18px;
  border-right: 1px solid var(--line);
}

.funnel-step:last-child {
  border-right: 0;
}

.funnel-step span,
.funnel-step strong {
  display: block;
}

.funnel-step span {
  color: var(--muted);
  font-size: 8px;
}

.funnel-step strong {
  margin-top: 7px;
  font-size: 23px;
  letter-spacing: -0.05em;
}

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

.guest-card {
  overflow: hidden;
}

.guest-head {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 17px;
  border-bottom: 1px solid var(--line);
}

.seat {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: white;
  background: var(--ink);
  border-radius: 7px;
  font: 600 11px/1 Inter, sans-serif;
}

.seat.reserve {
  color: var(--ink);
  background: #deddd7;
}

.guest-name {
  width: 100%;
  padding: 0;
  background: transparent;
  border: 0;
  font-size: 13px;
  font-weight: 700;
}

.guest-company {
  width: 100%;
  margin-top: 3px;
  padding: 0;
  color: var(--muted);
  background: transparent;
  border: 0;
  font-size: 8px;
}

.guest-cloud-note {
  display: block;
  max-width: 230px;
  overflow: hidden;
  margin-top: 4px;
  color: #4f7eaa;
  font-size: 7px;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.field {
  min-width: 0;
}

.field.full {
  grid-column: 1 / -1;
}

.field label {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 8px;
  letter-spacing: 0.04em;
}

.field input,
.field select,
.field textarea,
.modal input,
.modal select,
.modal textarea {
  width: 100%;
  min-height: 36px;
  padding: 8px 10px;
  background: #efede7;
  border: 1px solid transparent;
  border-radius: 6px;
  font-size: 9px;
}

.field textarea,
.modal textarea {
  min-height: 70px;
  resize: vertical;
  line-height: 1.55;
}

.field input:focus,
.field select:focus,
.field textarea:focus,
.modal input:focus,
.modal select:focus,
.modal textarea:focus {
  background: white;
  border-color: rgba(45, 98, 240, 0.45);
}

.checks {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.engagement-score {
  grid-column: 1 / -1;
  padding: 14px;
  background: rgba(57, 113, 213, 0.055);
  border: 1px solid rgba(57, 113, 213, 0.14);
  border-radius: 7px;
}

.cloud-readiness-note {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  padding: 11px 13px;
  color: #46637d;
  background: rgba(79, 126, 170, 0.07);
  border: 1px solid rgba(79, 126, 170, 0.13);
  border-radius: 7px;
  font-size: 8px;
  line-height: 1.55;
}

.cloud-readiness-note strong {
  width: 100%;
  color: var(--ink);
  font-size: 9px;
}

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

.engagement-head > span strong,
.engagement-head > span small {
  display: block;
}

.engagement-head > span strong {
  font-size: 11px;
}

.engagement-head > span small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 8px;
}

.engagement-head > strong {
  color: var(--blue);
  font-size: 20px;
  letter-spacing: -0.04em;
}

.engagement-head > strong small {
  margin-left: 3px;
  font-size: 8px;
  font-weight: 500;
}

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

.engagement-fields label span {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 8px;
}

.engagement-fields input {
  width: 100%;
  min-height: 32px;
  padding: 6px 8px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 5px;
  font-size: 10px;
}

.check-pill {
  position: relative;
}

.check-pill input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.check-pill span {
  display: inline-flex;
  min-height: 29px;
  align-items: center;
  padding: 0 9px;
  color: #777b7e;
  background: #ebe9e3;
  border: 1px solid transparent;
  border-radius: 5px;
  font-size: 8px;
}

.check-pill input:checked + span {
  color: var(--green);
  background: var(--green-soft);
  border-color: rgba(45, 143, 105, 0.17);
}

.materials-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  padding: 16px 19px;
  color: #eef5fb;
  background: var(--ink);
  border-radius: 10px;
}

.materials-toolbar strong {
  color: white;
  font-size: 11px;
}

.materials-toolbar span {
  color: #d2e0ec;
  font-size: 8px;
}

.materials-toolbar .progress {
  width: min(240px, 25vw);
  margin-left: auto;
  background: rgba(255, 255, 255, 0.13);
}

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

.material-card {
  overflow: hidden;
}

.material-visual {
  position: relative;
  min-height: 220px;
  overflow: hidden;
  color: white;
  background: #2a557f;
}

.material-visual::before {
  position: absolute;
  inset: 0;
  content: "";
  opacity: 0.28;
  background:
    linear-gradient(120deg, transparent 50%, rgba(91, 134, 255, 0.38)),
    repeating-linear-gradient(90deg, transparent 0 37px, rgba(255, 255, 255, 0.05) 38px);
}

.material-visual.sand {
  color: var(--ink);
  background: #ddd8cd;
}

.material-visual.blue {
  background: #326290;
}

.material-visual.silver {
  color: var(--ink);
  background: linear-gradient(135deg, #f4f3ef, #cacdd0);
}

.material-visual.lime {
  color: #17344e;
  background: linear-gradient(135deg, #c8ff55, #94e840);
}

.material-visual.orange {
  color: #fffaf0;
  background: linear-gradient(135deg, #ff963f, #e95c31);
}

.course-overview {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.55fr);
  overflow: hidden;
  margin-bottom: 14px;
  color: white;
  background:
    radial-gradient(circle at 75% 0%, rgba(184, 255, 53, 0.18), transparent 32%),
    linear-gradient(128deg, #2f608c, #23486e);
  border-radius: 12px;
}

.course-overview-copy {
  padding: clamp(30px, 5vw, 54px);
}

.course-overview-copy > span {
  color: #cce0ff;
}

.course-overview-copy h2 {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin: 24px 0 14px;
  font-size: clamp(25px, 3.5vw, 48px);
  font-weight: 300;
  line-height: 1.08;
  letter-spacing: -0.055em;
}

.course-overview-copy h2 em {
  margin-right: -7px;
  color: #b8ff35;
  font-size: 9px;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0;
  transform: translateY(-11px);
}

.course-overview-copy h2 i {
  color: rgba(255, 255, 255, 0.35);
  font-size: 18px;
  font-style: normal;
}

.course-overview-copy p {
  max-width: 660px;
  margin: 0;
  color: #d8e6f2;
  font-size: 12px;
  line-height: 1.8;
}

.course-facts {
  display: grid;
  grid-template-rows: repeat(3, 1fr);
  border-left: 1px solid rgba(255, 255, 255, 0.15);
}

.course-facts div {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 24px 30px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.course-facts div:last-child {
  border-bottom: 0;
}

.course-facts span {
  color: #b8cfe2;
  font-size: 9px;
}

.course-facts strong {
  margin-top: 7px;
  font-size: 18px;
  font-weight: 500;
}

.course-output-panel {
  padding: 24px;
  margin-bottom: 14px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 10px;
}

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

.course-takeaways article {
  display: grid;
  grid-template-columns: 35px minmax(0, 1fr);
  align-items: start;
  gap: 12px;
  min-height: 82px;
  padding: 15px;
  background: #ecebe5;
  border-radius: 7px;
}

.course-takeaways span {
  display: grid;
  width: 35px;
  height: 35px;
  place-items: center;
  color: white;
  background: var(--blue);
  border-radius: 50%;
  font-size: 9px;
}

.course-takeaways strong {
  font-size: 11px;
  line-height: 1.65;
}

.course-schedule {
  margin: 48px 0;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.7fr);
  align-items: end;
  gap: 20px;
  margin-bottom: 22px;
}

.section-heading > span {
  grid-column: 1 / -1;
}

.section-heading h2 {
  margin: 0;
  font-size: 30px;
  letter-spacing: -0.05em;
}

.section-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
}

.course-session-list {
  border-top: 1px solid var(--ink);
}

.course-session-list article {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr) minmax(170px, 0.45fr);
  align-items: start;
  gap: 22px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.course-session-list time {
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
}

.course-session-list article > div > span {
  color: var(--muted);
  font-size: 8px;
  letter-spacing: 0.12em;
}

.course-session-list h3 {
  margin: 5px 0 7px;
  font-size: 15px;
}

.course-session-list p {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.7;
}

.course-session-list article > strong {
  padding-left: 20px;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.65;
  border-left: 1px solid var(--line);
}

.course-session-list article > strong small {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 8px;
  font-weight: 500;
}

.course-modules {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.course-modules article {
  min-height: 280px;
  padding: 26px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 10px;
}

.course-modules h3 {
  margin: 38px 0 12px;
  font-size: 19px;
  letter-spacing: -0.04em;
}

.course-modules p {
  min-height: 68px;
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.75;
}

.course-modules article > div {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.course-modules em {
  padding: 6px 8px;
  color: var(--blue);
  background: var(--blue-soft);
  border-radius: 4px;
  font-size: 8px;
  font-style: normal;
}

.course-products {
  margin: 48px 0 14px;
}

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

.course-product-grid > article {
  min-height: 238px;
  padding: 28px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 10px;
}

.course-product-grid > article > span {
  color: var(--blue);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.course-product-grid > article > strong {
  display: block;
  margin-top: 28px;
  color: var(--blue);
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 400;
  letter-spacing: -0.06em;
}

.course-product-grid h3 {
  margin: 10px 0;
  font-size: 17px;
  letter-spacing: -0.035em;
}

.course-product-grid > article > p {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.75;
}

.course-product-grid .conversion-card {
  grid-column: 1 / -1;
  min-height: 0;
  color: white;
  background:
    radial-gradient(circle at 90% 0%, rgba(184, 255, 53, 0.12), transparent 30%),
    linear-gradient(128deg, #2f608c, #23486e);
  border-color: transparent;
}

.course-product-grid .conversion-card > span {
  color: #cce0ff;
}

.conversion-card h3 {
  margin: 14px 0 18px;
  font-size: 20px;
}

.conversion-card > div {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.conversion-card p {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 12px;
  margin: 0;
  color: #dce8f2;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 6px;
  font-size: 10px;
  line-height: 1.6;
}

.conversion-card p em {
  color: #b8ff35;
  font-size: 9px;
  font-style: normal;
  font-weight: 700;
}

.course-preparation {
  padding: 24px;
}

.course-prep-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.course-prep-list p {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 56px;
  padding: 12px;
  margin: 0;
  color: var(--muted);
  background: #ecebe5;
  border-radius: 6px;
  font-size: 10px;
  line-height: 1.55;
}

.course-prep-list p span {
  color: var(--blue);
  font-size: 9px;
  font-weight: 700;
}

.material-art {
  position: absolute;
  z-index: 2;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 25px;
}

.material-art .micro {
  font-size: 7px;
  letter-spacing: 0.16em;
  opacity: 0.66;
}

.material-art h3 {
  max-width: 90%;
  margin: auto 0 10px;
  font-size: clamp(20px, 2.4vw, 31px);
  line-height: 1.03;
  letter-spacing: -0.055em;
}

.material-art p {
  margin: 0;
  font-size: 8px;
  opacity: 0.7;
}

.material-art .art-number {
  position: absolute;
  right: 18px;
  bottom: 10px;
  font-size: 72px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.08em;
  opacity: 0.08;
}

.uploaded-preview {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.material-info {
  padding: 17px;
}

.material-title-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.material-title-row h3 {
  margin: 0;
  font-size: 11px;
}

.material-title-row .tag {
  margin-left: auto;
}

.material-info dl {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 15px 0;
}

.material-info dt {
  margin-bottom: 3px;
  color: var(--muted);
  font-size: 7px;
}

.material-info dd {
  overflow: hidden;
  margin: 0;
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.material-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.material-actions button {
  min-height: 31px;
  padding: 0 6px;
  color: #64696d;
  background: #eceae4;
  border: 0;
  border-radius: 5px;
  font-size: 8px;
}

.material-actions button:first-child {
  color: var(--blue);
  background: var(--blue-soft);
}

.timeline {
  position: relative;
  padding-left: 116px;
}

.timeline::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 88px;
  width: 1px;
  content: "";
  background: #c9c9c4;
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 160px;
  gap: 20px;
  min-height: 98px;
  padding: 17px 20px;
  margin-bottom: 8px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.timeline-item::before {
  position: absolute;
  top: 28px;
  left: -33px;
  width: 9px;
  height: 9px;
  content: "";
  background: var(--paper);
  border: 2px solid var(--blue);
  border-radius: 50%;
}

.timeline-item::after {
  position: absolute;
  top: 33px;
  left: -23px;
  width: 22px;
  height: 1px;
  content: "";
  background: #c9c9c4;
}

.timeline-time {
  position: absolute;
  top: 25px;
  left: -116px;
  width: 72px;
  font-size: 11px;
  font-weight: 700;
  text-align: right;
}

.timeline-item h3 {
  margin: 0;
  font-size: 12px;
}

.timeline-item p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 8px;
  line-height: 1.6;
}

.timeline-meta {
  border-left: 1px solid var(--line);
  padding-left: 18px;
}

.timeline-meta span,
.timeline-meta strong {
  display: block;
}

.timeline-meta span {
  color: var(--muted);
  font-size: 7px;
}

.timeline-meta strong {
  margin: 4px 0 10px;
  font-size: 9px;
}

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

.review-card {
  min-height: 168px;
  padding: 21px;
}

.review-card .review-index {
  display: block;
  margin-bottom: 22px;
  color: var(--blue);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.13em;
}

.review-card h3 {
  margin: 0;
  font-size: 13px;
}

.review-card p {
  margin: 8px 0 17px;
  color: var(--muted);
  font-size: 8px;
  line-height: 1.6;
}

.review-card textarea {
  width: 100%;
  min-height: 92px;
  padding: 10px;
  background: #eeece6;
  border: 1px solid transparent;
  border-radius: 6px;
  font-size: 8px;
  line-height: 1.6;
  resize: vertical;
}

.deliverables {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.deliverable {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 12px;
  background: #ebe9e3;
  border-radius: 6px;
}

.deliverable input {
  width: 15px;
  height: 15px;
  accent-color: var(--green);
}

.deliverable span {
  font-size: 8px;
}

.modal-backdrop {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(10, 12, 14, 0.72);
  backdrop-filter: blur(7px);
}

.modal-backdrop[hidden] {
  display: none;
}

.modal {
  position: relative;
  width: min(680px, 100%);
  max-height: calc(100vh - 36px);
  overflow: auto;
  padding: 31px;
  background: var(--paper-2);
  border-radius: 12px;
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.36);
}

.modal.wide-modal {
  width: min(1000px, 100%);
}

.modal-close {
  position: absolute;
  z-index: 2;
  top: 12px;
  right: 12px;
  width: 30px;
  height: 30px;
  padding: 0;
  color: #777b7e;
  background: #e8e6e0;
  border: 0;
  border-radius: 50%;
  font-size: 18px;
}

.modal h2 {
  margin: 0 0 8px;
  font-size: 22px;
  letter-spacing: -0.04em;
}

.modal .modal-copy {
  margin: 0 0 23px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.7;
}

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

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

.material-modal-visual {
  min-height: 480px;
}

.toast {
  position: fixed;
  z-index: 120;
  right: 25px;
  bottom: 25px;
  max-width: 350px;
  padding: 13px 17px;
  color: white;
  background: #2a557f;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 8px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.3);
  font-size: 9px;
  line-height: 1.5;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: 180ms ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.empty {
  padding: 40px 20px;
  color: var(--muted);
  text-align: center;
  font-size: 10px;
}

/* Readability pass: raise the operational UI one step without changing density. */
.brand strong {
  font-size: 13px;
}

.brand small,
.nav-index,
.storage-state small {
  font-size: 9px;
}

.edition-kicker,
.storage-state strong,
.metric-label,
.panel-head p,
.score-ring span,
.score-row,
.filterbar button,
.filterbar .filter-meta,
.day-date small,
.day-head p,
.task-title small,
.task-standard,
.inline-select,
.inline-input,
.field input,
.field select,
.field textarea,
.modal input,
.modal select,
.modal textarea,
.guest-company,
.check-pill span,
.material-info dd,
.material-actions button,
.timeline-item p,
.timeline-meta strong,
.review-card p,
.review-card textarea,
.deliverable span,
.toast {
  font-size: 10px;
}

.edition-switch,
.edition-menu button,
.breadcrumb,
.ghost-button,
.primary-button,
.secondary-button,
.danger-button,
.page-eyebrow,
.hero-meta,
.metric-value span,
.next-item strong,
.day-head h3,
.task-title strong,
.funnel-step span,
.guest-name,
.material-title-row h3,
.material-art p,
.materials-toolbar strong,
.materials-toolbar span,
.timeline-time,
.timeline-meta span,
.review-card .review-index,
.empty {
  font-size: 11px;
}

.edition-card > span:not(.edition-kicker),
.nav-item,
.page-head p,
.timeline-item h3 {
  font-size: 13px;
}

.panel-head h2 {
  font-size: 16px;
}

.tag,
.priority {
  font-size: 9px;
}

.material-art .micro,
.material-info dt {
  font-size: 8px;
}

.material-art h3 {
  font-size: clamp(22px, 2.6vw, 34px);
}

.review-card h3 {
  font-size: 14px;
}

.guest-name {
  font-size: 14px;
}

.day-head h3,
.material-title-row h3,
.materials-toolbar strong,
.timeline-time {
  font-size: 12px;
}

@media (max-width: 1100px) {
  .metrics-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .decision-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .decision-strip article:nth-child(2) {
    border-right: 0;
  }

  .decision-strip article:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .materials-grid,
  .review-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .task-row {
    grid-template-columns: 26px 35px minmax(180px, 1fr) 120px 95px;
  }

  .task-standard {
    display: none;
  }

  .crm-funnel {
    grid-template-columns: repeat(3, 1fr);
  }

  .funnel-step:nth-child(3) {
    border-right: 0;
  }

  .funnel-step:nth-child(-n + 3) {
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 820px) {
  :root {
    --sidebar-width: 270px;
  }

  .sidebar {
    transform: translateX(-102%);
    box-shadow: 20px 0 70px rgba(0, 0, 0, 0.25);
    transition: transform 180ms ease;
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .main {
    margin-left: 0;
  }

  .menu-button {
    display: block;
  }

  .topbar {
    padding: 0 18px;
  }

  .breadcrumb span,
  .breadcrumb i,
  #todayButton {
    display: none;
  }

  .page-head {
    display: block;
  }

  .page-head p {
    margin: 14px 0 0;
  }

  .hero {
    min-height: 410px;
  }

  .metrics-grid {
    margin: -28px 12px 28px;
  }

  .guest-grid {
    grid-template-columns: 1fr;
  }

  .cloud-sync-panel {
    align-items: flex-start;
    flex-direction: column;
  }

  .cloud-sync-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .timeline-item {
    grid-template-columns: 1fr;
  }

  .timeline-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-top: 1px solid var(--line);
    border-left: 0;
    padding: 12px 0 0;
  }

  .course-overview {
    grid-template-columns: 1fr;
  }

  .course-facts {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: none;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    border-left: 0;
  }

  .course-facts div {
    border-right: 1px solid rgba(255, 255, 255, 0.15);
    border-bottom: 0;
  }

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

@media (max-width: 600px) {
  .view {
    padding: 28px 14px 70px;
  }

  .topbar {
    min-height: 64px;
  }

  .top-actions .ghost-button {
    display: none;
  }

  .cloud-sync-actions .ghost-button {
    display: inline-flex;
  }

  .primary-button {
    padding: 0 10px;
  }

  .hero {
    min-height: 470px;
    padding: 30px 23px;
    border-radius: 10px;
  }

  .hero h1 {
    font-size: inherit;
    line-height: 1;
  }

  .hero-title-primary {
    font-size: min(8vw, 5.2vh);
    line-height: 1.08;
  }

  .hero-title-promise {
    margin-top: 18px;
    font-size: min(8.65vw, 5.8vh);
    line-height: 1.06;
  }

  .hero-subtitle {
    font-size: 14px;
  }

  .hero-grid {
    inset: 50% 0 0;
  }

  .hero-meta {
    display: grid;
    gap: 9px;
    margin-top: 30px;
  }

  .decision-strip {
    grid-template-columns: 1fr;
    margin: -25px 8px 0;
  }

  .decision-strip article {
    min-height: 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .decision-strip article:last-child {
    border-bottom: 0;
  }

  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 7px;
    margin: -26px 8px 24px;
  }

  .engagement-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .course-overview-copy {
    padding: 30px 22px;
  }

  .course-overview-copy h2 {
    gap: 7px;
    font-size: 27px;
  }

  .course-facts {
    grid-template-columns: 1fr;
  }

  .course-facts div {
    padding: 17px 22px;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  }

  .course-takeaways,
  .course-modules,
  .course-product-grid,
  .course-prep-list {
    grid-template-columns: 1fr;
  }

  .course-product-grid .conversion-card {
    grid-column: auto;
  }

  .conversion-card > div {
    grid-template-columns: 1fr;
  }

  .section-heading {
    display: block;
  }

  .section-heading h2 {
    margin-top: 10px;
  }

  .section-heading p {
    margin-top: 10px;
  }

  .course-session-list article {
    grid-template-columns: 1fr;
    gap: 9px;
  }

  .course-session-list article > strong {
    padding: 10px 0 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .course-modules article {
    min-height: 0;
  }

  .metric-card {
    min-height: 115px;
    padding: 14px;
  }

  .metric-value strong {
    font-size: 29px;
  }

  .score-layout {
    display: grid;
    justify-items: center;
    gap: 23px;
  }

  .score-breakdown {
    width: 100%;
  }

  .next-item {
    grid-template-columns: 35px minmax(0, 1fr);
  }

  .next-item .tag {
    display: none;
  }

  .day-head {
    grid-template-columns: 63px minmax(0, 1fr) 18px;
    padding: 0 12px;
  }

  .day-stat {
    display: none;
  }

  .task-row {
    grid-template-columns: 23px 31px minmax(0, 1fr);
    padding: 12px;
  }

  .task-row .inline-select,
  .task-row .inline-input,
  .task-standard {
    grid-column: 3 / -1;
  }

  .materials-grid,
  .review-grid {
    grid-template-columns: 1fr;
  }

  .materials-toolbar .progress {
    display: none;
  }

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

  .funnel-step:nth-child(3) {
    border-right: 1px solid var(--line);
  }

  .funnel-step:nth-child(2n) {
    border-right: 0;
  }

  .funnel-step:nth-child(4) {
    border-bottom: 1px solid var(--line);
  }

  .guest-body {
    grid-template-columns: 1fr;
  }

  .field.full,
  .checks {
    grid-column: auto;
  }

  .timeline {
    padding-left: 0;
  }

  .timeline::before,
  .timeline-item::before,
  .timeline-item::after {
    display: none;
  }

  .timeline-time {
    position: static;
    margin-bottom: 10px;
    color: var(--blue);
    text-align: left;
  }

  .deliverables {
    grid-template-columns: 1fr;
  }

  .modal {
    padding: 28px 20px 22px;
  }

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

  .material-modal-visual {
    min-height: 360px;
  }
}

@media print {
  body {
    background: white;
  }

  .sidebar,
  .topbar,
  .noise,
  .filterbar,
  .material-actions,
  .add-task,
  .toast {
    display: none !important;
  }

  .main {
    margin: 0;
  }

  .view {
    display: none !important;
    padding: 0;
  }

  .view.active {
    display: block !important;
  }

  .panel,
  .metric-card,
  .task-day,
  .guest-card,
  .material-card,
  .review-card,
  .timeline-item {
    break-inside: avoid;
    box-shadow: none;
  }
}
