/* ==========================================================================
   CENNA — faithful reconstruction of the Adobe XD "CENNA Baby Space" prototype.
   Loaded AFTER cenna-modern.css; overrides layout/structure to match the
   original screens (proportions, columns, cards, navigation, backgrounds).
   Scoped to .cn-modern.  Reference width: 1432px app frame (XD 1440 desktop).
   ========================================================================== */

.cn-modern {
    --xd-teal: #10bccd;          /* primary turquoise (buttons, +, active rings) */
    --xd-teal-ink: #0aa6b8;
    --xd-navy: #15396b;          /* headings, nav text, brand */
    --xd-navy-soft: #26487a;
    --xd-cyan-label: #35b6c7;    /* section labels People/Doctors/Groups */
    --xd-page: #f4f7f9;          /* app canvas — clean CENNA neutral (one system w/ login) */
    --xd-sidebar-bg: #eef2f5;    /* left column */
    --xd-center-grad: linear-gradient(105deg,#d7eef1 0%, #e9f5f6 38%, #ffffff 100%);
    --xd-card: #ffffff;
    --xd-card-radius: 10px;
    --xd-card-shadow: 0 10px 24px rgba(19,74,110,.07);
    --xd-topbar-h: 76px;
    --xd-sidebar-w: 322px;
    --xd-text: #2b2f36;
    --xd-muted: #9aa6b2;
    background: var(--xd-page);
    font-family: 'Inter','Segoe UI',Roboto,Arial,sans-serif;
}

/* ---------------------------------------------------------------- app frame */
.cn-modern .cn-topbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 60;
    height: var(--xd-topbar-h);
    display: flex; align-items: center; gap: 24px;
    padding: 0 34px;
    background: #ffffff;
    -webkit-backdrop-filter: none; backdrop-filter: none;
    border-bottom: 1px solid #eef2f5;
    box-shadow: 0 1px 0 rgba(19,74,110,.03);
}
.cn-modern .cn-sidebar {
    top: var(--xd-topbar-h); bottom: 0; left: 0; width: var(--xd-sidebar-w);
    background: var(--xd-sidebar-bg);
    border-right: none;
    padding: 26px 26px 22px;
    display: flex; flex-direction: column; gap: 4px;
}
.cn-modern .cn-main { margin-left: var(--xd-sidebar-w); padding-top: var(--xd-topbar-h); min-width: 0; background: var(--xd-page); }

/* ---------------------------------------------------------------- top bar */
.cn-modern .cn-topbar-brand { display: flex; align-items: center; width: calc(var(--xd-sidebar-w) - 34px); min-width: 0; flex: 0 1 auto; overflow: hidden; }
/* canonical vector logo; 56px keeps "Baby Space" legible (original proportions preserved) */
.cn-modern .cn-topbar-logo { height: 56px; width: auto; max-width: 100%; display: block; }
.cn-modern .cn-search { position: relative; flex: 0 1 460px; margin: 0; max-width: 460px; }
.cn-modern .cn-search .cn-icon { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); color: #b4bfc9; width: 18px; height: 18px; }
.cn-modern .cn-search input {
    width: 100%; height: 46px; margin: 0; padding: 0 18px 0 46px;
    border: 1px solid #e6ebef; border-radius: 999px; background: #fff;
    font-size: 15px; color: var(--xd-text); box-shadow: 0 2px 6px rgba(19,74,110,.04);
}
.cn-modern .cn-search input:focus { outline: none; border-color: var(--xd-teal); box-shadow: 0 0 0 4px rgba(16,188,205,.15); }
.cn-modern .cn-topbar-actions { display: flex; align-items: center; gap: 26px; margin-left: auto; }

.cn-modern .cn-top-action {
    display: inline-flex; align-items: center; gap: 10px;
    border: 0; background: none; cursor: pointer; padding: 4px 2px;
    color: var(--xd-navy); font-weight: 600; font-size: 15px; font-family: inherit;
}
.cn-modern .cn-top-action-ico { position: relative; display: inline-flex; align-items: center; justify-content: center; }
.cn-modern .cn-top-action-ico-fill {
    width: 34px; height: 34px; border-radius: 50%;
    background: var(--xd-teal); color: #fff;
    box-shadow: 0 6px 14px rgba(16,188,205,.34);
}
.cn-modern .cn-top-action-ico-fill .cn-icon { width: 18px; height: 18px; color: #fff; }
.cn-modern .cn-top-action:hover .cn-top-action-ico-fill { background: var(--xd-teal-ink); }
.cn-modern .cn-top-action:hover { color: var(--xd-navy-soft); }
.cn-modern .cn-top-action .cn-badge {
    position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; padding: 0 4px;
    border-radius: 999px; background: #ff8a3d; color: #fff; border: 2px solid #fff;
    font-size: 11px; font-weight: 700; line-height: 14px; text-align: center;
}
/* keep the secondary requests/messages icons small and quiet (prototype shows only Add Post + Notification) */
.cn-modern .cn-top-extra .cn-icon-btn { width: 38px; height: 38px; color: #9fb0bd; }
.cn-modern .cn-top-extra .cn-icon-btn:hover { color: var(--xd-teal-ink); background: #f1f7f9; box-shadow: none; }
@media (max-width: 1100px) { .cn-modern .cn-top-action-label { display: none; } }

/* ---------------------------------------------------------------- sidebar */
.cn-modern .cn-side-account { align-self: center; margin: 2px 0 14px; }
.cn-modern .cn-side-avatar-btn { display: inline-block; line-height: 0; border: 0; border-radius: 50%; background: none; padding: 0; cursor: pointer; }
.cn-modern .cn-side-avatar-btn:focus-visible { outline: 3px solid var(--xd-teal); outline-offset: 3px; }
.cn-modern .cn-side-avatar { width: 74px; height: 74px; border: 3px solid #fff; box-shadow: 0 0 0 2px var(--xd-teal); }
.cn-modern .cn-sidebar .cn-nav { gap: 2px; }
.cn-modern .cn-sidebar .cn-nav-item {
    display: flex; align-items: center; gap: 12px; padding: 9px 14px; border-radius: 10px;
    color: var(--xd-navy); font-weight: 600; font-size: 15.5px; line-height: 1.2;
}
.cn-modern .cn-sidebar .cn-nav-item .cn-icon { width: 22px; height: 22px; color: var(--xd-navy); flex: 0 0 auto; }
.cn-modern .cn-sidebar .cn-nav-sub { padding-left: 40px; font-weight: 600; color: var(--xd-navy-soft); }
.cn-modern .cn-sidebar .cn-nav-plain { padding-left: 14px; }
.cn-modern .cn-sidebar .cn-nav-item:hover { background: #ffffff8c; color: var(--xd-navy); }
.cn-modern .cn-sidebar .cn-nav-item.is-active {
    background: #ffffff; color: var(--xd-navy); font-weight: 800;
    box-shadow: 0 6px 16px rgba(19,74,110,.08);
}
.cn-modern .cn-sidebar .cn-nav-item.is-active .cn-icon { color: var(--xd-teal-ink); }

.cn-modern .cn-side-children { display: flex; gap: 14px; padding: 16px 6px; }
.cn-modern .cn-side-child .cn-avatar { width: 48px; height: 48px; border: 3px solid #fff; box-shadow: 0 0 0 2px var(--xd-teal); }

.cn-modern .cn-see-more { margin: 12px 2px 0; position: relative; }
.cn-modern .cn-see-more-btn {
    width: 100%; display: flex; align-items: center; justify-content: space-between;
    padding: 11px 16px; border: 1px solid #dbe6ea; border-radius: 10px; background: #fff;
    color: var(--xd-text); font-weight: 600; font-size: 14.5px; cursor: pointer; font-family: inherit;
}
.cn-modern .cn-see-more-btn .cn-icon { width: 18px; height: 18px; color: var(--xd-muted); }
.cn-modern .cn-see-more-panel { left: 0; right: 0; top: calc(100% + 6px); }
.cn-modern .cn-nav-bottom { margin-top: 14px; border-top: none; padding-top: 2px; gap: 2px; }

/* account / see-more dropdown panels reuse the modern dropdown styling but open on light bg */
.cn-modern .cn-side-account .cn-dropdown-panel { left: 0; top: calc(100% + 8px); right: auto; min-width: 230px; }

/* hide the secondary requests/messages icons (prototype top bar = Add Post + Notification only) */
.cn-modern .cn-top-extra { display: none; }

/* ---------------------------------------------------------------- profile (XD image 1) */
.cn-modern .xd-profile {
    display: grid; grid-template-columns: minmax(0,1fr) 340px; gap: 0 40px;
    max-width: 1160px; margin: 0 auto; padding: 26px 40px 60px; align-items: start;
}
.cn-modern .xd-center {
    background: var(--xd-center-grad);
    border-radius: 18px; padding: 30px 34px 36px; min-width: 0;
}
.cn-modern .xd-prof-head { display: grid; grid-template-columns: 1fr auto; gap: 18px; align-items: start; }
.cn-modern .xd-prof-ava { width: 78px; height: 78px; border: 3px solid #fff; box-shadow: 0 0 0 2px var(--xd-teal); margin-bottom: 10px; }
.cn-modern .xd-prof-name { margin: 2px 0 2px; font-size: 26px; font-weight: 700; color: var(--xd-navy); line-height: 1.1; }
.cn-modern .xd-prof-about-h { font-size: 14px; font-weight: 700; color: #1f2a37; margin-top: 8px; }
.cn-modern .xd-prof-about { margin: 4px 0 0; color: #5a6672; font-size: 14px; line-height: 1.5; max-width: 320px; }
.cn-modern .xd-prof-actions { display: flex; flex-direction: column; gap: 14px; align-items: stretch; min-width: 150px; }

.cn-modern .xd-btn { display: inline-flex; align-items: center; justify-content: center; height: 42px; padding: 0 22px; border-radius: 8px; font-weight: 600; font-size: 14px; cursor: pointer; border: 1.5px solid transparent; white-space: nowrap; }
.cn-modern .xd-btn-outline-navy { border-color: #b9c6d8; color: var(--xd-navy); background: #fff; }
.cn-modern .xd-btn-outline-navy:hover { border-color: var(--xd-navy); color: var(--xd-navy); }
.cn-modern .xd-btn-outline-teal { border-color: var(--xd-teal); color: var(--xd-teal-ink); background: #fff; }
.cn-modern .xd-btn-outline-teal:hover { background: #e9fbfd; color: var(--xd-teal-ink); }
.cn-modern .xd-btn-navy { background: #15396b; color: #fff; }
.cn-modern .xd-btn-navy:hover { background: #0f2b53; color: #fff; }
/* follow toggle text on the outline-teal button */
.cn-modern .xd-btn.cn-when-off, .cn-modern .xd-btn.cn-when-on { display: none; }
.cn-modern .xd-btn .cn-when-on, .cn-modern .xd-btn .cn-when-off { display: none; }
.cn-modern .xd-btn.icon-add .cn-when-off { display: inline; }
.cn-modern .xd-btn.icon-minus .cn-when-on, .cn-modern .xd-btn.is-on .cn-when-on { display: inline; }
.cn-modern .xd-btn.is-on { background: var(--xd-teal); border-color: var(--xd-teal); color: #fff; }

.cn-modern .xd-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 26px 0 8px; max-width: 420px; }
.cn-modern .xd-stat { background: #fff; border-radius: 10px; box-shadow: var(--xd-card-shadow); padding: 18px 10px; text-align: center; }
.cn-modern .xd-stat-num { display: block; font-size: 24px; font-weight: 700; color: var(--xd-teal-ink); line-height: 1; }
.cn-modern .xd-stat-lbl { display: block; margin-top: 6px; font-size: 12px; color: #8a97a3; text-transform: uppercase; letter-spacing: .04em; font-weight: 600; }

.cn-modern .xd-sec-title { margin: 26px 0 14px; font-size: 20px; font-weight: 700; color: var(--xd-navy); }
.cn-modern .xd-children-card { display: flex; gap: 30px; align-items: flex-start; padding: 22px 26px; border-radius: 12px; }
.cn-modern .xd-child { display: flex; flex-direction: column; align-items: center; gap: 10px; color: var(--xd-navy); font-weight: 600; font-size: 14px; }
.cn-modern .xd-child-ava { width: 64px; height: 64px; border: 3px solid #fff; box-shadow: 0 0 0 2px var(--xd-teal); transition: transform .25s ease, box-shadow .25s ease; }
.cn-modern .xd-child:hover .xd-child-ava { transform: scale(1.09); box-shadow: 0 0 0 2px var(--xd-teal-ink), 0 8px 18px rgba(16,188,205,.28); }
.cn-modern .xd-child-name { color: #1f2a37; }
.cn-modern .xd-add-circle { width: 64px; height: 64px; border-radius: 50%; background: var(--xd-teal); color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 18px rgba(16,188,205,.34); }
.cn-modern .xd-add-circle .cn-icon { width: 26px; height: 26px; color: #fff; }
.cn-modern .xd-add-label { color: var(--xd-teal-ink); }
.cn-modern .xd-add-baby:hover .xd-add-circle { background: var(--xd-teal-ink); transform: scale(1.06); }

/* ---------------------------------------------------------------- right rail (People/Doctors/Groups) */
.cn-modern .xd-right { position: static; display: block; }
.cn-modern .xd-rail-sec { margin-bottom: 26px; }
.cn-modern .xd-rail-head { display: flex; align-items: baseline; justify-content: space-between; margin: 0 2px 8px; }
.cn-modern .xd-rail-title { margin: 0; font-size: 15px; font-weight: 700; color: var(--xd-cyan-label); }
.cn-modern .xd-rail-all { font-size: 13px; font-weight: 700; color: var(--xd-navy); }
.cn-modern .xd-rail-all:hover { color: var(--xd-teal-ink); }
.cn-modern .xd-rail-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.cn-modern .xd-rail-item { display: flex; align-items: center; gap: 12px; padding: 7px 4px; }
.cn-modern .xd-rail-item .cn-avatar { width: 42px; height: 42px; border: 2px solid #fff; box-shadow: 0 0 0 1px #e2ebf0; }
.cn-modern .xd-rail-meta { display: flex; flex-direction: column; min-width: 0; flex: 1 1 auto; }
.cn-modern .xd-rail-name { font-size: 14px; font-weight: 700; color: #1f2a37; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cn-modern .xd-rail-sub { font-size: 11px; color: #aab4bf; }
.cn-modern .xd-rail-empty { color: #9aa6b2; font-size: 13px; padding: 4px; list-style: none; }

.cn-modern .xd-pill {
    flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center;
    min-width: 78px; height: 30px; padding: 0 14px; border-radius: 7px;
    font-size: 13px; font-weight: 600; cursor: pointer;
    background: var(--xd-teal); color: #fff; border: 1.5px solid var(--xd-teal);
}
.cn-modern .xd-pill:hover { background: var(--xd-teal-ink); color: #fff; }
.cn-modern .xd-pill.is-on { background: var(--xd-teal); color: #fff; }
/* Follow(off)=outline, Following(on)=filled — via the shared cn-toggle states */
.cn-modern .xd-pill .cn-when-on, .cn-modern .xd-pill .cn-when-off { display: none; }
.cn-modern .xd-pill.icon-add { background: #fff; color: var(--xd-teal-ink); }
.cn-modern .xd-pill.icon-add .cn-when-off { display: inline; }
.cn-modern .xd-pill.icon-minus, .cn-modern .xd-pill.is-on { background: var(--xd-teal); color: #fff; }
.cn-modern .xd-pill.icon-minus .cn-when-on, .cn-modern .xd-pill.is-on .cn-when-on { display: inline; }

/* ---------------------------------------------------------------- home feed (XD image 31) */
.cn-modern .xd-feedpage { display: grid; grid-template-columns: minmax(0,1fr) 340px; gap: 0 44px; max-width: 1160px; margin: 0 auto; padding: 26px 40px 60px; align-items: start; }
.cn-modern .xd-feed-col { min-width: 0; }
.cn-modern .xd-feedpage .cn-feed { display: flex; flex-direction: column; gap: 20px; }
.cn-modern .xd-suggest-title { margin: 2px 2px 16px; font-size: 16px; font-weight: 700; color: var(--xd-navy); }
.cn-modern .xd-feedpage .xd-right { position: static; }

/* ========================================================================
   LOGIN / REGISTRATION — faithful reconstruction of the XD navy split (img 8).
   Body = .cn-modern.cn-auth.cn-auth-xd (not inside .cn-app).
   Illustrations reused from the prototype (navy knocked out to transparency).
   ======================================================================== */
.cn-auth-xd { position: relative; min-height: 100vh; margin: 0; background: #15396b; overflow-x: hidden; font-family: 'Inter','Segoe UI',Roboto,Arial,sans-serif; }
.cn-auth-xd .cn-auth-wrap { position: relative; display: block; min-height: 100vh; max-width: none; margin: 0; padding: 0; }
/* white diagonal panel, top-left (XD screen 8). A real element so it reliably paints over the navy. */
/* white/navy divider: SVG S-curve (stretches with the page) + faint glow band + dotted orbit line */
.cn-auth-xd .xd-auth-curve { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.cn-auth-xd .xd-auth-curve svg { position: absolute; top: 0; left: 0; overflow: visible; }
.cn-auth-xd .xd-auth-curve .xd-curve-desk { display: block; width: 100%; height: 100%; }
.cn-auth-xd .xd-auth-curve .xd-curve-mob { display: none; width: 100%; height: 180px; }
.cn-auth-xd .xd-curve-fill { fill: #fff; }
.cn-auth-xd .xd-curve-glow { fill: #ffffff; fill-opacity: .06; }
.cn-auth-xd .xd-curve-line { fill: none; stroke: #5fd6e3; stroke-opacity: .7; stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: .5 11; vector-effect: non-scaling-stroke; }
/* quiet star field only where nothing is read: the right column and the navy band left of the form
   (never behind labels or fields); none on phones */
.cn-auth-xd .xd-auth-stars { position: absolute; z-index: 0; pointer-events: none; background: url('../img/space-stars.svg?v=20261010') repeat; background-size: 520px 520px; }
.cn-auth-xd .xd-auth-stars-r { top: 84px; bottom: 0; right: 0; left: calc(42% + 464px); }
.cn-auth-xd .xd-auth-stars-l { left: 0; bottom: 0; width: calc(42% - 24px); height: 46%; background-position: 40px 0; }
/* "Baby Space" planets — small, calm accents on the navy side only */
.cn-auth-xd .xd-planet { position: absolute; z-index: 1; height: auto; pointer-events: none; user-select: none; animation: xd-float 9s ease-in-out infinite; }
.cn-auth-xd .xd-planet-ring { right: 15%; top: 40%; width: 118px; }
.cn-auth-xd .xd-planet-pink { left: 27%; bottom: 7%; width: 74px; animation-duration: 11s; animation-delay: -4s; }
@keyframes xd-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
@media (prefers-reduced-motion: reduce) { .cn-auth-xd .xd-planet { animation: none; } }
/* logo: canonical vector, large enough that "Baby Space" is clearly legible */
.cn-auth-xd .xd-auth-logo { position: absolute; top: 40px; left: 56px; z-index: 5; display: block; }
.cn-auth-xd .xd-auth-logo img { height: 88px; width: auto; display: block; }
.cn-auth-xd .xd-auth-logo:focus-visible { outline: 3px solid #10bccd; outline-offset: 6px; border-radius: 8px; }
/* short, factual value points on the white panel */
.cn-auth-xd .xd-auth-points { position: absolute; top: 168px; left: 58px; z-index: 3; width: 330px; margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; }
.cn-auth-xd .xd-auth-points li { display: flex; align-items: center; gap: 12px; color: #24364d; font-size: 15.5px; font-weight: 500; line-height: 1.35; }
.cn-auth-xd .xd-auth-points .cn-icon { width: 34px; height: 34px; padding: 8px; border-radius: 10px; background: #e9f8fa; color: #0b8796; flex: none; }
.cn-auth-xd .xd-auth-illus { position: absolute; z-index: 1; background-repeat: no-repeat; background-position: bottom center; background-size: contain; pointer-events: none; }
.cn-auth-xd .xd-auth-illus-left  { left: 3%; top: 44%; width: 300px; height: 40vh; max-height: 340px; background-image: url('../img/illus-parent-baby.svg?v=20261010'); background-position: center; }
.cn-auth-xd .xd-auth-illus-right { right: 4.5%; bottom: 0; width: 230px; height: 50vh; max-height: 410px; background-image: url('../img/illus-parent-child.svg?v=20261010'); }
.cn-auth-xd .xd-auth-tagline { position: absolute; right: 4%; top: 22%; width: 300px; z-index: 2; color: #fff; font-size: 34px; line-height: 1.2; font-weight: 700; letter-spacing: -.01em; }
/* language switcher: prominent pills, top-right on the navy side */
.cn-auth-xd .xd-auth-langbar { position: absolute; top: 26px; right: 32px; left: auto; bottom: auto; z-index: 6; display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; margin: 0; }
.cn-auth-xd .xd-langbar-ico { display: inline-flex; color: #9fd8e2; margin-inline-end: 2px; }
.cn-auth-xd .xd-langbar-ico .cn-icon { width: 20px; height: 20px; }
.cn-auth-xd .xd-auth-langbar a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid rgba(255,255,255,.28); background: rgba(255,255,255,.06); color: #eef4fb; font-size: 14.5px; font-weight: 600; text-decoration: none; transition: background .15s ease, border-color .15s ease; }
.cn-auth-xd .xd-auth-langbar a:hover { background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.5); color: #fff; text-decoration: none; }
.cn-auth-xd .xd-auth-langbar a[aria-current="true"] { background: #fff; border-color: #fff; color: #15396b; }
.cn-auth-xd .xd-auth-langbar a:focus-visible { outline: 3px solid #10bccd; outline-offset: 2px; }
/* form column: wider, vertically centred, larger type */
.cn-auth-xd .xd-auth-main { position: relative; z-index: 4; width: 440px; max-width: calc(100% - 40px); margin: 0 auto 0 42%; padding: 96px 0 40px; min-height: 100vh; display: flex; flex-direction: column; justify-content: center; }
.cn-auth-xd .cn-auth-card, .cn-auth-xd .registration-login-form { background: transparent; border: none; box-shadow: none; padding: 0; }
.cn-auth-xd .cn-auth-tabs { border: none; justify-content: center; gap: 26px; margin-bottom: 12px; }
.cn-auth-xd .cn-auth-tabs .nav-link { color: #4a5d75; font-weight: 700; font-size: 16px; border: none; background: none; padding: 8px 4px; }
.cn-auth-xd .cn-auth-tabs .nav-link:hover { color: #15396b; }
.cn-auth-xd .cn-auth-tabs .nav-link.active { color: #0b8796; border-bottom: 2px solid #10bccd; }
.cn-auth-xd .cn-auth-tabs .nav-link:focus-visible { outline: 3px solid #10bccd; outline-offset: 2px; }
.cn-auth-xd .cn-auth-title { color: #fff; text-align: center; font-size: 27px; font-weight: 700; letter-spacing: -.01em; margin: 8px 0 22px; }
.cn-auth-xd .cn-field { margin-bottom: 16px; }
.cn-auth-xd .cn-field > span { color: #dbe6f3; font-size: 14.5px; font-weight: 600; }
.cn-auth-xd .cn-input, .cn-auth-xd .form-control.cn-input {
    background: #fff; border: 2px solid transparent; border-radius: 10px; height: 52px; color: #1f2a37; font-size: 16px; padding: 0 14px;
    box-shadow: 0 6px 16px rgba(10,30,70,.18); margin-top: 7px;
}
.cn-auth-xd .cn-input:focus { border-color: #10bccd; box-shadow: 0 0 0 4px rgba(16,188,205,.28); outline: none; }
.cn-auth-xd .cn-input::placeholder { color: #9aa6b2; }
.cn-auth-xd .cn-check span, .cn-auth-xd .cn-auth-note, .cn-auth-xd .cn-auth-or span { color: #dbe6f3; font-size: 15px; }
.cn-auth-xd .cn-auth-note a, .cn-auth-xd .cn-check a, .cn-auth-xd .cn-auth-forgot a { color: #5fd6e3; font-weight: 600; }
.cn-auth-xd .cn-auth-forgot { text-align: end; font-size: 14.5px; }
.cn-auth-xd .cn-auth-submit, .cn-auth-xd .cn-btn-primary {
    background: #10bccd; color: #fff; border-radius: 10px; height: 54px; font-size: 16.5px; font-weight: 700;
    letter-spacing: .01em; width: 100%; box-shadow: 0 10px 22px rgba(16,188,205,.32);
}
.cn-auth-xd .cn-auth-submit:hover, .cn-auth-xd .cn-btn-primary:hover { background: #0fb0c2; }
.cn-auth-xd .cn-auth-submit:focus-visible, .cn-auth-xd .cn-auth-social:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.cn-auth-xd .cn-auth-or { display: flex; align-items: center; justify-content: center; margin: 18px 0; color: #9fb3cf; }
.cn-auth-xd .cn-auth-social { background: #fff; color: #15396b; border: none; border-radius: 10px; margin-top: 10px; height: 50px; font-size: 15.5px; }
.cn-auth-xd .cn-auth-social:hover { background: #eaf2fb; }
.cn-auth-xd .cn-auth-legal { display: flex; justify-content: center; margin-top: 28px; }
.cn-auth-xd .cn-auth-legal a { color: #b7c7dc; font-size: 13.5px; text-decoration: underline; text-underline-offset: 3px; }
.cn-auth-xd .cn-auth-legal a:hover { color: #fff; }
@media (max-width: 1360px) {
    .cn-auth-xd .xd-auth-tagline { display: none; }
    .cn-auth-xd .xd-planet-ring { right: 6%; top: 24%; }
}
@media (max-width: 1199px) {
    .cn-auth-xd .xd-auth-illus-right, .cn-auth-xd .xd-auth-points { display: none; }
    .cn-auth-xd .xd-auth-illus-left { top: auto; bottom: 6%; width: 220px; height: 30vh; }
    .cn-auth-xd .xd-auth-main { margin-left: 44%; width: 420px; }
    .cn-auth-xd .xd-planet-ring { right: 3%; top: 22%; width: 92px; }
    .cn-auth-xd .xd-auth-stars-r { left: calc(44% + 444px); }
    .cn-auth-xd .xd-auth-stars-l { width: calc(44% - 24px); }
    .cn-auth-xd .xd-planet-pink { left: 30%; width: 60px; }
}
@media (max-width: 980px) {
    .cn-auth-xd .xd-planet { display: none; }
}
@media (max-width: 900px) {
    /* phones/tablets portrait: white header band (keeps the white/navy identity), full-width form */
    .cn-auth-xd .xd-auth-illus, .cn-auth-xd .xd-auth-tagline, .cn-auth-xd .xd-auth-points { display: none; }
    .cn-auth-xd .xd-auth-curve .xd-curve-desk { display: none; }
    .cn-auth-xd .xd-auth-curve .xd-curve-mob { display: block; }
    .cn-auth-xd .xd-auth-stars { display: none; }
    .cn-auth-xd .xd-planet-ring { display: block; right: 12px; left: auto; top: 98px; width: 56px; }
    .cn-auth-xd .xd-auth-logo { top: 24px; left: 50%; transform: translateX(-50%); }
    .cn-auth-xd .xd-auth-logo img { height: 76px; }
    .cn-auth-xd .xd-auth-langbar { position: relative; top: auto; right: auto; justify-content: center; padding: 172px 16px 0; gap: 6px; }
    .cn-auth-xd .xd-langbar-ico { display: none; }
    .cn-auth-xd .xd-auth-langbar a { min-height: 40px; padding: 0 11px; font-size: 13.5px; }
    .cn-auth-xd .xd-auth-main { width: auto; max-width: 480px; margin: 0 auto; padding: 18px 20px 36px; min-height: 0; justify-content: flex-start; }
    .cn-auth-xd .cn-auth-title { font-size: 23px; }
}

/* ---------------------------------------------------------------- messages (XD image 6) */
.cn-modern .xd-msg { display: grid; grid-template-columns: minmax(0,1fr) 330px; gap: 0 40px; max-width: 1160px; margin: 0 auto; padding: 18px 40px 46px; align-items: start; }
.cn-modern .xd-msg-main { min-height: 620px; max-height: calc(100vh - 140px); display: flex; flex-direction: column; padding: 0; overflow: hidden; border-radius: 14px; }
.cn-modern .xd-msg-main .cn-chat-field { flex: 1 1 auto; display: flex; flex-direction: column; min-height: 0; }
.cn-modern .xd-msg-main #messages-field { flex: 1 1 auto; overflow-y: auto; }
.cn-modern .xd-msg-main .cn-chat-placeholder { margin: auto; }
.cn-modern .xd-msg-rail { position: static; }
.cn-modern .xd-msg-title { margin: 2px 2px 14px; }
.cn-modern .xd-msg-contacts { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
/* contact rows (rendered by ajax-fetch-messages getUsers) in the prototype style */
.cn-modern .xd-msg-contacts li { display: flex; align-items: center; gap: 12px; padding: 9px 8px; border-radius: 10px; cursor: pointer; }
.cn-modern .xd-msg-contacts li:hover { background: #fff; box-shadow: 0 4px 12px rgba(19,74,110,.06); }
.cn-modern .xd-msg-contacts .author-thumb img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; border: 2px solid #fff; box-shadow: 0 0 0 1px #e2ebf0; }
.cn-modern .xd-msg-contacts .notification-event { min-width: 0; flex: 1 1 auto; display: flex; flex-direction: column; }
.cn-modern .xd-msg-contacts .notification-friend { font-size: 14px; font-weight: 700; color: #1f2a37; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cn-modern .xd-msg-contacts .chat-message-item { font-size: 12px; color: #93a0ac; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cn-modern .xd-msg-contacts .notification-date { font-size: 11px; color: #aeb8c2; }
.cn-modern .xd-msg-contacts .notification-icon { display: none; }
/* chat header: avatar + name, matching XD screen 6 */
.cn-modern .xd-chat-head { display: flex; align-items: center; gap: 12px; }
.cn-modern .xd-chat-avatar { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; border: 2px solid #fff; box-shadow: 0 0 0 1px #e2ebf0; flex: 0 0 auto; }
.cn-modern .xd-chat-avatar:not([src]), .cn-modern .xd-chat-avatar[src=""] { display: none; }
.cn-modern .xd-chat-head h2 { margin: 0; }
@media (max-width: 991px) {
    .cn-modern .xd-msg { grid-template-columns: 1fr; }
    .cn-modern .xd-msg:not(.is-chat-open) .xd-msg-main { display: none; }
    .cn-modern .xd-msg.is-chat-open .xd-msg-rail { display: none; }
}

/* ----------------------------------------------------------------------------
   Issue 6: interactive controls must return to their normal state after a
   pointer click — no lingering highlight/ring from mouse focus. Keyboard focus
   still shows a clear ring via the global :focus-visible rule (accessibility).
   Only focus-added styling is neutralised; resting styles are untouched.
   -------------------------------------------------------------------------- */
.cn-modern a:focus:not(:focus-visible),
.cn-modern button:focus:not(:focus-visible),
.cn-modern [role="button"]:focus:not(:focus-visible),
.cn-modern .cn-tab:focus:not(:focus-visible),
.cn-modern .cn-nav-item:focus:not(:focus-visible),
.cn-modern .cn-icon-btn:focus:not(:focus-visible),
.cn-modern .cn-top-action:focus:not(:focus-visible),
.cn-modern .cn-post-action:focus:not(:focus-visible),
.cn-auth-xd a:focus:not(:focus-visible),
.cn-auth-xd button:focus:not(:focus-visible) { outline: none; }
/* Bootstrap adds a focus box-shadow on plain :focus (not :focus-visible) that
   lingers after a mouse click; drop it for pointer focus only. */
.cn-modern .btn:focus:not(:focus-visible),
.cn-modern .nav-link:focus:not(:focus-visible),
.cn-auth-xd .nav-link:focus:not(:focus-visible) { box-shadow: none; }

/* ----------------------------------------------------------------------------
   Issue 8: child Overview merged sections (Summary / Medical History / Pediatrician)
   as expandable panels that lazy-load the real section page in an embed frame.
   -------------------------------------------------------------------------- */
.cn-modern .cn-merged-sections { display: flex; flex-direction: column; gap: 14px; margin: 20px 0; }
.cn-modern details.cn-merged { padding: 0; overflow: hidden; }
.cn-modern .cn-merged-sum { display: flex; align-items: center; gap: 12px; padding: 16px 20px; cursor: pointer; list-style: none; color: var(--xd-navy); font-weight: 700; font-size: 16px; }
.cn-modern .cn-merged-sum::-webkit-details-marker { display: none; }
.cn-modern .cn-merged-ico { display: inline-flex; width: 36px; height: 36px; border-radius: 10px; align-items: center; justify-content: center; background: #ecfbfd; color: var(--xd-teal-ink); flex: 0 0 auto; }
.cn-modern .cn-merged-ico .cn-icon { width: 20px; height: 20px; }
.cn-modern .cn-merged-title { flex: 1 1 auto; }
.cn-modern .cn-merged-chev { color: var(--xd-muted); transition: transform .2s ease; }
.cn-modern .cn-merged-chev .cn-icon { width: 20px; height: 20px; }
.cn-modern details.cn-merged[open] .cn-merged-chev { transform: rotate(180deg); }
.cn-modern details.cn-merged[open] .cn-merged-sum { border-bottom: 1px solid var(--cn-border); }
.cn-modern .cn-embed-host { min-height: 60px; }
.cn-modern .cn-embed-spin { padding: 24px 20px; font-size: 14px; }
.cn-modern .cn-embed-frame { width: 100%; border: 0; display: block; height: 600px; background: #fff; }

/* ----------------------------------------------------------------------------
   Mobile: the XD shell rules above (.cn-modern .cn-sidebar / .cn-main) have higher
   specificity than cenna-modern's mobile rules, so they must be re-stated here to
   restore the mobile layout (sidebar hidden, content full width, bottom nav drives
   navigation). Without this the fixed sidebar squeezes the content on phones.
   -------------------------------------------------------------------------- */
@media (max-width: 991px) {
    .cn-modern .cn-sidebar { display: none; }
    .cn-modern .cn-main { margin-left: 0; }
    .cn-modern .cn-topbar { gap: 12px; padding: 0 14px; }
    .cn-modern .cn-topbar-brand { width: auto; }
    .cn-modern .cn-topbar-logo { height: 46px; }
    .cn-modern .xd-profile, .cn-modern .xd-feedpage, .cn-modern .xd-msg { grid-template-columns: 1fr; padding-left: 16px; padding-right: 16px; }
}

/* ----------------------------------------------------------------------------
   Layout 2026-10-18 (operator): main menu on the RIGHT in every language; the
   suggestions / friends / contacts rail on the opposite (LEFT) side.
   Desktop order: [rail] [content] [menu]. In RTL (.cn-app has direction:rtl) the
   grid already places the first column on the right, so the rail lands on the
   left without reordering; LTR swaps the columns explicitly.
   Phones/tablets (<992px) are unchanged: menu hidden, bottom navigation, rail
   below the content.
   -------------------------------------------------------------------------- */
.cn-modern .cn-sidebar { left: auto; right: 0; }
.cn-modern .cn-main { margin-left: 0; margin-right: var(--xd-sidebar-w); }
.cn-modern .cn-side-account .cn-dropdown-panel { left: auto; right: 0; }
@media (min-width: 992px) {
    html:not([dir="rtl"]) .cn-modern .xd-feedpage,
    html:not([dir="rtl"]) .cn-modern .xd-profile { grid-template-columns: 340px minmax(0,1fr); }
    html:not([dir="rtl"]) .cn-modern .xd-msg { grid-template-columns: 330px minmax(0,1fr); }
    html:not([dir="rtl"]) .cn-modern .xd-right { order: -1; }
}
@media (min-width: 1100px) {
    html:not([dir="rtl"]) .cn-modern .cn-profile-layout { grid-template-columns: 320px minmax(0,1fr); }
    html:not([dir="rtl"]) .cn-modern .cn-profile-layout > .cn-right-col { order: -1; }
}
@media (max-width: 991px) {
    .cn-modern .cn-main { margin-right: 0; }
}
/* small laptops (992–1279px): menu 322px + rail 340px left too little room for posts (238px at 1024px) */
@media (min-width: 992px) and (max-width: 1279px) {
    .cn-modern .xd-feedpage, .cn-modern .xd-profile { grid-template-columns: minmax(0,1fr) 260px; gap: 0 24px; padding-left: 20px; padding-right: 20px; }
    .cn-modern .xd-msg { grid-template-columns: minmax(0,1fr) 260px; gap: 0 24px; padding-left: 20px; padding-right: 20px; }
    html:not([dir="rtl"]) .cn-modern .xd-feedpage, html:not([dir="rtl"]) .cn-modern .xd-profile,
    html:not([dir="rtl"]) .cn-modern .xd-msg { grid-template-columns: 260px minmax(0,1fr); }
}
/* RTL: sub-items indented on the reading side; top-bar actions pushed to the far (left) end */
html[dir="rtl"] .cn-modern .cn-sidebar .cn-nav-sub { padding-left: 14px; padding-right: 40px; }
html[dir="rtl"] .cn-modern .cn-topbar-actions { margin-left: 0; margin-right: auto; }

/* ----------------------------------------------------------------------------
   Social pages 2026-10-18 (operator: "fit the rest of the site"): posts, comments and
   shared posts in the calm card style of Wachstum / Vorsorge — no hard frames, soft
   shadow, one light divider, rounded inputs. Feed, profile, groups and single posts.
   -------------------------------------------------------------------------- */
.cn-modern .cn-post { border: 0; border-radius: 18px; box-shadow: 0 6px 20px rgba(19,74,110,.06); padding: 18px 20px 0; }
.cn-modern .cn-post-head .cn-avatar { box-shadow: 0 0 0 2px #fff, 0 0 0 4px #bfeff4; }
.cn-modern .cn-post-author a { color: #134a6e; font-weight: 700; }
.cn-modern .cn-post-author .cn-muted { color: #8a97a5; }
.cn-modern .cn-post-body { color: #334155; }
/* shared post: a tinted quote instead of a box in a box */
.cn-modern .cn-post-shared { border: 0; border-radius: 14px; background: #f5f9fb; padding: 14px 16px; border-inline-start: 4px solid #bfeff4; }
.cn-modern .cn-post-shared .cn-post-media { margin: 12px -16px -14px; }
/* stats: only what exists; nothing at all when a post has no likes, comments or shares */
.cn-modern .cn-post-stats { padding: 12px 2px 8px; font-size: 12.5px; color: #8a97a5; }
.cn-modern .cn-post-stats.is-empty { display: none; }
.cn-modern .cn-likes-str:empty { display: none; }
.cn-modern .cn-likes-str { color: #e5484d; font-weight: 600; }
/* actions: one light divider, rounded hover */
.cn-modern .cn-post-actions { border-bottom: 0; border-top: 1px solid #eef2f5; padding: 6px 0; margin-top: 4px; }
.cn-modern .cn-post-stats.is-empty + .cn-post-actions { margin-top: 12px; }
.cn-modern .cn-post-action { height: 40px; border-radius: 12px; color: #4b5b6b; }
.cn-modern .cn-post-action:hover { background: #f0fafb; color: #0b8796; }
.cn-modern .cn-post-action-num { font-size: 13px; }
/* comments */
.cn-modern .cn-comments { padding: 4px 0 16px; }
.cn-modern .cn-comment-bubble { background: #f4f7fa; border-radius: 16px; }
.cn-modern .cn-comment-author { color: #134a6e; }
/* comment field: one line, no scrollbar arrows (Windows showed ▲▼ in the 1-row field) */
.cn-modern .cn-comment-input { overflow-y: hidden; scrollbar-width: none; border: 1px solid #e6edf2; background: #f7fafc; height: 42px; min-height: 42px; border-radius: 21px; }
.cn-modern .cn-comment-input::-webkit-scrollbar { display: none; }
.cn-modern .cn-comment-input:focus { border-color: #10bccd; box-shadow: 0 0 0 3px rgba(16,188,205,.15); outline: none; }
.cn-modern .cn-comment-send { width: 42px; height: 42px; border-radius: 50%; background: #e7f8fa; color: #0b8796; }
.cn-modern .cn-comment-send:hover { background: #10bccd; color: #fff; }
.cn-modern .cn-comment-form .cn-avatar { width: 36px; height: 36px; margin-bottom: 3px; }
@media (max-width: 767px) { .cn-modern .cn-post { border-radius: 16px; padding: 14px 14px 0; } }
.cn-modern .xd-feedpage .cn-feed .cn-post, .cn-modern .xd-center .cn-feed .cn-post { margin-bottom: 0; }
.cn-modern .cn-likes-str { color: #64748b; font-weight: 600; }

/* language switcher in the top bar (2026-10-18): small globe + code, list of ready languages */
.cn-modern .cn-lang-dd { position: relative; }
.cn-modern .cn-lang-btn { display: inline-flex; align-items: center; gap: 5px; height: 36px; padding: 0 10px; border: 1px solid #e6edf2; border-radius: 999px; background: #fff; color: var(--xd-navy); font-size: 12.5px; font-weight: 700; cursor: pointer; }
.cn-modern .cn-lang-btn:hover, .cn-modern .cn-lang-dd.is-open .cn-lang-btn { border-color: var(--xd-teal); color: var(--xd-teal-ink); }
.cn-modern .cn-lang-btn .cn-icon { width: 17px; height: 17px; }
.cn-modern .cn-lang-panel { right: 0; left: auto; width: 220px; padding: 6px; }
html[dir="rtl"] .cn-modern .cn-lang-panel { left: 0; right: auto; }
.cn-modern .cn-lang-opt { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; color: #1f2a37; font-weight: 600; font-size: 14px; }
.cn-modern .cn-lang-opt:hover { background: #f0fafb; color: #0b8796; }
.cn-modern .cn-lang-opt.is-current { background: #e7f8fa; color: #0b8796; }
.cn-modern .cn-lang-code { display: inline-block; min-width: 26px; font-size: 11px; font-weight: 800; color: #8a97a5; }
@media (max-width: 991px) { .cn-modern .cn-lang-btn { height: 34px; padding: 0 8px; } .cn-modern .cn-lang-btn span { font-size: 11px; } }
/* requests / message counters: the extra icons appear as soon as something is waiting (group join requests,
   new messages), so a group admin can accept a request; hidden while their badge is hidden */
.cn-modern .cn-top-extra:has(.cn-badge:not([style*="none"])) { display: block; }
/* RTL: menus open towards the page (they were anchored to the right edge and went off-screen in Arabic) */
html[dir="rtl"] .cn-modern .cn-dropdown-panel { right: auto; left: 0; }
/* an open post menu stays above the neighbouring column */
.cn-modern .cn-post:has(.cn-dropdown.is-open), .cn-modern .cn-feed-col:has(.cn-dropdown.is-open) { position: relative; z-index: 30; }
/* profile stats: long labels (Russian, Polish) wrap instead of widening the page on phones */
.cn-modern .xd-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cn-modern .xd-stat-lbl { overflow-wrap: anywhere; hyphens: auto; }
@media (max-width: 480px) { .cn-modern .xd-stats { gap: 8px; } .cn-modern .xd-stat { padding: 14px 6px; } .cn-modern .xd-stat-lbl { font-size: 10.5px; letter-spacing: 0; } }
/* phones: the logo keeps its size when extra top-bar icons (language, requests, messages) appear */
@media (max-width: 991px) {
    .cn-modern .cn-topbar-brand { flex: 0 0 auto; }
    .cn-modern .cn-topbar-actions { gap: 6px; min-width: 0; }
    .cn-modern .cn-topbar-actions .cn-icon-btn { width: 34px; height: 34px; }
}
@media (max-width: 400px) { .cn-modern .cn-topbar-logo { height: 40px; } .cn-modern .cn-lang-btn span { display: none; } }
/* profile: many children wrap onto the next line instead of widening the page */
.cn-modern .xd-children-card { flex-wrap: wrap; }
@media (max-width: 480px) { .cn-modern .xd-children-card { gap: 16px 18px; padding: 18px 16px; } }
