:root {
    /* Colors */
    --primary: #4f46e5;
    --secondary: #7c3aed;
    --accent: #14b8a6;
    --accent-dark: #0f766e;
    --bg: #f8fafc;
    --surface: rgba(255, 255, 255, 0.72);
    --text: #0f172a;
    --muted: #64748b;
    --border: rgba(148, 163, 184, 0.32);
    
    /* Alerts */
    --success: #16a34a;
    --success-bg: #f0fdf4;
    --success-border: #bbf7d0;
    --warning: #d97706;
    --warning-bg: #fffbeb;
    --warning-border: #fde68a;
    --error: #ef4444;
    --error-bg: #fef2f2;
    --error-border: #fecaca;
    
    /* Gradients & Shadows */
    --gradient-primary: linear-gradient(135deg, var(--primary), var(--secondary));
    --gradient-accent: linear-gradient(135deg, var(--accent), var(--accent-dark));
    --shadow-primary: 0 12px 28px rgba(79, 70, 229, 0.24);
    --shadow-teal: 0 12px 28px rgba(20, 184, 166, 0.22);
    --shadow-soft: 0 12px 30px rgba(15, 23, 42, 0.08);
    
    /* Radii & Transitions */
    --r-lg: 16px;
    --r-xl: 20px;
    --r-2xl: 28px;
    --r-full: 999px;
    --transition-fast: 160ms ease;
    --transition: 220ms ease;

    /* Scheme Table Preview Variables */
    --table-fs: 10.2pt;
    --w-wk: 11.1mm; --w-ls: 12mm; --w-st: 21mm; --w-sb: 26mm; --w-ou: 49mm;
    --w-ex: 64mm; --w-iq: 26mm; --w-rs: 28mm; --w-as: 28mm; --w-rf: 20.9mm;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
}

/* Background Ambient Gradient */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(circle at 10% 20%, rgba(79, 70, 229, 0.12), transparent 24%),
        radial-gradient(circle at 85% 15%, rgba(20, 184, 166, 0.10), transparent 22%),
        radial-gradient(circle at 80% 82%, rgba(124, 58, 237, 0.10), transparent 24%),
        radial-gradient(circle at 20% 80%, rgba(37, 99, 235, 0.08), transparent 20%);
}

/* ================= Navbar ================= */
.navbar {
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(12px) saturate(180%);
    border-bottom: 1px solid rgba(148, 163, 184, 0.18);
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.04);
    padding: 15px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
}
.navbar.scrolled { box-shadow: 0 10px 30px rgba(15, 23, 42, 0.10); }

.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; text-decoration: none; color: var(--text); }
.logo-icon { width: 34px; height: 34px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; color: #fff; background: var(--gradient-primary); box-shadow: var(--shadow-primary); }
.logo-text { background: linear-gradient(90deg, var(--primary), var(--secondary)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.logo-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 6px rgba(20, 184, 166, 0.12); }

.menu { display: flex; align-items: center; gap: 8px; }
.nav-link { background: transparent; border: 1px solid transparent; border-radius: var(--r-full); padding: 10px 16px; font-weight: 700; color: var(--text); text-decoration: none; cursor: pointer; transition: all var(--transition-fast); }
.nav-link:hover { background: rgba(79, 70, 229, 0.08); color: var(--primary); transform: translateY(-1px); }
.nav-link.nav-cta { background: var(--gradient-primary); color: #fff; box-shadow: var(--shadow-primary); }
.nav-link.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 14px 30px rgba(79, 70, 229, 0.30); color: #fff; }

@media (max-width: 600px) {
    .hide-mobile { display: none !important; }
    .navbar { padding: 12px 16px; }
    .logo-text { font-size: 18px; }
    .nav-link.nav-cta { padding: 8px 16px; font-size: 13px; }
}

/* ================= Main Layout & Wizard ================= */
.main-wrapper { max-width: 1000px; margin: 40px auto; padding: 0 20px; position: relative; z-index: 1; }

.wizard-card {
    background: var(--surface);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: var(--r-2xl);
    box-shadow: var(--shadow-soft);
    padding: 40px;
    min-height: 500px;
}
@media (max-width: 768px) { .wizard-card { padding: 20px; } }

/* ================= Progress Bar ================= */
.progress-bar {
    position: relative; display: flex; justify-content: space-between; gap: 18px; padding: 18px 22px;
    border-radius: var(--r-2xl); background: rgba(255,255,255,0.55); backdrop-filter: blur(10px);
    border: 1px solid rgba(148,163,184,0.18); margin-bottom: 30px;
}
.progress-bar::before { content: ""; position: absolute; left: 7%; right: 7%; top: 34px; height: 2px; background: rgba(148,163,184,0.28); z-index: 0; }

.step-item { position: relative; z-index: 1; width: 25%; display: flex; flex-direction: column; align-items: center; transition: all var(--transition-fast); }
.step-item span { font-size: 12px; font-weight: 700; color: var(--muted); text-align: center; margin-top: 8px; transition: color var(--transition-fast); }
.step-circle { width: 34px; height: 34px; border-radius: 50%; background: #e2e8f0; color: #475569; display: grid; place-items: center; font-weight: 800; transition: all var(--transition); }

.step-item.active .step-circle { background: var(--gradient-primary); color: #fff; box-shadow: var(--shadow-primary); animation: pulse-ring 1.8s ease-out infinite; }
.step-item.completed .step-circle { background: linear-gradient(135deg, #22c55e, #16a34a); color: #fff; box-shadow: 0 12px 24px rgba(34, 197, 94, 0.22); }
.step-item.active span { color: var(--primary); }
.step-item.completed span { color: var(--success); }

@keyframes pulse-ring {
    0% { box-shadow: 0 0 0 0 rgba(79, 70, 229, 0.34), var(--shadow-primary); }
    70% { box-shadow: 0 0 0 12px rgba(79, 70, 229, 0), var(--shadow-primary); }
    100% { box-shadow: 0 0 0 0 rgba(79, 70, 229, 0), var(--shadow-primary); }
}

/* ================= Step Content ================= */
.step-content { display: none; animation: stepEnter 0.42s cubic-bezier(0.2, 0.8, 0.2, 1); }
.step-content.active { display: block; }
@keyframes stepEnter { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: translateX(0); } }

.step-header { text-align: center; margin-bottom: 30px; }
.step-header h2 { margin-bottom: 5px; color: var(--text); font-weight: 800; font-size: 26px; }
.step-header p { color: var(--muted); margin: 0; font-size: 15px; }

/* ================= Alerts & Messages ================= */
.inline-msg, .warning-box { padding: 15px; border-radius: 14px; box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04); margin-bottom: 20px; font-size: 14px; display: none; border: 1px solid; }
.inline-msg.error { background: var(--error-bg); color: var(--error); border-color: var(--error-border); }
.inline-msg.info { background: var(--info-bg); color: var(--info); border-color: var(--info-border); }
.warning-box { background: var(--warning-bg); color: var(--warning); border-color: var(--warning-border); }
.warning-box p { margin: 0 0 12px 0; line-height: 1.5; font-weight: 600; }
.msg-shake { animation: shake 0.32s ease; }
@keyframes shake { 0%, 100% { transform: translateX(0); } 20% { transform: translateX(-5px); } 40% { transform: translateX(5px); } 60% { transform: translateX(-4px); } 80% { transform: translateX(4px); } }

/* ================= Forms & School Cards ================= */
.school-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 16px; }
.school-card { appearance: none; position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; border: 1.5px solid var(--border); border-radius: 22px; padding: 22px 16px; background: rgba(255,255,255,0.9); box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04); cursor: pointer; transition: all var(--transition); }
.school-card:hover { border-color: rgba(79, 70, 229, 0.40); transform: translateY(-6px); box-shadow: 0 16px 34px rgba(15, 23, 42, 0.10); }
.school-card.selected { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.18), 0 18px 36px rgba(79, 70, 229, 0.16); }

.icon-box { width: 50px; height: 50px; border-radius: 50%; margin: 0 auto 12px; display: flex; align-items: center; justify-content: center; font-size: 20px; color: white; box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08); animation: float 4s ease-in-out infinite; }
.school-card:hover .icon-box { animation-play-state: paused; transform: translateY(-2px) rotate(8deg) scale(1.05); }
.pp { background: #ff9f43; } .lpri { background: #1dd1a1; } .upri { background: #54a0ff; } .jnr { background: #5f27cd; } .snr { background: #ee5253; }
.school-card h3 { margin: 0; font-size: 16px; color: var(--text); }
.school-card p { margin: 0; font-size: 12px; color: var(--muted); }

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

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media(max-width: 600px) { .form-grid { grid-template-columns: 1fr; } }
.full-width { grid-column: 1 / -1; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 700; font-size: 12px; color: #475569; text-transform: uppercase; letter-spacing: 0.04em; }
.form-group select, .form-group input { width: 100%; padding: 12px; border: 1.5px solid var(--border); border-radius: 14px; font-size: 14px; outline: none; transition: all var(--transition-fast); background: rgba(255,255,255,0.92); font-family: inherit; }
.form-group select:focus, .form-group input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12); }
.required-star { color: var(--error); font-weight: bold; }

/* ================= Buttons ================= */
.actions { margin-top: 30px; display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--border); padding-top: 20px; }
button { padding: 12px 24px; border: none; border-radius: var(--r-full); cursor: pointer; font-weight: 700; font-size: 14px; transition: all var(--transition-fast); display: inline-flex; align-items: center; gap: 8px; font-family: inherit; }
button:active { transform: scale(0.99); }
.btn-back { background: #e2e8f0; color: #334155; }
.btn-back:hover { background: #cbd5e1; color: #0f172a; transform: translateY(-1px); }
.btn-next { background: var(--gradient-primary); color: #fff; box-shadow: var(--shadow-primary); }
.btn-next:hover { transform: translateY(-2px) scale(1.02); box-shadow: 0 16px 34px rgba(79, 70, 229, 0.28); }
.btn-next:disabled { background: #94a3b8; box-shadow: none; cursor: not-allowed; transform: none; }
.btn-highlight { background: var(--gradient-accent); color: #fff; box-shadow: var(--shadow-teal); }
.btn-highlight:hover { transform: translateY(-2px) scale(1.02); }
.btn-danger { background: linear-gradient(135deg, #fee2e2, #fecaca); color: #b91c1c; border: 1px solid rgba(239, 68, 68, 0.14); }
.btn-download { background: linear-gradient(135deg, #ef4444, #dc2626); color: #fff; }

/* ================= Document Editor / UI Bar ================= */
#ui-bar { background: rgba(255,255,255,0.95); backdrop-filter: blur(12px); padding: 10px 20px; border-bottom: 1px solid rgba(148,163,184,0.18); position: sticky; top: 60px; z-index: 2000; display: flex; gap: 10px; align-items: center; box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08); overflow-x: auto; white-space: nowrap; margin: -40px -40px 20px -40px; border-radius: 18px 18px 0 0; }
@media (max-width: 768px) { #ui-bar { margin: -20px -20px 20px -20px; } }
.ui-sep { width: 1px; align-self: stretch; background: rgba(148, 163, 184, 0.28); }
.btn { padding: 10px 14px; border: 1px solid rgba(148,163,184,0.28); border-radius: 14px; background: #fff; color: #334155; font-size: 13px; transition: .2s; cursor: pointer; }
.btn:hover { background: #f8fafc; color: #0f172a; box-shadow: 0 8px 16px rgba(15,23,42,0.06); }
.btn-blue { background: var(--gradient-primary); color: #fff; border: none; }

.fs-control { display: flex; align-items: center; gap: 5px; border-left: 1px solid rgba(148,163,184,0.28); padding-left: 12px; }
.fs-control input { width: 60px; padding: 6px; border: 1.5px solid var(--border); border-radius: 12px; font-size: 13px; text-align: center; }

#doc-area { width: 100%; min-height: 210mm; background: #fff; padding: 15mm; border: 1px solid #e2e8f0; border-radius: var(--r-lg); box-shadow: 0 10px 30px rgba(0,0,0,.04); overflow-x: auto; }

#doc-title { text-align: center; font-size: 13pt; font-weight: 800; margin: 10px 0 20px; line-height: 1.6; letter-spacing: 0.03em; border: 2px dashed transparent; border-radius: 8px; padding: 8px 5px; transition: 0.2s; white-space: pre-wrap; word-wrap: break-word; cursor: text; }
#doc-title:hover { border-color: rgba(79, 70, 229, 0.40); background: #f8fafc; }
#doc-title:focus { outline: none; border-color: var(--primary); background: #fff; }

table { width: 100%; border-collapse: collapse; font-size: var(--table-fs); table-layout: fixed; }
th, td { border: 1px solid #000 !important; padding: 6px 5px; vertical-align: top; word-wrap: break-word; color: #000; }
th { background: #e2e8f0; font-weight: 700; text-align: left; border-bottom: 2px solid #000 !important; }
.c-week{ width:var(--w-wk); text-align:center; } .c-les{ width:var(--w-ls); text-align:center; } .c-strand{ width:var(--w-st); } .c-sub{ width:var(--w-sb); } .c-out{ width:var(--w-ou); } .c-exp{ width:var(--w-ex); } .c-inq{ width:var(--w-iq); } .c-res{ width:var(--w-rs); } .c-asm{ width:var(--w-as); } .c-ref{ width:var(--w-rf); }

.row-blue { background: #f8fafc; } .row-white { background: #fff; }
.row-break-label { background: #fee2e2; text-align: center; font-weight: 800; text-transform: uppercase; }
.editable { outline: none; min-height: 20px; }

/* ================= Modals & Overlays ================= */
.overlay { position: fixed; inset: 0; background: rgba(15, 23, 42, 0.60); backdrop-filter: blur(8px); z-index: 3000; display: none; align-items: center; justify-content: center; padding: 10px; }
.modal-box { background: #fff; padding: 0 25px 25px; border-radius: var(--r-xl); width: 850px; max-width: 100%; max-height: 95vh; overflow-y: auto; box-shadow: 0 22px 60px rgba(15, 23, 42, 0.22); display: flex; flex-direction: column; }
.modal-box.large { width: 95%; height: 90vh; }
.modal-sm { width: 450px; }
.modal-header { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid rgba(226,232,240,0.9); padding-bottom: 12px; margin-bottom: 15px; position: sticky; top: 0; background: #fff; z-index: 20; padding: 20px 25px 12px; margin: 0 -25px 15px; }

/* Modal Content & Catalogs */
.catalog-toolbar { display: flex; gap: 10px; margin-bottom: 12px; position: sticky; top: 65px; background: #fff; z-index: 10; padding: 8px 25px 10px; margin: 0 -25px 12px; border-bottom: 1px solid var(--border); }
.cat-strand-header { background: var(--gradient-primary); color: white; padding: 12px 16px; border-radius: 14px; font-weight: 700; font-size: 16px; margin-bottom: 10px; box-shadow: var(--shadow-primary); }
.cat-sub { margin-left: 4px; margin-bottom: 12px; border-left: 4px solid rgba(79, 70, 229, 0.32); padding-left: 8px; }
.cat-sub-header { background: rgba(99, 102, 241, 0.06); color: var(--primary); border-radius: 14px; display: flex; border: 1px solid rgba(79, 70, 229, 0.16); transition: 0.2s; }
.cat-sub-header:hover { box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06); }
.ss-select-area { flex: 1; padding: 10px 12px; cursor: pointer; font-weight: 600; font-size: 14px; display: flex; justify-content: space-between; }
.ss-arrow { width: 44px; display: flex; align-items: center; justify-content: center; background: rgba(79,70,229,0.10); border-left: 1px solid rgba(79,70,229,0.14); border-radius: 0 14px 14px 0; cursor: pointer; }

.cat-lessons-grid { display: none; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; margin-top: 8px; }
.cat-lessons-grid.visible { display: grid; }
.cat-lesson-card { border: 1px solid rgba(148,163,184,0.22); border-radius: 16px; background: rgba(255,255,255,0.92); padding: 12px 14px; cursor: pointer; transition: all var(--transition-fast); }
.cat-lesson-card:hover { transform: translateY(-2px); border-color: rgba(79,70,229,0.28); box-shadow: 0 14px 28px rgba(15,23,42,0.08); }
.cat-lesson-card.selected { background: rgba(20,184,166,0.08); border-color: rgba(20,184,166,0.42); box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.18); }
.cat-sub-header.selected { background: rgba(22, 163, 74, 0.10); border-color: rgba(22, 163, 74, 0.50); box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.15); }
.cat-sub-header.selected .ss-select-area { color: #15803d; font-weight: 700; }
.cat-sub-header.selected .ss-arrow { background: rgba(22, 163, 74, 0.15); border-color: rgba(22, 163, 74, 0.20); }
.cat-l-title { font-weight: 700; color: var(--text); font-size: 13px; }
.cat-l-meta { display: flex; justify-content: space-between; margin-top: 6px; color: var(--muted); }
.slot-ctrl { display: flex; align-items: center; gap: 6px; background: #fff; padding: 2px 4px; border-radius: 6px; border: 1.5px solid rgba(148,163,184,0.22); }
.slot-btn { border: none; background: #f8fafc; border-radius: 4px; width: 24px; height: 24px; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.slot-val { font-size: 12px; font-weight: 700; width: 16px; text-align: center; }

/* ================= Toast Notification ================= */
#toast {
    position: fixed; right: 24px; bottom: 24px; z-index: 5000;
    padding: 14px 16px 16px; border-radius: 18px; color: #fff;
    background: rgba(15, 23, 42, 0.96); box-shadow: 0 18px 38px rgba(15, 23, 42, 0.28);
    display: none; align-items: flex-start; gap: 10px; overflow: hidden;
    animation: toastSlide 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
#toast.ok { background: rgba(15, 118, 110, 0.96); }
#toast.error { background: rgba(185, 28, 28, 0.96); }
.toast-icon { font-size: 18px; margin-top: 2px; }
.toast-text { font-weight: 700; line-height: 1.4; }
.toast-progress { position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: rgba(255,255,255,0.38); transform-origin: left; animation: toastProgress var(--toast-duration, 3000ms) linear forwards; }
@keyframes toastSlide { from { opacity: 0; transform: translateY(18px) scale(0.96); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes toastProgress { from { transform: scaleX(1); } to { transform: scaleX(0); } }

/* ================= Utilities & Print ================= */
.sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }

body.editor-mode .navbar,
body.editor-mode .progress-bar,
body.editor-mode #step4 .step-header { display: none !important; }
body.editor-mode .main-wrapper { margin: 0 auto; max-width: 1200px; padding: 0; }
body.editor-mode .wizard-card { padding: 0; box-shadow: none; background: transparent; border-radius: 0; border: none; }
body.editor-mode #ui-bar { top: 0; margin: 0 0 20px 0 !important; border-radius: 0 0 8px 8px; box-shadow: 0 4px 10px rgba(0,0,0,0.1); }


/* ================= Footer ================= */
#doc-footer {
    display: block;
    text-align: center;
    margin-top: 10mm;
    padding-top: 6px;
    border-top: 2px solid #334155;
    font-size: 0.82rem;
    font-weight: 700;
    color: #1e293b;
    letter-spacing: 0.02em;
}

#doc-footer #footer-text {
    border: 2px dashed transparent;
    border-radius: 6px;
    padding: 2px 10px;
    cursor: text;
    transition: 0.2s;
    display: inline-block;
}
#doc-footer #footer-text:hover {
    border-color: rgba(79, 70, 229, 0.40);
    background: #f8fafc;
}
#doc-footer #footer-text:focus {
    border-color: var(--primary);
    background: #fff;
    outline: none;
}

/* ================= Compact List Override ================= */
ul.compact-list {
    display: block; margin: 0; padding: 0;
    list-style: none;
}
ul.compact-list li {
    display: block; margin: 0; padding: 0;
}
ul.compact-list li::before {
    content: "• ";
}

/* Browser Print Fallback (Ctrl+P) */
@media print {
  @page { size: A4 landscape; margin: 10mm 10mm 5mm 10mm; }
  html, body { height: auto !important; background: #fff !important; margin: 0 !important; padding: 0 !important; color: #000 !important; }
  body::before, .navbar, .progress-bar, .actions, #ui-bar, .overlay, #toast { display: none !important; }
  .main-wrapper { margin: 0 !important; padding: 0 !important; max-width: none !important; }
  .wizard-card { box-shadow: none !important; padding: 0 !important; border: none !important; background: transparent !important; }
  .step-content:not(.active) { display: none !important; }
  #doc-area { margin: 0 !important; padding: 0 !important; border: none !important; box-shadow: none !important; width: 100% !important; overflow: visible !important; }
  #doc-footer { display: block !important; text-align: center !important; border-top: 2px solid #000 !important; margin-top: 8mm !important; padding-top: 4px !important; font-size: 10pt !important; font-weight: 700 !important; color: #000 !important; }
  #doc-footer #footer-text { border: none !important; padding: 0 !important; }
  #doc-title { border: none !important; }
  ul.compact-list { display: block; margin: 0; padding: 0; list-style: none; }
  ul.compact-list li::before { content: "• "; }
  table { page-break-after: auto !important; }
  tr { page-break-inside: avoid !important; break-inside: avoid !important; }
}
/* ================= Feedback Button ================= */
#feedbackBtn {
    position: fixed;
    bottom: 28px;
    right: 24px;
    background: var(--primary, #4f46e5);
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 12px 20px;
    font-size: 0.88rem;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 20px rgba(79,70,229,0.35);
    z-index: 8000;
    transition: transform 0.2s, box-shadow 0.2s;
    animation: feedbackPulse 2.5s ease-in-out infinite;
}
#feedbackBtn:hover {
    transform: translateY(-2px) scale(1.04);
    box-shadow: 0 8px 28px rgba(79,70,229,0.45);
    animation: none;
}
@keyframes feedbackPulse {
    0%, 100% { box-shadow: 0 4px 20px rgba(79,70,229,0.35); }
    50% { box-shadow: 0 4px 28px rgba(79,70,229,0.6); }
}
@media print {
    #feedbackBtn { display: none !important; }
}

/* ================= Copy Protection ================= */
#doc-area, #doc-area * {
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
    user-select: none !important;
    -webkit-touch-callout: none !important;
}
/* Re-enable for editable cells and slot controls only */
#doc-area .editable,
#doc-area .slot-ctrl input,
#doc-area .slot-val,
#doc-title,
#doc-footer #footer-text {
    -webkit-user-select: text !important;
    user-select: text !important;
}
#doc-area .slot-ctrl,
#doc-area .slot-btn {
    pointer-events: all;
}
