:root {
  --kidso-bg: #f7fbff;
  --kidso-panel: rgba(255, 255, 255, 0.78);
  --kidso-panel-strong: rgba(255, 255, 255, 0.92);
  --kidso-border: rgba(56, 83, 119, 0.14);
  --kidso-text: #17324d;
  --kidso-muted: #667995;
  --kidso-primary: #2563eb;
  --kidso-cyan: #00b8d9;
  --kidso-mint: #16c79a;
  --kidso-pink: #f55f9d;
  --kidso-amber: #ffb020;
  --kidso-shadow: 0 20px 60px rgba(42, 72, 120, 0.16);
  --kidso-soft-shadow: 0 14px 40px rgba(42, 72, 120, 0.1);
}

html {
  scroll-behavior: smooth;
}

body.kidso-2026 {
  min-height: 100vh;
  color: var(--kidso-text);
  background:
    linear-gradient(120deg, rgba(37, 99, 235, 0.08), transparent 28%),
    linear-gradient(240deg, rgba(245, 95, 157, 0.08), transparent 30%),
    linear-gradient(180deg, rgba(22, 199, 154, 0.07), transparent 38%),
    linear-gradient(135deg, #f8fcff 0%, #eef7ff 48%, #fff8fd 100%);
  background-attachment: fixed;
  letter-spacing: 0;
}

body.kidso-2026::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(37, 99, 235, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 99, 235, 0.045) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.82), transparent 75%);
}

.kidso-shell,
#root {
  background: transparent !important;
}

.main-content {
  position: relative;
}

.main-content > .flex:first-child {
  margin-top: 0.5rem;
  padding: 1.1rem 1.25rem;
  border: 1px solid var(--kidso-border);
  border-radius: 1.25rem;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.74), rgba(255, 255, 255, 0.48));
  box-shadow: var(--kidso-soft-shadow);
  backdrop-filter: blur(18px) saturate(1.4);
}

.main-content h2 {
  color: #132f4c !important;
  font-weight: 700 !important;
}

.header-container {
  margin: 0.75rem 0.75rem 0;
  width: calc(100% - 1.5rem) !important;
  border: 1px solid var(--kidso-border);
  border-radius: 1.25rem;
  background: rgba(255, 255, 255, 0.72) !important;
  box-shadow: var(--kidso-soft-shadow);
  backdrop-filter: blur(18px) saturate(1.55);
}

.main-sidebar > div {
  margin: 0.75rem 0 0.75rem 0.75rem;
  height: calc(100vh - 1.5rem) !important;
  border: 1px solid var(--kidso-border) !important;
  border-radius: 1.5rem;
  background: rgba(255, 255, 255, 0.78) !important;
  box-shadow: var(--kidso-soft-shadow);
  backdrop-filter: blur(18px) saturate(1.55);
}

.main-sidebar img[alt="logo"] {
  filter: drop-shadow(0 12px 22px rgba(37, 99, 235, 0.22));
}

.sidebar a,
.sidebar button,
.header button,
.btn {
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, border-color 180ms ease, color 180ms ease !important;
}

.sidebar a:hover,
.sidebar button:hover,
.header button:hover,
.btn:hover {
  transform: translateY(-1px);
}

.sidebar .active,
.sidebar [class*="bg-primary/10"],
.sidebar [class*="dark:bg-navy-600"] {
  box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.18), 0 12px 26px rgba(37, 99, 235, 0.14);
}

.card,
.popper-box,
.relative.w-full.max-w-lg,
.relative.w-full.origin-bottom {
  border: 1px solid var(--kidso-border) !important;
  border-radius: 1.25rem !important;
  background: var(--kidso-panel) !important;
  box-shadow: var(--kidso-shadow) !important;
  backdrop-filter: blur(18px) saturate(1.45);
}

.card {
  overflow: hidden;
}

.card:hover {
  border-color: rgba(37, 99, 235, 0.28) !important;
  box-shadow: 0 24px 70px rgba(37, 99, 235, 0.18) !important;
}

.kidso-module-card {
  position: relative;
  isolation: isolate;
  min-height: 8.5rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 1.35rem !important;
  box-shadow: 0 18px 44px rgba(31, 72, 136, 0.18);
}

.kidso-module-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.3), transparent 40%),
    linear-gradient(250deg, rgba(255, 255, 255, 0.28), transparent 34%);
}

.kidso-module-card::after {
  content: "";
  position: absolute;
  right: -2.4rem;
  bottom: -2.4rem;
  width: 7.5rem;
  height: 7.5rem;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 999px;
}

.kidso-module-card:hover {
  transform: translateY(-4px) scale(1.01);
}

.kidso-module-icon {
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.6), 0 12px 26px rgba(15, 23, 42, 0.15);
}

.kidso-module-card p {
  max-width: 13rem;
  text-shadow: 0 2px 18px rgba(15, 23, 42, 0.22);
}

.btn {
  border-radius: 999px !important;
}

.btn.bg-primary,
.btn[class*="bg-primary"] {
  background: linear-gradient(135deg, var(--kidso-primary), var(--kidso-cyan)) !important;
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.22);
}

.form-input,
.form-select,
select,
textarea,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="date"] {
  border-color: rgba(56, 83, 119, 0.16) !important;
  border-radius: 0.95rem !important;
  background-color: rgba(255, 255, 255, 0.72) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.58);
}

.form-input:focus,
.form-select:focus,
select:focus,
textarea:focus,
input:focus {
  border-color: rgba(37, 99, 235, 0.55) !important;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.13) !important;
}

table {
  border-collapse: separate !important;
  border-spacing: 0;
}

thead th,
.gridjs-th {
  background: linear-gradient(180deg, rgba(235, 245, 255, 0.96), rgba(221, 238, 255, 0.88)) !important;
  color: #18324e !important;
  letter-spacing: 0 !important;
}

tbody tr,
.gridjs-tr {
  transition: background 160ms ease, transform 160ms ease;
}

tbody tr:hover,
.gridjs-tr:hover {
  background: rgba(37, 99, 235, 0.045) !important;
}

.badge,
.tag {
  border-radius: 999px !important;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.32);
}

.avatar img {
  box-shadow: 0 10px 24px rgba(42, 72, 120, 0.18);
}

.swiper,
.swiper img,
.swiper video {
  border-radius: 1.25rem 1.25rem 0 0 !important;
}

.app-preloader {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  width: 100%;
  height: 100%;
  place-content: center;
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.12), transparent 48%),
    var(--kidso-bg) !important;
}

.app-preloader-inner {
  position: relative;
  display: inline-block;
  width: 3.25rem !important;
  height: 3.25rem !important;
  border-radius: 999px;
  background:
    conic-gradient(from 0deg, var(--kidso-primary), var(--kidso-cyan), var(--kidso-mint), var(--kidso-pink), var(--kidso-primary));
  box-shadow: 0 0 60px rgba(37, 99, 235, 0.22);
  animation: kidso-orbit 1.2s linear infinite;
}

.app-preloader-inner::after {
  content: "";
  position: absolute;
  inset: 0.55rem;
  border-radius: inherit;
  background: var(--kidso-bg);
}

body.kidso-2026 #root[x-cloak] {
  display: flex !important;
}

.kidso-public-nav {
  position: fixed;
  top: 1rem;
  left: 50%;
  z-index: 40;
  display: flex;
  width: min(calc(100% - 2rem), 1120px);
  min-height: 4rem;
  transform: translateX(-50%);
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border: 1px solid var(--kidso-border);
  border-radius: 1.35rem;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--kidso-soft-shadow);
  padding: 0.65rem 0.8rem;
  backdrop-filter: blur(18px) saturate(1.45);
}

.kidso-public-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: #132f4c;
  font-weight: 800;
}

.kidso-public-brand img {
  width: 2.35rem;
  height: 2.35rem;
}

.kidso-public-nav-links {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.kidso-public-nav-links a {
  display: inline-flex;
  min-height: 2.5rem;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0 1rem;
  color: #35516f;
  font-size: 0.9rem;
  font-weight: 650;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.kidso-public-nav-links a:hover {
  background: rgba(37, 99, 235, 0.08);
  color: var(--kidso-primary);
  transform: translateY(-1px);
}

.kidso-public-nav-links .kidso-public-nav-primary {
  background: linear-gradient(135deg, var(--kidso-primary), var(--kidso-cyan));
  color: white;
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.22);
}

.kidso-public-home main > .flex:first-child {
  min-height: 100vh;
  padding-top: 5.75rem;
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.92), rgba(235, 247, 255, 0.74) 52%, rgba(255, 249, 253, 0.88)),
    linear-gradient(135deg, rgba(37, 99, 235, 0.08), transparent 58%);
}

.kidso-public-home .max-w-\[700px\] {
  max-width: 760px;
}

.kidso-public-home h1.text-3xl {
  max-width: 13ch;
  color: #122b46 !important;
  letter-spacing: 0;
}

.kidso-public-lead {
  max-width: 42rem;
  color: #52677f;
  line-height: 1.75;
}

.kidso-public-actions {
  flex-wrap: wrap;
  gap: 0.75rem;
}

.kidso-public-cta {
  display: inline-flex;
  min-height: 3rem;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0 1.15rem;
  font-weight: 750;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.kidso-public-cta:hover {
  transform: translateY(-2px);
}

.kidso-public-cta-primary {
  background: linear-gradient(135deg, var(--kidso-primary), var(--kidso-cyan));
  color: white;
  box-shadow: 0 16px 32px rgba(37, 99, 235, 0.22);
}

.kidso-public-cta-secondary {
  border: 1px solid rgba(37, 99, 235, 0.18);
  background: rgba(255, 255, 255, 0.68);
  color: #17324d;
  box-shadow: var(--kidso-soft-shadow);
}

.kidso-public-metrics {
  display: grid;
  max-width: 42rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
  padding-top: 1.5rem;
}

.kidso-public-metrics div {
  border: 1px solid var(--kidso-border);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.66);
  padding: 0.85rem;
  box-shadow: var(--kidso-soft-shadow);
  backdrop-filter: blur(12px);
}

.kidso-public-metrics strong,
.kidso-public-metrics span {
  display: block;
}

.kidso-public-metrics strong {
  color: #17324d;
  font-size: 0.96rem;
}

.kidso-public-metrics span {
  margin-top: 0.25rem;
  color: var(--kidso-muted);
  font-size: 0.8rem;
  line-height: 1.35;
}

.kidso-public-home .preview-object {
  border-left: 1px solid rgba(37, 99, 235, 0.1);
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.12), transparent 50%),
    linear-gradient(45deg, rgba(0, 184, 217, 0.12), transparent 55%),
    url("../main/preview.png") center / cover no-repeat;
  box-shadow: inset 24px 0 70px rgba(37, 99, 235, 0.08);
}

.kidso-public-fab {
  border: 1px solid rgba(255, 255, 255, 0.52);
  background: rgba(255, 255, 255, 0.74) !important;
  color: #17324d !important;
  box-shadow: var(--kidso-soft-shadow) !important;
  backdrop-filter: blur(16px);
}

.kidso-public-fab-left {
  left: 1rem !important;
}

.kidso-public-fab-top {
  display: none !important;
}

.kidso-partners-page {
  padding-top: 1.4rem;
}

.kidso-partners-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.25rem;
  align-items: end;
  border: 1px solid var(--kidso-border);
  border-radius: 1.5rem;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.82), rgba(235, 247, 255, 0.66)),
    linear-gradient(235deg, rgba(245, 95, 157, 0.08), transparent 42%);
  box-shadow: var(--kidso-shadow);
  padding: clamp(1.25rem, 3vw, 2.5rem);
  backdrop-filter: blur(18px) saturate(1.4);
}

.kidso-section-kicker {
  display: inline-flex;
  min-height: 1.9rem;
  align-items: center;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.1);
  color: var(--kidso-primary);
  font-size: 0.78rem;
  font-weight: 800;
  padding: 0 0.75rem;
  text-transform: uppercase;
}

.kidso-partners-hero h1 {
  margin-top: 0.85rem;
  color: #132f4c;
  font-size: clamp(2rem, 4vw, 3.7rem);
  font-weight: 850;
  line-height: 1.04;
}

.kidso-partners-hero p {
  max-width: 58rem;
  margin-top: 0.9rem;
  color: #52677f;
  font-size: 1rem;
  line-height: 1.7;
}

.kidso-partners-summary {
  min-width: 13rem;
  border: 1px solid rgba(37, 99, 235, 0.16);
  border-radius: 1.25rem;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--kidso-soft-shadow);
  padding: 1rem;
}

.kidso-partners-summary strong,
.kidso-partners-summary span {
  display: block;
}

.kidso-partners-summary strong {
  color: var(--kidso-primary);
  font-size: 2.5rem;
  line-height: 1;
}

.kidso-partners-summary span {
  margin-top: 0.4rem;
  color: var(--kidso-muted);
  font-weight: 650;
}

.kidso-partners-toolbar {
  gap: 1rem;
}

.kidso-partner-card {
  position: relative;
  min-height: 16rem;
}

.kidso-partner-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(120deg, rgba(37, 99, 235, 0.08), transparent 36%),
    linear-gradient(240deg, rgba(22, 199, 154, 0.08), transparent 34%);
}

.kidso-partner-card > div {
  position: relative;
}

.kidso-partner-card .avatar {
  width: 5.5rem;
  height: 5.5rem;
}

.kidso-partner-card h3 {
  text-align: center;
}

.kidso-partner-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.45rem;
  margin-top: 0.85rem;
}

.kidso-partner-meta span {
  display: inline-flex;
  min-height: 1.8rem;
  align-items: center;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.08);
  color: #35516f;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0 0.65rem;
}

.kidso-partner-login {
  display: inline-flex;
  min-height: 2.5rem;
  align-items: center;
  justify-content: center;
  margin-top: 1rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--kidso-primary), var(--kidso-cyan));
  color: white;
  font-size: 0.86rem;
  font-weight: 750;
  padding: 0 1rem;
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.2);
}

.dark body.kidso-2026,
body.kidso-2026.dark,
.dark .kidso-shell {
  --kidso-panel: rgba(15, 28, 49, 0.74);
  --kidso-panel-strong: rgba(15, 28, 49, 0.9);
  --kidso-border: rgba(142, 178, 255, 0.16);
  --kidso-text: #eaf4ff;
  --kidso-muted: #9eb2ce;
}

.dark .header-container,
.dark .main-sidebar > div,
.dark .card,
.dark .popper-box,
.dark .relative.w-full.max-w-lg,
.dark .relative.w-full.origin-bottom {
  background: rgba(11, 23, 42, 0.75) !important;
  border-color: rgba(142, 178, 255, 0.16) !important;
}

.dark .main-content > .flex:first-child {
  background: linear-gradient(120deg, rgba(11, 23, 42, 0.72), rgba(11, 23, 42, 0.46));
}

.dark .main-content h2 {
  color: #eff7ff !important;
}

.dark thead th,
.dark .gridjs-th {
  background: linear-gradient(180deg, rgba(20, 38, 65, 0.96), rgba(14, 31, 55, 0.92)) !important;
  color: #e8f3ff !important;
}

.dark .kidso-public-nav,
.dark .kidso-public-metrics div,
.dark .kidso-partners-hero,
.dark .kidso-partners-summary,
.dark .kidso-public-cta-secondary {
  background: rgba(11, 23, 42, 0.76);
  border-color: rgba(142, 178, 255, 0.16);
}

.dark .kidso-public-brand,
.dark .kidso-public-nav-links a,
.dark .kidso-public-cta-secondary,
.dark .kidso-partners-hero h1,
.dark .kidso-public-home h1.text-3xl,
.dark .kidso-public-metrics strong {
  color: #eff7ff !important;
}

.dark .kidso-public-lead,
.dark .kidso-partners-hero p,
.dark .kidso-public-metrics span,
.dark .kidso-partners-summary span {
  color: #a9bad3;
}

@media (max-width: 640px) {
  .header-container {
    margin: 0.5rem;
    width: calc(100% - 1rem) !important;
    border-radius: 1rem;
  }

  .main-content > .flex:first-child {
    align-items: flex-start;
    border-radius: 1rem;
  }

  .kidso-module-card {
    min-height: 7rem;
  }

  .kidso-public-nav {
    top: 0.5rem;
    width: calc(100% - 1rem);
    min-height: auto;
    align-items: flex-start;
    border-radius: 1rem;
  }

  .kidso-public-brand span {
    display: none;
  }

  .kidso-public-nav-links {
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .kidso-public-nav-links a {
    min-height: 2.15rem;
    padding: 0 0.65rem;
    font-size: 0.78rem;
  }

  .kidso-public-home main > .flex:first-child {
    padding-top: 5.25rem;
  }

  .kidso-public-home h1.text-3xl {
    max-width: 100%;
  }

  .kidso-public-actions {
    display: grid !important;
    grid-template-columns: 1fr;
  }

  .kidso-public-metrics {
    grid-template-columns: 1fr;
  }

  .kidso-public-fab {
    display: none !important;
  }

  .kidso-partners-hero {
    grid-template-columns: 1fr;
    border-radius: 1rem;
  }

  .kidso-partners-summary {
    min-width: 0;
  }

  .kidso-partners-toolbar {
    align-items: stretch !important;
    flex-direction: column;
  }

  .kidso-partners-toolbar > div {
    justify-content: stretch;
  }

  .kidso-partners-toolbar .kidso-public-cta,
  .kidso-partners-toolbar label {
    width: 100%;
  }
}

/* Smart home 2026 */
.kidso-smart-home {
  --kidso-home-ink: #13233a;
  --kidso-home-muted: #667a92;
}

.kidso-home-hero {
  position: relative;
  display: grid;
  min-height: 19rem;
  grid-template-columns: minmax(0, 1fr) minmax(14rem, 22rem);
  gap: 2rem;
  align-items: center;
  overflow: hidden;
  border: 1px solid rgba(140, 164, 190, 0.24);
  border-radius: 1.35rem;
  background:
    linear-gradient(135deg, rgba(19, 35, 58, 0.94), rgba(37, 99, 235, 0.78)),
    url("https://kidso.tn/lineone/images/illustrations/dashboard-check.svg");
  background-position: center right;
  background-repeat: no-repeat;
  background-size: auto 115%;
  box-shadow: 0 28px 80px rgba(20, 38, 68, 0.18);
  padding: clamp(1.25rem, 3vw, 2.25rem);
  isolation: isolate;
}

.kidso-home-hero::before {
  content: "";
  position: absolute;
  inset: -35% 40% auto auto;
  height: 28rem;
  width: 28rem;
  border-radius: 50%;
  background: conic-gradient(from 90deg, rgba(6, 182, 212, 0.34), rgba(255, 255, 255, 0.18), rgba(37, 99, 235, 0.24), rgba(6, 182, 212, 0.34));
  filter: blur(8px);
  opacity: 0.9;
  animation: kidsoSpin 18s linear infinite;
  z-index: -1;
}

.kidso-hero-content {
  max-width: 44rem;
}

.kidso-hero-kicker,
.kidso-hero-actions,
.kidso-primary-action,
.kidso-secondary-action,
.kidso-top-module,
.kidso-add-post-btn,
.kidso-feed-toolbar,
.kidso-insight-grid article {
  display: flex;
  align-items: center;
}

.kidso-hero-kicker {
  width: fit-content;
  gap: 0.55rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0;
  padding: 0.45rem 0.78rem;
  backdrop-filter: blur(18px);
}

.kidso-live-dot {
  height: 0.55rem;
  width: 0.55rem;
  border-radius: 999px;
  background: #2dd4bf;
  box-shadow: 0 0 0 0.35rem rgba(45, 212, 191, 0.18);
  animation: kidsoPulse 1.8s ease-in-out infinite;
}

.kidso-home-hero h2 {
  margin-top: 1rem;
  color: #fff;
  font-size: clamp(2rem, 5vw, 4.5rem);
  font-weight: 950;
  line-height: 0.98;
}

.kidso-home-hero p {
  margin-top: 1rem;
  max-width: 36rem;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(0.98rem, 1.8vw, 1.15rem);
  font-weight: 650;
  line-height: 1.7;
}

.kidso-hero-actions {
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.4rem;
}

.kidso-primary-action,
.kidso-secondary-action {
  min-height: 3rem;
  gap: 0.6rem;
  border-radius: 999px;
  font-weight: 850;
  padding: 0 1rem;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.kidso-primary-action {
  background: #fff;
  color: #1d4ed8;
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.22);
}

.kidso-secondary-action {
  border: 1px solid rgba(255, 255, 255, 0.26);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.kidso-primary-action:hover,
.kidso-secondary-action:hover,
.kidso-top-module:hover,
.kidso-add-post-btn:hover {
  transform: translateY(-2px);
}

.kidso-hero-orbit {
  position: relative;
  display: grid;
  aspect-ratio: 1;
  width: min(21rem, 100%);
  place-items: center;
  justify-self: end;
}

.kidso-hero-orbit strong {
  display: grid;
  height: 8.5rem;
  width: 8.5rem;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 2rem;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font-size: 3rem;
  font-weight: 950;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.24), 0 24px 60px rgba(4, 13, 29, 0.22);
  backdrop-filter: blur(18px);
}

.kidso-orbit-ring {
  position: absolute;
  inset: 1rem;
  border: 1px dashed rgba(255, 255, 255, 0.34);
  border-radius: 50%;
  animation: kidsoSpin 26s linear infinite reverse;
}

.kidso-orbit-node {
  position: absolute;
  display: grid;
  height: 3.3rem;
  width: 3.3rem;
  place-items: center;
  border-radius: 1.1rem;
  background: rgba(255, 255, 255, 0.92);
  color: #2563eb;
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.18);
  animation: kidsoFloat 4s ease-in-out infinite;
}

.kidso-orbit-node-a {
  top: 1.3rem;
  left: 2.5rem;
}

.kidso-orbit-node-b {
  right: 0.6rem;
  top: 7.3rem;
  animation-delay: -1.2s;
}

.kidso-orbit-node-c {
  bottom: 2rem;
  left: 4.7rem;
  animation-delay: -2.2s;
}

.kidso-top-modules {
  display: grid;
  grid-template-columns: repeat(6, minmax(8.5rem, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}

.kidso-top-module {
  position: relative;
  min-height: 6.6rem;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  border: 1px solid rgba(140, 164, 190, 0.22);
  border-radius: 1.1rem;
  background: rgba(255, 255, 255, 0.82);
  color: var(--kidso-home-ink);
  padding: 0.8rem;
  text-align: center;
  box-shadow: 0 16px 44px rgba(31, 41, 55, 0.08);
  backdrop-filter: blur(18px);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.kidso-top-module::before {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 0.25rem;
  background: #2563eb;
}

.kidso-top-module i {
  display: grid;
  height: 2.5rem;
  width: 2.5rem;
  place-items: center;
  border-radius: 0.95rem;
  background: rgba(37, 99, 235, 0.1);
  color: #2563eb;
  font-size: 1.05rem;
}

.kidso-top-module span {
  margin-top: 0.55rem;
  max-width: 100%;
  overflow: hidden;
  font-size: 0.86rem;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.kidso-top-module small {
  color: var(--kidso-home-muted);
  font-size: 0.68rem;
  font-weight: 800;
}

.kidso-top-module:hover {
  border-color: rgba(37, 99, 235, 0.2);
  box-shadow: 0 22px 54px rgba(37, 99, 235, 0.14);
}

.kidso-top-module.is-rose::before,
.kidso-top-module.is-rose i {
  background-color: rgba(244, 63, 94, 0.12);
  color: #e11d48;
}

.kidso-top-module.is-amber::before,
.kidso-top-module.is-amber i {
  background-color: rgba(245, 158, 11, 0.14);
  color: #b45309;
}

.kidso-top-module.is-cyan::before,
.kidso-top-module.is-cyan i {
  background-color: rgba(6, 182, 212, 0.12);
  color: #0891b2;
}

.kidso-top-module.is-violet::before,
.kidso-top-module.is-violet i {
  background-color: rgba(124, 58, 237, 0.12);
  color: #7c3aed;
}

.kidso-top-module.is-green::before,
.kidso-top-module.is-green i {
  background-color: rgba(16, 185, 129, 0.13);
  color: #059669;
}

.kidso-insight-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
  margin-top: 1rem;
}

.kidso-insight-grid article {
  min-height: 6.2rem;
  align-items: flex-start;
  flex-direction: column;
  justify-content: center;
  border: 1px solid rgba(140, 164, 190, 0.2);
  border-radius: 1.1rem;
  background: rgba(255, 255, 255, 0.78);
  padding: 1rem;
  box-shadow: 0 12px 34px rgba(31, 41, 55, 0.07);
}

.kidso-insight-grid span {
  color: var(--kidso-home-muted);
  font-size: 0.74rem;
  font-weight: 850;
}

.kidso-insight-grid strong {
  margin-top: 0.2rem;
  color: var(--kidso-home-ink);
  font-size: 1.9rem;
  font-weight: 950;
  line-height: 1;
}

.kidso-insight-grid small {
  margin-top: 0.35rem;
  color: #8aa0b8;
  font-weight: 750;
}

.kidso-hidden-module-grid {
  display: none !important;
}

.kidso-feed-toolbar {
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.35rem;
  padding: 0.35rem 0 0.85rem;
}

.kidso-feed-toolbar span {
  color: #64748b;
  font-size: 0.75rem;
  font-weight: 850;
  text-transform: uppercase;
}

.kidso-feed-toolbar h2 {
  color: var(--kidso-home-ink);
  font-size: clamp(1.35rem, 2vw, 2rem);
  font-weight: 950;
}

.kidso-add-post-btn {
  min-height: 2.85rem;
  gap: 0.55rem;
  border-radius: 999px;
  background: #13233a;
  color: #fff;
  font-weight: 900;
  padding: 0 1rem;
  box-shadow: 0 16px 36px rgba(19, 35, 58, 0.22);
  transition: transform 180ms ease, background 180ms ease;
}

.kidso-add-post-btn:hover {
  background: #2563eb;
}

.kidso-smart-home .card {
  overflow: hidden;
  border: 1px solid rgba(140, 164, 190, 0.22);
  border-radius: 1.1rem;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 16px 44px rgba(31, 41, 55, 0.08);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.kidso-smart-home .card:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 64px rgba(31, 41, 55, 0.13);
}

@keyframes kidsoSpin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes kidsoPulse {
  50% {
    transform: scale(0.72);
    box-shadow: 0 0 0 0.7rem rgba(45, 212, 191, 0.08);
  }
}

@keyframes kidsoFloat {
  50% {
    transform: translateY(-0.65rem);
  }
}

@media (max-width: 1280px) {
  .kidso-top-modules {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .kidso-home-hero {
    grid-template-columns: 1fr;
  }

  .kidso-hero-orbit {
    display: none;
  }

  .kidso-insight-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .kidso-home-hero {
    min-height: auto;
    border-radius: 1rem;
    padding: 1rem;
  }

  .kidso-top-modules {
    display: flex;
    overflow-x: auto;
    padding-bottom: 0.35rem;
    scroll-snap-type: x mandatory;
  }

  .kidso-top-module {
    min-width: 9.5rem;
    scroll-snap-align: start;
  }

  .kidso-insight-grid {
    grid-template-columns: 1fr;
  }

  .kidso-feed-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@keyframes kidso-orbit {
  to {
    transform: rotate(360deg);
  }
}

/* Admin workspace v2 */
body.kidso-2026 {
  font-family: Inter, Poppins, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body.kidso-2026 .header {
  z-index: 35;
}

body.kidso-2026 .main-content {
  min-height: 100vh;
  padding-top: 5.35rem;
}

body.kidso-2026 .main-content::before {
  content: "";
  position: fixed;
  inset-inline-start: 5.25rem;
  top: 0;
  bottom: 0;
  z-index: -1;
  width: 1px;
  background: linear-gradient(to bottom, transparent, rgba(37, 99, 235, 0.16), transparent);
}

body.kidso-2026 .main-content > .kidso-page-hero,
body.kidso-2026 .main-content > .flex:first-child {
  min-height: 4.75rem;
  gap: 1rem;
}

.kidso-page-hero {
  position: relative;
  overflow: hidden;
}

.kidso-page-hero::after {
  content: "";
  position: absolute;
  inset-inline-end: -4rem;
  bottom: -5rem;
  width: 11rem;
  height: 11rem;
  border: 1px solid rgba(37, 99, 235, 0.12);
  border-radius: 999px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.12), transparent 62%);
  pointer-events: none;
}

.kidso-hero-mark,
.main-content > .flex:first-child [class*="h-12"][class*="w-12"] {
  border: 1px solid rgba(255, 255, 255, 0.74);
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.12), rgba(6, 182, 212, 0.12)) !important;
  color: var(--kidso-primary);
  box-shadow: 0 14px 30px rgba(37, 99, 235, 0.16);
}

.kidso-hero-subtitle {
  color: var(--kidso-muted) !important;
}

.header-container {
  min-height: 4rem;
}

.header .menu-toggle span {
  background-color: currentColor;
  border-radius: 999px;
}

.header .clip-seven-segment-0,
.header [class*="clip-seven-segment"] {
  color: #2563eb !important;
}

.main-sidebar {
  z-index: 40;
}

.main-sidebar > div {
  width: 4.7rem !important;
}

.sidebar .main-sidebar a,
.sidebar .main-sidebar button {
  border: 1px solid transparent;
}

.sidebar .main-sidebar a:hover,
.sidebar .main-sidebar button:hover {
  border-color: rgba(37, 99, 235, 0.16);
  background: rgba(37, 99, 235, 0.08) !important;
}

.sidebar .main-sidebar a[class*="bg-"],
.sidebar .main-sidebar button[class*="bg-"] {
  border-color: rgba(37, 99, 235, 0.2);
  background: rgba(37, 99, 235, 0.1) !important;
}

.main-sidebar .avatar,
.main-sidebar .avatar img,
.header .avatar,
.header .avatar img {
  border-radius: 0.95rem !important;
}

.gridjs-wrapper,
.gridjs-container,
.gridjs-table,
.is-scrollbar-hidden.min-w-full.overflow-x-auto,
.overflow-x-auto {
  border-radius: 1.1rem !important;
}

.gridjs-container,
.gridjs-wrapper,
.gridjs-footer {
  border: 0 !important;
  box-shadow: none !important;
}

.gridjs-search,
.gridjs-pagination {
  padding: 0.75rem 0 !important;
}

.gridjs-search-input,
.gridjs-input,
.gridjs-pages button,
.gridjs-summary {
  border-color: rgba(56, 83, 119, 0.14) !important;
  border-radius: 999px !important;
}

.gridjs-search-input,
.gridjs-input {
  min-height: 2.65rem;
  background: rgba(255, 255, 255, 0.78) !important;
  padding-inline: 1rem !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.62);
}

.gridjs-pages button {
  min-width: 2.25rem;
  min-height: 2.25rem;
  margin-inline: 0.125rem;
  background: rgba(255, 255, 255, 0.76) !important;
  color: #36516f !important;
}

.gridjs-pages button:hover,
.gridjs-pages button.gridjs-currentPage {
  background: linear-gradient(135deg, var(--kidso-primary), var(--kidso-cyan)) !important;
  color: #fff !important;
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.2);
}

.gridjs-table,
.table,
table {
  overflow: hidden;
  border: 1px solid var(--kidso-border) !important;
  border-radius: 1.1rem;
  background: rgba(255, 255, 255, 0.72) !important;
  box-shadow: var(--kidso-soft-shadow);
}

td,
.gridjs-td {
  border-color: rgba(56, 83, 119, 0.09) !important;
  color: #29445f !important;
  vertical-align: middle;
}

tbody tr:nth-child(even),
.gridjs-tr:nth-child(even) {
  background: rgba(248, 252, 255, 0.72) !important;
}

.gridjs-th,
thead th {
  border-color: rgba(56, 83, 119, 0.1) !important;
  font-size: 0.76rem !important;
  text-transform: uppercase;
}

.gridjs-sort {
  filter: saturate(1.2);
}

.card > [class*="border-b"],
.popper-box > [class*="rounded-t"],
.relative.w-full.max-w-lg > [class*="rounded-t"],
.relative.w-full.origin-bottom > [class*="rounded-t"] {
  border-color: rgba(56, 83, 119, 0.12) !important;
  background: linear-gradient(135deg, rgba(235, 245, 255, 0.9), rgba(255, 255, 255, 0.72)) !important;
}

.fixed.inset-0.bg-slate-900\/60,
.fixed.inset-0 .absolute.inset-0.bg-slate-900\/60,
.absolute.inset-0.bg-slate-900\/60 {
  background: rgba(15, 23, 42, 0.48) !important;
  backdrop-filter: blur(8px);
}

.relative.w-full.max-w-lg,
.relative.w-full.origin-bottom,
[role="dialog"] .relative.w-full {
  border-radius: 1.25rem !important;
  overflow: hidden;
}

.dropdown-menu,
.popper-root .popper-box {
  border-radius: 1rem !important;
}

.btn.h-8.w-8,
.btn.h-7.w-7,
button.h-8.w-8,
button.h-7.w-7 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(56, 83, 119, 0.12);
  background: rgba(255, 255, 255, 0.7);
}

.btn.h-8.w-8:hover,
.btn.h-7.w-7:hover,
button.h-8.w-8:hover,
button.h-7.w-7:hover {
  border-color: rgba(37, 99, 235, 0.22);
  background: rgba(37, 99, 235, 0.08) !important;
}

.badge[class*="bg-"],
.tag[class*="bg-"] {
  font-weight: 750;
}

.line-clamp-1,
.line-clamp-2 {
  letter-spacing: 0;
}

.tom-select,
.ts-control,
.ts-dropdown {
  border-color: rgba(56, 83, 119, 0.16) !important;
  border-radius: 0.95rem !important;
}

.ts-control {
  min-height: 2.65rem;
  background: rgba(255, 255, 255, 0.72) !important;
}

.ts-dropdown {
  overflow: hidden;
  box-shadow: var(--kidso-shadow) !important;
}

.form-checkbox,
.form-radio {
  border-color: rgba(56, 83, 119, 0.28) !important;
}

input[type="file"]::file-selector-button {
  margin-inline-end: 0.75rem;
  border: 0;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.1);
  color: var(--kidso-primary);
  font-weight: 750;
  padding: 0.45rem 0.85rem;
}

.swiper,
video,
iframe {
  box-shadow: var(--kidso-soft-shadow);
}

.kidso-module-card.bg-primary,
.kidso-module-card[class*="bg-primary"] {
  background: linear-gradient(135deg, #2563eb, #06b6d4) !important;
}

.kidso-module-card.bg-secondary,
.kidso-module-card[class*="bg-secondary"] {
  background: linear-gradient(135deg, #7c3aed, #ec4899) !important;
}

.kidso-module-card.bg-success,
.kidso-module-card[class*="bg-success"] {
  background: linear-gradient(135deg, #10b981, #14b8a6) !important;
}

.kidso-module-card.bg-warning,
.kidso-module-card[class*="bg-warning"] {
  background: linear-gradient(135deg, #f59e0b, #f97316) !important;
}

.kidso-module-card.bg-info,
.kidso-module-card[class*="bg-info"] {
  background: linear-gradient(135deg, #0ea5e9, #2563eb) !important;
}

.kidso-module-card.bg-error,
.kidso-module-card[class*="bg-error"] {
  background: linear-gradient(135deg, #ef4444, #f97373) !important;
}

.kidso-module-card [class*="fa-"],
.kidso-module-icon [class*="fa-"] {
  line-height: 1;
}

.main-content .grid {
  letter-spacing: 0;
}

.main-content a:not(.btn):not([class*="kidso-module-card"]) {
  transition: color 160ms ease, background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.main-content a:not(.btn):hover {
  color: var(--kidso-primary);
}

.dark body.kidso-2026 .main-content::before,
body.kidso-2026.dark .main-content::before {
  background: linear-gradient(to bottom, transparent, rgba(142, 178, 255, 0.18), transparent);
}

.dark .gridjs-table,
.dark table,
.dark .gridjs-search-input,
.dark .gridjs-input,
.dark .gridjs-pages button,
.dark .ts-control,
.dark .btn.h-8.w-8,
.dark .btn.h-7.w-7,
.dark button.h-8.w-8,
.dark button.h-7.w-7 {
  background: rgba(11, 23, 42, 0.72) !important;
  border-color: rgba(142, 178, 255, 0.16) !important;
  color: #eaf4ff !important;
}

.dark td,
.dark .gridjs-td {
  color: #d6e6fb !important;
  border-color: rgba(142, 178, 255, 0.1) !important;
}

.dark tbody tr:nth-child(even),
.dark .gridjs-tr:nth-child(even) {
  background: rgba(20, 38, 65, 0.44) !important;
}

.dark .card > [class*="border-b"],
.dark .popper-box > [class*="rounded-t"],
.dark .relative.w-full.max-w-lg > [class*="rounded-t"],
.dark .relative.w-full.origin-bottom > [class*="rounded-t"] {
  background: linear-gradient(135deg, rgba(20, 38, 65, 0.92), rgba(11, 23, 42, 0.74)) !important;
}

@media (max-width: 768px) {
  body.kidso-2026 .main-content {
    padding-top: 4.75rem;
  }

  body.kidso-2026 .main-content::before {
    display: none;
  }

  .main-sidebar > div {
    width: 4.25rem !important;
  }

  .gridjs-search {
    width: 100%;
  }

  .gridjs-search-input {
    width: 100% !important;
  }

  .gridjs-pagination {
    align-items: flex-start !important;
    flex-direction: column;
    gap: 0.6rem;
  }

  .gridjs-pages {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
  }
}

/* Smart Platform 2026 shell */
:root {
  --kidso-sidebar-width: 18.5rem;
  --kidso-topbar-height: 5rem;
}

body.kidso-2026 {
  overflow-x: hidden;
  background:
    radial-gradient(circle at 12% 10%, rgba(37, 99, 235, 0.11), transparent 28rem),
    radial-gradient(circle at 90% 0%, rgba(16, 185, 129, 0.10), transparent 26rem),
    linear-gradient(135deg, #f8fbff 0%, #eef6ff 45%, #fbfdff 100%) !important;
}

body.kidso-2026 #root {
  display: block !important;
  min-height: 100vh;
}

.kidso-ai-sidebar {
  position: fixed;
  inset: 1rem auto 1rem 1rem;
  z-index: 45;
  display: flex;
  width: var(--kidso-sidebar-width);
  flex-direction: column;
  border: 1px solid rgba(140, 164, 190, 0.22);
  border-radius: 1.25rem;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 24px 70px rgba(31, 41, 55, 0.14);
  backdrop-filter: blur(22px) saturate(1.35);
}

.kidso-ai-brand {
  padding: 1rem;
}

.kidso-ai-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.kidso-ai-logo img {
  height: 2.75rem;
  width: 2.75rem;
  border-radius: 0.9rem;
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.18);
}

.kidso-ai-logo span,
.kidso-ai-profile div {
  display: grid;
  min-width: 0;
}

.kidso-ai-logo strong,
.kidso-ai-profile strong {
  overflow: hidden;
  color: #13233a;
  font-size: 0.95rem;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.kidso-ai-logo small,
.kidso-ai-profile span {
  color: #6b7f99;
  font-size: 0.75rem;
  font-weight: 700;
}

.kidso-ai-profile {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0 1rem 1rem;
  border: 1px solid rgba(37, 99, 235, 0.12);
  border-radius: 1rem;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(6, 182, 212, 0.06));
  padding: 0.8rem;
}

.kidso-ai-profile img {
  height: 2.65rem;
  width: 2.65rem;
  border-radius: 0.85rem;
  object-fit: cover;
}

.kidso-ai-nav {
  display: grid;
  gap: 0.35rem;
  overflow-y: auto;
  padding: 0 0.85rem 1rem;
}

.kidso-ai-nav a,
.kidso-ai-nav button {
  display: flex;
  min-height: 3rem;
  width: 100%;
  align-items: center;
  gap: 0.75rem;
  border: 1px solid transparent;
  border-radius: 0.95rem;
  color: #425a75;
  font-size: 0.9rem;
  font-weight: 780;
  padding: 0 0.8rem;
  text-align: start;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.kidso-ai-nav a i,
.kidso-ai-nav button i {
  display: inline-flex;
  width: 1.35rem;
  justify-content: center;
  color: #2563eb;
  font-size: 1rem;
}

.kidso-ai-nav a:hover,
.kidso-ai-nav button:hover,
.kidso-ai-nav .is-active {
  transform: translateX(2px);
  border-color: rgba(37, 99, 235, 0.18);
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.12), rgba(6, 182, 212, 0.08));
  color: #13233a;
  box-shadow: 0 12px 26px rgba(37, 99, 235, 0.12);
}

.kidso-ai-sidebar-footer {
  margin-top: auto;
  border-top: 1px solid rgba(140, 164, 190, 0.16);
  padding: 1rem;
}

.kidso-ai-status {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: #5f728b;
  font-size: 0.78rem;
  font-weight: 750;
  padding-bottom: 0.8rem;
}

.kidso-ai-status span {
  height: 0.55rem;
  width: 0.55rem;
  border-radius: 999px;
  background: #10b981;
  box-shadow: 0 0 0 0.35rem rgba(16, 185, 129, 0.12);
}

.kidso-ai-logout {
  display: flex;
  min-height: 2.75rem;
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  border-radius: 999px;
  background: #13233a;
  color: white;
  font-weight: 820;
  transition: transform 160ms ease, background 160ms ease;
}

.kidso-ai-logout:hover {
  transform: translateY(-1px);
  background: #2563eb;
}

.kidso-ai-topbar {
  position: fixed;
  top: 1rem;
  right: 1rem;
  left: calc(var(--kidso-sidebar-width) + 2rem);
  z-index: 36;
  display: grid;
  min-height: var(--kidso-topbar-height);
  grid-template-columns: minmax(0, 1fr) minmax(18rem, 30rem) auto;
  align-items: center;
  gap: 1rem;
  border: 1px solid rgba(140, 164, 190, 0.22);
  border-radius: 1.25rem;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 20px 60px rgba(31, 41, 55, 0.1);
  padding: 0.8rem 1rem;
  backdrop-filter: blur(22px) saturate(1.35);
}

.kidso-ai-topbar-left,
.kidso-ai-actions,
.kidso-ai-command {
  display: flex;
  align-items: center;
}

.kidso-ai-topbar-left {
  gap: 0.8rem;
  min-width: 0;
}

.kidso-ai-topbar-left span {
  color: #7a8da5;
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
}

.kidso-ai-topbar-left h1 {
  overflow: hidden;
  color: #13233a;
  font-size: clamp(1.1rem, 2vw, 1.55rem);
  font-weight: 900;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.kidso-ai-menu-toggle,
.kidso-ai-action {
  display: inline-flex;
  height: 2.65rem;
  width: 2.65rem;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(140, 164, 190, 0.22);
  border-radius: 0.9rem;
  background: rgba(255, 255, 255, 0.72);
  color: #2563eb;
}

.kidso-ai-menu-toggle {
  display: none;
}

.kidso-ai-command {
  min-height: 2.8rem;
  gap: 0.6rem;
  border: 1px solid rgba(140, 164, 190, 0.18);
  border-radius: 999px;
  background: rgba(248, 252, 255, 0.8);
  padding: 0 1rem;
}

.kidso-ai-command i {
  color: #8aa0b8;
}

.kidso-ai-command input {
  width: 100%;
  border: 0;
  background: transparent;
  color: #13233a;
  font-size: 0.9rem;
  outline: 0;
}

.kidso-ai-actions {
  justify-content: end;
  gap: 0.55rem;
}

.kidso-ai-action {
  position: relative;
}

.kidso-ai-action span {
  position: absolute;
  right: -0.35rem;
  top: -0.35rem;
  display: inline-flex;
  min-width: 1.25rem;
  height: 1.25rem;
  align-items: center;
  justify-content: center;
  border: 2px solid white;
  border-radius: 999px;
  background: #ef4444;
  color: white;
  font-size: 0.65rem;
  font-weight: 850;
}

.kidso-ai-user-pill {
  display: grid;
  min-height: 2.65rem;
  min-width: 9.5rem;
  justify-content: center;
  border: 1px solid rgba(37, 99, 235, 0.16);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(6, 182, 212, 0.08));
  color: #13233a;
  padding: 0.35rem 0.95rem;
}

.kidso-ai-user-pill strong,
.kidso-ai-user-pill small {
  overflow: hidden;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.kidso-ai-user-pill strong {
  font-size: 0.78rem;
  font-weight: 850;
}

.kidso-ai-user-pill small {
  color: #6b7f99;
  font-size: 0.68rem;
  font-weight: 800;
}

body.kidso-2026 .main-content {
  margin-left: calc(var(--kidso-sidebar-width) + 1rem);
  padding-top: calc(var(--kidso-topbar-height) + 2rem);
  padding-inline: 1rem !important;
}

body.kidso-2026 .main-content > .kidso-page-hero,
body.kidso-2026 .main-content > .flex:first-child {
  margin-top: 0;
}

@media (max-width: 1024px) {
  .kidso-ai-sidebar {
    transform: translateX(calc(-100% - 1.5rem));
    transition: transform 220ms ease;
  }

  body.kidso-menu-open .kidso-ai-sidebar {
    transform: translateX(0);
  }

  .kidso-ai-topbar {
    left: 1rem;
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .kidso-ai-command {
    display: none;
  }

  .kidso-ai-menu-toggle {
    display: inline-flex;
  }

  body.kidso-2026 .main-content {
    margin-left: 0;
  }
}

@media (max-width: 640px) {
  .kidso-ai-topbar {
    top: 0.5rem;
    right: 0.5rem;
    left: 0.5rem;
    min-height: 4.2rem;
    border-radius: 1rem;
    padding: 0.6rem;
  }

  .kidso-ai-actions .kidso-ai-user-pill {
    display: none;
  }

  .kidso-ai-sidebar {
    inset: 0.5rem auto 0.5rem 0.5rem;
    width: min(18rem, calc(100vw - 1rem));
  }

  body.kidso-2026 .main-content {
    padding-top: 5.5rem;
    padding-inline: 0.5rem !important;
  }
}

/* Mobile hardening for every Lineone/Kidso screen. */
html {
  min-width: 320px;
}

body.kidso-2026 {
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}

body.kidso-2026 *,
body.kidso-2026 *::before,
body.kidso-2026 *::after {
  min-width: 0;
}

body.kidso-2026 img,
body.kidso-2026 video,
body.kidso-2026 canvas,
body.kidso-2026 svg {
  max-width: 100%;
}

body.kidso-2026 input,
body.kidso-2026 select,
body.kidso-2026 textarea,
body.kidso-2026 button {
  max-width: 100%;
}

body.kidso-2026 .main-content {
  max-width: 100vw;
  overflow-x: clip;
}

body.kidso-2026 .gridjs-container,
body.kidso-2026 .gridjs-wrapper,
body.kidso-2026 .min-w-full.overflow-x-auto,
body.kidso-2026 .is-scrollbar-hidden.overflow-x-auto {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

body.kidso-2026 table,
body.kidso-2026 .gridjs-table {
  width: max-content;
  min-width: 100%;
}

body.kidso-2026 td,
body.kidso-2026 th,
body.kidso-2026 .gridjs-td,
body.kidso-2026 .gridjs-th {
  overflow-wrap: anywhere;
}

body.kidso-2026 .fixed.inset-0[role="dialog"] {
  overflow-y: auto !important;
}

body.kidso-2026 .fixed.inset-0[role="dialog"] > .relative,
body.kidso-2026 .fixed.inset-0[role="dialog"] > .card,
body.kidso-2026 .fixed.inset-0[role="dialog"] > div {
  max-width: min(100%, 42rem);
  max-height: calc(100dvh - 2rem);
  overflow-y: auto;
}

@supports not (overflow: clip) {
  body.kidso-2026 .main-content {
    overflow-x: hidden;
  }
}

@media (max-width: 768px) {
  body.kidso-2026 {
    background-attachment: scroll;
  }

  body.kidso-2026 .main-content {
    padding-bottom: 1.25rem;
  }

  body.kidso-2026 .main-content > .flex:first-child {
    flex-wrap: wrap;
    gap: 0.75rem;
    padding: 0.85rem;
  }

  body.kidso-2026 .main-content h1,
  body.kidso-2026 .main-content h2,
  body.kidso-2026 .main-content h3 {
    text-wrap: balance;
  }

  body.kidso-2026 .card,
  body.kidso-2026 .popper-box,
  body.kidso-2026 .relative.w-full.max-w-lg,
  body.kidso-2026 .relative.w-full.origin-bottom {
    border-radius: 1rem !important;
  }

  body.kidso-2026 form .grid.grid-cols-2,
  body.kidso-2026 form .grid.md\:grid-cols-2 {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  body.kidso-2026 .btn {
    white-space: normal;
  }

  body.kidso-2026 .gridjs-footer {
    gap: 0.75rem;
  }

  body.kidso-2026 .gridjs-pagination {
    flex-wrap: wrap;
    justify-content: flex-start;
  }
}

@media (max-width: 480px) {
  body.kidso-2026 .main-content {
    padding-inline: 0.35rem !important;
  }

  body.kidso-2026 .main-content > .flex:first-child {
    margin-inline: 0;
  }

  body.kidso-2026 .kidso-module-card {
    min-height: 7rem;
  }

  body.kidso-2026 .fixed.inset-0[role="dialog"] {
    align-items: stretch !important;
    justify-content: flex-start !important;
    padding: 0.5rem !important;
  }
}

/* Educational workspace polish */
body.kidso-2026 {
  background:
    linear-gradient(rgba(37, 99, 235, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 99, 235, 0.035) 1px, transparent 1px),
    linear-gradient(135deg, #f7fbff 0%, #f2fff9 42%, #fffaf0 100%) !important;
  background-size: 34px 34px, 34px 34px, auto;
}

.kidso-ai-sidebar {
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.94);
}

.kidso-ai-profile {
  border-radius: 0.9rem;
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(16, 185, 129, 0.08)),
    #ffffff;
}

.kidso-ai-nav {
  gap: 0.18rem;
}

.kidso-ai-nav a,
.kidso-ai-nav button {
  min-height: 2.55rem;
  border-radius: 0.75rem;
  font-size: 0.84rem;
  font-weight: 760;
  padding: 0 0.7rem;
}

.kidso-ai-nav a i,
.kidso-ai-nav button i {
  display: grid;
  height: 1.85rem;
  width: 1.85rem;
  place-items: center;
  border-radius: 0.6rem;
  background: rgba(37, 99, 235, 0.08);
  color: #2563eb;
  font-size: 0.92rem;
}

.kidso-ai-nav a:nth-child(2n) i,
.kidso-ai-nav button:nth-child(2n) i {
  background: rgba(16, 185, 129, 0.1);
  color: #059669;
}

.kidso-ai-nav a:nth-child(3n) i,
.kidso-ai-nav button:nth-child(3n) i {
  background: rgba(245, 158, 11, 0.14);
  color: #b45309;
}

.kidso-ai-nav a:hover,
.kidso-ai-nav button:hover,
.kidso-ai-nav .is-active {
  transform: translateX(1px);
  border-color: rgba(37, 99, 235, 0.14);
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(16, 185, 129, 0.06));
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.1);
}

.kidso-ai-nav .is-active i {
  background: #2563eb;
  color: #ffffff;
}

.kidso-publication-grid {
  align-items: stretch;
}

.kidso-post-card {
  position: relative;
  display: flex;
  min-height: 25rem;
  cursor: pointer;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(111, 142, 176, 0.18) !important;
  border-radius: 1.05rem !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(250, 253, 255, 0.92)) !important;
  box-shadow: 0 16px 38px rgba(47, 72, 101, 0.1) !important;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.kidso-post-card:hover {
  transform: translateY(-3px);
  border-color: rgba(37, 99, 235, 0.22) !important;
  box-shadow: 0 22px 54px rgba(37, 99, 235, 0.15) !important;
}

.kidso-post-media {
  height: clamp(12rem, 24vw, 16rem) !important;
  background: #eaf4ff;
}

.kidso-post-media img,
.kidso-post-media video {
  transform: scale(1.01);
  transition: transform 240ms ease;
}

.kidso-post-card:hover .kidso-post-media img,
.kidso-post-card:hover .kidso-post-media video {
  transform: scale(1.045);
}

.kidso-post-media-overlay {
  background: linear-gradient(to top, rgba(19, 35, 58, 0.68), rgba(19, 35, 58, 0.28), transparent);
}

.kidso-post-media-action {
  background: rgba(255, 255, 255, 0.86) !important;
  color: #17324d !important;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.16);
}

.kidso-post-identify-action {
  background: linear-gradient(135deg, #10b981, #14b8a6) !important;
  color: #ffffff !important;
  box-shadow: 0 10px 24px rgba(16, 185, 129, 0.22);
}

.kidso-post-empty-media {
  display: grid;
  height: clamp(10rem, 22vw, 14rem);
  place-items: center;
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.1), transparent 48%),
    linear-gradient(45deg, rgba(16, 185, 129, 0.12), transparent 55%),
    #f7fbff;
  color: #2563eb;
  text-align: center;
}

.kidso-post-empty-media i {
  display: grid;
  height: 3.3rem;
  width: 3.3rem;
  place-items: center;
  border-radius: 0.9rem;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.12);
}

.kidso-post-empty-media span {
  margin-top: -1.2rem;
  color: #52677f;
  font-size: 0.82rem;
  font-weight: 850;
}

.kidso-post-body {
  gap: 0.35rem;
}

.kidso-post-meta-row {
  gap: 0.6rem;
}

.kidso-post-type {
  display: inline-flex;
  min-height: 1.65rem;
  max-width: 10rem;
  align-items: center;
  gap: 0.25rem;
  overflow: hidden;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 850;
  padding: 0 0.58rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.kidso-post-type.is-news {
  background: rgba(37, 99, 235, 0.1);
  color: #1d4ed8;
}

.kidso-post-type.is-notice {
  background: rgba(245, 158, 11, 0.15);
  color: #b45309;
}

.kidso-post-type.is-event {
  background: rgba(16, 185, 129, 0.12);
  color: #047857;
}

.kidso-post-date {
  overflow: hidden;
  color: #8191a6 !important;
  font-size: 0.72rem;
  font-weight: 760;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.kidso-post-admin-actions .btn {
  height: 2rem;
  width: 2rem;
}

.kidso-post-title span {
  display: block;
  color: #13233a;
  font-size: 1.05rem;
  font-weight: 900;
  line-height: 1.35;
}

.kidso-post-excerpt {
  display: -webkit-box;
  overflow: hidden;
  color: #5d7088;
  font-size: 0.9rem;
  line-height: 1.65;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.kidso-post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.kidso-post-tags .tag {
  min-height: 1.65rem;
  font-size: 0.72rem;
  font-weight: 820;
}

.kidso-post-footer {
  display: flex;
  justify-content: flex-end;
  margin-top: auto;
  padding-top: 0.65rem;
}

.kidso-post-open-btn,
.kidso-post-link-btn {
  display: inline-flex;
  min-height: 2.35rem;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 880;
  padding: 0 0.85rem;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.kidso-post-open-btn {
  background: linear-gradient(135deg, #2563eb, #06b6d4);
  color: #ffffff;
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.18);
}

.kidso-post-link-btn {
  border: 1px solid rgba(111, 142, 176, 0.22);
  background: #ffffff;
  color: #35516f;
}

.kidso-post-open-btn:hover,
.kidso-post-link-btn:hover {
  transform: translateY(-1px);
}

.kidso-post-dialog {
  overflow-y: auto;
}

.kidso-post-dialog-panel {
  max-height: calc(100dvh - 2rem);
  border: 1px solid rgba(255, 255, 255, 0.48);
  box-shadow: 0 34px 90px rgba(2, 8, 23, 0.28);
}

.kidso-post-dialog-close {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  z-index: 2;
  display: grid;
  height: 2.35rem;
  width: 2.35rem;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #13233a;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.18);
}

.kidso-post-dialog-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(20rem, 0.95fr);
}

.kidso-post-dialog-media {
  min-height: 30rem;
  background: #eaf4ff;
}

.kidso-post-dialog-swiper,
.kidso-post-dialog-swiper .swiper-wrapper,
.kidso-post-dialog-swiper .swiper-slide {
  height: 100%;
  min-height: inherit;
}

.kidso-post-dialog-image-btn {
  position: relative;
  display: block;
  height: 100%;
  width: 100%;
  cursor: zoom-in;
}

.kidso-post-dialog-image-btn span {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  display: grid;
  height: 2.45rem;
  width: 2.45rem;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #13233a;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.18);
}

.kidso-post-dialog-nav {
  position: absolute;
  top: 50%;
  z-index: 3;
  display: grid;
  height: 2.65rem;
  width: 2.65rem;
  transform: translateY(-50%);
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #2563eb;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.18);
}

.kidso-post-dialog-prev {
  left: 1rem;
}

.kidso-post-dialog-next {
  right: 1rem;
}

.kidso-modal-image {
  max-height: calc(100dvh - 8rem);
  max-width: min(100%, 72rem);
  border-radius: 1rem;
  object-fit: contain;
  padding: 0;
  box-shadow: 0 30px 90px rgba(2, 8, 23, 0.38);
}

.kidso-media-close {
  position: fixed;
  right: 1rem;
  top: 1rem;
  z-index: 2;
  display: grid;
  height: 2.75rem;
  width: 2.75rem;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: #13233a;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.22);
}

.kidso-modal-image-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  margin-top: 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.42);
  color: #ffffff;
  padding: 0.45rem 0.65rem;
  backdrop-filter: blur(12px);
}

.kidso-modal-image-nav {
  display: grid;
  height: 2.35rem;
  width: 2.35rem;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #2563eb;
}

.kidso-identify-panel {
  max-width: min(72rem, calc(100vw - 2rem));
  max-height: calc(100dvh - 2rem);
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 1.2rem;
  box-shadow: 0 34px 90px rgba(2, 8, 23, 0.3);
}

.kidso-identify-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(20rem, 0.8fr);
  min-height: min(72vh, 38rem);
}

.kidso-identify-canvas {
  position: relative;
  display: block;
  min-height: 24rem;
  cursor: crosshair;
  overflow: hidden;
  background: #0f172a;
}

.kidso-identify-canvas img {
  height: 100%;
  width: 100%;
  object-fit: contain;
}

.kidso-identify-marker {
  position: absolute;
  z-index: 2;
  display: block;
  height: 3.2rem;
  width: 3.2rem;
  transform: translate(-50%, -50%);
  border: 3px solid #10b981;
  border-radius: 999px;
  box-shadow: 0 0 0 999rem rgba(15, 23, 42, 0.16), 0 0 0 0.45rem rgba(16, 185, 129, 0.22);
  pointer-events: none;
}

.kidso-identify-marker::after {
  content: "";
  position: absolute;
  inset: 50% auto auto 50%;
  height: 0.65rem;
  width: 0.65rem;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  background: #10b981;
}

.kidso-identify-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: clamp(1rem, 3vw, 1.6rem);
}

.kidso-identify-form > div:first-child span,
.kidso-identify-form label span {
  color: #2563eb;
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.kidso-identify-form h3 {
  margin-top: 0.35rem;
  color: #13233a;
  font-size: 1.35rem;
  font-weight: 950;
  line-height: 1.2;
}

.kidso-identify-form p {
  margin-top: 0.55rem;
  color: #6b7f99;
  font-weight: 720;
  line-height: 1.55;
}

.kidso-identify-form label {
  display: grid;
  gap: 0.4rem;
}

.kidso-identify-form select {
  min-height: 2.8rem;
}

.kidso-identify-coordinates {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  border: 1px solid rgba(111, 142, 176, 0.18);
  border-radius: 0.9rem;
  background: rgba(248, 252, 255, 0.9);
  color: #52677f;
  font-size: 0.85rem;
  font-weight: 780;
  padding: 0.75rem;
}

.kidso-identify-coordinates i {
  color: #10b981;
}

.kidso-identify-submit {
  display: inline-flex;
  min-height: 2.8rem;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #10b981, #14b8a6);
  color: #ffffff;
  font-weight: 900;
  box-shadow: 0 14px 28px rgba(16, 185, 129, 0.2);
}

.kidso-identify-submit:disabled {
  cursor: not-allowed;
  background: #94a3b8;
  box-shadow: none;
}

.kidso-post-dialog-empty {
  display: grid;
  height: 100%;
  place-items: center;
  color: #2563eb;
  font-weight: 900;
}

.kidso-post-dialog-empty i {
  display: grid;
  height: 4rem;
  width: 4rem;
  place-items: center;
  border-radius: 1rem;
  background: #ffffff;
  box-shadow: 0 16px 34px rgba(37, 99, 235, 0.14);
}

.kidso-post-dialog-content {
  display: flex;
  min-height: 30rem;
  flex-direction: column;
  gap: 1rem;
  overflow-y: auto;
  padding: clamp(1.25rem, 3vw, 2rem);
}

.kidso-post-dialog-content h3 {
  color: #13233a;
  font-size: clamp(1.45rem, 3vw, 2.35rem);
  font-weight: 950;
  line-height: 1.12;
}

.kidso-post-dialog-description {
  color: #52677f;
  font-size: 0.98rem;
  line-height: 1.8;
}

.kidso-post-dialog-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: auto;
  padding-top: 1rem;
}

@media (max-width: 900px) {
  .kidso-post-dialog-layout {
    grid-template-columns: 1fr;
  }

  .kidso-post-dialog-media {
    min-height: 18rem;
    max-height: 45vh;
  }
}

@media (max-width: 640px) {
  .kidso-post-card {
    min-height: auto;
  }

  .kidso-post-dialog {
    align-items: stretch !important;
    justify-content: flex-start !important;
    padding: 0.5rem !important;
  }

  .kidso-post-dialog-panel {
    max-height: calc(100dvh - 1rem);
    border-radius: 1rem !important;
  }

  .kidso-post-dialog-content {
    min-height: auto;
  }

  .kidso-modal-image {
    max-height: calc(100dvh - 7rem);
    border-radius: 0.8rem;
  }

  .kidso-media-close {
    right: 0.75rem;
    top: 0.75rem;
  }

  .kidso-identify-layout {
    grid-template-columns: 1fr;
    max-height: calc(100dvh - 1rem);
    overflow-y: auto;
  }

  .kidso-identify-canvas {
    min-height: 18rem;
  }

  .kidso-identify-panel {
    max-width: calc(100vw - 1rem);
    max-height: calc(100dvh - 1rem);
    border-radius: 1rem;
  }
}

/* Messenger workspace */
.kidso-messenger-page {
  position: fixed !important;
  inset: calc(var(--kidso-topbar-height) + 1rem) 1rem 1rem calc(var(--kidso-sidebar-width) + 2rem) !important;
  z-index: 20;
  display: flex !important;
  width: auto !important;
  max-width: none !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  align-items: stretch;
  flex-direction: column;
  overflow: hidden !important;
}

.kidso-messenger-shell {
  display: grid;
  flex: 1 1 auto;
  width: 100%;
  max-width: none;
  height: 100%;
  min-height: 0;
  grid-template-rows: minmax(0, 1fr);
  gap: 0;
}

.kidso-messenger-toolbar {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border: 1px solid rgba(111, 142, 176, 0.18);
  border-radius: 1rem;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(247, 251, 255, 0.88)),
    linear-gradient(90deg, rgba(37, 99, 235, 0.08), transparent);
  box-shadow: 0 16px 44px rgba(31, 41, 55, 0.08);
  padding: 0.85rem 1rem;
}

.kidso-messenger-toolbar span {
  color: #64748b;
  font-size: 0.72rem;
  font-weight: 850;
  text-transform: uppercase;
}

.kidso-messenger-toolbar h2 {
  color: #13233a !important;
  font-size: clamp(1.2rem, 2vw, 1.65rem);
  font-weight: 950 !important;
}

.kidso-messenger-actions {
  display: flex;
  gap: 0.45rem;
}

.kidso-messenger-actions a,
.kidso-messenger-actions button {
  display: grid;
  height: 2.45rem;
  width: 2.45rem;
  place-items: center;
  border: 1px solid rgba(111, 142, 176, 0.18);
  border-radius: 0.8rem;
  background: #ffffff;
  color: #2563eb;
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.1);
}

.kidso-messenger-frame-wrap {
  position: relative;
  width: 100%;
  max-width: none;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  border: 1px solid rgba(111, 142, 176, 0.2);
  border-radius: 1.15rem;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 22px 62px rgba(31, 41, 55, 0.12);
}

.kidso-messenger-frame-wrap iframe {
  display: block;
  width: 100%;
  max-width: none;
  height: 100%;
  min-height: 0;
  border: 0;
  background: #f7fbff;
}

.kidso-messenger-frame-loader {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-content: center;
  gap: 0.75rem;
  background: linear-gradient(135deg, #f7fbff, #f2fff9);
  color: #35516f;
  text-align: center;
}

.kidso-messenger-frame-loader span {
  display: block;
  height: 2.4rem;
  width: 2.4rem;
  margin-inline: auto;
  border: 4px solid rgba(37, 99, 235, 0.18);
  border-top-color: #2563eb;
  border-radius: 999px;
  animation: kidsoSpin 900ms linear infinite;
}

@media (max-width: 640px) {
  .kidso-messenger-page {
    inset: 5rem 0.5rem 0.5rem 0.5rem !important;
    min-height: 0;
  }

  .kidso-messenger-shell {
    height: 100%;
    min-height: 0;
    gap: 0;
  }

  .kidso-messenger-toolbar {
    padding: 0.65rem;
  }

  .kidso-messenger-toolbar h2 {
    font-size: 1.05rem;
  }

  .kidso-messenger-frame-wrap {
    min-height: 0;
    border-radius: 0.95rem;
  }
}

@media (min-width: 641px) and (max-width: 1024px) {
  .kidso-messenger-page {
    inset: calc(var(--kidso-topbar-height) + 0.75rem) 0.75rem 0.75rem 0.75rem !important;
  }
}

/* Cohesion pass: shared workspace, responsive tables and mobile navigation. */
body.kidso-2026 {
  --kidso-page-gap: 1rem;
}

body.kidso-2026 .main-content {
  box-sizing: border-box;
  width: auto;
  max-width: calc(100vw - var(--kidso-sidebar-width) - 1rem);
}

.kidso-mobile-backdrop {
  position: fixed;
  inset: 0;
  z-index: 42;
  display: none;
  background: rgba(15, 23, 42, 0.42);
  backdrop-filter: blur(6px);
}

.kidso-ai-sidebar {
  max-height: calc(100dvh - 2rem);
}

.kidso-ai-nav a span,
.kidso-ai-nav button span,
.kidso-ai-logout span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.kidso-ai-topbar {
  box-sizing: border-box;
}

.kidso-ai-actions {
  min-width: max-content;
}

.kidso-ai-action,
.kidso-ai-menu-toggle {
  flex: 0 0 auto;
}

.kidso-ai-command input::placeholder,
.isInputActive::placeholder {
  color: #7890aa;
}

body.kidso-2026 .main-content > .flex:first-child,
body.kidso-2026 .main-content > .grid > div > .flex:first-child,
body.kidso-2026 .main-content > .grid > div[x-data] > .flex:first-child {
  align-items: center;
  gap: 0.85rem;
}

body.kidso-2026 .main-content > .grid > div > .flex:first-child,
body.kidso-2026 .main-content > .grid > div[x-data] > .flex:first-child {
  min-height: 3.75rem;
  border: 1px solid rgba(111, 142, 176, 0.16);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 14px 34px rgba(31, 41, 55, 0.07);
  padding: 0.75rem;
  backdrop-filter: blur(16px);
}

body.kidso-2026 .main-content > .grid > div > .flex:first-child > h2,
body.kidso-2026 .main-content > .grid > div[x-data] > .flex:first-child > h2 {
  min-width: 8rem;
  color: #13233a !important;
  font-size: 0.95rem;
  font-weight: 900 !important;
}

body.kidso-2026 .main-content > .grid > div > .flex:first-child > .flex,
body.kidso-2026 .main-content > .grid > div[x-data] > .flex:first-child > .flex {
  min-width: 0;
  align-items: center;
  justify-content: flex-end;
  gap: 0.45rem;
}

body.kidso-2026 .main-content > .grid > div > .flex:first-child label,
body.kidso-2026 .main-content > .grid > div[x-data] > .flex:first-child label {
  min-width: min(16rem, 40vw);
}

body.kidso-2026 .main-content > .grid > div > .flex:first-child input[type="text"],
body.kidso-2026 .main-content > .grid > div[x-data] > .flex:first-child input[type="text"] {
  min-height: 2.35rem;
  width: 100%;
  text-align: start;
}

body.kidso-2026 .card.mt-3 {
  margin-top: 0.85rem;
}

body.kidso-2026 .card > .min-w-full.overflow-x-auto {
  border-radius: 1rem 1rem 0 0 !important;
}

body.kidso-2026 table.is-hoverable {
  min-width: 44rem;
}

body.kidso-2026 th,
body.kidso-2026 td {
  padding-block: 0.8rem !important;
}

body.kidso-2026 td .flex.justify-center {
  flex-wrap: wrap;
  gap: 0.3rem;
}

body.kidso-2026 .pagination,
body.kidso-2026 nav[role="navigation"] > div,
body.kidso-2026 nav[role="navigation"] span,
body.kidso-2026 nav[role="navigation"] a {
  max-width: 100%;
}

body.kidso-2026 .card > .flex.flex-col.justify-between {
  gap: 0.85rem;
}

body.kidso-2026 .popper-root {
  z-index: 70;
}

body.kidso-2026 .popper-box {
  max-width: min(22rem, calc(100vw - 1rem));
}

body.kidso-2026 .popper-box a,
body.kidso-2026 .popper-box span {
  min-width: 0;
  white-space: nowrap;
}

body.kidso-2026 [role="dialog"] {
  padding: 1rem;
}

body.kidso-2026 [role="dialog"] .relative.w-full,
body.kidso-2026 [role="dialog"] form {
  max-width: 100%;
}

body.kidso-2026 [role="dialog"] .grid {
  max-width: 100%;
}

.dark .kidso-ai-sidebar,
.dark .kidso-ai-topbar,
.dark body.kidso-2026 .main-content > .grid > div > .flex:first-child,
.dark body.kidso-2026 .main-content > .grid > div[x-data] > .flex:first-child {
  background: rgba(11, 23, 42, 0.82);
  border-color: rgba(142, 178, 255, 0.16);
}

@media (max-width: 1024px) {
  body.kidso-2026 .main-content {
    max-width: 100vw;
  }

  body.kidso-menu-open .kidso-mobile-backdrop {
    display: block;
  }

  body.kidso-menu-open {
    overflow: hidden;
  }

  .kidso-ai-sidebar {
    z-index: 46;
    max-height: calc(100dvh - 1rem);
  }

  .kidso-ai-topbar {
    right: 0.75rem;
    left: 0.75rem;
  }

  .kidso-messenger-page {
    left: 0.75rem !important;
  }
}

@media (max-width: 768px) {
  body.kidso-2026 {
    --kidso-page-gap: 0.75rem;
  }

  .kidso-ai-topbar-left {
    min-width: 0;
  }

  .kidso-ai-topbar-left h1 {
    max-width: 52vw;
  }

  body.kidso-2026 .main-content > .flex:first-child {
    min-height: auto;
  }

  body.kidso-2026 .main-content > .flex:first-child h2 {
    width: 100%;
  }

  body.kidso-2026 .main-content > .grid > div > .flex:first-child,
  body.kidso-2026 .main-content > .grid > div[x-data] > .flex:first-child {
    flex-wrap: wrap;
  }

  body.kidso-2026 .main-content > .grid > div > .flex:first-child > h2,
  body.kidso-2026 .main-content > .grid > div[x-data] > .flex:first-child > h2 {
    flex: 1 1 100%;
  }

  body.kidso-2026 .main-content > .grid > div > .flex:first-child > .flex,
  body.kidso-2026 .main-content > .grid > div[x-data] > .flex:first-child > .flex {
    width: 100%;
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  body.kidso-2026 .main-content > .grid > div > .flex:first-child label,
  body.kidso-2026 .main-content > .grid > div[x-data] > .flex:first-child label {
    flex: 1 1 12rem;
    min-width: 0;
  }

  body.kidso-2026 table.is-hoverable {
    min-width: 38rem;
  }

  body.kidso-2026 .card > .flex.flex-col.justify-between {
    align-items: stretch !important;
    padding-inline: 0.85rem;
    text-align: center;
  }

  body.kidso-2026 .pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.25rem;
  }
}

@media (max-width: 640px) {
  .kidso-ai-topbar {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .kidso-ai-topbar-left span {
    display: none;
  }

  .kidso-ai-topbar-left h1 {
    max-width: 42vw;
    font-size: 1rem;
  }

  .kidso-ai-actions {
    gap: 0.35rem;
  }

  .kidso-ai-action,
  .kidso-ai-menu-toggle {
    height: 2.35rem;
    width: 2.35rem;
    border-radius: 0.75rem;
  }

  body.kidso-2026 .main-content {
    padding-bottom: 1rem;
  }

  body.kidso-2026 .main-content > .flex:first-child,
  body.kidso-2026 .main-content > .grid > div > .flex:first-child,
  body.kidso-2026 .main-content > .grid > div[x-data] > .flex:first-child {
    border-radius: 0.9rem;
    padding: 0.7rem;
  }

  body.kidso-2026 .main-content > .grid > div > .flex:first-child > .flex > .flex,
  body.kidso-2026 .main-content > .grid > div[x-data] > .flex:first-child > .flex > .flex {
    flex: 1 1 100%;
  }

  body.kidso-2026 .main-content > .grid > div > .flex:first-child .btn,
  body.kidso-2026 .main-content > .grid > div[x-data] > .flex:first-child .btn {
    flex: 0 0 auto;
  }

  body.kidso-2026 .popper-root.show {
    position: fixed !important;
    inset: auto 0.5rem 0.5rem 0.5rem !important;
    transform: none !important;
  }

  body.kidso-2026 .popper-root.show .popper-box {
    width: 100%;
    margin: 0 !important;
    border-radius: 1rem !important;
  }

  body.kidso-2026 [role="dialog"] {
    padding: 0.5rem !important;
  }

  body.kidso-2026 .card > .min-w-full.overflow-x-auto,
  body.kidso-2026 .card > .is-scrollbar-hidden.overflow-x-auto,
  body.kidso-2026 .card > .overflow-x-auto {
    overflow: visible !important;
  }

  body.kidso-2026 table.is-hoverable,
  body.kidso-2026 table.is-zebra {
    display: block;
    min-width: 0 !important;
    width: 100% !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  body.kidso-2026 table.is-hoverable thead,
  body.kidso-2026 table.is-zebra thead {
    display: none;
  }

  body.kidso-2026 table.is-hoverable tbody,
  body.kidso-2026 table.is-zebra tbody {
    display: grid;
    gap: 0.75rem;
    padding: 0.75rem;
  }

  body.kidso-2026 table.is-hoverable tr,
  body.kidso-2026 table.is-zebra tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.45rem 0.65rem;
    border: 1px solid rgba(111, 142, 176, 0.16) !important;
    border-radius: 0.95rem;
    background: rgba(255, 255, 255, 0.9) !important;
    box-shadow: 0 12px 30px rgba(31, 41, 55, 0.07);
    padding: 0.75rem;
  }

  body.kidso-2026 table.is-hoverable td,
  body.kidso-2026 table.is-zebra td {
    display: flex !important;
    min-height: 2.15rem;
    align-items: center;
    border: 0 !important;
    padding: 0 !important;
    color: #29445f !important;
    white-space: normal !important;
  }

  body.kidso-2026 table.is-hoverable td:first-child,
  body.kidso-2026 table.is-zebra td:first-child {
    grid-row: 1 / span 2;
    align-self: start;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 0.7rem;
    background: rgba(37, 99, 235, 0.08);
    color: #2563eb !important;
    font-size: 0.78rem;
    font-weight: 850;
  }

  body.kidso-2026 table.is-hoverable td:nth-child(2),
  body.kidso-2026 table.is-zebra td:nth-child(2) {
    grid-column: 1 / 2;
    min-width: 0;
    color: #13233a !important;
    font-size: 0.95rem;
    font-weight: 850;
  }

  body.kidso-2026 table.is-hoverable td:last-child,
  body.kidso-2026 table.is-zebra td:last-child {
    grid-column: 2 / 3;
    grid-row: 1 / span 3;
    align-self: center;
    justify-content: flex-end;
  }

  body.kidso-2026 table.is-hoverable td:not(:first-child):not(:nth-child(2)):not(:last-child),
  body.kidso-2026 table.is-zebra td:not(:first-child):not(:nth-child(2)):not(:last-child) {
    grid-column: 1 / 2;
    color: #6b7f99 !important;
    font-size: 0.78rem;
  }

  body.kidso-2026 table.is-hoverable td.hidden,
  body.kidso-2026 table.is-zebra td.hidden {
    display: none !important;
  }

  body.kidso-2026 table.is-hoverable td .flex.justify-center,
  body.kidso-2026 table.is-zebra td .flex.justify-center {
    justify-content: flex-end;
  }
}

@media (max-width: 420px) {
  .kidso-ai-topbar-left h1 {
    max-width: 36vw;
  }

  .kidso-ai-action[href*="/chat"] {
    display: none;
  }

  body.kidso-2026 .kidso-home-hero h2 {
    font-size: 2rem;
  }

  body.kidso-2026 .kidso-home-hero p {
    font-size: 0.92rem;
  }
}

/* Smart Photos module */
.kidso-smart-photo-stats,
.kidso-smart-photo-grid {
  display: grid;
  gap: 0.85rem;
}

.kidso-smart-photo-stats {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.kidso-smart-photo-stats article,
.kidso-smart-photo-card,
.kidso-smart-photo-empty,
.kidso-smart-profile {
  border: 1px solid rgba(111, 142, 176, 0.18);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 14px 34px rgba(31, 41, 55, 0.08);
  backdrop-filter: blur(16px);
}

.kidso-smart-photo-stats article {
  padding: 1rem;
}

.kidso-smart-photo-stats span,
.kidso-smart-profile span {
  color: #6b7f99;
  font-size: 0.76rem;
  font-weight: 850;
  text-transform: uppercase;
}

.kidso-smart-photo-stats strong {
  display: block;
  margin-top: 0.3rem;
  color: #13233a;
  font-size: 1.8rem;
  font-weight: 950;
}

.kidso-smart-photo-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 1rem 0;
}

.kidso-smart-photo-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.kidso-smart-photo-tabs a,
.kidso-smart-photo-action,
.kidso-smart-photo-secondary,
.kidso-smart-photo-confirm,
.kidso-smart-photo-reject {
  display: inline-flex;
  min-height: 2.45rem;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border-radius: 999px;
  font-weight: 850;
  padding: 0 0.85rem;
}

.kidso-smart-photo-tabs a {
  border: 1px solid rgba(111, 142, 176, 0.18);
  background: rgba(255, 255, 255, 0.76);
  color: #425a75;
}

.kidso-smart-photo-tabs a.is-active,
.kidso-smart-photo-action {
  background: linear-gradient(135deg, #2563eb, #06b6d4);
  color: #ffffff;
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.18);
}

.kidso-smart-photo-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.kidso-smart-photo-card {
  overflow: hidden;
}

.kidso-smart-photo-media {
  aspect-ratio: 4 / 3;
  background: #eaf4ff;
}

.kidso-smart-photo-media img {
  height: 100%;
  width: 100%;
  object-fit: cover;
}

.kidso-smart-photo-body {
  display: grid;
  gap: 0.65rem;
  padding: 1rem;
}

.kidso-smart-photo-body strong {
  display: block;
  color: #13233a;
  font-size: 1rem;
  font-weight: 900;
}

.kidso-smart-photo-body small,
.kidso-smart-photo-body p {
  color: #6b7f99;
  font-size: 0.82rem;
  font-weight: 750;
}

.kidso-smart-photo-status {
  display: inline-flex;
  width: fit-content;
  min-height: 1.65rem;
  align-items: center;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.14);
  color: #b45309;
  font-size: 0.72rem;
  font-weight: 850;
  padding: 0 0.55rem;
  text-transform: capitalize;
}

.kidso-smart-photo-status.is-confirmed,
.kidso-smart-photo-status.is-auto_confirmed {
  background: rgba(16, 185, 129, 0.12);
  color: #047857;
}

.kidso-smart-photo-status.is-rejected {
  background: rgba(239, 68, 68, 0.12);
  color: #dc2626;
}

.kidso-smart-photo-status.is-analyzed,
.kidso-smart-photo-status.is-manual {
  background: rgba(37, 99, 235, 0.12);
  color: #2563eb;
}

.kidso-smart-photo-status.is-no_face,
.kidso-smart-photo-status.is-failed {
  background: rgba(100, 116, 139, 0.12);
  color: #475569;
}

.kidso-smart-photo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.kidso-smart-photo-secondary {
  border: 1px solid rgba(111, 142, 176, 0.18);
  background: #ffffff;
  color: #35516f;
}

.kidso-smart-photo-confirm {
  background: #10b981;
  color: #ffffff;
}

.kidso-smart-photo-reject {
  background: #ef4444;
  color: #ffffff;
}

.kidso-smart-photo-empty {
  display: grid;
  grid-column: 1 / -1;
  min-height: 14rem;
  place-items: center;
  padding: 2rem;
  text-align: center;
}

.kidso-smart-photo-empty i {
  color: #2563eb;
  font-size: 2.5rem;
}

.kidso-smart-photo-empty strong {
  color: #13233a;
  font-size: 1.25rem;
  font-weight: 900;
}

.kidso-smart-photo-empty span {
  color: #6b7f99;
}

.kidso-smart-profile {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  padding: 1rem;
}

.kidso-smart-profile img {
  height: 5rem;
  width: 5rem;
  border-radius: 1rem;
  object-fit: cover;
}

.kidso-smart-profile h2 {
  color: #13233a;
  font-size: 1.6rem;
  font-weight: 950;
}

.kidso-smart-profile p {
  color: #6b7f99;
  font-weight: 750;
}

@media (max-width: 1024px) {
  .kidso-smart-photo-stats,
  .kidso-smart-photo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .kidso-smart-photo-stats,
  .kidso-smart-photo-grid {
    grid-template-columns: 1fr;
  }

  .kidso-smart-photo-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .kidso-smart-photo-action,
  .kidso-smart-photo-toolbar form {
    width: 100%;
  }

  .kidso-smart-profile {
    align-items: flex-start;
  }
}

/* Student cards page */
.kidso-students-toolbar,
.kidso-students-filters,
.kidso-student-card,
.kidso-student-pagination {
  border: 1px solid rgba(111, 142, 176, 0.18);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 14px 34px rgba(31, 41, 55, 0.08);
  backdrop-filter: blur(16px);
}

.kidso-students-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem;
}

.kidso-students-toolbar span,
.kidso-students-filters > span,
.kidso-student-info-grid span {
  color: #6b7f99;
  font-size: 0.74rem;
  font-weight: 850;
  text-transform: uppercase;
}

.kidso-students-toolbar h3 {
  color: #13233a;
  font-size: 1rem;
  font-weight: 950;
}

.kidso-students-tools,
.kidso-students-search,
.kidso-students-filters,
.kidso-student-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.kidso-students-search {
  min-height: 2.65rem;
  min-width: min(22rem, 34vw);
  border: 1px solid rgba(111, 142, 176, 0.18);
  border-radius: 999px;
  background: rgba(248, 252, 255, 0.86);
  padding: 0 0.45rem 0 0.85rem;
}

.kidso-students-search input {
  min-height: 2.35rem;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.kidso-students-search button,
.kidso-students-icon-btn {
  display: grid;
  height: 2.15rem;
  width: 2.15rem;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 999px;
  background: #ffffff;
  color: #2563eb;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.12);
}

.kidso-students-filters {
  flex-wrap: wrap;
  margin-top: 0.85rem;
  padding: 0.85rem;
}

.kidso-students-filters label {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: #35516f;
  font-weight: 780;
}

.kidso-student-card-list {
  display: grid;
  gap: 0.85rem;
  margin-top: 0.85rem;
}

.kidso-student-card {
  position: relative;
  display: grid;
  grid-template-columns: 2.5rem minmax(16rem, 1.25fr) minmax(20rem, 2fr) minmax(12rem, auto);
  gap: 1rem;
  align-items: center;
  padding: 1rem;
}

.kidso-student-rank {
  display: grid;
  height: 2.15rem;
  width: 2.15rem;
  place-items: center;
  border-radius: 0.75rem;
  background: rgba(37, 99, 235, 0.08);
  color: #2563eb;
  font-weight: 900;
}

.kidso-student-identity {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 0.85rem;
}

.kidso-student-identity img {
  height: 4.4rem;
  width: 4.4rem;
  flex: 0 0 auto;
  border-radius: 1rem;
  object-fit: cover;
  box-shadow: 0 12px 26px rgba(31, 41, 55, 0.12);
}

.kidso-student-identity h3 {
  overflow: hidden;
  color: #13233a;
  font-size: 1.05rem;
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.kidso-student-identity span,
.kidso-student-identity p,
.kidso-student-info-grid small {
  color: #6b7f99;
  font-size: 0.78rem;
  font-weight: 780;
}

.kidso-student-info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
}

.kidso-student-info-grid div {
  min-width: 0;
}

.kidso-student-info-grid strong {
  display: block;
  overflow: hidden;
  color: #29445f;
  font-size: 0.88rem;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.kidso-student-note {
  grid-column: 2 / 4;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  width: fit-content;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.14);
  color: #b45309;
  font-size: 0.78rem;
  font-weight: 820;
  padding: 0.35rem 0.7rem;
}

.kidso-student-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.kidso-student-profile-btn {
  display: inline-flex;
  min-height: 2.15rem;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #2563eb, #06b6d4);
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 850;
  padding: 0 0.8rem;
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.18);
}

.kidso-student-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.85rem;
  padding: 0.85rem;
}

.kidso-student-empty {
  display: grid;
  min-height: 10rem;
  place-items: center;
  border: 1px solid rgba(111, 142, 176, 0.18);
  border-radius: 1rem;
  color: #6b7f99;
}

/* Smart photo UX additions */
.kidso-smart-photo-guide,
.kidso-smart-photo-manual,
.kidso-smart-photo-filters,
.kidso-smart-photo-review {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
  border: 1px solid rgba(111, 142, 176, 0.18);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 14px 34px rgba(31, 41, 55, 0.08);
  padding: 1rem;
  backdrop-filter: blur(16px);
}

.kidso-smart-photo-guide {
  grid-template-columns: minmax(0, 1fr) minmax(18rem, 0.85fr);
  align-items: center;
}

.kidso-smart-photo-guide span,
.kidso-smart-photo-manual span {
  color: #2563eb;
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.kidso-smart-photo-guide h3,
.kidso-smart-photo-manual h3 {
  margin-top: 0.35rem;
  color: #13233a;
  font-size: 1.05rem;
  font-weight: 950;
  line-height: 1.35;
}

.kidso-smart-photo-guide ol {
  display: grid;
  gap: 0.45rem;
  color: #52677f;
  font-weight: 760;
  list-style: decimal;
  padding-left: 1.2rem;
}

.kidso-smart-photo-manual {
  grid-template-columns: minmax(14rem, 0.75fr) minmax(0, 1.25fr);
  align-items: end;
}

.kidso-smart-photo-manual p {
  margin-top: 0.35rem;
  color: #6b7f99;
  font-size: 0.86rem;
  font-weight: 720;
  line-height: 1.5;
}

.kidso-smart-photo-manual form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  gap: 0.7rem;
  align-items: end;
}

.kidso-smart-photo-filters form {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr)) auto;
  gap: 0.7rem;
  align-items: end;
}

.kidso-smart-photo-manual label,
.kidso-smart-photo-filters label {
  display: grid;
  gap: 0.35rem;
}

.kidso-smart-photo-manual select,
.kidso-smart-photo-filters select {
  min-height: 2.75rem;
}

.kidso-smart-photo-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
  margin-top: 1rem;
}

.kidso-smart-photo-gallery-card {
  overflow: hidden;
  border: 1px solid rgba(111, 142, 176, 0.18);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 14px 34px rgba(31, 41, 55, 0.08);
  backdrop-filter: blur(16px);
}

.kidso-smart-photo-gallery-media {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #eaf4ff;
}

.kidso-smart-photo-gallery-media img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  transition: transform 180ms ease;
}

.kidso-smart-photo-gallery-media:hover img {
  transform: scale(1.035);
}

.kidso-smart-photo-gallery-media span {
  position: absolute;
  right: 0.75rem;
  bottom: 0.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.72);
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 850;
  padding: 0.45rem 0.7rem;
  backdrop-filter: blur(10px);
}

.kidso-smart-photo-gallery-body {
  display: grid;
  gap: 0.75rem;
  padding: 1rem;
}

.kidso-smart-photo-gallery-body strong {
  display: block;
  margin-top: 0.35rem;
  overflow: hidden;
  color: #13233a;
  font-size: 1rem;
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.kidso-smart-photo-gallery-body small {
  color: #6b7f99;
  font-size: 0.8rem;
  font-weight: 780;
}

.kidso-smart-photo-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.kidso-smart-photo-tags a,
.kidso-smart-photo-tags span {
  display: inline-flex;
  min-height: 1.75rem;
  align-items: center;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.08);
  color: #2563eb;
  font-size: 0.74rem;
  font-weight: 850;
  padding: 0 0.55rem;
}

.kidso-smart-photo-review > div:first-child span {
  color: #2563eb;
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.kidso-smart-photo-review > div:first-child h3 {
  margin-top: 0.35rem;
  color: #13233a;
  font-size: 1.05rem;
  font-weight: 950;
}

@media (max-width: 1180px) {
  .kidso-smart-photo-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .kidso-smart-photo-filters form {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .kidso-student-card {
    grid-template-columns: 2.5rem minmax(16rem, 1fr);
  }

  .kidso-student-info-grid,
  .kidso-student-actions,
  .kidso-student-note {
    grid-column: 2 / 3;
  }

  .kidso-student-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 900px) {
  .kidso-students-toolbar,
  .kidso-student-pagination,
  .kidso-smart-photo-guide,
  .kidso-smart-photo-manual,
  .kidso-smart-photo-review {
    align-items: stretch;
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .kidso-students-tools,
  .kidso-smart-photo-manual form,
  .kidso-smart-photo-filters form {
    width: 100%;
    grid-template-columns: 1fr;
    flex-wrap: wrap;
  }

  .kidso-students-search {
    min-width: 0;
    width: 100%;
  }

  .kidso-student-info-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .kidso-smart-photo-gallery {
    grid-template-columns: 1fr;
  }

  .kidso-smart-photo-gallery-media {
    aspect-ratio: 1 / 0.78;
  }

  .kidso-student-card {
    grid-template-columns: 1fr;
    padding: 0.85rem;
  }

  .kidso-student-rank {
    position: absolute;
    right: 0.85rem;
    top: 0.85rem;
  }

  .kidso-student-info-grid,
  .kidso-student-actions,
  .kidso-student-note {
    grid-column: auto;
  }

  .kidso-student-info-grid {
    grid-template-columns: 1fr;
  }

  .kidso-student-identity {
    padding-right: 2.75rem;
  }

  .kidso-student-identity h3 {
    white-space: normal;
  }

  .kidso-student-actions {
    justify-content: stretch;
  }

  .kidso-student-profile-btn {
    flex: 1 1 100%;
  }
}

/* User cards page */
.kidso-user-card-list {
  display: grid;
  gap: 0.85rem;
  margin-top: 0.85rem;
}

.kidso-user-card,
.kidso-user-pagination,
.kidso-user-empty,
.kidso-parent-hero,
.kidso-parent-child-card,
.kidso-parent-empty {
  border: 1px solid rgba(111, 142, 176, 0.18);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 14px 34px rgba(31, 41, 55, 0.08);
  backdrop-filter: blur(16px);
}

.kidso-user-card {
  display: grid;
  grid-template-columns: 2.5rem minmax(15rem, 1.1fr) minmax(22rem, 2fr) minmax(8rem, auto);
  gap: 1rem;
  align-items: center;
  padding: 1rem;
}

.kidso-user-rank,
.kidso-user-actions .btn,
.kidso-parent-photo-row button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.kidso-user-rank {
  height: 2.15rem;
  width: 2.15rem;
  border-radius: 0.75rem;
  background: rgba(37, 99, 235, 0.08);
  color: #2563eb;
  font-weight: 900;
}

.kidso-user-identity {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 0.85rem;
}

.kidso-user-identity img {
  height: 4.25rem;
  width: 4.25rem;
  flex: 0 0 auto;
  border-radius: 1rem;
  object-fit: cover;
  box-shadow: 0 12px 26px rgba(31, 41, 55, 0.12);
}

.kidso-user-identity span,
.kidso-user-info-grid span,
.kidso-parent-hero span,
.kidso-parent-child-head span {
  color: #6b7f99;
  font-size: 0.74rem;
  font-weight: 850;
  text-transform: uppercase;
}

.kidso-user-identity h3,
.kidso-parent-child-head h3 {
  overflow: hidden;
  color: #13233a;
  font-size: 1.05rem;
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.kidso-user-identity p,
.kidso-parent-child-head p {
  overflow: hidden;
  color: #6b7f99;
  font-size: 0.8rem;
  font-weight: 760;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.kidso-user-info-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.65rem;
}

.kidso-user-info-grid strong {
  display: block;
  overflow: hidden;
  color: #29445f;
  font-size: 0.86rem;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.kidso-user-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.35rem;
}

.kidso-user-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.85rem;
  padding: 0.85rem;
}

.kidso-user-empty,
.kidso-parent-empty {
  display: grid;
  min-height: 10rem;
  place-items: center;
  color: #6b7f99;
  padding: 1rem;
  text-align: center;
}

.kidso-user-empty i {
  color: #2563eb;
  font-size: 2rem;
}

/* Parent child profiles */
.kidso-parent-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.85rem;
  padding: clamp(1rem, 2.6vw, 1.5rem);
}

.kidso-parent-hero h2 {
  margin-top: 0.25rem;
  color: #13233a;
  font-size: clamp(1.35rem, 3vw, 2rem);
  font-weight: 950;
}

.kidso-parent-hero p {
  margin-top: 0.35rem;
  color: #6b7f99;
  font-weight: 720;
}

.kidso-parent-hero strong {
  display: grid;
  height: 4rem;
  width: 4rem;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 1rem;
  background: linear-gradient(135deg, #2563eb, #06b6d4);
  color: #ffffff;
  font-size: 1.6rem;
  font-weight: 950;
  box-shadow: 0 16px 32px rgba(37, 99, 235, 0.2);
}

.kidso-parent-child-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.kidso-parent-child-card {
  display: grid;
  gap: 1rem;
  padding: 1rem;
}

.kidso-parent-child-head {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.kidso-parent-child-head img {
  height: 4.8rem;
  width: 4.8rem;
  flex: 0 0 auto;
  border-radius: 1rem;
  object-fit: cover;
}

.kidso-parent-controls {
  display: grid;
  gap: 0.9rem;
}

.kidso-parent-field-grid,
.kidso-parent-mask-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.45rem;
}

.kidso-parent-field-option,
.kidso-parent-mask-grid label {
  display: flex;
  min-height: 2.35rem;
  align-items: center;
  gap: 0.45rem;
  border: 1px solid rgba(111, 142, 176, 0.14);
  border-radius: 0.8rem;
  background: rgba(248, 252, 255, 0.82);
  color: #35516f;
  font-size: 0.82rem;
  font-weight: 780;
  padding: 0 0.65rem;
}

.kidso-parent-mask-grid label {
  background: rgba(239, 68, 68, 0.06);
}

.kidso-parent-save {
  display: inline-flex;
  min-height: 2.65rem;
  width: fit-content;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #2563eb, #06b6d4);
  color: #ffffff;
  font-weight: 900;
  padding: 0 1rem;
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.18);
}

.kidso-parent-photo-list {
  display: grid;
  gap: 0.65rem;
  border-top: 1px solid rgba(111, 142, 176, 0.14);
  padding-top: 1rem;
}

.kidso-parent-photo-list h4 {
  color: #13233a;
  font-weight: 950;
}

.kidso-parent-photo-list > div {
  display: grid;
  gap: 0.6rem;
}

.kidso-parent-photo-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  border-radius: 0.85rem;
  background: rgba(248, 252, 255, 0.9);
  padding: 0.75rem;
}

.kidso-parent-photo-row button {
  min-height: 2.1rem;
  gap: 0.35rem;
  border: 1px solid rgba(239, 68, 68, 0.22);
  border-radius: 999px;
  color: #dc2626;
  font-size: 0.78rem;
  font-weight: 850;
  padding: 0 0.7rem;
}

/* Settings refresh */
.kidso-settings-page > .grid {
  align-items: start;
}

.kidso-settings-page .card {
  border-radius: 1rem !important;
}

.kidso-settings-page .card ul a {
  min-height: 2.65rem;
  border: 1px solid transparent;
  border-radius: 0.85rem !important;
}

.kidso-settings-page .card ul a:hover,
.kidso-settings-page .card ul a[class*="bg-primary"] {
  border-color: rgba(37, 99, 235, 0.16);
  box-shadow: 0 12px 26px rgba(37, 99, 235, 0.1);
}

.kidso-settings-page form .grid {
  gap: 0.85rem;
}

.kidso-settings-page form label > span:first-child {
  color: #425a75;
  font-size: 0.8rem;
  font-weight: 850;
}

@media (max-width: 1180px) {
  .kidso-user-card {
    grid-template-columns: 2.5rem minmax(15rem, 1fr);
  }

  .kidso-user-info-grid,
  .kidso-user-actions {
    grid-column: 2 / 3;
  }

  .kidso-user-actions {
    justify-content: flex-start;
  }

  .kidso-user-info-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .kidso-user-pagination,
  .kidso-parent-hero {
    align-items: stretch;
    flex-direction: column;
  }

  .kidso-parent-child-list {
    grid-template-columns: 1fr;
  }

  .kidso-user-info-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .kidso-user-card {
    grid-template-columns: 1fr;
    padding: 0.85rem;
  }

  .kidso-user-rank {
    position: absolute;
    right: 0.85rem;
    top: 0.85rem;
  }

  .kidso-user-info-grid,
  .kidso-user-actions {
    grid-column: auto;
  }

  .kidso-user-info-grid,
  .kidso-parent-field-grid,
  .kidso-parent-mask-grid {
    grid-template-columns: 1fr;
  }

  .kidso-user-identity {
    padding-right: 2.75rem;
  }

  .kidso-user-identity h3,
  .kidso-user-identity p {
    white-space: normal;
  }

  .kidso-user-actions,
  .kidso-parent-photo-row {
    align-items: stretch;
    flex-direction: column;
  }

  .kidso-parent-save,
  .kidso-parent-photo-row form,
  .kidso-parent-photo-row button {
    width: 100%;
  }
}
