/* ==========================================================================
   Workshop & Sarasehan Yayasan SIT se-Sumsel 2026 - Modern Design System
   Sleek, Clean, Modern Institutional Architecture with Ergonomic Mobile UX
   Zero External CDN / Privacy-Preserving
   ========================================================================== */

:root {
  /* High-Contrast JSIT Palette - Senior-Friendly & Highly Legible */
  --ink: #000000;
  --ink-heading: #000000;
  --paper: #EAEEF3;
  --paper-alt: #F1F5F9;
  --surface: #FFFFFF;
  --surface-hover: #F8FAFC;
  
  /* Official JSIT Royal Navy Blue (Cerdas & Bijaksana) */
  --primary: #1E40AF;
  --primary-hover: #1D4ED8;
  --primary-active: #1E3A8A;
  --primary-light: #EFF6FF;
  --primary-ink: #FFFFFF;
  --primary-gradient: linear-gradient(135deg, #1E3A8A 0%, #2563EB 100%);
  --primary-glow: 0 4px 14px rgba(30, 64, 175, 0.22);
  
  /* JSIT Warm Gold / Amber Accent (Kecemerlangan & Kejayaan) */
  --accent: #D97706;
  --accent-soft: #FEF3C7;
  --accent-border: #FDE68A;
  --accent-hover: #B45309;
  
  /* Refined High-Contrast Neutrals (Senior Eyes Contrast AAA) */
  --muted: #1E293B;
  --muted-light: #334155;
  --line: #CBD5E1;
  --line-strong: #64748B;
  --line-subtle: #E2E8F0;

  /* Modern Semantic Status Colors */
  --success: #16A34A;
  --success-bg: #F0FDF4;
  --success-border: #BBF7D0;
  --warning: #D97706;
  --warning-bg: #FFFBEB;
  --warning-border: #FDE68A;
  --danger: #DC2626;
  --danger-bg: #FEF2F2;
  --danger-border: #FECACA;
  --info: #2563EB;
  --info-bg: #EFF6FF;
  --info-border: #BFDBFE;

  /* Modern High-Legibility Typography Stack */
  --font-sans: -apple-system, BlinkMacSystemFont, "Plus Jakarta Sans", "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "Plus Jakarta Sans", "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;

  /* Modern Institutional Radius & Shadows (Anti-Slop R-11, R-12) */
  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius: 8px;
  --radius-md: 10px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 9999px;

  --shadow-xs: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 0.06), 0 1px 2px -1px rgb(0 0 0 / 0.06);
  --shadow-md: 0 3px 6px -1px rgb(0 0 0 / 0.06), 0 1px 3px -1px rgb(0 0 0 / 0.04);
  --shadow-lg: 0 6px 12px -2px rgb(0 0 0 / 0.06), 0 2px 4px -2px rgb(0 0 0 / 0.04);
  --shadow-float: 0 8px 18px -4px rgba(15, 23, 42, 0.08), 0 2px 6px -2px rgba(15, 23, 42, 0.03);

  --container-max: 1260px;
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 220ms cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  background-color: var(--paper);
  overflow-x: clip;
}

body {
  margin: 0;
  background-color: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 0.96rem;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Accessibility Skip Link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 12px;
  z-index: 1000;
  background: var(--primary);
  color: var(--primary-ink);
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  text-decoration: none;
  box-shadow: var(--shadow-md);
}

.skip-link:focus {
  left: 14px;
}

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* Modern Typography */
h1, h2, h3, h4, h5 {
  margin: 0 0 0.5rem 0;
  color: var(--ink-heading);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.015em;
}

.font-display {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
}

.tabular,
table td,
table th,
.stat-value,
.code-pill {
  font-variant-numeric: tabular-nums;
}

p {
  margin: 0 0 1rem 0;
  max-width: 68ch;
}

p:last-child {
  margin-bottom: 0;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--primary-hover);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Layout */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 16px;
}

@media (min-width: 768px) {
  .container {
    padding: 0 24px;
  }
}

main {
  flex: 1 0 auto;
  padding: 24px 0 60px;
}

@media (min-width: 768px) {
  main {
    padding: 36px 0 64px;
  }
}

/* ==========================================================================
   Modern Sticky Top Bar (JSIT Dignified Institutional Style)
   Aesthetic Architecture for Both Desktop Web & Mobile
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #FFFFFF;
  border-bottom: 2px solid #D97706; /* JSIT Dignified Amber/Gold Accent Hairline */
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04), 0 4px 12px rgba(15, 23, 42, 0.03);
  transition: all 0.2s ease;
}

.header-inner {
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

@media (min-width: 768px) {
  .header-inner {
    height: 72px;
    gap: 20px;
  }
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: #0F172A;
  min-width: 0;
  flex: 1 1 auto;
}

.brand:hover {
  text-decoration: none;
}

.brand-mark {
  width: 40px;
  height: 40px;
  background: #FFFFFF;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  border: 1.5px solid #F59E0B; /* JSIT Warm Gold */
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
  padding: 3px;
}

@media (min-width: 768px) {
  .brand-mark {
    width: 46px;
    height: 46px;
    border-radius: 10px;
    padding: 4px;
  }
}

.brand-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.brand-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.brand-title {
  font-weight: 800;
  font-size: 0.94rem;
  line-height: 1.25;
  color: #0F172A;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: -0.015em;
}

.brand-title-short {
  display: inline;
}

.brand-title-full {
  display: none;
}

@media (min-width: 768px) {
  .brand-title {
    font-size: 1.12rem;
  }
  .brand-title-short {
    display: none;
  }
  .brand-title-full {
    display: inline;
  }
}

.brand-sub {
  font-size: 0.76rem;
  color: #475569;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 1px;
  display: flex;
  align-items: center;
  gap: 6px;
}

@media (min-width: 768px) {
  .brand-sub {
    font-size: 0.82rem;
    color: #475569;
    margin-top: 2px;
  }
}

.brand-sub-sep {
  color: #94A3B8;
  font-size: 0.8rem;
  font-weight: 700;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

@media (max-width: 480px) {
  .header-inner {
    height: 56px;
  }
  .brand {
    gap: 10px;
  }
  .brand-mark {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    padding: 3px;
  }
  .brand-title {
    font-size: 0.86rem;
    line-height: 1.2;
  }
  .brand-sub {
    font-size: 0.70rem;
    gap: 4px;
  }
}

/* Desktop Navigation (Pill-Style) */
.site-nav {
  display: none;
  align-items: center;
  gap: 6px;
}

@media (min-width: 768px) {
  .site-nav {
    display: flex;
  }
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 40px;
  padding: 0 14px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
  border: 1px solid transparent;
}

.nav-link svg {
  width: 17px;
  height: 17px;
  opacity: 0.75;
  transition: opacity var(--transition-fast);
}

.nav-link:hover {
  color: var(--ink);
  background: var(--paper-alt);
  text-decoration: none;
}

.nav-link:hover svg {
  opacity: 1;
}

.nav-link.is-active {
  color: var(--primary);
  background: var(--primary-light);
  border-color: #BFDBFE;
  font-weight: 700;
}

.nav-link.is-active svg {
  opacity: 1;
  stroke: var(--primary);
}

/* Header Action Pill for Mobile */
.header-badge-mobile {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  background: var(--primary-light);
  color: var(--primary);
  border: 1px solid #BFDBFE;
  border-radius: var(--radius-full);
  font-size: 0.76rem;
  font-weight: 700;
  white-space: nowrap;
}

@media (min-width: 768px) {
  .header-badge-mobile {
    display: none;
  }
}

/* ==========================================================================
   Modern Ergonomic Mobile Bottom Navigation Bar (Thumb Zone)
   ========================================================================== */
.mobile-bottom-nav {
  display: flex;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 95;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-top: 1px solid var(--line);
  box-shadow: 0 -4px 20px rgba(15, 23, 42, 0.06);
  padding: 6px 12px max(8px, env(safe-area-inset-bottom));
  justify-content: space-around;
  align-items: center;
}

@media (min-width: 768px) {
  .mobile-bottom-nav {
    display: none;
  }
}

.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  flex: 1;
  min-width: 0;
  padding: 5px 4px;
  color: var(--muted);
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  position: relative;
  -webkit-tap-highlight-color: transparent;
}

.bottom-nav-item:hover,
.bottom-nav-item:focus {
  text-decoration: none;
  color: var(--ink);
}

.bottom-nav-icon {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition-fast);
}

.bottom-nav-icon svg {
  width: 21px;
  height: 21px;
  stroke-width: 2;
}

.bottom-nav-label {
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.1;
  white-space: nowrap;
  letter-spacing: -0.01em;
}

/* Active State on Mobile Bottom Nav */
.bottom-nav-item.is-active {
  color: var(--primary);
}

.bottom-nav-item.is-active .bottom-nav-icon {
  transform: translateY(-2px);
}

.bottom-nav-item.is-active .bottom-nav-icon svg {
  stroke: var(--primary);
  stroke-width: 2.3;
}

.bottom-nav-item.is-active .bottom-nav-label {
  font-weight: 700;
}

.bottom-nav-item.is-active::after {
  content: "";
  position: absolute;
  top: 1px;
  width: 18px;
  height: 3px;
  background: var(--primary);
  border-radius: var(--radius-full);
}

/* Prominent Floating Center Action Button for Scanner on Mobile */
.bottom-nav-item.scanner-action-btn {
  transform: translateY(-8px);
}

.bottom-nav-item.scanner-action-btn .bottom-nav-icon {
  width: 44px;
  height: 44px;
  background: var(--primary-gradient);
  color: #FFFFFF;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 14px rgba(30, 64, 175, 0.38);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid #FFFFFF;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.bottom-nav-item.scanner-action-btn .bottom-nav-icon svg {
  stroke: #FFFFFF;
  width: 22px;
  height: 22px;
}

.bottom-nav-item.scanner-action-btn .bottom-nav-label {
  color: var(--primary);
  font-weight: 700;
  margin-top: 1px;
}

.bottom-nav-item.scanner-action-btn:active .bottom-nav-icon {
  transform: scale(0.92);
}

/* ==========================================================================
   Editorial & Modern Hero
   ========================================================================== */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px;
  background: var(--primary-light);
  border: 1px solid #BFDBFE;
  border-radius: var(--radius-xs);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--primary);
  margin-bottom: 12px;
}

.eyebrow-dot {
  width: 7px;
  height: 7px;
  background: var(--accent);
  border-radius: var(--radius-full);
  display: inline-block;
}

.editorial-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: start;
}

@media (min-width: 960px) {
  .editorial-grid {
    grid-template-columns: 7fr 5fr;
    gap: 36px;
  }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--ink-heading);
  margin-bottom: 14px;
}

.hero-lead {
  font-size: 1.05rem;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 24px;
}

/* Divider */
.motif-rule {
  height: 2px;
  border: 0;
  margin: 36px 0;
  background: linear-gradient(90deg, var(--primary) 0%, #2563EB 30%, var(--accent) 70%, transparent 100%);
  opacity: 0.25;
}

/* ==========================================================================
   Modern Cards / Panels
   ========================================================================== */
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 20px;
  transition: box-shadow var(--transition-fast), border-color var(--transition-fast);
}

@media (min-width: 768px) {
  .panel {
    padding: 26px;
    border-radius: var(--radius-lg);
  }
}

.panel-accent {
  border-top: 4px solid var(--primary);
}

.panel-gold {
  border-left: 4px solid var(--accent);
  background: #FFFDF8;
  border-color: var(--accent-border);
}

.panel-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 14px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--line-subtle);
}

.panel-title {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--ink-heading);
}

/* Key-Value Lists */
.meta-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  margin: 0;
  min-width: 0;
  width: 100%;
}

@media (min-width: 560px) {
  .meta-list.two-col {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.meta-item {
  min-width: 0;
  overflow: hidden;
}

.meta-item dt {
  font-size: 0.77rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  font-weight: 700;
  margin-bottom: 3px;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.meta-item dd {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--ink);
  word-break: break-word;
  overflow-wrap: anywhere;
  min-width: 0;
}

/* ==========================================================================
   Modern Buttons
   ========================================================================== */
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 18px;
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.btn:active:not(:disabled) {
  transform: scale(0.98);
}

.btn:hover {
  text-decoration: none;
}

.btn:disabled,
.btn[aria-disabled="true"] {
  opacity: 0.55;
  cursor: not-allowed;
}

.btn-primary {
  background: var(--primary);
  color: var(--primary-ink);
  border: 1px solid #172554;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
}

.btn-primary:hover:not(:disabled) {
  background: #172554;
  color: var(--primary-ink);
  box-shadow: 0 2px 4px rgba(15, 23, 42, 0.12);
}

.btn-secondary {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-xs);
}

.btn-secondary:hover:not(:disabled) {
  background: var(--paper-alt);
  color: var(--ink);
  border-color: #94A3B8;
}

.btn-danger {
  background: var(--danger-bg);
  color: var(--danger);
  border-color: var(--danger-border);
}

.btn-danger:hover:not(:disabled) {
  background: var(--danger);
  color: #FFFFFF;
}

.btn-sm {
  min-height: 36px;
  padding: 6px 14px;
  font-size: 0.84rem;
  border-radius: var(--radius-xs);
}

.btn-lg {
  min-height: 50px;
  padding: 12px 24px;
  font-size: 1rem;
  border-radius: var(--radius);
}

/* ==========================================================================
   Chips, Status Pills, and Code Pills
   ========================================================================== */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  font-size: 0.78rem;
  font-weight: 700;
  border-radius: var(--radius-xs);
  border: 1px solid transparent;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
  white-space: normal;
  line-height: 1.35;
}

.pill-success {
  background: var(--success-bg);
  color: var(--success);
  border-color: var(--success-border);
}

.pill-warning {
  background: var(--warning-bg);
  color: var(--warning);
  border-color: var(--warning-border);
}

.pill-danger {
  background: var(--danger-bg);
  color: var(--danger);
  border-color: var(--danger-border);
}

.pill-info {
  background: var(--info-bg);
  color: var(--info);
  border-color: var(--info-border);
}

.pill-neutral {
  background: var(--paper-alt);
  color: var(--muted);
  border-color: var(--line);
}

.code-pill {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  background: var(--paper-alt);
  border: 1px solid var(--line);
  padding: 3px 8px;
  border-radius: var(--radius-xs);
  color: var(--ink);
  font-weight: 600;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-all;
  display: inline-block;
  white-space: normal;
}

/* Certificate Status Wrap & Number Badge */
.cert-status-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  min-width: 0;
}

.cert-number-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  color: #166534;
  background: #F0FDF4;
  border: 1px solid #BBF7D0;
  padding: 2px 7px;
  border-radius: 4px;
  overflow-wrap: anywhere;
  word-break: break-all;
  max-width: 100%;
}

/* Alert Banners */
.alert {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 18px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  margin-bottom: 20px;
  box-shadow: var(--shadow-xs);
}

.alert-success {
  background: var(--success-bg);
  border-color: var(--success-border);
  color: #14532D;
}

.alert-warning {
  background: var(--warning-bg);
  border-color: var(--warning-border);
  color: #78350F;
}

.alert-danger {
  background: var(--danger-bg);
  border-color: var(--danger-border);
  color: #7F1D1D;
}

.alert-info {
  background: var(--info-bg);
  border-color: var(--info-border);
  color: #0C4A6E;
}

/* ==========================================================================
   Modern Forms & Inputs
   ========================================================================== */
.form-group {
  margin-bottom: 18px;
}

.form-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--ink-heading);
}

.form-hint {
  display: block;
  font-size: 0.81rem;
  color: var(--muted);
  margin-top: 5px;
}

.form-control {
  width: 100%;
  min-height: 44px;
  padding: 10px 14px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-xs);
}

textarea.form-control {
  min-height: 110px;
  resize: vertical;
}

.form-control:focus {
  border-color: var(--primary);
  outline: none;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18);
}

/* Question Badges & Clean Eye-Friendly Form Cards */
.q-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: var(--radius-full);
  background: var(--primary-light);
  color: var(--primary);
  border: 1px solid #BFDBFE;
  font-size: 0.85rem;
  font-weight: 700;
  margin-right: 8px;
  flex-shrink: 0;
}

.form-card-field {
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin-bottom: 20px;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-card-field:focus-within {
  border-color: #93C5FD;
  box-shadow: 0 4px 14px -2px rgba(30, 64, 175, 0.08);
}

.option-select-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  min-height: 44px;
  background: #FFFFFF;
  border: 1.5px solid #64748B;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.92rem;
  font-weight: 600;
  color: #000000;
  transition: border-color var(--transition-fast), background var(--transition-fast);
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.option-select-card:hover {
  background: var(--paper-alt);
  border-color: #334155;
}

.option-select-card:has(input:checked) {
  border-color: #1E3A8A;
  background: #EFF6FF;
  color: #1E3A8A;
  font-weight: 700;
}

.callout-clean {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-left: 4px solid var(--primary);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
}

/* ==========================================================================
   Tables & Mobile Stack
   ========================================================================== */
.table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-xs);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.91rem;
}

.data-table th {
  background: var(--paper-alt);
  color: var(--muted);
  font-size: 0.77rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
}

.data-table td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--line-subtle);
  vertical-align: top;
}

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

@media (max-width: 767px) {
  .data-table.stack-mobile thead {
    display: none;
  }
  .data-table.stack-mobile,
  .data-table.stack-mobile tbody,
  .data-table.stack-mobile tr,
  .data-table.stack-mobile td {
    display: block;
    width: 100%;
  }
  .data-table.stack-mobile tr {
    padding: 16px;
    border-bottom: 1px solid var(--line);
  }
  .data-table.stack-mobile td {
    padding: 6px 0;
    border-bottom: none;
  }
  .data-table.stack-mobile td::before {
    content: attr(data-label);
    display: block;
    font-size: 0.74rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 2px;
  }
}

/* ==========================================================================
   Stats Strip (Dashboard)
   ========================================================================== */
.stats-strip {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-bottom: 24px;
}

@media (min-width: 480px) {
  .stats-strip {
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 16px;
    margin-bottom: 28px;
  }
}

.stat-block {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 18px;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

@media (min-width: 768px) {
  .stat-block {
    padding: 20px 22px;
  }
}

.stat-block::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 4px;
  background: var(--primary-gradient);
}

.stat-label {
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.stat-value {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1.15;
  margin: 6px 0 4px;
  color: var(--ink-heading);
}

.stat-note {
  font-size: 0.81rem;
  color: var(--muted);
}

/* ==========================================================================
   Portal Peserta Layout
   ========================================================================== */
.portal-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 880px) {
  .portal-layout {
    grid-template-columns: 5fr 7fr;
    align-items: start;
    gap: 28px;
  }
}

/* Delegate Content Grid (Simulation Dashboard) */
.delegate-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
  min-width: 0;
  width: 100%;
}

@media (min-width: 820px) {
  .delegate-content-grid {
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 24px;
    align-items: start;
  }
}

.qr-frame {
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 22px;
  text-align: center;
  max-width: 290px;
  margin: 0 auto;
}

.qr-frame svg {
  width: 100%;
  height: auto;
  max-width: 230px;
  display: block;
  margin: 0 auto;
}

/* ==========================================================================
   Scanner High-Contrast & Responsive Layout (Desktop Split / Mobile Top-Pinned)
   ========================================================================== */
.scanner-shell {
  max-width: 760px;
  margin: 0 auto;
}

@media (min-width: 992px) {
  .scanner-shell {
    max-width: 1140px;
    margin: 0 auto;
  }
}

.scanner-mode-banner {
  padding: 12px 18px;
  border-radius: var(--radius);
  margin-bottom: 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-shadow: var(--shadow-sm);
}

.scanner-mode-banner.is-attendance {
  background: #1E3A8A;
  color: #FFFFFF;
  border: 1px solid #1D4ED8;
}

.scanner-mode-banner.is-identify {
  background: #0F172A;
  color: #FFFFFF;
  border: 1px solid #334155;
}

/* Split Grid for Desktop, Vertical Stack for Mobile */
.scanner-split-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

@media (min-width: 992px) {
  .scanner-split-grid {
    display: grid;
    grid-template-columns: minmax(420px, 1.05fr) minmax(460px, 1.15fr);
    gap: 24px;
    align-items: start;
  }
  .scanner-col-camera {
    position: sticky;
    top: 84px;
  }
}

.scanner-camera-panel {
  padding: 14px;
}

@media (min-width: 640px) {
  .scanner-camera-panel {
    padding: 18px;
  }
}

.camera-box {
  position: relative;
  width: 100%;
  background: #090D16;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  max-height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.4);
}

@media (max-width: 640px) {
  .camera-box {
    aspect-ratio: 4 / 3;
    max-height: 270px; /* Pinned & compact on phone so result box stays in view! */
  }
}

.camera-box video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.camera-reticle {
  position: absolute;
  width: min(60%, 200px);
  aspect-ratio: 1 / 1;
  border: 3px solid rgba(255, 255, 255, 0.95);
  border-radius: 12px;
  box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.42);
  pointer-events: none;
}

/* Notifikasi Menimpa Kamera Saat Scan Valid / Berhasil */
.camera-box-overlay {
  position: absolute;
  inset: 0;
  z-index: 30;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 16px 20px;
  border-radius: var(--radius);
  transition: opacity 0.25s ease-in-out;
  animation: overlayPop 0.26s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

@keyframes overlayPop {
  from {
    opacity: 0;
    transform: scale(0.92);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.camera-box-overlay.is-success {
  background: rgba(6, 78, 59, 0.94);
  color: #FFFFFF;
  border: 2.5px solid #10B981;
}

.camera-box-overlay.is-already {
  background: rgba(30, 58, 138, 0.94);
  color: #FFFFFF;
  border: 2.5px solid #3B82F6;
}

.camera-box-overlay.is-identify {
  background: rgba(15, 23, 42, 0.94);
  color: #FFFFFF;
  border: 2.5px solid #64748B;
}

.camera-box-overlay.is-error {
  background: rgba(153, 27, 27, 0.94);
  color: #FFFFFF;
  border: 2.5px solid #EF4444;
}

.camera-overlay-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  margin-bottom: 8px;
  flex-shrink: 0;
}

.camera-overlay-title {
  font-size: 1.08rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #FFFFFF;
  line-height: 1.25;
  margin-bottom: 4px;
}

.camera-overlay-name {
  font-size: 1.16rem;
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1.3;
  margin-bottom: 4px;
  max-width: 95%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.camera-overlay-meta {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.4;
  font-weight: 600;
  max-width: 95%;
  overflow-wrap: anywhere;
}

/* Status Mode Sesi Halus di Bawah Kontrol Kamera */
.scanner-session-strip {
  margin-top: 14px;
  padding: 10px 14px;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: var(--radius-sm);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

.status-dot.is-active {
  background: #10B981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.25);
}

.status-dot.is-idle {
  background: #64748B;
  box-shadow: 0 0 0 3px rgba(100, 116, 139, 0.2);
}

.scanner-sound-toggle {
  min-height: 48px;
  padding: 0 14px;
  white-space: nowrap;
}

@media (max-width: 480px) {
  .scanner-sound-toggle {
    width: 100%;
    text-align: center;
  }
}

.scanner-camera-actions {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.scanner-btn-group {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1 1 auto;
}

.scanner-btn-action {
  flex: 1 1 auto;
  min-height: 48px;
}

@media (max-width: 480px) {
  .scanner-camera-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .scanner-btn-group {
    width: 100%;
  }
  .scanner-btn-action {
    width: 100%;
  }
  .scanner-session-link {
    text-align: center;
    width: 100%;
  }
}

.scanner-col-results {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.scanner-col-results .scan-result-card {
  margin-top: 0; /* Aligned to the top of column */
}

.scan-result-card {
  padding: 20px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}

.scan-result-card.state-recorded {
  background: #F0FDF4;
  border: 2px solid #16A34A;
}

.scan-result-card.state-already_recorded {
  background: #EFF6FF;
  border: 2px solid #2563EB;
}

.scan-result-card.state-identified {
  background: #EFF6FF;
  border: 2px solid #2563EB;
}

.scan-result-card.state-pending {
  background: #FEF3C7;
  border: 2px solid #D97706;
}

.scan-result-card.state-rejected,
.scan-result-card.state-error {
  background: #FEF2F2;
  border: 2px solid #DC2626;
}

.scan-status-heading {
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 6px;
  color: #0F172A;
}

.scan-participant-name {
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.25;
  margin-top: 10px;
  color: #0F172A;
}

.scanner-manual-panel {
  padding: 18px;
}

/* ==========================================================================
   Mobile Scanner Toast Notification & Scroll Pulse
   ========================================================================== */
.scanner-toast-banner {
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translateX(-50%) translateY(-120px);
  z-index: 9999;
  background: #1E3A8A;
  color: #FFFFFF;
  padding: 12px 18px;
  border-radius: var(--radius);
  border: 1px solid #172554;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.18);
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 92vw;
  width: max-content;
  pointer-events: none;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease;
  opacity: 0;
}

.scanner-toast-banner.is-visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.scanner-toast-banner.is-error {
  background: #DC2626;
  border-color: #991B1B;
}

.scanner-toast-icon {
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.scanner-toast-icon svg {
  width: 20px;
  height: 20px;
  stroke: #FFFFFF;
}

.scanner-toast-title {
  font-weight: 800;
  font-size: 0.96rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.scanner-toast-subtitle {
  font-size: 0.82rem;
  opacity: 0.92;
  margin-top: 2px;
  line-height: 1.3;
}

@keyframes scanHighlightPulse {
  0% {
    transform: scale(0.98);
    box-shadow: 0 0 0 0 rgba(30, 64, 175, 0.5);
  }
  50% {
    transform: scale(1.015);
    box-shadow: 0 0 0 10px rgba(30, 64, 175, 0.18);
  }
  100% {
    transform: scale(1);
    box-shadow: var(--shadow-sm);
  }
}

.scan-highlight-pulse {
  animation: scanHighlightPulse 0.5s ease-out;
}

/* Dialog Modal */
dialog.app-dialog {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
  max-width: 500px;
  width: calc(100% - 32px);
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-float);
}

dialog.app-dialog::backdrop {
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
}

/* Header Status Badge */
.header-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #F0FDF4;
  color: #166534;
  border: 1px solid #BBF7D0;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  flex-shrink: 0;
}

.status-indicator-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #16A34A;
  box-shadow: 0 0 0 2px rgba(22, 163, 74, 0.2);
}

@media (max-width: 640px) {
  .header-status-badge {
    display: none !important;
  }
}

/* ==========================================================================
   Split Form Layout - Dignified Institutional Architecture (DESIGN.md)
   Left: Event Information & Official Banner; Right: Clean Registration Form
   ========================================================================== */
.split-card-wrapper {
  max-width: 1200px;
  margin: 12px auto 36px;
  background: #FFFFFF;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08), 0 4px 12px rgba(15, 23, 42, 0.04);
  border: 1px solid #E2E8F0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

@media (min-width: 960px) {
  .split-card-wrapper {
    border-radius: 16px;
    margin: 20px auto 48px;
    flex-direction: row;
    min-height: 720px;
  }
}

.split-card-left {
  background: #162E66;
  color: #FFFFFF;
  padding: 22px 18px;
  display: flex;
  flex-direction: column;
  position: relative;
  border-bottom: 1px solid #E2E8F0;
}

@media (min-width: 640px) {
  .split-card-left {
    padding: 28px 24px;
  }
}

@media (min-width: 960px) {
  .split-card-left {
    flex: 0 0 42%;
    max-width: 42%;
    padding: 34px 30px;
    border-bottom: none;
    border-right: 1px solid #E2E8F0;
  }
}

.split-card-showcase {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.split-card-right {
  background: #FFFFFF;
  padding: 24px 18px;
  flex: 1 1 58%;
}

@media (min-width: 640px) {
  .split-card-right {
    padding: 32px 28px;
  }
}

@media (min-width: 768px) {
  .split-card-right {
    padding: 38px 38px;
  }
}

@media (min-width: 1100px) {
  .split-card-right {
    padding: 44px 46px;
  }
}

/* Institutional Form Inputs (Anti-Slop: Clean Rectangular with Subtle Radius) */
.input-soft,
.input-text {
  width: 100%;
  min-height: 46px;
  padding: 10px 14px;
  font-family: var(--font-sans);
  font-size: 16px; /* 16px stops iOS Safari auto-zoom on input tap */
  color: #000000;
  font-weight: 500;
  background: #FFFFFF;
  border: 1.5px solid #64748B;
  border-radius: 8px;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  box-sizing: border-box;
  -webkit-appearance: none;
}

.input-soft::placeholder,
.input-text::placeholder {
  color: #475569;
  opacity: 1;
}

@media (min-width: 768px) {
  .input-soft,
  .input-text {
    font-size: 0.96rem;
  }
}

.input-soft:hover,
.input-text:hover {
  border-color: #334155;
}

.input-soft:focus,
.input-text:focus {
  background: #FFFFFF;
  border-color: #1E3A8A;
  outline: none;
  box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.2);
}

textarea.input-soft,
textarea.input-text {
  min-height: 105px;
  resize: vertical;
  line-height: 1.55;
}

.label-soft {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  color: #000000;
  margin-bottom: 6px;
  line-height: 1.45;
}

/* Primary Action Button (Authentic Institutional: Clean Rectangular 8px) */
.btn-submit-primary,
.btn-pill-submit {
  width: 100%;
  min-height: 48px;
  padding: 12px 24px;
  border-radius: 8px;
  background: #1E3A8A;
  color: #FFFFFF;
  font-family: var(--font-sans);
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: normal;
  text-transform: none;
  border: 1px solid #172554;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.1);
  transition: background var(--transition-fast), border-color var(--transition-fast);
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

@media (min-width: 640px) {
  .btn-submit-primary,
  .btn-pill-submit {
    min-height: 50px;
    font-size: 1rem;
  }
}

.btn-submit-primary:hover:not(:disabled),
.btn-pill-submit:hover:not(:disabled) {
  background: #172554;
  color: #FFFFFF;
  text-decoration: none;
}

.btn-submit-primary:active:not(:disabled),
.btn-pill-submit:active:not(:disabled) {
  background: #0F172A;
}

.btn-submit-primary:focus-visible,
.btn-pill-submit:focus-visible {
  outline: 2px solid #D97706;
  outline-offset: 2px;
}

/* Preset Cards (Solid, Calm, Clear) */
.btn-preset-card,
.btn-preset-glass {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #FFFFFF;
  padding: 10px 14px;
  min-height: 42px;
  border-radius: 8px;
  font-size: 0.84rem;
  font-weight: 500;
  cursor: pointer;
  transition: background var(--transition-fast), border-color var(--transition-fast);
  text-align: left;
  width: 100%;
  display: block;
  -webkit-tap-highlight-color: transparent;
}

.btn-preset-card:hover,
.btn-preset-glass:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.35);
}

.btn-preset-card:focus-visible,
.btn-preset-glass:focus-visible {
  outline: 2px solid #F59E0B;
  outline-offset: 2px;
}

/* Details Drawer */
details.inline-drawer {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper-alt);
  padding: 10px 14px;
  margin-top: 8px;
}

details.inline-drawer summary {
  cursor: pointer;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--primary);
}

/* ==========================================================================
   Aesthetic Institutional Footer (Official JSIT Dignity)
   ========================================================================== */
.site-footer {
  background: #14254E;
  color: #FFFFFF;
  border-top: 3px solid #D97706;
  margin-top: 56px;
  padding: 44px 0 0;
  font-family: var(--font-sans);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 1.35fr 1.15fr 0.9fr;
    gap: 36px;
  }
}

.footer-brand-lockup {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.footer-brand-mark {
  width: 44px;
  height: 44px;
  background: #FFFFFF;
  border: 1.5px solid #FDE68A;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  flex-shrink: 0;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.footer-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.footer-heading {
  font-size: 0.88rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #FDE68A;
  margin-bottom: 14px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  color: #F1F5F9;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: #FDE68A;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.footer-sub-bar {
  padding: 18px 0 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.82rem;
  color: #CBD5E1;
}

@media (min-width: 768px) {
  .footer-sub-bar {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

/* ==========================================================================
   Mobile-Ergonomic Dashboard & Zero-Offside Layout Helpers
   (anti-slop R-03, R-35: Perfect reflow, Zero Horizontal Scroll Leak)
   ========================================================================== */
.banner-cta-panel {
  background: #1E3A8A;
  color: #FFFFFF;
  border: 1px solid #172554;
  margin-bottom: 24px;
  padding: 18px 16px;
  border-radius: var(--radius);
  box-sizing: border-box;
  overflow: hidden;
}

@media (min-width: 768px) {
  .banner-cta-panel {
    padding: 22px 26px;
    border-radius: var(--radius-lg);
  }
}

.banner-cta-inner {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

@media (min-width: 860px) {
  .banner-cta-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

.banner-cta-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

@media (min-width: 540px) {
  .banner-cta-actions {
    flex-direction: row;
    flex-wrap: wrap;
    width: auto;
  }
}

.banner-cta-actions form {
  width: 100%;
  margin: 0;
}

@media (min-width: 540px) {
  .banner-cta-actions form {
    width: auto;
  }
}

.banner-cta-btn {
  width: 100%;
  min-height: 48px;
  padding: 10px 16px;
  font-family: var(--font-sans);
  font-size: 0.94rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  text-align: center;
  box-sizing: border-box;
  white-space: normal;
  line-height: 1.35;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all var(--transition-fast);
}

@media (min-width: 540px) {
  .banner-cta-btn {
    width: auto;
    white-space: nowrap;
    padding: 12px 20px;
    font-size: 0.98rem;
  }
}

.banner-cta-btn-primary {
  background: #FFFFFF;
  color: #1E40AF;
  border-color: #CBD5E1;
}

.banner-cta-btn-primary:hover {
  background: #F8FAFC;
  color: #172554;
  text-decoration: none;
}

.banner-cta-btn-accent {
  background: #D97706;
  color: #FFFFFF;
  border-color: #B45309;
}

.banner-cta-btn-accent:hover {
  background: #B45309;
  color: #FFFFFF;
  text-decoration: none;
}

/* Guide Steps Responsive Grid */
.guide-steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

@media (min-width: 560px) {
  .guide-steps-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
}

@media (min-width: 1024px) {
  .guide-steps-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.guide-step-card {
  background: #F8FAFC;
  border: 1.5px solid #CBD5E1;
  border-radius: var(--radius-sm);
  padding: 14px 14px;
  box-sizing: border-box;
}

/* Delegate Actions Responsive Grid */
.delegate-actions-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  width: 100%;
  margin-top: 4px;
  min-width: 0;
}

@media (min-width: 520px) {
  .delegate-actions-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 960px) {
  .delegate-actions-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  }
}

.delegate-actions-grid .btn,
.delegate-actions-grid form {
  width: 100%;
  margin: 0;
  box-sizing: border-box;
}

.delegate-actions-grid .btn {
  min-height: 44px;
  justify-content: center;
  text-align: center;
  white-space: normal;
  line-height: 1.35;
  padding: 8px 12px;
  font-size: 0.88rem;
}

/* Dashboard Hero Header */
.dashboard-hero-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  min-width: 0;
  width: 100%;
}

@media (max-width: 640px) {
  .dashboard-hero-header {
    flex-direction: column;
    gap: 16px;
  }
  .dashboard-hero-header .btn-row {
    width: 100%;
    display: flex;
    flex-direction: column;
  }
  .dashboard-hero-header .btn-row .btn {
    width: 100%;
    justify-content: center;
    text-align: center;
  }
}

/* Print Rules */
@media print {
  .site-header,
  .site-footer,
  .mobile-bottom-nav,
  .no-print {
    display: none !important;
  }
  body {
    background: #FFFFFF;
  }
  main {
    padding: 0;
  }
  .panel {
    border-color: #000000;
    box-shadow: none;
  }
}
