/* Admin panel font + colour presets (fonts are self-hosted: CSP font-src 'self'). Generated. */
@font-face { font-family: "Inter Variable"; font-style: normal; font-display: swap; font-weight: 100 900; src: url(fonts/inter.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Outfit Variable"; font-style: normal; font-display: swap; font-weight: 100 900; src: url(fonts/outfit.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Poppins"; font-style: normal; font-display: swap; font-weight: 400; src: url(fonts/poppins-latin-400.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Poppins"; font-style: normal; font-display: swap; font-weight: 500; src: url(fonts/poppins-latin-500.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Poppins"; font-style: normal; font-display: swap; font-weight: 600; src: url(fonts/poppins-latin-600.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Poppins"; font-style: normal; font-display: swap; font-weight: 700; src: url(fonts/poppins-latin-700.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Plus Jakarta Sans Variable"; font-style: normal; font-display: swap; font-weight: 100 900; src: url(fonts/jakarta.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Manrope Variable"; font-style: normal; font-display: swap; font-weight: 100 900; src: url(fonts/manrope.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "DM Sans Variable"; font-style: normal; font-display: swap; font-weight: 100 900; src: url(fonts/dm-sans.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Figtree Variable"; font-style: normal; font-display: swap; font-weight: 100 900; src: url(fonts/figtree.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Nunito Variable"; font-style: normal; font-display: swap; font-weight: 100 900; src: url(fonts/nunito.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Roboto Variable"; font-style: normal; font-display: swap; font-weight: 100 900; src: url(fonts/roboto.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Open Sans Variable"; font-style: normal; font-display: swap; font-weight: 100 900; src: url(fonts/open-sans.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Montserrat Variable"; font-style: normal; font-display: swap; font-weight: 100 900; src: url(fonts/montserrat.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Hind Siliguri"; font-style: normal; font-display: swap; font-weight: 400; src: url(fonts/hind-latin-400.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Hind Siliguri"; font-style: normal; font-display: swap; font-weight: 500; src: url(fonts/hind-latin-500.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Hind Siliguri"; font-style: normal; font-display: swap; font-weight: 600; src: url(fonts/hind-latin-600.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Hind Siliguri"; font-style: normal; font-display: swap; font-weight: 700; src: url(fonts/hind-latin-700.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Hind Siliguri"; font-style: normal; font-display: swap; font-weight: 400; src: url(fonts/hind-bengali-400.woff2) format("woff2"); unicode-range: U+0951-0952, U+0964-0965, U+0980-09FE, U+1CD0, U+1CD2, U+1CD5-1CD6, U+1CD8, U+1CE1, U+1CEA, U+1CED, U+1CF2, U+1CF5-1CF7, U+200C-200D, U+20B9, U+25CC, U+A8F1; }
@font-face { font-family: "Hind Siliguri"; font-style: normal; font-display: swap; font-weight: 500; src: url(fonts/hind-bengali-500.woff2) format("woff2"); unicode-range: U+0951-0952, U+0964-0965, U+0980-09FE, U+1CD0, U+1CD2, U+1CD5-1CD6, U+1CD8, U+1CE1, U+1CEA, U+1CED, U+1CF2, U+1CF5-1CF7, U+200C-200D, U+20B9, U+25CC, U+A8F1; }
@font-face { font-family: "Hind Siliguri"; font-style: normal; font-display: swap; font-weight: 600; src: url(fonts/hind-bengali-600.woff2) format("woff2"); unicode-range: U+0951-0952, U+0964-0965, U+0980-09FE, U+1CD0, U+1CD2, U+1CD5-1CD6, U+1CD8, U+1CE1, U+1CEA, U+1CED, U+1CF2, U+1CF5-1CF7, U+200C-200D, U+20B9, U+25CC, U+A8F1; }
@font-face { font-family: "Hind Siliguri"; font-style: normal; font-display: swap; font-weight: 700; src: url(fonts/hind-bengali-700.woff2) format("woff2"); unicode-range: U+0951-0952, U+0964-0965, U+0980-09FE, U+1CD0, U+1CD2, U+1CD5-1CD6, U+1CD8, U+1CE1, U+1CEA, U+1CED, U+1CF2, U+1CF5-1CF7, U+200C-200D, U+20B9, U+25CC, U+A8F1; }

:root[data-font="inter"] { --font: "Inter Variable", "Hind Siliguri", "Segoe UI", system-ui, -apple-system, Roboto, "Noto Sans Bengali", Arial, sans-serif; }
:root[data-font="outfit"] { --font: "Outfit Variable", "Hind Siliguri", "Segoe UI", system-ui, -apple-system, Roboto, "Noto Sans Bengali", Arial, sans-serif; }
:root[data-font="poppins"] { --font: "Poppins", "Hind Siliguri", "Segoe UI", system-ui, -apple-system, Roboto, "Noto Sans Bengali", Arial, sans-serif; }
:root[data-font="jakarta"] { --font: "Plus Jakarta Sans Variable", "Hind Siliguri", "Segoe UI", system-ui, -apple-system, Roboto, "Noto Sans Bengali", Arial, sans-serif; }
:root[data-font="manrope"] { --font: "Manrope Variable", "Hind Siliguri", "Segoe UI", system-ui, -apple-system, Roboto, "Noto Sans Bengali", Arial, sans-serif; }
:root[data-font="dm-sans"] { --font: "DM Sans Variable", "Hind Siliguri", "Segoe UI", system-ui, -apple-system, Roboto, "Noto Sans Bengali", Arial, sans-serif; }
:root[data-font="figtree"] { --font: "Figtree Variable", "Hind Siliguri", "Segoe UI", system-ui, -apple-system, Roboto, "Noto Sans Bengali", Arial, sans-serif; }
:root[data-font="nunito"] { --font: "Nunito Variable", "Hind Siliguri", "Segoe UI", system-ui, -apple-system, Roboto, "Noto Sans Bengali", Arial, sans-serif; }
:root[data-font="roboto"] { --font: "Roboto Variable", "Hind Siliguri", "Segoe UI", system-ui, -apple-system, Roboto, "Noto Sans Bengali", Arial, sans-serif; }
:root[data-font="open-sans"] { --font: "Open Sans Variable", "Hind Siliguri", "Segoe UI", system-ui, -apple-system, Roboto, "Noto Sans Bengali", Arial, sans-serif; }
:root[data-font="montserrat"] { --font: "Montserrat Variable", "Hind Siliguri", "Segoe UI", system-ui, -apple-system, Roboto, "Noto Sans Bengali", Arial, sans-serif; }
:root[data-font="hind"] { --font: "Hind Siliguri", "Segoe UI", system-ui, Arial, sans-serif; }

/* Colour presets — light, then dark (higher specificity so dark mode keeps working) */
:root[data-palette="ocean"] { --primary: #0B5CAD; --primary-hover: #094B8E; --primary-soft: #E7EFF7; --link: #0B5CAD; --accent: #0E7490; --accent-hover: #0C637A; --accent-soft: #E2EEF2; --focus: #0E7490; }
:root[data-theme="dark"][data-palette="ocean"] { --primary: #3E7AB5; --primary-hover: #5187BC; --primary-soft: #132A48; --link: #9DBEDE; --accent: #0D6E89; --accent-hover: #257C95; --accent-soft: #142E40; --focus: #7AB3C2; }
@media (prefers-color-scheme: dark) { :root[data-palette="ocean"]:not([data-theme="light"]) { --primary: #3E7AB5; --primary-hover: #5187BC; --primary-soft: #132A48; --link: #9DBEDE; --accent: #0D6E89; --accent-hover: #257C95; --accent-soft: #142E40; --focus: #7AB3C2; } }
:root[data-palette="indigo"] { --primary: #4338CA; --primary-hover: #372EA6; --primary-soft: #ECEBFA; --link: #4338CA; --accent: #7C3AED; --accent-hover: #6931C9; --accent-soft: #EFE7FD; --focus: #7C3AED; }
:root[data-theme="dark"][data-palette="indigo"] { --primary: #6C64D6; --primary-hover: #7B74DA; --primary-soft: #1F224F; --link: #B4AFEA; --accent: #7637E1; --accent-hover: #844BE4; --accent-soft: #2A2253; --focus: #B793F5; }
@media (prefers-color-scheme: dark) { :root[data-palette="indigo"]:not([data-theme="light"]) { --primary: #6C64D6; --primary-hover: #7B74DA; --primary-soft: #1F224F; --link: #B4AFEA; --accent: #7637E1; --accent-hover: #844BE4; --accent-soft: #2A2253; --focus: #B793F5; } }
:root[data-palette="emerald"] { --primary: #065F46; --primary-hover: #054E39; --primary-soft: #E6EFEC; --link: #065F46; --accent: #047857; --accent-hover: #03664A; --accent-soft: #E1EFEB; --focus: #047857; }
:root[data-theme="dark"][data-palette="emerald"] { --primary: #3D826F; --primary-hover: #508E7D; --primary-soft: #122B32; --link: #9BBFB5; --accent: #047253; --accent-hover: #1D8064; --accent-soft: #122E35; --focus: #75B5A3; }
@media (prefers-color-scheme: dark) { :root[data-palette="emerald"]:not([data-theme="light"]) { --primary: #3D826F; --primary-hover: #508E7D; --primary-soft: #122B32; --link: #9BBFB5; --accent: #047253; --accent-hover: #1D8064; --accent-soft: #122E35; --focus: #75B5A3; } }
:root[data-palette="royal"] { --primary: #5B21B6; --primary-hover: #4B1B95; --primary-soft: #EFE9F8; --link: #5B21B6; --accent: #BE185D; --accent-hover: #A2144F; --accent-soft: #F7E3EC; --focus: #BE185D; }
:root[data-theme="dark"][data-palette="royal"] { --primary: #7F52C6; --primary-hover: #8C63CC; --primary-soft: #241D4A; --link: #BDA6E2; --accent: #B41758; --accent-hover: #BC2E69; --accent-soft: #371B36; --focus: #DB80A6; }
@media (prefers-color-scheme: dark) { :root[data-palette="royal"]:not([data-theme="light"]) { --primary: #7F52C6; --primary-hover: #8C63CC; --primary-soft: #241D4A; --link: #BDA6E2; --accent: #B41758; --accent-hover: #BC2E69; --accent-soft: #371B36; --focus: #DB80A6; } }
:root[data-palette="sunset"] { --primary: #9A3412; --primary-hover: #7E2B0F; --primary-soft: #F5EBE7; --link: #9A3412; --accent: #C2410C; --accent-hover: #A5370A; --accent-soft: #F8E8E2; --focus: #C2410C; }
:root[data-theme="dark"][data-palette="sunset"] { --primary: #B06146; --primary-hover: #B87158; --primary-soft: #322126; --link: #D7AEA0; --accent: #B83E0B; --accent-hover: #BF5123; --accent-soft: #382326; --focus: #DD9679; }
@media (prefers-color-scheme: dark) { :root[data-palette="sunset"]:not([data-theme="light"]) { --primary: #B06146; --primary-hover: #B87158; --primary-soft: #322126; --link: #D7AEA0; --accent: #B83E0B; --accent-hover: #BF5123; --accent-soft: #382326; --focus: #DD9679; } }
:root[data-palette="crimson"] { --primary: #9F1239; --primary-hover: #820F2F; --primary-soft: #F5E7EB; --link: #9F1239; --accent: #BE123C; --accent-hover: #A20F33; --accent-soft: #F7E3E8; --focus: #BE123C; }
:root[data-theme="dark"][data-palette="crimson"] { --primary: #B44665; --primary-hover: #BC5874; --primary-soft: #331A2F; --link: #D9A0B0; --accent: #B41139; --accent-hover: #BC294D; --accent-soft: #371A2F; --focus: #DB7D94; }
@media (prefers-color-scheme: dark) { :root[data-palette="crimson"]:not([data-theme="light"]) { --primary: #B44665; --primary-hover: #BC5874; --primary-soft: #331A2F; --link: #D9A0B0; --accent: #B41139; --accent-hover: #BC294D; --accent-soft: #371A2F; --focus: #DB7D94; } }
:root[data-palette="graphite"] { --primary: #1F2937; --primary-hover: #19222D; --primary-soft: #E9EAEB; --link: #1F2937; --accent: #0369A1; --accent-hover: #035989; --accent-soft: #E1EDF4; --focus: #0369A1; }
:root[data-theme="dark"][data-palette="graphite"] { --primary: #505863; --primary-hover: #626973; --primary-soft: #171F2E; --link: #A5A9AF; --accent: #036499; --accent-hover: #1C74A3; --accent-soft: #112B43; --focus: #74ACCB; }
@media (prefers-color-scheme: dark) { :root[data-palette="graphite"]:not([data-theme="light"]) { --primary: #505863; --primary-hover: #626973; --primary-soft: #171F2E; --link: #A5A9AF; --accent: #036499; --accent-hover: #1C74A3; --accent-soft: #112B43; --focus: #74ACCB; } }
:root[data-palette="forest"] { --primary: #14532D; --primary-hover: #104425; --primary-soft: #E8EEEA; --link: #14532D; --accent: #4D7C0F; --accent-hover: #41690D; --accent-soft: #EAEFE2; --focus: #4D7C0F; }
:root[data-theme="dark"][data-palette="forest"] { --primary: #48795B; --primary-hover: #5A866B; --primary-soft: #15282C; --link: #A1BAAB; --accent: #49760E; --accent-hover: #5B8426; --accent-soft: #202F26; --focus: #9DB77B; }
@media (prefers-color-scheme: dark) { :root[data-palette="forest"]:not([data-theme="light"]) { --primary: #48795B; --primary-hover: #5A866B; --primary-soft: #15282C; --link: #A1BAAB; --accent: #49760E; --accent-hover: #5B8426; --accent-soft: #202F26; --focus: #9DB77B; } }
:root[data-palette="amber"] { --primary: #78350F; --primary-hover: #622B0C; --primary-soft: #F2EBE7; --link: #78350F; --accent: #B45309; --accent-hover: #994708; --accent-soft: #F6EAE1; --focus: #B45309; }
:root[data-theme="dark"][data-palette="amber"] { --primary: #966144; --primary-hover: #A07157; --primary-soft: #2B2226; --link: #C9AE9F; --accent: #AB4F09; --accent-hover: #B36122; --accent-soft: #352725; --focus: #D6A078; }
@media (prefers-color-scheme: dark) { :root[data-palette="amber"]:not([data-theme="light"]) { --primary: #966144; --primary-hover: #A07157; --primary-soft: #2B2226; --link: #C9AE9F; --accent: #AB4F09; --accent-hover: #B36122; --accent-soft: #352725; --focus: #D6A078; } }

/* Settings › appearance previews */
[data-font-sample="system"] { font-family: "Segoe UI", system-ui, sans-serif; }
[data-font-sample="inter"] { font-family: "Inter Variable", sans-serif; }
[data-font-sample="outfit"] { font-family: "Outfit Variable", sans-serif; }
[data-font-sample="poppins"] { font-family: "Poppins", sans-serif; }
[data-font-sample="jakarta"] { font-family: "Plus Jakarta Sans Variable", sans-serif; }
[data-font-sample="manrope"] { font-family: "Manrope Variable", sans-serif; }
[data-font-sample="dm-sans"] { font-family: "DM Sans Variable", sans-serif; }
[data-font-sample="figtree"] { font-family: "Figtree Variable", sans-serif; }
[data-font-sample="nunito"] { font-family: "Nunito Variable", sans-serif; }
[data-font-sample="roboto"] { font-family: "Roboto Variable", sans-serif; }
[data-font-sample="open-sans"] { font-family: "Open Sans Variable", sans-serif; }
[data-font-sample="montserrat"] { font-family: "Montserrat Variable", sans-serif; }
[data-font-sample="hind"] { font-family: "Hind Siliguri", sans-serif; }
.appearance-card { grid-column: 1 / -1; }
.preset-fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.preset-fieldset legend { font-weight: 700; margin-bottom: .6rem; }
.font-presets { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: .6rem; }
.palette-presets { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .6rem; }
.font-preset input, .palette-preset input { position: absolute; opacity: 0; pointer-events: none; }
.font-preset-card, .palette-card { display: flex; flex-direction: column; gap: .35rem; padding: .8rem .9rem; border: 1.5px solid var(--border); border-radius: 12px; background: var(--surface-2); cursor: pointer; transition: border-color .15s, box-shadow .15s, transform .15s; height: 100%; }
.font-preset-card:hover, .palette-card:hover { border-color: var(--border-strong); transform: translateY(-1px); }
.font-preset input:checked + .font-preset-card, .palette-preset input:checked + .palette-card { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); background: var(--surface); }
.font-preset input:focus-visible + .font-preset-card, .palette-preset input:focus-visible + .palette-card { outline: 2px solid var(--focus); outline-offset: 2px; }
.font-preset-aa { font-size: 1.7rem; font-weight: 650; line-height: 1; color: var(--text); }
.font-preset-name, .palette-name { font-size: .84rem; color: var(--muted); font-weight: 600; }
.palette-swatch { display: flex; height: 34px; border-radius: 8px; overflow: hidden; }
.palette-swatch i { flex: 1; }
.palette-swatch i:first-child { flex: 1.6; }
