/* Dedicated visual systems: distinct palette, framing and composition per template */
.edu-maker{margin:18px 0 35px;color:#172b43}.edu-top{display:flex;align-items:center;gap:16px;flex-wrap:wrap;background:linear-gradient(120deg,#102c4d,#146b78);padding:18px;border-radius:18px;color:#fff}.edu-back,.edu-lang select{border:1px solid #ffffff55;border-radius:9px;padding:10px;background:#fff;color:#18334d;font-weight:700}.edu-heading{flex:1;min-width:220px}.edu-heading span{font-size:9px;letter-spacing:1.5px;opacity:.8}.edu-heading h2{margin:5px 0;font-size:25px}.edu-heading p{margin:0;font-size:11px;opacity:.8}.edu-lang{font-size:10px;color:#fff}.edu-template-area{margin:16px 0;padding:14px;background:#fff;border:1px solid #e1e8ef;border-radius:15px}.edu-template-area>b{font-size:12px}.edu-templates{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;margin-top:10px}.edu-template{border:1px solid #dce4ed;border-radius:10px;background:#fff;padding:7px;text-align:left;cursor:pointer;min-width:0}.edu-template.active{outline:2px solid #176b9a;border-color:#176b9a;background:#f1faff}.edu-template small{display:block;color:#8492a1;font-size:9px}.edu-template strong{font-size:10px;display:block;white-space:normal}.edu-swatch{display:block;height:24px;border-radius:6px;margin-bottom:5px;background:linear-gradient(120deg,#173d68,#39a6b5)}.edu-layout{display:grid;grid-template-columns:minmax(280px,390px) minmax(0,1fr);gap:16px;align-items:start}.edu-form,.edu-preview{background:#fff;border:1px solid #e1e8ef;border-radius:15px;padding:15px;min-width:0}.edu-form h3,.edu-preview h3{margin:0 0 12px;font-size:15px}.edu-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}.edu-form label{display:block;font-size:10px;font-weight:700;color:#53657a;margin:7px 0}.edu-form input,.edu-form select,.edu-form textarea{width:100%;padding:9px;border:1px solid #d9e1eb;border-radius:8px;font:inherit;font-size:12px;margin-top:4px}.edu-form textarea{min-height:66px}.edu-hint{font-size:10px;color:#78899a}.edu-add,.edu-print{border:0;border-radius:9px;padding:10px 13px;background:#126c85;color:#fff;font-weight:800;cursor:pointer;margin-top:8px}.edu-actions{display:flex;gap:8px}.edu-qrow{padding:10px;border:1px solid #e1e8ef;border-radius:10px;margin:9px 0;background:#f9fbfd}.edu-remove{border:0;border-radius:7px;background:#fff0f0;color:#a33131;padding:6px 9px;cursor:pointer}.edu-subrow{display:grid;grid-template-columns:1fr 70px 70px 30px;gap:5px;margin:7px 0}.edu-subrow input{min-width:0}.edu-preview{background:#eaf0f5;overflow:auto}.edu-paper{background:white;color:#202a37;width:100%;max-width:760px;min-height:780px;margin:auto;padding:34px;box-shadow:0 5px 24px #102a4318;font-family:Arial,sans-serif;position:relative;overflow:hidden}.edu-paper h1{font-size:24px;margin:8px 0}.edu-paper h2{font-size:18px;margin:8px 0}.edu-paper p{line-height:1.6}.qp-cover{text-align:center;border:5px double #244a76;padding:20px;min-height:350px}.qp-cover header img{max-height:48px;max-width:60px;object-fit:contain}.qp-cover header h1{font-size:22px;text-transform:uppercase}.qp-cover header h2{font-size:17px}.qp-roll{border:1px solid #555;padding:10px;margin:16px 0;font-weight:bold;letter-spacing:2px}.qp-subject{font-size:25px;font-weight:900;padding:10px}.qp-subject small{display:block;font-size:11px}.qp-meta{display:flex;justify-content:space-between;border-block:1px solid #888;padding:9px;font-size:12px}.qp-cover>h3{text-align:left}.qp-cover>p{text-align:left;font-size:12px}.qp-sign{margin-top:28px;font-size:10px}.qp-inner{padding:24px 8px}.qp-inner-head{display:flex;justify-content:space-between;border-bottom:2px solid #456;padding-bottom:8px;font-size:11px}.qp-inner h3{background:#edf2f7;padding:7px}.paper-question{display:grid;grid-template-columns:22px 1fr auto;gap:8px;padding:10px 4px;border-bottom:1px dotted #aab4c0;font-size:12px}.paper-options{padding-top:7px;font-size:10px}.qp-end{text-align:center;margin-top:35px;font-weight:bold}.ms-head{text-align:center;padding:22px;background:#173e67;color:#fff}.ms-head small{letter-spacing:3px}.ms-head h1{font-size:22px}.ms-head h2{font-size:13px}.ms-student{display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap;padding:18px 5px;font-size:11px}.ms-table{width:100%;border-collapse:collapse;font-size:12px}.ms-table th,.ms-table td{border:1px solid #b8c5d2;padding:10px;text-align:left}.ms-table th{background:#eaf0f6}.ms-summary{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin:20px 0}.ms-summary div{padding:13px 7px;text-align:center;background:#edf4f8;border-radius:8px}.ms-summary small,.ms-summary b{display:block}.ms-summary small{font-size:9px}.ms-summary b{font-size:16px;margin-top:6px}.edu-paper footer{margin-top:65px;display:flex;justify-content:space-between;font-size:11px}.cert-frame{min-height:700px;border:12px double #b18b35;outline:1px solid #b18b35;outline-offset:-20px;padding:55px 35px;text-align:center;background:radial-gradient(circle at center,#fff 40%,#fff8e9 100%)}.cert-frame .cert-ornament{font-size:23px;color:#b18b35;letter-spacing:8px}.cert-frame>small{display:block;margin:22px 0 8px;letter-spacing:3px;font-weight:bold}.cert-frame h1{font-family:Georgia,serif;font-size:29px;color:#9a7425;text-transform:uppercase;letter-spacing:2px}.cert-present{font-size:10px;letter-spacing:2px;margin-top:30px}.cert-frame h2{font-family:Georgia,serif;font-size:32px;color:#263c59;border-bottom:1px solid #c4a45e;display:inline-block;padding:0 22px 8px}.cert-frame p{max-width:500px;margin:20px auto;font-size:13px}.cert-frame h3{font-size:17px}.cert-logo{max-height:55px;max-width:75px;object-fit:contain}.cert-photo{width:75px;height:75px;object-fit:cover;border-radius:50%}.cert-date{font-size:10px;margin-top:25px}.cert-sign{display:flex;justify-content:space-between;margin-top:55px;font-size:10px}.edu-paper.qroyal,.edu-paper.qgold{border:8px double #b08a38}.qroyal .qp-cover{border-color:#173b68}.qemerald .qp-cover{border-color:#16856b}.qcrimson .qp-cover{border-color:#9c3344}.qminimal .qp-cover{border:1px solid #aaa}.qheritage .qp-cover{border:8px ridge #8b6b3c}.qgeo .qp-cover{border:0;background:linear-gradient(135deg,#eef5ff,#fff)}.qwave .qp-cover{border:4px solid #0b8791;border-radius:24px}.qgold .qp-cover{border:7px double #b68b2d}.qmono .qp-cover{border:3px solid #222;filter:grayscale(1)}
.edu-paper.mblue .ms-head{background:#174b83}.memerald .ms-head{background:#126b55}.msunrise .ms-head{background:linear-gradient(100deg,#d45b3d,#e9a23b)}.mpurple .ms-head{background:#503b7e}.mcolumns .ms-table th{background:#e7e7e7}.maqua .ms-head{background:#087e89}.mserif{font-family:Georgia,serif}.mserif .ms-head{background:#273b4d}.mcoral .ms-head{background:#d75c67}.mforest .ms-head{background:#285b43}.mmidnight .ms-head{background:#171c36}.mlavender .ms-head{background:#7665a5}.mcobalt .ms-head{background:#1749a0}.mterra .ms-head{background:#98543d}.marctic .ms-head{background:#647b8a}.mruby .ms-head{background:#852e48}.mmint .ms-head{background:#3c8878}.msaffron .ms-head{background:#a66a12}.mocean .ms-head{background:#075b78}.mrose .ms-head{background:#a85e7c}.mgraphite .ms-head{background:#34383d}.miris .ms-head{background:#51458b}.mcopper .ms-head{background:#98613d}.mskyline .ms-head{background:linear-gradient(120deg,#326b9b,#53a6b5)}.mivory .ms-head{background:#74664e}
.edu-paper.croyal .cert-frame{border-color:#b38b32;background:#fffaf0}.cblue .cert-frame{border-color:#2e6da4;background:#f1f8ff}.cemerald .cert-frame{border-color:#218568;background:#f1fff9}.cviolet .cert-frame{border-color:#7856a8;background:#faf5ff}.ccrimson .cert-frame{border-color:#a33b4e;background:#fff5f6}.cocean .cert-frame{border-color:#168caa;background:#f0fcff}.crose .cert-frame{border-color:#ce789b;background:#fff4f8}.csun .cert-frame{border-color:#e3a51f;background:#fff9e7}.cartdeco .cert-frame{border:8px solid #252c3c;outline:3px solid #c59c48;outline-offset:-28px}.cheritage .cert-frame{border:14px ridge #96733a}.cprism .cert-frame{border:10px solid transparent;border-image:linear-gradient(45deg,#e85d75,#6a5acd,#20a6a6) 1}.cbotanical .cert-frame{background:#f4fbef;border:10px double #56814c}.cmidnight .cert-frame{background:#202943;color:#fff;border:10px double #d4b35d}.caurora .cert-frame{background:linear-gradient(135deg,#fff1f8,#edf5ff,#f2fff7);border-color:#a98abf}.ccopper .cert-frame{border-color:#ad6b42;background:#fff8f2}.crainbow .cert-frame{border:12px solid transparent;border-image:linear-gradient(90deg,#e65b65,#e5b44b,#51a77a,#538ed0,#9168b7) 1}.csapphire .cert-frame{border-color:#14548f}.cpeacock .cert-frame{border-color:#087c79;background:#f0fffc}.ccoral .cert-frame{border-color:#e77c65;background:#fff4ef}.cgeo .cert-frame{border:12px solid #b58b34;outline:5px dashed #365b81;outline-offset:-28px}.cparchment .cert-frame{background:#f7f0df;border:12px ridge #947b4b}.clavender .cert-frame{border-color:#8b72b4;background:#fbf7ff}.cforest .cert-frame{border-color:#2c6846;background:#f5fff6}.csilver .cert-frame{border-color:#9aa6b2;background:#f7f9fb}.cruby .cert-frame{border-color:#9b2d48;background:#fff5f7}.cturquoise .cert-frame{border-color:#1d9c9b;background:#f0ffff}.cmandala .cert-frame{border:14px double #bd8e2d;outline:2px dotted #bd8e2d}.cburgundy .cert-frame{background:#fff8f8;border-color:#762d43}.ccelestial .cert-frame{background:linear-gradient(145deg,#17294e,#3d4775);color:#fff;border-color:#c7b4e8}.cgrand .cert-frame{border:16px double #9b752b;background:linear-gradient(135deg,#fff9e8,#fff)}
@media(max-width:850px){.edu-layout{grid-template-columns:1fr}.edu-templates{grid-template-columns:repeat(3,minmax(0,1fr))}.edu-paper{min-height:600px;padding:22px}.edu-top{align-items:flex-start}.edu-lang{margin-left:auto}}@media(max-width:520px){.edu-grid{grid-template-columns:1fr}.edu-templates{grid-template-columns:repeat(2,minmax(0,1fr))}.edu-subrow{grid-template-columns:1fr 55px 65px 28px}.ms-summary{grid-template-columns:repeat(2,1fr)}.cert-frame{padding:40px 18px;min-height:580px}.cert-frame h1{font-size:22px}.cert-frame h2{font-size:24px}}
@media print{body *{visibility:hidden!important}#eduMaker,#eduMaker *{visibility:visible!important}#eduMaker{position:absolute;left:0;top:0;width:100%;margin:0}.edu-top,.edu-template-area,.edu-form,.edu-preview>h3{display:none!important}.edu-layout{display:block}.edu-preview{padding:0;border:0;background:white}.edu-paper{box-shadow:none;max-width:none;min-height:0;page-break-after:always}.edu-paper:last-child{page-break-after:auto}}
.folder-question{--fc:#126b91;--fb:#e9f8ff;--fa:#56b7d5}.folder-marksheet{--fc:#28724f;--fb:#edfff4;--fa:#80cda0}.folder-certificate{--fc:#a46a19;--fb:#fff8e9;--fa:#edc66b}
.qp-cover{min-height:690px;break-after:page;page-break-after:always;display:flex;flex-direction:column;justify-content:flex-start}.qp-cover .qp-sign{margin-top:auto;padding-top:35px}.qroyal .qp-cover{background:linear-gradient(150deg,#fff,#f1f5ff 60%,#e5ecf8)}.qemerald .qp-cover{border-radius:4px 28px 4px 28px;background:#f2fff8}.qcrimson .qp-cover{border-left:14px solid #9c3344;border-right:14px solid #9c3344}.qminimal .qp-cover{border-top:12px solid #333;border-bottom:2px solid #333}.qheritage .qp-cover{background:repeating-linear-gradient(45deg,#fffdf7,#fffdf7 12px,#f8f1df 13px)}.qgeo .qp-cover:before{content:"";display:block;height:12px;background:linear-gradient(90deg,#2259a5 25%,#f2b544 25% 50%,#1c9b89 50% 75%,#8a5eb5 75%)}.qwave .qp-cover{border-radius:55px 8px 55px 8px}.qgold .qp-cover{background:linear-gradient(135deg,#fffdf3,#f8efd4)}.qmono .qp-cover{background:linear-gradient(90deg,#fff 0 92%,#222 92%)}
.mblue .ms-table tbody tr:nth-child(even){background:#edf5ff}.memerald .ms-table tbody tr:nth-child(even){background:#eafff3}.msunrise .ms-table{border-top:5px solid #e58c43}.mpurple .ms-table th{background:#eee8fb;color:#49366e}.mcolumns .ms-table td:first-child{font-weight:800;letter-spacing:.3px}.maqua .ms-table th{border-color:#0a8890;background:#dff7f7}.mserif .ms-table{font-family:Georgia,serif}.mcoral .ms-table th{background:#ffeaeb}.mforest .ms-table th{background:#e5f1e8}.mmidnight .ms-summary div{background:#252c4a;color:#fff}.mlavender .ms-table th{background:#eee9fb}.mcobalt .ms-table{border:3px solid #1749a0}.mterra .ms-table th{background:#f4e6dd}.marctic .ms-table th{background:#e7eef2}.mruby .ms-summary div{border-radius:0 14px 0 14px;background:#fff0f3}.mmint .ms-table th{background:#e4f6ef}.msaffron .ms-table th{background:#fff2d8}.mocean .ms-summary div{background:#e3f4fa;border-bottom:3px solid #075b78}.mrose .ms-table th{background:#f9eaf0}.mgraphite .ms-table th{background:#333;color:white}.miris .ms-table th{background:#eeeafd}.mcopper .ms-table th{background:#f4e8dd}.mskyline .ms-table tbody tr:nth-child(odd){background:#f0f8fb}.mivory .ms-table{font-family:Georgia,serif;border:3px double #74664e}

/* V20 education makers redesign */
.edu-template .edu-swatch{height:32px;border-radius:4px}
.edu-template-area{overflow:hidden}
.edu-templates{grid-template-columns:repeat(5,minmax(0,1fr))}
.v-question-item{display:grid;grid-template-columns:25px 1fr auto;gap:8px;padding:12px 5px;border-bottom:1px dashed #aab7c5;font-size:12px;line-height:1.55}
.v-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px 16px;margin-top:8px;padding:8px;background:#f6f8fb;border-radius:6px}
.v-paragraph{margin:14px 0;padding:14px 18px;border-left:4px solid #467b9f;background:#f3f6f9;font-size:12px;line-height:1.7;white-space:pre-wrap}
.v-cover{min-height:640px;text-align:center;padding:28px;border:7px double var(--accent,#254e78);background:linear-gradient(145deg,#fff,#f6f8fc);position:relative}
.v-cover:before,.v-cover:after{content:"";position:absolute;width:75px;height:75px;border:2px solid var(--accent,#254e78);transform:rotate(45deg);opacity:.3}.v-cover:before{top:12px;left:12px}.v-cover:after{right:12px;bottom:12px}
.v-cover-brand{font-size:24px;font-weight:900;letter-spacing:1px;color:var(--accent,#254e78);margin:22px 0 12px}
.v-exam{font-size:17px;font-weight:800;padding:12px;border-block:2px solid var(--accent,#254e78)}
.v-roll{margin:20px auto;border:1px solid #657789;padding:10px;max-width:480px;font-weight:800;letter-spacing:2px}
.v-cover h1{font-size:32px;color:var(--accent,#254e78);margin:25px}
.v-meta{display:flex;justify-content:space-around;gap:10px;flex-wrap:wrap;border-block:1px solid #9eabb9;padding:12px;font-weight:700}
.v-cover h3{text-align:left;margin-top:25px}.v-cover p{text-align:left;white-space:pre-wrap;line-height:1.7}.v-sign{margin-top:55px;font-size:10px}
.v-inner{padding:24px 8px;min-height:550px}.v-inner header{display:flex;justify-content:space-between;border-bottom:3px solid var(--accent,#254e78);padding-bottom:12px;font-weight:800;font-size:12px}.v-inner h2{margin-top:24px;background:var(--pale,#eef3f8);padding:9px;color:var(--accent,#254e78)}
.v-total{text-align:right;margin-top:25px;font-weight:800}
.v-ms-head{text-align:center;padding:24px;background:var(--accent,#1c5680);color:white;border-bottom:8px solid var(--secondary,#d7b65c)}
.v-ms-head h1{font-size:25px}.v-ms-head h2{font-size:13px;letter-spacing:2px}
.v-ms-meta{display:flex;gap:12px;flex-wrap:wrap;padding:20px 4px;font-size:11px}
.v-ms-table{width:100%;border-collapse:collapse;font-size:12px}.v-ms-table th,.v-ms-table td{border:1px solid #b8c5d2;padding:11px}.v-ms-table th{background:var(--pale,#edf2f6);color:var(--accent,#244e72)}
.v-ms-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:9px;margin:22px 0}.v-ms-stats div{background:var(--pale,#eef3f8);padding:13px 7px;text-align:center;border-radius:7px;font-size:10px}.v-ms-stats b{display:block;font-size:17px;margin-top:7px;color:var(--accent,#244e72)}
.v-cert{width:1120px;max-width:100%;aspect-ratio:1.414/1;min-height:0;padding:0;display:flex;align-items:stretch;justify-content:center;background:#fff;box-shadow:0 6px 24px #102a4320}
.v-cert-border{position:relative;width:100%;min-height:0;aspect-ratio:1.414/1;padding:42px 65px;text-align:center;overflow:hidden;display:flex;flex-direction:column;align-items:center;justify-content:center;background:#fff}
.v-cert-border:before{content:"";position:absolute;inset:15px;border:7px double var(--accent,#a17b31);pointer-events:none}
.v-cert-border:after{content:"✦";position:absolute;top:25px;left:50%;transform:translateX(-50%);font-size:28px;color:var(--secondary,#c39a43)}
.v-cert-top{font-size:18px;font-weight:900;letter-spacing:2px;color:var(--accent,#9b762e);z-index:1}
.v-cert-top img{display:block;max-width:70px;max-height:48px;object-fit:contain;margin:0 auto 6px}
.v-cert-top small{display:block;letter-spacing:9px;margin-top:7px;color:var(--secondary,#c39a43)}
.v-cert-type{font-family:Georgia,serif;font-size:34px;font-weight:900;letter-spacing:3px;text-transform:uppercase;color:var(--accent,#9b762e);margin:12px 0 5px}
.v-cert-present{font-size:10px;letter-spacing:3px;text-transform:uppercase;margin:4px 0 8px}
.v-cert-photo{width:58px;height:58px;object-fit:cover;border-radius:50%;border:3px solid var(--secondary,#c39a43)}
.v-cert-border h1{font-family:Georgia,serif;font-size:34px;color:var(--accent,#9b762e);border-bottom:1px solid var(--secondary,#c39a43);padding:0 45px 8px;margin:5px 0}
.v-cert-copy{max-width:720px;font-size:13px;line-height:1.5;margin:8px auto}
.v-cert-border h2{font-size:16px;color:var(--accent,#9b762e);margin:5px}
.v-cert-id{font-size:9px;margin:6px}
.v-cert-sign{width:82%;display:flex;justify-content:space-between;margin-top:25px;font-size:10px}
.v-cert-sign b{display:block;margin-top:5px}.v-cert-seal{position:absolute;bottom:23px;left:50%;transform:translateX(-50%);color:var(--secondary,#c39a43);letter-spacing:8px}
.edu-paper.v-certificate{width:100%;max-width:1120px;min-height:0;padding:0;aspect-ratio:1.414/1}
.v-certificate .v-cert-border{height:100%}
/* Distinct composition, not palette-only variants */
.v-design-0{--accent:#173e68;--secondary:#c49b43;--pale:#eaf1f8}
.v-design-1{--accent:#263b50;--secondary:#b66e3b;--pale:#f5eee8}.v-design-1.v-certificate .v-cert-border:before{inset:24px;border:3px solid var(--accent);outline:2px solid var(--secondary);outline-offset:5px}.v-design-1.v-certificate .v-cert-type{font-family:Arial,sans-serif;letter-spacing:8px}
.v-design-2{--accent:#176b53;--secondary:#8fae72;--pale:#edf6ef}.v-design-2.v-certificate .v-cert-border:before{border:0;background:repeating-radial-gradient(circle at 0 0,transparent 0 14px,#d9eadc 15px 17px);clip-path:polygon(0 0,25% 0,25% 10%,75% 10%,75% 0,100% 0,100% 100%,75% 100%,75% 90%,25% 90%,25% 100%,0 100%)}
.v-design-3{--accent:#843b55;--secondary:#d8a95c;--pale:#f8edf1}.v-design-3.v-certificate .v-cert-border:after{content:"AWARD";top:50%;left:24px;transform:translateY(-50%) rotate(-90deg);border:3px double var(--secondary);padding:14px}
.v-design-4{--accent:#365c9a;--secondary:#53b6c5;--pale:#eaf5fa}.v-design-4.v-certificate .v-cert-border:before{border:0;background:linear-gradient(135deg,transparent 47%,#d8eaf3 48% 50%,transparent 51%),linear-gradient(45deg,transparent 47%,#d8eaf3 48% 50%,transparent 51%);background-size:40px 40px}
.v-design-5{--accent:#775b32;--secondary:#c5a96a;--pale:#f7f1e5}.v-design-5.v-certificate .v-cert-border{background:repeating-linear-gradient(0deg,#fffdf5,#fffdf5 4px,#f5eedf 5px)}
.v-design-6{--accent:#202e3a;--secondary:#7c9aa7;--pale:#edf1f3}.v-design-6.v-certificate .v-cert-border:before{inset:0;border:0;border-left:22px solid var(--accent);border-right:22px solid var(--accent)}
.v-design-7{--accent:#1b5c72;--secondary:#d0a44c;--pale:#e9f4f5}.v-design-7.v-certificate .v-cert-border:before{inset:25px;border:8px ridge var(--secondary);border-radius:45%}
.v-design-8{--accent:#641f39;--secondary:#d5b16c;--pale:#f5eaf0}.v-design-8.v-certificate .v-cert-border{background:linear-gradient(110deg,#fff 0 18%,#f4e8ed 18% 20%,#fff 20% 80%,#f4e8ed 80% 82%,#fff 82%)}
.v-design-9{--accent:#1e456b;--secondary:#e0bd60;--pale:#eef4fa}.v-design-9.v-certificate .v-cert-border:after{content:"✦　✦　✦";top:18px;font-size:24px}
.v-design-10{--accent:#8c5274;--secondary:#d6a7c4;--pale:#f8eef5}.v-design-10.v-certificate .v-cert-border{background:radial-gradient(ellipse at 0 0,#f6ddeb,transparent 32%),radial-gradient(ellipse at 100% 100%,#e6d9f4,transparent 35%),#fff}
.v-design-11{--accent:#365a42;--secondary:#b4a16a;--pale:#edf3eb}.v-design-11.v-certificate .v-cert-border:before{border:12px dotted var(--accent)}
.v-design-12{--accent:#171b25;--secondary:#c6a04c;--pale:#f2eee4}.v-design-12.v-certificate .v-cert-border{background:linear-gradient(135deg,#171b25,#34313a);color:#fff}.v-design-12.v-certificate .v-cert-type,.v-design-12.v-certificate h1,.v-design-12.v-certificate .v-cert-top{color:#e3c36e}
.v-design-13{--accent:#8c6ca5;--secondary:#c5a8dc;--pale:#f4eff9}.v-design-13.v-certificate .v-cert-border:before{border:0;background:radial-gradient(ellipse at top,#eadcf7,transparent 55%)}
.v-design-14{--accent:#245b91;--secondary:#80b3d7;--pale:#eaf3fa}.v-design-14.v-certificate .v-cert-border:before{border:16px double var(--accent);clip-path:polygon(0 0,90% 0,100% 15%,100% 100%,10% 100%,0 85%)}
.v-design-15{--accent:#145c66;--secondary:#c2a65e;--pale:#e8f4f3}.v-design-15.v-certificate .v-cert-border:after{content:"❧　❦　❧";top:25px;font-size:34px}
.v-design-16{--accent:#5b4b78;--secondary:#bba7d1;--pale:#f1edf7}.v-design-16.v-certificate .v-cert-border:before{border:8px groove var(--accent);border-radius:40px}
.v-design-17{--accent:#a64f28;--secondary:#e5b64c;--pale:#fbf0e3}.v-design-17.v-certificate .v-cert-border{background:radial-gradient(circle at center,#fff 35%,#fff0cf 100%)}
.v-design-18{--accent:#23617b;--secondary:#54a9c5;--pale:#e8f5fa}.v-design-18.v-certificate .v-cert-border:before{border:0;background:linear-gradient(45deg,transparent 48%,#d9eef4 49% 51%,transparent 52%);background-size:28px 28px}
.v-design-19{--accent:#75503c;--secondary:#c49b70;--pale:#f5eee7}.v-design-19.v-certificate .v-cert-border{background:linear-gradient(#fffdf8,#f2e6d5)}
.v-design-20{--accent:#176c8a;--secondary:#69bfd0;--pale:#e8f6fa}.v-design-20.v-certificate .v-cert-border:before{border:0;border-top:16px solid var(--accent);border-bottom:16px solid var(--accent)}
.v-design-21{--accent:#7b4b68;--secondary:#d1a3bf;--pale:#f7edf3}.v-design-21.v-certificate .v-cert-border:before{border:0;box-shadow:inset 0 0 0 5px var(--accent),inset 0 0 0 12px #fff,inset 0 0 0 16px var(--secondary)}
.v-design-22{--accent:#53606b;--secondary:#c4a86b;--pale:#eff1f2}.v-design-22.v-certificate .v-cert-border{background:linear-gradient(135deg,#f2f2f0,#fff,#e4e6e7)}
.v-design-23{--accent:#224f8b;--secondary:#9db8e3;--pale:#edf2fb}.v-design-23.v-certificate .v-cert-border:after{content:"◈";font-size:40px}
.v-design-24{--accent:#b44d52;--secondary:#e5a4a1;--pale:#fff0ef}.v-design-24.v-certificate .v-cert-border{background:radial-gradient(circle at 0 0,#ffe2df,transparent 35%),radial-gradient(circle at 100% 100%,#f9e4ee,transparent 35%),white}
.v-design-25{--accent:#8a6a24;--secondary:#d4b75c;--pale:#f8f3e2}.v-design-25.v-certificate .v-cert-border:before{border:12px double var(--secondary);outline:3px dashed var(--accent);outline-offset:-30px}
.v-design-26{--accent:#3c654d;--secondary:#a5c49a;--pale:#eff5ec}.v-design-26.v-certificate .v-cert-border:before{border:0;background:repeating-linear-gradient(45deg,transparent 0 15px,#e2eee0 16px 18px)}
.v-design-27{--accent:#4e5f9c;--secondary:#a9b5ed;--pale:#f0f1fc}.v-design-27.v-certificate .v-cert-border{background:radial-gradient(ellipse at 50% 0,#dce4ff,transparent 60%),#fff}
.v-design-28{--accent:#6f273f;--secondary:#d3b16a;--pale:#f7edf0}.v-design-28.v-certificate .v-cert-border:before{border:18px ridge var(--secondary)}
.v-design-29{--accent:#184d63;--secondary:#d0a64e;--pale:#eaf3f4}.v-design-29.v-certificate .v-cert-border:after{content:"★　★　★";top:auto;bottom:22px}
.edu-maker:has(.v-certificate) .edu-preview{overflow:auto}
@media(max-width:760px){.edu-layout{grid-template-columns:1fr}.edu-templates{grid-template-columns:repeat(3,minmax(0,1fr))}.v-cert-border{padding:26px 35px}.v-cert-type{font-size:23px}.v-cert-border h1{font-size:24px}.v-cert-copy{font-size:10px}.v-cert-sign{margin-top:12px}}
@media print{
 body.edu-printing .edu-top,body.edu-printing .edu-template-area,body.edu-printing .edu-form,body.edu-printing .edu-preview>h3{display:none!important}
 body.edu-printing #eduMaker{margin:0!important}
 body.edu-printing .edu-layout{display:block!important}
 body.edu-printing .edu-preview{padding:0!important;background:white!important;border:0!important;overflow:visible!important}
 body.edu-printing .edu-paper{box-shadow:none!important;margin:0 auto!important}
 body.edu-printing .edu-paper.v-certificate{width:100%!important;max-width:none!important;aspect-ratio:1.414/1!important}
 body.edu-printing .v-cert-border{width:100%!important;height:100%!important;aspect-ratio:1.414/1!important}
 body.edu-printing:has(.v-certificate){ }
}


/* ===== V20 COMPLETE EDUCATION MAKER UPDATE ===== */
.edu-top{box-shadow:0 12px 30px #102a4322;position:relative;overflow:hidden;min-height:118px}
.edu-top:after{content:"";position:absolute;width:230px;height:230px;border-radius:50%;right:-65px;top:-130px;background:#ffffff20;pointer-events:none}
.edu-top-question{background:linear-gradient(115deg,#253b16 0%,#648d1c 54%,#b5d83e 100%)}
.edu-top-marksheet{background:linear-gradient(115deg,#672333 0%,#a43e49 55%,#e19b69 100%)}
.edu-top-certificate{background:linear-gradient(115deg,#1c315f 0%,#405ca2 56%,#899fe4 100%)}
.edu-back{position:relative;z-index:1;white-space:nowrap;min-height:42px;box-shadow:0 3px 12px #071a3022}
.edu-heading,.edu-lang{position:relative;z-index:1}
.edu-template{transition:transform .16s ease,box-shadow .16s ease,border-color .16s ease;min-height:82px}
.edu-template:hover{transform:translateY(-2px);box-shadow:0 7px 18px #102a4317}
.edu-template.active{background:#f5faff;box-shadow:0 0 0 2px #176b9a22}
.edu-swatch{height:31px;position:relative;overflow:hidden}
.edu-swatch:after{content:"";position:absolute;inset:0;background:linear-gradient(135deg,transparent 35%,#ffffff55 36% 42%,transparent 43%),radial-gradient(circle at 85% 15%,#ffffff77 0 8%,transparent 9%)}
.edu-template:nth-child(3n+1) .edu-swatch{background:linear-gradient(120deg,#193d65,#2f9a9b)}
.edu-template:nth-child(3n+2) .edu-swatch{background:linear-gradient(120deg,#74304b,#d48b54)}
.edu-template:nth-child(3n) .edu-swatch{background:linear-gradient(120deg,#3d397c,#8d78cb)}
.edu-template:nth-child(4n) .edu-swatch{background:repeating-linear-gradient(45deg,#1c6171 0 8px,#3b9e9b 8px 16px)}
.edu-template:nth-child(5n) .edu-swatch{background:linear-gradient(90deg,#252b35 0 28%,#bd984e 28% 34%,#f5e9ce 34%)}
.edu-qrow{border-left:4px solid #75a72b;background:linear-gradient(110deg,#f8fbea,#fff 55%);box-shadow:0 3px 10px #233b1210}
.edu-qrow>label:first-child{font-size:12px;color:#263d18}
.edu-qrow textarea{min-height:76px}
.edu-option-grid{background:#f0f5fb;padding:9px;border-radius:10px}
.edu-option-grid label{background:white;border:1px solid #dbe4ee;border-radius:8px;padding:7px;margin:0}
.edu-option-grid label span{display:inline-flex;align-items:center;justify-content:center;min-width:22px;height:22px;border-radius:50%;background:#e7eef7;color:#244665;font-weight:900;margin-right:4px}
.edu-extra-options{display:flex;gap:10px;flex-wrap:wrap;margin:10px 0;padding:10px;background:#f2f7fb;border:1px solid #dce7f0;border-radius:10px}
.edu-form .edu-check{display:flex;align-items:center;gap:7px;margin:0;font-size:11px}
.edu-form .edu-check input{width:auto;margin:0}
.edu-paper.v-question{width:100%;max-width:794px;min-height:1123px;aspect-ratio:210/297;padding:26px 30px;box-sizing:border-box;border:1px solid #d7dfe8;background:#fff}
.v-qpaper{min-height:100%;color:#1e2b3b;font-family:Arial,sans-serif;font-size:12px}
.v-qpaper-head{border-bottom:3px solid var(--accent,#375c28);padding-bottom:12px}
.v-qschool{display:flex;align-items:center;justify-content:center;gap:14px;text-align:center}
.v-qschool img{max-width:58px;max-height:58px;object-fit:contain}
.v-qschool h1{font-size:20px;margin:0;color:var(--accent,#375c28);text-transform:uppercase}
.v-qschool p,.v-qpaper-title p{margin:4px 0;font-size:10px}
.v-qpaper-title{text-align:center;margin:12px 0 8px}
.v-qpaper-title h2{font-size:21px;letter-spacing:1px;margin:0;color:var(--accent,#375c28)}
.v-qpaper-meta{display:flex;justify-content:space-between;gap:6px;flex-wrap:wrap;padding:8px;background:var(--pale,#f1f5eb);font-size:10px}
.v-qroll{border:1px solid #718096;padding:7px;margin:10px 0;text-align:right;font-weight:700;letter-spacing:2px}
.v-qinstructions{padding:8px 10px;background:#f7f8fa;border-left:3px solid var(--secondary,#9bbd42);margin:8px 0}
.v-qinstructions p{margin:4px 0;white-space:pre-line}
.v-question-section{margin:12px 0}
.v-question-section>h3{display:flex;justify-content:space-between;background:var(--pale,#edf4e5);color:var(--accent,#375c28);padding:7px 9px;font-size:13px;margin:0 0 5px;border-left:4px solid var(--secondary,#9bbd42)}
.v-question-section>h3 small{font-size:10px}
.v-question-item{display:grid;grid-template-columns:24px minmax(0,1fr) auto;gap:7px;padding:8px 3px;border-bottom:1px dotted #c4ccd5;break-inside:avoid}
.v-question>strong{white-space:nowrap;font-size:10px}
.v-options{display:grid;grid-template-columns:1fr 1fr;gap:5px 14px;padding:7px 0 2px}
.v-options span{display:block;min-width:0}
.v-answer-lines{color:#a2aab3;font-size:10px;line-height:2;margin-top:6px;overflow-wrap:anywhere}
.v-paragraph{padding:9px;margin:7px 0;background:#fafafa;border:1px dashed #b7c1cc;break-inside:avoid}
.v-paragraph p{margin:5px 0;white-space:pre-wrap}
.v-qpaper-total{text-align:right;font-weight:800;padding:10px;border-top:2px solid var(--accent,#375c28);margin-top:12px}
.v-qpaper-sign{display:flex;justify-content:space-between;gap:10px;font-size:10px;margin-top:18px;flex-wrap:wrap}
.v-answer-key{border-top:2px dashed var(--secondary,#9bbd42);margin-top:20px;padding-top:10px;break-before:page}
.v-answer-key h2{color:var(--accent,#375c28)}
/* Ten distinct question-paper compositions */
.v-question.v-design-0{--accent:#244d72;--secondary:#c49b43;--pale:#eaf1f8;border-top:9px double #244d72}
.v-question.v-design-1{--accent:#762f43;--secondary:#d49a55;--pale:#f8edf0;border-left:10px solid #762f43}
.v-question.v-design-2{--accent:#176b53;--secondary:#8fae72;--pale:#edf6ef;background:linear-gradient(145deg,#fff,#f5fbf5)}
.v-question.v-design-3{--accent:#6d3c83;--secondary:#c58bd2;--pale:#f5eef9;border:5px double #8c5aa3}
.v-question.v-design-4{--accent:#263747;--secondary:#7e9eae;--pale:#eef2f4;font-family:Georgia,serif}
.v-question.v-design-5{--accent:#9a4a25;--secondary:#e2ae55;--pale:#fff3e7;border-top:16px solid #9a4a25}
.v-question.v-design-6{--accent:#175f83;--secondary:#58b8c6;--pale:#eaf8fb;background:repeating-linear-gradient(0deg,#fff,#fff 29px,#f1f7fa 30px)}
.v-question.v-design-7{--accent:#4e4a87;--secondary:#a9a4db;--pale:#f0effb;border-radius:20px}
.v-question.v-design-8{--accent:#5b6330;--secondary:#c4b45c;--pale:#f7f7e9;border:8px ridge #a3a45d}
.v-question.v-design-9{--accent:#252a31;--secondary:#8d969e;--pale:#f0f1f2;filter:grayscale(.15)}
.edu-paper.v-marksheet{width:100%;max-width:794px;min-height:1123px;aspect-ratio:210/297;padding:0;box-sizing:border-box}
.v-ms-page{box-sizing:border-box;min-height:1123px;height:100%;padding:34px 38px;display:flex;flex-direction:column;position:relative;overflow:hidden}
.v-ms-head{text-align:center;padding:24px 16px;background:var(--accent,#174b83);color:#fff;border-bottom:8px solid var(--secondary,#c49b43)}
.v-ms-head h1{font-size:24px;margin:7px 0;text-transform:uppercase}.v-ms-head h2{font-size:13px;letter-spacing:2px;margin:4px 0}
.v-ms-meta{display:grid;grid-template-columns:1fr 1fr;gap:9px 18px;padding:18px 5px;font-size:11px;border-bottom:1px solid #cbd5df}
.v-ms-table{width:100%;border-collapse:collapse;font-size:12px;margin-top:16px}.v-ms-table th,.v-ms-table td{border:1px solid #b8c5d2;padding:10px;text-align:left}.v-ms-table th{background:var(--pale,#edf2f6);color:var(--accent,#244e72)}
.v-ms-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin:22px 0}.v-ms-stats div{background:var(--pale,#eef3f8);padding:13px 7px;text-align:center;border-radius:7px;font-size:10px}.v-ms-stats b{display:block;font-size:17px;margin-top:7px;color:var(--accent,#244e72)}
.v-ms-note{padding:10px;margin-top:10px;background:var(--pale,#edf2f6);color:var(--accent,#244e72);font-weight:700}
.v-ms-extra{display:flex;justify-content:space-between;gap:8px;flex-wrap:wrap;margin-top:12px;padding:9px;background:#f7f8fa;font-size:10px}
.v-ms-page footer{margin-top:auto;padding-top:48px;display:flex;justify-content:space-between;gap:15px;font-size:10px;border-top:1px solid #ccd4dc}
.v-ms-page.ms-primary{--accent:#28745b;--secondary:#9acb72;--pale:#eff8e9;background:linear-gradient(160deg,#fff 65%,#f1f9e9)}
.v-ms-page.ms-secondary{--accent:#214e7c;--secondary:#d2a64a;--pale:#eaf1f8}
.v-ms-page.ms-higher{--accent:#6c345c;--secondary:#d1a1b9;--pale:#f8edf4;background:linear-gradient(120deg,#fff,#fff8fc)}
.v-ms-page.ms-college{--accent:#28314f;--secondary:#b9a16a;--pale:#eef0f6;background:linear-gradient(135deg,#fff,#f2f2f7)}
.v-ms-page.ms-semester .v-ms-table th{background:#e7eaf4;border-bottom:3px solid var(--secondary)}
/* Each marksheet template has its own structural treatment */
.v-marksheet.v-design-0 .v-ms-head{border-radius:0 0 24px 24px}.v-marksheet.v-design-1 .v-ms-head{border-left:14px solid #8ac69b;text-align:left}
.v-marksheet.v-design-2 .v-ms-head{clip-path:polygon(0 0,100% 0,100% 85%,50% 100%,0 85%)}.v-marksheet.v-design-3 .v-ms-table td:nth-child(odd){background:#f8f4ff}
.v-marksheet.v-design-4 .v-ms-head{background:#333!important;color:#fff}.v-marksheet.v-design-5 .v-ms-head{border:5px double #168b91}
.v-marksheet.v-design-6 .v-ms-page{font-family:Georgia,serif}.v-marksheet.v-design-7 .v-ms-head{border-radius:45px 0 45px 0}
.v-marksheet.v-design-8 .v-ms-table th{writing-mode:horizontal-tb;background:#fcefe8}.v-marksheet.v-design-9 .v-ms-head{background:linear-gradient(110deg,#171c36,#4d527c)}
.v-marksheet.v-design-10 .v-ms-page{background:linear-gradient(135deg,#fff,#f6efff)}.v-marksheet.v-design-11 .v-ms-head{border-bottom:14px double #b6a56c}
.v-marksheet.v-design-12 .v-ms-table tr:nth-child(even){background:#fff4ef}.v-marksheet.v-design-13 .v-ms-head{border-radius:0 0 55px 55px}
.v-marksheet.v-design-14 .v-ms-page{border-left:18px solid #245b91}.v-marksheet.v-design-15 .v-ms-table{border:4px double #3c8878}
.v-marksheet.v-design-16 .v-ms-head{background:linear-gradient(120deg,#a66a12,#e0b54b)}.v-marksheet.v-design-17 .v-ms-head{background:linear-gradient(120deg,#075b78,#2c9db1)}
.v-marksheet.v-design-18 .v-ms-page{border:8px double #a85e7c}.v-marksheet.v-design-19 .v-ms-head{background:#34383d}
.v-marksheet.v-design-20 .v-ms-head{border-top:14px solid #51458b}.v-marksheet.v-design-21 .v-ms-table th{background:#f5e9df;border-color:#98613d}
.v-marksheet.v-design-22 .v-ms-page{background:linear-gradient(160deg,#fff,#edf8fc)}.v-marksheet.v-design-23 .v-ms-head{background:#74664e;border:8px ridge #d5c49b}
/* Certificate full A4 landscape with all content constrained inside the frame */
.edu-paper.v-certificate{width:100%;max-width:1120px;min-height:0;height:auto;aspect-ratio:297/210;padding:0;box-sizing:border-box;overflow:hidden}
.v-certificate .v-cert-border{box-sizing:border-box;width:100%;height:100%;min-height:0;aspect-ratio:297/210;padding:clamp(20px,4.2%,52px) clamp(28px,6%,72px);gap:clamp(3px,1.1%,12px);overflow:hidden;justify-content:center}
.v-cert-top{font-size:clamp(12px,1.6vw,18px);line-height:1.15;max-width:90%;overflow-wrap:anywhere}
.v-cert-top img{max-width:clamp(34px,5vw,64px);max-height:clamp(26px,5vw,48px)}
.v-cert-type{font-size:clamp(20px,3.2vw,34px);line-height:1.08;margin:4px 0;overflow-wrap:anywhere}
.v-cert-present{font-size:clamp(8px,1vw,10px);line-height:1.25;margin:2px 0}
.v-cert-photo{width:clamp(34px,5.4vw,58px);height:clamp(34px,5.4vw,58px);flex:0 0 auto}
.v-cert-border h1{font-size:clamp(22px,3.2vw,34px);line-height:1.12;max-width:90%;padding:0 12px 5px;overflow-wrap:anywhere}
.v-cert-copy{font-size:clamp(9px,1.25vw,13px);line-height:1.3;max-width:82%;max-height:3.9em;overflow:hidden;overflow-wrap:anywhere;margin:3px auto}
.v-cert-border h2{font-size:clamp(11px,1.6vw,16px);line-height:1.2;max-width:90%;overflow-wrap:anywhere}
.v-cert-id,.v-cert-extra{font-size:clamp(7px,.9vw,9px);line-height:1.2;max-width:90%;overflow-wrap:anywhere}
.v-cert-sign{width:82%;margin-top:clamp(6px,1.6%,18px);font-size:clamp(8px,1vw,10px);gap:18px;justify-content:space-between}
.v-cert-sign span{min-width:0;max-width:46%;overflow-wrap:anywhere}.v-cert-sign b{line-height:1.15}
.v-cert-seal{bottom:clamp(10px,2%,22px);font-size:clamp(10px,1.7vw,18px)}
.v-design-0.v-certificate .v-cert-border{background:linear-gradient(135deg,#fffdf5,#fff)}
.v-design-2.v-certificate .v-cert-border{border-radius:0 36px 0 36px}
.v-design-4.v-certificate .v-cert-border{background:repeating-linear-gradient(0deg,#fff,#fff 25px,#f3f7fb 26px)}
.v-design-6.v-certificate .v-cert-border{border-left:22px solid #ce789b;border-right:22px solid #ce789b}
.v-design-8.v-certificate .v-cert-border{background:linear-gradient(90deg,#fff 0 12%,#f5e7ed 12% 14%,#fff 14% 86%,#f5e7ed 86% 88%,#fff 88%)}
.v-design-10.v-certificate .v-cert-border{border-radius:50px 0 50px 0}
.v-design-12.v-certificate .v-cert-border{background:linear-gradient(135deg,#171b25,#34313a);color:#fff}
.v-design-14.v-certificate .v-cert-border{border:10px solid transparent;border-image:linear-gradient(45deg,#e85d75,#6a5acd,#20a6a6) 1}
.v-design-16.v-certificate .v-cert-border{background:repeating-linear-gradient(45deg,#fff,#fff 18px,#f0f7f5 19px)}
.v-design-18.v-certificate .v-cert-border{border-radius:0 48px 0 48px}
.v-design-20.v-certificate .v-cert-border{border-top:18px solid #176c8a;border-bottom:18px solid #176c8a}
.v-design-22.v-certificate .v-cert-border{background:linear-gradient(135deg,#f2f2f0,#fff,#e4e6e7)}
.v-design-24.v-certificate .v-cert-border{background:radial-gradient(circle at 0 0,#ffe2df,transparent 35%),radial-gradient(circle at 100% 100%,#f9e4ee,transparent 35%),#fff}
.v-design-26.v-certificate .v-cert-border{border:14px double #bd8e2d;outline:2px dotted #bd8e2d;outline-offset:-25px}
.v-design-28.v-certificate .v-cert-border{border:16px ridge #9b752b}
@media(max-width:760px){.edu-paper.v-question,.edu-paper.v-marksheet{min-height:0;aspect-ratio:auto}.v-ms-page{min-height:0;height:auto;padding:24px 18px}.v-ms-stats{grid-template-columns:repeat(2,1fr)}.v-ms-meta{grid-template-columns:1fr}.v-cert-border{padding:18px 24px}.v-cert-type{font-size:22px}.v-cert-border h1{font-size:24px}.v-cert-copy{font-size:10px}.v-cert-sign{margin-top:8px}}
@media print{
 @page{size:A4 portrait;margin:0}
 body.edu-printing #eduMaker{position:absolute!important;inset:0!important;width:100%!important;margin:0!important;padding:0!important}
 body.edu-printing .edu-layout{display:block!important}
 body.edu-printing .edu-preview{padding:0!important;margin:0!important;background:#fff!important;border:0!important;overflow:visible!important}
 body.edu-printing .edu-paper{max-width:none!important;box-shadow:none!important;margin:0!important;border:0!important}
 body.edu-printing .edu-paper.v-question{width:210mm!important;min-height:297mm!important;height:auto!important;padding:12mm!important;aspect-ratio:auto!important;overflow:visible!important}
 body.edu-printing .edu-paper.v-marksheet{width:210mm!important;height:297mm!important;min-height:297mm!important;aspect-ratio:auto!important;padding:0!important;overflow:hidden!important}
 body.edu-printing .v-ms-page{height:297mm!important;min-height:297mm!important;padding:12mm!important;overflow:hidden!important}
 body.edu-printing .edu-paper.v-certificate{width:297mm!important;height:210mm!important;min-height:210mm!important;aspect-ratio:auto!important;padding:0!important;overflow:hidden!important}
 body.edu-printing .v-cert-border{width:297mm!important;height:210mm!important;min-height:210mm!important;aspect-ratio:auto!important;overflow:hidden!important;box-sizing:border-box!important}
 body.edu-printing .v-answer-key{break-before:page}
 body.edu-printing .v-question-item,body.edu-printing .v-paragraph{break-inside:avoid}
}

/* Examination type changes also produce distinct report structures */
.v-ms-page.exam-unit .v-ms-head{padding:15px 12px;border-bottom-width:4px}.v-ms-page.exam-unit .v-ms-table{font-size:11px}.v-ms-page.exam-unit .v-ms-table th,.v-ms-page.exam-unit .v-ms-table td{padding:7px}
.v-ms-page.exam-halfyear .v-ms-head{border-left:12px solid var(--secondary);border-right:12px solid var(--secondary)}.v-ms-page.exam-halfyear .v-ms-stats{border:1px dashed var(--secondary);padding:8px}
.v-ms-page.exam-annual .v-ms-head{border-bottom-width:12px}.v-ms-page.exam-semester .v-ms-head{border-radius:0 0 34px 34px}.v-ms-page.exam-honours .v-ms-head{background:linear-gradient(120deg,#252d4d,#67558d)!important;border:8px double #b9a36c}
.edu-sub-head{display:grid;grid-template-columns:minmax(0,1fr) 70px 70px 30px;gap:5px;padding:7px 5px;background:#eaf0f6;border-radius:7px;color:#40576e;font-size:10px;font-weight:900}
.edu-subrow input{font-size:11px!important;padding:8px!important}
@media(max-width:520px){.edu-sub-head{grid-template-columns:minmax(0,1fr) 55px 65px 28px;font-size:9px}}

/* V20 follow-up: remove the shared invoice hero only while one of the three education makers is open. */
body.edu-maker-open #suiteHero-invoice,
body.edu-maker-open .invoice-work-heading{display:none!important}

/* Dedicated A4 question-paper pagination: one instruction cover, then question pages. */
.edu-paper.v-question{width:100%;max-width:794px;min-height:0;height:auto;aspect-ratio:auto;padding:0;border:0;box-shadow:none;background:transparent;display:flex;flex-direction:column;gap:14px;overflow:visible}
.edu-a4-page{position:relative;box-sizing:border-box;width:100%;max-width:794px;aspect-ratio:210/297;min-height:0;height:auto;margin:0 auto;background:#fff;color:#172638;overflow:hidden;padding:42px 48px;box-shadow:0 4px 22px #14283a18;break-after:page;page-break-after:always}
.edu-a4-page:last-child{break-after:auto;page-break-after:auto}
.qp-cover-page{display:flex;align-items:stretch;justify-content:center}
.qp-cover-inner{position:relative;display:flex;flex-direction:column;align-items:stretch;width:100%;height:100%;padding:30px 30px 38px;box-sizing:border-box;border:5px double var(--qp-accent,#244d72)}
.qp-cover-brand{display:flex;align-items:center;justify-content:center;gap:15px;text-align:center;min-height:90px}
.qp-cover-brand img{max-width:64px;max-height:64px;object-fit:contain}
.qp-cover-brand h1{font-size:22px;line-height:1.2;margin:0;text-transform:uppercase;color:var(--qp-accent,#244d72)}
.qp-cover-brand p{font-size:12px;margin:6px 0}
.qp-cover-rule{height:3px;background:var(--qp-accent,#244d72);margin:15px 0}
.qp-cover-title{text-align:center;margin:22px 0}
.qp-cover-title small{font-size:11px;letter-spacing:4px;font-weight:900;color:var(--qp-accent,#244d72)}
.qp-cover-title h2{font-size:29px;line-height:1.2;margin:12px 0;color:var(--qp-accent,#244d72)}
.qp-cover-title p{font-size:13px;margin:0}
.qp-cover-meta{display:grid;grid-template-columns:repeat(4,1fr);gap:7px;margin:12px 0}
.qp-cover-meta span{border:1px solid #aab5c1;padding:10px 5px;text-align:center;font-size:11px;overflow-wrap:anywhere}
.qp-cover-meta b{display:block;font-size:9px;text-transform:uppercase;margin-bottom:5px;color:#526477}
.qp-cover-instructions{margin:22px 0 12px;padding:15px 18px;border:1px solid #aab5c1;min-height:150px}
.qp-cover-instructions h3{margin:0 0 10px;font-size:14px;text-transform:uppercase;color:var(--qp-accent,#244d72)}
.qp-cover-instructions ol{margin:0;padding-left:20px;font-size:11px;line-height:1.8}
.qp-cover-candidate{display:flex;justify-content:space-between;gap:15px;margin-top:auto;padding:12px 0;border-top:1px solid #8c99a7;font-size:10px}
.qp-cover-foot{display:flex;justify-content:space-between;align-items:flex-start;gap:10px;margin-top:14px;margin-bottom:8px;padding:10px 10px 8px;border-top:2px solid var(--qp-accent,#244d72);font-size:9px;line-height:1.45;box-sizing:border-box;position:relative;z-index:2;overflow-wrap:anywhere}
.qp-running-head{display:flex;justify-content:space-between;align-items:center;gap:15px;padding-bottom:9px;border-bottom:2px solid var(--qp-accent,#244d72);font-size:11px}
.qp-running-head div{display:flex;flex-direction:column;gap:4px;min-width:0}.qp-running-head span{font-size:9px;color:#536477}.qp-running-head strong{font-size:13px;text-align:right}
.qp-page-meta{display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap;padding:8px 0;border-bottom:1px solid #aab5c1;font-size:9px}
.v-question-section{margin:10px 0 14px}
.v-question-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:20px;row-gap:8px;align-items:start}
.v-question-section>h3{grid-column:1/-1}
.v-question-item{grid-template-columns:20px minmax(0,1fr) auto;gap:5px;padding:7px 3px;font-size:10px;min-width:0;break-inside:avoid;page-break-inside:avoid}
.v-question-item:not(.is-mcq){grid-column:1/-1}
.v-question-item.is-mcq{grid-column:span 1;border-bottom:1px dotted #aeb8c2}
.v-question-body{min-width:0;overflow-wrap:anywhere;line-height:1.4}
.v-options{grid-template-columns:1fr 1fr;gap:4px 8px;font-size:9px}
.v-q-number,.v-q-marks{font-size:9px;white-space:nowrap}
.v-paragraph{grid-column:1/-1;font-size:10px}
.qp-running-foot{position:absolute;left:48px;right:48px;bottom:24px;display:flex;justify-content:space-between;gap:10px;align-items:center;padding-top:8px;border-top:1px solid #9aa7b4;font-size:9px;background:#fff}
.qp-answer-page ol{font-size:12px;line-height:2}
/* Ten separate monochrome page-border treatments. */
.qp-border-0 .qp-cover-inner,.qp-border-0{--qp-accent:#244d72}.qp-border-1 .qp-cover-inner{border:8px solid #762f43;outline:1px solid #762f43;outline-offset:-14px;--qp-accent:#762f43}
.qp-border-2 .qp-cover-inner{border:3px solid #176b53;outline:1px dashed #176b53;outline-offset:-10px;--qp-accent:#176b53}
.qp-border-3 .qp-cover-inner{border:9px double #6d3c83;--qp-accent:#6d3c83}
.qp-border-4 .qp-cover-inner{border:2px solid #263747;box-shadow:inset 0 0 0 7px #fff,inset 0 0 0 9px #263747;--qp-accent:#263747}
.qp-border-5 .qp-cover-inner{border:12px ridge #9a4a25;--qp-accent:#9a4a25}
.qp-border-6 .qp-cover-inner{border:4px dashed #175f83;--qp-accent:#175f83}
.qp-border-7 .qp-cover-inner{border:7px groove #4e4a87;--qp-accent:#4e4a87}
.qp-border-8 .qp-cover-inner{border:5px inset #5b6330;outline:2px dotted #5b6330;outline-offset:-13px;--qp-accent:#5b6330}
.qp-border-9 .qp-cover-inner{border:2px solid #252a31;box-shadow:inset 0 0 0 3px #fff,inset 0 0 0 5px #252a31,inset 0 0 0 8px #fff,inset 0 0 0 9px #252a31;--qp-accent:#252a31}
.edu-actions{display:flex;gap:7px;flex-wrap:wrap}
.edu-actions button{border:0;border-radius:9px;padding:10px 12px;color:#fff;font-size:11px;font-weight:900;cursor:pointer;min-height:40px}
.edu-actions button:disabled{opacity:.6;cursor:wait}
.edu-pdf{background:#c83232}.edu-jpg{background:#21864b}
/* Compact 5 x 5 marksheet template selector. */
.edu-maker:has(.v-marksheet) .edu-templates{grid-template-columns:repeat(5,minmax(0,1fr));gap:5px}
.edu-maker:has(.v-marksheet) .edu-template{min-height:58px;padding:4px;border-radius:7px}
.edu-maker:has(.v-marksheet) .edu-template .edu-swatch{height:15px;margin-bottom:3px}
.edu-maker:has(.v-marksheet) .edu-template strong{font-size:8px;line-height:1.15}
.edu-maker:has(.v-marksheet) .edu-template small{font-size:7px}
.edu-assess-help{font-size:10px;color:#5e6d7c;margin:4px 0 8px}
.edu-subrow-assess{display:grid;grid-template-columns:minmax(90px,1.3fr) 65px repeat(6,minmax(50px,1fr)) 42px 24px;gap:4px;align-items:end;overflow-x:auto;padding:7px 0;border-bottom:1px solid #e1e7ed}
.edu-subrow-assess>input{min-width:80px}
.edu-subrow-assess label{font-size:8px!important;min-width:0;margin:0!important}
.edu-subrow-assess label input{padding:6px 4px!important;font-size:10px!important}
.edu-subrow-assess .edu-assess-total{font-size:10px;padding:8px 2px;text-align:center}
.edu-sub-head-assess{display:grid;grid-template-columns:minmax(90px,1.3fr) 65px repeat(6,minmax(50px,1fr)) 42px 24px;gap:4px;min-width:650px}
#vSubjects{overflow-x:auto}
/* Formal monochrome marksheets: template identity is in border geometry, not colorful fills. */
.edu-paper.v-marksheet{width:100%;max-width:794px;height:auto;min-height:0;aspect-ratio:210/297;padding:0;background:#fff;box-shadow:none;overflow:visible}
.v-ms-page{width:100%;height:100%;min-height:1123px;padding:42px 38px;background:#fff!important;color:#111!important;border:4px double #222;box-sizing:border-box;overflow:hidden}
.v-ms-head{background:#fff!important;color:#111!important;border:0!important;border-bottom:2px solid #222!important;border-radius:0!important;padding:16px 10px!important;text-align:center}
.v-ms-head h1,.v-ms-head h2,.v-ms-head small{color:#111!important}
.v-ms-head h1{font-family:Georgia,serif;font-size:22px;letter-spacing:.4px}
.v-ms-head h2{font-size:12px;letter-spacing:1px}
.v-ms-meta{border-bottom:1px solid #333;color:#111;padding:14px 4px;font-size:10px}
.v-ms-table{font-size:10px;margin-top:12px}
.v-ms-table th,.v-ms-table td{background:#fff!important;color:#111!important;border:1px solid #333!important;padding:7px 6px}
.v-ms-table th{font-weight:800;text-align:center}
.v-ms-stats{gap:5px;margin:14px 0;border:1px solid #333;padding:7px}
.v-ms-stats div{background:#fff!important;border:1px solid #777;border-radius:0;color:#111;padding:8px 4px}
.v-ms-stats b{font-size:13px;color:#111!important}
.v-ms-note,.v-ms-extra{background:#fff!important;color:#111!important;border:0;border-top:1px solid #777;border-bottom:1px solid #777;padding:7px;font-size:9px}
.v-ms-page footer{margin-top:auto;padding-top:35px;border-top:1px solid #333;color:#111;font-size:9px}
.v-ms-qr{margin:12px 0 0 auto;width:86px;text-align:center;display:flex;flex-direction:column;align-items:center;gap:3px;font-size:7px;color:#111;break-inside:avoid}
.v-ms-qr img{width:68px;height:68px;object-fit:contain;image-rendering:pixelated}
.edu-paper.v-marksheet.v-design-0 .v-ms-page{border:5px double #222}
.edu-paper.v-marksheet.v-design-1 .v-ms-page{border:3px solid #222;outline:1px solid #222;outline-offset:-9px}
.edu-paper.v-marksheet.v-design-2 .v-ms-page{border:2px solid #222;box-shadow:inset 0 0 0 5px #fff,inset 0 0 0 6px #222}
.edu-paper.v-marksheet.v-design-3 .v-ms-page{border:8px ridge #222}
.edu-paper.v-marksheet.v-design-4 .v-ms-page{border:4px dashed #222}
.edu-paper.v-marksheet.v-design-5 .v-ms-page{border:1px solid #222;outline:3px double #222;outline-offset:-12px}
.edu-paper.v-marksheet.v-design-6 .v-ms-page{border:6px groove #222}
.edu-paper.v-marksheet.v-design-7 .v-ms-page{border:4px inset #222}
.edu-paper.v-marksheet.v-design-8 .v-ms-page{border:3px dotted #222;outline:1px solid #222;outline-offset:-8px}
.edu-paper.v-marksheet.v-design-9 .v-ms-page{border-left:12px double #222;border-right:2px solid #222;border-top:2px solid #222;border-bottom:2px solid #222}
.edu-paper.v-marksheet.v-design-10 .v-ms-page{border:7px double #222}
.edu-paper.v-marksheet.v-design-11 .v-ms-page{border:5px groove #222;outline:1px dotted #222;outline-offset:-13px}
.edu-paper.v-marksheet.v-design-12 .v-ms-page{border:2px solid #222;box-shadow:inset 0 0 0 2px #fff,inset 0 0 0 4px #222,inset 0 0 0 7px #fff,inset 0 0 0 8px #222}
.edu-paper.v-marksheet.v-design-13 .v-ms-page{border:9px ridge #222}
.edu-paper.v-marksheet.v-design-14 .v-ms-page{border-top:10px double #222;border-bottom:10px double #222;border-left:2px solid #222;border-right:2px solid #222}
.edu-paper.v-marksheet.v-design-15 .v-ms-page{border:4px outset #222}
.edu-paper.v-marksheet.v-design-16 .v-ms-page{border:3px dashed #222;outline:3px solid #222;outline-offset:-12px}
.edu-paper.v-marksheet.v-design-17 .v-ms-page{border:6px double #222;border-radius:0}
.edu-paper.v-marksheet.v-design-18 .v-ms-page{border:2px solid #222;box-shadow:inset 0 0 0 8px #fff,inset 0 0 0 10px #222}
.edu-paper.v-marksheet.v-design-19 .v-ms-page{border:8px inset #222}
.edu-paper.v-marksheet.v-design-20 .v-ms-page{border-left:16px double #222;border-top:3px solid #222;border-right:3px solid #222;border-bottom:3px solid #222}
.edu-paper.v-marksheet.v-design-21 .v-ms-page{border:4px double #222;outline:2px dashed #222;outline-offset:-15px}
.edu-paper.v-marksheet.v-design-22 .v-ms-page{border:5px solid #222;box-shadow:inset 0 0 0 3px #fff,inset 0 0 0 4px #222}
.edu-paper.v-marksheet.v-design-23 .v-ms-page{border:10px ridge #222}
.edu-paper.v-marksheet.v-design-24 .v-ms-page{border:2px solid #222;box-shadow:inset 0 0 0 4px #fff,inset 0 0 0 5px #222,inset 0 0 0 9px #fff,inset 0 0 0 10px #222}
/* A4 landscape certificate output and overflow-safe content box. */
.edu-paper.v-certificate{width:100%;max-width:1120px;height:auto;min-height:0;aspect-ratio:297/210;overflow:hidden}
.v-certificate .v-cert-border{width:100%;height:100%;min-height:0;aspect-ratio:297/210;box-sizing:border-box;overflow:hidden}
@media(max-width:760px){.edu-a4-page{padding:5.5%;}.qp-cover-inner{padding:6% 6% 8%;}.qp-cover-title h2{font-size:clamp(16px,4vw,29px)}.qp-cover-meta span{font-size:8px;padding:6px 2px}.qp-cover-instructions{margin:3% 0;padding:3%;min-height:0}.qp-cover-instructions ol{font-size:8px;line-height:1.5}.qp-running-foot{left:5.5%;right:5.5%;bottom:3%;}.v-ms-page{min-height:1123px;height:100%;padding:5.5% 4.8%}.edu-maker:has(.v-marksheet) .edu-template{min-height:52px}.edu-subrow-assess{min-width:650px}}
@media print{
 @page{size:A4 portrait;margin:0}
 body.edu-printing #eduMaker{position:static!important;inset:auto!important;width:100%!important;margin:0!important;padding:0!important}
 body.edu-printing .edu-top,body.edu-printing .edu-template-area,body.edu-printing .edu-form,body.edu-printing .edu-preview>h3{display:none!important}
 body.edu-printing .edu-layout{display:block!important}
 body.edu-printing .edu-preview{display:block!important;padding:0!important;margin:0!important;border:0!important;background:#fff!important;overflow:visible!important}
 body.edu-printing .edu-paper{display:block!important;width:100%!important;max-width:none!important;min-height:0!important;height:auto!important;padding:0!important;margin:0!important;box-shadow:none!important;overflow:visible!important;aspect-ratio:auto!important}
 body.edu-printing .edu-paper.v-question{display:block!important}
 body.edu-printing .edu-a4-page{width:210mm!important;height:297mm!important;min-height:297mm!important;max-width:none!important;aspect-ratio:auto!important;margin:0!important;padding:10mm!important;box-shadow:none!important;overflow:hidden!important;break-after:page!important;page-break-after:always!important}
 body.edu-printing .edu-a4-page:last-child{break-after:auto!important;page-break-after:auto!important}
 body.edu-printing .qp-cover-inner{height:100%!important}
 body.edu-printing .qp-running-foot{left:10mm!important;right:10mm!important;bottom:7mm!important}
 body.edu-printing .v-ms-page{width:210mm!important;height:297mm!important;min-height:297mm!important;padding:12mm!important;overflow:hidden!important;break-after:page!important;page-break-after:always!important}
 body.edu-printing .edu-paper.v-certificate{width:297mm!important;height:210mm!important;min-height:210mm!important;aspect-ratio:auto!important;overflow:hidden!important}
 body.edu-printing .v-cert-border{width:297mm!important;height:210mm!important;min-height:210mm!important;aspect-ratio:auto!important;overflow:hidden!important;box-sizing:border-box!important}
}
/* A4 preview scaling: retain page proportions on narrow mobile screens. */
.edu-paper.v-marksheet{aspect-ratio:210/297!important;height:auto!important}
.v-ms-page{min-height:0!important;height:100%!important}
.edu-maker:has(.v-marksheet) .edu-swatch{background:#fff!important;border:1px solid #333!important;border-radius:2px!important}
.edu-maker:has(.v-marksheet) .edu-template:nth-child(3n) .edu-swatch{border-style:double!important}
.edu-maker:has(.v-marksheet) .edu-template:nth-child(3n+1) .edu-swatch{border-style:solid!important}
.edu-maker:has(.v-marksheet) .edu-template:nth-child(3n+2) .edu-swatch{border-style:dashed!important}
.v-ms-table{table-layout:fixed;overflow-wrap:anywhere}
.v-ms-table th,.v-ms-table td{font-size:8px;padding:5px 3px!important}
@media print{body.edu-printing .v-ms-page{height:297mm!important;min-height:297mm!important}}

/* V22 Update 2-4: logo upload, marksheet templates, signature placement and certificate editing */
.edu-maker:has(.v-marksheet) .edu-templates{grid-template-columns:repeat(10,minmax(0,1fr))!important;gap:5px!important}
.edu-maker:has(.v-marksheet) .edu-template{min-height:54px;padding:4px;border-radius:7px;display:flex;flex-direction:column;align-items:stretch;gap:2px}
.edu-maker:has(.v-marksheet) .edu-template .edu-swatch{height:20px!important;min-height:20px;border-radius:3px!important;border:1px solid #ffffffaa}
.edu-maker:has(.v-marksheet) .edu-template small{font-size:7px}.edu-maker:has(.v-marksheet) .edu-template strong{font-size:7px;line-height:1.1;white-space:normal}
.edu-maker:has(.v-marksheet) .edu-template:nth-child(3n+1) .edu-swatch{background:linear-gradient(135deg,#163c59,#4c9eaa)}
.edu-maker:has(.v-marksheet) .edu-template:nth-child(3n+2) .edu-swatch{background:linear-gradient(135deg,#70334b,#d39a67)}
.edu-maker:has(.v-marksheet) .edu-template:nth-child(3n) .edu-swatch{background:linear-gradient(135deg,#4d4385,#9b87c9)}
.v-ms-school-logo{display:block;width:58px;height:58px;object-fit:contain;margin:0 auto 7px;background:#fff;border-radius:8px;padding:3px}
.v-ms-signatures{display:grid!important;grid-template-columns:1fr 1fr 1fr;gap:12px!important;margin-top:44px!important;align-items:end;text-align:center;font-size:9px!important}
.v-ms-signatures span{display:flex;flex-direction:column;align-items:center;gap:5px;white-space:normal}.v-ms-signatures i{display:block;width:90%;border-top:1px solid #222;height:1px}
.v-ms-signatures span:first-child{text-align:left}.v-ms-signatures span:last-child{text-align:right}
.v-cert-border{color:var(--cert-text-color,var(--accent));font-family:var(--cert-font,Georgia),serif}
.v-cert-border h1,.v-cert-border h2,.v-cert-type,.v-cert-present,.v-cert-copy{color:var(--cert-text-color,var(--accent))!important;font-size:calc(1em * var(--cert-size,1))}
.v-cert-extra-image{position:absolute;object-fit:contain;z-index:5;cursor:move;resize:both;overflow:auto;min-width:28px;min-height:28px;max-width:45%;max-height:45%;border-radius:0}
.v-cert-photo{cursor:default}
.qp-cover-brand{display:flex;flex-direction:column;align-items:center;text-align:center;gap:5px}.qp-cover-brand img{width:64px;height:64px;object-fit:contain;display:block;margin:0 auto}.qp-cover-brand>div{text-align:center}
.qp-cover-signatures{display:flex;justify-content:space-between;gap:18px;margin:18px 0 0;font-size:10px;color:#222;font-weight:400;border:0!important}
.qp-running-foot{border-top:1px solid #333!important;padding-top:7px!important;margin-top:26px!important;display:flex;justify-content:flex-end!important;font-size:10px}
@media(max-width:850px){.edu-maker:has(.v-marksheet) .edu-templates{grid-template-columns:repeat(10,minmax(0,1fr))!important}.edu-maker:has(.v-marksheet) .edu-template{min-height:48px}.v-ms-signatures{gap:5px!important;font-size:7px!important}}
@media(max-width:520px){.edu-maker:has(.v-marksheet) .edu-templates{grid-template-columns:repeat(5,minmax(0,1fr))!important}.qp-cover-signatures{font-size:8px;gap:6px}}

.v-marksheet.v-design-25 .v-ms-page{border:7px double #315c77}.v-marksheet.v-design-26 .v-ms-head{background:linear-gradient(110deg,#315c77,#70a7a0)}.v-marksheet.v-design-27 .v-ms-table{border:3px double #8c5b45}.v-marksheet.v-design-28 .v-ms-page{border-left:14px ridge #a58b45}.v-marksheet.v-design-29 .v-ms-head{border-bottom:8px double #7d4e70}
.v-ms-signatures i{border-top:1px solid #222}

/* V23 follow-up updates: clean pagination, compact single-page marksheet and stable certificate canvas */
.qp-question-page,.qp-answer-page{position:relative!important;box-sizing:border-box!important;padding-bottom:24mm!important;overflow:hidden!important}
.qp-running-foot{position:absolute!important;left:10mm!important;right:10mm!important;bottom:7mm!important;display:flex!important;justify-content:flex-end!important;align-items:flex-end!important;min-height:0!important;margin:0!important;padding:2.2mm 0 0!important;border-top:2px solid #173b5b!important;background:transparent!important;color:#173b5b!important;box-shadow:none!important}
.qp-running-foot span{display:none!important}
.qp-running-foot b{display:block!important;margin:0!important;padding:0!important;background:transparent!important;color:#173b5b!important;font-weight:700!important;font-size:9pt!important}
.qp-question-page .v-question-section,.qp-question-page .v-question-item,.qp-question-page .v-paragraph{break-inside:avoid!important;page-break-inside:avoid!important}
.qp-question-page .v-question-grid{align-content:start}
.qp-question-page .qp-page-meta{margin-bottom:5mm}
.v-ms-page{height:100%!important;min-height:0!important;max-height:100%!important;padding:22px 28px!important;overflow:hidden!important;display:flex!important;flex-direction:column!important;gap:0!important}
.v-ms-head{padding:8px 8px 10px!important}
.v-ms-school-logo{width:42px!important;height:42px!important;margin:0 auto 4px!important}
.v-ms-head h1{font-size:18px!important;margin:4px 0!important;line-height:1.15!important}
.v-ms-head h2{font-size:9px!important;margin:2px 0!important;letter-spacing:.6px!important}
.v-ms-head small{font-size:8px!important}
.v-ms-meta{padding:7px 4px!important;gap:5px 10px!important;font-size:8px!important}
.v-ms-note{padding:4px 6px!important;margin-top:5px!important;font-size:7.5px!important}
.v-ms-table{margin-top:6px!important;font-size:7px!important;line-height:1.15!important}
.v-ms-table th,.v-ms-table td{font-size:7px!important;padding:3px 2px!important;line-height:1.15!important}
.v-ms-table th small{font-size:6px!important}
.v-ms-stats{gap:4px!important;margin:7px 0!important;padding:4px!important}
.v-ms-stats div{padding:5px 3px!important;font-size:7px!important}
.v-ms-stats b{font-size:10px!important;margin-top:3px!important}
.v-ms-extra{margin-top:5px!important;padding:4px 6px!important;font-size:7px!important}
.v-ms-qr{width:58px!important;margin:5px 0 0 auto!important;font-size:6px!important;gap:1px!important}
.v-ms-qr img{width:48px!important;height:48px!important}
.v-ms-page footer.v-ms-signatures{display:grid!important;grid-template-columns:1fr 1fr 1fr!important;gap:10px!important;margin-top:auto!important;padding:9px 0 0!important;border:0!important;background:transparent!important;color:#111!important;box-shadow:none!important;font-size:7px!important;line-height:1.2!important;align-items:end!important}
.v-ms-signatures span{display:flex!important;flex-direction:column!important;gap:4px!important;white-space:normal!important;background:transparent!important;color:#111!important}
.v-ms-signatures i{display:block!important;width:88%!important;height:0!important;border:0!important;border-top:1px solid #222!important}
.v-ms-signatures span:first-child{text-align:left!important;align-items:flex-start!important}
.v-ms-signatures span:nth-child(2){text-align:center!important;align-items:center!important}
.v-ms-signatures span:last-child{text-align:right!important;align-items:flex-end!important}
.v-cert-extra-image{touch-action:none!important;user-select:none!important;-webkit-user-drag:none!important;max-width:none!important;max-height:none!important;resize:none!important;overflow:visible!important;transform:none!important}
.v-cert-border{touch-action:pan-y}
@media print{
 @page{size:A4 portrait;margin:0}
 body.edu-printing .v-ms-page{width:210mm!important;height:297mm!important;min-height:297mm!important;max-height:297mm!important;padding:7mm!important;overflow:hidden!important;break-after:auto!important;page-break-after:auto!important}
 body.edu-printing .v-ms-signatures{margin-top:auto!important;padding-top:3mm!important}
 body.edu-printing .qp-question-page,body.edu-printing .qp-answer-page{padding-bottom:24mm!important;overflow:hidden!important}
 body.edu-printing .qp-running-foot{left:10mm!important;right:10mm!important;bottom:7mm!important;border-top:2px solid #173b5b!important;background:transparent!important}
 body.edu-printing .v-cert-extra-image{print-color-adjust:exact;-webkit-print-color-adjust:exact}
}

/* V24 verification fixes: preserve the requested layouts at every viewport */
.qp-running-foot{border-top:2px solid #173b5b!important;background:transparent!important;box-shadow:none!important;color:#173b5b!important}
.qp-running-foot b{background:transparent!important;color:#173b5b!important;padding:0!important}
.qp-question-page .v-question-item,.qp-question-page .v-paragraph,.qp-question-page .v-question-section{break-inside:avoid!important;page-break-inside:avoid!important}
.qp-question-page .v-question-item{min-width:0;overflow-wrap:anywhere}
.v-ms-page{box-sizing:border-box!important;overflow:hidden!important}
.v-ms-signatures{background:transparent!important;box-shadow:none!important;border:0!important;color:#111!important}
.v-cert-extra-image{position:absolute!important;display:block!important;object-fit:contain!important;touch-action:none!important;cursor:move!important;user-select:none!important;-webkit-user-drag:none!important}
@media print{
 body.edu-printing .qp-running-foot{border-top:2px solid #173b5b!important;background:transparent!important;color:#173b5b!important}
 body.edu-printing .v-ms-page{break-after:auto!important;page-break-after:auto!important}
 body.edu-printing .v-cert-border{width:297mm!important;height:210mm!important;min-height:210mm!important;overflow:hidden!important}
}
.v-ms-page{--ms-scale:1}
.v-ms-table th,.v-ms-table td{font-size:calc(7px * var(--ms-scale))!important;padding:calc(3px * var(--ms-scale)) calc(2px * var(--ms-scale))!important;line-height:1.12!important}
.v-ms-head h1{font-size:calc(18px * var(--ms-scale))!important}
.v-ms-meta,.v-ms-note,.v-ms-extra{font-size:calc(7.5px * var(--ms-scale))!important}
.v-ms-stats div{font-size:calc(7px * var(--ms-scale))!important;padding:calc(5px * var(--ms-scale)) calc(3px * var(--ms-scale))!important}
.v-ms-stats b{font-size:calc(10px * var(--ms-scale))!important}
.v-ms-qr img{width:calc(48px * var(--ms-scale))!important;height:calc(48px * var(--ms-scale))!important}
.v-ms-signatures{font-size:calc(7px * var(--ms-scale))!important}


/* V25: accessible speech-to-text controls, reliable certificate image clipping and export */
.edu-voice-wrap{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:7px;align-items:stretch}
.edu-voice-wrap textarea{min-width:0;min-height:76px}
.edu-voice-btn{align-self:start;min-width:78px;border:1px solid #c8d8e6;border-radius:9px;background:#eef6fb;color:#164b70;padding:9px 8px;font-size:11px;font-weight:800;cursor:pointer;touch-action:manipulation}
.edu-voice-btn.recording{background:#fff0f0;border-color:#d85b5b;color:#a32020;animation:aminVoicePulse 1.1s infinite}
@keyframes aminVoicePulse{50%{box-shadow:0 0 0 4px #d85b5b22}}
.v-cert-border{position:relative!important;isolation:isolate}
.v-cert-extra-image{border-radius:var(--extra-image-radius,0)!important;clip-path:inset(0 round var(--extra-image-radius,0))!important;overflow:hidden!important;object-fit:contain!important;will-change:left,top}
.v-cert-extra-image[data-circle="true"]{object-fit:cover!important;aspect-ratio:1/1!important}
.v-ms-qr img,.v-ms-qr canvas{width:76px!important;height:76px!important;image-rendering:pixelated}
@media(max-width:520px){.edu-voice-btn{min-width:68px;padding:8px 5px;font-size:10px}.edu-voice-wrap{gap:5px}}

/* V26: generate the marksheet QR only on explicit request; keep it crisp and scan-friendly */
.edu-ms-actions{display:flex;flex-wrap:wrap;align-items:center;gap:9px;margin-top:8px}
.edu-ms-actions .edu-add{margin-top:8px}
.edu-qr-generate{border:0;border-radius:9px;padding:10px 14px;background:#173b5b;color:#fff;font-weight:800;cursor:pointer;min-height:38px;touch-action:manipulation}
.edu-qr-generate:hover{background:#0f2c46}
.edu-qr-generate:focus-visible{outline:3px solid #70b7e8;outline-offset:2px}
.v-ms-qr{width:112px!important;margin:10px 0 0 auto!important;gap:3px!important}
.v-ms-qr img{display:block;width:100px!important;height:100px!important;max-width:none!important;object-fit:contain!important;image-rendering:pixelated!important;background:#fff!important}
@media print{.v-ms-qr{width:27mm!important}.v-ms-qr img{width:25mm!important;height:25mm!important}}

.edu-help-btn{margin-top:9px;border:1px solid #ffffff80;background:#ffffff20;color:#fff;border-radius:9px;padding:8px 13px;font-weight:800;font-size:12px;cursor:pointer}.edu-help-btn:hover{background:#ffffff35}


/* V3 Question Paper Maker: consistent A4 safe-area for preview and downloaded files. */
.qp-cover-page{overflow:hidden!important;box-sizing:border-box!important}
.qp-cover-page .qp-cover-inner{height:100%!important;min-height:0!important;box-sizing:border-box!important;padding:30px 34px 58px!important;overflow:hidden!important;display:flex!important;flex-direction:column!important}
.qp-cover-page .qp-cover-brand,.qp-cover-page .qp-cover-rule,.qp-cover-page .qp-cover-title,.qp-cover-page .qp-cover-meta,.qp-cover-page .qp-cover-instructions,.qp-cover-page .qp-cover-candidate,.qp-cover-page .qp-cover-signatures,.qp-cover-page .qp-cover-foot{flex-shrink:0!important;box-sizing:border-box!important;max-width:100%!important}
.qp-cover-page .qp-cover-instructions{overflow-wrap:anywhere!important;break-inside:avoid!important}
.qp-cover-page .qp-cover-instructions li{overflow-wrap:anywhere!important;word-break:normal!important}
.qp-cover-page .qp-cover-candidate{margin-top:auto!important;padding-top:12px!important;padding-bottom:12px!important}
.qp-cover-page .qp-cover-signatures{margin-top:12px!important;margin-bottom:8px!important;padding:0 4px!important;line-height:1.5!important}
.qp-cover-page .qp-cover-foot{position:static!important;display:flex!important;align-items:flex-start!important;gap:12px!important;margin:8px 0 0!important;padding:10px 12px 12px!important;min-height:38px!important;border-top:1px solid var(--qp-accent,#244d72)!important;line-height:1.5!important;overflow:visible!important}
.qp-cover-page .qp-cover-foot b{display:block!important;max-width:86%!important;white-space:normal!important;overflow-wrap:anywhere!important;word-break:normal!important}
.qp-cover-page .qp-cover-foot span{flex:0 0 auto!important;white-space:nowrap!important}
@media(max-width:760px){
 .qp-cover-page .qp-cover-inner{padding:4% 4% 7%!important}
 .qp-cover-page .qp-cover-brand{min-height:50px!important;gap:6px!important}
 .qp-cover-page .qp-cover-brand h1{font-size:16px!important;line-height:1.15!important}
 .qp-cover-page .qp-cover-brand p{font-size:8px!important;margin:3px 0!important}
 .qp-cover-page .qp-cover-rule{height:2px!important;margin:8px 0!important}
 .qp-cover-page .qp-cover-title{margin:8px 0!important}
 .qp-cover-page .qp-cover-title small{font-size:8px!important;letter-spacing:2px!important}
 .qp-cover-page .qp-cover-title h2{font-size:18px!important;line-height:1.15!important;margin:6px 0!important}
 .qp-cover-page .qp-cover-title p{font-size:9px!important}
 .qp-cover-page .qp-cover-meta{gap:4px!important;margin:6px 0!important}
 .qp-cover-page .qp-cover-meta span{padding:5px 2px!important;font-size:7px!important}
 .qp-cover-page .qp-cover-meta b{font-size:7px!important;margin-bottom:3px!important}
 .qp-cover-page .qp-cover-instructions{margin:8px 0 5px!important;padding:8px 10px!important;min-height:0!important}
 .qp-cover-page .qp-cover-instructions h3{font-size:10px!important;margin-bottom:5px!important}
 .qp-cover-page .qp-cover-instructions ol{font-size:7px!important;line-height:1.3!important;padding-left:14px!important}
 .qp-cover-page .qp-cover-candidate{padding:6px 0!important;font-size:7px!important;gap:5px!important}
 .qp-cover-page .qp-cover-signatures{font-size:7px!important;gap:6px!important;margin:6px 0 3px!important}
 .qp-cover-page .qp-cover-foot{font-size:7px!important;gap:5px!important;padding:6px 6px 8px!important;margin:5px 0 0!important;min-height:26px!important}
}
