* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
/* ---------------------------------------------------------------------------
   Design tokens.

   Values are bare "R G B" triples so Tailwind utilities can apply their own
   alpha through <alpha-value> (see the palette mapping in base.html).

   The light palette is taken from the landing page: warm paper, navy ink,
   blue accent. Dark mode is a designed palette rather than an inversion of
   the light one - inverting a scale collides as soon as one shade is used
   both as a surface (bg-green-200) and as text (text-green-800).
   --------------------------------------------------------------------------- */
:root {
    color-scheme: light;

    /* Text */
    --ink: 20 36 63;
    --ink-soft: 45 61 88;
    --muted: 90 104 124;
    --subtle: 96 109 127;
    --faint: 122 134 151;

    /* Surfaces */
    --page: 249 246 242;
    --surface: 255 255 255;
    --surface-2: 250 247 243;
    --surface-3: 243 238 232;

    /* Lines */
    --line-subtle: 240 235 229;
    --line: 228 221 212;
    --line-strong: 208 197 185;

    /* Accent */
    --accent: 23 76 199;
    --accent-strong: 18 58 153;
    --accent-surface: 235 241 254;
    --coral: 224 100 66;

    /* Primary action */
    --cta: 23 76 199;
    --cta-hover: 18 58 153;
    --cta-text: 255 255 255;

    /* Success */
    --ok-surface: 238 250 243;
    --ok-surface-2: 214 240 225;
    --ok-line: 183 224 202;
    --ok-text: 17 106 66;
    --ok-solid: 21 128 79;
    --ok-solid-hover: 16 105 64;

    /* Warning: deliberately the neutral palette. No yellow or amber anywhere in
       the app; "needs attention" reads from the copy and the icon, while green
       (done), red (error) and blue (action) keep their colour. */
    --warn-surface: var(--surface-2);
    --warn-surface-2: var(--surface-3);
    --warn-line: var(--line);
    --warn-text: var(--ink-soft);
    --warn-solid: var(--ink);
    --warn-solid-hover: var(--ink-soft);

    /* Danger */
    --bad-surface: 255 245 244;
    --bad-surface-2: 254 227 224;
    --bad-line: 248 203 198;
    --bad-text: 178 36 36;
    --bad-solid: 202 44 44;
    --bad-solid-hover: 172 32 32;

    /* Info */
    --info-surface: 238 243 255;
    --info-surface-2: 219 230 253;
    --info-line: 195 213 250;
    --info-text: 23 76 199;
    --info-solid: 23 76 199;
    --info-solid-hover: 18 58 153;

    /* Elevation */
    --shadow-color: 26 41 68;
    --shadow-card: 0 1px 2px rgb(var(--shadow-color) / 0.05), 0 1px 3px rgb(var(--shadow-color) / 0.04);
    --shadow-raised: 0 4px 12px rgb(var(--shadow-color) / 0.07), 0 1px 3px rgb(var(--shadow-color) / 0.05);
    --shadow-overlay: 0 16px 48px rgb(var(--shadow-color) / 0.18), 0 2px 8px rgb(var(--shadow-color) / 0.10);

    /* Legacy aliases, still referenced by the pre-Tailwind rules below. */
    --theme-page-bg: rgb(var(--page));
    --theme-text: rgb(var(--ink));
    --theme-text-muted: rgb(var(--muted));
    --theme-text-subtle: rgb(var(--subtle));
    --theme-surface: rgb(var(--surface-2));
    --theme-surface-strong: rgb(var(--surface));
    --theme-border: rgb(var(--line));
    --theme-border-strong: rgb(var(--line-strong));
    --theme-primary: rgb(var(--ink));
    --theme-cta-bg: rgb(var(--cta));
    --theme-cta-hover: rgb(var(--cta-hover));
    --theme-cta-text: rgb(var(--cta-text));
    --theme-danger: rgb(var(--bad-text));
    --theme-danger-bg: rgb(var(--bad-surface));
    --theme-danger-border: rgb(var(--bad-line));
    --theme-success: rgb(var(--ok-text));
    --theme-success-bg: rgb(var(--ok-surface));
    --theme-row-hover: rgb(var(--surface-3));
}

.dark {
    color-scheme: dark;

    /* Warm ink rather than a blue slate: the light theme is paper and navy,
       and its dark twin reads as the same book at night, not as a generic
       dashboard. Text is a warm off-white for the same reason. */
    --ink: 236 232 225;
    --ink-soft: 214 209 201;
    --muted: 168 163 156;
    --subtle: 143 139 133;
    --faint: 112 109 105;

    --page: 22 21 19;
    --surface: 31 29 27;
    --surface-2: 37 35 33;
    --surface-3: 46 44 41;

    --line-subtle: 41 39 36;
    --line: 54 51 48;
    --line-strong: 76 72 68;

    /* The brand blue, deepened so it sits on ink instead of glowing on it. */
    --accent: 150 176 245;
    --accent-strong: 184 202 250;
    --accent-surface: 30 38 60;
    --coral: 240 145 112;

    --cta: 38 78 184;
    --cta-hover: 52 94 204;
    --cta-text: 255 255 255;

    --ok-surface: 16 40 31;
    --ok-surface-2: 22 56 42;
    --ok-line: 32 78 58;
    --ok-text: 109 226 165;
    --ok-solid: 26 122 80;
    --ok-solid-hover: 32 145 96;

    --warn-surface: var(--surface-2);
    --warn-surface-2: var(--surface-3);
    --warn-line: var(--line);
    --warn-text: var(--ink-soft);
    --warn-solid: var(--ink);
    --warn-solid-hover: var(--ink-soft);

    --bad-surface: 45 21 22;
    --bad-surface-2: 62 28 29;
    --bad-line: 84 40 41;
    --bad-text: 250 152 152;
    --bad-solid: 196 48 48;
    --bad-solid-hover: 218 62 62;

    --info-surface: 29 36 56;
    --info-surface-2: 36 47 74;
    --info-line: 54 70 108;
    --info-text: 160 184 245;
    --info-solid: 38 78 184;
    --info-solid-hover: 52 94 204;

    /* Dark surfaces sit on a dark page, so depth comes from borders and a
       deeper shadow rather than the soft light-mode drop shadows. */
    --shadow-color: 0 0 0;
    --shadow-card: 0 1px 2px rgb(0 0 0 / 0.30);
    --shadow-raised: 0 4px 14px rgb(0 0 0 / 0.38);
    --shadow-overlay: 0 20px 56px rgb(0 0 0 / 0.60), 0 2px 8px rgb(0 0 0 / 0.40);
}

body {
    font-family: 'Instrument Sans', ui-sans-serif, system-ui, 'Segoe UI', sans-serif;
    background: var(--theme-page-bg);
    min-height: 100vh;
    color: var(--theme-text);
}

/* Authentication is intentionally a calm, light checkpoint before the themed app. */
body.auth-page {
    /* Sign-in stays a calm, always-light checkpoint before the themed app, so
       it pins the light token values even when .dark is set on the root. */
    color-scheme: light;

    --ink: 20 36 63;
    --ink-soft: 45 61 88;
    --muted: 90 104 124;
    --subtle: 96 109 127;
    --faint: 122 134 151;

    --page: 249 246 242;
    --surface: 255 255 255;
    --surface-2: 250 247 243;
    --surface-3: 243 238 232;

    --line-subtle: 240 235 229;
    --line: 228 221 212;
    --line-strong: 208 197 185;

    --accent: 23 76 199;
    --accent-strong: 18 58 153;
    --cta: 23 76 199;
    --cta-hover: 18 58 153;

    --info-surface: 238 243 255;
    --info-surface-2: 219 230 253;
    --info-line: 195 213 250;
    --info-text: 23 76 199;
    --info-solid: 23 76 199;
    --info-solid-hover: 18 58 153;

    --shadow-color: 26 41 68;

    background: rgb(var(--page));
    color: rgb(var(--ink));
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.navbar {
    background-color: rgb(var(--surface-2) / 0.95);
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgb(var(--shadow-color) / 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    color: var(--theme-primary);
    font-size: 1.5rem;
    font-weight: 700;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: var(--theme-text);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--theme-primary);
}

main {
    padding: 3rem 20px;
}

.form-container {
    max-width: 600px;
    margin: 0 auto;
    background: var(--theme-surface-strong);
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgb(var(--shadow-color) / 0.2);
}

.form-container h2 {
    color: var(--theme-primary);
    margin-bottom: 0.5rem;
    text-align: center;
}

.subtitle {
    text-align: center;
    color: var(--theme-text-muted);
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--theme-text);
}

.form-group input[type="text"],
.form-group input[type="file"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--theme-border);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--theme-primary);
}

.form-group small {
    display: block;
    margin-top: 0.3rem;
    color: var(--theme-text-muted);
    font-size: 0.85rem;
}

.char-counter {
    float: right;
}

.image-preview {
    margin-top: 1rem;
    text-align: center;
}

.image-preview img {
    max-width: 200px;
    max-height: 200px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgb(var(--shadow-color) / 0.1);
}

.btn-submit, .btn-add {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, var(--theme-primary) 0%, rgb(var(--ink-soft)) 100%);
    color: rgb(var(--cta-text));
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

.btn-submit:hover, .btn-add:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgb(var(--shadow-color) / 0.4);
}

.btn-submit:disabled, .btn-add:disabled {
    background: rgb(var(--line-strong));
    cursor: not-allowed;
    transform: none;
}

.message {
    margin-top: 1.5rem;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    display: none;
}

.message.success {
    background-color: var(--theme-success-bg);
    color: var(--theme-success);
    border: 1px solid rgb(var(--ok-line));
}

.message.error {
    background-color: var(--theme-danger-bg);
    color: var(--theme-danger);
    border: 1px solid var(--theme-danger-border);
}

.admin-container {
    background: var(--theme-surface-strong);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgb(var(--shadow-color) / 0.2);
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.admin-header h2 {
    color: var(--theme-primary);
}

/* ---------------------------------------------------------------------------
   Component polish.

   These rules lean on the class combinations the templates already use, so
   the shared card / input / heading treatment lives in one place instead of
   being repeated across 41 templates.
   --------------------------------------------------------------------------- */

/* Page headings stay in the UI sans. The landing page uses a display serif
   for its hero, but dashboard headings are read, not admired, and a serif
   slows that down. The two stay related through the shared palette, the
   shared body face and the shared button and card shapes. */
main h1 {
    letter-spacing: -0.01em;
    line-height: 1.2;
}

/* Cards. The templates spell a card as "bg-white + border + rounded", so the
   elevation is attached to that combination rather than to a new class.
   Anything that names its own shadow - a dialog, a dropdown panel - keeps it;
   without the :not() this rule outranked those utilities and flattened the
   modal back down to a card. */
.bg-white.rounded-lg:not([class*="shadow-"]),
.bg-white.rounded-xl:not([class*="shadow-"]),
.bg-white.rounded-2xl:not([class*="shadow-"]) {
    box-shadow: var(--shadow-card);
}

/* Form controls: one height, one radius, one focus treatment. Tailwind sets
   these per element in the markup, which had drifted between views. */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="date"],
input[type="search"],
input[type="tel"],
input[type="url"],
select,
textarea {
    background-color: rgb(var(--surface));
    color: rgb(var(--ink));
    border-color: rgb(var(--line-strong));
    border-radius: 0.625rem;
}

input::placeholder,
textarea::placeholder {
    color: rgb(var(--faint));
}

/* Native selects keep their own arrow, which renders as a dark glyph on a
   dark surface. Drawing it as a background image keeps it on-theme. */
select:not([multiple]):not([size]) {
    appearance: none;
    padding-right: 2.25rem;
    background-image: linear-gradient(45deg, transparent 50%, rgb(var(--muted)) 50%),
                      linear-gradient(135deg, rgb(var(--muted)) 50%, transparent 50%);
    background-position: calc(100% - 1.1rem) 55%, calc(100% - 0.75rem) 55%;
    background-size: 0.35rem 0.35rem, 0.35rem 0.35rem;
    background-repeat: no-repeat;
}

input[type="file"] {
    color: rgb(var(--muted));
}

input[type="file"]::file-selector-button {
    margin-right: 0.75rem;
    padding: 0.5rem 0.9rem;
    border: 0;
    border-radius: 0.5rem;
    background-color: rgb(var(--surface-3));
    color: rgb(var(--ink-soft));
    font: inherit;
    font-size: 0.8125rem;
    font-weight: 600;
    cursor: pointer;
}

input[type="file"]::file-selector-button:hover {
    background-color: rgb(var(--line));
}

/* Checkboxes and radios pick up the accent instead of the browser default. */
input[type="checkbox"],
input[type="radio"] {
    accent-color: rgb(var(--accent));
}

/* One visible focus ring for everything reachable by keyboard. */
:focus-visible {
    outline: 2px solid rgb(var(--accent));
    outline-offset: 2px;
}

input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline-offset: 0;
    border-color: rgb(var(--accent));
}

/* Disabled controls read as unavailable rather than merely faded out. */
input:disabled,
select:disabled,
textarea:disabled {
    background-color: rgb(var(--surface-2));
    color: rgb(var(--subtle));
    cursor: not-allowed;
}

/* Images inside cards keep the card's rounding instead of sitting square. */
img {
    background-color: rgb(var(--surface-2));
}

/* Material Symbols default to a hairline weight that disappears against a
   dark surface. */
.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 450, 'GRAD' 0, 'opsz' 24;
}

/* Long-form legal pages: bind the typography plugin to the theme.

   The extra .legal-doc ancestor is load-bearing. Tailwind's play CDN injects
   its stylesheet after this file, so a bare .prose rule here loses the tie on
   specificity and the plugin's light-mode defaults win - which is how table
   cells ended up at #374151 on a dark page. */
.legal-doc .prose {
    --tw-prose-body: rgb(var(--muted));
    --tw-prose-headings: rgb(var(--ink));
    --tw-prose-lead: rgb(var(--muted));
    --tw-prose-links: rgb(var(--accent));
    --tw-prose-bold: rgb(var(--ink));
    --tw-prose-counters: rgb(var(--subtle));
    --tw-prose-bullets: rgb(var(--line-strong));
    --tw-prose-hr: rgb(var(--line));
    --tw-prose-quotes: rgb(var(--ink));
    --tw-prose-quote-borders: rgb(var(--line));
    --tw-prose-captions: rgb(var(--subtle));
    --tw-prose-code: rgb(var(--ink));
    --tw-prose-pre-code: rgb(var(--ink));
    --tw-prose-pre-bg: rgb(var(--surface-2));
    --tw-prose-th-borders: rgb(var(--line-strong));
    --tw-prose-td-borders: rgb(var(--line));
}

.legal-doc .prose :is(h1, h2, h3, h4) {
    font-weight: 600;
}

/* A wide table should scroll inside the card instead of pushing the page
   sideways. */
.legal-doc .prose table {
    display: block;
    width: 100%;
    overflow-x: auto;
    border-collapse: collapse;
}

.legal-doc .prose :is(th, td) {
    padding: 0.6rem 0.75rem;
    border: 1px solid rgb(var(--line));
    vertical-align: top;
}

.legal-doc .prose thead th {
    background-color: rgb(var(--surface-2));
    color: rgb(var(--ink));
    text-align: left;
}

/* Global interactive feedback for all buttons and links acting as buttons */
button:not(:disabled),
a[role="button"]:not(:disabled),
input[type="submit"]:not(:disabled) {
    transition: all 0.15s ease;
}

button:not(:disabled):active,
a[role="button"]:not(:disabled):active,
input[type="submit"]:not(:disabled):active {
    transform: scale(0.97);
}

button:disabled,
input[type="submit"]:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Overlay actions on photos. On a touch screen there is no hover, so they stay
   visible instead of waiting for a pointer that never comes. */
/* A shortcut that only makes sense with a pointer: hidden on touch screens,
   where the same action exists as a regular button elsewhere. */
@media (hover: none) {
    .hover-only { display: none; }
    /* A full-photo overlay that never goes away would sit on the face and dim
       every photo, so on touch it steps aside: no tint, buttons on the edge. */
    .hover-reveal.absolute.inset-0 {
        align-items: flex-end;
        padding-bottom: 0.25rem;
        background-color: transparent;
    }
    .hover-reveal.absolute.inset-0.flex-col {
        align-items: center;
        justify-content: flex-end;
    }
}

@media (hover: hover) {
    .hover-reveal { opacity: 0; }
    .group:hover .hover-reveal,
    .group:focus-within .hover-reveal { opacity: 1; }
}

.row-hover {
    border-radius: 0;
    transition: background-color 0.2s ease;
}

.row-hover:hover {
    background-color: var(--theme-row-hover) !important;
}

.header-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-preview {
    padding: 0.75rem 1.5rem;
    background: rgb(var(--info-solid));
    color: rgb(var(--cta-text));
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-preview:hover {
    background: rgb(var(--info-solid-hover));
    transform: translateY(-2px);
}

.btn-preview:disabled {
    background: rgb(var(--line-strong));
    cursor: not-allowed;
    transform: none;
}

.btn-generate {
    padding: 0.75rem 1.5rem;
    background: var(--theme-success);
    color: rgb(var(--cta-text));
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-generate:hover {
    background: rgb(var(--ok-solid-hover));
    transform: translateY(-2px);
}

.btn-generate:disabled {
    background: rgb(var(--line-strong));
    cursor: not-allowed;
    transform: none;
}

.admin-section {
    margin-bottom: 3rem;
}

.admin-section h3 {
    color: var(--theme-text);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.inline-form {
    background: var(--theme-surface);
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 2rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr 100px 1fr auto;
    gap: 1rem;
    align-items: end;
}

.form-row input[type="text"],
.form-row select,
.form-row input[type="file"] {
    padding: 0.75rem;
    border: 2px solid var(--theme-border);
    border-radius: 8px;
    font-size: 1rem;
}

.form-row .btn-add {
    width: auto;
    padding: 0.75rem 1.5rem;
    white-space: nowrap;
}

.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: rgb(var(--accent));
    color: rgb(var(--cta-text));
    padding: 1.5rem;
    border-radius: 10px;
    text-align: center;
}

.stat-card h4 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.stat-card p {
    font-size: 0.9rem;
    opacity: 0.9;
}

.students-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.student-card {
    border: 2px solid var(--theme-border);
    border-radius: 10px;
    padding: 1rem;
    transition: all 0.3s;
    background: var(--theme-surface-strong);
}

.student-card.has-quote {
    border-color: var(--theme-success);
    background-color: var(--theme-success-bg);
}

.student-card:hover {
    box-shadow: 0 5px 15px rgb(var(--shadow-color) / 0.1);
}

.student-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.student-info h4 {
    color: var(--theme-text);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.class-badge {
    display: inline-block;
    background: rgb(var(--info-solid));
    color: rgb(var(--cta-text));
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.quote {
    font-style: italic;
    color: var(--theme-text-muted);
    margin: 0.5rem 0;
    font-size: 0.95rem;
}

.no-quote {
    color: var(--theme-text-subtle);
    font-size: 0.9rem;
}

.student-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.btn-delete {
    padding: 0.5rem 1rem;
    background: var(--theme-danger);
    color: rgb(var(--cta-text));
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-delete:hover {
    background: rgb(var(--bad-solid-hover));
}

.class-photos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
}

.class-photo-card {
    border: 2px solid var(--theme-border);
    border-radius: 10px;
    padding: 1rem;
    background: var(--theme-surface-strong);
    transition: all 0.3s;
}

.class-photo-card:hover {
    box-shadow: 0 5px 15px rgb(var(--shadow-color) / 0.1);
}

.class-photo-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.photo-info {
    margin-bottom: 1rem;
}

.caption {
    color: var(--theme-text-muted);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.no-data {
    text-align: center;
    color: var(--theme-text-subtle);
    padding: 2rem;
    font-size: 1.1rem;
}

footer {
    background-color: rgb(var(--surface-2) / 0.95);
    padding: 2rem 0;
    text-align: center;
    margin-top: 3rem;
    color: var(--theme-text-muted);
}

@media (max-width: 1024px) {
    .form-row {
        grid-template-columns: 1fr;
    }

    .form-row .btn-add {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .navbar .container {
        flex-direction: column;
        gap: 1rem;
    }

    .admin-header {
        flex-direction: column;
        text-align: center;
    }

    .header-buttons {
        width: 100%;
        flex-direction: column;
    }

    .header-buttons button {
        width: 100%;
    }

    .students-grid {
        grid-template-columns: 1fr;
    }

    .class-photos-grid {
        grid-template-columns: 1fr;
    }
}

/* ---------------------------------------------------------------------------
   Protected PDF Preview Styles
   --------------------------------------------------------------------------- */
.preview-page {
    user-select: none;
    -webkit-user-select: none;
    -webkit-user-drag: none;
    -webkit-touch-callout: none;
}

.preview-print-notice {
    display: none;
}

@media print {
    body * {
        visibility: hidden !important;
    }
    .preview-print-notice, .preview-print-notice * {
        visibility: visible !important;
        display: block !important;
    }
    .preview-print-notice {
        position: fixed;
        top: 20%;
        left: 0;
        right: 0;
        padding: 2rem;
        text-align: center;
        font-size: 1.5rem;
        color: #111827;
    }
}
