:root {
  --surface: #ffffff;
  --panel: #f5f7fb;
  --brand-main: #1d4ed8;
  --brand-alt: #0891b2;
  --line: #dce3f2;
  --radius-xl: 24px;
  --radius-lg: 18px;
  --shadow-soft: 0 26px 70px -38px rgba(11, 16, 32, 0.35);
  --bg-radial-1: rgba(191, 219, 254, 0.4);
  --bg-radial-2: rgba(224, 231, 255, 0.5);
  --bg-grad-start: #f3f5fb;
  --bg-grad-mid: #f8fafc;
  --bg-grad-end: #eef3ff;
  --menu-grad-start: #0f172a;
  --menu-grad-end: #1e293b;
  --menu-shadow: rgba(15, 23, 42, 0.85);
  --hero-grad-start: #0f172a;
  --hero-grad-mid: #1d4ed8;
  --hero-grad-end: #38bdf8;
}

body[data-theme='dark'] {
  --bg-radial-1: rgba(30, 58, 138, 0.34);
  --bg-radial-2: rgba(8, 145, 178, 0.26);
  --bg-grad-start: #050b18;
  --bg-grad-mid: #0b1428;
  --bg-grad-end: #111c34;
  --menu-grad-start: #0b1222;
  --menu-grad-end: #16233d;
  --menu-shadow: rgba(2, 6, 23, 0.9);
  --hero-grad-start: #0f172a;
  --hero-grad-mid: #1e3a8a;
  --hero-grad-end: #0e7490;
}

body {
  background:
    radial-gradient(circle at top left, var(--bg-radial-1), transparent 35%),
    radial-gradient(circle at 85% 20%, var(--bg-radial-2), transparent 40%),
    linear-gradient(160deg, var(--bg-grad-start) 0%, var(--bg-grad-mid) 45%, var(--bg-grad-end) 100%);
}

html,
body {
  font-family: 'Manrope', ui-sans-serif, system-ui, sans-serif;
}

body[data-theme='dark'] {
  color: #dbe7ff;
}

body[data-theme='dark'] .enterprise-shell,
body[data-theme='dark'] .sidebar-shell {
  border-color: rgba(148, 163, 184, 0.22);
  background: rgba(15, 23, 42, 0.78);
  box-shadow: 0 22px 48px -34px rgba(2, 6, 23, 0.95);
}

body[data-theme='dark'] .sidebar-brand-card,
body[data-theme='dark'] .sidebar-user-card,
body[data-theme='dark'] .sidebar-submenu-wrap {
  border-color: rgba(148, 163, 184, 0.2);
  background: rgba(30, 41, 59, 0.72);
}

body[data-theme='dark'] .sidebar-section-title,
body[data-theme='dark'] .sidebar-submenu-label,
body[data-theme='dark'] .sidebar-chevron,
body[data-theme='dark'] .topbar-caption,
body[data-theme='dark'] .text-ink-500,
body[data-theme='dark'] .text-ink-600 {
  color: #93a4bf !important;
}

body[data-theme='dark'] .sidebar-menu-item,
body[data-theme='dark'] .sidebar-footer-link,
body[data-theme='dark'] .sidebar-fav-item,
body[data-theme='dark'] .text-ink-700 {
  color: #d6e2f7 !important;
}

body[data-theme='dark'] .sidebar-tag {
  background: rgba(148, 163, 184, 0.18);
  color: #c7d6ee;
}

body[data-theme='dark'] .sidebar-fav-item .bg-violet-500,
body[data-theme='dark'] .sidebar-fav-item .bg-rose-500,
body[data-theme='dark'] .sidebar-fav-item .bg-sky-500 {
  box-shadow: 0 0 0 2px rgba(15, 23, 42, 0.9);
}

body[data-theme='dark'] .sidebar-fav-item .bg-violet-500 {
  background: #8b5cf6 !important;
}

body[data-theme='dark'] .sidebar-fav-item .bg-rose-500 {
  background: #f43f5e !important;
}

body[data-theme='dark'] .sidebar-fav-item .bg-sky-500 {
  background: #0ea5e9 !important;
}

body[data-theme='dark'] .sidebar-menu-item:hover,
body[data-theme='dark'] .sidebar-footer-link:hover {
  background: rgba(37, 99, 235, 0.2);
}

body[data-theme='dark'] .menu-active,
body[data-theme='dark'] .sidebar-submenu-item.menu-active,
body[data-theme='dark'] .support-love-link.menu-active {
  background: rgba(37, 99, 235, 0.24) !important;
  color: #e5efff !important;
}

body[data-theme='dark'] .support-love-link:not(.menu-active) {
  background: rgba(30, 58, 138, 0.2);
  border: 1px solid rgba(96, 165, 250, 0.34);
  color: #cfe1ff !important;
}

body[data-theme='dark'] .support-love-link:not(.menu-active):hover {
  background: rgba(30, 58, 138, 0.34);
  border-color: rgba(125, 211, 252, 0.5);
  color: #e8f1ff !important;
}

body[data-theme='dark'] .support-love-link.menu-active {
  background: rgba(30, 58, 138, 0.42) !important;
  border: 1px solid rgba(96, 165, 250, 0.58);
  color: #eff6ff !important;
}

body[data-theme='dark'] .support-love-link .sidebar-icon-box {
  color: #93c5fd;
}

body[data-theme='dark'] .sidebar-collapse-btn {
  border-color: rgba(148, 163, 184, 0.28);
  background: rgba(15, 23, 42, 0.86);
  color: #dbe7ff;
}

body[data-theme='dark'] .sidebar-collapse-btn:hover {
  background: rgba(30, 41, 59, 0.9);
}

body[data-theme='dark'] .stats-ref-icon.bg-indigo-50,
body[data-theme='dark'] .stats-ref-icon.bg-emerald-50,
body[data-theme='dark'] .stats-ref-icon.bg-amber-50,
body[data-theme='dark'] .stats-ref-icon.bg-sky-50 {
  border: 1px solid rgba(148, 163, 184, 0.26);
}

body[data-theme='dark'] .stats-ref-icon.bg-indigo-50 {
  background: rgba(67, 56, 202, 0.24);
  color: #a5b4fc;
}

body[data-theme='dark'] .stats-ref-icon.bg-emerald-50 {
  background: rgba(5, 150, 105, 0.24);
  color: #6ee7b7;
}

body[data-theme='dark'] .stats-ref-icon.bg-amber-50 {
  background: rgba(37, 99, 235, 0.24);
  color: #93c5fd;
}

body[data-theme='dark'] .stats-ref-icon.bg-sky-50 {
  background: rgba(14, 116, 144, 0.26);
  color: #67e8f9;
}

body[data-theme='dark'] #dashboardActivityList article.bg-white {
  background: rgba(15, 23, 42, 0.7) !important;
}

body[data-theme='dark'] #dashboardActivityList .bg-emerald-50,
body[data-theme='dark'] #dashboardActivityList .bg-red-50,
body[data-theme='dark'] #dashboardActivityList .bg-emerald-100,
body[data-theme='dark'] #dashboardActivityList .bg-red-100 {
  border: 1px solid rgba(148, 163, 184, 0.24);
}

body[data-theme='dark'] #dashboardActivityList .bg-emerald-50 {
  background: rgba(5, 150, 105, 0.22) !important;
  color: #6ee7b7 !important;
}

body[data-theme='dark'] #dashboardActivityList .bg-red-50 {
  background: rgba(185, 28, 28, 0.22) !important;
  color: #fca5a5 !important;
}

body[data-theme='dark'] #dashboardActivityList .bg-emerald-100 {
  background: rgba(5, 150, 105, 0.24) !important;
  color: #a7f3d0 !important;
}

body[data-theme='dark'] #dashboardActivityList .bg-red-100 {
  background: rgba(185, 28, 28, 0.24) !important;
  color: #fecaca !important;
}

body[data-theme='dark'] .saved-template-type {
  border: 1px solid rgba(148, 163, 184, 0.24);
}

body[data-theme='dark'] .saved-template-type.gambar {
  background: rgba(14, 116, 144, 0.24);
  color: #67e8f9;
}

body[data-theme='dark'] .saved-template-type.ppt {
  background: rgba(37, 99, 235, 0.24);
  color: #93c5fd;
}

body[data-theme='dark'] .saved-template-type.baru {
  background: rgba(67, 56, 202, 0.22);
  color: #c7d2fe;
}

body[data-theme='dark'] #templateManagerCount,
body[data-theme='dark'] #certificateBatchCount {
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(30, 41, 59, 0.8) !important;
  color: #dbe7ff !important;
}

body[data-theme='dark'] .topbar-title,
body[data-theme='dark'] .text-ink-900,
body[data-theme='dark'] .font-display {
  color: #f8fbff !important;
}

body[data-theme='dark'] .topbar-btn,
body[data-theme='dark'] .topbar-chip,
body[data-theme='dark'] .topbar-app-badge {
  border-color: rgba(148, 163, 184, 0.22);
  background: rgba(15, 23, 42, 0.78);
  color: #dbe7ff;
}

body[data-theme='dark'] .topbar-btn:hover {
  background: rgba(37, 99, 235, 0.22);
  border-color: rgba(96, 165, 250, 0.5);
  color: #eaf3ff;
}

body[data-theme='dark'] .certificate-hero {
  border-color: rgba(96, 165, 250, 0.34);
  background:
    radial-gradient(circle at 90% 10%, rgba(56, 189, 248, 0.38), transparent 34%),
    radial-gradient(circle at 10% 88%, rgba(37, 99, 235, 0.28), transparent 36%),
    linear-gradient(112deg, #0f172a 0%, #1e3a8a 52%, #0e7490 100%);
  box-shadow:
    inset 0 1px 0 rgba(191, 219, 254, 0.14),
    0 22px 46px -30px rgba(30, 58, 138, 0.72);
}

body[data-theme='dark'] .dashboard-hero-updated {
  border-color: rgba(96, 165, 250, 0.42);
  background: linear-gradient(135deg, rgba(30, 58, 138, 0.36), rgba(14, 116, 144, 0.2));
  color: #dbeafe;
}

body[data-theme='dark'] .rounded-2xl.border.border-slate-200.bg-white,
body[data-theme='dark'] .overflow-hidden.rounded-xl.border.border-slate-200,
body[data-theme='dark'] .border.border-slate-200.bg-slate-50,
body[data-theme='dark'] .bg-white {
  border-color: rgba(148, 163, 184, 0.22) !important;
  background: rgba(15, 23, 42, 0.78) !important;
  color: #dbe7ff;
}

body[data-theme='dark'] #dashboardActivityEmpty {
  color: #9fb0ca;
}

body[data-theme='dark'] #authLoginView .border-blue-100 {
  border-color: rgba(148, 163, 184, 0.24) !important;
}

body[data-theme='dark'] #authLoginView .bg-white\/90 {
  background: rgba(15, 23, 42, 0.8) !important;
}

body[data-theme='dark'] #authLoginView .text-ink-900 {
  color: #f8fbff !important;
}

body[data-theme='dark'] #authLoginView .text-ink-600 {
  color: #9fb0ca !important;
}

body[data-theme='dark'] .dashboard-intro-card {
  border-color: rgba(148, 163, 184, 0.24);
  background: linear-gradient(140deg, rgba(15, 23, 42, 0.84), rgba(30, 41, 59, 0.72));
  box-shadow: 0 16px 30px -24px rgba(2, 6, 23, 0.9);
}

body[data-theme='dark'] .create-mode-switch {
  border-color: rgba(148, 163, 184, 0.22) !important;
  background: rgba(15, 23, 42, 0.74) !important;
}

body[data-theme='dark'] .create-mode-card {
  border-color: rgba(148, 163, 184, 0.24);
  background: rgba(15, 23, 42, 0.76);
  color: #e2e8f0;
  box-shadow: inset 0 1px 0 rgba(191, 219, 254, 0.08);
}

body[data-theme='dark'] .create-mode-card:hover {
  border-color: rgba(96, 165, 250, 0.5);
  background: rgba(30, 41, 59, 0.88);
}

body[data-theme='dark'] .create-mode-card.active {
  background:
    radial-gradient(circle at 88% 16%, rgba(56, 189, 248, 0.22), transparent 36%),
    linear-gradient(145deg, rgba(30, 58, 138, 0.44), rgba(14, 116, 144, 0.2));
  border-color: rgba(96, 165, 250, 0.7);
  color: #f8fbff;
  box-shadow:
    0 12px 20px -18px rgba(30, 58, 138, 0.9),
    inset 0 0 0 1px rgba(125, 211, 252, 0.24);
}

body[data-theme='dark'] .create-mode-card.active::after {
  color: #dbeafe;
  background: rgba(30, 58, 138, 0.42);
  border-color: rgba(96, 165, 250, 0.52);
}

body[data-theme='dark'] .inline-style-toolbar {
  border-color: rgba(148, 163, 184, 0.22) !important;
  background: rgba(15, 23, 42, 0.7) !important;
}

body[data-theme='dark'] .inline-style-input,
body[data-theme='dark'] .inline-secondary-btn,
body[data-theme='dark'] .inline-color-input,
body[data-theme='dark'] .inline-action-btn {
  border-color: rgba(148, 163, 184, 0.3);
  background: rgba(15, 23, 42, 0.84);
  color: #dbe7ff;
}

body[data-theme='dark'] .inline-style-value {
  color: #9fb0ca;
}

body[data-theme='dark'] .template-stage {
  border-color: rgba(148, 163, 184, 0.35);
  background:
    radial-gradient(circle at 14% 14%, rgba(30, 58, 138, 0.4), transparent 40%),
    linear-gradient(145deg, #0b1224 0%, #111d36 100%);
}

body[data-theme='dark'] .template-stage-overlay,
body[data-theme='dark'] .template-stage-placeholder {
  color: #c3d1e8;
}

body[data-theme='dark'] .template-name-tag {
  border-color: rgba(96, 165, 250, 0.55);
  background: rgba(15, 23, 42, 0.78);
  color: #f8fbff;
}

body[data-theme='dark'] .stats-ref-card,
body[data-theme='dark'] .saved-template-card,
body[data-theme='dark'] .certificate-batch-item,
body[data-theme='dark'] .participant-row {
  border-color: rgba(148, 163, 184, 0.24);
  background: rgba(15, 23, 42, 0.76);
  color: #dbe7ff;
}

body[data-theme='dark'] .stats-ref-title,
body[data-theme='dark'] .stats-ref-value,
body[data-theme='dark'] .saved-template-meta,
body[data-theme='dark'] .saved-template-preview-fallback {
  color: #dbe7ff;
}

body[data-theme='dark'] .saved-template-preview {
  border-color: rgba(148, 163, 184, 0.24);
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.86), rgba(30, 41, 59, 0.74));
}

body[data-theme='dark'] .certificate-batch-item:hover,
body[data-theme='dark'] .participant-row:hover {
  border-color: rgba(96, 165, 250, 0.5);
  background: rgba(30, 41, 59, 0.84);
}

body[data-theme='dark'] .certificate-batch-item.active,
body[data-theme='dark'] .participant-row.active {
  border-color: rgba(96, 165, 250, 0.68);
  background: rgba(30, 58, 138, 0.36);
}

body[data-theme='dark'] .template-action-btn,
body[data-theme='dark'] .participant-download-btn,
body[data-theme='dark'] .participant-action-btn {
  border-color: rgba(148, 163, 184, 0.3);
  background: rgba(15, 23, 42, 0.72);
  color: #dbe7ff;
}

body[data-theme='dark'] .template-action-btn:hover,
body[data-theme='dark'] .participant-download-btn:hover,
body[data-theme='dark'] .participant-action-btn:hover {
  border-color: rgba(96, 165, 250, 0.5);
  color: #f8fbff;
}

body[data-theme='dark'] .aid-layout {
  border-color: rgba(148, 163, 184, 0.24);
  background:
    radial-gradient(circle at 90% 12%, rgba(56, 189, 248, 0.16), transparent 32%),
    radial-gradient(circle at 8% 84%, rgba(37, 99, 235, 0.14), transparent 34%),
    linear-gradient(145deg, rgba(15, 23, 42, 0.94), rgba(30, 41, 59, 0.9));
}

body[data-theme='dark'] .aid-kicker {
  color: #60a5fa;
}

body[data-theme='dark'] .aid-title,
body[data-theme='dark'] .aid-story-copy h3,
body[data-theme='dark'] .aid-mini-title,
body[data-theme='dark'] .aid-stat-value {
  color: #f8fbff;
}

body[data-theme='dark'] .aid-subtitle,
body[data-theme='dark'] .aid-story-copy p,
body[data-theme='dark'] .aid-mini-card,
body[data-theme='dark'] .aid-stats-row article,
body[data-theme='dark'] .aid-form-head p,
body[data-theme='dark'] .aid-form-footer p,
body[data-theme='dark'] .aid-slider-wrap {
  color: #b8c7df;
}

body[data-theme='dark'] .aid-hero-image,
body[data-theme='dark'] .aid-story-image-wrap {
  border-color: rgba(148, 163, 184, 0.24);
}

body[data-theme='dark'] .aid-pill {
  border-color: rgba(148, 163, 184, 0.26);
  background: rgba(15, 23, 42, 0.72);
  color: #dbe7ff;
}

body[data-theme='dark'] .aid-pill.active {
  border-color: rgba(96, 165, 250, 0.65);
  background: rgba(30, 58, 138, 0.36);
  color: #dbeafe;
}

body[data-theme='dark'] .aid-amount-panel,
body[data-theme='dark'] .aid-mini-card,
body[data-theme='dark'] .aid-stats-row article,
body[data-theme='dark'] .aid-form {
  border-color: rgba(148, 163, 184, 0.24);
  background: rgba(15, 23, 42, 0.72);
}

body[data-theme='dark'] .aid-amount {
  color: #f8fbff;
}

body[data-theme='dark'] .aid-slider-wrap input {
  accent-color: #3b82f6;
}

body[data-theme='dark'] .aid-btn.primary {
  border-color: #2563eb;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
}

body[data-theme='dark'] .aid-btn.ghost {
  border-color: rgba(148, 163, 184, 0.3);
  background: rgba(15, 23, 42, 0.72);
  color: #dbe7ff;
}

body[data-theme='dark'] .aid-form-grid label {
  color: #dbe7ff;
}

body[data-theme='dark'] .aid-form-grid input,
body[data-theme='dark'] .aid-form-grid select {
  border-color: rgba(148, 163, 184, 0.3);
  background: rgba(15, 23, 42, 0.84);
  color: #f8fbff;
}

body[data-theme='dark'] .aid-form-grid input:focus,
body[data-theme='dark'] .aid-form-grid select:focus {
  border-color: rgba(96, 165, 250, 0.75);
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.24);
}

body[data-theme='dark'] .aid-form-footer svg {
  color: #60a5fa;
}

body[data-theme='dark'] #modalBackdrop {
  background: rgba(2, 6, 23, 0.7) !important;
}

body[data-theme='dark'] #previewModal > div,
body[data-theme='dark'] #templateDeleteModal > div,
body[data-theme='dark'] #certificateParticipantPreviewModal > div,
body[data-theme='dark'] #demoDownloadModal > div,
body[data-theme='dark'] #demoPreviewModal > div,
body[data-theme='dark'] #templateProcessingScreen > div {
  border-color: rgba(148, 163, 184, 0.26) !important;
  background: linear-gradient(165deg, rgba(15, 23, 42, 0.94), rgba(30, 41, 59, 0.9)) !important;
  box-shadow: 0 30px 70px -38px rgba(2, 6, 23, 0.96);
}

body[data-theme='dark'] #previewModal h3,
body[data-theme='dark'] #templateDeleteModal h3,
body[data-theme='dark'] #certificateParticipantPreviewModal h3,
body[data-theme='dark'] #demoDownloadModal h3,
body[data-theme='dark'] #demoPreviewModal h3 {
  color: #f8fbff !important;
}

body[data-theme='dark'] #previewModal p,
body[data-theme='dark'] #templateDeleteModal p,
body[data-theme='dark'] #certificateParticipantPreviewModal p,
body[data-theme='dark'] #demoDownloadModal p,
body[data-theme='dark'] #demoPreviewModal p,
body[data-theme='dark'] #templateProcessingScreen p {
  color: #b8c7df !important;
}

body[data-theme='dark'] #previewModal button,
body[data-theme='dark'] #templateDeleteModal button,
body[data-theme='dark'] #certificateParticipantPreviewModal button,
body[data-theme='dark'] #demoDownloadModal button,
body[data-theme='dark'] #demoPreviewModal button {
  border-color: rgba(148, 163, 184, 0.28) !important;
}

body[data-theme='dark'] #previewModal button:not(.bg-red-600):not(.bg-blue-600):not(.bg-blue-700),
body[data-theme='dark'] #templateDeleteModal button:not(.bg-red-600):not(.bg-blue-600):not(.bg-blue-700),
body[data-theme='dark'] #certificateParticipantPreviewModal button:not(.bg-red-600):not(.bg-blue-600):not(.bg-blue-700),
body[data-theme='dark'] #demoDownloadModal button:not(.bg-red-600):not(.bg-blue-600):not(.bg-blue-700),
body[data-theme='dark'] #demoPreviewModal button:not(.bg-red-600):not(.bg-blue-600):not(.bg-blue-700) {
  background: rgba(15, 23, 42, 0.78) !important;
  color: #dbe7ff !important;
}

body[data-theme='dark'] #demoDownloadCountdown {
  color: #7dd3fc !important;
}

body[data-theme='dark'] #demoPreviewModalImage {
  border-color: rgba(148, 163, 184, 0.24) !important;
}

body[data-theme='dark'] #demoDownloadModal .bg-slate-50,
body[data-theme='dark'] #demoDownloadModal .bg-white,
body[data-theme='dark'] #templateProcessingScreen .bg-white,
body[data-theme='dark'] #demoPreviewModal .bg-white,
body[data-theme='dark'] #templateDeleteModal .bg-white,
body[data-theme='dark'] #previewModal .bg-white,
body[data-theme='dark'] #certificateParticipantPreviewModal .bg-white {
  border-color: rgba(148, 163, 184, 0.24) !important;
  background: rgba(15, 23, 42, 0.74) !important;
}

body[data-theme='dark'] #demoDownloadModal .border-slate-200,
body[data-theme='dark'] #demoDownloadModal .border-slate-300,
body[data-theme='dark'] #templateProcessingScreen .border-slate-200,
body[data-theme='dark'] #demoPreviewModal .border-slate-200,
body[data-theme='dark'] #templateDeleteModal .border-slate-200,
body[data-theme='dark'] #previewModal .border-slate-200,
body[data-theme='dark'] #certificateParticipantPreviewModal .border-slate-200 {
  border-color: rgba(148, 163, 184, 0.3) !important;
}

body[data-theme='dark'] #demoDownloadModal .text-ink-500,
body[data-theme='dark'] #demoDownloadModal .text-ink-600,
body[data-theme='dark'] #templateProcessingScreen .text-ink-500,
body[data-theme='dark'] #templateProcessingScreen .text-ink-600,
body[data-theme='dark'] #templateProcessingScreen .text-ink-700 {
  color: #b8c7df !important;
}

body[data-theme='dark'] #templateProcessingScreen {
  background: rgba(2, 6, 23, 0.78) !important;
}

body[data-theme='dark'] #templateProcessingScreen .bg-slate-200 {
  background: rgba(51, 65, 85, 0.85) !important;
}

body[data-theme='dark'] .toast.loading {
  border-color: rgba(96, 165, 250, 0.48);
  background: rgba(30, 58, 138, 0.32);
  color: #dbeafe;
}

body[data-theme='dark'] .toast.border-emerald-200.bg-emerald-50.text-emerald-900,
body[data-theme='dark'] .toast.border-red-200.bg-red-50.text-red-900,
body[data-theme='dark'] .toast.border-slate-200.bg-white.text-ink-900 {
  border-color: rgba(148, 163, 184, 0.3) !important;
  background: rgba(15, 23, 42, 0.86) !important;
  color: #dbe7ff !important;
}

.cert-a4 {
  width: 100%;
  max-width: 1123px;
  aspect-ratio: 297 / 210;
  height: auto;
}

.cert-modern-canvas {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.94)),
    radial-gradient(circle at 20% 25%, rgba(239, 68, 68, 0.07), transparent 45%),
    radial-gradient(circle at 80% 20%, rgba(239, 68, 68, 0.07), transparent 40%),
    #f8fafc;
  background-repeat: no-repeat, no-repeat, no-repeat;
  background-size: 100% 100%, 100% 100%, 100% 100%;
  background-position: center;
}

.cert-modern-top-ribbon {
  position: absolute;
  inset: -120px -90px auto -90px;
  height: 210px;
  background:
    radial-gradient(120% 100% at 50% 100%, transparent 49%, rgba(148, 163, 184, 0.22) 50%, transparent 60%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.55), rgba(226, 232, 240, 0.24));
  background-repeat: no-repeat;
  background-size: 100% 100%;
}

.cert-modern-stars {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 8% 18%, rgba(239, 68, 68, 0.15) 0, rgba(239, 68, 68, 0.15) 2px, transparent 3px),
    radial-gradient(circle at 90% 20%, rgba(239, 68, 68, 0.14) 0, rgba(239, 68, 68, 0.14) 2px, transparent 3px),
    radial-gradient(circle at 6% 70%, rgba(239, 68, 68, 0.12) 0, rgba(239, 68, 68, 0.12) 2px, transparent 3px),
    radial-gradient(circle at 88% 60%, rgba(239, 68, 68, 0.1) 0, rgba(239, 68, 68, 0.1) 2px, transparent 3px);
  opacity: 0.75;
  background-repeat: no-repeat;
  background-size: 100% 100%;
}

.cert-modern-bottom-ribbon {
  position: absolute;
  left: -5%;
  right: -5%;
  bottom: -48px;
  height: 190px;
  background:
    radial-gradient(90% 100% at 50% 0, #ffffff 56%, transparent 57%),
    linear-gradient(180deg, #dc2626 0%, #b91c1c 100%);
  background-repeat: no-repeat;
  background-size: 100% 100%;
}

.cert-modern-header,
.cert-modern-content,
.cert-modern-sign-wrap {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #111827;
}

.cert-modern-logo {
  position: relative;
  z-index: 1;
  max-height: 78px;
  width: auto;
  margin: 0 auto 0.5rem;
  object-fit: contain;
  cursor: grab;
  touch-action: none;
}

.cert-modern-logo.dragging {
  cursor: grabbing;
}

.cert-center-guide {
  position: absolute;
  pointer-events: none;
  z-index: 25;
  opacity: 0;
  transition: opacity 120ms ease;
  background: rgba(37, 99, 235, 0.42);
}

.cert-center-guide.show {
  opacity: 1;
}

.cert-center-guide-x {
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  transform: translateX(-0.5px);
}

.cert-center-guide-y {
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  transform: translateY(-0.5px);
}

.cert-modern-title {
  margin-top: 0.2rem;
  font-family: 'Montserrat', ui-sans-serif, system-ui, sans-serif;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.cert-modern-label {
  margin-top: 0.62rem;
  font-size: 1.45rem;
}

.cert-modern-name {
  margin-top: 0.48rem;
  font-family: 'Montserrat', ui-sans-serif, system-ui, sans-serif;
  font-size: 70px;
  font-weight: 800;
  line-height: 1;
}

#createPanelBuatBaru:not(.hidden) #previewNama {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  max-width: 90%;
  padding: 0.35rem 0.7rem;
  border-radius: 0.55rem;
  border: 1px solid rgba(37, 99, 235, 0.35);
  background: rgba(255, 255, 255, 0.86);
  line-height: 1.15;
}

.cert-modern-content {
  margin: 0 auto;
  max-width: 74%;
}

.cert-modern-sub {
  font-size: 0.95rem;
  color: #334155;
  margin-bottom: 0.55rem;
}

.cert-modern-copy {
  font-size: 1.2rem;
  line-height: 1.42;
}

.cert-modern-date {
  margin-top: 0.9rem;
  font-size: 1rem;
}

.cert-modern-sign-wrap {
  margin-top: 0;
  padding-bottom: 0.8rem;
}

.cert-modern-sign-mark {
  font-family: 'Great Vibes', cursive;
  font-size: 3.4rem;
  line-height: 1;
}

.cert-modern-sign-image {
  display: block;
  margin: 0 auto;
  max-height: 86px;
  max-width: 280px;
  object-fit: contain;
  cursor: grab;
  touch-action: none;
}

.cert-modern-sign-image.dragging {
  cursor: grabbing;
}

.cert-modern-sign-role {
  margin-top: 0.2rem;
  font-size: 1.6rem;
}

.cert-modern-sign-name {
  margin-top: 0.1rem;
  font-size: 1.08rem;
}

.cert-ref-shell {
  position: relative;
  background:
    radial-gradient(circle at 20% 22%, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.88)),
    repeating-radial-gradient(circle at 20px 20px, rgba(148, 163, 184, 0.08) 0, rgba(148, 163, 184, 0.08) 2px, transparent 2px, transparent 24px);
}

.cert-ref-corner {
  position: absolute;
  width: 150px;
  height: 150px;
  border: 2px solid #10204f;
  background: linear-gradient(135deg, #10204f, #0a1640);
  z-index: 1;
  box-shadow: 0 16px 30px -22px rgba(15, 23, 42, 0.72);
}

.cert-ref-corner-tl {
  top: -46px;
  left: -56px;
  transform: rotate(45deg);
}

.cert-ref-corner-br {
  right: -56px;
  bottom: -46px;
  transform: rotate(45deg);
}

.cert-ref-header,
.cert-ref-content,
.cert-ref-sign-wrap {
  position: relative;
  z-index: 2;
  color: #8b6a2a;
}

.cert-ref-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-weight: 700;
}

.cert-ref-logo-wrap {
  width: 150px;
  min-height: 46px;
  display: flex;
  align-items: center;
}

.cert-ref-logo {
  max-height: 42px;
  width: auto;
  object-fit: contain;
}

.cert-ref-org-alt {
  border-left: 1px solid rgba(139, 106, 42, 0.35);
  padding-left: 0.75rem;
}

.cert-ref-content {
  margin-top: 2.5rem;
  max-width: 70%;
}

.cert-ref-title {
  font-size: 2.1rem;
  letter-spacing: 0.03em;
  font-weight: 400;
  color: #8b6a2a;
}

.cert-ref-title strong {
  font-weight: 800;
}

.cert-ref-label {
  margin-top: 1.1rem;
  font-size: 0.86rem;
  letter-spacing: 0.06em;
}

.cert-ref-name {
  margin-top: 0.95rem;
  font-family: 'Great Vibes', cursive;
  font-size: 2.95rem;
  color: #8b6a2a;
  line-height: 1;
}

.cert-ref-line {
  margin-top: 0.52rem;
  width: 100%;
  height: 1.5px;
  background: rgba(139, 106, 42, 0.52);
}

.cert-ref-copy {
  margin-top: 1rem;
  font-size: 0.84rem;
  line-height: 1.38;
}

.cert-ref-meta {
  margin-top: 0.58rem;
  font-size: 0.78rem;
}

.cert-ref-sign-wrap {
  margin-top: 1.2rem;
  max-width: 32%;
}

.cert-ref-sign-mark {
  font-family: 'Great Vibes', cursive;
  font-size: 2.45rem;
  line-height: 1;
}

.cert-ref-sign-line {
  margin-top: 0.38rem;
  height: 1.5px;
  width: 100%;
  background: rgba(139, 106, 42, 0.52);
}

.cert-ref-sign-role {
  margin-top: 0.32rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.58rem;
}

.cert-ref-sign-name {
  margin-top: 0.12rem;
  font-weight: 700;
  font-size: 0.95rem;
  color: #7a5b22;
}

#certificateCanvas .cert-style-text {
  cursor: grab;
  user-select: none;
  touch-action: none;
}

#certificateCanvas .cert-style-text.selected {
  outline: 1.5px dashed rgba(37, 99, 235, 0.55);
  outline-offset: 4px;
  border-radius: 4px;
}

#certificateCanvas .cert-style-text.dragging {
  cursor: grabbing;
  position: relative;
  z-index: 6;
}

#certificateCanvas .cert-style-text.editing,
#certificateCanvas .cert-style-text[data-editing='true'] {
  cursor: text;
  user-select: text;
  outline: 2px solid rgba(15, 23, 42, 0.18);
  outline-offset: 4px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.55);
}

.inline-style-toolbar {
  border-color: #dbe3ee;
}

.inline-style-grid {
  display: grid;
  grid-template-columns: 1.2fr 1.4fr auto auto auto auto;
  gap: 0.45rem;
  align-items: center;
}

.inline-style-input,
.inline-secondary-btn,
.inline-color-input {
  height: 2rem;
  border-radius: 999px;
  border: 1px solid #cfd9e6;
  background: #ffffff;
  font-size: 0.74rem;
  font-weight: 700;
  color: #334155;
}

.inline-style-input {
  padding: 0 0.65rem;
}

.inline-style-value {
  min-width: 42px;
  text-align: right;
  font-size: 0.72rem;
  font-weight: 700;
  color: #475569;
}

.inline-actions {
  display: inline-grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.3rem;
}

.inline-action-btn {
  height: 2rem;
  min-width: 2rem;
  border: 1px solid #cfd9e6;
  border-radius: 999px;
  background: #ffffff;
  color: #475569;
  font-size: 0.75rem;
  font-weight: 800;
}

.inline-action-btn.active {
  background: #1d4ed8;
  border-color: #1d4ed8;
  color: #ffffff;
}

.inline-color-input {
  width: 2.1rem;
  padding: 0.12rem;
}

.inline-color-input::-webkit-color-swatch {
  border: none;
  border-radius: 999px;
}

.inline-color-input::-webkit-color-swatch-wrapper {
  padding: 0;
}

.inline-secondary-btn {
  padding: 0 0.75rem;
}

.inline-secondary-btn.active {
  background: #1d4ed8;
  border-color: #1d4ed8;
  color: #ffffff;
}

.create-mode-nav {
  display: inline-flex;
  gap: 0.45rem;
  border-radius: 999px;
  background: #f1f5f9;
  padding: 0.3rem;
}

.create-mode-btn {
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  font-size: 0.77rem;
  font-weight: 700;
  color: #475569;
  transition: all 180ms ease;
}

.create-mode-btn:hover {
  color: #0f172a;
}

.create-mode-btn.active {
  background: #1d4ed8;
  border-color: #1d4ed8;
  color: #ffffff;
}

.create-mode-card {
  position: relative;
  text-align: left;
  border-radius: 0.9rem;
  border: 1px solid #dbe3ee;
  background: #f8fafc;
  padding: 0.85rem;
  color: #0f172a;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    background 220ms ease;
}

.create-mode-card:hover {
  transform: translateY(-1px);
  border-color: #c7d5ea;
}

.create-mode-card.active {
  background:
    radial-gradient(circle at 88% 16%, rgba(37, 99, 235, 0.14), transparent 34%),
    #eff6ff;
  border-color: #60a5fa;
  color: #0f172a;
  box-shadow:
    0 12px 20px -18px rgba(37, 99, 235, 0.7),
    inset 0 0 0 1px rgba(147, 197, 253, 0.35);
  animation: create-mode-card-in 200ms ease-out;
}

.create-mode-card.active::after {
  content: 'Aktif';
  position: absolute;
  top: 0.55rem;
  right: 0.55rem;
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #1d4ed8;
  background: #dbeafe;
  border: 1px solid #93c5fd;
  border-radius: 999px;
  padding: 0.08rem 0.4rem;
}

[data-create-panel].mode-animate-in {
  animation: create-panel-in 220ms ease-out;
}

@keyframes create-panel-in {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes create-mode-card-in {
  from {
    transform: translateY(1px) scale(0.995);
  }
  to {
    transform: translateY(0) scale(1);
  }
}

.template-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 297 / 210;
  min-height: 0;
  border: 1px dashed #cbd5e1;
  border-radius: 0.9rem;
  overflow: hidden;
  background:
    radial-gradient(circle at 15% 15%, rgba(59, 130, 246, 0.16), transparent 35%),
    linear-gradient(145deg, #f8fafc 0%, #eef2ff 100%);
}

.template-stage-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  text-align: center;
  color: #334155;
  pointer-events: none;
}

.template-stage-label {
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  font-weight: 800;
}

.template-stage-file {
  margin-top: 0.45rem;
  font-size: 0.84rem;
  font-weight: 600;
}

.template-stage-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #0f172a;
}

.template-stage-media-fill {
  object-fit: fill;
}

.template-stage-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  color: #475569;
  font-size: 0.9rem;
  font-weight: 600;
}

.template-name-tag {
  position: absolute;
  left: 12px;
  top: 12px;
  transform: translate(0, 0);
  margin: 0;
  padding: 0.35rem 0.7rem;
  border-radius: 0.55rem;
  border: 1px solid rgba(37, 99, 235, 0.35);
  background: rgba(255, 255, 255, 0.86);
  color: #0f172a;
  font-family: 'Montserrat', ui-sans-serif, system-ui, sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  cursor: grab;
  user-select: none;
  touch-action: none;
  z-index: 3;
}

.template-name-tag.dragging {
  cursor: grabbing;
}

.template-center-guide {
  position: absolute;
  pointer-events: none;
  z-index: 2;
  opacity: 0;
  transition: opacity 120ms ease, background-color 120ms ease;
  background: rgba(51, 65, 85, 0.2);
}

.template-center-guide.show {
  opacity: 1;
}

.template-center-guide.is-snapped {
  background: rgba(37, 99, 235, 0.55);
}

.template-center-guide-x {
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  transform: translateX(-0.5px);
}

.template-center-guide-y {
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  transform: translateY(-0.5px);
}

.template-name-tag.final-output {
  padding: 0;
  border: none;
  background: transparent;
  border-radius: 0;
}

.saved-template-card {
  border: 1px solid #e2e8f0;
  border-radius: 0.9rem;
  padding: 0.9rem;
  background: #ffffff;
  box-shadow: 0 8px 20px -18px rgba(15, 23, 42, 0.45);
}

.saved-template-preview {
  margin-top: 0.55rem;
  border: 1px solid #dbe3ee;
  border-radius: 0.65rem;
  height: 84px;
  overflow: hidden;
  display: grid;
  place-content: center;
  background: linear-gradient(135deg, #f8fafc 0%, #eef2ff 100%);
}

.template-save-btn {
  background: #16a34a;
  border: 1px solid #16a34a;
  color: #ffffff !important;
}

.template-save-btn:hover {
  background: #15803d;
  border-color: #15803d;
}

.saved-template-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.saved-template-preview-fallback {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #334155;
}

.saved-template-type {
  display: inline-flex;
  border-radius: 999px;
  padding: 0.2rem 0.55rem;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.saved-template-type.ppt {
  background: #ffedd5;
  color: #9a3412;
}

.saved-template-type.gambar {
  background: #dcfce7;
  color: #166534;
}

.saved-template-type.baru {
  background: #dbeafe;
  color: #1d4ed8;
}

.template-action-row {
  margin-top: 0.65rem;
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.saved-template-meta {
  margin-top: 0.45rem;
  font-size: 0.72rem;
  color: #475569;
}

.template-action-btn {
  border: 1px solid #cbd5e1;
  border-radius: 0.65rem;
  padding: 0.35rem 0.7rem;
  font-size: 0.68rem;
  font-weight: 700;
  color: #334155;
  transition: all 140ms ease;
}

.template-action-btn:hover {
  border-color: #94a3b8;
  color: #0f172a;
}

.template-action-btn.delete {
  border-color: #fecaca;
  color: #b91c1c;
}

.template-stage-sm {
  min-height: 0;
}

.certificate-batch-item {
  width: 100%;
  border: 1px solid #e2e8f0;
  border-radius: 0.8rem;
  background: #ffffff;
  padding: 0.75rem;
  text-align: left;
  transition: border-color 140ms ease, background-color 140ms ease;
}

.certificate-batch-item:hover {
  border-color: #93c5fd;
  background: #f8fbff;
}

.certificate-batch-item.active {
  border-color: #2563eb;
  background: #eff6ff;
}

.participant-row {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  border: 0;
  border-bottom: 1px solid #e2e8f0;
  padding: 0.7rem 0.85rem;
  background: #ffffff;
  cursor: pointer;
}

.participant-row:last-child {
  border-bottom: 0;
}

.participant-row:hover {
  background: #f8fbff;
}

.participant-row.active {
  background: #eff6ff;
}

.participant-download-btn {
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  padding: 0.2rem 0.7rem;
  font-size: 0.7rem;
  font-weight: 700;
  color: #334155;
}

.participant-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.participant-action-btn {
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  padding: 0.2rem 0.7rem;
  font-size: 0.7rem;
  font-weight: 700;
  color: #334155;
}

.participant-action-btn.delete {
  border-color: #fecaca;
  color: #b91c1c;
}

.certificate-create-btn {
  background: #1d4ed8 !important;
  border: 1px solid #1d4ed8 !important;
  color: #ffffff !important;
}

.certificate-create-btn:hover {
  background: #1e40af !important;
  border-color: #1e40af !important;
}

.certificate-hero {
  border: 1px solid rgba(191, 219, 254, 0.26);
  background:
    radial-gradient(circle at 92% 8%, rgba(125, 211, 252, 0.45), transparent 36%),
    radial-gradient(circle at 6% 86%, rgba(59, 130, 246, 0.32), transparent 38%),
    linear-gradient(108deg, #1d4ed8 0%, #2563eb 58%, #0891b2 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 24px 50px -30px rgba(30, 64, 175, 0.62);
}

.certificate-hero-grid {
  display: grid;
  gap: 1rem;
}

.certificate-hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.certificate-hero-cards {
  display: grid;
  gap: 0.7rem;
}

.dashboard-hero {
  padding-top: 1.15rem;
  padding-bottom: 1.15rem;
}

.dashboard-hero-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem;
  flex-wrap: wrap;
}

.dashboard-hero-title {
  color: #ffffff;
}

.dashboard-hero-desc {
  color: #dbeafe;
}

.dashboard-hero-updated {
  border: 1px solid rgba(191, 219, 254, 0.45);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.08));
  border-radius: 999px;
  color: #eff6ff;
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  padding: 0.36rem 0.72rem;
}

.template-hero-title {
  color: #ffffff;
}

.template-hero-desc {
  color: #dbeafe;
}

.template-hero-filters {
  border-top: 1px solid rgba(191, 219, 254, 0.28);
  padding-top: 0.75rem;
}

.template-hero-filters [data-template-filter].text-ink-600 {
  color: #dbeafe !important;
}

.template-hero-filters [data-template-filter].border-slate-200 {
  border-color: rgba(191, 219, 254, 0.4) !important;
}

.template-hero-filters [data-template-filter]:hover {
  background: rgba(255, 255, 255, 0.1);
}

.support-shell {
  border: 1px solid #d9dce5;
  background: #dfe2e9;
}

.support-wrap {
  font-size: 0.74rem;
  color: #334155;
}

.support-brand-card,
.support-panel {
  border: 1px solid #d8dce5;
  border-radius: 0.55rem;
  background: #f3f4f6;
}

.support-brand-card {
  overflow: hidden;
}

.support-brand-head {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 0.65rem;
  background: #f5f6fa;
}

.support-brand-mark {
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: #ffffff;
  background: linear-gradient(135deg, #d97706, #ea580c);
}

.support-brand-name {
  margin: 0;
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0.02em;
  font-size: 1.05rem;
  color: #c76a05;
}

.support-brand-tagline {
  margin: 0.1rem 0 0;
  font-size: 0.61rem;
  color: #4b5563;
}

.support-hero-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

.support-hero-copy {
  margin: 0;
  padding: 0.55rem 0.7rem;
  text-align: center;
  color: #374151;
  line-height: 1.35;
}

.support-panel {
  padding: 0.55rem 0.65rem;
}

.support-panel-title {
  margin: -0.55rem -0.65rem 0.5rem;
  padding: 0.38rem 0.65rem;
  text-align: center;
  font-weight: 700;
  color: #4b5563;
  background: #e5e7eb;
  border-bottom: 1px solid #d1d5db;
}

.support-label {
  display: block;
  margin-bottom: 0.22rem;
  font-size: 0.65rem;
  font-weight: 700;
  color: #4b5563;
}

.support-amount-row {
  display: grid;
  grid-template-columns: 4.8rem 1fr;
  gap: 0.4rem;
}

.support-select,
.support-amount,
.support-field input {
  width: 100%;
  border: 1px solid #cfd4dc;
  border-radius: 0.32rem;
  background: #ffffff;
  color: #334155;
  font-size: 0.7rem;
  height: 1.6rem;
  padding: 0 0.45rem;
  outline: none;
}

.support-select:focus,
.support-amount:focus,
.support-field input:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.1);
}

.support-info-box {
  margin-top: 0.42rem;
  border: 1px solid #c8d8e5;
  border-radius: 0.35rem;
  background: #edf5fb;
  padding: 0.45rem 0.52rem;
  color: #56616d;
  line-height: 1.35;
}

.support-info-box p {
  margin: 0;
}

.support-info-title {
  margin-bottom: 0.22rem !important;
  font-weight: 700;
  color: #2b5a75;
}

.support-secure {
  margin: 0.48rem 0 0;
  display: inline-flex;
  align-items: center;
  gap: 0.22rem;
  color: #16a34a;
  font-size: 0.67rem;
  font-weight: 700;
}

.support-secure svg,
.support-privacy-note svg {
  width: 0.72rem;
  height: 0.72rem;
}

.support-panel-login {
  text-align: center;
  font-size: 0.66rem;
  color: #6b7280;
}

.support-note {
  margin: 0;
  color: #6b7280;
  font-size: 0.62rem;
}

.support-section-heading {
  margin: 0.48rem 0;
  font-size: 0.76rem;
  font-weight: 700;
  color: #374151;
}

.support-field {
  margin-bottom: 0.52rem;
}

.support-field:last-child {
  margin-bottom: 0;
}

.support-field label {
  display: block;
  margin-bottom: 0.15rem;
  font-size: 0.65rem;
  font-weight: 700;
  color: #4b5563;
}

.support-field-hint {
  margin: 0 0 0.18rem;
  font-size: 0.58rem;
  color: #6b7280;
}

.support-radio-row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.1rem;
  border-top: 1px solid #d1d5db;
}

.support-radio-row:first-of-type {
  border-top: 0;
}

.support-bank-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: #0f766e;
}

.support-submit-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.55rem;
}

.support-total {
  font-size: 0.66rem;
  font-weight: 700;
  color: #4b5563;
}

.support-submit-btn {
  border: 1px solid #16a34a;
  border-radius: 0.36rem;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #ffffff;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  height: 1.65rem;
  padding: 0 0.7rem;
}

.support-privacy-note {
  margin: 0.18rem 0 0;
  text-align: center;
  font-size: 0.63rem;
  color: #5f6b77;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.24rem;
}

.aid-layout {
  border: 1px solid #e5e7eb;
  background:
    radial-gradient(circle at 90% 12%, rgba(251, 191, 36, 0.12), transparent 30%),
    radial-gradient(circle at 8% 84%, rgba(249, 115, 22, 0.1), transparent 32%),
    #f5f6f8;
}

.aid-hero {
  text-align: center;
}

.aid-kicker {
  margin: 0;
  color: #f59e0b;
  font-size: 0.67rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.aid-title {
  margin: 0.45rem 0 0;
  font-size: clamp(1.9rem, 4.3vw, 3.15rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: 0.02em;
  color: #0f172a;
  text-transform: uppercase;
}

.aid-subtitle {
  max-width: 48rem;
  margin: 0.7rem auto 0;
  color: #4b5563;
  font-size: 0.83rem;
  line-height: 1.55;
}

.aid-hero-image {
  margin-top: 1rem;
  width: 100%;
  border-radius: 1rem;
  border: 1px solid #d1d5db;
  object-fit: cover;
  max-height: 380px;
  filter: grayscale(1);
}

.aid-pill-row {
  margin-top: 1rem;
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
  justify-content: center;
}

.aid-pill {
  border: 1px solid #d1d5db;
  border-radius: 999px;
  background: #ffffff;
  padding: 0.38rem 0.9rem;
  font-size: 0.68rem;
  font-weight: 700;
  color: #374151;
}

.aid-pill.active {
  border-color: #f59e0b;
  background: #f59e0b;
  color: #ffffff;
}

.aid-amount-panel {
  margin-top: 1.2rem;
  border-radius: 1rem;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  padding: 1rem;
  text-align: center;
}

.aid-amount {
  margin: 0.35rem 0 0;
  font-size: clamp(2.2rem, 6vw, 4.2rem);
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #111827;
  line-height: 1;
}

.aid-slider-wrap {
  margin-top: 0.65rem;
  display: grid;
  grid-template-columns: 2.5rem 1fr 2.5rem;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.66rem;
  font-weight: 700;
  color: #6b7280;
}

.aid-slider-wrap input {
  accent-color: #f59e0b;
}

.aid-card-grid {
  margin-top: 1rem;
  display: grid;
  gap: 0.7rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.aid-mini-card {
  border: 1px solid #e5e7eb;
  border-radius: 0.9rem;
  background: #ffffff;
  padding: 0.85rem;
  color: #4b5563;
  font-size: 0.7rem;
  line-height: 1.4;
}

.aid-mini-card svg {
  width: 0.95rem;
  height: 0.95rem;
  color: #f59e0b;
}

.aid-mini-title {
  margin: 0.35rem 0 0.2rem;
  font-size: 0.72rem;
  font-weight: 800;
  color: #111827;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.aid-story-grid {
  margin-top: 1rem;
  display: grid;
  gap: 0.9rem;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
}

.aid-story-copy h3 {
  margin: 0.42rem 0 0;
  font-size: clamp(1.25rem, 2.5vw, 1.95rem);
  line-height: 1.1;
  text-transform: uppercase;
  color: #111827;
}

.aid-story-copy p {
  margin: 0.58rem 0 0;
  color: #4b5563;
  font-size: 0.76rem;
  line-height: 1.6;
}

.aid-story-actions {
  margin-top: 0.8rem;
  display: flex;
  gap: 0.52rem;
  flex-wrap: wrap;
}

.aid-btn {
  border-radius: 999px;
  font-size: 0.67rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 0.42rem 0.92rem;
}

.aid-btn.primary {
  border: 1px solid #f59e0b;
  background: #f59e0b;
  color: #ffffff;
}

.aid-btn.ghost {
  border: 1px solid #d1d5db;
  background: #ffffff;
  color: #374151;
}

.aid-story-image-wrap {
  border-radius: 50%;
  width: min(100%, 320px);
  aspect-ratio: 1 / 1;
  justify-self: center;
  overflow: hidden;
  border: 1px solid #d1d5db;
}

.aid-story-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1);
}

.aid-stats-row {
  margin-top: 1rem;
  display: grid;
  gap: 0.62rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.aid-stats-row article {
  border: 1px solid #e5e7eb;
  background: #ffffff;
  border-radius: 999px;
  text-align: center;
  padding: 0.78rem 0.55rem;
  color: #6b7280;
  font-size: 0.64rem;
  font-weight: 600;
}

.aid-stat-value {
  margin: 0;
  font-size: 1.16rem;
  font-weight: 800;
  color: #111827;
}

.aid-form {
  margin-top: 1rem;
  border: 1px solid #e5e7eb;
  border-radius: 1rem;
  background: #ffffff;
  padding: 1rem;
}

.aid-form-head p {
  margin: 0.32rem 0 0;
  color: #6b7280;
  font-size: 0.74rem;
}

.aid-form-grid {
  margin-top: 0.7rem;
  display: grid;
  gap: 0.65rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.aid-form-grid label {
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
  color: #374151;
  font-size: 0.68rem;
  font-weight: 700;
}

.aid-form-grid input,
.aid-form-grid select {
  height: 2rem;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  background: #ffffff;
  padding: 0 0.6rem;
  color: #111827;
  font-size: 0.74rem;
  outline: none;
}

.aid-form-grid input:focus,
.aid-form-grid select:focus {
  border-color: #f59e0b;
  box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.15);
}

.aid-form-footer {
  margin-top: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.55rem;
}

.aid-form-footer p {
  margin: 0;
  display: inline-flex;
  gap: 0.28rem;
  align-items: center;
  font-size: 0.66rem;
  color: #4b5563;
}

.aid-form-footer svg {
  width: 0.8rem;
  height: 0.8rem;
  color: #f59e0b;
}

.aid-btn.submit {
  border: 1px solid #16a34a;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #ffffff;
}

@media (max-width: 980px) {
  .aid-card-grid,
  .aid-stats-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .aid-story-grid,
  .aid-form-grid {
    grid-template-columns: 1fr;
  }

  .aid-story-image-wrap {
    width: min(100%, 260px);
  }
}

@media (max-width: 640px) {
  .aid-card-grid,
  .aid-stats-row {
    grid-template-columns: 1fr;
  }

  .aid-form-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .aid-btn.submit {
    width: 100%;
  }
}

.certificate-hero-card {
  border: 1px solid rgba(191, 219, 254, 0.36);
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.08));
  border-radius: 0.9rem;
  padding: 0.8rem 0.9rem;
  color: #eff6ff;
  backdrop-filter: blur(4px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

.certificate-hero-step {
  margin: 0;
  font-size: 0.64rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #bfdbfe;
  font-weight: 800;
}

.certificate-hero-title {
  margin: 0.2rem 0 0;
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
}

.certificate-hero-desc {
  margin: 0.2rem 0 0;
  font-size: 0.78rem;
  color: #dbeafe;
  line-height: 1.35;
}

.template-processing-progress {
  background: linear-gradient(90deg, #1d4ed8 0%, #2563eb 52%, #38bdf8 100%);
  transition: width 180ms ease;
}

@media (max-width: 1200px) {
  .cert-a4 {
    max-width: 100%;
  }

  .dashboard-hero-updated {
    width: 100%;
    text-align: left;
  }

  .cert-modern-title {
    font-size: 3.1rem;
  }

  .cert-modern-name {
    font-size: 4.8rem;
  }

  .cert-ref-title {
    font-size: 1.9rem;
  }

  .cert-ref-name {
    font-size: 2.55rem;
  }
}

@media (min-width: 900px) {
  .certificate-hero-grid {
    grid-template-columns: minmax(220px, 0.95fr) minmax(420px, 1.35fr);
    align-items: stretch;
    gap: 1.1rem;
  }

  .certificate-hero-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .cert-a4 {
    max-width: 100%;
  }

  .cert-modern-title {
    font-size: 2.4rem;
  }

  .cert-modern-label {
    font-size: 1.05rem;
  }

  .cert-modern-name {
    font-size: 3.8rem;
  }

  .cert-modern-content {
    max-width: 82%;
  }

  .cert-modern-copy {
    font-size: 0.98rem;
  }

  .cert-modern-date {
    font-size: 0.85rem;
  }

  .cert-modern-sign-mark {
    font-size: 2.7rem;
  }

  .cert-modern-sign-role {
    font-size: 1.25rem;
  }

  .inline-style-grid {
    grid-template-columns: 1fr;
  }

  .inline-actions {
    max-width: 170px;
  }

  .cert-ref-content {
    max-width: 78%;
  }

  .cert-ref-title {
    font-size: 1.58rem;
  }

  .cert-ref-name {
    font-size: 2.05rem;
  }

  .cert-ref-copy {
    font-size: 0.75rem;
  }

  .cert-ref-meta {
    font-size: 0.71rem;
  }

  .cert-ref-sign-name {
    font-size: 0.8rem;
  }
}

.menu-active {
  position: relative;
  background: #eaf3ff;
  color: #1e3a8a;
  box-shadow: none;
}

.menu-active .sidebar-icon-box {
  color: #3b82f6;
}

.menu-active::before {
  content: '';
  position: absolute;
  left: -10px;
  top: 8px;
  bottom: 8px;
  width: 3px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--brand-main), var(--brand-alt));
}

.enterprise-shell {
  border: 1px solid rgba(220, 227, 242, 0.95);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(8px);
}

.sidebar-shell {
  border: 1px solid rgba(220, 227, 242, 0.95);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 10% 8%, rgba(219, 234, 254, 0.85), transparent 45%),
    radial-gradient(circle at 90% 12%, rgba(207, 250, 254, 0.7), transparent 42%),
    rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(8px);
  transition: width 260ms ease, padding 260ms ease;
}

body.create-focus .sidebar-shell {
  display: none;
}

.sidebar-brand-card {
  border: 1px solid #dbe7fa;
  border-radius: 14px;
  padding: 0.75rem;
  background:
    radial-gradient(circle at 94% 8%, rgba(56, 189, 248, 0.2), transparent 42%),
    linear-gradient(180deg, #ffffff, #fbfdff);
}

.sidebar-brand-icon {
  width: 2.25rem;
  height: 2.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand-main), #2563eb 55%, var(--brand-alt));
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 800;
}

.sidebar-brand-meta {
  transition: opacity 180ms ease, transform 180ms ease, max-width 220ms ease;
  max-width: 190px;
}

.sidebar-collapse-btn {
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #475569;
  background: #ffffff;
  transition: transform 180ms ease, background 180ms ease;
}

.sidebar-collapse-btn:hover {
  background: #f8fafc;
}

.sidebar-section-title {
  font-size: 0.71rem;
  font-weight: 700;
  color: #9aa4b2;
  letter-spacing: 0.08em;
}

.sidebar-label,
.sidebar-section-title,
.sidebar-user-meta,
.sidebar-tag,
.sidebar-favs-block {
  transition: opacity 170ms ease, transform 170ms ease, max-width 230ms ease, margin 230ms ease;
}

.sidebar-menu-item {
  position: relative;
  width: 100%;
  border-radius: 12px;
  padding: 0.58rem 0.7rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.9rem;
  font-weight: 600;
  transition: background 180ms ease, color 180ms ease;
}

.sidebar-menu-item:hover {
  background: #f8fafc;
}

.sidebar-menu-left {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.sidebar-submenu-wrap {
  padding: 0.15rem 0.15rem 0.25rem;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(239, 246, 255, 0.92), rgba(236, 254, 255, 0.68));
  border: 1px solid #dbe7fa;
}

.sidebar-submenu-label {
  padding: 0.2rem 0.5rem 0.35rem;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #94a3b8;
}

.sidebar-submenu-list {
  display: grid;
  gap: 0.2rem;
}

.sidebar-submenu-item {
  padding-left: 0.6rem;
}

.sidebar-submenu-item .sidebar-icon-box {
  color: #475569;
}

.sidebar-submenu-item.menu-active {
  background: #eaf3ff;
}

.sidebar-chevron {
  color: #94a3b8;
  font-weight: 700;
  transition: opacity 170ms ease, transform 170ms ease;
}

.sidebar-icon-box {
  width: 1rem;
  color: #64748b;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.sidebar-icon-box svg,
.sidebar-chevron svg,
.sidebar-collapse-btn svg {
  width: 0.92rem;
  height: 0.92rem;
  stroke-width: 2;
}

.sidebar-fav-item {
  position: relative;
  display: grid;
  grid-template-columns: 10px 1fr auto;
  align-items: center;
  gap: 0.55rem;
  padding: 0.35rem 0.2rem;
  font-size: 0.82rem;
  color: #475569;
}

.sidebar-dot {
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 999px;
}

.sidebar-tag {
  border-radius: 999px;
  background: #f3f4f6;
  color: #9aa4b2;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.08rem 0.45rem;
}

.sidebar-footer-link {
  position: relative;
  width: 100%;
  border-radius: 10px;
  padding: 0.45rem 0.55rem;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: #475569;
  font-size: 0.88rem;
  font-weight: 600;
  transition: background 180ms ease;
}

.sidebar-footer-link:hover {
  background: #f8fafc;
}

.support-love-link:not(.menu-active) {
  background: #fce7f3;
  color: #be185d;
  border: 1px solid #f9a8d4;
}

.support-love-link .sidebar-icon-box {
  color: #db2777;
}

.support-love-link:not(.menu-active):hover {
  background: #fbcfe8;
}

.support-love-link.menu-active {
  background: #eaf3ff;
  background-color: #eaf3ff !important;
  color: #1e3a8a;
  border-color: #93c5fd;
}

.support-love-link.menu-active::before {
  background: linear-gradient(180deg, #60a5fa, #3b82f6);
}

.sidebar-user-card {
  border: 1px solid #edf2f7;
  border-radius: 14px;
  background: #ffffff;
  padding: 0.7rem;
  display: flex;
  align-items: center;
  gap: 0.62rem;
  transition: padding 220ms ease, justify-content 220ms ease;
}

.sidebar-avatar-wrap {
  position: relative;
  width: 2.25rem;
  height: 2.25rem;
}

.sidebar-avatar-img {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  object-fit: cover;
  border: 2px solid #ffffff;
  box-shadow: 0 6px 14px -10px rgba(15, 23, 42, 0.55);
}

.sidebar-status-dot {
  position: absolute;
  right: -1px;
  bottom: -1px;
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 999px;
  background: #22c55e;
  border: 2px solid #ffffff;
}

[data-sidebar-tooltip]::after {
  content: attr(data-sidebar-tooltip);
  position: absolute;
  left: calc(100% + 10px);
  top: 50%;
  transform: translateY(-50%);
  background: #0f172a;
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.3rem 0.55rem;
  border-radius: 8px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 140ms ease;
  z-index: 40;
}

.topbar-row {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.topbar-caption {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #475569;
}

.topbar-title {
  font-family: 'Space Grotesk', 'Manrope', sans-serif;
  font-size: 1.15rem;
  font-weight: 800;
  color: #0f172a;
}

.topbar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.topbar-btn,
.topbar-chip,
.topbar-app-badge {
  border: 1px solid #dbe7fa;
  border-radius: 999px;
  background: #eff6ff;
  color: #1e3a8a;
  font-size: 0.74rem;
  font-weight: 700;
  height: 2rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0 0.72rem;
}

.topbar-btn {
  transition: background 180ms ease;
}

.topbar-btn:hover {
  background: #ffffff;
  border-color: #bfdbfe;
  color: #1d4ed8;
}

.topbar-btn svg,
.topbar-app-badge svg {
  width: 0.82rem;
  height: 0.82rem;
}

.dashboard-intro-card {
  border: 1px solid #d5dde8;
  background: #e9eef5;
  box-shadow: 0 14px 24px -22px rgba(15, 23, 42, 0.45);
}

.stats-ref-card {
  border: 1px solid #e5eaf1;
  border-radius: 11px;
  background: #ffffff;
  min-height: 108px;
  padding: 0.72rem 0.9rem;
  transition: border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.stats-ref-card:hover {
  border-color: #d9e0ea;
  background: #fcfdff;
  transform: translateY(-0.5px);
  box-shadow: 0 10px 22px -24px rgba(15, 23, 42, 0.45);
}

.stats-ref-icon {
  width: 1.95rem;
  height: 1.95rem;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.56rem;
}

.stats-ref-icon svg {
  width: 1rem;
  height: 1rem;
  stroke-width: 2.3;
}

.stats-ref-title {
  font-size: 0.76rem;
  font-weight: 700;
  color: #1f2937;
}

.stats-ref-value {
  margin-top: 0.24rem;
  font-size: 1.32rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.2;
}

.style-pill-wrap {
  position: relative;
}

.style-apply-group {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.35rem;
}

.style-apply-btn {
  border: 1px solid rgba(99, 102, 241, 0.45);
  border-radius: 999px;
  background: #ffffff;
  color: #4f46e5;
  font-size: 0.73rem;
  font-weight: 700;
  height: 1.95rem;
}

.style-apply-btn.active {
  background: linear-gradient(135deg, #8b5cf6, #6366f1);
  color: #ffffff;
}

.style-pill-input {
  width: 100%;
  appearance: none;
  border: 1px solid rgba(99, 102, 241, 0.45);
  border-radius: 999px;
  background: linear-gradient(135deg, #8b5cf6, #6366f1);
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.5rem 2rem 0.5rem 0.8rem;
}

.style-pill-input option {
  color: #111827;
}

.style-size-slider {
  width: 100%;
  accent-color: #6366f1;
}

.style-pill-chevron {
  position: absolute;
  right: 0.7rem;
  top: 50%;
  transform: translateY(-50%);
  color: #ffffff;
  font-size: 0.76rem;
  pointer-events: none;
}

.style-pill-group {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.35rem;
}

.style-pill-btn {
  border: 1px solid rgba(99, 102, 241, 0.45);
  border-radius: 999px;
  background: linear-gradient(135deg, #8b5cf6, #6366f1);
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 800;
  height: 2rem;
}

.style-pill-btn.active {
  background: #ffffff;
  color: #4338ca;
}

.style-color-swatch {
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 0.45rem;
  border: 2px solid transparent;
}

.style-color-swatch.active {
  border-color: #ffffff;
  box-shadow: 0 0 0 2px #2563eb;
}

@media (min-width: 768px) {
  .topbar-row {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
  }
}

@media (min-width: 768px) {
  body.sidebar-collapsed .sidebar-shell {
    width: 5.3rem !important;
    min-width: 5.3rem;
    padding-left: 0.6rem;
    padding-right: 0.6rem;
  }

  body.sidebar-collapsed .sidebar-brand-card {
    padding: 0.65rem 0.45rem;
  }

  body.sidebar-collapsed .sidebar-brand-card > div {
    justify-content: center;
  }

  body.sidebar-collapsed .sidebar-brand-meta,
  body.sidebar-collapsed .sidebar-label,
  body.sidebar-collapsed .sidebar-section-title,
  body.sidebar-collapsed .sidebar-user-meta,
  body.sidebar-collapsed .sidebar-chevron,
  body.sidebar-collapsed .sidebar-tag {
    opacity: 0;
    transform: translateX(-6px);
    max-width: 0;
    overflow: hidden;
    margin: 0;
    pointer-events: none;
  }

  body.sidebar-collapsed .sidebar-favs-block {
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    margin-top: 0;
    padding-top: 0;
    border-top-color: transparent;
    pointer-events: none;
  }

  body.sidebar-collapsed .sidebar-menu-item,
  body.sidebar-collapsed .sidebar-footer-link {
    justify-content: center;
    padding-left: 0.45rem;
    padding-right: 0.45rem;
  }

  body.sidebar-collapsed .sidebar-submenu-wrap {
    background: transparent;
    border-color: transparent;
    padding: 0;
  }

  body.sidebar-collapsed .sidebar-menu-left {
    gap: 0;
  }

  body.sidebar-collapsed .sidebar-footer-block {
    display: grid;
    justify-items: center;
  }

  body.sidebar-collapsed .sidebar-user-card {
    justify-content: center;
    padding: 0.4rem;
  }

  body.sidebar-collapsed .sidebar-collapse-btn {
    transform: rotate(180deg);
  }

  body.sidebar-collapsed .menu-active::before {
    left: -6px;
  }

  body.sidebar-collapsed [data-sidebar-tooltip]:hover::after {
    opacity: 1;
  }
}

.hero-gradient {
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.2), transparent 34%),
    linear-gradient(120deg, var(--hero-grad-start) 0%, var(--hero-grad-mid) 52%, var(--hero-grad-end) 100%);
}

.pill-chip {
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: #ffffff;
}

.pill-chip.active {
  background: #0f172a;
  color: #ffffff;
  border-color: #0f172a;
}

.view-panel {
  animation: panel-enter 360ms ease;
}

.reveal-item {
  opacity: 0;
  transform: translateY(12px);
  animation: card-reveal 420ms ease forwards;
  animation-delay: var(--delay, 0ms);
}

.modal-transition {
  transition: opacity 220ms ease, transform 220ms ease;
  transform: translateY(6px) scale(0.98);
}

.modal-open {
  opacity: 1 !important;
  transform: translateY(0) scale(1);
}

.toast {
  transform: translateY(10px);
  opacity: 0;
  transition: transform 220ms ease, opacity 220ms ease;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

.toast.loading {
  border-color: #c7d2fe;
  background: #eef2ff;
  color: #3730a3;
}

.field-error {
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.btn-disabled,
button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  filter: grayscale(0.08);
}

.btn-download-pdf {
  background: #2563eb;
  border: 1px solid #1d4ed8;
  color: #ffffff;
}

.btn-download-pdf:hover {
  background: #1d4ed8;
}

.btn-download-pdf:disabled {
  background: #bfdbfe;
  border-color: #93c5fd;
  color: #0f172a;
}

.skeleton {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: #ffffff;
}

.skeleton::before {
  content: '';
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(148, 163, 184, 0.18), transparent);
  animation: shimmer 1.15s infinite;
}

@keyframes shimmer {
  100% {
    transform: translateX(100%);
  }
}

@keyframes panel-enter {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes card-reveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .view-panel,
  .reveal-item,
  .modal-transition,
  .skeleton::before {
    animation: none !important;
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
}
