/* =====================================================================
   BSC-CREM  ::  Bright Sunshine Childcare
   White canvas, deep purple containers, orange accent actions.
   ===================================================================== */

:root {
  /* Brand */
  --purple-900: #3B1560;
  --purple-800: #4A1C77;
  --purple-700: #5B24A0;
  --purple-600: #6B2FB5;
  --purple-500: #7C3FD1;
  --purple-100: #F1E9FB;
  --purple-050: #F8F4FE;

  --orange-600: #E26A00;
  --orange-500: #FF8A1F;
  --orange-400: #FFA24D;
  --orange-100: #FFF1E3;

  --white: #FFFFFF;
  --ink: #241533;
  --muted: #6B5F7B;
  --line: #E8E1F2;

  /* Feedback */
  --ok-bg: #E7F7EE;   --ok-fg: #17663C;
  --warn-bg: #FFF6E0; --warn-fg: #8A5A00;
  --err-bg: #FDE9EC;  --err-fg: #A11B2E;

  /* Shape */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-pill: 999px;

  --sh-sm: 0 1px 2px rgba(59, 21, 96, .08);
  --sh-md: 0 6px 18px rgba(59, 21, 96, .10);
  --sh-lg: 0 18px 44px rgba(59, 21, 96, .16);
  --brand-shadow: rgba(107,47,181,.28);
  --brand-shadow-soft: rgba(107,47,181,.22);
  --brand-ring: rgba(107,47,181,.16);
  --accent-shadow: rgba(255,138,31,.32);
  --accent-shadow-hover: rgba(255,138,31,.42);
  --hero-accent-glow: rgba(255,138,31,.30);
  --hero-brand-tint: rgba(20,8,38,.24);

  --wrap: 1180px;
  --gutter: 22px;

  --ease: cubic-bezier(.2, .7, .3, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 16.5px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }
a { color: var(--purple-600); text-decoration: none; }
a:hover { color: var(--purple-800); }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.22; color: var(--purple-800); font-weight: 700; }
h1 { font-size: clamp(1.9rem, 1.2rem + 2.6vw, 3.1rem); }
h2 { font-size: clamp(1.55rem, 1.1rem + 1.7vw, 2.3rem); }
h3 { font-size: 1.2rem; }
p  { margin: 0 0 1rem; }

ul { margin: 0; padding: 0; list-style: none; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--orange-500); color: #fff; padding: 10px 18px; border-radius: 0 0 var(--r-sm) 0;
}
.skip-link:focus { left: 0; }

.container { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: 12px 24px; border: 2px solid transparent; border-radius: var(--r-pill);
  font-weight: 600; font-size: .97rem; line-height: 1.2; cursor: pointer;
  text-align: center; transition: transform .16s var(--ease), box-shadow .16s var(--ease), background-color .16s var(--ease), color .16s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 3px solid var(--orange-400); outline-offset: 2px; }

.btn-accent { background: var(--orange-500); color: #fff; box-shadow: 0 4px 14px var(--accent-shadow); }
.btn-accent:hover { background: var(--orange-600); color: #fff; box-shadow: 0 8px 22px var(--accent-shadow-hover); }

.btn-primary { background: var(--purple-600); color: #fff; }
.btn-primary:hover { background: var(--purple-800); color: #fff; }

.btn-ghost { background: transparent; color: var(--purple-700); border-color: var(--purple-600); }
.btn-ghost:hover { background: var(--purple-100); color: var(--purple-800); }

.btn-light { background: #fff; color: var(--purple-700); }
.btn-light:hover { background: var(--purple-050); color: var(--purple-800); }

.btn-danger { background: var(--err-fg); color: #fff; }
.btn-danger:hover { background: #8B1524; color: #fff; }

.btn-sm { padding: 8px 16px; font-size: .87rem; }
.btn-block { width: 100%; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--sh-sm);
}
.home-page .site-header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  background: transparent;
  border-bottom: 0;
  box-shadow: none;
}
.home-page .brand-text strong,
.home-page .brand-text small { color: #fff; text-shadow: 0 1px 8px rgba(0, 0, 0, .45); }
.home-page .primary-nav a:not(.btn) { color: #fff; text-shadow: 0 1px 6px rgba(0, 0, 0, .4); }
.home-page .primary-nav a:not(.btn):hover { background: rgba(255, 255, 255, .16); color: #fff; }
.home-page .primary-nav a.is-active { background: rgba(255, 255, 255, .2); color: #fff; }
.home-page .primary-nav a.is-active:hover { background: rgba(255, 255, 255, .28); color: #fff; }
.home-page .nav-toggle {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}
.home-page .nav-toggle span { background: #fff; }
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px; min-height: 74px;
}

.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand-mark { display: grid; place-items: center; flex: none; width: 38px; height: 38px; }
.brand-mark img { width: 100%; height: 100%; object-fit: contain; border-radius: 9px; }
.brand-mark svg circle { fill: var(--purple-600); }
.brand-mark svg path:first-of-type { fill: var(--orange-500); }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-size: 1.02rem; color: var(--purple-800); letter-spacing: .2px; }
.brand-text small  { font-size: .74rem; color: var(--muted); text-transform: uppercase; letter-spacing: 1.4px; font-weight: 600; }

.nav-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 40px; padding: 0 9px; cursor: pointer;
  background: var(--purple-050); border: 1px solid var(--line); border-radius: var(--r-sm);
}
.nav-toggle span { display: block; height: 2px; background: var(--purple-700); border-radius: 2px; transition: .2s var(--ease); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.primary-nav { display: flex; align-items: center; gap: 8px; }
.primary-nav ul { display: flex; align-items: center; gap: 4px; }
.primary-nav a:not(.btn) {
  display: block; padding: 9px 14px; border-radius: var(--r-pill);
  color: var(--purple-800); font-weight: 600; font-size: .95rem; transition: background-color .16s var(--ease);
}
.primary-nav a:not(.btn):hover { background: var(--purple-100); color: var(--purple-900); }
.primary-nav a.is-active { background: var(--purple-600); color: #fff; }
.primary-nav a.is-active:hover { background: var(--purple-800); color: #fff; }
.nav-cta { margin-left: 8px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate;
  background: linear-gradient(135deg, var(--purple-800) 0%, var(--purple-600) 55%, var(--purple-500) 100%);
  color: #fff; overflow: hidden;
}
.home-page .hero { min-height: 78vh; display: flex; flex-direction: column; justify-content: flex-end; }
.hero-bg { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.hero-media {
  position: absolute;
  inset: 0;
  overflow: hidden;
  opacity: 0;
  transition: opacity var(--hero-transition-duration, .9s) var(--ease);
}
.hero-media.is-current { opacity: 1; }
.hero-media img,
.hero-media video {
  width: 100%; height: 100%; object-fit: cover; opacity: var(--hero-media-opacity, .78);
  will-change: transform, filter;
}
.hero[data-active-effect="zoom"] .hero-media.is-current img,
.hero[data-active-effect="zoom"] .hero-media.is-current video { animation: heroZoom var(--hero-transition-duration, .9s) ease-out both; }
.hero[data-active-effect="kenburns"] .hero-media.is-current img,
.hero[data-active-effect="kenburns"] .hero-media.is-current video { animation: heroKenBurns var(--hero-slide-duration, 6s) linear both; }
.hero[data-active-effect="slide"] .hero-media.is-current img,
.hero[data-active-effect="slide"] .hero-media.is-current video { animation: heroSlideIn var(--hero-transition-duration, .9s) var(--ease) both; }
.hero[data-active-effect="rise"] .hero-media.is-current img,
.hero[data-active-effect="rise"] .hero-media.is-current video { animation: heroRiseIn var(--hero-transition-duration, .9s) var(--ease) both; }
.hero[data-active-effect="blur"] .hero-media.is-current img,
.hero[data-active-effect="blur"] .hero-media.is-current video { animation: heroBlurIn var(--hero-transition-duration, .9s) var(--ease) both; }
@keyframes heroZoom { from { transform: scale(1.12); } to { transform: scale(1.02); } }
@keyframes heroKenBurns {
  from { transform: scale(1.08) translate3d(0, 0, 0); }
  to { transform: scale(1.2) translate3d(-1.2%, .6%, 0); }
}
@keyframes heroSlideIn { from { transform: translateX(7%) scale(1.12); } to { transform: scale(1.02); } }
@keyframes heroRiseIn { from { transform: translateY(5%) scale(1.12); } to { transform: scale(1.02); } }
@keyframes heroBlurIn {
  from { filter: blur(12px); transform: scale(1.04); }
  to { filter: blur(0); transform: scale(1.02); }
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(1100px 460px at 12% 8%, var(--hero-accent-glow), transparent 60%);
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--hero-brand-tint);
}
.hero-inner { padding: 84px 0 92px; max-width: 780px; margin: 0 auto; text-align: center; }
.home-page .hero-inner { padding: 0 0 72px; }
.hero-inner h1 { color: #fff; font-size: 2.5rem; text-transform: uppercase; letter-spacing: .5px; margin-bottom: .18em; text-shadow: 0 2px 18px rgba(0,0,0,.22); }
.hero-sub { font-size: 1rem; font-weight: 600; color: var(--orange-400); margin: 0 0 .9rem; letter-spacing: .3px; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.hero-actions .btn-accent { background: var(--orange-500); border-color: var(--orange-500); }
.hero-actions .btn-accent:hover { background: var(--orange-600); border-color: var(--orange-600); }

/* ---------- Section shell ---------- */
.section { padding: 72px 0; }
.section-sm { padding: 52px 0; }
.section-alt { background: var(--purple-050); }
.home-page .section-alt { background: var(--purple-800); }
.section-head { max-width: 720px; margin: 0 auto 46px; text-align: center; }
.home-page .section-alt .section-head h2 { color: #fff; }
.home-page .section-alt .section-head p { color: rgba(255, 255, 255, .84); }
.section-head p { color: var(--muted); font-size: 1.03rem; }
.home-page .section-head .eyebrow {
  font-size: 2.5rem;
  letter-spacing: 0;
  text-transform: none;
  line-height: 1.15;
}
.eyebrow {
  display: inline-block; font-size: .76rem; font-weight: 700; letter-spacing: 1.6px;
  text-transform: uppercase; color: var(--orange-600); margin-bottom: 10px;
}

/* ---------- Page banner (inner pages) ---------- */
.page-banner {
  background: linear-gradient(120deg, var(--purple-800), var(--purple-600));
  color: #fff; padding: 54px 0; text-align: center;
}
.page-banner h1 { color: #fff; margin-bottom: .25em; }
.page-banner p  { color: rgba(255,255,255,.88); max-width: 640px; margin: 0 auto; }
.breadcrumb { font-size: .85rem; color: rgba(255,255,255,.75); margin-bottom: .6rem; }
.breadcrumb a { color: var(--orange-400); }
.breadcrumb a:hover { color: var(--orange-400); text-decoration: underline; }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 26px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--sh-sm); overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--sh-md); border-color: #DCC9F2; }
.card-body { padding: 24px; flex: 1 1 auto; }
.card h3 { margin-bottom: .4rem; }

/* Vision / Mission */
.vm-card { position: relative; border-top: 5px solid var(--orange-500); text-align: center; }
.vm-card.vision { border-top-color: var(--orange-500); }
.vm-card.mission { border-top-color: var(--purple-500); }
.vm-icon {
  width: 58px; height: 58px; border-radius: 18px; display: grid; place-items: center;
  background: var(--purple-100); color: var(--purple-700); font-size: 1.7rem; margin: 0 auto 16px;
}
.vm-card.mission .vm-icon { background: var(--orange-100); color: var(--orange-600); }
.vm-card p, .vm-card .rich-content { color: var(--muted); margin: 0; }

/* Work / activity category cards */
.work-card { text-align: center; }
.work-icon {
  width: 62px; height: 62px; border-radius: 20px; display: grid; place-items: center;
  background: linear-gradient(140deg, var(--purple-600), var(--purple-500));
  color: #fff; font-size: 1.8rem; margin: 0 auto 16px; box-shadow: 0 8px 18px var(--brand-shadow);
}
.work-card p, .work-card .work-description { color: var(--muted); margin-bottom: 0; }
.card-count { font-size: .8rem; font-weight: 700; color: var(--orange-600); text-transform: uppercase; letter-spacing: 1px; }

/* Updates feed */
.update-card .card-media { position: relative; aspect-ratio: 16 / 10; background: var(--purple-100); overflow: hidden; }
.update-card .card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease); }
.update-card:hover .card-media img { transform: scale(1.05); }
.update-card h3 { font-size: 1.16rem; }
.update-card h3 a { color: var(--purple-800); }
.update-card h3 a:hover { color: var(--orange-600); }
.card-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px;
  font-size: .82rem; color: var(--muted); margin-bottom: .65rem;
}
.card-meta .date { font-weight: 600; color: var(--purple-700); }
.chip {
  display: inline-block; padding: 3px 11px; border-radius: var(--r-pill);
  background: var(--orange-100); color: var(--orange-600);
  font-size: .74rem; font-weight: 700; letter-spacing: .6px; text-transform: uppercase;
}
.chip-purple { background: var(--purple-100); color: var(--purple-700); }
.card-excerpt { color: var(--muted); font-size: .95rem; }
.card-foot { padding: 0 24px 24px; }

.empty-state {
  text-align: center; padding: 54px 24px; background: var(--purple-050);
  border: 2px dashed var(--line); border-radius: var(--r-lg); color: var(--muted);
}

/* Article page */
.article { background: var(--white); }
.article-header { text-align: center; max-width: 760px; margin: 0 auto 34px; }
.article-figure { margin: 0 0 30px; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-md); }
.article-figure img { width: 100%; }
.article-body { max-width: 760px; margin: 0 auto; font-size: 1.04rem; }
.article-body p { margin-bottom: 1.15rem; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: start; }

.touch-card { background: linear-gradient(140deg, var(--purple-800), var(--purple-600)); color: #fff; border-radius: var(--r-lg); padding: 34px; box-shadow: var(--sh-md); }
.home-page #contact .touch-card { background: var(--white); color: var(--ink); border: 1px solid var(--line); }
.home-page #contact .touch-card h2 { color: var(--purple-800); }
.home-page #contact .touch-card .touch-ico { background: var(--purple-100); color: var(--purple-700); }
.home-page #contact .touch-card .touch-item a,
.home-page #contact .touch-card .touch-item span.addr { color: var(--ink); }
.touch-card h2 { color: #fff; }
.touch-list { display: grid; gap: 18px; margin-top: 22px; }
.touch-item { display: flex; gap: 14px; align-items: flex-start; }
.touch-ico {
  flex: none; width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center;
  background: rgba(255,255,255,.16); font-size: 1.2rem;
}
.touch-item strong { display: block; font-size: .8rem; text-transform: uppercase; letter-spacing: 1.1px; color: var(--orange-400); margin-bottom: 2px; }
.touch-item a, .touch-item span.addr { color: #fff; font-weight: 500; }
.touch-item a:hover { color: var(--orange-400); }

.form-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 32px; box-shadow: var(--sh-sm); }
.form-card h2 { margin-bottom: .3rem; }

/* ---------- Team ---------- */
.team-card { position: relative; text-align: center; }
.team-card:hover,
.team-card:active,
.work-card:hover,
.work-card:active,
.update-card:hover,
.update-card:active { transform: translateY(-6px); box-shadow: var(--sh-md); z-index: 1; }
.team-photo {
  width: 104px; height: 104px; border-radius: 50%; margin: 0 auto 16px; overflow: hidden;
  background: var(--purple-100); border: 4px solid #fff; box-shadow: 0 6px 18px var(--brand-shadow-soft);
}
.team-photo img { width: 100%; height: 100%; object-fit: cover; }
.team-card h3 { margin-bottom: .15rem; }
.team-role { display: block; color: var(--orange-600); font-weight: 700; font-size: .84rem; text-transform: uppercase; letter-spacing: 1px; margin-bottom: .6rem; }
.team-card p { color: var(--muted); font-size: .93rem; margin: 0; }
.rich-content > :last-child { margin-bottom: 0; }
.rich-content p { margin: 0 0 .75em; }
.rich-content ul, .rich-content ol { margin: 0 0 .75em; padding-left: 1.5em; }
.rich-content blockquote { margin: 0 0 .75em; padding-left: 1em; border-left: 3px solid var(--purple-500); color: var(--muted); }
.rich-content .ql-align-center { text-align: center; }
.rich-content .ql-align-right { text-align: right; }
.rich-content .ql-align-justify { text-align: justify; }
.rich-content .ql-font-inter { font-family: "Inter", Arial, sans-serif; }
.rich-content .ql-font-roboto { font-family: "Roboto", Arial, sans-serif; }
.rich-content .ql-font-open-sans { font-family: "Open Sans", Arial, sans-serif; }
.rich-content .ql-font-lato { font-family: "Lato", Arial, sans-serif; }
.rich-content .ql-font-serif { font-family: Georgia, "Times New Roman", serif; }
.rich-content .ql-font-monospace { font-family: Consolas, "Liberation Mono", monospace; }
.rich-content .ql-indent-1 { padding-left: 3em; }
.rich-content .ql-indent-2 { padding-left: 6em; }
.rich-content .ql-indent-3 { padding-left: 9em; }
.rich-content .ql-indent-4 { padding-left: 12em; }
.rich-content .ql-indent-5 { padding-left: 15em; }
.rich-content .ql-indent-6 { padding-left: 18em; }
.rich-content .ql-indent-7 { padding-left: 21em; }
.rich-content .ql-indent-8 { padding-left: 24em; }
.rich-content img { max-width: 100%; height: auto; vertical-align: middle; }

/* ---------- Forms ---------- */
.form-row { margin-bottom: 18px; }
.form-row label { display: block; font-weight: 600; font-size: .89rem; margin-bottom: 6px; color: var(--purple-800); }
.form-row .hint { font-size: .8rem; color: var(--muted); font-weight: 400; margin-top: 5px; display: block; }

input[type="text"], input[type="email"], input[type="password"], input[type="url"],
input[type="number"], input[type="date"], input[type="file"], select, textarea {
  width: 100%; padding: 11px 14px; font: inherit; font-size: .95rem; color: var(--ink);
  background: var(--white); border: 1.5px solid var(--line); border-radius: var(--r-sm);
  transition: border-color .16s var(--ease), box-shadow .16s var(--ease);
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--purple-500);
  box-shadow: 0 0 0 3px var(--brand-ring);
}
textarea { resize: vertical; min-height: 130px; line-height: 1.6; }
input[type="file"] { padding: 9px 12px; background: var(--purple-050); }

.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.required { color: var(--orange-600); }

/* ---------- Alerts ---------- */
.alert {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 13px 17px; border-radius: var(--r-sm); margin-bottom: 20px;
  font-size: .93rem; border: 1px solid transparent;
}
.alert-ok    { background: var(--ok-bg);   color: var(--ok-fg);   border-color: #B9E4CC; }
.alert-error { background: var(--err-bg);  color: var(--err-fg);  border-color: #F5C2CB; }
.alert-info  { background: var(--warn-bg); color: var(--warn-fg); border-color: #F3DCA6; }
.alert strong { display: block; margin-bottom: 2px; }

/* ---------- Hero slider ---------- */
.hero-slider { position: relative; }
.hero-slide { display: none; }
.hero-slide.is-current { display: block; animation: heroIn .6s var(--ease) both; }
@keyframes heroIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--purple-900); color: rgba(255,255,255,.78); margin-top: 0; font-weight: 700; }
.footer-grid {
  display: grid; grid-template-columns: 1.6fr 1fr 1.3fr 1fr; gap: 38px; padding: 56px var(--gutter) 44px;
}
.site-footer h3 { color: #fff; font-size: 1.08rem; margin-bottom: .3rem; }
.site-footer h4 { color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: 1.4px; margin-bottom: 1rem; }
.footer-sub { color: var(--orange-400); font-weight: 600; font-size: .9rem; margin-bottom: .8rem; }
.footer-tagline { font-style: italic; font-size: .93rem; color: rgba(255,255,255,.72); }
.footer-links li, .footer-contact li { margin-bottom: 9px; font-size: .93rem; }
.site-footer a { color: rgba(255,255,255,.80); }
.site-footer a:hover { color: var(--orange-400); }
.footer-contact a { word-break: break-word; }

.socials { display: flex; gap: 10px; }
.socials a {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255,255,255,.10); color: #fff; transition: background-color .18s var(--ease), transform .18s var(--ease);
}
.socials a:hover { background: var(--orange-500); color: #fff; transform: translateY(-2px); }

.footer-bottom { background: rgba(0,0,0,.22); border-top: 1px solid rgba(255,255,255,.10); }
.footer-bottom-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  flex-wrap: wrap; padding-top: 18px; padding-bottom: 18px;
}
.footer-bottom p { margin: 0; font-size: .87rem; color: rgba(255,255,255,.68); }

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
}

@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .primary-nav {
    position: absolute; top: 100%; left: var(--gutter); right: var(--gutter);
    flex-direction: column; align-items: stretch; gap: 6px;
    background: rgba(255, 255, 255, .5);
    border: 1px solid rgba(255, 255, 255, .68);
    border-radius: var(--r-md);
    -webkit-backdrop-filter: blur(14px) saturate(1.2);
    backdrop-filter: blur(14px) saturate(1.2);
    box-shadow: var(--sh-md); padding: 14px 12px 16px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: scale(.04);
    transform-origin: top right;
    transition: opacity .5s var(--ease), transform .5s var(--ease), visibility 0s linear .5s;
  }
  .primary-nav.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: scale(1);
    transition-delay: 0s;
  }
  .home-page .primary-nav { background: rgba(255, 255, 255, .5); }
  .primary-nav ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .home-page .primary-nav a:not(.btn) { color: var(--purple-800); text-shadow: none; }
  .home-page .primary-nav a:not(.btn):hover { background: var(--purple-100); color: var(--purple-900); }
  .home-page .primary-nav a.is-active { background: var(--purple-600); color: #fff; }
  .home-page .primary-nav a.is-active:hover { background: var(--purple-800); color: #fff; }
  .primary-nav a:not(.btn) { padding: 12px 14px; border-radius: var(--r-sm); font-weight: 700; }
  .nav-cta { margin: 8px 0 0; }

  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  body { font-size: 16px; }
  .section { padding: 54px 0; }
  .hero-inner { padding: 60px 0 66px; }
  .home-page .hero { min-height: 76svh; }
  .home-page .hero-inner { padding-bottom: 48px; }
  .hero-inner h1 { font-size: 1.9rem; }

  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .form-grid-2 { grid-template-columns: 1fr; }

  .touch-card, .form-card { padding: 26px 22px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; padding: 44px var(--gutter) 34px; }
  .footer-bottom-inner { flex-direction: column; text-align: center; }
}

@media (max-width: 420px) {
  .brand-text strong { font-size: .92rem; }
  .brand-text small { font-size: .68rem; }
  .btn { padding: 11px 20px; font-size: .92rem; }
}

/* ---------- Print ---------- */
@media print {
  .site-header, .site-footer, .btn, .nav-toggle { display: none !important; }
  body { font-size: 12pt; }
}

/* =====================================================================
   BSC-CREM :: Admin panel design system

   The public site is marketing-oriented: 999px pill buttons, 16.5px/1.65
   type, generous spacing. An admin panel needs the opposite - dense rows,
   quiet surfaces, crisp tables, restrained accents.

   This file is loaded AFTER style.css and deliberately overrides those
   public rules for the admin context only. Brand purple/orange is kept, but
   everything is rescaled for a data-dense interface.
   ===================================================================== */

/* ---------------------------------------------------------------------
   1. Admin design tokens
   ------------------------------------------------------------------ */
.admin-body {
  --a-bg:        #F4F1F9;
  --a-surface:   #FFFFFF;
  --a-surface-2: #FAF8FD;
  --a-line:      #E6E0EF;
  --a-line-soft: #F0ECF7;
  --a-ink:       #1E1330;
  --a-ink-2:     #4A3D5C;
  --a-muted:     #75688A;
  --a-mono:      "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Helvetica Neue', Helvetica, Arial, sans-serif;

  --a-brand:     #5B24A0;
  --a-brand-ink: #4A1C77;
  --a-brand-bg:  #F2ECFB;
  --a-brand-line: #D9CBEE;
  --a-brand-ring-soft: 0 0 0 3px rgba(91, 36, 160, .12);
  --a-accent:    #FF8A1F;
  --a-accent-ink: #E26A00;
  --a-accent-bg: #FFF2E4;
  --a-brand-deep: #2E1049;
  --a-brand-overlay-1: rgba(59, 21, 96, .9);
  --a-brand-overlay-2: rgba(74, 28, 119, .9);
  --a-brand-overlay-3: rgba(85, 30, 134, .9);
  --a-brand-overlay-mobile-1: rgba(59, 21, 96, .5);
  --a-brand-overlay-mobile-2: rgba(74, 28, 119, .5);
  --a-brand-overlay-mobile-3: rgba(85, 30, 134, .5);
  --a-accent-shadow: rgba(255, 138, 31, .32);
  --a-accent-shadow-strong: rgba(226, 106, 0, .38);
  --a-accent-glow: rgba(255, 138, 31, .2);

  --a-r-xs: 6px;
  --a-r-sm: 8px;
  --a-r-md: 11px;
  --a-r-lg: 16px;
  --a-r-pill: 999px;

  --a-sh-xs: 0 1px 2px rgba(59, 21, 96, .06);
  --a-sh-sm: 0 1px 2px rgba(59, 21, 96, .05), 0 1px 3px rgba(59, 21, 96, .05);
  --a-sh-md: 0 4px 12px rgba(59, 21, 96, .07), 0 1px 3px rgba(59, 21, 96, .05);
  --a-sh-lg: 0 12px 32px rgba(59, 21, 96, .13), 0 3px 8px rgba(59, 21, 96, .06);

  --a-ring: 0 0 0 3px rgba(91, 36, 160, .22);
  --a-fast: .13s var(--ease);

  --a-side-w: 216px;
  --a-top-h: 62px;

  background: var(--a-bg);
  color: var(--a-ink);
  min-height: 100vh;
  font-size: 14.5px;
  line-height: 1.55;
}

.admin-body .metric-num,
.admin-body table.data td,
.admin-body .pill,
.admin-body .badge { font-variant-numeric: tabular-nums; }

/* ---------------------------------------------------------------------
   2. Layout
   ------------------------------------------------------------------ */
.admin-layout { display: flex; align-items: flex-start; min-height: 100vh; }

.admin-main {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.admin-content {
  flex: 1 1 auto;
  padding: 26px 30px 56px;
  width: 100%;
  max-width: 1560px;
}

/* ---------------------------------------------------------------------
   3. Sidebar
   ------------------------------------------------------------------ */
.admin-side {
  width: var(--a-side-w);
  flex: none;
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  background: linear-gradient(178deg,
    var(--a-brand-overlay-1) 0%,
    var(--a-brand-overlay-2) 55%,
    var(--a-brand-overlay-3) 100%);
  -webkit-backdrop-filter: blur(10px) saturate(1.15);
  backdrop-filter: blur(10px) saturate(1.15);
  color: rgba(255, 255, 255, .8);
  z-index: 60;
  border-top-right-radius: 18px;
  border-bottom-right-radius: 18px;
  overflow: hidden;
  box-shadow: inset -1px 0 0 rgba(255, 255, 255, .07);
}

.admin-side-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 20px;
  min-height: var(--a-top-h);
  flex: none;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}
.admin-side-brand .bm {
  width: 34px; height: 34px; flex: none;
  border-radius: var(--a-r-sm);
  background: linear-gradient(140deg, var(--a-accent), var(--a-accent-ink));
  color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 2px 8px var(--a-accent-shadow);
}
.admin-side-brand .bm svg { width: 19px; height: 19px; stroke-width: 1.9; }
.admin-side-brand .bm.has-logo { padding: 3px; background: rgba(255, 255, 255, .94); }
.admin-side-brand .bm img { width: 100%; height: 100%; object-fit: contain; border-radius: 5px; }
.admin-side-brand strong {
  display: block;
  color: #fff;
  font-size: .89rem;
  font-weight: 650;
  line-height: 1.25;
  letter-spacing: .1px;
}
.admin-side-brand small {
  display: block;
  font-size: .66rem;
  color: var(--a-accent);
  text-transform: uppercase;
  letter-spacing: 1.1px;
  font-weight: 700;
  line-height: 1.4;
}

.admin-nav {
  flex: 1 1 auto;
  padding: 14px 12px 20px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, .22) transparent;
}
.admin-nav::-webkit-scrollbar { width: 9px; }
.admin-nav::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, .2);
  border-radius: var(--a-r-pill);
  border: 3px solid transparent;
  background-clip: content-box;
}
.admin-nav::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, .34); background-clip: content-box; }

.admin-nav h6 {
  margin: 16px 0 6px;
  padding: 0 10px;
  font-size: .64rem;
  text-transform: uppercase;
  letter-spacing: 1.3px;
  font-weight: 800;
  color: rgba(255, 255, 255, .52);
}
.admin-nav h6:first-child { margin-top: 2px; }

.admin-nav a {
  position: relative;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 9px;
  margin-bottom: 1px;
  border-radius: var(--a-r-sm);
  color: rgba(255, 255, 255, .92);
  font-size: .875rem;
  font-weight: 700;
  line-height: 1.35;
  white-space: nowrap;
  transition: background-color var(--a-fast), color var(--a-fast);
}
.admin-nav a:hover { background: rgba(255, 255, 255, .09); color: #fff; }
.admin-nav a:focus-visible { outline: 2px solid var(--a-accent); outline-offset: -2px; }

.admin-nav a .ic {
  width: 18px; height: 20px;
  flex: none;
  display: grid; place-items: center;
  color: rgba(255, 255, 255, .78);
  transition: color var(--a-fast);
}
.admin-nav a .ic svg { width: 16px; height: 16px; display: block; }
.admin-nav a:hover .ic { color: rgba(255, 255, 255, 1); }

.admin-nav a.is-active {
  background: rgba(255, 255, 255, .13);
  color: #fff;
  font-weight: 650;
}
.admin-nav a.is-active::before {
  content: "";
  position: absolute;
  left: -12px; top: 50%;
  transform: translateY(-50%);
  width: 3px; height: 22px;
  border-radius: 0 3px 3px 0;
  background: var(--a-accent);
}
.admin-nav a.is-active .ic { color: var(--a-accent); }

.admin-nav a .pill {
  margin-left: auto;
  flex: none;
  min-width: 20px;
  padding: 1px 7px;
  border-radius: var(--a-r-pill);
  background: var(--a-accent);
  color: #fff;
  font-size: .68rem;
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
}

.admin-side-foot {
  flex: none;
  padding: 14px 14px 16px;
  border-top: 1px solid rgba(255, 255, 255, .1);
}
.admin-side-foot .who {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  font-size: .74rem;
  color: rgba(255, 255, 255, .58);
  line-height: 1.35;
}
.admin-side-foot .who-id {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}
.admin-side-foot .who-label {
  font-size: .62rem;
  font-weight: 600;
  letter-spacing: .5px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .4);
}
.admin-side-foot .who strong {
  color: #fff;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.admin-side-foot .signout {
  flex: none;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 6px;
  color: rgba(255, 255, 255, .62);
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.admin-side-foot .signout:hover {
  background: rgba(255, 255, 255, .1);
  border-color: rgba(255, 255, 255, .28);
  color: #fff;
}
.admin-side-foot .signout svg { width: 15px; height: 15px; display: block; }

.admin-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(30, 19, 48, .48);
  backdrop-filter: blur(2px);
  z-index: 55;
}
.admin-backdrop.is-open { display: block; }

.admin-body .tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
  overflow-x: auto;
  padding: 3px;
  margin-inline: -3px;
}
.admin-body .tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 15px;
  background: var(--a-surface);
  color: var(--a-ink-2);
  border: 1px solid var(--a-line);
  border-radius: var(--a-r-sm);
  box-shadow: var(--a-sh-xs);
  font-size: .855rem;
  font-weight: 550;
  white-space: nowrap;
  transition: background-color var(--a-fast), color var(--a-fast),
              border-color var(--a-fast), box-shadow var(--a-fast);
}
.admin-body .tab:hover {
  background: var(--a-surface-2);
  color: var(--a-ink);
  border-color: var(--a-muted);
}
.admin-body .tab.is-active {
  background: var(--a-brand);
  border-color: var(--a-brand);
  color: #fff;
  font-weight: 600;
  box-shadow: var(--a-sh-sm);
}
.admin-body .tab .ic { display: grid; place-items: center; width: 16px; height: 16px; }
.admin-body .tab .ic svg { width: 15px; height: 15px; display: block; }

.colour-row { display: flex; align-items: center; gap: 10px; }
.colour-swatch {
  flex: 0 0 auto;
  width: 42px;
  height: 38px;
  padding: 2px;
  background: var(--a-surface);
  border: 1px solid var(--a-line);
  border-radius: var(--a-r-xs);
  cursor: pointer;
}
.colour-swatch::-webkit-color-swatch-wrapper { padding: 0; }
.colour-swatch::-webkit-color-swatch { border: 1px solid rgba(0, 0, 0, .12); border-radius: 4px; }
.colour-swatch::-moz-color-swatch { border: 1px solid rgba(0, 0, 0, .12); border-radius: 4px; }
.colour-hex {
  flex: 1 1 auto;
  min-width: 0;
  font-family: var(--a-mono);
  font-size: .85rem;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.colour-hex[aria-invalid="true"] { border-color: #A11B2E; box-shadow: 0 0 0 3px rgba(161, 27, 46, .12); }
.colour-reset { flex: 0 0 auto; }
.colour-warn { color: #A11B2E; font-weight: 550; }
.palette-presets { margin-bottom: 18px; padding: 14px 14px 12px; border: 1px solid var(--a-line-soft); border-radius: var(--a-r-sm); background: var(--a-surface-2); }
.palette-presets-header { margin-bottom: 10px; }
.palette-preset-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; }
.palette-preset {
  display: flex; align-items: center; gap: 10px; padding: 8px 10px; text-align: left; border: 1px solid var(--a-line); border-radius: var(--a-r-xs); background: var(--a-surface); color: var(--a-ink); cursor: pointer; transition: border-color var(--a-fast), box-shadow var(--a-fast), transform var(--a-fast);
}
.palette-preset:hover { border-color: var(--a-brand); box-shadow: var(--a-sh-xs); transform: translateY(-1px); }
.palette-preset.is-selected { border-color: var(--a-brand); box-shadow: var(--a-brand-ring-soft); }
.palette-preset-swatch {
  width: 28px; height: 28px; border-radius: 50%; border: 1px solid rgba(0,0,0,.08); flex: 0 0 auto; display: inline-block;
}
.palette-reset-form { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--a-line-soft); }

#palettePreviewRoot {
  --pv-brand: var(--a-brand);
  --pv-accent: var(--a-accent);
  --pv-brand-bg: var(--a-brand-bg);
  --pv-accent-bg: var(--a-accent-bg);
  --pv-ink: var(--a-ink);
  --pv-muted: var(--a-muted);
  --pv-line: var(--a-line);
  --pv-on-brand: #fff;
  --pv-on-accent: #fff;
}
.pv-block + .pv-block { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--a-line-soft); }
.pv-label {
  display: block;
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--a-muted);
  margin-bottom: 10px;
}
.pv-block {
  background: var(--pv-surface, #fff);
  border: 1px solid var(--pv-line);
  border-radius: var(--a-r-sm);
  padding: 16px;
}
.pv-heading { margin: 0 0 6px; font-size: 1.05rem; color: var(--pv-brand); }
.pv-text { margin: 0 0 4px; color: var(--pv-ink); font-size: .92rem; }
.pv-muted { margin: 0; color: var(--pv-muted); font-size: .85rem; }
.pv-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 12px; }
.pv-btn {
  display: inline-block;
  padding: 7px 15px;
  border-radius: var(--a-r-pill);
  font-size: .82rem;
  font-weight: 600;
}
.pv-btn-brand { background: var(--pv-brand); color: var(--pv-on-brand); }
.pv-btn-accent { background: var(--pv-accent); color: var(--pv-on-accent); }
.pv-link { color: var(--pv-brand); font-size: .85rem; font-weight: 600; text-decoration: underline; }
.pv-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.pv-badge { padding: 3px 10px; border-radius: var(--a-r-pill); font-size: .75rem; font-weight: 600; }
.pv-badge-brand { background: var(--pv-brand-bg); color: var(--pv-brand); }
.pv-badge-accent { background: var(--pv-accent-bg); color: var(--pv-accent); }
.pv-outline { padding: 3px 10px; border: 1px solid var(--pv-line); border-radius: var(--a-r-pill); font-size: .75rem; color: var(--pv-ink); }
.pv-swatchline { display: flex; gap: 5px; margin-bottom: 10px; }
.pv-chip { flex: 1 1 0; height: 22px; border-radius: 5px; border: 1px solid rgba(0, 0, 0, .08); }
.pv-table {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 12px;
  border: 1px solid var(--pv-line);
  border-radius: var(--a-r-xs);
  color: var(--pv-ink);
  font-size: .88rem;
}

.admin-body .log-filters {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  gap: 12px;
  align-items: end;
}
.admin-body .log-filters label { margin-bottom: 4px; }

.admin-body .log-table td { vertical-align: top; }
.admin-body .log-when { white-space: nowrap; }
.admin-body .log-act {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: .705rem;
  font-weight: 650;
  letter-spacing: .2px;
  text-transform: uppercase;
  white-space: nowrap;
  border: 1px solid transparent;
}
.admin-body .log-act-create   { background: #E7F6EC; color: #17663C; border-color: #C9E9D6; }
.admin-body .log-act-update   { background: var(--a-brand-bg); color: var(--a-brand-ink); border-color: var(--a-brand-line); }
.admin-body .log-act-delete   { background: #FDECEC; color: #A62B2B; border-color: #F6D2D2; }
.admin-body .log-act-toggle   { background: #FFF4E3; color: #8A5410; border-color: #F5E0BE; }
.admin-body .log-act-login    { background: #EAF1FB; color: #1D4E89; border-color: #CBDDF4; }
.admin-body .log-act-logout   { background: #EEF1F6; color: #55647C; border-color: #DCE3ED; }
.admin-body .log-act-password { background: #F3EAFB; color: #6B2E8F; border-color: #E0CDF0; }

.admin-body .log-detail {
  margin-top: 5px;
  font-size: .765rem;
  line-height: 1.6;
  color: var(--a-muted);
}
.admin-body .log-detail s { color: #A5AEBF; text-decoration-thickness: 1px; }
.admin-body .log-detail strong { color: var(--a-ink-2); font-weight: 600; }

.admin-body .log-subhead {
  margin: 20px 0 8px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .7px;
  text-transform: uppercase;
  color: var(--a-muted);
}
.admin-body .log-pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  border-top: 1px solid var(--a-line);
  font-size: .8rem;
}

@media (max-width: 900px) {
  .admin-body .log-filters { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .admin-body .log-filters { grid-template-columns: 1fr; }
  .admin-body .tab { padding: 7px 11px; font-size: .82rem; }
}

.admin-titlebar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin-bottom: 22px;
}
.admin-pagehead { text-align: center; min-width: 0; }
.admin-pagehead,
.admin-h1,
.admin-sub { overflow-wrap: anywhere; }
.admin-h1 {
  margin: 0;
  font-size: calc(1.65rem + 2px);
  font-weight: 800;
  color: var(--a-ink);
  line-height: 1.2;
  letter-spacing: -.4px;
}
.admin-sub {
  margin: 4px 0 0;
  font-size: .875rem;
  color: var(--a-muted);
  font-weight: 700;
  line-height: 1.45;
}

.admin-titlebar-aside { pointer-events: none; }
.admin-titlebar-aside > * { pointer-events: auto; }
.admin-titlebar-aside .admin-clock { flex: none; }
@media (max-width: 430px) {
  .admin-pagehead { max-width: 168px; }
}
@media (max-width: 430px) {
  .admin-titlebar .admin-h1 { font-size: calc(1.05rem + 2px); }
  .admin-titlebar .admin-sub { font-size: .66rem; }
  .admin-pagehead { max-width: 120px; }
}
@media (max-width: 339px) {
  .admin-titlebar-aside { position: static; transform: none; width: auto;
    justify-content: center; margin-top: 8px; }
  .admin-pagehead { max-width: none; }
}
.admin-pagehead { margin-inline: auto; }
.admin-titlebar-aside {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  width: 92px;
  justify-content: flex-end;
  pointer-events: none;
}
.admin-clock {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 12px;
  background: var(--a-surface);
  border: 1px solid var(--a-line);
  border-radius: var(--a-r-pill);
  box-shadow: var(--a-sh-xs);
}
.admin-clock-time {
  font-size: .95rem;
  font-weight: 650;
  color: var(--a-ink);
  letter-spacing: .3px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.dash-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 268px;
  gap: 16px;
  align-items: start;
  margin-bottom: 20px;
}
.dash-aside {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}
.dash-hero-main .metrics {
  grid-template-columns: repeat(auto-fit, minmax(152px, 1fr));
  gap: 12px;
}
.dash-hero-main .metric { padding: 13px 14px; gap: 11px; }
.dash-hero-main .metric-ico { width: 34px; height: 34px; }
.dash-hero-main .metric-ico svg { width: 18px; height: 18px; }
.dash-hero-main .metric-num { font-size: 1.34rem; }
.dash-hero-main .metric-label { font-size: .655rem; letter-spacing: .5px; }

@media (max-width: 700px) {
  .dash-hero { gap: 12px; grid-template-columns: minmax(0, 1fr) minmax(0, 268px); }
  .dash-cal { max-width: 268px; margin-left: auto; margin-right: 0; }
  .dash-hero-main .metrics { grid-template-columns: repeat(auto-fit, minmax(116px, 1fr)); }
  .dash-hero-main .metric { padding: 11px 11px; gap: 9px; }
  .dash-hero-main .metric-ico { width: 28px; height: 28px; }
  .dash-hero-main .metric-ico svg { width: 15px; height: 15px; }
  .dash-hero-main .metric-num { font-size: 1.1rem; }
  .dash-hero-main .metric-label { font-size: .6rem; letter-spacing: .4px; }
}
@media (max-width: 430px) {
  .dash-hero { grid-template-columns: minmax(0, 1fr); }
  .dash-aside { order: -1; }
  .dash-cal { max-width: 340px; }
  .dash-hero-main .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dash-hero-main .metric { padding: 13px 14px; gap: 11px; }
  .dash-hero-main .metric-ico { width: 34px; height: 34px; }
  .dash-hero-main .metric-ico svg { width: 18px; height: 18px; }
  .dash-hero-main .metric-num { font-size: 1.34rem; }
  .dash-hero-main .metric-label { font-size: .655rem; letter-spacing: .5px; }
}
@media (max-width: 430px) {
  .dash-cal .cal-head { padding: 10px 11px; }
  .cal-grid { padding: 10px 11px 12px; gap: 1px; }
  .cal-day { font-size: .72rem; border-radius: 5px; }
  .cal-dow { font-size: .6rem; }
  .cal-nav a { width: 24px; height: 24px; }
  .cal-nav a svg { width: 13px; height: 13px; }
}

.dash-cal .cal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--a-line-soft);
}
.dash-cal .cal-head h2 { font-size: .92rem; }
.dash-cal .cal-head p { font-size: .74rem; }
.cal-nav { display: flex; gap: 4px; flex: none; }
.cal-nav a {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 1px solid var(--a-line);
  border-radius: 6px;
  color: var(--a-ink-2);
  background: var(--a-surface);
  transition: background-color var(--a-fast), color var(--a-fast), border-color var(--a-fast);
}
.cal-nav a:hover { background: var(--a-brand-bg); border-color: var(--a-brand-line); color: var(--a-brand-ink); }
.cal-nav a svg { width: 14px; height: 14px; }

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 2px;
  padding: 12px 14px 14px;
}
.cal-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.cal-dow {
  text-align: center;
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .5px;
  text-transform: uppercase;
  color: var(--a-muted);
  padding-bottom: 5px;
}
.cal-day {
  position: relative;
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  border-radius: 6px;
  font-size: .78rem;
  color: var(--a-ink-2);
  font-variant-numeric: tabular-nums;
  cursor: default;
}
.cal-day.is-blank { visibility: hidden; }
.cal-day.is-today {
  background: var(--a-brand);
  color: #fff;
  font-weight: 700;
}
.cal-day.has-act { font-weight: 650; color: var(--a-ink); }
.cal-day.has-act::after {
  content: "";
  position: absolute;
  bottom: 3px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--a-accent);
}
.cal-day.is-today::after,
.cal-day.is-today.has-act::after { background: #fff; }


.admin-burger {
  display: none;
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  background: var(--a-surface);
  border: 1px solid var(--a-line);
  border-radius: 9px;
  color: var(--a-ink-2);
  cursor: pointer;
  box-shadow: var(--a-sh-xs);
  transition: background-color var(--a-fast), border-color var(--a-fast);
}
.admin-burger:hover { background: var(--a-brand-bg); border-color: var(--a-brand-line); }
.admin-burger:focus-visible { outline: none; box-shadow: var(--a-ring); }
.admin-burger svg { width: 20px; height: 20px; }

.admin-body .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45em;
  padding: 0 14px;
  height: 34px;
  border: 1px solid transparent;
  border-radius: var(--a-r-sm);
  font-family: inherit;
  font-size: .845rem;
  font-weight: 600;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color var(--a-fast), border-color var(--a-fast),
              color var(--a-fast), box-shadow var(--a-fast), transform var(--a-fast);
}
.admin-body .btn:active { transform: translateY(.5px); }
.admin-body .btn:focus-visible {
  outline: none;
  box-shadow: var(--a-ring);
}
.admin-body .btn[disabled], .admin-body .btn[aria-disabled="true"] {
  opacity: .55;
  pointer-events: none;
}
.admin-body .btn svg { width: 15px; height: 15px; flex: none; }

.admin-body .btn-sm { height: 29px; padding: 0 10px; font-size: .79rem; border-radius: var(--a-r-xs); }
.admin-body .btn-block { width: 100%; }

.admin-body .btn-accent {
  background: var(--a-accent);
  color: #fff;
  border-color: var(--a-accent-ink);
  box-shadow: 0 1px 2px var(--a-accent-shadow);
}
.admin-body .btn-accent:hover { background: var(--a-accent-ink); border-color: var(--a-accent-ink); }

.admin-body .btn-primary {
  background: var(--a-brand);
  color: #fff;
  border-color: var(--a-brand-ink);
}
.admin-body .btn-primary:hover { background: var(--a-brand-ink); }

.admin-body .btn-ghost {
  background: var(--a-surface);
  color: var(--a-ink-2);
  border-color: var(--a-line);
  box-shadow: var(--a-sh-xs);
}
.admin-body .btn-ghost:hover { background: var(--a-brand-bg); border-color: var(--a-brand-line); color: var(--a-brand-ink); }

.admin-body .btn-light {
  background: var(--a-surface-2);
  color: var(--a-ink-2);
  border-color: var(--a-line);
}
.admin-body .btn-light:hover { background: var(--a-brand-bg); border-color: var(--a-brand-line); color: var(--a-brand-ink); }

.admin-body .btn-danger {
  background: var(--a-surface);
  color: #A11B2E;
  border-color: #F0C3C9;
}
.admin-body .btn-danger:hover { background: #FDE9EC; border-color: #E79CAA; color: #8B1524; }

.admin-body .panel {
  background: var(--a-surface);
  border: 1px solid var(--a-line);
  border-radius: var(--a-r-lg);
  box-shadow: var(--a-sh-sm);
  margin-bottom: 20px;
  overflow: hidden;
}
.admin-body .panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding: 14px 18px;
  background: var(--a-surface-2);
  border-bottom: 1px solid var(--a-line);
}
.admin-body .panel-head h2 {
  margin: 0;
  font-size: .95rem;
  font-weight: 650;
  color: var(--a-ink);
  line-height: 1.35;
}
.admin-body .panel-head p {
  margin: 2px 0 0;
  font-size: .795rem;
  color: var(--a-muted);
  line-height: 1.45;
}
.admin-body .panel-body { padding: 18px; }
.admin-body .panel-body.tight { padding: 0; }

.admin-body .panel-head-lead { display: flex; align-items: center; gap: 11px; min-width: 0; }
.admin-body .panel-chip {
  width: 34px; height: 34px;
  flex: none;
  display: grid; place-items: center;
  border-radius: var(--a-r-sm);
  background: var(--a-brand-bg);
  color: var(--a-brand);
  border: 1px solid #E4D8F4;
}
.admin-body .panel-chip svg { width: 18px; height: 18px; display: block; }
.admin-body .panel-chip.is-slate {
  background: #EEF1F6;
  color: #5A6B85;
  border-color: #DBE2EC;
}

.admin-body .badge-role {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: .705rem;
  font-weight: 650;
  letter-spacing: .2px;
  text-transform: uppercase;
  white-space: nowrap;
}
.admin-body .badge-role svg { width: 12px; height: 12px; }
.admin-body .badge-super { background: var(--a-brand-bg); color: var(--a-brand-ink); border-color: var(--a-brand-line); }
.admin-body .badge-editor { background: #EEF1F6; color: #55647C; border-color: #DCE3ED; }

.admin-body .note {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 11px 13px;
  margin: 0 0 16px;
  background: var(--a-surface-2);
  border: 1px solid var(--a-line);
  border-radius: var(--a-r-sm);
  font-size: .795rem;
  line-height: 1.55;
  color: var(--a-muted);
}
.admin-body .note svg { width: 15px; height: 15px; flex: none; margin-top: 1px; color: var(--a-muted); }
.admin-body .note:last-child { margin-bottom: 0; }
.admin-body .note strong { color: var(--a-ink-2); font-weight: 650; }

.admin-body .panel-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: none;
  flex-wrap: wrap;
}

.admin-body .btn.is-on {
  background: var(--a-brand-bg);
  border-color: var(--a-brand-line);
  color: var(--a-brand-ink);
  font-weight: 650;
}

.admin-body .form-row { margin-bottom: 15px; }
.admin-body .form-row:last-child { margin-bottom: 0; }

.admin-body .form-row > label {
  display: block;
  margin-bottom: 5px;
  font-size: .79rem;
  font-weight: 600;
  color: var(--a-ink-2);
  letter-spacing: .1px;
}
.admin-body .required { color: var(--a-accent-ink); font-weight: 700; }

.admin-body input[type="text"],
.admin-body input[type="email"],
.admin-body input[type="password"],
.admin-body input[type="number"],
.admin-body input[type="date"],
.admin-body input[type="search"],
.admin-body input[type="tel"],
.admin-body select,
.admin-body textarea {
  width: 100%;
  min-height: 36px;
  padding: 7px 11px;
  font-family: inherit;
  font-size: .865rem;
  line-height: 1.5;
  color: var(--a-ink);
  background: var(--a-surface);
  border: 1px solid #D9D2E5;
  border-radius: var(--a-r-sm);
  transition: border-color var(--a-fast), box-shadow var(--a-fast), background-color var(--a-fast);
  -webkit-appearance: none;
  appearance: none;
}
.admin-body textarea { min-height: 96px; resize: vertical; }
.admin-body input::placeholder, .admin-body textarea::placeholder { color: #A99DBA; }
.admin-body .rich-text-field { margin-bottom: 6px; }
.admin-body .rich-text-field textarea[hidden] { display: none; }
.admin-body .rich-text-field .ql-toolbar.ql-snow,
.admin-body .rich-text-field .ql-container.ql-snow {
  border-color: var(--a-line);
  font: inherit;
}
.admin-body .rich-text-field .ql-toolbar.ql-snow {
  border-radius: var(--a-r-sm) var(--a-r-sm) 0 0;
  background: var(--a-bg);
}
.admin-body .rich-text-field .ql-container.ql-snow {
  min-height: 130px;
  border-radius: 0 0 var(--a-r-sm) var(--a-r-sm);
  color: var(--a-ink);
  font-family: inherit;
  font-size: .865rem;
}
.admin-body .rich-text-field:focus-within .ql-container.ql-snow { border-color: var(--a-brand); box-shadow: var(--a-ring); }
.admin-body .rich-text-field .ql-editor { min-height: 130px; line-height: 1.6; }
.admin-body .rich-text-field .ql-font-inter { font-family: "Inter", Arial, sans-serif; }
.admin-body .rich-text-field .ql-font-roboto { font-family: "Roboto", Arial, sans-serif; }
.admin-body .rich-text-field .ql-font-open-sans { font-family: "Open Sans", Arial, sans-serif; }
.admin-body .rich-text-field .ql-font-lato { font-family: "Lato", Arial, sans-serif; }
.admin-body .rich-text-field .ql-font-serif { font-family: Georgia, "Times New Roman", serif; }
.admin-body .rich-text-field .ql-font-monospace { font-family: Consolas, "Liberation Mono", monospace; }
.admin-body .rich-text-field .ql-editor img { max-width: 100%; height: auto; vertical-align: middle; }
.admin-body .rich-text-field .ql-editor.ql-blank::before { color: var(--a-muted); font-style: normal; }
.admin-body .rich-text-field .ql-toolbar.ql-snow button:hover,
.admin-body .rich-text-field .ql-toolbar.ql-snow button.ql-active,
.admin-body .rich-text-field .ql-toolbar.ql-snow .ql-picker-label:hover,
.admin-body .rich-text-field .ql-toolbar.ql-snow .ql-picker-label.ql-active { color: var(--a-brand); }
.admin-body .rich-text-field .ql-toolbar.ql-snow button:hover .ql-stroke,
.admin-body .rich-text-field .ql-toolbar.ql-snow button.ql-active .ql-stroke { stroke: var(--a-brand); }
.admin-body .rich-text-field .ql-toolbar.ql-snow button:hover .ql-fill,
.admin-body .rich-text-field .ql-toolbar.ql-snow button.ql-active .ql-fill { fill: var(--a-brand); }
.admin-body .rich-text-error { display: block; margin-top: 5px; color: var(--err-fg); font-size: .8rem; }
.admin-body .rich-text-error[hidden] { display: none; }

.admin-body input[type="text"]:hover,
.admin-body input[type="email"]:hover,
.admin-body input[type="password"]:hover,
.admin-body input[type="number"]:hover,
.admin-body input[type="date"]:hover,
.admin-body input[type="search"]:hover,
.admin-body select:hover,
.admin-body textarea:hover { border-color: #C4B8D8; }

.admin-body input:focus,
.admin-body select:focus,
.admin-body textarea:focus {
  outline: none;
  border-color: var(--a-brand);
  box-shadow: var(--a-ring);
  background: var(--a-surface);
}

.admin-body select {
  padding-right: 32px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' fill='none' stroke='%2375688A' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 11px center;
  background-size: 11px;
  cursor: pointer;
}

.admin-body input[type="file"] {
  width: 100%;
  padding: 7px 10px;
  font-size: .82rem;
  color: var(--a-muted);
  background: var(--a-surface-2);
  border: 1px dashed #D2C8E2;
  border-radius: var(--a-r-sm);
  cursor: pointer;
  transition: border-color var(--a-fast), background-color var(--a-fast);
}
.admin-body input[type="file"]:hover { border-color: var(--a-brand); background: var(--a-brand-bg); }
.admin-body input[type="file"]::file-selector-button {
  margin-right: 10px;
  padding: 5px 11px;
  font-family: inherit;
  font-size: .78rem;
  font-weight: 600;
  color: var(--a-brand-ink);
  background: var(--a-surface);
  border: 1px solid var(--a-line);
  border-radius: var(--a-r-xs);
  cursor: pointer;
}
.admin-body input[type="file"]::file-selector-button:hover { background: var(--a-brand-bg); }

.admin-body .form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.admin-body .form-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding-top: 16px;
  margin-top: 16px;
  border-top: 1px solid var(--a-line-soft);
}

.admin-body .hint {
  margin-top: 4px;
  font-size: .765rem;
  color: var(--a-muted);
  line-height: 1.45;
}
.admin-body .hint code {
  padding: 1px 5px;
  background: var(--a-brand-bg);
  color: var(--a-brand-ink);
  border-radius: 4px;
  font-size: .93em;
}

.admin-body .checkbox-row { display: flex; align-items: center; gap: 8px; font-size: .855rem; }
.admin-body .checkbox-row input[type="checkbox"] {
  width: 16px; height: 16px;
  flex: none;
  accent-color: var(--a-brand);
  cursor: pointer;
}
.admin-body .checkbox-row label { cursor: pointer; color: var(--a-ink-2); }

.admin-body .inline-form { display: inline; }

.admin-body .table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.admin-body table.data {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: .865rem;
}
.admin-body table.data th,
.admin-body table.data td {
  padding: 11px 16px;
  text-align: left;
  vertical-align: middle;
  border-bottom: 1px solid var(--a-line-soft);
}
.admin-body table.data thead th {
  background: var(--a-surface-2);
  color: var(--a-muted);
  font-size: .69rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .8px;
  white-space: nowrap;
  border-bottom: 1px solid var(--a-line);
}
.admin-body table.data tbody tr { transition: background-color var(--a-fast); }
.admin-body table.data tbody tr:hover { background: var(--a-brand-bg); }
.admin-body table.data tbody tr:last-child td { border-bottom: none; }

.admin-body table.data td.actions {
  text-align: right;
  white-space: nowrap;
  width: 1%;
}
.admin-body table.data .t-title {
  font-weight: 600;
  color: var(--a-ink);
  line-height: 1.4;
}
.admin-body table.data .t-sub {
  font-size: .775rem;
  color: var(--a-muted);
  line-height: 1.45;
  margin-top: 1px;
}
.admin-body table.data .t-code {
  font-family: var(--a-mono);
  font-size: .8rem;
  color: var(--a-ink-2);
  background: var(--a-surface-2);
  border: 1px solid var(--a-line);
  border-radius: 5px;
  padding: 1px 6px;
}
.admin-body .text-dim { color: #A5AEBF; font-style: italic; }
.admin-body table.data .thumb {
  display: block;
  width: 46px;
  height: 34px;
  object-fit: cover;
  border-radius: var(--a-r-xs);
  background: var(--a-brand-bg);
  border: 1px solid var(--a-line-soft);
}
.admin-body .slider-edit-preview {
  display: block;
  width: min(100%, 560px);
  aspect-ratio: 16 / 7;
  margin-top: 10px;
  object-fit: cover;
  border: 1px solid var(--a-line);
  border-radius: var(--a-r-sm);
  background: #1E1330;
}
.admin-body .row-actions { display: inline-flex; gap: 5px; justify-content: flex-end; }
.admin-body .row-actions .btn { padding: 0 9px; }

.row-ico {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
}
.ico-btn {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  padding: 0;
  background: var(--a-surface);
  color: var(--a-ink-2);
  border: 1px solid var(--a-line);
  border-radius: var(--a-r-xs);
  box-shadow: var(--a-sh-xs);
  cursor: pointer;
  transition: background-color var(--a-fast), color var(--a-fast), border-color var(--a-fast);
}
.ico-btn:hover {
  background: var(--a-surface-2);
  color: var(--a-ink);
  border-color: var(--a-muted);
}
.ico-btn svg { width: 15px; height: 15px; display: block; }
.ico-btn:focus-visible {
  outline: none;
  box-shadow: var(--a-ring);
}
.ico-btn-danger { color: #A11B2E; border-color: #F0C3C9; }
.ico-btn-danger:hover {
  background: #A11B2E;
  border-color: #A11B2E;
  color: #fff;
}

.data th.col-status,
.data td.col-status { width: 1%; white-space: nowrap; }
.admin-body table.data td.col-status { padding-left: 9px; padding-right: 9px; }
.admin-body .col-status .badge {
  padding: 1px 7px;
  font-size: .64rem;
  letter-spacing: .3px;
  gap: 4px;
}

.admin-body table.data th.col-order,
.admin-body table.data td.col-order {
  width: 1%;
  text-align: center;
  white-space: nowrap;
}

.admin-body table.data th.col-cat,
.admin-body table.data td.col-cat {
  max-width: 132px;
  white-space: normal;
  overflow-wrap: break-word;
}
.admin-body table.data th.col-date,
.admin-body table.data td.col-date { max-width: 96px; }
.admin-body table.data th.col-title,
.admin-body table.data td.col-title { min-width: 190px; }

@media (max-width: 1180px) {
  .admin-body table.data th.col-title,
  .admin-body table.data td.col-title { width: 46%; }
  .admin-body table.data th.col-cat,
  .admin-body table.data td.col-cat { max-width: 104px; }
  .admin-body table.data th.col-date,
  .admin-body table.data td.col-date { max-width: 82px; }
}
@media (max-width: 780px) {
  .admin-body table.data th.col-title,
  .admin-body table.data td.col-title { width: 58%; }
  .admin-body table.data th.col-cat,
  .admin-body table.data td.col-cat { max-width: 84px; }
}

.admin-body .badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 9px;
  border-radius: var(--a-r-pill);
  font-size: .69rem;
  font-weight: 700;
  letter-spacing: .5px;
  text-transform: uppercase;
  line-height: 1.6;
  white-space: nowrap;
  border: 1px solid transparent;
}
.admin-body .badge::before {
  content: "";
  width: 5px; height: 5px;
  border-radius: 50%;
  background: currentColor;
  flex: none;
}
.admin-body .badge-on, .admin-body .badge-pub {
  background: var(--ok-bg); color: var(--ok-fg); border-color: #BFE8D2;
}
.admin-body .badge-off {
  background: #F0ECF6; color: var(--a-muted); border-color: #E1D9EC;
}
.admin-body .badge-off::before { background: #A99DBA; }
.admin-body .badge-draft {
  background: var(--warn-bg); color: var(--warn-fg); border-color: #F2DFB2;
}
.admin-body .badge-new {
  background: var(--a-accent-bg); color: #B0560A; border-color: #F7D6B4;
}

.admin-body .alert {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 11px 15px;
  margin-bottom: 16px;
  font-size: .865rem;
  line-height: 1.5;
  border-radius: var(--a-r-md);
  border: 1px solid;
  background: var(--a-surface);
  box-shadow: var(--a-sh-xs);
}
.admin-body .alert::before {
  content: "";
  width: 18px; height: 18px;
  flex: none;
  margin-top: 1px;
  border-radius: 50%;
  background: currentColor;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: 18px;
  mask-size: 18px;
}
.admin-body .alert-ok {
  background: var(--ok-bg);
  border-color: #BFE8D2;
  color: #0F4A2B;
}
.admin-body .alert-ok::before {
  background: var(--ok-fg);
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
}
.admin-body .alert-error {
  background: var(--err-bg);
  border-color: #F5C4CB;
  color: #8B1524;
}
.admin-body .alert-error::before {
  background: var(--err-fg);
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M12 8v5M12 16.5v.5'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M12 8v5M12 16.5v.5'/%3E%3C/svg%3E");
}

.admin-body .metrics:not(.dash-hero-main .metrics) {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 22px;
}
.admin-body .dash-hero-main .metrics {
  display: grid;
  gap: 12px;
  margin-bottom: 0;
}
.admin-body .metric {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 17px 18px;
  background: var(--a-surface);
  border: 1px solid var(--a-line);
  border-radius: var(--a-r-lg);
  box-shadow: var(--a-sh-sm);
  overflow: hidden;
  transition: box-shadow var(--a-fast), transform var(--a-fast);
}
.admin-body .metric:hover { box-shadow: var(--a-sh-md); transform: translateY(-1px); }

.admin-body .metric-ico {
  width: 42px; height: 42px;
  flex: none;
  border-radius: var(--a-r-md);
  display: grid; place-items: center;
  background: var(--a-brand-bg);
  color: var(--a-brand);
}
.admin-body .metric-ico svg { width: 21px; height: 21px; }
.admin-body .m-orange .metric-ico { background: var(--a-accent-bg); color: var(--a-accent-ink); }
.admin-body .m-teal   .metric-ico { background: #DFF5F2; color: #12857B; }
.admin-body .m-rose   .metric-ico { background: #FCE7EF; color: #C22A5F; }

.admin-body .metric-body { min-width: 0; }
.admin-body .metric-num {
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--a-ink);
  line-height: 1.15;
  letter-spacing: -.4px;
}
.admin-body .metric-label {
  font-size: .7rem;
  font-weight: 700;
  color: var(--a-muted);
  text-transform: uppercase;
  letter-spacing: .7px;
  line-height: 1.4;
}

.admin-body .grid { display: grid; gap: 18px; }
.admin-body .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.admin-body .empty-state {
  padding: 46px 24px;
  text-align: center;
  background: var(--a-surface-2);
  border: 1px dashed var(--a-brand-line);
  border-radius: var(--a-r-md);
  color: var(--a-muted);
  font-size: .9rem;
  line-height: 1.6;
}
.admin-body .empty-state h2 { margin: 0 0 6px; font-size: 1.02rem; color: var(--a-ink); }
.admin-body .empty-state p { margin: 0 0 16px; }

.admin-body .text-muted { color: var(--a-muted); }
.admin-body .helper { font-size: .8rem; color: var(--a-muted); }
.admin-body .nowrap { white-space: nowrap; }
.admin-body .mt-0 { margin-top: 0; }
.admin-body .mb-0 { margin-bottom: 0; }
.admin-body .mt-20 { margin-top: 20px; }

.login-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px;
  font-size: 15px;
  background:
    radial-gradient(1100px 520px at 12% -8%, var(--a-accent-glow), transparent 60%),
    radial-gradient(760px 440px at 92% 108%, var(--a-accent-glow), transparent 64%),
    linear-gradient(145deg, var(--a-brand-deep) 0%, var(--a-brand-ink) 52%, var(--a-brand) 100%);
}
.login-card {
  width: 100%;
  max-width: 396px;
  padding: 32px 30px 26px;
  background: rgba(255, 255, 255, .78);
  -webkit-backdrop-filter: blur(20px) saturate(155%);
  backdrop-filter: blur(20px) saturate(155%);
  border-radius: 20px;
  box-shadow: 0 26px 70px rgba(20, 8, 38, .34), inset 0 1px 0 rgba(255, 255, 255, .75);
  border: 1px solid rgba(255, 255, 255, .64);
}
.login-brand { text-align: center; margin-bottom: 24px; }
.login-brand .mark {
  width: 56px; height: 56px;
  margin: 0 auto 13px;
  border-radius: 16px;
  background: linear-gradient(140deg, var(--a-accent), var(--a-accent-ink));
  display: grid; place-items: center;
  color: #fff;
  box-shadow: 0 6px 18px var(--a-accent-shadow-strong);
}
.login-brand .mark svg { width: 30px; height: 30px; stroke-width: 1.9; }
.login-brand .mark.has-logo {
  padding: 5px;
  background: rgba(255, 255, 255, .88);
  border: 1px solid rgba(255, 255, 255, .8);
}
.login-brand .mark img { width: 100%; height: 100%; object-fit: contain; border-radius: 11px; }
.login-brand h1 { margin: 0 0 3px; font-size: 1.08rem; color: var(--a-ink); line-height: 1.3; }
.login-brand p { margin: 0; font-size: .78rem; color: var(--a-muted); }
.login-card .form-row { margin-bottom: 14px; }
.login-card .form-row > label {
  display: block;
  margin-bottom: 5px;
  font-size: .78rem;
  font-weight: 600;
  color: var(--a-ink-2);
}
.login-card .btn { height: 38px; font-size: .9rem; }
.login-card input[type="text"],
.login-card input[type="password"] { min-height: 38px; }
.login-foot {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--a-line-soft);
  text-align: center;
  font-size: .82rem;
}
.login-foot a { font-weight: 600; text-decoration: none; }
.login-foot a:hover { text-decoration: underline; }
.login-hint {
  margin-top: 16px;
  padding: 11px 13px;
  background: var(--a-brand-bg);
  border: 1px dashed var(--a-brand-line);
  border-radius: var(--a-r-sm);
  font-size: .8rem;
  color: var(--a-brand-ink);
  text-align: center;
}
.login-hint code { background: #fff; padding: 1px 5px; border-radius: 4px; font-size: .92em; }

.site-logo-settings {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--a-line-soft);
}
.site-logo-settings h3 { margin: 0 0 4px; font-size: .95rem; color: var(--a-ink); }
.site-logo-settings p { margin: 0; font-size: .8rem; color: var(--a-muted); }
.site-logo-settings form { grid-column: 1 / -1; }
.site-logo-settings .form-row { margin-bottom: 12px; }
.site-logo-preview {
  width: 64px;
  height: 64px;
  padding: 5px;
  object-fit: contain;
  background: var(--a-surface-2);
  border: 1px solid var(--a-line-soft);
  border-radius: 14px;
}

@media (max-width: 1200px) {
  .admin-body .metrics:not(.dash-hero-main .metrics) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .admin-body .grid-2 { grid-template-columns: 1fr; }
  .admin-body .form-grid-2 { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .admin-side {
    position: fixed;
    inset: 0 auto 0 0;
    height: 100dvh;
    transform: translateX(-100%);
    transition: transform .22s var(--ease);
    box-shadow: var(--a-sh-lg);
    background: linear-gradient(178deg,
      var(--a-brand-overlay-mobile-1) 0%,
      var(--a-brand-overlay-mobile-2) 55%,
      var(--a-brand-overlay-mobile-3) 100%);
  }
  .admin-side.is-open { transform: none; }
  .admin-burger { display: inline-flex; }
  .admin-content { padding: 18px 16px 44px; }
}

@media (max-width: 720px) {
  .admin-body .metrics:not(.dash-hero-main .metrics) { grid-template-columns: 1fr; gap: 12px; }
  .admin-body .panel-body { padding: 15px; }
  .admin-body .panel-head { padding: 12px 15px; }
  .admin-body table.data th,
  .admin-body table.data td { padding: 9px 12px; }
  .admin-body .row-actions { flex-wrap: wrap; }
  .admin-h1 { font-size: calc(1.35rem + 2px); }
  .admin-sub { font-size: .82rem; }
  .admin-titlebar { margin-bottom: 18px; }
  .login-card { padding: 28px 22px 22px; }
}

@media (prefers-reduced-motion: reduce) {
  .admin-body *, .admin-body *::before, .admin-body *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

@media print {
  .admin-side, .admin-titlebar .admin-burger, .admin-backdrop, .row-actions, .row-ico, .form-actions { display: none !important; }
  .admin-body { background: #fff; font-size: 11pt; }
  .admin-content { padding: 0; max-width: none; }
  .admin-body .panel { box-shadow: none; border-color: #ccc; break-inside: avoid; }
}
