@charset "UTF-8";

/* ==========================================================================
   FranChai — Components
   ========================================================================== */

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  height: 3.125rem;
  padding: 0 1.4rem;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 0.75rem;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition:
    transform 0.35s var(--ease),
    box-shadow 0.35s var(--ease),
    background 0.35s var(--ease),
    border-color 0.35s var(--ease),
    color 0.35s var(--ease);
}

.btn .icon {
  width: 1.125rem;
  height: 1.125rem;
  transition: transform 0.35s var(--ease);
}

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

.btn--primary {
  background: linear-gradient(135deg, #00896a, #006b51);
  color: var(--white);
  box-shadow:
    0 14px 30px -16px rgba(0, 127, 95, 0.7),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.btn--primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    110deg,
    transparent 30%,
    rgba(255, 255, 255, 0.2) 48%,
    transparent 62%
  );
  transform: translateX(-120%);
  transition: transform 0.8s var(--ease);
}

.btn--primary:hover {
  box-shadow:
    0 20px 40px -18px rgba(0, 127, 95, 0.75),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.btn--primary:hover::after {
  transform: translateX(120%);
}

.btn--primary:hover .icon {
  transform: translateX(3px);
}

.btn--ghost {
  background: var(--white);
  border-color: var(--line);
  color: var(--green-900);
  box-shadow: var(--shadow-xs);
}

.btn--ghost:hover {
  background: var(--mint-50);
  border-color: rgba(0, 127, 95, 0.28);
}

.btn--light {
  background: var(--white);
  color: var(--green-900);
}

.btn--light:hover {
  background: var(--mint-100);
}

.btn--outline-light {
  border-color: rgba(255, 255, 255, 0.24);
  color: var(--white);
}

.btn--outline-light:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.4);
}

.btn--sm {
  height: 2.5rem;
  padding: 0 1rem;
  border-radius: 0.625rem;
  font-size: 0.8125rem;
}

.btn--block {
  width: 100%;
}

/* --------------------------------------------------------------------------
   Badges / chips
   -------------------------------------------------------------------------- */

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.9rem 0.4rem 0.5rem;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.85);
  box-shadow: var(--shadow-xs);
  color: var(--green-800);
  font-size: 0.71875rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.pulse-dot {
  position: relative;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--green-500);
  box-shadow: 0 0 0 3px rgba(0, 185, 130, 0.14);
}

.pulse-dot::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid rgba(0, 185, 130, 0.45);
  animation: pulseRing 2.4s var(--ease) infinite;
}

@keyframes pulseRing {
  0% {
    opacity: 0.7;
    transform: scale(0.7);
  }
  70%,
  100% {
    opacity: 0;
    transform: scale(1.5);
  }
}

/* --------------------------------------------------------------------------
   Hero floating cards
   -------------------------------------------------------------------------- */

.float-card {
  position: absolute;
  z-index: 4;
  width: 13rem;
  padding: 0.85rem 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.93);
  box-shadow: 0 24px 60px -28px rgba(8, 37, 29, 0.38);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  animation: floatY 7s ease-in-out infinite;
}

.float-card--ai {
  top: 9%;
  left: -3%;
}

.float-card--sop {
  right: -3%;
  bottom: 7%;
  animation-delay: -3.5s;
}

@keyframes floatY {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.float-head {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.float-avatar {
  display: grid;
  place-items: center;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 0.45rem;
  background: var(--green-800);
  color: #8cf5ce;
  flex: none;
}

.float-avatar .icon {
  width: 0.75rem;
  height: 0.75rem;
}

.float-title {
  color: var(--green-900);
  font-size: 0.6875rem;
  font-weight: 600;
  line-height: 1.2;
}

.float-sub {
  margin-top: 0.05rem;
  color: var(--faint);
  font-size: 0.5rem;
  line-height: 1.3;
}

.float-text {
  margin-top: 0.55rem;
  color: #4b5563;
  font-size: 0.625rem;
  line-height: 1.65;
}

.float-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  margin-top: 0.5rem;
  padding: 0.15rem 0.45rem;
  border-radius: var(--r-pill);
  background: var(--mint-100);
  color: var(--green-700);
  font-size: 0.5rem;
}

.float-list {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-top: 0.5rem;
}

.float-list-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.3rem;
  color: #4b5563;
  font-size: 0.55rem;
}

.float-list-row > span:first-child {
  display: inline-flex;
  align-items: center;
}

.float-list-row i {
  width: 0.25rem;
  height: 0.25rem;
  margin-right: 0.25rem;
  border-radius: 50%;
  background: var(--green-400);
}

.float-list-row > span:last-child {
  color: var(--green-700);
  font-weight: 600;
}

.float-list-row--warn i {
  background: var(--amber);
}

.float-list-row--warn > span:last-child {
  color: #b45309;
}

/* --------------------------------------------------------------------------
   Phone mockup — base
   -------------------------------------------------------------------------- */

.phone {
  position: relative;
  width: 18.75rem;
  height: 39.5rem;
  padding: 0.5625rem;
  border-radius: 2.75rem;
  background: linear-gradient(160deg, #123d30 0%, #071c16 62%);
  box-shadow:
    var(--shadow-phone),
    inset 0 0 0 1px rgba(255, 255, 255, 0.14);
  flex: none;
}

.phone::before {
  content: "";
  position: absolute;
  top: 0.95rem;
  left: 50%;
  z-index: 6;
  width: 5.25rem;
  height: 1.1rem;
  border-radius: var(--r-pill);
  background: #071c16;
  transform: translateX(-50%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.phone::after {
  content: "";
  position: absolute;
  inset: 0.5625rem;
  z-index: 5;
  border-radius: 2.2rem;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
  pointer-events: none;
}

.phone-screen {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border-radius: 2.2rem;
  background: var(--bg-soft);
}

.status-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 2.25rem;
  padding: 0 1.1rem;
  background: var(--white);
  color: #0b2b21;
  font-size: 0.625rem;
  font-weight: 600;
  flex: none;
}

.status-icons {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.sig {
  display: flex;
  align-items: flex-end;
  gap: 1px;
  height: 0.5rem;
}

.sig i {
  display: block;
  width: 2px;
  border-radius: 1px;
  background: currentColor;
}

.sig i:nth-child(1) {
  height: 3px;
}

.sig i:nth-child(2) {
  height: 4.5px;
}

.sig i:nth-child(3) {
  height: 6px;
}

.sig i:nth-child(4) {
  height: 7.5px;
}

.wifi {
  width: 0.65rem;
  height: 0.5rem;
  border-top: 2px solid currentColor;
  border-radius: 50% 50% 0 0;
  opacity: 0.85;
}

.battery {
  position: relative;
  width: 0.9rem;
  height: 0.45rem;
  border: 1px solid currentColor;
  border-radius: 2px;
  opacity: 0.9;
}

.battery::before {
  content: "";
  position: absolute;
  inset: 1px;
  right: 3px;
  border-radius: 1px;
  background: currentColor;
}

.battery::after {
  content: "";
  position: absolute;
  top: 2px;
  right: -3px;
  width: 2px;
  height: 3px;
  border-radius: 0 1px 1px 0;
  background: currentColor;
}

/* --------------------------------------------------------------------------
   Phone — workbench
   -------------------------------------------------------------------------- */

.h5-head {
  position: relative;
  padding: 0.75rem 1rem 1.3rem;
  background: radial-gradient(120% 110% at 82% 0%, #0e9370 0%, #0b3d2e 56%, #072b20 100%);
  color: var(--white);
  flex: none;
}

.h5-head::after {
  content: "";
  position: absolute;
  right: -2.5rem;
  top: -3.5rem;
  width: 9rem;
  height: 9rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  pointer-events: none;
}

.h5-brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.h5-brand-left {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.h5-logo {
  display: grid;
  place-items: center;
  width: 1.5rem;
  height: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 0.45rem;
  background: rgba(255, 255, 255, 0.14);
  color: #9af3d2;
  font-size: 0.7rem;
  font-weight: 700;
}

.h5-brand-name {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.1;
}

.h5-brand-sub {
  margin-top: 1px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.34rem;
  letter-spacing: 0.12em;
  line-height: 1.2;
  text-transform: uppercase;
}

.h5-avatar {
  display: grid;
  place-items: center;
  width: 1.5rem;
  height: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
}

.h5-avatar .icon {
  width: 0.7rem;
  height: 0.7rem;
  stroke-width: 1.6;
  opacity: 0.8;
}

.h5-greet {
  margin-top: 0.85rem;
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.h5-sub {
  margin-top: 0.15rem;
  font-size: 0.5rem;
  line-height: 1.4;
  opacity: 0.62;
}

.h5-focus {
  margin-top: 0.7rem;
  padding: 0.6rem 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 0.8rem;
  background: rgba(255, 255, 255, 0.07);
}

.h5-focus-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.5rem;
  letter-spacing: 0.02em;
  opacity: 0.78;
}

.live-dot {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  color: #9af3d2;
  font-size: 0.44rem;
  opacity: 1;
}

.live-dot::before {
  content: "";
  width: 0.25rem;
  height: 0.25rem;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 0 2px rgba(74, 222, 128, 0.2);
}

.h5-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.35rem;
  margin-top: 0.45rem;
}

.h5-stat {
  padding: 0.45rem 0.45rem 0.4rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 0.6rem;
  background: rgba(255, 255, 255, 0.1);
}

.h5-stat--warn {
  border-color: transparent;
  background: #fff3dd;
  color: #6b3f00;
}

.h5-stat-value {
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.h5-stat-label {
  margin-top: 0.3rem;
  font-size: 0.46rem;
  font-weight: 500;
  opacity: 0.9;
}

.h5-stat-note {
  margin-top: 0.05rem;
  font-size: 0.38rem;
  line-height: 1.35;
  opacity: 0.55;
}

.h5-stat--warn .h5-stat-label {
  color: #7a4a00;
  opacity: 0.85;
}

.h5-stat--warn .h5-stat-note {
  color: #9a6a1a;
  opacity: 1;
}

.h5-body {
  flex: 1;
  min-height: 0;
  padding: 0.6rem 0.65rem 0;
  background: var(--bg-soft);
  overflow: hidden;
}

.h5-mini-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 0.55rem 0;
  border-radius: 0.7rem;
  background: var(--white);
  box-shadow: var(--shadow-xs);
}

.h5-mini-stat {
  position: relative;
  text-align: center;
}

.h5-mini-stat + .h5-mini-stat::before {
  content: "";
  position: absolute;
  top: 15%;
  bottom: 15%;
  left: 0;
  width: 1px;
  background: #f0f4f2;
}

.h5-mini-value {
  color: var(--green-900);
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.h5-mini-label {
  margin-top: 0.1rem;
  color: var(--faint);
  font-size: 0.4rem;
}

.h5-card {
  margin-top: 0.45rem;
  padding: 0.55rem 0.6rem;
  border-radius: 0.7rem;
  background: var(--white);
  box-shadow: var(--shadow-xs);
}

.h5-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--green-900);
  font-size: 0.52rem;
  font-weight: 600;
}

.h5-card-head em {
  display: inline-flex;
  align-items: center;
  gap: 0.1rem;
  color: var(--green-700);
  font-size: 0.42rem;
  font-style: normal;
  font-weight: 500;
}

.h5-progress-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-top: 0.45rem;
}

.h5-progress-value {
  color: var(--green-700);
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.h5-progress-value small {
  margin-left: 0.15rem;
  color: var(--faint);
  font-size: 0.42rem;
  font-weight: 400;
}

.h5-progress-meta {
  color: var(--muted);
  font-size: 0.42rem;
  line-height: 1.4;
  text-align: right;
}

.h5-progress-meta b {
  color: var(--green-700);
  font-weight: 600;
}

.h5-progress {
  height: 0.25rem;
  margin-top: 0.35rem;
  overflow: hidden;
  border-radius: var(--r-pill);
  background: #edf3f0;
}

.h5-progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #00b982, #007f5f);
}

.h5-chips {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.3rem;
  margin-top: 0.45rem;
}

.h5-chip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  padding: 0.32rem 0.1rem;
  border-radius: 0.4rem;
  background: #f5f8f7;
  color: #4b5563;
  font-size: 0.4rem;
}

.h5-chip .icon {
  width: 0.42rem;
  height: 0.42rem;
  color: var(--green-600);
}

.h5-quick {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.35rem;
  margin-top: 0.45rem;
}

.h5-quick-card {
  position: relative;
  min-height: 2.65rem;
  padding: 0.45rem 0.5rem;
  overflow: hidden;
  border: 1px solid #f0f4f2;
  border-radius: 0.6rem;
  background: var(--white);
}

.h5-quick-card .icon {
  width: 0.55rem;
  height: 0.55rem;
  margin-bottom: 0.2rem;
  color: var(--green-600);
}

.h5-quick-title {
  display: block;
  color: var(--green-900);
  font-size: 0.46rem;
  font-weight: 600;
  line-height: 1.3;
}

.h5-quick-sub {
  display: block;
  margin-top: 0.08rem;
  color: var(--faint);
  font-size: 0.38rem;
  line-height: 1.35;
}

.h5-quick-card--ai {
  border-color: rgba(0, 185, 130, 0.25);
  background: linear-gradient(135deg, #e8f8f2, #f6fffb);
}

.h5-quick-card--ai .icon {
  color: var(--green-700);
}

.h5-quick-badge {
  position: absolute;
  right: 0.35rem;
  bottom: 0.3rem;
  padding: 0.05rem 0.2rem;
  border: 1px solid rgba(0, 127, 95, 0.15);
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.8);
  color: var(--green-700);
  font-size: 0.34rem;
}

.h5-tabbar {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: center;
  height: 2.65rem;
  padding-bottom: 0.15rem;
  border-top: 1px solid #eef2f0;
  background: var(--white);
  flex: none;
}

.h5-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.08rem;
  color: #9ca3af;
  font-size: 0.36rem;
  line-height: 1;
}

.h5-tab .icon {
  width: 0.62rem;
  height: 0.62rem;
  stroke-width: 1.7;
}

.h5-tab.is-active {
  color: var(--green-700);
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   Phone — light page head / lists
   -------------------------------------------------------------------------- */

.h5-head--light {
  padding: 0.6rem 0.7rem 0.55rem;
  border-bottom: 1px solid #f1f5f3;
  background: var(--white);
  color: var(--green-900);
}

.h5-head--light::after {
  display: none;
}

.h5-page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
}

.h5-page-title {
  color: var(--green-900);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.h5-page-sub {
  margin-top: 0.08rem;
  color: var(--faint);
  font-size: 0.4rem;
  line-height: 1.4;
}

.h5-icon-btn {
  display: grid;
  place-items: center;
  width: 1.4rem;
  height: 1.4rem;
  border: 1px solid #eef3f0;
  border-radius: 0.4rem;
  color: var(--muted);
  flex: none;
}

.h5-icon-btn .icon {
  width: 0.6rem;
  height: 0.6rem;
}

.h5-search {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  height: 1.35rem;
  margin-top: 0.5rem;
  padding: 0 0.4rem;
  border: 1px solid #eff3f1;
  border-radius: 0.4rem;
  background: #f6f9f7;
  color: var(--faint);
  font-size: 0.42rem;
}

.h5-search .icon {
  width: 0.52rem;
  height: 0.52rem;
}

.h5-segments {
  display: flex;
  gap: 0.85rem;
  margin-top: 0.5rem;
  border-bottom: 1px solid #f2f6f4;
}

.h5-segment {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  padding-bottom: 0.35rem;
  color: var(--muted);
  font-size: 0.5rem;
}

.h5-segment b {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.h5-segment.is-active {
  color: var(--green-700);
  font-weight: 600;
}

.h5-segment.is-active::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--green-500);
}

.h5-list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding-top: 0.5rem;
}

.h5-customer {
  padding: 0.5rem 0.55rem;
  border-radius: 0.65rem;
  background: var(--white);
  box-shadow: var(--shadow-xs);
}

.h5-customer-top {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.h5-avatar-sm {
  display: grid;
  place-items: center;
  width: 1.3rem;
  height: 1.3rem;
  border-radius: 50%;
  background: var(--mint-100);
  color: var(--green-700);
  font-size: 0.46rem;
  font-weight: 600;
  flex: none;
}

.h5-avatar-sm--amber {
  background: #fff4de;
  color: #b45309;
}

.h5-avatar-sm--blue {
  background: #eaf6fe;
  color: #0284c7;
}

.h5-customer-name {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  color: var(--green-900);
  font-size: 0.52rem;
  font-weight: 600;
  line-height: 1.3;
}

.h5-badge {
  padding: 0.06rem 0.22rem;
  border-radius: var(--r-pill);
  background: var(--mint-100);
  color: var(--green-700);
  font-size: 0.34rem;
  font-weight: 500;
  white-space: nowrap;
}

.h5-badge--amber {
  background: #fff4de;
  color: #b45309;
}

.h5-badge--blue {
  background: #eaf6fe;
  color: #0284c7;
}

.h5-badge--gray {
  background: #f3f4f6;
  color: #6b7280;
}

.h5-customer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-top: 0.2rem;
  color: var(--faint);
  font-size: 0.38rem;
  line-height: 1.5;
}

.h5-customer-tag {
  display: inline-flex;
  padding: 0.06rem 0.22rem;
  border-radius: 0.25rem;
  background: #f5f8f7;
  color: #4b5563;
  font-size: 0.36rem;
}

.h5-customer-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.2rem;
  margin-top: 0.35rem;
  padding-top: 0.3rem;
  border-top: 1px dashed #f0f4f2;
  color: var(--faint);
  font-size: 0.36rem;
}

.h5-customer-foot em {
  color: var(--green-700);
  font-style: normal;
  font-weight: 500;
}

.h5-more {
  padding: 0.35rem 0;
  color: var(--faint);
  font-size: 0.36rem;
  text-align: center;
}

/* --------------------------------------------------------------------------
   Phone — tasks
   -------------------------------------------------------------------------- */

.h5-task-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.3rem;
  margin-top: 0.5rem;
}

.h5-task-stat {
  padding: 0.42rem 0.45rem;
  border: 1px solid #f1f5f3;
  border-radius: 0.55rem;
  background: var(--white);
  box-shadow: var(--shadow-xs);
}

.h5-task-stat b {
  display: block;
  color: var(--green-900);
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.h5-task-stat span {
  display: block;
  margin-top: 0.15rem;
  color: var(--faint);
  font-size: 0.36rem;
}

.h5-task-stat--warn {
  border-color: #fdebcb;
  background: #fff8ec;
}

.h5-task-stat--warn b {
  color: #b45309;
}

.h5-task-tabs {
  display: flex;
  gap: 0.2rem;
  margin-top: 0.5rem;
  padding: 0.15rem;
  border-radius: 0.45rem;
  background: #eef3f0;
}

.h5-task-tab {
  flex: 1;
  padding: 0.25rem 0;
  border-radius: 0.35rem;
  color: var(--muted);
  font-size: 0.4rem;
  text-align: center;
}

.h5-task-tab.is-active {
  background: var(--white);
  box-shadow: var(--shadow-xs);
  color: var(--green-900);
  font-weight: 600;
}

.h5-task {
  position: relative;
  margin-top: 0.4rem;
  padding: 0.5rem 0.5rem 0.45rem 0.65rem;
  overflow: hidden;
  border-radius: 0.6rem;
  background: var(--white);
  box-shadow: var(--shadow-xs);
}

.h5-task::before {
  content: "";
  position: absolute;
  top: 0.35rem;
  bottom: 0.35rem;
  left: 0;
  width: 2px;
  border-radius: 2px;
  background: var(--green-400);
}

.h5-task--warn {
  background: #fffbf2;
}

.h5-task--warn::before {
  background: var(--amber);
}

.h5-task-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.2rem;
}

.h5-task-name {
  color: var(--green-900);
  font-size: 0.5rem;
  font-weight: 600;
}

.h5-task-title {
  margin-top: 0.18rem;
  color: #4b5563;
  font-size: 0.4rem;
  line-height: 1.5;
}

.h5-task-meta {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: 0.3rem;
  color: var(--faint);
  font-size: 0.36rem;
}

.dot-sep {
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: #d1d5db;
}

.h5-task-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.35rem;
}

.h5-task-owner {
  color: var(--faint);
  font-size: 0.36rem;
}

.h5-task-action {
  padding: 0.1rem 0.3rem;
  border: 1px solid rgba(0, 127, 95, 0.12);
  border-radius: 0.25rem;
  background: var(--mint-50);
  color: var(--green-700);
  font-size: 0.36rem;
}

/* --------------------------------------------------------------------------
   Phone — learning
   -------------------------------------------------------------------------- */

.h5-study-hero {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 0.5rem;
  padding: 0.6rem 0.65rem;
  border-radius: 0.7rem;
  background: linear-gradient(145deg, #0b3d2e, #0a6b51);
  color: var(--white);
}

.ring {
  display: grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  background: conic-gradient(#4ade80 0 40%, rgba(255, 255, 255, 0.14) 40% 100%);
  flex: none;
}

.ring-inner {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: #0b3d2e;
  color: var(--white);
  font-size: 0.46rem;
  font-weight: 600;
}

.h5-study-title {
  font-size: 0.55rem;
  font-weight: 600;
}

.h5-study-sub {
  margin-top: 0.1rem;
  font-size: 0.4rem;
  line-height: 1.5;
  opacity: 0.62;
}

.h5-study-actions {
  display: flex;
  gap: 0.3rem;
  margin-top: 0.35rem;
}

.h5-study-btn {
  padding: 0.12rem 0.35rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 0.25rem;
  background: rgba(255, 255, 255, 0.14);
  color: #e9fff7;
  font-size: 0.36rem;
}

.h5-course {
  display: flex;
  gap: 0.45rem;
  margin-top: 0.4rem;
  padding: 0.45rem;
  border-radius: 0.6rem;
  background: var(--white);
  box-shadow: var(--shadow-xs);
}

.h5-course-cover {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.4rem;
  background: linear-gradient(140deg, #d5f5e8, #8be8c6);
  color: var(--green-700);
  flex: none;
}

.h5-course-cover--amber {
  background: linear-gradient(140deg, #fff1d6, #fcd9a0);
  color: #b45309;
}

.h5-course-cover--blue {
  background: linear-gradient(140deg, #e0f2fe, #a5d8f7);
  color: #0369a1;
}

.h5-course-cover .icon {
  width: 0.85rem;
  height: 0.85rem;
}

.h5-course-body {
  min-width: 0;
  flex: 1;
}

.h5-course-title {
  display: flex;
  justify-content: space-between;
  gap: 0.2rem;
  color: var(--green-900);
  font-size: 0.47rem;
  font-weight: 600;
}

.h5-course-title span {
  padding: 0.02rem 0.18rem;
  border-radius: 0.2rem;
  background: var(--mint-100);
  color: var(--green-700);
  font-size: 0.32rem;
  font-weight: 500;
  white-space: nowrap;
}

.h5-course-sub {
  display: -webkit-box;
  margin-top: 0.1rem;
  overflow: hidden;
  color: var(--faint);
  font-size: 0.36rem;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.h5-course-foot {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: 0.25rem;
  color: var(--faint);
  font-size: 0.32rem;
}

.h5-course-bar {
  flex: 1;
  height: 2px;
  overflow: hidden;
  border-radius: 2px;
  background: #edf3f0;
}

.h5-course-bar i {
  display: block;
  height: 100%;
  background: var(--green-500);
}

/* --------------------------------------------------------------------------
   Floating panels (module visuals)
   -------------------------------------------------------------------------- */

.floating-panel {
  position: absolute;
  z-index: 4;
  width: 15.5rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--line-soft);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 28px 70px -36px rgba(8, 37, 29, 0.45);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.floating-panel--timeline {
  right: -4%;
  bottom: 8%;
}

.floating-panel--sop {
  bottom: 6%;
  left: -4%;
  width: 16rem;
}

.floating-panel--exam {
  right: -3%;
  bottom: 12%;
  width: 13.5rem;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
}

.panel-title {
  color: var(--green-900);
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.3;
}

.panel-meta {
  color: var(--faint);
  font-size: 0.5625rem;
  white-space: nowrap;
}

.timeline {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-top: 0.8rem;
  padding-left: 0.85rem;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 0.35rem;
  bottom: 0.35rem;
  left: 0.22rem;
  width: 1px;
  background: var(--line);
}

.tl-item {
  position: relative;
}

.tl-item::before {
  content: "";
  position: absolute;
  top: 0.28rem;
  left: -0.72rem;
  width: 0.45rem;
  height: 0.45rem;
  border: 2px solid var(--white);
  border-radius: 50%;
  background: var(--green-400);
  box-shadow: 0 0 0 1px var(--mint-200);
}

.tl-item:first-child::before {
  background: var(--green-700);
}

.tl-time {
  color: var(--faint);
  font-size: 0.5rem;
  line-height: 1.3;
}

.tl-text {
  margin-top: 0.08rem;
  color: #4b5563;
  font-size: 0.625rem;
  line-height: 1.55;
}

.tl-text b {
  color: var(--green-800);
  font-weight: 600;
}

.panel-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  margin-top: 0.8rem;
  padding-top: 0.6rem;
  border-top: 1px dashed var(--line);
  color: var(--faint);
  font-size: 0.5625rem;
}

.panel-foot strong {
  color: var(--green-700);
  font-weight: 600;
}

.sop-list {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-top: 0.75rem;
}

.sop-step {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.5rem;
  border-radius: 0.5rem;
  background: #f7faf8;
}

.sop-num {
  display: grid;
  place-items: center;
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 50%;
  background: var(--mint-100);
  color: var(--green-700);
  font-size: 0.5rem;
  font-weight: 600;
  flex: none;
}

.sop-body {
  min-width: 0;
  flex: 1;
}

.sop-body b {
  display: block;
  color: var(--green-900);
  font-size: 0.625rem;
  font-weight: 600;
  line-height: 1.3;
}

.sop-body span {
  display: block;
  color: var(--faint);
  font-size: 0.5rem;
  line-height: 1.4;
}

.sop-state {
  color: var(--green-700);
  font-size: 0.5rem;
  white-space: nowrap;
}

.exam-score {
  display: flex;
  align-items: baseline;
  gap: 0.15rem;
  margin-top: 0.65rem;
  color: var(--green-900);
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.exam-score small {
  color: var(--faint);
  font-size: 0.625rem;
  font-weight: 400;
  letter-spacing: 0;
}

.exam-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  margin-top: 0.35rem;
  padding: 0.15rem 0.45rem;
  border-radius: var(--r-pill);
  background: var(--mint-100);
  color: var(--green-700);
  font-size: 0.5625rem;
}

.exam-rows {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin-top: 0.75rem;
  padding-top: 0.6rem;
  border-top: 1px dashed var(--line);
}

.exam-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.5625rem;
}

.exam-row b {
  color: var(--green-900);
  font-weight: 600;
}

.exam-row b.is-warn {
  color: #b45309;
}

/* --------------------------------------------------------------------------
   Capability cards
   -------------------------------------------------------------------------- */

.cap-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 1.6rem;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 1.5rem;
  background: var(--white);
  transition:
    transform 0.4s var(--ease-out),
    box-shadow 0.4s var(--ease),
    border-color 0.4s var(--ease);
}

.cap-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(24rem 14rem at 100% 0%, rgba(0, 185, 130, 0.08), transparent 70%);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
  pointer-events: none;
}

.cap-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 127, 95, 0.18);
  box-shadow: var(--shadow-md);
}

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

.cap-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 1.1rem;
}

.cap-icon {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid rgba(0, 127, 95, 0.08);
  border-radius: 0.85rem;
  background: var(--mint-100);
  color: var(--green-700);
}

.cap-icon .icon {
  width: 1.2rem;
  height: 1.2rem;
}

.cap-index {
  color: var(--faint);
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  font-variant-numeric: tabular-nums;
}

.cap-card h3 {
  color: var(--green-900);
  font-size: 1.1875rem;
  letter-spacing: -0.02em;
}

.cap-card > p {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  line-height: 1.75;
}

.cap-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: auto;
  padding-top: 1.15rem;
}

.cap-tag {
  padding: 0.2rem 0.55rem;
  border-radius: var(--r-pill);
  background: #f5f8f7;
  color: #5b6b63;
  font-size: 0.6875rem;
}

.cap-card--ai {
  border-color: transparent;
  background: linear-gradient(150deg, #0b3d2e, #08251d 68%);
  color: var(--white);
}

.cap-card--ai::after {
  background: radial-gradient(24rem 14rem at 90% 0%, rgba(0, 185, 130, 0.28), transparent 70%);
  opacity: 1;
}

.cap-card--ai .cap-icon {
  border-color: rgba(110, 231, 183, 0.16);
  background: rgba(0, 185, 130, 0.16);
  color: var(--green-300);
}

.cap-card--ai h3 {
  color: var(--white);
}

.cap-card--ai > p {
  color: rgba(255, 255, 255, 0.62);
}

.cap-card--ai .cap-index {
  color: rgba(255, 255, 255, 0.3);
}

.cap-card--ai .cap-tag {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.68);
}

.cap-card--mint {
  border-color: rgba(0, 127, 95, 0.1);
  background: linear-gradient(160deg, #f2fbf7, #e8f8f2);
}

.cap-ai-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
  margin-top: 1.1rem;
}

.cap-ai-item {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 0.6rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.6rem;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.75rem;
}

.cap-ai-item .icon {
  width: 0.9rem;
  height: 0.9rem;
  color: var(--green-300);
}

.cap-card--wide {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 1.5rem;
  padding: 1.5rem 1.75rem;
}

.cap-card--wide .cap-top {
  margin: 0;
}

.cap-card--wide .cap-index {
  display: none;
}

.cap-card--wide > p {
  margin-top: 0.2rem;
}

.cap-card--wide .cap-tags {
  justify-content: flex-end;
  margin: 0;
  padding: 0;
}

/* --------------------------------------------------------------------------
   Browser / admin mockup
   -------------------------------------------------------------------------- */

.browser {
  width: 100%;
  max-width: 52rem;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 1.1rem;
  background: var(--white);
  box-shadow: var(--shadow-lg);
}

.browser-bar {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  height: 2.25rem;
  padding: 0 0.9rem;
  border-bottom: 1px solid var(--line-soft);
  background: #f8faf9;
}

.browser-dots {
  display: flex;
  gap: 0.25rem;
  flex: none;
}

.browser-dots i {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: #e2e8e5;
}

.browser-dots i:nth-child(1) {
  background: #f4a3a3;
}

.browser-dots i:nth-child(2) {
  background: #f7d08a;
}

.browser-dots i:nth-child(3) {
  background: #a7e3c4;
}

.browser-url {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  max-width: 18rem;
  height: 1.25rem;
  margin-inline: auto;
  padding: 0 0.5rem;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 0.35rem;
  background: var(--white);
  color: var(--faint);
  font-size: 0.5rem;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.browser-live {
  padding: 0.12rem 0.4rem;
  border-radius: var(--r-pill);
  background: var(--mint-100);
  color: var(--green-700);
  font-size: 0.5rem;
  white-space: nowrap;
  flex: none;
}

.browser-body {
  display: grid;
  grid-template-columns: 11.5rem minmax(0, 1fr);
  min-height: 26rem;
}

.admin-side {
  padding: 0.9rem 0.6rem;
  border-right: 1px solid var(--line-soft);
  background: #f7faf8;
}

.side-brand {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0 0.4rem 0.7rem;
  margin-bottom: 0.35rem;
  border-bottom: 1px solid var(--line-soft);
}

.side-brand .brand-mark {
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 0.35rem;
}

.side-brand b {
  display: block;
  color: var(--green-900);
  font-size: 0.6rem;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.side-brand small {
  color: var(--faint);
  font-size: 0.32rem;
  letter-spacing: 0.1em;
}

.side-group {
  margin: 0.55rem 0.4rem 0.2rem;
  color: var(--faint);
  font-size: 0.38rem;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.side-item {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.28rem 0.4rem;
  border-radius: 0.3rem;
  color: #4b5563;
  font-size: 0.44rem;
  line-height: 1.5;
  white-space: nowrap;
}

.side-item .icon {
  width: 0.5rem;
  height: 0.5rem;
  opacity: 0.6;
}

.side-item.is-active {
  background: var(--mint-100);
  color: var(--green-700);
  font-weight: 600;
}

.side-item.is-active .icon {
  opacity: 1;
}

.admin-main {
  min-width: 0;
  padding: 0.9rem 1rem;
  background: var(--white);
}

.admin-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
}

.admin-title {
  color: var(--green-900);
  font-size: 0.7rem;
  font-weight: 600;
  line-height: 1.2;
}

.admin-sub {
  margin-top: 0.1rem;
  color: var(--faint);
  font-size: 0.4rem;
}

.admin-badge {
  padding: 0.12rem 0.4rem;
  border: 1px solid rgba(0, 127, 95, 0.1);
  border-radius: var(--r-pill);
  background: var(--mint-100);
  color: var(--green-700);
  font-size: 0.36rem;
  white-space: nowrap;
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.4rem;
  margin-top: 0.6rem;
}

.kpi {
  padding: 0.45rem 0.5rem;
  border: 1px solid var(--line-soft);
  border-radius: 0.45rem;
  background: #fcfdfc;
}

.kpi-label {
  display: block;
  color: var(--faint);
  font-size: 0.36rem;
  line-height: 1.4;
}

.kpi-value {
  display: block;
  margin-top: 0.1rem;
  color: var(--green-900);
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
}

.kpi-trend {
  display: block;
  margin-top: 0.05rem;
  color: var(--green-600);
  font-size: 0.32rem;
}

.chart-box {
  margin-top: 0.55rem;
  padding: 0.5rem 0.55rem;
  border: 1px solid var(--line-soft);
  border-radius: 0.5rem;
}

.chart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.38rem;
}

.chart-head b {
  color: var(--green-900);
  font-size: 0.42rem;
  font-weight: 600;
}

.chart-bars {
  display: flex;
  align-items: flex-end;
  gap: 0.45rem;
  height: 4.5rem;
  margin-top: 0.4rem;
  padding-bottom: 0.1rem;
  border-bottom: 1px dashed #eef3f0;
}

.bar {
  position: relative;
  flex: 1;
  min-width: 0;
  border-radius: 0.25rem 0.25rem 0 0;
  background: linear-gradient(180deg, #2dd4a0, #a7f3d0);
}

.bar--peak {
  background: linear-gradient(180deg, #007f5f, #6ee7b7);
}

.chart-labels {
  display: flex;
  gap: 0.45rem;
  margin-top: 0.25rem;
}

.chart-labels span {
  flex: 1;
  color: var(--faint);
  font-size: 0.32rem;
  text-align: center;
}

.table-wrap {
  margin-top: 0.55rem;
  overflow: hidden;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.38rem;
}

.data-table th {
  padding: 0.32rem 0.35rem;
  border-bottom: 1px solid var(--line-soft);
  background: #fafcfb;
  color: var(--faint);
  font-size: 0.32rem;
  font-weight: 500;
  text-align: left;
  white-space: nowrap;
}

.data-table td {
  padding: 0.34rem 0.35rem;
  border-bottom: 1px solid #f3f6f5;
  color: #4b5563;
  white-space: nowrap;
}

.data-table tr:last-child td {
  border-bottom: 0;
}

.data-table .cell-strong {
  color: var(--green-900);
  font-weight: 600;
}

.cell-sub {
  display: block;
  margin-top: 0.05rem;
  color: var(--faint);
  font-size: 0.3rem;
  font-weight: 400;
}

.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  padding: 0.08rem 0.32rem;
  border-radius: var(--r-pill);
  background: var(--mint-100);
  color: var(--green-700);
  font-size: 0.31rem;
  white-space: nowrap;
}

.status-chip::before {
  content: "";
  width: 0.16rem;
  height: 0.16rem;
  border-radius: 50%;
  background: currentColor;
}

.status-chip--muted {
  background: #f3f4f6;
  color: #9ca3af;
}

.status-chip--warn {
  background: #fff4de;
  color: #b45309;
}

.mini-progress {
  display: inline-block;
  width: 3.2rem;
  height: 0.22rem;
  margin-left: 0.2rem;
  overflow: hidden;
  border-radius: var(--r-pill);
  background: #edf3f0;
  vertical-align: middle;
}

.mini-progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #00b982, #007f5f);
}

/* --------------------------------------------------------------------------
   AI assistant tabs / chat
   -------------------------------------------------------------------------- */

.ai-workbench {
  display: grid;
  grid-template-columns: 17rem minmax(0, 1fr);
  gap: 1rem;
  width: 100%;
  padding: 1rem;
  border: 1px solid rgba(0, 127, 95, 0.12);
  border-radius: 1.5rem;
  background: var(--white);
  box-shadow: var(--shadow-lg);
}

.ai-tabs {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding-right: 1rem;
  border-right: 1px solid var(--line-soft);
}

.ai-tab {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  padding: 0.6rem 0.65rem;
  border-radius: 0.7rem;
  color: var(--muted);
  text-align: left;
  transition:
    background 0.2s var(--ease),
    box-shadow 0.2s var(--ease);
}

.ai-tab:hover {
  background: var(--mint-50);
}

.ai-tab[aria-selected="true"] {
  background: var(--mint-100);
  box-shadow: inset 0 0 0 1px rgba(0, 127, 95, 0.12);
}

.ai-tab .icon {
  width: 1rem;
  height: 1rem;
  margin-top: 0.1rem;
  color: var(--green-700);
}

.ai-tab-title {
  display: block;
  color: var(--green-900);
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.4;
}

.ai-tab-desc {
  display: block;
  margin-top: 0.1rem;
  color: var(--faint);
  font-size: 0.6875rem;
  line-height: 1.5;
}

.ai-panels {
  min-width: 0;
}

.ai-panel {
  display: block;
}

.js .ai-panel {
  display: none;
}

.js .ai-panel.is-active {
  display: block;
  animation: panelIn 0.3s var(--ease-out);
}

@keyframes panelIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.chat {
  display: flex;
  flex-direction: column;
  min-height: 22rem;
}

.chat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--line-soft);
}

.chat-context {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--muted);
  font-size: 0.75rem;
}

.chat-context .icon {
  width: 0.9rem;
  height: 0.9rem;
  color: var(--green-600);
}

.chat-context b {
  color: var(--green-900);
  font-size: 0.8125rem;
  font-weight: 600;
}

.chat-mode {
  padding: 0.15rem 0.45rem;
  border-radius: var(--r-pill);
  background: var(--mint-100);
  color: var(--green-700);
  font-size: 0.625rem;
  white-space: nowrap;
}

.chat-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.75rem;
  padding: 0.85rem 0 0.25rem;
}

.msg {
  display: flex;
  gap: 0.5rem;
  max-width: 94%;
}

.msg--user {
  flex-direction: row-reverse;
  margin-left: auto;
}

.msg-avatar {
  display: grid;
  place-items: center;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 0.5rem;
  background: var(--green-800);
  color: #8cf5ce;
  font-size: 0.6rem;
  font-weight: 700;
  flex: none;
}

.msg--user .msg-avatar {
  background: var(--mint-100);
  color: var(--green-700);
  font-size: 0.55rem;
}

.msg-bubble {
  padding: 0.6rem 0.8rem;
  border-radius: 0.75rem 0.75rem 0.75rem 0.25rem;
  background: #f5f8f7;
  color: #374151;
  font-size: 0.8125rem;
  line-height: 1.75;
}

.msg--user .msg-bubble {
  border-radius: 0.75rem 0.75rem 0.25rem 0.75rem;
  background: var(--green-700);
  color: var(--white);
}

.msg-bubble strong {
  color: var(--green-800);
  font-weight: 600;
}

.msg--user .msg-bubble strong {
  color: var(--white);
}

.msg-bubble ul {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  margin-top: 0.35rem;
}

.msg-bubble li {
  position: relative;
  padding-left: 0.85rem;
}

.msg-bubble li::before {
  content: "";
  position: absolute;
  top: 0.65em;
  left: 0.15rem;
  width: 0.22rem;
  height: 0.22rem;
  border-radius: 50%;
  background: var(--green-500);
}

.chat-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: auto;
  padding-top: 0.65rem;
  border-top: 1px solid var(--line-soft);
}

.chat-tag {
  padding: 0.18rem 0.55rem;
  border: 1px solid rgba(0, 127, 95, 0.1);
  border-radius: var(--r-pill);
  background: var(--mint-50);
  color: var(--green-700);
  font-size: 0.6875rem;
}

/* --------------------------------------------------------------------------
   Value cards
   -------------------------------------------------------------------------- */

.value-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 1.6rem;
  border: 1px solid var(--line);
  border-radius: 1.5rem;
  background: var(--white);
  transition:
    transform 0.4s var(--ease-out),
    box-shadow 0.4s var(--ease),
    border-color 0.4s var(--ease);
}

.value-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 127, 95, 0.18);
  box-shadow: var(--shadow-md);
}

.value-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.value-icon {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid rgba(0, 127, 95, 0.08);
  border-radius: 0.75rem;
  background: var(--mint-100);
  color: var(--green-700);
}

.value-icon .icon {
  width: 1.1rem;
  height: 1.1rem;
}

.value-index {
  color: var(--faint);
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  font-variant-numeric: tabular-nums;
}

.value-card h3 {
  color: var(--green-900);
  font-size: 1.0625rem;
  letter-spacing: -0.02em;
}

.value-card > p {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  line-height: 1.75;
}

.value-foot {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: auto;
  padding-top: 1.25rem;
  border-top: 1px dashed var(--line-soft);
  color: var(--green-700);
  font-size: 0.75rem;
}

.value-foot .icon {
  width: 0.85rem;
  height: 0.85rem;
}

/* --------------------------------------------------------------------------
   Compare table
   -------------------------------------------------------------------------- */

.table-scroll {
  overflow-x: auto;
  border-radius: 1.25rem;
  -webkit-overflow-scrolling: touch;
}

.compare-table {
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--white);
  font-size: 0.8125rem;
}

.compare-table thead th {
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--line-soft);
  background: #f7faf8;
  color: var(--muted);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-align: left;
  white-space: nowrap;
}

.compare-table thead th:last-child {
  background: var(--mint-100);
  color: var(--green-800);
}

.compare-table tbody th {
  width: 24%;
  padding: 0.95rem 1rem;
  border-top: 1px solid var(--line-soft);
  color: var(--green-900);
  font-size: 0.8125rem;
  font-weight: 600;
  text-align: left;
  white-space: nowrap;
}

.compare-table td {
  padding: 0.95rem 1rem;
  border-top: 1px solid var(--line-soft);
  color: var(--muted);
  font-size: 0.8125rem;
  line-height: 1.65;
}

.compare-table td:first-of-type::before {
  content: "−";
  margin-right: 0.35rem;
  color: #cbd5d1;
}

.compare-table td:last-child {
  background: rgba(232, 248, 242, 0.4);
  color: #374151;
}

.compare-table td:last-child::before {
  content: "✓";
  margin-right: 0.35rem;
  color: var(--green-600);
  font-weight: 700;
}

.compare-table tr:first-child th,
.compare-table tr:first-child td {
  border-top: 0;
}

.table-hint {
  display: none;
  margin-top: 0.5rem;
  color: var(--faint);
  font-size: 0.6875rem;
}

/* --------------------------------------------------------------------------
   Scenarios / roles
   -------------------------------------------------------------------------- */

.scenario {
  position: relative;
  padding: 1.75rem;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 1.5rem;
  background: var(--white);
  transition:
    transform 0.4s var(--ease-out),
    box-shadow 0.4s var(--ease),
    border-color 0.4s var(--ease);
}

.scenario:hover {
  transform: translateY(-3px);
  border-color: rgba(0, 127, 95, 0.2);
  box-shadow: var(--shadow-sm);
}

.scenario-index {
  display: inline-flex;
  padding: 0.2rem 0.55rem;
  border-radius: var(--r-pill);
  background: var(--mint-100);
  color: var(--green-700);
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
}

.scenario h3 {
  margin-top: 1rem;
  color: var(--green-900);
  font-size: 1.0625rem;
}

.scenario p {
  margin-top: 0.45rem;
  font-size: 0.875rem;
  line-height: 1.75;
}

.scenario-arrow {
  position: absolute;
  top: 1.6rem;
  right: 1.6rem;
  width: 1.1rem;
  height: 1.1rem;
  color: var(--faint);
  transition:
    color 0.3s var(--ease),
    transform 0.3s var(--ease);
}

.scenario:hover .scenario-arrow {
  color: var(--green-700);
  transform: translate(2px, -2px);
}

.role-card {
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  background: rgba(255, 255, 255, 0.72);
}

.role-icon {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.65rem;
  background: var(--mint-100);
  color: var(--green-700);
}

.role-icon .icon {
  width: 1rem;
  height: 1rem;
}

.role-card h3 {
  margin-top: 0.9rem;
  color: var(--green-900);
  font-size: 0.9375rem;
}

.role-card p {
  margin-top: 0.35rem;
  font-size: 0.8125rem;
  line-height: 1.7;
}

/* --------------------------------------------------------------------------
   Implementation path
   -------------------------------------------------------------------------- */

.step {
  position: relative;
}

.step-num {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid rgba(0, 127, 95, 0.22);
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 0 0 8px var(--white);
  color: var(--green-700);
  font-size: 0.8125rem;
  font-weight: 600;
  transition:
    background 0.3s var(--ease),
    color 0.3s var(--ease),
    border-color 0.3s var(--ease);
}

.step:hover .step-num {
  border-color: var(--green-700);
  background: var(--green-700);
  color: var(--white);
}

.step h3 {
  margin-top: 1.25rem;
  color: var(--green-900);
  font-size: 1.0625rem;
}

.step p {
  margin-top: 0.45rem;
  font-size: 0.875rem;
  line-height: 1.75;
}

.step-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.9rem;
}

.step-tag {
  padding: 0.18rem 0.5rem;
  border-radius: var(--r-pill);
  background: #f5f8f7;
  color: #5b6b63;
  font-size: 0.6875rem;
}

/* --------------------------------------------------------------------------
   FAQ
   -------------------------------------------------------------------------- */

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

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.35rem 0;
  color: var(--green-900);
  cursor: pointer;
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.5;
  list-style: none;
}

.faq-q::-webkit-details-marker {
  display: none;
}

.faq-q::marker {
  display: none;
}

.faq-icon {
  display: grid;
  place-items: center;
  width: 1.75rem;
  height: 1.75rem;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--muted);
  flex: none;
  transition:
    transform 0.3s var(--ease),
    background 0.3s var(--ease),
    color 0.3s var(--ease),
    border-color 0.3s var(--ease);
}

.faq-icon .icon {
  width: 0.85rem;
  height: 0.85rem;
}

.faq-item[open] .faq-icon {
  border-color: transparent;
  background: var(--mint-100);
  color: var(--green-700);
  transform: rotate(45deg);
}

.faq-a {
  padding: 0 2.5rem 1.4rem 0;
  color: var(--text);
  font-size: 0.875rem;
  line-height: 1.85;
  animation: faqIn 0.3s var(--ease-out);
}

.faq-a p + p {
  margin-top: 0.5rem;
}

@keyframes faqIn {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* --------------------------------------------------------------------------
   CTA card
   -------------------------------------------------------------------------- */

.cta-card {
  position: relative;
  padding: clamp(1.75rem, 3vw, 2.5rem);
  overflow: hidden;
  border-radius: 1.75rem;
  background: linear-gradient(150deg, #0b3d2e, #08251d 60%, #0a3226);
  box-shadow: var(--shadow-lg);
  color: var(--white);
}

.cta-card::before {
  content: "";
  position: absolute;
  top: -6rem;
  right: -4rem;
  width: 16rem;
  height: 16rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 185, 130, 0.32), transparent 68%);
  pointer-events: none;
}

.cta-card::after {
  content: "";
  position: absolute;
  right: -3rem;
  bottom: -5rem;
  width: 12rem;
  height: 12rem;
  border: 1px solid rgba(110, 231, 183, 0.16);
  border-radius: 50%;
  box-shadow: inset 0 0 0 2rem rgba(110, 231, 183, 0.03);
  pointer-events: none;
}

.cta-card .eyebrow {
  color: var(--green-300);
}

.cta-card h3 {
  position: relative;
  z-index: 1;
  margin-top: 0.9rem;
  color: var(--white);
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  letter-spacing: -0.03em;
  line-height: 1.3;
}

.cta-card p {
  position: relative;
  z-index: 1;
  margin-top: 0.85rem;
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.875rem;
  line-height: 1.8;
}

.cta-actions {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.5rem;
}

.cta-note {
  position: relative;
  z-index: 1;
  margin-top: 1rem;
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.6875rem;
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   Booking modal
   -------------------------------------------------------------------------- */

.modal {
  width: min(35rem, calc(100% - 2rem));
  max-width: 100%;
  max-height: calc(100vh - 2rem);
  padding: 0;
  margin: auto;
  overflow: visible;
  border: 0;
  border-radius: 1.5rem;
  background: transparent;
  color: var(--text);
}

.modal::backdrop {
  background: rgba(4, 22, 15, 0.56);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.modal[open] {
  animation: modalIn 0.28s var(--ease-out);
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.modal-card {
  max-height: calc(100vh - 2rem);
  padding: clamp(1.25rem, 3vw, 1.75rem);
  overflow: auto;
  border-radius: 1.5rem;
  background: var(--white);
  box-shadow: 0 40px 100px -30px rgba(0, 0, 0, 0.5);
}

.modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.modal-title {
  color: var(--green-900);
  font-size: 1.375rem;
  letter-spacing: -0.03em;
}

.modal-sub {
  margin-top: 0.35rem;
  color: var(--muted);
  font-size: 0.8125rem;
  line-height: 1.7;
}

.modal-close {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--muted);
  flex: none;
  transition:
    background 0.2s var(--ease),
    color 0.2s var(--ease);
}

.modal-close:hover {
  background: var(--mint-100);
  color: var(--green-700);
}

.modal-close .icon {
  width: 0.9rem;
  height: 0.9rem;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
  margin-top: 1.25rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

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

.field label {
  color: var(--green-900);
  font-size: 0.75rem;
  font-weight: 600;
}

.field label span {
  color: var(--red);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 0.65rem;
  background: var(--white);
  font-size: 0.875rem;
  line-height: 1.5;
  transition:
    border-color 0.2s var(--ease),
    box-shadow 0.2s var(--ease);
}

.field textarea {
  min-height: 5.25rem;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--green-500);
  box-shadow: 0 0 0 3px rgba(0, 185, 130, 0.12);
}

.field input::placeholder,
.field textarea::placeholder {
  color: #b6c0bb;
}

.form-actions {
  display: flex;
  gap: 0.65rem;
  margin-top: 1.25rem;
}

.form-actions .btn {
  flex: 1;
}

.form-note {
  margin-top: 0.85rem;
  color: var(--faint);
  font-size: 0.6875rem;
  line-height: 1.65;
}

.booking-result {
  display: none;
  margin-top: 1rem;
  padding: 0.85rem;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  background: var(--bg-soft);
}

.booking-result.is-visible {
  display: block;
}

.booking-result p {
  margin-bottom: 0.4rem;
  color: var(--muted);
  font-size: 0.75rem;
}

.booking-result textarea {
  width: 100%;
  min-height: 7rem;
  padding: 0.6rem;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  background: var(--white);
  color: var(--text);
  font-size: 0.75rem;
  line-height: 1.7;
  resize: vertical;
}

/* --------------------------------------------------------------------------
   Toast / back to top
   -------------------------------------------------------------------------- */

.toast {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  z-index: var(--z-toast);
  max-width: calc(100% - 2rem);
  padding: 0.75rem 1.1rem;
  border-radius: 0.75rem;
  background: var(--green-900);
  box-shadow: var(--shadow-md);
  color: var(--white);
  font-size: 0.8125rem;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 1rem);
  transition:
    opacity 0.25s var(--ease),
    transform 0.25s var(--ease);
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.to-top {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 90;
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  color: var(--green-700);
  opacity: 0;
  pointer-events: none;
  transform: translateY(0.5rem);
  transition:
    opacity 0.25s var(--ease),
    transform 0.25s var(--ease),
    background 0.25s var(--ease);
}

.to-top:hover {
  background: var(--mint-100);
}

.to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

/* --------------------------------------------------------------------------
   Responsive components
   -------------------------------------------------------------------------- */

@media (max-width: 1120px) {
  .floating-panel {
    width: 13.5rem;
  }

  .floating-panel--sop {
    width: 14rem;
  }

  .floating-panel--timeline {
    right: -2%;
  }

  .floating-panel--sop {
    left: -2%;
  }

  .floating-panel--exam {
    right: -2%;
  }
}

@media (max-width: 980px) {
  .browser-body {
    grid-template-columns: 10rem minmax(0, 1fr);
  }

  .ai-workbench {
    grid-template-columns: 14rem minmax(0, 1fr);
  }

  .ai-tab-desc {
    display: none;
  }

  .ai-tab {
    align-items: center;
  }
}

@media (max-width: 760px) {
  .hero-badge {
    font-size: 0.6875rem;
  }

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

  .admin-side {
    display: none;
  }

  .admin-main {
    padding: 0.85rem;
  }

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

  .ai-workbench {
    grid-template-columns: 1fr;
    padding: 0.75rem;
  }

  .ai-tabs {
    flex-direction: row;
    gap: 0.25rem;
    padding: 0 0 0.6rem;
    overflow-x: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line-soft);
    scrollbar-width: none;
  }

  .ai-tabs::-webkit-scrollbar {
    display: none;
  }

  .ai-tab {
    padding: 0.5rem 0.65rem;
    flex: none;
    white-space: nowrap;
  }

  .ai-tab-desc {
    display: none;
  }

  .chat {
    min-height: auto;
  }

  .module-visual .floating-panel {
    position: static;
    width: 100%;
    max-width: 22rem;
    margin-top: 1rem;
  }

  .visual-stage {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .cap-card--wide {
    display: block;
  }

  .cap-card--wide .cap-top {
    margin-bottom: 1rem;
  }

  .cap-card--wide .cap-tags {
    justify-content: flex-start;
    padding-top: 1rem;
  }

  .table-hint {
    display: block;
  }

  .compare-table {
    min-width: 34rem;
  }

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

  .to-top {
    right: 1rem;
    bottom: 1rem;
  }
}

@media (max-width: 560px) {
  .cap-card,
  .value-card,
  .scenario {
    padding: 1.35rem;
  }

  .cap-card--wide {
    padding: 1.35rem;
  }

  .float-card {
    padding: 0.75rem 0.8rem;
  }

  .floating-panel {
    padding: 0.8rem 0.9rem;
  }

  .cta-actions .btn {
    flex: 1 1 100%;
  }

  .msg {
    max-width: 100%;
  }

  .msg-bubble {
    font-size: 0.8125rem;
  }

  .chat-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.35rem;
  }
}

@media (max-width: 340px) {
  .phone {
    width: 17.5rem;
    height: 37.5rem;
    border-radius: 2.5rem;
  }

  .phone-screen {
    border-radius: 2rem;
  }

  .phone::after {
    border-radius: 2rem;
  }

  .h5-greet {
    font-size: 0.95rem;
  }

  .h5-body {
    padding-inline: 0.55rem;
  }
}

/* --------------------------------------------------------------------------
   Supplemental blocks
   -------------------------------------------------------------------------- */

.h5-customer-info {
  min-width: 0;
  flex: 1;
}

.h5-customer-top > .h5-badge {
  margin-left: auto;
}

/* Pain points */

.pain-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: clamp(2.5rem, 4vw, 3.5rem);
}

.pain-card {
  position: relative;
  padding: 1.75rem;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 1.5rem;
  background: var(--white);
  transition:
    transform 0.4s var(--ease-out),
    box-shadow 0.4s var(--ease),
    border-color 0.4s var(--ease);
}

.pain-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--green-500), transparent);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}

.pain-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 127, 95, 0.18);
  box-shadow: var(--shadow-md);
}

.pain-card:hover::before {
  opacity: 1;
}

.pain-num {
  color: var(--mint-200);
  font-size: 2.5rem;
  font-weight: 600;
  letter-spacing: -0.05em;
  line-height: 1;
  transition: color 0.4s var(--ease);
}

.pain-card:hover .pain-num {
  color: var(--green-500);
}

.pain-card h3 {
  margin-top: 1.25rem;
  color: var(--green-900);
  font-size: 1.125rem;
}

.pain-card p {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  line-height: 1.8;
}

.pain-shift {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 2.5rem;
  padding: 1.1rem 1.35rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--mint-50);
  color: var(--green-800);
  font-size: 0.9375rem;
  line-height: 1.7;
}

.pain-shift .icon {
  width: 1.15rem;
  height: 1.15rem;
  color: var(--green-700);
}

/* Wide capability card body */

.cap-card--wide .cap-body {
  min-width: 0;
}

.cap-card--wide .cap-body h3 {
  color: var(--green-900);
  font-size: 1.125rem;
  letter-spacing: -0.02em;
}

.cap-card--wide .cap-body p {
  margin-top: 0.2rem;
  font-size: 0.875rem;
  line-height: 1.7;
}

/* Content pipeline */

.pipeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.4rem;
  margin-top: 1.5rem;
}

.pipeline-step {
  position: relative;
  padding: 0.55rem 0.45rem;
  border: 1px solid var(--line);
  border-radius: 0.65rem;
  background: var(--white);
  color: var(--green-900);
  font-size: 0.6875rem;
  font-weight: 500;
  line-height: 1.4;
  text-align: center;
}

.pipeline-step b {
  display: block;
  margin-bottom: 0.1rem;
  color: var(--faint);
  font-size: 0.5rem;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.pipeline-step::after {
  content: "→";
  position: absolute;
  top: 50%;
  right: -0.42rem;
  z-index: 1;
  color: var(--faint);
  font-size: 0.6rem;
  line-height: 1;
  transform: translateY(-50%);
}

.pipeline-step:last-child::after {
  display: none;
}

/* Role head */

.role-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  margin-top: clamp(3.5rem, 6vw, 5rem);
}

.role-head h3 {
  margin-top: 0.75rem;
  color: var(--green-900);
  font-size: clamp(1.5rem, 2.4vw, 1.875rem);
  letter-spacing: -0.03em;
  line-height: 1.3;
}

.role-head > p {
  max-width: 27rem;
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.75;
  text-align: right;
}

/* FAQ aside */

.faq-aside {
  position: sticky;
  top: calc(var(--nav-h) + 2rem);
}

/* Footer note */

.footer-note {
  margin-top: 0.75rem;
  color: var(--faint);
  font-size: 0.6875rem;
  line-height: 1.7;
}

.footer-location {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.footer-location .icon {
  width: 0.8rem;
  height: 0.8rem;
  color: var(--faint);
}

/* Product module — wider visual column */

.module--wide-visual {
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
}

.browser--product {
  max-width: 40rem;
}

.browser--product .browser-body {
  grid-template-columns: 9rem minmax(0, 1fr);
  min-height: 23rem;
}

.browser--product .admin-main {
  padding: 0.8rem 0.85rem;
}

.browser--product .data-table {
  font-size: 0.44rem;
}

.browser--product .data-table th {
  font-size: 0.36rem;
}

@media (max-width: 1120px) {
  .browser--product .browser-body {
    grid-template-columns: 8.5rem minmax(0, 1fr);
  }
}

@media (max-width: 980px) {
  .pain-grid {
    grid-template-columns: 1fr;
  }

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

  .faq-aside {
    position: static;
  }

  .role-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 1rem;
  }

  .role-head > p {
    max-width: 34rem;
    text-align: left;
  }
}

@media (max-width: 760px) {
  .browser--product .browser-body {
    grid-template-columns: 1fr;
  }

  .pipeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
  }

  .pipeline-step::after {
    display: none;
  }
}

@media (max-width: 560px) {
  .pain-card {
    padding: 1.35rem;
  }

  .pain-shift {
    align-items: flex-start;
    padding: 1rem 1.1rem;
    font-size: 0.875rem;
  }

  .role-card {
    padding: 1.35rem;
  }
}

/* --------------------------------------------------------------------------
   Refinements — hero floats, capability mini, learning extras
   -------------------------------------------------------------------------- */

.float-card--ai {
  top: 6%;
  left: -10%;
}

.float-card--sop {
  right: -8%;
  bottom: 4%;
}

@media (min-width: 981px) and (max-width: 1200px) {
  .float-card {
    display: none;
  }
}

@media (max-width: 980px) {
  .hero-visual {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.875rem;
  }

  .hero-visual .phone {
    align-self: center;
    margin-bottom: 1rem;
  }

  .float-card {
    position: relative;
    top: auto;
    right: auto;
    bottom: auto;
    left: auto;
    width: min(100%, 22rem);
    align-self: center;
    animation: none;
  }
}

/* Capability mini progress */

.cap-mini {
  margin-top: 1.25rem;
  padding: 0.7rem 0.8rem;
  border: 1px solid rgba(0, 127, 95, 0.12);
  border-radius: 0.7rem;
  background: rgba(255, 255, 255, 0.72);
}

.cap-mini-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  color: #4b5563;
  font-size: 0.6875rem;
  line-height: 1.4;
}

.cap-mini-head b {
  color: var(--green-700);
  font-size: 0.75rem;
  font-weight: 600;
}

.cap-mini-bar {
  height: 4px;
  margin-top: 0.5rem;
  overflow: hidden;
  border-radius: var(--r-pill);
  background: rgba(0, 127, 95, 0.1);
}

.cap-mini-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #00b982, #007f5f);
}

.cap-mini-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: 0.5rem;
  color: var(--faint);
  font-size: 0.625rem;
  line-height: 1.4;
}

.cap-mini-foot b {
  color: var(--green-800);
  font-weight: 600;
}

/* Learning phone extras */

.h5-exam-remind {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  margin-top: 0.45rem;
  padding: 0.45rem 0.55rem;
  border: 1px solid #fdebcb;
  border-radius: 0.55rem;
  background: #fff8ec;
}

.h5-exam-remind b {
  display: block;
  color: #8a4b00;
  font-size: 0.44rem;
  font-weight: 600;
  line-height: 1.3;
}

.h5-exam-remind > div > span {
  display: block;
  margin-top: 0.05rem;
  color: #a97a3a;
  font-size: 0.34rem;
  line-height: 1.4;
}

.h5-exam-btn {
  flex: none;
  padding: 0.12rem 0.3rem;
  border-radius: 0.25rem;
  background: #b45309;
  color: var(--white);
  font-size: 0.36rem;
}

.h5-study-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.35rem;
  margin-top: 0.4rem;
}

.h5-study-links span {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  padding: 0.35rem 0.4rem;
  border-radius: 0.5rem;
  background: var(--white);
  box-shadow: var(--shadow-xs);
  color: #4b5563;
  font-size: 0.4rem;
}

.h5-study-links .icon {
  width: 0.5rem;
  height: 0.5rem;
  color: var(--green-600);
}

.h5-study-links b {
  margin-left: auto;
  color: var(--green-700);
  font-weight: 600;
}

/* Admin insight row */

.admin-note-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 0.75rem;
  margin-top: 0.55rem;
  padding-top: 0.45rem;
  border-top: 1px dashed var(--line-soft);
  color: var(--muted);
  font-size: 0.36rem;
  line-height: 1.5;
}

.admin-note-row span {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
}

.admin-note-row i {
  width: 0.2rem;
  height: 0.2rem;
  border-radius: 50%;
  background: var(--green-400);
}

.chart-bars {
  height: 5rem;
}

/* Product dashboard legibility */

.browser--product .side-item {
  font-size: 0.5rem;
}

.browser--product .side-group {
  font-size: 0.42rem;
}

.browser--product .admin-title {
  font-size: 0.8rem;
}

.browser--product .admin-sub {
  font-size: 0.44rem;
}

.browser--product .kpi-label {
  font-size: 0.4rem;
}

.browser--product .kpi-value {
  font-size: 1rem;
}

.browser--product .kpi-trend {
  font-size: 0.36rem;
}

.browser--product .data-table {
  font-size: 0.48rem;
}

.browser--product .data-table th {
  font-size: 0.4rem;
}

.browser--product .cell-sub {
  font-size: 0.36rem;
}

.browser--product .status-chip {
  font-size: 0.36rem;
}

/* Metric labels stay on a single line where possible */

.metric-label {
  text-wrap: pretty;
}

/* Slightly larger H5 type for legibility at presentation size */

.h5-sub {
  font-size: 0.56rem;
}

.h5-stat-label {
  font-size: 0.52rem;
}

.h5-stat-note {
  font-size: 0.43rem;
}

.h5-mini-label {
  font-size: 0.44rem;
}

.h5-card-head {
  font-size: 0.58rem;
}

.h5-card-head em {
  font-size: 0.48rem;
}

.h5-progress-value {
  font-size: 0.95rem;
}

.h5-progress-value small {
  font-size: 0.46rem;
}

.h5-progress-meta {
  font-size: 0.47rem;
}

.h5-chip {
  font-size: 0.44rem;
}

.h5-chip .icon {
  width: 0.46rem;
  height: 0.46rem;
}

.h5-quick-title {
  font-size: 0.52rem;
}

.h5-quick-sub {
  font-size: 0.43rem;
}

.h5-quick-badge {
  font-size: 0.38rem;
}

.h5-tab {
  font-size: 0.4rem;
}

.h5-tab .icon {
  width: 0.66rem;
  height: 0.66rem;
}

.h5-page-title {
  font-size: 0.88rem;
}

.h5-page-sub {
  font-size: 0.45rem;
}

.h5-search {
  font-size: 0.46rem;
}

.h5-segment {
  font-size: 0.55rem;
}

.h5-avatar-sm {
  font-size: 0.5rem;
}

.h5-customer-name {
  font-size: 0.57rem;
}

.h5-customer-meta {
  font-size: 0.43rem;
}

.h5-customer-tag {
  font-size: 0.4rem;
}

.h5-customer-foot {
  font-size: 0.4rem;
}

.h5-badge {
  font-size: 0.37rem;
}

.h5-more {
  font-size: 0.4rem;
}

.h5-task-name {
  font-size: 0.55rem;
}

.h5-task-title {
  font-size: 0.45rem;
}

.h5-task-meta {
  font-size: 0.4rem;
}

.h5-task-owner,
.h5-task-action {
  font-size: 0.4rem;
}

.h5-task-stat span {
  font-size: 0.4rem;
}

.h5-task-tab {
  font-size: 0.44rem;
}

.h5-study-title {
  font-size: 0.6rem;
}

.h5-study-sub {
  font-size: 0.45rem;
}

.h5-study-btn {
  font-size: 0.4rem;
}

.h5-course-title {
  font-size: 0.53rem;
}

.h5-course-title span {
  font-size: 0.36rem;
}

.h5-course-sub {
  font-size: 0.41rem;
}

.h5-course-foot {
  font-size: 0.36rem;
}

.h5-exam-remind b {
  font-size: 0.5rem;
}

.h5-exam-remind > div > span {
  font-size: 0.4rem;
}

.h5-exam-btn {
  font-size: 0.4rem;
}

.h5-study-links span {
  font-size: 0.45rem;
}

.browser--product .browser-body {
  min-height: 20rem;
}

/* Prevent wide comparison tables from expanding mobile grid columns */

.compare > * {
  min-width: 0;
}

.table-scroll {
  max-width: 100%;
}

@media (max-width: 1100px) {
  .compare-table {
    min-width: 32rem;
  }

  .compare-table thead th,
  .compare-table tbody th,
  .compare-table td {
    padding-right: 0.8rem;
    padding-left: 0.8rem;
  }
}

/* Mobile: value cards stack, comparison table becomes cards */

@media (max-width: 640px) {
  .value-grid {
    grid-template-columns: 1fr;
  }

  .table-scroll {
    overflow: visible;
  }

  .compare-table {
    min-width: 0;
    overflow: visible;
    border: 0;
    background: transparent;
  }

  .compare-table thead {
    display: none;
  }

  .compare-table tbody,
  .compare-table tr {
    display: block;
  }

  .compare-table tbody tr {
    margin-bottom: 0.7rem;
    padding: 1rem 1.1rem;
    border: 1px solid var(--line);
    border-radius: 1rem;
    background: var(--white);
  }

  .compare-table tbody th {
    display: block;
    width: auto;
    padding: 0 0 0.55rem;
    border: 0;
    font-size: 0.9375rem;
    white-space: normal;
  }

  .compare-table tbody td {
    display: block;
    padding: 0.4rem 0;
    border: 0;
    background: transparent;
    font-size: 0.8125rem;
    line-height: 1.7;
  }

  .compare-table tbody td::before {
    display: block;
    margin-bottom: 0.12rem;
    font-size: 0.625rem;
    font-weight: 600;
    letter-spacing: 0.06em;
  }

  .compare-table tbody td:first-of-type::before {
    content: "传统方式";
    color: var(--faint);
  }

  .compare-table tbody td:last-child {
    margin-top: 0.3rem;
    padding-top: 0.5rem;
    border-top: 1px dashed var(--line-soft);
    color: #374151;
  }

  .compare-table tbody td:last-child::before {
    content: "FranChai 方式";
    color: var(--green-700);
  }

  .compare-table tr:first-child th,
  .compare-table tr:first-child td {
    border-top: 0;
  }

  .table-hint {
    display: none;
  }
}
