/**
 * General EduTech Centre — Hero Desktop Simulator Stylesheet
 * M1 Rewrite: Classic Windows chrome, light wallpaper, boot overlay, proper layout.
 * Z-index layers: wallpaper 0, icons 1, windows 10-99, taskbar 100, toast 120, ghost 130, boot 200
 */

/* ============================================================
   0. SKIP SIMULATOR (Accessibility)
   ============================================================ */
.hd-skip-simulator {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
  z-index: 9999;
  font-size: 0.85rem;
  padding: 6px 14px;
  background: var(--navy, #12234A);
  color: #fff;
  border-radius: 4px;
  text-decoration: none;
}
.hd-skip-simulator:focus {
  position: fixed;
  left: 16px;
  top: 80px;
  width: auto;
  height: auto;
  overflow: visible;
}

/* ============================================================
   1. HERO SECTION & LAYOUT
   ============================================================ */
.hero-product-section {
  min-height: calc(100svh - 64px);
  display: flex;
  align-items: center;
  padding: 32px 0;
  background: #FBFBFC;
  /* Soft radial glow behind section - pointer-events: none, no overflow */
  position: relative;
  overflow: hidden;
}

/* Soft background accent - clamped to section */
.hero-product-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 80% 50%, rgba(186, 43, 62, 0.04) 0%, transparent 70%),
    radial-gradient(ellipse 50% 40% at 20% 30%, rgba(18, 35, 74, 0.04) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.hero-product-section > * {
  position: relative;
  z-index: 1;
}

.hero-product-grid {
  display: grid;
  grid-template-columns: minmax(0, 4.2fr) minmax(0, 7.8fr);
  gap: 40px;
  align-items: center;
}

@media (max-width: 991px) {
  .hero-product-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

.hero-copy-col {
  display: flex;
  flex-direction: column;
  padding-top: 0;
}

.hero-monitor-col {
  display: flex;
  flex-direction: column;
}

/* H1: Exactly two lines, navy only, no colored single words */
.hero-product-title {
  font-family: var(--font-headline, 'Schibsted Grotesk', 'Poppins', sans-serif);
  color: var(--navy, #12234A);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
  text-wrap: balance;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hd-h1-line1 {
  display: block;
  font-size: clamp(2.5rem, 4.2vw, 4rem) !important;
  font-weight: 700;
  line-height: 1.1 !important;
  color: var(--navy, #12234A);
}

.hd-h1-line2 {
  display: inline;
  font-size: clamp(1.75rem, 2.94vw, 2.8rem) !important;
  font-weight: 450;
  line-height: 1.15 !important;
  color: var(--navy, #12234A);
}

/* Crimson blinking caret after headline period */
.hd-caret-anchor {
  white-space: nowrap !important;
  display: inline;
}
.hd-caret {
  display: inline-block;
  width: 3px;
  height: 0.72em;
  background: var(--crimson, #BA2B3E);
  margin-left: 2px;
  vertical-align: baseline;
  animation: hd-caret-blink 1s steps(2, start) infinite;
}

@keyframes hd-caret-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .hd-caret { animation: none; opacity: 1; }
}

/* Live Cue Pill Button */
.hd-live-pill-wrapper {
  margin: 0 0 24px 0;
}

.hd-live-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: #FFFFFF;
  border: 1.5px solid #CBD5E1;
  border-radius: 999px;
  color: var(--navy, #12234A);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(18, 35, 74, 0.06);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
}

.hd-live-pill:hover,
.hd-live-pill:focus-visible {
  border-color: #BA2B3E;
  color: #BA2B3E;
  box-shadow: 0 4px 14px rgba(186, 43, 62, 0.14);
  transform: translateY(-1px);
  outline: none;
}

.hd-live-pill-arrow {
  display: inline-block;
  color: #BA2B3E;
  font-size: 1.05rem;
  font-weight: 700;
  transition: transform 0.2s ease;
  animation: hd-arrow-pulse 1.2s ease-in-out 2;
}

.hd-live-pill:hover .hd-live-pill-arrow {
  transform: translateX(3px);
}

@keyframes hd-arrow-pulse {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(4px); }
}

@media (prefers-reduced-motion: reduce) {
  .hd-live-pill-arrow {
    animation: none;
  }
}

/* Hide fixed bottom-left mascot and WhatsApp FAB while hero is in view */
body.hero-in-view #floatingMascotGuide,
body.hero-in-view .gec-floating-mascot-guide,
body.hero-in-view .discreet-float-contact {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transform: translateY(20px) !important;
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s !important;
}

/* Start button pulse ring */
.hd-start-btn.pulse-ring {
  animation: hd-start-pulse 600ms ease-out 1;
}

@keyframes hd-start-pulse {
  0% { box-shadow: 0 0 0 0 rgba(186, 43, 62, 0.7); }
  70% { box-shadow: 0 0 0 12px rgba(186, 43, 62, 0); }
  100% { box-shadow: 0 0 0 0 rgba(186, 43, 62, 0); }
}

@media (max-height: 800px) and (min-width: 992px) {
  .hero-product-section {
    padding: 12px 0 6px;
  }
}

@media (max-height: 680px) and (min-width: 992px) {
  .hero-product-section {
    padding: 6px 0 4px;
  }
}

.hero-product-sub {
  font-size: 1.0rem;
  color: var(--text-muted, #475569);
  line-height: 1.65;
  margin-bottom: 24px;
}

.hero-product-ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.hero-trust-pills {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.hero-trust-pill-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.hero-trust-pill-item svg { color: #107C41; flex-shrink: 0; }
.hero-trust-sep { color: #CBD5E1; font-size: 0.9rem; }

@media (max-width: 640px) {
  .hero-trust-pills { flex-wrap: wrap; gap: 8px 14px; }
}

/* ============================================================
   2. MONITOR CHASSIS, BEZEL, GLOW & STAND
   ============================================================ */
.hd-monitor-wrapper {
  position: relative;
  width: min(100%, calc(clamp(380px, calc(100svh - 220px), 640px) * 4 / 3));
  height: clamp(380px, calc(100svh - 220px), 640px);
  aspect-ratio: 4 / 3;
  container-type: size;
  overflow: visible;
  display: flex;
  flex-direction: column;
  user-select: none;
  /* Subtle 3D tilt on hover — desktop only */
  transition: transform 0.3s ease;
  transform-style: preserve-3d;
}

@media (hover: hover) and (pointer: fine) {
  .hd-monitor-wrapper:not(.hd-tilt-locked):hover {
    transform: perspective(1200px) rotateY(-1.5deg) rotateX(0.8deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hd-monitor-wrapper { transition: none; transform: none !important; }
}

@media (max-width: 767px) {
  .hero-product-grid {
    grid-template-columns: minmax(0, 1fr) !important;
    width: 100% !important;
  }
  .hero-copy-col,
  .hero-monitor-col {
    min-width: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  .hd-monitor-wrapper {
    width: 100% !important;
    max-width: 100% !important;
    aspect-ratio: 4 / 3 !important;
    height: auto !important;
    min-height: unset !important;
    container-type: inline-size !important;
    margin: 16px 0 0 !important;
    transform: none !important;
  }
  .hd-monitor-bezel {
    width: 100% !important;
    height: 100% !important;
    aspect-ratio: 4 / 3 !important;
    display: flex !important;
    flex-direction: column !important;
    box-sizing: border-box !important;
  }
  .hd-screen {
    width: 100% !important;
    height: 100% !important;
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    box-sizing: border-box !important;
  }
  .hd-wallpaper {
    width: 100% !important;
    height: 100% !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
  }
  .hd-checklist-outer {
    width: 100% !important;
    max-width: 100% !important;
  }
  .hd-checklist {
    width: 100% !important;
    max-width: 100% !important;
  }
}

/* LIVE badge — outside bezel, top-left of wrapper */
.hd-live-badge {
  position: absolute;
  top: -14px;
  left: 16px;
  z-index: 201;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.95);
  border: 1.5px solid #E2E8F0;
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 0.68rem;
  font-weight: 800;
  color: #BA2B3E;
  letter-spacing: 0.08em;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.hd-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #BA2B3E;
  box-shadow: 0 0 0 0 rgba(186, 43, 62, 0.4);
  animation: hd-live-pulse 2s infinite;
}

@keyframes hd-live-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(186,43,62,0.6); }
  70%  { box-shadow: 0 0 0 6px rgba(186,43,62,0); }
  100% { box-shadow: 0 0 0 0 rgba(186,43,62,0); }
}

@media (prefers-reduced-motion: reduce) {
  .hd-live-dot { animation: none; }
}

/* Power LED on bezel bottom chin (amber breathing while off, solid green when on) */
.hd-power-led {
  position: absolute;
  bottom: 2px;
  right: 22px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  z-index: 201;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.hd-power-led.is-amber {
  background: #F59E0B;
  box-shadow: 0 0 6px rgba(245, 158, 11, 0.6);
  animation: hd-led-amber 2.6s ease-in-out infinite;
}

.hd-power-led.is-green {
  background: #22C55E;
  box-shadow: 0 0 7px rgba(34, 197, 94, 0.85);
  animation: none;
}

@keyframes hd-led-amber {
  0%, 100% { opacity: 0.35; box-shadow: 0 0 3px rgba(245, 158, 11, 0.3); }
  50% { opacity: 1; box-shadow: 0 0 9px rgba(245, 158, 11, 0.95); }
}

@media (prefers-reduced-motion: reduce) {
  .hd-power-led.is-amber { animation: none; opacity: 1; }
}

/* ============================================================
   SCREEN OFF: Dark Glass & Centred Power Control
   ============================================================ */
.hd-screen-off {
  position: absolute;
  inset: 0;
  z-index: 500;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: radial-gradient(ellipse at 50% 45%, #182436 0%, #0B111D 70%, #05080E 100%);
  border-radius: inherit;
  overflow: hidden;
  transition: opacity 0.3s ease;
}

/* Subtle glass reflection highlight across dark glass */
.hd-screen-off::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 45%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0) 60%);
  pointer-events: none;
}

.hd-power-control-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  position: relative;
  z-index: 2;
  text-align: center;
}

.hd-power-btn {
  position: relative;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: linear-gradient(145deg, #1C2739 0%, #0D1522 100%);
  border: 2px solid rgba(186, 43, 62, 0.65);
  box-shadow:
    0 0 32px rgba(186, 43, 62, 0.45),
    inset 0 0 16px rgba(186, 43, 62, 0.25),
    0 8px 24px rgba(0, 0, 0, 0.6);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  outline: none;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease, border-color 0.2s ease;
}

@media (max-width: 768px) {
  .hd-power-btn {
    width: 72px;
    height: 72px;
  }
}

.hd-power-btn:hover {
  transform: scale(1.05);
  border-color: #BA2B3E;
  box-shadow:
    0 0 44px rgba(186, 43, 62, 0.7),
    inset 0 0 20px rgba(186, 43, 62, 0.4),
    0 10px 28px rgba(0, 0, 0, 0.7);
}

.hd-power-btn:focus-visible {
  outline: 3px solid #BA2B3E;
  outline-offset: 4px;
}

.hd-power-btn:active {
  transform: scale(0.96);
}

/* Slow pulse ring (using transform and opacity only) */
.hd-power-pulse {
  position: absolute;
  inset: -12px;
  border-radius: 50%;
  border: 2px solid rgba(186, 43, 62, 0.85);
  pointer-events: none;
  animation: hd-power-ring 2.8s cubic-bezier(0.24, 0, 0.38, 1) infinite;
}

@keyframes hd-power-ring {
  0% {
    transform: scale(0.92);
    opacity: 0.85;
  }
  50% {
    opacity: 0.3;
  }
  100% {
    transform: scale(1.42);
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hd-power-pulse {
    animation: none;
    opacity: 0;
  }
}

.hd-power-icon {
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.5));
}

.hd-power-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hd-power-heading {
  font-family: var(--font-headline, 'Poppins', sans-serif);
  font-size: 15px;
  font-weight: 600;
  color: #F8FAFC;
  letter-spacing: 0.01em;
}

.hd-power-sub {
  font-size: 12.5px;
  color: #94A3B8;
}

/* ============================================================
   CRT TURN-ON EFFECT (450ms)
   ============================================================ */
.hd-crt-line {
  position: absolute;
  inset: 0;
  z-index: 530;
  display: none;
  pointer-events: none;
  background: #FFFFFF;
}

.hd-crt-line.is-active {
  display: block;
  animation: hd-crt-turnon 450ms cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

@keyframes hd-crt-turnon {
  0% {
    opacity: 1;
    transform: scaleY(0.003) scaleX(0.05);
    background: #FFFFFF;
    box-shadow: 0 0 40px #FFFFFF;
  }
  35% {
    opacity: 1;
    transform: scaleY(0.006) scaleX(1);
    background: #FFFFFF;
    box-shadow: 0 0 60px #FFFFFF;
  }
  70% {
    opacity: 1;
    transform: scaleY(1) scaleX(1);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 0 100px #FFFFFF;
  }
  100% {
    opacity: 0;
    transform: scaleY(1) scaleX(1);
    background: transparent;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hd-crt-line.is-active {
    animation: hd-crt-fade 200ms ease-out forwards;
  }
  @keyframes hd-crt-fade {
    0% { opacity: 0.9; transform: none; background: #0F172A; }
    100% { opacity: 0; transform: none; background: transparent; }
  }
}

/* ============================================================
   BOOT SCREEN (900ms)
   ============================================================ */
.hd-boot-screen {
  position: absolute;
  inset: 0;
  z-index: 520;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #0B111D;
  gap: 16px;
}

.hd-boot-emblem {
  width: 64px;
  height: 64px;
  object-fit: contain;
  filter: drop-shadow(0 4px 16px rgba(0, 0, 0, 0.5));
}

.hd-boot-spinner {
  display: flex;
  gap: 6px;
}

.hd-boot-spinner span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #BA2B3E;
  animation: hd-boot-dot 1.1s infinite ease-in-out both;
}

.hd-boot-spinner span:nth-child(1) { animation-delay: -0.32s; }
.hd-boot-spinner span:nth-child(2) { animation-delay: -0.16s; }
.hd-boot-spinner span:nth-child(3) { animation-delay: 0s; }
.hd-boot-spinner span:nth-child(4) { animation-delay: 0.16s; }

@keyframes hd-boot-dot {
  0%, 80%, 100% { transform: scale(0.4); opacity: 0.4; }
  40% { transform: scale(1); opacity: 1; }
}

.hd-boot-text {
  font-size: 13px;
  color: #94A3B8;
  letter-spacing: 0.03em;
  margin: 0;
}

/* Dimmed checklist strip when screen is off */
.hd-checklist-outer.is-screen-off {
  opacity: 0.5;
  pointer-events: none;
  filter: grayscale(0.25);
  transition: opacity 0.3s ease, filter 0.3s ease;
}

/* Full-screen button outside bezel — cleanly separated from window controls */
.hd-fullscreen-btn {
  position: absolute;
  top: -14px;
  right: 16px;
  z-index: 205;
  height: 26px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.95);
  border: 1.5px solid #E2E8F0;
  border-radius: 999px;
  color: #12234A;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
  opacity: 1;
}

.hd-monitor-wrapper:hover .hd-fullscreen-btn { opacity: 1; }

.hd-fullscreen-btn:hover {
  background: #FFFFFF;
  border-color: #BA2B3E;
  color: #BA2B3E;
  box-shadow: 0 4px 12px rgba(186, 43, 62, 0.15);
  transform: translateY(-1px);
}

.hd-fullscreen-btn:focus-visible {
  outline: 2px solid #BA2B3E;
  outline-offset: 2px;
}

.hd-fullscreen-label {
  display: inline-block;
  line-height: 1;
}

@media (max-width: 480px) {
  .hd-fullscreen-label {
    display: none !important;
  }
  .hd-fullscreen-btn {
    padding: 4px 8px !important;
    height: 24px !important;
    gap: 4px !important;
    font-size: 0.62rem !important;
  }
}

/* Monitor outer bezel — dark navy with even padding on all four sides */
.hd-monitor-bezel {
  position: relative;
  z-index: 2;
  flex: 1;
  background: linear-gradient(180deg, #1C2B3E 0%, #111827 100%);
  border-radius: 14px;
  padding: 10px 10px 10px 10px;
  display: flex;
  flex-direction: column;
  box-shadow:
    0 28px 64px -16px rgba(15, 23, 42, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.08) inset;
  overflow: hidden;
}

/* Webcam dot */
.hd-monitor-camera {
  position: absolute;
  top: 5px;
  left: 50%;
  transform: translateX(-50%);
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #1F2937;
  box-shadow: 0 0 2px rgba(0,0,0,0.8) inset;
  z-index: 3;
}

/* Monitor stand & base */
.hd-monitor-stand {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 1;
  margin-top: -2px;
}

.hd-stand-neck {
  width: 80px;
  height: 20px;
  background: linear-gradient(to bottom, #374151, #1F2937);
  border-radius: 1px;
}

.hd-stand-foot {
  width: 180px;
  height: 8px;
  background: linear-gradient(to bottom, #4B5563, #1F2937);
  border-radius: 4px;
  box-shadow: 0 8px 16px -4px rgba(0, 0, 0, 0.35);
}

@media (max-width: 767px) {
  .hd-monitor-stand { display: none; }
}

/* ============================================================
   3. BOOT OVERLAY
   ============================================================ */
.hd-boot-overlay {
  position: absolute;
  inset: 0;
  z-index: 200;
  background: #FFFFFF;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  border-radius: 10px 10px 0 0;
  transition: opacity 0.35s ease;
}

.hd-boot-overlay.is-fading {
  opacity: 0;
  pointer-events: none;
}

.hd-boot-logo {
  width: 64px;
  height: 64px;
  object-fit: contain;
}

.hd-boot-spinner {
  display: flex;
  gap: 8px;
}

.hd-boot-spinner span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #BA2B3E;
  animation: hd-boot-dot 1.2s ease-in-out infinite;
}

.hd-boot-spinner span:nth-child(2) { animation-delay: 0.15s; background: #12234A; }
.hd-boot-spinner span:nth-child(3) { animation-delay: 0.30s; background: #BA2B3E; }
.hd-boot-spinner span:nth-child(4) { animation-delay: 0.45s; background: #12234A; }

@keyframes hd-boot-dot {
  0%, 80%, 100% { transform: scale(0.7); opacity: 0.5; }
  40%            { transform: scale(1.1); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .hd-boot-spinner { display: none; }
  .hd-boot-overlay { transition: none; }
}

.hd-boot-text {
  font-size: 0.78rem;
  color: #64748B;
  font-weight: 500;
}

/* ============================================================
   4. SCREEN CANVAS & WALLPAPER (LIGHT THEME)
   ============================================================ */
.hd-screen {
  position: relative;
  flex: 1;
  border-radius: 6px;
  overflow: hidden;
  background: #F4F6F9;
  display: flex;
  flex-direction: column;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.22);
}

/* Light wallpaper: paper-to-mist gradient with brand blooms */
.hd-wallpaper {
  position: relative;
  flex: 1;
  width: 100%;
  height: calc(100% - 40px);
  background:
    radial-gradient(ellipse 60% 60% at 70% 40%, rgba(186, 43, 62, 0.06) 0%, transparent 60%),
    radial-gradient(ellipse 50% 50% at 30% 70%, rgba(18, 35, 74, 0.05) 0%, transparent 60%),
    linear-gradient(160deg, #F8F9FB 0%, #EEF2F7 100%);
  /* Faint spreadsheet grid at 5% */
  background-image:
    linear-gradient(rgba(100,116,139,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(100,116,139,0.05) 1px, transparent 1px),
    radial-gradient(ellipse 60% 60% at 70% 40%, rgba(186, 43, 62, 0.06) 0%, transparent 60%),
    radial-gradient(ellipse 50% 50% at 30% 70%, rgba(18, 35, 74, 0.05) 0%, transparent 60%),
    linear-gradient(160deg, #F8F9FB 0%, #EEF2F7 100%);
  background-size: 24px 24px, 24px 24px, 100% 100%, 100% 100%, 100% 100%;
  /* Subtle vignette */
  box-shadow: inset 0 0 80px rgba(15,23,42,0.04);
  overflow: hidden;
}

/* GEC Logo lockup: bottom-right pocket, above tray/clock, below widgets */
.hd-wp-logo-lockup {
  position: absolute;
  right: 14px;
  bottom: calc(40px + 14px);
  left: auto;
  top: auto;
  transform: none;
  display: flex;
  align-items: center;
  gap: 8px;
  width: auto;
  max-width: none;
  pointer-events: none;
  z-index: 1;
  opacity: 0.92;
}

.hd-wp-logo-lockup .brand-anchor {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  max-width: none;
}

.hd-wp-logo-lockup .brand-logo-img {
  height: 32px;
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
}

.hd-wp-logo-lockup .brand-identity {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
}

.hd-wp-logo-lockup .brand-title-text {
  font-family: var(--font-headline, 'Schibsted Grotesk', 'Poppins', sans-serif);
  font-size: 0.82rem !important;
  font-weight: 800;
  color: var(--navy, #12234A);
  letter-spacing: 0.02em;
  line-height: 1.15;
  white-space: nowrap;
}

.hd-wp-logo-lockup .brand-word-general { color: var(--navy, #12234A); }
.hd-wp-logo-lockup .brand-word-edutech { color: var(--crimson, #BA2B3E); }
.hd-wp-logo-lockup .brand-word-centre  { color: var(--navy, #12234A); }

.hd-wp-logo-lockup .brand-subtitle-text {
  font-size: 0.58rem !important;
  font-weight: 600;
  color: #64748B;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

@media (max-width: 767px) {
  .hd-wp-logo-lockup {
    display: none !important;
  }
}

/* ============================================================
   RIGHT-SIDE DESKTOP WIDGETS (Section D: 232px Wide)
   ============================================================ */
.hd-desktop-widgets {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 232px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 5;
  pointer-events: auto;
}

.hd-widget {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

/* Widget 1: Greeting & Live Clock */
.hd-widget-greeting {
  padding: 10px 12px;
}
.hd-widget-clock {
  font-family: var(--font-headline, 'Poppins', sans-serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy, #12234A);
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}
.hd-widget-greeting-text {
  font-size: 0.72rem;
  font-weight: 500;
  color: #334155;
  margin-top: 2px;
  line-height: 1.35;
}
.hd-add-name-link {
  background: none;
  border: none;
  padding: 0;
  font-size: 0.65rem;
  color: var(--crimson, #BA2B3E);
  text-decoration: underline;
  cursor: pointer;
  margin-top: 4px;
  font-weight: 600;
  display: inline-block;
}
.hd-add-name-link:hover {
  color: #901B2B;
}

/* Widget 2: Caveat Sticky Note */
.hd-widget-sticky {
  background: #FEF9C3;
  border: 1px solid #FDE047;
  padding: 10px 12px 12px;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
  position: relative;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.hd-widget-sticky:hover {
  transform: translateY(-1px) rotate(-0.5deg);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.09);
}
.hd-sticky-tape {
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 12px;
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(226, 232, 240, 0.6);
  border-radius: 2px;
}
.hd-sticky-content {
  font-size: 0.70rem;
  color: #713F12;
  font-weight: 500;
  line-height: 1.4;
  margin-top: 2px;
}

/* Widget 3: Free Demo Class Tile */
.hd-widget-demo {
  padding: 10px 12px;
  background: #FFFFFF;
}
.hd-demo-badge {
  font-size: 0.58rem;
  font-weight: 700;
  color: var(--crimson, #BA2B3E);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.hd-demo-title {
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--navy, #12234A);
  margin-top: 3px;
  line-height: 1.3;
}
.hd-demo-date {
  font-size: 0.65rem;
  font-weight: 600;
  color: #15803D;
  margin-top: 2px;
}
.hd-demo-book-btn {
  width: 100%;
  margin-top: 8px;
  background: var(--crimson, #BA2B3E);
  color: #FFFFFF;
  border: none;
  border-radius: 4px;
  padding: 5px 8px;
  font-size: 0.68rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  transition: background 0.15s ease;
}
.hd-demo-book-btn:hover {
  background: #901B2B;
}

/* Item 12: Widget collapse on short monitor heights */
@container (max-height: 520px) {
  .hd-widget-sticky { display: none !important; }
}
@container (max-height: 440px) {
  .hd-widget-greeting { display: none !important; }
}
@container (max-height: 380px) {
  .hd-desktop-widgets { display: none !important; }
}

@media (max-width: 900px) {
  .hd-desktop-widgets { display: none !important; }
}

/* ============================================================
   5. WINDOW CHROME — Classic Windows Style
   ============================================================ */
.hd-win {
  position: absolute;
  display: flex;
  flex-direction: column;
  background: #FFFFFF;
  border-radius: 4px;
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.18),
    0 0 0 1px rgba(0,0,0,0.12);
  overflow: hidden;
  min-width: 280px;
  min-height: 200px;
  z-index: 10;
  transition: box-shadow 0.15s ease;
}

.hd-win.hd-win--active {
  box-shadow:
    0 16px 48px rgba(0, 0, 0, 0.28),
    0 0 0 1px rgba(18, 35, 74, 0.2);
  z-index: 50;
}

.hd-win:not(.hd-win--active) .hd-win-header {
  opacity: 0.75;
}

/* Opening animation: scale from icon */
.hd-win--opening {
  animation: hd-win-open 0.16s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes hd-win-open {
  from { transform: scale(0.97); opacity: 0; }
  to   { transform: scale(1);    opacity: 1; }
}

/* Title bar: 32px, flat, light grey */
.hd-win-header {
  height: 32px;
  display: flex;
  align-items: center;
  padding: 0 0 0 8px;
  gap: 8px;
  cursor: grab;
  user-select: none;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  flex-shrink: 0;
  background: #F3F4F6;
}

.hd-win-header:active { cursor: grabbing; }

/* Per-app titlebar accent */
.hd-win--excel .hd-win-header { background: linear-gradient(to right, #F0FDF4, #DCFCE7); }
.hd-win--tally .hd-win-header { background: linear-gradient(to right, #EFF6FF, #DBEAFE); color: #1B4F72; }
.hd-win--word  .hd-win-header { background: linear-gradient(to right, #EFF6FF, #DBEAFE); }
.hd-win--ai    .hd-win-header { background: linear-gradient(to right, #FDF2F8, #FCE7F3); }

.hd-win-app-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hd-win-title {
  font-size: 0.72rem;
  font-weight: 600;
  color: #1E293B;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
}

/* Windows-style control buttons — right-aligned, flat rectangular */
.hd-win-controls {
  display: flex;
  align-items: stretch;
  height: 32px;
  margin-left: auto;
  flex-shrink: 0;
}

.hd-win-btn {
  width: 46px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  color: #374151;
  cursor: pointer;
  transition: background 0.12s ease, color 0.12s ease;
  flex-shrink: 0;
  padding: 0;
  border-radius: 0;
}

.hd-win-btn:hover { background: rgba(0,0,0,0.08); }
.hd-win-btn:focus-visible {
  outline: 2px solid var(--crimson, #BA2B3E);
  outline-offset: -2px;
}

/* Close button: red hover */
.hd-win-close:hover {
  background: #E81123;
  color: #FFFFFF;
}

/* Tag badges on old-style windows — kept for backwards compat, not used in new */
.hd-win-tag {
  font-size: 0.62rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 3px;
  margin-right: 4px;
}

/* Window Body */
.hd-win-body {
  flex: 1;
  overflow: auto;
  display: flex;
  flex-direction: column;
  position: relative;
  background: #FFFFFF;
}

/* Bottom-right resize handle */
.hd-win-resize {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 14px;
  height: 14px;
  cursor: se-resize;
  z-index: 10;
  background: linear-gradient(135deg, transparent 50%, rgba(100, 116, 139, 0.3) 50%);
}

/* Maximized state */
.hd-win.is-maximized {
  border-radius: 0 !important;
  box-shadow: none !important;
}

@media (max-width: 767px) {
  .hd-win {
    position: absolute !important;
    left: 0 !important; top: 0 !important;
    width: 100% !important; height: 100% !important;
    border-radius: 0; box-shadow: none !important;
  }
  .hd-win-header { height: 36px; }
  .hd-win-resize { display: none; }
}

/* ============================================================
   6. TASKBAR — Light frosted
   ============================================================ */
.hd-monitor-wrapper.is-screen-off .hd-taskbar,
.hd-monitor-frame.is-screen-off .hd-taskbar,
.is-screen-off .hd-taskbar,
.hd-taskbar.is-hidden-off {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.hd-taskbar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40px;
  background: rgba(255, 255, 255, 0.70);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid rgba(0,0,0,0.1);
  display: flex;
  align-items: center;
  padding: 0 6px;
  gap: 4px;
  z-index: 100;
  font-family: 'Hind Vadodara', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 12.5px;
}

.hd-taskbar-start {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 4px 8px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 4px;
  color: #374151;
  font-family: 'Hind Vadodara', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  user-select: none;
  transition: all 0.12s ease;
  flex-shrink: 0;
}

.hd-taskbar-start:hover {
  background: rgba(0, 0, 0, 0.06);
  color: #111827;
}

.hd-taskbar-start.is-active,
.hd-taskbar-start[aria-expanded="true"] {
  background: rgba(18, 35, 74, 0.08);
  border-color: rgba(18, 35, 74, 0.15);
  border-bottom: 2px solid var(--navy, #12234A);
  color: #12234A;
}

.hd-taskbar-start:focus-visible { outline: 2px solid var(--crimson, #BA2B3E); outline-offset: 2px; }

.hd-taskbar-apps {
  display: flex;
  gap: 2px;
  flex: 1;
  overflow-x: auto;
}

.hd-taskbar-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 4px 8px;
  border-radius: 4px;
  border: 1px solid transparent;
  background: transparent;
  color: #374151;
  font-family: 'Hind Vadodara', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  position: relative;
  transition: all 0.12s ease;
  user-select: none;
  white-space: nowrap;
  flex-shrink: 0;
}

.hd-taskbar-btn:hover {
  background: rgba(0,0,0,0.06);
  color: #111827;
}

.hd-taskbar-btn.is-active {
  background: rgba(18, 35, 74, 0.08);
  border-color: rgba(18, 35, 74, 0.15);
  border-bottom: 2px solid var(--navy, #12234A);
  color: #12234A;
}

.hd-taskbar-btn:focus-visible {
  outline: 2px solid var(--crimson, #BA2B3E);
  outline-offset: 2px;
}

@media (max-width: 1365px) {
  .hd-taskbar-btn .hd-taskbar-label {
    display: none !important;
  }
  .hd-taskbar-btn {
    padding: 4px 6px;
  }
}

/* Running dot below icon */
.hd-taskbar-indicator {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: transparent;
  transition: background 0.2s;
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
}

.hd-taskbar-btn.is-running .hd-taskbar-indicator {
  background: var(--navy, #12234A);
}

/* Tour pulse */
.hd-taskbar-btn.tour-pulse::after {
  content: '';
  position: absolute;
  top: 3px; right: 3px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #F59E0B;
  box-shadow: 0 0 0 2px rgba(245,158,11,0.4);
  animation: hd-tour-pulse 1.6s infinite;
}

@keyframes hd-tour-pulse {
  0%   { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(245,158,11,0.7); }
  70%  { transform: scale(1.15); box-shadow: 0 0 0 5px rgba(245,158,11,0); }
  100% { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(245,158,11,0); }
}

@media (prefers-reduced-motion: reduce) {
  .hd-taskbar-btn.tour-pulse::after { animation: none; }
}

/* Taskbar tray (right) */
.hd-taskbar-tray {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 4px;
  flex-shrink: 0;
}

.hd-tray-btn {
  background: transparent;
  border: none;
  color: #6B7280;
  cursor: pointer;
  padding: 2px 4px;
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s ease, background-color 0.15s ease;
}
.hd-tray-btn:hover {
  color: #12234A;
  background: rgba(0, 0, 0, 0.05);
}
.hd-tray-btn:focus-visible {
  outline: 2px solid #BA2B3E;
  outline-offset: 1px;
}

.hd-skip-simulator-link {
  position: absolute;
  top: -9999px;
  left: 10px;
  background: #12234A;
  color: #FFFFFF;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  z-index: 200;
  text-decoration: none;
}
.hd-skip-simulator-link:focus {
  top: 10px;
  outline: 2px solid #BA2B3E;
}

.hd-tray-icon {
  color: #6B7280;
  display: flex;
  align-items: center;
}

.hd-tray-progress {
  font-size: 0.62rem;
  font-weight: 700;
  color: #6B7280;
  font-family: 'IBM Plex Mono', monospace;
}

.hd-taskbar-clock {
  font-family: 'Hind Vadodara', -apple-system, BlinkMacSystemFont, sans-serif !important;
  font-size: 12.5px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: #374151;
  padding: 0 4px;
  white-space: nowrap;
}

.hd-taskbar-icon {
  display: flex;
  align-items: center;
}

@media (max-width: 767px) { .hd-taskbar { display: none; } }

/* ============================================================
   7. MASCOT (inside desktop layer, bottom-left under column 1)
   ============================================================ */
.hd-mascot {
  position: absolute;
  left: 12px;
  bottom: calc(40px + 4px);
  width: 64px;
  height: 64px;
  z-index: 20;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
  animation: hd-mascot-walkin 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

@keyframes hd-mascot-walkin {
  0% { transform: translateX(-80px); opacity: 0; }
  100% { transform: translateX(0); opacity: 1; }
}

.hd-mascot-img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,0.22));
  animation: hd-mascot-bob 4.5s ease-in-out infinite;
  pointer-events: auto;
}

@keyframes hd-mascot-bob {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-4px); }
}

@media (prefers-reduced-motion: reduce) {
  .hd-mascot, .hd-mascot-img { animation: none !important; }
}

@media (max-width: 1365px) {
  .hd-mascot, .hd-mascot-img {
    width: 56px;
    height: 56px;
  }
}

@container (max-height: 400px) {
  .hd-mascot {
    display: none !important;
  }
}

/* Speech bubble to its right and upward (max-width 200px, pointer-events none) */
.hd-mascot-bubble {
  position: absolute;
  left: 54px;
  bottom: 50px;
  max-width: 200px;
  min-width: 140px;
  background: #FFFFFF;
  color: #12234A;
  padding: 8px 12px;
  border-radius: 12px 12px 12px 2px;
  box-shadow: 0 4px 16px rgba(18, 35, 74, 0.14);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
  border: 1.5px solid #E2E8F0;
  pointer-events: none;
  z-index: 30;
  white-space: normal;
}

.hd-mascot-bubble::after {
  content: '';
  position: absolute;
  left: -7px;
  bottom: 10px;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-right: 7px solid #FFFFFF;
}

.hd-bubble-in {
  animation: hd-bubble-fade 0.22s cubic-bezier(0.16,1,0.3,1);
}

@keyframes hd-bubble-fade {
  from { opacity: 0; transform: translateY(4px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* Mascot Quick Menu popover */
.hd-mascot-popover {
  position: absolute;
  bottom: 68px;
  left: 0;
  background: #FFFFFF;
  border: 1px solid rgba(18, 35, 74, 0.15);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 170px;
  z-index: 50;
}
.hd-mascot-item {
  display: flex;
  align-items: center;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 600;
  color: #12234A;
  background: transparent;
  border: none;
  border-radius: 4px;
  text-decoration: none;
  cursor: pointer;
  text-align: left;
}
.hd-mascot-item:hover {
  background: #F1F5F9;
  color: #BA2B3E;
}

/* ============================================================
   8. IN-SCREEN TOAST (Welcome)
   ============================================================ */
.hd-screen-toast {
  position: absolute;
  bottom: 52px;
  right: 12px;
  z-index: 120;
  width: 280px;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.16);
  overflow: hidden;
  animation: hd-toast-slide-in 0.3s cubic-bezier(0.16,1,0.3,1);
}

@keyframes hd-toast-slide-in {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hd-toast-header {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 10px 6px;
  background: var(--navy, #12234A);
  border-radius: 7px 7px 0 0;
}

.hd-toast-title {
  font-size: 0.7rem;
  font-weight: 700;
  color: #FFFFFF;
  flex: 1;
}

.hd-toast-close {
  background: none;
  border: none;
  color: rgba(255,255,255,0.7);
  cursor: pointer;
  font-size: 0.8rem;
  line-height: 1;
  padding: 0 2px;
}

.hd-toast-close:hover { color: #fff; }

.hd-toast-body {
  padding: 8px 10px;
  font-size: 0.72rem;
  color: #374151;
  line-height: 1.45;
}

.hd-toast-actions {
  display: flex;
  gap: 6px;
  padding: 0 10px 10px;
}

.hd-toast-btn-primary {
  padding: 5px 12px;
  background: var(--crimson, #BA2B3E);
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 700;
  cursor: pointer;
}

.hd-toast-btn-secondary {
  padding: 5px 10px;
  background: #F1F5F9;
  color: #374151;
  border: 1px solid #E2E8F0;
  border-radius: 4px;
  font-size: 0.7rem;
  cursor: pointer;
}

/* ============================================================
   9. GHOST CURSOR (Attention choreography)
   ============================================================ */
.hd-ghost-cursor {
  position: absolute;
  width: 20px;
  height: 20px;
  pointer-events: none;
  z-index: 130;
  transition: left 0.9s cubic-bezier(0.2,0.8,0.2,1), top 0.9s cubic-bezier(0.2,0.8,0.2,1), opacity 0.3s ease;
}

.hd-ghost-cursor::after {
  content: '';
  display: block;
  width: 0;
  height: 0;
  border-top: 10px solid var(--navy, #12234A);
  border-right: 7px solid transparent;
  filter: drop-shadow(1px 1px 2px rgba(0,0,0,0.3));
}

/* ============================================================
   10. EXCEL SPREADSHEET APP
   ============================================================ */
.hd-excel {
  display: flex;
  flex-direction: column;
  height: 100%;
  font-size: 0.72rem;
  background: #FFFFFF;
}

.hd-excel-toolbar {
  display: flex;
  align-items: center;
  padding: 3px 6px;
  background: #F8FAFC;
  border-bottom: 1px solid #E2E8F0;
  gap: 3px;
  flex-wrap: nowrap;
  overflow-x: auto;
  flex-shrink: 0;
}

.hd-tb-btn {
  padding: 2px 7px;
  font-size: 0.68rem;
  font-weight: 600;
  border: 1px solid #CBD5E1;
  background: #FFFFFF;
  border-radius: 3px;
  cursor: pointer;
  color: #334155;
  transition: all 0.12s;
  white-space: nowrap;
}

.hd-tb-btn:hover { background: #F1F5F9; border-color: #94A3B8; }
.hd-tb-sep { width: 1px; height: 14px; background: #E2E8F0; margin: 0 3px; flex-shrink: 0; }

.hd-btn-post {
  background: linear-gradient(to right, #107C41, #15803D);
  color: #FFFFFF !important;
  border-color: #15803D !important;
  font-weight: 700 !important;
}

.hd-btn-post:hover { background: #0E6535 !important; }

.hd-excel-formulabar {
  display: flex;
  align-items: center;
  padding: 2px 6px;
  background: #FFFFFF;
  border-bottom: 1px solid #E2E8F0;
  gap: 5px;
  flex-shrink: 0;
}

.hd-namebox {
  width: 44px;
  padding: 2px 4px;
  border: 1px solid #CBD5E1;
  border-radius: 2px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.68rem;
  font-weight: 600;
  text-align: center;
  background: #F8FAFC;
  color: #334155;
}

.hd-fx-label {
  font-family: serif;
  font-style: italic;
  font-weight: 700;
  color: #64748B;
  font-size: 0.82rem;
}

.hd-formulabar-input {
  flex: 1;
  padding: 2px 7px;
  border: 1px solid #CBD5E1;
  border-radius: 2px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.68rem;
  color: #1E293B;
  outline: none;
}

.hd-formulabar-input:focus {
  border-color: #107C41;
  box-shadow: 0 0 0 2px rgba(16,124,65,0.12);
}

/* Grid */
.hd-excel-grid-wrap {
  flex: 1;
  overflow: auto;
  position: relative;
  scrollbar-width: thin;
  scrollbar-color: #CBD5E1 #F8FAFC;
}

.hd-excel-grid-wrap::-webkit-scrollbar { width: 8px; height: 8px; }
.hd-excel-grid-wrap::-webkit-scrollbar-track { background: #F8FAFC; }
.hd-excel-grid-wrap::-webkit-scrollbar-thumb { background: #CBD5E1; border-radius: 4px; }

.hd-sheet-table {
  width: 100%;
  border-collapse: collapse;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.68rem;
  /* NOT table-layout: fixed — allows text to flow */
  table-layout: auto;
}

.hd-row-header, .hd-col-header {
  background: #F1F5F9;
  color: #475569;
  font-weight: 600;
  border: 1px solid #CBD5E1;
  padding: 3px 5px;
  text-align: center;
  user-select: none;
}

.hd-row-header {
  width: 28px;
  min-width: 28px;
  position: sticky;
  left: 0;
  z-index: 2;
  background: #F1F5F9;
}

.hd-col-header {
  position: sticky;
  top: 0;
  z-index: 1;
  min-width: 60px;
  white-space: nowrap;
}

/* Column widths per spec */
.hd-col-A { min-width: 150px; }
.hd-col-B, .hd-col-C { min-width: 64px; }
.hd-col-D, .hd-col-E, .hd-col-F { min-width: 90px; }

.hd-row-header.hd-header--active,
.hd-col-header.hd-header--active {
  background: #E2E8F0;
  color: #0F172A;
  font-weight: 700;
}

.hd-cell {
  border: 1px solid #E2E8F0;
  padding: 3px 6px;
  /* No truncation — text overflows like real Excel */
  white-space: nowrap;
  overflow: visible;
  text-overflow: clip;
  outline: none;
  background: #FFFFFF;
  color: #1E293B;
  max-width: none;
}

.hd-cell-num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

/* Editable hint cells */
.hd-cell-editable-hint {
  background: #FEFCE8;
  border-style: dashed;
  border-color: #CA8A04;
}

/* Active / selected */
.hd-cell--active {
  outline: 2px solid #107C41 !important;
  outline-offset: -1px;
  z-index: 3;
  position: relative;
  background: #FFFFFF;
}

.hd-statusbar {
  display: flex;
  justify-content: space-between;
  padding: 2px 8px;
  background: #F8FAFC;
  border-top: 1px solid #E2E8F0;
  font-size: 0.65rem;
  color: #64748B;
  user-select: none;
  flex-shrink: 0;
}

.hd-sheet-tabs {
  display: flex;
  background: #E2E8F0;
  padding: 2px 4px 0;
  gap: 2px;
  border-top: 1px solid #CBD5E1;
  flex-shrink: 0;
}

.hd-sheet-tab {
  padding: 3px 12px;
  font-size: 0.66rem;
  font-weight: 600;
  border: 1px solid #CBD5E1;
  border-bottom: none;
  background: #F1F5F9;
  border-radius: 3px 3px 0 0;
  cursor: pointer;
  color: #475569;
}

.hd-sheet-tab.is-active { background: #FFFFFF; color: #107C41; font-weight: 700; }
.hd-sheet-add { padding: 3px 7px; }

/* ============================================================
   11. TALLY APP
   ============================================================ */
.tally-root {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #002B36;
  color: #93A1A1;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
}

.tally-menubar {
  display: flex;
  background: #073642;
  border-bottom: 1px solid #586E75;
  padding: 3px 8px;
  gap: 10px;
  overflow-x: auto;
  white-space: nowrap;
  flex-shrink: 0;
}

.tally-menu-item { color: #2AA198; cursor: pointer; font-size: 0.68rem; font-weight: 600; }
.tally-company-strip { background: #073642; color: #B58900; padding: 3px 10px; font-weight: 700; border-bottom: 1px solid #586E75; font-size: 0.7rem; flex-shrink: 0; }
.tally-body { flex: 1; display: flex; overflow: auto; background: #002B36; }
.tally-left-panel { flex: 1; padding: 10px; border-right: 1px solid #586E75; overflow: auto; }
.tally-panel-title { color: #B58900; font-weight: 700; font-size: 0.82rem; margin-bottom: 8px; }
.tally-menu-group { margin-bottom: 10px; }
.tally-menu-head { color: #657B83; font-size: 0.65rem; text-transform: uppercase; margin-bottom: 3px; }
.tally-left-panel .tally-menu-item { padding: 3px 6px; border-radius: 2px; display: block; margin-bottom: 2px; }
.tally-left-panel .tally-menu-item:hover { background: #073642; color: #268BD2; }
.tally-right-panel { width: 130px; background: #073642; padding: 6px; display: flex; flex-direction: column; gap: 3px; flex-shrink: 0; }
.tally-fn-btn { background: #002B36; border: 1px solid #586E75; color: #839496; font-size: 0.66rem; padding: 4px 6px; border-radius: 2px; text-align: left; cursor: pointer; font-family: inherit; }
.tally-fn-btn:hover { background: #073642; }
.tally-fn-active { background: #268BD2; color: #FFFFFF; border-color: #268BD2; font-weight: 700; }
.tally-fn-accent { background: #2AA198; color: #FFFFFF; border-color: #2AA198; font-weight: 700; }
.tally-fn-hint { margin-top: auto; font-size: 0.63rem; color: #839496; line-height: 1.3; }
.tally-voucher-form { padding: 8px; display: flex; flex-direction: column; gap: 6px; overflow: auto; flex: 1; }
.tally-field-row { display: flex; align-items: center; gap: 6px; padding: 2px 5px; }
.tally-field-focused { background: rgba(181,137,0,0.12); border: 1px solid #B58900; border-radius: 2px; }
.tally-field-label { color: #839496; min-width: 100px; font-size: 0.68rem; }
.tally-val-highlight { color: #B58900; font-weight: 700; }
.tally-field-input { background: #073642; border: 1px solid #586E75; color: #93A1A1; padding: 2px 6px; border-radius: 2px; font-family: inherit; font-size: 0.68rem; outline: none; flex: 1; }
.tally-field-input:focus { border-color: #268BD2; color: #FDF6E3; }
.tally-item-table { width: 100%; border-collapse: collapse; margin: 5px 0; }
.tally-item-table th, .tally-item-table td { border: 1px solid #586E75; padding: 3px 5px; font-size: 0.68rem; }
.tally-item-table th { background: #073642; color: #B58900; text-align: left; }
.tally-num { text-align: right; font-variant-numeric: tabular-nums; }
.tally-ledger-lines { border-top: 1px solid #586E75; padding-top: 5px; display: flex; flex-direction: column; gap: 3px; }
.tally-ledger-row { display: flex; justify-content: space-between; padding: 2px 5px; }
.tally-totals-bar { margin-top: 5px; border-top: 2px solid #586E75; border-bottom: 2px solid #586E75; padding: 5px; display: flex; justify-content: space-between; font-weight: 700; color: #2AA198; }
.tally-balanced { color: #2AA198; }
.tally-error-line { color: #DC322F; font-size: 0.66rem; padding: 2px 5px; }
.tally-actions-row { display: flex; gap: 6px; margin-top: 6px; flex-wrap: wrap; }
.tally-status-line { background: #073642; padding: 2px 8px; border-top: 1px solid #586E75; font-size: 0.65rem; color: #657B83; flex-shrink: 0; }
.tally-typeahead-wrap { position: relative; flex: 1; }
.tally-typeahead-list { position: absolute; top: 100%; left: 0; right: 0; background: #073642; border: 1px solid #268BD2; border-radius: 0 0 3px 3px; z-index: 50; max-height: 100px; overflow: auto; }
.tally-typeahead-item { padding: 3px 7px; cursor: pointer; color: #93A1A1; font-size: 0.68rem; }
.tally-typeahead-item:hover { background: #268BD2; color: #FFFFFF; }
.tally-disclaimer { font-size: 0.62rem; color: #657B83; padding: 4px 8px; text-align: center; background: #073642; flex-shrink: 0; }
.tally-report-table { width: 100%; border-collapse: collapse; }
.tally-report-table th, .tally-report-table td { border: 1px solid #586E75; padding: 3px 6px; font-size: 0.68rem; }
.tally-report-table th { background: #073642; color: #B58900; text-align: left; }
.tally-grand-row td { background: #073642; font-weight: 700; color: #2AA198; }
.tally-hint-line { font-size: 0.6rem; color: #586E75; padding: 4px 8px; border-top: 1px solid #073642; flex-shrink: 0; }

/* ============================================================
   12. WORD APP
   ============================================================ */
.word-root { display: flex; flex-direction: column; height: 100%; background: #F1F5F9; font-size: 0.72rem; }
.word-ribbon { background: #FFFFFF; border-bottom: 1px solid #CBD5E1; display: flex; flex-direction: column; flex-shrink: 0; }
.word-ribbon-tabs { display: flex; padding: 2px 8px 0; gap: 3px; border-bottom: 1px solid #E2E8F0; }
.word-tab { padding: 3px 10px; border: none; background: transparent; font-size: 0.68rem; font-weight: 600; color: #475569; cursor: pointer; border-bottom: 2px solid transparent; }
.word-tab.is-active { color: #2B579A; border-bottom-color: #2B579A; }
.word-ribbon-content { padding: 4px 8px; display: flex; align-items: center; gap: 5px; overflow-x: auto; }
.word-rb-btn { padding: 3px 7px; background: #FFFFFF; border: 1px solid #CBD5E1; border-radius: 3px; cursor: pointer; font-size: 0.68rem; color: #334155; }
.word-rb-btn:hover { background: #F8FAFC; }
.word-rb-primary { background: #2B579A !important; color: #FFFFFF !important; border-color: #2B579A !important; font-weight: 700; }
.word-sep { width: 1px; height: 16px; background: #E2E8F0; margin: 0 2px; }
.word-rb-label { font-size: 0.66rem; color: #64748B; }
.word-rb-select { padding: 2px 5px; border: 1px solid #CBD5E1; border-radius: 3px; font-size: 0.68rem; background: #FFFFFF; color: #334155; }
.word-ruler { background: #E2E8F0; height: 18px; display: flex; align-items: center; overflow: hidden; flex-shrink: 0; }
.word-ruler-inner { height: 100%; width: 100%; background: linear-gradient(to right, #F8FAFC, #E2E8F0); }
.word-canvas-wrap { flex: 1; overflow: auto; padding: 12px; display: flex; justify-content: center; background: #D4D8E0; }
.word-page { width: 100%; max-width: 500px; min-height: 320px; background: #FFFFFF; box-shadow: 0 3px 12px rgba(0,0,0,0.14); padding: 24px 20px; font-family: serif; font-size: 0.82rem; line-height: 1.6; color: #1E293B; outline: none; }
.word-statusbar { display: flex; justify-content: space-between; padding: 2px 10px; background: #FFFFFF; border-top: 1px solid #CBD5E1; font-size: 0.65rem; color: #64748B; flex-shrink: 0; align-items: center; }
.word-zoom-btn { background: none; border: 1px solid #CBD5E1; border-radius: 2px; width: 18px; height: 18px; cursor: pointer; font-size: 0.75rem; display: inline-flex; align-items: center; justify-content: center; }

/* ============================================================
   13. AI ASSISTANT APP
   ============================================================ */
.ai-root { display: flex; flex-direction: column; height: 100%; background: #FFFFFF; font-size: 0.72rem; }
.ai-header { padding: 6px 10px; background: #FDF2F8; border-bottom: 1px solid #FCE7F3; display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.ai-title { font-weight: 700; color: #9D174D; flex: 1; font-size: 0.72rem; }
.ai-badge { font-size: 0.62rem; padding: 2px 5px; border-radius: 3px; background: #FBCFE8; color: #831843; }
.ai-disclaimer { font-size: 0.6rem; color: #94A3B8; }
.ai-chips { display: flex; gap: 5px; padding: 5px 8px; background: #F8FAFC; border-bottom: 1px solid #E2E8F0; overflow-x: auto; white-space: nowrap; flex-shrink: 0; }
.ai-chip { padding: 2px 7px; background: #FFFFFF; border: 1px solid #CBD5E1; border-radius: 999px; font-size: 0.65rem; cursor: pointer; color: #334155; }
.ai-chip:hover { background: #FDF2F8; border-color: #F472B6; color: #BE185D; }
.ai-messages { flex: 1; overflow: auto; padding: 8px; display: flex; flex-direction: column; gap: 8px; }
.ai-msg { display: flex; gap: 7px; max-width: 92%; }
.ai-msg-user { align-self: flex-end; flex-direction: row-reverse; }
.ai-avatar { width: 22px; height: 22px; border-radius: 50%; background: #BE185D; color: #FFFFFF; font-size: 0.6rem; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.ai-bubble { background: #F1F5F9; color: #1E293B; padding: 7px 10px; border-radius: 8px; line-height: 1.45; font-size: 0.7rem; }
.ai-bubble-user { background: #1B2A4A; color: #FFFFFF; }
.ai-text-resp { white-space: pre-wrap; }
.ai-formula-table { width: 100%; border-collapse: collapse; margin: 5px 0; font-family: 'IBM Plex Mono', monospace; font-size: 0.65rem; }
.ai-formula-table td { padding: 2px 5px; border: 1px solid #CBD5E1; }
.ai-formula-label { background: #F8FAFC; font-weight: 600; }
.ai-formula-expr { font-family: 'IBM Plex Mono', monospace; }
.ai-action-btn { margin-top: 5px; padding: 4px 10px; background: #107C41; color: #FFFFFF; border: none; border-radius: 3px; font-size: 0.68rem; font-weight: 700; cursor: pointer; }
.ai-action-link { display: inline-block; margin-top: 5px; font-size: 0.68rem; color: #BE185D; font-weight: 600; text-decoration: underline; }
.ai-copy-btn { padding: 2px 7px; background: #FFFFFF; border: 1px solid #CBD5E1; border-radius: 3px; font-size: 0.65rem; cursor: pointer; margin-top: 4px; }
.ai-voucher-card { padding: 5px 8px; border-radius: 5px; font-weight: 700; font-size: 0.68rem; }
.ai-card-ok { background: #DCFCE7; color: #15803D; border: 1px solid #86EFAC; }
.ai-card-err { background: #FEE2E2; color: #B91C1C; border: 1px solid #FCA5A5; }
.ai-input-row { display: flex; padding: 5px 8px; background: #FFFFFF; border-top: 1px solid #E2E8F0; gap: 5px; flex-shrink: 0; }
.ai-input { flex: 1; padding: 5px 8px; border: 1px solid #CBD5E1; border-radius: 5px; font-size: 0.68rem; outline: none; }
.ai-input:focus { border-color: #BE185D; }
.ai-send-btn { padding: 5px 10px; background: #BE185D; color: #FFFFFF; border: none; border-radius: 5px; font-weight: 700; font-size: 0.68rem; cursor: pointer; }
.ai-typing .ai-dot { display: inline-block; width: 4px; height: 4px; border-radius: 50%; background: #64748B; margin: 0 1px; animation: ai-dot-bounce 1.2s infinite; }
.ai-typing .ai-dot:nth-child(2) { animation-delay: 0.2s; }
.ai-typing .ai-dot:nth-child(3) { animation-delay: 0.4s; }
@keyframes ai-dot-bounce { 0%, 80%, 100% { transform: translateY(0); } 40% { transform: translateY(-4px); } }

/* ============================================================
   14. CHECKLIST — 76px strip directly below monitor
   ============================================================ */
.hd-mobile-switcher {
  display: none !important;
}

.hd-checklist-outer {
  width: min(100%, calc(clamp(380px, calc(100svh - 220px), 640px) * 4 / 3));
  min-height: 76px;
  height: auto;
  margin: 10px auto 0;
  box-sizing: border-box;
}

.hd-checklist-outer.is-screen-off {
  opacity: 0.55;
  filter: grayscale(0.4);
}

.hd-checklist {
  width: 100%;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  padding: 10px 16px;
  min-height: 76px;
  height: auto;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.hd-checklist-active {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hd-checklist-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.hd-checklist-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.hd-checklist-off-prompt {
  font-size: 11.5px;
  font-weight: 600;
  color: #BA2B3E;
  background: rgba(186, 43, 62, 0.08);
  border: 1px solid rgba(186, 43, 62, 0.2);
  padding: 2px 8px;
  border-radius: 999px;
  display: inline-block;
  white-space: nowrap;
}

.hd-checklist-title {
  font-size: 12.5px !important;
  font-weight: 600;
  color: #1E293B;
}

.hd-checklist-title em {
  font-size: 11.5px;
  font-weight: 400;
  color: #64748B;
  font-style: normal;
}

.hd-checklist-links {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hd-checklist-skip, .hd-checklist-reset {
  background: none;
  border: none;
  font-size: 12px !important;
  color: #64748B;
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
}
.hd-checklist-skip:hover, .hd-checklist-reset:hover {
  color: #BA2B3E;
}

.hd-checklist-stepper {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  position: relative;
  gap: 12px;
  align-items: center;
  width: 100%;
}

/* Connecting progress line */
.hd-checklist-stepper::before {
  content: '';
  position: absolute;
  top: 10px;
  left: 20px;
  right: 20px;
  height: 2px;
  background: #E2E8F0;
  z-index: 1;
}

.hd-step-item {
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
  z-index: 2;
  min-width: 0;
}

.hd-step-circle {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 2px solid #CBD5E1;
  color: #64748B;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.hd-step-label {
  font-size: 12.5px !important;
  font-weight: 500;
  color: #64748B;
  line-height: 1.2;
  white-space: nowrap;
}

/* Done: green tick & label */
.hd-step-item.is-done .hd-step-circle {
  background: #16A34A;
  border-color: #16A34A;
  color: #FFFFFF;
}
.hd-step-item.is-done .hd-step-label {
  color: #15803D;
  font-weight: 600;
}

/* Current: crimson ring with soft pulse */
.hd-step-item.is-current .hd-step-circle {
  border-color: #BA2B3E;
  color: #BA2B3E;
  box-shadow: 0 0 0 3px rgba(186, 43, 62, 0.25);
  animation: hd-current-step-pulse 2s infinite;
}
.hd-step-item.is-current .hd-step-label {
  color: #12234A;
  font-weight: 700;
}

@keyframes hd-current-step-pulse {
  0% { box-shadow: 0 0 0 0 rgba(186, 43, 62, 0.5); }
  70% { box-shadow: 0 0 0 6px rgba(186, 43, 62, 0); }
  100% { box-shadow: 0 0 0 0 rgba(186, 43, 62, 0); }
}

/* Off state message */
.hd-checklist-off-msg {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  font-size: 13px;
  font-weight: 600;
  color: #64748B;
}

/* Completion state */
.hd-checklist-complete {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}
.hd-checklist-complete-text {
  font-size: 13.5px;
  font-weight: 700;
  color: #16A34A;
  display: flex;
  align-items: center;
  gap: 6px;
}
.hd-checklist-complete-btn {
  background: #BA2B3E;
  color: #FFFFFF;
  border: none;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease;
}
.hd-checklist-complete-btn:hover {
  background: #901B2B;
}

@media (max-width: 768px) {
  .hd-checklist-outer {
    height: auto;
    min-height: 76px;
  }
  .hd-checklist {
    height: auto;
    min-height: 76px;
    padding: 8px 12px;
  }
  .hd-checklist-stepper {
    overflow-x: auto;
    display: flex;
    gap: 16px;
    padding-bottom: 4px;
    scrollbar-width: none;
  }
  .hd-checklist-stepper::-webkit-scrollbar {
    display: none;
  }
  .hd-checklist-stepper::before {
    display: none;
  }
  .hd-step-item {
    flex-shrink: 0;
  }
}

@media (max-width: 420px) {
  .hd-checklist-stepper {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px 10px;
    overflow-x: visible;
  }
  .hd-step-label {
    font-size: 12px !important;
  }
}

/* ============================================================
   15. REWARD CARD & CONFETTI
   ============================================================ */
.hd-reward-card {
  position: absolute;
  inset: 16px;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(12px);
  border: 1.5px solid rgba(255,255,255,0.15);
  border-radius: 10px;
  z-index: 150;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
  color: #FFFFFF;
  animation: hd-bubble-fade 0.3s cubic-bezier(0.16,1,0.3,1);
}

.hd-reward-badge { font-size: 0.8rem; font-weight: 700; color: #F2B632; margin-bottom: 6px; letter-spacing: 0.04em; text-transform: uppercase; }
.hd-reward-title { font-size: 1.2rem; font-weight: 800; margin-bottom: 8px; line-height: 1.25; }
.hd-reward-text { font-size: 0.78rem; color: #CBD5E1; max-width: 380px; margin-bottom: 16px; line-height: 1.5; }
.hd-reward-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }

.hd-confetti-canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 160; }

/* ============================================================
   16. MOBILE SWITCHER
   ============================================================ */
.hd-mobile-switcher { display: flex; background: #1E293B; border-radius: 7px; padding: 3px; gap: 3px; margin-top: 8px; }
.hd-mob-tab { flex: 1; padding: 7px 4px; border: none; background: transparent; color: #94A3B8; font-size: 0.75rem; font-weight: 600; border-radius: 5px; cursor: pointer; text-align: center; }
.hd-mob-tab.is-active { background: #334155; color: #FFFFFF; font-weight: 700; }

/* ============================================================
   17. HERO SECTION — section-grid-bg was removed, safe to keep
   ============================================================ */
/* Legacy class kept to avoid breaking other references */
.section-grid-bg {}

/* ============================================================
   18. DESKTOP ICONS (3 COLUMNS) & RIGHT WIDGETS (232px)
   ============================================================ */

/* Desktop Icons: 3 Columns on the left */
.hd-desktop-icons {
  position: absolute;
  top: 8px;
  left: 8px;
  display: flex;
  flex-direction: row;
  gap: 6px;
  z-index: 2; /* Below windows (10+), above wallpaper */
  pointer-events: auto;
  max-height: calc(100% - 46px);
}

.hd-dicon-col {
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 92px;
}

.hd-desktop-icon {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  width: 92px;
  height: clamp(70px, calc((100cqh - 52px) / 5), 92px);
  padding: 3px 2px;
  box-sizing: border-box;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #0F172A;
  cursor: pointer;
  text-align: center;
  user-select: none;
  opacity: 0;
  transform: translateY(6px) scale(0.92);
  transition: opacity 0.25s ease, transform 0.25s cubic-bezier(0.16,1,0.3,1), background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.hd-desktop-icon.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.hd-desktop-icon:hover {
  background: rgba(255, 255, 255, 0.45);
  border-color: rgba(255, 255, 255, 0.7);
  box-shadow: 0 2px 8px rgba(18, 35, 74, 0.08);
}

/* Translucent blue selection box */
.hd-desktop-icon.is-selected {
  z-index: 50 !important;
  background: rgba(0, 120, 215, 0.22) !important;
  border: 1px solid rgba(0, 120, 215, 0.75) !important;
  box-shadow: 0 0 0 1px rgba(0, 120, 215, 0.5), 0 2px 8px rgba(0, 120, 215, 0.2) !important;
}

.hd-desktop-icon:focus-visible {
  outline: 2px solid #0078D7;
  outline-offset: 1px;
}

/* Icon Tile: 55% of cell height, clamped 38 to 52px */
.hd-dicon-tile {
  position: relative;
  width: clamp(38px, calc(clamp(70px, calc((100cqh - 52px) / 5), 92px) * 0.55), 52px);
  height: clamp(38px, calc(clamp(70px, calc((100cqh - 52px) / 5), 92px) * 0.55), 52px);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.4);
  transition: transform 0.15s ease;
  flex-shrink: 0;
}

.hd-dicon-tile svg {
  width: 55%;
  height: 55%;
}

/* Book Free Demo is the ONLY crimson tile */
.hd-desktop-icon[data-open="book_demo"] .hd-dicon-tile,
.hd-desktop-icon[data-open="demo"] .hd-dicon-tile {
  background: var(--crimson, #BA2B3E) !important;
  color: #FFFFFF !important;
}

/* 12px Label (13px if cell >= 84px), 2 lines balanced wrap, no ellipsis, text shadow */
.hd-dicon-text {
  font-size: 12px !important;
  font-weight: 600;
  color: #0F172A;
  line-height: 1.15;
  margin-top: 3px;
  text-align: center;
  max-width: 90px;
  text-wrap: balance;
  overflow: visible;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.9), 0 0 4px #FFFFFF;
}

@container (min-height: 476px) {
  .hd-dicon-text {
    font-size: 13px !important;
  }
}

.hd-dicon-link-badge {
  position: absolute;
  bottom: -2px;
  left: -2px;
  width: 14px;
  height: 14px;
  background: #FFFFFF;
  border: 1px solid rgba(18, 35, 74, 0.2);
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

.hd-dicon-link-badge svg {
  width: 8px;
  height: 8px;
  color: #12234A;
}

/* Compact Open pill directly BELOW the selected icon's label */
.hd-icon-open-pill {
  position: relative;
  margin-top: 2px;
  background: #12234A;
  color: #FFFFFF;
  font-size: 10.5px;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 999px;
  z-index: 60;
  pointer-events: none;
  white-space: nowrap;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
  line-height: 1.2;
}

@media (max-width: 767px) {
  .hd-desktop-icons {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 8px !important;
    max-height: none !important;
    position: static !important;
    padding: 12px !important;
  }
  .hd-dicon-col {
    display: contents !important;
  }
  .hd-desktop-icon {
    width: 100% !important;
    height: auto !important;
    min-height: auto !important;
  }
  .hd-dicon-tile {
    width: 46px !important;
    height: 46px !important;
  }
  .hd-dicon-text {
    font-size: 11px !important;
    max-width: 72px !important;
  }
}

/* Right-side Desktop Widgets: 232px wide, right 12px, top 12px, 8px gaps */
.hd-desktop-widgets {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 232px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 2;
  pointer-events: auto;
}

.hd-widget {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(18, 35, 74, 0.12);
  border-radius: 12px;
  padding: 10px 14px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 2px 8px rgba(18, 35, 74, 0.05);
}

/* 1. Greeting & Clock Widget */
.hd-widget-greeting {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hd-widget-clock {
  font-family: var(--font-headline, 'Schibsted Grotesk', sans-serif);
  font-size: 1.35rem;
  font-weight: 700;
  color: #12234A;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.hd-widget-greeting-text {
  font-size: 0.74rem;
  font-weight: 600;
  color: #64748B;
  margin-top: 3px;
  line-height: 1.25;
}

.hd-add-name-link {
  background: none;
  border: none;
  padding: 0;
  margin-top: 4px;
  color: #BA2B3E;
  font-size: 0.68rem;
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
  display: inline-block;
}
.hd-add-name-link:hover {
  color: #901B2B;
}

/* 2. Sticky Note Widget */
.hd-widget-sticky {
  position: relative;
  background: #FEF08A;
  border: 1px solid #FDE047;
  border-radius: 2px 2px 8px 2px;
  padding: 12px 14px 10px;
  transform: rotate(-2deg);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.06);
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease;
  user-select: none;
}

.hd-widget-sticky:hover,
.hd-widget-sticky:focus-visible {
  transform: rotate(0deg) scale(1.02);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.14);
  outline: none;
}

.hd-sticky-tape {
  position: absolute;
  top: -7px;
  left: 50%;
  transform: translateX(-50%);
  width: 44px;
  height: 14px;
  background: rgba(254, 240, 138, 0.7);
  border: 1px dashed rgba(202, 138, 4, 0.35);
  border-radius: 1px;
}

.hd-sticky-content {
  font-family: 'Caveat', cursive, sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: #713F12;
  line-height: 1.25;
}

/* 3. Free Demo Class Widget */
.hd-widget-demo {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(18, 35, 74, 0.12);
  border-radius: 12px;
  padding: 10px 14px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 2px 8px rgba(18, 35, 74, 0.05);
}

.hd-demo-badge {
  font-size: 0.62rem;
  font-weight: 800;
  color: #BA2B3E;
  letter-spacing: 0.06em;
}

.hd-demo-title {
  font-size: 0.74rem;
  font-weight: 600;
  color: #1E293B;
  margin: 3px 0 8px;
  line-height: 1.25;
}

.hd-demo-book-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--navy, #12234A);
  color: #FFFFFF;
  border: none;
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.15s ease, transform 0.15s ease;
}

.hd-demo-book-btn:hover {
  background: var(--crimson, #BA2B3E);
  transform: translateY(-1px);
}

/* Collapse order on short screens:
   1. sticky note first (< 500px cqh)
   2. greeting second (< 420px cqh)
   3. demo tile last (< 340px cqh) */
@container (max-height: 500px) {
  .hd-widget-sticky { display: none !important; }
}

@container (max-height: 420px) {
  .hd-widget-greeting { display: none !important; }
}

@container (max-height: 340px) {
  .hd-widget-demo { display: none !important; }
}

@media (max-width: 991px) {
  .hd-desktop-widgets {
    display: none !important;
  }
}

/* Dynamic window body general styles */
.hd-win-body--scrollable {
  flex: 1;
  overflow-y: auto;
  background: #F8FAFC;
  color: #1E293B;
  display: flex;
  flex-direction: column;
}

/* ============================================================
   APP 1: COURSES EXPLORER
   ============================================================ */
.hd-courses-app {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #F8FAFC;
}

.hd-courses-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 12px;
  background: #FFFFFF;
  border-bottom: 1px solid #E2E8F0;
  gap: 10px;
}

.hd-courses-address {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  color: #475569;
  background: #F1F5F9;
  padding: 4px 10px;
  border-radius: 4px;
  border: 1px solid #CBD5E1;
  flex: 1;
  max-width: 320px;
}

.hd-courses-search {
  padding: 4px 10px;
  border: 1px solid #CBD5E1;
  border-radius: 4px;
  font-size: 0.72rem;
  width: 160px;
  outline: none;
}
.hd-courses-search:focus { border-color: #BA2B3E; }

.hd-courses-layout {
  display: flex;
  flex: 1;
  overflow: hidden;
}

.hd-courses-sidebar {
  width: 160px;
  background: #FFFFFF;
  border-right: 1px solid #E2E8F0;
  padding: 10px 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hd-courses-nav-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 600;
  color: #475569;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  transition: all 0.15s ease;
}
.hd-courses-nav-item:hover { background: #F1F5F9; color: #12234A; }
.hd-courses-nav-item.is-active { background: rgba(186, 43, 62, 0.1); color: #BA2B3E; font-weight: 700; }

.hd-courses-grid-wrap {
  flex: 1;
  padding: 12px;
  overflow-y: auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
  align-content: start;
}

.hd-course-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  transition: all 0.15s ease;
}
.hd-course-card:hover {
  border-color: #BA2B3E;
  box-shadow: 0 4px 12px rgba(18, 35, 74, 0.08);
  transform: translateY(-2px);
}

.hd-course-badge {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 12px;
  font-size: 0.6rem;
  font-weight: 700;
  background: rgba(186, 43, 62, 0.1);
  color: #BA2B3E;
  align-self: flex-start;
}

.hd-course-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: #12234A;
  line-height: 1.25;
}

.hd-course-meta {
  display: flex;
  gap: 8px;
  font-size: 0.68rem;
  color: #64748B;
  font-weight: 600;
}

.hd-course-desc {
  font-size: 0.72rem;
  color: #475569;
  line-height: 1.4;
  flex: 1;
}

.hd-course-fee-note {
  font-size: 0.65rem;
  color: #D97706;
  font-weight: 600;
  background: #FEF3C7;
  padding: 3px 6px;
  border-radius: 4px;
}

.hd-course-actions {
  display: flex;
  gap: 6px;
  margin-top: 4px;
}

.hd-course-btn {
  flex: 1;
  padding: 6px 8px;
  border-radius: 5px;
  font-size: 0.68rem;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  transition: all 0.15s ease;
  border: 1px solid transparent;
}
.hd-course-btn--syllabus {
  background: #F1F5F9;
  color: #12234A;
  border-color: #CBD5E1;
}
.hd-course-btn--syllabus:hover { background: #E2E8F0; }
.hd-course-btn--demo {
  background: #BA2B3E;
  color: #FFFFFF;
}
.hd-course-btn--demo:hover { background: #9E2434; }

/* ============================================================
   APP 2: THIS PC / SYSTEM PROPERTIES
   ============================================================ */
.hd-thispc-app {
  padding: 16px;
  overflow-y: auto;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: #F8FAFC;
}

.hd-thispc-header {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #FFFFFF;
  padding: 14px;
  border-radius: 8px;
  border: 1px solid #E2E8F0;
}

.hd-thispc-logo {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.hd-thispc-title-box h3 {
  font-size: 1.05rem;
  font-weight: 800;
  color: #12234A;
  margin: 0;
}
.hd-thispc-title-box p {
  font-size: 0.72rem;
  color: #64748B;
  margin: 2px 0 0;
}

.hd-thispc-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.hd-thispc-stat-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  padding: 10px;
  text-align: center;
}
.hd-thispc-stat-num {
  font-size: 1.15rem;
  font-weight: 800;
  color: #BA2B3E;
}
.hd-thispc-stat-lbl {
  font-size: 0.65rem;
  color: #64748B;
  font-weight: 600;
  margin-top: 2px;
}

.hd-thispc-section {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  padding: 12px 14px;
}
.hd-thispc-section h4 {
  font-size: 0.78rem;
  font-weight: 700;
  color: #12234A;
  margin: 0 0 8px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.hd-thispc-table {
  width: 100%;
  font-size: 0.72rem;
  border-collapse: collapse;
}
.hd-thispc-table td {
  padding: 4px 0;
}
.hd-thispc-table td:first-child {
  color: #64748B;
  width: 140px;
  font-weight: 600;
}
.hd-thispc-table td:last-child {
  color: #1E293B;
  font-weight: 500;
}

/* ============================================================
   APP 3: TYPING TEST
   ============================================================ */
.hd-typing-app {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 14px;
  background: #F8FAFC;
  gap: 12px;
}

.hd-typing-hud {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  padding: 10px 16px;
}

.hd-typing-hud-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hd-typing-hud-val {
  font-size: 1.25rem;
  font-weight: 800;
  color: #BA2B3E;
}
.hd-typing-hud-lbl {
  font-size: 0.62rem;
  font-weight: 700;
  color: #64748B;
  text-transform: uppercase;
}

.hd-typing-passage-box {
  flex: 1;
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  border-radius: 8px;
  padding: 14px;
  font-family: monospace, Courier, sans-serif;
  font-size: 0.95rem;
  line-height: 1.8;
  color: #475569;
  position: relative;
  overflow-y: auto;
  cursor: text;
  user-select: none;
}
.hd-typing-char { position: relative; }
.hd-typing-char.is-correct { color: #107C41; background: rgba(16, 124, 65, 0.1); border-radius: 2px; }
.hd-typing-char.is-wrong { color: #DC2626; background: rgba(220, 38, 38, 0.2); border-radius: 2px; }
.hd-typing-char.is-current {
  border-bottom: 2px solid #BA2B3E;
  animation: hd-caret-pulse 0.7s infinite;
}

@keyframes hd-caret-pulse {
  0%, 100% { border-color: #BA2B3E; }
  50% { border-color: transparent; }
}

.hd-typing-input-hidden {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  left: -9999px;
}

.hd-typing-result {
  background: #FFFFFF;
  border: 2px solid #107C41;
  border-radius: 8px;
  padding: 14px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.hd-typing-result-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: #107C41;
}

/* ============================================================
   APP 4: GST CALCULATOR
   ============================================================ */
.hd-gst-app {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 14px;
  gap: 12px;
  background: #F8FAFC;
  overflow-y: auto;
}

.hd-gst-form {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hd-gst-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.hd-gst-row label {
  font-size: 0.72rem;
  font-weight: 700;
  color: #12234A;
  width: 100px;
}

.hd-gst-input {
  flex: 1;
  padding: 6px 10px;
  border: 1px solid #CBD5E1;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  outline: none;
}
.hd-gst-input:focus { border-color: #BA2B3E; }

.hd-gst-rates {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.hd-gst-rate-btn {
  padding: 4px 10px;
  border: 1px solid #CBD5E1;
  border-radius: 4px;
  background: #FFFFFF;
  font-size: 0.7rem;
  font-weight: 700;
  color: #475569;
  cursor: pointer;
  transition: all 0.15s ease;
}
.hd-gst-rate-btn:hover { border-color: #BA2B3E; color: #BA2B3E; }
.hd-gst-rate-btn.is-active { background: #BA2B3E; color: #FFFFFF; border-color: #BA2B3E; }

.hd-gst-toggles {
  display: flex;
  gap: 8px;
}
.hd-gst-toggle-btn {
  flex: 1;
  padding: 6px;
  border: 1px solid #CBD5E1;
  border-radius: 6px;
  background: #FFFFFF;
  font-size: 0.68rem;
  font-weight: 700;
  color: #475569;
  cursor: pointer;
  text-align: center;
}
.hd-gst-toggle-btn.is-active { background: #12234A; color: #FFFFFF; border-color: #12234A; }

.hd-gst-summary {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  padding: 12px;
}
.hd-gst-table {
  width: 100%;
  font-size: 0.75rem;
  border-collapse: collapse;
}
.hd-gst-table tr { border-bottom: 1px solid #F1F5F9; }
.hd-gst-table td { padding: 6px 0; }
.hd-gst-table td:last-child { text-align: right; font-weight: 700; font-family: monospace; }
.hd-gst-table tr.hd-gst-total td { font-size: 0.9rem; color: #BA2B3E; font-weight: 800; border-top: 2px solid #E2E8F0; }

/* ============================================================
   APP 5: LAB PHOTOS VIEWER
   ============================================================ */
.hd-photos-app {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #0F172A;
  color: #FFFFFF;
  overflow: hidden;
}

.hd-photos-stage {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 12px;
}

.hd-photos-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 6px;
  transition: transform 0.2s ease;
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

.hd-photos-caption {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(8px);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 600;
  white-space: nowrap;
  max-width: 90%;
  text-overflow: ellipsis;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.1);
}

.hd-photos-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 14px;
  background: rgba(30, 41, 59, 0.9);
  border-top: 1px solid rgba(255,255,255,0.08);
}

.hd-photos-btn {
  background: rgba(255, 255, 255, 0.1);
  color: #FFFFFF;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 5px;
  padding: 5px 10px;
  font-size: 0.68rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: all 0.15s ease;
}
.hd-photos-btn:hover { background: rgba(255,255,255,0.25); }

.hd-photos-strip {
  display: flex;
  gap: 6px;
  padding: 6px 12px;
  background: #0B1120;
  overflow-x: auto;
}
.hd-photos-thumb {
  width: 50px;
  height: 34px;
  border-radius: 4px;
  object-fit: cover;
  opacity: 0.5;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.15s ease;
}
.hd-photos-thumb:hover { opacity: 0.8; }
.hd-photos-thumb.is-active { opacity: 1; border-color: #BA2B3E; }

/* ============================================================
   APP 6: VERIFY CERTIFICATE
   ============================================================ */
.hd-verify-app {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 14px;
  background: #F8FAFC;
  gap: 12px;
  overflow-y: auto;
}

.hd-verify-search-box {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hd-verify-input-wrap {
  display: flex;
  gap: 8px;
}
.hd-verify-input {
  flex: 1;
  padding: 7px 12px;
  border: 1px solid #CBD5E1;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  outline: none;
  text-transform: uppercase;
}
.hd-verify-input:focus { border-color: #BA2B3E; }

.hd-verify-btn {
  background: #BA2B3E;
  color: #FFFFFF;
  border: none;
  border-radius: 6px;
  padding: 7px 14px;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
}
.hd-verify-btn:hover { background: #9E2434; }

.hd-verify-samples {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.65rem;
  color: #64748B;
  flex-wrap: wrap;
}
.hd-verify-chip {
  background: #F1F5F9;
  border: 1px solid #CBD5E1;
  border-radius: 4px;
  padding: 2px 6px;
  font-size: 0.62rem;
  font-weight: 700;
  color: #12234A;
  cursor: pointer;
}
.hd-verify-chip:hover { border-color: #BA2B3E; color: #BA2B3E; }

.hd-verify-card {
  position: relative;
  background: #FFFFFF;
  border: 2px solid #BA2B3E;
  border-radius: 8px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: 0 4px 16px rgba(18, 35, 74, 0.08);
  overflow: hidden;
}

/* Animated stamp drop */
.hd-verify-stamp {
  position: absolute;
  top: 14px;
  right: 14px;
  border: 3px double #DC2626;
  border-radius: 50%;
  width: 68px;
  height: 68px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #DC2626;
  font-weight: 900;
  font-size: 0.58rem;
  text-transform: uppercase;
  transform: rotate(-15deg);
  opacity: 0;
  animation: hd-stamp-drop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards 0.2s;
}

@keyframes hd-stamp-drop {
  0% { opacity: 0; transform: scale(2.5) rotate(-30deg); }
  100% { opacity: 0.88; transform: scale(1) rotate(-15deg); }
}

/* ============================================================
   APP 7: BOOK FREE DEMO WIZARD
   ============================================================ */
.hd-wizard-app {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #F8FAFC;
  overflow: hidden;
}

.hd-wizard-steps {
  display: flex;
  background: #FFFFFF;
  border-bottom: 1px solid #E2E8F0;
  padding: 8px 14px;
}
.hd-wizard-step-item {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.7rem;
  font-weight: 700;
  color: #94A3B8;
}
.hd-wizard-step-item.is-active { color: #BA2B3E; }
.hd-wizard-step-item.is-done { color: #107C41; }
.hd-wizard-step-num {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #F1F5F9;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.62rem;
}
.hd-wizard-step-item.is-active .hd-wizard-step-num { background: #BA2B3E; color: #FFFFFF; }
.hd-wizard-step-item.is-done .hd-wizard-step-num { background: #107C41; color: #FFFFFF; }

.hd-wizard-content {
  flex: 1;
  padding: 16px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hd-wizard-footer {
  display: flex;
  justify-content: space-between;
  padding: 10px 16px;
  background: #FFFFFF;
  border-top: 1px solid #E2E8F0;
}

/* ============================================================
   APP 8: RECYCLE BIN
   ============================================================ */
.hd-recycle-app {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 24px;
  text-align: center;
  gap: 12px;
  background: #F8FAFC;
}
.hd-recycle-app h3 { font-size: 1.05rem; font-weight: 800; color: #12234A; margin: 0; }
.hd-recycle-app p { font-size: 0.78rem; color: #64748B; max-width: 320px; line-height: 1.5; margin: 0; }

/* ============================================================
   M6: START MENU
   ============================================================ */
.hd-start-menu {
  position: absolute;
  bottom: 46px;
  left: 6px;
  width: 320px;
  height: 420px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(18, 35, 74, 0.15);
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2), 0 1px 3px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 110;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: hd-start-popup 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes hd-start-popup {
  from { opacity: 0; transform: translateY(12px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.hd-start-search {
  padding: 8px 12px;
  border-bottom: 1px solid #E2E8F0;
  background: #F8FAFC;
}
.hd-start-search-input {
  width: 100%;
  padding: 6px 10px;
  border: 1px solid #CBD5E1;
  border-radius: 6px;
  font-size: 0.75rem;
  outline: none;
}
.hd-start-search-input:focus { border-color: #BA2B3E; }

.hd-start-apps-list {
  flex: 1;
  overflow-y: auto;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hd-start-app-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 8px;
  border-radius: 6px;
  border: none;
  background: transparent;
  color: #12234A;
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  transition: all 0.12s ease;
}
.hd-start-app-item:hover {
  background: rgba(186, 43, 62, 0.08);
  color: #BA2B3E;
}

.hd-start-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: #F1F5F9;
  border-top: 1px solid #E2E8F0;
}
.hd-start-user {
  font-size: 0.7rem;
  font-weight: 700;
  color: #12234A;
  display: flex;
  align-items: center;
  gap: 6px;
}
.hd-start-power-btn {
  background: transparent;
  border: 1px solid #CBD5E1;
  border-radius: 4px;
  padding: 4px 8px;
  font-size: 0.65rem;
  font-weight: 700;
  color: #DC2626;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
}
.hd-start-power-btn:hover { background: #FEE2E2; border-color: #DC2626; }

/* ============================================================
   M6: SHUTDOWN SCREEN & CRT COLLAPSE
   ============================================================ */
.hd-shutdown-overlay {
  position: absolute;
  inset: 0;
  background: #000000;
  z-index: 300;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  animation: hd-crt-shutdown 0.4s ease forwards;
}

@keyframes hd-crt-shutdown {
  0% { transform: scale(1, 1); filter: brightness(1); }
  50% { transform: scale(1, 0.005); filter: brightness(3); }
  100% { transform: scale(0, 0); filter: brightness(1); }
}

.hd-shutdown-screen-black {
  position: absolute;
  inset: 0;
  background: #080D1A;
  z-index: 301;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: #94A3B8;
}

.hd-power-on-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  width: 72px;
  height: 72px;
  justify-content: center;
  color: #FFFFFF;
  cursor: pointer;
  box-shadow: 0 0 20px rgba(186, 43, 62, 0.4);
  transition: all 0.2s ease;
}
.hd-power-on-btn:hover {
  background: #BA2B3E;
  border-color: #BA2B3E;
  transform: scale(1.08);
  box-shadow: 0 0 30px rgba(186, 43, 62, 0.8);
}
.hd-power-on-btn svg { width: 28px; height: 28px; }

/* ============================================================
   M6: DESKTOP CONTEXT MENU
   ============================================================ */
.hd-context-menu {
  position: absolute;
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  border-radius: 6px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
  padding: 4px;
  width: 170px;
  z-index: 250;
  display: flex;
  flex-direction: column;
}
.hd-context-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  font-size: 0.72rem;
  font-weight: 600;
  color: #12234A;
  background: transparent;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  text-align: left;
}
.hd-context-item:hover { background: rgba(186, 43, 62, 0.08); color: #BA2B3E; }

/* ============================================================
   M6: TRAY CHECKLIST FLYOUT
   ============================================================ */
.hd-tray-flyout {
  position: absolute;
  bottom: 46px;
  right: 10px;
  width: 260px;
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  padding: 12px;
  z-index: 110;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.hd-tray-flyout-title {
  font-size: 0.75rem;
  font-weight: 800;
  color: #12234A;
}
.hd-tray-flyout-step {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.68rem;
  color: #475569;
  font-weight: 600;
}
.hd-tray-flyout-step.is-done { color: #107C41; }

/* ============================================================
   CHANGE 6: FIND THE 3 MISTAKES APP
   ============================================================ */
.hd-mistakes-app {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #F8FAFC;
  color: #1E293B;
  font-family: inherit;
  overflow: auto;
  position: relative;
  box-sizing: border-box;
}

/* --- Intro Screen --- */
.hdm-intro {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px 20px;
  max-width: 520px;
  margin: auto;
  gap: 16px;
}
.hdm-intro-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, #E11D48, #BE123C);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  box-shadow: 0 6px 16px rgba(225, 29, 72, 0.28);
}
.hdm-intro-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #12234A;
  margin: 0;
  line-height: 1.25;
}
.hdm-intro-desc {
  font-size: 0.82rem;
  color: #475569;
  line-height: 1.5;
  margin: 0;
}
.hdm-pills-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}
.hdm-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 16px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #1E293B;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.hdm-how-btn {
  background: none;
  border: none;
  color: #0284C7;
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  padding: 2px 6px;
}
.hdm-how-card {
  background: #EFF6FF;
  border: 1px solid #BFDBFE;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 0.72rem;
  color: #1E3A8A;
  text-align: left;
  line-height: 1.45;
  width: 100%;
}
.hdm-start-btn {
  background: #BA2B3E;
  color: #FFFFFF;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 10px 24px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(186, 43, 62, 0.25);
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.hdm-start-btn:hover {
  background: #A02334;
  transform: translateY(-1px);
}
.hdm-toggle-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  color: #64748B;
  cursor: pointer;
}

/* --- Puzzle Screen --- */
.hdm-puzzle-view {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 10px 14px;
  gap: 8px;
  box-sizing: border-box;
}
.hdm-hud {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  border-radius: 6px;
  padding: 6px 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.hdm-hud-left {
  display: flex;
  align-items: center;
  gap: 12px;
}
.hdm-timer-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 800;
  color: #12234A;
}
.hdm-timer-badge.is-urgent {
  color: #DC2626;
  animation: hdmPulseText 0.6s infinite alternate;
}
@keyframes hdmPulseText {
  from { opacity: 1; }
  to { opacity: 0.6; }
}
.hdm-timer-ring-wrap {
  position: relative;
  width: 32px;
  height: 32px;
}
.hdm-timer-ring-svg {
  transform: rotate(-90deg);
  width: 32px;
  height: 32px;
}
.hdm-ring-bg {
  fill: none;
  stroke: #E2E8F0;
  stroke-width: 3.5;
}
.hdm-ring-progress {
  fill: none;
  stroke: #BA2B3E;
  stroke-width: 3.5;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.3s ease;
}
.hdm-hud-dots {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #475569;
}
.hdm-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #CBD5E1;
  transition: all 0.2s ease;
}
.hdm-dot.is-found {
  background: #107C41;
  box-shadow: 0 0 6px rgba(16, 124, 65, 0.45);
}
.hdm-live-banner {
  font-size: 0.72rem;
  font-weight: 600;
  color: #1E293B;
  background: #F1F5F9;
  border-radius: 4px;
  padding: 4px 8px;
  flex: 1 1 200px;
  min-height: 22px;
  display: flex;
  align-items: center;
}
.hdm-live-banner.is-success {
  background: #DCFCE7;
  color: #166534;
}
.hdm-live-banner.is-error {
  background: #FEE2E2;
  color: #991B1B;
}

/* --- Spreadsheet Grid --- */
.hdm-grid-wrap {
  flex: 1;
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  border-radius: 6px;
  overflow: auto;
  position: relative;
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}
.hdm-sheet-titlebar {
  background: #F1F5F9;
  border-bottom: 1px solid #E2E8F0;
  padding: 6px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.68rem;
  color: #475569;
}
.hdm-sheet-titlebar strong { color: #12234A; }
.hdm-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.72rem;
  font-variant-numeric: tabular-nums;
}
.hdm-table th, .hdm-table td {
  border: 1px solid #E2E8F0;
  padding: 5px 8px;
  white-space: nowrap;
}
.hdm-col-header {
  background: #F8FAFC;
  color: #64748B;
  font-weight: 700;
  text-align: center;
  font-size: 0.65rem;
  user-select: none;
}
.hdm-row-num {
  background: #F8FAFC;
  color: #94A3B8;
  font-weight: 600;
  text-align: center;
  width: 32px;
  user-select: none;
}
.hdm-cell {
  cursor: pointer;
  position: relative;
  outline: none;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}
.hdm-cell:hover:not(.hdm-locked-green) {
  background-color: #F1F5F9;
}
.hdm-cell:focus {
  outline: 2px solid #0284C7;
  outline-offset: -2px;
  z-index: 2;
}
.hdm-cell--num { text-align: right; }
.hdm-cell--total {
  font-weight: 800;
  background: #F8FAFC;
}
.hdm-locked-green {
  background-color: #DCFCE7 !important;
  color: #166534 !important;
  border: 2px solid #22C55E !important;
  font-weight: 800 !important;
}
.hdm-shake {
  animation: hdmShake 0.4s ease-in-out;
  background-color: #FEE2E2 !important;
  color: #991B1B !important;
}
@keyframes hdmShake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-4px); }
  40%, 80% { transform: translateX(4px); }
}
.hdm-penalty-badge {
  position: absolute;
  color: #DC2626;
  font-weight: 900;
  font-size: 0.85rem;
  pointer-events: none;
  animation: hdmPenaltyFloat 0.75s ease-out forwards;
  z-index: 50;
  text-shadow: 0 1px 2px rgba(255,255,255,0.8);
}
@keyframes hdmPenaltyFloat {
  0% { opacity: 1; transform: translate(-50%, 0) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -22px) scale(1.15); }
}

/* --- Result Screen --- */
.hdm-result {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 20px;
  max-width: 520px;
  margin: auto;
  gap: 14px;
  text-align: center;
}
.hdm-result-icon {
  font-size: 2.2rem;
  line-height: 1;
}
.hdm-result-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #12234A;
  margin: 0;
}
.hdm-rank-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.hdm-rank--eagle { background: #FEF3C7; color: #92400E; border: 1px solid #FDE68A; }
.hdm-rank--sharp { background: #EFF6FF; color: #1E40AF; border: 1px solid #BFDBFE; }
.hdm-rank--getting { background: #F1F5F9; color: #475569; border: 1px solid #CBD5E1; }
.hdm-rank--practise { background: #FEE2E2; color: #991B1B; border: 1px solid #FECACA; }

.hdm-best-badge {
  font-size: 0.7rem;
  color: #64748B;
  font-weight: 600;
}
.hdm-breakdown-card {
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  border-radius: 8px;
  padding: 10px 14px;
  width: 100%;
  box-sizing: border-box;
  text-align: left;
  font-size: 0.7rem;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.hdm-breakdown-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: #334155;
}
.hdm-breakdown-item.is-found { color: #166534; }
.hdm-breakdown-item.is-missed { color: #991B1B; }

.hdm-actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  width: 100%;
  margin-top: 4px;
}
.hdm-share-btn {
  background: #25D366;
  color: #FFFFFF;
  font-weight: 700;
  font-size: 0.75rem;
  padding: 8px 16px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  transition: all 0.15s ease;
}
.hdm-share-btn:hover { background: #20BD5A; }
.hdm-replay-btn {
  background: #FFFFFF;
  color: #12234A;
  border: 1px solid #CBD5E1;
  font-weight: 700;
  font-size: 0.75rem;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.hdm-replay-btn:hover { background: #F1F5F9; }
.hdm-class-btn {
  background: #BA2B3E;
  color: #FFFFFF;
  border: none;
  font-weight: 700;
  font-size: 0.75rem;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.hdm-class-btn:hover { background: #A02334; }

@media (prefers-reduced-motion: reduce) {
  .hdm-shake { animation: none; }
  .hdm-penalty-badge { animation: none; }
  .hdm-timer-badge.is-urgent { animation: none; }
}

/* ============================================================
   CHANGE 7: NAME PERSONALISATION & SAMPLE CERTIFICATE PREVIEW
   ============================================================ */
.hd-name-dialog {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 270px;
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.16);
  z-index: 105;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: hdNameFadeIn 0.3s ease-out;
}
@keyframes hdNameFadeIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}
.hd-name-dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: #F8FAFC;
  border-bottom: 1px solid #E2E8F0;
}
.hd-name-close-btn {
  background: none;
  border: none;
  font-size: 1.1rem;
  line-height: 1;
  color: #64748B;
  cursor: pointer;
  padding: 0 4px;
}
.hd-name-close-btn:hover { color: #1E293B; }
.hd-name-dialog-body {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.hd-name-question {
  font-size: 0.78rem;
  font-weight: 700;
  color: #12234A;
}
.hd-name-input {
  width: 100%;
  padding: 6px 10px;
  border: 1px solid #CBD5E1;
  border-radius: 5px;
  font-size: 0.75rem;
  box-sizing: border-box;
}
.hd-name-input:focus {
  border-color: #0284C7;
  outline: none;
  box-shadow: 0 0 0 2px rgba(2, 132, 199, 0.2);
}
.hd-name-hint {
  font-size: 0.65rem;
  color: #64748B;
}
.hd-name-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 6px;
}
.hd-name-btn {
  padding: 5px 12px;
  border-radius: 5px;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
}
.hd-name-btn--skip {
  background: #F1F5F9;
  color: #475569;
}
.hd-name-btn--skip:hover { background: #E2E8F0; }
.hd-name-btn--continue {
  background: #0284C7;
  color: #FFFFFF;
}
.hd-name-btn--continue:hover { background: #0369A1; }

/* --- Sample Certificate Preview --- */
.hd-sample-cert {
  position: relative;
  background: #FFFDF7;
  border: 2px solid #D97706;
  border-radius: 8px;
  padding: 16px 20px;
  margin-top: 10px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0,0,0,0.06);
  user-select: none;
}
.hd-sample-cert-watermark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-25deg);
  font-size: 1.1rem;
  font-weight: 900;
  color: rgba(220, 38, 38, 0.24);
  white-space: nowrap;
  pointer-events: none;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  z-index: 5;
  border: 2px dashed rgba(220, 38, 38, 0.28);
  padding: 6px 14px;
  border-radius: 6px;
}
@media print {
  .hd-sample-cert, .hd-sample-cert-watermark { display: none !important; }
}

/* ============================================================
   CHANGE 8: PARENTS' CORNER APP
   ============================================================ */
.hd-parents-app {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #F8FAFC;
  overflow: hidden;
}
.hd-parents-header {
  padding: 10px 14px;
  background: #FFFFFF;
  border-bottom: 1px solid #E2E8F0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.hd-parents-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}
.hd-parents-title {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 800;
  color: #12234A;
}
.hd-parents-subtitle {
  margin: 0;
  font-size: 0.65rem;
  color: #64748B;
}
.hd-parents-search {
  padding: 5px 10px;
  border: 1px solid #CBD5E1;
  border-radius: 5px;
  font-size: 0.72rem;
  width: 170px;
}
.hd-parents-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  flex: 1;
  overflow: hidden;
}
.hd-parents-sidebar {
  background: #FFFFFF;
  border-right: 1px solid #E2E8F0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}
.hd-parents-q-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 12px;
  background: none;
  border: none;
  border-bottom: 1px solid #F1F5F9;
  text-align: left;
  font-size: 0.7rem;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
  transition: all 0.15s ease;
}
.hd-parents-q-btn:hover { background: #F8FAFC; color: #0D9488; }
.hd-parents-q-btn.is-active {
  background: #F0FDFA;
  color: #0D9488;
  border-left: 3px solid #0D9488;
  font-weight: 700;
}
.hd-parents-content {
  padding: 14px 18px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}
.hd-parents-answer-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  padding: 14px 16px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}
.hd-parents-q-heading {
  margin: 0 0 10px;
  font-size: 0.88rem;
  font-weight: 800;
  color: #12234A;
}
.hd-parents-a-body {
  font-size: 0.75rem;
  color: #475569;
  line-height: 1.55;
  margin-bottom: 14px;
}
.hd-parents-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.hd-parents-wa-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #25D366;
  color: #FFFFFF;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 5px;
  text-decoration: none;
  transition: all 0.15s ease;
}
.hd-parents-wa-btn:hover { background: #20BD5A; }
.hd-parents-visit-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #0D9488;
  color: #FFFFFF;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 5px;
  border: none;
  cursor: pointer;
  transition: all 0.15s ease;
}
.hd-parents-visit-btn:hover { background: #0F766E; }

@media (max-width: 768px) {
  .hd-parents-layout {
    grid-template-columns: 1fr;
  }
}


